From: Vito Macchia Date: Wed, 11 Nov 2020 11:53:11 +0000 (+0100) Subject: Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0... X-Git-Url: http://repos.xcallymotion.com/?a=commitdiff_plain;h=6fa239fc8abc9d5da244d20381f06bc2d61cc579;p=motion-next.git Built motion from commit ecdc8e66766c75b1b08288b0ea13eb12d42606b4. Version 3.0.0-alpha --- diff --git a/apidoc/api_project.js b/apidoc/api_project.js index 836fe0c..74c54f6 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:14:17.224Z", + "time": "2020-11-11T11:49:31.252Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index f19916a..084b5ce 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:14:17.224Z", + "time": "2020-11-11T11:49:31.252Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/package-lock.json b/package-lock.json index b0bb26e..e4b7fb4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -523,11 +523,6 @@ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" }, - "after": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", - "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=" - }, "agent-base": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", @@ -724,11 +719,6 @@ "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.2.tgz", "integrity": "sha1-X8w3OSB3VyPP1k1lxkvvU7+eum0=" }, - "arraybuffer.slice": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", - "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" - }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -829,9 +819,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sdk": { - "version": "2.788.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.788.0.tgz", - "integrity": "sha512-UKc+4MFRezIkgk668mylj7MpVD2dCtiDBppgx05SwYSDGT60bixrKv3nE/YJK+gAv53CWVf7WL6hNv76+TWkTA==", + "version": "2.789.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.789.0.tgz", + "integrity": "sha512-Jqq+M4N0EgkyS4OPf05UHa7IWUcpuBdnpwMRgBnu4Ju6PxpOTh1UQcmYepVmIN3m6YVpLwFctEYzAMJFM3LT1A==", "requires": { "buffer": "4.9.2", "events": "1.1.1", @@ -888,21 +878,11 @@ "regenerator-runtime": "^0.11.0" } }, - "backo2": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", - "integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=" - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, - "base64-arraybuffer": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", - "integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=" - }, "base64-js": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", @@ -944,14 +924,6 @@ "tweetnacl": "^0.14.3" } }, - "better-assert": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", - "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", - "requires": { - "callsite": "1.0.0" - } - }, "binary-extensions": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", @@ -980,11 +952,6 @@ "resolved": "https://registry.npmjs.org/blessed/-/blessed-0.1.81.tgz", "integrity": "sha1-+WLWh+wsNpVwrnGvhDJW5tDKESk=" }, - "blob": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz", - "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==" - }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -1145,11 +1112,6 @@ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" }, - "callsite": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", - "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=" - }, "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", @@ -1359,21 +1321,11 @@ "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==" }, - "component-bind": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", - "integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=" - }, "component-emitter": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" }, - "component-inherit": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", - "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=" - }, "component-type": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/component-type/-/component-type-1.2.1.tgz", @@ -1689,6 +1641,11 @@ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==" + }, "define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", @@ -1782,46 +1739,36 @@ } }, "dom-serializer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", - "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.1.0.tgz", + "integrity": "sha512-ox7bvGXt2n+uLWtCRLybYx60IrOlWL/aCebWJk1T0d4m3y2tzf4U3ij9wBMUb6YJZpz06HCCYuyCDveE2xXmzQ==", "requires": { "domelementtype": "^2.0.1", + "domhandler": "^3.0.0", "entities": "^2.0.0" - }, - "dependencies": { - "domelementtype": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.2.tgz", - "integrity": "sha512-wFwTwCVebUrMgGeAwRL/NhZtHAUyT9n9yg4IMDwf10+6iCMxSkVq9MGCVEH+QZWo1nNidy8kNvwmv4zWHDTqvA==" - }, - "entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==" - } } }, "domelementtype": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", - "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.2.tgz", + "integrity": "sha512-wFwTwCVebUrMgGeAwRL/NhZtHAUyT9n9yg4IMDwf10+6iCMxSkVq9MGCVEH+QZWo1nNidy8kNvwmv4zWHDTqvA==" }, "domhandler": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", - "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz", + "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==", "requires": { - "domelementtype": "1" + "domelementtype": "^2.0.1" } }, "domutils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", - "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.4.2.tgz", + "integrity": "sha512-NKbgaM8ZJOecTZsIzW5gSuplsX2IWW2mIK7xVr8hTQF2v1CJWTmLZ1HOCh5sH+IzVPAGE5IucooOkvwBRAdowA==", "requires": { - "dom-serializer": "0", - "domelementtype": "1" + "dom-serializer": "^1.0.1", + "domelementtype": "^2.0.1", + "domhandler": "^3.3.0" } }, "dotenv": { @@ -1948,24 +1895,6 @@ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, - "encoding": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", - "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "requires": { - "iconv-lite": "^0.6.2" - }, - "dependencies": { - "iconv-lite": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz", - "integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, "encoding-japanese": { "version": "1.0.30", "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-1.0.30.tgz", @@ -1980,22 +1909,23 @@ } }, "engine.io": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.4.2.tgz", - "integrity": "sha512-b4Q85dFkGw+TqgytGPrGgACRUhsdKc9S9ErRAXpPGy/CXKs4tYoHDkvIRdsseAF7NjfVwjRFIn6KTnbw7LwJZg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-4.0.2.tgz", + "integrity": "sha512-sumdttqWLNjbuSMOSgDdL2xiEld9s5QZDk9VLyr4e28o+lzNNADhU3qpQDAY7cm2VZH0Otw/U0fL8mEjZ6kBMg==", "requires": { "accepts": "~1.3.4", "base64id": "2.0.0", - "cookie": "0.3.1", + "cookie": "~0.4.1", + "cors": "~2.8.5", "debug": "~4.1.0", - "engine.io-parser": "~2.2.0", + "engine.io-parser": "~4.0.0", "ws": "^7.1.2" }, "dependencies": { "cookie": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", - "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" }, "debug": { "version": "4.1.1", @@ -2012,68 +1942,10 @@ } } }, - "engine.io-client": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.4.4.tgz", - "integrity": "sha512-iU4CRr38Fecj8HoZEnFtm2EiKGbYZcPn3cHxqNGl/tmdWRf60KhK+9vE0JeSjgnlS/0oynEfLgKbT9ALpim0sQ==", - "requires": { - "component-emitter": "~1.3.0", - "component-inherit": "0.0.3", - "debug": "~3.1.0", - "engine.io-parser": "~2.2.0", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "parseqs": "0.0.6", - "parseuri": "0.0.6", - "ws": "~6.1.0", - "xmlhttprequest-ssl": "~1.5.4", - "yeast": "0.1.2" - }, - "dependencies": { - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "parseqs": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.6.tgz", - "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w==" - }, - "parseuri": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.6.tgz", - "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" - }, - "ws": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.4.tgz", - "integrity": "sha512-eqZfL+NE/YQc1/ZynhojeV8q+H050oR8AZ2uIev7RU10svA9ZnJUddHcOUZTJLinZ9yEfdA2kSATS2qZK5fhJA==", - "requires": { - "async-limiter": "~1.0.0" - } - } - } - }, "engine.io-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.1.tgz", - "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==", - "requires": { - "after": "0.8.2", - "arraybuffer.slice": "~0.0.7", - "base64-arraybuffer": "0.1.4", - "blob": "0.0.5", - "has-binary2": "~1.0.2" - } + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-4.0.1.tgz", + "integrity": "sha512-v5aZK1hlckcJDGmHz3W8xvI3NUHYc9t8QtTbqdR5OaH3S9iJZilPubauOm+vLWOMMWzpE3hiq92l9lTAHamRCg==" }, "enquirer": { "version": "2.3.6", @@ -2084,9 +1956,9 @@ } }, "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==" }, "error-middleware": { "version": "5.2.0", @@ -2801,11 +2673,11 @@ } }, "google-tts-api": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/google-tts-api/-/google-tts-api-0.0.4.tgz", - "integrity": "sha512-1fyRK4AxvtRrETxL59SwXgbY7cX3xhgOCbCaYu8BNlRZcjca0YeajA+50G7Jz3d6wpSxhxatz/lzMuomzWoNeQ==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/google-tts-api/-/google-tts-api-0.0.5.tgz", + "integrity": "sha512-hzZ2pMQpgXF/1LfD0I981O4+xdj4IJG5uO0KDHRWNLRAiIq6hPd7WYcbOQnHkyzGDaQVvk+Xnsc2jVfWDn2RGg==", "requires": { - "isomorphic-fetch": "^2.2.1" + "isomorphic-fetch": "^3.0.0" } }, "graceful-fs": { @@ -2850,11 +2722,6 @@ } } }, - "has-cors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", - "integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=" - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -2899,27 +2766,26 @@ } }, "html-to-text": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-5.1.1.tgz", - "integrity": "sha512-Bci6bD/JIfZSvG4s0gW/9mMKwBRoe/1RWLxUME/d6WUSZCdY7T60bssf/jFf7EYXRyqU4P5xdClVqiYU0/ypdA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-6.0.0.tgz", + "integrity": "sha512-r0KNC5aqCAItsjlgtirW6RW25c92Ee3ybQj8z//4Sl4suE3HIPqM4deGpYCUJULLjtVPEP1+Ma+1ZeX1iMsCiA==", "requires": { + "deepmerge": "^4.2.2", "he": "^1.2.0", - "htmlparser2": "^3.10.1", - "lodash": "^4.17.11", - "minimist": "^1.2.0" + "htmlparser2": "^4.1.0", + "lodash": "^4.17.20", + "minimist": "^1.2.5" } }, "htmlparser2": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", - "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", - "requires": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-4.1.0.tgz", + "integrity": "sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^3.0.0", + "domutils": "^2.0.0", + "entities": "^2.0.0" } }, "http-errors": { @@ -3057,11 +2923,6 @@ } } }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=" - }, "inflection": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", @@ -3271,12 +3132,12 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" }, "isomorphic-fetch": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", + "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", "requires": { - "node-fetch": "^1.0.1", - "whatwg-fetch": ">=0.10.0" + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" } }, "isstream": { @@ -4273,13 +4134,9 @@ } }, "node-fetch": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", - "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", - "requires": { - "encoding": "^0.1.11", - "is-stream": "^1.0.1" - } + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" }, "node-pre-gyp": { "version": "0.14.0", @@ -4417,11 +4274,6 @@ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" }, - "object-component": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", - "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=" - }, "object-inspect": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", @@ -4604,22 +4456,6 @@ "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.3.0.tgz", "integrity": "sha512-Lb7jN/4bTpiuGPrYy4tkKoUS8sTki8zacB5ke1p5zolhcSE4TlWgrlsxjrDTbG/dFVh07ck7X36hUf/b5V68pg==" }, - "parseqs": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", - "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", - "requires": { - "better-assert": "~1.0.0" - } - }, - "parseuri": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", - "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", - "requires": { - "better-assert": "~1.0.0" - } - }, "parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -5730,16 +5566,16 @@ "integrity": "sha512-iVICrxOzCynf/SNaBQCw34eM9jROU/s5rzIhpOvzhzuYHfJR/DhZfDkXiZSgKXfgv26HT3Yni3AV/DGw0cGnnw==" }, "socket.io": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.3.0.tgz", - "integrity": "sha512-2A892lrj0GcgR/9Qk81EaY2gYhCBxurV0PfmmESO6p27QPrUK1J3zdns+5QPqvUYK2q657nSj0guoIil9+7eFg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-3.0.1.tgz", + "integrity": "sha512-oVYbCQ4sCwm4wVi+f1bsE3YFXcvd6b4JjVP8D7IZnQqBeJOKX9XrdgJWSbXqBEqUXPY3jdTqb1M3s4KFTa/IHg==", "requires": { + "accepts": "~1.3.4", + "base64id": "~2.0.0", "debug": "~4.1.0", - "engine.io": "~3.4.0", - "has-binary2": "~1.0.2", - "socket.io-adapter": "~1.1.0", - "socket.io-client": "2.3.0", - "socket.io-parser": "~3.4.0" + "engine.io": "~4.0.0", + "socket.io-adapter": "~2.0.3", + "socket.io-parser": "~4.0.1" }, "dependencies": { "debug": { @@ -5754,6 +5590,11 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "socket.io-adapter": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.0.3.tgz", + "integrity": "sha512-2wo4EXgxOGSFueqvHAdnmi5JLZzWqMArjuP4nqC26AtLh5PoCPsaRbRdah2xhcwTAMooZfjYiNVNkkmmSMaxOQ==" } } }, @@ -5762,82 +5603,6 @@ "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.2.tgz", "integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g==" }, - "socket.io-client": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.3.0.tgz", - "integrity": "sha512-cEQQf24gET3rfhxZ2jJ5xzAOo/xhZwK+mOqtGRg5IowZsMgwvHwnf/mCRapAAkadhM26y+iydgwsXGObBB5ZdA==", - "requires": { - "backo2": "1.0.2", - "base64-arraybuffer": "0.1.5", - "component-bind": "1.0.0", - "component-emitter": "1.2.1", - "debug": "~4.1.0", - "engine.io-client": "~3.4.0", - "has-binary2": "~1.0.2", - "has-cors": "1.1.0", - "indexof": "0.0.1", - "object-component": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "socket.io-parser": "~3.3.0", - "to-array": "0.1.4" - }, - "dependencies": { - "base64-arraybuffer": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", - "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=" - }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "requires": { - "ms": "^2.1.1" - } - }, - "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "socket.io-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.1.tgz", - "integrity": "sha512-1QLvVAe8dTz+mKmZ07Swxt+LAo4Y1ff50rlyoEx00TQmDFVQYPfcqGvIDJLGaBdhdNCecXtyKpD+EgKGcmmbuQ==", - "requires": { - "component-emitter": "~1.3.0", - "debug": "~3.1.0", - "isarray": "2.0.1" - }, - "dependencies": { - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } - } - } - } - }, "socket.io-emitter": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/socket.io-emitter/-/socket.io-emitter-3.1.1.tgz", @@ -5886,15 +5651,19 @@ } }, "socket.io-parser": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.4.1.tgz", - "integrity": "sha512-11hMgzL+WCLWf1uFtHSNvliI++tcRUWdoeYuwIl+Axvwy9z2gQM+7nJyN3STj1tLj5JyIUH8/gpDGxzAlDdi0A==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.1.tgz", + "integrity": "sha512-5JfNykYptCwU2lkOI0ieoePWm+6stEhkZ2UnLDjqnE1YEjUlXXLd1lpxPZ+g+h3rtaytwWkWrLQCaJULlGqjOg==", "requires": { - "component-emitter": "1.2.1", - "debug": "~4.1.0", - "isarray": "2.0.1" + "component-emitter": "~1.3.0", + "debug": "~4.1.0" }, "dependencies": { + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -5903,11 +5672,6 @@ "ms": "^2.1.1" } }, - "isarray": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", - "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=" - }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -6351,11 +6115,6 @@ "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.209.0.tgz", "integrity": "sha512-KVsZ1NSpBodpo42/JIwTyau7SqUxV/qQMp2epSDPa99885LpHWLaVCCt8CWzGe4X5YIVNr+b6bUys9e9eEb5OA==" }, - "to-array": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", - "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=" - }, "to-csv": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/to-csv/-/to-csv-0.1.1.tgz", @@ -6715,9 +6474,9 @@ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" }, "whatwg-fetch": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.4.1.tgz", - "integrity": "sha512-sofZVzE1wKwO+EYPbWfiwzaKovWiZXf4coEzjGP9b2GBVgQRLQUZ2QcuPpQExGDAW5GItpEm6Tl4OU5mywnAoQ==" + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.5.0.tgz", + "integrity": "sha512-jXkLtsR42xhXg7akoDKvKWE40eJeI+2KZqcp2h3NsOrRnDvtWX36KcKl30dy+hxECivdk2BVUHVNrPtoMBUx6A==" }, "which": { "version": "2.0.2", @@ -6905,11 +6664,6 @@ "sax": "^1.2.1" } }, - "xmlhttprequest-ssl": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", - "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=" - }, "xregexp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", @@ -6975,11 +6729,6 @@ "fd-slicer": "~1.1.0" } }, - "yeast": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz", - "integrity": "sha1-AI4G2AlDIMNy28L47XagymyKxBk=" - }, "zip-dir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/zip-dir/-/zip-dir-1.0.2.tgz", diff --git a/package.json b/package.json index c5f2244..1dd18cf 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "apiai-promise": "^1.0.0", "archiver": "^5.0.2", "asterisk-manager": "^0.1.16", - "aws-sdk": "^2.788.0", + "aws-sdk": "^2.789.0", "basic-auth": "^2.0.1", "body-parser": "^1.19.0", "compare-versions": "^3.6.0", @@ -55,9 +55,9 @@ "extract-zip": "^2.0.1", "fast-json-patch": "^3.0.0-1", "git-last-commit": "^1.0.0", - "google-tts-api": "0.0.4", + "google-tts-api": "0.0.5", "html-pdf": "^2.2.0", - "html-to-text": "^5.1.1", + "html-to-text": "^6.0.0", "iconv": "^3.0.0", "imap": "^0.8.19", "ioredis": "^4.19.2", @@ -94,7 +94,7 @@ "sequelize": "^6.3.5", "shelljs": "^0.8.4", "simple-git": "^2.21.0", - "socket.io": "^2.3.0", + "socket.io": "^3.0.1", "socket.io-emitter": "^3.1.1", "socket.io-redis": "^5.4.0", "socketio-jwt": "^4.6.2", @@ -116,10 +116,10 @@ "zip-dir": "^1.0.2" }, "xcally": { - "shortHash": "c49361c", + "shortHash": "ecdc8e6", "branch": "develop", "tag": "", - "committedOn": "2020-11-11T11:13:07.000Z", - "buildDate": "2020-11-11T11:16:48.469Z" + "committedOn": "2020-11-11T11:49:20.000Z", + "buildDate": "2020-11-11T11:52:14.281Z" } } diff --git a/public/18-d70f1ac3d3deba577a0e.js b/public/18-d70f1ac3d3deba577a0e.js deleted file mode 100644 index 39dfea3..0000000 --- a/public/18-d70f1ac3d3deba577a0e.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 18-d70f1ac3d3deba577a0e.js.LICENSE.txt */ -var a2_0x3d6c=["loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput ",".md-virtual-repeat-scroller",'Invalid template! Template should be a "string" ',"%d દિવસ","destroyDialog","QBinomial QFactorial QGamma QHypergeometricPFQ QnDispersion QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ QuadraticOptimization Quantile QuantilePlot Quantity QuantityArray QuantityDistribution QuantityForm QuantityMagnitude QuantityQ QuantityUnit QuantityVariable QuantityVariableCanonicalUnit QuantityVariableDimensions QuantityVariableIdentifier QuantityVariablePhysicalQuantity Quartics QuartileDeviation Quartiles QuartileSkewness Query QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder","removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem ",'
',"tilemap_get_at_pixel tilemap_get_cell_x_at_pixel ","dddd [Ọsẹ̀ tón'bọ] [ni] LT","STATUS_PROCEEDING","clip-path","max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real ","sandal","soatBooleanCollection ","جولائی","видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение ","#ffea00","scrollingElement","SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE ","ids","\\$[0-9][0-9A-Fa-f]*","defaultViewBoxSize","detectMobileBrowsers","part_system_clear part_system_draw_order part_system_depth ","sci","q[qwxr]?\\s*\\(","^__(END|DATA)__$","[Praėjusį] dddd LT","בעוד %s","insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance ","Remove-Snapshot Remove-SpbmStoragePolicy Remove-StatInterval Remove-Tag Remove-TagAssignment Remove-TagCategory Remove-Template Remove-UsbDevice Remove-VAIOFilter Remove-VApp ","$$columns","600 700 800 A700","emStart ","_rtcOfferConstraints","A400",'"MD5-sess"',"wdtEDocument ","mount_fuji","mdOffsetSize","illegalRe","skipToggle","\\b\\d+(\\.\\d+)?(DT|D|T)","_referSubscribers","aHrefSanitizationWhitelist","DiigoBrowser","$mdBottomSheet","[aska g] LT","lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ","initialize","snake","removeTab","parameter","[object Object]","ado","[Sini lɛrɛ] LT","hsla(","#455a64"," tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference",'emit "sending" [request:%o]',"_removeFrom","[object WeakMap]","\\]\n","_getTabs","SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ","YYYY년 MMMM D일 A h:mm","toUpper","jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez","getScrollOffset","gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms ","%s sonra","@?mdpCancelLabel",'src="https://player.twitch.tv/?channel=',"mdPanel: The toggleClass method is in the process of being deprecated. ","caption-side"," newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc","типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs ","@?mdInputId","activeOption","getLabelForIndex","48px","режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса ","MediaDevices","New-NsxEdgeSelfSignedCertificate New-NsxEdgeStaticRoute New-NsxEdgeSubInterface New-NsxEdgeSubInterfaceSpec New-NsxFirewallRule New-NsxFirewallSavedConfiguration ","pointHoverRadius","isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader ","nextItem","SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK ","objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface ","char? close-input-port close-output-port complex? cons cos ","\\^\\{","пред %s","USERS_PSEUDOREFERENCE_CODE ","recvonly","roky","break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|","SUBTASK_BLOCK_STEP_CONTROL_PROPERTY ","pagh","Min ","execute","md-resize-textarea","[วัน]dddd[ที่แล้ว เวลา] LT","title subtitle fade_in fade_out fade_at clear_color color line_color ","-MM-DD[T]HH:mm:ss.SSS","AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH ","ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ","%d tuần","material.components.progressCircular","nth","alert-dismissible","cmp",'ng-focus="$mdTabsCtrl.hasFocus = true" ',"JsSIP Internal Error","#9900FF","terminate()","alias application boolean class constant date file integer list ","#5c6bc0","%d घण्टा","#ffb300","sekund","$sniffer","номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения ","Execute ","escapeToClose","ddd D MMM YYYY HH:mm","attachScopeListeners","all ","useBR","onEnd","offeredAnswers","^^mdHead","","mdPickers","clock1130","partition","deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ","#e0f2f1","~?[a-z$_][0-9a-zA-Z$_]*","#FFCC33","ދުވަސް %d","stp","بىر مىنۇت","codepenEmbed","windowTemplateUrl","autoSetItemPosition","attachCalendarPane","New-NsxFirewallSection New-NsxIpPool New-NsxIpSet New-NsxLoadBalancerApplicationProfile New-NsxLoadBalancerApplicationRule New-NsxLoadBalancerMemberSpec ","libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime ","dddd [seo caite] [ag] LT","ڇنڇر","setMin","translateFilterFactory","old","SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION ","ant","#aed581","presets","KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ","SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION ","SYSRES_CONST_REQUISITE_SECTION_TABLE21 ","scroll touchmove","reconstructPacket","mw-question-grid-builder.html","SYSREQ_EDOC_MODIFIED ","steam_download_scores_around_user steam_download_scores ",' ',"exclude source classpath destinationDir includes options sourceCompatibility ","$close($value)","^mwFormPageElementBuilder","SYSREF_USER_SUBSTITUTION ","evil","wptDate ","mdButton","longestText","ප.ව.","#00e5ff","mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell ","md-checked","%d ਦਿਨ","ien moanne","@lazyLoad","\\$(f[asn]|t|vp[rtd]|children)","icRoleCalculation ","ENTER","hash","ngDblclick","mdProgress","setChannel","setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal ","dddd [am] LT","[دیروز ساعت] LT","isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare ","soatEDocument ","chart-create","python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection ","promise","isoWeeksInYear","$$fn","promiseResolved","selectedDateText","tada","ILargeIntegerValue ","tab","interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log ","openPanels","ConfigurationError",'
',"md-icon","ހޮނިހިރު","telephone","މިނިޓު %d",' \n','links[j].setAttribute("target","_blank");}}}}();<\/script>','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-83dc4d490dc5704c6de5.js b/public/app-83dc4d490dc5704c6de5.js deleted file mode 100644 index c823107..0000000 --- a/public/app-83dc4d490dc5704c6de5.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * @license - * ************************************************************************* - * * * - * * xCALLY Motion - The Omnichannel Contact Center * - * * Copyright (c) Xenialab s.r.l. All Rights Reserved * - * * * - * ************************************************************************* - * * * - * * Email: info@xcally.com * - * * Website: https://www.xcally.com * - * * * - * ************************************************************************* - * * * - * * The SOFTWARE PRODUCT is protected by copyright laws and international * - * * copyright treaties, as well as other intellectual property laws and * - * * treaties. The SOFTWARE PRODUCT is licensed, not sold. * - * * * - * ************************************************************************* - */ -const a0_0xe3a1=['deleteSelectedTriggers','selectAllDynamics365Accounts','MOTIONDIALER.ALL_TEAMS','CreateOrEditFreshsalesConfigurationDialogController','isDefined','Smtp\x20properly\x20verified','America/Argentina/Tucuman','removeShortcut','pm_id','arraysetinterfacevar','intervalAttr','app.chat.chatQueues','motion2.home.chat:','ClickSend','ms-nav-button','update','openDraft','kind','selectedColor','Unknown','Tag\x20name','arraySmtp.service','Europe/Vienna','Options','\x27strict\x27','vtigerAccount','rpc/fax/queues/waitinginteractions','rpcQueues','ServicenowConfiguration\x20properly\x20deleted!','userFaxQueue:remove','createOrEditFreshdeskConfiguration','TIMEOUT','The\x20chanSpy\x20will\x20be\x20deleted.','SYSTEM:GETsmsQueue','#1a3865','selectColor','Japanese\x20Male','SIP','addConfiguration','arraytrustrpid','TOOLS.NEW_TEMPLATE','apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)','onRemoteCall\x20->\x20evt,\x20data','arrayvideosupport','America/Puerto_Rico','Admin','saveProjectAs','DASHBOARDS.CALL_SAVED','CreateOrEditMailCannedAnswerDialogController','Maja\x20(Polish,\x20Female)','SYSTEM:GET_QUEUES','app.login','Spanish\x20(Spain)','delete\x20ZendeskAccounts','European\x20Italian\x20Female','holdHook\x20->\x20payload','Delete\x20FaxAccount','api.intSalesforceConfiguration.update','$translateProvider','X-Answer-After','getNavigation','app.tools.sounds','Variables','totalSteps','STAFF.NEW_USERPROFILE','icon-email','MOTIONDIALER.SELECTED_AGENTS','uploadState','propertiesExtra','EQUALS','setCurrentStep','selectedVoicemails','mozHidden','/voicemails','chain','cutdigits','api.faxAccount.save','user_has_fax_interactions:save','removeAllListeners','faxAccountApp','voice/mails/:id/messages','Whatsapp\x20Report\x20Queue','EditOpenchannelAccountAppcloseDialogController','apps.marketplace','fax/reports/transfer/:id/clone','Delete','No\x20answers\x20available','then','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog.html','/users','cm/contacts/:id','setAgentCapacity','IvrCampaign\x20properly\x20cloned','-07:00','api.chatQueue.save','it-IT','saveInterval','Voicemail\x20properly\x20deleted!','ngFlow','QuickPanelController\x20as\x20vm','mail','SYSTEM:GETmailAccounts','src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog.html','newTemplate','SYSTEM:ADDFIELDS','getProactiveActions','SETTINGS.CUSTOMIZATIONS','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html','ngValue','Chantal\x20(French,\x20Canadian,\x20Female)','CHAT.CHATWEBSITES','dynamics365Account','Outgoing','currentTab','app/main/apps/whatsapp','api.intZohoConfiguration.save','f50000','aug','The\x20theme\x20\x22','ChatQueue\x20properly\x20deleted!','icon-auto-fix','createOrEditOdbc','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html','\x27gmail\x27','put','Portuguese\x20(Nrazilian)','Right\x20Join','smsStatusTime','src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html','TOOLS.EDIT_CANNEDANSWER','saveVoicemail','sessionId','onOperatorChange','campaigns/:id/clone','smsCapacity','stateRegistry','description','error-500','Indian/Maldives','de-DE','servicenowAccount','availableStates','UserSmsQueue','Maori','fr-FR','\x271\x27','getSalesforceAccounts','CreateOrEditIvrCampaignDialogController','userProfile@getResources','openAdvancedSearch','\x20will\x20be\x20deleted.','html-area','DASHBOARDS.CHAT','\x27cm_hopper_final\x27','FaxQueue','openchannelQueueReport','calleridname','api.voiceMail.delete','Occitan','bodyEl','file_id','deleteMailQueue','Loading...','savechanSpy','Twilio','Days','Read','deleteReport','\x27password\x27','SMS.REALTIME','contactManager','id,name,interval,IntervalId','Interval','Spanish\x20(Nicaragua)','addNewContact','ds.clock','Telephone\x20properly\x20created','src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html','SmsQueueId','getExtractedReports','affectedRows','#chat-dialog','calleridnum','ZohoConfiguration\x20deleted!','integrations/freshdesk/accounts/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?','Supported\x20extensions:\x20','Delete\x20SmsCannedAnswer','getOutboundRouteApps','apps.whatsapp.realtime','exportSelectedDynamics365Accounts','unavailable','\x27dropRate\x27','accesskeyid','api.intServicenowAccount.update','translate','api.cm.lists','cmCompany','createOrEditVoiceQueue','getWhatsappAccountApps','api.voiceQueue.delete','cm/companies/:id/clone','chatInteraction@get','src/js/modules/main/apps/settings/views/system/system.html/system.html','api.dashboardItem.delete','delete\x20tag','America/Phoenix','voiceMails','SYSTEM:GETUSERS','CreateOrEditPauseDialogController','SYSTEM:DELETECONFIGURATIONFIELD','loadNextPage','ngCookies','Admin\x20Only','Astrid\x20(Swedish,\x20Female)','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','QueueCampaignController\x20as\x20vm','members/reports/:id','Delete\x20Smtp','pt-PT','userProfile/resources/describe','tTxX','onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?','America/Santa_Isabel','Session\x20save\x20error','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','api.analyticReportField.delete','externaldial','Your\x20password\x20properly\x20updated','Email\x20Account','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html','removed','DISPOSITION_DELETE_MESSAGE','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html','Armenian','startcase','HANGUPCAUSE_27','userProfiles/describe','Canadian\x20English\x20Female','saveTelephone','amber-fg','analytics/custom_reports/:id/query','onConnect','utcOffset','MsNavigationNodeController\x20as\x20vm','app.integrations.sugarcrmAccounts.edit','selectedField','EU\x20(Ireland)','tag.name','browserGroupId','SYSTEM:GETvoiceMails','Africa/Algiers','Spanish\x20(Colombia)','fullname','addNewChatQueue','Tamil\x20(Singapore)','analytics/extracted_reports/describe','deleteVoiceRecording','\x20has\x20been\x20downloaded!','SYSTEM:GETtrunk','internal','createOrEditDisposition','maxdigit','CreateOrEditSquareRecordingDialogController','trustAsResourceUrl','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html','queues','selectedItems','api.intSugarcrmConfiguration.save','develop','onUpdateSmsInteraction','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','hangupHook\x20->\x20sessionToHangup','\x20and\x20','faxQueue:update','intervals/:id/clone','+08:45','searchInProgress','msHorizontalStepperStep','WhatsappAccounts','minDateRange','outbound','lists','SYSTEM:GET_CLOUDPROVIDERS','api.user.removeApiKey','URL','SmtpController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','MOTIONDIALER.EDIT_HOPPER','reject','America/Chicago','TriggersController\x20as\x20vm','chat/websites/:id/system_avatar','icon-console','sms/accounts/:id/clone','day','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts.html','SmsQueue\x20updated!','da-DK','IndexFactory','copyReport','whatsappAccount','\x27report_jscripty_answers\x27','SYSTEM:DELETEsmsQueue','appdata.name','Pacific/Apia','webbar:transfer','forIn','Outbound\x20route\x20not\x20deleted!','UserSmsDashboardGeneralController','\x27bottom_right\x27','ChatProactiveAction\x20deleted!','selectAllSugarcrmAccounts','outboundanswerRate','400','src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues.html','getFields','apps.dashboards','api.openchannel.account','deleteSelectedOpenchannelAccountInteractions','src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html','\x27ja\x27','Report\x20saved!','MailQueuesController\x20as\x20vm','SugarcrmConfiguration\x20properly\x20created','api.intZohoConfiguration.update','id-ID','Boxed','Invalid\x20transfer','userProfile/resources/:id/clone','WHATSAPP.REALTIME','countContactsQueueCampaignHopperFinal','Delete\x20Customization','getRegisteredPalettes','api.intDynamics365Account.delete','code','api.voiceExtension.update','rpcOpenchannelQueues','ChatCannedAnswer\x20properly\x20deleted!','apps.voice.inboundroutes','Hopper\x20deleted!','/customDashboards','onWithoutApply','getBlackLists','es-CO','src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html','Australia/Lord_Howe','FaxAccount\x20properly\x20saved!','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','\x27inband\x27','queuecallerleaveAt','voiceExtension@get','mail_queue_waiting_interaction:remove','value','treeDefaultInstance','sms/accounts/:id/interactions','Tajik','app/login','/api/chat/websites/','openInteraction','Description\x20has\x20been\x20deleted!','800','headerWhiteLabel','OpenchannelQueueId','xx-klingon','CreateOrEditZohoConfigurationDialogController','Custom','onUpdateFaxInteraction','refreshContacts','English\x20(Canada)','\x27info\x27','TOOLS.NOTIFICATIONS.','Asia/Magadan','||FIELD||OLD||NEW||\x0a','teal-bg','updatedAt','chatAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','\x27openchannel_interactions\x27','InteractionDialogController','Times\x20New\x20Roman','selectedTriggerActions','onSaveOutbound','div_session_','\x20will\x20be\x20uninstalled.','getResponseSheetRow','uk-UA','ChatQueuesController','jscripty/sessions/reports/:id/questions','actions','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog.html','motion.cookieAlertHide:','app/main/apps/staff','user:save','rpcVoiceQueuesChannels','af-ZA','deleteDynamics365Account','app.motiondialer.realtime.queue_calls','/errors/error-404','onUserCalled','mail/interactions/:id/messages','src/js/modules/main/apps/dashboards/views/custom/custom.html/custom.html','icon','Azerbaijani','/errors/error-500','app.openchannel.realtime.queues','dateTime','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceRecordings?','America/Kentucky/Louisville','src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html','scrollEl','firstDayMonth','enableDtmfTone','ServicenowConfiguration\x20properly\x20saved!','The\x20zendeskConfiguration\x20will\x20be\x20deleted.','VOICE.EDIT_OUTBOUNDROUTE','pm2','{color}|*','auto','JSCRIPTY.YES','Raveena\x20(English,\x20Indian,\x20Female)','FaxQueue\x20properly\x20created','getVoicemails','api.pm2.delete','saveUserProfile','voiceQueue:update','Delete\x20GlobalCustomField','CreateOrEditNetworkDialogController','newCloudProvider','whatsappInteraction','square/projects/:id/users','app.integrations.zendeskAccounts','nameField','voiceCallReport','pound','cmHopperHistory','SYSTEM:DELETEcannedAnswer','en-NG','isChecked','app.settings.license','CONTACTMANAGER.LISTS','getResources','delete\x20Reports','Please\x20enable\x20browser\x20notifications!','EditOpenchannelAccountAppqueueDialogController','createOrEditCustomDashboard','TagInteractionDialogController','getLabelByMessage','\x20ORDER\x20BY\x20','deleteSelectedQueueCampaigns','associatedReports','getUserProfiles','voiceDialReport','\x27chat_interactions\x27','Cannot\x20find\x20module\x20\x27','stopping','api.dashboardItem.update','sms/interactions/:id/messages','api.rpc.notify','app.toolbar','ChatQueue\x20updated!','KEY_CODE','api/users/','es-VE','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','exportSelectedVariables','$emit','app.voice.realtime.outbound_calls','faxStatusTime','\x20selected','currentStepInvalid','Latvian','ANALYTICS.RENAME','freshdeskAccount','openFromEditor','Javanese\x20(Indonesia)','selectedSalesforceConfiguration','values','accent','MailAccountsController','Delete\x20action','icon-table-edit','deleteCannedAnswer','transferNumber\x20required','chanSpy','AgentGeneralInteractionController','row','api.whatsappQueue.delete','DASHBOARDS.SELECT_STATUS','path','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','WHATSAPP.SELECTED_TEAMS','mail/queues/:id/clone','xm-mail-content-','getPreview','Turkish\x20(Turkey)','500','ScreenRecordingplayController','newDynamics365Configuration','drafts','Subject','hasPermission','Delete\x20Dynamics365Configuration','TrunkController\x20as\x20vm','voice_outbound_channel:remove','chatMessage','KHOMP','UsersController','getAiTools','Romanian','Norwegian\x20Bokmal\x20(Norway)','app.dashboards.general.mail','selectAllAiTools','location','boolean','COUNT\x20DISTINCT','minimize','Odbc\x20properly\x20created','EditChatWebsiteAppgotopDialogController','-09:00','hidden','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','CONTACTMANAGER.ERRORS.PHONEBAR_API','ivrCampaignHoppers','MsSearchBarController\x20as\x20vm','GET_TRUNK','CompaniesController\x20as\x20vm','Fax\x20Queues','outboundRoutes','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','Europe/Simferopol','UserSmsAccount','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','api.chatProactiveAction.save','MailCannedAnswer\x20properly\x20saved!','auenglishfemale','\x27report_sms_transfer\x27','collapsable','api.contact.update','DASHBOARDS.LAST_MONTH','src/js/modules/main/apps/settings/views/license/license.html/license.html','apps','app.motiondialer.ivrCampaigns.edit','api.disposition.save','VOICE.INBOUNDROUTES','addApplications','selectSession','MusicOnHold\x20properly\x20created','Tahoma','Smtp\x20properly\x20deleted!','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','Classic+','deleteMailAccountInteraction','QueueCallsMotionDialerRealtimeController\x20as\x20vm','DASHBOARDS.DASHBOARDS','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html','startCase','paginatedInteractions','&token=','\x27fewestcalls\x27','auto\x20answer\x20enabled\x20after:','unknown','voice_outbound:save','api.cannedAnswer.save','/api/chat/interactions/','goToTrunk','outboundNoAnswerCallsDay','dateStart','paused','dualMultiselectOptions','app.fax.faxQueues.edit','Lists\x20association\x20has\x20been\x20updated!','Gujarati','mailMessage','app.mail.mailSubtatuses','selectedOpenchannelQueues','light','/cloudProviders','getInboundRoutes','addAllCondition','Jscripty\x20Answers','undo','Gsm','MOTLICENSE','random','active','customFields','square/projects/:id','voice/mohs/:id/clone','voiceQueues','SYSTEM:GETchatWebsite','msWidgetEngine','Europe/Budapest','Canadian\x20French\x20Female','stepNumber','deleteSubjectConfirm','sms/reports/transfer/:id/clone','fax/messages/:id/download','deleteWhatsappAccountInteraction','getFaxInteractions','selectedCustomDashboards','rpc/outbound','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','square/details/reports/:id','The\x20salesforceAccount\x20will\x20be\x20deleted.','lang','MailAccount','CONTACTMANAGER.NEW_CONTACT','mixmonitorid','Scheduler','warn','contacts','selectedWhatsappAccountApps','app/quick-panel','integrations/freshdesk/accounts/:id/configurations','chatCannedAnswer','notifications/','Error500Controller','MAIL.NEW_MAILACCOUNT','chat/websites/:id/interactions','MouseOver','GET_COMPANY','selectedSection','motion2.home.voice:','queue.name','api.mailAccount.update','app.motiondialer.ivrCampaigns','goToEditState','deskAccount','CHAT.NEW_CHATQUEUE','campaigns/:id/hopper_histories','src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html','interval_id','has','mailSubtatuses','src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view.html','AgentReject','onUpdateMailInteraction','getScheduledCalls','app.chat.chatWebsites','icon-account-circle','offlineForm','deleteConfirm','timer-stopped','QueuesFaxRealtimeController','tagInteraction','Khmer\x20(Cambodia)','SmsQueueController\x20as\x20vm','Jan','cm/hopper/opencontacts','createdAt','selectReport','SYSTEM:GET_TREEREPORTS','SYSTEM:UPDATECONFIGURATIONFIELD','Openchannel\x20Account','allDispositions','delete\x20internalroute','cm/contacts/describe','apps.analytics.reports','sms/accounts/:id/send','Carla\x20(Italian,\x20Female)','bn-IN','cloudProviders','\x27KHOMP\x27','stopMonitor','onSaveQueue','selectedCompany','SETTINGS.LICENSE_REQUEST_SENT','getOpenchannelAccounts','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html','deleteSelectedVoicemailMessages','marketplace','smsQueues','ltr','addSound','squareProject@get','XCALLY-MOTION-PROGRESS=1','setMinutes','INTEGRATIONS.EDIT_DESKCONFIGURATION','VOICE.EDIT_INTERNALROUTE','src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html','src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html','isPause','application','ar-QA','eurcatalanfemale','Hopper\x20properly\x20saved!','Russell\x20(English,\x20Austrialian,\x20Male)','awsPollyVoice','cm/hopper_history/:id','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html','ZohoConfiguration\x20properly\x20created','SystemController','hide','offset','newSugarcrmAccount','Filipino\x20(Philippines)','shutdown','UserMailAccount','Predictive','Tag\x20properly\x20created','deleteSelectedUsers','Europe/Belgrade','app.sms.smsAccounts.edit','getMetricValue','ERROR\x20OPEN\x20INTERACTION','DATE\x20(','penalty','app.openchannel.openchannelQueues','Sesotho','SYSTEM:GET_MAILACCOUNTS','/triggers','refer','chat_queue_waiting_interaction:remove','$http','List\x20','Please\x20retry\x20with\x20a\x20new\x20file','apps.home.openchannel','internaldial','Hong\x20Kong\x20Cantonese\x20Female','clone','loadedSection','ParentId','mwFormBuilder','SETTINGS.NEW_CLOUDPROVIDER','DuplicateContactDialogController','gotoTelephones','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html','Horizontal\x20Navigation','STAFF.EDIT_TEAM','SETTINGS.NEW_SMTP','\x20is\x20not\x20supported!','\x27never\x27','plugin','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?','GET_LIST','Korean\x20Female','hopperHistory','preproduction','api.intVtigerConfiguration.delete','READ_PERMISSION','sipcalluniqueid','unmute','WebsiteAlias','id,name,strategy,type,penalty','Context','src/js/modules/main/apps/tools/views/tags/tags.html/tags.html','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','chat/websites/:id/customer_avatar','integrations/salesforce/accounts/:id/configurations','addNewAllCondition','type','CONTACTS\x20NOT\x20AVAILABLE','template@get','Attachment\x20is\x20mandatory','delete\x20applications','none','mailbox','integrations/desk/configurations/:id/descriptions','focus','Start\x20new\x20recording','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','arrayoptions','SmsQueue\x20properly\x20deleted!','queryHistory','deleteconfirm','2nd','addNewGeneral','Penelope\x20(Spanish,\x20US,\x20Female)','voice/transfers/reports/describe','Whatsapp','Variable\x20properly\x20saved!','gotodashboardgoto','OPENCHANNEL.EDIT_','TOOLBAR.FRENCH','routeId','UserFaxAccount','triggers','integrations/sugarcrm/accounts/:id/configurations','ZohoAccountConfigurationsController','journey','newDeskAccount','MailCannedAnswer\x20deleted!','exportSelectedTemplates','CampaignId','gray','SMS.ALL_AGENTS','Module\x20not\x20included\x20in\x20the\x20license','selectChangedAdvanced','CTI\x20URL','AND','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','\x27mail_queues\x27','cmContact@getHopperFinals','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html','Jacek','arrayannounce_position','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html','$urlRouterProvider','intFreshdeskAccount','YYYY-MM-DDTHH:mm:ssZ','/help','openchannel/accounts/:id/users','userProfiles','replyMessage','status_code','Indonesian\x20(Indonesia)','analytics/default_reports/describe','src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html','playback','onIntegrationSelection','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?','\x20succeded!','telegram','delete\x20chatProactiveAction','Message','newMailCannedAnswer','Europe/Minsk','integrations/dynamics365/configurations/:id/clone','enableUncompleteSave','getFreshsalesAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','smsInteractionDownload','IvrCampaign','loop','getConfig','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?','AgentsController\x20as\x20vm','Technology/Resource','src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html','proactive','MOTIONDIALER.MOTIONDIALER','destcalleridnum','motionThemes','apps.voice.voicemails','/smtps','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog.html','\x27report_square\x27','DeskAccountController','SYSTEM:UPDATEVOICECALLREPORT','Miguel','chat','CDR(prefix)=noprefix','selectedExtractedReports','onLogout','users/:id/sms/interactions','isOpen','SETTINGS.NETWORKS','The\x20zohoConfiguration\x20will\x20be\x20deleted.','users/:id/chat_interactions','TCL:\x20\x20path','SugarCRM','api.template.delete','=viewModel','getVoiceChannels','chat/queues/:id/users','Carmen\x20(Romanian,\x20Female)','SystemController\x20as\x20vm','app.chat.realtime.queues','America/Recife','api.cannedAnswer.update','Metric','mobile','TemplatesController\x20as\x20vm','Unable\x20to\x20init\x20media\x20devices','License\x20update\x20failed!','CHAT.SELECTED_AGENTS','users/:id/mail_accounts','campaign','reportRoute','SYSTEM:GETCONFIGURATION','msAdvancedSearch','createOrEditTemplate','$lte','America/Indiana/Vevay','AboutController\x20as\x20vm','DASHBOARDS.RECALLME','adminOnly','DASHBOARDS.NONE','#pageTitle','+14:00','deleteVariable','SYSTEM:DELETEdashboard','CHAT.EDIT_CHATQUEUE','UserProfiles','Scheduled\x20call','createOrEditInternalRoute','src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts.html','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','X-Answer-Mode','QueueCampaignHopperFinalsController','DASHBOARDS.TAGS','AVG','apps.contactmanager','version/reset','European\x20Spanish\x20Male','deleteSelectedIvrCampaigns','European\x20Turkish\x20Male','generateApiKey','endOfConversation','connect','/chanSpies','api.user.changePassword','newPause','SYSTEM:GET_TAGS','intZohoAccount','-01:00','Galician\x20(Spain)','intFreshsalesField','CustomDashboard\x20updated!','EditMailAccountAppsystemDialogController','#tab-container','/sounds','mwFormViewer','mail/queues/:id/teams','Description','webkitHidden','ANALYTICS.REMOVE','integrations/vtiger/accounts/:id/configurations','autoStart','drop','UserList','SYSTEM:GETintFreshsalesAccount','OpenchannelAccount','call_id','delete\x20contact','contents','Rejected','TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD','\x27minutes\x27','America/Cayenne','chat/internal/messages/users','WhatsappQueues','command','ReportController','hasResourcePermission','SYSTEM:GETcampaign','Australia/Sydney','home.sms','arrayhost','secondsS','EditChatWebsiteAppcloseDialogController','Tag\x20properly\x20saved!','DASHBOARDS.LAST_YEAR','VOICE.EDIT_VOICERECORDING','record','app.sms.realtime','UserController','api.intZohoAccount.delete','attachments/:id/clone','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','onMessageUpdate','msNav::expandMatchingToggles','voicePause','Delete\x20WhatsappQueue','api.userProfile.delete','Pacific/Niue','Delete\x20CannedAnswer','PausesController','Cannot\x20upload\x20the\x20sound','MsNavController','intFreshdeskAccount@get','Dynamics365Account\x20properly\x20created','ExtractedReports','EditSmsAccountAppcloseDialogController','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','\x20uploaded\x20successfully','FAX.FAX','CannedAnswer\x20properly\x20deleted!','\x27report_whatsapp_transfer\x27','AgentqueueaddController','duration','exportSelectedTriggers','chat/interactions/:id/my_messages','isLastStep','delete\x20OutboundRoutes','fax/accounts/:id/send','DeskAccount\x20properly\x20deleted!','Smtp','whatsapp/messages/describe','sms/messages/describe','DASHBOARDS.SELECT_AGENT','SYSTEM:DELETEintFreshdeskAccount','integrations/salesforce/configurations/:id/clone','INTEGRATIONS.NEW_SALESFORCEACCOUNT','saveOrPublishProject','externalDial','EditInternalApphangupDialogController','selectedZendeskAccounts','+00:00','delete\x20Contexts','SMS.SELECTED_TEAMS','src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html','createOrEditVtigerAccount','intServicenowConfiguration','mailInteraction:save','icon-help','CreateOrEditReportFieldDialogController','src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps.html','disposition@get','extractedReport','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html','America/Rio_Branco','Report\x20properly\x20copied!','app.chat.chatWebsites.edit','addNewCustomDashboard','Delete\x20SugarcrmAccount','chatQueueReport','The\x20plugin\x20will\x20be\x20deleted.','$inject','\x27IN\x27','addIntervals','month','substring','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','\x20has\x20been\x20done!','STAFF.NEW_TEAM','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?','CONTACTMANAGER.EDIT_HOPPER','contrast2','inbound','flipped','addNewServicenowAccount','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html','INTEGRATIONS.DESKACCOUNTS','selectedSmsAccounts','motion.token','\x20ASC)','CreateOrEditPluginDialogController','isDraft','Camino','startTimeAttr','\x27GP\x27','Delete\x20MailAccount','getMailQueuesWaitingInteractions','CreateOrEditSmsCannedAnswerDialogController','Start','SYSTEM:DELETEvoiceChanSpy','The\x20openchannelQueue\x20will\x20be\x20deleted.','uriLocation','TOOLS.EDIT_INTERVAL','show','Asia/Hebron','selectedVoiceQueues','updateConfirm','UserVoiceQueue','agreement','selectedUserProfiles','closeTab','requestSucceeded','createOrEditWhatsappQueue','\x274\x27','voiceMusicOnHold@get','Subject\x20deleted!','id,name,mapAgentsId,waiting','','createOrEditReportField','Pacific/Wake','SIP/','phoneBarEnableSettings','+04:00','DeskConfiguration\x20properly\x20created','getVoiceCalls','.ms-stepper-step-content','ToolbarController\x20as\x20vm','Trunk','Contact\x20properly\x20saved!','animate','Lao\x20(Laos)','VoiceRecordingController','chat.chatWebsites','UserWhatsappDashboardGeneralController\x20as\x20vm','countContactsIvrCampaignHopperFinal','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27yes\x27','SYSTEM:GETchatAccounts','createOrEditFreshdeskAccount','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','newChatCannedAnswer','hue-2','openchannelStatusTime','SYSTEM:DELETEintServicenowAccount','TriggerAllId','monthNumber','layoutStyle','app.voice.realtime.telephones','savedAsDraft','FreshsalesAccounts','QUICKPANEL.MESSENGER_DISABLED','arrayenvelope','contentWithToolbar','pendingCondition','toInteger','currentReport','address','AgentBusyFactor','Spanish\x20(Argentina)','ms-stepper','openedAt','MailSubstatuses','Url','arraynat','America/Dawson_Creek','msNavigationService','count','int','integrations/desk/accounts/:id/configurations','\x27fr\x27','$invalid','icon-crosshairs','deselectVoicemails','deselectTrunks','PreviewReportDialogController','FAX.FAXQUEUES','app.integrations.deskAccounts','FEMALE','Cannot\x20upload\x20the\x20plugin','Italian\x20(Italy)','cm/hopper_history/describe','saveSalesforceConfiguration','subjects','apps.tools.sounds','OPENCHANNEL.OPENCHANNEL','-createdAt','Klingon','newVtigerConfiguration','.html','IS\x20NOT\x20NULL','Indian/Chagos','ringingVolume','getSugarcrmAccounts','mail/reports/queue/:id','ListId','reserved','UpdatesController','faxAccount@get','CreateOrEditSugarcrmConfigurationDialogController','CreateOrEditOpenchannelQueueDialogController','arraysetqueueentryvar','showIncompleteSubmitButton','intFreshdeskField','openchannelApplication','Ricardo','api.cloudProvider.save','EditMailAccountAppgotoifDialogController','SYSTEM:DELETEuser','vm.selectedTab','grey-A700-bg','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','XCALLY-MOTION-ANSWER=0','groupId','Filiz\x20(Turkish,\x20Female)','green-300-fg\x20icon-phone-hangup','EditInboundApp','app.contactmanager','VtigerAccountsController','models','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog.html','maxTimeUnit','help','\x20MMM','api.variable.delete','comedia','WHATSAPP.NEW_WHATSAPPACCOUNT','load','Zulu\x20(South\x20Africa)','\x27token\x27','Macedonian','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?','saveSalesforceAccount','RR\x20Memory','findBy','SYSTEM:DELETEopenchannelQueue','Token','EditInboundAppinternaldialDialogController','src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd.html','macro','diff','\x27mail_messages\x27','FaxAccountsController','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html','deselectDynamics365Accounts','step','membername','onLogged','motion.folded','angular-cron-jobs','$notIn','volume','#ececee','Joanna\x20(English,\x20US,\x20Female)','foreignTable','arrayattach','initDevice','createOrEditQueueCampaignHopper','red-300-fg\x20icon-phone-hangup','currentPage','getJscriptyProjects','Outbound','ComposeWhatsappInteractionDialogController','deleteZohoConfiguration','deleteSelectedUserProfiles','initializeRealtimeCampaign','msSearchBar','integrations/desk/accounts/:id','gotoZohoAccounts','twchinesefemale','FreshdeskAccountConfigurationsController','isSameOrigin','lll\x20Z','exportSelectedSmsAccountSmsCannedAnswers','COUNT\x20(','api.voicePrefix.delete','SalesforceAccount\x20updated!','set','Delete\x20CustomDashboard','DASHBOARDS.ME','saveFreshdeskAccount','interactionsgoto','Kannada\x20(India)','/customizations','icon-checkbox-blank-circle-outline','api.dashboard.delete','The\x20musiconhold\x20will\x20be\x20deleted.','SYSTEM:DELETEsquareRecording','differenceWith','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html','delete\x20template','deselectDispositions','MusicOnHolds','api.voiceMusicOnHold.save','ZendeskConfiguration\x20properly\x20saved!','blacklistadddialog','Jacek\x20(Polish,\x20Male)','phoneBarAutoAnswer','UserId','cdr/:id/clone','addTeams','queryChannels','canSelect','ListDispositionsController','pages','+02:00','progresslogin','/dashboards','tags/describe','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','INTEGRATIONS.NEW_DESKCONFIGURATION','Wide','FaxAccountController','ui.router','HANGUPCAUSE_38','cm_contacts','GET_PAUSE','Delete\x20FreshdeskConfiguration','chatWebsiteOfflineMessages','Agent\x20password\x20properly\x20updated!','dispose','SYSTEM:GET_TEMPLATES','CHAT.REALTIME','file','$setUntouched','IS\x20EMPTY','InboundRoutesController\x20as\x20vm','ticketType','createdAt,updatedAt,id,name,channel,status,description','Antarctica/Syowa','monthTo','chatQueuesTotal','msNavigationAgentService','app.contactmanager.companies.edit','America/Cuiaba','api.intSalesforceAccount.update','Ring','Yiddish','createOrEditContext','Motion\x20WebRTC\x20Bar\x200.2.0','fax/accounts/:id/dispositions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?','getAbandonedCalls','Analytics','fax/messages/:id/reject','#interaction-content','Upload\x20completed','mar','WebRTC','ZendeskAccountsController\x20as\x20vm','id,name,crudPermissions','buffer','\x27whatsapp_interactions\x27','HANGUPCAUSE_18','hkchinesefemale','selectAllQueueCampaigns','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html','screenRecordings','newGeneral','actions/describe','hideLoadingIndicator','Salli','fax/reports/transfer/describe','api.intZendeskConfiguration.update','selectAllMailSubstatuses','app.integrations.freshdeskAccounts.edit','currentconferenceSessions','browser','delete\x20voiceRecording','getLockedItems','createOrEditProject','SmsAccount\x20properly\x20deleted!','startPredictive','screenRecording@get','src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html','SugarcrmConfiguration\x20properly\x20saved!','DISPOSITION_DELETE_MESSAGE_CHILDREN','STAFF.CLOSE','exportSelectedWhatsappQueues','internalroutes','canned_answers/describe','DASHBOARDS.CHOOSE','FreshsalesAccount\x20updated!','getMusicOnHolds','id,name,dialActive','whatsappTransferReport','AgentHomeDashboardMultiChannelOpenchannelController','integrations/salesforce/accounts/:id','scriptName','ZohoAccount','deleteSelectedOutboundRoutes','openchannel_queue_waiting_interaction:remove','onRemoveUserChatQueue','pick','DropRate','onStart','deleted','apps.tools.triggers','toNumber','team','\x20session,\x20data','chart.js','src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html','Danish','hangup','intFreshdeskConfiguration','FreshdeskAccount','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html','seconds','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','differenceBy','Hungarian\x20(Hungary)','src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play.html','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html','isApp','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?','scrollTop','$apply','smsAccountApp','Africa/Tripoli','blue-A700-fg','exportSelectedMailQueues','removeAttachment','app.callysquare','cm/hopper/describe','IntervalsController','SMS.EDIT_SMSCANNEDANSWER','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html','from','The\x20voiceRecording\x20will\x20be\x20deleted.','$timeout','CreateOrEditContactDialogController','cannedAnswers','createOrEditSound','separatorKeys','route','Turkish','rpcFaxAccounts','integrations/zendesk/accounts/:id/configurations','onSaveVoiceQueueReport','apps.settings.smtps','saveOpenchannelAccountApp','voice/queues/reports/:id/clone','ChatWebsites','userVoiceQueue:save','delete\x20hoppers','attrVoiceQueues','finishCallback','Are\x20you\x20sure?','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','\x27pdf\x27','European\x20Dutch\x20Female','countDown','alreadyExistsTab','Dynamics365Configuration\x20deleted!','EditInternalAppagiDialogController','delete\x20offlineMessages','src/js/modules/main/apps/tools/views/templates/templates.html/templates.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','api.campaign.update','\x27zh-TW\x27','The\x20mailSubstatus\x20will\x20be\x20deleted.','HH:mm:ss','Scheduled\x20Calls','apps.fax.realtime','canTransfer','ceil','CopyReportDialogController','tag@get','Geraint','userSmsQueue:save','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','search','Brian\x20(English,\x20British,\x20Male)','exportSelectedIvrCampaignHopperBlacks','get_node','vtigerAccounts','There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.','selectAllOpenchannelQueues','loggedIn','registry','api.cmList.update','INTEGRATIONS.ZENDESKACCOUNTS','CreateOrEditvoicePrefixDialogController','rpc@getOpenchannelQueues','api.intServicenowAccount.delete','Dial\x20Report','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html','addNewInboundRoute','UNIX_TIMESTAMP\x20(','The\x20zendeskAccount\x20will\x20be\x20deleted.','Error\x20creating\x20company!','apps.mail.mailSubtatuses','Europe/Oslo','src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html','squareOdbc','faxQueuesTotal','IvrCampaignsController\x20as\x20vm','newchanSpy','voiceStatusTime','app.contactmanager.lists.edit','selectAllMusicOnHolds','networks/describe','/queue_params','exportSelectedIvrCampaignHopperHistories','cm/hopper_final/voice/campaign/moveContacts/:id','newMailQueue','selectedTriggerAnyConditions','app.dashboards.custom','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html','app.fax.faxQueues','contactName','arraysort','mail_queue:save','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html','app.voice.voicePrefixes','erlangCalls','Trebuchet\x20MS,Helvetica,sans-serif','CreateOrEditTagDialogController','SmsAccountInteractionsController','cannedAnswer@get','\x20will\x20be\x20restored.','voiceQueue:save','dispositionsValues','deleteGeneral','addNewExtractedReport','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','timeRangeTo','MxGraphUpdateInfoController','Australia/Melbourne','imagesLoaded','sms_queue_waiting_interaction:save','createOrEditSmsAccountSmsCannedAnswer','Mizuki\x20(Japanese,\x20Female)','deleteSelectedDeskAccounts','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27inuse\x27','verticalNavigationFullwidthToolbar','whatsappInteractionTags:save','list','getMailAccountApps','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE','ms-navigation-folded\x20ms-navigation-folded-open','Customer\x20Ip','ONLY_IF_OPEN','accentPalette','params','createdAt,updatedAt,ContactId,phone','Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.','src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts.html','TOOLBAR.NOTIFICATION_TITLE','digits','newSalesforceConfiguration','getMessagesAlignment','Africa/Casablanca','whatsapp/accounts/:id/clone','Sounds','selectedDeskAccounts','Antarctica/Davis','fri','Australia/Hobart','triggerActions','AiTools','deleteSelectedZendeskAccounts','selectedFreshdeskAccounts','$location','removeInfoBar','tables','data5','MAIL.SELECTED_AGENTS','amd','/generals','apps.sms','smsQueuesTotal','delete\x20Odbcs','newNetwork','Asia/Tashkent','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html','onRemoveOpenchannelQueueChannel','onFieldSelection','onSearch','msMasonryItem:finishReLayout','createOrEditWhatsappAccountWhatsappCannedAnswer','apps.home.mail','collapse-animation','chatCapacity','enable','General\x20properly\x20saved!','flipWidget','America/Cayman','startTime','timeoutId','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html','-starttime','$setPristine','CreateOrEditChatProactiveActionDialogController','botname','TelephonesVoiceRealtimeController','Warning','deleteSmsQueue','sectionColor','EditChatWebsiteAppdialogflowDialogController','dashboarditem','screenRecording\x20properly\x20created','app.voice.internalroutes.edit','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','app.voice.voicemails','Delete\x20Voicemail','MOTIONDIALER.CLONE_IVRCAMPAIGN','exportcsvcontactsexport','delete\x20vtigerConfiguration','integrations/zendesk/configurations/describe','API:GET_COMPANY_SECTION','INTEGRATIONS.NEW_FRESHSALESACCOUNT','delete\x20freshsalesConfiguration','verticalNavigation','hopperFinal\x20#','Uighur','&autoStart','saveVariable','fax/applications/:id','America/Rainy_River','QueuesMotionDialerRealtimeController','.draggable','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','MsThemeOptionsController','interpolate','eurspanishmale','app.fax.faxAccounts','src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html','../../../../../../../assets/images/avatars/customer.png','firstLevelDisposition','onplay','total','createdAt,updatedAt,id,name,type,selector,timeout','callysquare','snakeCase','sugarcrmAccount','ms-form-wizard-form','\x27chat_messages\x27','delete\x20zohoAccount','SYSTEM:GET_APIKEY','api','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html','WHATSAPP.ALL_TEAMS','\x27alaw\x27','sugarcrmConfiguration','fax/interactions/:id/messages','Whatsapp\x20Account','apps.help','apps.settings.license','showWhatsappInteraction','dashboarditemForm','selectAllContacts','DashboardItem\x20properly\x20deleted!','ms-search-bar-expanded','h-128','openchannel-interaction','sms','saveCloudProvider','addNewZohoAccount','globalStatusFilter','Contacts','Europe/Copenhagen','html5Mode','intZohoAccount@get','America/Monterrey','columnWidth','IvrCampaignController','centered','ivrCampaign','selectedIndex','exportSelectedTriggerAllConditions','src/js/modules/login/login.html/login.html','selectAllContexts','setTags','app.voice.musiconholds.edit','invalid','CONTACTMANAGER.SELECTED_AGENTS','Connection\x20succeded!','SYSTEM:UPDATElicense','rpc/mail/queues/:id/notify','unreadMessage','deselectExtractedReports','TelephonesController\x20as\x20vm','CreateOrEditInternalRouteDialogController','CreateOrEditTelephoneDialogController','Dynamics365Account','platform','realtime','app.staff.userProfiles.edit','api.mailSubstatus.update','app/main/apps/tools','SmsAccount','OpenchannelInteractionId','MarketplacePluginsController','rtl','plainBody','accountConnected','SYSTEM:DELETE.customDashboard','\x27zh-HK\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?','Serbian','SYSTEM:GET_TEAMS','gosub','user_has_chat_interactions:remove','delete\x20chanSpy','CreateOrEditVariableDialogController','CustomDashboard\x20properly\x20created','onInternalMessageSave','delete\x20Schedules','src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html','embedOptions','DeskAccountConfigurationsController','deleteSmtp','America/Metlakatla','eurgermanmale','resources','calls','VoiceRecordingSentimentStatisticsController','integrations/servicenow/configurations/describe','rpc/trunks','phoneBarPrefixRequired','CONTACT\x20NOT\x20AVAILABLE','prefixes','America/Edmonton','WhatsappQueue','motion2.home.abandoned.bull.calls:','selectedMailQueues','whatsapp_queue_waiting_interaction:remove','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog.html','Validation\x20error','resetForm','SYSTEM:GET_SMSACCOUNTS','gotoPreviousStep','AgentGeneralJscriptyController','selectAllMetrics','exports','arrayinsecure','SYSTEM:GETwhatsappAccounts','addUsers','agentname','InternalRoutesController','called','\x27SIP/{{multipleUsers.name}}\x27','app.openchannel.openchannelAccounts.edit','onFailed\x20->\x20session,\x20data','block','Hopper\x20properly\x20deleted!','app.integrations.freshdeskAccounts','phoneBarRemoteControl','api.cloudProvider.update','streets','addAgents','transfer','icon-fire','video','cmCompany@get','weeks','selectedDescriptions','moveContactsQueueCampaignHopperFinal','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog.html','intSalesforceAccount@get','European\x20French\x20Female','globalCustomField','Japanese\x20(Japan)','intFreshsalesConfiguration','timer-stop','paragraph','MohSound\x20properly\x20saved!','src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical.html','SYSTEM:queueCampaign.REMOVELIST','variable.name','/:id','tr-TR','app.contactmanager.globalCustomFields','European\x20Spanish\x20Female','delete\x20smsQueue','directive','mail/substatuses/:id/clone','settings/:id/clone','generals','EditWhatsappAccountAppcloseDialogController','badges','TOOLBAR.CHINESETRADITIONAL','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view.html','omit','integrations/desk/configurations/:id/subjects','saveFaxQueue','deleteDashboardItem','ispeechAsrModel','gotoFreshdeskAccounts','agentcalledAt','arrayextensionMonitor','cs-CZ','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?','rpcVoiceQueues','MsNavigationController\x20as\x20vm','NO\x20AUTH','CreateOrEditProjectDialogController','getText','Project','isFunction','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog.html','rpc@getVoiceQueues','America/Bogota','expand-animation','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','users/:id/recordings','IvrCampaign\x20properly\x20saved!','chat_queue_waiting_interaction:save','webbar:unhold','getMailSubstatuses','jaws','SYSTEM:GET_FAXACCOUNTS','selectAllScheduler','SmsCannedAnswer\x20deleted!','friend','msMasonry:relayout','onSearchBarExpand','/whatsappAccounts','America/North_Dakota/New_Salem','System','acceptedMessages','userWhatsappQueue:save','fi-FI','exportSelectedInternalRoutes','\x27report_member\x27','CreateOrEditExtractedReportDialogController','intZendeskAccount@get','Delete\x20MailQueue','onTabScroll','trustAsHtml','integrations/desk/configurations/describe','selectSession\x20->\x20session','Telephones','globalDispositions','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html','chatQueue:save','processes','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html','users/:id/mail_interactions','dialogflow','delete\x20intervals','app.tools.schedules','allCondition','app.staff.users','defaultEntry','saveOutboundRouteApp','error','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','getChanSpies','selectedVtigerAccounts','deleteSelectedSubjects','Slovenian','openDialog','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html','integrations/zendesk/fields/:id','app.analytics.metrics','downloadWhatsappInteraction','Firefox','smsAccounts','gotoProcess','ChatWebsitesController','grey','Wav','conf','showOpenchannelInteraction','userChatQueue:save','targetScope','times','/dynamics365Accounts','ScreenRecordingsController','CreateOrEditMailAccountDialogController','JscriptyProjectController','Pacific/Gambier','createdAt,updatedAt,id,name,service,data2,data1','Voicemails','openchannel/accounts/:id/send','selectedIvrCampaignHoppers','is-IS','awsPollyRegion','SquareRecording\x20properly\x20deleted!','pid','hasChildrenPermissions','Message\x20properly\x20rejected!','OPENCHANNEL.OPENCHANNELQUEUES','appid','getResponseSheetHeaders','INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION','integrations/servicenow/accounts/:id/fields','api.intServicenowConfiguration.delete','createdAt,updatedAt,id,name,html,description','Pacific/Kosrae','deselectSmsQueues','SYSTEM:GETConfigurations','CreateOrEditDynamics365AccountDialogController','Delete\x20condition','pause','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE','inboundrouteApp','Plugins','fontColor','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html','hangupHook\x20->\x20payload','SYSTEM:DELETEvoiceRecording','Save\x20draft','delete\x20faxAccount','data1','The\x20vtigerConfiguration\x20will\x20be\x20deleted.','container','whatsapp/interactions/:id/download','apps.voice.outboundroutes','questions','onSaveChannel','CreateOrEditChatGroupDialogController','createOrEditSchedule','MailAccountsController\x20as\x20vm','src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd.html','outerHeight','src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html','deleteAction','delete\x20OpenchannelQueues','app.staff.telephones.edit','deleteSelectedOpenchannelAccountApps','size','searchOptions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatCannedAnswer?','AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','dashboardItems','SYSTEM:DELETEnetwork','newItem','delete\x20Projects','userProfile','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','addNewDashboardItem','\x20ms','\x27yes\x27','\x20Contacts\x20selected','chat/interactions/:id/abandon','Yahoo','refreshAbandonedCalls','killProcess','multiBarChart','FaxAccount\x20updated!','onUpdateVoiceQueue','intVtigerConfiguration','...','voice/calls/reports/describe','UpdateDialogController','sms/interactions/:id/clone','draft','.mp4','selectedSmsAccountSmsCannedAnswers','$on','delete\x20voiceQueue','api.intDeskConfiguration.update','\x27user\x27','buttonClicked','fax/interactions/:id','0.12','ms-navigation-horizontal-mobile-menu-active','EditSmsAccountAppdialogflowDialogController','firstLastDayMonth','Message\x20has\x20been\x20sent!','Network\x20properly\x20saved!','MusicOnHoldMohSoundsController','Radio\x20Buttons','faxQueueReport','onSaveOpenchannelInteraction','wed','getResponseSheet','\x27infobip\x27','selectedChanSpies','jscriptyProjects','Widget\x20deleted!','smsCannedAnswer','The\x20voicePrefix\x20will\x20be\x20deleted.','Disabled','UserMailDashboardGeneralController','\x27squared\x27','/api/originate/','SYSTEM:GET_SECTIONS_PERMISSIONS','layoutMode','selectedDynamics365Configuration','MailQueue','outboundQueues','background','The\x20screenRecording\x20will\x20be\x20deleted.','saveAgent','Arguments','Report\x20properly\x20saved!','addNewSmsQueue','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','getHeader','selectAllIvrCampaigns','Europe/Amsterdam','UserchangepasswordController','api.tag.save','dashboards/describe','The\x20general\x20will\x20be\x20deleted.','deleteContact','selectedFaxQueues','QueueCampaignresetlistController','pdf','apps.home.chat','apps.tools.intervals','Chat\x20Queues','blue-grey-A200','selectedZohoConfiguration','network','version@get','analytics/metrics/describe','deleteSalesforceConfiguration','isValid','limit','\x27s\x27','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics.html','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27strict\x27','createOrEditWidget','showFooter','SYSTEM:GETVARIABLES','app.dashboards.general.sms','selectAllVoiceQueues','SYSTEM:GETopenchannelAccount','smsStatus','green-300-fg\x20icon-phone-in-talk','QueuesVoiceRealtimeController','app.analytics','deselectZohoAccounts','\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','allReportsSelected','close','boxed','Asia/Kolkata','Asia/Oral','GET_SMS_ACCOUNT','createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','su-ID','Updates','\x27report_fax_queue\x27','chatTransferReport','intVtigerAccount@get','FAX.EDIT_FAXQUEUE','CreateOrEditFreshsalesAccountItemDialogController','\x27externip\x27','RunReportDialogController','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html','transferCallback','General','Europe/Gibraltar','Malayalam\x20(India)','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','users/:id/api_key','#9ea1a9','setLockedItem','delete\x20description','cmHopperBlack','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','ComposeFaxInteractionDialogController','home.contacts','intDynamics365Configuration','userChatQueue:remove','ms-nav-toggle','whatsapp/interactions/:id/clone','InternalRoutes','pause@get','dayOfWeekTo','Australia/Eucla','mailInteractions','CreateOrEditOpenchannelAccountDialogController','clear','addNewGlobalCustomField','Delete\x20Interval','api.intSugarcrmAccount.update','newOpenchannelCannedAnswer','\x27ru\x27','Delete\x20Telephone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','\x27loose\x27','notifications','error-404','Please\x20select\x20a\x20variable','eu-west-3','INTEGRATIONS.SALESFORCEACCOUNTS','','call\x20with\x20session\x20Id\x20','selectedChatWebsiteApps','ProjectspermissionaddController','WhatsappCannedAnswer\x20properly\x20deleted!','deselectFaxAccounts','src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html','chat/reports/queue/:id/clone','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','chatWebsites','OpenchannelQueue\x20properly\x20deleted!','WhatsappAccount','secondDisposition','deleteSelectedCompanies','CreateOrEditFreshdeskAccountItemDialogController','formData','deleteSelectedProjectSessions','INTEGRATIONS.NEW_ZOHOACCOUNT','dnd','File\x20too\x20big','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?','EditInternalAppexternaldialDialogController','right','The\x20zohoAccount\x20will\x20be\x20deleted.','iframe','ScreenRecordingsController\x20as\x20vm','mailCannedAnswer\x20#','settings/:id/logo_login','deleteFaxQueuesWaitingInteractions','getQueueCampaigns','createdAt,updatedAt,id,name,description,crudPermissions','deleteTriggerAnyCondition','QueuesOpenchannelRealtimeController','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','\x20has\x20been\x20updated!','Delete\x20ChatWebsite','SmtpController\x20as\x20vm','intDeskAccount','chat/groups/describe','addNewOpenchannelQueue','voice/queues/:id/teams','0px','api.intVtigerAccount.delete','plugins','selectedSounds','rpc@getSmsQueues','getAgentLabel','right_join','mailMessage:update','initializeRealtimeQueue','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html','userProfiles/:id/resources','icon-cog','MIN','VOICE.INTERNALROUTES','Czech\x20(Czech\x20Republic)','MusicOnHoldController\x20as\x20vm','ispeechAsrLanguage','deleteSelectedTags','\x27invalid\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?','get_path','sms_account_id','QueueCampaignagentaddController','odbcs','CreateOrEditReportDialogController','Email\x20Report\x20Queue','America/Regina','terminate','The\x20servicenowAccount\x20will\x20be\x20deleted.','voice/mails/describe','answerRate','America/Moncton','OutboundCallsVoiceRealtimeController','mail/interactions/:id/tags','selectedQueueCampaignHopperHistories','splice','Canadian\x20French\x20Male','ha1','mail/accounts/describe','://','$parsers','googleCloudTtslanguageCode','deselectIntervals','CreateOrEditDeskAccountItemDialogController','VtigerConfiguration\x20deleted!','deselectUsers','saveQueues','Javanese','xCALLY\x20Motion','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html','sms_queue:save','ChanSpies','OpenchannelAccountsController','disable','filterHiddenStep','delete\x20fields','SYSTEM:GET_FIELDS','freshdeskAccounts','DESC','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','changePassword','STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE','allowedItems','ROUND','getVoiceQueuesPreview','FaxQueuesController','steps','deleteSelectedChatWebsiteChatCannedAnswers','queueNotifyMethod','SYSTEM:DELETEmailQueue','/projects','api.voiceMail.update','deviceId','channelstatedesc','userProfiles/:id/clone','strict','Linux','integrations/servicenow/fields/:id','GeneralsController\x20as\x20vm','apps.voice','arrayzone','gotoSmsAccounts','saveTag','+01:00','SMS.NEW_SMSACCOUNT','icon-calendar-clock','smsQueue@get','Edited','app.sms.realtime.agents','ERROR\x20OPEN\x20CONTACT','functions','api.setting.save','faxMessage:save','Pacific/Pago_Pago','createOrEditIvrCampaign','Asia/Kuching','rurussianmale','motionBullFields','addNewDeskAccount','License\x20properly\x20updated!','msDatepickerFix','DashboardItem\x20properly\x20saved!','Tags\x20has\x20been\x20set!','newscreenRecording','getTime','Asia/Qatar','OpenchannelQueuesController\x20as\x20vm','getOutboundRoutes','/video','faxCurrentCapacity','scrollHeight','English\x20(Kenya)','align','sortableTable','Number','analytics/default_reports/:id/clone','SettingsController','SMS.SELECTED_AGENTS','QueuesWhatsappRealtimeController','CALLYSQUARE.ALL_USERS','exportSelectedVoicePrefixes','STAFF.EDIT_USERPROFILE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?','VIDEO.WRONG_EXTENSION','runconfirm','\x2741\x27','deleteTelephone','addMinutes','\x27timeout\x27','CustomDashboards','square/odbc/describe','EditInternalAppqueueDialogController','createTag','options','voice/extensions/:id/clone','smsTransferReport','isBetween','src/js/modules/core/directives/ms-phonebar/prefix/dialog.html/dialog.html','contrast4','The\x20smsCannedAnswer\x20will\x20be\x20deleted.','api.trunk.save','EditOpenchannelAccountAppdialogflowDialogController','data4','Some\x20resources\x20enabled','users/:id/fax_accounts','wait','VOICE.RUNTRANSCRIBE_VOICERECORDING','app.motiondialer.realtime.queues','notification','startMonitor','deleteServicenowAccount','extraData','ComposeMailInteractionDialogController','analytics/tree_reports/describe','chatWebsiteChatCannedAnswers','QueueCallsVoiceRealtimeController','saveSugarcrmAccount','dialer','whatsappInteraction:update','fontSize_sizes','createOrEditFreshsalesConfiguration','templateSettings','w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','contcts','\x27pt-br\x27','ComposeOpenchannelInteractionDialogController','You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix','Contact\x20Relation\x20Update','Context\x20properly\x20deleted!','sidebar','api.campaign.save','CreateOrEditTriggerDialogController','src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime.html','name.name','Latin','xAnswerAfterSec','openchannelCurrentCapacity','WHATSAPP.ALL_AGENTS','INTEGRATIONS.EDIT_VTIGERACCOUNT','newCustomization','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html','ghost','api.smsQueue.save','Checkboxes','userFaxQueue:save','arraystrategy','SYSTEM:GETreport','http://127.0.0.1:','WhatsappInteractionId','The\x20contact\x20is\x20in\x20the\x20hopper','CHAT.ALL_TEAMS','ms-stepper-step','+08:30','campaigns/describe','Asia/Amman','online','direction','ChatWebsiteOfflineMessagesController','automations/:id/conditions','South\x20America\x20(São\x20Paulo)','predictiveIntervalAvgHoldtime','uniqueIdentifier','square/odbc/:id/test','onVoiceQueue','createOrEditList','AgentsVoiceRealtimeController\x20as\x20vm','bg-BG','DASHBOARDS.YESTERDAY','US\x20West\x20(Oregon)','$parent','square/details/reports/:id/clone','SYSTEM:DELETEchatQueue','addNewIvrCampaign','trunk@get','createdAt,updatedAt,id,name,description,dialPrefix','wav49','Team\x20properly\x20deleted!','newSound','SYSTEM:GETpauses','newIndex','whatsapp/reports/queue/:id','sumBillable','loading...','showDialpad','ProjectBuilderController','getDeskConfiguration','VoiceQueue\x20properly\x20deleted!','Cross\x20Join','America/Atikokan','SalesforceAccountConfigurationsController','sendDTMF','iPhone','VtigerAccountConfigurationsController','CreateOrEditServicenowAccountItemDialogController','VOICE.VOICEQUEUES','cmContact@get','api.contact.save','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','Spanish\x20(Costa\x20Rica)','msMasonry:relayoutStarted','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog.html','api.voiceContext.update','Tamil\x20(Sri\x20Lanka)','deselectAgents','Teams\x20association\x20has\x20been\x20updated!','destaccountcode','InboundRouteController\x20as\x20vm','zh-HK','DeskAccountsController','msMasonry:relayoutFinished','*|\x0a','Invisible','moveSelectedIvrCampaignHopperFinals','AgentHomeDashboardController','CDR(type)=inbound','addJscriptyTab','^msNav','Georgia,serif','recordingFormat','schedule','newAgent','saveCompany','Dutch','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?','selectedFaxAccountInteractions','autoreply','Preview','Interactions','getServicenowAccounts','odbc_id','ChatWebsiteagentAvatarController','sounds/:id/download','ngAria','SYSTEM:DELETEvoiceMusicOnHold','src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog.html','api.pm2.save','lastLoginAt','Mobile','OpenchannelQueue\x20properly\x20created','after','removeClass','dispositions','deleteSelectedTriggerActions','Comic\x20Sans\x20MS','src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html','QueuesFaxRealtimeController\x20as\x20vm','analytics/custom_reports/:id/run','intVtigerField','ZendeskAccountController\x20as\x20vm','createOrEditDescription','indexOf','AgentHomeDashboardMultiChannelSmsController','#21467e','ERROR','version/fetch','\x27us-east-1\x27','project_id','elapsed','Malay\x20(Malaysia)','elements','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','deleteIvrCampaign','14400','users/:id/openchannel_interactions','account','zohoAccount','Odbc\x20properly\x20saved!','SYSTEM:GETintVtigerAccount','mailCannedAnswer','Naja','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','Invalid\x20tag\x20name.','Brazilian','SmsCannedAnswer\x20properly\x20created','fax/applications/describe','Estonian','','voice/prefixes/:id','integrations/dynamics365/fields/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?','apps.chat.chatWebsites','SYSTEM:queueCampaign.RESETLIST','openProject','SugarcrmAccounts','app.openchannel.openchannelAccounts','availableOperators','slice','\x2721\x27','sms/queues/:id/members','animate-height','agentUrl','editHopper','createOrEditTriggerAllCondition','Urdu\x20(Pakistan)','createdAt,updatedAt,id,name,interval','en-GH','\x27clickatell\x27','\x27sms_interactions\x27','EditSmsAccountAppagentDialogController','createOrEditTriggerAnyCondition','Popup','UserProfilecloneController','Delete\x20WhatsappAccount','src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog.html','createVidaooSession','canned_answers/:id','chat/groups/:id/members','ContactId','addNewCustomField','motion2.user:','onSaveWhatsappQueue','deleteSelectedVtigerAccounts','Trunk\x20properly\x20cloned','delete\x20context','integrations/freshdesk/configurations/:id/clone','DASHBOARDS.LAST_WEEK','api.user.update','user_has_mail_interactions:save','arraydirectmedia','English','deleteSelectedOpenchannelAccountOpenchannelCannedAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','SalesforceAccountsController','truepriority','deleteInboundRouteApp','JSCRIPTY.EDIT_PROJECT','deselectQueueCampaigns','draggable','EditSmsAccountAppsystemDialogController','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html','deselectInboundRoutes','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','QueueParamsMotionDialerRealtimeController\x20as\x20vm','jscripty/projects/describe','getVoiceQueuesChannelRedirect','delete\x20Metrics','Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20','newFreshsalesConfiguration','customDashboards','rpc/mail/accounts','chat/internal/messages/describe','^msWidget','whatsapp/queues/:id/teams','api.screenRecording.update','deleteSquareRecording','ispeechTtsLanguage','Call\x20%s\x20not\x20found\x20or\x20already\x20completed','monthDayTo','recordings','N/A','in-right-aligned','PUT','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html','integrations/zendesk/configurations/:id/clone','desktopNotification','INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION','\x27voice_recordings\x27','\x27EU\x27','abandonRate','campaigntype','DeskAccountController\x20as\x20vm','app.help','MAIL.UNKNOWN','src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog.html','apps.tools.cannedAnswers','getHopperFinals','color','UpdateLicenseDialogController','angucomplete-alt','magicline','InteractionId','triggerAllConditions','selectAllChatWebsites','The\x20variable\x20will\x20be\x20deleted.','selectedOpenchannelAccountOpenchannelCannedAnswers','countbusyretry','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers.html','getSmsInteractions','OPENCHANNEL.UNKNOWN','Numbers\x20to\x209','flow','app','FaxRealtimeController','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','incoming','TOOLS.NEW_TAG','arrayleavewhenempty','STAFF.USERPROFILES','isNumber','rpcChatQueuesWaitingInteractions','DispositionsController','IvrCampaignlistaddController','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html','header','CreateOrEditZohoAccountItemDialogController','4800','isEstablished','Round\x20Robin\x20Memory','\x27cm_hopper_history\x27','Europe/Andorra','rpc/fax/queues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?','attachments','List\x20properly\x20created!','motion.user:','Whatsapp\x20Queues','$resource','app.staff.users.edit','UserOpenchannelDashboardGeneralController\x20as\x20vm','MsTimelineController','/zohoAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','Pacific/Majuro','Integration_Tab','Select','getChatInteractions','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html','CreateOrEditHopperCampaignIdDialogController','create','newChatQueue','showLoadingIndicator','red','sortBy','readAsText','America/Resolute','gotorealtimegoto','deleteSelectedSmsAccounts','nb-NO','src/js/modules/main/apps/settings/views/updates/updates.html/updates.html','Swahili\x20(Kenya)','ignoreMouseEvents','delete\x20network','QUICKPANEL.INFO','selectedCompanies','Restored','xxxxxxxx','api.pm2.update','optionalStep','callerID','integrations/salesforce/accounts/describe','MailAccountagentaddController','Emma\x20(English,\x20British,\x20Female)','Attached\x20pm2\x20process\x20successfully\x20stopped','blurCollapse','src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html','api.intVtigerAccount.update','analyticExtractedReport@get','Voicemail\x20properly\x20saved!','America/Paramaribo','deselectTags','h264','unreadTotalGroupMessages','saveCustomDashboard','remote-audio','apps.contactmanager.lists','src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage.html','getTrunks','Atlantic/Reykjavik','integrations/dynamics365/configurations/:id/descriptions','fax/accounts/:id/users','FaxAccount\x20properly\x20created','top\x20right','users/:id/sms_accounts','trigger@get','MAIL.ALL_AGENTS','TOOLS.SCHEDULER','Motion\x20License\x20Request','CreateOrEditOpenchannelCannedAnswerDialogController','addBlackLists','ms-navigation-horizontal-item','Streets','FaxAccountagentaddController','sourceid','/login?token&userId','addQueues','app.fax.realtime.trunks','apiKey','migrations','getVariables','Joey','spy','api.telephone.save','TagId','Europe/Uzhgorod','OPENCHANNEL.ALL_TEAMS','chat/offline_messages/:id','Low','MohSound\x20properly\x20created','saveReport','api.intZendeskConfiguration.save','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html','EditSmsAccountApptagDialogController','integrations/zoho/configurations/:id/fields','QueueCampaign\x20properly\x20deleted!','filter','\x20will\x20be\x20reset.','smsCannedAnswer\x20#','Dynamics365AccountController','deleteSmsAccountSmsCannedAnswer','This\x20Week','Interval\x20deleted!','arrayratingType','saveSmsQueue','moveConfirm','Agent\x20properly\x20deleted!','es-GT','The\x20project\x20cannot\x20be\x20started','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html','whatsappPause','QueueCampaigncloneController','triggers/:id/clone','onUpdateSmsQueue','VtigerAccount','Ruben','downloadSmsInteraction','getMap','intervals/:id/sub_intervals','OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER','ChatQueuesController\x20as\x20vm','app.sms','fax/messages/:id','gotoServicenowAccounts','eurdanishfemale','msNavTitle','scope','call','api.intVtigerAccount.save','settings/:id/logo','off','Member\x20Report','VIDEO.CANT_DOWNLOAD_THIS_FILE','DisposeAbandonedCallDialogController','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules.html','deleteWhatsappQueuesWaitingInteractions','htmlContent','Whatsapp\x20Report\x20Transfer','\x27booked\x27','-name','Decode\x20File\x20Error','deleteAllCondition','integrations/dynamics365/fields/:id/clone','body','baseUrl','ExecIf','evt','STAFF.EDIT_TELEPHONE','api.interval.save','/globalCustomFields','exportSelectedReports','toggleMsNavigationFolded','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?','CreateOrEditMailSubstatusDialogController','src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html','home.openchannel','SquareRecordingsController\x20as\x20vm','saveItem','null','erlangCallToSecond','onSearchBarCollapse','min','cloudProvider','SYSTEM:DELETEjscriptyProject','content-type','millis','integrations/servicenow/accounts/describe','src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html','\x27ringall\x27','onSaveSmsQueueChannel','=startTime','dropRate','deleteSelectedVoicemails','setBaseUrl','MOTIONDIALER.EDIT_IVRCAMPAIGN','ChatWebsiteId','api.analyticExtractedReport.update','addNewQueueCampaign','Tigrinya','saveMusicOnHold','quick-panel','fax/queues/:id/users','ScreenRecordings','$mdThemingProvider','motion2.home.sms:','

','delete\x20interactions','googleTtsLanguage','ulaw','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?','integrations/sugarcrm/configurations/:id/descriptions','/mailAccounts','hasSectionPermissions','DASHBOARDS.CLOSED','icon-checkbox-marked-outline','voice/queues/:id/members','Swedish\x20(Sweden)','Thai','VOICE.NEW_MOHSOUND','removeSquareProjects','America/St_Johns','apps.openchannel.realtime','delete\x20customDashboard','FreshsalesAccount\x20properly\x20tested','whatsappCapacity','select','MotionDialerRealtimeController','preferredLanguage','+10:30','square/reports/describe','ended','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd.html','ServicenowAccount\x20properly\x20deleted!','canDelete','US\x20East\x20(N.\x20Virginia)','app.voice.realtime.queue_params','#ms-shortcut-add-menu','selectedFaxAccounts','sound.name','ngResource','EditOpenchannelAccountAppnoopDialogController','startsWith','updating','msNavIsFolded','src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html','icon-heart','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html','SYSTEM:GETlists','/api/settings/1/favicon','integrations/dynamics365/configurations/:id/fields','trustedHtml','$stateChangeStart','apps.voice.voiceQueues','chatWebsite@get','Plugin\x20properly\x20created','attachments/:id/download','class','q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','multiselect','newContext','Raveena','EditWhatsappAccountAppnoopDialogController','MetricId','pieChart','whatsappCannedAnswer\x20#','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html','Start\x20Date','editCondition','FreshdeskAccountController\x20as\x20vm','app/toolbar','model','app.mail.mailAccounts.edit','subsections','api.agent.save','app.fax.realtime.accounts','Restore\x20Contacts','SYSTEM:GETinterval','id,fullname,name,internal','add','refresh','src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html','deselectSmsAccounts','addons','voiceQueuesLog/describe','urlParse','handleResultClick','timeRangeFrom','charAt','isOnHold','Asia/Damascus','msUtils','InboundRoutes','mail/substatuses/:id','fax/accounts/:id','showMailInteraction','updateLocalStorage','automation','currentUser','main','newAction','Delete\x20Company','America/Bahia_Banderas','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE','limitObjectFromTo','deleteSelectedMetrics','\x27gsm\x27','showMenu','EditFaxAccountApp','setText','CustomizationsController','className','Dynamics365AccountsController','requestLicense','SYSTEM:GETvoiceRecording','palettes','America/Creston','rpc@getVoiceQueuesChannels','servicenow','dashboard:update','users/:id/contacts','apps.integrations.dynamics365Accounts','fontSize','8782fa8','integration','customFieldsForm','SYSTEM:DELETEintDynamics365Account','isMobile','QueueCallsMotionDialerRealtimeController','delete\x20screenRecordings','','getProcesses','Delete\x20MailCannedAnswer','selectedMailAccountInteractions','EditMailAccountAppintervalDialogController','SETTINGS.UPDATE','addCondition','SmsAccount\x20properly\x20saved!','rpcTelephones','integrations/sugarcrm/configurations/:id/fields','selectedProjectSessions','\x27custom\x27','FreshdeskAccount\x20properly\x20created','getDynamics365Configuration','arraysendrpid','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html','LoadingIndicatorService','function','icon-cloud-download','intSugarcrmField','src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers.html','api.openchannelMessage.accept','FaxQueueId','Europe/Helsinki','theme','IntervalsController\x20as\x20vm','sip','OmniWeb/','selectAllWhatsappAccounts','ms-nav-toggle-items','Win','SMS.ALL_TEAMS','US\x20West\x20(N.\x20California)','Africa/Accra','delete\x20zendeskConfiguration','\x27port\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?','attrs','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','removeItems','trunk:save','Reset\x20List','Chat\x20Interaction','app.voice.voicemails.edit','api.intZohoAccount.update','One\x20Time','createOrEditListCustomField','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','exportSelectedVoiceQueues','webrtc::call','openchannelTransferReport','apps.home.fax','ssml','SquareRecordingsController','numbersto999','contact:import:','America/Indiana/Knox','arrayrecordingFormat','selectedListCustomFields','ChatWebsite','userMailQueue:remove','quickFilters','Extension','nonat','/api/settings/1/logo','User\x20API\x20key\x20removed!','chatInteractions','es-AR','QUICKPANEL.NEW_INTERNAL_MESSAGE','Error\x20creating\x20queue!','getExtension','\x27g726\x27','VoiceExtensionId','XMLHttpRequest','showInfo','app.callysquare.projects.edit','deleteFreshsalesConfiguration','newInboundRoute','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings.html','addMessage','tags/:id','Kyrgyz','CreateOrEditOdbcDialogController','minutes','folded','^msHorizontalStepper','downloadtranscribe','OutboundRoute\x20properly\x20created','Breton','userStatusOptions','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html','saveInboundRouteApp','whatsappAccounts','motion2.realtime.abandoned.voice.abandonedCalls:','tree','inline','SYSTEM:GETmailAccount','UserProfilesController\x20as\x20vm','selectAllZohoAccounts','apps.video','addContacts','','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html','GET_USER','sw-TZ','DASHBOARDS.SELECT_TAG','emit','api.mailAccount.delete','delete\x20VoiceQueues','mail/accounts/:id/verify','Pacific/Pitcairn','urlForward','onSaveChatQueueChannel','SETTINGS.EDIT_SMTP','controls','rpc/mail/queues','export','MARKETPLACE.EDIT_PLUGIN','clearDispositionSelection','JSCRIPTY.NEW_PROJECT','Dynamics365Account\x20properly\x20saved!','toggleCollapsed','mohSound\x20#','Contact\x20deleted!','searchTerm','Ines','rpc/chat/queues/waitinginteractions','deskAccounts','userWhatsappQueue:remove','src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html','SmsQueueController','deselectChanSpies','apps.plugins','Voicemail\x20updated!','apps.home.recordings','variable','newWhatsappCannedAnswer','intServicenowAccount','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','enqueue','ChatWebsitesystemAvatarController','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html','integrations/desk/accounts/:id/clone','Norwegian','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','downloadOpenchannelInteraction','integrations/dynamics365/configurations/:id','Timeout','scales','vm_ac.chatWebsite.remote','en-IN','addNewVtigerAccount','cmContact','FreshsalesAccountController\x20as\x20vm','msNavigation','onIntegrationAccountSelection','api.openchannelQueue.save','en-GB','src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime.html','delete\x20CustomDashboards','Message\x20has\x20been\x20rejected!','removeItem','','mailQueue:save','tue','CreateOrEditCustomDashboardDialogController','firstName,lastName,mobile','VOICE.RUNSENTIMENT_VOICERECORDING','Interaction\x20has\x20been\x20tagged!','EditSmsAccountAppintervalDialogController','cmContact@getHopperHistories','scheduledCalls','MARKETPLACE.MARKETPLACE','delete\x20interaction','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html','countdownAttr','/agents','rewriteRouting','absolute','InternalRouteActionsController','difference','whatsapp.whatsappAccounts','onRemoveFaxQueue','Error\x20while\x20removing\x20tab','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html','Campaign','Asia/Yekaterinburg','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?','addTab','Europe/Athens','app.staff.teams','VoiceMusicOnHoldId','rpc/voice/queues/channels/:uniqueid/hangup','pullAllBy','user_has_sms_interactions:remove','deselectFreshdeskAccounts','fonts','The\x20item\x20will\x20be\x20deleted.','account_id','Slovak\x20(Slovakia)','whatsappInteraction:save','integrations/zendesk/fields/:id/clone','days','exportSelectedCustomDashboards','prop','createdAt,updatedAt,id,name,dsn,description','app.mail.mailQueues','downloadTranscribe','SYSTEM:GET_OPENCHANNELACCOUNTS','Password','notification:send','areaText','VtigerAccount\x20properly\x20tested','delete\x20GlobalCustomFields','\x27number\x27',':8089/ws','moveContactsIvrCampaignHopperFinal','selectedContacts','Arabic\x20(Tunisia)','campaigns','paramDefaults','\x27whatsapp_messages\x27','api.schedule.delete','selectedChatWebsiteInteractions','users/:id/groups','deleteSelectedIvrCampaignHopperFinals','onlineForm','integrations/freshdesk/configurations/:id/descriptions','answered','$stateParams','+13:00','src/js/modules/core/theme-options/theme-options.html/theme-options.html','InternalRouteController','voiceQueue:remove','FAX.SELECTED_TEAMS','voicePrefixagentaddController','lastMessageAt','password','INTEGRATIONS.EDIT_DESKACCOUNT','vm_pb','api.cmCustomField.delete','saveFaxAccount','TOOLS.EDIT_DASHBOARDITEM','newChatWebsite','/custom/:id','checkContactHopper','whatsappMessage:save','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html','EditSmsAccountAppqueueDialogController','teams/:id/users','/api/transfer?number=','whatsappQueuesTotal','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','mailQueueReport','id,tree','src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html','analytics/default_reports/:id/run','api.voiceQueue.clone','\x22\x20target=\x22_self\x22>','\x0a\x20\x20\x20\x20','voice/mohs/:id/sounds','\x27AU\x27','system@get','controller','currentConferenceSessions','Queue\x20Report','createOrEditZohoAccount','DASHBOARDS.MARCH','MailAccountDispositionsController','blue-grey','addNewSalesforceAccount','interaction\x20#','Email\x20Report\x20Transfer','getTemplates','getSelectedVariable','src/js/modules/main/apps/fax/views/faxAccounts/edit/agentadd/agentadd.html/agentadd.html','ENTER','.csv','Asia/Tbilisi','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html','teal','Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20','Networks','selectedMusicOnHolds','UserFaxDashboardGeneralController','api.jscriptyProject.delete','userAgent','Joanna','inboundroutes','src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html','newFreshdeskConfiguration','openchannel/queues/describe','onComplete','application/json','companiesMap','fax/accounts/:id/clone','mediaConstraints','saveWhatsappAccountApp','CreateOrEditOfflineMessageDialogController','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','getSmsAccounts','saveOutboundRoute','deleteSelectedInboundRouteApps','Subject\x20has\x20been\x20deleted!','whatsapp/queues/:id/members','Basque\x20(Spain)','intDeskField','lexregion','$between','revokeObjectURL','Interaction\x20deleted!','Lithuanian\x20(Lithuania)','app.tools.tags','Field\x20deleted!','api.sound.delete','The\x20deskConfiguration\x20will\x20be\x20deleted.','delete\x20node','triggers/describe','SYSTEM:DELETEfaxQueue','square/odbc/:id/clone','CreateOrEditTeamDialogController','$setViewValue','onRemoveVoiceQueue','propertiesDefault','Europe/Kaliningrad','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?','GET_PROJECT','onClick','voiceQueuesLog/:id','integrationTypes','Pacific/Galapagos','deleteAgent','src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view.html','icon-dots-horizontal','NoAnswer','ChatQueueteamaddController','scroll','jscripty/projects/:id/answers','createOrEditCloudProvider','SMS.NEW_SMSCANNEDANSWER','TOOLS.','onRemoveUserFaxQueue','SMS.EDIT_','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports.html','$animate','deleteInternalRoute','.result','Spanish\x20(Dominican\x20Republic)','saveOpenchannelCannedAnswer','selectAllTeams','CAMPAIGN\x20NOT\x20ACTIVE','getMonth','chatWebsiteApp','\x27cdr\x27','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html','Authorization','script','MailQueue\x20updated!','European\x20Polish\x20Female','createOrEditInterval','getODBC','app.dashboards.general.openchannel','motion2.home.mycontacts:','src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings.html','API:ERROR','The\x20odbc\x20will\x20be\x20deleted.','getFolded','openSettings','expanded','Swedish','motionConfigProvider','VOICE.EDIT_MUSICONHOLD','gdpr','voiceMusicOnHold','whatsapp/applications/:id/clone','api.intFreshdeskConfiguration.save','\x27ap-southeast-2\x27','Allowing\x20disposition\x20for\x20call\x20%s','red-A700-bg','STAFF.NEW_AGENT','app.whatsapp','aws_secret_access_key','fax/accounts/:id/canned_answers','Portuguese','downloadMailInteraction','#2d323e','ExtractedReport\x20properly\x20deleted!','Pacific/Honolulu','The\x20hopper\x20will\x20be\x20deleted.','ckEditorInstance','DASHBOARDS.SAT','SmsAccount\x20properly\x20created','AgentHomeDashboardMultiChannelMailController','useLoader','rules','Companies','\x27openchannel_queues\x27','saveCustomization','delete\x20MailSubstatuss','integrations/vtiger/fields/:id/clone','deleteIvrCampaignHopperHistory','Tags','save','VOICE.REALTIME','\x27friend\x27','newIvrCampaign','getVoiceQueues','OfflineMessage\x20deleted!',';font-size:','TrunksFaxRealtimeController\x20as\x20vm','src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','unknown-version','fromUrl','src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view.html','Filiz','setFoldedOpen','\x27fax_accounts\x27','msNav::pushToLockedList','createdAt,updatedAt,id,name','recording','api.intDeskAccount.update','getVoicePrefixes','setConditionStatus','reportType','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)','TrunkcloneController','DASHBOARDS.ATTENTION','pop','newsAlertOnClose','voice/queues/:id/users','TOOLS.NEW_INTERVAL','userProfileForm','SYSTEM:GETcmList','SETTINGS.LICENSE','setToggleItem','square/reports/:id','9600','TCL:\x20vm.recording[vm.path]','app/main/apps/dashboards','app/core/directives/ms-widget-engine/ms-widget-engine-','questionId','\x27chat_websites\x27','deleteSelectedInternalRoutes','CreateOrEditFaxQueueDialogController','apply','selectedWhatsappQueues','French\x20(Canada)','user_has_openchannel_interactions:remove','unPause','getContexts','QueuesMotionDialerRealtimeController\x20as\x20vm','Europe/Moscow','inband','UNIX_TIMESTAMP','Mizuki','deleteDynamics365Configuration','delete\x20deskAccount','delete\x20hopperFinals','INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION','onSaveUserChatQueue','musiconholds','api.trunk.update','motion2.home:','\x27months\x27','exportSelectedTags','chat/websites/:id/users','mail/out_servers/:id','integrations/zoho/configurations/:id','interceptors','newGlobalCustomField','/api/chat/websites/:id/customer_avatar','contact','The\x20freshsalesAccount\x20will\x20be\x20deleted.','chat/websites/:id/offline','/deskAccounts','selectedAgents','/avatar','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html','debounce','IS\x20NULL','ANALYTICS.ANALYTICS','gotoFaxAccounts','mail/accounts/:id/canned_answers','Hopper\x20properly\x20created','IS_LESS_THAN','faxAccountInteractions','EXPORT','treeConfig','responseData','600','exportSelectedPauses','run','parentKey','api.interval.update','toLowerCase','newHopper','plugins/:id','Queue\x20properly\x20updated!','apps.tools.variables','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','voicePrefix\x20properly\x20saved!','getMonthName','ap-southeast-2','UserOpenchannelAccount','green-300-fg\x20icon-checkbox-marked-circle','Text','Refer\x20Attended','app.integrations.vtigerAccounts','SYSTEM:GET_SOUNDS','getIvrCampaigns','hue-1','Openchannel','TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE','fileSuccess','apps.dashboards.general','mail/applications/:id/clone','append','blue-grey-A200-bg','userOpenchannelQueue:save','createOrEditChatWebsite','ShowQuestionsSessionDialogController','dateOfBirth','cm/lists/:id/dispositions','integrations/zendesk/accounts/:id/fields','cellName','scheduleForm','src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html','registerStep','firstName,lastName,email','unshift','save_name','Tags\x20set!','deleteOpenchannelAccountInteraction','api.intDynamics365Account.update','saveFreshsalesConfiguration','\x27r\x27','src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar.html','Date','closeReason','selectAllCompanies','home.mycontacts','some','square/messages/describe','AgentHomePluginsController','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','/marketplace','Liv','BLACKLIST','results','loggedInDb','Spanish\x20(Mexico)','app.chat.realtime.agents','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','stringToNumber','/assets/images/theme-options/vertical-nav.jpg','ReferAttendedDialogController','VOICE.EDIT_','Macro','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog.html','0.7','width','whatsapp/accounts/:id/users','openchannel/queues/:id','isStepDisabled','Delete\x20Odbc','selectedIvrCampaignHopperHistories','voicePrefixes','mail_queue_waiting_interaction:save','chatCurrentCapacity','DASHBOARDS.ALL','ProjectAnswersController','UserMailQueue','ms-masonry-item','TOOLBAR.ITALIAN','INTEGRATIONS.NEW_SERVICENOWACCOUNT','getBaseUrl','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html','motion.selectedTheme','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?','MarketplacePluginsController\x20as\x20vm','HMAC','integrations/sugarcrm/accounts/:id','Liv\x20(Norwegian,\x20Female)','toUpper','exportSelectedZohoAccounts','Indian/Mahe','createOrEditZendeskAccount','faxCapacity','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','AGI','Kirundi','always','onDispositionChange','voice/extensions/:id/applications','csv','realm','whatsapp_queue:save','analytics/field_reports/describe','completed','SmsAccountagentaddController','Spanish\x20(Peru)','DEFAULT','onUpdateVoiceQueueReport','Session\x20saved','#262933','includeAll','Asia/Ulaanbaatar','TOOLS.VARIABLES','es-PY','google_cloud_tts_text_type','Help','focusOn','Trunks','SYSTEM:DELETEschedule','gotoOpenchannelAccounts','closeDialog','gotoWhatsappAccounts','unhold','src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html','openchannelQueue:remove','lo-LA','MotionDialerRealtimeController\x20as\x20vm','CHAT.NEW_CHATPROACTIVEACTION','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html','Message:save','ZendeskAccountConfigurationsController','analytics/custom_reports/:id/preview','selectedTab','dashboards/:id/clone','smsMessage','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','chat/interactions/:id/close','ms-widget-back','getSize','SmsAccountId','Legend','voice/mohs/:id','id,name,metric,table','es-SV','appendChild','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','/sugarcrmAccounts','chatInteraction:save','\x27h264\x27','disposeInteraction','exportSelectedIntervalIntervals','opts','createOrEditDeskConfiguration','addNewWhatsappAccount','selectedFields','ngModel','Project\x20properly\x20deleted!','Fields\x20saved!','daysS','QueueCampaignlistaddController','exportSelectedAgents','CustomizationpreferredController','CreateOrEditSmsQueueDialogController','CreateOrEditDynamics365AccountItemDialogController','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','exportSelectedODBC','Delete_permission','src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html','@pid','browserName','addNewAgent','deleteSelectedMailQueues','delete\x20outboundroute','^msNavigationHorizontalNode','getLists','hasIdAnswers','UserOpenchannelDashboardGeneralController','api.voiceContext.delete','content-length','api.plugin.save','DASHBOARDS.NOT_ASSIGNED','FreshsalesAccountConfigurationsController','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','#9ab8e5','microphoneMute','API\x20reject\x20message\x20not\x20found:\x20','paginate','chat/applications/describe','deleteSelectedServicenowAccounts','mail/accounts/:id','getItem','\x27nonat\x27','WhatsappQueueId','wrapup','src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view.html','treeStructure','SYSTEM:DELETEuserProfile','Unable\x20to\x20convert\x20answer','AgentGeneralPopupController','themes','auth/local/reset/:token','reload','Delete\x20Project','name,id','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','getAgentGlobalStatus','verifySmtp','onSaveOpenchannelQueue','integrations/sugarcrm/accounts/describe','selectAllChanSpies','removeColor','\x20has\x20been\x20cloned!','ka-GE','/var/opt/motion2/server/files/sounds/converted/','The\x20outboundroute\x20will\x20be\x20deleted.','ringingId','telephoneForm','EditMailAccountAppgotopDialogController','addNewchanSpy','zohoConfiguration','selectAllTemplates','startingSelectedItems','createOrEditTriggerAction','hiddenCC','getAgentStatus','api.mail.account','getColorByChannel','$valid','app.motiondialer.realtime','CreateOrEditMohSoundDialogController','usenglishmale','api.analyticExtractedReport.delete','nolimit','horizontal','FaxQueue\x20properly\x20saved!','api.faxAccount.update','ANALYTICS.NO_METRIC_FOUND','selectedChatWebsiteOfflineMessages','removeLists','sms-interaction','customFieldForm','SalesforceAccount\x20properly\x20deleted!','TOOLBAR.INDONESIAN','America/La_Paz','saveChatGroup','api.voiceChanSpy.delete','SmsCannedAnswer\x20properly\x20saved!','placeholder','top-right','api.screenRecording.save','integrations/dynamics365/accounts/:id/clone','abandonedCalls','onHold\x20->\x20session,\x20data','SYSTEM:GETANSWERS','mouseEventIgnoreTimeout','UserapikeymanagerController','Asia/Hong_Kong','Antarctica/Palmer','api.cmCompany.update','TriggersController','Interval\x20properly\x20saved!','TOOLBAR.GERMAN','DASHBOARDS.CALL_DISPOSED','ZohoAccounts','CDR(type)=outbound','openchannel/applications/:id','ivrCampaignHopperFinals','onSaveChatQueue','item','metrics','selectedIvrCampaignHopperFinals','getApiObject','Email\x20Messages','Report\x20properly\x20created','app.fax','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','api.intZendeskConfiguration.delete','channelStatusOut','DASHBOARDS.TUE','Agentchange_avatarController','\x22>','GoSub','\x27sms_accounts\x27','CreateOrEditZendeskAccountDialogController','Africa/Johannesburg','ta-SG','api.cmCompany.save','UploadSoundDialogController','SYSTEM:DELETEcmCompany','selectedSugarcrmConfiguration','app/main/apps/voice','integrations/sugarcrm/configurations/:id','\x27zh-CN\x27','Indian/Mauritius','api.whatsapp.account','toasty','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','intZendeskField','onCollapse','speakerId','FAX.ALL_AGENTS','TriggerActionsController','Polish\x20(Poland)','#5c616f','Asia/Yakutsk','interaction','newTrunk','Montenegrin','STAFF.EDIT_USER','api.network.save','CustomReports','/voicePrefixes','motionBarOptions','app.openchannel.realtime','ChatWebsite\x20properly\x20deleted!','appdata','DASHBOARDS.OPENED','America/Miquelon','phoneBarDnd','socket','placed','\x27--\x27','app.openchannel.realtime.agents','Kendra\x20(English,\x20US,\x20Female)','CHAT.CHATQUEUES','onRemoveChatQueueChannel','12000','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html','INTEGRATIONS.NEW_ZENDESKCONFIGURATION','intSugarcrmAccount@get','chatProactiveAction','DASHBOARDS.SELECT_CAMPAIGN','newMohSound','DASHBOARDS.SELECT_SUBSTATUS','You\x20are\x20selecting\x20the\x20list\x20number:\x20','America/New_York','GlobalCustomField\x20properly\x20saved!','system/process/:pid/kill','apps.home.dashboard','alias','rpc/agents','CONTACTMANAGER.ALL_AGENTS','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','EditInternalAppplaybackDialogController','listsMap','/chatQueues','selectedInternalRouteApps','timer-clear','vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27','MusicOnHoldsController','src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html','SYSTEM:GET_AGENTS','FAX.SELECTED_AGENTS','odbc','createOrEditSmsQueue','showOfflineMessageChatWebsiteOfflineMessage','#main','app.settings','VOICE.NEW_OUTBOUNDROUTE','loading','newVtigerAccount','userMailQueue:save','voiceQueueReport:save','DASHBOARDS.FRI','integrations/dynamics365/accounts/describe','chat/groups/:id','EditWhatsappAccountAppsystemDialogController','exportSelectedIntervals','integrations/reports/:id','deleteChatWebsiteOfflineMessage','\x27yahoo\x27','sugarcrmAccounts','PhoneBar\x20API\x20Error','exportSelectedWhatsappAccountWhatsappCannedAnswers','America/Argentina/Salta','motion-theme-options','Compose','\x27cm_hopper\x27','getSquareRecordings','exportSelectedChatWebsites','deleteSelectedZohoAccounts','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27ringing\x27','app.integrations.vtigerAccounts.edit','md-hue-3','fax_queue:save','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html','src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html','app.auth','SYSTEM:GETtrunks','destconnectedlinenum','selectAllReports','delete\x20dynamics365Account','result','cookieAlertOnClose','hljs','user_has_sms_interactions:save','cmn-Hans-CN','European\x20German\x20Female','motion.language','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd.html','migrations/describe','src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html','fax/accounts/describe','reply','Offline','intSugarcrmAccount','Smtp\x20verified!','GeneralsController','\x27report_square_details\x27','Conversation\x20Update','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','CONTACTMANAGER.COMPANIES','anyThirdLevelDisposition','cm/custom_fields/:id','CreateOrEditOutboundRouteDialogController','variablesById','STAFF.PERMISSIONS_SECTION_TITLE','api.mailSubstatus.delete','deskConfiguration','TriggerController','delete\x20application','List\x20updated!','$mdComponentRegistry','spychatInteraction','template_id','stepTitleTranslate','newSmsCannedAnswer','addNewSalesforceConfiguration','OpenchannelQueueteamaddController','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27penalty\x27','delete\x20agent','openchannelCapacity','queryFinal','teamadddialog','sortByWeight','EditInboundAppdialDialogController','motion2.home.abandoned.voice.calls:','delete\x20field','addNewHopper','ACCOUNTS','msSplashScreen::remove','America/Yakutat','vm.search','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE','accept','integrations/sugarcrm/configurations/describe','apps.staff.telephones','mailTransferReport','removeUsers','getSections','hold','collapseAnimation','OpenchannelQueueagentaddController','Romansh','EditFaxAccountAppnoopDialogController','TOOLBAR.RUSSIAN','/openchannel','Unable\x20to\x20get\x20Html\x20Editor\x20instance','VOICE.ALL','view','databases','OutboundRouteController','app.voice','The\x20customization\x20will\x20be\x20deleted.','\x27switch\x27','Arabic\x20(Oman)','api.squareProject.save','round','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html','asc','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html','MxGraphImportXMLController','parse','app/main/apps/help','selectAllFaxQueues','saveVtigerAccount','mwFormUtils','intZohoConfiguration','saveOpenchannelQueue','SmsQueueteamaddController','MsNavigationHorizontalNodeController\x20as\x20vm','Nepali\x20(Nepal)','ur-IN','Gwineth\x20(Welsh,\x20Female)','deleteSelectedCustomDashboards','SYSTEM:DELETEmailSubstatus','voiceExtension:update','CreateOrEditChatCannedAnswerDialogController','getConditions','msCard::cardTemplateLoaded','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','YES','About','Australian\x20English','formViewer','Contact\x20updated!','admin','MAIL.MAILACCOUNTS','addNewVoiceQueue','onEnableScreenRecordingByAgentSelection','app.voice.outboundroutes','crudPermissions','^msTimeline','Asia/Aqtobe','deleteUser','id,name,enabled,includeAll,autoAssociation,crudPermissions','createOrEditDeskAccount','pink','CreateOrEditChatQueueDialogController','queuesMap','EditOpenchannelAccountAppautoreplyDialogController','Upload\x20error','exportSelectedNetworks','WhatsappQueueteamaddController','selectedProjects','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','Africa/Ndjamena','\x27right\x27','globalCustomFields','mailAccountInteractions','File\x20name','voice/queues/:id/clone','createOrEditSubject','getSmsQueues','integrations/desk/accounts/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','Owner','dialogflow_language','focusOnclick','tags','TOOLBAR.ARABIC','Delete\x20MailSubstatus','-createdAt,questionId','CALLYSQUARE.SQUARERECORDINGS','uniq','chat/interactions/:id/clone','msNavigationItem','amber','voice/transfers/reports/:id','app.openchannel.openchannelQueues.edit','createMediaStreamSource','createOrEditSugarcrmConfiguration','toggle','SmsAccountActionsController','DASHBOARDS.UNREAD','selectAllSounds','
','users/:id/square_projects','Arabic','AllCondition\x20properly\x20created','apps.sms.realtime','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId','deleteSelectedFaxAccounts','published','/odbcs','jabraClicked','series','EditChatWebsiteAppagentDialogController','Courier\x20New,Courier,monospace','createdAt,updatedAt,id,name,mode,directory,application,format,sort','SquareProjectId','openchannel/interactions/:id/tags','chat/messages/:id/clone','ProjectController','app.voice.internalroutes','selectAllDispositions','sms/queues/:id/teams','VoiceQueueId','\x27adminOnly\x27','SalesforceConfiguration\x20deleted!','CustomDashboardController\x20as\x20vm','Not\x20Found','The\x20whatsappQueue\x20will\x20be\x20deleted.','Africa/Nairobi','api.intSalesforceAccount.delete','getJscriptySessions','deleteInternalRouteApp','getMembers','Greek','icon-deskphone','\x20has\x20been\x20copied!','TOOLS.TRUNKS','VOICE.INTERNAL','Spanish\x20(Bolivia)','obj','Catalan\x20(Catalan)','newQueueCampaign','apps.tools.pauses','hopperBlack','system','angular.filter','#ffffff','MAIL.NEW_MAILQUEUE','ivrCampaignHopperHistories','SYSTEM:GET_VARIABLES','FaxQueuesController\x20as\x20vm','keyCode','Delete\x20FreshsalesAccount','Inbound\x20Call','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','deleteSelectedWhatsappAccountWhatsappCannedAnswers','rpcFaxQueuesWaitingInteractions','YYYY-MM-DD\x20HH:mm:ss','ServicenowConfiguration\x20deleted!','isBoolean','integrations/zendesk/fields/describe','app/main/apps/fax','newDeskConfiguration','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog.html','api.intItem.update','api.intDeskConfiguration.delete','webtransfer','floor','from-voip-provider','openchannelQueuesTotal','faxAccounts','Resource\x20part\x20\x22','api.intFreshsalesAccount.save','openchannel/queues/:id/users','CreateOrEditWhatsappQueueDialogController','deselectWhatsappQueues','emojioneArea','rpc@getFaxQueues','DELETE_PERMISSION','delete\x20dynamics365Configuration','Reject','DEFAULT\x20PAUSE','api.user.createApiKey','English\x20(US)','valueReplacer','addNewscreenRecording','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','VOICE.CONTEXTS','createOrEditAgent','/salesforceAccounts','icecandidate','deletedAt','Inactive','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?','\x273\x27','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html','getHeaderErrors','userForm','dashboard:remove','HopperFinal\x20deleted!','Catalan','onRemoveMailQueue','\x27website_alias\x27','selectedLists','VOICE.NEW_VOICEPREFIX','faxAccountApps','selectedQueueCampaignHopperFinals','newFreshsalesAccount','getDaysOfWeek','jpg','INTEGRATIONS.EDIT_ZOHOACCOUNT','QueueId','intervals','TOOLBAR.HEBREW','whatsappQueueReport','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view.html','userProfileSection','\x27en\x27','\x27hotmail\x27','src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html','unreadMessages','||User:=$eq[','src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog.html','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','LIKE','isObjectLike','EU\x20(Paris)','cm/hopper_final/describe','GET_VARIABLE','MohSound\x20deleted!','TOOLBAR.TURKISH','AgentController','busy','addSections','undefined','Cristiano\x20(Portuguese,\x20Male)','saveDynamics365Configuration','timer','onChangeList','startedAt','selectedSmsQueues','Dynamics365AccountController\x20as\x20vm','globalStatus','id,name,color','icon-clock','Smpt\x20id\x20unknown','saveMailAccount','production','deleteSelectedWhatsappAccountApps','yAxes','AgentsMotionDialerRealtimeController','ALWAYS','W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','European\x20Catalan\x20Female','arrayecm','List','apps.integrations.freshsalesAccounts','saveSettings','CreateOrEditCompanyDialogController','exportSelectedServicenowAccounts','src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins.html','intZohoField','deleteSugarcrmAccount','Portuguese\x20(Portugal)','/snippet?token=','smsInteractions','VariablesController','musiconhold','MailQueueagentaddController','Contact\x20properly\x20deleted!','devices','app.tools.triggers','SUM\x20(','red-300-fg\x20icon-phone-locked','FORGOTPASSWORD.LINNK_SENT_MESSAGE','integrations/vtiger/accounts/describe','selectedZendeskConfiguration','SYSTEM:UNPAUSEUSER','Jscripty\x20can\x27t\x20open\x20the\x20contact','webbar:hold','selectAllTags','Rule','whatsappAccountInteractions','MusicOnHoldsController\x20as\x20vm','Europe/Brussels','dddd','EditInternalAppdialDialogController','+09:00','mail/accounts/:id/users','selectedGlobalCustomFields','DASHBOARDS.JANUARY','Re:\x20','exportSelectedOpenchannelQueues','Pacific/Pohnpei','saveChatCannedAnswer','SYSTEM:DELETEsquareOdbc','Dashboards','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html','Delete\x20voicePrefix','fax/accounts/updateaccountapplications','Explorer','apps.voice.internalroutes','deleteVoicemail','Mads','api.trigger.delete',',${EXTEN},','phoneBarExpires','pauseTypeFilter','rtlSupport','src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html','America/Argentina/Buenos_Aires','onRemoveSmsQueue','VOICE.SELECT_TYPE','condition','asterisk','$stateProvider','onRemove','Bearer\x20','getCompanies','SmsQueue','salesforceAccount','Italian','ivrCampaigns','delete\x20mohSounds','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','md5secret','MOTIONDIALER.SELECTED_LISTS','spysmsInteraction','arrayjoinempty','globalStatusTime','selectedOpenchannelAccountInteractions','api.openchannelAccount.update','contexts','delete\x20voicePrefix','deleteSelectedFaxAccountApps','msFormWizard','nodeType','src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html','expanding','nl-NL','EditSmsAccountAppautoreplyDialogController','binding','globalTags','source','deselectMetrics','QueueParamsMotionDialerRealtimeController','removeTeams','isHiddenField','app.mail.realtime','chatWebsiteApps','welcomemessage','AgentsVoiceRealtimeController','getFullYear','app.dashboards','timer-resume','src/js/modules/main/apps/mail/views/realtime/accounts/view.html/view.html','secondLevelDisposition','preventDefault','createdAt,updatedAt,id,type,value,username,password','app.analytics.reports','Team','jscriptyProject','IvrCampaignController\x20as\x20vm','lime-A700-bg','wechat','ap-south-1','added','osName','api.trigger.save','Unable\x20to\x20play\x20autoAnswer\x20notification','UserProfile\x20properly\x20created','showLastMessage','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?','speakerMute','team@get','sms/accounts/:id/canned_answers','rpc/chat/queues','$id','selectedTags','SYSTEM:GETuserProfile','app.settings.generals','NavigationController','userId','Friend','actions/:id/clone','app.mail.realtime.queues','Emma','mailSubstatus','variables','app.motiondialer.realtime.agents','dialerCall','anySecondLevelDisposition','removeApi','Asia/Kabul','dynamics365','extractedReports','api.chatGroup.delete','retrieveUser','Alphabetical','queueMethod','OpenchannelCannedAnswer\x20properly\x20created','editDraft','blue-fg','quickFilterManager','hasMicrophone','orderBy','outboundDropCallsDayTimeout','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27inuse\x27','msTimezone','accounts','searchResultClick','Android','Serbian\x20(Serbia)','gotoIntervals','api.analyticReport.update','mailInteraction@get','MainController\x20as\x20vm','app.tools.customDashboards','incident','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More\x20session','ca-ES','MsWidgetController','WhatsappCannedAnswer\x20properly\x20saved!','companies','motionTheming','ExtractedReportsController','\x27ulaw\x27','app.staff.telephones','apps.voice.voiceRecordings','id,name,fullname','transferHook\x20->\x20payload','ContactSelectionController','selectedUsers','openchannel/queues/:id/teams','onTransfer','describeTable','stun','USERPROFILE:GETRESOURCES(','DASHBOARDS.FAX','Russian\x20Male','INTEGRATIONS.NEW_','AccountId','deselectInternalRoutes','deleteSelectedTriggerAllConditions','voice/dials/reports/:id','connection','onSaveWhatsappInteraction','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html','teams/:id/queues','disabled','agentadddialog','square/details/reports/describe','faxInteractionDownload','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27wrapup\x27','AgentHomeSmsController','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog.html','ZendeskAccount','SYSTEM:GET_USERS','ListsController','apps.home.plugin_','goToEdit','every','integrations/servicenow/accounts/:id','src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html','scriptPath','Africa/Abidjan','head','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog.html','English\x20(Philippines)','faxMessage:update','delete\x20cannedAnswer','src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html','verifysmtpverifysmtp','chat/websites/:id/snippet','analytics/default_reports/:id/query','savename','INTEGRATIONS.NEW_SUGARCRMCONFIGURATION','confirm','networks','50\x20100\x20200\x20A100','Partially\x20Enabled','teams/:id','America/Tegucigalpa','List\x20properly\x20created','WhatsappQueue\x20properly\x20deleted!','VIDEO.FILE_NOT_FOUND','isWebRTCSupported','Sound','FreshsalesConfiguration\x20properly\x20saved!','mailCurrentCapacity','removeByInteraction','New_Tab','office2013','app.integrations.deskAccounts.edit','icon-server-plus','cardTemplateLoaded','SmsQueue\x20properly\x20created','WhatsappQueuesController\x20as\x20vm','cross_join','clearDate','app.mail.realtime.accounts','Interval\x20properly\x20created','getVoiceQueuesReport','Reset\x20Succesfull','SYSTEM:DELETEvariable','Antarctica/Mawson','formatdate','src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html','SYSTEM:USERPROFILE.REMOVESECTIONS','id,field,operator,value,createdAt,updatedAt','00:00:00','onVoiceChannelRemove\x20->\x20evt','Field','OPENCHANNEL.NEW_OPENCHANNELQUEUE','msNav::forceCollapse','selectedVtigerConfiguration','ServicenowAccounts','endcall','selectedMailSubstatuses','UserFaxQueue','/openchannelQueues','Telephone\x20properly\x20deleted!','addItem','Dynamics365AccountConfigurationsController','replaceTrack','getHistories','msDualMultiselect','INTEGRATIONS.NEW_SERVICENOWCONFIGURATION','CreateOrEditVoiceQueueDialogController','hu-HU','apps.analytics.extractedReports','api.telephone.changePassword','deleteItem','\x27SI\x27','permissions','getConfigurations','delete\x20globalCustomField','deselectOutboundRoutes','user:agentcomplete','action','/forgot','newZendeskConfiguration','newContact','whatsappQueue','checkSectionResources','Asia\x20Pacific\x20(Sydney)','delete\x20openchannelQueue','onRemoveMember','app.motiondialer.queueCampaigns','numbersto99','deselectContexts','ngMessages','startProgressive','Project\x20properly\x20saved!','items','VOICE.DIALER','Trunk\x20properly\x20created','America/Argentina/Mendoza','showSmsInteraction','stopped','GROUP_CONCAT','orientation','nextStep','The\x20component\x20will\x20be\x20deleted.','0\x200\x20*\x20*\x20*','MailAccount\x20properly\x20saved!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html','checkbox','WhatsappCannedAnswer\x20deleted!','rpcFaxQueues','isInConference','app/errors/404','us-west-2','\x272400\x27','Delete\x20chanSpy','vi-VN','close_all','sat','hasModulePermissions','app.voice.realtime.queues','Taiwan\x20Chinese\x20Female','deselectTemplates','apps.settings.networks','onUpdateFaxQueue','onSaveUserFaxQueue','passwordResetAt','VOICE.EDIT_VOICEMAIL','CreateOrEditMailQueueDialogController','SYSTEM:GET_TRUNKS','/intervals','canScroll','autoSelectOperator','answerHook\x20->\x20payload','The\x20list\x20is\x20empty','encodeURIComponent','smsQueue:remove','UserProfileController\x20as\x20vm','createOrEditChatWebsiteChatProactiveAction','onSearchFieldsInit','SugarcrmAccount\x20properly\x20tested','src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html','selectedMode','selectAllODBC','defaultPageTitle','$onInit','predictiveIntervalAnsweredCalls','outboundrouteApp','translate3d(','timer-set-countdown','conditions/:id/clone','CreateOrEditVoiceRecordingDialogController','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html','selectedSalesforceAccounts','External','addNewPlugin','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','voice/queues/reports/index','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','getAssignedCompanies','getWhatsappQueuesWaitingInteractions','Europe/Zaporozhye','webrtc::settings','#chat-group-dialog','Icelandic\x20(Iceland)','app.motiondialer.realtime.ivr_campaigns','MailRealtimeController','inuse','document','SYSTEM:DELETEcloudProvider','whatsapp/interactions/:id/messages','Random','ATTENTION','Excel','..a','countdown','SalesforceAccountController','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html','Gujarati\x20(India)','WEBSITES','chatInteraction','deleteSelectedAiTools','context.name','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unknown\x27','Asia/Vladivostok','Dialer\x20Hopper\x20Logs','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html','mouseOver','selectedFreshdeskConfiguration','gotoCustomDashboards','SYSTEM:GET_LISTS','DASHBOARDS.NOVEMBER','ZendeskAccounts','outboundDropRate','Amy\x20(English,\x20British,\x20Female)','md-toolbar','userVoiceQueue:remove','isoWeek','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog.html','fromKey','\x27beepall\x27','redirectToNumber','Delete\x20ExtractedReport','Unable\x20to\x20create\x20session!','Spanish\x20(Guatemala)','pauseType','freshsalesAccounts','addContactTab','api.trunk.delete','America/Havana','ko-KR','Malayalam','CHAT.SELECTED_TEAMS','api.voiceQueue.getBlackLists','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html','settings/describe','rpc/chat/queues/:id/notify','finals','plugin@get','English\x20(India)','refreshDate','voiceMail@get','QueueCampaign\x20properly\x20created','The\x20contact\x20will\x20be\x20deleted.','data','mail/interactions/:id','app.voice.realtime.agents','SYSTEM:DESCRIBE','saveContext','autoCreate','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?','Delete\x20FreshdeskAccount','column','authInterceptor','\x27q\x27','allowedStandardFields','gotoMusicOnHolds','failed','enableSettings','Ewa\x20(Polish,\x20Female)','api.intServicenowAccount.save','DASHBOARDS.WHATSAPP','remotePlayer','chat/internal/messages/:id','dynamics365Configuration','ProjectsController\x20as\x20vm','actionOptions','saveAction','voice/prefixes/:id/users','textarea','SYSTEM:DELETEvoiceExtension','schedules/describe','src/js/modules/main/apps/settings/views/networks/networks.html/networks.html','DASHBOARDS.VOICE','indigo-A100-fg','id,fullname,internal','+05:00','TOOLS.NEW_ALLCONDITION','app/main/apps/mail','getApi','Fax\x20Interaction','arraytype','getColorByItem','America/Rankin_Inlet','phone','dashboard:save','lime-A700','\x27invite\x27','DASHBOARDS.FEBRUARY','/musiconholds','
TODO\x20legend\x20status\x20+\x20state
','moveSelectedQueueCampaignHopperFinals','getByInteraction','whatsappQueue:update','onInit','icon-format-text','TOOLBAR.POLISH','INTEGRATIONS.EDIT_ZENDESKACCOUNT','plugins/','HANGUPCAUSE_1','attachment_path','SYSTEM:RESETLIST','Asia/Irkutsk','app.integrations.zohoAccounts','customDashboard','OmniWeb','SYSTEM:GET_PROJECTS','$mdDialog','The\x20globalCustomField\x20will\x20be\x20deleted.','ContactsController','getVoicemailMessages','newProject','openchannel/accounts/:id/dispositions','Carmen','HANGUPCAUSE_21','app.motiondialer.realtime.abandonedcalls','ChatCannedAnswer\x20properly\x20saved!','Hausa','SYSTEM:GETagents','UpdatesController\x20as\x20vm','selectAllInboundRoutes','arraysmsMethod','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?','America/Anchorage','idle','${EXTEN:','saveOpenchannelAccount','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','updateCondition','app.help.about','whatsappQueue:save','selectAllVoicePrefixes','Hindi\x20(India)','delete\x20smsCannedAnswer','Hans\x20(German,\x20Male)','Delete\x20DashboardItem','newSchedule','chat/websites/:id/clone','IvrCampaignblacklistaddController','MailAccountActionsController','id,body','English\x20(New\x20Zealand)','saveHopper','app.chat.realtime','bar-container','voiceMailMessage','telephones','optionsBuilder','Hangup','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html','MARKETPLACE.NEW_PLUGIN','2020-11-11T11:15:03.518Z','src','deselectServicenowAccounts','newAllCondition','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?','CHAT.EDIT_CHATPROACTIVEACTION','trigger','/callysquare/projects/','jstree','Trunk\x20updated!','predictiveIntervalDroppedCallsCallersExit','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view.html','IndexController','${EXTEN}','api.item.delete','resetViewer','whatsapp_queue_waiting_interaction:save','Call_Status','GET_ODBC','America/Caracas','uisref','mp3','Carla','Key','data3','CHAT.EDIT_','concat','api.action.update','SYSTEM:USERPROFILE.ADDSECTIONS','0.00','deleteSelectedVoiceQueues','The\x20telephone\x20will\x20be\x20deleted.','substatus','GROUP_CONCAT\x20DESC','matchType','MailSubstatus\x20properly\x20deleted!','terminate\x20->\x20session','faxMessage','Spanish\x20(Uruguay)','cmList@get','SchedulesController\x20as\x20vm','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html','usmoney','controlsList','gotoVoiceQueues','messagesAlignment','delete\x20WhatsappAccounts','addNewWhatsappQueue','allowEdit','\x27linear\x27','apps.chat.realtime','app.voice.realtime.trunks','intSalesforceAccount','warnPalette','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html','Sound\x20properly\x20deleted!','getWhatsappAccountInteractions','Tamil\x20(India)','getObject','Persian\x20(Iran)','TOOLBAR.STAY_LOGGED','isRunning','app.errors.error-404','app.voice.voiceRecordings.edit','chatQueue','src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog.html','Format\x20Error','The\x20mailAccount\x20will\x20be\x20deleted.','msMasonryItem','/dispositions','RequestLicenseDialogController','deleteCustomDashboard','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','loadingProgress','arraytimeoutrestart','screenrecording','ACCOUNT:SEND','customFieldsMap','onVoiceExtensionUpdate','api.jscriptyProject.update','joinAt','\x27alpha\x27','newOpenchannelQueue','highlight','windowWidth','
','queueCampaigns','FreshsalesAccount\x20properly\x20saved!','ChatQueues','ensureSelectedResultIsVisible','sw-KE','getSubjects','id,interval,IntervalId','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','SYSTEM:GETintZendeskAccount','queueLogin','labels','America/Argentina/Rio_Gallegos','getClass','saveSchedule','deleteOutboundRouteApp','Phonebar','intSalesforceConfiguration','xorBy','beep','integrations/vtiger/accounts/:id/fields','predictiveIntervalTotalCalls','app.header','getScheduler','Plivo','integrations/servicenow/configurations/:id/fields','startingAllowedItems','recordingURL','listCustomFields','runtranscriberuntranscribesentiment','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','getMetrics','/tools','Africa/Bissau','Triggers','\x20\x20properly\x20logout','deselectReports','customizations','src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog.html','users/:id/unpause','VOICE.NEW_INTERNALROUTE','LicenseController','listadddialog','ProjectId','OPENCHANNEL.SELECTED_TEAMS','getFreshdeskAccounts','deleteTrigger','xmd-voicequeueid','\x27W\x27','usspanishfemale','CustomDashboardcloneController','Lists','selectedMailAccountApps','api.intZendeskAccount.delete','openchannelQueue@get','@from-voicemail','api.intDeskConfiguration.save','api.cmHopper.delete','voice/queues/reports/describe','saveDynamics365Account','delete\x20message','record\x20->\x20session','ChatWebsite\x20properly\x20saved!','CreateOrEditQueueCampaignDialogController','motNotification','delete\x20VoiceRecordings','sqlUtil','webpackChunkmotion_client','delete\x20Voicemails','endtime','SYSTEM:COPYREPORT','IntervalController\x20as\x20vm','gotoStep','trunks/:id','api.whatsappQueue.save','getHours','Africa/Maputo','onSaveUserOpenchannelQueue','license','SugarcrmAccount','deleteSelectedMailSubstatuses','selectAllTriggers','voice/queues/:id/hopper_black','onRemoveSmsQueueChannel','SYSTEM:GETTAGS','delete\x20voicePrefixs','whatsappCannedAnswers','udp','monthFrom','apiResolver','Russian','STAFF.','users/:id/scheduled_calls','deleteSelectedMailAccountInteractions','The\x20mohSound\x20will\x20be\x20deleted.','Indonesian','ServicenowAccountConfigurationsController','UserChatWebsite','onRemoveUserMailQueue','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','sms/reports/transfer/:id','STAFF.SELECTED_AGENTS','square/recordings/:id/clone','users/:id/fax_interactions','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd.html','appVersion','click','saveServicenowConfiguration','createOrEditvoicePrefix','integrations/zoho/accounts/:id','SquareRecording\x20properly\x20created','MailRealtimeController\x20as\x20vm','rpcTrunks','shortcuts','European\x20Portuguese\x20Female','AgentsController','QueueCampaignHopperStatisticsController','get','GET_QUEUE','integrations/zoho/configurations/:id/subjects','id,name','CreateOrEditSalesforceAccountDialogController','chatQueues','adminUrl','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html','deleteDeskAccount','src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog.html','The\x20salesforceConfiguration\x20will\x20be\x20deleted.','openchannelInteractionDownload','\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!','copydialog','scheduledat','MergeContactDialogController','Read_permission','importContacts','kn-IN','id,name,type,dialMethod,dialActive','saveMailQueue','listsCampaign','opt1','users/:id/queues','msNavigationHorizontalItem','faxQueues','src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone.html','blue-A700','apps.settings.system','denied','years','Restore\x20Contact','TOOLS.CLONE_TRUNK','voice/mails/messages/:id','Delete\x20screenRecording','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html','app.whatsapp.whatsappQueues.edit','query','saveIvrCampaign','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','$filter','Weight\x20Random','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?','apps.tools.tags','gotoVoiceRecordings','arrayrole','removeCookies','Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?','SYSTEM:GETfaxAccount','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step.html','\x27alternate\x27','whatsappInteractions','Atlantic/Bermuda','Resource\x20\x22','saveMailAccountApp','SYSTEM:DELETEcampaign','lastMessage','Justin','saveAllCondition','Australia/Currie','src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html','\x27fax_interactions\x27','id,firstName,lastName,email','AgentAlias','msVerticalStepper','CreateOrEditListDialogController','Chinese,\x20Mandarin\x20(Simplified,\x20China)','JSCRIPTY.NO','globalCompanies','amazonlex','showPredictiveQueueCampaignInfo','CreateOrEditAnyConditionDialogController','TOOLS.SOUNDS','autocomplete','SETTINGS.GENERAL','FORGOTPASSWORD.LINK_SENT','2400','$state','getMonthNumber','others','removeBlackLists','api.smsAccount.update','getTracks','Condition','hoursS','getQueues','currentStepNumber','changeLanguage','DisposeCallDialogController','SYSTEM:GEToutboundRoutes','TOOLS.NEW_DASHBOARDITEM','getContact','MOTIONDIALER.NEW_IVRCAMPAIGN','delete\x20Intervals','MailMessageId','trunk_name','SYSTEM:DELETEvoiceMail','CreateOrEditVoicemailDialogController','downloadChatInteraction','DASHBOARDS.MAIL','TriggerAnyConditionsController','setPlaceholder','mailQueue','chat/queues/:id/teams','newMailAccount','The\x20userProfile\x20will\x20be\x20deleted.','INTEGRATIONS.FRESHSALESACCOUNTS','openchannel_queue_waiting_interaction:save','recallme','Playback','webrtc::logout','filterByTags','ar-PS','\x27pai\x27','api.intZohoConfiguration.delete','GET_CONTEXT','ChineseTraditional','trunks/:id/clone','Jscripty\x20Sessions','getVtigerAccounts','Croatian','Dynamics365Account\x20properly\x20tested','opera','ar-IL','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html','STAFF.ALL_QUEUES_','INTEGRATIONS.NEW_VTIGERACCOUNT','hopper\x20#','EditInboundAppplaybackDialogController','app/main/apps/plugins','stop','cm/lists/:id','eurspanishfemale','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','OpenchannelRealtimeController','toISOString','ZendeskAccount\x20properly\x20tested','api.variable.save','app.tools.variables','ImportContactsDialogController','flash','rpc/fax/queues/:id/notify','UserChatQueue','app.motiondialer.realtime.queue_params','play','\x27B\x27','varPath','isHidden','createCompany','trigger:browser:popup','SYSTEM:GETdashboard','#ebf1fa','SYSTEM:LISTS_ASSOCIATION','getSugarcrmConfiguration','keyBy','faxAccount:save','whatsapp/queues/:id','NEVER','saveDashboardItem','DASHBOARDS.MYCONTACTS','chatQueue@get','DeskAccount\x20updated!','attr','delete_node','isFirstStep','DefaultReports','openchannel/accounts/:id/canned_answers','User\x20API\x20key\x20updated!','exportSelectedScreenRecordings','newVariable','ar-SA','createOrEditMailQueue','MailAccount\x20updated!','SYSTEM:GETLISTS','push','startOf','BEEP','Chinese\x20(Hong\x20Kong)','home.mail','screen/recordings/:id','list_id','newTeam','getFaxQueues','api.project.delete','dispositions/:id/clone','MOTIONDIALER.CLONE_QUEUECAMPAIGN','sms/messages/:id/status','CustomDashboardsController','FreshdeskConfiguration\x20deleted!','voice/mohs/describe','Malagasy','AgentHomeDashboardBullController','deselectNetworks','getProjectSessions','\x27wav\x27','onNewRTCSession\x20->\x20data','cloneIvrCampaign','ChatWebsiteChatDispositionsController','@id','/variables','cm/lists/:id/contacts','msScrollOptions','CreateOrEditchanSpyDialogController','America/Port-au-Prince','cm/companies/:id/contacts','bcc','.txt','whatsappAccount@get','OpenchannelAccount\x20properly\x20deleted!','Pacific/Tahiti','Gecko','voiceQueuesLog','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?','/internalroutes','Account','prev','Home','TrunksVoiceRealtimeController','\x22\x20called\x20successfully','SYSTEM:DELETEdisposition','Arabic\x20(United\x20Arab\x20Emirates)','src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog.html','SYSTEM:GETvoiceMusicOnHold','id,name,strategy,type','ms-nav-folded','users/:id/logout','SYSTEM:DELETE_HOPPER','mail/reports/queue/describe','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','deselect_all','MAIL.NEW_MAILSUBSTATUS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','smsAccountApps','America/Chihuahua','a..','\x22\x20is\x20not\x20defined!','SalesforceAccount\x20properly\x20tested','Asia/Brunei','api.chatAccounts.account','openContact','offHook','composeMailInteraction','PERMISSIONS','pt-BR','UserChatDashboardGeneralController\x20as\x20vm','wholerow','CreateOrEditSugarcrmAccountDialogController','VtigerConfiguration\x20properly\x20deleted!','\x27xlsx\x27','endOf','apps.analytics','ndauth_url','motionPalettes','MusicOnHold\x20properly\x20deleted!','exportSelectedSquareRecordings','voice_outbound_channel:save','getTeams','integrations/servicenow/configurations/:id/descriptions','green-A700-bg','Highest','US\x20East\x20(Ohio)','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html','\x27report_chat_queue\x27','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','America/Thule','webcall','https://','popup','amber-A200','addInteractionTab','altDate','chatOfflineMessage','CONTACTMANAGER.GLOBALCUSTOMFIELDS','Delete\x20Dynamics365Account','addNewvoicePrefix','Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#','zohoAccounts','delete\x20proactive','src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog.html','CreateOrEditServicenowConfigurationDialogController','app.jscripty.projects.edit','newFreshdeskAccount','user@get','America/Costa_Rica','fax/queues/:id/teams','onEnableAutomaticScreenRecordingSelection','param','&?msTimelineLoadMore','addMembers','ProjectViewerController','Fully\x20Enabled','ENTER_BR','msTimelineItem','MailAccountsRealtimeController\x20as\x20vm','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html','deleteOpenchannelQueue','MOTIONDIALER.ALL_LISTS','ms-navigation','mailQueue:remove','opus','\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!','/pauses','deleteDeskConfiguration','src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html','SYSTEM:DELETEfaxAccount','Error\x20creating\x20tag!','Group\x20properly\x20saved!','Video','screenRecording\x20properly\x20deleted!','down','Korean\x20Male','users/:id/openchannel/interactions','hopperIds','CannedAnswer\x20properly\x20created','ap-southeast-1','SYSTEM:GETtags','Delete\x20SalesforceConfiguration','deleteSelectedOutboundRouteApps','US\x20Money','falsepriority','/extractedReports','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','The\x20metric\x20will\x20be\x20deleted.','isJabraEnabled','updateLicense','chat/interactions/:id/attachment_download','chat/reports/queue/:id','America/Detroit','EditAppintervalDialogController','editCompany','\x27chat_queues\x27','id,name,save_name','Cancel','\x27admin\x27','src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import.html','European\x20Finnish\x20Female','addAccountApplications','download','Channel\x20','pickerModels','languages','General\x20properly\x20created','report','/api/chat/websites/:id/logo','sms/messages/:id','smsInteraction@get','motion2.home.scheduled:','Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}','schedule@get','selectedList','America/Yellowknife','api.team.delete','columnName','thirdLevel','split','\x27AmazonAWS\x27','getVoiceRecordings','aws_bot_name','jun','$ne','apps.home.abandoned','+03:30','Europe/Sofia','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','notification:remove','VariablesController\x20as\x20vm','delete\x20Agents','VOICE.NEW_VOICEMAIL','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','lastAssignedTo','addRecording','sun','app.tools.customDashboards.edit','callbackurl:\x22','Conchita\x20(Spanish,\x20Castilian,\x20Female)','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','cmCustomField@get','ticks','sms/queues/:id','schedules','DeskAccount','SYSTEM:DELETEvoiceQueue','api.intDynamics365Configuration.delete','warning','Content\x20Only','IS\x20NOT\x20EMPTY','deleteSelectedFreshdeskAccounts','apps.openchannel.openchannelQueues','SYSTEM:GETintDeskAccount','hopperBlack\x20#','$element','EditOpenchannelAccountAppgotopDialogController','SugarcrmAccount\x20properly\x20saved!','unit','report_agent','SYSTEM:GET_TREE_REPORT_STRUCTURE','gsm','tail','uploadPlugin','msApi::resolveSuccess','CALLYSQUARE.NEW_PROJECT','getTrustedURL','\x27left\x27','rpcSmsQueues','auth/local/user/:token','/queue_calls','app.voice.realtime','CreateOrEditDashboardItemDialogController','INTEGRATIONS.NEW_ZENDESKACCOUNT','Mongolian','$setDirty','selectedIvrCampaigns','auth','actions/:id','toggleClass','\x20has\x20been\x20deleted!','isNavFoldedOpen','microphoneVolume','campaigns/:id/hopper_finals','requestPermission','exportSelectedProjectSessions','deleteSound','getFaxAccountApps','Delete\x20actions','@includeAll','chatWebsiteProactiveActions','apps.mail.mailAccounts','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html','uri','ngPassword','navigator','title','smsInteraction:update','Email\x20','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','Edge','square/projects/:id/clone','rpc/campaigns','FreshsalesAccount','X-callback-url:\x20','arrayrandom_periodic_announce','SYSTEM:DELETEinterval','Priority','sortableOptions','Interval\x20has\x20been\x20saved!','EditInboundAppagiDialogController','callNumber','enabled','getValues','Pause','start3WayConf','userProfile/sections/describe','deleteIvrCampaignHopper','cookieAlertHide','api.intZendeskAccount.save','onSaveFaxQueue','endRangeValue','/whatsappQueues','voiceRecording','goto','America/Fort_Nelson','voice/queues/:id/hopper_finals','DASHBOARDS.OCTOBER','Slovenian\x20(Slovenia)','saveWhatsappCannedAnswer','DASHBOARDS.RECORDINGS','src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog.html','Europe/Zurich','Antarctica/Troll','\x27eu-west-1\x27','Asia/Ust-Nera','createOrEditCompany','vm.queryHistory.filter','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?','squareRecordings','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','smsAccount@get','getNetworks','setOrientation','createOrEditFaxAccount','columnCount','hasRole','definePalette','exportSelectedDeskAccounts','chchinesemale','deleteProject','option','operators','getZohoConfiguration','voiceQueuesTotal','thirdLevelDisposition','rpcMailQueues','exportSelectedVoicemails','TOOLS.INTERVALS','mail/messages/describe','openchannel/accounts/:id/applications','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html','EditInternalAppcustomDialogController','CloudProvidersController\x20as\x20vm','voicemailMessages','getZendeskAccounts','src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html','es-CR','Beepall','apps.tools.trunks','_interactions:save','selectedIntervals','QueueCampaigns','smtps','selectedVoicePrefixes','getUserMedia','forEach','openchannelAccount@get','voiceStatus','jira','FreshdeskAccount\x20updated!','spyopenchannelInteraction','queryHistory.filter','SYSTEM:GETintSugarcrmAccount','es-MX','ENDS_WITH','replyAll','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','twilio','Hebrew\x20(Israel)','apps.home.scheduled','SMS\x20Account','fax/reports/queue/:id/clone','integrations/freshdesk/accounts/:id/fields','America/Argentina/Jujuy','EditWhatsappAccountAppamazonlexDialogController','es-EC','registerForm','api.voiceMusicOnHold.update','getNotification\x20->\x20session','updateQueue','delete\x20smsAccount','selectedChatWebsiteProactiveActions','mail/accounts/:id/in_servers','exportSelectedDispositions','outboundAbandonRate','api.analyticReport.delete','isJabraInitialized','id,firstName,lastName,phone,email','Jan\x20(Polish,\x20Male)','ar-XA','apps.video.screenRecordings','Russian\x20Female','$ariaProvider','sessionTarget','priority','delete\x20chatWebsite','map','localStorage','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog.html','HeaderController\x20as\x20vm','\x27sv\x27','getZohoAccounts','exportSelectedPlugins','agentInternal','test','\x27wss\x27','elementTag','chat/interactions/:id/tags','vm.query.filter','onSaveUserMailQueue','getMultiBarChart','+05:45','citystate','TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE','agent.name','\x27da\x27','api\x20preview','ListsController\x20as\x20vm','fileAdded','constant','usspanishmale','lv-LV','Website','fields','ZendeskAccount\x20properly\x20saved!','addNewChatCannedAnswer','Schedule\x20properly\x20saved!','Tonga','removeCondition','parseCrudPermissions','image','$document','deselectOpenchannelQueues','deleteSmsCannedAnswer','integrations/salesforce/accounts/:id/clone','app.voice.realtime.queue_calls','voiceQueueReport:update','addNewItem','plugins/describe','TOOLS.NEW_SCHEDULE','interactionId','OpenchannelQueuesController','importXML','Variable','onSave','app.reset','Bengali\x20(Bangladesh)','app.footer','Asia/Jerusalem','SYSTEM:GETvariables','ngAnimate','/smsQueues','polling','joinTables','deleteSelectedSmsQueues','gotop','WHATSAPP.WHATSAPPQUEUES','chatGroup','ChatQueueId','target','cm/hopper_final/:id/clone','addNewPause','getOpenchannelAccountOpenchannelCannedAnswers','Croatian\x20(Croatia)','limitCalls','FreshdeskAccount\x20properly\x20tested','Switch','trigger:bot','Plugin\x20updated!','Arabic\x20(State\x20of\x20Palestine)','Lowest','EditWhatsappAccountAppgotopDialogController','projectSessions','Websites','intZendeskConfiguration','createOrEditSugarcrmAccount','MxGraphDialogController','addPart','arraysetqueuevar','openchannelInteraction:save','from-sip','complete','rpc/sms/queues/waitinginteractions','spyfaxInteraction','city','Persian','voiceAgentReport','app.dashboards.general','unionBy','chunk','ZendeskAccountsController','mail/reports/queue/:id/clone','Telephone\x20properly\x20saved!','saveLists','progress','getChatQueues','squareRecording','showTooltip','Hangup_Cause','SETTINGS.SMTP','createOrEditchanSpy','TOOLS.CUSTOMDASHBOARDS','-message','ng-sortable','auth/local','DENIED','Arabic\x20(Iraq)','voiceContext','HANGUPCAUSE_16','GROUP_CONCAT\x20(','src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html','getActiveItem','API:','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html','sumDuration','createOrEditCannedAnswer','Close\x20Contact','','phoneBarEnableScreenRecordingByAgent','runReport','statusClass','getHoppers','MAIL.REALTIME','selectedTeams','selectedItemChange','apps.help.about','stateService','faxAccount:update','Delete\x20FreshsalesConfiguration','message','icon-playlist-plus','app.integrations.dynamics365Accounts.edit','MMM\x20d,\x20y\x20h:mm\x20a','\x27progressive\x27','jscriptyAnswerReport','canned_answers/:id/clone','WebReportDialogController','font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','WhatsappAccount\x20updated!','QueueCampaignHopperBlacksController','migrations/:id','users/:id/openchannel_accounts','uninstallplugin','src/js/modules/toolbar/preview/dialog.html/dialog.html','analytics/extracted_reports/:id/download','participants','localizationMap','Variable\x20properly\x20deleted!','queryMessage','Desk','SYSTEM:GET_CONTEXTS','describe','clipboard','voice/agents/reports/describe','clonedialog','arraycrudPermissions','TOOLS.EDIT_SOUND','passwordExpiresDays','app.integrations.salesforceAccounts','whatsapp/accounts/:id/applications','id,name,channel,status,description,createdAt,updatedAt','salesforce','unknown-os','openchannel/reports/transfer/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','selectedInternalRoutes','AgentsFaxRealtimeController','Pacific/Enderbury','U(xcally-mixmonitor-context)','ChatWebsiteofflineFormController','Company\x20name','SalesforceAccountController\x20as\x20vm','CONTACTMANAGER.CONTACTMANAGER','MailAccountController\x20as\x20vm','Input','predictiveIntervalDroppedCallsTimeout','permissionId','g726','integrations/reports/:id/clone','addNote','deleteSelectedContexts','\x27localnet\x27','/schedules','root','Turn','api.faxQueue.save','AgentHomeMyContactsController','verticalNavigationFullwidthToolbar2','userOpenchannelQueue:remove','read1stAt','EditChatWebsiteApptagDialogController','dec','\x27twilio\x27','WhatsappRealtimeController','deleteSelectedSounds','EditInternalAppintervalDialogController','openchannelAccountInteractions','onForceLogout\x20->\x20data','443','WhatsappQueueController','rpc/voice/channels/:uniqueid/mixmonitor','Delete\x20List','dialPredictiveIntervalMinThreshold','GlobalCustomField\x20properly\x20created','Europe/Monaco','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','Metrics','QueueCampaignsController\x20as\x20vm','level','_new','stop\x20plugin\x20process','CreateOrEditAgentDialogController','MsWidgetEngineCounterController','$get','intDynamics365Field','AgentHomeContactsController','msg','squareProject','QUICKPANEL.WARNING','Bulgarian\x20(Bulgaria)','openchannelInteractions','','selectedOpenchannelAccountApps','url','intervalIntervals','\x20has\x20been\x20','createOrEditFaxQueue','selectedWhatsappAccountInteractions','Command','progressive','icon-audiobook','icon-minus-circle','appType','addTrack','VtigerConfiguration\x20properly\x20created','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html','whatsappStatus','America/North_Dakota/Center','createdAt,updatedAt,id,save_name,converted_format,audio','\x27chat_offline_messages\x27','getGroupBy','DashboardItem\x20properly\x20created','Asia/Srednekolymsk','CreateOrEditVtigerConfigurationDialogController','apiAccountRoute','getMailAccounts','STAFF.SELECTED_TEAMS','NO\x20QUERY','Kurdish','applyTo','VoiceRecording\x20properly\x20saved!','Portuguese\x20(European)','mediaDevices','msQuickFilter','WHATSAPP.EDIT_WHATSAPPQUEUE','\x20is\x20not\x20valid','uploadPlugins','selectedOperator','api.voiceExtension.save','tcp','cm/hopper_final/voice/queue/countAttributes/:id','selectedMetrics','\x20evt,\x20data','hues','$evalAsync','ringall','src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog.html','success','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','never','arraymonitor_format','fontFamily','GotoIfTime','createOrEditVoiceRecording','Label','/cannedAnswers','chat/websites/:id/canned_answers','Greek\x20(Greece)','apps.fax.faxAccounts','getColumns','src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html','output','callStatuses','QueueCampaignblacklistaddController','PREVIEW','id,exten','unreadTotalMessages','You\x20can\x27t\x20remove\x20yourself','$sce','integrations/desk/configurations/:id/clone','Giorgio\x20(Italian,\x20Male)','\x20has\x20been\x20installed!','hasIntegrationsPermissions','selectedIntervalIntervals','newvoicePrefix','audioinput','TrunksFaxRealtimeController','src/js/modules/main/apps/tools/views/variables/variables.html/variables.html','arrayheader_shape','language','TagsController\x20as\x20vm','newTelephone','\x274800\x27','IvrCampaign\x20properly\x20deleted!','freshsales','chat/interactions/:id/custom_update','selectedServicenowAccounts','CreateOrEditMetricDialogController','tag','api.faxQueue.update','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html','Delete\x20CloudProvider','onPause','chatMessage:update','digit','STAFF.PERMISSIONS_PLACEHOLDER_SEARCH','Hours','between','deleteSmsAccountInteraction','alternate','Pacific/Rarotonga','Invalid\x20license\x20key','CHAT.EDIT_CHATCANNEDANSWER','\x27star\x27','response','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','clearSelection','selectedChatQueues','\x27mail_accounts\x27','screen/recordings/:id/download','cmHopperFinal','UserProfilePermissionsController','Templates','Delete\x20WhatsappCannedAnswer','Module\x20updated!','Delete\x20','mailQueues','VOICE.EDIT_VOICEQUEUE','isLoggedIn','id,mailbox','delete\x20schedule','DASHBOARDS.CONTACTS','deselectCustomDashboards','Asia/Makassar','excludedOperators','America/Belize','deselectVtigerAccounts','CloudProvidersController','DeskAccounts','lastIn','SmsAccountController\x20as\x20vm','\x27random\x27','Indian/Reunion','integrations/freshsales/accounts/:id/configurations','EditMailAccountApp','data2','QueueCampaignteamaddController','openchannelQueue:save','\x27more\x27','createOrEditChatWebsiteOfflineMessage','newVoicemail','AllCondition\x20properly\x20saved!','rpc@getMailQueues','onSaveFaxQueueChannel','sms/applications/describe','/api/jira','app/main/apps/callysquare','sound@get','selectAllOutboundRoutes','id,name,role','FaxAccount\x20properly\x20deleted!','Afrikaans\x20(South\x20Africa)','createOrEditTeam','allConditions','The\x20chatCannedAnswer\x20will\x20be\x20deleted.','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','\x27nl\x27','EditWhatsappAccountAppintervalDialogController','Gmail','api.voiceQueue.update','Agreement','EditInboundAppintervalDialogController','cm/hopper_final/checkContactHopper','ANALYTICS.CREATE','EditChatWebsiteAppautoreplyDialogController','apps.whatsapp.whatsappQueues','ChatWebsiteController\x20as\x20vm','voice/recordings/:id/clone','en-AU','HopperHistory\x20deleted!','getQueueCampaignHopperBlacks','Hebrew','delete\x20vtigerAccount','selectedChatWebsites','deleteSelectedFaxQueues','$endsWith','isStepNumberValid','delete\x20DeskAccounts','monitor','saveServicenowAccount','setFolded','Pacific/Funafuti','onFirstLevelSelection','SmsRealtimeController','delete','id,starttime,endtime,membername,projectname','Email\x20Queues','openchannel/reports/queue/:id','dashboard@get','deleteSelectedTeams','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html','bulkCreate','currentXML','left','destroy','openchannelInteraction:update','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime.html','green-A700','Vietnamese','minute','createOrEditField','images','faxStatus','api.intSugarcrmConfiguration.update','api.voicePrefix.save','CreateOrEditFreshsalesAccountDialogController','versionSearch','timer-start','deleteIvrCampaignHopperBlack','api.analyticreport.delete','app.dashboards.general.dialer','toString','backgroundPalette','children','login','AgentHomeAbandonedController','deleteContext','Delete\x20MusicOnHold','dial','msMaterialColorPickerController','addNewMailAccount','OpenchannelQueue\x20properly\x20saved!','$transitions','getReportFields','src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html','HOUR\x20(','voicePrefix','WHATSAPP.EDIT_','listSelected','resultsLoading','src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html','id,name,level,ParentId','HeaderController','downloadfile2','unmanaged','getDate','virtual','isPartialPause','MOTIONDIALER.IVRCAMPAIGNS','newWindow','SYSTEM:DELETEtrigger','deselectZendeskAccounts','network@get','api.dashboard.save','deletePause','cancel','getScreenRecordings','deselectPlugins','VoiceQueueagentaddController','cm/hopper/:id','=interval','mapKey','promise','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?','\x20properly\x20hangup!','messaging','temporarilyIgnoreMouseEvents','interface','MAIL.MAIL','CreateOrEditSugarcrmAccountItemDialogController','app.tools.pauses','addNewWhatsappCannedAnswer','HH:mm','delete\x20Contacts','src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html','selectTagsChanged','motion.shortcuts','src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html','UserProfile\x20updated!','FaxAccounts','SYSTEM:DELETEtag','originalObject','\x2738\x27','out','End\x20of\x20Conversation','savePassword','exportSelectedVtigerAccounts','selectAllVoicemails','NONAME','api_key','US\x20English\x20Female','integrations/dynamics365/fields/:id','unpause','SYSTEM:GET_MUSICONHOLDS','voiceQueuesSelected','Europe/Luxembourg','newSugarcrmConfiguration','provider','exportSelectedExtractedReports','reportFields','VoiceQueues','track','integrations/salesforce/configurations/:id/subjects','mailStatusTime','User','selectAllDeskAccounts','CALLERID(all)=','intDynamics365Account','SYSTEM:GETintSalesforceAccount','ngCsv','The\x20team\x20will\x20be\x20deleted.','cdr/describe','deselectODBC','motionGenerator','phoneBarAutoAnswerDelay','gotoAgents','userProfiles/:id','VtigerAccountController','es-PR','LicenseController\x20as\x20vm','Contact\x20properly\x20created','selectAllPauses','No\x20\x27%s\x27\x20process\x20found','Asia/Pyongyang','chat/messages/:id','ngEmbed','es-CL','createOrEditSquareRecording','Maltese','selectedOpenchannelAccounts','jscripty','api.staff.save','SYSTEM:GETchatQueue','DASHBOARDS.INFO','Telugu','getSmsAccountApps','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog.html','intervals/:id/sub_intervals/create_many','TrunkId','findIndex','getVtigerConfiguration','delete\x20report','createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','speakerVolume','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html','SYSTEM:GETwhatsappAccount','schedules/:id/clone','Fwd:','@themeName','join','agentreject','Delete\x20AllCondition','uploadCsv','MAIL.EDIT_MAILACCOUNT','lastOut','service-worker.js','sms/reports/transfer/describe','whatsapp/queues/:id/users','deleteUserProfile','createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','href','reset','Delete\x20DeskAccount','headers','/trunks','fax/reports/queue/describe','cannedAnswer','Dynamics365Configuration\x20properly\x20created','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html','/api/auth/','onSelectList','chat/websites/:id/avatar','resetlistdialog','FaxQueueController\x20as\x20vm','app/core/directives/ms-phonebar/sounds/outgoing-call.ogg','omniChannels','$resolved','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','pl-PL','Team\x20properly\x20created','ServicenowConfiguration\x20properly\x20created','Busy','weight','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','filtered','UNKNOWN','onInteractionOpen','agentNotify','app.navigation','exportSelectedChatWebsiteOfflineMessages','false','variableName','user_has_fax_interactions:remove','agent','generate','3rd','Atlantic/Madeira','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','showFaxInteraction','faxPause','rpc/telephones','\x27es\x27','SmsAccounts','queueCampaign','chatCannedAnswer\x20#','TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE','integrations/sugarcrm/fields/:id','cancelInterval','dropping','Times\x20New\x20Roman,Times,serif','smsQueue:save','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','Catalan\x20(Spain)','/attachment_download?attachId=','VOICE.VOICEMAILS','hostname','resizable','openchannelStatus','isActive','CreateOrEditWhatsappAccountDialogController','hasBlackLists','chatInteraction:update','onInternalMessageUpdate','MailQueueteamaddController','openchannel','fullPath','globalLists','passwordPattern','app.staff.userProfiles','queryFinal.filter','SalesforceAccount\x20properly\x20created','iPad','aws_access_key_id','\x27d\x27','D\x20MMM\x20YYYY','registered','Waiting...','contrast','delete\x20mailCannedAnswer','$mdMenu','/assets/images/theme-options/content-only.jpg','/outboundroutes','JscriptyProjectController\x20as\x20vm','CHAT.EDIT_CHATWEBSITE','originatePreview','src/js/modules/main/apps/sms/views/realtime/queues/view.html/view.html','loginOauth','exportSelectedFreshsalesAccounts','Unable\x20to\x20open\x20the\x20contact','globalUserLists','America/Boa_Vista','DASHBOARDS.SELECT_ACCOUNT','mapAgentsId','icon-phone-missed','mminutes','arraydialCheckDuplicateType','src/js/modules/quick-panel/quick-panel.html/quick-panel.html','700','api.intSugarcrmConfiguration.delete','app.quick-panel','SSML','removeTab','BookedProgressive','blue-300-fg\x20icon-phone-incoming','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html','deleteFreshdeskAccount','ZohoAccountController\x20as\x20vm','Message\x20has\x20been\x20accepted!','queueCampaignHopperFinals','#4CAF50','integrations/freshdesk/fields/:id/clone','isDisabled','field','HANGUPCAUSE_17','vtiger','noop','Limit','voiceQueue@get','notifications/:id/clone','selectedNetworks','ivrCampaignHopperBlacks','onLogin','voiceRecording@get','TriggerController\x20as\x20vm','saveFaxAccountApp','TOOLBAR.SWEDISH','read','/callysquare','MxGraphOpenProjectController','api.intSalesforceAccount.save','The\x20ivrCampaign\x20will\x20be\x20deleted.','deleteCompany','user_has_whatsapp_interactions:save','FreshsalesConfiguration\x20deleted!','The\x20mailCannedAnswer\x20will\x20be\x20deleted.','XCALLY-MOTION-ANSWER=1','targetChanged','deleteWhatsappAccountApp','\x27agentBusyFactor\x27','ms-target-wrap','America/Whitehorse','AgentDashboardGeneralController','$locationProvider','projects','VoiceRecordingsController\x20as\x20vm','delete\x20VtigerAccounts','app.chat.chatQueues.edit','Finnish\x20(Finland)','reLayoutDebounce','deleteQueueCampaignHopper','onSaveSmsQueue','deleteFaxAccount','draftManager','delete\x20FaxQueues','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','Task','src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones.html','internalrouteApps','Stun','VoiceQueueController\x20as\x20vm','api.dashboardItem.save','api.smsQueue.delete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?','Asia/Anadyr','getContactLabel','ServicenowAccount\x20properly\x20saved!','app.sms.smsAccounts','ms-MY','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','api/cm/contacts/upload','delete\x20WhatsappQueues','CKEDITOR','originalMessage','delete\x20salesforceAccount','fax/accounts/:id/applications','Giorgio','globalCustomFieldForm','fetch','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','/freshdeskAccounts','detectBrowser','selectAllVariables','Voicemail','automations/:id/actions','licenseKey','OutboundRoute','eurgermanfemale','\x27update\x27','MailQueue\x20properly\x20saved!','createMediaStreamDestination','hasSpeakers','second','extend','src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html','deleteOpenchannelAccountOpenchannelCannedAnswer','EditMailAccountApptagDialogController','rpc/openchannel/queues/:id/waitinginteractions','logout','SYSTEM:DELETEvoicePrefix','Vitoria','EditoutboundAppoutbounddialDialogController','editOutboundRouteApp','triggerallConditions','icon-checkbox-multiple-marked-outline','cloneCustomDashboard','CreateOrEditContextDialogController','Marathi\x20(India)','America/El_Salvador','NotificationController','zu-ZA','canGoInConference','analyticCustomReport','ngJsTree','voice/calls/reports/:id/clone','iCab','General\x20updated!','descriptions','Bihari','integrations/dynamics365/accounts/:id/configurations','addNewTag','OpenchannelAccountController','motion','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html','savePlugin','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html','/vtigerAccounts','voice/calls/reports/:id','\x20properly\x20created','sms_queue_waiting_interaction:remove','Antarctica/Vostok','treeDefaultEvents','src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html','VtigerAccountsController\x20as\x20vm','chat/websites/:id','stoppedTime','msMaterialColorPickerController\x20as\x20vm','CustomField\x20properly\x20saved!','api.analyticFieldReport.save','user:agentconnect','Asia/Shanghai','api.voiceRecording.save','Bulgarian','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view.html','whatsapp','formats','WhatsappQueue\x20updated!','es-DO','\x27uk\x27','arraybuffer','getIntervals','api.cmCompany.delete','delete\x20project','runTranscribe','api.intFreshsalesConfiguration.update','whatsappQueue@get','Asia/Thimphu','whatsappCannedAnswer','onSubmit','Project\x20properly\x20created','SYSTEM:DELETEwhatsappAccount','getIntervalIntervals','CreateOrEditGlobalCustomFieldDialogController','fax/queues/describe','The\x20deskAccount\x20will\x20be\x20deleted.','msNav::collapse','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html','composeFaxInteraction','VOICE.EDIT_CHANSPY','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html','aws_text_type','subStatuses','IvrCampaignHopperStatisticsController','deleteMetric','foreignKey','Asia/Ho_Chi_Minh','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html','msChipColor','Failed\x20to\x20retrieve\x20pm2\x20processes','MsShortcutsController','delete\x20musiconhold','Plugin','createOrEditMailAccount','Agents\x20association\x20has\x20been\x20updated!','forwardTemplate','The\x20allCondition\x20will\x20be\x20deleted.','stream','stopInterval','openchannelInteraction','DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS','inReplyTo','','saveInboundRoute','msDatepickerFixConfig','dateRangeManager','smsInteraction','newTrigger','markAsUnread','Years','TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS','fax/messages/describe','src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html','exportSelectedMusicOnHolds','AgentHomeVoiceController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','changePasswordForm','displayName','\x27plivo\x27','integrations/vtiger/configurations/describe','hasShortcut','TCL:\x20vm.path','SYSTEM:GETPAUSES','CONTAINS','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','Module\x20has\x20been\x20updated!','user:called','gotoUsers','SYSTEM:GETvoiceQueues','SYSTEM:GETsounds','Fax','blacklist','motion2.home.whatsapp:','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','TOTAL','EditWhatsappAccountAppdialogflowDialogController','Tamil\x20(Malaysia)','outboundroutes','delete\x20subjects','isSupported','intDynamics365Account@get','-05:00','-02:00','selectedVoicemailMessages','arrayallow','_id','reduce','analytics/field_reports/destroy_many','src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view.html','isObject','resume','MAIL.EDIT_MAILCANNEDANSWER','Plugin\x20not\x20deleted!','automations/:id/clone','Type\x20a\x20message','trimStart','Mail','Asia/Karachi','src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html','src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.html/queueadd.html','SYSTEM:GET_WHATSAPPACCOUNTS','api.pause.delete','noanswer','offlineMessage','$interpolate','EditFaxAccountAppintervalDialogController','\x27SIP/{{user.name}}\x27','Scheduled\x20call\x20deleted!','home.whatsapp','EditMailAccountAppqueueDialogController','Interaction\x20properly\x20closed!','sortable','The\x20extension\x20','saveSmsAccountApp','CreateOrEditScheduleDialogController','whatsappQueue:remove','INTEGRATIONS.FRESHDESKACCOUNTS','arraytech','msMaterialColorPicker','saveSmsCannedAnswer','getAgents','analytics/field_reports/:id','exportSelectedChanSpies','selectedScreenRecordings','addClass','findLast','DASHBOARDS.OVERWRITE','User\x20not\x20deleted!','VoiceRecordingsController','integrations/servicenow/configurations/:id','CreateOrEditTrunkDialogController','Kannada','\x27preview\x27','ms-navigation-horizontal','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html','wasUserInPause','pauses/describe','app.dashboards.general.chat','Contact\x20ID\x20','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?','ar-LB','VoicePrefixesController\x20as\x20vm','SYSTEM:DELETEintZohoAccount','interactionid','htmlToPlaintext','dashboard','app.integrations.sugarcrmAccounts','/plugin/:id','Fields\x20has\x20been\x20copied!','delete\x20freshdeskConfiguration','rpcWhatsappQueues','edited','deleteList','stateClass','src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html','api.openchannelAccount.delete','src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html','gotoIvrCampaigns','api.setting.update','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html','createdAt,updatedAt,id,name,strategy,timeout,description','$compile','The\x20internalroute\x20will\x20be\x20deleted.','SETTINGS.EDIT_CLOUDPROVIDER','Medium','mail/interactions/:id/clone','EditInboundAppcustomDialogController','shortTime','operator','createOrEditWhatsappAccount','newCompany','closed\x20===\x200','America/Indiana/Marengo','src/js/modules/main/apps/staff/views/agents/agents.html/agents.html','CALLYSQUARE.NEW_SQUARERECORDING','sk-SK','exportSelectedProjects','app.jscripty.projects','','hiddendigitsnum','/squareRecordings','app/core/directives/ms-phonebar/sounds/dialpad/','/sms','createdAt,updatedAt,id,appdata,type,exten,context,description','intFreshsalesAccount@get','credential','Phone\x20number','ChatGroupId','saveQueueCampaign','bind','saveCallback','config','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','Arabic\x20(Kuwait)','hotdesk','Node\x20Updated','saveTeams','isJsonString','api.fax.account','SYSTEM:GET_LIST_CUSTOM_FIELDS','jscripty/sessions/reports/:id','chat/applications/:id','CALLYSQUARE.ODBC','api.openchannelQueue.update','getSalesforceConfiguration','simple','addNewFreshdeskAccount','api.intFreshdeskAccount.delete','AgentHomeDashboardVoiceController','TelephonesController','Tahoma,Geneva,sans-serif','DefaultReportId','onRemoveWhatsappQueue','ChatQueue\x20properly\x20saved!','selectedVariables','EditChatWebsiteAppintervalDialogController','getPieChart','SmsQueues','hold\x20->\x20session','deleteOdbc','outgoing','newOdbc','src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html','api.voiceQueue.save','intersection','VoicemailController','addNewServicenowConfiguration','users/create_many','numbersto9','SYSTEM:GETopenchannelQueue','treeCustomInstance','square/projects/describe','Delete\x20Trunk','integrations/vtiger/fields/:id','DeskAccount\x20properly\x20saved!','TeamagentaddController','STAFF.AGENTS','RESETPASSWORD.PASSWORD_RESET_MESSAGE','soundPlayer','FaxRealtimeController\x20as\x20vm','integrations/desk/configurations/:id/tags','\x27ringing\x27','+03:00','DeskConfiguration\x20properly\x20saved!','integrations/freshdesk/accounts/:id','Enrique','MsWidgetEngineMultibarChartController','delete\x20Companys','dashboards/:id/items','$translate','Chat\x20Report\x20Queue','deleteSelectedSugarcrmAccounts','integrations/servicenow/fields/describe','gotoFaxQueues','redirectToAgent','deleteSchedule','openchannel/messages/describe','Spanish\x20(El\x20Salvador)','app.marketplace','Europe/Tallinn','en-IE','addNewZendeskAccount','AgentHomeChatController','\x27ko\x27','processing','CDR','7200','contactFields','Norwegian\x20(Norway)','cm/contacts/:id/hoppers','TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?','addNewVariable','geEditor','mailStatus','exportSelectedInboundRoutes','$substring','Caller_ID','app.tools','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?','onChangeReportType','version','Dial','QueuesWhatsappRealtimeController\x20as\x20vm','JscriptyProjectsController','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES','createOrEditOpenchannelQueue','outboundrouteApps','integrations/salesforce/configurations/:id/fields','addNewMusicOnHold','Verdana','$mdConstant','toggleOptionsSidenav','getFreshsalesConfiguration','Chinese\x20(Simplified)','extraOperators','src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html','primary','name','msTabScroll','currentNode','remove','reschedule','wss','selectedSugarcrmAccounts','app.whatsapp.whatsappAccounts','textContent','src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html','UserSmsDashboardGeneralController\x20as\x20vm','Latvian\x20(Latvia)','userVoiceQueueRt:save','+11:00','\x27force_rport\x27','addLists','America/Maceio','CreateOrEditZendeskConfigurationDialogController','retry','Dora\x20(Icelandic,\x20Female)','The\x20queueCampaign\x20will\x20be\x20deleted.','Irish','LOCAL_LOGIN','CreateOrEditAllConditionDialogController','us-east-1','delete\x20userProfile','fax_queue_waiting_interaction:save','Tatyana','\x20yyyy','America/Godthab','voice_queue_channel:remove','newVoiceQueue','newWhatsappQueue','Edit\x20Report\x20Field','getMailInteractions','\x27ASC\x27','ChatWebsitecustomerAvatarController','src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html','cmContact@getHoppers','queue','DESCRIBE_CM_CONTACTS','CONTACTMANAGER.COPY_CONTACT','delete\x20whatsappCannedAnswers','Attachments','Mads\x20(Danish,\x20Male)','contactInfo','Re:','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE','getZendeskConfiguration','OpenchannelQueueController\x20as\x20vm','delete\x20Pauses','cm/lists/:id/contacts/csv','\x27always\x27','exportSelectedMusicOnHoldMohSounds','ms-nav-folded-open','cm/lists/:id/clone','integrations/freshdesk/fields/:id','$stateChangeSuccess','whatsappStatusTime','\x27connectel\x27','Restored\x20Contacts','SugarcrmConfiguration\x20properly\x20deleted!','AgentchangepasswordController','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd.html','beepall','src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog.html','inboundrouteApps','isMyAccount','id,name,fullname,userpic','addNewSmtp','arrayauthType','Quechua','getMetricName','red-300-fg\x20icon-close-circle','VOICE.CANT_DOWNLOAD_THIS_FILE','searchReport','onUpdateChatInteraction','api.intServicenowConfiguration.update','delete\x20inboundroute','Asia/Baku','vm.password','updateView','getVoiceQueuesChannelHangup','DATE','exportSelectedSalesforceAccounts','whatsapp/messages/:id/reject','FreshsalesAccountsController','setupSteps','SYSTEM:GETsmsAccount','createElement','UserVoiceDashboardDialerController\x20as\x20vm','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','plugins/webhook','Unlicensed','The\x20list\x20will\x20be\x20deleted.','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html','user@getLists','deleteSelectedDynamics365Accounts','whatsapp/reports/queue/describe','setting','deselectCompanies','onaddstream','vm_rf.query.filter','ServicenowAccountsController','microphoneId','not_inuse','ondevicechange','lt-LT','TOOLS.EDIT_CUSTOMDASHBOARD','Scots\x20Gaelic','users/:id/sms_interactions','Schedule','delete\x20faxQueue','voicePrefix@get','maxDateRange','selectedAiTools','exportSelectedOpenchannelAccountInteractions','deselectMailSubstatuses','isInProgress','Auth','arraydialOrderByScheduledAt','selectedChatWebsiteChatCannedAnswers','Bengali\x20(India)','outboundBlacklistCallsDay','Fields\x20has\x20been\x20saved!','Europe/Vilnius','\x20-\x20','getElementById','createObjectURL','Maja','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','The\x20','instant','vm_bull.query.filter','OpenchannelAccounts','/ms-widget-engine.','\x27id\x27','SYSTEM:analyticFieldReport','app.integrations.zendeskAccounts.edit','getUsers','red-300-fg\x20icon-phone-in-talk','createOrEditOpenchannelAccountOpenchannelCannedAnswer','VOICE.VOICEPREFIXES','api.squareRecording.save','msHorizontalStepper','rpc/sms/queues','src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html','\x27all\x27','\x27TI\x27','MusicOnHold\x20updated!','jscriptySessionReport@getQuestions','onSaveMailQueueChannel','CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST','deleteWhatsappQueue','rgba(','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog.html','SmsAccountsController\x20as\x20vm','ComposeSmsInteractionDialogController','ATTACHMENTS:GET','newServicenowConfiguration','ChatWebsite\x20properly\x20created','Pacific/Kiritimati','src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html','ms-timeline','addNewFreshdeskConfiguration','showMessageInfo','templateUrl','attributes','api.intDeskAccount.save','SYSTEM:DELETEopenchannelAccount','EditChatWebsiteAppnoopDialogController','Contexts','smsMessage:update','loose','EDIT_PERMISSION','Mailbox@Context','Odbc\x20properly\x20deleted!','xAnswerMode','unix','Months','AgentDashboardGeneralController\x20as\x20vm','Afrikaans','app.jscripty','User\x20properly\x20saved!','EditChatWebsiteAppqueueDialogController','rpcWhatsappQueuesWaitingInteractions','TrunksController','xlsx','rpc/voice/queues/channels/:uniqueid/redirect/:exten','id,name,dialPrefix','$translatePartialLoaderProvider','motion.layoutStyle','SYSTEM:GETintZohoAccount','sql','getSounds','cancelUpdateCondition','status','getNotifications','newZohoConfiguration','datetime','ContextsController\x20as\x20vm','Abandon','ReportConditionsController','secretaccesskey','\x27newTab\x27','OPENCHANNEL.REALTIME','addNewSmsAccount','analyticDefaultReport','invite','$mdToast','sms/messages/:id/clone','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20','Asia/Jakarta','channels','upload','CreateOrEditWhatsappCannedAnswerDialogController','assigned','cm/contacts/merge','app.contactmanager.companies','deleteMohSound','-=400','invoke','MARKETPLACE.UPLOAD_PLUGIN','vendor','Russell','getOpenchannelAccountApps','app.fax.realtime.queues','Chinese\x20(Traditional)','mail/queues/:id/members','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html','America/Martinique','integrations/servicenow/accounts/:id/clone','Georgia','chanSpy\x20properly\x20saved!','configurations','QueueCallsVoiceRealtimeController\x20as\x20vm','getDaysOfMonth','mail/queues/:id','deleteSelectedIntervals','exportSelectedMailAccountInteractions','toTrusted','createOrEditTrigger','Spanish\x20(Puerto\x20Rico)','faxInteraction:save','delete\x20Variables','OpenchannelAccountController\x20as\x20vm','treeCustomEvents','1st','integrations/freshdesk/configurations/:id/fields','deleteChatQueue','rule','onListSelection','createOrEditExtractedReport','when','getChannelByItem','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view.html','\x27text\x27','Delete\x20Plugin','selectedFreshsalesConfiguration','src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword.html','Realtime','Mozilla','SmsQueueagentaddController','Logout','selectedPlugins','MohSound\x20properly\x20deleted!','hue-3','app.voice.inboundroutes','Error\x20creating\x20notification\x20for\x20incoming\x20call','saveFreshdeskConfiguration','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','+07:00','penalty\x20','\x27unavailable\x27','apps.whatsapp.whatsappAccounts','duplicates','settings/:id/preferred','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html','hours','cmList','api.dashboard.clone','uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','sms/messages/:id/accept','deleteSelectedOpenchannelAccounts','querySearch','\x2727\x27','app.mail','enter','motion.authenticationtype','networks/:id','\x27agent_fullname\x27','The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20','MOTIONDIALER.ALL_AGENTS','VOICE.EDIT_MOHSOUND','Africa/Windhoek','VoiceRecordings','IntervalIntervalsController','InboundRoute\x20updated!','icon-label','\x27peer\x27','$to','9888','saveMetric','Pacific/Port_Moresby','isLockedOpen','sms/reports/queue/describe','Record','CreateOrEditSoundDialogController','ForgotPasswordController\x20as\x20vm','unreadGroupMessages','getVoiceQueuesChannels','icon-hangouts','deleteIvrCampaignHopperFinal','EditOpenchannelAccountAppamazonlexDialogController','vTiger','isReschedule','#3470ca','SYSTEM:UPDATEBLACKLIST','createOrEditMusicOnHoldMohSound','=ngModel','Enrique\x20(Spanish,\x20Castilian,\x20Male)','deselectTriggers','','QuickPanelController','deleteChatWebsiteInteraction','Dutch\x20(Netherlands)','selectedODBC','app.sms.smsQueues.edit','queueCampaignHoppers','triggerAnyConditions','home.fax','xmd-cdrtype','IvrCampaigncloneController','conditions/describe','src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html','es-HN','\x27tcp\x27','app.chat','Hungarian\x20Female','stringify','$in','saveChatWebsiteApp','Delete\x20Report','openchannel/reports/transfer/describe','Reports','brportuguesefemale','uniqueid','URI','agent\x20updated!','src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog.html','sms/queues/describe','loadShortcuts','America/Port_of_Spain','deleteOpenchannelAccount','variables/:id','members','api.intFreshsalesAccount.update','0.54','\x20session,\x20data','userProfiles/:id/sections','localHold','editedat','Dialer\x20Hopper\x20Processing','AmazonAWS','ukenglishmale','arrayringinuse','desk','Portuguese\x20(Brazil)','APPS','openchannelMessage:save','Contact','securePassword','ZendeskConfiguration\x20properly\x20created','api.intDynamics365Configuration.update','next','CHAT.OFFLINE_MESSAGE','host','setAttribute','\x272\x27','CONTACTMANAGER.NEW_CUSTOMFIELD','firstName,lastName,fax','saveContact','jabra','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html','spywhatsappInteraction','onSelectListSuccess','app.tools.cannedAnswers','apps.marketplace.plugins','SYSTEM:QUEUES_ASSOCIATION','voice/contexts/:id/clone','Delete\x20trigger','allconditions','src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html','OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER','isAfter','chat/messages/:id/reject','createApiKey','current','deleteMusicOnHoldMohSound','delete\x20FaxAccounts','Mail\x20Account\x20not\x20deleted!','/updates','SmsAccountController','currentSidebarTab','mandatoryDisposition','deleteGroup','disposeCall','app.callysquare.odbcs','cm/contacts/:id/hopper_finals','campaign@get','exportSelectedSmsAccounts','newRTCSession','deleteMailAccountMailCannedAnswer','\x2716\x27','createOrEditFreshsalesAccount','-09:30','selectedItem','/api/settings/1/preferred','Status\x20properly\x20changed\x20to:\x20','Chat\x20Offline\x20Messages','integrationTab','ms-search-bar','content','wav','DASHBOARDS.NO_DISPOSITION_SET','erlangAbandonmentRate','integrations/reports/describe','onBefore','icon-tile-four','SYSTEM:DELETEmailAccount','debug','ms-form-wizard','tooltipVisible','delete\x20hopperHistory','_path','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html','\x27files\x27','selectedOutboundRouteApps','src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view.html','idField','secondLevel','SEC_TO_TIME\x20(','voiceAgentReportColumns','api.cannedAnswer.delete','Plugin\x20installed!','icon-script','\x27pt\x27','isFormValid','saveDisposition','MsStepperController','InternalRoute\x20properly\x20saved!','catch','user:update','/plugins','setThemesList','#78a0dc','newVoiceRecording','servicenowAccounts','app.tools.triggers.edit','CustomizationlogoController','api.setting.delete','toJSON','app.integrations.salesforceAccounts.edit','voice/queues/reports/:id','getArrayErrors','faxQueue','CreateOrEditDispositionDialogController','Gwineth','SYSTEM:DELETEintSugarcrmAccount','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27strict\x27','squareMessage','selectAllFreshsalesAccounts','clearConditions','app.voice.inboundroutes.edit','readAsDataURL','Company\x20properly\x20saved!','currentPath','assets/images/business/queueCampaigns.jpg','IS_GREATER_THAN_OR_EQUAL_TO','createOrEditIntervalInterval','apps.openchannel','src/js/modules/errors/404/error-404.html/error-404.html','deleteCloudProvider','monitors','SYSTEM:GETfaxAccounts','-copy','html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?','src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view.html','selectAllProjects','disposedAt','\x20attached\x20process\x20will\x20be\x20restarted.','empty','TOOLS.NEW_CANNEDANSWER','$rootScope','MailInteractionId','start','delete\x20hopperBlacks','analytics','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','pascalprecht.translate','SMS\x20Report\x20Queue','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','Faroese','/contactmanager','SYSTEM:DELETEwhatsappQueue','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','addNewTeam','-updatedAt','CONTACTMANAGER.EDIT_LIST','smsAccount','msNav','Indian/Christmas','Delete\x20SmsQueue','analyticExtractedReport','mailInteraction:update','groups','icon-text-to-speech','app.openchannel','OpenchannelAccount\x20properly\x20created','mail/interactions/describe','orange','chat/queues/describe','id,uniqueid,calleridnum,statedesc,starttime,disposition','association','/motiondialer','Successful\x20call','\x27roundrobin\x27','sms/accounts/:id/status','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','moveIvrCampaignHopperFinal','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','WhatsappAccount\x20properly\x20created','Nicole\x20(English,\x20Austrialian,\x20Female)','apps.integrations.deskAccounts','Today','User\x20updated!','newReportField','users/:id/avatar','\x277200\x27','integrations/freshsales/configurations/:id','Prefix','msThemeOptions','phoneBarRemoteControlPort','Agent\x20Only','onUserUpdate','DASHBOARDS.UNTITLED','\x20properly\x20saved!','onActionSelection','WHATSAPP.WHATSAPP','VOICE.NEW_CHANSPY','\x27outlook365\x27','\x27opus\x27','English\x20(Australia)','getTriggers','getLogo',':id','smsCannedAnswers','DeskAccountsController\x20as\x20vm','UserOpenchannelQueue','style','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?','onFaxMessageSave','Customization\x20properly\x20created','isIndeterminate','/whatsapp','HopperBlack\x20deleted!','/telephones','Unable\x20to\x20retrieve\x20voice\x20channels','rpcVoiceQueuesChannelsTmp','apps.dashboards.custom_','Linear','src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html','styles','import','callback','id,name,internal,fullname','removeApiKey','TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE','reports','app.voice.voiceQueues','whatsappCurrentCapacity','transformContact','last','delete\x20Sounds','European\x20Norwegian\x20Female','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html','Marathi','chat_queue:save','STAFF.TEAMS','id,phone,scheduledat,recallme,priority,UserId,OwnerId','src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html','STAFF.CANCEL','UserProfilepermissionsmanageController','cell','prompt','api.voicePrefix.update','app/header','*pause','#2196f3','web-report','toggleHorizontalMobileMenu','setSelectedDate','Welsh','includes','Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)','sendRequest','saveNetwork','America/Adak','originateInProgress','note','matchingField','custom','isDateBeforeToday','getSenders','daysOfMonth','field,alias,function,format,groupBy,orderBy,custom,MetricId','src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html','treeReports','Voice','px,0px)','saveInternalRoute','delete\x20cloudProvider','src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html','JSCRIPTY.PROJECTS','users/:id/login','sms/reports/queue/:id','Squared','analytics/field_reports/create_many','delete\x20freshsalesAccount','addNewNetwork','composeInteraction','animateHeightClass','defaultHeaderWhiteLabel','groupBy','FaxQueues','DeskConfiguration\x20deleted!','exten','EditInboundAppsetDialogController','sounds/:id/clone','removeAgents','app.dashboards.general.voice','newPlugin','onSaveMailInteraction','newFaxAccount','api.cmHopper.update','\x27wav49\x27','OutboundRoutesController\x20as\x20vm','OPENCHANNEL.SELECTED_AGENTS','voice/chanspy/:id/clone','delete\x20odbc','gotoProjects','motionbar','trim','deleteWidget','America/Ojinaga','Unable\x20to\x20answer\x20the\x20call','selectAllIntervals','selectedTriggers','webbar:hangup','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html','getPlugins','America/Panama','deleteGlobalCustomField','deleteSelectedVoiceRecordings','America/Bahia','SYSTEM:GETprojects','CANCEL','exportSelectedContacts','None','VtigerAccounts','monthDayFrom','Field\x20has\x20been\x20deleted!','selectedTriggerAllConditions','fax/interactions/:id/clone','deleteChatQueuesWaitingInteractions','CreateOrEditInboundRouteDialogController','msg_id','webrtc','unregistered','id,name,role,context','delete\x20SalesforceAccounts','smsAccountSmsCannedAnswers','deleteSmsQueuesWaitingInteractions','Sequence','app.integrations.servicenowAccounts.edit','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','commitDate','motion2.home.recordings:','app.video','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html','Team\x20properly\x20saved!','app.tools.intervals','ms-target','src/js/modules/main/apps/staff/views/teams/teams.html/teams.html','exportContacts_','saveSection','jscripty/sessions/reports/describe','pm2@get','Europe/Tirane','composeSmsInteraction','chatWebsiteInteractions','CreateOrEditServicenowAccountDialogController','disposition','newCustomDashboard','InternalRoute\x20updated!','fax/accounts/:id/interactions','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27loose\x27','searchFields','api.mailQueue.delete','apps.fax.faxQueues','','getFaxAccounts','analyticTreeReport','CompanyController','parser','delete\x20whatsappQueue','UserVoiceDashboardGeneralController\x20as\x20vm','getContacts','order','registerMainForm','editWhatsappAccountApp','whatsapp/accounts/:id/dispositions','voice/recordings/:id/downloads','deleteWhatsappAccount','DASHBOARDS.DASHBOARD','app.sms.realtime.queues','mohSounds','CompanyId','America/Sao_Paulo','integrations/zoho/fields/:id','CALLYSQUARE.NEW_ODBC','initDeviceInProgress','analyticMetric','List\x20properly\x20deleted!','deleteVtigerAccount','arraymaxrate','integrations/describe','faxQueue@get','api.analyticFieldReport.update','angucomplete-alt:clearInput','openchannel/applications/describe','ZohoAccount\x20properly\x20saved!','delete\x20mailSubstatus','$eval','interval@get','deleteTemplate','sip_id','AgentteamaddController','get_parent','cmHopper','onUpdateWhatsappInteraction','InboundRoute\x20properly\x20created','interactions','SYSTEM:DELETEcmList','SYSTEM:MERGE_CONTACT','src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html','ASC','app.mail.mailAccounts','Opera','trimEnd','OpenchannelAccountagentaddController','onSaveMailQueue','lastIndexOf','all','exportSelectedMailSubstatuses','whatsappInteractionDownload','eu-ES','EditWhatsappAccountAppqueueDialogController','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html','capitalize','SYSTEM:GETvoiceMail','myQueues','Audio_Files','INTEGRATIONS.EDIT_','dialogFlowLanguage','MsStepperController\x20as\x20MsStepper','goToFaxAccount','iceCandidateTimeout','arraytable','America/Porto_Velho','selectedTelephones','gotoif','motion2.home.contacts:','screenRecording','src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html','lastStep','DASHBOARDS.MON','IAX','getFreshdeskConfiguration','unhold\x20->\x20session','mail.mailAccounts','api.analyticExtractedReport.save','src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view.html','DashboardCustomController','jscriptySessions','createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','openchannelAccounts','getFinals','match','advancedSearch','gotoChatQueues','America/Barbados','mailMessage:save','apps.home.contacts','Spanish\x20(Venezuela)','eurturkishmale','QuickFilterManager::setPlaceholder','motiondialer','cm/hopper_black/:id/clone','app.core','leave','America/Cancun','Yesterday','cm/hopper_final/voice/queue/moveContacts/:id','mailAccounts','migrations/:id/clone','queueCampaignHopperBlacks','Trunk\x20properly\x20saved!','Delete\x20IvrCampaign','pause_id','\x27intelepeer\x27','chat/reports/transfer/:id/clone','WhatsappAccountagentaddController','street','intSugarcrmConfiguration','msTimeline','Queues\x20association\x20has\x20been\x20updated!','msPhonebar','AgentPermissionsController','Invalid\x20company\x20name.','TrunksController\x20as\x20vm','delete\x20descriptions','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','Integrations','flattenDeep','MsFormWizardController','createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','mycontacts','selectedTemplates','deleteSelectedDispositions','newWhatsappAccount','voiceMail','fax/messages/:id/clone','integrations/zoho/accounts/:id/clone','isAdmin','chatCannedAnswers','users','api.mailQueue.update','ChatWebsiteProactiveActionsController','deviceInfo','Unable\x20to\x20shutdown\x20Jabra\x20library','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog.html','motion-client','VoicePrefixesController','\x20has\x20been\x20created!','deleteSelectedProjects','+06:00','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html','clickOutsideToClose','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html','callbackUrl','Kazakh','integrations/freshsales/fields/:id/clone','expand','src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts.html','openchannel_queue:save','voice/extensions/:id','CONTACTMANAGER.EDIT_COMPANY','user.name','America/Los_Angeles','delete\x20mailCannedAnswers','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog.html','saveInternalRouteApp','Spanish\x20(Honduras)','openchannelMessage:update','QueueCampaign\x20properly\x20cloned','delete\x20salesforceConfiguration','autoAnswerDelay','America/Curacao','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','ivr','America/Indiana/Indianapolis','webbar:answer','sms/accounts/:id/applications','o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','callbackQueue','user','Dora','Lucky\x20day','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html','English\x20(Tanzania)','Europe/Istanbul','openchannelMessage','Ines\x20(Portuguese,\x20Female)','msScrollConfig','/about','CreateOrEditHopperVoiceQueueIdDialogController','square/messages/:id','range','readOnly','0.87','getDeskAccounts','voice/contexts/describe','ctrlMethods','api.condition.save','api.voiceExtension.delete','integrations/zendesk/configurations/:id/tags','trigger:browser:url','.wav','CreateOrEditSquareProjectDialogController','FAX.NEW_FAXQUEUE','smsAccountInteractions','delete\x20servicenowAccount','America/Indiana/Petersburg','sms/reports/queue/:id/clone','Lucida\x20Sans\x20Unicode','addNewFreshsalesConfiguration','Disposition','ChatGroupController','onResultClick','talking','agentCapacity','\x27none\x27','Body','Answer','Bosnian','Settings','mail-interaction','selectedMailShowDetails','mouseenter\x20mouseleave','OpenchannelCannedAnswer\x20properly\x20saved!','selectedTrunks','outboundroute','Xhosa','disableGetContact','api.sms.account','app.staff.agents','hideDelay','apps.home.mycontacts','JSCRIPTY.CLONE_PROJECT','selectedFaxAccountApps','MARKETPLACE.PLUGINS','users/:id/whatsapp_accounts','Esperanto','German\x20(Germany)','deselectSugarcrmAccounts','users/:id/agents','getChatWebsiteOfflineMessages','WHATSAPP.SELECTED_AGENTS','mail/accounts/:id/interactions','JscriptyProjectsController\x20as\x20vm','sms/queues/:id/users',',xX,,,300,,,,,','api.chatWebsite.delete','app.plugins','deleteSelectedSmsAccountInteractions','WebSocketInterface','motion2.home.openchannel:','Invalid\x20list\x20name.','getSummary','msScroll','VoiceRealtimeController','waiting','extension','daysOfWeek','clearLockedItems','\x27WAV\x27','cm/contacts/:id/hopper_histories','hmac','Interaction:update','Atlantic/South_Georgia','deleteSelectedListCustomFields','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','addNewSound','getAttachment','onDateRangeSelection','America/Guayaquil','ReportController\x20as\x20vm','squareReportDetail','Chrome','SYSTEM:GETsetting','api.voiceRecording.update','api.condition.delete','\x27tls\x27','Delete\x20VoiceRecording','arrayactionType','General\x20properly\x20deleted!','OPENCHANNEL.OPENCHANNELACCOUNTS','QUEUE_NAME','=msNavigationNode','FreshdeskConfiguration\x20properly\x20saved!','thu','isArray','user_has_whatsapp_interactions:remove','Pauses','QueuesVoiceRealtimeController\x20as\x20vm','finally','angularMaterialFormBuilder','el-GR','mail/substatuses/describe','\x20has\x20been\x20run!','disableCustomScrollbars','SYSTEM:DELETEteam','selectedInboundRouteApps','src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html','apps.sms.smsQueues','AgentsChatRealtimeController\x20as\x20vm','newsAlertHide','addNewZohoConfiguration','SYSTEM:DELETEplugin','CreateOrEditVtigerAccountItemDialogController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?','uploadSound','customField','getPauses','chatStatusTime','$log','getFirstAvailableContact','getInternalRouteApps','rundialog','arraypriority','rpcCalls','Trebuchet\x20MS','ZendeskAccount\x20properly\x20deleted!','SYSTEM:DESCRIBE_CM_CONTACT','mailAccountApp','faxInteractions','whatsappMessage','Romanian\x20(Romania)','api.cmCustomField.save','analytics/default_reports/:id/preview','css','MailAccounts','openchannelCannedAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','freshdesk','exportSelectedContexts','Kinyarwanda','Square\x20ODBC\x20properly\x20tested','HotDeskDialogController','apps.chat','European\x20Turkish\x20Female','delete\x20extractedReport','intVtigerAccount','Australia/Darwin','.ms-nav-button','Edit_permission','api.analyticMetric.save','America/Noronha','dialPredictiveIntervalMaxThreshold','Europe/Volgograd','Accepted','\x27voice\x27','deleteMailAccount','ChatWebsiteScriptController','SYSTEM:DELETEintVtigerAccount','EditInternalApp','whatsapp/accounts/describe','addVoiceQueuesChannels','Last','FreshsalesConfiguration\x20properly\x20deleted!','STAFF.SELECTED_QUEUES_','outboundBusyCallsDay','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html','app.forgot','chat/queues/:id/members','CreateOrEditVtigerAccountDialogController','UsersController\x20as\x20vm','delete\x20hopperBlack','DASHBOARDS.SMS','TOOLS.TAGS','chatInternalMessage:save','Africa/Khartoum','Delete\x20FaxQueue','\x27report_jscripty_sessions\x27','api.user.delete','ChatWebsiteController','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','selectedMusicOnHoldMohSounds','SYSTEM:DELETEvoiceContext','third','addNewDeskConfiguration','out-left-aligned','testtestintegrationaccount','restartplugin','\x2714400\x27','SYSTEM:GETsmsAccounts','Penelope','ap-northeast-2','ForgotPasswordController','newSmsAccount','ChatWebsiteagentaddController','SMS.NEW_SMSQUEUE','UserChatDashboardGeneralController','userSmsQueue:remove','context','recentEmojis','app.integrations.zohoAccounts.edit','No\x20images','CDR(routeid)=','trunk_id','whatsapp/queues/:id/clone','apps.home.voice','createOrEditUserProfile','/accounts','DASHBOARDS.ABANDONED','forms','+13:45','templates','Dialer\x20Hopper\x20Final','New\x20Report\x20Field','sidenav-open','src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html','VOICE.EDIT_INBOUNDROUTE','getMailAccountMailCannedAnswers','g729','forgot','onHook','bottom_right','exportSelectedQueueCampaignHopperBlacks','standardDate','VoiceRealtimeController\x20as\x20vm','changepassworddialog','ngBindHtmlUnsafe','vm.detailForm.$pristine','createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','caenglishfemale','session','saveZendeskAccount','integrations/zendesk/configurations/:id','Error404Controller','\x27integrationTab\x27','voice','selectedDisposition','vm.globalCustomField.type','Outlook365','eurportuguesefemale','US\x20Spanish\x20Male','src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html','UserProfile\x20properly\x20deleted!','INTEGRATIONS.INTEGRATIONS','intDeskAccount@get','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','newServicenowAccount','AgentHomeDashboardMultiChannelWhatsappController','INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION','selectAllInternalRoutes','intDeskConfiguration','WHATSAPP.WHATSAPPACCOUNTS','prefix','Agents','integrations/freshsales/configurations/describe','America/Iqaluit','ms-navigation-item','huhungarianfemale','Messages','internalrouteApp','createdAt,updatedAt,id,name,description','integrations/desk/configurations/:id','display','newInterval','saveFreshsalesAccount','editstate','variables/describe','MsNavigationController','Error','debugEnabled','\x20has\x20been\x20uninstalled!','SYSTEM:PAUSEUSER','sendUnpauseOnSubmit','Delete\x20disposition','audiooutput','smsCurrentCapacity','MailQueueController','si-LK','\x27select\x27','WhatsappAccountActionsController','saveAgents','mouseenter','teal-fg','ms-navigation-horizontal-node','webkitNotification','whatsappQueues','Indian/Cocos','integrations/servicenow/fields/:id/clone','editMailAccountApp','statedesc','rfc2833','selectedTableChange','PLUGINS.PLUGINS','$observe','advancedQuery','Australia/Lindeman','UserProfile\x20properly\x20saved!','deleteChatWebsite','vm.selectedCompany','You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22','OutboundRoutes','\x27agi://127.0.0.1/square,{{project.name}}\x27','+12:00','api.intFreshsalesAccount.delete','WhatsappQueueagentaddController','The\x20sugarcrmAccount\x20will\x20be\x20deleted.','NotFoundError','modelCtrl','tagName','saveTrigger','Intervals','msInfoBar','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword.html','Europe/Rome','','subString','\x20DESC','api.intFreshsalesConfiguration.save','deleteTag','square/recordings/:id','Infobip','Unable\x20to\x20convert\x20question','','faxAccount','ivrAnswerCallsDay','api.action.save','delete\x20Users','api.plugin.delete','cmCustomField','getProjects','msNavigationHorizontal','zoho','API\x20accept\x20message\x20not\x20found:\x20','delete\x20hopperFinal','customization','timer-tick','Pacific/Auckland','helperClasses','gotogoto','FAX:SEND','send','\x27stun\x27','deselectProjects','ar-IQ','Message\x20properly\x20sent!','ngFlowOptions','isUndefined','columns','collapse','zendeskConfigurations','Tatyana\x20(Russian,\x20Female)','\x2722\x27','userLists','deleteSelectedQueueCampaignHopperBlacks','histories','voiceMusicOnHoldDownload','^msMasonry','\x27DESC\x27','contactRelationUpdate','Corsican','eurpolishfemale','agi://127.0.0.1/square,','handleMouseenter','onClose','app.video.screenRecordings','capacity','CreateOrEditDeskAccountDialogController','selectedMailAccountMailCannedAnswers','WhatsappRealtimeController\x20as\x20vm','deleteInterval','getMailQueues','MsSearchBarController','Unable\x20to\x20find\x20a\x20valid\x20call\x20to\x20answer','app.errors_error-500','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?','selectedLanguage','square/recordings/describe','port','position','UserProfileController','src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards.html','ar-TN','Last\x20Week','America/Cambridge_Bay','CreateOrEditZendeskAccountItemDialogController','deleteSalesforceAccount','api.chatWebsite.update','VOICE.CHANSPIES','$eq','app.errors.error-500','Error404Controller\x20as\x20vm','addNewReportField','loadMore','zendeskConfiguration','full','delete\x20ChatWebsites','Europe/Chisinau','VtigerConfiguration\x20properly\x20saved!','ms-shortcuts','schedules/:id','integrationReport','/abandonedcalls','api.contacts.save','trigger:jscripty','defaultQueues','api.whatsappAccount.update','-04:00','@msUtils.firstLastDayMonth()','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog.html','user_has_openchannel_interactions:save','api.mailAccount.save','Armenian\x20(Armenia)','mail/interactions/:id/download','selectedSubjects','Pacific/Guadalcanal','basename','America/Araguaina','HANGUPCAUSE_41','whatsapp/reports/transfer/:id','delete\x20mailAccount','\x27fax_messages\x27','deleteQueueCampaignHopperHistory','UserProfile','Least\x20Recent','sectionId','selectedQueueCampaignHopperBlacks','createOrEditServicenowAccount','America/Asuncion','app/main/apps/chat','krkoreanfemale','material.components.expansionPanels','id,fullname','queueAdd','aws_lex_region','microphone','integrations/zoho/configurations/:id/descriptions','icon-cart','Error\x20updating\x20locally\x20stored\x20tabs','UserTeam','CloudProvider','-11:00','dynamics365Accounts','app.integrations.freshsalesAccounts.edit','euritalianfemale','delete\x20CannedAnswers','getListCustomFields','company','faxQueue:remove','selectedZohoAccounts','Amharic','Fax\x20Account','channelStatus','yearsS','chat/groups/:id/messages','license/:id/clone','NetworksController\x20as\x20vm','mail/messages/:id/download','gotoReports','zh-CN','src/js/modules/main/apps/staff/views/users/edit/view.html/view.html','api.squareOdbc.delete','Dynamics365Configuration\x20properly\x20saved!','voiceQueue','voiceMail.mailbox','Mathieu','VIDEO.SCREENRECORDINGS','conditions','sessionsgoto','scrollLeft','DASHBOARDS.READ','exportSelectedUsers','getFaxQueuesWaitingInteractions','AgentsMailRealtimeController\x20as\x20vm','write','alert','isBefore','icon-home','FreshsalesAccount\x20properly\x20deleted!','api.intFreshsalesConfiguration.delete','cmContact@getJscriptySessions','Australia/Perth','username','\x27onlyIfOpen\x27','Safari','delete\x20servicenowConfiguration','isSame','SYSTEM:GETmusiconholds','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html','mail/reports/transfer/describe','answeredAt','Vietnamese\x20(Vietnam)','integrations/vtiger/configurations/:id','secToTime','yes','accountProperty','icon-phone','global','en-KE','Comic\x20Sans\x20MS,cursive','app.whatsapp.realtime.agents','getDispositions','UserWhatsappDashboardGeneralController','/:id?tab','addNewFaxQueue','America/Guyana','mail/messages/:id/clone','deleteSelectedChatWebsiteProactiveActions','app.tools.trunks','mail/out_servers/:id/clone','responsive','/screenRecordings','selectAllUsers','TOOLBAR.SPANISH','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view.html','FreshsalesAccount\x20properly\x20created','SYSTEM:GETvoiceExtension','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html','onMessageSave','SYSTEM:DELETEintFreshsalesAccount','ReportsController\x20as\x20vm','createOrEditZohoConfiguration','chatInteractionTags:save','OpenchannelQueues','callerId','contextmenu','EditChatWebsiteAppsystemDialogController','CustomDashboard\x20properly\x20deleted!','userProfile/resources/:id','AgentHomeMailController','faxQueue:save','hopperHistory\x20#','OdbcsController\x20as\x20vm','whatsapp/applications/:id','apps.voice.voicePrefixes','api.intZohoAccount.save','Telephone','chatInternalMessage','saveMailCannedAnswer','/realtime','reLayout','TOOLBAR.NOTIFICATION_TITLE_RECIPIENT','America/Argentina/Catamarca','src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar.html','Fax\x20Report\x20Transfer','DASHBOARDS.SEPTEMBER','onhold','whatsapp/messages/:id','newSmsQueue','createOrEditGlobalCustomField','union','VOICE.EDIT_VOICEPREFIX','-03:00','TOOLS.TEMPLATES','blur','chat/interactions/describe','voicePrefix\x20properly\x20deleted!','createOrEditMailSubstatus','avgHoldTime','\x27turn\x27','openchannelInteractionTags:save','delete\x20sugarcrmConfiguration','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','whatsapp/interactions/:id/tags','msCard','EditFaxAccountAppgotoifDialogController','TelephonechangepasswordController','internalControl','voice/recordings/:id/transcribe','tif','Position','ro-RO','id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','The\x20context\x20will\x20be\x20deleted.','createdAt,updatedAt,id,name,level,ParentId','MailAccountController','getActions','src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime.html','Message\x20not\x20found!','createOrEditPlugin','/analytics','ckeditor','amaflags','TransferMessageDialogController','+04:30','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','@autocomplete','SETTINGS.SYSTEM','hasChildren','Thumb','tls','endValue','api.intSalesforceConfiguration.delete','integrations/dynamics365/configurations/:id/subjects','userIsNotPhonebar','onRemoveUserWhatsappQueue','isValidRange','gotoSalesforceAccounts','uploadSounds','Ruben\x20(Dutch,\x20Male)','mailPause','group','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','IntervalId','AbandonedCallsVoiceRealtimeController\x20as\x20vm','Asia/Taipei','EditInternalAppvoicemailDialogController','saveCustomField','deleteMailQueuesWaitingInteractions','exportSelectedZendeskAccounts','$mdTheming','rurussianfemale','chanSpy\x20properly\x20created','closeFolded','\x20deleted!','CustomizationlogologinController','mailServerOut','SquareProjects','ChatWebsitelogoController','ChangePasswordController','setScrollEl','vm.agent.showWebBar\x20==\x201','chatQueue:remove','EditSmsAccountAppgotoifDialogController','acceptcall','saveChatProactiveAction','QueuesSmsRealtimeController\x20as\x20vm','find','integrations','exportSelectedMailAccountMailCannedAnswers','newTag','mohSound','Start\x20Video\x20Call','remotePlayerId','Substatus','Interval\x20updated!','createdAt,updatedAt,id,Contact.firstName','trunks','mailCannedAnswers','Fwd:\x20','\x27rounded\x27','input','DASHBOARDS.THU','addNewTemplate','STAFF.NEW_USER','analytics/field_reports/:id/create_many','gotoDynamics365Accounts','id,fullname,role','cm/lists/:id/fields','gu-IN','Astrid','newDashboardItem','exportSelectedIvrCampaigns','onNewRTCSession\x20->\x20vm_pb.sessions','deleteExtractedReport','createOrEditVtigerConfiguration','SYSTEM:GETplugin','license@get','/jscripty','MailSubstatus','display_name','app.voice.voiceQueues.edit','https://www.xcally.com/bar/phonebar/autoupdater.xml','agentcompleteAt','OPENCHANNEL.NEW_OPENCHANNELACCOUNT','US\x20English\x20Male','jscripty/questions/reports/:id/clone','users/:id/pause','Delete\x20Agent','Dynamics365Configuration\x20properly\x20deleted!','unlicensed','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog.html','orange-A700-bg','showInteraction','delete\x20chatCannedAnswers','sort','app.tools.templates','300','plugins/:id/clone','angucomplete-alt:changeInput','voiceCalls','muted','CustomField\x20properly\x20deleted!','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html','getResults','freshdeskConfiguration','\x2717\x27','interval\x20#','delete\x20subject','deletevoicePrefix','propertiesList','xmd-contactid','fax-interaction','take','New\x20Item','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','allowDelete','blue-grey-fg','Pacific/Nauru','SYSTEM:GETjscriptyProject','integrations/:id/clone','RecordDialogController','app.dashboards.general.user','chat/proactive_actions/:id','webbar:originate','spymailInteraction','displayValue','Asia/Bishkek','Smtp\x20updated!','EditMailAccountAppnoopDialogController','colors','isEmpty','jpjapanesefemale','SAVE','SYSTEM:GET_REPORTS','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html','dateFilterLocalizationFactory','CreateOrEditSalesforceAccountItemDialogController','delete\x20sugarcrmAccount','fax_queue_waiting_interaction:remove','api.intServicenowConfiguration.save','delete\x20metric','ui-sref','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','/api/chat/websites/:id/system_avatar','transcribeStatus','ms-nav-folded\x20ms-nav-folded-open','referAttended\x20->\x20session','FaxQueueController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','getSmsQueuesWaitingInteractions','SYSTEM:GET_INTERVALS','Metric\x20properly\x20deleted!','integrations/freshdesk/configurations/:id/subjects','integrations/freshsales/configurations/:id/clone','MetricsController\x20as\x20vm','=msNavigationHorizontalNode','fromJson','AgentsOpenchannelRealtimeController','Asia/Singapore','FreshdeskAccounts','dashboardItem','ring','closed','UserDashboardGeneralController','arrayencryption','createdAt,','api.campaign.delete','SETTINGS.NEW_GENERAL','keys','Mobile\x20','DASHBOARDS.THIS_MONTH','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog.html','erlangBusyFactor','safari','{{\x20name\x20}}\x20<{{\x20email\x20}}>','UserProfilesController','Delete\x20Template','sms/interactions/describe','sound','apps.voice.realtime','Dashboard','chatMessage:save','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html','#275498','NoSuchNumber','French\x20(France)','License\x20Request','integrations/vtiger/configurations/:id/fields','\x27SIP\x27','windowHeight','$mdSidenav','\x27de\x27','trunk.name','settings/:id/favicon','America/Jamaica','All\x20resources\x20enabled','screen/recordings/describe','addNewProject','cmn-Hant-TW','MarketplacePluginController','saveChatQueue','SYSTEM:DELETEintSalesforceAccount','DASHBOARDS.UNKNOWN','msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)','selectAllZendeskAccounts','AgentsChatRealtimeController','apps.motiondialer.queueCampaigns','contactmanager','api.schedule.save','app.whatsapp.whatsappQueues','app.voice.contexts','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html','NavigationController\x20as\x20vm','*,*,*,*','deleteSmsAccount','ContactController','cloneTrunk','gt-md','mail/messages/:id/accept','\x27cm_lists\x27','abandoned','pickerPosition','FreshdeskAccountController','selectedScheduler','iPod','isEqual','More','mailAccount@get','VoiceQueueteamaddController','settings','Australia/Adelaide','-bg','rpc/agents/:id/notify','getQuestionWithResponseList','addGroup','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','\x27unknown\x27','isStepHidden','sounds/describe','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','confirmed','SYSTEM:DELETEintZendeskAccount','src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog.html','pm2/:id','getIvrCampaignHopperFinals','Asia/Dubai','STAFF.PERMISSIONS_WARNING_CLOSE','integrations/salesforce/configurations/:id','eurczechfemale','rpc/openchannel/queues/waitinginteractions','INTEGRATIONS.EDIT_SALESFORCECONFIGURATION','canEdit','tab-container','project.name','English\x20(UK)','Files','getWhatsappQueues','apps.staff.agents','app.contactmanager.contacts','ar-EG','api.disposition.delete','originator','levels','Report\x20properly\x20deleted!','screen/recordings/:id/clone','ready','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html','openchannel/messages/:id','changeDisplayCannedAnswerInputValue','pTalking','Asia/Aqtau','addNewFaxAccount','CreateOrEditIntervalDialogController','showOnPageHidden','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html','zendeskAccounts','userProfile/sections/:id/clone','uploadComplete','addFields','exportSelectedOutboundRoutes','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog.html','Arial,Helvetica,sans-serif','CDR(destination)=','getUnread','Status','Fax\x20Report\x20Queue','getFaxAccountInteractions','/license','TOOLBAR.NORWEGIAN','deleteSelectedScreenRecordings','Delete\x20VtigerConfiguration','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog.html','createOrEditMusicOnHold','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html','Customization\x20properly\x20deleted!','$mdMedia','src/js/modules/main/apps/tools/views/intervals/edit/view.html/view.html','deleteSelectedODBC','permission','ms-navigation-folded-open','newSquareRecording','onAutocreateSelection','Spanish\x20(Ecuador)','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','api.cmList.save','The\x20project\x20will\x20be\x20deleted.','delete\x20openchannelCannedAnswer','Ukrainian','VOICE.OUTBOUNDROUTES','delete\x20hopper','fil-PH','smsApplication','\x2718\x27','scrollWidth','setNavigationScope','rpc@getAgents','delete\x20InternalRoutes','Antarctica/Casey','ChatInteractionId','pickerModel','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog.html','ListagentaddController','voice_queue_channel:save','icon-apps','medium','avgTalkTime','searchTextChange','newReport','apiName','src/js/modules/toolbar/changepassword/changepassword.html/changepassword.html','Freshdesk','CreateOrEditActionDialogController','sipcalllinkedid','string','OPENCHANNEL.ALL_AGENTS','square/recordings/:id/download','selectedReport','saveDeskAccount','containerPos','CustomReportId','CreateOrEditUserProfileDialogController','src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html/view.html','Verdana,Geneva,sans-serif','newMailSubstatus','ChineseSimplified','HELP.HELP','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unknown\x27','deleteSelectedLists','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','apps.callysquare.squareRecordings','getDescriptions','countcongestionretry','SYSTEM:GETtrigger','SYSTEM:GET_USERPROFILES','IvrCampaignresetlistController','yyears','DASHBOARDS.JULY','\x27us-west-2\x27','getOrderBy','blue-300-fg\x20icon-phone-outgoing','SMS\x20Interaction','icon-whatsapp','Process\x20stopped!','requestFailed','openchannel/queues/:id/members','conditions/:id','multipleUsers.name','endTime','VOICE.SELECTED_AGENTS','\x27mail_interactions\x27','app.errors_error-404','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','faxInteraction:update','plugin:remove','ringingMute','openchannelAccountApps','rpc/voice/channels','rpc/openchannel/queues','Metric\x20properly\x20created','api.jscriptyProject.getSummary','getWhatsappAccounts','SugarcrmAccountsController','stun:','deleteSelectedQueueCampaignHoppers','id,fullname,userpic,internal','deletePlugin','TOOLS.TRIGGERS','icon-message-text','whatsapp/reports/transfer/:id/clone','loadLastMessage','Filipino','saveProject','DispositionsController\x20as\x20vm','selectAllVoiceRecordings','mdColorPicker','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html','zoho.eu','grammar','multipleChoices','CallySquare','voice/mails/messages/:id/clone','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html','TOOLS.EDIT_PAUSE','selectAllSmsAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','post','Template','EditMailAccountAppautoreplyDialogController','integrations/freshsales/configurations/:id/descriptions','vm.customField.type','getFaxAccountLabel','A100','+10:00','smsQueue:update','Kimberly\x20(English,\x20US,\x20Female)','CannedAnswer\x20properly\x20saved!','chat/interactions/:id/messages','pauses','motion2.','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','api.chatQueue.delete','=>%3B=','delete\x20CloudProviders','setSinkId','answers','upperFirst','isValidCondition','children_d','opt2','api.pause.update','$pristine','voiceDialReportColumns','newZohoAccount','forward','icon-checkbox-marked-circle','hy-AM','Content\x20with\x20Toolbar','nospace','app.mail.mailQueues.edit','template','MotionDialer','QueuesMailRealtimeController\x20as\x20vm','info','gotoChatWebsites','listOrder','remote','/chat','America/Guatemala','app.plugins.plugin','mail/applications/describe','factory','MotionDialerQueueId','serviceWorker','SmsInteractionId','GRANTED','XCALLY-MOTION-PROGRESS=0','VOICE.MUSICONHOLDS','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','mdPickers','getRemoteStreams','convertDuration','updateLayoutMode','onRemoveFaxQueueChannel','\x27leastrecent\x27','src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html','\x27rrmemory\x27','#content','Icelandic','addNewSugarcrmConfiguration','USERPROFILE:GET_SECTION','users/whoami','delete\x20SugarcrmAccounts','whoami','CannedAnswersController','getHopperBlacks','VtigerAccount\x20properly\x20created','ServicenowAccount\x20properly\x20created','app.staff.agents.edit','rpc/whatsapp/queues/waitinginteractions','outbounddial','api.condition.update','
','CreateOrEditDynamics365ConfigurationDialogController','autoClose','cmList@getCustomFields','$setValidity','SYSTEM:DELETEtrunk','integrations/zoho/fields/describe','\x27inuse\x27','SalesforceAccounts','Interaction','mail/accounts/:id/applications','api.contact.delete','thirdDisposition','api.intSugarcrmAccount.save','pluginId','mouseenter\x20touchstart','getItems','createdAt,updatedAt,id,name,table,metric,description','app.contactmanager.contacts.edit','dark','Incoming\x20call\x20from:\x20','reportField','format','apps.integrations.freshdeskAccounts','pt-br','grey-fg\x20icon-minus-circle','Brazilian\x20Portuguese\x20Female','app.staff','','deleteListCustomField','CreateOrEditCustomFieldDialogController','STAFF.ALL_AGENTS','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','getGroups','freshsalesAccount','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html','openchannelQueue:update','EditInboundAppvoicemailDialogController','InboundRoutesController','SmsAccountDispositionsController','apps.voice.chanSpies','MailQueuesController','GlobalCustomFields','SYSTEM:GET_VOICEQUEUES','userProfileSection@get','useSanitizeValueStrategy','CompanyController\x20as\x20vm','UserWhatsappQueue','statusText','apps.voice.musiconholds','apps.contactmanager.globalCustomFields','variable@get','FooterController','jscripty/projects/:id/summary','VoicePrefixes','INTEGRATIONS.DYNAMICS365ACCOUNTS','Target','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog.html','TriggerAnyId','createOrEditPause','gotoTrunks','jabraSession','metric','Punjabi','MsPhonebarController','integrations/desk/fields/:id','Atlantic/Faroe','integrations/desk/configurations/:id/fields','deleteSelectedMailAccounts','editOpenchannelAccountApp','integrations/:id','app.analytics.extractedReports','CreateOrEditFreshdeskAccountDialogController','exportSelectedChatWebsiteProactiveActions','jscriptySessionReport','question','whatsappAccountWhatsappCannedAnswers','/integrations','icon-video','getCustomDashboards','FaxAccountController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20','Europe/London','Korean','statusList','getCannedAnswers','newDisposition','mwForm.pageEvents.changePage','Azerbaijani\x20(Azerbaijan)','The\x20customField\x20will\x20be\x20deleted.','api.downloadMessage.get','openchannel/messages/:id/reject','OpenchannelAccountId','goTo','MsStepper','dispositions/:id','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog.html','app.whatsapp.realtime','Quarters','WhatsappAccountsController\x20as\x20vm','createOrEditReport','Pacific/Palau','exportSelectedTeams','now','Report\x20updated!','chat/queues/:id/clone','delete\x20trunk','equals','partial','pending','Report\x20properly\x20run!','outboundReCallsDay','Customization\x20updated!','chatInternalMessage:update','motion-paleblue','defer','websocket','European\x20Danish\x20Female','Datetime','createOrEditInboundRoute','newFaxQueue','displayCannedAnswerInput','createOrEditMetric','WhatsappAccount\x20properly\x20saved!','chat/offline_messages/describe','delete\x20deskConfiguration','white-bg','userProfile@get','Arial','\x27g722\x27','getWhatsappAccountLabel','integrations/salesforce/fields/describe','resolve','InternalRouteController\x20as\x20vm','America/Grand_Turk','voice/dials/reports/:id/clone','app/footer','newSmtp','es-ES','rgb(','TOOLS.DELETE','voice/mails/messages/describe','The\x20max\x20allowed\x20size\x20is\x20','voicemails','cm/contacts/upload/:id','MsFormWizardController\x20as\x20msWizard','VERSION\x20','delete\x20zendeskAccount','SYSTEM:GET_INTERVAL','\x27wrapup\x27','isNaN','VOICE.SELECTED_TEAMS','Asia/Yerevan','toDate','chatQueue:update','voicemail','SYSTEM:GET_MODULE_PERMISSIONS','ANALYTICS.EDIT_EXTRACTEDREPORT','Ukrainian\x20(Ukraine)','basicstyles','lastPauseAt','motion2.home.','deleteSelectedMusicOnHoldMohSounds','getCampaigns','msWidgetBack','FaxQueue\x20updated!','Ringall','treeDefaultData','api.jscriptyProject.clone','light-blue','TOOLBAR.FINNISH','newCannedAnswer','editInternalRouteApp','key','DELETE','fax/messages/:id/accept','blue-300-fg\x20icon-phone-paused','English\x20(South\x20Africa)','selectedOutboundRoutes','stopplugin','app.settings.updates','arraydelete','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects.html','src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html','api.voiceRecording.delete','KDE','attachment','SYSTEM:DELETEtemplate','SMS\x20Queues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','joins','deleteSelectedQueueCampaignHopperHistories','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html','deleteSelectedOpenchannelQueues','src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html','api.intDynamics365Configuration.save','PluginController\x20as\x20vm','\x27no\x27','Asia/Novokuznetsk','motion2.home.fax:','api.whatsappQueue.update','api.userProfile.save','extraHeaders','getContactsCsv','id=','hue','\x27centered\x27','isSearchBarVisible','selectedContact','closest','Delete\x20ZendeskAccount','msVerticalStepperStep','getServicenowConfiguration','SYSTEM:DELETEpause','rpcCampaigns','apps.integrations.salesforceAccounts','applyFilter','filename','analytics/tree_reports/:id','$broadcast','ms-tab-scroll','SMS.EDIT_SMSACCOUNT','SETTINGS.NEW_NETWORK','api.smsQueue.update','Delete\x20OpenchannelAccount','userProfileId','oldPassword','NO_ANSWER','smsQueueReport','fromTemplate','integrations/servicenow/configurations/:id/subjects','toJson','deleteFieldConfirm','deleteSelectedReportFields','America/Manaus','api.intFreshdeskConfiguration.update','sms/interactions/:id/tags','app/main/apps/jscripty','api.cmHopper.save','STAFF.USERS','users/:id/queues_rt','api.smsAccount.save','identity','apps.settings','onAddstream\x20->\x20data','gotoZendeskAccounts','QueueCampaign\x20updated!','onFinish','SYSTEM:GETuser','\x27report_agent\x27','sms/accounts/:id/users','integrations/zendesk/accounts/:id/clone','\x2712000\x27','SYSTEM:EDITMODALSHOW','America/Danmarkshavn','delete\x20sessions','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html','selectedMailAccounts','gotoMailAccounts','AgentsFaxRealtimeController\x20as\x20vm','Arabic\x20(Morocco)','eu-central-1','Project\x20has\x20been\x20','chatPause','Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process','handleKeydown','Company','America/Montevideo','user_has_chat_interactions:save','telephone','saveGeneral','getScrollEl','bn-BD','editdialog','MAIL.ALL_TEAMS','\x0a','uselessFields','preview','Init\x20error','deleteZohoAccount','apps.motiondialer.ivrCampaigns','ico','chat/offline_messages/:id/clone','UserWhatsappAccount','$selectedColor','whatsappMessage:update','SYSTEM:DELETEreportsByParents','MAIL.EDIT_','deselectVariables','src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view.html','selectedPauses','mail/messages/:id/reject','getMailAccountInteractions','onProgress\x20->\x20session,\x20data','runsentimentSelectedVoiceRecordings','isStepValid','cmn-CN','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','mainForm','EditInternalAppgotoDialogController','chat/groups/:id/clone','Anonymous','MxGraphEditXMLController','chrome','selectAllTrunks','smsQueue','Pacific/Fakaofo','api.voiceContext.save','app.settings.customizations','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html','cm/contacts/:id/clone','HANGUPCAUSE_22','treeCustomData','properties','toggleAll','Would\x20you\x20like\x20to\x20delete\x20','cm/hopper/:id/clone','$mdColorPalette','setItem','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html','endTimeAttr','Fax\x20','instances','openchannelCannedAnswer','demo','arrayoutput','To\x20is\x20mandatory','apps.callysquare.projects','AgentsMailRealtimeController','America/Tijuana','deleteFreshsalesAccount','Teams','Lingala','ListCustomFieldsController','analyticFieldReport','ChatWebsitesController\x20as\x20vm','usersMap','onSaveUserSmsQueue','delete\x20plugin','exportSelectedSmsQueues','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','integrations/sugarcrm/configurations/:id/subjects','Users','page','dashboards','Asia/Gaza','MOTIONDIALER.NEW_HOPPER','timelineOptions','openchannel/queues/:id/clone','prototype','\x22\x20err:','contrast3','TelephonesVoiceRealtimeController\x20as\x20vm','Sound\x20properly\x20saved!','countnoanswerretry','intServicenowField','mapValues','closedAt','ANALYTICS.EDIT_REPORT','IS_LESS_THAN_OR_EQUAL_TO','green-A700-fg','rpcMailQueuesWaitingInteractions','MailSubstatusesController','onUpdate','getOpenchannelQueues','deleteReportField','dayOfWeekFrom','hi-IN','squareOdbc@get','onRemoveUserSmsQueue','Danish\x20(Denmark)','SYSTEM:DELETEsound','AgentHomeVoiceDetailsController','toolbarColor','sessionConf','api.intZendeskAccount.update','waitImagesLoaded','horizontalNavigation','selectedQueueCampaignHoppers','general','open','SoundsController\x20as\x20vm','ContactController\x20as\x20vm','voice/queues/:id/hoppers','Asia/Tokyo','getMessages','src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view.html','templates/describe','SalesforceConfiguration\x20properly\x20deleted!','end','deselectWhatsappAccounts','America/Indiana/Tell_City','previousStepInvalid','teams/describe','deletechanSpy','users/:id/chat/interactions','America/Indiana/Winamac','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','setCurrentUser','getOpenContacts','FooterController\x20as\x20vm','deleteChatWebsiteChatProactiveAction','motion2.home.mail:','mailAccountApps','-08:00','delete\x20QueueCampaigns','The\x20freshdeskAccount\x20will\x20be\x20deleted.','yue-Hant-HK','email','configuration','app.fax.faxAccounts.edit','CDR(type)=internal','delete\x20Teams','openchannel/messages/:id/clone','deselectFaxQueues','messageId','gotoLastStep','width:\x20265px;','getIvrCampaignHopperHistories','fax/reports/queue/:id','GROUP_CONCAT\x20ASC','apps.settings.generals','SYSTEM:GET','Interaction:save','AgentHomeRecordingsController','countglobal','\x27udp\x27','/dashboards/general','newExtractedReport','src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect.html','Amharic\x20(Ethiopia)','audio','CreateOrEditFreshdeskConfigurationDialogController','shiftKey','CONTACTMANAGER.SELECT_LIST','VoicemailMessagesController','\x27sms_queues\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','100','jan','AppZone','campaigns/:id/lists','api.plugin.update','customField\x20#','Mandarin\x20Chinese','Asia/Choibalsan','ar-JO','SYSTEM:GETusers','app/forgot','radio','QueueCampaignHopperHistoriesController','rpc@getWhatsappQueues','assign','CreateOrEditCloudProviderDialogController','ivrTotalCallsDays','deleteSelectedTriggerAnyConditions','{{millis}}','voice_queue:save','onload','Africa/Ceuta','saveSugarcrmConfiguration','ar-MA','Salesforce','ORDER\x20BY\x20','onRemoveUserOpenchannelQueue','deselectIvrCampaigns','\x27very\x27','European\x20Portuguese\x20Male','voice/transfers/reports/:id/clone','deleteSelectedNetworks','Skebby','UserProfile\x20properly\x20cloned','VOICE.NEW_INBOUNDROUTE','eu-west-2','mindigit','getApiKey','TrunkController','onReadyEditor','FAX.REALTIME','fr-CA','\x20ASC','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html','mailInteractionDownload','queryHopper','/mailQueues','onChangeAutoAssociation','ja-JP','api.cmList.delete','deselectSalesforceAccounts','alwaysWatchTheme','Spanish','onRemoveWhatsappQueueChannel','^msVerticalStepper','Delete\x20dispositions','integrations/sugarcrm/fields/:id/clone','Delete\x20Context','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27no\x27','subject','AgentFullname','src/js/modules/main/apps/staff/views/users/create/dialog.html/dialog.html','-interaction','app/errors/500','tech','fax/reports/transfer/:id','\x27{{voiceMail.mailbox}}@from-voicemail\x27','uninstall\x20plugin','INTEGRATIONS.EDIT_ZENDESKCONFIGURATION','src/js/modules/main/apps/tools/views/trunks/edit/view.html/view.html','queueCampaignHopperHistories','state','cf_','\x27report_jscripty_questions\x27','sugarcrm','apiRoute','toolbar','integrations/desk/accounts/:id/fields','deleteMusicOnHold','VIDEO.VIDEO','UservoicePrefix','CreateOrEditTemplateDialogController','selectedWhatsappAccounts','allowmessenger','service','shouldInterpolate','Import\x20has\x20been\x20stopped!','/faxQueues','OpenchannelCannedAnswer\x20deleted!','pull','VOICE.FILE_NOT_FOUND','msNavigation::stateMatched','removeJoin','chat/websites/:id/logo','toggleChat','deleteSelectedSalesforceAccounts','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','app.whatsapp.whatsappAccounts.edit','nextContact','deleteNetwork','Do\x20not\x20Disturb','saveSmtp','NOBEEP','deselectVoiceRecordings','months','delete\x20smsCannedAnswers','rpc/voice/queues/channels/:uniqueid','addNewOpenchannelAccount','intServicenowAccount@get','addEventListener','deleteSelectedSmsAccountApps','delete\x20scheduled\x20call','MxGraphSaveProjectAsController','checkRange','delete\x20Dynamics365Accounts','app.sms.smsQueues','TOOLS.EDIT_TRUNK','gotoUserProfiles','selectedQueueCampaigns','$destroy\x20event\x20fired','getCurrentUser','DADHI','navigation','\x20has\x20been\x20saved!','targetEvent','Georgian','DASHBOARDS.','deselectOpenchannelAccounts','deleteTeam','ar-AE','speaker','whatsappAccountApps','\x20properly\x20redirect!','SquareRecording\x20properly\x20saved!','openchannel/interactions/:id/messages','ru-RU','AEC','voice/mohs/:id/sounds/:id2','msBlink','app.voice.chanSpies','delete\x20variable','Pause\x20properly\x20created','$lt','/staff','timeout','internalroute','deselectAiTools','api.openchannelQueue.delete','AgentGeneralContactController','integrations/zoho/accounts/:id/configurations','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html','init','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','SalesforceConfiguration\x20properly\x20created','Widget\x20has\x20been\x20deleted!','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html','FaxInteractionId','deselectMailQueues','downloadMessage','createOrEditZendeskConfiguration','TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE','compact','tab','integrations/desk/fields/:id/clone','getChatWebsiteApps','EU\x20(Frankfurt)','campaign:save','onRemoveOpenchannelQueue','apps.settings.customizations','VoiceRecordingController\x20as\x20vm','webrtc::transfer','Marketplace','QueuesMailRealtimeController','SYSTEM:DELETEanalyticExtractedReport','delete\x20Telephones','merge','STAFF.CLONE_USERPROFILE','Delete\x20DeskConfiguration','nov','motion2.realtime.abandoned.bull.abandonedCalls:','api.whatsappAccount.delete','Last\x20Month','Please\x20use\x20only\x20json\x20files','Maxim\x20(Russian,\x20Male)','Supported\x20extension:\x20','ngclipboard','delete\x20hopperHistories','The\x20report\x20will\x20be\x20deleted.','agentAdd','api.user.save','types','api.voiceChanSpy.save','/ivrCampaigns','getGlobalCustomFields','fas\x20fa-robot','sv-SE','getInboundRouteApps','apiselect','delete\x20freshdeskAccount','absorbEvent','mailCapacity','Tag','Lotte\x20(Dutch,\x20Female)','foreignTableFields','SoundsController','FreshdeskConfiguration\x20properly\x20deleted!','Laothian','selectedSmsAccountInteractions','Sundanese','exportSelectedTriggerActions','handleKeyboardAction','voiceRecordings','newZendeskAccount','jscriptyProject@get','gl-ES','CannedAnswers','toggleFold','campaigns/:id/blacklists','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html','selectAllFaxAccounts','hopperFinal','openchannelCannedAnswer\x20#','amber-A200-bg','bull','eurfrenchmale','api.jscriptyProject.save','ODBC','exists','Inbound','ANALYTICS.NEW_METRIC','GET','originated','ToId','ta-IN','Plugin\x20properly\x20deleted!','zendeskAccount','Dynamics365Accounts','red-fg','\x20properly\x20deleted!','onInteractionSave','users/:id/chat_websites','msApi::requestSuccess','orange-bg','hoppers','openchannel/accounts/describe','trunk','3.0.0-alpha','stepTitle','Frisian','deselectTeams','granted','OpenchannelAccount\x20updated!','users/:id/whatsapp_interactions','treeCustomConfig','Agent\x20properly\x20saved!','deleteOpenchannelAccountApp','MAILACCOUNT:SEND','COMMA','api.dashboard.update','getHopperHistories','_blank','mailInteraction','voice/mails/:id/clone','zh-TW','addNewDisposition','api.sound.update','duplicateContact','\x27basic\x27','\x27route\x27','setting@get','apikeymanagerdialog','selected','app.integrations.dynamics365Accounts','Delete\x20OutboundRoute','length','delete\x20ServicenowAccounts','googleSsoEnabled','deleteProjectSession','Guarani','Agent\x20logout','es-NI','Tamil','openchannelAccountOpenchannelCannedAnswers','api.item.save','Hacker','vm_dc.query.filter','converted_format','arraycservice','Project\x20properly\x20','\x27datetime\x27','searchText','TOOLBAR.CHINESESIMPLIFIED','extravar','DeskAccount\x20properly\x20tested','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html','rpcChatQueues','local','$gt','The\x20cannedAnswer\x20will\x20be\x20deleted.','FreshdeskAccount\x20properly\x20saved!','enumerateDevices','deleteServicenowConfiguration','preload','register','onDateRangeInit','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html','newInternalRoute','ChatInternalMessageId','ZohoConfiguration\x20properly\x20saved!','SYSTEM:DELETEsmsAccount','getInternalRoutes','id,level,name,description,ParentId,createdAt,updatedAt','openchannelQueues','Asia/Riyadh','trigger:contactmanager','salesforceAccounts','dd\x20MMM\x20yyyy','ServicenowAccountsController\x20as\x20vm','src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation.html','ms-navigation-node','mailAccount','setActiveTheme','Netscape','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','Description\x20deleted!','Karl','isExtra','integrations/zoho/accounts/describe','api.intVtigerConfiguration.update','new','saveShortcuts','mail/queues/:id/users','app.analytics.reports.edit','Editor','ChatCannedAnswer\x20deleted!','sms/applications/:id/clone','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html','jscripty/questions/reports/:id','setActiveItem','VoiceQueue\x20updated!','FromId','Sms','gotoSmsQueues','integrations/sugarcrm/configurations/:id/clone','No\x20corresponding\x20process\x20found','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html','automations/:id','rpc@getOutboundChannels','msNavigation::collapse','America/Denver','integrations/zoho/fields/:id/clone','onFieldChange','TOOLBAR.WARNING','desc','keyup','\x27E\x27','WhatsappAccountId','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view.html','deleteDisposition','addNewTrunk','SYSTEM:DELETEanalyticMetric','Zoho','errors','g723','ZohoAccount\x20updated!','sseconds','rounded','schedules/:id/run','deselectMusicOnHolds','onSaveFaxInteraction','voice/recordings/describe','createOrEditChatQueue','selectedIvrCampaignHopperBlacks','legend','smtp','Australia/Broken_Hill','OpenchannelAccountOpenchannelCannedAnswersController','year','apps.callysquare.odbcs','ZendeskAccountController','Announce_Overrides','-03:30','saveVoiceQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?','exportSelectedLists','chatStatus','settings/:id/gdpr','queryJscriptySession','selectedDispositions','gotoVoicemails','src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues.html','Chat','QueuesChatRealtimeController\x20as\x20vm','SmsQueue\x20properly\x20saved!','SYSTEM:GETmailQueue','rows','offsetHeight','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','listOrderAsc','Always','selectedcrudPermissions','md.data.table','toUpperCase','GlobalCustomFieldsController','users/:id/teams','onSaveMember','downloadfile','Call\x20properly\x20handled!','chat/websites/:id/dispositions','delete\x20Plugins','widgets','Oriya','parentDisposition','app/main/apps/sms','request','vtigerConfiguration','transferNumber','\x20not\x20found','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view.html','saveZohoAccount','The\x20squareRecording\x20will\x20be\x20deleted.','\x27wrandom\x27','chanSpies','outboundDial','tags/:id/clone','integrations/salesforce/configurations/:id/descriptions','vm.query','api.userProfile.update','FaxQueueteamaddController','getDateFromString','Europe/Madrid','delete\x20InboundRoutes','api.chatQueue.update','deselectMailAccounts','selectedCannedAnswers','The\x20freshdeskConfiguration\x20will\x20be\x20deleted.','MSIE','app.dashboards.general.fax','+05:30','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE','triggers/:id/actions','mail/reports/transfer/:id','Hans','EditFaxAccountApptagDialogController','\x20has\x20been\x20reset','msClickToCall','voiceContext@get','Asia/Qyzylorda','starttime','selectedSmsAccountApps','INTEGRATIONS.NEW_FRESHDESKACCOUNT','api.template.update','Fewest\x20Calls','apr','ne-NP','Calibri','userpic','TOOLS.NEW_PAUSE','Norwegian\x20(Nynorsk)','token','Context\x20properly\x20saved!','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html','America/Glace_Bay','MetricsController','selectedDynamics365Accounts','European\x20Italian\x20Male','userStatus','ml-IN','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view.html','deleteSelectedFields','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?','Agent','Notification','answer\x20->\x20session','interval','agi','version/pull','onUpdateOpenchannelInteraction','chat/websites/describe','api.intDynamics365Account.save','voiceExtension','selectAllSquareRecordings','ServicenowAccountController','api.squareRecording.delete','ANALYTICS.REPORTS','onUpdateOpenchannelQueue','newSalesforceAccount','Marlene\x20(German,\x20Female)','The\x20vtigerAccount\x20will\x20be\x20deleted.','app/reset','apps.home.whatsapp','editChatWebsiteApp','integrations/freshsales/accounts/:id','user_has_','EditSmsAccountAppnoopDialogController','channel','api.inteactionMessage.get','api.cmCustomField.update','arraymessagesAlignment','getMinutes','OpenchannelRealtimeController\x20as\x20vm','apps.chat.chatQueues','addNewTelephone','Pacific/Guam','deleteSelectedAgents','jv-ID','collapsing','downloadFaxInteraction','deleteSelectedChatWebsiteApps','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?','api.tag.delete','smsInteraction:save','selectedInboundRoutes','MailQueueId','-id','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html','SYSTEM:GETcontexts','AllCondition\x20properly\x20deleted!','hopper','xorWith','removeSections','api.team.save','api.chatProactiveAction.delete','MailSubstatus\x20properly\x20saved!','analytics/custom_reports/describe','Internal','editInboundRouteApp','api.openchannelAccount.save','facebook','mobileBarActive','CONTACTMANAGER.EDIT_CONTACT','copy','COUNT','hhours','ngSanitize','contactSearch','ChatWebsiteActionsController','deleteQueueCampaign','WHATSAPPACCOUNT:SEND','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','AdvancedSearchController','Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)','CreateOrEditSalesforceConfigurationDialogController','Delete\x20SquareRecording','VoiceRecording\x20properly\x20deleted!','pendingChanges','outboundAnswerAgiCallsDay','America/Argentina/Ushuaia','width=','404','UploadPluginDialogController','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view.html','voice/prefixes/:id/clone','addNewInterval','/voice','assignTo','IvrCampaignsController','deleteZendeskAccount','agentForm','secret','src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports.html','campaigns/:id','JSCRIPTY.JSCRIPTY','Import\x20process\x20failed!','Europe/Lisbon','app.callysquare.projects','members/reports/:id/clone','apps.jscripty','localnet','ResetPasswordController','whatsapp-interaction','Process\x20updated!','delete\x20ivrCampaign','\x20or\x20','IvrCampaign\x20properly\x20created','Agent\x20properly\x20created','whatsapp/interactions/describe','selectedResultIndex','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?','DASHBOARDS.DRAFT_SAVE_WARNING_TITLE','ar-OM','CreateOrEditUserDialogController','EditSmsAccountApp','Agent\x20Report','Version','FAX.EDIT_FAXACCOUNT','chatGroup:remove','gotoNextStep','selectedReports','$gte','CDR(prefix)=${EXTEN:0:','api.jscripty.account','deleteSelectedQueueCampaignHopperFinals','chatApplication','ABANDONED','table','render','icon-sitemap','$destroy','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','pluginUpdated','motionConfig','getApplications','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html','MailAccountId','testtestOdbc','SYSTEM:DELETECONFIGURATION','api/sounds','\x27penalty\x27','version/migrations','followuptime','lastName','openchannel.openchannelAccounts','VOICE.OUTBOUND','sms/accounts/:id/dispositions','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','api.team.update','America/Toronto','\x27ws\x27','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html','required','question,answer','onRemoveMailQueueChannel','GROUP\x20BY\x20','api.network.update','America/Vancouver','saveGlobalCustomField','newOpenchannelAccount','faxInteraction','FaxAccountsController\x20as\x20vm','onActionInit','Windows\x20App','templates/:id/clone','Russian\x20(Russia)','\x27it\x27','time','goalname','QueueCampaignsController','src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html','msRecording','src/js/modules/core/dialogs/advanced-search/dialog.html/dialog.html','POST','api.squareProject.update','intervals/:id','firstName','storagePath','Ivy\x20(English,\x20US,\x20Female)','Cambodian','applications','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html','','src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html','mwForm.pageEvents.pageCurrentChanged','Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)','$formatters','user_has_mail_interactions:remove','exportDate','createdAt,updatedAt,id,name,description,color','showWebBar','dashboardSections','inboundroute','selectedMailShowSystemMessage','Application_Name','paginatedAgents','_XCALLY_MIXMONITOR_FORMAT=','intZendeskAccount','America/Blanc-Sablon','chat/internal/messages/:id/clone','','setHours','edit','app.marketplace.plugins',',height=','What\x20would\x20you\x20name\x20your\x20list?','ringing','\x27b\x27','MarketplacePluginController\x20as\x20vm','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view.html','MailQueues','xx-hacker','selectedFreshsalesAccounts','startDate','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html','km-KH','customerIp','newUserProfile','Asia/Hovd','available','Georgian\x20(Georgia)','resourceId','populateResults','api.intVtigerConfiguration.save','Japanese','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?','CSV\x20import\x20process\x20stopped!','onSaveCampaign','targetSelected','ruri','VOICE.VOICERECORDINGS','MONITOR_OPTIONS=ab','mon','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','selectAllMailAccounts','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html','first','conversationUpdate','Ewa','src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open.html','fax/interactions/:id/tags','api.intFreshdeskAccount.save','eurdutchfemale','SYSTEM:ADDTAGS','SYSTEM:GETvoiceQueue','openchannelAccountApp','VoiceQueue\x20properly\x20created','motion-blue','app/core/directives/ms-phonebar/sounds/beep.ogg','TagsController','integrations/freshsales/fields/describe','delete\x20SmsAccounts','saveSound','gotoOpenchannelQueues','api.mailQueue.save','icon-google-earth','sa-east-1','INTEGRATIONS.NEW_DYNAMICS365ACCOUNT','number','Tatar','QueueCampaignHoppersController','America/Argentina/San_Juan','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html'];(function(_0x4f0110,_0xe3a1be){const _0x14e77e=function(_0x99287a){while(--_0x99287a){_0x4f0110['push'](_0x4f0110['shift']());}};_0x14e77e(++_0xe3a1be);}(a0_0xe3a1,0x11b));const a0_0x14e7=function(_0x4f0110,_0xe3a1be){_0x4f0110=_0x4f0110-0x0;let _0x14e77e=a0_0xe3a1[_0x4f0110];return _0x14e77e;};const _0x430095=a0_0x14e7;(self[_0x430095('0x1302')]=self[_0x430095('0x1302')]||[])[_0x430095('0x13e3')]([[0x8f],{0x1efd:(_0x99287a,_0x465683,_0x18dd13)=>{const _0x34e79e=_0x430095;'use strict';var _0x471be6=_0x18dd13(0x304);_0x789b00[_0x34e79e('0x2d9')]=['$httpProvider'];function _0x789b00(_0x25d831){const _0x13b1c9=_0x34e79e;_0x25d831[_0x13b1c9('0xc14')][_0x13b1c9('0x13e3')](_0x13b1c9('0x1205'));}const _0x2dc137=_0x789b00;_0x10f108[_0x34e79e('0x2d9')]=[_0x34e79e('0x17ea')];function _0x10f108(_0xeec42d){const _0x55921c=_0x34e79e,_0x379837={'to':function(_0x30a23b){return _0x30a23b['authenticate']===!![];}},_0x45c31a={'to':function(_0x26a689){const _0x13acd1=a0_0x14e7;return _0x26a689[_0x13acd1('0x1a8d')]!==_0x13acd1('0x2764');}},_0x2e0cad={'to':function(_0x25a2b1){const _0x36e858=a0_0x14e7;return _0x25a2b1[_0x36e858('0x1611')];}},_0x15053b={'to':function(_0x513cd4){const _0x51c2ce=a0_0x14e7;return _0x513cd4[_0x51c2ce('0x1734')]['name']===_0x51c2ce('0x15b8');}},_0x4bf12b=function(_0xd14787){const _0x328d1c=a0_0x14e7,_0x4679d0=_0xd14787[_0x328d1c('0x10c3')]()[_0x328d1c('0x1335')](_0x328d1c('0x1b04')),_0x1b1519=_0xd14787['router'][_0x328d1c('0x15df')];return!_0x4679d0[_0x328d1c('0x1782')]()?_0x1b1519[_0x328d1c('0x159c')](_0x328d1c('0x2764'),undefined,{'reload':!![]}):_0x4679d0[_0x328d1c('0xf7f')]()[_0x328d1c('0x1cb5')](function(){const _0x41bfd0=_0x328d1c;return _0x1b1519['target'](_0x41bfd0('0x2764'),undefined,{'reload':!![]});});},_0x2c0c11=function(_0x10eb3c){const _0x45e438=a0_0x14e7,_0x1196c2=_0x10eb3c[_0x45e438('0x10c3')]()[_0x45e438('0x1335')](_0x45e438('0x1b04')),_0x77f69c=_0x10eb3c['router']['stateService'],_0x1f6228=_0x10eb3c['$to']();if(_0x1196c2[_0x45e438('0x1516')]('agent')&&_0x1f6228[_0x45e438('0x1a8d')]!=_0x45e438('0x15b8'))return _0x77f69c[_0x45e438('0x159c')](_0x45e438('0x15b8'),{'redirect':![]},{'reload':!![]});},_0x41580c=function(_0x32dda1){const _0x470ee1=a0_0x14e7,_0xff9f31=_0x32dda1[_0x470ee1('0x10c3')]()[_0x470ee1('0x1335')](_0x470ee1('0x1b04')),_0x2cdd0e=_0x32dda1[_0x470ee1('0x16f4')][_0x470ee1('0x15df')],_0x4e32b3=_0x32dda1[_0x470ee1('0x1bb9')]();if(_0xff9f31[_0x470ee1('0x1516')](_0x470ee1('0x1e6a'))){if(!_0xff9f31['hasPermission'](_0x4e32b3[_0x470ee1('0x1611')]))return _0x2cdd0e[_0x470ee1('0x159c')](_0x470ee1('0x15b8'),{'redirect':![]},{'reload':!![]});else{const _0x5726f5=_0x32dda1['params']()['id']?Number(_0x32dda1[_0x470ee1('0x4b9')]()['id']):undefined;if(_0x5726f5)return _0xff9f31[_0x470ee1('0x28f')](_0x4e32b3[_0x470ee1('0x1611')],_0x5726f5)[_0x470ee1('0x1cb5')](function(){const _0x244b84=_0x470ee1;return _0x2cdd0e[_0x244b84('0x159c')](_0x4e32b3['parent'][_0x244b84('0x1a8d')],{'redirect':![]},{'reload':!![]});});}}},_0x14096a=function(_0x754867){const _0x6f1f6e=a0_0x14e7,_0x55d199=_0x754867['injector']()[_0x6f1f6e('0x1335')](_0x6f1f6e('0x1b04')),_0x49136b=_0x754867[_0x6f1f6e('0x16f4')]['stateService'];if(_0x55d199['hasRole'](_0x6f1f6e('0x1e6a'))&&!_0x55d199[_0x6f1f6e('0xdd')](0x64))return _0x49136b[_0x6f1f6e('0x159c')](_0x6f1f6e('0x15b8'),{'redirect':![]},{'reload':!![]});};_0xeec42d[_0x55921c('0x1c9d')](_0x379837,_0x4bf12b),_0xeec42d[_0x55921c('0x41d')](_0x45c31a,_0x2c0c11),_0xeec42d[_0x55921c('0x2395')](_0x2e0cad,_0x41580c),_0xeec42d[_0x55921c('0x2395')](_0x15053b,_0x14096a);}const _0x1ad4d9=_0x10f108;var _0x5b9202=_0x18dd13(0x1956),_0x283545=_0x18dd13['n'](_0x5b9202),_0x10242e=_0x18dd13(0x17d),_0x59f37a=_0x18dd13['n'](_0x10242e);const _0x262e56=_0x18dd13['p']+'src/js/modules/auth/services/hotdesk/dialog.html/dialog.html';_0x133cac[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1bfe'),'$q',_0x34e79e('0x519'),_0x34e79e('0x1bf5'),_0x34e79e('0x1580')];function _0x133cac(_0x33c50e,_0x2b9d60,_0x4c1000,_0x1a065d,_0xaf037e,_0x162453){let _0x3b45be;const _0x455aaf={'getToken':_0x408633,'getCurrentUser':_0xfde093,'getPermissions':_0xd7133f,'hasChildrenPermissions':_0x1a2221,'hasModulePermissions':_0x2ed1a7,'hasModulesPermissions':_0x3d2138,'hasRole':_0x400308,'hasPermission':_0x597ba7,'hasResourcePermission':_0x3831d4,'hasSectionPermissions':_0x66b56,'hasSectionsPermissions':_0x12e8c6,'isAgent':_0x21022b,'isAdmin':_0x381efa,'isLoggedIn':_0x3481eb,'isTelephone':_0x15d99e,'isUser':_0xed9a13,'login':_0x12429b,'logout':_0x339977,'parseCrudPermissions':_0x147b60,'queueLogin':_0x49527d,'reloadPermissions':_0x531175,'removeCookies':_0x576ab6,'retrieveUser':_0x5a16b,'setCurrentUser':_0x4f483e,'getAuthenticationType':_0x5dbd1a,'loginSSO':_0x448f8c};return _0x455aaf;function _0x408633(){const _0x794b55=a0_0x14e7;return _0x2b9d60[_0x794b55('0x1335')]('motion.token');}function _0xfde093(){return _0x3b45be;}function _0x4f483e(_0x1638ad){_0x3b45be=_0x283545()['merge'](_0x3b45be,_0x1638ad);}function _0x49527d(_0x4290d4){return _0x4c1000(function(_0x4e9e85,_0x9562f5){const _0x269c8d=a0_0x14e7;_0x1a065d[_0x269c8d('0x1e6a')][_0x269c8d('0x17e2')]({'id':_0x3b45be['id'],'device':_0x269c8d('0xb16'),'intrf':_0x4290d4})[_0x269c8d('0x1714')][_0x269c8d('0x2788')](function(_0x5a67c4){_0x4e9e85(_0x5a67c4);})[_0x269c8d('0x1cb5')](function(_0x2e2cdc){_0x9562f5(_0x2e2cdc);});});}function _0x4769d9(){return _0x4c1000(function(_0x54c3c6,_0x18e836){const _0x1075ec=a0_0x14e7;_0x1a065d[_0x1075ec('0x1e6a')]['logout']({'id':_0x3b45be['id'],'device':_0x1075ec('0xb16')})[_0x1075ec('0x1714')][_0x1075ec('0x2788')](function(){_0x54c3c6();})[_0x1075ec('0x1cb5')](function(_0x579780){_0x18e836(_0x579780);});});}function _0x8d5098(_0x6f1946){return _0x4c1000(function(_0x43d2ca,_0x5b9677){const _0x4bc11f=a0_0x14e7,_0x5e96ae={'online':_0x6f1946,'lastLoginAt':_0x6f1946?_0x59f37a()()['format'](_0x4bc11f('0xe8e')):undefined};_0x1a065d[_0x4bc11f('0x1e6a')][_0x4bc11f('0x2740')]({'id':_0x3b45be['id']},_0x5e96ae)['$promise'][_0x4bc11f('0x2788')](function(_0x1fe79b){_0x43d2ca(_0x1fe79b);})['catch'](function(_0x17c4b3){_0x5b9677(_0x17c4b3);});});}function _0x12429b(_0x33d90d){return _0x4c1000(function(_0xad2353,_0x1b4b91){const _0x1ac397=a0_0x14e7;_0x1a065d[_0x1ac397('0x14d1')][_0x1ac397('0x257c')](_0x33d90d)['$promise'][_0x1ac397('0x2788')](function(_0x2d1ba7){const _0x324c90=_0x1ac397;return _0x2b9d60[_0x324c90('0x27ad')](_0x324c90('0x2eb'),_0x2d1ba7[_0x324c90('0x2620')]),_0x1a065d['user'][_0x324c90('0x1335')]({'id':_0x2d1ba7['id']})[_0x324c90('0x1714')];})[_0x1ac397('0x2788')](function(_0x294fa4){const _0x62efc3=_0x1ac397;_0x3b45be=_0x294fa4,_0x3b45be[_0x62efc3('0x813')]=_0x59f37a()()[_0x62efc3('0x22b4')](_0x62efc3('0xe8e')),_0x321acc(_0x62efc3('0x1aa3'));})[_0x1ac397('0x2788')](function(){const _0x1e4d32=_0x1ac397;if(_0x21022b()&&_0x3b45be[_0x1e4d32('0x26e8')]===0x1&&_0x3b45be[_0x1e4d32('0x1a25')])return _0x33c50e['show']({'controller':_0x1e4d32('0x1f03'),'controllerAs':'vm','templateUrl':_0x262e56,'parent':angular['element'](_0x162453['body']),'clickOutsideToClose':![],'resolve':{'telephones':[_0x1e4d32('0x1318'),function(_0x5f1857){const _0x160c86=_0x1e4d32;return _0x5f1857[_0x160c86('0x2322')](_0x160c86('0x144f'),{'fields':_0x160c86('0x9b7'),'role':_0x160c86('0x23ab'),'nolimit':!![]});}]}});})[_0x1ac397('0x2788')](function(_0x519e64){const _0x12c40d=_0x1ac397;if(_0x21022b()&&_0x3b45be[_0x12c40d('0x26e8')]!==0x0)return _0x49527d(_0x519e64);else{if(_0x381efa()||_0xed9a13())return _0x8d5098(!![]);else return;}})[_0x1ac397('0x2788')](function(_0x26d321){const _0x295cc5=_0x1ac397;_0x3b45be=_0x283545()[_0x295cc5('0x2462')](_0x3b45be,_0x26d321),_0xad2353();})[_0x1ac397('0x1cb5')](function(_0x10390c){_0x1b4b91(_0x10390c);});});}function _0x576ab6(){const _0x275c68=a0_0x14e7;_0x2b9d60[_0x275c68('0x1a90')](_0x275c68('0x2eb')),_0x3b45be&&(_0xaf037e['localStorage'][_0x275c68('0xa8c')](_0x275c68('0x8bc')+_0x3b45be['id']),_0xaf037e['localStorage'][_0x275c68('0xa8c')](_0x275c68('0x1bad')),_0x3b45be=null);}function _0x339977(_0x555a0a){return _0x4c1000(function(_0x565df3,_0x2f4cea){const _0x79119b=a0_0x14e7;_0x555a0a?(_0x576ab6(),_0x565df3()):_0x4c1000[_0x79119b('0x2322')]()['then'](function(){if(_0x21022b()&&_0x3b45be['showWebBar']!==0x0)return _0x4769d9();else{if(_0x381efa()||_0xed9a13())return _0x8d5098(![]);else return;}})[_0x79119b('0x2788')](function(){_0x576ab6(),_0x565df3();})[_0x79119b('0x1cb5')](function(_0x382182){_0x2f4cea(_0x382182);});});}function _0x3481eb(){return _0x408633()?!![]:![];}function _0x21022b(){const _0x2209c2=a0_0x14e7;return _0x3b45be[_0x2209c2('0xb34')]===_0x2209c2('0x188b');}function _0x381efa(){const _0x4cc503=a0_0x14e7;return _0x3b45be[_0x4cc503('0xb34')]===_0x4cc503('0xe23');}function _0xed9a13(){const _0x284498=a0_0x14e7;return _0x3b45be[_0x284498('0xb34')]==='user';}function _0x15d99e(){const _0x4a2796=a0_0x14e7;return _0x3b45be[_0x4a2796('0xb34')]===_0x4a2796('0x23ab');}function _0x5a16b(){return _0x4c1000(function(_0x33d8ca,_0x2280fc){const _0x1dddbd=a0_0x14e7;_0x1a065d[_0x1dddbd('0x1e6a')][_0x1dddbd('0x2295')]()[_0x1dddbd('0x1714')][_0x1dddbd('0x2788')](function(_0x4938a9){const _0x4c6324=_0x1dddbd;return _0x4938a9[_0x4c6324('0xb34')]===_0x4c6324('0x1e6a')?_0xd7133f(_0x4938a9['userProfileId'])[_0x4c6324('0x2788')](function(_0x2a8343){const _0x1a594e=_0x4c6324;return _0x4938a9[_0x1a594e('0x1167')]=_0x2a8343,_0x4938a9;}):_0x4938a9;})[_0x1dddbd('0x2788')](function(_0x5035a6){_0x3b45be=_0x5035a6,_0x33d8ca(_0x3b45be);})[_0x1dddbd('0x1cb5')](function(_0xa93948){_0x2280fc(_0xa93948);});});}function _0x400308(_0x8f1d96){return _0x3b45be?_0x3b45be['role']===_0x8f1d96:![];}function _0x597ba7(_0x18c03a){const _0x540392=a0_0x14e7;return _0x3b45be?_0x283545()[_0x540392('0x1d4e')](_0x3b45be[_0x540392('0x1167')],_0x18c03a):![];}function _0xd7133f(_0x56b672){let _0xa7a9f6=[];return _0x4c1000(function(_0x14af5f,_0x3712a9){const _0x5af41a=a0_0x14e7;return!_0x56b672&&_0x14af5f(_0xa7a9f6),_0x1a065d[_0x5af41a('0x63c')][_0x5af41a('0xdf3')]({'id':_0x56b672})[_0x5af41a('0x1714')][_0x5af41a('0x2788')](function(_0x5c6fb3){const _0x9861d8=_0x5af41a;for(let _0x5be3f8=0x0;_0x5be3f8<_0x5c6fb3[_0x9861d8('0x2566')];_0x5be3f8++){const _0x3efa31=_0x5c6fb3[_0x5be3f8];_0xa7a9f6['push'](_0x3efa31[_0x9861d8('0x201d')]),_0x3efa31[_0x9861d8('0x9b2')]&&(_0xa7a9f6=_0x283545()['concat'](_0xa7a9f6,_0x3efa31[_0x9861d8('0x9b2')]));}return _0xa7a9f6;})[_0x5af41a('0x2788')](function(_0x33d7d7){_0x14af5f(_0x33d7d7);})[_0x5af41a('0x1cb5')](function(_0x1f4b27){_0x3712a9('Error\x20retrieving\x20user\x20profile\x20permissions',_0x1f4b27);});});}function _0x1a2221(_0x50dfbf){const _0x51905e=a0_0x14e7;if(!_0x50dfbf)return![];return _0x283545()[_0x51905e('0xc5d')](_0x50dfbf,function(_0x2d15a5){return _0x597ba7(_0x2d15a5);});}function _0x531175(){return _0x4c1000(function(_0xf6f728,_0x4c6034){const _0x3d1536=a0_0x14e7;_0xd7133f(_0x3b45be['userProfileId'])[_0x3d1536('0x2788')](function(_0x3f992e){_0x3b45be['permissions']=_0x3f992e,_0xf6f728();})['catch'](function(_0x44f3da){_0x4c6034(_0x44f3da);});});}function _0x147b60(_0x194a9e){const _0x51b30c=a0_0x14e7;return _0x381efa()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x194a9e?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x283545()[_0x51b30c('0x1d4e')](_0x194a9e,'r')&&_0x194a9e[_0x51b30c('0x2566')]===0x1?!![]:![],'canEdit':_0x283545()['includes'](_0x194a9e,'e')?!![]:![],'canDelete':_0x283545()['includes'](_0x194a9e,'d')?!![]:![]};}function _0x3831d4(_0x48cfa5,_0x22f310){return _0x4c1000(function(_0x26dae,_0x178076){const _0x4b0392=a0_0x14e7;return _0x1a065d['userProfileSection']['get']({'userProfileId':_0x3b45be[_0x4b0392('0x237f')],'sectionId':_0x48cfa5})['$promise'][_0x4b0392('0x2788')](function(_0x2a1756){const _0x1c2470=_0x4b0392,_0x5b4ad6=_0x2a1756[_0x1c2470('0x25df')][0x0];if(_0x5b4ad6['autoAssociation'])_0x26dae();else return _0x1a065d[_0x1c2470('0x1050')][_0x1c2470('0x1335')]({'sectionId':_0x5b4ad6['id'],'nolimit':!![]})[_0x1c2470('0x1714')]['then'](function(_0x337c3d){const _0x4ee34a=_0x1c2470,_0x710b7a=_0x337c3d['rows'];_0x283545()[_0x4ee34a('0xc5d')](_0x710b7a,[_0x4ee34a('0x2707'),_0x22f310])?_0x26dae():_0x178076();});})[_0x4b0392('0x1cb5')](function(_0x112e52){_0x178076('Error\x20retrieving\x20user\x20profile\x20permissions',_0x112e52);});});}function _0x66b56(_0x548899){return _0x4c1000(function(_0x29675c,_0x4544ce){const _0x37f77a=a0_0x14e7,_0x10f5c5={};return _0x531175()[_0x37f77a('0x2788')](function(){const _0x5e9550=_0x37f77a;_0x283545()[_0x5e9550('0x1d4e')](_0x3b45be['permissions'],_0x548899)&&(_0x10f5c5[_0x548899]=!![]),_0x29675c(_0x10f5c5);})[_0x37f77a('0x1cb5')](function(_0x331389){_0x4544ce(_0x331389);});});}function _0x12e8c6(_0x11cfac){return _0x4c1000(function(_0x42539d,_0x4d780c){const _0x58b813=a0_0x14e7,_0x34c34c={};if(_0x381efa())_0x11cfac[_0x58b813('0x1534')](function(_0x8f32a2){_0x34c34c[_0x8f32a2]=!![];}),_0x42539d(_0x34c34c);else return _0x531175()[_0x58b813('0x2788')](function(){const _0x3dce8f=_0x58b813;_0x11cfac[_0x3dce8f('0x1534')](function(_0x47bb9e){const _0x23d54c=_0x3dce8f;_0x283545()[_0x23d54c('0x1d4e')](_0x3b45be[_0x23d54c('0x1167')],_0x47bb9e)&&(_0x34c34c[_0x47bb9e]=!![]);}),_0x42539d(_0x34c34c);})[_0x58b813('0x1cb5')](function(_0x129782){_0x4d780c(_0x129782);});});}function _0x2ed1a7(_0x9e4b87){return _0x4c1000(function(_0x2c82e3,_0x4eb8e8){const _0x55700f=a0_0x14e7;_0x381efa()?_0x2c82e3(!![]):_0x1a065d[_0x55700f('0xec9')][_0x55700f('0x1335')]({'userProfileId':_0x3b45be[_0x55700f('0x237f')]})['$promise'][_0x55700f('0x2788')](function(_0x481fc9){const _0x3165cd=_0x55700f,_0x1e2544=_0x481fc9&&_0x481fc9[_0x3165cd('0x25df')]?_0x481fc9['rows']:[];if(!_0x283545()[_0x3165cd('0x213d')](_0x1e2544)){const _0xdded54=_0x283545()['filter'](_0x1e2544,function(_0x739e71){const _0x1d4856=_0x3165cd;return _0x739e71[_0x1d4856('0x14f4')];});_0x2c82e3(_0x283545()[_0x3165cd('0xc5d')](_0xdded54,['category',_0x9e4b87]));}else _0x2c82e3(![]);})[_0x55700f('0x1cb5')](function(_0x2ecea5){_0x4eb8e8(_0x2ecea5);});});}function _0x3d2138(_0x33c446){return _0x4c1000(function(_0x2c2c3c,_0x4452e4){const _0x1fa195=a0_0x14e7,_0x39f0f1={};_0x381efa()?(_0x33c446[_0x1fa195('0x1534')](function(_0xeb656){_0x39f0f1[_0xeb656]=!![];}),_0x2c2c3c(_0x39f0f1)):_0x1a065d['userProfileSection']['get']({'userProfileId':_0x3b45be[_0x1fa195('0x237f')]})[_0x1fa195('0x1714')][_0x1fa195('0x2788')](function(_0x223da3){const _0x3cc9f5=_0x1fa195,_0x18bdb5=_0x223da3&&_0x223da3[_0x3cc9f5('0x25df')]?_0x223da3[_0x3cc9f5('0x25df')]:[];if(!_0x283545()[_0x3cc9f5('0x213d')](_0x18bdb5)){const _0x2df93d=_0x283545()(_0x18bdb5)['filter'](function(_0x286457){const _0x44ecb5=_0x3cc9f5;return _0x286457[_0x44ecb5('0x14f4')]&&_0x283545()['includes'](_0x33c446,_0x286457[_0x44ecb5('0xfea')]);})['uniqBy'](function(_0x180c4b){const _0x421461=_0x3cc9f5;return _0x180c4b[_0x421461('0xfea')];})[_0x3cc9f5('0x155d')](function(_0x3cd387){const _0x43cf7a=_0x3cc9f5;return _0x3cd387[_0x43cf7a('0xfea')];})[_0x3cc9f5('0x49')]();_0x2df93d['forEach'](function(_0x10bf2b){_0x39f0f1[_0x10bf2b]=!![];}),_0x2c2c3c(_0x39f0f1);}else _0x2c2c3c({});})['catch'](function(_0x3aafc5){_0x4452e4(_0x3aafc5);});});}function _0x5dbd1a(){const _0x104d4b=a0_0x14e7;return _0xaf037e[_0x104d4b('0x155e')][_0x104d4b('0x1bad')]||'NONE';}function _0x321acc(_0x48ce78){const _0x34e386=a0_0x14e7;_0xaf037e[_0x34e386('0x155e')][_0x34e386('0x1bad')]=_0x48ce78;}function _0x448f8c(_0x588e2d){const _0x406886=a0_0x14e7;return _0x321acc(_0x406886('0xb37')),_0x406886('0x1873')+_0x588e2d;}}const _0x5b6814=_0x133cac;_0x24d2b2[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1263')];function _0x24d2b2(_0x24b259,_0x3c01de){const _0xe0d5de=_0x34e79e,_0x1c1b45=this;function _0x43f635(_0x347c2d){const _0x20a974=a0_0x14e7;_0x24b259[_0x20a974('0x19d')](_0x347c2d);}_0x1c1b45[_0xe0d5de('0x1263')]=_0x3c01de,_0x1c1b45[_0xe0d5de('0xca7')]=_0x43f635,_0x3c01de[_0xe0d5de('0x338')]&&(_0x1c1b45[_0xe0d5de('0x1a8d')]=_0x3c01de[_0xe0d5de('0x25df')][0x0][_0xe0d5de('0x1a8d')]);}const _0x997015=_0x24d2b2;_0x5b556c['$inject']=[_0x34e79e('0x1ce0'),'$q',_0x34e79e('0x1bfe'),'$injector',_0x34e79e('0x171d')];function _0x5b556c(_0x257327,_0x51adaf,_0x2f3482,_0xb0e931,_0x1a8bcd){let _0x5d127b;return{'request':function(_0x332230){const _0x422761=a0_0x14e7,_0x41786a=_0x2f3482[_0x422761('0x1335')](_0x422761('0x2eb'));return _0x332230['headers']=_0x332230[_0x422761('0x186d')]||{},(![]||_0x1a8bcd[_0x422761('0x3a0')](_0x332230[_0x422761('0x1672')]))&&_0x41786a&&(_0x332230[_0x422761('0x186d')][_0x422761('0xba1')]=_0x422761('0xf2f')+_0x41786a),_0x332230;},'responseError':function(_0x52fc7c){const _0x189f69=a0_0x14e7;switch(_0x52fc7c[_0x189f69('0x1b51')]){case 0x191:_0x2f3482[_0x189f69('0x1a90')](_0x189f69('0x2eb')),(_0x5d127b||(_0x5d127b=_0xb0e931[_0x189f69('0x1335')]('$state')))['go'](_0x189f69('0x2764'));break;case 0x194:break;default:break;}return _0x51adaf['reject'](_0x52fc7c);}};}const _0x3702bd=_0x5b556c;_0x144a4c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bf5')];function _0x144a4c(_0x4e28be){const _0x2e4e26={'safeCb':function(_0x3d4c6a){const _0xf95b9e=a0_0x14e7;return angular[_0xf95b9e('0x5b9')](_0x3d4c6a)?_0x3d4c6a:angular[_0xf95b9e('0x18dd')];},'urlParse':function(_0x23a633){const _0x494fd1=a0_0x14e7,_0x4d15a8=document['createElement']('a');return _0x4d15a8['href']=_0x23a633,_0x4d15a8[_0x494fd1('0x1c6a')]===''&&(_0x4d15a8['href']=_0x4d15a8[_0x494fd1('0x186a')]),_0x4d15a8;},'isSameOrigin':function(_0x2ab9b7,_0x33bb8f){const _0x5a0db4=a0_0x14e7;return _0x2ab9b7=_0x2e4e26['urlParse'](_0x2ab9b7),_0x33bb8f=_0x33bb8f&&[][_0x5a0db4('0x1282')](_0x33bb8f)||[],_0x33bb8f=_0x33bb8f[_0x5a0db4('0x155d')](_0x2e4e26[_0x5a0db4('0x9be')]),_0x33bb8f['push'](_0x4e28be[_0x5a0db4('0xe9')]),_0x33bb8f=_0x33bb8f['filter'](function(_0x28dd32){const _0x1832ec=_0x5a0db4,_0xc7589c=_0x2ab9b7[_0x1832ec('0x18a1')]===_0x28dd32[_0x1832ec('0x18a1')],_0x41c16d=_0x2ab9b7['protocol']===_0x28dd32[_0x1832ec('0x170c')],_0x5a593f=_0x2ab9b7[_0x1832ec('0x1fee')]===_0x28dd32[_0x1832ec('0x1fee')]||_0x28dd32['port']===''&&(_0x2ab9b7[_0x1832ec('0x1fee')]==='80'||_0x2ab9b7[_0x1832ec('0x1fee')]===_0x1832ec('0x1627'));return _0xc7589c&&_0x41c16d&&_0x5a593f;}),_0x33bb8f[_0x5a0db4('0x2566')]>=0x1;}};return _0x2e4e26;}const _0x183f8c=_0x144a4c;;angular['module'](_0x34e79e('0xdb4'),[])[_0x34e79e('0x1a22')](_0x2dc137)['run'](_0x1ad4d9)[_0x34e79e('0x227e')]('Auth',_0x5b6814)[_0x34e79e('0xb44')](_0x34e79e('0x1f03'),_0x997015)[_0x34e79e('0x227e')](_0x34e79e('0x1205'),_0x3702bd)[_0x34e79e('0x227e')]('Util',_0x183f8c);var _0x43bbf2=_0x18dd13(0xca2),_0x5b9969=_0x18dd13(0x1e94),_0x2391f4=_0x18dd13(0x1e80),_0x3bfaa3=_0x18dd13(0x11ee),_0x106b68=_0x18dd13(0x36e),_0xa29a9b=_0x18dd13(0x1bdb),_0x30d097=_0x18dd13(0x1c17),_0x570bb6=_0x18dd13(0x813),_0x201d45=_0x18dd13(0xdff),_0x57fc71=_0x18dd13(0x251),_0x532d41=_0x18dd13(0xdf),_0x54658b=_0x18dd13(0x1299),_0x14f0ef=_0x18dd13(0x177),_0x251226=_0x18dd13(0x573);function _0x33910a(){const _0x19f42e=_0x34e79e;let _0x3e4d7a={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x29bf7a(_0x1a99ce){const _0x850c51=a0_0x14e7;_0x3e4d7a=angular[_0x850c51('0x192a')]({},_0x3e4d7a,_0x1a99ce);}function _0x54cd4a(_0x20c949){if(angular['isUndefined'](_0x3e4d7a[_0x20c949]))return![];return _0x3e4d7a[_0x20c949];}function _0x191655(_0x2e383c,_0x54376f){_0x3e4d7a[_0x2e383c]=_0x54376f;}this['$get']=function(){const _0x3bea19={'getConfig':_0x54cd4a,'setConfig':_0x191655};return _0x3bea19;},this[_0x19f42e('0x1a22')]=_0x29bf7a;}const _0x1d234a=_0x33910a;_0x2e484e[_0x34e79e('0x2d9')]=[_0x34e79e('0x1559'),'$logProvider','msScrollConfigProvider',_0x34e79e('0xbb0')];function _0x2e484e(_0x21bce5,_0x1811e3,_0x120b71,_0x291c3a){const _0x30c9e9=_0x34e79e;_0x1811e3[_0x30c9e9('0x1f82')](!![]),_0x21bce5['config']({'tabindex':![]}),_0x291c3a['config']({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x120b71[_0x30c9e9('0x1a22')]({'wheelPropagation':!![]});}const _0x19691a=_0x2e484e;_0x17e7d7['$inject']=[_0x34e79e('0x9c4'),_0x34e79e('0x183b'),_0x34e79e('0x26af')];function _0x17e7d7(_0xadf03c,_0x32684b,_0x3dcb58){const _0x31f59e=_0x34e79e;_0x32684b[_0x31f59e('0x188c')]();if(_0x3dcb58[_0x31f59e('0x221')]('disableMdInkRippleOnMobile')&&_0xadf03c[_0x31f59e('0x9e8')]()){const _0x1ec193=angular[_0x31f59e('0x16b1')](_0x31f59e('0x945'));_0x1ec193[_0x31f59e('0x13d7')]('md-no-ink',!![]);}_0xadf03c['isMobile']()&&angular['element'](_0x31f59e('0x1cd8'))[_0x31f59e('0x19df')]('is-mobile');const _0xee88b=_0xadf03c[_0x31f59e('0x191e')]();if(_0xee88b){const _0x39038b=_0xee88b['browser']+'\x20'+_0xee88b[_0x31f59e('0x1a7c')]+'\x20'+_0xee88b['os'];angular[_0x31f59e('0x16b1')](_0x31f59e('0x1cd8'))['addClass'](_0x39038b);}}const _0x5b76d0=_0x17e7d7;_0x3afc78['$inject']=[_0x34e79e('0x1bf5'),_0x34e79e('0x123b'),_0x34e79e('0x1b04'),_0x34e79e('0x896'),_0x34e79e('0x1578'),_0x34e79e('0x26db')];function _0x3afc78(_0xd7baf7,_0x42e634,_0x42555b,_0x18cc93,_0x49133e,_0x5a7d0a){const _0x1a80a6=_0x34e79e,_0x5e203b=this;_0x5e203b['currentUser']=_0x42555b['getCurrentUser'](),_0x5e203b[_0x1a80a6('0x635')]={'matchType':_0x1a80a6('0x106b'),'conditions':[],'fields':_0x49133e},_0x5e203b[_0x1a80a6('0x2413')]=_0x18cc93,_0x5e203b['onInit']=_0x4fdde9,_0x5e203b[_0x1a80a6('0x2376')]=_0x548bb0,_0x5e203b[_0x1a80a6('0x1cca')]=_0x444514,_0x5e203b[_0x1a80a6('0xec')]=_0x9ea278,_0x5e203b[_0x1a80a6('0x69f')]=_0x4820be;function _0x4fdde9(){const _0x548791=_0x1a80a6;if(_0x5a7d0a){const _0x58136b=_0x5c2763();typeof _0x58136b[_0x548791('0x1e13')]!=='undefined'&&(_0x5e203b[_0x548791('0x635')]=_0x283545()[_0x548791('0x2503')](_0x5e203b[_0x548791('0x635')],_0x58136b[_0x548791('0x1e13')]));}}function _0x548bb0(){const _0x1f3491=_0x1a80a6,_0x244c61=_0x283545()[_0x1f3491('0x916')](_0x5e203b[_0x1f3491('0x635')][_0x1f3491('0x2047')],['disabled',![]]);let _0x50a0ad='['+_0x5e203b[_0x1f3491('0x635')][_0x1f3491('0x128a')]+']';const _0x280e70=[];let _0x2e20c0='';_0x283545()(_0x244c61)[_0x1f3491('0x1d6c')]('name')[_0x1f3491('0x1534')](function(_0x415ce6){const _0x587fc0=_0x1f3491,_0x42e42e=_0x415ce6[0x0],_0x492c4b=_0x415ce6[_0x587fc0('0x2566')]>0x1?!![]:![],_0xb6f10e=_0x42e42e[_0x587fc0('0x135a')]['column'];if(_0x492c4b){const _0x110f2d=_0x283545()(_0x415ce6)['groupBy'](function(_0x607d0a){const _0x5a8a7f=_0x587fc0;return _0x607d0a[_0x5a8a7f('0x135a')]['operator'];})['mapValues'](function(_0x5f5043){const _0x433f45=_0x587fc0;return _0x283545()[_0x433f45('0x277b')](_0x5f5043)[_0x433f45('0x155d')](function(_0x58e7ad){const _0x3ba783=_0x433f45;return _0x58e7ad[_0x3ba783('0x135a')][_0x3ba783('0x49')];})[_0x433f45('0x1e36')]()['value']();})[_0x587fc0('0x49')](),_0x33357a=[];_0x283545()['keys'](_0x110f2d)[_0x587fc0('0x1534')](function(_0x3a623e){const _0x56926b=_0x587fc0,_0x27d2ec=_0x110f2d[_0x3a623e];let _0x286f7e=_0x3a623e;_0x283545()[_0x56926b('0x1d4e')](['$between',_0x56926b('0x1be1'),'$notIn'],_0x3a623e)?_0x286f7e+='['+_0x27d2ec+']':_0x27d2ec['forEach'](function(_0x51bfd3){_0x286f7e+='['+_0x51bfd3+']';}),_0x33357a[_0x56926b('0x13e3')](_0x286f7e);}),_0x2e20c0+=_0xb6f10e+':='+_0x33357a[_0x587fc0('0x185f')](':=');}else _0x2e20c0=_0xb6f10e+':='+_0x42e42e[_0x587fc0('0x135a')][_0x587fc0('0x1a0b')]+'['+_0x42e42e[_0x587fc0('0x135a')][_0x587fc0('0x49')]+']';_0x280e70['push'](_0x2e20c0);}),_0x50a0ad+=_0x280e70[_0x1f3491('0x185f')]('||'),_0x14ad2d(),_0x42e634[_0x1f3491('0x19d')](_0x50a0ad);}function _0x444514(){const _0x564332=_0x1a80a6;_0x5e203b['searchOptions'][_0x564332('0x2047')]=[],_0x4960a2();}function _0x9ea278(){const _0xab23de=_0x1a80a6;_0x14ad2d(),_0x42e634[_0xab23de('0x19d')]();}function _0x4820be(){const _0xc7e45f=_0x1a80a6;_0x42e634[_0xc7e45f('0x19d')](![]);}function _0x5c2763(){const _0xb94d5e=_0x1a80a6,_0x4f10f8=_0xd7baf7['localStorage']['getItem'](_0xb94d5e('0x225e')+_0x5a7d0a+':'+_0x5e203b['currentUser']['id']);return _0x4f10f8?JSON['parse'](_0x4f10f8):{};}function _0x181ef3(_0x193eee){const _0x5a075d=_0x1a80a6;_0xd7baf7['localStorage'][_0x5a075d('0x23dc')](_0x5a075d('0x225e')+_0x5a7d0a+':'+_0x5e203b['currentUser']['id'],JSON[_0x5a075d('0x1be0')](_0x193eee));}function _0x14ad2d(){const _0x46c6f9=_0x1a80a6;if(_0x5a7d0a){const _0x187432=_0x5c2763();_0x187432['advancedSearch']=_0x283545()[_0x46c6f9('0x5a9')](_0x5e203b[_0x46c6f9('0x635')],'fields'),_0x181ef3(_0x187432);}}function _0x4960a2(){const _0x3827de=_0x1a80a6;if(_0x5a7d0a){const _0x1906fe=_0x5c2763();delete _0x1906fe['advancedSearch'];if(_0x1906fe[_0x3827de('0x135a')])delete _0x1906fe['query']['search'];_0x181ef3(_0x1906fe);}}}const _0x4fa4cf=_0x3afc78;_0x452ab5['$inject']=['$timeout'];function _0x452ab5(_0x1a59ec){return{'restrict':'A','link':function(_0xaeb85d,_0x444665,_0x461bfc){const _0x413569=a0_0x14e7;_0xaeb85d[_0x413569('0x1662')](_0x461bfc[_0x413569('0xca3')],function(_0x55b135){_0x1a59ec(function(){const _0x1503e2=a0_0x14e7;_0x55b135?_0x444665[0x0]['focus']():_0x444665[0x0][_0x1503e2('0x209f')]();});});}};}const _0x122f4f=_0x452ab5;var _0x27688a=_0x18dd13(0x1433),_0x3c73a7=_0x18dd13['n'](_0x27688a);_0x5d0132[_0x34e79e('0x2d9')]=['$timeout','$q',_0x34e79e('0x19cb')];function _0x5d0132(_0x939274,_0x54aea0,_0x25d3bc){return{'restrict':'E','compile':function(_0x2ad624,_0x57d2be){const _0x21fe72=a0_0x14e7;let _0x47d374;return!_0x57d2be[_0x21fe72('0x37')]&&(_0x47d374=_0x2ad624[_0x21fe72('0x1cd8')](),_0x2ad624[_0x21fe72('0x1cde')]()),function(_0x187151,_0x5dc79f,_0x40ef10){const _0xef8fcb=_0x21fe72;_0x40ef10[_0xef8fcb('0x37')]&&(_0x47d374=_0x187151[_0xef8fcb('0x1ddb')](_0x40ef10[_0xef8fcb('0x37')]));const _0x25dd75=_0x187151[_0xef8fcb('0x1ddb')](_0x40ef10[_0xef8fcb('0x24a9')]);_0x54aea0[_0xef8fcb('0x1b8a')](_0x47d374)[_0xef8fcb('0x2788')](function(_0x14757f){const _0x2e0dc9=_0xef8fcb;if(_0x14757f){_0x25dd75&&(_0x14757f=_0x25d3bc(_0x14757f)(_0x187151));const _0x3e9be5=angular[_0x2e0dc9('0x16b1')](_0x2e0dc9('0x12bf'));_0x5dc79f['append'](_0x3e9be5),_0x939274(function(){_0x1c81de(_0x14757f,_0x3e9be5);},0x22,![]);}});function _0x1c81de(_0x430987,_0x4cca9b){const _0x5d3e97=_0xef8fcb,_0x3f642a=_0x4cca9b['find']('code');let _0x5be675=_0x430987[_0x5d3e97('0x1497')]('\x0a');_0x5be675=_0x5be675[_0x5d3e97('0x916')](function(_0x4f22b8){const _0x4dcbea=_0x5d3e97;return _0x4f22b8[_0x4dcbea('0x1d7f')]()[_0x4dcbea('0x2566')];});const _0x5aaae8=_0x5be675[0x0][_0x5d3e97('0x1e12')](/^\s*/)[0x0],_0xe0899b=new RegExp('^'+_0x5aaae8);_0x5be675=_0x5be675[_0x5d3e97('0x155d')](function(_0x67ba9a){const _0x485e97=_0x5d3e97;return _0x67ba9a[_0x485e97('0x10a4')](_0xe0899b,'')[_0x485e97('0x10a4')](/\s+$/,'');});const _0x4a62c7=_0x3c73a7()[_0x5d3e97('0x12bd')](_0x40ef10['language']||_0x40ef10[_0x5d3e97('0x145')],_0x5be675['join']('\x0a'),!![]);_0x4a62c7[_0x5d3e97('0x49')]=_0x4a62c7[_0x5d3e97('0x49')][_0x5d3e97('0x10a4')](/=""<\/span>/gi,'')[_0x5d3e97('0x10a4')](_0x5d3e97('0xa50'),'')[_0x5d3e97('0x10a4')](_0x5d3e97('0x308'),''),_0x3f642a[_0x5d3e97('0xc44')](_0x4a62c7[_0x5d3e97('0x49')])[_0x5d3e97('0x19df')](_0x5d3e97('0x12bd'));}};}};}const _0x56651e=_0x5d0132,_0x4b8c5f=_0x18dd13['p']+'src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html';_0x154e5f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1a5c'),'$q',_0x34e79e('0x519'),_0x34e79e('0xd57')];function _0x3e23aa(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x154e5f,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x4b8c5f};}function _0x154e5f(_0x211067,_0x1d7314,_0x3169cc,_0x50f6c2){const _0x446b99=_0x34e79e,_0x4ee72a=this;_0x4ee72a[_0x446b99('0x844')]=[{'type':_0x446b99('0x1ff9'),'symbol':'=','translate':_0x446b99('0x2776'),'excludeFrom':[_0x446b99('0x9a4')]},{'type':'$ne','symbol':'≠','translate':'IS_NOT_EQUAL','excludeFrom':['multiselect']},{'type':_0x446b99('0x1be1'),'symbol':'∈','translate':'IS_AMONG','applyTo':[_0x446b99('0x9a4')]},{'type':_0x446b99('0x38b'),'symbol':'∉','translate':_0x446b99('0x1c1d'),'applyTo':[_0x446b99('0x9a4')]},{'type':_0x446b99('0x1a77'),'symbol':'⊃','translate':_0x446b99('0x19a1'),'applyTo':[_0x446b99('0x16db')]},{'type':'$startsWith','symbol':_0x446b99('0x141f'),'translate':_0x446b99('0xb09'),'applyTo':[_0x446b99('0x16db')]},{'type':_0x446b99('0x17bb'),'symbol':_0x446b99('0x11ca'),'translate':_0x446b99('0x153d'),'applyTo':[_0x446b99('0x16db')]},{'type':_0x446b99('0x24e2'),'symbol':'<','translate':_0x446b99('0xc24'),'applyTo':[_0x446b99('0x1012'),_0x446b99('0x272c')]},{'type':_0x446b99('0x257d'),'symbol':'>','translate':'IS_GREATER_THAN','applyTo':[_0x446b99('0x1012'),_0x446b99('0x272c')]},{'type':_0x446b99('0x251'),'symbol':'≤','translate':_0x446b99('0x2405'),'applyTo':[_0x446b99('0x1012'),_0x446b99('0x272c')]},{'type':_0x446b99('0x26a3'),'symbol':'≥','translate':_0x446b99('0x1cd0'),'applyTo':[_0x446b99('0x1012'),_0x446b99('0x272c')]},{'type':_0x446b99('0xb71'),'symbol':'≬','translate':'IS_BETWEEN','applyTo':[_0x446b99('0x1012'),'number']}],_0x4ee72a[_0x446b99('0x151c')]=_0x4ee72a[_0x446b99('0x844')],_0x4ee72a[_0x446b99('0x9f1')]=_0x442f62,_0x4ee72a[_0x446b99('0x9ad')]=_0x2d89d5,_0x4ee72a[_0x446b99('0x1251')]=_0x53f38c,_0x4ee72a[_0x446b99('0x1b50')]=_0x2c55ec,_0x4ee72a[_0x446b99('0xbe5')]=_0x3faa5f,_0x4ee72a[_0x446b99('0x157d')]=_0x5b5eba,_0x4ee72a[_0x446b99('0x14f5')]=_0x5d6ed8,_0x4ee72a[_0x446b99('0x25b3')]=_0x21ef4f,_0x4ee72a[_0x446b99('0x27b5')]=_0x5130be,_0x4ee72a['onValueChange']=_0x5ac6b7,_0x4ee72a[_0x446b99('0x24c5')]=_0x1ce7d8,_0x4ee72a[_0x446b99('0x2526')]=_0x14e6e6;function _0x21ef4f(){const _0x4f875f=_0x446b99;_0x4ee72a[_0x4f875f('0x49')]=undefined,_0x4ee72a['endRangeValue']=undefined,_0x4ee72a[_0x4f875f('0x2576')]=undefined,_0x4ee72a[_0x4f875f('0x2266')]=![],_0x16eb68(),_0x4ee72a['autoSelectOperator']=_0x4ee72a['availableOperators']['length']===0x1?!![]:![];if(!_0x4ee72a[_0x4f875f('0x11a0')])_0x4ee72a[_0x4f875f('0x1694')]=undefined;}function _0x5130be(_0x22da77){const _0x304c0d=_0x446b99;_0x4ee72a[_0x304c0d('0x20c9')]=!![],_0x4ee72a[_0x304c0d('0x1694')]&&(_0x22da77?_0x22da77[_0x304c0d('0x168c')]?_0x283545()[_0x304c0d('0xa9f')](_0x4ee72a[_0x304c0d('0x1694')][_0x304c0d('0x168c')],_0x22da77[_0x304c0d('0x168c')])[_0x304c0d('0x2566')]>0x0&&(_0x4ee72a[_0x304c0d('0x49')]=null):_0x4ee72a['selectedOperator'][_0x304c0d('0x168c')]&&(_0x4ee72a[_0x304c0d('0x49')]=null):_0x4ee72a[_0x304c0d('0x49')]=null,_0x4ee72a[_0x304c0d('0x1694')][_0x304c0d('0x1d7')]!=_0x304c0d('0x176d')&&(_0x4ee72a['endRangeValue']=null),_0x4ee72a[_0x304c0d('0x282a')][_0x304c0d('0x784')]&&!_0x283545()[_0x304c0d('0x213d')](_0x4ee72a[_0x304c0d('0x282a')][_0x304c0d('0x784')][_0x304c0d('0x1a8a')])&&(_0x4ee72a[_0x304c0d('0x1694')][_0x304c0d('0x259a')]=_0x283545()['some'](_0x4ee72a[_0x304c0d('0x282a')][_0x304c0d('0x784')][_0x304c0d('0x1a8a')],function(_0xa8e97){const _0x42993b=_0x304c0d;return _0xa8e97===_0x4ee72a[_0x42993b('0x1694')][_0x42993b('0x1d7')];}))),_0x1d45e7();}function _0x5ac6b7(){const _0x5d8e37=_0x446b99;if(_0x4ee72a[_0x5d8e37('0x1694')]&&_0x4ee72a[_0x5d8e37('0x1694')]['type']===_0x5d8e37('0xb71')){if(_0x4ee72a[_0x5d8e37('0x282a')][_0x5d8e37('0x1d7')]===_0x5d8e37('0x272c'))_0x1ce7d8();else _0x4ee72a[_0x5d8e37('0x282a')][_0x5d8e37('0x1d7')]===_0x5d8e37('0x1012')&&(_0x4ee72a[_0x5d8e37('0x0')]=_0x59f37a()(_0x4ee72a[_0x5d8e37('0x49')])['add'](0x1,_0x5d8e37('0xf')),_0x1d45e7());}else _0x1d45e7();}function _0x16eb68(){const _0x224dfd=_0x446b99,_0x573238=_0x4ee72a[_0x224dfd('0x282a')][_0x224dfd('0x784')]&&!_0x283545()['isEmpty'](_0x4ee72a['selectedField'][_0x224dfd('0x784')]['extraOperators']),_0x1d88d7=_0x4ee72a['selectedField'][_0x224dfd('0x784')]&&!_0x283545()[_0x224dfd('0x213d')](_0x4ee72a['selectedField'][_0x224dfd('0x784')][_0x224dfd('0x1788')]);_0x4ee72a[_0x224dfd('0x844')]=_0x283545()[_0x224dfd('0x916')](_0x4ee72a[_0x224dfd('0x151c')],function(_0x1236f9){const _0x5198e8=_0x224dfd,_0x2d21a5=!_0x1236f9[_0x5198e8('0x168c')]||_0x283545()[_0x5198e8('0x1d4e')](_0x1236f9[_0x5198e8('0x168c')],_0x4ee72a[_0x5198e8('0x282a')]['type']);_0x1236f9[_0x5198e8('0x259a')]=_0x573238&&_0x283545()[_0x5198e8('0xc5d')](_0x4ee72a[_0x5198e8('0x282a')][_0x5198e8('0x784')][_0x5198e8('0x1a8a')],function(_0x1892c9){const _0x19086c=_0x5198e8;return _0x1892c9===_0x1236f9[_0x19086c('0x1d7')];});const _0x12df36=_0x283545()['includes'](_0x1236f9[_0x5198e8('0x1c2f')],_0x4ee72a[_0x5198e8('0x282a')][_0x5198e8('0x1d7')])||_0x1d88d7&&_0x283545()[_0x5198e8('0x1d4e')](_0x4ee72a[_0x5198e8('0x282a')][_0x5198e8('0x784')][_0x5198e8('0x1788')],_0x1236f9[_0x5198e8('0x1d7')]);if((_0x2d21a5||_0x1236f9[_0x5198e8('0x259a')])&&!_0x12df36)return _0x1236f9;});}function _0x5d6ed8(){const _0x48bc74=_0x446b99,_0xc33b02=angular[_0x48bc74('0x2669')](_0x4ee72a[_0x48bc74('0x282a')][_0x48bc74('0x784')][_0x48bc74('0x44b')]);if(_0x4ee72a[_0x48bc74('0x282a')][_0x48bc74('0x1d7')]===_0x48bc74('0x137e'))for(let _0x2bb47d=0x0;_0x2bb47dNumber(_0x4ee72a[_0x44cac8('0x49')])?!![]:![]:_0x4ee72a[_0x44cac8('0x20c9')]=!![];else _0x4ee72a['selectedField'][_0x44cac8('0x1d7')]===_0x44cac8('0x1012')&&(_0x4ee72a[_0x44cac8('0x1aff')]=_0x59f37a()(_0x4ee72a[_0x44cac8('0x14fd')])[_0x44cac8('0x10e8')](0x1,_0x44cac8('0xf')),_0x4ee72a[_0x44cac8('0x20c9')]=!![]);_0x1d45e7();}function _0x442f62(){const _0x6f45a7=_0x446b99,_0x4604af=_0x4c473e();_0x4ee72a['options'][_0x6f45a7('0x2047')][_0x6f45a7('0x13e3')](_0x4604af),_0x2dd423();}function _0x2d89d5(_0x105d4f){const _0x5ae1f5=_0x446b99;_0x4ee72a[_0x5ae1f5('0x32b')]=_0x105d4f,_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x1d22')]='md-amber-200-bg',_0x4ee72a[_0x5ae1f5('0x282a')]=_0x283545()['find'](_0x4ee72a[_0x5ae1f5('0x784')]['fields'],['name',_0x4ee72a['pendingCondition'][_0x5ae1f5('0x1a8d')]]),_0x16eb68(),_0x4ee72a[_0x5ae1f5('0x1694')]=_0x283545()[_0x5ae1f5('0x20e8')](_0x4ee72a[_0x5ae1f5('0x844')],['type',_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x135a')]['operator']]),_0x4ee72a[_0x5ae1f5('0x282a')][_0x5ae1f5('0x1d7')]===_0x5ae1f5('0x1012')&&typeof _0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x49')]===_0x5ae1f5('0x2209')?(_0x4ee72a[_0x5ae1f5('0x49')]=new Date(_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x49')]),_0x4ee72a[_0x5ae1f5('0x0')]=_0x59f37a()(_0x4ee72a[_0x5ae1f5('0x49')])[_0x5ae1f5('0x9b8')](0x1,'day'),_0x4ee72a[_0x5ae1f5('0x14fd')]=_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x20c4')]?new Date(_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x20c4')]):undefined):(_0x4ee72a[_0x5ae1f5('0x49')]=_0x4ee72a[_0x5ae1f5('0x32b')][_0x5ae1f5('0x49')],_0x4ee72a[_0x5ae1f5('0x14fd')]=_0x4ee72a['pendingCondition']['endValue']),_0x4ee72a[_0x5ae1f5('0x20c9')]=!![],_0x4ee72a[_0x5ae1f5('0x2266')]=!![];}function _0x53f38c(){const _0x773fb1=_0x446b99,_0xcebbff=_0x4c473e(),_0x460a84=_0x283545()[_0x773fb1('0x1855')](_0x4ee72a[_0x773fb1('0x784')][_0x773fb1('0x2047')],_0x773fb1('0x1d22'));_0x4ee72a[_0x773fb1('0x784')][_0x773fb1('0x2047')][_0x773fb1('0x722')](_0x460a84,0x1,_0xcebbff),_0x2dd423(),_0x4ee72a[_0x773fb1('0x32b')][_0x773fb1('0x1d22')]=null,_0x4ee72a[_0x773fb1('0x32b')]=undefined;}function _0x2c55ec(){const _0x482fe2=_0x446b99;_0x4ee72a[_0x482fe2('0x32b')][_0x482fe2('0x1d22')]=null,_0x4ee72a[_0x482fe2('0x32b')]=undefined;}function _0x3faa5f(_0x2b68ab){const _0x1034dc=_0x446b99;_0x2b68ab['style']=_0x2b68ab['disabled']?undefined:'chip-disabled',_0x2b68ab[_0x1034dc('0x1112')]=!_0x2b68ab['disabled'];}function _0x5b5eba(){const _0x1f7258=_0x446b99;if(_0x283545()[_0x1f7258('0x213d')](_0x4ee72a[_0x1f7258('0x784')]['conditions']))_0x4ee72a[_0x1f7258('0xfcc')]();}function _0x14e6e6(){const _0x318ca5=_0x446b99;_0x4ee72a[_0x318ca5('0x32b')]?_0x53f38c():_0x442f62();}function _0x4c473e(){const _0x43da9f=_0x446b99;return{'name':_0x4ee72a[_0x43da9f('0x282a')][_0x43da9f('0x1a8d')],'operator':_0x211067[_0x43da9f('0x1b11')](_0x43da9f('0x24d2')+_0x4ee72a[_0x43da9f('0x1694')][_0x43da9f('0x27f4')]),'value':_0x4ee72a[_0x43da9f('0x49')],'endValue':_0x4ee72a[_0x43da9f('0x14fd')],'displayValue':_0xeb44f4(_0x4ee72a[_0x43da9f('0x49')]),'displayEndValue':_0xeb44f4(_0x4ee72a[_0x43da9f('0x14fd')]),'query':{'column':_0x4ee72a[_0x43da9f('0x282a')][_0x43da9f('0x1204')],'operator':_0x4ee72a[_0x43da9f('0x1694')][_0x43da9f('0x1d7')],'value':_0x2c2241()},'disabled':![]};}function _0xeb44f4(_0x187eb0){const _0x56c5d9=_0x446b99;let _0x3ad712;if(!_0x187eb0)return undefined;switch(_0x4ee72a[_0x56c5d9('0x282a')][_0x56c5d9('0x1d7')]){case'date':_0x3ad712=_0x59f37a()(_0x187eb0)[_0x56c5d9('0x22b4')]('YYYY-MM-DD');break;case _0x56c5d9('0x9a4'):{const _0x5a5d39=_0x283545()['map'](_0x187eb0,function(_0x1034f3){const _0x1c62e2=_0x56c5d9;return _0x1034f3[_0x1c62e2('0x1a8d')];});_0x3ad712=_0x4ee72a[_0x56c5d9('0x1694')][_0x56c5d9('0x1d7')]==='$eq'?_0x5a5d39[_0x56c5d9('0x185f')](_0x56c5d9('0x2693')):_0x5a5d39[_0x56c5d9('0x185f')](_0x56c5d9('0x2845'));}break;case'select':_0x3ad712=_0x187eb0['name'];break;case _0x56c5d9('0x137e'):_0x3ad712=_0x4ee72a[_0x56c5d9('0x1694')][_0x56c5d9('0x259a')]?_0x187eb0:_0x187eb0[_0x56c5d9('0x2138')];break;default:_0x3ad712=_0x187eb0;break;}return _0x3ad712;}function _0x2c2241(){const _0x3f341d=_0x446b99,_0x36f61c=_0x4ee72a[_0x3f341d('0x49')],_0x283c89=_0x4ee72a['endRangeValue'];let _0x45d3c0;switch(_0x4ee72a[_0x3f341d('0x282a')][_0x3f341d('0x1d7')]){case _0x3f341d('0x1012'):{const _0x5687bb=_0x59f37a()(_0x36f61c)[_0x3f341d('0x2827')](0x0,!![])[_0x3f341d('0x22b4')]('YYYY-MM-DD');if(_0x4ee72a[_0x3f341d('0x1694')][_0x3f341d('0x1d7')]===_0x3f341d('0xb71')){const _0x26d9c4=_0x59f37a()(_0x283c89)[_0x3f341d('0x2827')](0x0,!![])[_0x3f341d('0x22b4')]('YYYY-MM-DD');_0x45d3c0=[_0x5687bb,_0x26d9c4];}else _0x45d3c0=_0x5687bb;}break;case _0x3f341d('0x272c'):_0x45d3c0=_0x4ee72a[_0x3f341d('0x1694')]['type']===_0x3f341d('0xb71')?[_0x36f61c,_0x283c89]:_0x36f61c;break;case _0x3f341d('0x9a4'):{const _0xde4abd=_0x4ee72a[_0x3f341d('0x282a')][_0x3f341d('0x784')]['field']||'id';_0x45d3c0=_0x283545()[_0x3f341d('0x155d')](_0x36f61c,_0xde4abd);}break;case _0x3f341d('0x983'):_0x45d3c0=_0x36f61c['id'];break;case _0x3f341d('0x137e'):_0x45d3c0=_0x4ee72a[_0x3f341d('0x1694')][_0x3f341d('0x259a')]?_0x36f61c:_0x36f61c['id'];break;default:_0x45d3c0=_0x36f61c;break;}return _0x45d3c0;}function _0x2dd423(){const _0x2565a3=_0x446b99;_0x4ee72a['value']=null,_0x4ee72a[_0x2565a3('0x14fd')]=null,_0x4ee72a[_0x2565a3('0x0')]=null,_0x4ee72a[_0x2565a3('0x1aff')]=null,_0x4ee72a[_0x2565a3('0x2266')]=![];}}const _0x41a99c=_0x3e23aa;function _0x562924(){const _0x1232d2=_0x34e79e;return{'restrict':'E','scope':{'templatePath':'=template','card':_0x1232d2('0x1bcc'),'vm':_0x1232d2('0x23d')},'template':_0x1232d2('0x1fb7'),'compile':function(_0x1fbd17){const _0xa31d5a=_0x1232d2;return _0x1fbd17[_0xa31d5a('0x19df')]('ms-card'),function _0x4325a0(_0x389c5f,_0x483d6d){const _0x2243ae=_0xa31d5a;function _0x4057e1(){const _0x94a346=a0_0x14e7;_0x389c5f[_0x94a346('0xba')](_0x94a346('0xe1c'),_0x483d6d);}_0x389c5f[_0x2243ae('0x1140')]=_0x4057e1;};}};}const _0x235c30=_0x562924;;function _0x2f158a(){return{'restrict':'A','link':function(_0x2b655d,_0x213b8c,_0x4f35b4){const _0x1ccedf=a0_0x14e7;_0x4f35b4[_0x1ccedf('0x1f9a')](_0x1ccedf('0x197e'),function(_0x3fb5e3){const _0x34c4c3=_0x1ccedf,_0x1a4f34=_0x213b8c[_0x34c4c3('0x1734')]()[_0x34c4c3('0x1734')]();!_0x1a4f34['hasClass'](_0x34c4c3('0x1c4a'))&&_0x1a4f34[_0x34c4c3('0x19df')](_0x34c4c3('0x1c4a'));if(!_0x283545()[_0x34c4c3('0x213d')](_0x3fb5e3))_0x1a4f34['addClass'](_0x3fb5e3);else{const _0x2ff5d2=_0x1a4f34[0x0][_0x34c4c3('0x9d8')][_0x34c4c3('0x1497')]('\x20'),_0x5e344a=_0x2ff5d2['indexOf'](_0x34c4c3('0xdb0'));_0x2ff5d2['length']=_0x5e344a+0x1,_0x1a4f34[0x0][_0x34c4c3('0x9d8')]=_0x2ff5d2[_0x34c4c3('0x185f')]('\x20');}});}};}const _0x3843b6=_0x2f158a,_0x5105ec=_0x18dd13['p']+_0x34e79e('0x1464'),_0x25ccfb=_0x18dd13['p']+_0x34e79e('0x788');;function _0x4399a5(){const _0x1648c9=_0x34e79e;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x1648c9('0x1701'),_0x1648c9('0x1ce0'),_0x1648c9('0x1b2'),_0x1648c9('0x1a5c'),_0x1648c9('0x1580'),_0x1648c9('0x123b'),'Auth',_0x1648c9('0xd57'),'api',function(_0x22f306,_0x4e0918,_0x5890af,_0xab980b,_0xe8410b,_0x2ae4cf,_0x4624ea,_0x5bd6f1,_0x34ec74){const _0x29edea=_0x1648c9;_0x22f306[_0x29edea('0x9cb')]=_0x4624ea[_0x29edea('0x24cc')](),_0x22f306[_0x29edea('0x9d4')]=function(){const _0x15d794=_0x29edea;return _0x22f306[_0x15d794('0x159c')]&&_0x22f306[_0x15d794('0x159c')][_0x15d794('0x821')]('@')<0x0&&_0x22f306['target']!=_0x22f306['currentUser'][_0x15d794('0x2838')]&&_0x22f306[_0x15d794('0x159c')]!=_0x22f306[_0x15d794('0x9cb')][_0x15d794('0x1a8d')]&&(_0x22f306[_0x15d794('0x9cb')][_0x15d794('0x26e8')]==0x0&&_0x22f306[_0x15d794('0x9cb')][_0x15d794('0x585')]||_0x22f306['currentUser'][_0x15d794('0x26e8')]==0x2&&_0x22f306[_0x15d794('0x130d')]['webrtc'])&&!_0x22f306['disabled'];};function _0x17e2f7(_0x31f9d3){const _0x4089de=_0x29edea;return _0x34ec74[_0x4089de('0x1e6a')]['getVoicePrefixes']({'id':_0x22f306[_0x4089de('0x9cb')]['id']})['$promise'][_0x4089de('0x2788')](function(_0x6fd0a8){const _0x36aaee=_0x4089de;if(_0x6fd0a8[_0x36aaee('0x338')])return _0x2ae4cf[_0x36aaee('0x2fa')]({'controller':_0x36aaee('0x1035'),'controllerAs':'vm','templateUrl':_0x25ccfb,'parent':angular[_0x36aaee('0x16b1')](_0xe8410b[_0x36aaee('0x945')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x6fd0a8,'required':_0x22f306[_0x36aaee('0x9cb')]['phoneBarPrefixRequired']}});})[_0x4089de('0x2788')](function(_0x3e7ef7){const _0x262a64=_0x4089de;if(!_0x22f306[_0x262a64('0x9cb')][_0x262a64('0x569')]){if(_0x3e7ef7&&_0x3e7ef7!==-0x1)_0x444666(_0x3e7ef7+_0x31f9d3);else!_0x3e7ef7&&_0x444666(_0x31f9d3);}else _0x3e7ef7&&_0x3e7ef7!==-0x1&&_0x444666(_0x3e7ef7+_0x31f9d3);});}function _0x444666(_0x45c19d){const _0x22e917=_0x29edea;switch(_0x22f306['currentUser']['showWebBar']){case 0x0:return _0x52c7a6('http://127.0.0.1:'+(_0x22f306[_0x22e917('0x9cb')][_0x22e917('0x1d11')]||'9888')+_0x22e917('0x66c')+_0xc51cb0(_0x45c19d));case 0x2:return _0x4e0918[_0x22e917('0x2379')](_0x22e917('0xa1c'),{'target':_0xc51cb0(_0x45c19d)});default:break;}}_0x22f306['call']=function(_0x5b08ad){return _0x22f306['currentUser']['showWebBar']!==0x2?_0x17e2f7(_0x5b08ad):_0x444666(_0x5b08ad);},_0x22f306[_0x29edea('0x589')]=function(_0x594d23){const _0xa09b15=_0x29edea;switch(_0x22f306[_0xa09b15('0x9cb')][_0xa09b15('0x26e8')]){case 0x0:return _0x52c7a6(_0xa09b15('0x7ba')+(_0x22f306[_0xa09b15('0x9cb')]['phoneBarRemoteControlPort']||'9888')+_0xa09b15('0xae5')+_0xc51cb0(_0x594d23));case 0x2:_0x4e0918[_0xa09b15('0x2379')](_0xa09b15('0x24fe'),{'target':_0xc51cb0(_0x594d23)});break;default:break;}};function _0xc51cb0(_0x46ea4a){const _0x197edd=_0x29edea;return!_0x283545()[_0x197edd('0x1015')](_0x46ea4a)?_0x46ea4a['replace'](/[^\w.+#*-]+/g,''):'';}function _0x52c7a6(_0x271140){const _0x1743d1=_0x29edea;return _0x5890af['get'](_0x271140)['success'](function(){const _0x51b23b=a0_0x14e7;_0x5bd6f1[_0x51b23b('0x173b')]({'title':_0x51b23b('0x1d00'),'msg':_0x51b23b('0x25eb')});})[_0x1743d1('0x5e8')](function(){const _0x25db96=_0x1743d1;_0x5bd6f1[_0x25db96('0x5e8')]({'title':_0x25db96('0xda5'),'msg':_0xab980b[_0x25db96('0x1b11')](_0x25db96('0xf2'))});});}}],'templateUrl':_0x5105ec};}const _0x468540=_0x4399a5;_0x500cff[_0x34e79e('0x2d9')]=['msDatepickerFixConfig'];function _0x102fff(){const _0x5d1f1a=_0x34e79e;_0x39ddd5['$inject']=['configuration'];const _0x1bd8a0=this;let _0x25bbc6={'formatter':function(_0x23fdad){if(!_0x23fdad)return'';return _0x23fdad===''?_0x23fdad:new Date(_0x23fdad);},'parser':function(_0x420581){const _0x544670=a0_0x14e7;if(!_0x420581)return'';return _0x59f37a()(_0x420581)[_0x544670('0x9b8')](_0x59f37a()(_0x420581)[_0x544670('0x2827')](),'m')[_0x544670('0x2337')]();}};function _0x39ddd5(_0x57518b){const _0x240525=a0_0x14e7;_0x25bbc6=angular[_0x240525('0x192a')]({},_0x25bbc6,_0x57518b);}_0x1bd8a0[_0x5d1f1a('0x1a22')]=_0x39ddd5,_0x1bd8a0['$get']=function(){return _0x25bbc6;};}function _0x500cff(_0x5c6aef){const _0x57c1d3=_0x34e79e;return{'require':_0x57c1d3('0xcca'),'priority':0x1,'link':function(_0x5b757c,_0x2261b5,_0x124005,_0x368d42){const _0x45e070=_0x57c1d3;_0x368d42[_0x45e070('0x26e4')][_0x45e070('0x13e3')](_0x5c6aef['formatter']),_0x368d42[_0x45e070('0x727')]['push'](_0x5c6aef[_0x45e070('0x1dbe')]);}};}_0x5a1142[_0x34e79e('0x2d9')]=['api'];function _0x5a1142(_0x680bb){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x2ce2e4,_0x4ca36b){const _0xdea0ad=a0_0x14e7;let _0x5c55d6=![];const _0x4bcd43={};_0x4bcd43['id']=_0x2ce2e4['id'];!_0x283545()['isNil'](_0x2ce2e4['path'])&&(_0x4bcd43['path']=_0x2ce2e4[_0xdea0ad('0xd1')]);const _0x99a4ad=document[_0xdea0ad('0x1ae6')](_0x2ce2e4[_0xdea0ad('0x16b1')]);_0x99a4ad['setAttribute'](_0xdea0ad('0x2582'),_0xdea0ad('0x1dc')),_0x99a4ad[_0xdea0ad('0x1c6b')](_0xdea0ad('0xa5d'),_0xdea0ad('0x1001')),_0x2ce2e4[_0xdea0ad('0x16b1')]===_0xdea0ad('0x244d')&&_0x99a4ad[_0xdea0ad('0x1c6b')](_0xdea0ad('0x1d22'),_0xdea0ad('0x243f')),_0x2ce2e4[_0xdea0ad('0x16b1')]==='video'&&_0x99a4ad[_0xdea0ad('0x1c6b')](_0xdea0ad('0x1d22'),'max-width:\x20500px;'),_0x99a4ad[_0xdea0ad('0x1c6b')](_0xdea0ad('0x14e4'),_0x2ce2e4['title']),_0x99a4ad['setAttribute'](_0xdea0ad('0x1269'),'\x20'),_0x99a4ad[_0xdea0ad('0x50f')]=function(_0xa87d96){const _0x5e5c2e=_0xdea0ad;!_0x5c55d6&&(_0x5c55d6=!![],_0xa87d96[_0x5e5c2e('0xf57')](),_0x680bb[_0x2ce2e4['model']][_0x5e5c2e('0x1486')](_0x4bcd43)[_0x5e5c2e('0x1714')][_0x5e5c2e('0x2788')](function(_0x3e95eb){const _0x216358=_0x5e5c2e,_0x398c09=[_0x3e95eb[_0x216358('0x3f1')]],_0x13854a=new Blob(_0x398c09,{'type':_0x3e95eb['type']});_0x99a4ad[_0x216358('0x1c6b')](_0x216358('0x1d7'),_0x3e95eb['type']),_0x99a4ad[_0x216358('0x1c6b')](_0x216358('0x1269'),URL[_0x216358('0x1b0d')](_0x13854a)),_0x99a4ad['play']();})['catch'](function(_0x29b27a){const _0x84dc80=_0x5e5c2e;console[_0x84dc80('0x5e8')](_0x29b27a);}));},_0x4ca36b['append'](_0x99a4ad);}};}const _0x383e3f=_0x5a1142,_0x4759d3=_0x18dd13['p']+_0x34e79e('0x244b');;function _0x2164fa(){const _0x255a94=_0x34e79e;return{'restrict':'E','scope':{'options':'='},'controller':[_0x255a94('0x1701'),function(_0x2ffcef){const _0x73caa=_0x255a94;_0x2ffcef[_0x73caa('0x469')]=function(_0x1d0053,_0x4b469e,_0x34fdd2){const _0x3b2751=_0x73caa;if(_0x4b469e[_0x3b2751('0x1e77')])return;else{if(typeof _0x1d0053['isValid']!==_0x3b2751('0xedb')&&_0x1d0053[_0x3b2751('0x68d')])return _0x34fdd2?_0x2ffcef['transfer'](_0x4b469e[_0x3b2751('0x283f')],_0x4b469e[_0x3b2751('0x117b')],_0x4b469e[_0x3b2751('0x283f')][_0x3b2751('0x821')](_0x1d0053),_0x34fdd2):_0x2ffcef['transfer'](_0x4b469e['items'],_0x4b469e[_0x3b2751('0x283f')],_0x4b469e[_0x3b2751('0x117b')]['indexOf'](_0x1d0053),_0x34fdd2);}},_0x2ffcef[_0x73caa('0x589')]=function(_0x4c639d,_0x630ec7,_0x298add,_0x3f7216){const _0x56f2c8=_0x73caa;let _0x36c7e0=[];if(_0x298add>=0x0)_0x36c7e0[_0x56f2c8('0x13e3')](_0x4c639d[_0x298add]),_0x630ec7['push'](_0x4c639d[_0x298add]),_0x4c639d[_0x56f2c8('0x722')](_0x298add,0x1);else{for(let _0x3a0733=0x0;_0x3a0733<_0x4c639d[_0x56f2c8('0x2566')];_0x3a0733++){typeof _0x4c639d[_0x3a0733][_0x56f2c8('0x68d')]!==_0x56f2c8('0xedb')&&_0x4c639d[_0x3a0733][_0x56f2c8('0x68d')]&&_0x630ec7[_0x56f2c8('0x13e3')](_0x4c639d[_0x3a0733]);}for(let _0x50693d=_0x4c639d[_0x56f2c8('0x2566')]-0x1;_0x50693d>=0x0;_0x50693d--){_0x4c639d[_0x50693d][_0x56f2c8('0x68d')]&&_0x4c639d[_0x56f2c8('0x722')](_0x50693d,0x1);}_0x36c7e0=_0x630ec7;}_0x2ffcef[_0x56f2c8('0x784')][_0x56f2c8('0x6af')]&&_0x2ffcef[_0x56f2c8('0x784')][_0x56f2c8('0x6af')](_0x36c7e0,_0x3f7216);},_0x2ffcef['getLine']=function(_0x3b26de,_0x5d4de9){const _0x2c5b21=_0x73caa;let _0x5e157e='';if(_0x283545()['isNil'](_0x5d4de9))return _0x5e157e;if(_0x283545()[_0x2c5b21('0x1ed4')](_0x5d4de9)){for(let _0x2b3b35=0x0;_0x2b3b35<_0x5d4de9[_0x2c5b21('0x2566')];_0x2b3b35++){_0x5e157e+='\x20'+(_0x3b26de[_0x5d4de9[_0x2b3b35]]?_0x3b26de[_0x5d4de9[_0x2b3b35]]:'');}return _0x5e157e;}else return _0x3b26de[_0x5d4de9]?_0x3b26de[_0x5d4de9]:'';};}],'templateUrl':_0x4759d3};}const _0x4c5f01=_0x2164fa;_0xca587b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1a5c')];function _0xca587b(_0x365496){const _0x14971e=_0x34e79e;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0x14971e('0x198c'),'link':function(_0x2c5267,_0x4bce32){const _0xe7869c=_0x14971e,_0x18f2ec=_0x4bce32[_0xe7869c('0xea1')]({'pickerPosition':_0x2c5267[_0xe7869c('0x2199')],'search':_0x2c5267[_0xe7869c('0x470')],'recentEmojis':_0x2c5267[_0xe7869c('0x1f3c')],'placeholder':_0x365496['instant'](_0x2c5267[_0xe7869c('0xd27')]||_0xe7869c('0x19c1')),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x2d81cf,_0x178a22){const _0x24b686=_0xe7869c;_0x2c5267[_0x24b686('0xcca')]=this[_0x24b686('0x5b7')](),_0x2c5267['onReply']({'event':_0x178a22,'body':this[_0x24b686('0x5b7')]()});},'emojibtn_click':function(){const _0x473be6=_0xe7869c;_0x2c5267[_0x473be6('0xcca')]=this[_0x473be6('0x5b7')]();}}});_0x2c5267[_0xe7869c('0xcca')]&&_0x18f2ec[0x0]['emojioneArea'][_0xe7869c('0x9d6')](_0x2c5267[_0xe7869c('0xcca')]),_0x2c5267[_0xe7869c('0x20ac')]=_0x2c5267[_0xe7869c('0x1e7b')]||{},_0x2c5267[_0xe7869c('0x20ac')][_0xe7869c('0x9d6')]=function(_0x2925a7){const _0x8e7411=_0xe7869c;_0x18f2ec[0x0][_0x8e7411('0xea1')]['setText'](_0x2925a7);},_0x2c5267[_0xe7869c('0x20ac')][_0xe7869c('0x5b7')]=function(){const _0x4abc5c=_0xe7869c;return _0x18f2ec[0x0]['emojioneArea'][_0x4abc5c('0x5b7')]();},_0x2c5267[_0xe7869c('0x1662')](_0xe7869c('0xcca'),function(_0x46a6a8){const _0x482734=_0xe7869c;!_0x46a6a8&&_0x18f2ec[0x0][_0x482734('0xea1')]['setText']('');});}};}const _0x169775=_0xca587b,_0x2dd418=_0x18dd13['p']+_0x34e79e('0x1d61');;function _0x3f9794(){const _0x4595ae=_0x34e79e;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x4595ae('0x1701'),function(_0x198e90){const _0x3ba07f=_0x4595ae;_0x198e90[_0x3ba07f('0xaaf')]=[{'option':_0x3ba07f('0x231e'),'value':_0x3ba07f('0x21d5')},{'option':_0x3ba07f('0x1056'),'value':_0x3ba07f('0x12dd')},{'option':_0x3ba07f('0x261c'),'value':'Calibri,\x20Verdana,\x20Geneva,\x20sans-serif'},{'option':_0x3ba07f('0x81a'),'value':_0x3ba07f('0x2067')},{'option':'Courier\x20New','value':_0x3ba07f('0xe62')},{'option':_0x3ba07f('0x1b75'),'value':_0x3ba07f('0x800')},{'option':_0x3ba07f('0x1e87'),'value':'Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif'},{'option':_0x3ba07f('0x10c'),'value':_0x3ba07f('0x1a35')},{'option':_0x3ba07f('0x64'),'value':_0x3ba07f('0x189b')},{'option':_0x3ba07f('0x1ef2'),'value':_0x3ba07f('0x49d')},{'option':_0x3ba07f('0x1a85'),'value':_0x3ba07f('0x2212')}];}],'templateUrl':_0x2dd418};}const _0x19369f=_0x3f9794;function _0x5478f5(){const _0x48dd26=_0x34e79e,_0x513e5f=this;_0x513e5f['forms']=[],_0x513e5f['selectedIndex']=0x0,_0x513e5f['registerForm']=_0x28c566,_0x513e5f['previousStep']=_0x296f43,_0x513e5f[_0x48dd26('0x1183')]=_0x2f400f,_0x513e5f['firstStep']=_0x188008,_0x513e5f[_0x48dd26('0x1e05')]=_0x585e2e,_0x513e5f[_0x48dd26('0x2770')]=_0x5b9cd8,_0x513e5f[_0x48dd26('0x13d9')]=_0x11507f,_0x513e5f[_0x48dd26('0x2b6')]=_0x54d14e,_0x513e5f[_0x48dd26('0xbe')]=_0x28eb84,_0x513e5f[_0x48dd26('0x2426')]=_0x18fff1,_0x513e5f['formsIncomplete']=_0x3a4f9f,_0x513e5f[_0x48dd26('0x573')]=_0x54ea33;function _0x28c566(_0x39ccad){const _0x1a567f=_0x48dd26;_0x513e5f[_0x1a567f('0x1f46')][_0x1a567f('0x13e3')](_0x39ccad);}function _0x296f43(){const _0x3ba8cd=_0x48dd26;if(_0x11507f())return;_0x513e5f[_0x3ba8cd('0x536')]--;}function _0x2f400f(){if(_0x54d14e())return;_0x513e5f['selectedIndex']++;}function _0x188008(){_0x513e5f['selectedIndex']=0x0;}function _0x585e2e(){const _0x55ad29=_0x48dd26;_0x513e5f[_0x55ad29('0x536')]=_0x5b9cd8()-0x1;}function _0x5b9cd8(){const _0x7942e3=_0x48dd26;return _0x513e5f[_0x7942e3('0x1f46')][_0x7942e3('0x2566')];}function _0x11507f(){const _0x85eb3b=_0x48dd26;return _0x513e5f[_0x85eb3b('0x536')]===0x0;}function _0x54d14e(){return _0x513e5f['selectedIndex']===_0x5b9cd8()-0x1;}function _0x28eb84(){const _0x2c983b=_0x48dd26;return angular[_0x2c983b('0x2735')](_0x513e5f[_0x2c983b('0x1f46')][_0x513e5f['selectedIndex']])&&_0x513e5f['forms'][_0x513e5f[_0x2c983b('0x536')]][_0x2c983b('0x33c')];}function _0x18fff1(){const _0x5c8d49=_0x48dd26;return _0x513e5f[_0x5c8d49('0x536')]>0x0&&angular['isDefined'](_0x513e5f[_0x5c8d49('0x1f46')][_0x513e5f['selectedIndex']-0x1])&&_0x513e5f[_0x5c8d49('0x1f46')][_0x513e5f[_0x5c8d49('0x536')]-0x1][_0x5c8d49('0x33c')];}function _0x3a4f9f(){const _0x2a529e=_0x48dd26;for(let _0x57ada2=0x0;_0x57ada2<_0x513e5f[_0x2a529e('0x1f46')][_0x2a529e('0x2566')];_0x57ada2++){if(_0x513e5f[_0x2a529e('0x1f46')][_0x57ada2][_0x2a529e('0x33c')])return!![];}return![];}function _0x54ea33(){const _0x34d964=_0x48dd26;_0x513e5f['selectedIndex']=0x0;for(let _0x2ddad9=0x0;_0x2ddad9<_0x513e5f[_0x34d964('0x1f46')][_0x34d964('0x2566')];_0x2ddad9++){_0x513e5f[_0x34d964('0x1f46')][_0x2ddad9][_0x34d964('0x4e9')](),_0x513e5f[_0x34d964('0x1f46')][_0x2ddad9][_0x34d964('0x3d6')]();}}}function _0x57b5f0(){const _0x2a5105=_0x34e79e;return{'restrict':'E','scope':!![],'controller':_0x2a5105('0x232f'),'compile':function(_0x5b8ded){const _0xecead9=_0x2a5105;return _0x5b8ded[_0xecead9('0x19df')](_0xecead9('0x1ca1')),function _0x43bb19(){};}};}function _0x133605(){const _0x172fa6=_0x34e79e;return{'restrict':'A','require':[_0x172fa6('0x1c1f'),'^msFormWizard'],'compile':function(_0x31e7ff){const _0x98c4d0=_0x172fa6;return _0x31e7ff[_0x98c4d0('0x19df')](_0x98c4d0('0x515')),function _0xc154a1(_0x1698a5,_0x43b3a8,_0x2d8f3e,_0x1bda47){const _0x6619b8=_0x98c4d0,_0x35c184=_0x1bda47[0x0],_0x5d2f64=_0x1bda47[0x1];_0x5d2f64[_0x6619b8('0x1549')](_0x35c184);};}};}const _0x59487d=_0x18dd13['p']+_0x34e79e('0x1e4f');_0x2f1282['$inject']=[_0x34e79e('0x1580')];function _0x2f1282(_0x3480b6){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x59487d,'link':function(_0x3d0972,_0x2c811c){const _0x129c19=a0_0x14e7,_0x506ad9=_0x3480b6[_0x129c19('0x20e8')]('ms-info-bar-active'),_0x3e34e9='ms-info-bar-active';_0x506ad9[_0x129c19('0x19df')](_0x3e34e9);function _0x39fafc(){const _0x90fcc=_0x129c19;_0x506ad9[_0x90fcc('0x817')](_0x3e34e9),_0x2c811c[_0x90fcc('0x1a90')](),_0x3d0972['onClose']&&_0x3d0972[_0x90fcc('0x1fe0')](),_0x3d0972[_0x90fcc('0x26ac')]();}_0x3d0972[_0x129c19('0x4cd')]=_0x39fafc;}};}const _0x1caaad=_0x2f1282;_0x2121ed[_0x34e79e('0x2d9')]=[_0x34e79e('0x446')],_0x59b8a8['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x21e3'),_0x34e79e('0x446')];function _0x59b8a8(_0x2fe130,_0x249f3f,_0x3c2989,_0x249b19){const _0x2a19c8=_0x34e79e,_0x569739=this,_0x48f4db={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x3e76e3=!![];_0x569739[_0x2a19c8('0x784')]=null,_0x569739[_0x2a19c8('0x625')]=[],_0x569739[_0x2a19c8('0x220e')]='',_0x569739[_0x2a19c8('0x532')]='',_0x569739['items']=[],_0x569739[_0x2a19c8('0x2091')]=_0x5edc09,_0x569739['initialize']=_0x5ddaaf,_0x569739[_0x2a19c8('0x2416')]=_0x5d46d2;function _0x5ddaaf(){const _0x424159=_0x2a19c8;_0x569739[_0x424159('0x784')]=!_0x569739[_0x424159('0x784')]?_0x48f4db:angular[_0x424159('0x192a')](_0x48f4db,_0x569739[_0x424159('0x784')]),_0x200289();}_0x2fe130['$on'](_0x2a19c8('0x5c9'),function(){_0x5edc09();});function _0x5d46d2(_0x53f7ac,_0x992a55){const _0x3fda8d=_0x2a19c8;if(typeof imagesLoaded!==_0x3fda8d('0xedb')){const _0x229f68=_0x249f3f[_0x3fda8d('0x4aa')](_0x53f7ac);_0x229f68['on']('done',function(){_0x992a55();});}else _0x992a55();}function _0x200289(){_0x2fe130['$watch'](function(){const _0x184c67=a0_0x14e7;return _0x569739[_0x184c67('0x625')][_0x184c67('0xc70')]();},function(_0x1395a7,_0x1d6002){_0x1395a7!==_0x1d6002&&_0x5edc09();});}function _0x5edc09(){const _0x560ac7=_0x2a19c8;_0x3e76e3&&_0x249b19[_0x560ac7('0x1801')](_0x3e76e3);_0x3e76e3=_0x249b19(function(){const _0xd17f2c=_0x560ac7;_0x166625(),_0x2fe130['$broadcast'](_0xd17f2c('0x7f8'));},_0x569739[_0x560ac7('0x784')][_0x560ac7('0x18fe')]);function _0x166625(){const _0x58d24a=_0x560ac7;_0x569739[_0x58d24a('0x220e')]=_0x569739[_0x58d24a('0x625')][0x0]['getBoundingClientRect'](),_0x74bbf1(),_0x2fe130[_0x58d24a('0x2379')](_0x58d24a('0x7ee')),_0x569739[_0x58d24a('0x117b')]=_0x569739[_0x58d24a('0x625')][_0x58d24a('0x20e8')](_0x58d24a('0xc7c'));const _0x2f95e0=Array[_0x58d24a('0xbfc')](null,new Array(_0x569739[_0x58d24a('0x1515')]))['map'](function(){return 0x0;});for(let _0x432a07=0x0;_0x432a07<_0x569739['items'][_0x58d24a('0x2566')];_0x432a07++){let _0x4ead8d=_0x569739[_0x58d24a('0x117b')][_0x432a07],_0xed050e,_0x568714;_0x4ead8d=angular[_0x58d24a('0x16b1')](_0x4ead8d);_0x4ead8d[_0x58d24a('0x934')]()&&_0x4ead8d[_0x58d24a('0x934')]()['$broadcast']('msMasonryItem:startReLayout');_0x4ead8d[_0x58d24a('0x1efb')]({'width':_0x569739[_0x58d24a('0x532')]});_0x569739[_0x58d24a('0x784')]['respectItemOrder']?(_0xed050e=_0x432a07%_0x569739[_0x58d24a('0x1515')],_0x568714=_0x2f95e0[_0xed050e]):(_0x568714=Math[_0x58d24a('0x957')]['apply'](Math,_0x2f95e0),_0xed050e=_0x2f95e0[_0x58d24a('0x821')](_0x568714));_0x2f95e0[_0xed050e]=_0x568714+_0x4ead8d[0x0]['getBoundingClientRect']()['height'];const _0x20cbda=Math[_0x58d24a('0xe05')](_0xed050e*_0x569739[_0x58d24a('0x532')]),_0x3015f2=_0x568714;_0x4ead8d[_0x58d24a('0x1efb')]({'transform':_0x58d24a('0x11b0')+_0x20cbda+'px,'+_0x3015f2+_0x58d24a('0x1d5e')}),_0x4ead8d[_0x58d24a('0x19df')](_0x58d24a('0xd70')),_0x4ead8d[_0x58d24a('0x934')]()&&_0x4ead8d[_0x58d24a('0x934')]()['$broadcast']('msMasonryItem:finishReLayout');}}}function _0x74bbf1(){const _0xf2d1eb=_0x2a19c8;_0x569739['columnCount']=_0x569739['options'][_0xf2d1eb('0x1515')];if(_0x3c2989('gt-md'))_0x569739['columnCount']=_0x569739[_0xf2d1eb('0x784')]['columnCount'];else{if(_0x3c2989('md'))_0x569739['columnCount']=_0x569739['columnCount']>_0x569739[_0xf2d1eb('0x784')][_0xf2d1eb('0x2072')]['md']?_0x569739[_0xf2d1eb('0x784')][_0xf2d1eb('0x2072')]['md']:_0x569739[_0xf2d1eb('0x1515')];else _0x3c2989('sm')?_0x569739[_0xf2d1eb('0x1515')]=_0x569739[_0xf2d1eb('0x1515')]>_0x569739[_0xf2d1eb('0x784')]['responsive']['sm']?_0x569739['options']['responsive']['sm']:_0x569739[_0xf2d1eb('0x1515')]:_0x569739['columnCount']=_0x569739['options'][_0xf2d1eb('0x2072')]['xs'];}_0x569739[_0xf2d1eb('0x532')]=_0x569739[_0xf2d1eb('0x220e')][_0xf2d1eb('0xc70')]/_0x569739[_0xf2d1eb('0x1515')];}}function _0x2121ed(_0x257e06){const _0x387dc1=_0x34e79e;return{'restrict':_0x387dc1('0x24dc'),'controller':'msMasonryController','compile':_0x146fbc};function _0x146fbc(_0x1dfbc4,_0x4bfe2d){return{'pre':function _0x59da26(_0x2c7bed,_0x3624e7,_0x580d4a,_0xb2b979){const _0x132675=a0_0x14e7;_0xb2b979[_0x132675('0x784')]=angular['fromJson'](_0x4bfe2d['options']||'{}'),_0xb2b979['container']=_0x1dfbc4;},'post':function _0x197367(_0x956b41,_0xaeb293,_0x1e8817,_0x5ea1f7){_0x257e06(function(){const _0x18a146=a0_0x14e7;_0x5ea1f7[_0x18a146('0x1060')]();});}};}}function _0x4c2437(){const _0x58f06e=_0x34e79e;return{'restrict':'AEC','require':_0x58f06e('0x1fd9'),'priority':0x1,'link':_0x18851f};function _0x18851f(_0x3a1545,_0xb483fd,_0x158275,_0x58a31e){const _0x216e2f=_0x58f06e;_0x58a31e['waitImagesLoaded'](_0xb483fd,function(){const _0x139388=a0_0x14e7;_0x58a31e[_0x139388('0x2091')]();}),_0x3a1545[_0x216e2f('0x651')](_0x216e2f('0x4dc'),function(){_0x3a1545['$watch'](function(){const _0x7e3a76=a0_0x14e7;return _0xb483fd[_0x7e3a76('0x1049')]();},function(_0x2effbe,_0xd5fbf0){const _0x1dca69=a0_0x14e7;_0x2effbe!==_0xd5fbf0&&_0x58a31e[_0x1dca69('0x2091')]();});}),_0xb483fd['on'](_0x216e2f('0x26ac'),function(){const _0x3af9a5=_0x216e2f;_0x58a31e[_0x3af9a5('0x2091')]();});}}const _0x4b972d=_0x18dd13['p']+'src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html';_0x3ec42d[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x23db'),_0x34e79e('0x18b9'),_0x34e79e('0x183b')];function _0x3ec42d(_0x3dc04f,_0x283cbc,_0x3629f1,_0x226214){const _0x2e88b4=_0x34e79e,_0x11833a=this;_0x11833a[_0x2e88b4('0x9dc')]=_0x283cbc,_0x11833a['selectedPalette']=![],_0x11833a['selectedHues']=![],_0x3dc04f[_0x2e88b4('0x23ba')]={},_0x11833a['activateHueSelection']=_0x256da5,_0x11833a[_0x2e88b4('0x2754')]=_0x55fe31,_0x11833a[_0x2e88b4('0xd02')]=_0x4aa8ff,_0x3dc04f[_0x2e88b4('0x1662')]('ngModel',_0x361843);function _0x256da5(_0x3fe840,_0x2db2fe){_0x11833a['selectedPalette']=_0x3fe840,_0x11833a['selectedHues']=_0x2db2fe;}function _0x55fe31(_0x3b38fd,_0x4b7337){const _0x288f5e=_0x2e88b4;_0x111453(_0x3b38fd,_0x4b7337),_0x5d4318(),_0x3629f1[_0x288f5e('0x19d')]();}function _0x4aa8ff(){const _0x1d9429=_0x2e88b4;_0x11833a[_0x1d9429('0x2743')]={'palette':'','hue':'','class':''},_0x256da5(![],![]),_0x5d4318();}function _0x361843(){const _0x38839f=_0x2e88b4;if(!_0x11833a[_0x38839f('0x1fa8')][_0x38839f('0x107a')]||_0x11833a['modelCtrl'][_0x38839f('0x107a')]===''){_0x4aa8ff();return;}let _0x3a0cfe,_0x3e2a9c;if(_0x11833a[_0x38839f('0x1026')]===_0x38839f('0x9a2')){const _0x24b1f6=_0x11833a['modelCtrl']['$viewValue']['split']('-');_0x24b1f6[_0x38839f('0x2566')]>=0x5?(_0x3a0cfe=_0x24b1f6[0x1]+'-'+_0x24b1f6[0x2],_0x3e2a9c=_0x24b1f6[0x3]):(_0x3a0cfe=_0x24b1f6[0x1],_0x3e2a9c=_0x24b1f6[0x2]);}else _0x11833a['msModelType']===_0x38839f('0xe7c')&&(_0x3a0cfe=_0x11833a[_0x38839f('0x1fa8')][_0x38839f('0x107a')]['palette'],_0x3e2a9c=_0x11833a[_0x38839f('0x1fa8')][_0x38839f('0x107a')][_0x38839f('0x236b')]||0x1f4);_0x111453(_0x3a0cfe,_0x3e2a9c);}function _0x111453(_0x282406,_0x117bdc){const _0xbb6c4c=_0x2e88b4;_0x11833a[_0xbb6c4c('0x2743')]={'palette':_0x282406,'hue':_0x117bdc,'class':'md-'+_0x282406+'-'+_0x117bdc+_0xbb6c4c('0x21a3'),'bgColorValue':_0x226214['rgba'](_0x11833a[_0xbb6c4c('0x9dc')][_0x282406][_0x117bdc][_0xbb6c4c('0x49')]),'fgColorValue':_0x226214['rgba'](_0x11833a[_0xbb6c4c('0x9dc')][_0x282406][_0x117bdc][_0xbb6c4c('0x18b7')])},_0x11833a['msModelType']===_0xbb6c4c('0xe7c')&&!angular[_0xbb6c4c('0x2309')](_0x11833a['selectedColor'],_0x11833a[_0xbb6c4c('0x1fa8')][_0xbb6c4c('0x107a')])&&_0x5d4318(),_0x256da5(_0x282406,_0x11833a[_0xbb6c4c('0x9dc')][_0x282406]),_0x3dc04f[_0xbb6c4c('0x23ba')]=_0x11833a[_0xbb6c4c('0x2743')];}function _0x5d4318(){const _0x4c9f10=_0x2e88b4;if(_0x11833a[_0x4c9f10('0x1026')]===_0x4c9f10('0x9a2'))_0x11833a[_0x4c9f10('0x1fa8')][_0x4c9f10('0xb7e')](_0x11833a[_0x4c9f10('0x2743')][_0x4c9f10('0x9a2')]);else _0x11833a[_0x4c9f10('0x1026')]==='obj'&&_0x11833a['modelCtrl']['$setViewValue'](_0x11833a[_0x4c9f10('0x2743')]);}}function _0x52aa64(){const _0x751f7e=_0x34e79e;return{'require':[_0x751f7e('0x19d9'),_0x751f7e('0xcca')],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x751f7e('0x1955'),'transclude':!![],'templateUrl':_0x4b972d,'link':function(_0x3c8082,_0x3b8e0f,_0x5ddac6,_0x249423,_0x3be10a){const _0x1bd3cc=_0x751f7e,_0x25ab3e=_0x249423[0x0];_0x25ab3e['modelCtrl']=_0x249423[0x1],_0x25ab3e[_0x1bd3cc('0x1026')]=_0x3c8082[_0x1bd3cc('0x1026')]||_0x1bd3cc('0x9a2'),_0x3be10a(_0x3c8082,function(_0x2290fc){const _0x10b20d=_0x1bd3cc;_0x2290fc=_0x2290fc['filter'](function(_0x36290c,_0x13d634){const _0x1905be=a0_0x14e7;return _0x13d634[_0x1905be('0xf42')]===0x1?!![]:![];}),_0x2290fc[_0x10b20d('0x2566')]&&_0x3b8e0f[_0x10b20d('0x20e8')]('ms-color-picker-button')['replaceWith'](_0x2290fc);});}};}_0x56000d['$inject']=[_0x34e79e('0x1ce0'),'$q',_0x34e79e('0xb95'),_0x34e79e('0x1382')],_0x214a2b[_0x34e79e('0x2d9')]=['$rootScope',_0x34e79e('0xdd8'),'msNavFoldService'],_0x79c6ca[_0x34e79e('0x2d9')]=['$document',_0x34e79e('0x1ce0'),_0x34e79e('0xfb5')];function _0xa18288(){let _0x3f6d66={};const _0x4465fb={'setFoldable':_0x59ff14,'isNavFoldedOpen':_0x55c2dd,'toggleFold':_0x5345aa,'openFolded':_0x15e7b2,'closeFolded':_0xed34b6};return _0x4465fb;function _0x59ff14(_0x289a8d,_0x8bf7a6){_0x3f6d66={'scope':_0x289a8d,'element':_0x8bf7a6};}function _0x55c2dd(){const _0x5bbcea=a0_0x14e7;return _0x3f6d66['scope'][_0x5bbcea('0x14d5')]();}function _0x5345aa(){_0x3f6d66['scope']['toggleFold']();}function _0x15e7b2(){const _0x49dff9=a0_0x14e7;_0x3f6d66[_0x49dff9('0x934')]['openFolded']();}function _0xed34b6(){const _0x299eee=a0_0x14e7;_0x3f6d66[_0x299eee('0x934')][_0x299eee('0x20da')]();}}function _0x79c6ca(_0x36c350,_0x3217f7,_0x46b6ea){return{'restrict':'A','link':function(_0x1d28c4,_0x3a79cc,_0x5eaca9){const _0x18cbdc=a0_0x14e7;let _0x2b4be1=_0x5eaca9[_0x18cbdc('0x995')]===_0x18cbdc('0x1001'),_0xa0ab56=![];const _0x4c61a1=angular[_0x18cbdc('0x16b1')](_0x36c350[0x0][_0x18cbdc('0x945')]),_0x5b22dc=angular[_0x18cbdc('0x16b1')](_0x18cbdc('0x9eb')),_0x206be2=angular['element'](_0x18cbdc('0xa8d')),_0x18a221=_0x3a79cc['parent']();_0x46b6ea['setFoldable'](_0x1d28c4,_0x3a79cc,_0x2b4be1);_0x2b4be1?_0x28c44e():_0x2547cf();function _0x22d349(){return _0xa0ab56;}function _0xec2bb0(){_0x2b4be1=!_0x2b4be1,_0x2b4be1?_0x28c44e():_0x2547cf();}function _0x28c44e(){const _0x5f5706=_0x18cbdc;_0x4c61a1[_0x5f5706('0x19df')](_0x5f5706('0x1415')),_0x3217f7[_0x5f5706('0x2379')](_0x5f5706('0x1153')),_0x3a79cc['scrollTop'](0x0),_0x18a221[_0x5f5706('0xc44')](_0x5b22dc),_0x5b22dc['on'](_0x5f5706('0x22ad'),function(_0xcfedfa){_0x475208(_0xcfedfa),_0xa0ab56=!![];});}function _0x475208(_0x17358b){const _0x49a10b=_0x18cbdc;angular[_0x49a10b('0x2735')](_0x17358b)&&_0x17358b['preventDefault'](),_0x4c61a1[_0x49a10b('0x19df')](_0x49a10b('0x1ac3')),_0x3217f7[_0x49a10b('0x2379')]('msNav::expandMatchingToggles'),_0x18a221[_0x49a10b('0x20e8')](_0x5b22dc)['remove'](),_0x18a221[_0x49a10b('0x1734')]()['append'](_0x206be2),_0x206be2['on'](_0x49a10b('0x22ad'),function(_0xa9a0c7){_0x2bd039(_0xa9a0c7),_0xa0ab56=![];});}function _0x2bd039(_0x48dc24){const _0xd66018=_0x18cbdc;angular[_0xd66018('0x2735')](_0x48dc24)&&_0x48dc24[_0xd66018('0xf57')](),_0x3217f7['$broadcast'](_0xd66018('0x1153')),_0x3a79cc[_0xd66018('0x438')](0x0),_0x4c61a1['removeClass'](_0xd66018('0x1ac3')),_0x18a221[_0xd66018('0x1734')]()[_0xd66018('0x20e8')](_0x206be2)[_0xd66018('0x1a90')](),_0x18a221[_0xd66018('0xc44')](_0x5b22dc),_0x5b22dc['on']('mouseenter\x20touchstart',function(_0x2c9922){_0x475208(_0x2c9922),_0xa0ab56=!![];});}function _0x2547cf(){const _0x21908a=_0x18cbdc;_0x4c61a1[_0x21908a('0x817')](_0x21908a('0x214c')),_0x3217f7['$broadcast']('msNav::expandMatchingToggles'),_0x3a79cc['off'](_0x21908a('0x1e95'));}_0x1d28c4[_0x18cbdc('0x252c')]=_0xec2bb0,_0x1d28c4['openFolded']=_0x475208,_0x1d28c4[_0x18cbdc('0x20da')]=_0x2bd039,_0x1d28c4[_0x18cbdc('0x14d5')]=_0x22d349,_0x1d28c4[_0x18cbdc('0x651')](_0x18cbdc('0x26ac'),function(){const _0x4811f4=_0x18cbdc;_0x5b22dc['off'](_0x4811f4('0x22ad')),_0x206be2[_0x4811f4('0x938')](_0x4811f4('0x22ad')),_0x3a79cc[_0x4811f4('0x938')]('mouseenter\x20mouseleave');});}};}function _0x4a0626(){const _0x34013c=_0x34e79e,_0x543532=this;let _0x18897f=![];const _0x34489a=[];let _0x110a50=[];_0x543532[_0x34013c('0x18d9')]=_0x5604fa,_0x543532[_0x34013c('0x4e1')]=_0x4312d2,_0x543532[_0x34013c('0x734')]=_0x201abe,_0x543532[_0x34013c('0xbf2')]=_0x297a7c,_0x543532[_0x34013c('0x403')]=_0x5e3239,_0x543532[_0x34013c('0x6b6')]=_0x6b5a7d,_0x543532[_0x34013c('0x1eb9')]=_0x364f90;function _0x5604fa(){return _0x18897f;}function _0x201abe(){_0x18897f=!![];}function _0x4312d2(){_0x18897f=![];}function _0x297a7c(_0x360cab,_0x46dbeb){const _0x2a5539=_0x34013c;_0x34489a[_0x2a5539('0x13e3')]({'element':_0x360cab,'scope':_0x46dbeb});}function _0x5e3239(){return _0x110a50;}function _0x6b5a7d(_0x46b4d2,_0x9d895c){const _0x5c4a53=_0x34013c;_0x110a50[_0x5c4a53('0x13e3')]({'element':_0x46b4d2,'scope':_0x9d895c});}function _0x364f90(){_0x110a50=[];}}function _0x214a2b(_0x1ba410,_0x2a1174,_0x42f0d2){const _0x162ea2=_0x34e79e;return{'restrict':'E','scope':{},'controller':_0x162ea2('0x2a8'),'compile':function(_0x134b33){return _0x134b33['addClass']('ms-nav'),function _0x1bc02a(_0x3101a5){const _0x58ac16=a0_0x14e7;_0x1ba410['$broadcast'](_0x58ac16('0x2a0'));const _0x3e9baa=_0x1ba410[_0x58ac16('0x651')]('$stateChangeSuccess',function(){const _0x48de5b=_0x58ac16;_0x1ba410[_0x48de5b('0x2379')]('msNav::expandMatchingToggles'),_0x2a1174[_0x48de5b('0x1b8a')](_0x48de5b('0x24ce'))[_0x48de5b('0x2788')](function(_0x4e5a0a){const _0x1f7ed4=_0x48de5b;_0x4e5a0a[_0x1f7ed4('0x69f')](),_0x42f0d2[_0x1f7ed4('0x14d5')]()&&_0x42f0d2['closeFolded']();});});_0x3101a5[_0x58ac16('0x651')](_0x58ac16('0x26ac'),function(){_0x3e9baa();});};}};}function _0x3ec3db(){return{'restrict':'A','compile':function(_0x417944){const _0x4ea341=a0_0x14e7;return _0x417944['addClass'](_0x4ea341('0x1bfd')),function _0x326fd1(){};}};}function _0x4b4a63(){return{'restrict':'AE','compile':function(_0x4c399f){const _0xa6f441=a0_0x14e7;return _0x4c399f[_0xa6f441('0x19df')](_0xa6f441('0x273f')),function _0x29bf11(){};}};}function _0x56000d(_0x4f7637,_0x5b84b9,_0x27d372,_0x25be9e){const _0x2caeaa=_0x34e79e;return{'restrict':'A','require':_0x2caeaa('0x7ff'),'scope':!![],'compile':function(_0x25bc37,_0x16f499){const _0x2ae94a=_0x2caeaa;return _0x25bc37[_0x2ae94a('0x19df')](_0x2ae94a('0x6be')),angular[_0x2ae94a('0x1fcf')](_0x16f499[_0x2ae94a('0xfbc')])&&(_0x16f499['collapsed']=!![]),_0x25bc37[_0x2ae94a('0x13d7')](_0x2ae94a('0xfbc'),_0x16f499[_0x2ae94a('0xfbc')]),function _0x1b745a(_0x4cd7cc,_0x774b6f,_0x5d73a9,_0xd81ab9){const _0x50f51f=_0x2ae94a,_0x1088c1={'expanded':_0x50f51f('0xbae'),'expandAnimation':_0x50f51f('0x5bd'),'collapseAnimation':_0x50f51f('0x4df')},_0x45e699=_0x774b6f[_0x50f51f('0x20e8')]('a'),_0x268185=[],_0x150a68=/\(.*\)/g;angular[_0x50f51f('0x1534')](_0x45e699,function(_0x526d4a){const _0x30dae8=_0x50f51f;let _0x5d724b=angular[_0x30dae8('0x16b1')](_0x526d4a)['attr'](_0x30dae8('0x2148'));if(angular['isUndefined'](_0x5d724b))return;_0x5d724b=_0x5d724b[_0x30dae8('0x10a4')](_0x150a68,''),_0x268185[_0x30dae8('0x13e3')](_0x5d724b);}),_0xd81ab9['setToggleItem'](_0x774b6f,_0x4cd7cc),_0x774b6f[_0x50f51f('0x17e1')](_0x50f51f('0x1f09'))['on'](_0x50f51f('0x132a'),_0x184cfb);function _0x184cfb(){const _0x2d21e7=_0x50f51f;if(_0xd81ab9[_0x2d21e7('0x18d9')]())return;_0xd81ab9[_0x2d21e7('0x734')](),_0x2bcfd4()?(_0xd81ab9[_0x2d21e7('0x1eb9')](),_0x4cd7cc[_0x2d21e7('0xba')](_0x2d21e7('0xbe0')),_0x4f7637['$broadcast'](_0x2d21e7('0x1972')),_0x46beac()[_0x2d21e7('0x2788')](function(){const _0x479549=_0x2d21e7;_0xd81ab9[_0x479549('0x4e1')]();})):_0x4cd7cc[_0x2d21e7('0x2379')](_0x2d21e7('0x1153'));}_0x4cd7cc[_0x50f51f('0x651')]('$destroy',function(){const _0x1af8a6=_0x50f51f;_0x774b6f['children'](_0x1af8a6('0x1f09'))[_0x1af8a6('0x938')]('click');}),_0x4cd7cc['$on'](_0x50f51f('0x1972'),function(){const _0x361ea7=_0x50f51f,_0x13470e=_0xd81ab9['getLockedItems']();let _0x5a7792=![];angular[_0x361ea7('0x1534')](_0x13470e,function(_0x5ed205){const _0x3d11d2=_0x361ea7;angular[_0x3d11d2('0x2309')](_0x5ed205[_0x3d11d2('0x934')],_0x4cd7cc)&&(_0x5a7792=!![]);});if(_0x5a7792)return;_0x45e453()[_0x361ea7('0x2788')](function(){const _0x316579=_0x361ea7;_0xd81ab9[_0x316579('0x4e1')]();});}),_0x4cd7cc[_0x50f51f('0x651')](_0x50f51f('0x1153'),function(){_0x45e453()['then'](function(){const _0x3acc1c=a0_0x14e7;_0xd81ab9[_0x3acc1c('0x4e1')]();});}),_0x4cd7cc[_0x50f51f('0x651')]('msNav::expandMatchingToggles',function(){const _0x4534a3=_0x50f51f,_0x58a859=_0x25be9e['current'][_0x4534a3('0x1a8d')];let _0x54d9ad=![];angular[_0x4534a3('0x1534')](_0x268185,function(_0x3f7f03){_0x58a859===_0x3f7f03&&(_0x54d9ad=!![]);}),_0x54d9ad?_0x46beac():_0x45e453();}),_0x4cd7cc['$on'](_0x50f51f('0xbe0'),function(){const _0x2611c0=_0x50f51f;_0xd81ab9[_0x2611c0('0x6b6')](_0x774b6f,_0x4cd7cc);});function _0x2bcfd4(){const _0x2dfe7f=_0x50f51f;return _0x774b6f[_0x2dfe7f('0x13d7')](_0x2dfe7f('0xfbc'))===_0x2dfe7f('0x1001');}function _0x3c57b9(){return!_0x2bcfd4();}function _0x46beac(){const _0x501c7e=_0x50f51f,_0x439559=_0x5b84b9['defer']();if(_0x3c57b9())return _0x439559[_0x501c7e('0x9')]({'error':!![]}),_0x439559['promise'];_0x774b6f[_0x501c7e('0x13d7')]('collapsed',![]);const _0x1dfe2d=angular[_0x501c7e('0x16b1')](_0x774b6f['find'](_0x501c7e('0xa08'))[0x0]);_0x1dfe2d[_0x501c7e('0x1efb')]({'position':'absolute','visibility':_0x501c7e('0xf0'),'display':_0x501c7e('0x582'),'height':_0x501c7e('0x8a')});const _0x19709e=_0x1dfe2d[0x0][_0x501c7e('0x25e0')];return _0x1dfe2d[_0x501c7e('0x1efb')]({'position':'','visibility':'','display':'','height':''}),_0x4cd7cc[_0x501c7e('0x1737')](function(){const _0x1edf2f=_0x501c7e;_0x27d372[_0x1edf2f('0x314')](_0x1dfe2d,{'display':_0x1edf2f('0x582'),'height':_0x1edf2f('0x6ff')},{'height':_0x19709e+'px'},_0x1088c1['expandAnimation'])[_0x1edf2f('0x2788')](function(){const _0x59cb2e=_0x1edf2f;_0x1dfe2d[_0x59cb2e('0x19df')](_0x1088c1['expanded']),_0x1dfe2d[_0x59cb2e('0x1efb')]({'height':''}),_0x439559[_0x59cb2e('0x2322')]({'success':!![]});});}),_0x439559[_0x501c7e('0x1808')];}function _0x45e453(){const _0x2774ee=_0x50f51f,_0x5b530f=_0x5b84b9[_0x2774ee('0x2311')]();if(_0x2bcfd4())return _0x5b530f[_0x2774ee('0x9')]({'error':!![]}),_0x5b530f[_0x2774ee('0x1808')];_0x774b6f[_0x2774ee('0x13d7')]('collapsed',!![]);const _0x845c5b=angular[_0x2774ee('0x16b1')](_0x774b6f[_0x2774ee('0x20e8')](_0x2774ee('0xa08'))[0x0]),_0x4c88aa=_0x845c5b[0x0][_0x2774ee('0x25e0')];return _0x4cd7cc[_0x2774ee('0x1737')](function(){const _0x48cd5d=_0x2774ee;_0x27d372[_0x48cd5d('0x314')](_0x845c5b,{'height':_0x4c88aa+'px'},{'height':_0x48cd5d('0x6ff')},_0x1088c1[_0x48cd5d('0xdf5')])[_0x48cd5d('0x2788')](function(){const _0x1c43f6=_0x48cd5d;_0x845c5b[_0x1c43f6('0x817')](_0x1088c1[_0x1c43f6('0xbae')]),_0x845c5b['css']({'display':'','height':''}),_0x5b530f[_0x1c43f6('0x2322')]({'success':!![]});});}),_0x5b530f[_0x2774ee('0x1808')];}};}};}const _0x2fc6ef=_0x18dd13['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html',_0x4816e3=_0x18dd13['p']+_0x34e79e('0x599');_0x35639e['$inject']=[_0x34e79e('0x21e3')],_0x5693ea[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x14bb'),_0x34e79e('0x1ce0'),_0x34e79e('0x1382'),_0x34e79e('0x337')],_0x3106d8[_0x34e79e('0x2d9')]=[_0x34e79e('0x337')],_0x4e38e9[_0x34e79e('0x2d9')]=['$scope','$element',_0x34e79e('0x1ce0'),_0x34e79e('0xb95'),_0x34e79e('0x1382'),_0x34e79e('0x337')],_0x3e2eb9['$inject']=[_0x34e79e('0x1ce0'),_0x34e79e('0x446'),_0x34e79e('0x2179'),'msNavigationService'],_0x3999ce[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x337')];function _0x5bddc0(){const _0x206bb4=_0x34e79e,_0x13dbbb=angular[_0x206bb4('0x10c3')](['ng'])[_0x206bb4('0x1335')](_0x206bb4('0x1eec'));let _0x13f75a=[];const _0x24e120=this;_0x24e120[_0x206bb4('0x953')]=_0x6c8763,_0x24e120['deleteItem']=_0x2d9da0,_0x24e120[_0x206bb4('0xde4')]=_0x50c1fa;function _0x6c8763(_0x512fe9,_0x3a77af){const _0x37508e=_0x206bb4;if(!angular['isString'](_0x512fe9)){_0x13dbbb['error']('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0xf10049=_0x512fe9[_0x37508e('0x1497')]('.'),_0x56314c=_0xf10049[_0xf10049[_0x37508e('0x2566')]-0x1],_0x4afa78=_0x23dad0(_0xf10049);let _0x2efb70=![];for(let _0x4ec0bb=0x0;_0x4ec0bb<_0x4afa78[_0x37508e('0x2566')];_0x4ec0bb++){if(_0x4afa78[_0x4ec0bb][_0x37508e('0x19b8')]===_0x56314c){_0x2efb70=_0x4afa78[_0x4ec0bb];break;}}_0x2efb70?(angular['extend'](_0x2efb70,_0x3a77af),_0x2efb70[_0x37508e('0x127c')]=_0x21e7f9(_0x2efb70)):(_0x3a77af[_0x37508e('0x17e1')]=[],(angular[_0x37508e('0x1fcf')](_0x3a77af[_0x37508e('0x1880')])||!angular['isNumber'](_0x3a77af['weight']))&&(_0x3a77af[_0x37508e('0x1880')]=0x1),_0x3a77af[_0x37508e('0x19b8')]=_0x56314c,_0x3a77af['_path']=_0x512fe9,_0x3a77af[_0x37508e('0x127c')]=_0x21e7f9(_0x3a77af),_0x4afa78[_0x37508e('0x13e3')](_0x3a77af));}function _0x2d9da0(_0x37fe3d){const _0x2f7f30=_0x206bb4;if(!angular[_0x2f7f30('0x1660')](_0x37fe3d)){_0x13dbbb[_0x2f7f30('0x5e8')](_0x2f7f30('0xd86'));return;}let _0x33baa9=_0x13f75a;const _0x14b56a=_0x37fe3d[_0x2f7f30('0x1497')]('.');for(let _0x44a29f=0x0;_0x44a29f<_0x14b56a[_0x2f7f30('0x2566')];_0x44a29f++){const _0x2fed26=_0x14b56a[_0x44a29f];for(let _0x195fdd=0x0;_0x195fdd<_0x33baa9[_0x2f7f30('0x2566')];_0x195fdd++){if(_0x33baa9[_0x195fdd][_0x2f7f30('0x19b8')]===_0x2fed26){if(_0x33baa9[_0x195fdd][_0x2f7f30('0x1ca4')]===_0x37fe3d)return _0x33baa9[_0x2f7f30('0x722')](_0x195fdd,0x1),!![];_0x33baa9=_0x33baa9[_0x195fdd][_0x2f7f30('0x17e1')];break;}}}return![];}function _0x50c1fa(_0x2c6264){const _0x4ad5f1=_0x206bb4;!_0x2c6264&&(_0x2c6264=_0x13f75a,_0x2c6264[_0x4ad5f1('0x2119')](_0x4bf6f5));for(let _0x641233=0x0;_0x641233<_0x2c6264[_0x4ad5f1('0x2566')];_0x641233++){const _0x1e05a1=_0x2c6264[_0x641233]['children'];_0x1e05a1['length']>0x1&&_0x1e05a1[_0x4ad5f1('0x2119')](_0x4bf6f5),_0x1e05a1[_0x4ad5f1('0x2566')]>0x0&&_0x50c1fa(_0x1e05a1);}}function _0x23dad0(_0x15d07c){const _0x4185b7=_0x206bb4;let _0x37b410=_0x13f75a;if(_0x15d07c[_0x4185b7('0x2566')]===0x1)return _0x37b410;_0x15d07c[_0x4185b7('0xbeb')]();for(let _0x3986ae=0x0;_0x3986ae<_0x15d07c[_0x4185b7('0x2566')];_0x3986ae++){const _0x5816f1=_0x15d07c[_0x3986ae];let _0x441c43=!![];for(let _0x2b8b0f=0x0;_0x2b8b0f<_0x37b410[_0x4185b7('0x2566')];_0x2b8b0f++){if(_0x37b410[_0x2b8b0f]['_id']===_0x5816f1){_0x37b410=_0x37b410[_0x2b8b0f][_0x4185b7('0x17e1')],_0x441c43=![];break;}}if(_0x441c43){const _0xab1815={'_id':_0x5816f1,'_path':_0x15d07c['join']('.'),'title':_0x5816f1,'weight':0x1,'children':[]};_0x37b410[_0x4185b7('0x13e3')](_0xab1815),_0x37b410=_0xab1815[_0x4185b7('0x17e1')];}}return _0x37b410;}function _0x4bf6f5(_0x47d88e,_0x5c8784){const _0x469cae=_0x206bb4;return parseInt(_0x47d88e['weight'])-parseInt(_0x5c8784[_0x469cae('0x1880')]);}function _0x21e7f9(_0x28ce97){const _0x2b3c1a=_0x206bb4;let _0x7db6bd='';return angular[_0x2b3c1a('0x2735')](_0x28ce97[_0x2b3c1a('0x249b')])&&(_0x7db6bd=_0x28ce97['state'],angular[_0x2b3c1a('0x2735')](_0x28ce97['stateParams'])&&angular[_0x2b3c1a('0x19bc')](_0x28ce97[_0x2b3c1a('0x16a0')])&&(_0x7db6bd=_0x7db6bd+'('+angular[_0x2b3c1a('0x2385')](_0x28ce97[_0x2b3c1a('0x16a0')])+')')),_0x7db6bd;}this[_0x206bb4('0x1636')]=function(){let _0x3dfec8=null,_0x1e69f3=null,_0x5932dc=null,_0x596d8e=null;const _0x5eec79={'saveItem':_0x6c8763,'deleteItem':_0x2d9da0,'sort':_0x50c1fa,'clearNavigation':_0x55a3d4,'setActiveItem':_0x4ed968,'getActiveItem':_0x3c2279,'getNavigation':_0x27c914,'getFlatNavigation':_0x1d83d0,'setNavigationScope':_0x55791d,'setFolded':_0x405468,'getFolded':_0x255152,'setFoldedOpen':_0x128efc,'getFoldedOpen':_0x1050e,'toggleFolded':_0x4516ea};return _0x5eec79;function _0x55a3d4(){const _0x43ba38=a0_0x14e7;_0x13f75a=[],_0x1e69f3&&(_0x1e69f3['vm'][_0x43ba38('0x24ce')]=_0x13f75a);}function _0x4ed968(_0x11ece3,_0x522562){_0x3dfec8={'node':_0x11ece3,'scope':_0x522562};}function _0x3c2279(){return _0x3dfec8;}function _0x27c914(_0x226c49){const _0x3a6df8=a0_0x14e7;if(_0x226c49){for(let _0x29a733=0x0;_0x29a733<_0x13f75a[_0x3a6df8('0x2566')];_0x29a733++){if(_0x13f75a[_0x29a733][_0x3a6df8('0x19b8')]===_0x226c49)return[_0x13f75a[_0x29a733]];}return null;}return _0x13f75a;}function _0x1d83d0(_0x3d9db5){const _0x27aa31=_0x27c914(_0x3d9db5);return _0x1d0c5f(_0x27aa31);}function _0x55791d(_0x26f1f5){_0x1e69f3=_0x26f1f5;}function _0x405468(_0x4aaf9c){_0x5932dc=_0x4aaf9c;}function _0x255152(){return _0x5932dc;}function _0x128efc(_0x59dc67){_0x596d8e=_0x59dc67;}function _0x1050e(){return _0x596d8e;}function _0x4516ea(){const _0x14c4ee=a0_0x14e7;_0x1e69f3[_0x14c4ee('0x16b8')]();}function _0x1d0c5f(_0xb55c06){const _0x44b976=a0_0x14e7;let _0x11ac89=[];for(let _0x1136a5=0x0;_0x1136a5<_0xb55c06[_0x44b976('0x2566')];_0x1136a5++){const _0xf056af=angular['copy'](_0xb55c06[_0x1136a5]);_0xf056af[_0x44b976('0x17e1')]=[],_0x11ac89[_0x44b976('0x13e3')](_0xf056af),_0xb55c06[_0x1136a5][_0x44b976('0x17e1')][_0x44b976('0x2566')]>0x0&&(_0x11ac89=_0x11ac89[_0x44b976('0x1282')](_0x1d0c5f(_0xb55c06[_0x1136a5]['children'])));}return _0x11ac89;}};}function _0x3999ce(_0x382426,_0x2f8ae5){const _0x374ec1=_0x34e79e,_0x1eeea5=this;_0x382426[_0x374ec1('0x1618')]?_0x1eeea5[_0x374ec1('0x24ce')]=_0x2f8ae5['getNavigation'](_0x382426['root']):_0x1eeea5[_0x374ec1('0x24ce')]=_0x2f8ae5[_0x374ec1('0x276d')]();_0x1eeea5[_0x374ec1('0x1d4b')]=_0x38daf9,_0x420ccb();function _0x420ccb(){const _0x50dbf8=_0x374ec1;_0x2f8ae5[_0x50dbf8('0x2119')]();}function _0x38daf9(){const _0x4b0da7=_0x374ec1;angular['element'](_0x4b0da7('0x945'))[_0x4b0da7('0x14d3')]('ms-navigation-horizontal-mobile-menu-active');}}function _0x3e2eb9(_0x1852cc,_0x3306ed,_0x4b0f42,_0x357586){const _0x53d409=_0x34e79e;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x53d409('0x5b4'),'templateUrl':_0x4816e3,'transclude':!![],'compile':function(_0x3dccbf){const _0x5ad066=_0x53d409;return _0x3dccbf[_0x5ad066('0x19df')](_0x5ad066('0x145e')),function _0xd594ce(_0x3a1477,_0x41cc44){const _0x3f8fb3=_0x5ad066,_0x3f23a9=angular['element'](_0x3f8fb3('0x945')),_0x2154ce=angular['element'](_0x3f8fb3('0x1faf')),_0x34546f=angular[_0x3f8fb3('0x16b1')](''),_0x29489e=_0x4b0f42(_0x3f8fb3('0x24ce'));_0x357586[_0x3f8fb3('0x21f6')](_0x3a1477),_0x1ebb41();function _0x1ebb41(){const _0xcf6666=_0x3f8fb3;_0x357586[_0xcf6666('0xbac')]()===null&&_0x357586['setFolded'](_0x3a1477[_0xcf6666('0xa3f')]),_0x357586[_0xcf6666('0xbac')]()&&(_0x3306ed(function(){_0x1852cc['$broadcast']('msNavigation::collapse');}),_0x3f23a9[_0xcf6666('0x19df')](_0xcf6666('0x10be')),_0x2582ba());}_0x3a1477[_0x3f8fb3('0x1662')](function(){const _0x566249=_0x3f8fb3;return _0x29489e[_0x566249('0x1bbd')]();},function(_0x346bd4,_0x284e6e){const _0x52bda8=_0x3f8fb3;if(angular[_0x52bda8('0x1fcf')](_0x346bd4)||angular[_0x52bda8('0x2309')](_0x346bd4,_0x284e6e))return;const _0x3a2649=_0x357586[_0x52bda8('0xbac')]();if(_0x3a2649){if(_0x346bd4)_0x1852cc['$broadcast'](_0x52bda8('0x25b0'));else{const _0x169c9a=_0x357586[_0x52bda8('0x15d0')]();_0x169c9a&&_0x169c9a['scope'][_0x52bda8('0xba')]('msNavigation::stateMatched');}}}),_0x3a1477['$watch'](_0x3f8fb3('0xa3f'),function(_0xcbd680,_0x57ee36){const _0x47974e=_0x3f8fb3;if(angular[_0x47974e('0x1fcf')](_0xcbd680)||angular[_0x47974e('0x2309')](_0xcbd680,_0x57ee36))return;_0x3465ff(_0xcbd680);});function _0x3465ff(_0xfb83bd){const _0x1ddf1b=_0x3f8fb3;_0x357586[_0x1ddf1b('0x17c0')](_0xfb83bd);if(_0xfb83bd)_0x1852cc[_0x1ddf1b('0x2379')](_0x1ddf1b('0x25b0')),_0x3f23a9[_0x1ddf1b('0x19df')](_0x1ddf1b('0x10be')),_0x2582ba();else{const _0x392946=_0x357586[_0x1ddf1b('0x15d0')]();_0x392946&&_0x392946[_0x1ddf1b('0x934')][_0x1ddf1b('0xba')]('msNavigation::stateMatched'),_0x3f23a9[_0x1ddf1b('0x817')](_0x1ddf1b('0x4b5')),_0xb0af93();}}function _0x2582ba(){const _0x42351a=_0x3f8fb3;_0x41cc44[_0x42351a('0x1734')]()[_0x42351a('0xc44')](_0x2154ce),_0x3306ed(function(){const _0x506e2b=_0x42351a;_0x2154ce['on'](_0x506e2b('0x22ad'),_0x52f758);});}function _0xc99949(){const _0xb38e82=_0x3f8fb3;_0x3f23a9['find'](_0xb38e82('0xd95'))['append'](_0x34546f),_0x34546f['on']('mouseenter\x20touchstart',_0x17c46e);}function _0xb0af93(){const _0x56c312=_0x3f8fb3;_0x34546f[_0x56c312('0x1a90')]();}function _0x52f758(_0x39831a){const _0x19744b=_0x3f8fb3;_0x39831a&&_0x39831a['preventDefault']();_0x357586[_0x19744b('0xbde')](!![]);const _0x31c240=_0x357586[_0x19744b('0x15d0')]();_0x31c240&&_0x31c240['scope'][_0x19744b('0xba')](_0x19744b('0x24af')),_0x3f23a9[_0x19744b('0x19df')](_0x19744b('0x21e7')),_0x2154ce[_0x19744b('0x1a90')](),_0xc99949();}function _0x17c46e(_0x59edfb){const _0xa1e467=_0x3f8fb3;_0x59edfb&&_0x59edfb['preventDefault'](),_0x357586[_0xa1e467('0xbde')](![]),_0x1852cc[_0xa1e467('0x2379')](_0xa1e467('0x25b0')),_0x3f23a9[_0xa1e467('0x817')]('ms-navigation-folded-open'),_0x34546f[_0xa1e467('0x1a90')](),_0x2582ba();}_0x3a1477[_0x3f8fb3('0x16b8')]=function(){const _0x298c2f=_0x3f8fb3,_0x4e79cd=_0x357586[_0x298c2f('0xbac')]();_0x3465ff(!_0x4e79cd);},_0x3a1477['$on'](_0x3f8fb3('0x99d'),function(){const _0x68732a=_0x3f8fb3;_0x29489e[_0x68732a('0x69f')]();}),_0x3a1477[_0x3f8fb3('0x651')](_0x3f8fb3('0x26ac'),function(){const _0x25c789=_0x3f8fb3;_0x34546f[_0x25c789('0x938')](_0x25c789('0x22ad')),_0x2154ce['off'](_0x25c789('0x22ad'));});};}};}function _0x4e38e9(_0x341ca1,_0x1887dc,_0x10b2d2,_0x32bd2c,_0x1250ae,_0x534771){const _0xd43181=_0x34e79e,_0x40af53=this;_0x40af53['element']=_0x1887dc,_0x40af53[_0xd43181('0x1059')]=_0x341ca1[_0xd43181('0x1059')],_0x40af53[_0xd43181('0x20c1')]=undefined,_0x40af53[_0xd43181('0xfbc')]=undefined,_0x40af53[_0xd43181('0x101')]=undefined,_0x40af53['group']=undefined,_0x40af53[_0xd43181('0x1d6a')]=_0xd43181('0x848'),_0x40af53[_0xd43181('0xa64')]=_0x5351bd,_0x40af53[_0xd43181('0x1fd1')]=_0x58eeb4,_0x40af53['expand']=_0x495070,_0x40af53[_0xd43181('0x12cc')]=_0x1f49a4,_0x40af53[_0xd43181('0x13c8')]=_0xde0153,_0x1781c2();function _0x1781c2(){const _0x6ec8cb=_0xd43181;_0x40af53['hasChildren']=_0x40af53[_0x6ec8cb('0x1059')]['children'][_0x6ec8cb('0x2566')]>0x0,_0x40af53['group']=!!(angular[_0x6ec8cb('0x2735')](_0x40af53[_0x6ec8cb('0x1059')]['group'])&&_0x40af53[_0x6ec8cb('0x1059')]['group']===!![]);!_0x40af53[_0x6ec8cb('0x20c1')]||_0x40af53[_0x6ec8cb('0x20ce')]?_0x40af53['collapsable']=![]:_0x40af53[_0x6ec8cb('0x101')]=!!(angular[_0x6ec8cb('0x1fcf')](_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0x101')])||typeof _0x40af53[_0x6ec8cb('0x1059')]['collapsable']!=='boolean'||_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0x101')]===!![]);!_0x40af53[_0x6ec8cb('0x101')]?_0x40af53['collapsed']=![]:_0x40af53['collapsed']=!!(angular['isUndefined'](_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0xfbc')])||typeof _0x40af53[_0x6ec8cb('0x1059')]['collapsed']!==_0x6ec8cb('0xea')||_0x40af53['node']['collapsed']===!![]);if(_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0x249b')]===_0x1250ae[_0x6ec8cb('0x1c7f')][_0x6ec8cb('0x1a8d')]||_0x1250ae[_0x6ec8cb('0x1d4e')](_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0x249b')])){if(angular[_0x6ec8cb('0x2735')](_0x40af53[_0x6ec8cb('0x1059')][_0x6ec8cb('0x16a0')])&&angular[_0x6ec8cb('0x2735')](_0x1250ae['params'])&&!angular[_0x6ec8cb('0x2309')](_0x40af53['node'][_0x6ec8cb('0x16a0')],_0x1250ae[_0x6ec8cb('0x4b9')]))return;_0x341ca1[_0x6ec8cb('0xba')]('msNavigation::stateMatched'),_0x534771[_0x6ec8cb('0x25a6')](_0x40af53['node'],_0x341ca1);}_0x341ca1[_0x6ec8cb('0x651')](_0x6ec8cb('0x24af'),function(){const _0xd0b3=_0x6ec8cb;_0x40af53[_0xd0b3('0x101')]&&_0x40af53['collapsed']&&_0x341ca1[_0xd0b3('0x1737')](function(){const _0x27adfb=_0xd0b3;_0x40af53[_0x27adfb('0xfbc')]=![];});}),_0x341ca1[_0x6ec8cb('0x651')](_0x6ec8cb('0x25b0'),function(_0x2b0da9,_0x42dcfe){const _0x2a4cad=_0x6ec8cb;if(_0x40af53['collapsed']||!_0x40af53['collapsable'])return;if(angular['isUndefined'](_0x42dcfe))_0x40af53[_0x2a4cad('0x1fd1')]();else{const _0x59e657=_0x42dcfe['split']('.');let _0xf186f=[];const _0x50a49f=_0x534771['getActiveItem']();_0x50a49f&&(_0xf186f=_0x50a49f[_0x2a4cad('0x1059')]['_path'][_0x2a4cad('0x1497')]('.'));if(_0x59e657[_0x2a4cad('0x821')](_0x40af53['node']['_id'])>-0x1)return;if(_0xf186f['indexOf'](_0x40af53[_0x2a4cad('0x1059')]['_id'])>-0x1)return;_0x40af53[_0x2a4cad('0x1fd1')]();}}),_0x341ca1[_0x6ec8cb('0x651')]('$stateChangeSuccess',function(){const _0x176f1c=_0x6ec8cb;if(_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x249b')]===_0x1250ae[_0x176f1c('0x1c7f')][_0x176f1c('0x1a8d')]){if(angular[_0x176f1c('0x2735')](_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x16a0')])&&angular[_0x176f1c('0x2735')](_0x1250ae[_0x176f1c('0x4b9')])&&!angular['equals'](_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x16a0')],_0x1250ae[_0x176f1c('0x4b9')]))return;_0x534771['setActiveItem'](_0x40af53['node'],_0x341ca1),_0x10b2d2[_0x176f1c('0x2379')](_0x176f1c('0x25b0'),_0x40af53['node'][_0x176f1c('0x1ca4')]);}if(_0x1250ae[_0x176f1c('0x1d4e')](_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x249b')])){if(angular['isDefined'](_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x16a0')])&&angular[_0x176f1c('0x2735')](_0x1250ae['params'])&&!angular['equals'](_0x40af53[_0x176f1c('0x1059')][_0x176f1c('0x16a0')],_0x1250ae[_0x176f1c('0x4b9')]))return;_0x341ca1['$emit'](_0x176f1c('0x24af'));}});}function _0x5351bd(){_0x40af53['collapsed']?_0x40af53['expand']():_0x40af53['collapse']();}function _0x58eeb4(){const _0x3b448a=_0xd43181,_0x3551a8=_0x40af53['element'][_0x3b448a('0x17e1')]('ul'),_0x5dffa1=_0x3551a8[0x0]['offsetHeight'];_0x341ca1[_0x3b448a('0x1737')](function(){const _0x4ebef9=_0x3b448a;_0x40af53['collapsed']=!![],_0x40af53[_0x4ebef9('0x16b1')][_0x4ebef9('0x19df')](_0x4ebef9('0x2650')),_0x32bd2c[_0x4ebef9('0x314')](_0x3551a8,{'display':_0x4ebef9('0x582'),'height':_0x5dffa1+'px'},{'height':_0x4ebef9('0x6ff')},_0x40af53[_0x4ebef9('0x1d6a')])[_0x4ebef9('0x2788')](function(){const _0x31ecb8=_0x4ebef9;_0x3551a8['css']({'display':'','height':''}),_0x40af53[_0x31ecb8('0x16b1')][_0x31ecb8('0x817')](_0x31ecb8('0x2650'));}),_0x341ca1[_0x4ebef9('0x2379')](_0x4ebef9('0x25b0'));});}function _0x495070(){const _0x57945e=_0xd43181,_0x3711cd=_0x40af53[_0x57945e('0x16b1')][_0x57945e('0x17e1')]('ul');_0x3711cd['css']({'position':_0x57945e('0xa9d'),'visibility':_0x57945e('0xf0'),'display':_0x57945e('0x582'),'height':_0x57945e('0x8a')});const _0x3a599a=_0x3711cd[0x0][_0x57945e('0x25e0')];_0x3711cd[_0x57945e('0x1efb')]({'position':'','visibility':'','display':'','height':''}),_0x341ca1[_0x57945e('0x1737')](function(){const _0x2c9e8d=_0x57945e;_0x40af53[_0x2c9e8d('0xfbc')]=![],_0x40af53[_0x2c9e8d('0x16b1')][_0x2c9e8d('0x19df')](_0x2c9e8d('0xf44')),_0x32bd2c['animate'](_0x3711cd,{'display':'block','height':_0x2c9e8d('0x6ff')},{'height':_0x3a599a+'px'},_0x40af53[_0x2c9e8d('0x1d6a')])[_0x2c9e8d('0x2788')](function(){const _0x5a01ee=_0x2c9e8d;_0x3711cd[_0x5a01ee('0x1efb')]({'height':''}),_0x40af53[_0x5a01ee('0x16b1')][_0x5a01ee('0x817')]('expanding');}),_0x10b2d2[_0x2c9e8d('0x2379')]('msNavigation::collapse',_0x40af53[_0x2c9e8d('0x1059')][_0x2c9e8d('0x1ca4')]);});}function _0x1f49a4(){const _0x18a5da=_0xd43181;return _0x40af53[_0x18a5da('0x1059')]['class'];}function _0xde0153(){const _0x275629=_0xd43181;if(angular[_0x275629('0x2735')](_0x40af53['node'][_0x275629('0xf0')])&&angular['isFunction'](_0x40af53[_0x275629('0x1059')][_0x275629('0xf0')]))return _0x40af53[_0x275629('0x1059')]['hidden']();return![];}}function _0x12e918(){const _0x24b342=_0x34e79e;return{'restrict':'A','bindToController':{'node':_0x24b342('0x1ed1')},'controller':_0x24b342('0x2828'),'compile':function(_0x46810f){const _0x4ca979=_0x24b342;return _0x46810f[_0x4ca979('0x19df')](_0x4ca979('0x2593')),function _0x29bac2(_0x417744,_0x2c91a4,_0xbf489f,_0x217e91){const _0x44b4d9=_0x4ca979;_0x2c91a4[_0x44b4d9('0x19df')](_0x217e91[_0x44b4d9('0x12cc')]()),_0x217e91[_0x44b4d9('0x20ce')]&&_0x2c91a4[_0x44b4d9('0x19df')]('group');};}};}function _0x2eb249(){return{'restrict':'A','require':'^msNavigationNode','compile':function(_0x997dda){const _0x4c3579=a0_0x14e7;return _0x997dda[_0x4c3579('0x19df')](_0x4c3579('0x1f75')),function _0x4235ad(_0x261cb0,_0x2cbf45,_0x384376,_0x4b36ee){const _0x388fca=_0x4c3579;_0x4b36ee[_0x388fca('0x101')]&&_0x2cbf45['on'](_0x388fca('0x132a'),_0x4b36ee['toggleCollapsed']),_0x261cb0[_0x388fca('0x651')](_0x388fca('0x26ac'),function(){const _0x4b8cb9=_0x388fca;_0x2cbf45[_0x4b8cb9('0x938')](_0x4b8cb9('0x132a'));});};}};}function _0x3106d8(_0x4812a6){return{'restrict':'E','scope':{'root':'@'},'controller':'MsNavigationController\x20as\x20vm','templateUrl':_0x2fc6ef,'transclude':!![],'compile':function(_0xac3d32){const _0x54ccaf=a0_0x14e7;return _0xac3d32[_0x54ccaf('0x19df')](_0x54ccaf('0x19e8')),function _0x405106(_0x47b2d9){const _0x5f0d71=_0x54ccaf;_0x4812a6[_0x5f0d71('0x21f6')](_0x47b2d9);};}};}function _0x5693ea(_0x36a6d8,_0x38b418,_0x53bbdd,_0x5e2cf7,_0x3c116b){const _0x435fad=_0x34e79e,_0x54dace=this;_0x54dace[_0x435fad('0x16b1')]=_0x38b418,_0x54dace[_0x435fad('0x1059')]=_0x36a6d8[_0x435fad('0x1059')],_0x54dace[_0x435fad('0x20c1')]=undefined,_0x54dace[_0x435fad('0x20ce')]=undefined,_0x54dace['getClass']=_0x569e91,_0x48ea5b();function _0x48ea5b(){const _0x5838e2=_0x435fad;_0x54dace[_0x5838e2('0x18a4')]=![],_0x54dace[_0x5838e2('0x20c1')]=_0x54dace[_0x5838e2('0x1059')][_0x5838e2('0x17e1')][_0x5838e2('0x2566')]>0x0,_0x54dace[_0x5838e2('0x20ce')]=!!(angular[_0x5838e2('0x2735')](_0x54dace['node'][_0x5838e2('0x20ce')])&&_0x54dace[_0x5838e2('0x1059')][_0x5838e2('0x20ce')]===!![]);if(_0x54dace[_0x5838e2('0x1059')][_0x5838e2('0x249b')]===_0x5e2cf7[_0x5838e2('0x1c7f')][_0x5838e2('0x1a8d')]||_0x5e2cf7[_0x5838e2('0x1d4e')](_0x54dace['node'][_0x5838e2('0x249b')])){if(angular['isDefined'](_0x54dace[_0x5838e2('0x1059')][_0x5838e2('0x16a0')])&&angular['isDefined'](_0x5e2cf7[_0x5838e2('0x4b9')])&&!angular[_0x5838e2('0x2309')](_0x54dace[_0x5838e2('0x1059')][_0x5838e2('0x16a0')],_0x5e2cf7[_0x5838e2('0x4b9')]))return;_0x36a6d8[_0x5838e2('0xba')](_0x5838e2('0x24af')),_0x3c116b[_0x5838e2('0x25a6')](_0x54dace['node'],_0x36a6d8);}_0x36a6d8['$on'](_0x5838e2('0x24af'),function(){const _0x359b9b=_0x5838e2;_0x54dace[_0x359b9b('0x20c1')]&&_0x36a6d8[_0x359b9b('0x1737')](function(){_0x54dace['isActive']=!![];});}),_0x36a6d8[_0x5838e2('0x651')](_0x5838e2('0x16a2'),function(){const _0x3b608f=_0x5838e2;if(!_0x54dace[_0x3b608f('0x20c1')])return;let _0x2e6c00=[];const _0x5f4ced=_0x3c116b[_0x3b608f('0x15d0')]();_0x5f4ced&&(_0x2e6c00=_0x5f4ced[_0x3b608f('0x1059')][_0x3b608f('0x1ca4')][_0x3b608f('0x1497')]('.')),_0x2e6c00[_0x3b608f('0x821')](_0x54dace['node'][_0x3b608f('0x19b8')])>-0x1?_0x36a6d8[_0x3b608f('0x1737')](function(){const _0x5032ff=_0x3b608f;_0x54dace[_0x5032ff('0x18a4')]=!![];}):_0x36a6d8[_0x3b608f('0x1737')](function(){const _0x5929bc=_0x3b608f;_0x54dace[_0x5929bc('0x18a4')]=![];});}),_0x36a6d8[_0x5838e2('0x651')](_0x5838e2('0x1ac6'),function(){const _0x3031fc=_0x5838e2;if(_0x54dace[_0x3031fc('0x1059')][_0x3031fc('0x249b')]===_0x5e2cf7[_0x3031fc('0x1c7f')][_0x3031fc('0x1a8d')]||_0x5e2cf7[_0x3031fc('0x1d4e')](_0x54dace['node'][_0x3031fc('0x249b')])){if(angular[_0x3031fc('0x2735')](_0x54dace[_0x3031fc('0x1059')]['stateParams'])&&angular['isDefined'](_0x5e2cf7[_0x3031fc('0x4b9')])&&!angular[_0x3031fc('0x2309')](_0x54dace['node'][_0x3031fc('0x16a0')],_0x5e2cf7['params']))return;_0x3c116b[_0x3031fc('0x25a6')](_0x54dace[_0x3031fc('0x1059')],_0x36a6d8),_0x53bbdd[_0x3031fc('0x2379')]('msNavigation::clearActive');}});}function _0x569e91(){const _0x1a00fd=_0x435fad;return _0x54dace[_0x1a00fd('0x1059')][_0x1a00fd('0x9a2')];}}function _0x4af0c6(){const _0x48fbb9=_0x34e79e;return{'restrict':'A','bindToController':{'node':_0x48fbb9('0x2156')},'controller':_0x48fbb9('0xe13'),'compile':function(_0x424455){const _0x3801d0=_0x48fbb9;return _0x424455[_0x3801d0('0x19df')](_0x3801d0('0x1f90')),function _0x40c9d6(_0x1b0767,_0x5497a9,_0x189482,_0x4b4128){const _0x2d3de8=_0x3801d0;_0x5497a9['addClass'](_0x4b4128[_0x2d3de8('0x12cc')]()),_0x4b4128[_0x2d3de8('0x20ce')]&&_0x5497a9[_0x2d3de8('0x19df')]('group');};}};}function _0x35639e(_0x2e6030){const _0xc7e0b8=_0x34e79e;return{'restrict':'A','require':_0xc7e0b8('0xcdc'),'compile':function(_0x22e19e){const _0xe67fb3=_0xc7e0b8;return _0x22e19e[_0xe67fb3('0x19df')](_0xe67fb3('0x8fd')),function _0x5d9ed5(_0x2c5aa5,_0x19a36c,_0xcf512c,_0x8a708d){const _0x4121a9=_0xe67fb3;_0x19a36c['on']('click',_0x4e2baa);function _0x4e2baa(){const _0x21a9cb=a0_0x14e7;if(!_0x8a708d[_0x21a9cb('0x20c1')]||_0x2e6030(_0x21a9cb('0x2195')))return;_0x19a36c[_0x21a9cb('0x14d3')]('expanded');}_0x2c5aa5['$on'](_0x4121a9('0x26ac'),function(){const _0x3c4a42=_0x4121a9;_0x19a36c[_0x3c4a42('0x938')](_0x3c4a42('0x132a'));});};}};}const _0x30cff4=_0x18dd13['p']+_0x34e79e('0x2797'),_0x5d829d=_0x18dd13['p']+_0x34e79e('0x143a'),_0x5e0cad=_0x18dd13['p']+_0x34e79e('0xa39'),_0x174292=_0x18dd13['p']+_0x34e79e('0xa6c');var _0x37ba63=_0x18dd13(0x175b),_0x71a1ae=_0x18dd13['n'](_0x37ba63),_0x210732=_0x18dd13(0x26ba),_0x5deb4f=_0x18dd13['n'](_0x210732);_0x4db3a1['$inject']=['$scope',_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x16e3'),'$mdDialog',_0x34e79e('0x1b5e'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),'$http','toasty',_0x34e79e('0x519'),_0x34e79e('0x12ff'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x4db3a1(_0x2071ea,_0x300cbc,_0x3ee5a1,_0x1ff82b,_0xf4e4b0,_0x4bd35a,_0x5089b9,_0x261eb8,_0x4f3a31,_0x19b1bc,_0x2a91ca,_0x1beec9,_0x27fdb2,_0x53e8d1){const _0x182a5e=_0x34e79e,_0xfa1d09=this,_0x12b9e5=window[_0x182a5e('0x1c70')];_0xfa1d09[_0x182a5e('0x946')]=_0x2a91ca['baseUrl'],_0xfa1d09['conf']=_0x2071ea[_0x182a5e('0x7d0')]['vm']['conf'];const _0xcbf0da=[_0x182a5e('0xd07'),'speakerId',_0x182a5e('0x1af5'),_0x182a5e('0x351'),_0x182a5e('0x1859'),_0x182a5e('0x14d6'),_0x182a5e('0x2232'),_0x182a5e('0xf67'),_0x182a5e('0xce7')],_0x166a88=_0xfa1d09[_0x182a5e('0x5f9')]&&JSON[_0x182a5e('0xe0b')](_0x5089b9[_0x182a5e('0x155e')][_0x182a5e('0xced')]('motion2.user:'+_0xfa1d09[_0x182a5e('0x5f9')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x1ff82b(function(){},0x3e7),_0xfa1d09[_0x182a5e('0x7c3')]=_0x182a5e('0x6ec'),_0xfa1d09[_0x182a5e('0x11aa')]='md-scale',_0xfa1d09[_0x182a5e('0x159c')]='',_0xfa1d09[_0x182a5e('0x7de')]=![],_0xfa1d09['soundPlayer']=document['createElement']('audio'),_0xfa1d09[_0x182a5e('0x120e')]=document[_0x182a5e('0x1b0c')](_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x20ee')]),_0xfa1d09[_0x182a5e('0x1a51')][_0x182a5e('0x38c')]=0x1,_0xfa1d09[_0x182a5e('0x2414')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0xfa1d09[_0x182a5e('0x1020')]=[],_0xfa1d09[_0x182a5e('0x565')]=[],_0xfa1d09['callbackQueue']=[],_0xfa1d09[_0x182a5e('0x193c')]=![],_0xfa1d09[_0x182a5e('0x118b')]=![],_0xfa1d09[_0x182a5e('0xb45')]=[],_0xfa1d09['ua']=new(_0x71a1ae())['UA']({'sockets':[new(_0x71a1ae())[(_0x182a5e('0x1eb0'))]('wss://'+_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x1c6a')]+_0x182a5e('0xac2'))],'uri':new(_0x71a1ae())[(_0x182a5e('0x1be8'))](_0x182a5e('0xa05'),_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x1a8d')],_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x1c6a')],0x13c4,null,null)[_0x182a5e('0x17df')](),'authorization_user':_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x1a8d')],'ha1':_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0x724')],'realm':_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0xc93')],'user_agent':_0xfa1d09[_0x182a5e('0x5f9')]['ua'],'session_timers_refresh_method':_0x182a5e('0x1b5d'),'register_expires':_0xfa1d09[_0x182a5e('0x5f9')][_0x182a5e('0xf24')]||0x3c,'register':!![]}),_0xfa1d09[_0x182a5e('0x5f9')]=_0x283545()[_0x182a5e('0x2503')](_0x166a88[_0x182a5e('0x1d98')],_0xfa1d09[_0x182a5e('0x5f9')]),_0xfa1d09[_0x182a5e('0x1dcf')]=![],_0xfa1d09[_0x182a5e('0x1478')]=![],_0xfa1d09['isJabraInitialized']=![],_0xfa1d09[_0x182a5e('0x22db')]=null,_0xfa1d09[_0x182a5e('0xe5f')]=![],_0xfa1d09['buttonClicked']=![],_0xfa1d09[_0x182a5e('0x1d53')]=![];function _0x1586f0(){const _0x413c4b=_0x182a5e;_0x6b94d(![]),navigator['mediaDevices'][_0x413c4b('0x1af7')]=function(){const _0x50b9a1=_0x413c4b;!_0xfa1d09[_0x50b9a1('0x1dcf')]&&(_0xfa1d09[_0x50b9a1('0x1dcf')]=!![],_0x12b9e5&&_0xfa1d09[_0x50b9a1('0x1553')]?_0x12b9e5[_0x50b9a1('0x1a1')]()[_0x50b9a1('0x2788')](function(){const _0x46f925=_0x50b9a1;_0xfa1d09[_0x46f925('0x1553')]=![],_0xfa1d09['isJabraEnabled']=![],_0x6b94d(!![]);})[_0x50b9a1('0x1cb5')](function(_0x186d07){const _0x4ce4a7=_0x50b9a1;console[_0x4ce4a7('0x5e8')]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x186d07);}):_0x6b94d(!![]));};const _0x5b6a7f=[_0x2a91ca['network'][_0x413c4b('0x1335')]({'type':'turn','nolimit':!![]})[_0x413c4b('0x1714')],_0x2a91ca[_0x413c4b('0x689')]['get']({'type':_0x413c4b('0x1105'),'nolimit':!![]})[_0x413c4b('0x1714')]];Promise['all'](_0x5b6a7f)[_0x413c4b('0x2788')](function(_0x359828){const _0x311093=_0x413c4b,_0x1d7e87=_0x359828[0x0][_0x311093('0x25df')],_0x1114c6=_0x359828[0x1]['rows'],_0x335db6=[],_0x1c2e92=[];_0x1114c6[_0x311093('0x1534')](function(_0xd2b852){const _0xe4b062=_0x311093;_0x1c2e92[_0xe4b062('0x13e3')](_0xe4b062('0x223a')+_0xd2b852[_0xe4b062('0x49')]);}),_0x335db6[_0x311093('0x13e3')]({'urls':_0x1c2e92}),_0x1d7e87[_0x311093('0x1534')](function(_0x268c8c){const _0x40ea2e=_0x311093,_0x44d272={'urls':'turn:'+_0x268c8c['value']};_0x268c8c[_0x40ea2e('0x2056')]&&(_0x44d272[_0x40ea2e('0x2056')]=_0x268c8c[_0x40ea2e('0x2056')]),_0x268c8c['password']&&(_0x44d272[_0x40ea2e('0x1a1c')]=_0x268c8c[_0x40ea2e('0xad8')]),_0x335db6[_0x40ea2e('0x13e3')](_0x44d272);}),_0xfa1d09[_0x311093('0x2414')]['pcConfig']={'iceServers':_0x335db6};}),this['ua']['on']('registered',_0x14f002[_0x413c4b('0x1a20')](this)),this['ua']['on'](_0x413c4b('0x1d99'),_0x53584c[_0x413c4b('0x1a20')](this)),this['ua']['on'](_0x413c4b('0x1c8d'),_0x13678b[_0x413c4b('0x1a20')](this)),_0x53e8d1['on']('webbar:originate',_0x11ffdd[_0x413c4b('0x1a20')](this)),_0x53e8d1['on'](_0x413c4b('0x1d85'),_0x25c071[_0x413c4b('0x1a20')](this)),_0x53e8d1['on'](_0x413c4b('0x1e66'),_0xca9c3b[_0x413c4b('0x1a20')](this)),_0x53e8d1['on'](_0x413c4b('0xf09'),_0xb55db7[_0x413c4b('0x1a20')](this)),_0x53e8d1['on'](_0x413c4b('0x5c2'),_0x22ced5[_0x413c4b('0x1a20')](this)),_0x53e8d1['on'](_0x413c4b('0x1a'),_0x493caf[_0x413c4b('0x1a20')](this));}function _0x6b94d(_0x45a8c4){const _0x569bb5=_0x182a5e;let _0x4904b1,_0x4d9a89,_0x5e5560;return _0xfa1d09[_0x569bb5('0x1dcf')]=!![],navigator[_0x569bb5('0x168f')][_0x569bb5('0x1533')]({'audio':!![]})[_0x569bb5('0x2788')](function(_0xf59080){const _0x4512de=_0x569bb5;return _0xf59080[_0x4512de('0x1387')]()['forEach'](function(_0x46ac83){const _0x576957=_0x4512de;_0x46ac83[_0x576957('0x13b7')]();}),navigator[_0x4512de('0x168f')]['enumerateDevices']();})['then'](function(_0x34ef3a){const _0x124375=_0x569bb5,_0x421cee=_0x283545()[_0x124375('0x916')](_0x34ef3a,function(_0x3d2c33){const _0x531438=_0x124375;return _0x3d2c33['kind']==='audioinput'&&_0x3d2c33[_0x531438('0x747')]!==_0x531438('0x1c15')&&_0x3d2c33[_0x531438('0x747')]!=='communications';});if(_0x421cee['length']>0x0){const _0x2520c4=_0x283545()[_0x124375('0x20e8')](_0x34ef3a,function(_0x505eb7){const _0x3efd1e=_0x124375;return _0x505eb7[_0x3efd1e('0x747')]==='default'&&_0x505eb7['kind']===_0x3efd1e('0x1757');});_0x5e5560=_0x283545()['find'](_0x421cee,function(_0x45da60){const _0x53491a=_0x124375;return _0x45da60[_0x53491a('0x366')]===_0x2520c4[_0x53491a('0x366')];});if(_0xfa1d09[_0x124375('0x5f9')][_0x124375('0x1af5')]&&!_0x45a8c4){const _0x4ca8fa=_0x283545()['find'](_0x421cee,function(_0x24cbb4){const _0x42c231=_0x124375;return _0x24cbb4[_0x42c231('0x747')]===_0xfa1d09[_0x42c231('0x5f9')]['microphoneId'];});_0x4ca8fa&&(_0x5e5560=_0x4ca8fa);}_0xfa1d09[_0x124375('0x5f9')]['microphoneId']=_0x5e5560[_0x124375('0x747')];}else _0x19b1bc[_0x124375('0x14b4')]({'title':_0x261eb8['instant'](_0x124375('0x25b4')),'msg':_0x261eb8[_0x124375('0x1b11')](_0x124375('0xdcc')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x124375('0x1c19')});_0xfa1d09[_0x124375('0x5f9')][_0x124375('0x1af5')]?_0xfa1d09['sessionConf'][_0x124375('0xb65')][_0x124375('0x244d')]={'deviceId':_0xfa1d09['conf'][_0x124375('0x1af5')]}:_0xfa1d09['sessionConf'][_0x124375('0xb65')]['audio']=!![];_0x5130b5(_0x124375('0x2027'),![]);const _0x2a6aec=_0x283545()['filter'](_0x34ef3a,function(_0x43f98c){const _0x43ab75=_0x124375;return _0x43f98c[_0x43ab75('0x2742')]==='audiooutput'&&_0x43f98c[_0x43ab75('0x747')]!==_0x43ab75('0x1c15')&&_0x43f98c[_0x43ab75('0x747')]!=='communications';});if(_0x2a6aec[_0x124375('0x2566')]>0x0){const _0x29b2f6=_0x283545()[_0x124375('0x20e8')](_0x34ef3a,function(_0x56a979){const _0x367eb9=_0x124375;return _0x56a979['deviceId']===_0x367eb9('0x1c15')&&_0x56a979[_0x367eb9('0x2742')]==='audiooutput';});_0x4904b1=_0x283545()[_0x124375('0x20e8')](_0x2a6aec,function(_0x5032f7){const _0x134661=_0x124375;return _0x5032f7[_0x134661('0x366')]===_0x29b2f6[_0x134661('0x366')];}),_0x4d9a89=_0x4904b1;if(_0xfa1d09[_0x124375('0x5f9')][_0x124375('0xd5b')]&&!_0x45a8c4){const _0x15dce6=_0x283545()['find'](_0x2a6aec,function(_0x1f8ab3){const _0x35f363=_0x124375;return _0x1f8ab3['deviceId']===_0xfa1d09[_0x35f363('0x5f9')][_0x35f363('0xd5b')];});_0x15dce6&&(_0x4d9a89=_0x15dce6);}_0xfa1d09[_0x124375('0x5f9')][_0x124375('0xd5b')]=_0x4d9a89[_0x124375('0x747')];if(_0xfa1d09[_0x124375('0x5f9')][_0x124375('0xd07')]&&!_0x45a8c4){const _0x216e81=_0x283545()[_0x124375('0x20e8')](_0x2a6aec,function(_0x562a14){const _0x222304=_0x124375;return _0x562a14[_0x222304('0x747')]===_0xfa1d09[_0x222304('0x5f9')][_0x222304('0xd07')];});_0x216e81&&(_0x4904b1=_0x216e81);}_0xfa1d09[_0x124375('0x5f9')][_0x124375('0xd07')]=_0x4904b1[_0x124375('0x747')];}else _0x19b1bc['warning']({'title':_0x261eb8[_0x124375('0x1b11')]('TOOLBAR.WARNING'),'msg':_0x261eb8['instant'](_0x124375('0x225f')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x124375('0x1c19')});return _0x5130b5('speaker',![]);})[_0x569bb5('0x2788')](function(){const _0x4f98b7=_0x569bb5;return _0x5130b5(_0x4f98b7('0x26f8'),![]);})[_0x569bb5('0x2788')](function(){const _0x4089b7=_0x569bb5;if(_0x12b9e5)return _0x12b9e5[_0x4089b7('0x24eb')]()[_0x4089b7('0x2788')](function(){const _0x25f59b=_0x4089b7;return _0xfa1d09[_0x25f59b('0x1553')]=!![],_0x12b9e5['getInstallInfo']();})['then'](function(){return _0x12b9e5['getUserDeviceMediaExt']();})[_0x4089b7('0x2788')](function(_0x4dd892){const _0x56c9cc=_0x4089b7;_0x5e5560&&_0x4d9a89&&_0x4904b1&&_0x4dd892&&(_0x283545()[_0x56c9cc('0x1d4e')]([_0x5e5560['groupId'],_0x4d9a89['groupId'],_0x4904b1[_0x56c9cc('0x366')]],_0x4dd892[_0x56c9cc('0x1e45')][_0x56c9cc('0x282d')])&&(console[_0x56c9cc('0x10df')](_0x56c9cc('0x162e')),_0xfa1d09[_0x56c9cc('0x1478')]=!![],_0x12b9e5[_0x56c9cc('0x1f51')](),_0x12b9e5['addEventListener'](_0x56c9cc('0x20e5'),_0x312f60[_0x56c9cc('0x1a20')](this)),_0x12b9e5[_0x56c9cc('0x24c1')](_0x56c9cc('0xfb8'),_0x78dba6[_0x56c9cc('0x1a20')](this)),_0x12b9e5[_0x56c9cc('0x24c1')](_0x56c9cc('0x1ce'),_0x12810c[_0x56c9cc('0x1a20')](this)),_0x12b9e5['addEventListener'](_0x56c9cc('0x13c1'),_0x558d3d[_0x56c9cc('0x1a20')](this)),_0x12b9e5[_0x56c9cc('0x24c1')](_0x56c9cc('0x1156'),_0x2dfd3a[_0x56c9cc('0x1a20')](this))));})[_0x4089b7('0x1cb5')](function(_0x2207a6){const _0x142572=_0x4089b7;console[_0x142572('0x14a')]('Error\x20initializing\x20Jabra\x20integration',_0x2207a6);});})['catch'](function(_0x9e2d5a){const _0xc6a7cf=_0x569bb5;console['error'](_0xc6a7cf('0x248'),_0x9e2d5a),_0x9e2d5a[_0xc6a7cf('0x1a8d')]===_0xc6a7cf('0x1fa7')&&_0x19b1bc[_0xc6a7cf('0x14b4')]({'title':_0x261eb8[_0xc6a7cf('0x1b11')](_0xc6a7cf('0x25b4')),'msg':_0x261eb8[_0xc6a7cf('0x1b11')]('TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0xc6a7cf('0x1c19')});})[_0x569bb5('0x1ed8')](function(){const _0x530660=_0x569bb5;_0xfa1d09[_0x530660('0x1dcf')]=![],_0x120f5e(),_0x5deb4f()[_0x530660('0x374')](_0x367ea0['bind'](this));});}function _0x312f60(_0x2dd056){const _0x44e4fa=_0x182a5e,_0x2d711a=_0x283545()[_0x44e4fa('0x1d39')](_0xfa1d09['sessions']);_0x2d711a?_0x2d711a[_0x44e4fa('0x7c3')]===_0x44e4fa('0x8a8')&&_0x2d711a[_0x44e4fa('0x1b03')]()?_0xfa1d09[_0x44e4fa('0xb1c')](_0x2d711a):console['error'](_0x44e4fa('0x1fe9'),_0x2dd056):console['error'](_0x44e4fa('0x1d82'),_0x2dd056);}function _0x78dba6(){const _0x4300cd=_0x182a5e;_0xfa1d09[_0x4300cd('0x5f9')][_0x4300cd('0xce7')]=!![],_0x5130b5(_0x4300cd('0x2027'),!![]);}function _0x12810c(){const _0x180dbd=_0x182a5e;_0xfa1d09[_0x180dbd('0x5f9')][_0x180dbd('0xce7')]=![],_0x5130b5('microphone',!![]);}function _0x558d3d(){const _0x1bbc18=_0x182a5e;_0xfa1d09['jabraSession'][_0x1bbc18('0x1c5a')]?_0xfa1d09['unhold'](_0xfa1d09[_0x1bbc18('0x22db')]):_0xfa1d09[_0x1bbc18('0xdf4')](_0xfa1d09[_0x1bbc18('0x22db')]);}function _0x2dfd3a(){const _0x3bafae=_0x182a5e;_0x3a9c3d()[_0x3bafae('0x2788')](function(_0x591452){const _0x5e9511=_0x3bafae;_0x591452!==null&&_0xfa1d09[_0x5e9511('0x71a')](_0x591452);});}function _0x120f5e(){const _0xcdaa2c=_0x182a5e;_0x166a88['webrtc']=_0x283545()[_0xcdaa2c('0x41b')](_0xfa1d09[_0xcdaa2c('0x5f9')],_0xcbf0da),_0x5089b9[_0xcdaa2c('0x155e')][_0xcdaa2c('0x23dc')](_0xcdaa2c('0x85c')+_0xfa1d09['conf']['id'],JSON[_0xcdaa2c('0x1be0')](_0x166a88));}function _0x14f002(){this['registered']=!![];}function _0x53584c(){const _0x1d2e03=_0x182a5e;this[_0x1d2e03('0x18b5')]=![];}function _0x367ea0(){const _0xd3169b=_0x182a5e;_0xfa1d09[_0xd3169b('0x5f9')][_0xd3169b('0xf86')]=_0x5deb4f()[_0xd3169b('0xf86')],_0xfa1d09['conf']['hasSpeakers']=_0x5deb4f()['browser'][_0xd3169b('0x1a8d')]===_0xd3169b('0x1ec7')||_0x5deb4f()[_0xd3169b('0x401')][_0xd3169b('0x1a8d')]===_0xd3169b('0x14e8')||_0x5deb4f()[_0xd3169b('0x401')][_0xd3169b('0x1a8d')]===_0xd3169b('0x1dea')?_0x5deb4f()[_0xd3169b('0x1928')]:!![],_0xfa1d09[_0xd3169b('0x5f9')][_0xd3169b('0x1137')]=_0x5deb4f()[_0xd3169b('0x1137')],_0xfa1d09[_0xd3169b('0x5f9')]['osName']=_0x5deb4f()[_0xd3169b('0xf61')],_0xfa1d09['conf'][_0xd3169b('0x1650')]=_0x5deb4f()[_0xd3169b('0x1650')],_0xfa1d09[_0xd3169b('0x5f9')][_0xd3169b('0xcd8')]=_0x5deb4f()['browser'][_0xd3169b('0x1a8d')],_0xfa1d09[_0xd3169b('0x5f9')]['browserVersion']=_0x5deb4f()[_0xd3169b('0x401')][_0xd3169b('0x1a7c')];if(_0x31bdc6())!_0xfa1d09[_0xd3169b('0x2583')]&&_0xfa1d09['ua'][_0xd3169b('0x1ce2')]();else!_0xfa1d09[_0xd3169b('0x5f9')][_0xd3169b('0x130d')]&&_0x19b1bc[_0xd3169b('0x14b4')]({'title':_0x261eb8[_0xd3169b('0x1b11')](_0xd3169b('0x25b4')),'msg':_0x261eb8[_0xd3169b('0x1b11')](_0xd3169b('0x288')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});}function _0x31bdc6(){const _0x400b30=_0x182a5e;return _0xfa1d09[_0x400b30('0x5f9')][_0x400b30('0x130d')]&&_0xfa1d09['conf']['isWebRTCSupported']&&_0xfa1d09[_0x400b30('0x5f9')][_0x400b30('0xf86')]&&_0xfa1d09['conf'][_0x400b30('0x1928')]&&_0xfa1d09[_0x400b30('0x5f9')]['protocol']==='https'&&_0x4d01e9();}function _0x4d01e9(){const _0x52a8fb=_0x182a5e;return _0xfa1d09[_0x52a8fb('0x5f9')][_0x52a8fb('0xcd8')][_0x52a8fb('0xc2e')]()===_0x52a8fb('0x23cd')||_0xfa1d09['conf'][_0x52a8fb('0xcd8')]['toLowerCase']()===_0x52a8fb('0x13af')||_0xfa1d09[_0x52a8fb('0x5f9')]['browserName'][_0x52a8fb('0xc2e')]()==='safari';}function _0x13678b(_0x2bdf38){const _0x4fe259=_0x182a5e;console['debug'](_0x4fe259('0x13f8'),_0x2bdf38);const _0xbb54e=_0x2bdf38[_0x4fe259('0x1f5b')];let _0x1e8fa7=!![],_0x32ebc4='',_0x4880aa=0x0,_0x4ee8ae;switch(_0x2bdf38['originator']){case _0x4fe259('0x257c'):{_0xbb54e[_0x4fe259('0x1a3f')]=!![],_0xbb54e['name']=_0x2bdf38[_0x4fe259('0x25f2')][_0x4fe259('0x270f')][_0x4fe259('0x1e6a')],_0xbb54e['user']=_0x2bdf38['request'][_0x4fe259('0x270f')][_0x4fe259('0x1e6a')],_0x3d4d1a(_0xbb54e[_0x4fe259('0x1e6a')],![]);const _0x4a34e3='X-callback-url';_0x4ee8ae=_0x557fca(_0x2bdf38[_0x4fe259('0x25f2')][_0x4fe259('0x2368')],_0x4a34e3),_0xfa1d09[_0x4fe259('0x1478')]&&(_0xfa1d09[_0x4fe259('0x22db')]&&_0x12b9e5['resume'](),_0xfa1d09[_0x4fe259('0x22db')]=_0xbb54e,_0x12b9e5[_0x4fe259('0x1425')]());}break;case _0x4fe259('0x2279'):{const _0x1c2e3b=_0x27fdb2[_0x4fe259('0x24cc')]();if(_0x1c2e3b[_0x4fe259('0x2a1')]&&_0x1c2e3b[_0x4fe259('0xd6e')]||_0xfa1d09[_0x4fe259('0x1d53')])_0x1e8fa7=![];else{_0xbb54e[_0x4fe259('0x8a8')]=!![],_0xbb54e['name']=_0x2bdf38[_0x4fe259('0x25f2')][_0x4fe259('0x444')][_0x4fe259('0x2109')],_0xbb54e['user']=_0x2bdf38[_0x4fe259('0x25f2')]['from'][_0x4fe259('0x14e1')]['user'],_0x32ebc4=_0x2bdf38[_0x4fe259('0x25f2')][_0x4fe259('0x679')](_0x4fe259('0x261'))||'',_0x4880aa=_0x2bdf38['request']['getHeader'](_0x4fe259('0x276c'))||0x0,_0x968156(_0x2bdf38[_0x4fe259('0x1f5b')]),_0x3d4d1a(_0x2bdf38['session'][_0x4fe259('0x1e6a')],!![]);_0xfa1d09['isJabraEnabled']&&_0x12b9e5[_0x4fe259('0x215c')]();_0xfa1d09[_0x4fe259('0x5f9')][_0x4fe259('0xb1a')]&&_0x3ee5a1(function(){const _0x34ec08=_0x4fe259;_0xbb54e[_0x34ec08('0x1b03')]()&&(_0xbb54e['autoAnswer']=!![],_0x801e14(_0xbb54e));},_0xfa1d09[_0x4fe259('0x5f9')][_0x4fe259('0x1e61')]?_0xfa1d09['conf'][_0x4fe259('0x1e61')]*0x3e8:0x0);console[_0x4fe259('0x1ca0')](_0x4fe259('0x1b3e'),_0x32ebc4),console['debug'](_0x4fe259('0x7ae'),_0x4880aa);if(_0x32ebc4[_0x4fe259('0xc2e')]()==_0x4fe259('0x8a')){const _0x18f9b4=_0x4880aa==0x0?0x1f4:_0x4880aa*0x3e8;console[_0x4fe259('0x1ca0')](_0x4fe259('0x118')+_0x18f9b4+_0x4fe259('0x63f')),_0x3ee5a1(function(){const _0x46a850=_0x4fe259;_0xbb54e[_0x46a850('0x1b03')]()&&(_0xbb54e['autoAnswer']=!![],_0x801e14(_0xbb54e));},_0x18f9b4);}}break;}default:}_0x1e8fa7?(_0xbb54e[_0x4fe259('0x284')]=_0x2bdf38[_0x4fe259('0x25f2')][_0x4fe259('0x284')],_0x4ee8ae&&(_0xfa1d09['callbackQueue'][_0xbb54e[_0x4fe259('0x284')]]=_0x4ee8ae,_0xc7d192(_0x4ee8ae,{'call_id':_0xbb54e[_0x4fe259('0x284')]})[_0x4fe259('0x2788')](function(){const _0x422f87=_0x4fe259;console[_0x422f87('0x10df')](_0x422f87('0x14aa')+_0x4ee8ae+_0x422f87('0x140f'));})['catch'](function(_0x7289ca){const _0x64fcc2=_0x4fe259;console[_0x64fcc2('0x10df')]('fail\x20callbackurl:\x22'+_0x4ee8ae+'\x22\x20err:',_0x7289ca);})),_0xbb54e[_0x4fe259('0x110e')]&&(_0xbb54e[_0x4fe259('0x110e')][_0x4fe259('0x1af2')]=_0x39bf19[_0x4fe259('0x1a20')](this)),_0xbb54e[_0x4fe259('0x1dfd')]=null,_0xbb54e['on']('progress',_0xab4591[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on'](_0x4fe259('0x21ac'),_0x191b7b[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on'](_0x4fe259('0xdf4'),_0x22d31f[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on'](_0x4fe259('0xca9'),_0xd1020f[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on'](_0x4fe259('0x988'),_0x12705e[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on']('failed',_0xa48bf0[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xbb54e['on'](_0x4fe259('0xeaf'),_0x3d75ce[_0x4fe259('0x1a20')](this,_0xbb54e)),_0xfa1d09[_0x4fe259('0x1020')][_0x4fe259('0x13e3')](_0xbb54e),_0x3ee5a1(function(){const _0x53181e=_0x4fe259;_0x2071ea[_0x53181e('0x439')](),console['debug'](_0x53181e('0x2102'),_0xfa1d09['sessions']);})):_0xac04f2(_0xbb54e,0x1e6);}function _0x3d4d1a(_0x415401,_0x3814d8,_0x4da903){const _0x2b9263=_0x182a5e;console[_0x2b9263('0x1ca0')]('addCall\x20->\x20target,\x20inbound,\x20fullname',_0x415401,_0x3814d8,_0x4da903),_0xfa1d09[_0x2b9263('0x565')]['unshift']({'target':_0x415401,'fullname':_0x4da903||_0x415401,'inbound':_0x3814d8,'time':_0x59f37a()()[_0x2b9263('0x22b4')](_0x2b9263('0x1812'))}),_0xfa1d09[_0x2b9263('0x565')][_0x2b9263('0x2566')]>0x32&&_0xfa1d09[_0x2b9263('0x565')]['pop']();}function _0x968156(_0x5e1329){const _0xc74be9=_0x182a5e;console[_0xc74be9('0x1ca0')](_0xc74be9('0x154b'),_0x5e1329);const _0xa863e8=_0x5e1329[_0xc74be9('0x1a8d')]?_0x5e1329[_0xc74be9('0x1a8d')]+'\x20<'+_0x5e1329[_0xc74be9('0x1e6a')]+'>':_0x5e1329[_0xc74be9('0x1e6a')];_0x1beec9[_0xc74be9('0x8ca')](_0xc74be9('0x22b2'),_0xa863e8,null,function(){_0x801e14(_0x5e1329);},function(){_0xac04f2(_0x5e1329);})[_0xc74be9('0x2788')](function(_0xb7039d){_0x5e1329['notification']=_0xb7039d;})[_0xc74be9('0x1cb5')](function(_0x3da515){const _0x5cf832=_0xc74be9;console[_0x5cf832('0x5e8')](_0x5cf832('0x1b99'),_0x3da515);});}function _0x801e14(_0x2f62a5){const _0x36d874=_0x182a5e;console[_0x36d874('0x1ca0')](_0x36d874('0x262f'),_0x2f62a5),_0xfa1d09[_0x36d874('0x5f9')][_0x36d874('0x1af5')]?_0xfa1d09[_0x36d874('0x2414')][_0x36d874('0xb65')][_0x36d874('0x244d')]={'deviceId':_0xfa1d09['conf']['microphoneId']}:_0xfa1d09[_0x36d874('0x2414')][_0x36d874('0xb65')][_0x36d874('0x244d')]=!![],_0x2f62a5['answer'](_0xfa1d09[_0x36d874('0x2414')]),_0xfa1d09[_0x36d874('0x1478')]&&(_0x12b9e5[_0x36d874('0x1425')](),_0xfa1d09[_0x36d874('0x22db')]=_0x2f62a5);}function _0xac04f2(_0x3c0372,_0x45e0d8){const _0x2832f8=_0x182a5e;console[_0x2832f8('0x1ca0')](_0x2832f8('0x128c'),_0x3c0372);const _0x47daba={};if(_0x45e0d8)_0x47daba[_0x2832f8('0x20d')]=_0x45e0d8;else!_0x3c0372[_0x2832f8('0x8b4')]()&&(_0x47daba[_0x2832f8('0x20d')]=0x25b);_0x3c0372[_0x2832f8('0x71a')](_0x47daba);if(_0xfa1d09['isJabraEnabled']){if(_0xfa1d09[_0x2832f8('0x1020')][_0x2832f8('0x2566')]===0x0)_0x3c0372[_0x2832f8('0x1c5a')]&&_0x12b9e5[_0x2832f8('0x19bd')](),_0x12b9e5[_0x2832f8('0x1f51')](),_0xfa1d09['jabraSession']=null;else{const _0x85589b=_0x283545()['last'](_0xfa1d09[_0x2832f8('0x1020')]);_0x85589b[_0x2832f8('0x1c5a')]?(_0x12b9e5[_0x2832f8('0x1f51')](),_0x12b9e5[_0x2832f8('0xdf4')](),_0xfa1d09['jabraSession']=_0x85589b):_0x12b9e5[_0x2832f8('0x1425')]();}}}function _0xab4591(_0x2bc982,_0xdfffa8){const _0xe73812=_0x182a5e;console['debug'](_0xe73812('0x23c3'),_0x2bc982,_0xdfffa8);let _0x13820d=![];switch(_0xdfffa8['originator']){case'local':!this[_0xe73812('0x5f9')]['ringingMute']&&(this['soundPlayer'][_0xe73812('0x1c6b')](_0xe73812('0x1269'),_0xe73812('0x2079')),_0x13820d=!![]);break;case'remote':this[_0xe73812('0x16c2')](_0x2bc982),this[_0xe73812('0x1a51')][_0xe73812('0x1c6b')](_0xe73812('0x1269'),_0xe73812('0x1878')),_0x13820d=!![];break;}_0xfa1d09['originateInProgress']&&(_0xfa1d09['originateInProgress']=![]),_0x13820d&&(this['soundPlayer'][_0xe73812('0x220')]=_0xe73812('0x220'),this[_0xe73812('0x1a51')][_0xe73812('0x13c5')]()[_0xe73812('0x1cb5')](function(_0x4f18cc){const _0x39456f=_0xe73812;console[_0x39456f('0x10df')](_0x4f18cc[_0x39456f('0x15e2')]);})),_0x1d3c31(_0x2bc982)[_0xe73812('0x2788')](function(){const _0xb2beaf=_0xe73812,_0xdce72f=_0xfa1d09[_0xb2beaf('0x1e69')][_0x2bc982[_0xb2beaf('0x284')]];_0xdce72f&&_0xc7d192(_0xdce72f,{'uniqueid':_0x2bc982[_0xb2beaf('0x1be7')],'call_id':_0x2bc982['call_id'],'number_called':_0x2bc982['user']})[_0xb2beaf('0x2788')](function(){const _0x326dbf=_0xb2beaf;console[_0x326dbf('0x10df')](_0x326dbf('0x14aa')+_0xdce72f+_0x326dbf('0x140f'));})[_0xb2beaf('0x1cb5')](function(_0x462810){const _0x209244=_0xb2beaf;console[_0x209244('0x10df')]('fail\x20callbackurl:\x22'+_0xdce72f+_0x209244('0x23fc'),_0x462810);})[_0xb2beaf('0x1ed8')](function(){const _0x5d01fb=_0xb2beaf;delete _0xfa1d09[_0x5d01fb('0x1e69')][_0x2bc982[_0x5d01fb('0x284')]];});})[_0xe73812('0x1cb5')](function(_0xf4721){const _0x5a9057=_0xe73812;console[_0x5a9057('0x5e8')](_0x5a9057('0x1d2a'),_0xf4721);});}function _0x1d3c31(_0x3801f8){const _0x44a52f=_0x182a5e;return console['debug'](_0x44a52f('0x10f4'),_0x3801f8),_0x2a91ca[_0x44a52f('0x1bfc')][_0x44a52f('0x23e')]()['$promise']['then'](function(_0x1c4de1){const _0x5a4a26=_0x44a52f,_0x26de21=_0x283545()[_0x5a4a26('0x20e8')](_0x1c4de1[_0x5a4a26('0x25df')],function(_0x255677){const _0x5b892b=_0x5a4a26;if(_0x255677[_0x5b892b('0x2208')]===_0x3801f8[_0x5b892b('0x284')])return _0x255677;if(_0x255677[_0x5b892b('0x1cd')]===_0x3801f8[_0x5b892b('0x284')])return _0x255677;return null;});_0x26de21&&(_0x3801f8[_0x5a4a26('0x17be')]=_0x26de21[_0x5a4a26('0x17be')],_0x3801f8[_0x5a4a26('0x1be7')]=_0x26de21['uniqueid'],_0x3801f8[_0x5a4a26('0x1cd5')]=_0x26de21[_0x5a4a26('0x1cd5')]);return;});}function _0x191b7b(_0x26f955,_0x136c2c){const _0x226915=_0x182a5e;console['debug']('onConfirmed\x20->\x20session,\x20data',_0x26f955,_0x136c2c);const _0x3d7bee=document[_0x226915('0x1b0c')](_0x226915('0x67')+_0x26f955['id'][_0x226915('0x1005')](0x0,0x20));_0x3d7bee&&$(_0x3d7bee)[_0x226915('0x934')]()[_0x226915('0x2379')](_0x226915('0x17db')),_0x26f955[_0x226915('0x21ac')]=!![],_0x136c2c[_0x226915('0x21c1')]===_0x226915('0x2279')&&_0x26f955[_0x226915('0x110e')]&&(_0x26f955[_0x226915('0x110e')]['onaddstream']=_0x39bf19[_0x226915('0x1a20')](this),_0x283545()['head'](_0x26f955[_0x226915('0x110e')]['getRemoteStreams']())&&(this[_0x226915('0x120e')][_0x226915('0x1014')]=_0x283545()['head'](_0x26f955[_0x226915('0x110e')][_0x226915('0x2288')]()),this[_0x226915('0x120e')][_0x226915('0x13c5')]())),this[_0x226915('0x1a51')]['pause'](),this[_0x226915('0x1a51')][_0x226915('0x220')]=null,this['putOtherCallsOnHold'](_0x26f955),_0x26f955[_0x226915('0xb1a')]&&(this[_0x226915('0x1a51')][_0x226915('0x1c6b')]('src',_0x226915('0x2722')),this[_0x226915('0x1a51')]['play']()[_0x226915('0x1cb5')](function(_0x286d07){const _0x384103=_0x226915;console[_0x384103('0x10df')](_0x384103('0xf63'),_0x286d07);})),_0xfa1d09[_0x226915('0x193c')]=_0xfa1d09[_0x226915('0x1020')][_0x226915('0x2566')]==0x2,_0x1d3c31(_0x26f955)[_0x226915('0x1cb5')](function(_0x243b35){const _0x3fccd0=_0x226915;console[_0x3fccd0('0x5e8')](_0x3fccd0('0x1d2a'),_0x243b35);});}function _0x39bf19(_0x58d0d1){const _0x9f9959=_0x182a5e;console[_0x9f9959('0x1ca0')](_0x9f9959('0x2392'),_0x58d0d1),this[_0x9f9959('0x120e')][_0x9f9959('0x1014')]=_0x58d0d1[_0x9f9959('0x1987')],this['remotePlayer'][_0x9f9959('0x13c5')]();}function _0x22d31f(_0x413aa5,_0x43bbc4){const _0x4a41a3=_0x182a5e;console[_0x4a41a3('0x1ca0')](_0x4a41a3('0xd2c'),_0x413aa5,_0x43bbc4),_0x43bbc4[_0x4a41a3('0x21c1')]===_0x4a41a3('0x257c')&&(_0x413aa5[_0x4a41a3('0x1c5a')]=!![]);}function _0xd1020f(_0x57c160,_0x39b114){const _0x1f3046=_0x182a5e;console['debug'](_0x1f3046('0x1c58'),_0x57c160,_0x39b114),_0x39b114[_0x1f3046('0x21c1')]===_0x1f3046('0x257c')&&(_0x57c160['localHold']=![]);}function _0x12705e(_0x1ce0ee,_0x176948){const _0x4667bb=_0x182a5e;console[_0x4667bb('0x1ca0')](_0x4667bb('0x428'),_0x1ce0ee,_0x176948);_0xfa1d09[_0x4667bb('0x118b')]&&(_0x283545()[_0x4667bb('0x1d4e')](_0xfa1d09[_0x4667bb('0xb45')],_0x1ce0ee['id'])&&(_0x5871f3(),_0xfa1d09[_0x4667bb('0x655')]=!![]));_0x283545()[_0x4667bb('0x1a90')](this[_0x4667bb('0x1020')],{'id':_0x1ce0ee['id']});_0xfa1d09['sessions']['length']!==0x2&&(_0xfa1d09[_0x4667bb('0x193c')]=![]);if(_0xfa1d09[_0x4667bb('0x1478')]){if(_0xfa1d09['sessions']['length']===0x0)_0x1ce0ee[_0x4667bb('0x1c5a')]&&_0x12b9e5[_0x4667bb('0x19bd')](),_0x12b9e5['onHook'](),_0xfa1d09[_0x4667bb('0x22db')]=null;else{const _0x37364a=_0x283545()[_0x4667bb('0x1d39')](_0xfa1d09[_0x4667bb('0x1020')]);_0x37364a[_0x4667bb('0x1c5a')]?(_0x12b9e5[_0x4667bb('0x1f51')](),_0x12b9e5[_0x4667bb('0xdf4')](),_0xfa1d09['jabraSession']=_0x37364a):_0x12b9e5[_0x4667bb('0x1425')]();}}}function _0x5871f3(){const _0x222b2b=_0x182a5e;_0xfa1d09[_0x222b2b('0x193c')]=![],_0xfa1d09[_0x222b2b('0x118b')]=![],_0xfa1d09[_0x222b2b('0x400')]=[];}function _0xa48bf0(_0x40d104,_0x3ea7a5){const _0x30ad01=_0x182a5e;console[_0x30ad01('0x1ca0')](_0x30ad01('0x581'),_0x40d104,_0x3ea7a5),this[_0x30ad01('0x1a51')][_0x30ad01('0x619')](),this[_0x30ad01('0x1a51')][_0x30ad01('0x220')]=null;_0x40d104[_0x30ad01('0x793')]&&_0x40d104['notification']['close']();_0xfa1d09[_0x30ad01('0x118b')]&&(_0x283545()[_0x30ad01('0x1d4e')](_0xfa1d09[_0x30ad01('0xb45')],_0x40d104['id'])&&_0x5871f3());_0xfa1d09[_0x30ad01('0x1d53')]&&(_0xfa1d09[_0x30ad01('0x1d53')]=![]);_0x283545()[_0x30ad01('0x1a90')](this['sessions'],{'id':_0x40d104['id']});_0xfa1d09[_0x30ad01('0x1020')][_0x30ad01('0x2566')]!==0x2&&(_0xfa1d09[_0x30ad01('0x193c')]=![]);if(_0xfa1d09['isJabraEnabled']){if(_0xfa1d09[_0x30ad01('0x1020')][_0x30ad01('0x2566')]===0x0)_0x40d104[_0x30ad01('0x1c5a')]&&_0x12b9e5[_0x30ad01('0x19bd')](),_0x12b9e5[_0x30ad01('0x1f51')](),_0xfa1d09[_0x30ad01('0x22db')]=null;else{const _0x399f5c=_0x283545()['last'](_0xfa1d09[_0x30ad01('0x1020')]);_0x399f5c[_0x30ad01('0x1c5a')]?(_0x12b9e5[_0x30ad01('0x1f51')](),_0x12b9e5[_0x30ad01('0xdf4')](),_0xfa1d09[_0x30ad01('0x22db')]=_0x399f5c):_0x12b9e5[_0x30ad01('0x1425')]();}}}function _0x3d75ce(_0x3bf109,_0x3c3885){const _0x3cf475=_0x182a5e;console['debug']('onIcecandidate\x20->\x20session,\x20data',_0x3bf109,_0x3c3885),_0x3bf109['iceCandidateTimeout']!==null&&clearTimeout(_0x3bf109[_0x3cf475('0x1dfd')]),_0x3bf109['iceCandidateTimeout']=setTimeout(_0x3c3885[_0x3cf475('0x21c5')],0x1*0x3e8);}function _0x111037(){const _0x27438e=_0x182a5e;_0xfa1d09[_0x27438e('0x7de')]=![];}function _0x1ea44e(_0x274ea5,_0x57f6dc){const _0x2995e5=_0x182a5e;let _0x2da73d=_0x274ea5;!_0xfa1d09[_0x2995e5('0x159c')]&&(_0xfa1d09[_0x2995e5('0x159c')]='');_0x57f6dc&&(_0xfa1d09[_0x2995e5('0x159c')]+=_0x274ea5,_0x2071ea[_0x2995e5('0x2379')]('angucomplete-alt:changeInput',_0x2995e5('0x18f5'),_0xfa1d09[_0x2995e5('0x159c')]));switch(_0x274ea5){case'*':_0x2da73d=_0x2995e5('0xf2c');break;case'#':_0x2da73d=_0x2995e5('0x9a');break;default:}_0xfa1d09['conf'][_0x2995e5('0x84')]&&(_0xfa1d09[_0x2995e5('0x1a51')][_0x2995e5('0x1c6b')](_0x2995e5('0x1269'),_0x2995e5('0x1a18')+_0x2da73d+'.ogg'),_0xfa1d09[_0x2995e5('0x1a51')]['play']()[_0x2995e5('0x1cb5')](function(_0x30bc13){const _0x3b1e67=_0x2995e5;console[_0x3b1e67('0x10df')](_0x30bc13[_0x3b1e67('0x15e2')]);}));for(let _0x39a64a=0x0;_0x39a64a<_0xfa1d09['sessions'][_0x2995e5('0x2566')];_0x39a64a+=0x1){_0xfa1d09['sessions'][_0x39a64a][_0x2995e5('0x8b4')]()&&!_0xfa1d09['sessions'][_0x39a64a][_0x2995e5('0x9c2')]()['local']&&_0xfa1d09[_0x2995e5('0x1020')][_0x39a64a][_0x2995e5('0x7e5')](_0x274ea5);}}function _0x5130b5(_0x143624,_0x2aa4a3){const _0xcff681=_0x182a5e;switch(_0x143624){case _0xcff681('0x26f8'):_0xfa1d09[_0xcff681('0x1a51')][_0xcff681('0x211f')]=_0xfa1d09['conf'][_0xcff681('0x2232')];_0xfa1d09['conf'][_0xcff681('0xd07')]&&_0xfa1d09[_0xcff681('0x1a51')]['setSinkId'](_0xfa1d09[_0xcff681('0x5f9')][_0xcff681('0xd07')])[_0xcff681('0x2788')](function(){const _0x5e7702=_0xcff681;_0xfa1d09[_0x5e7702('0x1a51')][_0x5e7702('0x38c')]=_0xfa1d09[_0x5e7702('0x5f9')][_0x5e7702('0x351')];})[_0xcff681('0x2788')](function(){_0x2aa4a3&&_0x120f5e();})[_0xcff681('0x1cb5')](function(_0x4d1371){const _0x68af4f=_0xcff681;console[_0x68af4f('0x2276')](_0x4d1371[_0x68af4f('0x15e2')],_0xfa1d09[_0x68af4f('0x5f9')][_0x68af4f('0xd07')]);});break;case _0xcff681('0x24d6'):_0xfa1d09[_0xcff681('0x120e')][_0xcff681('0x211f')]=_0xfa1d09['conf'][_0xcff681('0xf67')];_0xfa1d09[_0xcff681('0x5f9')][_0xcff681('0xd5b')]&&_0xfa1d09[_0xcff681('0x120e')][_0xcff681('0x2263')](_0xfa1d09[_0xcff681('0x5f9')][_0xcff681('0xd5b')])[_0xcff681('0x2788')](function(){const _0xa7e17b=_0xcff681;_0xfa1d09[_0xa7e17b('0x120e')][_0xa7e17b('0x38c')]=_0xfa1d09['conf'][_0xa7e17b('0x1859')];})[_0xcff681('0x2788')](function(){_0x2aa4a3&&_0x120f5e();})[_0xcff681('0x1cb5')](function(_0x47dd72){const _0x2de5ed=_0xcff681;console['info'](_0x47dd72[_0x2de5ed('0x15e2')],_0xfa1d09[_0x2de5ed('0x5f9')][_0x2de5ed('0xd5b')]);});break;case _0xcff681('0x2027'):for(let _0xb59055=0x0;_0xb59055<_0xfa1d09['sessions']['length'];_0xb59055+=0x1){_0xfa1d09[_0xcff681('0x5f9')]['microphoneMute']?_0xfa1d09[_0xcff681('0x1020')][_0xb59055][_0xcff681('0xfb8')]():_0xfa1d09[_0xcff681('0x1020')][_0xb59055][_0xcff681('0x1ce')]();}_0x12b9e5&&_0xfa1d09[_0xcff681('0x1478')]&&(_0xfa1d09[_0xcff681('0x5f9')][_0xcff681('0xce7')]?_0x12b9e5[_0xcff681('0xfb8')]():_0x12b9e5[_0xcff681('0x1ce')]());_0x2aa4a3&&_0x120f5e();break;default:console['log']('unknown\x20device');}}function _0x4dd778(_0x2a443c){const _0x44a8cb=_0x182a5e;if(!_0x2a443c)_0x334e3f();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x44a8cb('0x1565')](_0x2a443c)?(_0xfa1d09[_0x44a8cb('0x159c')]=_0x2a443c,_0x2071ea[_0x44a8cb('0x2379')](_0x44a8cb('0x211d'),_0x44a8cb('0x18f5'),_0xfa1d09[_0x44a8cb('0x159c')])):_0xfa1d09[_0x44a8cb('0x159c')]?_0x2071ea[_0x44a8cb('0x2379')](_0x44a8cb('0x211d'),_0x44a8cb('0x18f5'),_0xfa1d09[_0x44a8cb('0x159c')]):_0x334e3f();}function _0x334e3f(){const _0x12ded9=_0x182a5e;_0xfa1d09[_0x12ded9('0x159c')]='',document[_0x12ded9('0x1b0c')](_0x12ded9('0x1da8'))[_0x12ded9('0x209f')](),document[_0x12ded9('0x1b0c')](_0x12ded9('0x1da8'))[_0x12ded9('0x49')]='',_0x2071ea['$broadcast'](_0x12ded9('0x1dd7'),_0x12ded9('0x18f5'));}function _0x57852d(_0x4bce9c){const _0x160c9e=_0x182a5e;_0x4bce9c&&(_0xfa1d09[_0x160c9e('0x159c')]=_0x4bce9c[_0x160c9e('0x181b')][_0x160c9e('0x159c')],_0xfa1d09[_0x160c9e('0x935')](),_0x334e3f());}function _0x387c8d(){const _0x6e026c=_0x182a5e;if(_0xfa1d09[_0x6e026c('0x159c')]&&_0xfa1d09[_0x6e026c('0x159c')]!==_0xfa1d09[_0x6e026c('0x5f9')][_0x6e026c('0x1a8d')]&&_0xfa1d09[_0x6e026c('0x159c')]!==_0xfa1d09[_0x6e026c('0x5f9')][_0x6e026c('0x2838')]){_0xfa1d09[_0x6e026c('0x5f9')]['microphoneId']?_0xfa1d09[_0x6e026c('0x2414')][_0x6e026c('0xb65')][_0x6e026c('0x244d')]={'deviceId':_0xfa1d09[_0x6e026c('0x5f9')][_0x6e026c('0x1af5')]}:_0xfa1d09[_0x6e026c('0x2414')][_0x6e026c('0xb65')][_0x6e026c('0x244d')]=!![];let _0x2a1bb6=_0xfa1d09[_0x6e026c('0x159c')][_0x6e026c('0x10a4')](/ /g,'');return _0x2a1bb6=_0x2a1bb6[_0x6e026c('0x10a4')](/\(/g,''),_0x2a1bb6=_0x2a1bb6[_0x6e026c('0x10a4')](/\)/g,''),_0x3fd001(_0x2a1bb6)[_0x6e026c('0x2788')](function(_0x3a997d){const _0x1e98e8=_0x6e026c;_0x3a997d&&_0xfa1d09['ua']['call'](_0x3a997d,_0xfa1d09[_0x1e98e8('0x2414')]);})[_0x6e026c('0x2788')](function(){_0x334e3f();});}}function _0x3fd001(_0x10f174){const _0x161dcf=_0x182a5e;return _0x2a91ca[_0x161dcf('0x1e6a')][_0x161dcf('0xbe4')]({'id':_0xfa1d09[_0x161dcf('0x5f9')]['id']})[_0x161dcf('0x1714')]['then'](function(_0x503130){const _0x5465b0=_0x161dcf;if(_0x503130[_0x5465b0('0x338')])return _0xf4e4b0[_0x5465b0('0x2fa')]({'controller':_0x5465b0('0x1035'),'controllerAs':'vm','templateUrl':_0x25ccfb,'parent':angular['element'](_0x300cbc[_0x5465b0('0x945')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x503130,'required':_0xfa1d09[_0x5465b0('0x5f9')]['phoneBarPrefixRequired']}});})[_0x161dcf('0x2788')](function(_0x47bfba){const _0x1a10fc=_0x161dcf;if(!_0xfa1d09['conf'][_0x1a10fc('0x569')]){if(_0x47bfba&&_0x47bfba!==-0x1)return _0x47bfba+_0x10f174;else{if(!_0x47bfba)return _0x10f174;}}else{if(_0x47bfba&&_0x47bfba!==-0x1)return _0x47bfba+_0x10f174;}});}function _0x2fedbf(_0x40acea){const _0xadf008=_0x182a5e;switch(_0x40acea[_0xadf008('0x234b')][_0xadf008('0xc2e')]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0xfa1d09['type'](_0x40acea['key']);break;case _0xadf008('0x1bac'):_0xfa1d09[_0xadf008('0x935')]();break;default:}}function _0x30d23a(){const _0x5471b8=_0x182a5e;_0xfa1d09[_0x5471b8('0x7de')]=!_0xfa1d09[_0x5471b8('0x7de')];}_0x300cbc[_0x182a5e('0x1a20')](_0x182a5e('0x25b6'),function(_0x1fb746){switch(_0x1fb746['keyCode']){case 0x1b:_0x3ee5a1(function(){_0xfa1d09['showDialpad']=![];});break;default:}});function _0x1e6dff(){const _0x33bca0=_0x182a5e;_0xfa1d09[_0x33bca0('0x118b')]=!![],_0xfa1d09[_0x33bca0('0x193c')]=![],_0xfa1d09[_0x33bca0('0xb45')]['push'](_0xfa1d09[_0x33bca0('0x1020')][0x0]['id']),_0xfa1d09[_0x33bca0('0xb45')][_0x33bca0('0x13e3')](_0xfa1d09[_0x33bca0('0x1020')][0x1]['id']);const _0xe8e69e=_0xfa1d09[_0x33bca0('0x1020')][0x0][_0x33bca0('0x110e')]['getSenders']()[0x0],_0x3927f2=_0xfa1d09['sessions'][0x0][_0x33bca0('0x110e')][_0x33bca0('0xb36')]()[0x0];_0x3927f2[_0x33bca0('0x182f')][_0x33bca0('0x24c1')](_0x33bca0('0x1ce'),function(){setTimeout(function(){_0x4c77c9();},0x3e8);},![]);const _0x562a40=_0xfa1d09[_0x33bca0('0x1020')][0x1]['connection'][_0x33bca0('0x1d58')]()[0x0],_0x547c89=_0xfa1d09[_0x33bca0('0x1020')][0x1][_0x33bca0('0x110e')]['getReceivers']()[0x0];_0x547c89[_0x33bca0('0x182f')][_0x33bca0('0x24c1')](_0x33bca0('0x1ce'),function(){setTimeout(function(){_0x4c77c9();},0x3e8);},![]),_0xfa1d09[_0x33bca0('0x1020')][0x0][_0x33bca0('0xca9')]({'useUpdate':![]}),_0xfa1d09[_0x33bca0('0x1020')][0x1]['unhold']({'useUpdate':![]}),_0x3927f2['track'][_0x33bca0('0x14f4')]=!![],_0x547c89[_0x33bca0('0x182f')][_0x33bca0('0x14f4')]=!![];const _0x3e4a9d=new MediaStream(),_0x399684=new AudioContext();let _0x184b67=_0x399684[_0x33bca0('0x1927')](),_0x3a0455=_0x399684['createMediaStreamSource'](new MediaStream([_0x547c89['track']]));_0x3a0455['connect'](_0x184b67),_0x3a0455=_0x399684['createMediaStreamSource'](new MediaStream([_0xe8e69e['track']])),_0x3a0455[_0x33bca0('0x26c')](_0x184b67),_0xe8e69e[_0x33bca0('0x115d')](_0x184b67[_0x33bca0('0x1987')]['getTracks']()[0x0])[_0x33bca0('0x2788')](function(){}),_0x184b67=_0x399684[_0x33bca0('0x1927')](),_0x3a0455=_0x399684[_0x33bca0('0xe50')](new MediaStream([_0x3927f2[_0x33bca0('0x182f')]])),_0x3a0455['connect'](_0x184b67),_0x3a0455=_0x399684[_0x33bca0('0xe50')](new MediaStream([_0x562a40['track']])),_0x3a0455[_0x33bca0('0x26c')](_0x184b67),_0x562a40[_0x33bca0('0x115d')](_0x184b67[_0x33bca0('0x1987')][_0x33bca0('0x1387')]()[0x0])[_0x33bca0('0x2788')](function(){const _0x18cafc=_0x33bca0;_0x3e4a9d[_0x18cafc('0x167c')](_0x3927f2[_0x18cafc('0x182f')]),_0x3e4a9d[_0x18cafc('0x167c')](_0x547c89['track']);const _0x1a23cd=document[_0x18cafc('0x1b0c')]('remote-audio');_0x1a23cd['srcObject']=_0x3e4a9d;const _0x49a9da=_0x1a23cd[_0x18cafc('0x13c5')]();_0x49a9da!==undefined&&_0x49a9da[_0x18cafc('0x2788')](function(){})['catch'](function(_0x43e43b){console['log'](_0x43e43b);});});}function _0x4c77c9(){const _0x44329a=_0x182a5e;if(_0xfa1d09[_0x44329a('0x118b')]){const _0x189342=_0xfa1d09['sessions'][0x0][_0x44329a('0x110e')][_0x44329a('0xb36')]()[0x0],_0x318b49=_0xfa1d09[_0x44329a('0x1020')][0x1][_0x44329a('0x110e')][_0x44329a('0xb36')]()[0x0],_0x5316de=new MediaStream();_0x5316de[_0x44329a('0x167c')](_0x189342[_0x44329a('0x182f')]),_0x5316de[_0x44329a('0x167c')](_0x318b49[_0x44329a('0x182f')]);const _0x5db908=document[_0x44329a('0x1b0c')](_0x44329a('0x8ed'));_0x5db908[_0x44329a('0x1014')]=_0x5316de;const _0x543f8b=_0x5db908[_0x44329a('0x13c5')]();_0x543f8b!==undefined&&_0x543f8b[_0x44329a('0x2788')](function(){})[_0x44329a('0x1cb5')](function(_0x9715e6){console['log'](_0x9715e6);});}}function _0xa8d865(_0x59da4c){const _0x8d7e2f=_0x182a5e;console[_0x8d7e2f('0x1ca0')](_0x8d7e2f('0x5d9'),_0x59da4c),_0xfa1d09[_0x8d7e2f('0xca9')](_0x59da4c);}function _0x147dc6(_0x382269){const _0x21a7a5=_0x182a5e;console[_0x21a7a5('0x1ca0')](_0x21a7a5('0x1e09'),_0x382269),_0x382269[_0x21a7a5('0xca9')]({'useUpdate':![]}),_0xfa1d09[_0x21a7a5('0x16c2')](_0x382269),_0xfa1d09[_0x21a7a5('0x1478')]&&(_0x12b9e5[_0x21a7a5('0x1425')](),_0x12b9e5[_0x21a7a5('0x19bd')]());}function _0x54ad23(_0x215e9b){const _0x4ca8fc=_0x182a5e;console[_0x4ca8fc('0x1ca0')](_0x4ca8fc('0x12fc'),_0x215e9b),_0xf4e4b0[_0x4ca8fc('0x2fa')]({'controller':'RecordDialogController','controllerAs':'vm','templateUrl':_0x30cff4,'parent':angular[_0x4ca8fc('0x16b1')](_0x300cbc['body']),'clickOutsideToClose':!![],'locals':{'session':_0x215e9b,'sessions':_0xfa1d09['sessions']}});}function _0x1f3cdc(_0x36d3b2){const _0x3b0951=_0x182a5e;console['debug'](_0x3b0951('0x1a3d'),_0x36d3b2),_0x36d3b2[_0x3b0951('0xdf4')]({'useUpdate':![]}),_0xfa1d09[_0x3b0951('0x1478')]&&(_0x12b9e5[_0x3b0951('0xdf4')](),_0x12b9e5['onHook']());}function _0x9cec00(_0x504013){const _0x45077b=_0x182a5e;console[_0x45077b('0x1ca0')]('refer\x20->\x20session',_0x504013);const _0x446131=_0xf4e4b0[_0x45077b('0x1d45')]()[_0x45077b('0x14e4')](_0x45077b('0x16a1'))[_0x45077b('0x1a95')]('Type\x20the\x20target')['placeholder'](_0x45077b('0x22d6'))[_0x45077b('0x10bc')]('Target')['ok']('Transfer')['cancel'](_0x45077b('0x1481'));_0xf4e4b0['show'](_0x446131)[_0x45077b('0x2788')](function(_0x12f81c){return _0x3fd001(_0x12f81c);})[_0x45077b('0x2788')](function(_0x5ed052){const _0x23061d=_0x45077b;_0x504013[_0x23061d('0x1b0')](_0x5ed052,{'eventHandlers':{'requestSucceeded':_0x545d2b(_0x504013,_0x23061d('0x302'),'top\x20right',0xbb8),'requestFailed':_0x545d2b(_0x504013,_0x23061d('0x2227'),_0x23061d('0x8f5'),0xbb8)}});});}function _0x545d2b(_0xb2ce22,_0x342086,_0x306ffc,_0x297e90){return console['debug']('onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay',_0xb2ce22,_0x342086,_0x306ffc,_0x297e90),function(){const _0x46dff3=a0_0x14e7;_0x4bd35a[_0x46dff3('0x2fa')](_0x4bd35a[_0x46dff3('0x1a30')]()[_0x46dff3('0x1a95')](_0x342086)[_0x46dff3('0x1fef')](_0x306ffc)['hideDelay'](_0x297e90)),_0xac04f2(_0xb2ce22);};}function _0x181104(_0x2488f2){const _0x44402=_0x182a5e;console[_0x44402('0x1ca0')](_0x44402('0x214d'),_0x2488f2),_0xf4e4b0['show']({'controller':_0x44402('0xc6b'),'controllerAs':'vm','templateUrl':_0x5d829d,'parent':angular[_0x44402('0x16b1')](_0x300cbc[_0x44402('0x945')]),'clickOutsideToClose':!![],'locals':{'session':_0x2488f2,'sessions':_0x283545()[_0x44402('0x9')](_0xfa1d09[_0x44402('0x1020')],{'id':_0x2488f2['id']}),'isJabraEnabled':_0xfa1d09['isJabraEnabled']}});}function _0x1f6e17(_0x64fd56){const _0x55b8e7=_0x182a5e;console[_0x55b8e7('0x1ca0')]('putOtherCallsOnHold\x20->\x20session',_0x64fd56);if(_0xfa1d09[_0x55b8e7('0x1020')][_0x55b8e7('0x2566')]>0x1)for(let _0x2e6149=0x0;_0x2e6149<_0xfa1d09[_0x55b8e7('0x1020')][_0x55b8e7('0x2566')];_0x2e6149+=0x1){_0xfa1d09[_0x55b8e7('0x1020')][_0x2e6149]['id']!==_0x64fd56['id']&&!_0xfa1d09['sessions'][_0x2e6149][_0x55b8e7('0x9c2')]()[_0x55b8e7('0x2279')]&&_0xfa1d09[_0x55b8e7('0x1020')][_0x2e6149][_0x55b8e7('0xdf4')]({'useUpdate':![]});}}function _0x2a90f9(_0x17d17d){const _0x17fe08=_0x182a5e;_0xf4e4b0[_0x17fe08('0x2fa')]({'controller':_0x17fe08('0x773'),'controllerAs':'vm','templateUrl':_0x5e0cad,'parent':angular['element'](_0x300cbc['body']),'targetEvent':_0x17d17d,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x203d5a=_0x17fe08;return navigator[_0x203d5a('0x168f')][_0x203d5a('0x2580')]();}},'locals':{'conf':_0xfa1d09[_0x17fe08('0x5f9')]}})[_0x17fe08('0x2788')](function(_0x79672a){const _0x43488e=_0x17fe08;_0x79672a&&(_0xfa1d09[_0x43488e('0x5f9')]=_0x79672a,!_0xfa1d09[_0x43488e('0x1dcf')]&&(_0xfa1d09[_0x43488e('0x1dcf')]=!![],_0x12b9e5&&_0xfa1d09[_0x43488e('0x1553')]?_0x12b9e5[_0x43488e('0x1a1')]()[_0x43488e('0x2788')](function(){const _0x47878d=_0x43488e;_0xfa1d09['isJabraInitialized']=![],_0xfa1d09[_0x47878d('0x1478')]=![],_0x6b94d(![]);})[_0x43488e('0x1cb5')](function(_0xe95488){const _0x15a356=_0x43488e;console[_0x15a356('0x5e8')](_0x15a356('0x1e46'),_0xe95488);}):_0x6b94d(![])));});}function _0x9c22af(){const _0x222d4d=_0x182a5e;_0xfa1d09['ua']['stop'](),_0x12b9e5&&_0xfa1d09[_0x222d4d('0x1553')]&&_0x12b9e5[_0x222d4d('0x1a1')](),navigator[_0x222d4d('0x168f')][_0x222d4d('0x1af7')]=function(){};}function _0x142cdb(_0x2ec083,_0x5351c1){const _0x35b221=_0x182a5e;console[_0x35b221('0x1ca0')](_0x35b221('0x275b'),_0x2ec083,_0x5351c1),_0x5351c1[_0x35b221('0x159c')]&&(_0xfa1d09[_0x35b221('0x159c')]=_0x5351c1[_0x35b221('0x159c')],_0xfa1d09[_0x35b221('0x935')]());}function _0x4898f4(_0x47d729,_0x162525){const _0x43c338=_0x182a5e;console['debug'](_0x43c338('0x1735'),_0x47d729,_0x162525);if(_0x162525[_0x43c338('0x159c')])for(let _0x2043e1=0x0;_0x2043e1<_0xfa1d09['sessions'][_0x43c338('0x2566')];_0x2043e1+=0x1){if(_0xfa1d09['sessions'][_0x2043e1][_0x43c338('0x8b4')]()&&!_0xfa1d09[_0x43c338('0x1020')][_0x2043e1]['isOnHold']()[_0x43c338('0x257c')])return _0x3fd001(_0x162525['target'])[_0x43c338('0x2788')](function(_0x5baf3f){const _0x2d3c99=_0x43c338;_0x5baf3f&&_0xfa1d09['sessions'][_0x2043e1]['refer'](_0x5baf3f,{'eventHandlers':{'requestSucceeded':_0x545d2b(_0xfa1d09[_0x2d3c99('0x1020')][_0x2043e1],'requestSucceeded',_0x2d3c99('0x8f5'),0xbb8),'requestFailed':_0x545d2b(_0xfa1d09['sessions'][_0x2043e1],_0x2d3c99('0x2227'),'top\x20right',0xbb8)}});});}}function _0x3a9c3d(){return new Promise(function(_0x52df63){const _0x5ba8bc=a0_0x14e7;let _0x280492=null;for(let _0x101eec=0x0;_0x101eec<_0xfa1d09[_0x5ba8bc('0x1020')]['length'];_0x101eec++){!_0x283545()[_0x5ba8bc('0x161')](_0xfa1d09[_0x5ba8bc('0x1020')][_0x101eec],_0x5ba8bc('0x1c5a'))?_0x280492=_0xfa1d09[_0x5ba8bc('0x1020')][_0x101eec]:!_0xfa1d09['sessions'][_0x101eec][_0x5ba8bc('0x1c5a')]&&(_0x280492=_0xfa1d09[_0x5ba8bc('0x1020')][_0x101eec]);}_0x52df63(_0x280492);});}function _0x11ffdd(_0x5d9073){const _0x12772c=_0x182a5e;console[_0x12772c('0x1ca0')]('originateHook\x20->\x20payload',_0x5d9073);const _0x1f3195=_0x5d9073['callNumber'],_0x4f9b7b=_0x5d9073[_0x12772c('0x2081')],_0x5db2f0=_0x5d9073[_0x12772c('0x1e50')];_0xfa1d09[_0x12772c('0x5f9')][_0x12772c('0x1af5')]?_0xfa1d09[_0x12772c('0x2414')][_0x12772c('0xb65')][_0x12772c('0x244d')]={'deviceId':_0xfa1d09['conf']['microphoneId']}:_0xfa1d09[_0x12772c('0x2414')][_0x12772c('0xb65')][_0x12772c('0x244d')]=!![];let _0x206a28=_0x1f3195[_0x12772c('0x10a4')](/ /g,'');_0x206a28=_0x206a28[_0x12772c('0x10a4')](/\(/g,''),_0x206a28=_0x206a28['replace'](/\)/g,'');if(_0x206a28){const _0x2cd1cf=angular[_0x12772c('0x2669')](_0xfa1d09[_0x12772c('0x2414')]);_0x2cd1cf[_0x12772c('0x2368')]=[],_0x4f9b7b&&_0x2cd1cf[_0x12772c('0x2368')][_0x12772c('0x13e3')]('X-CID:\x20'+_0x4f9b7b),_0x5db2f0&&_0x2cd1cf[_0x12772c('0x2368')][_0x12772c('0x13e3')](_0x12772c('0x14ec')+_0x5db2f0),_0xfa1d09[_0x12772c('0x1d53')]=!![],_0xfa1d09['ua']['call'](_0x206a28,_0x2cd1cf);}}function _0x25c071(_0x5f5623){const _0x6d1041=_0x182a5e;console[_0x6d1041('0x1ca0')](_0x6d1041('0x61f'),_0x5f5623);let _0x3a581d=_0xfa1d09[_0x6d1041('0x1020')];if(_0x5f5623['sessionId']){_0x3a581d=[];const _0x59095c=_0x5f5623[_0x6d1041('0x27b4')];_0x3a581d[_0x6d1041('0x13e3')](_0x1ded40(_0x5f5623[_0x6d1041('0x27b4')]));if(_0x3a581d[_0x6d1041('0x2566')]==0x0){console['warn']('call\x20with\x20session\x20Id\x20'+_0x59095c+_0x6d1041('0x25f5'));return;}}for(let _0x5c3632=0x0;_0x5c3632<_0x3a581d[_0x6d1041('0x2566')];_0x5c3632++){const _0x2d3d0e=_0x3a581d[_0x5c3632];console[_0x6d1041('0x10df')](_0x6d1041('0x2844'),_0x2d3d0e),_0xfa1d09['terminate'](_0x2d3d0e);}}function _0xca9c3b(_0x5e7ebf){const _0x1f78ea=_0x182a5e;console['debug'](_0x1f78ea('0x11a1'),_0x5e7ebf);let _0x15eb11=_0x4e4f8b();if(_0x5e7ebf['sessionId']){const _0x689c3e=_0x5e7ebf['sessionId'],_0x34e61a=_0x1ded40(_0x5e7ebf[_0x1f78ea('0x27b4')]);if(!_0x34e61a){console['warn']('call\x20with\x20session\x20Id\x20'+_0x689c3e+_0x1f78ea('0x25f5'));return;}_0x15eb11=[_0x34e61a];}for(let _0x246e89=0x0;_0x246e89<_0x15eb11[_0x1f78ea('0x2566')];_0x246e89++){const _0xed4ecf=_0x15eb11[_0x246e89];_0xfa1d09['answer'](_0xed4ecf);}}function _0x4e4f8b(){const _0x3268a0=_0x182a5e,_0x268c97=_0x283545()[_0x3268a0('0x20e8')](_0xfa1d09['sessions'],function(_0x4402a7){const _0x30246e=_0x3268a0;return _0x4402a7[_0x30246e('0x8a8')]&&!_0x4402a7['confirmed'];});return _0x268c97;}function _0xb55db7(_0x45e62b){const _0x4220e8=_0x182a5e;console['debug'](_0x4220e8('0x2768'),_0x45e62b);let _0x6866e1=_0xfa1d09['sessions'];if(_0x45e62b[_0x4220e8('0x27b4')]){_0x6866e1=[],_0x6866e1[_0x4220e8('0x13e3')](_0x1ded40(_0x45e62b[_0x4220e8('0x27b4')]));const _0x42a67b=_0x45e62b[_0x4220e8('0x27b4')];if(_0x6866e1[_0x4220e8('0x2566')]==0x0){console[_0x4220e8('0x14a')](_0x4220e8('0x6d5')+_0x42a67b+_0x4220e8('0x25f5'));return;}}for(let _0x76bc44=0x0;_0x76bc44<_0x6866e1[_0x4220e8('0x2566')];_0x76bc44++){const _0x3a1902=_0x6866e1[_0x76bc44];_0xfa1d09[_0x4220e8('0xdf4')](_0x3a1902);}}function _0x22ced5(_0x3e2275){const _0x53c394=_0x182a5e;console[_0x53c394('0x1ca0')](_0x53c394('0x2768'),_0x3e2275);if(!_0x3e2275[_0x53c394('0x27b4')]){console[_0x53c394('0x5e8')](_0x53c394('0xb0e'));return;}const _0x253490=_0x1ded40(_0x3e2275[_0x53c394('0x27b4')]);if(!_0x253490){const _0x404feb=_0x3e2275[_0x53c394('0x27b4')];console[_0x53c394('0x14a')](_0x53c394('0x6d5')+_0x404feb+_0x53c394('0x25f5'));return;}_0xfa1d09[_0x53c394('0xca9')](_0x253490);}function _0x493caf(_0x232cb5){const _0x1c0c10=_0x182a5e;console[_0x1c0c10('0x1ca0')](_0x1c0c10('0x10ff'),_0x232cb5);if(!_0x232cb5['sessionId']){console[_0x1c0c10('0x5e8')](_0x1c0c10('0xb0e'));return;}if(!_0x232cb5[_0x1c0c10('0x25f4')]){console['error'](_0x1c0c10('0xcb'));return;}const _0x7e10e6=_0x1ded40(_0x232cb5[_0x1c0c10('0x27b4')]);if(!_0x7e10e6){const _0x5da514=_0x232cb5[_0x1c0c10('0x27b4')];console[_0x1c0c10('0x14a')](_0x1c0c10('0x6d5')+_0x5da514+_0x1c0c10('0x25f5'));return;}_0x7e10e6[_0x1c0c10('0x1b0')](_0x232cb5[_0x1c0c10('0x25f4')],{'eventHandlers':{'requestSucceeded':_0x545d2b(_0x7e10e6,_0x1c0c10('0x302'),_0x1c0c10('0x8f5'),0xbb8),'requestFailed':_0x545d2b(_0x7e10e6,'requestFailed',_0x1c0c10('0x8f5'),0xbb8)}});}function _0x1ded40(_0x2ab17f){const _0x1b4be1=_0x182a5e;console[_0x1b4be1('0x1ca0')]('findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions',_0x2ab17f,_0xfa1d09['sessions']);const _0x3bae23=_0x283545()[_0x1b4be1('0x20e8')](_0xfa1d09[_0x1b4be1('0x1020')],function(_0x38ebe5){const _0x1d5523=_0x1b4be1;return _0x38ebe5[_0x1d5523('0x284')]==_0x2ab17f;});return _0x3bae23;}function _0xc7d192(_0x458e54,_0x50e03b){const _0x52bd72=_0x182a5e;return console['debug']('callCallback\x20->\x20url,\x20params',_0x458e54,_0x50e03b),_0x4f3a31({'url':_0x458e54,'method':_0x52bd72('0x253a'),'params':_0x50e03b});}function _0x557fca(_0x219712,_0x3b0cd0,_0x3b8174){const _0x5142fc=_0x182a5e,_0x577e2e=_0x283545()[_0x5142fc('0x20e8')](_0x219712,function(_0x322f43){const _0x1ca157=_0x5142fc;return _0x283545()[_0x1ca157('0x993')](_0x322f43,_0x3b0cd0);});if(_0x577e2e)return _0x283545()[_0x5142fc('0x1d7f')](_0x577e2e[_0x5142fc('0x10a4')](_0x3b0cd0,'')[_0x5142fc('0x10a4')](_0x3b8174||':',''));return![];}_0xfa1d09['$onInit']=_0x1586f0[_0x182a5e('0x1a20')](this),_0xfa1d09['type']=_0x1ea44e,_0xfa1d09[_0x182a5e('0x935')]=_0x387c8d,_0xfa1d09[_0x182a5e('0xdf4')]=_0x1f3cdc,_0xfa1d09[_0x182a5e('0x1b0')]=_0x9cec00,_0xfa1d09[_0x182a5e('0x299')]=_0x54ad23,_0xfa1d09[_0x182a5e('0xca9')]=_0x147dc6,_0xfa1d09[_0x182a5e('0xb1c')]=_0x801e14,_0xfa1d09[_0x182a5e('0x71a')]=_0xac04f2,_0xfa1d09[_0x182a5e('0x10a')]=_0xa8d865,_0xfa1d09['typeWrapper']=_0x2fedbf,_0xfa1d09['toggleDialpad']=_0x30d23a,_0xfa1d09[_0x182a5e('0x1c10')]=_0x181104,_0xfa1d09['closeDialpad']=_0x111037,_0xfa1d09[_0x182a5e('0x391')]=_0x5130b5,_0xfa1d09[_0x182a5e('0x16c2')]=_0x1f6e17,_0xfa1d09[_0x182a5e('0x18f2')]=_0x4dd778,_0xfa1d09[_0x182a5e('0x270e')]=_0x57852d,_0xfa1d09[_0x182a5e('0x14f7')]=_0x1e6dff,_0xfa1d09[_0x182a5e('0xf9d')]=_0x4c77c9,_0x2071ea[_0x182a5e('0x651')](_0x182a5e('0x11be'),_0x2a90f9),_0x2071ea[_0x182a5e('0x651')](_0x182a5e('0x13a3'),_0x9c22af),_0x2071ea['$on'](_0x182a5e('0xa1c'),_0x142cdb),_0x2071ea[_0x182a5e('0x651')]('webrtc::transfer',_0x4898f4),_0x2071ea[_0x182a5e('0x651')]('$destroy',function(){const _0x2ce41f=_0x182a5e;console[_0x2ce41f('0x1ca0')](_0x2ce41f('0x24cb')),_0x53e8d1[_0x2ce41f('0x277f')](_0x2ce41f('0x2136')),_0x53e8d1[_0x2ce41f('0x277f')]('webbar:hangup'),_0x53e8d1['removeAllListeners']('webbar:answer'),_0x53e8d1['removeAllListeners'](_0x2ce41f('0xf09')),_0x53e8d1[_0x2ce41f('0x277f')](_0x2ce41f('0x5c2')),_0x53e8d1[_0x2ce41f('0x277f')](_0x2ce41f('0x1a'));});}function _0x2d0875(){const _0x269f71=_0x34e79e;return{'restrict':'E','scope':{'conf':'='},'require':_0x269f71('0x1e2f'),'controller':_0x269f71('0x22de'),'controllerAs':_0x269f71('0xada'),'bindToController':!![],'templateUrl':_0x174292};}_0x29da3b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x56b'),_0x34e79e('0x26c2')];function _0x29da3b(_0x103dfa,_0x450887,_0x2e8c07){const _0x22d63b=_0x34e79e,_0x3bfa61=this;function _0x3de93a(){const _0x5adce9=a0_0x14e7;_0x103dfa[_0x5adce9('0x19d')](_0x3bfa61['prefix']);}function _0x58e768(_0x3405ac){_0x103dfa['hide'](_0x3405ac);}_0x3bfa61[_0x22d63b('0x56b')]=_0x450887,_0x3bfa61[_0x22d63b('0x26c2')]=_0x2e8c07,_0x3bfa61[_0x22d63b('0xca7')]=_0x58e768,_0x3bfa61[_0x22d63b('0x935')]=_0x3de93a;}const _0x266929=_0x29da3b;_0x5ca1d7[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0x519'),_0x34e79e('0x1020'),_0x34e79e('0x1f5b')],_0x47f9d4[_0x34e79e('0x2d9')]=[_0x34e79e('0x446')];function _0x47f9d4(_0x524a9d){const _0x8de2a=_0x34e79e;return{'restrict':'C','controller':['$scope',_0x8de2a('0x14bb'),function(_0xe0c21b,_0x1b3bc5){function _0x55d9f7(){const _0x2be5d5=a0_0x14e7;_0x1b3bc5[_0x2be5d5('0x1efb')](_0x2be5d5('0x1f7b'),_0x2be5d5('0xa4a')),_0x524a9d(_0x235023,0x3e8);}function _0x235023(){const _0x42748d=a0_0x14e7;_0x1b3bc5[_0x42748d('0x1efb')](_0x42748d('0x1f7b'),_0x42748d('0x1dc')),_0x524a9d(_0x55d9f7,0x3e8);}_0x55d9f7();}],'replace':!![]};}function _0x5ca1d7(_0x30ce75,_0x2959d5,_0x1874ce,_0x4d8b14,_0x511d9f){const _0x42746c=_0x34e79e,_0x5d3a02=this;_0x5d3a02[_0x42746c('0x14e4')]=_0x42746c('0x1bbf'),_0x5d3a02['sessions']=_0x4d8b14,_0x5d3a02[_0x42746c('0x1f5b')]=_0x511d9f,_0x5d3a02[_0x42746c('0xca7')]=_0x862c78,_0x5d3a02[_0x42746c('0x14a7')]=_0x2550cc,_0x5d3a02[_0x42746c('0x13b7')]=_0x1969f2,_0x5d3a02[_0x42746c('0x1ce2')]=_0x2ced90;function _0x104745(){function _0x15053d(){const _0x3007cd=a0_0x14e7;return Math['floor']((0x1+Math[_0x3007cd('0x130')]())*0x10000)['toString'](0x10)[_0x3007cd('0x2dd')](0x1);}return _0x15053d()+_0x15053d()+'-'+_0x15053d()+'-'+_0x15053d()+'-'+_0x15053d()+'-'+_0x15053d()+_0x15053d()+_0x15053d();}function _0x2ced90(_0x28729b,_0x7859d4){const _0x19fb5d=_0x42746c;console['log'](_0x19fb5d('0x794'));const _0xc30dad=_0x2959d5['defer'](),_0x5439a8=_0x7859d4||_0x28729b['filename'][_0x19fb5d('0x10a4')](/^.*[\\/]/,''),_0x12f73b=_0x5439a8[_0x19fb5d('0x1497')]('.')[0x0];return _0x1874ce[_0x19fb5d('0x1bfc')][_0x19fb5d('0x794')]({'uniqueid':_0x5d3a02['session'][_0x19fb5d('0x1be7')],'filename':_0x12f73b,'format':_0x19fb5d('0x1c99')})['$promise'][_0x19fb5d('0x2788')](function(_0x4e8645){const _0x219a16=_0x19fb5d;_0x28729b[_0x219a16('0x2377')]=_0x12f73b+'.wav',_0x28729b['mixmonitorid']=_0x4e8645['mixmonitorid'],_0x28729b[_0x219a16('0x1b51')]=_0x219a16('0x1062'),_0x5d3a02[_0x219a16('0x1f5b')][_0x219a16('0x17be')]=!![],_0xc30dad[_0x219a16('0x2322')](_0x28729b);})['catch'](function(_0x4c4b3b){const _0x1fc5d9=_0x19fb5d;_0xc30dad[_0x1fc5d9('0x9')](_0x4c4b3b);}),_0xc30dad[_0x19fb5d('0x1808')];}function _0x1969f2(_0x2a4828){const _0x46c05c=_0x42746c;return console[_0x46c05c('0x10df')](_0x46c05c('0x180')),_0x1874ce[_0x46c05c('0x1bfc')][_0x46c05c('0x180')]({'uniqueid':_0x5d3a02[_0x46c05c('0x1f5b')][_0x46c05c('0x1be7')],'mixmonitorid':_0x2a4828[_0x46c05c('0x148')]})[_0x46c05c('0x1714')][_0x46c05c('0x2788')](function(){const _0x46dbdb=_0x46c05c;_0x2a4828[_0x46dbdb('0x1b51')]=_0x46dbdb('0x619'),_0x5d3a02[_0x46dbdb('0x1f5b')][_0x46dbdb('0x17be')]=_0x283545()[_0x46dbdb('0x1d4e')](_0x5d3a02[_0x46dbdb('0x1f5b')]['monitors'],{'status':_0x46dbdb('0x1062')});})[_0x46c05c('0x1cb5')](function(_0x5c27c3){const _0x14d48b=_0x46c05c;console[_0x14d48b('0x5e8')](_0x5c27c3);});}function _0x2550cc(){const _0x54b119=_0x42746c,_0x933d94=_0x30ce75[_0x54b119('0x1d45')]({'skipHide':!![]})[_0x54b119('0x14e4')](_0x54b119('0x1e0'))[_0x54b119('0x1a95')]('Type\x20the\x20file\x20name.')['placeholder']('File\x20name')[_0x54b119('0x10bc')](_0x54b119('0xe3c'))[_0x54b119('0x1002')](_0x104745())['ok'](_0x54b119('0x2f5'))[_0x54b119('0x1801')](_0x54b119('0x1481'));_0x30ce75['show'](_0x933d94)[_0x54b119('0x2788')](function(_0x30a415){return _0x2ced90({},_0x30a415);})[_0x54b119('0x2788')](function(_0x52cd1b){const _0x34da57=_0x54b119;_0x5d3a02['session'][_0x34da57('0x1cd5')][_0x34da57('0x13e3')](_0x52cd1b);});}function _0x862c78(){const _0x19aada=_0x42746c;_0x30ce75[_0x19aada('0x19d')]();}}_0x481dd5['$inject']=['$mdDialog',_0x34e79e('0x1b5e'),_0x34e79e('0x1020'),_0x34e79e('0x1f5b'),_0x34e79e('0x1478')];function _0x481dd5(_0x4969ef,_0x39eb87,_0x3399d0,_0x1c79ca,_0x1d2bcb){const _0x3fc31a=_0x34e79e,_0x331eeb=this,_0x3dc85f=window['jabra'];_0x331eeb[_0x3fc31a('0x14e4')]=_0x3fc31a('0xc3a'),_0x331eeb[_0x3fc31a('0x1020')]=_0x3399d0,_0x331eeb[_0x3fc31a('0x1f5b')]=_0x1c79ca,_0x331eeb['isJabraEnabled']=_0x1d2bcb,_0x331eeb[_0x3fc31a('0x155a')]=null;_0x3399d0[_0x3fc31a('0x2566')]&&(_0x331eeb[_0x3fc31a('0x159c')]=_0x3399d0[0x0]['user']);_0x331eeb['closeDialog']=_0x3240c1,_0x331eeb[_0x3fc31a('0x589')]=_0x2f25f2;function _0x2f25f2(){const _0x35428f=_0x3fc31a;let _0x4ac7b3,_0x1ca37e;const _0x3e1909=_0x283545()['find'](_0x3399d0,function(_0x6af77c){const _0x595b72=a0_0x14e7;if(_0x6af77c[_0x595b72('0x1e6a')]===_0x331eeb['target'])return _0x6af77c;});_0x3e1909['outgoing']?(_0x4ac7b3=_0x3e1909,_0x1ca37e=_0x331eeb['session']):(_0x4ac7b3=_0x331eeb[_0x35428f('0x1f5b')],_0x1ca37e=_0x3e1909),_0x1ca37e[_0x35428f('0x1b0')](_0x4ac7b3[_0x35428f('0x1e6a')],{'replaces':_0x4ac7b3,'eventHandlers':{'requestSucceeded':_0xb1d941(_0x1c79ca,_0x35428f('0x302'),_0x35428f('0x8f5'),0xbb8,_0x331eeb[_0x35428f('0x1478')]),'requestFailed':_0xb1d941(_0x1c79ca,_0x35428f('0x2227'),'top\x20right',0xbb8,_0x331eeb[_0x35428f('0x1478')])}});}function _0xb1d941(_0x17189d,_0x46396f,_0x3d8e67,_0x5a9137,_0x91370e){const _0x1d370d=_0x3fc31a;return console[_0x1d370d('0x1ca0')](_0x1d370d('0x12b0'),_0x17189d,_0x46396f,_0x3d8e67,_0x5a9137),function(){const _0x378b72=_0x1d370d;_0x39eb87[_0x378b72('0x2fa')](_0x39eb87['simple']()[_0x378b72('0x1a95')](_0x46396f)['position'](_0x3d8e67)[_0x378b72('0x1e9d')](_0x5a9137)),_0x17189d['terminate'](),_0x3dc85f&&_0x91370e&&_0x3dc85f['onHook'](),_0x3240c1();};}function _0x3240c1(_0xe00fe5){const _0xe3d885=_0x3fc31a;_0x4969ef[_0xe3d885('0x19d')](_0xe00fe5);}}const _0x150120=_0x481dd5;_0x369f1a[_0x34e79e('0x2d9')]=['$mdDialog',_0x34e79e('0x5f9'),_0x34e79e('0xf00')];function _0x369f1a(_0xf1642d,_0x5d1f24,_0x4d49db){const _0x45ef03=_0x34e79e,_0x37e6ce=this;_0x283545()[_0x45ef03('0x1a90')](_0x4d49db,function(_0x3288e4){const _0x3bf36d=_0x45ef03;return _0x3288e4[_0x3bf36d('0x2742')]===_0x3bf36d('0x1757')&&(_0x3288e4['deviceId']===_0x3bf36d('0x1c15')||_0x3288e4['deviceId']==='communications')||_0x3288e4[_0x3bf36d('0x2742')]===_0x3bf36d('0x1f87')&&(_0x3288e4[_0x3bf36d('0x747')]==='default'||_0x3288e4[_0x3bf36d('0x747')]==='communications');}),_0x5d1f24[_0x45ef03('0xd07')]=_0x208e60(_0x4d49db,'audiooutput',_0x45ef03('0xd07')),_0x5d1f24[_0x45ef03('0xd5b')]=_0x208e60(_0x4d49db,_0x45ef03('0x1f87'),_0x45ef03('0xd5b')),_0x5d1f24[_0x45ef03('0x1af5')]=_0x208e60(_0x4d49db,'audioinput',_0x45ef03('0x1af5')),_0x5d1f24[_0x45ef03('0x351')]=_0x5d1f24[_0x45ef03('0x351')]||0.5,_0x5d1f24[_0x45ef03('0x1859')]=_0x5d1f24[_0x45ef03('0x1859')]||0.5,_0x5d1f24[_0x45ef03('0x14d6')]=_0x5d1f24[_0x45ef03('0x14d6')]||0x1,_0x5d1f24[_0x45ef03('0x2232')]=_0x5d1f24['ringingMute']||![],_0x5d1f24[_0x45ef03('0xf67')]=_0x5d1f24['speakerMute']||![],_0x5d1f24[_0x45ef03('0xce7')]=_0x5d1f24[_0x45ef03('0xce7')]||![],_0x37e6ce[_0x45ef03('0x5f9')]=angular[_0x45ef03('0x2669')](_0x5d1f24),_0x37e6ce[_0x45ef03('0xf00')]=_0x4d49db,_0x37e6ce[_0x45ef03('0xef3')]=_0x40ab5e,_0x37e6ce[_0x45ef03('0xca7')]=_0x37e352,_0x37e6ce['isCompatibleBrowser']=_0x2c8764;function _0x2c8764(){const _0x2b4480=_0x45ef03;return _0x37e6ce[_0x2b4480('0x5f9')][_0x2b4480('0xcd8')][_0x2b4480('0xc2e')]()===_0x2b4480('0x23cd')||_0x37e6ce[_0x2b4480('0x5f9')][_0x2b4480('0xcd8')][_0x2b4480('0xc2e')]()===_0x2b4480('0x13af')||_0x37e6ce[_0x2b4480('0x5f9')][_0x2b4480('0xcd8')][_0x2b4480('0xc2e')]()===_0x2b4480('0x2168');}function _0x208e60(_0x273b07,_0x424361,_0x58f058){const _0x255b8f=_0x45ef03;let _0xec9906;if(!_0x5d1f24[_0x58f058])_0xec9906=_0x283545()['find'](_0x273b07,function(_0x1d32da){return _0x1d32da['kind']===_0x424361;}),_0xec9906&&(_0x5d1f24[_0x58f058]=_0xec9906['deviceId']);else{_0xec9906=_0x283545()[_0x255b8f('0x20e8')](_0x273b07,function(_0x41f0a6){const _0x4b2718=_0x255b8f;return _0x41f0a6[_0x4b2718('0x747')]===_0x5d1f24[_0x58f058];});if(_0xec9906)return _0xec9906[_0x255b8f('0x747')];const _0x29f5fe=_0x283545()[_0x255b8f('0x1855')](_0x273b07,function(_0x2be31f){const _0x3b7e64=_0x255b8f;return _0x2be31f[_0x3b7e64('0x2742')]===_0x424361;});if(_0x29f5fe>=0x0)return _0x273b07[_0x29f5fe]['deviceId'];}return _0x5d1f24[_0x58f058]||null;}function _0x40ab5e(){const _0x290137=_0x45ef03;_0xf1642d[_0x290137('0x19d')](_0x37e6ce['conf']);}function _0x37e352(){const _0x49f73b=_0x45ef03;_0xf1642d[_0x49f73b('0x19d')]();}}const _0x3148e1=_0x369f1a,_0x1dbc19=_0x18dd13['p']+_0x34e79e('0x1d2e');_0x213892[_0x34e79e('0x2d9')]=[_0x34e79e('0x135d'),_0x34e79e('0x2142')],_0x84a8e5[_0x34e79e('0x2d9')]=[_0x34e79e('0x198f'),'quickFilterManager'];function _0x162313(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x84a8e5,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1dbc19};}function _0x84a8e5(_0xfcb678,_0xc6f218){const _0x36aae8=_0x34e79e,_0xe42de=this;_0xe42de[_0x36aae8('0x1488')]={},_0xe42de[_0x36aae8('0xb0f')]={},_0xe42de[_0x36aae8('0x15f3')]=_0xfcb678[_0x36aae8('0x15f3')],_0xe42de[_0x36aae8('0x16ac')]=_0x3e1edf,_0xe42de[_0x36aae8('0x2584')]=_0x44f2c6,_0xe42de['onMultiselectSelection']=_0x484097,_0xe42de[_0x36aae8('0x1ec3')]=_0x55f2fb,_0xe42de[_0x36aae8('0x1144')]=_0x35b26e,_0xe42de[_0x36aae8('0x1776')]=_0x31e9f6,_0xe42de['selectAll']=_0x12fb80;function _0x3e1edf(_0x3e0eee){_0x513f77(_0x3e0eee);}function _0x44f2c6(_0xad36bd){const _0x24d39e=_0x36aae8,_0x2079fa=_0xad36bd[_0x24d39e('0x234b')];_0xe42de[_0x24d39e('0x135a')][_0x2079fa]?_0xe42de[_0x24d39e('0x1488')][_0x2079fa]=_0xfcb678[_0x24d39e('0x1d4c')](_0xe42de[_0x24d39e('0x135a')][_0x2079fa]):_0xe42de[_0x24d39e('0x1488')][_0x2079fa]={'dateStart':null};}function _0x484097(_0x2b89f3){_0x513f77(_0x2b89f3),_0xe42de['search']();}function _0x55f2fb(_0x2e3b26){const _0x5664ec=_0x36aae8,_0x415a1f=_0x2e3b26[_0x5664ec('0x234b')];_0xe42de[_0x5664ec('0x1488')][_0x415a1f][_0x5664ec('0x11f')]?_0xe42de[_0x5664ec('0x135a')][_0x415a1f]={'$gte':_0x59f37a()(_0xe42de[_0x5664ec('0x1488')][_0x415a1f][_0x5664ec('0x11f')])[_0x5664ec('0x2827')](0x0,!![])[_0x5664ec('0x22b4')](),'$lte':_0x59f37a()(_0xe42de[_0x5664ec('0x1488')][_0x415a1f][_0x5664ec('0x1bf9')])[_0x5664ec('0x2827')](0x0,!![])[_0x5664ec('0x9b8')](0x17,_0x5664ec('0x1ba3'))[_0x5664ec('0x9b8')](0x3b,_0x5664ec('0xa3e'))[_0x5664ec('0x9b8')](0x3b,_0x5664ec('0x430'))['format']()}:_0xe42de[_0x5664ec('0x135a')][_0x415a1f]=undefined,_0xe42de['search']();}function _0x35b26e(_0x2f25b5){const _0x90f9e6=_0x36aae8,_0x346cb6=_0x2f25b5[_0x90f9e6('0x234b')];_0xe42de[_0x90f9e6('0x1488')][_0x346cb6]={'dateStart':null},delete _0xe42de[_0x90f9e6('0x135a')][_0x346cb6],_0xe42de[_0x90f9e6('0x470')]();}function _0x12fb80(_0x249d87){const _0x7640e2=_0x36aae8,_0x258851=_0x249d87[_0x7640e2('0x234b')],_0x38f096=_0x249d87[_0x7640e2('0x279d')]||'id';_0xe42de[_0x7640e2('0x135a')][_0x258851]=_0x283545()[_0x7640e2('0x155d')](_0x249d87['options'],_0x38f096),_0x513f77(_0x249d87),_0xe42de[_0x7640e2('0x470')]();}function _0x31e9f6(_0x7b4a39){const _0x4b9aca=_0x36aae8,_0xccfb88=_0x7b4a39[_0x4b9aca('0x234b')],_0x2deabf=_0x7b4a39[_0x4b9aca('0x279d')]||'id';_0xe42de[_0x4b9aca('0x135a')][_0xccfb88]=_0x7b4a39['clearAll']===![]?[_0x283545()[_0x4b9aca('0x1123')](_0x7b4a39[_0x4b9aca('0x784')])[_0x2deabf]]:[],_0x513f77(_0x7b4a39),_0xe42de[_0x4b9aca('0x470')]();}function _0x513f77(_0xb4aad4){const _0x25734f=_0x36aae8,_0x2ac5a6=_0xb4aad4[_0x25734f('0x234b')],_0x10f867={'param':_0xe42de[_0x25734f('0x135a')][_0x2ac5a6],'resources':_0xb4aad4[_0x25734f('0x784')],'placeholder':_0xb4aad4['placeholder'],'ngValue':_0xb4aad4[_0x25734f('0x279d')]};_0xc6f218[_0x25734f('0x139a')](_0x10f867)[_0x25734f('0x2788')](function(_0x2fedb7){_0xe42de['placeholders'][_0x2ac5a6]=_0x2fedb7;});}}function _0x213892(_0x34f45d,_0x16cb93){const _0x22bf00={'localizationMap':_0x16cb93,'setSelectedDate':_0x53f054};function _0x53f054(_0x4ff908){const _0x47a971=a0_0x14e7,_0x25dd87=new Date(_0x59f37a()['utc'](_0x4ff908[_0x47a971('0x26a3')])[_0x47a971('0x22b4')](_0x47a971('0x1c0b'))),_0x5b56b4=new Date(_0x59f37a()['utc'](_0x4ff908['$lte'])[_0x47a971('0x22b4')]('YYYY-MM-DD')),_0x54898d={'dateStart':new Date(_0x25dd87[_0x47a971('0xf52')](),_0x25dd87[_0x47a971('0xb9c')](),_0x25dd87[_0x47a971('0x17f7')]()),'dateEnd':new Date(_0x5b56b4['getFullYear'](),_0x5b56b4[_0x47a971('0xb9c')](),_0x5b56b4[_0x47a971('0x17f7')]())};return _0x54898d['selectedTemplateName']=_0x52fb9f(_0x54898d),_0x54898d;}function _0x52fb9f(_0x3e736d){const _0x43abc1=a0_0x14e7;if(_0x59f37a()(_0x3e736d['dateStart'])[_0x43abc1('0x205a')](_0x3e736d[_0x43abc1('0x1bf9')])){if(_0x42cd5e(_0x3e736d))return _0x22bf00[_0x43abc1('0x15f3')][_0x43abc1('0x1d09')];else return _0x4ce990(_0x3e736d)?_0x22bf00[_0x43abc1('0x15f3')][_0x43abc1('0x1e20')]:_0x34f45d(_0x43abc1('0x1012'))(_0x3e736d['dateStart'],_0x43abc1('0x2590'));}else{if(_0x5adf20(_0x3e736d))return _0x22bf00[_0x43abc1('0x15f3')][_0x43abc1('0x91b')];else{if(_0x49e355(_0x3e736d))return _0x22bf00['localizationMap'][_0x43abc1('0x1ff3')];else{if(_0xa352ed(_0x3e736d))return _0x22bf00[_0x43abc1('0x15f3')]['This\x20Month'];else{if(_0x9918b6(_0x3e736d))return _0x22bf00[_0x43abc1('0x15f3')][_0x43abc1('0x2509')];else{if(_0x199db9(_0x3e736d))return _0x22bf00[_0x43abc1('0x15f3')]['This\x20Year'];else return _0x555d5d(_0x3e736d)?_0x22bf00[_0x43abc1('0x15f3')][_0x43abc1('0x171b')]:_0x34f45d(_0x43abc1('0x1012'))(_0x3e736d[_0x43abc1('0x11f')],'dd'+(_0x3e736d[_0x43abc1('0x11f')][_0x43abc1('0xb9c')]()!==_0x3e736d['dateEnd'][_0x43abc1('0xb9c')]()||_0x3e736d[_0x43abc1('0x11f')][_0x43abc1('0xf52')]()!==_0x3e736d[_0x43abc1('0x1bf9')][_0x43abc1('0xf52')]()?_0x43abc1('0x370'):'')+(_0x3e736d['dateStart'][_0x43abc1('0xf52')]()!==_0x3e736d[_0x43abc1('0x1bf9')][_0x43abc1('0xf52')]()?_0x43abc1('0x1aa9'):''))+'\x20-\x20'+_0x34f45d(_0x43abc1('0x1012'))(_0x3e736d[_0x43abc1('0x1bf9')],_0x43abc1('0x2590'));}}}}}}function _0x42cd5e(_0x382594){const _0x5e0156=a0_0x14e7;return _0x59f37a()()[_0x5e0156('0x13e4')](_0x5e0156('0xf'))[_0x5e0156('0x205a')](_0x382594[_0x5e0156('0x11f')]);}function _0x4ce990(_0x30a2be){const _0x57344c=a0_0x14e7;return _0x59f37a()()['subtract'](0x1,_0x57344c('0xab5'))[_0x57344c('0x13e4')](_0x57344c('0xf'))['isSame'](_0x30a2be[_0x57344c('0x11f')]);}function _0x5adf20(_0x5ca05b){const _0x1b2584=a0_0x14e7;return _0x59f37a()()[_0x1b2584('0x13e4')](_0x1b2584('0x11e1'))[_0x1b2584('0x205a')](_0x5ca05b[_0x1b2584('0x11f')],_0x1b2584('0xf'))&&_0x59f37a()()['endOf']('isoWeek')[_0x1b2584('0x205a')](_0x5ca05b['dateEnd'],'day');}function _0x49e355(_0x1c0a78){const _0x2e4527=a0_0x14e7;return _0x59f37a()()[_0x2e4527('0x10e8')](0x1,'weeks')[_0x2e4527('0x13e4')](_0x2e4527('0x11e1'))[_0x2e4527('0x205a')](_0x1c0a78[_0x2e4527('0x11f')],'day')&&_0x59f37a()()[_0x2e4527('0x10e8')](0x1,_0x2e4527('0x58d'))[_0x2e4527('0x142e')](_0x2e4527('0x11e1'))[_0x2e4527('0x205a')](_0x1c0a78[_0x2e4527('0x1bf9')],'day');}function _0xa352ed(_0x3d1371){const _0x5cf64d=a0_0x14e7;return _0x59f37a()()[_0x5cf64d('0x13e4')](_0x5cf64d('0x2dc'))[_0x5cf64d('0x205a')](_0x3d1371[_0x5cf64d('0x11f')],_0x5cf64d('0xf'))&&_0x59f37a()()[_0x5cf64d('0x142e')]('month')['isSame'](_0x3d1371['dateEnd'],_0x5cf64d('0xf'));}function _0x9918b6(_0x30884b){const _0x1f9e7e=a0_0x14e7;return _0x59f37a()()[_0x1f9e7e('0x10e8')](0x1,'months')[_0x1f9e7e('0x13e4')]('month')[_0x1f9e7e('0x205a')](_0x30884b['dateStart'],_0x1f9e7e('0xf'))&&_0x59f37a()()[_0x1f9e7e('0x10e8')](0x1,'months')[_0x1f9e7e('0x142e')](_0x1f9e7e('0x2dc'))[_0x1f9e7e('0x205a')](_0x30884b[_0x1f9e7e('0x1bf9')],'day');}function _0x199db9(_0x424efe){const _0x15c9f8=a0_0x14e7;return _0x59f37a()()[_0x15c9f8('0x13e4')]('year')[_0x15c9f8('0x205a')](_0x424efe[_0x15c9f8('0x11f')],_0x15c9f8('0xf'))&&_0x59f37a()()['endOf'](_0x15c9f8('0x25cd'))['isSame'](_0x424efe[_0x15c9f8('0x1bf9')],_0x15c9f8('0xf'));}function _0x555d5d(_0x1a57ba){const _0x387c6a=a0_0x14e7;return _0x59f37a()()[_0x387c6a('0x10e8')](0x1,'years')[_0x387c6a('0x13e4')](_0x387c6a('0x25cd'))[_0x387c6a('0x205a')](_0x1a57ba[_0x387c6a('0x11f')],_0x387c6a('0xf'))&&_0x59f37a()()[_0x387c6a('0x10e8')](0x1,'years')['endOf'](_0x387c6a('0x25cd'))['isSame'](_0x1a57ba[_0x387c6a('0x1bf9')],_0x387c6a('0xf'));}return _0x22bf00;}function _0x35ad00(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x58c7ec,_0x3c28b5){const _0x897263=a0_0x14e7,_0x31b25b=_0x58c7ec['msRandomClass'][Math[_0x897263('0xe98')](Math['random']()*_0x58c7ec['msRandomClass'][_0x897263('0x2566')])];_0x3c28b5[_0x897263('0x19df')](_0x31b25b);}};}const _0x895a72=_0x35ad00;_0x55d126['$inject']=['api'];function _0x55d126(_0x2ae6b3){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0xe0c6dc,_0x19f881){const _0x61f9db=a0_0x14e7;let _0x1dd949=![];const _0x37b2b6=document[_0x61f9db('0x1ae6')](_0x61f9db('0x244d'));!_0xe0c6dc[_0x61f9db('0x1486')]&&_0x37b2b6[_0x61f9db('0x1c6b')](_0x61f9db('0x1293'),'nodownload'),_0x37b2b6[_0x61f9db('0x1c6b')](_0x61f9db('0x2582'),_0x61f9db('0x1dc')),_0x37b2b6['setAttribute'](_0x61f9db('0xa5d'),''),_0x37b2b6[_0x61f9db('0x1c6b')](_0x61f9db('0x1d22'),_0x61f9db('0x243f')),_0x37b2b6[_0x61f9db('0x1c6b')]('src','\x20'),_0x37b2b6[_0x61f9db('0x50f')]=function(_0x44a717){const _0x2834a6=_0x61f9db;!_0x1dd949&&(_0x1dd949=!![],_0x44a717[_0x2834a6('0xf57')](),_0x2ae6b3[_0xe0c6dc[_0x2834a6('0x9b0')]||_0x2834a6('0x14ff')][_0x2834a6('0x1486')]({'id':_0xe0c6dc['id']})[_0x2834a6('0x1714')][_0x2834a6('0x2788')](function(_0x4d0e2a){const _0xb15081=_0x2834a6,_0x2ebabb=[_0x4d0e2a[_0xb15081('0x3f1')]],_0x5a781c=new Blob(_0x2ebabb,{'type':_0x4d0e2a['type']});_0x37b2b6['setAttribute'](_0xb15081('0x1d7'),_0x4d0e2a['type']),_0x37b2b6[_0xb15081('0x1c6b')](_0xb15081('0x1269'),URL[_0xb15081('0x1b0d')](_0x5a781c)),_0x37b2b6[_0xb15081('0x13c5')]();})[_0x2834a6('0x1cb5')](function(_0x4c34c6){const _0xac1e96=_0x2834a6;console[_0xac1e96('0x5e8')](_0x4c34c6);}));},_0x19f881[_0x61f9db('0xc44')](_0x37b2b6);}};}const _0x19eb5c=_0x55d126;function _0x5e5dc5(){return{'restrict':'A','link':function(_0x4e9826,_0x26b973){const _0x2276c1=a0_0x14e7,_0x499c55=angular['element'](_0x2276c1('0x83b'));_0x26b973[_0x2276c1('0x816')](_0x499c55),_0x499c55[_0x2276c1('0xc44')](_0x26b973);}};}const _0x35d032=_0x5e5dc5;var _0x553801=_0x18dd13(0x1703),_0x313134=_0x18dd13['n'](_0x553801);_0x107987[_0x34e79e('0x2d9')]=['$timeout',_0x34e79e('0x1e72'),_0x34e79e('0x9c4'),_0x34e79e('0x26af')];function _0x2ba130(){const _0x11922c=_0x34e79e;let _0x331fb0={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this['$get']=function(){function _0x2de2b4(){return _0x331fb0;}const _0x8b8f={'getConfig':_0x2de2b4};return _0x8b8f;};function _0x3877b6(_0x5252ce){const _0x3387fd=a0_0x14e7;_0x331fb0=angular[_0x3387fd('0x192a')]({},_0x331fb0,_0x5252ce);}this[_0x11922c('0x1a22')]=_0x3877b6;}function _0x107987(_0x2af2b3,_0x3611d7,_0x18c63e,_0x36139a){return{'restrict':'AE','compile':function(_0x392c1d){const _0x48abac=a0_0x14e7;if(_0x36139a[_0x48abac('0x221')](_0x48abac('0x1edd')))return;if(_0x36139a[_0x48abac('0x221')]('disableCustomScrollbarsOnMobile')&&_0x18c63e['isMobile']())return;return _0x392c1d[_0x48abac('0x19df')]('ms-scroll'),function _0x14f3a9(_0x20a0dd,_0xeacf3b,_0x6cf390){const _0x34ad52=_0x48abac;let _0x4c9168={};_0x6cf390['msScroll']&&(_0x4c9168=_0x20a0dd[_0x34ad52('0x1ddb')](_0x6cf390['msScroll']));_0x4c9168=angular[_0x34ad52('0x192a')]({},_0x3611d7[_0x34ad52('0x221')](),_0x4c9168),_0x313134()[_0x34ad52('0x1060')](_0xeacf3b[0x0],_0x4c9168);function _0x4e807f(){const _0xd22dac=_0x34ad52;_0x313134()[_0xd22dac('0x2740')](_0xeacf3b[0x0]);}_0xeacf3b['on'](_0x34ad52('0x1f8e'),_0x4e807f),_0x20a0dd[_0x34ad52('0x1662')](function(){const _0x45a319=_0x34ad52;return _0xeacf3b[_0x45a319('0xab7')](_0x45a319('0x76d'));},function(_0x19686a,_0x3b92af){const _0x435797=_0x34ad52;if(angular[_0x435797('0x1fcf')](_0x19686a)||angular[_0x435797('0x2309')](_0x19686a,_0x3b92af))return;_0x4e807f();}),_0x20a0dd['$watch'](function(){const _0x2c456d=_0x34ad52;return _0xeacf3b[_0x2c456d('0xab7')](_0x2c456d('0x21f5'));},function(_0x4843e,_0x8bd526){const _0x44b2e3=_0x34ad52;if(angular[_0x44b2e3('0x1fcf')](_0x4843e)||angular[_0x44b2e3('0x2309')](_0x4843e,_0x8bd526))return;_0x4e807f();}),_0x20a0dd[_0x34ad52('0x651')](_0x34ad52('0x26ac'),function(){const _0x37fff2=_0x34ad52;_0xeacf3b[_0x37fff2('0x938')](_0x37fff2('0x1f8e')),_0x313134()[_0x37fff2('0x17ce')](_0xeacf3b[0x0]);});};}};}const _0xfd90aa=_0x18dd13['p']+_0x34e79e('0x9ba');_0x1eaf96['$inject']=[_0x34e79e('0x1580')],_0x2c72bd[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x14bb'),'$timeout'];function _0x2c72bd(_0x3c6395,_0x3b3947,_0x2bbc07){const _0x16e09a=_0x34e79e,_0x285dfc=this;_0x285dfc['collapsed']=!![],_0x285dfc['query']=undefined,_0x285dfc[_0x16e09a('0x165e')]={'debounce':_0x285dfc[_0x16e09a('0xc1e')]||0x0};const _0x4de32a=_0x285dfc[_0x16e09a('0xb0d')]&&_0x285dfc[_0x16e09a('0xb0d')]==_0x16e09a('0x1001')?!![]:![];_0x285dfc['resultsLoading']=![],_0x285dfc[_0x16e09a('0xc64')]=null,_0x285dfc[_0x16e09a('0x2697')]=0x0,_0x285dfc[_0x16e09a('0x8d6')]=![],_0x285dfc[_0x16e09a('0x122e')]=_0x117d4c,_0x285dfc[_0x16e09a('0x2708')]=_0x2cb305,_0x285dfc[_0x16e09a('0x1e53')]=_0x9d3aa4,_0x285dfc['collapse']=_0x84156b,_0x285dfc[_0x16e09a('0x8e3')]=_0x1d8b91,_0x285dfc[_0x16e09a('0x251b')]=_0x5a8b9a,_0x285dfc[_0x16e09a('0x23a7')]=_0x5d6ed9,_0x285dfc[_0x16e09a('0x1fdf')]=_0x3407ce,_0x285dfc[_0x16e09a('0x180c')]=_0x476770,_0x285dfc['handleResultClick']=_0x83430a,_0x285dfc[_0x16e09a('0x12c3')]=_0x5353ff;function _0x117d4c(){const _0x3fb6da=_0x16e09a;_0x3c6395['$watch'](_0x3fb6da('0x25fe'),function(_0xa672d7,_0x1e95bb){const _0xe32885=_0x3fb6da;if(angular[_0xe32885('0x1fcf')](_0xa672d7))return;if(angular[_0xe32885('0x2309')](_0xa672d7,_0x1e95bb))return;if(_0x285dfc[_0xe32885('0xfbc')]){if(_0xa672d7)_0x3c6395[_0xe32885('0x1e53')]();else return;}const _0x364714=_0x3c6395[_0xe32885('0x7d0')]['$eval'](_0x285dfc[_0xe32885('0x4db')],{'query':_0xa672d7}),_0x589fcc=angular[_0xe32885('0x1ed4')](_0x364714),_0x18b770=_0x364714&&!!_0x364714[_0xe32885('0x2788')];_0x589fcc&&_0x285dfc[_0xe32885('0x2708')](_0x364714),_0x18b770&&(_0x285dfc[_0xe32885('0x17f1')]=!![],_0x364714[_0xe32885('0x2788')](function(_0xfabb2b){_0x285dfc['populateResults'](_0xfabb2b);},function(){const _0x1a30d4=_0xe32885;_0x285dfc[_0x1a30d4('0x2708')]([]);})['finally'](function(){const _0x5a8917=_0xe32885;_0x285dfc[_0x5a8917('0x17f1')]=![];}));});}function _0x2cb305(_0x311448){const _0x3dbfb4=_0x16e09a;if(_0x285dfc['collapsed'])return;const _0xa1ce7a=angular[_0x3dbfb4('0x1ed4')](_0x311448),_0x3aed66=_0x311448===null;if(!_0xa1ce7a&&!_0x3aed66)return;_0x285dfc['selectedResultIndex']=0x0,_0x285dfc[_0x3dbfb4('0xc64')]=_0x311448;}function _0x9d3aa4(){const _0x2becae=_0x16e09a;_0x285dfc[_0x2becae('0xfbc')]=![],_0x3c6395['expand'](),_0x285dfc[_0x2becae('0xfa9')]&&angular[_0x2becae('0x5b9')](_0x285dfc['onExpand'])&&_0x285dfc[_0x2becae('0xfa9')]();}function _0x84156b(){const _0x357a3d=_0x16e09a;_0x285dfc['query']='',_0x285dfc[_0x357a3d('0x2708')](null),_0x285dfc[_0x357a3d('0xfbc')]=!![],_0x3c6395[_0x357a3d('0x1fd1')](),_0x285dfc[_0x357a3d('0xd5a')]&&angular[_0x357a3d('0x5b9')](_0x285dfc['onCollapse'])&&_0x285dfc['onCollapse']();}function _0x1d8b91(){if(!_0x4de32a)return;_0x285dfc['collapse']();}function _0x5a8b9a(_0x2a4eae){const _0x2d791d=_0x16e09a;_0x2a4eae[_0x2d791d('0xf57')]();}function _0x5d6ed9(_0x3bff5a){const _0x18e5d2=_0x16e09a,_0x5775ef=_0x3bff5a[_0x18e5d2('0xe88')],_0x116420=[0x1b,0x26,0x28];_0x116420['indexOf'](_0x5775ef)>-0x1&&_0x3bff5a[_0x18e5d2('0xf57')]();switch(_0x5775ef){case 0xd:if(!_0x285dfc['results'])return;_0x285dfc[_0x18e5d2('0x9bf')](_0x285dfc[_0x18e5d2('0xc64')][_0x285dfc[_0x18e5d2('0x2697')]]);break;case 0x1b:_0x285dfc[_0x18e5d2('0x1fd1')]();break;case 0x26:_0x285dfc['selectedResultIndex']-0x1>=0x0&&(_0x285dfc['selectedResultIndex']--,_0x285dfc[_0x18e5d2('0x12c3')]());break;case 0x28:if(!_0x285dfc[_0x18e5d2('0xc64')])return;_0x285dfc[_0x18e5d2('0x2697')]+0x1<_0x285dfc[_0x18e5d2('0xc64')]['length']&&(_0x285dfc[_0x18e5d2('0x2697')]++,_0x285dfc[_0x18e5d2('0x12c3')]());break;default:break;}}function _0x3407ce(_0x218e41){const _0x3e35c2=_0x16e09a;if(_0x285dfc[_0x3e35c2('0x8d6')])return;_0x285dfc[_0x3e35c2('0x2697')]=_0x218e41;}function _0x476770(){const _0x6bc1a2=_0x16e09a;_0x285dfc[_0x6bc1a2('0x8d6')]=!![],_0x2bbc07[_0x6bc1a2('0x1801')](_0x285dfc['mouseEventIgnoreTimeout']),_0x285dfc[_0x6bc1a2('0xd2e')]=_0x2bbc07(function(){const _0x2c1bf4=_0x6bc1a2;_0x285dfc[_0x2c1bf4('0x8d6')]=![];},0xfa);}function _0x83430a(_0x652b24){const _0x23d05f=_0x16e09a;_0x285dfc[_0x23d05f('0x1e8b')]&&_0x285dfc[_0x23d05f('0x1e8b')]({'item':_0x652b24}),_0x285dfc[_0x23d05f('0x1fd1')]();}function _0x5353ff(){const _0x2ed065=_0x16e09a,_0x5e1b01=_0x3b3947[_0x2ed065('0x20e8')]('.ms-search-bar-results'),_0x45deb9=angular[_0x2ed065('0x16b1')](_0x5e1b01[_0x2ed065('0x20e8')](_0x2ed065('0xb97'))[_0x285dfc[_0x2ed065('0x2697')]]);if(_0x5e1b01&&_0x45deb9){const _0x5cf149=_0x45deb9[_0x2ed065('0x1fef')]()[_0x2ed065('0x1705')]-0x8,_0x2c435c=_0x45deb9[_0x2ed065('0x1fef')]()[_0x2ed065('0x1705')]+_0x45deb9[_0x2ed065('0x62e')]()+0x8;_0x285dfc[_0x2ed065('0x180c')](),_0x5e1b01[_0x2ed065('0x438')]()>_0x5cf149&&_0x5e1b01['scrollTop'](_0x5cf149),_0x2c435c>_0x5e1b01[_0x2ed065('0x1049')]()+_0x5e1b01[_0x2ed065('0x438')]()&&_0x5e1b01['scrollTop'](_0x2c435c-_0x5e1b01[_0x2ed065('0x1049')]());}}}function _0x1eaf96(_0x3ad646){const _0x27644b=_0x34e79e;return{'restrict':'E','scope':{},'require':_0x27644b('0x39b'),'controller':_0x27644b('0xf4'),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0xfd90aa,'compile':function(_0x1cf146){const _0x337aa3=_0x27644b;return _0x1cf146['addClass'](_0x337aa3('0x1c97')),function _0x5d8175(_0x17bc4e,_0x9e3a09){const _0x12259f=_0x337aa3,_0xba94c8=_0x3ad646[_0x12259f('0x20e8')](_0x12259f('0x945'));function _0x35a59d(){const _0x2bd8ab=_0x12259f;_0x9e3a09[_0x2bd8ab('0x19df')](_0x2bd8ab('0xbae'));if(_0x17bc4e['vm'][_0x2bd8ab('0x7c3')]==='down'){_0x9e3a09[_0x2bd8ab('0x19df')](_0x2bd8ab('0x146a'));const _0x27d1fe=_0x9e3a09[_0x2bd8ab('0x236f')](_0x2bd8ab('0x11df'));if(_0x27d1fe)_0x27d1fe[_0x2bd8ab('0x19df')]('h-128');}_0xba94c8['addClass']('ms-search-bar-expanded');}function _0x48adcc(){const _0x4bd258=_0x12259f;_0x9e3a09[_0x4bd258('0x817')](_0x4bd258('0xbae'));if(_0x17bc4e['vm'][_0x4bd258('0x7c3')]===_0x4bd258('0x146a')){_0x9e3a09[_0x4bd258('0x817')](_0x4bd258('0x146a'));const _0x452069=_0x9e3a09[_0x4bd258('0x236f')](_0x4bd258('0x11df'));if(_0x452069)_0x452069[_0x4bd258('0x817')](_0x4bd258('0x527'));}_0xba94c8['removeClass'](_0x4bd258('0x526'));}_0x17bc4e['collapse']=_0x48adcc,_0x17bc4e['expand']=_0x35a59d;};}};}const _0x208466=_0x18dd13['p']+'src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html';_0x571db5[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$cookies',_0x34e79e('0x1580'),_0x34e79e('0x446'),'$q','msNavigationService'];function _0x571db5(_0x403aa3,_0x3d2347,_0x2634a2,_0x2e886b,_0xee041c,_0x46ddff){const _0x267352=_0x34e79e,_0x480456=this;_0x480456[_0x267352('0x135a')]='',_0x480456[_0x267352('0x165e')]={'debounce':0x12c},_0x480456[_0x267352('0x17f1')]=![],_0x480456[_0x267352('0x2697')]=0x0,_0x480456[_0x267352('0x8d6')]=![],_0x480456[_0x267352('0x2667')]=![],_0x480456['results']=null,_0x480456[_0x267352('0x1331')]=[],_0x480456[_0x267352('0x14f0')]={'ghostClass':_0x267352('0x7b4'),'forceFallback':!![],'fallbackClass':'dragging','onSort':function(){const _0x9a9d0c=_0x267352;_0x480456[_0x9a9d0c('0x259e')]();}};function _0x24781d(){const _0x2839f9=_0x267352;_0x480456['loadShortcuts']()[_0x2839f9('0x2788')](function(_0xb88121){const _0x5be68a=_0x2839f9;_0x480456['shortcuts']=_0xb88121,_0x480456[_0x5be68a('0x1331')][_0x5be68a('0x2566')]>0x0&&(_0x480456[_0x5be68a('0xc64')]=_0xb88121);}),_0x403aa3[_0x2839f9('0x1662')]('MsShortcuts.query',function(_0x483667,_0x2b7eda){const _0x56ae3f=_0x2839f9;if(angular[_0x56ae3f('0x1fcf')](_0x483667))return;if(angular[_0x56ae3f('0x2309')](_0x483667,_0x2b7eda))return;_0x480456[_0x56ae3f('0x17f1')]=!![],_0x480456['populateResults']()[_0x56ae3f('0x2788')](function(_0x3b7c5d){const _0x51b485=_0x56ae3f;_0x480456[_0x51b485('0xc64')]=_0x3b7c5d;},function(){_0x480456['results']=[];})[_0x56ae3f('0x1ed8')](function(){const _0x8454e4=_0x56ae3f;_0x480456[_0x8454e4('0x17f1')]=![];});});}function _0x2e5767(){const _0x4014d9=_0x267352;let _0x2eba43=[];const _0x18c405=_0x46ddff[_0x4014d9('0xaf1')](),_0x48f9f2=_0xee041c[_0x4014d9('0x2311')]();for(let _0x53b273=0x0;_0x53b273<_0x18c405[_0x4014d9('0x2566')];_0x53b273++){_0x18c405[_0x53b273][_0x4014d9('0x127c')]&&_0x2eba43['push'](_0x18c405[_0x53b273]);}if(_0x480456[_0x4014d9('0x135a')]){_0x2eba43=_0x2eba43['filter'](function(_0x5385b7){const _0x1724ec=_0x4014d9;if(_0x5385b7['title']['toLowerCase']()[_0x1724ec('0x1d4e')](_0x480456[_0x1724ec('0x135a')][_0x1724ec('0xc2e')]()))return!![];});for(let _0x311616=0x0;_0x311616<_0x2eba43['length'];_0x311616++){_0x2eba43[_0x311616]['hasShortcut']=![];for(let _0x38d384=0x0;_0x38d384<_0x480456[_0x4014d9('0x1331')][_0x4014d9('0x2566')];_0x38d384++){if(_0x480456[_0x4014d9('0x1331')][_0x38d384][_0x4014d9('0x19b8')]===_0x2eba43[_0x311616][_0x4014d9('0x19b8')]){_0x2eba43[_0x311616]['hasShortcut']=!![];break;}}}}else _0x480456[_0x4014d9('0x1331')][_0x4014d9('0x2566')]>0x0&&(_0x2eba43=_0x480456['shortcuts']);return _0x480456[_0x4014d9('0x2697')]=0x0,_0x2e886b(function(){const _0x368124=_0x4014d9;_0x48f9f2[_0x368124('0x2322')](_0x2eba43);},0xfa),_0x48f9f2[_0x4014d9('0x1808')];}function _0xf1d72d(){const _0x3cfe95=_0x267352,_0x53bd87=_0xee041c['defer']();let _0x33c7f4=angular[_0x3cfe95('0x2157')](_0x3d2347[_0x3cfe95('0x1335')](_0x3cfe95('0x1816')));return angular[_0x3cfe95('0x1fcf')](_0x33c7f4)&&(_0x33c7f4=[{'title':_0x3cfe95('0x1f72'),'icon':_0x3cfe95('0x10e6'),'state':'app.staff.agents','weight':0x5,'children':[],'uisref':_0x3cfe95('0x1e9c'),'hasShortcut':!![]},{'title':_0x3cfe95('0x169e'),'icon':_0x3cfe95('0x70a'),'state':'app.settings.license','weight':0xa,'children':[],'uisref':_0x3cfe95('0x9f'),'hasShortcut':!![]}],_0x3d2347[_0x3cfe95('0x27ad')](_0x3cfe95('0x1816'),angular[_0x3cfe95('0x2385')](_0x33c7f4))),_0x53bd87[_0x3cfe95('0x2322')](_0x33c7f4),_0x53bd87['promise'];}function _0x456f38(){const _0x48b7fe=_0x267352,_0x230ad8=_0xee041c[_0x48b7fe('0x2311')]();return _0x3d2347[_0x48b7fe('0x27ad')](_0x48b7fe('0x1816'),angular[_0x48b7fe('0x2385')](_0x480456[_0x48b7fe('0x1331')])),_0x2e886b(function(){const _0x49292b=_0x48b7fe;_0x230ad8[_0x49292b('0x2322')]({'success':!![]});},0xfa),_0x230ad8[_0x48b7fe('0x1808')];}function _0x153c9a(_0x2025c8){const _0x25e975=_0x267352;_0x2025c8[_0x25e975('0x199e')]=!![],_0x480456[_0x25e975('0x1331')][_0x25e975('0x13e3')](_0x2025c8),_0x480456[_0x25e975('0x259e')]();}function _0xd9dfe7(_0x95dc7f){const _0x1607aa=_0x267352;_0x95dc7f[_0x1607aa('0x199e')]=![];for(let _0xc6fa81=0x0;_0xc6fa81<_0x480456[_0x1607aa('0x1331')][_0x1607aa('0x2566')];_0xc6fa81++){_0x480456['shortcuts'][_0xc6fa81][_0x1607aa('0x19b8')]===_0x95dc7f[_0x1607aa('0x19b8')]&&(_0x480456[_0x1607aa('0x1331')][_0x1607aa('0x722')](_0xc6fa81,0x1),!_0x480456[_0x1607aa('0x135a')]&&(_0x480456[_0x1607aa('0x1331')][_0x1607aa('0x2566')]===0x0?_0x480456[_0x1607aa('0xc64')]=null:_0xc6fa81>=_0x480456[_0x1607aa('0x1331')][_0x1607aa('0x2566')]&&(_0x480456[_0x1607aa('0x2697')]=_0x480456[_0x1607aa('0x1331')][_0x1607aa('0x2566')]-0x1)));}_0x480456['saveShortcuts']();}function _0x3c9ad3(_0x4c576e){const _0x4aebb5=_0x267352;_0x4c576e[_0x4aebb5('0x199e')]?_0x480456['removeShortcut'](_0x4c576e):_0x480456['addShortcut'](_0x4c576e);}function _0x19df2c(_0xf1b047){_0xf1b047['preventDefault']();}function _0x3119ae(_0x4508f7){const _0x4e2654=_0x267352,_0x1d8315=_0x4508f7[_0x4e2654('0xe88')],_0x4369bf=[0x26,0x28];_0x4369bf[_0x4e2654('0x821')](_0x1d8315)>-0x1&&_0x4508f7[_0x4e2654('0xf57')]();switch(_0x1d8315){case 0xd:_0x480456['handleResultClick'](_0x480456[_0x4e2654('0xc64')][_0x480456['selectedResultIndex']]);break;case 0x26:_0x480456[_0x4e2654('0x2697')]-0x1>=0x0&&(_0x480456['selectedResultIndex']--,_0x480456[_0x4e2654('0x12c3')]());break;case 0x28:_0x480456[_0x4e2654('0x2697')]+0x1<_0x480456[_0x4e2654('0xc64')]['length']&&(_0x480456[_0x4e2654('0x2697')]++,_0x480456[_0x4e2654('0x12c3')]());break;default:break;}}function _0xe5db5(_0x187586){const _0x38a80d=_0x267352;if(_0x480456[_0x38a80d('0x8d6')])return;_0x480456['selectedResultIndex']=_0x187586;}function _0xa2966d(){const _0x2135d5=_0x267352;_0x480456[_0x2135d5('0x8d6')]=!![],_0x2e886b['cancel'](_0x480456[_0x2135d5('0xd2e')]),_0x480456['mouseEventIgnoreTimeout']=_0x2e886b(function(){const _0x5eaf81=_0x2135d5;_0x480456[_0x5eaf81('0x8d6')]=![];},0xfa);}function _0xf4edb1(){const _0x5b960e=_0x267352,_0x5f151d=_0x2634a2[_0x5b960e('0x20e8')](_0x5b960e('0x98e'))[_0x5b960e('0x20e8')]('.results'),_0x2364df=angular[_0x5b960e('0x16b1')](_0x5f151d[_0x5b960e('0x20e8')](_0x5b960e('0xb97'))[_0x480456[_0x5b960e('0x2697')]]);if(_0x5f151d&&_0x2364df){const _0x2b52b1=_0x2364df[_0x5b960e('0x1fef')]()['top']-0x8,_0x3abded=_0x2364df[_0x5b960e('0x1fef')]()[_0x5b960e('0x1705')]+_0x2364df['outerHeight']()+0x8;_0x480456[_0x5b960e('0x180c')](),_0x5f151d[_0x5b960e('0x438')]()>_0x2b52b1&&_0x5f151d[_0x5b960e('0x438')](_0x2b52b1),_0x3abded>_0x5f151d[_0x5b960e('0x1049')]()+_0x5f151d[_0x5b960e('0x438')]()&&_0x5f151d[_0x5b960e('0x438')](_0x3abded-_0x5f151d[_0x5b960e('0x1049')]());}}function _0x32d5cf(){const _0x577ecb=_0x267352;_0x480456[_0x577ecb('0x2667')]=!_0x480456[_0x577ecb('0x2667')];}_0x480456[_0x267352('0x2708')]=_0x2e5767,_0x480456[_0x267352('0x1bec')]=_0xf1d72d,_0x480456[_0x267352('0x259e')]=_0x456f38,_0x480456[_0x267352('0x1c08')]=_0x153c9a,_0x480456[_0x267352('0x2738')]=_0xd9dfe7,_0x480456[_0x267352('0x9bf')]=_0x3c9ad3,_0x480456['absorbEvent']=_0x19df2c,_0x480456[_0x267352('0x23a7')]=_0x3119ae,_0x480456['handleMouseenter']=_0xe5db5,_0x480456['temporarilyIgnoreMouseEvents']=_0xa2966d,_0x480456[_0x267352('0x12c3')]=_0xf4edb1,_0x480456[_0x267352('0x1c3d')]=_0x32d5cf,_0x24781d();}function _0x4228b0(){const _0x2fb8d4=_0x34e79e;return{'restrict':'E','scope':{},'require':_0x2fb8d4('0x1c56'),'controller':'MsShortcutsController\x20as\x20MsShortcuts','bindToController':{},'templateUrl':_0x208466,'compile':function(_0x237257){const _0x57622c=_0x2fb8d4;return _0x237257[_0x57622c('0x19df')](_0x57622c('0x2003')),function _0x3ceb37(){};}};}function _0x445ca2(){return{'restrict':'A','require':'^mdSidenav','link':function(_0x34e9ba,_0x323730,_0x5e6718,_0xc0421b){_0x34e9ba['$watch'](function(){const _0x17417c=a0_0x14e7;return _0xc0421b[_0x17417c('0x236')]()&&!_0xc0421b[_0x17417c('0x1bbd')]();},function(_0xec1480){const _0x9344be=a0_0x14e7;if(angular[_0x9344be('0x1fcf')](_0xec1480))return;_0x323730[_0x9344be('0x1734')]()[_0x9344be('0x14d3')](_0x9344be('0x172c'),_0xec1480),angular[_0x9344be('0x16b1')](_0x9344be('0x1cd8'))[_0x9344be('0x14d3')](_0x9344be('0x1f4b'),_0xec1480);});}};}const _0x32e083=_0x445ca2;_0x5c224f['$inject']=[_0x34e79e('0xb95')];function _0x5c224f(_0x6d50d5){return{'restrict':'E','link':function(_0x306256,_0x19b1c4){const _0x240ba5=a0_0x14e7,_0x53fed8=_0x306256['$on'](_0x240ba5('0xdea'),function(){const _0x283ba2=_0x240ba5;_0x6d50d5[_0x283ba2('0x1e1e')](_0x19b1c4)[_0x283ba2('0x2788')](function(){_0x53fed8(),_0x306256=null,_0x19b1c4=null;});});}};}const _0x20e933=_0x5c224f,_0xb2eb57=_0x18dd13['p']+_0x34e79e('0x1a96'),_0x3bdb02=_0x18dd13['p']+_0x34e79e('0x1d5b'),_0x354066=_0x18dd13['p']+_0x34e79e('0x1366');_0x46b407[_0x34e79e('0x2d9')]=[_0x34e79e('0x446')],_0x40d84a['$inject']=[_0x34e79e('0x446')];function _0x40d84a(_0x13aa4e){const _0x53ae63=_0x34e79e,_0x2114a3=this;_0x2114a3[_0x53ae63('0x23c8')]=undefined,_0x2114a3[_0x53ae63('0x1182')]=_0x53ae63('0xd19'),_0x2114a3[_0x53ae63('0x741')]=[],_0x2114a3['currentStep']=undefined,_0x2114a3[_0x53ae63('0x138b')]=0x1;function _0x663035(_0x18dd96){const _0x46faeb=_0x53ae63;return!(angular['isUndefined'](_0x18dd96)||_0x18dd96<0x1||_0x18dd96>_0x2114a3['steps'][_0x46faeb('0x2566')]);}function _0x3410c6(_0xa1dec2){const _0x31451b=_0x53ae63;_0x2114a3[_0x31451b('0x1182')]=_0xa1dec2||_0x31451b('0xd19');}function _0x4add52(_0x269b4a){const _0x247d65=_0x53ae63;_0x2114a3[_0x247d65('0x23c8')]=_0x269b4a;}function _0x16228c(){const _0x1f26ec=_0x53ae63;_0x2114a3[_0x1f26ec('0x2777')](0x1);}function _0x1349d7(_0x290579){const _0x234739=_0x53ae63;if(!_0x663035(_0x290579))return null;return!!_0x2114a3[_0x234739('0x741')][_0x290579-0x1][_0x234739('0x934')]['hideStep'];}function _0xdeb481(_0x52a0fe,_0x30eb14,_0x5d4bfe){const _0x5558f7=_0x53ae63,_0x163150={'element':_0x52a0fe,'scope':_0x30eb14,'form':_0x5d4bfe,'stepNumber':_0x30eb14[_0x5558f7('0x386')]||_0x2114a3[_0x5558f7('0x741')][_0x5558f7('0x2566')]+0x1,'stepTitle':_0x30eb14[_0x5558f7('0x254b')],'stepTitleTranslate':_0x30eb14[_0x5558f7('0xddb')]};return _0x2114a3[_0x5558f7('0x741')][_0x5558f7('0x13e3')](_0x163150),_0x2114a3['steps'][_0x5558f7('0x2119')](function(_0x4ddf1a,_0x2cf27a){const _0x280721=_0x5558f7;return _0x4ddf1a[_0x280721('0x13a')]-_0x2cf27a[_0x280721('0x13a')];}),_0x163150;}function _0x538a6d(){const _0x508ac6=_0x53ae63;_0x2114a3[_0x508ac6('0x2777')](_0x2114a3[_0x508ac6('0x138b')]);}function _0x496f2f(){_0x13aa4e(function(){const _0x2ebd7f=a0_0x14e7;for(let _0x492b6d=0x0;_0x492b6d<_0x2114a3[_0x2ebd7f('0x741')][_0x2ebd7f('0x2566')];_0x492b6d++){_0x2114a3[_0x2ebd7f('0x741')][_0x492b6d][_0x2ebd7f('0x1c1f')]['$setPristine'](),_0x2114a3[_0x2ebd7f('0x741')][_0x492b6d][_0x2ebd7f('0x1c1f')][_0x2ebd7f('0x3d6')]();}_0x2114a3[_0x2ebd7f('0x23c8')][_0x2ebd7f('0x4e9')](),_0x2114a3[_0x2ebd7f('0x23c8')]['$setUntouched'](),_0x16228c();});}function _0x369be4(_0x124083){const _0x252289=_0x53ae63;if(!_0x663035(_0x124083))return;_0x2114a3[_0x252289('0x138b')]=_0x124083;if(_0x2114a3[_0x252289('0x1182')]==='horizontal'){for(let _0x2825e5=0x0;_0x2825e5<_0x2114a3[_0x252289('0x741')]['length'];_0x2825e5++){_0x2114a3['steps'][_0x2825e5][_0x252289('0x16b1')][_0x252289('0x19d')]();}_0x2114a3[_0x252289('0x741')][_0x2114a3[_0x252289('0x138b')]-0x1]['element']['show']();}else{if(_0x2114a3[_0x252289('0x1182')]==='vertical'){for(let _0x3fffcc=0x0;_0x3fffcc<_0x2114a3['steps']['length'];_0x3fffcc++){_0x2114a3[_0x252289('0x741')][_0x3fffcc][_0x252289('0x16b1')]['find'](_0x252289('0x310'))[_0x252289('0x19d')]();}_0x2114a3['steps'][_0x2114a3[_0x252289('0x138b')]-0x1][_0x252289('0x16b1')]['find'](_0x252289('0x310'))[_0x252289('0x2fa')]();}}}function _0x1024bb(_0x4b4843){if(_0x1349d7(_0x4b4843))return;_0x2114a3['setCurrentStep'](_0x4b4843);}function _0x3855af(){const _0xa44d01=_0x53ae63;let _0x4db2ca=_0x2114a3[_0xa44d01('0x138b')]-0x1;for(let _0xb88da6=_0x4db2ca;_0xb88da6>=0x1;_0xb88da6--){if(!_0x1349d7(_0xb88da6)){_0x4db2ca=_0xb88da6;break;}}_0x2114a3[_0xa44d01('0x2777')](_0x4db2ca);}function _0x5c7ab1(){const _0x4e925b=_0x53ae63;let _0x25a24c=_0x2114a3['currentStepNumber']+0x1;for(let _0x11ebc8=_0x25a24c;_0x11ebc8<=_0x2114a3[_0x4e925b('0x741')]['length'];_0x11ebc8++){if(!_0x1349d7(_0x11ebc8)){_0x25a24c=_0x11ebc8;break;}}_0x2114a3[_0x4e925b('0x2777')](_0x25a24c);}function _0x23b5d9(){const _0x5e9271=_0x53ae63;_0x2114a3[_0x5e9271('0x2777')](_0x2114a3['steps'][_0x5e9271('0x2566')]);}function _0x47e235(){const _0x3a9b98=_0x53ae63;return _0x2114a3[_0x3a9b98('0x138b')]===0x1;}function _0x17100e(){const _0x726ac4=_0x53ae63;return _0x2114a3['currentStepNumber']===_0x2114a3[_0x726ac4('0x741')][_0x726ac4('0x2566')];}function _0x593514(_0x36cd81){const _0x48ac2a=_0x53ae63;if(!_0x663035(_0x36cd81))return null;return _0x2114a3[_0x48ac2a('0x138b')]===_0x36cd81;}function _0x52e90c(_0x55826e){const _0x167d50=_0x53ae63;if(!_0x663035(_0x55826e))return null;return _0x2114a3['steps'][_0x55826e-0x1][_0x167d50('0x934')][_0x167d50('0x8dd')];}function _0x331ea3(_0x1239e1){const _0x1cc75b=_0x53ae63;if(!_0x663035(_0x1239e1))return null;if(_0x52e90c(_0x1239e1))return!![];return _0x2114a3[_0x1cc75b('0x741')][_0x1239e1-0x1][_0x1cc75b('0x1c1f')]['$valid'];}function _0x5ea28d(_0x5d28aa){if(!_0x663035(_0x5d28aa))return null;let _0x145ffd=![];for(let _0x10b499=0x1;_0x10b499<_0x5d28aa;_0x10b499++){if(!_0x331ea3(_0x10b499)){_0x145ffd=!![];break;}}return _0x145ffd;}function _0x262958(_0xdbf008){const _0x38357e=_0x53ae63;return!_0x1349d7(_0xdbf008[_0x38357e('0x13a')]);}function _0x16b16f(){const _0x44a004=_0x53ae63;return _0x2114a3['mainForm'][_0x44a004('0xd13')];}_0x2114a3[_0x53ae63('0x1513')]=_0x3410c6,_0x2114a3[_0x53ae63('0x1dc3')]=_0x4add52,_0x2114a3[_0x53ae63('0xc4f')]=_0xdeb481,_0x2114a3[_0x53ae63('0x1ae4')]=_0x538a6d,_0x2114a3['resetForm']=_0x496f2f,_0x2114a3[_0x53ae63('0x2777')]=_0x369be4,_0x2114a3[_0x53ae63('0x1307')]=_0x1024bb,_0x2114a3[_0x53ae63('0x575')]=_0x3855af,_0x2114a3[_0x53ae63('0x26a1')]=_0x5c7ab1,_0x2114a3[_0x53ae63('0x423')]=_0x16228c,_0x2114a3[_0x53ae63('0x243e')]=_0x23b5d9,_0x2114a3[_0x53ae63('0x13d9')]=_0x47e235,_0x2114a3['isLastStep']=_0x17100e,_0x2114a3['isStepCurrent']=_0x593514,_0x2114a3[_0x53ae63('0xc73')]=_0x5ea28d,_0x2114a3['isStepOptional']=_0x52e90c,_0x2114a3[_0x53ae63('0x21a9')]=_0x1349d7,_0x2114a3[_0x53ae63('0x735')]=_0x262958,_0x2114a3[_0x53ae63('0x23c5')]=_0x331ea3,_0x2114a3[_0x53ae63('0x17bc')]=_0x663035,_0x2114a3[_0x53ae63('0x1cb1')]=_0x16b16f;}function _0x23e3d4(){const _0x5510c8=_0x34e79e;return{'restrict':'A','scope':{},'require':[_0x5510c8('0x1c1f'),'msHorizontalStepper'],'priority':0x3e9,'controller':_0x5510c8('0x1dfb'),'bindToController':{'model':_0x5510c8('0x1bcc')},'transclude':!![],'templateUrl':_0xb2eb57,'compile':function(_0xdf71ad){const _0x363ee4=_0x5510c8;return _0xdf71ad[_0x363ee4('0x19df')](_0x363ee4('0x331')),function _0xb1067f(_0x214420,_0x1bda27,_0x3dce3d,_0x50e0b7){const _0x5df536=_0x363ee4,_0x49ccfb=_0x50e0b7[0x0],_0x58f10b=_0x50e0b7[0x1];_0x58f10b[_0x5df536('0x1513')](_0x5df536('0xd19')),_0x58f10b['registerMainForm'](_0x49ccfb),_0x58f10b[_0x5df536('0x1ae4')]();};}};}function _0x1fa5be(){const _0x333519=_0x34e79e;return{'restrict':'E','require':[_0x333519('0x1c1f'),_0x333519('0xa40')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0xd4247d){const _0x5cf749=_0x333519;return _0xd4247d['addClass'](_0x5cf749('0x7be')),function _0xe0d57a(_0x37172e,_0x24f643,_0x3a9616,_0x2abf0b){const _0x45d49c=_0x5cf749,_0x16396c=_0x2abf0b[0x0],_0x5f0a65=_0x2abf0b[0x1];_0x37172e[_0x45d49c('0x8dd')]=angular[_0x45d49c('0x2735')](_0x3a9616[_0x45d49c('0x8dd')]),_0x5f0a65[_0x45d49c('0xc4f')](_0x24f643,_0x37172e,_0x16396c),_0x24f643[_0x45d49c('0x19d')]();};}};}function _0x46b407(_0x194b53){const _0x8f0e95=_0x34e79e;return{'restrict':'A','scope':{},'require':[_0x8f0e95('0x1c1f'),_0x8f0e95('0x1375')],'priority':0x3e9,'controller':_0x8f0e95('0x1dfb'),'bindToController':{'model':_0x8f0e95('0x1bcc')},'transclude':!![],'templateUrl':_0x3bdb02,'compile':function(_0x3e7e87){const _0x34b50f=_0x8f0e95;return _0x3e7e87[_0x34b50f('0x19df')](_0x34b50f('0x331')),function _0x1fe699(_0x3953b5,_0x4a91cc,_0x282948,_0x241a8b){const _0x23194d=_0x241a8b[0x0],_0x3b52c8=_0x241a8b[0x1];_0x194b53(function(){const _0x3c8bea=a0_0x14e7;_0x3b52c8[_0x3c8bea('0x1513')]('vertical'),_0x3b52c8[_0x3c8bea('0x1dc3')](_0x23194d),_0x3b52c8[_0x3c8bea('0x1ae4')]();});};}};}function _0x47d715(){const _0x2a698d=_0x34e79e;return{'restrict':'E','require':['form',_0x2a698d('0x248a')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x354066,'compile':function(_0x36de7f){const _0xed3bc2=_0x2a698d;return _0x36de7f[_0xed3bc2('0x19df')](_0xed3bc2('0x7be')),function _0x4ab8aa(_0x403052,_0x2d794d,_0x340a0b,_0xf87bfd){const _0x38f6aa=_0xed3bc2,_0x1c76fe=_0xf87bfd[0x0],_0x1ebf72=_0xf87bfd[0x1];_0x403052[_0x38f6aa('0x8dd')]=angular[_0x38f6aa('0x2735')](_0x340a0b['optionalStep']),_0x403052['stepInfo']=_0x1ebf72[_0x38f6aa('0xc4f')](_0x2d794d,_0x403052,_0x1c76fe),_0x403052[_0x38f6aa('0x22fc')]=_0x1ebf72,_0x2d794d[_0x38f6aa('0x20e8')](_0x38f6aa('0x310'))[_0x38f6aa('0x19d')]();};}};}const _0x21d091=_0x18dd13['p']+_0x34e79e('0x23d3');;function _0x1f35ef(){const _0x446488=_0x34e79e,_0x5425a9=this;_0x5425a9[_0x446488('0x5d6')]=_0xe5f5e,_0x5425a9[_0x446488('0x119f')]=_0x3bb5dc;function _0xe5f5e(_0x417295){const _0x15d5e9=_0x446488;_0x417295==_0x15d5e9('0x17cd')?$(_0x15d5e9('0x277'))[_0x15d5e9('0x13b7')]()[_0x15d5e9('0x314')]({'scrollLeft':_0x15d5e9('0x1b69')},0x3e8):$('#tab-container')[_0x15d5e9('0x13b7')]()['animate']({'scrollLeft':'+=400'},0x3e8);}function _0x3bb5dc(_0x46ecfc){const _0x3530a3=_0x446488;switch(_0x131f82()){case _0x3530a3('0x1c4b'):return!![];case'left':return _0x46ecfc==_0x3530a3('0x17cd')?!![]:![];case _0x3530a3('0x6ec'):return _0x46ecfc==_0x3530a3('0x6ec')?!![]:![];case'none':return![];default:return![];}}function _0x131f82(){const _0xa63cc7=_0x446488,_0x37a3b5=document[_0xa63cc7('0x1b0c')](_0xa63cc7('0x1261')),_0x54687a=document[_0xa63cc7('0x1b0c')](_0xa63cc7('0x21b8'));if(_0x54687a[_0xa63cc7('0x21f5')]>_0x37a3b5[_0xa63cc7('0x21f5')]&&_0x37a3b5[_0xa63cc7('0x2049')]==0x0&&_0x54687a['scrollLeft']==0x0)return _0xa63cc7('0x6ec');else{if(_0x54687a[_0xa63cc7('0x21f5')]>_0x37a3b5['scrollWidth']&&_0x54687a[_0xa63cc7('0x2049')]>_0x37a3b5[_0xa63cc7('0x2049')]&&_0x37a3b5[_0xa63cc7('0x21f5')]+_0x54687a[_0xa63cc7('0x2049')]>=_0x54687a[_0xa63cc7('0x21f5')])return _0xa63cc7('0x17cd');else return _0x54687a[_0xa63cc7('0x21f5')]>_0x37a3b5['scrollWidth']&&_0x54687a[_0xa63cc7('0x2049')]>_0x37a3b5[_0xa63cc7('0x2049')]&&_0x37a3b5['scrollWidth']+_0x54687a[_0xa63cc7('0x2049')]<_0x54687a[_0xa63cc7('0x21f5')]?_0xa63cc7('0x1c4b'):_0xa63cc7('0x1dc');}}}function _0x38df6c(){return{'restrict':'E','scope':{},'transclude':!![],'controller':'MsTabScrollController','controllerAs':'vm','bindToController':!![],'templateUrl':_0x21d091,'compile':function(_0x524fb0){const _0x196d25=a0_0x14e7;return _0x524fb0[_0x196d25('0x19df')](_0x196d25('0x237a')),function _0x11821c(){};}};}_0x29267a[_0x34e79e('0x2d9')]=[_0x34e79e('0x446'),'$q'];function _0xc1d5be(){const _0x210acb=_0x34e79e,_0x2ddbea=this;_0x2ddbea[_0x210acb('0x82')]=undefined,_0x2ddbea[_0x210acb('0x20e1')]=_0x18f836,_0x2ddbea[_0x210acb('0x23ad')]=_0x4c3865;function _0x18f836(_0x532ef2){const _0x1a089a=_0x210acb;_0x2ddbea[_0x1a089a('0x82')]=_0x532ef2;}function _0x4c3865(){const _0x1c4973=_0x210acb;return _0x2ddbea[_0x1c4973('0x82')];}}function _0x3aaa7f(){const _0x418016=_0x34e79e;return{'scope':{'msTimeline':'=?','loadMore':_0x418016('0x1454')},'controller':'MsTimelineController','compile':function(_0x1201db){const _0x45dec7=_0x418016;return _0x1201db[_0x45dec7('0x19df')](_0x45dec7('0x1b30')),function _0xdd4e72(_0x2998d9,_0x4fec69,_0x2f4d7a,_0x6e7142){const _0x2f5285=_0x45dec7,_0x2f1165=angular['element'](_0x2f5285('0xe56'));_0x4fec69['append'](_0x2f1165);let _0x1cc49d={'scrollEl':_0x2f5285('0x228f')};_0x1cc49d=angular[_0x2f5285('0x192a')](_0x1cc49d,_0x2998d9[_0x2f5285('0x1e2d')],{});const _0x1df1f5=angular[_0x2f5285('0x16b1')](_0x1cc49d[_0x2f5285('0x82')]);_0x6e7142['setScrollEl'](_0x1df1f5);const _0x31dae0=0x90;_0x2ee3f2();function _0x39538b(){const _0x1707f4=_0x2f5285;_0x1df1f5[_0x1707f4('0x438')]()+_0x1df1f5[_0x1707f4('0x1049')]()+_0x31dae0>_0x2f1165[_0x1707f4('0x1fef')]()[_0x1707f4('0x1705')]&&(_0x2f1165[_0x1707f4('0x19df')](_0x1707f4('0x2fa')),_0x2b8daa(),_0x2998d9[_0x1707f4('0x1ffd')]()[_0x1707f4('0x2788')](function(){const _0x3973b0=_0x1707f4;_0x2f1165[_0x3973b0('0x817')]('show'),_0x2ee3f2();},function(){const _0x373a8e=_0x1707f4;_0x2f1165[_0x373a8e('0x1a90')]();}));}function _0x2ee3f2(){const _0xd1a462=_0x2f5285;_0x1df1f5['on'](_0xd1a462('0xb8d'),_0x39538b);}function _0x2b8daa(){const _0x39416f=_0x2f5285;_0x1df1f5['off'](_0x39416f('0xb8d'),_0x39538b);}_0x2998d9[_0x2f5285('0x651')](_0x2f5285('0x26ac'),function(){_0x2b8daa();});};}};}function _0x29267a(_0x14895b,_0x237dcf){const _0x33c61a=_0x34e79e;return{'scope':!![],'require':_0x33c61a('0xe29'),'compile':function(_0xf5697c){const _0x1fac87=_0x33c61a;return _0xf5697c[_0x1fac87('0x19df')]('ms-timeline-item')['addClass'](_0x1fac87('0xf0')),function _0x41a874(_0x1dc72c,_0x42caf1,_0x55b651,_0x583ebc){const _0x230a42=_0x1fac87,_0x136970=0x48;let _0x46fd01=![],_0xd2e723=![];const _0x26ca54=_0x583ebc[_0x230a42('0x23ad')]();_0x50f0b8();function _0x50f0b8(){const _0x14fcde=_0x230a42;_0x42caf1[_0x14fcde('0x20e8')](_0x14fcde('0x1667'))?_0x1dc72c[_0x14fcde('0x651')](_0x14fcde('0xe1c'),function(_0xb35a71,_0x4287ae){const _0x566735=_0x14fcde,_0x2506ab=angular[_0x566735('0x16b1')](_0x4287ae[0x0]);_0x244a32(_0x2506ab)[_0x566735('0x2788')](function(){_0x14895b(function(){_0x46fd01=!![];});});}):_0x244a32(_0x42caf1)[_0x14fcde('0x2788')](function(){_0x14895b(function(){_0x46fd01=!![];});}),_0x26ca54['on'](_0x14fcde('0xb8d'),_0x18197d),_0x18197d();}const _0x14c81a=_0x1dc72c[_0x230a42('0x1662')](function(){return _0x46fd01&&_0xd2e723;},function(_0x17c647,_0x14e090){const _0x383915=_0x230a42;if(angular[_0x383915('0x2309')](_0x17c647,_0x14e090))return;_0x17c647&&(_0x42caf1['removeClass'](_0x383915('0xf0'))[_0x383915('0x19df')](_0x383915('0x314')),_0x14c81a());},!![]);function _0x244a32(_0x545a85){const _0x321d4e=_0x230a42,_0x2ab45e=_0x237dcf[_0x321d4e('0x2311')](),_0xb0fe3e=_0x545a85[_0x321d4e('0x20e8')]('img');return _0xb0fe3e[_0x321d4e('0x2566')]>0x0?_0xb0fe3e['on']('load',function(){const _0x4785ba=_0x321d4e;_0x2ab45e[_0x4785ba('0x2322')]('Image\x20is\x20loaded');}):_0x2ab45e['resolve'](_0x321d4e('0x1f3e')),_0x2ab45e['promise'];}function _0x18197d(){const _0x1cb6c1=_0x230a42;_0x26ca54['scrollTop']()+_0x26ca54['height']()>_0x42caf1[_0x1cb6c1('0x1fef')]()[_0x1cb6c1('0x1705')]+_0x136970&&(_0x14895b(function(){_0xd2e723=!![];}),_0x26ca54[_0x1cb6c1('0x938')](_0x1cb6c1('0xb8d'),_0x18197d));}};}};}_0x1c43f8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x16e3'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),'$attrs',_0x34e79e('0x14bb'),_0x34e79e('0x1a04')];function _0x1c43f8(_0x2205fa,_0x1e0a85,_0x322ab3,_0x53432e,_0x3a695e,_0x28171d,_0x3e44f8,_0x116adc,_0x26109c){const _0x32de42=_0x34e79e;typeof String[_0x32de42('0x23fb')][_0x32de42('0x1d7f')]!==_0x32de42('0x9fc')&&(String[_0x32de42('0x23fb')][_0x32de42('0x1d7f')]=function(){const _0x4d0b16=_0x32de42;return this[_0x4d0b16('0x10a4')](/^\s+|\s+$/g,'');});_0x2205fa[_0x32de42('0x27f')]=_0x3e44f8['autoStart']||_0x3e44f8['autostart'];_0x116adc[_0x32de42('0x1cd8')]()[_0x32de42('0x1d7f')]()['length']===0x0?_0x116adc[_0x32de42('0xc44')](_0x26109c(_0x32de42('0x2466'))(_0x2205fa)):_0x116adc[_0x32de42('0xc44')](_0x26109c(_0x116adc[_0x32de42('0x286')]())(_0x2205fa));_0x2205fa[_0x32de42('0x2630')]=_0x2205fa[_0x32de42('0x273b')]||0x3e8,_0x2205fa[_0x32de42('0x4e5')]=null,_0x2205fa[_0x32de42('0x222b')]=null,_0x2205fa[_0x32de42('0x4e6')]=null,_0x2205fa[_0x32de42('0x11cb')]=_0x2205fa[_0x32de42('0xa9a')]&&parseInt(_0x2205fa['countdownAttr'],0xa)>=0x0?parseInt(_0x2205fa[_0x32de42('0xa9a')],0xa):undefined,_0x2205fa['isRunning']=![],_0x2205fa['$watch'](_0x32de42('0x2f0'),function(_0x17b4a5,_0x1d9651){_0x17b4a5!==_0x1d9651&&_0x2205fa['isRunning']&&_0x2205fa['start']();}),_0x2205fa[_0x32de42('0x651')](_0x32de42('0x17db'),function(){const _0x52ca5b=_0x32de42;_0x2205fa[_0x52ca5b('0x1ce2')]();}),_0x2205fa[_0x32de42('0x651')](_0x32de42('0xf54'),function(){const _0xc3f12b=_0x32de42;_0x2205fa[_0xc3f12b('0x19bd')]();}),_0x2205fa[_0x32de42('0x651')](_0x32de42('0x596'),function(){const _0x21521a=_0x32de42;_0x2205fa[_0x21521a('0x13b7')]();}),_0x2205fa[_0x32de42('0x651')](_0x32de42('0xd8c'),function(){const _0x352941=_0x32de42;_0x2205fa[_0x352941('0x6c6')]();}),_0x2205fa['$on'](_0x32de42('0x11b1'),function(_0xbdf5c6,_0x547b0e){const _0x4783ba=_0x32de42;_0x2205fa[_0x4783ba('0x11cb')]=_0x547b0e;});function _0x3f0f5e(){const _0x9d7ee=_0x32de42;_0x2205fa[_0x9d7ee('0x4e6')]&&clearTimeout(_0x2205fa[_0x9d7ee('0x4e6')]);}_0x2205fa[_0x32de42('0x1ce2')]=function(){const _0x19f944=_0x32de42,_0x2444f0=_0x59f37a()(),_0x1b096e=_0x2205fa[_0x19f944('0x2f0')]?_0x59f37a()(_0x2205fa[_0x19f944('0x2f0')]):null;!_0x1b096e||_0x1b096e>_0x2444f0?_0x2205fa[_0x19f944('0x4e5')]=_0x2444f0:_0x2205fa[_0x19f944('0x4e5')]=_0x1b096e;const _0x4e116f=_0x2205fa[_0x19f944('0x23de')]?_0x59f37a()(_0x2205fa[_0x19f944('0x23de')]):null;!_0x4e116f||_0x4e116f<_0x2444f0?_0x2205fa[_0x19f944('0x222b')]=null:_0x2205fa[_0x19f944('0x222b')]=_0x4e116f,!_0x2205fa[_0x19f944('0x11cb')]&&(_0x2205fa['countdown']=_0x2205fa[_0x19f944('0xa9a')]&&parseInt(_0x2205fa[_0x19f944('0xa9a')],0xa)>0x0?parseInt(_0x2205fa['countdownattr'],0xa):undefined),_0x3f0f5e(),_0x5cd337(),_0x2205fa[_0x19f944('0x12a5')]=!![];},_0x116adc[0x0][_0x32de42('0x1ce2')]=_0x2205fa['start'],_0x2205fa[_0x32de42('0x19bd')]=function(){const _0x3a871d=_0x32de42;_0x3f0f5e(),_0x2205fa[_0x3a871d('0xa9a')]&&(_0x2205fa[_0x3a871d('0x11cb')]+=0x1),_0x2205fa[_0x3a871d('0x4e5')]=_0x59f37a()()['diff'](_0x59f37a()(_0x2205fa[_0x3a871d('0x1954')])[_0x3a871d('0x381')](_0x59f37a()(_0x2205fa['startTime']))),_0x5cd337(),_0x2205fa['isRunning']=!![];},_0x116adc[0x0][_0x32de42('0x19bd')]=_0x2205fa[_0x32de42('0x19bd')],_0x2205fa[_0x32de42('0x13b7')]=function(){const _0x4e3272=_0x32de42;_0x2205fa[_0x4e3272('0x6c6')](),_0x2205fa[_0x4e3272('0xba')](_0x4e3272('0x16b'),{'timeoutId':_0x2205fa[_0x4e3272('0x4e6')],'millis':_0x2205fa[_0x4e3272('0x95b')],'seconds':_0x2205fa[_0x4e3272('0x430')],'minutes':_0x2205fa[_0x4e3272('0xa3e')],'hours':_0x2205fa[_0x4e3272('0x1ba3')],'days':_0x2205fa[_0x4e3272('0xab5')]});},_0x2205fa[_0x32de42('0x619')]=_0x2205fa[_0x32de42('0x13b7')],_0x116adc[0x0]['stop']=_0x2205fa[_0x32de42('0x13b7')],_0x116adc[0x0][_0x32de42('0x619')]=_0x2205fa[_0x32de42('0x13b7')],_0x2205fa[_0x32de42('0x6c6')]=function(){const _0x3104ff=_0x32de42;_0x2205fa[_0x3104ff('0x1954')]=_0x59f37a()(),_0x3f0f5e(),_0x2205fa['timeoutId']=null,_0x2205fa[_0x3104ff('0x12a5')]=![];},_0x116adc[0x0][_0x32de42('0x6c6')]=_0x2205fa['clear'],_0x116adc['bind'](_0x32de42('0x26ac'),function(){_0x3f0f5e(),_0x2205fa['isRunning']=![];});function _0x1e5385(){const _0x5067f1=_0x32de42;_0x3e44f8['startTime']!==undefined&&(_0x2205fa[_0x5067f1('0x95b')]=_0x59f37a()()['diff'](_0x59f37a()(_0x2205fa[_0x5067f1('0x4e5')])));if(!_0x2205fa[_0x5067f1('0x36e')]||_0x2205fa[_0x5067f1('0x36e')]===_0x5067f1('0xf'))_0x2205fa[_0x5067f1('0x430')]=Math['floor'](_0x2205fa['millis']/0x3e8%0x3c),_0x2205fa[_0x5067f1('0xa3e')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0xea60%0x3c),_0x2205fa[_0x5067f1('0x1ba3')]=Math['floor'](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80%0x18),_0x2205fa[_0x5067f1('0xab5')]=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0x36ee80/0x18),_0x2205fa['months']=0x0,_0x2205fa[_0x5067f1('0x1353')]=0x0;else{if(_0x2205fa['maxTimeUnit']===_0x5067f1('0x1929'))_0x2205fa['seconds']=Math['floor'](_0x2205fa[_0x5067f1('0x95b')]/0x3e8),_0x2205fa['minutes']=0x0,_0x2205fa[_0x5067f1('0x1ba3')]=0x0,_0x2205fa['days']=0x0,_0x2205fa[_0x5067f1('0x24bc')]=0x0,_0x2205fa[_0x5067f1('0x1353')]=0x0;else{if(_0x2205fa[_0x5067f1('0x36e')]===_0x5067f1('0x17d3'))_0x2205fa[_0x5067f1('0x430')]=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0x3e8%0x3c),_0x2205fa[_0x5067f1('0xa3e')]=Math['floor'](_0x2205fa['millis']/0xea60),_0x2205fa['hours']=0x0,_0x2205fa[_0x5067f1('0xab5')]=0x0,_0x2205fa[_0x5067f1('0x24bc')]=0x0,_0x2205fa[_0x5067f1('0x1353')]=0x0;else{if(_0x2205fa[_0x5067f1('0x36e')]==='hour')_0x2205fa[_0x5067f1('0x430')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x3e8%0x3c),_0x2205fa[_0x5067f1('0xa3e')]=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0xea60%0x3c),_0x2205fa[_0x5067f1('0x1ba3')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80),_0x2205fa[_0x5067f1('0xab5')]=0x0,_0x2205fa[_0x5067f1('0x24bc')]=0x0,_0x2205fa[_0x5067f1('0x1353')]=0x0;else{if(_0x2205fa[_0x5067f1('0x36e')]==='month')_0x2205fa[_0x5067f1('0x430')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x3e8%0x3c),_0x2205fa['minutes']=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0xea60%0x3c),_0x2205fa[_0x5067f1('0x1ba3')]=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0x36ee80%0x18),_0x2205fa['days']=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80/0x18%0x1e),_0x2205fa['months']=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0x36ee80/0x18/0x1e),_0x2205fa[_0x5067f1('0x1353')]=0x0;else _0x2205fa['maxTimeUnit']===_0x5067f1('0x25cd')&&(_0x2205fa[_0x5067f1('0x430')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x3e8%0x3c),_0x2205fa[_0x5067f1('0xa3e')]=Math['floor'](_0x2205fa[_0x5067f1('0x95b')]/0xea60%0x3c),_0x2205fa[_0x5067f1('0x1ba3')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80%0x18),_0x2205fa[_0x5067f1('0xab5')]=Math[_0x5067f1('0xe98')](_0x2205fa['millis']/0x36ee80/0x18%0x1e),_0x2205fa[_0x5067f1('0x24bc')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80/0x18/0x1e%0xc),_0x2205fa[_0x5067f1('0x1353')]=Math[_0x5067f1('0xe98')](_0x2205fa[_0x5067f1('0x95b')]/0x36ee80/0x18/0x16d));}}}}_0x2205fa[_0x5067f1('0x294')]=_0x2205fa[_0x5067f1('0x430')]===0x1||_0x2205fa[_0x5067f1('0x430')]===0x0?'':'s',_0x2205fa['minutesS']=_0x2205fa[_0x5067f1('0xa3e')]===0x1||_0x2205fa[_0x5067f1('0xa3e')]===0x0?'':'s',_0x2205fa[_0x5067f1('0x1389')]=_0x2205fa['hours']===0x1||_0x2205fa[_0x5067f1('0x1ba3')]===0x0?'':'s',_0x2205fa[_0x5067f1('0xccd')]=_0x2205fa[_0x5067f1('0xab5')]===0x1||_0x2205fa['days']===0x0?'':'s',_0x2205fa['monthsS']=_0x2205fa['months']===0x1||_0x2205fa[_0x5067f1('0x24bc')]===0x0?'':'s',_0x2205fa[_0x5067f1('0x2039')]=_0x2205fa['years']===0x1||_0x2205fa[_0x5067f1('0x1353')]===0x0?'':'s',_0x2205fa[_0x5067f1('0x25c1')]=_0x2205fa[_0x5067f1('0x430')]<0xa?'0'+_0x2205fa['seconds']:_0x2205fa[_0x5067f1('0x430')],_0x2205fa[_0x5067f1('0x18c8')]=_0x2205fa[_0x5067f1('0xa3e')]<0xa?'0'+_0x2205fa[_0x5067f1('0xa3e')]:_0x2205fa[_0x5067f1('0xa3e')],_0x2205fa[_0x5067f1('0x266b')]=_0x2205fa['hours']<0xa?'0'+_0x2205fa[_0x5067f1('0x1ba3')]:_0x2205fa[_0x5067f1('0x1ba3')],_0x2205fa['ddays']=_0x2205fa[_0x5067f1('0xab5')]<0xa?'0'+_0x2205fa[_0x5067f1('0xab5')]:_0x2205fa[_0x5067f1('0xab5')],_0x2205fa['mmonths']=_0x2205fa[_0x5067f1('0x24bc')]<0xa?'0'+_0x2205fa[_0x5067f1('0x24bc')]:_0x2205fa[_0x5067f1('0x24bc')],_0x2205fa[_0x5067f1('0x221f')]=_0x2205fa['years']<0xa?'0'+_0x2205fa[_0x5067f1('0x1353')]:_0x2205fa['years'];}const _0x5cd337=function(){const _0x39677b=_0x32de42;_0x2205fa[_0x39677b('0x95b')]=_0x59f37a()()[_0x39677b('0x381')](_0x2205fa[_0x39677b('0x4e5')]);let _0x534875=_0x2205fa[_0x39677b('0x95b')]%0x3e8;_0x2205fa[_0x39677b('0x23de')]&&(_0x2205fa[_0x39677b('0x95b')]=_0x59f37a()(_0x2205fa['endTime'])[_0x39677b('0x381')](_0x59f37a()()),_0x534875=_0x2205fa['interval']-_0x2205fa[_0x39677b('0x95b')]%0x3e8);_0x2205fa[_0x39677b('0xa9a')]&&(_0x2205fa['millis']=_0x2205fa['countdown']*0x3e8);if(_0x2205fa[_0x39677b('0x95b')]<0x0){_0x2205fa[_0x39677b('0x13b7')](),_0x2205fa[_0x39677b('0x95b')]=0x0,_0x1e5385();_0x2205fa[_0x39677b('0x457')]&&_0x2205fa[_0x39677b('0x1ddb')](_0x2205fa[_0x39677b('0x457')]);return;}_0x1e5385(),_0x2205fa['timeoutId']=setTimeout(function(){_0x5cd337(),_0x2205fa['$digest']();},_0x2205fa[_0x39677b('0x2630')]-_0x534875),_0x2205fa[_0x39677b('0xba')](_0x39677b('0x1fc4'),{'timeoutId':_0x2205fa[_0x39677b('0x4e6')],'millis':_0x2205fa['millis']});if(_0x2205fa[_0x39677b('0x11cb')]>0x0)_0x2205fa[_0x39677b('0x11cb')]--;else _0x2205fa[_0x39677b('0x11cb')]<=0x0&&(_0x2205fa['stop'](),_0x2205fa['finishCallback']&&_0x2205fa[_0x39677b('0x1ddb')](_0x2205fa[_0x39677b('0x457')]));};(_0x2205fa[_0x32de42('0x27f')]===undefined||_0x2205fa[_0x32de42('0x27f')]===!![])&&_0x2205fa[_0x32de42('0x1ce2')]();}function _0xf55cc(){const _0x1d7e5c=_0x34e79e;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x1d7e5c('0x1806'),'startTimeAttr':_0x1d7e5c('0x960'),'endTimeAttr':'=endTime','countdownAttr':'=countdown','autoStart':_0x1d7e5c('0x501'),'maxTimeUnit':'='},'controller':'MsTimerController'};}const _0x6ad5b2=_0x18dd13['p']+_0x34e79e('0x1d86');;function _0x5ef542(){return{'restrict':'E','scope':{'ngModel':'='},'controller':['$scope',function(_0x7b9009){const _0x30a556=a0_0x14e7;_0x7b9009[_0x30a556('0xf9f')]=[{'name':_0x30a556('0x8b7'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['AD']},{'name':_0x30a556('0x21b1'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['AE','OM']},{'name':_0x30a556('0xf7b'),'utcOffset':0x10e,'offsetStr':_0x30a556('0x20bd'),'countries':['AF']},{'name':_0x30a556('0x1dae'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['AL']},{'name':_0x30a556('0x2336'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['AM']},{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AQ']},{'name':_0x30a556('0xd31'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AQ']},{'name':_0x30a556('0x114a'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['AQ']},{'name':_0x30a556('0x4c5'),'utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['AQ']},{'name':_0x30a556('0x21f9'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['AQ']},{'name':_0x30a556('0x194f'),'utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['AQ']},{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['AQ']},{'name':_0x30a556('0x3db'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},{'name':_0x30a556('0x1509'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['AQ']},{'name':_0x30a556('0xf28'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x10d3'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0xda7'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x30a556('0x1546'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x2737'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x2093'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':'America/Argentina/La_Rioja','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x272f'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x117e'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':'America/Argentina/San_Luis','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x12cb'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['AR']},{'name':_0x30a556('0x2679'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x30a556('0x75c'),'utcOffset':-0x294,'offsetStr':_0x30a556('0x202d'),'countries':['AS','UM']},{'name':_0x30a556('0x2747'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},{'name':_0x30a556('0x42'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x30a556('0x427'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x30a556('0x4c7'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x30a556('0x1370'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['AU']},{'name':_0x30a556('0x4a9'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['AU']},{'name':_0x30a556('0x291'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['AU']},{'name':_0x30a556('0x25cb'),'utcOffset':0x276,'offsetStr':_0x30a556('0x986'),'countries':['AU']},{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['AU']},{'name':_0x30a556('0x1f9c'),'utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['AU']},{'name':_0x30a556('0x21a2'),'utcOffset':0x276,'offsetStr':_0x30a556('0x986'),'countries':['AU']},{'name':_0x30a556('0x1f08'),'utcOffset':0x23a,'offsetStr':_0x30a556('0x1c0f'),'countries':['AU']},{'name':_0x30a556('0x2055'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['AU']},{'name':_0x30a556('0x6c3'),'utcOffset':0x20d,'offsetStr':_0x30a556('0x2848'),'countries':['AU']},{'name':_0x30a556('0x1adc'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['AZ']},{'name':_0x30a556('0x1e15'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['BD']},{'name':_0x30a556('0xf0e'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['BE']},{'name':_0x30a556('0x149f'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['BG']},{'name':_0x30a556('0x1369'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['BM']},{'name':_0x30a556('0x1422'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},{'name':_0x30a556('0xd23'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['BO']},{'name':_0x30a556('0x1f0c'),'utcOffset':-0x78,'offsetStr':_0x30a556('0x19b5'),'countries':['BR']},{'name':'America/Belem','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':_0x30a556('0x243'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':_0x30a556('0x2015'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':_0x30a556('0x1a9d'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':_0x30a556('0x1d8b'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x30a556('0x1dcc'),'utcOffset':-0x78,'offsetStr':_0x30a556('0x19b5'),'countries':['BR']},{'name':'America/Campo_Grande','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['BR']},{'name':_0x30a556('0x3e0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x30a556('0x1dff'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['BR']},{'name':_0x30a556('0x18c4'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['BR']},{'name':_0x30a556('0x2388'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':_0x30a556('0x16a3'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':_0x30a556('0x2d2'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':_0x30a556('0x16de'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['BS']},{'name':_0x30a556('0x1969'),'utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['BT']},{'name':_0x30a556('0x219'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['BY']},{'name':_0x30a556('0x1789'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['BZ']},{'name':_0x30a556('0x97e'),'utcOffset':-0xd2,'offsetStr':_0x30a556('0x25d1'),'countries':['CA']},{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['CA']},{'name':_0x30a556('0x2624'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['CA']},{'name':_0x30a556('0x71e'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x30a556('0x26f0'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['CA']},{'name':_0x30a556('0x26bf'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CA']},{'name':'America/Nipigon','utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CA']},{'name':'America/Thunder_Bay','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x30a556('0x1f74'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CA']},{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CA']},{'name':_0x30a556('0x8d0'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['CA']},{'name':_0x30a556('0x7e3'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CA']},{'name':_0x30a556('0x1223'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['CA']},{'name':'America/Winnipeg','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x30a556('0x504'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x30a556('0x719'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['CA']},{'name':_0x30a556('0x56c'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x1ff4'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x1493'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x9dd'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x336'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x1501'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['CA']},{'name':_0x30a556('0x26c7'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0x30a556('0x18f6'),'utcOffset':-0x1e0,'offsetStr':_0x30a556('0x2432'),'countries':['CA']},{'name':'America/Dawson','utcOffset':-0x1e0,'offsetStr':_0x30a556('0x2432'),'countries':['CA']},{'name':_0x30a556('0x1f93'),'utcOffset':0x186,'offsetStr':'+06:30','countries':['CC']},{'name':_0x30a556('0x1508'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},{'name':_0x30a556('0x1122'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0x30a556('0x1770'),'utcOffset':-0x258,'offsetStr':_0x30a556('0x1717'),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CL']},{'name':_0x30a556('0x1959'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['CN']},{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['CN']},{'name':_0x30a556('0x5bc'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CO']},{'name':_0x30a556('0x1450'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['CR']},{'name':_0x30a556('0x11ed'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['CU']},{'name':'Atlantic/Cape_Verde','utcOffset':-0x3c,'offsetStr':_0x30a556('0x272'),'countries':['CV']},{'name':_0x30a556('0x1e62'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['CW','AW','BQ','SX']},{'name':_0x30a556('0x1cf2'),'utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['CX']},{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['CY']},{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['CZ','SK']},{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['DE']},{'name':_0x30a556('0x52e'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['DK']},{'name':'America/Santo_Domingo','utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['DO']},{'name':_0x30a556('0x282f'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['DZ']},{'name':_0x30a556('0x1ec4'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['EC']},{'name':_0x30a556('0xb87'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['EC']},{'name':_0x30a556('0x1a66'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EE']},{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['EG']},{'name':_0x30a556('0x1c31'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['EH']},{'name':_0x30a556('0x2602'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['ES']},{'name':_0x30a556('0x2469'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['ES']},{'name':'Atlantic/Canary','utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['ES']},{'name':_0x30a556('0xa02'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['FI','AX']},{'name':'Pacific/Fiji','utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['FK']},{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['FM']},{'name':_0x30a556('0xf17'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['FM']},{'name':_0x30a556('0x614'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['FM']},{'name':_0x30a556('0x22e0'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['FO']},{'name':'Europe/Paris','utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['FR']},{'name':_0x30a556('0x22f0'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},{'name':_0x30a556('0xb53'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['GE']},{'name':_0x30a556('0x28a'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GF']},{'name':_0x30a556('0xa0c'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['GH']},{'name':_0x30a556('0x6b1'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['GI']},{'name':_0x30a556('0x1aaa'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['GL']},{'name':_0x30a556('0x239c'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['GL']},{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':_0x30a556('0x272'),'countries':['GL']},{'name':_0x30a556('0x143d'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['GL']},{'name':_0x30a556('0xaa8'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['GR']},{'name':_0x30a556('0x1ebe'),'utcOffset':-0x78,'offsetStr':_0x30a556('0x19b5'),'countries':['GS']},{'name':_0x30a556('0x227b'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['GT']},{'name':_0x30a556('0x264d'),'utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['GU','MP']},{'name':_0x30a556('0x12e0'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['GW']},{'name':_0x30a556('0x206d'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},{'name':_0x30a556('0xd30'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['HK']},{'name':_0x30a556('0x1133'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['HN']},{'name':_0x30a556('0x1400'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['HT']},{'name':_0x30a556('0x138'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['HU']},{'name':_0x30a556('0x1b61'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['ID']},{'name':_0x30a556('0x1787'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['ID']},{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['ID']},{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':'+00:00','countries':['IE']},{'name':_0x30a556('0x1591'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['IL']},{'name':_0x30a556('0x6a1'),'utcOffset':0x14a,'offsetStr':_0x30a556('0x260a'),'countries':['IN']},{'name':_0x30a556('0x350'),'utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['IO']},{'name':_0x30a556('0xff7'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['IQ']},{'name':_0x30a556('0xf96'),'utcOffset':0xd2,'offsetStr':_0x30a556('0x149e'),'countries':['IR']},{'name':_0x30a556('0x8f1'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['IS']},{'name':_0x30a556('0x1fae'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['IT','SM','VA']},{'name':_0x30a556('0x217d'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['JM']},{'name':_0x30a556('0x7c1'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},{'name':_0x30a556('0x241e'),'utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['JP']},{'name':_0x30a556('0xe71'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':_0x30a556('0x2139'),'utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['KG']},{'name':'Pacific/Tarawa','utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['KI']},{'name':_0x30a556('0x1608'),'utcOffset':0x30c,'offsetStr':_0x30a556('0xad1'),'countries':['KI']},{'name':_0x30a556('0x1b2e'),'utcOffset':0x348,'offsetStr':_0x30a556('0x258'),'countries':['KI']},{'name':_0x30a556('0x1845'),'utcOffset':0x1fe,'offsetStr':_0x30a556('0x7bf'),'countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['KR']},{'name':_0x30a556('0x4e4'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['KZ']},{'name':_0x30a556('0x2614'),'utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['KZ']},{'name':_0x30a556('0xe2a'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['KZ']},{'name':_0x30a556('0x21ca'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},{'name':_0x30a556('0x6a2'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['KZ']},{'name':_0x30a556('0x1641'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['LB']},{'name':'Asia/Colombo','utcOffset':0x14a,'offsetStr':_0x30a556('0x260a'),'countries':['LK']},{'name':'Africa/Monrovia','utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['LR']},{'name':_0x30a556('0x1b0a'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['LT']},{'name':_0x30a556('0x1829'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['LU']},{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},{'name':_0x30a556('0x43b'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['LY']},{'name':_0x30a556('0x4c1'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['MA']},{'name':_0x30a556('0x162d'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['MC']},{'name':_0x30a556('0x2001'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['MD']},{'name':_0x30a556('0x8c4'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['MH']},{'name':'Asia/Rangoon','utcOffset':0x186,'offsetStr':_0x30a556('0x16fe'),'countries':['MM']},{'name':_0x30a556('0xc9e'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['MN']},{'name':_0x30a556('0x2704'),'utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['MN']},{'name':_0x30a556('0x245b'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['MN']},{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['MO']},{'name':_0x30a556('0x1b73'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['MQ']},{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':'+01:00','countries':['MT']},{'name':_0x30a556('0xd55'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['MU']},{'name':_0x30a556('0x27bb'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['MV']},{'name':'America/Mexico_City','utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['MX']},{'name':_0x30a556('0x1e1f'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x30a556('0x531'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['MX']},{'name':'America/Matamoros','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['MX']},{'name':_0x30a556('0x141e'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['MX']},{'name':_0x30a556('0x1d81'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':_0x30a556('0xb06'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['MX']},{'name':_0x30a556('0x23e7'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},{'name':_0x30a556('0x2812'),'utcOffset':-0x1e0,'offsetStr':_0x30a556('0x2432'),'countries':['MX']},{'name':_0x30a556('0x9cf'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['MX']},{'name':'Asia/Kuala_Lumpur','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x30a556('0x75e'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x30a556('0x130b'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0x30a556('0x1bb3'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['NA']},{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['NC']},{'name':_0x30a556('0x10d4'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':'+01:00','countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['NI']},{'name':_0x30a556('0x67b'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},{'name':_0x30a556('0x485'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['NO','SJ']},{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':_0x30a556('0x156c'),'countries':['NP']},{'name':_0x30a556('0x2130'),'utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['NR']},{'name':_0x30a556('0x2a4'),'utcOffset':-0x294,'offsetStr':_0x30a556('0x202d'),'countries':['NU']},{'name':_0x30a556('0x1fc5'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},{'name':_0x30a556('0x1083'),'utcOffset':0x339,'offsetStr':_0x30a556('0x1f47'),'countries':['NZ']},{'name':_0x30a556('0x1d88'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['PA']},{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['PE']},{'name':_0x30a556('0x1406'),'utcOffset':-0x258,'offsetStr':_0x30a556('0x1717'),'countries':['PF']},{'name':'Pacific/Marquesas','utcOffset':-0x23a,'offsetStr':_0x30a556('0x1c91'),'countries':['PF']},{'name':_0x30a556('0x602'),'utcOffset':-0x21c,'offsetStr':_0x30a556('0xef'),'countries':['PF']},{'name':_0x30a556('0x1bbc'),'utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['PG']},{'name':'Pacific/Bougainville','utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['PG']},{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['PH']},{'name':_0x30a556('0x19c4'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['PK']},{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['PL']},{'name':_0x30a556('0xd6d'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['PM']},{'name':_0x30a556('0xa59'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['PN']},{'name':_0x30a556('0x275d'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['PR']},{'name':_0x30a556('0x23f7'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['PS']},{'name':_0x30a556('0x2fb'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},{'name':_0x30a556('0x268a'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x30a556('0x188e'),'utcOffset':0x0,'offsetStr':_0x30a556('0x2c5'),'countries':['PT']},{'name':'Atlantic/Azores','utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},{'name':_0x30a556('0x2303'),'utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['PW']},{'name':_0x30a556('0x2020'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['PY']},{'name':_0x30a556('0x768'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['QA','BH']},{'name':_0x30a556('0x1790'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['RE','TF']},{'name':'Europe/Bucharest','utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},{'name':_0x30a556('0x1a6'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['RS','BA','HR','ME','MK','SI']},{'name':_0x30a556('0xb81'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['RU']},{'name':_0x30a556('0xc03'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['RU']},{'name':_0x30a556('0xfa'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0x30a556('0x1f0e'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['RU']},{'name':'Europe/Samara','utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['RU']},{'name':_0x30a556('0xaa5'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},{'name':'Asia/Omsk','utcOffset':0x168,'offsetStr':_0x30a556('0x1e4c'),'countries':['RU']},{'name':'Asia/Novosibirsk','utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':_0x30a556('0x2364'),'utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['RU']},{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['RU']},{'name':_0x30a556('0x1236'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['RU']},{'name':'Asia/Chita','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},{'name':_0x30a556('0xd60'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['RU']},{'name':_0x30a556('0x11d4'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':'Asia/Sakhalin','utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['RU']},{'name':_0x30a556('0x150b'),'utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['RU']},{'name':_0x30a556('0x5c'),'utcOffset':0x258,'offsetStr':_0x30a556('0x2258'),'countries':['RU']},{'name':_0x30a556('0x1685'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['RU']},{'name':'Asia/Kamchatka','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x30a556('0x190d'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x30a556('0x258d'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['SA','KW','YE']},{'name':_0x30a556('0x2013'),'utcOffset':0x294,'offsetStr':_0x30a556('0x1a9a'),'countries':['SB']},{'name':_0x30a556('0xc89'),'utcOffset':0xf0,'offsetStr':_0x30a556('0x30d'),'countries':['SC']},{'name':_0x30a556('0x1f24'),'utcOffset':0xb4,'offsetStr':_0x30a556('0x1a55'),'countries':['SD','SS']},{'name':'Europe/Stockholm','utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['SE']},{'name':_0x30a556('0x2159'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['SG']},{'name':_0x30a556('0x8e8'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['SR']},{'name':_0x30a556('0x1939'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},{'name':_0x30a556('0x9c3'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['SY']},{'name':_0x30a556('0x2324'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TC']},{'name':_0x30a556('0xe38'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['TD']},{'name':'Indian/Kerguelen','utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},{'name':'Asia/Bangkok','utcOffset':0x1a4,'offsetStr':_0x30a556('0x1b9c'),'countries':['TH','KH','LA','VN']},{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['TJ']},{'name':_0x30a556('0x23d0'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['TK']},{'name':'Asia/Dili','utcOffset':0x21c,'offsetStr':_0x30a556('0xf11'),'countries':['TL']},{'name':_0x30a556('0x1643'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},{'name':_0x30a556('0x1063'),'utcOffset':0x3c,'offsetStr':_0x30a556('0x752'),'countries':['TN']},{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x30a556('0xad1'),'countries':['TO']},{'name':_0x30a556('0x1e6f'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},{'name':_0x30a556('0x1bed'),'utcOffset':-0xf0,'offsetStr':_0x30a556('0x200b'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0x30a556('0x17c1'),'utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['TV']},{'name':_0x30a556('0x20d2'),'utcOffset':0x1e0,'offsetStr':_0x30a556('0x16d5'),'countries':['TW']},{'name':'Europe/Kiev','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x30a556('0x90b'),'utcOffset':0x78,'offsetStr':_0x30a556('0x3c2'),'countries':['UA']},{'name':_0x30a556('0x11bd'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x30a556('0x30a'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['UM']},{'name':_0x30a556('0xd7f'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['US']},{'name':_0x30a556('0x147c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x80'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['US']},{'name':_0x30a556('0x16cf'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x1e65'),'utcOffset':-0x12c,'offsetStr':_0x30a556('0x19b4'),'countries':['US']},{'name':'America/Indiana/Vincennes','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x242a'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x1a0f'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x1e85'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0x252'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x30a556('0xa'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['US']},{'name':_0x30a556('0x2425'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['US']},{'name':_0x30a556('0xa23'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['US']},{'name':_0x30a556('0x1680'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['US']},{'name':_0x30a556('0x5cc'),'utcOffset':-0x168,'offsetStr':_0x30a556('0x1011'),'countries':['US']},{'name':_0x30a556('0x1700'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x30a556('0x25b1'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['US']},{'name':'America/Boise','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x30a556('0x27ff'),'utcOffset':-0x1a4,'offsetStr':_0x30a556('0x278e'),'countries':['US']},{'name':_0x30a556('0x1e59'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':_0x30a556('0x562'),'utcOffset':-0x1e0,'offsetStr':_0x30a556('0x2432'),'countries':['US']},{'name':_0x30a556('0x124b'),'utcOffset':-0x21c,'offsetStr':_0x30a556('0xef'),'countries':['US']},{'name':'America/Juneau','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x30a556('0xef'),'countries':['US']},{'name':_0x30a556('0xdeb'),'utcOffset':-0x21c,'offsetStr':_0x30a556('0xef'),'countries':['US']},{'name':'America/Nome','utcOffset':-0x21c,'offsetStr':_0x30a556('0xef'),'countries':['US']},{'name':_0x30a556('0x1d52'),'utcOffset':-0x258,'offsetStr':_0x30a556('0x1717'),'countries':['US']},{'name':_0x30a556('0xbc1'),'utcOffset':-0x258,'offsetStr':_0x30a556('0x1717'),'countries':['US','UM']},{'name':_0x30a556('0x23a9'),'utcOffset':-0xb4,'offsetStr':_0x30a556('0x209d'),'countries':['UY']},{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},{'name':_0x30a556('0x4d7'),'utcOffset':0x12c,'offsetStr':_0x30a556('0x121c'),'countries':['UZ']},{'name':_0x30a556('0x127b'),'utcOffset':-0x10e,'offsetStr':'-04:30','countries':['VE']},{'name':_0x30a556('0x197c'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':'+11:00','countries':['VU']},{'name':'Pacific/Wallis','utcOffset':0x2d0,'offsetStr':_0x30a556('0x1fa3'),'countries':['WF']},{'name':_0x30a556('0x19'),'utcOffset':0x348,'offsetStr':_0x30a556('0x258'),'countries':['WS']},{'name':_0x30a556('0xd4c'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}];}],'templateUrl':_0x6ad5b2};}const _0x2d0a6b=_0x5ef542;;function _0x222274(){const _0x303e1f=_0x34e79e,_0x5bd923=this;_0x5bd923[_0x303e1f('0x916')]=[],_0x5bd923[_0x303e1f('0x1882')]=![],_0x5bd923[_0x303e1f('0x9e3')]=0x14;function _0x44308e(_0x34b133){const _0x5f37c7=_0x303e1f;let _0x3b3483=0x0;if(_0x34b133){_0x5bd923['fontSize']=_0x34b133[_0x5f37c7('0xa10')][0x2]&&_0x34b133[_0x5f37c7('0xa10')][0x2]['value']?parseInt(_0x34b133[_0x5f37c7('0xa10')][0x2]['value'])-parseInt(_0x34b133['attrs'][0x2][_0x5f37c7('0x49')])%0x2:0x14;_0x34b133[_0x5f37c7('0xa10')][0x1][_0x5f37c7('0x49')]&&_0x34b133['attrs'][0x1][_0x5f37c7('0x49')][_0x5f37c7('0x2566')]?(_0x5bd923['filtered']=!![],_0x5bd923[_0x5f37c7('0x916')]=_0x283545()['intersection'](_0x34b133['voiceQueuesSelected'],_0x34b133[_0x5f37c7('0xa10')][0x1][_0x5f37c7('0x49')])):(_0x5bd923[_0x5f37c7('0x1882')]=![],_0x5bd923[_0x5f37c7('0x916')]=_0x34b133[_0x5f37c7('0x1828')]);for(let _0x3a621b=0x0;_0x3a621b<_0x34b133[_0x5f37c7('0x135')][_0x5f37c7('0x25df')][_0x5f37c7('0x2566')];_0x3a621b+=0x1){_0x283545()[_0x5f37c7('0x1d4e')](_0x5bd923[_0x5f37c7('0x916')],_0x34b133[_0x5f37c7('0x135')]['rows'][_0x3a621b]['id'])&&(_0x3b3483+=_0x34b133[_0x5f37c7('0x135')][_0x5f37c7('0x25df')][_0x3a621b][_0x34b133[_0x5f37c7('0xa10')][0x0][_0x5f37c7('0x49')]]?parseInt(_0x34b133[_0x5f37c7('0x135')]['rows'][_0x3a621b][_0x34b133[_0x5f37c7('0xa10')][0x0][_0x5f37c7('0x49')]]):0x0);}}return _0x3b3483;}_0x5bd923['getCount']=_0x44308e;}const _0x2d2cb3=_0x222274;_0x101fdd[_0x34e79e('0x2d9')]=[_0x34e79e('0x1a5c')];function _0x101fdd(_0x552b5a){const _0x1facc2=_0x34e79e,_0x42fd62=this;_0x42fd62[_0x1facc2('0x916')]=[],_0x42fd62['filtered']=![],_0x42fd62[_0x1facc2('0x23d7')]=[],_0x42fd62[_0x1facc2('0x646')]={'labels':[_0x1facc2('0x1ed0')],'series':[_0x1facc2('0x19ad')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x1facc2('0x1d49')},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x1facc2('0x1d49'),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x1facc2('0x1d49')}}]}}};function _0x5346ba(_0x4a6b2f){const _0x28c8ea=_0x1facc2;_0x42fd62[_0x28c8ea('0x23d7')]=_0x283545()[_0x28c8ea('0x155d')](_0x283545()[_0x28c8ea('0x916')](_0x4a6b2f[_0x28c8ea('0xa10')],function(_0x52c680){const _0x127650=_0x28c8ea;return _0x52c680['name']&&_0x52c680[_0x127650('0x1a8d')][_0x127650('0x821')]('attrSerie')>=0x0&&_0x52c680[_0x127650('0x49')]&&_0x52c680[_0x127650('0x49')]!==_0x127650('0x954');}),_0x28c8ea('0x49'));_0x4a6b2f[_0x28c8ea('0xa10')][0x3][_0x28c8ea('0x49')]&&_0x4a6b2f['attrs'][0x3]['value'][_0x28c8ea('0x2566')]?(_0x42fd62[_0x28c8ea('0x1882')]=!![],_0x42fd62['filter']=_0x283545()[_0x28c8ea('0x1a43')](_0x4a6b2f[_0x28c8ea('0x1828')],_0x4a6b2f[_0x28c8ea('0xa10')][0x3][_0x28c8ea('0x49')])):(_0x42fd62[_0x28c8ea('0x1882')]=![],_0x42fd62[_0x28c8ea('0x916')]=_0x4a6b2f[_0x28c8ea('0x1828')]);if(_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0xe60')][_0x28c8ea('0x2566')]>_0x42fd62[_0x28c8ea('0x23d7')]['length']){const _0x26bf0f=_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0xe60')][_0x28c8ea('0x2566')]-_0x42fd62[_0x28c8ea('0x23d7')][_0x28c8ea('0x2566')];_0x42fd62[_0x28c8ea('0x646')]['series'][_0x28c8ea('0x722')](0x0,_0x26bf0f),_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x11fc')][_0x28c8ea('0x722')](0x0,_0x26bf0f);}for(let _0x5bfa68=0x0;_0x5bfa68<_0x42fd62['properties'][_0x28c8ea('0x2566')];_0x5bfa68+=0x1){_0x42fd62['multiBarChart']['series'][_0x5bfa68]=_0x552b5a[_0x28c8ea('0x1b11')](_0x28c8ea('0xb91')+_0x42fd62[_0x28c8ea('0x23d7')][_0x5bfa68][_0x28c8ea('0x25e6')]());_0x283545()['isNil'](_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x11fc')][_0x5bfa68])&&(_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x11fc')][_0x5bfa68]=[]);if(_0x42fd62[_0x28c8ea('0x646')]['labels'][_0x28c8ea('0x2566')]>_0x42fd62[_0x28c8ea('0x916')][_0x28c8ea('0x2566')]){const _0xb85532=_0x42fd62['multiBarChart'][_0x28c8ea('0x12ca')]['length']-_0x42fd62[_0x28c8ea('0x916')][_0x28c8ea('0x2566')];_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x12ca')]['splice'](0x0,_0xb85532),_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x11fc')][_0x5bfa68][_0x28c8ea('0x722')](0x0,_0xb85532);}for(let _0x15d341=0x0,_0x4a076e=0x0;_0x15d341<_0x4a6b2f['voiceQueues'][_0x28c8ea('0x25df')][_0x28c8ea('0x2566')];_0x15d341+=0x1){_0x283545()[_0x28c8ea('0x1d4e')](_0x42fd62[_0x28c8ea('0x916')],_0x4a6b2f[_0x28c8ea('0x135')][_0x28c8ea('0x25df')][_0x15d341]['id'])&&(_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x12ca')][_0x4a076e]=_0x4a6b2f[_0x28c8ea('0x135')][_0x28c8ea('0x25df')][_0x15d341][_0x28c8ea('0x1a8d')],_0x42fd62[_0x28c8ea('0x646')][_0x28c8ea('0x11fc')][_0x5bfa68][_0x4a076e]=_0x4a6b2f[_0x28c8ea('0x135')][_0x28c8ea('0x25df')][_0x15d341][_0x42fd62[_0x28c8ea('0x23d7')][_0x5bfa68]]?parseInt(_0x4a6b2f[_0x28c8ea('0x135')][_0x28c8ea('0x25df')][_0x15d341][_0x42fd62[_0x28c8ea('0x23d7')][_0x5bfa68]]):0x0,_0x4a076e+=0x1);}}}function _0x16c9fe(_0x5dcd35){const _0x4e9e68=_0x1facc2;_0x42fd62['multiBarChart'][_0x4e9e68('0x784')]['legend'][_0x4e9e68('0x61d')]=_0x5dcd35[_0x4e9e68('0x16fb')];for(let _0x1f6b7b=0x0;_0x1f6b7b<_0x42fd62[_0x4e9e68('0x646')][_0x4e9e68('0x784')][_0x4e9e68('0xa7f')]['xAxes']['length'];_0x1f6b7b+=0x1){_0x42fd62[_0x4e9e68('0x646')]['options'][_0x4e9e68('0xa7f')]['xAxes'][_0x1f6b7b][_0x4e9e68('0x14ae')][_0x4e9e68('0x61d')]=_0x5dcd35['foreground'];}for(let _0x565f1b=0x0;_0x565f1b<_0x42fd62[_0x4e9e68('0x646')][_0x4e9e68('0x784')][_0x4e9e68('0xa7f')][_0x4e9e68('0xeea')][_0x4e9e68('0x2566')];_0x565f1b+=0x1){_0x42fd62[_0x4e9e68('0x646')][_0x4e9e68('0x784')][_0x4e9e68('0xa7f')]['yAxes'][_0x565f1b]['ticks']['fontColor']=_0x5dcd35[_0x4e9e68('0x16fb')];}}function _0x1b5339(_0x4fb39b){const _0x6649ce=_0x1facc2;_0x4fb39b&&(_0x4fb39b['attrs']&&_0x5346ba(_0x4fb39b),_0x4fb39b[_0x6649ce('0x16fb')]&&_0x16c9fe(_0x4fb39b));}_0x42fd62[_0x1facc2('0x156b')]=_0x1b5339;}const _0x320fe2=_0x101fdd;_0x17d748['$inject']=[_0x34e79e('0x1a5c')];function _0x17d748(_0x219e4c){const _0x3d14cf=_0x34e79e,_0x589760=this;_0x589760[_0x3d14cf('0x916')]=[],_0x589760[_0x3d14cf('0x1882')]=![],_0x589760[_0x3d14cf('0x23d7')]=[],_0x589760[_0x3d14cf('0x9a9')]={'labels':['ANSWERED'],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x2d8fc1(_0x4b69c6){const _0x22aa52=_0x3d14cf;_0x589760[_0x22aa52('0x23d7')]=_0x283545()[_0x22aa52('0x155d')](_0x283545()['filter'](_0x4b69c6[_0x22aa52('0xa10')],function(_0x21b252){const _0x45348f=_0x22aa52;return _0x21b252[_0x45348f('0x1a8d')]&&_0x21b252[_0x45348f('0x1a8d')][_0x45348f('0x821')]('attrSerie')>=0x0&&_0x21b252[_0x45348f('0x49')]&&_0x21b252[_0x45348f('0x49')]!==_0x45348f('0x954');}),'value');_0x4b69c6[_0x22aa52('0xa10')][0x3][_0x22aa52('0x49')]&&_0x4b69c6[_0x22aa52('0xa10')][0x3][_0x22aa52('0x49')][_0x22aa52('0x2566')]?(_0x589760[_0x22aa52('0x1882')]=!![],_0x589760[_0x22aa52('0x916')]=_0x283545()[_0x22aa52('0x1a43')](_0x4b69c6['voiceQueuesSelected'],_0x4b69c6['attrs'][0x3]['value'])):(_0x589760[_0x22aa52('0x1882')]=![],_0x589760['filter']=_0x4b69c6[_0x22aa52('0x1828')]);if(_0x589760[_0x22aa52('0x9a9')][_0x22aa52('0x12ca')][_0x22aa52('0x2566')]>_0x589760[_0x22aa52('0x23d7')][_0x22aa52('0x2566')]){const _0x1a5c8a=_0x589760[_0x22aa52('0x9a9')][_0x22aa52('0x12ca')][_0x22aa52('0x2566')]-_0x589760[_0x22aa52('0x23d7')][_0x22aa52('0x2566')];_0x589760[_0x22aa52('0x9a9')][_0x22aa52('0x12ca')][_0x22aa52('0x722')](0x0,_0x1a5c8a),_0x589760[_0x22aa52('0x9a9')][_0x22aa52('0x11fc')]['splice'](0x0,_0x1a5c8a);}for(let _0x35a58f=0x0,_0x42a2ba=0x0;_0x35a58f<_0x589760[_0x22aa52('0x23d7')][_0x22aa52('0x2566')];_0x35a58f+=0x1){_0x589760[_0x22aa52('0x9a9')][_0x22aa52('0x12ca')][_0x35a58f]=_0x219e4c[_0x22aa52('0x1b11')](_0x22aa52('0xb91')+_0x589760[_0x22aa52('0x23d7')][_0x35a58f][_0x22aa52('0x25e6')]());for(let _0x3f66cd=0x0;_0x3f66cd<_0x4b69c6[_0x22aa52('0x135')][_0x22aa52('0x25df')][_0x22aa52('0x2566')];_0x3f66cd+=0x1){_0x283545()[_0x22aa52('0x1d4e')](_0x589760[_0x22aa52('0x916')],_0x4b69c6[_0x22aa52('0x135')][_0x22aa52('0x25df')][_0x3f66cd]['id'])&&(_0x42a2ba+=_0x4b69c6[_0x22aa52('0x135')]['rows'][_0x3f66cd][_0x589760[_0x22aa52('0x23d7')][_0x35a58f]]?parseInt(_0x4b69c6['voiceQueues'][_0x22aa52('0x25df')][_0x3f66cd][_0x589760['properties'][_0x35a58f]]):0x0);}_0x589760[_0x22aa52('0x9a9')]['data'][_0x35a58f]=_0x42a2ba,_0x42a2ba=0x0;}}function _0x4b0569(_0x44252e){const _0x5a647a=_0x3d14cf;_0x589760[_0x5a647a('0x9a9')][_0x5a647a('0x784')][_0x5a647a('0x25c9')][_0x5a647a('0x61d')]=_0x44252e['foreground'];}function _0x1be0de(_0x4769c3){const _0x492a99=_0x3d14cf;_0x4769c3&&(_0x4769c3[_0x492a99('0xa10')]&&_0x2d8fc1(_0x4769c3),_0x4769c3[_0x492a99('0x16fb')]&&_0x4b0569(_0x4769c3));}_0x589760[_0x3d14cf('0x1a3b')]=_0x1be0de;}const _0x904230=_0x17d748;_0x3193e3['$inject']=['$scope',_0x34e79e('0x446'),'$interval','api'];function _0x3193e3(_0x2d4788,_0x3a3e8c,_0x57ac1d,_0x4ac208){const _0x2ceaec=_0x34e79e,_0x2262ae=this;_0x2262ae[_0x2ceaec('0x45c')]=0x0,_0x2262ae[_0x2ceaec('0x9b9')]=0x0,_0x2262ae[_0x2ceaec('0x14e4')]='',_0x2262ae['columns']=[],_0x2262ae[_0x2ceaec('0xc64')]={'rows':[],'count':0x0},_0x2262ae[_0x2ceaec('0x135a')]={'limit':0xa,'page':0x1,'startDate':_0x59f37a()()[_0x2ceaec('0x13e4')](_0x2ceaec('0xf'))[_0x2ceaec('0x22b4')](_0x2ceaec('0xe8e')),'endDate':_0x59f37a()()[_0x2ceaec('0x142e')]('day')[_0x2ceaec('0x22b4')](_0x2ceaec('0xe8e')),'output':_0x2ceaec('0xb16')},_0x2262ae['onInit']=_0x22ec4d,_0x2262ae[_0x2ceaec('0x2122')]=_0x58f47c,_0x2262ae[_0x2ceaec('0xea9')]=_0x1e0bbb;function _0x22ec4d(_0x5ebea1){const _0xc4f933=_0x2ceaec;_0x5ebea1&&(_0x5ebea1[_0xc4f933('0xa10')]&&(_0x5ebea1['attrs'][0x0]&&_0x5ebea1[_0xc4f933('0xa10')][0x0][_0xc4f933('0x49')]&&(_0x2262ae[_0xc4f933('0x135a')]['id']=_0x5ebea1[_0xc4f933('0xa10')][0x0][_0xc4f933('0x49')],_0x4ac208[_0xc4f933('0x23ec')][_0xc4f933('0x1335')]({'fields':_0xc4f933('0xb08'),'nolimit':!![],'DefaultReportId':_0x5ebea1[_0xc4f933('0xa10')][0x0]['type']===_0xc4f933('0x1c15')?_0x5ebea1[_0xc4f933('0xa10')][0x0][_0xc4f933('0x49')]:undefined,'CustomReportId':_0x5ebea1[_0xc4f933('0xa10')][0x0][_0xc4f933('0x1d7')]===_0xc4f933('0x1d56')?_0x5ebea1['attrs'][0x0][_0xc4f933('0x49')]:undefined})[_0xc4f933('0x1714')][_0xc4f933('0x2788')](function(_0x47e768){const _0x384b9e=_0xc4f933;_0x47e768&&_0x47e768[_0x384b9e('0x25df')]&&(_0x2262ae[_0x384b9e('0x1fd0')]=_0x47e768['rows']);switch(_0x5ebea1[_0x384b9e('0xa10')][0x0][_0x384b9e('0x1d7')]){case _0x384b9e('0x1c15'):_0x2262ae[_0x384b9e('0x24d')]='analyticDefaultReport';break;case _0x384b9e('0x1d56'):_0x2262ae[_0x384b9e('0x24d')]=_0x384b9e('0x193d');break;}return _0x4ac208[_0x2262ae[_0x384b9e('0x24d')]]['get']({'id':_0x5ebea1['attrs'][0x0][_0x384b9e('0x49')],'fields':_0x384b9e('0x1338')})[_0x384b9e('0x1714')];})['then'](function(_0x4df814){const _0x14bb44=_0xc4f933;_0x4df814&&_0x4df814['name']&&(_0x2262ae[_0x14bb44('0x14e4')]=_0x4df814[_0x14bb44('0x1a8d')]),_0x58f47c();})[_0xc4f933('0x1cb5')](function(_0x270059){const _0x4a41a2=_0xc4f933;console[_0x4a41a2('0x10df')](_0x270059);})),_0x5ebea1[_0xc4f933('0xa10')][0x1]&&_0x5ebea1[_0xc4f933('0xa10')][0x1][_0xc4f933('0x49')]&&(_0x2262ae[_0xc4f933('0x9b9')]=parseInt(_0x5ebea1[_0xc4f933('0xa10')][0x1][_0xc4f933('0x49')]),!_0x283545()[_0xc4f933('0x2334')](_0x2262ae[_0xc4f933('0x9b9')])&&_0x2262ae['refresh']>0x0?(_0x2262ae[_0xc4f933('0x45c')]=parseInt(_0x5ebea1['attrs'][0x1][_0xc4f933('0x49')]),_0x2262ae[_0xc4f933('0x2630')]=_0x57ac1d(function(){const _0x5a88be=_0xc4f933;_0x2262ae[_0x5a88be('0x45c')]-=0x1;},0x3e8,0x0),_0x2262ae[_0xc4f933('0x24e4')]=_0x3a3e8c(function(){const _0x4d7734=_0xc4f933;_0x2262ae['interval']&&_0x57ac1d[_0x4d7734('0x1801')](_0x2262ae[_0x4d7734('0x2630')]),_0x22ec4d(_0x5ebea1);},_0x2262ae[_0xc4f933('0x9b9')]*0x3e8)):(_0x2262ae[_0xc4f933('0x2630')]&&_0x57ac1d[_0xc4f933('0x1801')](_0x2262ae[_0xc4f933('0x2630')]),_0x2262ae[_0xc4f933('0x24e4')]&&_0x3a3e8c[_0xc4f933('0x1801')](_0x2262ae[_0xc4f933('0x24e4')])))));}function _0x7e4a74(_0x57e70a){const _0x1ad1cd=_0x2ceaec;_0x2262ae[_0x1ad1cd('0xc64')]=_0x57e70a||{'count':0x0,'rows':[]};}function _0x58f47c(){const _0x1a7f2d=_0x2ceaec;_0x2262ae[_0x1a7f2d('0x135a')][_0x1a7f2d('0x19e')]=(_0x2262ae[_0x1a7f2d('0x135a')][_0x1a7f2d('0x23f5')]-0x1)*_0x2262ae['query'][_0x1a7f2d('0x68e')],_0x2262ae[_0x1a7f2d('0x1808')]=_0x4ac208[_0x2262ae[_0x1a7f2d('0x24d')]]['run'](_0x2262ae['query'],_0x7e4a74)[_0x1a7f2d('0x1714')];}function _0x1e0bbb(_0x287643,_0x382133){const _0x5038dd=_0x2ceaec;return _0x59f37a()(_0x382133,_0x5038dd('0x208'),!![])[_0x5038dd('0x68d')]()&&(_0x382133=_0x59f37a()(_0x382133,'')[_0x5038dd('0x22b4')](_0x5038dd('0xe8e'))),_0x382133;}_0x2d4788['$on']('$destroy',function(){const _0x54d76a=_0x2ceaec;_0x2262ae[_0x54d76a('0x2630')]&&_0x57ac1d[_0x54d76a('0x1801')](_0x2262ae[_0x54d76a('0x2630')]),_0x2262ae[_0x54d76a('0x24e4')]&&_0x3a3e8c[_0x54d76a('0x1801')](_0x2262ae['timeout']);});}const _0x42620f=_0x3193e3,_0xa36e77=_0x18dd13['p']+_0x34e79e('0x408');_0x835576['$inject']=['$mdDialog','$sce'];function _0x835576(_0x7f7597,_0x487b40){const _0x50ed0c=_0x34e79e,_0xba545d=this;function _0x59188d(_0xf0c39d){const _0x319aa3=a0_0x14e7;return _0x487b40[_0x319aa3('0x283c')](_0xf0c39d);}_0xba545d[_0x50ed0c('0x14c6')]=_0x59188d;}function _0x343b9b(){const _0x32ab0d=_0x34e79e;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x32ab0d('0x137'),'controller':_0x32ab0d('0x10a1'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0xa36e77};}_0x105571[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x14bb')];function _0x105571(_0x4d1e87,_0x597383){const _0x21f0d1=_0x34e79e,_0x4ee71d=this;_0x4ee71d[_0x21f0d1('0x2e5')]=![];function _0x5bfe81(){const _0x5f1d17=_0x21f0d1;return angular[_0x5f1d17('0x2735')](_0x4d1e87[_0x5f1d17('0x1078')])&&_0x4d1e87[_0x5f1d17('0x1078')]===!![];}function _0x3c6927(){const _0x592d64=_0x21f0d1;if(!_0x5bfe81())return;_0x4ee71d[_0x592d64('0x2e5')]=!_0x4ee71d[_0x592d64('0x2e5')],_0x597383['toggleClass'](_0x592d64('0x2e5'),_0x4ee71d[_0x592d64('0x2e5')]);}_0x4ee71d[_0x21f0d1('0x1654')]=_0x3c6927;}function _0x7de0cf(){const _0x1653f5=_0x34e79e;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x1653f5('0x10f6'),'transclude':!![],'compile':function(_0xc9cc83){const _0x259f8a=_0x1653f5;return _0xc9cc83[_0x259f8a('0x19df')]('ms-widget'),function _0x225b22(_0x7b05c1,_0x3572d9,_0x8357d9,_0x4fb864,_0x5f3823){_0x5f3823(function(_0x3c9c69){_0x3572d9['empty'](),_0x3572d9['append'](_0x3c9c69);});};}};}function _0x530f2d(){const _0x1d6265=_0x34e79e;return{'restrict':'E','require':_0x1d6265('0x87d'),'transclude':!![],'compile':function(_0x534dc1){const _0x330aeb=_0x1d6265;return _0x534dc1[_0x330aeb('0x19df')]('ms-widget-front'),function _0x3fc579(_0x8ca1d2,_0x1ce28a,_0x589c70,_0x474cea,_0xd9176e){const _0x506db2=_0x330aeb;_0xd9176e(function(_0x5520bc){const _0x598084=a0_0x14e7;_0x1ce28a[_0x598084('0x1cde')](),_0x1ce28a[_0x598084('0xc44')](_0x5520bc);}),_0x8ca1d2[_0x506db2('0x4e3')]=_0x474cea[_0x506db2('0x1654')];};}};}function _0x575f98(){const _0x3c478a=_0x34e79e;return{'restrict':'E','require':_0x3c478a('0x87d'),'transclude':!![],'compile':function(_0x2d9a2f){const _0x299508=_0x3c478a;return _0x2d9a2f[_0x299508('0x19df')](_0x299508('0xcb8')),function _0x278b92(_0xcfe555,_0x1b6367,_0x59bd3f,_0x77c5a5,_0x2c5251){const _0x4e3246=_0x299508;_0x2c5251(function(_0x1f87c8){const _0x2213bb=a0_0x14e7;_0x1b6367[_0x2213bb('0x1cde')](),_0x1b6367['append'](_0x1f87c8);}),_0xcfe555[_0x4e3246('0x4e3')]=_0x77c5a5[_0x4e3246('0x1654')];};}};};const _0x1b33d2=[[_0x34e79e('0xca3'),_0x122f4f,_0x34e79e('0x5a1')],[_0x34e79e('0xdbb'),_0x56651e,_0x34e79e('0x5a1')],[_0x34e79e('0x24f'),_0x41a99c,'directive'],[_0x34e79e('0x20a9'),_0x235c30,_0x34e79e('0x5a1')],['msChipColor',_0x3843b6,_0x34e79e('0x5a1')],[_0x34e79e('0x2612'),_0x468540,'directive'],[_0x34e79e('0x198e'),_0x102fff,'provider'],[_0x34e79e('0x763'),_0x500cff,_0x34e79e('0x5a1')],['msDialogRecording',_0x383e3f,_0x34e79e('0x5a1')],[_0x34e79e('0x115f'),_0x4c5f01,_0x34e79e('0x5a1')],['msEmojiArea',_0x169775,'directive'],['msFontFamily',_0x19369f,_0x34e79e('0x5a1')],[_0x34e79e('0x1e37'),_0x5478f5,_0x34e79e('0xb44')],[_0x34e79e('0xf41'),_0x57b5f0,'directive'],['msFormWizardForm',_0x133605,_0x34e79e('0x5a1')],[_0x34e79e('0x1fac'),_0x1caaad,_0x34e79e('0x5a1')],['msMasonryController',_0x59b8a8,_0x34e79e('0xb44')],['msMasonry',_0x2121ed,_0x34e79e('0x5a1')],[_0x34e79e('0x12ac'),_0x4c2437,'directive'],[_0x34e79e('0x17e7'),_0x3ec42d,_0x34e79e('0xb44')],[_0x34e79e('0x19d9'),_0x52aa64,_0x34e79e('0x5a1')],[_0x34e79e('0xfb5'),_0xa18288,_0x34e79e('0x227e')],['msNavIsFolded',_0x79c6ca,_0x34e79e('0x5a1')],[_0x34e79e('0x2a8'),_0x4a0626,_0x34e79e('0xb44')],[_0x34e79e('0x1cf1'),_0x214a2b,_0x34e79e('0x5a1')],[_0x34e79e('0x933'),_0x3ec3db,_0x34e79e('0x5a1')],['msNavButton',_0x4b4a63,'directive'],['msNavToggle',_0x56000d,'directive'],['msNavigationService',_0x5bddc0,_0x34e79e('0x182b')],[_0x34e79e('0x1f80'),_0x3999ce,_0x34e79e('0xb44')],[_0x34e79e('0xa85'),_0x3e2eb9,'directive'],[_0x34e79e('0x1659'),_0x4e38e9,_0x34e79e('0xb44')],['msNavigationNode',_0x12e918,'directive'],[_0x34e79e('0xe4c'),_0x2eb249,_0x34e79e('0x5a1')],[_0x34e79e('0x1fbf'),_0x3106d8,'directive'],[_0x34e79e('0x1652'),_0x5693ea,_0x34e79e('0xb44')],['msNavigationHorizontalNode',_0x4af0c6,_0x34e79e('0x5a1')],[_0x34e79e('0x134d'),_0x35639e,_0x34e79e('0x5a1')],['MsPhonebarController',_0x4db3a1,'controller'],['msPhonebar',_0x2d0875,_0x34e79e('0x5a1')],[_0x34e79e('0x1035'),_0x266929,_0x34e79e('0xb44')],[_0x34e79e('0x24de'),_0x47f9d4,_0x34e79e('0x5a1')],[_0x34e79e('0x2133'),_0x5ca1d7,'controller'],[_0x34e79e('0xc6b'),_0x150120,_0x34e79e('0xb44')],[_0x34e79e('0x773'),_0x3148e1,_0x34e79e('0xb44')],[_0x34e79e('0x1690'),_0x162313,_0x34e79e('0x5a1')],['dateRangeManager',_0x213892,'factory'],['msRandomClass',_0x895a72,_0x34e79e('0x5a1')],[_0x34e79e('0x26d5'),_0x19eb5c,_0x34e79e('0x5a1')],[_0x34e79e('0x171f'),_0x35d032,_0x34e79e('0x5a1')],['msScrollConfig',_0x2ba130,_0x34e79e('0x182b')],[_0x34e79e('0x1eb4'),_0x107987,_0x34e79e('0x5a1')],[_0x34e79e('0x1fe8'),_0x2c72bd,_0x34e79e('0xb44')],[_0x34e79e('0x39b'),_0x1eaf96,'directive'],[_0x34e79e('0x1980'),_0x571db5,_0x34e79e('0xb44')],[_0x34e79e('0x1c56'),_0x4228b0,'directive'],['msSidenavHelper',_0x32e083,_0x34e79e('0x5a1')],['msSplashScreen',_0x20e933,_0x34e79e('0x5a1')],[_0x34e79e('0x1cb3'),_0x40d84a,_0x34e79e('0xb44')],[_0x34e79e('0x1b1d'),_0x23e3d4,'directive'],[_0x34e79e('0x284a'),_0x1fa5be,_0x34e79e('0x5a1')],[_0x34e79e('0x1375'),_0x46b407,'directive'],[_0x34e79e('0x2371'),_0x47d715,_0x34e79e('0x5a1')],['MsTabScrollController',_0x1f35ef,_0x34e79e('0xb44')],[_0x34e79e('0x1a8e'),_0x38df6c,_0x34e79e('0x5a1')],[_0x34e79e('0x8c1'),_0xc1d5be,_0x34e79e('0xb44')],[_0x34e79e('0x1e2d'),_0x3aaa7f,_0x34e79e('0x5a1')],[_0x34e79e('0x1459'),_0x29267a,_0x34e79e('0x5a1')],['MsTimerController',_0x1c43f8,_0x34e79e('0xb44')],[_0x34e79e('0xede'),_0xf55cc,'directive'],[_0x34e79e('0xf8a'),_0x2d0a6b,_0x34e79e('0x5a1')],[_0x34e79e('0x1635'),_0x2d2cb3,_0x34e79e('0xb44')],[_0x34e79e('0x1a59'),_0x320fe2,'controller'],['MsWidgetEnginePieChartController',_0x904230,_0x34e79e('0xb44')],['MsWidgetEngineWebReportController',_0x42620f,'controller'],['MsWidgetEngineController',_0x835576,'controller'],[_0x34e79e('0x137'),_0x343b9b,_0x34e79e('0x5a1')],[_0x34e79e('0x10f6'),_0x105571,_0x34e79e('0xb44')],[_0x34e79e('0x16dd'),_0x7de0cf,'directive'],['msWidgetFront',_0x530f2d,_0x34e79e('0x5a1')],[_0x34e79e('0x2342'),_0x575f98,_0x34e79e('0x5a1')]],_0x546c73=_0x1b33d2;_0x2f8a6b[_0x34e79e('0x2d9')]=['$q',_0x34e79e('0x1a5c')];function _0x2f8a6b(_0x41a311,_0x2b9369){function _0x832e6b(_0x20591a){let _0x48aff7;return _0x41a311(function(_0x2a62f3){const _0x53fc7a=a0_0x14e7;try{if(_0x283545()['isEmpty'](_0x20591a[_0x53fc7a('0x564')]))_0x48aff7=_0x2b9369[_0x53fc7a('0x1b11')](_0x53fc7a('0x256'));else{if(_0x283545()[_0x53fc7a('0x213d')](_0x20591a[_0x53fc7a('0x1453')]))_0x48aff7=_0x20591a[_0x53fc7a('0xd27')]?_0x2b9369['instant'](_0x20591a[_0x53fc7a('0xd27')]):_0x2b9369['instant'](_0x53fc7a('0x40f'));else{if(_0x20591a[_0x53fc7a('0x1453')][_0x53fc7a('0x2566')]===_0x20591a[_0x53fc7a('0x564')][_0x53fc7a('0x2566')])_0x48aff7=_0x2b9369[_0x53fc7a('0x1b11')](_0x53fc7a('0xc79'));else{const _0x4804e5=_0x20591a[_0x53fc7a('0x279d')]||'id';_0x48aff7=_0x283545()(_0x20591a[_0x53fc7a('0x564')])[_0x53fc7a('0x916')](function(_0x2fc0b4){const _0x3d106c=_0x53fc7a;return _0x283545()['includes'](_0x20591a[_0x3d106c('0x1453')],_0x2fc0b4[_0x4804e5]);})[_0x53fc7a('0x155d')](_0x53fc7a('0x1a8d'))[_0x53fc7a('0x49')]()[_0x53fc7a('0x185f')](',\x20');}}}_0x2a62f3(_0x48aff7);}catch(_0x17d05a){console[_0x53fc7a('0x10df')](_0x53fc7a('0x1e1a'),_0x17d05a),_0x2a62f3(null);}});}const _0x5a7b3e={'setPlaceholder':_0x832e6b};return _0x5a7b3e;}const _0xc0537e=_0x2f8a6b;;function _0xb0c062(){return function(_0x4baedd){const _0x166b79=a0_0x14e7,_0x1b967a=Date[_0x166b79('0x2305')]()-new Date(_0x4baedd);if(_0x1b967a<0x3c*0x3c*0x3e8)return _0x59f37a()(_0x4baedd)['fromNow']();else{if(_0x1b967a<0x3c*0x3c*0x18*0x3e8)return _0x59f37a()(_0x4baedd)[_0x166b79('0x22b4')](_0x166b79('0x1812'));else return _0x1b967a<0x3c*0x3c*0x18*0x7*0x3e8?_0x59f37a()(_0x4baedd)[_0x166b79('0x22b4')](_0x166b79('0xf0f')):_0x59f37a()(_0x4baedd)['calendar']();}};}const _0x1b410d=_0xb0c062;_0x32bfb2[_0x34e79e('0x2d9')]=[_0x34e79e('0x1750')];function _0x32bfb2(_0x46b68e){return function(_0x5b7d90){const _0x452cdc=a0_0x14e7;return _0x46b68e[_0x452cdc('0x5d7')](_0x5b7d90);};}function _0x161e65(){return function(_0x5529ad){const _0x567e2e=a0_0x14e7;return String(_0x5529ad)[_0x567e2e('0x10a4')](/<[^>]+>/gm,'');};}function _0x33c785(){return function(_0x17cdb5){return!_0x17cdb5?'':_0x17cdb5['replace'](/ /g,'');};}function _0x1895b8(){return function(_0x2d81c5){const _0x2b1227=a0_0x14e7;if(!_0x2d81c5)return;if(_0x2d81c5['type']===_0x2b1227('0x5a1'))return _0x2d81c5[_0x2b1227('0x1a8d')][_0x2b1227('0x10a4')](/([A-Z])/g,function(_0x41858b){return'-'+_0x41858b['toLowerCase']();});return _0x2d81c5[_0x2b1227('0x1c1b')]||_0x2d81c5[_0x2b1227('0x1a8d')];};};function _0x2c39aa(){return function(_0x3a88f7){const _0x35b934=a0_0x14e7;if(!_0x3a88f7)return'';return _0x283545()[_0x35b934('0x1df5')](_0x3a88f7);};}const _0xdcdc9c=_0x2c39aa;function _0x3cf0c6(){return function(_0x255bec,_0x4940a5){const _0x21df64=a0_0x14e7;if(_0x255bec[_0x21df64('0x2566')]===0x0||!_0x4940a5)return _0x255bec;if(_0x4940a5[_0x21df64('0x2566')]===0x0)return[];const _0x152326=[];for(let _0x70ec75=0x0;_0x70ec75<_0x255bec[_0x21df64('0x2566')];_0x70ec75++){const _0xe136a9=_0x255bec[_0x70ec75];let _0x3ade46=![];for(let _0xf45d3d=0x0;_0xf45d3d<_0x4940a5['length'];_0xf45d3d++){const _0x3033f5=_0x4940a5[_0xf45d3d];if(_0xe136a9['id']===_0x3033f5){_0x3ade46=!![];break;}}_0x3ade46&&_0x152326[_0x21df64('0x13e3')](_0xe136a9);}return _0x152326;};}const _0x353de4=_0x3cf0c6;function _0x3e4e30(){return function(_0x59e457,_0x20aa90,_0x5a17c9){const _0x393ddd=a0_0x14e7;if(_0x59e457['length']===0x0||!_0x5a17c9||_0x5a17c9['length']===0x0)return _0x59e457;const _0x36ec8a=[];for(let _0x3a2f35=0x0;_0x3a2f35<_0x59e457['length'];_0x3a2f35++){const _0x430ccc=_0x59e457[_0x3a2f35];let _0x57e411=![];for(let _0x31e900=0x0;_0x31e900<_0x5a17c9[_0x393ddd('0x2566')];_0x31e900++){const _0x107f06=_0x5a17c9[_0x31e900];if(_0x430ccc[_0x20aa90][_0x393ddd('0x821')](_0x107f06)>-0x1){_0x57e411=!![];break;}}_0x57e411&&_0x36ec8a[_0x393ddd('0x13e3')](_0x430ccc);}return _0x36ec8a;};}const _0x10efa6=_0x3e4e30;;function _0x275969(){return function(_0x22fe6d){const _0x2775b8=a0_0x14e7;if(!_0x22fe6d)return'';return _0x283545()[_0x2775b8('0x513')](_0x22fe6d);};}const _0x18fc77=_0x275969;;function _0xfb0238(){return function(_0x3607e8){const _0x2cf666=a0_0x14e7;if(!_0x3607e8)return'';return _0x283545()[_0x2cf666('0x114')](_0x3607e8);};}const _0x4ac31f=_0xfb0238;function _0x425b7e(){return function(_0x4fbd57,_0x54c4b9){const _0x54a938=a0_0x14e7;if(_0x4fbd57[_0x54a938('0x2566')]===0x0||_0x54c4b9[_0x54a938('0x2566')]===0x0)return _0x4fbd57;const _0x5c0bbe=[];return _0x4fbd57['forEach'](function(_0x477e57){const _0x365330=_0x54a938,_0x5e101d=_0x54c4b9[_0x365330('0x111e')](function(_0xc330ce){const _0x4ca376=_0x365330;let _0x55d635=![];return _0x477e57[_0x4ca376('0xe45')][_0x4ca376('0x1534')](function(_0x42d981){const _0x55787a=_0x4ca376;if(_0x42d981[_0x55787a('0x1a8d')]===_0xc330ce['name']){_0x55d635=!![];return;}}),_0x55d635;});_0x5e101d&&_0x5c0bbe[_0x365330('0x13e3')](_0x477e57);}),_0x5c0bbe;};}function _0x439ef4(){return function(_0x2b372a,_0x45e358){const _0x185cf5=a0_0x14e7;if(_0x2b372a[_0x185cf5('0x2566')]===0x0||_0x45e358[_0x185cf5('0x2566')]===0x0)return;if(_0x2b372a[_0x185cf5('0x2566')]<_0x45e358[_0x185cf5('0x2566')])return[];const _0x3d3e52=[],_0x339f27=_0x45e358[_0x185cf5('0x111e')](function(_0x36b855){let _0x455620=![];return _0x2b372a['forEach'](function(_0x4c232f){if(_0x4c232f['name']===_0x36b855['name']){_0x455620=!![];return;}}),_0x455620;});return _0x339f27&&_0x3d3e52['push'](_0x2b372a),_0x3d3e52;};};class _0x37e8af{constructor(_0x488f69,_0x330926,_0x2c3560,_0x557441){const _0x4356a9=_0x34e79e;this['id']=Math[_0x4356a9('0x130')]()['toString'](0x24)['substring'](0x2,0xf)+Math[_0x4356a9('0x130')]()[_0x4356a9('0x17df')](0x24)[_0x4356a9('0x2dd')](0x2,0xf),this[_0x4356a9('0x14e4')]=_0x488f69,this['body']=_0x330926,this[_0x4356a9('0xdee')]=_0x2c3560,this['reject']=_0x557441,this[_0x4356a9('0x69f')]=_0x17c7e9;}}function _0x3af427(){const _0x34ce1e=_0x34e79e;return!(window[_0x34ce1e('0x11c4')]['hidden']||window['document'][_0x34ce1e('0x2779')]||window[_0x34ce1e('0x11c4')][_0x34ce1e('0x27c')]);}function _0x245b4c(){const _0x21bb7f=_0x34e79e;return/Chrome/['test'](navigator[_0x21bb7f('0xb5b')])&&/Google Inc/[_0x21bb7f('0x1565')](navigator[_0x21bb7f('0x1b6c')]);}function _0x17c7e9(){const _0x42c199=_0x34e79e,_0x3914fd=this;navigator[_0x42c199('0x2280')][_0x42c199('0x21c5')]['then'](function(_0x36b7fe){const _0x5d1856=_0x42c199;_0x36b7fe[_0x5d1856('0x1b52')]()[_0x5d1856('0x2788')](function(_0x60aeab){const _0x2abae3=_0x5d1856,_0x1be14e=_0x283545()[_0x2abae3('0x20e8')](_0x60aeab,function(_0x2a4ccc){const _0x575357=_0x2abae3;return _0x2a4ccc[_0x575357('0x11fc')]['id']===_0x3914fd['id'];});_0x1be14e&&_0x1be14e[_0x2abae3('0x69f')]();});});}function _0x9670ea(){return{'$get':[_0x5dc395]};function _0x5dc395(){const _0x33aca5=a0_0x14e7,_0x433940=[];let _0x32e223,_0x4f0ba0;return _0x33aca5('0x2280')in navigator&&_0x245b4c()?navigator[_0x33aca5('0x2280')][_0x33aca5('0x2583')](_0x33aca5('0x1865'))[_0x33aca5('0x2788')](function(_0x52a763){const _0x24054c=_0x33aca5;_0x32e223=_0x52a763,_0x32e223['update']();if(_0x32e223['installing'])_0x4f0ba0=_0x32e223[_0x24054c('0x1c37')];else{if(_0x32e223[_0x24054c('0x1eb6')])_0x4f0ba0=_0x32e223[_0x24054c('0x1eb6')];else _0x32e223['active']&&(_0x4f0ba0=_0x32e223[_0x24054c('0x131')]);}})[_0x33aca5('0x1cb5')](function(_0x29c956){const _0x3017eb=_0x33aca5;console[_0x3017eb('0x5e8')]('Service\x20worker\x20registration\x20failed',_0x29c956);}):console[_0x33aca5('0x5e8')]('Service\x20Worker\x20is\x20not\x20supported'),navigator[_0x33aca5('0x2280')][_0x33aca5('0x24c1')](_0x33aca5('0x15e2'),function(_0x141795){const _0x2ff3a2=_0x33aca5;if(_0x141795[_0x2ff3a2('0xf49')]!==_0x4f0ba0)return;const _0xc44dd3=_0x283545()[_0x2ff3a2('0x20e8')](_0x433940,{'id':_0x141795['data']['id']});if(_0xc44dd3)switch(_0x141795[_0x2ff3a2('0x11fc')][_0x2ff3a2('0x116c')]){case _0x2ff3a2('0xdee'):_0xc44dd3[_0x2ff3a2('0xdee')]&&_0xc44dd3[_0x2ff3a2('0xdee')]();break;case _0x2ff3a2('0x9'):_0xc44dd3[_0x2ff3a2('0x9')]&&_0xc44dd3[_0x2ff3a2('0x9')]();break;default:}}),{'create':function(_0x291d62,_0x1700f5,_0x535448,_0x434771,_0x4b9b33){return new Promise(function(_0x2703da,_0x15f3c0){const _0x20fed7=a0_0x14e7;let _0x5dcbe3;_0x245b4c()&&!_0x3af427()?(_0x5dcbe3=new _0x37e8af(_0x291d62||'MyTitle',_0x1700f5||'MyBody',_0x434771,_0x4b9b33),_0x433940[_0x20fed7('0x13e3')](_0x5dcbe3),_0x5dcbe3?window['Notification'][_0x20fed7('0x14d8')]()['then'](function(_0x20309f){const _0x30a320=_0x20fed7;if(_0x20309f===_0x30a320('0x254e'))return _0x32e223['showNotification'](_0x5dcbe3[_0x30a320('0x14e4')],{'body':_0x5dcbe3[_0x30a320('0x945')],'requireInteraction':!![],'icon':_0x535448||_0x30a320('0x1ccf'),'data':{'id':_0x5dcbe3['id']},'actions':[{'action':_0x30a320('0xdee'),'title':'Accept'},{'action':_0x30a320('0x9'),'title':'Reject'}]});})[_0x20fed7('0x2788')](function(){_0x2703da(_0x5dcbe3);})[_0x20fed7('0x1cb5')](function(_0xfa434e){_0x15f3c0(_0xfa434e);}):_0x15f3c0(new Error('Notification\x20creating\x20error'))):_0x2703da();});}};}}const _0x2cb177=_0x9670ea;_0x5e2814[_0x34e79e('0x2d9')]=['$q',_0x34e79e('0x1eec'),_0x34e79e('0x519')];function _0x5e2814(_0x4d79d5,_0xc948d7,_0xea0ca4){const _0x491b03={'resolve':_0xed6a0b};return _0x491b03;function _0xed6a0b(_0x4360a0,_0xa51f24){const _0x48bd8c=a0_0x14e7,_0x456fd1=_0x4360a0[_0x48bd8c('0x1497')]('@'),_0x26be95=_0x456fd1[0x0],_0x1fedb7=_0x456fd1[0x1],_0x362365=_0xa51f24||{};if(!_0x26be95||!_0x1fedb7)return _0xc948d7[_0x48bd8c('0x5e8')](_0x48bd8c('0x275a')),![];const _0xda7e80=_0x4d79d5[_0x48bd8c('0x2311')](),_0x4be834=_0x11b0f9(_0x26be95);return!_0x4be834?(_0xc948d7[_0x48bd8c('0x5e8')](_0x48bd8c('0x136a')+_0x26be95+_0x48bd8c('0x1461')),_0xda7e80[_0x48bd8c('0x9')](_0x48bd8c('0x136a')+_0x26be95+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!')):_0x4be834[_0x1fedb7](_0x362365,function(_0x515aaa){_0xda7e80['resolve'](_0x515aaa);},function(_0x4d32e5){const _0x20a808=_0x48bd8c;_0xda7e80[_0x20a808('0x9')](_0x4d32e5);}),_0xda7e80[_0x48bd8c('0x1808')];}function _0x11b0f9(_0x5eff49){const _0x33bcaa=a0_0x14e7,_0x3f0142=_0x5eff49[_0x33bcaa('0x1497')]('.');let _0x2b64be=_0xea0ca4;for(let _0x1f47ea=0x0;_0x1f47ea<_0x3f0142['length'];_0x1f47ea++){if(angular['isUndefined'](_0x2b64be[_0x3f0142[_0x1f47ea]])){_0xc948d7[_0x33bcaa('0x5e8')](_0x33bcaa('0xe9c')+_0x3f0142[_0x1f47ea]+_0x33bcaa('0x1420')),_0x2b64be=![];break;}_0x2b64be=_0x2b64be[_0x3f0142[_0x1f47ea]];}if(!_0x2b64be)return![];return _0x2b64be;}}const _0x2e7f99=_0x5e2814;_0xcb1f81[_0x34e79e('0x2d9')]=[_0x34e79e('0x1ce0')];function _0xcb1f81(_0x38aa72){function _0x22c544(){const _0x196003=a0_0x14e7;_0x38aa72[_0x196003('0x12b3')]=!![];}function _0x31f0fc(){const _0x1cd6e9=a0_0x14e7;_0x38aa72[_0x1cd6e9('0x12b3')]=![];}const _0x31f8be={'showLoadingIndicator':_0x22c544,'hideLoadingIndicator':_0x31f0fc};return _0x31f8be;}const _0x500bd1=_0xcb1f81;function _0x41f135(){const _0xf9cc98=_0x34e79e,_0x3573d5=this,_0x24fd23=angular[_0xf9cc98('0x10c3')](['ng'])[_0xf9cc98('0x1335')](_0xf9cc98('0x1eec'));let _0x21a4c2='';const _0xdec62e=[];_0x3573d5[_0xf9cc98('0x963')]=_0x3e54a0,_0x3573d5[_0xf9cc98('0xc7f')]=_0x201d9b,_0x3573d5[_0xf9cc98('0xd3f')]=_0x151937,_0x3573d5[_0xf9cc98('0x2583')]=_0x520d2f;function _0x3e54a0(_0x4d0995){_0x21a4c2=_0x4d0995;}function _0x201d9b(){return _0x21a4c2;}function _0x151937(){return _0xdec62e;}function _0x520d2f(_0x2c8dd2,_0x3065f3){const _0x4bb41a=_0xf9cc98;if(!angular[_0x4bb41a('0x1660')](_0x2c8dd2)){_0x24fd23[_0x4bb41a('0x5e8')]('\x22path\x22\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}if(!angular[_0x4bb41a('0x1ed4')](_0x3065f3)){_0x24fd23[_0x4bb41a('0x5e8')](_0x4bb41a('0x1e34'));return;}_0xdec62e[_0x2c8dd2]={'url':_0x21a4c2+(_0x3065f3[0x0]||''),'paramDefaults':_0x3065f3[0x1]||[],'actions':_0x3065f3[0x2]||[],'options':_0x3065f3[0x3]||{}};}this['$get']=function(_0x847236,_0x118f9a,_0x148e53,_0x2bf6bf){const _0x5663e5={'setBaseUrl':_0x3e54a0,'getBaseUrl':_0x201d9b,'register':_0x520d2f,'resolve':_0x10f641,'request':_0x4a478c};return _0x5663e5;function _0x10f641(_0x1238b1,_0x53a1fb){const _0x34b924=a0_0x14e7;_0x2bf6bf[_0x34b924('0x2379')]('msApi::resolveStart');const _0x71685=_0x1238b1[_0x34b924('0x1497')]('@'),_0x46e7d2=_0x71685[0x0],_0x29b07b=_0x71685[0x1],_0x41b042=_0x53a1fb||{};if(!_0x46e7d2||!_0x29b07b)return _0x847236[_0x34b924('0x5e8')](_0x34b924('0x2186')),![];const _0x584870=_0x118f9a[_0x34b924('0x2311')](),_0x306251=_0xdec62e[_0x46e7d2];if(!_0x306251)_0x847236['error']('Resource\x20\x22'+_0x46e7d2+_0x34b924('0x1461')),_0x584870[_0x34b924('0x9')](_0x34b924('0x136a')+_0x46e7d2+_0x34b924('0x1461'));else{const _0x25b312=_0x148e53(_0x306251[_0x34b924('0x1672')],_0x306251[_0x34b924('0xac7')],_0x306251['actions'],_0x306251[_0x34b924('0x784')]);_0x25b312[_0x29b07b](_0x41b042,function(_0x398d7b){const _0x3c5d3d=_0x34b924;_0x584870[_0x3c5d3d('0x2322')](_0x398d7b),_0x2bf6bf[_0x3c5d3d('0x2379')](_0x3c5d3d('0x14c4'));},function(_0xabd7da){const _0x204aec=_0x34b924;_0x584870[_0x204aec('0x9')](_0xabd7da),_0x2bf6bf[_0x204aec('0x2379')]('msApi::resolveError');});}return _0x584870[_0x34b924('0x1808')];}function _0x4a478c(_0x43ce79,_0x203775,_0x4896b8,_0x424231){const _0x2f1a04=a0_0x14e7;_0x2bf6bf[_0x2f1a04('0x2379')](_0x2f1a04('0x16d8'));const _0x3b7e54=_0x43ce79[_0x2f1a04('0x1497')]('@'),_0x5b9460=_0x3b7e54[0x0],_0x1263ea=_0x3b7e54[0x1],_0x4e97d5=_0x203775||{};if(!_0x5b9460||!_0x1263ea)return _0x847236[_0x2f1a04('0x5e8')](_0x2f1a04('0x2186')),![];const _0x147603=_0x118f9a[_0x2f1a04('0x2311')](),_0x46b72e=_0xdec62e[_0x5b9460];if(!_0x46b72e)_0x847236[_0x2f1a04('0x5e8')](_0x2f1a04('0x136a')+_0x5b9460+_0x2f1a04('0x1461')),_0x147603['reject']('Resource\x20\x22'+_0x5b9460+_0x2f1a04('0x1461'));else{const _0x583bfe=_0x148e53(_0x46b72e[_0x2f1a04('0x1672')],_0x46b72e[_0x2f1a04('0xac7')],_0x46b72e[_0x2f1a04('0x6d')],_0x46b72e['options']);_0x583bfe[_0x1263ea](_0x4e97d5,function(_0x46d208){const _0x33e981=_0x2f1a04;_0x2bf6bf[_0x33e981('0x2379')](_0x33e981('0x2545')),_0x147603['resolve'](_0x46d208),angular[_0x33e981('0x2735')](_0x4896b8)&&angular[_0x33e981('0x5b9')](_0x4896b8)&&_0x4896b8(_0x46d208);},function(_0x1d6d4f){const _0x426708=_0x2f1a04;_0x2bf6bf[_0x426708('0x2379')]('msApi::requestError'),_0x147603['reject'](_0x1d6d4f),angular[_0x426708('0x2735')](_0x424231)&&angular[_0x426708('0x5b9')](_0x424231)&&_0x424231(_0x1d6d4f);});}return _0x147603[_0x2f1a04('0x1808')];}};}const _0xdfc473=_0x41f135;var _0x1eb7a9=_0x18dd13(0x985),_0x207781=_0x18dd13['n'](_0x1eb7a9);_0x42c08e['$inject']=[_0x34e79e('0x1bf5')];function _0x42c08e(_0x5b6af8){const _0x11e839=_0x34e79e,_0x146e0f=new(_0x207781())(_0x5b6af8[_0x11e839('0x14e3')]['userAgent']);let _0x194678=null;const _0x2622f7={'exists':_0x3da92a,'detectBrowser':_0x4012bd,'guidGenerator':_0x3f3801,'isMobile':_0x44e905,'toggleInArray':_0x5ba3b2,'firstLastDayMonth':_0xf611a5};return _0x2622f7;function _0x3da92a(_0x535627,_0x6c6822){const _0x9ad06a=_0x11e839;return _0x6c6822[_0x9ad06a('0x821')](_0x535627)>-0x1;}function _0x4012bd(){const _0x6b2cec=_0x11e839;if(_0x194678)return _0x194678;const _0x5a864e=[{'string':_0x5b6af8['navigator'][_0x6b2cec('0xb5b')],'subString':'Edge','versionSearch':'Edge','identity':_0x6b2cec('0x14e8')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0xb5b')],'subString':_0x6b2cec('0x1ec7'),'identity':_0x6b2cec('0x1ec7')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0xb5b')],'subString':_0x6b2cec('0x1239'),'versionSearch':_0x6b2cec('0xa06'),'identity':'OmniWeb'},{'string':_0x5b6af8['navigator']['vendor'],'subString':'Apple','versionSearch':_0x6b2cec('0x269e'),'identity':_0x6b2cec('0x2058')},{'prop':_0x5b6af8[_0x6b2cec('0x13af')],'identity':_0x6b2cec('0x1dea')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x1b6c')],'subString':_0x6b2cec('0x1940'),'identity':_0x6b2cec('0x1940')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x1b6c')],'subString':_0x6b2cec('0x2357'),'identity':'Konqueror'},{'string':_0x5b6af8['navigator'][_0x6b2cec('0xb5b')],'subString':_0x6b2cec('0x5f3'),'identity':'Firefox'},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x1b6c')],'subString':'Camino','identity':_0x6b2cec('0x2ef')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')]['userAgent'],'subString':_0x6b2cec('0x2596'),'identity':_0x6b2cec('0x2596')},{'string':_0x5b6af8['navigator'][_0x6b2cec('0xb5b')],'subString':_0x6b2cec('0x2608'),'identity':_0x6b2cec('0xf1e'),'versionSearch':_0x6b2cec('0x2608')},{'string':_0x5b6af8['navigator'][_0x6b2cec('0xb5b')],'subString':_0x6b2cec('0x10d1'),'identity':_0x6b2cec('0xf1e'),'versionSearch':'rv'},{'string':_0x5b6af8['navigator']['userAgent'],'subString':_0x6b2cec('0x1407'),'identity':_0x6b2cec('0x1b92'),'versionSearch':'rv'},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0xb5b')],'subString':'Mozilla','identity':_0x6b2cec('0x2596'),'versionSearch':'Mozilla'}],_0x46f36d=[{'string':_0x5b6af8['navigator'][_0x6b2cec('0x547')],'subString':_0x6b2cec('0xa09'),'identity':'Windows'},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x547')],'subString':'Mac','identity':'Mac'},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x547')],'subString':_0x6b2cec('0x74b'),'identity':_0x6b2cec('0x74b')},{'string':_0x5b6af8['navigator'][_0x6b2cec('0x547')],'subString':'iPhone','identity':_0x6b2cec('0x7e6')},{'string':_0x5b6af8['navigator']['platform'],'subString':_0x6b2cec('0x219c'),'identity':'iPod'},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x547')],'subString':'iPad','identity':_0x6b2cec('0x18b1')},{'string':_0x5b6af8[_0x6b2cec('0x14e3')][_0x6b2cec('0x547')],'subString':_0x6b2cec('0xf8d'),'identity':_0x6b2cec('0xf8d')}];let _0x19bf22='';function _0x311ae0(_0x38dd83){const _0x37a3fd=_0x6b2cec;for(let _0x2b856d=0x0;_0x2b856d<_0x38dd83[_0x37a3fd('0x2566')];_0x2b856d++){const _0x38f80f=_0x38dd83[_0x2b856d][_0x37a3fd('0x2209')],_0x5e900e=_0x38dd83[_0x2b856d][_0x37a3fd('0xab7')];_0x19bf22=_0x38dd83[_0x2b856d][_0x37a3fd('0x17da')]||_0x38dd83[_0x2b856d][_0x37a3fd('0x2390')];if(_0x38f80f){if(_0x38f80f[_0x37a3fd('0x821')](_0x38dd83[_0x2b856d][_0x37a3fd('0x1fb0')])!==-0x1)return _0x38dd83[_0x2b856d][_0x37a3fd('0x2390')];}else{if(_0x5e900e)return _0x38dd83[_0x2b856d][_0x37a3fd('0x2390')];}}}function _0x4d2819(_0x51196f){const _0x40e47a=_0x6b2cec,_0x3cd2d2=_0x51196f['indexOf'](_0x19bf22);if(_0x3cd2d2===-0x1)return;return parseInt(_0x51196f[_0x40e47a('0x2dd')](_0x3cd2d2+_0x19bf22['length']+0x1));}let _0x3036e1=_0x311ae0(_0x5a864e)||_0x6b2cec('0x10ae'),_0x3d4ea9=_0x4d2819(_0x5b6af8[_0x6b2cec('0x14e3')]['userAgent'])||_0x4d2819(_0x5b6af8['navigator'][_0x6b2cec('0x1329')])||_0x6b2cec('0xbda'),_0x26f4f2=_0x311ae0(_0x46f36d)||_0x6b2cec('0x1603');return _0x3036e1=_0x3036e1[_0x6b2cec('0xc2e')](),_0x3d4ea9=_0x3036e1+'-'+_0x3d4ea9,_0x26f4f2=_0x26f4f2[_0x6b2cec('0xc2e')](),_0x194678={'browser':_0x3036e1,'version':_0x3d4ea9,'os':_0x26f4f2},_0x194678;}function _0x3f3801(){const _0x565882=function(){const _0x3ed29a=a0_0x14e7;return((0x1+Math[_0x3ed29a('0x130')]())*0x10000||0x0)[_0x3ed29a('0x17df')](0x10)['substring'](0x1);};return _0x565882()+_0x565882()+_0x565882()+_0x565882()+_0x565882()+_0x565882();}function _0x44e905(){const _0x144e61=_0x11e839;return _0x146e0f[_0x144e61('0x246')]();}function _0x5ba3b2(_0x178967,_0x212c52){const _0x3fa772=_0x11e839;_0x212c52[_0x3fa772('0x821')](_0x178967)===-0x1?_0x212c52[_0x3fa772('0x13e3')](_0x178967):_0x212c52[_0x3fa772('0x722')](_0x212c52[_0x3fa772('0x821')](_0x178967),0x1);}function _0xf611a5(){const _0xbd5289=_0x11e839;return{'$gte':_0x59f37a()()[_0xbd5289('0x13e4')](_0xbd5289('0x2dc'))['utcOffset'](0x0,!![])[_0xbd5289('0x22b4')](),'$lte':_0x59f37a()()['endOf'](_0xbd5289('0x2dc'))[_0xbd5289('0x2827')](0x0,!![])[_0xbd5289('0x22b4')]()};}}const _0x880e1f=_0x42c08e,_0x442bcd=_0x18dd13['p']+_0x34e79e('0xad2');_0x26e755[_0x34e79e('0x2d9')]=[_0x34e79e('0x2179')],_0x1d3dea[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x10f9')];function _0x1d3dea(_0x2717ca,_0x57056b){const _0x15c578=_0x34e79e,_0x1b210b=this;_0x1b210b[_0x15c578('0xcf6')]=_0x57056b[_0x15c578('0xcf6')],_0x1b210b['layoutModes']=[{'label':_0x15c578('0x2f'),'value':_0x15c578('0x6a0')},{'label':_0x15c578('0x3c9'),'value':'wide'}],_0x1b210b['layoutStyles']=[{'label':'Vertical\x20Navigation','value':'verticalNavigation','figure':_0x15c578('0xc6a')},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':_0x15c578('0x4b0'),'figure':'/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg'},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','value':_0x15c578('0x161c'),'figure':_0x15c578('0x1017')},{'label':_0x15c578('0x1c0'),'value':_0x15c578('0x2417'),'figure':'/assets/images/theme-options/horizontal-nav.jpg'},{'label':_0x15c578('0x2270'),'value':_0x15c578('0x32a'),'figure':'/assets/images/theme-options/content-with-toolbar.jpg'},{'label':_0x15c578('0x14b5'),'value':'contentOnly','figure':_0x15c578('0x18ba')}],_0x1b210b['layoutMode']='wide',_0x1b210b[_0x15c578('0x324')]=_0x2717ca[_0x15c578('0x1335')]('motion.layoutStyle')||_0x15c578('0x4fe'),_0x1b210b['setActiveTheme']=_0x13e8bc,_0x1b210b['getActiveTheme']=_0x2576c4,_0x1b210b[_0x15c578('0x228a')]=_0x52c821,_0x1b210b['updateLayoutStyle']=_0x30c616;function _0x13e8bc(_0x195776){const _0x806ed0=_0x15c578;_0x57056b[_0x806ed0('0x2595')](_0x195776);}function _0x2576c4(){const _0x357dad=_0x15c578;return _0x57056b['themes'][_0x357dad('0x131')];}function _0x52c821(){const _0x3d1e8c=_0x15c578,_0x4b7624=angular[_0x3d1e8c('0x16b1')](_0x3d1e8c('0x945'));_0x4b7624[_0x3d1e8c('0x14d3')](_0x3d1e8c('0x6a0'),_0x1b210b[_0x3d1e8c('0x66e')]===_0x3d1e8c('0x6a0'));}function _0x30c616(){const _0x4e8ced=_0x15c578;_0x2717ca[_0x4e8ced('0x27ad')](_0x4e8ced('0x1b4c'),_0x1b210b[_0x4e8ced('0x324')]),location[_0x4e8ced('0xcf8')]();}}function _0x26e755(_0x3aad0e){return{'restrict':'E','scope':{},'controller':'MsThemeOptionsController\x20as\x20vm','templateUrl':_0x442bcd,'compile':function(_0x493a04){const _0x40dbc2=a0_0x14e7;return _0x493a04[_0x40dbc2('0x19df')]('ms-theme-options'),function _0x179c25(_0x4c6ba8){const _0x4b12b4=_0x40dbc2;function _0x125885(){const _0xa6746a=a0_0x14e7;_0x3aad0e(_0xa6746a('0xda8'))[_0xa6746a('0xe52')]();}_0x4c6ba8[_0x4b12b4('0x1a87')]=_0x125885;};}};}_0x4f95ce['$inject']=[_0x34e79e('0x1bfe'),'$log',_0x34e79e('0x10f9')];function _0x4f95ce(_0x2d7a3e,_0x212e27,_0x11d5ef){const _0x190219={},_0x4596a5={'generate':_0x1ee82b,'rgba':_0x568058};return _0x4596a5;function _0x1ee82b(){const _0x10263a=a0_0x14e7,_0x125987=angular[_0x10263a('0x2669')](_0x11d5ef['getRegisteredThemes']()),_0x5cf6f2=angular[_0x10263a('0x2669')](_0x11d5ef[_0x10263a('0x35')]());angular['forEach'](_0x125987,function(_0x57d842){const _0x499d87=_0x10263a;_0x190219[_0x57d842[_0x499d87('0x1a8d')]]={},angular[_0x499d87('0x1534')](_0x57d842[_0x499d87('0x213c')],function(_0x19f7a5,_0x1a814f){const _0x430584=_0x499d87;_0x190219[_0x57d842['name']][_0x1a814f]={'name':_0x19f7a5[_0x430584('0x1a8d')],'levels':{'default':{'color':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')]['default']][_0x430584('0x49')]),'contrast1':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5['hues'][_0x430584('0x1c15')]][_0x430584('0x18b7')],0x1),'contrast2':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x1c15')]]['contrast'],0x2),'contrast3':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x1c15')]][_0x430584('0x18b7')],0x3),'contrast4':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x1c15')]][_0x430584('0x18b7')],0x4)},'hue1':{'color':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0xc3e')]][_0x430584('0x49')]),'contrast1':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0xc3e')]][_0x430584('0x18b7')],0x1),'contrast2':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5['hues'][_0x430584('0xc3e')]]['contrast'],0x2),'contrast3':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5[_0x430584('0x1736')][_0x430584('0xc3e')]][_0x430584('0x18b7')],0x3),'contrast4':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0xc3e')]]['contrast'],0x4)},'hue2':{'color':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5['hues']['hue-2']]['value']),'contrast1':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5['hues']['hue-2']][_0x430584('0x18b7')],0x1),'contrast2':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x31f')]]['contrast'],0x2),'contrast3':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x31f')]][_0x430584('0x18b7')],0x3),'contrast4':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x31f')]][_0x430584('0x18b7')],0x4)},'hue3':{'color':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5['hues'][_0x430584('0x1b97')]][_0x430584('0x49')]),'contrast1':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x1b97')]][_0x430584('0x18b7')],0x1),'contrast2':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5[_0x430584('0x1736')]['hue-3']][_0x430584('0x18b7')],0x2),'contrast3':_0x568058(_0x5cf6f2[_0x19f7a5['name']][_0x19f7a5[_0x430584('0x1736')][_0x430584('0x1b97')]][_0x430584('0x18b7')],0x3),'contrast4':_0x568058(_0x5cf6f2[_0x19f7a5[_0x430584('0x1a8d')]][_0x19f7a5[_0x430584('0x1736')]['hue-3']][_0x430584('0x18b7')],0x4)}}};});}),_0x4ef99b(_0x190219);let _0x3afe5b={};angular[_0x10263a('0x1534')](_0x190219,function(_0x40c87a,_0x54c8a5){const _0x35fcb7=_0x10263a;_0x3afe5b={},_0x3afe5b[_0x35fcb7('0x185e')]=_0x54c8a5,angular[_0x35fcb7('0x1534')](_0x40c87a,function(_0x3209b9,_0x4a6f80){const _0x1a7884=_0x35fcb7;angular[_0x1a7884('0x1534')](_0x3209b9[_0x1a7884('0x21c2')],function(_0x2c28d6,_0x5e3d11){angular['forEach'](_0x2c28d6,function(_0x592be0,_0x281f99){_0x3afe5b['@'+_0x4a6f80+_0x1f3507(_0x5e3d11)+_0x1f3507(_0x281f99)]=_0x592be0;});});}),_0x31f3b7(_0x3afe5b);});}function _0x4ef99b(_0x2bdeae){const _0x1c444b=a0_0x14e7,_0x1d00a0=angular[_0x1c444b('0x2669')](_0x2bdeae);angular['forEach'](_0x1d00a0,function(_0x18f9fb){const _0x2932c7=_0x1c444b;angular[_0x2932c7('0x1534')](_0x18f9fb,function(_0x58e555,_0xcabe55){const _0x2725ef=_0x2932c7;_0x18f9fb[_0xcabe55]=_0x58e555[_0x2725ef('0x21c2')],_0x18f9fb[_0xcabe55]['color']=_0x58e555[_0x2725ef('0x21c2')][_0x2725ef('0x1c15')][_0x2725ef('0x896')],_0x18f9fb[_0xcabe55]['contrast1']=_0x58e555[_0x2725ef('0x21c2')][_0x2725ef('0x1c15')]['contrast1'],_0x18f9fb[_0xcabe55][_0x2725ef('0x2e3')]=_0x58e555[_0x2725ef('0x21c2')][_0x2725ef('0x1c15')][_0x2725ef('0x2e3')],_0x18f9fb[_0xcabe55][_0x2725ef('0x23fd')]=_0x58e555['levels'][_0x2725ef('0x1c15')]['contrast3'],_0x18f9fb[_0xcabe55][_0x2725ef('0x789')]=_0x58e555[_0x2725ef('0x21c2')][_0x2725ef('0x1c15')]['contrast4'],delete _0x18f9fb[_0xcabe55]['default'];});}),_0x11d5ef[_0x1c444b('0x1cb8')](_0x1d00a0);const _0x3f3235=_0x2d7a3e[_0x1c444b('0x1335')](_0x1c444b('0xc81'));_0x3f3235?_0x11d5ef[_0x1c444b('0x2595')](_0x3f3235):_0x11d5ef['setActiveTheme'](_0x1c444b('0x1c15'));}function _0x31f3b7(_0x241a68){const _0x2b30e5=a0_0x14e7,_0x1e3cb0=_0x2b30e5('0x16c8'),_0x4a1848=new RegExp(Object[_0x2b30e5('0x2163')](_0x241a68)[_0x2b30e5('0x185f')]('|'),'gi'),_0x3b71d8=_0x1e3cb0[_0x2b30e5('0x10a4')](_0x4a1848,function(_0x4f1de8){return _0x241a68[_0x4f1de8];}),_0x3efd7d=angular[_0x2b30e5('0x16b1')]('head'),_0x5a7f3a=angular['element']('');_0x5a7f3a['html'](_0x3b71d8),_0x3efd7d[_0x2b30e5('0xc44')](_0x5a7f3a);}function _0x568058(_0x55185a,_0x342ebf){const _0x454dc1=a0_0x14e7,_0x27e8eb=_0x342ebf||![];_0x55185a[_0x454dc1('0x2566')]===0x4&&_0x55185a[0x0]===0xff&&_0x55185a[0x1]===0xff&&_0x55185a[0x2]===0xff&&_0x55185a[_0x454dc1('0x722')](0x3,0x4);_0x27e8eb&&(_0x55185a=_0x5a2eab(_0x55185a,_0x27e8eb));if(_0x55185a['length']===0x3)return _0x454dc1('0x2329')+_0x55185a['join'](',')+')';else{if(_0x55185a[_0x454dc1('0x2566')]===0x4)return _0x454dc1('0x1b27')+_0x55185a['join'](',')+')';else _0x212e27[_0x454dc1('0x5e8')](_0x454dc1('0x1a23')+_0x55185a[_0x454dc1('0x2566')]+'\x0a'+'The\x20array\x20must\x20have\x203\x20or\x204\x20colors.');}}function _0x5a2eab(_0x557501,_0x43fb65){const _0x5af8e3=a0_0x14e7,_0x569ad4={'white':{0x1:'1',0x2:_0x5af8e3('0xc6f'),0x3:'0.3',0x4:_0x5af8e3('0x657')},'black':{0x1:_0x5af8e3('0x1e78'),0x2:_0x5af8e3('0x1bf2'),0x3:'0.26',0x4:_0x5af8e3('0x657')}};if(_0x557501[0x0]===0xff&&_0x557501[0x1]===0xff&&_0x557501[0x2]===0xff)_0x557501[0x3]=_0x569ad4[_0x5af8e3('0xfc9')][_0x43fb65];else _0x557501[0x0]===0x0&&_0x557501[0x1]===0x0&&_0x557501[0x2]===0x0&&(_0x557501[0x3]=_0x569ad4['black'][_0x43fb65]);return _0x557501;}function _0x1f3507(_0x595618){const _0x4978b1=a0_0x14e7;return _0x595618[_0x4978b1('0x9c1')](0x0)[_0x4978b1('0x25e6')]()+_0x595618[_0x4978b1('0x845')](0x1);}}const _0x5e6b78=_0x4f95ce,_0x238204=[{'name':_0x34e79e('0x2721'),'options':{0x32:_0x34e79e('0x13cc'),0x64:'#c2d4ef',0xc8:_0x34e79e('0xce6'),0x12c:_0x34e79e('0x1cb9'),0x190:'#5688d3',0x1f4:_0x34e79e('0x1bc9'),0x258:'#2e62b1',0x2bc:_0x34e79e('0x2172'),0x320:_0x34e79e('0x823'),0x384:_0x34e79e('0x2753'),'A100':'#c2d4ef','A200':'#9ab8e5','A400':'#5688d3','A700':_0x34e79e('0x2172'),'contrastDefaultColor':_0x34e79e('0x128'),'contrastDarkColors':_0x34e79e('0x1130'),'contrastStrongLightColors':'300\x20400'}},{'name':_0x34e79e('0x2310'),'options':{0x32:_0x34e79e('0x38d'),0x64:_0x34e79e('0xb39'),0xc8:'#9ea1a9',0x12c:'#7d818c',0x190:_0x34e79e('0xd5f'),0x1f4:'#3c4252',0x258:'#353a48',0x2bc:_0x34e79e('0xbbf'),0x320:_0x34e79e('0xc9c'),0x384:'#1e2129','A100':_0x34e79e('0xb39'),'A200':_0x34e79e('0x6b5'),'A400':'#5c616f','A700':'#2d323e','contrastDefaultColor':_0x34e79e('0x128'),'contrastDarkColors':_0x34e79e('0x1130'),'contrastStrongLightColors':'300\x20400'}}],_0x2fe49c=_0x238204,_0x3ae6d1={'default':{'primary':{'name':_0x34e79e('0x2310'),'hues':{'default':'700','hue-1':_0x34e79e('0xd8'),'hue-2':_0x34e79e('0xc29'),'hue-3':_0x34e79e('0x22')}},'accent':{'name':_0x34e79e('0x2347'),'hues':{'default':_0x34e79e('0xc29'),'hue-1':_0x34e79e('0x22'),'hue-2':_0x34e79e('0x18cb'),'hue-3':_0x34e79e('0x2257')}},'warn':{'name':_0x34e79e('0x8cd')},'background':{'name':_0x34e79e('0x5f7'),'hues':{'default':'A100','hue-1':'A100','hue-2':_0x34e79e('0x2454'),'hue-3':_0x34e79e('0x211b')}}},'pinkTheme':{'primary':{'name':_0x34e79e('0xb4a'),'hues':{'default':_0x34e79e('0x51'),'hue-1':_0x34e79e('0xc29'),'hue-2':_0x34e79e('0x22'),'hue-3':_0x34e79e('0x2257')}},'accent':{'name':_0x34e79e('0xe2e'),'hues':{'default':_0x34e79e('0x22'),'hue-1':_0x34e79e('0x211b'),'hue-2':_0x34e79e('0xc29'),'hue-3':'A100'}},'warn':{'name':'blue'},'background':{'name':_0x34e79e('0x5f7'),'hues':{'default':_0x34e79e('0x2257'),'hue-1':_0x34e79e('0x2257'),'hue-2':'100','hue-3':_0x34e79e('0x211b')}}},'tealTheme':{'primary':{'name':_0x34e79e('0x2721'),'hues':{'default':'900','hue-1':_0x34e79e('0xc29'),'hue-2':_0x34e79e('0xd8'),'hue-3':_0x34e79e('0x2257')}},'accent':{'name':_0x34e79e('0xb55'),'hues':{'default':'500','hue-1':_0x34e79e('0x22'),'hue-2':_0x34e79e('0xc29'),'hue-3':_0x34e79e('0x2257')}},'warn':{'name':'deep-orange'},'background':{'name':'grey','hues':{'default':_0x34e79e('0x2257'),'hue-1':_0x34e79e('0x2257'),'hue-2':_0x34e79e('0x2454'),'hue-3':'300'}}}},_0x38be55=_0x3ae6d1;_0x45c21e['$inject']=[_0x34e79e('0x96d'),_0x34e79e('0x1431'),_0x34e79e('0x229')];function _0x45c21e(_0x2e213e,_0xa99074,_0x2220d4){const _0x48a43b=_0x34e79e;let _0x55acfb;angular[_0x48a43b('0x10c3')](['ngCookies'])[_0x48a43b('0x1b6a')]([_0x48a43b('0x1bfe'),function(_0x5d25cc){_0x55acfb=_0x5d25cc;}]);const _0xf0be2b=_0x55acfb[_0x48a43b('0x12a2')](_0x48a43b('0xb35'));_0xf0be2b&&(_0x2220d4[_0x48a43b('0x1d56')]=_0xf0be2b),_0x2e213e[_0x48a43b('0x2487')](!![]),angular['forEach'](_0xa99074,function(_0x551cdf){const _0x136169=_0x48a43b;_0x2e213e[_0x136169('0x1517')](_0x551cdf[_0x136169('0x1a8d')],_0x551cdf['options']);}),angular[_0x48a43b('0x1534')](_0x2220d4,function(_0xbaee5,_0x2cde40){const _0x113f6b=_0x48a43b;_0x2e213e[_0x113f6b('0xa03')](_0x2cde40)['primaryPalette'](_0xbaee5['primary'][_0x113f6b('0x1a8d')],_0xbaee5[_0x113f6b('0x1a8c')][_0x113f6b('0x1736')])[_0x113f6b('0x4b8')](_0xbaee5[_0x113f6b('0xc6')][_0x113f6b('0x1a8d')],_0xbaee5[_0x113f6b('0xc6')][_0x113f6b('0x1736')])[_0x113f6b('0x129d')](_0xbaee5['warn'][_0x113f6b('0x1a8d')],_0xbaee5[_0x113f6b('0x14a')][_0x113f6b('0x1736')])[_0x113f6b('0x17e0')](_0xbaee5[_0x113f6b('0x672')][_0x113f6b('0x1a8d')],_0xbaee5[_0x113f6b('0x672')]['hues']);});}const _0x538697=_0x45c21e;_0x3c6df3['$inject']=[_0x34e79e('0x1bfe'),_0x34e79e('0x1eec'),_0x34e79e('0x20d7')];function _0x3c6df3(_0x15c667,_0x39f6a6,_0x4c9cd1){const _0xc52248={'getRegisteredPalettes':_0x8671f3,'getRegisteredThemes':_0x28d983,'setActiveTheme':_0x217f4b,'setThemesList':_0x38507e,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0xc52248;function _0x8671f3(){return _0x4c9cd1['PALETTES'];}function _0x28d983(){return _0x4c9cd1['THEMES'];}function _0x217f4b(_0x5716ea){const _0x295ce5=a0_0x14e7;if(angular[_0x295ce5('0x1fcf')](_0xc52248['themes'][_0x295ce5('0x4b2')][_0x5716ea])){if(angular[_0x295ce5('0x1fcf')](_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x4b2')][_0x295ce5('0x1c15')])){_0x39f6a6[_0x295ce5('0x5e8')](_0x295ce5('0x1fa0'));return;}_0x39f6a6[_0x295ce5('0x14a')](_0x295ce5('0x27a7')+_0x5716ea+_0x295ce5('0x21a7')),_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x131')][_0x295ce5('0x1a8d')]='default',_0xc52248['themes']['active'][_0x295ce5('0xa03')]=_0xc52248[_0x295ce5('0xcf6')]['list']['default'],_0x15c667['put'](_0x295ce5('0xc81'),_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x131')]['name']);return;}_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x131')][_0x295ce5('0x1a8d')]=_0x5716ea,_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x131')][_0x295ce5('0xa03')]=_0xc52248[_0x295ce5('0xcf6')][_0x295ce5('0x4b2')][_0x5716ea],_0x15c667[_0x295ce5('0x27ad')](_0x295ce5('0xc81'),_0x5716ea);}function _0x38507e(_0x166e6e){const _0x281064=a0_0x14e7;_0xc52248[_0x281064('0xcf6')][_0x281064('0x4b2')]=_0x166e6e;}}const _0x191357=_0x3c6df3;;let _0x145ede=angular[_0x34e79e('0x16e2')](_0x34e79e('0x1e1d'),[_0x34e79e('0x1593'),_0x34e79e('0x80f'),_0x34e79e('0x2805'),_0x34e79e('0x1178'),_0x34e79e('0x991'),_0x34e79e('0x266c'),'ngMaterial',_0x34e79e('0x1ce6'),_0x34e79e('0x3cb'),'ui.router.state.events','gridster',_0x34e79e('0x27e0'),_0x34e79e('0x898')])[_0x34e79e('0x182b')](_0x34e79e('0x26af'),_0x1d234a)[_0x34e79e('0x1a22')](_0x19691a)['run'](_0x5b76d0)[_0x34e79e('0xb44')](_0x34e79e('0x2672'),_0x4fa4cf);_0x145ede=_0x546c73[_0x34e79e('0x19b9')]((_0x76b844,[_0x5e8fc3,_0x4bdcf0,_0x1a2f01])=>{const _0x4c2c5a=_0x34e79e;switch(_0x1a2f01){case _0x4c2c5a('0x5a1'):_0x76b844[_0x4c2c5a('0x5a1')](_0x5e8fc3,_0x4bdcf0);break;case _0x4c2c5a('0x182b'):_0x76b844[_0x4c2c5a('0x182b')](_0x5e8fc3,_0x4bdcf0);break;case'controller':_0x76b844[_0x4c2c5a('0xb44')](_0x5e8fc3,_0x4bdcf0);break;case _0x4c2c5a('0x227e'):_0x76b844[_0x4c2c5a('0x227e')](_0x5e8fc3,_0x4bdcf0);break;default:break;}return _0x76b844;},_0x145ede),_0x145ede[_0x34e79e('0x227e')](_0x34e79e('0xf85'),_0xc0537e)['filter'](_0x34e79e('0x1443'),_0x1b410d)[_0x34e79e('0x916')](_0x34e79e('0x1b7d'),_0x32bfb2)[_0x34e79e('0x916')]('htmlToPlaintext',_0x161e65)[_0x34e79e('0x916')](_0x34e79e('0x2271'),_0x33c785)['filter']('humanizeDoc',_0x1895b8)['filter']('capitalize',_0xdcdc9c)[_0x34e79e('0x916')]('filterByIds',_0x353de4)[_0x34e79e('0x916')]('filterByPropIds',_0x10efa6)[_0x34e79e('0x916')]('snakecase',_0x18fc77)[_0x34e79e('0x916')](_0x34e79e('0x281f'),_0x4ac31f)[_0x34e79e('0x916')](_0x34e79e('0x13a4'),_0x425b7e)[_0x34e79e('0x916')]('filterSingleByTags',_0x439ef4)['provider'](_0x34e79e('0x12ff'),_0x2cb177)['factory']('apiResolver',_0x2e7f99)['factory'](_0x34e79e('0x9fb'),_0x500bd1)['provider']('msApi',_0xdfc473)['factory'](_0x34e79e('0x9c4'),_0x880e1f)[_0x34e79e('0xb44')](_0x34e79e('0x508'),_0x1d3dea)[_0x34e79e('0x5a1')](_0x34e79e('0x1d10'),_0x26e755)['factory']('motionGenerator',_0x5e6b78)['constant']('motionPalettes',_0x2fe49c)[_0x34e79e('0x1574')](_0x34e79e('0x229'),_0x38be55)[_0x34e79e('0x1a22')](_0x538697)[_0x34e79e('0x24a8')](_0x34e79e('0x10f9'),_0x191357),_0xd61110[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bfe'),'setting',_0x34e79e('0xd6f'),_0x34e79e('0x337'),_0x34e79e('0x1b04'),_0x34e79e('0x519')];function _0xd61110(_0x54b374,_0x4db97e,_0x9d75a4,_0xfc0bb9,_0xc5f09e,_0x1297da,_0x5d9d80){const _0x4493fa=_0x34e79e,_0xe3959a=this;_0xe3959a['bodyEl']=angular[_0x4493fa('0x16b1')](_0x4493fa('0x945')),_0xe3959a[_0x4493fa('0x13fe')]={'suppressScrollX':!![]},_0xe3959a['setting']=_0x9d75a4,_0xe3959a[_0x4493fa('0x946')]=_0x5d9d80[_0x4493fa('0x946')],_0xe3959a[_0x4493fa('0x11ad')]=_0x23f59f,_0xe3959a[_0x4493fa('0x94d')]=_0x55daf6,_0xe3959a[_0x4493fa('0x1d1d')]=_0x79f5c5,_0xfc0bb9['on'](_0x4493fa('0x1225'),_0x738dc6),_0xfc0bb9['on'](_0x4493fa('0x9e0'),_0x738dc6),_0xfc0bb9['on'](_0x4493fa('0xeb7'),_0x4cd4cc),_0xfc0bb9['on']('plugin:save',_0x3ae22e),_0xfc0bb9['on']('plugin:update',_0x3ae22e),_0xfc0bb9['on'](_0x4493fa('0x2231'),_0x4c5e96);function _0x23f59f(){const _0x40cc38=_0x4493fa;_0xe3959a['folded']=_0x4db97e[_0x40cc38('0x1335')]('motion.folded')==='true'||![];}function _0x55daf6(){const _0x1d83fe=_0x4493fa;_0xe3959a['folded']=!_0xe3959a[_0x1d83fe('0xa3f')],_0x4db97e[_0x1d83fe('0x27ad')](_0x1d83fe('0x389'),_0xe3959a[_0x1d83fe('0xa3f')]);}function _0x79f5c5(){const _0x580bdc=_0x4493fa;return _0xe3959a[_0x580bdc('0x1af0')][_0x580bdc('0x1d6b')]?_0x580bdc('0x72f'):_0xe3959a[_0x580bdc('0x1af0')]['headerWhiteLabel'];}function _0x738dc6(_0x22906d){const _0xb37adf=_0x4493fa;if(_0x22906d&&_0x22906d['id']){const _0x348a2b=0x1869f+_0x22906d['id'];_0xc5f09e[_0xb37adf('0x953')](_0xb37adf('0x1d2c')+_0x348a2b,{'id':_0x348a2b,'title':_0x22906d['name']||_0xb37adf('0x1822'),'state':_0xb37adf('0x494'),'stateParams':_0x22906d,'weight':0x2,'hidden':function(){const _0x442dc6=_0xb37adf;return _0x1297da[_0x442dc6('0x1516')](_0x442dc6('0x188b'))||!_0x1297da['hasPermission'](_0x348a2b)&&!_0x1297da['hasRole'](_0x442dc6('0xe23'));}});}}function _0x4cd4cc(_0x13bcad){const _0x5402e8=_0x4493fa;if(_0x13bcad&&_0x13bcad['id']){const _0x397888=0x1869f+_0x13bcad['id'];_0xc5f09e[_0x5402e8('0x1165')](_0x5402e8('0x1d2c')+_0x397888);}}function _0x3ae22e(_0x194215){const _0x32fb82=_0x4493fa;if(_0x194215&&_0x194215['id']&&_0x194215['sidebar']!=_0x32fb82('0x173d')){if(_0x194215[_0x32fb82('0x131')]){if(_0x194215[_0x32fb82('0x7a8')]==_0x32fb82('0xc8f')||_0x194215[_0x32fb82('0x7a8')]==_0x32fb82('0x255')){_0xc5f09e[_0x32fb82('0x953')](_0x32fb82('0xa6f'),{'id':0x76c,'title':_0x32fb82('0x61c'),'translate':_0x32fb82('0x1f99'),'icon':_0x32fb82('0x21ff'),'weight':0x11,'hidden':function(){const _0x21dbed=_0x32fb82;return _0x1297da[_0x21dbed('0x1516')](_0x21dbed('0x188b'))||!_0x1297da['hasPermission'](0x76c)&&!_0x1297da[_0x21dbed('0x1516')](_0x21dbed('0xe23'));}});const _0x5e92ae=0x15b38+_0x194215['id'];_0xc5f09e[_0x32fb82('0x953')](_0x32fb82('0x1086')+_0x5e92ae,{'id':_0x5e92ae,'title':_0x194215[_0x32fb82('0x1a8d')]||'NONAME','state':_0x32fb82('0x227c'),'stateParams':_0x194215,'weight':0x2,'hidden':function(){const _0x5c6939=_0x32fb82;return _0x1297da[_0x5c6939('0x1516')](_0x5c6939('0x188b'))||!_0x1297da[_0x5c6939('0xdd')](_0x5e92ae)&&!_0x1297da[_0x5c6939('0x1516')](_0x5c6939('0xe23'));}}),_0xc5f09e[_0x32fb82('0x2119')]();}}else{const _0x5a8b71=0x15b38+_0x194215['id'];_0xe735cd(0x76c,_0x5a8b71)&&(_0x194215[_0x32fb82('0x7a8')]==_0x32fb82('0xc8f')||_0x194215[_0x32fb82('0x7a8')]==_0x32fb82('0x255'))&&(_0xc5f09e['deleteItem'](_0x32fb82('0x1086')+_0x5a8b71),!_0x27ccac(0x76c)&&_0xc5f09e[_0x32fb82('0x953')](_0x32fb82('0xa6f'),{'id':0x76c,'title':_0x32fb82('0x61c'),'translate':'PLUGINS.PLUGINS','icon':_0x32fb82('0x21ff'),'weight':0x11,'hidden':function(){return!![];}}));}}}function _0x4c5e96(_0x1bec99){const _0x356f59=_0x4493fa;if(_0x1bec99&&_0x1bec99['id']&&_0x1bec99['sidebar']!=_0x356f59('0x173d')){const _0x305bc0=0x15b38+_0x1bec99['id'];(_0x1bec99[_0x356f59('0x7a8')]==_0x356f59('0xc8f')||_0x1bec99[_0x356f59('0x7a8')]==_0x356f59('0x255'))&&(_0xc5f09e[_0x356f59('0x1165')]('apps.plugins.plugin_'+_0x305bc0),!_0x27ccac(0x76c)&&_0xc5f09e[_0x356f59('0x953')](_0x356f59('0xa6f'),{'id':0x76c,'title':'Plugins','translate':'PLUGINS.PLUGINS','icon':_0x356f59('0x21ff'),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x27ccac(_0x5d131a){const _0x330f8c=_0x4493fa,_0x53c9d9=_0xc5f09e['getNavigation'](),_0x2f8955=_0x283545()[_0x330f8c('0x20e8')](_0x53c9d9[0x0]['children'],{'id':_0x5d131a});return _0x2f8955&&_0x2f8955[_0x330f8c('0x17e1')][_0x330f8c('0x2566')]>0x0?!![]:![];}function _0xe735cd(_0x472569,_0x5dfc9d){const _0x272864=_0x4493fa,_0x513d44=_0xc5f09e['getNavigation'](),_0x58a658=_0x283545()['find'](_0x513d44[0x0]['children'],{'id':_0x472569});if(!_0x58a658)return![];return _0x283545()[_0x272864('0xc5d')](_0x58a658[_0x272864('0x17e1')],{'id':_0x5dfc9d});}_0x54b374[_0x4493fa('0x651')](_0x4493fa('0x1ac6'),function(){const _0xb5c749=_0x4493fa;_0xe3959a[_0xb5c749('0x27d0')][_0xb5c749('0x817')]('ms-navigation-horizontal-mobile-menu-active');});}const _0x2a3301=_0xd61110;;function _0x509e99(){}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1886'),[])[_0x34e79e('0x1a22')](_0x509e99)[_0x34e79e('0xb44')](_0x34e79e('0xf6f'),_0x2a3301),_0x2908e0[_0x34e79e('0x2d9')]=['$scope','$mdDialog',_0x34e79e('0x1b5e'),_0x34e79e('0x519'),_0x34e79e('0x1e6a'),_0x34e79e('0x1af0'),_0x34e79e('0x186b')];function _0x2908e0(_0x4953e4,_0x128711,_0x183937,_0x384612,_0x327233,_0x1e0404,_0x3966ce){const _0x1e4dbd=_0x34e79e,_0x59c256=this;_0x59c256[_0x1e4dbd('0x25be')]=[],_0x59c256['user']=_0x327233,_0x59c256[_0x1e4dbd('0x1af0')]=_0x1e0404,_0x59c256[_0x1e4dbd('0x186b')]=_0x3966ce,_0x59c256[_0x1e4dbd('0x18ad')]=_0x59c256['setting'][_0x1e4dbd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59c256[_0x1e4dbd('0x181f')]=_0x52bc45,_0x59c256[_0x1e4dbd('0xca7')]=_0x17b301,_0x4953e4[_0x1e4dbd('0x1662')](_0x1e4dbd('0x1add'),function(_0x578f40){const _0x4e677d=_0x1e4dbd;!_0x283545()[_0x4e677d('0x1015')](_0x59c256[_0x4e677d('0x2380')])&&(_0x578f40===_0x59c256['oldPassword']?_0x4953e4['changePasswordForm'][_0x4e677d('0xad8')][_0x4e677d('0x22a2')]('oldPasswordMatch',![]):_0x4953e4[_0x4e677d('0x199a')][_0x4e677d('0xad8')][_0x4e677d('0x22a2')]('oldPasswordMatch',!![]));});function _0x52bc45(){const _0x4ca6b7=_0x1e4dbd;_0x59c256['errors']=[],_0x384612[_0x4ca6b7('0x1e6a')][_0x4ca6b7('0x73b')]({'id':_0x59c256[_0x4ca6b7('0x1e6a')]['id']},{'oldPassword':_0x59c256[_0x4ca6b7('0x2380')],'newPassword':_0x59c256[_0x4ca6b7('0xad8')]})[_0x4ca6b7('0x1714')][_0x4ca6b7('0x2788')](function(){const _0x25c6bf=_0x4ca6b7;_0x183937['show'](_0x183937[_0x25c6bf('0x1a30')]()[_0x25c6bf('0x1a95')](_0x25c6bf('0x2818'))['position'](_0x25c6bf('0x8f5'))[_0x25c6bf('0x1e9d')](0x1388)),_0x17b301();})[_0x4ca6b7('0x1cb5')](function(_0x22a97f){const _0x236691=_0x4ca6b7;console[_0x236691('0x5e8')](_0x22a97f),_0x59c256[_0x236691('0x25be')]=_0x22a97f[_0x236691('0x11fc')][_0x236691('0x25be')]&&_0x22a97f[_0x236691('0x11fc')][_0x236691('0x25be')]['length']?_0x22a97f[_0x236691('0x11fc')][_0x236691('0x25be')]:[{'message':_0x22a97f[_0x236691('0x11fc')]['message']||_0x236691('0xfaf'),'type':_0x236691('0x26e')}];});}function _0x17b301(){const _0x497e80=_0x1e4dbd;_0x128711[_0x497e80('0x19d')]();}}const _0x2a76b6=_0x2908e0;_0x426506['$inject']=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),'api','preview',_0x34e79e('0x132')];function _0x426506(_0x429e8a,_0x5723b7,_0x38cdb9,_0x40ab0d,_0x2d4b2b,_0x4257fb,_0x4e4bbc,_0xc4d35c){const _0x4c4276=_0x34e79e,_0x4e7b6c=this;_0x4e7b6c[_0x4c4276('0x12b7')]=_0xc4d35c&&_0xc4d35c[_0x4c4276('0x25df')]?_0x283545()['mapValues'](_0x283545()['keyBy'](_0xc4d35c[_0x4c4276('0x25df')],function(_0x975f63){return'cf_'+_0x975f63['id'];}),'name'):{},_0x4e7b6c[_0x4c4276('0x25be')]=[],_0x4e7b6c[_0x4c4276('0x146d')]=[],_0x4e7b6c[_0x4c4276('0x23b3')]=_0x4e4bbc,_0x4e7b6c[_0x4c4276('0x253b')]=![],_0x4e7b6c['disable']=![],_0x4e7b6c[_0x4c4276('0x1e9a')]=![],_0x4e7b6c[_0x4c4276('0x146d')][_0x4c4276('0x13e3')](_0x4e7b6c[_0x4c4276('0x23b3')]['id']),_0x4e7b6c[_0x4c4276('0x18be')]=_0x255a76,_0x4e7b6c[_0x4c4276('0xca7')]=_0xab1637,_0x4e7b6c[_0x4c4276('0x24b6')]=_0x37852c,_0x4e7b6c['previousContact']=_0x81063d,_0x4e7b6c[_0x4c4276('0x1eed')]=_0x2cbc36,_0x4e7b6c['isCustomField']=_0x1187b4,_0x4e7b6c[_0x4c4276('0xf4d')]=_0xa36801,_0x4e7b6c[_0x4c4276('0x1015')]=_0x187c40;function _0x187c40(_0x381854){return _0x283545()['isNil'](_0x381854);}function _0x1187b4(_0x4a7755){const _0x2191d4=_0x4c4276;return _0x283545()['startsWith'](_0x4a7755,_0x2191d4('0x249c'));}function _0xa36801(_0x52b8fb){const _0x1fbaf1=_0x4c4276;return _0x283545()[_0x1fbaf1('0x1d4e')](['Company','CompanyId',_0x1fbaf1('0x354'),'UserId',_0x1fbaf1('0x172'),_0x1fbaf1('0xeb0'),'id',_0x1fbaf1('0x155b'),_0x1fbaf1('0x1343'),_0x1fbaf1('0xe45'),_0x1fbaf1('0x5f'),_0x1fbaf1('0x2666'),'twitter','skype',_0x1fbaf1('0xf5e'),_0x1fbaf1('0xb2f'),'viber','line',_0x1fbaf1('0x215')],_0x52b8fb);}function _0x255a76(){const _0x4f0fb2=_0x4c4276;_0x4e7b6c[_0x4f0fb2('0x253b')]=!![],_0x4e7b6c[_0x4f0fb2('0x734')]=!![],_0x283545()[_0x4f0fb2('0x213d')](_0x4e7b6c[_0x4f0fb2('0x23b3')])?(_0x2d4b2b[_0x4f0fb2('0x5e8')]({'title':_0x4f0fb2('0x217'),'msg':'Contact\x20not\x20available'}),_0x4e7b6c[_0x4f0fb2('0x734')]=![],_0x4e7b6c[_0x4f0fb2('0x146d')]=[],_0xab1637(!![])):_0x4257fb[_0x4f0fb2('0x1bfc')][_0x4f0fb2('0x73f')]({'id':_0x4e7b6c[_0x4f0fb2('0x23b3')]['id']})[_0x4f0fb2('0x1714')][_0x4f0fb2('0x2788')](function(){_0xab1637(!![]);})['catch'](function(_0x53e38a){const _0x3e0029=_0x4f0fb2;_0x2d4b2b['error']({'title':_0x3e0029('0x217'),'msg':_0x53e38a[_0x3e0029('0x11fc')]}),_0xab1637(!![]);})[_0x4f0fb2('0x1ed8')](function(){const _0x56bb8f=_0x4f0fb2;_0x4e7b6c['disable']=![],_0x4e7b6c[_0x56bb8f('0x146d')]=[];});}function _0xab1637(_0x5f1437){const _0x76cd0c=_0x4c4276;_0x283545()[_0x76cd0c('0x1015')](_0x5f1437)&&_0x4257fb[_0x76cd0c('0x1de1')][_0x76cd0c('0x2740')]({'id':_0x4e7b6c[_0x76cd0c('0x23b3')]['id'],'UserId':null}),_0x40ab0d[_0x76cd0c('0x19d')]();}_0x429e8a[_0x4c4276('0x651')](_0x4c4276('0x26ac'),function(){const _0x116244=_0x4c4276;!_0x4e7b6c[_0x116244('0x253b')]&&_0x4257fb['cmHopper']['update']({'id':_0x4e7b6c[_0x116244('0x23b3')]['id'],'UserId':null});});function _0x37852c(){const _0x35ebca=_0x4c4276;return _0x4e7b6c[_0x35ebca('0x1e9a')]=!![],_0x4257fb['cmHopper'][_0x35ebca('0xd6')]({'hopperIds':_0x4e7b6c[_0x35ebca('0x146d')],'direction':_0x35ebca('0x1c68')})[_0x35ebca('0x1714')][_0x35ebca('0x2788')](function(_0x5b5428){const _0xbda746=_0x35ebca;_0x4e7b6c[_0xbda746('0x1e9a')]=![],!_0x283545()[_0xbda746('0x1015')](_0x5b5428)&&!_0x283545()[_0xbda746('0x1015')](_0x5b5428[_0xbda746('0x107f')])&&_0x5b5428['Queue'][_0xbda746('0x10b2')]?(!_0x4e7b6c['originated']&&_0x4257fb[_0xbda746('0x1de1')][_0xbda746('0x2740')]({'id':_0x4e7b6c[_0xbda746('0x23b3')]['id'],'UserId':null}),_0x4e7b6c['preview']=_0x5b5428,_0x4e7b6c['hopperIds']['push'](_0x4e7b6c['preview']['id'])):(_0x4e7b6c[_0xbda746('0x146d')]=[],_0x40ab0d[_0xbda746('0x19d')](),_0x2d4b2b['info']({'title':_0xbda746('0x174c'),'msg':_0xbda746('0xb9b')}));})[_0x35ebca('0x1cb5')](function(_0x5921fb){const _0x2af137=_0x35ebca;_0x4e7b6c[_0x2af137('0x1e9a')]=![],_0x4e7b6c[_0x2af137('0x146d')]=[];if(_0x5921fb[_0x2af137('0x1b51')]===0x194)_0x4e7b6c[_0x2af137('0x1eed')]();else{if(_0x5921fb[_0x2af137('0x11fc')]&&_0x5921fb[_0x2af137('0x11fc')][_0x2af137('0x25be')]&&_0x5921fb[_0x2af137('0x11fc')]['errors'][_0x2af137('0x2566')]){_0x40ab0d['hide']();for(let _0x127df5=0x0;_0x127df5<_0x5921fb[_0x2af137('0x11fc')][_0x2af137('0x25be')][_0x2af137('0x2566')];_0x127df5+=0x1){_0x2d4b2b[_0x2af137('0x5e8')]({'title':_0x5921fb[_0x2af137('0x11fc')]['errors'][_0x127df5][_0x2af137('0x1d7')],'msg':_0x5921fb[_0x2af137('0x11fc')][_0x2af137('0x25be')][_0x127df5][_0x2af137('0x15e2')]});}}else _0x40ab0d[_0x2af137('0x19d')](),_0x2d4b2b[_0x2af137('0x5e8')]({'title':_0x5921fb[_0x2af137('0x1b51')]?'API:'+_0x5921fb[_0x2af137('0x1b51')]+_0x2af137('0x1b0b')+_0x5921fb[_0x2af137('0x22ce')]:_0x2af137('0x1571'),'msg':_0x5921fb[_0x2af137('0x11fc')]?JSON['stringify'](_0x5921fb[_0x2af137('0x11fc')][_0x2af137('0x15e2')]):_0x5921fb['toString']()});}});}function _0x81063d(){const _0x40d5e5=_0x4c4276;_0x4e7b6c[_0x40d5e5('0x1e9a')]=!![];if(_0x4e7b6c[_0x40d5e5('0x146d')][_0x40d5e5('0x2566')]>0x1){const _0x22ede6=_0x283545()['without'](_0x4e7b6c['hopperIds'],_0x4e7b6c['preview']['id']);return _0x4257fb[_0x40d5e5('0x1de1')][_0x40d5e5('0xd6')]({'hopperIds':_0x22ede6,'direction':_0x40d5e5('0x140c')})[_0x40d5e5('0x1714')][_0x40d5e5('0x2788')](function(_0xfa80f0){const _0x3f199b=_0x40d5e5;_0x4e7b6c[_0x3f199b('0x1e9a')]=![],!_0x283545()[_0x3f199b('0x1015')](_0xfa80f0)&&!_0x283545()[_0x3f199b('0x1015')](_0xfa80f0[_0x3f199b('0x107f')])&&_0xfa80f0[_0x3f199b('0x107f')][_0x3f199b('0x10b2')]?(_0x283545()[_0x3f199b('0x1a90')](_0x4e7b6c[_0x3f199b('0x146d')],function(_0x52841c){return _0x52841c==_0x4e7b6c['preview']['id'];}),!_0x4e7b6c[_0x3f199b('0x253b')]&&_0x4257fb[_0x3f199b('0x1de1')][_0x3f199b('0x2740')]({'id':_0x4e7b6c['preview']['id'],'UserId':null}),_0x4e7b6c[_0x3f199b('0x23b3')]=_0xfa80f0):(_0x4e7b6c['hopperIds']=[],_0x40ab0d[_0x3f199b('0x19d')](),_0x2d4b2b[_0x3f199b('0x2276')]({'title':_0x3f199b('0x174c'),'msg':_0x3f199b('0xb9b')}));})[_0x40d5e5('0x1cb5')](function(_0x17d69a){const _0x339e54=_0x40d5e5;if(_0x17d69a['status']===0x194)_0x4e7b6c[_0x339e54('0x146d')]=[_0x4e7b6c['preview']['id']],_0x2d4b2b[_0x339e54('0x2276')]({'title':_0x339e54('0x174c'),'msg':_0x339e54('0xfe9')});else{if(_0x17d69a[_0x339e54('0x11fc')]&&_0x17d69a['data'][_0x339e54('0x25be')]&&_0x17d69a['data'][_0x339e54('0x25be')]['length']){_0x4e7b6c[_0x339e54('0x146d')]=[],_0x40ab0d[_0x339e54('0x19d')]();for(let _0x143bdb=0x0;_0x143bdb<_0x17d69a[_0x339e54('0x11fc')]['errors'][_0x339e54('0x2566')];_0x143bdb+=0x1){_0x2d4b2b[_0x339e54('0x5e8')]({'title':_0x17d69a['data'][_0x339e54('0x25be')][_0x143bdb][_0x339e54('0x1d7')],'msg':_0x17d69a[_0x339e54('0x11fc')][_0x339e54('0x25be')][_0x143bdb][_0x339e54('0x15e2')]});}}else _0x4e7b6c[_0x339e54('0x146d')]=[],_0x40ab0d[_0x339e54('0x19d')](),_0x2d4b2b['error']({'title':_0x17d69a[_0x339e54('0x1b51')]?_0x339e54('0x15d1')+_0x17d69a[_0x339e54('0x1b51')]+_0x339e54('0x1b0b')+_0x17d69a['statusText']:_0x339e54('0x1571'),'msg':_0x17d69a['data']?JSON['stringify'](_0x17d69a[_0x339e54('0x11fc')][_0x339e54('0x15e2')]):_0x17d69a[_0x339e54('0x17df')]()});}});}}function _0x2cbc36(){const _0x288550=_0x4c4276;return _0x4e7b6c[_0x288550('0x1e9a')]=!![],_0x2d4b2b[_0x288550('0x2276')]({'title':_0x288550('0x174c'),'msg':_0x288550('0x1b25')}),_0x4257fb[_0x288550('0x1de1')]['getPreview']({'hopperIds':[_0x4e7b6c['preview']['id']],'direction':_0x288550('0x1c68')})[_0x288550('0x1714')]['then'](function(_0x32f1f1){const _0x2ce88c=_0x288550;!_0x283545()[_0x2ce88c('0x1015')](_0x32f1f1)&&!_0x283545()[_0x2ce88c('0x1015')](_0x32f1f1[_0x2ce88c('0x107f')])&&_0x32f1f1['Queue'][_0x2ce88c('0x10b2')]?(!_0x4e7b6c[_0x2ce88c('0x253b')]&&_0x4257fb[_0x2ce88c('0x1de1')]['update']({'id':_0x4e7b6c[_0x2ce88c('0x23b3')]['id'],'UserId':null}),_0x4e7b6c[_0x2ce88c('0x23b3')]=_0x32f1f1,_0x4e7b6c[_0x2ce88c('0x146d')][_0x2ce88c('0x13e3')](_0x4e7b6c[_0x2ce88c('0x23b3')]['id'])):(_0x40ab0d[_0x2ce88c('0x19d')](),_0x2d4b2b[_0x2ce88c('0x2276')]({'title':_0x2ce88c('0x174c'),'msg':_0x2ce88c('0xb9b')}));})[_0x288550('0x1cb5')](function(_0x7d2a72){const _0x32d09f=_0x288550;_0x40ab0d[_0x32d09f('0x19d')]();if(_0x7d2a72['status']===0x194)_0x2d4b2b[_0x32d09f('0x2276')]({'title':_0x32d09f('0x174c'),'msg':_0x32d09f('0x1d8')});else{if(_0x7d2a72[_0x32d09f('0x11fc')]&&_0x7d2a72['data'][_0x32d09f('0x25be')]&&_0x7d2a72[_0x32d09f('0x11fc')][_0x32d09f('0x25be')]['length'])for(let _0x55591c=0x0;_0x55591c<_0x7d2a72[_0x32d09f('0x11fc')][_0x32d09f('0x25be')]['length'];_0x55591c+=0x1){_0x2d4b2b['error']({'title':_0x7d2a72[_0x32d09f('0x11fc')]['errors'][_0x55591c][_0x32d09f('0x1d7')],'msg':_0x7d2a72[_0x32d09f('0x11fc')][_0x32d09f('0x25be')][_0x55591c]['message']});}else _0x2d4b2b[_0x32d09f('0x5e8')]({'title':_0x7d2a72[_0x32d09f('0x1b51')]?_0x32d09f('0x15d1')+_0x7d2a72[_0x32d09f('0x1b51')]+_0x32d09f('0x1b0b')+_0x7d2a72['statusText']:_0x32d09f('0x1571'),'msg':_0x7d2a72[_0x32d09f('0x11fc')]?JSON['stringify'](_0x7d2a72[_0x32d09f('0x11fc')][_0x32d09f('0x15e2')]):_0x7d2a72['toString']()});}})['finally'](function(){_0x4e7b6c['disableGetContact']=![];});}}const _0x3871b3=_0x426506,_0x189ad4=_0x18dd13['p']+_0x34e79e('0x15f0'),_0x4fe2f1=_0x18dd13['p']+_0x34e79e('0x2205');_0x2304fd[_0x34e79e('0x2d9')]=['$scope','$rootScope','$q',_0x34e79e('0x1382'),_0x34e79e('0x446'),_0x34e79e('0x4cc'),_0x34e79e('0x2179'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b5e'),_0x34e79e('0x1bf5'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$cookies',_0x34e79e('0xd57'),'msNavigationService','Auth',_0x34e79e('0xd6f'),'api',_0x34e79e('0x130d'),'setting','$interval'];function _0x2304fd(_0x48abee,_0x1b2116,_0x2f056b,_0x423ead,_0x33f4ee,_0xdc74d2,_0x191b75,_0x3d76b0,_0x384393,_0x2dfbc1,_0x5d4afa,_0xaeb5e9,_0x12f312,_0x27022f,_0x10972a,_0x32485b,_0x35a5fa,_0x3a58f6,_0x46d5c1,_0x95c455,_0x31fec2){const _0x3cef90=_0x34e79e,_0x535a69=this;_0x535a69[_0x3cef90('0x135')]={},_0x535a69['polling']=!![],_0x535a69[_0x3cef90('0x946')]=_0x3a58f6['baseUrl'];let _0x5021e6;_0x1b2116[_0x3cef90('0x2065')]={'search':''},_0x535a69[_0x3cef90('0x225d')]=[],_0x535a69[_0x3cef90('0x130d')]=_0x46d5c1,_0x535a69[_0x3cef90('0x9cb')]=_0x32485b[_0x3cef90('0x24cc')](),_0x535a69[_0x3cef90('0x174e')]=0x0,_0x535a69[_0x3cef90('0x8eb')]=0x0,_0x535a69[_0x3cef90('0x7a2')]=0x0;_0x535a69[_0x3cef90('0x9cb')]['role']===_0x3cef90('0x188b')&&(_0x5021e6=_0x31fec2(_0x350065,0x3a97));_0x535a69[_0x3cef90('0x1af0')]=_0x95c455,_0x535a69[_0x3cef90('0x27d0')]=angular[_0x3cef90('0x16b1')](_0x3cef90('0x945')),_0x535a69[_0x3cef90('0x5f9')]={'realm':'asterisk','host':_0xdc74d2[_0x3cef90('0x1c6a')](),'protocol':_0xdc74d2['protocol'](),'remotePlayerId':_0x3cef90('0x8ed'),'ua':_0x3cef90('0x3e5'),'license':_0x535a69[_0x3cef90('0x130d')][_0x3cef90('0x1d98')],'phoneBarExpires':_0x535a69[_0x3cef90('0x9cb')][_0x3cef90('0xf24')],'phoneBarPrefixRequired':_0x535a69[_0x3cef90('0x9cb')]['phoneBarPrefixRequired']},_0x535a69['query']={'id':_0x32485b['getCurrentUser']()['id'],'fields':_0x3cef90('0x1348'),'channel':_0x3cef90('0x1f60'),'nolimit':!![]},_0x535a69[_0x3cef90('0xa44')]=[{'title':'Online','icon':_0x3cef90('0x226e'),'color':_0x3cef90('0x18d7')},{'title':'Away','icon':_0x3cef90('0xee5'),'color':'#FFC107'},{'title':_0x3cef90('0x24b8'),'icon':_0x3cef90('0x167a'),'color':_0x3cef90('0x16b3')},{'title':_0x3cef90('0x7fa'),'icon':_0x3cef90('0x3ad'),'color':'#BDBDBD'},{'title':_0x3cef90('0xdc6'),'icon':_0x3cef90('0x3ad'),'color':_0x3cef90('0x1c22')}],_0x535a69[_0x3cef90('0x1489')]={'ar':{'title':_0x3cef90('0xe58'),'translation':_0x3cef90('0xe46'),'code':'ar','flag':'ar'},'da':{'title':'Danish','translation':_0x3cef90('0x16b7'),'code':'da','flag':'da'},'de':{'title':_0x3cef90('0x1072'),'translation':_0x3cef90('0xd35'),'code':'de','flag':'de'},'en':{'title':_0x3cef90('0x866'),'translation':'TOOLBAR.ENGLISH','code':'en','flag':'us'},'es':{'title':'Spanish','translation':_0x3cef90('0x2075'),'code':'es','flag':'es'},'fa':{'title':_0x3cef90('0x15b6'),'translation':'TOOLBAR.PERSIAN','code':'fa','flag':'fa'},'fi':{'title':_0x3cef90('0x10cd'),'translation':_0x3cef90('0x2348'),'code':'fi','flag':'fi'},'fr':{'title':_0x3cef90('0xfd2'),'translation':_0x3cef90('0x1ee'),'code':'fr','flag':'fr'},'he':{'title':_0x3cef90('0x17b7'),'translation':_0x3cef90('0xec6'),'code':'he','flag':'he'},'hi':{'title':_0x3cef90('0x16bd'),'translation':'TOOLBAR.HINDI','code':'hi','flag':'hi'},'id':{'title':_0x3cef90('0x131e'),'translation':_0x3cef90('0xd22'),'code':'id','flag':'id'},'it':{'title':_0x3cef90('0xf33'),'translation':_0x3cef90('0xc7d'),'code':'it','flag':'it'},'ja':{'title':'Japanese','translation':'TOOLBAR.JAPANESE','code':'ja','flag':'ja'},'ko':{'title':_0x3cef90('0x22f1'),'translation':'TOOLBAR.KOREAN','code':'ko','flag':'ko'},'lv':{'title':_0x3cef90('0xbf'),'translation':_0x3cef90('0xf97'),'code':'lv','flag':'lv'},'nl':{'title':_0x3cef90('0x805'),'translation':'TOOLBAR.DUTCH','code':'nl','flag':'nl'},'no':{'title':'Norwegian','translation':_0x3cef90('0x21dc'),'code':'no','flag':'no'},'pl':{'title':_0x3cef90('0xb2d'),'translation':_0x3cef90('0x1230'),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x3cef90('0x837'),'translation':'TOOLBAR.BRAZILIAN','code':_0x3cef90('0x1428'),'flag':_0x3cef90('0x1428')},'pt-PT':{'title':_0x3cef90('0xbbd'),'translation':'TOOLBAR.PORTUGUESE','code':_0x3cef90('0x280d'),'flag':'pt-PT'},'ru':{'title':'Russian','translation':_0x3cef90('0xdf9'),'code':'ru','flag':'ru'},'sv':{'title':'Swedish','translation':_0x3cef90('0x18e7'),'code':'sv','flag':'sv'},'tr':{'title':_0x3cef90('0x44c'),'translation':_0x3cef90('0xed7'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x3cef90('0x2214'),'translation':_0x3cef90('0x2577'),'code':_0x3cef90('0x203f'),'flag':_0x3cef90('0x203f')},'zh-TW':{'title':_0x3cef90('0x13a9'),'translation':_0x3cef90('0x5a7'),'code':'zh-TW','flag':_0x3cef90('0x255b')}};const _0x5aeb21=['ar','fa','he'];_0x535a69['toggleSidenav']=_0x96fac8,_0x535a69[_0x3cef90('0x192f')]=_0x2a6c6a,_0x535a69[_0x3cef90('0x138c')]=_0x4cfc1d,_0x535a69['setUserStatus']=_0x24119e,_0x535a69[_0x3cef90('0x1d4b')]=_0x532b18,_0x535a69[_0x3cef90('0x94d')]=_0x45dc56,_0x535a69[_0x3cef90('0x470')]=_0x2c0aec,_0x535a69[_0x3cef90('0xf8c')]=_0xd00caa,_0x535a69[_0x3cef90('0xbad')]=_0x5113bc,_0x535a69[_0x3cef90('0x73b')]=_0x4f1eff,_0x535a69[_0x3cef90('0x103f')]=_0x14b0ef,_0x535a69[_0x3cef90('0x1d13')]=_0x44704a,_0x535a69[_0x3cef90('0x77')]=_0x102d4b,_0x535a69['pause']=_0x4a3f05,_0x535a69[_0x3cef90('0x1826')]=_0x2267cd,_0x535a69[_0x3cef90('0x23b3')]=_0xda2fe0,_0x535a69[_0x3cef90('0x1d1d')]=_0x37ecf9,_0x535a69[_0x3cef90('0x20c7')]=_0x4b526b,_0x535a69[_0x3cef90('0x55c')]=_0x3d3119,_0x535a69[_0x3cef90('0x18a8')]=_0x471525,_0x535a69[_0x3cef90('0x1c1a')]=_0x9b83c1,_0x535a69[_0x3cef90('0x7ca')]=_0x2d45fc,_0x3d63f5(),_0x87b40c(),_0x289e9d();function _0x3d63f5(){const _0x3fa9e2=_0x3cef90;_0x535a69['user']=_0x32485b['getCurrentUser'](),_0x535a69['conf'][_0x3fa9e2('0x724')]=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0xf37')],_0x535a69[_0x3fa9e2('0x5f9')]['id']=_0x535a69[_0x3fa9e2('0x1e6a')]['id'],_0x535a69[_0x3fa9e2('0x5f9')]['name']=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x1a8d')],_0x535a69['conf'][_0x3fa9e2('0x2831')]=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x2831')],_0x535a69[_0x3fa9e2('0x5f9')]['internal']=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x2838')],_0x535a69[_0x3fa9e2('0x5f9')][_0x3fa9e2('0xbe2')]=_0x535a69[_0x3fa9e2('0x1e6a')]['phoneBarEnableRecording'],_0x535a69[_0x3fa9e2('0x5f9')][_0x3fa9e2('0xb1a')]=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x3ba')],_0x535a69[_0x3fa9e2('0x5f9')][_0x3fa9e2('0x120a')]=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x30c')],_0x535a69[_0x3fa9e2('0x5f9')]['enableDtmfTone']=_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x1665')],_0x535a69[_0x3fa9e2('0x5f9')][_0x3fa9e2('0x1e61')]=_0x535a69['user'][_0x3fa9e2('0x183c')],_0x535a69[_0x3fa9e2('0x2628')]=_0x535a69['userStatusOptions'][0x0];const _0x27643a=_0x12f312[_0x3fa9e2('0x1335')]('motion.language');_0x27643a&&typeof _0x535a69[_0x3fa9e2('0x1489')][_0x27643a]!==_0x3fa9e2('0xedb')?_0x535a69['selectedLanguage']=_0x535a69['languages'][_0x27643a]:_0x535a69[_0x3fa9e2('0x1fec')]=_0x535a69['languages'][_0x3d76b0[_0x3fa9e2('0x985')]()];_0x3a58f6[_0x3fa9e2('0x619')][_0x3fa9e2('0x1335')]({'fields':_0x3fa9e2('0x1a8d'),'nolimit':!![]})[_0x3fa9e2('0x1714')]['then'](function(_0x140066){const _0x4281aa=_0x3fa9e2;_0x535a69['pauses']=_0x140066[_0x4281aa('0x25df')]?_0x140066[_0x4281aa('0x25df')]:[];})['catch'](function(_0xeb73f5){const _0x17acd3=_0x3fa9e2;_0x27022f['error']({'title':_0xeb73f5[_0x17acd3('0x1b51')]?'API:'+_0xeb73f5['status']+'\x20-\x20'+_0xeb73f5[_0x17acd3('0x22ce')]:_0x17acd3('0x19a0'),'msg':_0xeb73f5['status']?JSON['stringify'](_0xeb73f5[_0x17acd3('0x11fc')]):_0xeb73f5['toString']()});});if(_0x32485b['getAuthenticationType']()==_0x3fa9e2('0x1aa3')){if(_0x535a69[_0x3fa9e2('0x1af0')][_0x3fa9e2('0x1c65')]){if(!_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x119a')])_0x4f1eff(null,!![]);else{const _0x4b0128=_0x59f37a()(_0x535a69[_0x3fa9e2('0x1e6a')][_0x3fa9e2('0x119a')])[_0x3fa9e2('0x9b8')](_0x535a69['setting'][_0x3fa9e2('0x15fe')]||0x5a,'day');if(_0x59f37a()()[_0x3fa9e2('0x1c7c')](_0x4b0128))_0x4f1eff(null,!![]);else _0x59f37a()()[_0x3fa9e2('0x9b8')](0xf,_0x3fa9e2('0xf'))['isAfter'](_0x4b0128)&&_0x27022f[_0x3fa9e2('0x14b4')]({'title':_0x3d76b0[_0x3fa9e2('0x1b11')](_0x3fa9e2('0x25b4'))+'!','msg':_0x3d76b0[_0x3fa9e2('0x1b11')](_0x3fa9e2('0x1994'))+':\x20'+Math[_0x3fa9e2('0x46a')](_0x4b0128['diff'](_0x59f37a()(),'days',!![])),'timeout':0x4e20});}}}}function _0x289e9d(){const _0x1fffca=_0x3cef90;_0x35a5fa['connect'](),_0x35a5fa['on']('user:update',_0x535a69[_0x1fffca('0x1d13')]),_0x35a5fa['on'](_0x1fffca('0x19a5'),_0x535a69[_0x1fffca('0x77')]),_0x35a5fa['on'](_0x1fffca('0x1f23'),_0x535a69[_0x1fffca('0x55c')]),_0x35a5fa['on']('chatInternalMessage:update',_0x535a69['onInternalMessageUpdate']),_0x35a5fa['on']('userVoiceQueue:save',_0x535a69[_0x1fffca('0x1c1a')]),_0x35a5fa['on'](_0x1fffca('0x4a2'),_0x535a69[_0x1fffca('0x7ca')]),_0x35a5fa['on'](_0x1fffca('0x11e0'),_0x535a69['onUserVoiceQueue']),_0x35a5fa['on'](_0x1fffca('0xad4'),_0x535a69[_0x1fffca('0x7ca')]),_0x35a5fa['on'](_0x1fffca('0x91'),_0x535a69[_0x1fffca('0x7ca')]),_0x35a5fa['on'](_0x1fffca('0x1706'),_0x1a0d5f),_0x35a5fa['on'](_0x1fffca('0xabd'),_0x309d31);}function _0x2958fb(){const _0x3b0208=_0x3cef90;_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x19a5')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x1cb6')),_0x35a5fa[_0x3b0208('0x277f')]('chatInternalMessage:save'),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x230f')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x454')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x4a2')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x11e0')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0xad4')),_0x35a5fa[_0x3b0208('0x277f')](_0x3b0208('0x91')),_0x35a5fa[_0x3b0208('0x277f')]('user:forcelogout'),_0x35a5fa[_0x3b0208('0x277f')]('notification:send'),_0x35a5fa[_0x3b0208('0x16a4')]();}function _0x4c1679(_0x137bd3){const _0x1f7708=_0x3cef90;_0x535a69[_0x1f7708('0x135')]=_0x137bd3?_0x283545()[_0x1f7708('0x13cf')](_0x137bd3['rows']?_0x137bd3[_0x1f7708('0x25df')]:[],'id'):{};}function _0x87b40c(){const _0x46cc90=_0x3cef90;_0x535a69[_0x46cc90('0x1808')]=_0x3a58f6[_0x46cc90('0x1e6a')][_0x46cc90('0x138a')](_0x535a69['query'],_0x4c1679)[_0x46cc90('0x1714')];}function _0x2d45fc(){_0x87b40c();}function _0x9b83c1(_0x262fd9){const _0x191e0d=_0x3cef90;_0x283545()[_0x191e0d('0x32c')](_0x262fd9[_0x191e0d('0x3bb')])===_0x32485b[_0x191e0d('0x24cc')]()['id']&&_0x87b40c();}function _0x4a3f05(_0x212773){const _0x5390bf=_0x3cef90;return _0x3a58f6[_0x5390bf('0x1e6a')]['pause']({'id':_0x535a69[_0x5390bf('0x1e6a')]['id'],'type':_0x212773||_0x5390bf('0xea6')})[_0x5390bf('0x1714')][_0x5390bf('0x1cb5')](function(_0x307380){const _0x3a4b7d=_0x5390bf;_0x27022f[_0x3a4b7d('0x5e8')]({'title':_0x307380[_0x3a4b7d('0x1b51')]?_0x3a4b7d('0x15d1')+_0x307380[_0x3a4b7d('0x1b51')]+_0x3a4b7d('0x1b0b')+_0x307380['statusText']:_0x3a4b7d('0x1f84'),'msg':_0x307380[_0x3a4b7d('0x1b51')]?JSON['stringify'](_0x307380[_0x3a4b7d('0x11fc')]):_0x307380[_0x3a4b7d('0x17df')]()});});}function _0x2267cd(){const _0x13f7f3=_0x3cef90;return _0x3a58f6['user']['unpause']({'id':_0x535a69[_0x13f7f3('0x1e6a')]['id']})[_0x13f7f3('0x1714')][_0x13f7f3('0x1cb5')](function(_0x501345){const _0x5348b6=_0x13f7f3;_0x27022f[_0x5348b6('0x5e8')]({'title':_0x501345[_0x5348b6('0x1b51')]?_0x5348b6('0x15d1')+_0x501345['status']+_0x5348b6('0x1b0b')+_0x501345[_0x5348b6('0x22ce')]:_0x5348b6('0xf07'),'msg':_0x501345['status']?JSON[_0x5348b6('0x1be0')](_0x501345[_0x5348b6('0x11fc')]):_0x501345[_0x5348b6('0x17df')]()});});}function _0xda2fe0(_0x3ff59a){const _0x47f10e=_0x3cef90;return _0x535a69[_0x47f10e('0x734')]=!![],_0x3a58f6[_0x47f10e('0x1de1')]['getPreview']()[_0x47f10e('0x1714')][_0x47f10e('0x2788')](function(_0x3ffd97){const _0x37996c=_0x47f10e;!_0x283545()[_0x37996c('0x1015')](_0x3ffd97)&&!_0x283545()['isNil'](_0x3ffd97[_0x37996c('0x107f')])&&_0x3ffd97['Queue']['dialActive']?_0x5d4afa[_0x37996c('0x2fa')]({'controller':_0x37996c('0x171a'),'controllerAs':'vm','templateUrl':_0x189ad4,'parent':angular[_0x37996c('0x16b1')](_0xaeb5e9[_0x37996c('0x945')]),'targetEvent':_0x3ff59a,'clickOutsideToClose':!![],'locals':{'preview':_0x3ffd97},'resolve':{'customFields':[_0x37996c('0x1318'),function(_0x5b7874){const _0x57495d=_0x37996c;return _0x5b7874[_0x57495d('0x2322')](_0x57495d('0x14ad'),{'nolimit':!![]});}]}}):_0x27022f[_0x37996c('0x2276')]({'title':_0x37996c('0x174c'),'msg':_0x37996c('0xb9b')});})['catch'](function(_0x36caa7){const _0x5ba2ba=_0x47f10e;if(_0x36caa7[_0x5ba2ba('0x1b51')]===0x194)_0x27022f[_0x5ba2ba('0x2276')]({'title':'PREVIEW','msg':_0x5ba2ba('0x56a')});else{if(_0x36caa7['data']&&_0x36caa7['data'][_0x5ba2ba('0x25be')]&&_0x36caa7[_0x5ba2ba('0x11fc')][_0x5ba2ba('0x25be')][_0x5ba2ba('0x2566')]){_0x535a69[_0x5ba2ba('0x25be')]=_0x36caa7[_0x5ba2ba('0x11fc')][_0x5ba2ba('0x25be')]||[{'message':_0x36caa7[_0x5ba2ba('0x17df')](),'type':_0x5ba2ba('0xa00')}];for(let _0xe7bfef=0x0;_0xe7bfef<_0x36caa7[_0x5ba2ba('0x11fc')]['errors'][_0x5ba2ba('0x2566')];_0xe7bfef+=0x1){_0x27022f['error']({'title':_0x36caa7[_0x5ba2ba('0x11fc')][_0x5ba2ba('0x25be')][_0xe7bfef][_0x5ba2ba('0x1d7')],'msg':_0x36caa7['data'][_0x5ba2ba('0x25be')][_0xe7bfef]['message']});}}else _0x27022f['error']({'title':_0x36caa7[_0x5ba2ba('0x1b51')]?_0x5ba2ba('0x15d1')+_0x36caa7[_0x5ba2ba('0x1b51')]+_0x5ba2ba('0x1b0b')+_0x36caa7['statusText']:'api.openchannelMessage.accept','msg':_0x36caa7[_0x5ba2ba('0x11fc')]?JSON[_0x5ba2ba('0x1be0')](_0x36caa7[_0x5ba2ba('0x11fc')][_0x5ba2ba('0x15e2')]):_0x36caa7['toString']()});}})[_0x47f10e('0x1ed8')](function(){const _0x4b4421=_0x47f10e;_0x535a69[_0x4b4421('0x734')]=![];});}function _0x96fac8(_0x41fd3e){_0x191b75(_0x41fd3e)['toggle']();}function _0x4b526b(){const _0x329d20=_0x3cef90;return _0x535a69['currentUser'][_0x329d20('0xb34')]===_0x329d20('0xe23')||_0x535a69[_0x329d20('0x9cb')][_0x329d20('0xb34')]===_0x329d20('0x1e6a')||_0x535a69['currentUser'][_0x329d20('0xb34')]==='agent'&&_0x535a69[_0x329d20('0x9cb')][_0x329d20('0x26e8')]!==0x0;}_0x3a58f6[_0x3cef90('0x208e')][_0x3cef90('0x1335')]({'fields':_0x3cef90('0x25a8'),'ToId':_0x535a69[_0x3cef90('0x9cb')]['id'],'read':![],'nolimit':!![]})['$promise'][_0x3cef90('0x2788')](function(_0x36de63){const _0x36b7fd=_0x3cef90;_0x535a69[_0x36b7fd('0x174e')]=_0x36de63[_0x36b7fd('0x25df')][_0x36b7fd('0x2566')];});function _0x3d3119(_0x5484f2){const _0x592763=_0x3cef90;_0x5484f2['ToId']===_0x535a69[_0x592763('0x9cb')]['id']&&!_0x5484f2[_0x592763('0x1a1e')]&&(_0x535a69['unreadTotalMessages']+=0x1),_0x5484f2[_0x592763('0x253c')]===_0x535a69[_0x592763('0x9cb')]['id']&&_0x5484f2[_0x592763('0x25a8')]!==_0x535a69[_0x592763('0x9cb')]['id']&&!_0x5484f2[_0x592763('0x18e8')]&&_0x5484f2[_0x592763('0x1a1e')]&&_0x535a69[_0x592763('0x8eb')]++;}function _0x471525(_0xd717ac){const _0x147a7a=_0x3cef90;_0xd717ac['ToId']===_0x535a69[_0x147a7a('0x9cb')]['id']&&_0xd717ac[_0x147a7a('0x18e8')]&&_0x535a69[_0x147a7a('0x174e')]>0x0&&!_0xd717ac[_0x147a7a('0x1a1e')]&&(_0x535a69[_0x147a7a('0x174e')]-=0x1),_0xd717ac[_0x147a7a('0x253c')]===_0x535a69[_0x147a7a('0x9cb')]['id']&&_0xd717ac['read']&&_0xd717ac[_0x147a7a('0x1a1e')]&&_0x535a69[_0x147a7a('0x8eb')]>0x0&&_0x535a69[_0x147a7a('0x8eb')]--;}function _0x24119e(_0x1eeab3){const _0x3ead9a=_0x3cef90;_0x535a69[_0x3ead9a('0x2628')]=_0x1eeab3;}function _0x2a6c6a(_0x937a8f){const _0x3041d6=_0x3cef90;return _0x2958fb(),_0x32485b[_0x3041d6('0x192f')](_0x937a8f)[_0x3041d6('0x2788')](function(){const _0x144a07=_0x3041d6;return _0x1b2116['$broadcast'](_0x144a07('0x13a3')),_0x423ead['go'](_0x144a07('0x2764'));})[_0x3041d6('0x1cb5')](function(_0x284f98){const _0x4cf090=_0x3041d6;console[_0x4cf090('0x5e8')](_0x284f98);});}function _0x4cfc1d(_0x1ccbb5){const _0x2e6cfa=_0x3cef90;if(typeof _0x535a69['languages'][_0x1ccbb5['code']]==_0x2e6cfa('0xedb')){const _0x5ce0db=_0x2e6cfa('0x10a0');_0x384393[_0x2e6cfa('0x2fa')]({'template':_0x2e6cfa('0x6d4')+_0x5ce0db+_0x2e6cfa('0x26e0'),'hideDelay':0x1b58,'position':_0x2e6cfa('0x8f5'),'parent':'#content'});return;}_0x535a69[_0x2e6cfa('0x1fec')]=_0x1ccbb5,_0x12f312[_0x2e6cfa('0x27ad')](_0x2e6cfa('0xdbf'),_0x1ccbb5[_0x2e6cfa('0x37')]),_0x3d76b0[_0x2e6cfa('0x1708')](_0x1ccbb5[_0x2e6cfa('0x37')]),_0x423ead[_0x2e6cfa('0x1c7f')][_0x2e6cfa('0x1a8d')]==='app.callysquare.projects.edit'&&_0x2dfbc1[_0x2e6cfa('0xe9')][_0x2e6cfa('0xcf8')](),_0x5aeb21[_0x2e6cfa('0x821')](_0x1ccbb5['code'])>=0x0?_0x27022f[_0x2e6cfa('0x2276')]({'title':_0x3d76b0[_0x2e6cfa('0x1b11')]('TOOLBAR.CHANGE_LANGUAGE_TITLE'),'msg':_0x3d76b0[_0x2e6cfa('0x1b11')](_0x2e6cfa('0xeee'))}):_0x48abee['$parent'][_0x2e6cfa('0x7d0')]['vm'][_0x2e6cfa('0x7c3')]=_0x2e6cfa('0x189');}function _0x532b18(){const _0x147b3d=_0x3cef90;_0x535a69[_0x147b3d('0x27d0')][_0x147b3d('0x14d3')](_0x147b3d('0x658'));}function _0x45dc56(){_0x10972a['toggleFolded']();}function _0x2c0aec(_0x3d5cba){const _0x323509=_0x3cef90;let _0x2b2c80=[];const _0x2edf11=_0x10972a[_0x323509('0xaf1')](),_0x496fc2=_0x2f056b[_0x323509('0x2311')]();for(let _0x39e7d0=0x0;_0x39e7d0<_0x2edf11[_0x323509('0x2566')];_0x39e7d0++){_0x2edf11[_0x39e7d0][_0x323509('0x127c')]&&_0x2b2c80['push'](_0x2edf11[_0x39e7d0]);}return _0x3d5cba&&(_0x2b2c80=_0x2b2c80['filter'](function(_0x5592c5){const _0x155876=_0x323509;if(_0x5592c5[_0x155876('0x14e4')][_0x155876('0xc2e')]()[_0x155876('0x1d4e')](_0x3d5cba['toLowerCase']()))return!![];})),_0x33f4ee(function(){const _0x235468=_0x323509;_0x496fc2[_0x235468('0x2322')](_0x2b2c80);},0x3e8),_0x496fc2[_0x323509('0x1808')];}function _0xd00caa(_0x3123e3){const _0x502ca9=_0x3cef90;_0x3123e3['uisref']&&(_0x3123e3['stateParams']?_0x423ead['go'](_0x3123e3[_0x502ca9('0x249b')],_0x3123e3[_0x502ca9('0x16a0')]):_0x423ead['go'](_0x3123e3[_0x502ca9('0x249b')]));}function _0x5113bc(){const _0x2b76ed=_0x3cef90;_0x1b2116['$broadcast'](_0x2b76ed('0x11be'));}function _0x4f1eff(_0x570252,_0x3575ec){const _0x34e274=_0x3cef90;_0x5d4afa['show']({'controller':_0x34e274('0x20e0'),'controllerAs':'vm','templateUrl':_0x4fe2f1,'parent':angular['element'](_0xaeb5e9[_0x34e274('0x945')]),'targetEvent':_0x570252,'clickOutsideToClose':_0x3575ec?![]:!![],'escapeToClose':_0x3575ec?![]:!![],'locals':{'user':_0x535a69[_0x34e274('0x1e6a')],'setting':_0x95c455,'reset':_0x3575ec}});}function _0x14b0ef(){const _0x1cf8e9=_0x3cef90;return _0x32485b['getCurrentUser']()&&_0x32485b[_0x1cf8e9('0x1516')](_0x1cf8e9('0x188b'));}function _0x44704a(_0x357b94){const _0x4e21c3=_0x3cef90;if(_0x357b94['id']===_0x535a69['user']['id']){if(_0x357b94[_0x4e21c3('0xb34')]===_0x4e21c3('0x188b')&&_0x283545()[_0x4e21c3('0xe90')](_0x357b94['online'])&&!_0x357b94[_0x4e21c3('0x7c2')]){if(_0x535a69['user'][_0x4e21c3('0x26e8')]!==0x0){_0x2958fb();const _0x2f2223=_0x5d4afa['confirm']()[_0x4e21c3('0x14e4')](_0x3d76b0[_0x4e21c3('0x1b11')](_0x4e21c3('0x25b4'))+'!')[_0x4e21c3('0x1a95')](_0x3d76b0['instant'](_0x4e21c3('0x16d6')))[_0x4e21c3('0x10bc')](_0x3d76b0[_0x4e21c3('0x1b11')](_0x4e21c3('0x25b4'))+'!')['ok'](_0x3d76b0['instant'](_0x4e21c3('0x12a4')))[_0x4e21c3('0x1801')](_0x4e21c3('0x1b94'));_0x5d4afa[_0x4e21c3('0x2fa')](_0x2f2223)[_0x4e21c3('0x2788')](function(){const _0x8ebefe=_0x4e21c3;return _0x32485b[_0x8ebefe('0x12c9')]()[_0x8ebefe('0x2788')](function(){const _0x4a2fe1=_0x8ebefe;_0x289e9d(),_0x283545()[_0x4a2fe1('0x2503')](_0x535a69['user'],_0x357b94),_0x32485b[_0x4a2fe1('0x242c')](_0x535a69[_0x4a2fe1('0x1e6a')]);});})[_0x4e21c3('0x1cb5')](function(){_0x2a6c6a(!![]);});}else _0x2a6c6a(!![]);}else _0x283545()[_0x4e21c3('0x2503')](_0x535a69[_0x4e21c3('0x1e6a')],_0x357b94),_0x32485b['setCurrentUser'](_0x535a69[_0x4e21c3('0x1e6a')]);}}function _0x102d4b(_0x8b18a5){const _0x37b8ac=_0x3cef90;_0x535a69['currentUser'][_0x37b8ac('0x26e8')]===0x2&&_0x535a69[_0x37b8ac('0x9cb')][_0x37b8ac('0xb34')]===_0x37b8ac('0x188b')&&_0x535a69['currentUser'][_0x37b8ac('0x1a8d')]===_0x8b18a5[_0x37b8ac('0x387')]&&_0x27022f[_0x37b8ac('0x2276')]({'title':'WebRTC\x20Popup','msg':'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20'+_0x8b18a5[_0x37b8ac('0x27e7')]+_0x37b8ac('0x2149')+_0x8b18a5[_0x37b8ac('0x1ab4')]+_0x37b8ac('0x1b60')+(_0x8b18a5['variables']&&_0x8b18a5[_0x37b8ac('0xf76')][_0x37b8ac('0x2578')]?_0x8b18a5[_0x37b8ac('0xf76')][_0x37b8ac('0x2578')]:'Not\x20defined')+_0x37b8ac('0x19ac'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x37ecf9(){const _0x4ce83c=_0x3cef90;return _0x535a69[_0x4ce83c('0x1af0')][_0x4ce83c('0x1d6b')]?_0x4ce83c('0x72f'):_0x535a69[_0x4ce83c('0x1af0')][_0x4ce83c('0x52')];}function _0x350065(){const _0x156947=_0x3cef90;_0x283545()[_0x156947('0xc5d')](_0x535a69[_0x156947('0x135')],{'dialMethod':_0x156947('0x23b3'),'dialActive':!![]})&&_0x535a69[_0x156947('0x130d')][_0x156947('0x79c')]&&_0x535a69['polling']?(_0x535a69['polling']=![],_0x3a58f6['cmHopper'][_0x156947('0x242d')]()[_0x156947('0x1714')][_0x156947('0x2788')](function(_0x2a8168){const _0x2d51dc=_0x156947;_0x2a8168&&_0x283545()[_0x2d51dc('0x8ac')](_0x2a8168[_0x2d51dc('0x14b')])&&(_0x535a69[_0x2d51dc('0x14b')]=_0x2a8168[_0x2d51dc('0x14b')]);})[_0x156947('0x1ed8')](function(){_0x535a69['polling']=!![];})):_0x535a69[_0x156947('0x14b')]=0x0;}function _0x54ab74(){_0x5021e6&&(_0x31fec2['cancel'](_0x5021e6),_0x5021e6=null);}function _0x1a0d5f(_0x34ed30){const _0x242d93=_0x3cef90;console[_0x242d93('0x1ca0')](_0x242d93('0x1626'),_0x34ed30);if(_0x535a69[_0x242d93('0x1e6a')][_0x242d93('0x26e8')]!==0x0)return _0x2958fb(),_0x32485b[_0x242d93('0x192f')](!![])[_0x242d93('0x2788')](function(){const _0xebf85b=_0x242d93;_0x1b2116['$broadcast'](_0xebf85b('0x13a3')),_0x5d4afa[_0xebf85b('0x2fa')](_0x5d4afa[_0xebf85b('0x204f')]()[_0xebf85b('0x1734')](angular[_0xebf85b('0x16b1')](_0xaeb5e9['body']))['clickOutsideToClose'](![])['escapeToClose'](![])[_0xebf85b('0x14e4')](_0x3d76b0[_0xebf85b('0x1b11')](_0xebf85b('0x25b4')))[_0xebf85b('0x1a95')](_0x3d76b0['instant']('TOOLBAR.USER_FORCE_LOGOUT',{'ip':_0x34ed30['ip']}))['ok']('OK'))['then'](function(){const _0x24976a=_0xebf85b;return _0x423ead['go'](_0x24976a('0x2764'));});})['catch'](function(_0x41904b){const _0x4c8cb5=_0x242d93;console[_0x4c8cb5('0x5e8')](_0x41904b);});}function _0x309d31(_0x474fe6){const _0x1dd198=_0x3cef90,_0x153968=_0x474fe6;if(_0x535a69['currentUser']['id']===_0x153968[_0x1dd198('0x1647')]){const _0x283646=_0x3d76b0[_0x1dd198('0x1b11')](_0x1dd198('0x4bd'),{'sender':_0x153968['sender']}),_0x57a6b2=_0x153968['description']?_0x3d76b0[_0x1dd198('0x1b11')](_0x1dd198('0x2092'),{'recipient':_0x153968['description']}):null;_0x27022f[_0x1dd198('0x790')]({'title':_0x57a6b2?_0x283646+'\x20'+_0x57a6b2:_0x283646,'msg':_0x153968[_0x1dd198('0x1c98')],'clickToClose':![],'timeout':![],'sound':_0x153968[_0x1dd198('0x12d2')],'html':!![]});}}_0x48abee[_0x3cef90('0x651')](_0x3cef90('0x26ac'),function(){const _0x90376b=_0x3cef90;_0x35a5fa[_0x90376b('0x277f')](_0x90376b('0x19a5')),_0x35a5fa[_0x90376b('0x277f')]('user:update'),_0x35a5fa['removeAllListeners'](_0x90376b('0x1f23')),_0x35a5fa[_0x90376b('0x277f')](_0x90376b('0x230f')),_0x35a5fa[_0x90376b('0x277f')](_0x90376b('0x454')),_0x35a5fa[_0x90376b('0x277f')](_0x90376b('0x4a2')),_0x35a5fa[_0x90376b('0x277f')](_0x90376b('0x11e0')),_0x35a5fa['removeAllListeners'](_0x90376b('0xad4')),_0x35a5fa['removeAllListeners'](_0x90376b('0x91')),_0x35a5fa['removeAllListeners']('user:forcelogout'),_0x35a5fa['removeAllListeners']('notification:send'),_0x54ab74();});}const _0x4540ed=_0x2304fd;_0x337cb0[_0x34e79e('0x2d9')]=['$translatePartialLoaderProvider'];function _0x337cb0(_0x2f8803){const _0x55d103=_0x34e79e;_0x2f8803[_0x55d103('0x15ae')](_0x55d103('0x9af'));}angular['module'](_0x34e79e('0xb3'),[])[_0x34e79e('0x1a22')](_0x337cb0)['controller']('ChangePasswordController',_0x2a76b6)['controller'](_0x34e79e('0x171a'),_0x3871b3)[_0x34e79e('0xb44')]('ToolbarController',_0x4540ed),_0x3b1115[_0x34e79e('0x2d9')]=['$scope','$translate','$q','Auth',_0x34e79e('0xd6f'),_0x34e79e('0x519'),_0x34e79e('0x88a'),_0x34e79e('0x130d')];function _0x3b1115(_0x492e7d,_0x3694c3,_0x1561c4,_0x49bdfd,_0x25f6ef,_0x24bcec,_0x5051ce,_0x368c42){const _0xd092ab=_0x34e79e,_0x12a2de=this;_0x12a2de['date']=_0x59f37a()()['format'](),_0x12a2de[_0xd092ab('0x9cb')]=_0x49bdfd[_0xd092ab('0x24cc')](),_0x12a2de[_0xd092ab('0x130d')]=_0x368c42,_0x12a2de[_0xd092ab('0x174e')]=0x0,_0x12a2de[_0xd092ab('0x8eb')]=0x0,_0x12a2de[_0xd092ab('0x20c7')]=_0x4a2df8,_0x12a2de[_0xd092ab('0x207b')]=_0xb83b0,_0x12a2de[_0xd092ab('0x29f')]=_0x1d6a15,_0x25f6ef['on'](_0xd092ab('0x1f23'),_0x12a2de['onMessageSave']),_0x25f6ef['on']('chatInternalMessage:update',_0x12a2de['onMessageUpdate']),_0x24bcec[_0xd092ab('0x208e')][_0xd092ab('0x1335')]({'fields':'FromId','ToId':_0x12a2de[_0xd092ab('0x9cb')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0xd092ab('0x954')})[_0xd092ab('0x1714')][_0xd092ab('0x2788')](function(_0x5bd49e){const _0x4e6252=_0xd092ab;return _0x5bd49e&&_0x5bd49e['count']&&(_0x12a2de[_0x4e6252('0x174e')]=_0x5bd49e[_0x4e6252('0x338')]),_0x24bcec['user'][_0x4e6252('0x22bf')]({'id':_0x12a2de['currentUser']['id']})[_0x4e6252('0x1714')];})[_0xd092ab('0x2788')](function(_0x22eee9){const _0x440c8a=_0xd092ab,_0x5b14be=[],_0x4476de=_0x22eee9[_0x440c8a('0x25df')];for(let _0x41212f=0x0;_0x41212f<_0x4476de['length'];_0x41212f++){_0x5b14be[_0x440c8a('0x13e3')](_0x24bcec[_0x440c8a('0x159a')][_0x440c8a('0x21d7')]({'id':_0x4476de[_0x41212f]['id']})[_0x440c8a('0x1714')]);}return _0x1561c4[_0x440c8a('0x1def')](_0x5b14be);})[_0xd092ab('0x2788')](function(_0x59ab9f){const _0x44a0c6=_0xd092ab;for(let _0x9098a=0x0;_0x9098a<_0x59ab9f[_0x44a0c6('0x2566')];_0x9098a++){_0x12a2de[_0x44a0c6('0x8eb')]+=_0x59ab9f[_0x9098a][_0x44a0c6('0x338')];}})[_0xd092ab('0x1cb5')](function(_0x416d0a){const _0x4e817c=_0xd092ab;console[_0x4e817c('0x5e8')](_0x416d0a);});function _0x1aabf9(_0x488429){const _0x296550=_0xd092ab,_0x3d6600={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x296550('0xb6')+_0x488429[_0x296550('0x25a8')]+'/avatar','body':_0x488429[_0x296550('0x945')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x5051ce[_0x296550('0x2fa')](_0x3694c3[_0x296550('0x1b11')](_0x296550('0xa2f')),_0x3d6600);}function _0x3caff8(_0xc3f209){const _0x556e92=_0xd092ab;_0x5051ce[_0x556e92('0x19b2')]()?_0x5051ce[_0x556e92('0x14d8')]()[_0x556e92('0x2788')](function(){_0x1aabf9(_0xc3f209);},function(_0xa056c4){const _0x1a5344=_0x556e92;console[_0x1a5344('0x5e8')]('Please\x20enable\x20browser\x20notifications!',_0xa056c4);}):console[_0x556e92('0x5e8')](_0x556e92('0x4bb'));}function _0x4a2df8(){const _0x5c5bb4=_0xd092ab;return _0x12a2de[_0x5c5bb4('0x9cb')]['role']==='admin'||_0x12a2de[_0x5c5bb4('0x9cb')][_0x5c5bb4('0xb34')]==='user'||_0x12a2de['currentUser']['role']==='agent'&&_0x12a2de['currentUser']['showWebBar']!==0x0;}function _0xb83b0(_0x8b13ed){const _0x41f2d7=_0xd092ab;_0x8b13ed[_0x41f2d7('0x253c')]===_0x12a2de['currentUser']['id']&&_0x8b13ed[_0x41f2d7('0x25a8')]!==_0x12a2de[_0x41f2d7('0x9cb')]['id']&&!_0x8b13ed[_0x41f2d7('0x18e8')]&&_0x8b13ed[_0x41f2d7('0x1a1e')]&&(_0x12a2de[_0x41f2d7('0x8eb')]++,_0x3caff8(_0x8b13ed)),_0x8b13ed['ToId']===_0x12a2de[_0x41f2d7('0x9cb')]['id']&&!_0x8b13ed[_0x41f2d7('0x1a1e')]&&(_0x12a2de['unreadTotalMessages']+=0x1,_0x3caff8(_0x8b13ed));}function _0x1d6a15(_0x34395c){const _0x481a4c=_0xd092ab;_0x34395c[_0x481a4c('0x253c')]===_0x12a2de[_0x481a4c('0x9cb')]['id']&&_0x34395c[_0x481a4c('0x18e8')]&&_0x12a2de['unreadTotalMessages']>0x0&&!_0x34395c[_0x481a4c('0x1a1e')]&&(_0x12a2de[_0x481a4c('0x174e')]-=0x1),_0x34395c['ToId']==_0x12a2de[_0x481a4c('0x9cb')]['id']&&_0x34395c[_0x481a4c('0x25a8')]!==_0x12a2de[_0x481a4c('0x9cb')]['id']&&_0x34395c[_0x481a4c('0x1a1e')]&&_0x34395c[_0x481a4c('0x18e8')]&&(_0x12a2de[_0x481a4c('0x8eb')]>0x0&&_0x12a2de[_0x481a4c('0x8eb')]--);}_0x492e7d[_0xd092ab('0x651')](_0xd092ab('0x26ac'),function(){const _0x186a84=_0xd092ab;_0x25f6ef['removeAllListeners'](_0x186a84('0x1f23')),_0x25f6ef[_0x186a84('0x277f')](_0x186a84('0x230f'));});}const _0x4ecb9d=_0x3b1115;_0x494674[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x446'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f'),_0x34e79e('0x2179'),'$q',_0x34e79e('0x16e3'),_0x34e79e('0x1a5c'),_0x34e79e('0x1ce0'),_0x34e79e('0x1b2')];function _0x494674(_0xff16fa,_0x25411a,_0x557437,_0x5f3b44,_0x2effe8,_0x1023d3,_0x2224ee,_0x39ae1e,_0x4df025,_0x10649e,_0x507dce,_0x4b4b7c){const _0x3a2e84=_0x34e79e,_0x325e93=this;_0x325e93['currentUser']=_0x2effe8['getCurrentUser'](),_0x325e93[_0x3a2e84('0x1e6a')]=undefined,_0x325e93[_0x3a2e84('0x1e42')]={'count':0x0,'rows':[]},_0x325e93[_0x3a2e84('0x1f54')]=_0x59f37a()(0x0)[_0x3a2e84('0x22b4')](_0x3a2e84('0xe8e')),_0x325e93[_0x3a2e84('0x541')]={},_0x325e93[_0x3a2e84('0x20c')]='',_0x325e93['disabled']=![],_0x325e93['init']=_0x4e9cb2,_0x325e93[_0x3a2e84('0x24b2')]=_0x29c6f4,_0x325e93[_0x3a2e84('0xdc5')]=_0x1de57c,_0x325e93['onMessageSave']=_0x2b7403,_0x325e93[_0x3a2e84('0x29f')]=_0x441eff,_0x325e93[_0x3a2e84('0x1d13')]=_0x218a4a,_0x325e93[_0x3a2e84('0x143e')]=_0x42f033,_0x325e93[_0x3a2e84('0x935')]=_0x3cb6fb,_0x325e93[_0x3a2e84('0x589')]=_0x1f89f9,_0x1023d3['on']('chatInternalMessage:save',_0x325e93['onMessageSave']),_0x1023d3['on']('chatInternalMessage:update',_0x325e93[_0x3a2e84('0x29f')]),_0x1023d3['on'](_0x3a2e84('0x1cb6'),_0x325e93[_0x3a2e84('0x1d13')]),_0x2224ee(_0x3a2e84('0x96a'))['onClose'](function(){const _0x33a809=_0x3a2e84;_0x325e93[_0x33a809('0x1e6a')]=undefined;}),_0x557437['chatInternalMessage'][_0x3a2e84('0x1335')]({'fields':'FromId','ToId':_0x325e93['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x3a2e84('0x954')})[_0x3a2e84('0x1714')][_0x3a2e84('0x2788')](function(_0x41be40){const _0x11501e=_0x3a2e84;_0x325e93['unreadMessage']=_0x283545()['countBy'](_0x41be40[_0x11501e('0x25df')],_0x11501e('0x25a8'));})['catch'](function(){}),_0x557437['chatInternalMessage'][_0x3a2e84('0x1b18')]()[_0x3a2e84('0x1714')][_0x3a2e84('0x2788')](function(_0x5d6302){const _0x5adfc6=_0x3a2e84;_0x325e93[_0x5adfc6('0x1e42')]=_0x5d6302;})['catch'](function(_0x3065b9){const _0x220963=_0x3a2e84;console[_0x220963('0x5e8')](_0x3065b9);});function _0x4e9cb2(_0x58d3a){_0x325e93['license']=_0x58d3a;}function _0x2b7403(_0xb349ee){const _0xc8d728=_0x3a2e84;if(_0xb349ee[_0xc8d728('0x253c')]===_0x325e93[_0xc8d728('0x9cb')]['id']&&!_0xb349ee[_0xc8d728('0x1a1e')]){_0x325e93[_0xc8d728('0x1e6a')]&&_0x325e93[_0xc8d728('0x1e6a')]['id']===_0xb349ee['FromId']?(_0x325e93[_0xc8d728('0x1e6a')][_0xc8d728('0xf9b')][_0xc8d728('0x25df')][_0xc8d728('0x13e3')](_0xb349ee),_0x5397ec(0x0),_0x557437[_0xc8d728('0x208e')][_0xc8d728('0x2740')]({'id':_0xb349ee['id'],'read':!![]})):_0x325e93[_0xc8d728('0x541')][_0xb349ee['FromId']]=_0x325e93[_0xc8d728('0x541')][_0xb349ee[_0xc8d728('0x25a8')]]?_0x325e93[_0xc8d728('0x541')][_0xb349ee[_0xc8d728('0x25a8')]]+0x1:0x1;const _0x1674f0=_0x283545()[_0xc8d728('0x20e8')](_0x325e93['users'][_0xc8d728('0x25df')],{'id':_0xb349ee[_0xc8d728('0x25a8')]});_0x1674f0&&(_0x1674f0[_0xc8d728('0xad7')]=_0xb349ee[_0xc8d728('0x172')],_0x1674f0[_0xc8d728('0x136d')]=_0xb349ee);}}function _0x441eff(_0x315895){const _0x12529f=_0x3a2e84;if((_0x315895['FromId']===_0x325e93[_0x12529f('0x9cb')]['id']||_0x315895[_0x12529f('0x253c')]===_0x325e93[_0x12529f('0x9cb')]['id'])&&!_0x315895[_0x12529f('0x1a1e')]){if(_0x325e93[_0x12529f('0x1e6a')]){const _0x28267c=_0x283545()['find'](_0x325e93[_0x12529f('0x1e6a')][_0x12529f('0xf9b')][_0x12529f('0x25df')],{'id':_0x315895['id']});_0x28267c&&_0x283545()[_0x12529f('0x2503')](_0x28267c,_0x315895);}const _0x1ea103=_0x283545()['find'](_0x325e93[_0x12529f('0x1e42')][_0x12529f('0x25df')],{'id':_0x325e93['currentUser']['id']===_0x315895[_0x12529f('0x25a8')]?_0x315895[_0x12529f('0x253c')]:_0x315895[_0x12529f('0x25a8')]});_0x1ea103&&_0x1ea103['lastMessage']&&_0x283545()[_0x12529f('0x2503')](_0x1ea103[_0x12529f('0x136d')],_0x315895),_0x315895[_0x12529f('0x253c')]===_0x325e93[_0x12529f('0x9cb')]['id']&&(_0x315895[_0x12529f('0x18e8')]&&_0x325e93['unreadMessage'][_0x315895['FromId']]>0x0&&(_0x325e93[_0x12529f('0x541')][_0x315895[_0x12529f('0x25a8')]]-=0x1));}}function _0x218a4a(_0x5ecdee){const _0x3a23dd=_0x3a2e84,_0x105a8d=_0x283545()[_0x3a23dd('0x20e8')](_0x325e93[_0x3a23dd('0x1e42')]['rows'],{'id':_0x5ecdee['id']});_0x105a8d&&(!_0x283545()[_0x3a23dd('0x1015')](_0x5ecdee[_0x3a23dd('0x7c2')])&&_0x105a8d['online']!==_0x5ecdee[_0x3a23dd('0x7c2')]&&(_0x105a8d[_0x3a23dd('0x7c2')]=_0x5ecdee[_0x3a23dd('0x7c2')]),!_0x283545()['isNil'](_0x5ecdee[_0x3a23dd('0x24a7')])&&_0x105a8d['allowmessenger']!==_0x5ecdee[_0x3a23dd('0x24a7')]&&(_0x105a8d[_0x3a23dd('0x24a7')]=_0x5ecdee['allowmessenger']));}function _0x29c6f4(_0x543d26){const _0x18c270=_0x3a2e84;if(_0x543d26){if(!_0x543d26[_0x18c270('0x24a7')]&&_0x543d26['role']==='agent'){_0x25411a[_0x18c270('0x14b4')]({'title':_0x10649e[_0x18c270('0x1b11')](_0x18c270('0x163b')),'msg':_0x10649e[_0x18c270('0x1b11')](_0x18c270('0x328'))}),_0x325e93[_0x18c270('0x1e6a')]=undefined;return;}_0x325e93['user']=_0x543d26,_0x325e93[_0x18c270('0x20c')]='',_0x557437[_0x18c270('0x208e')][_0x18c270('0x1335')]({'sort':'createdAt','FromId':_0x325e93[_0x18c270('0x9cb')]['id']+','+_0x543d26['id'],'ToId':_0x325e93[_0x18c270('0x9cb')]['id']+','+_0x543d26['id'],'ChatGroupId':'null'})[_0x18c270('0x1714')]['then'](function(_0x5b56fd){const _0x5c1dab=_0x18c270;if(_0x5b56fd&&_0x5b56fd[_0x5c1dab('0x25df')]){_0x325e93[_0x5c1dab('0x1e6a')][_0x5c1dab('0xf9b')]=_0x5b56fd;for(let _0x5c268a=0x0;_0x5c268a<_0x325e93[_0x5c1dab('0x1e6a')]['messages'][_0x5c1dab('0x25df')][_0x5c1dab('0x2566')];_0x5c268a+=0x1){_0x325e93[_0x5c1dab('0x1e6a')][_0x5c1dab('0xf9b')][_0x5c1dab('0x25df')][_0x5c268a]['read']===![]&&_0x325e93[_0x5c1dab('0x1e6a')][_0x5c1dab('0xf9b')][_0x5c1dab('0x25df')][_0x5c268a][_0x5c1dab('0x253c')]===_0x325e93['currentUser']['id']&&_0x557437['chatInternalMessage'][_0x5c1dab('0x2740')]({'id':_0x325e93[_0x5c1dab('0x1e6a')]['messages'][_0x5c1dab('0x25df')][_0x5c268a]['id'],'read':!![]});}}})['finally'](function(){_0x5397ec(0x0);});}else _0x325e93['user']=undefined;}function _0x1de57c(){const _0x11f557=_0x3a2e84;_0x325e93[_0x11f557('0x1112')]=!![];if(_0x325e93['replyMessage']===''){_0x325e93['disabled']=![];return;}const _0x43e927={'FromId':_0x325e93['currentUser']['id'],'ToId':_0x325e93['user']['id'],'body':_0x325e93['replyMessage'],'read':![]};_0x325e93[_0x11f557('0x20c')]='',_0x557437[_0x11f557('0x208e')][_0x11f557('0xbd0')](_0x43e927)['$promise'][_0x11f557('0x2788')](function(_0x54d880){const _0x4a8a93=_0x11f557;_0x325e93[_0x4a8a93('0x1e6a')][_0x4a8a93('0xf9b')][_0x4a8a93('0x25df')][_0x4a8a93('0x13e3')](_0x54d880),_0x325e93[_0x4a8a93('0x1e6a')]['lastMessageAt']=_0x54d880[_0x4a8a93('0x172')],_0x325e93[_0x4a8a93('0x1e6a')]['lastMessage']=_0x54d880,_0x5397ec(0x190);})[_0x11f557('0x1cb5')](function(){})[_0x11f557('0x1ed8')](function(){const _0x3b5e9f=_0x11f557;_0x325e93[_0x3b5e9f('0x1112')]=![];});}function _0x5397ec(_0xc567dd){const _0x31b7cc=_0x3a2e84,_0x16aae5=angular['element'](_0x31b7cc('0x27e6'));_0x5f3b44(function(){const _0xad5730=_0x31b7cc;_0x16aae5[_0xad5730('0x314')]({'scrollTop':_0x16aae5[0x0][_0xad5730('0x76d')]},_0xc567dd);},0x0);}function _0x2d2894(_0x3521ec){const _0x333251=_0x3a2e84;return!_0x283545()[_0x333251('0x1015')](_0x3521ec)?_0x3521ec[_0x333251('0x10a4')](/[^\w.+#*-]+/g,''):'';}function _0x42f033(_0x44ab90){const _0x248cfb=_0x3a2e84;_0x507dce['$broadcast'](_0x248cfb('0xa1c'),{'target':_0x2d2894(_0x44ab90)});}function _0x3cb6fb(_0x31ccfb){const _0x202773=_0x3a2e84;return _0x48701f('http://127.0.0.1:'+(_0x325e93['user'][_0x202773('0x1d11')]||_0x202773('0x1bba'))+_0x202773('0x66c')+_0x2d2894(_0x31ccfb));}function _0x1f89f9(_0x200b26){const _0x387898=_0x3a2e84;return _0x48701f(_0x387898('0x7ba')+(_0x325e93['user'][_0x387898('0x1d11')]||_0x387898('0x1bba'))+_0x387898('0xae5')+_0x2d2894(_0x200b26));}function _0x48701f(_0x268ed5){const _0x2dda0d=_0x3a2e84;return _0x4b4b7c[_0x2dda0d('0x1335')](_0x268ed5)[_0x2dda0d('0x173b')](function(){const _0x2f6c29=_0x2dda0d;_0x25411a[_0x2f6c29('0x173b')]({'title':'Successful\x20call','msg':_0x2f6c29('0x25eb')});})['error'](function(){const _0x126dcf=_0x2dda0d;_0x25411a['error']({'title':_0x126dcf('0xda5'),'msg':_0x10649e['instant'](_0x126dcf('0xf2'))});});}_0xff16fa[_0x3a2e84('0x651')](_0x3a2e84('0x26ac'),function(){const _0x3df554=_0x3a2e84;_0x1023d3['removeAllListeners'](_0x3df554('0x1f23')),_0x1023d3[_0x3df554('0x277f')](_0x3df554('0x230f')),_0x1023d3[_0x3df554('0x277f')](_0x3df554('0x1cb6'));});}const _0x5929f3=_0x494674;_0x199550[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x20ce'),_0x34e79e('0x1bf0')];function _0x199550(_0x27b324,_0x21ce49,_0xa9b31f,_0x480ae5,_0x357621,_0x5e19ab,_0xacf726,_0x16cb24,_0xfb984){const _0x16f339=_0x34e79e,_0x4d7b0b=this;_0x4d7b0b[_0x16f339('0x25be')]=[],_0x4d7b0b[_0x16f339('0x14e4')]='QUICKPANEL.EDIT_CHATGROUP',_0x4d7b0b[_0x16f339('0x20ce')]=angular['copy'](_0x16cb24),_0x4d7b0b[_0x16f339('0x9cb')]=_0xacf726['getCurrentUser'](),_0x4d7b0b[_0x16f339('0x1bf0')]=_0xfb984,_0x4d7b0b['newChatGroup']=!![];!_0x4d7b0b['group']&&(_0x4d7b0b[_0x16f339('0x20ce')]={'write':!![],'members':[]},_0x4d7b0b['title']='QUICKPANEL.NEW_CHATGROUP');_0x4d7b0b[_0x16f339('0xd24')]=_0x12bfc6,_0x4d7b0b[_0x16f339('0xca7')]=_0x49cade,_0x4d7b0b[_0x16f339('0x1ba9')]=_0x32bfdd;function _0xcdebd6(_0x4303cf){const _0x4dfece=_0x16f339,_0x2ef97d=_0x4303cf[_0x4dfece('0xc2e')]();return function _0x3cb1e0(_0x3d633f){const _0xdb1c69=_0x4dfece,_0x1408c3=_0x3d633f[_0xdb1c69('0x1a8d')][_0xdb1c69('0xc2e')]();return _0x1408c3[_0xdb1c69('0x821')](_0x2ef97d)!=-0x1;};}function _0x32bfdd(_0x2bd87d){const _0x58d2f3=_0x16f339;return _0x2bd87d?_0x4d7b0b[_0x58d2f3('0x1bf0')]['rows'][_0x58d2f3('0x916')](_0xcdebd6(_0x2bd87d)):[];}function _0x12bfc6(){const _0x2377fd=_0x16f339;let _0x454703;return _0x4d7b0b['errors']=[],_0x5e19ab[_0x2377fd('0x159a')][_0x2377fd('0xbd0')]({'name':_0x4d7b0b[_0x2377fd('0x20ce')][_0x2377fd('0x1a8d')],'write':_0x4d7b0b[_0x2377fd('0x20ce')][_0x2377fd('0x204e')]})[_0x2377fd('0x1714')][_0x2377fd('0x2788')](function(_0x262d2d){const _0x55c7f9=_0x2377fd,_0x59fb4e=_0x283545()['map'](_0x4d7b0b[_0x55c7f9('0x20ce')]['members'],'id');return _0x59fb4e[_0x55c7f9('0xc51')](_0x4d7b0b[_0x55c7f9('0x9cb')]['id']),_0x454703=_0x262d2d,_0x5e19ab['chatGroup'][_0x55c7f9('0x1455')]({'id':_0x454703['id'],'ids':_0x59fb4e})['$promise'];})[_0x2377fd('0x2788')](function(){const _0x234f2b=_0x2377fd;_0x357621[_0x234f2b('0x173b')]({'title':_0x234f2b('0x1467'),'msg':_0x454703[_0x234f2b('0x1a8d')]+'\x20has\x20been\x20saved!'}),_0x49cade(_0x454703);})[_0x2377fd('0x1cb5')](function(_0xa7569d){const _0x1cd6f1=_0x2377fd;_0x357621['error']({'title':_0xa7569d[_0x1cd6f1('0x1b51')]?_0x1cd6f1('0x15d1')+_0xa7569d['status']+'\x20-\x20'+_0xa7569d['statusText']:_0x1cd6f1('0x2604'),'msg':_0xa7569d['data']?JSON['stringify'](_0xa7569d[_0x1cd6f1('0x11fc')][_0x1cd6f1('0x15e2')]):_0xa7569d[_0x1cd6f1('0x17df')]()});});}function _0x49cade(_0x394761){const _0x2e5e18=_0x16f339;_0x480ae5[_0x2e5e18('0x19d')](_0x394761);}}const _0x40bb58=_0x199550,_0x4dd98c=_0x18dd13['p']+_0x34e79e('0xdb2'),_0x407528=_0x18dd13['p']+_0x34e79e('0x1951');_0x796b9c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x2179'),'$q','Auth',_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty'];function _0x796b9c(_0x443437,_0x1dfc25,_0x3c9024,_0x1c6bc5,_0x3dbd2a,_0x58d4ec,_0xf49c25,_0x35b8ac,_0x22306e,_0x4e73ca){const _0x278a49=_0x34e79e,_0x2b7eac=this;_0x2b7eac['currentUser']=_0xf49c25[_0x278a49('0x24cc')](),_0x2b7eac[_0x278a49('0x1bc2')]={},_0x2b7eac[_0x278a49('0x1cf6')]={},_0x2b7eac['participants'],_0x2b7eac['group'],_0x2b7eac[_0x278a49('0x24eb')]=_0x23796b,_0x2b7eac['back']=_0x4604dc,_0x2b7eac['addGroup']=_0x5bd324,_0x2b7eac[_0x278a49('0x1c87')]=_0x44122d,_0x2b7eac['groupsToArray']=_0x44e031,_0x2b7eac[_0x278a49('0x1b32')]=_0x3af20e,_0x2b7eac[_0x278a49('0x24b2')]=_0x33d5a4,_0x2b7eac[_0x278a49('0xdc5')]=_0x31600b,_0x22306e['on'](_0x278a49('0x1f23'),_0x5cc9e3),_0x22306e['on'](_0x278a49('0x230f'),_0xb075ad),_0x22306e['on'](_0x278a49('0x26a0'),_0x2c5205),_0x3dbd2a(_0x278a49('0x96a'))[_0x278a49('0x1fe0')](_0x4604dc);function _0x2c5205(_0x5e01dd){const _0x2e99df=_0x278a49;_0x2b7eac[_0x2e99df('0x1cf6')][_0x5e01dd['id']]&&delete _0x2b7eac[_0x2e99df('0x1cf6')][_0x5e01dd['id']];}function _0xb075ad(_0x247419){const _0x4f79d2=_0x278a49;_0x247419[_0x4f79d2('0x253c')]==_0x2b7eac[_0x4f79d2('0x9cb')]['id']&&_0x247419['FromId']!==_0x2b7eac[_0x4f79d2('0x9cb')]['id']&&_0x247419[_0x4f79d2('0x1a1e')]&&_0x247419[_0x4f79d2('0x18e8')]&&(_0x2b7eac[_0x4f79d2('0x1cf6')][_0x247419[_0x4f79d2('0x1a1e')]][_0x4f79d2('0x1bc2')]>0x0&&_0x2b7eac[_0x4f79d2('0x1cf6')][_0x247419[_0x4f79d2('0x1a1e')]][_0x4f79d2('0x1bc2')]--,_0x2b7eac[_0x4f79d2('0x20ce')][_0x4f79d2('0xf9b')][_0x247419['id']]&&(_0x2b7eac[_0x4f79d2('0x20ce')][_0x4f79d2('0xf9b')][_0x247419['id']][_0x4f79d2('0x18e8')]=!![]));}function _0x5cc9e3(_0x3c7713){const _0x109158=_0x278a49;if(!_0x2b7eac[_0x109158('0x20ce')]&&_0x3c7713[_0x109158('0x253c')]===_0x2b7eac[_0x109158('0x9cb')]['id']&&_0x3c7713[_0x109158('0x25a8')]!==_0x2b7eac[_0x109158('0x9cb')]['id']&&!_0x3c7713['read']&&_0x3c7713[_0x109158('0x1a1e')]){const _0x3f94c4=_0x2b7eac[_0x109158('0x1cf6')][_0x3c7713[_0x109158('0x1a1e')]];if(_0x3f94c4)!_0x3f94c4[_0x109158('0x1bc2')]&&(_0x3f94c4[_0x109158('0x1bc2')]=0x0),_0x3f94c4['unreadGroupMessages']++;else return _0x35b8ac['chatGroup'][_0x109158('0x1335')]({'id':_0x3c7713[_0x109158('0x1a1e')]})[_0x109158('0x1714')][_0x109158('0x2788')](function(_0x5a593d){const _0x488e6d=_0x109158;_0x5a593d[_0x488e6d('0x1bc2')]=0x1,_0x2b7eac[_0x488e6d('0x1cf6')][_0x5a593d['id']]=_0x5a593d;});}_0x2b7eac[_0x109158('0x20ce')]&&_0x3c7713[_0x109158('0x1a1e')]===_0x2b7eac[_0x109158('0x20ce')]['id']&&_0x3c7713[_0x109158('0x253c')]===_0x2b7eac[_0x109158('0x9cb')]['id']&&_0x35b8ac['chatInternalMessage'][_0x109158('0x2740')]({'id':_0x3c7713['id'],'read':!![]})['$promise'][_0x109158('0x2788')](function(){_0x17e38f(_0x3c7713);});}function _0x23796b(_0x127716){const _0x3de01a=_0x278a49;return _0x2b7eac[_0x3de01a('0x130d')]=_0x127716,_0x35b8ac['user']['getGroups']({'id':_0x2b7eac[_0x3de01a('0x9cb')]['id']})[_0x3de01a('0x1714')][_0x3de01a('0x2788')](function(_0x5d9d16){const _0x391f8f=_0x3de01a,_0xff7a44=[];for(let _0x51ff38=0x0;_0x51ff38<_0x5d9d16[_0x391f8f('0x25df')][_0x391f8f('0x2566')];_0x51ff38++){_0x5d9d16[_0x391f8f('0x25df')][_0x51ff38][_0x391f8f('0x1bc2')]=0x0,_0x2b7eac[_0x391f8f('0x1cf6')][_0x5d9d16['rows'][_0x51ff38]['id']]=_0x5d9d16[_0x391f8f('0x25df')][_0x51ff38],_0xff7a44['push'](_0x35b8ac[_0x391f8f('0x159a')]['getUnread']({'id':_0x5d9d16[_0x391f8f('0x25df')][_0x51ff38]['id']})[_0x391f8f('0x1714')]);}return _0x58d4ec[_0x391f8f('0x1def')](_0xff7a44);})['then'](function(_0x275cb8){const _0x309bd8=_0x3de01a;for(let _0x954691=0x0;_0x954691<_0x275cb8[_0x309bd8('0x2566')];_0x954691++){_0x2b7eac[_0x309bd8('0x1cf6')][_0x275cb8[_0x954691]['id']][_0x309bd8('0x1bc2')]+=_0x275cb8[_0x954691][_0x309bd8('0x338')];}})[_0x3de01a('0x1cb5')](function(_0x5a5d25){const _0xebc467=_0x3de01a;console[_0xebc467('0x5e8')](_0x5a5d25);});}function _0x44e031(){const _0x185cf9=_0x278a49;return _0x283545()[_0x185cf9('0xc5')](_0x2b7eac[_0x185cf9('0x1cf6')]);}function _0x3af20e(_0x12f7bd,_0x57839e){const _0x36fc1d=_0x278a49;_0x1c6bc5[_0x36fc1d('0x2fa')]({'controller':_0x36fc1d('0xfdd'),'controllerAs':'vm','templateUrl':_0x407528,'parent':angular[_0x36fc1d('0x16b1')](_0x1dfc25[_0x36fc1d('0x945')]),'targetEvent':_0x12f7bd,'clickOutsideToClose':!![],'locals':{'message':_0x57839e},'resolve':{'data':function(){const _0x490f7c=_0x36fc1d,_0xb13b21={'messages':[]};return _0x35b8ac[_0x490f7c('0x208e')][_0x490f7c('0x1335')]({'ChatInternalMessageId':_0x57839e['id']})['$promise'][_0x490f7c('0x2788')](function(_0x1cde27){const _0x1fabf8=_0x490f7c,_0x3cfc95=[];_0xb13b21['messages']=_0x1cde27[_0x1fabf8('0x25df')],_0xb13b21[_0x1fabf8('0xf9b')][_0x1fabf8('0xc51')](_0x57839e);for(let _0x3d6677=0x0;_0x3d6677<_0xb13b21['messages'][_0x1fabf8('0x2566')];_0x3d6677++){_0x3cfc95[_0x1fabf8('0x13e3')](_0x35b8ac[_0x1fabf8('0x1e6a')][_0x1fabf8('0x1335')]({'id':_0xb13b21['messages'][_0x3d6677][_0x1fabf8('0x253c')],'fields':_0x1fabf8('0x1ad1')})[_0x1fabf8('0x1714')]);}return _0x58d4ec['all'](_0x3cfc95);})[_0x490f7c('0x2788')](function(_0x208ecd){return _0xb13b21['users']=_0x208ecd,_0xb13b21;})[_0x490f7c('0x1cb5')](function(_0x50984e){const _0x5ce337=_0x490f7c;_0x50984e&&console[_0x5ce337('0x5e8')](_0x50984e);});}}})[_0x36fc1d('0x2788')](function(){})[_0x36fc1d('0x1cb5')](function(_0x148cff){const _0x127c65=_0x36fc1d;_0x148cff&&console['error'](_0x148cff[_0x127c65('0x15e2')]);});}function _0x31600b(){const _0x5a6be7=_0x278a49;if(!_0x2b7eac[_0x5a6be7('0x20c')])return;const _0x3c1608={'id':_0x2b7eac[_0x5a6be7('0x20ce')]['id'],'FromId':_0x2b7eac[_0x5a6be7('0x9cb')]['id'],'ToId':_0x2b7eac['currentUser']['id'],'body':_0x2b7eac[_0x5a6be7('0x20c')],'read':!![]},_0x2616fd=[];_0x2b7eac[_0x5a6be7('0x20c')]='',_0x35b8ac['chatGroup'][_0x5a6be7('0xa3a')](_0x3c1608)[_0x5a6be7('0x1714')][_0x5a6be7('0x2788')](function(_0x5742d4){const _0x3a0653=_0x5a6be7;_0x3c1608[_0x3a0653('0x18e8')]=![],_0x3c1608[_0x3a0653('0x2587')]=_0x5742d4['id'];for(let _0x119f93=0x0;_0x119f93<_0x2b7eac[_0x3a0653('0x20ce')][_0x3a0653('0x1bf0')][_0x3a0653('0x2566')];_0x119f93++){_0x2b7eac[_0x3a0653('0x20ce')][_0x3a0653('0x1bf0')][_0x119f93]['id']!==_0x2b7eac[_0x3a0653('0x9cb')]['id']&&(_0x3c1608[_0x3a0653('0x253c')]=_0x2b7eac['group'][_0x3a0653('0x1bf0')][_0x119f93]['id'],_0x2616fd[_0x3a0653('0x13e3')](_0x35b8ac['chatGroup'][_0x3a0653('0xa3a')](angular[_0x3a0653('0x2669')](_0x3c1608))[_0x3a0653('0x1714')]));}return _0x58d4ec[_0x3a0653('0x1def')](_0x2616fd);})['catch'](function(_0x242ca7){const _0x5c3caa=_0x5a6be7;console[_0x5c3caa('0x10df')](_0x242ca7);});}function _0x17e38f(_0x28cc72){const _0x37bba0=_0x278a49;_0x2b7eac[_0x37bba0('0x20ce')]['messages'][_0x28cc72['id']]=_0x28cc72,_0x2b86da(0x190);}function _0x4604dc(){const _0x444e3e=_0x278a49;delete _0x2b7eac[_0x444e3e('0x20ce')];}function _0x2b86da(_0x39b162){const _0x491ed7=_0x278a49,_0xda2ded=angular['element'](_0x491ed7('0x11bf'));_0x3c9024(function(){const _0x22c529=_0x491ed7;_0xda2ded[_0x22c529('0x314')]({'scrollTop':_0xda2ded[0x0]['scrollHeight']},_0x39b162);},0x0);}function _0x33d5a4(_0x28d02d){const _0x2f7fbc=_0x278a49;_0x2b7eac[_0x2f7fbc('0x20ce')]={'id':_0x28d02d['id'],'write':_0x28d02d['write'],'messages':{}},_0x35b8ac[_0x2f7fbc('0x159a')][_0x2f7fbc('0xe75')]({'id':_0x28d02d['id'],'fields':_0x2f7fbc('0x10fe')})['$promise'][_0x2f7fbc('0x2788')](function(_0x1a37ea){const _0x26ab22=_0x2f7fbc;return _0x2b7eac[_0x26ab22('0x20ce')]['membersByKeys']=_0x283545()['keyBy'](_0x1a37ea[_0x26ab22('0x25df')],'id'),_0x2b7eac['group'][_0x26ab22('0x1bf0')]=_0x283545()[_0x26ab22('0x432')](_0x1a37ea[_0x26ab22('0x25df')],[{'id':_0x2b7eac[_0x26ab22('0x9cb')]['id']}],'id'),_0x2b7eac[_0x26ab22('0x15f2')]=_0x283545()[_0x26ab22('0x155d')](_0x2b7eac[_0x26ab22('0x20ce')][_0x26ab22('0x1bf0')],'fullname')['join'](',\x20'),_0x35b8ac[_0x26ab22('0x159a')][_0x26ab22('0x241f')]({'id':_0x28d02d['id'],'nolimit':!![]})['$promise'];})[_0x2f7fbc('0x2788')](function(_0x5ce675){const _0x4d0ce5=_0x2f7fbc,_0x3b2af6=[];let _0x32c6a7;for(let _0x21dd88=0x0;_0x21dd88<_0x5ce675[_0x4d0ce5('0x338')];_0x21dd88++){_0x5ce675[_0x4d0ce5('0x25df')][_0x21dd88][_0x4d0ce5('0x253c')]===_0x2b7eac[_0x4d0ce5('0x9cb')]['id']&&(_0x32c6a7=_0x5ce675[_0x4d0ce5('0x25df')][_0x21dd88],_0x2b7eac['group'][_0x4d0ce5('0xf9b')][_0x32c6a7['id']]=_0x32c6a7,_0x5ce675[_0x4d0ce5('0x25df')][_0x21dd88][_0x4d0ce5('0x253c')]==_0x2b7eac['currentUser']['id']&&_0x5ce675['rows'][_0x21dd88][_0x4d0ce5('0x25a8')]!==_0x2b7eac[_0x4d0ce5('0x9cb')]['id']&&!_0x32c6a7[_0x4d0ce5('0x18e8')]&&_0x3b2af6[_0x4d0ce5('0x13e3')](_0x35b8ac[_0x4d0ce5('0x208e')][_0x4d0ce5('0x2740')]({'id':_0x32c6a7['id'],'read':!![]})));}return _0x58d4ec[_0x4d0ce5('0x1def')](_0x3b2af6);})[_0x2f7fbc('0x2788')](function(){_0x2b86da(0x190);})[_0x2f7fbc('0x1cb5')](function(_0xb9d498){const _0x1e3709=_0x2f7fbc;console['error'](_0xb9d498[_0x1e3709('0x15e2')]);});}function _0x44122d(_0x1e4b0c,_0x2d1077){const _0x3bf822=_0x278a49,_0x80d1d1=_0x1c6bc5[_0x3bf822('0x112e')]()[_0x3bf822('0x14e4')](_0x3bf822('0x437'))[_0x3bf822('0x93e')]('Group\x20'+_0x1e4b0c[_0x3bf822('0x1a8d')]+_0x3bf822('0x229e')+_0x3bf822('0x27c7'))['ariaLabel']('delete\x20Group')[_0x3bf822('0x24d0')](_0x2d1077)['ok']('OK')[_0x3bf822('0x1801')]('CANCEL');_0x1c6bc5['show'](_0x80d1d1)[_0x3bf822('0x2788')](function(){const _0xd17612=_0x3bf822;return _0x35b8ac[_0xd17612('0x159a')][_0xd17612('0x17c4')]({'id':_0x1e4b0c['id']})[_0xd17612('0x1714')];})[_0x3bf822('0x2788')](function(){const _0x5db311=_0x3bf822;delete _0x2b7eac['groups'][_0x1e4b0c['id']],_0x4e73ca[_0x5db311('0x173b')]({'title':'Group\x20properly\x20deleted!','msg':_0x1e4b0c[_0x5db311('0x1a8d')]+_0x5db311('0x14d4')});})[_0x3bf822('0x1cb5')](function(_0x7c1d4b){const _0x386dcf=_0x3bf822;_0x7c1d4b&&_0x4e73ca['error']({'title':_0x7c1d4b[_0x386dcf('0x1b51')]?_0x386dcf('0x15d1')+_0x7c1d4b[_0x386dcf('0x1b51')]+'\x20-\x20'+_0x7c1d4b[_0x386dcf('0x22ce')]:_0x386dcf('0xf7e'),'msg':_0x7c1d4b[_0x386dcf('0x11fc')]?JSON['stringify'](_0x7c1d4b[_0x386dcf('0x11fc')]['message']):_0x7c1d4b['toString']()});});}function _0x5bd324(_0x1eab52,_0x369b39){const _0x54793c=_0x278a49;_0x1c6bc5['show']({'controller':_0x54793c('0x62a'),'controllerAs':'vm','templateUrl':_0x4dd98c,'parent':angular['element'](_0x1dfc25['body']),'targetEvent':_0x369b39,'clickOutsideToClose':!![],'locals':{'group':_0x1eab52,'me':_0x2b7eac[_0x54793c('0x9cb')],'license':null,'setting':null},'resolve':{'members':function(){const _0x4b6546=_0x54793c;return _0xf49c25['hasRole']('admin')?_0x35b8ac[_0x4b6546('0x1e6a')][_0x4b6546('0x1335')]({'role':_0x4b6546('0x188b')})['$promise']:_0x35b8ac[_0x4b6546('0x63c')][_0x4b6546('0xa1')]({'id':_0xf49c25[_0x4b6546('0x24cc')]()['userProfileId'],'section':_0x4b6546('0x1f72'),'role':_0x4b6546('0x188b')})[_0x4b6546('0x1714')];}}})[_0x54793c('0x2788')](function(_0x6ad1f){const _0x1bcdad=_0x54793c;_0x6ad1f&&(_0x2b7eac[_0x1bcdad('0x1cf6')][_0x6ad1f['id']]=_0x6ad1f);})[_0x54793c('0x1cb5')](function(_0x417e6a){const _0x26922e=_0x54793c;_0x417e6a&&console[_0x26922e('0x5e8')](_0x417e6a[_0x26922e('0x15e2')]);});}_0x443437[_0x278a49('0x651')](_0x278a49('0x26ac'),function(){const _0x5e2538=_0x278a49;_0x22306e[_0x5e2538('0x277f')](_0x5e2538('0x1f23')),_0x22306e[_0x5e2538('0x277f')](_0x5e2538('0x230f')),_0x22306e[_0x5e2538('0x277f')](_0x5e2538('0x26a0'));});}const _0x393fa2=_0x796b9c;_0x5bb93d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x11fc')];function _0x5bb93d(_0x5d0312,_0xb7ac25,_0x1f567d,_0xac8d49,_0x8fd987,_0x34f8f1,_0x2b0884,_0x1d93d6){const _0x5404cb=_0x34e79e,_0x16ccb2=this;_0x16ccb2[_0x5404cb('0x11fc')]=_0x1d93d6,_0x16ccb2[_0x5404cb('0x14e4')]=_0x5404cb('0x8d8');function _0x4f3d1c(){_0xac8d49['hide']();}_0x16ccb2[_0x5404cb('0xca7')]=_0x4f3d1c;}const _0x3b23eb=_0x5bb93d;_0x4d3137[_0x34e79e('0x2d9')]=[_0x34e79e('0x1b4b')];function _0x4d3137(_0x3d8461){const _0x8be30c=_0x34e79e;_0x3d8461[_0x8be30c('0x15ae')](_0x8be30c('0x14d'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x18cd'),[])['config'](_0x4d3137)['controller'](_0x34e79e('0x1bd0'),_0x4ecb9d)[_0x34e79e('0xb44')]('ChatInternalController',_0x5929f3)[_0x34e79e('0xb44')]('CreateOrEditChatGroupDialogController',_0x40bb58)[_0x34e79e('0xb44')](_0x34e79e('0x1e8a'),_0x393fa2)[_0x34e79e('0xb44')](_0x34e79e('0xfdd'),_0x3b23eb),_0x1916c6[_0x34e79e('0x2d9')]=[_0x34e79e('0x1b04'),_0x34e79e('0x1bfe')];function _0x1916c6(_0x4e9d23,_0x253801){const _0x238877=_0x34e79e,_0x5a87ca=this;function _0x17de3c(){const _0x4a8db6=a0_0x14e7;_0x253801[_0x4a8db6('0x27ad')](_0x4a8db6('0xffe')+_0x5a87ca['currentUser']['id'],!![]);}_0x5a87ca[_0x238877('0x9cb')]=_0x4e9d23['getCurrentUser'](),_0x5a87ca[_0x238877('0x1ee3')]=_0x253801[_0x238877('0x1335')]('motion.newsAlertHide:'+_0x5a87ca['currentUser']['id'])||![],_0x5a87ca[_0x238877('0xbec')]=_0x17de3c;}const _0x399db7=_0x1916c6;_0x2a64bb[_0x34e79e('0x2d9')]=['$translatePartialLoaderProvider'];function _0x2a64bb(_0x19b534){const _0x1d53c8=_0x34e79e;_0x19b534[_0x1d53c8('0x15ae')](_0x1d53c8('0x1d47'));}angular['module']('app.header',[])[_0x34e79e('0x1a22')](_0x2a64bb)['controller'](_0x34e79e('0x17f4'),_0x399db7),_0x56fe24['$inject']=[_0x34e79e('0x1b04'),'$cookies'];function _0x56fe24(_0x7b2891,_0x5591ae){const _0x4aa4b5=_0x34e79e,_0x5cfdf5=this;function _0xd847f9(){const _0x2e1f4a=a0_0x14e7;_0x5591ae[_0x2e1f4a('0x27ad')](_0x2e1f4a('0x6f')+_0x5cfdf5[_0x2e1f4a('0x9cb')]['id'],!![]);}_0x5cfdf5[_0x4aa4b5('0x9cb')]=_0x7b2891[_0x4aa4b5('0x24cc')](),_0x5cfdf5[_0x4aa4b5('0x14fa')]=_0x5591ae[_0x4aa4b5('0x1335')](_0x4aa4b5('0x6f')+_0x5cfdf5[_0x4aa4b5('0x9cb')]['id'])||![],_0x5cfdf5[_0x4aa4b5('0xdba')]=_0xd847f9;}const _0x72a211=_0x56fe24;_0x734b6c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1b4b')];function _0x734b6c(_0x35fe79){const _0x41081e=_0x34e79e;_0x35fe79['addPart'](_0x41081e('0x2326'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1590'),[])[_0x34e79e('0x1a22')](_0x734b6c)[_0x34e79e('0xb44')](_0x34e79e('0x22d2'),_0x72a211);var _0x472c29=_0x18dd13(0x1cbe),_0x31837a=_0x18dd13(0x2303),_0x2f845a=_0x18dd13(0xde6),_0x37be34=_0x18dd13(0x321),_0x3c7885=_0x18dd13(0x1c92),_0x2d048d=_0x18dd13(0x2361),_0x47cf01=_0x18dd13(0xdd5),_0x3b50a0=_0x18dd13(0x9d6),_0x41d59f=_0x18dd13(0x20aa),_0x3a1b1f=_0x18dd13(0x1ac1),_0x1ccba6=_0x18dd13(0x15c3),_0xc52f7f=_0x18dd13(0x154a),_0x56270c=_0x18dd13(0x2154),_0x35da6c=_0x18dd13(0x23a1),_0x2cd25c=_0x18dd13(0xa7c),_0xd9d001=_0x18dd13(0x1eaf),_0x1660f6=_0x18dd13(0x444),_0x422b21=_0x18dd13(0x1c4),_0x5b62b1=_0x18dd13(0x121a),_0x162ec1=_0x18dd13(0x1be),_0x5cae88=_0x18dd13(0xd3e);const _0x508655=_0x18dd13['p']+_0x34e79e('0xa45'),_0x2fdc80=_0x18dd13['p']+'src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html',_0x3215a9=_0x18dd13['p']+_0x34e79e('0x1c7a'),_0x4f69ec=_0x18dd13['p']+_0x34e79e('0x55e'),_0x442120=_0x18dd13['p']+_0x34e79e('0x16ae'),_0x502c4f=_0x18dd13['p']+_0x34e79e('0xdb3'),_0x5d77bf=_0x18dd13['p']+_0x34e79e('0x1da5'),_0x40824b=_0x18dd13['p']+_0x34e79e('0x11a9');_0x26b4a0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd6f'),'chatInteractions',_0x34e79e('0x6de')];function _0x26b4a0(_0x275db6,_0x349590,_0xf93abc,_0x2357a1){const _0x13a9df=_0x34e79e,_0x32332e=this,_0x38920e=[];_0x32332e[_0x13a9df('0x1a22')]={'format':'hh:mm:ss','unit':'seconds','trim':![]},_0x32332e[_0x13a9df('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x13a9df('0x114f'),'avgTalkTime':_0x13a9df('0x114f'),'answerRate':0x0,'abandonRate':0x0},_0x32332e[_0x13a9df('0x6de')]=_0x2357a1?_0x283545()[_0x13a9df('0x13cf')](_0x2357a1[_0x13a9df('0x25df')]?_0x2357a1[_0x13a9df('0x25df')]:[],'id'):{},_0x32332e['onSaveChatInteraction']=_0x1665b7,_0x32332e[_0x13a9df('0x1ad9')]=_0x35fe38,_0x349590['on'](_0x13a9df('0xcc2'),_0x32332e['onSaveChatInteraction']),_0x349590['on'](_0x13a9df('0x18a7'),_0x32332e[_0x13a9df('0x1ad9')]),_0x216f7a();function _0x2d1ceb(_0x3b6974,_0x655e32){const _0x1adccb=_0x13a9df;!_0x3b6974[_0x1adccb('0x215d')]&&!_0x3b6974[_0x1adccb('0x3bb')]&&_0x655e32&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]+=0x1);!_0x3b6974[_0x1adccb('0x215d')]&&_0x3b6974[_0x1adccb('0x3bb')]&&!_0x283545()[_0x1adccb('0x1d4e')](_0x38920e,_0x3b6974['id'])&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1e8c')]+=0x1,_0x38920e[_0x1adccb('0x13e3')](_0x3b6974['id']),!_0x655e32&&_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]-=0x1));if(_0x3b6974[_0x1adccb('0x215d')]&&_0x3b6974[_0x1adccb('0x1db2')]===_0x1adccb('0x2198'))_0x32332e[_0x1adccb('0x2e4')]['abandoned']+=0x1,!_0x655e32&&_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]-=0x1);else{if(_0x3b6974['closed']&&!_0x3b6974[_0x1adccb('0x3bb')]&&_0x3b6974['disposition'])_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x17f6')]+=0x1,!_0x655e32&&_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1eb6')]-=0x1);else _0x3b6974[_0x1adccb('0x215d')]&&_0x3b6974[_0x1adccb('0x3bb')]&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x7dc')]+=_0x59f37a()(_0x3b6974[_0x1adccb('0x2403')])[_0x1adccb('0x381')](_0x59f37a()(_0x3b6974['read1stAt']),_0x32332e[_0x1adccb('0x1a22')][_0x1adccb('0x14be')]),_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1709')]+=_0x59f37a()(_0x3b6974[_0x1adccb('0x161e')])[_0x1adccb('0x381')](_0x59f37a()(_0x3b6974['createdAt']),_0x32332e[_0x1adccb('0x1a22')][_0x1adccb('0x14be')]),_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0xacf')]+=0x1,!_0x655e32&&_0x32332e['inbound']['talking']&&(_0x32332e[_0x1adccb('0x2e4')][_0x1adccb('0x1e8c')]-=0x1));}_0x655e32&&(_0x32332e['inbound'][_0x1adccb('0x510')]+=0x1);}function _0x179bbe(){const _0xfdb2a2=_0x13a9df;_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x88e')]=Math['round']((_0x32332e['inbound']['abandoned']+_0x32332e[_0xfdb2a2('0x2e4')]['unmanaged'])/(_0x32332e['inbound'][_0xfdb2a2('0x510')]-_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x1e8c')]-_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x1eb6')])*0x64,-0x2),_0x32332e['inbound']['answerRate']=Math['round'](_0x32332e['inbound'][_0xfdb2a2('0xacf')]/(_0x32332e['inbound'][_0xfdb2a2('0x510')]-_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x1e8c')]-_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x1eb6')])*0x64,-0x2),_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x20a3')]=_0x59f37a()[_0xfdb2a2('0x2b3')](Math['round'](_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x1709')]/_0x32332e[_0xfdb2a2('0x2e4')]['answered']),_0x32332e[_0xfdb2a2('0x1a22')][_0xfdb2a2('0x14be')])[_0xfdb2a2('0x22b4')](_0x32332e['config'][_0xfdb2a2('0x22b4')],_0x32332e['config']),_0x32332e['inbound']['avgTalkTime']=_0x59f37a()[_0xfdb2a2('0x2b3')](Math[_0xfdb2a2('0xe05')](_0x32332e[_0xfdb2a2('0x2e4')][_0xfdb2a2('0x7dc')]/_0x32332e['inbound']['answered']),_0x32332e[_0xfdb2a2('0x1a22')]['unit'])['format'](_0x32332e['config']['format'],_0x32332e['config']);}function _0x216f7a(){const _0x52f372=_0x13a9df;if(Object[_0x52f372('0x2163')](_0x32332e[_0x52f372('0x6de')])['length']>0x0)for(let _0x325882=0x0;_0x325882<_0xf93abc[_0x52f372('0x25df')][_0x52f372('0x2566')];_0x325882+=0x1){if(_0x2a8d18(_0xf93abc[_0x52f372('0x25df')][_0x325882])){const _0x42bfa3=_0xf93abc[_0x52f372('0x25df')][_0x325882];_0x2d1ceb(_0x42bfa3,!![]),_0x179bbe();}}}function _0x2a8d18(_0x37c937){const _0x198970=_0x13a9df;if(_0x283545()[_0x198970('0xc5d')](_0x32332e[_0x198970('0x6de')],{'id':_0x283545()[_0x198970('0x420')](_0x37c937[_0x198970('0x965')])}))return!![];return![];}function _0x538982(_0x4c53ba){const _0x489d62=_0x13a9df,_0x35f71c=_0x59f37a()()[_0x489d62('0x2827')](0x0,!![])['startOf'](_0x489d62('0xf')),_0x3699ff=_0x59f37a()()['utcOffset'](0x0,!![])['endOf'](_0x489d62('0xf'));return _0x59f37a()(_0x4c53ba)[_0x489d62('0x2827')](0x0,!![])[_0x489d62('0x787')](_0x35f71c,_0x3699ff);}function _0x1665b7(_0x3f8b0f){_0x2a8d18(_0x3f8b0f)&&_0x538982(_0x3f8b0f['createdAt'])&&(_0x2d1ceb(_0x3f8b0f,!![]),_0x179bbe());}function _0x35fe38(_0x1b7345){const _0x2a8f86=_0x13a9df;_0x2a8d18(_0x1b7345)&&_0x538982(_0x1b7345[_0x2a8f86('0x172')])&&(_0x2d1ceb(_0x1b7345,![]),_0x179bbe());}_0x275db6[_0x13a9df('0x651')]('$destroy',function(){const _0x1e005e=_0x13a9df;_0x349590[_0x1e005e('0x277f')]('chatInteraction:save'),_0x349590[_0x1e005e('0x277f')](_0x1e005e('0x18a7'));});}const _0x5875b1=_0x26b4a0;_0x285ffb[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x16e3'),_0x34e79e('0xd6f'),_0x34e79e('0x671'),'rpcQueues',_0x34e79e('0x707'),_0x34e79e('0x39a'),'rpcCampaigns'];function _0x285ffb(_0x18baca,_0x166f94,_0x5c255c,_0x34e700,_0x6c33de,_0x3a4d21,_0x1ca084,_0x5de579){const _0x31d063=_0x34e79e,_0x41750c=this;_0x41750c['outboundQueues']=_0x34e700?_0x283545()[_0x31d063('0x13cf')](_0x34e700['rows']?_0x34e700[_0x31d063('0x25df')]:[],'id'):{},_0x41750c[_0x31d063('0x274c')]=_0x6c33de?_0x283545()[_0x31d063('0x13cf')](_0x6c33de[_0x31d063('0x25df')]?_0x6c33de[_0x31d063('0x25df')]:[],'id'):{},_0x41750c['rpcCampaigns']=_0x5de579?_0x283545()[_0x31d063('0x13cf')](_0x5de579[_0x31d063('0x25df')]?_0x5de579[_0x31d063('0x25df')]:[],'id'):{},_0x41750c[_0x31d063('0x1e64')]={'originated':0x0,'limitCalls':0x0},_0x41750c[_0x31d063('0x2e4')]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x31d063('0x114f'),'avgTalkTime':_0x31d063('0x114f'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x41750c[_0x31d063('0x181')]=_0x46c3b5,_0x41750c[_0x31d063('0x270d')]=_0x660997,_0x5c255c[_0x31d063('0x3e')](_0x31d063('0x2467'),_0x41750c[_0x31d063('0x181')]),_0x41750c[_0x31d063('0x2630')]=_0x166f94(function(){_0x517dca(),_0x35d92();},0x3e7),_0x5c255c['onWithoutApply']('campaign:save',_0x41750c[_0x31d063('0x270d')]),_0x517dca(),_0x35d92();function _0x517dca(){const _0x40940e=_0x31d063;_0x3a4d21({'queues':_0x41750c['outboundQueues'],'rpcQueues':_0x41750c[_0x40940e('0x274c')]})[_0x40940e('0x2788')](function(_0x234d0b){_0x41750c['inbound']=_0x234d0b;});}function _0x35d92(){const _0xcac5ff=_0x31d063;_0x1ca084({'rpcCampaigns':_0x41750c[_0xcac5ff('0x2374')]})[_0xcac5ff('0x2788')](function(_0x5f59dc){const _0x331aa6=_0xcac5ff;_0x41750c[_0x331aa6('0x1e64')]=_0x5f59dc;});}function _0x46c3b5(_0x100cdf){const _0x395f6e=_0x31d063;_0x41750c['outboundQueues'][_0x100cdf['id']]&&(_0x41750c[_0x395f6e('0x274c')][_0x100cdf['id']]&&(_0x41750c['rpcQueues'][_0x100cdf['id']]=_0x100cdf));}function _0x660997(_0x1d30f0){const _0x3d3217=_0x31d063;_0x41750c['rpcCampaigns'][_0x1d30f0['id']]&&(_0x41750c[_0x3d3217('0x2374')][_0x1d30f0['id']]=_0x1d30f0);}_0x18baca[_0x31d063('0x651')](_0x31d063('0x26ac'),function(){const _0x3b3a1c=_0x31d063;_0x5c255c[_0x3b3a1c('0x277f')](_0x3b3a1c('0x2467')),_0x5c255c['removeAllListeners'](_0x3b3a1c('0x24fa')),_0x41750c[_0x3b3a1c('0x2630')]&&_0x166f94[_0x3b3a1c('0x1801')](_0x41750c[_0x3b3a1c('0x2630')]);});}const _0x16cc5e=_0x285ffb;_0x353d58[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd6f'),_0x34e79e('0x1ef6'),_0x34e79e('0xe9b')];function _0x353d58(_0x9b0a48,_0x95aca8,_0x7164cb,_0x2dd522){const _0x21f7ad=_0x34e79e,_0x33873f=this,_0x50977c=[];_0x33873f[_0x21f7ad('0x1a22')]={'format':_0x21f7ad('0xfe6'),'unit':_0x21f7ad('0x430'),'trim':![]},_0x33873f[_0x21f7ad('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x21f7ad('0x114f'),'avgTalkTime':_0x21f7ad('0x114f'),'answerRate':0x0,'abandonRate':0x0},_0x33873f[_0x21f7ad('0xe9b')]=_0x2dd522?_0x283545()['keyBy'](_0x2dd522['rows']?_0x2dd522[_0x21f7ad('0x25df')]:[],'id'):{},_0x33873f['onSaveFaxInteraction']=_0x4b5463,_0x33873f[_0x21f7ad('0x57')]=_0x1c09f5,_0x95aca8['on'](_0x21f7ad('0x1b80'),_0x33873f[_0x21f7ad('0x25c5')]),_0x95aca8['on'](_0x21f7ad('0x2230'),_0x33873f[_0x21f7ad('0x57')]),_0x3b39ad();function _0x141dab(_0x160000,_0x352dd8){const _0x48bfe0=_0x21f7ad;!_0x160000['closed']&&!_0x160000['UserId']&&_0x352dd8&&(_0x33873f['inbound'][_0x48bfe0('0x1eb6')]+=0x1),!_0x160000[_0x48bfe0('0x215d')]&&_0x160000['UserId']&&!_0x283545()[_0x48bfe0('0x1d4e')](_0x50977c,_0x160000['id'])&&(_0x33873f['inbound']['talking']+=0x1,_0x50977c[_0x48bfe0('0x13e3')](_0x160000['id']),!_0x352dd8&&_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x1eb6')]&&(_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x1eb6')]-=0x1)),_0x160000['closed']&&_0x160000['UserId']&&(_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x7dc')]+=_0x59f37a()(_0x160000[_0x48bfe0('0x2403')])[_0x48bfe0('0x381')](_0x59f37a()(_0x160000[_0x48bfe0('0x161e')]),_0x33873f[_0x48bfe0('0x1a22')][_0x48bfe0('0x14be')]),_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x1709')]+=_0x59f37a()(_0x160000[_0x48bfe0('0x161e')])[_0x48bfe0('0x381')](_0x59f37a()(_0x160000['createdAt']),_0x33873f[_0x48bfe0('0x1a22')]['unit']),_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0xacf')]+=0x1,!_0x352dd8&&_0x33873f[_0x48bfe0('0x2e4')]['talking']&&(_0x33873f['inbound'][_0x48bfe0('0x1e8c')]-=0x1)),_0x160000[_0x48bfe0('0x215d')]&&!_0x160000['UserId']&&(_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x17f6')]+=0x1,!_0x352dd8&&_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x1eb6')]&&(_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x1eb6')]-=0x1)),_0x352dd8&&(_0x33873f[_0x48bfe0('0x2e4')][_0x48bfe0('0x510')]+=0x1);}function _0x39aa52(){const _0x22e53d=_0x21f7ad;_0x33873f[_0x22e53d('0x2e4')]['abandonRate']=Math[_0x22e53d('0xe05')]((_0x33873f[_0x22e53d('0x2e4')]['abandoned']+_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x17f6')])/(_0x33873f['inbound'][_0x22e53d('0x510')]-_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x1e8c')]-_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x1eb6')])*0x64,-0x2),_0x33873f[_0x22e53d('0x2e4')]['answerRate']=Math[_0x22e53d('0xe05')](_0x33873f[_0x22e53d('0x2e4')]['answered']/(_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x510')]-_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x1e8c')]-_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x1eb6')])*0x64,-0x2),_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x20a3')]=_0x59f37a()['duration'](Math[_0x22e53d('0xe05')](_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x1709')]/_0x33873f['inbound'][_0x22e53d('0xacf')]),_0x33873f['config'][_0x22e53d('0x14be')])[_0x22e53d('0x22b4')](_0x33873f[_0x22e53d('0x1a22')][_0x22e53d('0x22b4')],_0x33873f[_0x22e53d('0x1a22')]),_0x33873f['inbound']['avgTalkTime']=_0x59f37a()[_0x22e53d('0x2b3')](Math['round'](_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0x7dc')]/_0x33873f[_0x22e53d('0x2e4')][_0x22e53d('0xacf')]),_0x33873f[_0x22e53d('0x1a22')][_0x22e53d('0x14be')])[_0x22e53d('0x22b4')](_0x33873f[_0x22e53d('0x1a22')][_0x22e53d('0x22b4')],_0x33873f[_0x22e53d('0x1a22')]);}function _0x3b39ad(){const _0x2803ef=_0x21f7ad;if(Object[_0x2803ef('0x2163')](_0x33873f[_0x2803ef('0xe9b')])[_0x2803ef('0x2566')]>0x0)for(let _0x132f89=0x0;_0x132f89<_0x7164cb[_0x2803ef('0x25df')]['length'];_0x132f89+=0x1){if(_0x329f00(_0x7164cb[_0x2803ef('0x25df')][_0x132f89])){const _0x5398e9=_0x7164cb[_0x2803ef('0x25df')][_0x132f89];_0x141dab(_0x5398e9,!![]),_0x39aa52();}}}function _0x329f00(_0x4c3484){const _0x1f05c2=_0x21f7ad;if(_0x283545()[_0x1f05c2('0xc5d')](_0x33873f[_0x1f05c2('0xe9b')],{'id':_0x283545()[_0x1f05c2('0x420')](_0x4c3484[_0x1f05c2('0xfc2')])}))return!![];return![];}function _0x454bac(_0x153b9a){const _0x486062=_0x21f7ad,_0x4777c5=_0x59f37a()()[_0x486062('0x2827')](0x0,!![])[_0x486062('0x13e4')]('day'),_0x318dcd=_0x59f37a()()[_0x486062('0x2827')](0x0,!![])[_0x486062('0x142e')](_0x486062('0xf'));return _0x59f37a()(_0x153b9a)['utcOffset'](0x0,!![])[_0x486062('0x787')](_0x4777c5,_0x318dcd);}function _0x4b5463(_0x17b32a){const _0x2fe0a9=_0x21f7ad;_0x329f00(_0x17b32a)&&_0x454bac(_0x17b32a[_0x2fe0a9('0x172')])&&(_0x141dab(_0x17b32a,!![]),_0x39aa52());}function _0x1c09f5(_0x7a0586){const _0x10109d=_0x21f7ad;_0x329f00(_0x7a0586)&&_0x454bac(_0x7a0586[_0x10109d('0x172')])&&(_0x141dab(_0x7a0586,![]),_0x39aa52());}_0x9b0a48['$on'](_0x21f7ad('0x26ac'),function(){const _0x2b577b=_0x21f7ad;_0x95aca8[_0x2b577b('0x277f')](_0x2b577b('0x1b80')),_0x95aca8[_0x2b577b('0x277f')](_0x2b577b('0x2230'));});}const _0x5b9a8f=_0x353d58;_0x392c8a['$inject']=['$scope',_0x34e79e('0xd6f'),'mailInteractions','mailAccounts'];function _0x392c8a(_0x1d4403,_0x444d2b,_0x5ecb1c,_0x1754b6){const _0x2ffab2=_0x34e79e,_0x14b077=this,_0x59e73a=[];_0x14b077[_0x2ffab2('0x1a22')]={'format':'hh:mm:ss','unit':_0x2ffab2('0x430'),'trim':![]},_0x14b077[_0x2ffab2('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x2ffab2('0x114f'),'avgTalkTime':_0x2ffab2('0x114f'),'answerRate':0x0,'abandonRate':0x0},_0x14b077[_0x2ffab2('0x1e22')]=_0x1754b6?_0x283545()[_0x2ffab2('0x13cf')](_0x1754b6[_0x2ffab2('0x25df')]?_0x1754b6[_0x2ffab2('0x25df')]:[],'id'):{},_0x14b077[_0x2ffab2('0x1d75')]=_0x449eeb,_0x14b077['onUpdateMailInteraction']=_0x2d544c,_0x444d2b['on'](_0x2ffab2('0x2cb'),_0x14b077['onSaveMailInteraction']),_0x444d2b['on'](_0x2ffab2('0x1cf5'),_0x14b077[_0x2ffab2('0x165')]),_0x5c19ed();function _0x28fe98(_0xeb6f2c,_0x562e67){const _0x155075=_0x2ffab2;!_0xeb6f2c[_0x155075('0x215d')]&&!_0xeb6f2c['UserId']&&_0x562e67&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x1eb6')]+=0x1),!_0xeb6f2c[_0x155075('0x215d')]&&_0xeb6f2c[_0x155075('0x3bb')]&&!_0x283545()[_0x155075('0x1d4e')](_0x59e73a,_0xeb6f2c['id'])&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x1e8c')]+=0x1,_0x59e73a[_0x155075('0x13e3')](_0xeb6f2c['id']),!_0x562e67&&_0x14b077[_0x155075('0x2e4')][_0x155075('0x1eb6')]&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x1eb6')]-=0x1)),_0xeb6f2c[_0x155075('0x215d')]&&_0xeb6f2c[_0x155075('0x3bb')]&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x7dc')]+=_0x59f37a()(_0xeb6f2c[_0x155075('0x2403')])['diff'](_0x59f37a()(_0xeb6f2c[_0x155075('0x161e')]),_0x14b077[_0x155075('0x1a22')][_0x155075('0x14be')]),_0x14b077[_0x155075('0x2e4')][_0x155075('0x1709')]+=_0x59f37a()(_0xeb6f2c['read1stAt'])[_0x155075('0x381')](_0x59f37a()(_0xeb6f2c['createdAt']),_0x14b077[_0x155075('0x1a22')]['unit']),_0x14b077[_0x155075('0x2e4')][_0x155075('0xacf')]+=0x1,!_0x562e67&&_0x14b077[_0x155075('0x2e4')][_0x155075('0x1e8c')]&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x1e8c')]-=0x1)),_0xeb6f2c[_0x155075('0x215d')]&&!_0xeb6f2c['UserId']&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x17f6')]+=0x1,!_0x562e67&&_0x14b077[_0x155075('0x2e4')][_0x155075('0x1eb6')]&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x1eb6')]-=0x1)),_0x562e67&&(_0x14b077[_0x155075('0x2e4')][_0x155075('0x510')]+=0x1);}function _0x52f020(){const _0x4bbd6d=_0x2ffab2;_0x14b077[_0x4bbd6d('0x2e4')]['abandonRate']=Math['round']((_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0x2198')]+_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0x17f6')])/(_0x14b077[_0x4bbd6d('0x2e4')]['total']-_0x14b077[_0x4bbd6d('0x2e4')]['talking']-_0x14b077['inbound'][_0x4bbd6d('0x1eb6')])*0x64,-0x2),_0x14b077['inbound'][_0x4bbd6d('0x71d')]=Math[_0x4bbd6d('0xe05')](_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0xacf')]/(_0x14b077['inbound'][_0x4bbd6d('0x510')]-_0x14b077[_0x4bbd6d('0x2e4')]['talking']-_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0x1eb6')])*0x64,-0x2),_0x14b077[_0x4bbd6d('0x2e4')]['avgHoldTime']=_0x59f37a()[_0x4bbd6d('0x2b3')](Math['round'](_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0x1709')]/_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0xacf')]),_0x14b077[_0x4bbd6d('0x1a22')]['unit'])['format'](_0x14b077[_0x4bbd6d('0x1a22')][_0x4bbd6d('0x22b4')],_0x14b077[_0x4bbd6d('0x1a22')]),_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0x2201')]=_0x59f37a()[_0x4bbd6d('0x2b3')](Math[_0x4bbd6d('0xe05')](_0x14b077['inbound']['sumBillable']/_0x14b077[_0x4bbd6d('0x2e4')][_0x4bbd6d('0xacf')]),_0x14b077[_0x4bbd6d('0x1a22')][_0x4bbd6d('0x14be')])[_0x4bbd6d('0x22b4')](_0x14b077[_0x4bbd6d('0x1a22')]['format'],_0x14b077[_0x4bbd6d('0x1a22')]);}function _0x5c19ed(){const _0x1a2d92=_0x2ffab2;if(Object[_0x1a2d92('0x2163')](_0x14b077['mailAccounts'])[_0x1a2d92('0x2566')]>0x0)for(let _0x4ac0de=0x0;_0x4ac0de<_0x5ecb1c[_0x1a2d92('0x25df')][_0x1a2d92('0x2566')];_0x4ac0de+=0x1){if(_0x53b8f6(_0x5ecb1c['rows'][_0x4ac0de])){const _0x8b60ef=_0x5ecb1c[_0x1a2d92('0x25df')][_0x4ac0de];_0x28fe98(_0x8b60ef,!![]),_0x52f020();}}}function _0x53b8f6(_0x693bb){const _0x4aab2e=_0x2ffab2;if(_0x283545()['some'](_0x14b077[_0x4aab2e('0x1e22')],{'id':_0x283545()[_0x4aab2e('0x420')](_0x693bb['MailAccountId'])}))return!![];return![];}function _0xb897b9(_0x578462){const _0xae3043=_0x2ffab2,_0x4e0dfd=_0x59f37a()()[_0xae3043('0x2827')](0x0,!![])[_0xae3043('0x13e4')](_0xae3043('0xf')),_0x29de91=_0x59f37a()()[_0xae3043('0x2827')](0x0,!![])[_0xae3043('0x142e')](_0xae3043('0xf'));return _0x59f37a()(_0x578462)[_0xae3043('0x2827')](0x0,!![])[_0xae3043('0x787')](_0x4e0dfd,_0x29de91);}function _0x449eeb(_0x7d6014){_0x53b8f6(_0x7d6014)&&_0xb897b9(_0x7d6014['createdAt'])&&(_0x28fe98(_0x7d6014,!![]),_0x52f020());}function _0x2d544c(_0x2364ef){const _0x1c0476=_0x2ffab2;_0x53b8f6(_0x2364ef)&&_0xb897b9(_0x2364ef[_0x1c0476('0x172')])&&(_0x28fe98(_0x2364ef,![]),_0x52f020());}_0x1d4403[_0x2ffab2('0x651')](_0x2ffab2('0x26ac'),function(){const _0x1b7514=_0x2ffab2;_0x444d2b['removeAllListeners'](_0x1b7514('0x2cb')),_0x444d2b[_0x1b7514('0x277f')](_0x1b7514('0x1cf5'));});}const _0x2f2641=_0x392c8a;_0x4f388f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd6f'),'openchannelInteractions',_0x34e79e('0x1e10')];function _0x4f388f(_0x2bb6a6,_0x58c9a9,_0x175937,_0x1f5d9e){const _0x5142df=_0x34e79e,_0x3323be=this,_0x265594=[];_0x3323be['config']={'format':_0x5142df('0xfe6'),'unit':_0x5142df('0x430'),'trim':![]},_0x3323be[_0x5142df('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x5142df('0x114f'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x3323be[_0x5142df('0x1e10')]=_0x1f5d9e?_0x283545()[_0x5142df('0x13cf')](_0x1f5d9e[_0x5142df('0x25df')]?_0x1f5d9e['rows']:[],'id'):{},_0x3323be[_0x5142df('0x660')]=_0x5c270c,_0x3323be[_0x5142df('0x2633')]=_0x5f5160,_0x58c9a9['on'](_0x5142df('0x15b0'),_0x3323be['onSaveOpenchannelInteraction']),_0x58c9a9['on'](_0x5142df('0x17cf'),_0x3323be[_0x5142df('0x2633')]),_0x6da3b6();function _0x516862(_0x4b3ad6,_0x31bc5b){const _0x21456c=_0x5142df;!_0x4b3ad6[_0x21456c('0x215d')]&&!_0x4b3ad6['UserId']&&_0x31bc5b&&(_0x3323be['inbound'][_0x21456c('0x1eb6')]+=0x1),!_0x4b3ad6[_0x21456c('0x215d')]&&_0x4b3ad6['UserId']&&!_0x283545()['includes'](_0x265594,_0x4b3ad6['id'])&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1e8c')]+=0x1,_0x265594[_0x21456c('0x13e3')](_0x4b3ad6['id']),!_0x31bc5b&&_0x3323be['inbound'][_0x21456c('0x1eb6')]&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1eb6')]-=0x1)),_0x4b3ad6[_0x21456c('0x215d')]&&_0x4b3ad6[_0x21456c('0x3bb')]&&(_0x3323be['inbound'][_0x21456c('0x7dc')]+=_0x59f37a()(_0x4b3ad6[_0x21456c('0x2403')])[_0x21456c('0x381')](_0x59f37a()(_0x4b3ad6[_0x21456c('0x161e')]),_0x3323be[_0x21456c('0x1a22')][_0x21456c('0x14be')]),_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1709')]+=_0x59f37a()(_0x4b3ad6['read1stAt'])[_0x21456c('0x381')](_0x59f37a()(_0x4b3ad6[_0x21456c('0x172')]),_0x3323be[_0x21456c('0x1a22')][_0x21456c('0x14be')]),_0x3323be['inbound'][_0x21456c('0xacf')]+=0x1,!_0x31bc5b&&_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1e8c')]&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1e8c')]-=0x1)),_0x4b3ad6[_0x21456c('0x215d')]&&!_0x4b3ad6['UserId']&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x17f6')]+=0x1,!_0x31bc5b&&_0x3323be['inbound']['waiting']&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x1eb6')]-=0x1)),_0x31bc5b&&(_0x3323be[_0x21456c('0x2e4')][_0x21456c('0x510')]+=0x1);}function _0x566272(){const _0x43d829=_0x5142df;_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x88e')]=Math[_0x43d829('0xe05')]((_0x3323be[_0x43d829('0x2e4')]['abandoned']+_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x17f6')])/(_0x3323be['inbound'][_0x43d829('0x510')]-_0x3323be['inbound'][_0x43d829('0x1e8c')]-_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x1eb6')])*0x64,-0x2),_0x3323be['inbound'][_0x43d829('0x71d')]=Math['round'](_0x3323be['inbound'][_0x43d829('0xacf')]/(_0x3323be['inbound'][_0x43d829('0x510')]-_0x3323be['inbound']['talking']-_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x1eb6')])*0x64,-0x2),_0x3323be['inbound'][_0x43d829('0x20a3')]=_0x59f37a()[_0x43d829('0x2b3')](Math[_0x43d829('0xe05')](_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x1709')]/_0x3323be[_0x43d829('0x2e4')][_0x43d829('0xacf')]),_0x3323be[_0x43d829('0x1a22')]['unit'])[_0x43d829('0x22b4')](_0x3323be['config'][_0x43d829('0x22b4')],_0x3323be[_0x43d829('0x1a22')]),_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x2201')]=_0x59f37a()[_0x43d829('0x2b3')](Math['round'](_0x3323be[_0x43d829('0x2e4')][_0x43d829('0x7dc')]/_0x3323be[_0x43d829('0x2e4')][_0x43d829('0xacf')]),_0x3323be[_0x43d829('0x1a22')][_0x43d829('0x14be')])[_0x43d829('0x22b4')](_0x3323be[_0x43d829('0x1a22')][_0x43d829('0x22b4')],_0x3323be[_0x43d829('0x1a22')]);}function _0x6da3b6(){const _0x5e577f=_0x5142df;if(Object[_0x5e577f('0x2163')](_0x3323be['openchannelAccounts'])[_0x5e577f('0x2566')]>0x0)for(let _0x5aa59a=0x0;_0x5aa59a<_0x175937[_0x5e577f('0x25df')]['length'];_0x5aa59a+=0x1){if(_0x26478e(_0x175937[_0x5e577f('0x25df')][_0x5aa59a])){const _0x1f27e7=_0x175937[_0x5e577f('0x25df')][_0x5aa59a];_0x516862(_0x1f27e7,!![]),_0x566272();}}}function _0x26478e(_0x20cfb2){const _0x44565f=_0x5142df;if(_0x283545()[_0x44565f('0xc5d')](_0x3323be['openchannelAccounts'],{'id':_0x283545()[_0x44565f('0x420')](_0x20cfb2[_0x44565f('0x22fa')])}))return!![];return![];}function _0x6bbc9e(_0x56c6f0){const _0x1263f3=_0x5142df,_0x75c530=_0x59f37a()()[_0x1263f3('0x2827')](0x0,!![])['startOf']('day'),_0x477687=_0x59f37a()()[_0x1263f3('0x2827')](0x0,!![])[_0x1263f3('0x142e')](_0x1263f3('0xf'));return _0x59f37a()(_0x56c6f0)['utcOffset'](0x0,!![])[_0x1263f3('0x787')](_0x75c530,_0x477687);}function _0x5c270c(_0x575639){const _0x3af5a1=_0x5142df;_0x26478e(_0x575639)&&_0x6bbc9e(_0x575639[_0x3af5a1('0x172')])&&(_0x516862(_0x575639,!![]),_0x566272());}function _0x5f5160(_0x336ead){const _0x35e62f=_0x5142df;_0x26478e(_0x336ead)&&_0x6bbc9e(_0x336ead[_0x35e62f('0x172')])&&(_0x516862(_0x336ead,![]),_0x566272());}_0x2bb6a6[_0x5142df('0x651')](_0x5142df('0x26ac'),function(){const _0x519e05=_0x5142df;_0x58c9a9[_0x519e05('0x277f')](_0x519e05('0x15b0')),_0x58c9a9[_0x519e05('0x277f')](_0x519e05('0x17cf'));});}const _0x31ed0c=_0x4f388f;_0x4d7fc0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd6f'),_0x34e79e('0xefb'),'smsAccounts'];function _0x4d7fc0(_0x3f6c0f,_0x3f13ca,_0x2791b1,_0x50fcd6){const _0x1ceaef=_0x34e79e,_0x76b8fd=this,_0x46e270=[];_0x76b8fd[_0x1ceaef('0x1a22')]={'format':'hh:mm:ss','unit':'seconds','trim':![]},_0x76b8fd[_0x1ceaef('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1ceaef('0x114f'),'avgTalkTime':_0x1ceaef('0x114f'),'answerRate':0x0,'abandonRate':0x0},_0x76b8fd['smsAccounts']=_0x50fcd6?_0x283545()[_0x1ceaef('0x13cf')](_0x50fcd6[_0x1ceaef('0x25df')]?_0x50fcd6[_0x1ceaef('0x25df')]:[],'id'):{},_0x76b8fd[_0x1ceaef('0x1041')]=_0x3d56f0,_0x76b8fd[_0x1ceaef('0x2842')]=_0x2f5aa8,_0x3f13ca['on'](_0x1ceaef('0x2655'),_0x76b8fd[_0x1ceaef('0x1041')]),_0x3f13ca['on'](_0x1ceaef('0x14e5'),_0x76b8fd[_0x1ceaef('0x2842')]),_0x59ec18();function _0x80af8f(_0x53d9a9,_0x79a902){const _0x34f02a=_0x1ceaef;!_0x53d9a9[_0x34f02a('0x215d')]&&!_0x53d9a9[_0x34f02a('0x3bb')]&&_0x79a902&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1eb6')]+=0x1),!_0x53d9a9[_0x34f02a('0x215d')]&&_0x53d9a9[_0x34f02a('0x3bb')]&&!_0x283545()['includes'](_0x46e270,_0x53d9a9['id'])&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1e8c')]+=0x1,_0x46e270[_0x34f02a('0x13e3')](_0x53d9a9['id']),!_0x79a902&&_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1eb6')]&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1eb6')]-=0x1)),_0x53d9a9['closed']&&_0x53d9a9[_0x34f02a('0x3bb')]&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x7dc')]+=_0x59f37a()(_0x53d9a9[_0x34f02a('0x2403')])[_0x34f02a('0x381')](_0x59f37a()(_0x53d9a9['read1stAt']),_0x76b8fd['config'][_0x34f02a('0x14be')]),_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1709')]+=_0x59f37a()(_0x53d9a9[_0x34f02a('0x161e')])['diff'](_0x59f37a()(_0x53d9a9[_0x34f02a('0x172')]),_0x76b8fd[_0x34f02a('0x1a22')][_0x34f02a('0x14be')]),_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0xacf')]+=0x1,!_0x79a902&&_0x76b8fd['inbound'][_0x34f02a('0x1e8c')]&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x1e8c')]-=0x1)),_0x53d9a9[_0x34f02a('0x215d')]&&!_0x53d9a9[_0x34f02a('0x3bb')]&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x17f6')]+=0x1,!_0x79a902&&_0x76b8fd['inbound'][_0x34f02a('0x1eb6')]&&(_0x76b8fd['inbound'][_0x34f02a('0x1eb6')]-=0x1)),_0x79a902&&(_0x76b8fd[_0x34f02a('0x2e4')][_0x34f02a('0x510')]+=0x1);}function _0x3dc038(){const _0xec1104=_0x1ceaef;_0x76b8fd['inbound']['abandonRate']=Math[_0xec1104('0xe05')]((_0x76b8fd[_0xec1104('0x2e4')]['abandoned']+_0x76b8fd['inbound'][_0xec1104('0x17f6')])/(_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x510')]-_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x1e8c')]-_0x76b8fd['inbound'][_0xec1104('0x1eb6')])*0x64,-0x2),_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x71d')]=Math[_0xec1104('0xe05')](_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0xacf')]/(_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x510')]-_0x76b8fd['inbound'][_0xec1104('0x1e8c')]-_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x1eb6')])*0x64,-0x2),_0x76b8fd[_0xec1104('0x2e4')]['avgHoldTime']=_0x59f37a()[_0xec1104('0x2b3')](Math[_0xec1104('0xe05')](_0x76b8fd['inbound'][_0xec1104('0x1709')]/_0x76b8fd['inbound'][_0xec1104('0xacf')]),_0x76b8fd['config']['unit'])[_0xec1104('0x22b4')](_0x76b8fd[_0xec1104('0x1a22')][_0xec1104('0x22b4')],_0x76b8fd[_0xec1104('0x1a22')]),_0x76b8fd[_0xec1104('0x2e4')]['avgTalkTime']=_0x59f37a()['duration'](Math[_0xec1104('0xe05')](_0x76b8fd[_0xec1104('0x2e4')][_0xec1104('0x7dc')]/_0x76b8fd['inbound'][_0xec1104('0xacf')]),_0x76b8fd[_0xec1104('0x1a22')]['unit'])[_0xec1104('0x22b4')](_0x76b8fd[_0xec1104('0x1a22')][_0xec1104('0x22b4')],_0x76b8fd[_0xec1104('0x1a22')]);}function _0x59ec18(){const _0x492f4e=_0x1ceaef;if(Object[_0x492f4e('0x2163')](_0x76b8fd[_0x492f4e('0x5f4')])[_0x492f4e('0x2566')]>0x0)for(let _0x515867=0x0;_0x515867<_0x2791b1[_0x492f4e('0x25df')][_0x492f4e('0x2566')];_0x515867+=0x1){if(_0x53327a(_0x2791b1['rows'][_0x515867])){const _0x33326a=_0x2791b1[_0x492f4e('0x25df')][_0x515867];_0x80af8f(_0x33326a,!![]),_0x3dc038();}}}function _0x53327a(_0x5b0a83){const _0x294141=_0x1ceaef;if(_0x283545()[_0x294141('0xc5d')](_0x76b8fd['smsAccounts'],{'id':_0x283545()[_0x294141('0x420')](_0x5b0a83[_0x294141('0xcba')])}))return!![];return![];}function _0x1a38ec(_0x777083){const _0xca3b0c=_0x1ceaef,_0x2e90af=_0x59f37a()()['utcOffset'](0x0,!![])[_0xca3b0c('0x13e4')]('day'),_0x19c5dc=_0x59f37a()()[_0xca3b0c('0x2827')](0x0,!![])['endOf'](_0xca3b0c('0xf'));return _0x59f37a()(_0x777083)[_0xca3b0c('0x2827')](0x0,!![])['isBetween'](_0x2e90af,_0x19c5dc);}function _0x3d56f0(_0x59bce3){const _0x2a98ed=_0x1ceaef;_0x53327a(_0x59bce3)&&_0x1a38ec(_0x59bce3[_0x2a98ed('0x172')])&&(_0x80af8f(_0x59bce3,!![]),_0x3dc038());}function _0x2f5aa8(_0x12ff6e){_0x53327a(_0x12ff6e)&&_0x1a38ec(_0x12ff6e['createdAt'])&&(_0x80af8f(_0x12ff6e,![]),_0x3dc038());}_0x3f6c0f[_0x1ceaef('0x651')](_0x1ceaef('0x26ac'),function(){const _0x2cea8c=_0x1ceaef;_0x3f13ca[_0x2cea8c('0x277f')](_0x2cea8c('0x2655')),_0x3f13ca[_0x2cea8c('0x277f')]('smsInteraction:update');});}const _0x2c0670=_0x4d7fc0;_0x26e7d8['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x1b04'),'license'],_0x2db82e[_0x34e79e('0x2d9')]=['$q'],_0x2f7574['$inject']=['$q'];function _0x2f7574(_0x4f87bc){const _0x15c53b=[],_0x386420=function(){const _0x4d3f01=a0_0x14e7,_0x5b58fe=_0x15c53b[0x0],_0x41a70b={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4d3f01('0x114f'),'avgTalkTime':_0x4d3f01('0x114f'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x283545()[_0x4d3f01('0x1b')](_0x5b58fe['queues'],function(_0x7ae34b,_0x10a21a){const _0x5e7335=_0x4d3f01;_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a]&&(_0x41a70b[_0x5e7335('0x1eb6')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a]['waiting']||0x0,_0x41a70b['talking']+=(_0x5b58fe['rpcQueues'][_0x10a21a][_0x5e7335('0x1e8c')]||0x0)+(_0x5b58fe['rpcQueues'][_0x10a21a][_0x5e7335('0x21c9')]||0x0),_0x41a70b[_0x5e7335('0xacf')]+=_0x5b58fe['rpcQueues'][_0x10a21a]['answered']||0x0,_0x41a70b[_0x5e7335('0x2198')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a][_0x5e7335('0x2198')]||0x0,_0x41a70b[_0x5e7335('0x1709')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a][_0x5e7335('0x1709')]||0x0,_0x41a70b[_0x5e7335('0x7dc')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a][_0x5e7335('0x7dc')]||0x0,_0x41a70b[_0x5e7335('0x510')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a][_0x5e7335('0x510')]||0x0,_0x41a70b[_0x5e7335('0x253b')]+=_0x5b58fe['rpcQueues'][_0x10a21a][_0x5e7335('0x253b')]||0x0,_0x41a70b[_0x5e7335('0x10a9')]+=_0x5b58fe[_0x5e7335('0x274c')][_0x10a21a]['outboundDropCallsDayCallersExit']||0x0,_0x41a70b[_0x5e7335('0xf88')]+=_0x5b58fe['rpcQueues'][_0x10a21a][_0x5e7335('0xf88')]||0x0);});const _0x3518a2=_0x41a70b[_0x4d3f01('0x510')]-_0x41a70b[_0x4d3f01('0xacf')]-_0x41a70b[_0x4d3f01('0x2198')];_0x41a70b['unmanaged']=_0x3518a2>0x0?_0x3518a2:0x0,_0x41a70b[_0x4d3f01('0x20a3')]=Math['round'](_0x41a70b[_0x4d3f01('0x510')]>0x0?_0x41a70b[_0x4d3f01('0x1709')]/_0x41a70b[_0x4d3f01('0x510')]:0x0),_0x41a70b['avgHoldTime']=new Date(_0x41a70b['avgHoldTime']*0x3e8)[_0x4d3f01('0x13bc')]()['substr'](0xb,0x8),_0x41a70b['avgTalkTime']=Math[_0x4d3f01('0xe05')](_0x41a70b[_0x4d3f01('0xacf')]>0x0?_0x41a70b[_0x4d3f01('0x7dc')]/_0x41a70b['answered']:0x0),_0x41a70b['avgTalkTime']=new Date(_0x41a70b[_0x4d3f01('0x2201')]*0x3e8)[_0x4d3f01('0x13bc')]()[_0x4d3f01('0x1005')](0xb,0x8),_0x41a70b[_0x4d3f01('0x71d')]=Math[_0x4d3f01('0xe05')]((_0x41a70b[_0x4d3f01('0x510')]>0x0?_0x41a70b[_0x4d3f01('0xacf')]/_0x41a70b[_0x4d3f01('0x510')]*0x64:0x0)*Math[_0x4d3f01('0x103a')](0xa,0x1))/Math[_0x4d3f01('0x103a')](0xa,0x1),_0x41a70b['abandonRate']=Math[_0x4d3f01('0xe05')]((_0x41a70b['total']>0x0?_0x41a70b[_0x4d3f01('0x2198')]/_0x41a70b[_0x4d3f01('0x510')]*0x64:0x0)*Math[_0x4d3f01('0x103a')](0xa,0x1))/Math[_0x4d3f01('0x103a')](0xa,0x1),_0x41a70b[_0x4d3f01('0x11dd')]=Math[_0x4d3f01('0xe05')]((_0x41a70b[_0x4d3f01('0x510')]>0x0?_0x41a70b[_0x4d3f01('0xf88')]/_0x41a70b[_0x4d3f01('0x510')]*0x64:0x0)*Math[_0x4d3f01('0x103a')](0xa,0x1))/Math['pow'](0xa,0x1),_0x41a70b[_0x4d3f01('0x1551')]=Math[_0x4d3f01('0xe05')]((_0x41a70b[_0x4d3f01('0x510')]>0x0?_0x41a70b[_0x4d3f01('0x10a9')]/_0x41a70b['total']*0x64:0x0)*Math[_0x4d3f01('0x103a')](0xa,0x1))/Math[_0x4d3f01('0x103a')](0xa,0x1),_0x41a70b[_0x4d3f01('0x21')]=0x64-_0x41a70b['outboundDropRate']-_0x41a70b['outboundAbandonRate']>0x0&&(_0x41a70b[_0x4d3f01('0x510')]||0x0>0x0)?0x64-_0x41a70b[_0x4d3f01('0x11dd')]-_0x41a70b[_0x4d3f01('0x1551')]:0x0,_0x15c53b[_0x4d3f01('0x10ee')](),_0x5b58fe[_0x4d3f01('0x2311')][_0x4d3f01('0x2322')](_0x41a70b),_0x15c53b[_0x4d3f01('0x2566')]>0x0&&_0x386420();};return function(_0x3d98d1){const _0x145c09=a0_0x14e7,_0x59bd4d=_0x4f87bc[_0x145c09('0x2311')]();return _0x15c53b[_0x145c09('0x13e3')]({'queues':_0x3d98d1[_0x145c09('0x283e')],'rpcQueues':_0x3d98d1[_0x145c09('0x274c')],'defer':_0x59bd4d}),_0x15c53b[_0x145c09('0x2566')]===0x1&&_0x386420(),_0x59bd4d['promise'];};}function _0x2db82e(_0x543a6b){const _0x4cb9e0=[],_0x364b75=function(){const _0x5b0df1=a0_0x14e7,_0x425764=_0x4cb9e0[0x0],_0x1ab17b={'originated':0x0,'limitCalls':0x0};_0x283545()[_0x5b0df1('0x1b')](_0x425764[_0x5b0df1('0x2374')],function(_0x391cc4,_0x4b3524){const _0xccb555=_0x5b0df1;_0x425764[_0xccb555('0x2374')][_0x4b3524]&&(_0x1ab17b[_0xccb555('0x253b')]+=_0x425764[_0xccb555('0x2374')][_0x4b3524]['originated']||0x0,_0x1ab17b[_0xccb555('0x15a1')]+=_0x425764[_0xccb555('0x2374')][_0x4b3524]['limitCalls']||0x0);}),_0x4cb9e0['shift'](),_0x425764[_0x5b0df1('0x2311')][_0x5b0df1('0x2322')](_0x1ab17b),_0x4cb9e0[_0x5b0df1('0x2566')]>0x0&&_0x364b75();};return function(_0x136868){const _0x1c0a3a=a0_0x14e7,_0x71ef72=_0x543a6b['defer']();return _0x4cb9e0[_0x1c0a3a('0x13e3')]({'rpcCampaigns':_0x136868[_0x1c0a3a('0x2374')],'defer':_0x71ef72}),_0x4cb9e0[_0x1c0a3a('0x2566')]===0x1&&_0x364b75(),_0x71ef72[_0x1c0a3a('0x1808')];};}function _0x4fddc9(){return function(_0x3bcf42){const _0x576a14=a0_0x14e7;return new Date(_0x3bcf42*0x3e8)[_0x576a14('0x13bc')]()['substr'](0xb,0x8);};}function _0x26e7d8(_0x407f7b,_0x76c0bf,_0x46d11f){const _0x1e34de=_0x34e79e,_0x35cc69=this;_0x35cc69[_0x1e34de('0x130d')]=_0x46d11f,_0x35cc69[_0x1e34de('0x122e')]=_0x2b88f4;function _0x2b88f4(){const _0x3101f2=_0x1e34de;_0x35cc69[_0x3101f2('0xfe1')]=_0x76c0bf[_0x3101f2('0x1516')]('user')?_0x76c0bf['hasPermission'](0x65):!![];if(_0x35cc69['hasDashboardPermissions']){const _0x5d29d6=_0x407f7b[_0x3101f2('0x1c7f')]['name'];switch(_0x5d29d6){case _0x3101f2('0x15b8'):_0xe3506b();break;case _0x3101f2('0x1d73'):_0x35cc69[_0x3101f2('0xcb3')]=0x0;break;case _0x3101f2('0x17de'):_0x35cc69[_0x3101f2('0xcb3')]=0x1;break;case _0x3101f2('0x19ec'):_0x35cc69[_0x3101f2('0xcb3')]=0x2;break;case _0x3101f2('0xe7'):_0x35cc69[_0x3101f2('0xcb3')]=0x3;break;case _0x3101f2('0x695'):_0x35cc69[_0x3101f2('0xcb3')]=0x4;break;case _0x3101f2('0xba7'):_0x35cc69[_0x3101f2('0xcb3')]=0x5;break;case'app.dashboards.general.fax':_0x35cc69['selectedTab']=0x6;break;case _0x3101f2('0x10cc'):_0x35cc69[_0x3101f2('0xcb3')]=0x7;break;}}}function _0xe3506b(){const _0x5d651b=_0x1e34de,_0x43a28c=[];_0x35cc69[_0x5d651b('0x130d')][_0x5d651b('0x1f60')]&&_0x43a28c[_0x5d651b('0x13e3')](_0x5d651b('0x1d73')),_0x35cc69[_0x5d651b('0x130d')][_0x5d651b('0x79c')]&&_0x43a28c[_0x5d651b('0x13e3')](_0x5d651b('0x17de')),_0x35cc69['license'][_0x5d651b('0x231')]&&_0x43a28c[_0x5d651b('0x13e3')]('app.dashboards.general.chat'),_0x35cc69['license'][_0x5d651b('0x2795')]&&_0x43a28c[_0x5d651b('0x13e3')]('app.dashboards.general.mail'),_0x35cc69[_0x5d651b('0x130d')][_0x5d651b('0x180b')]&&_0x43a28c[_0x5d651b('0x13e3')](_0x5d651b('0x695')),_0x35cc69[_0x5d651b('0x130d')]['openchannel']&&_0x43a28c['push'](_0x5d651b('0xba7')),_0x35cc69['license'][_0x5d651b('0x10cf')]&&_0x43a28c[_0x5d651b('0x13e3')](_0x5d651b('0x2609')),_0x35cc69[_0x5d651b('0x130d')][_0x5d651b('0x195d')]&&_0x43a28c[_0x5d651b('0x13e3')](_0x5d651b('0x10cc'));if(_0x43a28c[_0x5d651b('0x2566')]>0x0)_0x407f7b['go'](_0x283545()[_0x5d651b('0x2716')](_0x43a28c));}}_0x3e67e0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0xd6f'),_0x34e79e('0x101e'),'rpcQueues','outbound',_0x34e79e('0x707')];function _0x3e67e0(_0x3e24ad,_0x3e8b79,_0x2d6f86,_0x19abf0,_0x500996,_0x3d8a04){const _0x195573=_0x34e79e,_0x59d638=this;_0x59d638[_0x195573('0x101e')]=_0x2d6f86?_0x283545()[_0x195573('0x13cf')](_0x2d6f86[_0x195573('0x25df')]?_0x2d6f86[_0x195573('0x25df')]:[],'id'):{},_0x59d638[_0x195573('0x274c')]=_0x19abf0?_0x283545()['keyBy'](_0x19abf0[_0x195573('0x25df')]?_0x19abf0[_0x195573('0x25df')]:[],'id'):{},_0x59d638['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x59d638[_0x195573('0x1')]=_0x500996||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x59d638[_0x195573('0x181')]=_0x42c257,_0x59d638['onSaveOutbound']=_0x426a37,_0x3e8b79['on'](_0x195573('0x2467'),_0x59d638[_0x195573('0x181')]),_0x3e8b79['on']('voice_outbound:save',_0x59d638[_0x195573('0x66')]),_0x3153f0();function _0x3153f0(){const _0x502ce0=_0x195573;_0x3d8a04({'queues':_0x59d638[_0x502ce0('0x101e')],'rpcQueues':_0x59d638[_0x502ce0('0x274c')]})['then'](function(_0x17065a){const _0x3dd1d4=_0x502ce0;_0x59d638[_0x3dd1d4('0x2e4')]=_0x17065a;});}function _0x42c257(_0x14335f){const _0x215cbe=_0x195573;_0x59d638['inboundQueues'][_0x14335f['id']]&&(_0x59d638['rpcQueues'][_0x14335f['id']]&&(_0x59d638[_0x215cbe('0x274c')][_0x14335f['id']]=_0x14335f,_0x3153f0()));}function _0x426a37(_0x5a9cd6){const _0x1dd342=_0x195573;_0x59d638[_0x1dd342('0x1')]=_0x5a9cd6;}_0x3e24ad[_0x195573('0x651')](_0x195573('0x26ac'),function(){const _0x23b7de=_0x195573;_0x3e8b79['removeAllListeners']('voice_queue:save'),_0x3e8b79[_0x23b7de('0x277f')](_0x23b7de('0x11a'));});}const _0x4c9069=_0x3e67e0;_0x25eaab['$inject']=['$scope','socket','whatsappInteractions',_0x34e79e('0xa47')];function _0x25eaab(_0x115d2f,_0x1542ff,_0x370a95,_0x5aa736){const _0x531689=_0x34e79e,_0x58eeac=this,_0x2b1ee1=[];_0x58eeac[_0x531689('0x1a22')]={'format':_0x531689('0xfe6'),'unit':'seconds','trim':![]},_0x58eeac[_0x531689('0x2e4')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x531689('0x114f'),'answerRate':0x0,'abandonRate':0x0},_0x58eeac['whatsappAccounts']=_0x5aa736?_0x283545()[_0x531689('0x13cf')](_0x5aa736[_0x531689('0x25df')]?_0x5aa736[_0x531689('0x25df')]:[],'id'):{},_0x58eeac[_0x531689('0x110f')]=_0x5e1a20,_0x58eeac[_0x531689('0x1de2')]=_0xcce872,_0x1542ff['on'](_0x531689('0xab3'),_0x58eeac[_0x531689('0x110f')]),_0x1542ff['on'](_0x531689('0x79d'),_0x58eeac['onUpdateWhatsappInteraction']),_0x358fcf();function _0x2188d9(_0x1427f9,_0x4b992c){const _0x2f04d6=_0x531689;!_0x1427f9[_0x2f04d6('0x215d')]&&!_0x1427f9['UserId']&&_0x4b992c&&(_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1eb6')]+=0x1),!_0x1427f9[_0x2f04d6('0x215d')]&&_0x1427f9[_0x2f04d6('0x3bb')]&&!_0x283545()[_0x2f04d6('0x1d4e')](_0x2b1ee1,_0x1427f9['id'])&&(_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1e8c')]+=0x1,_0x2b1ee1[_0x2f04d6('0x13e3')](_0x1427f9['id']),!_0x4b992c&&_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1eb6')]&&(_0x58eeac['inbound']['waiting']-=0x1)),_0x1427f9[_0x2f04d6('0x215d')]&&_0x1427f9['UserId']&&(_0x58eeac['inbound'][_0x2f04d6('0x7dc')]+=_0x59f37a()(_0x1427f9[_0x2f04d6('0x2403')])[_0x2f04d6('0x381')](_0x59f37a()(_0x1427f9[_0x2f04d6('0x161e')]),_0x58eeac[_0x2f04d6('0x1a22')]['unit']),_0x58eeac[_0x2f04d6('0x2e4')]['sumHoldTime']+=_0x59f37a()(_0x1427f9['read1stAt'])[_0x2f04d6('0x381')](_0x59f37a()(_0x1427f9['createdAt']),_0x58eeac[_0x2f04d6('0x1a22')]['unit']),_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0xacf')]+=0x1,!_0x4b992c&&_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1e8c')]&&(_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1e8c')]-=0x1)),_0x1427f9[_0x2f04d6('0x215d')]&&!_0x1427f9['UserId']&&(_0x58eeac['inbound'][_0x2f04d6('0x17f6')]+=0x1,!_0x4b992c&&_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x1eb6')]&&(_0x58eeac['inbound'][_0x2f04d6('0x1eb6')]-=0x1)),_0x4b992c&&(_0x58eeac[_0x2f04d6('0x2e4')][_0x2f04d6('0x510')]+=0x1);}function _0x25e885(){const _0x16f6c7=_0x531689;_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x88e')]=Math[_0x16f6c7('0xe05')]((_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x2198')]+_0x58eeac[_0x16f6c7('0x2e4')]['unmanaged'])/(_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x510')]-_0x58eeac['inbound']['talking']-_0x58eeac['inbound'][_0x16f6c7('0x1eb6')])*0x64,-0x2),_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x71d')]=Math[_0x16f6c7('0xe05')](_0x58eeac[_0x16f6c7('0x2e4')]['answered']/(_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x510')]-_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x1e8c')]-_0x58eeac[_0x16f6c7('0x2e4')]['waiting'])*0x64,-0x2),_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x20a3')]=_0x59f37a()[_0x16f6c7('0x2b3')](Math[_0x16f6c7('0xe05')](_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x1709')]/_0x58eeac['inbound'][_0x16f6c7('0xacf')]),_0x58eeac['config']['unit'])['format'](_0x58eeac[_0x16f6c7('0x1a22')][_0x16f6c7('0x22b4')],_0x58eeac[_0x16f6c7('0x1a22')]),_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0x2201')]=_0x59f37a()[_0x16f6c7('0x2b3')](Math[_0x16f6c7('0xe05')](_0x58eeac['inbound']['sumBillable']/_0x58eeac[_0x16f6c7('0x2e4')][_0x16f6c7('0xacf')]),_0x58eeac[_0x16f6c7('0x1a22')]['unit'])[_0x16f6c7('0x22b4')](_0x58eeac[_0x16f6c7('0x1a22')][_0x16f6c7('0x22b4')],_0x58eeac[_0x16f6c7('0x1a22')]);}function _0x358fcf(){const _0x570dd6=_0x531689;if(Object[_0x570dd6('0x2163')](_0x58eeac['whatsappAccounts'])[_0x570dd6('0x2566')]>0x0)for(let _0x527813=0x0;_0x527813<_0x370a95['rows']['length'];_0x527813+=0x1){if(_0x2fb4b4(_0x370a95[_0x570dd6('0x25df')][_0x527813])){const _0x26895e=_0x370a95[_0x570dd6('0x25df')][_0x527813];_0x2188d9(_0x26895e,!![]),_0x25e885();}}}function _0x2fb4b4(_0x4d09ba){const _0xe894a8=_0x531689;if(_0x283545()['some'](_0x58eeac[_0xe894a8('0xa47')],{'id':_0x283545()[_0xe894a8('0x420')](_0x4d09ba[_0xe894a8('0x25b8')])}))return!![];return![];}function _0x4c8ce2(_0x22adaf){const _0x5af80c=_0x531689,_0x2415af=_0x59f37a()()['utcOffset'](0x0,!![])[_0x5af80c('0x13e4')](_0x5af80c('0xf')),_0x1a16ce=_0x59f37a()()[_0x5af80c('0x2827')](0x0,!![])[_0x5af80c('0x142e')]('day');return _0x59f37a()(_0x22adaf)[_0x5af80c('0x2827')](0x0,!![])[_0x5af80c('0x787')](_0x2415af,_0x1a16ce);}function _0x5e1a20(_0x1f7db8){_0x2fb4b4(_0x1f7db8)&&_0x4c8ce2(_0x1f7db8['createdAt'])&&(_0x2188d9(_0x1f7db8,!![]),_0x25e885());}function _0xcce872(_0xa58a2e){const _0x2dc49b=_0x531689;_0x2fb4b4(_0xa58a2e)&&_0x4c8ce2(_0xa58a2e[_0x2dc49b('0x172')])&&(_0x2188d9(_0xa58a2e,![]),_0x25e885());}_0x115d2f['$on']('$destroy',function(){const _0x2f3819=_0x531689;_0x1542ff[_0x2f3819('0x277f')](_0x2f3819('0xab3')),_0x1542ff['removeAllListeners'](_0x2f3819('0x79d'));});}const _0x260594=_0x25eaab;_0x357329[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x357329(_0x1bece0){const _0x2f7ae6=_0x34e79e;_0x1bece0[_0x2f7ae6('0x249b')]('app.dashboards.general.voice',{'url':_0x2f7ae6('0x2680'),'data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x508655,'controller':_0x2f7ae6('0x1dc0')}},'resolve':{'rpcQueues':[_0x2f7ae6('0x1318'),function(_0x4510c3){const _0xbc708c=_0x2f7ae6;return _0x4510c3[_0xbc708c('0x2322')](_0xbc708c('0x5bb'));}],'inboundQueues':[_0x2f7ae6('0x1318'),_0x2f7ae6('0x1b04'),function(_0x4dab97,_0x5904e9){const _0x5673bf=_0x2f7ae6;return _0x5904e9[_0x5673bf('0x1516')](_0x5673bf('0xe23'))?_0x4dab97[_0x5673bf('0x2322')](_0x5673bf('0x18df'),{'fields':'id,name','type':_0x5673bf('0x2e4'),'nolimit':!![]}):_0x4dab97['resolve'](_0x5673bf('0x27c5'),{'id':_0x5904e9[_0x5673bf('0x24cc')]()[_0x5673bf('0x237f')],'section':_0x5673bf('0x182e'),'fields':_0x5673bf('0x1338'),'type':_0x5673bf('0x2e4'),'channel':'voice','nolimit':!![]});}],'outbound':['apiResolver',function(_0x2344c8){const _0x2e32d4=_0x2f7ae6;return _0x2344c8[_0x2e32d4('0x2322')]('rpc@getOutbound');}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x2f7ae6('0x249b')](_0x2f7ae6('0x17de'),{'url':'/dialer','data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x2fdc80,'controller':_0x2f7ae6('0x1ae7')}},'resolve':{'rpcQueues':['apiResolver',function(_0x55c314){const _0x287191=_0x2f7ae6;return _0x55c314[_0x287191('0x2322')](_0x287191('0x5bb'));}],'outboundQueues':[_0x2f7ae6('0x1318'),_0x2f7ae6('0x1b04'),function(_0x4b57a4,_0x5ed4dc){const _0x22645=_0x2f7ae6;return _0x5ed4dc[_0x22645('0x1516')]('admin')?_0x4b57a4['resolve'](_0x22645('0x18df'),{'fields':_0x22645('0x1338'),'type':_0x22645('0x1'),'nolimit':!![]}):_0x4b57a4[_0x22645('0x2322')](_0x22645('0x27c5'),{'id':_0x5ed4dc[_0x22645('0x24cc')]()[_0x22645('0x237f')],'section':'QueueCampaigns','fields':_0x22645('0x1338'),'type':'outbound','channel':_0x22645('0x1f60'),'nolimit':!![]});}],'rpcCampaigns':[_0x2f7ae6('0x1318'),function(_0x563122){return _0x563122['resolve']('rpc@getCampaigns');}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')})[_0x2f7ae6('0x249b')](_0x2f7ae6('0x19ec'),{'url':_0x2f7ae6('0x227a'),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x3215a9,'controller':_0x2f7ae6('0x1429')}},'resolve':{'chatInteractions':[_0x2f7ae6('0x1318'),function(_0x3eb67e){const _0x487198=_0x2f7ae6;return _0x3eb67e[_0x487198('0x2322')](_0x487198('0x27fb'),{'createdAt':{'$gte':_0x59f37a()()[_0x487198('0x13e4')](_0x487198('0xf'))[_0x487198('0x2827')](0x0,!![])[_0x487198('0x22b4')](),'$lte':_0x59f37a()()[_0x487198('0x142e')](_0x487198('0xf'))[_0x487198('0x2827')](0x0,!![])[_0x487198('0x22b4')]()},'nolimit':!![]});}],'chatWebsites':[_0x2f7ae6('0x1318'),_0x2f7ae6('0x1b04'),function(_0x269fb9,_0x3f97e5){const _0xe553ce=_0x2f7ae6;return _0x3f97e5[_0xe553ce('0x1516')](_0xe553ce('0xe23'))?_0x269fb9['resolve'](_0xe553ce('0x99f'),{'fields':_0xe553ce('0x106a'),'sort':_0xe553ce('0x1cee'),'limit':0xa,'offset':0x0}):_0x269fb9[_0xe553ce('0x2322')](_0xe553ce('0x27c5'),{'id':_0x3f97e5[_0xe553ce('0x24cc')]()[_0xe553ce('0x237f')],'section':_0xe553ce('0x453'),'fields':_0xe553ce('0x106a'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')})[_0x2f7ae6('0x249b')](_0x2f7ae6('0xe7'),{'url':_0x2f7ae6('0x16e4'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x4f69ec,'controller':_0x2f7ae6('0xaf9')}},'resolve':{'mailInteractions':[_0x2f7ae6('0x1318'),function(_0x57c90e){const _0x55a5b2=_0x2f7ae6;return _0x57c90e[_0x55a5b2('0x2322')](_0x55a5b2('0xf91'),{'createdAt':{'$gte':_0x59f37a()()[_0x55a5b2('0x13e4')](_0x55a5b2('0xf'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x59f37a()()[_0x55a5b2('0x142e')](_0x55a5b2('0xf'))['utcOffset'](0x0,!![])['format']()},'nolimit':!![]});}],'mailAccounts':['apiResolver',_0x2f7ae6('0x1b04'),function(_0x3a6ec4,_0x3c0124){const _0x1a2764=_0x2f7ae6;return _0x3c0124['hasRole'](_0x1a2764('0xe23'))?_0x3a6ec4['resolve']('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,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x1a2764('0x1cee'),'limit':0xa,'offset':0x0}):_0x3a6ec4[_0x1a2764('0x2322')](_0x1a2764('0x27c5'),{'id':_0x3c0124[_0x1a2764('0x24cc')]()[_0x1a2764('0x237f')],'section':_0x1a2764('0x1efc'),'fields':_0x1a2764('0x1ce5'),'sort':_0x1a2764('0x1cee'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})['state'](_0x2f7ae6('0x695'),{'url':'/sms','data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x442120,'controller':_0x2f7ae6('0x1a97')}},'resolve':{'smsInteractions':[_0x2f7ae6('0x1318'),function(_0x41321c){const _0x2a50ba=_0x2f7ae6;return _0x41321c[_0x2a50ba('0x2322')](_0x2a50ba('0x148e'),{'createdAt':{'$gte':_0x59f37a()()[_0x2a50ba('0x13e4')]('day')[_0x2a50ba('0x2827')](0x0,!![])[_0x2a50ba('0x22b4')](),'$lte':_0x59f37a()()[_0x2a50ba('0x142e')](_0x2a50ba('0xf'))['utcOffset'](0x0,!![])[_0x2a50ba('0x22b4')]()},'nolimit':!![]});}],'smsAccounts':['apiResolver',_0x2f7ae6('0x1b04'),function(_0x44d9d6,_0x2e7b40){const _0x311d8c=_0x2f7ae6;return _0x2e7b40[_0x311d8c('0x1516')]('admin')?_0x44d9d6[_0x311d8c('0x2322')]('smsAccount@get',{'fields':_0x311d8c('0x2671'),'sort':_0x311d8c('0x1cee'),'limit':0xa,'offset':0x0}):_0x44d9d6[_0x311d8c('0x2322')]('userProfile@getResources',{'id':_0x2e7b40[_0x311d8c('0x24cc')]()[_0x311d8c('0x237f')],'section':_0x311d8c('0x1894'),'fields':_0x311d8c('0x2671'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')})[_0x2f7ae6('0x249b')](_0x2f7ae6('0xba7'),{'url':_0x2f7ae6('0xdfa'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x502c4f,'controller':_0x2f7ae6('0x8c0')}},'resolve':{'openchannelInteractions':[_0x2f7ae6('0x1318'),function(_0x2ab9c8){const _0x3a076f=_0x2f7ae6;return _0x2ab9c8[_0x3a076f('0x2322')]('openchannelInteraction@get',{'createdAt':{'$gte':_0x59f37a()()[_0x3a076f('0x13e4')]('day')[_0x3a076f('0x2827')](0x0,!![])[_0x3a076f('0x22b4')](),'$lte':_0x59f37a()()[_0x3a076f('0x142e')](_0x3a076f('0xf'))['utcOffset'](0x0,!![])[_0x3a076f('0x22b4')]()},'nolimit':!![]});}],'openchannelAccounts':[_0x2f7ae6('0x1318'),_0x2f7ae6('0x1b04'),function(_0x51af57,_0x2b0b02){const _0x31ea15=_0x2f7ae6;return _0x2b0b02['hasRole'](_0x31ea15('0xe23'))?_0x51af57['resolve']('openchannelAccount@get',{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x31ea15('0x1cee'),'nolimit':!![]}):_0x51af57[_0x31ea15('0x2322')](_0x31ea15('0x27c5'),{'id':_0x2b0b02[_0x31ea15('0x24cc')]()[_0x31ea15('0x237f')],'section':_0x31ea15('0x1b13'),'fields':_0x31ea15('0x459'),'sort':_0x31ea15('0x1cee'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')})['state']('app.dashboards.general.fax',{'url':'/fax','data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x5d77bf,'controller':'UserFaxDashboardGeneralController\x20as\x20vm'}},'resolve':{'faxInteractions':[_0x2f7ae6('0x1318'),function(_0x139d8d){const _0x277dee=_0x2f7ae6;return _0x139d8d['resolve']('faxInteraction@get',{'createdAt':{'$gte':_0x59f37a()()[_0x277dee('0x13e4')](_0x277dee('0xf'))[_0x277dee('0x2827')](0x0,!![])[_0x277dee('0x22b4')](),'$lte':_0x59f37a()()[_0x277dee('0x142e')](_0x277dee('0xf'))[_0x277dee('0x2827')](0x0,!![])[_0x277dee('0x22b4')]()},'nolimit':!![]});}],'faxAccounts':['apiResolver',_0x2f7ae6('0x1b04'),function(_0x5e5e93,_0x13e162){const _0x2d8bb1=_0x2f7ae6;return _0x13e162[_0x2d8bb1('0x1516')](_0x2d8bb1('0xe23'))?_0x5e5e93[_0x2d8bb1('0x2322')](_0x2d8bb1('0x357'),{'fields':_0x2d8bb1('0x10e'),'sort':_0x2d8bb1('0x1cee'),'limit':0xa,'offset':0x0}):_0x5e5e93[_0x2d8bb1('0x2322')](_0x2d8bb1('0x27c5'),{'id':_0x13e162[_0x2d8bb1('0x24cc')]()[_0x2d8bb1('0x237f')],'section':'FaxAccounts','fields':_0x2d8bb1('0x10e'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')})[_0x2f7ae6('0x249b')]('app.dashboards.general.whatsapp',{'url':_0x2f7ae6('0x1d27'),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x40824b,'controller':_0x2f7ae6('0x318')}},'resolve':{'whatsappInteractions':[_0x2f7ae6('0x1318'),function(_0x1457dd){const _0x38b9a8=_0x2f7ae6;return _0x1457dd[_0x38b9a8('0x2322')]('whatsappInteraction@get',{'createdAt':{'$gte':_0x59f37a()()[_0x38b9a8('0x13e4')](_0x38b9a8('0xf'))[_0x38b9a8('0x2827')](0x0,!![])[_0x38b9a8('0x22b4')](),'$lte':_0x59f37a()()['endOf'](_0x38b9a8('0xf'))[_0x38b9a8('0x2827')](0x0,!![])[_0x38b9a8('0x22b4')]()},'nolimit':!![]});}],'whatsappAccounts':[_0x2f7ae6('0x1318'),'Auth',function(_0x1b8f35,_0x123365){const _0xcbe9c6=_0x2f7ae6;return _0x123365[_0xcbe9c6('0x1516')](_0xcbe9c6('0xe23'))?_0x1b8f35[_0xcbe9c6('0x2322')](_0xcbe9c6('0x1404'),{'fields':_0xcbe9c6('0xeab'),'sort':_0xcbe9c6('0x1cee'),'limit':0xa,'offset':0x0}):_0x1b8f35[_0xcbe9c6('0x2322')](_0xcbe9c6('0x27c5'),{'id':_0x123365['getCurrentUser']()[_0xcbe9c6('0x237f')],'section':_0xcbe9c6('0x284b'),'fields':_0xcbe9c6('0xeab'),'sort':_0xcbe9c6('0x1cee'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x2f7ae6('0x23f6')});}angular[_0x34e79e('0x16e2')]('app.dashboards.general.user',[])['config'](_0x357329)[_0x34e79e('0xb44')](_0x34e79e('0x1f39'),_0x5875b1)[_0x34e79e('0xb44')]('UserVoiceDashboardDialerController',_0x16cc5e)[_0x34e79e('0xb44')](_0x34e79e('0xb59'),_0x5b9a8f)[_0x34e79e('0xb44')](_0x34e79e('0x66a'),_0x2f2641)['controller'](_0x34e79e('0xcdf'),_0x31ed0c)[_0x34e79e('0xb44')](_0x34e79e('0x1d'),_0x2c0670)[_0x34e79e('0x916')](_0x34e79e('0x2061'),_0x4fddc9)[_0x34e79e('0x227e')]('initializeRealtimeQueue',_0x2f7574)[_0x34e79e('0x227e')](_0x34e79e('0x39a'),_0x2db82e)['controller'](_0x34e79e('0x215e'),_0x26e7d8)['controller']('UserVoiceDashboardGeneralController',_0x4c9069)[_0x34e79e('0xb44')](_0x34e79e('0x206a'),_0x260594);const _0x18e570=_0x18dd13['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog.html',_0x3dec7b=_0x18dd13['p']+_0x34e79e('0x185');var _0x372146=_0x18dd13(0x1d2),_0x18710c=_0x18dd13['n'](_0x372146);_0x4b0d90['$inject']=[_0x34e79e('0x1ce0'),_0x34e79e('0x1a5c'),_0x34e79e('0x1bf5'),_0x34e79e('0x1b04')],_0x304ac7[_0x34e79e('0x2d9')]=['$scope','$timeout',_0x34e79e('0x123b'),'$window','$translate',_0x34e79e('0x1580'),_0x34e79e('0x1b04'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x18c3'),_0x34e79e('0x18ac'),_0x34e79e('0x1379'),'globalTags',_0x34e79e('0x130d'),'setting',_0x34e79e('0x88a'),_0x34e79e('0x9c4')];function _0x304ac7(_0x2d2e84,_0x504e6d,_0x3d0e03,_0x17cefd,_0xd1db54,_0x516081,_0x2cf473,_0x51c6f9,_0x57baf6,_0x8eb06c,_0xcefcd,_0x5ae7f6,_0x1cfbdb,_0xb5228d,_0x5eda57,_0x113ed4,_0x579fc6,_0x33dbb7){const _0x230d05=_0x34e79e,_0x280ea5=this;_0x280ea5[_0x230d05('0x130d')]=_0x5eda57,_0x280ea5[_0x230d05('0x1af0')]=_0x113ed4,_0x280ea5[_0x230d05('0x191e')]=_0x33dbb7[_0x230d05('0x191e')](),_0x280ea5['user']=_0x2cf473[_0x230d05('0x24cc')](),_0x280ea5['currentTab']=0x0,_0x280ea5[_0x230d05('0x6cf')]={},_0x280ea5[_0x230d05('0xfb1')]={},_0x280ea5[_0x230d05('0x1e8d')]={},_0x280ea5[_0x230d05('0x18c3')]=_0xcefcd||{'count':0x0,'rows':[]},_0x280ea5[_0x230d05('0x18ac')]=_0x5ae7f6||{'count':0x0,'rows':[]},_0x280ea5[_0x230d05('0x1379')]=_0x1cfbdb||{'count':0x0,'rows':[]},_0x280ea5[_0x230d05('0xf48')]=_0xb5228d||{'count':0x0,'rows':[]},_0x280ea5['onClickTab']=_0x1fc893,_0x280ea5['isActiveTab']=_0x51486a,_0x280ea5[_0x230d05('0x45d')]=_0x129ee3,_0x280ea5[_0x230d05('0x11eb')]=_0x4386c9,_0x280ea5[_0x230d05('0x1442')]=_0x37bfd2,_0x280ea5[_0x230d05('0xaa7')]=_0x5518fc,_0x280ea5[_0x230d05('0x18cf')]=_0x4b716e,_0x280ea5[_0x230d05('0x9c9')]=_0x57187e,_0x280ea5[_0x230d05('0x301')]=_0x3173d3,_0x57baf6['on'](_0x230d05('0x258e'),_0x232cee),_0x57baf6['on']('trigger:jscripty',_0x28405e),_0x57baf6['on'](_0x230d05('0x15a4'),_0x1545ec),_0x57baf6['on']('trigger:browser:url',_0x217f24),_0x57baf6['on'](_0x230d05('0x13ca'),_0x9cf3a0),_0x57baf6['on']('notification:save',_0xd9f385),_0x57baf6['on'](_0x230d05('0x14a1'),_0x35a47a),_0x57baf6['on'](_0x230d05('0x1aab'),_0x203401),_0x57baf6['on'](_0x230d05('0xe0'),_0x203401),_0x4c7819();function _0x4c7819(){const _0x421245=_0x230d05;let _0x1d0507=_0x17cefd['localStorage']['getItem']('motion2.user:'+_0x280ea5['user']['id']);if(_0x1d0507)try{_0x1d0507=JSON[_0x421245('0xe0b')](_0x1d0507),_0x280ea5[_0x421245('0xfb1')]=_0x1d0507[_0x421245('0xfb1')]?_0x1d0507[_0x421245('0xfb1')]:{},_0x280ea5[_0x421245('0x27a2')]=_0x1d0507[_0x421245('0x27a2')]?_0x1d0507[_0x421245('0x27a2')]:0x0,_0x31938f(_0x280ea5['tabs'][_0x280ea5['currentTab']]);}catch(_0x17a026){console[_0x421245('0x5e8')](_0x17a026);}}function _0x57187e(_0xe0a3a9){const _0x4c7fd8=_0x230d05,_0x48907c={};for(const _0x35042f in _0x280ea5[_0x4c7fd8('0xfb1')]){typeof _0x280ea5[_0x4c7fd8('0xfb1')][_0x35042f]!==_0x4c7fd8('0xedb')&&(_0x48907c[_0x35042f]=_0x283545()['pick'](_0x280ea5['tabs'][_0x35042f],[_0x4c7fd8('0x1d7'),_0x4c7fd8('0x14e4'),_0x4c7fd8('0x2645'),_0x4c7fd8('0x7a'),'color',_0x4c7fd8('0x1201'),'id',_0x4c7fd8('0x100f'),'badges']),!_0x283545()[_0x4c7fd8('0x1015')](_0x280ea5[_0x4c7fd8('0xfb1')][_0x35042f]['contact'])&&(_0x48907c[_0x35042f]['contact']=_0x283545()['pick'](_0x280ea5[_0x4c7fd8('0xfb1')][_0x35042f][_0x4c7fd8('0xc17')],['id','ListId'])),!_0x283545()[_0x4c7fd8('0x1015')](_0x280ea5['tabs'][_0x35042f][_0x4c7fd8('0x565')])&&(_0x48907c[_0x35042f]['calls']=_0x280ea5['tabs'][_0x35042f][_0x4c7fd8('0x565')]),_0x280ea5[_0x4c7fd8('0xfb1')][_0x35042f][_0x4c7fd8('0xd61')]&&(_0x48907c[_0x35042f][_0x4c7fd8('0xd61')]=_0x283545()['pick'](_0x280ea5['tabs'][_0x35042f][_0x4c7fd8('0xd61')],['id',_0x4c7fd8('0x22fa'),_0x4c7fd8('0x26b2'),_0x4c7fd8('0x965'),_0x4c7fd8('0xfc2'),_0x4c7fd8('0xcba'),_0x4c7fd8('0x25b8'),_0x4c7fd8('0x215d'),_0x4c7fd8('0x64e')])));}let _0x304c2f=JSON[_0x4c7fd8('0xe0b')](_0x17cefd[_0x4c7fd8('0x155e')][_0x4c7fd8('0xced')](_0x4c7fd8('0x85c')+_0x280ea5[_0x4c7fd8('0x1e6a')]['id']));_0x304c2f?(_0x304c2f['tabs']=_0x48907c,_0x304c2f[_0x4c7fd8('0x27a2')]=_0x280ea5[_0x4c7fd8('0x27a2')]):_0x304c2f={'tabs':_0x48907c,'currentTab':_0x280ea5[_0x4c7fd8('0x27a2')]},_0x17cefd[_0x4c7fd8('0x155e')][_0x4c7fd8('0x23dc')](_0x4c7fd8('0x85c')+_0x280ea5[_0x4c7fd8('0x1e6a')]['id'],JSON[_0x4c7fd8('0x1be0')](_0x304c2f)),_0xe0a3a9&&_0x31938f(_0xe0a3a9);}function _0x31938f(_0xf2d032){const _0x4760ab=_0x230d05;if(_0x283545()[_0x4760ab('0x1015')](_0xf2d032)||_0xf2d032&&_0xf2d032[_0x4760ab('0x1d7')]==='interaction'){const _0x31be85={'id':_0x280ea5[_0x4760ab('0x1e6a')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x5e9ea3 in _0x280ea5[_0x4760ab('0xfb1')]){typeof _0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3]!==_0x4760ab('0xedb')&&(typeof _0x31be85[_0x4760ab('0x1fe2')][_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3][_0x4760ab('0x2645')]]!==_0x4760ab('0xedb')&&_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3][_0x4760ab('0xd61')]&&!_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3]['interaction'][_0x4760ab('0x215d')]&&(_0x31be85[_0x4760ab('0x1fe2')][_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3][_0x4760ab('0x2645')]]+=0x1,_0x31be85[_0x4760ab('0xd61')][_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3][_0x4760ab('0x2645')]][_0x4760ab('0x13e3')](_0x280ea5[_0x4760ab('0xfb1')][_0x5e9ea3][_0x4760ab('0xd61')]['id'])));}if(!_0x283545()[_0x4760ab('0x219d')](_0x280ea5[_0x4760ab('0x1e8d')],_0x31be85[_0x4760ab('0x1fe2')]))return _0x280ea5[_0x4760ab('0x1e8d')]=_0x31be85[_0x4760ab('0x1fe2')],_0x51c6f9[_0x4760ab('0x1bfc')][_0x4760ab('0x278c')](_0x31be85);}}function _0x3173d3(_0xb5321a){const _0x20f670=_0x230d05;let _0x4462d2=![];const _0x976546=_0x3d0e03[_0x20f670('0x112e')]()[_0x20f670('0x14e4')](_0xb5321a[_0x20f670('0x1d7')]==='interaction'?'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?':_0x20f670('0xb56')+_0xb5321a[_0x20f670('0x1d7')]+'?')[_0x20f670('0x1a95')](_0xb5321a[_0x20f670('0x1d7')]==='interaction'?'':'The\x20'+_0xb5321a['type']+_0x20f670('0x1341'))[_0x20f670('0x10bc')](_0x20f670('0x15d5'))['ok'](_0xb5321a[_0x20f670('0x1d7')]===_0x20f670('0xd61')?'YES':'OK')['cancel'](_0xb5321a[_0x20f670('0x1d7')]==='interaction'?'NO':_0x20f670('0x1d8d'));if(_0xb5321a[_0x20f670('0x100f')]){let _0x5a148b=![];_0x283545()[_0x20f670('0x1534')](_0xb5321a[_0x20f670('0x565')],function(_0x2dbac2){const _0x305718=_0x20f670;_0x2dbac2[_0x305718('0x1c86')]&&(_0x5a148b=!![]);});if(_0xb5321a[_0x20f670('0x1d7')]===_0x20f670('0xc17')&&_0xb5321a[_0x20f670('0x565')][_0x20f670('0x2566')]>0x0){let _0x230131=undefined;if(_0x5a148b)_0x230131=_0x3d0e03[_0x20f670('0x204f')]()[_0x20f670('0x14e4')](_0x20f670('0x4ed'))[_0x20f670('0x1a95')]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x3d0e03['show'](_0x230131)[_0x20f670('0x1ed8')](function(){_0x230131=undefined;});else return _0x976546['_options'][_0x20f670('0x1a95')]=_0x20f670('0x475'),_0x3d0e03['show'](_0x976546)['then'](function(){_0x4b716e(_0xb5321a);});}else _0x4b716e(_0xb5321a);}else{const _0x5b4a37=_0x280ea5[_0x20f670('0x1e6a')][_0x20f670('0x2a1')]||_0x280ea5[_0x20f670('0x1e6a')][_0x20f670('0x23a5')]||_0x280ea5[_0x20f670('0x1e6a')][_0x20f670('0x20cd')]||_0x280ea5[_0x20f670('0x1e6a')][_0x20f670('0x1098')]||_0x280ea5[_0x20f670('0x1e6a')]['faxPause'];return _0x4462d2=![],_0xb5321a[_0x20f670('0x1d7')]==='interaction'&&(_0x4462d2=_0xb5321a[_0x20f670('0xd61')][_0x20f670('0x140b')][_0x20f670('0x1c86')]),_0x3d0e03[_0x20f670('0x2fa')](_0x976546)[_0x20f670('0x2788')](function(){const _0x61745f=_0x20f670;_0xb5321a['type']===_0x61745f('0xd61')&&_0x3d0e03[_0x61745f('0x2fa')]({'controller':_0x61745f('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x61745f('0x16b1')](_0x516081[_0x61745f('0x945')]),'onRemoving':function(){const _0x35942f=_0x61745f;_0x280ea5['user']&&_0x4462d2&&!_0x5b4a37&&_0x51c6f9[_0x35942f('0x1e6a')]['unpause']({'id':_0x280ea5[_0x35942f('0x1e6a')]['id']})[_0x35942f('0x1714')][_0x35942f('0x1cb5')](function(_0xe079f){const _0x5b2189=_0x35942f;console[_0x5b2189('0x5e8')](_0xe079f);});},'clickOutsideToClose':!_0x4462d2,'escapeToClose':!_0x4462d2,'locals':{'user':_0x280ea5[_0x61745f('0x1e6a')],'channel':_0xb5321a[_0x61745f('0x2645')],'interaction':_0xb5321a['interaction']}}),_0x4b716e(_0xb5321a);})[_0x20f670('0x1cb5')](function(){const _0xa75c26=_0x20f670;_0xb5321a[_0xa75c26('0x1d7')]===_0xa75c26('0xd61')&&_0x4b716e(_0xb5321a);});}}function _0x521447(_0x2ab419){const _0x458c7b=_0x230d05;if(_0x2ab419[_0x458c7b('0x2645')]&&_0x2ab419['interaction'])return _0x51c6f9['user']['remove'+_0x283545()['upperFirst'](_0x2ab419[_0x458c7b('0x2645')])+'Interactions']({'id':_0x280ea5['user']['id'],'ids':[_0x2ab419['interaction']['id']]})[_0x458c7b('0x1714')][_0x458c7b('0x1cb5')](function(_0x337b80){const _0x3f70e2=_0x458c7b;console[_0x3f70e2('0x5e8')](_0x337b80);});}function _0x4b716e(_0x5378d6){const _0xeea15b=_0x230d05;if(_0x280ea5[_0xeea15b('0xfb1')][_0x5378d6['id']]){_0x521447(_0x280ea5[_0xeea15b('0xfb1')][_0x5378d6['id']]),delete _0x280ea5[_0xeea15b('0xfb1')][_0x5378d6['id']],_0x280ea5[_0xeea15b('0x27a2')]=0x0,_0x57187e(_0x5378d6);if(_0x5378d6[_0xeea15b('0x1d7')]==='interaction')return _0x51c6f9[_0x5378d6[_0xeea15b('0x2645')]+_0xeea15b('0x22a7')][_0xeea15b('0x1335')]({'id':_0x5378d6['interaction']['id']})[_0xeea15b('0x1714')][_0xeea15b('0x2788')](function(_0x1f97a8){const _0xfe19f5=_0xeea15b;return _0x51c6f9['user'][_0xfe19f5('0x1a90')+_0x283545()[_0xfe19f5('0x2265')](_0x5378d6[_0xfe19f5('0x2645')])+_0xfe19f5('0x80a')]({'id':_0x280ea5['user']['id'],'ids':[_0x1f97a8['id']]})['$promise'];})['catch'](function(_0x53834f){const _0x422309=_0xeea15b;console[_0x422309('0x5e8')](_0x53834f);});}}function _0x5518fc(_0x134d18){const _0x53c62f=_0x230d05;_0x134d18['id']=_0x283545()[_0x53c62f('0x130')](0x2540be400),_0x134d18['openedAt']=new Date(),_0x134d18[_0x53c62f('0x100f')]=![],_0x134d18[_0x53c62f('0x5a6')]=0x0,_0x280ea5['tabs'][_0x134d18['id']]=_0x134d18,_0x280ea5[_0x53c62f('0x27a2')]=_0x134d18['id'],_0x57187e(_0x134d18);}function _0x51486a(_0x3f90fc){const _0x377474=_0x230d05;return _0x3f90fc===_0x280ea5[_0x377474('0x27a2')];}function _0x1fc893(_0x45885b){const _0x5a369e=_0x230d05;_0x280ea5[_0x5a369e('0x27a2')]=_0x45885b,_0x57187e(_0x280ea5['tabs'][_0x45885b]);}function _0x129ee3(_0x52724e){const _0x32d3cd=_0x230d05;return _0x283545()[_0x32d3cd('0x20e8')](_0x280ea5[_0x32d3cd('0xfb1')],function(_0x246471){const _0x26330f=_0x32d3cd;return _0x246471[_0x26330f('0x1d7')]===_0x26330f('0xd61')&&_0x246471[_0x26330f('0xd61')]&&_0x246471[_0x26330f('0xd61')]['id']==_0x52724e[_0x26330f('0x1589')]&&_0x246471[_0x26330f('0x2645')]==_0x52724e[_0x26330f('0x2645')];});}function _0x2d62db(_0xfcbd1b){const _0xc62f5d=_0x230d05;let _0x3b2821='';if(_0xfcbd1b){if(_0xfcbd1b[_0xc62f5d('0x26da')]||_0xfcbd1b[_0xc62f5d('0x26b9')])_0xfcbd1b[_0xc62f5d('0x26da')]&&(_0x3b2821+=_0xfcbd1b['firstName']+'\x20'),_0xfcbd1b[_0xc62f5d('0x26b9')]&&(_0x3b2821+=_0xfcbd1b[_0xc62f5d('0x26b9')]);else _0xfcbd1b[_0xc62f5d('0x1224')]&&(_0x3b2821=_0xfcbd1b[_0xc62f5d('0x1224')]);}return _0x3b2821;}function _0x20706e(_0x34cd16){const _0x23deca=_0x230d05;switch(_0x34cd16){case'chat':return _0x23deca('0x1bc4');case _0x23deca('0x2795'):return _0x23deca('0x2772');case'sms':return _0x23deca('0x223f');case _0x23deca('0x18aa'):return _0x23deca('0x2729');case'fax':return _0x23deca('0xe77');case _0x23deca('0x195d'):return _0x23deca('0x2225');default:return _0x23deca('0x1bc4');}}function _0x192eaa(_0x25a5da){const _0x3944e3=_0x230d05;switch(_0x25a5da){case _0x3944e3('0x231'):return _0x3944e3('0x17d1');case _0x3944e3('0x2795'):return _0x3944e3('0xb55');case _0x3944e3('0x529'):return'orange';case _0x3944e3('0x18aa'):return _0x3944e3('0x1441');case _0x3944e3('0x10cf'):return _0x3944e3('0x687');case _0x3944e3('0x195d'):return _0x3944e3('0x1226');default:return _0x3944e3('0x5f7');}}function _0x4386c9(_0x2574ea,_0x22cc0f){const _0x278204=_0x230d05,_0x3f53c0={'type':'contact','title':_0x2574ea?_0x2d62db(_0x2574ea):_0xd1db54[_0x278204('0x1b11')](_0x278204('0x105a')),'icon':_0x278204('0x168'),'color':_0x278204('0x8cd'),'contact':_0x2574ea,'calls':_0x22cc0f?[_0x22cc0f]:[],'autoCreate':_0x22cc0f?_0x22cc0f[_0x278204('0x1201')]:0x0};if(_0x22cc0f){if(_0x22cc0f['xmd-cdrtype']&&_0x22cc0f[_0x278204('0x1bd8')]==='dialer')_0x22cc0f[_0x278204('0x205e')]=_0x22cc0f[_0x278204('0x5af')]?_0x59f37a()(_0x22cc0f[_0x278204('0x5af')],_0x278204('0xe8e'))[_0x278204('0x2337')]():new Date();else{if(_0x22cc0f[_0x278204('0x1be7')]){const _0x5e439e=_0x22cc0f[_0x278204('0x1be7')]['split']('.')[0x0];_0x22cc0f[_0x278204('0x205e')]=_0x5e439e?new Date(parseInt(_0x5e439e)*0x3e8):new Date();}}(_0x22cc0f[_0x278204('0x210c')]||_0x22cc0f[_0x278204('0x1304')])&&_0x48624b(_0x22cc0f);}if(_0x2574ea){const _0xcf453d=_0x283545()[_0x278204('0x20e8')](_0x280ea5['tabs'],function(_0x36f0bf){const _0x14047a=_0x278204;if(_0x36f0bf[_0x14047a('0xc17')]&&_0x36f0bf[_0x14047a('0xc17')]['id'])return _0x36f0bf[_0x14047a('0x1d7')]===_0x14047a('0xc17')&&_0x36f0bf['contact']&&_0x36f0bf[_0x14047a('0xc17')]['id']==_0x2574ea['id'];return _0x36f0bf[_0x14047a('0x1d7')]===_0x14047a('0xc17')&&_0x36f0bf['contact']&&_0x36f0bf[_0x14047a('0xc17')][_0x14047a('0x1224')]==_0x2574ea['phone'];});if(_0xcf453d){if(_0x22cc0f)return _0x51c6f9[_0x278204('0x99')][_0x278204('0x1335')]({'uniqueid':_0x22cc0f['uniqueid']})['$promise'][_0x278204('0x2788')](function(_0x22829b){const _0x39bbb6=_0x278204;_0x22829b&&_0x22829b[_0x39bbb6('0x25df')][_0x39bbb6('0x2566')]>0x0&&(_0x22cc0f[_0x39bbb6('0x1cdc')]=_0x283545()[_0x39bbb6('0x2716')](_0x22829b[_0x39bbb6('0x25df')])['endtime']);if(_0xcf453d[_0x39bbb6('0x565')]){const _0x368d13=_0x283545()[_0x39bbb6('0x20e8')](_0xcf453d[_0x39bbb6('0x565')],function(_0x1c3898){const _0x589fc7=_0x39bbb6;return _0x1c3898['uniqueid']===_0x22cc0f[_0x589fc7('0x1be7')];});!_0x368d13&&_0xcf453d[_0x39bbb6('0x565')]['push'](_0x22cc0f);}else _0xcf453d[_0x39bbb6('0x565')]=[_0x22cc0f];_0x280ea5[_0x39bbb6('0x27a2')]=_0xcf453d['id'];});}else{if(_0x2574ea[_0x278204('0x354')])return _0x51c6f9[_0x278204('0x1db2')][_0x278204('0x1335')]({'ListId':_0x2574ea['ListId']})[_0x278204('0x1714')][_0x278204('0x2788')](function(_0x39ef6f){const _0x6247be=_0x278204;return _0x3f53c0[_0x6247be('0x818')]=_0x39ef6f,_0x51c6f9['cmList']['getCustomFields']({'id':_0x2574ea[_0x6247be('0x354')]})[_0x6247be('0x1714')];})[_0x278204('0x2788')](function(_0x7b2148){const _0x1b4d8e=_0x278204;_0x3f53c0[_0x1b4d8e('0x132')]=_0x7b2148;})[_0x278204('0x1cb5')](_0x309d27())[_0x278204('0x1ed8')](function(){_0x5518fc(_0x3f53c0);});else _0x5518fc(_0x3f53c0);}}else _0x5518fc(_0x3f53c0);}function _0x37bfd2(_0x411e1b,_0x110267){const _0x5ecf21=_0x230d05;let _0x17da00=_0x283545()['find'](_0x280ea5['tabs'],function(_0x24ddbd){const _0x1ab875=a0_0x14e7;return _0x24ddbd[_0x1ab875('0x1d7')]===_0x1ab875('0xd61')&&_0x24ddbd['interaction']&&_0x24ddbd[_0x1ab875('0xd61')]['id']===_0x110267['id']&&_0x24ddbd['channel']===_0x411e1b;});_0x17da00?(_0x17da00['isDraft']=_0x110267[_0x5ecf21('0x2ee')]||![],_0x280ea5[_0x5ecf21('0x27a2')]=_0x17da00['id']):(_0x17da00={'type':_0x5ecf21('0xd61'),'title':_0x411e1b?_0x411e1b['toUpperCase']():_0x5ecf21('0x18aa'),'icon':_0x20706e(_0x411e1b),'color':_0x192eaa(_0x411e1b),'channel':_0x411e1b,'interaction':_0x110267,'isDraft':_0x110267['isDraft']||![]},_0x5518fc(_0x17da00));}function _0x14e462(_0x5a2223){const _0x2e75bc=_0x230d05,_0x52b7b1={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x2e75bc('0x50d'),'body':_0x5a2223['queue']?_0x2e75bc('0x16f3')+_0x5a2223[_0x2e75bc('0x1ab4')]:'','focusOnclick':!![],'closeOnClick':!![]};_0x579fc6[_0x2e75bc('0x2fa')](_0x5a2223[_0x2e75bc('0x14e4')],_0x52b7b1);}function _0x5626c9(_0x1b47c5){const _0x4181c0=_0x230d05;_0x579fc6[_0x4181c0('0x19b2')]()?_0x579fc6[_0x4181c0('0x14d8')]()[_0x4181c0('0x2788')](function(){_0x14e462(_0x1b47c5);},function(_0x460d20){const _0xd9df16=_0x4181c0;console['error'](_0xd9df16('0xa3'),_0x460d20);}):console[_0x4181c0('0x5e8')](_0x4181c0('0x4bb'));}function _0xd9f385(_0x15f906){const _0x4e0135=_0x230d05;if(_0x15f906&&_0x15f906[_0x4e0135('0x1be7')]){_0x5626c9(_0x15f906);const _0x1ca572=_0x129ee3(_0x15f906);if(_0x1ca572){if(_0x51c6f9[_0x15f906[_0x4e0135('0x2645')]+_0x4e0135('0x217')])return _0x280ea5['currentTab']!==_0x1ca572['id']&&(_0x1ca572[_0x4e0135('0x5a6')]+=0x1),_0x51c6f9[_0x15f906[_0x4e0135('0x2645')]+_0x4e0135('0x217')]['accept']({'id':_0x15f906['id'],'UserId':_0x280ea5[_0x4e0135('0x1e6a')]['id']})[_0x4e0135('0x1714')][_0x4e0135('0x1cb5')](_0x309d27());}else _0x8eb06c[_0x4e0135('0x790')]({'title':_0x15f906[_0x4e0135('0x14e4')],'msg':_0x15f906[_0x4e0135('0x1639')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x15f906[_0x4e0135('0x216d')],'html':!![],'shake':_0x15f906['shake']||![],'onAdd':function(){const _0x136b03=_0x4e0135;_0x280ea5[_0x136b03('0x6cf')][_0x15f906[_0x136b03('0x1be7')]]=this['id'];},'onAccept':function(){const _0x424e5b=_0x4e0135;_0x35a47a(_0x15f906);if(_0x51c6f9[_0x15f906['channel']+_0x424e5b('0x217')])return _0x51c6f9[_0x15f906['channel']+_0x424e5b('0x217')][_0x424e5b('0xdee')]({'id':_0x15f906['id'],'UserId':_0x280ea5[_0x424e5b('0x1e6a')]['id'],'manual':!![]})[_0x424e5b('0x1714')]['then'](function(_0x53184b){const _0x4bcae6=_0x424e5b;_0x37bfd2(_0x53184b[_0x4bcae6('0x2645')],_0x53184b[_0x4bcae6('0xd61')]),_0x8eb06c[_0x4bcae6('0x173b')]({'title':_0x4bcae6('0x1c13'),'msg':_0x4bcae6('0x18d5')});})[_0x424e5b('0x1cb5')](_0x309d27());},'onReject':function(){const _0x3d58ec=_0x4e0135;_0x35a47a(_0x15f906);if(_0x51c6f9[_0x15f906['channel']+_0x3d58ec('0x217')])return _0x51c6f9[_0x15f906[_0x3d58ec('0x2645')]+_0x3d58ec('0x217')][_0x3d58ec('0x9')]({'id':_0x15f906['id'],'UserId':_0x280ea5['user']['id']})['$promise'][_0x3d58ec('0x2788')](function(){const _0x1514f4=_0x3d58ec;_0x8eb06c[_0x1514f4('0x173b')]({'title':_0x1514f4('0x60c'),'msg':_0x1514f4('0xa8b')});})[_0x3d58ec('0x1cb5')](_0x309d27());}});}}function _0x35a47a(_0x37adad){const _0x504491=_0x230d05;_0x37adad&&_0x37adad[_0x504491('0x1be7')]&&(_0x280ea5['notifications'][_0x37adad[_0x504491('0x1be7')]]&&(_0x8eb06c[_0x504491('0x6c6')](_0x280ea5[_0x504491('0x6cf')][_0x37adad['uniqueid']]),delete _0x280ea5[_0x504491('0x6cf')][_0x37adad[_0x504491('0x1be7')]]));}function _0x232cee(_0x28830b){const _0x4e5032=_0x230d05;if(!_0x28830b[_0x4e5032('0x14b')]){_0x4386c9(_0x28830b[_0x4e5032('0xc17')],_0x28830b['evt']);return;}_0x3d0e03[_0x4e5032('0x2fa')]({'controller':'ContactSelectionController','controllerAs':'vm','templateUrl':_0x3dec7b,'parent':angular[_0x4e5032('0x16b1')](_0x516081['body']),'locals':{'contacts':_0x28830b[_0x4e5032('0x14b')],'callNumber':_0x28830b[_0x4e5032('0x948')]['routeId']?_0x28830b[_0x4e5032('0x948')][_0x4e5032('0x228')]:_0x28830b[_0x4e5032('0x948')][_0x4e5032('0x27e7')]}})[_0x4e5032('0x2788')](function(_0x337d7b){const _0x4766d7=_0x4e5032;_0x4386c9(_0x337d7b,_0x28830b[_0x4766d7('0x948')]);});}function _0x28405e(_0x18db80){const _0x5cbaec=_0x230d05;return _0x51c6f9[_0x5cbaec('0xf5b')][_0x5cbaec('0x1335')]({'id':_0x18db80[_0x5cbaec('0x12ea')]})[_0x5cbaec('0x1714')][_0x5cbaec('0x2788')](function(_0xa2ca37){const _0x36d9c1=_0x5cbaec;if(_0xa2ca37){if(_0x283545()[_0x36d9c1('0x1fcf')](_0x18db80[_0x36d9c1('0x2129')])){try{_0xa2ca37[_0x36d9c1('0x6e4')]=_0x18710c()['render'](_0xa2ca37['formData'],_0x283545()['merge'](_0x18db80,{'user':_0x280ea5['user']}));}catch(_0xd34b5e){console[_0x36d9c1('0x5e8')](_0xd34b5e);}_0x5518fc({'type':_0x36d9c1('0x184c'),'title':_0xa2ca37[_0x36d9c1('0x1a8d')],'icon':_0x36d9c1('0x1caf'),'color':_0x36d9c1('0x5f7'),'project':_0xa2ca37,'call':_0x18db80});}else return _0x51c6f9[_0x36d9c1('0xa83')][_0x36d9c1('0x1335')]({'id':_0x18db80['xmd-contactid']})[_0x36d9c1('0x1714')][_0x36d9c1('0x2788')](function(_0x570178){const _0x5ea638=_0x36d9c1;try{_0xa2ca37[_0x5ea638('0x6e4')]=_0x18710c()[_0x5ea638('0x26aa')](_0xa2ca37[_0x5ea638('0x6e4')],_0x283545()[_0x5ea638('0x2503')](_0x18db80,{'user':_0x280ea5[_0x5ea638('0x1e6a')],'contact':_0x570178}));}catch(_0x45d52e){console[_0x5ea638('0x5e8')](_0x45d52e);}_0x5518fc({'type':_0x5ea638('0x184c'),'title':_0xa2ca37[_0x5ea638('0x1a8d')],'icon':_0x5ea638('0x1caf'),'color':_0x5ea638('0x5f7'),'project':_0xa2ca37,'call':_0x18db80,'contact':_0x570178});})[_0x36d9c1('0x1cb5')](_0x309d27());}})[_0x5cbaec('0x1cb5')](_0x309d27());}function _0x217f24(_0x564fed){const _0x194da0=_0x230d05;if(_0x564fed&&_0x564fed[_0x194da0('0x14e1')]){_0x564fed['uri']=_0x283545()[_0x194da0('0x10a4')](_0x564fed[_0x194da0('0x14e1')],'<%3B',''),_0x564fed[_0x194da0('0x14e1')]=_0x283545()[_0x194da0('0x10a4')](_0x564fed[_0x194da0('0x14e1')],_0x194da0('0x2261'),'');if(_0x564fed[_0x194da0('0x2f8')])switch(_0x564fed[_0x194da0('0x2f8')]){case'0':_0x17cefd['open'](_0x564fed[_0x194da0('0x14e1')]);break;case'1':_0x17cefd['open'](_0x564fed[_0x194da0('0x14e1')],_0x194da0('0x2558'),_0x194da0('0x267a')+(_0x564fed[_0x194da0('0x12be')]||'800')+_0x194da0('0x26f6')+_0x564fed[_0x194da0('0x2178')]||0x0);break;case'2':{const _0x183b67={'type':_0x194da0('0x6ee'),'title':_0x564fed[_0x194da0('0x14e1')],'icon':_0x194da0('0x2729'),'color':_0x194da0('0x1718'),'src':_0x564fed[_0x194da0('0x14e1')]};_0x5518fc(_0x183b67);}break;default:_0x17cefd[_0x194da0('0x241a')](_0x564fed[_0x194da0('0x14e1')]);}else _0x17cefd[_0x194da0('0x241a')](_0x564fed['uri']);}}function _0x9cf3a0(_0x25a373){const _0xbc08ea=_0x230d05;_0x25a373&&_0x25a373[_0xbc08ea('0x1cd8')]&&_0x5518fc({'type':_0xbc08ea('0x1440'),'title':_0x25a373[_0xbc08ea('0x27e7')]||'popup','icon':'icon-tablet','color':_0xbc08ea('0x5f7'),'html':_0x25a373['html']});}function _0x1545ec(_0x50a115){const _0x8a4460=_0x230d05,_0x2e924f=_0x50a115[_0x8a4460('0x27cd')]&&_0x50a115['calleridname']!==_0x8a4460('0x1a15')?_0x50a115[_0x8a4460('0x27cd')]:_0x50a115[_0x8a4460('0x27e7')],_0x49fe38=_0x50a115['calleridnum'];return _0x51c6f9[_0x8a4460('0x1cc8')][_0x8a4460('0x1335')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x50a115[_0x8a4460('0x1be7')]})[_0x8a4460('0x1714')][_0x8a4460('0x2788')](function(_0x3d2bb6){const _0xe8c88d=_0x8a4460;_0x3d2bb6[_0xe8c88d('0x338')]&&_0x5518fc({'type':'bot','title':_0x2e924f+'\x20<'+_0x49fe38+'>','icon':_0xe8c88d('0x2516'),'color':_0xe8c88d('0xe2e'),'data':{'uniqueid':_0x50a115[_0xe8c88d('0x1be7')]}});});}function _0x203401(_0x3259cb){const _0x5123c4=_0x230d05;console[_0x5123c4('0x1ca0')](_0x5123c4('0x1150'),_0x3259cb);for(const _0x415f7b in _0x280ea5[_0x5123c4('0xfb1')]){if(typeof _0x280ea5[_0x5123c4('0xfb1')][_0x415f7b]!==_0x5123c4('0xedb')){const _0xda4913=_0x280ea5[_0x5123c4('0xfb1')][_0x415f7b];if(_0xda4913[_0x5123c4('0x565')]){console[_0x5123c4('0x1ca0')](_0x5123c4('0x2810'),_0x415f7b,_0xda4913,_0xda4913[_0x5123c4('0x565')]);const _0x420d92=_0x283545()[_0x5123c4('0x1855')](_0xda4913['calls'],function(_0x36d5cf){const _0x2e3972=_0x5123c4;return _0x36d5cf['uniqueid']===_0x3259cb[_0x2e3972('0x1be7')];});_0x420d92>=0x0&&!_0xda4913[_0x5123c4('0x565')][_0x420d92][_0x5123c4('0x1cdc')]?(console['debug'](_0x5123c4('0xbb7'),_0x3259cb[_0x5123c4('0x1be7')]),_0x48624b(_0xda4913[_0x5123c4('0x565')][_0x420d92])):console['debug'](_0x5123c4('0x882'),_0x3259cb[_0x5123c4('0x1be7')]),_0x280ea5[_0x5123c4('0xc17')]&&_0x280ea5[_0x5123c4('0xc17')]['id']&&_0x504e6d(_0x25876a(_0x3259cb[_0x5123c4('0x1be7')],_0x280ea5['contact']['id'],_0xda4913),0x3e8);}}}_0x57187e();}function _0x25876a(_0x3f8103,_0x4b7d4d,_0x2543c7){return function(){const _0x367627=a0_0x14e7,_0x38e379=_0x283545()[_0x367627('0x20e8')](_0x2543c7[_0x367627('0x565')],function(_0x4a2dff){return _0x4a2dff['uniqueid']===_0x3f8103;});if(_0x38e379)return _0x51c6f9[_0x367627('0x99')][_0x367627('0x2740')]({'id':_0x3f8103,'ContactId':_0x4b7d4d})[_0x367627('0x1714')][_0x367627('0x1cb5')](function(_0x1b3f7a){const _0x51ffaa=_0x367627;console[_0x51ffaa('0x5e8')](_0x1b3f7a);});};}function _0x48624b(_0x49d4c4){const _0x14ed4f=_0x230d05;_0x49d4c4[_0x14ed4f('0x1cdc')]=new Date();}function _0x309d27(){return function(_0x353107){const _0x183865=a0_0x14e7;if(_0x353107[_0x183865('0x1b51')]===0x194)_0x8eb06c[_0x183865('0x14b4')]({'title':_0xd1db54[_0x183865('0x1b11')](_0x183865('0xbea')),'msg':_0xd1db54[_0x183865('0x1b11')](_0x183865('0x10b4'))});else{if(_0x353107[_0x183865('0x11fc')]&&_0x353107[_0x183865('0x11fc')][_0x183865('0x25be')]&&_0x353107[_0x183865('0x11fc')][_0x183865('0x25be')][_0x183865('0x2566')]){_0x280ea5[_0x183865('0x25be')]=_0x353107[_0x183865('0x11fc')][_0x183865('0x25be')]||[{'message':_0x353107[_0x183865('0x17df')](),'type':'api.openchannelMessage.accept'}];for(let _0x287735=0x0;_0x287735<_0x353107[_0x183865('0x11fc')][_0x183865('0x25be')][_0x183865('0x2566')];_0x287735+=0x1){_0x8eb06c['error']({'title':_0x353107['data']['errors'][_0x287735][_0x183865('0x1d7')],'msg':_0x353107[_0x183865('0x11fc')][_0x183865('0x25be')][_0x287735]['message']});}}else _0x8eb06c['error']({'title':_0x353107['status']?_0x183865('0x15d1')+_0x353107[_0x183865('0x1b51')]+_0x183865('0x1b0b')+_0x353107['statusText']:_0x183865('0xa00'),'msg':_0x353107[_0x183865('0x11fc')]?JSON['stringify'](_0x353107[_0x183865('0x11fc')][_0x183865('0x15e2')]):_0x353107[_0x183865('0x17df')]()});}};}_0x2d2e84[_0x230d05('0x651')](_0x230d05('0x26ac'),function(){const _0x585cd7=_0x230d05;for(const _0x239e2a in _0x280ea5[_0x585cd7('0x6cf')]){typeof _0x280ea5[_0x585cd7('0x6cf')][_0x239e2a]!==_0x585cd7('0xedb')&&_0x35a47a({'uniqueid':_0x239e2a});}_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0x258e')),_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0x2008')),_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0x1e7f')),_0x57baf6[_0x585cd7('0x277f')]('trigger:browser:popup'),_0x57baf6[_0x585cd7('0x277f')]('notification:save'),_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0x14a1')),_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0x1aab')),_0x57baf6[_0x585cd7('0x277f')](_0x585cd7('0xe0'));});}function _0x4b0d90(_0x42f3d3,_0x5342f0,_0x246166,_0x5a0827){const _0x3fbbec=_0x34e79e,_0x1e8c22={};let _0x465c77={},_0x3b44de={},_0x58b546={};_0x1e8c22['init']=function(){const _0x2a1d6a=a0_0x14e7;_0x1e8c22[_0x2a1d6a('0xdb')]=_0x155abf();},_0x1e8c22['getByInteraction']=function(_0x129259){const _0xe5262=a0_0x14e7;return _0x1e8c22[_0xe5262('0xdb')]=_0x155abf(),_0x283545()[_0xe5262('0x20e8')](_0x283545()[_0xe5262('0xc5')](_0x1e8c22[_0xe5262('0xdb')]),function(_0x59d145){const _0x45464c=_0xe5262;return _0x59d145[_0x45464c('0xd61')]&&_0x59d145[_0x45464c('0xd61')]['id']===_0x129259;});},_0x1e8c22[_0x3fbbec('0x113b')]=function(_0x1ba92f){const _0x58706f=_0x3fbbec;_0x1e8c22[_0x58706f('0xdb')]=_0x155abf();const _0x48ff7d=_0x283545()[_0x58706f('0x20e8')](_0x283545()[_0x58706f('0xc5')](_0x1e8c22['drafts']),function(_0x3e4477){const _0x6a3151=_0x58706f;return _0x3e4477[_0x6a3151('0xd61')]&&_0x3e4477[_0x6a3151('0xd61')]['id']===_0x1ba92f;});_0x48ff7d&&(delete _0x1e8c22[_0x58706f('0xdb')][_0x48ff7d['id']],_0x52651e());},_0x1e8c22['add']=function(_0x57d342){const _0x420ca6=_0x3fbbec;_0x1e8c22['drafts']=_0x155abf();let _0x50bbd2=_0x5342f0[_0x420ca6('0x1b11')](_0x420ca6('0x1d14'));if(_0x57d342[_0x420ca6('0xc17')])_0x50bbd2=_0x57d342[_0x420ca6('0xc17')][_0x420ca6('0x26da')]||_0x57d342[_0x420ca6('0xc17')][_0x420ca6('0x2436')];else!_0x283545()['isEmpty'](_0x57d342[_0x420ca6('0x15e2')][_0x420ca6('0x248f')])&&(_0x50bbd2=_0x57d342[_0x420ca6('0x15e2')]['subject']);const _0x59fcb1={'type':_0x420ca6('0x64e'),'title':_0x57d342[_0x420ca6('0x82f')][_0x420ca6('0x234b')]+_0x420ca6('0x1b0b')+_0x50bbd2,'channel':_0x57d342[_0x420ca6('0x2645')],'content':_0x57d342['message'],'account':_0x57d342[_0x420ca6('0x82f')],'interaction':_0x57d342['interaction'],'id':_0x283545()[_0x420ca6('0x130')](0x2540be400),'openedAt':new Date(),'saved':![]};_0x1e8c22[_0x420ca6('0xdb')][_0x59fcb1['id']]=_0x59fcb1,_0x52651e();},_0x1e8c22['update']=function(_0x2567c6){const _0x515f6a=_0x3fbbec;_0x1e8c22[_0x515f6a('0xdb')]=_0x155abf();const _0x36b65d=_0x1e8c22[_0x515f6a('0xdb')][_0x2567c6['id']];_0x36b65d&&(_0x36b65d['content']=_0x2567c6['message'],_0x1e8c22['drafts'][_0x2567c6['id']]=_0x36b65d,_0x52651e());},_0x1e8c22[_0x3fbbec('0x241a')]=function(_0x482db7){const _0x20fab1=_0x3fbbec;_0x1e8c22[_0x20fab1('0xdb')]=_0x155abf();const _0x12d226=_0x1e8c22[_0x20fab1('0xdb')][_0x482db7];_0x12d226&&_0x42f3d3[_0x20fab1('0x2379')](_0x20fab1('0x241a')+_0x283545()[_0x20fab1('0x114')](_0x3b44de)+'Draft',_0x12d226);},_0x1e8c22[_0x3fbbec('0x1a90')]=function(_0x5bf451){const _0x34a9ae=_0x3fbbec;_0x1e8c22[_0x34a9ae('0xdb')]=_0x155abf(),_0x1e8c22[_0x34a9ae('0xdb')][_0x5bf451]&&(delete _0x1e8c22[_0x34a9ae('0xdb')][_0x5bf451],_0x52651e());};function _0x155abf(){const _0x342da1=_0x3fbbec;_0x465c77=_0x5a0827[_0x342da1('0x24cc')]();const _0x2d99c4=_0x246166[_0x342da1('0x155e')][_0x342da1('0xced')](_0x342da1('0xc0e')+_0x465c77['id']);_0x2d99c4?_0x3b44de=JSON[_0x342da1('0xe0b')](_0x2d99c4)[_0x342da1('0x1c85')]:_0x3b44de=_0x342da1('0x19f4');_0x58b546=_0x246166[_0x342da1('0x155e')]['getItem'](_0x342da1('0x233f')+_0x3b44de+':'+_0x465c77['id']);if(_0x58b546){const _0x335e94=JSON[_0x342da1('0xe0b')](_0x58b546);!_0x335e94['drafts']&&(_0x335e94['drafts']={}),_0x58b546=_0x335e94;}else _0x58b546={'drafts':{}};return _0x58b546['drafts'];}function _0x52651e(){const _0x5739bf=_0x3fbbec;_0x283545()[_0x5739bf('0x213d')](_0x1e8c22[_0x5739bf('0xdb')])?delete _0x58b546[_0x5739bf('0xdb')]:_0x58b546[_0x5739bf('0xdb')]=_0x1e8c22[_0x5739bf('0xdb')],_0x246166[_0x5739bf('0x155e')][_0x5739bf('0x23dc')](_0x5739bf('0x233f')+_0x3b44de+':'+_0x465c77['id'],JSON[_0x5739bf('0x1be0')](_0x58b546));}return _0x1e8c22;}function _0x42ffcf(){const _0x25ec39=_0x34e79e,_0x283d2b={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x3133ac,'$get':['$q',_0x25ec39('0x446'),_0x25ec39('0x1bf5'),'PERMISSIONS',_0x40a42d]};function _0x3133ac(_0x355c87){const _0x5879b0=_0x25ec39;for(const _0x113a26 in _0x355c87){typeof _0x283d2b[_0x113a26]!==_0x5879b0('0xedb')&&typeof _0x355c87[_0x113a26]!==_0x5879b0('0xedb')&&(_0x283d2b[_0x113a26]=_0x355c87[_0x113a26]);}}function _0x40a42d(_0x254426,_0x1f9ca8,_0x321bec,_0x1f60df){const _0x327f97=_0x25ec39,_0x27d5d5=_0x321bec[_0x327f97('0x262e')]||_0x321bec['mozNotification']||_0x321bec[_0x327f97('0x1f91')],_0x51df9c={'isSupported':_0x2e2c5f,'currentPermission':_0x484a5e,'requestPermission':_0x5b4163,'show':_0x56eb35,'permissions':{'default':_0x1f60df[_0x327f97('0xc99')],'granted':_0x1f60df['GRANTED'],'denied':_0x1f60df[_0x327f97('0x15ca')]}};return _0x51df9c;function _0x2e2c5f(){return!(typeof _0x27d5d5==='undefined');}function _0x484a5e(){const _0x4ea5=_0x327f97;return(_0x27d5d5||{})[_0x4ea5('0x21e6')];}function _0x5b4163(){const _0x4f171e=_0x327f97;if(!_0x2e2c5f())return _0x254426[_0x4f171e('0x9')]('Notification\x20API\x20not\x20supported');const _0x4c8040=_0x254426['defer']();return Promise[_0x4f171e('0x2322')](_0x27d5d5[_0x4f171e('0x14d8')])==_0x27d5d5[_0x4f171e('0x14d8')]?_0x27d5d5[_0x4f171e('0x14d8')]()['then'](function(_0x138b8f){const _0x33aa52=_0x4f171e;_0x1f60df['GRANTED']===_0x138b8f?_0x4c8040[_0x33aa52('0x2322')](_0x138b8f):_0x4c8040[_0x33aa52('0x9')](_0x138b8f);}):_0x27d5d5[_0x4f171e('0x14d8')](function(_0x213ad6){const _0xb1ff81=_0x4f171e;_0x1f60df[_0xb1ff81('0x2282')]===_0x213ad6?_0x4c8040[_0xb1ff81('0x2322')](_0x213ad6):_0x4c8040[_0xb1ff81('0x9')](_0x213ad6);}),_0x4c8040[_0x4f171e('0x1808')];}function _0x56eb35(_0x58ff7a,_0x1874ef){const _0xe94585=_0x327f97;_0x1874ef=_0x1874ef||{};if(!_0x2e2c5f()||!_0x114569(_0x58ff7a,_0x1874ef)||_0x33ba0b(_0x1874ef['showOnPageHidden'])||_0x484a5e()!==_0x1f60df[_0xe94585('0x2282')])return;const _0x2a9b6f=new _0x27d5d5(_0x58ff7a,_0x1874ef),_0x465f40=_0x1874ef[_0xe94585('0x2b3')]||_0x283d2b[_0xe94585('0x2b3')],_0x34a8d1=_0x1874ef[_0xe94585('0x22a0')]===undefined?_0x283d2b[_0xe94585('0x22a0')]:_0x1874ef['autoClose'];_0x2a9b6f['onclick']=function(){const _0xb7b9b3=_0xe94585;_0x1874ef['onClick']&&_0x1874ef['onClick'](),_0x1874ef[_0xb7b9b3('0xe44')]&&window[_0xb7b9b3('0x1df')](),_0x1874ef['closeOnClick']&&_0x2a9b6f[_0xb7b9b3('0x69f')]();};if(_0x34a8d1)_0x35fc48(_0x2a9b6f,_0x465f40);return _0x2a9b6f;}function _0x114569(_0x46ce00,_0x67eaf6){const _0x3878a0=_0x327f97,_0x262ddd=angular['isString'](_0x46ce00),_0x49071e=!_0x67eaf6[_0x3878a0('0xb84')]||angular[_0x3878a0('0x5b9')](_0x67eaf6['onClick']);return _0x262ddd&&_0x49071e;}function _0x33ba0b(_0x484ac8){const _0x10b89a=_0x327f97;if(!_0x484ac8&&!_0x283d2b[_0x10b89a('0x21cd')])return;return!(window[_0x10b89a('0x11c4')]['hidden']||window[_0x10b89a('0x11c4')][_0x10b89a('0x2779')]||window['document'][_0x10b89a('0x27c')]);}function _0x35fc48(_0x4737c,_0x5d7907){const _0x23b253=_0x327f97,_0x5d8521=_0x5d7907*0x3e8;_0x1f9ca8(_0x4737c[_0x23b253('0x69f')][_0x23b253('0x1a20')](_0x4737c),_0x5d8521,![]);}}}function _0x1fa304(){const _0x1a1f93=_0x34e79e,_0x26e98d=angular['injector'](['ng'])[_0x1a1f93('0x1335')](_0x1a1f93('0x1eec')),_0x358fc1=[],_0x18b205=this;_0x18b205[_0x1a1f93('0x953')]=_0x53c11e,_0x18b205[_0x1a1f93('0x1165')]=_0x304d96;function _0x53c11e(_0x1be9e7,_0x14c99b){const _0x4a3e3c=_0x1a1f93;if(!angular[_0x4a3e3c('0x1660')](_0x1be9e7)){_0x26e98d[_0x4a3e3c('0x5e8')]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x138a49=_0x1be9e7['split']('.'),_0x42e5a5=_0x138a49[_0x138a49[_0x4a3e3c('0x2566')]-0x1],_0x5e3359=_0x584b29(_0x138a49);let _0x420dd8=![];for(let _0x14e15e=0x0;_0x14e15e<_0x5e3359[_0x4a3e3c('0x2566')];_0x14e15e++){if(_0x5e3359[_0x14e15e]['_id']===_0x42e5a5){_0x420dd8=_0x5e3359[_0x14e15e];break;}}_0x420dd8?(angular[_0x4a3e3c('0x192a')](_0x420dd8,_0x14c99b),_0x420dd8[_0x4a3e3c('0x127c')]=_0x9f6d96(_0x420dd8)):(_0x14c99b[_0x4a3e3c('0x17e1')]=[],(angular[_0x4a3e3c('0x1fcf')](_0x14c99b[_0x4a3e3c('0x1880')])||!angular[_0x4a3e3c('0x8ac')](_0x14c99b[_0x4a3e3c('0x1880')]))&&(_0x14c99b[_0x4a3e3c('0x1880')]=0x1),_0x14c99b[_0x4a3e3c('0x19b8')]=_0x42e5a5,_0x14c99b[_0x4a3e3c('0x1ca4')]=_0x1be9e7,_0x14c99b[_0x4a3e3c('0x127c')]=_0x9f6d96(_0x14c99b),_0x5e3359[_0x4a3e3c('0x13e3')](_0x14c99b));}function _0x304d96(_0x4ef2a2){const _0x1467ba=_0x1a1f93;if(!angular[_0x1467ba('0x1660')](_0x4ef2a2)){_0x26e98d[_0x1467ba('0x5e8')](_0x1467ba('0xd86'));return;}let _0x2bef27=_0x358fc1;const _0xf079d=_0x4ef2a2['split']('.');for(let _0x4887c8=0x0;_0x4887c8<_0xf079d[_0x1467ba('0x2566')];_0x4887c8++){const _0x2ef89f=_0xf079d[_0x4887c8];for(let _0x382e4b=0x0;_0x382e4b<_0x2bef27[_0x1467ba('0x2566')];_0x382e4b++){if(_0x2bef27[_0x382e4b]['_id']===_0x2ef89f){if(_0x2bef27[_0x382e4b][_0x1467ba('0x1ca4')]===_0x4ef2a2)return _0x2bef27[_0x1467ba('0x722')](_0x382e4b,0x1),!![];_0x2bef27=_0x2bef27[_0x382e4b][_0x1467ba('0x17e1')];break;}}}return![];}function _0x584b29(_0x2ad02e){const _0x40dc78=_0x1a1f93;let _0x3d9ec1=_0x358fc1;if(_0x2ad02e[_0x40dc78('0x2566')]===0x1)return _0x3d9ec1;_0x2ad02e[_0x40dc78('0xbeb')]();for(let _0x506a2f=0x0;_0x506a2f<_0x2ad02e[_0x40dc78('0x2566')];_0x506a2f++){const _0xa682f3=_0x2ad02e[_0x506a2f];let _0x56cdde=!![];for(let _0x47cbac=0x0;_0x47cbac<_0x3d9ec1[_0x40dc78('0x2566')];_0x47cbac++){if(_0x3d9ec1[_0x47cbac][_0x40dc78('0x19b8')]===_0xa682f3){_0x3d9ec1=_0x3d9ec1[_0x47cbac][_0x40dc78('0x17e1')],_0x56cdde=![];break;}}if(_0x56cdde){const _0xf27e12={'_id':_0xa682f3,'_path':_0x2ad02e[_0x40dc78('0x185f')]('.'),'title':_0xa682f3,'weight':0x1,'children':[]};_0x3d9ec1[_0x40dc78('0x13e3')](_0xf27e12),_0x3d9ec1=_0xf27e12[_0x40dc78('0x17e1')];}}return _0x3d9ec1;}function _0x9f6d96(_0x11c76d){const _0x9d229=_0x1a1f93;let _0x40832b='';return angular['isDefined'](_0x11c76d[_0x9d229('0x249b')])&&(_0x40832b=_0x11c76d[_0x9d229('0x249b')],angular[_0x9d229('0x2735')](_0x11c76d[_0x9d229('0x16a0')])&&angular[_0x9d229('0x19bc')](_0x11c76d[_0x9d229('0x16a0')])&&(_0x40832b=_0x40832b+'('+angular[_0x9d229('0x2385')](_0x11c76d[_0x9d229('0x16a0')])+')')),_0x40832b;}this['$get']=function(){const _0x117734={'saveItem':_0x53c11e,'getNavigation':_0x14171b};return _0x117734;function _0x14171b(_0x2d853f){const _0x4c45e7=a0_0x14e7;if(_0x2d853f){for(let _0x518053=0x0;_0x518053<_0x358fc1['length'];_0x518053++){if(_0x358fc1[_0x518053][_0x4c45e7('0x19b8')]===_0x2d853f)return[_0x358fc1[_0x518053]];}return null;}return _0x358fc1;}};}const _0x1fffe7={'DEFAULT':_0x34e79e('0x1c15'),'GRANTED':_0x34e79e('0x254e'),'DENIED':_0x34e79e('0x1352')};_0x3895d6[_0x34e79e('0x2d9')]=[_0x34e79e('0x519')];function _0x3895d6(_0x310a0e){const _0x4a45a2=_0x34e79e,_0x4d24b3=this;_0x4d24b3['setting']={},_0x4d24b3[_0x4a45a2('0xf9b')]={'count':0x0,'rows':[]},_0x4d24b3['showInteraction']=![];function _0x39baa7(_0x5df60a,_0x2d79c8){const _0x20cb12=_0x4a45a2;_0x4d24b3[_0x20cb12('0x1af0')]=_0x2d79c8,_0x4d24b3[_0x20cb12('0x24f6')]=_0x5df60a,_0x4d24b3[_0x20cb12('0x24f6')][_0x20cb12('0x100f')]=!![];if(_0x4d24b3[_0x20cb12('0x24f6')]&&_0x4d24b3[_0x20cb12('0x24f6')][_0x20cb12('0x11fc')]&&_0x4d24b3[_0x20cb12('0x24f6')][_0x20cb12('0x11fc')][_0x20cb12('0x1be7')])return _0x310a0e[_0x20cb12('0x1cc8')][_0x20cb12('0x1335')]({'uniqueid':_0x4d24b3[_0x20cb12('0x24f6')][_0x20cb12('0x11fc')][_0x20cb12('0x1be7')]})[_0x20cb12('0x1714')][_0x20cb12('0x2788')](function(_0x1e23fa){const _0x5191ad=_0x20cb12;_0x4d24b3[_0x5191ad('0xf9b')]=_0x1e23fa;})[_0x20cb12('0x1ed8')](function(){const _0x97d944=_0x20cb12;_0x4d24b3[_0x97d944('0x2117')]=!![];});else _0x4d24b3[_0x20cb12('0x2117')]=!![];}function _0x19dc01(_0xc45247){const _0x553d49=_0x4a45a2;switch(_0x4d24b3[_0x553d49('0x1af0')]['messagesAlignment']){case _0x553d49('0x17cd'):if(_0xc45247['direction']=='in')return _0xc45247[_0x553d49('0x7c3')];return'out-left-aligned';case _0x553d49('0x6ec'):if(_0xc45247[_0x553d49('0x7c3')]=='in')return _0x553d49('0x886');return _0xc45247[_0x553d49('0x7c3')];default:return _0xc45247[_0x553d49('0x7c3')];}}_0x4d24b3[_0x4a45a2('0x24eb')]=_0x39baa7,_0x4d24b3[_0x4a45a2('0x4c0')]=_0x19dc01;}const _0x3f671a=_0x3895d6,_0x446818=_0x18dd13['p']+_0x34e79e('0x10c1'),_0x3c16f5=_0x18dd13['p']+_0x34e79e('0x11f2'),_0x3c2201=_0x18dd13['p']+'src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog.html',_0x3a358a=_0x18dd13['p']+_0x34e79e('0x8b0'),_0x2c06d6=_0x18dd13['p']+_0x34e79e('0xba0'),_0x414412=_0x18dd13['p']+_0x34e79e('0x571'),_0x19ab75=_0x18dd13['p']+_0x34e79e('0x21c6'),_0x50342f=_0x18dd13['p']+_0x34e79e('0x22c');_0x3f46cd[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1701'),'$q',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x1a5c'),_0x34e79e('0x9c4')];const _0x423937={'fax':_0x3a358a,'mail':_0x2c06d6,'openchannel':_0x414412,'sms':_0x19ab75,'whatsapp':_0x50342f};function _0x3f46cd(_0xff226e,_0x5e7951,_0x40c15e,_0x3a6603,_0x12ec89,_0x26473a,_0x57df25,_0x23ef9e,_0xb55b02,_0x5877ee){const _0x3970c5=_0x34e79e,_0x301467=this;_0x301467[_0x3970c5('0x1e6a')]=_0x23ef9e[_0x3970c5('0x24cc')](),_0x301467[_0x3970c5('0x191e')]=_0x5877ee[_0x3970c5('0x191e')](),_0x301467['journey']=[],_0x301467[_0x3970c5('0x2481')]={'fields':'id,phone,scheduledat','sort':_0x3970c5('0x1cee'),'limit':0xa,'page':0x1},_0x301467['queryFinal']={'fields':_0x3970c5('0x1ba6'),'sort':_0x3970c5('0x1cee'),'limit':0xa,'page':0x1},_0x301467[_0x3970c5('0x1e4')]={'fields':'uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x3970c5('0x1cee'),'limit':0xa,'page':0x1},_0x301467[_0x3970c5('0x2547')]={'rows':[],'count':0x0},_0x301467[_0x3970c5('0x11f5')]={'rows':[],'count':0x0},_0x301467['histories']={'rows':[],'count':0x0},_0x301467['firstDayMonth']=new Date(_0x59f37a()()[_0x3970c5('0x13e4')](_0x3970c5('0x2dc'))[_0x3970c5('0x10e8')](0x1,_0x3970c5('0x430'))[_0x3970c5('0x2827')](0x0,!![])[_0x3970c5('0x22b4')]()),_0x301467['lastDayMonth']=new Date(_0x59f37a()()[_0x3970c5('0x142e')](_0x3970c5('0x2dc'))[_0x3970c5('0x10e8')](0x1,_0x3970c5('0xf'))['utcOffset'](0x0,!![])[_0x3970c5('0x22b4')]()),_0x301467[_0x3970c5('0x27df')]=_0x43a30b,_0x301467[_0x3970c5('0x1c6f')]=_0x52531c,_0x301467['getCustomFields']=_0x28f0b1,_0x301467['call']=_0x3a6603[_0x3970c5('0x7d0')]['vm'][_0x3970c5('0x935')],_0x301467[_0x3970c5('0x1c88')]=_0x437446,_0x301467[_0x3970c5('0x255e')]=_0x3120aa,_0x301467[_0x3970c5('0xfd6')]=_0x2bafad,_0x301467['getDateFromString']=_0x46f10b,_0x301467[_0x3970c5('0x7fe')]=_0x57aee6,_0x301467[_0x3970c5('0x15da')]=_0x7fe63b,_0x301467[_0x3970c5('0x1e11')]=_0x49aa3b,_0x301467[_0x3970c5('0x115e')]=_0x51e00d,_0x301467[_0x3970c5('0x395')]=_0x21814b,_0x301467[_0x3970c5('0x1688')]=_0x17f9b4,_0x301467[_0x3970c5('0x1dbb')]=_0x4a5f9a,_0x301467[_0x3970c5('0xb69')]=_0x6d1b57,_0x301467['getWhatsappAccounts']=_0x2569b2,_0x301467[_0x3970c5('0x184')]=_0x2d6baf,_0x301467[_0x3970c5('0xfa6')]=_0x15c49f,_0x301467[_0x3970c5('0xcdd')]=_0x4b0103,_0x301467[_0x3970c5('0x1d69')]=_0x4f49c9,_0x301467['init']=_0x1f0510,_0x301467['hasPermission']=_0x14f50f,_0x301467[_0x3970c5('0x4f')]=_0x49729e,_0x301467[_0x3970c5('0x1222')]=_0x5e33ab,_0x301467['isMyAccount']=_0x23d042,_0x301467['getJscriptyProjects']();function _0x23d042(_0x5aa6f8){const _0x55cdea=_0x3970c5;if(_0x5aa6f8[_0x55cdea('0xfc2')])return _0x283545()[_0x55cdea('0x1d4e')](_0x283545()[_0x55cdea('0x155d')](_0x301467[_0x55cdea('0xe9b')]?_0x301467['faxAccounts'][_0x55cdea('0x25df')]:[],'id'),_0x5aa6f8['FaxAccountId']);else{if(_0x5aa6f8[_0x55cdea('0x22fa')])return _0x283545()[_0x55cdea('0x1d4e')](_0x283545()[_0x55cdea('0x155d')](_0x301467[_0x55cdea('0x1e10')]?_0x301467['openchannelAccounts'][_0x55cdea('0x25df')]:[],'id'),_0x5aa6f8[_0x55cdea('0x22fa')]);else{if(_0x5aa6f8['SmsAccountId'])return _0x283545()[_0x55cdea('0x1d4e')](_0x283545()['map'](_0x301467[_0x55cdea('0x5f4')]?_0x301467['smsAccounts'][_0x55cdea('0x25df')]:[],'id'),_0x5aa6f8['SmsAccountId']);else{if(_0x5aa6f8[_0x55cdea('0x25b8')])return _0x283545()[_0x55cdea('0x1d4e')](_0x283545()[_0x55cdea('0x155d')](_0x301467['whatsappAccounts']?_0x301467[_0x55cdea('0xa47')][_0x55cdea('0x25df')]:[],'id'),_0x5aa6f8[_0x55cdea('0x25b8')]);else{if(_0x5aa6f8[_0x55cdea('0x26b2')])return _0x283545()['includes'](_0x283545()[_0x55cdea('0x155d')](_0x301467[_0x55cdea('0x1e22')]?_0x301467[_0x55cdea('0x1e22')][_0x55cdea('0x25df')]:[],'id'),_0x5aa6f8[_0x55cdea('0x26b2')]);else{if(_0x5aa6f8['ChatWebsiteId'])return _0x283545()[_0x55cdea('0x1d4e')](_0x283545()['map'](_0x301467['chatAccounts']?_0x301467[_0x55cdea('0x60')]['rows']:[],'id'),_0x5aa6f8['ChatWebsiteId']);else{if(_0x5aa6f8[_0x55cdea('0x20bb')])return!![];}}}}}}return![];}function _0x49729e(_0x1953b8,_0x4c2c02){const _0x53376a=_0x3970c5;try{if(_0x4c2c02['MailAccountId'])return _0x3a6603['$parent']['$parent']['$parent']['vm'][_0x53376a('0x1442')](_0x53376a('0x2795'),_0x4c2c02);else{if(_0x4c2c02['ChatWebsiteId'])return _0x3a6603[_0x53376a('0x7d0')][_0x53376a('0x7d0')]['$parent']['vm']['addInteractionTab'](_0x53376a('0x231'),_0x4c2c02);else{if(_0x4c2c02[_0x53376a('0xcba')])return _0x3a6603['$parent'][_0x53376a('0x7d0')][_0x53376a('0x7d0')]['vm'][_0x53376a('0x1442')]('sms',_0x4c2c02);else{if(_0x4c2c02[_0x53376a('0x25b8')])return _0x3a6603['$parent'][_0x53376a('0x7d0')][_0x53376a('0x7d0')]['vm'][_0x53376a('0x1442')](_0x53376a('0x195d'),_0x4c2c02);else{if(_0x4c2c02['OpenchannelAccountId'])return _0x3a6603[_0x53376a('0x7d0')][_0x53376a('0x7d0')][_0x53376a('0x7d0')]['vm']['addInteractionTab'](_0x53376a('0x18aa'),_0x4c2c02);else{if(_0x4c2c02[_0x53376a('0xfc2')])return _0x3a6603[_0x53376a('0x7d0')]['$parent'][_0x53376a('0x7d0')]['vm'][_0x53376a('0x1442')](_0x53376a('0x10cf'),_0x4c2c02);}}}}}}catch(_0x2e071f){_0x57df25['error']({'title':_0x53376a('0x1a9'),'msg':_0x53376a('0x678')});}}function _0x4486e5(_0x12999f){const _0x390e49=_0x3970c5;if(!_0x12999f['disposition'])return'('+_0xb55b02['instant']('DASHBOARDS.NO_DISPOSITION_SET')+')';const _0x363521=_0x283545()[_0x390e49('0x24f5')]([_0x12999f[_0x390e49('0x1db2')],_0x12999f['secondDisposition'],_0x12999f[_0x390e49('0x22aa')]]);return'('+_0x363521[_0x390e49('0x185f')]('\x20-\x20')+')';}function _0x4070b7(_0x4a65fd){const _0x5893fe=_0x3970c5;_0x4a65fd&&_0x4a65fd[_0x5893fe('0x338')]&&_0x4a65fd[_0x5893fe('0x25df')][_0x5893fe('0x2566')]&&(_0x301467[_0x5893fe('0x1f4')]=_0x283545()[_0x5893fe('0x1282')](_0x301467[_0x5893fe('0x1f4')],_0x4a65fd[_0x5893fe('0x25df')]),_0x301467['journey'][_0x5893fe('0x1534')](function(_0x2fab7a){const _0x473e40=_0x5893fe;_0x2fab7a[_0x473e40('0x4a3')]=_0x4486e5(_0x2fab7a);}));}function _0x51ce0f(_0x61ed9e){const _0x585f6e=_0x3970c5,_0x4df4b9=[_0x585f6e('0x2795'),'chat',_0x585f6e('0x529'),_0x585f6e('0x18aa'),_0x585f6e('0x10cf'),_0x585f6e('0x195d')];if(_0x61ed9e&&_0x61ed9e['id']){for(let _0x2534b0=0x0;_0x2534b0<_0x4df4b9[_0x585f6e('0x2566')];_0x2534b0++){_0x26473a[_0x4df4b9[_0x2534b0]+_0x585f6e('0x22a7')]['get']({'ContactId':_0x61ed9e['id'],'journey':!![],'includeAll':!![]})['$promise'][_0x585f6e('0x2788')](_0x4070b7);}_0x26473a[_0x585f6e('0x99')]['get']({'ContactId':_0x61ed9e['id'],'includeAll':!![]})[_0x585f6e('0x1714')][_0x585f6e('0x2788')](_0x4070b7)[_0x585f6e('0x1cb5')](function(_0x2704a9){const _0x583092=_0x585f6e;console[_0x583092('0x5e8')](_0x2704a9);});}}function _0x8cb933(_0x4664c8){const _0x37b686=_0x3970c5;switch(_0x4664c8){case _0x37b686('0x231'):return'green-A700';case _0x37b686('0x2795'):return _0x37b686('0xb55');case'sms':return _0x37b686('0x1cfb');case _0x37b686('0x18aa'):return'amber-A200';case _0x37b686('0x10cf'):return'blue-grey-A200';case _0x37b686('0x195d'):return _0x37b686('0x1226');default:return _0x37b686('0x1350');}}function _0x5e33ab(_0x14b7ab){const _0x4de3ac=_0x3970c5;let _0x435d20='';if(_0x14b7ab[_0x4de3ac('0xfc2')])_0x435d20='fax';else{if(_0x14b7ab[_0x4de3ac('0x22fa')])_0x435d20='openchannel';else{if(_0x14b7ab['SmsAccountId'])_0x435d20=_0x4de3ac('0x529');else{if(_0x14b7ab[_0x4de3ac('0x25b8')])_0x435d20='whatsapp';else{if(_0x14b7ab['MailAccountId'])_0x435d20=_0x4de3ac('0x2795');else{if(_0x14b7ab['ChatWebsiteId'])_0x435d20=_0x4de3ac('0x231');else _0x14b7ab['amaflags']&&(_0x435d20=_0x4de3ac('0x1f60'));}}}}}return _0x8cb933(_0x435d20);}function _0x1f0510(_0x192837,_0x1e15f2){const _0xd35d85=_0x3970c5;return _0x301467[_0xd35d85('0x24f6')]=_0x192837,_0x3a6603['$watchGroup']([_0xd35d85('0x1f58'),'vm.customFieldsForm.$pristine'],function(_0x1d5a4a){const _0x192b29=_0xd35d85;_0x301467[_0x192b29('0x24f6')][_0x192b29('0x100f')]=_0x1d5a4a[0x0]&&_0x1d5a4a[0x1];}),_0x301467[_0xd35d85('0x130d')]=_0x1e15f2,_0x301467[_0xd35d85('0xc17')]=_0x301467[_0xd35d85('0x24f6')][_0xd35d85('0xc17')],_0x301467[_0xd35d85('0x116f')]=![],_0x301467[_0xd35d85('0x27a2')]=0x0,_0x26473a[_0xd35d85('0x1e6a')][_0xd35d85('0x1335')]({'fields':_0xd35d85('0x2024'),'nolimit':!![]})[_0xd35d85('0x1714')][_0xd35d85('0x2788')](function(_0x46e5ad){const _0x10215d=_0xd35d85;_0x301467['users']=_0x46e5ad||{'count':0x0,'rows':[]},_0x301467[_0x10215d('0x23ee')]=_0x283545()[_0x10215d('0x2402')](_0x283545()['keyBy'](_0x301467['users'][_0x10215d('0x25df')],'id'),_0x10215d('0x2831'));return;})['then'](function(){const _0x285e62=_0xd35d85,_0x2e5b5e=[];for(let _0x53214b=0x0;_0x53214b<_0x301467[_0x285e62('0x24f6')][_0x285e62('0x565')][_0x285e62('0x2566')];_0x53214b++){const _0xd89414=_0x301467[_0x285e62('0x24f6')][_0x285e62('0x565')][_0x53214b];_0x2e5b5e[_0x285e62('0x13e3')](_0x26473a[_0x285e62('0x99')][_0x285e62('0x1335')]({'uniqueid':_0xd89414['uniqueid']})['$promise'][_0x285e62('0x2788')](function(_0x26cb97){const _0x3f26d7=_0x285e62;_0x26cb97&&_0x26cb97[_0x3f26d7('0x25df')][_0x3f26d7('0x2566')]>0x0&&(_0xd89414[_0x3f26d7('0x1cdc')]=_0x283545()[_0x3f26d7('0x2716')](_0x26cb97['rows'])[_0x3f26d7('0x1304')]);return;}));}return _0x12ec89[_0x285e62('0x1def')](_0x2e5b5e);})[_0xd35d85('0x2788')](function(){const _0x5b6f0b=_0xd35d85;if(_0x301467[_0x5b6f0b('0xc17')]&&_0x301467[_0x5b6f0b('0xc17')]['id']){const _0x474848={'id':_0x301467['contact']['id'],'ListId':_0x301467[_0x5b6f0b('0xc17')][_0x5b6f0b('0x354')],'limit':0x1,'offset':0x0,'sort':'-updatedAt'};return _0x26473a[_0x5b6f0b('0xa83')][_0x5b6f0b('0x1335')](_0x474848)[_0x5b6f0b('0x1714')][_0x5b6f0b('0x2788')](function(_0x3a32ab){const _0x4d69e7=_0x5b6f0b;return _0x301467[_0x4d69e7('0xc17')]=_0x3a32ab,_0x301467[_0x4d69e7('0x24f6')][_0x4d69e7('0xc17')]=_0x3a32ab,_0x26473a[_0x4d69e7('0x1e6a')][_0x4d69e7('0xa4f')]({'id':_0x301467['user']['id'],'ids':[_0x301467[_0x4d69e7('0xc17')]['id']]});})[_0x5b6f0b('0x2788')](function(){const _0xb9bec3=_0x5b6f0b;if(_0x301467[_0xb9bec3('0xc17')][_0xb9bec3('0x354')])return _0x26473a[_0xb9bec3('0x1db2')][_0xb9bec3('0x1335')]({'ListId':_0x301467['contact'][_0xb9bec3('0x354')]})['$promise'][_0xb9bec3('0x2788')](function(_0x159ac7){const _0x9198c8=_0xb9bec3;return _0x301467[_0x9198c8('0x24f6')]['dispositions']=_0x159ac7,_0x26473a[_0x9198c8('0x1ba4')][_0x9198c8('0x100b')]({'id':_0x301467[_0x9198c8('0xc17')]['ListId']})[_0x9198c8('0x1714')];})['then'](function(_0x4e6fee){const _0xfb401f=_0xb9bec3;_0x301467['tab'][_0xfb401f('0x132')]=_0x4e6fee;return;});return;})[_0x5b6f0b('0x2788')](function(){const _0x3759c9=_0x5b6f0b;try{_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0x1fd5')]=_0x3a6603['$parent'][_0x3759c9('0x7d0')]['$parent']['vm'][_0x3759c9('0x18c3')],_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0x2')]=_0x3a6603[_0x3759c9('0x7d0')]['$parent'][_0x3759c9('0x7d0')]['vm']['globalLists'],_0x301467[_0x3759c9('0x24f6')]['companies']=_0x3a6603[_0x3759c9('0x7d0')][_0x3759c9('0x7d0')][_0x3759c9('0x7d0')]['vm'][_0x3759c9('0x1379')],_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0xe45')]=_0x3a6603[_0x3759c9('0x7d0')][_0x3759c9('0x7d0')][_0x3759c9('0x7d0')]['vm']['globalTags'],_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0x1201')]=0x0,_0x301467[_0x3759c9('0xc17')][_0x3759c9('0x354')]&&(_0x301467['tab'][_0x3759c9('0x1fd5')][_0x3759c9('0x25df')]=_0x283545()[_0x3759c9('0x15b9')](_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0x1fd5')][_0x3759c9('0x25df')],_0x283545()['filter'](_0x301467['tab']['lists'][_0x3759c9('0x25df')],{'id':_0x301467[_0x3759c9('0xc17')]['ListId']}),'id'),_0x301467[_0x3759c9('0x4b2')]=_0x283545()['find'](_0x301467[_0x3759c9('0x24f6')][_0x3759c9('0x1fd5')][_0x3759c9('0x25df')],{'id':_0x301467[_0x3759c9('0xc17')][_0x3759c9('0x354')]}));}catch(_0x413c18){}_0x301467[_0x3759c9('0x15da')](),_0x301467[_0x3759c9('0x1e11')](),_0x301467['getHistories'](),_0x301467[_0x3759c9('0x1688')](),_0x301467[_0x3759c9('0x1dbb')](),_0x301467[_0x3759c9('0xb69')](),_0x301467['getWhatsappAccounts'](),_0x301467[_0x3759c9('0x184')](),_0x301467[_0x3759c9('0xfa6')](),_0x301467[_0x3759c9('0xcdd')]();return;})[_0x5b6f0b('0x2788')](function(){const _0x511ae7=_0x5b6f0b;return _0x26473a[_0x511ae7('0xa83')][_0x511ae7('0x1c39')]({'id':_0x301467[_0x511ae7('0xc17')]['id']})[_0x511ae7('0x1714')][_0x511ae7('0x2788')](function(_0x21a924){const _0x185f3f=_0x511ae7;_0x301467[_0x185f3f('0x24f6')][_0x185f3f('0xbcf')]=_0x283545()['map'](_0x21a924[_0x185f3f('0x25df')],'id');return;});});}else{_0x301467[_0x5b6f0b('0x116f')]=!![];if(_0x192837[_0x5b6f0b('0x1201')])return console[_0x5b6f0b('0x10df')](_0x5b6f0b('0x1201')),_0x301467[_0x5b6f0b('0x27df')]();return;}})[_0xd35d85('0x2788')](_0x51ce0f(_0x301467['contact']));}function _0x4f49c9(_0x170e6a,_0x379079,_0x4c4ea5,_0x886628){const _0x3cdd0f=_0x3970c5,_0x13b4c8=_0x379079[_0x3cdd0f('0xc2e')]();_0xff226e[_0x3cdd0f('0x2fa')]({'controller':_0x3cdd0f('0xda9')+_0x379079+_0x3cdd0f('0x63'),'controllerAs':'vm','templateUrl':_0x423937[_0x13b4c8],'parent':angular[_0x3cdd0f('0x16b1')](_0x5e7951[_0x3cdd0f('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0x4c4ea5,'message':{'to':_0x13b4c8=='mail'?_0x886628:_0x886628[_0x3cdd0f('0x1497')](',')},'type':'new','interaction':{'Contact':_0x301467[_0x3cdd0f('0xc17')]}},'fullscreen':!![]})[_0x3cdd0f('0x2788')](function(_0x71f753){const _0x51daf0=_0x3cdd0f;return _0x26473a[_0x13b4c8+_0x51daf0('0x140b')][_0x51daf0('0x1fc9')]({'id':_0x4c4ea5['id']},_0x71f753)[_0x51daf0('0x1714')][_0x51daf0('0x2788')](function(_0x417c3c){const _0x232cde=_0x51daf0;if(_0x379079==='Mail'){const _0x42d5b9=_0x417c3c;if(_0x42d5b9&&_0x42d5b9['Messages']&&_0x42d5b9[_0x232cde('0x1f77')][_0x232cde('0x2566')]){if(_0x71f753['attachments']&&_0x71f753[_0x232cde('0x8ba')][_0x232cde('0x2566')])for(let _0x3b147c=0x0;_0x3b147c<_0x71f753[_0x232cde('0x8ba')][_0x232cde('0x2566')];_0x3b147c+=0x1){_0x26473a[_0x232cde('0x2358')]['update']({'id':_0x71f753[_0x232cde('0x8ba')][_0x3b147c]['id']},{'MailMessageId':_0x283545()['head'](_0x42d5b9['Messages'])['id']});}_0x57df25[_0x232cde('0x173b')]({'title':_0x232cde('0x1fcd'),'msg':_0x232cde('0x65b')});if(_0x42d5b9['closed']){_0x42d5b9[_0x232cde('0x1db2')]=null;const _0x3e1acc=!_0x4c4ea5[_0x232cde('0x1c86')],_0x20fa65=_0x301467[_0x232cde('0x1e6a')]['voicePause']||_0x301467[_0x232cde('0x1e6a')]['chatPause']||_0x301467[_0x232cde('0x1e6a')][_0x232cde('0x20cd')]||_0x301467[_0x232cde('0x1e6a')][_0x232cde('0x1098')]||_0x301467[_0x232cde('0x1e6a')]['faxPause'];_0xff226e[_0x232cde('0x2fa')]({'controller':_0x232cde('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x232cde('0x16b1')](_0x5e7951[_0x232cde('0x945')]),'onRemoving':function(){const _0xee09a9=_0x232cde;_0x301467['user']&&_0x4c4ea5['mandatoryDisposition']&&!_0x20fa65&&_0x26473a['user']['unpause']({'id':_0x301467['user']['id']})[_0xee09a9('0x1714')][_0xee09a9('0x1cb5')](function(_0x9979b1){console['error'](_0x9979b1);});},'clickOutsideToClose':_0x3e1acc,'escapeToClose':_0x3e1acc,'locals':{'user':_0x301467[_0x232cde('0x1e6a')],'channel':_0x232cde('0x2795'),'interaction':_0x42d5b9}});}else _0x3a6603['$parent']['vm'][_0x232cde('0x1442')](_0x232cde('0x2795'),_0x42d5b9);}}else _0x57df25[_0x232cde('0x173b')]({'title':'Message\x20properly\x20sent!','msg':_0x232cde('0x65b')}),_0x3a6603['$parent']['vm'][_0x232cde('0x1442')](_0x13b4c8,_0x417c3c);})['catch'](function(_0x25d480){const _0x5dc3b4=_0x51daf0;if(_0x25d480['data']&&_0x25d480[_0x5dc3b4('0x11fc')][_0x5dc3b4('0x25be')]&&_0x25d480[_0x5dc3b4('0x11fc')][_0x5dc3b4('0x25be')][_0x5dc3b4('0x2566')])for(let _0x400a30=0x0;_0x400a30<_0x25d480[_0x5dc3b4('0x11fc')][_0x5dc3b4('0x25be')][_0x5dc3b4('0x2566')];_0x400a30+=0x1){_0x57df25['error']({'title':_0x25d480[_0x5dc3b4('0x11fc')][_0x5dc3b4('0x25be')][_0x400a30][_0x5dc3b4('0x1d7')],'msg':_0x25d480[_0x5dc3b4('0x11fc')]['errors'][_0x400a30][_0x5dc3b4('0x15e2')]});}else _0x13b4c8==='fax'?_0x57df25[_0x5dc3b4('0x5e8')]({'title':_0x5dc3b4('0x1fc8'),'msg':_0x25d480[_0x5dc3b4('0x11fc')]?JSON['stringify'](_0x25d480[_0x5dc3b4('0x11fc')]):_0x25d480['message']||_0x25d480[_0x5dc3b4('0x17df')]()}):_0x57df25['error']({'title':_0x25d480[_0x5dc3b4('0x1b51')]?'API:'+_0x25d480['status']+_0x5dc3b4('0x1b0b')+_0x25d480[_0x5dc3b4('0x22ce')]:_0x379079[_0x5dc3b4('0x25e6')]()+_0x5dc3b4('0x12b6'),'msg':_0x25d480[_0x5dc3b4('0x11fc')]?JSON['stringify'](_0x25d480[_0x5dc3b4('0x11fc')][_0x5dc3b4('0x15e2')]):_0x25d480[_0x5dc3b4('0x15e2')]||_0x25d480['toString']()});});});}function _0x43a30b(){const _0x58dd7f=_0x3970c5;_0x301467[_0x58dd7f('0x25be')]=[],_0x26473a[_0x58dd7f('0xa83')][_0x58dd7f('0xbd0')](_0x301467[_0x58dd7f('0xc17')])['$promise']['then'](function(_0x34f564){const _0x1a03f5=_0x58dd7f;return _0x301467[_0x1a03f5('0xc17')]['id']=_0x34f564['id'],_0x301467[_0x1a03f5('0x116f')]=![],_0x301467[_0x1a03f5('0x24f6')]['title']=_0x34f564[_0x1a03f5('0x26da')]||_0x34f564[_0x1a03f5('0x1224')],_0x301467[_0x1a03f5('0x24f6')]['contact']=_0x301467[_0x1a03f5('0xc17')],_0x26473a[_0x1a03f5('0x1e6a')][_0x1a03f5('0xa4f')]({'id':_0x23ef9e['getCurrentUser']()['id'],'ids':[_0x34f564['id']]});})[_0x58dd7f('0x2788')](function(){const _0x1b42d5=_0x58dd7f;_0x301467[_0x1b42d5('0x16c3')]['$pristine']=!![],_0x301467[_0x1b42d5('0x9e6')][_0x1b42d5('0x226a')]=!![],_0x57df25['success']({'title':'Contact\x20properly\x20created','msg':_0x301467[_0x1b42d5('0xc17')][_0x1b42d5('0x26da')]?_0x301467[_0x1b42d5('0xc17')]['firstName']+'\x20has\x20been\x20created!':''});})[_0x58dd7f('0x2788')](function(){const _0x55f18c=_0x58dd7f;return _0x26473a['cmContact'][_0x55f18c('0x53a')]({'id':_0x301467['contact']['id'],'ids':_0x301467[_0x55f18c('0x24f6')][_0x55f18c('0xbcf')]})['$promise'];})[_0x58dd7f('0x1cb5')](function(_0x35c557){const _0x41d92e=_0x58dd7f;if(_0x35c557[_0x41d92e('0x11fc')]&&_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x25be')]&&_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x25be')][_0x41d92e('0x2566')]){_0x301467[_0x41d92e('0x25be')]=_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x25be')]||[{'message':_0x35c557[_0x41d92e('0x17df')](),'type':'api.contact.save'}];for(let _0x186170=0x0;_0x186170<_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x25be')]['length'];_0x186170+=0x1){_0x57df25[_0x41d92e('0x5e8')]({'title':_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x25be')][_0x186170][_0x41d92e('0x1d7')],'msg':_0x35c557['data'][_0x41d92e('0x25be')][_0x186170][_0x41d92e('0x15e2')]});}}else _0x57df25[_0x41d92e('0x5e8')]({'title':_0x35c557[_0x41d92e('0x1b51')]?_0x41d92e('0x15d1')+_0x35c557[_0x41d92e('0x1b51')]+'\x20-\x20'+_0x35c557[_0x41d92e('0x22ce')]:_0x41d92e('0x7eb'),'msg':_0x35c557[_0x41d92e('0x11fc')]?JSON['stringify'](_0x35c557[_0x41d92e('0x11fc')][_0x41d92e('0x15e2')]):_0x35c557[_0x41d92e('0x17df')]()});});}function _0x52531c(){const _0x42d2dd=_0x3970c5;_0x301467[_0x42d2dd('0x25be')]=[],_0x26473a[_0x42d2dd('0xa83')][_0x42d2dd('0x2740')]({'id':_0x301467['contact']['id']},_0x301467[_0x42d2dd('0xc17')])[_0x42d2dd('0x1714')][_0x42d2dd('0x2788')](function(_0x41028e){const _0xaad91=_0x42d2dd;return _0x301467[_0xaad91('0x24f6')]['title']=_0x41028e['firstName']||_0x41028e['phone'],_0x301467[_0xaad91('0x24f6')][_0xaad91('0xc17')]=_0x301467['contact'],_0x3a6603[_0xaad91('0x7d0')]['vm'][_0xaad91('0x9c9')](),_0x26473a[_0xaad91('0x1e6a')][_0xaad91('0xa4f')]({'id':_0x23ef9e[_0xaad91('0x24cc')]()['id'],'ids':[_0x41028e['id']]});})[_0x42d2dd('0x2788')](function(){const _0x47cf5b=_0x42d2dd;return _0x26473a[_0x47cf5b('0xa83')][_0x47cf5b('0x53a')]({'id':_0x301467[_0x47cf5b('0xc17')]['id'],'ids':_0x301467[_0x47cf5b('0x24f6')][_0x47cf5b('0xbcf')]})['$promise'];})[_0x42d2dd('0x2788')](function(){const _0x503de3=_0x42d2dd;_0x301467['detailForm'][_0x503de3('0x226a')]=!![],_0x301467[_0x503de3('0x9e6')][_0x503de3('0x226a')]=!![],_0x57df25[_0x503de3('0x173b')]({'title':'Contact\x20properly\x20updated!','msg':_0x301467[_0x503de3('0xc17')][_0x503de3('0x1a8d')]?_0x301467[_0x503de3('0xc17')][_0x503de3('0x1a8d')]+_0x503de3('0x6f8'):''});})[_0x42d2dd('0x1cb5')](function(_0x5395ed){const _0x53c9ef=_0x42d2dd;if(_0x5395ed[_0x53c9ef('0x11fc')]&&_0x5395ed[_0x53c9ef('0x11fc')][_0x53c9ef('0x25be')]&&_0x5395ed[_0x53c9ef('0x11fc')][_0x53c9ef('0x25be')]['length']){_0x301467[_0x53c9ef('0x25be')]=_0x5395ed['data'][_0x53c9ef('0x25be')]||[{'message':_0x5395ed[_0x53c9ef('0x17df')](),'type':'api.contact.save'}];for(let _0x47a290=0x0;_0x47a290<_0x5395ed[_0x53c9ef('0x11fc')][_0x53c9ef('0x25be')][_0x53c9ef('0x2566')];_0x47a290+=0x1){_0x57df25[_0x53c9ef('0x5e8')]({'title':_0x5395ed[_0x53c9ef('0x11fc')][_0x53c9ef('0x25be')][_0x47a290][_0x53c9ef('0x1d7')],'msg':_0x5395ed[_0x53c9ef('0x11fc')][_0x53c9ef('0x25be')][_0x47a290][_0x53c9ef('0x15e2')]});}}else _0x57df25[_0x53c9ef('0x5e8')]({'title':_0x5395ed[_0x53c9ef('0x1b51')]?_0x53c9ef('0x15d1')+_0x5395ed[_0x53c9ef('0x1b51')]+_0x53c9ef('0x1b0b')+_0x5395ed[_0x53c9ef('0x22ce')]:'api.contact.save','msg':_0x5395ed['data']?JSON['stringify'](_0x5395ed[_0x53c9ef('0x11fc')]['message']):_0x5395ed[_0x53c9ef('0x17df')]()});});}_0x3a6603[_0x3970c5('0x1662')](_0x3970c5('0x27a2'),function(){const _0xed5943=_0x3970c5;_0x301467['currentTab']===0x1&&(_0x301467[_0xed5943('0x15da')](),_0x301467['getFinals'](),_0x301467[_0xed5943('0x115e')]());});let _0x20be00=!![],_0x57b754=0x1;_0x3a6603[_0x3970c5('0x1662')]('queryHopper.filter',function(_0x5c9b16,_0x46ef93){const _0x2eaf85=_0x3970c5;_0x20be00?_0x40c15e(function(){_0x20be00=![];}):(!_0x46ef93&&(_0x57b754=_0x301467[_0x2eaf85('0x2481')][_0x2eaf85('0x23f5')]),_0x5c9b16!==_0x46ef93&&(_0x301467[_0x2eaf85('0x2481')][_0x2eaf85('0x23f5')]=0x1),!_0x5c9b16&&(_0x301467[_0x2eaf85('0x2481')][_0x2eaf85('0x23f5')]=_0x57b754),_0x301467[_0x2eaf85('0x15da')]());}),_0x3a6603[_0x3970c5('0x1662')](_0x3970c5('0x18af'),function(_0x11d581,_0x750a31){const _0x369715=_0x3970c5;_0x20be00?_0x40c15e(function(){_0x20be00=![];}):(!_0x750a31&&(_0x57b754=_0x301467['queryFinal'][_0x369715('0x23f5')]),_0x11d581!==_0x750a31&&(_0x301467[_0x369715('0xde2')]['page']=0x1),!_0x11d581&&(_0x301467['queryFinal'][_0x369715('0x23f5')]=_0x57b754),_0x301467[_0x369715('0x1e11')]());}),_0x3a6603[_0x3970c5('0x1662')](_0x3970c5('0x153a'),function(_0x1bcf86,_0x55c3a9){const _0x26a599=_0x3970c5;_0x20be00?_0x40c15e(function(){_0x20be00=![];}):(!_0x55c3a9&&(_0x57b754=_0x301467['queryHistory'][_0x26a599('0x23f5')]),_0x1bcf86!==_0x55c3a9&&(_0x301467['queryHistory'][_0x26a599('0x23f5')]=0x1),!_0x1bcf86&&(_0x301467['queryHistory'][_0x26a599('0x23f5')]=_0x57b754),_0x301467[_0x26a599('0x115e')]());});function _0xcb4e03(_0x42eca9){return function(_0x56978f){_0x301467[_0x42eca9]=_0x56978f||{'count':0x0,'rows':[]};};}function _0x7fe63b(){const _0x320a14=_0x3970c5;_0x301467[_0x320a14('0xc17')]&&_0x301467[_0x320a14('0xc17')]['id']&&(_0x301467[_0x320a14('0x2481')]['ContactId']=_0x301467[_0x320a14('0xc17')]['id'],_0x301467[_0x320a14('0x2481')]['offset']=(_0x301467['queryHopper'][_0x320a14('0x23f5')]-0x1)*_0x301467[_0x320a14('0x2481')][_0x320a14('0x68e')],_0x301467['promise']=_0x26473a[_0x320a14('0x1de1')][_0x320a14('0x1335')](_0x301467[_0x320a14('0x2481')],_0xcb4e03(_0x320a14('0x2547')))['$promise']);}function _0x49aa3b(){const _0x38a786=_0x3970c5;_0x301467[_0x38a786('0xc17')]&&_0x301467[_0x38a786('0xc17')]['id']&&(_0x301467[_0x38a786('0xde2')][_0x38a786('0x85a')]=_0x301467['contact']['id'],_0x301467['queryFinal'][_0x38a786('0x19e')]=(_0x301467[_0x38a786('0xde2')][_0x38a786('0x23f5')]-0x1)*_0x301467[_0x38a786('0xde2')]['limit'],_0x301467[_0x38a786('0x1808')]=_0x26473a['cmHopperFinal'][_0x38a786('0x1335')](_0x301467[_0x38a786('0xde2')],_0xcb4e03(_0x38a786('0x11f5')))['$promise']);}function _0x51e00d(){const _0x3743c9=_0x3970c5;_0x301467[_0x3743c9('0xc17')]&&_0x301467[_0x3743c9('0xc17')]['id']&&(_0x301467['queryHistory'][_0x3743c9('0x85a')]=_0x301467[_0x3743c9('0xc17')]['id'],_0x301467[_0x3743c9('0x1e4')][_0x3743c9('0x19e')]=(_0x301467[_0x3743c9('0x1e4')][_0x3743c9('0x23f5')]-0x1)*_0x301467[_0x3743c9('0x1e4')][_0x3743c9('0x68e')],_0x301467[_0x3743c9('0x1808')]=_0x26473a['cmHopperHistory'][_0x3743c9('0x1335')](_0x301467[_0x3743c9('0x1e4')],_0xcb4e03('histories'))['$promise']);}function _0x21814b(){const _0x2b01c6=_0x3970c5;_0x26473a[_0x2b01c6('0xf5b')][_0x2b01c6('0x1335')]({'fields':_0x2b01c6('0x1c4f'),'sort':_0x2b01c6('0x1cee'),'nolimit':!![]})[_0x2b01c6('0x1714')][_0x2b01c6('0x2788')](function(_0x55dd34){const _0x8257fd=_0x2b01c6;_0x301467[_0x8257fd('0x665')]=_0x55dd34||{'count':0x0,'rows':[]};})['catch'](function(_0x2d2de5){const _0x4a8582=_0x2b01c6;if(_0x2d2de5[_0x4a8582('0x11fc')]&&_0x2d2de5['data'][_0x4a8582('0x25be')]&&_0x2d2de5[_0x4a8582('0x11fc')][_0x4a8582('0x25be')][_0x4a8582('0x2566')]){_0x301467[_0x4a8582('0x25be')]=_0x2d2de5[_0x4a8582('0x11fc')][_0x4a8582('0x25be')]||[{'message':_0x2d2de5['toString'](),'type':_0x4a8582('0x26a5')}];for(let _0x10a046=0x0;_0x10a046<_0x2d2de5['data'][_0x4a8582('0x25be')][_0x4a8582('0x2566')];_0x10a046+=0x1){_0x57df25['error']({'title':_0x2d2de5[_0x4a8582('0x11fc')]['errors'][_0x10a046]['type'],'msg':_0x2d2de5[_0x4a8582('0x11fc')][_0x4a8582('0x25be')][_0x10a046][_0x4a8582('0x15e2')]});}}else _0x57df25['error']({'title':_0x2d2de5['status']?'API:'+_0x2d2de5['status']+'\x20-\x20'+_0x2d2de5['statusText']:_0x4a8582('0x26a5'),'msg':_0x2d2de5[_0x4a8582('0x11fc')]?JSON[_0x4a8582('0x1be0')](_0x2d2de5[_0x4a8582('0x11fc')][_0x4a8582('0x15e2')]):_0x2d2de5[_0x4a8582('0x17df')]()});});}function _0x17f9b4(){const _0x354a61=_0x3970c5;_0x26473a[_0x354a61('0x1e6a')][_0x354a61('0x1688')]({'id':_0x301467['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0xcab472){const _0x3b95ce=_0x354a61;_0x301467[_0x3b95ce('0x1e22')]=_0xcab472||{'count':0x0,'rows':[]};})[_0x354a61('0x1cb5')](function(_0x526bc2){const _0x16e66a=_0x354a61;if(_0x526bc2[_0x16e66a('0x11fc')]&&_0x526bc2['data']['errors']&&_0x526bc2[_0x16e66a('0x11fc')]['errors'][_0x16e66a('0x2566')]){_0x301467[_0x16e66a('0x25be')]=_0x526bc2['data'][_0x16e66a('0x25be')]||[{'message':_0x526bc2[_0x16e66a('0x17df')](),'type':_0x16e66a('0xd11')}];for(let _0x50741a=0x0;_0x50741a<_0x526bc2['data'][_0x16e66a('0x25be')][_0x16e66a('0x2566')];_0x50741a+=0x1){_0x57df25[_0x16e66a('0x5e8')]({'title':_0x526bc2['data'][_0x16e66a('0x25be')][_0x50741a]['type'],'msg':_0x526bc2[_0x16e66a('0x11fc')][_0x16e66a('0x25be')][_0x50741a][_0x16e66a('0x15e2')]});}}else _0x57df25['error']({'title':_0x526bc2[_0x16e66a('0x1b51')]?_0x16e66a('0x15d1')+_0x526bc2[_0x16e66a('0x1b51')]+_0x16e66a('0x1b0b')+_0x526bc2[_0x16e66a('0x22ce')]:'api.mail.account','msg':_0x526bc2[_0x16e66a('0x11fc')]?JSON[_0x16e66a('0x1be0')](_0x526bc2[_0x16e66a('0x11fc')][_0x16e66a('0x15e2')]):_0x526bc2[_0x16e66a('0x17df')]()});});}function _0x4a5f9a(){const _0x1d64ad=_0x3970c5;_0x26473a['user'][_0x1d64ad('0x1dbb')]({'id':_0x301467[_0x1d64ad('0x1e6a')]['id'],'nolimit':!![]})[_0x1d64ad('0x1714')][_0x1d64ad('0x2788')](function(_0x1c6e5d){_0x301467['faxAccounts']=_0x1c6e5d||{'count':0x0,'rows':[]};})[_0x1d64ad('0x1cb5')](function(_0x48a41d){const _0xe6f212=_0x1d64ad;if(_0x48a41d['data']&&_0x48a41d['data'][_0xe6f212('0x25be')]&&_0x48a41d['data']['errors']['length']){_0x301467[_0xe6f212('0x25be')]=_0x48a41d['data'][_0xe6f212('0x25be')]||[{'message':_0x48a41d['toString'](),'type':_0xe6f212('0x1a29')}];for(let _0x40c046=0x0;_0x40c046<_0x48a41d[_0xe6f212('0x11fc')][_0xe6f212('0x25be')][_0xe6f212('0x2566')];_0x40c046+=0x1){_0x57df25[_0xe6f212('0x5e8')]({'title':_0x48a41d[_0xe6f212('0x11fc')][_0xe6f212('0x25be')][_0x40c046][_0xe6f212('0x1d7')],'msg':_0x48a41d['data'][_0xe6f212('0x25be')][_0x40c046][_0xe6f212('0x15e2')]});}}else _0x57df25[_0xe6f212('0x5e8')]({'title':_0x48a41d[_0xe6f212('0x1b51')]?_0xe6f212('0x15d1')+_0x48a41d[_0xe6f212('0x1b51')]+_0xe6f212('0x1b0b')+_0x48a41d[_0xe6f212('0x22ce')]:_0xe6f212('0x1a29'),'msg':_0x48a41d[_0xe6f212('0x11fc')]?JSON[_0xe6f212('0x1be0')](_0x48a41d[_0xe6f212('0x11fc')]['message']):_0x48a41d[_0xe6f212('0x17df')]()});});}function _0x6d1b57(){const _0x241ee6=_0x3970c5;_0x26473a['user'][_0x241ee6('0xb69')]({'id':_0x301467[_0x241ee6('0x1e6a')]['id'],'nolimit':!![]})[_0x241ee6('0x1714')][_0x241ee6('0x2788')](function(_0x475a44){const _0x385a60=_0x241ee6;_0x301467[_0x385a60('0x5f4')]=_0x475a44||{'count':0x0,'rows':[]};})[_0x241ee6('0x1cb5')](function(_0x1c50d0){const _0x477ee1=_0x241ee6;if(_0x1c50d0['data']&&_0x1c50d0[_0x477ee1('0x11fc')][_0x477ee1('0x25be')]&&_0x1c50d0[_0x477ee1('0x11fc')][_0x477ee1('0x25be')][_0x477ee1('0x2566')]){_0x301467[_0x477ee1('0x25be')]=_0x1c50d0[_0x477ee1('0x11fc')][_0x477ee1('0x25be')]||[{'message':_0x1c50d0[_0x477ee1('0x17df')](),'type':_0x477ee1('0x1e9b')}];for(let _0x350cc7=0x0;_0x350cc7<_0x1c50d0[_0x477ee1('0x11fc')][_0x477ee1('0x25be')][_0x477ee1('0x2566')];_0x350cc7+=0x1){_0x57df25[_0x477ee1('0x5e8')]({'title':_0x1c50d0[_0x477ee1('0x11fc')]['errors'][_0x350cc7][_0x477ee1('0x1d7')],'msg':_0x1c50d0[_0x477ee1('0x11fc')][_0x477ee1('0x25be')][_0x350cc7][_0x477ee1('0x15e2')]});}}else _0x57df25[_0x477ee1('0x5e8')]({'title':_0x1c50d0['status']?'API:'+_0x1c50d0[_0x477ee1('0x1b51')]+_0x477ee1('0x1b0b')+_0x1c50d0[_0x477ee1('0x22ce')]:_0x477ee1('0x1e9b'),'msg':_0x1c50d0[_0x477ee1('0x11fc')]?JSON[_0x477ee1('0x1be0')](_0x1c50d0['data'][_0x477ee1('0x15e2')]):_0x1c50d0[_0x477ee1('0x17df')]()});});}function _0x2569b2(){const _0x41c4b8=_0x3970c5;_0x26473a['user'][_0x41c4b8('0x2238')]({'id':_0x301467[_0x41c4b8('0x1e6a')]['id'],'nolimit':!![]})[_0x41c4b8('0x1714')][_0x41c4b8('0x2788')](function(_0x2f35d7){const _0x1df909=_0x41c4b8;_0x301467[_0x1df909('0xa47')]=_0x2f35d7||{'count':0x0,'rows':[]};})[_0x41c4b8('0x1cb5')](function(_0x23defe){const _0x3d4573=_0x41c4b8;if(_0x23defe['data']&&_0x23defe[_0x3d4573('0x11fc')][_0x3d4573('0x25be')]&&_0x23defe[_0x3d4573('0x11fc')][_0x3d4573('0x25be')][_0x3d4573('0x2566')]){_0x301467[_0x3d4573('0x25be')]=_0x23defe['data']['errors']||[{'message':_0x23defe[_0x3d4573('0x17df')](),'type':_0x3d4573('0xd56')}];for(let _0x3b8b43=0x0;_0x3b8b43<_0x23defe[_0x3d4573('0x11fc')]['errors'][_0x3d4573('0x2566')];_0x3b8b43+=0x1){_0x57df25[_0x3d4573('0x5e8')]({'title':_0x23defe[_0x3d4573('0x11fc')][_0x3d4573('0x25be')][_0x3b8b43][_0x3d4573('0x1d7')],'msg':_0x23defe[_0x3d4573('0x11fc')]['errors'][_0x3b8b43][_0x3d4573('0x15e2')]});}}else _0x57df25[_0x3d4573('0x5e8')]({'title':_0x23defe[_0x3d4573('0x1b51')]?'API:'+_0x23defe['status']+_0x3d4573('0x1b0b')+_0x23defe['statusText']:_0x3d4573('0xd56'),'msg':_0x23defe['data']?JSON[_0x3d4573('0x1be0')](_0x23defe[_0x3d4573('0x11fc')][_0x3d4573('0x15e2')]):_0x23defe[_0x3d4573('0x17df')]()});});}function _0x2d6baf(){const _0x43725b=_0x3970c5;_0x26473a[_0x43725b('0x1e6a')]['getOpenchannelAccounts']({'id':_0x301467[_0x43725b('0x1e6a')]['id'],'nolimit':!![]})[_0x43725b('0x1714')]['then'](function(_0x1601e1){const _0x9d752c=_0x43725b;_0x301467[_0x9d752c('0x1e10')]=_0x1601e1||{'count':0x0,'rows':[]};})['catch'](function(_0x307f28){const _0x504b6c=_0x43725b;if(_0x307f28[_0x504b6c('0x11fc')]&&_0x307f28[_0x504b6c('0x11fc')][_0x504b6c('0x25be')]&&_0x307f28[_0x504b6c('0x11fc')][_0x504b6c('0x25be')][_0x504b6c('0x2566')]){_0x301467[_0x504b6c('0x25be')]=_0x307f28[_0x504b6c('0x11fc')]['errors']||[{'message':_0x307f28['toString'](),'type':_0x504b6c('0x26')}];for(let _0x3a12c2=0x0;_0x3a12c2<_0x307f28[_0x504b6c('0x11fc')]['errors'][_0x504b6c('0x2566')];_0x3a12c2+=0x1){_0x57df25[_0x504b6c('0x5e8')]({'title':_0x307f28[_0x504b6c('0x11fc')][_0x504b6c('0x25be')][_0x3a12c2]['type'],'msg':_0x307f28['data'][_0x504b6c('0x25be')][_0x3a12c2]['message']});}}else _0x57df25[_0x504b6c('0x5e8')]({'title':_0x307f28[_0x504b6c('0x1b51')]?_0x504b6c('0x15d1')+_0x307f28[_0x504b6c('0x1b51')]+_0x504b6c('0x1b0b')+_0x307f28['statusText']:_0x504b6c('0x26'),'msg':_0x307f28[_0x504b6c('0x11fc')]?JSON['stringify'](_0x307f28[_0x504b6c('0x11fc')]['message']):_0x307f28['toString']()});});}function _0x15c49f(){const _0x442a92=_0x3970c5;_0x26473a[_0x442a92('0x1e6a')][_0x442a92('0xfa6')]({'id':_0x301467['user']['id'],'nolimit':!![]})['$promise'][_0x442a92('0x2788')](function(_0x56deb1){const _0x2b69d1=_0x442a92;_0x301467[_0x2b69d1('0x60')]=_0x56deb1||{'count':0x0,'rows':[]};})[_0x442a92('0x1cb5')](function(_0x307397){const _0x4e522d=_0x442a92;if(_0x307397['data']&&_0x307397[_0x4e522d('0x11fc')][_0x4e522d('0x25be')]&&_0x307397[_0x4e522d('0x11fc')][_0x4e522d('0x25be')][_0x4e522d('0x2566')]){_0x301467[_0x4e522d('0x25be')]=_0x307397[_0x4e522d('0x11fc')][_0x4e522d('0x25be')]||[{'message':_0x307397[_0x4e522d('0x17df')](),'type':_0x4e522d('0x1423')}];for(let _0xb1d2a4=0x0;_0xb1d2a4<_0x307397['data']['errors'][_0x4e522d('0x2566')];_0xb1d2a4+=0x1){_0x57df25['error']({'title':_0x307397[_0x4e522d('0x11fc')][_0x4e522d('0x25be')][_0xb1d2a4][_0x4e522d('0x1d7')],'msg':_0x307397['data'][_0x4e522d('0x25be')][_0xb1d2a4]['message']});}}else _0x57df25[_0x4e522d('0x5e8')]({'title':_0x307397[_0x4e522d('0x1b51')]?_0x4e522d('0x15d1')+_0x307397[_0x4e522d('0x1b51')]+_0x4e522d('0x1b0b')+_0x307397[_0x4e522d('0x22ce')]:_0x4e522d('0x1423'),'msg':_0x307397[_0x4e522d('0x11fc')]?JSON[_0x4e522d('0x1be0')](_0x307397[_0x4e522d('0x11fc')][_0x4e522d('0x15e2')]):_0x307397[_0x4e522d('0x17df')]()});});}function _0x4b0103(){const _0xe31420=_0x3970c5;_0x26473a[_0xe31420('0x1e6a')]['getLists']({'id':_0x301467[_0xe31420('0x1e6a')]['id'],'nolimit':!![]})[_0xe31420('0x1714')]['then'](function(_0x2ff6d3){const _0x24a8ba=_0xe31420;_0x301467[_0x24a8ba('0x2')]=_0x2ff6d3||{'count':0x0,'rows':[]};})[_0xe31420('0x1cb5')](function(_0x506d60){const _0xb3da8d=_0xe31420;if(_0x506d60[_0xb3da8d('0x11fc')]&&_0x506d60[_0xb3da8d('0x11fc')]['errors']&&_0x506d60['data'][_0xb3da8d('0x25be')]['length']){_0x301467[_0xb3da8d('0x25be')]=_0x506d60['data'][_0xb3da8d('0x25be')]||[{'message':_0x506d60['toString'](),'type':'api.cm.lists'}];for(let _0x1ff18e=0x0;_0x1ff18e<_0x506d60['data'][_0xb3da8d('0x25be')][_0xb3da8d('0x2566')];_0x1ff18e+=0x1){_0x57df25[_0xb3da8d('0x5e8')]({'title':_0x506d60['data'][_0xb3da8d('0x25be')][_0x1ff18e][_0xb3da8d('0x1d7')],'msg':_0x506d60[_0xb3da8d('0x11fc')][_0xb3da8d('0x25be')][_0x1ff18e]['message']});}}else _0x57df25[_0xb3da8d('0x5e8')]({'title':_0x506d60['status']?_0xb3da8d('0x15d1')+_0x506d60['status']+_0xb3da8d('0x1b0b')+_0x506d60['statusText']:_0xb3da8d('0x27f5'),'msg':_0x506d60['data']?JSON['stringify'](_0x506d60[_0xb3da8d('0x11fc')]['message']):_0x506d60['toString']()});});}function _0x3120aa(_0x101b2a){const _0x57755a=_0x3970c5;_0xff226e[_0x57755a('0x2fa')]({'controller':_0x57755a('0x1bd'),'controllerAs':'vm','templateUrl':_0x446818,'parent':angular[_0x57755a('0x16b1')](_0x5e7951[_0x57755a('0x945')]),'targetEvent':_0x101b2a,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0xd7a138){const _0xf0e2f0=_0x57755a;return _0xd7a138[_0xf0e2f0('0x2322')]('cmContact@get',{'id':_0x301467['contact']['id']});}],'lists':[_0x57755a('0x1318'),function(_0x59c9f8){const _0x5ceb48=_0x57755a;return _0x59c9f8[_0x5ceb48('0x2322')](_0x5ceb48('0x1aed'),{'id':_0x23ef9e[_0x5ceb48('0x24cc')]()['id'],'fields':_0x5ceb48('0x1338')});}]},'locals':{'contacts':[]}});}function _0x2bafad(_0x1ee165){const _0x16ce50=_0x3970c5;_0xff226e[_0x16ce50('0x2fa')]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x3c16f5,'parent':angular[_0x16ce50('0x16b1')](_0x5e7951[_0x16ce50('0x945')]),'targetEvent':_0x1ee165,'clickOutsideToClose':!![],'resolve':{'contact':[_0x16ce50('0x1318'),function(_0x6fbd9b){const _0x510003=_0x16ce50;return _0x6fbd9b['resolve'](_0x510003('0x7ea'),{'id':_0x301467[_0x510003('0xc17')]['id']});}],'lists':['apiResolver',function(_0x234995){const _0x37f62b=_0x16ce50;return _0x234995[_0x37f62b('0x2322')](_0x37f62b('0x1aed'),{'id':_0x23ef9e[_0x37f62b('0x24cc')]()['id'],'fields':_0x37f62b('0x1338')});}]},'locals':{'contacts':[]}})['then'](function(_0x58f077){const _0xe6034e=_0x16ce50;if(_0x58f077){for(const _0x3494c1 in _0x3a6603[_0xe6034e('0x7d0')][_0xe6034e('0x7d0')]['$parent']['vm'][_0xe6034e('0xfb1')]){if(typeof _0x3a6603[_0xe6034e('0x7d0')]['$parent'][_0xe6034e('0x7d0')]['vm']['tabs'][_0x3494c1]!==_0xe6034e('0xedb')){const _0x5ceff8=_0x3a6603[_0xe6034e('0x7d0')][_0xe6034e('0x7d0')][_0xe6034e('0x7d0')]['vm']['tabs'][_0x3494c1];_0x5ceff8&&_0x5ceff8[_0xe6034e('0xc17')]&&(_0x58f077[_0xe6034e('0x444')]&&_0x58f077[_0xe6034e('0x444')]['id']&&_0x58f077['from']['id']===_0x5ceff8[_0xe6034e('0xc17')]['id']&&_0x3a6603[_0xe6034e('0x7d0')][_0xe6034e('0x7d0')]['$parent']['vm'][_0xe6034e('0x18cf')](_0x5ceff8),_0x58f077['to']&&_0x58f077['to']['id']&&_0x58f077['to']['id']===_0x5ceff8['contact']['id']&&_0x3a6603[_0xe6034e('0x7d0')][_0xe6034e('0x7d0')][_0xe6034e('0x7d0')]['vm'][_0xe6034e('0x18cf')](_0x5ceff8));}}_0x58f077['new']&&_0x3a6603[_0xe6034e('0x7d0')][_0xe6034e('0x7d0')][_0xe6034e('0x7d0')]['vm'][_0xe6034e('0x11eb')](_0x58f077['new']);}});}function _0x437446(_0x3ea170,_0x222438){const _0x494e74=_0x3970c5,_0x12b60b=_0x301467[_0x494e74('0x1e6a')][_0x494e74('0x2a1')]||_0x301467[_0x494e74('0x1e6a')][_0x494e74('0x23a5')]||_0x301467[_0x494e74('0x1e6a')][_0x494e74('0x20cd')]||_0x301467['user'][_0x494e74('0x1098')]||_0x301467[_0x494e74('0x1e6a')][_0x494e74('0x1891')],_0x417def=_0x222438[_0x494e74('0x1c86')];if(_0x301467[_0x494e74('0x116f')]){_0x57df25[_0x494e74('0x5e8')]({'title':_0x494e74('0x11c8'),'msg':'Please\x20save\x20the\x20contact\x20before\x20disposing!'});return;}_0xff226e[_0x494e74('0x2fa')]({'controller':_0x494e74('0x138d'),'controllerAs':'vm','templateUrl':_0x3c2201,'parent':angular[_0x494e74('0x16b1')](_0x5e7951[_0x494e74('0x945')]),'targetEvent':_0x222438,'clickOutsideToClose':!_0x222438[_0x494e74('0x1c86')],'escapeToClose':!_0x222438[_0x494e74('0x1c86')],'resolve':{'globalDispositions':['apiResolver',function(_0x5c0def){const _0x276e49=_0x494e74;return _0x5c0def['resolve']('disposition@get',{'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':'null','WhatsappAccountId':_0x276e49('0x954'),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':'null'});}]},'onRemoving':function(){const _0x5eebd3=_0x494e74;_0x301467['user']&&_0x417def&&!_0x12b60b&&_0x26473a[_0x5eebd3('0x1e6a')][_0x5eebd3('0x1826')]({'id':_0x301467['user']['id']})[_0x5eebd3('0x1714')]['catch'](function(_0x2b14e4){const _0x52e9c5=_0x5eebd3;console[_0x52e9c5('0x5e8')](_0x2b14e4);});},'locals':{'dispositions':_0x301467['tab'][_0x494e74('0x818')],'contact':_0x301467['contact'],'call':_0x222438}})[_0x494e74('0x2788')](function(_0x1db2f1){const _0x5b0c4f=_0x494e74;if(_0x1db2f1){if(_0x1db2f1===_0x5b0c4f('0xc63'))_0x57df25['success']({'title':_0xb55b02['instant'](_0x5b0c4f('0x184f')),'msg':_0xb55b02[_0x5b0c4f('0x1b11')](_0x5b0c4f('0xd36'))+'\x20'+_0x1db2f1});else{if(_0x1db2f1==='RECALLME'||_0x1db2f1==='RESCHEDULE'){}else _0x57df25['success']({'title':_0xb55b02['instant'](_0x5b0c4f('0x184f')),'msg':_0xb55b02[_0x5b0c4f('0x1b11')](_0x5b0c4f('0x2760'))});}}for(const _0x5c0b68 in _0x3a6603[_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')]['vm'][_0x5b0c4f('0xfb1')]){if(typeof _0x3a6603[_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')]['vm'][_0x5b0c4f('0xfb1')][_0x5c0b68]!==_0x5b0c4f('0xedb')){const _0xc2a1b7=_0x3a6603[_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')][_0x5b0c4f('0x7d0')]['vm'][_0x5b0c4f('0xfb1')][_0x5c0b68];_0x283545()[_0x5b0c4f('0x1a90')](_0xc2a1b7[_0x5b0c4f('0x565')],function(_0x2d72e0){const _0x4f96af=_0x5b0c4f;return _0x2d72e0[_0x4f96af('0x1be7')]===_0x222438['uniqueid'];});}}_0x3a6603['$parent']['vm']['updateLocalStorage']();});}function _0x28f0b1(_0x38be48){const _0x42cc76=_0x3970c5;return _0x26473a[_0x42cc76('0x1ba4')][_0x42cc76('0x100b')]({'id':_0x38be48})[_0x42cc76('0x1714')][_0x42cc76('0x2788')](function(_0x8b5e8c){const _0x3c2f25=_0x42cc76;_0x301467[_0x3c2f25('0x24f6')][_0x3c2f25('0x132')]=_0x8b5e8c;})[_0x42cc76('0x1cb5')](function(_0x1b0b7c){const _0x5e65bb=_0x42cc76;_0x57df25[_0x5e65bb('0x5e8')]({'title':_0x1b0b7c[_0x5e65bb('0x1b51')]?'API:'+_0x1b0b7c[_0x5e65bb('0x1b51')]+_0x5e65bb('0x1b0b')+_0x1b0b7c[_0x5e65bb('0x22ce')]:'LIST:GETCustomFields','msg':_0x1b0b7c[_0x5e65bb('0x11fc')]?JSON[_0x5e65bb('0x1be0')](_0x1b0b7c[_0x5e65bb('0x11fc')]):_0x1b0b7c['toString']()});});}function _0x46f10b(_0x5219db){return _0x5219db===null?undefined:new Date(_0x5219db);}function _0x57aee6(_0x4c36ca){const _0xd6cf3a=_0x3970c5;try{_0x4c36ca[_0xd6cf3a('0x6e4')]=_0x18710c()[_0xd6cf3a('0x26aa')](_0x4c36ca[_0xd6cf3a('0x6e4')],{'contact':_0x301467[_0xd6cf3a('0xc17')],'user':_0x301467[_0xd6cf3a('0x1e6a')]});}catch(_0x1a1309){console[_0xd6cf3a('0x5e8')](_0x1a1309);}try{_0x3a6603[_0xd6cf3a('0x7d0')][_0xd6cf3a('0x7d0')][_0xd6cf3a('0x7d0')]['vm']['addTab']({'type':_0xd6cf3a('0x184c'),'title':_0x4c36ca[_0xd6cf3a('0x1a8d')],'icon':_0xd6cf3a('0x1caf'),'color':'grey','project':_0x4c36ca,'contact':_0x301467[_0xd6cf3a('0xc17')]});}catch(_0x201e20){_0x57df25[_0xd6cf3a('0x5e8')]({'title':_0xd6cf3a('0x10ac'),'msg':_0xd6cf3a('0x922')+JSON[_0xd6cf3a('0x1be0')](_0x201e20)});}}function _0x14f50f(_0x2a9936){const _0x15699c=_0x3970c5;return _0x23ef9e[_0x15699c('0xdd')](_0x2a9936);}_0x3a6603[_0x3970c5('0x651')](_0x3970c5('0x26ac'),function(){});}const _0x3d13c7=_0x3f46cd;_0x3d01b1[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x818'),_0x34e79e('0x5db'),_0x34e79e('0x935'),_0x34e79e('0xc17'),_0x34e79e('0x1b04'),_0x34e79e('0x1a5c')];function _0x3d01b1(_0x5239bf,_0x53d1ac,_0x1938d,_0x2d3140,_0x3d929b,_0x2e841b,_0x410c70,_0x58ca43,_0x1cedb7,_0x245c33){const _0x4cef2a=_0x34e79e,_0x2a799b=this;_0x2a799b[_0x4cef2a('0x1bc8')]=![],_0x2a799b[_0x4cef2a('0x13a1')]=![],_0x2a799b[_0x4cef2a('0x1895')]=undefined,_0x2a799b[_0x4cef2a('0x12c0')]={'count':0x0,'rows':[]},_0x2a799b[_0x4cef2a('0x818')]=_0x3d929b['rows'],_0x2a799b[_0x4cef2a('0x5db')]=_0x2e841b['rows'],_0x2a799b['contact']=_0x58ca43,_0x2a799b['call']=_0x410c70,_0x2a799b[_0x4cef2a('0x1d54')]=_0x2a799b[_0x4cef2a('0x935')]['note']||undefined,_0x2a799b[_0x4cef2a('0xf78')]=![],_0x2a799b['hasBlackLists']=![],_0x2a799b[_0x4cef2a('0x265c')]={'minDate':new Date(),'dateTime':new Date()};_0x2a799b[_0x4cef2a('0x935')]&&_0x2a799b[_0x4cef2a('0x935')][_0x4cef2a('0xf76')]&&_0x2a799b[_0x4cef2a('0x935')]['variables'][_0x4cef2a('0x12ee')]?(_0x2a799b[_0x4cef2a('0xf78')]=!![],_0x2d3140[_0x4cef2a('0x2043')][_0x4cef2a('0x3f')]({'id':_0x2a799b[_0x4cef2a('0x935')][_0x4cef2a('0xf76')][_0x4cef2a('0x12ee')]})[_0x4cef2a('0x1714')][_0x4cef2a('0x2788')](function(_0x56209c){const _0x3ea7f4=_0x4cef2a;_0x56209c&&_0x56209c[_0x3ea7f4('0x25df')]&&_0x56209c[_0x3ea7f4('0x25df')][_0x3ea7f4('0x2566')]>0x0&&(_0x2a799b[_0x3ea7f4('0x18a6')]=!![]);})[_0x4cef2a('0x1cb5')](function(_0x508022){const _0x1e4736=_0x4cef2a;_0x1938d[_0x1e4736('0x5e8')]({'title':_0x508022[_0x1e4736('0x1b51')]?_0x1e4736('0x15d1')+_0x508022[_0x1e4736('0x1b51')]+_0x1e4736('0x1b0b')+_0x508022[_0x1e4736('0x22ce')]:_0x1e4736('0x11f1'),'msg':_0x508022[_0x1e4736('0x11fc')]?JSON[_0x1e4736('0x1be0')](_0x508022[_0x1e4736('0x11fc')]):_0x508022['toString']()});})):_0x2d3140[_0x4cef2a('0x1e6a')]['getQueues']({'id':_0x1cedb7[_0x4cef2a('0x24cc')]()['id'],'fields':_0x4cef2a('0x412'),'channel':_0x4cef2a('0x1f60'),'type':_0x4cef2a('0x1'),'nolimit':!![]})['$promise']['then'](function(_0xdd8efe){const _0x4b6aea=_0x4cef2a;_0x2a799b[_0x4b6aea('0x12c0')]=_0xdd8efe||{'count':0x0,'rows':[]};})['catch'](function(_0x4aca5e){console['error'](_0x4aca5e);});_0x2a799b[_0x4cef2a('0xc90')]=_0x4e16fd,_0x2a799b[_0x4cef2a('0xa61')]=_0x3b1a78,_0x2a799b[_0x4cef2a('0x1cb2')]=_0x1ca2a8,_0x2a799b['closeDialog']=_0x2aee20,_0x2a799b['saveReschedule']=_0xa78115;function _0x4e16fd(_0x5d0e7e){const _0x3ccd3b=_0x4cef2a,_0x425a99=_0x283545()['unionBy'](_0x2a799b[_0x3ccd3b('0x818')],_0x2a799b[_0x3ccd3b('0x5db')],'id');switch(_0x5d0e7e){case _0x3ccd3b('0x2716'):_0x2a799b[_0x3ccd3b('0x1f61')]=_0x2a799b['firstLevelDisposition'],_0x2a799b[_0x3ccd3b('0xf79')]=_0x283545()['some'](_0x425a99,[_0x3ccd3b('0x1ba'),_0x2a799b[_0x3ccd3b('0x50e')]['id']]),_0x2a799b[_0x3ccd3b('0xf56')]=undefined,_0x2a799b[_0x3ccd3b('0x151f')]=undefined,_0x2a799b[_0x3ccd3b('0xdce')]=![];break;case _0x3ccd3b('0x1929'):_0x2a799b[_0x3ccd3b('0x1f61')]=_0x2a799b[_0x3ccd3b('0xf56')],_0x2a799b[_0x3ccd3b('0xdce')]=_0x283545()[_0x3ccd3b('0xc5d')](_0x425a99,[_0x3ccd3b('0x1ba'),_0x2a799b['secondLevelDisposition']['id']]);break;case _0x3ccd3b('0x1f2c'):_0x2a799b[_0x3ccd3b('0x1f61')]=_0x2a799b[_0x3ccd3b('0x151f')];break;}}function _0x3b1a78(_0x3fba79){const _0x2c5f35=_0x4cef2a;if(_0x3fba79==='second')_0x2a799b[_0x2c5f35('0xf56')]=undefined,_0x2a799b[_0x2c5f35('0x151f')]=undefined,_0x2a799b['selectedDisposition']=_0x2a799b['firstLevelDisposition'];else _0x3fba79===_0x2c5f35('0x1f2c')&&(_0x2a799b[_0x2c5f35('0x151f')]=undefined,_0x2a799b['selectedDisposition']=_0x2a799b[_0x2c5f35('0xf56')]);}function _0x89871c(){const _0x547268=_0x4cef2a,_0x120252=_0x2a799b['selectedDisposition']?_0x2a799b['selectedDisposition']['name'][_0x547268('0xc2e')]():undefined;return{'id':_0x2a799b['call']['uniqueid'],'disposition':_0x2a799b[_0x547268('0x50e')]?_0x2a799b[_0x547268('0x50e')][_0x547268('0x1a8d')]:null,'secondDisposition':_0x2a799b[_0x547268('0xf56')]?_0x2a799b[_0x547268('0xf56')][_0x547268('0x1a8d')]:null,'thirdDisposition':_0x2a799b[_0x547268('0x151f')]?_0x2a799b[_0x547268('0x151f')][_0x547268('0x1a8d')]:null,'dispositionat':_0x59f37a()(),'amd':_0x120252===_0x547268('0x4d1'),'fax':_0x120252==='fax','blacklist':_0x120252===_0x547268('0x19aa'),'recallme':_0x120252===_0x547268('0x13a1'),'UserId':_0x120252==='recallme'?_0x1cedb7[_0x547268('0x24cc')]()['id']:null,'OwnerId':_0x1cedb7[_0x547268('0x24cc')]()['id']};}function _0x143c1c(){const _0x2eed8e=_0x4cef2a;return _0x2d3140[_0x2eed8e('0x99')][_0x2eed8e('0x2740')]({'id':_0x2a799b[_0x2eed8e('0x935')][_0x2eed8e('0x1be7')],'userDisposition':_0x2a799b[_0x2eed8e('0x50e')]?_0x2a799b['firstLevelDisposition'][_0x2eed8e('0x1a8d')]:null,'userSecondDisposition':_0x2a799b[_0x2eed8e('0xf56')]?_0x2a799b[_0x2eed8e('0xf56')][_0x2eed8e('0x1a8d')]:null,'userThirdDisposition':_0x2a799b[_0x2eed8e('0x151f')]?_0x2a799b['thirdLevelDisposition'][_0x2eed8e('0x1a8d')]:null,'note':_0x2a799b[_0x2eed8e('0x1d54')],'UserId':_0x1cedb7[_0x2eed8e('0x24cc')]()['id'],'ContactId':_0x2a799b['contact']['id']})[_0x2eed8e('0x1714')]['catch'](function(_0x218594){const _0x1f4d93=_0x2eed8e;_0x1938d[_0x1f4d93('0x5e8')]({'title':_0x218594[_0x1f4d93('0x1b51')]?_0x1f4d93('0x15d1')+_0x218594['status']+'\x20-\x20'+_0x218594[_0x1f4d93('0x22ce')]:_0x1f4d93('0x22f'),'msg':_0x218594['data']?JSON[_0x1f4d93('0x1be0')](_0x218594[_0x1f4d93('0x11fc')]):_0x218594['toString']()});});}function _0x4fa373(){const _0x32a963=_0x4cef2a;return _0x2d3140[_0x32a963('0x14ff')][_0x32a963('0x1335')]({'uniqueid':_0x2a799b[_0x32a963('0x935')][_0x32a963('0x1be7')]})[_0x32a963('0x1714')]['then'](function(_0x28f795){const _0x1904ea=_0x32a963;if(_0x28f795)for(let _0x555f82=0x0;_0x555f82<_0x28f795[_0x1904ea('0x25df')][_0x1904ea('0x2566')];_0x555f82+=0x1){_0x2d3140['voiceRecording'][_0x1904ea('0x2740')]({'id':_0x28f795[_0x1904ea('0x25df')][_0x555f82]['id'],'userDisposition':_0x2a799b[_0x1904ea('0x50e')]?_0x2a799b[_0x1904ea('0x50e')][_0x1904ea('0x1a8d')]:null,'userSecondDisposition':_0x2a799b[_0x1904ea('0xf56')]?_0x2a799b['secondLevelDisposition'][_0x1904ea('0x1a8d')]:null,'userThirdDisposition':_0x2a799b[_0x1904ea('0x151f')]?_0x2a799b['thirdLevelDisposition'][_0x1904ea('0x1a8d')]:null})['$promise'][_0x1904ea('0x1cb5')](function(_0xd7fe16){const _0x377c8c=_0x1904ea;_0x1938d[_0x377c8c('0x5e8')]({'title':_0xd7fe16['status']?'API:'+_0xd7fe16[_0x377c8c('0x1b51')]+_0x377c8c('0x1b0b')+_0xd7fe16[_0x377c8c('0x22ce')]:'SYSTEM:UPDATEVOICERECORDING','msg':_0xd7fe16[_0x377c8c('0x11fc')]?JSON['stringify'](_0xd7fe16[_0x377c8c('0x11fc')]):_0xd7fe16[_0x377c8c('0x17df')]()});});}})[_0x32a963('0x1cb5')](function(_0x757504){const _0x4c7af5=_0x32a963;_0x1938d[_0x4c7af5('0x5e8')]({'title':_0x757504[_0x4c7af5('0x1b51')]?_0x4c7af5('0x15d1')+_0x757504['status']+_0x4c7af5('0x1b0b')+_0x757504['statusText']:_0x4c7af5('0x165b'),'msg':_0x757504[_0x4c7af5('0x11fc')]?JSON[_0x4c7af5('0x1be0')](_0x757504[_0x4c7af5('0x11fc')]):_0x757504['toString']()});});}function _0x552fd0(){const _0x3c064e=_0x4cef2a;return _0x2d3140[_0x3c064e('0x177a')]['update'](_0x89871c())['$promise'][_0x3c064e('0x1cb5')](function(_0x1d60f0){const _0x143fe9=_0x3c064e;_0x1938d[_0x143fe9('0x5e8')]({'title':_0x1d60f0[_0x143fe9('0x1b51')]?_0x143fe9('0x15d1')+_0x1d60f0[_0x143fe9('0x1b51')]+_0x143fe9('0x1b0b')+_0x1d60f0['statusText']:'SYSTEM:UPDATECMHOPPERFINAL','msg':_0x1d60f0[_0x143fe9('0x11fc')]?JSON[_0x143fe9('0x1be0')](_0x1d60f0['data']):_0x1d60f0[_0x143fe9('0x17df')]()});});}function _0x5126df(){const _0x402b77=_0x4cef2a;return _0x2d3140['cmHopperHistory']['update'](_0x89871c())[_0x402b77('0x1714')][_0x402b77('0x1cb5')](function(_0x4a21b3){const _0x433e50=_0x402b77;_0x1938d[_0x433e50('0x5e8')]({'title':_0x4a21b3[_0x433e50('0x1b51')]?_0x433e50('0x15d1')+_0x4a21b3[_0x433e50('0x1b51')]+_0x433e50('0x1b0b')+_0x4a21b3[_0x433e50('0x22ce')]:'SYSTEM:UPDATECMHOPPERHISTORY','msg':_0x4a21b3['data']?JSON[_0x433e50('0x1be0')](_0x4a21b3[_0x433e50('0x11fc')]):_0x4a21b3[_0x433e50('0x17df')]()});});}function _0x3e20e2(_0x41784e){const _0x5dbd8a=_0x4cef2a;if(_0x41784e)return _0x2d3140[_0x5dbd8a('0x2043')][_0x5dbd8a('0x3f')]({'id':_0x41784e,'type':_0x5dbd8a('0x1'),'fields':'id'})[_0x5dbd8a('0x1714')][_0x5dbd8a('0x2788')](function(_0x34303d){const _0x4f7421=_0x5dbd8a,_0x29dca8=[];if(_0x34303d&&_0x34303d[_0x4f7421('0x338')]>0x0){for(let _0x1c4f86=0x0;_0x1c4f86<_0x34303d['rows'][_0x4f7421('0x2566')];_0x1c4f86+=0x1){const _0x4bad6f=angular[_0x4f7421('0x2669')](_0x2a799b[_0x4f7421('0xc17')]);delete _0x4bad6f['id'],_0x4bad6f[_0x4f7421('0x354')]=_0x34303d[_0x4f7421('0x25df')][_0x1c4f86]['id'],_0x29dca8[_0x4f7421('0x13e3')](_0x2d3140['cmContact'][_0x4f7421('0xbd0')](_0x4bad6f)[_0x4f7421('0x1714')]);}return _0x53d1ac[_0x4f7421('0x1def')](_0x29dca8);}_0x1938d[_0x4f7421('0x173b')]({'title':_0x245c33[_0x4f7421('0x1b11')](_0x4f7421('0x184f')),'msg':_0x245c33['instant'](_0x4f7421('0x164e'))+'\x20'+_0x2a799b[_0x4f7421('0x1f61')]}),_0x2a799b[_0x4f7421('0x1f61')]=undefined;return;})[_0x5dbd8a('0x2788')](function(_0x5026db){const _0x524d7d=_0x5dbd8a;_0x5026db&&_0x5239bf['hide'](_0x2a799b['selectedDisposition']?_0x2a799b[_0x524d7d('0x1f61')]['name'][_0x524d7d('0x25e6')]():'');})[_0x5dbd8a('0x1cb5')](function(_0x3b586c){const _0x4f0bf0=_0x5dbd8a;_0x1938d[_0x4f0bf0('0x5e8')]({'title':_0x3b586c[_0x4f0bf0('0x1b51')]?'API:'+_0x3b586c[_0x4f0bf0('0x1b51')]+_0x4f0bf0('0x1b0b')+_0x3b586c[_0x4f0bf0('0x22ce')]:_0x4f0bf0('0x1bca'),'msg':_0x3b586c[_0x4f0bf0('0x11fc')]?JSON[_0x4f0bf0('0x1be0')](_0x3b586c[_0x4f0bf0('0x11fc')]):_0x3b586c['toString']()}),_0x5239bf['hide'](_0x2a799b[_0x4f0bf0('0x1f61')]?_0x2a799b[_0x4f0bf0('0x1f61')][_0x4f0bf0('0x1a8d')][_0x4f0bf0('0x25e6')]():'');});}function _0x1ca2a8(_0x25a3ad){const _0x48c97d=_0x4cef2a;_0x2a799b[_0x48c97d('0x1f61')]=_0x283545()['isNil'](_0x25a3ad)?_0x2a799b['selectedDisposition']:{'name':_0x25a3ad};_0x25a3ad&&(_0x2a799b[_0x48c97d('0x50e')]=_0x2a799b[_0x48c97d('0x1f61')]);_0x2a799b[_0x48c97d('0x935')][_0x48c97d('0x1d54')]=_0x2a799b[_0x48c97d('0x1d54')],_0x143c1c(),_0x4fa373();_0x2a799b['dialerCall']&&(_0x552fd0(),_0x5126df());if(!_0x283545()[_0x48c97d('0x1015')](_0x2a799b[_0x48c97d('0x1f61')]))switch(_0x2a799b[_0x48c97d('0x1f61')][_0x48c97d('0x1a8d')][_0x48c97d('0xc2e')]()){case _0x48c97d('0x19aa'):_0x2a799b['call']&&_0x2a799b['call'][_0x48c97d('0xf76')]&&_0x2a799b['call']['variables'][_0x48c97d('0x12ee')]&&_0x3e20e2(_0x2a799b[_0x48c97d('0x935')]['variables'][_0x48c97d('0x12ee')]);break;case _0x48c97d('0x1a91'):_0x2a799b[_0x48c97d('0x1bc8')]=!![],_0x2a799b['recallme']=![];break;case _0x48c97d('0x13a1'):_0x2a799b[_0x48c97d('0x1bc8')]=!![],_0x2a799b[_0x48c97d('0x13a1')]=!![];break;default:_0x5239bf[_0x48c97d('0x19d')](_0x2a799b[_0x48c97d('0x1f61')]?_0x2a799b[_0x48c97d('0x1f61')][_0x48c97d('0x1a8d')][_0x48c97d('0x25e6')]():'');}else _0x5239bf[_0x48c97d('0x19d')](_0x2a799b['selectedDisposition']?_0x2a799b[_0x48c97d('0x1f61')][_0x48c97d('0x1a8d')]['toUpperCase']():'');}function _0x2aee20(){const _0x4d4d14=_0x4cef2a;_0x5239bf[_0x4d4d14('0x1801')]();}function _0xa78115(){const _0x1249cd=_0x4cef2a;return _0x2a799b[_0x1249cd('0x734')]=!![],_0x2d3140[_0x1249cd('0x1de1')][_0x1249cd('0xbd0')]({'phone':_0x2a799b[_0x1249cd('0xc17')][_0x1249cd('0x1224')],'UserId':_0x2a799b[_0x1249cd('0x13a1')]?_0x1cedb7['getCurrentUser']()['id']:null,'ContactId':_0x2a799b[_0x1249cd('0xc17')]['id'],'ListId':_0x2a799b['contact']['ListId'],'VoiceQueueId':_0x2a799b[_0x1249cd('0xf78')]?Number(_0x2a799b[_0x1249cd('0x935')][_0x1249cd('0x12ee')]):_0x2a799b[_0x1249cd('0x1895')]?_0x2a799b[_0x1249cd('0x1895')]['id']:null,'scheduledat':_0x59f37a()(_0x2a799b[_0x1249cd('0x265c')]['dateTime'])[_0x1249cd('0x22b4')](_0x1249cd('0xe8e')),'priority':0x3,'recallme':_0x2a799b['recallme'],'OwnerId':_0x1cedb7[_0x1249cd('0x24cc')]()['id']})[_0x1249cd('0x1714')][_0x1249cd('0x2788')](function(){const _0x40f31e=_0x1249cd;_0x2a799b[_0x40f31e('0xf78')]&&_0x2d3140[_0x40f31e('0x177a')][_0x40f31e('0x2740')]({'id':_0x2a799b[_0x40f31e('0x935')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x59f37a()(_0x2a799b[_0x40f31e('0x265c')][_0x40f31e('0x7e')])['format'](_0x40f31e('0xe8e')),'recallme':_0x2a799b['recallme']})[_0x40f31e('0x1714')][_0x40f31e('0x1cb5')](function(_0x503b69){const _0x1752f0=_0x40f31e;console[_0x1752f0('0x10df')](_0x503b69);});})[_0x1249cd('0x2788')](function(){const _0x6ca90f=_0x1249cd;_0x1938d[_0x6ca90f('0x173b')]({'title':_0x245c33[_0x6ca90f('0x1b11')](_0x6ca90f('0x184f')),'msg':_0x245c33[_0x6ca90f('0x1b11')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x2a799b[_0x6ca90f('0x13a1')]?_0x245c33['instant']('DASHBOARDS.RECALLME'):_0x245c33[_0x6ca90f('0x1b11')](_0x6ca90f('0x1045')))});})[_0x1249cd('0x1cb5')](function(){const _0x27203f=_0x1249cd;_0x5239bf[_0x27203f('0x19d')](_0x2a799b['selectedDisposition']?_0x2a799b[_0x27203f('0x1f61')][_0x27203f('0x1a8d')]['toUpperCase']():'');})[_0x1249cd('0x1ed8')](function(){const _0x2672b4=_0x1249cd;_0x2a799b[_0x2672b4('0x734')]=![],_0x5239bf[_0x2672b4('0x19d')](_0x2a799b[_0x2672b4('0x1f61')]?_0x2a799b['selectedDisposition'][_0x2672b4('0x1a8d')][_0x2672b4('0x25e6')]():'');});}}const _0x31b5b3=_0x3d01b1;_0x51eabe[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x446'),'toasty',_0x34e79e('0x519'),_0x34e79e('0xc17'),'call','Auth',_0x34e79e('0x13a1'),_0x34e79e('0x1a5c')];function _0x51eabe(_0x2a128c,_0x1decb0,_0x5225b3,_0x4a1dac,_0xbeffc4,_0x2b90d0,_0x2d0ff3,_0x3e0aec,_0x2f842c,_0x34cc47,_0x1216e6,_0x191b15){const _0x306d2d=_0x34e79e,_0x2adb50=this;_0x2adb50[_0x306d2d('0x935')]=_0x2f842c,_0x2adb50[_0x306d2d('0xc17')]=_0x3e0aec,_0x2adb50[_0x306d2d('0x265c')]={'minDate':new Date(),'dateTime':new Date()};function _0x1f327f(){const _0x4ddc25=_0x306d2d;return _0x2adb50[_0x4ddc25('0x734')]=!![],_0x2d0ff3[_0x4ddc25('0x1de1')][_0x4ddc25('0xbd0')]({'phone':_0x2adb50['contact']['phone'],'UserId':_0x1216e6?_0x34cc47[_0x4ddc25('0x24cc')]()['id']:null,'ContactId':_0x2adb50[_0x4ddc25('0xc17')]['id'],'ListId':_0x2adb50[_0x4ddc25('0xc17')]['ListId'],'VoiceQueueId':Number(_0x2adb50[_0x4ddc25('0x935')]['xmd-voicequeueid']),'scheduledat':_0x59f37a()(_0x2adb50['hopper']['dateTime'])['format'](_0x4ddc25('0xe8e')),'priority':0x3,'recallme':_0x1216e6,'OwnerId':_0x34cc47['getCurrentUser']()['id']})[_0x4ddc25('0x1714')][_0x4ddc25('0x2788')](function(){const _0x3d305b=_0x4ddc25;_0x2d0ff3[_0x3d305b('0x177a')]['update']({'id':_0x2adb50['call'][_0x3d305b('0x1be7')],'rescheduled':!![],'rescheduledat':_0x59f37a()(_0x2adb50[_0x3d305b('0x265c')]['dateTime'])['format'](_0x3d305b('0xe8e')),'recallme':_0x1216e6})[_0x3d305b('0x1714')];})[_0x4ddc25('0x2788')](function(){const _0x165ed2=_0x4ddc25;_0x2b90d0['success']({'title':_0x191b15[_0x165ed2('0x1b11')](_0x165ed2('0x184f')),'msg':_0x191b15[_0x165ed2('0x1b11')](_0x165ed2('0xd36'))+'\x20'+(_0x1216e6?_0x191b15[_0x165ed2('0x1b11')](_0x165ed2('0x254')):_0x191b15[_0x165ed2('0x1b11')](_0x165ed2('0x1045')))}),_0x4a1dac[_0x165ed2('0x19d')]();})[_0x4ddc25('0x1cb5')](function(_0x5be485){const _0x441da9=_0x4ddc25;_0x4a1dac[_0x441da9('0x1801')](_0x5be485);})[_0x4ddc25('0x1ed8')](function(){const _0x491d5b=_0x4ddc25;_0x2adb50[_0x491d5b('0x734')]=![];});}function _0x6ad742(){_0x4a1dac['cancel']();}_0x2adb50[_0x306d2d('0xca7')]=_0x6ad742,_0x2adb50['saveDialog']=_0x1f327f;}const _0x3bf5ec=_0x51eabe;_0x5925a9['$inject']=[_0x34e79e('0x123b'),'$translate',_0x34e79e('0x519'),_0x34e79e('0x14b'),_0x34e79e('0x14f3'),'toasty'];function _0x5925a9(_0x586ecb,_0x4c657c,_0x1d3773,_0x4066a8,_0x7f3f64,_0x27c554){const _0x2494f0=_0x34e79e,_0x464ee0=this;_0x464ee0['callNumber']=_0x7f3f64,_0x464ee0[_0x2494f0('0x23f5')]=0x1;function _0x5d2660(){const _0x4e8f3c=_0x2494f0;_0x1d3773['cmList'][_0x4e8f3c('0x1335')]({'fields':_0x4e8f3c('0x1338'),'nolimit':!![]})[_0x4e8f3c('0x1714')][_0x4e8f3c('0x2788')](function(_0x47a08c){const _0x1e74e3=_0x4e8f3c;_0x464ee0[_0x1e74e3('0x2')]=_0x283545()[_0x1e74e3('0x277b')](_0x47a08c[_0x1e74e3('0x25df')])[_0x1e74e3('0x13cf')]('id')[_0x1e74e3('0x2402')](_0x1e74e3('0x1a8d'))[_0x1e74e3('0x49')](),_0x1d3773[_0x1e74e3('0x1fbd')][_0x1e74e3('0x1335')]({'fields':'id,alias','nolimit':!![]})[_0x1e74e3('0x1714')][_0x1e74e3('0x2788')](function(_0x4e4fbd){const _0x13deaf=_0x1e74e3;_0x464ee0[_0x13deaf('0x132')]=_0x4e4fbd[_0x13deaf('0x25df')],_0x464ee0[_0x13deaf('0x14b')]=_0x283545()[_0x13deaf('0x155d')](_0x4066a8,function(_0xae79fa){const _0xfe5930=_0x13deaf;return Object['keys'](_0xae79fa)[_0xfe5930('0x1534')](function(_0xb4572c){const _0x1175a8=_0xfe5930;if(Number(_0xae79fa[_0xb4572c])===Number(_0x464ee0[_0x1175a8('0x14f3')])){if(_0xb4572c[_0x1175a8('0x993')](_0x1175a8('0x249c'))){const _0x127469=_0x283545()[_0x1175a8('0x20e8')](_0x464ee0[_0x1175a8('0x132')],['id',Number(_0x283545()[_0x1175a8('0x19c2')](_0xb4572c,'cf_'))]);_0xae79fa[_0x1175a8('0x1d55')]=_0x127469?_0x127469['alias']:_0x4c657c['instant'](_0x1175a8('0x2185'));}else _0xae79fa['matchingField']=_0xb4572c;}}),_0xae79fa;});});})['then'](function(){const _0x83fb3c=_0x4e8f3c;_0x464ee0[_0x83fb3c('0x1724')]=_0x283545()[_0x83fb3c('0x15ba')](_0x4066a8,0x4);})[_0x4e8f3c('0x1cb5')](function(_0x249984){const _0x75824c=_0x4e8f3c;_0x27c554[_0x75824c('0x5e8')]({'title':_0x249984[_0x75824c('0x1b51')]?_0x75824c('0x15d1')+_0x249984['status']+'\x20-\x20'+_0x249984[_0x75824c('0x22ce')]:'api.cmList.get','msg':_0x249984[_0x75824c('0x11fc')]?JSON['stringify'](_0x249984[_0x75824c('0x11fc')]['message']):_0x249984[_0x75824c('0x17df')]()});});}function _0x3ddd03(){const _0x47954a=_0x2494f0;_0x586ecb[_0x47954a('0x19d')](_0x464ee0[_0x47954a('0x236e')]);}_0x464ee0[_0x2494f0('0x122e')]=_0x5d2660,_0x464ee0['selectContact']=_0x3ddd03;}const _0x44e627=_0x5925a9;_0x1c2b0b['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x16e3')];function _0x1c2b0b(_0x30c4da,_0xa7a83b){const _0x586463=_0x34e79e;let _0x3447e1=_0xa7a83b(function(){},0x3e7);_0x30c4da[_0x586463('0x651')](_0x586463('0x26ac'),function(){const _0xf1e7e1=_0x586463;_0x3447e1&&(_0xa7a83b[_0xf1e7e1('0x1801')](_0x3447e1),_0x3447e1=null);});}const _0x2e90c0=_0x1c2b0b;_0x3725fd[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$window',_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x3725fd(_0x22b233,_0x4acbd3,_0x15b05b,_0x650ff0,_0x2e6dc8,_0xcec3e2,_0x23a458,_0x23fff7,_0xb46a64){const _0x229f86=_0x34e79e,_0x15e643=this;_0x15e643[_0x229f86('0x15c2')]=![],_0x15e643[_0x229f86('0x9b9')]=!![],_0x15e643['disable']=[],_0x15e643[_0x229f86('0x818')]={'count':0x0,'rows':[]},_0x15e643['currentUser']=_0x23fff7[_0x229f86('0x24cc')](),_0x15e643[_0x229f86('0x283e')]={},_0x15e643['abandonedCalls']={'count':0x0,'rows':[]},_0x15e643['query']={'fields':_0x229f86('0x6e9'),'type':_0x229f86('0x1'),'queuecallerexitreason':'TIMEOUT'+','+_0x229f86('0x26a8'),'sort':_0x229f86('0x1cee'),'limit':0xa,'page':0x1},_0x15e643[_0x229f86('0x3e8')]=_0x195d33,_0x15e643[_0x229f86('0x644')]=_0xb906dd,_0x15e643[_0x229f86('0x122e')]=_0x3a0e05,_0x15e643[_0x229f86('0x355')]=_0x2bdc17,_0x15e643[_0x229f86('0x3d2')]=_0x1c8d05,_0x15e643['call']=_0x22b233[_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')]['vm'][_0x229f86('0x935')],_0x15e643[_0x229f86('0x589')]=_0x22b233[_0x229f86('0x7d0')][_0x229f86('0x7d0')]['$parent'][_0x229f86('0x7d0')]['vm'][_0x229f86('0x589')],_0x15e643[_0x229f86('0x143e')]=_0x22b233[_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')]['vm'][_0x229f86('0x143e')],_0x15e643[_0x229f86('0xe97')]=_0x22b233[_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')][_0x229f86('0x7d0')]['vm'][_0x229f86('0xe97')],_0x15e643['onSearchBarCollapse']=_0x2ac2b3,_0x15e643['onSearchBarExpand']=_0x5302c0,_0xb46a64[_0x229f86('0x3e')]('voiceQueueReport:save',_0x3bb99e),_0xb46a64['onWithoutApply'](_0x229f86('0x1585'),_0x1e11a1),_0x3a0e05();function _0x3a0e05(){const _0x3f502b=_0x229f86;return _0x23a458[_0x3f502b('0x1db2')]['get']({'MailAccountId':_0x3f502b('0x954'),'FaxAccountId':_0x3f502b('0x954'),'SmsAccountId':_0x3f502b('0x954'),'WhatsappAccountId':_0x3f502b('0x954'),'OpenchannelAccountId':_0x3f502b('0x954'),'ChatWebsiteId':_0x3f502b('0x954')})[_0x3f502b('0x1714')][_0x3f502b('0x2788')](function(_0x4fe46d){const _0x4655e9=_0x3f502b;return _0x15e643[_0x4655e9('0x818')]=_0x4fe46d?_0x4fe46d[_0x4655e9('0x25df')]:[],_0x23a458[_0x4655e9('0x1e6a')][_0x4655e9('0x138a')]({'id':_0x23fff7[_0x4655e9('0x24cc')]()['id'],'fields':_0x4655e9('0x1338'),'channel':_0x4655e9('0x1f60'),'type':_0x4655e9('0x1'),'nolimit':!![]})[_0x4655e9('0x1714')];})[_0x3f502b('0x2788')](function(_0x2bee76){const _0x4b4539=_0x3f502b;_0x15e643[_0x4b4539('0x283e')]=_0x2bee76||{'count':0x0,'rows':[]},_0x15e643[_0x4b4539('0xe30')]=_0x283545()[_0x4b4539('0x2402')](_0x283545()[_0x4b4539('0x13cf')](_0x15e643[_0x4b4539('0x283e')][_0x4b4539('0x25df')],'name'),_0x4b4539('0x1a8d')),_0x15e643['defaultQueues']=_0x15e643[_0x4b4539('0x283e')][_0x4b4539('0x25df')]?_0x283545()[_0x4b4539('0x155d')](_0x15e643['queues'][_0x4b4539('0x25df')],_0x4b4539('0x1a8d'))[_0x4b4539('0x185f')](','):undefined;})[_0x3f502b('0x2788')](function(){const _0x93bdc1=_0x3f502b;_0x15e643[_0x93bdc1('0xa28')]=_0x5359f9();})[_0x3f502b('0x1cb5')](function(_0x5165d6){const _0x2d0ddb=_0x3f502b;console[_0x2d0ddb('0x10df')](_0x5165d6);})[_0x3f502b('0x1ed8')](function(){const _0x4ac7cf=_0x3f502b;let _0xf031a0=_0x2e6dc8[_0x4ac7cf('0x155e')]['getItem'](_0x4ac7cf('0x56e')+_0x15e643[_0x4ac7cf('0x9cb')]['id']);if(_0xf031a0)_0xf031a0=JSON[_0x4ac7cf('0xe0b')](_0xf031a0),_0xf031a0['query']&&(_0x15e643[_0x4ac7cf('0x135a')]=_0x283545()[_0x4ac7cf('0x2503')](_0xf031a0[_0x4ac7cf('0x135a')],_0x283545()[_0x4ac7cf('0x5a9')](_0x15e643[_0x4ac7cf('0x135a')],['sort',_0x4ac7cf('0x68e'),'page'])),_0x15e643[_0x4ac7cf('0x135a')]=_0x283545()[_0x4ac7cf('0x5a9')](_0x15e643['query'],_0x4ac7cf('0x916')));else{const _0x2941af={'$gte':_0x59f37a()()[_0x4ac7cf('0x13e4')](_0x4ac7cf('0x2dc'))['utcOffset'](0x0,!![])[_0x4ac7cf('0x22b4')](),'$lte':_0x59f37a()()[_0x4ac7cf('0x142e')](_0x4ac7cf('0x2dc'))['utcOffset'](0x0,!![])[_0x4ac7cf('0x22b4')]()};_0x15e643[_0x4ac7cf('0x135a')]['createdAt']=_0x2941af;}_0x15e643[_0x4ac7cf('0x236d')]=_0x15e643[_0x4ac7cf('0x135a')][_0x4ac7cf('0x916')]?!![]:![],_0x15e643[_0x4ac7cf('0x3e8')]();});}function _0x5359f9(){const _0x133b9e=_0x229f86;return[{'name':_0x133b9e('0x9ac'),'key':'createdAt','type':_0x133b9e('0x1012'),'label':_0x133b9e('0x1664')},{'name':_0x133b9e('0x262d'),'key':_0x133b9e('0x3bb'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x15e643[_0x133b9e('0x9cb')]['id'],'translate':_0x133b9e('0x3a8')},{'value':'\x27null\x27','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x133b9e('0xc79')}]},{'name':_0x133b9e('0xaa4'),'key':_0x133b9e('0x1ab4'),'type':_0x133b9e('0x9a4'),'label':_0x133b9e('0xd7b'),'options':_0x15e643[_0x133b9e('0x283e')][_0x133b9e('0x25df')],'ngValue':'name','clearAll':![]}];}function _0x195d33(){const _0x53ed9a=_0x229f86;_0x15e643[_0x53ed9a('0x135a')]['queue']=_0x15e643['query']['queue']||_0x15e643['defaultQueues']['split'](','),_0x15e643[_0x53ed9a('0x135a')][_0x53ed9a('0x19e')]=(_0x15e643[_0x53ed9a('0x135a')][_0x53ed9a('0x23f5')]-0x1)*_0x15e643[_0x53ed9a('0x135a')][_0x53ed9a('0x68e')];const _0x2512e2={'query':_0x15e643['query']};_0x2e6dc8[_0x53ed9a('0x155e')][_0x53ed9a('0x23dc')](_0x53ed9a('0x56e')+_0x15e643['currentUser']['id'],JSON[_0x53ed9a('0x1be0')](_0x2512e2)),_0x15e643[_0x53ed9a('0x1808')]=_0x23a458[_0x53ed9a('0x1715')][_0x53ed9a('0x1147')](_0x15e643[_0x53ed9a('0x135a')],_0x594d51)[_0x53ed9a('0x1714')];}function _0x594d51(_0x4a957c){const _0x160695=_0x229f86;_0x15e643[_0x160695('0xd2b')]=_0x4a957c||{'count':0x0,'rows':[]},_0x15e643[_0x160695('0x9b9')]=!![];}function _0x1c8d05(_0x47f0c7){const _0x283fb2=_0x229f86;_0x15b05b[_0x283fb2('0x2fa')]({'controller':_0x283fb2('0x93b'),'controllerAs':'vm','templateUrl':_0x283fb2('0x2597'),'parent':angular[_0x283fb2('0x16b1')](_0x650ff0['body']),'targetEvent':_0x47f0c7,'resolve':{'globalDispositions':[_0x283fb2('0x1318'),function(_0x6d4c6a){const _0x82ab3a=_0x283fb2;return _0x6d4c6a['resolve']('disposition@get',{'MailAccountId':_0x82ab3a('0x954'),'FaxAccountId':_0x82ab3a('0x954'),'SmsAccountId':'null','WhatsappAccountId':_0x82ab3a('0x954'),'OpenchannelAccountId':_0x82ab3a('0x954'),'ChatWebsiteId':_0x82ab3a('0x954'),'ListId':'null'});}]},'locals':{'dispositions':_0x15e643[_0x283fb2('0x818')],'call':_0x47f0c7}})['then'](function(_0x13e16f){const _0x13a08f=_0x283fb2;if(_0x13e16f){_0x15e643[_0x13a08f('0x734')][_0x47f0c7['id']]=!![];const _0x592170={'id':_0x47f0c7['id'],'lastAssignedTo':_0x47f0c7[_0x13a08f('0x1b65')]?_0x15e643[_0x13a08f('0x9cb')][_0x13a08f('0x1a8d')]:null,'assigned':_0x47f0c7['assigned'],'disposition':_0x13e16f[_0x13a08f('0x1c38')]||null,'secondDisposition':_0x13e16f[_0x13a08f('0x1caa')]||null,'thirdDisposition':_0x13e16f['thirdLevel']||null};_0x23a458[_0x13a08f('0x1715')][_0x13a08f('0x2740')](_0x592170)[_0x13a08f('0x1714')][_0x13a08f('0x1cb5')](function(_0x4551b1){console['log'](_0x4551b1);})[_0x13a08f('0x1ed8')](function(){_0x15e643['disable'][_0x47f0c7['id']]=![];});}});}function _0x2ac2b3(){const _0x520ba0=_0x229f86;_0x15e643[_0x520ba0('0x135a')][_0x520ba0('0x916')]=undefined,_0x15e643[_0x520ba0('0x236d')]=![];}function _0x5302c0(){const _0x32f5d8=_0x229f86;_0x15e643[_0x32f5d8('0x236d')]=!![];}let _0x592a17=!![],_0x259a33=0x1;_0x22b233['$watch'](_0x229f86('0x1b12'),function(_0x267fa5,_0x21f5ef){const _0x3a2eec=_0x229f86;_0x592a17?_0x4acbd3(function(){_0x592a17=![];}):(!_0x21f5ef&&(_0x259a33=_0x15e643[_0x3a2eec('0x135a')][_0x3a2eec('0x23f5')]),_0x267fa5!==_0x21f5ef&&(_0x15e643[_0x3a2eec('0x135a')][_0x3a2eec('0x23f5')]=0x1),!_0x267fa5&&(_0x15e643[_0x3a2eec('0x135a')]['page']=_0x259a33),_0x15e643[_0x3a2eec('0x3e8')]());});function _0xb906dd(){const _0x20e731=_0x229f86;_0x15e643[_0x20e731('0x15c2')]=![],_0x15e643[_0x20e731('0x3e8')]();}function _0x2bdc17(_0x4d3720){const _0x279657=_0x229f86;_0x4d3720&&(_0x15e643[_0x279657('0x734')][_0x4d3720['id']]=!![],_0x23a458[_0x279657('0x1715')][_0x279657('0x2740')]({'id':_0x4d3720['id'],'lastAssignedTo':_0x4d3720[_0x279657('0x1b65')]?_0x15e643['currentUser']['name']:null,'assigned':_0x4d3720[_0x279657('0x1b65')]})[_0x279657('0x1714')][_0x279657('0x1cb5')](function(_0x254719){const _0x1ac674=_0x279657;console[_0x1ac674('0x10df')](_0x254719);})[_0x279657('0x1ed8')](function(){const _0xdb2afb=_0x279657;_0x15e643[_0xdb2afb('0x734')][_0x4d3720['id']]=![];}));}function _0x3bb99e(_0x5987ec){const _0x6f2af9=_0x229f86;_0x15e643[_0x6f2af9('0xe30')]&&_0x5987ec[_0x6f2af9('0x1d7')]===_0x6f2af9('0x1')&&_0x15e643[_0x6f2af9('0xe30')][_0x5987ec[_0x6f2af9('0x1ab4')]]&&(_0x15e643['showTooltip']=!![]);}function _0x1e11a1(_0x23af5a){const _0x3373b3=_0x229f86;if(_0x23af5a){const _0x26e71d=_0x283545()[_0x3373b3('0x1855')](_0x15e643['abandonedCalls'][_0x3373b3('0x25df')],['id',_0x23af5a['id']]);_0x26e71d>=0x0&&_0x283545()[_0x3373b3('0x2503')](_0x15e643[_0x3373b3('0xd2b')][_0x3373b3('0x25df')][_0x26e71d],_0x23af5a);}}_0x22b233[_0x229f86('0x651')]('$destroy',function(){const _0x3e5b71=_0x229f86;_0xb46a64[_0x3e5b71('0x277f')]('voiceQueueReport:save'),_0xb46a64['removeAllListeners'](_0x3e5b71('0x1585'));});}const _0x481bdd=_0x3725fd;_0x14ce40[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x818'),_0x34e79e('0x5db'),_0x34e79e('0x935')];function _0x14ce40(_0x483e64,_0x569e9e,_0x50d4dc,_0x350984){const _0x5481a8=_0x34e79e,_0x16237b=this;_0x16237b[_0x5481a8('0x818')]=_0x569e9e[_0x5481a8('0x25df')],_0x16237b['globalDispositions']=_0x50d4dc['rows'],_0x16237b[_0x5481a8('0x935')]=_0x350984,_0x16237b['note']=_0x16237b[_0x5481a8('0x935')][_0x5481a8('0x1d54')]||undefined,_0x16237b['onDispositionChange']=_0x2c2754,_0x16237b['clearDispositionSelection']=_0x595f59,_0x16237b['saveDisposition']=_0x803088,_0x16237b[_0x5481a8('0xca7')]=_0x1de437;function _0x2c2754(_0x205473){const _0x2042e3=_0x5481a8,_0x49710a=_0x283545()[_0x2042e3('0x15b9')](_0x16237b[_0x2042e3('0x818')],_0x16237b[_0x2042e3('0x5db')],'id');switch(_0x205473){case'first':_0x16237b[_0x2042e3('0x1f61')]=_0x16237b['firstLevelDisposition'],_0x16237b[_0x2042e3('0xf79')]=_0x283545()[_0x2042e3('0xc5d')](_0x49710a,[_0x2042e3('0x1ba'),_0x16237b[_0x2042e3('0x50e')]['id']]),_0x16237b[_0x2042e3('0xf56')]=undefined,_0x16237b[_0x2042e3('0x151f')]=undefined,_0x16237b[_0x2042e3('0xdce')]=![];break;case _0x2042e3('0x1929'):_0x16237b[_0x2042e3('0x1f61')]=_0x16237b['secondLevelDisposition'],_0x16237b['anyThirdLevelDisposition']=_0x283545()[_0x2042e3('0xc5d')](_0x49710a,[_0x2042e3('0x1ba'),_0x16237b[_0x2042e3('0xf56')]['id']]);break;case _0x2042e3('0x1f2c'):_0x16237b['selectedDisposition']=_0x16237b[_0x2042e3('0x151f')];break;}}function _0x595f59(_0xfd43f){const _0xd042b3=_0x5481a8;if(_0xfd43f===_0xd042b3('0x1929'))_0x16237b[_0xd042b3('0xf56')]=undefined,_0x16237b['thirdLevelDisposition']=undefined,_0x16237b[_0xd042b3('0x1f61')]=_0x16237b[_0xd042b3('0x50e')];else _0xfd43f===_0xd042b3('0x1f2c')&&(_0x16237b[_0xd042b3('0x151f')]=undefined,_0x16237b[_0xd042b3('0x1f61')]=_0x16237b[_0xd042b3('0xf56')]);}function _0x803088(){const _0x16a27b=_0x5481a8;_0x16237b[_0x16a27b('0x935')][_0x16a27b('0x1d54')]=_0x16237b['note'];const _0x4cb59a={'firstLevel':_0x16237b[_0x16a27b('0x50e')]?_0x16237b[_0x16a27b('0x50e')][_0x16a27b('0x1a8d')]:undefined,'secondLevel':_0x16237b['secondLevelDisposition']?_0x16237b[_0x16a27b('0xf56')]['name']:undefined,'thirdLevel':_0x16237b[_0x16a27b('0x151f')]?_0x16237b[_0x16a27b('0x151f')][_0x16a27b('0x1a8d')]:undefined};_0x483e64[_0x16a27b('0x19d')](_0x4cb59a);}function _0x1de437(){const _0x293661=_0x5481a8;_0x483e64[_0x293661('0x1801')]();}}const _0x384484=_0x14ce40;_0x46f1bb[_0x34e79e('0x2d9')]=['$scope','$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$window','$translate',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x46f1bb(_0x526435,_0x5508e2,_0x329d9f,_0x1e33fd,_0x115644,_0xf94b53,_0x32c6a1,_0x5c4b99,_0x4c24e3){const _0x117fd2=_0x34e79e,_0x5bfbb5=this;_0x5bfbb5[_0x117fd2('0x15c2')]=![],_0x5bfbb5[_0x117fd2('0x9b9')]=!![],_0x5bfbb5[_0x117fd2('0x734')]=[],_0x5bfbb5[_0x117fd2('0x818')]={'count':0x0,'rows':[]},_0x5bfbb5[_0x117fd2('0x9cb')]=_0x5c4b99[_0x117fd2('0x24cc')](),_0x5bfbb5[_0x117fd2('0x283e')]={},_0x5bfbb5['abandonedCalls']={'count':0x0,'rows':[]},_0x5bfbb5['query']={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':_0x117fd2('0x2e4'),'queuecallerexitreason':_0x117fd2('0x2750')+','+_0x117fd2('0x26a8'),'sort':_0x117fd2('0x1cee'),'limit':0xa,'page':0x1},_0x5bfbb5[_0x117fd2('0x3e8')]=_0x218909,_0x5bfbb5[_0x117fd2('0x644')]=_0x50eec8,_0x5bfbb5['onInit']=_0xb13953,_0x5bfbb5[_0x117fd2('0x355')]=_0x2597c0,_0x5bfbb5['dispose']=_0x413bd0,_0x5bfbb5[_0x117fd2('0x935')]=_0x526435[_0x117fd2('0x7d0')][_0x117fd2('0x7d0')][_0x117fd2('0x7d0')]['$parent']['vm']['call'],_0x5bfbb5[_0x117fd2('0x589')]=_0x526435[_0x117fd2('0x7d0')]['$parent'][_0x117fd2('0x7d0')][_0x117fd2('0x7d0')]['vm'][_0x117fd2('0x589')],_0x5bfbb5[_0x117fd2('0x143e')]=_0x526435['$parent'][_0x117fd2('0x7d0')][_0x117fd2('0x7d0')][_0x117fd2('0x7d0')]['vm']['webcall'],_0x5bfbb5[_0x117fd2('0xe97')]=_0x526435[_0x117fd2('0x7d0')][_0x117fd2('0x7d0')]['$parent'][_0x117fd2('0x7d0')]['vm'][_0x117fd2('0xe97')],_0x5bfbb5['onSearchBarCollapse']=_0x5c2a7c,_0x5bfbb5[_0x117fd2('0x5ca')]=_0x2e8792,_0x4c24e3['onWithoutApply'](_0x117fd2('0xd9b'),_0x1ee47c),_0x4c24e3[_0x117fd2('0x3e')](_0x117fd2('0x1585'),_0x5249f9),_0xb13953();function _0xb13953(){const _0x5011e5=_0x117fd2;return _0x32c6a1['disposition'][_0x5011e5('0x1335')]({'MailAccountId':_0x5011e5('0x954'),'FaxAccountId':_0x5011e5('0x954'),'SmsAccountId':_0x5011e5('0x954'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x5011e5('0x954'),'ChatWebsiteId':'null'})['$promise'][_0x5011e5('0x2788')](function(_0x872528){const _0x32b498=_0x5011e5;return _0x5bfbb5[_0x32b498('0x818')]=_0x872528?_0x872528[_0x32b498('0x25df')]:[],_0x32c6a1[_0x32b498('0x1e6a')][_0x32b498('0x138a')]({'id':_0x5c4b99[_0x32b498('0x24cc')]()['id'],'fields':_0x32b498('0x1338'),'channel':_0x32b498('0x1f60'),'type':_0x32b498('0x2e4'),'nolimit':!![]})[_0x32b498('0x1714')];})[_0x5011e5('0x2788')](function(_0x29971a){const _0x1bda1c=_0x5011e5;_0x5bfbb5[_0x1bda1c('0x283e')]=_0x29971a||{'count':0x0,'rows':[]},_0x5bfbb5[_0x1bda1c('0xe30')]=_0x283545()[_0x1bda1c('0x2402')](_0x283545()[_0x1bda1c('0x13cf')](_0x5bfbb5[_0x1bda1c('0x283e')][_0x1bda1c('0x25df')],_0x1bda1c('0x1a8d')),_0x1bda1c('0x1a8d')),_0x5bfbb5[_0x1bda1c('0x2009')]=_0x5bfbb5[_0x1bda1c('0x283e')]['rows']?_0x283545()['map'](_0x5bfbb5[_0x1bda1c('0x283e')][_0x1bda1c('0x25df')],_0x1bda1c('0x1a8d'))[_0x1bda1c('0x185f')](','):undefined;})[_0x5011e5('0x2788')](function(){_0x5bfbb5['quickFilters']=_0x2cd42c();})[_0x5011e5('0x1cb5')](function(_0x53c8a2){const _0x5efa0f=_0x5011e5;console[_0x5efa0f('0x10df')](_0x53c8a2);})['finally'](function(){const _0x366d97=_0x5011e5;let _0x145a9d=_0x115644[_0x366d97('0x155e')][_0x366d97('0xced')](_0x366d97('0xde6')+_0x5bfbb5[_0x366d97('0x9cb')]['id']);if(_0x145a9d)_0x145a9d=JSON[_0x366d97('0xe0b')](_0x145a9d),_0x145a9d[_0x366d97('0x135a')]&&(_0x5bfbb5['query']=_0x283545()[_0x366d97('0x2503')](_0x145a9d['query'],_0x283545()[_0x366d97('0x5a9')](_0x5bfbb5[_0x366d97('0x135a')],['sort',_0x366d97('0x68e'),_0x366d97('0x23f5')])),_0x5bfbb5['query']=_0x283545()[_0x366d97('0x5a9')](_0x5bfbb5[_0x366d97('0x135a')],'filter'));else{const _0xdb4afb={'$gte':_0x59f37a()()[_0x366d97('0x13e4')]('month')['utcOffset'](0x0,!![])[_0x366d97('0x22b4')](),'$lte':_0x59f37a()()[_0x366d97('0x142e')](_0x366d97('0x2dc'))[_0x366d97('0x2827')](0x0,!![])['format']()};_0x5bfbb5[_0x366d97('0x135a')][_0x366d97('0x172')]=_0xdb4afb;}_0x5bfbb5['isSearchBarVisible']=_0x5bfbb5[_0x366d97('0x135a')]['filter']?!![]:![],_0x5bfbb5[_0x366d97('0x3e8')]();});}function _0x2cd42c(){const _0x59ca21=_0x117fd2;return[{'name':_0x59ca21('0x9ac'),'key':_0x59ca21('0x172'),'type':_0x59ca21('0x1012'),'label':_0x59ca21('0x1664')},{'name':'Agent','key':_0x59ca21('0x3bb'),'type':_0x59ca21('0x983'),'label':_0x59ca21('0x2bd'),'customOptions':[{'value':_0x5bfbb5['currentUser']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x59ca21('0x171e'),'translate':_0x59ca21('0xce3')},{'value':undefined,'translate':_0x59ca21('0xc79')}]},{'name':_0x59ca21('0xaa4'),'key':_0x59ca21('0x1ab4'),'type':'multiselect','label':'DASHBOARDS.SELECT_QUEUE','options':_0x5bfbb5[_0x59ca21('0x283e')][_0x59ca21('0x25df')],'ngValue':_0x59ca21('0x1a8d'),'clearAll':![]}];}function _0x218909(){const _0x329d3a=_0x117fd2;_0x5bfbb5[_0x329d3a('0x135a')][_0x329d3a('0x1ab4')]=_0x5bfbb5[_0x329d3a('0x135a')][_0x329d3a('0x1ab4')]||_0x5bfbb5[_0x329d3a('0x2009')][_0x329d3a('0x1497')](','),_0x5bfbb5[_0x329d3a('0x135a')][_0x329d3a('0x19e')]=(_0x5bfbb5[_0x329d3a('0x135a')][_0x329d3a('0x23f5')]-0x1)*_0x5bfbb5[_0x329d3a('0x135a')][_0x329d3a('0x68e')];const _0x385459={'query':_0x5bfbb5[_0x329d3a('0x135a')]};_0x115644['localStorage']['setItem'](_0x329d3a('0xde6')+_0x5bfbb5['currentUser']['id'],JSON[_0x329d3a('0x1be0')](_0x385459)),_0x5bfbb5[_0x329d3a('0x1808')]=_0x32c6a1[_0x329d3a('0x1715')]['getVoiceQueuesReport'](_0x5bfbb5[_0x329d3a('0x135a')],_0x62ba26)['$promise'];}function _0x62ba26(_0x2e9e2f){const _0x5dd46f=_0x117fd2;_0x5bfbb5[_0x5dd46f('0xd2b')]=_0x2e9e2f||{'count':0x0,'rows':[]},_0x5bfbb5[_0x5dd46f('0x9b9')]=!![];}function _0x413bd0(_0x31d792){const _0x44eae4=_0x117fd2;_0x329d9f[_0x44eae4('0x2fa')]({'controller':_0x44eae4('0x93b'),'controllerAs':'vm','templateUrl':_0x44eae4('0x2597'),'parent':angular['element'](_0x1e33fd[_0x44eae4('0x945')]),'targetEvent':_0x31d792,'resolve':{'globalDispositions':[_0x44eae4('0x1318'),function(_0x52662c){const _0x377efa=_0x44eae4;return _0x52662c[_0x377efa('0x2322')]('disposition@get',{'MailAccountId':_0x377efa('0x954'),'FaxAccountId':'null','SmsAccountId':_0x377efa('0x954'),'WhatsappAccountId':_0x377efa('0x954'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x377efa('0x954'),'ListId':_0x377efa('0x954')});}]},'locals':{'dispositions':_0x5bfbb5['dispositions'],'call':_0x31d792}})[_0x44eae4('0x2788')](function(_0x1c1fbd){const _0x3bc180=_0x44eae4;if(_0x1c1fbd){_0x5bfbb5[_0x3bc180('0x734')][_0x31d792['id']]=!![];const _0x43bff9={'id':_0x31d792['id'],'lastAssignedTo':_0x31d792[_0x3bc180('0x1b65')]?_0x5bfbb5[_0x3bc180('0x9cb')][_0x3bc180('0x1a8d')]:null,'assigned':_0x31d792[_0x3bc180('0x1b65')],'disposition':_0x1c1fbd[_0x3bc180('0x1c38')]||null,'secondDisposition':_0x1c1fbd[_0x3bc180('0x1caa')]||null,'thirdDisposition':_0x1c1fbd[_0x3bc180('0x1496')]||null};_0x32c6a1[_0x3bc180('0x1715')][_0x3bc180('0x2740')](_0x43bff9)['$promise'][_0x3bc180('0x1cb5')](function(_0x30f73c){const _0x56edbf=_0x3bc180;console[_0x56edbf('0x10df')](_0x30f73c);})[_0x3bc180('0x1ed8')](function(){_0x5bfbb5['disable'][_0x31d792['id']]=![];});}});}function _0x5c2a7c(){const _0x110559=_0x117fd2;_0x5bfbb5[_0x110559('0x135a')][_0x110559('0x916')]=undefined,_0x5bfbb5[_0x110559('0x236d')]=![];}function _0x2e8792(){const _0xddd205=_0x117fd2;_0x5bfbb5[_0xddd205('0x236d')]=!![];}let _0x2503c0=!![],_0x55eea2=0x1;_0x526435[_0x117fd2('0x1662')]('vm_voice.query.filter',function(_0x49c60c,_0xcbaad5){const _0x59cf42=_0x117fd2;_0x2503c0?_0x5508e2(function(){_0x2503c0=![];}):(!_0xcbaad5&&(_0x55eea2=_0x5bfbb5[_0x59cf42('0x135a')][_0x59cf42('0x23f5')]),_0x49c60c!==_0xcbaad5&&(_0x5bfbb5[_0x59cf42('0x135a')][_0x59cf42('0x23f5')]=0x1),!_0x49c60c&&(_0x5bfbb5[_0x59cf42('0x135a')]['page']=_0x55eea2),_0x5bfbb5[_0x59cf42('0x3e8')]());});function _0x50eec8(){const _0x3b7165=_0x117fd2;_0x5bfbb5[_0x3b7165('0x15c2')]=![],_0x5bfbb5[_0x3b7165('0x3e8')]();}function _0x2597c0(_0x1a4622){const _0x21a59d=_0x117fd2;_0x1a4622&&(_0x5bfbb5[_0x21a59d('0x734')][_0x1a4622['id']]=!![],_0x32c6a1[_0x21a59d('0x1715')][_0x21a59d('0x2740')]({'id':_0x1a4622['id'],'lastAssignedTo':_0x1a4622[_0x21a59d('0x1b65')]?_0x5bfbb5[_0x21a59d('0x9cb')][_0x21a59d('0x1a8d')]:null,'assigned':_0x1a4622[_0x21a59d('0x1b65')]})[_0x21a59d('0x1714')][_0x21a59d('0x1cb5')](function(_0x3cb3b7){const _0x357154=_0x21a59d;console[_0x357154('0x10df')](_0x3cb3b7);})[_0x21a59d('0x1ed8')](function(){const _0x35e4b0=_0x21a59d;_0x5bfbb5[_0x35e4b0('0x734')][_0x1a4622['id']]=![];}));}function _0x1ee47c(_0xd24bcc){const _0x937e75=_0x117fd2;_0x5bfbb5[_0x937e75('0xe30')]&&_0xd24bcc[_0x937e75('0x1d7')]==='inbound'&&_0x5bfbb5[_0x937e75('0xe30')][_0xd24bcc[_0x937e75('0x1ab4')]]&&(_0x5bfbb5[_0x937e75('0x15c2')]=!![]);}function _0x5249f9(_0x2c91db){const _0x525e81=_0x117fd2;if(_0x2c91db){const _0x43e62b=_0x283545()['findIndex'](_0x5bfbb5[_0x525e81('0xd2b')]['rows'],['id',_0x2c91db['id']]);_0x43e62b>=0x0&&_0x283545()[_0x525e81('0x2503')](_0x5bfbb5[_0x525e81('0xd2b')][_0x525e81('0x25df')][_0x43e62b],_0x2c91db);}}_0x526435[_0x117fd2('0x651')](_0x117fd2('0x26ac'),function(){const _0x59a8b7=_0x117fd2;_0x4c24e3[_0x59a8b7('0x277f')](_0x59a8b7('0xd9b')),_0x4c24e3[_0x59a8b7('0x277f')](_0x59a8b7('0x1585'));});}const _0x45bc0e=_0x46f1bb;_0x340cff[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1b04'),_0x34e79e('0x3de'),'draftManager'];function _0x340cff(_0x14d467,_0x119e1e,_0x342114,_0x1ca528,_0x1d5cef){const _0x5c70c4=_0x34e79e,_0x1b415a=this;_0x1b415a[_0x5c70c4('0x1e6a')]=_0x342114['getCurrentUser'](),_0x1b415a[_0x5c70c4('0x130d')]={},_0x1b415a[_0x5c70c4('0x1c5')]={},_0x1b415a[_0x5c70c4('0x1af0')]={},_0x1b415a['sidebar']='dashboard',_0x1b415a[_0x5c70c4('0x1902')]=_0x1d5cef,_0x1b415a[_0x5c70c4('0x24ce')]=_0x1ca528[_0x5c70c4('0x276d')](),_0x1b415a[_0x5c70c4('0x11eb')]=_0x14d467['$parent']['vm'][_0x5c70c4('0x11eb')],_0x1b415a[_0x5c70c4('0x1442')]=_0x14d467[_0x5c70c4('0x7d0')]['vm'][_0x5c70c4('0x1442')],_0x1b415a[_0x5c70c4('0x24eb')]=_0x556542,_0x1b415a['changeSidebarTab']=_0x42e0f4,_0x1b415a[_0x5c70c4('0xdd')]=_0x8cb5aa;function _0x556542(_0x500698,_0x5c58d6){const _0x246387=_0x5c70c4;_0x1b415a[_0x246387('0x130d')]=_0x500698,_0x1b415a[_0x246387('0x1af0')]=_0x5c58d6;let _0x51051a=_0x119e1e[_0x246387('0x155e')][_0x246387('0xced')](_0x246387('0xc0e')+_0x1b415a[_0x246387('0x1e6a')]['id']);if(_0x51051a){try{_0x51051a=JSON['parse'](_0x51051a),_0x1b415a[_0x246387('0x7a8')]=_0x51051a['currentSidebarTab']?_0x51051a['currentSidebarTab']:_0x246387('0x19f4');}catch(_0x14bdd1){console[_0x246387('0x5e8')](_0x14bdd1),_0x1b415a[_0x246387('0x7a8')]=_0x246387('0x19f4');}_0x1b415a[_0x246387('0x7a8')]===_0x246387('0x2795')&&_0x1b415a['draftManager'][_0x246387('0x24eb')]();}}function _0x8cb5aa(_0x594d7f){const _0x2b0aff=_0x5c70c4;return _0x342114[_0x2b0aff('0xdd')](_0x594d7f);}function _0x42e0f4(_0x571992){const _0x36afe8=_0x5c70c4;_0x1b415a[_0x36afe8('0x7a8')]=_0x571992[_0x36afe8('0xdfd')],_0x1b415a[_0x36afe8('0x7a8')]===_0x36afe8('0x1c5')&&(_0x1b415a[_0x36afe8('0x1c5')]=_0x571992['stateParams'],_0x1b415a[_0x36afe8('0x22ac')]=_0x571992['id'],_0x14d467[_0x36afe8('0x2379')](_0x36afe8('0x26ae'),{'plugin':_0x1b415a[_0x36afe8('0x1c5')]})),_0x119e1e[_0x36afe8('0x155e')][_0x36afe8('0x23dc')]('motion2.home:'+_0x1b415a[_0x36afe8('0x1e6a')]['id'],JSON[_0x36afe8('0x1be0')]({'currentSidebarTab':_0x571992[_0x36afe8('0xdfd')]}));}_0x14d467[_0x5c70c4('0x1662')](_0x5c70c4('0x102a'),function(_0x1a5daf){const _0xf6c735=_0x5c70c4;_0x1a5daf===_0xf6c735('0x2795')?_0x1b415a[_0xf6c735('0x1902')][_0xf6c735('0x24eb')]():_0x1b415a[_0xf6c735('0x1902')][_0xf6c735('0xdb')]={};});}const _0x423af8=_0x340cff,_0x5bb5f3=_0x18dd13['p']+_0x34e79e('0x26d6');_0x3590fc['$inject']=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'socket',_0x34e79e('0xd57')];function _0x3590fc(_0x29822e,_0x5358f7,_0x604bb3,_0x3d3b4f,_0x180157,_0x453b80,_0x5871ba,_0x5e4366,_0x4b5f2f,_0x3e3832){const _0x201df3=_0x34e79e,_0x183419=this;_0x183419[_0x201df3('0x1e6a')]=_0x5e4366[_0x201df3('0x24cc')](),_0x183419[_0x201df3('0x130d')]={},_0x183419[_0x201df3('0x1af0')]={},_0x183419[_0x201df3('0xe45')]={'count':0x0,'rows':[]},_0x183419[_0x201df3('0xa2d')]={'count':0x0,'rows':[]},_0x183419['query']={'includeAll':!![],'sort':_0x201df3('0x1cee'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x183419[_0x201df3('0x1e13')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x201df3('0x1c64'),'column':_0x201df3('0x1c64'),'type':'autocomplete','options':{'searchFields':[_0x201df3('0x26da'),_0x201df3('0x26b9'),_0x201df3('0x2436')],'route':{'model':_0x201df3('0xa83'),'action':_0x201df3('0x1335'),'params':{'fields':_0x201df3('0x1373'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x201df3('0x1a77')],'excludedOperators':['$ne']}},{'name':_0x201df3('0x1e8f'),'column':'body','type':'text','options':{'excludedOperators':['$eq',_0x201df3('0x149c')]}},{'name':_0x201df3('0x21d8'),'column':_0x201df3('0x215d'),'type':_0x201df3('0x983'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x201df3('0x977')}],'options':{'excludedOperators':[_0x201df3('0x149c')]}},{'name':_0x201df3('0x4b6'),'column':_0x201df3('0x2702'),'type':'text','options':{'excludedOperators':[_0x201df3('0x1ff9'),_0x201df3('0x149c'),'$startsWith','$endsWith']}},{'name':'Agent','column':'User','type':_0x201df3('0x137e'),'options':{'table':'i','route':{'model':_0x201df3('0x1e6a'),'action':_0x201df3('0x1335'),'params':{'role':_0x201df3('0x188b'),'fields':_0x201df3('0x10fe'),'nolimit':!![]}},'searchFields':[_0x201df3('0x2831'),_0x201df3('0x1a8d')],'extraOperators':[_0x201df3('0x1a77')],'excludedOperators':[_0x201df3('0x149c')]}},{'name':_0x201df3('0x1577'),'column':_0x201df3('0x965'),'type':_0x201df3('0x9a4'),'options':{'route':{'model':_0x201df3('0x1e6a'),'action':_0x201df3('0xfa6'),'params':{'id':_0x183419[_0x201df3('0x1e6a')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x201df3('0x251d'),'type':_0x201df3('0x9a4'),'options':{'route':{'model':'tag','action':_0x201df3('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x201df3('0x9ac'),'column':_0x201df3('0x172'),'type':_0x201df3('0x1012'),'options':{'excludedOperators':[_0x201df3('0x149c')]}},{'name':_0x201df3('0x27d7'),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x201df3('0x204a')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}]},_0x183419['sectionColor']='green-A700',_0x183419['onInit']=_0xb921a6,_0x183419[_0x201df3('0x173b')]=_0x23d8a5,_0x183419[_0x201df3('0x8c7')]=_0x44a259,_0x183419[_0x201df3('0x1c27')]=_0x2d0eca,_0x183419[_0x201df3('0x1397')]=_0x3ea2bc,_0x183419[_0x201df3('0xcc4')]=_0x24414f,_0x183419[_0x201df3('0x190e')]=_0x4861f6,_0x183419[_0x201df3('0x704')]=_0x5d9ec8,_0x183419['getChatWebsiteLabel']=_0x329bbb,_0x183419['onSearchBarCollapse']=_0x226f55,_0x183419[_0x201df3('0x5ca')]=_0x3d7aca,_0x183419[_0x201df3('0x27c6')]=_0x16310e;function _0xb921a6(_0x4204d8,_0x4ee33c){const _0x5c97ee=_0x201df3;return _0x183419['license']=_0x4204d8,_0x183419[_0x5c97ee('0x1af0')]=_0x4ee33c,_0x5871ba['user'][_0x5c97ee('0x1335')+_0x283545()[_0x5c97ee('0x2265')]('ChatWebsites')]({'id':_0x183419[_0x5c97ee('0x1e6a')]['id'],'nolimit':!![]})[_0x5c97ee('0x1714')][_0x5c97ee('0x2788')](function(_0x25b3a1){const _0x2c91b5=_0x5c97ee;return _0x183419['chatAccounts']=_0x25b3a1||{'count':0x0,'rows':[]},_0x5871ba[_0x2c91b5('0x1764')][_0x2c91b5('0x1335')]()[_0x2c91b5('0x1714')];})['then'](function(_0x278228){const _0x98d62e=_0x5c97ee;_0x183419[_0x98d62e('0xe45')]=_0x278228||{'count':0x0,'rows':[]};})[_0x5c97ee('0x2788')](function(){const _0x526268=_0x5c97ee;_0x183419[_0x526268('0xa28')]=_0x3cedd8();})[_0x5c97ee('0x1cb5')](function(_0x23cc1d){const _0x35f26e=_0x5c97ee;console[_0x35f26e('0x5e8')](_0x23cc1d);})[_0x5c97ee('0x1ed8')](function(){const _0x5c0a94=_0x5c97ee;let _0xf8df33=_0x180157[_0x5c0a94('0x155e')][_0x5c0a94('0xced')](_0x5c0a94('0x273d')+_0x183419[_0x5c0a94('0x1e6a')]['id']);if(_0xf8df33)try{_0xf8df33=JSON['parse'](_0xf8df33);if(_0xf8df33[_0x5c0a94('0x135a')]){_0x183419[_0x5c0a94('0x135a')]=_0x283545()[_0x5c0a94('0x2503')](_0x183419[_0x5c0a94('0x135a')],_0xf8df33[_0x5c0a94('0x135a')]);if(_0x283545()[_0x5c0a94('0x213d')](_0x183419[_0x5c0a94('0x60')]['rows']))_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x965')]=[];else _0x283545()['isEmpty'](_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x965')])&&(_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x965')]=_0x283545()(_0x183419[_0x5c0a94('0x60')][_0x5c0a94('0x25df')])[_0x5c0a94('0x155d')]('id')[_0x5c0a94('0x212b')]()[_0x5c0a94('0x49')]());_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x2119')]&&_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x2119')][_0x5c0a94('0x821')]('lastMessage')>=0x0&&(_0x183419[_0x5c0a94('0x135a')]=_0x283545()[_0x5c0a94('0x5a9')](_0x183419[_0x5c0a94('0x135a')],_0x5c0a94('0x2119'))),_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0xc9d')]=!![],_0x183419[_0x5c0a94('0x236d')]=_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x916')]?!![]:![];}}catch(_0x5b2321){console[_0x5c0a94('0x5e8')](_0x5b2321);}else{const _0x3da5fe={'$gte':_0x59f37a()()[_0x5c0a94('0x13e4')](_0x5c0a94('0x2dc'))[_0x5c0a94('0x2827')](0x0,!![])[_0x5c0a94('0x22b4')](),'$lte':_0x59f37a()()[_0x5c0a94('0x142e')](_0x5c0a94('0x2dc'))[_0x5c0a94('0x2827')](0x0,!![])[_0x5c0a94('0x22b4')]()},_0x8e819b={'ChatWebsiteId':_0x283545()[_0x5c0a94('0x155d')](_0x183419['chatAccounts'][_0x5c0a94('0x25df')],'id'),'createdAt':_0x3da5fe};_0x183419[_0x5c0a94('0x135a')]=_0x283545()['merge'](_0x183419[_0x5c0a94('0x135a')],_0x8e819b);}_0x4b5f2f['on'](_0x5c0a94('0xcc2'),_0x262a32),_0x4b5f2f['on']('chatInteraction:update',_0x262a32),_0x4b5f2f['on'](_0x5c0a94('0x207f'),_0x370990),_0x4b5f2f['on'](_0x5c0a94('0x2170'),_0xead626),_0x4b5f2f['on'](_0x5c0a94('0x1769'),_0xead626),_0x4b5f2f['on'](_0x5c0a94('0x23aa'),_0xfffe52),_0x4b5f2f['on']('user_has_chat_interactions:remove',_0x77c053),_0x44a259(_0x183419[_0x5c0a94('0x135a')][_0x5c0a94('0x23f5')]);});}function _0x3cedd8(){const _0x649dc9=_0x201df3;return[{'name':'Start\x20Date','key':_0x649dc9('0x172'),'type':'date','label':_0x649dc9('0x1664')},{'name':'Messages','key':_0x649dc9('0x18e8'),'type':_0x649dc9('0x983'),'label':_0x649dc9('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x649dc9('0xe54')},{'value':0x1,'translate':_0x649dc9('0x204a')},{'value':null,'translate':_0x649dc9('0xc79')}]},{'name':'Status','key':_0x649dc9('0x215d'),'type':_0x649dc9('0x983'),'label':_0x649dc9('0xd0'),'customOptions':[{'value':0x0,'translate':_0x649dc9('0xd6c')},{'value':0x1,'translate':_0x649dc9('0x977')},{'value':null,'translate':_0x649dc9('0xc79')}]},{'name':'Website','key':_0x649dc9('0x965'),'type':_0x649dc9('0x9a4'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x183419['chatAccounts']['rows'],'clearAll':![]},{'name':_0x649dc9('0x262d'),'key':_0x649dc9('0x3bb'),'type':_0x649dc9('0x983'),'label':_0x649dc9('0x2bd'),'customOptions':[{'value':_0x183419[_0x649dc9('0x1e6a')]['id'],'translate':_0x649dc9('0x3a8')},{'value':_0x649dc9('0x954'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x649dc9('0x251d'),'key':'tag','type':_0x649dc9('0x9a4'),'label':'DASHBOARDS.SELECT_TAG','options':_0x183419['tags']['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x23d8a5(_0x4ed951){const _0x18e749=_0x201df3;_0x183419[_0x18e749('0x2849')]=![],_0x183419[_0x18e749('0xa2d')]=_0x4ed951||{'count':0x0,'rows':[]};for(let _0x498184=0x0;_0x498184<_0x183419[_0x18e749('0xa2d')][_0x18e749('0x25df')]['length'];_0x498184+=0x1){_0x4861f6(_0x183419[_0x18e749('0xa2d')][_0x18e749('0x25df')][_0x498184]);}}function _0x44a259(_0x3bf962){const _0x5cdf52=_0x201df3;_0x183419[_0x5cdf52('0x2849')]=!![];!_0x3bf962&&(_0x183419[_0x5cdf52('0x135a')]['page']=0x1);_0x183419['query'][_0x5cdf52('0x19e')]=(_0x183419[_0x5cdf52('0x135a')][_0x5cdf52('0x23f5')]-0x1)*_0x183419[_0x5cdf52('0x135a')][_0x5cdf52('0x68e')];let _0x152c4c=_0x180157[_0x5cdf52('0x155e')]['getItem'](_0x5cdf52('0x273d')+_0x183419[_0x5cdf52('0x1e6a')]['id']);_0x152c4c=_0x152c4c?JSON[_0x5cdf52('0xe0b')](_0x152c4c):{},_0x152c4c[_0x5cdf52('0x135a')]=_0x183419[_0x5cdf52('0x135a')],_0x180157[_0x5cdf52('0x155e')][_0x5cdf52('0x23dc')]('motion2.home.chat:'+_0x183419['user']['id'],JSON['stringify'](_0x152c4c)),_0x183419[_0x5cdf52('0x1808')]=_0x5871ba[_0x5cdf52('0x11d0')]['get'](_0x183419[_0x5cdf52('0x135a')],_0x23d8a5)[_0x5cdf52('0x1714')];}function _0x2d0eca(_0x3433b2,_0x412299){const _0x1b35e1=_0x201df3;_0x29822e['$parent']['vm'][_0x1b35e1('0x1442')]('chat',_0x412299);}function _0x3ea2bc(_0x4ff0bc,_0x36dcd2,_0x3e8573){const _0x38fb9b=_0x201df3;_0x5871ba[_0x38fb9b('0x11d0')][_0x38fb9b('0x1486')]({'id':_0x36dcd2['id'],'attachments':_0x3e8573})['$promise'][_0x38fb9b('0x2788')](function(_0xe26c6c){const _0x85d881=_0x38fb9b,_0x2f4523=[_0xe26c6c['buffer']],_0xe5bae9=_0x85d881('0x10a6')+_0x36dcd2['id']+_0x85d881('0xfdb'),_0x36644a=new Blob(_0x2f4523,{'type':_0xe26c6c[_0x85d881('0x1d7')]}),_0x472f23=window[_0x85d881('0x11c4')][_0x85d881('0x1ae6')]('a');_0x472f23[_0x85d881('0x1c6b')](_0x85d881('0x186a'),URL[_0x85d881('0x1b0d')](_0x36644a)),_0x472f23[_0x85d881('0x1c6b')](_0x85d881('0x1486'),_0xe5bae9),document[_0x85d881('0x945')][_0x85d881('0xcbf')](_0x472f23),_0x472f23[_0x85d881('0x132a')]();})[_0x38fb9b('0x1cb5')](function(_0x21040c){const _0x157b68=_0x38fb9b;if(_0x21040c[_0x157b68('0x11fc')]&&_0x21040c[_0x157b68('0x11fc')][_0x157b68('0x25be')]&&_0x21040c[_0x157b68('0x11fc')]['errors'][_0x157b68('0x2566')])for(let _0x2933d7=0x0;_0x2933d7<_0x21040c[_0x157b68('0x11fc')][_0x157b68('0x25be')][_0x157b68('0x2566')];_0x2933d7+=0x1){_0x3e3832['error']({'title':_0x21040c[_0x157b68('0x11fc')][_0x157b68('0x25be')][_0x2933d7][_0x157b68('0x1d7')],'msg':_0x21040c['data'][_0x157b68('0x25be')][_0x2933d7]['message']});}else _0x3e3832[_0x157b68('0x5e8')]({'title':_0x21040c[_0x157b68('0x1b51')]?_0x157b68('0x15d1')+_0x21040c['status']+'\x20-\x20'+_0x21040c['statusText']:'downloadChatInteraction','msg':_0x21040c[_0x157b68('0x11fc')]?JSON[_0x157b68('0x1be0')](_0x21040c[_0x157b68('0x11fc')][_0x157b68('0x15e2')]):_0x21040c[_0x157b68('0x17df')]()});});}function _0x24414f(_0x1dd11f,_0x352fe0){const _0x1f30fe=_0x201df3,_0xc29b67=_0x183419['user'][_0x1f30fe('0x2a1')]||_0x183419[_0x1f30fe('0x1e6a')][_0x1f30fe('0x23a5')]||_0x183419[_0x1f30fe('0x1e6a')][_0x1f30fe('0x20cd')]||_0x183419[_0x1f30fe('0x1e6a')]['openchannelPause']||_0x183419[_0x1f30fe('0x1e6a')][_0x1f30fe('0x1891')],_0x2d5999=!_0x352fe0[_0x1f30fe('0x140b')][_0x1f30fe('0x1c86')];_0x604bb3[_0x1f30fe('0x2fa')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x1f30fe('0x16b1')](_0x3d3b4f[_0x1f30fe('0x945')]),'clickOutsideToClose':_0x2d5999,'escapeToClose':_0x2d5999,'onRemoving':function(){const _0x3df5c7=_0x1f30fe;_0x183419[_0x3df5c7('0x1e6a')]&&_0x352fe0[_0x3df5c7('0x140b')][_0x3df5c7('0x1c86')]&&!_0xc29b67&&_0x5871ba[_0x3df5c7('0x1e6a')][_0x3df5c7('0x1826')]({'id':_0x183419[_0x3df5c7('0x1e6a')]['id']})[_0x3df5c7('0x1714')]['catch'](function(_0x366848){const _0x213399=_0x3df5c7;console[_0x213399('0x5e8')](_0x366848);});},'locals':{'user':_0x183419[_0x1f30fe('0x1e6a')],'channel':_0x1f30fe('0x231'),'interaction':_0x352fe0}});}function _0x4861f6(_0x4f4b48){const _0x320092=_0x201df3;_0x4f4b48[_0x320092('0x1c64')]?_0x4f4b48[_0x320092('0x497')]=(_0x4f4b48[_0x320092('0x1c64')][_0x320092('0x26da')]||'')+'\x20'+(_0x4f4b48[_0x320092('0x1c64')][_0x320092('0x26b9')]||''):_0x4f4b48[_0x320092('0x497')]=_0x453b80['instant'](_0x320092('0x2185'));}function _0x5d9ec8(_0x5c19f3){const _0x4438b4=_0x201df3;if(_0x5c19f3[_0x4438b4('0x3bb')])return _0x5c19f3['UserId']===_0x183419[_0x4438b4('0x1e6a')]['id']?_0x453b80[_0x4438b4('0x1b11')](_0x4438b4('0x3a8')):_0x5c19f3[_0x4438b4('0xe42')][_0x4438b4('0x2831')]+'\x20<'+_0x5c19f3[_0x4438b4('0xe42')]['internal']+'>';return _0x453b80['instant'](_0x4438b4('0xce3'));}function _0x329bbb(_0x50ecb4){const _0x397abc=_0x201df3;if(_0x50ecb4[_0x397abc('0x140b')])return _0x50ecb4['Account'][_0x397abc('0x234b')];return _0x453b80[_0x397abc('0x1b11')]('DASHBOARDS.UNKNOWN');}function _0xfffe52(_0x15f24d){const _0x302230=_0x201df3;let _0x2c31d6;const _0x33f124=_0x283545()['find'](_0x183419['chatInteractions'][_0x302230('0x25df')],{'id':_0x15f24d['ChatInteractionId']});_0x33f124&&_0x33f124[_0x302230('0x23f4')]&&(_0x2c31d6=_0x283545()[_0x302230('0x20e8')](_0x33f124[_0x302230('0x23f4')],{'id':_0x15f24d[_0x302230('0x3bb')]}),!_0x2c31d6&&_0x33f124[_0x302230('0x23f4')][_0x302230('0x13e3')]({'id':_0x15f24d[_0x302230('0x3bb')]}));}function _0x77c053(_0x59e0a2){const _0x29c72e=_0x201df3,_0x373b86=_0x283545()['find'](_0x183419[_0x29c72e('0xa2d')]['rows'],{'id':_0x59e0a2[_0x29c72e('0x21fa')]});_0x373b86&&_0x373b86[_0x29c72e('0x23f4')]&&_0x283545()['remove'](_0x373b86['Users'],{'id':_0x59e0a2[_0x29c72e('0x3bb')]});}function _0x262a32(_0x5128f3){const _0x29b52b=_0x201df3;if(_0x5128f3){const _0x32a651=_0x283545()[_0x29b52b('0x20e8')](_0x183419[_0x29b52b('0xa2d')][_0x29b52b('0x25df')],{'id':_0x5128f3['id']});if(_0x32a651){_0x32a651['Users']=[];_0x5128f3[_0x29b52b('0x215d')]&&(_0x32a651['unreadMessages']=0x0);if(_0x183419['query'][_0x29b52b('0x2119')]){const _0x15dd81=_0x283545()['startsWith'](_0x183419[_0x29b52b('0x135a')][_0x29b52b('0x2119')],'-')?_0x29b52b('0x25b5'):'asc';_0x183419[_0x29b52b('0xa2d')]['rows']=_0x283545()[_0x29b52b('0xf87')](_0x183419[_0x29b52b('0xa2d')][_0x29b52b('0x25df')],_0x283545()[_0x29b52b('0x19c2')](_0x183419['query'][_0x29b52b('0x2119')],'-'),_0x15dd81);}_0x283545()[_0x29b52b('0x2503')](_0x32a651,_0x283545()[_0x29b52b('0x41b')](_0x5128f3,_0x283545()[_0x29b52b('0x2163')](_0x32a651)));}else _0x44a259(_0x183419[_0x29b52b('0x135a')]['page']);}}function _0x370990(_0x2836d3){const _0x156ae6=_0x201df3;if(_0x2836d3){const _0x44efc2=_0x283545()[_0x156ae6('0x20e8')](_0x183419[_0x156ae6('0xa2d')][_0x156ae6('0x25df')],{'id':_0x2836d3['id']});_0x44efc2&&(_0x44efc2[_0x156ae6('0xbcf')]=_0x2836d3[_0x156ae6('0xe45')]||[],_0x283545()[_0x156ae6('0x2503')](_0x44efc2,_0x283545()['pick'](_0x2836d3,_0x283545()[_0x156ae6('0x2163')](_0x44efc2))));}}function _0xead626(_0x171e59){const _0x3d05c1=_0x201df3;if(_0x171e59&&!_0x171e59['secret']){const _0x3b2379=_0x283545()[_0x3d05c1('0x20e8')](_0x183419[_0x3d05c1('0xa2d')][_0x3d05c1('0x25df')],{'id':_0x171e59[_0x3d05c1('0x21fa')]});if(_0x3b2379){const _0x568367=_0x283545()[_0x3d05c1('0x20e8')](_0x3b2379[_0x3d05c1('0x1f77')],{'id':_0x171e59['id']});_0x568367?_0x283545()['merge'](_0x568367,_0x283545()[_0x3d05c1('0x41b')](_0x171e59,_0x283545()['keys'](_0x568367))):(_0x283545()[_0x3d05c1('0x1015')](_0x3b2379[_0x3d05c1('0x1f77')])&&(_0x3b2379[_0x3d05c1('0x1f77')]={'count':0x0}),!_0x171e59[_0x3d05c1('0x18e8')]&&(_0x3b2379['Messages']['count']+=0x1));}}}function _0x226f55(){const _0x37797e=_0x201df3;_0x183419[_0x37797e('0x236d')]=![];}function _0x3d7aca(){const _0x5e2d6a=_0x201df3;_0x183419[_0x5e2d6a('0x236d')]=!![];}function _0x16310e(){const _0x2dbeed=_0x201df3;_0x183419[_0x2dbeed('0x236d')]=![],_0x604bb3['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x2dbeed('0x16b1')](_0x3d3b4f[_0x2dbeed('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x183419['sectionColor'],'fields':_0x183419[_0x2dbeed('0x1e13')][_0x2dbeed('0x1578')],'storagePath':'home.chat'},'fullscreen':!![]})['then'](function(_0x261172){const _0x383e1e=_0x2dbeed;_0x183419[_0x383e1e('0x135a')][_0x383e1e('0x470')]=_0x261172===![]?undefined:_0x261172;if(_0x183419[_0x383e1e('0x135a')]['search']||_0x261172===![])_0x44a259();})[_0x2dbeed('0x1cb5')](function(_0x24b3f4){const _0x1fbfdf=_0x2dbeed;_0x3e3832[_0x1fbfdf('0x5e8')]({'title':_0x1fbfdf('0x824'),'msg':_0x24b3f4[_0x1fbfdf('0x11fc')]?JSON[_0x1fbfdf('0x1be0')](_0x24b3f4[_0x1fbfdf('0x11fc')]['message']):_0x24b3f4['toString']()});});}let _0x11d0da=!![],_0x498303=0x1;_0x29822e[_0x201df3('0x1662')](_0x201df3('0x1569'),function(_0x4416b0,_0x315849){const _0x15ac0b=_0x201df3;_0x11d0da?_0x5358f7(function(){_0x11d0da=![];}):(!_0x315849&&(_0x498303=_0x183419[_0x15ac0b('0x135a')][_0x15ac0b('0x23f5')]),_0x4416b0!==_0x315849&&(_0x183419['query'][_0x15ac0b('0x23f5')]=0x1),!_0x4416b0&&(_0x183419[_0x15ac0b('0x135a')][_0x15ac0b('0x23f5')]=_0x498303),_0x44a259(_0x183419[_0x15ac0b('0x135a')][_0x15ac0b('0x23f5')]));}),_0x29822e[_0x201df3('0x651')](_0x201df3('0x26ac'),function(){const _0x56da08=_0x201df3;_0x4b5f2f['removeAllListeners'](_0x56da08('0x2170')),_0x4b5f2f[_0x56da08('0x277f')](_0x56da08('0x1769')),_0x4b5f2f[_0x56da08('0x277f')](_0x56da08('0xcc2')),_0x4b5f2f[_0x56da08('0x277f')](_0x56da08('0x207f')),_0x4b5f2f[_0x56da08('0x277f')](_0x56da08('0x18a7')),_0x4b5f2f[_0x56da08('0x277f')]('user_has_chat_interactions:save'),_0x4b5f2f[_0x56da08('0x277f')](_0x56da08('0x558'));});}const _0x18f63c=_0x3590fc;_0x562121[_0x34e79e('0x2d9')]=['$document','$scope',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1bf5'),'Auth',_0x34e79e('0x519'),'toasty'];function _0x562121(_0x571a54,_0x2bf7de,_0x26c7e8,_0x408882,_0x17689f,_0x531bd3,_0x397088,_0x215bbb){const _0x31ee9a=_0x34e79e,_0x22936f=this;_0x22936f['currentUser']=_0x531bd3[_0x31ee9a('0x24cc')](),_0x22936f['lists']={},_0x22936f[_0x31ee9a('0x14b')]={'count':0x0,'rows':[]},_0x22936f[_0x31ee9a('0xe45')]={'count':0x0,'rows':[]},_0x22936f[_0x31ee9a('0x135a')]={'includeAll':!![],'sort':_0x31ee9a('0x1cee'),'limit':0xa,'page':0x1},_0x22936f[_0x31ee9a('0x1e13')]={'fields':[]},_0x22936f[_0x31ee9a('0x4ef')]=_0x31ee9a('0x8cd'),_0x22936f[_0x31ee9a('0x1dc1')]=_0x4098c2,_0x22936f[_0x31ee9a('0x58')]=_0x5eecb7,_0x22936f[_0x31ee9a('0xfd6')]=_0x4526ed,_0x22936f[_0x31ee9a('0x255e')]=_0x126c13,_0x22936f[_0x31ee9a('0x1424')]=_0x4fcfe0,_0x22936f['call']=_0x2bf7de[_0x31ee9a('0x7d0')]['vm']['call'],_0x22936f[_0x31ee9a('0x122e')]=_0x556275,_0x22936f['onSearchBarCollapse']=_0x30a74b,_0x22936f['onSearchBarExpand']=_0x21d84e,_0x22936f[_0x31ee9a('0x27c6')]=_0x42efc8;function _0x556275(){const _0x5c08fe=_0x31ee9a;_0x397088['user'][_0x5c08fe('0xcdd')]({'id':_0x22936f['currentUser']['id'],'fields':_0x5c08fe('0x1b4a'),'sort':_0x5c08fe('0x1a8d'),'nolimit':!![]})[_0x5c08fe('0x1714')]['then'](function(_0x5dd78f){const _0x566102=_0x5c08fe;return _0x22936f[_0x566102('0x2')]=_0x5dd78f||{'count':0x0,'rows':[]},_0x22936f[_0x566102('0xd89')]=_0x283545()[_0x566102('0x13cf')](_0x22936f[_0x566102('0x2')][_0x566102('0x25df')],'id'),_0x397088[_0x566102('0x1764')][_0x566102('0x1335')]()[_0x566102('0x1714')];})[_0x5c08fe('0x2788')](function(_0x45a827){const _0x5297eb=_0x5c08fe;_0x22936f[_0x5297eb('0xe45')]=_0x45a827||{'count':0x0,'rows':[]};})[_0x5c08fe('0x2788')](function(){const _0x52607c=_0x5c08fe;_0x22936f[_0x52607c('0xa28')]=_0x43ab02();})[_0x5c08fe('0x1cb5')](function(_0x11f82a){console['error'](_0x11f82a);})['finally'](function(){const _0x24174e=_0x5c08fe;let _0x21aee3=_0x17689f[_0x24174e('0x155e')][_0x24174e('0xced')](_0x24174e('0x1e02')+_0x22936f[_0x24174e('0x9cb')]['id']);if(_0x21aee3)try{_0x21aee3=JSON[_0x24174e('0xe0b')](_0x21aee3);if(_0x21aee3[_0x24174e('0x135a')]){_0x22936f[_0x24174e('0x135a')]=_0x283545()[_0x24174e('0x2503')](_0x22936f[_0x24174e('0x135a')],_0x21aee3['query']);if(_0x283545()['isEmpty'](_0x22936f['lists'][_0x24174e('0x25df')]))_0x22936f[_0x24174e('0x135a')][_0x24174e('0x354')]=[];else _0x283545()['isEmpty'](_0x22936f[_0x24174e('0x135a')]['ListId'])&&(_0x22936f[_0x24174e('0x135a')][_0x24174e('0x354')]=_0x283545()(_0x22936f[_0x24174e('0x2')][_0x24174e('0x25df')])[_0x24174e('0x155d')]('id')[_0x24174e('0x212b')]()[_0x24174e('0x49')]());}}catch(_0xecda29){console['log'](_0xecda29);}else _0x22936f[_0x24174e('0x135a')]['ListId']=_0x283545()[_0x24174e('0x155d')](_0x22936f[_0x24174e('0x2')]['rows'],'id');_0x22936f[_0x24174e('0x236d')]=_0x22936f[_0x24174e('0x135a')][_0x24174e('0x916')]?!![]:![],_0x4098c2();});}function _0x43ab02(){const _0x410f99=_0x31ee9a;return[{'name':'List','key':_0x410f99('0x354'),'type':_0x410f99('0x9a4'),'label':_0x410f99('0x2450'),'options':_0x22936f[_0x410f99('0x2')]['rows'],'clearAll':![]},{'name':_0x410f99('0x251d'),'key':_0x410f99('0x1764'),'type':_0x410f99('0x9a4'),'label':_0x410f99('0xa54'),'options':_0x22936f['tags'][_0x410f99('0x25df')],'placeholder':_0x410f99('0x263')}];}function _0x117b5c(_0xe39b9f){const _0x9bb020=_0x31ee9a;_0x22936f[_0x9bb020('0x2849')]=![],_0x22936f[_0x9bb020('0x14b')]=_0xe39b9f||{'count':0x0,'rows':[]};}function _0x4098c2(_0x4acde2){const _0xd61c59=_0x31ee9a;_0x22936f[_0xd61c59('0x2849')]=!![],_0x400b4f();!_0x4acde2&&(_0x22936f[_0xd61c59('0x135a')][_0xd61c59('0x23f5')]=0x1);_0x22936f['query']['offset']=(_0x22936f['query'][_0xd61c59('0x23f5')]-0x1)*_0x22936f[_0xd61c59('0x135a')][_0xd61c59('0x68e')];let _0x33336f=_0x17689f[_0xd61c59('0x155e')][_0xd61c59('0xced')]('motion2.home.contacts:'+_0x22936f[_0xd61c59('0x9cb')]['id']);_0x33336f=_0x33336f?JSON[_0xd61c59('0xe0b')](_0x33336f):{},_0x33336f[_0xd61c59('0x135a')]=_0x22936f['query'],_0x17689f[_0xd61c59('0x155e')]['setItem']('motion2.home.contacts:'+_0x22936f['currentUser']['id'],JSON[_0xd61c59('0x1be0')](_0x33336f)),_0x22936f['promise']=_0x397088['cmContact'][_0xd61c59('0x1335')](_0x22936f[_0xd61c59('0x135a')],_0x117b5c)[_0xd61c59('0x1714')];}function _0x4fcfe0(_0x408c25){const _0x443f09=_0x31ee9a;return _0x397088[_0x443f09('0xa83')][_0x443f09('0x1335')]({'id':_0x408c25})[_0x443f09('0x1714')][_0x443f09('0x2788')](function(_0xce7292){const _0xbb8732=_0x443f09;_0x2bf7de[_0xbb8732('0x7d0')]['vm'][_0xbb8732('0x11eb')](_0xce7292);});}function _0x5eecb7(){_0x4098c2();}function _0x126c13(_0x124b78,_0x4fd60b){const _0x13a57d=_0x31ee9a;_0x408882[_0x13a57d('0x2fa')]({'controller':_0x13a57d('0x1bd'),'controllerAs':'vm','templateUrl':_0x446818,'parent':angular[_0x13a57d('0x16b1')](_0x571a54[_0x13a57d('0x945')]),'targetEvent':_0x124b78,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0xcef5c8){const _0x40299b=_0x13a57d;return _0xcef5c8[_0x40299b('0x2322')](_0x40299b('0x7ea'),{'id':_0x4fd60b['id']});}],'lists':[_0x13a57d('0x1318'),function(_0x745140){const _0xa5ab72=_0x13a57d;return _0x745140[_0xa5ab72('0x2322')]('user@getLists',{'id':_0x22936f[_0xa5ab72('0x9cb')]['id'],'fields':_0xa5ab72('0x1338')});}]},'locals':{'contacts':_0x22936f[_0x13a57d('0x14b')]['rows']}});}function _0x4526ed(_0x24d9e6,_0x5baa2a){const _0x35a844=_0x31ee9a;_0x408882[_0x35a844('0x2fa')]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x3c16f5,'parent':angular[_0x35a844('0x16b1')](_0x571a54[_0x35a844('0x945')]),'targetEvent':_0x24d9e6,'clickOutsideToClose':!![],'resolve':{'contact':[_0x35a844('0x1318'),function(_0x3af570){const _0x35818e=_0x35a844;return _0x3af570[_0x35818e('0x2322')](_0x35818e('0x7ea'),{'id':_0x5baa2a['id']});}],'lists':[_0x35a844('0x1318'),function(_0x20c56d){const _0x15f0ea=_0x35a844;return _0x20c56d[_0x15f0ea('0x2322')](_0x15f0ea('0x1aed'),{'id':_0x22936f['currentUser']['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x22936f[_0x35a844('0x14b')][_0x35a844('0x25df')]}});}function _0x30a74b(){const _0x94a8af=_0x31ee9a;_0x22936f[_0x94a8af('0x236d')]=![];}function _0x21d84e(){const _0x29762b=_0x31ee9a;_0x22936f[_0x29762b('0x236d')]=!![];}function _0x400b4f(){const _0x2af724=_0x31ee9a;return _0x397088[_0x2af724('0xa83')][_0x2af724('0x15f8')]({'id':_0x22936f[_0x2af724('0x135a')][_0x2af724('0x354')]})[_0x2af724('0x1714')][_0x2af724('0x2788')](function(_0x30cad4){const _0x179393=_0x2af724;return _0x283545()(_0x30cad4[_0x179393('0x1cbf')]())['omit'](_0x179393('0x3bb'))[_0x179393('0xc5')]()['map'](function(_0x201607){return _0x2fe3a6(_0x201607);})[_0x179393('0x49')]();})['then'](function(_0x2c996d){const _0x2b77f0=_0x2af724;_0x22936f[_0x2b77f0('0x1e13')]['fields']=_0x2c996d;const _0x264763={'name':_0x2b77f0('0xbcf'),'column':_0x2b77f0('0x251d'),'type':_0x2b77f0('0x9a4'),'options':{'route':{'model':_0x2b77f0('0x1764'),'action':_0x2b77f0('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0x2b77f0('0x38b')]}};let _0x40f956=_0x283545()[_0x2b77f0('0x1855')](_0x2c996d,function(_0x341d3c){const _0x1d5f0d=_0x2b77f0;return _0x283545()[_0x1d5f0d('0x993')](_0x341d3c[_0x1d5f0d('0x1204')],_0x1d5f0d('0x249c'));})||_0x2c996d[_0x2b77f0('0x2566')]-0x1;if(_0x40f956<0x0)_0x40f956=_0x2c996d[_0x2b77f0('0x2566')];_0x22936f[_0x2b77f0('0x1e13')][_0x2b77f0('0x1578')]['splice'](_0x40f956,0x0,_0x264763);})[_0x2af724('0x1cb5')](function(_0x2f5466){const _0x4a316d=_0x2af724;_0x215bbb[_0x4a316d('0x5e8')]({'title':_0x2f5466['status']?'API:'+_0x2f5466['status']+'\x20-\x20'+_0x2f5466[_0x4a316d('0x22ce')]:'DESCRIBE_CM_CONTACTS','msg':_0x2f5466['data']?JSON[_0x4a316d('0x1be0')](_0x2f5466[_0x4a316d('0x11fc')][_0x4a316d('0x15e2')]):_0x2f5466[_0x4a316d('0x17df')]()});});}function _0x2fe3a6(_0x1be0a8){const _0x737106=_0x31ee9a,_0xaa2832={'name':_0x283545()[_0x737106('0x114')](_0x1be0a8['displayName']),'column':_0x1be0a8[_0x737106('0x1495')],'options':{}};if(_0x1be0a8[_0x737106('0x1d56')])switch(_0x1be0a8[_0x737106('0x1d56')][_0x737106('0x1d7')]){case _0x737106('0x16db'):_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x16db');break;case'select':_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x9a4'),_0xaa2832[_0x737106('0xc5')]=_0x283545()[_0x737106('0x155d')](JSON[_0x737106('0xe0b')](_0x1be0a8[_0x737106('0x1d56')]['values']),function(_0x37926e,_0x57ea00){const _0x3ef075=_0x737106;return{'id':_0x57ea00,'name':_0x37926e[_0x3ef075('0x49')],'value':_0x37926e['value']};}),_0xaa2832[_0x737106('0x784')][_0x737106('0x18da')]=_0x737106('0x1a8d');break;case'switch':_0xaa2832['type']=_0x737106('0x983'),_0xaa2832[_0x737106('0xc5')]=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0x737106('0xfdc')}],_0xaa2832[_0x737106('0x784')]['excludedOperators']=[_0x737106('0x149c')];break;case _0x737106('0x272c'):_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x272c');break;case _0x737106('0x1b54'):_0xaa2832['type']=_0x737106('0x1012');break;}else switch(_0x1be0a8[_0x737106('0x1495')]){case _0x737106('0xc49'):_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x1012');break;case'CompanyId':_0xaa2832[_0x737106('0x1a8d')]=_0x737106('0x23a8'),_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x137e'),_0xaa2832[_0x737106('0x784')][_0x737106('0x44b')]={'model':_0x737106('0x27f6'),'action':'get','params':{'fields':_0x737106('0x1338'),'nolimit':!![]}},_0xaa2832[_0x737106('0x784')][_0x737106('0x1db7')]=[_0x737106('0x1a8d')],_0xaa2832['options'][_0x737106('0x1788')]=[_0x737106('0x149c')];break;case'ListId':_0xaa2832[_0x737106('0x1a8d')]=_0x737106('0xef1'),_0xaa2832[_0x737106('0x1d7')]='autocomplete',_0xaa2832['options']['route']={'model':'user','action':_0x737106('0xcdd'),'params':{'id':_0x22936f[_0x737106('0x9cb')]['id'],'fields':_0x737106('0x1338'),'nolimit':!![]}},_0xaa2832[_0x737106('0x784')][_0x737106('0x1db7')]=[_0x737106('0x1a8d')],_0xaa2832[_0x737106('0x784')]['excludedOperators']=['$ne'];break;default:if(_0x283545()[_0x737106('0x1d4e')](_0x1be0a8[_0x737106('0x1d7')]['toLowerCase'](),_0x737106('0x339')))_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x272c');else _0x283545()[_0x737106('0x1d4e')](_0x1be0a8[_0x737106('0x1d7')]['toLowerCase'](),_0x737106('0x1012'))?_0xaa2832[_0x737106('0x1d7')]=_0x737106('0x1012'):_0xaa2832[_0x737106('0x1d7')]='text';break;}return _0xaa2832;}function _0x42efc8(){const _0x4c90d7=_0x31ee9a;_0x22936f['isSearchBarVisible']=![],_0x408882[_0x4c90d7('0x2fa')]({'controller':_0x4c90d7('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x4c90d7('0x16b1')](_0x571a54[_0x4c90d7('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x22936f['sectionColor'],'fields':_0x22936f[_0x4c90d7('0x1e13')][_0x4c90d7('0x1578')],'storagePath':_0x4c90d7('0x6bb')},'fullscreen':!![]})[_0x4c90d7('0x2788')](function(_0x57d0b6){const _0x48a063=_0x4c90d7;_0x22936f['query'][_0x48a063('0x470')]=_0x57d0b6===![]?undefined:_0x57d0b6;if(_0x22936f[_0x48a063('0x135a')]['search']||_0x57d0b6===![])_0x4098c2();})[_0x4c90d7('0x1cb5')](function(_0x51fd33){const _0x5c21be=_0x4c90d7;_0x215bbb[_0x5c21be('0x5e8')]({'title':_0x5c21be('0x824'),'msg':_0x51fd33[_0x5c21be('0x11fc')]?JSON[_0x5c21be('0x1be0')](_0x51fd33['data'][_0x5c21be('0x15e2')]):_0x51fd33[_0x5c21be('0x17df')]()});});}let _0x1db4fe=!![],_0x250af4=0x1;_0x2bf7de[_0x31ee9a('0x1662')](_0x31ee9a('0x1569'),function(_0x3420fc,_0x3cf66b){const _0x2f19fd=_0x31ee9a;_0x1db4fe?_0x26c7e8(function(){_0x1db4fe=![];}):(!_0x3cf66b&&(_0x250af4=_0x22936f['query'][_0x2f19fd('0x23f5')]),_0x3420fc!==_0x3cf66b&&(_0x22936f['query'][_0x2f19fd('0x23f5')]=0x1),!_0x3420fc&&(_0x22936f[_0x2f19fd('0x135a')][_0x2f19fd('0x23f5')]=_0x250af4),_0x4098c2());});}const _0x4091ac=_0x562121;_0x39b567['$inject']=[_0x34e79e('0x1701'),'$interval'];function _0x39b567(_0x4e7148,_0x89fce3){const _0x100a8e=_0x34e79e;let _0x33c3e9=_0x89fce3(function(){},0x3e7);_0x4e7148['$on'](_0x100a8e('0x26ac'),function(){const _0x1814e8=_0x100a8e;_0x33c3e9&&(_0x89fce3[_0x1814e8('0x1801')](_0x33c3e9),_0x33c3e9=null);});}const _0x10cd23=_0x39b567;_0x450e84['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),'api',_0x34e79e('0x1b04'),'socket'];function _0x450e84(_0x1f1f27,_0x3fd835,_0x475f09,_0x45c03a,_0x4a62c6,_0x40b23b,_0x2ac2a8,_0x1e240d,_0x514a2a){const _0x389ad2=_0x34e79e,_0x25bf19=this,_0x3eed6a=[_0x389ad2('0x1d7'),'waiting',_0x389ad2('0x1054'),'dialActive'];_0x25bf19[_0x389ad2('0x135')]={},_0x25bf19[_0x389ad2('0x151e')]=0x0,_0x25bf19['rpcVoiceQueues']={},_0x25bf19['getVoiceQueues']={},_0x25bf19[_0x389ad2('0x72')]={},_0x25bf19[_0x389ad2('0x1f16')]={},_0x25bf19[_0x389ad2('0x16f9')]=[],_0x25bf19[_0x389ad2('0x374')]=!![],_0x25bf19[_0x389ad2('0x135a')]={'id':_0x1e240d[_0x389ad2('0x24cc')]()['id'],'fields':_0x389ad2('0x1348'),'channel':_0x389ad2('0x1f60'),'type':'outbound','limit':0xa,'page':0x1},_0x25bf19[_0x389ad2('0x3be')]={'limit':0xa,'page':0x1},_0x25bf19[_0x389ad2('0x173b')]=_0x1a8ed2,_0x25bf19[_0x389ad2('0xbd4')]=_0x1d5027,_0x25bf19[_0x389ad2('0xcb9')]=_0x122408,_0x25bf19[_0x389ad2('0x181')]=_0x2aceaf,_0x25bf19['onSaveChannel']=_0x5c744a,_0x25bf19[_0x389ad2('0x1c1a')]=_0x2ed3ff,_0x25bf19[_0x389ad2('0x1c2a')]=_0x5176d2,_0x25bf19['onUpdateVoiceQueue']=_0x1c3fd1,_0x25bf19[_0x389ad2('0xb7f')]=_0x21cf27,_0x514a2a[_0x389ad2('0x3e')](_0x389ad2('0x2467'),_0x25bf19[_0x389ad2('0x181')]),_0x514a2a[_0x389ad2('0x3e')](_0x389ad2('0x21fe'),_0x25bf19['onSaveChannel']),_0x514a2a[_0x389ad2('0x3e')](_0x389ad2('0x454'),_0x25bf19[_0x389ad2('0x1c1a')]),_0x514a2a[_0x389ad2('0x3e')]('userVoiceQueue:remove',_0x25bf19[_0x389ad2('0x1c1a')]),_0x514a2a[_0x389ad2('0x3e')](_0x389ad2('0x4a2'),_0x25bf19[_0x389ad2('0x1c2a')]),_0x514a2a['onWithoutApply'](_0x389ad2('0xad4'),_0x25bf19[_0x389ad2('0xb7f')]),_0x514a2a[_0x389ad2('0x3e')]('voiceQueue:update',_0x25bf19[_0x389ad2('0x648')]),_0x2ac2a8[_0x389ad2('0x1bfc')][_0x389ad2('0xbd4')]()['$promise'][_0x389ad2('0x2788')](function(_0x447aec){const _0x21bf34=_0x389ad2;return _0x25bf19[_0x21bf34('0x5b3')]=_0x447aec?_0x283545()[_0x21bf34('0x13cf')](_0x447aec[_0x21bf34('0x25df')]?_0x447aec[_0x21bf34('0x25df')]:[],'id'):{},_0x2ac2a8['rpc'][_0x21bf34('0x1bc3')]()[_0x21bf34('0x1714')];})[_0x389ad2('0x2788')](function(_0x52ddc4){const _0x571e13=_0x389ad2;_0x25bf19[_0x571e13('0x72')]=_0x52ddc4?_0x283545()[_0x571e13('0x13cf')](_0x52ddc4['rows']?_0x283545()[_0x571e13('0x916')](_0x52ddc4[_0x571e13('0x25df')],{'type':_0x571e13('0x1'),'queuecallerleaveAt':null}):[],'uniqueid'):{};})['catch'](function(_0x4a556a){console['error'](_0x4a556a);})[_0x389ad2('0x1ed8')](function(){const _0x5e29b4=_0x389ad2;_0x283545()[_0x5e29b4('0x2503')](_0x25bf19[_0x5e29b4('0x72')],_0x25bf19['addVoiceQueuesChannels']);for(let _0x489447=0x0;_0x489447<_0x25bf19[_0x5e29b4('0x16f9')][_0x5e29b4('0x2566')];_0x489447+=0x1){delete _0x25bf19['rpcVoiceQueuesChannels'][_0x25bf19['deleteVoiceQueuesChannels'][_0x489447]];}_0x25bf19[_0x5e29b4('0x374')]=![],_0x25bf19[_0x5e29b4('0x1f16')]={},_0x25bf19['deleteVoiceQueuesChannels']=[],_0x25bf19['getVoiceQueues']();});function _0x1a8ed2(_0x41071d){const _0x2e4c53=_0x389ad2;_0x25bf19[_0x2e4c53('0x151e')]=_0x41071d[_0x2e4c53('0x338')]?_0x41071d['count']:0x0,_0x25bf19[_0x2e4c53('0x135')]=_0x41071d?_0x283545()[_0x2e4c53('0x13cf')](_0x41071d[_0x2e4c53('0x25df')]?_0x41071d[_0x2e4c53('0x25df')]:[],'id'):{},_0x4f84bf();}function _0x1d5027(){const _0x1a5f13=_0x389ad2;_0x25bf19[_0x1a5f13('0x135a')][_0x1a5f13('0x19e')]=(_0x25bf19[_0x1a5f13('0x135a')][_0x1a5f13('0x23f5')]-0x1)*_0x25bf19[_0x1a5f13('0x135a')][_0x1a5f13('0x68e')],_0x25bf19[_0x1a5f13('0x1808')]=_0x2ac2a8[_0x1a5f13('0x1e6a')][_0x1a5f13('0x138a')](_0x25bf19[_0x1a5f13('0x135a')],_0x1a8ed2)[_0x1a5f13('0x1714')];}let _0x288204=!![],_0x17df41=0x1;_0x1f1f27[_0x389ad2('0x1662')](_0x389ad2('0x2571'),function(_0x233933,_0x821472){const _0x2e0b32=_0x389ad2;_0x288204?_0x3fd835(function(){_0x288204=![];}):(!_0x821472&&(_0x17df41=_0x25bf19[_0x2e0b32('0x135a')][_0x2e0b32('0x23f5')]),_0x233933!==_0x821472&&(_0x25bf19[_0x2e0b32('0x135a')]['page']=0x1),!_0x233933&&(_0x25bf19[_0x2e0b32('0x135a')][_0x2e0b32('0x23f5')]=_0x17df41),_0x25bf19[_0x2e0b32('0xbd4')]());});function _0x122408(_0x445e8c){const _0x3a8aa1=_0x389ad2;return _0x283545()[_0x3a8aa1('0x634')](_0x445e8c);}function _0x4f84bf(){const _0x2a5831=_0x389ad2;_0x283545()[_0x2a5831('0x1b')](_0x25bf19['voiceQueues'],function(_0x35617b,_0x1385bd){const _0x4b5085=_0x2a5831;_0x25bf19[_0x4b5085('0x5b3')][_0x1385bd]&&(_0x25bf19['voiceQueues'][_0x1385bd]['waiting']=_0x25bf19['rpcVoiceQueues'][_0x1385bd][_0x4b5085('0x1eb6')]||0x0);});}function _0x2aceaf(_0xc5a85e){const _0x214c92=_0x389ad2;_0x25bf19[_0x214c92('0x135')][_0xc5a85e['id']]&&(_0x25bf19['rpcVoiceQueues'][_0xc5a85e['id']]&&(_0x25bf19[_0x214c92('0x5b3')][_0xc5a85e['id']]=_0xc5a85e,_0x283545()['merge'](_0x25bf19[_0x214c92('0x135')][_0xc5a85e['id']],_0x283545()[_0x214c92('0x41b')](_0xc5a85e,_0x3eed6a))));}function _0x5c744a(_0x25d712){const _0x55c9b7=_0x389ad2;_0x25d712[_0x55c9b7('0x1d7')]===_0x55c9b7('0x1')&&(_0x25d712[_0x55c9b7('0x46')]?(delete _0x25bf19['rpcVoiceQueuesChannels'][_0x25d712[_0x55c9b7('0x1be7')]],_0x25bf19['load']&&_0x25bf19[_0x55c9b7('0x16f9')][_0x55c9b7('0x13e3')](_0x25d712[_0x55c9b7('0x1be7')])):(_0x25bf19['rpcVoiceQueuesChannels'][_0x25d712[_0x55c9b7('0x1be7')]]=_0x25d712,_0x25bf19['load']&&(_0x25bf19[_0x55c9b7('0x1f16')][_0x25d712[_0x55c9b7('0x1be7')]]=_0x25d712)));}function _0x5176d2(_0xc5ae28){const _0xf62452=_0x389ad2;!_0x283545()[_0xf62452('0x1015')](_0xc5ae28)&&(_0x25bf19[_0xf62452('0x5b3')][_0xc5ae28['id']]=_0x283545()['pick'](_0xc5ae28,_0x3eed6a));}function _0x1c3fd1(_0x2961b2){const _0x303199=_0x389ad2;!_0x283545()[_0x303199('0x1015')](_0x2961b2)&&(_0x25bf19[_0x303199('0x5b3')][_0x2961b2['id']]&&_0x283545()[_0x303199('0x2503')](_0x25bf19['rpcVoiceQueues'][_0x2961b2['id']],_0x283545()[_0x303199('0x41b')](_0x2961b2,_0x3eed6a)),_0x25bf19[_0x303199('0x135')][_0x2961b2['id']]&&_0x283545()[_0x303199('0x2503')](_0x25bf19['voiceQueues'][_0x2961b2['id']],_0x283545()['pick'](_0x2961b2,_0x3eed6a)));}function _0x21cf27(_0x445eca){const _0x30cbaa=_0x389ad2;!_0x283545()[_0x30cbaa('0x1015')](_0x445eca)&&(delete _0x25bf19[_0x30cbaa('0x5b3')][_0x445eca['id']],delete _0x25bf19[_0x30cbaa('0x135')][_0x445eca['id']]);}function _0x2ed3ff(_0x47b5ab){const _0x2cafd8=_0x389ad2;_0x283545()['toInteger'](_0x47b5ab[_0x2cafd8('0x3bb')])===_0x1e240d['getCurrentUser']()['id']&&_0x25bf19[_0x2cafd8('0xbd4')]();}_0x1f1f27[_0x389ad2('0x651')](_0x389ad2('0x26ac'),function(){const _0x3cb014=_0x389ad2;_0x514a2a[_0x3cb014('0x277f')](_0x3cb014('0x2467')),_0x514a2a[_0x3cb014('0x277f')](_0x3cb014('0x21fe')),_0x514a2a[_0x3cb014('0x277f')](_0x3cb014('0x454')),_0x514a2a[_0x3cb014('0x277f')](_0x3cb014('0x11e0')),_0x514a2a[_0x3cb014('0x277f')]('voiceQueue:save'),_0x514a2a['removeAllListeners'](_0x3cb014('0x91')),_0x514a2a[_0x3cb014('0x277f')](_0x3cb014('0xad4'));});}const _0x33fdd9=_0x450e84;_0x56372a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x56372a(_0x1695ff,_0x3e15b3,_0x4c1df0,_0x4f5e83,_0x22b7a8,_0x4769a4,_0xb6dba5,_0x57a21c,_0x213777){const _0x5186af=_0x34e79e,_0x86874a=this,_0x5b5848=['id',_0x5186af('0x1a8d'),'mapAgentsId',_0x5186af('0x1eb6')];let _0xbc04b6=!![];_0x86874a[_0x5186af('0x133a')]={},_0x86874a[_0x5186af('0x3dd')]=0x0,_0x86874a[_0x5186af('0x257b')]={},_0x86874a[_0x5186af('0x115')]=[],_0x86874a['deleteChatQueuesWaitingInteractions']=[],_0x86874a['rpcChatQueuesWaitingInteractions']={},_0x86874a[_0x5186af('0x135a')]={'id':_0x57a21c[_0x5186af('0x24cc')]()['id'],'channel':_0x5186af('0x231'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x86874a[_0x5186af('0x3be')]={'limit':0xa,'page':0x1},_0x86874a[_0x5186af('0x173b')]=_0x2f7bec,_0x86874a[_0x5186af('0x15c0')]=_0x4b134f,_0x86874a['getSize']=_0x48cb1d,_0x86874a[_0x5186af('0xd12')]=_0x33bfb5,_0x86874a[_0x5186af('0xce9')]=_0x3e1bc7,_0x86874a['onSaveQueue']=_0x2cd636,_0x86874a[_0x5186af('0xd3b')]=_0x57f327,_0x86874a['onUpdateChatQueue']=_0x58a7b,_0x86874a['onRemoveChatQueue']=_0x2d1263,_0x86874a[_0x5186af('0xc0b')]=_0x3cbb96,_0x86874a[_0x5186af('0x41a')]=_0x4931bd,_0x86874a[_0x5186af('0xa5b')]=_0x4e1a7d,_0x86874a[_0x5186af('0xd75')]=_0x561885,_0x213777['onWithoutApply']('chat_queue:save',_0x86874a[_0x5186af('0x181')]),_0x213777[_0x5186af('0x3e')](_0x5186af('0x5dd'),_0x86874a['onSaveChatQueue']),_0x213777[_0x5186af('0x3e')](_0x5186af('0x2338'),_0x86874a['onUpdateChatQueue']),_0x213777[_0x5186af('0x3e')]('chatQueue:remove',_0x86874a['onRemoveChatQueue']),_0x213777['onWithoutApply'](_0x5186af('0x5fb'),_0x86874a['onSaveUserChatQueue']),_0x213777[_0x5186af('0x3e')](_0x5186af('0x6bd'),_0x86874a['onRemoveUserChatQueue']),_0x213777['onWithoutApply'](_0x5186af('0x5c1'),_0x86874a['onSaveChatQueueChannel']),_0x213777['onWithoutApply'](_0x5186af('0x1b1'),_0x86874a['onRemoveChatQueueChannel']),_0xb6dba5[_0x5186af('0x1bfc')][_0x5186af('0x15c0')]()[_0x5186af('0x1714')][_0x5186af('0x2788')](function(_0x67b2f5){const _0x43572b=_0x5186af;_0x86874a[_0x43572b('0x257b')]=_0x67b2f5?_0x283545()[_0x43572b('0x13cf')](_0x67b2f5[_0x43572b('0x25df')]?_0x67b2f5[_0x43572b('0x25df')]:[],'id'):{};})['then'](function(){const _0x206600=_0x5186af;return _0xb6dba5['user'][_0x206600('0x138a')]({'id':_0x57a21c[_0x206600('0x24cc')]()['id'],'channel':_0x206600('0x231')})[_0x206600('0x1714')];})[_0x5186af('0x2788')](function(_0x599f95){const _0x4bd419=_0x5186af;return _0x86874a[_0x4bd419('0x1df7')]=_0x599f95[_0x4bd419('0x25df')],_0xb6dba5[_0x4bd419('0x1bfc')]['getChatQueuesWaitingInteractions']()[_0x4bd419('0x1714')];})[_0x5186af('0x2788')](function(_0x12aec1){const _0x18d0cf=_0x5186af,_0x5e5d7e=_0x283545()[_0x18d0cf('0x916')](_0x12aec1[_0x18d0cf('0x25df')],function(_0x387634){const _0x5e41cb=_0x18d0cf;return _0x283545()[_0x5e41cb('0x1d4e')](_0x86874a['myQueues'],{'id':_0x387634['queue_id']});});_0x12aec1['rows']=_0x5e5d7e,_0x12aec1[_0x18d0cf('0x338')]=_0x5e5d7e['length'],_0x283545()[_0x18d0cf('0x2503')](_0x86874a[_0x18d0cf('0x8ad')],_0x12aec1?_0x283545()[_0x18d0cf('0x13cf')](_0x12aec1[_0x18d0cf('0x25df')]?_0x12aec1['rows']:[],'id'):{});})[_0x5186af('0x1cb5')](function(_0x2788a2){const _0x514ee4=_0x5186af;console[_0x514ee4('0x5e8')](_0x2788a2);})[_0x5186af('0x1ed8')](function(){const _0xab1287=_0x5186af;for(let _0x432b45=0x0;_0x432b45<_0x86874a[_0xab1287('0x1d95')][_0xab1287('0x2566')];_0x432b45+=0x1){delete _0x86874a[_0xab1287('0x8ad')][_0x86874a['deleteChatQueuesWaitingInteractions'][_0x432b45]];}_0xbc04b6=![],_0x86874a[_0xab1287('0x1d95')]=[],_0x4b134f(),_0x3e1bc7();});function _0x3e1bc7(){const _0x22474f=_0x5186af,_0x69e204=(_0x86874a[_0x22474f('0x3be')][_0x22474f('0x23f5')]-0x1)*_0x86874a['queryChannels']['limit'];_0x86874a[_0x22474f('0x115')]=_0x283545()[_0x22474f('0xf87')](_0x86874a[_0x22474f('0x8ad')],[_0x22474f('0x12ba')],[_0x22474f('0x25b5')]),_0x86874a['interactions']=_0x283545()[_0x22474f('0x280')](_0x86874a['paginatedInteractions'],_0x69e204)[_0x22474f('0x845')](0x0,_0x86874a[_0x22474f('0x3be')][_0x22474f('0x68e')]);}function _0x2f7bec(_0x4eb595){const _0x426a30=_0x5186af;_0x86874a[_0x426a30('0x3dd')]=_0x4eb595[_0x426a30('0x338')]?_0x4eb595[_0x426a30('0x338')]:0x0,_0x86874a[_0x426a30('0x133a')]=_0x4eb595?_0x283545()[_0x426a30('0x13cf')](_0x4eb595['rows']?_0x4eb595['rows']:[],'id'):{},_0x2ed9f2();}function _0x4b134f(){const _0x26596d=_0x5186af;_0x86874a[_0x26596d('0x135a')][_0x26596d('0x19e')]=(_0x86874a[_0x26596d('0x135a')][_0x26596d('0x23f5')]-0x1)*_0x86874a['query']['limit'],_0x86874a[_0x26596d('0x1808')]=_0xb6dba5[_0x26596d('0x1e6a')]['getQueues'](_0x86874a[_0x26596d('0x135a')],_0x2f7bec)[_0x26596d('0x1714')];}let _0x54c6cf=!![],_0x3d2f7e=0x1;_0x1695ff['$watch'](_0x5186af('0x2571'),function(_0x17c989,_0x1e0b93){const _0x215e20=_0x5186af;_0x54c6cf?_0x3e15b3(function(){_0x54c6cf=![];}):(!_0x1e0b93&&(_0x3d2f7e=_0x86874a[_0x215e20('0x135a')][_0x215e20('0x23f5')]),_0x17c989!==_0x1e0b93&&(_0x86874a['query']['page']=0x1),!_0x17c989&&(_0x86874a[_0x215e20('0x135a')]['page']=_0x3d2f7e),_0x86874a[_0x215e20('0x15c0')]());});function _0x48cb1d(_0x3d8a88){const _0x25690e=_0x5186af;return _0x283545()[_0x25690e('0x634')](_0x3d8a88);}function _0x2ed9f2(){const _0x3e7448=_0x5186af;_0x283545()[_0x3e7448('0x1b')](_0x86874a['chatQueues'],function(_0x2042cc,_0x48aa57){const _0x4ac509=_0x3e7448;_0x86874a[_0x4ac509('0x257b')][_0x48aa57]&&(_0x86874a[_0x4ac509('0x133a')][_0x48aa57][_0x4ac509('0x1eb6')]=_0x86874a[_0x4ac509('0x257b')][_0x48aa57][_0x4ac509('0x1eb6')]||0x0);});}function _0x2cd636(_0x54d567){const _0x47eaac=_0x5186af;_0x86874a[_0x47eaac('0x133a')][_0x54d567['id']]&&(_0x86874a[_0x47eaac('0x257b')][_0x54d567['id']]&&(_0x283545()[_0x47eaac('0x2503')](_0x86874a[_0x47eaac('0x257b')][_0x54d567['id']],_0x283545()[_0x47eaac('0x41b')](_0x54d567,_0x5b5848)),_0x283545()['merge'](_0x86874a['chatQueues'][_0x54d567['id']],_0x283545()[_0x47eaac('0x41b')](_0x54d567,_0x5b5848))));}function _0x57f327(_0x5e4a4c){const _0x42a21d=_0x5186af;!_0x283545()[_0x42a21d('0x1015')](_0x5e4a4c)&&(_0x86874a[_0x42a21d('0x257b')][_0x5e4a4c['id']]=_0x283545()['pick'](_0x5e4a4c,_0x5b5848));}function _0x58a7b(_0x3ed8e6){const _0x4ce5e1=_0x5186af;!_0x283545()[_0x4ce5e1('0x1015')](_0x3ed8e6)&&(_0x86874a[_0x4ce5e1('0x257b')][_0x3ed8e6['id']]&&_0x283545()[_0x4ce5e1('0x2503')](_0x86874a['rpcChatQueues'][_0x3ed8e6['id']],_0x283545()[_0x4ce5e1('0x41b')](_0x3ed8e6,_0x5b5848)),_0x86874a[_0x4ce5e1('0x133a')][_0x3ed8e6['id']]&&_0x283545()[_0x4ce5e1('0x2503')](_0x86874a[_0x4ce5e1('0x133a')][_0x3ed8e6['id']],_0x283545()[_0x4ce5e1('0x41b')](_0x3ed8e6,_0x5b5848)));}function _0x2d1263(_0x41a348){const _0x34886e=_0x5186af;!_0x283545()[_0x34886e('0x1015')](_0x41a348)&&(delete _0x86874a[_0x34886e('0x257b')][_0x41a348['id']],delete _0x86874a[_0x34886e('0x133a')][_0x41a348['id']]);}function _0x3cbb96(_0x3e85a7){const _0x834d68=_0x5186af;_0x283545()[_0x834d68('0x32c')](_0x3e85a7[_0x834d68('0x3bb')])===_0x57a21c['getCurrentUser']()['id']&&_0x86874a['getChatQueues']();}function _0x4931bd(_0x4efce7){const _0x8e6889=_0x5186af;_0x283545()['toInteger'](_0x4efce7[_0x8e6889('0x3bb')])===_0x57a21c['getCurrentUser']()['id']&&_0x86874a[_0x8e6889('0x15c0')]();}function _0x4e1a7d(_0x4b435a){const _0x2bf829=_0x5186af;_0x86874a['chatQueues'][_0x4b435a[_0x2bf829('0x1c2b')]]&&(_0x86874a[_0x2bf829('0x8ad')][_0x4b435a['id']]=_0x4b435a,_0x3e1bc7());}function _0x561885(_0x6ed7d1){const _0x191799=_0x5186af;delete _0x86874a[_0x191799('0x8ad')][_0x6ed7d1['id']],_0xbc04b6&&_0x86874a[_0x191799('0x1d95')][_0x191799('0x13e3')](_0x6ed7d1['id']),_0x3e1bc7();}function _0x33bfb5(_0x3e2b96){const _0x57df41=_0x5186af;switch(_0x3e2b96){case _0x57df41('0x231'):return'green-A700-bg';case _0x57df41('0x2795'):return _0x57df41('0x5e');case _0x57df41('0x529'):return _0x57df41('0x2546');case _0x57df41('0x195d'):return _0x57df41('0xf5d');case'openchannel':return _0x57df41('0x2532');case'fax':return'blue-grey-A200-bg';default:return _0x57df41('0x231c');}}_0x1695ff['$on'](_0x5186af('0x26ac'),function(){const _0x337aa2=_0x5186af;_0x213777[_0x337aa2('0x277f')](_0x337aa2('0x1d3e')),_0x213777[_0x337aa2('0x277f')](_0x337aa2('0x5dd')),_0x213777[_0x337aa2('0x277f')]('chatQueue:update'),_0x213777[_0x337aa2('0x277f')](_0x337aa2('0x20e3')),_0x213777[_0x337aa2('0x277f')](_0x337aa2('0x5fb')),_0x213777[_0x337aa2('0x277f')](_0x337aa2('0x6bd')),_0x213777['removeAllListeners'](_0x337aa2('0x5c1')),_0x213777['removeAllListeners'](_0x337aa2('0x1b1'));});}const _0x1ec4f7=_0x56372a;_0xcc7cdd['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),'$translate',_0x34e79e('0x519'),'Auth',_0x34e79e('0xd6f')];function _0xcc7cdd(_0x5e73fc,_0x5864aa,_0x4cc795,_0x3478b8,_0x2a1b8f,_0x2557da,_0x1ab658,_0xe36f42,_0x2f513a){const _0x5f2bfb=_0x34e79e,_0x5512a8=this,_0x4fe8d4=['id',_0x5f2bfb('0x1a8d'),_0x5f2bfb('0x18c6'),'waiting'];let _0x5cf951=!![];_0x5512a8['faxQueues']={},_0x5512a8[_0x5f2bfb('0x488')]=0x0,_0x5512a8[_0x5f2bfb('0x118a')]={},_0x5512a8[_0x5f2bfb('0x115')]=[],_0x5512a8[_0x5f2bfb('0x6f2')]=[],_0x5512a8[_0x5f2bfb('0xe8d')]={},_0x5512a8[_0x5f2bfb('0x135a')]={'id':_0xe36f42[_0x5f2bfb('0x24cc')]()['id'],'channel':'fax','fields':_0x5f2bfb('0x307'),'limit':0xa,'page':0x1},_0x5512a8[_0x5f2bfb('0x3be')]={'limit':0xa,'page':0x1},_0x5512a8[_0x5f2bfb('0x173b')]=_0x4b570f,_0x5512a8[_0x5f2bfb('0x13eb')]=_0x773302,_0x5512a8[_0x5f2bfb('0xcb9')]=_0x101c63,_0x5512a8[_0x5f2bfb('0xd12')]=_0x2e83f5,_0x5512a8[_0x5f2bfb('0xce9')]=_0x39212f,_0x5512a8[_0x5f2bfb('0x181')]=_0x56d0c7,_0x5512a8[_0x5f2bfb('0x14fc')]=_0x121edc,_0x5512a8[_0x5f2bfb('0x1198')]=_0x4fc644,_0x5512a8[_0x5f2bfb('0xaa1')]=_0x462b80,_0x5512a8[_0x5f2bfb('0x1199')]=_0x57ded9,_0x5512a8[_0x5f2bfb('0xb92')]=_0x5daa58,_0x5512a8[_0x5f2bfb('0x179b')]=_0x46cfa1,_0x5512a8[_0x5f2bfb('0x228b')]=_0x4d6560,_0x2f513a['onWithoutApply'](_0x5f2bfb('0xdb1'),_0x5512a8[_0x5f2bfb('0x181')]),_0x2f513a[_0x5f2bfb('0x3e')](_0x5f2bfb('0x2087'),_0x5512a8[_0x5f2bfb('0x14fc')]),_0x2f513a['onWithoutApply'](_0x5f2bfb('0x2846'),_0x5512a8[_0x5f2bfb('0x1198')]),_0x2f513a[_0x5f2bfb('0x3e')](_0x5f2bfb('0x2034'),_0x5512a8['onRemoveFaxQueue']),_0x2f513a['onWithoutApply'](_0x5f2bfb('0x7b7'),_0x5512a8[_0x5f2bfb('0x1199')]),_0x2f513a[_0x5f2bfb('0x3e')]('userFaxQueue:remove',_0x5512a8[_0x5f2bfb('0xb92')]),_0x2f513a[_0x5f2bfb('0x3e')](_0x5f2bfb('0x1aa7'),_0x5512a8[_0x5f2bfb('0x179b')]),_0x2f513a[_0x5f2bfb('0x3e')](_0x5f2bfb('0x2145'),_0x5512a8[_0x5f2bfb('0x228b')]),_0x1ab658[_0x5f2bfb('0x1bfc')][_0x5f2bfb('0x13eb')]()[_0x5f2bfb('0x1714')][_0x5f2bfb('0x2788')](function(_0x3993dd){const _0x368b96=_0x5f2bfb;_0x5512a8[_0x368b96('0x118a')]=_0x3993dd?_0x283545()[_0x368b96('0x13cf')](_0x3993dd[_0x368b96('0x25df')]?_0x3993dd['rows']:[],'id'):{};})[_0x5f2bfb('0x2788')](function(){const _0x7acc35=_0x5f2bfb;return _0x1ab658[_0x7acc35('0x1e6a')][_0x7acc35('0x138a')]({'id':_0xe36f42[_0x7acc35('0x24cc')]()['id'],'channel':'fax'})[_0x7acc35('0x1714')];})[_0x5f2bfb('0x2788')](function(_0x5b5af0){const _0x2ad3c2=_0x5f2bfb;return _0x5512a8[_0x2ad3c2('0x1df7')]=_0x5b5af0['rows'],_0x1ab658[_0x2ad3c2('0x1bfc')][_0x2ad3c2('0x204c')]()[_0x2ad3c2('0x1714')];})[_0x5f2bfb('0x2788')](function(_0x332345){const _0x537e26=_0x5f2bfb,_0x4767de=_0x283545()[_0x537e26('0x916')](_0x332345[_0x537e26('0x25df')],function(_0x23d34f){const _0x377bd1=_0x537e26;return _0x283545()[_0x377bd1('0x1d4e')](_0x5512a8[_0x377bd1('0x1df7')],{'id':_0x23d34f[_0x377bd1('0x1c2b')]});});_0x332345['rows']=_0x4767de,_0x332345[_0x537e26('0x338')]=_0x4767de[_0x537e26('0x2566')],_0x283545()[_0x537e26('0x2503')](_0x5512a8[_0x537e26('0xe8d')],_0x332345?_0x283545()[_0x537e26('0x13cf')](_0x332345[_0x537e26('0x25df')]?_0x332345[_0x537e26('0x25df')]:[],'id'):{});})[_0x5f2bfb('0x1cb5')](function(_0x3f7014){const _0x409cb9=_0x5f2bfb;console[_0x409cb9('0x5e8')](_0x3f7014);})[_0x5f2bfb('0x1ed8')](function(){const _0xc67739=_0x5f2bfb;for(let _0x490544=0x0;_0x490544<_0x5512a8['deleteFaxQueuesWaitingInteractions'][_0xc67739('0x2566')];_0x490544+=0x1){delete _0x5512a8[_0xc67739('0xe8d')][_0x5512a8[_0xc67739('0x6f2')][_0x490544]];}_0x5cf951=![],_0x5512a8[_0xc67739('0x6f2')]=[],_0x773302(),_0x39212f();});function _0x39212f(){const _0x21d4f5=_0x5f2bfb,_0x11d3f9=(_0x5512a8[_0x21d4f5('0x3be')][_0x21d4f5('0x23f5')]-0x1)*_0x5512a8['queryChannels'][_0x21d4f5('0x68e')];_0x5512a8[_0x21d4f5('0x115')]=_0x283545()['orderBy'](_0x5512a8[_0x21d4f5('0xe8d')],[_0x21d4f5('0x12ba')],[_0x21d4f5('0x25b5')]),_0x5512a8['interactions']=_0x283545()['drop'](_0x5512a8[_0x21d4f5('0x115')],_0x11d3f9)['slice'](0x0,_0x5512a8[_0x21d4f5('0x3be')]['limit']);}function _0x4b570f(_0x41bff9){const _0x579d03=_0x5f2bfb;_0x5512a8['faxQueuesTotal']=_0x41bff9[_0x579d03('0x338')]?_0x41bff9[_0x579d03('0x338')]:0x0,_0x5512a8[_0x579d03('0x134e')]=_0x41bff9?_0x283545()['keyBy'](_0x41bff9['rows']?_0x41bff9['rows']:[],'id'):{},_0x42c198();}function _0x773302(){const _0x2f2ad9=_0x5f2bfb;_0x5512a8['query']['offset']=(_0x5512a8[_0x2f2ad9('0x135a')][_0x2f2ad9('0x23f5')]-0x1)*_0x5512a8['query'][_0x2f2ad9('0x68e')],_0x5512a8[_0x2f2ad9('0x1808')]=_0x1ab658[_0x2f2ad9('0x1e6a')][_0x2f2ad9('0x138a')](_0x5512a8[_0x2f2ad9('0x135a')],_0x4b570f)[_0x2f2ad9('0x1714')];}let _0x3f01ca=!![],_0x2eb9da=0x1;_0x5e73fc[_0x5f2bfb('0x1662')](_0x5f2bfb('0x2571'),function(_0x43fd59,_0x4e02c0){const _0x55a6e6=_0x5f2bfb;_0x3f01ca?_0x5864aa(function(){_0x3f01ca=![];}):(!_0x4e02c0&&(_0x2eb9da=_0x5512a8[_0x55a6e6('0x135a')]['page']),_0x43fd59!==_0x4e02c0&&(_0x5512a8[_0x55a6e6('0x135a')][_0x55a6e6('0x23f5')]=0x1),!_0x43fd59&&(_0x5512a8[_0x55a6e6('0x135a')]['page']=_0x2eb9da),_0x5512a8[_0x55a6e6('0x13eb')]());});function _0x101c63(_0x39ab4a){const _0x1b9d75=_0x5f2bfb;return _0x283545()[_0x1b9d75('0x634')](_0x39ab4a);}function _0x42c198(){const _0x4bd992=_0x5f2bfb;_0x283545()['forIn'](_0x5512a8[_0x4bd992('0x134e')],function(_0xde5f6d,_0x5e7218){const _0x1db983=_0x4bd992;_0x5512a8[_0x1db983('0x118a')][_0x5e7218]&&(_0x5512a8[_0x1db983('0x134e')][_0x5e7218][_0x1db983('0x1eb6')]=_0x5512a8[_0x1db983('0x118a')][_0x5e7218][_0x1db983('0x1eb6')]||0x0);});}function _0x56d0c7(_0x716b16){const _0x2d30bc=_0x5f2bfb;_0x5512a8[_0x2d30bc('0x134e')][_0x716b16['id']]&&(_0x5512a8[_0x2d30bc('0x118a')][_0x716b16['id']]&&(_0x283545()[_0x2d30bc('0x2503')](_0x5512a8[_0x2d30bc('0x118a')][_0x716b16['id']],_0x283545()[_0x2d30bc('0x41b')](_0x716b16,_0x4fe8d4)),_0x283545()[_0x2d30bc('0x2503')](_0x5512a8[_0x2d30bc('0x134e')][_0x716b16['id']],_0x283545()['pick'](_0x716b16,_0x4fe8d4))));}function _0x121edc(_0x464da4){const _0x146bad=_0x5f2bfb;!_0x283545()['isNil'](_0x464da4)&&(_0x5512a8[_0x146bad('0x118a')][_0x464da4['id']]=_0x283545()[_0x146bad('0x41b')](_0x464da4,_0x4fe8d4));}function _0x4fc644(_0x1fee5c){const _0x507388=_0x5f2bfb;!_0x283545()[_0x507388('0x1015')](_0x1fee5c)&&(_0x5512a8[_0x507388('0x118a')][_0x1fee5c['id']]&&_0x283545()[_0x507388('0x2503')](_0x5512a8[_0x507388('0x118a')][_0x1fee5c['id']],_0x283545()['pick'](_0x1fee5c,_0x4fe8d4)),_0x5512a8['faxQueues'][_0x1fee5c['id']]&&_0x283545()['merge'](_0x5512a8[_0x507388('0x134e')][_0x1fee5c['id']],_0x283545()[_0x507388('0x41b')](_0x1fee5c,_0x4fe8d4)));}function _0x462b80(_0x43e01f){const _0x567345=_0x5f2bfb;!_0x283545()[_0x567345('0x1015')](_0x43e01f)&&(delete _0x5512a8['rpcFaxQueues'][_0x43e01f['id']],delete _0x5512a8['faxQueues'][_0x43e01f['id']]);}function _0x57ded9(_0xd171bf){const _0x317085=_0x5f2bfb;_0x283545()['toInteger'](_0xd171bf['UserId'])===_0xe36f42['getCurrentUser']()['id']&&_0x5512a8[_0x317085('0x13eb')]();}function _0x5daa58(_0x1614f2){const _0x2083a9=_0x5f2bfb;_0x283545()[_0x2083a9('0x32c')](_0x1614f2[_0x2083a9('0x3bb')])===_0xe36f42[_0x2083a9('0x24cc')]()['id']&&_0x5512a8[_0x2083a9('0x13eb')]();}function _0x46cfa1(_0x234c09){const _0x407950=_0x5f2bfb;_0x5512a8[_0x407950('0x134e')][_0x234c09[_0x407950('0x1c2b')]]&&(_0x5512a8[_0x407950('0xe8d')][_0x234c09['id']]=_0x234c09,_0x39212f());}function _0x4d6560(_0xb026ab){const _0x1d6767=_0x5f2bfb;delete _0x5512a8[_0x1d6767('0xe8d')][_0xb026ab['id']],_0x5cf951&&_0x5512a8[_0x1d6767('0x6f2')][_0x1d6767('0x13e3')](_0xb026ab['id']),_0x39212f();}function _0x2e83f5(_0x303c8b){const _0x10c258=_0x5f2bfb;switch(_0x303c8b){case _0x10c258('0x231'):return _0x10c258('0x1437');case _0x10c258('0x2795'):return _0x10c258('0x5e');case _0x10c258('0x529'):return _0x10c258('0x2546');case _0x10c258('0x195d'):return'lime-A700-bg';case _0x10c258('0x18aa'):return _0x10c258('0x2532');case'fax':return _0x10c258('0xc45');default:return _0x10c258('0x231c');}}_0x5e73fc[_0x5f2bfb('0x651')](_0x5f2bfb('0x26ac'),function(){const _0x408048=_0x5f2bfb;_0x2f513a[_0x408048('0x277f')](_0x408048('0xdb1')),_0x2f513a['removeAllListeners'](_0x408048('0x2087')),_0x2f513a['removeAllListeners'](_0x408048('0x2846')),_0x2f513a[_0x408048('0x277f')](_0x408048('0x2034')),_0x2f513a[_0x408048('0x277f')](_0x408048('0x7b7')),_0x2f513a[_0x408048('0x277f')](_0x408048('0x274e')),_0x2f513a[_0x408048('0x277f')]('fax_queue_waiting_interaction:save'),_0x2f513a[_0x408048('0x277f')]('fax_queue_waiting_interaction:remove');});}const _0x49fd33=_0xcc7cdd;_0x5cceb3[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x5cceb3(_0x441c92,_0x4a33f1,_0x38fa97,_0x2a7246,_0x499d01,_0x111856,_0x4b3fc6,_0x5ee326,_0x528f5e){const _0x4cd031=_0x34e79e,_0x226ba9=this,_0x51b2aa=['id','name',_0x4cd031('0x18c6'),'waiting'];let _0x45e9f1=!![];_0x226ba9[_0x4cd031('0x1780')]={},_0x226ba9['mailQueuesTotal']=0x0,_0x226ba9[_0x4cd031('0x1520')]={},_0x226ba9['paginatedInteractions']=[],_0x226ba9[_0x4cd031('0x20d5')]=[],_0x226ba9[_0x4cd031('0x2407')]={},_0x226ba9[_0x4cd031('0x135a')]={'id':_0x5ee326[_0x4cd031('0x24cc')]()['id'],'channel':_0x4cd031('0x2795'),'fields':_0x4cd031('0x307'),'limit':0xa,'page':0x1},_0x226ba9[_0x4cd031('0x3be')]={'limit':0xa,'page':0x1},_0x226ba9[_0x4cd031('0x173b')]=_0x41d01f,_0x226ba9[_0x4cd031('0x1fe7')]=_0x4dcb83,_0x226ba9['getSize']=_0x368cc3,_0x226ba9['getColorByChannel']=_0x53ca2d,_0x226ba9[_0x4cd031('0xce9')]=_0x502282,_0x226ba9['onSaveQueue']=_0x5a06fd,_0x226ba9[_0x4cd031('0x1ded')]=_0x4c5d60,_0x226ba9['onUpdateMailQueue']=_0x185f7d,_0x226ba9['onRemoveMailQueue']=_0x47fa26,_0x226ba9['onSaveUserMailQueue']=_0x3b5da7,_0x226ba9[_0x4cd031('0x1321')]=_0x1d9c38,_0x226ba9[_0x4cd031('0x1b24')]=_0x514598,_0x226ba9['onRemoveMailQueueChannel']=_0x4fd09f,_0x528f5e[_0x4cd031('0x3e')]('mail_queue:save',_0x226ba9[_0x4cd031('0x181')]),_0x528f5e[_0x4cd031('0x3e')]('mailQueue:save',_0x226ba9[_0x4cd031('0x1ded')]),_0x528f5e[_0x4cd031('0x3e')]('mailQueue:update',_0x226ba9[_0x4cd031('0x16da')]),_0x528f5e[_0x4cd031('0x3e')](_0x4cd031('0x145f'),_0x226ba9[_0x4cd031('0xeba')]),_0x528f5e[_0x4cd031('0x3e')](_0x4cd031('0xd9a'),_0x226ba9[_0x4cd031('0x156a')]),_0x528f5e[_0x4cd031('0x3e')](_0x4cd031('0xa27'),_0x226ba9[_0x4cd031('0x1321')]),_0x528f5e[_0x4cd031('0x3e')](_0x4cd031('0xc77'),_0x226ba9[_0x4cd031('0x1b24')]),_0x528f5e[_0x4cd031('0x3e')](_0x4cd031('0x48'),_0x226ba9[_0x4cd031('0x26c4')]),_0x4b3fc6[_0x4cd031('0x1bfc')]['getMailQueues']()[_0x4cd031('0x1714')]['then'](function(_0xbd6c61){const _0x3b4cec=_0x4cd031;_0x226ba9[_0x3b4cec('0x1520')]=_0xbd6c61?_0x283545()[_0x3b4cec('0x13cf')](_0xbd6c61[_0x3b4cec('0x25df')]?_0xbd6c61[_0x3b4cec('0x25df')]:[],'id'):{};})[_0x4cd031('0x2788')](function(){const _0x475811=_0x4cd031;return _0x4b3fc6[_0x475811('0x1e6a')]['getQueues']({'id':_0x5ee326[_0x475811('0x24cc')]()['id'],'channel':'mail'})[_0x475811('0x1714')];})[_0x4cd031('0x2788')](function(_0x1bb4d9){const _0x258ecf=_0x4cd031;return _0x226ba9[_0x258ecf('0x1df7')]=_0x1bb4d9[_0x258ecf('0x25df')],_0x4b3fc6[_0x258ecf('0x1bfc')][_0x258ecf('0x2f3')]()['$promise'];})[_0x4cd031('0x2788')](function(_0xf6d7c2){const _0x7b3eac=_0x4cd031,_0x101727=_0x283545()[_0x7b3eac('0x916')](_0xf6d7c2[_0x7b3eac('0x25df')],function(_0x5da466){const _0x3aaa9f=_0x7b3eac;return _0x283545()[_0x3aaa9f('0x1d4e')](_0x226ba9[_0x3aaa9f('0x1df7')],{'id':_0x5da466['queue_id']});});_0xf6d7c2[_0x7b3eac('0x25df')]=_0x101727,_0xf6d7c2[_0x7b3eac('0x338')]=_0x101727[_0x7b3eac('0x2566')],_0x283545()['merge'](_0x226ba9[_0x7b3eac('0x2407')],_0xf6d7c2?_0x283545()[_0x7b3eac('0x13cf')](_0xf6d7c2[_0x7b3eac('0x25df')]?_0xf6d7c2[_0x7b3eac('0x25df')]:[],'id'):{});})[_0x4cd031('0x1cb5')](function(_0xff0e63){const _0xf52fdf=_0x4cd031;console[_0xf52fdf('0x5e8')](_0xff0e63);})['finally'](function(){const _0x5bc5d9=_0x4cd031;for(let _0x5ce62e=0x0;_0x5ce62e<_0x226ba9[_0x5bc5d9('0x20d5')][_0x5bc5d9('0x2566')];_0x5ce62e+=0x1){delete _0x226ba9['rpcMailQueuesWaitingInteractions'][_0x226ba9[_0x5bc5d9('0x20d5')][_0x5ce62e]];}_0x45e9f1=![],_0x226ba9['deleteMailQueuesWaitingInteractions']=[],_0x4dcb83(),_0x502282();});function _0x502282(){const _0x31a7c5=_0x4cd031,_0x3d3c59=(_0x226ba9[_0x31a7c5('0x3be')][_0x31a7c5('0x23f5')]-0x1)*_0x226ba9[_0x31a7c5('0x3be')][_0x31a7c5('0x68e')];_0x226ba9['paginatedInteractions']=_0x283545()[_0x31a7c5('0xf87')](_0x226ba9[_0x31a7c5('0x2407')],['joinAt'],['desc']),_0x226ba9['interactions']=_0x283545()[_0x31a7c5('0x280')](_0x226ba9['paginatedInteractions'],_0x3d3c59)['slice'](0x0,_0x226ba9[_0x31a7c5('0x3be')][_0x31a7c5('0x68e')]);}function _0x41d01f(_0x36d9e3){const _0x186b19=_0x4cd031;_0x226ba9['mailQueuesTotal']=_0x36d9e3[_0x186b19('0x338')]?_0x36d9e3[_0x186b19('0x338')]:0x0,_0x226ba9[_0x186b19('0x1780')]=_0x36d9e3?_0x283545()[_0x186b19('0x13cf')](_0x36d9e3[_0x186b19('0x25df')]?_0x36d9e3['rows']:[],'id'):{},_0x364781();}function _0x4dcb83(){const _0x47aa36=_0x4cd031;_0x226ba9[_0x47aa36('0x135a')]['offset']=(_0x226ba9[_0x47aa36('0x135a')]['page']-0x1)*_0x226ba9[_0x47aa36('0x135a')][_0x47aa36('0x68e')],_0x226ba9['promise']=_0x4b3fc6[_0x47aa36('0x1e6a')][_0x47aa36('0x138a')](_0x226ba9[_0x47aa36('0x135a')],_0x41d01f)[_0x47aa36('0x1714')];}let _0x1dbab6=!![],_0x2dc507=0x1;_0x441c92[_0x4cd031('0x1662')](_0x4cd031('0x2571'),function(_0x5861c2,_0x4f2c0b){const _0x2721df=_0x4cd031;_0x1dbab6?_0x4a33f1(function(){_0x1dbab6=![];}):(!_0x4f2c0b&&(_0x2dc507=_0x226ba9['query'][_0x2721df('0x23f5')]),_0x5861c2!==_0x4f2c0b&&(_0x226ba9[_0x2721df('0x135a')][_0x2721df('0x23f5')]=0x1),!_0x5861c2&&(_0x226ba9[_0x2721df('0x135a')][_0x2721df('0x23f5')]=_0x2dc507),_0x226ba9[_0x2721df('0x1fe7')]());});function _0x368cc3(_0x13d273){const _0x34517e=_0x4cd031;return _0x283545()[_0x34517e('0x634')](_0x13d273);}function _0x364781(){const _0x543628=_0x4cd031;_0x283545()[_0x543628('0x1b')](_0x226ba9[_0x543628('0x1780')],function(_0x2eb702,_0x11977f){const _0x104ba4=_0x543628;_0x226ba9[_0x104ba4('0x1520')][_0x11977f]&&(_0x226ba9['mailQueues'][_0x11977f][_0x104ba4('0x1eb6')]=_0x226ba9[_0x104ba4('0x1520')][_0x11977f][_0x104ba4('0x1eb6')]||0x0);});}function _0x5a06fd(_0x5885e4){const _0x4c0b77=_0x4cd031;_0x226ba9[_0x4c0b77('0x1780')][_0x5885e4['id']]&&(_0x226ba9[_0x4c0b77('0x1520')][_0x5885e4['id']]&&(_0x283545()['merge'](_0x226ba9['rpcMailQueues'][_0x5885e4['id']],_0x283545()['pick'](_0x5885e4,_0x51b2aa)),_0x283545()[_0x4c0b77('0x2503')](_0x226ba9['mailQueues'][_0x5885e4['id']],_0x283545()[_0x4c0b77('0x41b')](_0x5885e4,_0x51b2aa))));}function _0x4c5d60(_0x17dcaa){const _0x4cca0a=_0x4cd031;!_0x283545()['isNil'](_0x17dcaa)&&(_0x226ba9['rpcMailQueues'][_0x17dcaa['id']]=_0x283545()[_0x4cca0a('0x41b')](_0x17dcaa,_0x51b2aa));}function _0x185f7d(_0x147a62){const _0x3b70bb=_0x4cd031;!_0x283545()[_0x3b70bb('0x1015')](_0x147a62)&&(_0x226ba9[_0x3b70bb('0x1520')][_0x147a62['id']]&&_0x283545()['merge'](_0x226ba9[_0x3b70bb('0x1520')][_0x147a62['id']],_0x283545()[_0x3b70bb('0x41b')](_0x147a62,_0x51b2aa)),_0x226ba9[_0x3b70bb('0x1780')][_0x147a62['id']]&&_0x283545()[_0x3b70bb('0x2503')](_0x226ba9[_0x3b70bb('0x1780')][_0x147a62['id']],_0x283545()[_0x3b70bb('0x41b')](_0x147a62,_0x51b2aa)));}function _0x47fa26(_0x15c24d){const _0x204bf9=_0x4cd031;!_0x283545()[_0x204bf9('0x1015')](_0x15c24d)&&(delete _0x226ba9[_0x204bf9('0x1520')][_0x15c24d['id']],delete _0x226ba9[_0x204bf9('0x1780')][_0x15c24d['id']]);}function _0x3b5da7(_0x594922){const _0x475d93=_0x4cd031;_0x283545()[_0x475d93('0x32c')](_0x594922[_0x475d93('0x3bb')])===_0x5ee326[_0x475d93('0x24cc')]()['id']&&_0x226ba9[_0x475d93('0x1fe7')]();}function _0x1d9c38(_0x2fbaee){const _0x2253d0=_0x4cd031;_0x283545()[_0x2253d0('0x32c')](_0x2fbaee[_0x2253d0('0x3bb')])===_0x5ee326['getCurrentUser']()['id']&&_0x226ba9[_0x2253d0('0x1fe7')]();}function _0x514598(_0x12c337){const _0x42a467=_0x4cd031;_0x226ba9[_0x42a467('0x1780')][_0x12c337['queue_id']]&&(_0x226ba9[_0x42a467('0x2407')][_0x12c337['id']]=_0x12c337,_0x502282());}function _0x4fd09f(_0x417a07){const _0x5c6e2e=_0x4cd031;delete _0x226ba9[_0x5c6e2e('0x2407')][_0x417a07['id']],_0x45e9f1&&_0x226ba9[_0x5c6e2e('0x20d5')][_0x5c6e2e('0x13e3')](_0x417a07['id']),_0x502282();}function _0x53ca2d(_0x2bbe3){const _0x418b3e=_0x4cd031;switch(_0x2bbe3){case'chat':return _0x418b3e('0x1437');case _0x418b3e('0x2795'):return _0x418b3e('0x5e');case _0x418b3e('0x529'):return _0x418b3e('0x2546');case'whatsapp':return _0x418b3e('0xf5d');case _0x418b3e('0x18aa'):return _0x418b3e('0x2532');case _0x418b3e('0x10cf'):return'blue-grey-A200-bg';default:return _0x418b3e('0x231c');}}_0x441c92[_0x4cd031('0x651')](_0x4cd031('0x26ac'),function(){const _0x4e2e53=_0x4cd031;_0x528f5e['removeAllListeners'](_0x4e2e53('0x499')),_0x528f5e[_0x4e2e53('0x277f')](_0x4e2e53('0xa8e')),_0x528f5e['removeAllListeners']('mailQueue:update'),_0x528f5e[_0x4e2e53('0x277f')](_0x4e2e53('0x145f')),_0x528f5e[_0x4e2e53('0x277f')](_0x4e2e53('0xd9a')),_0x528f5e['removeAllListeners'](_0x4e2e53('0xa27')),_0x528f5e[_0x4e2e53('0x277f')](_0x4e2e53('0xc77')),_0x528f5e[_0x4e2e53('0x277f')](_0x4e2e53('0x48'));});}const _0x2c6f60=_0x5cceb3;_0x56cfab[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'socket'];function _0x56cfab(_0x112504,_0x2ea537,_0x54df7c,_0x53ed94,_0x1594c7,_0x323534,_0x4ce912,_0x45a1a6,_0x2a658c){const _0x79bb4f=_0x34e79e,_0x48cbc9=this,_0x10605d=['id','name',_0x79bb4f('0x18c6'),_0x79bb4f('0x1eb6')];let _0x178583=!![];_0x48cbc9[_0x79bb4f('0x258c')]={},_0x48cbc9[_0x79bb4f('0xe9a')]=0x0,_0x48cbc9[_0x79bb4f('0x39')]={},_0x48cbc9[_0x79bb4f('0x115')]=[],_0x48cbc9[_0x79bb4f('0x1043')]=[],_0x48cbc9[_0x79bb4f('0x1074')]={},_0x48cbc9[_0x79bb4f('0x135a')]={'id':_0x45a1a6[_0x79bb4f('0x24cc')]()['id'],'channel':_0x79bb4f('0x18aa'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x48cbc9[_0x79bb4f('0x3be')]={'limit':0xa,'page':0x1},_0x48cbc9['success']=_0x5b81de,_0x48cbc9[_0x79bb4f('0x240a')]=_0x5e90a4,_0x48cbc9[_0x79bb4f('0xcb9')]=_0x565f45,_0x48cbc9[_0x79bb4f('0xd12')]=_0x4df891,_0x48cbc9[_0x79bb4f('0xce9')]=_0x1925af,_0x48cbc9[_0x79bb4f('0x181')]=_0x5dcb72,_0x48cbc9[_0x79bb4f('0xcff')]=_0x3a25ac,_0x48cbc9[_0x79bb4f('0x263b')]=_0x39a84f,_0x48cbc9[_0x79bb4f('0x24fb')]=_0x498e87,_0x48cbc9[_0x79bb4f('0x130c')]=_0x54ca7c,_0x48cbc9['onRemoveUserOpenchannelQueue']=_0x58a9eb,_0x48cbc9['onSaveOpenchannelQueueChannel']=_0x1385df,_0x48cbc9['onRemoveOpenchannelQueueChannel']=_0x445652,_0x2a658c[_0x79bb4f('0x3e')](_0x79bb4f('0x1e55'),_0x48cbc9[_0x79bb4f('0x181')]),_0x2a658c[_0x79bb4f('0x3e')]('openchannelQueue:save',_0x48cbc9[_0x79bb4f('0xcff')]),_0x2a658c[_0x79bb4f('0x3e')](_0x79bb4f('0x22c2'),_0x48cbc9[_0x79bb4f('0x263b')]),_0x2a658c[_0x79bb4f('0x3e')]('openchannelQueue:remove',_0x48cbc9[_0x79bb4f('0x24fb')]),_0x2a658c[_0x79bb4f('0x3e')](_0x79bb4f('0xc46'),_0x48cbc9['onSaveUserOpenchannelQueue']),_0x2a658c[_0x79bb4f('0x3e')](_0x79bb4f('0x161d'),_0x48cbc9[_0x79bb4f('0x246e')]),_0x2a658c['onWithoutApply']('openchannel_queue_waiting_interaction:save',_0x48cbc9['onSaveOpenchannelQueueChannel']),_0x2a658c[_0x79bb4f('0x3e')]('openchannel_queue_waiting_interaction:remove',_0x48cbc9[_0x79bb4f('0x4d9')]),_0x4ce912['rpc']['getOpenchannelQueues']()[_0x79bb4f('0x1714')][_0x79bb4f('0x2788')](function(_0x27eb22){const _0x2ce9df=_0x79bb4f;_0x48cbc9['rpcOpenchannelQueues']=_0x27eb22?_0x283545()[_0x2ce9df('0x13cf')](_0x27eb22[_0x2ce9df('0x25df')]?_0x27eb22['rows']:[],'id'):{};})[_0x79bb4f('0x2788')](function(){const _0x5e231b=_0x79bb4f;return _0x4ce912[_0x5e231b('0x1e6a')][_0x5e231b('0x138a')]({'id':_0x45a1a6[_0x5e231b('0x24cc')]()['id'],'channel':'openchannel'})['$promise'];})[_0x79bb4f('0x2788')](function(_0x1791b5){const _0x124340=_0x79bb4f;return _0x48cbc9['myQueues']=_0x1791b5[_0x124340('0x25df')],_0x4ce912['rpc']['getOpenchannelQueuesWaitingInteractions']()[_0x124340('0x1714')];})['then'](function(_0x44cc7c){const _0xbd8736=_0x79bb4f,_0x430442=_0x283545()[_0xbd8736('0x916')](_0x44cc7c[_0xbd8736('0x25df')],function(_0x340993){const _0x3aae79=_0xbd8736;return _0x283545()['includes'](_0x48cbc9[_0x3aae79('0x1df7')],{'id':_0x340993[_0x3aae79('0x1c2b')]});});_0x44cc7c['rows']=_0x430442,_0x44cc7c['count']=_0x430442[_0xbd8736('0x2566')],_0x283545()[_0xbd8736('0x2503')](_0x48cbc9[_0xbd8736('0x1074')],_0x44cc7c?_0x283545()['keyBy'](_0x44cc7c['rows']?_0x44cc7c[_0xbd8736('0x25df')]:[],'id'):{});})[_0x79bb4f('0x1cb5')](function(_0x14ce91){const _0x17c3de=_0x79bb4f;console[_0x17c3de('0x5e8')](_0x14ce91);})[_0x79bb4f('0x1ed8')](function(){const _0x49f0c2=_0x79bb4f;for(let _0x14d227=0x0;_0x14d227<_0x48cbc9[_0x49f0c2('0x1043')][_0x49f0c2('0x2566')];_0x14d227+=0x1){delete _0x48cbc9[_0x49f0c2('0x1074')][_0x48cbc9[_0x49f0c2('0x1043')][_0x14d227]];}_0x178583=![],_0x48cbc9[_0x49f0c2('0x1043')]=[],_0x5e90a4(),_0x1925af();});function _0x1925af(){const _0x2a6e39=_0x79bb4f,_0x2cca77=(_0x48cbc9[_0x2a6e39('0x3be')][_0x2a6e39('0x23f5')]-0x1)*_0x48cbc9[_0x2a6e39('0x3be')][_0x2a6e39('0x68e')];_0x48cbc9[_0x2a6e39('0x115')]=_0x283545()[_0x2a6e39('0xf87')](_0x48cbc9[_0x2a6e39('0x1074')],[_0x2a6e39('0x12ba')],[_0x2a6e39('0x25b5')]),_0x48cbc9[_0x2a6e39('0x1de4')]=_0x283545()[_0x2a6e39('0x280')](_0x48cbc9['paginatedInteractions'],_0x2cca77)[_0x2a6e39('0x845')](0x0,_0x48cbc9['queryChannels'][_0x2a6e39('0x68e')]);}function _0x5b81de(_0x17d990){const _0x5625d8=_0x79bb4f;_0x48cbc9[_0x5625d8('0xe9a')]=_0x17d990['count']?_0x17d990[_0x5625d8('0x338')]:0x0,_0x48cbc9[_0x5625d8('0x258c')]=_0x17d990?_0x283545()[_0x5625d8('0x13cf')](_0x17d990[_0x5625d8('0x25df')]?_0x17d990[_0x5625d8('0x25df')]:[],'id'):{},_0x1859b6();}function _0x5e90a4(){const _0x44936d=_0x79bb4f;_0x48cbc9[_0x44936d('0x135a')][_0x44936d('0x19e')]=(_0x48cbc9[_0x44936d('0x135a')][_0x44936d('0x23f5')]-0x1)*_0x48cbc9['query'][_0x44936d('0x68e')],_0x48cbc9['promise']=_0x4ce912['user'][_0x44936d('0x138a')](_0x48cbc9[_0x44936d('0x135a')],_0x5b81de)[_0x44936d('0x1714')];}let _0x39852a=!![],_0x14aa16=0x1;_0x112504['$watch']('vm_dc.query.filter',function(_0x411f0a,_0x401b31){const _0x6fdabd=_0x79bb4f;_0x39852a?_0x2ea537(function(){_0x39852a=![];}):(!_0x401b31&&(_0x14aa16=_0x48cbc9[_0x6fdabd('0x135a')]['page']),_0x411f0a!==_0x401b31&&(_0x48cbc9['query'][_0x6fdabd('0x23f5')]=0x1),!_0x411f0a&&(_0x48cbc9[_0x6fdabd('0x135a')][_0x6fdabd('0x23f5')]=_0x14aa16),_0x48cbc9[_0x6fdabd('0x240a')]());});function _0x565f45(_0x3db22d){return _0x283545()['size'](_0x3db22d);}function _0x1859b6(){const _0x1aa067=_0x79bb4f;_0x283545()[_0x1aa067('0x1b')](_0x48cbc9[_0x1aa067('0x258c')],function(_0x1c895a,_0x360f6a){const _0x8d4fe=_0x1aa067;_0x48cbc9['rpcOpenchannelQueues'][_0x360f6a]&&(_0x48cbc9[_0x8d4fe('0x258c')][_0x360f6a]['waiting']=_0x48cbc9[_0x8d4fe('0x39')][_0x360f6a]['waiting']||0x0);});}function _0x5dcb72(_0x4a7120){const _0x37ace9=_0x79bb4f;_0x48cbc9[_0x37ace9('0x258c')][_0x4a7120['id']]&&(_0x48cbc9[_0x37ace9('0x39')][_0x4a7120['id']]&&(_0x283545()[_0x37ace9('0x2503')](_0x48cbc9['rpcOpenchannelQueues'][_0x4a7120['id']],_0x283545()[_0x37ace9('0x41b')](_0x4a7120,_0x10605d)),_0x283545()[_0x37ace9('0x2503')](_0x48cbc9[_0x37ace9('0x258c')][_0x4a7120['id']],_0x283545()[_0x37ace9('0x41b')](_0x4a7120,_0x10605d))));}function _0x3a25ac(_0x5797ce){const _0x5523c4=_0x79bb4f;!_0x283545()[_0x5523c4('0x1015')](_0x5797ce)&&(_0x48cbc9['rpcOpenchannelQueues'][_0x5797ce['id']]=_0x283545()['pick'](_0x5797ce,_0x10605d));}function _0x39a84f(_0x45c26f){const _0x350350=_0x79bb4f;!_0x283545()['isNil'](_0x45c26f)&&(_0x48cbc9[_0x350350('0x39')][_0x45c26f['id']]&&_0x283545()[_0x350350('0x2503')](_0x48cbc9[_0x350350('0x39')][_0x45c26f['id']],_0x283545()[_0x350350('0x41b')](_0x45c26f,_0x10605d)),_0x48cbc9[_0x350350('0x258c')][_0x45c26f['id']]&&_0x283545()[_0x350350('0x2503')](_0x48cbc9[_0x350350('0x258c')][_0x45c26f['id']],_0x283545()[_0x350350('0x41b')](_0x45c26f,_0x10605d)));}function _0x498e87(_0x389c8e){const _0xc281d4=_0x79bb4f;!_0x283545()[_0xc281d4('0x1015')](_0x389c8e)&&(delete _0x48cbc9[_0xc281d4('0x39')][_0x389c8e['id']],delete _0x48cbc9['openchannelQueues'][_0x389c8e['id']]);}function _0x54ca7c(_0x490f9c){const _0xc97a2b=_0x79bb4f;_0x283545()[_0xc97a2b('0x32c')](_0x490f9c['UserId'])===_0x45a1a6['getCurrentUser']()['id']&&_0x48cbc9[_0xc97a2b('0x240a')]();}function _0x58a9eb(_0x3710c6){const _0x40a7aa=_0x79bb4f;_0x283545()['toInteger'](_0x3710c6['UserId'])===_0x45a1a6[_0x40a7aa('0x24cc')]()['id']&&_0x48cbc9['getOpenchannelQueues']();}function _0x1385df(_0x29092e){const _0x4a75cf=_0x79bb4f;_0x48cbc9['openchannelQueues'][_0x29092e[_0x4a75cf('0x1c2b')]]&&(_0x48cbc9[_0x4a75cf('0x1074')][_0x29092e['id']]=_0x29092e,_0x1925af());}function _0x445652(_0x1722ea){const _0x33ec26=_0x79bb4f;delete _0x48cbc9[_0x33ec26('0x1074')][_0x1722ea['id']],_0x178583&&_0x48cbc9[_0x33ec26('0x1043')][_0x33ec26('0x13e3')](_0x1722ea['id']),_0x1925af();}function _0x4df891(_0x21d2b6){const _0xc2da6f=_0x79bb4f;switch(_0x21d2b6){case _0xc2da6f('0x231'):return'green-A700-bg';case _0xc2da6f('0x2795'):return _0xc2da6f('0x5e');case _0xc2da6f('0x529'):return _0xc2da6f('0x2546');case _0xc2da6f('0x195d'):return _0xc2da6f('0xf5d');case _0xc2da6f('0x18aa'):return'amber-A200-bg';case _0xc2da6f('0x10cf'):return _0xc2da6f('0xc45');default:return _0xc2da6f('0x231c');}}_0x112504[_0x79bb4f('0x651')](_0x79bb4f('0x26ac'),function(){const _0x10cec8=_0x79bb4f;_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0x1e55')),_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0x1795')),_0x2a658c['removeAllListeners'](_0x10cec8('0x22c2')),_0x2a658c['removeAllListeners'](_0x10cec8('0xcab')),_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0xc46')),_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0x161d')),_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0x13a0')),_0x2a658c[_0x10cec8('0x277f')](_0x10cec8('0x419'));});}const _0x4d529c=_0x56cfab;_0x292357['$inject']=['$scope','$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$window',_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0x292357(_0x340d2a,_0x2e8a41,_0x4216ca,_0x1a3be5,_0x1cfaf9,_0x5c8d7d,_0x34e5a3,_0x30a2e7,_0x370124){const _0x178a6f=_0x34e79e,_0x3e62e5=this,_0x3728fc=['id',_0x178a6f('0x1a8d'),_0x178a6f('0x18c6'),_0x178a6f('0x1eb6')];let _0x84e301=!![];_0x3e62e5[_0x178a6f('0x188')]={},_0x3e62e5[_0x178a6f('0x4d4')]=0x0,_0x3e62e5[_0x178a6f('0x14c8')]={},_0x3e62e5['paginatedInteractions']=[],_0x3e62e5['deleteSmsQueuesWaitingInteractions']=[],_0x3e62e5[_0x178a6f('0xfb4')]={},_0x3e62e5['query']={'id':_0x30a2e7[_0x178a6f('0x24cc')]()['id'],'channel':_0x178a6f('0x529'),'fields':_0x178a6f('0x307'),'limit':0xa,'page':0x1},_0x3e62e5[_0x178a6f('0x3be')]={'limit':0xa,'page':0x1},_0x3e62e5[_0x178a6f('0x173b')]=_0x1ed104,_0x3e62e5['getSmsQueues']=_0x505725,_0x3e62e5[_0x178a6f('0xcb9')]=_0x5349db,_0x3e62e5['getColorByChannel']=_0x588d84,_0x3e62e5[_0x178a6f('0xce9')]=_0x47b97d,_0x3e62e5[_0x178a6f('0x181')]=_0x1414b8,_0x3e62e5[_0x178a6f('0x1900')]=_0x4eb77e,_0x3e62e5['onUpdateSmsQueue']=_0x121d95,_0x3e62e5[_0x178a6f('0xf29')]=_0x497abd,_0x3e62e5[_0x178a6f('0x23ef')]=_0x3b4a64,_0x3e62e5[_0x178a6f('0x240f')]=_0x4cc552,_0x3e62e5[_0x178a6f('0x95f')]=_0xe6c47b,_0x3e62e5[_0x178a6f('0x1312')]=_0x6f22d3,_0x370124[_0x178a6f('0x3e')](_0x178a6f('0x731'),_0x3e62e5[_0x178a6f('0x181')]),_0x370124[_0x178a6f('0x3e')](_0x178a6f('0x189c'),_0x3e62e5['onSaveSmsQueue']),_0x370124[_0x178a6f('0x3e')](_0x178a6f('0x2259'),_0x3e62e5[_0x178a6f('0x927')]),_0x370124['onWithoutApply'](_0x178a6f('0x11a4'),_0x3e62e5[_0x178a6f('0xf29')]),_0x370124['onWithoutApply'](_0x178a6f('0x46e'),_0x3e62e5[_0x178a6f('0x23ef')]),_0x370124[_0x178a6f('0x3e')](_0x178a6f('0x1f3a'),_0x3e62e5[_0x178a6f('0x240f')]),_0x370124[_0x178a6f('0x3e')](_0x178a6f('0x4ab'),_0x3e62e5['onSaveSmsQueueChannel']),_0x370124[_0x178a6f('0x3e')]('sms_queue_waiting_interaction:remove',_0x3e62e5[_0x178a6f('0x1312')]),_0x34e5a3[_0x178a6f('0x1bfc')]['getSmsQueues']()['$promise'][_0x178a6f('0x2788')](function(_0x4ae978){const _0x1a8b50=_0x178a6f;_0x3e62e5[_0x1a8b50('0x14c8')]=_0x4ae978?_0x283545()[_0x1a8b50('0x13cf')](_0x4ae978[_0x1a8b50('0x25df')]?_0x4ae978['rows']:[],'id'):{};})[_0x178a6f('0x2788')](function(){const _0x4f072e=_0x178a6f;return _0x34e5a3[_0x4f072e('0x1e6a')][_0x4f072e('0x138a')]({'id':_0x30a2e7[_0x4f072e('0x24cc')]()['id'],'channel':_0x4f072e('0x529')})['$promise'];})[_0x178a6f('0x2788')](function(_0x1aeb72){const _0x339393=_0x178a6f;return _0x3e62e5[_0x339393('0x1df7')]=_0x1aeb72['rows'],_0x34e5a3[_0x339393('0x1bfc')][_0x339393('0x2150')]()['$promise'];})[_0x178a6f('0x2788')](function(_0x1c70c2){const _0x43c8ee=_0x178a6f,_0x597cad=_0x283545()[_0x43c8ee('0x916')](_0x1c70c2['rows'],function(_0x2566ab){const _0x1b227a=_0x43c8ee;return _0x283545()[_0x1b227a('0x1d4e')](_0x3e62e5[_0x1b227a('0x1df7')],{'id':_0x2566ab[_0x1b227a('0x1c2b')]});});_0x1c70c2[_0x43c8ee('0x25df')]=_0x597cad,_0x1c70c2[_0x43c8ee('0x338')]=_0x597cad[_0x43c8ee('0x2566')],_0x283545()[_0x43c8ee('0x2503')](_0x3e62e5[_0x43c8ee('0xfb4')],_0x1c70c2?_0x283545()[_0x43c8ee('0x13cf')](_0x1c70c2[_0x43c8ee('0x25df')]?_0x1c70c2['rows']:[],'id'):{});})[_0x178a6f('0x1cb5')](function(_0x57aafe){const _0x42a7c2=_0x178a6f;console[_0x42a7c2('0x5e8')](_0x57aafe);})[_0x178a6f('0x1ed8')](function(){const _0x322d32=_0x178a6f;for(let _0x504f45=0x0;_0x504f45<_0x3e62e5[_0x322d32('0x1d9d')]['length'];_0x504f45+=0x1){delete _0x3e62e5['rpcSmsQueuesWaitingInteractions'][_0x3e62e5[_0x322d32('0x1d9d')][_0x504f45]];}_0x84e301=![],_0x3e62e5['deleteSmsQueuesWaitingInteractions']=[],_0x505725(),_0x47b97d();});function _0x47b97d(){const _0x454f5d=_0x178a6f,_0x294b7=(_0x3e62e5[_0x454f5d('0x3be')]['page']-0x1)*_0x3e62e5[_0x454f5d('0x3be')][_0x454f5d('0x68e')];_0x3e62e5[_0x454f5d('0x115')]=_0x283545()['orderBy'](_0x3e62e5[_0x454f5d('0xfb4')],['joinAt'],[_0x454f5d('0x25b5')]),_0x3e62e5['interactions']=_0x283545()[_0x454f5d('0x280')](_0x3e62e5[_0x454f5d('0x115')],_0x294b7)[_0x454f5d('0x845')](0x0,_0x3e62e5[_0x454f5d('0x3be')]['limit']);}function _0x1ed104(_0x38356e){const _0x251c15=_0x178a6f;_0x3e62e5[_0x251c15('0x4d4')]=_0x38356e[_0x251c15('0x338')]?_0x38356e[_0x251c15('0x338')]:0x0,_0x3e62e5[_0x251c15('0x188')]=_0x38356e?_0x283545()[_0x251c15('0x13cf')](_0x38356e['rows']?_0x38356e[_0x251c15('0x25df')]:[],'id'):{},_0x5832ea();}function _0x505725(){const _0x644d0e=_0x178a6f;_0x3e62e5['query'][_0x644d0e('0x19e')]=(_0x3e62e5[_0x644d0e('0x135a')]['page']-0x1)*_0x3e62e5[_0x644d0e('0x135a')][_0x644d0e('0x68e')],_0x3e62e5['promise']=_0x34e5a3[_0x644d0e('0x1e6a')][_0x644d0e('0x138a')](_0x3e62e5[_0x644d0e('0x135a')],_0x1ed104)[_0x644d0e('0x1714')];}let _0x345e4a=!![],_0x5a2761=0x1;_0x340d2a[_0x178a6f('0x1662')](_0x178a6f('0x2571'),function(_0x36f1e8,_0x5418e3){const _0x5dd3c4=_0x178a6f;_0x345e4a?_0x2e8a41(function(){_0x345e4a=![];}):(!_0x5418e3&&(_0x5a2761=_0x3e62e5[_0x5dd3c4('0x135a')][_0x5dd3c4('0x23f5')]),_0x36f1e8!==_0x5418e3&&(_0x3e62e5[_0x5dd3c4('0x135a')][_0x5dd3c4('0x23f5')]=0x1),!_0x36f1e8&&(_0x3e62e5[_0x5dd3c4('0x135a')][_0x5dd3c4('0x23f5')]=_0x5a2761),_0x3e62e5[_0x5dd3c4('0xe3f')]());});function _0x5349db(_0x5c0962){const _0x4454ee=_0x178a6f;return _0x283545()[_0x4454ee('0x634')](_0x5c0962);}function _0x5832ea(){const _0x425f3b=_0x178a6f;_0x283545()[_0x425f3b('0x1b')](_0x3e62e5[_0x425f3b('0x188')],function(_0x35debf,_0x529d91){const _0x1ddefb=_0x425f3b;_0x3e62e5[_0x1ddefb('0x14c8')][_0x529d91]&&(_0x3e62e5[_0x1ddefb('0x188')][_0x529d91][_0x1ddefb('0x1eb6')]=_0x3e62e5[_0x1ddefb('0x14c8')][_0x529d91][_0x1ddefb('0x1eb6')]||0x0);});}function _0x1414b8(_0x21d978){const _0x3da68f=_0x178a6f;_0x3e62e5[_0x3da68f('0x188')][_0x21d978['id']]&&(_0x3e62e5[_0x3da68f('0x14c8')][_0x21d978['id']]&&(_0x283545()[_0x3da68f('0x2503')](_0x3e62e5[_0x3da68f('0x14c8')][_0x21d978['id']],_0x283545()['pick'](_0x21d978,_0x3728fc)),_0x283545()[_0x3da68f('0x2503')](_0x3e62e5['smsQueues'][_0x21d978['id']],_0x283545()[_0x3da68f('0x41b')](_0x21d978,_0x3728fc))));}function _0x4eb77e(_0x579fe4){const _0x2fea43=_0x178a6f;!_0x283545()[_0x2fea43('0x1015')](_0x579fe4)&&(_0x3e62e5['rpcSmsQueues'][_0x579fe4['id']]=_0x283545()[_0x2fea43('0x41b')](_0x579fe4,_0x3728fc));}function _0x121d95(_0x4c6d1f){const _0xd9a48e=_0x178a6f;!_0x283545()[_0xd9a48e('0x1015')](_0x4c6d1f)&&(_0x3e62e5['rpcSmsQueues'][_0x4c6d1f['id']]&&_0x283545()[_0xd9a48e('0x2503')](_0x3e62e5['rpcSmsQueues'][_0x4c6d1f['id']],_0x283545()[_0xd9a48e('0x41b')](_0x4c6d1f,_0x3728fc)),_0x3e62e5['smsQueues'][_0x4c6d1f['id']]&&_0x283545()[_0xd9a48e('0x2503')](_0x3e62e5[_0xd9a48e('0x188')][_0x4c6d1f['id']],_0x283545()[_0xd9a48e('0x41b')](_0x4c6d1f,_0x3728fc)));}function _0x497abd(_0x215123){const _0x127b46=_0x178a6f;!_0x283545()['isNil'](_0x215123)&&(delete _0x3e62e5['rpcSmsQueues'][_0x215123['id']],delete _0x3e62e5[_0x127b46('0x188')][_0x215123['id']]);}function _0x3b4a64(_0x3ad07c){const _0x34893f=_0x178a6f;_0x283545()['toInteger'](_0x3ad07c[_0x34893f('0x3bb')])===_0x30a2e7['getCurrentUser']()['id']&&_0x3e62e5[_0x34893f('0xe3f')]();}function _0x4cc552(_0x2af49b){const _0x5b6727=_0x178a6f;_0x283545()[_0x5b6727('0x32c')](_0x2af49b[_0x5b6727('0x3bb')])===_0x30a2e7[_0x5b6727('0x24cc')]()['id']&&_0x3e62e5[_0x5b6727('0xe3f')]();}function _0xe6c47b(_0x1fa563){const _0x53f2a4=_0x178a6f;_0x3e62e5['smsQueues'][_0x1fa563[_0x53f2a4('0x1c2b')]]&&(_0x3e62e5['rpcSmsQueuesWaitingInteractions'][_0x1fa563['id']]=_0x1fa563,_0x47b97d());}function _0x6f22d3(_0x2246d5){const _0x5924b8=_0x178a6f;delete _0x3e62e5[_0x5924b8('0xfb4')][_0x2246d5['id']],_0x84e301&&_0x3e62e5['deleteSmsQueuesWaitingInteractions'][_0x5924b8('0x13e3')](_0x2246d5['id']),_0x47b97d();}function _0x588d84(_0x5b4eec){const _0xbd7a81=_0x178a6f;switch(_0x5b4eec){case _0xbd7a81('0x231'):return'green-A700-bg';case _0xbd7a81('0x2795'):return'teal-bg';case _0xbd7a81('0x529'):return _0xbd7a81('0x2546');case _0xbd7a81('0x195d'):return'lime-A700-bg';case _0xbd7a81('0x18aa'):return'amber-A200-bg';case'fax':return _0xbd7a81('0xc45');default:return _0xbd7a81('0x231c');}}_0x340d2a[_0x178a6f('0x651')](_0x178a6f('0x26ac'),function(){const _0x5ea85a=_0x178a6f;_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x731')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x189c')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x2259')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x11a4')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x46e')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x1f3a')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x4ab')),_0x370124[_0x5ea85a('0x277f')](_0x5ea85a('0x194e'));});}const _0x351e39=_0x292357;_0x52a020[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),'Auth','socket'];function _0x52a020(_0x41e638,_0x293cdb,_0x2a32a0,_0x4f19be,_0x55b111,_0x12d88b,_0x116ddf,_0x5565b5,_0x5346be){const _0x2856e9=_0x34e79e,_0xc18696=this,_0x43c940=[_0x2856e9('0x1d7'),_0x2856e9('0x1eb6'),_0x2856e9('0x1054'),_0x2856e9('0x10b2')];_0xc18696[_0x2856e9('0x135')]={},_0xc18696['voiceQueuesTotal']=0x0,_0xc18696[_0x2856e9('0x5b3')]={},_0xc18696['getVoiceQueues']={},_0xc18696['rpcVoiceQueuesChannels']={},_0xc18696[_0x2856e9('0x1f16')]={},_0xc18696[_0x2856e9('0x16f9')]=[],_0xc18696['load']=!![],_0xc18696['query']={'id':_0x5565b5[_0x2856e9('0x24cc')]()['id'],'fields':_0x2856e9('0x1348'),'channel':_0x2856e9('0x1f60'),'type':_0x2856e9('0x2e4'),'limit':0xa,'page':0x1},_0xc18696['queryChannels']={'limit':0xa,'page':0x1},_0xc18696[_0x2856e9('0x173b')]=_0x4ef8c1,_0xc18696['getVoiceQueues']=_0x5a9701,_0xc18696[_0x2856e9('0xcb9')]=_0x38413c,_0xc18696[_0x2856e9('0x181')]=_0x3b572,_0xc18696['onSaveChannel']=_0x99829a,_0xc18696[_0x2856e9('0x1c1a')]=_0x472b4e,_0xc18696[_0x2856e9('0x1c2a')]=_0x317e9c,_0xc18696['onUpdateVoiceQueue']=_0x3a12dc,_0xc18696['onRemoveVoiceQueue']=_0x3bd598,_0x5346be[_0x2856e9('0x3e')](_0x2856e9('0x2467'),_0xc18696[_0x2856e9('0x181')]),_0x5346be[_0x2856e9('0x3e')](_0x2856e9('0x21fe'),_0xc18696[_0x2856e9('0x629')]),_0x5346be['onWithoutApply']('userVoiceQueue:save',_0xc18696[_0x2856e9('0x1c1a')]),_0x5346be['onWithoutApply']('userVoiceQueue:remove',_0xc18696[_0x2856e9('0x1c1a')]),_0x5346be['onWithoutApply'](_0x2856e9('0x4a2'),_0xc18696[_0x2856e9('0x1c2a')]),_0x5346be[_0x2856e9('0x3e')](_0x2856e9('0xad4'),_0xc18696['onRemoveVoiceQueue']),_0x5346be[_0x2856e9('0x3e')](_0x2856e9('0x91'),_0xc18696[_0x2856e9('0x648')]),_0x116ddf[_0x2856e9('0x1e6a')][_0x2856e9('0x138a')](_0xc18696[_0x2856e9('0x135a')])[_0x2856e9('0x1714')]['then'](function(_0x1ccd2a){const _0x5cc326=_0x2856e9;return _0xc18696[_0x5cc326('0x1df7')]=_0x1ccd2a,_0x116ddf[_0x5cc326('0x1bfc')][_0x5cc326('0xbd4')]()[_0x5cc326('0x1714')];})[_0x2856e9('0x2788')](function(_0x397be0){const _0x5e4a7f=_0x2856e9,_0x1b95e4=_0x397be0['rows'],_0x1a34dd=_0x283545()['keyBy'](_0x1b95e4,'id');for(let _0x52d2e4=0x0;_0x52d2e4<_0xc18696[_0x5e4a7f('0x1df7')][_0x5e4a7f('0x338')];_0x52d2e4++){const _0x2c5baa=_0xc18696[_0x5e4a7f('0x1df7')][_0x5e4a7f('0x25df')][_0x52d2e4];_0xc18696[_0x5e4a7f('0x5b3')][_0x2c5baa['id']]=_0x1a34dd[_0x2c5baa['id']];}return _0x116ddf[_0x5e4a7f('0x1bfc')][_0x5e4a7f('0x1bc3')]()[_0x5e4a7f('0x1714')];})[_0x2856e9('0x2788')](function(_0x37ebda){const _0x1b048e=_0x2856e9;_0xc18696['rpcVoiceQueuesChannels']=_0x37ebda?_0x283545()[_0x1b048e('0x13cf')](_0x37ebda[_0x1b048e('0x25df')]?_0x283545()[_0x1b048e('0x916')](_0x37ebda['rows'],function(_0x20f1a8){const _0x3fe766=_0x1b048e;if(_0x20f1a8[_0x3fe766('0x1d7')]==='inbound'&&!_0x20f1a8[_0x3fe766('0x46')]&&_0x283545()[_0x3fe766('0x20e8')](_0xc18696['myQueues']['rows'],{'name':_0x20f1a8[_0x3fe766('0x1ab4')]}))return!![];return![];}):[],'uniqueid'):{};})[_0x2856e9('0x1cb5')](function(_0x36f643){const _0x1deea2=_0x2856e9;console[_0x1deea2('0x5e8')](_0x36f643);})[_0x2856e9('0x1ed8')](function(){const _0x110701=_0x2856e9;_0x283545()[_0x110701('0x2503')](_0xc18696['rpcVoiceQueuesChannels'],_0xc18696['addVoiceQueuesChannels']);for(let _0x57d413=0x0;_0x57d413<_0xc18696['deleteVoiceQueuesChannels'][_0x110701('0x2566')];_0x57d413+=0x1){delete _0xc18696['rpcVoiceQueuesChannels'][_0xc18696[_0x110701('0x16f9')][_0x57d413]];}_0xc18696[_0x110701('0x374')]=![],_0xc18696['addVoiceQueuesChannels']={},_0xc18696[_0x110701('0x16f9')]=[],_0xc18696[_0x110701('0xbd4')]();});function _0x4ef8c1(_0x53faeb){const _0x33bc7b=_0x2856e9;_0xc18696[_0x33bc7b('0x151e')]=_0x53faeb['count']?_0x53faeb['count']:0x0,_0xc18696[_0x33bc7b('0x135')]=_0x53faeb?_0x283545()[_0x33bc7b('0x13cf')](_0x53faeb[_0x33bc7b('0x25df')]?_0x53faeb[_0x33bc7b('0x25df')]:[],'id'):{},_0x18145b();}function _0x5a9701(){const _0x1648ef=_0x2856e9;_0xc18696[_0x1648ef('0x135a')][_0x1648ef('0x19e')]=(_0xc18696[_0x1648ef('0x135a')]['page']-0x1)*_0xc18696[_0x1648ef('0x135a')][_0x1648ef('0x68e')],_0xc18696[_0x1648ef('0x1808')]=_0x116ddf[_0x1648ef('0x1e6a')]['getQueues'](_0xc18696[_0x1648ef('0x135a')],_0x4ef8c1)['$promise'];}let _0x256006=!![],_0x20d988=0x1;_0x41e638[_0x2856e9('0x1662')](_0x2856e9('0x2571'),function(_0x3f5db1,_0x30c4fd){const _0x340ea0=_0x2856e9;_0x256006?_0x293cdb(function(){_0x256006=![];}):(!_0x30c4fd&&(_0x20d988=_0xc18696[_0x340ea0('0x135a')][_0x340ea0('0x23f5')]),_0x3f5db1!==_0x30c4fd&&(_0xc18696[_0x340ea0('0x135a')][_0x340ea0('0x23f5')]=0x1),!_0x3f5db1&&(_0xc18696[_0x340ea0('0x135a')][_0x340ea0('0x23f5')]=_0x20d988),_0xc18696['getVoiceQueues']());});function _0x38413c(_0x2cfa80){const _0x520116=_0x2856e9;return _0x283545()[_0x520116('0x634')](_0x2cfa80);}function _0x18145b(){const _0x3af726=_0x2856e9;_0x283545()[_0x3af726('0x1b')](_0xc18696['voiceQueues'],function(_0x47ceea,_0x200523){const _0x236034=_0x3af726;_0xc18696[_0x236034('0x5b3')][_0x200523]&&(_0xc18696['voiceQueues'][_0x200523][_0x236034('0x1eb6')]=_0xc18696[_0x236034('0x5b3')][_0x200523][_0x236034('0x1eb6')]||0x0);});}function _0x3b572(_0x2af46b){const _0x12d9f8=_0x2856e9;_0xc18696[_0x12d9f8('0x135')][_0x2af46b['id']]&&(_0xc18696[_0x12d9f8('0x5b3')][_0x2af46b['id']]&&(_0xc18696['rpcVoiceQueues'][_0x2af46b['id']]=_0x2af46b,_0x283545()['merge'](_0xc18696[_0x12d9f8('0x135')][_0x2af46b['id']],_0x283545()[_0x12d9f8('0x41b')](_0x2af46b,_0x43c940))));}function _0x99829a(_0x16185d){const _0x2a862e=_0x2856e9;_0x16185d[_0x2a862e('0x1d7')]===_0x2a862e('0x2e4')&&(_0x16185d[_0x2a862e('0x46')]?(delete _0xc18696[_0x2a862e('0x72')][_0x16185d[_0x2a862e('0x1be7')]],_0xc18696['load']&&_0xc18696[_0x2a862e('0x16f9')][_0x2a862e('0x13e3')](_0x16185d[_0x2a862e('0x1be7')])):(_0xc18696[_0x2a862e('0x72')][_0x16185d['uniqueid']]=_0x16185d,_0xc18696[_0x2a862e('0x374')]&&(_0xc18696[_0x2a862e('0x1f16')][_0x16185d[_0x2a862e('0x1be7')]]=_0x16185d)));}function _0x317e9c(_0x31684b){const _0x1afeaa=_0x2856e9;!_0x283545()[_0x1afeaa('0x1015')](_0x31684b)&&(_0xc18696[_0x1afeaa('0x5b3')][_0x31684b['id']]=_0x283545()[_0x1afeaa('0x41b')](_0x31684b,_0x43c940));}function _0x3a12dc(_0x352960){const _0x199f95=_0x2856e9;!_0x283545()[_0x199f95('0x1015')](_0x352960)&&(_0xc18696[_0x199f95('0x5b3')][_0x352960['id']]&&_0x283545()[_0x199f95('0x2503')](_0xc18696[_0x199f95('0x5b3')][_0x352960['id']],_0x283545()['pick'](_0x352960,_0x43c940)),_0xc18696[_0x199f95('0x135')][_0x352960['id']]&&_0x283545()[_0x199f95('0x2503')](_0xc18696[_0x199f95('0x135')][_0x352960['id']],_0x283545()[_0x199f95('0x41b')](_0x352960,_0x43c940)));}function _0x3bd598(_0x4e011f){const _0x35059d=_0x2856e9;!_0x283545()[_0x35059d('0x1015')](_0x4e011f)&&(delete _0xc18696[_0x35059d('0x5b3')][_0x4e011f['id']],delete _0xc18696[_0x35059d('0x135')][_0x4e011f['id']]);}function _0x472b4e(_0x4c9d15){const _0x2e5d76=_0x2856e9;_0x283545()[_0x2e5d76('0x32c')](_0x4c9d15[_0x2e5d76('0x3bb')])===_0x5565b5[_0x2e5d76('0x24cc')]()['id']&&_0xc18696['getVoiceQueues']();}_0x41e638['$on'](_0x2856e9('0x26ac'),function(){const _0x518553=_0x2856e9;_0x5346be['removeAllListeners'](_0x518553('0x2467')),_0x5346be[_0x518553('0x277f')](_0x518553('0x21fe')),_0x5346be[_0x518553('0x277f')](_0x518553('0x454')),_0x5346be[_0x518553('0x277f')](_0x518553('0x11e0')),_0x5346be[_0x518553('0x277f')](_0x518553('0x4a2')),_0x5346be[_0x518553('0x277f')]('voiceQueue:update'),_0x5346be[_0x518553('0x277f')](_0x518553('0xad4'));});}const _0x5b5c07=_0x52a020;_0xead7c9['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f')];function _0xead7c9(_0x470b67,_0x2dc3da,_0x13b347,_0xaa976b,_0x4513ee,_0x190a57,_0xbdabff,_0x442393,_0x553587){const _0xe04c55=_0x34e79e,_0x4c861f=this,_0x3ffb1b=['id','name',_0xe04c55('0x18c6'),_0xe04c55('0x1eb6')];let _0x39baf6=!![];_0x4c861f[_0xe04c55('0x1f92')]={},_0x4c861f[_0xe04c55('0xae6')]=0x0,_0x4c861f['rpcWhatsappQueues']={},_0x4c861f['paginatedInteractions']=[],_0x4c861f['deleteWhatsappQueuesWaitingInteractions']=[],_0x4c861f[_0xe04c55('0x1b46')]={},_0x4c861f['query']={'id':_0x442393['getCurrentUser']()['id'],'channel':'whatsapp','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x4c861f[_0xe04c55('0x3be')]={'limit':0xa,'page':0x1},_0x4c861f[_0xe04c55('0x173b')]=_0x399755,_0x4c861f[_0xe04c55('0x21bc')]=_0x25475d,_0x4c861f[_0xe04c55('0xcb9')]=_0x4fd3ee,_0x4c861f['getColorByChannel']=_0x33275d,_0x4c861f[_0xe04c55('0xce9')]=_0x27b481,_0x4c861f[_0xe04c55('0x181')]=_0x2ac8d6,_0x4c861f[_0xe04c55('0x85d')]=_0x24ecc1,_0x4c861f['onUpdateWhatsappQueue']=_0x20e864,_0x4c861f[_0xe04c55('0x1a37')]=_0x42f9a5,_0x4c861f[_0xe04c55('0xb3b')]=_0x8e2fda,_0x4c861f[_0xe04c55('0x20c8')]=_0x5406e0,_0x4c861f[_0xe04c55('0x101f')]=_0x361848,_0x4c861f['onRemoveWhatsappQueueChannel']=_0x5a0c37,_0x553587['onWithoutApply'](_0xe04c55('0xc94'),_0x4c861f[_0xe04c55('0x181')]),_0x553587[_0xe04c55('0x3e')](_0xe04c55('0x1253'),_0x4c861f[_0xe04c55('0x85d')]),_0x553587[_0xe04c55('0x3e')]('whatsappQueue:update',_0x4c861f[_0xe04c55('0xaf8')]),_0x553587[_0xe04c55('0x3e')](_0xe04c55('0x19d6'),_0x4c861f['onRemoveWhatsappQueue']),_0x553587[_0xe04c55('0x3e')](_0xe04c55('0x5cf'),_0x4c861f[_0xe04c55('0xb3b')]),_0x553587[_0xe04c55('0x3e')](_0xe04c55('0xa6b'),_0x4c861f[_0xe04c55('0x20c8')]),_0x553587[_0xe04c55('0x3e')](_0xe04c55('0x1278'),_0x4c861f[_0xe04c55('0x101f')]),_0x553587['onWithoutApply']('whatsapp_queue_waiting_interaction:remove',_0x4c861f[_0xe04c55('0x2489')]),_0xbdabff[_0xe04c55('0x1bfc')][_0xe04c55('0x21bc')]()[_0xe04c55('0x1714')]['then'](function(_0x48afc5){const _0x35ba5e=_0xe04c55;_0x4c861f[_0x35ba5e('0x19f9')]=_0x48afc5?_0x283545()[_0x35ba5e('0x13cf')](_0x48afc5[_0x35ba5e('0x25df')]?_0x48afc5['rows']:[],'id'):{};})[_0xe04c55('0x2788')](function(){const _0x3c86ba=_0xe04c55;return _0xbdabff['user']['getQueues']({'id':_0x442393[_0x3c86ba('0x24cc')]()['id'],'channel':_0x3c86ba('0x195d')})['$promise'];})['then'](function(_0x471ac8){const _0x3a3213=_0xe04c55;return _0x4c861f[_0x3a3213('0x1df7')]=_0x471ac8[_0x3a3213('0x25df')],_0xbdabff[_0x3a3213('0x1bfc')][_0x3a3213('0x11bc')]()[_0x3a3213('0x1714')];})['then'](function(_0x228823){const _0x4cdcc4=_0xe04c55,_0x45154f=_0x283545()[_0x4cdcc4('0x916')](_0x228823['rows'],function(_0x4f2321){const _0xc63565=_0x4cdcc4;return _0x283545()['includes'](_0x4c861f[_0xc63565('0x1df7')],{'id':_0x4f2321[_0xc63565('0x1c2b')]});});_0x228823[_0x4cdcc4('0x25df')]=_0x45154f,_0x228823[_0x4cdcc4('0x338')]=_0x45154f[_0x4cdcc4('0x2566')],_0x283545()[_0x4cdcc4('0x2503')](_0x4c861f['rpcWhatsappQueuesWaitingInteractions'],_0x228823?_0x283545()[_0x4cdcc4('0x13cf')](_0x228823[_0x4cdcc4('0x25df')]?_0x228823[_0x4cdcc4('0x25df')]:[],'id'):{});})[_0xe04c55('0x1cb5')](function(_0x7f62be){const _0x17c0e7=_0xe04c55;console[_0x17c0e7('0x5e8')](_0x7f62be);})[_0xe04c55('0x1ed8')](function(){const _0x299855=_0xe04c55;for(let _0x4cb64f=0x0;_0x4cb64f<_0x4c861f[_0x299855('0x93d')][_0x299855('0x2566')];_0x4cb64f+=0x1){delete _0x4c861f[_0x299855('0x1b46')][_0x4c861f[_0x299855('0x93d')][_0x4cb64f]];}_0x39baf6=![],_0x4c861f[_0x299855('0x93d')]=[],_0x25475d(),_0x27b481();});function _0x27b481(){const _0x5c8e23=_0xe04c55,_0x3010f8=(_0x4c861f[_0x5c8e23('0x3be')][_0x5c8e23('0x23f5')]-0x1)*_0x4c861f['queryChannels'][_0x5c8e23('0x68e')];_0x4c861f['paginatedInteractions']=_0x283545()[_0x5c8e23('0xf87')](_0x4c861f[_0x5c8e23('0x1b46')],[_0x5c8e23('0x12ba')],[_0x5c8e23('0x25b5')]),_0x4c861f[_0x5c8e23('0x1de4')]=_0x283545()[_0x5c8e23('0x280')](_0x4c861f[_0x5c8e23('0x115')],_0x3010f8)['slice'](0x0,_0x4c861f[_0x5c8e23('0x3be')][_0x5c8e23('0x68e')]);}function _0x399755(_0x22f66d){const _0x1ff766=_0xe04c55;_0x4c861f['whatsappQueuesTotal']=_0x22f66d[_0x1ff766('0x338')]?_0x22f66d[_0x1ff766('0x338')]:0x0,_0x4c861f['whatsappQueues']=_0x22f66d?_0x283545()[_0x1ff766('0x13cf')](_0x22f66d[_0x1ff766('0x25df')]?_0x22f66d['rows']:[],'id'):{},_0x35b5de();}function _0x25475d(){const _0x5bf3b9=_0xe04c55;_0x4c861f['query']['offset']=(_0x4c861f['query'][_0x5bf3b9('0x23f5')]-0x1)*_0x4c861f[_0x5bf3b9('0x135a')][_0x5bf3b9('0x68e')],_0x4c861f['promise']=_0xbdabff[_0x5bf3b9('0x1e6a')][_0x5bf3b9('0x138a')](_0x4c861f['query'],_0x399755)[_0x5bf3b9('0x1714')];}let _0x2c5346=!![],_0x5240e4=0x1;_0x470b67[_0xe04c55('0x1662')]('vm_dc.query.filter',function(_0x3656ac,_0x5ddd22){const _0x5ce6cd=_0xe04c55;_0x2c5346?_0x2dc3da(function(){_0x2c5346=![];}):(!_0x5ddd22&&(_0x5240e4=_0x4c861f[_0x5ce6cd('0x135a')][_0x5ce6cd('0x23f5')]),_0x3656ac!==_0x5ddd22&&(_0x4c861f[_0x5ce6cd('0x135a')][_0x5ce6cd('0x23f5')]=0x1),!_0x3656ac&&(_0x4c861f[_0x5ce6cd('0x135a')][_0x5ce6cd('0x23f5')]=_0x5240e4),_0x4c861f[_0x5ce6cd('0x21bc')]());});function _0x4fd3ee(_0xfff45d){const _0x54bda9=_0xe04c55;return _0x283545()[_0x54bda9('0x634')](_0xfff45d);}function _0x35b5de(){const _0x56dd29=_0xe04c55;_0x283545()[_0x56dd29('0x1b')](_0x4c861f[_0x56dd29('0x1f92')],function(_0x55af12,_0x4790b0){const _0x1cb883=_0x56dd29;_0x4c861f[_0x1cb883('0x19f9')][_0x4790b0]&&(_0x4c861f[_0x1cb883('0x1f92')][_0x4790b0]['waiting']=_0x4c861f[_0x1cb883('0x19f9')][_0x4790b0][_0x1cb883('0x1eb6')]||0x0);});}function _0x2ac8d6(_0x39a590){const _0x3e7e34=_0xe04c55;_0x4c861f[_0x3e7e34('0x1f92')][_0x39a590['id']]&&(_0x4c861f[_0x3e7e34('0x19f9')][_0x39a590['id']]&&(_0x283545()[_0x3e7e34('0x2503')](_0x4c861f['rpcWhatsappQueues'][_0x39a590['id']],_0x283545()[_0x3e7e34('0x41b')](_0x39a590,_0x3ffb1b)),_0x283545()['merge'](_0x4c861f[_0x3e7e34('0x1f92')][_0x39a590['id']],_0x283545()['pick'](_0x39a590,_0x3ffb1b))));}function _0x24ecc1(_0x3ef660){const _0x31ee20=_0xe04c55;!_0x283545()[_0x31ee20('0x1015')](_0x3ef660)&&(_0x4c861f[_0x31ee20('0x19f9')][_0x3ef660['id']]=_0x283545()['pick'](_0x3ef660,_0x3ffb1b));}function _0x20e864(_0x3c6831){const _0x46a392=_0xe04c55;!_0x283545()[_0x46a392('0x1015')](_0x3c6831)&&(_0x4c861f[_0x46a392('0x19f9')][_0x3c6831['id']]&&_0x283545()[_0x46a392('0x2503')](_0x4c861f[_0x46a392('0x19f9')][_0x3c6831['id']],_0x283545()[_0x46a392('0x41b')](_0x3c6831,_0x3ffb1b)),_0x4c861f[_0x46a392('0x1f92')][_0x3c6831['id']]&&_0x283545()[_0x46a392('0x2503')](_0x4c861f[_0x46a392('0x1f92')][_0x3c6831['id']],_0x283545()[_0x46a392('0x41b')](_0x3c6831,_0x3ffb1b)));}function _0x42f9a5(_0x15bec7){const _0x3667cc=_0xe04c55;!_0x283545()[_0x3667cc('0x1015')](_0x15bec7)&&(delete _0x4c861f[_0x3667cc('0x19f9')][_0x15bec7['id']],delete _0x4c861f['whatsappQueues'][_0x15bec7['id']]);}function _0x8e2fda(_0x1b793b){const _0x8294c2=_0xe04c55;_0x283545()[_0x8294c2('0x32c')](_0x1b793b[_0x8294c2('0x3bb')])===_0x442393[_0x8294c2('0x24cc')]()['id']&&_0x4c861f[_0x8294c2('0x21bc')]();}function _0x5406e0(_0x39faf6){const _0x435553=_0xe04c55;_0x283545()[_0x435553('0x32c')](_0x39faf6[_0x435553('0x3bb')])===_0x442393[_0x435553('0x24cc')]()['id']&&_0x4c861f[_0x435553('0x21bc')]();}function _0x361848(_0x4b7f42){const _0x2504c2=_0xe04c55;_0x4c861f[_0x2504c2('0x1f92')][_0x4b7f42[_0x2504c2('0x1c2b')]]&&(_0x4c861f['rpcWhatsappQueuesWaitingInteractions'][_0x4b7f42['id']]=_0x4b7f42,_0x27b481());}function _0x5a0c37(_0x524efb){const _0x47fd65=_0xe04c55;delete _0x4c861f[_0x47fd65('0x1b46')][_0x524efb['id']],_0x39baf6&&_0x4c861f['deleteWhatsappQueuesWaitingInteractions']['push'](_0x524efb['id']),_0x27b481();}function _0x33275d(_0x3ed495){const _0x1c2927=_0xe04c55;switch(_0x3ed495){case _0x1c2927('0x231'):return _0x1c2927('0x1437');case _0x1c2927('0x2795'):return _0x1c2927('0x5e');case _0x1c2927('0x529'):return _0x1c2927('0x2546');case _0x1c2927('0x195d'):return'lime-A700-bg';case _0x1c2927('0x18aa'):return _0x1c2927('0x2532');case'fax':return _0x1c2927('0xc45');default:return _0x1c2927('0x231c');}}_0x470b67[_0xe04c55('0x651')]('$destroy',function(){const _0x146114=_0xe04c55;_0x553587['removeAllListeners'](_0x146114('0xc94')),_0x553587[_0x146114('0x277f')]('whatsappQueue:save'),_0x553587[_0x146114('0x277f')](_0x146114('0x122d')),_0x553587['removeAllListeners'](_0x146114('0x19d6')),_0x553587[_0x146114('0x277f')](_0x146114('0x5cf')),_0x553587[_0x146114('0x277f')](_0x146114('0xa6b')),_0x553587[_0x146114('0x277f')](_0x146114('0x1278')),_0x553587[_0x146114('0x277f')](_0x146114('0x570'));});}const _0x3821bf=_0xead7c9;_0x249f40[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),'$translate',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1902')];function _0x249f40(_0x3ac1d3,_0x37084f,_0x4f862c,_0x3ef7be,_0x320269,_0x3ca950,_0x356d8c,_0x3f53f2,_0x4a1bef,_0x35d192,_0x4a3965){const _0x262b9e=_0x34e79e,_0xa2307e=this;_0xa2307e[_0x262b9e('0x1e6a')]=_0x3f53f2['getCurrentUser'](),_0xa2307e[_0x262b9e('0x130d')]={},_0xa2307e[_0x262b9e('0x1af0')]={},_0xa2307e[_0x262b9e('0xe45')]={'count':0x0,'rows':[]},_0xa2307e[_0x262b9e('0x1ef6')]={'count':0x0,'rows':[]},_0xa2307e[_0x262b9e('0x135a')]={'includeAll':!![],'sort':_0x262b9e('0x1cee'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0xa2307e[_0x262b9e('0x1e13')]={'fields':[{'name':'Id','column':'id','type':_0x262b9e('0x272c')},{'name':_0x262b9e('0x1c64'),'column':_0x262b9e('0x1c64'),'type':_0x262b9e('0x137e'),'options':{'searchFields':[_0x262b9e('0x26da'),_0x262b9e('0x26b9'),_0x262b9e('0x2436')],'route':{'model':'cmContact','action':_0x262b9e('0x1335'),'params':{'fields':_0x262b9e('0x1373'),'Contact':_0x262b9e('0x20bf'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x262b9e('0x149c')]}},{'name':_0x262b9e('0x1e8f'),'column':_0x262b9e('0x945'),'type':_0x262b9e('0x16db'),'options':{'excludedOperators':['$eq','$ne']}},{'name':_0x262b9e('0x21d8'),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x262b9e('0xd6c')},{'id':0x1,'translate':_0x262b9e('0x977')}],'options':{'excludedOperators':[_0x262b9e('0x149c')]}},{'name':_0x262b9e('0x262d'),'column':_0x262b9e('0x1832'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x262b9e('0x1e6a'),'action':_0x262b9e('0x1335'),'params':{'role':'agent','fields':_0x262b9e('0x10fe'),'nolimit':!![]}},'searchFields':[_0x262b9e('0x2831'),_0x262b9e('0x1a8d')],'extraOperators':[_0x262b9e('0x1a77')],'excludedOperators':[_0x262b9e('0x149c')]}},{'name':_0x262b9e('0x140b'),'column':_0x262b9e('0xfc2'),'type':_0x262b9e('0x9a4'),'options':{'route':{'model':_0x262b9e('0x1e6a'),'action':_0x262b9e('0x1dbb'),'params':{'id':_0xa2307e[_0x262b9e('0x1e6a')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x262b9e('0x251d'),'type':_0x262b9e('0x9a4'),'options':{'route':{'model':_0x262b9e('0x1764'),'action':_0x262b9e('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0x262b9e('0x38b')]}},{'name':_0x262b9e('0x9ac'),'column':_0x262b9e('0x172'),'type':'date','options':{'excludedOperators':[_0x262b9e('0x149c')]}},{'name':'Read','column':_0x262b9e('0xecd'),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x262b9e('0xe54')}],'options':{'excludedOperators':['$ne']}}]},_0xa2307e[_0x262b9e('0x4ef')]=_0x262b9e('0xb4a'),_0xa2307e[_0x262b9e('0x122e')]=_0x4c78d8,_0xa2307e[_0x262b9e('0x173b')]=_0x348e65,_0xa2307e[_0x262b9e('0x13f')]=_0x26d3ec,_0xa2307e[_0x262b9e('0x1890')]=_0x20771e,_0xa2307e[_0x262b9e('0x2651')]=_0x3fa26b,_0xa2307e[_0x262b9e('0xcc4')]=_0x22a00d,_0xa2307e[_0x262b9e('0x190e')]=_0x6b40e6,_0xa2307e[_0x262b9e('0x704')]=_0x4caf95,_0xa2307e[_0x262b9e('0x2256')]=_0x4bbc32,_0xa2307e[_0x262b9e('0x1974')]=_0x2e78a2,_0xa2307e[_0x262b9e('0x956')]=_0x3480a8,_0xa2307e[_0x262b9e('0x5ca')]=_0x2da534,_0xa2307e[_0x262b9e('0x27c6')]=_0x2b32a5;function _0x4c78d8(_0x5c2ad1,_0x3ea8c3){const _0x4a095e=_0x262b9e;return _0xa2307e['license']=_0x5c2ad1,_0xa2307e[_0x4a095e('0x1af0')]=_0x3ea8c3,_0x356d8c['user'][_0x4a095e('0x1335')+_0x283545()[_0x4a095e('0x2265')]('faxAccounts')]({'id':_0xa2307e['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0x343154){const _0x11b1b2=_0x4a095e;return _0xa2307e[_0x11b1b2('0xe9b')]=_0x343154||{'count':0x0,'rows':[]},_0x356d8c[_0x11b1b2('0x1764')][_0x11b1b2('0x1335')]()[_0x11b1b2('0x1714')];})[_0x4a095e('0x2788')](function(_0x454441){const _0x1b155f=_0x4a095e;_0xa2307e[_0x1b155f('0xe45')]=_0x454441||{'count':0x0,'rows':[]};})[_0x4a095e('0x2788')](function(){const _0x2fcb4b=_0x4a095e;_0xa2307e[_0x2fcb4b('0xa28')]=_0x46887a();})[_0x4a095e('0x1cb5')](function(_0x3ed5eb){console['error'](_0x3ed5eb);})[_0x4a095e('0x1ed8')](function(){const _0x24876e=_0x4a095e;let _0xaca058=_0x320269[_0x24876e('0x155e')][_0x24876e('0xced')](_0x24876e('0x2365')+_0xa2307e[_0x24876e('0x1e6a')]['id']);if(_0xaca058)try{_0xaca058=JSON[_0x24876e('0xe0b')](_0xaca058);if(_0xaca058[_0x24876e('0x135a')]){_0xa2307e[_0x24876e('0x135a')]=_0x283545()[_0x24876e('0x2503')](_0xa2307e[_0x24876e('0x135a')],_0xaca058[_0x24876e('0x135a')]);if(_0x283545()['isEmpty'](_0xa2307e[_0x24876e('0xe9b')][_0x24876e('0x25df')]))_0xa2307e['query']['FaxAccountId']=[];else _0x283545()[_0x24876e('0x213d')](_0xa2307e[_0x24876e('0x135a')][_0x24876e('0xfc2')])&&(_0xa2307e[_0x24876e('0x135a')][_0x24876e('0xfc2')]=_0x283545()(_0xa2307e['faxAccounts']['rows'])[_0x24876e('0x155d')]('id')['take']()[_0x24876e('0x49')]());_0xa2307e[_0x24876e('0x135a')][_0x24876e('0x2119')]&&_0xa2307e[_0x24876e('0x135a')][_0x24876e('0x2119')][_0x24876e('0x821')](_0x24876e('0x136d'))>=0x0&&(_0xa2307e[_0x24876e('0x135a')]=_0x283545()[_0x24876e('0x5a9')](_0xa2307e[_0x24876e('0x135a')],'sort')),_0xa2307e[_0x24876e('0x135a')][_0x24876e('0xc9d')]=!![],_0xa2307e['isSearchBarVisible']=_0xa2307e[_0x24876e('0x135a')]['filter']?!![]:![];}}catch(_0x4ce476){console[_0x24876e('0x5e8')](_0x4ce476);}else{const _0x18a8ec={'$gte':_0x59f37a()()[_0x24876e('0x13e4')](_0x24876e('0x2dc'))[_0x24876e('0x2827')](0x0,!![])[_0x24876e('0x22b4')](),'$lte':_0x59f37a()()['endOf'](_0x24876e('0x2dc'))['utcOffset'](0x0,!![])[_0x24876e('0x22b4')]()},_0x8cd7ad={'FaxAccountId':_0x283545()[_0x24876e('0x155d')](_0xa2307e['faxAccounts'][_0x24876e('0x25df')],'id'),'createdAt':_0x18a8ec};_0xa2307e[_0x24876e('0x135a')]=_0x283545()[_0x24876e('0x2503')](_0xa2307e['query'],_0x8cd7ad);}_0x4a1bef['on'](_0x24876e('0x1b80'),_0x1cfe6c),_0x4a1bef['on'](_0x24876e('0x2230'),_0x1cfe6c),_0x4a1bef['on']('faxInteractionTags:save',_0x49b885),_0x4a1bef['on'](_0x24876e('0x75b'),_0x510041),_0x4a1bef['on']('faxMessage:update',_0x510041),_0x4a1bef['on'](_0x24876e('0x277e'),_0xb77b8e),_0x4a1bef['on'](_0x24876e('0x188a'),_0x2d7647),_0x26d3ec(_0xa2307e[_0x24876e('0x135a')]['page']);});}function _0x46887a(){const _0x28c6ae=_0x262b9e;return[{'name':_0x28c6ae('0x9ac'),'key':_0x28c6ae('0x172'),'type':_0x28c6ae('0x1012'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x28c6ae('0x1f77'),'key':_0x28c6ae('0x18e8'),'type':_0x28c6ae('0x983'),'label':_0x28c6ae('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x28c6ae('0xe54')},{'value':0x1,'translate':_0x28c6ae('0x204a')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x28c6ae('0x21d8'),'key':_0x28c6ae('0x215d'),'type':_0x28c6ae('0x983'),'label':_0x28c6ae('0xd0'),'customOptions':[{'value':0x0,'translate':_0x28c6ae('0xd6c')},{'value':0x1,'translate':_0x28c6ae('0x977')},{'value':null,'translate':_0x28c6ae('0xc79')}]},{'name':_0x28c6ae('0x140b'),'key':_0x28c6ae('0xfc2'),'type':'multiselect','label':_0x28c6ae('0x18c5'),'options':_0xa2307e[_0x28c6ae('0xe9b')]['rows'],'clearAll':![]},{'name':_0x28c6ae('0x262d'),'key':'UserId','type':_0x28c6ae('0x983'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0xa2307e[_0x28c6ae('0x1e6a')]['id'],'translate':_0x28c6ae('0x3a8')},{'value':_0x28c6ae('0x954'),'translate':_0x28c6ae('0xce3')},{'value':undefined,'translate':_0x28c6ae('0xc79')}]},{'name':_0x28c6ae('0x251d'),'key':_0x28c6ae('0x1764'),'type':'multiselect','label':_0x28c6ae('0xa54'),'options':_0xa2307e[_0x28c6ae('0xe45')][_0x28c6ae('0x25df')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x348e65(_0x503d95){const _0x251750=_0x262b9e;_0xa2307e[_0x251750('0x2849')]=![],_0xa2307e['faxInteractions']=_0x503d95||{'count':0x0,'rows':[]};for(let _0x11ca11=0x0;_0x11ca11<_0xa2307e[_0x251750('0x1ef6')][_0x251750('0x25df')][_0x251750('0x2566')];_0x11ca11+=0x1){_0x6b40e6(_0xa2307e['faxInteractions']['rows'][_0x11ca11]);}}function _0x26d3ec(_0x4f1701){const _0x2c92e4=_0x262b9e;_0xa2307e[_0x2c92e4('0x2849')]=!![];!_0x4f1701&&(_0xa2307e[_0x2c92e4('0x135a')][_0x2c92e4('0x23f5')]=0x1);_0xa2307e[_0x2c92e4('0x135a')]['offset']=(_0xa2307e[_0x2c92e4('0x135a')][_0x2c92e4('0x23f5')]-0x1)*_0xa2307e['query']['limit'];let _0x53c4b9=_0x320269[_0x2c92e4('0x155e')][_0x2c92e4('0xced')]('motion2.home.fax:'+_0xa2307e['user']['id']);_0x53c4b9=_0x53c4b9?JSON['parse'](_0x53c4b9):{},_0x53c4b9['query']=_0xa2307e[_0x2c92e4('0x135a')],_0x320269[_0x2c92e4('0x155e')]['setItem'](_0x2c92e4('0x2365')+_0xa2307e[_0x2c92e4('0x1e6a')]['id'],JSON['stringify'](_0x53c4b9)),_0xa2307e[_0x2c92e4('0x1808')]=_0x356d8c[_0x2c92e4('0x26ca')][_0x2c92e4('0x1335')](_0xa2307e[_0x2c92e4('0x135a')],_0x348e65)['$promise'];}function _0x20771e(_0x2c7003,_0x955c20){const _0x1a5f9b=_0x262b9e;_0x3ac1d3[_0x1a5f9b('0x7d0')]['vm'][_0x1a5f9b('0x1442')](_0x1a5f9b('0x10cf'),_0x955c20);}function _0x3fa26b(_0x5140de,_0x571e42,_0x2af823){const _0x2c39bc=_0x262b9e;_0x356d8c[_0x2c39bc('0x26ca')][_0x2c39bc('0x1486')]({'id':_0x571e42['id'],'attachments':_0x2af823})['$promise'][_0x2c39bc('0x2788')](function(_0x2055c3){const _0x345197=_0x2c39bc,_0x3d8459=[_0x2055c3[_0x345197('0x3f1')]],_0x3261c2=_0x345197('0x212a')+_0x571e42['id']+_0x345197('0xfdb'),_0x3f1919=new Blob(_0x3d8459,{'type':_0x2055c3['type']}),_0x4c9882=window[_0x345197('0x11c4')][_0x345197('0x1ae6')]('a');_0x4c9882[_0x345197('0x1c6b')](_0x345197('0x186a'),URL['createObjectURL'](_0x3f1919)),_0x4c9882['setAttribute']('download',_0x3261c2),document[_0x345197('0x945')]['appendChild'](_0x4c9882),_0x4c9882[_0x345197('0x132a')]();})[_0x2c39bc('0x1cb5')](function(_0x47d1ed){const _0x4ff8c0=_0x2c39bc;if(_0x47d1ed[_0x4ff8c0('0x11fc')]&&_0x47d1ed[_0x4ff8c0('0x11fc')][_0x4ff8c0('0x25be')]&&_0x47d1ed['data']['errors'][_0x4ff8c0('0x2566')])for(let _0x21ed45=0x0;_0x21ed45<_0x47d1ed[_0x4ff8c0('0x11fc')][_0x4ff8c0('0x25be')][_0x4ff8c0('0x2566')];_0x21ed45+=0x1){_0x35d192[_0x4ff8c0('0x5e8')]({'title':_0x47d1ed['data'][_0x4ff8c0('0x25be')][_0x21ed45]['type'],'msg':_0x47d1ed[_0x4ff8c0('0x11fc')][_0x4ff8c0('0x25be')][_0x21ed45][_0x4ff8c0('0x15e2')]});}else _0x35d192[_0x4ff8c0('0x5e8')]({'title':_0x47d1ed[_0x4ff8c0('0x1b51')]?_0x4ff8c0('0x15d1')+_0x47d1ed[_0x4ff8c0('0x1b51')]+_0x4ff8c0('0x1b0b')+_0x47d1ed[_0x4ff8c0('0x22ce')]:_0x4ff8c0('0x2651'),'msg':_0x47d1ed[_0x4ff8c0('0x11fc')]?JSON[_0x4ff8c0('0x1be0')](_0x47d1ed[_0x4ff8c0('0x11fc')][_0x4ff8c0('0x15e2')]):_0x47d1ed[_0x4ff8c0('0x17df')]()});});}function _0x22a00d(_0x25e595,_0x197c71){const _0x4a2698=_0x262b9e,_0x9686=_0xa2307e[_0x4a2698('0x1e6a')][_0x4a2698('0x2a1')]||_0xa2307e[_0x4a2698('0x1e6a')][_0x4a2698('0x23a5')]||_0xa2307e[_0x4a2698('0x1e6a')]['mailPause']||_0xa2307e[_0x4a2698('0x1e6a')][_0x4a2698('0x1098')]||_0xa2307e[_0x4a2698('0x1e6a')][_0x4a2698('0x1891')],_0x19cdb1=!_0x197c71[_0x4a2698('0x140b')][_0x4a2698('0x1c86')];_0x4f862c[_0x4a2698('0x2fa')]({'controller':_0x4a2698('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x4a2698('0x16b1')](_0x3ef7be[_0x4a2698('0x945')]),'clickOutsideToClose':_0x19cdb1,'escapeToClose':_0x19cdb1,'onRemoving':function(){const _0x250ebe=_0x4a2698;_0xa2307e['user']&&_0x197c71[_0x250ebe('0x140b')][_0x250ebe('0x1c86')]&&!_0x9686&&_0x356d8c[_0x250ebe('0x1e6a')][_0x250ebe('0x1826')]({'id':_0xa2307e[_0x250ebe('0x1e6a')]['id']})[_0x250ebe('0x1714')][_0x250ebe('0x1cb5')](function(_0x4a6db0){const _0x2991e6=_0x250ebe;console[_0x2991e6('0x5e8')](_0x4a6db0);});},'locals':{'user':_0xa2307e[_0x4a2698('0x1e6a')],'channel':_0x4a2698('0x10cf'),'interaction':_0x197c71}});}function _0x6b40e6(_0x2f60cb){const _0x28f230=_0x262b9e;_0x2f60cb[_0x28f230('0x1c64')]?(_0x2f60cb['contactName']=(_0x2f60cb[_0x28f230('0x1c64')]['firstName']||'')+'\x20'+(_0x2f60cb[_0x28f230('0x1c64')][_0x28f230('0x26b9')]||''),_0x2f60cb[_0x28f230('0x1aba')]=_0x2f60cb['Contact'][_0x28f230('0x10cf')]):_0x2f60cb[_0x28f230('0x497')]=_0x3ca950[_0x28f230('0x1b11')]('DASHBOARDS.UNKNOWN');}function _0x4caf95(_0x1e2336){const _0x46c96a=_0x262b9e;if(_0x1e2336[_0x46c96a('0x3bb')])return _0x1e2336[_0x46c96a('0x3bb')]===_0xa2307e[_0x46c96a('0x1e6a')]['id']?_0x3ca950[_0x46c96a('0x1b11')](_0x46c96a('0x3a8')):_0x1e2336[_0x46c96a('0xe42')][_0x46c96a('0x2831')]+'\x20<'+_0x1e2336[_0x46c96a('0xe42')]['internal']+'>';return _0x3ca950[_0x46c96a('0x1b11')](_0x46c96a('0xce3'));}function _0x4bbc32(_0x2e9092){const _0x4764dd=_0x262b9e;if(_0x2e9092[_0x4764dd('0x140b')])return _0x2e9092['Account'][_0x4764dd('0x234b')];return _0x3ca950[_0x4764dd('0x1b11')](_0x4764dd('0x2185'));}function _0x2e78a2(_0xf802d6,_0x267f8d){const _0x4b0de7=_0x262b9e;_0x4f862c[_0x4b0de7('0x2fa')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x3a358a,'parent':angular[_0x4b0de7('0x16b1')](_0x3ef7be[_0x4b0de7('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0x267f8d,'message':{},'type':_0x4b0de7('0x259d'),'interaction':{}},'fullscreen':!![]})[_0x4b0de7('0x2788')](function(_0x35c9db){const _0x3d2d9d=_0x4b0de7;if(_0x35c9db){if(_0x35c9db[_0x3d2d9d('0x15e2')]&&_0x35c9db[_0x3d2d9d('0x15e2')][_0x3d2d9d('0x326')]){const _0x46092e={'channel':_0x3d2d9d('0x10cf'),'account':_0x267f8d,'message':_0x35c9db[_0x3d2d9d('0x15e2')],'contact':_0x35c9db[_0x3d2d9d('0xc17')]};_0x4a3965[_0x3d2d9d('0x9b8')](_0x46092e);}else{const _0x46923f=_0x35c9db;return _0x356d8c[_0x3d2d9d('0x1fb8')][_0x3d2d9d('0x1fc9')]({'id':_0x267f8d['id']},_0x46923f)[_0x3d2d9d('0x1714')][_0x3d2d9d('0x2788')](function(_0x1c8ab6){const _0x2929c9=_0x3d2d9d;_0x35d192[_0x2929c9('0x173b')]({'title':_0x2929c9('0x1fcd'),'msg':'Message\x20has\x20been\x20sent!'}),_0x3ac1d3[_0x2929c9('0x7d0')]['vm']['addInteractionTab'](_0x2929c9('0x10cf'),_0x1c8ab6);})[_0x3d2d9d('0x1cb5')](function(_0x285520){const _0x279086=_0x3d2d9d;if(_0x285520[_0x279086('0x11fc')]&&_0x285520[_0x279086('0x11fc')][_0x279086('0x25be')]&&_0x285520['data']['errors'][_0x279086('0x2566')])for(let _0x84e5b4=0x0;_0x84e5b4<_0x285520[_0x279086('0x11fc')][_0x279086('0x25be')]['length'];_0x84e5b4++){_0x35d192[_0x279086('0x5e8')]({'title':_0x285520['data'][_0x279086('0x25be')][_0x84e5b4][_0x279086('0x1d7')],'msg':_0x285520[_0x279086('0x11fc')]['errors'][_0x84e5b4]['message']});}else _0x35d192[_0x279086('0x5e8')]({'title':_0x279086('0x1fc8'),'msg':_0x285520[_0x279086('0x11fc')]?JSON[_0x279086('0x1be0')](_0x285520[_0x279086('0x11fc')]):_0x285520[_0x279086('0x15e2')]||_0x285520[_0x279086('0x17df')]()});});}}});}function _0xb77b8e(_0x261930){const _0x230866=_0x262b9e;let _0x3d780e;const _0x188fe6=_0x283545()['find'](_0xa2307e[_0x230866('0x1ef6')][_0x230866('0x25df')],{'id':_0x261930[_0x230866('0x24f0')]});_0x188fe6&&_0x188fe6[_0x230866('0x23f4')]&&(_0x3d780e=_0x283545()[_0x230866('0x20e8')](_0x188fe6[_0x230866('0x23f4')],{'id':_0x261930['UserId']}),!_0x3d780e&&_0x188fe6['Users']['push']({'id':_0x261930[_0x230866('0x3bb')]}));}function _0x2d7647(_0x56e8df){const _0x2cda57=_0x262b9e,_0xdf3fdf=_0x283545()[_0x2cda57('0x20e8')](_0xa2307e[_0x2cda57('0x1ef6')][_0x2cda57('0x25df')],{'id':_0x56e8df['FaxInteractionId']});_0xdf3fdf&&_0xdf3fdf[_0x2cda57('0x23f4')]&&_0x283545()[_0x2cda57('0x1a90')](_0xdf3fdf[_0x2cda57('0x23f4')],{'id':_0x56e8df[_0x2cda57('0x3bb')]});}function _0x1cfe6c(_0x13caa2){const _0x31883c=_0x262b9e;if(_0x13caa2){const _0x2e62fc=_0x283545()[_0x31883c('0x20e8')](_0xa2307e['faxInteractions'][_0x31883c('0x25df')],{'id':_0x13caa2['id']});if(_0x2e62fc){_0x2e62fc[_0x31883c('0x23f4')]=[];_0x13caa2[_0x31883c('0x215d')]&&(_0x2e62fc[_0x31883c('0xecd')]=0x0);if(_0xa2307e[_0x31883c('0x135a')]['sort']){const _0x341093=_0x283545()[_0x31883c('0x993')](_0xa2307e[_0x31883c('0x135a')]['sort'],'-')?_0x31883c('0x25b5'):_0x31883c('0xe07');_0xa2307e[_0x31883c('0x1ef6')][_0x31883c('0x25df')]=_0x283545()['orderBy'](_0xa2307e[_0x31883c('0x1ef6')][_0x31883c('0x25df')],_0x283545()[_0x31883c('0x19c2')](_0xa2307e[_0x31883c('0x135a')][_0x31883c('0x2119')],'-'),_0x341093);}_0x283545()[_0x31883c('0x2503')](_0x2e62fc,_0x283545()[_0x31883c('0x41b')](_0x13caa2,_0x283545()[_0x31883c('0x2163')](_0x2e62fc)));}else _0x26d3ec(_0xa2307e[_0x31883c('0x135a')][_0x31883c('0x23f5')]);}}function _0x49b885(_0x4d3702){const _0x9539a=_0x262b9e;if(_0x4d3702){const _0x544052=_0x283545()[_0x9539a('0x20e8')](_0xa2307e[_0x9539a('0x1ef6')][_0x9539a('0x25df')],{'id':_0x4d3702['id']});_0x544052&&(_0x544052[_0x9539a('0xbcf')]=_0x4d3702['tags']||[],_0x283545()[_0x9539a('0x2503')](_0x544052,_0x283545()[_0x9539a('0x41b')](_0x4d3702,_0x283545()['keys'](_0x544052))));}}function _0x510041(_0x4a6aae){const _0x296fce=_0x262b9e;if(_0x4a6aae&&!_0x4a6aae[_0x296fce('0x2685')]){const _0x5ecef5=_0x283545()[_0x296fce('0x20e8')](_0xa2307e[_0x296fce('0x1ef6')]['rows'],{'id':_0x4a6aae[_0x296fce('0x24f0')]});if(_0x5ecef5){const _0x5b936c=_0x283545()[_0x296fce('0x20e8')](_0x5ecef5['Messages'],{'id':_0x4a6aae['id']});_0x5b936c?_0x283545()[_0x296fce('0x2503')](_0x5b936c,_0x283545()['pick'](_0x4a6aae,_0x283545()[_0x296fce('0x2163')](_0x5b936c))):(_0x283545()[_0x296fce('0x1015')](_0x5ecef5[_0x296fce('0x1f77')])&&(_0x5ecef5[_0x296fce('0x1f77')]={'count':0x0}),!_0x4a6aae[_0x296fce('0x18e8')]&&(_0x5ecef5['Messages'][_0x296fce('0x338')]+=0x1));}}}function _0x3480a8(){const _0x57692f=_0x262b9e;_0xa2307e[_0x57692f('0x236d')]=![];}function _0x2da534(){const _0x11b11e=_0x262b9e;_0xa2307e[_0x11b11e('0x236d')]=!![];}function _0x2b32a5(){const _0x9c4899=_0x262b9e;_0xa2307e['isSearchBarVisible']=![],_0x4f862c[_0x9c4899('0x2fa')]({'controller':_0x9c4899('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x9c4899('0x16b1')](_0x3ef7be[_0x9c4899('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0xa2307e[_0x9c4899('0x4ef')],'fields':_0xa2307e[_0x9c4899('0x1e13')][_0x9c4899('0x1578')],'storagePath':_0x9c4899('0x1bd7')},'fullscreen':!![]})[_0x9c4899('0x2788')](function(_0x261c9d){const _0x4fa53e=_0x9c4899;_0xa2307e['query'][_0x4fa53e('0x470')]=_0x261c9d===![]?undefined:_0x261c9d;if(_0xa2307e[_0x4fa53e('0x135a')][_0x4fa53e('0x470')]||_0x261c9d===![])_0x26d3ec();})[_0x9c4899('0x1cb5')](function(_0x1bc86d){const _0x1bcae3=_0x9c4899;_0x35d192[_0x1bcae3('0x5e8')]({'title':_0x1bcae3('0x824'),'msg':_0x1bc86d[_0x1bcae3('0x11fc')]?JSON[_0x1bcae3('0x1be0')](_0x1bc86d[_0x1bcae3('0x11fc')][_0x1bcae3('0x15e2')]):_0x1bc86d['toString']()});});}let _0x4c8f44=!![],_0x7b8739=0x1;_0x3ac1d3['$watch'](_0x262b9e('0x1569'),function(_0x39c662,_0x7261dc){const _0x1d8509=_0x262b9e;_0x4c8f44?_0x37084f(function(){_0x4c8f44=![];}):(!_0x7261dc&&(_0x7b8739=_0xa2307e['query']['page']),_0x39c662!==_0x7261dc&&(_0xa2307e[_0x1d8509('0x135a')][_0x1d8509('0x23f5')]=0x1),!_0x39c662&&(_0xa2307e['query']['page']=_0x7b8739),_0x26d3ec(_0xa2307e[_0x1d8509('0x135a')][_0x1d8509('0x23f5')]));}),_0x3ac1d3['$on'](_0x262b9e('0x26ac'),function(){const _0xc4d47d=_0x262b9e;_0x4a1bef[_0xc4d47d('0x277f')]('faxMessage:save'),_0x4a1bef['removeAllListeners'](_0xc4d47d('0x1126')),_0x4a1bef[_0xc4d47d('0x277f')](_0xc4d47d('0x1b80')),_0x4a1bef[_0xc4d47d('0x277f')]('faxInteractionTags:save'),_0x4a1bef[_0xc4d47d('0x277f')](_0xc4d47d('0x2230')),_0x4a1bef[_0xc4d47d('0x277f')](_0xc4d47d('0x277e')),_0x4a1bef[_0xc4d47d('0x277f')](_0xc4d47d('0x188a'));});}const _0xe729dd=_0x249f40;_0x2575d0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1902')];function _0x2575d0(_0xb98e12,_0x56137f,_0x27328d,_0x160a13,_0x4e88b6,_0x1073c9,_0x213dcc,_0x36fc01,_0x13c336,_0x261b90,_0x3675eb){const _0x3a5432=_0x34e79e,_0x5bb469=this;_0x5bb469[_0x3a5432('0x1e6a')]=_0x36fc01[_0x3a5432('0x24cc')](),_0x5bb469[_0x3a5432('0x130d')]={},_0x5bb469[_0x3a5432('0x1af0')]={},_0x5bb469[_0x3a5432('0xe45')]={'count':0x0,'rows':[]},_0x5bb469['mailInteractions']={'count':0x0,'rows':[]},_0x5bb469[_0x3a5432('0x135a')]={'includeAll':!![],'sort':_0x3a5432('0x1cee'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x5bb469[_0x3a5432('0x1e13')]={'fields':[{'name':'Id','column':'id','type':_0x3a5432('0x272c')},{'name':_0x3a5432('0x1c64'),'column':_0x3a5432('0x1c64'),'type':_0x3a5432('0x137e'),'options':{'searchFields':[_0x3a5432('0x26da'),_0x3a5432('0x26b9'),'email'],'route':{'model':'cmContact','action':'get','params':{'fields':_0x3a5432('0x1373'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x3a5432('0x1a77')],'excludedOperators':[_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x16c9'),'column':_0x3a5432('0x248f'),'type':_0x3a5432('0x16db'),'options':{'excludedOperators':['$eq',_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x1e8f'),'column':_0x3a5432('0x550'),'type':_0x3a5432('0x16db'),'options':{'excludedOperators':[_0x3a5432('0x1ff9'),_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x21d8'),'column':_0x3a5432('0x215d'),'type':'select','values':[{'id':0x0,'translate':_0x3a5432('0xd6c')},{'id':0x1,'translate':_0x3a5432('0x977')}],'options':{'excludedOperators':[_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x20ef'),'column':'substatus','type':_0x3a5432('0x9a4'),'options':{'field':_0x3a5432('0x1a8d'),'route':{'model':_0x3a5432('0xf75'),'action':_0x3a5432('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x3a5432('0x262d'),'column':'User','type':'autocomplete','options':{'table':'i','route':{'model':_0x3a5432('0x1e6a'),'action':_0x3a5432('0x1335'),'params':{'role':_0x3a5432('0x188b'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x3a5432('0x2831'),_0x3a5432('0x1a8d')],'extraOperators':[_0x3a5432('0x1a77')],'excludedOperators':[_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x140b'),'column':_0x3a5432('0x26b2'),'type':_0x3a5432('0x9a4'),'options':{'route':{'model':_0x3a5432('0x1e6a'),'action':'getMailAccounts','params':{'id':_0x5bb469['user']['id'],'nolimit':!![]}}}},{'name':_0x3a5432('0xbcf'),'column':_0x3a5432('0x251d'),'type':_0x3a5432('0x9a4'),'options':{'route':{'model':_0x3a5432('0x1764'),'action':_0x3a5432('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Start\x20Date','column':_0x3a5432('0x172'),'type':_0x3a5432('0x1012'),'options':{'excludedOperators':[_0x3a5432('0x149c')]}},{'name':_0x3a5432('0x27d7'),'column':_0x3a5432('0xecd'),'type':_0x3a5432('0x983'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x3a5432('0xe54')}],'options':{'excludedOperators':['$ne']}}]},_0x5bb469[_0x3a5432('0x4ef')]=_0x3a5432('0xb55'),_0x5bb469['onInit']=_0x5d8e8a,_0x5bb469[_0x3a5432('0x173b')]=_0x1c369e,_0x5bb469[_0x3a5432('0x1aaf')]=_0x39d28a,_0x5bb469[_0x3a5432('0x9c8')]=_0x93f97,_0x5bb469[_0x3a5432('0xbbe')]=_0x4e630c,_0x5bb469[_0x3a5432('0xcc4')]=_0x3f6695,_0x5bb469[_0x3a5432('0x190e')]=_0x2e475d,_0x5bb469['getAgentLabel']=_0x51d6dd,_0x5bb469['getMailAccountLabel']=_0x44bbd0,_0x5bb469[_0x3a5432('0x1426')]=_0x56c18e,_0x5bb469[_0x3a5432('0x956')]=_0x4a9fe4,_0x5bb469[_0x3a5432('0x5ca')]=_0x2e3a1f,_0x5bb469[_0x3a5432('0x27c6')]=_0x2cd790,_0xb98e12[_0x3a5432('0x651')]('openMailDraft',_0x147112);function _0x5d8e8a(_0x998a90,_0x3c59de){const _0x5c7bad=_0x3a5432;return _0x5bb469['license']=_0x998a90,_0x5bb469[_0x5c7bad('0x1af0')]=_0x3c59de,_0x213dcc['user']['get'+_0x283545()[_0x5c7bad('0x2265')]('mailAccounts')]({'id':_0x5bb469[_0x5c7bad('0x1e6a')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2ca598){const _0x582d6b=_0x5c7bad;return _0x5bb469[_0x582d6b('0x1e22')]=_0x2ca598||{'count':0x0,'rows':[]},_0x213dcc['tag'][_0x582d6b('0x1335')]()[_0x582d6b('0x1714')];})[_0x5c7bad('0x2788')](function(_0x408d5b){const _0x1ed9c3=_0x5c7bad;_0x5bb469[_0x1ed9c3('0xe45')]=_0x408d5b||{'count':0x0,'rows':[]};})[_0x5c7bad('0x2788')](function(){const _0x52f6aa=_0x5c7bad;return _0x213dcc[_0x52f6aa('0xf75')][_0x52f6aa('0x1335')]({'nolimit':!![]})[_0x52f6aa('0x1714')];})['then'](function(_0x53bf56){const _0x201f2f=_0x5c7bad;_0x5bb469[_0x201f2f('0x1978')]=_0x53bf56||{'count':0x0,'rows':[]};})['then'](function(){const _0x586545=_0x5c7bad;_0x5bb469[_0x586545('0xa28')]=_0x5ea1cb();})['catch'](function(_0x47febd){console['error'](_0x47febd);})[_0x5c7bad('0x1ed8')](function(){const _0x4dcf90=_0x5c7bad;let _0xd0480c=_0x4e88b6[_0x4dcf90('0x155e')][_0x4dcf90('0xced')](_0x4dcf90('0x2430')+_0x5bb469[_0x4dcf90('0x1e6a')]['id']);if(_0xd0480c)try{_0xd0480c=JSON['parse'](_0xd0480c);if(_0xd0480c[_0x4dcf90('0x135a')]){_0x5bb469[_0x4dcf90('0x135a')]=_0x283545()[_0x4dcf90('0x2503')](_0x5bb469[_0x4dcf90('0x135a')],_0xd0480c[_0x4dcf90('0x135a')]);if(_0x283545()[_0x4dcf90('0x213d')](_0x5bb469[_0x4dcf90('0x1e22')][_0x4dcf90('0x25df')]))_0x5bb469['query'][_0x4dcf90('0x26b2')]=[];else _0x283545()[_0x4dcf90('0x213d')](_0x5bb469['query']['MailAccountId'])&&(_0x5bb469[_0x4dcf90('0x135a')]['MailAccountId']=_0x283545()(_0x5bb469[_0x4dcf90('0x1e22')][_0x4dcf90('0x25df')])[_0x4dcf90('0x155d')]('id')['take']()['value']());_0x5bb469[_0x4dcf90('0x135a')][_0x4dcf90('0x2119')]&&_0x5bb469[_0x4dcf90('0x135a')][_0x4dcf90('0x2119')][_0x4dcf90('0x821')](_0x4dcf90('0x136d'))>=0x0&&(_0x5bb469[_0x4dcf90('0x135a')]=_0x283545()[_0x4dcf90('0x5a9')](_0x5bb469[_0x4dcf90('0x135a')],_0x4dcf90('0x2119'))),_0x5bb469[_0x4dcf90('0x135a')][_0x4dcf90('0xc9d')]=!![],_0x5bb469[_0x4dcf90('0x236d')]=_0x5bb469[_0x4dcf90('0x135a')]['filter']?!![]:![];}}catch(_0x4122e7){console[_0x4dcf90('0x5e8')](_0x4122e7);}else{const _0x4fdd71={'$gte':_0x59f37a()()[_0x4dcf90('0x13e4')]('month')['utcOffset'](0x0,!![])[_0x4dcf90('0x22b4')](),'$lte':_0x59f37a()()[_0x4dcf90('0x142e')](_0x4dcf90('0x2dc'))['utcOffset'](0x0,!![])[_0x4dcf90('0x22b4')]()},_0x22d227={'MailAccountId':_0x283545()[_0x4dcf90('0x155d')](_0x5bb469[_0x4dcf90('0x1e22')][_0x4dcf90('0x25df')],'id'),'createdAt':_0x4fdd71};_0x5bb469[_0x4dcf90('0x135a')]=_0x283545()['merge'](_0x5bb469[_0x4dcf90('0x135a')],_0x22d227);}_0x13c336['on'](_0x4dcf90('0x2cb'),_0x2b3e87),_0x13c336['on'](_0x4dcf90('0x1cf5'),_0x2b3e87),_0x13c336['on'](_0x4dcf90('0xfa2'),_0x49cb73),_0x13c336['on'](_0x4dcf90('0x1e16'),_0x4e5f9d),_0x13c336['on'](_0x4dcf90('0x706'),_0x4e5f9d),_0x13c336['on'](_0x4dcf90('0x864'),_0xdac61),_0x13c336['on'](_0x4dcf90('0x26e5'),_0x326836),_0x39d28a(_0x5bb469[_0x4dcf90('0x135a')]['page']);});}function _0x5ea1cb(){const _0x10876e=_0x3a5432;return[{'name':_0x10876e('0x9ac'),'key':_0x10876e('0x172'),'type':_0x10876e('0x1012'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x10876e('0x1f77'),'key':_0x10876e('0x18e8'),'type':_0x10876e('0x983'),'label':_0x10876e('0xb0b'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x10876e('0x204a')},{'value':null,'translate':_0x10876e('0xc79')}]},{'name':_0x10876e('0x21d8'),'key':_0x10876e('0x215d'),'type':_0x10876e('0x983'),'label':_0x10876e('0xd0'),'customOptions':[{'value':0x0,'translate':_0x10876e('0xd6c')},{'value':0x1,'translate':_0x10876e('0x977')},{'value':null,'translate':_0x10876e('0xc79')}]},{'name':'Substatus','key':_0x10876e('0x1288'),'type':_0x10876e('0x983'),'label':_0x10876e('0xd7d'),'options':_0x5bb469[_0x10876e('0x1978')][_0x10876e('0x25df')],'customOptions':[{'value':'null','translate':'DASHBOARDS.NONE'},{'value':undefined,'translate':_0x10876e('0xc79')}],'ngValue':_0x10876e('0x1a8d'),'ngIf':_0x10876e('0x1a0e')},{'name':_0x10876e('0x140b'),'key':_0x10876e('0x26b2'),'type':_0x10876e('0x9a4'),'label':_0x10876e('0x18c5'),'options':_0x5bb469['mailAccounts'][_0x10876e('0x25df')],'clearAll':![]},{'name':_0x10876e('0x262d'),'key':_0x10876e('0x3bb'),'type':'select','label':_0x10876e('0x2bd'),'customOptions':[{'value':_0x5bb469[_0x10876e('0x1e6a')]['id'],'translate':_0x10876e('0x3a8')},{'value':'null','translate':_0x10876e('0xce3')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x10876e('0x251d'),'key':_0x10876e('0x1764'),'type':_0x10876e('0x9a4'),'label':_0x10876e('0xa54'),'options':_0x5bb469[_0x10876e('0xe45')]['rows'],'placeholder':_0x10876e('0x263')}];}function _0x1c369e(_0x3d8d79){const _0x50ae6c=_0x3a5432;_0x5bb469['searchInProgress']=![],_0x5bb469[_0x50ae6c('0x6c4')]=_0x3d8d79||{'count':0x0,'rows':[]};for(let _0x32dc8a=0x0;_0x32dc8a<_0x5bb469[_0x50ae6c('0x6c4')][_0x50ae6c('0x25df')][_0x50ae6c('0x2566')];_0x32dc8a+=0x1){_0x2e475d(_0x5bb469[_0x50ae6c('0x6c4')][_0x50ae6c('0x25df')][_0x32dc8a]);}}function _0x39d28a(_0xbdf6a4){const _0x269b66=_0x3a5432;_0x5bb469['searchInProgress']=!![];!_0xbdf6a4&&(_0x5bb469[_0x269b66('0x135a')]['page']=0x1);_0x5bb469[_0x269b66('0x135a')][_0x269b66('0x19e')]=(_0x5bb469[_0x269b66('0x135a')][_0x269b66('0x23f5')]-0x1)*_0x5bb469[_0x269b66('0x135a')][_0x269b66('0x68e')];let _0x39497a=_0x4e88b6['localStorage'][_0x269b66('0xced')](_0x269b66('0x2430')+_0x5bb469[_0x269b66('0x1e6a')]['id']);_0x39497a=_0x39497a?JSON[_0x269b66('0xe0b')](_0x39497a):{},_0x39497a[_0x269b66('0x135a')]=_0x5bb469[_0x269b66('0x135a')],_0x4e88b6[_0x269b66('0x155e')][_0x269b66('0x23dc')](_0x269b66('0x2430')+_0x5bb469[_0x269b66('0x1e6a')]['id'],JSON[_0x269b66('0x1be0')](_0x39497a)),_0x5bb469['promise']=_0x213dcc[_0x269b66('0x2559')][_0x269b66('0x1335')](_0x5bb469[_0x269b66('0x135a')],_0x1c369e)[_0x269b66('0x1714')];}function _0x93f97(_0x46146a,_0x515b7d){const _0x5418ff=_0x3a5432;_0xb98e12[_0x5418ff('0x7d0')]['vm'][_0x5418ff('0x1442')](_0x5418ff('0x2795'),_0x515b7d);}function _0x4e630c(_0x369d23,_0xfb7ca,_0x312f4c){const _0x5bd208=_0x3a5432;_0x213dcc['mailInteraction']['download']({'id':_0xfb7ca['id'],'attachments':_0x312f4c})[_0x5bd208('0x1714')][_0x5bd208('0x2788')](function(_0x188dc8){const _0x16d96d=_0x5bd208,_0x3c552d=[_0x188dc8[_0x16d96d('0x3f1')]],_0x4ad27a=_0x16d96d('0x1e93')+_0xfb7ca['id']+_0x16d96d('0xfdb'),_0x34c5ef=new Blob(_0x3c552d,{'type':_0x188dc8[_0x16d96d('0x1d7')]}),_0x2d2938=window[_0x16d96d('0x11c4')][_0x16d96d('0x1ae6')]('a');_0x2d2938[_0x16d96d('0x1c6b')](_0x16d96d('0x186a'),URL['createObjectURL'](_0x34c5ef)),_0x2d2938[_0x16d96d('0x1c6b')]('download',_0x4ad27a),document[_0x16d96d('0x945')]['appendChild'](_0x2d2938),_0x2d2938[_0x16d96d('0x132a')]();})[_0x5bd208('0x1cb5')](function(_0xa4b7d5){const _0x5c9269=_0x5bd208;if(_0xa4b7d5['data']&&_0xa4b7d5[_0x5c9269('0x11fc')][_0x5c9269('0x25be')]&&_0xa4b7d5[_0x5c9269('0x11fc')][_0x5c9269('0x25be')][_0x5c9269('0x2566')])for(let _0x505f2b=0x0;_0x505f2b<_0xa4b7d5[_0x5c9269('0x11fc')]['errors'][_0x5c9269('0x2566')];_0x505f2b+=0x1){_0x261b90[_0x5c9269('0x5e8')]({'title':_0xa4b7d5['data'][_0x5c9269('0x25be')][_0x505f2b][_0x5c9269('0x1d7')],'msg':_0xa4b7d5[_0x5c9269('0x11fc')][_0x5c9269('0x25be')][_0x505f2b][_0x5c9269('0x15e2')]});}else _0x261b90[_0x5c9269('0x5e8')]({'title':_0xa4b7d5[_0x5c9269('0x1b51')]?_0x5c9269('0x15d1')+_0xa4b7d5['status']+_0x5c9269('0x1b0b')+_0xa4b7d5[_0x5c9269('0x22ce')]:_0x5c9269('0xbbe'),'msg':_0xa4b7d5[_0x5c9269('0x11fc')]?JSON[_0x5c9269('0x1be0')](_0xa4b7d5[_0x5c9269('0x11fc')]['message']):_0xa4b7d5[_0x5c9269('0x17df')]()});});}function _0x3f6695(_0x366be6,_0x50e979){const _0x247c1c=_0x3a5432,_0x170d40=_0x5bb469[_0x247c1c('0x1e6a')][_0x247c1c('0x2a1')]||_0x5bb469['user'][_0x247c1c('0x23a5')]||_0x5bb469[_0x247c1c('0x1e6a')][_0x247c1c('0x20cd')]||_0x5bb469[_0x247c1c('0x1e6a')][_0x247c1c('0x1098')]||_0x5bb469[_0x247c1c('0x1e6a')]['faxPause'],_0x5829ba=!_0x50e979[_0x247c1c('0x140b')]['mandatoryDisposition'];_0x27328d['show']({'controller':_0x247c1c('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular['element'](_0x160a13[_0x247c1c('0x945')]),'clickOutsideToClose':_0x5829ba,'escapeToClose':_0x5829ba,'onRemoving':function(){const _0x2a1161=_0x247c1c;_0x5bb469[_0x2a1161('0x1e6a')]&&_0x50e979[_0x2a1161('0x140b')][_0x2a1161('0x1c86')]&&!_0x170d40&&_0x213dcc[_0x2a1161('0x1e6a')][_0x2a1161('0x1826')]({'id':_0x5bb469['user']['id']})[_0x2a1161('0x1714')][_0x2a1161('0x1cb5')](function(_0x155039){console['error'](_0x155039);});},'locals':{'user':_0x5bb469[_0x247c1c('0x1e6a')],'channel':_0x247c1c('0x2795'),'interaction':_0x50e979}});}function _0x2e475d(_0x447b38){const _0x442426=_0x3a5432;if(!_0x283545()[_0x442426('0x213d')](_0x447b38['to'])&&_0x447b38[_0x442426('0x140b')]&&!_0x283545()[_0x442426('0x1d4e')](_0x447b38['to'],_0x447b38['Account'][_0x442426('0x2436')]))_0x447b38[_0x442426('0x497')]=_0x447b38['to'][_0x442426('0x1497')]('\x20<')[0x0],_0x447b38[_0x442426('0x1aba')]=_0x447b38['to']['split']('<')[_0x442426('0xbeb')]()[_0x442426('0x1497')]('>')[0x0];else _0x447b38[_0x442426('0x1c64')]?(_0x447b38[_0x442426('0x497')]=(_0x447b38[_0x442426('0x1c64')][_0x442426('0x26da')]||'')+'\x20'+(_0x447b38[_0x442426('0x1c64')][_0x442426('0x26b9')]||''),_0x447b38[_0x442426('0x1aba')]=_0x447b38['Contact'][_0x442426('0x2436')]||''):_0x447b38['contactName']=_0x1073c9[_0x442426('0x1b11')](_0x442426('0x2185'));}function _0x51d6dd(_0x5bbbec){const _0xe52108=_0x3a5432;if(_0x5bbbec[_0xe52108('0x3bb')])return _0x5bbbec['UserId']===_0x5bb469[_0xe52108('0x1e6a')]['id']?_0x1073c9[_0xe52108('0x1b11')]('DASHBOARDS.ME'):_0x5bbbec[_0xe52108('0xe42')][_0xe52108('0x2831')]+'\x20<'+_0x5bbbec[_0xe52108('0xe42')][_0xe52108('0x2838')]+'>';return _0x1073c9[_0xe52108('0x1b11')](_0xe52108('0xce3'));}function _0x44bbd0(_0x4477f0){const _0x44206d=_0x3a5432;if(_0x4477f0[_0x44206d('0x140b')])return _0x4477f0['Account'][_0x44206d('0x234b')];return _0x1073c9['instant'](_0x44206d('0x2185'));}function _0x147112(_0x4e209d,_0x45d897){const _0x514a4d=_0x3a5432;_0x45d897[_0x514a4d('0xd61')]?(_0x45d897[_0x514a4d('0xd61')][_0x514a4d('0x2ee')]=!![],_0x93f97(null,_0x45d897[_0x514a4d('0xd61')])):_0x27328d[_0x514a4d('0x2fa')]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x2c06d6,'parent':angular[_0x514a4d('0x16b1')](_0x160a13[_0x514a4d('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0x45d897[_0x514a4d('0x82f')],'message':_0x45d897[_0x514a4d('0x1c98')],'type':_0x514a4d('0x64e'),'interaction':{}},'fullscreen':!![]})[_0x514a4d('0x2788')](function(_0x955ca1){const _0x224efc=_0x514a4d;if(_0x955ca1){if(_0x955ca1[_0x224efc('0x15e2')]&&_0x955ca1[_0x224efc('0x15e2')][_0x224efc('0x326')]){const _0x4e0890={'id':_0x45d897['id'],'channel':_0x224efc('0x2795'),'account':_0x955ca1[_0x224efc('0x82f')],'message':_0x955ca1[_0x224efc('0x15e2')]};_0x3675eb[_0x224efc('0x2740')](_0x4e0890);}else{const _0x5695d8=_0x955ca1;return _0x213dcc['mailAccount'][_0x224efc('0x1fc9')]({'id':_0x45d897[_0x224efc('0x82f')]['id']},_0x5695d8)['$promise'][_0x224efc('0x2788')](function(_0x5b69ab){const _0x538eee=_0x224efc;_0x3675eb[_0x538eee('0x1a90')](_0x45d897['id']);if(_0x5b69ab&&_0x5b69ab[_0x538eee('0x1f77')]&&_0x5b69ab['Messages'][_0x538eee('0x2566')]){if(_0x5695d8[_0x538eee('0x8ba')]&&_0x5695d8['attachments'][_0x538eee('0x2566')])for(let _0x549184=0x0;_0x549184<_0x5695d8['attachments'][_0x538eee('0x2566')];_0x549184+=0x1){_0x213dcc[_0x538eee('0x2358')][_0x538eee('0x2740')]({'id':_0x5695d8[_0x538eee('0x8ba')][_0x549184]['id']},{'MailMessageId':_0x283545()[_0x538eee('0x1123')](_0x5b69ab['Messages'])['id']});}_0x261b90[_0x538eee('0x173b')]({'title':_0x538eee('0x1fcd'),'msg':'Message\x20has\x20been\x20sent!'});if(_0x5b69ab['closed']){_0x5b69ab[_0x538eee('0x1db2')]=null;const _0x25d079=!_0x45d897[_0x538eee('0x82f')][_0x538eee('0x1c86')],_0x45b44c=_0x5bb469[_0x538eee('0x1e6a')][_0x538eee('0x2a1')]||_0x5bb469[_0x538eee('0x1e6a')][_0x538eee('0x23a5')]||_0x5bb469[_0x538eee('0x1e6a')]['mailPause']||_0x5bb469[_0x538eee('0x1e6a')][_0x538eee('0x1098')]||_0x5bb469[_0x538eee('0x1e6a')]['faxPause'];_0x27328d[_0x538eee('0x2fa')]({'controller':_0x538eee('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x538eee('0x16b1')](_0x160a13[_0x538eee('0x945')]),'onRemoving':function(){const _0x3108ab=_0x538eee;_0x5bb469[_0x3108ab('0x1e6a')]&&_0x45d897[_0x3108ab('0x82f')][_0x3108ab('0x1c86')]&&!_0x45b44c&&_0x213dcc[_0x3108ab('0x1e6a')][_0x3108ab('0x1826')]({'id':_0x5bb469[_0x3108ab('0x1e6a')]['id']})['$promise'][_0x3108ab('0x1cb5')](function(_0x109833){const _0x51bb0f=_0x3108ab;console[_0x51bb0f('0x5e8')](_0x109833);});},'clickOutsideToClose':_0x25d079,'escapeToClose':_0x25d079,'locals':{'user':_0x5bb469['user'],'channel':_0x538eee('0x2795'),'interaction':_0x5b69ab}});}else _0xb98e12[_0x538eee('0x7d0')]['vm'][_0x538eee('0x1442')](_0x538eee('0x2795'),_0x5b69ab);}})['catch'](function(_0x1b078e){const _0x4b3f13=_0x224efc;if(_0x1b078e['data']&&_0x1b078e[_0x4b3f13('0x11fc')]['errors']&&_0x1b078e['data'][_0x4b3f13('0x25be')][_0x4b3f13('0x2566')])for(let _0x547e5f=0x0;_0x547e5f<_0x1b078e[_0x4b3f13('0x11fc')][_0x4b3f13('0x25be')][_0x4b3f13('0x2566')];_0x547e5f++){_0x261b90[_0x4b3f13('0x5e8')]({'title':_0x1b078e[_0x4b3f13('0x11fc')][_0x4b3f13('0x25be')][_0x547e5f][_0x4b3f13('0x1d7')],'msg':_0x1b078e[_0x4b3f13('0x11fc')]['errors'][_0x547e5f][_0x4b3f13('0x15e2')]});}else _0x261b90[_0x4b3f13('0x5e8')]({'title':_0x1b078e[_0x4b3f13('0x1b51')]?_0x4b3f13('0x15d1')+_0x1b078e[_0x4b3f13('0x1b51')]+'\x20-\x20'+_0x1b078e[_0x4b3f13('0x22ce')]:_0x4b3f13('0x2554'),'msg':_0x1b078e['data']?JSON[_0x4b3f13('0x1be0')](_0x1b078e['data'][_0x4b3f13('0x15e2')]):_0x1b078e[_0x4b3f13('0x15e2')]||_0x1b078e[_0x4b3f13('0x17df')]()});});}}});}function _0x56c18e(_0x1d0376,_0xfc4b1d){const _0x36b933=_0x3a5432;_0x27328d[_0x36b933('0x2fa')]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x2c06d6,'parent':angular[_0x36b933('0x16b1')](_0x160a13[_0x36b933('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0xfc4b1d,'message':{},'type':_0x36b933('0x259d'),'interaction':{}},'fullscreen':!![]})[_0x36b933('0x2788')](function(_0x5abbad){const _0x33607a=_0x36b933;if(_0x5abbad){if(_0x5abbad[_0x33607a('0x15e2')]&&_0x5abbad[_0x33607a('0x15e2')][_0x33607a('0x326')]){const _0x240b6c={'channel':_0x33607a('0x2795'),'account':_0xfc4b1d,'message':_0x5abbad['message'],'contact':_0x5abbad[_0x33607a('0xc17')]};_0x3675eb[_0x33607a('0x9b8')](_0x240b6c);}else{const _0x178caf=_0x5abbad;return _0x213dcc['mailAccount'][_0x33607a('0x1fc9')]({'id':_0xfc4b1d['id']},_0x178caf)[_0x33607a('0x1714')][_0x33607a('0x2788')](function(_0x49ee79){const _0x45786d=_0x33607a;if(_0x49ee79&&_0x49ee79[_0x45786d('0x1f77')]&&_0x49ee79[_0x45786d('0x1f77')][_0x45786d('0x2566')]){if(_0x178caf[_0x45786d('0x8ba')]&&_0x178caf[_0x45786d('0x8ba')][_0x45786d('0x2566')])for(let _0x34de5f=0x0;_0x34de5f<_0x178caf['attachments'][_0x45786d('0x2566')];_0x34de5f+=0x1){_0x213dcc['attachment'][_0x45786d('0x2740')]({'id':_0x178caf[_0x45786d('0x8ba')][_0x34de5f]['id']},{'MailMessageId':_0x283545()[_0x45786d('0x1123')](_0x49ee79[_0x45786d('0x1f77')])['id']});}_0x261b90[_0x45786d('0x173b')]({'title':'Message\x20properly\x20sent!','msg':_0x45786d('0x65b')});if(_0x49ee79[_0x45786d('0x215d')]){_0x49ee79[_0x45786d('0x1db2')]=null;const _0x47905d=!_0xfc4b1d[_0x45786d('0x1c86')],_0x2b9941=_0x5bb469['user'][_0x45786d('0x2a1')]||_0x5bb469['user'][_0x45786d('0x23a5')]||_0x5bb469[_0x45786d('0x1e6a')]['mailPause']||_0x5bb469[_0x45786d('0x1e6a')][_0x45786d('0x1098')]||_0x5bb469[_0x45786d('0x1e6a')][_0x45786d('0x1891')];_0x27328d[_0x45786d('0x2fa')]({'controller':_0x45786d('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x45786d('0x16b1')](_0x160a13[_0x45786d('0x945')]),'onRemoving':function(){const _0x12e194=_0x45786d;_0x5bb469[_0x12e194('0x1e6a')]&&_0xfc4b1d[_0x12e194('0x1c86')]&&!_0x2b9941&&_0x213dcc[_0x12e194('0x1e6a')][_0x12e194('0x1826')]({'id':_0x5bb469[_0x12e194('0x1e6a')]['id']})[_0x12e194('0x1714')]['catch'](function(_0xa88830){const _0x1fd614=_0x12e194;console[_0x1fd614('0x5e8')](_0xa88830);});},'clickOutsideToClose':_0x47905d,'escapeToClose':_0x47905d,'locals':{'user':_0x5bb469[_0x45786d('0x1e6a')],'channel':_0x45786d('0x2795'),'interaction':_0x49ee79}});}else _0xb98e12[_0x45786d('0x7d0')]['vm'][_0x45786d('0x1442')]('mail',_0x49ee79);}})[_0x33607a('0x1cb5')](function(_0x4e903b){const _0x4f2c26=_0x33607a;if(_0x4e903b[_0x4f2c26('0x11fc')]&&_0x4e903b[_0x4f2c26('0x11fc')][_0x4f2c26('0x25be')]&&_0x4e903b[_0x4f2c26('0x11fc')][_0x4f2c26('0x25be')]['length'])for(let _0x2bd8ea=0x0;_0x2bd8ea<_0x4e903b[_0x4f2c26('0x11fc')][_0x4f2c26('0x25be')][_0x4f2c26('0x2566')];_0x2bd8ea++){_0x261b90[_0x4f2c26('0x5e8')]({'title':_0x4e903b['data'][_0x4f2c26('0x25be')][_0x2bd8ea]['type'],'msg':_0x4e903b[_0x4f2c26('0x11fc')][_0x4f2c26('0x25be')][_0x2bd8ea]['message']});}else _0x261b90[_0x4f2c26('0x5e8')]({'title':_0x4e903b[_0x4f2c26('0x1b51')]?_0x4f2c26('0x15d1')+_0x4e903b[_0x4f2c26('0x1b51')]+_0x4f2c26('0x1b0b')+_0x4e903b[_0x4f2c26('0x22ce')]:_0x4f2c26('0x2554'),'msg':_0x4e903b[_0x4f2c26('0x11fc')]?JSON[_0x4f2c26('0x1be0')](_0x4e903b[_0x4f2c26('0x11fc')][_0x4f2c26('0x15e2')]):_0x4e903b[_0x4f2c26('0x15e2')]||_0x4e903b[_0x4f2c26('0x17df')]()});});}}});}function _0xdac61(_0x31f230){const _0x6eb842=_0x3a5432;let _0x4d87c9;const _0x520bf5=_0x283545()[_0x6eb842('0x20e8')](_0x5bb469[_0x6eb842('0x6c4')]['rows'],{'id':_0x31f230[_0x6eb842('0x1ce1')]});_0x520bf5&&_0x520bf5[_0x6eb842('0x23f4')]&&(_0x4d87c9=_0x283545()['find'](_0x520bf5[_0x6eb842('0x23f4')],{'id':_0x31f230[_0x6eb842('0x3bb')]}),!_0x4d87c9&&_0x520bf5[_0x6eb842('0x23f4')][_0x6eb842('0x13e3')]({'id':_0x31f230[_0x6eb842('0x3bb')]}));}function _0x326836(_0x418511){const _0x1e6627=_0x3a5432,_0x5831b3=_0x283545()['find'](_0x5bb469['mailInteractions'][_0x1e6627('0x25df')],{'id':_0x418511[_0x1e6627('0x1ce1')]});_0x5831b3&&_0x5831b3[_0x1e6627('0x23f4')]&&_0x283545()['remove'](_0x5831b3[_0x1e6627('0x23f4')],{'id':_0x418511['UserId']});}function _0x2b3e87(_0x3ae6e9){const _0x7de2fb=_0x3a5432;if(_0x3ae6e9){const _0x3b77f3=_0x283545()[_0x7de2fb('0x20e8')](_0x5bb469[_0x7de2fb('0x6c4')][_0x7de2fb('0x25df')],{'id':_0x3ae6e9['id']});if(_0x3b77f3){_0x3b77f3[_0x7de2fb('0x23f4')]=[];_0x3ae6e9['closed']&&(_0x3b77f3[_0x7de2fb('0xecd')]=0x0);if(_0x5bb469[_0x7de2fb('0x135a')][_0x7de2fb('0x2119')]){const _0x5aa186=_0x283545()['startsWith'](_0x5bb469[_0x7de2fb('0x135a')][_0x7de2fb('0x2119')],'-')?_0x7de2fb('0x25b5'):_0x7de2fb('0xe07');_0x5bb469[_0x7de2fb('0x6c4')][_0x7de2fb('0x25df')]=_0x283545()[_0x7de2fb('0xf87')](_0x5bb469[_0x7de2fb('0x6c4')]['rows'],_0x283545()['trimStart'](_0x5bb469['query']['sort'],'-'),_0x5aa186);}_0x283545()[_0x7de2fb('0x2503')](_0x3b77f3,_0x283545()['pick'](_0x3ae6e9,_0x283545()[_0x7de2fb('0x2163')](_0x3b77f3)));}else _0x39d28a(_0x5bb469['query'][_0x7de2fb('0x23f5')]);}}function _0x49cb73(_0x3f0c79){const _0x483d7c=_0x3a5432;if(_0x3f0c79){const _0x365d71=_0x283545()[_0x483d7c('0x20e8')](_0x5bb469[_0x483d7c('0x6c4')][_0x483d7c('0x25df')],{'id':_0x3f0c79['id']});_0x365d71&&(_0x365d71['Tags']=_0x3f0c79[_0x483d7c('0xe45')]||[],_0x283545()['merge'](_0x365d71,_0x283545()['pick'](_0x3f0c79,_0x283545()[_0x483d7c('0x2163')](_0x365d71))));}}function _0x4e5f9d(_0x466b96){const _0x238ca1=_0x3a5432;if(_0x466b96&&!_0x466b96['secret']){const _0x1b06d8=_0x283545()[_0x238ca1('0x20e8')](_0x5bb469[_0x238ca1('0x6c4')][_0x238ca1('0x25df')],{'id':_0x466b96[_0x238ca1('0x1ce1')]});if(_0x1b06d8){const _0x4c7611=_0x283545()[_0x238ca1('0x20e8')](_0x1b06d8[_0x238ca1('0x1f77')],{'id':_0x466b96['id']});_0x4c7611?_0x283545()[_0x238ca1('0x2503')](_0x4c7611,_0x283545()['pick'](_0x466b96,_0x283545()[_0x238ca1('0x2163')](_0x4c7611))):(_0x283545()['isNil'](_0x1b06d8[_0x238ca1('0x1f77')])&&(_0x1b06d8['Messages']={'count':0x0}),!_0x466b96['read']&&(_0x1b06d8[_0x238ca1('0x1f77')][_0x238ca1('0x338')]+=0x1));}}}function _0x4a9fe4(){const _0xd6a05c=_0x3a5432;_0x5bb469[_0xd6a05c('0x236d')]=![];}function _0x2e3a1f(){_0x5bb469['isSearchBarVisible']=!![];}function _0x2cd790(){const _0x2300af=_0x3a5432;_0x5bb469[_0x2300af('0x236d')]=![],_0x27328d[_0x2300af('0x2fa')]({'controller':_0x2300af('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular['element'](_0x160a13[_0x2300af('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x5bb469['sectionColor'],'fields':_0x5bb469['advancedSearch'][_0x2300af('0x1578')],'storagePath':_0x2300af('0x13e7')},'fullscreen':!![]})[_0x2300af('0x2788')](function(_0x3c7bf9){const _0x482fa0=_0x2300af;_0x5bb469['query'][_0x482fa0('0x470')]=_0x3c7bf9===![]?undefined:_0x3c7bf9;if(_0x5bb469[_0x482fa0('0x135a')]['search']||_0x3c7bf9===![])_0x39d28a();})[_0x2300af('0x1cb5')](function(_0x7efe65){const _0x4e7ee4=_0x2300af;_0x261b90[_0x4e7ee4('0x5e8')]({'title':_0x4e7ee4('0x824'),'msg':_0x7efe65[_0x4e7ee4('0x11fc')]?JSON[_0x4e7ee4('0x1be0')](_0x7efe65[_0x4e7ee4('0x11fc')][_0x4e7ee4('0x15e2')]):_0x7efe65[_0x4e7ee4('0x17df')]()});});}let _0x5f037a=!![],_0x2f3196=0x1;_0xb98e12[_0x3a5432('0x1662')](_0x3a5432('0x1569'),function(_0x2f693f,_0x574943){const _0x259a6a=_0x3a5432;_0x5f037a?_0x56137f(function(){_0x5f037a=![];}):(!_0x574943&&(_0x2f3196=_0x5bb469[_0x259a6a('0x135a')][_0x259a6a('0x23f5')]),_0x2f693f!==_0x574943&&(_0x5bb469['query'][_0x259a6a('0x23f5')]=0x1),!_0x2f693f&&(_0x5bb469['query']['page']=_0x2f3196),_0x39d28a(_0x5bb469[_0x259a6a('0x135a')][_0x259a6a('0x23f5')]));}),_0xb98e12[_0x3a5432('0x651')]('$destroy',function(){const _0x35e3d3=_0x3a5432;_0x13c336['removeAllListeners']('mailMessage:save'),_0x13c336[_0x35e3d3('0x277f')]('mailMessage:update'),_0x13c336[_0x35e3d3('0x277f')](_0x35e3d3('0x2cb')),_0x13c336['removeAllListeners']('mailInteractionTags:save'),_0x13c336[_0x35e3d3('0x277f')](_0x35e3d3('0x1cf5')),_0x13c336[_0x35e3d3('0x277f')](_0x35e3d3('0x864')),_0x13c336[_0x35e3d3('0x277f')]('user_has_mail_interactions:remove');});}const _0xdd56c5=_0x2575d0;_0x9f9703['$inject']=[_0x34e79e('0x1580'),'$scope','$timeout','$mdDialog',_0x34e79e('0x1b04'),'api',_0x34e79e('0x1bf5'),'toasty'];function _0x9f9703(_0x2454d9,_0x5a669e,_0x8cfb29,_0x29eb1d,_0x1130ef,_0x202ff5,_0x4da578,_0x5b41c7){const _0x4ead8a=_0x34e79e,_0x17e59e=this;_0x17e59e[_0x4ead8a('0x9cb')]=_0x1130ef['getCurrentUser'](),_0x17e59e[_0x4ead8a('0x2')]={},_0x17e59e[_0x4ead8a('0x14b')]={'count':0x0,'rows':[]},_0x17e59e['tags']={'count':0x0,'rows':[]},_0x17e59e['query']={'includeAll':!![],'id':_0x17e59e['currentUser']['id'],'sort':_0x4ead8a('0x1cee'),'limit':0xa,'page':0x1},_0x17e59e[_0x4ead8a('0x1e13')]={'fields':[]},_0x17e59e[_0x4ead8a('0x4ef')]='red',_0x17e59e[_0x4ead8a('0x1dc1')]=_0x6b6b29,_0x17e59e[_0x4ead8a('0x58')]=_0x4aa97a,_0x17e59e[_0x4ead8a('0xfd6')]=_0x4f7eaa,_0x17e59e[_0x4ead8a('0x255e')]=_0x280178,_0x17e59e['openContact']=_0x1a217e,_0x17e59e['call']=_0x5a669e[_0x4ead8a('0x7d0')]['vm']['call'],_0x17e59e[_0x4ead8a('0x122e')]=_0x23834b,_0x17e59e[_0x4ead8a('0x956')]=_0x3031e8,_0x17e59e[_0x4ead8a('0x5ca')]=_0x3560e8,_0x17e59e[_0x4ead8a('0x27c6')]=_0x34eaa5;function _0x23834b(){const _0x30ba27=_0x4ead8a;_0x202ff5[_0x30ba27('0x1ba4')][_0x30ba27('0x1335')]({'fields':'id,name,dialPrefix','sort':'name','nolimit':!![]})[_0x30ba27('0x1714')]['then'](function(_0x4f23cc){const _0x4528f0=_0x30ba27;return _0x17e59e[_0x4528f0('0x2')]=_0x4f23cc||{'count':0x0,'rows':[]},_0x17e59e[_0x4528f0('0xd89')]=_0x283545()[_0x4528f0('0x13cf')](_0x17e59e['lists']['rows'],'id'),_0x202ff5[_0x4528f0('0x1764')][_0x4528f0('0x1335')]()[_0x4528f0('0x1714')];})['then'](function(_0x3d6d7e){const _0x413799=_0x30ba27;_0x17e59e[_0x413799('0xe45')]=_0x3d6d7e||{'count':0x0,'rows':[]};})['then'](function(){const _0x1f4c77=_0x30ba27;_0x17e59e[_0x1f4c77('0xa28')]=_0xccfc02();})[_0x30ba27('0x1cb5')](function(_0x517806){console['error'](_0x517806);})[_0x30ba27('0x1ed8')](function(){const _0x1ba15b=_0x30ba27;let _0x330ef5=_0x4da578[_0x1ba15b('0x155e')][_0x1ba15b('0xced')](_0x1ba15b('0xba8')+_0x17e59e[_0x1ba15b('0x9cb')]['id']);if(_0x330ef5)try{_0x330ef5=JSON['parse'](_0x330ef5);if(_0x330ef5['query']){_0x17e59e[_0x1ba15b('0x135a')]=_0x283545()[_0x1ba15b('0x2503')](_0x17e59e[_0x1ba15b('0x135a')],_0x330ef5[_0x1ba15b('0x135a')]);if(_0x283545()[_0x1ba15b('0x213d')](_0x17e59e[_0x1ba15b('0x2')][_0x1ba15b('0x25df')]))_0x17e59e[_0x1ba15b('0x135a')][_0x1ba15b('0x354')]=[];else _0x283545()['isEmpty'](_0x17e59e['query']['ListId'])&&(_0x17e59e[_0x1ba15b('0x135a')][_0x1ba15b('0x354')]=_0x283545()(_0x17e59e[_0x1ba15b('0x2')][_0x1ba15b('0x25df')])['map']('id')[_0x1ba15b('0x212b')]()[_0x1ba15b('0x49')]());}}catch(_0xfa2f49){console[_0x1ba15b('0x5e8')](_0xfa2f49);}else _0x17e59e['query'][_0x1ba15b('0x354')]=_0x283545()['map'](_0x17e59e[_0x1ba15b('0x2')]['rows'],'id');_0x17e59e['isSearchBarVisible']=_0x17e59e['query'][_0x1ba15b('0x916')]?!![]:![],_0x6b6b29();});}function _0xccfc02(){const _0x30e60a=_0x4ead8a;return[{'name':_0x30e60a('0xef1'),'key':_0x30e60a('0x354'),'type':_0x30e60a('0x9a4'),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x17e59e['lists']['rows'],'clearAll':![]},{'name':_0x30e60a('0x251d'),'key':_0x30e60a('0x1764'),'type':_0x30e60a('0x9a4'),'label':_0x30e60a('0xa54'),'options':_0x17e59e['tags'][_0x30e60a('0x25df')],'placeholder':_0x30e60a('0x263')}];}function _0x5a6187(_0x57b857){const _0x1ddccb=_0x4ead8a;_0x17e59e[_0x1ddccb('0x2849')]=![],_0x17e59e['contacts']=_0x57b857||{'count':0x0,'rows':[]};}function _0x6b6b29(_0x3ef4e2){const _0x25ac01=_0x4ead8a;_0x17e59e['searchInProgress']=!![],_0x24cf1e();!_0x3ef4e2&&(_0x17e59e[_0x25ac01('0x135a')]['page']=0x1);_0x17e59e[_0x25ac01('0x135a')]['offset']=(_0x17e59e[_0x25ac01('0x135a')][_0x25ac01('0x23f5')]-0x1)*_0x17e59e[_0x25ac01('0x135a')][_0x25ac01('0x68e')];let _0x429155=_0x4da578[_0x25ac01('0x155e')][_0x25ac01('0xced')](_0x25ac01('0xba8')+_0x17e59e[_0x25ac01('0x9cb')]['id']);_0x429155=_0x429155?JSON['parse'](_0x429155):{},_0x429155[_0x25ac01('0x135a')]=_0x17e59e[_0x25ac01('0x135a')],_0x4da578[_0x25ac01('0x155e')][_0x25ac01('0x23dc')](_0x25ac01('0xba8')+_0x17e59e[_0x25ac01('0x9cb')]['id'],JSON[_0x25ac01('0x1be0')](_0x429155));if(_0x17e59e[_0x25ac01('0x135a')]['search'])_0x17e59e['advancedQuery']=_0x283545()[_0x25ac01('0x5a9')](_0x17e59e[_0x25ac01('0x135a')],'id');_0x17e59e[_0x25ac01('0x1808')]=_0x17e59e[_0x25ac01('0x135a')][_0x25ac01('0x470')]?_0x202ff5['cmContact'][_0x25ac01('0x1335')](_0x17e59e[_0x25ac01('0x1f9b')],_0x5a6187)[_0x25ac01('0x1714')]:_0x202ff5[_0x25ac01('0x1e6a')]['getContacts'](_0x17e59e[_0x25ac01('0x135a')],_0x5a6187)[_0x25ac01('0x1714')];}function _0x1a217e(_0x1247a7,_0x469ec1){const _0x26524d=_0x4ead8a;_0x5a669e[_0x26524d('0x7d0')]['vm'][_0x26524d('0x11eb')](_0x469ec1);}function _0x4aa97a(){_0x6b6b29();}function _0x280178(_0x3cdb0f,_0x2b367a){const _0x12dd39=_0x4ead8a;_0x29eb1d['show']({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x446818,'parent':angular[_0x12dd39('0x16b1')](_0x2454d9[_0x12dd39('0x945')]),'targetEvent':_0x3cdb0f,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x334727){const _0x1d2637=_0x12dd39;return _0x334727[_0x1d2637('0x2322')](_0x1d2637('0x7ea'),{'id':_0x2b367a['id']});}],'lists':[_0x12dd39('0x1318'),function(_0x369450){const _0x549963=_0x12dd39;return _0x369450['resolve']('user@getLists',{'id':_0x17e59e[_0x549963('0x9cb')]['id'],'fields':_0x549963('0x1338')});}]},'locals':{'contacts':_0x17e59e[_0x12dd39('0x14b')][_0x12dd39('0x25df')]}});}function _0x4f7eaa(_0x3a4965,_0x155c88){const _0x44aa1f=_0x4ead8a;_0x29eb1d['show']({'controller':_0x44aa1f('0x1344'),'controllerAs':'vm','templateUrl':_0x3c16f5,'parent':angular[_0x44aa1f('0x16b1')](_0x2454d9['body']),'targetEvent':_0x3a4965,'clickOutsideToClose':!![],'resolve':{'contact':[_0x44aa1f('0x1318'),function(_0x14cf4c){const _0x96fd84=_0x44aa1f;return _0x14cf4c[_0x96fd84('0x2322')](_0x96fd84('0x7ea'),{'id':_0x155c88['id']});}],'lists':[_0x44aa1f('0x1318'),function(_0x5a530a){const _0x33eea7=_0x44aa1f;return _0x5a530a[_0x33eea7('0x2322')]('user@getLists',{'id':_0x17e59e[_0x33eea7('0x9cb')]['id'],'fields':_0x33eea7('0x1338')});}]},'locals':{'contacts':_0x17e59e[_0x44aa1f('0x14b')][_0x44aa1f('0x25df')]}});}function _0x3031e8(){const _0x46b0f5=_0x4ead8a;_0x17e59e[_0x46b0f5('0x236d')]=![];}function _0x3560e8(){const _0x5c2f4c=_0x4ead8a;_0x17e59e[_0x5c2f4c('0x236d')]=!![];}function _0x24cf1e(){const _0x8713e1=_0x4ead8a;return _0x202ff5[_0x8713e1('0xa83')]['describe']({'id':_0x17e59e[_0x8713e1('0x135a')][_0x8713e1('0x354')]})[_0x8713e1('0x1714')][_0x8713e1('0x2788')](function(_0x45b6ed){const _0x2d82ae=_0x8713e1;return _0x283545()(_0x45b6ed[_0x2d82ae('0x1cbf')]())[_0x2d82ae('0x5a9')](_0x2d82ae('0x3bb'))['values']()[_0x2d82ae('0x155d')](function(_0x4605f9){return _0x1d8127(_0x4605f9);})[_0x2d82ae('0x49')]();})[_0x8713e1('0x2788')](function(_0x2b1c79){const _0x5f4462=_0x8713e1;_0x17e59e[_0x5f4462('0x1e13')][_0x5f4462('0x1578')]=_0x2b1c79;const _0x3b91ca={'name':'Tags','column':_0x5f4462('0x251d'),'type':'multiselect','options':{'route':{'model':_0x5f4462('0x1764'),'action':_0x5f4462('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5f4462('0x38b')]}};let _0x535c97=_0x283545()['findIndex'](_0x2b1c79,function(_0x3b6b04){const _0x5f587a=_0x5f4462;return _0x283545()['startsWith'](_0x3b6b04[_0x5f587a('0x1204')],_0x5f587a('0x249c'));})||_0x2b1c79[_0x5f4462('0x2566')]-0x1;if(_0x535c97<0x0)_0x535c97=_0x2b1c79['length'];_0x17e59e['advancedSearch'][_0x5f4462('0x1578')][_0x5f4462('0x722')](_0x535c97,0x0,_0x3b91ca);})['catch'](function(_0x476957){const _0x242513=_0x8713e1;_0x5b41c7[_0x242513('0x5e8')]({'title':_0x476957[_0x242513('0x1b51')]?'API:'+_0x476957[_0x242513('0x1b51')]+_0x242513('0x1b0b')+_0x476957['statusText']:_0x242513('0x1ab5'),'msg':_0x476957[_0x242513('0x11fc')]?JSON[_0x242513('0x1be0')](_0x476957[_0x242513('0x11fc')][_0x242513('0x15e2')]):_0x476957[_0x242513('0x17df')]()});});}function _0x1d8127(_0x4e3795){const _0x23d40c=_0x4ead8a,_0x41344b={'name':_0x283545()[_0x23d40c('0x114')](_0x4e3795[_0x23d40c('0x199b')]),'column':_0x4e3795[_0x23d40c('0x1495')],'options':{}};if(_0x4e3795[_0x23d40c('0x1d56')])switch(_0x4e3795['custom'][_0x23d40c('0x1d7')]){case'text':_0x41344b[_0x23d40c('0x1d7')]='text';break;case _0x23d40c('0x983'):_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x9a4'),_0x41344b['values']=_0x283545()['map'](JSON['parse'](_0x4e3795['custom'][_0x23d40c('0xc5')]),function(_0x4d403a,_0x4b7410){const _0x5a13fd=_0x23d40c;return{'id':_0x4b7410,'name':_0x4d403a[_0x5a13fd('0x49')],'value':_0x4d403a['value']};}),_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x18da')]=_0x23d40c('0x1a8d');break;case _0x23d40c('0xf9e'):_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x983'),_0x41344b['values']=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0x23d40c('0xfdc')}],_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x1788')]=[_0x23d40c('0x149c')];break;case _0x23d40c('0x272c'):_0x41344b[_0x23d40c('0x1d7')]='number';break;case _0x23d40c('0x1b54'):_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x1012');break;}else switch(_0x4e3795[_0x23d40c('0x1495')]){case'dateOfBirth':_0x41344b['type']=_0x23d40c('0x1012');break;case _0x23d40c('0x1dcb'):_0x41344b[_0x23d40c('0x1a8d')]=_0x23d40c('0x23a8'),_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x137e'),_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x44b')]={'model':'cmCompany','action':_0x23d40c('0x1335'),'params':{'fields':_0x23d40c('0x1338'),'nolimit':!![]}},_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x1db7')]=['name'],_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x1788')]=[_0x23d40c('0x149c')];break;case _0x23d40c('0x354'):_0x41344b['name']=_0x23d40c('0xef1'),_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x137e'),_0x41344b['options'][_0x23d40c('0x44b')]={'model':_0x23d40c('0x1e6a'),'action':'getLists','params':{'id':_0x17e59e[_0x23d40c('0x9cb')]['id'],'fields':_0x23d40c('0x1338'),'nolimit':!![]}},_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x1db7')]=['name'],_0x41344b[_0x23d40c('0x784')][_0x23d40c('0x1788')]=[_0x23d40c('0x149c')];break;default:if(_0x283545()[_0x23d40c('0x1d4e')](_0x4e3795[_0x23d40c('0x1d7')]['toLowerCase'](),_0x23d40c('0x339')))_0x41344b[_0x23d40c('0x1d7')]=_0x23d40c('0x272c');else _0x283545()[_0x23d40c('0x1d4e')](_0x4e3795[_0x23d40c('0x1d7')][_0x23d40c('0xc2e')](),_0x23d40c('0x1012'))?_0x41344b[_0x23d40c('0x1d7')]='date':_0x41344b['type']=_0x23d40c('0x16db');break;}return _0x41344b;}function _0x34eaa5(){const _0x1f5dd4=_0x4ead8a;_0x17e59e[_0x1f5dd4('0x236d')]=![],_0x29eb1d[_0x1f5dd4('0x2fa')]({'controller':_0x1f5dd4('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x1f5dd4('0x16b1')](_0x2454d9[_0x1f5dd4('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x17e59e[_0x1f5dd4('0x4ef')],'fields':_0x17e59e[_0x1f5dd4('0x1e13')]['fields'],'storagePath':_0x1f5dd4('0xc5c')},'fullscreen':!![]})['then'](function(_0xadb196){const _0x596fc6=_0x1f5dd4;_0x17e59e['query'][_0x596fc6('0x470')]=_0xadb196===![]?undefined:_0xadb196;if(_0xadb196===![])_0x6b6b29();else _0x17e59e[_0x596fc6('0x135a')][_0x596fc6('0x470')]&&(_0x17e59e[_0x596fc6('0x135a')][_0x596fc6('0x470')]+=_0x596fc6('0xece')+_0x17e59e[_0x596fc6('0x9cb')]['id']+']',_0x6b6b29());})[_0x1f5dd4('0x1cb5')](function(_0x2d6d80){const _0x57de6a=_0x1f5dd4;_0x5b41c7[_0x57de6a('0x5e8')]({'title':_0x57de6a('0x824'),'msg':_0x2d6d80['data']?JSON[_0x57de6a('0x1be0')](_0x2d6d80['data']['message']):_0x2d6d80[_0x57de6a('0x17df')]()});});}let _0x3600ed=!![],_0x2b791b=0x1;_0x5a669e[_0x4ead8a('0x1662')]('vm.query.filter',function(_0x28ade1,_0x44cca0){const _0x133873=_0x4ead8a;_0x3600ed?_0x8cfb29(function(){_0x3600ed=![];}):(!_0x44cca0&&(_0x2b791b=_0x17e59e[_0x133873('0x135a')]['page']),_0x28ade1!==_0x44cca0&&(_0x17e59e['query']['page']=0x1),!_0x28ade1&&(_0x17e59e[_0x133873('0x135a')]['page']=_0x2b791b),_0x6b6b29());});}const _0x324b5b=_0x9f9703;_0x345ae7[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),'$translate','api','Auth','socket',_0x34e79e('0xd57'),_0x34e79e('0x1902')];function _0x345ae7(_0x49255f,_0xad81ce,_0x3f7aae,_0x97a73e,_0x3ea6a1,_0x282cf9,_0x244c2b,_0x2c4fed,_0x248691,_0x43af54,_0x3463ea){const _0x339f3a=_0x34e79e,_0x2ead71=this;_0x2ead71[_0x339f3a('0x1e6a')]=_0x2c4fed[_0x339f3a('0x24cc')](),_0x2ead71[_0x339f3a('0x130d')]={},_0x2ead71[_0x339f3a('0x1af0')]={},_0x2ead71[_0x339f3a('0xe45')]={'count':0x0,'rows':[]},_0x2ead71[_0x339f3a('0x163d')]={'count':0x0,'rows':[]},_0x2ead71[_0x339f3a('0x135a')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x2ead71[_0x339f3a('0x1e13')]={'fields':[{'name':'Id','column':'id','type':_0x339f3a('0x272c')},{'name':_0x339f3a('0x1c64'),'column':_0x339f3a('0x1c64'),'type':'autocomplete','options':{'searchFields':['firstName','lastName','email'],'route':{'model':_0x339f3a('0xa83'),'action':_0x339f3a('0x1335'),'params':{'fields':_0x339f3a('0x1373'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x339f3a('0x1a77')],'excludedOperators':[_0x339f3a('0x149c')]}},{'name':_0x339f3a('0x1e8f'),'column':_0x339f3a('0x945'),'type':_0x339f3a('0x16db'),'options':{'excludedOperators':['$eq','$ne']}},{'name':_0x339f3a('0x21d8'),'column':_0x339f3a('0x215d'),'type':'select','values':[{'id':0x0,'translate':_0x339f3a('0xd6c')},{'id':0x1,'translate':_0x339f3a('0x977')}],'options':{'excludedOperators':[_0x339f3a('0x149c')]}},{'name':_0x339f3a('0x262d'),'column':'User','type':_0x339f3a('0x137e'),'options':{'table':'i','route':{'model':'user','action':_0x339f3a('0x1335'),'params':{'role':_0x339f3a('0x188b'),'fields':_0x339f3a('0x10fe'),'nolimit':!![]}},'searchFields':[_0x339f3a('0x2831'),_0x339f3a('0x1a8d')],'extraOperators':[_0x339f3a('0x1a77')],'excludedOperators':[_0x339f3a('0x149c')]}},{'name':'Account','column':_0x339f3a('0x22fa'),'type':_0x339f3a('0x9a4'),'options':{'route':{'model':_0x339f3a('0x1e6a'),'action':_0x339f3a('0x184'),'params':{'id':_0x2ead71[_0x339f3a('0x1e6a')]['id'],'nolimit':!![]}}}},{'name':_0x339f3a('0xbcf'),'column':_0x339f3a('0x251d'),'type':_0x339f3a('0x9a4'),'options':{'route':{'model':_0x339f3a('0x1764'),'action':_0x339f3a('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0x339f3a('0x38b')]}},{'name':_0x339f3a('0x9ac'),'column':'createdAt','type':_0x339f3a('0x1012'),'options':{'excludedOperators':[_0x339f3a('0x149c')]}},{'name':'Read','column':_0x339f3a('0xecd'),'type':_0x339f3a('0x983'),'values':[{'id':0x1,'translate':_0x339f3a('0x204a')},{'id':0x0,'translate':_0x339f3a('0xe54')}],'options':{'excludedOperators':[_0x339f3a('0x149c')]}}]},_0x2ead71[_0x339f3a('0x4ef')]=_0x339f3a('0xe4d'),_0x2ead71[_0x339f3a('0x122e')]=_0x7947cc,_0x2ead71['success']=_0x339900,_0x2ead71['getOpenchannelInteractions']=_0x235dbf,_0x2ead71[_0x339f3a('0x5fa')]=_0x13e15e,_0x2ead71[_0x339f3a('0xa7c')]=_0x38fa4c,_0x2ead71[_0x339f3a('0xcc4')]=_0x496d5d,_0x2ead71['getContactLabel']=_0x2fe850,_0x2ead71[_0x339f3a('0x704')]=_0x5e5c74,_0x2ead71['getOpenchannelAccountLabel']=_0x1d48c7,_0x2ead71['composeOpenchannelInteraction']=_0x57a267,_0x2ead71[_0x339f3a('0x956')]=_0x2da5a9,_0x2ead71['onSearchBarExpand']=_0x10b61d,_0x2ead71[_0x339f3a('0x27c6')]=_0x1d3cfc;function _0x7947cc(_0x4e5c7f,_0x57e6c8){const _0x2a1892=_0x339f3a;return _0x2ead71[_0x2a1892('0x130d')]=_0x4e5c7f,_0x2ead71['setting']=_0x57e6c8,_0x244c2b[_0x2a1892('0x1e6a')][_0x2a1892('0x1335')+_0x283545()[_0x2a1892('0x2265')](_0x2a1892('0x1e10'))]({'id':_0x2ead71['user']['id'],'nolimit':!![]})[_0x2a1892('0x1714')][_0x2a1892('0x2788')](function(_0x3afaa7){const _0x648b02=_0x2a1892;return _0x2ead71[_0x648b02('0x1e10')]=_0x3afaa7||{'count':0x0,'rows':[]},_0x244c2b['tag'][_0x648b02('0x1335')]()[_0x648b02('0x1714')];})['then'](function(_0x1f5116){_0x2ead71['tags']=_0x1f5116||{'count':0x0,'rows':[]};})['then'](function(){const _0x3629a9=_0x2a1892;_0x2ead71[_0x3629a9('0xa28')]=_0x3e7647();})['catch'](function(_0x1f86e2){console['error'](_0x1f86e2);})[_0x2a1892('0x1ed8')](function(){const _0x5f3091=_0x2a1892;let _0x54d500=_0x3ea6a1[_0x5f3091('0x155e')]['getItem'](_0x5f3091('0x1eb1')+_0x2ead71['user']['id']);if(_0x54d500)try{_0x54d500=JSON[_0x5f3091('0xe0b')](_0x54d500);if(_0x54d500[_0x5f3091('0x135a')]){_0x2ead71['query']=_0x283545()[_0x5f3091('0x2503')](_0x2ead71['query'],_0x54d500[_0x5f3091('0x135a')]);if(_0x283545()[_0x5f3091('0x213d')](_0x2ead71[_0x5f3091('0x1e10')][_0x5f3091('0x25df')]))_0x2ead71[_0x5f3091('0x135a')][_0x5f3091('0x22fa')]=[];else _0x283545()['isEmpty'](_0x2ead71[_0x5f3091('0x135a')]['OpenchannelAccountId'])&&(_0x2ead71[_0x5f3091('0x135a')][_0x5f3091('0x22fa')]=_0x283545()(_0x2ead71[_0x5f3091('0x1e10')][_0x5f3091('0x25df')])['map']('id')[_0x5f3091('0x212b')]()[_0x5f3091('0x49')]());_0x2ead71['query'][_0x5f3091('0x2119')]&&_0x2ead71[_0x5f3091('0x135a')][_0x5f3091('0x2119')][_0x5f3091('0x821')](_0x5f3091('0x136d'))>=0x0&&(_0x2ead71[_0x5f3091('0x135a')]=_0x283545()['omit'](_0x2ead71['query'],_0x5f3091('0x2119'))),_0x2ead71[_0x5f3091('0x135a')][_0x5f3091('0xc9d')]=!![],_0x2ead71[_0x5f3091('0x236d')]=_0x2ead71[_0x5f3091('0x135a')][_0x5f3091('0x916')]?!![]:![];}}catch(_0x29ffe7){console[_0x5f3091('0x5e8')](_0x29ffe7);}else{const _0x4ac0cb={'$gte':_0x59f37a()()[_0x5f3091('0x13e4')](_0x5f3091('0x2dc'))[_0x5f3091('0x2827')](0x0,!![])[_0x5f3091('0x22b4')](),'$lte':_0x59f37a()()['endOf'](_0x5f3091('0x2dc'))[_0x5f3091('0x2827')](0x0,!![])[_0x5f3091('0x22b4')]()},_0x2e6125={'OpenchannelAccountId':_0x283545()['map'](_0x2ead71['openchannelAccounts']['rows'],'id'),'createdAt':_0x4ac0cb};_0x2ead71[_0x5f3091('0x135a')]=_0x283545()[_0x5f3091('0x2503')](_0x2ead71[_0x5f3091('0x135a')],_0x2e6125);}_0x248691['on'](_0x5f3091('0x15b0'),_0x432e84),_0x248691['on'](_0x5f3091('0x17cf'),_0x432e84),_0x248691['on']('openchannelInteractionTags:save',_0x4df556),_0x248691['on'](_0x5f3091('0x1c63'),_0x332347),_0x248691['on']('openchannelMessage:update',_0x332347),_0x248691['on'](_0x5f3091('0x200e'),_0x3d30a9),_0x248691['on'](_0x5f3091('0xbff'),_0x1aae28),_0x235dbf(_0x2ead71['query'][_0x5f3091('0x23f5')]);});}function _0x3e7647(){const _0x47a380=_0x339f3a;return[{'name':_0x47a380('0x9ac'),'key':'createdAt','type':_0x47a380('0x1012'),'label':_0x47a380('0x1664')},{'name':_0x47a380('0x1f77'),'key':'read','type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x47a380('0xe54')},{'value':0x1,'translate':_0x47a380('0x204a')},{'value':null,'translate':_0x47a380('0xc79')}]},{'name':_0x47a380('0x21d8'),'key':_0x47a380('0x215d'),'type':_0x47a380('0x983'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x47a380('0xd6c')},{'value':0x1,'translate':_0x47a380('0x977')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x47a380('0x140b'),'key':_0x47a380('0x22fa'),'type':_0x47a380('0x9a4'),'label':_0x47a380('0x18c5'),'options':_0x2ead71[_0x47a380('0x1e10')][_0x47a380('0x25df')],'clearAll':![]},{'name':_0x47a380('0x262d'),'key':_0x47a380('0x3bb'),'type':_0x47a380('0x983'),'label':_0x47a380('0x2bd'),'customOptions':[{'value':_0x2ead71[_0x47a380('0x1e6a')]['id'],'translate':_0x47a380('0x3a8')},{'value':_0x47a380('0x954'),'translate':_0x47a380('0xce3')},{'value':undefined,'translate':_0x47a380('0xc79')}]},{'name':_0x47a380('0x251d'),'key':_0x47a380('0x1764'),'type':_0x47a380('0x9a4'),'label':_0x47a380('0xa54'),'options':_0x2ead71[_0x47a380('0xe45')][_0x47a380('0x25df')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x339900(_0x54995f){const _0x42b86c=_0x339f3a;_0x2ead71[_0x42b86c('0x2849')]=![],_0x2ead71[_0x42b86c('0x163d')]=_0x54995f||{'count':0x0,'rows':[]};for(let _0x5434c9=0x0;_0x5434c9<_0x2ead71[_0x42b86c('0x163d')][_0x42b86c('0x25df')][_0x42b86c('0x2566')];_0x5434c9+=0x1){_0x2fe850(_0x2ead71[_0x42b86c('0x163d')]['rows'][_0x5434c9]);}}function _0x235dbf(_0x42d54e){const _0x1433a6=_0x339f3a;_0x2ead71[_0x1433a6('0x2849')]=!![];!_0x42d54e&&(_0x2ead71['query'][_0x1433a6('0x23f5')]=0x1);_0x2ead71[_0x1433a6('0x135a')][_0x1433a6('0x19e')]=(_0x2ead71[_0x1433a6('0x135a')][_0x1433a6('0x23f5')]-0x1)*_0x2ead71[_0x1433a6('0x135a')][_0x1433a6('0x68e')];let _0x1e5bc2=_0x3ea6a1['localStorage'][_0x1433a6('0xced')](_0x1433a6('0x1eb1')+_0x2ead71[_0x1433a6('0x1e6a')]['id']);_0x1e5bc2=_0x1e5bc2?JSON[_0x1433a6('0xe0b')](_0x1e5bc2):{},_0x1e5bc2[_0x1433a6('0x135a')]=_0x2ead71['query'],_0x3ea6a1[_0x1433a6('0x155e')]['setItem'](_0x1433a6('0x1eb1')+_0x2ead71[_0x1433a6('0x1e6a')]['id'],JSON['stringify'](_0x1e5bc2)),_0x2ead71['promise']=_0x244c2b['openchannelInteraction'][_0x1433a6('0x1335')](_0x2ead71[_0x1433a6('0x135a')],_0x339900)[_0x1433a6('0x1714')];}function _0x13e15e(_0xc5db9d,_0x2b2b7a){const _0x42d6f1=_0x339f3a;_0x49255f[_0x42d6f1('0x7d0')]['vm'][_0x42d6f1('0x1442')]('openchannel',_0x2b2b7a);}function _0x38fa4c(_0x178818,_0x3ebb41,_0x39b5cc){const _0x4f8269=_0x339f3a;_0x244c2b[_0x4f8269('0x1989')][_0x4f8269('0x1486')]({'id':_0x3ebb41['id'],'attachments':_0x39b5cc})[_0x4f8269('0x1714')][_0x4f8269('0x2788')](function(_0x5e43d0){const _0xa375aa=_0x4f8269,_0x124c0b=[_0x5e43d0[_0xa375aa('0x3f1')]],_0x424f69=_0xa375aa('0x528')+_0x3ebb41['id']+_0xa375aa('0xfdb'),_0x5c2c24=new Blob(_0x124c0b,{'type':_0x5e43d0['type']}),_0x16cd9d=window[_0xa375aa('0x11c4')][_0xa375aa('0x1ae6')]('a');_0x16cd9d['setAttribute'](_0xa375aa('0x186a'),URL[_0xa375aa('0x1b0d')](_0x5c2c24)),_0x16cd9d[_0xa375aa('0x1c6b')]('download',_0x424f69),document['body'][_0xa375aa('0xcbf')](_0x16cd9d),_0x16cd9d[_0xa375aa('0x132a')]();})[_0x4f8269('0x1cb5')](function(_0x2b82d2){const _0x4f4771=_0x4f8269;if(_0x2b82d2['data']&&_0x2b82d2[_0x4f4771('0x11fc')][_0x4f4771('0x25be')]&&_0x2b82d2['data'][_0x4f4771('0x25be')][_0x4f4771('0x2566')])for(let _0x4df743=0x0;_0x4df743<_0x2b82d2[_0x4f4771('0x11fc')]['errors'][_0x4f4771('0x2566')];_0x4df743+=0x1){_0x43af54['error']({'title':_0x2b82d2[_0x4f4771('0x11fc')][_0x4f4771('0x25be')][_0x4df743]['type'],'msg':_0x2b82d2[_0x4f4771('0x11fc')][_0x4f4771('0x25be')][_0x4df743][_0x4f4771('0x15e2')]});}else _0x43af54[_0x4f4771('0x5e8')]({'title':_0x2b82d2['status']?_0x4f4771('0x15d1')+_0x2b82d2[_0x4f4771('0x1b51')]+_0x4f4771('0x1b0b')+_0x2b82d2['statusText']:_0x4f4771('0xa7c'),'msg':_0x2b82d2[_0x4f4771('0x11fc')]?JSON[_0x4f4771('0x1be0')](_0x2b82d2[_0x4f4771('0x11fc')][_0x4f4771('0x15e2')]):_0x2b82d2[_0x4f4771('0x17df')]()});});}function _0x496d5d(_0x4d6752,_0x51b9f4){const _0x67d8ca=_0x339f3a,_0x1609d5=_0x2ead71['user']['voicePause']||_0x2ead71[_0x67d8ca('0x1e6a')]['chatPause']||_0x2ead71['user'][_0x67d8ca('0x20cd')]||_0x2ead71[_0x67d8ca('0x1e6a')][_0x67d8ca('0x1098')]||_0x2ead71[_0x67d8ca('0x1e6a')]['faxPause'],_0xb4f095=!_0x51b9f4['Account']['mandatoryDisposition'];_0x3f7aae[_0x67d8ca('0x2fa')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x18e570,'parent':angular['element'](_0x97a73e['body']),'clickOutsideToClose':_0xb4f095,'escapeToClose':_0xb4f095,'onRemoving':function(){const _0x316aab=_0x67d8ca;_0x2ead71[_0x316aab('0x1e6a')]&&_0x51b9f4['Account'][_0x316aab('0x1c86')]&&!_0x1609d5&&_0x244c2b['user']['unpause']({'id':_0x2ead71[_0x316aab('0x1e6a')]['id']})[_0x316aab('0x1714')][_0x316aab('0x1cb5')](function(_0x196cf3){const _0x1fe334=_0x316aab;console[_0x1fe334('0x5e8')](_0x196cf3);});},'locals':{'user':_0x2ead71[_0x67d8ca('0x1e6a')],'channel':'openchannel','interaction':_0x51b9f4}});}function _0x2fe850(_0x500c62){const _0x391e75=_0x339f3a;if(_0x500c62[_0x391e75('0x444')])_0x500c62[_0x391e75('0x497')]=_0x500c62[_0x391e75('0x444')];else _0x500c62[_0x391e75('0x1c64')]?_0x500c62[_0x391e75('0x497')]=(_0x500c62[_0x391e75('0x1c64')]['firstName']||'')+'\x20'+(_0x500c62[_0x391e75('0x1c64')][_0x391e75('0x26b9')]||''):_0x500c62[_0x391e75('0x497')]=_0x282cf9[_0x391e75('0x1b11')](_0x391e75('0x2185'));}function _0x5e5c74(_0xa27c3c){const _0x43db58=_0x339f3a;if(_0xa27c3c[_0x43db58('0x3bb')])return _0xa27c3c[_0x43db58('0x3bb')]===_0x2ead71[_0x43db58('0x1e6a')]['id']?_0x282cf9[_0x43db58('0x1b11')](_0x43db58('0x3a8')):_0xa27c3c[_0x43db58('0xe42')][_0x43db58('0x2831')]+'\x20<'+_0xa27c3c[_0x43db58('0xe42')][_0x43db58('0x2838')]+'>';return _0x282cf9['instant'](_0x43db58('0xce3'));}function _0x1d48c7(_0x2a9918){const _0x1d749e=_0x339f3a;if(_0x2a9918[_0x1d749e('0x140b')])return _0x2a9918['Account'][_0x1d749e('0x234b')];return _0x282cf9[_0x1d749e('0x1b11')](_0x1d749e('0x2185'));}function _0x57a267(_0x57dca1,_0x5e8065){const _0xa0074=_0x339f3a;_0x3f7aae[_0xa0074('0x2fa')]({'controller':_0xa0074('0x7a4'),'controllerAs':'vm','templateUrl':_0x414412,'parent':angular[_0xa0074('0x16b1')](_0x97a73e['body']),'clickOutsideToClose':![],'locals':{'account':_0x5e8065,'message':{},'type':_0xa0074('0x259d'),'interaction':{}},'fullscreen':!![]})[_0xa0074('0x2788')](function(_0x33d83b){const _0xc117a2=_0xa0074;if(_0x33d83b){if(_0x33d83b[_0xc117a2('0x15e2')]&&_0x33d83b['message'][_0xc117a2('0x326')]){const _0x140a8c={'channel':_0xc117a2('0x18aa'),'account':_0x5e8065,'message':_0x33d83b[_0xc117a2('0x15e2')],'contact':_0x33d83b['contact']};_0x3463ea[_0xc117a2('0x9b8')](_0x140a8c);}else{const _0x4b1cad=_0x33d83b;return _0x244c2b[_0xc117a2('0xfba')][_0xc117a2('0x1fc9')]({'id':_0x5e8065['id']},_0x4b1cad)[_0xc117a2('0x1714')][_0xc117a2('0x2788')](function(_0xa23b39){const _0x2d5f9b=_0xc117a2;_0x43af54[_0x2d5f9b('0x173b')]({'title':'Message\x20properly\x20sent!','msg':_0x2d5f9b('0x65b')}),_0x49255f[_0x2d5f9b('0x7d0')]['vm']['addInteractionTab']('openchannel',_0xa23b39);})[_0xc117a2('0x1cb5')](function(_0x3e17de){const _0x2ae501=_0xc117a2;if(_0x3e17de[_0x2ae501('0x11fc')]&&_0x3e17de[_0x2ae501('0x11fc')]['errors']&&_0x3e17de['data'][_0x2ae501('0x25be')]['length'])for(let _0x57b869=0x0;_0x57b869<_0x3e17de[_0x2ae501('0x11fc')]['errors']['length'];_0x57b869++){_0x43af54[_0x2ae501('0x5e8')]({'title':_0x3e17de[_0x2ae501('0x11fc')][_0x2ae501('0x25be')][_0x57b869][_0x2ae501('0x1d7')],'msg':_0x3e17de[_0x2ae501('0x11fc')]['errors'][_0x57b869][_0x2ae501('0x15e2')]});}else _0x43af54['error']({'title':_0x3e17de[_0x2ae501('0x1b51')]?_0x2ae501('0x15d1')+_0x3e17de['status']+_0x2ae501('0x1b0b')+_0x3e17de[_0x2ae501('0x22ce')]:'OPENCHANNELACCOUNT:SEND','msg':_0x3e17de['data']?JSON['stringify'](_0x3e17de['data'][_0x2ae501('0x15e2')]):_0x3e17de[_0x2ae501('0x15e2')]||_0x3e17de[_0x2ae501('0x17df')]()});});}}});}function _0x3d30a9(_0x561b3b){const _0xb613e7=_0x339f3a;let _0x2ad2b2;const _0x36bd7f=_0x283545()[_0xb613e7('0x20e8')](_0x2ead71['openchannelInteractions'][_0xb613e7('0x25df')],{'id':_0x561b3b[_0xb613e7('0x54d')]});_0x36bd7f&&_0x36bd7f[_0xb613e7('0x23f4')]&&(_0x2ad2b2=_0x283545()[_0xb613e7('0x20e8')](_0x36bd7f[_0xb613e7('0x23f4')],{'id':_0x561b3b[_0xb613e7('0x3bb')]}),!_0x2ad2b2&&_0x36bd7f[_0xb613e7('0x23f4')][_0xb613e7('0x13e3')]({'id':_0x561b3b[_0xb613e7('0x3bb')]}));}function _0x1aae28(_0x57956e){const _0x1437ea=_0x339f3a,_0x21d11e=_0x283545()[_0x1437ea('0x20e8')](_0x2ead71['openchannelInteractions'][_0x1437ea('0x25df')],{'id':_0x57956e[_0x1437ea('0x54d')]});_0x21d11e&&_0x21d11e[_0x1437ea('0x23f4')]&&_0x283545()['remove'](_0x21d11e[_0x1437ea('0x23f4')],{'id':_0x57956e['UserId']});}function _0x432e84(_0x465910){const _0x31b155=_0x339f3a;if(_0x465910){const _0xb4593f=_0x283545()[_0x31b155('0x20e8')](_0x2ead71['openchannelInteractions']['rows'],{'id':_0x465910['id']});if(_0xb4593f){_0xb4593f['Users']=[];_0x465910[_0x31b155('0x215d')]&&(_0xb4593f['unreadMessages']=0x0);if(_0x2ead71[_0x31b155('0x135a')][_0x31b155('0x2119')]){const _0x57e97e=_0x283545()[_0x31b155('0x993')](_0x2ead71[_0x31b155('0x135a')][_0x31b155('0x2119')],'-')?'desc':'asc';_0x2ead71['openchannelInteractions'][_0x31b155('0x25df')]=_0x283545()[_0x31b155('0xf87')](_0x2ead71[_0x31b155('0x163d')][_0x31b155('0x25df')],_0x283545()[_0x31b155('0x19c2')](_0x2ead71[_0x31b155('0x135a')]['sort'],'-'),_0x57e97e);}_0x283545()['merge'](_0xb4593f,_0x283545()[_0x31b155('0x41b')](_0x465910,_0x283545()[_0x31b155('0x2163')](_0xb4593f)));}else _0x235dbf(_0x2ead71[_0x31b155('0x135a')][_0x31b155('0x23f5')]);}}function _0x4df556(_0x1cce09){const _0x55cb56=_0x339f3a;if(_0x1cce09){const _0x29f1af=_0x283545()[_0x55cb56('0x20e8')](_0x2ead71[_0x55cb56('0x163d')][_0x55cb56('0x25df')],{'id':_0x1cce09['id']});_0x29f1af&&(_0x29f1af[_0x55cb56('0xbcf')]=_0x1cce09[_0x55cb56('0xe45')]||[],_0x283545()['merge'](_0x29f1af,_0x283545()['pick'](_0x1cce09,_0x283545()[_0x55cb56('0x2163')](_0x29f1af))));}}function _0x332347(_0x2341b4){const _0x42e311=_0x339f3a;if(_0x2341b4&&!_0x2341b4[_0x42e311('0x2685')]){const _0x2f0222=_0x283545()[_0x42e311('0x20e8')](_0x2ead71[_0x42e311('0x163d')]['rows'],{'id':_0x2341b4['OpenchannelInteractionId']});if(_0x2f0222){const _0x48612c=_0x283545()[_0x42e311('0x20e8')](_0x2f0222[_0x42e311('0x1f77')],{'id':_0x2341b4['id']});_0x48612c?_0x283545()[_0x42e311('0x2503')](_0x48612c,_0x283545()[_0x42e311('0x41b')](_0x2341b4,_0x283545()['keys'](_0x48612c))):(_0x283545()['isNil'](_0x2f0222['Messages'])&&(_0x2f0222[_0x42e311('0x1f77')]={'count':0x0}),!_0x2341b4['read']&&(_0x2f0222[_0x42e311('0x1f77')][_0x42e311('0x338')]+=0x1));}}}function _0x2da5a9(){_0x2ead71['isSearchBarVisible']=![];}function _0x10b61d(){const _0x452bea=_0x339f3a;_0x2ead71[_0x452bea('0x236d')]=!![];}function _0x1d3cfc(){const _0xcd3447=_0x339f3a;_0x2ead71[_0xcd3447('0x236d')]=![],_0x3f7aae['show']({'controller':_0xcd3447('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0xcd3447('0x16b1')](_0x97a73e[_0xcd3447('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x2ead71[_0xcd3447('0x4ef')],'fields':_0x2ead71[_0xcd3447('0x1e13')]['fields'],'storagePath':_0xcd3447('0x951')},'fullscreen':!![]})['then'](function(_0x3b4860){const _0x26c6f0=_0xcd3447;_0x2ead71[_0x26c6f0('0x135a')][_0x26c6f0('0x470')]=_0x3b4860===![]?undefined:_0x3b4860;if(_0x2ead71[_0x26c6f0('0x135a')][_0x26c6f0('0x470')]||_0x3b4860===![])_0x235dbf();})[_0xcd3447('0x1cb5')](function(_0x48b249){const _0x373cb4=_0xcd3447;_0x43af54['error']({'title':'ERROR','msg':_0x48b249[_0x373cb4('0x11fc')]?JSON['stringify'](_0x48b249['data'][_0x373cb4('0x15e2')]):_0x48b249[_0x373cb4('0x17df')]()});});}let _0x59052a=!![],_0x3cc709=0x1;_0x49255f['$watch'](_0x339f3a('0x1569'),function(_0x37491e,_0x307509){const _0x5ac603=_0x339f3a;_0x59052a?_0xad81ce(function(){_0x59052a=![];}):(!_0x307509&&(_0x3cc709=_0x2ead71['query']['page']),_0x37491e!==_0x307509&&(_0x2ead71[_0x5ac603('0x135a')][_0x5ac603('0x23f5')]=0x1),!_0x37491e&&(_0x2ead71[_0x5ac603('0x135a')][_0x5ac603('0x23f5')]=_0x3cc709),_0x235dbf(_0x2ead71[_0x5ac603('0x135a')][_0x5ac603('0x23f5')]));}),_0x49255f[_0x339f3a('0x651')](_0x339f3a('0x26ac'),function(){const _0x4ae9f9=_0x339f3a;_0x248691[_0x4ae9f9('0x277f')](_0x4ae9f9('0x1c63')),_0x248691['removeAllListeners'](_0x4ae9f9('0x1e5e')),_0x248691['removeAllListeners'](_0x4ae9f9('0x15b0')),_0x248691[_0x4ae9f9('0x277f')](_0x4ae9f9('0x20a5')),_0x248691[_0x4ae9f9('0x277f')](_0x4ae9f9('0x17cf')),_0x248691[_0x4ae9f9('0x277f')]('user_has_openchannel_interactions:save'),_0x248691[_0x4ae9f9('0x277f')](_0x4ae9f9('0xbff'));});}const _0x4ded2c=_0x345ae7;_0x5a5841['$inject']=[_0x34e79e('0x1580'),'$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0xad0'),_0x34e79e('0x1750'),_0x34e79e('0x1b04')];function _0x5a5841(_0x43baf9,_0x46dee3,_0x2e5dc4,_0xd63761,_0x3e3fcc,_0x36662f,_0x548ffe){const _0x2f4536=_0x34e79e,_0x519fe4=this;_0x519fe4['currentUser']=_0x548ffe[_0x2f4536('0x24cc')](),_0x519fe4[_0x2f4536('0x1c5')]={};function _0x520d45(_0x5d0b13,_0x41b24f,_0xb784df){const _0x3c2691=_0x2f4536;_0x519fe4[_0x3c2691('0x130d')]=_0x5d0b13,_0x519fe4[_0x3c2691('0x1af0')]=_0x41b24f,_0x519fe4['plugin']=_0xb784df;}function _0x2daaa9(){const _0x10dc2f=_0x2f4536;return _0x36662f[_0x10dc2f('0x283c')](_0x519fe4[_0x10dc2f('0x1c5')][_0x10dc2f('0x849')]);}_0x46dee3[_0x2f4536('0x651')](_0x2f4536('0x26ae'),function(_0x18c18a,_0x568cc2){const _0x593fa1=_0x2f4536;_0x519fe4[_0x593fa1('0x1c5')]=_0x568cc2['plugin'];}),_0x519fe4['onInit']=_0x520d45,_0x519fe4[_0x2f4536('0x14c6')]=_0x2daaa9,_0x520d45();}const _0x25f2e2=_0x5a5841;_0x253d8a[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x446'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x253d8a(_0x4a5fe1,_0x4d234e,_0x34ac15,_0x51bad0,_0x4b935f,_0x17d5a2){const _0x31177f=_0x34e79e,_0x1c837f=this;_0x1c837f['currentUser']=_0x17d5a2[_0x31177f('0x24cc')](),_0x1c837f[_0x31177f('0x2527')]={},_0x1c837f[_0x31177f('0x26a9')]=_0x31177f('0x2527'),_0x1c837f[_0x31177f('0x135a')]={'UserId':_0x1c837f[_0x31177f('0x9cb')]['id'],'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','sort':'-updatedAt','limit':0xa,'page':0x1,'type':null},_0x1c837f[_0x31177f('0x25ea')]=_0x255997,_0x1c837f[_0x31177f('0xa41')]=_0x4c1b03,_0x1c837f['success']=_0x4bb088,_0x1c837f[_0x31177f('0x1499')]=_0xb503ea,_0x1c837f[_0x31177f('0x122e')]=_0x298cf3,_0x1c837f[_0x31177f('0x956')]=_0x1104bd,_0x1c837f[_0x31177f('0x5ca')]=_0x364f98;function _0x298cf3(){const _0x5f3404=_0x31177f;_0x1c837f[_0x5f3404('0xa28')]=_0xab37ce();let _0x5e0c7f=_0x4d234e[_0x5f3404('0x155e')]['getItem']('motion2.home.recordings:'+_0x1c837f[_0x5f3404('0x9cb')]['id']);if(_0x5e0c7f)try{_0x5e0c7f=JSON[_0x5f3404('0xe0b')](_0x5e0c7f),_0x5e0c7f[_0x5f3404('0x135a')]&&(_0x1c837f[_0x5f3404('0x135a')]=_0x283545()['omit'](_0x5e0c7f[_0x5f3404('0x135a')],[_0x5f3404('0x916'),'id']),_0x1c837f['query'][_0x5f3404('0x1578')]=_0x5f3404('0xe5b'),_0x1c837f['query'][_0x5f3404('0x3bb')]=_0x1c837f[_0x5f3404('0x9cb')]['id']);}catch(_0x59247e){console['error'](_0x59247e);}else{const _0x2ab42={'$gte':_0x59f37a()()[_0x5f3404('0x13e4')](_0x5f3404('0x2dc'))['utcOffset'](0x0,!![])[_0x5f3404('0x22b4')](),'$lte':_0x59f37a()()['endOf'](_0x5f3404('0x2dc'))[_0x5f3404('0x2827')](0x0,!![])[_0x5f3404('0x22b4')]()};_0x1c837f[_0x5f3404('0x135a')]['createdAt']=_0x2ab42;}_0x1c837f['isSearchBarVisible']=_0x1c837f[_0x5f3404('0x135a')][_0x5f3404('0x916')]?!![]:![],_0x1c837f[_0x5f3404('0x1499')]();}function _0x255997(_0x1f91a7){const _0x45f635=_0x31177f;return _0x51bad0['voiceRecording'][_0x45f635('0x1486')]({'id':_0x1f91a7['id'],'exists':!![]})[_0x45f635('0x1714')]['then'](function(_0x11df90){const _0x30cdef=_0x45f635,_0x4df253=[_0x11df90[_0x30cdef('0x3f1')]],_0x1a81bf=new Blob(_0x4df253,{'type':_0x11df90['type']}),_0x2ca7db=window['document']['createElement']('a');_0x2ca7db[_0x30cdef('0x1c6b')](_0x30cdef('0x186a'),URL[_0x30cdef('0x1b0d')](_0x1a81bf)),_0x2ca7db[_0x30cdef('0x1c6b')]('download',_0x1f91a7[_0x30cdef('0x1be7')]+_0x1f91a7[_0x30cdef('0x22b4')]),_0x2ca7db[_0x30cdef('0x132a')]();})[_0x45f635('0x1cb5')](function(_0x33065d){const _0x16809b=_0x45f635;_0x4b935f[_0x16809b('0x5e8')]({'title':_0x33065d[_0x16809b('0x1b51')]?'API:'+_0x33065d[_0x16809b('0x1b51')]+_0x16809b('0x1b0b')+_0x33065d[_0x16809b('0x22ce')]:'SYSTEM:GETvoiceRecording','msg':_0x33065d['data']?JSON[_0x16809b('0x1be0')](_0x33065d[_0x16809b('0x11fc')]):_0x33065d[_0x16809b('0x17df')]()});});}function _0x4c1b03(_0x3f51bd){const _0x4a374c=_0x31177f;return _0x51bad0[_0x4a374c('0x14ff')][_0x4a374c('0xaba')]({'id':_0x3f51bd['id']})[_0x4a374c('0x1714')][_0x4a374c('0x2788')](function(_0x4f9e5a){const _0x452ec7=_0x4a374c,_0x1129e6=[_0x4f9e5a['buffer']];let _0x1b171d=_0x452ec7('0x1486');const _0x3f8e03=new Blob(_0x1129e6,{'type':_0x4f9e5a[_0x452ec7('0x1d7')]});_0x1b171d=_0x3f51bd[_0x452ec7('0x1be7')];const _0x255349=window[_0x452ec7('0x11c4')]['createElement']('a');_0x255349['setAttribute'](_0x452ec7('0x186a'),URL[_0x452ec7('0x1b0d')](_0x3f8e03)),_0x255349['setAttribute'](_0x452ec7('0x1486'),_0x1b171d),document[_0x452ec7('0x945')][_0x452ec7('0xcbf')](_0x255349),_0x255349[_0x452ec7('0x132a')]();})[_0x4a374c('0x1cb5')](function(_0x3fadcf){const _0x4e360d=_0x4a374c;_0x4b935f[_0x4e360d('0x5e8')]({'title':_0x3fadcf[_0x4e360d('0x1b51')]?_0x4e360d('0x15d1')+_0x3fadcf[_0x4e360d('0x1b51')]+_0x4e360d('0x1b0b')+_0x3fadcf[_0x4e360d('0x22ce')]:'SYSTEM:GETvoiceRecording','msg':_0x3fadcf[_0x4e360d('0x11fc')]?JSON['stringify'](_0x3fadcf[_0x4e360d('0x11fc')]):_0x3fadcf[_0x4e360d('0x17df')]()});});}function _0xab37ce(){const _0x1ead3b=_0x31177f;return[{'name':_0x1ead3b('0x9ac'),'key':_0x1ead3b('0x172'),'type':_0x1ead3b('0x1012'),'label':_0x1ead3b('0x1664')},{'name':'Type','key':_0x1ead3b('0x1d7'),'type':_0x1ead3b('0x983'),'label':'VOICE.SELECT_TYPE','customOptions':[{'value':_0x1ead3b('0x2838'),'translate':_0x1ead3b('0xe7a')},{'value':_0x1ead3b('0x2e4'),'translate':'VOICE.INBOUND'},{'value':_0x1ead3b('0x1'),'translate':'VOICE.OUTBOUND'},{'value':_0x1ead3b('0x79c'),'translate':_0x1ead3b('0x117c')},{'value':null,'translate':_0x1ead3b('0xdfc')}]}];}function _0x4bb088(_0x5f43a8){const _0x532850=_0x31177f;_0x1c837f[_0x532850('0x2849')]=![],_0x1c837f[_0x532850('0x2527')]=_0x5f43a8||{'count':0x0,'rows':[]};}function _0xb503ea(){const _0x150907=_0x31177f;_0x1c837f[_0x150907('0x2849')]=!![],_0x1c837f[_0x150907('0x135a')][_0x150907('0x19e')]=(_0x1c837f[_0x150907('0x135a')][_0x150907('0x23f5')]-0x1)*_0x1c837f[_0x150907('0x135a')]['limit'];const _0xf724ed={'query':_0x1c837f[_0x150907('0x135a')]};_0x4d234e['localStorage'][_0x150907('0x23dc')](_0x150907('0x1da2')+_0x1c837f[_0x150907('0x9cb')]['id'],JSON[_0x150907('0x1be0')](_0xf724ed)),_0x1c837f[_0x150907('0x1808')]=_0x51bad0[_0x150907('0x14ff')][_0x150907('0x1335')](_0x1c837f['query'],_0x4bb088)[_0x150907('0x1714')];}function _0x1104bd(){const _0x21a20e=_0x31177f;_0x1c837f['query'][_0x21a20e('0x916')]=undefined,_0x1c837f[_0x21a20e('0x236d')]=![];}function _0x364f98(){const _0xcfb75c=_0x31177f;_0x1c837f[_0xcfb75c('0x236d')]=!![];}let _0x3c3705=!![],_0x1aef29=0x1;_0x4a5fe1[_0x31177f('0x1662')](_0x31177f('0x1569'),function(_0x2447b7,_0x360dee){const _0x176fcc=_0x31177f;_0x3c3705?_0x34ac15(function(){_0x3c3705=![];}):(!_0x360dee&&(_0x1aef29=_0x1c837f[_0x176fcc('0x135a')][_0x176fcc('0x23f5')]),_0x2447b7!==_0x360dee&&(_0x1c837f[_0x176fcc('0x135a')][_0x176fcc('0x23f5')]=0x1),!_0x2447b7&&(_0x1c837f['query']['page']=_0x1aef29),_0x1c837f['getVoiceRecordings']());});}const _0x2453d8=_0x253d8a,_0x43358b=_0x18dd13['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html';_0x2f38f8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x2f38f8(_0x62a63b,_0x3b9e77,_0x4cab0f,_0x26d9af,_0x5ccca5,_0x38cb2d,_0x200c08,_0x7aceec){const _0x4aedad=_0x34e79e,_0x3bd0f7=this;_0x3bd0f7['currentUser']=_0x7aceec[_0x4aedad('0x24cc')](),_0x3bd0f7['priorities']=[_0x4aedad('0x15a7'),_0x4aedad('0x90e'),_0x4aedad('0x1a07'),_0x4aedad('0x1653'),'Highest'],_0x3bd0f7[_0x4aedad('0xe28')]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x3bd0f7[_0x4aedad('0xa96')]={},_0x3bd0f7[_0x4aedad('0x135a')]={'id':_0x3bd0f7[_0x4aedad('0x9cb')]['id'],'fields':_0x4aedad('0x1d40'),'sort':_0x4aedad('0x1343'),'limit':0xa,'page':0x1},_0x3bd0f7[_0x4aedad('0x12c0')]={'rows':[],'count':0x0},_0x3bd0f7[_0x4aedad('0x173b')]=_0x110fbd,_0x3bd0f7[_0x4aedad('0x166')]=_0x115009,_0x3bd0f7['onInit']=_0x3710aa,_0x3bd0f7[_0x4aedad('0x1d57')]=_0x494e45,_0x3bd0f7[_0x4aedad('0x392')]=_0x1db62f,_0x3bd0f7['deleteConfirm']=_0x15a529;function _0x3710aa(){const _0x3a813e=_0x4aedad;_0x200c08[_0x3a813e('0x1e6a')][_0x3a813e('0x138a')]({'id':_0x7aceec[_0x3a813e('0x24cc')]()['id'],'fields':_0x3a813e('0x1338'),'channel':_0x3a813e('0x1f60'),'type':_0x3a813e('0x1'),'nolimit':!![]})[_0x3a813e('0x1714')][_0x3a813e('0x2788')](function(_0x4ad803){_0x3bd0f7['queueCampaigns']=_0x4ad803||{'count':0x0,'rows':[]};})[_0x3a813e('0x2788')](function(){const _0x1777ed=_0x3a813e;_0x3bd0f7[_0x1777ed('0xa28')]=_0x2e26b6();})['catch'](function(_0x58d5af){console['error'](_0x58d5af);})[_0x3a813e('0x1ed8')](function(){const _0x48fdd0=_0x3a813e;let _0x1a13d7=_0x3b9e77['localStorage']['getItem'](_0x48fdd0('0x148f')+_0x3bd0f7[_0x48fdd0('0x9cb')]['id']);if(_0x1a13d7)try{_0x1a13d7=JSON[_0x48fdd0('0xe0b')](_0x1a13d7),_0x1a13d7['query']&&(_0x3bd0f7[_0x48fdd0('0x135a')]=_0x283545()['omit'](_0x1a13d7[_0x48fdd0('0x135a')],['filter']));}catch(_0x1e93dd){console[_0x48fdd0('0x5e8')](_0x1e93dd);}else{const _0xf635bc={'$gte':_0x59f37a()()['startOf'](_0x48fdd0('0x2dc'))[_0x48fdd0('0x2827')](0x0,!![])[_0x48fdd0('0x22b4')](),'$lte':_0x59f37a()()[_0x48fdd0('0x142e')]('month')[_0x48fdd0('0x2827')](0x0,!![])[_0x48fdd0('0x22b4')]()};_0x3bd0f7[_0x48fdd0('0x135a')]['createdAt']=_0xf635bc;}_0x3bd0f7[_0x48fdd0('0x166')]();});}function _0x110fbd(_0x4804e1){const _0x144066=_0x4aedad;_0x3bd0f7['searchInProgress']=![],_0x3bd0f7[_0x144066('0xa96')]=_0x4804e1||{'count':0x0,'rows':[]};}function _0x2e26b6(){const _0x2bb782=_0x4aedad;return[{'name':_0x2bb782('0x9ac'),'key':_0x2bb782('0x172'),'type':'date','label':_0x2bb782('0x1664')},{'name':'Campaigns','key':_0x2bb782('0xe6b'),'type':'multiselect','label':'MOTIONDIALER.SELECT_CAMPAIGN','options':_0x3bd0f7[_0x2bb782('0x12c0')][_0x2bb782('0x25df')]}];}function _0x115009(){const _0x50e7d0=_0x4aedad;_0x3bd0f7['searchInProgress']=!![],_0x3bd0f7[_0x50e7d0('0x135a')]['id']=_0x3bd0f7['currentUser']['id'],_0x3bd0f7[_0x50e7d0('0x135a')][_0x50e7d0('0xc9d')]=!![],_0x3bd0f7[_0x50e7d0('0x135a')][_0x50e7d0('0x19e')]=(_0x3bd0f7[_0x50e7d0('0x135a')][_0x50e7d0('0x23f5')]-0x1)*_0x3bd0f7['query'][_0x50e7d0('0x68e')];const _0x4e6629={'query':_0x3bd0f7[_0x50e7d0('0x135a')]};_0x3b9e77['localStorage'][_0x50e7d0('0x23dc')](_0x50e7d0('0x148f')+_0x3bd0f7['currentUser']['id'],JSON[_0x50e7d0('0x1be0')](_0x4e6629)),_0x3bd0f7[_0x50e7d0('0x1808')]=_0x200c08[_0x50e7d0('0x1e6a')][_0x50e7d0('0x166')](_0x3bd0f7[_0x50e7d0('0x135a')],_0x110fbd)[_0x50e7d0('0x1714')];}function _0x1db62f(_0x4d4893,_0x2a5f31){const _0x43d81a=_0x4aedad;_0x26d9af[_0x43d81a('0x2fa')]({'controller':_0x43d81a('0x1e74'),'controllerAs':'vm','templateUrl':_0x43358b,'parent':angular[_0x43d81a('0x16b1')](_0x5ccca5['body']),'targetEvent':_0x4d4893,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x2a5f31,'hoppers':_0x3bd0f7[_0x43d81a('0xa96')]['rows'],'license':null,'setting':null,'crudPermissions':_0x3bd0f7[_0x43d81a('0xe28')]}});}function _0x50754b(_0x3e5466){const _0x321235=_0x4aedad;_0x200c08[_0x321235('0x1de1')][_0x321235('0x17c4')]({'id':_0x3e5466['id']})[_0x321235('0x1714')][_0x321235('0x2788')](function(){const _0x12ec64=_0x321235;_0x283545()[_0x12ec64('0x1a90')](_0x3bd0f7[_0x12ec64('0xa96')][_0x12ec64('0x25df')],{'id':_0x3e5466['id']}),_0x3bd0f7[_0x12ec64('0xa96')][_0x12ec64('0x338')]-=0x1,!_0x3bd0f7[_0x12ec64('0xa96')][_0x12ec64('0x25df')][_0x12ec64('0x2566')]&&_0x3bd0f7[_0x12ec64('0x166')](),_0x38cb2d[_0x12ec64('0x173b')]({'title':_0x12ec64('0x19ce'),'msg':_0x3e5466[_0x12ec64('0x1a8d')]?'Scheduled\x20call\x20has\x20been\x20deleted!':''});})[_0x321235('0x1cb5')](function(_0x1d710c){const _0x47976a=_0x321235;if(_0x1d710c[_0x47976a('0x11fc')]&&_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x25be')]&&_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x25be')][_0x47976a('0x2566')]){_0x3bd0f7[_0x47976a('0x25be')]=_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x25be')]||[{'message':_0x1d710c[_0x47976a('0x17df')](),'type':_0x47976a('0x1417')}];for(let _0x279a47=0x0;_0x279a47<_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x25be')][_0x47976a('0x2566')];_0x279a47++){_0x38cb2d['error']({'title':_0x1d710c['data'][_0x47976a('0x25be')][_0x279a47]['type'],'msg':_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x25be')][_0x279a47]['message']});}}else _0x38cb2d[_0x47976a('0x5e8')]({'title':_0x1d710c[_0x47976a('0x1b51')]?'API:'+_0x1d710c[_0x47976a('0x1b51')]+_0x47976a('0x1b0b')+_0x1d710c[_0x47976a('0x22ce')]:_0x47976a('0x1417'),'msg':_0x1d710c[_0x47976a('0x11fc')]?JSON[_0x47976a('0x1be0')](_0x1d710c[_0x47976a('0x11fc')][_0x47976a('0x15e2')]):_0x1d710c['message']||_0x1d710c[_0x47976a('0x17df')]()});});}function _0x15a529(_0x3c02ea,_0x523ea7){const _0x3205ef=_0x4aedad,_0x437102=_0x26d9af[_0x3205ef('0x112e')]()[_0x3205ef('0x14e4')](_0x3205ef('0xb82'))[_0x3205ef('0x93e')](_0x3205ef('0x25d')+'\x20will\x20be\x20deleted.')[_0x3205ef('0x10bc')](_0x3205ef('0x24c3'))[_0x3205ef('0x24d0')](_0x523ea7)['ok']('OK')['cancel'](_0x3205ef('0x1d8d'));_0x26d9af[_0x3205ef('0x2fa')](_0x437102)['then'](function(){_0x50754b(_0x3c02ea);},function(){const _0x447eb7=_0x3205ef;console[_0x447eb7('0x10df')](_0x447eb7('0x1d8d'));});}function _0x494e45(_0x35f3ce){const _0x9b4590=_0x4aedad;return _0x59f37a()(_0x35f3ce)[_0x9b4590('0x2050')](_0x59f37a()());}let _0x313d8f=!![],_0x3af28a=0x1;_0x62a63b[_0x4aedad('0x1662')]('vm.query.filter',function(_0x704b4e,_0xced52a){const _0x5665f1=_0x4aedad;_0x313d8f?_0x4cab0f(function(){_0x313d8f=![];}):(!_0xced52a&&(_0x3af28a=_0x3bd0f7['query'][_0x5665f1('0x23f5')]),_0x704b4e!==_0xced52a&&(_0x3bd0f7['query'][_0x5665f1('0x23f5')]=0x1),!_0x704b4e&&(_0x3bd0f7['query'][_0x5665f1('0x23f5')]=_0x3af28a),_0x3bd0f7[_0x5665f1('0x166')]());});}const _0x54dd70=_0x2f38f8;_0x2c4a66[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1902')];function _0x2c4a66(_0x15bd6e,_0x3a7bf,_0xd2a719,_0x587fbd,_0x57bb7b,_0x597c66,_0x17aa1c,_0x3c3300,_0xd9cf3c,_0x109926,_0x42fef8){const _0x1570c4=_0x34e79e,_0x499667=this;_0x499667[_0x1570c4('0x1e6a')]=_0x3c3300[_0x1570c4('0x24cc')](),_0x499667['license']={},_0x499667[_0x1570c4('0x1af0')]={},_0x499667['tags']={'count':0x0,'rows':[]},_0x499667[_0x1570c4('0xefb')]={'count':0x0,'rows':[]},_0x499667[_0x1570c4('0x135a')]={'includeAll':!![],'sort':_0x1570c4('0x1cee'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x499667['advancedSearch']={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x1570c4('0x1c64'),'column':_0x1570c4('0x1c64'),'type':'autocomplete','options':{'searchFields':[_0x1570c4('0x26da'),_0x1570c4('0x26b9'),_0x1570c4('0x2436')],'route':{'model':_0x1570c4('0xa83'),'action':_0x1570c4('0x1335'),'params':{'fields':_0x1570c4('0x1373'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x1570c4('0x1a77')],'excludedOperators':[_0x1570c4('0x149c')]}},{'name':_0x1570c4('0x1e8f'),'column':_0x1570c4('0x945'),'type':_0x1570c4('0x16db'),'options':{'excludedOperators':[_0x1570c4('0x1ff9'),'$ne']}},{'name':'Status','column':_0x1570c4('0x215d'),'type':_0x1570c4('0x983'),'values':[{'id':0x0,'translate':_0x1570c4('0xd6c')},{'id':0x1,'translate':_0x1570c4('0x977')}],'options':{'excludedOperators':[_0x1570c4('0x149c')]}},{'name':_0x1570c4('0x262d'),'column':_0x1570c4('0x1832'),'type':_0x1570c4('0x137e'),'options':{'table':'i','route':{'model':'user','action':'get','params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x1570c4('0x2831'),_0x1570c4('0x1a8d')],'extraOperators':[_0x1570c4('0x1a77')],'excludedOperators':[_0x1570c4('0x149c')]}},{'name':_0x1570c4('0x140b'),'column':_0x1570c4('0xcba'),'type':_0x1570c4('0x9a4'),'options':{'route':{'model':_0x1570c4('0x1e6a'),'action':_0x1570c4('0xb69'),'params':{'id':_0x499667[_0x1570c4('0x1e6a')]['id'],'nolimit':!![]}}}},{'name':_0x1570c4('0xbcf'),'column':_0x1570c4('0x251d'),'type':_0x1570c4('0x9a4'),'options':{'route':{'model':_0x1570c4('0x1764'),'action':_0x1570c4('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x1570c4('0x9ac'),'column':_0x1570c4('0x172'),'type':_0x1570c4('0x1012'),'options':{'excludedOperators':[_0x1570c4('0x149c')]}},{'name':_0x1570c4('0x27d7'),'column':_0x1570c4('0xecd'),'type':'select','values':[{'id':0x1,'translate':_0x1570c4('0x204a')},{'id':0x0,'translate':_0x1570c4('0xe54')}],'options':{'excludedOperators':[_0x1570c4('0x149c')]}}]},_0x499667[_0x1570c4('0x4ef')]='orange',_0x499667[_0x1570c4('0x122e')]=_0x3eb3fd,_0x499667[_0x1570c4('0x173b')]=_0x108d7d,_0x499667[_0x1570c4('0x8a1')]=_0x212d7e,_0x499667[_0x1570c4('0x117f')]=_0x47cad5,_0x499667['downloadSmsInteraction']=_0x44dd33,_0x499667['disposeInteraction']=_0x6ec5da,_0x499667['getContactLabel']=_0x559f1e,_0x499667['getAgentLabel']=_0x5f3b55,_0x499667['getSmsAccountLabel']=_0x14d18a,_0x499667[_0x1570c4('0x1daf')]=_0x4da84d,_0x499667['onSearchBarCollapse']=_0x3d2cec,_0x499667[_0x1570c4('0x5ca')]=_0x2ae00a,_0x499667['openAdvancedSearch']=_0x4f452b;function _0x3eb3fd(_0x5a82da,_0x91dff9){const _0x370dc5=_0x1570c4;return _0x499667[_0x370dc5('0x130d')]=_0x5a82da,_0x499667[_0x370dc5('0x1af0')]=_0x91dff9,_0x17aa1c[_0x370dc5('0x1e6a')][_0x370dc5('0x1335')+_0x283545()[_0x370dc5('0x2265')](_0x370dc5('0x5f4'))]({'id':_0x499667['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0x16d080){const _0x1b4f64=_0x370dc5;return _0x499667[_0x1b4f64('0x5f4')]=_0x16d080||{'count':0x0,'rows':[]},_0x17aa1c[_0x1b4f64('0x1764')][_0x1b4f64('0x1335')]()['$promise'];})[_0x370dc5('0x2788')](function(_0x403718){_0x499667['tags']=_0x403718||{'count':0x0,'rows':[]};})[_0x370dc5('0x2788')](function(){const _0x17222b=_0x370dc5;_0x499667[_0x17222b('0xa28')]=_0x44ac8e();})[_0x370dc5('0x1cb5')](function(_0x705a30){const _0x374621=_0x370dc5;console[_0x374621('0x5e8')](_0x705a30);})['finally'](function(){const _0x51cfd5=_0x370dc5;let _0x27224f=_0x57bb7b[_0x51cfd5('0x155e')]['getItem'](_0x51cfd5('0x96e')+_0x499667[_0x51cfd5('0x1e6a')]['id']);if(_0x27224f)try{_0x27224f=JSON[_0x51cfd5('0xe0b')](_0x27224f);if(_0x27224f[_0x51cfd5('0x135a')]){_0x499667[_0x51cfd5('0x135a')]=_0x283545()[_0x51cfd5('0x2503')](_0x499667['query'],_0x27224f[_0x51cfd5('0x135a')]);if(_0x283545()['isEmpty'](_0x499667[_0x51cfd5('0x5f4')][_0x51cfd5('0x25df')]))_0x499667['query'][_0x51cfd5('0xcba')]=[];else _0x283545()[_0x51cfd5('0x213d')](_0x499667[_0x51cfd5('0x135a')][_0x51cfd5('0xcba')])&&(_0x499667[_0x51cfd5('0x135a')][_0x51cfd5('0xcba')]=_0x283545()(_0x499667[_0x51cfd5('0x5f4')][_0x51cfd5('0x25df')])[_0x51cfd5('0x155d')]('id')[_0x51cfd5('0x212b')]()['value']());_0x499667['query']['sort']&&_0x499667['query'][_0x51cfd5('0x2119')][_0x51cfd5('0x821')](_0x51cfd5('0x136d'))>=0x0&&(_0x499667[_0x51cfd5('0x135a')]=_0x283545()['omit'](_0x499667[_0x51cfd5('0x135a')],_0x51cfd5('0x2119'))),_0x499667[_0x51cfd5('0x135a')][_0x51cfd5('0xc9d')]=!![],_0x499667[_0x51cfd5('0x236d')]=_0x499667['query'][_0x51cfd5('0x916')]?!![]:![];}}catch(_0x491086){console[_0x51cfd5('0x5e8')](_0x491086);}else{const _0x2e10ec={'$gte':_0x59f37a()()[_0x51cfd5('0x13e4')](_0x51cfd5('0x2dc'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x59f37a()()['endOf']('month')[_0x51cfd5('0x2827')](0x0,!![])['format']()},_0x56f2a2={'SmsAccountId':_0x283545()[_0x51cfd5('0x155d')](_0x499667[_0x51cfd5('0x5f4')][_0x51cfd5('0x25df')],'id'),'createdAt':_0x2e10ec};_0x499667[_0x51cfd5('0x135a')]=_0x283545()[_0x51cfd5('0x2503')](_0x499667[_0x51cfd5('0x135a')],_0x56f2a2);}_0xd9cf3c['on'](_0x51cfd5('0x2655'),_0x4751ce),_0xd9cf3c['on'](_0x51cfd5('0x14e5'),_0x4751ce),_0xd9cf3c['on']('smsInteractionTags:save',_0x29f77a),_0xd9cf3c['on'](_0x51cfd5('0x10a2'),_0x638536),_0xd9cf3c['on'](_0x51cfd5('0x1b39'),_0x638536),_0xd9cf3c['on'](_0x51cfd5('0xdbc'),_0x2153c1),_0xd9cf3c['on'](_0x51cfd5('0xaad'),_0x25b57e),_0x212d7e(_0x499667[_0x51cfd5('0x135a')][_0x51cfd5('0x23f5')]);});}function _0x44ac8e(){const _0x389208=_0x1570c4;return[{'name':_0x389208('0x9ac'),'key':_0x389208('0x172'),'type':_0x389208('0x1012'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x389208('0x1f77'),'key':'read','type':_0x389208('0x983'),'label':_0x389208('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x389208('0xe54')},{'value':0x1,'translate':_0x389208('0x204a')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':_0x389208('0x215d'),'type':_0x389208('0x983'),'label':_0x389208('0xd0'),'customOptions':[{'value':0x0,'translate':_0x389208('0xd6c')},{'value':0x1,'translate':_0x389208('0x977')},{'value':null,'translate':_0x389208('0xc79')}]},{'name':_0x389208('0x140b'),'key':'SmsAccountId','type':_0x389208('0x9a4'),'label':_0x389208('0x18c5'),'options':_0x499667['smsAccounts'][_0x389208('0x25df')],'clearAll':![]},{'name':'Agent','key':_0x389208('0x3bb'),'type':_0x389208('0x983'),'label':_0x389208('0x2bd'),'customOptions':[{'value':_0x499667[_0x389208('0x1e6a')]['id'],'translate':_0x389208('0x3a8')},{'value':_0x389208('0x954'),'translate':_0x389208('0xce3')},{'value':undefined,'translate':_0x389208('0xc79')}]},{'name':_0x389208('0x251d'),'key':_0x389208('0x1764'),'type':_0x389208('0x9a4'),'label':'DASHBOARDS.SELECT_TAG','options':_0x499667[_0x389208('0xe45')][_0x389208('0x25df')],'placeholder':_0x389208('0x263')}];}function _0x108d7d(_0x45d8ae){const _0x26ab82=_0x1570c4;_0x499667[_0x26ab82('0x2849')]=![],_0x499667[_0x26ab82('0xefb')]=_0x45d8ae||{'count':0x0,'rows':[]};for(let _0x482d36=0x0;_0x482d36<_0x499667['smsInteractions']['rows'][_0x26ab82('0x2566')];_0x482d36+=0x1){_0x559f1e(_0x499667[_0x26ab82('0xefb')][_0x26ab82('0x25df')][_0x482d36]);}}function _0x212d7e(_0x3b78e4){const _0x13f1b0=_0x1570c4;_0x499667['searchInProgress']=!![];!_0x3b78e4&&(_0x499667[_0x13f1b0('0x135a')][_0x13f1b0('0x23f5')]=0x1);_0x499667['query'][_0x13f1b0('0x19e')]=(_0x499667[_0x13f1b0('0x135a')][_0x13f1b0('0x23f5')]-0x1)*_0x499667[_0x13f1b0('0x135a')][_0x13f1b0('0x68e')];let _0x451d14=_0x57bb7b[_0x13f1b0('0x155e')]['getItem']('motion2.home.sms:'+_0x499667['user']['id']);_0x451d14=_0x451d14?JSON['parse'](_0x451d14):{},_0x451d14[_0x13f1b0('0x135a')]=_0x499667[_0x13f1b0('0x135a')],_0x57bb7b['localStorage'][_0x13f1b0('0x23dc')]('motion2.home.sms:'+_0x499667[_0x13f1b0('0x1e6a')]['id'],JSON[_0x13f1b0('0x1be0')](_0x451d14)),_0x499667[_0x13f1b0('0x1808')]=_0x17aa1c[_0x13f1b0('0x1990')][_0x13f1b0('0x1335')](_0x499667[_0x13f1b0('0x135a')],_0x108d7d)[_0x13f1b0('0x1714')];}function _0x47cad5(_0x251752,_0x241099){const _0x14984c=_0x1570c4;_0x15bd6e[_0x14984c('0x7d0')]['vm'][_0x14984c('0x1442')](_0x14984c('0x529'),_0x241099);}function _0x44dd33(_0x34c3d5,_0x61ffbf,_0x48553a){const _0x236574=_0x1570c4;_0x17aa1c[_0x236574('0x1990')][_0x236574('0x1486')]({'id':_0x61ffbf['id'],'attachments':_0x48553a})['$promise'][_0x236574('0x2788')](function(_0x401211){const _0x218630=_0x236574,_0x10dea1=[_0x401211[_0x218630('0x3f1')]],_0x540c1d=_0x218630('0xd1f')+_0x61ffbf['id']+_0x218630('0xfdb'),_0x1ca8b9=new Blob(_0x10dea1,{'type':_0x401211[_0x218630('0x1d7')]}),_0x191c16=window['document'][_0x218630('0x1ae6')]('a');_0x191c16['setAttribute'](_0x218630('0x186a'),URL[_0x218630('0x1b0d')](_0x1ca8b9)),_0x191c16[_0x218630('0x1c6b')](_0x218630('0x1486'),_0x540c1d),document[_0x218630('0x945')][_0x218630('0xcbf')](_0x191c16),_0x191c16[_0x218630('0x132a')]();})['catch'](function(_0x1427f4){const _0x4f2d7c=_0x236574;if(_0x1427f4[_0x4f2d7c('0x11fc')]&&_0x1427f4[_0x4f2d7c('0x11fc')][_0x4f2d7c('0x25be')]&&_0x1427f4['data'][_0x4f2d7c('0x25be')][_0x4f2d7c('0x2566')])for(let _0x1fc474=0x0;_0x1fc474<_0x1427f4['data'][_0x4f2d7c('0x25be')][_0x4f2d7c('0x2566')];_0x1fc474+=0x1){_0x109926[_0x4f2d7c('0x5e8')]({'title':_0x1427f4[_0x4f2d7c('0x11fc')]['errors'][_0x1fc474][_0x4f2d7c('0x1d7')],'msg':_0x1427f4[_0x4f2d7c('0x11fc')][_0x4f2d7c('0x25be')][_0x1fc474]['message']});}else _0x109926[_0x4f2d7c('0x5e8')]({'title':_0x1427f4[_0x4f2d7c('0x1b51')]?_0x4f2d7c('0x15d1')+_0x1427f4['status']+_0x4f2d7c('0x1b0b')+_0x1427f4[_0x4f2d7c('0x22ce')]:_0x4f2d7c('0x92a'),'msg':_0x1427f4['data']?JSON[_0x4f2d7c('0x1be0')](_0x1427f4[_0x4f2d7c('0x11fc')][_0x4f2d7c('0x15e2')]):_0x1427f4[_0x4f2d7c('0x17df')]()});});}function _0x6ec5da(_0x1438bb,_0x48b740){const _0x1cb495=_0x1570c4,_0x33d5cd=_0x499667[_0x1cb495('0x1e6a')][_0x1cb495('0x2a1')]||_0x499667[_0x1cb495('0x1e6a')]['chatPause']||_0x499667['user'][_0x1cb495('0x20cd')]||_0x499667[_0x1cb495('0x1e6a')]['openchannelPause']||_0x499667['user'][_0x1cb495('0x1891')],_0x1dcc73=!_0x48b740['Account'][_0x1cb495('0x1c86')];_0xd2a719[_0x1cb495('0x2fa')]({'controller':_0x1cb495('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x1cb495('0x16b1')](_0x587fbd[_0x1cb495('0x945')]),'clickOutsideToClose':_0x1dcc73,'escapeToClose':_0x1dcc73,'onRemoving':function(){const _0x465dbb=_0x1cb495;_0x499667[_0x465dbb('0x1e6a')]&&_0x48b740['Account'][_0x465dbb('0x1c86')]&&!_0x33d5cd&&_0x17aa1c[_0x465dbb('0x1e6a')]['unpause']({'id':_0x499667[_0x465dbb('0x1e6a')]['id']})[_0x465dbb('0x1714')][_0x465dbb('0x1cb5')](function(_0xd96d27){console['error'](_0xd96d27);});},'locals':{'user':_0x499667[_0x1cb495('0x1e6a')],'channel':_0x1cb495('0x529'),'interaction':_0x48b740}});}function _0x559f1e(_0x579430){const _0x43be0f=_0x1570c4;_0x579430[_0x43be0f('0x1c64')]?(_0x579430[_0x43be0f('0x497')]=(_0x579430[_0x43be0f('0x1c64')][_0x43be0f('0x26da')]||'')+'\x20'+(_0x579430[_0x43be0f('0x1c64')][_0x43be0f('0x26b9')]||''),_0x579430['contactInfo']=_0x579430[_0x43be0f('0x1c64')][_0x43be0f('0x246')]):_0x579430[_0x43be0f('0x497')]=_0x597c66[_0x43be0f('0x1b11')](_0x43be0f('0x2185'));}function _0x5f3b55(_0x310fdf){const _0x58aa5e=_0x1570c4;if(_0x310fdf[_0x58aa5e('0x3bb')])return _0x310fdf[_0x58aa5e('0x3bb')]===_0x499667[_0x58aa5e('0x1e6a')]['id']?_0x597c66[_0x58aa5e('0x1b11')]('DASHBOARDS.ME'):_0x310fdf['Owner'][_0x58aa5e('0x2831')]+'\x20<'+_0x310fdf[_0x58aa5e('0xe42')][_0x58aa5e('0x2838')]+'>';return _0x597c66[_0x58aa5e('0x1b11')](_0x58aa5e('0xce3'));}function _0x14d18a(_0x7d63b6){const _0x3ad8fe=_0x1570c4;if(_0x7d63b6['Account'])return _0x7d63b6[_0x3ad8fe('0x140b')]['key'];return _0x597c66[_0x3ad8fe('0x1b11')](_0x3ad8fe('0x2185'));}function _0x4da84d(_0x2716ef,_0x4c94a6){const _0x2add5a=_0x1570c4;_0xd2a719[_0x2add5a('0x2fa')]({'controller':_0x2add5a('0x1b2a'),'controllerAs':'vm','templateUrl':_0x19ab75,'parent':angular[_0x2add5a('0x16b1')](_0x587fbd[_0x2add5a('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0x4c94a6,'message':{},'type':_0x2add5a('0x259d'),'interaction':{}},'fullscreen':!![]})[_0x2add5a('0x2788')](function(_0x2d14bc){const _0xd95e81=_0x2add5a;if(_0x2d14bc){if(_0x2d14bc[_0xd95e81('0x15e2')]&&_0x2d14bc['message'][_0xd95e81('0x326')]){const _0x4ce856={'channel':_0xd95e81('0x529'),'account':_0x4c94a6,'message':_0x2d14bc[_0xd95e81('0x15e2')],'contact':_0x2d14bc[_0xd95e81('0xc17')]};_0x42fef8[_0xd95e81('0x9b8')](_0x4ce856);}else{const _0x140cd1=_0x2d14bc;return _0x17aa1c['smsAccount'][_0xd95e81('0x1fc9')]({'id':_0x4c94a6['id']},_0x140cd1)[_0xd95e81('0x1714')]['then'](function(_0x1fc2e5){const _0x1302e7=_0xd95e81;_0x109926[_0x1302e7('0x173b')]({'title':'Message\x20properly\x20sent!','msg':'Message\x20has\x20been\x20sent!'}),_0x15bd6e['$parent']['vm'][_0x1302e7('0x1442')]('sms',_0x1fc2e5);})['catch'](function(_0x5afaa1){const _0x3f0bdb=_0xd95e81;if(_0x5afaa1[_0x3f0bdb('0x11fc')]&&_0x5afaa1[_0x3f0bdb('0x11fc')][_0x3f0bdb('0x25be')]&&_0x5afaa1[_0x3f0bdb('0x11fc')]['errors'][_0x3f0bdb('0x2566')])for(let _0x234096=0x0;_0x234096<_0x5afaa1[_0x3f0bdb('0x11fc')]['errors'][_0x3f0bdb('0x2566')];_0x234096++){_0x109926[_0x3f0bdb('0x5e8')]({'title':_0x5afaa1[_0x3f0bdb('0x11fc')][_0x3f0bdb('0x25be')][_0x234096][_0x3f0bdb('0x1d7')],'msg':_0x5afaa1[_0x3f0bdb('0x11fc')][_0x3f0bdb('0x25be')][_0x234096]['message']});}else _0x109926[_0x3f0bdb('0x5e8')]({'title':_0x5afaa1[_0x3f0bdb('0x1b51')]?_0x3f0bdb('0x15d1')+_0x5afaa1[_0x3f0bdb('0x1b51')]+_0x3f0bdb('0x1b0b')+_0x5afaa1[_0x3f0bdb('0x22ce')]:'SMSACCOUNT:SEND','msg':_0x5afaa1[_0x3f0bdb('0x11fc')]?JSON[_0x3f0bdb('0x1be0')](_0x5afaa1[_0x3f0bdb('0x11fc')]['message']):_0x5afaa1[_0x3f0bdb('0x15e2')]||_0x5afaa1[_0x3f0bdb('0x17df')]()});});}}});}function _0x2153c1(_0x3dc139){const _0x42ef25=_0x1570c4;let _0x26cb34;const _0x1af971=_0x283545()[_0x42ef25('0x20e8')](_0x499667['smsInteractions'][_0x42ef25('0x25df')],{'id':_0x3dc139[_0x42ef25('0x2281')]});_0x1af971&&_0x1af971[_0x42ef25('0x23f4')]&&(_0x26cb34=_0x283545()['find'](_0x1af971['Users'],{'id':_0x3dc139[_0x42ef25('0x3bb')]}),!_0x26cb34&&_0x1af971[_0x42ef25('0x23f4')][_0x42ef25('0x13e3')]({'id':_0x3dc139[_0x42ef25('0x3bb')]}));}function _0x25b57e(_0x518bcb){const _0x1e45a3=_0x1570c4,_0x36e487=_0x283545()['find'](_0x499667[_0x1e45a3('0xefb')][_0x1e45a3('0x25df')],{'id':_0x518bcb[_0x1e45a3('0x2281')]});_0x36e487&&_0x36e487['Users']&&_0x283545()['remove'](_0x36e487[_0x1e45a3('0x23f4')],{'id':_0x518bcb[_0x1e45a3('0x3bb')]});}function _0x4751ce(_0x3f5f98){const _0x177bce=_0x1570c4;if(_0x3f5f98){const _0x4678a6=_0x283545()[_0x177bce('0x20e8')](_0x499667[_0x177bce('0xefb')][_0x177bce('0x25df')],{'id':_0x3f5f98['id']});if(_0x4678a6){_0x4678a6[_0x177bce('0x23f4')]=[];_0x3f5f98['closed']&&(_0x4678a6[_0x177bce('0xecd')]=0x0);if(_0x499667['query']['sort']){const _0x158e98=_0x283545()['startsWith'](_0x499667['query'][_0x177bce('0x2119')],'-')?_0x177bce('0x25b5'):_0x177bce('0xe07');_0x499667[_0x177bce('0xefb')][_0x177bce('0x25df')]=_0x283545()[_0x177bce('0xf87')](_0x499667['smsInteractions'][_0x177bce('0x25df')],_0x283545()['trimStart'](_0x499667['query']['sort'],'-'),_0x158e98);}_0x283545()[_0x177bce('0x2503')](_0x4678a6,_0x283545()['pick'](_0x3f5f98,_0x283545()[_0x177bce('0x2163')](_0x4678a6)));}else _0x212d7e(_0x499667[_0x177bce('0x135a')][_0x177bce('0x23f5')]);}}function _0x29f77a(_0x43e7f9){const _0x426f85=_0x1570c4;if(_0x43e7f9){const _0x3308cf=_0x283545()[_0x426f85('0x20e8')](_0x499667['smsInteractions'][_0x426f85('0x25df')],{'id':_0x43e7f9['id']});_0x3308cf&&(_0x3308cf[_0x426f85('0xbcf')]=_0x43e7f9[_0x426f85('0xe45')]||[],_0x283545()['merge'](_0x3308cf,_0x283545()['pick'](_0x43e7f9,_0x283545()[_0x426f85('0x2163')](_0x3308cf))));}}function _0x638536(_0x664381){const _0x35fed0=_0x1570c4;if(_0x664381&&!_0x664381[_0x35fed0('0x2685')]){const _0x4569e0=_0x283545()[_0x35fed0('0x20e8')](_0x499667[_0x35fed0('0xefb')][_0x35fed0('0x25df')],{'id':_0x664381['SmsInteractionId']});if(_0x4569e0){const _0x427f75=_0x283545()[_0x35fed0('0x20e8')](_0x4569e0['Messages'],{'id':_0x664381['id']});_0x427f75?_0x283545()['merge'](_0x427f75,_0x283545()['pick'](_0x664381,_0x283545()[_0x35fed0('0x2163')](_0x427f75))):(_0x283545()[_0x35fed0('0x1015')](_0x4569e0[_0x35fed0('0x1f77')])&&(_0x4569e0[_0x35fed0('0x1f77')]={'count':0x0}),!_0x664381[_0x35fed0('0x18e8')]&&(_0x4569e0['Messages'][_0x35fed0('0x338')]+=0x1));}}}function _0x3d2cec(){_0x499667['isSearchBarVisible']=![];}function _0x2ae00a(){const _0x15b371=_0x1570c4;_0x499667[_0x15b371('0x236d')]=!![];}function _0x4f452b(){const _0x136440=_0x1570c4;_0x499667[_0x136440('0x236d')]=![],_0xd2a719['show']({'controller':_0x136440('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular['element'](_0x587fbd['body']),'clickOutsideToClose':![],'locals':{'color':_0x499667[_0x136440('0x4ef')],'fields':_0x499667[_0x136440('0x1e13')][_0x136440('0x1578')],'storagePath':_0x136440('0x292')},'fullscreen':!![]})[_0x136440('0x2788')](function(_0x537d54){const _0x4e6fd4=_0x136440;_0x499667[_0x4e6fd4('0x135a')][_0x4e6fd4('0x470')]=_0x537d54===![]?undefined:_0x537d54;if(_0x499667[_0x4e6fd4('0x135a')][_0x4e6fd4('0x470')]||_0x537d54===![])_0x212d7e();})['catch'](function(_0x3c93bf){const _0x2aa97f=_0x136440;_0x109926[_0x2aa97f('0x5e8')]({'title':_0x2aa97f('0x824'),'msg':_0x3c93bf[_0x2aa97f('0x11fc')]?JSON['stringify'](_0x3c93bf['data'][_0x2aa97f('0x15e2')]):_0x3c93bf['toString']()});});}let _0x5bdb53=!![],_0x39466b=0x1;_0x15bd6e[_0x1570c4('0x1662')]('vm.query.filter',function(_0x43daaf,_0x4ef862){const _0x1af1f1=_0x1570c4;_0x5bdb53?_0x3a7bf(function(){_0x5bdb53=![];}):(!_0x4ef862&&(_0x39466b=_0x499667['query']['page']),_0x43daaf!==_0x4ef862&&(_0x499667[_0x1af1f1('0x135a')][_0x1af1f1('0x23f5')]=0x1),!_0x43daaf&&(_0x499667[_0x1af1f1('0x135a')][_0x1af1f1('0x23f5')]=_0x39466b),_0x212d7e(_0x499667['query'][_0x1af1f1('0x23f5')]));}),_0x15bd6e[_0x1570c4('0x651')](_0x1570c4('0x26ac'),function(){const _0x2d44ef=_0x1570c4;_0xd9cf3c[_0x2d44ef('0x277f')](_0x2d44ef('0x10a2')),_0xd9cf3c[_0x2d44ef('0x277f')](_0x2d44ef('0x1b39')),_0xd9cf3c[_0x2d44ef('0x277f')](_0x2d44ef('0x2655')),_0xd9cf3c[_0x2d44ef('0x277f')]('smsInteractionTags:save'),_0xd9cf3c[_0x2d44ef('0x277f')]('smsInteraction:update'),_0xd9cf3c[_0x2d44ef('0x277f')](_0x2d44ef('0xdbc')),_0xd9cf3c[_0x2d44ef('0x277f')](_0x2d44ef('0xaad'));});}const _0x481726=_0x2c4a66,_0x7f22c1=_0x18dd13['p']+_0x34e79e('0x1120');_0xc78cc3['$inject']=['$mdDialog','$document',_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x1bf5'),_0x34e79e('0x1701'),_0x34e79e('0x446')];function _0xc78cc3(_0x2f4587,_0x39f713,_0x3d3649,_0x8bd483,_0xf8480f,_0x1f4f21,_0x57e988,_0x2851f2){const _0x3d722e=_0x34e79e,_0x55209e=this;_0x55209e[_0x3d722e('0x9cb')]=_0xf8480f[_0x3d722e('0x24cc')](),_0x55209e[_0x3d722e('0x211e')]={},_0x55209e['table']=_0x3d722e('0x211e'),_0x55209e[_0x3d722e('0x135a')]={'UserId':_0x55209e[_0x3d722e('0x9cb')]['id'],'fields':'id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','sort':_0x3d722e('0x1cee'),'limit':0xa,'page':0x1,'type':null},_0x55209e[_0x3d722e('0x173b')]=_0x30bc31,_0x55209e[_0x3d722e('0x30f')]=_0x2bcc29,_0x55209e[_0x3d722e('0x122e')]=_0x211941,_0x55209e['showDetails']=_0x593801,_0x55209e[_0x3d722e('0x956')]=_0x15f8f8,_0x55209e[_0x3d722e('0x5ca')]=_0x4d2195;function _0x211941(){const _0x2b3d30=_0x3d722e;return _0x3d3649[_0x2b3d30('0x1764')][_0x2b3d30('0x1335')]()[_0x2b3d30('0x1714')][_0x2b3d30('0x2788')](function(_0x3d83da){const _0x1f1b4e=_0x2b3d30;_0x55209e[_0x1f1b4e('0xe45')]=_0x3d83da||{'count':0x0,'rows':[]};})['then'](function(){const _0x39e4ba=_0x2b3d30;_0x55209e[_0x39e4ba('0xa28')]=_0x4e15b6();})['catch'](function(_0x1b1b54){const _0xab0e3d=_0x2b3d30;_0x8bd483[_0xab0e3d('0x5e8')]({'title':_0xab0e3d('0x23b4'),'msg':_0x1b1b54[_0xab0e3d('0x11fc')]?JSON[_0xab0e3d('0x1be0')](_0x1b1b54['data']['message']):_0x1b1b54[_0xab0e3d('0x15e2')]||_0x1b1b54[_0xab0e3d('0x17df')]()}),_0x55209e['tags']={'count':0x0,'rows':[]};})['finally'](function(){const _0x513132=_0x2b3d30;let _0x44098f=_0x1f4f21[_0x513132('0x155e')][_0x513132('0xced')](_0x513132('0x157')+_0x55209e[_0x513132('0x9cb')]['id']);if(_0x44098f)try{_0x44098f=JSON[_0x513132('0xe0b')](_0x44098f),_0x44098f['query']&&(_0x55209e['query']=_0x283545()[_0x513132('0x5a9')](_0x44098f['query'],_0x513132('0x916')));}catch(_0x2f8579){console[_0x513132('0x5e8')](_0x2f8579);}else{const _0x51c44c={'$gte':_0x59f37a()()[_0x513132('0x13e4')](_0x513132('0x2dc'))[_0x513132('0x2827')](0x0,!![])['format'](),'$lte':_0x59f37a()()[_0x513132('0x142e')](_0x513132('0x2dc'))['utcOffset'](0x0,!![])[_0x513132('0x22b4')]()};_0x55209e['query'][_0x513132('0x172')]=_0x51c44c;}_0x2bcc29();});}function _0x4e15b6(){const _0x982ef1=_0x3d722e;return[{'name':_0x982ef1('0x9ac'),'key':_0x982ef1('0x172'),'type':_0x982ef1('0x1012'),'label':_0x982ef1('0x1664')},{'name':'Type','key':_0x982ef1('0x1d7'),'type':_0x982ef1('0x983'),'label':_0x982ef1('0xf2a'),'customOptions':[{'value':_0x982ef1('0x2838'),'translate':_0x982ef1('0xe7a')},{'value':_0x982ef1('0x2e4'),'translate':'VOICE.INBOUND'},{'value':_0x982ef1('0x1'),'translate':_0x982ef1('0x26bb')},{'value':_0x982ef1('0x79c'),'translate':_0x982ef1('0x117c')},{'value':null,'translate':_0x982ef1('0xdfc')}]}];}function _0x30bc31(_0x384c60){const _0x1eb0f9=_0x3d722e;_0x55209e[_0x1eb0f9('0x2849')]=![],_0x55209e[_0x1eb0f9('0x211e')]=_0x384c60||{'count':0x0,'rows':[]};}function _0x2bcc29(){const _0x2bdf7c=_0x3d722e;_0x55209e[_0x2bdf7c('0x2849')]=!![],_0x55209e[_0x2bdf7c('0x135a')][_0x2bdf7c('0x19e')]=(_0x55209e[_0x2bdf7c('0x135a')][_0x2bdf7c('0x23f5')]-0x1)*_0x55209e[_0x2bdf7c('0x135a')][_0x2bdf7c('0x68e')];const _0x21ad52={'query':_0x55209e['query']};_0x1f4f21['localStorage'][_0x2bdf7c('0x23dc')](_0x2bdf7c('0x157')+_0x55209e[_0x2bdf7c('0x9cb')]['id'],JSON[_0x2bdf7c('0x1be0')](_0x21ad52)),_0x55209e[_0x2bdf7c('0x1808')]=_0x3d3649[_0x2bdf7c('0x99')]['get'](_0x55209e['query'],_0x30bc31)[_0x2bdf7c('0x1714')];}function _0x593801(_0x1129bd){const _0x46af4d=_0x3d722e;_0x2f4587[_0x46af4d('0x2fa')]({'controller':'AgentHomeVoiceDetailsController','controllerAs':'vm','templateUrl':_0x7f22c1,'parent':angular[_0x46af4d('0x16b1')](_0x39f713[_0x46af4d('0x945')]),'clickOutsideToClose':!![],'locals':{'call':_0x1129bd}});}function _0x15f8f8(){const _0x345942=_0x3d722e;_0x55209e['query']['filter']=undefined,_0x55209e[_0x345942('0x236d')]=![];}function _0x4d2195(){const _0x4ef9d2=_0x3d722e;_0x55209e[_0x4ef9d2('0x236d')]=!![];}let _0x1ad029=!![],_0x10264d=0x1;_0x57e988[_0x3d722e('0x1662')](_0x3d722e('0x1569'),function(_0x45d392,_0x9cb7c9){const _0x3e9677=_0x3d722e;_0x1ad029?_0x2851f2(function(){_0x1ad029=![];}):(!_0x9cb7c9&&(_0x10264d=_0x55209e[_0x3e9677('0x135a')][_0x3e9677('0x23f5')]),_0x45d392!==_0x9cb7c9&&(_0x55209e['query']['page']=0x1),!_0x45d392&&(_0x55209e['query'][_0x3e9677('0x23f5')]=_0x10264d),_0x55209e['getVoiceCalls']());});}const _0x1183b0=_0xc78cc3;_0x5d91b8['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0x935')];function _0x5d91b8(_0x461483,_0x481f89){const _0x4f6b28=_0x34e79e,_0x28cf79=this;_0x28cf79[_0x4f6b28('0x935')]=_0x481f89;function _0x1f6a9a(){_0x461483['hide']();}_0x28cf79['closeDialog']=_0x1f6a9a;}const _0x20920c=_0x5d91b8;_0x2c1a1f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$timeout','$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1bf5'),'$translate','api','Auth',_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1902')];function _0x2c1a1f(_0x7ee3e8,_0xf29fac,_0x5ddfe8,_0x3504e5,_0x442e9a,_0x11ac31,_0x1042d7,_0x560a8b,_0x10fef3,_0x158128,_0x2affa6){const _0x38e256=_0x34e79e,_0x58674f=this;_0x58674f[_0x38e256('0x1e6a')]=_0x560a8b[_0x38e256('0x24cc')](),_0x58674f['license']={},_0x58674f['setting']={},_0x58674f[_0x38e256('0xe45')]={'count':0x0,'rows':[]},_0x58674f[_0x38e256('0x1368')]={'count':0x0,'rows':[]},_0x58674f[_0x38e256('0x135a')]={'includeAll':!![],'sort':_0x38e256('0x1cee'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x58674f[_0x38e256('0x1e13')]={'fields':[{'name':'Id','column':'id','type':_0x38e256('0x272c')},{'name':_0x38e256('0x1c64'),'column':_0x38e256('0x1c64'),'type':_0x38e256('0x137e'),'options':{'searchFields':['firstName',_0x38e256('0x26b9'),'email'],'route':{'model':_0x38e256('0xa83'),'action':'get','params':{'fields':_0x38e256('0x1373'),'Contact':_0x38e256('0x20bf'),'nolimit':!![]}},'extraOperators':[_0x38e256('0x1a77')],'excludedOperators':[_0x38e256('0x149c')]}},{'name':'Body','column':_0x38e256('0x945'),'type':_0x38e256('0x16db'),'options':{'excludedOperators':[_0x38e256('0x1ff9'),_0x38e256('0x149c')]}},{'name':_0x38e256('0x21d8'),'column':_0x38e256('0x215d'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x38e256('0x149c')]}},{'name':_0x38e256('0x262d'),'column':_0x38e256('0x1832'),'type':_0x38e256('0x137e'),'options':{'table':'i','route':{'model':_0x38e256('0x1e6a'),'action':'get','params':{'role':_0x38e256('0x188b'),'fields':_0x38e256('0x10fe'),'nolimit':!![]}},'searchFields':['fullname',_0x38e256('0x1a8d')],'extraOperators':[_0x38e256('0x1a77')],'excludedOperators':[_0x38e256('0x149c')]}},{'name':_0x38e256('0x140b'),'column':_0x38e256('0x25b8'),'type':_0x38e256('0x9a4'),'options':{'route':{'model':_0x38e256('0x1e6a'),'action':_0x38e256('0x2238'),'params':{'id':_0x58674f[_0x38e256('0x1e6a')]['id'],'nolimit':!![]}}}},{'name':_0x38e256('0xbcf'),'column':_0x38e256('0x251d'),'type':_0x38e256('0x9a4'),'options':{'route':{'model':_0x38e256('0x1764'),'action':_0x38e256('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x38e256('0x9ac'),'column':_0x38e256('0x172'),'type':_0x38e256('0x1012'),'options':{'excludedOperators':[_0x38e256('0x149c')]}},{'name':_0x38e256('0x27d7'),'column':_0x38e256('0xecd'),'type':_0x38e256('0x983'),'values':[{'id':0x1,'translate':_0x38e256('0x204a')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}]},_0x58674f[_0x38e256('0x4ef')]='lime-A700',_0x58674f[_0x38e256('0x122e')]=_0x40fd43,_0x58674f['success']=_0x1680e2,_0x58674f[_0x38e256('0x1663')]=_0x46d5e9,_0x58674f[_0x38e256('0x522')]=_0x3229e1,_0x58674f[_0x38e256('0x5f2')]=_0x455718,_0x58674f[_0x38e256('0xcc4')]=_0x558ced,_0x58674f[_0x38e256('0x190e')]=_0x58e2c4,_0x58674f['getAgentLabel']=_0x475d91,_0x58674f[_0x38e256('0x2320')]=_0x3b61ec,_0x58674f['composeWhatsappInteraction']=_0x56957b,_0x58674f['onSearchBarCollapse']=_0x269283,_0x58674f['onSearchBarExpand']=_0x24ac8e,_0x58674f['openAdvancedSearch']=_0x3f83af;function _0x40fd43(_0x1ff859,_0x1044b0){const _0x582094=_0x38e256;return _0x58674f[_0x582094('0x130d')]=_0x1ff859,_0x58674f['setting']=_0x1044b0,_0x1042d7[_0x582094('0x1e6a')][_0x582094('0x1335')+_0x283545()[_0x582094('0x2265')](_0x582094('0xa47'))]({'id':_0x58674f[_0x582094('0x1e6a')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x3253a5){const _0x47d5db=_0x582094;return _0x58674f['whatsappAccounts']=_0x3253a5||{'count':0x0,'rows':[]},_0x1042d7[_0x47d5db('0x1764')][_0x47d5db('0x1335')]()[_0x47d5db('0x1714')];})['then'](function(_0x9da654){const _0x872152=_0x582094;_0x58674f[_0x872152('0xe45')]=_0x9da654||{'count':0x0,'rows':[]};})[_0x582094('0x2788')](function(){const _0x124755=_0x582094;_0x58674f[_0x124755('0xa28')]=_0x18dc06();})[_0x582094('0x1cb5')](function(_0x425648){const _0x188454=_0x582094;console[_0x188454('0x5e8')](_0x425648);})[_0x582094('0x1ed8')](function(){const _0x4e9788=_0x582094;let _0x414b0a=_0x442e9a['localStorage'][_0x4e9788('0xced')](_0x4e9788('0x19ab')+_0x58674f[_0x4e9788('0x1e6a')]['id']);if(_0x414b0a)try{_0x414b0a=JSON[_0x4e9788('0xe0b')](_0x414b0a);if(_0x414b0a[_0x4e9788('0x135a')]){_0x58674f[_0x4e9788('0x135a')]=_0x283545()['merge'](_0x58674f[_0x4e9788('0x135a')],_0x414b0a[_0x4e9788('0x135a')]);if(_0x283545()[_0x4e9788('0x213d')](_0x58674f[_0x4e9788('0xa47')][_0x4e9788('0x25df')]))_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0x25b8')]=[];else _0x283545()[_0x4e9788('0x213d')](_0x58674f[_0x4e9788('0x135a')]['WhatsappAccountId'])&&(_0x58674f['query'][_0x4e9788('0x25b8')]=_0x283545()(_0x58674f[_0x4e9788('0xa47')][_0x4e9788('0x25df')])[_0x4e9788('0x155d')]('id')[_0x4e9788('0x212b')]()[_0x4e9788('0x49')]());_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0x2119')]&&_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0x2119')][_0x4e9788('0x821')]('lastMessage')>=0x0&&(_0x58674f['query']=_0x283545()[_0x4e9788('0x5a9')](_0x58674f[_0x4e9788('0x135a')],_0x4e9788('0x2119'))),_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0xc9d')]=!![],_0x58674f[_0x4e9788('0x236d')]=_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0x916')]?!![]:![];}}catch(_0x38919b){console[_0x4e9788('0x5e8')](_0x38919b);}else{const _0x276ff7={'$gte':_0x59f37a()()[_0x4e9788('0x13e4')]('month')[_0x4e9788('0x2827')](0x0,!![])['format'](),'$lte':_0x59f37a()()[_0x4e9788('0x142e')](_0x4e9788('0x2dc'))[_0x4e9788('0x2827')](0x0,!![])['format']()},_0x5a56a4={'WhatsappAccountId':_0x283545()['map'](_0x58674f[_0x4e9788('0xa47')]['rows'],'id'),'createdAt':_0x276ff7};_0x58674f[_0x4e9788('0x135a')]=_0x283545()[_0x4e9788('0x2503')](_0x58674f['query'],_0x5a56a4);}_0x10fef3['on'](_0x4e9788('0xab3'),_0x5319d3),_0x10fef3['on'](_0x4e9788('0x79d'),_0x5319d3),_0x10fef3['on'](_0x4e9788('0x4b1'),_0x249214),_0x10fef3['on'](_0x4e9788('0xae1'),_0x5ec47f),_0x10fef3['on'](_0x4e9788('0x23bb'),_0x5ec47f),_0x10fef3['on'](_0x4e9788('0x18ee'),_0x3e1e31),_0x10fef3['on'](_0x4e9788('0x1ed5'),_0x3bc2bf),_0x46d5e9(_0x58674f[_0x4e9788('0x135a')][_0x4e9788('0x23f5')]);});}function _0x18dc06(){const _0x3ff572=_0x38e256;return[{'name':_0x3ff572('0x9ac'),'key':_0x3ff572('0x172'),'type':_0x3ff572('0x1012'),'label':_0x3ff572('0x1664')},{'name':_0x3ff572('0x1f77'),'key':_0x3ff572('0x18e8'),'type':'select','label':_0x3ff572('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x3ff572('0xe54')},{'value':0x1,'translate':_0x3ff572('0x204a')},{'value':null,'translate':_0x3ff572('0xc79')}]},{'name':_0x3ff572('0x21d8'),'key':_0x3ff572('0x215d'),'type':_0x3ff572('0x983'),'label':_0x3ff572('0xd0'),'customOptions':[{'value':0x0,'translate':_0x3ff572('0xd6c')},{'value':0x1,'translate':_0x3ff572('0x977')},{'value':null,'translate':_0x3ff572('0xc79')}]},{'name':_0x3ff572('0x140b'),'key':_0x3ff572('0x25b8'),'type':'multiselect','label':_0x3ff572('0x18c5'),'options':_0x58674f[_0x3ff572('0xa47')][_0x3ff572('0x25df')],'clearAll':![]},{'name':_0x3ff572('0x262d'),'key':_0x3ff572('0x3bb'),'type':_0x3ff572('0x983'),'label':_0x3ff572('0x2bd'),'customOptions':[{'value':_0x58674f[_0x3ff572('0x1e6a')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x3ff572('0x954'),'translate':_0x3ff572('0xce3')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3ff572('0x251d'),'key':'tag','type':_0x3ff572('0x9a4'),'label':_0x3ff572('0xa54'),'options':_0x58674f[_0x3ff572('0xe45')][_0x3ff572('0x25df')],'placeholder':_0x3ff572('0x263')}];}function _0x1680e2(_0x281570){const _0x1322c9=_0x38e256;_0x58674f[_0x1322c9('0x2849')]=![],_0x58674f['whatsappInteractions']=_0x281570||{'count':0x0,'rows':[]};for(let _0x486c17=0x0;_0x486c17<_0x58674f[_0x1322c9('0x1368')][_0x1322c9('0x25df')][_0x1322c9('0x2566')];_0x486c17+=0x1){_0x58e2c4(_0x58674f[_0x1322c9('0x1368')]['rows'][_0x486c17]);}}function _0x46d5e9(_0x4bc7ae){const _0x3157d3=_0x38e256;_0x58674f['searchInProgress']=!![];!_0x4bc7ae&&(_0x58674f[_0x3157d3('0x135a')][_0x3157d3('0x23f5')]=0x1);_0x58674f[_0x3157d3('0x135a')][_0x3157d3('0x19e')]=(_0x58674f[_0x3157d3('0x135a')][_0x3157d3('0x23f5')]-0x1)*_0x58674f[_0x3157d3('0x135a')][_0x3157d3('0x68e')];let _0x2ed119=_0x442e9a[_0x3157d3('0x155e')][_0x3157d3('0xced')]('motion2.home.whatsapp:'+_0x58674f[_0x3157d3('0x1e6a')]['id']);_0x2ed119=_0x2ed119?JSON[_0x3157d3('0xe0b')](_0x2ed119):{},_0x2ed119[_0x3157d3('0x135a')]=_0x58674f[_0x3157d3('0x135a')],_0x442e9a[_0x3157d3('0x155e')]['setItem'](_0x3157d3('0x19ab')+_0x58674f[_0x3157d3('0x1e6a')]['id'],JSON[_0x3157d3('0x1be0')](_0x2ed119)),_0x58674f[_0x3157d3('0x1808')]=_0x1042d7['whatsappInteraction'][_0x3157d3('0x1335')](_0x58674f[_0x3157d3('0x135a')],_0x1680e2)[_0x3157d3('0x1714')];}function _0x3229e1(_0x1c540d,_0x364b90){const _0x1c2009=_0x38e256;_0x7ee3e8[_0x1c2009('0x7d0')]['vm'][_0x1c2009('0x1442')]('whatsapp',_0x364b90);}function _0x455718(_0x4d83ce,_0x4e0a1a,_0xe6236b){const _0x5b6bf1=_0x38e256;_0x1042d7['whatsappInteraction'][_0x5b6bf1('0x1486')]({'id':_0x4e0a1a['id'],'attachments':_0xe6236b})[_0x5b6bf1('0x1714')][_0x5b6bf1('0x2788')](function(_0x19c65d){const _0x42c7d6=_0x5b6bf1,_0x5d2846=[_0x19c65d[_0x42c7d6('0x3f1')]],_0x253b85=_0x42c7d6('0x2690')+_0x4e0a1a['id']+'.zip',_0x3ece03=new Blob(_0x5d2846,{'type':_0x19c65d[_0x42c7d6('0x1d7')]}),_0x1cac9=window[_0x42c7d6('0x11c4')][_0x42c7d6('0x1ae6')]('a');_0x1cac9[_0x42c7d6('0x1c6b')](_0x42c7d6('0x186a'),URL[_0x42c7d6('0x1b0d')](_0x3ece03)),_0x1cac9[_0x42c7d6('0x1c6b')](_0x42c7d6('0x1486'),_0x253b85),document[_0x42c7d6('0x945')][_0x42c7d6('0xcbf')](_0x1cac9),_0x1cac9[_0x42c7d6('0x132a')]();})['catch'](function(_0xe3fd90){const _0x4515b4=_0x5b6bf1;if(_0xe3fd90['data']&&_0xe3fd90['data'][_0x4515b4('0x25be')]&&_0xe3fd90[_0x4515b4('0x11fc')][_0x4515b4('0x25be')][_0x4515b4('0x2566')])for(let _0x5ea974=0x0;_0x5ea974<_0xe3fd90[_0x4515b4('0x11fc')][_0x4515b4('0x25be')][_0x4515b4('0x2566')];_0x5ea974+=0x1){_0x158128[_0x4515b4('0x5e8')]({'title':_0xe3fd90[_0x4515b4('0x11fc')][_0x4515b4('0x25be')][_0x5ea974][_0x4515b4('0x1d7')],'msg':_0xe3fd90[_0x4515b4('0x11fc')]['errors'][_0x5ea974]['message']});}else _0x158128['error']({'title':_0xe3fd90['status']?'API:'+_0xe3fd90[_0x4515b4('0x1b51')]+_0x4515b4('0x1b0b')+_0xe3fd90[_0x4515b4('0x22ce')]:_0x4515b4('0x5f2'),'msg':_0xe3fd90['data']?JSON[_0x4515b4('0x1be0')](_0xe3fd90[_0x4515b4('0x11fc')][_0x4515b4('0x15e2')]):_0xe3fd90[_0x4515b4('0x17df')]()});});}function _0x558ced(_0xac1c49,_0x46bd33){const _0x323e0b=_0x38e256,_0x4e88c4=_0x58674f[_0x323e0b('0x1e6a')][_0x323e0b('0x2a1')]||_0x58674f['user'][_0x323e0b('0x23a5')]||_0x58674f[_0x323e0b('0x1e6a')][_0x323e0b('0x20cd')]||_0x58674f['user']['openchannelPause']||_0x58674f[_0x323e0b('0x1e6a')]['faxPause'],_0x28b150=!_0x46bd33[_0x323e0b('0x140b')]['mandatoryDisposition'];_0x5ddfe8[_0x323e0b('0x2fa')]({'controller':_0x323e0b('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x323e0b('0x16b1')](_0x3504e5[_0x323e0b('0x945')]),'clickOutsideToClose':_0x28b150,'escapeToClose':_0x28b150,'onRemoving':function(){const _0x417369=_0x323e0b;_0x58674f[_0x417369('0x1e6a')]&&_0x46bd33[_0x417369('0x140b')]['mandatoryDisposition']&&!_0x4e88c4&&_0x1042d7['user'][_0x417369('0x1826')]({'id':_0x58674f[_0x417369('0x1e6a')]['id']})[_0x417369('0x1714')]['catch'](function(_0x31b1da){const _0x46c5a1=_0x417369;console[_0x46c5a1('0x5e8')](_0x31b1da);});},'locals':{'user':_0x58674f[_0x323e0b('0x1e6a')],'channel':'whatsapp','interaction':_0x46bd33}});}function _0x58e2c4(_0x43e874){const _0x2922e6=_0x38e256;_0x43e874['Contact']?(_0x43e874[_0x2922e6('0x497')]=(_0x43e874[_0x2922e6('0x1c64')][_0x2922e6('0x26da')]||'')+'\x20'+(_0x43e874[_0x2922e6('0x1c64')]['lastName']||''),_0x43e874[_0x2922e6('0x1aba')]=_0x43e874[_0x2922e6('0x1c64')]['mobile']):_0x43e874[_0x2922e6('0x497')]=_0x11ac31['instant'](_0x2922e6('0x2185'));}function _0x475d91(_0x223a5a){const _0x24b164=_0x38e256;if(_0x223a5a['UserId'])return _0x223a5a[_0x24b164('0x3bb')]===_0x58674f[_0x24b164('0x1e6a')]['id']?_0x11ac31[_0x24b164('0x1b11')](_0x24b164('0x3a8')):_0x223a5a[_0x24b164('0xe42')][_0x24b164('0x2831')]+'\x20<'+_0x223a5a['Owner'][_0x24b164('0x2838')]+'>';return _0x11ac31['instant'](_0x24b164('0xce3'));}function _0x3b61ec(_0x5f2a0e){const _0x3e0627=_0x38e256;if(_0x5f2a0e[_0x3e0627('0x140b')])return _0x5f2a0e['Account']['key'];return _0x11ac31[_0x3e0627('0x1b11')]('DASHBOARDS.UNKNOWN');}function _0x56957b(_0x5e4694,_0x310218){const _0x1caee2=_0x38e256;_0x5ddfe8[_0x1caee2('0x2fa')]({'controller':_0x1caee2('0x397'),'controllerAs':'vm','templateUrl':_0x50342f,'parent':angular[_0x1caee2('0x16b1')](_0x3504e5[_0x1caee2('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0x310218,'message':{},'type':_0x1caee2('0x259d'),'interaction':{}},'fullscreen':!![]})[_0x1caee2('0x2788')](function(_0x5af397){const _0x225ead=_0x1caee2;if(_0x5af397){if(_0x5af397[_0x225ead('0x15e2')]&&_0x5af397[_0x225ead('0x15e2')]['savedAsDraft']){const _0x5b3a62={'channel':_0x225ead('0x195d'),'account':_0x310218,'message':_0x5af397[_0x225ead('0x15e2')],'contact':_0x5af397[_0x225ead('0xc17')]};_0x2affa6[_0x225ead('0x9b8')](_0x5b3a62);}else{const _0x23882b=_0x5af397;return _0x1042d7[_0x225ead('0x15')][_0x225ead('0x1fc9')]({'id':_0x310218['id']},_0x23882b)[_0x225ead('0x1714')]['then'](function(_0x446f0d){const _0xe90350=_0x225ead;_0x158128['success']({'title':'Message\x20properly\x20sent!','msg':_0xe90350('0x65b')}),_0x7ee3e8[_0xe90350('0x7d0')]['vm'][_0xe90350('0x1442')](_0xe90350('0x195d'),_0x446f0d);})[_0x225ead('0x1cb5')](function(_0x5b40a7){const _0x39d053=_0x225ead;if(_0x5b40a7[_0x39d053('0x11fc')]&&_0x5b40a7[_0x39d053('0x11fc')][_0x39d053('0x25be')]&&_0x5b40a7[_0x39d053('0x11fc')][_0x39d053('0x25be')]['length'])for(let _0x11ddea=0x0;_0x11ddea<_0x5b40a7[_0x39d053('0x11fc')][_0x39d053('0x25be')][_0x39d053('0x2566')];_0x11ddea++){_0x158128[_0x39d053('0x5e8')]({'title':_0x5b40a7['data']['errors'][_0x11ddea][_0x39d053('0x1d7')],'msg':_0x5b40a7[_0x39d053('0x11fc')][_0x39d053('0x25be')][_0x11ddea][_0x39d053('0x15e2')]});}else _0x158128['error']({'title':_0x5b40a7['status']?_0x39d053('0x15d1')+_0x5b40a7[_0x39d053('0x1b51')]+'\x20-\x20'+_0x5b40a7[_0x39d053('0x22ce')]:_0x39d053('0x2670'),'msg':_0x5b40a7['data']?JSON[_0x39d053('0x1be0')](_0x5b40a7[_0x39d053('0x11fc')][_0x39d053('0x15e2')]):_0x5b40a7[_0x39d053('0x15e2')]||_0x5b40a7[_0x39d053('0x17df')]()});});}}});}function _0x3e1e31(_0x5c587e){const _0x144b29=_0x38e256;let _0xbbf36b;const _0x31bfbb=_0x283545()[_0x144b29('0x20e8')](_0x58674f[_0x144b29('0x1368')][_0x144b29('0x25df')],{'id':_0x5c587e[_0x144b29('0x7bb')]});_0x31bfbb&&_0x31bfbb['Users']&&(_0xbbf36b=_0x283545()['find'](_0x31bfbb['Users'],{'id':_0x5c587e[_0x144b29('0x3bb')]}),!_0xbbf36b&&_0x31bfbb[_0x144b29('0x23f4')][_0x144b29('0x13e3')]({'id':_0x5c587e[_0x144b29('0x3bb')]}));}function _0x3bc2bf(_0x119366){const _0x4e012c=_0x38e256,_0x38a50a=_0x283545()[_0x4e012c('0x20e8')](_0x58674f[_0x4e012c('0x1368')][_0x4e012c('0x25df')],{'id':_0x119366['WhatsappInteractionId']});_0x38a50a&&_0x38a50a['Users']&&_0x283545()[_0x4e012c('0x1a90')](_0x38a50a[_0x4e012c('0x23f4')],{'id':_0x119366[_0x4e012c('0x3bb')]});}function _0x5319d3(_0x409f58){const _0x1d394f=_0x38e256;if(_0x409f58){const _0xbf7932=_0x283545()[_0x1d394f('0x20e8')](_0x58674f[_0x1d394f('0x1368')]['rows'],{'id':_0x409f58['id']});if(_0xbf7932){_0xbf7932[_0x1d394f('0x23f4')]=[];_0x409f58[_0x1d394f('0x215d')]&&(_0xbf7932[_0x1d394f('0xecd')]=0x0);if(_0x58674f['query'][_0x1d394f('0x2119')]){const _0x49a7a2=_0x283545()['startsWith'](_0x58674f['query'][_0x1d394f('0x2119')],'-')?'desc':_0x1d394f('0xe07');_0x58674f[_0x1d394f('0x1368')][_0x1d394f('0x25df')]=_0x283545()[_0x1d394f('0xf87')](_0x58674f[_0x1d394f('0x1368')][_0x1d394f('0x25df')],_0x283545()[_0x1d394f('0x19c2')](_0x58674f[_0x1d394f('0x135a')]['sort'],'-'),_0x49a7a2);}_0x283545()[_0x1d394f('0x2503')](_0xbf7932,_0x283545()[_0x1d394f('0x41b')](_0x409f58,_0x283545()['keys'](_0xbf7932)));}else _0x46d5e9(_0x58674f['query']['page']);}}function _0x249214(_0xf1f433){const _0x59648d=_0x38e256;if(_0xf1f433){const _0x58b56e=_0x283545()['find'](_0x58674f['whatsappInteractions'][_0x59648d('0x25df')],{'id':_0xf1f433['id']});_0x58b56e&&(_0x58b56e['Tags']=_0xf1f433[_0x59648d('0xe45')]||[],_0x283545()[_0x59648d('0x2503')](_0x58b56e,_0x283545()[_0x59648d('0x41b')](_0xf1f433,_0x283545()[_0x59648d('0x2163')](_0x58b56e))));}}function _0x5ec47f(_0x25975d){const _0x1a0e0a=_0x38e256;if(_0x25975d&&!_0x25975d[_0x1a0e0a('0x2685')]){const _0x55882a=_0x283545()['find'](_0x58674f[_0x1a0e0a('0x1368')][_0x1a0e0a('0x25df')],{'id':_0x25975d[_0x1a0e0a('0x7bb')]});if(_0x55882a){const _0x6389c5=_0x283545()[_0x1a0e0a('0x20e8')](_0x55882a['Messages'],{'id':_0x25975d['id']});_0x6389c5?_0x283545()[_0x1a0e0a('0x2503')](_0x6389c5,_0x283545()['pick'](_0x25975d,_0x283545()[_0x1a0e0a('0x2163')](_0x6389c5))):(_0x283545()['isNil'](_0x55882a[_0x1a0e0a('0x1f77')])&&(_0x55882a['Messages']={'count':0x0}),!_0x25975d['read']&&(_0x55882a[_0x1a0e0a('0x1f77')][_0x1a0e0a('0x338')]+=0x1));}}}function _0x269283(){const _0x4e204f=_0x38e256;_0x58674f[_0x4e204f('0x236d')]=![];}function _0x24ac8e(){_0x58674f['isSearchBarVisible']=!![];}function _0x3f83af(){const _0x1e35c3=_0x38e256;_0x58674f[_0x1e35c3('0x236d')]=![],_0x5ddfe8[_0x1e35c3('0x2fa')]({'controller':_0x1e35c3('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x1e35c3('0x16b1')](_0x3504e5[_0x1e35c3('0x945')]),'clickOutsideToClose':![],'locals':{'color':_0x58674f['sectionColor'],'fields':_0x58674f[_0x1e35c3('0x1e13')][_0x1e35c3('0x1578')],'storagePath':_0x1e35c3('0x19cf')},'fullscreen':!![]})[_0x1e35c3('0x2788')](function(_0x5047e2){const _0x46ed69=_0x1e35c3;_0x58674f[_0x46ed69('0x135a')]['search']=_0x5047e2===![]?undefined:_0x5047e2;if(_0x58674f[_0x46ed69('0x135a')][_0x46ed69('0x470')]||_0x5047e2===![])_0x46d5e9();})[_0x1e35c3('0x1cb5')](function(_0x47e9bc){const _0x4b8f30=_0x1e35c3;_0x158128[_0x4b8f30('0x5e8')]({'title':_0x4b8f30('0x824'),'msg':_0x47e9bc[_0x4b8f30('0x11fc')]?JSON[_0x4b8f30('0x1be0')](_0x47e9bc[_0x4b8f30('0x11fc')][_0x4b8f30('0x15e2')]):_0x47e9bc['toString']()});});}let _0xe33790=!![],_0x44f5d2=0x1;_0x7ee3e8[_0x38e256('0x1662')](_0x38e256('0x1569'),function(_0x2bd7ec,_0x37fa64){const _0x4dbbfa=_0x38e256;_0xe33790?_0xf29fac(function(){_0xe33790=![];}):(!_0x37fa64&&(_0x44f5d2=_0x58674f[_0x4dbbfa('0x135a')][_0x4dbbfa('0x23f5')]),_0x2bd7ec!==_0x37fa64&&(_0x58674f[_0x4dbbfa('0x135a')]['page']=0x1),!_0x2bd7ec&&(_0x58674f[_0x4dbbfa('0x135a')][_0x4dbbfa('0x23f5')]=_0x44f5d2),_0x46d5e9(_0x58674f[_0x4dbbfa('0x135a')]['page']));}),_0x7ee3e8[_0x38e256('0x651')](_0x38e256('0x26ac'),function(){const _0x9ce02e=_0x38e256;_0x10fef3[_0x9ce02e('0x277f')](_0x9ce02e('0xae1')),_0x10fef3['removeAllListeners'](_0x9ce02e('0x23bb')),_0x10fef3['removeAllListeners'](_0x9ce02e('0xab3')),_0x10fef3['removeAllListeners'](_0x9ce02e('0x4b1')),_0x10fef3[_0x9ce02e('0x277f')](_0x9ce02e('0x79d')),_0x10fef3[_0x9ce02e('0x277f')]('user_has_whatsapp_interactions:save'),_0x10fef3[_0x9ce02e('0x277f')](_0x9ce02e('0x1ed5'));});}const _0x226ae8=_0x2c1a1f;_0x24f2e8['$inject']=['$scope',_0x34e79e('0x1750')];function _0x24f2e8(_0x3d891b,_0x4e713c){const _0x35f3b5=_0x34e79e,_0x42ff5b=this;_0x42ff5b['setting']={},_0x42ff5b['messages']={'count':0x0,'rows':[]},_0x42ff5b[_0x35f3b5('0x2117')]=![];function _0xfba152(_0x519c8b,_0x198b1a){const _0x290016=_0x35f3b5;_0x42ff5b[_0x290016('0x1af0')]=_0x198b1a,_0x42ff5b['tab']=_0x519c8b,_0x42ff5b[_0x290016('0x24f6')][_0x290016('0x100f')]=!![];}function _0x3388d4(){const _0x4775c6=_0x35f3b5;return _0x4e713c[_0x4775c6('0x283c')](_0x42ff5b[_0x4775c6('0x24f6')][_0x4775c6('0x1269')]);}_0x42ff5b['init']=_0xfba152,_0x42ff5b[_0x35f3b5('0x14c6')]=_0x3388d4;}const _0x27ec18=_0x24f2e8,_0x1f5c83=_0x18dd13['p']+_0x34e79e('0x10c5'),_0x400cbe=_0x18dd13['p']+_0x34e79e('0x811');_0x4b3c5b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1750')],_0xb4a6e4[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x446'),_0x34e79e('0x1580'),'$scope',_0x34e79e('0x123b'),'$q',_0x34e79e('0x4cc'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0xd6f'),'msUtils',_0x34e79e('0x1902')];function _0xb4a6e4(_0x3a57d7,_0x221f2e,_0x25e9a1,_0x20d1db,_0x43eefa,_0x263177,_0x58faa3,_0x71e95d,_0x667964,_0x55a44a,_0x103ead,_0x5b6d48,_0x5763b2,_0x582d9b){const _0x4bab78=_0x34e79e,_0xb8a8b9=this,_0x4db774=0x19,_0x580bf0=_0x4db774*0x400*0x400;_0xb8a8b9[_0x4bab78('0x693')]=![],_0xb8a8b9[_0x4bab78('0x2117')]=![],_0xb8a8b9[_0x4bab78('0x1e6a')]=_0x103ead[_0x4bab78('0x24cc')](),_0xb8a8b9[_0x4bab78('0x191e')]=_0x5763b2[_0x4bab78('0x191e')](),_0xb8a8b9['journey']=[],_0xb8a8b9[_0x4bab78('0x5ce')]=[],_0xb8a8b9[_0x4bab78('0x1879')]=[_0x4bab78('0x2795'),_0x4bab78('0x231'),_0x4bab78('0x529'),_0x4bab78('0x18aa'),_0x4bab78('0x10cf'),_0x4bab78('0x195d')],_0xb8a8b9[_0x4bab78('0x1fce')]={'target':_0x4bab78('0x1726'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x580bf0,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xb8a8b9[_0x4bab78('0x2793')]={'flow':{}},_0xb8a8b9[_0x4bab78('0x1e94')]={},_0xb8a8b9[_0x4bab78('0x26eb')]={},_0xb8a8b9[_0x4bab78('0x1af0')]={},_0xb8a8b9[_0x4bab78('0x1e7b')]={},_0xb8a8b9[_0x4bab78('0x55f')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x4bab78('0x2558')},_0xb8a8b9['firstDayMonth']=new Date(_0x59f37a()()['startOf'](_0x4bab78('0x2dc'))[_0x4bab78('0x10e8')](0x1,_0x4bab78('0x430'))[_0x4bab78('0x2827')](0x0,!![])['format']()),_0xb8a8b9['lastDayMonth']=new Date(_0x59f37a()()[_0x4bab78('0x142e')](_0x4bab78('0x2dc'))[_0x4bab78('0x10e8')](0x1,_0x4bab78('0xf'))[_0x4bab78('0x2827')](0x0,!![])['format']()),_0xb8a8b9[_0x4bab78('0x24eb')]=_0xc880b1,_0xb8a8b9[_0x4bab78('0xa7')]=_0x9c75a,_0xb8a8b9[_0x4bab78('0x1424')]=_0x1ad95e,_0xb8a8b9[_0x4bab78('0x4f')]=_0x572651,_0xb8a8b9['disposeInteraction']=_0x416868,_0xb8a8b9[_0x4bab78('0x16d')]=_0x8a85b6,_0xb8a8b9[_0x4bab78('0x1426')]=_0x21958d,_0xb8a8b9[_0x4bab78('0x1974')]=_0x11df91,_0xb8a8b9[_0x4bab78('0x1daf')]=_0xf44bc,_0xb8a8b9['composeWhatsappInteraction']=_0x1a9866,_0xb8a8b9[_0x4bab78('0xfa0')]=_0x5e3072,_0xb8a8b9[_0x4bab78('0x24f2')]=_0x38b0fd,_0xb8a8b9[_0x4bab78('0x16e6')]=_0x3ed3f3,_0xb8a8b9[_0x4bab78('0x2741')]=_0x5029d5,_0xb8a8b9[_0x4bab78('0x857')]=_0x51d265,_0xb8a8b9['getMailAccounts']=_0x1bc971,_0xb8a8b9['getFaxAccounts']=_0x640c48,_0xb8a8b9[_0x4bab78('0xb69')]=_0x5223db,_0xb8a8b9[_0x4bab78('0x2238')]=_0x1f8008,_0xb8a8b9[_0x4bab78('0x184')]=_0xce47e5,_0xb8a8b9[_0x4bab78('0xfa6')]=_0x384ee4,_0xb8a8b9[_0x4bab78('0xcdd')]=_0x4e2d48,_0xb8a8b9['reply']=_0x4d1ba9,_0xb8a8b9[_0x4bab78('0x1b63')]=_0x99f06b,_0xb8a8b9[_0x4bab78('0x1573')]=_0x144ae7,_0xb8a8b9[_0x4bab78('0xc41')]=_0x50bd77,_0xb8a8b9[_0x4bab78('0x207b')]=_0x5d0c56,_0xb8a8b9[_0x4bab78('0x2543')]=_0x5d3d64,_0xb8a8b9[_0x4bab78('0x2202')]=_0x1b87fd,_0xb8a8b9['selectedItemChange']=_0x324c39,_0xb8a8b9['getIconByChannel']=_0x31fd0d,_0xb8a8b9['getColorByChannel']=_0x126463,_0xb8a8b9[_0x4bab78('0x1222')]=_0x4d02a4,_0xb8a8b9[_0x4bab78('0x4c0')]=_0x2f5a70,_0xb8a8b9['displayCannedAnswerInput']=![],_0xb8a8b9[_0x4bab78('0x21c8')]=_0x4638ba,_0xb8a8b9['setAs']=_0x55e15f,_0xb8a8b9[_0x4bab78('0x1992')]=_0x2b4ad2,_0xb8a8b9[_0x4bab78('0x1ad0')]=_0x952c25,_0xb8a8b9['getAttachments']=_0x2a20ba,_0xb8a8b9[_0x4bab78('0x1ec2')]=_0x23f94b,_0xb8a8b9[_0x4bab78('0x19f3')]=_0x239a46,_0xb8a8b9['onInteractionOpen']=_0xe47c5f,_0xb8a8b9['onInteractionClose']=_0x42dbca,_0xb8a8b9[_0x4bab78('0x2804')]=_0xe929cb,_0xb8a8b9[_0x4bab78('0x23f9')]={'scrollEl':_0x4bab78('0x3eb')};function _0x384ee4(){const _0x475512=_0x4bab78;_0x667964[_0x475512('0x1e6a')][_0x475512('0xfa6')]({'id':_0xb8a8b9[_0x475512('0x1e6a')]['id'],'nolimit':!![]})[_0x475512('0x1714')][_0x475512('0x2788')](function(_0x3d9e59){const _0x3ca55d=_0x475512;_0xb8a8b9[_0x3ca55d('0x60')]=_0x3d9e59||{'count':0x0,'rows':[]};});}function _0x4e2d48(){const _0x4db3ec=_0x4bab78;_0x667964[_0x4db3ec('0x1e6a')]['getLists']({'id':_0xb8a8b9[_0x4db3ec('0x1e6a')]['id'],'nolimit':!![]})[_0x4db3ec('0x1714')][_0x4db3ec('0x2788')](function(_0x22c3ff){_0xb8a8b9['voiceAccounts']=_0x22c3ff||{'count':0x0,'rows':[]};});}function _0xce47e5(){const _0x522a61=_0x4bab78;_0x667964['user'][_0x522a61('0x184')]({'id':_0xb8a8b9[_0x522a61('0x1e6a')]['id'],'nolimit':!![]})[_0x522a61('0x1714')][_0x522a61('0x2788')](function(_0x26796){const _0x157b28=_0x522a61;_0xb8a8b9[_0x157b28('0x1e10')]=_0x26796||{'count':0x0,'rows':[]};})[_0x522a61('0x1cb5')](function(_0xd7b39d){const _0x280d07=_0x522a61;if(_0xd7b39d[_0x280d07('0x11fc')]&&_0xd7b39d['data'][_0x280d07('0x25be')]&&_0xd7b39d['data'][_0x280d07('0x25be')][_0x280d07('0x2566')]){_0xb8a8b9[_0x280d07('0x25be')]=_0xd7b39d[_0x280d07('0x11fc')][_0x280d07('0x25be')]||[{'message':_0xd7b39d[_0x280d07('0x17df')](),'type':_0x280d07('0xd11')}];for(let _0x38c051=0x0;_0x38c051<_0xd7b39d['data']['errors'][_0x280d07('0x2566')];_0x38c051+=0x1){_0x55a44a['error']({'title':_0xd7b39d['data'][_0x280d07('0x25be')][_0x38c051][_0x280d07('0x1d7')],'msg':_0xd7b39d[_0x280d07('0x11fc')][_0x280d07('0x25be')][_0x38c051][_0x280d07('0x15e2')]});}}else _0x55a44a[_0x280d07('0x5e8')]({'title':_0xd7b39d['status']?_0x280d07('0x15d1')+_0xd7b39d[_0x280d07('0x1b51')]+'\x20-\x20'+_0xd7b39d[_0x280d07('0x22ce')]:_0x280d07('0xd11'),'msg':_0xd7b39d[_0x280d07('0x11fc')]?JSON[_0x280d07('0x1be0')](_0xd7b39d['data'][_0x280d07('0x15e2')]):_0xd7b39d['toString']()});});}function _0x1bc971(){const _0x2f1417=_0x4bab78;_0x667964[_0x2f1417('0x1e6a')][_0x2f1417('0x1688')]({'id':_0xb8a8b9['user']['id'],'nolimit':!![]})['$promise'][_0x2f1417('0x2788')](function(_0xf6106f){const _0x5a16bb=_0x2f1417;_0xb8a8b9[_0x5a16bb('0x1e22')]=_0xf6106f||{'count':0x0,'rows':[]};});}function _0x640c48(){const _0x477028=_0x4bab78;_0x667964[_0x477028('0x1e6a')][_0x477028('0x1dbb')]({'id':_0xb8a8b9[_0x477028('0x1e6a')]['id'],'nolimit':!![]})['$promise'][_0x477028('0x2788')](function(_0x2d7dcc){const _0x5e6ffc=_0x477028;_0xb8a8b9[_0x5e6ffc('0xe9b')]=_0x2d7dcc||{'count':0x0,'rows':[]};});}function _0x5223db(){const _0xd0d5a8=_0x4bab78;_0x667964[_0xd0d5a8('0x1e6a')][_0xd0d5a8('0xb69')]({'id':_0xb8a8b9[_0xd0d5a8('0x1e6a')]['id'],'nolimit':!![]})['$promise'][_0xd0d5a8('0x2788')](function(_0x361ea2){_0xb8a8b9['smsAccounts']=_0x361ea2||{'count':0x0,'rows':[]};});}function _0x1f8008(){const _0x1f67c1=_0x4bab78;_0x667964[_0x1f67c1('0x1e6a')][_0x1f67c1('0x2238')]({'id':_0xb8a8b9[_0x1f67c1('0x1e6a')]['id'],'nolimit':!![]})['$promise'][_0x1f67c1('0x2788')](function(_0xf6cf3b){_0xb8a8b9['whatsappAccounts']=_0xf6cf3b||{'count':0x0,'rows':[]};});}function _0xe929cb(){const _0x2c5a4e=_0x4bab78,_0x19a226=_0x263177[_0x2c5a4e('0x2311')]();if(_0xb8a8b9[_0x2c5a4e('0x15f5')])return _0xb8a8b9[_0x2c5a4e('0x15f5')]['offset']=_0xb8a8b9[_0x2c5a4e('0xf9b')][_0x2c5a4e('0x25df')][_0x2c5a4e('0x2566')],_0x667964[_0xb8a8b9[_0x2c5a4e('0x24f6')][_0x2c5a4e('0x2645')]+'Interaction']['getMessages'](_0xb8a8b9['queryMessage'])[_0x2c5a4e('0x1714')]['then'](function(_0x55c80c){const _0x59d52a=_0x2c5a4e;for(let _0xd92ffd=0x0;_0xd92ffd<_0x55c80c[_0x59d52a('0x25df')][_0x59d52a('0x2566')];_0xd92ffd+=0x1){_0xb8a8b9['messages']['rows'][_0x59d52a('0x13e3')](_0x55c80c[_0x59d52a('0x25df')][_0xd92ffd]),!_0xb8a8b9[_0x59d52a('0xd61')][_0x59d52a('0x215d')]&&_0x55c80c[_0x59d52a('0x25df')][_0xd92ffd][_0x59d52a('0x7c3')]==='in'&&!_0x55c80c[_0x59d52a('0x25df')][_0xd92ffd][_0x59d52a('0x18e8')]&&(_0x667964[_0xb8a8b9[_0x59d52a('0x24f6')][_0x59d52a('0x2645')]+_0x59d52a('0x217')]['accept']({'id':_0x55c80c[_0x59d52a('0x25df')][_0xd92ffd]['id'],'UserId':_0xb8a8b9[_0x59d52a('0x1e6a')]['id']}),_0xb8a8b9[_0x59d52a('0x5ce')][_0x59d52a('0x13e3')](_0x55c80c[_0x59d52a('0x25df')][_0xd92ffd]['id']));}return _0x19a226['resolve'](_0x55c80c);})[_0x2c5a4e('0x1cb5')](function(_0x55f21a){return _0x19a226['reject'](_0x55f21a);});return _0x19a226['reject']();}function _0xc880b1(_0x1407cd,_0x1f4ebe){const _0x17df1f=_0x4bab78;_0xb8a8b9[_0x17df1f('0x24f6')]=_0x1407cd,_0xb8a8b9[_0x17df1f('0x24f6')][_0x17df1f('0x100f')]=!![],_0xb8a8b9[_0x17df1f('0x24f6')][_0x17df1f('0x5a6')]=0x0,_0xb8a8b9[_0x17df1f('0x1af0')]=_0x1f4ebe||{},_0xb8a8b9[_0x17df1f('0x24f6')]&&_0xb8a8b9[_0x17df1f('0x24f6')][_0x17df1f('0x2645')]&&_0xb8a8b9['tab']['interaction']&&(_0xb8a8b9[_0x17df1f('0xd61')]=_0xb8a8b9[_0x17df1f('0x24f6')][_0x17df1f('0xd61')],_0x667964[_0xb8a8b9[_0x17df1f('0x24f6')][_0x17df1f('0x2645')]+_0x17df1f('0x22a7')]['get']({'id':_0xb8a8b9['tab'][_0x17df1f('0xd61')]['id'],'includeAll':!![]})[_0x17df1f('0x1714')][_0x17df1f('0x2788')](function(_0x5ed00d){const _0x5beba1=_0x17df1f;return _0x5ed00d&&(_0xb8a8b9[_0x5beba1('0xd61')]=_0x5ed00d,_0xb8a8b9[_0x5beba1('0x24f6')]['interaction']=_0x5ed00d),_0xb8a8b9[_0x5beba1('0x24f6')][_0x5beba1('0x100f')]=_0xb8a8b9['interaction'][_0x5beba1('0x215d')],_0xb8a8b9[_0x5beba1('0x15f5')]={'id':_0xb8a8b9[_0x5beba1('0xd61')]['id'],'includeAll':!![]},_0xb8a8b9['tab']['channel']===_0x5beba1('0x2795')?(_0xb8a8b9[_0x5beba1('0x15f5')][_0x5beba1('0x2119')]=_0x5beba1('0x2658'),_0xb8a8b9[_0x5beba1('0x15f5')]['offset']=0x0,_0xb8a8b9['queryMessage'][_0x5beba1('0x68e')]=0x3):(_0xb8a8b9[_0x5beba1('0x15f5')][_0x5beba1('0x2119')]='id',_0xb8a8b9[_0x5beba1('0x15f5')][_0x5beba1('0xd18')]=!![]),_0x667964[_0xb8a8b9[_0x5beba1('0x24f6')][_0x5beba1('0x2645')]+'Interaction'][_0x5beba1('0x241f')](_0xb8a8b9['queryMessage'])[_0x5beba1('0x1714')];})[_0x17df1f('0x2788')](function(_0x5ee8e1){const _0x5bf7a4=_0x17df1f;return _0xb8a8b9['messages']=_0x5ee8e1||{'count':0x0,'rows':[]},_0x667964[_0xb8a8b9['tab'][_0x5bf7a4('0x2645')]===_0x5bf7a4('0x231')?_0x5bf7a4('0x169c'):_0xb8a8b9[_0x5bf7a4('0x24f6')]['channel']+_0x5bf7a4('0x140b')][_0x5bf7a4('0x1335')]({'id':_0xb8a8b9['interaction'][_0xb8a8b9['tab'][_0x5bf7a4('0x2645')]===_0x5bf7a4('0x231')?'ChatWebsiteId':_0x283545()[_0x5bf7a4('0x1df5')](_0xb8a8b9[_0x5bf7a4('0x24f6')][_0x5bf7a4('0x2645')])+_0x5bf7a4('0x110a')]})['$promise'];})[_0x17df1f('0x2788')](function(_0x3c245f){const _0x2e806b=_0x17df1f;_0xb8a8b9[_0x2e806b('0x82f')]=_0x3c245f,_0xb8a8b9[_0x2e806b('0x24f6')]['title']=_0xb8a8b9[_0x2e806b('0x82f')][_0x2e806b('0x234b')]||_0xb8a8b9['account'][_0x2e806b('0x1a8d')];if(_0xb8a8b9[_0x2e806b('0xd61')][_0x2e806b('0x85a')])return _0x667964[_0x2e806b('0xa83')][_0x2e806b('0x1335')]({'id':_0xb8a8b9['interaction'][_0x2e806b('0x85a')]})[_0x2e806b('0x1714')];})[_0x17df1f('0x2788')](function(_0x4d4979){const _0x280754=_0x17df1f;return _0x4d4979&&(_0xb8a8b9[_0x280754('0xc17')]=_0x4d4979),_0xb8a8b9['showInteraction']=!![],_0xb8a8b9['contact']?(_0x5deef4(_0xb8a8b9[_0x280754('0xc17')]),_0xb8a8b9[_0x280754('0x24f6')][_0x280754('0x14e4')]+='\x20-\x20'+_0xb8a8b9[_0x280754('0xc17')][_0x280754('0x26da')]):_0xb8a8b9[_0x280754('0x24f6')][_0x280754('0x14e4')]+=_0x280754('0x1b0b')+_0x71e95d[_0x280754('0x1b11')](_0xb8a8b9[_0x280754('0x24f6')][_0x280754('0x2645')]['toUpperCase']()+'.UNKNOWN'),_0x667964['user'][_0x280754('0x1335')]({'fields':_0x280754('0x2024'),'nolimit':!![]})[_0x280754('0x1714')];})[_0x17df1f('0x2788')](function(_0x59a979){const _0x5072ff=_0x17df1f;_0xb8a8b9['users']=_0x59a979||{'count':0x0,'rows':[]},_0xb8a8b9['usersMap']=_0x283545()[_0x5072ff('0x2402')](_0x283545()['keyBy'](_0xb8a8b9[_0x5072ff('0x1e42')][_0x5072ff('0x25df')],'id'),_0x5072ff('0x2831'));})[_0x17df1f('0x2788')](function(){const _0x3d51b3=_0x17df1f;if(_0xb8a8b9[_0x3d51b3('0x24f6')]['channel']&&_0xb8a8b9[_0x3d51b3('0xd61')])return _0x667964[_0x3d51b3('0x1e6a')][_0x3d51b3('0x9b8')+_0x283545()['upperFirst'](_0xb8a8b9[_0x3d51b3('0x24f6')]['channel'])+_0x3d51b3('0x80a')]({'id':_0xb8a8b9[_0x3d51b3('0x1e6a')]['id'],'ids':[_0xb8a8b9[_0x3d51b3('0xd61')]['id']]});})[_0x17df1f('0x2788')](function(){const _0x1fb775=_0x17df1f;return _0x667964['mailSubstatus'][_0x1fb775('0x1335')]({'sort':'name','nolimit':!![]})[_0x1fb775('0x1714')];})[_0x17df1f('0x2788')](function(_0x2462ad){const _0x3834c0=_0x17df1f;_0xb8a8b9[_0x3834c0('0x1978')]=_0x2462ad||{'count':0x0,'rows':[]};})[_0x17df1f('0x2788')](function(){const _0x14d5d5=_0x17df1f;return _0xb8a8b9[_0x14d5d5('0x1688')]();})[_0x17df1f('0x2788')](function(){const _0x3ce457=_0x17df1f;return _0xb8a8b9[_0x3ce457('0x1dbb')]();})['then'](function(){const _0x56e65c=_0x17df1f;return _0xb8a8b9[_0x56e65c('0xb69')]();})['then'](function(){const _0x5effe7=_0x17df1f;return _0xb8a8b9[_0x5effe7('0x2238')]();})[_0x17df1f('0x2788')](function(){const _0x3a10d6=_0x17df1f;return _0xb8a8b9[_0x3a10d6('0x184')]();})[_0x17df1f('0x2788')](function(){const _0x7fb718=_0x17df1f;return _0xb8a8b9[_0x7fb718('0xfa6')]();})[_0x17df1f('0x2788')](function(){const _0x28d389=_0x17df1f;return _0xb8a8b9[_0x28d389('0xcdd')]();})[_0x17df1f('0x1cb5')](function(){const _0x16ebb8=_0x17df1f;_0xb8a8b9[_0x16ebb8('0x2117')]=!![];})['finally'](function(){const _0x3d7cc6=_0x17df1f;_0x62e529(),_0x12b8e9(),_0x5b6d48['on'](_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2645')]+_0x3d7cc6('0xcb0'),_0xb8a8b9[_0x3d7cc6('0x207b')]),_0x5b6d48['on'](_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2645')]+'Message:update',_0xb8a8b9['onMessageSave']),_0x5b6d48['on'](_0xb8a8b9[_0x3d7cc6('0x24f6')]['channel']+_0x3d7cc6('0x2445'),_0xb8a8b9[_0x3d7cc6('0x2543')]),_0x5b6d48['on'](_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2645')]+_0x3d7cc6('0x1ebd'),_0xb8a8b9['onInteractionSave']),_0x5b6d48['on']('user_has_'+_0xb8a8b9[_0x3d7cc6('0x24f6')]['channel']+'_interactions:save',_0xb8a8b9[_0x3d7cc6('0x1884')]),_0x5b6d48['on']('user_has_'+_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2645')]+'_interactions:remove',_0xb8a8b9['onInteractionClose']),_0xb8a8b9['tab'][_0x3d7cc6('0xabe')]=_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0xabe')]?_0xb8a8b9['tab'][_0x3d7cc6('0xabe')]:'',_0xb8a8b9['showFooter']=!![],_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2645')]===_0x3d7cc6('0x2795')&&(_0xb8a8b9[_0x3d7cc6('0x64e')]=_0x582d9b[_0x3d7cc6('0x122c')](_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0xd61')]['id']),_0xb8a8b9[_0x3d7cc6('0x24f6')][_0x3d7cc6('0x2ee')]&&(_0xb8a8b9['tab']['interaction'][_0x3d7cc6('0x215d')]?(_0x582d9b[_0x3d7cc6('0x113b')](_0xb8a8b9[_0x3d7cc6('0x24f6')]['interaction']['id']),_0xb8a8b9[_0x3d7cc6('0x64e')]=null):_0x5029d5()));}));}function _0x952c25(_0x1749d5){const _0x535544=_0x4bab78;if(_0x1749d5[_0x535544('0xfc2')])return _0x283545()[_0x535544('0x1d4e')](_0x283545()[_0x535544('0x155d')](_0xb8a8b9[_0x535544('0xe9b')]?_0xb8a8b9[_0x535544('0xe9b')]['rows']:[],'id'),_0x1749d5[_0x535544('0xfc2')]);else{if(_0x1749d5[_0x535544('0x22fa')])return _0x283545()[_0x535544('0x1d4e')](_0x283545()['map'](_0xb8a8b9['openchannelAccounts']?_0xb8a8b9[_0x535544('0x1e10')][_0x535544('0x25df')]:[],'id'),_0x1749d5[_0x535544('0x22fa')]);else{if(_0x1749d5['SmsAccountId'])return _0x283545()[_0x535544('0x1d4e')](_0x283545()[_0x535544('0x155d')](_0xb8a8b9['smsAccounts']?_0xb8a8b9[_0x535544('0x5f4')][_0x535544('0x25df')]:[],'id'),_0x1749d5[_0x535544('0xcba')]);else{if(_0x1749d5['WhatsappAccountId'])return _0x283545()[_0x535544('0x1d4e')](_0x283545()['map'](_0xb8a8b9[_0x535544('0xa47')]?_0xb8a8b9['whatsappAccounts'][_0x535544('0x25df')]:[],'id'),_0x1749d5[_0x535544('0x25b8')]);else{if(_0x1749d5[_0x535544('0x26b2')])return _0x283545()['includes'](_0x283545()[_0x535544('0x155d')](_0xb8a8b9[_0x535544('0x1e22')]?_0xb8a8b9[_0x535544('0x1e22')][_0x535544('0x25df')]:[],'id'),_0x1749d5[_0x535544('0x26b2')]);else{if(_0x1749d5['ChatWebsiteId'])return _0x283545()[_0x535544('0x1d4e')](_0x283545()[_0x535544('0x155d')](_0xb8a8b9[_0x535544('0x60')]?_0xb8a8b9[_0x535544('0x60')][_0x535544('0x25df')]:[],'id'),_0x1749d5['ChatWebsiteId']);else{if(_0x1749d5['amaflags'])return!![];}}}}}}return![];}function _0xe47c5f(_0x529224){const _0xced850=_0x4bab78;let _0xd1a359;_0xb8a8b9[_0xced850('0xd61')]['id']==_0x529224[_0x283545()['upperFirst'](_0xb8a8b9[_0xced850('0x24f6')][_0xced850('0x2645')])+_0xced850('0x89a')]&&(_0xb8a8b9['interaction'][_0xced850('0x23f4')]&&(_0xd1a359=_0x283545()[_0xced850('0x20e8')](_0xb8a8b9[_0xced850('0xd61')]['Users'],{'id':_0x529224[_0xced850('0x3bb')]})),!_0xd1a359&&_0xb8a8b9[_0xced850('0xd61')][_0xced850('0x23f4')][_0xced850('0x13e3')]({'id':_0x529224['UserId']}));}function _0x42dbca(_0xd31c2f){const _0x3dbcd0=_0x4bab78;_0xb8a8b9[_0x3dbcd0('0xd61')]['id']==_0xd31c2f[_0x283545()[_0x3dbcd0('0x2265')](_0xb8a8b9[_0x3dbcd0('0x24f6')]['channel'])+'InteractionId']&&(_0xb8a8b9['interaction'][_0x3dbcd0('0x23f4')]&&_0x283545()[_0x3dbcd0('0x1a90')](_0xb8a8b9[_0x3dbcd0('0xd61')][_0x3dbcd0('0x23f4')],{'id':_0xd31c2f['UserId']}));}function _0x324c39(_0x69dbc){const _0x136232=_0x4bab78;if(_0x69dbc){try{_0x283545()['templateSettings'][_0x136232('0x509')]=/{{([\s\S]+?)}}/g;const _0x267016=_0x283545()[_0x136232('0x2273')](_0x69dbc[_0x136232('0x49')]),_0x57b6e5={'user':_0xb8a8b9[_0x136232('0x1e6a')],'account':_0xb8a8b9['account'],'interaction':_0xb8a8b9[_0x136232('0xd61')],'contact':_0xb8a8b9['interaction']&&_0xb8a8b9['interaction'][_0x136232('0x1c64')]?_0xb8a8b9['interaction'][_0x136232('0x1c64')]:{}};_0xb8a8b9[_0x136232('0x24f6')][_0x136232('0xabe')]+='\x20'+_0x267016(_0x57b6e5),_0xb8a8b9[_0x136232('0x1e7b')][_0x136232('0x9d6')](_0xb8a8b9[_0x136232('0x24f6')][_0x136232('0xabe')]);}catch(_0x592b9c){_0xb8a8b9[_0x136232('0x24f6')]['areaText']+='\x20'+_0x69dbc[_0x136232('0x49')],_0xb8a8b9[_0x136232('0x1e7b')][_0x136232('0x9d6')](_0xb8a8b9[_0x136232('0x24f6')][_0x136232('0xabe')]);}_0xb8a8b9[_0x136232('0x1c92')]=null,_0xb8a8b9[_0x136232('0x21c8')]();}}function _0x1b87fd(_0x3f1245){const _0x16fb04=_0x4bab78,_0x4282fb=_0x263177['defer']();let _0x21e5a9=[];const _0x47bf13={},_0x5b6dc8=_0xb8a8b9[_0x16fb04('0x24f6')]['channel']===_0x16fb04('0x231')?'ChatWebsiteId':_0x283545()[_0x16fb04('0x1df5')](_0xb8a8b9[_0x16fb04('0x24f6')][_0x16fb04('0x2645')])+_0x16fb04('0x110a');return _0x47bf13['filter']=_0x3f1245,_0x47bf13[_0x5b6dc8]=_0xb8a8b9['account']['id'],_0x667964[_0x16fb04('0x1870')]['get'](_0x47bf13)['$promise'][_0x16fb04('0x2788')](function(_0x24c905){const _0xe67cb9=_0x16fb04;return _0x21e5a9=_0x283545()['concat'](_0x21e5a9,_0x24c905['rows']),_0x667964[_0xe67cb9('0x1870')][_0xe67cb9('0x1335')]({'filter':_0x3f1245})[_0xe67cb9('0x1714')];})['then'](function(_0x10748d){const _0x783c35=_0x16fb04;_0x21e5a9=_0x283545()[_0x783c35('0x1282')](_0x21e5a9,_0x283545()['filter'](_0x10748d[_0x783c35('0x25df')],function(_0x552206){const _0x10ced1=_0x783c35;return!_0x552206[_0x10ced1('0x26b2')]&&!_0x552206['FaxAccountId']&&!_0x552206[_0x10ced1('0xcba')]&&!_0x552206[_0x10ced1('0x25b8')]&&!_0x552206[_0x10ced1('0x22fa')]&&!_0x552206[_0x10ced1('0x965')];})),_0x4282fb['resolve'](_0x21e5a9);})[_0x16fb04('0x1cb5')](function(_0x5bed70){const _0x2faba3=_0x16fb04;_0x4282fb[_0x2faba3('0x9')](_0x5bed70);}),_0x4282fb[_0x16fb04('0x1808')];}function _0x1ad95e(_0x31a16c,_0x54383d){const _0x2711c6=_0x4bab78;try{_0xb8a8b9['tab']&&!_0xb8a8b9[_0x2711c6('0x24f6')][_0x2711c6('0x908')]&&_0x20d1db[_0x2711c6('0x7d0')][_0x2711c6('0x7d0')][_0x2711c6('0x7d0')]['vm'][_0x2711c6('0x11eb')](_0x54383d||_0xb8a8b9['contact']);}catch(_0x58696b){_0x55a44a[_0x2711c6('0x5e8')]({'title':_0x2711c6('0x758'),'msg':_0x2711c6('0x18c2')});}}function _0x572651(_0x23062d,_0x333fe0){const _0x15eacd=_0x4bab78;try{if(_0x333fe0['MailAccountId'])return _0x20d1db[_0x15eacd('0x7d0')][_0x15eacd('0x7d0')][_0x15eacd('0x7d0')]['vm'][_0x15eacd('0x1442')](_0x15eacd('0x2795'),_0x333fe0);else{if(_0x333fe0['ChatWebsiteId'])return _0x20d1db[_0x15eacd('0x7d0')][_0x15eacd('0x7d0')][_0x15eacd('0x7d0')]['vm'][_0x15eacd('0x1442')](_0x15eacd('0x231'),_0x333fe0);else{if(_0x333fe0[_0x15eacd('0xcba')])return _0x20d1db[_0x15eacd('0x7d0')][_0x15eacd('0x7d0')][_0x15eacd('0x7d0')]['vm'][_0x15eacd('0x1442')](_0x15eacd('0x529'),_0x333fe0);else{if(_0x333fe0['WhatsappAccountId'])return _0x20d1db['$parent'][_0x15eacd('0x7d0')]['$parent']['vm'][_0x15eacd('0x1442')](_0x15eacd('0x195d'),_0x333fe0);else{if(_0x333fe0['OpenchannelAccountId'])return _0x20d1db[_0x15eacd('0x7d0')]['$parent'][_0x15eacd('0x7d0')]['vm']['addInteractionTab'](_0x15eacd('0x18aa'),_0x333fe0);else{if(_0x333fe0[_0x15eacd('0xfc2')])return _0x20d1db['$parent']['$parent'][_0x15eacd('0x7d0')]['vm'][_0x15eacd('0x1442')]('fax',_0x333fe0);}}}}}}catch(_0x2361c5){_0x55a44a[_0x15eacd('0x5e8')]({'title':_0x15eacd('0x1a9'),'msg':_0x15eacd('0x678')});}}function _0x8a85b6(){const _0x38cdb8=_0x4bab78;_0x43eefa['show']({'controller':'TagInteractionDialogController','controllerAs':'vm','templateUrl':_0x1f5c83,'parent':angular[_0x38cdb8('0x16b1')](_0x25e9a1[_0x38cdb8('0x945')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0xb8a8b9[_0x38cdb8('0x24f6')][_0x38cdb8('0x908')]),'resolve':{'tags':[_0x38cdb8('0x1318'),function(_0x32df4e){const _0x3919bb=_0x38cdb8;return _0x32df4e[_0x3919bb('0x2322')](_0x3919bb('0x46c'),{'sort':'name','nolimit':!![],'fields':_0x3919bb('0xee4')});}]},'locals':{'channel':_0xb8a8b9[_0x38cdb8('0x24f6')][_0x38cdb8('0x2645')],'interaction':_0xb8a8b9[_0x38cdb8('0x24f6')][_0x38cdb8('0xd61')]}});}function _0x416868(){const _0x55275f=_0x4bab78,_0x5bb452=_0xb8a8b9[_0x55275f('0x1e6a')]['voicePause']||_0xb8a8b9[_0x55275f('0x1e6a')]['chatPause']||_0xb8a8b9['user'][_0x55275f('0x20cd')]||_0xb8a8b9[_0x55275f('0x1e6a')][_0x55275f('0x1098')]||_0xb8a8b9['user'][_0x55275f('0x1891')],_0x4a25c1=!_0xb8a8b9[_0x55275f('0x24f6')][_0x55275f('0xd61')]['Account'][_0x55275f('0x1c86')];_0x43eefa[_0x55275f('0x2fa')]({'controller':_0x55275f('0x1bff'),'controllerAs':'vm','templateUrl':_0x18e570,'parent':angular[_0x55275f('0x16b1')](_0x25e9a1['body']),'clickOutsideToClose':_0x4a25c1,'escapeToClose':_0x4a25c1,'onRemoving':function(){const _0xd48d67=_0x55275f;_0xb8a8b9['user']&&_0xb8a8b9[_0xd48d67('0xd61')][_0xd48d67('0x140b')][_0xd48d67('0x1c86')]&&!_0x5bb452&&_0x667964[_0xd48d67('0x1e6a')][_0xd48d67('0x1826')]({'id':_0xb8a8b9['user']['id']})['$promise'][_0xd48d67('0x1cb5')](function(_0xbc9adf){const _0x48ed53=_0xd48d67;console[_0x48ed53('0x5e8')](_0xbc9adf);});},'locals':{'user':_0xb8a8b9[_0x55275f('0x1e6a')],'channel':_0xb8a8b9[_0x55275f('0x24f6')]['channel'],'interaction':_0xb8a8b9['tab'][_0x55275f('0xd61')]}})['then'](function(_0x59a93e){const _0x451bb9=_0x55275f;_0xb8a8b9[_0x451bb9('0x24f6')][_0x451bb9('0x100f')]=Boolean(_0x59a93e),_0x59a93e&&_0x20d1db[_0x451bb9('0x7d0')][_0x451bb9('0x7d0')][_0x451bb9('0x7d0')]['vm'][_0x451bb9('0x301')](_0xb8a8b9['tab']);});}function _0x1bc2be(_0x104836,_0x4cb79c){const _0x1517a3=_0x4bab78;_0xb8a8b9['tab']['message']=_0x4cb79c,_0x43eefa[_0x1517a3('0x2fa')]({'controller':_0x1517a3('0x797'),'controllerAs':'vm','templateUrl':_0x2c06d6,'parent':angular['element'](_0x25e9a1[_0x1517a3('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0xb8a8b9['account'],'message':_0xb8a8b9[_0x1517a3('0x24f6')][_0x1517a3('0x15e2')],'type':_0x104836,'interaction':_0xb8a8b9[_0x1517a3('0xd61')]},'fullscreen':!![],'skipHide':Boolean(_0xb8a8b9['tab'][_0x1517a3('0x908')])})[_0x1517a3('0x2788')](function(_0x750f98){const _0x267119=_0x1517a3;if(_0x750f98){if(_0x750f98[_0x267119('0x15e2')]&&_0x750f98[_0x267119('0x15e2')][_0x267119('0x326')])_0xb8a8b9[_0x267119('0x64e')]?_0x582d9b[_0x267119('0x2740')]({'id':_0xb8a8b9['draft']['id'],'channel':_0x267119('0x2795'),'account':_0xb8a8b9['account'],'message':_0x750f98[_0x267119('0x15e2')],'contact':_0xb8a8b9[_0x267119('0xc17')],'interaction':_0xb8a8b9[_0x267119('0xd61')]}):_0x582d9b['add']({'channel':_0x267119('0x2795'),'account':_0xb8a8b9[_0x267119('0x82f')],'message':_0x750f98[_0x267119('0x15e2')],'contact':_0xb8a8b9[_0x267119('0xc17')],'interaction':_0xb8a8b9['interaction']}),_0xb8a8b9[_0x267119('0x64e')]=_0x582d9b[_0x267119('0x122c')](_0xb8a8b9[_0x267119('0x24f6')][_0x267119('0xd61')]['id']);else{const _0x1bc1f4=_0x750f98;_0x1bc1f4&&_0x441c7d(_0x1bc1f4),_0x1bc1f4[_0x267119('0x22a7')]&&_0xb8a8b9[_0x267119('0xd61')]&&_0xb8a8b9['interaction']['id']&&(_0x1bc1f4[_0x267119('0x22a7')]['id']=_0xb8a8b9[_0x267119('0xd61')]['id'],_0x667964[_0x267119('0x2559')][_0x267119('0x2740')](_0x1bc1f4[_0x267119('0x22a7')])[_0x267119('0x1714')]['then'](function(_0x238e21){const _0x5930a8=_0x267119;if(_0x238e21&&_0x238e21[_0x5930a8('0x215d')])_0xb8a8b9['tab']['saved']=!![],_0xb8a8b9['interaction'][_0x5930a8('0x215d')]=!![],_0x416868();else _0x1bc1f4[_0x5930a8('0x22a7')][_0x5930a8('0x1288')]!==null&&(_0xb8a8b9[_0x5930a8('0x24f6')]['saved']=!![],_0xb8a8b9['tab']['interaction'][_0x5930a8('0x1288')]=_0x1bc1f4[_0x5930a8('0x22a7')][_0x5930a8('0x1288')],_0x20d1db[_0x5930a8('0x7d0')][_0x5930a8('0x7d0')][_0x5930a8('0x7d0')]['vm'][_0x5930a8('0x301')](_0xb8a8b9['tab']));})[_0x267119('0x1cb5')](function(_0x1f6978){const _0x3290f6=_0x267119;console[_0x3290f6('0x5e8')](_0x1f6978);}));}}})[_0x1517a3('0x1ed8')](function(){const _0x3d5642=_0x1517a3;_0xb8a8b9[_0x3d5642('0x24f6')]['isDraft']=![];});}function _0x21958d(_0x3da6d4,_0xf5840){const _0x470e35=_0x4bab78;if(_0xf5840[_0x470e35('0x198b')]){const _0x114662=_0x283545()[_0x470e35('0x20e8')](_0xb8a8b9[_0x470e35('0xf9b')][_0x470e35('0x25df')],{'messageId':_0xf5840['inReplyTo']});if(_0x114662)_0x1bc2be(_0x3da6d4,_0x114662);else return _0x667964[_0x470e35('0x125')][_0x470e35('0x1335')]({'messageId':_0xf5840[_0x470e35('0x198b')]})[_0x470e35('0x1714')]['then'](function(_0x147677){const _0x1751da=_0x470e35;_0x1bc2be(_0x3da6d4,_0x147677&&_0x147677[_0x1751da('0x338')]?_0x147677[_0x1751da('0x25df')][0x0]:undefined);})['catch'](function(_0x40643e){console['error'](_0x40643e),_0x1bc2be(_0x3da6d4,undefined);});}else _0x1bc2be(_0x3da6d4,_0xf5840);}function _0x11df91(_0x319721){const _0x41704d=_0x4bab78,_0x2ef53a={'to':[]};_0x2ef53a['to'][_0x41704d('0x13e3')](_0xb8a8b9[_0x41704d('0xc17')][_0x41704d('0x10cf')]),_0x43eefa[_0x41704d('0x2fa')]({'controller':_0x41704d('0x6ba'),'controllerAs':'vm','templateUrl':_0x3a358a,'parent':angular[_0x41704d('0x16b1')](_0x25e9a1[_0x41704d('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0xb8a8b9[_0x41704d('0x82f')],'message':_0x2ef53a,'type':_0x319721},'fullscreen':!![]})['then'](function(_0x12a70b){const _0x1ec5fc=_0x41704d;return _0x667964[_0x1ec5fc('0x1fb8')][_0x1ec5fc('0x1fc9')]({'id':_0xb8a8b9[_0x1ec5fc('0x82f')]['id']},_0x12a70b)[_0x1ec5fc('0x1714')][_0x1ec5fc('0x2788')](function(_0x433ef6){const _0x47c574=_0x1ec5fc;_0x55a44a[_0x47c574('0x173b')]({'title':'Message\x20properly\x20sent!','msg':_0x47c574('0x65b')}),_0x20d1db[_0x47c574('0x7d0')]['vm'][_0x47c574('0x1442')](_0x47c574('0x10cf'),_0x433ef6);})['catch'](function(_0x4cfd32){const _0x3afc79=_0x1ec5fc;if(_0x4cfd32[_0x3afc79('0x11fc')]&&_0x4cfd32[_0x3afc79('0x11fc')]['errors']&&_0x4cfd32[_0x3afc79('0x11fc')][_0x3afc79('0x25be')][_0x3afc79('0x2566')])for(let _0x411e08=0x0;_0x411e08<_0x4cfd32[_0x3afc79('0x11fc')][_0x3afc79('0x25be')]['length'];_0x411e08++){_0x55a44a[_0x3afc79('0x5e8')]({'title':_0x4cfd32[_0x3afc79('0x11fc')][_0x3afc79('0x25be')][_0x411e08]['type'],'msg':_0x4cfd32[_0x3afc79('0x11fc')][_0x3afc79('0x25be')][_0x411e08][_0x3afc79('0x15e2')]});}else _0x55a44a[_0x3afc79('0x5e8')]({'title':_0x3afc79('0x1fc8'),'msg':_0x4cfd32[_0x3afc79('0x11fc')]?JSON['stringify'](_0x4cfd32[_0x3afc79('0x11fc')]):_0x4cfd32[_0x3afc79('0x15e2')]||_0x4cfd32[_0x3afc79('0x17df')]()});});});}function _0xf44bc(_0x5b325b,_0x3eb49a){const _0x2e19e3=_0x4bab78;_0x43eefa[_0x2e19e3('0x2fa')]({'controller':_0x2e19e3('0x1b2a'),'controllerAs':'vm','templateUrl':_0x19ab75,'parent':angular[_0x2e19e3('0x16b1')](_0x25e9a1['body']),'clickOutsideToClose':![],'locals':{'account':_0xb8a8b9[_0x2e19e3('0x82f')],'message':_0x3eb49a,'type':_0x5b325b},'fullscreen':!![],'skipHide':Boolean(_0xb8a8b9[_0x2e19e3('0x24f6')][_0x2e19e3('0x908')])})[_0x2e19e3('0x2788')](function(_0x2e7c64){_0x2e7c64&&_0x441c7d(_0x2e7c64);});}function _0x1a9866(_0x12757e,_0x183302){const _0x185ae7=_0x4bab78;_0x43eefa['show']({'controller':_0x185ae7('0x397'),'controllerAs':'vm','templateUrl':_0x50342f,'parent':angular[_0x185ae7('0x16b1')](_0x25e9a1[_0x185ae7('0x945')]),'clickOutsideToClose':![],'locals':{'account':_0xb8a8b9['account'],'message':_0x183302,'type':_0x12757e},'fullscreen':!![],'skipHide':Boolean(_0xb8a8b9['tab'][_0x185ae7('0x908')])})[_0x185ae7('0x2788')](function(_0x24a9de){_0x24a9de&&_0x441c7d(_0x24a9de);});}function _0x5e3072(){const _0x5f2ba7=_0x4bab78;if(_0xb8a8b9[_0x5f2ba7('0xd61')]){const _0x45372b=_0x283545()[_0x5f2ba7('0x19e0')](_0xb8a8b9[_0x5f2ba7('0xf9b')][_0x5f2ba7('0x25df')],function(_0x2f95ae){const _0x1c9f95=_0x5f2ba7;return _0x2f95ae[_0x1c9f95('0x7c3')]==='in';});_0x45372b?_0x43eefa[_0x5f2ba7('0x2fa')]({'controller':_0x5f2ba7('0x20bc'),'controllerAs':'vm','templateUrl':_0x400cbe,'parent':angular[_0x5f2ba7('0x16b1')](_0x25e9a1['body']),'clickOutsideToClose':![],'locals':{'account':_0xb8a8b9[_0x5f2ba7('0x82f')],'interaction':_0xb8a8b9['interaction'],'message':_0x45372b,'channel':_0xb8a8b9[_0x5f2ba7('0x24f6')][_0x5f2ba7('0x2645')]}})[_0x5f2ba7('0x2788')](function(_0x524938){const _0x5592f0=_0x5f2ba7;_0xb8a8b9[_0x5592f0('0x24f6')][_0x5592f0('0x100f')]=Boolean(_0x524938),_0x524938&&_0x20d1db['$parent'][_0x5592f0('0x7d0')]['$parent']['vm'][_0x5592f0('0x301')](_0xb8a8b9[_0x5592f0('0x24f6')]);}):_0x55a44a[_0x5f2ba7('0x5e8')]({'title':_0x5f2ba7('0x30'),'msg':_0x5f2ba7('0x20b7')});}}function _0x453ce4(_0x1c142f){const _0x39bcdf=_0x4bab78,_0x3572dc={},_0x23d17b=_0xb8a8b9[_0x39bcdf('0x24f6')]['channel']===_0x39bcdf('0x231')?_0x39bcdf('0x965'):_0x283545()[_0x39bcdf('0x1df5')](_0xb8a8b9[_0x39bcdf('0x24f6')][_0x39bcdf('0x2645')])+_0x39bcdf('0x110a');return _0x3572dc[_0x23d17b]=_0xb8a8b9['interaction'][_0x23d17b][_0x39bcdf('0x17df')](),_0x3572dc[_0x283545()[_0x39bcdf('0x1df5')](_0xb8a8b9[_0x39bcdf('0x24f6')][_0x39bcdf('0x2645')])+_0x39bcdf('0x89a')]=_0xb8a8b9[_0x39bcdf('0xd61')]['id'],(_0xb8a8b9['tab'][_0x39bcdf('0x2645')]===_0x39bcdf('0x529')||_0xb8a8b9['tab'][_0x39bcdf('0x2645')]===_0x39bcdf('0x195d'))&&(_0x3572dc[_0x39bcdf('0x1224')]=_0xb8a8b9['interaction'][_0x39bcdf('0x1224')]),_0x1c142f&&(_0x3572dc[_0x39bcdf('0x3bb')]=_0xb8a8b9[_0x39bcdf('0x1e6a')]['id'],_0x3572dc[_0x39bcdf('0x85a')]=_0xb8a8b9[_0x39bcdf('0xd61')][_0x39bcdf('0x85a')],_0x3572dc[_0x39bcdf('0x945')]=_0x1c142f),_0x3572dc;}function _0x144ae7(_0x1fe6fb){const _0x51776f=_0x4bab78;if(_0x1fe6fb['size']>_0x580bf0)return _0x55a44a[_0x51776f('0x5e8')]({'title':_0x51776f('0x6e8'),'msg':_0x51776f('0x232c')+_0x4db774+'MB'}),![];return!![];}function _0x50bd77(_0x3c43c2,_0x2ded3d){const _0x520837=_0x4bab78,_0x4885d3=JSON[_0x520837('0xe0b')](_0x2ded3d);let _0x43d70b=_0x4885d3['name'];_0xb8a8b9[_0x520837('0x24f6')][_0x520837('0x2645')]===_0x520837('0x231')&&(_0x43d70b=_0x520837('0x1699')+(_0xb8a8b9['account']['remote']?_0xb8a8b9[_0x520837('0x82f')][_0x520837('0x2279')]:_0x58faa3[_0x520837('0x170c')]()+_0x520837('0x726')+_0x58faa3[_0x520837('0x1c6a')]())+_0x520837('0x11c')+_0xb8a8b9[_0x520837('0xd61')]['id']+_0x520837('0x189f')+_0x4885d3['id']+_0x520837('0x116')+_0xb8a8b9['account'][_0x520837('0x2620')]+_0x520837('0xaed')+_0x4885d3['name']+''),_0x441c7d({'body':_0x43d70b,'AttachmentId':_0x4885d3['id']});}function _0x99f06b(){const _0x11715e=_0x4bab78;_0xb8a8b9[_0x11715e('0x2793')][_0x11715e('0x8a4')][_0x11715e('0xcc6')][_0x11715e('0x186d')]={'X-Requested-With':_0x11715e('0xa34'),'Authorization':_0x11715e('0xf2f')+_0x3a57d7[_0x11715e('0x1335')](_0x11715e('0x2eb'))},_0xb8a8b9[_0x11715e('0x2793')][_0x11715e('0x8a4')]['upload']();}function _0x4d1ba9(_0x4905fe,_0x1102d0){const _0x34de56=_0x4bab78;if(_0x4905fe&&_0x4905fe[_0x34de56('0xe88')]===0xd&&_0x4905fe[_0x34de56('0x244f')])return;if(_0x4905fe&&_0x4905fe[_0x34de56('0xe88')]!==0xd)return;if(_0x1102d0[_0x34de56('0x1d7f')]()==='')return;_0x441c7d(_0x453ce4(_0x1102d0['replace'](/\n$/,'')));}function _0x12b8e9(){const _0x5c78e8=_0x4bab78;_0xb8a8b9[_0x5c78e8('0x24f6')]['channel']!==_0x5c78e8('0x2795')&&_0x221f2e(function(){const _0x480693=_0x5c78e8,_0x8de665=angular[_0x480693('0x16b1')](_0x25e9a1[_0x480693('0x20e8')]('md-content[name*=\x27interaction-content-'+_0xb8a8b9[_0x480693('0x24f6')]['id']+'\x27]'));_0x8de665&&_0x8de665[0x0]&&(_0x8de665[0x0][_0x480693('0x438')]=_0x8de665[0x0][_0x480693('0x76d')]);},0x0);}function _0x9c75a(_0x8d4faf){const _0x2aef84=_0x4bab78,_0x563d85=_0x2aef84('0x7dd');if(_0x8d4faf){if(_0x8d4faf[_0x2aef84('0x7c3')]==='in')return _0x8d4faf['Contact']?_0x8d4faf['Contact'][_0x2aef84('0x26da')]||_0x2aef84('0x23cb'):_0x563d85;else{if(_0x8d4faf[_0x2aef84('0x3bb')])return _0xb8a8b9[_0x2aef84('0x23ee')]?_0xb8a8b9[_0x2aef84('0x23ee')][_0x8d4faf[_0x2aef84('0x3bb')]]:_0x563d85;}return _0x2aef84('0x5cd')||0x0;}}function _0x38b0fd(_0xcfeffb,_0x4e54f7){const _0x3ad471=_0x4bab78;_0xb8a8b9['tab'][_0x3ad471('0x2645')]&&_0xcfeffb['id']&&_0x667964[_0xb8a8b9['tab']['channel']+_0x3ad471('0x217')]['download']({'id':_0xcfeffb['id'],'attachments':_0x4e54f7})[_0x3ad471('0x1714')][_0x3ad471('0x2788')](function(_0x4597d2){const _0x49aaba=_0x3ad471,_0x19169f=[_0x4597d2[_0x49aaba('0x3f1')]];let _0x210bf1='download';const _0x54ad0f=new Blob(_0x19169f,{'type':_0x4597d2[_0x49aaba('0x1d7')]});_0x210bf1=_0xb8a8b9[_0x49aaba('0x24f6')][_0x49aaba('0x2645')]+_0x49aaba('0x15c7')+_0xcfeffb['id']+'.eml';const _0x31dcc6=window[_0x49aaba('0x11c4')][_0x49aaba('0x1ae6')]('a');_0x31dcc6[_0x49aaba('0x1c6b')](_0x49aaba('0x186a'),URL['createObjectURL'](_0x54ad0f)),_0x31dcc6[_0x49aaba('0x1c6b')](_0x49aaba('0x1486'),_0x210bf1),document[_0x49aaba('0x945')][_0x49aaba('0xcbf')](_0x31dcc6),_0x31dcc6['click']();})[_0x3ad471('0x1cb5')](function(_0xbb41b2){const _0xdad5ad=_0x3ad471;if(_0xbb41b2['data']&&_0xbb41b2[_0xdad5ad('0x11fc')]['errors']&&_0xbb41b2['data'][_0xdad5ad('0x25be')]['length'])for(let _0x565350=0x0;_0x565350<_0xbb41b2[_0xdad5ad('0x11fc')][_0xdad5ad('0x25be')][_0xdad5ad('0x2566')];_0x565350+=0x1){_0x55a44a['error']({'title':_0xbb41b2['data'][_0xdad5ad('0x25be')][_0x565350]['type'],'msg':_0xbb41b2[_0xdad5ad('0x11fc')][_0xdad5ad('0x25be')][_0x565350][_0xdad5ad('0x15e2')]});}else _0x55a44a[_0xdad5ad('0x5e8')]({'title':_0xbb41b2[_0xdad5ad('0x1b51')]?_0xdad5ad('0x15d1')+_0xbb41b2['status']+_0xdad5ad('0x1b0b')+_0xbb41b2[_0xdad5ad('0x22ce')]:_0xdad5ad('0x22f8'),'msg':_0xbb41b2[_0xdad5ad('0x11fc')]?JSON[_0xdad5ad('0x1be0')](_0xbb41b2[_0xdad5ad('0x11fc')][_0xdad5ad('0x15e2')]):_0xbb41b2[_0xdad5ad('0x17df')]()});});}function _0x3ed3f3(_0x57884a,_0x3345a2){const _0x20a852=_0x4bab78;_0xb8a8b9[_0x20a852('0x24f6')][_0x20a852('0x2645')]&&_0x57884a['id']&&_0x667964[_0xb8a8b9[_0x20a852('0x24f6')][_0x20a852('0x2645')]+'Interaction'][_0x20a852('0x1486')]({'id':_0x57884a['id'],'attachments':_0x3345a2})[_0x20a852('0x1714')][_0x20a852('0x2788')](function(_0x5a2e88){const _0x2eed99=_0x20a852,_0x115483=[_0x5a2e88[_0x2eed99('0x3f1')]],_0x5a056b=_0xb8a8b9['tab'][_0x2eed99('0x2645')]+_0x2eed99('0x2492')+_0x57884a['id']+'.zip',_0x281040=new Blob(_0x115483,{'type':_0x5a2e88[_0x2eed99('0x1d7')]}),_0x2986fa=window['document']['createElement']('a');_0x2986fa[_0x2eed99('0x1c6b')](_0x2eed99('0x186a'),URL[_0x2eed99('0x1b0d')](_0x281040)),_0x2986fa[_0x2eed99('0x1c6b')](_0x2eed99('0x1486'),_0x5a056b),document[_0x2eed99('0x945')][_0x2eed99('0xcbf')](_0x2986fa),_0x2986fa[_0x2eed99('0x132a')]();})[_0x20a852('0x1cb5')](function(_0x4fd4c2){const _0x11c427=_0x20a852;if(_0x4fd4c2[_0x11c427('0x11fc')]&&_0x4fd4c2[_0x11c427('0x11fc')][_0x11c427('0x25be')]&&_0x4fd4c2['data'][_0x11c427('0x25be')][_0x11c427('0x2566')])for(let _0x684e9b=0x0;_0x684e9b<_0x4fd4c2[_0x11c427('0x11fc')][_0x11c427('0x25be')]['length'];_0x684e9b+=0x1){_0x55a44a[_0x11c427('0x5e8')]({'title':_0x4fd4c2['data'][_0x11c427('0x25be')][_0x684e9b][_0x11c427('0x1d7')],'msg':_0x4fd4c2[_0x11c427('0x11fc')][_0x11c427('0x25be')][_0x684e9b][_0x11c427('0x15e2')]});}else _0x55a44a['error']({'title':_0x4fd4c2[_0x11c427('0x1b51')]?_0x11c427('0x15d1')+_0x4fd4c2[_0x11c427('0x1b51')]+_0x11c427('0x1b0b')+_0x4fd4c2[_0x11c427('0x22ce')]:_0x11c427('0x2646'),'msg':_0x4fd4c2[_0x11c427('0x11fc')]?JSON[_0x11c427('0x1be0')](_0x4fd4c2[_0x11c427('0x11fc')]['message']):_0x4fd4c2[_0x11c427('0x17df')]()});});}function _0x441c7d(_0x4d867a){const _0x38d5ce=_0x4bab78;if(_0x4d867a)return _0x4d867a[_0xb8a8b9[_0x38d5ce('0x24f6')][_0x38d5ce('0x2645')]==='chat'?_0x38d5ce('0x965'):_0x283545()[_0x38d5ce('0x1df5')](_0xb8a8b9['tab']['channel'])+'AccountId']=_0xb8a8b9[_0x38d5ce('0xd61')][_0xb8a8b9['tab'][_0x38d5ce('0x2645')]===_0x38d5ce('0x231')?_0x38d5ce('0x965'):_0x283545()[_0x38d5ce('0x1df5')](_0xb8a8b9[_0x38d5ce('0x24f6')][_0x38d5ce('0x2645')])+_0x38d5ce('0x110a')],_0x4d867a[_0x283545()[_0x38d5ce('0x1df5')](_0xb8a8b9[_0x38d5ce('0x24f6')][_0x38d5ce('0x2645')])+_0x38d5ce('0x89a')]=_0xb8a8b9[_0x38d5ce('0xd61')]['id'],_0x4d867a[_0x38d5ce('0x3bb')]=_0xb8a8b9[_0x38d5ce('0x1e6a')]['id'],_0x4d867a[_0x38d5ce('0x85a')]=_0xb8a8b9[_0x38d5ce('0xd61')][_0x38d5ce('0x85a')],_0x4d867a[_0x38d5ce('0x7c3')]=_0x38d5ce('0x181d'),_0x4d867a['secret']=Boolean(_0xb8a8b9['tab'][_0x38d5ce('0x908')]||_0x4d867a[_0x38d5ce('0x2685')]),_0x667964[_0xb8a8b9[_0x38d5ce('0x24f6')][_0x38d5ce('0x2645')]+_0x38d5ce('0x217')][_0x38d5ce('0xbd0')](_0x4d867a)['$promise'][_0x38d5ce('0x2788')](function(_0x277681){const _0x1ca3f4=_0x38d5ce;if(_0x277681&&_0x277681['id']){if(!_0x283545()[_0x1ca3f4('0x213d')](_0x4d867a[_0x1ca3f4('0x8ba')])){const _0x5f51ff=[];for(let _0x46b903=0x0;_0x46b903<_0x4d867a[_0x1ca3f4('0x8ba')][_0x1ca3f4('0x2566')];_0x46b903++){const _0x1960a7=_0x4d867a['attachments'][_0x46b903];_0x1960a7[_0x1ca3f4('0x1393')]?_0x5f51ff['push'](_0x667964[_0x1ca3f4('0x2358')][_0x1ca3f4('0x1b8')]({'id':_0x1960a7['id']},{'name':_0x1960a7['name'],'basename':_0x1960a7[_0x1ca3f4('0x2014')],'type':_0x1960a7[_0x1ca3f4('0x1d7')],'MailMessageId':_0x277681['id']})[_0x1ca3f4('0x1714')]):_0x5f51ff['push'](_0x667964['attachment']['update']({'id':_0x1960a7['id']},{'MailMessageId':_0x277681['id']})[_0x1ca3f4('0x1714')]);}return _0x263177[_0x1ca3f4('0x1def')](_0x5f51ff);}}})['catch'](function(_0x36ad29){const _0x49a964=_0x38d5ce;_0x55a44a[_0x49a964('0x5e8')]({'title':_0x36ad29[_0x49a964('0x1b51')]?_0x49a964('0x15d1')+_0x36ad29[_0x49a964('0x1b51')]+_0x49a964('0x1b0b')+_0x36ad29[_0x49a964('0x22ce')]:'SYSTEM:SENDMESSAGE','msg':_0x36ad29[_0x49a964('0x11fc')]?JSON[_0x49a964('0x1be0')](_0x36ad29[_0x49a964('0x11fc')]):_0x36ad29[_0x49a964('0x17df')]()});})[_0x38d5ce('0x1ed8')](function(){const _0x54ec8f=_0x38d5ce;_0xb8a8b9[_0x54ec8f('0x24f6')]['channel']===_0x54ec8f('0x2795')&&(_0x4d867a[_0x54ec8f('0x2ee')]&&(_0x582d9b[_0x54ec8f('0x113b')](_0xb8a8b9[_0x54ec8f('0xd61')]['id']),_0xb8a8b9[_0x54ec8f('0x64e')]=null)),_0xb8a8b9[_0x54ec8f('0x24f6')][_0x54ec8f('0xabe')]='',_0x12b8e9();});}function _0x55e15f(_0x1e7ef9){const _0x1c7d3a=_0x4bab78;_0xb8a8b9[_0x1c7d3a('0x24f6')][_0x1c7d3a('0x2645')]&&_0xb8a8b9[_0x1c7d3a('0xd61')]&&_0xb8a8b9[_0x1c7d3a('0xd61')]['id']&&_0x667964[_0xb8a8b9[_0x1c7d3a('0x24f6')]['channel']+_0x1c7d3a('0x22a7')][_0x1c7d3a('0x2740')]({'id':_0xb8a8b9[_0x1c7d3a('0xd61')]['id'],'substatus':_0x1e7ef9})[_0x1c7d3a('0x1714')][_0x1c7d3a('0x1cb5')](function(_0x1406f5){const _0x118827=_0x1c7d3a;console[_0x118827('0x5e8')](_0x1406f5);});}function _0x2b4ad2(){const _0x3ec1ab=_0x4bab78;if(_0xb8a8b9[_0x3ec1ab('0x24f6')][_0x3ec1ab('0x2645')]&&_0xb8a8b9[_0x3ec1ab('0xd61')]&&_0xb8a8b9[_0x3ec1ab('0xd61')]['id']){if(_0xb8a8b9[_0x3ec1ab('0x5ce')][_0x3ec1ab('0x2566')])for(let _0x5978c1=0x0;_0x5978c1<_0xb8a8b9[_0x3ec1ab('0x5ce')][_0x3ec1ab('0x2566')];_0x5978c1+=0x1){_0x667964[_0xb8a8b9[_0x3ec1ab('0x24f6')][_0x3ec1ab('0x2645')]+'Message'][_0x3ec1ab('0x2740')]({'id':_0xb8a8b9['acceptedMessages'][_0x5978c1],'read':![],'UserId':null});}else for(let _0x47ef68=0x0;_0x47ef68<_0xb8a8b9[_0x3ec1ab('0xf9b')]['rows'][_0x3ec1ab('0x2566')];_0x47ef68+=0x1){if(_0xb8a8b9['messages'][_0x3ec1ab('0x25df')][_0x47ef68][_0x3ec1ab('0x7c3')]==='in'){_0xb8a8b9[_0x3ec1ab('0xf9b')][_0x3ec1ab('0x25df')][_0x47ef68][_0x3ec1ab('0x3bb')]===_0xb8a8b9[_0x3ec1ab('0x1e6a')]['id']?_0x667964[_0xb8a8b9[_0x3ec1ab('0x24f6')][_0x3ec1ab('0x2645')]+'Message'][_0x3ec1ab('0x2740')]({'id':_0xb8a8b9[_0x3ec1ab('0xf9b')]['rows'][_0x47ef68]['id'],'read':![],'UserId':null}):_0x55a44a['error']({'title':'You\x20can\x27t\x20mark\x20as\x20unread','msg':'You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!'});break;}}}_0xb8a8b9[_0x3ec1ab('0x24f6')][_0x3ec1ab('0x100f')]=!![],_0x20d1db[_0x3ec1ab('0x7d0')][_0x3ec1ab('0x7d0')][_0x3ec1ab('0x7d0')]['vm'][_0x3ec1ab('0x301')](_0xb8a8b9[_0x3ec1ab('0x24f6')]);}function _0x5d3d64(_0x5e4a9c){const _0x26b412=_0x4bab78;if(_0x5e4a9c&&_0xb8a8b9[_0x26b412('0xd61')]['id']!==_0x5e4a9c['id'])return;_0x5e4a9c[_0x26b412('0x215d')]&&(_0xb8a8b9[_0x26b412('0x24f6')][_0x26b412('0x100f')]=!![]),_0x283545()[_0x26b412('0x2503')](_0xb8a8b9[_0x26b412('0xd61')],_0x5e4a9c);}function _0x5d0c56(_0x21ef00){const _0x44fe13=_0x4bab78;if(_0x21ef00&&_0xb8a8b9[_0x44fe13('0xd61')]['id']!=_0x21ef00[_0x283545()[_0x44fe13('0x1df5')](_0xb8a8b9[_0x44fe13('0x24f6')][_0x44fe13('0x2645')])+_0x44fe13('0x89a')])return;let _0x5d0c5d=![];_0xb8a8b9[_0x44fe13('0xf9b')]?_0x5d0c5d=_0x283545()['find'](_0xb8a8b9[_0x44fe13('0xf9b')][_0x44fe13('0x25df')],{'id':_0x21ef00['id']}):_0xb8a8b9[_0x44fe13('0xf9b')]={'rows':[],'count':0x0},_0x5d0c5d?_0x283545()[_0x44fe13('0x2503')](_0x5d0c5d,_0x21ef00):(_0xb8a8b9[_0x44fe13('0x24f6')][_0x44fe13('0x2645')]===_0x44fe13('0x2795')?_0xb8a8b9[_0x44fe13('0xf9b')][_0x44fe13('0x25df')][_0x44fe13('0xc51')](_0x21ef00):_0xb8a8b9['messages'][_0x44fe13('0x25df')][_0x44fe13('0x13e3')](_0x21ef00),_0x12b8e9());}function _0x31fd0d(_0x3b390c){const _0x385c86=_0x4bab78;switch(_0x3b390c){case'chat':return'icon-hangouts';case'mail':return _0x385c86('0x2772');case _0x385c86('0x529'):return _0x385c86('0x223f');case _0x385c86('0x195d'):return _0x385c86('0x2225');case _0x385c86('0x18aa'):return _0x385c86('0x2729');case _0x385c86('0x10cf'):return _0x385c86('0xe77');default:return _0x385c86('0x1bc4');}}function _0x126463(_0xc09b4e){const _0x167f06=_0x4bab78;switch(_0xc09b4e){case _0x167f06('0x231'):return _0x167f06('0x17d1');case'mail':return _0x167f06('0xb55');case _0x167f06('0x529'):return _0x167f06('0x1cfb');case'openchannel':return _0x167f06('0x1441');case'fax':return _0x167f06('0x687');case _0x167f06('0x195d'):return _0x167f06('0x1226');default:return'blue-A700';}}function _0x4d02a4(_0x2de1e1){const _0xafd012=_0x4bab78;let _0x1d2696='';if(_0x2de1e1[_0xafd012('0xfc2')])_0x1d2696=_0xafd012('0x10cf');else{if(_0x2de1e1[_0xafd012('0x22fa')])_0x1d2696=_0xafd012('0x18aa');else{if(_0x2de1e1[_0xafd012('0xcba')])_0x1d2696=_0xafd012('0x529');else{if(_0x2de1e1[_0xafd012('0x25b8')])_0x1d2696=_0xafd012('0x195d');else{if(_0x2de1e1[_0xafd012('0x26b2')])_0x1d2696='mail';else{if(_0x2de1e1[_0xafd012('0x965')])_0x1d2696=_0xafd012('0x231');else _0x2de1e1[_0xafd012('0x20bb')]&&(_0x1d2696='voice');}}}}}return _0x126463(_0x1d2696);}function _0x2f5a70(_0x5d4e1d){const _0x5ef823=_0x4bab78;if(_0x5d4e1d['secret']&&_0xb8a8b9['user']['id']!=_0x5d4e1d[_0x5ef823('0x3bb')])return'in';switch(_0xb8a8b9[_0x5ef823('0x1af0')][_0x5ef823('0x1295')]){case'left':if(_0x5d4e1d[_0x5ef823('0x7c3')]=='in')return _0x5d4e1d[_0x5ef823('0x7c3')];return _0x5ef823('0x1f2e');case _0x5ef823('0x6ec'):if(_0x5d4e1d[_0x5ef823('0x7c3')]=='in')return'in-right-aligned';return _0x5d4e1d[_0x5ef823('0x7c3')];default:return _0x5d4e1d[_0x5ef823('0x7c3')];}}function _0x4638ba(){const _0x73748f=_0x4bab78;_0xb8a8b9[_0x73748f('0x2317')]=!_0xb8a8b9[_0x73748f('0x2317')];}function _0x2a20ba(_0x206cff){const _0x2f8a1b=_0x4bab78;return _0x667964['attachment'][_0x2f8a1b('0x1335')]({'MailMessageId':_0x206cff['id']})['$promise'][_0x2f8a1b('0x2788')](function(_0xaef69c){_0xaef69c&&_0xaef69c['rows']&&(_0x206cff['attachments']=_0xaef69c['rows']);})[_0x2f8a1b('0x1cb5')](function(_0x51de63){const _0x4768bb=_0x2f8a1b;_0x55a44a[_0x4768bb('0x5e8')]({'title':_0x51de63[_0x4768bb('0x1b51')]?_0x4768bb('0x15d1')+_0x51de63[_0x4768bb('0x1b51')]+_0x4768bb('0x1b0b')+_0x51de63[_0x4768bb('0x22ce')]:_0x4768bb('0x1b2b'),'msg':_0x51de63['data']?JSON['stringify'](_0x51de63[_0x4768bb('0x11fc')]):_0x51de63['toString']()});});}function _0x23f94b(_0x32127e){const _0x5d8292=_0x4bab78;return _0x667964[_0x5d8292('0x2358')][_0x5d8292('0x1486')]({'id':_0x32127e['id']})[_0x5d8292('0x1714')][_0x5d8292('0x2788')](function(_0x3119f7){const _0x2f8d9e=_0x5d8292;if(_0x3119f7){const _0x1402e8=new Blob([_0x3119f7['buffer']],{'type':_0x3119f7['type']}),_0x5e0e9e=document[_0x2f8d9e('0x1ae6')]('a'),_0x366657=window['URL'][_0x2f8d9e('0x1b0d')](_0x1402e8);_0x5e0e9e[_0x2f8d9e('0x186a')]=_0x366657,_0x5e0e9e[_0x2f8d9e('0x159c')]='_self',_0x5e0e9e['download']=_0x32127e[_0x2f8d9e('0x1a8d')],document[_0x2f8d9e('0x945')]['appendChild'](_0x5e0e9e),_0x5e0e9e['click'](),setTimeout(function(){const _0x304054=_0x2f8d9e;document['body'][_0x304054('0x1c3b')](_0x5e0e9e),window[_0x304054('0x5')][_0x304054('0xb72')](_0x366657);},0x64);}})[_0x5d8292('0x1cb5')](function(_0x33420a){const _0x1f568=_0x5d8292;_0x55a44a[_0x1f568('0x5e8')]({'title':_0x33420a[_0x1f568('0x1b51')]?_0x1f568('0x15d1')+_0x33420a['status']+_0x1f568('0x1b0b')+_0x33420a[_0x1f568('0x22ce')]:_0x1f568('0x1b2b'),'msg':_0x33420a[_0x1f568('0x11fc')]?JSON[_0x1f568('0x1be0')](_0x33420a[_0x1f568('0x11fc')]):_0x33420a[_0x1f568('0x17df')]()});});}function _0x62e529(){const _0x5b1aec=_0x4bab78;if(!_0xb8a8b9['tab']['spy']&&!_0xb8a8b9[_0x5b1aec('0xd61')][_0x5b1aec('0x215d')])for(let _0x1b22ae=0x0;_0x1b22ae<_0xb8a8b9[_0x5b1aec('0xf9b')][_0x5b1aec('0x25df')][_0x5b1aec('0x2566')];_0x1b22ae+=0x1){_0xb8a8b9[_0x5b1aec('0xf9b')][_0x5b1aec('0x25df')][_0x1b22ae][_0x5b1aec('0x7c3')]==='in'&&!_0xb8a8b9[_0x5b1aec('0xf9b')][_0x5b1aec('0x25df')][_0x1b22ae][_0x5b1aec('0x18e8')]&&(_0x667964[_0xb8a8b9[_0x5b1aec('0x24f6')]['channel']+'Message'][_0x5b1aec('0xdee')]({'id':_0xb8a8b9['messages'][_0x5b1aec('0x25df')][_0x1b22ae]['id'],'UserId':_0xb8a8b9[_0x5b1aec('0x1e6a')]['id']}),_0xb8a8b9[_0x5b1aec('0x5ce')][_0x5b1aec('0x13e3')](_0xb8a8b9[_0x5b1aec('0xf9b')][_0x5b1aec('0x25df')][_0x1b22ae]['id']));}}function _0x5a3f0f(_0x508b09){const _0x7a4251=_0x4bab78;if(!_0x508b09[_0x7a4251('0x1db2')])return'('+_0x71e95d['instant']('DASHBOARDS.NO_DISPOSITION_SET')+')';const _0x20b9c3=_0x283545()[_0x7a4251('0x24f5')]([_0x508b09[_0x7a4251('0x1db2')],_0x508b09[_0x7a4251('0x6e1')],_0x508b09[_0x7a4251('0x22aa')]]);return'('+_0x20b9c3[_0x7a4251('0x185f')](_0x7a4251('0x1b0b'))+')';}function _0x15c0eb(_0x31c8e5){const _0x1ca140=_0x4bab78;_0x31c8e5&&_0x31c8e5[_0x1ca140('0x338')]&&_0x31c8e5[_0x1ca140('0x25df')][_0x1ca140('0x2566')]&&(_0xb8a8b9[_0x1ca140('0x1f4')]=_0x283545()[_0x1ca140('0x1282')](_0xb8a8b9[_0x1ca140('0x1f4')],_0x31c8e5[_0x1ca140('0x25df')]),_0xb8a8b9[_0x1ca140('0x1f4')][_0x1ca140('0x1534')](function(_0x37ed59){const _0x7ee908=_0x1ca140;_0x37ed59[_0x7ee908('0x4a3')]=_0x5a3f0f(_0x37ed59);}));}function _0x5deef4(_0x885c51){const _0x9a3542=_0x4bab78;if(_0x885c51&&_0x885c51['id']){for(let _0x577723=0x0;_0x577723<_0xb8a8b9[_0x9a3542('0x1879')][_0x9a3542('0x2566')];_0x577723++){_0x667964[_0xb8a8b9[_0x9a3542('0x1879')][_0x577723]+_0x9a3542('0x22a7')][_0x9a3542('0x1335')]({'ContactId':_0x885c51['id'],'journey':!![],'includeAll':!![]})[_0x9a3542('0x1714')][_0x9a3542('0x2788')](_0x15c0eb);}_0x667964[_0x9a3542('0x99')][_0x9a3542('0x1335')]({'ContactId':_0x885c51['id'],'includeAll':!![]})['$promise'][_0x9a3542('0x2788')](_0x15c0eb);}}function _0x239a46(_0x6343c4){const _0x3d6ec4=_0x4bab78;return _0x6343c4?String(_0x6343c4)[_0x3d6ec4('0x10a4')](/<[^>]+>/gm,''):'';}function _0x5029d5(_0x4137d2){const _0x4a5c02=_0x4bab78;switch(_0xb8a8b9['tab'][_0x4a5c02('0x2645')]){case _0x4a5c02('0x2795'):_0xb8a8b9[_0x4a5c02('0x64e')][_0x4a5c02('0x1c98')][_0x4a5c02('0x1916')]=_0x4137d2?_0x283545()[_0x4a5c02('0x20e8')](_0xb8a8b9[_0x4a5c02('0xd61')][_0x4a5c02('0x1f77')],['id',_0x4137d2]):_0xb8a8b9[_0x4a5c02('0xd61')][_0x4a5c02('0x1f77')][_0xb8a8b9[_0x4a5c02('0xd61')]['Messages'][_0x4a5c02('0x2566')]-0x1],_0x1bc2be(_0xb8a8b9[_0x4a5c02('0x64e')][_0x4a5c02('0x1d7')],_0xb8a8b9[_0x4a5c02('0x64e')][_0x4a5c02('0x1c98')]);break;case _0x4a5c02('0x10cf'):break;case _0x4a5c02('0x18aa'):break;case'sms':break;case'whatsapp':break;}}_0x20d1db[_0x4bab78('0x651')](_0x4bab78('0x26ac'),function(){const _0x2e0c57=_0x4bab78;_0x5b6d48['removeAllListeners'](_0xb8a8b9['tab'][_0x2e0c57('0x2645')]+_0x2e0c57('0xcb0')),_0x5b6d48[_0x2e0c57('0x277f')](_0xb8a8b9[_0x2e0c57('0x24f6')][_0x2e0c57('0x2645')]+_0x2e0c57('0x109a')),_0x5b6d48[_0x2e0c57('0x277f')](_0xb8a8b9[_0x2e0c57('0x24f6')][_0x2e0c57('0x2645')]+_0x2e0c57('0x2445')),_0x5b6d48[_0x2e0c57('0x277f')](_0xb8a8b9[_0x2e0c57('0x24f6')][_0x2e0c57('0x2645')]+'Interaction:update'),_0x5b6d48[_0x2e0c57('0x277f')](_0x2e0c57('0x2643')+_0xb8a8b9[_0x2e0c57('0x24f6')][_0x2e0c57('0x2645')]+_0x2e0c57('0x152e')),_0x5b6d48[_0x2e0c57('0x277f')]('user_has_'+_0xb8a8b9[_0x2e0c57('0x24f6')][_0x2e0c57('0x2645')]+'_interactions:remove');});function _0x51d265(_0x3a5834){const _0x2723d6=_0x4bab78,_0x1b992e={'id':_0x3a5834['id']};return _0x667964[_0x2723d6('0x11d0')][_0x2723d6('0x857')](_0x1b992e)[_0x2723d6('0x1714')][_0x2723d6('0x2788')](function(){const _0x22bc85=_0x2723d6;_0x55a44a[_0x22bc85('0x173b')]({'title':_0x22bc85('0x20ed'),'msg':_0x22bc85('0x1c47')});})[_0x2723d6('0x1cb5')](function(){const _0x7c1a36=_0x2723d6;_0x55a44a[_0x7c1a36('0x5e8')]({'title':'Start\x20Video\x20Call','msg':_0x7c1a36('0x11e7')});});}}function _0x4b3c5b(_0x4e7d3f){const _0x5d902f=_0x34e79e;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x5d902f('0x15d6'),'link':function(_0x134dd2){const _0x8fe2db=_0x5d902f;function _0x2bd599(){const _0x579df8=a0_0x14e7,_0x4eb917=_0x579df8('0xd5')+Math[_0x579df8('0xe98')](Math['random']()*0x270f+0x1);return _0x579df8('0x1bf3')+_0x4eb917+_0x579df8('0xf95')+_0x4eb917+_0x579df8('0x1bfa');}_0x134dd2[_0x8fe2db('0x1ade')]=function(){const _0x31befb=_0x8fe2db,_0x4d7309=_0x283545()[_0x31befb('0x10a4')](_0x134dd2['ngBindHtmlUnsafe'],'_0x3094b3)return _0x14b06a[_0x2de5cf('0x5e8')]({'title':_0x2de5cf('0x6e8'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x10a46a+'MB'}),![];return!![];}function _0x218783(_0x2f6ca1,_0x1c6746){const _0x3570df=_0x1116e0;try{_0x1c6746=JSON[_0x3570df('0xe0b')](_0x1c6746),_0x1c6746['size']=_0x2f6ca1[_0x3570df('0x634')],_0x251a4d[_0x3570df('0x15e2')][_0x3570df('0x8ba')]['push'](_0x1c6746);}catch(_0x265930){console['error'](_0x265930);}}function _0x2b0fd8(_0x13f290){const _0x40c2bd=_0x1116e0;let _0x1106f0='';return _0x13f290[_0x40c2bd('0x26da')]&&_0x13f290[_0x40c2bd('0x26da')]!==_0x13f290[_0x40c2bd('0x10cf')]&&(_0x1106f0+=_0x13f290['firstName']+'\x20'),_0x13f290[_0x40c2bd('0x26b9')]&&_0x13f290['lastName']!==_0x13f290['fax']&&(_0x1106f0+=_0x13f290['lastName']+'\x20'),_0x1106f0+='<'+_0x13f290[_0x40c2bd('0x10cf')]+'>';}function _0x49f099(_0x519e60){const _0x4ad777=_0x1116e0,_0x246982=_0x519e60;if(_0x283545()[_0x4ad777('0x19bc')](_0x519e60))return _0x519e60[_0x4ad777('0x10cf')];if(_0x5db4a6(_0x246982))return _0x246982;return _0x14b06a['error'](_0x4ad777('0x23df')+_0x246982+_0x4ad777('0x1692')),null;}function _0x5db4a6(_0x104962){const _0x2ff2f4=_0x1116e0,_0x559c44=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x559c44[_0x2ff2f4('0x1565')](_0x104962);}function _0x3b4e98(_0x2924f9){const _0x3b5221=_0x1116e0;return _0x25f554&&_0x25f554[_0x3b5221('0x354')]?_0xc010e8[_0x3b5221('0xa83')][_0x3b5221('0x1335')]({'ListId':_0x25f554[_0x3b5221('0x354')],'nolimit':!![],'filter':_0x2924f9,'fields':_0x3b5221('0x1c6e')})['$promise'][_0x3b5221('0x2788')](function(_0x127990){const _0x10cea2=_0x3b5221;return _0x127990[_0x10cea2('0x25df')];}):[];}function _0x2e6a0f(){const _0x45c5c8=_0x1116e0;_0x5c9dd8[_0x45c5c8('0x64e')]=_0x251a4d['message'],_0x47897e[_0x45c5c8('0x1801')]();}}const _0x488aa6=_0x3861aa;_0xb9c9f1[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1bf5'),_0x34e79e('0x123b'),_0x34e79e('0x1a86'),_0x34e79e('0x1a5c'),'account','message','type','api','toasty','$q',_0x34e79e('0x1b04'),_0x34e79e('0xd61'),_0x34e79e('0x1902')];function _0xb9c9f1(_0x213b28,_0x24a728,_0x439a03,_0x132e2e,_0x3336e2,_0x185dae,_0x1fc1a9,_0x3eafee,_0x5f4dcb,_0x34be6e,_0x4cad75,_0x4071dd,_0x107794,_0x13325b){const _0x32d732=_0x34e79e,_0x58d77b=this,_0x5851e6=0x19,_0x1ef506=_0x5851e6*0x400*0x400;_0x58d77b[_0x32d732('0x9cb')]=_0x4071dd[_0x32d732('0x24cc')](),_0x58d77b['secret']=_0x3eafee===_0x32d732('0x1d54')?!![]:![],_0x58d77b[_0x32d732('0xd0f')]=!![],_0x58d77b['hiddenBCC']=!![],_0x58d77b[_0x32d732('0xcfe')]=!![],_0x58d77b[_0x32d732('0x25be')]=[],_0x58d77b[_0x32d732('0x44a')]=[_0x132e2e[_0x32d732('0xb5')][_0x32d732('0xb51')],_0x132e2e[_0x32d732('0xb5')][_0x32d732('0x2555')],_0x132e2e[_0x32d732('0xb5')][_0x32d732('0x1c00')]],_0x58d77b[_0x32d732('0x2202')]=_0x3091b0,_0x58d77b['selectedItemChange']=_0x10f3b7,_0x58d77b[_0x32d732('0x247b')]=_0x574b31,_0x283545()[_0x32d732('0x7a0')][_0x32d732('0x509')]=/{{([\s\S]+?)}}/g,_0x58d77b[_0x32d732('0x2383')]=_0x283545()[_0x32d732('0x2273')](_0x32d732('0x2169')),_0x58d77b['replyTemplate']=_0x283545()[_0x32d732('0x2273')]('On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:'),_0x58d77b[_0x32d732('0x1985')]=_0x283545()[_0x32d732('0x2273')](_0x32d732('0x1490')),_0x58d77b[_0x32d732('0x15e2')]={'from':_0x58d77b[_0x32d732('0x2383')]({'name':_0x185dae[_0x32d732('0x1a8d')],'email':_0x185dae['email']||_0x185dae[_0x32d732('0x2ba')][_0x32d732('0x1e6a')]}),'to':[],'cc':[],'bcc':[],'body':_0x4f00ae(),'type':_0x3eafee,'attachments':[],'showLastMessage':!![]},_0x58d77b[_0x32d732('0x64e')]=null,_0x58d77b[_0x32d732('0x20ba')]={'skin':_0x32d732('0x113d'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x32d732('0x15ea'),'toolbarGroups':[{'name':_0x32d732('0x1d2f'),'groups':['styles']},{'name':_0x32d732('0x15f9'),'groups':[_0x32d732('0x12d')]},{'name':_0x32d732('0x213c'),'groups':[_0x32d732('0x213c')]},{'name':_0x32d732('0x233d'),'groups':[_0x32d732('0x233d')]},{'name':_0x32d732('0x597'),'groups':['list','indent',_0x32d732('0x76f')]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x58d77b[_0x32d732('0x2685')]?0xa0:0x12c,'autoGrow_maxHeight':_0x24a728['innerHeight']-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window['CKEDITOR'][_0x32d732('0x1458')],'font_defaultLabel':_0x185dae[_0x32d732('0x173f')]?_0x185dae[_0x32d732('0x173f')][_0x32d732('0x1497')](',')[0x0]:_0x32d732('0x231e'),'fontSize_defaultLabel':_0x185dae['fontSize']||'12','removePlugins':_0x32d732('0x899')};const _0x56d1c6=[];for(let _0x43e278=0x8;_0x43e278<=0x48;_0x43e278++){_0x56d1c6[_0x32d732('0x13e3')](_0x43e278+'/'+_0x43e278+'pt');}_0x58d77b['ckeditor'][_0x32d732('0x79e')]=_0x56d1c6['join'](';'),_0x58d77b['ngFlowOptions']={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1ef506,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x58d77b['ngFlow']={'flow':{}},_0x58d77b[_0x32d732('0xdc5')]=_0x1c5bce,_0x58d77b['newMail']=_0x5777df,_0x58d77b['forward']=_0x14bc6b,_0x58d77b[_0x32d732('0xf83')]=_0x41f655,_0x58d77b[_0x32d732('0x1fc9')]=_0x4443ea,_0x58d77b[_0x32d732('0x1d54')]=_0x15e98f,_0x58d77b['addNote']=_0x41fb2d,_0x58d77b[_0x32d732('0x1b63')]=_0x1acb0b,_0x58d77b[_0x32d732('0xc41')]=_0x58baab,_0x58d77b[_0x32d732('0x43e')]=_0x4ee7c6,_0x58d77b[_0x32d732('0x1573')]=_0x48c083,_0x58d77b[_0x32d732('0x1390')]=_0x21d3f0,_0x58d77b[_0x32d732('0x266d')]=_0x5d487a,_0x58d77b['transformContact']=_0x39d075,_0x58d77b[_0x32d732('0xfeb')]=_0x1bcb6d,_0x58d77b[_0x32d732('0xca7')]=_0x13fc67,_0x58d77b[_0x32d732('0x2241')]=_0x3f754a;switch(_0x3eafee){case _0x32d732('0xdc5'):_0x58d77b[_0x32d732('0xdc5')](![]);break;case _0x32d732('0x153e'):_0x58d77b['reply'](!![]);break;case'forward':_0x58d77b[_0x32d732('0x226d')]();break;case'draft':_0x58d77b[_0x32d732('0xf83')]();break;case _0x32d732('0x259d'):_0x58d77b['newMail']();break;case _0x32d732('0x1d54'):_0x58d77b[_0x32d732('0x1d54')]();break;}_0x5f4dcb[_0x32d732('0xf75')][_0x32d732('0x1335')]({'nolimit':!![]})['$promise']['then'](function(_0x419aa4){_0x58d77b['subStatuses']=_0x419aa4||{'count':0x0,'rows':[]};})[_0x32d732('0x1cb5')](function(_0x5094bf){const _0x1b875a=_0x32d732;console[_0x1b875a('0x5e8')](_0x5094bf);});!_0x58d77b[_0x32d732('0x2685')]&&_0x5a44d8();function _0x1c5bce(_0x456604){const _0x1c1596=_0x32d732;angular[_0x1c1596('0x2735')](_0x1fc1a9)&&(_0x58d77b['message'][_0x1c1596('0x1d7')]='reply',_0x58d77b['message']['to']=_0x1fc1a9[_0x1c1596('0x7c3')]==='in'?_0x1fc1a9[_0x1c1596('0x444')][_0x1c1596('0x1497')](','):_0x1fc1a9['to']['split'](','),_0x58d77b[_0x1c1596('0x15e2')][_0x1c1596('0x248f')]=_0x283545()[_0x1c1596('0x993')](_0x1fc1a9[_0x1c1596('0x248f')],_0x1c1596('0x1abb'))?_0x1fc1a9[_0x1c1596('0x248f')]:_0x1c1596('0xf15')+_0x1fc1a9[_0x1c1596('0x248f')],_0x58d77b[_0x1c1596('0x15e2')]['inReplyTo']=_0x1fc1a9[_0x1c1596('0x243d')],_0x58d77b[_0x1c1596('0x15e2')][_0x1c1596('0x945')]=_0x4f00ae(),_0x58d77b[_0x1c1596('0x15e2')][_0x1c1596('0x8ba')]=[],_0x456604&&_0x1fc1a9['cc']&&(_0x58d77b['hiddenCC']=![],_0x58d77b[_0x1c1596('0x15e2')]['cc']=_0x1fc1a9['cc']['split'](',')),_0x58d77b[_0x1c1596('0x15e2')]['showLastMessage']=![]);}function _0x5777df(){const _0x2a57f2=_0x32d732;angular['isDefined'](_0x1fc1a9)&&(_0x58d77b[_0x2a57f2('0x15e2')][_0x2a57f2('0x1d7')]=_0x2a57f2('0x259d'),_0x58d77b[_0x2a57f2('0x15e2')]['to']=_0x1fc1a9['to']?_0x1fc1a9['to']['split'](','):[]);}function _0x41f655(){const _0x318425=_0x32d732;_0x58d77b[_0x318425('0x2ee')]=!![],angular[_0x318425('0x2735')](_0x1fc1a9)&&(_0x1fc1a9[_0x318425('0x326')]=![],_0x58d77b['message']=angular[_0x318425('0x2669')](_0x1fc1a9),!_0x283545()[_0x318425('0x213d')](_0x58d77b[_0x318425('0x15e2')]['cc'])&&(_0x58d77b['hiddenCC']=![]),!_0x283545()[_0x318425('0x213d')](_0x58d77b[_0x318425('0x15e2')][_0x318425('0x1402')])&&(_0x58d77b['hiddenBCC']=![]));}function _0x14bc6b(){const _0x15f369=_0x32d732;if(angular[_0x15f369('0x2735')](_0x1fc1a9)){_0x58d77b[_0x15f369('0x15e2')][_0x15f369('0x1d7')]='forward',_0x58d77b[_0x15f369('0x15e2')][_0x15f369('0x248f')]=_0x283545()[_0x15f369('0x993')](_0x1fc1a9[_0x15f369('0x248f')],_0x15f369('0x185d'))?_0x1fc1a9[_0x15f369('0x248f')]:_0x15f369('0x20f4')+_0x1fc1a9[_0x15f369('0x248f')],_0x58d77b[_0x15f369('0x15e2')][_0x15f369('0x945')]=_0x4f00ae();if(_0x1fc1a9[_0x15f369('0x1ab8')]&&_0x1fc1a9[_0x15f369('0x1ab8')]['length'])for(let _0x43089b=0x0;_0x43089b<_0x1fc1a9[_0x15f369('0x1ab8')][_0x15f369('0x2566')];_0x43089b++){_0x58d77b[_0x15f369('0x15e2')]['attachments']['push'](_0x1fc1a9[_0x15f369('0x1ab8')][_0x43089b]);}_0x58d77b['message'][_0x15f369('0xf65')]=![];}}function _0x15e98f(){const _0xd421ed=_0x32d732;_0x58d77b['type']=_0xd421ed('0x1d54'),_0x58d77b[_0xd421ed('0x2685')]=!![],_0x58d77b[_0xd421ed('0x15e2')]['body']=_0xd421ed('0x10af')+_0x185dae[_0xd421ed('0x173f')]+_0xd421ed('0xbd6')+_0x185dae[_0xd421ed('0x9e3')]+'pt\x22>

';}function _0xa111a(_0x572bf3,_0x23bb7e){const _0x831988=_0x32d732,_0x3fd5b3={'from':_0x58d77b[_0x831988('0x15e2')][_0x831988('0x444')],'to':_0x58d77b[_0x831988('0x15e2')]['to'][_0x831988('0x185f')](','),'cc':_0x58d77b['message']['cc'][_0x831988('0x185f')](','),'bcc':_0x58d77b[_0x831988('0x15e2')][_0x831988('0x1402')]['join'](','),'subject':_0x58d77b[_0x831988('0x15e2')]['subject'],'body':_0x58d77b['message'][_0x831988('0xf65')]?_0x58d77b[_0x831988('0x15e2')][_0x831988('0x945')]:_0x58d77b['message'][_0x831988('0x945')]+_0xe1eabb(_0x58d77b['message']['type']),'inReplyTo':_0x58d77b[_0x831988('0x15e2')][_0x831988('0x198b')],'attach':_0x58d77b['message']['attachments'][_0x831988('0x2566')],'attachments':_0x58d77b[_0x831988('0x15e2')][_0x831988('0x8ba')],'Interaction':{'lastMsgDirection':_0x831988('0x181d'),'lastMsgBody':_0x58d77b['message'][_0x831988('0x945')],'substatus':_0x23bb7e},'isDraft':_0x58d77b[_0x831988('0x2ee')]};_0x3fd5b3[_0x831988('0x1cd8')]=_0x831988('0x1dba')+_0x283545()[_0x831988('0x10a4')](_0x3fd5b3[_0x831988('0x945')],'_0x1ef506)return _0x34be6e[_0x447ed0('0x5e8')]({'title':_0x447ed0('0x6e8'),'msg':_0x447ed0('0x232c')+_0x5851e6+'MB'}),![];return!![];}function _0x1acb0b(){const _0x6a5216=_0x32d732;_0x58d77b[_0x6a5216('0x2793')][_0x6a5216('0x8a4')][_0x6a5216('0xcc6')][_0x6a5216('0x186d')]={'X-Requested-With':_0x6a5216('0xa34'),'Authorization':_0x6a5216('0xf2f')+_0x213b28[_0x6a5216('0x1335')]('motion.token')},_0x58d77b['ngFlow'][_0x6a5216('0x8a4')][_0x6a5216('0x1b63')]();}function _0x58baab(_0x333c43,_0x26d73f){const _0x5efddc=_0x32d732;try{_0x26d73f=JSON[_0x5efddc('0xe0b')](_0x26d73f),_0x26d73f['size']=_0x333c43[_0x5efddc('0x634')],_0x58d77b['message']['attachments'][_0x5efddc('0x13e3')](_0x26d73f);}catch(_0xa8a81b){console[_0x5efddc('0x5e8')](_0xa8a81b);}}function _0x4ee7c6(_0x1b6aa8){const _0x56d108=_0x32d732;_0x58d77b[_0x56d108('0x15e2')][_0x56d108('0x8ba')]=_0x283545()['reject'](_0x58d77b[_0x56d108('0x15e2')]['attachments'],{'id':_0x1b6aa8['id']}),!_0x1b6aa8['MailMessageId']&&_0x5f4dcb[_0x56d108('0x2358')]['delete']({'id':_0x1b6aa8['id']})[_0x56d108('0x1714')][_0x56d108('0x1cb5')](function(_0x4abac9){const _0x55b409=_0x56d108;_0x34be6e[_0x55b409('0x5e8')]({'title':_0x4abac9[_0x55b409('0x1b51')]?_0x55b409('0x15d1')+_0x4abac9[_0x55b409('0x1b51')]+_0x55b409('0x1b0b')+_0x4abac9[_0x55b409('0x22ce')]:_0x55b409('0x1c32'),'msg':_0x4abac9['data']?JSON[_0x55b409('0x1be0')](_0x4abac9['data']['message']):_0x4abac9[_0x55b409('0x17df')]()});});}function _0x21d3f0(_0x48fa2d){const _0xbd7cb4=_0x32d732;let _0x2feced='';return _0x48fa2d[_0xbd7cb4('0x26da')]&&_0x48fa2d[_0xbd7cb4('0x26da')]!==_0x48fa2d[_0xbd7cb4('0x2436')]&&(_0x2feced+=_0x48fa2d[_0xbd7cb4('0x26da')]+'\x20'),_0x48fa2d[_0xbd7cb4('0x26b9')]&&_0x48fa2d['lastName']!==_0x48fa2d[_0xbd7cb4('0x2436')]&&(_0x2feced+=_0x48fa2d[_0xbd7cb4('0x26b9')]+'\x20'),_0x2feced+='<'+_0x48fa2d[_0xbd7cb4('0x2436')]+'>';}function _0x39d075(_0x399b9f,_0x2fe4d9){const _0x1e0e45=_0x32d732;if(_0x283545()['isObject'](_0x399b9f))return _0x58d77b[_0x1e0e45('0xc17')]=_0x399b9f,_0x399b9f[_0x1e0e45('0x2436')];if(_0x283545()[_0x1e0e45('0x1660')](_0x399b9f)){if(_0x5c6dc9(_0x399b9f))return _0x58d77b[_0x1e0e45('0xc17')]={'email':_0x399b9f},_0x399b9f;else{const _0x58d574=_0x399b9f['split'](',');for(let _0xcec790=0x0;_0xcec790<_0x58d574['length'];_0xcec790+=0x1){_0x5c6dc9(_0x58d574[_0xcec790])?_0x283545()[_0x1e0e45('0x1ed4')](_0x2fe4d9)&&_0x283545()['indexOf'](_0x2fe4d9,_0x58d574[_0xcec790])<0x0&&_0x2fe4d9[_0x1e0e45('0x13e3')](_0x58d574[_0xcec790]):_0x34be6e[_0x1e0e45('0x5e8')](_0x1e0e45('0x14e6')+_0x58d574[_0xcec790]+_0x1e0e45('0x1692'));}return _0x58d77b[_0x1e0e45('0xc17')]={'email':_0x399b9f[_0x1e0e45('0x1497')](',')[0x0]},null;}}return _0x34be6e['error'](_0x1e0e45('0xfe4')),null;}function _0x5d487a(_0x2607e3){const _0x21deb5=_0x32d732;return _0x185dae&&_0x185dae[_0x21deb5('0x354')]?_0x5f4dcb[_0x21deb5('0xa83')][_0x21deb5('0x1335')]({'ListId':_0x185dae[_0x21deb5('0x354')],'nolimit':!![],'filter':_0x2607e3,'fields':_0x21deb5('0xc50')})[_0x21deb5('0x1714')][_0x21deb5('0x2788')](function(_0x2106ca){const _0x502fbb=_0x21deb5;return _0x2106ca[_0x502fbb('0x25df')];}):[];}function _0x1bcb6d(){const _0x161fa0=_0x32d732;_0x58d77b[_0x161fa0('0x15e2')][_0x161fa0('0x326')]=!![],_0x58d77b[_0x161fa0('0x64e')]=_0x13325b[_0x161fa0('0x122c')](_0x107794['id']);const _0x33a590={'account':_0x185dae,'message':_0x58d77b[_0x161fa0('0x15e2')],'contact':_0x58d77b[_0x161fa0('0xc17')],'interaction':_0x107794};if(_0x58d77b[_0x161fa0('0x64e')]&&!_0x58d77b[_0x161fa0('0x2ee')]){const _0xd75eaa=_0x439a03[_0x161fa0('0x112e')]({'skipHide':!![]})[_0x161fa0('0x14e4')](_0x3336e2[_0x161fa0('0x1b11')](_0x161fa0('0x2699')))['content'](_0x3336e2[_0x161fa0('0x1b11')]('DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE'))[_0x161fa0('0x10bc')](_0x161fa0('0x621'))['ok'](_0x3336e2[_0x161fa0('0x1b11')](_0x161fa0('0x19e1')))[_0x161fa0('0x1801')](_0x3336e2['instant']('DASHBOARDS.CANCEL'));_0x439a03['show'](_0xd75eaa)[_0x161fa0('0x2788')](function(){const _0x15b374=_0x161fa0;_0x439a03[_0x15b374('0x19d')](_0x33a590);});}else _0x439a03[_0x161fa0('0x19d')](_0x33a590);}function _0x13fc67(){const _0x7b9880=_0x32d732;_0x439a03[_0x7b9880('0x1801')]();}function _0x5c6dc9(_0x162dc5){const _0x5c8917=_0x32d732,_0x4ae461=/^(([^<>()[\]\\.,;:\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 _0x4ae461[_0x5c8917('0x1565')](_0x162dc5);}function _0x3897ac(_0x1fc000){const _0x395c50=_0x32d732,_0x445bf9=/]*>([^]*)<\/body/m,_0x309b2c=_0x1fc000[_0x395c50('0x1e12')](_0x445bf9);if(_0x309b2c)return _0x309b2c[0x1];return _0x1fc000;}function _0x3c46e4(){const _0x3a7069=_0x32d732;if(_0x283545()['isNil'](_0x185dae[_0x3a7069('0x2273')]))return'';try{const _0x5e9f6=_0x283545()[_0x3a7069('0x2273')](_0x185dae[_0x3a7069('0x2273')]),_0x4211ad={'user':_0x58d77b['currentUser'],'account':_0x185dae,'interaction':_0x107794,'contact':_0x107794&&_0x107794['Contact']?_0x107794['Contact']:{}};return _0x5e9f6(_0x4211ad);}catch(_0x270db8){return console[_0x3a7069('0x5e8')](_0x270db8),'';}}function _0x4f00ae(){const _0x4cbc7e=_0x32d732;return'';}function _0x5b5e42(_0x28761c){const _0xf3e11=_0x16e702,_0x602863=_0x28761c;if(_0x283545()['isObject'](_0x602863))return _0x28761c[_0xe46a0e[_0xf3e11('0x1807')]];return _0x602863;}function _0x2ff0be(_0x2d35d2){const _0x1f3b1a=_0x16e702;if(_0xe46a0e&&_0xe46a0e[_0x1f3b1a('0x354')]){let _0x519c2f='firstName,lastName,phone,mobile';return _0xe46a0e[_0x1f3b1a('0x1807')]&&(_0x519c2f+=','+_0xe46a0e[_0x1f3b1a('0x1807')]),_0xc635f7[_0x1f3b1a('0xa83')]['get']({'ListId':_0xe46a0e[_0x1f3b1a('0x354')],'nolimit':!![],'filter':_0x2d35d2,'fields':_0x519c2f})[_0x1f3b1a('0x1714')]['then'](function(_0x313359){const _0x5b576f=_0x1f3b1a;return _0x313359[_0x5b576f('0x25df')];});}return[];}function _0x5784c7(){const _0x35f9cc=_0x16e702;_0x51fa88[_0x35f9cc('0x1801')]();}function _0x4a2c97(){const _0x12ca83=_0x16e702;_0x517a13[_0x12ca83('0x2685')]=!![];}function _0x130fe5(){const _0x3e3201=_0x16e702;_0x517a13[_0x3e3201('0x15e2')][_0x3e3201('0x945')]&&_0x51fa88[_0x3e3201('0x19d')]({'secret':!![],'body':_0x517a13[_0x3e3201('0x15e2')][_0x3e3201('0x945')]});}}const _0x483210=_0x11caed;_0x171f87[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x446'),'$window',_0x34e79e('0x123b'),'$mdConstant',_0x34e79e('0x82f'),'message',_0x34e79e('0x1d7'),'api',_0x34e79e('0xd57'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x1b04')];function _0x171f87(_0x247fc5,_0x5e0da5,_0x8b7d9c,_0x2ce7b1,_0x3d7b3e,_0x24b824,_0x170e70,_0x165dda,_0xe158f9,_0x3ca385,_0x40b25d,_0x295227,_0x39490d){const _0x3817d4=_0x34e79e,_0x554658=this;_0x554658[_0x3817d4('0x9cb')]=_0x39490d[_0x3817d4('0x24cc')](),_0x554658['errors']=[],_0x554658[_0x3817d4('0x44a')]=[_0x3d7b3e[_0x3817d4('0xb5')]['ENTER'],_0x3d7b3e['KEY_CODE'][_0x3817d4('0x2555')],_0x3d7b3e[_0x3817d4('0xb5')][_0x3817d4('0x1c00')]],_0x554658['searchTextChange']=_0x26af23,_0x554658['selectedItemChange']=_0x348177,_0x554658['note']=_0x5c1a93,_0x554658[_0x3817d4('0x1614')]=_0xfd2501,_0x554658[_0x3817d4('0x1e7b')]={},_0x554658[_0x3817d4('0x15e2')]={'from':_0x24b824[_0x3817d4('0x1224')],'to':_0x283545()[_0x3817d4('0x1015')](_0x170e70['to'])||_0x283545()[_0x3817d4('0x213d')](_0x170e70['to'])?[]:_0x170e70['to'],'body':''},_0x554658[_0x3817d4('0x1fc9')]=_0x1baa0b,_0x554658[_0x3817d4('0x1390')]=_0x46864a,_0x554658[_0x3817d4('0xca7')]=_0x47d6d3,_0x554658[_0x3817d4('0x266d')]=_0x3943f0,_0x554658[_0x3817d4('0x1d38')]=_0x4a08a1;switch(_0x165dda){case _0x3817d4('0x1d54'):_0x554658[_0x3817d4('0x1d54')]();break;}function _0x43a6ce(_0x3d4b8a){const _0x25088b=_0x3817d4;_0x2ce7b1[_0x25088b('0x19d')]({'to':_0x554658[_0x25088b('0x15e2')]['to'][_0x25088b('0x185f')](','),'body':_0x3d4b8a});}function _0x1baa0b(){const _0x14b396=_0x3817d4;_0x554658[_0x14b396('0x15e2')]['to']&&_0x554658[_0x14b396('0x15e2')][_0x14b396('0x945')]&&(_0x554658[_0x14b396('0x15e2')]['to'][_0x14b396('0x2566')]?_0x43a6ce(_0x554658[_0x14b396('0x15e2')][_0x14b396('0x945')]):_0x3ca385[_0x14b396('0x5e8')](_0x14b396('0x23e4')));}function _0x348177(_0x2ea99a){const _0x132b60=_0x3817d4;if(_0x2ea99a){try{_0x283545()[_0x132b60('0x7a0')][_0x132b60('0x509')]=/{{([\s\S]+?)}}/g;const _0x253460=_0x283545()['template'](_0x2ea99a['value']),_0x5b9e0a={'user':_0x554658[_0x132b60('0x9cb')],'account':_0x24b824};_0x554658[_0x132b60('0x15e2')][_0x132b60('0x945')]+='\x20'+_0x253460(_0x5b9e0a),_0x554658['ctrlMethods'][_0x132b60('0x9d6')](_0x554658[_0x132b60('0x15e2')][_0x132b60('0x945')]);}catch(_0x2e6e98){_0x554658[_0x132b60('0x15e2')][_0x132b60('0x945')]+='\x20'+_0x2ea99a['value'],_0x554658[_0x132b60('0x1e7b')][_0x132b60('0x9d6')](_0x554658[_0x132b60('0x15e2')]['body']);}_0x554658[_0x132b60('0x1c92')]=null;}}function _0x26af23(_0x2c8adc){const _0x58d82e=_0x3817d4,_0x4cf964=_0x40b25d['defer']();let _0x3db9bf=[];return _0xe158f9[_0x58d82e('0x1870')][_0x58d82e('0x1335')]({'filter':_0x2c8adc,'SmsAccountId':_0x24b824['id']})[_0x58d82e('0x1714')][_0x58d82e('0x2788')](function(_0x36eca7){const _0x391972=_0x58d82e;return _0x3db9bf=_0x283545()[_0x391972('0x1282')](_0x3db9bf,_0x36eca7[_0x391972('0x25df')]),_0xe158f9['cannedAnswer']['get']({'filter':_0x2c8adc})[_0x391972('0x1714')];})[_0x58d82e('0x2788')](function(_0x3a145b){const _0x3046ae=_0x58d82e;_0x3db9bf=_0x283545()[_0x3046ae('0x1282')](_0x3db9bf,_0x283545()[_0x3046ae('0x916')](_0x3a145b[_0x3046ae('0x25df')],function(_0x2ec723){const _0x20ba69=_0x3046ae;return!_0x2ec723[_0x20ba69('0x26b2')]&&!_0x2ec723[_0x20ba69('0xfc2')]&&!_0x2ec723['SmsAccountId']&&!_0x2ec723['OpenchannelAccountId']&&!_0x2ec723[_0x20ba69('0x965')];})),_0x4cf964['resolve'](_0x3db9bf);})['catch'](function(_0x5d82fe){const _0x5dce7c=_0x58d82e;_0x4cf964[_0x5dce7c('0x9')](_0x5d82fe);}),_0x4cf964['promise'];}function _0x46864a(_0x2900e0){const _0x42229c=_0x3817d4;let _0x2ed415='';return _0x2900e0[_0x42229c('0x26da')]&&_0x2900e0['firstName']!==_0x2900e0['mobile']&&(_0x2ed415+=_0x2900e0[_0x42229c('0x26da')]+'\x20'),_0x2900e0[_0x42229c('0x26b9')]&&_0x2900e0[_0x42229c('0x26b9')]!==_0x2900e0[_0x42229c('0x246')]&&(_0x2ed415+=_0x2900e0[_0x42229c('0x26b9')]+'\x20'),_0x2ed415+='<'+_0x2900e0[_0x42229c('0x246')]+'>';}function _0x4a08a1(_0xadc0a1){const _0x3c1c1c=_0x3817d4,_0x518b55=_0xadc0a1;if(_0x283545()[_0x3c1c1c('0x19bc')](_0x518b55))return _0xadc0a1['mobile'];if(_0x2b64f5(_0x518b55))return _0x518b55;return _0x3ca385[_0x3c1c1c('0x5e8')](_0x3c1c1c('0x2164')+_0x518b55+_0x3c1c1c('0x1692')),null;}function _0x3943f0(_0x561044){const _0x31244f=_0x3817d4;if(_0x24b824&&_0x24b824['ListId'])return _0xe158f9[_0x31244f('0xa83')][_0x31244f('0x1335')]({'ListId':_0x24b824[_0x31244f('0x354')],'nolimit':!![],'filter':_0x561044,'fields':_0x31244f('0xa91')})['$promise']['then'](function(_0x1a9aaf){const _0x397105=_0x31244f;return _0x1a9aaf[_0x397105('0x25df')];});return[];}function _0x47d6d3(){const _0x54d932=_0x3817d4;_0x2ce7b1[_0x54d932('0x1801')]();}function _0x2b64f5(_0xe3a01e){const _0x2fcd47=_0x3817d4,_0x111ad3=/^(\+|\d)[0-9]{7,16}$/;return _0x111ad3[_0x2fcd47('0x1565')](_0xe3a01e);}function _0x5c1a93(){const _0x14a7df=_0x3817d4;_0x554658[_0x14a7df('0x2685')]=!![];}function _0xfd2501(){const _0x310563=_0x3817d4;_0x554658['message'][_0x310563('0x945')]&&_0x2ce7b1[_0x310563('0x19d')]({'secret':!![],'body':_0x554658[_0x310563('0x15e2')]['body']});}}const _0x6864d1=_0x171f87;_0x20ed65[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x446'),'$window','$mdDialog',_0x34e79e('0x1a86'),_0x34e79e('0x82f'),'message',_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'$q',_0x34e79e('0x1a5c'),'Auth'];function _0x20ed65(_0x28078f,_0x213caa,_0x571481,_0x10b1af,_0x14d4e1,_0x47c64c,_0x1d6e47,_0x3c4580,_0x189ade,_0x480040,_0xfd82be,_0x2039d5,_0x1c7a29){const _0x39800a=_0x34e79e,_0x8d874f=this;_0x8d874f[_0x39800a('0x9cb')]=_0x1c7a29[_0x39800a('0x24cc')](),_0x8d874f[_0x39800a('0x25be')]=[],_0x8d874f[_0x39800a('0x44a')]=[_0x14d4e1[_0x39800a('0xb5')]['ENTER'],_0x14d4e1[_0x39800a('0xb5')][_0x39800a('0x2555')],_0x14d4e1[_0x39800a('0xb5')]['TAB']],_0x8d874f[_0x39800a('0x2202')]=_0x300fa8,_0x8d874f[_0x39800a('0x15dd')]=_0x1be125,_0x8d874f[_0x39800a('0x1d54')]=_0x243ee6,_0x8d874f[_0x39800a('0x1614')]=_0x7d8827,_0x8d874f[_0x39800a('0x1e7b')]={},_0x8d874f[_0x39800a('0x15e2')]={'from':_0x47c64c['phone'],'to':_0x283545()['isNil'](_0x1d6e47['to'])||_0x283545()['isEmpty'](_0x1d6e47['to'])?[]:_0x1d6e47['to'],'body':''},_0x8d874f[_0x39800a('0x1fc9')]=_0xaa1fa5,_0x8d874f[_0x39800a('0x1390')]=_0x21feb3,_0x8d874f[_0x39800a('0xca7')]=_0x32abc9,_0x8d874f['contactSearch']=_0x591d90,_0x8d874f['transformContact']=_0x288549;switch(_0x3c4580){case _0x39800a('0x1d54'):_0x8d874f[_0x39800a('0x1d54')]();break;}function _0x4c557b(_0x5f5645){const _0x1ae36b=_0x39800a;_0x10b1af[_0x1ae36b('0x19d')]({'to':_0x8d874f['message']['to'][_0x1ae36b('0x185f')](','),'body':_0x5f5645});}function _0xaa1fa5(){const _0x21c110=_0x39800a;_0x8d874f[_0x21c110('0x15e2')]['to']&&_0x8d874f['message'][_0x21c110('0x945')]&&(_0x8d874f['message']['to'][_0x21c110('0x2566')]?_0x4c557b(_0x8d874f[_0x21c110('0x15e2')][_0x21c110('0x945')]):_0x480040[_0x21c110('0x5e8')]('To\x20is\x20mandatory'));}function _0x1be125(_0xfe1466){const _0x54f845=_0x39800a;if(_0xfe1466){try{_0x283545()['templateSettings'][_0x54f845('0x509')]=/{{([\s\S]+?)}}/g;const _0x24516f=_0x283545()[_0x54f845('0x2273')](_0xfe1466[_0x54f845('0x49')]),_0xeff329={'user':_0x8d874f['currentUser'],'account':_0x47c64c};_0x8d874f['message']['body']+='\x20'+_0x24516f(_0xeff329),_0x8d874f[_0x54f845('0x1e7b')][_0x54f845('0x9d6')](_0x8d874f[_0x54f845('0x15e2')][_0x54f845('0x945')]);}catch(_0x3e6b1b){_0x8d874f[_0x54f845('0x15e2')][_0x54f845('0x945')]+='\x20'+_0xfe1466[_0x54f845('0x49')],_0x8d874f[_0x54f845('0x1e7b')][_0x54f845('0x9d6')](_0x8d874f[_0x54f845('0x15e2')][_0x54f845('0x945')]);}_0x8d874f[_0x54f845('0x1c92')]=null;}}function _0x300fa8(_0x52d485){const _0x16a79f=_0x39800a,_0x4c5ed8=_0xfd82be[_0x16a79f('0x2311')]();let _0x6455e5=[];return _0x189ade[_0x16a79f('0x1870')][_0x16a79f('0x1335')]({'filter':_0x52d485,'WhatsappAccountId':_0x47c64c['id']})['$promise'][_0x16a79f('0x2788')](function(_0xbe0968){const _0x55176b=_0x16a79f;return _0x6455e5=_0x283545()[_0x55176b('0x1282')](_0x6455e5,_0xbe0968[_0x55176b('0x25df')]),_0x189ade[_0x55176b('0x1870')][_0x55176b('0x1335')]({'filter':_0x52d485})[_0x55176b('0x1714')];})[_0x16a79f('0x2788')](function(_0x230118){const _0x31bc80=_0x16a79f;_0x6455e5=_0x283545()[_0x31bc80('0x1282')](_0x6455e5,_0x283545()[_0x31bc80('0x916')](_0x230118[_0x31bc80('0x25df')],function(_0x43ec13){const _0x5e0e6d=_0x31bc80;return!_0x43ec13[_0x5e0e6d('0x26b2')]&&!_0x43ec13['FaxAccountId']&&!_0x43ec13[_0x5e0e6d('0x25b8')]&&!_0x43ec13[_0x5e0e6d('0x22fa')]&&!_0x43ec13['ChatWebsiteId'];})),_0x4c5ed8[_0x31bc80('0x2322')](_0x6455e5);})[_0x16a79f('0x1cb5')](function(_0xb0902a){_0x4c5ed8['reject'](_0xb0902a);}),_0x4c5ed8['promise'];}function _0x21feb3(_0xfa5bee){const _0x275042=_0x39800a;let _0x429283='';return _0xfa5bee['firstName']&&_0xfa5bee[_0x275042('0x26da')]!==_0xfa5bee[_0x275042('0x246')]&&(_0x429283+=_0xfa5bee['firstName']+'\x20'),_0xfa5bee[_0x275042('0x26b9')]&&_0xfa5bee[_0x275042('0x26b9')]!==_0xfa5bee[_0x275042('0x246')]&&(_0x429283+=_0xfa5bee[_0x275042('0x26b9')]+'\x20'),_0x429283+='<'+_0xfa5bee[_0x275042('0x246')]+'>';}function _0x288549(_0x4167ba){const _0x473360=_0x39800a,_0x537e1d=_0x4167ba;if(_0x283545()[_0x473360('0x19bc')](_0x537e1d))return _0x4167ba[_0x473360('0x246')];if(_0x3ad30b(_0x537e1d))return _0x537e1d;return _0x480040[_0x473360('0x5e8')](_0x473360('0x2164')+_0x537e1d+_0x473360('0x1692')),null;}function _0x591d90(_0x36fde2){const _0x2c9237=_0x39800a;if(_0x47c64c&&_0x47c64c[_0x2c9237('0x354')])return _0x189ade[_0x2c9237('0xa83')]['get']({'ListId':_0x47c64c[_0x2c9237('0x354')],'nolimit':!![],'filter':_0x36fde2,'fields':_0x2c9237('0xa91')})[_0x2c9237('0x1714')][_0x2c9237('0x2788')](function(_0x45e6b6){const _0x9095a2=_0x2c9237;return _0x45e6b6[_0x9095a2('0x25df')];});return[];}function _0x32abc9(){const _0x4cf4dc=_0x39800a;_0x10b1af[_0x4cf4dc('0x1801')]();}function _0x3ad30b(_0x40e1c3){const _0x4566ea=_0x39800a,_0x145a8d=/^(\+|\d)[0-9]{7,16}$/;return _0x145a8d[_0x4566ea('0x1565')](_0x40e1c3);}function _0x243ee6(){const _0x51c5ed=_0x39800a;_0x8d874f[_0x51c5ed('0x2685')]=!![];}function _0x7d8827(){const _0x284089=_0x39800a;_0x8d874f[_0x284089('0x15e2')][_0x284089('0x945')]&&_0x10b1af[_0x284089('0x19d')]({'secret':!![],'body':_0x8d874f[_0x284089('0x15e2')][_0x284089('0x945')]});}}const _0x552e4c=_0x20ed65;_0x1e559b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0xd61'),_0x34e79e('0x2645'),_0x34e79e('0x1e6a'),_0x34e79e('0x1902')];function _0x1e559b(_0x2359cc,_0x173af9,_0x2556de,_0x3454d0,_0x39433a,_0x437c36,_0x318190){const _0x29a94f=_0x34e79e,_0x3803f1=this;_0x3803f1[_0x29a94f('0x25be')]=[],_0x3803f1[_0x29a94f('0x818')]=[],_0x3803f1[_0x29a94f('0xd61')]=angular[_0x29a94f('0x2669')](_0x3454d0);!_0x3803f1[_0x29a94f('0xd61')][_0x29a94f('0x1db2')]&&(_0x3803f1[_0x29a94f('0xd61')][_0x29a94f('0x1db2')]=null);_0x3803f1['channel']=_0x39433a,_0x3803f1[_0x29a94f('0x249f')]=_0x3803f1['channel']+_0x29a94f('0x22a7'),_0x3803f1[_0x29a94f('0x1687')]=_0x3803f1['channel']+(_0x3803f1[_0x29a94f('0x2645')]===_0x29a94f('0x231')?'Website':_0x29a94f('0x140b')),_0x3803f1[_0x29a94f('0x2063')]=_0x283545()[_0x29a94f('0x1df5')](_0x3803f1[_0x29a94f('0x2645')])+(_0x3803f1[_0x29a94f('0x2645')]==='chat'?_0x29a94f('0x1577'):'Account')+'Id',_0x3803f1[_0x29a94f('0x50e')]=null,_0x3803f1[_0x29a94f('0x1c86')]=![],_0x3803f1[_0x29a94f('0x10ef')]='',_0x3803f1[_0x29a94f('0x19ea')]=_0x437c36[_0x29a94f('0x2a1')]||_0x437c36[_0x29a94f('0x23a5')]||_0x437c36[_0x29a94f('0x20cd')]||_0x437c36['openchannelPause']||_0x437c36[_0x29a94f('0x1891')],_0x3803f1[_0x29a94f('0xc90')]=_0x5c3128,_0x3803f1[_0x29a94f('0xa61')]=_0x41eb60,_0x3803f1[_0x29a94f('0x1cb2')]=_0x15807d,_0x3803f1[_0x29a94f('0xca7')]=_0x3cd98f;function _0x587edd(){const _0x16c354=_0x29a94f;let _0x1455b1=[];const _0x53ccf2={'fields':_0x16c354('0x17f3'),'sort':_0x16c354('0x1a8d'),'nolimit':!![]};_0x53ccf2[_0x3803f1['accountProperty']]=_0x3454d0[_0x3803f1['accountProperty']],_0x2556de[_0x3803f1['apiAccountRoute']][_0x16c354('0x1335')]({'id':_0x3454d0[_0x3803f1[_0x16c354('0x2063')]]})[_0x16c354('0x1714')][_0x16c354('0x2788')](function(_0x2a8525){const _0x3e4ace=_0x16c354;return _0x3803f1['mandatoryDisposition']=_0x2a8525[_0x3e4ace('0x1c86')],_0x3803f1[_0x3e4ace('0x1c86')]&&(_0x3803f1['mandatoryDispositionPause']=_0x2a8525[_0x3e4ace('0x10ef')][_0x3e4ace('0x1a8d')]),_0x2556de[_0x3e4ace('0x1db2')][_0x3e4ace('0x1335')](_0x53ccf2)[_0x3e4ace('0x1714')];})[_0x16c354('0x2788')](function(_0x37f04c){const _0x37732d=_0x16c354;return _0x37f04c['rows'][_0x37732d('0x2566')]&&(_0x1455b1=_0x283545()[_0x37732d('0x1282')](_0x1455b1,_0x37f04c[_0x37732d('0x25df')])),_0x2556de[_0x37732d('0x1db2')]['get']({'MailAccountId':_0x37732d('0x954'),'FaxAccountId':_0x37732d('0x954'),'SmsAccountId':_0x37732d('0x954'),'WhatsappAccountId':_0x37732d('0x954'),'OpenchannelAccountId':_0x37732d('0x954'),'ChatWebsiteId':_0x37732d('0x954'),'ListId':_0x37732d('0x954')})[_0x37732d('0x1714')];})[_0x16c354('0x2788')](function(_0x58d1c3){const _0x477ece=_0x16c354;_0x58d1c3[_0x477ece('0x25df')][_0x477ece('0x2566')]&&(_0x1455b1=_0x283545()[_0x477ece('0x1282')](_0x1455b1,_0x58d1c3['rows']));})['catch'](function(_0x53622a){const _0xc8a51=_0x16c354;console[_0xc8a51('0x5e8')](_0x53622a);})[_0x16c354('0x1ed8')](function(){const _0x16f4a7=_0x16c354;_0x3803f1['dispositions']=_0x283545()[_0x16f4a7('0xf87')](_0x1455b1,['name'],['asc']),_0x1c2af3();});}function _0x1c2af3(){const _0x38ad20=_0x29a94f;_0x3803f1['mandatoryDisposition']&&!_0x3803f1[_0x38ad20('0x19ea')]&&_0x2556de['user'][_0x38ad20('0x619')]({'id':_0x437c36['id'],'type':_0x3803f1[_0x38ad20('0x10ef')]||'DEFAULT\x20PAUSE'})['$promise'][_0x38ad20('0x2788')](function(){})[_0x38ad20('0x1cb5')](function(_0x7d6417){console['error'](_0x7d6417);});}function _0x5c3128(_0x12dae7){const _0x4fe9ba=_0x29a94f;if(_0x12dae7==='first'){_0x3803f1['anySecondLevelDisposition']=_0x3803f1[_0x4fe9ba('0x50e')]?_0x283545()[_0x4fe9ba('0xc5d')](_0x3803f1[_0x4fe9ba('0x818')],[_0x4fe9ba('0x1ba'),_0x3803f1[_0x4fe9ba('0x50e')]['id']]):![];if(!_0x3803f1[_0x4fe9ba('0x50e')])_0x3803f1[_0x4fe9ba('0xf56')]=undefined;}else _0x12dae7===_0x4fe9ba('0x1929')&&(_0x3803f1[_0x4fe9ba('0xdce')]=_0x283545()[_0x4fe9ba('0xc5d')](_0x3803f1['dispositions'],['ParentId',_0x3803f1[_0x4fe9ba('0xf56')]['id']]));}function _0x41eb60(_0x536cc7){const _0x1f01ea=_0x29a94f;if(_0x536cc7==='second')_0x3803f1[_0x1f01ea('0xf56')]=undefined,_0x3803f1[_0x1f01ea('0x151f')]=undefined;else _0x536cc7===_0x1f01ea('0x1f2c')&&(_0x3803f1[_0x1f01ea('0x151f')]=undefined);}function _0x15807d(){const _0x3044be=_0x29a94f;_0x3803f1['errors']=[],_0x3803f1[_0x3044be('0xd61')][_0x3044be('0x3bb')]=_0x437c36['id'],_0x3803f1['interaction'][_0x3044be('0x215d')]=!![],_0x3803f1[_0x3044be('0xd61')][_0x3044be('0xc5a')]=_0x3044be('0x188b'),_0x3803f1['interaction'][_0x3044be('0x1db2')]=_0x3803f1[_0x3044be('0x50e')]?_0x3803f1['firstLevelDisposition'][_0x3044be('0x1a8d')]:null,_0x3803f1['interaction'][_0x3044be('0x6e1')]=_0x3803f1[_0x3044be('0xf56')]?_0x3803f1[_0x3044be('0xf56')][_0x3044be('0x1a8d')]:undefined,_0x3803f1[_0x3044be('0xd61')][_0x3044be('0x22aa')]=_0x3803f1[_0x3044be('0x151f')]?_0x3803f1['thirdLevelDisposition']['name']:undefined,_0x2556de[_0x3803f1['apiRoute']]?_0x2556de[_0x3803f1[_0x3044be('0x249f')]]['update'](_0x283545()[_0x3044be('0x41b')](_0x3803f1[_0x3044be('0xd61')],[_0x3044be('0x26b2'),_0x3044be('0xfc2'),_0x3044be('0xcba'),_0x3044be('0x25b8'),_0x3044be('0x965'),_0x3044be('0x22fa'),_0x3044be('0x215d'),_0x3044be('0xc5a'),'disposition',_0x3044be('0x6e1'),_0x3044be('0x22aa'),'id','note',_0x3044be('0x3bb')]))['$promise'][_0x3044be('0x2788')](function(_0x1342f9){const _0x220214=_0x3044be;_0x3803f1['interaction']=_0x1342f9,_0x3803f1[_0x220214('0x2645')]===_0x220214('0x2795')&&_0x318190[_0x220214('0x113b')](_0x3803f1['interaction']['id']),_0x173af9[_0x220214('0x173b')]({'title':_0x220214('0x19d1'),'msg':_0x220214('0xfaa')});})[_0x3044be('0x2788')](function(){_0x3cd98f(!![]);})[_0x3044be('0x1cb5')](function(_0xbe7ea8){const _0x4c1bc8=_0x3044be;if(_0xbe7ea8['data']&&_0xbe7ea8[_0x4c1bc8('0x11fc')][_0x4c1bc8('0x25be')]&&_0xbe7ea8['data']['errors']['length']){_0x3803f1[_0x4c1bc8('0x25be')]=_0xbe7ea8[_0x4c1bc8('0x11fc')][_0x4c1bc8('0x25be')]||[{'message':_0xbe7ea8['toString'](),'type':_0x4c1bc8('0x1722')}];for(let _0x38c398=0x0;_0x38c398<_0xbe7ea8[_0x4c1bc8('0x11fc')][_0x4c1bc8('0x25be')][_0x4c1bc8('0x2566')];_0x38c398++){_0x173af9['error']({'title':_0xbe7ea8[_0x4c1bc8('0x11fc')][_0x4c1bc8('0x25be')][_0x38c398][_0x4c1bc8('0x1d7')],'msg':_0xbe7ea8[_0x4c1bc8('0x11fc')]['errors'][_0x38c398]['message']});}}else _0x173af9[_0x4c1bc8('0x5e8')]({'title':_0xbe7ea8[_0x4c1bc8('0x1b51')]?_0x4c1bc8('0x15d1')+_0xbe7ea8[_0x4c1bc8('0x1b51')]+_0x4c1bc8('0x1b0b')+_0xbe7ea8[_0x4c1bc8('0x22ce')]:_0x4c1bc8('0x1722'),'msg':_0xbe7ea8['data']?JSON['stringify'](_0xbe7ea8[_0x4c1bc8('0x11fc')][_0x4c1bc8('0x15e2')]):_0xbe7ea8[_0x4c1bc8('0x17df')]()});}):_0x3cd98f(![]);}function _0x3cd98f(_0x331d39){const _0x1913f6=_0x29a94f;_0x2359cc[_0x1913f6('0x19d')](_0x331d39);}_0x587edd();}const _0x2fcf73=_0x1e559b;_0x243b44[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),'api',_0x34e79e('0xd61'),_0x34e79e('0x2645'),_0x34e79e('0xe45')];function _0x243b44(_0x16472c,_0x5ec197,_0x545841,_0x38f74e,_0x1024fc,_0x4ca31d){const _0x256b3e=_0x34e79e,_0x18c213=this;_0x18c213['errors']=[],_0x18c213[_0x256b3e('0xe45')]=_0x4ca31d,_0x18c213[_0x256b3e('0xd61')]=angular[_0x256b3e('0x2669')](_0x38f74e),_0x18c213[_0x256b3e('0xd61')][_0x256b3e('0xbcf')]=_0x283545()['map'](_0x18c213[_0x256b3e('0xd61')]['Tags'],function(_0x200c2e){const _0x323ed7=_0x256b3e;return{'id':_0x200c2e['id'],'name':_0x200c2e[_0x323ed7('0x1a8d')],'color':_0x200c2e['color']};}),_0x18c213[_0x256b3e('0x2645')]=_0x1024fc,_0x18c213['autocompleteRequireMatch']=!![],_0x18c213[_0x256b3e('0x751')]=_0x5e3d05,_0x18c213[_0x256b3e('0xca7')]=_0x453cb9,_0x18c213['apiRoute']=_0x18c213['channel']+'Interaction';function _0x5e3d05(){const _0x5cb6bd=_0x256b3e;_0x18c213[_0x5cb6bd('0x25be')]=[];if(_0x545841[_0x18c213[_0x5cb6bd('0x249f')]])return _0x545841[_0x18c213[_0x5cb6bd('0x249f')]]['addTags']({'id':_0x18c213[_0x5cb6bd('0xd61')]['id'],'ids':_0x283545()[_0x5cb6bd('0x155d')](_0x18c213[_0x5cb6bd('0xd61')][_0x5cb6bd('0xbcf')],'id')})['$promise']['then'](function(){const _0x367ac1=_0x5cb6bd;_0x5ec197[_0x367ac1('0x173b')]({'title':'Interaction\x20properly\x20tagged!','msg':_0x367ac1('0xa93')}),_0x38f74e[_0x367ac1('0xbcf')]=_0x18c213[_0x367ac1('0xd61')][_0x367ac1('0xbcf')],_0x453cb9(!![]);})[_0x5cb6bd('0x1cb5')](function(_0x41156b){const _0x2fb015=_0x5cb6bd;if(_0x41156b['data']&&_0x41156b[_0x2fb015('0x11fc')][_0x2fb015('0x25be')]&&_0x41156b['data'][_0x2fb015('0x25be')][_0x2fb015('0x2566')])for(let _0x85c6b1=0x0;_0x85c6b1<_0x41156b[_0x2fb015('0x11fc')][_0x2fb015('0x25be')][_0x2fb015('0x2566')];_0x85c6b1+=0x1){_0x5ec197[_0x2fb015('0x5e8')]({'title':_0x41156b[_0x2fb015('0x11fc')][_0x2fb015('0x25be')][_0x85c6b1][_0x2fb015('0x1d7')],'msg':_0x41156b[_0x2fb015('0x11fc')]['errors'][_0x85c6b1]['message']});}else _0x5ec197[_0x2fb015('0x5e8')]({'title':_0x41156b[_0x2fb015('0x1b51')]?_0x2fb015('0x15d1')+_0x41156b[_0x2fb015('0x1b51')]+_0x2fb015('0x1b0b')+_0x41156b[_0x2fb015('0x22ce')]:_0x2fb015('0x1722'),'msg':_0x41156b['data']?JSON[_0x2fb015('0x1be0')](_0x41156b[_0x2fb015('0x11fc')][_0x2fb015('0x15e2')]):_0x41156b[_0x2fb015('0x17df')]()});});else _0x453cb9(![]);}function _0x453cb9(_0x340ee8){const _0x2303c7=_0x256b3e;_0x16472c[_0x2303c7('0x19d')](_0x340ee8);}}const _0x1a1c37=_0x243b44;_0x549bfd[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x446'),_0x34e79e('0x1b04'),'api',_0x34e79e('0xd57'),_0x34e79e('0x2645'),'message','account'];function _0x549bfd(_0x15fe77,_0x44ad13,_0x483e50,_0x2d7488,_0x5f3b77,_0x57b48f,_0x944950,_0x3d19d0){const _0x4a9d69=_0x34e79e,_0x1f4577=this;_0x1f4577[_0x4a9d69('0x9cb')]=_0x483e50['getCurrentUser'](),_0x1f4577['channel']=_0x57b48f[_0x4a9d69('0xc2e')](),_0x1f4577[_0x4a9d69('0x15e2')]=_0x944950,_0x1f4577['account']=_0x3d19d0,_0x1f4577[_0x4a9d69('0x589')]={'id':0x0,'type':_0x4a9d69('0x1ab4')},_0x1f4577[_0x4a9d69('0x283e')]={'count':0x0,'rows':[]},_0x1f4577['agents']=_0x1f4577['queues'],_0x1f4577[_0x4a9d69('0xf81')]=_0x1f4577[_0x4a9d69('0x2645')]+_0x4a9d69('0x107f'),_0x1f4577['queueNotifyMethod']=_0x1f4577[_0x4a9d69('0x2645')]+'QueueNotify',_0x1f4577[_0x4a9d69('0x1103')]=_0x1721e4,_0x1f4577[_0x4a9d69('0xca7')]=_0x5b1677,_0x1f4577['init']=_0x40616f,_0x1f4577[_0x4a9d69('0x24eb')]();function _0x40616f(){const _0xca4964=_0x4a9d69;return _0x2d7488['user']['get']({'fields':'id,name','role':_0xca4964('0x188b'),'sort':'name','nolimit':!![]})[_0xca4964('0x1714')][_0xca4964('0x2788')](function(_0x16e2e0){const _0x2b8412=_0xca4964;return _0x1f4577[_0x2b8412('0x1713')]=_0x16e2e0||{'count':0x0,'rows':[]},_0x2d7488[_0x1f4577['queueMethod']]['get']({'fields':_0x2b8412('0x1338'),'sort':_0x2b8412('0x1a8d'),'nolimit':!![]})['$promise'];})[_0xca4964('0x2788')](function(_0x1b9cc4){_0x1f4577['queues']=_0x1b9cc4||{'count':0x0,'rows':[]};})[_0xca4964('0x1cb5')](function(_0x1f3a34){const _0x37b517=_0xca4964;console[_0x37b517('0x5e8')](_0x1f3a34);});}function _0x5b1677(_0x284247){const _0x315260=_0x4a9d69;_0x15fe77[_0x315260('0x19d')](_0x284247);}function _0x1721e4(){_0x5b1677(!![]),_0x44ad13(function(){const _0xd93650=a0_0x14e7;return _0x2d7488[_0xd93650('0x1bfc')][_0x1f4577['transfer']['type']===_0xd93650('0x188b')?_0xd93650('0x1885'):_0x1f4577[_0xd93650('0x743')]]({'id':_0x1f4577[_0xd93650('0x589')]['id'],'messageId':_0x1f4577[_0xd93650('0x15e2')]['id'],'channel':_0x1f4577[_0xd93650('0x2645')]})['$promise'][_0xd93650('0x2788')](function(){const _0x434cee=_0xd93650;_0x5f3b77[_0x434cee('0x173b')]({'title':'Trasfer\x20properly\x20done!','msg':'Transfer\x20'+_0x1f4577[_0x434cee('0x589')]['type']+_0x434cee('0x2df')});})['catch'](function(_0x2cc2b1){const _0x1555de=_0xd93650;if(_0x2cc2b1[_0x1555de('0x11fc')]&&_0x2cc2b1[_0x1555de('0x11fc')][_0x1555de('0x25be')]&&_0x2cc2b1[_0x1555de('0x11fc')]['errors'][_0x1555de('0x2566')]){_0x1f4577[_0x1555de('0x25be')]=_0x2cc2b1['data'][_0x1555de('0x25be')]||[{'message':_0x2cc2b1['toString'](),'type':_0x1555de('0xb2')}];for(let _0xa4f1b4=0x0;_0xa4f1b4<_0x2cc2b1[_0x1555de('0x11fc')]['errors']['length'];_0xa4f1b4++){_0x5f3b77[_0x1555de('0x5e8')]({'title':_0x2cc2b1['data'][_0x1555de('0x25be')][_0xa4f1b4][_0x1555de('0x1d7')],'msg':_0x2cc2b1[_0x1555de('0x11fc')][_0x1555de('0x25be')][_0xa4f1b4][_0x1555de('0x15e2')]});}}else _0x5f3b77[_0x1555de('0x5e8')]({'title':_0x2cc2b1[_0x1555de('0x1b51')]?_0x1555de('0x15d1')+_0x2cc2b1[_0x1555de('0x1b51')]+_0x1555de('0x1b0b')+_0x2cc2b1[_0x1555de('0x22ce')]:_0x1555de('0xb2'),'msg':_0x2cc2b1[_0x1555de('0x11fc')]?JSON[_0x1555de('0x1be0')](_0x2cc2b1[_0x1555de('0x11fc')]['message']):_0x2cc2b1['toString']()});});},0x1388);}}const _0x2b4bc0=_0x549bfd;_0x30889f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x123b'),'mwFormResponseUtils',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x1a5c'),_0x34e79e('0x1ce0'),_0x34e79e('0x446'),_0x34e79e('0x9c4')];function _0x30889f(_0xad9362,_0x39e415,_0x30b01f,_0x462a5f,_0x4d8c71,_0x5e807d,_0x5249ab,_0x8ebc08,_0x207d5f,_0x47ccca,_0x5dd1b5){const _0x2a3017=_0x34e79e,_0x530f93=this;_0x530f93[_0x2a3017('0xe21')]={},_0x530f93['showResetButton']=!![],_0x530f93['showIncompleteSubmitButton']=![],_0x530f93[_0x2a3017('0x191e')]=_0x5dd1b5[_0x2a3017('0x191e')](),_0x530f93[_0x2a3017('0x196b')]=_0x544ce0,_0x530f93[_0x2a3017('0x1424')]=_0x509341,_0x530f93['isJsonString']=_0x180456,_0x530f93['getResponseSheet']=_0x14a3bc,_0x530f93[_0x2a3017('0x69')]=_0x17a847,_0x530f93[_0x2a3017('0x60f')]=_0x2cd292,_0x530f93['getQuestionWithResponseList']=_0x2d9ccb,_0x530f93[_0x2a3017('0x24eb')]=_0x4a1e54,_0x530f93[_0x2a3017('0x1277')]=function(_0x51a32a){const _0x45b83d=_0x2a3017;if(_0x530f93[_0x45b83d('0xe21')]['reset']){const _0x371221=_0x30b01f['confirm']()[_0x45b83d('0x14e4')](_0x8ebc08[_0x45b83d('0x1b11')]('JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION'))['content'](_0x8ebc08[_0x45b83d('0x1b11')](_0x45b83d('0x1881')))['textContent']('')['ariaLabel'](_0x45b83d('0x1068'))[_0x45b83d('0x24d0')](_0x51a32a)['ok'](_0x8ebc08[_0x45b83d('0x1b11')](_0x45b83d('0x8b')))[_0x45b83d('0x1801')](_0x8ebc08[_0x45b83d('0x1b11')](_0x45b83d('0x1378')));_0x30b01f[_0x45b83d('0x2fa')](_0x371221)[_0x45b83d('0x2788')](function(){const _0x55f8f4=_0x45b83d;_0x530f93['showIncompleteSubmitButton']=![],_0x530f93['project'][_0x55f8f4('0x394')]=undefined,_0x1309b7(),_0x530f93['formViewer'][_0x55f8f4('0x186b')]();});}};function _0x1309b7(){const _0x436467=_0x2a3017;try{_0xad9362[_0x436467('0x7d0')][_0x436467('0x7d0')][_0x436467('0x7d0')]['vm'][_0x436467('0x9c9')]();}catch(_0x571cb8){_0x5e807d['error']({'title':'ERROR\x20UPDATE\x20LOCAL\x20TABS','msg':_0x436467('0x202a')});}}function _0x4a1e54(_0x2d3033){const _0x1d416a=_0x2a3017;_0x530f93['tab']=_0x2d3033;if(_0x530f93[_0x1d416a('0x24f6')]){_0x530f93[_0x1d416a('0x935')]=_0x530f93[_0x1d416a('0x24f6')][_0x1d416a('0x935')],_0x530f93[_0x1d416a('0x2615')]=_0x530f93[_0x1d416a('0x24f6')][_0x1d416a('0x332')],_0x530f93['contact']=_0x530f93[_0x1d416a('0x24f6')][_0x1d416a('0xc17')],_0x530f93['project']=_0x530f93[_0x1d416a('0x24f6')][_0x1d416a('0x1bf6')];if(_0x530f93['project']){if(_0x283545()[_0x1d416a('0xed2')](_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x6e4')])){}else _0x530f93[_0x1d416a('0x1a28')](_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x6e4')])?_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x6e4')]=JSON[_0x1d416a('0xe0b')](_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x6e4')]):_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x6e4')]=undefined;_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0xc28')]=_0x530f93[_0x1d416a('0x1bf6')]['responseData']||{},_0x530f93[_0x1d416a('0x1bf6')][_0x1d416a('0x394')]!==undefined&&_0x47ccca(function(){const _0x4e78f8=_0x1d416a;_0x207d5f['$broadcast'](_0x4e78f8('0x22f5'),{'page':_0x530f93['project']['currentPage']});}),_0xad9362[_0x1d416a('0x651')](_0x1d416a('0x26e2'),function(_0x2e0850,_0x550b12){const _0x37a10f=_0x1d416a;if(_0x550b12[_0x37a10f('0x394')]){_0x530f93['project'][_0x37a10f('0x394')]=_0x550b12[_0x37a10f('0x394')][_0x37a10f('0x272c')]-0x1,_0x1309b7();_0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0x21b')]&&(_0x550b12[_0x37a10f('0x394')][_0x37a10f('0x272c')]>=0x1&&_0x550b12['currentPage']['number']<_0x530f93['project'][_0x37a10f('0x6e4')][_0x37a10f('0x3c1')][_0x37a10f('0x2566')]?_0x530f93[_0x37a10f('0x35b')]=!![]:_0x530f93[_0x37a10f('0x35b')]=![]);if(_0x530f93[_0x37a10f('0x1bf6')]['formData']&&_0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0x6e4')][_0x37a10f('0x3c1')])for(let _0x56ab26=0x0,_0x1b88a4=_0x530f93[_0x37a10f('0x1bf6')]['formData'][_0x37a10f('0x3c1')][_0x37a10f('0x2566')];_0x56ab26<_0x1b88a4;_0x56ab26++){if(_0x550b12['currentPage'][_0x37a10f('0x272c')]<_0x56ab26+0x1&&_0x530f93[_0x37a10f('0x1bf6')]['formData'][_0x37a10f('0x3c1')][_0x56ab26][_0x37a10f('0x82a')])for(let _0x99189a=0x0,_0x320b8f=_0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0x6e4')]['pages'][_0x56ab26]['elements']['length'];_0x99189a<_0x320b8f;_0x99189a++){_0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0x6e4')][_0x37a10f('0x3c1')][_0x56ab26][_0x37a10f('0x82a')][_0x99189a][_0x37a10f('0x1d7')]===_0x37a10f('0x22e9')&&_0x530f93['project']['formData']['pages'][_0x56ab26][_0x37a10f('0x82a')][_0x99189a][_0x37a10f('0x22e9')]&&delete _0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0xc28')][_0x530f93[_0x37a10f('0x1bf6')][_0x37a10f('0x6e4')][_0x37a10f('0x3c1')][_0x56ab26][_0x37a10f('0x82a')][_0x99189a][_0x37a10f('0x22e9')]['id']];}}}});}}}function _0x180456(_0x403c6b){const _0x14063a=_0x2a3017;if(_0x283545()[_0x14063a('0x1015')](_0x403c6b))return![];try{JSON[_0x14063a('0xe0b')](_0x403c6b);}catch(_0x9a2dbf){return![];}return!![];}function _0x509341(_0x4109be,_0x51c179){const _0x3789aa=_0x2a3017;try{_0xad9362[_0x3789aa('0x7d0')][_0x3789aa('0x7d0')][_0x3789aa('0x7d0')]['vm'][_0x3789aa('0x11eb')](_0x51c179);}catch(_0x4a40bc){_0x5e807d[_0x3789aa('0x5e8')]({'title':_0x3789aa('0x758'),'msg':_0x3789aa('0xf08')});}}function _0x4807c2(_0x1fbc4d){const _0x20e7c8=_0x2a3017,_0x37d9b3=_0x39e415[_0x20e7c8('0x2311')]();return _0x530f93[_0x20e7c8('0x1bf6')][_0x20e7c8('0x1f85')]?_0x4d8c71[_0x20e7c8('0x1e6a')][_0x20e7c8('0x1826')]({'id':_0x1fbc4d['id']})[_0x20e7c8('0x1714')][_0x20e7c8('0x2788')](function(){_0x37d9b3['resolve']();})[_0x20e7c8('0x1cb5')](function(){const _0x719172=_0x20e7c8;console[_0x719172('0x10df')](_0x719172('0x1065')),_0x37d9b3['resolve']();}):_0x37d9b3[_0x20e7c8('0x2322')](),_0x37d9b3[_0x20e7c8('0x1808')];}function _0x17032a(_0x3fc9bb,_0x169f61){const _0x4788b9=_0x2a3017,_0x9debac=[],_0x5e8cfa=[],_0x54f359=_0x5249ab[_0x4788b9('0x24cc')]();_0x4807c2(_0x54f359)[_0x4788b9('0x2788')](function(){const _0x471393=_0x4788b9;return _0x4d8c71['jscriptySessionReport'][_0x471393('0xbd0')]({'starttime':_0x530f93[_0x471393('0x2615')],'membername':_0x530f93[_0x471393('0x935')]&&_0x530f93[_0x471393('0x935')][_0x471393('0x387')]?_0x530f93[_0x471393('0x935')][_0x471393('0x387')]:_0x54f359['name'],'calleridname':_0x530f93[_0x471393('0x935')]&&_0x530f93[_0x471393('0x935')][_0x471393('0x27cd')]?_0x530f93[_0x471393('0x935')]['calleridname']:undefined,'calleridnum':_0x530f93[_0x471393('0x935')]&&_0x530f93[_0x471393('0x935')][_0x471393('0x27e7')]?_0x530f93[_0x471393('0x935')]['calleridnum']:undefined,'queue':_0x530f93[_0x471393('0x935')]&&_0x530f93[_0x471393('0x935')][_0x471393('0x1ab4')]?_0x530f93[_0x471393('0x935')]['queue']:undefined,'uniqueid':_0x530f93[_0x471393('0x935')]&&_0x530f93['call'][_0x471393('0x1be7')]?_0x530f93[_0x471393('0x935')]['uniqueid']:undefined,'VoiceQueueId':_0x530f93[_0x471393('0x935')]&&_0x530f93[_0x471393('0x935')][_0x471393('0x12ee')]?_0x530f93['call']['xmd-voicequeueid']:undefined,'ProjectId':_0x530f93[_0x471393('0x1bf6')]&&_0x530f93['project']['id']?_0x530f93[_0x471393('0x1bf6')]['id']:undefined,'projectname':_0x530f93[_0x471393('0x1bf6')]&&_0x530f93[_0x471393('0x1bf6')][_0x471393('0x1a8d')]?_0x530f93['project'][_0x471393('0x1a8d')]:undefined,'ContactId':_0x530f93[_0x471393('0xc17')]&&_0x530f93[_0x471393('0xc17')]['id']?_0x530f93['contact']['id']:undefined,'completed':_0x169f61})[_0x471393('0x1714')];})[_0x4788b9('0x2788')](function(_0x4f99cc){const _0x40d9b0=_0x4788b9;if(_0x4f99cc){const _0x3957c3=_0x530f93[_0x40d9b0('0x60f')](),_0x4f6608=_0x530f93[_0x40d9b0('0x69')](),_0x261db2=_0x530f93[_0x40d9b0('0x21a5')]();for(let _0x538e05=0x0;_0x538e05<_0x3957c3[_0x40d9b0('0x2566')];_0x538e05+=0x1){if(!_0x283545()[_0x40d9b0('0x213d')](String(_0x4f6608[_0x538e05]))){try{_0x9debac[_0x40d9b0('0x13e3')](_0x4d8c71[_0x40d9b0('0x1069')][_0x40d9b0('0xbd0')]({'question':_0x3957c3[_0x538e05],'answer':_0x261db2[_0x538e05][_0x40d9b0('0x1d7')]===_0x40d9b0('0x1012')?_0x59f37a()(String(_0x4f6608[_0x538e05]))[_0x40d9b0('0x22b4')](_0x40d9b0('0x1c0b')):_0x261db2[_0x538e05]['type']===_0x40d9b0('0x26d1')?_0x59f37a()(String(_0x4f6608[_0x538e05]))[_0x40d9b0('0x22b4')](_0x40d9b0('0x1812')):String(_0x4f6608[_0x538e05]),'questionId':_0x261db2[_0x538e05]['id'],'membername':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x387')]?_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x387')]:_0x54f359[_0x40d9b0('0x1a8d')],'calleridname':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')]['calleridname']?_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x27cd')]:undefined,'calleridnum':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')]['calleridnum']?_0x530f93['call'][_0x40d9b0('0x27e7')]:undefined,'queue':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x1ab4')]?_0x530f93[_0x40d9b0('0x935')]['queue']:undefined,'uniqueid':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x1be7')]?_0x530f93['call'][_0x40d9b0('0x1be7')]:undefined,'SessionId':_0x4f99cc['id'],'ProjectId':_0x530f93[_0x40d9b0('0x1bf6')]['id'],'projectname':_0x530f93[_0x40d9b0('0x1bf6')]['name']}));}catch(_0x10f3ad){console[_0x40d9b0('0x5e8')](_0x40d9b0('0x1fb6'),_0x10f3ad);}const _0x4b1845=String(_0x4f6608[_0x538e05])[_0x40d9b0('0x1497')](';');for(let _0x44af3b=0x0;_0x44af3b<_0x4b1845[_0x40d9b0('0x2566')];_0x44af3b+=0x1){const _0x170b6f=_0x4b1845[_0x44af3b][_0x40d9b0('0x1d7f')]();try{_0x5e8cfa[_0x40d9b0('0x13e3')](_0x4d8c71['jscriptyAnswerReport'][_0x40d9b0('0xbd0')]({'question':_0x3957c3[_0x538e05],'questionId':_0x261db2[_0x538e05]['id'],'answer':_0x261db2[_0x538e05]['type']===_0x40d9b0('0x1012')?_0x59f37a()(_0x170b6f)['format']('YYYY-MM-DD'):_0x261db2[_0x538e05]['type']===_0x40d9b0('0x26d1')?_0x59f37a()(_0x170b6f)['format']('HH:mm'):_0x170b6f,'membername':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x387')]?_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x387')]:_0x54f359[_0x40d9b0('0x1a8d')],'calleridname':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93['call']['calleridname']?_0x530f93['call']['calleridname']:undefined,'calleridnum':_0x530f93['call']&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x27e7')]?_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x27e7')]:undefined,'queue':_0x530f93[_0x40d9b0('0x935')]&&_0x530f93[_0x40d9b0('0x935')][_0x40d9b0('0x1ab4')]?_0x530f93[_0x40d9b0('0x935')]['queue']:undefined,'uniqueid':_0x530f93['call']&&_0x530f93['call'][_0x40d9b0('0x1be7')]?_0x530f93['call'][_0x40d9b0('0x1be7')]:undefined,'SessionId':_0x4f99cc['id'],'ProjectId':_0x530f93[_0x40d9b0('0x1bf6')]['id'],'projectname':_0x530f93[_0x40d9b0('0x1bf6')][_0x40d9b0('0x1a8d')]}));}catch(_0x4ec8b9){console['error'](_0x40d9b0('0xcf4'),_0x4ec8b9);}}}}}return _0x39e415[_0x40d9b0('0x1def')](_0x9debac)[_0x40d9b0('0x2788')](function(){const _0x46c526=_0x40d9b0;return _0x39e415['all'](_0x5e8cfa)[_0x46c526('0x2788')](function(){return _0x4f99cc;});});})['then'](function(_0x16f5ed){_0x16f5ed?_0x3fc9bb['resolve'](!![]):_0x3fc9bb['reject']();})['catch'](function(_0xa1397a){const _0x526ddd=_0x4788b9;if(_0xa1397a[_0x526ddd('0x11fc')]&&_0xa1397a[_0x526ddd('0x11fc')][_0x526ddd('0x25be')]&&_0xa1397a['data'][_0x526ddd('0x25be')][_0x526ddd('0x2566')]){_0x530f93[_0x526ddd('0x25be')]=_0xa1397a[_0x526ddd('0x11fc')][_0x526ddd('0x25be')]||[{'message':_0xa1397a['toString'](),'type':'api.contact.save'}];for(let _0x1feb9b=0x0;_0x1feb9b<_0xa1397a[_0x526ddd('0x11fc')][_0x526ddd('0x25be')][_0x526ddd('0x2566')];_0x1feb9b+=0x1){_0x5e807d['error']({'title':_0xa1397a[_0x526ddd('0x11fc')][_0x526ddd('0x25be')][_0x1feb9b][_0x526ddd('0x1d7')],'msg':_0xa1397a[_0x526ddd('0x11fc')]['errors'][_0x1feb9b][_0x526ddd('0x15e2')]});}}else _0x5e807d[_0x526ddd('0x5e8')]({'title':_0xa1397a[_0x526ddd('0x1b51')]?_0x526ddd('0x15d1')+_0xa1397a[_0x526ddd('0x1b51')]+_0x526ddd('0x1b0b')+_0xa1397a[_0x526ddd('0x22ce')]:_0x526ddd('0x7eb'),'msg':_0xa1397a[_0x526ddd('0x11fc')]?JSON[_0x526ddd('0x1be0')](_0xa1397a[_0x526ddd('0x11fc')]['message']):_0xa1397a['toString']()});_0x3fc9bb[_0x526ddd('0x9')]();});}function _0x479c14(_0x7f26c2){const _0x15fe50=_0x2a3017;try{_0xad9362['$parent'][_0x15fe50('0x7d0')][_0x15fe50('0x7d0')]['vm']['removeTab'](_0x7f26c2);}catch(_0x193701){_0x5e807d['error']({'title':'ERROR\x20REMOVE\x20TAB','msg':_0x15fe50('0xaa2')});}}function _0x544ce0(_0x2ea3e5,_0x29ff40){const _0x29f75a=_0x2a3017,_0x3840d5=_0x39e415['defer']();if(_0x29ff40){const _0x1fd574=_0x30b01f[_0x29f75a('0x112e')]()[_0x29f75a('0x14e4')](_0x29f75a('0x82b'))[_0x29f75a('0x1a95')]('')['ariaLabel'](_0x29f75a('0x1068'))[_0x29f75a('0x24d0')](_0x2ea3e5)['ok'](_0x29f75a('0xe1e'))['cancel']('NO');_0x30b01f[_0x29f75a('0x2fa')](_0x1fd574)['then'](function(){_0x17032a(_0x3840d5,![]);},function(){_0x3840d5['resolve']();});}else _0x17032a(_0x3840d5,!![]);return _0x3840d5['promise'][_0x29f75a('0x2788')](function(_0x5b9abe){const _0x5db106=_0x29f75a;_0x5b9abe&&(_0x5e807d['success']({'title':_0x5db106('0xc9b'),'msg':'Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!'}),_0x479c14(_0x530f93['tab']));})[_0x29f75a('0x1cb5')](function(){const _0x6a34d5=_0x29f75a;_0x5e807d['error']({'title':_0x6a34d5('0x2813'),'msg':_0x6a34d5('0xd87')});});}function _0x14a3bc(){const _0x211736=_0x2a3017;return _0x462a5f[_0x211736('0x662')](_0x530f93[_0x211736('0x1bf6')][_0x211736('0x6e4')],_0x530f93['project']['responseData'],![]);}function _0x17a847(){const _0x217861=_0x2a3017;return _0x462a5f[_0x217861('0x69')](_0x530f93[_0x217861('0x1bf6')][_0x217861('0x6e4')],_0x530f93[_0x217861('0x1bf6')][_0x217861('0xc28')]);}function _0x2cd292(){const _0x207c02=_0x2a3017;return _0x462a5f[_0x207c02('0x60f')](_0x530f93[_0x207c02('0x1bf6')][_0x207c02('0x6e4')],![]);}function _0x2d9ccb(){const _0x8d7012=_0x2a3017;return _0x462a5f[_0x8d7012('0x21a5')](_0x530f93[_0x8d7012('0x1bf6')]['formData'],_0x530f93['project'][_0x8d7012('0xc28')]);}}const _0x1bbc4d=_0x30889f;_0x3d1c4f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x793'),_0x34e79e('0x519'),'Auth'];function _0x3d1c4f(_0x7769e2,_0x136e77,_0x39be74,_0x5eaf47,_0xf1a3f){const _0x1670fb=_0x34e79e,_0x334a9b=this;_0x334a9b[_0x1670fb('0x793')]=_0x39be74,_0x334a9b[_0x1670fb('0x1e6a')]=_0xf1a3f[_0x1670fb('0x24cc')]();function _0x15d400(){return function(_0x36141d){const _0x2ef780=a0_0x14e7;if(_0x36141d['status']===0x194)_0x136e77[_0x2ef780('0x2276')]({'title':_0x7769e2[_0x2ef780('0x1b11')](_0x2ef780('0xbea')),'msg':_0x7769e2[_0x2ef780('0x1b11')](_0x2ef780('0x10b4'))});else{if(_0x36141d[_0x2ef780('0x11fc')]&&_0x36141d[_0x2ef780('0x11fc')][_0x2ef780('0x25be')]&&_0x36141d[_0x2ef780('0x11fc')][_0x2ef780('0x25be')]['length']){_0x334a9b[_0x2ef780('0x25be')]=_0x36141d['data'][_0x2ef780('0x25be')]||[{'message':_0x36141d[_0x2ef780('0x17df')](),'type':'api.openchannelMessage.accept'}];for(let _0x1e61bf=0x0;_0x1e61bf<_0x36141d['data']['errors']['length'];_0x1e61bf+=0x1){_0x136e77[_0x2ef780('0x5e8')]({'title':_0x36141d[_0x2ef780('0x11fc')][_0x2ef780('0x25be')][_0x1e61bf][_0x2ef780('0x1d7')],'msg':_0x36141d[_0x2ef780('0x11fc')]['errors'][_0x1e61bf][_0x2ef780('0x15e2')]});}}else _0x136e77[_0x2ef780('0x5e8')]({'title':_0x36141d['status']?_0x2ef780('0x15d1')+_0x36141d[_0x2ef780('0x1b51')]+'\x20-\x20'+_0x36141d[_0x2ef780('0x22ce')]:'api.openchannelMessage.accept','msg':_0x36141d[_0x2ef780('0x11fc')]?JSON[_0x2ef780('0x1be0')](_0x36141d[_0x2ef780('0x11fc')][_0x2ef780('0x15e2')]):_0x36141d[_0x2ef780('0x17df')]()});}};}function _0x5ca61b(){const _0x2dcd83=_0x1670fb;if(_0x5eaf47[_0x334a9b[_0x2dcd83('0x793')][_0x2dcd83('0x2645')]+_0x2dcd83('0x217')])return _0x5eaf47[_0x334a9b[_0x2dcd83('0x793')][_0x2dcd83('0x2645')]+_0x2dcd83('0x217')][_0x2dcd83('0xdee')]({'id':_0x334a9b[_0x2dcd83('0x793')]['id'],'UserId':_0x334a9b[_0x2dcd83('0x1e6a')]['id'],'manual':!![]})['$promise'][_0x2dcd83('0x2788')](function(){const _0x3fb4ee=_0x2dcd83;_0x136e77[_0x3fb4ee('0x173b')]({'title':_0x3fb4ee('0x1c13'),'msg':'Message\x20has\x20been\x20accepted!'});})[_0x2dcd83('0x1cb5')](_0x15d400());else _0x136e77[_0x2dcd83('0x5e8')]({'title':_0x2dcd83('0xbaa'),'msg':_0x2dcd83('0x1fc1')+_0x334a9b['notification'][_0x2dcd83('0x2645')]+_0x2dcd83('0x217')});}function _0x2e6802(){const _0x5b710e=_0x1670fb;if(_0x5eaf47[_0x334a9b[_0x5b710e('0x793')][_0x5b710e('0x2645')]+_0x5b710e('0x217')])return _0x5eaf47[_0x334a9b[_0x5b710e('0x793')][_0x5b710e('0x2645')]+_0x5b710e('0x217')][_0x5b710e('0x9')]({'id':_0x334a9b[_0x5b710e('0x793')]['id'],'UserId':_0x334a9b['user']['id']})['$promise'][_0x5b710e('0x2788')](function(){const _0xf2dc3e=_0x5b710e;_0x136e77[_0xf2dc3e('0x173b')]({'title':_0xf2dc3e('0x60c'),'msg':_0xf2dc3e('0xa8b')});})[_0x5b710e('0x1cb5')](_0x15d400());else _0x136e77[_0x5b710e('0x5e8')]({'title':_0x5b710e('0xbaa'),'msg':_0x5b710e('0xce8')+_0x334a9b[_0x5b710e('0x793')][_0x5b710e('0x2645')]+_0x5b710e('0x217')});}_0x334a9b['accept']=_0x5ca61b,_0x334a9b[_0x1670fb('0x9')]=_0x2e6802;}const _0x59e8ac=_0x3d1c4f;function _0x2fbc23(){const _0x2243dd=_0x34e79e,_0xd3f6db=this;function _0x5cffba(_0x42e95a){const _0x1ab113=a0_0x14e7;_0xd3f6db[_0x1ab113('0x24f6')]=_0x42e95a,_0xd3f6db[_0x1ab113('0x24f6')]&&(_0xd3f6db[_0x1ab113('0x24f6')][_0x1ab113('0x100f')]=!![],_0xd3f6db[_0x1ab113('0x1cd8')]=_0xd3f6db[_0x1ab113('0x24f6')][_0x1ab113('0x1cd8')]);}_0xd3f6db[_0x2243dd('0x24eb')]=_0x5cffba;}const _0xb01baa=_0x2fbc23,_0x2a8627=_0x18dd13['p']+_0x34e79e('0x1973');_0x3bfbc4[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x3bfbc4(_0x21c8c6){const _0x5595c1=_0x34e79e;_0x21c8c6[_0x5595c1('0x249b')]('app.dashboards.general',{'url':_0x5595c1('0x165c'),'views':{'content@app':{'templateProvider':[_0x5595c1('0xad0'),'$templateFactory','Auth',function(_0x3b4c38,_0x5baa27,_0x52e35a){const _0x4c3bcc=_0x5595c1;return _0x52e35a[_0x4c3bcc('0x103f')]()?_0x5baa27[_0x4c3bcc('0xbdb')](_0x2a8627,_0x3b4c38):_0x5baa27[_0x4c3bcc('0xbdb')](_0x508655,_0x3b4c38);}],'controllerProvider':[_0x5595c1('0x1b04'),function(_0x86a860){const _0xbb9c55=_0x5595c1;return _0x86a860[_0xbb9c55('0x103f')]()?_0xbb9c55('0x1b41'):_0xbb9c55('0x164f');}]}},'resolve':{'globalUserLists':[_0x5595c1('0x1318'),_0x5595c1('0x1b04'),function(_0x22e3cc,_0x80072f){const _0x4cefbf=_0x5595c1;return _0x22e3cc[_0x4cefbf('0x2322')](_0x4cefbf('0x1aed'),{'id':_0x80072f['getCurrentUser']()['id'],'sort':_0x4cefbf('0x1a8d'),'nolimit':!![]});}],'globalLists':[_0x5595c1('0x1318'),function(_0x332333){const _0x316a25=_0x5595c1;return _0x332333[_0x316a25('0x2322')](_0x316a25('0x128f'),{'sort':_0x316a25('0x1a8d'),'nolimit':!![]});}],'globalTags':[_0x5595c1('0x1318'),function(_0x4c3576){const _0x5d822b=_0x5595c1;return _0x4c3576['resolve'](_0x5d822b('0x46c'),{'sort':_0x5d822b('0x1a8d'),'nolimit':!![]});}],'globalCompanies':['apiResolver',function(_0x2296e1){const _0x4bc4b9=_0x5595c1;return _0x2296e1['resolve'](_0x4bc4b9('0x58c'),{'sort':_0x4bc4b9('0x1a8d'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x15b8'),['ngMaterialDateRangePicker',_0x34e79e('0x2134')])[_0x34e79e('0x1a22')](_0x3bfbc4)[_0x34e79e('0xb44')](_0x34e79e('0x18f7'),_0x304ac7)[_0x34e79e('0x227e')](_0x34e79e('0x1902'),_0x4b0d90)['provider'](_0x34e79e('0x88a'),_0x42ffcf)[_0x34e79e('0x182b')]('msNavigationAgentService',_0x1fa304)[_0x34e79e('0x1574')](_0x34e79e('0x1427'),_0x1fffe7)[_0x34e79e('0xb44')]('AgentGeneralBotController',_0x3f671a)[_0x34e79e('0xb44')](_0x34e79e('0x24e8'),_0x3d13c7)[_0x34e79e('0xb44')](_0x34e79e('0x138d'),_0x31b5b3)[_0x34e79e('0xb44')]('RescheduleCallDialogController',_0x3bf5ec)[_0x34e79e('0xb44')](_0x34e79e('0x1100'),_0x44e627)['controller'](_0x34e79e('0x17e3'),_0x2e90c0)[_0x34e79e('0xb44')]('AgentHomeAbandonedBullController',_0x481bdd)[_0x34e79e('0xb44')](_0x34e79e('0x93b'),_0x384484)[_0x34e79e('0xb44')](_0x34e79e('0x16c4'),_0x45bc0e)[_0x34e79e('0xb44')]('AgentGeneralHomeController',_0x423af8)[_0x34e79e('0xb44')](_0x34e79e('0x1a69'),_0x18f63c)[_0x34e79e('0xb44')](_0x34e79e('0x1638'),_0x4091ac)[_0x34e79e('0xb44')](_0x34e79e('0x7fc'),_0x10cd23)['controller'](_0x34e79e('0x13f4'),_0x33fdd9)[_0x34e79e('0xb44')]('AgentHomeDashboardMultiChannelChatController',_0x1ec4f7)[_0x34e79e('0xb44')]('AgentHomeDashboardMultiChannelFaxController',_0x49fd33)[_0x34e79e('0xb44')](_0x34e79e('0xbc6'),_0x2c6f60)[_0x34e79e('0xb44')](_0x34e79e('0x414'),_0x4d529c)[_0x34e79e('0xb44')](_0x34e79e('0x822'),_0x351e39)[_0x34e79e('0xb44')](_0x34e79e('0x1a33'),_0x5b5c07)[_0x34e79e('0xb44')](_0x34e79e('0x1f6c'),_0x3821bf)[_0x34e79e('0xb44')]('AgentHomeFaxController',_0xe729dd)[_0x34e79e('0xb44')](_0x34e79e('0x2086'),_0xdd56c5)['controller'](_0x34e79e('0x161b'),_0x324b5b)[_0x34e79e('0xb44')]('AgentHomeOpenchannelController',_0x4ded2c)[_0x34e79e('0xb44')](_0x34e79e('0xc5f'),_0x25f2e2)['controller'](_0x34e79e('0x2446'),_0x2453d8)['controller']('AgentHomeScheduledCallsController',_0x54dd70)[_0x34e79e('0xb44')](_0x34e79e('0x1117'),_0x481726)[_0x34e79e('0xb44')](_0x34e79e('0x1998'),_0x1183b0)[_0x34e79e('0xb44')](_0x34e79e('0x2412'),_0x20920c)[_0x34e79e('0xb44')]('AgentHomeWhatsappController',_0x226ae8)[_0x34e79e('0xb44')]('AgentGeneralIframeController',_0x27ec18)[_0x34e79e('0x5a1')](_0x34e79e('0x1f57'),_0x4b3c5b)['filter'](_0x34e79e('0x1b8b'),_0x3d20fa)[_0x34e79e('0xb44')](_0x34e79e('0xcd'),_0xb4a6e4)[_0x34e79e('0x227e')]('Emojis',_0x21a964)[_0x34e79e('0xb44')](_0x34e79e('0x6ba'),_0x488aa6)['controller'](_0x34e79e('0x797'),_0x5b8a41)['controller'](_0x34e79e('0x7a4'),_0x483210)[_0x34e79e('0xb44')]('ComposeSmsInteractionDialogController',_0x6864d1)[_0x34e79e('0xb44')](_0x34e79e('0x397'),_0x552e4c)[_0x34e79e('0xb44')](_0x34e79e('0x1bff'),_0x2fcf73)[_0x34e79e('0xb44')](_0x34e79e('0xa6'),_0x1a1c37)[_0x34e79e('0xb44')]('TransferMessageDialogController',_0x2b4bc0)[_0x34e79e('0xb44')](_0x34e79e('0x576'),_0x1bbc4d)[_0x34e79e('0xb44')](_0x34e79e('0x193a'),_0x59e8ac)['controller'](_0x34e79e('0xcf5'),_0xb01baa);const _0x1681d5=_0x18dd13['p']+_0x34e79e('0x79');_0x127518['$inject']=[_0x34e79e('0x1382'),'$interval',_0x34e79e('0x1701'),_0x34e79e('0x519'),'socket',_0x34e79e('0x1b04'),_0x34e79e('0x135'),'userProfile',_0x34e79e('0xec9')];function _0x127518(_0x2a612f,_0x3d3956,_0x193c16,_0x2d9f82,_0x9dbd3f,_0x391f6b,_0x4ca7d1,_0x8bc431,_0x2728f4){const _0x8f2b8a=_0x34e79e,_0x36188b=this;_0x36188b[_0x8f2b8a('0x9cb')]=_0x391f6b[_0x8f2b8a('0x24cc')](),_0x36188b[_0x8f2b8a('0x63c')]=_0x8bc431,_0x36188b[_0x8f2b8a('0xec9')]=_0x2728f4&&_0x2728f4[_0x8f2b8a('0x338')]==0x1?_0x2728f4[_0x8f2b8a('0x25df')][0x0]:null,_0x36188b['crudPermissions']=_0x391f6b[_0x8f2b8a('0x157e')](_0x36188b[_0x8f2b8a('0xec9')]?_0x36188b[_0x8f2b8a('0xec9')]['crudPermissions']:null),_0x36188b[_0x8f2b8a('0x1238')]={},_0x36188b[_0x8f2b8a('0x135')]=_0x4ca7d1&&_0x4ca7d1['count']?_0x4ca7d1:{'count':0x0,'rows':[]},_0x36188b[_0x8f2b8a('0x1828')]=_0x4ca7d1&&_0x4ca7d1[_0x8f2b8a('0x338')]?_0x283545()['map'](_0x4ca7d1['rows'],'id'):[],_0x36188b[_0x8f2b8a('0x2630')]=_0x3d3956(function(){},0x3e8),_0x36188b['onChangeVoiceQueues']=_0xc84083,_0x36188b[_0x8f2b8a('0x111d')]=_0x27e368,_0x9dbd3f[_0x8f2b8a('0x3e')](_0x8f2b8a('0x2467'),_0x4e4013),_0x2d9f82[_0x8f2b8a('0x19f4')][_0x8f2b8a('0x1335')]({'id':_0x2a612f[_0x8f2b8a('0x4b9')]['id']})['$promise'][_0x8f2b8a('0x2788')](function(_0x5a9a89){const _0x1d6450=_0x8f2b8a;if(_0x5a9a89)return _0x36188b[_0x1d6450('0x1238')]=_0x5a9a89,_0x36188b[_0x1d6450('0x1238')][_0x1d6450('0x25ee')]=[],_0x36188b[_0x1d6450('0x1238')][_0x1d6450('0x23b3')]=!![],_0x36188b['customDashboard'][_0x1d6450('0x86e')]={'enabled':![]},_0x36188b[_0x1d6450('0x1238')][_0x1d6450('0x18a2')]={'enabled':![]},_0x2d9f82[_0x1d6450('0x19f4')]['getItems']({'id':_0x36188b['customDashboard']['id']})['$promise'];})[_0x8f2b8a('0x2788')](function(_0x4bd11e){const _0x1e91e3=_0x8f2b8a;if(_0x4bd11e&&_0x4bd11e[_0x1e91e3('0x338')]&&_0x4bd11e[_0x1e91e3('0x25df')])for(let _0x3ba1ae=0x0;_0x3ba1ae<_0x4bd11e[_0x1e91e3('0x25df')][_0x1e91e3('0x2566')];_0x3ba1ae+=0x1){_0x4bd11e[_0x1e91e3('0x25df')][_0x3ba1ae][_0x1e91e3('0x1b33')]='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x4bd11e[_0x1e91e3('0x25df')][_0x3ba1ae]['type']+_0x1e91e3('0x1b14')+_0x4bd11e['rows'][_0x3ba1ae]['type']+'.html',_0x4bd11e[_0x1e91e3('0x25df')][_0x3ba1ae][_0x1e91e3('0x135')]=_0x36188b[_0x1e91e3('0x135')],_0x4bd11e[_0x1e91e3('0x25df')][_0x3ba1ae]['voiceQueuesSelected']=_0x36188b['voiceQueuesSelected'],_0x36188b[_0x1e91e3('0x1238')][_0x1e91e3('0x25ee')][_0x1e91e3('0x13e3')](_0x4bd11e['rows'][_0x3ba1ae]);}})[_0x8f2b8a('0x1cb5')](function(){const _0x581069=_0x8f2b8a;_0x36188b[_0x581069('0x1238')]=undefined;});function _0x4e4013(_0x1a19f6){const _0x5c9f35=_0x8f2b8a,_0x3d66f3=_0x283545()[_0x5c9f35('0x20e8')](_0x36188b[_0x5c9f35('0x135')][_0x5c9f35('0x25df')],{'id':_0x1a19f6['id']});_0x3d66f3&&_0x283545()[_0x5c9f35('0x2503')](_0x3d66f3,_0x283545()[_0x5c9f35('0x41b')](_0x1a19f6,_0x283545()['keys'](_0x3d66f3)));}function _0xc84083(){const _0x15e24c=_0x8f2b8a;for(let _0x188d07=0x0;_0x188d07<_0x36188b[_0x15e24c('0x1238')][_0x15e24c('0x25ee')][_0x15e24c('0x2566')];_0x188d07+=0x1){_0x36188b['customDashboard'][_0x15e24c('0x25ee')][_0x188d07][_0x15e24c('0x1828')]=_0x36188b[_0x15e24c('0x1828')];}}function _0x27e368(){const _0x230e4d=_0x8f2b8a;_0x2a612f['go'](_0x230e4d('0x14a9'),{'id':_0x36188b['customDashboard']['id'],'tab':0x1});}_0x193c16[_0x8f2b8a('0x651')](_0x8f2b8a('0x26ac'),function(){const _0x57f758=_0x8f2b8a;_0x9dbd3f[_0x57f758('0x277f')]('voice_queue:save'),_0x36188b[_0x57f758('0x2630')]&&_0x3d3956[_0x57f758('0x1801')](_0x36188b[_0x57f758('0x2630')]);});}const _0x34d7c8=_0x127518;_0x458786[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x458786(_0x28a791){const _0x5bae86=_0x34e79e;_0x28a791['state'](_0x5bae86('0x494'),{'url':_0x5bae86('0xadf'),'views':{'content@app':{'templateUrl':_0x1681d5,'controller':'DashboardCustomController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0x5bae86('0x1318'),_0x5bae86('0x1b04'),function(_0x1ae6a0,_0x932441){const _0x30c0c5=_0x5bae86;let _0x2bd7cc;const _0x2bc132=_0x932441[_0x30c0c5('0x1516')](_0x30c0c5('0xe23'))?_0x1ae6a0['resolve'](_0x30c0c5('0x18df'),{'fields':_0x30c0c5('0x1338'),'nolimit':!![]}):_0x1ae6a0[_0x30c0c5('0x2322')](_0x30c0c5('0x27c5'),{'id':_0x932441[_0x30c0c5('0x24cc')]()[_0x30c0c5('0x237f')],'section':_0x30c0c5('0x182e'),'mergeResources':!![],'fields':'id,name','channel':_0x30c0c5('0x1f60'),'nolimit':!![]});return _0x2bc132[_0x30c0c5('0x2788')](function(_0x3e27a5){const _0x5e62b9=_0x30c0c5;return _0x2bd7cc=_0x3e27a5,_0x1ae6a0['resolve'](_0x5e62b9('0x5bb'));})[_0x30c0c5('0x2788')](function(_0x478fab){const _0x545625=_0x30c0c5;if(_0x478fab)for(let _0xf348e8=0x0,_0x3944b4;_0xf348e8<_0x478fab[_0x545625('0x25df')]['length'];_0xf348e8+=0x1){_0x3944b4=_0x283545()[_0x545625('0x20e8')](_0x2bd7cc[_0x545625('0x25df')],{'id':_0x478fab['rows'][_0xf348e8]['id']}),_0x3944b4&&_0x283545()['merge'](_0x3944b4,_0x283545()[_0x545625('0x41b')](_0x478fab['rows'][_0xf348e8],[_0x545625('0x1eb6'),'total',_0x545625('0x1e8c'),'answered',_0x545625('0x17f6'),_0x545625('0x2198')]));}return _0x2bd7cc;});}],'userProfile':[_0x5bae86('0x1318'),_0x5bae86('0x1b04'),function(_0xd9d808,_0x1c7f16){const _0x382306=_0x5bae86;return _0xd9d808['resolve'](_0x382306('0x231d'),{'fields':'id,name,crudPermissions','id':_0x1c7f16['getCurrentUser']()[_0x382306('0x237f')]});}],'userProfileSection':[_0x5bae86('0x1318'),_0x5bae86('0x1b04'),function(_0x4019ee,_0x28b327){const _0x5ea3b6=_0x5bae86;return _0x4019ee[_0x5ea3b6('0x2322')](_0x5ea3b6('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x28b327['getCurrentUser']()[_0x5ea3b6('0x237f')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x5bae86('0x23f6')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x494'),[])[_0x34e79e('0x1a22')](_0x458786)[_0x34e79e('0xb44')](_0x34e79e('0x1e0d'),_0x34d7c8),_0x37c31d[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x37c31d(_0x21bab4,_0x3312f2){const _0x30987b=_0x34e79e;_0x21bab4[_0x30987b('0x249b')](_0x30987b('0xf53'),{'abstract':!![],'url':_0x30987b('0x3c4')}),_0x3312f2[_0x30987b('0x15ae')](_0x30987b('0xbf6'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0xf53'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),'angular-cron-jobs',_0x34e79e('0x1847'),'angularMaterialFormBuilder','material.components.expansionPanels',_0x34e79e('0x429'),_0x34e79e('0xe82'),'app.dashboards.general',_0x34e79e('0x494')])[_0x34e79e('0x1a22')](_0x37c31d);const _0x5ad24c=_0x18dd13['p']+_0x34e79e('0x62d'),_0x17423d=_0x18dd13['p']+_0x34e79e('0x4e7');_0x131d03['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document','$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x1713'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x131d03(_0x37c494,_0x2cb1d3,_0x56d357,_0x3c0e4b,_0x20f49e,_0x269213,_0x3b80ea,_0xa3dd67,_0x228f80,_0x5b8ce0,_0xc70b40,_0x2027bd,_0x18d112,_0x78f6fb,_0x497855,_0x5b4d67,_0xad8f20){const _0x2b67eb=_0x34e79e,_0x593c5e=this;_0x593c5e['license']=_0x5b4d67,_0x593c5e[_0x2b67eb('0x1af0')]=_0xad8f20,_0x593c5e[_0x2b67eb('0x9cb')]=_0x497855[_0x2b67eb('0x24cc')](),_0x593c5e['agents']=_0x228f80||{'count':0x0,'rows':[]},_0x593c5e['userProfile']=_0x5b8ce0,_0x593c5e[_0x2b67eb('0xec9')]=_0xc70b40&&_0xc70b40[_0x2b67eb('0x338')]==0x1?_0xc70b40[_0x2b67eb('0x25df')][0x0]:null,_0x593c5e['crudPermissions']=_0x497855[_0x2b67eb('0x157e')](_0x593c5e[_0x2b67eb('0xec9')]?_0x593c5e[_0x2b67eb('0xec9')][_0x2b67eb('0xe28')]:null),_0x593c5e[_0x2b67eb('0x26a9')]='agents',_0x593c5e['listOrder']='',_0x593c5e[_0x2b67eb('0x25e2')]=null,_0x593c5e[_0x2b67eb('0xc1b')]=[],_0x593c5e[_0x2b67eb('0x135a')]={'fields':_0x2b67eb('0x20a7'),'role':_0x2b67eb('0x188b'),'sort':_0x2b67eb('0x1cee'),'limit':0xa,'page':0x1},_0x593c5e['arrayshowWebBar']=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0x12cf'),'value':'0'},{'option':_0x2b67eb('0x11b6'),'value':'1'},{'option':_0x2b67eb('0x3ee'),'value':'2'}],function(_0x2fbc16){const _0x653ab7=_0x2b67eb;return _0x283545()['replace'](_0x2fbc16[_0x653ab7('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e['arraytransport']=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0x1316'),'value':_0x2b67eb('0x2448')},{'option':_0x2b67eb('0x1696'),'value':_0x2b67eb('0x1bdd')},{'option':'ws','value':_0x2b67eb('0x26c0'),'ngIf':_0x2b67eb('0x20e2')},{'option':_0x2b67eb('0x1a92'),'value':_0x2b67eb('0x1566'),'ngIf':_0x2b67eb('0x20e2')},{'option':_0x2b67eb('0x20c3'),'value':_0x2b67eb('0x1ecb'),'ngIf':_0x2b67eb('0x20e2')}],function(_0x19c391){const _0x1baeff=_0x2b67eb;return _0x283545()['replace'](_0x19c391[_0x1baeff('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e[_0x2b67eb('0x335')]=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0x16a7'),'value':_0x2b67eb('0x1a9b')},{'option':'comedia','value':_0x2b67eb('0x1025')},{'option':_0x2b67eb('0x2062'),'value':_0x2b67eb('0x640')},{'option':'no','value':_0x2b67eb('0x2363')},{'option':'never','value':_0x2b67eb('0x1c4')},{'option':'route','value':_0x2b67eb('0x2560')}],function(_0x344920){const _0x3a6d86=_0x2b67eb;return _0x283545()['replace'](_0x344920[_0x3a6d86('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e['arraytype']=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0xf71'),'value':_0x2b67eb('0xbd2')},{'option':_0x2b67eb('0x1832'),'value':_0x2b67eb('0x654')},{'option':'Peer','value':_0x2b67eb('0x1bb8')}],function(_0x3e0de9){const _0x2fee3c=_0x2b67eb;return _0x283545()[_0x2fee3c('0x10a4')](_0x3e0de9[_0x2fee3c('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e[_0x2b67eb('0x19b7')]=_0x283545()['keyBy']([{'option':'ulaw','value':_0x2b67eb('0x10fb')},{'option':'alaw','value':'\x27alaw\x27'},{'option':_0x2b67eb('0x14c1'),'value':_0x2b67eb('0x9d3')},{'option':_0x2b67eb('0xfc3'),'value':'\x27g722\x27'},{'option':'g729','value':_0x2b67eb('0x16a6')},{'option':'opus','value':_0x2b67eb('0x1d1a')},{'option':_0x2b67eb('0x8ea'),'value':_0x2b67eb('0xcc3')}],function(_0x51e247){const _0xc1a451=_0x2b67eb;return _0x283545()[_0xc1a451('0x10a4')](_0x51e247[_0xc1a451('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e[_0x2b67eb('0x275c')]=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0xb23'),'value':'\x27yes\x27'},{'option':'No','value':_0x2b67eb('0x2363')},{'option':_0x2b67eb('0x25e3'),'value':_0x2b67eb('0x1ac1')}],function(_0x5beb98){const _0x4ffa38=_0x2b67eb;return _0x283545()[_0x4ffa38('0x10a4')](_0x5beb98[_0x4ffa38('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e[_0x2b67eb('0x5b0')]=_0x283545()[_0x2b67eb('0x13cf')]([{'option':_0x2b67eb('0xeb1'),'value':'\x27\x27'},{'option':_0x2b67eb('0x1c99'),'value':_0x2b67eb('0x13f7')},{'option':'wav49','value':_0x2b67eb('0x1eba')},{'option':_0x2b67eb('0x14c1'),'value':_0x2b67eb('0x9d3')}],function(_0x2beaaa){const _0x192d39=_0x2b67eb;return _0x283545()['replace'](_0x2beaaa[_0x192d39('0x49')],new RegExp('\x27','g'),'');}),_0x593c5e[_0x2b67eb('0x1f7e')]=_0x2746ce,_0x593c5e[_0x2b67eb('0xde3')]=_0x144e71,_0x593c5e[_0x2b67eb('0x1e5')]=_0x1b8ce0,_0x593c5e[_0x2b67eb('0x173b')]=_0x1056ec,_0x593c5e[_0x2b67eb('0x19db')]=_0x1cec34,_0x593c5e[_0x2b67eb('0xead')]=_0x57e439,_0x593c5e[_0x2b67eb('0xb88')]=_0x1fd694,_0x593c5e[_0x2b67eb('0xccf')]=_0x1813a6,_0x593c5e[_0x2b67eb('0x264e')]=_0x233433,_0x593c5e[_0x2b67eb('0x7f2')]=_0x1bb265,_0x593c5e['selectAllAgents']=_0x36fc58;function _0x2746ce(_0x152876){const _0x13f165=_0x2b67eb;_0x56d357['go'](_0x13f165('0x229a'),{'id':_0x152876['id'],'agent':_0x152876,'crudPermissions':_0x593c5e[_0x13f165('0xe28')]});}function _0x144e71(_0x3c9f3d,_0xa46e90){const _0x222709=_0x2b67eb;_0x20f49e[_0x222709('0x2fa')]({'controller':'AgentteamaddController','controllerAs':'vm','templateUrl':_0x5ad24c,'parent':angular[_0x222709('0x16b1')](_0x269213[_0x222709('0x945')]),'targetEvent':_0xa46e90,'clickOutsideToClose':!![],'locals':{'agent':_0x3c9f3d,'agents':_0x593c5e[_0x222709('0x1713')]?_0x593c5e['agents']['rows']:[],'crudPermissions':_0x593c5e[_0x222709('0xe28')]}});}function _0x1b8ce0(_0x777034,_0x4b1d19){const _0x1b2060=_0x2b67eb,_0x2a719f=_0x20f49e['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()['startCase']('agent')+'?')[_0x1b2060('0x93e')](_0x1b2060('0x1670')+(_0x777034[_0x1b2060('0x1a8d')]||'agent')+_0x1b2060('0x229e')+_0x1b2060('0x27c7'))[_0x1b2060('0x10bc')](_0x1b2060('0xde0'))[_0x1b2060('0x24d0')](_0x4b1d19)['ok']('OK')[_0x1b2060('0x1801')](_0x1b2060('0x1d8d'));_0x20f49e[_0x1b2060('0x2fa')](_0x2a719f)[_0x1b2060('0x2788')](function(){_0x1fd694(_0x777034);},function(){const _0x5c6299=_0x1b2060;console[_0x5c6299('0x10df')](_0x5c6299('0x1d8d'));});}let _0x45b5b1=!![],_0x4d7ab7=0x1;_0x37c494['$watch'](_0x2b67eb('0x1569'),function(_0x22cda3,_0x5d0adb){const _0x7e00a7=_0x2b67eb;_0x45b5b1?_0x3b80ea(function(){_0x45b5b1=![];}):(!_0x5d0adb&&(_0x4d7ab7=_0x593c5e[_0x7e00a7('0x135a')]['page']),_0x22cda3!==_0x5d0adb&&(_0x593c5e[_0x7e00a7('0x135a')][_0x7e00a7('0x23f5')]=0x1),!_0x22cda3&&(_0x593c5e[_0x7e00a7('0x135a')]['page']=_0x4d7ab7),_0x593c5e[_0x7e00a7('0x19db')]());});function _0x1056ec(_0x14041d){_0x593c5e['agents']=_0x14041d||{'count':0x0,'rows':[]};}function _0x1cec34(){const _0x3a342d=_0x2b67eb;_0x593c5e[_0x3a342d('0x135a')]['offset']=(_0x593c5e[_0x3a342d('0x135a')][_0x3a342d('0x23f5')]-0x1)*_0x593c5e[_0x3a342d('0x135a')][_0x3a342d('0x68e')],_0x497855[_0x3a342d('0x1516')](_0x3a342d('0xe23'))?_0x593c5e['promise']=_0x2027bd['user'][_0x3a342d('0x1335')](_0x593c5e['query'],_0x1056ec)['$promise']:(_0x593c5e[_0x3a342d('0x135a')]['id']=_0x593c5e[_0x3a342d('0x63c')]['id'],_0x593c5e[_0x3a342d('0x135a')][_0x3a342d('0xb13')]=_0x3a342d('0x1f72'),_0x593c5e['promise']=_0x2027bd[_0x3a342d('0x63c')][_0x3a342d('0xa1')](_0x593c5e[_0x3a342d('0x135a')],_0x1056ec)[_0x3a342d('0x1714')]);}function _0x57e439(_0x2202b8,_0x548453){const _0x237836=_0x2b67eb;_0x20f49e[_0x237836('0x2fa')]({'controller':_0x237836('0x1634'),'controllerAs':'vm','templateUrl':_0x17423d,'parent':angular[_0x237836('0x16b1')](_0x269213[_0x237836('0x945')]),'targetEvent':_0x2202b8,'clickOutsideToClose':!![],'locals':{'agent':_0x548453,'agents':_0x593c5e[_0x237836('0x1713')][_0x237836('0x25df')],'license':_0x593c5e[_0x237836('0x130d')],'setting':_0x593c5e[_0x237836('0x1af0')],'crudPermissions':_0x593c5e[_0x237836('0xe28')]}});}function _0x1fd694(_0x59a217){const _0x1bf997=_0x2b67eb;_0x2027bd['user'][_0x1bf997('0x17c4')]({'id':_0x59a217['id']})[_0x1bf997('0x1714')][_0x1bf997('0x2788')](function(){const _0x9e26a4=_0x1bf997;_0x283545()[_0x9e26a4('0x1a90')](_0x593c5e['agents']['rows'],{'id':_0x59a217['id']}),_0x593c5e[_0x9e26a4('0x1713')][_0x9e26a4('0x338')]-=0x1,!_0x593c5e[_0x9e26a4('0x1713')][_0x9e26a4('0x25df')]['length']&&_0x593c5e[_0x9e26a4('0x19db')](),_0x78f6fb[_0x9e26a4('0x173b')]({'title':_0x283545()['startCase'](_0x9e26a4('0x262d'))+_0x9e26a4('0x20db'),'msg':_0x59a217['name']?_0x59a217[_0x9e26a4('0x1a8d')]+_0x9e26a4('0x14d4'):''});})[_0x1bf997('0x1cb5')](function(_0x17235b){const _0x5d4dcb=_0x1bf997;if(_0x17235b[_0x5d4dcb('0x11fc')]&&_0x17235b[_0x5d4dcb('0x11fc')][_0x5d4dcb('0x25be')]&&_0x17235b[_0x5d4dcb('0x11fc')]['errors'][_0x5d4dcb('0x2566')]){_0x593c5e['errors']=_0x17235b[_0x5d4dcb('0x11fc')][_0x5d4dcb('0x25be')]||[{'message':_0x17235b['toString'](),'type':_0x5d4dcb('0x361')}];for(let _0x463410=0x0;_0x463410<_0x17235b[_0x5d4dcb('0x11fc')][_0x5d4dcb('0x25be')][_0x5d4dcb('0x2566')];_0x463410++){_0x78f6fb[_0x5d4dcb('0x5e8')]({'title':_0x17235b[_0x5d4dcb('0x11fc')][_0x5d4dcb('0x25be')][_0x463410][_0x5d4dcb('0x1d7')],'msg':_0x17235b[_0x5d4dcb('0x11fc')][_0x5d4dcb('0x25be')][_0x463410][_0x5d4dcb('0x15e2')]});}}else _0x78f6fb[_0x5d4dcb('0x5e8')]({'title':_0x17235b[_0x5d4dcb('0x1b51')]?_0x5d4dcb('0x15d1')+_0x17235b[_0x5d4dcb('0x1b51')]+_0x5d4dcb('0x1b0b')+_0x17235b[_0x5d4dcb('0x22ce')]:_0x5d4dcb('0x361'),'msg':_0x17235b[_0x5d4dcb('0x11fc')]?JSON[_0x5d4dcb('0x1be0')](_0x17235b['data'][_0x5d4dcb('0x15e2')]):_0x17235b['message']||_0x17235b[_0x5d4dcb('0x17df')]()});});}function _0x1813a6(){const _0x326068=_0x2b67eb,_0x5c34da=angular[_0x326068('0x2669')](_0x593c5e['selectedAgents']);return _0x593c5e['selectedAgents']=[],_0x5c34da;}function _0x233433(_0x489aab){const _0x222e49=_0x2b67eb,_0xd9efae=_0x20f49e['confirm']()[_0x222e49('0x14e4')](_0x222e49('0xfb6'))['htmlContent'](_0x222e49('0x1670')+_0x593c5e[_0x222e49('0xc1b')][_0x222e49('0x2566')]+_0x222e49('0xbd')+_0x222e49('0x27c7'))['ariaLabel'](_0x222e49('0x14a3'))[_0x222e49('0x24d0')](_0x489aab)['ok']('OK')[_0x222e49('0x1801')]('CANCEL');_0x20f49e[_0x222e49('0x2fa')](_0xd9efae)[_0x222e49('0x2788')](function(){const _0x393e79=_0x222e49;_0x593c5e['selectedAgents'][_0x393e79('0x1534')](function(_0x3b44b0){_0x1fd694(_0x3b44b0);}),_0x593c5e[_0x393e79('0xc1b')]=[];});}function _0x1bb265(){const _0x422c5=_0x2b67eb;_0x593c5e[_0x422c5('0xc1b')]=[];}function _0x36fc58(){const _0xe53faf=_0x2b67eb;_0x593c5e[_0xe53faf('0xc1b')]=_0x593c5e['agents'][_0xe53faf('0x25df')];}}const _0x56268a=_0x131d03;_0x3d8109[_0x34e79e('0x2d9')]=['$scope','$state','$location',_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1713'),_0x34e79e('0x188b'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license','setting',_0x34e79e('0xe28')];function _0x3d8109(_0x19f76b,_0x2b07df,_0x55d212,_0x159304,_0x24f66f,_0x5ceeea,_0x2bcd4e,_0xfe6b91,_0x2d41cb,_0x3847e0,_0x5d263e,_0x71ee31,_0x338d85,_0x3c6f16){const _0x753e9d=_0x34e79e,_0x4c0e9b=this;_0x4c0e9b['currentUser']=_0x5d263e[_0x753e9d('0x24cc')](),_0x4c0e9b['errors']=[],_0x4c0e9b[_0x753e9d('0x1af0')]=_0x338d85,_0x4c0e9b['license']=_0x71ee31,_0x4c0e9b['crudPermissions']=_0x3c6f16,_0x4c0e9b[_0x753e9d('0x1193')]={},_0x4c0e9b[_0x753e9d('0x18ad')]=_0x4c0e9b[_0x753e9d('0x1af0')]&&_0x4c0e9b[_0x753e9d('0x1af0')][_0x753e9d('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c0e9b[_0x753e9d('0x14e4')]='STAFF.EDIT_AGENT',_0x4c0e9b[_0x753e9d('0x188b')]=angular[_0x753e9d('0x2669')](_0x2d41cb),_0x4c0e9b[_0x753e9d('0x1713')]=_0xfe6b91,_0x4c0e9b[_0x753e9d('0x803')]=![];!_0x4c0e9b['agent']&&(_0x4c0e9b[_0x753e9d('0x188b')]={'role':_0x753e9d('0x188b'),'showWebBar':'0','autointernal':!![],'type':_0x753e9d('0x5c8'),'context':'from-sip','phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x4c0e9b['title']=_0x753e9d('0xbb9'),_0x4c0e9b[_0x753e9d('0x803')]=!![]);_0x4c0e9b[_0x753e9d('0xcd9')]=_0x4699cf,_0x4c0e9b[_0x753e9d('0x674')]=_0x4f6d51,_0x4c0e9b[_0x753e9d('0xb88')]=_0x22f597,_0x4c0e9b[_0x753e9d('0x2601')]=_0x3527c0,_0x4c0e9b[_0x753e9d('0xca7')]=_0x271b90;function _0x4699cf(){const _0x46e08e=_0x753e9d;_0x4c0e9b[_0x46e08e('0x25be')]=[],_0x3847e0[_0x46e08e('0x1e6a')][_0x46e08e('0xbd0')](_0x4c0e9b['agent'])[_0x46e08e('0x1714')][_0x46e08e('0x2788')](function(_0x5aa70e){const _0x1d21bd=_0x46e08e;_0x4c0e9b[_0x1d21bd('0x1713')][_0x1d21bd('0xc51')](_0x5aa70e['toJSON']()),_0x2bcd4e[_0x1d21bd('0x173b')]({'title':_0x1d21bd('0x2695'),'msg':_0x4c0e9b[_0x1d21bd('0x188b')][_0x1d21bd('0x1a8d')]?_0x4c0e9b[_0x1d21bd('0x188b')]['name']+_0x1d21bd('0x1e4a'):''}),_0x271b90(_0x5aa70e);})['catch'](function(_0x29114f){const _0x2ffdfa=_0x46e08e;if(_0x29114f[_0x2ffdfa('0x11fc')]&&_0x29114f[_0x2ffdfa('0x11fc')][_0x2ffdfa('0x25be')]&&_0x29114f['data'][_0x2ffdfa('0x25be')][_0x2ffdfa('0x2566')]){_0x4c0e9b[_0x2ffdfa('0x25be')]=_0x29114f[_0x2ffdfa('0x11fc')][_0x2ffdfa('0x25be')]||[{'message':_0x29114f['toString'](),'type':_0x2ffdfa('0x2511')}];for(let _0x3e62bd=0x0;_0x3e62bd<_0x29114f[_0x2ffdfa('0x11fc')][_0x2ffdfa('0x25be')][_0x2ffdfa('0x2566')];_0x3e62bd+=0x1){_0x2bcd4e[_0x2ffdfa('0x5e8')]({'title':_0x29114f[_0x2ffdfa('0x11fc')]['errors'][_0x3e62bd][_0x2ffdfa('0x1d7')],'msg':_0x29114f[_0x2ffdfa('0x11fc')]['errors'][_0x3e62bd]['message']});}}else _0x2bcd4e[_0x2ffdfa('0x5e8')]({'title':_0x29114f[_0x2ffdfa('0x1b51')]?_0x2ffdfa('0x15d1')+_0x29114f[_0x2ffdfa('0x1b51')]+_0x2ffdfa('0x1b0b')+_0x29114f[_0x2ffdfa('0x22ce')]:_0x2ffdfa('0x2511'),'msg':_0x29114f[_0x2ffdfa('0x11fc')]?JSON[_0x2ffdfa('0x1be0')](_0x29114f[_0x2ffdfa('0x11fc')][_0x2ffdfa('0x15e2')]):_0x29114f[_0x2ffdfa('0x17df')]()});});}function _0x4f6d51(){const _0x50bbf1=_0x753e9d;_0x4c0e9b[_0x50bbf1('0x25be')]=[],_0x3847e0[_0x50bbf1('0x1e6a')][_0x50bbf1('0x2740')]({'id':_0x4c0e9b[_0x50bbf1('0x188b')]['id']},_0x4c0e9b['agent'])['$promise'][_0x50bbf1('0x2788')](function(_0x5d6b2f){const _0x502986=_0x50bbf1,_0x211629=_0x283545()[_0x502986('0x20e8')](_0x4c0e9b[_0x502986('0x1713')],{'id':_0x5d6b2f['id']});_0x211629&&_0x283545()[_0x502986('0x2503')](_0x211629,_0x283545()[_0x502986('0x41b')](_0x5d6b2f['toJSON'](),_0x283545()[_0x502986('0x2163')](_0x211629))),_0x2bcd4e['success']({'title':_0x502986('0x2552'),'msg':_0x4c0e9b[_0x502986('0x188b')][_0x502986('0x1a8d')]?_0x4c0e9b['agent'][_0x502986('0x1a8d')]+_0x502986('0x24cf'):''}),_0x271b90(_0x5d6b2f);})[_0x50bbf1('0x1cb5')](function(_0xd12795){const _0x43954e=_0x50bbf1;if(_0xd12795[_0x43954e('0x11fc')]&&_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')]&&_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')][_0x43954e('0x2566')]){_0x4c0e9b[_0x43954e('0x25be')]=_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')]||[{'message':_0xd12795[_0x43954e('0x17df')](),'type':_0x43954e('0x863')}];for(let _0x51081c=0x0;_0x51081c<_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')][_0x43954e('0x2566')];_0x51081c++){_0x2bcd4e[_0x43954e('0x5e8')]({'title':_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')][_0x51081c][_0x43954e('0x1d7')],'msg':_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x25be')][_0x51081c][_0x43954e('0x15e2')]});}}else _0x2bcd4e[_0x43954e('0x5e8')]({'title':_0xd12795['status']?_0x43954e('0x15d1')+_0xd12795['status']+_0x43954e('0x1b0b')+_0xd12795[_0x43954e('0x22ce')]:'api.user.update','msg':_0xd12795[_0x43954e('0x11fc')]?JSON[_0x43954e('0x1be0')](_0xd12795[_0x43954e('0x11fc')][_0x43954e('0x15e2')]):_0xd12795['toString']()});});}function _0x22f597(_0x2d3ada){const _0x54cb07=_0x753e9d;_0x4c0e9b[_0x54cb07('0x25be')]=[];const _0x2ebb44=_0x159304['confirm']()[_0x54cb07('0x14e4')]('Are\x20you\x20sure?')[_0x54cb07('0x1c98')]('The\x20agent\x20will\x20be\x20deleted.')[_0x54cb07('0x10bc')](_0x54cb07('0x2111'))['ok']('Delete')[_0x54cb07('0x1801')](_0x54cb07('0x1481'))[_0x54cb07('0x24d0')](_0x2d3ada);_0x159304[_0x54cb07('0x2fa')](_0x2ebb44)[_0x54cb07('0x2788')](function(){const _0x3d4348=_0x54cb07;_0x3847e0[_0x3d4348('0x1e6a')]['delete']({'id':_0x4c0e9b[_0x3d4348('0x188b')]['id']})['$promise'][_0x3d4348('0x2788')](function(){const _0x179f5f=_0x3d4348;_0x283545()[_0x179f5f('0x1a90')](_0x4c0e9b[_0x179f5f('0x1713')],{'id':_0x4c0e9b[_0x179f5f('0x188b')]['id']}),_0x2bcd4e[_0x179f5f('0x173b')]({'title':_0x179f5f('0x920'),'msg':(_0x4c0e9b[_0x179f5f('0x188b')][_0x179f5f('0x1a8d')]||'agent')+_0x179f5f('0x14d4')}),_0x271b90(_0x4c0e9b['agent']);})[_0x3d4348('0x1cb5')](function(_0x1f2dcb){const _0xd6a3f8=_0x3d4348;if(_0x1f2dcb[_0xd6a3f8('0x11fc')]&&_0x1f2dcb[_0xd6a3f8('0x11fc')]['errors']&&_0x1f2dcb[_0xd6a3f8('0x11fc')][_0xd6a3f8('0x25be')][_0xd6a3f8('0x2566')]){_0x4c0e9b[_0xd6a3f8('0x25be')]=_0x1f2dcb[_0xd6a3f8('0x11fc')][_0xd6a3f8('0x25be')]||[{'message':_0x1f2dcb[_0xd6a3f8('0x17df')](),'type':'api.user.delete'}];for(let _0x4ab0e1=0x0;_0x4ab0e1<_0x1f2dcb[_0xd6a3f8('0x11fc')][_0xd6a3f8('0x25be')][_0xd6a3f8('0x2566')];_0x4ab0e1++){_0x2bcd4e[_0xd6a3f8('0x5e8')]({'title':_0x1f2dcb[_0xd6a3f8('0x11fc')][_0xd6a3f8('0x25be')][_0x4ab0e1][_0xd6a3f8('0x1d7')],'msg':_0x1f2dcb['data'][_0xd6a3f8('0x25be')][_0x4ab0e1]['message']});}}else _0x2bcd4e[_0xd6a3f8('0x5e8')]({'title':_0x1f2dcb['status']?_0xd6a3f8('0x15d1')+_0x1f2dcb['status']+_0xd6a3f8('0x1b0b')+_0x1f2dcb['statusText']:_0xd6a3f8('0x1f27'),'msg':_0x1f2dcb['data']?JSON[_0xd6a3f8('0x1be0')](_0x1f2dcb[_0xd6a3f8('0x11fc')][_0xd6a3f8('0x15e2')]):_0x1f2dcb[_0xd6a3f8('0x15e2')]||_0x1f2dcb[_0xd6a3f8('0x17df')]()});});},function(){});}function _0x3527c0(_0x2662c9){return _0x2662c9===null?undefined:new Date(_0x2662c9);}function _0x271b90(_0xde28a2){_0x159304['hide'](_0xde28a2);}}const _0x129811=_0x3d8109;_0x2c3a80[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0xd57')];function _0x2c3a80(_0x3b5d3a,_0x530d7f){const _0x1aea23=_0x34e79e,_0xd79b75=this,_0x316f4=0x8,_0x2a73e9=_0x316f4*0x400*0x400;_0xd79b75[_0x1aea23('0x188b')]={},_0xd79b75[_0x1aea23('0xe28')],_0xd79b75['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2a73e9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xd79b75[_0x1aea23('0x2793')]={'flow':{}},_0xd79b75['dropping']=![],_0xd79b75[_0x1aea23('0x1573')]=_0x6d2ec,_0xd79b75[_0x1aea23('0x1b63')]=_0x1c907a,_0xd79b75[_0x1aea23('0xc41')]=_0x228d67,_0xd79b75[_0x1aea23('0x24eb')]=_0x5d04d4;function _0x5d04d4(_0x4579ba,_0x2e0cb4){const _0x34343d=_0x1aea23;_0xd79b75[_0x34343d('0x188b')]=angular['copy'](_0x4579ba),_0xd79b75[_0x34343d('0xe28')]=typeof _0x2e0cb4!==_0x34343d('0xedb')?_0x2e0cb4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd79b75['ngFlowOptions'][_0x34343d('0x159c')]='api/users/'+_0xd79b75[_0x34343d('0x188b')]['id']+_0x34343d('0xc1c'),_0xd79b75[_0x34343d('0x188b')][_0x34343d('0x17d5')]=[];}function _0x6d2ec(_0x331849){const _0x3c85a2=_0x1aea23,_0x511b71=[_0x3c85a2('0x170a'),_0x3c85a2('0xec2')];if(!_0x283545()['includes'](_0x511b71,_0x331849['getExtension']()))return _0x530d7f[_0x3c85a2('0x5e8')]({'title':_0x3c85a2('0x425')+_0x331849['getExtension'](),'msg':_0x3c85a2('0x250c')+_0x511b71[_0x3c85a2('0x185f')]()}),![];if(_0x331849[_0x3c85a2('0x634')]>_0x2a73e9)return _0x530d7f['error']({'title':_0x3c85a2('0x6e8'),'msg':_0x3c85a2('0x232c')+_0x316f4+'MB'}),![];const _0x120763={'id':_0x331849[_0x3c85a2('0x7c8')],'file':_0x331849,'type':_0x3c85a2('0x1c20')};return _0xd79b75[_0x3c85a2('0x188b')][_0x3c85a2('0x17d5')][_0x3c85a2('0xc51')](_0x120763),!![];}function _0x1c907a(){const _0x1f4cb8=_0x1aea23;_0xd79b75[_0x1f4cb8('0x2793')][_0x1f4cb8('0x8a4')][_0x1f4cb8('0xcc6')][_0x1f4cb8('0x186d')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1f4cb8('0xf2f')+_0x3b5d3a['get'](_0x1f4cb8('0x2eb'))},_0xd79b75[_0x1f4cb8('0x2793')][_0x1f4cb8('0x8a4')][_0x1f4cb8('0x1b63')]();}function _0x228d67(_0x97377f){const _0x2fd13f=_0x1aea23;angular[_0x2fd13f('0x1534')](_0xd79b75[_0x2fd13f('0x188b')][_0x2fd13f('0x17d5')],function(_0x27b089){const _0x2157ea=_0x2fd13f;if(_0x27b089['id']===_0x97377f[_0x2157ea('0x7c8')]){const _0x36f8f4=new FileReader();_0x36f8f4[_0x2157ea('0x1ccc')](_0x27b089['file'][_0x2157ea('0x3d5')]),_0x36f8f4[_0x2157ea('0x2468')]=function(_0x1acc4e){const _0x209633=_0x2157ea;_0x27b089[_0x209633('0x1672')]=_0x1acc4e['target']['result'];},_0x27b089[_0x2157ea('0x1d7')]=_0x2157ea('0x157f');}});}}const _0x4d038c=_0x2c3a80;_0x2c4b2a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'agent','setting','Auth'];function _0x2c4b2a(_0x117ab5,_0x6b0e7b,_0x1f08a3,_0x4e37ba,_0x568b31,_0x1c9739,_0x15f9f9){const _0x2421ea=_0x34e79e,_0x3a5614=this;_0x3a5614[_0x2421ea('0x9cb')]=_0x15f9f9['getCurrentUser'](),_0x3a5614['errors']=[],_0x3a5614[_0x2421ea('0x1af0')]=_0x1c9739,_0x3a5614['passwordPattern']=_0x3a5614[_0x2421ea('0x1af0')][_0x2421ea('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a5614[_0x2421ea('0x188b')]=_0x568b31,_0x3a5614[_0x2421ea('0xad8')]='',_0x3a5614[_0x2421ea('0x2380')]='',_0x3a5614[_0x2421ea('0x181f')]=_0x573399,_0x3a5614[_0x2421ea('0xca7')]=_0x207b9d,_0x117ab5[_0x2421ea('0x1662')](_0x2421ea('0x1add'),function(_0x2f1a9d){const _0x3f9674=_0x2421ea;!_0x283545()['isNil'](_0x3a5614[_0x3f9674('0x2380')])&&(_0x2f1a9d===_0x3a5614[_0x3f9674('0x2380')]?_0x117ab5[_0x3f9674('0x2684')][_0x3f9674('0xad8')][_0x3f9674('0x22a2')](_0x3f9674('0xb2a'),![]):_0x117ab5[_0x3f9674('0x2684')][_0x3f9674('0xad8')][_0x3f9674('0x22a2')]('oldPasswordMatch',!![]));});function _0x573399(){const _0x5397b6=_0x2421ea;_0x3a5614[_0x5397b6('0x25be')]=[];const _0x415b56={'id':_0x3a5614[_0x5397b6('0x188b')]['id'],'newPassword':_0x3a5614['password']};_0x3a5614[_0x5397b6('0x9cb')]['id']==_0x3a5614[_0x5397b6('0x188b')]['id']&&(_0x415b56[_0x5397b6('0x2380')]=_0x3a5614[_0x5397b6('0x2380')]),_0x4e37ba[_0x5397b6('0x1e6a')][_0x5397b6('0x73b')](_0x415b56)[_0x5397b6('0x1714')]['then'](function(){const _0x343a4f=_0x5397b6;_0x1f08a3[_0x343a4f('0x173b')]({'title':_0x343a4f('0x3d1')}),_0x207b9d();})[_0x5397b6('0x1cb5')](function(_0x1415cc){const _0x478ae3=_0x5397b6;_0x1f08a3[_0x478ae3('0x5e8')]({'title':_0x1415cc[_0x478ae3('0x1b51')]?'API:'+_0x1415cc[_0x478ae3('0x1b51')]+_0x478ae3('0x1b0b')+_0x1415cc['statusText']:_0x478ae3('0x9b3'),'msg':_0x1415cc[_0x478ae3('0x11fc')]?JSON[_0x478ae3('0x1be0')](_0x1415cc[_0x478ae3('0x11fc')][_0x478ae3('0x15e2')]):_0x1415cc[_0x478ae3('0x17df')]()}),_0x3a5614[_0x478ae3('0x25be')]=_0x1415cc[_0x478ae3('0x11fc')]['errors']||[{'message':_0x1415cc[_0x478ae3('0x17df')](),'type':_0x478ae3('0xb12')}];});}function _0x207b9d(){_0x6b0e7b['hide']();}}const _0x380b1a=_0x2c4b2a;_0x1b3c95['$inject']=['$document','$mdDialog',_0x34e79e('0x519'),_0x34e79e('0x3de'),'toasty'];function _0x1b3c95(_0x3aafe1,_0x3d967a,_0x538b91,_0x4ed9d1,_0x249c17){const _0x36d1f3=_0x34e79e,_0x33750e=this;_0x33750e[_0x36d1f3('0x188b')]={},_0x33750e[_0x36d1f3('0x24ce')]=_0x4ed9d1['getNavigation'](),_0x33750e[_0x36d1f3('0xe28')],_0x33750e[_0x36d1f3('0x24eb')]=_0x196243,_0x33750e['onChange']=_0x10821e;function _0x196243(_0x40c9a7,_0x3ae31f){const _0x1e2114=_0x36d1f3;_0x33750e[_0x1e2114('0x188b')]=_0x40c9a7,_0x33750e[_0x1e2114('0xe28')]=typeof _0x3ae31f!==_0x1e2114('0xedb')?_0x3ae31f:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x10821e(_0x34e7b6,_0x25561e){const _0xd07e54=_0x36d1f3,_0xbcfc8b=_0x25561e||_0x34e7b6;if(_0xbcfc8b[_0xd07e54('0x14f4')]){if(_0x25561e)_0x25561e[_0xd07e54('0x14f4')]=!![],_0x33750e['agent'][_0xd07e54('0x1167')][_0xd07e54('0x13e3')](_0x25561e['id']);else for(let _0x3616d6=0x0;_0x3616d6<_0x34e7b6[_0xd07e54('0x17e1')][_0xd07e54('0x2566')];_0x3616d6++){_0x34e7b6[_0xd07e54('0x17e1')][_0x3616d6][_0xd07e54('0x14f4')]=!![],_0x33750e[_0xd07e54('0x188b')]['permissions']['push'](_0x34e7b6[_0xd07e54('0x17e1')][_0x3616d6]['id']);}_0x34e7b6[_0xd07e54('0x14f4')]=!![],_0x33750e['agent'][_0xd07e54('0x1167')]['push'](_0x34e7b6['id']);}else{if(_0x25561e)_0x25561e[_0xd07e54('0x14f4')]=![],_0x283545()[_0xd07e54('0x1a90')](_0x33750e[_0xd07e54('0x188b')][_0xd07e54('0x1167')],function(_0x261751){return _0x25561e['id']===_0x261751;}),_0x283545()['filter'](_0x34e7b6[_0xd07e54('0x17e1')],{'enabled':![]})[_0xd07e54('0x2566')]===_0x34e7b6[_0xd07e54('0x17e1')][_0xd07e54('0x2566')]&&(_0x34e7b6[_0xd07e54('0x14f4')]=![],_0x283545()[_0xd07e54('0x1a90')](_0x33750e[_0xd07e54('0x188b')]['permissions'],function(_0x3ae5a5){return _0x34e7b6['id']===_0x3ae5a5;}));else{_0x34e7b6[_0xd07e54('0x14f4')]=![],_0x283545()[_0xd07e54('0x1a90')](_0x33750e[_0xd07e54('0x188b')][_0xd07e54('0x1167')],function(_0x1aeb9d){return _0x34e7b6['id']===_0x1aeb9d;});for(let _0x558db0=0x0;_0x558db0<_0x34e7b6[_0xd07e54('0x17e1')][_0xd07e54('0x2566')];_0x558db0++){_0x34e7b6[_0xd07e54('0x17e1')][_0x558db0][_0xd07e54('0x14f4')]=![],_0x283545()[_0xd07e54('0x1a90')](_0x33750e['agent'][_0xd07e54('0x1167')],function(_0x2e6f61){return _0x34e7b6['children'][_0x558db0]['id']===_0x2e6f61;});}}}return _0x538b91[_0xd07e54('0x1e6a')][_0xd07e54('0x2740')]({'id':_0x33750e['agent']['id'],'permissions':_0x283545()[_0xd07e54('0xe4a')](_0x33750e['agent'][_0xd07e54('0x1167')])})[_0xd07e54('0x1714')]['then'](function(){const _0x562a09=_0xd07e54;_0x249c17[_0x562a09('0x173b')]({'title':_0x562a09('0x1be9'),'msg':_0x33750e[_0x562a09('0x188b')][_0x562a09('0x1a8d')]?_0x33750e['agent'][_0x562a09('0x1a8d')]+_0x562a09('0x6f8'):''});})[_0xd07e54('0x1cb5')](function(_0x5c5e03){const _0x5ea374=_0xd07e54;console[_0x5ea374('0x5e8')](_0x5c5e03);});}}const _0x246cb7=_0x1b3c95;_0x582e92[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x188b'),_0x34e79e('0x2645'),_0x34e79e('0x7c3'),'$translate',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x582e92(_0x398b33,_0x4a50e6,_0x43d08f,_0x3c762b,_0x49791b,_0x1da317,_0x4d8d5e,_0x56a6c0,_0x3962e8,_0x32ac15){const _0x477c89=_0x34e79e,_0xf527c9=this;_0xf527c9['currentUser']=_0x3962e8[_0x477c89('0x24cc')](),_0xf527c9['agent']=_0x49791b,_0xf527c9[_0x477c89('0xe28')]=_0x32ac15,_0xf527c9['penalty']=0x0,_0xf527c9['channel']=_0x1da317,_0xf527c9[_0x477c89('0x7c3')]=_0x4d8d5e,_0xf527c9[_0x477c89('0x2204')]=_0xf527c9[_0x477c89('0x2645')]+_0x477c89('0x107f'),_0xf527c9[_0x477c89('0x14e4')]=_0x56a6c0[_0x477c89('0x1b11')]('STAFF.QUEUEADD_AGENT_'+_0xf527c9['channel']['toUpperCase']()+'_'+_0xf527c9[_0x477c89('0x7c3')][_0x477c89('0x25e6')]()),_0xf527c9[_0x477c89('0x117b')]=[],_0xf527c9[_0x477c89('0x73d')]=[],_0xf527c9[_0x477c89('0x283f')]=[],_0xf527c9[_0x477c89('0x12d9')]=[],_0xf527c9[_0x477c89('0xd0d')]=[],_0xf527c9[_0x477c89('0x2677')]=![],_0xf527c9['dualMultiselectOptions']={'readOnly':!_0xf527c9['crudPermissions'][_0x477c89('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x477c89('0x1a8d'),'line2':_0x477c89('0x1d7'),'line3':_0xf527c9[_0x477c89('0x2645')]===_0x477c89('0x1f60')?_0x477c89('0x1ab'):'','labelAll':_0x56a6c0[_0x477c89('0x1b11')](_0x477c89('0x13b2')+_0xf527c9[_0x477c89('0x2645')]['toUpperCase']()+'_'+_0xf527c9[_0x477c89('0x7c3')][_0x477c89('0x25e6')]()),'labelSelected':_0x56a6c0[_0x477c89('0x1b11')](_0x477c89('0x1f19')+_0xf527c9['channel'][_0x477c89('0x25e6')]()+'_'+_0xf527c9[_0x477c89('0x7c3')][_0x477c89('0x25e6')]()),'transferCallback':function(_0x3a229c,_0x585041){const _0x63fe9e=_0x477c89;_0x585041?_0x3a229c[_0x63fe9e('0x1534')](function(_0x4e9247){const _0x3386d1=_0x63fe9e;_0x4e9247[_0x3386d1('0x1ab')]=undefined;}):_0x3a229c[_0x63fe9e('0x1534')](function(_0x4a6516){const _0x4216f2=_0x63fe9e;_0x4a6516[_0x4216f2('0x1ab')]=_0x4216f2('0x1b9d')+_0xf527c9[_0x4216f2('0x1ab')];});const _0x82c883=_0x283545()[_0x63fe9e('0x265d')](_0xf527c9[_0x63fe9e('0xd0d')],_0xf527c9[_0x63fe9e('0x283f')],function(_0x58e4db,_0x3566eb){const _0x194681=_0x63fe9e;return _0x58e4db['id']===_0x3566eb['id']&&_0x58e4db[_0x194681('0x1ab')]===_0x3566eb['penalty'];});_0xf527c9['pendingChanges']=_0x283545()[_0x63fe9e('0x213d')](_0x82c883)?![]:!![];}},_0xf527c9[_0x477c89('0x122e')]=_0x664170,_0xf527c9[_0x477c89('0x72d')]=_0x82240c,_0xf527c9[_0x477c89('0xca7')]=_0x2deff8;function _0x664170(){const _0x5cf78c=_0x477c89;return _0x3962e8[_0x5cf78c('0x1516')](_0x5cf78c('0xe23'))?_0x25c2cf()[_0x5cf78c('0x1cb5')](function(_0x2056e6){const _0x229151=_0x5cf78c;_0x43d08f[_0x229151('0x5e8')]({'title':_0x2056e6[_0x229151('0x1b51')]?_0x229151('0x15d1')+_0x2056e6[_0x229151('0x1b51')]+_0x229151('0x1b0b')+_0x2056e6['statusText']:'SYSTEM:GET_QUEUES','msg':_0x2056e6['status']?JSON[_0x229151('0x1be0')](_0x2056e6[_0x229151('0x11fc')]):_0x2056e6['toString']()});}):_0x17ecd8()['then'](function(_0x1d66b1){const _0xfc6e22=_0x5cf78c;return _0xf527c9[_0xfc6e22('0xb13')]=_0x1d66b1,_0x25c2cf();})[_0x5cf78c('0x1cb5')](function(_0x1a91c0){const _0x157b1d=_0x5cf78c;_0x43d08f[_0x157b1d('0x5e8')]({'title':_0x1a91c0[_0x157b1d('0x1b51')]?_0x157b1d('0x15d1')+_0x1a91c0[_0x157b1d('0x1b51')]+_0x157b1d('0x1b0b')+_0x1a91c0[_0x157b1d('0x22ce')]:_0x157b1d('0x2763'),'msg':_0x1a91c0[_0x157b1d('0x1b51')]?JSON[_0x157b1d('0x1be0')](_0x1a91c0[_0x157b1d('0x11fc')]):_0x1a91c0['toString']()});});}function _0x17ecd8(){return _0x4a50e6(function(_0x2e3df1,_0x5a3a15){const _0x38d47d=a0_0x14e7;let _0x40d697;switch(_0xf527c9[_0x38d47d('0x2645')]){case _0x38d47d('0x1f60'):switch(_0xf527c9[_0x38d47d('0x7c3')]){case'inbound':_0x40d697=_0x38d47d('0x182e');break;case _0x38d47d('0x1'):_0x40d697=_0x38d47d('0x1530');break;}break;case _0x38d47d('0x231'):_0x40d697=_0x38d47d('0x12c2');break;case'mail':_0x40d697='MailQueues';break;case _0x38d47d('0x529'):_0x40d697=_0x38d47d('0x1a3c');break;case'openchannel':_0x40d697=_0x38d47d('0x2080');break;case _0x38d47d('0x10cf'):_0x40d697=_0x38d47d('0x1d6d');break;}_0x3c762b[_0x38d47d('0xec9')][_0x38d47d('0x1335')]({'userProfileId':_0xf527c9['currentUser'][_0x38d47d('0x237f')],'name':_0x40d697})[_0x38d47d('0x1714')][_0x38d47d('0x2788')](function(_0xe3bdf8){const _0x131fb0=_0x38d47d,_0x9bc39a=_0xe3bdf8&&_0xe3bdf8['rows']?_0xe3bdf8[_0x131fb0('0x25df')][0x0]:null;_0x2e3df1(_0x9bc39a);})[_0x38d47d('0x1cb5')](function(_0x1773bd){_0x5a3a15(_0x1773bd);});});}function _0x25c2cf(){return _0x4a50e6(function(_0x1e7d28,_0x53d7db){const _0x5e811a=a0_0x14e7;return _0x45c9bd()[_0x5e811a('0x2788')](function(_0xb0471d){const _0x2edb8a=_0x5e811a;return _0xf527c9[_0x2edb8a('0x117b')]=_0xb0471d[_0x2edb8a('0x25df')]?_0xb0471d[_0x2edb8a('0x25df')]:[],_0x3962e8['hasRole'](_0x2edb8a('0xe23'))?_0xb0471d:_0xf527c9[_0x2edb8a('0xb13')]?_0xf527c9[_0x2edb8a('0xb13')][_0x2edb8a('0x1c0a')]?_0xb0471d:_0x290d1f():null;})[_0x5e811a('0x2788')](function(_0x350c90){const _0x514dd3=_0x5e811a,_0x1209d4=_0x350c90&&_0x350c90[_0x514dd3('0x25df')]?_0x350c90[_0x514dd3('0x25df')]:[];return _0xf527c9[_0x514dd3('0x73d')]=_0x283545()[_0x514dd3('0x155d')](_0x1209d4,function(_0x325b39){const _0x42f180=_0x514dd3;return _0x283545()['find'](_0xf527c9[_0x42f180('0x117b')],{'id':_0x3962e8['hasRole'](_0x42f180('0xe23'))||_0xf527c9[_0x42f180('0xb13')]['autoAssociation']?_0x325b39['id']:_0x325b39[_0x42f180('0x2707')]});}),_0xf527c9['startingAllowedItems']=angular[_0x514dd3('0x2669')](_0xf527c9[_0x514dd3('0x73d')]),_0xf527c9[_0x514dd3('0x117b')][_0x514dd3('0x1534')](function(_0x20b782){const _0x49d318=_0x514dd3,_0x4e8dce=_0x283545()[_0x49d318('0x20e8')](_0xf527c9['allowedItems'],{'id':_0x20b782['id']});_0x3962e8[_0x49d318('0x1516')](_0x49d318('0xe23'))?_0x20b782[_0x49d318('0x68d')]=!![]:_0x20b782[_0x49d318('0x68d')]=typeof _0x4e8dce!==_0x49d318('0xedb')?!![]:![];}),_0x12cd59();})[_0x5e811a('0x2788')](function(_0x4d86b5){const _0x5daedd=_0x5e811a,_0x1da5d5=_0x4d86b5&&_0x4d86b5[_0x5daedd('0x25df')]?_0x4d86b5[_0x5daedd('0x25df')]:[];_0xf527c9[_0x5daedd('0x283f')]=_0x283545()['map'](_0x1da5d5,function(_0x1d5029){const _0xa84a52=_0x5daedd,_0xe8a452=_0x283545()[_0xa84a52('0x20e8')](_0xf527c9[_0xa84a52('0x117b')],{'id':_0x1d5029['id']});return _0xf527c9[_0xa84a52('0x2645')]===_0xa84a52('0x1f60')&&(_0xe8a452[_0xa84a52('0x1ab')]=typeof _0xe8a452!==_0xa84a52('0xedb')&&typeof _0x1d5029[_0xa84a52('0x2fe')]!==_0xa84a52('0xedb')?_0xa84a52('0x1b9d')+_0x1d5029[_0xa84a52('0x2fe')][_0xa84a52('0x1ab')]:_0xa84a52('0x1b9d')+0x0),_0xe8a452;}),_0xf527c9[_0x5daedd('0xd0d')]=angular[_0x5daedd('0x2669')](_0xf527c9['selectedItems']),_0xf527c9[_0x5daedd('0x121')][_0x5daedd('0x283f')]=_0xf527c9[_0x5daedd('0x283f')],_0xf527c9[_0x5daedd('0x121')][_0x5daedd('0x117b')]=_0x283545()['differenceBy'](_0xf527c9[_0x5daedd('0x73d')],_0xf527c9['dualMultiselectOptions']['selectedItems'],'id'),_0x1e7d28();})[_0x5e811a('0x1cb5')](function(_0x4bbc9e){_0x53d7db(_0x4bbc9e);});});}function _0x290d1f(){return _0x4a50e6(function(_0x579762,_0x4d150d){const _0x59c5a2=a0_0x14e7;return _0x3c762b[_0x59c5a2('0x1050')][_0x59c5a2('0x1335')]({'sectionId':_0xf527c9[_0x59c5a2('0xb13')]['id'],'nolimit':!![]})['$promise'][_0x59c5a2('0x2788')](function(_0x310673){_0x579762(_0x310673);})[_0x59c5a2('0x1cb5')](function(_0x12cab1){_0x4d150d(_0x12cab1);});});}function _0x12cd59(){return _0x4a50e6(function(_0x2c9ea7,_0x13427d){const _0x18aa4b=a0_0x14e7;return _0x3c762b[_0x18aa4b('0x1e6a')]['getQueues']({'id':_0xf527c9[_0x18aa4b('0x188b')]['id'],'fields':_0x18aa4b('0x1d0'),'nolimit':!![],'type':_0xf527c9[_0x18aa4b('0x7c3')],'channel':_0xf527c9['channel']})[_0x18aa4b('0x1714')][_0x18aa4b('0x2788')](function(_0x42be5a){_0x2c9ea7(_0x42be5a);})[_0x18aa4b('0x1cb5')](function(_0x2ffcf1){_0x13427d(_0x2ffcf1);});});}function _0x45c9bd(){return _0x4a50e6(function(_0x39f23c,_0x16dc4c){const _0x3741e3=a0_0x14e7;return _0x3c762b[_0xf527c9[_0x3741e3('0x2204')]][_0x3741e3('0x1335')]({'fields':_0x3741e3('0x1414'),'channel':_0xf527c9[_0x3741e3('0x2645')]===_0x3741e3('0x2533')?_0x3741e3('0x1f60'):_0xf527c9['channel'],'type':_0xf527c9[_0x3741e3('0x7c3')],'nolimit':!![]})[_0x3741e3('0x1714')]['then'](function(_0x5890bf){_0x39f23c(_0x5890bf);})[_0x3741e3('0x1cb5')](function(_0x48d367){_0x16dc4c(_0x48d367);});});}function _0x9597e1(_0x5ccfd6){return _0x4a50e6(function(_0x311c08,_0x5ba0d9){const _0x1506d4=a0_0x14e7;if(_0x283545()['isEmpty'](_0x5ccfd6))_0x311c08();else{if(_0xf527c9[_0x1506d4('0x2645')]===_0x1506d4('0x1f60')){const _0x1e3050=[],_0x13861c=_0x283545()[_0x1506d4('0x1d6c')](_0x5ccfd6,_0x1506d4('0x1ab'));for(let _0x3d65ba=0x0;_0x3d65ba':'',_0xd1212f;}),_0x4cca6f[_0x52c67c('0xd0d')]=angular[_0x52c67c('0x2669')](_0x4cca6f[_0x52c67c('0x283f')]),_0x4cca6f['dualMultiselectOptions']['selectedItems']=_0x4cca6f[_0x52c67c('0x283f')],_0x4cca6f[_0x52c67c('0x121')]['items']=_0x283545()[_0x52c67c('0x432')](_0x4cca6f[_0x52c67c('0x73d')],_0x4cca6f[_0x52c67c('0x121')][_0x52c67c('0x283f')],'id'),_0x2f8b63();})['catch'](function(_0x5c33fb){_0x222dd3(_0x5c33fb);});});}function _0x41063e(){return _0x607e13(function(_0x531a40,_0x30f3a8){const _0x353ed4=a0_0x14e7;return _0x181e54[_0x353ed4('0x1050')]['get']({'sectionId':_0x4cca6f[_0x353ed4('0xb13')]['id'],'nolimit':!![]})[_0x353ed4('0x1714')][_0x353ed4('0x2788')](function(_0x1eab94){_0x531a40(_0x1eab94);})[_0x353ed4('0x1cb5')](function(_0x17acaa){_0x30f3a8(_0x17acaa);});});}function _0x24317a(){return _0x607e13(function(_0x1f647c,_0x2a16ad){const _0x58db87=a0_0x14e7;return _0x181e54[_0x58db87('0x421')][_0x58db87('0x19db')]({'id':_0x4cca6f[_0x58db87('0x421')]['id'],'fields':_0x58db87('0x1d32'),'nolimit':!![],'role':_0x58db87('0x188b')})[_0x58db87('0x1714')][_0x58db87('0x2788')](function(_0x25fe88){_0x1f647c(_0x25fe88);})['catch'](function(_0x8eb59b){_0x2a16ad(_0x8eb59b);});});}function _0x4f3b2d(){return _0x607e13(function(_0x53b81d,_0x2149d4){const _0x12496a=a0_0x14e7;return _0x181e54[_0x12496a('0x1e6a')][_0x12496a('0x1335')]({'fields':_0x12496a('0x1d32'),'nolimit':!![],'role':_0x12496a('0x188b')})[_0x12496a('0x1714')][_0x12496a('0x2788')](function(_0x187096){_0x53b81d(_0x187096);})[_0x12496a('0x1cb5')](function(_0x221dbf){_0x2149d4(_0x221dbf);});});}function _0x3ec90e(_0x282399){return _0x607e13(function(_0x42231b,_0x328ee0){const _0x29524b=a0_0x14e7;_0x283545()[_0x29524b('0x213d')](_0x282399)?_0x42231b():_0x181e54['team'][_0x29524b('0x588')]({'id':_0x4cca6f[_0x29524b('0x421')]['id'],'ids':_0x283545()[_0x29524b('0x155d')](_0x282399,'id')})[_0x29524b('0x1714')][_0x29524b('0x2788')](function(){_0x42231b();})[_0x29524b('0x1cb5')](function(_0x3e1a5b){_0x328ee0(_0x3e1a5b);});});}function _0x1e41d4(_0x117f16){return _0x607e13(function(_0x3b40d4,_0x3f2af7){const _0x48f2fe=a0_0x14e7;_0x283545()[_0x48f2fe('0x213d')](_0x117f16)?_0x3b40d4():_0x181e54[_0x48f2fe('0x421')][_0x48f2fe('0x1d72')]({'id':_0x4cca6f['team']['id'],'ids':_0x283545()['map'](_0x117f16,'id')})[_0x48f2fe('0x1714')][_0x48f2fe('0x2788')](function(){_0x3b40d4();})[_0x48f2fe('0x1cb5')](function(_0x10e847){_0x3f2af7(_0x10e847);});});}function _0x5456bd(){const _0xf08164=_0x556d6f,_0x174e77=_0x283545()['differenceBy'](_0x4cca6f[_0xf08164('0xd0d')],_0x4cca6f[_0xf08164('0x283f')],'id'),_0x269125=_0x283545()[_0xf08164('0x432')](_0x4cca6f[_0xf08164('0x283f')],_0x4cca6f['startingSelectedItems'],'id');return _0x1e41d4(_0x174e77)[_0xf08164('0x2788')](function(){return _0x3ec90e(_0x269125);})['then'](function(){const _0x4da953=_0xf08164;_0x4cca6f[_0x4da953('0x2677')]=![],_0x4cca6f[_0x4da953('0x12d9')]=angular[_0x4da953('0x2669')](_0x4cca6f[_0x4da953('0x73d')]),_0x4cca6f['startingSelectedItems']=angular[_0x4da953('0x2669')](_0x4cca6f['selectedItems']),_0x5c83d7['success']({'title':'SUCCESS','msg':_0x4da953('0x1984')});})['catch'](function(_0x342852){const _0x3a162b=_0xf08164;_0x5c83d7['error']({'title':_0x342852['status']?_0x3a162b('0x15d1')+_0x342852[_0x3a162b('0x1b51')]+_0x3a162b('0x1b0b')+_0x342852[_0x3a162b('0x22ce')]:_0x3a162b('0x13cd'),'msg':_0x342852[_0x3a162b('0x1b51')]?JSON[_0x3a162b('0x1be0')](_0x342852[_0x3a162b('0x11fc')]):_0x342852[_0x3a162b('0x17df')]()});});}function _0x36873a(){_0xbced36['hide']();}}const _0x3d3540=_0x1e968a,_0x43eafb=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog.html',_0x476e4b=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd.html';_0x2c2269[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document','$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0xb2f'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x2c2269(_0x392205,_0x214e56,_0x5e2dca,_0x864a49,_0x3a24c8,_0x3307ec,_0x19eca5,_0x2142c8,_0x1cb108,_0xe81e03,_0x59fdcb,_0x13dff2,_0x584ffd,_0x3a2c5e,_0x40cc10,_0x13b224,_0xe5554){const _0x4ecee9=_0x34e79e,_0xa1169f=this;_0xa1169f[_0x4ecee9('0x130d')]=_0x13b224,_0xa1169f[_0x4ecee9('0x1af0')]=_0xe5554,_0xa1169f['currentUser']=_0x40cc10['getCurrentUser'](),_0xa1169f[_0x4ecee9('0xb2f')]=_0x1cb108||{'count':0x0,'rows':[]},_0xa1169f['userProfile']=_0xe81e03,_0xa1169f[_0x4ecee9('0xec9')]=_0x59fdcb&&_0x59fdcb[_0x4ecee9('0x338')]==0x1?_0x59fdcb['rows'][0x0]:null,_0xa1169f[_0x4ecee9('0xe28')]=_0x40cc10[_0x4ecee9('0x157e')](_0xa1169f['userProfileSection']?_0xa1169f['userProfileSection'][_0x4ecee9('0xe28')]:null),_0xa1169f[_0x4ecee9('0x26a9')]='teams',_0xa1169f[_0x4ecee9('0x2278')]='',_0xa1169f[_0x4ecee9('0x25e2')]=null,_0xa1169f[_0x4ecee9('0x15dc')]=[],_0xa1169f[_0x4ecee9('0x135a')]={'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0xa1169f['editdialog']=_0x2df245,_0xa1169f[_0x4ecee9('0x1113')]=_0x3336dc,_0xa1169f[_0x4ecee9('0x1e5')]=_0x3b4dcb,_0xa1169f[_0x4ecee9('0x173b')]=_0x360610,_0xa1169f[_0x4ecee9('0x1435')]=_0x1d4083,_0xa1169f[_0x4ecee9('0x17a4')]=_0x239491,_0xa1169f[_0x4ecee9('0x24d4')]=_0xab82f,_0xa1169f[_0x4ecee9('0x2304')]=_0x5f2af3,_0xa1169f[_0x4ecee9('0x17c9')]=_0x448669,_0xa1169f[_0x4ecee9('0x254d')]=_0x4b4efe,_0xa1169f[_0x4ecee9('0xb9a')]=_0x3050f8;function _0x2df245(_0x5e11c7,_0x1956bb){const _0x5694e7=_0x4ecee9;_0x3a24c8[_0x5694e7('0x2fa')]({'controller':_0x5694e7('0xb7d'),'controllerAs':'vm','templateUrl':_0x43eafb,'parent':angular[_0x5694e7('0x16b1')](_0x3307ec['body']),'targetEvent':_0x1956bb,'clickOutsideToClose':!![],'locals':{'team':_0x5e11c7,'teams':_0xa1169f[_0x5694e7('0xb2f')][_0x5694e7('0x25df')],'license':_0xa1169f[_0x5694e7('0x130d')],'setting':null,'crudPermissions':_0xa1169f[_0x5694e7('0xe28')]}});}function _0x3336dc(_0x3b8b0f,_0x4d0e43){const _0x24056e=_0x4ecee9;_0x3a24c8[_0x24056e('0x2fa')]({'controller':'TeamagentaddController','controllerAs':'vm','templateUrl':_0x476e4b,'parent':angular[_0x24056e('0x16b1')](_0x3307ec[_0x24056e('0x945')]),'targetEvent':_0x4d0e43,'clickOutsideToClose':!![],'locals':{'team':_0x3b8b0f,'teams':_0xa1169f[_0x24056e('0xb2f')]?_0xa1169f[_0x24056e('0xb2f')][_0x24056e('0x25df')]:[],'crudPermissions':_0xa1169f[_0x24056e('0xe28')],'realtime':![]}});}function _0x3b4dcb(_0x22034d,_0x233791){const _0xf27e1d=_0x4ecee9,_0x14829c=_0x3a24c8[_0xf27e1d('0x112e')]()[_0xf27e1d('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0xf27e1d('0x114')](_0xf27e1d('0x421'))+'?')['htmlContent'](_0xf27e1d('0x1670')+(_0x22034d[_0xf27e1d('0x1a8d')]||_0xf27e1d('0x421'))+_0xf27e1d('0x229e')+'\x20will\x20be\x20deleted.')[_0xf27e1d('0x10bc')]('delete\x20team')['targetEvent'](_0x233791)['ok']('OK')[_0xf27e1d('0x1801')](_0xf27e1d('0x1d8d'));_0x3a24c8[_0xf27e1d('0x2fa')](_0x14829c)[_0xf27e1d('0x2788')](function(){_0xab82f(_0x22034d);},function(){const _0x4e7d38=_0xf27e1d;console[_0x4e7d38('0x10df')](_0x4e7d38('0x1d8d'));});}let _0x4204d1=!![],_0x57a329=0x1;_0x392205['$watch'](_0x4ecee9('0x1569'),function(_0x174a97,_0x29c4be){const _0x53ee90=_0x4ecee9;_0x4204d1?_0x19eca5(function(){_0x4204d1=![];}):(!_0x29c4be&&(_0x57a329=_0xa1169f[_0x53ee90('0x135a')][_0x53ee90('0x23f5')]),_0x174a97!==_0x29c4be&&(_0xa1169f[_0x53ee90('0x135a')][_0x53ee90('0x23f5')]=0x1),!_0x174a97&&(_0xa1169f[_0x53ee90('0x135a')]['page']=_0x57a329),_0xa1169f[_0x53ee90('0x1435')]());});function _0x360610(_0x11be10){const _0x1e703b=_0x4ecee9;_0xa1169f[_0x1e703b('0xb2f')]=_0x11be10||{'count':0x0,'rows':[]};}function _0x1d4083(){const _0x1514b6=_0x4ecee9;_0xa1169f[_0x1514b6('0x135a')][_0x1514b6('0x19e')]=(_0xa1169f[_0x1514b6('0x135a')][_0x1514b6('0x23f5')]-0x1)*_0xa1169f[_0x1514b6('0x135a')][_0x1514b6('0x68e')],_0x40cc10[_0x1514b6('0x1516')](_0x1514b6('0xe23'))?_0xa1169f['promise']=_0x13dff2[_0x1514b6('0x421')][_0x1514b6('0x1335')](_0xa1169f['query'],_0x360610)[_0x1514b6('0x1714')]:(_0xa1169f[_0x1514b6('0x135a')]['id']=_0xa1169f['userProfile']['id'],_0xa1169f[_0x1514b6('0x135a')][_0x1514b6('0xb13')]=_0x1514b6('0x23e9'),_0xa1169f[_0x1514b6('0x1808')]=_0x13dff2[_0x1514b6('0x63c')][_0x1514b6('0xa1')](_0xa1169f[_0x1514b6('0x135a')],_0x360610)[_0x1514b6('0x1714')]);}function _0x239491(_0x42a037,_0x15d977){const _0x1672ab=_0x4ecee9;_0x3a24c8[_0x1672ab('0x2fa')]({'controller':_0x1672ab('0xb7d'),'controllerAs':'vm','templateUrl':_0x43eafb,'parent':angular['element'](_0x3307ec['body']),'targetEvent':_0x42a037,'clickOutsideToClose':!![],'locals':{'team':_0x15d977,'teams':_0xa1169f[_0x1672ab('0xb2f')][_0x1672ab('0x25df')],'license':_0xa1169f[_0x1672ab('0x130d')],'setting':_0xa1169f[_0x1672ab('0x1af0')],'crudPermissions':_0xa1169f[_0x1672ab('0xe28')]}});}function _0xab82f(_0x2b04ad){const _0x1d7504=_0x4ecee9;_0x13dff2[_0x1d7504('0x421')][_0x1d7504('0x17c4')]({'id':_0x2b04ad['id']})[_0x1d7504('0x1714')][_0x1d7504('0x2788')](function(){const _0x365533=_0x1d7504;_0x283545()[_0x365533('0x1a90')](_0xa1169f[_0x365533('0xb2f')][_0x365533('0x25df')],{'id':_0x2b04ad['id']}),_0xa1169f[_0x365533('0xb2f')]['count']-=0x1,!_0xa1169f[_0x365533('0xb2f')]['rows']['length']&&_0xa1169f[_0x365533('0x1435')](),_0x3a2c5e[_0x365533('0x173b')]({'title':_0x283545()[_0x365533('0x114')](_0x365533('0xf5a'))+_0x365533('0x20db'),'msg':_0x2b04ad[_0x365533('0x1a8d')]?_0x2b04ad[_0x365533('0x1a8d')]+_0x365533('0x14d4'):''});})['catch'](function(_0x167ab6){const _0x22ad6f=_0x1d7504;if(_0x167ab6[_0x22ad6f('0x11fc')]&&_0x167ab6[_0x22ad6f('0x11fc')][_0x22ad6f('0x25be')]&&_0x167ab6[_0x22ad6f('0x11fc')][_0x22ad6f('0x25be')]['length']){_0xa1169f['errors']=_0x167ab6['data']['errors']||[{'message':_0x167ab6['toString'](),'type':_0x22ad6f('0x1ede')}];for(let _0x42dbac=0x0;_0x42dbac<_0x167ab6[_0x22ad6f('0x11fc')][_0x22ad6f('0x25be')][_0x22ad6f('0x2566')];_0x42dbac++){_0x3a2c5e[_0x22ad6f('0x5e8')]({'title':_0x167ab6['data'][_0x22ad6f('0x25be')][_0x42dbac][_0x22ad6f('0x1d7')],'msg':_0x167ab6['data']['errors'][_0x42dbac][_0x22ad6f('0x15e2')]});}}else _0x3a2c5e[_0x22ad6f('0x5e8')]({'title':_0x167ab6['status']?_0x22ad6f('0x15d1')+_0x167ab6[_0x22ad6f('0x1b51')]+'\x20-\x20'+_0x167ab6[_0x22ad6f('0x22ce')]:'SYSTEM:DELETEteam','msg':_0x167ab6[_0x22ad6f('0x11fc')]?JSON[_0x22ad6f('0x1be0')](_0x167ab6['data'][_0x22ad6f('0x15e2')]):_0x167ab6[_0x22ad6f('0x15e2')]||_0x167ab6[_0x22ad6f('0x17df')]()});});}function _0x5f2af3(){const _0x2999b6=_0x4ecee9,_0x3712ef=angular[_0x2999b6('0x2669')](_0xa1169f[_0x2999b6('0x15dc')]);return _0xa1169f[_0x2999b6('0x15dc')]=[],_0x3712ef;}function _0x448669(_0x4b5c1d){const _0x66756=_0x4ecee9,_0x3ad59f=_0x3a24c8['confirm']()['title'](_0x66756('0x26ad'))[_0x66756('0x93e')](_0x66756('0x1670')+_0xa1169f['selectedTeams'][_0x66756('0x2566')]+_0x66756('0xbd')+_0x66756('0x27c7'))[_0x66756('0x10bc')](_0x66756('0x243a'))['targetEvent'](_0x4b5c1d)['ok']('OK')[_0x66756('0x1801')](_0x66756('0x1d8d'));_0x3a24c8[_0x66756('0x2fa')](_0x3ad59f)[_0x66756('0x2788')](function(){const _0x49a989=_0x66756;_0xa1169f['selectedTeams']['forEach'](function(_0x264054){_0xab82f(_0x264054);}),_0xa1169f[_0x49a989('0x15dc')]=[];});}function _0x4b4efe(){_0xa1169f['selectedTeams']=[];}function _0x3050f8(){const _0x3eca0b=_0x4ecee9;_0xa1169f['selectedTeams']=_0xa1169f[_0x3eca0b('0xb2f')]['rows'];}}const _0xd43141=_0x2c2269;_0xb14ce5[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1263'),_0x34e79e('0x23ab'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0xb14ce5(_0x323ce5,_0x209d99,_0x124741,_0x1e6138,_0x4f3023,_0x4271a5,_0x2d37fc,_0x180a72,_0x1eea4c,_0x4f0e9a,_0xfaebf8,_0x48b142,_0x3bbf0b,_0xaf993e){const _0x1ba485=_0x34e79e,_0x114778=this;_0x114778['currentUser']=_0xfaebf8[_0x1ba485('0x24cc')](),_0x114778['errors']=[],_0x114778['setting']=_0x3bbf0b,_0x114778[_0x1ba485('0x130d')]=_0x48b142,_0x114778['crudPermissions']=_0xaf993e,_0x114778[_0x1ba485('0x1193')]={},_0x114778[_0x1ba485('0x18ad')]=_0x114778[_0x1ba485('0x1af0')]&&_0x114778[_0x1ba485('0x1af0')][_0x1ba485('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x114778[_0x1ba485('0x14e4')]=_0x1ba485('0x949'),_0x114778['telephone']=angular[_0x1ba485('0x2669')](_0x1eea4c),_0x114778[_0x1ba485('0x1263')]=_0x180a72,_0x114778[_0x1ba485('0x175d')]=![];!_0x114778[_0x1ba485('0x23ab')]&&(_0x114778[_0x1ba485('0x23ab')]={'role':_0x1ba485('0x23ab'),'autointernal':!![],'context':'from-sip'},_0x114778['title']='STAFF.NEW_TELEPHONE',_0x114778[_0x1ba485('0x175d')]=!![]);_0x114778[_0x1ba485('0x264c')]=_0x58841e,_0x114778['saveTelephone']=_0x5d546b,_0x114778[_0x1ba485('0x77d')]=_0x21c158,_0x114778[_0x1ba485('0x2601')]=_0x4d0c9e,_0x114778[_0x1ba485('0xca7')]=_0x31726a;function _0x58841e(){const _0x197404=_0x1ba485;_0x114778[_0x197404('0x25be')]=[],_0x4f0e9a['user'][_0x197404('0xbd0')](_0x114778[_0x197404('0x23ab')])[_0x197404('0x1714')]['then'](function(_0x4488f9){const _0x504181=_0x197404;_0x114778[_0x504181('0x1263')][_0x504181('0xc51')](_0x4488f9[_0x504181('0x1cbf')]()),_0x2d37fc['success']({'title':_0x504181('0x27e1'),'msg':_0x114778['telephone'][_0x504181('0x1a8d')]?_0x114778[_0x504181('0x23ab')]['name']+'\x20has\x20been\x20created!':''}),_0x31726a(_0x4488f9);})[_0x197404('0x1cb5')](function(_0x5e1192){const _0x24c02f=_0x197404;if(_0x5e1192[_0x24c02f('0x11fc')]&&_0x5e1192[_0x24c02f('0x11fc')]['errors']&&_0x5e1192['data'][_0x24c02f('0x25be')][_0x24c02f('0x2566')]){_0x114778['errors']=_0x5e1192[_0x24c02f('0x11fc')][_0x24c02f('0x25be')]||[{'message':_0x5e1192['toString'](),'type':'api.user.save'}];for(let _0x291c12=0x0;_0x291c12<_0x5e1192[_0x24c02f('0x11fc')][_0x24c02f('0x25be')][_0x24c02f('0x2566')];_0x291c12+=0x1){_0x2d37fc[_0x24c02f('0x5e8')]({'title':_0x5e1192[_0x24c02f('0x11fc')][_0x24c02f('0x25be')][_0x291c12][_0x24c02f('0x1d7')],'msg':_0x5e1192[_0x24c02f('0x11fc')]['errors'][_0x291c12][_0x24c02f('0x15e2')]});}}else _0x2d37fc['error']({'title':_0x5e1192[_0x24c02f('0x1b51')]?_0x24c02f('0x15d1')+_0x5e1192[_0x24c02f('0x1b51')]+_0x24c02f('0x1b0b')+_0x5e1192[_0x24c02f('0x22ce')]:_0x24c02f('0x2511'),'msg':_0x5e1192[_0x24c02f('0x11fc')]?JSON[_0x24c02f('0x1be0')](_0x5e1192[_0x24c02f('0x11fc')][_0x24c02f('0x15e2')]):_0x5e1192[_0x24c02f('0x17df')]()});});}function _0x5d546b(){const _0x40ffd2=_0x1ba485;_0x114778[_0x40ffd2('0x25be')]=[],_0x4f0e9a[_0x40ffd2('0x1e6a')][_0x40ffd2('0x2740')]({'id':_0x114778[_0x40ffd2('0x23ab')]['id']},_0x114778[_0x40ffd2('0x23ab')])[_0x40ffd2('0x1714')][_0x40ffd2('0x2788')](function(_0x5cf1f2){const _0x34a394=_0x40ffd2,_0x374b60=_0x283545()[_0x34a394('0x20e8')](_0x114778[_0x34a394('0x1263')],{'id':_0x5cf1f2['id']});_0x374b60&&_0x283545()[_0x34a394('0x2503')](_0x374b60,_0x283545()['pick'](_0x5cf1f2['toJSON'](),_0x283545()[_0x34a394('0x2163')](_0x374b60))),_0x2d37fc[_0x34a394('0x173b')]({'title':_0x34a394('0x15bd'),'msg':_0x114778[_0x34a394('0x23ab')][_0x34a394('0x1a8d')]?_0x114778[_0x34a394('0x23ab')][_0x34a394('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x31726a(_0x5cf1f2);})['catch'](function(_0x438896){const _0x456e94=_0x40ffd2;if(_0x438896[_0x456e94('0x11fc')]&&_0x438896['data'][_0x456e94('0x25be')]&&_0x438896[_0x456e94('0x11fc')]['errors'][_0x456e94('0x2566')]){_0x114778[_0x456e94('0x25be')]=_0x438896[_0x456e94('0x11fc')][_0x456e94('0x25be')]||[{'message':_0x438896[_0x456e94('0x17df')](),'type':_0x456e94('0x863')}];for(let _0x25ed3a=0x0;_0x25ed3a<_0x438896[_0x456e94('0x11fc')][_0x456e94('0x25be')][_0x456e94('0x2566')];_0x25ed3a++){_0x2d37fc[_0x456e94('0x5e8')]({'title':_0x438896[_0x456e94('0x11fc')][_0x456e94('0x25be')][_0x25ed3a]['type'],'msg':_0x438896[_0x456e94('0x11fc')][_0x456e94('0x25be')][_0x25ed3a][_0x456e94('0x15e2')]});}}else _0x2d37fc[_0x456e94('0x5e8')]({'title':_0x438896[_0x456e94('0x1b51')]?_0x456e94('0x15d1')+_0x438896[_0x456e94('0x1b51')]+_0x456e94('0x1b0b')+_0x438896[_0x456e94('0x22ce')]:'api.user.update','msg':_0x438896['data']?JSON[_0x456e94('0x1be0')](_0x438896[_0x456e94('0x11fc')]['message']):_0x438896['toString']()});});}function _0x21c158(_0x38d602){const _0x1cab91=_0x1ba485;_0x114778[_0x1cab91('0x25be')]=[];const _0x26bbd2=_0x1e6138[_0x1cab91('0x112e')]()[_0x1cab91('0x14e4')]('Are\x20you\x20sure?')['content'](_0x1cab91('0x1287'))[_0x1cab91('0x10bc')](_0x1cab91('0x6cc'))['ok'](_0x1cab91('0x2786'))[_0x1cab91('0x1801')]('Cancel')[_0x1cab91('0x24d0')](_0x38d602);_0x1e6138[_0x1cab91('0x2fa')](_0x26bbd2)[_0x1cab91('0x2788')](function(){const _0x13e6fb=_0x1cab91;_0x4f0e9a[_0x13e6fb('0x1e6a')]['delete']({'id':_0x114778['telephone']['id']})[_0x13e6fb('0x1714')][_0x13e6fb('0x2788')](function(){const _0x132d4f=_0x13e6fb;_0x283545()[_0x132d4f('0x1a90')](_0x114778[_0x132d4f('0x1263')],{'id':_0x114778[_0x132d4f('0x23ab')]['id']}),_0x2d37fc[_0x132d4f('0x173b')]({'title':_0x132d4f('0x115a'),'msg':(_0x114778['telephone'][_0x132d4f('0x1a8d')]||'telephone')+'\x20has\x20been\x20deleted!'}),_0x31726a(_0x114778[_0x132d4f('0x23ab')]);})[_0x13e6fb('0x1cb5')](function(_0x5e5608){const _0x298d57=_0x13e6fb;if(_0x5e5608['data']&&_0x5e5608[_0x298d57('0x11fc')][_0x298d57('0x25be')]&&_0x5e5608['data'][_0x298d57('0x25be')][_0x298d57('0x2566')]){_0x114778[_0x298d57('0x25be')]=_0x5e5608['data'][_0x298d57('0x25be')]||[{'message':_0x5e5608[_0x298d57('0x17df')](),'type':_0x298d57('0x1f27')}];for(let _0x389dc6=0x0;_0x389dc6<_0x5e5608['data'][_0x298d57('0x25be')][_0x298d57('0x2566')];_0x389dc6++){_0x2d37fc[_0x298d57('0x5e8')]({'title':_0x5e5608[_0x298d57('0x11fc')][_0x298d57('0x25be')][_0x389dc6]['type'],'msg':_0x5e5608[_0x298d57('0x11fc')][_0x298d57('0x25be')][_0x389dc6][_0x298d57('0x15e2')]});}}else _0x2d37fc[_0x298d57('0x5e8')]({'title':_0x5e5608['status']?_0x298d57('0x15d1')+_0x5e5608[_0x298d57('0x1b51')]+_0x298d57('0x1b0b')+_0x5e5608[_0x298d57('0x22ce')]:_0x298d57('0x1f27'),'msg':_0x5e5608[_0x298d57('0x11fc')]?JSON[_0x298d57('0x1be0')](_0x5e5608['data'][_0x298d57('0x15e2')]):_0x5e5608[_0x298d57('0x15e2')]||_0x5e5608[_0x298d57('0x17df')]()});});},function(){});}function _0x4d0c9e(_0x46599b){return _0x46599b===null?undefined:new Date(_0x46599b);}function _0x31726a(_0x463741){const _0x6d34af=_0x1ba485;_0x1e6138[_0x6d34af('0x19d')](_0x463741);}}const _0x4afbee=_0xb14ce5;_0x509a67[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x123b'),_0x34e79e('0xd57'),'api',_0x34e79e('0x23ab'),_0x34e79e('0x1af0'),'Auth'];function _0x509a67(_0x208395,_0xc15758,_0x5a518a,_0x3eff37,_0x30e432,_0x2eb164,_0x3a0b02){const _0x14e03e=_0x34e79e,_0x501a72=this;_0x501a72['currentUser']=_0x3a0b02[_0x14e03e('0x24cc')](),_0x501a72['errors']=[],_0x501a72[_0x14e03e('0x1af0')]=_0x2eb164,_0x501a72[_0x14e03e('0x18ad')]=_0x501a72[_0x14e03e('0x1af0')][_0x14e03e('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x501a72[_0x14e03e('0x23ab')]=_0x30e432,_0x501a72[_0x14e03e('0xad8')]='',_0x501a72[_0x14e03e('0x2380')]='',_0x501a72[_0x14e03e('0x181f')]=_0x424bec,_0x501a72[_0x14e03e('0xca7')]=_0x491ba8,_0x208395[_0x14e03e('0x1662')](_0x14e03e('0x1add'),function(_0x2217b9){const _0x5aed99=_0x14e03e;!_0x283545()[_0x5aed99('0x1015')](_0x501a72[_0x5aed99('0x2380')])&&(_0x2217b9===_0x501a72[_0x5aed99('0x2380')]?_0x208395[_0x5aed99('0xd08')]['password'][_0x5aed99('0x22a2')]('oldPasswordMatch',![]):_0x208395[_0x5aed99('0xd08')][_0x5aed99('0xad8')][_0x5aed99('0x22a2')]('oldPasswordMatch',!![]));});function _0x424bec(){const _0x42a687=_0x14e03e;_0x501a72[_0x42a687('0x25be')]=[];const _0x2429d7={'id':_0x501a72[_0x42a687('0x23ab')]['id'],'newPassword':_0x501a72['password']};_0x501a72[_0x42a687('0x9cb')]['id']==_0x501a72['telephone']['id']&&(_0x2429d7[_0x42a687('0x2380')]=_0x501a72['oldPassword']),_0x3eff37[_0x42a687('0x1e6a')][_0x42a687('0x73b')](_0x2429d7)['$promise'][_0x42a687('0x2788')](function(){const _0x26b428=_0x42a687;_0x5a518a[_0x26b428('0x173b')]({'title':'Telephone\x20password\x20properly\x20updated!'}),_0x491ba8();})[_0x42a687('0x1cb5')](function(_0x2cb8a5){const _0x201090=_0x42a687;_0x5a518a['error']({'title':_0x2cb8a5[_0x201090('0x1b51')]?_0x201090('0x15d1')+_0x2cb8a5['status']+_0x201090('0x1b0b')+_0x2cb8a5[_0x201090('0x22ce')]:_0x201090('0x909'),'msg':_0x2cb8a5[_0x201090('0x11fc')]?JSON[_0x201090('0x1be0')](_0x2cb8a5[_0x201090('0x11fc')][_0x201090('0x15e2')]):_0x2cb8a5['toString']()}),_0x501a72[_0x201090('0x25be')]=_0x2cb8a5[_0x201090('0x11fc')][_0x201090('0x25be')]||[{'message':_0x2cb8a5[_0x201090('0x17df')](),'type':_0x201090('0x1164')}];});}function _0x491ba8(){const _0x53b293=_0x14e03e;_0xc15758[_0x53b293('0x19d')]();}}const _0x33bf58=_0x509a67,_0x496998=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword.html';_0x48b3fa[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license','setting','api',_0x34e79e('0xd57'),'Auth','telephone',_0x34e79e('0xec9')];function _0x48b3fa(_0x5670d7,_0x471cc4,_0x38e42f,_0x625a35,_0x28e140,_0x285dc5,_0x54877e,_0x57615e,_0x29551c,_0x113a96,_0x32537e,_0x5a8a6c){const _0x2e854b=_0x34e79e,_0x432486=this;_0x432486['currentUser']=_0x113a96[_0x2e854b('0x24cc')](),_0x432486[_0x2e854b('0x130d')]=_0x285dc5,_0x432486[_0x2e854b('0x1af0')]=_0x54877e,_0x432486[_0x2e854b('0x18ad')]=_0x432486[_0x2e854b('0x1af0')][_0x2e854b('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x432486['location']=_0x471cc4[_0x2e854b('0x170c')]()+_0x2e854b('0x726')+_0x471cc4[_0x2e854b('0x1c6a')](),_0x432486[_0x2e854b('0x23ab')]=_0x32537e||_0x5670d7['params'][_0x2e854b('0x23ab')]||{},_0x432486['userProfileSection']=_0x5a8a6c&&_0x5a8a6c[_0x2e854b('0x338')]==0x1?_0x5a8a6c['rows'][0x0]:null,_0x432486[_0x2e854b('0xe28')]=_0x113a96[_0x2e854b('0x157e')](_0x432486[_0x2e854b('0xec9')]?_0x432486['userProfileSection'][_0x2e854b('0xe28')]:null),_0x432486['hasModulePermissions']={},_0x432486[_0x2e854b('0xcb3')]=_0x5670d7[_0x2e854b('0x4b9')]['tab']||0x0,_0x432486[_0x2e854b('0x1f56')]=_0x72f1b6,_0x432486[_0x2e854b('0x204f')]=_0x29551c['info'],_0x432486[_0x2e854b('0x1be')]=_0x56dd3e,_0x432486[_0x2e854b('0x2823')]=_0xd2e185,_0x113a96[_0x2e854b('0x1516')](_0x2e854b('0xe23'))?_0x57615e[_0x2e854b('0x15cc')][_0x2e854b('0x1335')]({'fields':_0x2e854b('0x1338'),'sort':_0x2e854b('0x1a8d')})['$promise'][_0x2e854b('0x2788')](function(_0x3be01f){const _0x19dd21=_0x2e854b;_0x432486[_0x19dd21('0xf3e')]=_0x3be01f[_0x19dd21('0x25df')]||[];})[_0x2e854b('0x1cb5')](function(_0x22c84a){const _0x3ab7d6=_0x2e854b;_0x29551c[_0x3ab7d6('0x5e8')]({'title':_0x22c84a[_0x3ab7d6('0x1b51')]?_0x3ab7d6('0x15d1')+_0x22c84a[_0x3ab7d6('0x1b51')]+_0x3ab7d6('0x1b0b')+_0x22c84a[_0x3ab7d6('0x22ce')]:_0x3ab7d6('0x15f7'),'msg':_0x22c84a[_0x3ab7d6('0x11fc')]?JSON[_0x3ab7d6('0x1be0')](_0x22c84a['data']):_0x22c84a[_0x3ab7d6('0x17df')]()});}):_0x57615e['voiceContext'][_0x2e854b('0x1335')]({'fields':'id,name','sort':_0x2e854b('0x1a8d')})[_0x2e854b('0x1714')]['then'](function(_0x2308cc){const _0x31f9d5=_0x2e854b;_0x432486[_0x31f9d5('0xf3e')]=_0x2308cc[_0x31f9d5('0x25df')]||[];})['then'](function(){const _0x3cd5ac=_0x2e854b;return _0x57615e[_0x3cd5ac('0xec9')][_0x3cd5ac('0x1335')]({'userProfileId':_0x432486['currentUser'][_0x3cd5ac('0x237f')],'sectionId':0x195})[_0x3cd5ac('0x1714')];})[_0x2e854b('0x2788')](function(_0x5d8314){const _0x13d109=_0x2e854b,_0x52f783=_0x5d8314&&_0x5d8314[_0x13d109('0x25df')]?_0x5d8314[_0x13d109('0x25df')][0x0]:null;if(!_0x52f783)return _0x57615e[_0x13d109('0x15cc')][_0x13d109('0x1335')]({'fields':'id,name','sort':_0x13d109('0x1a8d'),'defaultEntry':0x1})['$promise'][_0x13d109('0x2788')](function(_0x28108a){const _0x5540e3=_0x13d109;_0x432486[_0x5540e3('0xf3e')]=_0x28108a['rows']||[];});else{if(!_0x52f783['autoAssociation'])return _0x57615e['userProfileResource'][_0x13d109('0x1335')]({'sectionId':_0x52f783['id']})[_0x13d109('0x1714')][_0x13d109('0x2788')](function(_0x1efba7){const _0x5310fc=_0x13d109,_0xdb757e=_0x283545()[_0x5310fc('0x155d')](_0x1efba7[_0x5310fc('0x25df')],function(_0x306a3b){const _0xbeb024=_0x5310fc;return _0x283545()['find'](_0x432486[_0xbeb024('0xf3e')],{'id':_0x306a3b[_0xbeb024('0x2707')]});});let _0x5a8324=null;_0x432486[_0x5310fc('0x23ab')]&&(_0x5a8324=_0x283545()['find'](_0x432486[_0x5310fc('0xf3e')],{'name':_0x432486[_0x5310fc('0x23ab')]['context']}));if(_0x5a8324&&!_0x283545()['some'](_0xdb757e,['id',_0x5a8324['id']])){const _0x4e9681=_0x283545()[_0x5310fc('0x20e8')](_0x432486[_0x5310fc('0xf3e')],{'id':_0x5a8324['id']});_0x4e9681[_0x5310fc('0x3bf')]=![],_0xdb757e[_0x5310fc('0x13e3')](_0x4e9681);}_0x432486[_0x5310fc('0xf3e')]=_0xdb757e;});}})[_0x2e854b('0x1cb5')](function(_0x3d678e){const _0x2137cd=_0x2e854b;_0x29551c[_0x2137cd('0x5e8')]({'title':_0x3d678e[_0x2137cd('0x1b51')]?_0x2137cd('0x15d1')+_0x3d678e[_0x2137cd('0x1b51')]+'\x20-\x20'+_0x3d678e[_0x2137cd('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x3d678e[_0x2137cd('0x11fc')]?JSON[_0x2137cd('0x1be0')](_0x3d678e[_0x2137cd('0x11fc')]):_0x3d678e[_0x2137cd('0x17df')]()});});function _0x72f1b6(_0xc688d2,_0x18b0cf){const _0x58f56a=_0x2e854b;_0x38e42f[_0x58f56a('0x2fa')]({'controller':_0x58f56a('0x20ab'),'controllerAs':'vm','templateUrl':_0x496998,'parent':angular[_0x58f56a('0x16b1')](_0x625a35[_0x58f56a('0x945')]),'targetEvent':_0x18b0cf,'clickOutsideToClose':!![],'locals':{'telephone':_0xc688d2,'setting':_0x54877e,'telephones':_0x432486['telephones']?_0x432486[_0x58f56a('0x1263')][_0x58f56a('0x25df')]:[],'crudPermissions':_0x432486[_0x58f56a('0xe28')]}});}function _0x56dd3e(){const _0x424fc8=_0x2e854b;_0x5670d7['go'](_0x424fc8('0x10fc'),{},{'reload':'app.staff.telephones'});}function _0xd2e185(){const _0x361145=_0x2e854b;_0x57615e[_0x361145('0x1e6a')][_0x361145('0x2740')]({'id':_0x432486['telephone']['id']},_0x432486[_0x361145('0x23ab')])[_0x361145('0x1714')][_0x361145('0x2788')](function(){const _0x2b13da=_0x361145;_0x29551c[_0x2b13da('0x173b')]({'title':_0x2b13da('0x16ea'),'msg':_0x432486[_0x2b13da('0x23ab')]['name']?_0x432486[_0x2b13da('0x23ab')][_0x2b13da('0x1a8d')]+_0x2b13da('0x6f8'):''});})['catch'](function(_0x55d3e5){const _0x28571a=_0x361145;_0x29551c[_0x28571a('0x5e8')]({'title':_0x55d3e5['status']?_0x28571a('0x15d1')+_0x55d3e5[_0x28571a('0x1b51')]+_0x28571a('0x1b0b')+_0x55d3e5[_0x28571a('0x22ce')]:_0x28571a('0x2396'),'msg':_0x55d3e5['data']?JSON[_0x28571a('0x1be0')](_0x55d3e5[_0x28571a('0x11fc')]):_0x55d3e5[_0x28571a('0x17df')]()});});}}const _0x3ad0e3=_0x48b3fa,_0x5a975b=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html';_0x140e82['$inject']=[_0x34e79e('0x1701'),'$window','$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout','$translate',_0x34e79e('0x1263'),'userProfile',_0x34e79e('0xec9'),'api','msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x140e82(_0x1d8db4,_0x78b0e6,_0x3b7177,_0x3cd56a,_0x235d20,_0xe835d0,_0x29b102,_0x5c840e,_0x4df244,_0x10f54f,_0xf2de2e,_0x41b902,_0x1e8a88,_0x49a562,_0x2086e7,_0x59a95a,_0x4e6a99){const _0x229276=_0x34e79e,_0x1608db=this;_0x1608db[_0x229276('0x130d')]=_0x59a95a,_0x1608db[_0x229276('0x1af0')]=_0x4e6a99,_0x1608db[_0x229276('0x9cb')]=_0x2086e7[_0x229276('0x24cc')](),_0x1608db['telephones']=_0x4df244||{'count':0x0,'rows':[]},_0x1608db[_0x229276('0x63c')]=_0x10f54f,_0x1608db[_0x229276('0xec9')]=_0xf2de2e&&_0xf2de2e[_0x229276('0x338')]==0x1?_0xf2de2e[_0x229276('0x25df')][0x0]:null,_0x1608db[_0x229276('0xe28')]=_0x2086e7[_0x229276('0x157e')](_0x1608db[_0x229276('0xec9')]?_0x1608db[_0x229276('0xec9')][_0x229276('0xe28')]:null),_0x1608db[_0x229276('0x26a9')]='telephones',_0x1608db[_0x229276('0x2278')]='',_0x1608db[_0x229276('0x25e2')]=null,_0x1608db['selectedTelephones']=[],_0x1608db[_0x229276('0x135a')]={'fields':_0x229276('0x1b9b'),'role':_0x229276('0x23ab'),'sort':_0x229276('0x1cee'),'limit':0xa,'page':0x1},_0x1608db['arraytransport']=_0x283545()[_0x229276('0x13cf')]([{'option':'udp','value':_0x229276('0x2448')},{'option':_0x229276('0x1696'),'value':_0x229276('0x1bdd')},{'option':'ws','value':'\x27ws\x27'},{'option':_0x229276('0x1a92'),'value':_0x229276('0x1566')},{'option':'tls','value':_0x229276('0x1ecb')}],function(_0xe2e036){const _0xa8b414=_0x229276;return _0x283545()[_0xa8b414('0x10a4')](_0xe2e036[_0xa8b414('0x49')],new RegExp('\x27','g'),'');}),_0x1608db[_0x229276('0x335')]=_0x283545()['keyBy']([{'option':_0x229276('0x16a7'),'value':'\x27force_rport\x27'},{'option':_0x229276('0x372'),'value':_0x229276('0x1025')},{'option':_0x229276('0x2062'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'},{'option':_0x229276('0x173d'),'value':_0x229276('0x1c4')},{'option':_0x229276('0x44b'),'value':'\x27route\x27'}],function(_0x4b5aa7){return _0x283545()['replace'](_0x4b5aa7['value'],new RegExp('\x27','g'),'');}),_0x1608db['arrayallow']=_0x283545()['keyBy']([{'option':_0x229276('0x972'),'value':'\x27ulaw\x27'},{'option':_0x229276('0x1729'),'value':_0x229276('0x51c')},{'option':_0x229276('0x14c1'),'value':'\x27gsm\x27'},{'option':_0x229276('0xfc3'),'value':_0x229276('0x231f')},{'option':'g729','value':_0x229276('0x16a6')},{'option':_0x229276('0x1460'),'value':_0x229276('0x1d1a')},{'option':'h264','value':_0x229276('0xcc3')}],function(_0x11083a){const _0x607789=_0x229276;return _0x283545()[_0x607789('0x10a4')](_0x11083a[_0x607789('0x49')],new RegExp('\x27','g'),'');}),_0x1608db[_0x229276('0x275c')]=_0x283545()[_0x229276('0x13cf')]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x229276('0x2363')},{'option':_0x229276('0x25e3'),'value':_0x229276('0x1ac1')}],function(_0x125237){const _0x2fb706=_0x229276;return _0x283545()[_0x2fb706('0x10a4')](_0x125237['value'],new RegExp('\x27','g'),'');}),_0x1608db[_0x229276('0x215f')]=_0x283545()[_0x229276('0x13cf')]([{'option':_0x229276('0x2062'),'value':_0x229276('0x640')},{'option':'no','value':_0x229276('0x2363')}],function(_0x2a36c1){const _0x1a14b5=_0x229276;return _0x283545()['replace'](_0x2a36c1[_0x1a14b5('0x49')],new RegExp('\x27','g'),'');}),_0x1608db[_0x229276('0x1f7e')]=_0x29df02,_0x1608db[_0x229276('0x1e5')]=_0x1782af,_0x1608db['success']=_0x3eaf1a,_0x1608db[_0x229276('0x16d9')]=_0x682683,_0x1608db['createOrEditTelephone']=_0x3338cf,_0x1608db[_0x229276('0x77d')]=_0x39ce71,_0x1608db[_0x229276('0x1732')]=_0x19348d,_0x1608db['deleteSelectedTelephones']=_0xa4aea4,_0x1608db['deselectTelephones']=_0x5da5ce,_0x1608db['selectAllTelephones']=_0x422dd1;function _0x29df02(_0xefc79f){const _0x11a656=_0x229276;_0x3b7177['go']('app.staff.telephones.edit',{'id':_0xefc79f['id'],'telephone':_0xefc79f,'crudPermissions':_0x1608db[_0x11a656('0xe28')]});}function _0x1782af(_0x3b30b4,_0x3b0518){const _0x1274d2=_0x229276,_0x146ad9=_0x235d20[_0x1274d2('0x112e')]()['title'](_0x1274d2('0x2114')+_0x283545()['startCase'](_0x1274d2('0x23ab'))+'?')[_0x1274d2('0x93e')](''+(_0x3b30b4[_0x1274d2('0x1a8d')]||_0x1274d2('0x23ab'))+_0x1274d2('0x229e')+'\x20will\x20be\x20deleted.')[_0x1274d2('0x10bc')]('delete\x20telephone')['targetEvent'](_0x3b0518)['ok']('OK')[_0x1274d2('0x1801')](_0x1274d2('0x1d8d'));_0x235d20[_0x1274d2('0x2fa')](_0x146ad9)[_0x1274d2('0x2788')](function(){_0x39ce71(_0x3b30b4);},function(){const _0x150339=_0x1274d2;console[_0x150339('0x10df')](_0x150339('0x1d8d'));});}let _0x5dc0c2=!![],_0x1ec6ff=0x1;_0x1d8db4['$watch']('vm.query.filter',function(_0x2d2837,_0x2ffa66){const _0x220673=_0x229276;_0x5dc0c2?_0x29b102(function(){_0x5dc0c2=![];}):(!_0x2ffa66&&(_0x1ec6ff=_0x1608db['query'][_0x220673('0x23f5')]),_0x2d2837!==_0x2ffa66&&(_0x1608db['query'][_0x220673('0x23f5')]=0x1),!_0x2d2837&&(_0x1608db['query'][_0x220673('0x23f5')]=_0x1ec6ff),_0x1608db[_0x220673('0x16d9')]());});function _0x3eaf1a(_0x12cd74){const _0x49a14e=_0x229276;_0x1608db[_0x49a14e('0x1263')]=_0x12cd74||{'count':0x0,'rows':[]};}function _0x682683(){const _0x6e27c8=_0x229276;_0x1608db[_0x6e27c8('0x135a')][_0x6e27c8('0x19e')]=(_0x1608db[_0x6e27c8('0x135a')][_0x6e27c8('0x23f5')]-0x1)*_0x1608db[_0x6e27c8('0x135a')][_0x6e27c8('0x68e')],_0x2086e7[_0x6e27c8('0x1516')]('admin')?_0x1608db[_0x6e27c8('0x1808')]=_0x41b902[_0x6e27c8('0x1e6a')][_0x6e27c8('0x1335')](_0x1608db[_0x6e27c8('0x135a')],_0x3eaf1a)[_0x6e27c8('0x1714')]:(_0x1608db[_0x6e27c8('0x135a')]['id']=_0x1608db[_0x6e27c8('0x63c')]['id'],_0x1608db[_0x6e27c8('0x135a')]['section']='Telephones',_0x1608db[_0x6e27c8('0x1808')]=_0x41b902[_0x6e27c8('0x63c')][_0x6e27c8('0xa1')](_0x1608db['query'],_0x3eaf1a)[_0x6e27c8('0x1714')]);}function _0x3338cf(_0x5e7c00,_0xc1d3ee){const _0x291c37=_0x229276;_0x235d20[_0x291c37('0x2fa')]({'controller':_0x291c37('0x545'),'controllerAs':'vm','templateUrl':_0x5a975b,'parent':angular[_0x291c37('0x16b1')](_0xe835d0['body']),'targetEvent':_0x5e7c00,'clickOutsideToClose':!![],'locals':{'telephone':_0xc1d3ee,'telephones':_0x1608db[_0x291c37('0x1263')][_0x291c37('0x25df')],'license':_0x1608db[_0x291c37('0x130d')],'setting':_0x1608db['setting'],'crudPermissions':_0x1608db[_0x291c37('0xe28')]}});}function _0x39ce71(_0x53fba6){const _0x3c6f60=_0x229276;_0x41b902['user'][_0x3c6f60('0x17c4')]({'id':_0x53fba6['id']})[_0x3c6f60('0x1714')]['then'](function(){const _0x51a737=_0x3c6f60;_0x283545()[_0x51a737('0x1a90')](_0x1608db['telephones'][_0x51a737('0x25df')],{'id':_0x53fba6['id']}),_0x1608db[_0x51a737('0x1263')][_0x51a737('0x338')]-=0x1,!_0x1608db[_0x51a737('0x1263')][_0x51a737('0x25df')][_0x51a737('0x2566')]&&_0x1608db['getTelephones'](),_0x49a562['success']({'title':_0x283545()[_0x51a737('0x114')](_0x51a737('0x208d'))+_0x51a737('0x20db'),'msg':_0x53fba6[_0x51a737('0x1a8d')]?_0x53fba6[_0x51a737('0x1a8d')]+_0x51a737('0x14d4'):''});})[_0x3c6f60('0x1cb5')](function(_0x181d45){const _0x2ca4fe=_0x3c6f60;if(_0x181d45[_0x2ca4fe('0x11fc')]&&_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')]&&_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')][_0x2ca4fe('0x2566')]){_0x1608db['errors']=_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')]||[{'message':_0x181d45[_0x2ca4fe('0x17df')](),'type':_0x2ca4fe('0x361')}];for(let _0x29b4bb=0x0;_0x29b4bb<_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')][_0x2ca4fe('0x2566')];_0x29b4bb++){_0x49a562['error']({'title':_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')][_0x29b4bb]['type'],'msg':_0x181d45[_0x2ca4fe('0x11fc')][_0x2ca4fe('0x25be')][_0x29b4bb]['message']});}}else _0x49a562[_0x2ca4fe('0x5e8')]({'title':_0x181d45[_0x2ca4fe('0x1b51')]?_0x2ca4fe('0x15d1')+_0x181d45[_0x2ca4fe('0x1b51')]+_0x2ca4fe('0x1b0b')+_0x181d45[_0x2ca4fe('0x22ce')]:_0x2ca4fe('0x361'),'msg':_0x181d45[_0x2ca4fe('0x11fc')]?JSON['stringify'](_0x181d45['data'][_0x2ca4fe('0x15e2')]):_0x181d45[_0x2ca4fe('0x15e2')]||_0x181d45[_0x2ca4fe('0x17df')]()});});}function _0x19348d(){const _0x3934d7=_0x229276,_0x1d7530=angular[_0x3934d7('0x2669')](_0x1608db[_0x3934d7('0x1e00')]);return _0x1608db[_0x3934d7('0x1e00')]=[],_0x1d7530;}function _0xa4aea4(_0x1034ab){const _0x3494f4=_0x229276,_0x3eafda=_0x235d20[_0x3494f4('0x112e')]()[_0x3494f4('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?')['htmlContent'](_0x3494f4('0x1670')+_0x1608db[_0x3494f4('0x1e00')][_0x3494f4('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3494f4('0x2502'))[_0x3494f4('0x24d0')](_0x1034ab)['ok']('OK')[_0x3494f4('0x1801')]('CANCEL');_0x235d20[_0x3494f4('0x2fa')](_0x3eafda)[_0x3494f4('0x2788')](function(){const _0x3f31ac=_0x3494f4;_0x1608db[_0x3f31ac('0x1e00')][_0x3f31ac('0x1534')](function(_0x1f58fe){_0x39ce71(_0x1f58fe);}),_0x1608db['selectedTelephones']=[];});}function _0x5da5ce(){const _0x214c1d=_0x229276;_0x1608db[_0x214c1d('0x1e00')]=[];}function _0x422dd1(){const _0x399adb=_0x229276;_0x1608db['selectedTelephones']=_0x1608db[_0x399adb('0x1263')]['rows'];}}const _0x270b36=_0x140e82;_0x3b94c8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x20b'),'userProfile',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x3b94c8(_0x150dee,_0x22fcbb,_0x2b3fe6,_0x16890c,_0x162661,_0x54272b,_0x5a1255,_0x3437c9,_0x45d53f,_0x3ed45f,_0x1984ad,_0x53bd9a,_0x27ea4b,_0x5d4a11){const _0x39ab5f=_0x34e79e,_0x8b1410=this;_0x8b1410['currentUser']=_0x1984ad[_0x39ab5f('0x24cc')](),_0x8b1410[_0x39ab5f('0x25be')]=[],_0x8b1410['setting']=_0x27ea4b,_0x8b1410[_0x39ab5f('0x130d')]=_0x53bd9a,_0x8b1410['crudPermissions']=_0x5d4a11,_0x8b1410[_0x39ab5f('0x1193')]={},_0x8b1410['passwordPattern']=_0x8b1410[_0x39ab5f('0x1af0')]&&_0x8b1410[_0x39ab5f('0x1af0')][_0x39ab5f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8b1410[_0x39ab5f('0x14e4')]=_0x39ab5f('0x778'),_0x8b1410[_0x39ab5f('0x63c')]=angular[_0x39ab5f('0x2669')](_0x45d53f),_0x8b1410['userProfiles']=_0x3437c9,_0x8b1410[_0x39ab5f('0x2703')]=![];!_0x8b1410[_0x39ab5f('0x63c')]&&(_0x8b1410['userProfile']={'crudPermissions':['r']},_0x8b1410[_0x39ab5f('0x14e4')]=_0x39ab5f('0x2771'),_0x8b1410[_0x39ab5f('0x2703')]=!![]);_0x8b1410[_0x39ab5f('0x170f')]=_0x5510be,_0x8b1410[_0x39ab5f('0x90')]=_0x38ac63,_0x8b1410[_0x39ab5f('0x1868')]=_0x25ca41,_0x8b1410[_0x39ab5f('0x2601')]=_0x179555,_0x8b1410[_0x39ab5f('0xca7')]=_0x58b5fb;function _0x5510be(){const _0x389108=_0x39ab5f;_0x8b1410[_0x389108('0x25be')]=[],_0x3ed45f[_0x389108('0x63c')][_0x389108('0xbd0')](_0x8b1410[_0x389108('0x63c')])[_0x389108('0x1714')][_0x389108('0x2788')](function(_0x4ee09e){const _0xaf560=_0x389108;_0x50fccf(_0x4ee09e),_0x8b1410['userProfiles']['unshift'](_0x4ee09e['toJSON']()),_0x5a1255[_0xaf560('0x173b')]({'title':_0xaf560('0xf64'),'msg':_0x8b1410[_0xaf560('0x63c')]['name']?_0x8b1410[_0xaf560('0x63c')][_0xaf560('0x1a8d')]+_0xaf560('0x1e4a'):''}),_0x58b5fb(_0x4ee09e);})[_0x389108('0x1cb5')](function(_0x3216e5){const _0x4e6833=_0x389108;if(_0x3216e5['data']&&_0x3216e5['data'][_0x4e6833('0x25be')]&&_0x3216e5[_0x4e6833('0x11fc')][_0x4e6833('0x25be')]['length']){_0x8b1410[_0x4e6833('0x25be')]=_0x3216e5['data'][_0x4e6833('0x25be')]||[{'message':_0x3216e5[_0x4e6833('0x17df')](),'type':_0x4e6833('0x2367')}];for(let _0x18d95f=0x0;_0x18d95f<_0x3216e5[_0x4e6833('0x11fc')][_0x4e6833('0x25be')][_0x4e6833('0x2566')];_0x18d95f+=0x1){_0x5a1255[_0x4e6833('0x5e8')]({'title':_0x3216e5[_0x4e6833('0x11fc')][_0x4e6833('0x25be')][_0x18d95f][_0x4e6833('0x1d7')],'msg':_0x3216e5[_0x4e6833('0x11fc')][_0x4e6833('0x25be')][_0x18d95f][_0x4e6833('0x15e2')]});}}else _0x5a1255[_0x4e6833('0x5e8')]({'title':_0x3216e5[_0x4e6833('0x1b51')]?_0x4e6833('0x15d1')+_0x3216e5[_0x4e6833('0x1b51')]+'\x20-\x20'+_0x3216e5[_0x4e6833('0x22ce')]:_0x4e6833('0x2367'),'msg':_0x3216e5[_0x4e6833('0x11fc')]?JSON['stringify'](_0x3216e5[_0x4e6833('0x11fc')][_0x4e6833('0x15e2')]):_0x3216e5[_0x4e6833('0x17df')]()});});}function _0x38ac63(){const _0x21ef34=_0x39ab5f;_0x8b1410['errors']=[],_0x3ed45f[_0x21ef34('0x63c')][_0x21ef34('0x2740')]({'id':_0x8b1410[_0x21ef34('0x63c')]['id']},_0x8b1410[_0x21ef34('0x63c')])[_0x21ef34('0x1714')][_0x21ef34('0x2788')](function(_0x1d0062){const _0x59e9d1=_0x21ef34,_0x5e0417=_0x283545()[_0x59e9d1('0x20e8')](_0x8b1410[_0x59e9d1('0x20b')],{'id':_0x1d0062['id']});_0x5e0417&&_0x283545()[_0x59e9d1('0x2503')](_0x5e0417,_0x283545()[_0x59e9d1('0x41b')](_0x1d0062[_0x59e9d1('0x1cbf')](),_0x283545()[_0x59e9d1('0x2163')](_0x5e0417))),_0x5a1255[_0x59e9d1('0x173b')]({'title':_0x59e9d1('0x1f9d'),'msg':_0x8b1410['userProfile'][_0x59e9d1('0x1a8d')]?_0x8b1410[_0x59e9d1('0x63c')][_0x59e9d1('0x1a8d')]+_0x59e9d1('0x24cf'):''}),_0x58b5fb(_0x1d0062);})['catch'](function(_0x4f339a){const _0x14d70a=_0x21ef34;if(_0x4f339a['data']&&_0x4f339a['data'][_0x14d70a('0x25be')]&&_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x25be')][_0x14d70a('0x2566')]){_0x8b1410[_0x14d70a('0x25be')]=_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x25be')]||[{'message':_0x4f339a[_0x14d70a('0x17df')](),'type':_0x14d70a('0x25ff')}];for(let _0x34a882=0x0;_0x34a882<_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x25be')][_0x14d70a('0x2566')];_0x34a882++){_0x5a1255[_0x14d70a('0x5e8')]({'title':_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x25be')][_0x34a882][_0x14d70a('0x1d7')],'msg':_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x25be')][_0x34a882]['message']});}}else _0x5a1255['error']({'title':_0x4f339a[_0x14d70a('0x1b51')]?_0x14d70a('0x15d1')+_0x4f339a['status']+_0x14d70a('0x1b0b')+_0x4f339a[_0x14d70a('0x22ce')]:_0x14d70a('0x25ff'),'msg':_0x4f339a[_0x14d70a('0x11fc')]?JSON[_0x14d70a('0x1be0')](_0x4f339a[_0x14d70a('0x11fc')][_0x14d70a('0x15e2')]):_0x4f339a['toString']()});});}function _0x25ca41(_0x35bcb2){const _0x43ba9b=_0x39ab5f;_0x8b1410[_0x43ba9b('0x25be')]=[];const _0x496b73=_0x16890c[_0x43ba9b('0x112e')]()[_0x43ba9b('0x14e4')](_0x43ba9b('0x458'))[_0x43ba9b('0x1c98')](_0x43ba9b('0x139e'))[_0x43ba9b('0x10bc')]('Delete\x20UserProfile')['ok']('Delete')[_0x43ba9b('0x1801')](_0x43ba9b('0x1481'))[_0x43ba9b('0x24d0')](_0x35bcb2);_0x16890c[_0x43ba9b('0x2fa')](_0x496b73)[_0x43ba9b('0x2788')](function(){const _0x3e2949=_0x43ba9b;_0x3ed45f['userProfile']['delete']({'id':_0x8b1410['userProfile']['id']})[_0x3e2949('0x1714')][_0x3e2949('0x2788')](function(){const _0xc57c14=_0x3e2949;_0x283545()[_0xc57c14('0x1a90')](_0x8b1410[_0xc57c14('0x20b')],{'id':_0x8b1410[_0xc57c14('0x63c')]['id']}),_0x5a1255[_0xc57c14('0x173b')]({'title':_0xc57c14('0x1f67'),'msg':(_0x8b1410[_0xc57c14('0x63c')][_0xc57c14('0x1a8d')]||_0xc57c14('0x63c'))+_0xc57c14('0x14d4')}),_0x58b5fb(_0x8b1410[_0xc57c14('0x63c')]);})[_0x3e2949('0x1cb5')](function(_0x25bf99){const _0xeaac0c=_0x3e2949;if(_0x25bf99['data']&&_0x25bf99[_0xeaac0c('0x11fc')][_0xeaac0c('0x25be')]&&_0x25bf99['data'][_0xeaac0c('0x25be')][_0xeaac0c('0x2566')]){_0x8b1410[_0xeaac0c('0x25be')]=_0x25bf99[_0xeaac0c('0x11fc')][_0xeaac0c('0x25be')]||[{'message':_0x25bf99[_0xeaac0c('0x17df')](),'type':_0xeaac0c('0x2a3')}];for(let _0x3e33a7=0x0;_0x3e33a7<_0x25bf99[_0xeaac0c('0x11fc')][_0xeaac0c('0x25be')][_0xeaac0c('0x2566')];_0x3e33a7++){_0x5a1255[_0xeaac0c('0x5e8')]({'title':_0x25bf99[_0xeaac0c('0x11fc')]['errors'][_0x3e33a7]['type'],'msg':_0x25bf99[_0xeaac0c('0x11fc')][_0xeaac0c('0x25be')][_0x3e33a7][_0xeaac0c('0x15e2')]});}}else _0x5a1255[_0xeaac0c('0x5e8')]({'title':_0x25bf99[_0xeaac0c('0x1b51')]?_0xeaac0c('0x15d1')+_0x25bf99[_0xeaac0c('0x1b51')]+'\x20-\x20'+_0x25bf99[_0xeaac0c('0x22ce')]:'api.userProfile.delete','msg':_0x25bf99[_0xeaac0c('0x11fc')]?JSON[_0xeaac0c('0x1be0')](_0x25bf99[_0xeaac0c('0x11fc')][_0xeaac0c('0x15e2')]):_0x25bf99['message']||_0x25bf99[_0xeaac0c('0x17df')]()});});},function(){});}function _0x50fccf(_0x366f81){const _0x3445b1=_0x39ab5f,_0x151ce2=[];_0x366f81[_0x3445b1('0xe28')][_0x3445b1('0x1534')](function(_0x3b4fd8){const _0x4ce997=_0x3445b1;let _0x554709;switch(_0x3b4fd8){case'r':_0x554709='READ_PERMISSION';break;case'e':_0x554709=_0x4ce997('0x1b3b');break;case'd':_0x554709=_0x4ce997('0xea3');break;}_0x151ce2[_0x4ce997('0x13e3')](_0x54272b['instant'](_0x4ce997('0x131a')+_0x554709));}),_0x366f81[_0x3445b1('0x25e4')]=_0x151ce2['join'](',\x20');}function _0x179555(_0x197eb7){return _0x197eb7===null?undefined:new Date(_0x197eb7);}function _0x58b5fb(_0x58a243){const _0x5e23f1=_0x39ab5f;_0x16890c[_0x5e23f1('0x19d')](_0x58a243);}}const _0x15a587=_0x3b94c8;_0x1d824f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$state',_0x34e79e('0xd57'),_0x34e79e('0x519'),'userProfile',_0x34e79e('0x20b'),_0x34e79e('0x1a5c')];function _0x1d824f(_0x21b221,_0x4eafb2,_0x51b5e0,_0x15cef8,_0x21910d,_0x36f9f0,_0x538ed8){const _0x434e1f=_0x34e79e,_0x17bf78=this;_0x17bf78['newUserProfile']=!![],_0x17bf78['userProfile']=angular[_0x434e1f('0x2669')](_0x21910d),_0x17bf78['userProfiles']=_0x36f9f0,_0x17bf78['title']=_0x538ed8['instant'](_0x434e1f('0x2504'));_0x21910d&&_0x21910d[_0x434e1f('0x1a8d')]&&(_0x17bf78[_0x434e1f('0x14e4')]+=':\x20'+_0x21910d[_0x434e1f('0x1a8d')]);_0x17bf78[_0x434e1f('0x1073')]=_0x3b3baa,_0x17bf78[_0x434e1f('0xca7')]=_0x3f3e59;function _0x3b3baa(){const _0x42f49c=_0x434e1f;return _0x15cef8[_0x42f49c('0x63c')][_0x42f49c('0x1b8')]({'id':_0x21910d['id']},_0x17bf78[_0x42f49c('0x63c')])[_0x42f49c('0x1714')]['then'](function(_0x59a269){const _0x1f61a2=_0x42f49c;_0x2b5743(_0x59a269),_0x17bf78['userProfiles'][_0x1f61a2('0xc51')](_0x59a269[_0x1f61a2('0x1cbf')]()),_0x51b5e0[_0x1f61a2('0x173b')]({'title':_0x1f61a2('0x2475'),'msg':_0x17bf78[_0x1f61a2('0x63c')][_0x1f61a2('0x1a8d')]?_0x17bf78[_0x1f61a2('0x63c')][_0x1f61a2('0x1a8d')]+_0x1f61a2('0xd03'):''}),_0x4eafb2['go'](_0x1f61a2('0x549'),{'id':_0x59a269['id']}),_0x3f3e59(_0x59a269);})[_0x42f49c('0x1cb5')](function(_0x19ac09){const _0x4c9666=_0x42f49c;if(_0x19ac09[_0x4c9666('0x11fc')]&&_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x25be')]&&_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x25be')][_0x4c9666('0x2566')]){_0x17bf78[_0x4c9666('0x25be')]=_0x19ac09[_0x4c9666('0x11fc')]['errors']||[{'message':_0x19ac09[_0x4c9666('0x17df')](),'type':'api.userProfile.clone'}];for(let _0x6b31de=0x0;_0x6b31de<_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x25be')][_0x4c9666('0x2566')];_0x6b31de+=0x1){_0x51b5e0['error']({'title':_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x25be')][_0x6b31de][_0x4c9666('0x1d7')],'msg':_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x25be')][_0x6b31de][_0x4c9666('0x15e2')]});}}else _0x51b5e0[_0x4c9666('0x5e8')]({'title':_0x19ac09[_0x4c9666('0x1b51')]?'API:'+_0x19ac09[_0x4c9666('0x1b51')]+_0x4c9666('0x1b0b')+_0x19ac09[_0x4c9666('0x22ce')]:'api.userProfile.clone','msg':_0x19ac09[_0x4c9666('0x11fc')]?JSON[_0x4c9666('0x1be0')](_0x19ac09[_0x4c9666('0x11fc')][_0x4c9666('0x15e2')]):_0x19ac09[_0x4c9666('0x17df')]()});});}function _0x2b5743(_0x5554a4){const _0x4321ba=_0x434e1f,_0x3a032c=[];_0x5554a4['crudPermissions'][_0x4321ba('0x1534')](function(_0x4aa80f){const _0x311619=_0x4321ba;let _0x276087;switch(_0x4aa80f){case'r':_0x276087=_0x311619('0x1cc');break;case'e':_0x276087=_0x311619('0x1b3b');break;case'd':_0x276087='DELETE_PERMISSION';break;}_0x3a032c[_0x311619('0x13e3')](_0x538ed8[_0x311619('0x1b11')]('STAFF.'+_0x276087));}),_0x5554a4[_0x4321ba('0x25e4')]=_0x3a032c[_0x4321ba('0x185f')](',\x20');}function _0x3f3e59(_0x5afcfd){_0x21b221['hide'](_0x5afcfd);}}const _0x121448=_0x1d824f,_0x539de6=_0x18dd13['p']+_0x34e79e('0x8ef');_0x462b8e['$inject']=[_0x34e79e('0x1580'),_0x34e79e('0x123b'),'$translate','$q',_0x34e79e('0x519'),_0x34e79e('0x337'),_0x34e79e('0x1b04'),_0x34e79e('0xd57')];function _0x462b8e(_0x26cb1e,_0x2b98ce,_0x5171ed,_0x2b9437,_0x27fbbb,_0x4d4782,_0x52c8a2,_0x31521d){const _0x2eec22=_0x34e79e,_0x37f9b9=this;_0x37f9b9[_0x2eec22('0x63c')]={},_0x37f9b9[_0x2eec22('0x130d')]={},_0x37f9b9[_0x2eec22('0x24ce')]=_0x4d4782[_0x2eec22('0x276d')](),_0x37f9b9['modules']=_0x37f9b9[_0x2eec22('0x24ce')][0x0][_0x2eec22('0x17e1')],_0x37f9b9[_0x2eec22('0x22f2')]=[{'id':0x0,'name':_0x2eec22('0x1457'),'color':'green-A700-bg','info':_0x2eec22('0x217e'),'tag':_0x2eec22('0x1fff')},{'id':0x1,'name':_0x2eec22('0x1131'),'color':_0x2eec22('0x2116'),'info':_0x2eec22('0x78e'),'tag':_0x2eec22('0x230a')},{'id':0x2,'name':_0x2eec22('0x669'),'color':'grey-A400-bg','info':'No\x20resources\x20enabled','tag':_0x2eec22('0x1112')},{'id':0x3,'name':_0x2eec22('0x1aea'),'color':_0x2eec22('0xbb8'),'info':_0x2eec22('0x1fb'),'tag':'unlicensed'},{'id':0x4,'name':_0x2eec22('0x2744'),'color':_0x2eec22('0x363'),'info':'Unknown\x20status','tag':_0x2eec22('0x119')}],_0x37f9b9[_0x2eec22('0x26e9')]=[{'title':_0x2eec22('0xf1a'),'translate':'DASHBOARDS.DASHBOARDS','id':0x64}],_0x37f9b9[_0x2eec22('0x24eb')]=_0x4795e0,_0x37f9b9['onChangeEnableAllResources']=_0x7e552a,_0x37f9b9['manageResources']=_0x21a967,_0x37f9b9[_0x2eec22('0x1171')]=_0x41e962;function _0x4795e0(_0x4e8eff,_0x3e4134){const _0x17d5c4=_0x2eec22;_0x37f9b9[_0x17d5c4('0x63c')]=_0x4e8eff,_0x37f9b9[_0x17d5c4('0x130d')]=_0x3e4134;}function _0x7e552a(_0x2f5ead){const _0x55fe7b=_0x2eec22,_0x3a746a=typeof _0x2f5ead[_0x55fe7b('0x1167')]!=='undefined'&&!_0x2f5ead[_0x55fe7b('0x1167')][_0x55fe7b('0x1cfe')]?!![]:![],_0x5e6d4e=_0x2f5ead[_0x55fe7b('0x14e4')]===_0x55fe7b('0x24ff')?_0x55fe7b('0x2456'):_0x2f5ead[_0x55fe7b('0x14e4')];if(_0x2f5ead[_0x55fe7b('0x1b51')][_0x55fe7b('0x1a8d')]!=='Fully\x20Enabled'){const _0x3d4e6e=[];if(!_0x3a746a){const _0x21bc25=_0x2b98ce[_0x55fe7b('0x112e')]({'skipHide':!![]})[_0x55fe7b('0x14e4')]('Warning')[_0x55fe7b('0x1a95')](_0x5171ed[_0x55fe7b('0x1b11')](_0x55fe7b('0x1904'),{'sectionName':_0x5171ed[_0x55fe7b('0x1b11')](_0x2f5ead['translate'])}))[_0x55fe7b('0x10bc')]('Warning')['ok'](_0x5171ed[_0x55fe7b('0x1b11')]('STAFF.CONFIRM'))[_0x55fe7b('0x1801')](_0x5171ed[_0x55fe7b('0x1b11')]('STAFF.CANCEL'));_0x2b98ce[_0x55fe7b('0x2fa')](_0x21bc25)[_0x55fe7b('0x2788')](function(){const _0x2b6190=_0x55fe7b;switch(_0x5e6d4e){case _0x2b6190('0xf1a'):_0x283545()[_0x2b6190('0x155d')](_0x37f9b9['dashboardSections'],function(_0x91a82){const _0x1531cf=_0x2b6190;_0x3d4e6e[_0x1531cf('0x13e3')]({'category':_0x5e6d4e,'sectionId':_0x91a82['id'],'name':_0x91a82['title'],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x283545()[_0x1531cf('0x155d')](_0x37f9b9[_0x1531cf('0x63c')][_0x1531cf('0xe28')])['join']('')});});break;default:_0x283545()[_0x2b6190('0x155d')](_0x2f5ead[_0x2b6190('0x17e1')],function(_0xdefaf9){const _0x5cb411=_0x2b6190,_0x54296a=typeof _0xdefaf9['permissions']!=_0x5cb411('0xedb')&&_0xdefaf9[_0x5cb411('0x1167')][_0x5cb411('0xf0')]?!![]:![];if(!_0x54296a){let _0x263b58=_0xdefaf9[_0x5cb411('0x14e4')];switch(_0x5e6d4e){case _0x5cb411('0x224b'):_0x263b58=_0x263b58==='Projects'?'SquareProjects':_0x263b58;break;}_0x3d4e6e[_0x5cb411('0x13e3')]({'category':_0x5e6d4e,'sectionId':_0xdefaf9['id'],'name':_0x263b58,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x283545()[_0x5cb411('0x155d')](_0x37f9b9[_0x5cb411('0x63c')][_0x5cb411('0xe28')])[_0x5cb411('0x185f')]('')});}});break;}return _0x27fbbb[_0x2b6190('0x63c')][_0x2b6190('0xeda')]({'id':_0x37f9b9[_0x2b6190('0x63c')]['id']},_0x3d4e6e)[_0x2b6190('0x1714')][_0x2b6190('0x2788')](function(){const _0xf54159=_0x2b6190;_0x2f5ead['status']=_0x46df36(_0x2f5ead,'full'),_0x31521d[_0xf54159('0x173b')]({'title':_0x5171ed[_0xf54159('0x1b11')]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x5171ed[_0xf54159('0x1b11')](_0x2f5ead[_0xf54159('0x27f4')]),'userProfileName':_0x37f9b9[_0xf54159('0x63c')][_0xf54159('0x1a8d')]}),'msg':_0x5171ed['instant'](_0xf54159('0x260b'),{'sectionName':_0x5171ed[_0xf54159('0x1b11')](_0x2f5ead['translate']),'userProfileName':_0x37f9b9[_0xf54159('0x63c')][_0xf54159('0x1a8d')]})});});})[_0x55fe7b('0x1cb5')](function(_0x304cfc){const _0x3b1fa8=_0x55fe7b;_0x304cfc?_0x31521d['error']({'title':_0x304cfc[_0x3b1fa8('0x1b51')]?_0x3b1fa8('0x15d1')+_0x304cfc[_0x3b1fa8('0x1b51')]+_0x3b1fa8('0x1b0b')+_0x304cfc[_0x3b1fa8('0x22ce')]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x304cfc[_0x3b1fa8('0x1b51')]?JSON[_0x3b1fa8('0x1be0')](_0x304cfc[_0x3b1fa8('0x11fc')]):_0x304cfc[_0x3b1fa8('0x17df')]()}):_0x2f5ead['status']=_0x46df36(_0x2f5ead,_0x2f5ead[_0x3b1fa8('0x1b51')][_0x3b1fa8('0x1764')]);});}else return _0x3d4e6e['push']({'category':_0x5e6d4e,'sectionId':_0x2f5ead['id'],'name':_0x5e6d4e,'enabled':!![],'crudPermissions':_0x55fe7b('0x8cd')}),_0x27fbbb[_0x55fe7b('0x63c')][_0x55fe7b('0xeda')]({'id':_0x37f9b9[_0x55fe7b('0x63c')]['id']},_0x3d4e6e)[_0x55fe7b('0x1714')]['then'](function(){const _0x7874b9=_0x55fe7b;_0x2f5ead[_0x7874b9('0x1b51')]=_0x46df36(_0x2f5ead,_0x7874b9('0x1fff')),_0x31521d[_0x7874b9('0x173b')]({'title':_0x5171ed['instant'](_0x7874b9('0x6b9'),{'sectionName':_0x5171ed['instant'](_0x2f5ead[_0x7874b9('0x27f4')]),'userProfileName':_0x37f9b9[_0x7874b9('0x63c')][_0x7874b9('0x1a8d')]}),'msg':_0x5171ed[_0x7874b9('0x1b11')](_0x7874b9('0x1a80'),{'sectionName':_0x5171ed[_0x7874b9('0x1b11')](_0x2f5ead[_0x7874b9('0x27f4')]),'userProfileName':_0x37f9b9[_0x7874b9('0x63c')]['name']})});})[_0x55fe7b('0x1cb5')](function(_0x174c9b){const _0x480e49=_0x55fe7b;_0x31521d['error']({'title':_0x174c9b[_0x480e49('0x1b51')]?_0x480e49('0x15d1')+_0x174c9b[_0x480e49('0x1b51')]+'\x20-\x20'+_0x174c9b[_0x480e49('0x22ce')]:_0x480e49('0x1284'),'msg':_0x174c9b['status']?JSON[_0x480e49('0x1be0')](_0x174c9b['data']):_0x174c9b[_0x480e49('0x17df')]()});});}else{if(_0x2f5ead[_0x55fe7b('0x1b51')][_0x55fe7b('0x1a8d')]===_0x55fe7b('0x1457')){_0x2f5ead[_0x55fe7b('0x1b51')]=_0x46df36(_0x2f5ead,_0x55fe7b('0x1112'));let _0x294962=[];switch(_0x5e6d4e){case _0x55fe7b('0x1e92'):case _0x55fe7b('0xca2'):_0x294962=[_0x2f5ead['id']];break;case _0x55fe7b('0xf1a'):_0x294962=_0x283545()[_0x55fe7b('0x155d')](_0x37f9b9[_0x55fe7b('0x26e9')],function(_0x372b76){return _0x372b76['id'];});break;default:_0x294962=_0x283545()['map'](_0x2f5ead[_0x55fe7b('0x17e1')],function(_0x50d304){return _0x50d304['id'];});break;}return _0x27fbbb[_0x55fe7b('0x63c')][_0x55fe7b('0x265e')]({'id':_0x37f9b9[_0x55fe7b('0x63c')]['id'],'ids':_0x294962})[_0x55fe7b('0x1714')][_0x55fe7b('0x2788')](function(){const _0x25de03=_0x55fe7b;_0x31521d[_0x25de03('0x173b')]({'title':_0x5171ed[_0x25de03('0x1b11')](_0x25de03('0x4b4'),{'sectionName':_0x5171ed[_0x25de03('0x1b11')](_0x2f5ead[_0x25de03('0x27f4')]),'userProfileName':_0x37f9b9['userProfile']['name']}),'msg':_0x5171ed['instant'](_0x25de03('0x73c'),{'sectionName':_0x5171ed[_0x25de03('0x1b11')](_0x2f5ead[_0x25de03('0x27f4')]),'userProfileName':_0x37f9b9[_0x25de03('0x63c')][_0x25de03('0x1a8d')]})});})['catch'](function(_0x16feea){const _0x1226d8=_0x55fe7b;_0x31521d[_0x1226d8('0x5e8')]({'title':_0x16feea[_0x1226d8('0x1b51')]?_0x1226d8('0x15d1')+_0x16feea['status']+_0x1226d8('0x1b0b')+_0x16feea[_0x1226d8('0x22ce')]:_0x1226d8('0x114d'),'msg':_0x16feea['status']?JSON['stringify'](_0x16feea[_0x1226d8('0x11fc')]):_0x16feea[_0x1226d8('0x17df')]()});});}}}function _0x21a967(_0x5c9682,_0x5c5120){const _0xf19a9d=_0x2eec22,_0x287caa=_0x2b98ce[_0xf19a9d('0x2fa')]({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0x539de6,'parent':angular['element'](_0x26cb1e[_0xf19a9d('0x945')]),'targetEvent':_0x5c5120,'clickOutsideToClose':![],'locals':{'userProfile':_0x37f9b9[_0xf19a9d('0x63c')],'userProfiles':[],'section':_0x5c9682}});_0x287caa[_0xf19a9d('0x2788')](function(){_0x41e962(_0x5c9682);});}function _0x46df36(_0x1b7a6c,_0x31551e){const _0x4636cb=_0x2eec22;_0x1b7a6c['allResourcesEnabled']=_0x1665ab(_0x31551e);switch(_0x31551e){case _0x4636cb('0x1fff'):return _0x283545()['find'](_0x37f9b9[_0x4636cb('0x22f2')],[_0x4636cb('0x1764'),_0x4636cb('0x1fff')]);case _0x4636cb('0x230a'):return _0x283545()[_0x4636cb('0x20e8')](_0x37f9b9['statusList'],[_0x4636cb('0x1764'),_0x4636cb('0x230a')]);case'disabled':return _0x283545()[_0x4636cb('0x20e8')](_0x37f9b9[_0x4636cb('0x22f2')],[_0x4636cb('0x1764'),_0x4636cb('0x1112')]);case _0x4636cb('0x2113'):return _0x283545()[_0x4636cb('0x20e8')](_0x37f9b9['statusList'],[_0x4636cb('0x1764'),_0x4636cb('0x2113')]);case'unknown':return _0x283545()[_0x4636cb('0x20e8')](_0x37f9b9['statusList'],[_0x4636cb('0x1764'),'unknown']);default:return _0x283545()[_0x4636cb('0x20e8')](_0x37f9b9[_0x4636cb('0x22f2')],[_0x4636cb('0x1764'),'unknown']);}}function _0x4c42ef(_0x1ff637){return _0x2b9437(function(_0x98099d,_0x438f00){const _0xa1f11f=a0_0x14e7,_0x461757=typeof _0x1ff637[_0xa1f11f('0x2645')]!==_0xa1f11f('0xedb')&&_0x283545()[_0xa1f11f('0x1d4e')](_0x1ff637[_0xa1f11f('0x44b')],_0xa1f11f('0x107f'));_0x461757?_0xfb10d2(_0x1ff637)[_0xa1f11f('0x2788')](function(_0x25d3a7){_0x98099d(_0x25d3a7);})['catch'](function(_0x3f8c8c){_0x438f00(_0x3f8c8c);}):_0x574f66(_0x1ff637)['then'](function(_0x4a46f2){_0x98099d(_0x4a46f2);})[_0xa1f11f('0x1cb5')](function(_0x2a3724){_0x438f00(_0x2a3724);});});}function _0xfb10d2(_0x5d2f88){return _0x2b9437(function(_0x13b389,_0x3609f1){const _0x19b8be=a0_0x14e7,_0x4affb3=typeof _0x5d2f88[_0x19b8be('0x2645')]!==_0x19b8be('0xedb')&&_0x5d2f88[_0x19b8be('0x2645')]===_0x19b8be('0x2533')?_0x19b8be('0x1'):_0x19b8be('0x2e4');return _0x27fbbb[_0x5d2f88[_0x19b8be('0x44b')]][_0x19b8be('0x1335')]({'fields':'id,name,strategy,type','channel':_0x5d2f88[_0x19b8be('0x2645')]===_0x19b8be('0x2533')?_0x19b8be('0x1f60'):_0x5d2f88[_0x19b8be('0x2645')],'type':_0x4affb3,'nolimit':!![]})[_0x19b8be('0x1714')]['then'](function(_0x29f40b){_0x13b389(_0x29f40b);})[_0x19b8be('0x1cb5')](function(_0x28902b){_0x3609f1(_0x28902b);});});}function _0x574f66(_0x442f28){return _0x2b9437(function(_0x1b7b3c,_0x1c5d7a){const _0x5957f4=a0_0x14e7;let _0x22e96c,_0x28b8ed,_0x4c8886=![],_0x5e6816=![];switch(_0x442f28['route']){case _0x5957f4('0x2636'):switch(_0x442f28[_0x5957f4('0x14e4')]){case _0x5957f4('0x9c5'):_0x22e96c='inbound';break;case _0x5957f4('0x1fa1'):_0x22e96c=_0x5957f4('0x1');break;case _0x5957f4('0x6c0'):_0x22e96c=_0x5957f4('0x2838');break;}break;case _0x5957f4('0x2630'):_0x4c8886=!![];break;case'disposition':_0x5e6816=!![];break;case'user':switch(_0x442f28[_0x5957f4('0x14e4')]){case _0x5957f4('0x1f72'):_0x28b8ed=_0x5957f4('0x188b');break;case'Telephones':_0x28b8ed='telephone';break;case _0x5957f4('0x23f4'):_0x28b8ed='user';break;}break;}if(_0x442f28[_0x5957f4('0x14e4')]===_0x5957f4('0x1be5')){if(_0x442f28[_0x5957f4('0xbe6')])switch(_0x442f28[_0x5957f4('0xbe6')]){case'default':_0x442f28['route']='analyticDefaultReport';break;case _0x5957f4('0x1d56'):_0x442f28[_0x5957f4('0x44b')]=_0x5957f4('0x193d');break;}else return _0x27fbbb['analyticDefaultReport'][_0x5957f4('0x1335')]({'nolimit':!![]})['$promise']['then'](function(_0x10309b){const _0x3480bd=_0x5957f4;_0x27fbbb[_0x3480bd('0x193d')][_0x3480bd('0x1335')]({'nolimit':!![]})['$promise']['then'](function(_0x3213b0){const _0x4c049a=_0x3480bd,_0x1ba7f1=_0x283545()[_0x4c049a('0x209b')](_0x10309b[_0x4c049a('0x25df')],_0x3213b0[_0x4c049a('0x25df')]);_0x1b7b3c({'count':_0x1ba7f1['length'],'rows':_0x1ba7f1[_0x4c049a('0x25df')]});});})[_0x5957f4('0x1cb5')](function(_0x535d49){_0x1c5d7a(_0x535d49);});}return _0x27fbbb[_0x442f28['route']][_0x5957f4('0x1335')]({'role':_0x28b8ed?_0x28b8ed:undefined,'type':_0x22e96c?_0x22e96c:undefined,'VoiceExtensionId':_0x22e96c?_0x5957f4('0x954'):undefined,'IntervalId':_0x4c8886?'null':undefined,'MailAccountId':_0x5e6816?'null':undefined,'FaxAccountId':_0x5e6816?'null':undefined,'SmsAccountId':_0x5e6816?_0x5957f4('0x954'):undefined,'OpenchannelAccountId':_0x5e6816?_0x5957f4('0x954'):undefined,'ChatWebsiteId':_0x5e6816?_0x5957f4('0x954'):undefined,'WhatsappAccountId':_0x5e6816?_0x5957f4('0x954'):undefined,'ListId':_0x5e6816?'null':undefined,'nolimit':!![]})[_0x5957f4('0x1714')][_0x5957f4('0x2788')](function(_0x9c5e3d){_0x1b7b3c(_0x9c5e3d);})[_0x5957f4('0x1cb5')](function(_0x5168b3){_0x1c5d7a(_0x5168b3);});});}function _0x1c9014(_0x3a57fd,_0x527ce2){return _0x2b9437(function(_0x17c930,_0x1891d9){const _0x3c8a81=a0_0x14e7;_0x27fbbb[_0x3c8a81('0x1050')]['get']({'sectionId':_0x527ce2})['$promise'][_0x3c8a81('0x2788')](function(_0x223c0b){return _0x4c42ef(_0x3a57fd)['then'](function(_0x40da71){const _0x3c9f05=a0_0x14e7;return _0x283545()['differenceBy'](_0x223c0b[_0x3c9f05('0x25df')],_0x40da71[_0x3c9f05('0x25df')],'id');});})[_0x3c8a81('0x2788')](function(_0x142106){const _0x2586df=_0x3c8a81;_0x283545()[_0x2586df('0x213d')](_0x142106)?_0x17c930():_0x1891d9();})[_0x3c8a81('0x1cb5')](function(_0x3e0018){_0x1891d9(_0x3e0018);});});}function _0x101783(_0x527760,_0x4e9401,_0x156385){const _0x33daa3=_0x2eec22,_0xfd0505=_0x527760&&_0x527760[_0x33daa3('0x2566')]>0x0?_0x527760[0x0]:null;if(!_0xfd0505)return _0x156385;const _0x30ddb4=_0x283545()[_0x33daa3('0x20e8')](_0x4e9401,['sectionId',_0xfd0505['id']]);if(_0x30ddb4)return _0x4e9401=_0x283545()[_0x33daa3('0x1a90')](_0x4e9401,[_0x33daa3('0x201d'),_0xfd0505['id']]),_0x1c9014(_0xfd0505,_0x30ddb4['id'])['then'](function(){const _0x302e97=_0x33daa3;return _0x156385=_0x302e97('0x1fff'),_0x101783(_0x527760['shift'](),_0x4e9401,_0x156385);})[_0x33daa3('0x1cb5')](function(_0x1a60e4){const _0x24b318=_0x33daa3;return _0x2b9437[_0x24b318('0x9')](_0x1a60e4);});}function _0x41e962(_0x14a15e){const _0x595d92=_0x2eec22,_0x53cfef=_0x14a15e[_0x595d92('0x14e4')]===_0x595d92('0x24ff')?_0x595d92('0x2456'):_0x14a15e[_0x595d92('0x14e4')];if(!_0x37f9b9[_0x595d92('0x130d')]){_0x14a15e[_0x595d92('0x1b51')]=_0x46df36(_0x14a15e,_0x595d92('0x119'));return;}typeof _0x14a15e[_0x595d92('0x1167')]!==_0x595d92('0xedb')&&!_0x14a15e['permissions']['association']?_0x27fbbb[_0x595d92('0xec9')][_0x595d92('0x1335')]({'userProfileId':_0x37f9b9[_0x595d92('0x63c')]['id'],'sectionId':_0x14a15e['id']})[_0x595d92('0x1714')][_0x595d92('0x2788')](function(_0x2c3714){const _0x48f94e=_0x595d92,_0x4c2f05=_0x2c3714&&_0x2c3714['rows'][_0x48f94e('0x2566')]===0x1?_0x2c3714[_0x48f94e('0x25df')][0x0]:null,_0x48d9bc=_0x4c2f05?_0x48f94e('0x1fff'):_0x48f94e('0x1112');_0x14a15e[_0x48f94e('0x1b51')]=_0x46df36(_0x14a15e,_0x48d9bc);}):typeof _0x14a15e[_0x595d92('0x130d')]!==_0x595d92('0xedb')&&!_0x37f9b9[_0x595d92('0x130d')][_0x14a15e[_0x595d92('0x130d')]]?_0x14a15e[_0x595d92('0x1b51')]=_0x46df36(_0x14a15e,'unlicensed'):_0x27fbbb[_0x595d92('0xec9')]['get']({'userProfileId':_0x37f9b9[_0x595d92('0x63c')]['id'],'category':_0x53cfef})[_0x595d92('0x1714')]['then'](function(_0x28ec59){const _0x596237=_0x595d92,_0x29cfb0=_0x28ec59&&_0x28ec59['rows']&&_0x28ec59[_0x596237('0x25df')]['length']>0x0?_0x28ec59['rows']:[];if(_0x14a15e[_0x596237('0x14e4')]===_0x596237('0xf1a'))return _0x283545()['isEmpty'](_0x29cfb0)?_0x596237('0x1112'):_0x29cfb0[0x0]['autoAssociation']?'full':_0x27fbbb[_0x596237('0x1050')][_0x596237('0x1335')]({'sectionId':_0x29cfb0[0x0]['id'],'resourceId':0x65})['$promise'][_0x596237('0x2788')](function(_0xe9f9a0){const _0x7cf315=_0x596237,_0x4d7115=_0xe9f9a0&&_0xe9f9a0[_0x7cf315('0x25df')]?_0xe9f9a0[_0x7cf315('0x25df')][0x0]:null;return _0x4d7115?'full':'partial';});else{const _0x942213=_0x283545()[_0x596237('0x916')](_0x14a15e['children'],function(_0x3947ce){const _0x1fb80c=_0x596237;return typeof _0x3947ce[_0x1fb80c('0x1167')]!==_0x1fb80c('0xedb')&&_0x3947ce['permissions'][_0x1fb80c('0xf0')]?undefined:_0x3947ce;});if(_0x29cfb0[_0x596237('0x2566')]===_0x942213[_0x596237('0x2566')]){if(_0x283545()[_0x596237('0x111e')](_0x29cfb0,['autoAssociation',!![]]))return _0x596237('0x1fff');else{const _0x33f75f=_0x283545()[_0x596237('0x916')](_0x942213,function(_0x3fbbdd){const _0x4ea152=_0x596237;return typeof _0x3fbbdd[_0x4ea152('0x1167')]!==_0x4ea152('0xedb')&&!_0x3fbbdd[_0x4ea152('0x1167')]['association']?undefined:_0x3fbbdd;});return _0x101783(_0x33f75f,_0x29cfb0,_0x596237('0x230a'));}}else return _0x29cfb0[_0x596237('0x2566')]===0x0?'disabled':_0x596237('0x230a');}})[_0x595d92('0x2788')](function(_0x28628e){_0x14a15e['status']=_0x46df36(_0x14a15e,_0x28628e);})[_0x595d92('0x1cb5')](function(_0x3dcd32){const _0x215ea5=_0x595d92,_0xa786ee=_0x3dcd32?_0x215ea5('0x119'):_0x215ea5('0x230a');_0x14a15e['status']=_0x46df36(_0x14a15e,_0xa786ee),_0x3dcd32&&_0x31521d[_0x215ea5('0x5e8')]({'title':_0x3dcd32['status']?'API:'+_0x3dcd32['status']+'\x20-\x20'+_0x3dcd32[_0x215ea5('0x22ce')]:_0x215ea5('0x1106')+_0x53cfef[_0x215ea5('0x25e6')]()+')','msg':_0x3dcd32[_0x215ea5('0x1b51')]?JSON[_0x215ea5('0x1be0')](_0x3dcd32['data']):_0x3dcd32[_0x215ea5('0x17df')]()});});}function _0x1665ab(_0x5a4e8d){const _0x5c412c=_0x2eec22;return _0x5a4e8d===_0x5c412c('0x1fff')?!![]:![];}}const _0x33efe8=_0x462b8e;_0x4cf909[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x63c'),_0x34e79e('0x20b'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),'section'];function _0x4cf909(_0x21d52d,_0x5b566d,_0x1e5b22,_0x293446,_0x430f1d,_0x574fb6,_0x431fc2,_0x1e9d7f,_0x421322,_0x15bbc6){const _0x2a221a=_0x34e79e,_0x515570=this;_0x515570[_0x2a221a('0x63c')]=_0x574fb6,_0x515570['penalty']=0x0,_0x515570[_0x2a221a('0xb13')]=angular[_0x2a221a('0x2669')](_0x15bbc6),_0x515570[_0x2a221a('0x14e4')]=_0x1e9d7f[_0x2a221a('0x1b11')](_0x2a221a('0xdd2'),{'sectionName':_0x1e9d7f['instant'](_0x515570[_0x2a221a('0xb13')][_0x2a221a('0x27f4')])}),_0x515570[_0x2a221a('0x117b')]=[],_0x515570[_0x2a221a('0x283f')]=[],_0x515570['subsections']=_0x283545()[_0x2a221a('0x916')](_0x515570['section'][_0x2a221a('0x17e1')],function(_0x19ef17){const _0xc77572=_0x2a221a;return typeof _0x19ef17['permissions']!=_0xc77572('0xedb')&&_0x19ef17[_0xc77572('0x1167')][_0xc77572('0xf0')]?undefined:_0x19ef17;}),_0x515570['dashboardSections']=[{'title':'Dashboards','translate':'DASHBOARDS.DASHBOARDS','id':0x64}],_0x515570[_0x2a221a('0x638')]=[];_0x515570['section'][_0x2a221a('0x14e4')]==='Dashboards'&&(_0x515570['dashboardItems']=_0x515570[_0x2a221a('0x9b2')],_0x515570['subsections']=_0x515570[_0x2a221a('0x26e9')]);_0x515570[_0x2a221a('0x156')]=null,_0x515570[_0x2a221a('0x1b9')]=null,_0x515570[_0x2a221a('0x69e')]=[],_0x515570['closeDialog']=_0x449cc6,_0x515570[_0x2a221a('0x10d5')]=_0x3072fd,_0x515570['onChangeVisibility']=_0x3d9c64,_0x515570[_0x2a221a('0x2483')]=_0x2544e2,_0x515570[_0x2a221a('0x1a7b')]=_0x3bc685,_0x515570['setPermission']=_0x141f32,_0x515570[_0x2a221a('0x1dab')]=_0x405e0a,_0x515570['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2a221a('0x1a8d'),'line1':_0x2a221a('0x1a8d'),'line2':'','line3':'','line4':'fullPath','labelAll':_0x1e9d7f['instant']('STAFF.PERMISSIONS_ALL_RESOURCES'),'labelSelected':_0x1e9d7f['instant']('STAFF.PERMISSIONS_SELECTED_RESOURCES'),'labelSearch':_0x1e9d7f[_0x2a221a('0x1b11')](_0x2a221a('0x176b')),'transferCallback':function(_0x6e44d,_0x5704dd){const _0x5473be=_0x2a221a;_0x45e8a3(!![]),_0x5704dd?(_0x515570[_0x5473be('0x156')][_0x5473be('0x283f')]=_0x283545()[_0x5473be('0xaac')](_0x515570['selectedSection'][_0x5473be('0x283f')],_0x6e44d,'id'),_0x515570[_0x5473be('0x156')]['autoAssociation']=![]):_0x515570[_0x5473be('0x156')][_0x5473be('0x283f')]=_0x283545()[_0x5473be('0x15b9')](_0x515570[_0x5473be('0x156')][_0x5473be('0x283f')],_0x6e44d,'id'),_0x515570[_0x5473be('0x156')][_0x5473be('0x14e4')]==='Reports'&&_0x21e1ef();}};function _0x2a7ab6(){return _0x1e5b22(function(_0x281243,_0x371dc5){const _0x2f49fd=a0_0x14e7,_0x3d3104=typeof _0x515570[_0x2f49fd('0x156')][_0x2f49fd('0x2645')]!==_0x2f49fd('0xedb')&&_0x515570[_0x2f49fd('0x156')][_0x2f49fd('0x2645')]===_0x2f49fd('0x2533')?'outbound':'inbound';return _0x430f1d[_0x515570[_0x2f49fd('0x156')][_0x2f49fd('0x44b')]][_0x2f49fd('0x1335')]({'fields':'id,name,strategy,type','channel':_0x515570['selectedSection'][_0x2f49fd('0x2645')]===_0x2f49fd('0x2533')?'voice':_0x515570[_0x2f49fd('0x156')][_0x2f49fd('0x2645')],'type':_0x3d3104,'nolimit':!![]})['$promise'][_0x2f49fd('0x2788')](function(_0x579488){_0x281243(_0x579488);})['catch'](function(_0x539f3c){_0x371dc5(_0x539f3c);});});}function _0x5dce89(){return _0x1e5b22(function(_0x97b758,_0x17b1e7){const _0x3fbefc=a0_0x14e7;let _0x53dc2c,_0xaa65e4,_0x2896af=![],_0x3d4ec2=![];if(_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0x44b')]===_0x3fbefc('0x2636'))switch(_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0x14e4')]){case _0x3fbefc('0x9c5'):_0x53dc2c=_0x3fbefc('0x2e4');break;case'OutboundRoutes':_0x53dc2c=_0x3fbefc('0x1');break;case'InternalRoutes':_0x53dc2c=_0x3fbefc('0x2838');break;}if(_0x515570[_0x3fbefc('0x156')]['route']===_0x3fbefc('0x1e6a'))switch(_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0x14e4')]){case _0x3fbefc('0x1f72'):_0xaa65e4=_0x3fbefc('0x188b');break;case _0x3fbefc('0x5da'):_0xaa65e4=_0x3fbefc('0x23ab');break;case _0x3fbefc('0x23f4'):_0xaa65e4='user';break;}_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0x44b')]===_0x3fbefc('0x2630')&&(_0x2896af=!![]);_0x515570['selectedSection']['route']===_0x3fbefc('0x1db2')&&(_0x3d4ec2=!![]);_0x515570['selectedSection'][_0x3fbefc('0x14e4')]==='Reports'&&(_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0x44b')]=_0x515570[_0x3fbefc('0x156')][_0x3fbefc('0xbe6')]==='default'?'analyticDefaultReport':'analyticCustomReport');if(_0x515570['selectedSection']['title']===_0x3fbefc('0xf1a'))_0x97b758({'count':0x1,'rows':[{'id':0x65,'name':_0x1e9d7f[_0x3fbefc('0x1b11')]('DASHBOARDS.GENERAL')}]});else return _0x430f1d[_0x515570[_0x3fbefc('0x156')]['route']][_0x3fbefc('0x1335')]({'role':_0xaa65e4?_0xaa65e4:undefined,'type':_0x53dc2c?_0x53dc2c:undefined,'VoiceExtensionId':_0x53dc2c?'null':undefined,'IntervalId':_0x2896af?_0x3fbefc('0x954'):undefined,'MailAccountId':_0x3d4ec2?_0x3fbefc('0x954'):undefined,'FaxAccountId':_0x3d4ec2?_0x3fbefc('0x954'):undefined,'SmsAccountId':_0x3d4ec2?_0x3fbefc('0x954'):undefined,'OpenchannelAccountId':_0x3d4ec2?_0x3fbefc('0x954'):undefined,'ChatWebsiteId':_0x3d4ec2?'null':undefined,'WhatsappAccountId':_0x3d4ec2?_0x3fbefc('0x954'):undefined,'ListId':_0x3d4ec2?'null':undefined,'nolimit':!![]})[_0x3fbefc('0x1714')][_0x3fbefc('0x2788')](function(_0x31b42e){_0x97b758(_0x31b42e);})[_0x3fbefc('0x1cb5')](function(_0x1fa6d1){_0x17b1e7(_0x1fa6d1);});});}function _0x5e4e7a(){const _0x179928=_0x2a221a,_0x1eb17c=typeof _0x515570[_0x179928('0x156')][_0x179928('0x230b')]!=_0x179928('0xedb')?_0x515570[_0x179928('0x156')][_0x179928('0x230b')]:![];return _0x1e5b22(function(_0x107f6d,_0x2dd2fd){const _0x308853=_0x179928;_0x430f1d[_0x308853('0xec9')][_0x308853('0x1335')]({'userProfileId':_0x515570[_0x308853('0x63c')]['id'],'sectionId':_0x515570[_0x308853('0x156')]['id']})['$promise'][_0x308853('0x2788')](function(_0x2c3b5d){const _0x2cf6e9=_0x308853,_0x104821=_0x2c3b5d&&_0x2c3b5d[_0x2cf6e9('0x25df')]?_0x2c3b5d[_0x2cf6e9('0x25df')][0x0]:null;!_0x1eb17c&&(_0x515570[_0x2cf6e9('0x156')][_0x2cf6e9('0x14f4')]=_0x104821?!!_0x104821[_0x2cf6e9('0x14f4')]:![],_0x515570['selectedSection']['autoAssociation']=_0x104821?!!_0x104821[_0x2cf6e9('0x1c0a')]:![],_0x515570[_0x2cf6e9('0x156')][_0x2cf6e9('0xe28')]=_0x104821?_0x348b60(_0x104821['crudPermissions']):_0x348b60(_0x515570[_0x2cf6e9('0x63c')]['crudPermissions'])),_0x107f6d(_0x104821);})['catch'](function(_0x2b7a76){_0x2dd2fd(_0x2b7a76);});});}function _0x32ed54(){return _0x1e5b22(function(_0x2c1529,_0x4cea47){const _0x2600e8=a0_0x14e7;!_0x515570[_0x2600e8('0x1b9')]?_0x2c1529(null):_0x430f1d['userProfileResource'][_0x2600e8('0x1335')]({'sectionId':_0x515570[_0x2600e8('0x1b9')]['id'],'nolimit':!![]})[_0x2600e8('0x1714')][_0x2600e8('0x2788')](function(_0x105787){_0x2c1529(_0x105787);})[_0x2600e8('0x1cb5')](function(_0x575917){_0x4cea47(_0x575917);});});}function _0x4e7018(){return _0x1e5b22(function(_0x554824,_0x4671fe){const _0x24d058=a0_0x14e7,_0x16faae=typeof _0x515570[_0x24d058('0x156')][_0x24d058('0x2645')]!=='undefined'&&_0x283545()[_0x24d058('0x1d4e')](_0x515570[_0x24d058('0x156')]['route'],'Queue');_0x16faae?_0x2a7ab6()[_0x24d058('0x2788')](function(_0x472610){_0x554824(_0x472610);})[_0x24d058('0x1cb5')](function(_0x3125f6){_0x4671fe(_0x3125f6);}):_0x5dce89()[_0x24d058('0x2788')](function(_0x3d2f85){_0x554824(_0x3d2f85);})[_0x24d058('0x1cb5')](function(_0x2c6a08){_0x4671fe(_0x2c6a08);});});}function _0x496a24(){const _0x3dca36=_0x2a221a,_0x2c20fe=typeof _0x515570[_0x3dca36('0x156')][_0x3dca36('0x230b')]!='undefined'?_0x515570['selectedSection'][_0x3dca36('0x230b')]:![];let _0x14175e=[];return _0x32ed54()[_0x3dca36('0x2788')](function(_0x232db6){const _0x3a5fe8=_0x3dca36;return _0x14175e=_0x232db6&&_0x232db6['rows']?_0x232db6[_0x3a5fe8('0x25df')]:[],_0x515570[_0x3a5fe8('0x156')][_0x3a5fe8('0x14e4')]===_0x3a5fe8('0x1be5')&&(_0x515570[_0x3a5fe8('0xaa')]=!_0x515570[_0x3a5fe8('0xaa')]?_0x14175e:_0x515570['associatedReports'],_0x14175e=_0x28623d(_0x515570[_0x3a5fe8('0xaa')])),typeof _0x515570[_0x3a5fe8('0x156')][_0x3a5fe8('0x1167')]!==_0x3a5fe8('0xedb')&&!_0x515570[_0x3a5fe8('0x156')]['permissions'][_0x3a5fe8('0x1cfe')]?{'rows':[]}:_0x4e7018();})[_0x3dca36('0x2788')](function(_0xbfc461){const _0x3d0dbb=_0x3dca36;_0x515570[_0x3d0dbb('0x117b')]=_0xbfc461[_0x3d0dbb('0x25df')]?_0x283545()[_0x3d0dbb('0x155d')](_0xbfc461[_0x3d0dbb('0x25df')],function(_0xe01447){const _0x29edc1=_0x3d0dbb;return _0x515570['selectedSection'][_0x29edc1('0x14e4')]===_0x29edc1('0x1be5')&&(_0xe01447[_0x29edc1('0x18ab')]=_0x7b6632(_0xe01447[_0x29edc1('0x1734')])[_0x29edc1('0x10a4')]('\x20','_')),_0xe01447[_0x29edc1('0x68d')]=!![],_0xe01447;}):[];!_0x2c20fe&&(_0x515570['selectedSection'][_0x3d0dbb('0x283f')]=_0x283545()[_0x3d0dbb('0x155d')](_0x14175e,function(_0x387644){const _0x58ac09=_0x3d0dbb;return _0x283545()[_0x58ac09('0x20e8')](_0x515570[_0x58ac09('0x117b')],{'id':_0x387644[_0x58ac09('0x2707')]});}));const _0xd61495=_0x283545()['differenceBy'](_0x515570['selectedSection'][_0x3d0dbb('0x283f')],_0x515570[_0x3d0dbb('0x117b')],'id');!_0x283545()[_0x3d0dbb('0x213d')](_0xd61495)&&(_0x515570['selectedSection'][_0x3d0dbb('0x283f')]=_0x283545()['pullAllBy'](_0x515570[_0x3d0dbb('0x156')]['selectedItems'],_0xd61495,'id'));let _0x151faa;switch(_0x515570['selectedSection'][_0x3d0dbb('0x14e4')]){case _0x3d0dbb('0x1b38'):_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')]=_0x283545()[_0x3d0dbb('0x916')](_0x515570[_0x3d0dbb('0x117b')],function(_0x1d9851){const _0x145831=_0x3d0dbb;if(_0x1d9851[_0x145831('0x5e6')])return _0x1d9851[_0x145831('0x68d')]=![],_0x1d9851;else{const _0x3d1923=_0x283545()[_0x145831('0x20e8')](_0x14175e,{'resourceId':_0x1d9851['id']});if(typeof _0x3d1923!==_0x145831('0xedb'))return _0x1d9851['isValid']=!![],_0x1d9851;}});break;case _0x3d0dbb('0x3b5'):_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')]=_0x283545()[_0x3d0dbb('0x916')](_0x515570[_0x3d0dbb('0x117b')],function(_0x926352){const _0x45a1c4=_0x3d0dbb;if(_0x926352[_0x45a1c4('0x5e6')])return _0x926352['isValid']=![],_0x926352;else{const _0x2bdad7=_0x283545()['find'](_0x14175e,{'resourceId':_0x926352['id']});if(typeof _0x2bdad7!==_0x45a1c4('0xedb'))return _0x926352[_0x45a1c4('0x68d')]=!![],_0x926352;}});break;case _0x3d0dbb('0x1be5'):_0x151faa=_0x40a144(_0x515570[_0x3d0dbb('0x69e')]),_0x515570['selectedSection'][_0x3d0dbb('0x283f')]=_0x347ea6(_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')]),_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')]=_0x283545()[_0x3d0dbb('0x15b9')](_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')],_0x151faa,'id');break;}_0x515570['dualMultiselectOptions']['selectedItems']=_0x515570[_0x3d0dbb('0x156')][_0x3d0dbb('0x283f')],_0x515570[_0x3d0dbb('0x121')]['items']=_0x283545()[_0x3d0dbb('0x432')](_0x515570['items'],_0x515570[_0x3d0dbb('0x121')]['selectedItems'],'id');})[_0x3dca36('0x1cb5')](function(_0x51b9ab){const _0x23ffe3=_0x3dca36;_0x293446[_0x23ffe3('0x5e8')]({'title':_0x51b9ab['status']?_0x23ffe3('0x15d1')+_0x51b9ab[_0x23ffe3('0x1b51')]+_0x23ffe3('0x1b0b')+_0x51b9ab[_0x23ffe3('0x22ce')]:'SYSTEM:GET'+_0x515570['selectedSection']['title'][_0x23ffe3('0x25e6')](),'msg':_0x51b9ab[_0x23ffe3('0x1b51')]?JSON[_0x23ffe3('0x1be0')](_0x51b9ab[_0x23ffe3('0x11fc')]):_0x51b9ab[_0x23ffe3('0x17df')]()});});}function _0x3072fd(){const _0xad65bf=_0x2a221a;return _0x5e4e7a()[_0xad65bf('0x2788')](function(_0x42aac8){const _0xcb482f=_0xad65bf;_0x515570[_0xcb482f('0x1b9')]=_0x42aac8;if(_0x515570[_0xcb482f('0x156')][_0xcb482f('0x14e4')]===_0xcb482f('0x1be5'))return _0x173fda()[_0xcb482f('0x2788')](function(){const _0x7da47f=_0xcb482f;if(!_0x515570[_0x7da47f('0x156')][_0x7da47f('0xbe6')])return _0x32ed54()[_0x7da47f('0x2788')](function(_0x266906){const _0x4ff0dd=_0x7da47f;_0x515570[_0x4ff0dd('0x69e')]=_0x266906?_0x283545()[_0x4ff0dd('0x155d')](_0x266906['rows'],function(_0x14a791){const _0x2cf2f9=_0x4ff0dd;return{'id':_0x14a791[_0x2cf2f9('0x2707')],'name':_0x14a791[_0x2cf2f9('0x1a8d')],'type':_0x14a791[_0x2cf2f9('0x1d7')]};}):[];});})[_0xcb482f('0x1cb5')](function(_0x52df3f){const _0x359645=_0xcb482f;_0x293446['error']({'title':_0x52df3f[_0x359645('0x1b51')]?_0x359645('0x15d1')+_0x52df3f['status']+_0x359645('0x1b0b')+_0x52df3f[_0x359645('0x22ce')]:_0x359645('0x14c0'),'msg':_0x52df3f['data']?JSON[_0x359645('0x1be0')](_0x52df3f[_0x359645('0x11fc')]):_0x52df3f[_0x359645('0x17df')]()});});else _0x496a24();})[_0xad65bf('0x1cb5')](function(_0x3c7f32){const _0x3d6d32=_0xad65bf;_0x293446[_0x3d6d32('0x5e8')]({'title':_0x3c7f32[_0x3d6d32('0x1b51')]?_0x3d6d32('0x15d1')+_0x3c7f32[_0x3d6d32('0x1b51')]+'\x20-\x20'+_0x3c7f32[_0x3d6d32('0x22ce')]:_0x3d6d32('0x2444')+_0x515570['selectedSection'][_0x3d6d32('0x14e4')][_0x3d6d32('0x25e6')](),'msg':_0x3c7f32[_0x3d6d32('0x1b51')]?JSON[_0x3d6d32('0x1be0')](_0x3c7f32['data']):_0x3c7f32[_0x3d6d32('0x17df')]()});});}function _0x348b60(_0x5dedf9){const _0x4bf950=_0x2a221a;return _0x5dedf9&&(_0x515570['selectedSection']['allowEdit']=_0x283545()[_0x4bf950('0x1d4e')](_0x5dedf9,'e')?!![]:![],_0x515570[_0x4bf950('0x156')][_0x4bf950('0x212e')]=_0x283545()[_0x4bf950('0x1d4e')](_0x5dedf9,'d')?!![]:![]),_0x95b34a();}function _0x95b34a(){const _0x536937=_0x2a221a,_0x5b84ed=['r'];if(_0x515570['selectedSection']['allowEdit'])_0x5b84ed[_0x536937('0x13e3')]('e');else{const _0x2761f7=_0x283545()[_0x536937('0x821')](_0x5b84ed,['e']);_0x2761f7>0x0&&_0x515570[_0x536937('0x156')]['crudPermissions']['replace']('e','');}if(_0x515570[_0x536937('0x156')]['allowDelete'])_0x5b84ed['push']('d');else{const _0x5d49e2=_0x283545()[_0x536937('0x821')](_0x5b84ed,['d']);_0x5d49e2>0x0&&_0x515570[_0x536937('0x156')][_0x536937('0xe28')][_0x536937('0x10a4')]('d','');}return _0x5b84ed;}function _0x3d9c64(){const _0x9f323=_0x2a221a;_0x515570['selectedSection'][_0x9f323('0x14f4')]=!_0x515570['selectedSection'][_0x9f323('0x14f4')],_0x45e8a3(!![]);}function _0x2544e2(){const _0x4d5271=_0x2a221a;if(!_0x515570[_0x4d5271('0x156')][_0x4d5271('0x1c0a')]){const _0x5297e0=[];for(let _0x551263=0x0;_0x551263<_0x515570['dualMultiselectOptions'][_0x4d5271('0x117b')][_0x4d5271('0x2566')];_0x551263++){_0x5297e0[_0x4d5271('0x13e3')](_0x515570['dualMultiselectOptions'][_0x4d5271('0x117b')][_0x551263]),_0x515570[_0x4d5271('0x121')][_0x4d5271('0x283f')]['push'](_0x515570[_0x4d5271('0x121')]['items'][_0x551263]);}_0x515570[_0x4d5271('0x121')][_0x4d5271('0x117b')]=[],_0x515570[_0x4d5271('0x121')]['transferCallback'](_0x5297e0,![]);}_0x45e8a3(!![]);}function _0x3bc685(){const _0x53aba3=_0x2a221a;_0x515570[_0x53aba3('0xcf2')]=_0x4df78a(),_0x515570['selectedSection'][_0x53aba3('0x283f')]&&(_0x515570[_0x53aba3('0x69e')]=_0x347ea6(_0x515570[_0x53aba3('0x69e')]),_0x21e1ef()),_0x496a24();}function _0x141f32(_0x17768e){const _0x4b9dac=_0x2a221a;if(_0x17768e===_0x4b9dac('0x26f4'))_0x515570[_0x4b9dac('0x156')][_0x4b9dac('0x1298')]=!_0x515570[_0x4b9dac('0x156')][_0x4b9dac('0x1298')];else _0x17768e===_0x4b9dac('0x17c4')&&(_0x515570[_0x4b9dac('0x156')][_0x4b9dac('0x212e')]=!_0x515570[_0x4b9dac('0x156')]['allowDelete']);_0x515570[_0x4b9dac('0x156')]['crudPermissions']=_0x348b60(),_0x45e8a3(!![]);}function _0x405e0a(){const _0x4b8a22=_0x2a221a,_0xa51389=_0x515570[_0x4b8a22('0xb13')][_0x4b8a22('0x14e4')]===_0x4b8a22('0x24ff')?_0x4b8a22('0x2456'):_0x515570['section'][_0x4b8a22('0x14e4')],_0x377405=_0x283545()(_0x515570['subsections'])[_0x4b8a22('0x916')]({'pending':!![]})[_0x4b8a22('0x155d')](function(_0x55a823){const _0x25b22e=_0x4b8a22,_0x539df3=_0xa51389===_0x25b22e('0x224b')&&_0x55a823[_0x25b22e('0x14e4')]===_0x25b22e('0x102d')?'SquareProjects':_0x55a823[_0x25b22e('0x14e4')],_0x1515f4=_0x539df3===_0x25b22e('0x1be5')?_0x515570[_0x25b22e('0x69e')]:_0x55a823[_0x25b22e('0x283f')];return _0xa51389===_0x25b22e('0x1e35')&&(_0x55a823['autoAssociation']=!![]),{'category':_0xa51389,'sectionId':_0x55a823['id'],'name':_0x539df3,'enabled':_0x55a823['enabled'],'autoAssociation':_0x55a823['autoAssociation'],'crudPermissions':_0x283545()[_0x25b22e('0x155d')](_0x55a823[_0x25b22e('0xe28')])['join'](''),'Resources':_0x283545()[_0x25b22e('0x155d')](_0x1515f4,function(_0x37d6df){return{'name':_0x37d6df['name'],'resourceId':_0x37d6df['id'],'type':_0x2b6527(_0x539df3,_0x37d6df)};})};})[_0x4b8a22('0x49')]();return _0x430f1d[_0x4b8a22('0x63c')][_0x4b8a22('0xeda')]({'id':_0x515570[_0x4b8a22('0x63c')]['id']},_0x377405)['$promise'][_0x4b8a22('0x2788')](function(){const _0x5a4169=_0x4b8a22;_0x515570[_0x5a4169('0x9b2')]['forEach'](function(_0x872b){const _0x4df40b=_0x5a4169;_0x872b[_0x4df40b('0x230b')]=undefined;}),_0x515570['associatedReports']=null,_0x487c69(),_0x515570[_0x5a4169('0x156')]['title']===_0x5a4169('0x1be5')&&!_0x515570[_0x5a4169('0x156')][_0x5a4169('0xbe6')]&&_0x21d52d[_0x5a4169('0xbef')]['$setPristine'](),_0x293446[_0x5a4169('0x173b')]({'title':_0x1e9d7f['instant'](_0x5a4169('0x1322'),{'sectionName':_0x1e9d7f[_0x5a4169('0x1b11')](_0xa51389[_0x5a4169('0x27f4')])}),'msg':_0x1e9d7f[_0x5a4169('0x1b11')](_0x5a4169('0x835'))});})['then'](function(){const _0x10bc5c=_0x4b8a22;return _0x5e4e7a()[_0x10bc5c('0x2788')](function(_0x23f1d9){const _0x4d9666=_0x10bc5c;_0x515570[_0x4d9666('0x1b9')]=_0x23f1d9;});})['catch'](function(_0x1a453c){const _0x4f0e81=_0x4b8a22;_0x293446[_0x4f0e81('0x5e8')]({'title':_0x1a453c[_0x4f0e81('0x1b51')]?_0x4f0e81('0x15d1')+_0x1a453c['status']+_0x4f0e81('0x1b0b')+_0x1a453c[_0x4f0e81('0x22ce')]:_0x4f0e81('0x1284'),'msg':_0x1a453c['status']?JSON[_0x4f0e81('0x1be0')](_0x1a453c[_0x4f0e81('0x11fc')]):_0x1a453c[_0x4f0e81('0x17df')]()});});}function _0x45e8a3(_0x330359){const _0x2ad680=_0x2a221a,_0x10dabb=_0x283545()[_0x2ad680('0x1855')](_0x515570[_0x2ad680('0x9b2')],function(_0x12ed91){return _0x12ed91['id']==_0x515570['selectedSection']['id'];});_0x515570[_0x2ad680('0x9b2')][_0x10dabb][_0x2ad680('0x230b')]=_0x330359,_0x487c69();}function _0x487c69(){const _0x397c73=_0x2a221a;return _0x515570[_0x397c73('0x2677')]=_0x283545()[_0x397c73('0xc5d')](_0x515570[_0x397c73('0x9b2')],[_0x397c73('0x230b'),!![]]);}function _0x4df78a(){const _0x441e1f=_0x2a221a;let _0x3bd2c7={};return _0x515570[_0x441e1f('0x156')][_0x441e1f('0xbe6')]===_0x441e1f('0x1c15')?_0x3bd2c7=_0x515570['treeReports'][0x0]?angular[_0x441e1f('0x2157')](_0x515570['treeReports'][0x0]['tree']):[]:_0x3bd2c7=_0x515570['treeReports'][0x1]?angular[_0x441e1f('0x2157')](_0x515570[_0x441e1f('0x1d5c')][0x1][_0x441e1f('0xa49')]):[],_0x3bd2c7;}function _0x173fda(){return _0x1e5b22(function(_0x479b88,_0x4b4228){const _0x3ca4b0=a0_0x14e7;_0x430f1d[_0x3ca4b0('0x1dbc')][_0x3ca4b0('0x1335')]({})[_0x3ca4b0('0x1714')][_0x3ca4b0('0x2788')](function(_0x5c71ca){const _0x2a50f0=_0x3ca4b0;_0x515570[_0x2a50f0('0x1d5c')]=_0x5c71ca[_0x2a50f0('0x25df')]||[],_0x479b88(_0x515570[_0x2a50f0('0x1d5c')]);})[_0x3ca4b0('0x1cb5')](function(_0x2134c7){_0x4b4228(_0x2134c7);});});}function _0x7b6632(_0x32f04c){const _0x55f683=_0x2a221a;let _0x1c0545=_0x515570['treeStructure'][0x0][_0x55f683('0x16db')];return _0x1c0545=_0x116304(_0x1c0545,_0x32f04c,_0x515570[_0x55f683('0xcf2')][0x0]),_0x1c0545;}function _0x116304(_0x5850b2,_0x4cef89,_0x5b99c0){const _0x4a65b6=_0x2a221a;if(_0x5b99c0&&!_0x283545()[_0x4a65b6('0x213d')](_0x5b99c0[_0x4a65b6('0x17e1')]))_0x5b99c0=_0x283545()[_0x4a65b6('0x20e8')](_0x5b99c0[_0x4a65b6('0x17e1')],function(_0x4d62b8){const _0xc64d52=_0x4a65b6;return _0x283545()[_0xc64d52('0x1d4e')](_0x4cef89,_0x4d62b8['id'])?_0x4d62b8:undefined;}),_0x5850b2+=_0x5b99c0?'/'+_0x5b99c0[_0x4a65b6('0x16db')]:'';else return _0x5850b2;return _0x116304(_0x5850b2,_0x4cef89,_0x5b99c0);}function _0x28623d(_0x109810){const _0x5b2133=_0x2a221a;return _0x283545()['filter'](_0x109810,{'type':_0x515570['selectedSection'][_0x5b2133('0xbe6')]===_0x5b2133('0x1c15')?_0x5b2133('0x13da'):_0x5b2133('0xd66')});}function _0x40a144(_0x4bade4){const _0x2f7384=_0x2a221a;return _0x283545()[_0x2f7384('0x916')](_0x4bade4,function(_0x1cbb7f){const _0x391776=_0x2f7384;return _0x283545()[_0x391776('0x993')](_0x1cbb7f['parent'],_0x515570[_0x391776('0x156')][_0x391776('0xbe6')]===_0x391776('0x1c15')?_0x391776('0x1947'):_0x391776('0x1d56'));});}function _0x347ea6(_0x2780a8){const _0x496dca=_0x2a221a;return _0x283545()[_0x496dca('0x1a90')](_0x2780a8,function(_0x1e0841){const _0x1339bb=_0x496dca;return _0x283545()['startsWith'](_0x1e0841['parent'],_0x515570['selectedSection']['reportType']==='default'?_0x1339bb('0x1947'):_0x1339bb('0x1d56'));});}function _0x21e1ef(){const _0x22d0d2=_0x2a221a;_0x283545()[_0x22d0d2('0x213d')](_0x515570[_0x22d0d2('0x156')][_0x22d0d2('0x283f')])?_0x515570[_0x22d0d2('0x69e')]=_0x283545()[_0x22d0d2('0x1a90')](_0x515570[_0x22d0d2('0x69e')],function(_0x496135){const _0x436e30=_0x22d0d2;return _0x496135['type']===(_0x515570[_0x436e30('0x156')][_0x436e30('0xbe6')]===_0x436e30('0x1c15')?_0x436e30('0xd66'):_0x436e30('0x13da'));}):_0x515570[_0x22d0d2('0x156')][_0x22d0d2('0x283f')][_0x22d0d2('0x1534')](function(_0x1cf405){const _0x25bbca=_0x22d0d2,_0x2deee3=_0x283545()[_0x25bbca('0xc5d')](_0x515570[_0x25bbca('0x69e')],{'id':_0x1cf405['id'],'parent':_0x1cf405[_0x25bbca('0x1734')]});!_0x2deee3&&_0x515570[_0x25bbca('0x69e')][_0x25bbca('0x13e3')](_0x1cf405);});}function _0x2b6527(_0x511054,_0x5c2bc5){const _0x3bb89d=_0x2a221a;if(_0x511054===_0x3bb89d('0x1be5')){if(_0x5c2bc5[_0x3bb89d('0x1734')]){const _0x35ee05=_0x283545()[_0x3bb89d('0x993')](_0x5c2bc5[_0x3bb89d('0x1734')],_0x3bb89d('0x1947'))?'Default':'Custom';return _0x35ee05+_0x511054;}else return _0x5c2bc5['type'];}return _0x511054;}function _0x449cc6(_0xa1e3bd){const _0x53e3a4=_0x2a221a;if(_0x515570[_0x53e3a4('0x2677')]){const _0x4f05c5=_0x5b566d[_0x53e3a4('0x112e')]({'skipHide':!![]})[_0x53e3a4('0x14e4')](_0x53e3a4('0x4ed'))[_0x53e3a4('0x1a95')](_0x1e9d7f['instant'](_0x53e3a4('0x21b2')))[_0x53e3a4('0x10bc')](_0x53e3a4('0x4ed'))[_0x53e3a4('0x24d0')](_0xa1e3bd)['ok'](_0x1e9d7f['instant'](_0x53e3a4('0x40b')))[_0x53e3a4('0x1801')](_0x1e9d7f[_0x53e3a4('0x1b11')](_0x53e3a4('0x1d42')));_0x5b566d[_0x53e3a4('0x2fa')](_0x4f05c5)[_0x53e3a4('0x2788')](function(){_0x5b566d['hide']();});}else _0x5b566d[_0x53e3a4('0x19d')]();}}const _0x5c5d98=_0x4cf909,_0x172a83=_0x18dd13['p']+_0x34e79e('0x190');_0x2315e4[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x63c'),_0x34e79e('0xec9')];function _0x2315e4(_0x193e5e,_0x1ec857,_0x498cd9,_0x563134,_0x448dce,_0x137be7,_0xd65865,_0x3995e6,_0x52dc40,_0x642f4b,_0x337c4b,_0x12bd0e){const _0x341186=_0x34e79e,_0x561ea8=this;_0x561ea8[_0x341186('0x9cb')]=_0x642f4b[_0x341186('0x24cc')](),_0x561ea8[_0x341186('0x130d')]=_0x137be7,_0x561ea8[_0x341186('0x1af0')]=_0xd65865,_0x561ea8['passwordPattern']=_0x561ea8[_0x341186('0x1af0')][_0x341186('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x561ea8['location']=_0x1ec857[_0x341186('0x170c')]()+_0x341186('0x726')+_0x1ec857[_0x341186('0x1c6a')](),_0x561ea8['userProfile']=_0x337c4b||_0x193e5e[_0x341186('0x4b9')][_0x341186('0x63c')]||{},_0x561ea8[_0x341186('0xec9')]=_0x12bd0e&&_0x12bd0e[_0x341186('0x338')]==0x1?_0x12bd0e[_0x341186('0x25df')][0x0]:null,_0x561ea8['crudPermissions']=_0x642f4b['parseCrudPermissions'](_0x561ea8['userProfileSection']?_0x561ea8[_0x341186('0xec9')]['crudPermissions']:null),_0x561ea8['hasModulePermissions']={},_0x561ea8[_0x341186('0xcb3')]=_0x193e5e['params'][_0x341186('0x24f6')]||0x0,_0x561ea8[_0x341186('0x1003')]=_0x5f4ecd,_0x561ea8[_0x341186('0x15fb')]=_0x5e00ce,_0x561ea8[_0x341186('0x204f')]=_0x52dc40['info'],_0x561ea8[_0x341186('0x24c9')]=_0x39504c,_0x561ea8[_0x341186('0x90')]=_0x504ff0;function _0x5f4ecd(_0x34bb46,_0x3020a2){const _0x1378e7=_0x341186;_0x498cd9[_0x1378e7('0x2fa')]({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0x539de6,'parent':angular[_0x1378e7('0x16b1')](_0x563134[_0x1378e7('0x945')]),'targetEvent':_0x3020a2,'clickOutsideToClose':!![],'locals':{'userProfile':_0x34bb46,'userProfiles':_0x561ea8[_0x1378e7('0x20b')]?_0x561ea8[_0x1378e7('0x20b')][_0x1378e7('0x25df')]:[],'crudPermissions':_0x561ea8['crudPermissions']}});}function _0x5e00ce(_0x9b47bc,_0x1c8a2f){const _0x3af495=_0x341186;_0x498cd9['show']({'controller':_0x3af495('0x854'),'controllerAs':'vm','templateUrl':_0x172a83,'parent':angular['element'](_0x563134[_0x3af495('0x945')]),'targetEvent':_0x1c8a2f,'clickOutsideToClose':!![],'locals':{'userProfile':_0x9b47bc,'userProfiles':_0x561ea8[_0x3af495('0x20b')]?_0x561ea8[_0x3af495('0x20b')]['rows']:[],'crudPermissions':_0x561ea8[_0x3af495('0xe28')]}});}function _0x39504c(){const _0x2f8f5a=_0x341186;_0x193e5e['go']('app.staff.userProfiles',{},{'reload':_0x2f8f5a('0x18ae')});}function _0x504ff0(){const _0x2f46a9=_0x341186;_0x3995e6[_0x2f46a9('0x63c')][_0x2f46a9('0x2740')]({'id':_0x561ea8[_0x2f46a9('0x63c')]['id']},_0x561ea8[_0x2f46a9('0x63c')])[_0x2f46a9('0x1714')][_0x2f46a9('0x2788')](function(){const _0x500aac=_0x2f46a9;_0x52dc40[_0x500aac('0x173b')]({'title':_0x500aac('0x1818'),'msg':_0x561ea8[_0x500aac('0x63c')]['name']?_0x561ea8['userProfile'][_0x500aac('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x2f46a9('0x1cb5')](function(_0x38b9bd){const _0x4cf06c=_0x2f46a9;_0x52dc40[_0x4cf06c('0x5e8')]({'title':_0x38b9bd[_0x4cf06c('0x1b51')]?_0x4cf06c('0x15d1')+_0x38b9bd[_0x4cf06c('0x1b51')]+_0x4cf06c('0x1b0b')+_0x38b9bd[_0x4cf06c('0x22ce')]:_0x4cf06c('0xf6d'),'msg':_0x38b9bd[_0x4cf06c('0x11fc')]?JSON[_0x4cf06c('0x1be0')](_0x38b9bd['data']):_0x38b9bd['toString']()});});}}const _0x35f069=_0x2315e4,_0x31e10c=_0x18dd13['p']+_0x34e79e('0x235e');_0x26d5d0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x20b'),'userProfile',_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x26d5d0(_0xb5562d,_0x3c931c,_0x17b96b,_0x305554,_0x369517,_0x33e22f,_0x3328b0,_0x45e144,_0x5285ec,_0x25c266,_0x1f5024,_0x32d8b9,_0x2c02cc,_0x263b7d,_0x1f14e0,_0xb4f229,_0x37c119){const _0x4ff614=_0x34e79e,_0x5bf6f8=this;_0x5bf6f8[_0x4ff614('0x130d')]=_0xb4f229,_0x5bf6f8[_0x4ff614('0x1af0')]=_0x37c119,_0x5bf6f8['currentUser']=_0x1f14e0['getCurrentUser'](),_0x5bf6f8[_0x4ff614('0x20b')]=_0x5285ec||{'count':0x0,'rows':[]},_0x5bf6f8[_0x4ff614('0x63c')]=_0x25c266,_0x5bf6f8[_0x4ff614('0xec9')]=_0x1f5024&&_0x1f5024[_0x4ff614('0x338')]==0x1?_0x1f5024[_0x4ff614('0x25df')][0x0]:null,_0x5bf6f8[_0x4ff614('0xe28')]=_0x1f14e0[_0x4ff614('0x157e')](_0x5bf6f8[_0x4ff614('0xec9')]?_0x5bf6f8['userProfileSection'][_0x4ff614('0xe28')]:null),_0x5bf6f8[_0x4ff614('0x26a9')]='userProfiles',_0x5bf6f8[_0x4ff614('0x2278')]='',_0x5bf6f8[_0x4ff614('0x25e2')]=null,_0x5bf6f8[_0x4ff614('0x300')]=[],_0x5bf6f8[_0x4ff614('0x135a')]={'fields':_0x4ff614('0x6f4'),'sort':_0x4ff614('0x1cee'),'limit':0xa,'page':0x1},_0x5bf6f8['arraycrudPermissions']=_0x283545()[_0x4ff614('0x13cf')]([{'option':_0x4ff614('0x1345'),'value':_0x4ff614('0xc57'),'disabled':!![]},{'option':_0x4ff614('0x1f0a'),'value':'\x27e\x27'},{'option':_0x4ff614('0xcd5'),'value':_0x4ff614('0x18b3')}],function(_0x5bb19c){const _0x51cfb7=_0x4ff614;return _0x283545()[_0x51cfb7('0x10a4')](_0x5bb19c['value'],new RegExp('\x27','g'),'');});_0x5bf6f8[_0x4ff614('0x20b')]&&_0x5bf6f8[_0x4ff614('0x20b')][_0x4ff614('0x338')]>0x0&&_0x5bf6f8[_0x4ff614('0x20b')][_0x4ff614('0x25df')][_0x4ff614('0x1534')](function(_0x702ea0){const _0x2c4979=_0x4ff614,_0x31f5cc=[];_0x702ea0['crudPermissions']['forEach'](function(_0x1f015a){const _0x341397=a0_0x14e7;_0x31f5cc[_0x341397('0x13e3')](_0x5bf6f8[_0x341397('0x15fc')][_0x1f015a][_0x341397('0x151b')]);});const _0xdadad3=[];_0x31f5cc[_0x2c4979('0x1534')](function(_0x169165){const _0x4354df=_0x2c4979;_0xdadad3['push'](_0x45e144[_0x4354df('0x1b11')](_0x4354df('0x131a')+_0x169165[_0x4354df('0x25e6')]()));}),_0x702ea0[_0x2c4979('0x25e4')]=_0xdadad3[_0x2c4979('0x185f')](',\x20');});_0x5bf6f8[_0x4ff614('0x1f7e')]=_0x20289d,_0x5bf6f8[_0x4ff614('0x15fb')]=_0x3418a7,_0x5bf6f8[_0x4ff614('0x1e5')]=_0x4fa51e,_0x5bf6f8[_0x4ff614('0x173b')]=_0x93f0b7,_0x5bf6f8[_0x4ff614('0xab')]=_0x3bcc30,_0x5bf6f8[_0x4ff614('0x1f43')]=_0x5973ed,_0x5bf6f8[_0x4ff614('0x1868')]=_0x2a5b4d,_0x5bf6f8['exportSelectedUserProfiles']=_0x3a3436,_0x5bf6f8[_0x4ff614('0x399')]=_0x28f32d,_0x5bf6f8['deselectUserProfiles']=_0x48b5a5,_0x5bf6f8['selectAllUserProfiles']=_0x5b1214;function _0x20289d(_0x177b5d){_0x17b96b['go']('app.staff.userProfiles.edit',{'id':_0x177b5d['id'],'userProfile':_0x177b5d,'crudPermissions':_0x5bf6f8['crudPermissions']});}function _0x3418a7(_0x5ac6bc,_0x3e1ae5){const _0x5c7aa9=_0x4ff614;_0x369517[_0x5c7aa9('0x2fa')]({'controller':_0x5c7aa9('0x854'),'controllerAs':'vm','templateUrl':_0x172a83,'parent':angular['element'](_0x33e22f[_0x5c7aa9('0x945')]),'targetEvent':_0x3e1ae5,'clickOutsideToClose':!![],'locals':{'userProfile':_0x5ac6bc,'userProfiles':_0x5bf6f8[_0x5c7aa9('0x20b')]?_0x5bf6f8[_0x5c7aa9('0x20b')][_0x5c7aa9('0x25df')]:[],'crudPermissions':_0x5bf6f8[_0x5c7aa9('0xe28')]}});}function _0x4fa51e(_0x23a660,_0x2228a0){const _0x2e4a7a=_0x4ff614,_0x1fccb1=_0x369517['confirm']()[_0x2e4a7a('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x2e4a7a('0x114')](_0x2e4a7a('0x63c'))+'?')['htmlContent'](_0x2e4a7a('0x1670')+(_0x23a660['name']||_0x2e4a7a('0x63c'))+_0x2e4a7a('0x229e')+_0x2e4a7a('0x27c7'))[_0x2e4a7a('0x10bc')](_0x2e4a7a('0x1aa6'))[_0x2e4a7a('0x24d0')](_0x2228a0)['ok']('OK')[_0x2e4a7a('0x1801')](_0x2e4a7a('0x1d8d'));_0x369517[_0x2e4a7a('0x2fa')](_0x1fccb1)['then'](function(){_0x2a5b4d(_0x23a660);},function(){const _0x2c4395=_0x2e4a7a;console[_0x2c4395('0x10df')](_0x2c4395('0x1d8d'));});}let _0x390d00=!![],_0x508cd8=0x1;_0xb5562d[_0x4ff614('0x1662')](_0x4ff614('0x1569'),function(_0x4f73f5,_0x13fd41){const _0x26b0dd=_0x4ff614;_0x390d00?_0x3328b0(function(){_0x390d00=![];}):(!_0x13fd41&&(_0x508cd8=_0x5bf6f8[_0x26b0dd('0x135a')][_0x26b0dd('0x23f5')]),_0x4f73f5!==_0x13fd41&&(_0x5bf6f8[_0x26b0dd('0x135a')]['page']=0x1),!_0x4f73f5&&(_0x5bf6f8[_0x26b0dd('0x135a')][_0x26b0dd('0x23f5')]=_0x508cd8),_0x5bf6f8['getUserProfiles']());});function _0x93f0b7(_0x100cc9){_0x5bf6f8['userProfiles']=_0x100cc9||{'count':0x0,'rows':[]};}function _0x3bcc30(){const _0x1b0879=_0x4ff614;_0x5bf6f8[_0x1b0879('0x135a')]['offset']=(_0x5bf6f8['query'][_0x1b0879('0x23f5')]-0x1)*_0x5bf6f8[_0x1b0879('0x135a')][_0x1b0879('0x68e')],_0x1f14e0['hasRole'](_0x1b0879('0xe23'))?_0x5bf6f8[_0x1b0879('0x1808')]=_0x32d8b9[_0x1b0879('0x63c')][_0x1b0879('0x1335')](_0x5bf6f8[_0x1b0879('0x135a')],_0x93f0b7)[_0x1b0879('0x1714')]:(_0x5bf6f8[_0x1b0879('0x135a')]['id']=_0x5bf6f8['userProfile']['id'],_0x5bf6f8[_0x1b0879('0x135a')]['section']=_0x1b0879('0x25c'),_0x5bf6f8[_0x1b0879('0x1808')]=_0x32d8b9['userProfile'][_0x1b0879('0xa1')](_0x5bf6f8['query'],_0x93f0b7)['$promise']);}function _0x5973ed(_0x15100b,_0x14e7e2){const _0x27cdb5=_0x4ff614;_0x369517[_0x27cdb5('0x2fa')]({'controller':'CreateOrEditUserProfileDialogController','controllerAs':'vm','templateUrl':_0x31e10c,'parent':angular[_0x27cdb5('0x16b1')](_0x33e22f['body']),'targetEvent':_0x15100b,'clickOutsideToClose':!![],'locals':{'userProfile':_0x14e7e2,'userProfiles':_0x5bf6f8['userProfiles'][_0x27cdb5('0x25df')],'license':_0x5bf6f8[_0x27cdb5('0x130d')],'setting':_0x5bf6f8['setting'],'crudPermissions':_0x5bf6f8[_0x27cdb5('0xe28')]}});}function _0x2a5b4d(_0x1d721f){const _0xc15944=_0x4ff614;_0x32d8b9[_0xc15944('0x63c')][_0xc15944('0x17c4')]({'id':_0x1d721f['id']})[_0xc15944('0x1714')][_0xc15944('0x2788')](function(){const _0x5e09f4=_0xc15944;_0x283545()[_0x5e09f4('0x1a90')](_0x5bf6f8[_0x5e09f4('0x20b')]['rows'],{'id':_0x1d721f['id']}),_0x5bf6f8['userProfiles']['count']-=0x1,!_0x5bf6f8['userProfiles'][_0x5e09f4('0x25df')][_0x5e09f4('0x2566')]&&_0x5bf6f8[_0x5e09f4('0xab')](),_0x263b7d[_0x5e09f4('0x173b')]({'title':_0x283545()[_0x5e09f4('0x114')](_0x5e09f4('0x201b'))+'\x20deleted!','msg':_0x1d721f[_0x5e09f4('0x1a8d')]?_0x1d721f[_0x5e09f4('0x1a8d')]+_0x5e09f4('0x14d4'):''});})[_0xc15944('0x1cb5')](function(_0x4c7c42){const _0x3d6f8d=_0xc15944;if(_0x4c7c42['data']&&_0x4c7c42['data'][_0x3d6f8d('0x25be')]&&_0x4c7c42[_0x3d6f8d('0x11fc')][_0x3d6f8d('0x25be')][_0x3d6f8d('0x2566')]){_0x5bf6f8[_0x3d6f8d('0x25be')]=_0x4c7c42[_0x3d6f8d('0x11fc')]['errors']||[{'message':_0x4c7c42[_0x3d6f8d('0x17df')](),'type':'SYSTEM:DELETEuserProfile'}];for(let _0x4bdcec=0x0;_0x4bdcec<_0x4c7c42[_0x3d6f8d('0x11fc')]['errors']['length'];_0x4bdcec++){_0x263b7d[_0x3d6f8d('0x5e8')]({'title':_0x4c7c42[_0x3d6f8d('0x11fc')][_0x3d6f8d('0x25be')][_0x4bdcec]['type'],'msg':_0x4c7c42[_0x3d6f8d('0x11fc')][_0x3d6f8d('0x25be')][_0x4bdcec][_0x3d6f8d('0x15e2')]});}}else _0x263b7d[_0x3d6f8d('0x5e8')]({'title':_0x4c7c42[_0x3d6f8d('0x1b51')]?_0x3d6f8d('0x15d1')+_0x4c7c42[_0x3d6f8d('0x1b51')]+_0x3d6f8d('0x1b0b')+_0x4c7c42['statusText']:_0x3d6f8d('0xcf3'),'msg':_0x4c7c42[_0x3d6f8d('0x11fc')]?JSON[_0x3d6f8d('0x1be0')](_0x4c7c42[_0x3d6f8d('0x11fc')][_0x3d6f8d('0x15e2')]):_0x4c7c42['message']||_0x4c7c42[_0x3d6f8d('0x17df')]()});});}function _0x3a3436(){const _0x454ee5=_0x4ff614,_0x469047=angular[_0x454ee5('0x2669')](_0x5bf6f8[_0x454ee5('0x300')]);return _0x5bf6f8['selectedUserProfiles']=[],_0x469047;}function _0x28f32d(_0x4feb22){const _0x220bf0=_0x4ff614,_0x1b5eb2=_0x369517[_0x220bf0('0x112e')]()['title'](_0x220bf0('0xcb6'))[_0x220bf0('0x93e')](_0x220bf0('0x1670')+_0x5bf6f8[_0x220bf0('0x300')]['length']+_0x220bf0('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x220bf0('0x101b'))[_0x220bf0('0x24d0')](_0x4feb22)['ok']('OK')[_0x220bf0('0x1801')](_0x220bf0('0x1d8d'));_0x369517['show'](_0x1b5eb2)[_0x220bf0('0x2788')](function(){const _0xfcdb95=_0x220bf0;_0x5bf6f8['selectedUserProfiles']['forEach'](function(_0x3e9fd4){_0x2a5b4d(_0x3e9fd4);}),_0x5bf6f8[_0xfcdb95('0x300')]=[];});}function _0x48b5a5(){const _0x45f50c=_0x4ff614;_0x5bf6f8[_0x45f50c('0x300')]=[];}function _0x5b1214(){const _0x4cbf1d=_0x4ff614;_0x5bf6f8['selectedUserProfiles']=_0x5bf6f8[_0x4cbf1d('0x20b')][_0x4cbf1d('0x25df')];}}const _0x31332e=_0x26d5d0;_0x2c188a['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1e42'),'user',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x2c188a(_0xb46bfd,_0x2129c4,_0x340ed9,_0x1ed7e1,_0x265562,_0x1cdb34,_0x1b0191,_0x5ac918,_0x47dc5c,_0x1cbef1,_0x41ed9d,_0x5bc3c7,_0x1d42fa,_0x408011){const _0x20feae=_0x34e79e,_0x55a5e4=this;_0x55a5e4['currentUser']=_0x41ed9d[_0x20feae('0x24cc')](),_0x55a5e4[_0x20feae('0x25be')]=[],_0x55a5e4[_0x20feae('0x1af0')]=_0x1d42fa,_0x55a5e4[_0x20feae('0x130d')]=_0x5bc3c7,_0x55a5e4[_0x20feae('0xe28')]=_0x408011,_0x55a5e4[_0x20feae('0x1193')]={},_0x55a5e4[_0x20feae('0x18ad')]=_0x55a5e4[_0x20feae('0x1af0')]&&_0x55a5e4[_0x20feae('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55a5e4[_0x20feae('0x14e4')]=_0x20feae('0xd64'),_0x55a5e4[_0x20feae('0x1e6a')]=angular[_0x20feae('0x2669')](_0x47dc5c),_0x55a5e4[_0x20feae('0x1e42')]=_0x5ac918,_0x55a5e4['newUser']=![];!_0x55a5e4[_0x20feae('0x1e6a')]&&(_0x55a5e4['user']={'role':_0x20feae('0x1e6a'),'autointernal':!![],'context':_0x20feae('0x15b1')},_0x55a5e4[_0x20feae('0x14e4')]=_0x20feae('0x20f9'),_0x55a5e4['newUser']=!![]);_0x55a5e4['addNewUser']=_0xa20223,_0x55a5e4['saveUser']=_0x50d81f,_0x55a5e4[_0x20feae('0xe2b')]=_0x59a652,_0x55a5e4[_0x20feae('0x2601')]=_0x3760fd,_0x55a5e4[_0x20feae('0xca7')]=_0x22625d,_0x1cbef1[_0x20feae('0x63c')][_0x20feae('0x1335')]({'fields':_0x20feae('0x1338'),'sort':'name'})['$promise'][_0x20feae('0x2788')](function(_0x2c17b0){const _0x592e74=_0x20feae;_0x55a5e4[_0x592e74('0x20b')]=_0x2c17b0['rows']||[];})[_0x20feae('0x1cb5')](function(_0x4e1011){const _0x3df266=_0x20feae;_0x1b0191['error']({'title':_0x4e1011[_0x3df266('0x1b51')]?'API:'+_0x4e1011[_0x3df266('0x1b51')]+_0x3df266('0x1b0b')+_0x4e1011[_0x3df266('0x22ce')]:_0x3df266('0x221d'),'msg':_0x4e1011['data']?JSON['stringify'](_0x4e1011[_0x3df266('0x11fc')]):_0x4e1011['toString']()});});function _0xa20223(){const _0x14837b=_0x20feae;_0x55a5e4[_0x14837b('0x25be')]=[],_0x1cbef1[_0x14837b('0x1e6a')][_0x14837b('0xbd0')](_0x55a5e4[_0x14837b('0x1e6a')])[_0x14837b('0x1714')]['then'](function(_0x1b8084){const _0x323f63=_0x14837b;_0x55a5e4[_0x323f63('0x1e42')]['unshift'](_0x1b8084[_0x323f63('0x1cbf')]()),_0x1b0191[_0x323f63('0x173b')]({'title':'User\x20properly\x20created','msg':_0x55a5e4['user'][_0x323f63('0x1a8d')]?_0x55a5e4[_0x323f63('0x1e6a')][_0x323f63('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x22625d(_0x1b8084);})['catch'](function(_0x5e63fa){const _0xf1faec=_0x14837b;if(_0x5e63fa[_0xf1faec('0x11fc')]&&_0x5e63fa[_0xf1faec('0x11fc')][_0xf1faec('0x25be')]&&_0x5e63fa['data']['errors']['length']){_0x55a5e4[_0xf1faec('0x25be')]=_0x5e63fa[_0xf1faec('0x11fc')]['errors']||[{'message':_0x5e63fa[_0xf1faec('0x17df')](),'type':'api.user.save'}];for(let _0x379095=0x0;_0x379095<_0x5e63fa[_0xf1faec('0x11fc')][_0xf1faec('0x25be')]['length'];_0x379095+=0x1){_0x1b0191[_0xf1faec('0x5e8')]({'title':_0x5e63fa[_0xf1faec('0x11fc')]['errors'][_0x379095][_0xf1faec('0x1d7')],'msg':_0x5e63fa[_0xf1faec('0x11fc')]['errors'][_0x379095][_0xf1faec('0x15e2')]});}}else _0x1b0191['error']({'title':_0x5e63fa[_0xf1faec('0x1b51')]?_0xf1faec('0x15d1')+_0x5e63fa[_0xf1faec('0x1b51')]+_0xf1faec('0x1b0b')+_0x5e63fa[_0xf1faec('0x22ce')]:_0xf1faec('0x2511'),'msg':_0x5e63fa['data']?JSON[_0xf1faec('0x1be0')](_0x5e63fa[_0xf1faec('0x11fc')]['message']):_0x5e63fa[_0xf1faec('0x17df')]()});});}function _0x50d81f(){const _0x2a275c=_0x20feae;_0x55a5e4[_0x2a275c('0x25be')]=[],_0x1cbef1[_0x2a275c('0x1e6a')][_0x2a275c('0x2740')]({'id':_0x55a5e4[_0x2a275c('0x1e6a')]['id']},_0x55a5e4[_0x2a275c('0x1e6a')])[_0x2a275c('0x1714')][_0x2a275c('0x2788')](function(_0x3cafbc){const _0x1df90f=_0x2a275c,_0x1c9e20=_0x283545()[_0x1df90f('0x20e8')](_0x55a5e4[_0x1df90f('0x1e42')],{'id':_0x3cafbc['id']});_0x1c9e20&&_0x283545()[_0x1df90f('0x2503')](_0x1c9e20,_0x283545()['pick'](_0x3cafbc[_0x1df90f('0x1cbf')](),_0x283545()[_0x1df90f('0x2163')](_0x1c9e20))),_0x1b0191[_0x1df90f('0x173b')]({'title':_0x1df90f('0x1b44'),'msg':_0x55a5e4[_0x1df90f('0x1e6a')]['name']?_0x55a5e4[_0x1df90f('0x1e6a')]['name']+_0x1df90f('0x24cf'):''}),_0x22625d(_0x3cafbc);})[_0x2a275c('0x1cb5')](function(_0x4c606d){const _0x4bb182=_0x2a275c;if(_0x4c606d[_0x4bb182('0x11fc')]&&_0x4c606d[_0x4bb182('0x11fc')][_0x4bb182('0x25be')]&&_0x4c606d[_0x4bb182('0x11fc')]['errors'][_0x4bb182('0x2566')]){_0x55a5e4[_0x4bb182('0x25be')]=_0x4c606d[_0x4bb182('0x11fc')]['errors']||[{'message':_0x4c606d['toString'](),'type':_0x4bb182('0x863')}];for(let _0x38b89d=0x0;_0x38b89d<_0x4c606d[_0x4bb182('0x11fc')][_0x4bb182('0x25be')]['length'];_0x38b89d++){_0x1b0191[_0x4bb182('0x5e8')]({'title':_0x4c606d[_0x4bb182('0x11fc')][_0x4bb182('0x25be')][_0x38b89d][_0x4bb182('0x1d7')],'msg':_0x4c606d[_0x4bb182('0x11fc')]['errors'][_0x38b89d][_0x4bb182('0x15e2')]});}}else _0x1b0191[_0x4bb182('0x5e8')]({'title':_0x4c606d[_0x4bb182('0x1b51')]?_0x4bb182('0x15d1')+_0x4c606d[_0x4bb182('0x1b51')]+_0x4bb182('0x1b0b')+_0x4c606d[_0x4bb182('0x22ce')]:_0x4bb182('0x863'),'msg':_0x4c606d['data']?JSON[_0x4bb182('0x1be0')](_0x4c606d[_0x4bb182('0x11fc')][_0x4bb182('0x15e2')]):_0x4c606d[_0x4bb182('0x17df')]()});});}function _0x59a652(_0x27f8d6){const _0x9f30c4=_0x20feae,_0x5bf585=_0x41ed9d['getCurrentUser']();if(_0x5bf585['id']===_0x55a5e4['user']['id'])return _0x1b0191[_0x9f30c4('0x5e8')]({'title':_0x9f30c4('0x19e2'),'msg':_0x9f30c4('0x174f')});_0x55a5e4[_0x9f30c4('0x25be')]=[];const _0x3d6343=_0x1ed7e1[_0x9f30c4('0x112e')]()[_0x9f30c4('0x14e4')](_0x9f30c4('0x458'))[_0x9f30c4('0x1c98')]('The\x20user\x20will\x20be\x20deleted.')[_0x9f30c4('0x10bc')]('Delete\x20User')['ok'](_0x9f30c4('0x2786'))[_0x9f30c4('0x1801')](_0x9f30c4('0x1481'))['targetEvent'](_0x27f8d6);_0x1ed7e1[_0x9f30c4('0x2fa')](_0x3d6343)[_0x9f30c4('0x2788')](function(){const _0x1eda94=_0x9f30c4;_0x1cbef1[_0x1eda94('0x1e6a')][_0x1eda94('0x17c4')]({'id':_0x55a5e4[_0x1eda94('0x1e6a')]['id']})[_0x1eda94('0x1714')][_0x1eda94('0x2788')](function(){const _0x32bd38=_0x1eda94;_0x283545()['remove'](_0x55a5e4[_0x32bd38('0x1e42')],{'id':_0x55a5e4[_0x32bd38('0x1e6a')]['id']}),_0x1b0191[_0x32bd38('0x173b')]({'title':'User\x20properly\x20deleted!','msg':(_0x55a5e4[_0x32bd38('0x1e6a')][_0x32bd38('0x1a8d')]||'user')+_0x32bd38('0x14d4')}),_0x22625d(_0x55a5e4[_0x32bd38('0x1e6a')]);})[_0x1eda94('0x1cb5')](function(_0x5cc94c){const _0x56c8b6=_0x1eda94;if(_0x5cc94c[_0x56c8b6('0x11fc')]&&_0x5cc94c[_0x56c8b6('0x11fc')][_0x56c8b6('0x25be')]&&_0x5cc94c[_0x56c8b6('0x11fc')][_0x56c8b6('0x25be')][_0x56c8b6('0x2566')]){_0x55a5e4[_0x56c8b6('0x25be')]=_0x5cc94c['data'][_0x56c8b6('0x25be')]||[{'message':_0x5cc94c[_0x56c8b6('0x17df')](),'type':'api.user.delete'}];for(let _0x1514ca=0x0;_0x1514ca<_0x5cc94c[_0x56c8b6('0x11fc')][_0x56c8b6('0x25be')][_0x56c8b6('0x2566')];_0x1514ca++){_0x1b0191[_0x56c8b6('0x5e8')]({'title':_0x5cc94c[_0x56c8b6('0x11fc')][_0x56c8b6('0x25be')][_0x1514ca][_0x56c8b6('0x1d7')],'msg':_0x5cc94c[_0x56c8b6('0x11fc')][_0x56c8b6('0x25be')][_0x1514ca][_0x56c8b6('0x15e2')]});}}else _0x1b0191[_0x56c8b6('0x5e8')]({'title':_0x5cc94c['status']?'API:'+_0x5cc94c[_0x56c8b6('0x1b51')]+_0x56c8b6('0x1b0b')+_0x5cc94c[_0x56c8b6('0x22ce')]:'api.user.delete','msg':_0x5cc94c[_0x56c8b6('0x11fc')]?JSON['stringify'](_0x5cc94c[_0x56c8b6('0x11fc')]['message']):_0x5cc94c['message']||_0x5cc94c[_0x56c8b6('0x17df')]()});});},function(){});}function _0x3760fd(_0xc63b65){return _0xc63b65===null?undefined:new Date(_0xc63b65);}function _0x22625d(_0x34a4f5){_0x1ed7e1['hide'](_0x34a4f5);}}const _0x189211=_0x2c188a;_0x4eba06['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1e6a'),_0x34e79e('0x1b04')];function _0x4eba06(_0x2ff825,_0x2d4d98,_0x2ddfa4,_0x7669f7,_0x5cf936){const _0x2733ea=_0x34e79e,_0x985c6b=this;_0x985c6b[_0x2733ea('0x9cb')]=_0x5cf936['getCurrentUser'](),_0x985c6b[_0x2733ea('0x25be')]=[],_0x985c6b[_0x2733ea('0x1e6a')]=_0x7669f7,_0x985c6b[_0x2733ea('0x26a')]=_0x3ade3f,_0x985c6b[_0x2733ea('0x1d33')]=_0x2fb35c,_0x985c6b[_0x2733ea('0xca7')]=_0x131b4d;function _0x3ade3f(){const _0x4b6cac=_0x2733ea;_0x985c6b[_0x4b6cac('0x25be')]=[],_0x2ddfa4[_0x4b6cac('0x1e6a')][_0x4b6cac('0x1c7e')]({'id':_0x985c6b['user']['id']})['$promise'][_0x4b6cac('0x2788')](function(_0x346e51){const _0x2c5f6c=_0x4b6cac;_0x985c6b[_0x2c5f6c('0x1e6a')][_0x2c5f6c('0x904')]=_0x346e51[_0x2c5f6c('0x1823')]||'N/A',_0x2d4d98[_0x2c5f6c('0x173b')]({'title':_0x2c5f6c('0x13dc')}),_0x131b4d();})['catch'](function(_0x3cd57b){const _0x43f63e=_0x4b6cac;_0x2d4d98['error']({'title':_0x3cd57b[_0x43f63e('0x1b51')]?'API:'+_0x3cd57b[_0x43f63e('0x1b51')]+_0x43f63e('0x1b0b')+_0x3cd57b[_0x43f63e('0x22ce')]:_0x43f63e('0xea7'),'msg':_0x3cd57b[_0x43f63e('0x11fc')]?JSON[_0x43f63e('0x1be0')](_0x3cd57b[_0x43f63e('0x11fc')][_0x43f63e('0x15e2')]):_0x3cd57b['toString']()}),_0x985c6b[_0x43f63e('0x25be')]=_0x3cd57b['data'][_0x43f63e('0x25be')]||[{'message':_0x3cd57b[_0x43f63e('0x17df')](),'type':'api.user.createApiKey'}];});}function _0x2fb35c(){const _0x99922d=_0x2733ea;_0x985c6b[_0x99922d('0x25be')]=[],_0x2ddfa4['user'][_0x99922d('0x1d33')]({'id':_0x985c6b[_0x99922d('0x1e6a')]['id']})[_0x99922d('0x1714')][_0x99922d('0x2788')](function(){const _0x25a704=_0x99922d;_0x985c6b[_0x25a704('0x1e6a')]['apiKey']=_0x25a704('0x885'),_0x2d4d98[_0x25a704('0x173b')]({'title':_0x25a704('0xa2c')}),_0x131b4d();})[_0x99922d('0x1cb5')](function(_0x5a5ace){const _0x399526=_0x99922d;_0x2d4d98[_0x399526('0x5e8')]({'title':_0x5a5ace[_0x399526('0x1b51')]?_0x399526('0x15d1')+_0x5a5ace['status']+_0x399526('0x1b0b')+_0x5a5ace['statusText']:_0x399526('0x4'),'msg':_0x5a5ace[_0x399526('0x11fc')]?JSON[_0x399526('0x1be0')](_0x5a5ace[_0x399526('0x11fc')][_0x399526('0x15e2')]):_0x5a5ace[_0x399526('0x17df')]()}),_0x985c6b[_0x399526('0x25be')]=_0x5a5ace['data'][_0x399526('0x25be')]||[{'message':_0x5a5ace[_0x399526('0x17df')](),'type':_0x399526('0x4')}];});}function _0x131b4d(){const _0x860331=_0x2733ea;_0x2ff825[_0x860331('0x19d')]();}}const _0x29a2c7=_0x4eba06;_0x4847cb[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0xd57')];function _0x4847cb(_0x8c913,_0x4fe263){const _0x3815fb=_0x34e79e,_0x5bb73b=this,_0x3f3e07=0x8,_0x377fd7=_0x3f3e07*0x400*0x400;_0x5bb73b[_0x3815fb('0x1e6a')]={},_0x5bb73b[_0x3815fb('0xe28')],_0x5bb73b[_0x3815fb('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x377fd7,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5bb73b['ngFlow']={'flow':{}},_0x5bb73b['dropping']=![],_0x5bb73b['fileAdded']=_0x29a495,_0x5bb73b[_0x3815fb('0x1b63')]=_0xd2443,_0x5bb73b[_0x3815fb('0xc41')]=_0x4cc86e,_0x5bb73b['init']=_0x4c1372;function _0x4c1372(_0x30b84e,_0x4e25d7){const _0x3287a8=_0x3815fb;_0x5bb73b[_0x3287a8('0x1e6a')]=angular[_0x3287a8('0x2669')](_0x30b84e),_0x5bb73b[_0x3287a8('0xe28')]=typeof _0x4e25d7!==_0x3287a8('0xedb')?_0x4e25d7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5bb73b[_0x3287a8('0x1fce')][_0x3287a8('0x159c')]=_0x3287a8('0xb6')+_0x5bb73b['user']['id']+_0x3287a8('0xc1c'),_0x5bb73b[_0x3287a8('0x1e6a')][_0x3287a8('0x17d5')]=[];}function _0x29a495(_0x14f8a7){const _0x4a37ff=_0x3815fb,_0x2bf476=[_0x4a37ff('0x170a'),_0x4a37ff('0xec2')];if(!_0x283545()[_0x4a37ff('0x1d4e')](_0x2bf476,_0x14f8a7[_0x4a37ff('0xa31')]()))return _0x4fe263[_0x4a37ff('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x14f8a7[_0x4a37ff('0xa31')](),'msg':_0x4a37ff('0x250c')+_0x2bf476[_0x4a37ff('0x185f')]()}),![];if(_0x14f8a7[_0x4a37ff('0x634')]>_0x377fd7)return _0x4fe263[_0x4a37ff('0x5e8')]({'title':_0x4a37ff('0x6e8'),'msg':_0x4a37ff('0x232c')+_0x3f3e07+'MB'}),![];const _0x5cdadd={'id':_0x14f8a7[_0x4a37ff('0x7c8')],'file':_0x14f8a7,'type':_0x4a37ff('0x1c20')};return _0x5bb73b[_0x4a37ff('0x1e6a')][_0x4a37ff('0x17d5')][_0x4a37ff('0xc51')](_0x5cdadd),!![];}function _0xd2443(){const _0x390733=_0x3815fb;_0x5bb73b[_0x390733('0x2793')]['flow'][_0x390733('0xcc6')]['headers']={'X-Requested-With':_0x390733('0xa34'),'Authorization':_0x390733('0xf2f')+_0x8c913['get'](_0x390733('0x2eb'))},_0x5bb73b['ngFlow']['flow'][_0x390733('0x1b63')]();}function _0x4cc86e(_0x115ddb){angular['forEach'](_0x5bb73b['user']['images'],function(_0x40c863){const _0x119029=a0_0x14e7;if(_0x40c863['id']===_0x115ddb[_0x119029('0x7c8')]){const _0x276e09=new FileReader();_0x276e09[_0x119029('0x1ccc')](_0x40c863['file'][_0x119029('0x3d5')]),_0x276e09[_0x119029('0x2468')]=function(_0x446918){const _0x1ea97d=_0x119029;_0x40c863[_0x1ea97d('0x1672')]=_0x446918[_0x1ea97d('0x159c')][_0x1ea97d('0xdb9')];},_0x40c863['type']=_0x119029('0x157f');}});}}const _0x31f211=_0x4847cb;_0x575ee6[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1e6a'),'setting',_0x34e79e('0x1b04')];function _0x575ee6(_0x4161d5,_0x5c3bf0,_0x318920,_0x5c62fd,_0x4f99ad,_0x36ef08,_0x6c7566){const _0x4fc0d8=_0x34e79e,_0x1a31d0=this;_0x1a31d0[_0x4fc0d8('0x9cb')]=_0x6c7566['getCurrentUser'](),_0x1a31d0['errors']=[],_0x1a31d0[_0x4fc0d8('0x1af0')]=_0x36ef08,_0x1a31d0[_0x4fc0d8('0x18ad')]=_0x1a31d0[_0x4fc0d8('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a31d0[_0x4fc0d8('0x1e6a')]=_0x4f99ad,_0x1a31d0[_0x4fc0d8('0xad8')]='',_0x1a31d0['oldPassword']='',_0x1a31d0['savePassword']=_0x183e3b,_0x1a31d0[_0x4fc0d8('0xca7')]=_0x55750c,_0x4161d5[_0x4fc0d8('0x1662')](_0x4fc0d8('0x1add'),function(_0x1a104c){const _0x523040=_0x4fc0d8;!_0x283545()['isNil'](_0x1a31d0[_0x523040('0x2380')])&&(_0x1a104c===_0x1a31d0[_0x523040('0x2380')]?_0x4161d5['userForm']['password'][_0x523040('0x22a2')](_0x523040('0xb2a'),![]):_0x4161d5[_0x523040('0xeb6')]['password'][_0x523040('0x22a2')](_0x523040('0xb2a'),!![]));});function _0x183e3b(){const _0x319c3c=_0x4fc0d8;_0x1a31d0['errors']=[];const _0x126601={'id':_0x1a31d0[_0x319c3c('0x1e6a')]['id'],'newPassword':_0x1a31d0[_0x319c3c('0xad8')]};_0x1a31d0[_0x319c3c('0x9cb')]['id']==_0x1a31d0['user']['id']&&(_0x126601[_0x319c3c('0x2380')]=_0x1a31d0['oldPassword']),_0x5c62fd[_0x319c3c('0x1e6a')][_0x319c3c('0x73b')](_0x126601)[_0x319c3c('0x1714')][_0x319c3c('0x2788')](function(){const _0x4790f6=_0x319c3c;_0x318920[_0x4790f6('0x173b')]({'title':_0x4790f6('0x16a9')}),_0x55750c();})[_0x319c3c('0x1cb5')](function(_0x2a68bf){const _0x53b623=_0x319c3c;_0x318920[_0x53b623('0x5e8')]({'title':_0x2a68bf[_0x53b623('0x1b51')]?'API:'+_0x2a68bf['status']+'\x20-\x20'+_0x2a68bf[_0x53b623('0x22ce')]:'api.user.save','msg':_0x2a68bf[_0x53b623('0x11fc')]?JSON[_0x53b623('0x1be0')](_0x2a68bf[_0x53b623('0x11fc')]['message']):_0x2a68bf['toString']()}),_0x1a31d0[_0x53b623('0x25be')]=_0x2a68bf[_0x53b623('0x11fc')][_0x53b623('0x25be')]||[{'message':_0x2a68bf['toString'](),'type':'api.user.changePassword'}];});}function _0x55750c(){const _0x46832f=_0x4fc0d8;_0x5c3bf0[_0x46832f('0x19d')]();}}const _0x3c6651=_0x575ee6,_0x26d3da=_0x18dd13['p']+_0x34e79e('0x19a2'),_0x5c95e9=_0x18dd13['p']+_0x34e79e('0x1b90');_0x26e0b0['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),'setting','api',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'user',_0x34e79e('0xec9')];function _0x26e0b0(_0x10c623,_0x3f7c85,_0x5777ce,_0x538f0d,_0x1389b4,_0x5a33c9,_0x5817b3,_0x5634d9,_0x8d420c,_0x6fd25a,_0x4861ab,_0xcb925e){const _0x143dee=_0x34e79e,_0x45ed92=this;_0x45ed92['currentUser']=_0x6fd25a['getCurrentUser'](),_0x45ed92[_0x143dee('0x130d')]=_0x5a33c9,_0x45ed92[_0x143dee('0x1af0')]=_0x5817b3,_0x45ed92['passwordPattern']=_0x45ed92[_0x143dee('0x1af0')][_0x143dee('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45ed92[_0x143dee('0xe9')]=_0x3f7c85[_0x143dee('0x170c')]()+_0x143dee('0x726')+_0x3f7c85[_0x143dee('0x1c6a')](),_0x45ed92[_0x143dee('0x1e6a')]=_0x4861ab||_0x10c623['params'][_0x143dee('0x1e6a')]||{},_0x45ed92[_0x143dee('0xec9')]=_0xcb925e&&_0xcb925e[_0x143dee('0x338')]==0x1?_0xcb925e[_0x143dee('0x25df')][0x0]:null,_0x45ed92[_0x143dee('0xe28')]=_0x6fd25a[_0x143dee('0x157e')](_0x45ed92[_0x143dee('0xec9')]?_0x45ed92[_0x143dee('0xec9')]['crudPermissions']:null),_0x45ed92[_0x143dee('0x1193')]={},_0x45ed92[_0x143dee('0xcb3')]=_0x10c623[_0x143dee('0x4b9')][_0x143dee('0x24f6')]||0x0,_0x45ed92[_0x143dee('0x2562')]=_0xc9da58,_0x45ed92[_0x143dee('0x1f56')]=_0x1be57e,_0x45ed92['alert']=_0x8d420c[_0x143dee('0x2276')],_0x45ed92[_0x143dee('0x19a6')]=_0x285f86,_0x45ed92[_0x143dee('0x163f')]=_0x4e1f57,_0x5634d9[_0x143dee('0x15cc')][_0x143dee('0x1335')]({'fields':_0x143dee('0x1338'),'sort':'name'})['$promise']['then'](function(_0x3df654){const _0x4f8e00=_0x143dee;_0x45ed92[_0x4f8e00('0xf3e')]=_0x3df654[_0x4f8e00('0x25df')]||[];})[_0x143dee('0x1cb5')](function(_0x3a0e28){const _0x5ddda4=_0x143dee;_0x8d420c['error']({'title':_0x3a0e28[_0x5ddda4('0x1b51')]?'API:'+_0x3a0e28[_0x5ddda4('0x1b51')]+_0x5ddda4('0x1b0b')+_0x3a0e28[_0x5ddda4('0x22ce')]:_0x5ddda4('0x15f7'),'msg':_0x3a0e28[_0x5ddda4('0x11fc')]?JSON[_0x5ddda4('0x1be0')](_0x3a0e28[_0x5ddda4('0x11fc')]):_0x3a0e28[_0x5ddda4('0x17df')]()});}),_0x5634d9[_0x143dee('0x63c')][_0x143dee('0x1335')]({'fields':_0x143dee('0x1338'),'sort':_0x143dee('0x1a8d')})[_0x143dee('0x1714')][_0x143dee('0x2788')](function(_0x136f4c){const _0x1aa8c4=_0x143dee;_0x45ed92['userProfiles']=_0x136f4c[_0x1aa8c4('0x25df')]||[];})[_0x143dee('0x1cb5')](function(_0x29f3c4){const _0xc72f3e=_0x143dee;_0x8d420c[_0xc72f3e('0x5e8')]({'title':_0x29f3c4[_0xc72f3e('0x1b51')]?'API:'+_0x29f3c4['status']+'\x20-\x20'+_0x29f3c4['statusText']:_0xc72f3e('0x221d'),'msg':_0x29f3c4[_0xc72f3e('0x11fc')]?JSON['stringify'](_0x29f3c4['data']):_0x29f3c4[_0xc72f3e('0x17df')]()});}),_0x5634d9['user'][_0x143dee('0x2479')]({'id':_0x45ed92[_0x143dee('0x1e6a')]['id']})['$promise']['then'](function(_0x26eb0f){const _0x42d258=_0x143dee;_0x45ed92['user']['apiKey']=_0x26eb0f['api_key']?_0x26eb0f[_0x42d258('0x1823')]:_0x42d258('0x885');})[_0x143dee('0x1cb5')](function(_0x1cbb34){const _0x30f6ea=_0x143dee;_0x8d420c[_0x30f6ea('0x5e8')]({'title':_0x1cbb34[_0x30f6ea('0x1b51')]?'API:'+_0x1cbb34[_0x30f6ea('0x1b51')]+_0x30f6ea('0x1b0b')+_0x1cbb34[_0x30f6ea('0x22ce')]:_0x30f6ea('0x518'),'msg':_0x1cbb34['data']?JSON[_0x30f6ea('0x1be0')](_0x1cbb34['data']):_0x1cbb34[_0x30f6ea('0x17df')]()});});function _0xc9da58(_0x45896c,_0x480d61){const _0x43e208=_0x143dee;_0x5777ce[_0x43e208('0x2fa')]({'controller':_0x43e208('0xd2f'),'controllerAs':'vm','templateUrl':_0x26d3da,'parent':angular[_0x43e208('0x16b1')](_0x538f0d[_0x43e208('0x945')]),'targetEvent':_0x480d61,'clickOutsideToClose':!![],'locals':{'user':_0x45896c,'users':_0x45ed92[_0x43e208('0x1e42')]?_0x45ed92[_0x43e208('0x1e42')]['rows']:[],'crudPermissions':_0x45ed92[_0x43e208('0xe28')]}});}function _0x1be57e(_0x4f9870,_0x4dbec8){const _0x5abe3c=_0x143dee;_0x5777ce['show']({'controller':_0x5abe3c('0x67c'),'controllerAs':'vm','templateUrl':_0x5c95e9,'parent':angular[_0x5abe3c('0x16b1')](_0x538f0d[_0x5abe3c('0x945')]),'targetEvent':_0x4dbec8,'clickOutsideToClose':!![],'locals':{'user':_0x4f9870,'setting':_0x5817b3,'users':_0x45ed92[_0x5abe3c('0x1e42')]?_0x45ed92[_0x5abe3c('0x1e42')][_0x5abe3c('0x25df')]:[],'crudPermissions':_0x45ed92[_0x5abe3c('0xe28')]}});}function _0x285f86(){const _0x481dc4=_0x143dee;_0x10c623['go'](_0x481dc4('0x5e5'),{},{'reload':_0x481dc4('0x5e5')});}function _0x4e1f57(){const _0x18cb48=_0x143dee;_0x45ed92['user']=_0x283545()['omit'](_0x45ed92[_0x18cb48('0x1e6a')],_0x18cb48('0x261d')),_0x5634d9['user']['update']({'id':_0x45ed92[_0x18cb48('0x1e6a')]['id']},_0x45ed92[_0x18cb48('0x1e6a')])[_0x18cb48('0x1714')][_0x18cb48('0x2788')](function(){const _0x22a114=_0x18cb48;_0x8d420c[_0x22a114('0x173b')]({'title':_0x22a114('0x1d0a'),'msg':_0x45ed92['user'][_0x22a114('0x1a8d')]?_0x45ed92[_0x22a114('0x1e6a')][_0x22a114('0x1a8d')]+_0x22a114('0x6f8'):''});})[_0x18cb48('0x1cb5')](function(_0x401983){const _0x3a7ca5=_0x18cb48;_0x8d420c[_0x3a7ca5('0x5e8')]({'title':_0x401983['status']?_0x3a7ca5('0x15d1')+_0x401983['status']+_0x3a7ca5('0x1b0b')+_0x401983[_0x3a7ca5('0x22ce')]:_0x3a7ca5('0x2396'),'msg':_0x401983[_0x3a7ca5('0x11fc')]?JSON[_0x3a7ca5('0x1be0')](_0x401983[_0x3a7ca5('0x11fc')]):_0x401983['toString']()});});}}const _0x36ba66=_0x26e0b0,_0x4c3c3e=_0x18dd13['p']+_0x34e79e('0x2491');_0x36e8ec['$inject']=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),'$translate',_0x34e79e('0x1e42'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x36e8ec(_0x4b562c,_0x294ab1,_0x21d8cf,_0x3c858d,_0x33b804,_0x2fedd1,_0x283978,_0x62f764,_0x4db6a3,_0x57a519,_0x51a400,_0x1ead34,_0x550fdd,_0xbea361,_0x4e1b28,_0x3c13aa,_0x1448ec){const _0x445206=_0x34e79e,_0x21f4cb=this;_0x21f4cb[_0x445206('0x130d')]=_0x3c13aa,_0x21f4cb['setting']=_0x1448ec,_0x21f4cb[_0x445206('0x9cb')]=_0x4e1b28[_0x445206('0x24cc')](),_0x21f4cb[_0x445206('0x1e42')]=_0x4db6a3||{'count':0x0,'rows':[]},_0x21f4cb[_0x445206('0x63c')]=_0x57a519,_0x21f4cb['userProfileSection']=_0x51a400&&_0x51a400['count']==0x1?_0x51a400[_0x445206('0x25df')][0x0]:null,_0x21f4cb[_0x445206('0xe28')]=_0x4e1b28['parseCrudPermissions'](_0x21f4cb[_0x445206('0xec9')]?_0x21f4cb['userProfileSection']['crudPermissions']:null),_0x21f4cb[_0x445206('0x26a9')]=_0x445206('0x1e42'),_0x21f4cb[_0x445206('0x2278')]='',_0x21f4cb['listOrderAsc']=null,_0x21f4cb[_0x445206('0x1101')]=[],_0x21f4cb[_0x445206('0x135a')]={'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':_0x445206('0x1cee'),'limit':0xa,'page':0x1},_0x21f4cb[_0x445206('0x1362')]=_0x283545()['keyBy']([{'option':_0x445206('0x275e'),'value':_0x445206('0x1482')},{'option':_0x445206('0x1832'),'value':_0x445206('0x654')}],function(_0x34a8bb){const _0x1bf3ff=_0x445206;return _0x283545()['replace'](_0x34a8bb[_0x1bf3ff('0x49')],new RegExp('\x27','g'),'');}),_0x21f4cb[_0x445206('0x164b')]=_0x283545()[_0x445206('0x13cf')]([{'option':'udp','value':_0x445206('0x2448')},{'option':'tcp','value':_0x445206('0x1bdd')},{'option':'ws','value':'\x27ws\x27'},{'option':'wss','value':_0x445206('0x1566')},{'option':'tls','value':_0x445206('0x1ecb')}],function(_0x25bea8){const _0x102866=_0x445206;return _0x283545()[_0x102866('0x10a4')](_0x25bea8['value'],new RegExp('\x27','g'),'');}),_0x21f4cb['arraynat']=_0x283545()[_0x445206('0x13cf')]([{'option':_0x445206('0x16a7'),'value':_0x445206('0x1a9b')},{'option':_0x445206('0x372'),'value':'\x27comedia\x27'},{'option':_0x445206('0x2062'),'value':'\x27yes\x27'},{'option':'no','value':_0x445206('0x2363')},{'option':_0x445206('0x173d'),'value':_0x445206('0x1c4')},{'option':_0x445206('0x44b'),'value':_0x445206('0x2560')}],function(_0x44dfbb){const _0x458a44=_0x445206;return _0x283545()[_0x458a44('0x10a4')](_0x44dfbb[_0x458a44('0x49')],new RegExp('\x27','g'),'');}),_0x21f4cb[_0x445206('0x19b7')]=_0x283545()[_0x445206('0x13cf')]([{'option':_0x445206('0x972'),'value':_0x445206('0x10fb')},{'option':'alaw','value':'\x27alaw\x27'},{'option':_0x445206('0x14c1'),'value':_0x445206('0x9d3')},{'option':_0x445206('0xfc3'),'value':'\x27g722\x27'},{'option':_0x445206('0x1f4f'),'value':_0x445206('0x16a6')},{'option':'opus','value':'\x27opus\x27'},{'option':_0x445206('0x8ea'),'value':_0x445206('0xcc3')}],function(_0x416009){const _0x248ce3=_0x445206;return _0x283545()[_0x248ce3('0x10a4')](_0x416009[_0x248ce3('0x49')],new RegExp('\x27','g'),'');}),_0x21f4cb['arrayvideosupport']=_0x283545()[_0x445206('0x13cf')]([{'option':'Yes','value':_0x445206('0x640')},{'option':'No','value':_0x445206('0x2363')},{'option':_0x445206('0x25e3'),'value':'\x27always\x27'}],function(_0x182cee){const _0x54fc56=_0x445206;return _0x283545()[_0x54fc56('0x10a4')](_0x182cee[_0x54fc56('0x49')],new RegExp('\x27','g'),'');}),_0x21f4cb[_0x445206('0x1f7e')]=_0x2dae77,_0x21f4cb[_0x445206('0x1e5')]=_0x3d0afc,_0x21f4cb[_0x445206('0x173b')]=_0x596343,_0x21f4cb[_0x445206('0x1b18')]=_0x32d9a4,_0x21f4cb['createOrEditUser']=_0x33baac,_0x21f4cb[_0x445206('0xe2b')]=_0x391ad4,_0x21f4cb[_0x445206('0x204b')]=_0x8105a5,_0x21f4cb[_0x445206('0x1a5')]=_0x3a8b31,_0x21f4cb[_0x445206('0x72c')]=_0x517d55,_0x21f4cb[_0x445206('0x2074')]=_0x2b0e0f,_0x1ead34[_0x445206('0x63c')][_0x445206('0x1335')]({'fields':'id,name','sort':_0x445206('0x1a8d')})[_0x445206('0x1714')]['then'](function(_0x5a7258){const _0x3ad035=_0x445206;_0x21f4cb[_0x3ad035('0x20b')]=_0x5a7258[_0x3ad035('0x25df')]||[];})['catch'](function(_0x29bdc1){const _0x58e9c6=_0x445206;_0xbea361[_0x58e9c6('0x5e8')]({'title':_0x29bdc1[_0x58e9c6('0x1b51')]?_0x58e9c6('0x15d1')+_0x29bdc1[_0x58e9c6('0x1b51')]+_0x58e9c6('0x1b0b')+_0x29bdc1[_0x58e9c6('0x22ce')]:'SYSTEM:GET_USERPROFILES','msg':_0x29bdc1['data']?JSON[_0x58e9c6('0x1be0')](_0x29bdc1[_0x58e9c6('0x11fc')]):_0x29bdc1[_0x58e9c6('0x17df')]()});});function _0x2dae77(_0x328be4){const _0x2d4b31=_0x445206;_0x21d8cf['go'](_0x2d4b31('0x8bf'),{'id':_0x328be4['id'],'user':_0x328be4,'crudPermissions':_0x21f4cb[_0x2d4b31('0xe28')]});}function _0x3d0afc(_0x344883,_0x5ea563){const _0x513c02=_0x445206,_0x49683c=_0x33b804[_0x513c02('0x112e')]()['title'](_0x513c02('0x2114')+_0x283545()[_0x513c02('0x114')](_0x513c02('0x1e6a'))+'?')[_0x513c02('0x93e')](_0x513c02('0x1670')+(_0x344883[_0x513c02('0x1a8d')]||_0x513c02('0x1e6a'))+_0x513c02('0x229e')+'\x20will\x20be\x20deleted.')[_0x513c02('0x10bc')]('delete\x20user')[_0x513c02('0x24d0')](_0x5ea563)['ok']('OK')[_0x513c02('0x1801')](_0x513c02('0x1d8d'));_0x33b804[_0x513c02('0x2fa')](_0x49683c)['then'](function(){_0x391ad4(_0x344883);},function(){const _0x506e0a=_0x513c02;console[_0x506e0a('0x10df')](_0x506e0a('0x1d8d'));});}let _0x5a1331=!![],_0x1058a9=0x1;_0x4b562c[_0x445206('0x1662')](_0x445206('0x1569'),function(_0x56c281,_0x1f9406){const _0xb1c652=_0x445206;_0x5a1331?_0x283978(function(){_0x5a1331=![];}):(!_0x1f9406&&(_0x1058a9=_0x21f4cb[_0xb1c652('0x135a')][_0xb1c652('0x23f5')]),_0x56c281!==_0x1f9406&&(_0x21f4cb[_0xb1c652('0x135a')][_0xb1c652('0x23f5')]=0x1),!_0x56c281&&(_0x21f4cb[_0xb1c652('0x135a')]['page']=_0x1058a9),_0x21f4cb['getUsers']());});function _0x596343(_0x5a87f5){const _0x398733=_0x445206;_0x21f4cb[_0x398733('0x1e42')]=_0x5a87f5||{'count':0x0,'rows':[]};}function _0x32d9a4(){const _0x207c41=_0x445206;_0x21f4cb[_0x207c41('0x135a')][_0x207c41('0x19e')]=(_0x21f4cb[_0x207c41('0x135a')][_0x207c41('0x23f5')]-0x1)*_0x21f4cb[_0x207c41('0x135a')][_0x207c41('0x68e')],_0x4e1b28[_0x207c41('0x1516')](_0x207c41('0xe23'))?_0x21f4cb[_0x207c41('0x1808')]=_0x1ead34[_0x207c41('0x1e6a')][_0x207c41('0x1335')](_0x21f4cb[_0x207c41('0x135a')],_0x596343)[_0x207c41('0x1714')]:(_0x21f4cb[_0x207c41('0x135a')]['id']=_0x21f4cb['userProfile']['id'],_0x21f4cb['query'][_0x207c41('0xb13')]=_0x207c41('0x23f4'),_0x21f4cb[_0x207c41('0x1808')]=_0x1ead34[_0x207c41('0x63c')][_0x207c41('0xa1')](_0x21f4cb['query'],_0x596343)['$promise']);}function _0x33baac(_0x17d542,_0x9e075e){const _0x9d1123=_0x445206;_0x33b804[_0x9d1123('0x2fa')]({'controller':'CreateOrEditUserDialogController','controllerAs':'vm','templateUrl':_0x4c3c3e,'parent':angular[_0x9d1123('0x16b1')](_0x2fedd1[_0x9d1123('0x945')]),'targetEvent':_0x17d542,'clickOutsideToClose':!![],'locals':{'user':_0x9e075e,'users':_0x21f4cb[_0x9d1123('0x1e42')]['rows'],'license':_0x21f4cb[_0x9d1123('0x130d')],'setting':_0x21f4cb[_0x9d1123('0x1af0')],'crudPermissions':_0x21f4cb[_0x9d1123('0xe28')]}});}function _0x391ad4(_0x23a90e){const _0x26dd8a=_0x445206;_0x1ead34[_0x26dd8a('0x1e6a')][_0x26dd8a('0x17c4')]({'id':_0x23a90e['id']})['$promise'][_0x26dd8a('0x2788')](function(){const _0x577ef4=_0x26dd8a;_0x283545()['remove'](_0x21f4cb[_0x577ef4('0x1e42')][_0x577ef4('0x25df')],{'id':_0x23a90e['id']}),_0x21f4cb[_0x577ef4('0x1e42')][_0x577ef4('0x338')]-=0x1,!_0x21f4cb['users'][_0x577ef4('0x25df')][_0x577ef4('0x2566')]&&_0x21f4cb['getUsers'](),_0xbea361['success']({'title':_0x283545()[_0x577ef4('0x114')](_0x577ef4('0x1832'))+'\x20deleted!','msg':_0x23a90e[_0x577ef4('0x1a8d')]?_0x23a90e['name']+'\x20has\x20been\x20deleted!':''});})[_0x26dd8a('0x1cb5')](function(_0x323685){const _0x5d56f6=_0x26dd8a;if(_0x323685[_0x5d56f6('0x11fc')]&&_0x323685[_0x5d56f6('0x11fc')][_0x5d56f6('0x25be')]&&_0x323685[_0x5d56f6('0x11fc')][_0x5d56f6('0x25be')][_0x5d56f6('0x2566')]){_0x21f4cb[_0x5d56f6('0x25be')]=_0x323685['data'][_0x5d56f6('0x25be')]||[{'message':_0x323685['toString'](),'type':_0x5d56f6('0x361')}];for(let _0xc6ac78=0x0;_0xc6ac78<_0x323685[_0x5d56f6('0x11fc')]['errors'][_0x5d56f6('0x2566')];_0xc6ac78++){_0xbea361['error']({'title':_0x323685[_0x5d56f6('0x11fc')]['errors'][_0xc6ac78][_0x5d56f6('0x1d7')],'msg':_0x323685['data'][_0x5d56f6('0x25be')][_0xc6ac78]['message']});}}else _0xbea361[_0x5d56f6('0x5e8')]({'title':_0x323685[_0x5d56f6('0x1b51')]?'API:'+_0x323685[_0x5d56f6('0x1b51')]+'\x20-\x20'+_0x323685['statusText']:'SYSTEM:DELETEuser','msg':_0x323685['data']?JSON[_0x5d56f6('0x1be0')](_0x323685[_0x5d56f6('0x11fc')][_0x5d56f6('0x15e2')]):_0x323685[_0x5d56f6('0x15e2')]||_0x323685['toString']()});});}function _0x8105a5(){const _0x33182e=_0x445206,_0x1974be=angular[_0x33182e('0x2669')](_0x21f4cb[_0x33182e('0x1101')]);return _0x21f4cb[_0x33182e('0x1101')]=[],_0x1974be;}function _0x3a8b31(_0x254371){const _0x15d13b=_0x445206,_0x5deac5=_0x33b804['confirm']()[_0x15d13b('0x14e4')](_0x15d13b('0x1809'))['htmlContent'](_0x15d13b('0x1670')+_0x21f4cb[_0x15d13b('0x1101')][_0x15d13b('0x2566')]+_0x15d13b('0xbd')+_0x15d13b('0x27c7'))[_0x15d13b('0x10bc')](_0x15d13b('0x1fbb'))[_0x15d13b('0x24d0')](_0x254371)['ok']('OK')['cancel']('CANCEL');_0x33b804['show'](_0x5deac5)[_0x15d13b('0x2788')](function(){const _0x37c9cd=_0x15d13b;_0x21f4cb[_0x37c9cd('0x1101')]['forEach'](function(_0x1b6c3a){_0x391ad4(_0x1b6c3a);}),_0x21f4cb['selectedUsers']=[];});}function _0x517d55(){const _0x11bfed=_0x445206;_0x21f4cb[_0x11bfed('0x1101')]=[];}function _0x2b0e0f(){const _0x3b0e81=_0x445206;_0x21f4cb[_0x3b0e81('0x1101')]=_0x21f4cb['users'][_0x3b0e81('0x25df')];}}const _0x3554a4=_0x36e8ec,_0xbb8072=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/users/users.html/users.html',_0x2ca242=_0x18dd13['p']+_0x34e79e('0x2040'),_0x351acc=_0x18dd13['p']+_0x34e79e('0x1a10'),_0x12fbe7=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/agents/edit/view.html/view.html',_0x484cdb=_0x18dd13['p']+_0x34e79e('0x1906'),_0x513fe7=_0x18dd13['p']+'src/js/modules/main/apps/staff/views/telephones/edit/view.html/view.html',_0x4474ca=_0x18dd13['p']+_0x34e79e('0x1da9'),_0x377a5a=_0x18dd13['p']+_0x34e79e('0x1371'),_0x47924c=_0x18dd13['p']+_0x34e79e('0x5a8');_0x194014['$inject']=['$stateProvider','$translatePartialLoaderProvider'];function _0x194014(_0x2af414,_0x50539a){const _0x1642c2=_0x34e79e;_0x2af414[_0x1642c2('0x249b')]('app.staff',{'abstract':!![],'url':_0x1642c2('0x24e3')})[_0x1642c2('0x249b')](_0x1642c2('0x5e5'),{'url':_0x1642c2('0x278a'),'views':{'content@app':{'templateUrl':_0xbb8072,'controller':_0x1642c2('0x1f1f')}},'resolve':{'users':[_0x1642c2('0x1318'),function(_0x38f926){const _0x274bd8=_0x1642c2;return _0x38f926[_0x274bd8('0x2322')](_0x274bd8('0x144f'),{'fields':_0x274bd8('0x6f7'),'role':'admin,user','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x2ba7da,_0x49970d){const _0x5ad4d7=_0x1642c2;return _0x49970d[_0x5ad4d7('0x1516')]('admin')?null:_0x2ba7da[_0x5ad4d7('0x2322')]('userProfile@get',{'fields':_0x5ad4d7('0x3f0'),'id':_0x49970d[_0x5ad4d7('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x582ca9,_0xdc4fec){const _0x33443f=_0x1642c2;return _0xdc4fec['hasRole'](_0x33443f('0xe23'))?null:_0x582ca9[_0x33443f('0x2322')](_0x33443f('0x22ca'),{'fields':_0x33443f('0xe2c'),'userProfileId':_0xdc4fec[_0x33443f('0x24cc')]()[_0x33443f('0x237f')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x1642c2('0xfce')})[_0x1642c2('0x249b')]('app.staff.users.edit',{'url':'/:id?tab','params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2ca242,'controller':'UserController\x20as\x20vm'}},'resolve':{'user':[_0x1642c2('0x1318'),_0x1642c2('0xad0'),function(_0xde965f,_0x6c5cd4){const _0xd917c8=_0x1642c2;return _0xde965f[_0xd917c8('0x2322')](_0xd917c8('0x144f'),{'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':_0x6c5cd4['id']});}],'userProfileSection':['apiResolver',_0x1642c2('0x1b04'),function(_0x364c3a,_0x200953){const _0x1573ae=_0x1642c2;return _0x364c3a[_0x1573ae('0x2322')](_0x1573ae('0x22ca'),{'fields':_0x1573ae('0xe2c'),'userProfileId':_0x200953[_0x1573ae('0x24cc')]()['userProfileId'],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x1642c2('0xfce')})[_0x1642c2('0x249b')](_0x1642c2('0x1e9c'),{'url':'/agents','views':{'content@app':{'templateUrl':_0x351acc,'controller':_0x1642c2('0x223')}},'resolve':{'agents':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x5e8cbc,_0x289bad){const _0x3fa94c=_0x1642c2;return _0x289bad[_0x3fa94c('0x1516')](_0x3fa94c('0xe23'))?_0x5e8cbc['resolve']('user@get',{'fields':_0x3fa94c('0x20a7'),'role':_0x3fa94c('0x188b'),'sort':_0x3fa94c('0x1cee'),'limit':0xa,'offset':0x0}):_0x5e8cbc[_0x3fa94c('0x2322')]('userProfile@getResources',{'id':_0x289bad[_0x3fa94c('0x24cc')]()[_0x3fa94c('0x237f')],'section':_0x3fa94c('0x1f72'),'fields':_0x3fa94c('0x20a7'),'role':_0x3fa94c('0x188b'),'sort':_0x3fa94c('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1642c2('0x1b04'),function(_0x27841e,_0x110f7f){const _0x2a37d6=_0x1642c2;return _0x110f7f[_0x2a37d6('0x1516')]('admin')?null:_0x27841e[_0x2a37d6('0x2322')](_0x2a37d6('0x231d'),{'fields':'id,name,crudPermissions','id':_0x110f7f[_0x2a37d6('0x24cc')]()[_0x2a37d6('0x237f')]});}],'userProfileSection':[_0x1642c2('0x1318'),'Auth',function(_0xff56fe,_0x219a80){const _0x120ed6=_0x1642c2;return _0x219a80[_0x120ed6('0x1516')](_0x120ed6('0xe23'))?null:_0xff56fe[_0x120ed6('0x2322')](_0x120ed6('0x22ca'),{'fields':_0x120ed6('0xe2c'),'userProfileId':_0x219a80[_0x120ed6('0x24cc')]()[_0x120ed6('0x237f')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1642c2('0xfce')})[_0x1642c2('0x249b')](_0x1642c2('0x229a'),{'url':_0x1642c2('0x206b'),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x12fbe7,'controller':'AgentController\x20as\x20vm'}},'resolve':{'agent':[_0x1642c2('0x1318'),_0x1642c2('0xad0'),function(_0x22c28f,_0x43f08){const _0x41ee10=_0x1642c2;return _0x22c28f[_0x41ee10('0x2322')](_0x41ee10('0x144f'),{'fields':_0x41ee10('0x20a7'),'id':_0x43f08['id']});}],'userProfileSection':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x3e0564,_0x545925){const _0x19323f=_0x1642c2;return _0x3e0564[_0x19323f('0x2322')](_0x19323f('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x545925[_0x19323f('0x24cc')]()['userProfileId'],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1642c2('0xfce')})[_0x1642c2('0x249b')](_0x1642c2('0x10fc'),{'url':_0x1642c2('0x1d29'),'views':{'content@app':{'templateUrl':_0x484cdb,'controller':_0x1642c2('0x543')}},'resolve':{'telephones':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x486c75,_0x2fa0ec){const _0x2c9f75=_0x1642c2;return _0x2fa0ec[_0x2c9f75('0x1516')](_0x2c9f75('0xe23'))?_0x486c75['resolve'](_0x2c9f75('0x144f'),{'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':_0x2c9f75('0x1cee'),'limit':0xa,'offset':0x0}):_0x486c75[_0x2c9f75('0x2322')]('userProfile@getResources',{'id':_0x2fa0ec[_0x2c9f75('0x24cc')]()['userProfileId'],'section':_0x2c9f75('0x5da'),'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':_0x2c9f75('0x23ab'),'sort':_0x2c9f75('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x184cd0,_0x145db1){const _0x3b9176=_0x1642c2;return _0x145db1[_0x3b9176('0x1516')]('admin')?null:_0x184cd0['resolve'](_0x3b9176('0x231d'),{'fields':_0x3b9176('0x3f0'),'id':_0x145db1[_0x3b9176('0x24cc')]()[_0x3b9176('0x237f')]});}],'userProfileSection':[_0x1642c2('0x1318'),'Auth',function(_0xfd2528,_0x1196f4){const _0x533ef7=_0x1642c2;return _0x1196f4['hasRole'](_0x533ef7('0xe23'))?null:_0xfd2528[_0x533ef7('0x2322')](_0x533ef7('0x22ca'),{'fields':_0x533ef7('0xe2c'),'userProfileId':_0x1196f4[_0x533ef7('0x24cc')]()[_0x533ef7('0x237f')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':'staff'})[_0x1642c2('0x249b')](_0x1642c2('0x632'),{'url':'/:id?tab','params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x513fe7,'controller':'TelephoneController\x20as\x20vm'}},'resolve':{'telephone':[_0x1642c2('0x1318'),_0x1642c2('0xad0'),function(_0x1a1e02,_0x1b0d7b){const _0x342a28=_0x1642c2;return _0x1a1e02['resolve'](_0x342a28('0x144f'),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','id':_0x1b0d7b['id']});}],'userProfileSection':[_0x1642c2('0x1318'),'Auth',function(_0x14f2d7,_0x560cbd){const _0x49ce05=_0x1642c2;return _0x14f2d7['resolve'](_0x49ce05('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x560cbd['getCurrentUser']()[_0x49ce05('0x237f')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x1642c2('0xfce')})['state'](_0x1642c2('0xaa9'),{'url':'/teams','views':{'content@app':{'templateUrl':_0x4474ca,'controller':'TeamsController\x20as\x20vm'}},'resolve':{'teams':[_0x1642c2('0x1318'),'Auth',function(_0x2f6c99,_0x569918){const _0x311d31=_0x1642c2;return _0x569918['hasRole']('admin')?_0x2f6c99[_0x311d31('0x2322')](_0x311d31('0xf68'),{'fields':_0x311d31('0x1f79'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2f6c99[_0x311d31('0x2322')](_0x311d31('0x27c5'),{'id':_0x569918[_0x311d31('0x24cc')]()[_0x311d31('0x237f')],'section':_0x311d31('0x23e9'),'fields':_0x311d31('0x1f79'),'sort':_0x311d31('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x5d2df6,_0x50a401){const _0xffb7ee=_0x1642c2;return _0x50a401[_0xffb7ee('0x1516')](_0xffb7ee('0xe23'))?null:_0x5d2df6[_0xffb7ee('0x2322')](_0xffb7ee('0x231d'),{'fields':_0xffb7ee('0x3f0'),'id':_0x50a401['getCurrentUser']()[_0xffb7ee('0x237f')]});}],'userProfileSection':['apiResolver','Auth',function(_0x2d8862,_0xb6815c){const _0x3d5e20=_0x1642c2;return _0xb6815c[_0x3d5e20('0x1516')](_0x3d5e20('0xe23'))?null:_0x2d8862[_0x3d5e20('0x2322')]('userProfileSection@get',{'fields':_0x3d5e20('0xe2c'),'userProfileId':_0xb6815c[_0x3d5e20('0x24cc')]()['userProfileId'],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x1642c2('0xfce')})[_0x1642c2('0x249b')](_0x1642c2('0x18ae'),{'url':'/userProfiles','views':{'content@app':{'templateUrl':_0x377a5a,'controller':_0x1642c2('0xa4c')}},'resolve':{'userProfiles':[_0x1642c2('0x1318'),function(_0x25e7cb){const _0x1a0303=_0x1642c2;return _0x25e7cb['resolve']('userProfile@get',{'fields':_0x1a0303('0x6f4'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1642c2('0x1318'),'Auth',function(_0x14be58,_0x16dcfe){const _0x380593=_0x1642c2;return _0x16dcfe[_0x380593('0x1516')](_0x380593('0xe23'))?null:_0x14be58[_0x380593('0x2322')](_0x380593('0x231d'),{'fields':'id,name,crudPermissions','id':_0x16dcfe[_0x380593('0x24cc')]()[_0x380593('0x237f')]});}],'userProfileSection':[_0x1642c2('0x1318'),_0x1642c2('0x1b04'),function(_0x3867f5,_0x52796a){const _0x1e40e3=_0x1642c2;return _0x52796a[_0x1e40e3('0x1516')](_0x1e40e3('0xe23'))?null:_0x3867f5[_0x1e40e3('0x2322')]('userProfileSection@get',{'fields':_0x1e40e3('0xe2c'),'userProfileId':_0x52796a[_0x1e40e3('0x24cc')]()[_0x1e40e3('0x237f')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x1642c2('0xfce')})['state']('app.staff.userProfiles.edit',{'url':_0x1642c2('0x206b'),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x47924c,'controller':_0x1642c2('0x11a5')}},'resolve':{'userProfile':['apiResolver','$stateParams',function(_0x1396a4,_0x3d0172){const _0x46057a=_0x1642c2;return _0x1396a4[_0x46057a('0x2322')]('userProfile@get',{'fields':_0x46057a('0x6f4'),'id':_0x3d0172['id']});}],'userProfileSection':['apiResolver',_0x1642c2('0x1b04'),function(_0x4ceefe,_0x2977b3){const _0x65839d=_0x1642c2;return _0x4ceefe['resolve']('userProfileSection@get',{'fields':_0x65839d('0xe2c'),'userProfileId':_0x2977b3['getCurrentUser']()['userProfileId'],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x1642c2('0xfce')}),_0x50539a[_0x1642c2('0x15ae')](_0x1642c2('0x70'));}angular['module']('app.staff',[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),'mdColorPicker','ckeditor',_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),'mdPickers',_0x34e79e('0x1bb'),'mwFormViewer',_0x34e79e('0xe0f'),_0x34e79e('0x250d'),'angular-cron-jobs','ngEmbed','angularMaterialFormBuilder',_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82')])['config'](_0x194014)[_0x34e79e('0xb44')](_0x34e79e('0x1333'),_0x56268a)[_0x34e79e('0xb44')](_0x34e79e('0x1634'),_0x129811)[_0x34e79e('0xb44')](_0x34e79e('0xd47'),_0x4d038c)[_0x34e79e('0xb44')](_0x34e79e('0x1acb'),_0x380b1a)[_0x34e79e('0xb44')](_0x34e79e('0x1e30'),_0x246cb7)[_0x34e79e('0xb44')]('AgentqueueaddController',_0xb573c3)[_0x34e79e('0xb44')](_0x34e79e('0x1ddf'),_0x1cfef5)[_0x34e79e('0xb44')](_0x34e79e('0xed8'),_0x27be78)[_0x34e79e('0xb44')](_0x34e79e('0xb7d'),_0x20e2be)['controller'](_0x34e79e('0x1a4e'),_0x3d3540)['controller']('TeamsController',_0xd43141)[_0x34e79e('0xb44')](_0x34e79e('0x545'),_0x4afbee)['controller'](_0x34e79e('0x20ab'),_0x33bf58)[_0x34e79e('0xb44')]('TelephoneController',_0x3ad0e3)[_0x34e79e('0xb44')](_0x34e79e('0x1a34'),_0x270b36)[_0x34e79e('0xb44')](_0x34e79e('0x2210'),_0x15a587)[_0x34e79e('0xb44')](_0x34e79e('0x854'),_0x121448)[_0x34e79e('0xb44')](_0x34e79e('0x177b'),_0x33efe8)['controller'](_0x34e79e('0x1d43'),_0x5c5d98)[_0x34e79e('0xb44')](_0x34e79e('0x1ff0'),_0x35f069)[_0x34e79e('0xb44')](_0x34e79e('0x216a'),_0x31332e)[_0x34e79e('0xb44')](_0x34e79e('0x269b'),_0x189211)[_0x34e79e('0xb44')](_0x34e79e('0xd2f'),_0x29a2c7)[_0x34e79e('0xb44')]('Userchange_avatarController',_0x31f211)[_0x34e79e('0xb44')](_0x34e79e('0x67c'),_0x3c6651)['controller'](_0x34e79e('0x29b'),_0x36ba66)['controller'](_0x34e79e('0xe3'),_0x3554a4);const _0x2ce297=_0x18dd13['p']+_0x34e79e('0x1483'),_0x308ed9=_0x18dd13['p']+'src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html';_0x400dec[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1382'),_0x34e79e('0xad0'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x14b'),'lists',_0x34e79e('0xd89'),_0x34e79e('0x10f8'),_0x34e79e('0xb63'),_0x34e79e('0xe45'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d')];function _0x400dec(_0x2f2fc3,_0x54ba4e,_0x17672c,_0x1123f1,_0x9e6f5,_0x59a41c,_0x1d3da3,_0x527231,_0x5b717c,_0x3ff7cf,_0xbfe092,_0x32a217,_0x536a5e,_0x54e3f7,_0x1591b4,_0x191097,_0x2cbe6b,_0x285075,_0x555c92){const _0x8e710b=_0x34e79e,_0x3ef5cd=this;_0x3ef5cd[_0x8e710b('0x9cb')]=_0x285075['getCurrentUser'](),_0x3ef5cd['license']=_0x555c92,_0x3ef5cd['userProfile']=_0x527231,_0x3ef5cd[_0x8e710b('0xec9')]=_0x5b717c&&_0x5b717c[_0x8e710b('0x338')]==0x1?_0x5b717c[_0x8e710b('0x25df')][0x0]:null,_0x3ef5cd['crudPermissions']=_0x285075[_0x8e710b('0x157e')](_0x3ef5cd[_0x8e710b('0xec9')]?_0x3ef5cd[_0x8e710b('0xec9')][_0x8e710b('0xe28')]:null);const _0x222902=0x3c,_0x4afac4=_0x222902*0x400*0x400;_0x3ef5cd[_0x8e710b('0x1fce')]={'target':_0x8e710b('0x1913'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4afac4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3ef5cd[_0x8e710b('0x14b')]=_0xbfe092||{'count':0x0,'rows':[]},_0x3ef5cd['options']={'hidden':![],'hover':![],'isOpen':![]},_0x3ef5cd[_0x8e710b('0x26a9')]=_0x8e710b('0x3cd'),_0x3ef5cd['selectedContacts']=[],_0x3ef5cd['lists']=_0x32a217||{'rows':[],'count':0x0},_0x3ef5cd[_0x8e710b('0x10f8')]=_0x54e3f7||{'rows':[],'count':0x0},_0x3ef5cd[_0x8e710b('0xe45')]=_0x191097||{'rows':[],'count':0x0},_0x3ef5cd[_0x8e710b('0xd89')]=_0x536a5e,_0x3ef5cd[_0x8e710b('0xb63')]=_0x1591b4,_0x3ef5cd['selectedTags']=[],_0x3ef5cd['selectedList']=null,_0x3ef5cd[_0x8e710b('0x182')]=null,_0x3ef5cd[_0x8e710b('0x135a')]=_0x283545()['merge']({'includeAll':!![],'sort':_0x8e710b('0x1cee'),'limit':0xa,'offset':0x0,'page':0x1},_0x9e6f5),_0x3ef5cd[_0x8e710b('0x23af')]=_0x58b06b,_0x3ef5cd[_0x8e710b('0x1e5')]=_0x255606,_0x3ef5cd[_0x8e710b('0x173b')]=_0x1d8a21,_0x3ef5cd['getContacts']=_0x553bd0,_0x3ef5cd[_0x8e710b('0x11bb')]=_0x22f2e1,_0x3ef5cd[_0x8e710b('0xfd6')]=_0x1024d8,_0x3ef5cd[_0x8e710b('0x255e')]=_0x226827,_0x3ef5cd['createOrEditContact']=_0x2cb896,_0x3ef5cd[_0x8e710b('0x680')]=_0x49d887,_0x3ef5cd[_0x8e710b('0x1d8e')]=_0x5fb28c,_0x3ef5cd['deleteSelectedContacts']=_0x478e81,_0x3ef5cd['deselectContacts']=_0x22530c,_0x3ef5cd[_0x8e710b('0x524')]=_0x2d833c,_0x3ef5cd[_0x8e710b('0x783')]=_0x26389c,_0x3ef5cd['createList']=_0x47839f,_0x3ef5cd[_0x8e710b('0x13c9')]=_0x2d9ff2,_0x3ef5cd[_0x8e710b('0x1346')]=_0x1eba23,_0x3ef5cd['hasPermission']=_0x510d39,_0x3ef5cd['fileAdded']=_0x3d39bb;_0x1123f1[_0x8e710b('0x4b9')]['ListId']&&(_0x3ef5cd['selectedList']=_0x1123f1[_0x8e710b('0x4b9')][_0x8e710b('0x354')]);_0x1123f1[_0x8e710b('0x4b9')][_0x8e710b('0x1dcb')]&&(_0x3ef5cd['selectedCompany']=_0x1123f1[_0x8e710b('0x4b9')][_0x8e710b('0x1dcb')]);_0x2f2fc3['$watch'](_0x8e710b('0x10ca'),function(_0x4f9d69){const _0x32705b=_0x8e710b;_0x4f9d69?_0x17672c(function(){const _0x604850=a0_0x14e7;_0x2f2fc3[_0x604850('0x1ca2')]=_0x3ef5cd[_0x604850('0x784')][_0x604850('0x236')];},0x258):_0x2f2fc3[_0x32705b('0x1ca2')]=_0x3ef5cd[_0x32705b('0x784')]['isOpen'];});function _0x22f2e1(){const _0x385616=_0x8e710b;if(!_0x285075[_0x385616('0x1516')](_0x385616('0xe23'))){const _0x2543f5=_0x283545()(_0x3ef5cd['contacts'][_0x385616('0x25df')])[_0x385616('0x155d')](function(_0x55238c){return{'id':_0x55238c['CompanyId']};})[_0x385616('0xfc0')]('id')[_0x385616('0x916')](function(_0x11f8a3){return _0x11f8a3['id']&&_0x11f8a3['id']>0x0;})['pullAllBy'](_0x3ef5cd['companies']['rows'],'id')[_0x385616('0x49')]();if(!_0x283545()[_0x385616('0x213d')](_0x2543f5)){const _0x1bd448=[];_0x2543f5[_0x385616('0x1534')](function(_0x4f977a){const _0x1513a8=_0x385616;_0x1bd448[_0x1513a8('0x13e3')](_0x3ff7cf['cmCompany']['get']({'id':_0x4f977a['id'],'fields':_0x1513a8('0x1338')})[_0x1513a8('0x1714')]);}),_0x1d3da3[_0x385616('0x1def')](_0x1bd448)[_0x385616('0x2788')](function(_0x350a1a){const _0x1310f5=_0x385616;_0x350a1a[_0x1310f5('0x1534')](function(_0x308ef6){const _0x1761fc=_0x1310f5,_0x59e0ed=_0x308ef6[_0x1761fc('0x1cbf')]();_0x59e0ed[_0x1761fc('0x3bf')]=![],_0x3ef5cd[_0x1761fc('0x10f8')][_0x1761fc('0x25df')]['push'](_0x59e0ed);const _0x47df2b={};_0x47df2b[_0x59e0ed['id']]=_0x59e0ed['name'],_0x3ef5cd[_0x1761fc('0xb63')]=_0x283545()['assignIn'](_0x3ef5cd[_0x1761fc('0xb63')],_0x47df2b);});})[_0x385616('0x1cb5')](function(_0xb24b21){const _0x7578f7=_0x385616;_0x2cbe6b[_0x7578f7('0x5e8')]({'title':_0xb24b21[_0x7578f7('0x1b51')]?_0x7578f7('0x15d1')+_0xb24b21[_0x7578f7('0x1b51')]+'\x20-\x20'+_0xb24b21[_0x7578f7('0x22ce')]:_0x7578f7('0x155'),'msg':_0xb24b21['data']?JSON[_0x7578f7('0x1be0')](_0xb24b21['data'][_0x7578f7('0x15e2')]):_0xb24b21[_0x7578f7('0x17df')]()});});}}}function _0x47839f(_0x1c485a){const _0x4a0c5b=_0x8e710b,_0x4bfec7=_0x59a41c[_0x4a0c5b('0x1d45')]()[_0x4a0c5b('0x14e4')](_0x4a0c5b('0x26f7'))[_0x4a0c5b('0xd27')]('List\x20name')[_0x4a0c5b('0x10bc')]('List\x20name')['targetEvent'](_0x1c485a)['ok']('Ok')['cancel'](_0x4a0c5b('0x1481'));return _0x59a41c[_0x4a0c5b('0x2fa')](_0x4bfec7)['then'](function(_0x737f30){const _0x885de0=_0x4a0c5b;if(_0x737f30)return _0x3ff7cf[_0x885de0('0x1ba4')][_0x885de0('0xbd0')]({'name':_0x737f30});else _0x2cbe6b['error']({'title':_0x885de0('0x10e9'),'msg':_0x885de0('0x1eb2')});})[_0x4a0c5b('0x2788')](function(_0x27d6a1){const _0x379c70=_0x4a0c5b;_0x27d6a1&&(_0x3ef5cd['lists'][_0x379c70('0x25df')]['push'](_0x27d6a1),_0x2cbe6b[_0x379c70('0x173b')]({'title':_0x379c70('0x8bb'),'msg':_0x27d6a1[_0x379c70('0x1a8d')]?_0x27d6a1[_0x379c70('0x1a8d')]+_0x379c70('0x1e4a'):''}));});}function _0x510d39(){const _0x5ba888=_0x8e710b;return _0x285075[_0x5ba888('0xdd')](0x12f)||_0x285075[_0x5ba888('0x1516')]('admin');}function _0x2d9ff2(_0x307ed0){const _0x1011c2=_0x8e710b,_0x7a0558=_0x59a41c[_0x1011c2('0x1d45')]()['title'](_0x1011c2('0xfac'))[_0x1011c2('0xd27')]('Company\x20name')[_0x1011c2('0x10bc')](_0x1011c2('0x160b'))[_0x1011c2('0x24d0')](_0x307ed0)['ok']('Ok')[_0x1011c2('0x1801')](_0x1011c2('0x1481'));return _0x59a41c[_0x1011c2('0x2fa')](_0x7a0558)[_0x1011c2('0x2788')](function(_0x34c040){const _0x531a52=_0x1011c2;if(_0x34c040)return _0x3ff7cf[_0x531a52('0x27f6')][_0x531a52('0xbd0')]({'name':_0x34c040});else _0x2cbe6b['error']({'title':_0x531a52('0x483'),'msg':_0x531a52('0x1e31')});})[_0x1011c2('0x2788')](function(_0x2abaf0){const _0x65cf67=_0x1011c2;_0x2abaf0&&(_0x3ef5cd['companies'][_0x65cf67('0x25df')][_0x65cf67('0x13e3')](_0x2abaf0),_0x2cbe6b[_0x65cf67('0x173b')]({'title':'Company\x20properly\x20created!','msg':_0x2abaf0[_0x65cf67('0x1a8d')]?_0x2abaf0[_0x65cf67('0x1a8d')]+_0x65cf67('0x1e4a'):''}));});}function _0x26389c(_0x303a16){const _0x59febb=_0x8e710b,_0x3f48c6=_0x59a41c['prompt']()['title']('What\x20would\x20you\x20name\x20your\x20tag?')[_0x59febb('0xd27')](_0x59febb('0x2745'))['ariaLabel'](_0x59febb('0x2745'))['targetEvent'](_0x303a16)['ok']('Ok')[_0x59febb('0x1801')](_0x59febb('0x1481'));return _0x59a41c[_0x59febb('0x2fa')](_0x3f48c6)[_0x59febb('0x2788')](function(_0x1732e7){const _0x5fddda=_0x59febb;if(_0x1732e7)return _0x3ff7cf[_0x5fddda('0x1764')][_0x5fddda('0xbd0')]({'name':_0x1732e7});else _0x2cbe6b[_0x5fddda('0x5e8')]({'title':_0x5fddda('0x1466'),'msg':_0x5fddda('0x836')});})[_0x59febb('0x2788')](function(_0x3969cd){const _0xd005ab=_0x59febb;_0x3969cd&&(_0x3ef5cd[_0xd005ab('0xe45')][_0xd005ab('0x25df')][_0xd005ab('0x13e3')](_0x3969cd),_0x2cbe6b['success']({'title':'Tag\x20properly\x20created!','msg':_0x3969cd['tag']?_0x3969cd[_0xd005ab('0x1a8d')]+_0xd005ab('0x1e4a'):''}));});}function _0x1eba23(_0x420c02,_0x423d75){const _0x31c4ed=_0x8e710b,_0x5f1894=JSON[_0x31c4ed('0xe0b')](_0x423d75);_0x59a41c[_0x31c4ed('0x2fa')]({'controller':_0x31c4ed('0x13c0'),'controllerAs':'vm','templateUrl':_0x2ce297,'parent':angular[_0x31c4ed('0x16b1')](_0x54ba4e[_0x31c4ed('0x945')]),'clickOutsideToClose':![],'locals':{'lists':_0x32a217,'companies':_0x54e3f7,'file':_0x5f1894[_0x31c4ed('0x3d5')],'fields':_0x5f1894[_0x31c4ed('0x1578')],'license':_0x3ef5cd[_0x31c4ed('0x130d')]}})[_0x31c4ed('0x2788')](function(){const _0x51512e=_0x31c4ed;_0x3ef5cd[_0x51512e('0x1dc1')]();})[_0x31c4ed('0x1cb5')](function(){const _0x14994b=_0x31c4ed;console[_0x14994b('0x5e8')]();});}function _0x58b06b(_0x15bde4){const _0x5409ce=_0x8e710b;_0x1123f1['go'](_0x5409ce('0x22b0'),{'id':_0x15bde4['id'],'crudPermissions':_0x3ef5cd[_0x5409ce('0xe28')]});}function _0x255606(_0x124dcd,_0x2972c9){const _0x4986bb=_0x8e710b,_0x722c80=_0x59a41c[_0x4986bb('0x112e')]()['title'](_0x4986bb('0x1c6'))[_0x4986bb('0x93e')](_0x4986bb('0x1670')+(_0x124dcd['firstName']||_0x124dcd[_0x4986bb('0x2436')]||_0x124dcd['phone']||_0x4986bb('0x1c64'))+_0x4986bb('0x229e')+_0x4986bb('0x27c7'))['ariaLabel'](_0x4986bb('0x285'))[_0x4986bb('0x24d0')](_0x2972c9)['ok']('OK')[_0x4986bb('0x1801')](_0x4986bb('0x1d8d'));_0x59a41c[_0x4986bb('0x2fa')](_0x722c80)[_0x4986bb('0x2788')](function(){_0x49d887(_0x124dcd);});}function _0x3d39bb(_0x3266e6){const _0x30fca7=_0x8e710b,_0x1029f8=[_0x30fca7('0xc92')];if(!_0x283545()[_0x30fca7('0x1d4e')](_0x1029f8,_0x3266e6[_0x30fca7('0xa31')]()))return _0x2cbe6b['error']({'title':'Invalid\x20extension:\x20'+_0x3266e6['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x1029f8[_0x30fca7('0x185f')]()}),![];if(_0x3266e6['size']>_0x4afac4)return _0x2cbe6b[_0x30fca7('0x5e8')]({'title':_0x30fca7('0x6e8'),'msg':_0x30fca7('0x232c')+_0x222902+'MB'}),![];return!![];}let _0x537c5a=!![],_0x2ba48b=0x1;_0x2f2fc3['$watch'](_0x8e710b('0x1569'),function(_0x17d25e,_0x3e9b08){const _0xad580d=_0x8e710b;_0x537c5a?_0x17672c(function(){_0x537c5a=![];}):(!_0x3e9b08&&(_0x2ba48b=_0x3ef5cd[_0xad580d('0x135a')][_0xad580d('0x23f5')]),_0x17d25e!==_0x3e9b08&&(_0x3ef5cd[_0xad580d('0x135a')][_0xad580d('0x23f5')]=0x1),!_0x17d25e&&(_0x3ef5cd[_0xad580d('0x135a')]['page']=_0x2ba48b),_0x3ef5cd['getContacts']());},!![]),_0x2f2fc3[_0x8e710b('0x1662')]('vm.selectedList',function(_0x3c111d,_0x234767){const _0xf54a32=_0x8e710b;_0x3c111d!==_0x234767&&(_0x3ef5cd[_0xf54a32('0x135a')][_0xf54a32('0x354')]=_0x3ef5cd[_0xf54a32('0x1492')]||undefined,_0x3ef5cd[_0xf54a32('0x1dc1')]());}),_0x2f2fc3[_0x8e710b('0x1662')](_0x8e710b('0x1f9f'),function(_0x1e135f,_0x4e5ab2){const _0x4ca1f2=_0x8e710b;_0x1e135f!==_0x4e5ab2&&(_0x3ef5cd[_0x4ca1f2('0x135a')]['CompanyId']=_0x3ef5cd[_0x4ca1f2('0x182')]||undefined,_0x3ef5cd[_0x4ca1f2('0x1dc1')]());}),_0x2f2fc3[_0x8e710b('0x1662')]('vm.selectedTags',function(_0x3069f2,_0x5b90e1){const _0x1146d8=_0x8e710b;(_0x3069f2[_0x1146d8('0x2566')]||_0x5b90e1[_0x1146d8('0x2566')])&&_0x3ef5cd['getContacts']();});function _0x1d8a21(_0x1d549d){const _0x3dfa58=_0x8e710b;_0x3ef5cd[_0x3dfa58('0x14b')]=_0x1d549d||{'count':0x0,'rows':[]};}function _0x553bd0(){const _0x13e5d4=_0x8e710b;_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0x19e')]=(_0x3ef5cd[_0x13e5d4('0x135a')]['page']-0x1)*_0x3ef5cd['query'][_0x13e5d4('0x68e')],_0x285075['hasRole'](_0x13e5d4('0xe23'))?_0x3ef5cd[_0x13e5d4('0x1808')]=_0x3ff7cf[_0x13e5d4('0xa83')]['get'](_0x3ef5cd[_0x13e5d4('0x135a')],_0x1d8a21)[_0x13e5d4('0x1714')]:(_0x3ef5cd['query']['id']=_0x3ef5cd[_0x13e5d4('0x63c')]['id'],_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0x354')]=!_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0x354')]?_0x283545()[_0x13e5d4('0x155d')](_0x3ef5cd[_0x13e5d4('0x2')][_0x13e5d4('0x25df')],'id'):_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0x354')],_0x3ef5cd['query'][_0x13e5d4('0x1dcb')]=!_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0x1dcb')]?_0x283545()(_0x3ef5cd['companies'][_0x13e5d4('0x25df')])[_0x13e5d4('0x916')]({'canSelect':undefined})[_0x13e5d4('0x155d')]('id')['value']():_0x3ef5cd[_0x13e5d4('0x135a')]['CompanyId'],_0x3ef5cd[_0x13e5d4('0x135a')][_0x13e5d4('0xb13')]=_0x13e5d4('0x52d'),_0x3ef5cd[_0x13e5d4('0x1808')]=_0x3ff7cf[_0x13e5d4('0x63c')][_0x13e5d4('0xa1')](_0x3ef5cd[_0x13e5d4('0x135a')],_0x1d8a21)[_0x13e5d4('0x1714')]);}function _0x2cb896(_0x55ebc9,_0x3c629d){const _0xdde2a4=_0x8e710b;_0x3c629d&&_0x3c629d['dateOfBirth']&&(_0x3c629d[_0xdde2a4('0xc49')]=new Date(_0x3c629d[_0xdde2a4('0xc49')])),_0x59a41c['show']({'controller':_0xdde2a4('0x447'),'controllerAs':'vm','templateUrl':_0x308ed9,'parent':angular[_0xdde2a4('0x16b1')](_0x54ba4e[_0xdde2a4('0x945')]),'targetEvent':_0x55ebc9,'clickOutsideToClose':!![],'locals':{'ListId':_0x3ef5cd[_0xdde2a4('0x135a')]['ListId']||_0x1123f1[_0xdde2a4('0x4b9')][_0xdde2a4('0x354')],'CompanyId':_0x3ef5cd['query'][_0xdde2a4('0x1dcb')]||_0x1123f1[_0xdde2a4('0x4b9')][_0xdde2a4('0x1dcb')],'contact':_0x3c629d,'contacts':_0x3ef5cd[_0xdde2a4('0x14b')][_0xdde2a4('0x25df')],'companies':_0x3ef5cd[_0xdde2a4('0x10f8')],'lists':_0x3ef5cd['lists'],'setting':null,'crudPermissions':_0x3ef5cd[_0xdde2a4('0xe28')]}});}function _0x226827(_0x43eef5,_0xe12742){const _0x3045c2=_0x8e710b;_0x59a41c[_0x3045c2('0x2fa')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x446818,'parent':angular[_0x3045c2('0x16b1')](_0x54ba4e[_0x3045c2('0x945')]),'targetEvent':_0x43eef5,'clickOutsideToClose':!![],'resolve':{'contact':[_0x3045c2('0x1318'),function(_0x2a73a1){const _0x5184ef=_0x3045c2;return _0x2a73a1[_0x5184ef('0x2322')]('cmContact@get',{'id':_0xe12742['id']});}],'lists':[_0x3045c2('0x1318'),_0x3045c2('0x1b04'),function(_0x6c4a42,_0x501770){const _0x377d3f=_0x3045c2;return _0x501770['hasRole'](_0x377d3f('0xe23'))?_0x6c4a42[_0x377d3f('0x2322')](_0x377d3f('0x128f'),{'fields':_0x377d3f('0x1338'),'nolimit':!![]}):_0x6c4a42[_0x377d3f('0x2322')](_0x377d3f('0x27c5'),{'id':_0x501770[_0x377d3f('0x24cc')]()[_0x377d3f('0x237f')],'section':'Lists','fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x3ef5cd[_0x3045c2('0x14b')][_0x3045c2('0x25df')]}});}function _0x1024d8(_0x21342d,_0x1d5708){const _0x5ef89e=_0x8e710b;_0x59a41c[_0x5ef89e('0x2fa')]({'controller':_0x5ef89e('0x1344'),'controllerAs':'vm','templateUrl':_0x3c16f5,'parent':angular[_0x5ef89e('0x16b1')](_0x54ba4e[_0x5ef89e('0x945')]),'targetEvent':_0x21342d,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5ef89e('0x1318'),function(_0x408c23){const _0xcd37be=_0x5ef89e;return _0x408c23[_0xcd37be('0x2322')]('cmContact@get',{'id':_0x1d5708['id']});}],'lists':[_0x5ef89e('0x1318'),_0x5ef89e('0x1b04'),function(_0x15b37a,_0x278833){const _0x42b5ae=_0x5ef89e;return _0x278833[_0x42b5ae('0x1516')](_0x42b5ae('0xe23'))?_0x15b37a[_0x42b5ae('0x2322')](_0x42b5ae('0x128f'),{'fields':_0x42b5ae('0x1338'),'nolimit':!![]}):_0x15b37a['resolve'](_0x42b5ae('0x27c5'),{'id':_0x278833[_0x42b5ae('0x24cc')]()[_0x42b5ae('0x237f')],'section':_0x42b5ae('0x12f2'),'fields':_0x42b5ae('0x1338'),'nolimit':!![]});}]},'locals':{'contacts':_0x3ef5cd['contacts'][_0x5ef89e('0x25df')]}});}function _0x49d887(_0x4a327b){const _0x39ed7c=_0x8e710b;_0x3ff7cf[_0x39ed7c('0xa83')][_0x39ed7c('0x17c4')]({'id':_0x4a327b['id']})[_0x39ed7c('0x1714')]['then'](function(){const _0x30a558=_0x39ed7c;_0x283545()[_0x30a558('0x1a90')](_0x3ef5cd['contacts'][_0x30a558('0x25df')],{'id':_0x4a327b['id']}),_0x3ef5cd['contacts']['count']-=0x1,!_0x3ef5cd[_0x30a558('0x14b')][_0x30a558('0x25df')][_0x30a558('0x2566')]&&_0x3ef5cd[_0x30a558('0x1dc1')](),_0x2cbe6b[_0x30a558('0x173b')]({'title':_0x30a558('0xa66'),'msg':_0x4a327b['name']?_0x4a327b['name']+'\x20has\x20been\x20deleted!':''});})[_0x39ed7c('0x1cb5')](function(_0x19b3b3){const _0x59f7f3=_0x39ed7c;if(_0x19b3b3[_0x59f7f3('0x11fc')]&&_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x25be')]&&_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x25be')]['length']){_0x3ef5cd[_0x59f7f3('0x25be')]=_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x25be')]||[{'message':_0x19b3b3['toString'](),'type':_0x59f7f3('0x22a9')}];for(let _0x3f4c06=0x0;_0x3f4c06<_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x25be')]['length'];_0x3f4c06++){_0x2cbe6b[_0x59f7f3('0x5e8')]({'title':_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x25be')][_0x3f4c06]['type'],'msg':_0x19b3b3[_0x59f7f3('0x11fc')]['errors'][_0x3f4c06][_0x59f7f3('0x15e2')]});}}else _0x2cbe6b[_0x59f7f3('0x5e8')]({'title':_0x19b3b3[_0x59f7f3('0x1b51')]?'API:'+_0x19b3b3['status']+'\x20-\x20'+_0x19b3b3[_0x59f7f3('0x22ce')]:_0x59f7f3('0x22a9'),'msg':_0x19b3b3[_0x59f7f3('0x11fc')]?JSON[_0x59f7f3('0x1be0')](_0x19b3b3[_0x59f7f3('0x11fc')][_0x59f7f3('0x15e2')]):_0x19b3b3[_0x59f7f3('0x15e2')]||_0x19b3b3[_0x59f7f3('0x17df')]()});});}function _0x5fb28c(){const _0x3339d9=_0x8e710b,_0x57d3cf=angular[_0x3339d9('0x2669')](_0x3ef5cd[_0x3339d9('0xac4')]);return _0x3ef5cd[_0x3339d9('0xac4')]=[],_0x57d3cf;}function _0x478e81(_0x102206){const _0x11c443=_0x8e710b,_0xb51244=_0x59a41c[_0x11c443('0x112e')]()[_0x11c443('0x14e4')](_0x11c443('0x1e63'))['htmlContent'](_0x11c443('0x1670')+_0x3ef5cd[_0x11c443('0xac4')][_0x11c443('0x2566')]+_0x11c443('0xbd')+_0x11c443('0x27c7'))[_0x11c443('0x10bc')](_0x11c443('0x1813'))[_0x11c443('0x24d0')](_0x102206)['ok']('OK')['cancel'](_0x11c443('0x1d8d'));_0x59a41c[_0x11c443('0x2fa')](_0xb51244)[_0x11c443('0x2788')](function(){const _0x244532=_0x11c443;_0x3ef5cd[_0x244532('0xac4')][_0x244532('0x1534')](function(_0x337561){_0x49d887(_0x337561);}),_0x3ef5cd['selectedContacts']=[];});}function _0x22530c(){const _0x41ed21=_0x8e710b;_0x3ef5cd[_0x41ed21('0xac4')]=[];}function _0x2d833c(){const _0x5bfbd6=_0x8e710b;_0x3ef5cd['selectedContacts']=_0x3ef5cd['contacts'][_0x5bfbd6('0x25df')];}}const _0x53a936=_0x400dec;_0x42e902[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'toasty','contacts',_0x34e79e('0x2'),_0x34e79e('0x10f8'),_0x34e79e('0xc17'),_0x34e79e('0x354'),'CompanyId',_0x34e79e('0x519'),_0x34e79e('0xe28')];function _0x42e902(_0x1ac7e4,_0x2f58cf,_0x36a12f,_0x8e6d83,_0x32e937,_0x5f13a4,_0x262b03,_0x2609f2,_0xcdef81,_0x158ecc){const _0x151685=_0x34e79e,_0x56d328=this;_0x56d328[_0x151685('0x25be')]=[],_0x56d328[_0x151685('0x14e4')]=_0x151685('0x2668'),_0x56d328[_0x151685('0xe28')]=_0x158ecc,_0x56d328[_0x151685('0xc17')]=angular[_0x151685('0x2669')](_0x5f13a4),_0x56d328[_0x151685('0x14b')]=_0x36a12f||{'rows':[],'count':0x0},_0x56d328[_0x151685('0x2')]=_0x8e6d83||{'rows':[],'count':0x0},_0x56d328['companies']=_0x32e937||{'rows':[],'count':0x0},_0x56d328[_0x151685('0x132')]={'rows':[],'count':0x0},_0x56d328[_0x151685('0x116f')]=![];!_0x56d328[_0x151685('0xc17')]?(_0x56d328[_0x151685('0xc17')]={'ListId':_0x262b03?parseInt(_0x262b03,0xa):undefined,'CompanyId':_0x2609f2?parseInt(_0x2609f2,0xa):undefined},_0x56d328[_0x151685('0x14e4')]=_0x151685('0x147'),_0x56d328[_0x151685('0x116f')]=!![]):(delete _0x56d328[_0x151685('0xc17')][_0x151685('0xef1')],_0x56d328[_0x151685('0x354')]=_0x56d328[_0x151685('0xc17')][_0x151685('0x354')]||undefined);_0x56d328[_0x151685('0x27df')]=_0x463307,_0x56d328[_0x151685('0x1c6f')]=_0x4d24ad,_0x56d328[_0x151685('0x680')]=_0xec99d8,_0x56d328[_0x151685('0xca7')]=_0xc6fda0,_0x56d328[_0x151685('0x100b')]=_0x14db08,_0x56d328[_0x151685('0x2601')]=_0x14b0fe;function _0x463307(){const _0x30ff8d=_0x151685;_0x56d328[_0x30ff8d('0x25be')]=[],_0xcdef81[_0x30ff8d('0xa83')]['save'](_0x56d328[_0x30ff8d('0xc17')])[_0x30ff8d('0x1714')][_0x30ff8d('0x2788')](function(_0x1847ba){const _0x568dfc=_0x30ff8d;_0x56d328['contacts'][_0x568dfc('0xc51')](_0x1847ba),_0x2f58cf[_0x568dfc('0x173b')]({'title':_0x568dfc('0x1842'),'msg':_0x56d328[_0x568dfc('0xc17')]['name']?_0x56d328['contact'][_0x568dfc('0x1a8d')]+_0x568dfc('0x1e4a'):''}),_0xc6fda0();})[_0x30ff8d('0x1cb5')](function(_0x219c34){const _0x1bad15=_0x30ff8d;if(_0x219c34[_0x1bad15('0x11fc')]&&_0x219c34[_0x1bad15('0x11fc')]['errors']&&_0x219c34[_0x1bad15('0x11fc')][_0x1bad15('0x25be')]['length']){_0x56d328['errors']=_0x219c34[_0x1bad15('0x11fc')][_0x1bad15('0x25be')]||[{'message':_0x219c34['toString'](),'type':_0x1bad15('0x2511')}];for(let _0x490324=0x0;_0x490324<_0x219c34[_0x1bad15('0x11fc')][_0x1bad15('0x25be')][_0x1bad15('0x2566')];_0x490324++){_0x2f58cf[_0x1bad15('0x5e8')]({'title':_0x219c34[_0x1bad15('0x11fc')][_0x1bad15('0x25be')][_0x490324][_0x1bad15('0x1d7')],'msg':_0x219c34[_0x1bad15('0x11fc')][_0x1bad15('0x25be')][_0x490324]['message']});}}else _0x2f58cf[_0x1bad15('0x5e8')]({'title':_0x219c34[_0x1bad15('0x1b51')]?'API:'+_0x219c34[_0x1bad15('0x1b51')]+_0x1bad15('0x1b0b')+_0x219c34['statusText']:_0x1bad15('0x2007'),'msg':_0x219c34[_0x1bad15('0x11fc')]?JSON[_0x1bad15('0x1be0')](_0x219c34[_0x1bad15('0x11fc')]['message']):_0x219c34[_0x1bad15('0x17df')]()});});}function _0x4d24ad(){const _0x108968=_0x151685;_0x56d328['errors']=[],_0xcdef81['cmContact'][_0x108968('0x2740')]({'id':_0x56d328[_0x108968('0xc17')]['id']},_0x56d328[_0x108968('0xc17')])[_0x108968('0x1714')]['then'](function(_0x418012){const _0x4788b2=_0x108968,_0x3f348c=_0x283545()['find'](_0x56d328[_0x4788b2('0x14b')],{'id':_0x418012['id']});_0x3f348c&&_0x283545()[_0x4788b2('0x2503')](_0x3f348c,_0x418012),_0x2f58cf[_0x4788b2('0x173b')]({'title':_0x4788b2('0x313'),'msg':_0x56d328[_0x4788b2('0xc17')][_0x4788b2('0x1a8d')]?_0x56d328[_0x4788b2('0xc17')][_0x4788b2('0x1a8d')]+_0x4788b2('0x24cf'):''}),_0xc6fda0();})[_0x108968('0x1cb5')](function(_0x410a2b){const _0x1deba2=_0x108968;if(_0x410a2b[_0x1deba2('0x11fc')]&&_0x410a2b[_0x1deba2('0x11fc')]['errors']&&_0x410a2b[_0x1deba2('0x11fc')][_0x1deba2('0x25be')]['length']){_0x56d328[_0x1deba2('0x25be')]=_0x410a2b[_0x1deba2('0x11fc')][_0x1deba2('0x25be')]||[{'message':_0x410a2b['toString'](),'type':_0x1deba2('0x102')}];for(let _0xd236bc=0x0;_0xd236bc<_0x410a2b[_0x1deba2('0x11fc')][_0x1deba2('0x25be')][_0x1deba2('0x2566')];_0xd236bc++){_0x2f58cf['error']({'title':_0x410a2b[_0x1deba2('0x11fc')][_0x1deba2('0x25be')][_0xd236bc][_0x1deba2('0x1d7')],'msg':_0x410a2b[_0x1deba2('0x11fc')]['errors'][_0xd236bc][_0x1deba2('0x15e2')]});}}else _0x2f58cf[_0x1deba2('0x5e8')]({'title':_0x410a2b[_0x1deba2('0x1b51')]?_0x1deba2('0x15d1')+_0x410a2b[_0x1deba2('0x1b51')]+_0x1deba2('0x1b0b')+_0x410a2b[_0x1deba2('0x22ce')]:_0x1deba2('0x102'),'msg':_0x410a2b[_0x1deba2('0x11fc')]?JSON[_0x1deba2('0x1be0')](_0x410a2b[_0x1deba2('0x11fc')][_0x1deba2('0x15e2')]):_0x410a2b[_0x1deba2('0x17df')]()});});}function _0x14db08(_0xcbf930){const _0x2ed326=_0x151685;if(_0xcbf930)return _0xcdef81[_0x2ed326('0x1ba4')]['getCustomFields']({'id':_0xcbf930})['$promise'][_0x2ed326('0x2788')](function(_0x2eb0d9){const _0x4decea=_0x2ed326;if(_0x2eb0d9){_0x56d328[_0x4decea('0x132')]=_0x2eb0d9;const _0x432447=_0x283545()[_0x4decea('0x155d')](_0x56d328[_0x4decea('0x132')][_0x4decea('0x25df')],function(_0x18e790){const _0x5debde=_0x4decea;return _0x5debde('0x249c')+_0x18e790['id'];});_0xcdef81[_0x4decea('0xa83')][_0x4decea('0x1335')]({'id':_0x56d328[_0x4decea('0xc17')]['id'],'attributes':_0x432447,'raw':!![]})[_0x4decea('0x1714')][_0x4decea('0x2788')](function(_0x570821){const _0x2243a1=_0x4decea;_0x56d328[_0x2243a1('0xc17')]=_0x283545()[_0x2243a1('0x2503')](_0x56d328[_0x2243a1('0xc17')],_0x570821);});}})[_0x2ed326('0x1cb5')](function(_0x44f0f1){console['error'](_0x44f0f1);});else _0x56d328[_0x2ed326('0x132')]={'rows':[],'count':0x0};}function _0xec99d8(_0x49369b){const _0x104262=_0x151685;_0x56d328[_0x104262('0x25be')]=[];const _0x49fefc=_0x1ac7e4[_0x104262('0x112e')]()[_0x104262('0x14e4')](_0x104262('0x458'))['content'](_0x104262('0x11fb'))[_0x104262('0x10bc')]('Delete\x20Contact')['ok'](_0x104262('0x2786'))[_0x104262('0x1801')](_0x104262('0x1481'))[_0x104262('0x24d0')](_0x49369b);_0x1ac7e4[_0x104262('0x2fa')](_0x49fefc)[_0x104262('0x2788')](function(){const _0x21797e=_0x104262;_0xcdef81['cmContact'][_0x21797e('0x17c4')]({'id':_0x56d328['contact']['id']})[_0x21797e('0x1714')][_0x21797e('0x2788')](function(){const _0x3b92fd=_0x21797e;_0x283545()[_0x3b92fd('0x1a90')](_0x56d328[_0x3b92fd('0x14b')],{'id':_0x56d328[_0x3b92fd('0xc17')]['id']}),_0x2f58cf['success']({'title':_0x3b92fd('0xeff'),'msg':_0x56d328[_0x3b92fd('0xc17')][_0x3b92fd('0x1a8d')]?_0x56d328['contact']['name']+_0x3b92fd('0x14d4'):''}),_0xc6fda0();})[_0x21797e('0x1cb5')](function(_0x1a9b43){const _0xc71f75=_0x21797e;console[_0xc71f75('0x5e8')](_0x1a9b43),_0x56d328[_0xc71f75('0x25be')]=_0x1a9b43['data'][_0xc71f75('0x25be')]||[{'message':_0x1a9b43[_0xc71f75('0x17df')](),'type':'api.contact.delete'}];});},function(){});}function _0x14b0fe(_0xd088bf){return _0xd088bf===null?undefined:new Date(_0xd088bf);}function _0xc6fda0(){const _0x2ffe5a=_0x151685;_0x1ac7e4[_0x2ffe5a('0x19d')]();}}const _0x3b7e7e=_0x42e902;_0x1a1551[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0xc17'),'contacts',_0x34e79e('0x2'),_0x34e79e('0x519')];function _0x1a1551(_0x25dd6c,_0x30a474,_0x526b68,_0x3039b0,_0x1348d5,_0x4e4377){const _0xa1da04=_0x34e79e,_0x5e8626=this;_0x5e8626[_0xa1da04('0x25be')]=[],_0x5e8626['title']=_0xa1da04('0x1ab6'),_0x5e8626[_0xa1da04('0xc17')]=angular[_0xa1da04('0x2669')](_0x526b68),_0x5e8626[_0xa1da04('0x2')]=_0x1348d5||{'rows':[],'count':0x0},_0x5e8626[_0xa1da04('0x27df')]=_0x1a1a44,_0x5e8626[_0xa1da04('0xca7')]=_0xab18c3;function _0x1a1a44(){const _0x1e0cd7=_0xa1da04;_0x5e8626[_0x1e0cd7('0x25be')]=[],delete _0x5e8626[_0x1e0cd7('0xc17')]['id'],_0x5e8626[_0x1e0cd7('0xc17')][_0x1e0cd7('0xe45')]&&!_0x5e8626['contact'][_0x1e0cd7('0xe45')]['length']&&delete _0x5e8626[_0x1e0cd7('0xc17')][_0x1e0cd7('0xe45')],_0x4e4377['cmContact']['save'](_0x5e8626[_0x1e0cd7('0xc17')])[_0x1e0cd7('0x1714')][_0x1e0cd7('0x2788')](function(_0x555b30){const _0x27ae71=_0x1e0cd7;_0x3039b0[_0x27ae71('0xc51')](_0x555b30),_0x30a474[_0x27ae71('0x173b')]({'title':_0x27ae71('0x1842'),'msg':_0x5e8626[_0x27ae71('0xc17')][_0x27ae71('0x1a8d')]?_0x5e8626['contact'][_0x27ae71('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0xab18c3();})[_0x1e0cd7('0x1cb5')](function(_0x40401c){const _0x420ad8=_0x1e0cd7;console[_0x420ad8('0x5e8')](_0x40401c),_0x5e8626[_0x420ad8('0x25be')]=_0x40401c[_0x420ad8('0x11fc')][_0x420ad8('0x25be')]||[{'message':_0x40401c['toString'](),'type':_0x420ad8('0x7eb')}];});}function _0xab18c3(){const _0x1ece8c=_0xa1da04;_0x25dd6c[_0x1ece8c('0x19d')]();}}const _0x3e49eb=_0x1a1551;_0x5535cc['$inject']=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2547'),'hopper','api',_0x34e79e('0xe28')];function _0x5535cc(_0x577ca6,_0xe06333,_0x5c7640,_0x4c4507,_0xbd8807,_0x177cd6,_0x326792,_0xb02979,_0x356b70){const _0x5b4afd=_0x34e79e,_0x1bf25d=this;_0x1bf25d[_0x5b4afd('0x25be')]=[],_0x1bf25d[_0x5b4afd('0x14e4')]=_0x5b4afd('0x2e2'),_0x1bf25d[_0x5b4afd('0x265c')]=angular[_0x5b4afd('0x2669')](_0x326792),_0x1bf25d['hoppers']=_0x177cd6,_0x1bf25d[_0x5b4afd('0xc2f')]=![],_0x1bf25d['crudPermissions']=_0x356b70;!_0x1bf25d[_0x5b4afd('0x265c')]&&(_0x1bf25d['hopper']={},_0x1bf25d[_0x5b4afd('0x14e4')]='CONTACTMANAGER.NEW_HOPPER',_0x1bf25d[_0x5b4afd('0xc2f')]=!![]);_0x1bf25d[_0x5b4afd('0x125f')]=_0x9627a8,_0x1bf25d[_0x5b4afd('0x2601')]=_0x16ee26,_0x1bf25d['closeDialog']=_0x5d32ab;function _0x9627a8(){const _0x432402=_0x5b4afd;_0x1bf25d['errors']=[],_0xb02979[_0x432402('0x1de1')]['update']({'id':_0x1bf25d[_0x432402('0x265c')]['id']},_0x1bf25d[_0x432402('0x265c')])[_0x432402('0x1714')]['then'](function(_0x4e9aa9){const _0x361eae=_0x432402,_0x607b3e=_0x283545()[_0x361eae('0x20e8')](_0x1bf25d['hoppers'],{'id':_0x4e9aa9['id']});_0x607b3e&&_0x283545()['merge'](_0x607b3e,_0x4e9aa9),_0xbd8807['success']({'title':'Hopper\x20properly\x20saved!','msg':_0x1bf25d[_0x361eae('0x265c')][_0x361eae('0x1a8d')]?_0x1bf25d[_0x361eae('0x265c')][_0x361eae('0x1a8d')]+_0x361eae('0x24cf'):''}),_0x5d32ab(_0x4e9aa9);})[_0x432402('0x1cb5')](function(_0x51a15f){const _0x421376=_0x432402;console[_0x421376('0x5e8')](_0x51a15f),_0x1bf25d['errors']=_0x51a15f['data'][_0x421376('0x25be')]||[{'message':_0x51a15f[_0x421376('0x17df')](),'type':_0x421376('0x1d77')}];});}function _0x16ee26(_0x11c64e){return _0x11c64e===null?undefined:new Date(_0x11c64e);}function _0x5d32ab(_0x354bcb){_0x4c4507['hide'](_0x354bcb);}}const _0x34e50c=_0x5535cc,_0x280ecb=_0x18dd13['p']+_0x34e79e('0x42f');_0x35ca48[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x1382'),'$document',_0x34e79e('0x123b'),_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0xc17'),_0x34e79e('0x2547'),_0x34e79e('0x11f5'),_0x34e79e('0x1fd7'),'contacts',_0x34e79e('0x10f8'),_0x34e79e('0x2'),_0x34e79e('0x132'),'tags',_0x34e79e('0x1e0e'),_0x34e79e('0x130d'),'Auth',_0x34e79e('0xec9')];function _0x35ca48(_0xafc2e7,_0x515ac2,_0x5331af,_0x147c06,_0x2998fb,_0x15e233,_0x192e17,_0x1f57f9,_0x4b95a2,_0x50a73b,_0x1949bf,_0x3bae9b,_0x40c672,_0xb8600b,_0x4cc201,_0x4cc50d,_0x5828f5,_0x3213da,_0x129e8a,_0x42214f,_0x54f7e2){const _0x27b7aa=_0x34e79e,_0x12e0b4=this;_0x12e0b4[_0x27b7aa('0x9cb')]=_0x42214f[_0x27b7aa('0x24cc')](),_0x12e0b4['license']=_0x129e8a,_0x12e0b4['journey']=[],_0x12e0b4['contact']=_0x4b95a2||{},_0x12e0b4[_0x27b7aa('0x2547')]=_0x50a73b||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x11f5')]=_0x1949bf||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x1fd7')]=_0x3bae9b||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x10f8')]=_0xb8600b||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x2')]=_0x4cc201||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x132')]=_0x4cc50d||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0xe45')]=_0x5828f5||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x1e0e')]=_0x3213da||{'rows':[],'count':0x0},_0x12e0b4[_0x27b7aa('0x23f9')]={'scrollEl':_0x27b7aa('0x3eb')},_0x12e0b4[_0x27b7aa('0x83')]=new Date(_0x59f37a()()[_0x27b7aa('0x13e4')](_0x27b7aa('0x2dc'))[_0x27b7aa('0x10e8')](0x1,_0x27b7aa('0x430'))['utcOffset'](0x0,!![])[_0x27b7aa('0x22b4')]()),_0x12e0b4['lastDayMonth']=new Date(_0x59f37a()()['endOf'](_0x27b7aa('0x2dc'))[_0x27b7aa('0x10e8')](0x1,_0x27b7aa('0xf'))[_0x27b7aa('0x2827')](0x0,!![])[_0x27b7aa('0x22b4')]()),_0x12e0b4[_0x27b7aa('0xec9')]=_0x54f7e2&&_0x54f7e2[_0x27b7aa('0x338')]==0x1?_0x54f7e2['rows'][0x0]:null,_0x12e0b4[_0x27b7aa('0xe28')]=_0x42214f[_0x27b7aa('0x157e')](_0x12e0b4[_0x27b7aa('0xec9')]?_0x12e0b4[_0x27b7aa('0xec9')][_0x27b7aa('0xe28')]:null),_0x12e0b4[_0x27b7aa('0x1ef0')]=_0x283545()[_0x27b7aa('0x13cf')]([{'option':_0x27b7aa('0x1438'),'value':_0x27b7aa('0x304')},{'option':'High','value':_0x27b7aa('0xeb3')},{'option':_0x27b7aa('0x1a07'),'value':_0x27b7aa('0x1c6c')},{'option':_0x27b7aa('0x90e'),'value':'\x271\x27'},{'option':'Lowest','value':_0x27b7aa('0x102e')}],function(_0x21fd58){const _0x4d0386=_0x27b7aa;return _0x283545()[_0x4d0386('0x10a4')](_0x21fd58['value'],new RegExp('\x27','g'),'');}),_0x12e0b4[_0x27b7aa('0x2481')]={'fields':_0x27b7aa('0x73a'),'sort':_0x27b7aa('0x1cee'),'limit':0xa,'page':0x1},_0x12e0b4[_0x27b7aa('0xde2')]={'fields':_0x27b7aa('0x1cfd'),'sort':_0x27b7aa('0x2658'),'limit':0xa,'page':0x1},_0x12e0b4[_0x27b7aa('0x1e4')]={'fields':_0x27b7aa('0x20b1'),'sort':_0x27b7aa('0x2658'),'limit':0xa,'page':0x1},_0x12e0b4[_0x27b7aa('0x25d7')]={'fields':'id,starttime,endtime,membername,projectname','sort':_0x27b7aa('0x4e8'),'limit':0xa,'page':0x1},_0x12e0b4[_0x27b7aa('0xcb3')]=_0x5331af[_0x27b7aa('0x4b9')][_0x27b7aa('0x24f6')]||0x0,_0x12e0b4[_0x27b7aa('0x122e')]=_0x416b92,_0x12e0b4['gotoContacts']=_0x3ea406,_0x12e0b4[_0x27b7aa('0x255e')]=_0x311d38,_0x12e0b4[_0x27b7aa('0x1c6f')]=_0x562f65,_0x12e0b4[_0x27b7aa('0x147e')]=_0x157102,_0x12e0b4[_0x27b7aa('0x1874')]=_0x3aee1b,_0x12e0b4[_0x27b7aa('0x1c73')]=_0x5ed788,_0x12e0b4['getDateFromString']=_0x5e3b7d,_0x12e0b4[_0x27b7aa('0x15da')]=_0x4b85c6,_0x12e0b4[_0x27b7aa('0x1e11')]=_0x32e11b,_0x12e0b4['getHistories']=_0x5ea276,_0x12e0b4[_0x27b7aa('0xe73')]=_0x414485,_0x12e0b4[_0x27b7aa('0x1e5')]=_0x6e1997,_0x12e0b4[_0x27b7aa('0x84a')]=_0x5a3794,_0x12e0b4['createOrEditIvrCampaignHopper']=_0x171c55,_0x12e0b4['getColorByItem']=_0x2f6aeb;let _0x2891da=!![],_0x5d1426=0x1;_0xafc2e7[_0x27b7aa('0x1662')]('vm.queryHopper.filter',function(_0x5d451e,_0x3b6faf){const _0x376d33=_0x27b7aa;_0x2891da?_0x515ac2(function(){_0x2891da=![];}):(!_0x3b6faf&&(_0x5d1426=_0x12e0b4['queryHopper'][_0x376d33('0x23f5')]),_0x5d451e!==_0x3b6faf&&(_0x12e0b4[_0x376d33('0x2481')]['page']=0x1),!_0x5d451e&&(_0x12e0b4[_0x376d33('0x2481')][_0x376d33('0x23f5')]=_0x5d1426),_0x12e0b4[_0x376d33('0x15da')]());}),_0xafc2e7[_0x27b7aa('0x1662')](_0x27b7aa('0x1c07'),function(_0x1f82b8,_0x330fb7){const _0x5bdeba=_0x27b7aa;_0x2891da?_0x515ac2(function(){_0x2891da=![];}):(!_0x330fb7&&(_0x5d1426=_0x12e0b4[_0x5bdeba('0xde2')][_0x5bdeba('0x23f5')]),_0x1f82b8!==_0x330fb7&&(_0x12e0b4[_0x5bdeba('0xde2')][_0x5bdeba('0x23f5')]=0x1),!_0x1f82b8&&(_0x12e0b4[_0x5bdeba('0xde2')][_0x5bdeba('0x23f5')]=_0x5d1426),_0x12e0b4[_0x5bdeba('0x1e11')]());}),_0xafc2e7[_0x27b7aa('0x1662')](_0x27b7aa('0x150d'),function(_0x39c7ce,_0x394885){const _0x31440d=_0x27b7aa;_0x2891da?_0x515ac2(function(){_0x2891da=![];}):(!_0x394885&&(_0x5d1426=_0x12e0b4[_0x31440d('0x1e4')][_0x31440d('0x23f5')]),_0x39c7ce!==_0x394885&&(_0x12e0b4[_0x31440d('0x1e4')]['page']=0x1),!_0x39c7ce&&(_0x12e0b4[_0x31440d('0x1e4')][_0x31440d('0x23f5')]=_0x5d1426),_0x12e0b4[_0x31440d('0x115e')]());});function _0x4a3cb6(_0x34c2a0){const _0x11a737=_0x27b7aa;switch(_0x34c2a0){case _0x11a737('0x231'):return _0x11a737('0x17d1');case _0x11a737('0x2795'):return _0x11a737('0xb55');case _0x11a737('0x529'):return'orange';case _0x11a737('0x18aa'):return _0x11a737('0x1441');case'fax':return _0x11a737('0x687');case _0x11a737('0x195d'):return'lime-A700';default:return _0x11a737('0x1350');}}function _0x2f6aeb(_0x4f8e70){const _0x4b7753=_0x27b7aa;let _0x4527c6='';if(_0x4f8e70[_0x4b7753('0xfc2')])_0x4527c6=_0x4b7753('0x10cf');else{if(_0x4f8e70[_0x4b7753('0x22fa')])_0x4527c6=_0x4b7753('0x18aa');else{if(_0x4f8e70['SmsAccountId'])_0x4527c6=_0x4b7753('0x529');else{if(_0x4f8e70['MailAccountId'])_0x4527c6='mail';else{if(_0x4f8e70['ChatWebsiteId'])_0x4527c6=_0x4b7753('0x231');else _0x4f8e70[_0x4b7753('0x20bb')]&&(_0x4527c6='voice');}}}}return _0x4a3cb6(_0x4527c6);}function _0x4d2ce3(_0xa06dd8){return function(_0x153471){_0x12e0b4[_0xa06dd8]=_0x153471||{'count':0x0,'rows':[]};};}function _0x416b92(){const _0x63116f=_0x27b7aa;return!_0x42214f[_0x63116f('0x1516')]('admin')&&(_0x29083c(),_0x56da46()),_0x1f57f9['user'][_0x63116f('0x1335')]({'fields':_0x63116f('0x2024'),'nolimit':!![]})['$promise'][_0x63116f('0x2788')](function(_0x23f2df){const _0x3fa128=_0x63116f;_0x12e0b4[_0x3fa128('0x1e42')]=_0x23f2df||{'count':0x0,'rows':[]},_0x12e0b4[_0x3fa128('0x23ee')]=_0x283545()[_0x3fa128('0x2402')](_0x283545()[_0x3fa128('0x13cf')](_0x12e0b4[_0x3fa128('0x1e42')]['rows'],'id'),_0x3fa128('0x2831')),_0x12e0b4['Tags']=_0x283545()[_0x3fa128('0x155d')](_0x12e0b4[_0x3fa128('0xc17')][_0x3fa128('0xbcf')],'id');})[_0x63116f('0x2788')](_0x315024(_0x4b95a2));}function _0x29083c(){const _0xfd5199=_0x27b7aa,_0x3e7a9e=_0x283545()[_0xfd5199('0xc5d')](_0x12e0b4[_0xfd5199('0x10f8')][_0xfd5199('0x25df')],{'id':_0x12e0b4['contact'][_0xfd5199('0x1dcb')]});if(!_0x3e7a9e)return _0x1f57f9[_0xfd5199('0x27f6')][_0xfd5199('0x1335')]({'id':_0x12e0b4[_0xfd5199('0xc17')]['CompanyId'],'fields':_0xfd5199('0x1338')})[_0xfd5199('0x1714')][_0xfd5199('0x2788')](function(_0x58f5e4){const _0x1a9718=_0xfd5199,_0x27f924=_0x58f5e4[_0x1a9718('0x1cbf')]();_0x27f924[_0x1a9718('0x3bf')]=![],_0x12e0b4['companies'][_0x1a9718('0x25df')]['push'](_0x27f924);})[_0xfd5199('0x1cb5')](function(_0x53d720){const _0x1cb240=_0xfd5199;_0x192e17[_0x1cb240('0x5e8')]({'title':_0x53d720[_0x1cb240('0x1b51')]?_0x1cb240('0x15d1')+_0x53d720[_0x1cb240('0x1b51')]+_0x1cb240('0x1b0b')+_0x53d720['statusText']:_0x1cb240('0x155'),'msg':_0x53d720['data']?JSON[_0x1cb240('0x1be0')](_0x53d720[_0x1cb240('0x11fc')][_0x1cb240('0x15e2')]):_0x53d720[_0x1cb240('0x17df')]()});});}function _0x56da46(){const _0x597fd1=_0x27b7aa,_0xebfeab=_0x283545()[_0x597fd1('0x155d')](_0x12e0b4[_0x597fd1('0xc17')]['Tags'],function(_0x39b525){const _0x85fb1f=_0x597fd1;return{'id':_0x39b525['id'],'name':_0x39b525[_0x85fb1f('0x1a8d')]};});if(!_0x283545()[_0x597fd1('0x213d')](_0xebfeab))for(let _0x1ea19b=0x0;_0x1ea19b<_0xebfeab['length'];_0x1ea19b++){!_0x283545()[_0x597fd1('0xc5d')](_0x12e0b4[_0x597fd1('0xe45')][_0x597fd1('0x25df')],{'id':_0xebfeab['id']})&&(_0xebfeab[_0x1ea19b][_0x597fd1('0x3bf')]=![],_0x12e0b4[_0x597fd1('0xe45')][_0x597fd1('0x25df')][_0x597fd1('0x13e3')](_0xebfeab[_0x1ea19b]));}}function _0x48469e(_0xc8264a){const _0x6bb119=_0x27b7aa;if(!_0xc8264a[_0x6bb119('0x1db2')])return'('+_0x15e233['instant'](_0x6bb119('0x1c9a'))+')';const _0x50a969=_0x283545()[_0x6bb119('0x24f5')]([_0xc8264a[_0x6bb119('0x1db2')],_0xc8264a[_0x6bb119('0x6e1')],_0xc8264a[_0x6bb119('0x22aa')]]);return'('+_0x50a969[_0x6bb119('0x185f')]('\x20-\x20')+')';}function _0x38c82b(_0x589a95){const _0x1204f0=_0x27b7aa;_0x589a95&&_0x589a95[_0x1204f0('0x338')]&&_0x589a95['rows'][_0x1204f0('0x2566')]&&(_0x12e0b4[_0x1204f0('0x1f4')]=_0x283545()[_0x1204f0('0x1282')](_0x12e0b4[_0x1204f0('0x1f4')],_0x589a95['rows']),_0x12e0b4['journey'][_0x1204f0('0x1534')](function(_0x301636){const _0x74548d=_0x1204f0;_0x301636[_0x74548d('0x4a3')]=_0x48469e(_0x301636);}));}function _0x315024(_0x4dee9f){const _0x12e432=_0x27b7aa,_0x1376ac=[_0x12e432('0x2795'),_0x12e432('0x231'),_0x12e432('0x529'),_0x12e432('0x18aa'),_0x12e432('0x10cf')];if(_0x4dee9f&&_0x4dee9f['id']){for(let _0x231ff2=0x0;_0x231ff2<_0x1376ac[_0x12e432('0x2566')];_0x231ff2++){_0x1f57f9[_0x1376ac[_0x231ff2]+_0x12e432('0x22a7')][_0x12e432('0x1335')]({'ContactId':_0x4dee9f['id'],'includeAll':!![]})['$promise']['then'](_0x38c82b);}_0x1f57f9[_0x12e432('0x99')]['get']({'ContactId':_0x4dee9f['id'],'includeAll':!![]})[_0x12e432('0x1714')][_0x12e432('0x2788')](_0x38c82b)[_0x12e432('0x1cb5')](function(_0x58e321){console['error'](_0x58e321);});}}function _0x5a3794(_0x4609a1,_0x207289){const _0x20cb7e=_0x27b7aa;_0x2998fb['show']({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x43358b,'parent':angular['element'](_0x147c06[_0x20cb7e('0x945')]),'targetEvent':_0x4609a1,'clickOutsideToClose':!![],'locals':{'hopper':_0x207289,'hoppers':_0x12e0b4[_0x20cb7e('0x2547')][_0x20cb7e('0x25df')],'license':null,'setting':null,'crudPermissions':_0x12e0b4[_0x20cb7e('0xe28')]}});}function _0x171c55(_0x19499c,_0x10f273){const _0x2539cf=_0x27b7aa;_0x2998fb[_0x2539cf('0x2fa')]({'controller':_0x2539cf('0x8c9'),'controllerAs':'vm','templateUrl':_0x280ecb,'parent':angular[_0x2539cf('0x16b1')](_0x147c06[_0x2539cf('0x945')]),'targetEvent':_0x19499c,'clickOutsideToClose':!![],'locals':{'hopper':_0x10f273,'hoppers':_0x12e0b4[_0x2539cf('0x2547')][_0x2539cf('0x25df')],'license':null,'setting':null,'crudPermissions':_0x12e0b4[_0x2539cf('0xe28')]}});}function _0x6e1997(_0x149e87,_0x400ead){const _0x5a8e8c=_0x27b7aa,_0x2b84a7=_0x2998fb[_0x5a8e8c('0x112e')]()[_0x5a8e8c('0x14e4')](_0x5a8e8c('0xf9'))['htmlContent'](_0x5a8e8c('0x1670')+(_0x149e87[_0x5a8e8c('0x1224')]||_0x5a8e8c('0x265c'))+_0x5a8e8c('0x229e')+'\x20will\x20be\x20deleted.')[_0x5a8e8c('0x10bc')](_0x5a8e8c('0x21f1'))[_0x5a8e8c('0x24d0')](_0x400ead)['ok']('OK')['cancel']('CANCEL');_0x2998fb[_0x5a8e8c('0x2fa')](_0x2b84a7)['then'](function(){_0x39243f(_0x149e87);},function(){const _0x12cc49=_0x5a8e8c;console['log'](_0x12cc49('0x1d8d'));});}function _0x39243f(_0x267e6d){const _0x3ce654=_0x27b7aa;return _0x1f57f9[_0x3ce654('0x1de1')][_0x3ce654('0x17c4')]({'id':_0x267e6d['id']})[_0x3ce654('0x1714')][_0x3ce654('0x2788')](function(){const _0x29cb2e=_0x3ce654;_0x283545()['remove'](_0x12e0b4['hoppers'][_0x29cb2e('0x25df')],{'id':_0x267e6d['id']}),_0x12e0b4[_0x29cb2e('0x2547')][_0x29cb2e('0x338')]--,!_0x12e0b4['hoppers']['rows'][_0x29cb2e('0x2566')]&&_0x12e0b4[_0x29cb2e('0x15da')](),_0x192e17['success']({'title':_0x29cb2e('0x3c'),'msg':_0x267e6d[_0x29cb2e('0x1224')]?_0x267e6d[_0x29cb2e('0x1224')]+_0x29cb2e('0x14d4'):''});})[_0x3ce654('0x1cb5')](function(_0xe74ebe){const _0x50f2ae=_0x3ce654;_0x192e17['error']({'title':_0xe74ebe[_0x50f2ae('0x1b51')]?'API:'+_0xe74ebe['status']+_0x50f2ae('0x1b0b')+_0xe74ebe['statusText']:'SYSTEM:DELETEhopper','msg':_0xe74ebe[_0x50f2ae('0x11fc')]?JSON[_0x50f2ae('0x1be0')](_0xe74ebe[_0x50f2ae('0x11fc')]):_0xe74ebe['toString']()});});}function _0x4b85c6(){const _0x39254a=_0x27b7aa;_0x12e0b4['queryHopper'][_0x39254a('0x19e')]=(_0x12e0b4['queryHopper'][_0x39254a('0x23f5')]-0x1)*_0x12e0b4[_0x39254a('0x2481')][_0x39254a('0x68e')],_0x12e0b4[_0x39254a('0x2481')]['id']=_0x12e0b4[_0x39254a('0xc17')]['id'],_0x12e0b4[_0x39254a('0x1808')]=_0x1f57f9[_0x39254a('0xa83')][_0x39254a('0x15da')](_0x12e0b4[_0x39254a('0x2481')],_0x4d2ce3(_0x39254a('0x2547')))[_0x39254a('0x1714')];}function _0x32e11b(){const _0x82bf85=_0x27b7aa;_0x12e0b4[_0x82bf85('0xde2')]['offset']=(_0x12e0b4['queryFinal']['page']-0x1)*_0x12e0b4[_0x82bf85('0xde2')]['limit'],_0x12e0b4[_0x82bf85('0xde2')]['id']=_0x12e0b4[_0x82bf85('0xc17')]['id'],_0x12e0b4['promise']=_0x1f57f9[_0x82bf85('0xa83')][_0x82bf85('0x895')](_0x12e0b4[_0x82bf85('0xde2')],_0x4d2ce3(_0x82bf85('0x11f5')))[_0x82bf85('0x1714')];}function _0x5ea276(){const _0x3a6d69=_0x27b7aa;_0x12e0b4[_0x3a6d69('0x1e4')][_0x3a6d69('0x19e')]=(_0x12e0b4[_0x3a6d69('0x1e4')][_0x3a6d69('0x23f5')]-0x1)*_0x12e0b4[_0x3a6d69('0x1e4')][_0x3a6d69('0x68e')],_0x12e0b4[_0x3a6d69('0x1e4')]['id']=_0x12e0b4[_0x3a6d69('0xc17')]['id'],_0x12e0b4[_0x3a6d69('0x1808')]=_0x1f57f9[_0x3a6d69('0xa83')]['getHopperHistories'](_0x12e0b4[_0x3a6d69('0x1e4')],_0x4d2ce3(_0x3a6d69('0x1fd7')))[_0x3a6d69('0x1714')];}function _0x414485(){const _0x88829e=_0x27b7aa;_0x12e0b4[_0x88829e('0x25d7')]['offset']=(_0x12e0b4[_0x88829e('0x25d7')]['page']-0x1)*_0x12e0b4[_0x88829e('0x25d7')][_0x88829e('0x68e')],_0x12e0b4[_0x88829e('0x25d7')]['id']=_0x12e0b4[_0x88829e('0xc17')]['id'],_0x12e0b4[_0x88829e('0x1808')]=_0x1f57f9[_0x88829e('0xa83')][_0x88829e('0xe73')](_0x12e0b4[_0x88829e('0x25d7')],_0x4d2ce3(_0x88829e('0x1e0e')))['$promise'];}function _0x3aee1b(_0x446114){const _0x351684=_0x27b7aa;if(_0x12e0b4['contact'][_0x351684('0x354')]){const _0x527d1e=_0x2998fb[_0x351684('0x112e')]()[_0x351684('0x14e4')](_0x351684('0xd7e')+_0x12e0b4['contact']['ListId'])[_0x351684('0x1a95')](_0x351684('0x878')+_0x12e0b4[_0x351684('0xc17')][_0x351684('0x26da')]||0x0||0x0)[_0x351684('0x24d0')](_0x446114)['ok']('Ok')[_0x351684('0x1801')](_0x351684('0x1481'));return _0x2998fb[_0x351684('0x2fa')](_0x527d1e)[_0x351684('0x2788')](_0x12e0b4[_0x351684('0x1c73')])[_0x351684('0x1cb5')](function(){const _0x4057d8=_0x351684;_0x12e0b4[_0x4057d8('0xc17')]['ListId']=null;});}}function _0x5ed788(){const _0x726f5c=_0x27b7aa;return _0x1f57f9['cmList'][_0x726f5c('0x100b')]({'id':_0x12e0b4[_0x726f5c('0xc17')][_0x726f5c('0x354')]})[_0x726f5c('0x1714')]['then'](function(_0x7f14fc){const _0x3864f2=_0x726f5c;_0x12e0b4[_0x3864f2('0x132')]=_0x7f14fc||{'rows':[],'count':0x0};})[_0x726f5c('0x1cb5')](function(_0x311092){console['error'](_0x311092);});}function _0xa9c4c7(){const _0x54c067=_0x27b7aa;return _0x1f57f9['userProfileSection'][_0x54c067('0x1335')]({'userProfileId':_0x12e0b4['currentUser'][_0x54c067('0x237f')],'sectionId':0x12e})[_0x54c067('0x1714')][_0x54c067('0x2788')](function(_0x1d4783){const _0x10f3ff=_0x54c067,_0x59371d=_0x1d4783[_0x10f3ff('0x25df')]?_0x1d4783[_0x10f3ff('0x25df')][0x0]:null;return _0x42214f[_0x10f3ff('0x157e')](_0x59371d?_0x59371d['crudPermissions']:null);})[_0x54c067('0x1cb5')](function(_0x3ab1b3){const _0x24e1be=_0x54c067;_0x192e17[_0x24e1be('0x5e8')]({'title':_0x3ab1b3[_0x24e1be('0x1b51')]?_0x24e1be('0x15d1')+_0x3ab1b3['status']+_0x24e1be('0x1b0b')+_0x3ab1b3[_0x24e1be('0x22ce')]:_0x24e1be('0x4fb'),'msg':_0x3ab1b3['data']?JSON['stringify'](_0x3ab1b3[_0x24e1be('0x11fc')]):_0x3ab1b3[_0x24e1be('0x17df')]()});});}function _0x157102(_0x251f50,_0x460a54){const _0x1d4cc8=_0x27b7aa,_0x48d4b9=_0x283545()[_0x1d4cc8('0x20e8')](_0x12e0b4[_0x1d4cc8('0x10f8')][_0x1d4cc8('0x25df')],{'id':_0x460a54});_0x2998fb['show']({'controller':_0x1d4cc8('0xef4'),'controllerAs':'vm','templateUrl':_0x308ed9,'parent':angular['element'](_0x147c06[_0x1d4cc8('0x945')]),'targetEvent':_0x251f50,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x48d4b9[_0x1d4cc8('0x3bf')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0xa9c4c7()},'resolve':{'company':['apiResolver',function(_0x46550b){const _0x4b3418=_0x1d4cc8;return _0x46550b['resolve'](_0x4b3418('0x58c'),{'id':_0x460a54});}]}});}function _0x311d38(_0x5ac654){const _0x209342=_0x27b7aa;_0x2998fb[_0x209342('0x2fa')]({'controller':'DuplicateContactDialogController','controllerAs':'vm','templateUrl':_0x446818,'parent':angular[_0x209342('0x16b1')](_0x147c06['body']),'targetEvent':_0x5ac654,'clickOutsideToClose':!![],'resolve':{'lists':['apiResolver',_0x209342('0x1b04'),function(_0x2d739f,_0x5d9b29){const _0x5b879b=_0x209342;return _0x5d9b29[_0x5b879b('0x1516')](_0x5b879b('0xe23'))?_0x2d739f[_0x5b879b('0x2322')]('cmList@get',{'fields':_0x5b879b('0x1338')}):_0x2d739f[_0x5b879b('0x2322')]('userProfile@getResources',{'id':_0x12e0b4[_0x5b879b('0x9cb')][_0x5b879b('0x237f')],'section':_0x5b879b('0x12f2'),'fields':'id,name'});}]},'locals':{'contacts':_0x40c672[_0x209342('0x25df')],'contact':_0x4b95a2}});}function _0x562f65(){const _0x7b5c7c=_0x27b7aa;_0x1f57f9[_0x7b5c7c('0xa83')][_0x7b5c7c('0x2740')]({'id':_0x12e0b4[_0x7b5c7c('0xc17')]['id']},_0x12e0b4[_0x7b5c7c('0xc17')])['$promise'][_0x7b5c7c('0x2788')](function(){const _0xd39096=_0x7b5c7c;_0x192e17['success']({'title':_0xd39096('0xe22'),'msg':_0x12e0b4[_0xd39096('0xc17')]['name']?_0x12e0b4[_0xd39096('0xc17')][_0xd39096('0x1a8d')]+'\x20has\x20been\x20updated!':''});})['then'](function(){const _0x56429e=_0x7b5c7c;return _0x1f57f9[_0x56429e('0xa83')][_0x56429e('0x53a')]({'id':_0x12e0b4['contact']['id'],'ids':_0x12e0b4[_0x56429e('0xbcf')]})['$promise'];})[_0x7b5c7c('0x1cb5')](function(_0x139cc1){const _0x28054b=_0x7b5c7c;_0x192e17[_0x28054b('0x5e8')]({'title':_0x139cc1[_0x28054b('0x1b51')]?'API:'+_0x139cc1[_0x28054b('0x1b51')]+_0x28054b('0x1b0b')+_0x139cc1[_0x28054b('0x22ce')]:'SYSTEM:UPDATEcontact','msg':_0x139cc1[_0x28054b('0x11fc')]?JSON[_0x28054b('0x1be0')](_0x139cc1[_0x28054b('0x11fc')]):_0x139cc1[_0x28054b('0x17df')]()});});}function _0x5e3b7d(_0x33144e){return _0x33144e===null?undefined:new Date(_0x33144e);}function _0x3ea406(){const _0x31d4a0=_0x27b7aa;_0x5331af['go'](_0x31d4a0('0x21be'),{},{'reload':!![],'notify':!![]});}}const _0x1cf546=_0x35ca48;_0x1d8e1f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x123b'),_0x34e79e('0x16e3'),'$q','$timeout',_0x34e79e('0x2'),_0x34e79e('0x10f8'),'toasty',_0x34e79e('0x519'),'socket',_0x34e79e('0x1701'),'file',_0x34e79e('0x1578'),_0x34e79e('0x130d')];function _0x1d8e1f(_0x5cf03d,_0x445365,_0x197594,_0x5b0d21,_0x274d83,_0x467862,_0xfe265d,_0x5125ff,_0x4618fb,_0xfd73be,_0x483ca8,_0x1fdd57,_0x1f3a89,_0x4ec043){const _0x4ca0f9=_0x34e79e,_0x344f6e=this;_0x344f6e['processing']=![],_0x344f6e[_0x4ca0f9('0xaf')]=!![],_0x344f6e[_0x4ca0f9('0x130d')]=_0x4ec043,_0x344f6e[_0x4ca0f9('0x60a')]=0x0,_0x344f6e['result']={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x344f6e[_0x4ca0f9('0x1a6e')]=[{'key':_0x4ca0f9('0x26da'),'required':!![]},{'key':'lastName','required':![]},{'key':_0x4ca0f9('0x1224'),'required':!![]},{'key':_0x4ca0f9('0x246'),'required':![]},{'key':'email','required':![]},{'key':_0x4ca0f9('0xc49'),'required':![]},{'key':'country','required':![]},{'key':_0x4ca0f9('0x15b5'),'required':![]},{'key':_0x4ca0f9('0x1e2b'),'required':![]},{'key':'postalCode','required':![]},{'key':_0x4ca0f9('0x10cf'),'required':![]}],_0x344f6e[_0x4ca0f9('0x760')]=[{'key':_0x4ca0f9('0x3bb'),'required':![]},{'key':_0x4ca0f9('0x1343'),'required':![]},{'key':_0x4ca0f9('0x155b'),'required':![]}],_0x344f6e[_0x4ca0f9('0xf47')]={},_0x344f6e['duplicate']=[],_0x344f6e[_0x4ca0f9('0x2')]=_0x467862||{'rows':[],'count':0x0},_0x344f6e[_0x4ca0f9('0x10f8')]=_0xfe265d||{'rows':[],'count':0x0},_0x344f6e[_0x4ca0f9('0x132')]={'rows':[],'count':0x0},_0x344f6e[_0x4ca0f9('0x1578')]=_0x1f3a89||[],_0x344f6e['closeDialog']=_0x3acde5,_0x344f6e[_0x4ca0f9('0xedf')]=_0x17c310,_0x344f6e[_0x4ca0f9('0x1862')]=_0x59bd59,_0x344f6e[_0x4ca0f9('0xeb5')]=_0x9a4ae0,_0x344f6e[_0x4ca0f9('0x1cc2')]=_0x2c66bf,_0x344f6e['stopUpload']=_0x1f7c3e;const _0x22e856=_0x59f37a()()[_0x4ca0f9('0x1b3f')]();_0xfd73be['on'](_0x4ca0f9('0xa22')+_0x22e856,_0x16d17a);function _0x17c310(){const _0x20a16a=_0x4ca0f9;return _0x4618fb[_0x20a16a('0x1ba4')][_0x20a16a('0x100b')]({'id':_0x344f6e[_0x20a16a('0x354')]})['$promise']['then'](function(_0x5c32c1){_0x344f6e['customFields']=_0x5c32c1;})[_0x20a16a('0x1cb5')](function(_0x54f8ee){const _0x3e028f=_0x20a16a;console[_0x3e028f('0x5e8')](_0x54f8ee);});}function _0x59bd59(){const _0x5f40cd=_0x4ca0f9;_0x344f6e[_0x5f40cd('0x1a6b')]=_0x59f37a()(),_0x4618fb[_0x5f40cd('0xa83')][_0x5f40cd('0x1d30')]({'id':_0x1fdd57[_0x5f40cd('0x2377')],'binding':_0x344f6e[_0x5f40cd('0xf47')],'ListId':_0x344f6e[_0x5f40cd('0x354')],'CompanyId':_0x344f6e['CompanyId'],'duplicates':_0x344f6e[_0x5f40cd('0x1ba0')],'socket_timestamp':_0x22e856})[_0x5f40cd('0x1714')][_0x5f40cd('0x2788')](function(_0x340053){const _0x3abd37=_0x5f40cd;_0x344f6e[_0x3abd37('0xaf')]=![],_0x340053&&_0x340053[_0x3abd37('0x60a')]&&(_0x344f6e[_0x3abd37('0x60a')]=_0x340053[_0x3abd37('0x60a')]);})[_0x5f40cd('0x1cb5')](function(){const _0x3da388=_0x5f40cd;_0x344f6e[_0x3da388('0x1a6b')]=![],_0x5125ff[_0x3da388('0x5e8')]({'title':_0x3da388('0x2689'),'msg':_0x3da388('0x1b4')});});}function _0x16d17a(_0x388748){_0x274d83(function(){const _0x112521=a0_0x14e7;_0x344f6e[_0x112521('0xdb9')][_0x112521('0x25df')]=_0x388748[_0x112521('0x25df')];if(_0x388748[_0x112521('0x25be')])for(let _0x2899b5=0x0;_0x2899b5<_0x388748[_0x112521('0x25be')][_0x112521('0x2566')];_0x2899b5++){_0x344f6e[_0x112521('0xdb9')][_0x112521('0x25be')]['push'](_0x388748[_0x112521('0x25be')][_0x2899b5]);}if(_0x388748['finish']){_0x344f6e[_0x112521('0xdb9')][_0x112521('0x1646')]=!![],_0x344f6e[_0x112521('0xdb9')]['affectedRows']=_0x388748['affectedRows'],_0x344f6e[_0x112521('0xdb9')]['failedRows']=_0x344f6e[_0x112521('0xdb9')][_0x112521('0x25be')]['length'];const _0x2be5c6=_0x344f6e['result'][_0x112521('0x25df')]-_0x344f6e['result'][_0x112521('0x27e5')]-_0x344f6e[_0x112521('0xdb9')]['errors']['length'];_0x2be5c6&&_0x2be5c6>0x0&&(_0x344f6e[_0x112521('0x1ba0')][_0x112521('0x2566')]?_0x344f6e['result']['duplicatedRows']=_0x2be5c6:_0x344f6e[_0x112521('0xdb9')]['failedRows']+=_0x2be5c6),_0x344f6e[_0x112521('0xdb9')][_0x112521('0x828')]=_0x59f37a()()['diff'](_0x344f6e[_0x112521('0x1a6b')],_0x112521('0x430'));}});}function _0x9a4ae0(){const _0x547def=_0x4ca0f9,_0x31d607=_0x1f3a89;return _0x31d607[_0x547def('0x13e3')](_0x547def('0x169b')),_0x31d607;}function _0x2c66bf(){const _0x402ab1=_0x4ca0f9,_0x405f4d=[];for(let _0x595ab4=0x0;_0x595ab4<_0x344f6e[_0x402ab1('0xdb9')]['errors']['length'];_0x595ab4+=0x1){const _0x2bce71=_0x344f6e[_0x402ab1('0xdb9')]['errors'][_0x595ab4][_0x402ab1('0xce')];_0x2bce71[_0x402ab1('0x169b')]=_0x344f6e['result']['errors'][_0x595ab4][_0x402ab1('0x15e2')],_0x405f4d[_0x402ab1('0x13e3')](_0x2bce71);}return _0x405f4d;}function _0x1f7c3e(){const _0x172fa1=_0x4ca0f9;_0x344f6e[_0x172fa1('0xaf')]=!![];if(_0x344f6e[_0x172fa1('0x60a')])return _0x4618fb['system'][_0x172fa1('0x645')]({'pid':_0x344f6e[_0x172fa1('0x60a')]})[_0x172fa1('0x1714')]['then'](function(){const _0x26132c=_0x172fa1;_0x5125ff[_0x26132c('0x173b')]({'title':_0x26132c('0x270c'),'msg':_0x26132c('0x24aa')});})[_0x172fa1('0x1cb5')](function(){const _0x438305=_0x172fa1;_0x5125ff[_0x438305('0x5e8')]({'title':_0x438305('0xb21'),'msg':'pid\x20is\x20unknown'});});}_0x483ca8[_0x4ca0f9('0x651')](_0x4ca0f9('0x26ac'),function(){const _0x33e9f4=_0x4ca0f9;_0xfd73be['removeAllListeners'](_0x33e9f4('0xa22')+_0x22e856);});function _0x3acde5(){const _0x3ac859=_0x4ca0f9;_0xfd73be['removeAllListeners']('contact:import:'+_0x22e856),_0x445365[_0x3ac859('0x19d')]();}}const _0x2405ea=_0x1d8e1f;_0x1c3eeb[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1701'),_0x34e79e('0xd57'),'contact',_0x34e79e('0x14b'),_0x34e79e('0x2'),_0x34e79e('0x519')];function _0x1c3eeb(_0x17e760,_0x1e1b2c,_0x4bbf22,_0x3d5529,_0x1d0c0b,_0x217b49,_0x4ef136){const _0x566a75=_0x34e79e,_0x39daf5=this;_0x39daf5[_0x566a75('0x25be')]=[],_0x39daf5[_0x566a75('0x14e4')]='CONTACTMANAGER.MERGE_CONTACT',_0x39daf5[_0x566a75('0xc17')]=angular[_0x566a75('0x2669')](_0x3d5529),_0x39daf5[_0x566a75('0x2')]=_0x217b49||[],_0x39daf5['change']=function(){const _0x1aa547=_0x566a75;_0x39daf5[_0x1aa547('0xa67')]?_0x4ef136[_0x1aa547('0xa83')]['get']({'fields':_0x1aa547('0x1554'),'filter':_0x39daf5[_0x1aa547('0xa67')],'ListId':_0x3d5529[_0x1aa547('0x354')]})[_0x1aa547('0x1714')][_0x1aa547('0x2788')](function(_0x298f9b){const _0x2f28d3=_0x1aa547;_0x39daf5[_0x2f28d3('0x14b')]=_0x298f9b[_0x2f28d3('0x25df')];})[_0x1aa547('0x1cb5')](function(_0x38d583){console['error'](_0x38d583);}):_0x39daf5['contacts']=[];},_0x39daf5['showConfirm']=_0x5ada9a,_0x39daf5[_0x566a75('0xca7')]=_0x1d6c74;function _0x5ada9a(_0x2147b2,_0x316d30,_0xc6c223){const _0x12cbbe=_0x566a75,_0x76b807=_0x17e760[_0x12cbbe('0x112e')]({'skipHide':!![]})['title']('Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?')[_0x12cbbe('0x1a95')]('All\x20unfilled\x20values\x20of\x20the\x20contact\x20#'+_0xc6c223['id']+'\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#'+_0x316d30['id']+'.')[_0x12cbbe('0x24d0')](_0x2147b2)['ok']('Ok')[_0x12cbbe('0x1801')]('Cancel');_0x17e760[_0x12cbbe('0x2fa')](_0x76b807)['then'](function(){const _0x7e8756=_0x12cbbe;return _0x4ef136[_0x7e8756('0xa83')][_0x7e8756('0x2503')]({'to':_0xc6c223['id'],'from':_0x316d30['id']})[_0x7e8756('0x1714')];})['then'](function(_0x1b35e4){const _0x48b862=_0x12cbbe;_0x17e760[_0x48b862('0x19d')]({'new':_0x1b35e4,'to':_0xc6c223,'from':_0x316d30}),_0x283545()[_0x48b862('0x1a90')](_0x1d0c0b,{'id':_0xc6c223['id']}),_0x283545()['remove'](_0x1d0c0b,{'id':_0x316d30['id']}),_0x1d0c0b[_0x48b862('0xc51')](_0x1b35e4);})['then'](function(){const _0x5eca8b=_0x12cbbe;_0x4bbf22[_0x5eca8b('0x173b')]({'title':'Contact\x20properly\x20merged!'});})[_0x12cbbe('0x1cb5')](function(_0x495864){const _0x3a79a1=_0x12cbbe;_0x495864&&_0x495864[_0x3a79a1('0x1b51')]&&_0x4bbf22[_0x3a79a1('0x5e8')]({'title':_0x495864[_0x3a79a1('0x1b51')]?_0x3a79a1('0x15d1')+_0x495864[_0x3a79a1('0x1b51')]+_0x3a79a1('0x1b0b')+_0x495864[_0x3a79a1('0x22ce')]:_0x3a79a1('0x1de6'),'msg':_0x495864['data']?JSON[_0x3a79a1('0x1be0')](_0x495864[_0x3a79a1('0x11fc')]):_0x495864['toString']()});});}function _0x1d6c74(){const _0x117239=_0x566a75;_0x17e760[_0x117239('0x19d')]();}}const _0x2f7728=_0x1c3eeb,_0x15e22d=_0x18dd13['p']+_0x34e79e('0x2585'),_0x3e32fb=_0x18dd13['p']+_0x34e79e('0x267d');_0x20f7a3['$inject']=['$stateProvider'];function _0x20f7a3(_0x1a1f1c){const _0xdf9e7c=_0x34e79e;_0x1a1f1c[_0xdf9e7c('0x249b')]('app.contactmanager.contacts',{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x15e22d,'controller':'ContactsController\x20as\x20vm'}},'resolve':{'contacts':[_0xdf9e7c('0x1318'),_0xdf9e7c('0x1b04'),_0xdf9e7c('0xad0'),function(_0x253fba,_0xf85297,_0x4f7383){const _0x5d49ba=_0xdf9e7c;return _0xf85297[_0x5d49ba('0x1516')]('admin')?_0x253fba[_0x5d49ba('0x2322')](_0x5d49ba('0x7ea'),_0x283545()['merge']({'includeAll':!![],'sort':_0x5d49ba('0x1cee'),'limit':0xa,'offset':0x0},_0x4f7383)):_0x253fba[_0x5d49ba('0x2322')](_0x5d49ba('0x27c5'),_0x283545()[_0x5d49ba('0x2503')]({'id':_0xf85297[_0x5d49ba('0x24cc')]()[_0x5d49ba('0x237f')],'section':_0x5d49ba('0x52d'),'includeAll':!![],'sort':_0x5d49ba('0x1cee'),'limit':0xa,'offset':0x0},_0x4f7383));}],'lists':[_0xdf9e7c('0x1318'),_0xdf9e7c('0x1b04'),function(_0x2321fb,_0x2ecec9){const _0x12c781=_0xdf9e7c;return _0x2ecec9['hasRole'](_0x12c781('0xe23'))?_0x2321fb[_0x12c781('0x2322')](_0x12c781('0x128f'),{'fields':'id,name','sort':_0x12c781('0x1a8d'),'nolimit':!![]}):_0x2321fb[_0x12c781('0x2322')]('userProfile@getResources',{'id':_0x2ecec9[_0x12c781('0x24cc')]()[_0x12c781('0x237f')],'section':_0x12c781('0x12f2'),'fields':_0x12c781('0x1338'),'sort':_0x12c781('0x1cee'),'nolimit':!![]});}],'listsMap':[_0xdf9e7c('0x2'),function(_0x19708b){const _0x246950=_0xdf9e7c,_0x139f95={};for(let _0x10c383=0x0;_0x10c383<_0x19708b[_0x246950('0x25df')][_0x246950('0x2566')];_0x10c383++){_0x139f95[_0x19708b[_0x246950('0x25df')][_0x10c383]['id']]=_0x19708b[_0x246950('0x25df')][_0x10c383][_0x246950('0x1a8d')];}return _0x139f95;}],'companies':['apiResolver','Auth',function(_0x52cd8b,_0x468c05){const _0xbb9330=_0xdf9e7c;return _0x468c05[_0xbb9330('0x1516')](_0xbb9330('0xe23'))?_0x52cd8b['resolve'](_0xbb9330('0x58c'),{'fields':_0xbb9330('0x1338'),'sort':_0xbb9330('0x1a8d'),'nolimit':!![]}):_0x52cd8b['resolve']('userProfile@getResources',{'id':_0x468c05['getCurrentUser']()[_0xbb9330('0x237f')],'section':'Companies','fields':_0xbb9330('0x1338'),'sort':_0xbb9330('0x1a8d'),'nolimit':!![]});}],'companiesMap':[_0xdf9e7c('0x10f8'),function(_0x5f3028){const _0x538c1f=_0xdf9e7c,_0x2eb623={};for(let _0x26dcc3=0x0;_0x26dcc3<_0x5f3028[_0x538c1f('0x25df')][_0x538c1f('0x2566')];_0x26dcc3++){_0x2eb623[_0x5f3028[_0x538c1f('0x25df')][_0x26dcc3]['id']]=_0x5f3028[_0x538c1f('0x25df')][_0x26dcc3][_0x538c1f('0x1a8d')];}return _0x2eb623;}],'tags':[_0xdf9e7c('0x1318'),_0xdf9e7c('0x1b04'),function(_0x3c0b9e,_0x4f8cf4){const _0x33c1e5=_0xdf9e7c;return _0x4f8cf4[_0x33c1e5('0x1516')](_0x33c1e5('0xe23'))?_0x3c0b9e[_0x33c1e5('0x2322')]('tag@get',{'fields':_0x33c1e5('0x1338'),'sort':'name','nolimit':!![]}):_0x3c0b9e[_0x33c1e5('0x2322')](_0x33c1e5('0x27c5'),{'id':_0x4f8cf4[_0x33c1e5('0x24cc')]()[_0x33c1e5('0x237f')],'section':_0x33c1e5('0xbcf'),'fields':_0x33c1e5('0x1338'),'sort':'name','nolimit':!![]});}],'userProfile':[_0xdf9e7c('0x1318'),_0xdf9e7c('0x1b04'),function(_0x1b35f8,_0x165837){const _0x355590=_0xdf9e7c;return _0x1b35f8[_0x355590('0x2322')]('userProfile@get',{'fields':_0x355590('0x3f0'),'id':_0x165837[_0x355590('0x24cc')]()[_0x355590('0x237f')]});}],'userProfileSection':[_0xdf9e7c('0x1318'),'Auth',function(_0x511666,_0x454c38){const _0x3d6739=_0xdf9e7c;return _0x511666[_0x3d6739('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x454c38['getCurrentUser']()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0xdf9e7c('0x218a')})[_0xdf9e7c('0x249b')](_0xdf9e7c('0x22b0'),{'url':_0xdf9e7c('0x206b'),'params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e32fb,'controller':_0xdf9e7c('0x241c')}},'resolve':{'contact':['apiResolver',_0xdf9e7c('0xad0'),function(_0x3f06ec,_0x53742b){const _0xd21516=_0xdf9e7c;return _0x3f06ec[_0xd21516('0x2322')]('cmContact@get',{'id':_0x53742b['id']})[_0xd21516('0x2788')](function(_0x41af6a){const _0x3ce5fe=_0xd21516;return _0x41af6a[_0x3ce5fe('0xc49')]&&(_0x41af6a[_0x3ce5fe('0xc49')]=new Date(_0x41af6a[_0x3ce5fe('0xc49')])),_0x41af6a;})['catch'](function(_0x5105bd){const _0x15ba4d=_0xd21516;console[_0x15ba4d('0x5e8')](_0x5105bd);});}],'hoppers':[_0xdf9e7c('0x1318'),_0xdf9e7c('0xad0'),function(_0x430915,_0x54b790){const _0x1a8b7f=_0xdf9e7c;return _0x430915['resolve'](_0x1a8b7f('0x1ab3'),{'id':_0x54b790['id'],'fields':_0x1a8b7f('0x73a'),'sort':_0x1a8b7f('0x1cee'),'limit':0xa,'offset':0x0});}],'finals':[_0xdf9e7c('0x1318'),_0xdf9e7c('0xad0'),function(_0x148178,_0x7db8be){const _0x5adaf4=_0xdf9e7c;return _0x148178[_0x5adaf4('0x2322')](_0x5adaf4('0x201'),{'id':_0x7db8be['id'],'fields':_0x5adaf4('0x1cfd'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'histories':[_0xdf9e7c('0x1318'),_0xdf9e7c('0xad0'),function(_0x43cc01,_0x37f996){const _0xbcd864=_0xdf9e7c;return _0x43cc01[_0xbcd864('0x2322')](_0xbcd864('0xa95'),{'id':_0x37f996['id'],'fields':_0xbcd864('0x20b1'),'sort':_0xbcd864('0x1cee'),'limit':0xa,'offset':0x0});}],'jscriptySessions':['apiResolver',_0xdf9e7c('0xad0'),function(_0x4aa91c,_0x103195){const _0x3f59b6=_0xdf9e7c;return _0x4aa91c['resolve'](_0x3f59b6('0x2054'),{'id':_0x103195['id'],'fields':_0x3f59b6('0x17c5'),'sort':'-starttime','limit':0xa,'offset':0x0});}],'companies':[_0xdf9e7c('0x1318'),_0xdf9e7c('0x1b04'),function(_0x23cd3c,_0x2d4def){const _0x4e2359=_0xdf9e7c;return _0x2d4def[_0x4e2359('0x1516')]('admin')?_0x23cd3c[_0x4e2359('0x2322')](_0x4e2359('0x58c')):_0x23cd3c[_0x4e2359('0x2322')](_0x4e2359('0x27c5'),{'id':_0x2d4def[_0x4e2359('0x24cc')]()[_0x4e2359('0x237f')],'section':'Companies'});}],'lists':['apiResolver',_0xdf9e7c('0x1b04'),function(_0x34ff37,_0x2d702a){const _0x2e169d=_0xdf9e7c;return _0x2d702a['hasRole'](_0x2e169d('0xe23'))?_0x34ff37[_0x2e169d('0x2322')](_0x2e169d('0x128f'),{'fields':_0x2e169d('0x1338'),'sort':_0x2e169d('0x1cee'),'nolimit':!![]}):_0x34ff37['resolve'](_0x2e169d('0x27c5'),{'id':_0x2d702a[_0x2e169d('0x24cc')]()[_0x2e169d('0x237f')],'section':'Lists','fields':_0x2e169d('0x1338'),'sort':'-updatedAt','nolimit':!![]});}],'customFields':['apiResolver','contact',function(_0x337f2e,_0x86bd80){const _0x3ca1ad=_0xdf9e7c;return _0x86bd80[_0x3ca1ad('0x354')]?_0x337f2e[_0x3ca1ad('0x2322')](_0x3ca1ad('0x22a1'),{'id':_0x86bd80[_0x3ca1ad('0x354')]}):null;}],'tags':['apiResolver','Auth',function(_0xdfd24a,_0x575fda){const _0x5df5b1=_0xdf9e7c;return _0x575fda[_0x5df5b1('0x1516')](_0x5df5b1('0xe23'))?_0xdfd24a[_0x5df5b1('0x2322')](_0x5df5b1('0x46c')):_0xdfd24a[_0x5df5b1('0x2322')]('userProfile@getResources',{'id':_0x575fda[_0x5df5b1('0x24cc')]()[_0x5df5b1('0x237f')],'section':_0x5df5b1('0xbcf')});}],'userProfileSection':[_0xdf9e7c('0x1318'),'Auth',function(_0x187646,_0x34fd5a){const _0x21c2b0=_0xdf9e7c;return _0x187646['resolve'](_0x21c2b0('0x22ca'),{'fields':_0x21c2b0('0xe2c'),'userProfileId':_0x34fd5a[_0x21c2b0('0x24cc')]()[_0x21c2b0('0x237f')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':'contactmanager'});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x21be'),[])['config'](_0x20f7a3)['controller'](_0x34e79e('0x123d'),_0x53a936)[_0x34e79e('0xb44')](_0x34e79e('0x447'),_0x3b7e7e)[_0x34e79e('0xb44')]('DuplicateContactDialogController',_0x3e49eb)['controller']('EditHopperDialogController',_0x34e50c)[_0x34e79e('0xb44')](_0x34e79e('0x2193'),_0x1cf546)[_0x34e79e('0xb44')](_0x34e79e('0x13c0'),_0x2405ea)['controller'](_0x34e79e('0x1344'),_0x2f7728);const _0x572491=_0x18dd13['p']+_0x34e79e('0x1bea');_0x413369[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window','$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x10f8'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x413369(_0x14604b,_0x48ce43,_0x5d56b0,_0x2866cc,_0x473c3e,_0x264ead,_0x248e7a,_0x45b4c6,_0x47fda6,_0x3d70a2,_0x32eab6,_0x5b3023,_0x500e8c,_0xed0dfd,_0x5eac23,_0x54e79f,_0x22d33b){const _0x332732=_0x34e79e,_0x547404=this;_0x547404[_0x332732('0x130d')]=_0x54e79f,_0x547404[_0x332732('0x1af0')]=_0x22d33b,_0x547404[_0x332732('0x9cb')]=_0x5eac23[_0x332732('0x24cc')](),_0x547404[_0x332732('0x10f8')]=_0x47fda6||{'count':0x0,'rows':[]},_0x547404[_0x332732('0x63c')]=_0x3d70a2,_0x547404[_0x332732('0xec9')]=_0x32eab6&&_0x32eab6['count']==0x1?_0x32eab6[_0x332732('0x25df')][0x0]:null,_0x547404[_0x332732('0xe28')]=_0x5eac23[_0x332732('0x157e')](_0x547404['userProfileSection']?_0x547404[_0x332732('0xec9')][_0x332732('0xe28')]:null),_0x547404[_0x332732('0x26a9')]=_0x332732('0x10f8'),_0x547404[_0x332732('0x2278')]='',_0x547404[_0x332732('0x25e2')]=null,_0x547404[_0x332732('0x8d9')]=[],_0x547404[_0x332732('0x135a')]={'fields':_0x332732('0x2285'),'sort':_0x332732('0x1cee'),'limit':0xa,'page':0x1},_0x547404[_0x332732('0x1f7e')]=_0x14350c,_0x547404[_0x332732('0x1bf4')]=_0x3f8089,_0x547404[_0x332732('0x1e5')]=_0x3abe9f,_0x547404[_0x332732('0x173b')]=_0x42d9c4,_0x547404['getCompanies']=_0x5a95f4,_0x547404[_0x332732('0x150c')]=_0x137094,_0x547404[_0x332732('0x18ed')]=_0x2223d6,_0x547404[_0x332732('0x1080')]=_0x5738e0,_0x547404[_0x332732('0x6e2')]=_0x9ba365,_0x547404[_0x332732('0x1af1')]=_0x433108,_0x547404[_0x332732('0xc5b')]=_0x20f188;function _0x14350c(_0xce92b7){const _0x1d0f30=_0x332732;_0x5d56b0['go'](_0x1d0f30('0x3df'),{'id':_0xce92b7['id'],'company':_0xce92b7,'crudPermissions':_0x547404['crudPermissions']});}function _0x3f8089(_0x4438ea){const _0x404774=_0x332732;if(_0x5eac23[_0x404774('0x1516')]('admin'))_0x5d56b0['go'](_0x404774('0x21be'),{'CompanyId':_0x4438ea['id']});else return _0x5b3023[_0x404774('0xec9')]['get']({'userProfileId':_0x5eac23[_0x404774('0x24cc')]()[_0x404774('0x237f')],'sectionId':0x12f})[_0x404774('0x1714')][_0x404774('0x2788')](function(_0x48f4a){const _0x413df5=_0x404774,_0xaefc9a=_0x48f4a&&_0x48f4a[_0x413df5('0x25df')]?_0x48f4a[_0x413df5('0x25df')][0x0]:null;_0xaefc9a&&_0xaefc9a[_0x413df5('0x14f4')]?_0x5d56b0['go'](_0x413df5('0x21be'),{'CompanyId':_0x4438ea['id']}):_0xed0dfd['info']({'title':_0x45b4c6[_0x413df5('0x1b11')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x45b4c6[_0x413df5('0x1b11')](_0x413df5('0x1abc'))});})[_0x404774('0x1cb5')](function(_0x2b24cc){const _0x27d00d=_0x404774;_0xed0dfd[_0x27d00d('0x5e8')]({'title':_0x2b24cc['status']?_0x27d00d('0x15d1')+_0x2b24cc[_0x27d00d('0x1b51')]+'\x20-\x20'+_0x2b24cc[_0x27d00d('0x22ce')]:_0x27d00d('0x2292'),'msg':_0x2b24cc[_0x27d00d('0x1b51')]?JSON['stringify'](_0x2b24cc[_0x27d00d('0x11fc')]):_0x2b24cc['toString']()});});}function _0x3abe9f(_0x558529,_0x3abe1c){const _0x154beb=_0x332732,_0x15c872=_0x473c3e[_0x154beb('0x112e')]()[_0x154beb('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x154beb('0x114')](_0x154beb('0x2033'))+'?')[_0x154beb('0x93e')](_0x154beb('0x1670')+(_0x558529[_0x154beb('0x1a8d')]||_0x154beb('0x2033'))+_0x154beb('0x229e')+_0x154beb('0x27c7'))['ariaLabel']('delete\x20company')[_0x154beb('0x24d0')](_0x3abe1c)['ok']('OK')[_0x154beb('0x1801')](_0x154beb('0x1d8d'));_0x473c3e[_0x154beb('0x2fa')](_0x15c872)[_0x154beb('0x2788')](function(){_0x2223d6(_0x558529);},function(){const _0x449e45=_0x154beb;console[_0x449e45('0x10df')]('CANCEL');});}let _0x254d44=!![],_0xa30d8b=0x1;_0x14604b[_0x332732('0x1662')](_0x332732('0x1569'),function(_0x2aa0e6,_0x79c604){const _0x2b04e5=_0x332732;_0x254d44?_0x248e7a(function(){_0x254d44=![];}):(!_0x79c604&&(_0xa30d8b=_0x547404[_0x2b04e5('0x135a')][_0x2b04e5('0x23f5')]),_0x2aa0e6!==_0x79c604&&(_0x547404['query'][_0x2b04e5('0x23f5')]=0x1),!_0x2aa0e6&&(_0x547404[_0x2b04e5('0x135a')][_0x2b04e5('0x23f5')]=_0xa30d8b),_0x547404[_0x2b04e5('0xf30')]());});function _0x42d9c4(_0x1e87a1){const _0x32faca=_0x332732;_0x547404[_0x32faca('0x10f8')]=_0x1e87a1||{'count':0x0,'rows':[]};}function _0x5a95f4(){const _0x25c0a3=_0x332732;_0x547404[_0x25c0a3('0x135a')][_0x25c0a3('0x19e')]=(_0x547404[_0x25c0a3('0x135a')][_0x25c0a3('0x23f5')]-0x1)*_0x547404[_0x25c0a3('0x135a')][_0x25c0a3('0x68e')],_0x5eac23['hasRole'](_0x25c0a3('0xe23'))?_0x547404[_0x25c0a3('0x1808')]=_0x5b3023[_0x25c0a3('0x27f6')][_0x25c0a3('0x1335')](_0x547404[_0x25c0a3('0x135a')],_0x42d9c4)['$promise']:(_0x547404['query']['id']=_0x547404['userProfile']['id'],_0x547404[_0x25c0a3('0x135a')][_0x25c0a3('0xb13')]=_0x25c0a3('0xbc9'),_0x547404[_0x25c0a3('0x1808')]=_0x5b3023['userProfile']['getResources'](_0x547404[_0x25c0a3('0x135a')],_0x42d9c4)['$promise']);}function _0x137094(_0x142d45,_0x1a5918){const _0x345919=_0x332732;_0x473c3e[_0x345919('0x2fa')]({'controller':_0x345919('0xef4'),'controllerAs':'vm','templateUrl':_0x572491,'parent':angular[_0x345919('0x16b1')](_0x264ead[_0x345919('0x945')]),'targetEvent':_0x142d45,'clickOutsideToClose':!![],'locals':{'company':_0x1a5918,'companies':_0x547404[_0x345919('0x10f8')][_0x345919('0x25df')],'license':_0x547404[_0x345919('0x130d')],'setting':_0x547404[_0x345919('0x1af0')],'crudPermissions':_0x547404[_0x345919('0xe28')]}});}function _0x2223d6(_0x501007){const _0xee6f5e=_0x332732;_0x5b3023[_0xee6f5e('0x27f6')]['delete']({'id':_0x501007['id']})['$promise']['then'](function(){const _0x38fa11=_0xee6f5e;_0x283545()[_0x38fa11('0x1a90')](_0x547404['companies'][_0x38fa11('0x25df')],{'id':_0x501007['id']}),_0x547404[_0x38fa11('0x10f8')][_0x38fa11('0x338')]-=0x1,!_0x547404[_0x38fa11('0x10f8')]['rows'][_0x38fa11('0x2566')]&&_0x547404[_0x38fa11('0xf30')](),_0xed0dfd[_0x38fa11('0x173b')]({'title':_0x283545()[_0x38fa11('0x114')](_0x38fa11('0x23a8'))+_0x38fa11('0x20db'),'msg':_0x501007[_0x38fa11('0x1a8d')]?_0x501007[_0x38fa11('0x1a8d')]+_0x38fa11('0x14d4'):''});})[_0xee6f5e('0x1cb5')](function(_0x4472e2){const _0x46cbda=_0xee6f5e;if(_0x4472e2[_0x46cbda('0x11fc')]&&_0x4472e2[_0x46cbda('0x11fc')][_0x46cbda('0x25be')]&&_0x4472e2[_0x46cbda('0x11fc')][_0x46cbda('0x25be')]['length']){_0x547404['errors']=_0x4472e2[_0x46cbda('0x11fc')][_0x46cbda('0x25be')]||[{'message':_0x4472e2[_0x46cbda('0x17df')](),'type':_0x46cbda('0xd50')}];for(let _0x75d62=0x0;_0x75d62<_0x4472e2['data'][_0x46cbda('0x25be')]['length'];_0x75d62++){_0xed0dfd[_0x46cbda('0x5e8')]({'title':_0x4472e2['data'][_0x46cbda('0x25be')][_0x75d62][_0x46cbda('0x1d7')],'msg':_0x4472e2['data'][_0x46cbda('0x25be')][_0x75d62][_0x46cbda('0x15e2')]});}}else _0xed0dfd[_0x46cbda('0x5e8')]({'title':_0x4472e2[_0x46cbda('0x1b51')]?_0x46cbda('0x15d1')+_0x4472e2[_0x46cbda('0x1b51')]+_0x46cbda('0x1b0b')+_0x4472e2[_0x46cbda('0x22ce')]:_0x46cbda('0xd50'),'msg':_0x4472e2['data']?JSON['stringify'](_0x4472e2[_0x46cbda('0x11fc')]['message']):_0x4472e2[_0x46cbda('0x15e2')]||_0x4472e2[_0x46cbda('0x17df')]()});});}function _0x5738e0(){const _0x853103=_0x332732,_0x3a9f09=angular[_0x853103('0x2669')](_0x547404['selectedCompanies']);return _0x547404[_0x853103('0x8d9')]=[],_0x3a9f09;}function _0x9ba365(_0xe6d305){const _0x1e466b=_0x332732,_0x11c0a3=_0x473c3e['confirm']()[_0x1e466b('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?')[_0x1e466b('0x93e')](''+_0x547404['selectedCompanies'][_0x1e466b('0x2566')]+'\x20selected'+_0x1e466b('0x27c7'))[_0x1e466b('0x10bc')](_0x1e466b('0x1a5a'))['targetEvent'](_0xe6d305)['ok']('OK')[_0x1e466b('0x1801')]('CANCEL');_0x473c3e[_0x1e466b('0x2fa')](_0x11c0a3)['then'](function(){const _0x59faa5=_0x1e466b;_0x547404[_0x59faa5('0x8d9')]['forEach'](function(_0x329c7e){_0x2223d6(_0x329c7e);}),_0x547404['selectedCompanies']=[];});}function _0x433108(){_0x547404['selectedCompanies']=[];}function _0x20f188(){const _0x520958=_0x332732;_0x547404['selectedCompanies']=_0x547404[_0x520958('0x10f8')][_0x520958('0x25df')];}}const _0x1edc16=_0x413369;_0x53405e['$inject']=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'companies',_0x34e79e('0x2033'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting','crudPermissions'];function _0x53405e(_0x3cc379,_0x29a46,_0x5174e5,_0x5290ee,_0xd0c895,_0x3db54a,_0x36ab7e,_0x1b4e0c,_0xb0466f,_0x1ce1a6,_0x2c13b9,_0x3ee145,_0x188578,_0x26b42c){const _0x1dca6f=_0x34e79e,_0x541632=this;_0x541632['currentUser']=_0x2c13b9[_0x1dca6f('0x24cc')](),_0x541632['errors']=[],_0x541632['setting']=_0x188578,_0x541632['license']=_0x3ee145,_0x541632['crudPermissions']=_0x26b42c,_0x541632[_0x1dca6f('0x1193')]={},_0x541632[_0x1dca6f('0x18ad')]=_0x541632[_0x1dca6f('0x1af0')]&&_0x541632[_0x1dca6f('0x1af0')][_0x1dca6f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x541632['title']=_0x1dca6f('0x1e57'),_0x541632[_0x1dca6f('0x2033')]=angular[_0x1dca6f('0x2669')](_0xb0466f),_0x541632['companies']=_0x1b4e0c,_0x541632[_0x1dca6f('0x1a0d')]=![];!_0x541632[_0x1dca6f('0x2033')]&&(_0x541632[_0x1dca6f('0x2033')]={},_0x541632[_0x1dca6f('0x14e4')]='CONTACTMANAGER.NEW_COMPANY',_0x541632[_0x1dca6f('0x1a0d')]=!![]);_0x541632['addNewCompany']=_0x29dc49,_0x541632[_0x1dca6f('0x804')]=_0x29a9cc,_0x541632[_0x1dca6f('0x18ed')]=_0x57fc51,_0x541632[_0x1dca6f('0x2601')]=_0x16bcb2,_0x541632[_0x1dca6f('0xca7')]=_0x837714;function _0x29dc49(){const _0x195367=_0x1dca6f;_0x541632[_0x195367('0x25be')]=[],_0x1ce1a6[_0x195367('0x27f6')][_0x195367('0xbd0')](_0x541632[_0x195367('0x2033')])[_0x195367('0x1714')][_0x195367('0x2788')](function(_0x2e658c){const _0x5a2979=_0x195367;_0x541632[_0x5a2979('0x10f8')]['unshift'](_0x2e658c[_0x5a2979('0x1cbf')]()),_0x36ab7e[_0x5a2979('0x173b')]({'title':'Company\x20properly\x20created','msg':_0x541632[_0x5a2979('0x2033')][_0x5a2979('0x1a8d')]?_0x541632[_0x5a2979('0x2033')][_0x5a2979('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x837714(_0x2e658c);})[_0x195367('0x1cb5')](function(_0x2a1267){const _0x4127fd=_0x195367;if(_0x2a1267[_0x4127fd('0x11fc')]&&_0x2a1267['data'][_0x4127fd('0x25be')]&&_0x2a1267[_0x4127fd('0x11fc')][_0x4127fd('0x25be')][_0x4127fd('0x2566')]){_0x541632['errors']=_0x2a1267[_0x4127fd('0x11fc')][_0x4127fd('0x25be')]||[{'message':_0x2a1267[_0x4127fd('0x17df')](),'type':_0x4127fd('0xd4e')}];for(let _0x5a6c21=0x0;_0x5a6c21<_0x2a1267['data'][_0x4127fd('0x25be')][_0x4127fd('0x2566')];_0x5a6c21+=0x1){_0x36ab7e[_0x4127fd('0x5e8')]({'title':_0x2a1267[_0x4127fd('0x11fc')]['errors'][_0x5a6c21][_0x4127fd('0x1d7')],'msg':_0x2a1267[_0x4127fd('0x11fc')][_0x4127fd('0x25be')][_0x5a6c21][_0x4127fd('0x15e2')]});}}else _0x36ab7e[_0x4127fd('0x5e8')]({'title':_0x2a1267[_0x4127fd('0x1b51')]?_0x4127fd('0x15d1')+_0x2a1267[_0x4127fd('0x1b51')]+_0x4127fd('0x1b0b')+_0x2a1267[_0x4127fd('0x22ce')]:_0x4127fd('0xd4e'),'msg':_0x2a1267[_0x4127fd('0x11fc')]?JSON[_0x4127fd('0x1be0')](_0x2a1267[_0x4127fd('0x11fc')][_0x4127fd('0x15e2')]):_0x2a1267[_0x4127fd('0x17df')]()});});}function _0x29a9cc(){const _0x395f98=_0x1dca6f;_0x541632['errors']=[],_0x1ce1a6[_0x395f98('0x27f6')][_0x395f98('0x2740')]({'id':_0x541632[_0x395f98('0x2033')]['id']},_0x541632[_0x395f98('0x2033')])['$promise'][_0x395f98('0x2788')](function(_0x377a4f){const _0x1c9968=_0x395f98,_0x517ecd=_0x283545()[_0x1c9968('0x20e8')](_0x541632[_0x1c9968('0x10f8')],{'id':_0x377a4f['id']});_0x517ecd&&_0x283545()[_0x1c9968('0x2503')](_0x517ecd,_0x283545()['pick'](_0x377a4f[_0x1c9968('0x1cbf')](),_0x283545()[_0x1c9968('0x2163')](_0x517ecd))),_0x36ab7e[_0x1c9968('0x173b')]({'title':_0x1c9968('0x1ccd'),'msg':_0x541632[_0x1c9968('0x2033')][_0x1c9968('0x1a8d')]?_0x541632[_0x1c9968('0x2033')][_0x1c9968('0x1a8d')]+_0x1c9968('0x24cf'):''}),_0x837714(_0x377a4f);})[_0x395f98('0x1cb5')](function(_0xb3852c){const _0x364a84=_0x395f98;if(_0xb3852c[_0x364a84('0x11fc')]&&_0xb3852c[_0x364a84('0x11fc')]['errors']&&_0xb3852c[_0x364a84('0x11fc')]['errors']['length']){_0x541632[_0x364a84('0x25be')]=_0xb3852c['data']['errors']||[{'message':_0xb3852c[_0x364a84('0x17df')](),'type':_0x364a84('0xd32')}];for(let _0x3274cb=0x0;_0x3274cb<_0xb3852c['data']['errors'][_0x364a84('0x2566')];_0x3274cb++){_0x36ab7e[_0x364a84('0x5e8')]({'title':_0xb3852c[_0x364a84('0x11fc')][_0x364a84('0x25be')][_0x3274cb]['type'],'msg':_0xb3852c['data']['errors'][_0x3274cb][_0x364a84('0x15e2')]});}}else _0x36ab7e[_0x364a84('0x5e8')]({'title':_0xb3852c[_0x364a84('0x1b51')]?_0x364a84('0x15d1')+_0xb3852c['status']+'\x20-\x20'+_0xb3852c['statusText']:_0x364a84('0xd32'),'msg':_0xb3852c[_0x364a84('0x11fc')]?JSON[_0x364a84('0x1be0')](_0xb3852c['data'][_0x364a84('0x15e2')]):_0xb3852c[_0x364a84('0x17df')]()});});}function _0x57fc51(_0x5f37df){const _0x18bd6a=_0x1dca6f;_0x541632[_0x18bd6a('0x25be')]=[];const _0x2e5639=_0x5290ee[_0x18bd6a('0x112e')]()[_0x18bd6a('0x14e4')](_0x18bd6a('0x458'))[_0x18bd6a('0x1c98')](_0x18bd6a('0x1075'))['ariaLabel'](_0x18bd6a('0x9ce'))['ok'](_0x18bd6a('0x2786'))['cancel']('Cancel')[_0x18bd6a('0x24d0')](_0x5f37df);_0x5290ee[_0x18bd6a('0x2fa')](_0x2e5639)[_0x18bd6a('0x2788')](function(){const _0x1f5f94=_0x18bd6a;_0x1ce1a6[_0x1f5f94('0x27f6')][_0x1f5f94('0x17c4')]({'id':_0x541632[_0x1f5f94('0x2033')]['id']})[_0x1f5f94('0x1714')][_0x1f5f94('0x2788')](function(){const _0x283f34=_0x1f5f94;_0x283545()[_0x283f34('0x1a90')](_0x541632[_0x283f34('0x10f8')],{'id':_0x541632[_0x283f34('0x2033')]['id']}),_0x36ab7e[_0x283f34('0x173b')]({'title':_0x283f34('0xfc7'),'msg':(_0x541632[_0x283f34('0x2033')][_0x283f34('0x1a8d')]||'company')+_0x283f34('0x14d4')}),_0x837714(_0x541632[_0x283f34('0x2033')]);})[_0x1f5f94('0x1cb5')](function(_0x3b9ac1){const _0x2b4109=_0x1f5f94;if(_0x3b9ac1[_0x2b4109('0x11fc')]&&_0x3b9ac1['data'][_0x2b4109('0x25be')]&&_0x3b9ac1[_0x2b4109('0x11fc')][_0x2b4109('0x25be')][_0x2b4109('0x2566')]){_0x541632[_0x2b4109('0x25be')]=_0x3b9ac1['data'][_0x2b4109('0x25be')]||[{'message':_0x3b9ac1[_0x2b4109('0x17df')](),'type':_0x2b4109('0x1964')}];for(let _0x1c84dc=0x0;_0x1c84dc<_0x3b9ac1[_0x2b4109('0x11fc')]['errors'][_0x2b4109('0x2566')];_0x1c84dc++){_0x36ab7e[_0x2b4109('0x5e8')]({'title':_0x3b9ac1['data'][_0x2b4109('0x25be')][_0x1c84dc][_0x2b4109('0x1d7')],'msg':_0x3b9ac1[_0x2b4109('0x11fc')][_0x2b4109('0x25be')][_0x1c84dc]['message']});}}else _0x36ab7e[_0x2b4109('0x5e8')]({'title':_0x3b9ac1[_0x2b4109('0x1b51')]?_0x2b4109('0x15d1')+_0x3b9ac1['status']+_0x2b4109('0x1b0b')+_0x3b9ac1[_0x2b4109('0x22ce')]:_0x2b4109('0x1964'),'msg':_0x3b9ac1[_0x2b4109('0x11fc')]?JSON[_0x2b4109('0x1be0')](_0x3b9ac1[_0x2b4109('0x11fc')][_0x2b4109('0x15e2')]):_0x3b9ac1['message']||_0x3b9ac1[_0x2b4109('0x17df')]()});});},function(){});}function _0x16bcb2(_0x24ffb0){return _0x24ffb0===null?undefined:new Date(_0x24ffb0);}function _0x837714(_0x4c2eda){_0x5290ee['hide'](_0x4c2eda);}}const _0x2559e6=_0x53405e;_0x1843c0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x2033'),_0x34e79e('0xec9')];function _0x1843c0(_0x74edef,_0x2c6eff,_0x5f2390,_0x31f4b4,_0x2c752a,_0x97f9e7,_0x5e85c6,_0x46f6af,_0x2f731f,_0x11af5a,_0x3d1b3e,_0xa90d38){const _0x2748a0=_0x34e79e,_0x3a2296=this;_0x3a2296[_0x2748a0('0x9cb')]=_0x11af5a[_0x2748a0('0x24cc')](),_0x3a2296[_0x2748a0('0x130d')]=_0x97f9e7,_0x3a2296[_0x2748a0('0x1af0')]=_0x5e85c6,_0x3a2296['passwordPattern']=_0x3a2296[_0x2748a0('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a2296[_0x2748a0('0xe9')]=_0x2c6eff[_0x2748a0('0x170c')]()+_0x2748a0('0x726')+_0x2c6eff[_0x2748a0('0x1c6a')](),_0x3a2296['company']=_0x3d1b3e||_0x74edef[_0x2748a0('0x4b9')]['company']||{},_0x3a2296[_0x2748a0('0xec9')]=_0xa90d38&&_0xa90d38['count']==0x1?_0xa90d38[_0x2748a0('0x25df')][0x0]:null,_0x3a2296[_0x2748a0('0xe28')]=_0x11af5a[_0x2748a0('0x157e')](_0x3a2296[_0x2748a0('0xec9')]?_0x3a2296[_0x2748a0('0xec9')]['crudPermissions']:null),_0x3a2296['hasModulePermissions']={},_0x3a2296['selectedTab']=_0x74edef[_0x2748a0('0x4b9')][_0x2748a0('0x24f6')]||0x0,_0x3a2296['gotogoto']=_0x185224,_0x3a2296['alert']=_0x2f731f[_0x2748a0('0x2276')],_0x3a2296['gotoCompanies']=_0x2c7e21,_0x3a2296[_0x2748a0('0x804')]=_0xfda63a;function _0x185224(_0x3162f7){const _0xdd5114=_0x2748a0;if(_0x11af5a[_0xdd5114('0x1516')](_0xdd5114('0xe23')))_0x74edef['go'](_0xdd5114('0x21be'),{'CompanyId':_0x3162f7['id']});else return _0x46f6af['userProfileSection'][_0xdd5114('0x1335')]({'userProfileId':_0x11af5a[_0xdd5114('0x24cc')]()['userProfileId'],'sectionId':0x12f})[_0xdd5114('0x1714')][_0xdd5114('0x2788')](function(_0x30f32){const _0x5b482a=_0xdd5114,_0x572464=_0x30f32&&_0x30f32[_0x5b482a('0x25df')]?_0x30f32[_0x5b482a('0x25df')][0x0]:null;_0x572464&&_0x572464[_0x5b482a('0x14f4')]?_0x74edef['go'](_0x5b482a('0x21be'),{'CompanyId':_0x3162f7['id']}):_0x2f731f[_0x5b482a('0x2276')]({'title':_0x2c752a[_0x5b482a('0x1b11')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x2c752a['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x8d1075){const _0x4bd004=_0xdd5114;_0x2f731f[_0x4bd004('0x5e8')]({'title':_0x8d1075['status']?_0x4bd004('0x15d1')+_0x8d1075[_0x4bd004('0x1b51')]+_0x4bd004('0x1b0b')+_0x8d1075[_0x4bd004('0x22ce')]:_0x4bd004('0x2292'),'msg':_0x8d1075[_0x4bd004('0x1b51')]?JSON[_0x4bd004('0x1be0')](_0x8d1075[_0x4bd004('0x11fc')]):_0x8d1075[_0x4bd004('0x17df')]()});});}function _0x2c7e21(){const _0x2e40cb=_0x2748a0;_0x74edef['go'](_0x2e40cb('0x1b67'),{},{'reload':_0x2e40cb('0x1b67')});}function _0xfda63a(){const _0x4f6593=_0x2748a0;_0x46f6af[_0x4f6593('0x27f6')][_0x4f6593('0x2740')]({'id':_0x3a2296[_0x4f6593('0x2033')]['id']},_0x3a2296[_0x4f6593('0x2033')])[_0x4f6593('0x1714')][_0x4f6593('0x2788')](function(){const _0x101bdd=_0x4f6593;_0x2f731f[_0x101bdd('0x173b')]({'title':_0x101bdd('0x1c35'),'msg':_0x3a2296['company'][_0x101bdd('0x1a8d')]?_0x3a2296[_0x101bdd('0x2033')][_0x101bdd('0x1a8d')]+_0x101bdd('0x6f8'):''});})[_0x4f6593('0x1cb5')](function(_0x3642b5){const _0x509da3=_0x4f6593;_0x2f731f[_0x509da3('0x5e8')]({'title':_0x3642b5[_0x509da3('0x1b51')]?_0x509da3('0x15d1')+_0x3642b5['status']+_0x509da3('0x1b0b')+_0x3642b5['statusText']:'SYSTEM:GETcmCompany','msg':_0x3642b5[_0x509da3('0x11fc')]?JSON['stringify'](_0x3642b5[_0x509da3('0x11fc')]):_0x3642b5['toString']()});});}}const _0x52decb=_0x1843c0;_0x253409[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0xe3a'),_0x34e79e('0x593'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x253409(_0x3aea73,_0x3d8db5,_0x10068a,_0xd5a19c,_0x23ec7b,_0x532df8,_0x30458a,_0x1d04c0,_0x268a53,_0x23a313,_0x2e60a2,_0x46e5e1,_0x49259c,_0x4b756d){const _0x2f8dd4=_0x34e79e,_0x372f04=this;_0x372f04[_0x2f8dd4('0x9cb')]=_0x2e60a2[_0x2f8dd4('0x24cc')](),_0x372f04['errors']=[],_0x372f04[_0x2f8dd4('0x1af0')]=_0x49259c,_0x372f04[_0x2f8dd4('0x130d')]=_0x46e5e1,_0x372f04[_0x2f8dd4('0xe28')]=_0x4b756d,_0x372f04[_0x2f8dd4('0x1193')]={},_0x372f04[_0x2f8dd4('0x18ad')]=_0x372f04[_0x2f8dd4('0x1af0')]&&_0x372f04['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x372f04[_0x2f8dd4('0x14e4')]=_0x2f8dd4('0xe08'),_0x372f04[_0x2f8dd4('0x19d2')]={'animation':0x320,'sort':!![],'onSort':function(){const _0x1bacb8=_0x2f8dd4;_0x3aea73[_0x1bacb8('0x191a')][_0x1bacb8('0x226a')]=![];}},_0x372f04[_0x2f8dd4('0x593')]=_0x268a53,_0x372f04[_0x2f8dd4('0xe3a')]=_0x1d04c0,_0x372f04[_0x2f8dd4('0xc15')]=![];!_0x372f04[_0x2f8dd4('0x593')]&&(_0x372f04[_0x2f8dd4('0x593')]={'type':_0x2f8dd4('0x16db'),'actionType':_0x2f8dd4('0x1f60')},_0x372f04[_0x2f8dd4('0x14e4')]=_0x2f8dd4('0x44'),_0x372f04['newGlobalCustomField']=!![]);_0x3aea73[_0x2f8dd4('0x1662')](_0x2f8dd4('0x1f62'),function(_0x4f9894,_0x28cbaa){const _0x2249b1=_0x2f8dd4;if(_0x4f9894!==_0x28cbaa)switch(_0x4f9894){case _0x2249b1('0x16db'):_0x372f04['globalCustomField'][_0x2249b1('0xc5')]='';break;case _0x2249b1('0x983'):_0x372f04[_0x2249b1('0x593')][_0x2249b1('0xc5')]=[];break;default:}}),_0x372f04[_0x2f8dd4('0x6c7')]=_0x55ced1,_0x372f04[_0x2f8dd4('0x26c8')]=_0x47d0bf,_0x372f04[_0x2f8dd4('0x1d89')]=_0x3866b7,_0x372f04[_0x2f8dd4('0x2601')]=_0xedf24e,_0x372f04[_0x2f8dd4('0x115b')]=_0x5b2cd6,_0x372f04['removeItem']=_0x190c8d,_0x372f04[_0x2f8dd4('0xa12')]=_0x3cc1d1,_0x372f04[_0x2f8dd4('0xca7')]=_0x23ff37;function _0x5b2cd6(_0x3cf334){const _0x51fe55=_0x2f8dd4;_0x3cf334['push']({'value':_0x51fe55('0x212c')}),_0x3aea73[_0x51fe55('0x191a')][_0x51fe55('0x226a')]=![];}function _0x190c8d(_0x1b3d43,_0x400bae){const _0xdcce04=_0x2f8dd4;_0x1b3d43[_0xdcce04('0x722')](_0x400bae,0x1),_0x3aea73[_0xdcce04('0x191a')]['$pristine']=![];}function _0x3cc1d1(_0x5bae32){const _0xcade26=_0x2f8dd4,_0x4322bf=_0x5bae32[_0xcade26('0x2566')];for(let _0xd619ec=0x0;_0xd619ec<_0x4322bf;_0xd619ec++){_0x5bae32[_0xcade26('0x722')](0x0,0x1);}_0x3aea73['globalCustomFieldForm'][_0xcade26('0x226a')]=![];}function _0x55ced1(){const _0xa6ee02=_0x2f8dd4;_0x372f04[_0xa6ee02('0x25be')]=[],_0x23a313[_0xa6ee02('0x1fbd')]['save'](_0x372f04['globalCustomField'])[_0xa6ee02('0x1714')][_0xa6ee02('0x2788')](function(_0x440f2b){const _0x35116f=_0xa6ee02;_0x372f04[_0x35116f('0xe3a')][_0x35116f('0xc51')](_0x440f2b['toJSON']()),_0x30458a['success']({'title':_0x35116f('0x162c'),'msg':_0x372f04['globalCustomField']['name']?_0x372f04[_0x35116f('0x593')][_0x35116f('0x1a8d')]+_0x35116f('0x1e4a'):''}),_0x23ff37(_0x440f2b);})['catch'](function(_0x4207ee){const _0x45b12c=_0xa6ee02;if(_0x4207ee[_0x45b12c('0x11fc')]&&_0x4207ee['data'][_0x45b12c('0x25be')]&&_0x4207ee[_0x45b12c('0x11fc')]['errors'][_0x45b12c('0x2566')]){_0x372f04['errors']=_0x4207ee[_0x45b12c('0x11fc')][_0x45b12c('0x25be')]||[{'message':_0x4207ee[_0x45b12c('0x17df')](),'type':_0x45b12c('0x1ef9')}];for(let _0x2f56a6=0x0;_0x2f56a6<_0x4207ee['data'][_0x45b12c('0x25be')][_0x45b12c('0x2566')];_0x2f56a6+=0x1){_0x30458a[_0x45b12c('0x5e8')]({'title':_0x4207ee['data']['errors'][_0x2f56a6]['type'],'msg':_0x4207ee['data'][_0x45b12c('0x25be')][_0x2f56a6][_0x45b12c('0x15e2')]});}}else _0x30458a['error']({'title':_0x4207ee[_0x45b12c('0x1b51')]?_0x45b12c('0x15d1')+_0x4207ee['status']+_0x45b12c('0x1b0b')+_0x4207ee[_0x45b12c('0x22ce')]:_0x45b12c('0x1ef9'),'msg':_0x4207ee[_0x45b12c('0x11fc')]?JSON['stringify'](_0x4207ee[_0x45b12c('0x11fc')][_0x45b12c('0x15e2')]):_0x4207ee['toString']()});});}function _0x47d0bf(){const _0x540339=_0x2f8dd4;_0x372f04[_0x540339('0x25be')]=[],_0x23a313[_0x540339('0x1fbd')]['update']({'id':_0x372f04[_0x540339('0x593')]['id']},_0x372f04[_0x540339('0x593')])['$promise'][_0x540339('0x2788')](function(_0x412e57){const _0x4fe4d4=_0x540339,_0x52f5a9=_0x283545()['find'](_0x372f04['globalCustomFields'],{'id':_0x412e57['id']});_0x52f5a9&&_0x283545()['merge'](_0x52f5a9,_0x283545()['pick'](_0x412e57[_0x4fe4d4('0x1cbf')](),_0x283545()[_0x4fe4d4('0x2163')](_0x52f5a9))),_0x30458a['success']({'title':_0x4fe4d4('0xd80'),'msg':_0x372f04[_0x4fe4d4('0x593')]['name']?_0x372f04[_0x4fe4d4('0x593')][_0x4fe4d4('0x1a8d')]+_0x4fe4d4('0x24cf'):''}),_0x23ff37(_0x412e57);})[_0x540339('0x1cb5')](function(_0x5747a4){const _0x3daed0=_0x540339;if(_0x5747a4['data']&&_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x25be')]&&_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x25be')][_0x3daed0('0x2566')]){_0x372f04[_0x3daed0('0x25be')]=_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x25be')]||[{'message':_0x5747a4[_0x3daed0('0x17df')](),'type':'api.cmCustomField.update'}];for(let _0x5215d2=0x0;_0x5215d2<_0x5747a4['data'][_0x3daed0('0x25be')]['length'];_0x5215d2++){_0x30458a[_0x3daed0('0x5e8')]({'title':_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x25be')][_0x5215d2][_0x3daed0('0x1d7')],'msg':_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x25be')][_0x5215d2][_0x3daed0('0x15e2')]});}}else _0x30458a[_0x3daed0('0x5e8')]({'title':_0x5747a4['status']?_0x3daed0('0x15d1')+_0x5747a4[_0x3daed0('0x1b51')]+_0x3daed0('0x1b0b')+_0x5747a4['statusText']:_0x3daed0('0x2647'),'msg':_0x5747a4['data']?JSON['stringify'](_0x5747a4[_0x3daed0('0x11fc')][_0x3daed0('0x15e2')]):_0x5747a4[_0x3daed0('0x17df')]()});});}function _0x3866b7(_0x2ffd7c){const _0xca656c=_0x2f8dd4;_0x372f04[_0xca656c('0x25be')]=[];const _0x452707=_0xd5a19c[_0xca656c('0x112e')]()[_0xca656c('0x14e4')](_0xca656c('0x458'))[_0xca656c('0x1c98')](_0xca656c('0x123c'))[_0xca656c('0x10bc')](_0xca656c('0x92'))['ok'](_0xca656c('0x2786'))[_0xca656c('0x1801')](_0xca656c('0x1481'))[_0xca656c('0x24d0')](_0x2ffd7c);_0xd5a19c[_0xca656c('0x2fa')](_0x452707)[_0xca656c('0x2788')](function(){const _0x4f7b0e=_0xca656c;_0x23a313[_0x4f7b0e('0x1fbd')]['delete']({'id':_0x372f04['globalCustomField']['id']})[_0x4f7b0e('0x1714')][_0x4f7b0e('0x2788')](function(){const _0x3c668d=_0x4f7b0e;_0x283545()['remove'](_0x372f04[_0x3c668d('0xe3a')],{'id':_0x372f04[_0x3c668d('0x593')]['id']}),_0x30458a[_0x3c668d('0x173b')]({'title':'GlobalCustomField\x20properly\x20deleted!','msg':(_0x372f04[_0x3c668d('0x593')]['name']||_0x3c668d('0x593'))+'\x20has\x20been\x20deleted!'}),_0x23ff37(_0x372f04[_0x3c668d('0x593')]);})[_0x4f7b0e('0x1cb5')](function(_0x28bbde){const _0x207575=_0x4f7b0e;if(_0x28bbde['data']&&_0x28bbde[_0x207575('0x11fc')]['errors']&&_0x28bbde[_0x207575('0x11fc')][_0x207575('0x25be')][_0x207575('0x2566')]){_0x372f04[_0x207575('0x25be')]=_0x28bbde[_0x207575('0x11fc')][_0x207575('0x25be')]||[{'message':_0x28bbde[_0x207575('0x17df')](),'type':'api.cmCustomField.delete'}];for(let _0x54efd4=0x0;_0x54efd4<_0x28bbde[_0x207575('0x11fc')][_0x207575('0x25be')][_0x207575('0x2566')];_0x54efd4++){_0x30458a[_0x207575('0x5e8')]({'title':_0x28bbde[_0x207575('0x11fc')][_0x207575('0x25be')][_0x54efd4][_0x207575('0x1d7')],'msg':_0x28bbde[_0x207575('0x11fc')][_0x207575('0x25be')][_0x54efd4][_0x207575('0x15e2')]});}}else _0x30458a[_0x207575('0x5e8')]({'title':_0x28bbde[_0x207575('0x1b51')]?_0x207575('0x15d1')+_0x28bbde['status']+_0x207575('0x1b0b')+_0x28bbde[_0x207575('0x22ce')]:_0x207575('0xadb'),'msg':_0x28bbde['data']?JSON[_0x207575('0x1be0')](_0x28bbde[_0x207575('0x11fc')][_0x207575('0x15e2')]):_0x28bbde[_0x207575('0x15e2')]||_0x28bbde[_0x207575('0x17df')]()});});},function(){});}function _0xedf24e(_0x2264d2){return _0x2264d2===null?undefined:new Date(_0x2264d2);}function _0x23ff37(_0x2f1cbd){_0xd5a19c['hide'](_0x2f1cbd);}}const _0x2a334f=_0x253409,_0x15f588=_0x18dd13['p']+_0x34e79e('0x257a');_0x3f872a[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0xe3a'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x3f872a(_0x561853,_0x1c1913,_0x23b824,_0x57ab5e,_0x5949b5,_0x54aa9e,_0x35fa7c,_0xf35301,_0x19a24f,_0x26a9ef,_0x56aa08,_0x13f5d7,_0x2b83fe,_0x852d73,_0x24b0ff,_0x22b803,_0x42c485){const _0x42179e=_0x34e79e,_0x24b101=this;_0x24b101[_0x42179e('0x130d')]=_0x22b803,_0x24b101[_0x42179e('0x1af0')]=_0x42c485,_0x24b101[_0x42179e('0x9cb')]=_0x24b0ff[_0x42179e('0x24cc')](),_0x24b101[_0x42179e('0xe3a')]=_0x19a24f||{'count':0x0,'rows':[]},_0x24b101['userProfile']=_0x26a9ef,_0x24b101[_0x42179e('0xec9')]=_0x56aa08&&_0x56aa08[_0x42179e('0x338')]==0x1?_0x56aa08[_0x42179e('0x25df')][0x0]:null,_0x24b101[_0x42179e('0xe28')]=_0x24b0ff[_0x42179e('0x157e')](_0x24b101['userProfileSection']?_0x24b101[_0x42179e('0xec9')][_0x42179e('0xe28')]:null),_0x24b101[_0x42179e('0x26a9')]=_0x42179e('0xe3a'),_0x24b101[_0x42179e('0x2278')]='',_0x24b101[_0x42179e('0x25e2')]=null,_0x24b101[_0x42179e('0xf13')]=[],_0x24b101[_0x42179e('0x135a')]={'fields':_0x42179e('0x1da0'),'sort':'-updatedAt','ListId':'null','limit':0xa,'page':0x1},_0x24b101['arraytype']=_0x283545()[_0x42179e('0x13cf')]([{'option':_0x42179e('0xc39'),'value':_0x42179e('0x1b8d')},{'option':_0x42179e('0x8c6'),'value':_0x42179e('0x1f8b')},{'option':'Number','value':_0x42179e('0xac1')},{'option':_0x42179e('0x15a3'),'value':_0x42179e('0xe02')},{'option':_0x42179e('0x2314'),'value':_0x42179e('0x2575')}],function(_0x4a1747){const _0x5d08c6=_0x42179e;return _0x283545()[_0x5d08c6('0x10a4')](_0x4a1747[_0x5d08c6('0x49')],new RegExp('\x27','g'),'');}),_0x24b101[_0x42179e('0x1ecd')]=_0x283545()[_0x42179e('0x13cf')]([{'option':'Voice','value':_0x42179e('0x1f10')}],function(_0x50bb98){const _0x4cb7a6=_0x42179e;return _0x283545()[_0x4cb7a6('0x10a4')](_0x50bb98[_0x4cb7a6('0x49')],new RegExp('\x27','g'),'');}),_0x24b101[_0x42179e('0x23af')]=_0xd2c1fe,_0x24b101[_0x42179e('0x1e5')]=_0x2a843d,_0x24b101[_0x42179e('0x173b')]=_0x15a862,_0x24b101['getGlobalCustomFields']=_0x489d50,_0x24b101[_0x42179e('0x209a')]=_0x5e9599,_0x24b101[_0x42179e('0x1d89')]=_0x1c4689,_0x24b101[_0x42179e('0x1644')]=_0x78d4b9,_0x24b101['deleteSelectedGlobalCustomFields']=_0x21cf3b,_0x24b101[_0x42179e('0x10b9')]=_0xcafbcd,_0x24b101['selectAllGlobalCustomFields']=_0x353e91;function _0xd2c1fe(_0x5211ab,_0x19d32a){const _0x334b2d=_0x42179e;_0x5949b5[_0x334b2d('0x2fa')]({'controller':_0x334b2d('0x196f'),'controllerAs':'vm','templateUrl':_0x15f588,'parent':angular[_0x334b2d('0x16b1')](_0x54aa9e[_0x334b2d('0x945')]),'targetEvent':_0x19d32a,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x5211ab,'globalCustomFields':_0x24b101[_0x334b2d('0xe3a')][_0x334b2d('0x25df')],'license':_0x24b101[_0x334b2d('0x130d')],'setting':null,'crudPermissions':_0x24b101['crudPermissions']}});}function _0x2a843d(_0x28f0fa,_0x36edf6){const _0x45aa7c=_0x42179e,_0x3f8351=_0x5949b5[_0x45aa7c('0x112e')]()[_0x45aa7c('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x45aa7c('0x114')](_0x45aa7c('0x593'))+'?')[_0x45aa7c('0x93e')](_0x45aa7c('0x1670')+(_0x28f0fa[_0x45aa7c('0x1a8d')]||'globalCustomField')+_0x45aa7c('0x229e')+_0x45aa7c('0x27c7'))[_0x45aa7c('0x10bc')](_0x45aa7c('0x1169'))[_0x45aa7c('0x24d0')](_0x36edf6)['ok']('OK')['cancel'](_0x45aa7c('0x1d8d'));_0x5949b5[_0x45aa7c('0x2fa')](_0x3f8351)[_0x45aa7c('0x2788')](function(){_0x1c4689(_0x28f0fa);},function(){const _0x592ae1=_0x45aa7c;console[_0x592ae1('0x10df')](_0x592ae1('0x1d8d'));});}let _0x5857ab=!![],_0x5294ca=0x1;_0x561853['$watch']('vm.query.filter',function(_0x122663,_0x468c0d){const _0x14cdfb=_0x42179e;_0x5857ab?_0x35fa7c(function(){_0x5857ab=![];}):(!_0x468c0d&&(_0x5294ca=_0x24b101[_0x14cdfb('0x135a')][_0x14cdfb('0x23f5')]),_0x122663!==_0x468c0d&&(_0x24b101[_0x14cdfb('0x135a')][_0x14cdfb('0x23f5')]=0x1),!_0x122663&&(_0x24b101['query'][_0x14cdfb('0x23f5')]=_0x5294ca),_0x24b101[_0x14cdfb('0x2515')]());});function _0x15a862(_0x43cd0d){const _0x3a6499=_0x42179e;_0x24b101[_0x3a6499('0xe3a')]=_0x43cd0d||{'count':0x0,'rows':[]};}function _0x489d50(){const _0x4d4503=_0x42179e;_0x24b101[_0x4d4503('0x135a')][_0x4d4503('0x19e')]=(_0x24b101['query'][_0x4d4503('0x23f5')]-0x1)*_0x24b101[_0x4d4503('0x135a')][_0x4d4503('0x68e')],_0x24b0ff[_0x4d4503('0x1516')](_0x4d4503('0xe23'))?_0x24b101[_0x4d4503('0x1808')]=_0x13f5d7['cmCustomField'][_0x4d4503('0x1335')](_0x24b101[_0x4d4503('0x135a')],_0x15a862)['$promise']:(_0x24b101[_0x4d4503('0x135a')]['id']=_0x24b101[_0x4d4503('0x63c')]['id'],_0x24b101[_0x4d4503('0x135a')][_0x4d4503('0xb13')]=_0x4d4503('0x22c8'),_0x24b101[_0x4d4503('0x1808')]=_0x13f5d7[_0x4d4503('0x63c')]['getResources'](_0x24b101['query'],_0x15a862)['$promise']);}function _0x5e9599(_0x252e4d,_0x2ecbb4){const _0xf813a4=_0x42179e;_0x5949b5[_0xf813a4('0x2fa')]({'controller':_0xf813a4('0x196f'),'controllerAs':'vm','templateUrl':_0x15f588,'parent':angular[_0xf813a4('0x16b1')](_0x54aa9e[_0xf813a4('0x945')]),'targetEvent':_0x252e4d,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x2ecbb4,'globalCustomFields':_0x24b101[_0xf813a4('0xe3a')][_0xf813a4('0x25df')],'license':_0x24b101[_0xf813a4('0x130d')],'setting':_0x24b101[_0xf813a4('0x1af0')],'crudPermissions':_0x24b101[_0xf813a4('0xe28')]}});}function _0x1c4689(_0x221786){const _0x799109=_0x42179e;_0x13f5d7['cmCustomField'][_0x799109('0x17c4')]({'id':_0x221786['id']})[_0x799109('0x1714')][_0x799109('0x2788')](function(){const _0x1b26a1=_0x799109;_0x283545()[_0x1b26a1('0x1a90')](_0x24b101[_0x1b26a1('0xe3a')][_0x1b26a1('0x25df')],{'id':_0x221786['id']}),_0x24b101[_0x1b26a1('0xe3a')][_0x1b26a1('0x338')]-=0x1,!_0x24b101[_0x1b26a1('0xe3a')][_0x1b26a1('0x25df')][_0x1b26a1('0x2566')]&&_0x24b101[_0x1b26a1('0x2515')](),_0x852d73[_0x1b26a1('0x173b')]({'title':_0x283545()[_0x1b26a1('0x114')]('GlobalCustomField')+_0x1b26a1('0x20db'),'msg':_0x221786[_0x1b26a1('0x1a8d')]?_0x221786[_0x1b26a1('0x1a8d')]+_0x1b26a1('0x14d4'):''});})[_0x799109('0x1cb5')](function(_0x1e6a49){const _0x5010d7=_0x799109;if(_0x1e6a49[_0x5010d7('0x11fc')]&&_0x1e6a49['data'][_0x5010d7('0x25be')]&&_0x1e6a49[_0x5010d7('0x11fc')][_0x5010d7('0x25be')][_0x5010d7('0x2566')]){_0x24b101[_0x5010d7('0x25be')]=_0x1e6a49[_0x5010d7('0x11fc')][_0x5010d7('0x25be')]||[{'message':_0x1e6a49[_0x5010d7('0x17df')](),'type':'SYSTEM:DELETEcmCustomField'}];for(let _0xd9dc5c=0x0;_0xd9dc5c<_0x1e6a49['data'][_0x5010d7('0x25be')][_0x5010d7('0x2566')];_0xd9dc5c++){_0x852d73['error']({'title':_0x1e6a49[_0x5010d7('0x11fc')][_0x5010d7('0x25be')][_0xd9dc5c]['type'],'msg':_0x1e6a49[_0x5010d7('0x11fc')][_0x5010d7('0x25be')][_0xd9dc5c]['message']});}}else _0x852d73[_0x5010d7('0x5e8')]({'title':_0x1e6a49['status']?_0x5010d7('0x15d1')+_0x1e6a49[_0x5010d7('0x1b51')]+_0x5010d7('0x1b0b')+_0x1e6a49[_0x5010d7('0x22ce')]:'SYSTEM:DELETEcmCustomField','msg':_0x1e6a49[_0x5010d7('0x11fc')]?JSON[_0x5010d7('0x1be0')](_0x1e6a49['data'][_0x5010d7('0x15e2')]):_0x1e6a49[_0x5010d7('0x15e2')]||_0x1e6a49[_0x5010d7('0x17df')]()});});}function _0x78d4b9(){const _0x47685e=_0x42179e,_0x40ea57=angular[_0x47685e('0x2669')](_0x24b101[_0x47685e('0xf13')]);return _0x24b101[_0x47685e('0xf13')]=[],_0x40ea57;}function _0x21cf3b(_0x561c22){const _0x61bb8e=_0x42179e,_0x584f39=_0x5949b5['confirm']()[_0x61bb8e('0x14e4')](_0x61bb8e('0xae7'))['htmlContent'](_0x61bb8e('0x1670')+_0x24b101['selectedGlobalCustomFields'][_0x61bb8e('0x2566')]+'\x20selected'+_0x61bb8e('0x27c7'))[_0x61bb8e('0x10bc')](_0x61bb8e('0xac0'))[_0x61bb8e('0x24d0')](_0x561c22)['ok']('OK')[_0x61bb8e('0x1801')](_0x61bb8e('0x1d8d'));_0x5949b5[_0x61bb8e('0x2fa')](_0x584f39)[_0x61bb8e('0x2788')](function(){const _0x215602=_0x61bb8e;_0x24b101[_0x215602('0xf13')]['forEach'](function(_0x117b82){_0x1c4689(_0x117b82);}),_0x24b101[_0x215602('0xf13')]=[];});}function _0xcafbcd(){const _0x1925d9=_0x42179e;_0x24b101[_0x1925d9('0xf13')]=[];}function _0x353e91(){const _0x1d28b5=_0x42179e;_0x24b101[_0x1d28b5('0xf13')]=_0x24b101[_0x1d28b5('0xe3a')][_0x1d28b5('0x25df')];}}const _0x158251=_0x3f872a;_0x2e0f7b['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location','$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x2'),'list',_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x2e0f7b(_0x5a10d1,_0x146f95,_0x2cc04a,_0x1287b5,_0x45a8df,_0x21240c,_0x1770a1,_0x1dc96b,_0x2b4f07,_0x5e2c36,_0x384f02,_0x26984b,_0x521d30,_0x1c5173){const _0x27e319=_0x34e79e,_0x59aa23=this;_0x59aa23[_0x27e319('0x9cb')]=_0x384f02['getCurrentUser'](),_0x59aa23[_0x27e319('0x25be')]=[],_0x59aa23[_0x27e319('0x1af0')]=_0x521d30,_0x59aa23[_0x27e319('0x130d')]=_0x26984b,_0x59aa23[_0x27e319('0xe28')]=_0x1c5173,_0x59aa23[_0x27e319('0x1193')]={},_0x59aa23[_0x27e319('0x18ad')]=_0x59aa23[_0x27e319('0x1af0')]&&_0x59aa23[_0x27e319('0x1af0')][_0x27e319('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59aa23[_0x27e319('0x14e4')]=_0x27e319('0x1cef'),_0x59aa23[_0x27e319('0x4b2')]=angular['copy'](_0x2b4f07),_0x59aa23[_0x27e319('0x2')]=_0x1dc96b,_0x59aa23['newList']=![];!_0x59aa23[_0x27e319('0x4b2')]&&(_0x59aa23['list']={},_0x59aa23[_0x27e319('0x14e4')]=_0x27e319('0x16ce'),_0x59aa23[_0x27e319('0xfcf')]=!![]);_0x59aa23['addNewList']=_0x2bd639,_0x59aa23['saveList']=_0x4607e5,_0x59aa23[_0x27e319('0x19fb')]=_0x235f87,_0x59aa23['getDateFromString']=_0x1ebafd,_0x59aa23[_0x27e319('0xca7')]=_0x5d62d9;function _0x2bd639(){const _0x1c05e0=_0x27e319;_0x59aa23[_0x1c05e0('0x25be')]=[],_0x5e2c36[_0x1c05e0('0x1ba4')][_0x1c05e0('0xbd0')](_0x59aa23[_0x1c05e0('0x4b2')])[_0x1c05e0('0x1714')]['then'](function(_0x5537d7){const _0xa4765c=_0x1c05e0;_0x59aa23[_0xa4765c('0x2')][_0xa4765c('0xc51')](_0x5537d7[_0xa4765c('0x1cbf')]()),_0x1770a1[_0xa4765c('0x173b')]({'title':_0xa4765c('0x1134'),'msg':_0x59aa23[_0xa4765c('0x4b2')][_0xa4765c('0x1a8d')]?_0x59aa23[_0xa4765c('0x4b2')]['name']+_0xa4765c('0x1e4a'):''}),_0x5d62d9(_0x5537d7);})[_0x1c05e0('0x1cb5')](function(_0x171f08){const _0x189e5c=_0x1c05e0;if(_0x171f08[_0x189e5c('0x11fc')]&&_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x25be')]&&_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x25be')][_0x189e5c('0x2566')]){_0x59aa23[_0x189e5c('0x25be')]=_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x25be')]||[{'message':_0x171f08['toString'](),'type':'api.cmList.save'}];for(let _0x32e398=0x0;_0x32e398<_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x25be')][_0x189e5c('0x2566')];_0x32e398+=0x1){_0x1770a1[_0x189e5c('0x5e8')]({'title':_0x171f08['data'][_0x189e5c('0x25be')][_0x32e398][_0x189e5c('0x1d7')],'msg':_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x25be')][_0x32e398][_0x189e5c('0x15e2')]});}}else _0x1770a1['error']({'title':_0x171f08[_0x189e5c('0x1b51')]?_0x189e5c('0x15d1')+_0x171f08[_0x189e5c('0x1b51')]+_0x189e5c('0x1b0b')+_0x171f08[_0x189e5c('0x22ce')]:_0x189e5c('0x21ec'),'msg':_0x171f08[_0x189e5c('0x11fc')]?JSON[_0x189e5c('0x1be0')](_0x171f08[_0x189e5c('0x11fc')][_0x189e5c('0x15e2')]):_0x171f08['toString']()});});}function _0x4607e5(){const _0x548550=_0x27e319;_0x59aa23[_0x548550('0x25be')]=[],_0x5e2c36[_0x548550('0x1ba4')][_0x548550('0x2740')]({'id':_0x59aa23[_0x548550('0x4b2')]['id']},_0x59aa23[_0x548550('0x4b2')])[_0x548550('0x1714')][_0x548550('0x2788')](function(_0x5e65fb){const _0xf83d71=_0x548550,_0x212bc6=_0x283545()['find'](_0x59aa23[_0xf83d71('0x2')],{'id':_0x5e65fb['id']});_0x212bc6&&_0x283545()[_0xf83d71('0x2503')](_0x212bc6,_0x283545()[_0xf83d71('0x41b')](_0x5e65fb[_0xf83d71('0x1cbf')](),_0x283545()[_0xf83d71('0x2163')](_0x212bc6))),_0x1770a1['success']({'title':'List\x20properly\x20saved!','msg':_0x59aa23[_0xf83d71('0x4b2')][_0xf83d71('0x1a8d')]?_0x59aa23['list']['name']+_0xf83d71('0x24cf'):''}),_0x5d62d9(_0x5e65fb);})['catch'](function(_0x3a2e74){const _0x457b63=_0x548550;if(_0x3a2e74[_0x457b63('0x11fc')]&&_0x3a2e74['data']['errors']&&_0x3a2e74[_0x457b63('0x11fc')][_0x457b63('0x25be')][_0x457b63('0x2566')]){_0x59aa23[_0x457b63('0x25be')]=_0x3a2e74[_0x457b63('0x11fc')]['errors']||[{'message':_0x3a2e74[_0x457b63('0x17df')](),'type':_0x457b63('0x479')}];for(let _0x312fdf=0x0;_0x312fdf<_0x3a2e74['data'][_0x457b63('0x25be')][_0x457b63('0x2566')];_0x312fdf++){_0x1770a1['error']({'title':_0x3a2e74[_0x457b63('0x11fc')]['errors'][_0x312fdf][_0x457b63('0x1d7')],'msg':_0x3a2e74['data'][_0x457b63('0x25be')][_0x312fdf]['message']});}}else _0x1770a1[_0x457b63('0x5e8')]({'title':_0x3a2e74[_0x457b63('0x1b51')]?'API:'+_0x3a2e74['status']+_0x457b63('0x1b0b')+_0x3a2e74['statusText']:_0x457b63('0x479'),'msg':_0x3a2e74[_0x457b63('0x11fc')]?JSON[_0x457b63('0x1be0')](_0x3a2e74[_0x457b63('0x11fc')]['message']):_0x3a2e74[_0x457b63('0x17df')]()});});}function _0x235f87(_0x3808ec){const _0x5458ab=_0x27e319;_0x59aa23[_0x5458ab('0x25be')]=[];const _0x16f661=_0x1287b5[_0x5458ab('0x112e')]()[_0x5458ab('0x14e4')](_0x5458ab('0x458'))[_0x5458ab('0x1c98')](_0x5458ab('0x1aeb'))['ariaLabel'](_0x5458ab('0x162a'))['ok'](_0x5458ab('0x2786'))['cancel'](_0x5458ab('0x1481'))[_0x5458ab('0x24d0')](_0x3808ec);_0x1287b5[_0x5458ab('0x2fa')](_0x16f661)[_0x5458ab('0x2788')](function(){const _0x5adc0a=_0x5458ab;_0x5e2c36[_0x5adc0a('0x1ba4')][_0x5adc0a('0x17c4')]({'id':_0x59aa23['list']['id']})[_0x5adc0a('0x1714')][_0x5adc0a('0x2788')](function(){const _0x50a57d=_0x5adc0a;_0x283545()[_0x50a57d('0x1a90')](_0x59aa23['lists'],{'id':_0x59aa23[_0x50a57d('0x4b2')]['id']}),_0x1770a1[_0x50a57d('0x173b')]({'title':_0x50a57d('0x1dd1'),'msg':(_0x59aa23[_0x50a57d('0x4b2')][_0x50a57d('0x1a8d')]||_0x50a57d('0x4b2'))+_0x50a57d('0x14d4')}),_0x5d62d9(_0x59aa23[_0x50a57d('0x4b2')]);})['catch'](function(_0x363355){const _0x189f38=_0x5adc0a;if(_0x363355[_0x189f38('0x11fc')]&&_0x363355[_0x189f38('0x11fc')][_0x189f38('0x25be')]&&_0x363355[_0x189f38('0x11fc')][_0x189f38('0x25be')][_0x189f38('0x2566')]){_0x59aa23['errors']=_0x363355[_0x189f38('0x11fc')]['errors']||[{'message':_0x363355['toString'](),'type':_0x189f38('0x2485')}];for(let _0x1a108e=0x0;_0x1a108e<_0x363355[_0x189f38('0x11fc')][_0x189f38('0x25be')][_0x189f38('0x2566')];_0x1a108e++){_0x1770a1[_0x189f38('0x5e8')]({'title':_0x363355[_0x189f38('0x11fc')][_0x189f38('0x25be')][_0x1a108e][_0x189f38('0x1d7')],'msg':_0x363355[_0x189f38('0x11fc')][_0x189f38('0x25be')][_0x1a108e]['message']});}}else _0x1770a1[_0x189f38('0x5e8')]({'title':_0x363355[_0x189f38('0x1b51')]?_0x189f38('0x15d1')+_0x363355['status']+_0x189f38('0x1b0b')+_0x363355[_0x189f38('0x22ce')]:_0x189f38('0x2485'),'msg':_0x363355['data']?JSON[_0x189f38('0x1be0')](_0x363355[_0x189f38('0x11fc')][_0x189f38('0x15e2')]):_0x363355[_0x189f38('0x15e2')]||_0x363355[_0x189f38('0x17df')]()});});},function(){});}function _0x1ebafd(_0x40a65b){return _0x40a65b===null?undefined:new Date(_0x40a65b);}function _0x5d62d9(_0x4db951){_0x1287b5['hide'](_0x4db951);}}const _0x27f810=_0x2e0f7b;_0x14db19['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x4b2'),'lists',_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x14db19(_0x58b41c,_0x263bff,_0x2bcdf7,_0x241444,_0x222910,_0x3ccb0a,_0x1d03b1,_0x36241a,_0x6a6bc6,_0x551d95){const _0x1eb22f=_0x34e79e,_0x28d1b7=this;_0x28d1b7[_0x1eb22f('0x9cb')]=_0x6a6bc6['getCurrentUser'](),_0x28d1b7[_0x1eb22f('0x4b2')]=_0x222910,_0x28d1b7['crudPermissions']=_0x551d95,_0x28d1b7['realtime']=_0x1d03b1,_0x28d1b7[_0x1eb22f('0x117b')]=[],_0x28d1b7[_0x1eb22f('0x73d')]=[],_0x28d1b7['selectedItems']=[],_0x28d1b7[_0x1eb22f('0x12d9')]=[],_0x28d1b7[_0x1eb22f('0xd0d')]=[],_0x28d1b7[_0x1eb22f('0x2677')]=![],_0x28d1b7[_0x1eb22f('0x122e')]=_0x51d338,_0x28d1b7[_0x1eb22f('0x1f8d')]=_0xd72065,_0x28d1b7[_0x1eb22f('0xca7')]=_0x1f2e90,_0x28d1b7[_0x1eb22f('0x121')]={'readOnly':!_0x28d1b7[_0x1eb22f('0xe28')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1eb22f('0x1a8d'),'line1':'fullname','line2':[_0x1eb22f('0x1a8d'),_0x1eb22f('0x2838')],'line3':'','labelAll':_0x36241a['instant'](_0x1eb22f('0xd85')),'labelSelected':_0x36241a[_0x1eb22f('0x1b11')](_0x1eb22f('0x53d')),'transferCallback':function(){const _0x5cde67=_0x1eb22f,_0x37b9d1=_0x283545()[_0x5cde67('0x12d1')](_0x28d1b7['startingSelectedItems'],_0x28d1b7[_0x5cde67('0x283f')],'id');_0x28d1b7[_0x5cde67('0x2677')]=_0x283545()[_0x5cde67('0x213d')](_0x37b9d1)?![]:!![];}};function _0x51d338(){const _0xec0bcb=_0x1eb22f;return _0x6a6bc6[_0xec0bcb('0x1516')](_0xec0bcb('0xe23'))?_0x2d498f()[_0xec0bcb('0x1cb5')](function(_0x290cbf){const _0x2f879b=_0xec0bcb;_0x2bcdf7[_0x2f879b('0x5e8')]({'title':_0x290cbf['status']?_0x2f879b('0x15d1')+_0x290cbf['status']+'\x20-\x20'+_0x290cbf['statusText']:'SYSTEM:GET_AGENTS','msg':_0x290cbf[_0x2f879b('0x1b51')]?JSON['stringify'](_0x290cbf[_0x2f879b('0x11fc')]):_0x290cbf[_0x2f879b('0x17df')]()});}):_0x47443a()[_0xec0bcb('0x2788')](function(_0x7c356c){const _0x1212b3=_0xec0bcb;return _0x28d1b7[_0x1212b3('0xb13')]=_0x7c356c,_0x2d498f();})[_0xec0bcb('0x1cb5')](function(_0x5ca811){const _0x1648fd=_0xec0bcb;_0x2bcdf7[_0x1648fd('0x5e8')]({'title':_0x5ca811['status']?'API:'+_0x5ca811['status']+_0x1648fd('0x1b0b')+_0x5ca811[_0x1648fd('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x5ca811[_0x1648fd('0x1b51')]?JSON['stringify'](_0x5ca811[_0x1648fd('0x11fc')]):_0x5ca811['toString']()});});}function _0x47443a(){return _0x263bff(function(_0xdae4a2,_0x1e9418){const _0xa2e712=a0_0x14e7;_0x241444[_0xa2e712('0xec9')][_0xa2e712('0x1335')]({'userProfileId':_0x28d1b7[_0xa2e712('0x9cb')][_0xa2e712('0x237f')],'name':_0xa2e712('0x1f72')})['$promise'][_0xa2e712('0x2788')](function(_0x108e1f){const _0x5a9db7=_0xa2e712,_0x343731=_0x108e1f&&_0x108e1f[_0x5a9db7('0x25df')]?_0x108e1f[_0x5a9db7('0x25df')][0x0]:null;_0xdae4a2(_0x343731);})[_0xa2e712('0x1cb5')](function(_0x428d09){_0x1e9418(_0x428d09);});});}function _0x2d498f(){return _0x263bff(function(_0x45100a,_0x4d4c28){const _0x4b83fa=a0_0x14e7;return _0x45b7b7()[_0x4b83fa('0x2788')](function(_0x29e6d9){const _0x1e291e=_0x4b83fa;return _0x28d1b7[_0x1e291e('0x117b')]=_0x29e6d9[_0x1e291e('0x25df')]?_0x29e6d9[_0x1e291e('0x25df')]:[],_0x6a6bc6[_0x1e291e('0x1516')](_0x1e291e('0xe23'))?_0x29e6d9:_0x28d1b7[_0x1e291e('0xb13')]?_0x28d1b7['section'][_0x1e291e('0x1c0a')]?_0x29e6d9:_0x36552c():null;})[_0x4b83fa('0x2788')](function(_0x2c1b4b){const _0x3bfb6e=_0x4b83fa,_0x233976=_0x2c1b4b&&_0x2c1b4b[_0x3bfb6e('0x25df')]?_0x2c1b4b[_0x3bfb6e('0x25df')]:[];return _0x28d1b7[_0x3bfb6e('0x73d')]=_0x283545()[_0x3bfb6e('0x155d')](_0x233976,function(_0x368137){const _0x4a3bbb=_0x3bfb6e;return _0x283545()[_0x4a3bbb('0x20e8')](_0x28d1b7['items'],{'id':_0x6a6bc6[_0x4a3bbb('0x1516')](_0x4a3bbb('0xe23'))||_0x28d1b7[_0x4a3bbb('0xb13')][_0x4a3bbb('0x1c0a')]?_0x368137['id']:_0x368137[_0x4a3bbb('0x2707')]});}),_0x28d1b7['startingAllowedItems']=angular[_0x3bfb6e('0x2669')](_0x28d1b7[_0x3bfb6e('0x73d')]),_0x28d1b7[_0x3bfb6e('0x117b')][_0x3bfb6e('0x1534')](function(_0x25441c){const _0x69e7bf=_0x3bfb6e,_0x58d874=_0x283545()[_0x69e7bf('0x20e8')](_0x28d1b7[_0x69e7bf('0x73d')],{'id':_0x25441c['id']});_0x6a6bc6[_0x69e7bf('0x1516')](_0x69e7bf('0xe23'))?_0x25441c[_0x69e7bf('0x68d')]=!![]:_0x25441c[_0x69e7bf('0x68d')]=typeof _0x58d874!==_0x69e7bf('0xedb')?!![]:![];}),_0x118319();})['then'](function(_0xcd399){const _0x4e06ca=_0x4b83fa,_0xa4752e=_0xcd399&&_0xcd399['rows']?_0xcd399[_0x4e06ca('0x25df')]:[];_0x28d1b7['selectedItems']=_0x283545()[_0x4e06ca('0x155d')](_0xa4752e,function(_0x1a8202){const _0x304b3b=_0x4e06ca,_0x33a714=_0x283545()[_0x304b3b('0x20e8')](_0x28d1b7[_0x304b3b('0x117b')],{'id':_0x1a8202['id']});return _0x33a714['penalty']=_0x1a8202[_0x304b3b('0x281')]?_0x304b3b('0x1b9d')+_0x1a8202[_0x304b3b('0x281')]['penalty']:'',_0x33a714[_0x304b3b('0x2838')]=typeof _0x1a8202[_0x304b3b('0x2838')]!=='undefined'?'<'+_0x1a8202[_0x304b3b('0x2838')]+'>':'',_0x33a714;}),_0x28d1b7[_0x4e06ca('0xd0d')]=angular['copy'](_0x28d1b7['selectedItems']),_0x28d1b7[_0x4e06ca('0x121')][_0x4e06ca('0x283f')]=_0x28d1b7[_0x4e06ca('0x283f')],_0x28d1b7['dualMultiselectOptions']['items']=_0x283545()['differenceBy'](_0x28d1b7[_0x4e06ca('0x73d')],_0x28d1b7[_0x4e06ca('0x121')]['selectedItems'],'id'),_0x45100a();})[_0x4b83fa('0x1cb5')](function(_0x1052b7){_0x4d4c28(_0x1052b7);});});}function _0x36552c(){return _0x263bff(function(_0x26b3e7,_0x1204c9){const _0x398688=a0_0x14e7;return _0x241444['userProfileResource'][_0x398688('0x1335')]({'sectionId':_0x28d1b7['section']['id'],'nolimit':!![]})['$promise']['then'](function(_0x380fa3){_0x26b3e7(_0x380fa3);})['catch'](function(_0x2aef06){_0x1204c9(_0x2aef06);});});}function _0x118319(){return _0x263bff(function(_0x323bf4,_0x57231a){const _0x35dff1=a0_0x14e7;return _0x241444[_0x35dff1('0x1ba4')][_0x35dff1('0x19db')]({'id':_0x28d1b7[_0x35dff1('0x4b2')]['id'],'fields':_0x35dff1('0x1d32'),'nolimit':!![],'role':_0x35dff1('0x188b')})['$promise']['then'](function(_0x21fe43){_0x323bf4(_0x21fe43);})[_0x35dff1('0x1cb5')](function(_0x3f9d26){_0x57231a(_0x3f9d26);});});}function _0x45b7b7(){return _0x263bff(function(_0x2999b8,_0x501050){const _0x14c38f=a0_0x14e7;return _0x241444[_0x14c38f('0x1e6a')][_0x14c38f('0x1335')]({'fields':_0x14c38f('0x1d32'),'nolimit':!![],'role':_0x14c38f('0x188b')})[_0x14c38f('0x1714')][_0x14c38f('0x2788')](function(_0x142c7e){_0x2999b8(_0x142c7e);})[_0x14c38f('0x1cb5')](function(_0x597e1e){_0x501050(_0x597e1e);});});}function _0x22d738(_0x38eb93){return _0x263bff(function(_0x5ce1aa,_0x140e6c){const _0x5d3284=a0_0x14e7;_0x283545()[_0x5d3284('0x213d')](_0x38eb93)?_0x5ce1aa():_0x241444[_0x5d3284('0x1ba4')][_0x5d3284('0x588')]({'id':_0x28d1b7['list']['id'],'ids':_0x283545()[_0x5d3284('0x155d')](_0x38eb93,'id')})['$promise'][_0x5d3284('0x2788')](function(){_0x5ce1aa();})[_0x5d3284('0x1cb5')](function(_0x41da44){_0x140e6c(_0x41da44);});});}function _0x20be26(_0x191bcd){return _0x263bff(function(_0x2d6710,_0x19c822){const _0x349129=a0_0x14e7;_0x283545()[_0x349129('0x213d')](_0x191bcd)?_0x2d6710():_0x241444['cmList'][_0x349129('0x1d72')]({'id':_0x28d1b7[_0x349129('0x4b2')]['id'],'ids':_0x283545()[_0x349129('0x155d')](_0x191bcd,'id')})[_0x349129('0x1714')]['then'](function(){_0x2d6710();})[_0x349129('0x1cb5')](function(_0x2a133c){_0x19c822(_0x2a133c);});});}function _0xd72065(){const _0x2a01fb=_0x1eb22f,_0x39c5eb=_0x283545()['differenceBy'](_0x28d1b7[_0x2a01fb('0xd0d')],_0x28d1b7[_0x2a01fb('0x283f')],'id'),_0x13e071=_0x283545()[_0x2a01fb('0x432')](_0x28d1b7[_0x2a01fb('0x283f')],_0x28d1b7[_0x2a01fb('0xd0d')],'id');return _0x20be26(_0x39c5eb)[_0x2a01fb('0x2788')](function(){return _0x22d738(_0x13e071);})[_0x2a01fb('0x2788')](function(){const _0x193984=_0x2a01fb;_0x28d1b7[_0x193984('0x2677')]=![],_0x28d1b7['startingAllowedItems']=angular[_0x193984('0x2669')](_0x28d1b7['allowedItems']),_0x28d1b7[_0x193984('0xd0d')]=angular[_0x193984('0x2669')](_0x28d1b7['selectedItems']),_0x2bcdf7[_0x193984('0x173b')]({'title':_0x193984('0x10c8'),'msg':_0x193984('0x1984')});})['catch'](function(_0x36e24e){const _0x491209=_0x2a01fb;_0x2bcdf7[_0x491209('0x5e8')]({'title':_0x36e24e['status']?_0x491209('0x15d1')+_0x36e24e[_0x491209('0x1b51')]+_0x491209('0x1b0b')+_0x36e24e['statusText']:_0x491209('0x13cd'),'msg':_0x36e24e[_0x491209('0x1b51')]?JSON[_0x491209('0x1be0')](_0x36e24e[_0x491209('0x11fc')]):_0x36e24e[_0x491209('0x17df')]()});});}function _0x1f2e90(){_0x58b41c['hide']();}}const _0x920962=_0x14db19,_0x33b82c=_0x18dd13['p']+_0x34e79e('0x912');_0x220669[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x220669(_0x63871c,_0x128665,_0x16f83f,_0xdba5d0,_0xb5401b,_0x334210,_0x516211,_0x3f6e92,_0x4b78fc,_0x581a79,_0x474068){const _0x499e4c=_0x34e79e,_0x4006eb=this;_0x4006eb[_0x499e4c('0x9cb')]=_0x474068[_0x499e4c('0x24cc')](),_0x4006eb[_0x499e4c('0x4b2')]={},_0x4006eb['listCustomFields']={'count':0x0,'rows':[]},_0x4006eb[_0x499e4c('0xa25')]=[],_0x4006eb['crudPermissions'],_0x4006eb[_0x499e4c('0x135a')]={'fields':_0x499e4c('0x1da0'),'limit':0xa,'page':0x1},_0x4006eb[_0x499e4c('0x1221')]=_0x283545()[_0x499e4c('0x13cf')]([{'option':'Text','value':_0x499e4c('0x1b8d')},{'option':'Select','value':'\x27select\x27'},{'option':_0x499e4c('0x771'),'value':_0x499e4c('0xac1')},{'option':_0x499e4c('0x15a3'),'value':_0x499e4c('0xe02')},{'option':'Datetime','value':_0x499e4c('0x2575')}],function(_0x34bcb5){return _0x283545()['replace'](_0x34bcb5['value'],new RegExp('\x27','g'),'');}),_0x4006eb[_0x499e4c('0x1ecd')]=_0x283545()[_0x499e4c('0x13cf')]([{'option':_0x499e4c('0x1d5d'),'value':_0x499e4c('0x1f10')}],function(_0x4a01cb){const _0x419821=_0x499e4c;return _0x283545()[_0x419821('0x10a4')](_0x4a01cb[_0x419821('0x49')],new RegExp('\x27','g'),'');}),_0x4006eb[_0x499e4c('0x24eb')]=_0x2249a6,_0x4006eb['deleteConfirm']=_0x471869,_0x4006eb[_0x499e4c('0x173b')]=_0x345e59,_0x4006eb[_0x499e4c('0x2032')]=_0x54610e,_0x4006eb[_0x499e4c('0xa19')]=_0xfee662,_0x4006eb['exportSelectedListCustomFields']=_0x1251ea,_0x4006eb[_0x499e4c('0x22bb')]=_0x44b051,_0x4006eb[_0x499e4c('0x1ebf')]=_0x1469fa;function _0x2249a6(_0x4775bf,_0x1e469c){const _0x5ba390=_0x499e4c;_0x4006eb[_0x5ba390('0x4b2')]=_0x4775bf,_0x4006eb['crudPermissions']=typeof _0x1e469c!=='undefined'?_0x1e469c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4006eb[_0x5ba390('0x135a')][_0x5ba390('0x354')]=_0x4006eb[_0x5ba390('0x4b2')]['id'],_0x4006eb[_0x5ba390('0x135a')]['id']=_0x4006eb[_0x5ba390('0x4b2')]['id'],_0x54610e();}function _0x471869(_0x3dc14a,_0x3ee6bc){const _0x1956b8=_0x499e4c,_0x491cb1=_0x516211['confirm']()[_0x1956b8('0x14e4')](_0x1956b8('0x1202'))[_0x1956b8('0x93e')](_0x1956b8('0x1670')+(_0x3dc14a['name']||_0x3dc14a['id']&&_0x283545()['upperFirst'](_0x1956b8('0x2459'))+_0x3dc14a['id']||_0x1956b8('0x1ee9'))+_0x1956b8('0x229e')+_0x1956b8('0x27c7'))['ariaLabel']('delete\x20customField')[_0x1956b8('0x24d0')](_0x3ee6bc)['ok']('OK')[_0x1956b8('0x1801')](_0x1956b8('0x1d8d'));_0x516211[_0x1956b8('0x2fa')](_0x491cb1)['then'](function(){_0x44b051(_0x3dc14a);},function(){const _0x51a719=_0x1956b8;console['log'](_0x51a719('0x1d8d'));});}function _0x345e59(_0x131bda){const _0x58b4b1=_0x499e4c;_0x4006eb[_0x58b4b1('0x12db')]=_0x131bda||{'count':0x0,'rows':[]};}function _0x54610e(){const _0x2a8079=_0x499e4c;_0x4006eb[_0x2a8079('0x135a')][_0x2a8079('0x19e')]=(_0x4006eb[_0x2a8079('0x135a')][_0x2a8079('0x23f5')]-0x1)*_0x4006eb['query'][_0x2a8079('0x68e')],_0x4006eb['promise']=_0x581a79['cmList'][_0x2a8079('0x100b')](_0x4006eb['query'],_0x345e59)[_0x2a8079('0x1714')];}function _0xfee662(_0x4b63a1,_0x51dea9){const _0x1ad1f7=_0x499e4c;_0x516211['show']({'controller':_0x1ad1f7('0x22bc'),'controllerAs':'vm','templateUrl':_0x33b82c,'parent':angular[_0x1ad1f7('0x16b1')](_0x3f6e92[_0x1ad1f7('0x945')]),'targetEvent':_0x4b63a1,'clickOutsideToClose':!![],'locals':{'list':_0x4006eb['list'],'customField':_0x51dea9,'customFields':_0x4006eb[_0x1ad1f7('0x12db')]['rows'],'license':null,'setting':null,'crudPermissions':_0x4006eb[_0x1ad1f7('0xe28')]}});}function _0x44b051(_0x456276){const _0x314493=_0x499e4c;_0x581a79[_0x314493('0x1fbd')][_0x314493('0x17c4')]({'id':_0x456276['id']})[_0x314493('0x1714')][_0x314493('0x2788')](function(){const _0x4b49e9=_0x314493;_0x283545()['remove'](_0x4006eb[_0x4b49e9('0x12db')]['rows'],{'id':_0x456276['id']}),_0x4006eb['listCustomFields'][_0x4b49e9('0x338')]-=0x1,!_0x4006eb[_0x4b49e9('0x12db')]['rows'][_0x4b49e9('0x2566')]&&_0x54610e(),_0x4b78fc[_0x4b49e9('0x173b')]({'title':'CustomField\x20deleted!','msg':_0x456276[_0x4b49e9('0x1a8d')]?_0x456276[_0x4b49e9('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x39d962){const _0x27f40e=_0x314493;if(_0x39d962[_0x27f40e('0x11fc')]&&_0x39d962[_0x27f40e('0x11fc')]['errors']&&_0x39d962[_0x27f40e('0x11fc')]['errors'][_0x27f40e('0x2566')]){_0x4006eb['errors']=_0x39d962[_0x27f40e('0x11fc')][_0x27f40e('0x25be')]||[{'message':_0x39d962[_0x27f40e('0x17df')](),'type':_0x27f40e('0xbf0')}];for(let _0x4a5ca2=0x0;_0x4a5ca2<_0x39d962[_0x27f40e('0x11fc')][_0x27f40e('0x25be')][_0x27f40e('0x2566')];_0x4a5ca2++){_0x4b78fc['error']({'title':_0x39d962[_0x27f40e('0x11fc')][_0x27f40e('0x25be')][_0x4a5ca2][_0x27f40e('0x1d7')],'msg':_0x39d962[_0x27f40e('0x11fc')][_0x27f40e('0x25be')][_0x4a5ca2]['message']});}}else _0x4b78fc[_0x27f40e('0x5e8')]({'title':_0x39d962[_0x27f40e('0x1b51')]?_0x27f40e('0x15d1')+_0x39d962['status']+_0x27f40e('0x1b0b')+_0x39d962[_0x27f40e('0x22ce')]:_0x27f40e('0xbf0'),'msg':_0x39d962[_0x27f40e('0x11fc')]?JSON['stringify'](_0x39d962[_0x27f40e('0x11fc')]['message']):_0x39d962[_0x27f40e('0x15e2')]||_0x39d962[_0x27f40e('0x17df')]()});});}function _0x1251ea(){const _0x3371bb=_0x499e4c,_0x4a7729=angular[_0x3371bb('0x2669')](_0x4006eb['selectedListCustomFields']);return _0x4006eb['selectedListCustomFields']=[],_0x4a7729;}function _0x1469fa(_0x32d89e){const _0x568067=_0x499e4c,_0x35db04=_0x516211[_0x568067('0x112e')]()[_0x568067('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?')['htmlContent'](''+_0x4006eb[_0x568067('0xa25')][_0x568067('0x2566')]+_0x568067('0xbd')+_0x568067('0x27c7'))['ariaLabel']('delete\x20customFields')[_0x568067('0x24d0')](_0x32d89e)['ok']('OK')[_0x568067('0x1801')](_0x568067('0x1d8d'));_0x516211['show'](_0x35db04)[_0x568067('0x2788')](function(){const _0x5ec14a=_0x568067;_0x4006eb['selectedListCustomFields'][_0x5ec14a('0x1534')](function(_0x258652){_0x44b051(_0x258652);}),_0x4006eb['selectedListCustomFields']=[];});}let _0x37cab0=!![],_0x534b8b=0x1;_0x128665['$watch'](_0x499e4c('0x2571'),function(_0x5409f0,_0x529eeb){const _0x38381f=_0x499e4c;_0x37cab0?_0x334210(function(){_0x37cab0=![];}):(!_0x529eeb&&(_0x534b8b=_0x4006eb['query'][_0x38381f('0x23f5')]),_0x5409f0!==_0x529eeb&&(_0x4006eb['query'][_0x38381f('0x23f5')]=0x1),!_0x5409f0&&(_0x4006eb[_0x38381f('0x135a')][_0x38381f('0x23f5')]=_0x534b8b),_0x54610e());});}const _0x1a90bf=_0x220669;_0x21a859[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x132'),'customField',_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x21a859(_0x33d6fb,_0xb674fb,_0x491256,_0x9e1700,_0x4def5d,_0xa5b109,_0x1fbcdb,_0x5abd73,_0xfd10e5,_0x1bd1af,_0x4a4e02,_0x195be1,_0x2fe11f,_0x31f288){const _0x2ca690=_0x34e79e,_0x4048c3=this;_0x4048c3[_0x2ca690('0x9cb')]=_0x4a4e02[_0x2ca690('0x24cc')](),_0x4048c3['errors']=[],_0x4048c3[_0x2ca690('0x1af0')]=_0x2fe11f,_0x4048c3[_0x2ca690('0x130d')]=_0x195be1,_0x4048c3[_0x2ca690('0xe28')]=_0x31f288,_0x4048c3[_0x2ca690('0x1193')]={},_0x4048c3[_0x2ca690('0x18ad')]=_0x4048c3[_0x2ca690('0x1af0')]&&_0x4048c3[_0x2ca690('0x1af0')][_0x2ca690('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4048c3[_0x2ca690('0x14e4')]='CONTACTMANAGER.EDIT_CUSTOMFIELD',_0x4048c3['sortable']={'animation':0x320,'sort':!![],'onSort':function(){const _0x189988=_0x2ca690;_0x33d6fb[_0x189988('0xd20')][_0x189988('0x226a')]=![];}},_0x4048c3[_0x2ca690('0x1ee9')]=_0xfd10e5,_0x4048c3[_0x2ca690('0x132')]=_0x5abd73,_0x4048c3[_0x2ca690('0x16fa')]=![];!_0x4048c3[_0x2ca690('0x1ee9')]&&(_0x4048c3['customField']={'type':_0x2ca690('0x16db'),'actionType':'voice'},_0x4048c3[_0x2ca690('0x14e4')]=_0x2ca690('0x1c6d'),_0x4048c3[_0x2ca690('0x16fa')]=!![]);_0xb674fb[_0x2ca690('0x4b9')]['id']&&(_0x4048c3[_0x2ca690('0x1ee9')][_0x2ca690('0x354')]=_0xb674fb[_0x2ca690('0x4b9')]['id']);_0x33d6fb['$watch'](_0x2ca690('0x2255'),function(_0x11d79d,_0x25b2e1){const _0x5e3cf9=_0x2ca690;if(_0x11d79d!==_0x25b2e1)switch(_0x11d79d){case _0x5e3cf9('0x16db'):_0x4048c3[_0x5e3cf9('0x1ee9')]['values']='';break;case _0x5e3cf9('0x983'):_0x4048c3[_0x5e3cf9('0x1ee9')][_0x5e3cf9('0xc5')]=[];break;default:}}),_0x4048c3[_0x2ca690('0x85b')]=_0x7e4869,_0x4048c3[_0x2ca690('0x20d4')]=_0x4b429a,_0x4048c3['deleteCustomField']=_0xfce292,_0x4048c3[_0x2ca690('0x2601')]=_0x3eb1cf,_0x4048c3['addItem']=_0x4a761d,_0x4048c3[_0x2ca690('0xa8c')]=_0x3dffc8,_0x4048c3[_0x2ca690('0xa12')]=_0x582d63,_0x4048c3[_0x2ca690('0xca7')]=_0xa0796d;function _0x4a761d(_0x898212){const _0x34f970=_0x2ca690;_0x898212[_0x34f970('0x13e3')]({'value':_0x34f970('0x212c')}),_0x33d6fb[_0x34f970('0xd20')]['$pristine']=![];}function _0x3dffc8(_0x1199a7,_0x55147c){const _0x477ac9=_0x2ca690;_0x1199a7[_0x477ac9('0x722')](_0x55147c,0x1),_0x33d6fb[_0x477ac9('0xd20')][_0x477ac9('0x226a')]=![];}function _0x582d63(_0x1a46ba){const _0x58a549=_0x2ca690,_0x5f4285=_0x1a46ba[_0x58a549('0x2566')];for(let _0x43b6c5=0x0;_0x43b6c5<_0x5f4285;_0x43b6c5++){_0x1a46ba[_0x58a549('0x722')](0x0,0x1);}_0x33d6fb[_0x58a549('0xd20')][_0x58a549('0x226a')]=![];}function _0x7e4869(){const _0x12c4f1=_0x2ca690;_0x4048c3[_0x12c4f1('0x25be')]=[],_0x1bd1af[_0x12c4f1('0x1ba4')][_0x12c4f1('0xfb2')]({'id':_0xb674fb['params']['id']},_0x4048c3[_0x12c4f1('0x1ee9')])[_0x12c4f1('0x1714')][_0x12c4f1('0x2788')](function(_0x247ece){const _0x4a32ed=_0x12c4f1;_0x4048c3[_0x4a32ed('0x132')][_0x4a32ed('0xc51')](_0x247ece['toJSON']()),_0x1fbcdb[_0x4a32ed('0x173b')]({'title':'CustomField\x20properly\x20created','msg':_0x4048c3[_0x4a32ed('0x1ee9')][_0x4a32ed('0x1a8d')]?_0x4048c3['customField']['name']+_0x4a32ed('0x1e4a'):''}),_0xa0796d(_0x247ece);})['catch'](function(_0x2cd01d){const _0x30b383=_0x12c4f1;if(_0x2cd01d['data']&&_0x2cd01d['data'][_0x30b383('0x25be')]&&_0x2cd01d['data'][_0x30b383('0x25be')][_0x30b383('0x2566')]){_0x4048c3[_0x30b383('0x25be')]=_0x2cd01d[_0x30b383('0x11fc')][_0x30b383('0x25be')]||[{'message':_0x2cd01d[_0x30b383('0x17df')](),'type':'api.cmCustomField.save'}];for(let _0x42d5d0=0x0;_0x42d5d0<_0x2cd01d[_0x30b383('0x11fc')][_0x30b383('0x25be')][_0x30b383('0x2566')];_0x42d5d0+=0x1){_0x1fbcdb[_0x30b383('0x5e8')]({'title':_0x2cd01d[_0x30b383('0x11fc')][_0x30b383('0x25be')][_0x42d5d0][_0x30b383('0x1d7')],'msg':_0x2cd01d[_0x30b383('0x11fc')]['errors'][_0x42d5d0][_0x30b383('0x15e2')]});}}else _0x1fbcdb['error']({'title':_0x2cd01d['status']?_0x30b383('0x15d1')+_0x2cd01d[_0x30b383('0x1b51')]+_0x30b383('0x1b0b')+_0x2cd01d['statusText']:_0x30b383('0x1ef9'),'msg':_0x2cd01d[_0x30b383('0x11fc')]?JSON['stringify'](_0x2cd01d[_0x30b383('0x11fc')][_0x30b383('0x15e2')]):_0x2cd01d[_0x30b383('0x17df')]()});});}function _0x4b429a(){const _0x238f95=_0x2ca690;_0x4048c3[_0x238f95('0x25be')]=[],_0x1bd1af['cmCustomField'][_0x238f95('0x2740')]({'id':_0x4048c3[_0x238f95('0x1ee9')]['id']},_0x4048c3[_0x238f95('0x1ee9')])[_0x238f95('0x1714')][_0x238f95('0x2788')](function(_0x5c3ece){const _0x19d5aa=_0x238f95,_0x56284d=_0x283545()[_0x19d5aa('0x20e8')](_0x4048c3[_0x19d5aa('0x132')],{'id':_0x5c3ece['id']});_0x56284d&&_0x283545()[_0x19d5aa('0x2503')](_0x56284d,_0x283545()[_0x19d5aa('0x41b')](_0x5c3ece[_0x19d5aa('0x1cbf')](),_0x283545()[_0x19d5aa('0x2163')](_0x56284d))),_0x1fbcdb[_0x19d5aa('0x173b')]({'title':_0x19d5aa('0x1956'),'msg':_0x4048c3[_0x19d5aa('0x1ee9')]['name']?_0x4048c3['customField']['name']+_0x19d5aa('0x24cf'):''}),_0xa0796d(_0x5c3ece);})[_0x238f95('0x1cb5')](function(_0x4c4cac){const _0x37163e=_0x238f95;if(_0x4c4cac[_0x37163e('0x11fc')]&&_0x4c4cac[_0x37163e('0x11fc')]['errors']&&_0x4c4cac[_0x37163e('0x11fc')][_0x37163e('0x25be')][_0x37163e('0x2566')]){_0x4048c3[_0x37163e('0x25be')]=_0x4c4cac[_0x37163e('0x11fc')][_0x37163e('0x25be')]||[{'message':_0x4c4cac[_0x37163e('0x17df')](),'type':'api.cmCustomField.update'}];for(let _0x4faad6=0x0;_0x4faad6<_0x4c4cac['data'][_0x37163e('0x25be')][_0x37163e('0x2566')];_0x4faad6++){_0x1fbcdb['error']({'title':_0x4c4cac[_0x37163e('0x11fc')][_0x37163e('0x25be')][_0x4faad6][_0x37163e('0x1d7')],'msg':_0x4c4cac[_0x37163e('0x11fc')]['errors'][_0x4faad6][_0x37163e('0x15e2')]});}}else _0x1fbcdb[_0x37163e('0x5e8')]({'title':_0x4c4cac[_0x37163e('0x1b51')]?_0x37163e('0x15d1')+_0x4c4cac[_0x37163e('0x1b51')]+_0x37163e('0x1b0b')+_0x4c4cac[_0x37163e('0x22ce')]:_0x37163e('0x2647'),'msg':_0x4c4cac[_0x37163e('0x11fc')]?JSON['stringify'](_0x4c4cac[_0x37163e('0x11fc')]['message']):_0x4c4cac[_0x37163e('0x17df')]()});});}function _0xfce292(_0x5e6e2e){const _0x52dba8=_0x2ca690;_0x4048c3['errors']=[];const _0xf09192=_0x9e1700['confirm']()[_0x52dba8('0x14e4')]('Are\x20you\x20sure?')[_0x52dba8('0x1c98')](_0x52dba8('0x22f7'))[_0x52dba8('0x10bc')](_0x52dba8('0x103c'))['ok'](_0x52dba8('0x2786'))['cancel'](_0x52dba8('0x1481'))['targetEvent'](_0x5e6e2e);_0x9e1700[_0x52dba8('0x2fa')](_0xf09192)[_0x52dba8('0x2788')](function(){const _0x4ae4ed=_0x52dba8;_0x1bd1af[_0x4ae4ed('0x1fbd')][_0x4ae4ed('0x17c4')]({'id':_0x4048c3[_0x4ae4ed('0x1ee9')]['id']})[_0x4ae4ed('0x1714')][_0x4ae4ed('0x2788')](function(){const _0x3c958c=_0x4ae4ed;_0x283545()[_0x3c958c('0x1a90')](_0x4048c3[_0x3c958c('0x132')],{'id':_0x4048c3[_0x3c958c('0x1ee9')]['id']}),_0x1fbcdb['success']({'title':_0x3c958c('0x2120'),'msg':(_0x4048c3[_0x3c958c('0x1ee9')][_0x3c958c('0x1a8d')]||'customField')+_0x3c958c('0x14d4')}),_0xa0796d(_0x4048c3[_0x3c958c('0x1ee9')]);})[_0x4ae4ed('0x1cb5')](function(_0xa2583c){const _0x40db56=_0x4ae4ed;if(_0xa2583c[_0x40db56('0x11fc')]&&_0xa2583c[_0x40db56('0x11fc')]['errors']&&_0xa2583c[_0x40db56('0x11fc')][_0x40db56('0x25be')][_0x40db56('0x2566')]){_0x4048c3['errors']=_0xa2583c[_0x40db56('0x11fc')]['errors']||[{'message':_0xa2583c['toString'](),'type':_0x40db56('0xadb')}];for(let _0x3cd775=0x0;_0x3cd775<_0xa2583c[_0x40db56('0x11fc')]['errors']['length'];_0x3cd775++){_0x1fbcdb[_0x40db56('0x5e8')]({'title':_0xa2583c[_0x40db56('0x11fc')][_0x40db56('0x25be')][_0x3cd775]['type'],'msg':_0xa2583c[_0x40db56('0x11fc')][_0x40db56('0x25be')][_0x3cd775]['message']});}}else _0x1fbcdb[_0x40db56('0x5e8')]({'title':_0xa2583c[_0x40db56('0x1b51')]?_0x40db56('0x15d1')+_0xa2583c[_0x40db56('0x1b51')]+_0x40db56('0x1b0b')+_0xa2583c['statusText']:_0x40db56('0xadb'),'msg':_0xa2583c[_0x40db56('0x11fc')]?JSON[_0x40db56('0x1be0')](_0xa2583c[_0x40db56('0x11fc')]['message']):_0xa2583c[_0x40db56('0x15e2')]||_0xa2583c[_0x40db56('0x17df')]()});});},function(){});}function _0x3eb1cf(_0x43345d){return _0x43345d===null?undefined:new Date(_0x43345d);}function _0xa0796d(_0x306263){_0x9e1700['hide'](_0x306263);}}const _0x480691=_0x21a859,_0x4b0b5e=_0x18dd13['p']+_0x34e79e('0x192b');_0x424e34[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$document','$translate',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x4b2'),_0x34e79e('0xec9')];function _0x424e34(_0x184000,_0x167393,_0x5970c3,_0x1dab94,_0x1f55d4,_0x247c4d,_0x49a82f,_0x365fc4,_0x1a583b,_0x52a9f9,_0x2e84a4,_0x1676b3){const _0x2e88ff=_0x34e79e,_0x12d0fc=this;_0x12d0fc[_0x2e88ff('0x9cb')]=_0x52a9f9[_0x2e88ff('0x24cc')](),_0x12d0fc[_0x2e88ff('0x130d')]=_0x247c4d,_0x12d0fc['setting']=_0x49a82f,_0x12d0fc['passwordPattern']=_0x12d0fc[_0x2e88ff('0x1af0')][_0x2e88ff('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12d0fc[_0x2e88ff('0xe9')]=_0x167393[_0x2e88ff('0x170c')]()+_0x2e88ff('0x726')+_0x167393[_0x2e88ff('0x1c6a')](),_0x12d0fc[_0x2e88ff('0x4b2')]=_0x2e84a4||_0x184000[_0x2e88ff('0x4b9')]['list']||{},_0x12d0fc[_0x2e88ff('0xec9')]=_0x1676b3&&_0x1676b3[_0x2e88ff('0x338')]==0x1?_0x1676b3[_0x2e88ff('0x25df')][0x0]:null,_0x12d0fc[_0x2e88ff('0xe28')]=_0x52a9f9[_0x2e88ff('0x157e')](_0x12d0fc[_0x2e88ff('0xec9')]?_0x12d0fc[_0x2e88ff('0xec9')]['crudPermissions']:null),_0x12d0fc[_0x2e88ff('0x1193')]={},_0x12d0fc[_0x2e88ff('0xcb3')]=_0x184000[_0x2e88ff('0x4b9')][_0x2e88ff('0x24f6')]||0x0,_0x12d0fc[_0x2e88ff('0x1fc7')]=_0x498abb,_0x12d0fc[_0x2e88ff('0x1113')]=_0x1239ec,_0x12d0fc[_0x2e88ff('0x204f')]=_0x1a583b[_0x2e88ff('0x2276')],_0x12d0fc['gotoLists']=_0x51a9e4,_0x12d0fc['saveList']=_0x7cf358;function _0x498abb(_0x806142){const _0x292712=_0x2e88ff;if(_0x52a9f9[_0x292712('0x1516')](_0x292712('0xe23')))_0x184000['go']('app.contactmanager.contacts',{'ListId':_0x806142['id']});else return _0x365fc4['userProfileSection'][_0x292712('0x1335')]({'userProfileId':_0x52a9f9['getCurrentUser']()['userProfileId'],'sectionId':0x12f})[_0x292712('0x1714')][_0x292712('0x2788')](function(_0x85d984){const _0x5257f5=_0x292712,_0x4d4554=_0x85d984&&_0x85d984[_0x5257f5('0x25df')]?_0x85d984[_0x5257f5('0x25df')][0x0]:null;_0x4d4554&&_0x4d4554[_0x5257f5('0x14f4')]?_0x184000['go'](_0x5257f5('0x21be'),{'ListId':_0x806142['id']}):_0x1a583b['info']({'title':_0x1f55d4['instant'](_0x5257f5('0x5be')),'msg':_0x1f55d4[_0x5257f5('0x1b11')](_0x5257f5('0x1abc'))});})[_0x292712('0x1cb5')](function(_0x27fbe9){const _0x26e727=_0x292712;_0x1a583b[_0x26e727('0x5e8')]({'title':_0x27fbe9['status']?_0x26e727('0x15d1')+_0x27fbe9[_0x26e727('0x1b51')]+_0x26e727('0x1b0b')+_0x27fbe9['statusText']:_0x26e727('0x2292'),'msg':_0x27fbe9[_0x26e727('0x1b51')]?JSON['stringify'](_0x27fbe9[_0x26e727('0x11fc')]):_0x27fbe9['toString']()});});}function _0x1239ec(_0x3bdded,_0x4bbeb0){const _0x24fe4d=_0x2e88ff;_0x5970c3[_0x24fe4d('0x2fa')]({'controller':_0x24fe4d('0x21fd'),'controllerAs':'vm','templateUrl':_0x4b0b5e,'parent':angular['element'](_0x1dab94[_0x24fe4d('0x945')]),'targetEvent':_0x4bbeb0,'clickOutsideToClose':!![],'locals':{'list':_0x3bdded,'lists':_0x12d0fc[_0x24fe4d('0x2')]?_0x12d0fc['lists']['rows']:[],'crudPermissions':_0x12d0fc[_0x24fe4d('0xe28')],'realtime':![]}});}function _0x51a9e4(){const _0x24231c=_0x2e88ff;_0x184000['go'](_0x24231c('0x1c06'),{},{'reload':_0x24231c('0x1c06')});}function _0x7cf358(){const _0x47c032=_0x2e88ff;_0x365fc4[_0x47c032('0x1ba4')][_0x47c032('0x2740')]({'id':_0x12d0fc[_0x47c032('0x4b2')]['id']},_0x12d0fc[_0x47c032('0x4b2')])['$promise'][_0x47c032('0x2788')](function(){const _0x3b769e=_0x47c032;_0x1a583b[_0x3b769e('0x173b')]({'title':_0x3b769e('0xdd7'),'msg':_0x12d0fc[_0x3b769e('0x4b2')][_0x3b769e('0x1a8d')]?_0x12d0fc[_0x3b769e('0x4b2')][_0x3b769e('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x47c032('0x1cb5')](function(_0x46d894){const _0x1675b4=_0x47c032;_0x1a583b[_0x1675b4('0x5e8')]({'title':_0x46d894[_0x1675b4('0x1b51')]?_0x1675b4('0x15d1')+_0x46d894[_0x1675b4('0x1b51')]+_0x1675b4('0x1b0b')+_0x46d894[_0x1675b4('0x22ce')]:_0x1675b4('0xbf0'),'msg':_0x46d894[_0x1675b4('0x11fc')]?JSON['stringify'](_0x46d894['data']):_0x46d894[_0x1675b4('0x17df')]()});});}}const _0x2ec6fa=_0x424e34,_0x48f3a0=_0x18dd13['p']+_0x34e79e('0x19a');_0x2b0b75[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),'api',_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x2b0b75(_0x5ad895,_0x2404de,_0x474e53,_0x96bc52,_0x5bd874,_0x3b3167,_0x1b1518,_0x26abc8,_0x33d393,_0x120388,_0x29bd64){const _0x69a29=_0x34e79e,_0x59be39=this;_0x59be39[_0x69a29('0x9cb')]=_0x29bd64[_0x69a29('0x24cc')](),_0x59be39[_0x69a29('0x818')]={'count':0x0,'rows':[]},_0x59be39[_0x69a29('0x25d8')]=[],_0x59be39[_0x69a29('0xe28')],_0x59be39[_0x69a29('0x21c2')]={'first':_0x69a29('0x1b84'),'second':_0x69a29('0x1e6'),'third':'3rd'},_0x59be39[_0x69a29('0x135a')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x69a29('0x1cee'),'limit':0xa,'page':0x1},_0x59be39[_0x69a29('0x24eb')]=_0x56ce1c,_0x59be39[_0x69a29('0x16a')]=_0xe2f9c1,_0x59be39[_0x69a29('0x173b')]=_0x4b24b8,_0x59be39[_0x69a29('0x2069')]=_0x1dca18,_0x59be39[_0x69a29('0x2839')]=_0x4e2a37,_0x59be39[_0x69a29('0x25ba')]=_0x3871b2,_0x59be39['exportSelectedDispositions']=_0xf7bb58,_0x59be39['deleteSelectedDispositions']=_0xf9f4b,_0x59be39[_0x69a29('0x3b4')]=_0x5e7650,_0x59be39['selectAllDispositions']=_0x22cfa7;function _0x56ce1c(_0xb0df8b,_0x38b2ea){const _0x35c788=_0x69a29;_0x59be39['list']=_0xb0df8b||{},_0x59be39[_0x35c788('0xe28')]=typeof _0x38b2ea!==_0x35c788('0xedb')?_0x38b2ea:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x59be39['query']['ListId']=_0x59be39[_0x35c788('0x4b2')]['id'],_0x59be39['query']['id']=_0x59be39[_0x35c788('0x4b2')]['id'],_0x1dca18();}function _0x4e2a37(_0x47365f,_0x24963f){const _0x2aa616=_0x69a29;_0x5bd874[_0x2aa616('0x2fa')]({'controller':_0x2aa616('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x2aa616('0x16b1')](_0x3b3167[_0x2aa616('0x945')]),'targetEvent':_0x47365f,'clickOutsideToClose':!![],'locals':{'disposition':_0x24963f,'dispositions':_0x59be39[_0x2aa616('0x818')][_0x2aa616('0x25df')],'model':{'id':_0x59be39['list']['id'],'field':_0x2aa616('0x354')},'license':null,'setting':null,'crudPermissions':_0x59be39['crudPermissions']}})['then'](function(_0x3d025e){if(_0x3d025e)_0x1dca18();});}function _0xe2f9c1(_0x2ca5ce,_0x5c4c86){const _0x54e20a=_0x69a29,_0x27f055=_0x283545()[_0x54e20a('0xc5d')](_0x59be39[_0x54e20a('0x818')]['rows'],[_0x54e20a('0x1ba'),_0x2ca5ce['id']]),_0xcc35f6=_0x5bd874[_0x54e20a('0x112e')]()[_0x54e20a('0x14e4')](_0x26abc8[_0x54e20a('0x1b11')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x54e20a('0x1c98')](_0x26abc8[_0x54e20a('0x1b11')]('TOOLS.NOTIFICATIONS.'+(_0x27f055?_0x54e20a('0x40a'):_0x54e20a('0x281c')),{'name':_0x2ca5ce[_0x54e20a('0x1a8d')]}))[_0x54e20a('0x10bc')](_0x54e20a('0x1f86'))['targetEvent'](_0x5c4c86)['ok']('OK')['cancel'](_0x26abc8[_0x54e20a('0x1b11')](_0x54e20a('0x1061')));_0x5bd874['show'](_0xcc35f6)[_0x54e20a('0x2788')](function(){_0x3871b2(_0x2ca5ce);});}function _0x4b24b8(_0x2a5d02){const _0x5407d5=_0x69a29;_0x59be39[_0x5407d5('0x818')]=_0x2a5d02||{'count':0x0,'rows':[]};}function _0x1dca18(){const _0x39425f=_0x69a29;_0x59be39['query']['offset']=(_0x59be39['query'][_0x39425f('0x23f5')]-0x1)*_0x59be39[_0x39425f('0x135a')]['limit'],_0x59be39['promise']=_0x33d393['cmList'][_0x39425f('0x2069')](_0x59be39[_0x39425f('0x135a')],_0x4b24b8)[_0x39425f('0x1714')];}function _0x3871b2(_0x7322b3){const _0x445565=_0x69a29;_0x33d393[_0x445565('0x1db2')][_0x445565('0x17c4')]({'id':_0x7322b3['id']})['$promise']['then'](function(){const _0x51cd52=_0x445565;_0x1dca18(),_0x120388[_0x51cd52('0x173b')]({'title':_0x26abc8['instant'](_0x51cd52('0x156e'))});})[_0x445565('0x1cb5')](function(_0x20c4ef){const _0x3a2936=_0x445565;if(_0x20c4ef[_0x3a2936('0x11fc')]&&_0x20c4ef[_0x3a2936('0x11fc')][_0x3a2936('0x25be')]&&_0x20c4ef[_0x3a2936('0x11fc')]['errors'][_0x3a2936('0x2566')]){_0x59be39[_0x3a2936('0x25be')]=_0x20c4ef[_0x3a2936('0x11fc')][_0x3a2936('0x25be')]||[{'message':_0x20c4ef[_0x3a2936('0x17df')](),'type':_0x3a2936('0x1410')}];for(let _0x1efe5c=0x0;_0x1efe5c<_0x20c4ef[_0x3a2936('0x11fc')]['errors'][_0x3a2936('0x2566')];_0x1efe5c++){_0x120388[_0x3a2936('0x5e8')]({'title':_0x20c4ef[_0x3a2936('0x11fc')]['errors'][_0x1efe5c][_0x3a2936('0x1d7')],'msg':_0x20c4ef[_0x3a2936('0x11fc')]['errors'][_0x1efe5c][_0x3a2936('0x15e2')]});}}else _0x120388['error']({'title':_0x20c4ef[_0x3a2936('0x1b51')]?_0x3a2936('0x15d1')+_0x20c4ef[_0x3a2936('0x1b51')]+_0x3a2936('0x1b0b')+_0x20c4ef[_0x3a2936('0x22ce')]:_0x3a2936('0x1410'),'msg':_0x20c4ef['data']?JSON[_0x3a2936('0x1be0')](_0x20c4ef['data']['message']):_0x20c4ef['message']||_0x20c4ef[_0x3a2936('0x17df')]()});});}function _0xf7bb58(){const _0x2fe517=_0x69a29,_0x516f81=angular[_0x2fe517('0x2669')](_0x59be39[_0x2fe517('0x25d8')]);return _0x59be39['selectedDispositions']=[],_0x516f81;}function _0xf9f4b(_0x59c40f){const _0x2def69=_0x69a29,_0x5a6710=_0x5bd874[_0x2def69('0x112e')]()[_0x2def69('0x14e4')](_0x26abc8[_0x2def69('0x1b11')](_0x2def69('0x63d')))[_0x2def69('0x1c98')](_0x26abc8[_0x2def69('0x1b11')](_0x2def69('0x153f'),{'total':_0x59be39[_0x2def69('0x25d8')]['length']}))[_0x2def69('0x10bc')](_0x2def69('0x248b'))[_0x2def69('0x24d0')](_0x59c40f)['ok']('OK')['cancel'](_0x26abc8['instant'](_0x2def69('0x1061')));_0x5bd874[_0x2def69('0x2fa')](_0x5a6710)['then'](function(){const _0x1a95cc=_0x2def69;_0x59be39[_0x1a95cc('0x25d8')][_0x1a95cc('0x1534')](function(_0x20309a){_0x3871b2(_0x20309a);}),_0x59be39[_0x1a95cc('0x25d8')]=[];});}function _0x5e7650(){const _0x535bdc=_0x69a29;_0x59be39[_0x535bdc('0x25d8')]=[];}function _0x22cfa7(){const _0x12989b=_0x69a29;_0x59be39[_0x12989b('0x25d8')]=_0x59be39[_0x12989b('0x818')][_0x12989b('0x25df')];}let _0x370c2e=!![],_0x16f3b5=0x1;_0x5ad895[_0x69a29('0x1662')](_0x69a29('0x2571'),function(_0x5184ea,_0x6484a3){const _0x183856=_0x69a29;_0x370c2e?_0x1b1518(function(){_0x370c2e=![];}):(!_0x6484a3&&(_0x16f3b5=_0x59be39[_0x183856('0x135a')][_0x183856('0x23f5')]),_0x5184ea!==_0x6484a3&&(_0x59be39['query']['page']=0x1),!_0x5184ea&&(_0x59be39[_0x183856('0x135a')]['page']=_0x16f3b5),_0x1dca18());});}const _0x3b84fc=_0x2b0b75,_0xf23ac1=_0x18dd13['p']+_0x34e79e('0x2171');_0x2e3987[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog','$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'lists',_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x2e3987(_0x3d3c99,_0x59e8ec,_0x8818b2,_0x3fc39d,_0x406bc7,_0x599613,_0x434601,_0x4bbba5,_0x22cc78,_0x1e2791,_0x32bd3e,_0x2a666e,_0x5f3ae3,_0x522e56,_0x4e511f,_0x51eb61,_0x4a1e9e){const _0x403a49=_0x34e79e,_0xb88f2b=this;_0xb88f2b[_0x403a49('0x130d')]=_0x51eb61,_0xb88f2b[_0x403a49('0x1af0')]=_0x4a1e9e,_0xb88f2b[_0x403a49('0x9cb')]=_0x4e511f[_0x403a49('0x24cc')](),_0xb88f2b[_0x403a49('0x2')]=_0x22cc78||{'count':0x0,'rows':[]},_0xb88f2b[_0x403a49('0x63c')]=_0x1e2791,_0xb88f2b['userProfileSection']=_0x32bd3e&&_0x32bd3e[_0x403a49('0x338')]==0x1?_0x32bd3e[_0x403a49('0x25df')][0x0]:null,_0xb88f2b[_0x403a49('0xe28')]=_0x4e511f['parseCrudPermissions'](_0xb88f2b[_0x403a49('0xec9')]?_0xb88f2b[_0x403a49('0xec9')][_0x403a49('0xe28')]:null),_0xb88f2b[_0x403a49('0x26a9')]='lists',_0xb88f2b[_0x403a49('0x2278')]='',_0xb88f2b[_0x403a49('0x25e2')]=null,_0xb88f2b['selectedLists']=[],_0xb88f2b[_0x403a49('0x135a')]={'fields':_0x403a49('0x7d5'),'sort':_0x403a49('0x1cee'),'limit':0xa,'page':0x1},_0xb88f2b[_0x403a49('0x1f7e')]=_0x2a14c1,_0xb88f2b[_0x403a49('0x1bf4')]=_0x518b72,_0xb88f2b[_0x403a49('0x4f8')]=_0x59f403,_0xb88f2b[_0x403a49('0x1113')]=_0x348ea1,_0xb88f2b['deleteconfirm']=_0x5476a6,_0xb88f2b[_0x403a49('0x173b')]=_0x18c7d5,_0xb88f2b[_0x403a49('0xcdd')]=_0x1431e1,_0xb88f2b[_0x403a49('0x7cb')]=_0x33852e,_0xb88f2b[_0x403a49('0x19fb')]=_0xc1a87d,_0xb88f2b[_0x403a49('0x25d4')]=_0x37d1c6,_0xb88f2b[_0x403a49('0x2217')]=_0x24a6ef,_0xb88f2b['deselectLists']=_0x55981e,_0xb88f2b['selectAllLists']=_0x1a5ce6;function _0x2a14c1(_0x2f3650){const _0x33d3a3=_0x403a49;_0x8818b2['go'](_0x33d3a3('0x48c'),{'id':_0x2f3650['id'],'list':_0x2f3650,'crudPermissions':_0xb88f2b[_0x33d3a3('0xe28')]});}function _0x518b72(_0x1789c6){const _0x2650e1=_0x403a49;if(_0x4e511f[_0x2650e1('0x1516')](_0x2650e1('0xe23')))_0x8818b2['go'](_0x2650e1('0x21be'),{'ListId':_0x1789c6['id']});else return _0x2a666e[_0x2650e1('0xec9')][_0x2650e1('0x1335')]({'userProfileId':_0x4e511f[_0x2650e1('0x24cc')]()[_0x2650e1('0x237f')],'sectionId':0x12f})[_0x2650e1('0x1714')][_0x2650e1('0x2788')](function(_0x5e6f1d){const _0x5c5293=_0x2650e1,_0x4f8c41=_0x5e6f1d&&_0x5e6f1d[_0x5c5293('0x25df')]?_0x5e6f1d[_0x5c5293('0x25df')][0x0]:null;_0x4f8c41&&_0x4f8c41[_0x5c5293('0x14f4')]?_0x8818b2['go'](_0x5c5293('0x21be'),{'ListId':_0x1789c6['id']}):_0x522e56[_0x5c5293('0x2276')]({'title':_0x4bbba5['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4bbba5['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x2650e1('0x1cb5')](function(_0x119086){const _0x4b98ee=_0x2650e1;_0x522e56['error']({'title':_0x119086[_0x4b98ee('0x1b51')]?_0x4b98ee('0x15d1')+_0x119086[_0x4b98ee('0x1b51')]+'\x20-\x20'+_0x119086[_0x4b98ee('0x22ce')]:'USERPROFILE:GET_SECTION','msg':_0x119086[_0x4b98ee('0x1b51')]?JSON[_0x4b98ee('0x1be0')](_0x119086[_0x4b98ee('0x11fc')]):_0x119086[_0x4b98ee('0x17df')]()});});}function _0x59f403(_0x39720f){const _0x104295=_0x403a49;return _0x2a666e['cmList'][_0x104295('0x2369')]({'id':_0x39720f['id'],'nolimit':!![]})[_0x104295('0x1714')][_0x104295('0x2788')](function(_0x55a85b){const _0x918fbf=_0x104295;if(typeof _0x55a85b[_0x918fbf('0x2566')]!==_0x918fbf('0xedb')){const _0x23eaac=[_0x55a85b[_0x918fbf('0x3f1')]],_0x22ea33=new Blob(_0x23eaac,{'type':_0x55a85b[_0x918fbf('0x1d7')]}),_0x2a52df=window[_0x918fbf('0x11c4')][_0x918fbf('0x1ae6')]('a');_0x2a52df['setAttribute'](_0x918fbf('0x186a'),URL['createObjectURL'](_0x22ea33)),_0x2a52df[_0x918fbf('0x1c6b')](_0x918fbf('0x1486'),_0x918fbf('0x1daa')+_0x39720f['id']+'.csv'),_0x2a52df[_0x918fbf('0x132a')]();}else _0x522e56[_0x918fbf('0x2276')]({'title':_0x918fbf('0xc26'),'msg':_0x918fbf('0x11a2')});})['catch'](function(_0x537b2e){const _0x387dcd=_0x104295;_0x522e56[_0x387dcd('0x5e8')]({'title':_0x537b2e['status']?_0x387dcd('0x15d1')+_0x537b2e[_0x387dcd('0x1b51')]+_0x387dcd('0x1b0b')+_0x537b2e[_0x387dcd('0x22ce')]:_0x387dcd('0xbf0'),'msg':_0x537b2e[_0x387dcd('0x11fc')]?JSON[_0x387dcd('0x1be0')](_0x537b2e['data']):_0x537b2e[_0x387dcd('0x17df')]()});});}function _0x348ea1(_0x6da0a1,_0x4a661f){const _0x1ed579=_0x403a49;_0x406bc7[_0x1ed579('0x2fa')]({'controller':_0x1ed579('0x21fd'),'controllerAs':'vm','templateUrl':_0x4b0b5e,'parent':angular[_0x1ed579('0x16b1')](_0x599613[_0x1ed579('0x945')]),'targetEvent':_0x4a661f,'clickOutsideToClose':!![],'locals':{'list':_0x6da0a1,'lists':_0xb88f2b[_0x1ed579('0x2')]?_0xb88f2b['lists'][_0x1ed579('0x25df')]:[],'crudPermissions':_0xb88f2b[_0x1ed579('0xe28')],'realtime':![]}});}function _0x5476a6(_0x2eb57f,_0x1e6420){const _0xe38ed1=_0x403a49,_0x500989=_0x406bc7[_0xe38ed1('0x112e')]()[_0xe38ed1('0x14e4')](_0xe38ed1('0x2114')+_0x283545()[_0xe38ed1('0x114')](_0xe38ed1('0x4b2'))+'?')[_0xe38ed1('0x93e')](''+(_0x2eb57f['name']||'list')+''+_0xe38ed1('0x27c7'))[_0xe38ed1('0x10bc')]('delete\x20list')['targetEvent'](_0x1e6420)['ok']('OK')['cancel']('CANCEL');_0x406bc7['show'](_0x500989)[_0xe38ed1('0x2788')](function(){_0xc1a87d(_0x2eb57f);},function(){const _0x3b6e2e=_0xe38ed1;console[_0x3b6e2e('0x10df')](_0x3b6e2e('0x1d8d'));});}let _0x3b5fec=!![],_0x5e53dc=0x1;_0x3d3c99[_0x403a49('0x1662')]('vm.query.filter',function(_0x45a7b4,_0x555854){const _0x476265=_0x403a49;_0x3b5fec?_0x434601(function(){_0x3b5fec=![];}):(!_0x555854&&(_0x5e53dc=_0xb88f2b[_0x476265('0x135a')][_0x476265('0x23f5')]),_0x45a7b4!==_0x555854&&(_0xb88f2b['query'][_0x476265('0x23f5')]=0x1),!_0x45a7b4&&(_0xb88f2b[_0x476265('0x135a')][_0x476265('0x23f5')]=_0x5e53dc),_0xb88f2b[_0x476265('0xcdd')]());});function _0x18c7d5(_0x28d6f5){const _0x22c981=_0x403a49;_0xb88f2b[_0x22c981('0x2')]=_0x28d6f5||{'count':0x0,'rows':[]};}function _0x1431e1(){const _0x38f713=_0x403a49;_0xb88f2b[_0x38f713('0x135a')]['offset']=(_0xb88f2b['query']['page']-0x1)*_0xb88f2b[_0x38f713('0x135a')][_0x38f713('0x68e')],_0x4e511f[_0x38f713('0x1516')](_0x38f713('0xe23'))?_0xb88f2b[_0x38f713('0x1808')]=_0x2a666e[_0x38f713('0x1ba4')][_0x38f713('0x1335')](_0xb88f2b[_0x38f713('0x135a')],_0x18c7d5)[_0x38f713('0x1714')]:(_0xb88f2b[_0x38f713('0x135a')]['id']=_0xb88f2b[_0x38f713('0x63c')]['id'],_0xb88f2b[_0x38f713('0x135a')][_0x38f713('0xb13')]=_0x38f713('0x12f2'),_0xb88f2b[_0x38f713('0x1808')]=_0x2a666e[_0x38f713('0x63c')]['getResources'](_0xb88f2b[_0x38f713('0x135a')],_0x18c7d5)[_0x38f713('0x1714')]);}function _0x33852e(_0x1475e9,_0x5bf45e){const _0x336dbd=_0x403a49;_0x406bc7[_0x336dbd('0x2fa')]({'controller':_0x336dbd('0x1376'),'controllerAs':'vm','templateUrl':_0xf23ac1,'parent':angular[_0x336dbd('0x16b1')](_0x599613[_0x336dbd('0x945')]),'targetEvent':_0x1475e9,'clickOutsideToClose':!![],'locals':{'list':_0x5bf45e,'lists':_0xb88f2b[_0x336dbd('0x2')][_0x336dbd('0x25df')],'license':_0xb88f2b[_0x336dbd('0x130d')],'setting':_0xb88f2b['setting'],'crudPermissions':_0xb88f2b['crudPermissions']}});}function _0xc1a87d(_0x19f891){const _0x49c8df=_0x403a49;_0x2a666e[_0x49c8df('0x1ba4')][_0x49c8df('0x17c4')]({'id':_0x19f891['id']})[_0x49c8df('0x1714')][_0x49c8df('0x2788')](function(){const _0x564007=_0x49c8df;_0x283545()[_0x564007('0x1a90')](_0xb88f2b['lists'][_0x564007('0x25df')],{'id':_0x19f891['id']}),_0xb88f2b[_0x564007('0x2')]['count']-=0x1,!_0xb88f2b[_0x564007('0x2')][_0x564007('0x25df')][_0x564007('0x2566')]&&_0xb88f2b[_0x564007('0xcdd')](),_0x522e56[_0x564007('0x173b')]({'title':_0x283545()[_0x564007('0x114')](_0x564007('0xef1'))+_0x564007('0x20db'),'msg':_0x19f891['name']?_0x19f891['name']+_0x564007('0x14d4'):''});})[_0x49c8df('0x1cb5')](function(_0x576e0d){const _0x54c031=_0x49c8df;if(_0x576e0d['data']&&_0x576e0d[_0x54c031('0x11fc')][_0x54c031('0x25be')]&&_0x576e0d[_0x54c031('0x11fc')]['errors'][_0x54c031('0x2566')]){_0xb88f2b[_0x54c031('0x25be')]=_0x576e0d[_0x54c031('0x11fc')][_0x54c031('0x25be')]||[{'message':_0x576e0d[_0x54c031('0x17df')](),'type':_0x54c031('0x1de5')}];for(let _0x477d35=0x0;_0x477d35<_0x576e0d[_0x54c031('0x11fc')][_0x54c031('0x25be')][_0x54c031('0x2566')];_0x477d35++){_0x522e56[_0x54c031('0x5e8')]({'title':_0x576e0d[_0x54c031('0x11fc')][_0x54c031('0x25be')][_0x477d35]['type'],'msg':_0x576e0d[_0x54c031('0x11fc')][_0x54c031('0x25be')][_0x477d35]['message']});}}else _0x522e56[_0x54c031('0x5e8')]({'title':_0x576e0d[_0x54c031('0x1b51')]?_0x54c031('0x15d1')+_0x576e0d['status']+_0x54c031('0x1b0b')+_0x576e0d[_0x54c031('0x22ce')]:_0x54c031('0x1de5'),'msg':_0x576e0d['data']?JSON['stringify'](_0x576e0d['data'][_0x54c031('0x15e2')]):_0x576e0d['message']||_0x576e0d[_0x54c031('0x17df')]()});});}function _0x37d1c6(){const _0x1fc95e=_0x403a49,_0x5aa823=angular[_0x1fc95e('0x2669')](_0xb88f2b[_0x1fc95e('0xebc')]);return _0xb88f2b[_0x1fc95e('0xebc')]=[],_0x5aa823;}function _0x24a6ef(_0x2451b9){const _0x4a6255=_0x403a49,_0x5a3b41=_0x406bc7['confirm']()[_0x4a6255('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?')[_0x4a6255('0x93e')](_0x4a6255('0x1670')+_0xb88f2b[_0x4a6255('0xebc')][_0x4a6255('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4a6255('0x10bc')]('delete\x20Lists')[_0x4a6255('0x24d0')](_0x2451b9)['ok']('OK')[_0x4a6255('0x1801')](_0x4a6255('0x1d8d'));_0x406bc7[_0x4a6255('0x2fa')](_0x5a3b41)['then'](function(){const _0x50337a=_0x4a6255;_0xb88f2b[_0x50337a('0xebc')]['forEach'](function(_0x3512ad){_0xc1a87d(_0x3512ad);}),_0xb88f2b[_0x50337a('0xebc')]=[];});}function _0x55981e(){_0xb88f2b['selectedLists']=[];}function _0x1a5ce6(){const _0x59dbc1=_0x403a49;_0xb88f2b[_0x59dbc1('0xebc')]=_0xb88f2b[_0x59dbc1('0x2')][_0x59dbc1('0x25df')];}}const _0x58520c=_0x2e3987,_0x56daa5=_0x18dd13['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html',_0x326bd1=_0x18dd13['p']+_0x34e79e('0x23bf'),_0xdc2165=_0x18dd13['p']+'src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html',_0xd45f5c=_0x18dd13['p']+_0x34e79e('0xbdc'),_0x4383ab=_0x18dd13['p']+_0x34e79e('0x1a02');_0x5eb3dc['$inject']=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x5eb3dc(_0x3fff67,_0x2b8da9){const _0x339cd5=_0x34e79e;_0x3fff67['state'](_0x339cd5('0x36a'),{'abstract':!![],'url':_0x339cd5('0x1cea')})[_0x339cd5('0x249b')](_0x339cd5('0x1c06'),{'url':_0x339cd5('0xaf6'),'views':{'content@app':{'templateUrl':_0x56daa5,'controller':_0x339cd5('0x1572')}},'resolve':{'lists':[_0x339cd5('0x1318'),_0x339cd5('0x1b04'),function(_0x250c16,_0x76148b){const _0x285e44=_0x339cd5;return _0x76148b[_0x285e44('0x1516')](_0x285e44('0xe23'))?_0x250c16[_0x285e44('0x2322')](_0x285e44('0x128f'),{'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x250c16[_0x285e44('0x2322')](_0x285e44('0x27c5'),{'id':_0x76148b[_0x285e44('0x24cc')]()['userProfileId'],'section':_0x285e44('0x12f2'),'fields':_0x285e44('0x7d5'),'sort':_0x285e44('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x339cd5('0x1318'),_0x339cd5('0x1b04'),function(_0x882e67,_0x5e9ea4){const _0x38dc17=_0x339cd5;return _0x5e9ea4[_0x38dc17('0x1516')](_0x38dc17('0xe23'))?null:_0x882e67[_0x38dc17('0x2322')]('userProfile@get',{'fields':_0x38dc17('0x3f0'),'id':_0x5e9ea4[_0x38dc17('0x24cc')]()[_0x38dc17('0x237f')]});}],'userProfileSection':[_0x339cd5('0x1318'),'Auth',function(_0x5e0841,_0x2ee410){const _0x13a95d=_0x339cd5;return _0x2ee410[_0x13a95d('0x1516')](_0x13a95d('0xe23'))?null:_0x5e0841[_0x13a95d('0x2322')](_0x13a95d('0x22ca'),{'fields':_0x13a95d('0xe2c'),'userProfileId':_0x2ee410[_0x13a95d('0x24cc')]()['userProfileId'],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x339cd5('0x218a')})['state'](_0x339cd5('0x48c'),{'url':_0x339cd5('0x206b'),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x326bd1,'controller':'ListController\x20as\x20vm'}},'resolve':{'list':[_0x339cd5('0x1318'),_0x339cd5('0xad0'),function(_0x5ef08d,_0x5ae82c){const _0x220ff9=_0x339cd5;return _0x5ef08d[_0x220ff9('0x2322')](_0x220ff9('0x128f'),{'fields':_0x220ff9('0x7d5'),'id':_0x5ae82c['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x2b5467,_0x5de52d){const _0x461389=_0x339cd5;return _0x2b5467[_0x461389('0x2322')](_0x461389('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5de52d[_0x461389('0x24cc')]()[_0x461389('0x237f')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x339cd5('0x218a')})[_0x339cd5('0x249b')](_0x339cd5('0x1b67'),{'url':'/companies','views':{'content@app':{'templateUrl':_0xdc2165,'controller':_0x339cd5('0xf6')}},'resolve':{'companies':[_0x339cd5('0x1318'),_0x339cd5('0x1b04'),function(_0xce3536,_0x5e5b86){const _0x2e506f=_0x339cd5;return _0x5e5b86[_0x2e506f('0x1516')]('admin')?_0xce3536[_0x2e506f('0x2322')](_0x2e506f('0x58c'),{'fields':_0x2e506f('0x2285'),'sort':_0x2e506f('0x1cee'),'limit':0xa,'offset':0x0}):_0xce3536[_0x2e506f('0x2322')](_0x2e506f('0x27c5'),{'id':_0x5e5b86['getCurrentUser']()['userProfileId'],'section':_0x2e506f('0xbc9'),'fields':_0x2e506f('0x2285'),'sort':_0x2e506f('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x339fb9,_0xa9bbeb){const _0x2b55be=_0x339cd5;return _0xa9bbeb[_0x2b55be('0x1516')](_0x2b55be('0xe23'))?null:_0x339fb9[_0x2b55be('0x2322')](_0x2b55be('0x231d'),{'fields':_0x2b55be('0x3f0'),'id':_0xa9bbeb[_0x2b55be('0x24cc')]()[_0x2b55be('0x237f')]});}],'userProfileSection':[_0x339cd5('0x1318'),'Auth',function(_0x5da324,_0x5c62ff){const _0x376be1=_0x339cd5;return _0x5c62ff[_0x376be1('0x1516')](_0x376be1('0xe23'))?null:_0x5da324[_0x376be1('0x2322')](_0x376be1('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5c62ff[_0x376be1('0x24cc')]()[_0x376be1('0x237f')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x339cd5('0x218a')})['state'](_0x339cd5('0x3df'),{'url':_0x339cd5('0x206b'),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd45f5c,'controller':_0x339cd5('0x22cc')}},'resolve':{'company':[_0x339cd5('0x1318'),_0x339cd5('0xad0'),function(_0x4b8507,_0x4ce914){const _0x120dfb=_0x339cd5;return _0x4b8507[_0x120dfb('0x2322')](_0x120dfb('0x58c'),{'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','id':_0x4ce914['id']});}],'userProfileSection':[_0x339cd5('0x1318'),_0x339cd5('0x1b04'),function(_0x119d30,_0x52796d){const _0x1c6c57=_0x339cd5;return _0x119d30[_0x1c6c57('0x2322')](_0x1c6c57('0x22ca'),{'fields':_0x1c6c57('0xe2c'),'userProfileId':_0x52796d[_0x1c6c57('0x24cc')]()[_0x1c6c57('0x237f')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x339cd5('0x218a')})[_0x339cd5('0x249b')](_0x339cd5('0x59e'),{'url':_0x339cd5('0x94b'),'views':{'content@app':{'templateUrl':_0x4383ab,'controller':'GlobalCustomFieldsController\x20as\x20vm'}},'resolve':{'globalCustomFields':['apiResolver',function(_0x39a1b6){const _0x22954f=_0x339cd5;return _0x39a1b6['resolve'](_0x22954f('0x14ad'),{'fields':_0x22954f('0x1da0'),'sort':_0x22954f('0x1cee'),'ListId':_0x22954f('0x954'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x339cd5('0x1b04'),function(_0x157be9,_0x5765fa){const _0x298988=_0x339cd5;return _0x5765fa[_0x298988('0x1516')]('admin')?null:_0x157be9[_0x298988('0x2322')](_0x298988('0x231d'),{'fields':_0x298988('0x3f0'),'id':_0x5765fa[_0x298988('0x24cc')]()[_0x298988('0x237f')]});}],'userProfileSection':['apiResolver',_0x339cd5('0x1b04'),function(_0x3a37dc,_0xfc9cf2){const _0x38cbb0=_0x339cd5;return _0xfc9cf2[_0x38cbb0('0x1516')]('admin')?null:_0x3a37dc[_0x38cbb0('0x2322')](_0x38cbb0('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xfc9cf2[_0x38cbb0('0x24cc')]()['userProfileId'],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x339cd5('0x218a')}),_0x2b8da9['addPart'](_0x339cd5('0x16ba'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x36a'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),'md.data.table',_0x34e79e('0x8a4'),_0x34e79e('0x2246'),'ckeditor',_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),'angularMaterialFormBuilder',_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82'),_0x34e79e('0x21be')])[_0x34e79e('0x1a22')](_0x5eb3dc)[_0x34e79e('0xb44')]('CompaniesController',_0x1edc16)[_0x34e79e('0xb44')](_0x34e79e('0xef4'),_0x2559e6)[_0x34e79e('0xb44')](_0x34e79e('0x1dbd'),_0x52decb)[_0x34e79e('0xb44')](_0x34e79e('0x196f'),_0x2a334f)[_0x34e79e('0xb44')](_0x34e79e('0x25e7'),_0x158251)[_0x34e79e('0xb44')](_0x34e79e('0x1376'),_0x27f810)['controller']('ListagentaddController',_0x920962)[_0x34e79e('0xb44')](_0x34e79e('0x23eb'),_0x1a90bf)[_0x34e79e('0xb44')]('CreateOrEditCustomFieldDialogController',_0x480691)[_0x34e79e('0xb44')]('ListController',_0x2ec6fa)[_0x34e79e('0xb44')](_0x34e79e('0x3c0'),_0x3b84fc)['controller'](_0x34e79e('0x111b'),_0x58520c),_0x3ccaca[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),'$window',_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1713'),_0x34e79e('0x818')];function _0x3ccaca(_0x44eb8c,_0x390c26,_0xb5ea91,_0x512940,_0x291fb3,_0x31bb67,_0x2ff40e,_0x1a1c98,_0x31ff50,_0x3f2120,_0x5da1a8,_0x522933,_0x52aff4,_0x511112){const _0x22f4dc=_0x34e79e,_0x458e7f=this;_0x458e7f[_0x22f4dc('0x9cb')]=_0x3f2120['getCurrentUser'](),_0x458e7f[_0x22f4dc('0x1713')]=_0x52aff4?_0x52aff4:[],_0x458e7f['dispositions']=_0x511112,_0x458e7f[_0x22f4dc('0xd2b')]={'count':0x0,'rows':[]},_0x458e7f[_0x22f4dc('0x15c2')]=![],_0x458e7f[_0x22f4dc('0x9b9')]=!![],_0x458e7f[_0x22f4dc('0x63c')]=_0x1a1c98,_0x458e7f['userProfileSection']=_0x31ff50&&_0x31ff50[_0x22f4dc('0x338')]==0x1?_0x31ff50[_0x22f4dc('0x25df')][0x0]:null,_0x458e7f['crudPermissions']=_0x3f2120['parseCrudPermissions'](_0x458e7f[_0x22f4dc('0xec9')]?_0x458e7f[_0x22f4dc('0xec9')]['crudPermissions']:null),_0x458e7f[_0x22f4dc('0x135a')]={'fields':_0x22f4dc('0x6e9'),'type':_0x22f4dc('0x2e4'),'queuecallerexitreason':_0x22f4dc('0x2750')+','+_0x22f4dc('0x26a8'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x458e7f[_0x22f4dc('0x3e8')]=_0x355a5d,_0x458e7f[_0x22f4dc('0x644')]=_0x5df7b4,_0x458e7f[_0x22f4dc('0x2681')]=_0x423b35,_0x458e7f[_0x22f4dc('0x3d2')]=_0x42fba5,_0x458e7f[_0x22f4dc('0x44f')]=_0x57c01f,_0x458e7f[_0x22f4dc('0xc9a')]=_0x11590a,_0x5da1a8[_0x22f4dc('0x3e')](_0x22f4dc('0xd9b'),_0x458e7f[_0x22f4dc('0x44f')]),_0x5da1a8['on']('voiceQueueReport:update',_0x458e7f[_0x22f4dc('0xc9a')]),_0x2c498a();function _0x2c498a(){const _0x58fca5=_0x22f4dc;let _0x1a127b=_0x291fb3[_0x58fca5('0x155e')][_0x58fca5('0xced')](_0x58fca5('0xa48')+_0x458e7f[_0x58fca5('0x9cb')]['id']);if(_0x1a127b)_0x1a127b=JSON[_0x58fca5('0xe0b')](_0x1a127b),_0x1a127b&&_0x1a127b['query']&&(_0x458e7f[_0x58fca5('0x135a')]=_0x283545()['merge'](_0x1a127b[_0x58fca5('0x135a')],_0x283545()[_0x58fca5('0x5a9')](_0x458e7f[_0x58fca5('0x135a')],['sort',_0x58fca5('0x68e'),_0x58fca5('0x23f5')])),_0x458e7f['query']=_0x283545()[_0x58fca5('0x5a9')](_0x458e7f[_0x58fca5('0x135a')],_0x58fca5('0x916')));else{const _0xef617e={'$gte':_0x59f37a()()[_0x58fca5('0x13e4')]('month')[_0x58fca5('0x2827')](0x0,!![])[_0x58fca5('0x22b4')](),'$lte':_0x59f37a()()[_0x58fca5('0x142e')](_0x58fca5('0x2dc'))[_0x58fca5('0x2827')](0x0,!![])[_0x58fca5('0x22b4')]()};_0x458e7f['query']['createdAt']=_0xef617e;}_0x3f2120[_0x58fca5('0x1516')]('admin')?_0x2ff40e[_0x58fca5('0x1e6a')][_0x58fca5('0x138a')]({'id':_0x3f2120[_0x58fca5('0x24cc')]()['id'],'fields':_0x58fca5('0x1338'),'channel':_0x58fca5('0x1f60'),'type':'inbound','nolimit':!![]})[_0x58fca5('0x1714')][_0x58fca5('0x2788')](function(_0x3817eb){const _0x29014a=_0x58fca5;_0x458e7f['queues']=_0x3817eb||{'count':0x0,'rows':[]},_0x458e7f[_0x29014a('0xe30')]=_0x283545()['mapValues'](_0x283545()['keyBy'](_0x458e7f[_0x29014a('0x283e')]['rows'],_0x29014a('0x1a8d')),_0x29014a('0x1a8d'));})[_0x58fca5('0x1cb5')](function(_0x54b929){console['error'](_0x54b929);})[_0x58fca5('0x1ed8')](function(){_0x458e7f['quickFilters']=_0x3fb60(),_0x458e7f['getAbandonedCalls']();}):_0x2ff40e['userProfile'][_0x58fca5('0xa1')]({'id':_0x458e7f['currentUser'][_0x58fca5('0x237f')],'section':_0x58fca5('0x182e'),'channel':_0x58fca5('0x1f60'),'type':_0x58fca5('0x2e4'),'sort':_0x58fca5('0x1cee'),'nolimit':!![]})[_0x58fca5('0x1714')]['then'](function(_0x4dc93e){const _0x569b40=_0x58fca5;_0x458e7f[_0x569b40('0x283e')]=_0x4dc93e||{'count':0x0,'rows':[]},_0x458e7f[_0x569b40('0xe30')]=_0x283545()[_0x569b40('0x2402')](_0x283545()['keyBy'](_0x458e7f[_0x569b40('0x283e')][_0x569b40('0x25df')],_0x569b40('0x1a8d')),'name');})[_0x58fca5('0x1cb5')](function(_0x3a9edb){console['error'](_0x3a9edb);})[_0x58fca5('0x1ed8')](function(){const _0x23d775=_0x58fca5;_0x458e7f['quickFilters']=_0x3fb60(),_0x458e7f[_0x23d775('0x3e8')]();});}function _0x3fb60(){const _0x155686=_0x22f4dc;return[{'name':_0x155686('0x9ac'),'key':_0x155686('0x172'),'type':_0x155686('0x1012'),'label':_0x155686('0x1664')},{'name':_0x155686('0x262d'),'key':_0x155686('0x14a6'),'type':'select','label':_0x155686('0x2bd'),'options':_0x458e7f[_0x155686('0x1713')][_0x155686('0x25df')],'customOptions':[{'value':_0x155686('0x171e'),'translate':_0x155686('0xce3')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x155686('0xaa4'),'key':'queue','type':_0x155686('0x9a4'),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x458e7f[_0x155686('0x283e')][_0x155686('0x25df')]}];}function _0x355a5d(){const _0x5ad82b=_0x22f4dc;_0x458e7f[_0x5ad82b('0x9b9')]=![],_0x458e7f[_0x5ad82b('0x283e')][_0x5ad82b('0x338')]>0x0?(_0x458e7f[_0x5ad82b('0x135a')][_0x5ad82b('0x1ab4')]=_0x458e7f[_0x5ad82b('0x283e')]['count']===0x1?_0x458e7f['queues'][_0x5ad82b('0x25df')][0x0][_0x5ad82b('0x1a8d')]:_0x458e7f[_0x5ad82b('0x135a')]['queue'],_0x458e7f[_0x5ad82b('0x135a')][_0x5ad82b('0x19e')]=(_0x458e7f[_0x5ad82b('0x135a')]['page']-0x1)*_0x458e7f[_0x5ad82b('0x135a')][_0x5ad82b('0x68e')],_0x291fb3['localStorage'][_0x5ad82b('0x23dc')]('motion2.realtime.abandoned.voice.abandonedCalls:'+_0x458e7f[_0x5ad82b('0x9cb')]['id'],JSON['stringify']({'query':_0x283545()['omit'](_0x458e7f[_0x5ad82b('0x135a')],_0x5ad82b('0x1ab4'))})),_0x458e7f[_0x5ad82b('0x1808')]=_0x2ff40e['voiceQueueReport'][_0x5ad82b('0x1147')](_0x458e7f[_0x5ad82b('0x135a')],_0x44bf81)[_0x5ad82b('0x1714')]):_0x44bf81(null);}function _0x44bf81(_0x56fc50){const _0x360ec=_0x22f4dc;_0x458e7f[_0x360ec('0xd2b')]=_0x56fc50||{'count':0x0,'rows':[]},_0x458e7f['refresh']=!![];}function _0x5df7b4(){const _0x50c925=_0x22f4dc;_0x458e7f[_0x50c925('0x15c2')]=![],_0x458e7f['getAbandonedCalls']();}function _0x57c01f(_0x10f007){const _0x5e4c3c=_0x22f4dc,_0x455d5b=_0x5e4c3c('0x2e4');_0x10f007&&_0x458e7f[_0x5e4c3c('0xe30')]&&_0x458e7f[_0x5e4c3c('0x135a')][_0x5e4c3c('0x1d7')]===_0x455d5b&&_0x458e7f[_0x5e4c3c('0xe30')][_0x10f007['queue']]&&(_0x458e7f[_0x5e4c3c('0x15c2')]=!![]);}function _0x11590a(_0x5353c0){const _0x276d77=_0x22f4dc;if(_0x5353c0){const _0x593ba6=_0x283545()[_0x276d77('0x1855')](_0x458e7f[_0x276d77('0xd2b')]['rows'],['id',_0x5353c0['id']]);_0x593ba6>=0x0&&_0x283545()[_0x276d77('0x2503')](_0x458e7f[_0x276d77('0xd2b')]['rows'][_0x593ba6],_0x5353c0);}}function _0x423b35(_0x1eca6b,_0x1e90f6){const _0x3ba7d4=_0x22f4dc;_0x1eca6b&&_0x2ff40e['voiceQueueReport'][_0x3ba7d4('0x2740')]({'id':_0x1eca6b['id'],'lastAssignedTo':_0x1e90f6?_0x1e90f6['name']:null,'assigned':_0x1e90f6?!![]:![]})['$promise']['catch'](function(_0x402741){console['log'](_0x402741);});}function _0x42fba5(_0x848275){const _0x2de78f=_0x22f4dc;_0xb5ea91[_0x2de78f('0x2fa')]({'controller':_0x2de78f('0x93b'),'controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x2de78f('0x16b1')](_0x512940[_0x2de78f('0x945')]),'targetEvent':_0x848275,'resolve':{'globalDispositions':[_0x2de78f('0x1318'),function(_0x139643){const _0x501c4b=_0x2de78f;return _0x139643[_0x501c4b('0x2322')](_0x501c4b('0x2cf'),{'MailAccountId':_0x501c4b('0x954'),'FaxAccountId':'null','SmsAccountId':_0x501c4b('0x954'),'WhatsappAccountId':_0x501c4b('0x954'),'OpenchannelAccountId':_0x501c4b('0x954'),'ChatWebsiteId':_0x501c4b('0x954'),'ListId':_0x501c4b('0x954')});}]},'locals':{'dispositions':_0x458e7f[_0x2de78f('0x818')],'call':_0x848275}})[_0x2de78f('0x2788')](function(_0x10721d){const _0x49f594=_0x2de78f;if(_0x10721d){const _0x413148={'id':_0x848275['id'],'disposition':_0x10721d[_0x49f594('0x1c38')]||null,'secondDisposition':_0x10721d[_0x49f594('0x1caa')]||null,'thirdDisposition':_0x10721d['thirdLevel']||null};_0x2ff40e[_0x49f594('0x1715')]['update'](_0x413148)[_0x49f594('0x1714')][_0x49f594('0x1cb5')](function(_0x32900f){const _0x2737d7=_0x49f594;console[_0x2737d7('0x10df')](_0x32900f);});}});}let _0x43861c=!![],_0x13c365=0x1;_0x44eb8c[_0x22f4dc('0x1662')](_0x22f4dc('0x1569'),function(_0x12442d,_0x48e6f8){const _0x19e058=_0x22f4dc;_0x43861c?_0x390c26(function(){_0x43861c=![];}):(!_0x48e6f8&&(_0x13c365=_0x458e7f[_0x19e058('0x135a')][_0x19e058('0x23f5')]),_0x12442d!==_0x48e6f8&&(_0x458e7f[_0x19e058('0x135a')][_0x19e058('0x23f5')]=0x1),!_0x12442d&&(_0x458e7f['query']['page']=_0x13c365),_0x458e7f[_0x19e058('0x3e8')]());}),_0x44eb8c['$on'](_0x22f4dc('0x26ac'),function(){const _0x27a2a9=_0x22f4dc;_0x5da1a8[_0x27a2a9('0x277f')](_0x27a2a9('0xd9b')),_0x5da1a8[_0x27a2a9('0x277f')](_0x27a2a9('0x1585'));});}const _0xbc51f=_0x3ccaca;_0x87e346[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x135d'),'pauses',_0x34e79e('0x1713'),'rpcAgents',_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1fc6'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x16e3')];function _0x87e346(_0x1d5852,_0xcdf04a,_0x346960,_0x23c239,_0x4347f0,_0x3ac46d,_0x2c4d41,_0x20c9cd,_0x4d5dda,_0x3e5b60,_0x45366c,_0x299068,_0x4080ab,_0x319581,_0x38c2a1,_0x466880,_0x3ad3a4,_0x26bd8c){const _0x2e5e43=_0x34e79e,_0x2e837b=this,_0x1b6c09=['userpic',_0x2e5e43('0x7c2'),_0x2e5e43('0x813'),'lastPauseAt','pauseType',_0x2e5e43('0x233e'),_0x2e5e43('0x2838'),_0x2e5e43('0x32e'),'chatPause',_0x2e5e43('0x1098'),'mailPause',_0x2e5e43('0xfd5'),_0x2e5e43('0x924'),'faxPause',_0x2e5e43('0x2a1'),_0x2e5e43('0x4e0'),_0x2e5e43('0xde1'),'mailCapacity',_0x2e5e43('0x27b7'),_0x2e5e43('0x982'),_0x2e5e43('0xc8b'),_0x2e5e43('0xc78'),_0x2e5e43('0x7af'),_0x2e5e43('0x113a'),_0x2e5e43('0x1f88'),_0x2e5e43('0x1d37'),_0x2e5e43('0x76c'),_0x2e5e43('0x25d5'),_0x2e5e43('0x18a3'),_0x2e5e43('0x1a75'),_0x2e5e43('0x698'),'whatsappStatus','faxStatus',_0x2e5e43('0x1536'),_0x2e5e43('0x1eeb'),_0x2e5e43('0x320'),'mailStatusTime',_0x2e5e43('0x27b0'),_0x2e5e43('0x1ac7'),'faxStatusTime',_0x2e5e43('0x48b'),_0x2e5e43('0x1ab4'),_0x2e5e43('0xdb6'),_0x2e5e43('0x12b5'),'phoneBarEnableScreenRecordingByAgent',_0x2e5e43('0xafd')],_0xd90bde=[_0x2e5e43('0x23a5'),'openchannelPause',_0x2e5e43('0x20cd'),'smsPause',_0x2e5e43('0x924'),'faxPause',_0x2e5e43('0x2a1'),_0x2e5e43('0x7c2')];_0x2e837b[_0x2e5e43('0x9cb')]=_0x466880[_0x2e5e43('0x24cc')](),_0x2e837b[_0x2e5e43('0x27be')]=[_0x2e5e43('0x26f8'),_0x2e5e43('0x11c3'),_0x2e5e43('0xed9'),_0x2e5e43('0x2097'),_0x2e5e43('0x1af6')],_0x2e837b[_0x2e5e43('0x225d')]=_0x2c4d41||{'count':0x0,'rows':[]},_0x2e837b[_0x2e5e43('0x130d')]=_0x3ad3a4,_0x2e837b[_0x2e5e43('0x63c')]=_0x319581,_0x2e837b[_0x2e5e43('0xec9')]=_0x38c2a1&&_0x38c2a1['count']==0x1?_0x38c2a1[_0x2e5e43('0x25df')][0x0]:null,_0x2e837b[_0x2e5e43('0xe28')]=_0x466880['parseCrudPermissions'](_0x2e837b[_0x2e5e43('0xec9')]?_0x2e837b['userProfileSection'][_0x2e5e43('0xe28')]:null),_0x2e837b[_0x2e5e43('0x1713')]=_0x20c9cd?_0x283545()[_0x2e5e43('0x13cf')](_0x20c9cd['rows']?_0x20c9cd[_0x2e5e43('0x25df')]:[],'id'):{},_0x2e837b[_0x2e5e43('0x1c55')]=_0x4d5dda?_0x283545()['keyBy'](_0x4d5dda[_0x2e5e43('0x25df')]?_0x4d5dda[_0x2e5e43('0x25df')]:[],'id'):{},_0x2e837b[_0x2e5e43('0x26ed')]={},_0x2e837b[_0x2e5e43('0x374')]=![],_0x2e837b['order']=[],_0x2e837b['agentInternal']={};for(const _0x536f28 in _0x2e837b[_0x2e5e43('0x1713')]){typeof _0x2e837b[_0x2e5e43('0x1713')][_0x536f28]!==_0x2e5e43('0xedb')&&(_0x2e837b['agents'][_0x536f28]['init']=!![]);}_0x2e837b[_0x2e5e43('0x135a')]={'limit':0xa,'page':0x1,'order':_0x2e5e43('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0x2e837b[_0x2e5e43('0x192f')]=_0x120f8f,_0x2e837b[_0x2e5e43('0x2025')]=_0xed339e,_0x2e837b['pause']=_0x69ebed,_0x2e837b[_0x2e5e43('0xc00')]=_0x304179,_0x2e837b[_0x2e5e43('0xa35')]=_0x1f541a,_0x2e837b[_0x2e5e43('0xd10')]=_0x42b8b7,_0x2e837b['getAgentGlobalStatus']=_0x469e2e,_0x2e837b[_0x2e5e43('0x192')]=_0x555a6a,_0x2e837b[_0x2e5e43('0xaef')]=_0x50a6ba,_0x2e837b[_0x2e5e43('0x17f9')]=_0x12071e,_0x2e837b[_0x2e5e43('0x158d')]=_0x1dc333,_0x2e837b[_0x2e5e43('0x2409')]=_0x70e9,_0x2e837b[_0x2e5e43('0x122e')]=_0xc91757,_0x2e837b[_0x2e5e43('0x2826')]=_0x4449a7,_0x2e837b[_0x2e5e43('0xb61')]=_0x35e0f8,_0x2e837b[_0x2e5e43('0x1e03')]=_0x35d9f9,_0x45366c['on'](_0x2e5e43('0x71'),_0x2e837b[_0x2e5e43('0x158d')]),_0x45366c['on'](_0x2e5e43('0x1cb6'),_0x2e837b[_0x2e5e43('0x2409')]),_0x45366c['on']('user:agentconnect',_0x2e837b[_0x2e5e43('0x2826')]),_0x45366c['on'](_0x2e5e43('0x116b'),_0x2e837b[_0x2e5e43('0xb61')]),_0xc91757();let _0x4f0410=_0x26bd8c(function(){const _0x158292=_0x2e5e43;_0x2e837b[_0x158292('0x374')]&&(_0x2e837b[_0x158292('0x374')]=![],_0xc91757());},0x3e7);function _0xc91757(){const _0x46644e=_0x2e5e43;_0x2e837b[_0x46644e('0x374')]=![];const _0x218f0c=_0xcdf04a[_0x46644e('0x2311')]();_0x2e837b['promise']=_0x218f0c['promise'],_0x2e837b[_0x46644e('0xfe8')]=[],_0x2e837b['order']=[],_0x283545()[_0x46644e('0x1b')](_0x2e837b[_0x46644e('0x1713')],function(_0x194ab8,_0x156184){const _0x3d8814=_0x46644e;_0x2e837b[_0x3d8814('0x1c55')][_0x156184]&&_0x283545()[_0x3d8814('0x2503')](_0x194ab8,_0x283545()[_0x3d8814('0x41b')](_0x283545()['omit'](_0x2e837b['rpcAgents'][_0x156184],_0xd90bde),_0x1b6c09)),_0x469e2e(_0x194ab8),_0x194ab8[_0x3d8814('0x7c2')]?(_0x2e837b[_0x3d8814('0xfe8')]['push'](_0x194ab8),_0x2e837b['agentInternal'][_0x194ab8['internal']]=_0x156184):_0x194ab8[_0x3d8814('0xf3b')]=_0x283545()['toNumber'](_0x59f37a()()['format']('x'));});_0x2e837b[_0x46644e('0x135a')][_0x46644e('0x52c')]&&_0x283545()[_0x46644e('0x1a90')](_0x2e837b[_0x46644e('0xfe8')],function(_0x3b8ea5){const _0x3796cb=_0x46644e;return _0x3b8ea5[_0x3796cb('0xee3')]!==_0x2e837b[_0x3796cb('0x135a')][_0x3796cb('0x52c')];});_0x2e837b['query'][_0x46644e('0xf25')]&&_0x283545()[_0x46644e('0x1a90')](_0x2e837b[_0x46644e('0xfe8')],function(_0x1294fa){const _0x2a28f8=_0x46644e;return _0x1294fa[_0x2a28f8('0x11e9')]!==_0x2e837b[_0x2a28f8('0x135a')][_0x2a28f8('0xf25')];});_0x2e837b[_0x46644e('0x135a')]['filter']&&_0x283545()[_0x46644e('0x1a90')](_0x2e837b[_0x46644e('0xfe8')],function(_0x3347be){const _0x2066ea=_0x46644e;return _0x3347be['fullname'][_0x2066ea('0xc2e')]()[_0x2066ea('0x821')](_0x2e837b[_0x2066ea('0x135a')][_0x2066ea('0x916')][_0x2066ea('0xc2e')]())<0x0;});_0x2e837b[_0x46644e('0xfe8')]=_0x311163(_0x2e837b[_0x46644e('0xfe8')]);const _0x2aecf2=(_0x2e837b[_0x46644e('0x135a')]['page']-0x1)*_0x2e837b['query']['limit'];_0x2e837b[_0x46644e('0x26ed')]=_0x283545()[_0x46644e('0x280')](_0x2e837b[_0x46644e('0xfe8')],_0x2aecf2)[_0x46644e('0x845')](0x0,_0x2e837b[_0x46644e('0x135a')][_0x46644e('0x68e')]);for(let _0x159d08=0x0;_0x159d08<_0x2e837b['paginatedAgents']['length'];_0x159d08+=0x1){_0x2e837b[_0x46644e('0x1dc2')]['push'](_0x2e837b[_0x46644e('0x26ed')][_0x159d08]['id']);}_0x218f0c['resolve'](),_0x2e837b[_0x46644e('0x374')]=!![];}function _0x1dc333(_0x501d48){const _0x363980=_0x2e5e43;_0x2e837b['agents'][_0x501d48['id']]&&(_0x283545()['merge'](_0x2e837b['agents'][_0x501d48['id']],_0x283545()[_0x363980('0x41b')](_0x283545()[_0x363980('0x5a9')](_0x501d48,_0xd90bde),_0x1b6c09)),_0x283545()['merge'](_0x2e837b[_0x363980('0x1c55')][_0x501d48['id']],_0x283545()[_0x363980('0x41b')](_0x283545()[_0x363980('0x5a9')](_0x501d48,_0xd90bde),_0x1b6c09)),_0x469e2e(_0x2e837b[_0x363980('0x1713')][_0x501d48['id']]));}function _0x70e9(_0x4d3081){const _0x54d951=_0x2e5e43;_0x2e837b['agents'][_0x4d3081['id']]&&(_0x283545()[_0x54d951('0x2503')](_0x2e837b[_0x54d951('0x1713')][_0x4d3081['id']],_0x283545()[_0x54d951('0x41b')](_0x4d3081,_0x1b6c09)),_0x283545()['merge'](_0x2e837b[_0x54d951('0x1c55')][_0x4d3081['id']],_0x283545()['pick'](_0x4d3081,_0x1b6c09)),_0x4d3081[_0x54d951('0x233e')]&&(_0x2e837b[_0x54d951('0x1713')][_0x4d3081['id']]['globalStatusTime']=_0x4d3081[_0x54d951('0x233e')],_0x2e837b[_0x54d951('0x1c55')][_0x4d3081['id']][_0x54d951('0xf3b')]=_0x4d3081[_0x54d951('0x233e')]),_0x469e2e(_0x2e837b['agents'][_0x4d3081['id']]));}function _0x4449a7(_0x2dfdbe){const _0xde579b=_0x2e5e43;_0x2e837b[_0xde579b('0x1713')][_0x2e837b[_0xde579b('0x1564')][_0x2dfdbe['destaccountcode']]]&&(_0x283545()[_0xde579b('0x2503')](_0x2e837b[_0xde579b('0x1713')][_0x2e837b[_0xde579b('0x1564')][_0x2dfdbe[_0xde579b('0x7f4')]]],_0x283545()[_0xde579b('0x41b')](_0x2dfdbe,[_0xde579b('0x1ab4'),_0xde579b('0xdb6')])),_0x283545()[_0xde579b('0x2503')](_0x2e837b[_0xde579b('0x1c55')][_0x2e837b[_0xde579b('0x1564')][_0x2dfdbe[_0xde579b('0x7f4')]]],_0x283545()['pick'](_0x2dfdbe,[_0xde579b('0x1ab4'),_0xde579b('0xdb6')])));}function _0x35e0f8(_0x21a383){const _0x524d2d=_0x2e5e43;_0x2e837b['agents'][_0x2e837b['agentInternal'][_0x21a383[_0x524d2d('0x7f4')]]]&&(_0x2e837b[_0x524d2d('0x1713')][_0x2e837b[_0x524d2d('0x1564')][_0x21a383[_0x524d2d('0x7f4')]]]=_0x283545()[_0x524d2d('0x5a9')](_0x2e837b[_0x524d2d('0x1713')][_0x2e837b['agentInternal'][_0x21a383[_0x524d2d('0x7f4')]]],['queue','destconnectedlinenum']),_0x2e837b[_0x524d2d('0x1c55')][_0x2e837b[_0x524d2d('0x1564')][_0x21a383[_0x524d2d('0x7f4')]]]=_0x283545()[_0x524d2d('0x5a9')](_0x2e837b['rpcAgents'][_0x2e837b['agentInternal'][_0x21a383['destaccountcode']]],[_0x524d2d('0x1ab4'),_0x524d2d('0xdb6')]));}function _0x120f8f(_0x114b72){const _0x4697ce=_0x2e5e43;return _0x3e5b60[_0x4697ce('0x1e6a')][_0x4697ce('0x192f')]({'id':_0x114b72['id'],'device':_0x4697ce('0x548'),'agent_id':_0x114b72['id'],'agent_name':_0x114b72['name']})['$promise'][_0x4697ce('0x2788')](function(){const _0xfce766=_0x4697ce;_0x299068[_0xfce766('0x173b')]({'title':_0xfce766('0x256b'),'msg':_0x114b72[_0xfce766('0x2831')]+_0xfce766('0x12e2')}),_0x2e837b[_0xfce766('0x1713')][_0x114b72['id']]&&(_0x2e837b[_0xfce766('0x1713')][_0x114b72['id']][_0xfce766('0x7c2')]=![]),_0x2e837b[_0xfce766('0x1c55')][_0x114b72['id']]&&(_0x2e837b[_0xfce766('0x1c55')][_0x114b72['id']][_0xfce766('0x7c2')]=![]),_0xc91757();})[_0x4697ce('0x1cb5')](function(_0x36db77){const _0x30418d=_0x4697ce;_0x299068[_0x30418d('0x5e8')]({'title':_0x36db77[_0x30418d('0x1b51')]?_0x30418d('0x15d1')+_0x36db77[_0x30418d('0x1b51')]+_0x30418d('0x1b0b')+_0x36db77[_0x30418d('0x22ce')]:_0x30418d('0x184d'),'msg':_0x36db77[_0x30418d('0x11fc')]?JSON[_0x30418d('0x1be0')](_0x36db77[_0x30418d('0x11fc')][_0x30418d('0x15e2')]):_0x36db77['toString']()});});}function _0x69ebed(_0x590bc7,_0x2e21e8){const _0x5cae12=_0x2e5e43;return _0x3e5b60['user']['pause']({'id':_0x590bc7['id'],'type':_0x2e21e8})[_0x5cae12('0x1714')]['then'](function(_0x4b8216){const _0x2fe6c3=_0x5cae12;_0x2e837b['agents'][_0x590bc7['id']]&&_0x283545()[_0x2fe6c3('0x2503')](_0x2e837b[_0x2fe6c3('0x1713')][_0x590bc7['id']],_0x283545()['pick'](_0x4b8216,_0x1b6c09)),_0x2e837b['rpcAgents'][_0x590bc7['id']]&&_0x283545()[_0x2fe6c3('0x2503')](_0x2e837b['rpcAgents'][_0x590bc7['id']],_0x283545()[_0x2fe6c3('0x41b')](_0x4b8216,_0x1b6c09)),_0x469e2e(_0x2e837b[_0x2fe6c3('0x1713')][_0x590bc7['id']]);})[_0x5cae12('0x1cb5')](function(_0x94d2b9){const _0x4d7114=_0x5cae12;_0x299068[_0x4d7114('0x5e8')]({'title':_0x94d2b9[_0x4d7114('0x1b51')]?_0x4d7114('0x15d1')+_0x94d2b9['status']+_0x4d7114('0x1b0b')+_0x94d2b9[_0x4d7114('0x22ce')]:_0x4d7114('0x184d'),'msg':_0x94d2b9[_0x4d7114('0x11fc')]?JSON[_0x4d7114('0x1be0')](_0x94d2b9[_0x4d7114('0x11fc')]['message']):_0x94d2b9['toString']()});});}function _0x304179(_0x533f01){const _0x3045a0=_0x2e5e43;return _0x3e5b60[_0x3045a0('0x1e6a')][_0x3045a0('0x1826')]({'id':_0x533f01['id']})['$promise'][_0x3045a0('0x2788')](function(_0x309801){const _0x1a7e9d=_0x3045a0;_0x2e837b[_0x1a7e9d('0x1713')][_0x533f01['id']]&&_0x283545()[_0x1a7e9d('0x2503')](_0x2e837b[_0x1a7e9d('0x1713')][_0x533f01['id']],_0x283545()['pick'](_0x309801,_0x1b6c09)),_0x2e837b[_0x1a7e9d('0x1c55')][_0x533f01['id']]&&_0x283545()['merge'](_0x2e837b[_0x1a7e9d('0x1c55')][_0x533f01['id']],_0x283545()[_0x1a7e9d('0x41b')](_0x309801,_0x1b6c09)),_0x469e2e(_0x2e837b['agents'][_0x533f01['id']]);})[_0x3045a0('0x1cb5')](function(_0x2f695d){const _0x2f1ea9=_0x3045a0;_0x299068[_0x2f1ea9('0x5e8')]({'title':_0x2f695d[_0x2f1ea9('0x1b51')]?_0x2f1ea9('0x15d1')+_0x2f695d[_0x2f1ea9('0x1b51')]+_0x2f1ea9('0x1b0b')+_0x2f695d[_0x2f1ea9('0x22ce')]:'api.staff.save','msg':_0x2f695d[_0x2f1ea9('0x11fc')]?JSON['stringify'](_0x2f695d['data']['message']):_0x2f695d[_0x2f1ea9('0x17df')]()});});}function _0x1f541a(_0x2fcf44){const _0x560de8=_0x2e5e43;_0x23c239[_0x560de8('0x2fa')](_0x23c239[_0x560de8('0x204f')]()[_0x560de8('0x1e4e')](!![])[_0x560de8('0x14e4')](_0x560de8('0xcbb'))[_0x560de8('0x93e')](_0x560de8('0x122a'))['ok']('Ok')[_0x560de8('0x24d0')](_0x2fcf44));}function _0xed339e(_0x59a159,_0x4981af){const _0x20624c=_0x2e5e43;_0x23c239[_0x20624c('0x2fa')]({'controller':_0x20624c('0x2b2'),'controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular['element'](_0x4347f0[_0x20624c('0x945')]),'targetEvent':_0x4981af,'clickOutsideToClose':!![],'locals':{'agent':_0x59a159,'agents':[],'channel':_0x20624c('0x1f60'),'direction':'inbound','crudPermissions':_0x2e837b[_0x20624c('0xe28')]}});}function _0x555a6a(_0x5dbcde){const _0x3396b0=_0x2e5e43;return _0x5dbcde===_0x3396b0('0x619')||_0x5dbcde===_0x3396b0('0x1d48');}function _0x50a6ba(_0x144f3c){const _0x415e3c=_0x2e5e43;return _0x144f3c===_0x415e3c('0x619');}function _0x12071e(_0x3d8d21){const _0x29590b=_0x2e5e43;return _0x3d8d21===_0x29590b('0x1d48');}function _0x569e49(_0x1137b8){const _0x193564=_0x2e5e43;return _0x1137b8===_0x193564('0x124c')||_0x1137b8===_0x193564('0x119')||_0x1137b8===_0x193564('0x27f0')||_0x1137b8===_0x193564('0x26f8')||_0x283545()['isNil'](_0x1137b8);}function _0x42b8b7(_0x170c50,_0x18654b){const _0x3ed46c=_0x2e5e43;if(_0x18654b===_0x3ed46c('0x1f60')){if(_0x170c50[_0x18654b+_0x3ed46c('0x21d8')]!==_0x3ed46c('0x124c'))return _0x170c50[_0x18654b+_0x3ed46c('0x21d8')];if(_0x170c50[_0x18654b+_0x3ed46c('0x14f6')])return _0x170c50[_0x18654b+_0x3ed46c('0x21d8')]='pause',_0x3ed46c('0x619');return _0x3ed46c('0x124c');}else{if(_0x170c50[_0x18654b+'Pause'])return _0x170c50[_0x18654b+'Status']=_0x3ed46c('0x619'),_0x3ed46c('0x619');return _0x170c50[_0x18654b+_0x3ed46c('0x21d8')];}}function _0x469e2e(_0x54bc6f){const _0x36512a=_0x2e5e43;let _0x12ee69='unknown';if(_0x283545()[_0x36512a('0x111e')]([_0x42b8b7(_0x54bc6f,_0x36512a('0x1f60')),_0x42b8b7(_0x54bc6f,_0x36512a('0x231')),_0x42b8b7(_0x54bc6f,_0x36512a('0x2795')),_0x42b8b7(_0x54bc6f,'openchannel'),_0x42b8b7(_0x54bc6f,_0x36512a('0x529')),_0x42b8b7(_0x54bc6f,_0x36512a('0x195d')),_0x42b8b7(_0x54bc6f,_0x36512a('0x10cf'))],_0x555a6a))_0x12ee69=_0x36512a('0x619');else{if(_0x283545()[_0x36512a('0xc5d')]([_0x42b8b7(_0x54bc6f,_0x36512a('0x1f60')),_0x42b8b7(_0x54bc6f,'chat'),_0x42b8b7(_0x54bc6f,_0x36512a('0x2795')),_0x42b8b7(_0x54bc6f,_0x36512a('0x18aa')),_0x42b8b7(_0x54bc6f,_0x36512a('0x529')),_0x42b8b7(_0x54bc6f,_0x36512a('0x195d')),_0x42b8b7(_0x54bc6f,_0x36512a('0x10cf'))],_0x555a6a))_0x12ee69='*pause';else _0x283545()[_0x36512a('0x111e')]([_0x42b8b7(_0x54bc6f,_0x36512a('0x1f60')),_0x42b8b7(_0x54bc6f,_0x36512a('0x231')),_0x42b8b7(_0x54bc6f,_0x36512a('0x2795')),_0x42b8b7(_0x54bc6f,'openchannel'),_0x42b8b7(_0x54bc6f,_0x36512a('0x529')),_0x42b8b7(_0x54bc6f,'whatsapp'),_0x42b8b7(_0x54bc6f,_0x36512a('0x10cf'))],_0x569e49)?_0x12ee69=_0x36512a('0x124c'):_0x12ee69=_0x36512a('0xed9');}_0x54bc6f[_0x36512a('0xee3')]!==_0x12ee69&&(_0x54bc6f[_0x36512a('0xee3')]=_0x12ee69,_0x54bc6f['init']?(_0x54bc6f['init']=![],_0x54bc6f[_0x36512a('0xf3b')]=_0x555a6a(_0x12ee69)?_0x283545()[_0x36512a('0x420')](_0x59f37a()(_0x54bc6f[_0x36512a('0x233e')])[_0x36512a('0x22b4')]('x')):_0x283545()[_0x36512a('0xb0a')]([_0x54bc6f['voiceStatusTime'],_0x54bc6f['chatStatusTime'],_0x54bc6f['mailStatusTime'],_0x54bc6f[_0x36512a('0x27b0')],_0x54bc6f['whatsappStatusTime'],_0x54bc6f[_0x36512a('0x320')],_0x54bc6f[_0x36512a('0xbc')]])):_0x54bc6f[_0x36512a('0xf3b')]=_0x283545()[_0x36512a('0x420')](_0x59f37a()()[_0x36512a('0x22b4')]('x')));}function _0x311163(_0xc3e3f6){const _0x3166e9=_0x2e5e43,_0x57d3ff=_0x283545()[_0x3166e9('0x993')](_0x2e837b[_0x3166e9('0x135a')][_0x3166e9('0x1dc2')],'-')?'desc':_0x3166e9('0xe07');return _0x283545()[_0x3166e9('0xf87')](_0xc3e3f6,[_0x2e837b[_0x3166e9('0x135a')][_0x3166e9('0x1dc2')][_0x3166e9('0x10a4')]('-','')],[_0x57d3ff]);}function _0x3eaa75(){_0x4f0410&&(_0x26bd8c['cancel'](_0x4f0410),_0x4f0410=null);}function _0x35d9f9(_0x51276d,_0x282438){const _0x2a6975=_0x2e5e43;return _0x3e5b60[_0x2a6975('0x1e6a')][_0x2a6975('0x2740')]({'id':_0x51276d['id']},{'screenrecording':_0x282438})['$promise']['catch'](function(_0x2ace86){const _0x4d9613=_0x2a6975;_0x299068[_0x4d9613('0x5e8')]({'title':_0x2ace86[_0x4d9613('0x1b51')]?_0x4d9613('0x15d1')+_0x2ace86[_0x4d9613('0x1b51')]+_0x4d9613('0x1b0b')+_0x2ace86[_0x4d9613('0x22ce')]:'api.user.update','msg':_0x2ace86['data']?JSON[_0x4d9613('0x1be0')](_0x2ace86[_0x4d9613('0x11fc')][_0x4d9613('0x15e2')]):_0x2ace86[_0x4d9613('0x17df')]()});});}_0x1d5852[_0x2e5e43('0x651')]('$destroy',function(){const _0x17b20c=_0x2e5e43;_0x45366c['removeAllListeners'](_0x17b20c('0x71')),_0x45366c['removeAllListeners']('user:update'),_0x45366c[_0x17b20c('0x277f')](_0x17b20c('0x1958')),_0x45366c[_0x17b20c('0x277f')]('user:agentcomplete'),_0x3eaa75();});}const _0x589a12=_0x87e346;_0x599f67[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$timeout','api',_0x34e79e('0xd6f'),_0x34e79e('0x1ef1'),'helperClasses'];function _0x599f67(_0x3eba82,_0x3fe535,_0x439ec3,_0x73efaf,_0x103b16,_0x287be8){const _0x35a701=_0x34e79e,_0x1190e8=this;_0x1190e8['calls']=_0x103b16||{'rows':[],'count':0x0},_0x1190e8[_0x35a701('0x135a')]={'limit':0xa,'page':0x1},_0x1190e8[_0x35a701('0x2038')]=_0x287be8[_0x35a701('0xd45')],_0x73efaf['on']('voice_outbound_channel:save',_0x1190e8['onSave']),_0x73efaf['on'](_0x35a701('0xe0'),_0x1190e8[_0x35a701('0xf2e')]);function _0x27d4e4(_0x241879){const _0xeab15a=_0x35a701,_0x17bbc5=_0x283545()[_0xeab15a('0x20e8')](_0x1190e8[_0xeab15a('0x565')][_0xeab15a('0x25df')],{'channel':_0x241879[_0xeab15a('0x2645')]});_0x241879[_0xeab15a('0x748')]=_0x241879['dialstatus']?'up':_0xeab15a('0x215c');if(_0x17bbc5)_0x283545()[_0xeab15a('0x2503')](_0x17bbc5,_0x241879);else _0x241879[_0xeab15a('0x2645')]&&_0x1190e8['calls'][_0xeab15a('0x25df')][_0xeab15a('0x13e3')](_0x241879);}function _0x19d55b(_0x1f5c58){const _0x4d209f=_0x35a701,_0x1ebcfc=_0x283545()[_0x4d209f('0x1855')](_0x1190e8[_0x4d209f('0x565')]['rows'],{'channel':_0x1f5c58[_0x4d209f('0x2645')]});_0x1ebcfc>=0x0&&(_0x1190e8['calls'][_0x4d209f('0x25df')][_0x1ebcfc]['status']=_0x4d209f('0x42c')),_0x3fe535(function(){const _0x5fe7c0=_0x4d209f;_0x1190e8[_0x5fe7c0('0x565')]['rows'][_0x5fe7c0('0x722')](_0x1ebcfc,0x1);},0x1388);}_0x3eba82[_0x35a701('0x651')](_0x35a701('0x26ac'),function(){const _0x2bd42b=_0x35a701;_0x73efaf[_0x2bd42b('0x277f')](_0x2bd42b('0x1434')),_0x73efaf[_0x2bd42b('0x277f')]('voice_outbound_channel:remove');}),_0x1190e8[_0x35a701('0x158d')]=_0x27d4e4,_0x1190e8[_0x35a701('0xf2e')]=_0x19d55b;}const _0x1f8dd8=_0x599f67;_0x9abc57[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),'$mdDialog','agents','queues','rpcVoiceQueuesChannels',_0x34e79e('0x519'),'socket',_0x34e79e('0x1fc6'),_0x34e79e('0xd57'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x1b04')];function _0x9abc57(_0x374975,_0x390c93,_0x49af1c,_0x3482d6,_0x5eca2b,_0x1f0540,_0x22ab8a,_0x4bd08b,_0xcf3b12,_0x5824d6,_0x3c70a7,_0x3581e6,_0x5acf81){const _0x85d96b=_0x34e79e,_0x4a29d3=this;_0x4a29d3['currentUser']=_0x5acf81['getCurrentUser'](),_0x4a29d3[_0x85d96b('0x1713')]=_0x3482d6||{'count':0x0,'rows':[]},_0x4a29d3[_0x85d96b('0x283e')]=_0x5eca2b?_0x283545()[_0x85d96b('0x13cf')](_0x5eca2b[_0x85d96b('0x25df')]?_0x5eca2b['rows']:[],_0x85d96b('0x1a8d')):{},_0x4a29d3[_0x85d96b('0x1d2b')]=_0x1f0540?_0x283545()['keyBy'](_0x1f0540[_0x85d96b('0x25df')]?_0x283545()['filter'](_0x1f0540[_0x85d96b('0x25df')],{'type':_0x85d96b('0x2e4')}):[],'uniqueid'):{},_0x4a29d3[_0x85d96b('0x72')]={},_0x4a29d3[_0x85d96b('0x63c')]=_0x3c70a7,_0x4a29d3[_0x85d96b('0xec9')]=_0x3581e6&&_0x3581e6[_0x85d96b('0x338')]==0x1?_0x3581e6[_0x85d96b('0x25df')][0x0]:null,_0x4a29d3[_0x85d96b('0xe28')]=_0x5acf81['parseCrudPermissions'](_0x4a29d3['userProfileSection']?_0x4a29d3[_0x85d96b('0xec9')][_0x85d96b('0xe28')]:null),_0x4a29d3[_0x85d96b('0x3be')]={'limit':0xa,'page':0x1},_0x4a29d3[_0x85d96b('0xcb9')]=_0x28cf03,_0x4a29d3[_0x85d96b('0x11ad')]=_0x17a2da,_0x4a29d3[_0x85d96b('0x158d')]=_0x1b074f,_0x4a29d3[_0x85d96b('0xf2e')]=_0x20968d,_0x4a29d3['hangup']=_0x1f096e,_0x4a29d3[_0x85d96b('0x1a61')]=_0x37a232,_0x4a29d3['redirectToNumber']=_0x142764,_0x4bd08b['on'](_0x85d96b('0x21fe'),_0x4a29d3[_0x85d96b('0x158d')]),_0x4bd08b['on']('voice_queue_channel:remove',_0x4a29d3['onRemove']);function _0x28cf03(_0x563f00){const _0x1b4858=_0x85d96b;return _0x283545()[_0x1b4858('0x634')](_0x563f00);}function _0x17a2da(){const _0x3170bb=_0x85d96b;_0x283545()[_0x3170bb('0x1b')](_0x4a29d3[_0x3170bb('0x1d2b')],function(_0x464a51,_0x2d6d28){const _0x51f71b=_0x3170bb;_0x283545()['find'](_0x4a29d3[_0x51f71b('0x283e')],{'name':_0x464a51['name']})&&(_0x4a29d3[_0x51f71b('0x72')][_0x2d6d28]=_0x464a51);});}function _0x1b074f(_0x333c60){const _0x503d4a=_0x85d96b;_0x333c60['type']==='inbound'&&(_0x283545()[_0x503d4a('0x20e8')](_0x4a29d3['queues'],{'name':_0x333c60['name']})&&(_0x4a29d3[_0x503d4a('0x72')][_0x333c60[_0x503d4a('0x1be7')]]=_0x333c60));}function _0x20968d(_0x1e12da){const _0x30ff86=_0x85d96b;_0x4a29d3[_0x30ff86('0x72')][_0x1e12da['uniqueid']]&&delete _0x4a29d3[_0x30ff86('0x72')][_0x1e12da['uniqueid']];}function _0x1f096e(_0x4db1df){const _0x3bc3c0=_0x85d96b;return _0x22ab8a[_0x3bc3c0('0x1bfc')]['getVoiceQueuesChannelHangup']({'uniqueid':_0x4db1df})['$promise'][_0x3bc3c0('0x2788')](function(_0x423202){const _0x2408d7=_0x3bc3c0;_0x5824d6[_0x2408d7('0x173b')]({'title':_0x2408d7('0x1487')+_0x4db1df+'\x20properly\x20hangup!','msg':_0x423202[_0x2408d7('0x15e2')]||''});})[_0x3bc3c0('0x1cb5')](function(_0x313632){const _0x161608=_0x3bc3c0;_0x5824d6[_0x161608('0x5e8')]({'title':_0x313632[_0x161608('0x1b51')]+_0x161608('0x1b0b')+_0x313632[_0x161608('0x22ce')],'msg':JSON['stringify'](_0x313632[_0x161608('0x11fc')])||_0x313632[_0x161608('0x15e2')]['join']('\x20')});});}function _0x37a232(_0x24e43f,_0x5131cc,_0xd4cb68){const _0x1aa28b=_0x85d96b;return _0x22ab8a['rpc'][_0x1aa28b('0x876')]({'uniqueid':_0x24e43f,'exten':_0x5131cc,'context':_0xd4cb68})[_0x1aa28b('0x1714')][_0x1aa28b('0x2788')](function(_0x4d49e4){const _0xa45780=_0x1aa28b;_0x5824d6[_0xa45780('0x173b')]({'title':_0xa45780('0x1487')+_0x24e43f+_0xa45780('0x24d8'),'msg':_0x4d49e4[_0xa45780('0x15e2')]||''});})[_0x1aa28b('0x1cb5')](function(_0xc27441){const _0x90c292=_0x1aa28b;_0x5824d6['error']({'title':_0xc27441['status']+_0x90c292('0x1b0b')+_0xc27441[_0x90c292('0x22ce')],'msg':JSON[_0x90c292('0x1be0')](_0xc27441['data'])||_0xc27441[_0x90c292('0x15e2')][_0x90c292('0x185f')]('\x20')});});}function _0x142764(_0x555431,_0x54da71){const _0x54d493=_0x85d96b,_0x2f2794=_0x49af1c[_0x54d493('0x1d45')]()[_0x54d493('0x14e4')](_0x54d493('0x2809'))[_0x54d493('0xd27')](_0x54d493('0x771'))['targetEvent'](_0x555431)['ok']('Ok')[_0x54d493('0x1801')](_0x54d493('0x1481'));return _0x49af1c[_0x54d493('0x2fa')](_0x2f2794)[_0x54d493('0x2788')](function(_0x5d186c){const _0x4a4782=_0x54d493;return _0x22ab8a[_0x4a4782('0x1bfc')][_0x4a4782('0x876')]({'uniqueid':_0x54da71,'exten':_0x5d186c})[_0x4a4782('0x1714')];})[_0x54d493('0x2788')](function(_0x9314e9){const _0x3dea63=_0x54d493;_0x5824d6['success']({'title':_0x3dea63('0x1487')+_0x54da71+'\x20properly\x20redirect!','msg':_0x9314e9[_0x3dea63('0x15e2')]||''});})[_0x54d493('0x1cb5')](function(_0x5c83ed){const _0xec7404=_0x54d493;_0x5824d6['error']({'title':_0x5c83ed[_0xec7404('0x1b51')]+'\x20-\x20'+_0x5c83ed['statusText'],'msg':JSON[_0xec7404('0x1be0')](_0x5c83ed[_0xec7404('0x11fc')])||_0x5c83ed[_0xec7404('0x15e2')][_0xec7404('0x185f')]('\x20')});});}_0x374975[_0x85d96b('0x651')](_0x85d96b('0x26ac'),function(){const _0x1868e6=_0x85d96b;_0x4bd08b[_0x1868e6('0x277f')](_0x1868e6('0x21fe')),_0x4bd08b[_0x1868e6('0x277f')]('voice_queue_channel:remove');});}const _0x189152=_0x9abc57;_0x444171[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x16e3'),_0x34e79e('0x283e'),_0x34e79e('0x274c'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x444171(_0x56064d,_0x36449f,_0x3a9c79,_0x764b57,_0x41f46e,_0x1c4a17,_0x4e338d,_0x9f0a99,_0xd0aebc,_0x4fa50c){const _0x45cc2f=_0x34e79e,_0x11d9c3=this,_0x54f9dc=[_0x45cc2f('0x510'),_0x45cc2f('0xacf'),_0x45cc2f('0x17f6'),'abandoned',_0x45cc2f('0x1709'),_0x45cc2f('0x15d3'),_0x45cc2f('0x7dc')];_0x11d9c3['count']=_0x764b57[_0x45cc2f('0x338')],_0x11d9c3[_0x45cc2f('0x283e')]=_0x764b57?_0x283545()[_0x45cc2f('0x13cf')](_0x764b57[_0x45cc2f('0x25df')]?_0x764b57['rows']:[],'id'):{},_0x11d9c3[_0x45cc2f('0x274c')]=_0x41f46e?_0x283545()[_0x45cc2f('0x13cf')](_0x41f46e['rows']?_0x41f46e[_0x45cc2f('0x25df')]:[],'id'):{},_0x11d9c3[_0x45cc2f('0x63c')]=_0x9f0a99,_0x11d9c3[_0x45cc2f('0xec9')]=_0xd0aebc&&_0xd0aebc['count']==0x1?_0xd0aebc[_0x45cc2f('0x25df')][0x0]:null,_0x11d9c3['crudPermissions']=_0x4fa50c[_0x45cc2f('0x157e')](_0x11d9c3[_0x45cc2f('0xec9')]?_0x11d9c3[_0x45cc2f('0xec9')][_0x45cc2f('0xe28')]:null);_0x4fa50c['hasRole']('admin')?_0x11d9c3[_0x45cc2f('0x135a')]={'type':_0x45cc2f('0x2e4'),'fields':_0x45cc2f('0x1338'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x11d9c3[_0x45cc2f('0x135a')]={'id':_0x4fa50c['getCurrentUser']()['id'],'channel':_0x45cc2f('0x1f60'),'type':_0x45cc2f('0x2e4'),'fields':_0x45cc2f('0x1338'),'sort':_0x45cc2f('0x1cee'),'limit':0xa,'page':0x1};_0x11d9c3['success']=_0x4c1ab7,_0x11d9c3[_0x45cc2f('0x138a')]=_0x4c033c,_0x11d9c3[_0x45cc2f('0x158d')]=_0x2d9b37,_0x11d9c3[_0x45cc2f('0x11ad')]=_0x5638a5,_0x4e338d[_0x45cc2f('0x3e')](_0x45cc2f('0x2467'),_0x11d9c3[_0x45cc2f('0x158d')]),_0x11d9c3[_0x45cc2f('0x2630')]=_0x3a9c79(function(){},0x3e7);function _0x5638a5(){const _0x5e1da3=_0x45cc2f;_0x283545()[_0x5e1da3('0x1b')](_0x11d9c3['queues'],function(_0x142c43,_0x2cd070){const _0xe1ea66=_0x5e1da3;_0x11d9c3[_0xe1ea66('0x274c')][_0x2cd070]&&_0x283545()[_0xe1ea66('0x2503')](_0x142c43,_0x283545()['pick'](_0x11d9c3[_0xe1ea66('0x274c')][_0x2cd070],_0x54f9dc));});}function _0x2d9b37(_0x2869fa){const _0x52d1f4=_0x45cc2f;_0x11d9c3[_0x52d1f4('0x283e')][_0x2869fa['id']]&&_0x283545()[_0x52d1f4('0x2503')](_0x11d9c3['queues'][_0x2869fa['id']],_0x283545()[_0x52d1f4('0x41b')](_0x2869fa,_0x54f9dc));}let _0x4bf6fa=!![],_0xee0149=0x1;_0x56064d[_0x45cc2f('0x1662')](_0x45cc2f('0x1569'),function(_0x237f9b,_0x63d135){const _0x31d160=_0x45cc2f;_0x4bf6fa?_0x36449f(function(){_0x4bf6fa=![];}):(!_0x63d135&&(_0xee0149=_0x11d9c3[_0x31d160('0x135a')][_0x31d160('0x23f5')]),_0x237f9b!==_0x63d135&&(_0x11d9c3[_0x31d160('0x135a')][_0x31d160('0x23f5')]=0x1),!_0x237f9b&&(_0x11d9c3[_0x31d160('0x135a')][_0x31d160('0x23f5')]=_0xee0149),_0x11d9c3[_0x31d160('0x138a')]());});function _0x4c1ab7(_0xa1ca28){const _0x1f08f0=_0x45cc2f;_0x11d9c3[_0x1f08f0('0x338')]=_0xa1ca28[_0x1f08f0('0x338')],_0x11d9c3[_0x1f08f0('0x283e')]=_0xa1ca28?_0x283545()[_0x1f08f0('0x13cf')](_0xa1ca28[_0x1f08f0('0x25df')]?_0xa1ca28[_0x1f08f0('0x25df')]:[],'id'):{},_0x5638a5();}function _0x4c033c(){const _0x486659=_0x45cc2f;_0x11d9c3[_0x486659('0x135a')][_0x486659('0x19e')]=(_0x11d9c3[_0x486659('0x135a')]['page']-0x1)*_0x11d9c3[_0x486659('0x135a')][_0x486659('0x68e')],_0x4fa50c[_0x486659('0x1516')](_0x486659('0xe23'))?_0x11d9c3[_0x486659('0x1808')]=_0x1c4a17[_0x486659('0x2043')][_0x486659('0x1335')](_0x11d9c3[_0x486659('0x135a')],_0x4c1ab7)[_0x486659('0x1714')]:(_0x11d9c3[_0x486659('0x135a')]['id']=_0x11d9c3[_0x486659('0x63c')]['id'],_0x11d9c3[_0x486659('0x135a')]['section']=_0x486659('0x182e'),_0x11d9c3[_0x486659('0x1808')]=_0x1c4a17[_0x486659('0x63c')]['getResources'](_0x11d9c3['query'],_0x4c1ab7)[_0x486659('0x1714')]);}_0x56064d[_0x45cc2f('0x651')](_0x45cc2f('0x26ac'),function(){const _0x189375=_0x45cc2f;_0x4e338d[_0x189375('0x277f')](_0x189375('0x2467')),_0x11d9c3[_0x189375('0x2630')]&&_0x3a9c79['cancel'](_0x11d9c3['interval']);});}const _0x27cd77=_0x444171,_0xa711eb=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html',_0x1497fa=_0x18dd13['p']+_0x34e79e('0x2715');_0x3f7037[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),'$mdDialog','$q',_0x34e79e('0x1580'),_0x34e79e('0x16e3'),'queues',_0x34e79e('0x274c'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x3f7037(_0x17014f,_0x5d9c09,_0x18fcf0,_0x5e7146,_0x5b389d,_0x305a1c,_0x3236b0,_0x1691ab,_0x4d9ccf,_0x17073f,_0x219526,_0x920018,_0x9f8c80,_0xcb39cd){const _0x3404eb=_0x34e79e,_0x51b567=this,_0x34fafc=[_0x3404eb('0x477'),_0x3404eb('0x2705'),_0x3404eb('0x1eb6'),'talking',_0x3404eb('0x21c9'),_0x3404eb('0x253b'),_0x3404eb('0x15e2'),_0x3404eb('0x10b2'),_0x3404eb('0x1054'),_0x3404eb('0x312'),_0x3404eb('0x120')];_0x51b567[_0x3404eb('0x9cb')]=_0xcb39cd[_0x3404eb('0x24cc')](),_0x51b567['count']=_0x3236b0[_0x3404eb('0x338')]?_0x3236b0[_0x3404eb('0x338')]:0x0,_0x51b567[_0x3404eb('0x283e')]=_0x3236b0?_0x283545()[_0x3404eb('0x13cf')](_0x3236b0['rows']?_0x3236b0[_0x3404eb('0x25df')]:[],'id'):{},_0x51b567['rpcQueues']=_0x1691ab?_0x283545()[_0x3404eb('0x13cf')](_0x1691ab[_0x3404eb('0x25df')]?_0x1691ab[_0x3404eb('0x25df')]:[],'id'):{},_0x51b567[_0x3404eb('0x63c')]=_0x920018,_0x51b567[_0x3404eb('0xec9')]=_0x9f8c80&&_0x9f8c80[_0x3404eb('0x338')]==0x1?_0x9f8c80[_0x3404eb('0x25df')][0x0]:null,_0x51b567['crudPermissions']=_0xcb39cd[_0x3404eb('0x157e')](_0x51b567[_0x3404eb('0xec9')]?_0x51b567[_0x3404eb('0xec9')][_0x3404eb('0xe28')]:null);_0xcb39cd[_0x3404eb('0x1516')](_0x3404eb('0xe23'))?_0x51b567[_0x3404eb('0x135a')]={'type':_0x3404eb('0x2e4'),'sort':_0x3404eb('0x1cee'),'limit':0xa,'page':0x1}:_0x51b567[_0x3404eb('0x135a')]={'id':_0x51b567[_0x3404eb('0x9cb')]['id'],'channel':'voice','type':_0x3404eb('0x2e4'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x51b567['success']=_0x4c8c69,_0x51b567['getQueues']=_0x117446,_0x51b567[_0x3404eb('0x27f7')]=_0x3b5196,_0x51b567[_0x3404eb('0x2510')]=_0x25b377,_0x51b567[_0x3404eb('0x154c')]=_0x597cc7,_0x51b567[_0x3404eb('0x158d')]=_0x1432e8,_0x51b567[_0x3404eb('0x1768')]=_0x52dc3b,_0x51b567[_0x3404eb('0x18e3')]=_0x2c0915,_0x51b567['onLogout']=_0x330422,_0x51b567['$onInit']=_0x2d5363,_0x51b567[_0x3404eb('0x1dc2')]=[],_0x283545()[_0x3404eb('0x1b')](_0x51b567[_0x3404eb('0x283e')],function(_0x580d56){const _0x2caaaa=_0x3404eb;_0x51b567['order'][_0x2caaaa('0x13e3')](_0x580d56['id']);}),_0x17073f[_0x3404eb('0x3e')]('voice_queue:save',_0x51b567['onSave']),_0x51b567[_0x3404eb('0x2630')]=_0x305a1c(function(){},0x3e7),_0x17073f['on'](_0x3404eb('0x1cb6'),_0x51b567['onPause']),_0x17073f['on']('userVoiceQueue:remove',_0x51b567[_0x3404eb('0x234')]),_0x17073f['on'](_0x3404eb('0x454'),_0x51b567[_0x3404eb('0x18e3')]);function _0x2d5363(){const _0x324f7f=_0x3404eb,_0x10995e=[];return _0x283545()[_0x324f7f('0x1b')](_0x51b567[_0x324f7f('0x283e')],function(_0x1f8a7b,_0x5a5b29){const _0x285034=_0x324f7f;_0x1f8a7b[_0x285034('0x120')]=0x0,_0x1f8a7b[_0x285034('0xc65')]=0x0,_0x51b567['queues'][_0x5a5b29][_0x285034('0x1713')]={},_0x10995e[_0x285034('0x13e3')](_0x4d9ccf[_0x285034('0x2043')]['getMembers']({'id':_0x5a5b29})[_0x285034('0x1714')]),_0x51b567[_0x285034('0x274c')][_0x5a5b29]&&_0x283545()[_0x285034('0x2503')](_0x1f8a7b,_0x283545()[_0x285034('0x41b')](_0x51b567[_0x285034('0x274c')][_0x5a5b29],_0x34fafc));}),_0x5e7146[_0x324f7f('0x1def')](_0x10995e)['then'](function(_0x36d85){const _0x211e22=_0x324f7f;for(let _0x279f2a=0x0;_0x279f2a<_0x36d85[_0x211e22('0x2566')];_0x279f2a+=0x1){for(let _0x1c843d=0x0;_0x1c843d<_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x211e22('0x2566')];_0x1c843d++){_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d]['paused']&&_0x51b567[_0x211e22('0x283e')][_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d][_0x211e22('0xe6b')]][_0x211e22('0x120')]++,_0x51b567[_0x211e22('0x283e')][_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d][_0x211e22('0xe6b')]][_0x211e22('0xc65')]++,_0x51b567[_0x211e22('0x283e')][_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d][_0x211e22('0xe6b')]][_0x211e22('0x1713')][_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d][_0x211e22('0x3bb')]]=_0x36d85[_0x279f2a][_0x211e22('0x25df')][_0x1c843d][_0x211e22('0xe6b')];}}})[_0x324f7f('0x1cb5')](function(_0x3ee4cb){const _0x9f1b16=_0x324f7f;console[_0x9f1b16('0x5e8')](_0x3ee4cb);});}function _0x1432e8(_0x298f0d){const _0x1d7753=_0x3404eb;_0x51b567[_0x1d7753('0x283e')][_0x298f0d['id']]&&_0x283545()[_0x1d7753('0x2503')](_0x51b567[_0x1d7753('0x283e')][_0x298f0d['id']],_0x283545()[_0x1d7753('0x41b')](_0x298f0d,_0x34fafc));}function _0x52dc3b(_0x57d8f6){const _0x550cd0=_0x3404eb;console[_0x550cd0('0x10df')](_0x550cd0('0x1768'),_0x57d8f6);if(_0x57d8f6[_0x550cd0('0x2a1')])_0x283545()[_0x550cd0('0x1b')](_0x51b567[_0x550cd0('0x283e')],function(_0x5c2c41){const _0x59677b=_0x550cd0;_0x5c2c41[_0x59677b('0x1713')][_0x57d8f6['id']]&&(_0x5c2c41[_0x59677b('0x120')]+=0x1,console['log'](_0x59677b('0x619')));});else!_0x57d8f6['voicePause']&&_0x283545()[_0x550cd0('0x1b')](_0x51b567[_0x550cd0('0x283e')],function(_0x5df951){const _0x5ee2ae=_0x550cd0;_0x5df951[_0x5ee2ae('0x1713')][_0x57d8f6['id']]&&(_0x5df951['paused']>0x0&&(_0x5df951['paused']-=0x1,console[_0x5ee2ae('0x10df')]('unpause')));});}function _0x2c0915(_0x3e4627){const _0x3a3c73=_0x3404eb;console[_0x3a3c73('0x10df')]('onLogged',_0x3e4627),_0x51b567['queues'][_0x3e4627[_0x3a3c73('0xe6b')]]&&(_0x51b567[_0x3a3c73('0x283e')][_0x3e4627[_0x3a3c73('0xe6b')]]['loggedInDb']+=0x1,_0x51b567[_0x3a3c73('0x283e')][_0x3e4627[_0x3a3c73('0xe6b')]]['agents'][_0x3e4627[_0x3a3c73('0x3bb')]]=_0x3e4627['VoiceQueueId']);}function _0x330422(_0x59d70f){const _0x1c3384=_0x3404eb;console[_0x1c3384('0x10df')](_0x1c3384('0x234'),_0x59d70f),_0x51b567['queues'][_0x59d70f[_0x1c3384('0xe6b')]]&&_0x51b567[_0x1c3384('0x283e')][_0x59d70f['VoiceQueueId']][_0x1c3384('0xc65')]>0x0&&(_0x51b567[_0x1c3384('0x283e')][_0x59d70f[_0x1c3384('0xe6b')]][_0x1c3384('0xc65')]-=0x1,delete _0x51b567[_0x1c3384('0x283e')][_0x59d70f[_0x1c3384('0xe6b')]]['agents'][_0x59d70f[_0x1c3384('0x3bb')]]);}let _0x1b45e8=!![],_0x53913d=0x1;_0x17014f[_0x3404eb('0x1662')](_0x3404eb('0x1569'),function(_0x561c68,_0x312d24){const _0x1cbd44=_0x3404eb;_0x1b45e8?_0x5d9c09(function(){_0x1b45e8=![];}):(!_0x312d24&&(_0x53913d=_0x51b567['query'][_0x1cbd44('0x23f5')]),_0x561c68!==_0x312d24&&(_0x51b567[_0x1cbd44('0x135a')][_0x1cbd44('0x23f5')]=0x1),!_0x561c68&&(_0x51b567[_0x1cbd44('0x135a')][_0x1cbd44('0x23f5')]=_0x53913d),_0x51b567[_0x1cbd44('0x138a')]());});function _0x4c8c69(_0x588786){const _0x42aa77=_0x3404eb;_0x51b567[_0x42aa77('0x338')]=_0x588786[_0x42aa77('0x338')],_0x51b567[_0x42aa77('0x283e')]=_0x588786?_0x283545()[_0x42aa77('0x13cf')](_0x588786['rows']?_0x588786[_0x42aa77('0x25df')]:[],'id'):{};if(_0x588786[_0x42aa77('0x25df')]){_0x51b567[_0x42aa77('0x1dc2')]=[];for(let _0x5e7c60=0x0;_0x5e7c60<_0x588786[_0x42aa77('0x25df')][_0x42aa77('0x2566')];_0x5e7c60++){_0x51b567[_0x42aa77('0x1dc2')][_0x42aa77('0x13e3')](_0x588786[_0x42aa77('0x25df')][_0x5e7c60]['id']);}}_0x2d5363();}function _0x117446(){const _0x4b1a3e=_0x3404eb;_0x51b567['query'][_0x4b1a3e('0x19e')]=(_0x51b567[_0x4b1a3e('0x135a')][_0x4b1a3e('0x23f5')]-0x1)*_0x51b567['query'][_0x4b1a3e('0x68e')],_0xcb39cd[_0x4b1a3e('0x1516')](_0x4b1a3e('0xe23'))?_0x51b567['promise']=_0x4d9ccf[_0x4b1a3e('0x2043')]['get'](_0x51b567[_0x4b1a3e('0x135a')],_0x4c8c69)['$promise']:(_0x51b567['query']['id']=_0x51b567['userProfile']['id'],_0x51b567[_0x4b1a3e('0x135a')]['section']='VoiceQueues',_0x51b567['promise']=_0x4d9ccf[_0x4b1a3e('0x63c')][_0x4b1a3e('0xa1')](_0x51b567[_0x4b1a3e('0x135a')],_0x4c8c69)[_0x4b1a3e('0x1714')]);}function _0x3b5196(_0x34adc0,_0x56214f){const _0x65afbb=_0x3404eb;_0x18fcf0[_0x65afbb('0x2fa')]({'controller':_0x65afbb('0x1161'),'controllerAs':'vm','templateUrl':_0xa711eb,'parent':angular[_0x65afbb('0x16b1')](_0x5b389d[_0x65afbb('0x945')]),'targetEvent':_0x34adc0,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x56214f,'voiceQueues':_0x283545()['values'](_0x51b567[_0x65afbb('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x51b567[_0x65afbb('0xe28')]}});}function _0x25b377(_0x49f763,_0x32852b){const _0x56b937=_0x3404eb;_0x18fcf0[_0x56b937('0x2fa')]({'controller':'VoiceQueueagentaddController','controllerAs':'vm','templateUrl':_0x1497fa,'parent':angular['element'](_0x5b389d[_0x56b937('0x945')]),'targetEvent':_0x49f763,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x32852b,'voiceQueues':_0x51b567[_0x56b937('0x283e')]?_0x51b567[_0x56b937('0x283e')][_0x56b937('0x25df')]:[],'realtime':!![],'crudPermissions':_0x51b567['crudPermissions']}});}function _0x597cc7(_0x425c19){const _0x55c8bb=_0x3404eb;return _0x4d9ccf[_0x55c8bb('0x2043')][_0x55c8bb('0x2740')](_0x425c19)[_0x55c8bb('0x1714')][_0x55c8bb('0x2788')](function(){const _0x455952=_0x55c8bb;_0x219526['success']({'title':'Queue\x20properly\x20updated!','msg':_0x425c19['name']?_0x425c19[_0x455952('0x1a8d')]+_0x455952('0x6f8'):''});})['catch'](function(_0x2c51e2){const _0x571efc=_0x55c8bb;_0x219526[_0x571efc('0x5e8')]({'title':_0x571efc('0xa30'),'msg':_0x2c51e2['message']});});}_0x17014f[_0x3404eb('0x651')](_0x3404eb('0x26ac'),function(){const _0x47a2fa=_0x3404eb;_0x17073f['removeAllListeners'](_0x47a2fa('0x2467')),_0x51b567[_0x47a2fa('0x2630')]&&_0x305a1c[_0x47a2fa('0x1801')](_0x51b567[_0x47a2fa('0x2630')]),_0x17073f['removeAllListeners'](_0x47a2fa('0x1cb6')),_0x17073f[_0x47a2fa('0x277f')](_0x47a2fa('0x11e0')),_0x17073f[_0x47a2fa('0x277f')](_0x47a2fa('0x454'));});}const _0x24db21=_0x3f7037;function _0x92f33b(){const _0x442742=_0x34e79e;return{'status':{'registered':_0x442742('0xc38'),'unregistered':_0x442742('0x1ad6'),'lagged':_0x442742('0x1ad6'),'reachable':_0x442742('0xc38'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x442742('0x22b7')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x442742('0x1b19'),'busy':_0x442742('0xf03'),'invalid':_0x442742('0x165d'),'unavailable':_0x442742('0x165d'),'ringing':_0x442742('0x18d1'),'ringinuse':_0x442742('0x18d1'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x442742('0x699'),'hangup':_0x442742('0x393')},'channelStatusOut':{'ring':_0x442742('0x2223'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x442742('0x393')}};}const _0x2a9bd1=_0x92f33b;_0x2d6187['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0xd6f')];function _0x2d6187(_0x532b5d,_0x123f74,_0x3731ed){const _0x364d4c=_0x34e79e,_0x235ebe=this;_0x3731ed['disconnect'](),_0x3731ed[_0x364d4c('0x26c')](),_0x235ebe['selectedTab']=0x0;switch(_0x123f74['current'][_0x364d4c('0x1a8d')]){case _0x364d4c('0x11fe'):_0x235ebe[_0x364d4c('0xcb3')]=0x0;break;case _0x364d4c('0x325'):_0x235ebe['selectedTab']=0x1;break;case _0x364d4c('0x129b'):_0x235ebe[_0x364d4c('0xcb3')]=0x2;break;case _0x364d4c('0x1194'):_0x235ebe[_0x364d4c('0xcb3')]=0x3;break;case _0x364d4c('0x1584'):_0x235ebe[_0x364d4c('0xcb3')]=0x4;break;case'app.voice.realtime.abandonedcalls':_0x235ebe['selectedTab']=0x5;break;case'app.voice.realtime.queue_params':_0x235ebe['selectedTab']=0x6;break;case _0x364d4c('0xbb'):_0x235ebe['selectedTab']=0x7;break;default:_0x235ebe[_0x364d4c('0xcb3')]=0x0,_0x123f74['go'](_0x364d4c('0x11fe'));}_0x532b5d[_0x364d4c('0x1662')]('vm.selectedTab',function(_0x5370f3,_0x298208){const _0x8d61e=_0x364d4c;if(_0x5370f3!==_0x298208)switch(_0x5370f3){case 0x0:_0x123f74['go'](_0x8d61e('0x11fe'));break;case 0x1:_0x123f74['go'](_0x8d61e('0x325'));break;case 0x2:_0x123f74['go'](_0x8d61e('0x129b'));break;case 0x3:_0x123f74['go'](_0x8d61e('0x1194'));break;case 0x4:_0x123f74['go']('app.voice.realtime.queue_calls');break;case 0x5:_0x123f74['go']('app.voice.realtime.abandonedcalls');break;case 0x6:_0x123f74['go']('app.voice.realtime.queue_params');break;case 0x7:_0x123f74['go'](_0x8d61e('0xbb'));break;default:_0x123f74['go'](_0x8d61e('0x11fe'));}});}const _0x4721b2=_0x2d6187;_0x20eb85[_0x34e79e('0x2d9')]=['$scope','$timeout','$mdDialog',_0x34e79e('0x1263'),_0x34e79e('0x9f3'),_0x34e79e('0x519'),'socket',_0x34e79e('0x1fc6'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x1b04')];function _0x20eb85(_0x5ed59b,_0x33291e,_0x4877ed,_0x87ae3d,_0x207fec,_0x3445fb,_0x214492,_0x50e251,_0x51bfb7,_0x4ac776,_0x16bc99){const _0x520c13=_0x34e79e,_0x4b614a=this,_0x504c37=[_0x520c13('0x2831'),'internal','state',_0x520c13('0x1b51')];_0x4b614a[_0x520c13('0x338')]=_0x87ae3d[_0x520c13('0x338')],_0x4b614a[_0x520c13('0x1b34')]=[_0x520c13('0x2831'),_0x520c13('0x2838'),_0x520c13('0x249b'),_0x520c13('0x1b51'),_0x520c13('0x32e')],_0x4b614a['telephones']=_0x87ae3d?_0x283545()['keyBy'](_0x87ae3d[_0x520c13('0x25df')]?_0x87ae3d[_0x520c13('0x25df')]:[],'id'):{},_0x4b614a[_0x520c13('0x9f3')]=_0x207fec?_0x283545()[_0x520c13('0x13cf')](_0x207fec[_0x520c13('0x25df')]?_0x207fec[_0x520c13('0x25df')]:[],'id'):{},_0x4b614a[_0x520c13('0x63c')]=_0x51bfb7,_0x4b614a[_0x520c13('0xec9')]=_0x4ac776&&_0x4ac776['count']==0x1?_0x4ac776['rows'][0x0]:null,_0x4b614a[_0x520c13('0xe28')]=_0x16bc99[_0x520c13('0x157e')](_0x4b614a['userProfileSection']?_0x4b614a[_0x520c13('0xec9')]['crudPermissions']:null),_0x4b614a[_0x520c13('0x135a')]={'fields':_0x520c13('0x121b'),'role':_0x520c13('0x23ab'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4b614a[_0x520c13('0x15d9')]=_0x50e251[_0x520c13('0x1b51')],_0x4b614a[_0x520c13('0x19fc')]=_0x50e251[_0x520c13('0x249b')],_0x4b614a[_0x520c13('0x173b')]=_0x58c5b6,_0x4b614a[_0x520c13('0x11ad')]=_0x4f56d1,_0x4b614a['showInfo']=_0x5e98ba,_0x4b614a['getTelephones']=_0x27741b,_0x4b614a['onSave']=_0x32cab7,_0x214492['on']('telephone:save',_0x4b614a[_0x520c13('0x158d')]);function _0x4f56d1(){const _0x224901=_0x520c13;_0x283545()[_0x224901('0x1b')](_0x4b614a[_0x224901('0x1263')],function(_0x21d665,_0x458a89){const _0x260c32=_0x224901;_0x4b614a[_0x260c32('0x9f3')][_0x458a89]&&_0x283545()[_0x260c32('0x2503')](_0x21d665,_0x283545()[_0x260c32('0x41b')](_0x4b614a[_0x260c32('0x9f3')][_0x458a89],_0x504c37));});}function _0x5e98ba(_0x4f4097){const _0xed91a4=_0x520c13;_0x4877ed['show'](_0x4877ed[_0xed91a4('0x204f')]()[_0xed91a4('0x1e4e')](!![])['title'](_0xed91a4('0xcbb'))[_0xed91a4('0x93e')](_0xed91a4('0x122a'))['ok']('Ok')[_0xed91a4('0x24d0')](_0x4f4097));}function _0x32cab7(_0x169f74){const _0x5e739b=_0x520c13;_0x4b614a['telephones'][_0x169f74['id']]&&_0x283545()[_0x5e739b('0x2503')](_0x4b614a[_0x5e739b('0x1263')][_0x169f74['id']],_0x283545()[_0x5e739b('0x41b')](_0x169f74,_0x504c37));}let _0x4cc244=!![],_0x8cc972=0x1;_0x5ed59b[_0x520c13('0x1662')]('vm.query.filter',function(_0x332944,_0xe3b4f1){const _0x412994=_0x520c13;_0x4cc244?_0x33291e(function(){_0x4cc244=![];}):(!_0xe3b4f1&&(_0x8cc972=_0x4b614a[_0x412994('0x135a')][_0x412994('0x23f5')]),_0x332944!==_0xe3b4f1&&(_0x4b614a[_0x412994('0x135a')][_0x412994('0x23f5')]=0x1),!_0x332944&&(_0x4b614a[_0x412994('0x135a')][_0x412994('0x23f5')]=_0x8cc972),_0x4b614a[_0x412994('0x16d9')]());});function _0x58c5b6(_0x10bb43){const _0x4e6950=_0x520c13;_0x4b614a[_0x4e6950('0x1263')]=_0x10bb43?_0x283545()[_0x4e6950('0x13cf')](_0x10bb43[_0x4e6950('0x25df')]?_0x10bb43[_0x4e6950('0x25df')]:[],'id'):{},_0x4f56d1();}function _0x27741b(){const _0x490d75=_0x520c13;_0x4b614a[_0x490d75('0x135a')][_0x490d75('0x19e')]=(_0x4b614a[_0x490d75('0x135a')]['page']-0x1)*_0x4b614a[_0x490d75('0x135a')]['limit'],_0x16bc99[_0x490d75('0x1516')](_0x490d75('0xe23'))?_0x4b614a[_0x490d75('0x1808')]=_0x3445fb[_0x490d75('0x1e6a')][_0x490d75('0x1335')](_0x4b614a['query'],_0x58c5b6)[_0x490d75('0x1714')]:(_0x4b614a['query']['id']=_0x4b614a[_0x490d75('0x63c')]['id'],_0x4b614a[_0x490d75('0x135a')][_0x490d75('0xb13')]='Telephones',_0x4b614a['promise']=_0x3445fb['userProfile'][_0x490d75('0xa1')](_0x4b614a[_0x490d75('0x135a')],_0x58c5b6)[_0x490d75('0x1714')]);}_0x5ed59b['$on'](_0x520c13('0x26ac'),function(){const _0x35f574=_0x520c13;_0x214492[_0x35f574('0x277f')]('telephone:save');});}const _0x18b2db=_0x20eb85;_0x2877e2['$inject']=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),'trunks','rpcTrunks',_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x1fc6'),_0x34e79e('0x1382'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x2877e2(_0x5cdc7a,_0x7bbe74,_0x424fe2,_0x440af3,_0x46a4bc,_0xf72e24,_0x41a9ec,_0x105129,_0x98a4c5,_0x4b6744,_0x3cbdf6,_0x31ba12){const _0x5d4a7e=_0x34e79e,_0xec3006=this,_0x300bfa=[_0x5d4a7e('0x1b51'),_0x5d4a7e('0x27b8'),'registry',_0x5d4a7e('0x1c6a'),_0x5d4a7e('0x1fee'),'internal','state',_0x5d4a7e('0x1b51')];_0xec3006[_0x5d4a7e('0x9cb')]=_0x31ba12['getCurrentUser'](),_0xec3006[_0x5d4a7e('0x338')]=_0x440af3[_0x5d4a7e('0x338')],_0xec3006[_0x5d4a7e('0x20f2')]=_0x440af3?_0x440af3[_0x5d4a7e('0x25df')]:[],_0xec3006['rpcTrunks']=_0x46a4bc?_0x46a4bc[_0x5d4a7e('0x25df')]?_0x46a4bc[_0x5d4a7e('0x25df')]:[]:[],_0xec3006['query']={'fields':'id,name','active':!![],'sort':_0x5d4a7e('0x1cee'),'limit':0xa,'page':0x1},_0xec3006[_0x5d4a7e('0x15d9')]=_0x105129[_0x5d4a7e('0x1b51')],_0xec3006[_0x5d4a7e('0x19fc')]=_0x105129[_0x5d4a7e('0x249b')],_0xec3006['userProfile']=_0x4b6744,_0xec3006[_0x5d4a7e('0xec9')]=_0x3cbdf6&&_0x3cbdf6[_0x5d4a7e('0x338')]==0x1?_0x3cbdf6[_0x5d4a7e('0x25df')][0x0]:null,_0xec3006[_0x5d4a7e('0xe28')]=_0x31ba12[_0x5d4a7e('0x157e')](_0xec3006[_0x5d4a7e('0xec9')]?_0xec3006[_0x5d4a7e('0xec9')][_0x5d4a7e('0xe28')]:null),_0xec3006['success']=_0x5a38a7,_0xec3006[_0x5d4a7e('0x11ad')]=_0x53f089,_0xec3006[_0x5d4a7e('0xa35')]=_0x1ebd73,_0xec3006[_0x5d4a7e('0x8f0')]=_0x48efd3,_0xec3006[_0x5d4a7e('0x11d')]=_0x27b03b,_0xec3006[_0x5d4a7e('0x158d')]=_0xe9a207,_0x41a9ec['on']('trunk:save',_0xec3006[_0x5d4a7e('0x158d')]);function _0x53f089(){const _0x12ce76=_0x5d4a7e;let _0x1eb1bb;for(let _0x5c3a3c=0x0;_0x5c3a3c<_0xec3006['trunks']['length'];_0x5c3a3c+=0x1){_0x1eb1bb=_0x283545()[_0x12ce76('0x1855')](_0xec3006[_0x12ce76('0x1330')],['id',_0xec3006['trunks'][_0x5c3a3c]['id']]),_0x1eb1bb>=0x0&&_0x283545()[_0x12ce76('0x2503')](_0xec3006[_0x12ce76('0x20f2')][_0x5c3a3c],_0x283545()['pick'](_0xec3006[_0x12ce76('0x1330')][_0x1eb1bb],_0x300bfa));}}function _0x1ebd73(_0x60c872){const _0x1d0b9d=_0x5d4a7e;_0x424fe2[_0x1d0b9d('0x2fa')](_0x424fe2['alert']()[_0x1d0b9d('0x1e4e')](!![])[_0x1d0b9d('0x14e4')]('Legend')['htmlContent'](_0x1d0b9d('0x122a'))['ok']('Ok')[_0x1d0b9d('0x24d0')](_0x60c872));}function _0xe080a2(_0x1cc40a,_0x2bd4c7,_0x21fc1b){const _0x2e7c04=_0x5d4a7e;_0x2bd4c7>=0x0&&_0x283545()[_0x2e7c04('0x2503')](_0x1cc40a[_0x2bd4c7],_0x283545()[_0x2e7c04('0x41b')](_0x21fc1b,_0x300bfa));}function _0xe9a207(_0xad95e8){const _0x35825f=_0x5d4a7e,_0x24ca64=_0x283545()[_0x35825f('0x1855')](_0xec3006[_0x35825f('0x20f2')],['id',_0xad95e8['id']]),_0x46029c=_0x283545()[_0x35825f('0x1855')](_0xec3006['rpcTrunks'],['id',_0xad95e8['id']]);_0xe080a2(_0xec3006['trunks'],_0x24ca64,_0xad95e8),_0xe080a2(_0xec3006[_0x35825f('0x1330')],_0x46029c,_0xad95e8);}let _0x37ca56=!![],_0x1fcbec=0x1;_0x5cdc7a[_0x5d4a7e('0x1662')](_0x5d4a7e('0x1569'),function(_0x2afeea,_0x3e5fb6){const _0x3e01a9=_0x5d4a7e;_0x37ca56?_0x7bbe74(function(){_0x37ca56=![];}):(!_0x3e5fb6&&(_0x1fcbec=_0xec3006['query'][_0x3e01a9('0x23f5')]),_0x2afeea!==_0x3e5fb6&&(_0xec3006[_0x3e01a9('0x135a')][_0x3e01a9('0x23f5')]=0x1),!_0x2afeea&&(_0xec3006[_0x3e01a9('0x135a')][_0x3e01a9('0x23f5')]=_0x1fcbec),_0xec3006[_0x3e01a9('0x8f0')]());});function _0x5a38a7(_0x550b82){const _0x287179=_0x5d4a7e;_0xec3006[_0x287179('0x338')]=_0x550b82[_0x287179('0x338')],_0xec3006[_0x287179('0x20f2')]=_0x550b82?_0x550b82['rows']?_0x550b82['rows']:[]:[],_0x53f089();}function _0x48efd3(){const _0x5dcde5=_0x5d4a7e;_0xec3006[_0x5dcde5('0x135a')][_0x5dcde5('0x19e')]=(_0xec3006[_0x5dcde5('0x135a')][_0x5dcde5('0x23f5')]-0x1)*_0xec3006['query']['limit'],_0x31ba12[_0x5dcde5('0x1516')](_0x5dcde5('0xe23'))?_0xec3006[_0x5dcde5('0x1808')]=_0xf72e24['trunk']['get'](_0xec3006[_0x5dcde5('0x135a')],_0x5a38a7)[_0x5dcde5('0x1714')]:(_0xec3006[_0x5dcde5('0x135a')]['id']=_0xec3006['userProfile']['id'],_0xec3006[_0x5dcde5('0x135a')]['section']=_0x5dcde5('0xca4'),_0xec3006[_0x5dcde5('0x1808')]=_0xf72e24[_0x5dcde5('0x63c')][_0x5dcde5('0xa1')](_0xec3006['query'],_0x5a38a7)[_0x5dcde5('0x1714')]);}_0x5cdc7a[_0x5d4a7e('0x651')](_0x5d4a7e('0x26ac'),function(){const _0x5a42dd=_0x5d4a7e;_0x41a9ec[_0x5a42dd('0x277f')]('trunk:save');});function _0x27b03b(_0xf86e6b,_0x338677){const _0x3406f7=_0x5d4a7e;_0x98a4c5['go'](_0x3406f7('0x108c'),{'id':_0x338677['id']});}}const _0x57cb19=_0x2877e2,_0x5def1c=_0x18dd13['p']+_0x34e79e('0x27e2'),_0x4889b3=_0x18dd13['p']+_0x34e79e('0x26fb'),_0x201f61=_0x18dd13['p']+_0x34e79e('0x2247'),_0x13437a=_0x18dd13['p']+_0x34e79e('0xb89'),_0x13cca9=_0x18dd13['p']+_0x34e79e('0x15f'),_0x12f1aa=_0x18dd13['p']+_0x34e79e('0x228d'),_0x34886c=_0x18dd13['p']+_0x34e79e('0x2355'),_0x1c7d33=_0x18dd13['p']+_0x34e79e('0x2076'),_0x265b3b=_0x18dd13['p']+_0x34e79e('0xec8');_0x42b93b[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x42b93b(_0x3c0adb){const _0x35b0bd=_0x34e79e;_0x3c0adb[_0x35b0bd('0x249b')]('app.voice.realtime',{'url':_0x35b0bd('0x2090'),'views':{'content@app':{'templateUrl':_0x5def1c,'controller':_0x35b0bd('0x1f55')}},'resolve':{'userProfile':['apiResolver',_0x35b0bd('0x1b04'),function(_0x351f5c,_0x4b9d60){const _0x32da32=_0x35b0bd;return _0x4b9d60[_0x32da32('0x1516')](_0x32da32('0xe23'))?null:_0x351f5c[_0x32da32('0x2322')](_0x32da32('0x231d'),{'fields':_0x32da32('0x3f0'),'id':_0x4b9d60[_0x32da32('0x24cc')]()[_0x32da32('0x237f')]});}],'userProfileSection':['apiResolver',_0x35b0bd('0x1b04'),function(_0x15d171,_0x6addf6){const _0x5e2acc=_0x35b0bd;return _0x6addf6[_0x5e2acc('0x1516')](_0x5e2acc('0xe23'))?null:_0x15d171[_0x5e2acc('0x2322')](_0x5e2acc('0x22ca'),{'fields':_0x5e2acc('0xe2c'),'userProfileId':_0x6addf6[_0x5e2acc('0x24cc')]()[_0x5e2acc('0x237f')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x35b0bd('0x11fe'),{'url':'/agents','controller':_0x35b0bd('0x7cc'),'templateUrl':_0x4889b3,'resolve':{'pauses':['apiResolver',function(_0x17f89b){const _0x48dea6=_0x35b0bd;return _0x17f89b[_0x48dea6('0x2322')]('pause@get',{'nolimit':!![]});}],'agents':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x1ed129,_0x525fc0){const _0x4798e7=_0x35b0bd;return _0x525fc0[_0x4798e7('0x1516')](_0x4798e7('0xe23'))?_0x1ed129[_0x4798e7('0x2322')](_0x4798e7('0x144f'),{'fields':_0x4798e7('0xed0'),'role':_0x4798e7('0x188b'),'sort':_0x4798e7('0x2831'),'nolimit':!![]}):_0x1ed129[_0x4798e7('0x2322')](_0x4798e7('0x27c5'),{'id':_0x525fc0['getCurrentUser']()[_0x4798e7('0x237f')],'section':'Agents','fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':'agent','sort':'fullname','nolimit':!![]});}],'userProfile':['apiResolver',_0x35b0bd('0x1b04'),function(_0x110683,_0x3f0088){const _0x5caf7b=_0x35b0bd;return _0x3f0088[_0x5caf7b('0x1516')](_0x5caf7b('0xe23'))?null:_0x110683[_0x5caf7b('0x2322')](_0x5caf7b('0x231d'),{'fields':_0x5caf7b('0x3f0'),'id':_0x3f0088['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x35b0bd('0x1b04'),function(_0x362141,_0x4f854f){const _0x49136f=_0x35b0bd;return _0x4f854f[_0x49136f('0x1516')]('admin')?null:_0x362141[_0x49136f('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4f854f[_0x49136f('0x24cc')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x35b0bd('0x1318'),function(_0x5c5ebf){const _0x34b6ca=_0x35b0bd;return _0x5c5ebf[_0x34b6ca('0x2322')](_0x34b6ca('0x21f7'));}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')](_0x35b0bd('0x325'),{'url':'/telephones','controller':_0x35b0bd('0x23fe'),'templateUrl':_0x201f61,'resolve':{'telephones':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x361a41,_0x52dc2d){const _0xecdedf=_0x35b0bd;return _0x52dc2d[_0xecdedf('0x1516')]('admin')?_0x361a41[_0xecdedf('0x2322')]('user@get',{'fields':_0xecdedf('0x223c'),'role':_0xecdedf('0x23ab'),'sort':_0xecdedf('0x1cee'),'limit':0xa,'offset':0x0}):_0x361a41[_0xecdedf('0x2322')]('userProfile@getResources',{'id':_0x52dc2d[_0xecdedf('0x24cc')]()['userProfileId'],'section':_0xecdedf('0x5da'),'fields':_0xecdedf('0x223c'),'role':_0xecdedf('0x23ab'),'sort':_0xecdedf('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x35b0bd('0x1318'),'Auth',function(_0x2c6a86,_0x1b0954){const _0x102a73=_0x35b0bd;return _0x1b0954[_0x102a73('0x1516')](_0x102a73('0xe23'))?null:_0x2c6a86['resolve'](_0x102a73('0x231d'),{'fields':_0x102a73('0x3f0'),'id':_0x1b0954[_0x102a73('0x24cc')]()[_0x102a73('0x237f')]});}],'userProfileSection':[_0x35b0bd('0x1318'),'Auth',function(_0x47044f,_0x1ac814){const _0x19a996=_0x35b0bd;return _0x1ac814[_0x19a996('0x1516')](_0x19a996('0xe23'))?null:_0x47044f[_0x19a996('0x2322')](_0x19a996('0x22ca'),{'fields':_0x19a996('0xe2c'),'userProfileId':_0x1ac814[_0x19a996('0x24cc')]()[_0x19a996('0x237f')],'sectionId':0xcb});}],'rpcTelephones':[_0x35b0bd('0x1318'),function(_0x2ad70e){const _0x43dca8=_0x35b0bd;return _0x2ad70e[_0x43dca8('0x2322')]('rpc@getTelephones');}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')](_0x35b0bd('0x129b'),{'url':'/trunks','controller':'TrunksVoiceRealtimeController\x20as\x20vm','templateUrl':_0x13437a,'resolve':{'trunks':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x30226c,_0xa46943){const _0x8b987f=_0x35b0bd;return _0xa46943['hasRole'](_0x8b987f('0xe23'))?_0x30226c['resolve']('trunk@get',{'fields':_0x8b987f('0x1338'),'active':!![],'sort':_0x8b987f('0x1cee'),'limit':0xa,'offset':0x0}):_0x30226c[_0x8b987f('0x2322')](_0x8b987f('0x27c5'),{'id':_0xa46943[_0x8b987f('0x24cc')]()[_0x8b987f('0x237f')],'section':_0x8b987f('0xca4'),'fields':_0x8b987f('0x1338'),'active':!![],'sort':_0x8b987f('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x35b0bd('0x1318'),'Auth',function(_0x101eaa,_0x5a1991){const _0x4f625e=_0x35b0bd;return _0x5a1991[_0x4f625e('0x1516')](_0x4f625e('0xe23'))?null:_0x101eaa[_0x4f625e('0x2322')](_0x4f625e('0x231d'),{'fields':_0x4f625e('0x3f0'),'id':_0x5a1991[_0x4f625e('0x24cc')]()[_0x4f625e('0x237f')]});}],'userProfileSection':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x1b6a72,_0x37a43a){const _0x4cdbeb=_0x35b0bd;return _0x37a43a[_0x4cdbeb('0x1516')](_0x4cdbeb('0xe23'))?null:_0x1b6a72[_0x4cdbeb('0x2322')](_0x4cdbeb('0x22ca'),{'fields':_0x4cdbeb('0xe2c'),'userProfileId':_0x37a43a[_0x4cdbeb('0x24cc')]()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':[_0x35b0bd('0x1318'),function(_0x3f3645){const _0x58bd1d=_0x35b0bd;return _0x3f3645[_0x58bd1d('0x2322')](_0x58bd1d('0xfa5'));}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')](_0x35b0bd('0x1194'),{'url':_0x35b0bd('0x1c30'),'controller':_0x35b0bd('0x1ed7'),'templateUrl':_0x13cca9,'resolve':{'queues':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x2aa3b5,_0x49a00d){const _0xde88cb=_0x35b0bd;return _0x49a00d[_0xde88cb('0x1516')](_0xde88cb('0xe23'))?_0x2aa3b5[_0xde88cb('0x2322')](_0xde88cb('0x18df'),{'type':'inbound','sort':_0xde88cb('0x1cee'),'limit':0xa,'offset':0x0}):_0x2aa3b5[_0xde88cb('0x2322')](_0xde88cb('0x27c5'),{'id':_0x49a00d[_0xde88cb('0x24cc')]()[_0xde88cb('0x237f')],'section':_0xde88cb('0x182e'),'channel':_0xde88cb('0x1f60'),'type':'inbound','sort':_0xde88cb('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x35b0bd('0x1b04'),function(_0x9ef16f,_0x92a32){const _0x1321ed=_0x35b0bd;return _0x92a32['hasRole']('admin')?null:_0x9ef16f[_0x1321ed('0x2322')](_0x1321ed('0x231d'),{'fields':_0x1321ed('0x3f0'),'id':_0x92a32['getCurrentUser']()[_0x1321ed('0x237f')]});}],'userProfileSection':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x3b16f1,_0x3d7dcb){const _0x553786=_0x35b0bd;return _0x3d7dcb['hasRole'](_0x553786('0xe23'))?null:_0x3b16f1[_0x553786('0x2322')](_0x553786('0x22ca'),{'fields':_0x553786('0xe2c'),'userProfileId':_0x3d7dcb[_0x553786('0x24cc')]()[_0x553786('0x237f')],'sectionId':0x191});}],'rpcQueues':[_0x35b0bd('0x1318'),function(_0x565f2c){const _0x13ad88=_0x35b0bd;return _0x565f2c[_0x13ad88('0x2322')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')]('app.voice.realtime.queue_calls',{'url':_0x35b0bd('0x14ca'),'controller':_0x35b0bd('0x1b78'),'templateUrl':_0x12f1aa,'resolve':{'agents':['apiResolver',_0x35b0bd('0x1b04'),function(_0x557e07,_0x4dfc11){const _0x7ecd38=_0x35b0bd;return _0x4dfc11['hasRole'](_0x7ecd38('0xe23'))?_0x557e07[_0x7ecd38('0x2322')](_0x7ecd38('0x144f'),{'fields':_0x7ecd38('0x1d9a'),'role':_0x7ecd38('0x188b'),'nolimit':!![]}):_0x557e07[_0x7ecd38('0x2322')]('userProfile@getResources',{'id':_0x4dfc11[_0x7ecd38('0x24cc')]()['userProfileId'],'section':_0x7ecd38('0x1f72'),'fields':_0x7ecd38('0x1d9a'),'role':_0x7ecd38('0x188b'),'nolimit':!![]});}],'queues':['apiResolver',_0x35b0bd('0x1b04'),function(_0xfcf02b,_0x50d8b7){const _0x15578d=_0x35b0bd;return _0x50d8b7[_0x15578d('0x1516')](_0x15578d('0xe23'))?_0xfcf02b[_0x15578d('0x2322')]('voiceQueue@get',{'type':_0x15578d('0x2e4'),'sort':'-updatedAt','nolimit':!![]}):_0xfcf02b[_0x15578d('0x2322')](_0x15578d('0x27c5'),{'id':_0x50d8b7[_0x15578d('0x24cc')]()['userProfileId'],'section':_0x15578d('0x182e'),'channel':_0x15578d('0x1f60'),'type':_0x15578d('0x2e4'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x47b115,_0x51b719){const _0x2998e7=_0x35b0bd;return _0x51b719[_0x2998e7('0x1516')]('admin')?null:_0x47b115[_0x2998e7('0x2322')](_0x2998e7('0x231d'),{'fields':_0x2998e7('0x3f0'),'id':_0x51b719[_0x2998e7('0x24cc')]()[_0x2998e7('0x237f')]});}],'userProfileSection':[_0x35b0bd('0x1318'),'Auth',function(_0x342508,_0x3b57ba){const _0x20c9a4=_0x35b0bd;return _0x3b57ba[_0x20c9a4('0x1516')]('admin')?null:_0x342508[_0x20c9a4('0x2322')](_0x20c9a4('0x22ca'),{'fields':_0x20c9a4('0xe2c'),'userProfileId':_0x3b57ba[_0x20c9a4('0x24cc')]()['userProfileId'],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x35b0bd('0x1318'),function(_0x5c5efd){const _0x282bf8=_0x35b0bd;return _0x5c5efd[_0x282bf8('0x2322')]('rpc@getVoiceQueuesChannels');}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')]('app.voice.realtime.abandonedcalls',{'url':'/abandonedcalls','controller':_0x35b0bd('0x20d1'),'templateUrl':_0x34886c,'resolve':{'agents':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x8087c0,_0x423d12){const _0x1b0777=_0x35b0bd;return _0x423d12[_0x1b0777('0x1516')](_0x1b0777('0xe23'))?_0x8087c0['resolve'](_0x1b0777('0x144f'),{'fields':_0x1b0777('0x1d9a'),'role':_0x1b0777('0x188b'),'nolimit':!![]}):_0x8087c0[_0x1b0777('0x2322')](_0x1b0777('0x27c5'),{'id':_0x423d12[_0x1b0777('0x24cc')]()['userProfileId'],'section':_0x1b0777('0x1f72'),'fields':_0x1b0777('0x1d9a'),'role':'agent','nolimit':!![]});}],'queues':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x34209b,_0x36f70f){const _0x2a5e1a=_0x35b0bd;return _0x36f70f['hasRole'](_0x2a5e1a('0xe23'))?_0x34209b[_0x2a5e1a('0x2322')](_0x2a5e1a('0x18df'),{'type':_0x2a5e1a('0x2e4'),'sort':_0x2a5e1a('0x1cee'),'nolimit':!![]}):_0x34209b[_0x2a5e1a('0x2322')](_0x2a5e1a('0x27c5'),{'id':_0x36f70f['getCurrentUser']()[_0x2a5e1a('0x237f')],'section':'VoiceQueues','channel':_0x2a5e1a('0x1f60'),'type':_0x2a5e1a('0x2e4'),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x19f8dc,_0x567f22){const _0x3ed019=_0x35b0bd;return _0x567f22['hasRole'](_0x3ed019('0xe23'))?_0x19f8dc[_0x3ed019('0x2322')](_0x3ed019('0x2cf'),{'fields':'createdAt,updatedAt,id,name,level,ParentId','sort':_0x3ed019('0x1cee'),'MailAccountId':_0x3ed019('0x954'),'FaxAccountId':_0x3ed019('0x954'),'SmsAccountId':_0x3ed019('0x954'),'WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x3ed019('0x954'),'ListId':_0x3ed019('0x954'),'nolimit':!![]}):_0x19f8dc[_0x3ed019('0x2322')](_0x3ed019('0x27c5'),{'id':_0x567f22[_0x3ed019('0x24cc')]()['userProfileId'],'section':_0x3ed019('0xaf3'),'fields':'createdAt,updatedAt,id,name','sort':_0x3ed019('0x1cee'),'MailAccountId':'null','FaxAccountId':_0x3ed019('0x954'),'SmsAccountId':_0x3ed019('0x954'),'WhatsappAccountId':_0x3ed019('0x954'),'OpenchannelAccountId':_0x3ed019('0x954'),'ChatWebsiteId':_0x3ed019('0x954'),'ListId':_0x3ed019('0x954'),'nolimit':!![]});}],'userProfile':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x160195,_0x573191){const _0x22680c=_0x35b0bd;return _0x573191[_0x22680c('0x1516')](_0x22680c('0xe23'))?null:_0x160195[_0x22680c('0x2322')](_0x22680c('0x231d'),{'fields':_0x22680c('0x3f0'),'id':_0x573191[_0x22680c('0x24cc')]()[_0x22680c('0x237f')]});}],'userProfileSection':['apiResolver',_0x35b0bd('0x1b04'),function(_0x5a74b0,_0xcc311a){const _0x33aba8=_0x35b0bd;return _0xcc311a[_0x33aba8('0x1516')](_0x33aba8('0xe23'))?null:_0x5a74b0[_0x33aba8('0x2322')]('userProfileSection@get',{'fields':_0x33aba8('0xe2c'),'userProfileId':_0xcc311a[_0x33aba8('0x24cc')]()[_0x33aba8('0x237f')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')](_0x35b0bd('0x98d'),{'url':_0x35b0bd('0x48f'),'controller':'QueueParamsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x1c7d33,'resolve':{'queues':[_0x35b0bd('0x1318'),'Auth',function(_0x382c21,_0x3d31ba){const _0x6d17b5=_0x35b0bd;return _0x3d31ba[_0x6d17b5('0x1516')](_0x6d17b5('0xe23'))?_0x382c21[_0x6d17b5('0x2322')](_0x6d17b5('0x18df'),{'type':_0x6d17b5('0x2e4'),'fields':'id,name','sort':_0x6d17b5('0x1cee'),'limit':0xa,'offset':0x0}):_0x382c21[_0x6d17b5('0x2322')]('userProfile@getResources',{'id':_0x3d31ba['getCurrentUser']()['userProfileId'],'section':_0x6d17b5('0x182e'),'channel':_0x6d17b5('0x1f60'),'type':_0x6d17b5('0x2e4'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x35b0bd('0x1318'),'Auth',function(_0xa6fe13,_0x42f964){const _0x1452bd=_0x35b0bd;return _0x42f964[_0x1452bd('0x1516')](_0x1452bd('0xe23'))?null:_0xa6fe13[_0x1452bd('0x2322')](_0x1452bd('0x231d'),{'fields':_0x1452bd('0x3f0'),'id':_0x42f964[_0x1452bd('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x35b0bd('0x1318'),_0x35b0bd('0x1b04'),function(_0x2e647d,_0x2d3df0){const _0xc8f868=_0x35b0bd;return _0x2d3df0[_0xc8f868('0x1516')](_0xc8f868('0xe23'))?null:_0x2e647d[_0xc8f868('0x2322')](_0xc8f868('0x22ca'),{'fields':_0xc8f868('0xe2c'),'userProfileId':_0x2d3df0[_0xc8f868('0x24cc')]()[_0xc8f868('0x237f')],'sectionId':0x191});}],'rpcQueues':[_0x35b0bd('0x1318'),function(_0x4d4eef){const _0xecd893=_0x35b0bd;return _0x4d4eef[_0xecd893('0x2322')](_0xecd893('0x5bb'));}]},'authenticate':!![],'permissionId':0x19b})[_0x35b0bd('0x249b')](_0x35b0bd('0xbb'),{'url':'/outbound_calls','controller':'OutboundCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x265b3b,'resolve':{'rpcCalls':[_0x35b0bd('0x1318'),function(_0x50a856){const _0x2bfa09=_0x35b0bd;return _0x50a856[_0x2bfa09('0x2322')](_0x2bfa09('0x25af'));}]},'authenticate':!![],'permissionId':0x19b});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x14cb'),[])['config'](_0x42b93b)[_0x34e79e('0xb44')]('AbandonedCallsVoiceRealtimeController',_0xbc51f)[_0x34e79e('0xb44')](_0x34e79e('0xf51'),_0x589a12)[_0x34e79e('0xb44')](_0x34e79e('0x71f'),_0x1f8dd8)[_0x34e79e('0xb44')](_0x34e79e('0x79a'),_0x189152)['controller'](_0x34e79e('0x1004'),_0x27cd77)['controller'](_0x34e79e('0x69a'),_0x24db21)[_0x34e79e('0x227e')]('helperClasses',_0x2a9bd1)[_0x34e79e('0xb44')](_0x34e79e('0x1eb5'),_0x4721b2)[_0x34e79e('0xb44')](_0x34e79e('0x4ec'),_0x18b2db)['controller'](_0x34e79e('0x140e'),_0x57cb19);const _0x5ae5fa=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog.html';_0x349f25[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),'chanSpies',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x349f25(_0x522515,_0x496870,_0x5303ad,_0xc16847,_0x48803e,_0xcc64d,_0x2d1d32,_0x3efa4c,_0x58670f,_0x171b7f,_0x2b266e,_0x6b30f4,_0x5d8d64,_0xb2331b,_0x84114,_0x4a561c,_0x1480ad){const _0x15e211=_0x34e79e,_0x4cc985=this;_0x4cc985[_0x15e211('0x130d')]=_0x4a561c,_0x4cc985[_0x15e211('0x1af0')]=_0x1480ad,_0x4cc985[_0x15e211('0x9cb')]=_0x84114[_0x15e211('0x24cc')](),_0x4cc985[_0x15e211('0x25fa')]=_0x58670f||{'count':0x0,'rows':[]},_0x4cc985[_0x15e211('0x63c')]=_0x171b7f,_0x4cc985[_0x15e211('0xec9')]=_0x2b266e&&_0x2b266e['count']==0x1?_0x2b266e[_0x15e211('0x25df')][0x0]:null,_0x4cc985[_0x15e211('0xe28')]=_0x84114[_0x15e211('0x157e')](_0x4cc985[_0x15e211('0xec9')]?_0x4cc985[_0x15e211('0xec9')]['crudPermissions']:null),_0x4cc985[_0x15e211('0x26a9')]=_0x15e211('0x25fa'),_0x4cc985[_0x15e211('0x2278')]='',_0x4cc985[_0x15e211('0x25e2')]=null,_0x4cc985[_0x15e211('0x664')]=[],_0x4cc985[_0x15e211('0x135a')]={'fields':_0x15e211('0xa7b'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4cc985[_0x15e211('0x1e2')]=_0x283545()[_0x15e211('0x13cf')]([{'option':_0x15e211('0xc68'),'value':_0x15e211('0x26f9')},{'option':'B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','value':_0x15e211('0x13c6')},{'option':_0x15e211('0xb2c'),'value':_0x15e211('0x25b7')},{'option':_0x15e211('0x1e68'),'value':_0x15e211('0xaf4')},{'option':_0x15e211('0x9a3'),'value':_0x15e211('0x1206')},{'option':'s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','value':_0x15e211('0x68f')},{'option':'S:\x20Stop\x20when\x20no\x20more\x20channels\x20are\x20left\x20to\x20spy\x20on.','value':'\x27S\x27'},{'option':_0x15e211('0x7a1'),'value':_0x15e211('0x1c34')},{'option':_0x15e211('0xeed'),'value':_0x15e211('0x12ef')}],function(_0x520763){const _0x134709=_0x15e211;return _0x283545()[_0x134709('0x10a4')](_0x520763[_0x134709('0x49')],new RegExp('\x27','g'),'');}),_0x4cc985[_0x15e211('0xa24')]=_0x283545()['keyBy']([{'option':'wav','value':_0x15e211('0x13f7')},{'option':_0x15e211('0x14c1'),'value':_0x15e211('0x9d3')},{'option':_0x15e211('0x7d6'),'value':_0x15e211('0x1eba')}],function(_0x121a31){return _0x283545()['replace'](_0x121a31['value'],new RegExp('\x27','g'),'');}),_0x4cc985[_0x15e211('0x23af')]=_0x533604,_0x4cc985[_0x15e211('0x1e5')]=_0x4238c5,_0x4cc985['success']=_0x2858b7,_0x4cc985[_0x15e211('0x5ea')]=_0x2177f2,_0x4cc985[_0x15e211('0x15c5')]=_0x466fbc,_0x4cc985[_0x15e211('0x2428')]=_0x2ad823,_0x4cc985[_0x15e211('0x19dd')]=_0x12562f,_0x4cc985['deleteSelectedChanSpies']=_0x301117,_0x4cc985[_0x15e211('0xa6e')]=_0x18f990,_0x4cc985[_0x15e211('0xd01')]=_0x364015;function _0x533604(_0x2310ad,_0x5a2663){const _0x171ae8=_0x15e211;_0x48803e['show']({'controller':_0x171ae8('0x13ff'),'controllerAs':'vm','templateUrl':_0x5ae5fa,'parent':angular[_0x171ae8('0x16b1')](_0xcc64d[_0x171ae8('0x945')]),'targetEvent':_0x5a2663,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x2310ad,'chanSpies':_0x4cc985[_0x171ae8('0x25fa')]['rows'],'license':_0x4cc985[_0x171ae8('0x130d')],'setting':null,'crudPermissions':_0x4cc985[_0x171ae8('0xe28')]}});}function _0x4238c5(_0x34f297,_0x51aad1){const _0x48925d=_0x15e211,_0x1853a0=_0x48803e[_0x48925d('0x112e')]()['title'](_0x48925d('0x2114')+_0x283545()['startCase'](_0x48925d('0xcc'))+'?')[_0x48925d('0x93e')](_0x48925d('0x1670')+(_0x34f297['name']||_0x48925d('0xcc'))+_0x48925d('0x229e')+_0x48925d('0x27c7'))[_0x48925d('0x10bc')](_0x48925d('0x559'))[_0x48925d('0x24d0')](_0x51aad1)['ok']('OK')[_0x48925d('0x1801')](_0x48925d('0x1d8d'));_0x48803e[_0x48925d('0x2fa')](_0x1853a0)[_0x48925d('0x2788')](function(){_0x2ad823(_0x34f297);},function(){console['log']('CANCEL');});}let _0x42a45e=!![],_0x6c9acc=0x1;_0x522515['$watch'](_0x15e211('0x1569'),function(_0x577af3,_0x513c65){const _0x25266a=_0x15e211;_0x42a45e?_0x2d1d32(function(){_0x42a45e=![];}):(!_0x513c65&&(_0x6c9acc=_0x4cc985['query'][_0x25266a('0x23f5')]),_0x577af3!==_0x513c65&&(_0x4cc985[_0x25266a('0x135a')][_0x25266a('0x23f5')]=0x1),!_0x577af3&&(_0x4cc985['query'][_0x25266a('0x23f5')]=_0x6c9acc),_0x4cc985['getChanSpies']());});function _0x2858b7(_0x2e96c6){const _0x59cf90=_0x15e211;_0x4cc985[_0x59cf90('0x25fa')]=_0x2e96c6||{'count':0x0,'rows':[]};}function _0x2177f2(){const _0x2c5843=_0x15e211;_0x4cc985['query'][_0x2c5843('0x19e')]=(_0x4cc985[_0x2c5843('0x135a')]['page']-0x1)*_0x4cc985[_0x2c5843('0x135a')][_0x2c5843('0x68e')],_0x84114[_0x2c5843('0x1516')](_0x2c5843('0xe23'))?_0x4cc985[_0x2c5843('0x1808')]=_0x6b30f4[_0x2c5843('0x1028')][_0x2c5843('0x1335')](_0x4cc985[_0x2c5843('0x135a')],_0x2858b7)[_0x2c5843('0x1714')]:(_0x4cc985[_0x2c5843('0x135a')]['id']=_0x4cc985[_0x2c5843('0x63c')]['id'],_0x4cc985[_0x2c5843('0x135a')][_0x2c5843('0xb13')]=_0x2c5843('0x732'),_0x4cc985[_0x2c5843('0x1808')]=_0x6b30f4[_0x2c5843('0x63c')][_0x2c5843('0xa1')](_0x4cc985['query'],_0x2858b7)['$promise']);}function _0x466fbc(_0x731237,_0x2c542a){const _0x2686ff=_0x15e211;_0x48803e[_0x2686ff('0x2fa')]({'controller':_0x2686ff('0x13ff'),'controllerAs':'vm','templateUrl':_0x5ae5fa,'parent':angular[_0x2686ff('0x16b1')](_0xcc64d[_0x2686ff('0x945')]),'targetEvent':_0x731237,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x2c542a,'chanSpies':_0x4cc985[_0x2686ff('0x25fa')][_0x2686ff('0x25df')],'license':_0x4cc985['license'],'setting':_0x4cc985[_0x2686ff('0x1af0')],'crudPermissions':_0x4cc985[_0x2686ff('0xe28')]}});}function _0x2ad823(_0xa964cb){const _0x56a29d=_0x15e211;_0x6b30f4[_0x56a29d('0x1028')][_0x56a29d('0x17c4')]({'id':_0xa964cb['id']})[_0x56a29d('0x1714')][_0x56a29d('0x2788')](function(){const _0x5c662d=_0x56a29d;_0x283545()[_0x5c662d('0x1a90')](_0x4cc985[_0x5c662d('0x25fa')][_0x5c662d('0x25df')],{'id':_0xa964cb['id']}),_0x4cc985[_0x5c662d('0x25fa')][_0x5c662d('0x338')]-=0x1,!_0x4cc985[_0x5c662d('0x25fa')][_0x5c662d('0x25df')]['length']&&_0x4cc985['getChanSpies'](),_0xb2331b[_0x5c662d('0x173b')]({'title':_0x283545()[_0x5c662d('0x114')]('chanSpy')+_0x5c662d('0x20db'),'msg':_0xa964cb[_0x5c662d('0x1a8d')]?_0xa964cb['name']+_0x5c662d('0x14d4'):''});})['catch'](function(_0x20dd31){const _0x3cd3b3=_0x56a29d;if(_0x20dd31[_0x3cd3b3('0x11fc')]&&_0x20dd31[_0x3cd3b3('0x11fc')]['errors']&&_0x20dd31[_0x3cd3b3('0x11fc')][_0x3cd3b3('0x25be')][_0x3cd3b3('0x2566')]){_0x4cc985[_0x3cd3b3('0x25be')]=_0x20dd31[_0x3cd3b3('0x11fc')]['errors']||[{'message':_0x20dd31[_0x3cd3b3('0x17df')](),'type':_0x3cd3b3('0x2f6')}];for(let _0x5915e3=0x0;_0x5915e3<_0x20dd31[_0x3cd3b3('0x11fc')][_0x3cd3b3('0x25be')][_0x3cd3b3('0x2566')];_0x5915e3++){_0xb2331b[_0x3cd3b3('0x5e8')]({'title':_0x20dd31[_0x3cd3b3('0x11fc')][_0x3cd3b3('0x25be')][_0x5915e3][_0x3cd3b3('0x1d7')],'msg':_0x20dd31['data'][_0x3cd3b3('0x25be')][_0x5915e3][_0x3cd3b3('0x15e2')]});}}else _0xb2331b[_0x3cd3b3('0x5e8')]({'title':_0x20dd31[_0x3cd3b3('0x1b51')]?_0x3cd3b3('0x15d1')+_0x20dd31[_0x3cd3b3('0x1b51')]+_0x3cd3b3('0x1b0b')+_0x20dd31[_0x3cd3b3('0x22ce')]:_0x3cd3b3('0x2f6'),'msg':_0x20dd31['data']?JSON[_0x3cd3b3('0x1be0')](_0x20dd31['data'][_0x3cd3b3('0x15e2')]):_0x20dd31[_0x3cd3b3('0x15e2')]||_0x20dd31[_0x3cd3b3('0x17df')]()});});}function _0x12562f(){const _0x67fbac=_0x15e211,_0x5a14c9=angular['copy'](_0x4cc985['selectedChanSpies']);return _0x4cc985[_0x67fbac('0x664')]=[],_0x5a14c9;}function _0x301117(_0x20c81b){const _0x552ff9=_0x15e211,_0x2cfc9b=_0x48803e[_0x552ff9('0x112e')]()[_0x552ff9('0x14e4')](_0x552ff9('0x1feb'))[_0x552ff9('0x93e')](_0x552ff9('0x1670')+_0x4cc985['selectedChanSpies']['length']+'\x20selected
'+_0x552ff9('0x27c7'))[_0x552ff9('0x10bc')]('delete\x20chanSpys')[_0x552ff9('0x24d0')](_0x20c81b)['ok']('OK')[_0x552ff9('0x1801')](_0x552ff9('0x1d8d'));_0x48803e[_0x552ff9('0x2fa')](_0x2cfc9b)[_0x552ff9('0x2788')](function(){const _0x18f931=_0x552ff9;_0x4cc985[_0x18f931('0x664')][_0x18f931('0x1534')](function(_0x37d5ae){_0x2ad823(_0x37d5ae);}),_0x4cc985[_0x18f931('0x664')]=[];});}function _0x18f990(){const _0x163d72=_0x15e211;_0x4cc985[_0x163d72('0x664')]=[];}function _0x364015(){const _0x39d12b=_0x15e211;_0x4cc985[_0x39d12b('0x664')]=_0x4cc985['chanSpies']['rows'];}}const _0x2d69f3=_0x349f25;_0x46361b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x25fa'),'chanSpy',_0x34e79e('0x519'),'Auth','license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x46361b(_0x427709,_0xd27bc4,_0x1de960,_0x212b51,_0x3b3c25,_0x5325b3,_0x3cf188,_0x503c40,_0x34302a,_0x598383,_0x17f786,_0xacf00d,_0x217d42,_0x150e86){const _0x2c2047=_0x34e79e,_0x306faf=this;_0x306faf[_0x2c2047('0x9cb')]=_0x17f786[_0x2c2047('0x24cc')](),_0x306faf[_0x2c2047('0x25be')]=[],_0x306faf[_0x2c2047('0x1af0')]=_0x217d42,_0x306faf[_0x2c2047('0x130d')]=_0xacf00d,_0x306faf[_0x2c2047('0xe28')]=_0x150e86,_0x306faf['hasModulePermissions']={},_0x306faf[_0x2c2047('0x18ad')]=_0x306faf[_0x2c2047('0x1af0')]&&_0x306faf[_0x2c2047('0x1af0')][_0x2c2047('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x306faf[_0x2c2047('0x14e4')]=_0x2c2047('0x1975'),_0x306faf['chanSpy']=angular[_0x2c2047('0x2669')](_0x34302a),_0x306faf['chanSpies']=_0x503c40,_0x306faf[_0x2c2047('0x48a')]=![];!_0x306faf[_0x2c2047('0xcc')]&&(_0x306faf[_0x2c2047('0xcc')]={'recordingFormat':'wav'},_0x306faf['title']=_0x2c2047('0x1d18'),_0x306faf['newchanSpy']=!![]);_0x306faf[_0x2c2047('0xd0a')]=_0x3c0c35,_0x306faf[_0x2c2047('0x27d4')]=_0x5e5656,_0x306faf['deletechanSpy']=_0x4ada2a,_0x306faf[_0x2c2047('0x2601')]=_0xc66b37,_0x306faf[_0x2c2047('0xca7')]=_0x4cdabc;function _0x3c0c35(){const _0x313671=_0x2c2047;_0x306faf[_0x313671('0x25be')]=[],_0x598383[_0x313671('0x1028')][_0x313671('0xbd0')](_0x306faf[_0x313671('0xcc')])[_0x313671('0x1714')][_0x313671('0x2788')](function(_0x2ddc3a){const _0x4c5ff9=_0x313671;_0x306faf[_0x4c5ff9('0x25fa')][_0x4c5ff9('0xc51')](_0x2ddc3a['toJSON']()),_0x3cf188[_0x4c5ff9('0x173b')]({'title':_0x4c5ff9('0x20d9'),'msg':_0x306faf[_0x4c5ff9('0xcc')][_0x4c5ff9('0x1a8d')]?_0x306faf[_0x4c5ff9('0xcc')][_0x4c5ff9('0x1a8d')]+_0x4c5ff9('0x1e4a'):''}),_0x4cdabc(_0x2ddc3a);})[_0x313671('0x1cb5')](function(_0x193802){const _0x481c76=_0x313671;if(_0x193802[_0x481c76('0x11fc')]&&_0x193802['data']['errors']&&_0x193802[_0x481c76('0x11fc')][_0x481c76('0x25be')][_0x481c76('0x2566')]){_0x306faf[_0x481c76('0x25be')]=_0x193802[_0x481c76('0x11fc')][_0x481c76('0x25be')]||[{'message':_0x193802[_0x481c76('0x17df')](),'type':_0x481c76('0x2513')}];for(let _0x10f968=0x0;_0x10f968<_0x193802[_0x481c76('0x11fc')][_0x481c76('0x25be')][_0x481c76('0x2566')];_0x10f968+=0x1){_0x3cf188[_0x481c76('0x5e8')]({'title':_0x193802[_0x481c76('0x11fc')][_0x481c76('0x25be')][_0x10f968][_0x481c76('0x1d7')],'msg':_0x193802[_0x481c76('0x11fc')][_0x481c76('0x25be')][_0x10f968][_0x481c76('0x15e2')]});}}else _0x3cf188[_0x481c76('0x5e8')]({'title':_0x193802[_0x481c76('0x1b51')]?_0x481c76('0x15d1')+_0x193802[_0x481c76('0x1b51')]+_0x481c76('0x1b0b')+_0x193802[_0x481c76('0x22ce')]:_0x481c76('0x2513'),'msg':_0x193802[_0x481c76('0x11fc')]?JSON[_0x481c76('0x1be0')](_0x193802['data'][_0x481c76('0x15e2')]):_0x193802[_0x481c76('0x17df')]()});});}function _0x5e5656(){const _0x4bbeb6=_0x2c2047;_0x306faf['errors']=[],_0x598383['voiceChanSpy']['update']({'id':_0x306faf[_0x4bbeb6('0xcc')]['id']},_0x306faf[_0x4bbeb6('0xcc')])[_0x4bbeb6('0x1714')][_0x4bbeb6('0x2788')](function(_0x134ae4){const _0x34e4ea=_0x4bbeb6,_0x26aa7e=_0x283545()[_0x34e4ea('0x20e8')](_0x306faf[_0x34e4ea('0x25fa')],{'id':_0x134ae4['id']});_0x26aa7e&&_0x283545()[_0x34e4ea('0x2503')](_0x26aa7e,_0x283545()['pick'](_0x134ae4['toJSON'](),_0x283545()[_0x34e4ea('0x2163')](_0x26aa7e))),_0x3cf188[_0x34e4ea('0x173b')]({'title':_0x34e4ea('0x1b76'),'msg':_0x306faf[_0x34e4ea('0xcc')][_0x34e4ea('0x1a8d')]?_0x306faf[_0x34e4ea('0xcc')][_0x34e4ea('0x1a8d')]+_0x34e4ea('0x24cf'):''}),_0x4cdabc(_0x134ae4);})[_0x4bbeb6('0x1cb5')](function(_0x26d771){const _0x29497f=_0x4bbeb6;if(_0x26d771['data']&&_0x26d771[_0x29497f('0x11fc')]['errors']&&_0x26d771[_0x29497f('0x11fc')][_0x29497f('0x25be')][_0x29497f('0x2566')]){_0x306faf[_0x29497f('0x25be')]=_0x26d771[_0x29497f('0x11fc')]['errors']||[{'message':_0x26d771['toString'](),'type':_0x29497f('0x16bc')}];for(let _0x298142=0x0;_0x298142<_0x26d771[_0x29497f('0x11fc')]['errors'][_0x29497f('0x2566')];_0x298142++){_0x3cf188['error']({'title':_0x26d771[_0x29497f('0x11fc')][_0x29497f('0x25be')][_0x298142]['type'],'msg':_0x26d771[_0x29497f('0x11fc')][_0x29497f('0x25be')][_0x298142][_0x29497f('0x15e2')]});}}else _0x3cf188['error']({'title':_0x26d771[_0x29497f('0x1b51')]?_0x29497f('0x15d1')+_0x26d771[_0x29497f('0x1b51')]+_0x29497f('0x1b0b')+_0x26d771[_0x29497f('0x22ce')]:_0x29497f('0x16bc'),'msg':_0x26d771[_0x29497f('0x11fc')]?JSON[_0x29497f('0x1be0')](_0x26d771[_0x29497f('0x11fc')][_0x29497f('0x15e2')]):_0x26d771[_0x29497f('0x17df')]()});});}function _0x4ada2a(_0x3342b3){const _0x44eafb=_0x2c2047;_0x306faf[_0x44eafb('0x25be')]=[];const _0xa8052e=_0x212b51[_0x44eafb('0x112e')]()[_0x44eafb('0x14e4')](_0x44eafb('0x458'))[_0x44eafb('0x1c98')](_0x44eafb('0x2751'))[_0x44eafb('0x10bc')](_0x44eafb('0x118f'))['ok'](_0x44eafb('0x2786'))[_0x44eafb('0x1801')](_0x44eafb('0x1481'))[_0x44eafb('0x24d0')](_0x3342b3);_0x212b51[_0x44eafb('0x2fa')](_0xa8052e)[_0x44eafb('0x2788')](function(){const _0x1331b1=_0x44eafb;_0x598383[_0x1331b1('0x1028')]['delete']({'id':_0x306faf['chanSpy']['id']})[_0x1331b1('0x1714')][_0x1331b1('0x2788')](function(){const _0x137bf1=_0x1331b1;_0x283545()[_0x137bf1('0x1a90')](_0x306faf[_0x137bf1('0x25fa')],{'id':_0x306faf[_0x137bf1('0xcc')]['id']}),_0x3cf188['success']({'title':'chanSpy\x20properly\x20deleted!','msg':(_0x306faf[_0x137bf1('0xcc')]['name']||'chanSpy')+_0x137bf1('0x14d4')}),_0x4cdabc(_0x306faf[_0x137bf1('0xcc')]);})['catch'](function(_0x37ed22){const _0x1c1ad2=_0x1331b1;if(_0x37ed22[_0x1c1ad2('0x11fc')]&&_0x37ed22[_0x1c1ad2('0x11fc')]['errors']&&_0x37ed22[_0x1c1ad2('0x11fc')][_0x1c1ad2('0x25be')][_0x1c1ad2('0x2566')]){_0x306faf[_0x1c1ad2('0x25be')]=_0x37ed22[_0x1c1ad2('0x11fc')][_0x1c1ad2('0x25be')]||[{'message':_0x37ed22[_0x1c1ad2('0x17df')](),'type':'api.voiceChanSpy.delete'}];for(let _0x220b44=0x0;_0x220b44<_0x37ed22[_0x1c1ad2('0x11fc')][_0x1c1ad2('0x25be')][_0x1c1ad2('0x2566')];_0x220b44++){_0x3cf188[_0x1c1ad2('0x5e8')]({'title':_0x37ed22[_0x1c1ad2('0x11fc')][_0x1c1ad2('0x25be')][_0x220b44][_0x1c1ad2('0x1d7')],'msg':_0x37ed22['data']['errors'][_0x220b44][_0x1c1ad2('0x15e2')]});}}else _0x3cf188['error']({'title':_0x37ed22['status']?'API:'+_0x37ed22[_0x1c1ad2('0x1b51')]+'\x20-\x20'+_0x37ed22[_0x1c1ad2('0x22ce')]:_0x1c1ad2('0xd25'),'msg':_0x37ed22['data']?JSON[_0x1c1ad2('0x1be0')](_0x37ed22[_0x1c1ad2('0x11fc')]['message']):_0x37ed22['message']||_0x37ed22[_0x1c1ad2('0x17df')]()});});},function(){});}function _0xc66b37(_0x2c4f03){return _0x2c4f03===null?undefined:new Date(_0x2c4f03);}function _0x4cdabc(_0x1abedc){_0x212b51['hide'](_0x1abedc);}}const _0xbe994e=_0x46361b,_0x84ed53=_0x18dd13['p']+_0x34e79e('0x1ee0');_0x2e6a82['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'contexts',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x2e6a82(_0x3c092c,_0x1a785b,_0x5997dd,_0x2096ba,_0x1581b2,_0xf10974,_0x5d5a0c,_0x2d1189,_0x34e5e5,_0x39aca9,_0x502fa0,_0x4688fa,_0x50b551,_0x59a3a5,_0x40d70d,_0x43f9ea,_0x2fd6d0){const _0x3146da=_0x34e79e,_0x482ebf=this;_0x482ebf['license']=_0x43f9ea,_0x482ebf[_0x3146da('0x1af0')]=_0x2fd6d0,_0x482ebf['currentUser']=_0x40d70d[_0x3146da('0x24cc')](),_0x482ebf[_0x3146da('0xf3e')]=_0x34e5e5||{'count':0x0,'rows':[]},_0x482ebf[_0x3146da('0x63c')]=_0x39aca9,_0x482ebf['userProfileSection']=_0x502fa0&&_0x502fa0['count']==0x1?_0x502fa0[_0x3146da('0x25df')][0x0]:null,_0x482ebf[_0x3146da('0xe28')]=_0x40d70d[_0x3146da('0x157e')](_0x482ebf[_0x3146da('0xec9')]?_0x482ebf[_0x3146da('0xec9')]['crudPermissions']:null),_0x482ebf[_0x3146da('0x26a9')]=_0x3146da('0xf3e'),_0x482ebf[_0x3146da('0x2278')]='',_0x482ebf[_0x3146da('0x25e2')]=null,_0x482ebf[_0x3146da('0xfbb')]=[],_0x482ebf[_0x3146da('0x135a')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x3146da('0x1cee'),'defaultEntry':_0x3146da('0x1888'),'limit':0xa,'page':0x1},_0x482ebf[_0x3146da('0x23af')]=_0x267b60,_0x482ebf[_0x3146da('0x1e5')]=_0x422fb8,_0x482ebf[_0x3146da('0x173b')]=_0x156e6e,_0x482ebf[_0x3146da('0xc01')]=_0x5bce0d,_0x482ebf[_0x3146da('0x3e4')]=_0x157d9f,_0x482ebf[_0x3146da('0x17e4')]=_0x9fd8d0,_0x482ebf[_0x3146da('0x1f00')]=_0x277112,_0x482ebf[_0x3146da('0x1615')]=_0x32af6c,_0x482ebf[_0x3146da('0x1177')]=_0x3213a8,_0x482ebf[_0x3146da('0x539')]=_0x2659f2;function _0x267b60(_0x14910b,_0x4d91ed){const _0x5ca314=_0x3146da;_0x1581b2[_0x5ca314('0x2fa')]({'controller':_0x5ca314('0x1937'),'controllerAs':'vm','templateUrl':_0x84ed53,'parent':angular[_0x5ca314('0x16b1')](_0xf10974[_0x5ca314('0x945')]),'targetEvent':_0x4d91ed,'clickOutsideToClose':!![],'locals':{'context':_0x14910b,'contexts':_0x482ebf[_0x5ca314('0xf3e')]['rows'],'license':_0x482ebf[_0x5ca314('0x130d')],'setting':null,'crudPermissions':_0x482ebf[_0x5ca314('0xe28')]}});}function _0x422fb8(_0x3771f2,_0x29219d){const _0x386711=_0x3146da,_0x1c5bab=_0x1581b2[_0x386711('0x112e')]()[_0x386711('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x386711('0x114')]('context')+'?')[_0x386711('0x93e')](_0x386711('0x1670')+(_0x3771f2[_0x386711('0x1a8d')]||'context')+''+_0x386711('0x27c7'))[_0x386711('0x10bc')](_0x386711('0x860'))[_0x386711('0x24d0')](_0x29219d)['ok']('OK')[_0x386711('0x1801')](_0x386711('0x1d8d'));_0x1581b2[_0x386711('0x2fa')](_0x1c5bab)[_0x386711('0x2788')](function(){_0x9fd8d0(_0x3771f2);},function(){const _0x4acfdd=_0x386711;console[_0x4acfdd('0x10df')](_0x4acfdd('0x1d8d'));});}let _0x17b472=!![],_0x912238=0x1;_0x3c092c[_0x3146da('0x1662')](_0x3146da('0x1569'),function(_0x33524a,_0x304f76){const _0x541740=_0x3146da;_0x17b472?_0x5d5a0c(function(){_0x17b472=![];}):(!_0x304f76&&(_0x912238=_0x482ebf[_0x541740('0x135a')][_0x541740('0x23f5')]),_0x33524a!==_0x304f76&&(_0x482ebf[_0x541740('0x135a')][_0x541740('0x23f5')]=0x1),!_0x33524a&&(_0x482ebf['query'][_0x541740('0x23f5')]=_0x912238),_0x482ebf[_0x541740('0xc01')]());});function _0x156e6e(_0x1bd87b){const _0x419d68=_0x3146da;_0x482ebf[_0x419d68('0xf3e')]=_0x1bd87b||{'count':0x0,'rows':[]};}function _0x5bce0d(){const _0x4e4547=_0x3146da;_0x482ebf[_0x4e4547('0x135a')][_0x4e4547('0x19e')]=(_0x482ebf['query'][_0x4e4547('0x23f5')]-0x1)*_0x482ebf['query'][_0x4e4547('0x68e')],_0x40d70d[_0x4e4547('0x1516')](_0x4e4547('0xe23'))?_0x482ebf[_0x4e4547('0x1808')]=_0x4688fa[_0x4e4547('0x15cc')]['get'](_0x482ebf[_0x4e4547('0x135a')],_0x156e6e)[_0x4e4547('0x1714')]:(_0x482ebf[_0x4e4547('0x135a')]['id']=_0x482ebf[_0x4e4547('0x63c')]['id'],_0x482ebf[_0x4e4547('0x135a')]['section']=_0x4e4547('0x1b38'),_0x482ebf[_0x4e4547('0x1808')]=_0x4688fa[_0x4e4547('0x63c')]['getResources'](_0x482ebf[_0x4e4547('0x135a')],_0x156e6e)['$promise']);}function _0x157d9f(_0x3fa584,_0x33dff2){const _0x58dfea=_0x3146da;_0x1581b2['show']({'controller':_0x58dfea('0x1937'),'controllerAs':'vm','templateUrl':_0x84ed53,'parent':angular['element'](_0xf10974[_0x58dfea('0x945')]),'targetEvent':_0x3fa584,'clickOutsideToClose':!![],'locals':{'context':_0x33dff2,'contexts':_0x482ebf[_0x58dfea('0xf3e')][_0x58dfea('0x25df')],'license':_0x482ebf[_0x58dfea('0x130d')],'setting':_0x482ebf[_0x58dfea('0x1af0')],'crudPermissions':_0x482ebf[_0x58dfea('0xe28')]}});}function _0x9fd8d0(_0x1e708e){const _0x75d9c8=_0x3146da;_0x4688fa['voiceContext']['delete']({'id':_0x1e708e['id']})[_0x75d9c8('0x1714')][_0x75d9c8('0x2788')](function(){const _0x51941a=_0x75d9c8;_0x283545()[_0x51941a('0x1a90')](_0x482ebf[_0x51941a('0xf3e')][_0x51941a('0x25df')],{'id':_0x1e708e['id']}),_0x482ebf[_0x51941a('0xf3e')][_0x51941a('0x338')]-=0x1,!_0x482ebf[_0x51941a('0xf3e')][_0x51941a('0x25df')]['length']&&_0x482ebf[_0x51941a('0xc01')](),_0x59a3a5[_0x51941a('0x173b')]({'title':_0x283545()[_0x51941a('0x114')](_0x51941a('0x1d1'))+_0x51941a('0x20db'),'msg':_0x1e708e[_0x51941a('0x1a8d')]?_0x1e708e[_0x51941a('0x1a8d')]+_0x51941a('0x14d4'):''});})[_0x75d9c8('0x1cb5')](function(_0x465721){const _0x4a485c=_0x75d9c8;if(_0x465721[_0x4a485c('0x11fc')]&&_0x465721[_0x4a485c('0x11fc')][_0x4a485c('0x25be')]&&_0x465721['data'][_0x4a485c('0x25be')]['length']){_0x482ebf[_0x4a485c('0x25be')]=_0x465721[_0x4a485c('0x11fc')][_0x4a485c('0x25be')]||[{'message':_0x465721[_0x4a485c('0x17df')](),'type':_0x4a485c('0x1f2b')}];for(let _0xaaf02f=0x0;_0xaaf02f<_0x465721[_0x4a485c('0x11fc')][_0x4a485c('0x25be')][_0x4a485c('0x2566')];_0xaaf02f++){_0x59a3a5[_0x4a485c('0x5e8')]({'title':_0x465721[_0x4a485c('0x11fc')]['errors'][_0xaaf02f][_0x4a485c('0x1d7')],'msg':_0x465721[_0x4a485c('0x11fc')][_0x4a485c('0x25be')][_0xaaf02f][_0x4a485c('0x15e2')]});}}else _0x59a3a5[_0x4a485c('0x5e8')]({'title':_0x465721[_0x4a485c('0x1b51')]?_0x4a485c('0x15d1')+_0x465721[_0x4a485c('0x1b51')]+'\x20-\x20'+_0x465721['statusText']:_0x4a485c('0x1f2b'),'msg':_0x465721[_0x4a485c('0x11fc')]?JSON[_0x4a485c('0x1be0')](_0x465721['data'][_0x4a485c('0x15e2')]):_0x465721[_0x4a485c('0x15e2')]||_0x465721[_0x4a485c('0x17df')]()});});}function _0x277112(){const _0x3cff43=_0x3146da,_0x15108b=angular[_0x3cff43('0x2669')](_0x482ebf[_0x3cff43('0xfbb')]);return _0x482ebf['selectedContexts']=[],_0x15108b;}function _0x32af6c(_0x4d5eb7){const _0x31c76d=_0x3146da,_0x28a107=_0x1581b2[_0x31c76d('0x112e')]()[_0x31c76d('0x14e4')](_0x31c76d('0x262c'))[_0x31c76d('0x93e')](_0x31c76d('0x1670')+_0x482ebf['selectedContexts'][_0x31c76d('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x31c76d('0x10bc')](_0x31c76d('0x2c6'))[_0x31c76d('0x24d0')](_0x4d5eb7)['ok']('OK')[_0x31c76d('0x1801')](_0x31c76d('0x1d8d'));_0x1581b2[_0x31c76d('0x2fa')](_0x28a107)[_0x31c76d('0x2788')](function(){const _0x48de0f=_0x31c76d;_0x482ebf[_0x48de0f('0xfbb')][_0x48de0f('0x1534')](function(_0x496354){_0x9fd8d0(_0x496354);}),_0x482ebf[_0x48de0f('0xfbb')]=[];});}function _0x3213a8(){const _0x2753cd=_0x3146da;_0x482ebf[_0x2753cd('0xfbb')]=[];}function _0x2659f2(){const _0x5f4b4b=_0x3146da;_0x482ebf['selectedContexts']=_0x482ebf[_0x5f4b4b('0xf3e')][_0x5f4b4b('0x25df')];}}const _0x1101b8=_0x2e6a82;_0x2ee12a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty','contexts',_0x34e79e('0x1f3b'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x2ee12a(_0x1a6754,_0x117187,_0x1850d7,_0x4a9ad1,_0x50262f,_0x44390f,_0x3a1e28,_0x10a3c8,_0x36522a,_0x4aec8c,_0x1f20a0,_0x2c73ce,_0x146fb1,_0x2a9e0b){const _0x58c3c8=_0x34e79e,_0x12791c=this;_0x12791c['currentUser']=_0x1f20a0[_0x58c3c8('0x24cc')](),_0x12791c[_0x58c3c8('0x25be')]=[],_0x12791c[_0x58c3c8('0x1af0')]=_0x146fb1,_0x12791c[_0x58c3c8('0x130d')]=_0x2c73ce,_0x12791c[_0x58c3c8('0xe28')]=_0x2a9e0b,_0x12791c[_0x58c3c8('0x1193')]={},_0x12791c['passwordPattern']=_0x12791c[_0x58c3c8('0x1af0')]&&_0x12791c['setting'][_0x58c3c8('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12791c[_0x58c3c8('0x14e4')]=_0x58c3c8('0x1642'),_0x12791c[_0x58c3c8('0x1f3b')]=angular[_0x58c3c8('0x2669')](_0x36522a),_0x12791c[_0x58c3c8('0xf3e')]=_0x10a3c8,_0x12791c[_0x58c3c8('0x9a5')]=![];!_0x12791c[_0x58c3c8('0x1f3b')]&&(_0x12791c[_0x58c3c8('0x1f3b')]={},_0x12791c[_0x58c3c8('0x14e4')]='VOICE.NEW_CONTEXT',_0x12791c[_0x58c3c8('0x9a5')]=!![]);_0x12791c['addNewContext']=_0x2d8c6d,_0x12791c[_0x58c3c8('0x1200')]=_0x2405de,_0x12791c['deleteContext']=_0x5d5abd,_0x12791c[_0x58c3c8('0x2601')]=_0x1ed58d,_0x12791c[_0x58c3c8('0xca7')]=_0x31535e;function _0x2d8c6d(){const _0x5fff20=_0x58c3c8;_0x12791c[_0x5fff20('0x25be')]=[],_0x4aec8c[_0x5fff20('0x15cc')][_0x5fff20('0xbd0')](_0x12791c[_0x5fff20('0x1f3b')])[_0x5fff20('0x1714')][_0x5fff20('0x2788')](function(_0x48bd81){const _0x1683e0=_0x5fff20;_0x12791c[_0x1683e0('0xf3e')][_0x1683e0('0xc51')](_0x48bd81[_0x1683e0('0x1cbf')]()),_0x3a1e28[_0x1683e0('0x173b')]({'title':'Context\x20properly\x20created','msg':_0x12791c[_0x1683e0('0x1f3b')][_0x1683e0('0x1a8d')]?_0x12791c[_0x1683e0('0x1f3b')]['name']+_0x1683e0('0x1e4a'):''}),_0x31535e(_0x48bd81);})[_0x5fff20('0x1cb5')](function(_0x5d1625){const _0x3abc02=_0x5fff20;if(_0x5d1625[_0x3abc02('0x11fc')]&&_0x5d1625[_0x3abc02('0x11fc')][_0x3abc02('0x25be')]&&_0x5d1625[_0x3abc02('0x11fc')][_0x3abc02('0x25be')][_0x3abc02('0x2566')]){_0x12791c[_0x3abc02('0x25be')]=_0x5d1625[_0x3abc02('0x11fc')]['errors']||[{'message':_0x5d1625[_0x3abc02('0x17df')](),'type':_0x3abc02('0x23d1')}];for(let _0x53bc50=0x0;_0x53bc50<_0x5d1625[_0x3abc02('0x11fc')]['errors'][_0x3abc02('0x2566')];_0x53bc50+=0x1){_0x3a1e28[_0x3abc02('0x5e8')]({'title':_0x5d1625['data'][_0x3abc02('0x25be')][_0x53bc50][_0x3abc02('0x1d7')],'msg':_0x5d1625[_0x3abc02('0x11fc')]['errors'][_0x53bc50][_0x3abc02('0x15e2')]});}}else _0x3a1e28[_0x3abc02('0x5e8')]({'title':_0x5d1625[_0x3abc02('0x1b51')]?_0x3abc02('0x15d1')+_0x5d1625[_0x3abc02('0x1b51')]+_0x3abc02('0x1b0b')+_0x5d1625[_0x3abc02('0x22ce')]:_0x3abc02('0x23d1'),'msg':_0x5d1625[_0x3abc02('0x11fc')]?JSON['stringify'](_0x5d1625['data']['message']):_0x5d1625['toString']()});});}function _0x2405de(){const _0x59490f=_0x58c3c8;_0x12791c['errors']=[],_0x4aec8c[_0x59490f('0x15cc')]['update']({'id':_0x12791c[_0x59490f('0x1f3b')]['id']},_0x12791c[_0x59490f('0x1f3b')])['$promise'][_0x59490f('0x2788')](function(_0x179e62){const _0x432169=_0x59490f,_0x1c8c31=_0x283545()['find'](_0x12791c[_0x432169('0xf3e')],{'id':_0x179e62['id']});_0x1c8c31&&_0x283545()[_0x432169('0x2503')](_0x1c8c31,_0x283545()[_0x432169('0x41b')](_0x179e62[_0x432169('0x1cbf')](),_0x283545()['keys'](_0x1c8c31))),_0x3a1e28[_0x432169('0x173b')]({'title':_0x432169('0x2621'),'msg':_0x12791c[_0x432169('0x1f3b')]['name']?_0x12791c[_0x432169('0x1f3b')][_0x432169('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x31535e(_0x179e62);})[_0x59490f('0x1cb5')](function(_0x4f66b2){const _0x3aa694=_0x59490f;if(_0x4f66b2['data']&&_0x4f66b2[_0x3aa694('0x11fc')][_0x3aa694('0x25be')]&&_0x4f66b2[_0x3aa694('0x11fc')][_0x3aa694('0x25be')]['length']){_0x12791c[_0x3aa694('0x25be')]=_0x4f66b2[_0x3aa694('0x11fc')][_0x3aa694('0x25be')]||[{'message':_0x4f66b2[_0x3aa694('0x17df')](),'type':_0x3aa694('0x7f0')}];for(let _0x447d52=0x0;_0x447d52<_0x4f66b2['data'][_0x3aa694('0x25be')][_0x3aa694('0x2566')];_0x447d52++){_0x3a1e28[_0x3aa694('0x5e8')]({'title':_0x4f66b2[_0x3aa694('0x11fc')][_0x3aa694('0x25be')][_0x447d52]['type'],'msg':_0x4f66b2[_0x3aa694('0x11fc')][_0x3aa694('0x25be')][_0x447d52][_0x3aa694('0x15e2')]});}}else _0x3a1e28[_0x3aa694('0x5e8')]({'title':_0x4f66b2[_0x3aa694('0x1b51')]?_0x3aa694('0x15d1')+_0x4f66b2[_0x3aa694('0x1b51')]+'\x20-\x20'+_0x4f66b2[_0x3aa694('0x22ce')]:_0x3aa694('0x7f0'),'msg':_0x4f66b2[_0x3aa694('0x11fc')]?JSON['stringify'](_0x4f66b2['data']['message']):_0x4f66b2[_0x3aa694('0x17df')]()});});}function _0x5d5abd(_0x594f78){const _0x98e73a=_0x58c3c8;_0x12791c[_0x98e73a('0x25be')]=[];const _0x61f7bf=_0x4a9ad1[_0x98e73a('0x112e')]()['title'](_0x98e73a('0x458'))['content'](_0x98e73a('0x20b2'))[_0x98e73a('0x10bc')](_0x98e73a('0x248d'))['ok']('Delete')[_0x98e73a('0x1801')](_0x98e73a('0x1481'))['targetEvent'](_0x594f78);_0x4a9ad1['show'](_0x61f7bf)[_0x98e73a('0x2788')](function(){const _0x3ee318=_0x98e73a;_0x4aec8c[_0x3ee318('0x15cc')][_0x3ee318('0x17c4')]({'id':_0x12791c['context']['id']})[_0x3ee318('0x1714')][_0x3ee318('0x2788')](function(){const _0x1a0871=_0x3ee318;_0x283545()[_0x1a0871('0x1a90')](_0x12791c[_0x1a0871('0xf3e')],{'id':_0x12791c[_0x1a0871('0x1f3b')]['id']}),_0x3a1e28['success']({'title':_0x1a0871('0x7a7'),'msg':(_0x12791c['context']['name']||_0x1a0871('0x1f3b'))+_0x1a0871('0x14d4')}),_0x31535e(_0x12791c[_0x1a0871('0x1f3b')]);})[_0x3ee318('0x1cb5')](function(_0x4809fe){const _0x4e2bad=_0x3ee318;if(_0x4809fe['data']&&_0x4809fe['data']['errors']&&_0x4809fe[_0x4e2bad('0x11fc')][_0x4e2bad('0x25be')][_0x4e2bad('0x2566')]){_0x12791c[_0x4e2bad('0x25be')]=_0x4809fe['data'][_0x4e2bad('0x25be')]||[{'message':_0x4809fe['toString'](),'type':_0x4e2bad('0xce0')}];for(let _0xd596d=0x0;_0xd596d<_0x4809fe['data'][_0x4e2bad('0x25be')][_0x4e2bad('0x2566')];_0xd596d++){_0x3a1e28[_0x4e2bad('0x5e8')]({'title':_0x4809fe[_0x4e2bad('0x11fc')][_0x4e2bad('0x25be')][_0xd596d][_0x4e2bad('0x1d7')],'msg':_0x4809fe[_0x4e2bad('0x11fc')][_0x4e2bad('0x25be')][_0xd596d][_0x4e2bad('0x15e2')]});}}else _0x3a1e28[_0x4e2bad('0x5e8')]({'title':_0x4809fe[_0x4e2bad('0x1b51')]?_0x4e2bad('0x15d1')+_0x4809fe[_0x4e2bad('0x1b51')]+_0x4e2bad('0x1b0b')+_0x4809fe[_0x4e2bad('0x22ce')]:_0x4e2bad('0xce0'),'msg':_0x4809fe[_0x4e2bad('0x11fc')]?JSON[_0x4e2bad('0x1be0')](_0x4809fe[_0x4e2bad('0x11fc')]['message']):_0x4809fe[_0x4e2bad('0x15e2')]||_0x4809fe[_0x4e2bad('0x17df')]()});});},function(){});}function _0x1ed58d(_0x359e60){return _0x359e60===null?undefined:new Date(_0x359e60);}function _0x31535e(_0x289297){const _0x35c934=_0x58c3c8;_0x4a9ad1[_0x35c934('0x19d')](_0x289297);}}const _0x4512b9=_0x2ee12a;_0x2b42f8[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'inboundroutes',_0x34e79e('0x26ea'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x2b42f8(_0x887356,_0x5044dd,_0x267d71,_0x47133f,_0x2d2cac,_0x1dbd5d,_0x1b8e0e,_0x5ae235,_0x4b3102,_0x1c5683,_0x27f5e1,_0x2318da,_0x18b674,_0x5c991d){const _0x19929d=_0x34e79e,_0x1e8b5a=this;_0x1e8b5a[_0x19929d('0x9cb')]=_0x27f5e1[_0x19929d('0x24cc')](),_0x1e8b5a[_0x19929d('0x25be')]=[],_0x1e8b5a[_0x19929d('0x1af0')]=_0x18b674,_0x1e8b5a['license']=_0x2318da,_0x1e8b5a[_0x19929d('0xe28')]=_0x5c991d,_0x1e8b5a[_0x19929d('0x1193')]={},_0x1e8b5a[_0x19929d('0x18ad')]=_0x1e8b5a['setting']&&_0x1e8b5a[_0x19929d('0x1af0')][_0x19929d('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e8b5a[_0x19929d('0x14e4')]=_0x19929d('0x1f4d'),_0x1e8b5a['inboundroute']=angular[_0x19929d('0x2669')](_0x4b3102),_0x1e8b5a[_0x19929d('0xb5d')]=_0x5ae235,_0x1e8b5a[_0x19929d('0xa38')]=![];!_0x1e8b5a['inboundroute']&&(_0x1e8b5a[_0x19929d('0x26ea')]={'appdata':_0x19929d('0xe8a'),'type':_0x19929d('0x2e4'),'context':_0x19929d('0xe99')},_0x1e8b5a['title']=_0x19929d('0x2476'),_0x1e8b5a[_0x19929d('0xa38')]=!![]);_0x1e8b5a[_0x19929d('0x480')]=_0x24c8ac,_0x1e8b5a[_0x19929d('0x198d')]=_0x4a65b2,_0x1e8b5a[_0x19929d('0x16bf')]=_0x203934,_0x1e8b5a['getDateFromString']=_0x2f343a,_0x1e8b5a['closeDialog']=_0x3b2123,_0x27f5e1[_0x19929d('0x1516')](_0x19929d('0xe23'))?_0x1c5683[_0x19929d('0x15cc')][_0x19929d('0x1335')]({'fields':'id,name','sort':_0x19929d('0x1a8d'),'nolimit':_0x19929d('0x1001')})['$promise']['then'](function(_0x34f87b){const _0x490259=_0x19929d;_0x1e8b5a[_0x490259('0xf3e')]=_0x34f87b['rows']||[];})[_0x19929d('0x1cb5')](function(_0x2ae1f6){const _0x8b69f9=_0x19929d;_0x1b8e0e[_0x8b69f9('0x5e8')]({'title':_0x2ae1f6[_0x8b69f9('0x1b51')]?'API:'+_0x2ae1f6[_0x8b69f9('0x1b51')]+_0x8b69f9('0x1b0b')+_0x2ae1f6[_0x8b69f9('0x22ce')]:_0x8b69f9('0x15f7'),'msg':_0x2ae1f6[_0x8b69f9('0x11fc')]?JSON['stringify'](_0x2ae1f6[_0x8b69f9('0x11fc')]):_0x2ae1f6['toString']()});}):_0x1c5683[_0x19929d('0x15cc')][_0x19929d('0x1335')]({'fields':'id,name','sort':_0x19929d('0x1a8d'),'nolimit':_0x19929d('0x1001')})[_0x19929d('0x1714')][_0x19929d('0x2788')](function(_0x96efc7){const _0x1062a5=_0x19929d;_0x1e8b5a[_0x1062a5('0xf3e')]=_0x96efc7[_0x1062a5('0x25df')]||[];})[_0x19929d('0x2788')](function(){const _0x5b6055=_0x19929d;return _0x1c5683[_0x5b6055('0xec9')]['get']({'userProfileId':_0x1e8b5a[_0x5b6055('0x9cb')][_0x5b6055('0x237f')],'sectionId':0x195})[_0x5b6055('0x1714')];})['then'](function(_0x4a9898){const _0x5cbfb3=_0x19929d,_0x210f84=_0x4a9898&&_0x4a9898[_0x5cbfb3('0x25df')]?_0x4a9898[_0x5cbfb3('0x25df')][0x0]:null;if(!_0x210f84)return _0x1c5683[_0x5cbfb3('0x15cc')][_0x5cbfb3('0x1335')]({'fields':'id,name','sort':_0x5cbfb3('0x1a8d'),'nolimit':_0x5cbfb3('0x1001'),'defaultEntry':0x1})['$promise'][_0x5cbfb3('0x2788')](function(_0x2ff9bb){const _0x192da9=_0x5cbfb3;_0x1e8b5a['contexts']=_0x2ff9bb[_0x192da9('0x25df')]||[];});else{if(!_0x210f84['autoAssociation'])return _0x1c5683['userProfileResource'][_0x5cbfb3('0x1335')]({'sectionId':_0x210f84['id']})['$promise']['then'](function(_0x29e72c){const _0x456f43=_0x5cbfb3,_0x4d256f=_0x283545()['map'](_0x29e72c[_0x456f43('0x25df')],function(_0x454c28){const _0x1e4ad2=_0x456f43;return _0x283545()[_0x1e4ad2('0x20e8')](_0x1e8b5a[_0x1e4ad2('0xf3e')],{'id':_0x454c28['resourceId']});});let _0x2c1c99=null;_0x1e8b5a[_0x456f43('0x26ea')]&&(_0x2c1c99=_0x283545()['find'](_0x1e8b5a[_0x456f43('0xf3e')],{'name':_0x1e8b5a[_0x456f43('0x26ea')][_0x456f43('0x1f3b')]}));if(_0x2c1c99&&!_0x283545()['some'](_0x4d256f,['id',_0x2c1c99['id']])){const _0x2a471e=_0x283545()[_0x456f43('0x20e8')](_0x1e8b5a[_0x456f43('0xf3e')],{'id':_0x2c1c99['id']});_0x2a471e['canSelect']=![],_0x4d256f[_0x456f43('0x13e3')](_0x2a471e);}_0x1e8b5a[_0x456f43('0xf3e')]=_0x4d256f;});}})[_0x19929d('0x1cb5')](function(_0x4b266e){const _0x1cf760=_0x19929d;_0x1b8e0e[_0x1cf760('0x5e8')]({'title':_0x4b266e[_0x1cf760('0x1b51')]?_0x1cf760('0x15d1')+_0x4b266e[_0x1cf760('0x1b51')]+'\x20-\x20'+_0x4b266e[_0x1cf760('0x22ce')]:_0x1cf760('0x265a'),'msg':_0x4b266e[_0x1cf760('0x11fc')]?JSON[_0x1cf760('0x1be0')](_0x4b266e[_0x1cf760('0x11fc')]):_0x4b266e[_0x1cf760('0x17df')]()});});function _0x24c8ac(){const _0x171ebe=_0x19929d;_0x1e8b5a[_0x171ebe('0x25be')]=[],_0x1c5683['voiceExtension'][_0x171ebe('0xbd0')](_0x1e8b5a[_0x171ebe('0x26ea')])['$promise']['then'](function(_0x226261){const _0x5b040d=_0x171ebe;_0x1e8b5a['inboundroutes'][_0x5b040d('0xc51')](_0x226261[_0x5b040d('0x1cbf')]()),_0x1b8e0e[_0x5b040d('0x173b')]({'title':_0x5b040d('0x1de3'),'msg':_0x1e8b5a[_0x5b040d('0x26ea')][_0x5b040d('0x1a8d')]?_0x1e8b5a['inboundroute'][_0x5b040d('0x1a8d')]+_0x5b040d('0x1e4a'):''}),_0x3b2123(_0x226261);})[_0x171ebe('0x1cb5')](function(_0x5df657){const _0x340d2e=_0x171ebe;if(_0x5df657['data']&&_0x5df657[_0x340d2e('0x11fc')]['errors']&&_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x25be')]['length']){_0x1e8b5a[_0x340d2e('0x25be')]=_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x25be')]||[{'message':_0x5df657['toString'](),'type':_0x340d2e('0x1695')}];for(let _0x178d6d=0x0;_0x178d6d<_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x25be')][_0x340d2e('0x2566')];_0x178d6d+=0x1){_0x1b8e0e[_0x340d2e('0x5e8')]({'title':_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x25be')][_0x178d6d][_0x340d2e('0x1d7')],'msg':_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x25be')][_0x178d6d]['message']});}}else _0x1b8e0e['error']({'title':_0x5df657[_0x340d2e('0x1b51')]?_0x340d2e('0x15d1')+_0x5df657['status']+_0x340d2e('0x1b0b')+_0x5df657['statusText']:_0x340d2e('0x1695'),'msg':_0x5df657[_0x340d2e('0x11fc')]?JSON[_0x340d2e('0x1be0')](_0x5df657[_0x340d2e('0x11fc')][_0x340d2e('0x15e2')]):_0x5df657[_0x340d2e('0x17df')]()});});}function _0x4a65b2(){const _0x6d4d4d=_0x19929d;_0x1e8b5a[_0x6d4d4d('0x25be')]=[],_0x1c5683['voiceExtension'][_0x6d4d4d('0x2740')]({'id':_0x1e8b5a[_0x6d4d4d('0x26ea')]['id']},_0x1e8b5a[_0x6d4d4d('0x26ea')])[_0x6d4d4d('0x1714')][_0x6d4d4d('0x2788')](function(_0x4a9bda){const _0x149730=_0x6d4d4d,_0x245f01=_0x283545()[_0x149730('0x20e8')](_0x1e8b5a['inboundroutes'],{'id':_0x4a9bda['id']});_0x245f01&&_0x283545()[_0x149730('0x2503')](_0x245f01,_0x283545()[_0x149730('0x41b')](_0x4a9bda['toJSON'](),_0x283545()[_0x149730('0x2163')](_0x245f01))),_0x1b8e0e['success']({'title':_0x149730('0x10b8'),'msg':_0x1e8b5a[_0x149730('0x26ea')][_0x149730('0x1a8d')]?_0x1e8b5a['inboundroute'][_0x149730('0x1a8d')]+_0x149730('0x24cf'):''}),_0x3b2123(_0x4a9bda);})[_0x6d4d4d('0x1cb5')](function(_0x1ad48b){const _0x225b48=_0x6d4d4d;if(_0x1ad48b[_0x225b48('0x11fc')]&&_0x1ad48b[_0x225b48('0x11fc')][_0x225b48('0x25be')]&&_0x1ad48b['data'][_0x225b48('0x25be')][_0x225b48('0x2566')]){_0x1e8b5a[_0x225b48('0x25be')]=_0x1ad48b[_0x225b48('0x11fc')]['errors']||[{'message':_0x1ad48b[_0x225b48('0x17df')](),'type':_0x225b48('0x38')}];for(let _0x4ebafc=0x0;_0x4ebafc<_0x1ad48b[_0x225b48('0x11fc')][_0x225b48('0x25be')][_0x225b48('0x2566')];_0x4ebafc++){_0x1b8e0e[_0x225b48('0x5e8')]({'title':_0x1ad48b[_0x225b48('0x11fc')]['errors'][_0x4ebafc]['type'],'msg':_0x1ad48b[_0x225b48('0x11fc')][_0x225b48('0x25be')][_0x4ebafc][_0x225b48('0x15e2')]});}}else _0x1b8e0e[_0x225b48('0x5e8')]({'title':_0x1ad48b[_0x225b48('0x1b51')]?_0x225b48('0x15d1')+_0x1ad48b[_0x225b48('0x1b51')]+_0x225b48('0x1b0b')+_0x1ad48b['statusText']:_0x225b48('0x38'),'msg':_0x1ad48b['data']?JSON[_0x225b48('0x1be0')](_0x1ad48b['data'][_0x225b48('0x15e2')]):_0x1ad48b[_0x225b48('0x17df')]()});});}function _0x203934(_0x50b2a5){const _0x256b3d=_0x19929d;_0x1e8b5a[_0x256b3d('0x25be')]=[];const _0x430052=_0x47133f[_0x256b3d('0x112e')]()[_0x256b3d('0x14e4')](_0x256b3d('0x458'))[_0x256b3d('0x1c98')]('The\x20inboundroute\x20will\x20be\x20deleted.')[_0x256b3d('0x10bc')]('Delete\x20InboundRoute')['ok'](_0x256b3d('0x2786'))['cancel'](_0x256b3d('0x1481'))[_0x256b3d('0x24d0')](_0x50b2a5);_0x47133f[_0x256b3d('0x2fa')](_0x430052)[_0x256b3d('0x2788')](function(){const _0x4ad1a5=_0x256b3d;_0x1c5683[_0x4ad1a5('0x2636')][_0x4ad1a5('0x17c4')]({'id':_0x1e8b5a[_0x4ad1a5('0x26ea')]['id']})['$promise'][_0x4ad1a5('0x2788')](function(){const _0x65d217=_0x4ad1a5;_0x283545()[_0x65d217('0x1a90')](_0x1e8b5a['inboundroutes'],{'id':_0x1e8b5a['inboundroute']['id']}),_0x1b8e0e[_0x65d217('0x173b')]({'title':'InboundRoute\x20properly\x20deleted!','msg':(_0x1e8b5a[_0x65d217('0x26ea')][_0x65d217('0x1a8d')]||'inboundroute')+_0x65d217('0x14d4')}),_0x3b2123(_0x1e8b5a[_0x65d217('0x26ea')]);})[_0x4ad1a5('0x1cb5')](function(_0x3d10bf){const _0x322781=_0x4ad1a5;if(_0x3d10bf[_0x322781('0x11fc')]&&_0x3d10bf[_0x322781('0x11fc')][_0x322781('0x25be')]&&_0x3d10bf['data'][_0x322781('0x25be')][_0x322781('0x2566')]){_0x1e8b5a[_0x322781('0x25be')]=_0x3d10bf[_0x322781('0x11fc')][_0x322781('0x25be')]||[{'message':_0x3d10bf[_0x322781('0x17df')](),'type':_0x322781('0x1e7d')}];for(let _0x2b25f9=0x0;_0x2b25f9<_0x3d10bf['data']['errors'][_0x322781('0x2566')];_0x2b25f9++){_0x1b8e0e[_0x322781('0x5e8')]({'title':_0x3d10bf['data'][_0x322781('0x25be')][_0x2b25f9][_0x322781('0x1d7')],'msg':_0x3d10bf[_0x322781('0x11fc')][_0x322781('0x25be')][_0x2b25f9][_0x322781('0x15e2')]});}}else _0x1b8e0e[_0x322781('0x5e8')]({'title':_0x3d10bf[_0x322781('0x1b51')]?_0x322781('0x15d1')+_0x3d10bf[_0x322781('0x1b51')]+_0x322781('0x1b0b')+_0x3d10bf['statusText']:_0x322781('0x1e7d'),'msg':_0x3d10bf[_0x322781('0x11fc')]?JSON['stringify'](_0x3d10bf[_0x322781('0x11fc')][_0x322781('0x15e2')]):_0x3d10bf[_0x322781('0x15e2')]||_0x3d10bf[_0x322781('0x17df')]()});});},function(){});}function _0x2f343a(_0x1423b3){return _0x1423b3===null?undefined:new Date(_0x1423b3);}function _0x3b2123(_0x220268){const _0x431dd9=_0x19929d;_0x47133f[_0x431dd9('0x19d')](_0x220268);}}const _0x12be53=_0x2b42f8,_0x361f66=_0x18dd13['p']+_0x34e79e('0x998'),_0x2cf01f=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html',_0x3cb2a6=_0x18dd13['p']+_0x34e79e('0x10f3'),_0x185022=_0x18dd13['p']+_0x34e79e('0x2659'),_0x337b36=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html',_0x5c3560=_0x18dd13['p']+_0x34e79e('0x1358'),_0x955765=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog.html',_0x2dc1b7=_0x18dd13['p']+_0x34e79e('0x1089'),_0x5d3b77=_0x18dd13['p']+_0x34e79e('0x21ce'),_0x2f3045=_0x18dd13['p']+_0x34e79e('0x47f'),_0x2735f8=_0x18dd13['p']+_0x34e79e('0x22d7'),_0x34dfde=_0x18dd13['p']+_0x34e79e('0x24ef'),_0x2ba912=_0x18dd13['p']+_0x34e79e('0x1266');_0x4736d6[_0x34e79e('0x2d9')]=['api',_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty',_0x34e79e('0x1b04')];const _0x53ccb9={'agi':_0x361f66,'custom':_0x2cf01f,'dial':_0x3cb2a6,'externaldial':_0x185022,'goto':_0x337b36,'hangup':_0x5c3560,'internaldial':_0x955765,'interval':_0x2dc1b7,'playback':_0x5d3b77,'queue':_0x2f3045,'ringgroup':_0x2735f8,'set':_0x34dfde,'voicemail':_0x2ba912};function _0x4736d6(_0x2b8b8b,_0x3db267,_0x408336,_0x42deb7,_0x428909){const _0x83b370=_0x34e79e,_0xc34041=this;_0xc34041[_0x83b370('0x9cb')]=_0x428909['getCurrentUser'](),_0xc34041[_0x83b370('0x26ea')]={},_0xc34041[_0x83b370('0x1acf')]={'count':0x0,'rows':[]},_0xc34041[_0x83b370('0x1edf')]=[],_0xc34041[_0x83b370('0xe28')],_0xc34041[_0x83b370('0x135a')]={'sort':_0x83b370('0x155b')},_0xc34041[_0x83b370('0x105')]=_0x283545()[_0x83b370('0x9')](_0x283545()[_0x83b370('0x8ce')]([{'app':_0x83b370('0x27dd'),'appType':_0x83b370('0x2630'),'types':[_0x83b370('0xc8f'),'custom','list'],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x83b370('0x1ab4'),'context':'from-voip-provider','type':_0x83b370('0x2538'),'appdata':_0x83b370('0x1eac'),'icon':_0x83b370('0x21ff'),'options':'xX','interval':_0x83b370('0x2191'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x83b370('0x16ca'),'field':{'name':'sound','key':'save_name','prefix':_0x83b370('0xd05')},'route':'sound','filters':{'fields':'id,name,save_name','sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':'queue','key':'name'},'route':_0x83b370('0x2043'),'filters':{'type':_0x83b370('0x2e4'),'fields':'id,name,type','sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x83b370('0x107f'),'name':_0x83b370('0x1ab4'),'type':_0x83b370('0x2519'),'values':'queues','value':_0x83b370('0x158'),'option':_0x83b370('0x158'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':_0x83b370('0x16db'),'param':0x1},{'title':_0x83b370('0x334'),'name':_0x83b370('0x5'),'type':_0x83b370('0x16db'),'param':0x2},{'title':_0x83b370('0x25d0'),'name':_0x83b370('0x216d'),'type':_0x83b370('0x2519'),'values':_0x83b370('0x16ca'),'value':_0x83b370('0x11ba'),'option':_0x83b370('0x990'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':'Timeout','name':_0x83b370('0x24e4'),'type':_0x83b370('0x272c'),'min':0x0,'param':0x4},{'title':_0x83b370('0x172e'),'name':'agi','type':'text','param':0x5},{'title':_0x83b370('0xc6d'),'name':_0x83b370('0x380'),'type':'text','param':0x6},{'title':_0x83b370('0xd49'),'name':_0x83b370('0x557'),'type':_0x83b370('0x16db'),'param':0x7},{'title':'Rule','name':_0x83b370('0x1b87'),'type':_0x83b370('0x16db'),'param':0x8},{'title':'Position','name':'position','type':_0x83b370('0x272c'),'min':0x0,'param':0x9},{'title':_0x83b370('0x1e90'),'name':_0x83b370('0xb1c'),'type':_0x83b370('0xf9e'),'general':!![]}]},{'app':_0x83b370('0x13a2'),'appType':'playback','context':'from-voip-provider','type':_0x83b370('0x2538'),'icon':_0x83b370('0x21ff'),'interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':_0x83b370('0x16ca'),'field':{'name':'sound','key':_0x83b370('0xc52'),'prefix':_0x83b370('0xd05')},'route':_0x83b370('0x216d'),'filters':{'fields':_0x83b370('0x1480'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':_0x83b370('0xd6b'),'type':_0x83b370('0x2519'),'values':_0x83b370('0x16ca'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':_0x83b370('0x18'),'required':!![],'param':0x0},{'title':_0x83b370('0x2748'),'name':_0x83b370('0x784'),'type':_0x83b370('0x16db'),'param':0x1},{'title':_0x83b370('0x1e90'),'name':'answer','type':_0x83b370('0xf9e'),'general':!![]}]},{'app':_0x83b370('0x1a7d'),'appType':_0x83b370('0x17e6'),'context':'from-voip-provider','type':'Inbound','icon':_0x83b370('0x21ff'),'interval':_0x83b370('0x2191'),'options':'xX','isApp':!![],'fields':[{'title':'Technology/Resource','name':_0x83b370('0x2494'),'type':_0x83b370('0x16db'),'required':!![],'param':0x0},{'title':_0x83b370('0xa7e'),'name':_0x83b370('0x24e4'),'type':_0x83b370('0x272c'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x83b370('0x16db'),'param':0x2},{'title':_0x83b370('0x334'),'name':_0x83b370('0x1672'),'type':_0x83b370('0x16db'),'param':0x3}]},{'app':_0x83b370('0x1a7d'),'appType':_0x83b370('0x1c25'),'context':_0x83b370('0xe99'),'type':'Inbound','icon':_0x83b370('0x21ff'),'interval':_0x83b370('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x83b370('0x1e42'),'field':{'name':'user','key':_0x83b370('0x1a8d'),'prefix':_0x83b370('0x30b')},'route':_0x83b370('0x1e6a'),'filters':{'fields':_0x83b370('0x17a1'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x83b370('0x188b')},{'id':0xcb,'role':_0x83b370('0x23ab')}]}}],'fields':[{'title':_0x83b370('0x1832'),'name':_0x83b370('0x1e6a'),'type':'apiselect','values':'users','value':_0x83b370('0x19cd'),'option':_0x83b370('0x1e58'),'required':!![],'param':0x0},{'title':_0x83b370('0xa7e'),'name':_0x83b370('0x24e4'),'type':'number','min':0x0,'param':0x1},{'title':'Options','name':'options','type':'text','param':0x2},{'title':_0x83b370('0x334'),'name':_0x83b370('0x1672'),'type':'text','param':0x3}]},{'app':_0x83b370('0x1a7d'),'appType':_0x83b370('0x2c2'),'context':'from-voip-provider','type':_0x83b370('0x2e4'),'icon':_0x83b370('0x21ff'),'interval':_0x83b370('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x83b370('0x20f2'),'field':{'name':'trunk','key':_0x83b370('0x1a8d')},'route':'trunk','filters':{'fields':_0x83b370('0x1338'),'sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x83b370('0x312'),'name':'trunk','type':_0x83b370('0x2519'),'values':_0x83b370('0x20f2'),'value':'trunk.name','option':_0x83b370('0x217b'),'required':!![],'param':0x0},{'title':'Phone','name':_0x83b370('0x1224'),'required':!![],'type':_0x83b370('0x16db')},{'title':_0x83b370('0xa7e'),'name':_0x83b370('0x24e4'),'type':'number','min':0x0,'param':0x1},{'title':_0x83b370('0x2748'),'name':_0x83b370('0x784'),'type':_0x83b370('0x16db'),'param':0x2},{'title':'Url','name':_0x83b370('0x1672'),'type':_0x83b370('0x16db'),'param':0x3}]},{'app':_0x83b370('0x1a7d'),'appType':_0x83b370('0x1bfb'),'context':_0x83b370('0xe99'),'type':'inbound','icon':'icon-apps','interval':_0x83b370('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x83b370('0x10c7'),'key':_0x83b370('0x1a8d'),'prefix':_0x83b370('0x30b')},'route':_0x83b370('0x1e6a'),'filters':{'fields':_0x83b370('0x17a1'),'sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x83b370('0x188b')},{'id':0xcb,'role':_0x83b370('0x23ab')}]}}],'fields':[{'title':_0x83b370('0x1832'),'name':_0x83b370('0x10c7'),'type':_0x83b370('0x2519'),'multiple':!![],'values':_0x83b370('0x1e42'),'value':_0x83b370('0x57f'),'option':_0x83b370('0x222a'),'required':!![],'param':0x0},{'title':_0x83b370('0xa7e'),'name':'timeout','type':'number','min':0x0,'param':0x1},{'title':_0x83b370('0x2748'),'name':'options','type':_0x83b370('0x16db'),'param':0x2},{'title':_0x83b370('0x334'),'name':'url','type':_0x83b370('0x16db'),'param':0x3}]},{'app':_0x83b370('0xc8d'),'alias':_0x83b370('0x224b'),'appType':'agi','context':_0x83b370('0xe99'),'type':_0x83b370('0x2e4'),'icon':_0x83b370('0x21ff'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x83b370('0x18f9'),'field':{'name':_0x83b370('0x1bf6'),'key':_0x83b370('0x1a8d'),'prefix':_0x83b370('0x1fde')},'route':_0x83b370('0x163a'),'filters':{'fields':_0x83b370('0x1338'),'sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x83b370('0x5b8'),'name':_0x83b370('0x1bf6'),'type':_0x83b370('0x2519'),'values':_0x83b370('0x18f9'),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':_0x83b370('0x21b9'),'required':!![],'param':0x0}]},{'app':_0x83b370('0x1500'),'appType':_0x83b370('0x22fb'),'context':'from-voip-provider','type':'Inbound','icon':_0x83b370('0x21ff'),'interval':_0x83b370('0x2191'),'isApp':!![],'extraApi':[{'name':_0x83b370('0xf3e'),'field':{'name':_0x83b370('0x1f3b'),'key':'name'},'route':'voiceContext','filters':{'fields':_0x83b370('0x1338'),'sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x83b370('0x1d1'),'name':_0x83b370('0x1f3b'),'type':_0x83b370('0x2519'),'values':_0x83b370('0xf3e'),'value':'context.name','option':'context.name','required':!![],'param':0x0},{'title':_0x83b370('0xa29'),'name':_0x83b370('0x1eb7'),'type':_0x83b370('0x16db'),'required':!![],'param':0x1},{'title':_0x83b370('0x14ef'),'name':'priority','type':_0x83b370('0x16db'),'required':!![],'param':0x2}]},{'app':_0x83b370('0x42c'),'appType':'hangup','context':'from-voip-provider','type':'Inbound','icon':_0x83b370('0x21ff'),'interval':_0x83b370('0x2191'),'isApp':!![],'fields':[{'title':'Hangup_Cause','name':_0x83b370('0xd6b'),'type':_0x83b370('0x983'),'param':0x0,'values':[{'option':_0x83b370('0x1233'),'value':_0x83b370('0x27c2')},{'option':_0x83b370('0x15cd'),'value':_0x83b370('0x1c8f')},{'option':_0x83b370('0x18db'),'value':_0x83b370('0x2124')},{'option':'HANGUPCAUSE_18','value':_0x83b370('0x21f4')},{'option':_0x83b370('0x1242'),'value':'\x2721\x27'},{'option':_0x83b370('0x23d5'),'value':_0x83b370('0x1fd4')},{'option':_0x83b370('0x2820'),'value':'\x2727\x27'},{'option':_0x83b370('0x3cc'),'value':_0x83b370('0x181c')},{'option':_0x83b370('0x2016'),'value':'\x2741\x27'}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x83b370('0x16b2'),'appType':_0x83b370('0x3a6'),'context':_0x83b370('0xe99'),'type':_0x83b370('0x2538'),'separator':'=','icon':_0x83b370('0x21ff'),'interval':'*,*,*,*','extraApi':[{'name':_0x83b370('0xf76'),'field':{'name':'name','key':'name'},'route':_0x83b370('0xa72'),'filters':{'fields':_0x83b370('0x1338'),'sort':_0x83b370('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x83b370('0x158c'),'name':'name','type':'apiselect','values':'variables','value':_0x83b370('0x7ac'),'option':_0x83b370('0x7ac'),'required':!![],'param':0x0},{'title':_0x83b370('0x165a'),'name':_0x83b370('0x49'),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':_0x83b370('0x1d56'),'icon':'icon-apps','type':_0x83b370('0x2538'),'interval':_0x83b370('0x2191'),'isApp':!![],'fields':[{'title':'Application_Name','name':_0x83b370('0x8a5'),'type':'text','required':!![],'param':0x0},{'title':_0x83b370('0x675'),'name':_0x83b370('0xd6b'),'type':_0x83b370('0x16db'),'param':0x1}]},{'app':_0x83b370('0x1920'),'appType':_0x83b370('0x2339'),'context':_0x83b370('0xe99'),'icon':_0x83b370('0x21ff'),'type':_0x83b370('0x2538'),'interval':_0x83b370('0x2191'),'isApp':!![],'extraApi':[{'name':_0x83b370('0x2800'),'field':{'name':'voiceMail','key':_0x83b370('0x1dd'),'suffix':_0x83b370('0x12f6')},'route':_0x83b370('0x1e3d'),'filters':{'fields':_0x83b370('0x1783'),'sort':_0x83b370('0x1dd'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':'Mailbox@Context','name':'voiceMail','type':_0x83b370('0x2519'),'values':_0x83b370('0x2800'),'value':_0x83b370('0x2496'),'option':_0x83b370('0x2044'),'required':!![],'param':0x0},{'title':_0x83b370('0x2748'),'name':_0x83b370('0x784'),'type':_0x83b370('0x16db'),'param':0x1}]}],[_0x83b370('0x8a5')]),{'isApp':![]}),_0xc34041[_0x83b370('0x4b2')]={'group':{'name':'opt1','pull':_0x83b370('0x1b8')},'animation':0x64,'sort':![]},_0xc34041[_0x83b370('0x26de')]={'group':{'name':_0x83b370('0x2268'),'put':_0x83b370('0x134b')},'animation':0x64,'onAdd':function(_0x3050fd){const _0x40a260=_0x83b370;_0x5419e6(_0x3050fd,_0x3050fd[_0x40a260('0x7da')]);},'onSort':function(){_0x46e84c();}},_0xc34041[_0x83b370('0x24eb')]=_0x223efb,_0xc34041[_0x83b370('0x16a')]=_0x104488,_0xc34041['getInboundRouteApps']=_0x3a8ba4,_0xc34041[_0x83b370('0x2664')]=_0x5419e6,_0xc34041['editInterval']=_0x5d752c,_0xc34041[_0x83b370('0x86b')]=_0x3d1aa9,_0xc34041[_0x83b370('0xb6b')]=_0x2b7d6f,_0xc34041[_0x83b370('0xa9c')]=_0x46e84c,_0xc34041[_0x83b370('0x1963')]=_0x2d387c;function _0x223efb(_0x5a7b5b,_0x20873d){const _0x66debc=_0x83b370;_0xc34041[_0x66debc('0x26ea')]=_0x5a7b5b,_0xc34041[_0x66debc('0xe28')]=typeof _0x20873d!==_0x66debc('0xedb')?_0x20873d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc34041[_0x66debc('0x26de')]['disabled']=!_0xc34041[_0x66debc('0xe28')][_0x66debc('0x21b7')]?!![]:![],_0xc34041[_0x66debc('0x135a')]['VoiceExtensionId']=_0x5a7b5b['id'],_0xc34041[_0x66debc('0x135a')]['isApp']=!![],_0xc34041['query'][_0x66debc('0xd18')]=!![],_0xc34041[_0x66debc('0x2518')](),_0xc34041[_0x66debc('0x1963')]();}function _0x104488(_0x535e48,_0x96053b,_0x56be01){const _0x5e8ca5=_0x83b370,_0x4bde7e=_0x3db267[_0x5e8ca5('0x112e')]()['title'](_0x5e8ca5('0xbe7'))[_0x5e8ca5('0x93e')](''+_0x535e48['app']+_0x5e8ca5('0x229e')+_0x5e8ca5('0x27c7'))['ariaLabel']('delete\x20application')[_0x5e8ca5('0x24d0')](_0x56be01)['ok']('OK')['cancel'](_0x5e8ca5('0x1d8d'));_0x3db267[_0x5e8ca5('0x2fa')](_0x4bde7e)[_0x5e8ca5('0x2788')](function(){const _0xa8f039=_0x5e8ca5;_0xc34041[_0xa8f039('0x1acf')]['rows'][_0xa8f039('0x722')](_0x96053b,0x1),_0x46e84c();},function(){const _0x39c545=_0x5e8ca5;console['log'](_0x39c545('0x1d8d'));});}function _0x5419e6(_0x243051,_0x20eb09){const _0x445bce=_0x83b370;if(_0xc34041[_0x445bce('0x1acf')][_0x445bce('0x25df')]['length']){const _0xb13554=_0xc34041[_0x445bce('0x1acf')][_0x445bce('0x25df')][_0x20eb09]?_0xc34041[_0x445bce('0x1acf')]['rows'][_0x20eb09]:_0xc34041[_0x445bce('0x1acf')]['rows'][0x0],_0x70766e=(_0xb13554[_0x445bce('0x167b')]||_0xb13554['app'])[_0x445bce('0xc2e')]();_0x3db267[_0x445bce('0x2fa')]({'controller':_0x445bce('0x369')+_0x70766e+_0x445bce('0x100d'),'controllerAs':'vm','templateUrl':_0x53ccb9[_0x70766e],'parent':angular['element'](_0x408336[_0x445bce('0x945')]),'targetEvent':_0x243051,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0xb13554,'inboundroute':_0xc34041[_0x445bce('0x26ea')],'crudPermissions':_0xc34041[_0x445bce('0xe28')]}})['then'](function(_0x2a99ad){const _0x3d8835=_0x445bce;_0x2a99ad&&(_0x2a99ad['id']?_0xc34041[_0x3d8835('0x1acf')][_0x3d8835('0x25df')][_0x20eb09]=_0x2a99ad:_0xc34041[_0x3d8835('0x1acf')]['rows'][_0x3d8835('0x722')](_0x20eb09,0x0,_0x2a99ad),_0x46e84c());})[_0x445bce('0x1cb5')](function(_0x3c3e14){const _0x54c853=_0x445bce;_0x3c3e14&&_0x42deb7[_0x54c853('0x5e8')]({'title':_0x3c3e14[_0x54c853('0x1b51')]?_0x54c853('0x15d1')+_0x3c3e14[_0x54c853('0x1b51')]+_0x54c853('0x1b0b')+_0x3c3e14['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0x3c3e14[_0x54c853('0x11fc')]?JSON[_0x54c853('0x1be0')](_0x3c3e14[_0x54c853('0x11fc')]):_0x3c3e14[_0x54c853('0x17df')]()});});}}function _0x5d752c(_0x2a20fa,_0x4e2615){const _0x34fcfa=_0x83b370;if(_0xc34041[_0x34fcfa('0x1acf')][_0x34fcfa('0x25df')][_0x34fcfa('0x2566')]){const _0x3c182c=_0xc34041['inboundrouteApps'][_0x34fcfa('0x25df')][_0x4e2615]?_0xc34041[_0x34fcfa('0x1acf')][_0x34fcfa('0x25df')][_0x4e2615]:_0xc34041[_0x34fcfa('0x1acf')][_0x34fcfa('0x25df')][0x0];_0x3db267[_0x34fcfa('0x2fa')]({'controller':_0x34fcfa('0x17ad'),'controllerAs':'vm','templateUrl':_0x2dc1b7,'parent':angular[_0x34fcfa('0x16b1')](_0x408336['body']),'targetEvent':_0x2a20fa,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3c182c[_0x34fcfa('0x2630')],'IntervalId':_0x3c182c[_0x34fcfa('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0xc34041['crudPermissions']}})[_0x34fcfa('0x2788')](function(_0x1410f2){const _0x16612a=_0x34fcfa;_0x1410f2&&(_0x3c182c[_0x16612a('0x2630')]=_0x1410f2[_0x16612a('0x2630')]||'*,*,*,*',_0x3c182c['IntervalId']=_0x1410f2['IntervalId']||null,_0x46e84c());});}}function _0x46e84c(){const _0x18ad40=_0x83b370,_0x2a4036=[_0x18ad40('0x1ab4'),_0x18ad40('0x211')];let _0x377871=0x2,_0x2aa8f2=[];_0x2aa8f2[_0x18ad40('0x13e3')]({'type':_0x18ad40('0x2e4'),'app':_0x18ad40('0x16b2'),'appdata':_0x18ad40('0x7fd'),'context':_0xc34041[_0x18ad40('0x26ea')]['context'],'exten':_0xc34041['inboundroute']['exten'],'priority':_0x377871++,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']}),_0x2aa8f2[_0x18ad40('0x13e3')]({'type':_0x18ad40('0x2e4'),'app':_0x18ad40('0x16b2'),'appdata':_0x18ad40('0x365'),'context':_0xc34041[_0x18ad40('0x26ea')]['context'],'exten':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1d6f')],'priority':_0x377871++,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']}),_0x2aa8f2['push']({'type':_0x18ad40('0x2e4'),'app':_0x18ad40('0x16b2'),'appdata':_0x18ad40('0x2283'),'context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'exten':_0xc34041[_0x18ad40('0x26ea')]['exten'],'priority':_0x377871++,'VoiceExtensionId':_0xc34041['inboundroute']['id']}),_0x2aa8f2[_0x18ad40('0x13e3')]({'type':'inbound','app':_0x18ad40('0x16b2'),'appdata':_0x18ad40('0x2711'),'context':_0xc34041['inboundroute'][_0x18ad40('0x1f3b')],'exten':_0xc34041[_0x18ad40('0x26ea')]['exten'],'priority':_0x377871++,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']});for(let _0x3a249b=0x0,_0x5e6e1c=0x0;_0x3a249b<_0xc34041[_0x18ad40('0x1acf')][_0x18ad40('0x25df')][_0x18ad40('0x2566')];_0x3a249b++,_0x5e6e1c=0x0){const _0xc84b14=_0xc34041[_0x18ad40('0x1acf')]['rows'][_0x3a249b],_0x1f11f4=[],_0x238bf5=[];_0xc84b14[_0x18ad40('0xec5')]=_0xc84b14[_0x18ad40('0x2630')]!==_0x18ad40('0x2191')?[_0xc84b14[_0x18ad40('0x2630')]]:_0xc84b14[_0x18ad40('0x20d0')]?_0x283545()['map'](_0x283545()[_0x18ad40('0x916')](_0xc34041['intervals'][_0x18ad40('0x25df')],{'IntervalId':_0xc84b14[_0x18ad40('0x20d0')]}),'interval'):[],_0xc84b14[_0x18ad40('0x1f3b')]=_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],_0xc84b14[_0x18ad40('0x1d6f')]=_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1d6f')];_0xc84b14[_0x18ad40('0x1d7')]&&(_0xc84b14[_0x18ad40('0x1d7')]=_0xc84b14[_0x18ad40('0x1d7')][_0x18ad40('0xc2e')]());typeof _0xc84b14[_0x18ad40('0xb1c')]!==_0x18ad40('0xedb')&&(_0x2a4036['includes'](_0xc84b14[_0x18ad40('0x8a5')]['toLowerCase']())&&_0xc84b14[_0x18ad40('0x167b')]!==_0x18ad40('0x1d56')&&(_0xc84b14['answer']?(_0x1f11f4[_0x18ad40('0x13e3')]({'type':_0xc84b14['type'][_0x18ad40('0xc2e')](),'app':_0x18ad40('0x947'),'appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'exten':_0xc34041['inboundroute']['exten'],'priority':_0xc84b14[_0x18ad40('0xec5')][_0x18ad40('0x2566')]+_0x377871+_0x5e6e1c++,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']}),_0x1f11f4[_0x18ad40('0x13e3')]({'type':_0xc84b14[_0x18ad40('0x1d7')][_0x18ad40('0xc2e')](),'app':'Set','appdata':_0x18ad40('0x18f1'),'context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'exten':_0xc34041['inboundroute'][_0x18ad40('0x1d6f')],'priority':_0xc84b14[_0x18ad40('0xec5')][_0x18ad40('0x2566')]+_0x377871+_0x5e6e1c++,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']})):(_0x1f11f4['push']({'type':_0xc84b14[_0x18ad40('0x1d7')][_0x18ad40('0xc2e')](),'app':'ExecIf','appdata':_0x18ad40('0xc60'),'context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'exten':_0xc34041['inboundroute']['exten'],'priority':_0xc84b14['intervals'][_0x18ad40('0x2566')]+_0x377871+_0x5e6e1c++,'VoiceExtensionId':_0xc34041['inboundroute']['id']}),_0x1f11f4['push']({'type':_0xc84b14['type'][_0x18ad40('0xc2e')](),'app':'Set','appdata':'XCALLY-MOTION-PROGRESS=1','context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'exten':_0xc34041['inboundroute'][_0x18ad40('0x1d6f')],'priority':_0xc84b14[_0x18ad40('0xec5')][_0x18ad40('0x2566')]+_0x377871+_0x5e6e1c++,'VoiceExtensionId':_0xc34041['inboundroute']['id']}))));for(let _0x38abc6=0x0;_0x38abc6<_0xc84b14['intervals'][_0x18ad40('0x2566')];_0x38abc6++){const _0x48ace1=_0x377871+_0xc84b14[_0x18ad40('0xec5')][_0x18ad40('0x2566')],_0xbd6a14=_0x38abc6===_0xc84b14[_0x18ad40('0xec5')][_0x18ad40('0x2566')]-0x1?_0x377871+_0x1f11f4[_0x18ad40('0x2566')]+_0x238bf5[_0x18ad40('0x2566')]+0x2:_0x377871+_0x38abc6+0x1;_0x1f11f4[_0x18ad40('0x722')](_0x38abc6,0x0,{'type':_0x18ad40('0x2e4'),'app':_0x18ad40('0x1740'),'appdata':_0xc84b14['intervals'][_0x38abc6]+'?'+_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')]+',${EXTEN},'+_0x48ace1+':'+_0xc34041[_0x18ad40('0x26ea')]['context']+_0x18ad40('0xf23')+_0xbd6a14,'exten':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1d6f')],'context':_0xc34041['inboundroute'][_0x18ad40('0x1f3b')],'priority':_0x377871+_0x38abc6,'VoiceExtensionId':_0xc34041[_0x18ad40('0x26ea')]['id']});}_0xc84b14['priority']=_0x1f11f4[_0x18ad40('0x2566')]?_0x283545()['last'](_0x1f11f4)[_0x18ad40('0x155b')]+0x1:_0x377871,_0x377871=(_0x238bf5[_0x18ad40('0x2566')]?_0x283545()[_0x18ad40('0x1d39')](_0x238bf5)[_0x18ad40('0x155b')]:_0xc84b14['priority'])+0x1,_0x2aa8f2=_0x283545()[_0x18ad40('0x1282')](_0x2aa8f2,_0x1f11f4,[_0xc84b14],_0x238bf5);}_0x2aa8f2[_0x18ad40('0x13e3')]({'type':_0x18ad40('0x2e4'),'app':_0x18ad40('0x1265'),'exten':_0xc34041['inboundroute'][_0x18ad40('0x1d6f')],'context':_0xc34041[_0x18ad40('0x26ea')][_0x18ad40('0x1f3b')],'priority':_0x377871,'VoiceExtensionId':_0xc34041['inboundroute']['id']}),_0x2b8b8b[_0x18ad40('0x2636')]['addApplications']({'id':_0xc34041[_0x18ad40('0x26ea')]['id']},_0x283545()['sortBy'](_0x2aa8f2,_0x18ad40('0x155b')))[_0x18ad40('0x1714')][_0x18ad40('0x2788')](function(_0x506190){const _0x376aa8=_0x18ad40;_0xc34041['inboundrouteApps'][_0x376aa8('0x25df')]=_0x506190[_0x376aa8('0x25df')];})[_0x18ad40('0x1cb5')](function(_0x3cca09){const _0x7e8c9d=_0x18ad40;console[_0x7e8c9d('0x5e8')](_0x3cca09);});}function _0x48b094(_0x3d43d3){_0xc34041['inboundrouteApps']=_0x3d43d3||{'count':0x0,'rows':[]};}function _0x2d387c(){const _0x68b6ae=_0x83b370;return _0x2b8b8b[_0x68b6ae('0x2630')][_0x68b6ae('0x1335')]({'fields':'id,interval,IntervalId'})[_0x68b6ae('0x1714')][_0x68b6ae('0x2788')](function(_0x239d98){const _0x431699=_0x68b6ae;_0xc34041[_0x431699('0xec5')]=_0x239d98;})['catch'](function(_0x270aa6){const _0x2f7f6f=_0x68b6ae;console[_0x2f7f6f('0x5e8')](_0x270aa6);});}function _0x3a8ba4(){const _0x136b95=_0x83b370;_0xc34041[_0x136b95('0x1808')]=_0x2b8b8b['voiceExtension'][_0x136b95('0x1335')](_0xc34041[_0x136b95('0x135a')],_0x48b094)[_0x136b95('0x1714')];}function _0x3d1aa9(_0x20fb8b){const _0x3cc1c1=_0x83b370;_0x283545()['remove'](_0xc34041['inboundrouteApps'][_0x3cc1c1('0x25df')],{'id':_0x20fb8b['id']}),_0x46e84c(),_0x42deb7['success']({'title':_0x3cc1c1('0x170b'),'msg':_0x20fb8b[_0x3cc1c1('0x8a5')]?_0x20fb8b[_0x3cc1c1('0x8a5')]+_0x3cc1c1('0x14d4'):''});}function _0x2b7d6f(_0x307136){const _0x45010c=_0x83b370,_0x3e412d=_0x3db267['confirm']()[_0x45010c('0x14e4')](_0x45010c('0x191c'))[_0x45010c('0x93e')](_0x45010c('0x1670')+_0xc34041[_0x45010c('0x1edf')][_0x45010c('0x2566')]+'\x20selected'+_0x45010c('0x27c7'))[_0x45010c('0x10bc')](_0x45010c('0x1db'))['targetEvent'](_0x307136)['ok']('OK')[_0x45010c('0x1801')](_0x45010c('0x1d8d'));_0x3db267[_0x45010c('0x2fa')](_0x3e412d)[_0x45010c('0x2788')](function(){const _0x40ecbb=_0x45010c;_0xc34041['selectedInboundRouteApps'][_0x40ecbb('0x1534')](function(_0x4b835b){const _0xf937cb=_0x40ecbb;_0x283545()['remove'](_0xc34041[_0xf937cb('0x1acf')]['rows'],{'id':_0x4b835b['id']});}),_0xc34041['selectedInboundRouteApps']=[],_0x46e84c();});}}const _0x183217=_0x4736d6;_0x3621bc['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),_0x34e79e('0x26ea'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3621bc(_0x36b728,_0x4d78b1,_0x33c009,_0x5e2247,_0x56824d,_0x4bddf5,_0x224ed2,_0x27184b){const _0x469536=_0x34e79e,_0x2ee4be=this;_0x2ee4be[_0x469536('0x9cb')]=_0x224ed2[_0x469536('0x24cc')](),_0x2ee4be[_0x469536('0x25be')]=[],_0x2ee4be['title']=_0x469536('0xc6c')+(_0x5e2247['appType']||_0x5e2247[_0x469536('0x8a5')])[_0x469536('0x25e6')](),_0x2ee4be[_0x469536('0x2631')]=angular['copy'](_0x5e2247),_0x2ee4be['crudPermissions']=_0x27184b,_0x2ee4be[_0x469536('0x1193')]={};if(_0x2ee4be[_0x469536('0x2631')]['appdata'])switch(_0x2ee4be[_0x469536('0x2631')][_0x469536('0x167b')]?_0x2ee4be[_0x469536('0x2631')][_0x469536('0x167b')]['toLowerCase']():_0x2ee4be[_0x469536('0x2631')][_0x469536('0x8a5')][_0x469536('0xc2e')]()){case _0x469536('0x1d56'):break;case _0x469536('0x5e1'):{const _0x424fff=_0x2ee4be[_0x469536('0x2631')][_0x469536('0xd6b')][_0x469536('0x1497')](',');_0x2ee4be['agi']['key']=_0x424fff[0x0],_0x2ee4be['agi'][_0x469536('0x175b')]=_0x424fff[0x1],_0x2ee4be[_0x469536('0x2631')][_0x469536('0xf50')]=_0x424fff[_0x469536('0x845')](0x2,_0x424fff[_0x469536('0x2566')])[_0x469536('0x185f')](',');}break;case'amazonlex':{const _0x26fa06=_0x2ee4be['agi'][_0x469536('0xd6b')][_0x469536('0x1497')](',');_0x2ee4be[_0x469536('0x2631')][_0x469536('0x27f2')]=_0x26fa06[0x0],_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1b58')]=_0x26fa06[0x1],_0x2ee4be[_0x469536('0x2631')][_0x469536('0xb70')]=_0x26fa06[0x2],_0x2ee4be[_0x469536('0x2631')]['botname']=_0x26fa06[0x3],_0x2ee4be[_0x469536('0x2631')]['welcomemessage']=_0x26fa06['slice'](0x4,_0x26fa06[_0x469536('0x2566')])['join'](',');}break;case _0x469536('0x808'):{const _0x1c5cee=_0x2ee4be[_0x469536('0x2631')]['appdata'][_0x469536('0x1497')](',');_0x2ee4be['agi'][_0x469536('0x5fd')]=isNaN(_0x1c5cee[0x0])?_0x1c5cee[0x0]:parseInt(_0x1c5cee[0x0],0xa),_0x2ee4be[_0x469536('0x2631')]['text']=_0x1c5cee[_0x469536('0x845')](0x1,_0x1c5cee['length'])[_0x469536('0x185f')](',');}break;case _0x469536('0x15e2'):_0x2ee4be[_0x469536('0x2631')][_0x469536('0x16db')]=_0x2ee4be[_0x469536('0x2631')][_0x469536('0xd6b')];break;case'set':_0x2ee4be['agi']['name']=_0x2ee4be[_0x469536('0x2631')][_0x469536('0xd6b')]['split']('=')[0x0],_0x2ee4be['agi'][_0x469536('0x49')]=_0x2ee4be['agi']['appdata'][_0x469536('0x1497')]('=')[0x1];break;case _0x469536('0x2631'):_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1bf6')]=_0x2ee4be['agi']['appdata'];break;default:{const _0x249584=_0x2ee4be['agi'][_0x469536('0xd6b')][_0x469536('0x1497')](',');_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1bf6')]=_0x283545()[_0x469536('0x213d')](_0x249584[0x0])?_0x249584[0x0]:isNaN(_0x249584[0x0])?_0x249584[0x0]:parseInt(_0x249584[0x0],0xa);}break;}else{}_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1d7')]&&_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1d7')][_0x469536('0xc2e')]()===_0x469536('0x1')&&_0x2ee4be[_0x469536('0x2631')][_0x469536('0x167b')][_0x469536('0xc2e')]()==='outbounddial'&&(_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1f71')]=_0x2ee4be['agi'][_0x469536('0x1224')]?_0x2ee4be[_0x469536('0x2631')][_0x469536('0x1224')][_0x469536('0x1497')]('$')[0x0]:undefined,_0x2ee4be[_0x469536('0x2631')]['callerId']=_0x2ee4be[_0x469536('0x2631')][_0x469536('0x8de')]?'CALLERID(all)='+_0x2ee4be['agi'][_0x469536('0x8de')]:undefined);_0x2ee4be[_0x469536('0xa46')]=_0x187532,_0x2ee4be['closeDialog']=_0x317db3,_0x224ed2[_0x469536('0x1516')]('admin')?_0x4bddf5['squareProject'][_0x469536('0x1335')]({'fields':_0x469536('0x1338'),'sort':_0x469536('0x1a8d'),'nolimit':'true'})['$promise'][_0x469536('0x2788')](function(_0x573828){const _0x472b30=_0x469536;_0x2ee4be[_0x472b30('0x18f9')]=_0x573828[_0x472b30('0x25df')]||[];})[_0x469536('0x1cb5')](function(_0x2ae820){const _0x5479ee=_0x469536;_0x33c009['error']({'title':_0x2ae820[_0x5479ee('0x1b51')]?'API:'+_0x2ae820[_0x5479ee('0x1b51')]+_0x5479ee('0x1b0b')+_0x2ae820['statusText']:_0x5479ee('0x123a'),'msg':_0x2ae820[_0x5479ee('0x11fc')]?JSON['stringify'](_0x2ae820[_0x5479ee('0x11fc')]):_0x2ae820[_0x5479ee('0x17df')]()});}):_0x4bddf5[_0x469536('0x163a')][_0x469536('0x1335')]({'fields':_0x469536('0x1338'),'sort':_0x469536('0x1a8d'),'nolimit':_0x469536('0x1001')})[_0x469536('0x1714')]['then'](function(_0x161cf7){const _0x5aaa98=_0x469536;_0x2ee4be[_0x5aaa98('0x18f9')]=_0x161cf7[_0x5aaa98('0x25df')]||[];})[_0x469536('0x2788')](function(){const _0x16f581=_0x469536;return _0x4bddf5[_0x16f581('0xec9')][_0x16f581('0x1335')]({'userProfileId':_0x2ee4be['currentUser'][_0x16f581('0x237f')],'sectionId':0x44f})[_0x16f581('0x1714')];})[_0x469536('0x2788')](function(_0x457cc3){const _0x124a66=_0x469536,_0x12b62d=_0x457cc3&&_0x457cc3['rows']?_0x457cc3[_0x124a66('0x25df')][0x0]:null;if(!_0x12b62d){const _0x2ed347=[];let _0x3cb6de=null;_0x2ee4be[_0x124a66('0x2631')]&&(_0x3cb6de=_0x283545()[_0x124a66('0x20e8')](_0x2ee4be[_0x124a66('0x18f9')],{'name':_0x2ee4be['agi']['project']}));for(let _0x32ef48=0x0;_0x32ef48<_0x2ee4be['projects'][_0x124a66('0x2566')];_0x32ef48++){_0x3cb6de&&_0x2ee4be[_0x124a66('0x18f9')][_0x32ef48]['id']===_0x3cb6de['id']&&(_0x2ee4be[_0x124a66('0x18f9')][_0x32ef48][_0x124a66('0x3bf')]=![],_0x2ed347['push'](_0x2ee4be[_0x124a66('0x18f9')][_0x32ef48]));}_0x2ee4be[_0x124a66('0x18f9')]=_0x2ed347;}else{if(!_0x12b62d[_0x124a66('0x1c0a')])return _0x4bddf5[_0x124a66('0x1050')]['get']({'sectionId':_0x12b62d['id']})[_0x124a66('0x1714')][_0x124a66('0x2788')](function(_0x5e510a){const _0xb18844=_0x124a66,_0xb635e4=_0x283545()[_0xb18844('0x155d')](_0x5e510a[_0xb18844('0x25df')],function(_0x1d0fcf){const _0x2ef17a=_0xb18844;return _0x283545()['find'](_0x2ee4be[_0x2ef17a('0x18f9')],{'id':_0x1d0fcf['resourceId']});});let _0x234998=null;_0x2ee4be['agi']&&(_0x234998=_0x283545()[_0xb18844('0x20e8')](_0x2ee4be[_0xb18844('0x18f9')],{'name':_0x2ee4be[_0xb18844('0x2631')][_0xb18844('0x1bf6')]}));if(_0x234998&&!_0x283545()[_0xb18844('0xc5d')](_0xb635e4,['id',_0x234998['id']])){const _0x54935b=_0x283545()['find'](_0x2ee4be[_0xb18844('0x18f9')],{'id':_0x234998['id']});_0x54935b['canSelect']=![],_0xb635e4[_0xb18844('0x13e3')](_0x54935b);}_0x2ee4be['projects']=_0xb635e4;});}})['catch'](function(_0x275d0c){const _0x3d0d76=_0x469536;_0x33c009[_0x3d0d76('0x5e8')]({'title':_0x275d0c[_0x3d0d76('0x1b51')]?_0x3d0d76('0x15d1')+_0x275d0c[_0x3d0d76('0x1b51')]+_0x3d0d76('0x1b0b')+_0x275d0c[_0x3d0d76('0x22ce')]:_0x3d0d76('0x1d8c'),'msg':_0x275d0c[_0x3d0d76('0x11fc')]?JSON[_0x3d0d76('0x1be0')](_0x275d0c['data']):_0x275d0c['toString']()});});function _0x187532(){const _0x2e3fcb=_0x469536;_0x2ee4be[_0x2e3fcb('0x25be')]=[];const _0x316cba=[];_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x1d7')]&&_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x1d7')][_0x2e3fcb('0xc2e')]()==='outbound'&&_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x167b')]===_0x2e3fcb('0x25fb')&&(_0x2ee4be[_0x2e3fcb('0x2631')]['phone']=_0x56824d[_0x2e3fcb('0x277c')]?(_0x2ee4be['agi']['prefix']||'')+'${EXTEN:'+_0x56824d['cutdigits']+'}':(_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x1f71')]||'')+'${EXTEN}',_0x56824d['recordingFormat']!==_0x2e3fcb('0x1dc')?_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x784')][_0x2e3fcb('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2ee4be['agi'][_0x2e3fcb('0x784')]+=_0x2e3fcb('0x1609')):_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x784')]=_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x784')][_0x2e3fcb('0x10a4')](_0x2e3fcb('0x1609'),''));if(_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x167b')]&&_0x2ee4be['agi'][_0x2e3fcb('0x167b')]==='custom'){}else switch((_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x8a5')]||_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x167b')])[_0x2e3fcb('0xc2e')]()){case _0x2e3fcb('0x3a6'):_0x2ee4be[_0x2e3fcb('0x2631')]['appdata']=_0x2ee4be[_0x2e3fcb('0x2631')]['name']+'='+_0x2ee4be['agi']['value'];break;case _0x2e3fcb('0x1d56'):break;default:_0x316cba[0x0]=_0x2ee4be[_0x2e3fcb('0x2631')][_0x2e3fcb('0x1bf6')],_0x2ee4be['agi'][_0x2e3fcb('0xd6b')]=_0x316cba[_0x2e3fcb('0x185f')](',');}_0x317db3(_0x2ee4be[_0x2e3fcb('0x2631')]);}function _0x317db3(_0xa7e2ac){const _0x5df780=_0x469536;_0x36b728[_0x5df780('0x19d')](_0xa7e2ac);}}const _0x4c60c2=_0x3621bc;_0x387981[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),_0x34e79e('0x26ea'),_0x34e79e('0x519'),'Auth','crudPermissions'];function _0x387981(_0x4bdd74,_0x43feb3,_0x30e2c5,_0x1d4960,_0xf690d0,_0x4c9ea0,_0x501718,_0xa066b2){const _0x243469=_0x34e79e,_0x54ddf5=this;_0x54ddf5[_0x243469('0x9cb')]=_0x501718[_0x243469('0x24cc')](),_0x54ddf5[_0x243469('0x25be')]=[],_0x54ddf5['title']=_0x243469('0xc6c')+(_0x1d4960[_0x243469('0x167b')]||_0x1d4960['app'])[_0x243469('0x25e6')](),_0x54ddf5[_0x243469('0x1d56')]=angular[_0x243469('0x2669')](_0x1d4960),_0x54ddf5[_0x243469('0xe28')]=_0xa066b2,_0x54ddf5[_0x243469('0x1193')]={};if(_0x54ddf5[_0x243469('0x1d56')][_0x243469('0xd6b')])switch(_0x54ddf5['custom'][_0x243469('0x167b')]?_0x54ddf5[_0x243469('0x1d56')]['appType'][_0x243469('0xc2e')]():_0x54ddf5[_0x243469('0x1d56')]['app']['toLowerCase']()){case'custom':break;case _0x243469('0x5e1'):{const _0xd4a6e7=_0x54ddf5[_0x243469('0x1d56')][_0x243469('0xd6b')]['split'](',');_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x234b')]=_0xd4a6e7[0x0],_0x54ddf5['custom'][_0x243469('0x175b')]=_0xd4a6e7[0x1],_0x54ddf5[_0x243469('0x1d56')][_0x243469('0xf50')]=_0xd4a6e7[_0x243469('0x845')](0x2,_0xd4a6e7['length'])['join'](',');}break;case _0x243469('0x137a'):{const _0x1c8ebb=_0x54ddf5['custom'][_0x243469('0xd6b')][_0x243469('0x1497')](',');_0x54ddf5['custom']['accesskeyid']=_0x1c8ebb[0x0],_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1b58')]=_0x1c8ebb[0x1],_0x54ddf5[_0x243469('0x1d56')]['lexregion']=_0x1c8ebb[0x2],_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x4eb')]=_0x1c8ebb[0x3],_0x54ddf5[_0x243469('0x1d56')]['welcomemessage']=_0x1c8ebb['slice'](0x4,_0x1c8ebb[_0x243469('0x2566')])[_0x243469('0x185f')](',');}break;case _0x243469('0x808'):{const _0x57790c=_0x54ddf5[_0x243469('0x1d56')]['appdata'][_0x243469('0x1497')](',');_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x5fd')]=isNaN(_0x57790c[0x0])?_0x57790c[0x0]:parseInt(_0x57790c[0x0],0xa),_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x16db')]=_0x57790c[_0x243469('0x845')](0x1,_0x57790c[_0x243469('0x2566')])[_0x243469('0x185f')](',');}break;case _0x243469('0x15e2'):_0x54ddf5['custom'][_0x243469('0x16db')]=_0x54ddf5[_0x243469('0x1d56')][_0x243469('0xd6b')];break;case _0x243469('0x3a6'):_0x54ddf5['custom'][_0x243469('0x1a8d')]=_0x54ddf5[_0x243469('0x1d56')][_0x243469('0xd6b')][_0x243469('0x1497')]('=')[0x0],_0x54ddf5[_0x243469('0x1d56')]['value']=_0x54ddf5['custom'][_0x243469('0xd6b')][_0x243469('0x1497')]('=')[0x1];break;case _0x243469('0x2631'):_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1bf6')]=_0x54ddf5['custom']['appdata'];break;default:{const _0x1fbf77=_0x54ddf5['custom']['appdata'][_0x243469('0x1497')](',');_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x8a5')]=_0x283545()[_0x243469('0x213d')](_0x1fbf77[0x0])?_0x1fbf77[0x0]:isNaN(_0x1fbf77[0x0])?_0x1fbf77[0x0]:parseInt(_0x1fbf77[0x0],0xa),_0x54ddf5['custom'][_0x243469('0xd6b')]=_0x283545()[_0x243469('0x213d')](_0x1fbf77[0x1])?_0x1fbf77[0x1]:isNaN(_0x1fbf77[0x1])?_0x1fbf77[0x1]:parseInt(_0x1fbf77[0x1],0xa);}break;}else{}_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1d7')]&&_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1d7')][_0x243469('0xc2e')]()===_0x243469('0x1')&&_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x167b')][_0x243469('0xc2e')]()===_0x243469('0x229c')&&(_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1f71')]=_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1224')]?_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x1224')][_0x243469('0x1497')]('$')[0x0]:undefined,_0x54ddf5['custom'][_0x243469('0x2081')]=_0x54ddf5[_0x243469('0x1d56')][_0x243469('0x8de')]?'CALLERID(all)='+_0x54ddf5['custom'][_0x243469('0x8de')]:undefined);_0x54ddf5[_0x243469('0xa46')]=_0xdf68ab,_0x54ddf5[_0x243469('0xca7')]=_0x4e9899;function _0xdf68ab(){const _0x4dc349=_0x243469;_0x54ddf5[_0x4dc349('0x25be')]=[];const _0x302e32=[];_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1d7')]&&_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1d7')]['toLowerCase']()===_0x4dc349('0x1')&&_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x167b')]===_0x4dc349('0x25fb')&&(_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1224')]=_0xf690d0[_0x4dc349('0x277c')]?(_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1f71')]||'')+_0x4dc349('0x124d')+_0xf690d0['cutdigits']+'}':(_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1f71')]||'')+_0x4dc349('0x1275'),_0xf690d0['recordingFormat']!=='none'?_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x784')][_0x4dc349('0x821')](_0x4dc349('0x1609'))<0x0&&(_0x54ddf5['custom'][_0x4dc349('0x784')]+=_0x4dc349('0x1609')):_0x54ddf5[_0x4dc349('0x1d56')]['options']=_0x54ddf5['custom']['options']['replace'](_0x4dc349('0x1609'),''));if(_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x167b')]&&_0x54ddf5['custom'][_0x4dc349('0x167b')]===_0x4dc349('0x1d56')){}else switch((_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x8a5')]||_0x54ddf5[_0x4dc349('0x1d56')]['appType'])[_0x4dc349('0xc2e')]()){case _0x4dc349('0x3a6'):_0x54ddf5[_0x4dc349('0x1d56')]['appdata']=_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x1a8d')]+'='+_0x54ddf5['custom']['value'];break;case _0x4dc349('0x1d56'):break;default:_0x302e32[0x0]=_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0x8a5')],_0x302e32[0x1]=_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0xd6b')],_0x54ddf5[_0x4dc349('0x1d56')][_0x4dc349('0xd6b')]=_0x302e32[_0x4dc349('0x185f')](',');}_0x4e9899(_0x54ddf5[_0x4dc349('0x1d56')]);}function _0x4e9899(_0x215f88){const _0x5dc97f=_0x243469;_0x4bdd74[_0x5dc97f('0x19d')](_0x215f88);}}const _0x1fbe61=_0x387981;_0x8c19e7['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),'inboundroute',_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x8c19e7(_0x1eab77,_0x492421,_0xc617ec,_0x1af0e9,_0xeebbf0,_0x882b8e,_0x511ba4,_0x46f43b){const _0x4f4591=_0x34e79e,_0x3f660c=this;_0x3f660c[_0x4f4591('0x9cb')]=_0x511ba4[_0x4f4591('0x24cc')](),_0x3f660c[_0x4f4591('0x25be')]=[],_0x3f660c[_0x4f4591('0x14e4')]=_0x4f4591('0xc6c')+(_0x1af0e9[_0x4f4591('0x167b')]||_0x1af0e9[_0x4f4591('0x8a5')])['toUpperCase'](),_0x3f660c[_0x4f4591('0x17e6')]=angular[_0x4f4591('0x2669')](_0x1af0e9),_0x3f660c[_0x4f4591('0xe28')]=_0x46f43b,_0x3f660c[_0x4f4591('0x1193')]={};if(_0x3f660c['dial'][_0x4f4591('0xd6b')])switch(_0x3f660c['dial'][_0x4f4591('0x167b')]?_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x167b')][_0x4f4591('0xc2e')]():_0x3f660c['dial']['app'][_0x4f4591('0xc2e')]()){case _0x4f4591('0x1d56'):break;case _0x4f4591('0x5e1'):{const _0x105e6f=_0x3f660c['dial']['appdata'][_0x4f4591('0x1497')](',');_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x234b')]=_0x105e6f[0x0],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x175b')]=_0x105e6f[0x1],_0x3f660c[_0x4f4591('0x17e6')]['welcomemessage']=_0x105e6f['slice'](0x2,_0x105e6f['length'])['join'](',');}break;case _0x4f4591('0x137a'):{const _0x494eb9=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xd6b')][_0x4f4591('0x1497')](',');_0x3f660c[_0x4f4591('0x17e6')]['accesskeyid']=_0x494eb9[0x0],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x1b58')]=_0x494eb9[0x1],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xb70')]=_0x494eb9[0x2],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x4eb')]=_0x494eb9[0x3],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xf50')]=_0x494eb9[_0x4f4591('0x845')](0x4,_0x494eb9[_0x4f4591('0x2566')])[_0x4f4591('0x185f')](',');}break;case _0x4f4591('0x808'):{const _0x5f5b54=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xd6b')]['split'](',');_0x3f660c[_0x4f4591('0x17e6')]['times']=isNaN(_0x5f5b54[0x0])?_0x5f5b54[0x0]:parseInt(_0x5f5b54[0x0],0xa),_0x3f660c['dial']['text']=_0x5f5b54[_0x4f4591('0x845')](0x1,_0x5f5b54['length'])['join'](',');}break;case _0x4f4591('0x15e2'):_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x16db')]=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xd6b')];break;case _0x4f4591('0x3a6'):_0x3f660c[_0x4f4591('0x17e6')]['name']=_0x3f660c['dial']['appdata'][_0x4f4591('0x1497')]('=')[0x0],_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x49')]=_0x3f660c['dial'][_0x4f4591('0xd6b')][_0x4f4591('0x1497')]('=')[0x1];break;case _0x4f4591('0x2631'):_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x1bf6')]=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xd6b')];break;default:{const _0x2cb913=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0xd6b')][_0x4f4591('0x1497')](',');_0x3f660c['dial'][_0x4f4591('0x2494')]=_0x283545()[_0x4f4591('0x213d')](_0x2cb913[0x0])?_0x2cb913[0x0]:isNaN(_0x2cb913[0x0])?_0x2cb913[0x0]:parseInt(_0x2cb913[0x0],0xa),_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x24e4')]=_0x283545()[_0x4f4591('0x213d')](_0x2cb913[0x1])?_0x2cb913[0x1]:isNaN(_0x2cb913[0x1])?_0x2cb913[0x1]:parseInt(_0x2cb913[0x1],0xa),_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x784')]=_0x283545()['isEmpty'](_0x2cb913[0x2])?_0x2cb913[0x2]:isNaN(_0x2cb913[0x2])?_0x2cb913[0x2]:parseInt(_0x2cb913[0x2],0xa),_0x3f660c[_0x4f4591('0x17e6')]['url']=_0x283545()[_0x4f4591('0x213d')](_0x2cb913[0x3])?_0x2cb913[0x3]:isNaN(_0x2cb913[0x3])?_0x2cb913[0x3]:parseInt(_0x2cb913[0x3],0xa);}break;}else{}_0x3f660c[_0x4f4591('0x17e6')]['type']&&_0x3f660c['dial'][_0x4f4591('0x1d7')][_0x4f4591('0xc2e')]()===_0x4f4591('0x1')&&_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x167b')][_0x4f4591('0xc2e')]()==='outbounddial'&&(_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x1f71')]=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x1224')]?_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x1224')][_0x4f4591('0x1497')]('$')[0x0]:undefined,_0x3f660c['dial'][_0x4f4591('0x2081')]=_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x8de')]?_0x4f4591('0x1834')+_0x3f660c[_0x4f4591('0x17e6')][_0x4f4591('0x8de')]:undefined);_0x3f660c[_0x4f4591('0xa46')]=_0xc80e6a,_0x3f660c['closeDialog']=_0x422964;function _0xc80e6a(){const _0x267e2=_0x4f4591;_0x3f660c[_0x267e2('0x25be')]=[];const _0x21db9c=[];_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x1d7')]&&_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x1d7')][_0x267e2('0xc2e')]()==='outbound'&&_0x3f660c[_0x267e2('0x17e6')]['appType']==='outboundDial'&&(_0x3f660c['dial'][_0x267e2('0x1224')]=_0xeebbf0[_0x267e2('0x277c')]?(_0x3f660c[_0x267e2('0x17e6')]['prefix']||'')+'${EXTEN:'+_0xeebbf0[_0x267e2('0x277c')]+'}':(_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x1f71')]||'')+_0x267e2('0x1275'),_0xeebbf0[_0x267e2('0x801')]!==_0x267e2('0x1dc')?_0x3f660c[_0x267e2('0x17e6')]['options']['indexOf'](_0x267e2('0x1609'))<0x0&&(_0x3f660c['dial'][_0x267e2('0x784')]+='U(xcally-mixmonitor-context)'):_0x3f660c['dial']['options']=_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x784')][_0x267e2('0x10a4')](_0x267e2('0x1609'),''));if(_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x167b')]&&_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x167b')]===_0x267e2('0x1d56')){}else switch((_0x3f660c[_0x267e2('0x17e6')]['app']||_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x167b')])[_0x267e2('0xc2e')]()){case _0x267e2('0x3a6'):_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0xd6b')]=_0x3f660c[_0x267e2('0x17e6')]['name']+'='+_0x3f660c['dial'][_0x267e2('0x49')];break;case _0x267e2('0x1d56'):break;default:_0x21db9c[0x0]=_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x2494')],_0x21db9c[0x1]=_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x24e4')],_0x21db9c[0x2]=_0x3f660c[_0x267e2('0x17e6')]['options'],_0x21db9c[0x3]=_0x3f660c[_0x267e2('0x17e6')][_0x267e2('0x1672')],_0x3f660c[_0x267e2('0x17e6')]['appdata']=_0x21db9c[_0x267e2('0x185f')](',');}_0x422964(_0x3f660c[_0x267e2('0x17e6')]);}function _0x422964(_0x36d9e2){_0x1eab77['hide'](_0x36d9e2);}}const _0x57c6e9=_0x8c19e7;_0xde7361['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),_0x34e79e('0x26ea'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xde7361(_0x3b8389,_0x402df9,_0x1552fd,_0x56143b,_0x3f1779,_0x5a91b9,_0x6e1130,_0x2b540e){const _0x1004b7=_0x34e79e,_0x9aba4=this;_0x9aba4[_0x1004b7('0x9cb')]=_0x6e1130['getCurrentUser'](),_0x9aba4[_0x1004b7('0x25be')]=[],_0x9aba4[_0x1004b7('0x14e4')]=_0x1004b7('0xc6c')+(_0x56143b[_0x1004b7('0x167b')]||_0x56143b['app'])['toUpperCase'](),_0x9aba4[_0x1004b7('0x2817')]=angular['copy'](_0x56143b),_0x9aba4[_0x1004b7('0xe28')]=_0x2b540e,_0x9aba4[_0x1004b7('0x1193')]={};if(_0x9aba4[_0x1004b7('0x2817')]['appdata'])switch(_0x9aba4[_0x1004b7('0x2817')]['appType']?_0x9aba4['externaldial']['appType'][_0x1004b7('0xc2e')]():_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x8a5')]['toLowerCase']()){case _0x1004b7('0x1d56'):break;case _0x1004b7('0x5e1'):{const _0x3ebb38=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0xd6b')]['split'](',');_0x9aba4['externaldial'][_0x1004b7('0x234b')]=_0x3ebb38[0x0],_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x175b')]=_0x3ebb38[0x1],_0x9aba4[_0x1004b7('0x2817')]['welcomemessage']=_0x3ebb38[_0x1004b7('0x845')](0x2,_0x3ebb38['length'])['join'](',');}break;case'amazonlex':{const _0x5aea01=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0xd6b')]['split'](',');_0x9aba4['externaldial'][_0x1004b7('0x27f2')]=_0x5aea01[0x0],_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x1b58')]=_0x5aea01[0x1],_0x9aba4['externaldial']['lexregion']=_0x5aea01[0x2],_0x9aba4['externaldial']['botname']=_0x5aea01[0x3],_0x9aba4['externaldial'][_0x1004b7('0xf50')]=_0x5aea01[_0x1004b7('0x845')](0x4,_0x5aea01[_0x1004b7('0x2566')])['join'](',');}break;case'autoreply':{const _0x3aa178=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0xd6b')][_0x1004b7('0x1497')](',');_0x9aba4['externaldial']['times']=isNaN(_0x3aa178[0x0])?_0x3aa178[0x0]:parseInt(_0x3aa178[0x0],0xa),_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x16db')]=_0x3aa178[_0x1004b7('0x845')](0x1,_0x3aa178[_0x1004b7('0x2566')])['join'](',');}break;case _0x1004b7('0x15e2'):_0x9aba4['externaldial'][_0x1004b7('0x16db')]=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0xd6b')];break;case'set':_0x9aba4['externaldial']['name']=_0x9aba4['externaldial'][_0x1004b7('0xd6b')][_0x1004b7('0x1497')]('=')[0x0],_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x49')]=_0x9aba4['externaldial']['appdata'][_0x1004b7('0x1497')]('=')[0x1];break;case _0x1004b7('0x2631'):_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x1bf6')]=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0xd6b')];break;default:{const _0x4d5e7b=_0x9aba4['externaldial'][_0x1004b7('0xd6b')][_0x1004b7('0x1497')](',');_0x9aba4['externaldial'][_0x1004b7('0x2549')]=_0x4d5e7b[0x0][_0x1004b7('0x1497')]('/')[0x1],_0x9aba4[_0x1004b7('0x2817')]['phone']=_0x4d5e7b[0x0]['split']('/')[0x2],_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x24e4')]=_0x283545()[_0x1004b7('0x213d')](_0x4d5e7b[0x1])?_0x4d5e7b[0x1]:isNaN(_0x4d5e7b[0x1])?_0x4d5e7b[0x1]:parseInt(_0x4d5e7b[0x1],0xa),_0x9aba4['externaldial'][_0x1004b7('0x784')]=_0x283545()[_0x1004b7('0x213d')](_0x4d5e7b[0x2])?_0x4d5e7b[0x2]:isNaN(_0x4d5e7b[0x2])?_0x4d5e7b[0x2]:parseInt(_0x4d5e7b[0x2],0xa),_0x9aba4[_0x1004b7('0x2817')]['url']=_0x283545()['isEmpty'](_0x4d5e7b[0x3])?_0x4d5e7b[0x3]:isNaN(_0x4d5e7b[0x3])?_0x4d5e7b[0x3]:parseInt(_0x4d5e7b[0x3],0xa);}break;}else{}_0x9aba4[_0x1004b7('0x2817')]['type']&&_0x9aba4['externaldial']['type'][_0x1004b7('0xc2e')]()===_0x1004b7('0x1')&&_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x167b')][_0x1004b7('0xc2e')]()===_0x1004b7('0x229c')&&(_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x1f71')]=_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x1224')]?_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x1224')][_0x1004b7('0x1497')]('$')[0x0]:undefined,_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x2081')]=_0x9aba4[_0x1004b7('0x2817')]['callerID']?_0x1004b7('0x1834')+_0x9aba4[_0x1004b7('0x2817')][_0x1004b7('0x8de')]:undefined);_0x9aba4[_0x1004b7('0xa46')]=_0x1bc08f,_0x9aba4[_0x1004b7('0xca7')]=_0x49b34d,_0x6e1130[_0x1004b7('0x1516')](_0x1004b7('0xe23'))?_0x5a91b9['trunk'][_0x1004b7('0x1335')]({'fields':_0x1004b7('0x1338'),'sort':_0x1004b7('0x1a8d'),'nolimit':_0x1004b7('0x1001')})[_0x1004b7('0x1714')][_0x1004b7('0x2788')](function(_0x247be9){const _0x2fd235=_0x1004b7;_0x9aba4['trunks']=_0x247be9[_0x2fd235('0x25df')]||[];})['catch'](function(_0x34f6a6){const _0x27d566=_0x1004b7;_0x1552fd[_0x27d566('0x5e8')]({'title':_0x34f6a6[_0x27d566('0x1b51')]?'API:'+_0x34f6a6[_0x27d566('0x1b51')]+_0x27d566('0x1b0b')+_0x34f6a6[_0x27d566('0x22ce')]:_0x27d566('0x119d'),'msg':_0x34f6a6[_0x27d566('0x11fc')]?JSON[_0x27d566('0x1be0')](_0x34f6a6[_0x27d566('0x11fc')]):_0x34f6a6[_0x27d566('0x17df')]()});}):_0x5a91b9['trunk'][_0x1004b7('0x1335')]({'fields':'id,name','sort':_0x1004b7('0x1a8d'),'nolimit':_0x1004b7('0x1001')})[_0x1004b7('0x1714')]['then'](function(_0x2119e8){const _0x5b7879=_0x1004b7;_0x9aba4[_0x5b7879('0x20f2')]=_0x2119e8[_0x5b7879('0x25df')]||[];})[_0x1004b7('0x2788')](function(){const _0x50afc0=_0x1004b7;return _0x5a91b9['userProfileSection'][_0x50afc0('0x1335')]({'userProfileId':_0x9aba4[_0x50afc0('0x9cb')][_0x50afc0('0x237f')],'sectionId':0x3f3})[_0x50afc0('0x1714')];})[_0x1004b7('0x2788')](function(_0x167f1a){const _0x1a4232=_0x1004b7,_0x33406f=_0x167f1a&&_0x167f1a['rows']?_0x167f1a[_0x1a4232('0x25df')][0x0]:null;if(!_0x33406f){const _0xf15a05=[];let _0x4e0d8c=null;_0x9aba4['externaldial']&&(_0x4e0d8c=_0x283545()[_0x1a4232('0x20e8')](_0x9aba4['trunks'],{'name':_0x9aba4[_0x1a4232('0x2817')][_0x1a4232('0x2549')]}));for(let _0x1e2063=0x0;_0x1e2063<_0x9aba4['trunks'][_0x1a4232('0x2566')];_0x1e2063++){_0x4e0d8c&&_0x9aba4[_0x1a4232('0x20f2')][_0x1e2063]['id']===_0x4e0d8c['id']&&(_0x9aba4[_0x1a4232('0x20f2')][_0x1e2063][_0x1a4232('0x3bf')]=![],_0xf15a05['push'](_0x9aba4[_0x1a4232('0x20f2')][_0x1e2063]));}_0x9aba4['trunks']=_0xf15a05;}else{if(!_0x33406f['autoAssociation'])return _0x5a91b9[_0x1a4232('0x1050')]['get']({'sectionId':_0x33406f['id']})[_0x1a4232('0x1714')]['then'](function(_0xe9d1fa){const _0x2f179b=_0x1a4232,_0x3cc538=_0x283545()[_0x2f179b('0x155d')](_0xe9d1fa[_0x2f179b('0x25df')],function(_0x528f9a){const _0xeeae37=_0x2f179b;return _0x283545()['find'](_0x9aba4[_0xeeae37('0x20f2')],{'id':_0x528f9a[_0xeeae37('0x2707')]});});let _0x5928a4=null;_0x9aba4[_0x2f179b('0x2817')]&&(_0x5928a4=_0x283545()[_0x2f179b('0x20e8')](_0x9aba4['trunks'],{'name':_0x9aba4[_0x2f179b('0x2817')][_0x2f179b('0x2549')]}));if(_0x5928a4&&!_0x283545()[_0x2f179b('0xc5d')](_0x3cc538,['id',_0x5928a4['id']])){const _0xbd0163=_0x283545()[_0x2f179b('0x20e8')](_0x9aba4[_0x2f179b('0x20f2')],{'id':_0x5928a4['id']});_0xbd0163['canSelect']=![],_0x3cc538[_0x2f179b('0x13e3')](_0xbd0163);}_0x9aba4['trunks']=_0x3cc538;});}})[_0x1004b7('0x1cb5')](function(_0x4c4812){const _0xbd3b5a=_0x1004b7;_0x1552fd['error']({'title':_0x4c4812[_0xbd3b5a('0x1b51')]?_0xbd3b5a('0x15d1')+_0x4c4812[_0xbd3b5a('0x1b51')]+_0xbd3b5a('0x1b0b')+_0x4c4812[_0xbd3b5a('0x22ce')]:_0xbd3b5a('0xdb5'),'msg':_0x4c4812[_0xbd3b5a('0x11fc')]?JSON[_0xbd3b5a('0x1be0')](_0x4c4812['data']):_0x4c4812[_0xbd3b5a('0x17df')]()});});function _0x1bc08f(){const _0x5df5e2=_0x1004b7;_0x9aba4[_0x5df5e2('0x25be')]=[];const _0x321bcd=[];_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x1d7')]&&_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x1d7')][_0x5df5e2('0xc2e')]()===_0x5df5e2('0x1')&&_0x9aba4['externaldial'][_0x5df5e2('0x167b')]===_0x5df5e2('0x25fb')&&(_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x1224')]=_0x3f1779['cutdigits']?(_0x9aba4['externaldial']['prefix']||'')+_0x5df5e2('0x124d')+_0x3f1779['cutdigits']+'}':(_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x1f71')]||'')+_0x5df5e2('0x1275'),_0x3f1779[_0x5df5e2('0x801')]!==_0x5df5e2('0x1dc')?_0x9aba4['externaldial']['options'][_0x5df5e2('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x784')]+=_0x5df5e2('0x1609')):_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x784')]=_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x784')][_0x5df5e2('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x167b')]&&_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x167b')]===_0x5df5e2('0x1d56')){}else switch((_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x8a5')]||_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x167b')])[_0x5df5e2('0xc2e')]()){case'set':_0x9aba4['externaldial'][_0x5df5e2('0xd6b')]=_0x9aba4[_0x5df5e2('0x2817')]['name']+'='+_0x9aba4['externaldial']['value'];break;case _0x5df5e2('0x1d56'):break;default:_0x321bcd[0x0]=[_0x5df5e2('0x2756'),_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x2549')],_0x9aba4['externaldial'][_0x5df5e2('0x1224')]][_0x5df5e2('0x185f')]('/'),_0x321bcd[0x1]=_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x24e4')],_0x321bcd[0x2]=_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x784')],_0x321bcd[0x3]=_0x9aba4[_0x5df5e2('0x2817')][_0x5df5e2('0x1672')],_0x9aba4['externaldial'][_0x5df5e2('0xd6b')]=_0x321bcd[_0x5df5e2('0x185f')](',');}_0x49b34d(_0x9aba4['externaldial']);}function _0x49b34d(_0x4fd04e){_0x3b8389['hide'](_0x4fd04e);}}const _0x24ceff=_0xde7361;_0xd4dc83[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'inboundrouteApp','inboundroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xd4dc83(_0x9a5beb,_0x1cff4e,_0x42c097,_0x20ed83,_0x5498dd,_0x5910b6,_0x48a2b3,_0x2c46e4){const _0x374ebd=_0x34e79e,_0x537b13=this;_0x537b13[_0x374ebd('0x9cb')]=_0x48a2b3['getCurrentUser'](),_0x537b13[_0x374ebd('0x25be')]=[],_0x537b13['title']=_0x374ebd('0xc6c')+(_0x20ed83[_0x374ebd('0x167b')]||_0x20ed83[_0x374ebd('0x8a5')])[_0x374ebd('0x25e6')](),_0x537b13[_0x374ebd('0x1500')]=angular[_0x374ebd('0x2669')](_0x20ed83),_0x537b13[_0x374ebd('0xe28')]=_0x2c46e4,_0x537b13['hasModulePermissions']={};if(_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0xd6b')])switch(_0x537b13[_0x374ebd('0x1500')]['appType']?_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x167b')][_0x374ebd('0xc2e')]():_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x8a5')][_0x374ebd('0xc2e')]()){case _0x374ebd('0x1d56'):break;case'dialogflow':{const _0x54b127=_0x537b13['goto'][_0x374ebd('0xd6b')][_0x374ebd('0x1497')](',');_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x234b')]=_0x54b127[0x0],_0x537b13['goto'][_0x374ebd('0x175b')]=_0x54b127[0x1],_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0xf50')]=_0x54b127[_0x374ebd('0x845')](0x2,_0x54b127[_0x374ebd('0x2566')])[_0x374ebd('0x185f')](',');}break;case _0x374ebd('0x137a'):{const _0x3090cf=_0x537b13['goto'][_0x374ebd('0xd6b')][_0x374ebd('0x1497')](',');_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x27f2')]=_0x3090cf[0x0],_0x537b13['goto'][_0x374ebd('0x1b58')]=_0x3090cf[0x1],_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0xb70')]=_0x3090cf[0x2],_0x537b13[_0x374ebd('0x1500')]['botname']=_0x3090cf[0x3],_0x537b13['goto'][_0x374ebd('0xf50')]=_0x3090cf[_0x374ebd('0x845')](0x4,_0x3090cf[_0x374ebd('0x2566')])['join'](',');}break;case _0x374ebd('0x808'):{const _0x2e6c41=_0x537b13['goto']['appdata'][_0x374ebd('0x1497')](',');_0x537b13[_0x374ebd('0x1500')]['times']=isNaN(_0x2e6c41[0x0])?_0x2e6c41[0x0]:parseInt(_0x2e6c41[0x0],0xa),_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x16db')]=_0x2e6c41[_0x374ebd('0x845')](0x1,_0x2e6c41[_0x374ebd('0x2566')])[_0x374ebd('0x185f')](',');}break;case _0x374ebd('0x15e2'):_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x16db')]=_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0xd6b')];break;case _0x374ebd('0x3a6'):_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1a8d')]=_0x537b13[_0x374ebd('0x1500')]['appdata'][_0x374ebd('0x1497')]('=')[0x0],_0x537b13['goto'][_0x374ebd('0x49')]=_0x537b13[_0x374ebd('0x1500')]['appdata'][_0x374ebd('0x1497')]('=')[0x1];break;case _0x374ebd('0x2631'):_0x537b13['goto'][_0x374ebd('0x1bf6')]=_0x537b13['goto'][_0x374ebd('0xd6b')];break;default:{const _0xf57b3e=_0x537b13[_0x374ebd('0x1500')]['appdata'][_0x374ebd('0x1497')](',');_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1f3b')]=_0x283545()[_0x374ebd('0x213d')](_0xf57b3e[0x0])?_0xf57b3e[0x0]:isNaN(_0xf57b3e[0x0])?_0xf57b3e[0x0]:parseInt(_0xf57b3e[0x0],0xa),_0x537b13[_0x374ebd('0x1500')]['extension']=_0x283545()[_0x374ebd('0x213d')](_0xf57b3e[0x1])?_0xf57b3e[0x1]:isNaN(_0xf57b3e[0x1])?_0xf57b3e[0x1]:parseInt(_0xf57b3e[0x1],0xa),_0x537b13[_0x374ebd('0x1500')]['priority']=_0x283545()[_0x374ebd('0x213d')](_0xf57b3e[0x2])?_0xf57b3e[0x2]:isNaN(_0xf57b3e[0x2])?_0xf57b3e[0x2]:parseInt(_0xf57b3e[0x2],0xa);}break;}else{}_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1d7')]&&_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1d7')][_0x374ebd('0xc2e')]()==='outbound'&&_0x537b13['goto'][_0x374ebd('0x167b')]['toLowerCase']()===_0x374ebd('0x229c')&&(_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1f71')]=_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1224')]?_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x1224')][_0x374ebd('0x1497')]('$')[0x0]:undefined,_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x2081')]=_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x8de')]?_0x374ebd('0x1834')+_0x537b13[_0x374ebd('0x1500')][_0x374ebd('0x8de')]:undefined);_0x537b13[_0x374ebd('0xa46')]=_0x5a13ca,_0x537b13[_0x374ebd('0xca7')]=_0x14370a,_0x48a2b3[_0x374ebd('0x1516')](_0x374ebd('0xe23'))?_0x5910b6[_0x374ebd('0x15cc')]['get']({'fields':_0x374ebd('0x1338'),'sort':'name','nolimit':_0x374ebd('0x1001')})[_0x374ebd('0x1714')][_0x374ebd('0x2788')](function(_0xf17133){const _0x54549c=_0x374ebd;_0x537b13['contexts']=_0xf17133[_0x54549c('0x25df')]||[];})[_0x374ebd('0x1cb5')](function(_0x5c26fd){const _0x4bdf4e=_0x374ebd;_0x42c097[_0x4bdf4e('0x5e8')]({'title':_0x5c26fd['status']?_0x4bdf4e('0x15d1')+_0x5c26fd[_0x4bdf4e('0x1b51')]+_0x4bdf4e('0x1b0b')+_0x5c26fd[_0x4bdf4e('0x22ce')]:'SYSTEM:GET_CONTEXTS','msg':_0x5c26fd['data']?JSON[_0x4bdf4e('0x1be0')](_0x5c26fd['data']):_0x5c26fd[_0x4bdf4e('0x17df')]()});}):_0x5910b6[_0x374ebd('0x15cc')][_0x374ebd('0x1335')]({'fields':_0x374ebd('0x1338'),'sort':_0x374ebd('0x1a8d'),'nolimit':_0x374ebd('0x1001')})[_0x374ebd('0x1714')][_0x374ebd('0x2788')](function(_0x4c5b83){const _0x2af4a0=_0x374ebd;_0x537b13[_0x2af4a0('0xf3e')]=_0x4c5b83[_0x2af4a0('0x25df')]||[];})[_0x374ebd('0x2788')](function(){const _0x300fef=_0x374ebd;return _0x5910b6[_0x300fef('0xec9')][_0x300fef('0x1335')]({'userProfileId':_0x537b13[_0x300fef('0x9cb')][_0x300fef('0x237f')],'sectionId':0x195})['$promise'];})['then'](function(_0x30defb){const _0x1ee2e6=_0x374ebd,_0x19296c=_0x30defb&&_0x30defb['rows']?_0x30defb['rows'][0x0]:null;if(!_0x19296c)return _0x5910b6[_0x1ee2e6('0x15cc')][_0x1ee2e6('0x1335')]({'fields':_0x1ee2e6('0x1338'),'sort':_0x1ee2e6('0x1a8d'),'nolimit':_0x1ee2e6('0x1001'),'defaultEntry':0x1})[_0x1ee2e6('0x1714')][_0x1ee2e6('0x2788')](function(_0x221c33){const _0x5dfe3d=_0x1ee2e6;_0x537b13[_0x5dfe3d('0xf3e')]=_0x221c33['rows']||[];});else{if(!_0x19296c[_0x1ee2e6('0x1c0a')])return _0x5910b6['userProfileResource'][_0x1ee2e6('0x1335')]({'sectionId':_0x19296c['id']})['$promise'][_0x1ee2e6('0x2788')](function(_0x568c8a){const _0x58c7c3=_0x1ee2e6,_0x35a3ad=_0x283545()[_0x58c7c3('0x155d')](_0x568c8a[_0x58c7c3('0x25df')],function(_0x64a8e2){const _0x49ffff=_0x58c7c3;return _0x283545()[_0x49ffff('0x20e8')](_0x537b13['contexts'],{'id':_0x64a8e2[_0x49ffff('0x2707')]});});let _0x31c33e=null;_0x537b13[_0x58c7c3('0x1500')]&&(_0x31c33e=_0x283545()[_0x58c7c3('0x20e8')](_0x537b13['contexts'],{'name':_0x537b13[_0x58c7c3('0x1500')][_0x58c7c3('0x1f3b')]}));if(_0x31c33e&&!_0x283545()[_0x58c7c3('0xc5d')](_0x35a3ad,['id',_0x31c33e['id']])){const _0x226aa5=_0x283545()['find'](_0x537b13[_0x58c7c3('0xf3e')],{'id':_0x31c33e['id']});_0x226aa5[_0x58c7c3('0x3bf')]=![],_0x35a3ad['push'](_0x226aa5);}_0x537b13[_0x58c7c3('0xf3e')]=_0x35a3ad;});}})[_0x374ebd('0x1cb5')](function(_0x237bb1){const _0x14a60c=_0x374ebd;_0x42c097[_0x14a60c('0x5e8')]({'title':_0x237bb1[_0x14a60c('0x1b51')]?_0x14a60c('0x15d1')+_0x237bb1[_0x14a60c('0x1b51')]+'\x20-\x20'+_0x237bb1[_0x14a60c('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x237bb1['data']?JSON['stringify'](_0x237bb1[_0x14a60c('0x11fc')]):_0x237bb1[_0x14a60c('0x17df')]()});});function _0x5a13ca(){const _0x342bad=_0x374ebd;_0x537b13[_0x342bad('0x25be')]=[];const _0x32491b=[];_0x537b13[_0x342bad('0x1500')][_0x342bad('0x1d7')]&&_0x537b13[_0x342bad('0x1500')]['type'][_0x342bad('0xc2e')]()==='outbound'&&_0x537b13['goto'][_0x342bad('0x167b')]===_0x342bad('0x25fb')&&(_0x537b13['goto'][_0x342bad('0x1224')]=_0x5498dd[_0x342bad('0x277c')]?(_0x537b13[_0x342bad('0x1500')]['prefix']||'')+_0x342bad('0x124d')+_0x5498dd[_0x342bad('0x277c')]+'}':(_0x537b13[_0x342bad('0x1500')][_0x342bad('0x1f71')]||'')+_0x342bad('0x1275'),_0x5498dd['recordingFormat']!==_0x342bad('0x1dc')?_0x537b13[_0x342bad('0x1500')][_0x342bad('0x784')][_0x342bad('0x821')](_0x342bad('0x1609'))<0x0&&(_0x537b13[_0x342bad('0x1500')]['options']+=_0x342bad('0x1609')):_0x537b13[_0x342bad('0x1500')][_0x342bad('0x784')]=_0x537b13[_0x342bad('0x1500')][_0x342bad('0x784')][_0x342bad('0x10a4')](_0x342bad('0x1609'),''));if(_0x537b13[_0x342bad('0x1500')][_0x342bad('0x167b')]&&_0x537b13[_0x342bad('0x1500')][_0x342bad('0x167b')]==='custom'){}else switch((_0x537b13[_0x342bad('0x1500')][_0x342bad('0x8a5')]||_0x537b13[_0x342bad('0x1500')][_0x342bad('0x167b')])[_0x342bad('0xc2e')]()){case'set':_0x537b13['goto'][_0x342bad('0xd6b')]=_0x537b13[_0x342bad('0x1500')]['name']+'='+_0x537b13[_0x342bad('0x1500')][_0x342bad('0x49')];break;case _0x342bad('0x1d56'):break;default:_0x32491b[0x0]=_0x537b13[_0x342bad('0x1500')]['context'],_0x32491b[0x1]=_0x537b13['goto'][_0x342bad('0x1eb7')],_0x32491b[0x2]=_0x537b13[_0x342bad('0x1500')][_0x342bad('0x155b')],_0x537b13[_0x342bad('0x1500')][_0x342bad('0xd6b')]=_0x32491b[_0x342bad('0x185f')](',');}_0x14370a(_0x537b13[_0x342bad('0x1500')]);}function _0x14370a(_0x1e83fd){const _0x3b32ac=_0x374ebd;_0x9a5beb[_0x3b32ac('0x19d')](_0x1e83fd);}}const _0x1dcc02=_0xd4dc83;_0x5def46['$inject']=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),_0x34e79e('0x26ea'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x5def46(_0x3b50b6,_0x2ba8c1,_0x5643fb,_0x165de5,_0x2bea72,_0xb8e6a6,_0x4a42a2,_0x2b7deb){const _0x5a35f8=_0x34e79e,_0x4ca8e3=this;_0x4ca8e3[_0x5a35f8('0x9cb')]=_0x4a42a2['getCurrentUser'](),_0x4ca8e3[_0x5a35f8('0x25be')]=[],_0x4ca8e3[_0x5a35f8('0x14e4')]=_0x5a35f8('0xc6c')+(_0x165de5['appType']||_0x165de5['app'])[_0x5a35f8('0x25e6')](),_0x4ca8e3[_0x5a35f8('0x42c')]=angular['copy'](_0x165de5),_0x4ca8e3[_0x5a35f8('0xe28')]=_0x2b7deb,_0x4ca8e3[_0x5a35f8('0x1193')]={};if(_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')])switch(_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x167b')]?_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x167b')][_0x5a35f8('0xc2e')]():_0x4ca8e3['hangup']['app'][_0x5a35f8('0xc2e')]()){case _0x5a35f8('0x1d56'):break;case _0x5a35f8('0x5e1'):{const _0x3efed9=_0x4ca8e3['hangup']['appdata']['split'](',');_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x234b')]=_0x3efed9[0x0],_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x175b')]=_0x3efed9[0x1],_0x4ca8e3['hangup'][_0x5a35f8('0xf50')]=_0x3efed9[_0x5a35f8('0x845')](0x2,_0x3efed9[_0x5a35f8('0x2566')])[_0x5a35f8('0x185f')](',');}break;case'amazonlex':{const _0x18fdfa=_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')][_0x5a35f8('0x1497')](',');_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x27f2')]=_0x18fdfa[0x0],_0x4ca8e3['hangup'][_0x5a35f8('0x1b58')]=_0x18fdfa[0x1],_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xb70')]=_0x18fdfa[0x2],_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x4eb')]=_0x18fdfa[0x3],_0x4ca8e3[_0x5a35f8('0x42c')]['welcomemessage']=_0x18fdfa[_0x5a35f8('0x845')](0x4,_0x18fdfa[_0x5a35f8('0x2566')])[_0x5a35f8('0x185f')](',');}break;case _0x5a35f8('0x808'):{const _0x1d18cf=_0x4ca8e3['hangup'][_0x5a35f8('0xd6b')][_0x5a35f8('0x1497')](',');_0x4ca8e3[_0x5a35f8('0x42c')]['times']=isNaN(_0x1d18cf[0x0])?_0x1d18cf[0x0]:parseInt(_0x1d18cf[0x0],0xa),_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x16db')]=_0x1d18cf['slice'](0x1,_0x1d18cf['length'])[_0x5a35f8('0x185f')](',');}break;case'message':_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x16db')]=_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')];break;case'set':_0x4ca8e3[_0x5a35f8('0x42c')]['name']=_0x4ca8e3[_0x5a35f8('0x42c')]['appdata'][_0x5a35f8('0x1497')]('=')[0x0],_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x49')]=_0x4ca8e3['hangup'][_0x5a35f8('0xd6b')][_0x5a35f8('0x1497')]('=')[0x1];break;case _0x5a35f8('0x2631'):_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x1bf6')]=_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')];break;default:{const _0x194768=_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')][_0x5a35f8('0x1497')](',');_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0xd6b')]=_0x283545()[_0x5a35f8('0x213d')](_0x194768[0x0])?_0x194768[0x0]:isNaN(_0x194768[0x0])?_0x194768[0x0]:parseInt(_0x194768[0x0],0xa);}break;}else{}_0x4ca8e3[_0x5a35f8('0x42c')]['type']&&_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x1d7')][_0x5a35f8('0xc2e')]()===_0x5a35f8('0x1')&&_0x4ca8e3[_0x5a35f8('0x42c')]['appType'][_0x5a35f8('0xc2e')]()===_0x5a35f8('0x229c')&&(_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x1f71')]=_0x4ca8e3[_0x5a35f8('0x42c')]['phone']?_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x1224')]['split']('$')[0x0]:undefined,_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x2081')]=_0x4ca8e3['hangup']['callerID']?_0x5a35f8('0x1834')+_0x4ca8e3[_0x5a35f8('0x42c')][_0x5a35f8('0x8de')]:undefined);_0x4ca8e3['saveInboundRouteApp']=_0x4c799f,_0x4ca8e3['closeDialog']=_0x38a4ce;function _0x4c799f(){const _0x33cbe0=_0x5a35f8;_0x4ca8e3[_0x33cbe0('0x25be')]=[];const _0x11f700=[];_0x4ca8e3['hangup']['type']&&_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x1d7')][_0x33cbe0('0xc2e')]()===_0x33cbe0('0x1')&&_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x167b')]===_0x33cbe0('0x25fb')&&(_0x4ca8e3['hangup'][_0x33cbe0('0x1224')]=_0x2bea72[_0x33cbe0('0x277c')]?(_0x4ca8e3['hangup'][_0x33cbe0('0x1f71')]||'')+_0x33cbe0('0x124d')+_0x2bea72[_0x33cbe0('0x277c')]+'}':(_0x4ca8e3['hangup']['prefix']||'')+'${EXTEN}',_0x2bea72['recordingFormat']!==_0x33cbe0('0x1dc')?_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x784')][_0x33cbe0('0x821')](_0x33cbe0('0x1609'))<0x0&&(_0x4ca8e3['hangup'][_0x33cbe0('0x784')]+=_0x33cbe0('0x1609')):_0x4ca8e3[_0x33cbe0('0x42c')]['options']=_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x784')][_0x33cbe0('0x10a4')](_0x33cbe0('0x1609'),''));if(_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x167b')]&&_0x4ca8e3['hangup'][_0x33cbe0('0x167b')]===_0x33cbe0('0x1d56')){}else switch((_0x4ca8e3['hangup'][_0x33cbe0('0x8a5')]||_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x167b')])[_0x33cbe0('0xc2e')]()){case _0x33cbe0('0x3a6'):_0x4ca8e3[_0x33cbe0('0x42c')]['appdata']=_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x1a8d')]+'='+_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0x49')];break;case _0x33cbe0('0x1d56'):break;default:_0x11f700[0x0]=_0x4ca8e3['hangup'][_0x33cbe0('0xd6b')],_0x4ca8e3[_0x33cbe0('0x42c')][_0x33cbe0('0xd6b')]=_0x11f700[_0x33cbe0('0x185f')](',');}_0x38a4ce(_0x4ca8e3['hangup']);}function _0x38a4ce(_0x3d6d1b){const _0x46a14e=_0x5a35f8;_0x3b50b6[_0x46a14e('0x19d')](_0x3d6d1b);}}const _0x548a56=_0x5def46;_0x1fa6ad[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty','inboundrouteApp','inboundroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1fa6ad(_0x6d2c9a,_0x353888,_0x2608a7,_0x4813d5,_0x191326,_0x5ea003,_0x71ea4c,_0x492d79){const _0x2aaa79=_0x34e79e,_0x5604e6=this;_0x5604e6[_0x2aaa79('0x9cb')]=_0x71ea4c[_0x2aaa79('0x24cc')](),_0x5604e6[_0x2aaa79('0x25be')]=[],_0x5604e6[_0x2aaa79('0x14e4')]='VOICE.EDIT_'+(_0x4813d5[_0x2aaa79('0x167b')]||_0x4813d5[_0x2aaa79('0x8a5')])[_0x2aaa79('0x25e6')](),_0x5604e6[_0x2aaa79('0x1b6')]=angular['copy'](_0x4813d5),_0x5604e6[_0x2aaa79('0xe28')]=_0x492d79,_0x5604e6[_0x2aaa79('0x1193')]={};if(_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0xd6b')])switch(_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x167b')]?_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x167b')]['toLowerCase']():_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x8a5')]['toLowerCase']()){case _0x2aaa79('0x1d56'):break;case _0x2aaa79('0x5e1'):{const _0x146cb9=_0x5604e6['internaldial']['appdata'][_0x2aaa79('0x1497')](',');_0x5604e6['internaldial'][_0x2aaa79('0x234b')]=_0x146cb9[0x0],_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x175b')]=_0x146cb9[0x1],_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0xf50')]=_0x146cb9[_0x2aaa79('0x845')](0x2,_0x146cb9[_0x2aaa79('0x2566')])[_0x2aaa79('0x185f')](',');}break;case'amazonlex':{const _0xb10695=_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0xd6b')][_0x2aaa79('0x1497')](',');_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x27f2')]=_0xb10695[0x0],_0x5604e6[_0x2aaa79('0x1b6')]['secretaccesskey']=_0xb10695[0x1],_0x5604e6['internaldial'][_0x2aaa79('0xb70')]=_0xb10695[0x2],_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x4eb')]=_0xb10695[0x3],_0x5604e6['internaldial'][_0x2aaa79('0xf50')]=_0xb10695[_0x2aaa79('0x845')](0x4,_0xb10695[_0x2aaa79('0x2566')])[_0x2aaa79('0x185f')](',');}break;case _0x2aaa79('0x808'):{const _0x24b1cd=_0x5604e6['internaldial'][_0x2aaa79('0xd6b')][_0x2aaa79('0x1497')](',');_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x5fd')]=isNaN(_0x24b1cd[0x0])?_0x24b1cd[0x0]:parseInt(_0x24b1cd[0x0],0xa),_0x5604e6[_0x2aaa79('0x1b6')]['text']=_0x24b1cd[_0x2aaa79('0x845')](0x1,_0x24b1cd[_0x2aaa79('0x2566')])['join'](',');}break;case'message':_0x5604e6['internaldial']['text']=_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0xd6b')];break;case'set':_0x5604e6['internaldial']['name']=_0x5604e6[_0x2aaa79('0x1b6')]['appdata'][_0x2aaa79('0x1497')]('=')[0x0],_0x5604e6[_0x2aaa79('0x1b6')]['value']=_0x5604e6['internaldial']['appdata']['split']('=')[0x1];break;case _0x2aaa79('0x2631'):_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1bf6')]=_0x5604e6['internaldial'][_0x2aaa79('0xd6b')];break;default:{const _0x16b350=_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0xd6b')][_0x2aaa79('0x1497')](',');_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1e6a')]=_0x283545()[_0x2aaa79('0x213d')](_0x16b350[0x0])?_0x16b350[0x0]:isNaN(_0x16b350[0x0])?_0x16b350[0x0]:parseInt(_0x16b350[0x0],0xa),_0x5604e6['internaldial']['timeout']=_0x283545()[_0x2aaa79('0x213d')](_0x16b350[0x1])?_0x16b350[0x1]:isNaN(_0x16b350[0x1])?_0x16b350[0x1]:parseInt(_0x16b350[0x1],0xa),_0x5604e6['internaldial'][_0x2aaa79('0x784')]=_0x283545()[_0x2aaa79('0x213d')](_0x16b350[0x2])?_0x16b350[0x2]:isNaN(_0x16b350[0x2])?_0x16b350[0x2]:parseInt(_0x16b350[0x2],0xa),_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1672')]=_0x283545()['isEmpty'](_0x16b350[0x3])?_0x16b350[0x3]:isNaN(_0x16b350[0x3])?_0x16b350[0x3]:parseInt(_0x16b350[0x3],0xa);}break;}else{}_0x5604e6['internaldial']['type']&&_0x5604e6['internaldial'][_0x2aaa79('0x1d7')]['toLowerCase']()===_0x2aaa79('0x1')&&_0x5604e6['internaldial']['appType'][_0x2aaa79('0xc2e')]()===_0x2aaa79('0x229c')&&(_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1f71')]=_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1224')]?_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x1224')][_0x2aaa79('0x1497')]('$')[0x0]:undefined,_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x2081')]=_0x5604e6[_0x2aaa79('0x1b6')]['callerID']?_0x2aaa79('0x1834')+_0x5604e6[_0x2aaa79('0x1b6')][_0x2aaa79('0x8de')]:undefined);_0x5604e6[_0x2aaa79('0xa46')]=_0x4643e4,_0x5604e6['closeDialog']=_0x328d64;const _0x2b5891=[{'id':0xca,'role':_0x2aaa79('0x188b')},{'id':0xcb,'role':_0x2aaa79('0x23ab')}];let _0x6cee3c=null;_0x71ea4c[_0x2aaa79('0x1516')](_0x2aaa79('0xe23'))?_0x5ea003['user']['get']({'fields':_0x2aaa79('0x17a1'),'sort':_0x2aaa79('0x1a8d'),'nolimit':'true'})[_0x2aaa79('0x1714')]['then'](function(_0x28f124){const _0x1650b2=_0x2aaa79;_0x5604e6['users']=_0x28f124[_0x1650b2('0x25df')]||[];})['catch'](function(_0x35d07f){const _0x25e1a1=_0x2aaa79;_0x2608a7['error']({'title':_0x35d07f[_0x25e1a1('0x1b51')]?'API:'+_0x35d07f[_0x25e1a1('0x1b51')]+_0x25e1a1('0x1b0b')+_0x35d07f['statusText']:_0x25e1a1('0x111a'),'msg':_0x35d07f['data']?JSON[_0x25e1a1('0x1be0')](_0x35d07f[_0x25e1a1('0x11fc')]):_0x35d07f[_0x25e1a1('0x17df')]()});}):_0x5ea003[_0x2aaa79('0x1e6a')][_0x2aaa79('0x1335')]({'fields':'id,name,role','sort':_0x2aaa79('0x1a8d'),'nolimit':_0x2aaa79('0x1001')})[_0x2aaa79('0x1714')][_0x2aaa79('0x2788')](function(_0x434c36){const _0x2c3720=_0x2aaa79;_0x6cee3c=_0x434c36[_0x2c3720('0x25df')]||[];})[_0x2aaa79('0x2788')](function(){const _0x504ef6=_0x2aaa79,_0x4526cd=[];for(let _0x153bfe=0x0;_0x153bfe<_0x2b5891[_0x504ef6('0x2566')];_0x153bfe++){_0x4526cd[_0x504ef6('0x13e3')](_0x5ea003[_0x504ef6('0xec9')][_0x504ef6('0x1335')]({'userProfileId':_0x5604e6['currentUser'][_0x504ef6('0x237f')],'sectionId':_0x2b5891[_0x153bfe]['id']})[_0x504ef6('0x1714')]);}return _0x353888[_0x504ef6('0x1def')](_0x4526cd);})[_0x2aaa79('0x2788')](function(_0x229170){const _0x2123d4=_0x2aaa79,_0x92fc8f=_0x283545()['map'](_0x229170,function(_0x1a7423){const _0x62c882=a0_0x14e7;return _0x1a7423&&_0x1a7423[_0x62c882('0x25df')]?_0x1a7423[_0x62c882('0x25df')][0x0]:null;}),_0x2ac969=[];for(let _0x5a1b5f=0x0;_0x5a1b5f<_0x2b5891[_0x2123d4('0x2566')];_0x5a1b5f++){const _0x7c1329=_0x283545()[_0x2123d4('0x20e8')](_0x92fc8f,['sectionId',_0x2b5891[_0x5a1b5f]['id']]);if(_0x7c1329){if(!_0x7c1329['autoAssociation'])_0x2ac969[_0x2123d4('0x13e3')](_0x5ea003[_0x2123d4('0x1050')][_0x2123d4('0x1335')]({'sectionId':_0x7c1329['id']})[_0x2123d4('0x1714')]);else{const _0x1ae9ef=[];_0x6cee3c[_0x2123d4('0x1534')](function(_0x3892bc){const _0x4a3543=_0x2123d4;_0x3892bc[_0x4a3543('0xb34')]===_0x2b5891[_0x5a1b5f][_0x4a3543('0xb34')]&&_0x1ae9ef['push'](_0x3892bc);}),_0x2ac969[_0x2123d4('0x13e3')]({'rows':_0x1ae9ef,'count':_0x1ae9ef['length']});}}}return _0x353888[_0x2123d4('0x1def')](_0x2ac969);})[_0x2aaa79('0x2788')](function(_0x2ebcc0){const _0x13b388=_0x2aaa79,_0x24521c=[];let _0x534f9b=null;_0x5604e6[_0x13b388('0x1b6')]&&(_0x534f9b=_0x283545()[_0x13b388('0x20e8')](_0x6cee3c,{'name':_0x5604e6[_0x13b388('0x1b6')][_0x13b388('0x1e6a')]}));for(let _0xaecd81=0x0;_0xaecd81<_0x2ebcc0[_0x13b388('0x2566')];_0xaecd81++){const _0x501caf=_0x2ebcc0[_0xaecd81][_0x13b388('0x25df')]||[];_0x501caf[_0x13b388('0x1534')](function(_0x55445c){const _0x3aaac5=_0x13b388;_0x24521c[_0x3aaac5('0x13e3')](_0x55445c);});}_0x534f9b&&!_0x283545()[_0x13b388('0xc5d')](_0x24521c,[_0x13b388('0x2707'),_0x534f9b['id']])&&_0x6cee3c[_0x13b388('0x1534')](function(_0x33c9a1){const _0x49431=_0x13b388;_0x33c9a1['id']===_0x534f9b['id']&&(_0x33c9a1['canSelect']=![],_0x24521c[_0x49431('0x13e3')](_0x33c9a1));}),_0x5604e6['users']=_0x24521c;})[_0x2aaa79('0x1cb5')](function(_0x48a39b){const _0x42f132=_0x2aaa79;_0x2608a7['error']({'title':_0x48a39b[_0x42f132('0x1b51')]?'API:'+_0x48a39b[_0x42f132('0x1b51')]+_0x42f132('0x1b0b')+_0x48a39b[_0x42f132('0x22ce')]:_0x42f132('0x245d'),'msg':_0x48a39b[_0x42f132('0x11fc')]?JSON['stringify'](_0x48a39b[_0x42f132('0x11fc')]):_0x48a39b[_0x42f132('0x17df')]()});});function _0x4643e4(){const _0x18fc63=_0x2aaa79;_0x5604e6[_0x18fc63('0x25be')]=[];const _0x551eae=[];_0x5604e6['internaldial']['type']&&_0x5604e6['internaldial'][_0x18fc63('0x1d7')][_0x18fc63('0xc2e')]()==='outbound'&&_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x167b')]===_0x18fc63('0x25fb')&&(_0x5604e6[_0x18fc63('0x1b6')]['phone']=_0x191326[_0x18fc63('0x277c')]?(_0x5604e6['internaldial']['prefix']||'')+_0x18fc63('0x124d')+_0x191326['cutdigits']+'}':(_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x1f71')]||'')+'${EXTEN}',_0x191326[_0x18fc63('0x801')]!==_0x18fc63('0x1dc')?_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x784')][_0x18fc63('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5604e6[_0x18fc63('0x1b6')]['options']+='U(xcally-mixmonitor-context)'):_0x5604e6['internaldial'][_0x18fc63('0x784')]=_0x5604e6[_0x18fc63('0x1b6')]['options'][_0x18fc63('0x10a4')](_0x18fc63('0x1609'),''));if(_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x167b')]&&_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x167b')]===_0x18fc63('0x1d56')){}else switch((_0x5604e6[_0x18fc63('0x1b6')]['app']||_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x167b')])[_0x18fc63('0xc2e')]()){case _0x18fc63('0x3a6'):_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0xd6b')]=_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x1a8d')]+'='+_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x49')];break;case _0x18fc63('0x1d56'):break;default:_0x551eae[0x0]=_0x5604e6[_0x18fc63('0x1b6')]['user'],_0x551eae[0x1]=_0x5604e6['internaldial'][_0x18fc63('0x24e4')],_0x551eae[0x2]=_0x5604e6[_0x18fc63('0x1b6')][_0x18fc63('0x784')],_0x551eae[0x3]=_0x5604e6['internaldial'][_0x18fc63('0x1672')],_0x5604e6['internaldial'][_0x18fc63('0xd6b')]=_0x551eae[_0x18fc63('0x185f')](',');}_0x328d64(_0x5604e6[_0x18fc63('0x1b6')]);}function _0x328d64(_0x47ee6f){const _0x2deba0=_0x2aaa79;_0x6d2c9a[_0x2deba0('0x19d')](_0x47ee6f);}}const _0x15f11d=_0x1fa6ad;_0xa1b28a[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),'IndexFactory','interval',_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xa1b28a(_0x183a9f,_0x245dff,_0x598eb7,_0x5a8f98,_0x4b1b2e,_0x286c25,_0x654fc7,_0x266e9e,_0xd5cb29,_0x4d4c61){const _0x4a7a86=_0x34e79e,_0x513418=this;_0x513418[_0x4a7a86('0x9cb')]=_0xd5cb29[_0x4a7a86('0x24cc')](),_0x513418[_0x4a7a86('0x25be')]=[],_0x513418[_0x4a7a86('0x14e4')]=_0x4a7a86('0x2f9'),_0x513418[_0x4a7a86('0x2630')]=angular[_0x4a7a86('0x2669')](_0x4b1b2e),_0x513418[_0x4a7a86('0xec5')]=_0x286c25,_0x513418[_0x4a7a86('0x1f7c')]=![],_0x513418[_0x4a7a86('0x2512')]=['always','custom',_0x4a7a86('0x4b2')],_0x513418[_0x4a7a86('0xe28')]=_0x4d4c61,_0x513418[_0x4a7a86('0x1eb8')]=_0x5a8f98[_0x4a7a86('0xec1')](),_0x513418[_0x4a7a86('0x323')]=_0x5a8f98[_0x4a7a86('0x1383')](),_0x513418['monthName']=_0x5a8f98[_0x4a7a86('0xc35')](),_0x513418[_0x4a7a86('0x1d59')]=_0x5a8f98[_0x4a7a86('0x1b79')]();if(!_0x513418[_0x4a7a86('0x2630')])_0x513418[_0x4a7a86('0x2630')]={'interval':_0x4a7a86('0x2191')},_0x513418[_0x4a7a86('0x1d7')]=_0x4a7a86('0xc8f'),_0x513418[_0x4a7a86('0x14e4')]=_0x4a7a86('0xbee'),_0x513418[_0x4a7a86('0x1f7c')]=!![];else{if(_0x513418[_0x4a7a86('0x2630')]['interval']!==_0x4a7a86('0x2191')){_0x513418['type']=_0x4a7a86('0x1d56');const _0x445f55=_0x513418[_0x4a7a86('0x2630')][_0x4a7a86('0x2630')][_0x4a7a86('0x1497')](','),_0x5e4a84=_0x445f55[0x0],_0x30c9c8=_0x445f55[0x1],_0x3fe3d9=_0x445f55[0x2],_0x1a9dac=_0x445f55[0x3];if(_0x5e4a84!=='*'){const _0x2a0131=_0x5e4a84['split']('-')[0x0],_0x26deca=_0x5e4a84[_0x4a7a86('0x1497')]('-')[0x1];let _0x3c6dc7;_0x3c6dc7=new Date(),_0x3c6dc7[_0x4a7a86('0x26f3')](Number(_0x2a0131[_0x4a7a86('0x1497')](':')[0x0])),_0x3c6dc7[_0x4a7a86('0x18d')](Number(_0x2a0131[_0x4a7a86('0x1497')](':')[0x1])),_0x513418[_0x4a7a86('0x9c0')]=_0x3c6dc7,_0x3c6dc7=new Date(),_0x3c6dc7['setHours'](Number(_0x26deca['split'](':')[0x0])),_0x3c6dc7['setMinutes'](Number(_0x26deca['split'](':')[0x1])),_0x513418[_0x4a7a86('0x4a7')]=_0x3c6dc7;}_0x30c9c8!=='*'&&(_0x513418['dayOfWeekFrom']=_0x30c9c8[_0x4a7a86('0x1497')]('-')[0x0],_0x513418[_0x4a7a86('0x6c2')]=_0x30c9c8[_0x4a7a86('0x1497')]('-')[0x1]),_0x3fe3d9!=='*'&&(_0x513418[_0x4a7a86('0x1d91')]=_0x3fe3d9[_0x4a7a86('0x1497')]('-')[0x0],_0x513418[_0x4a7a86('0x883')]=_0x3fe3d9['split']('-')[0x1]),_0x1a9dac!=='*'&&(_0x513418[_0x4a7a86('0x1317')]=_0x1a9dac[_0x4a7a86('0x1497')]('-')[0x0],_0x513418[_0x4a7a86('0x3dc')]=_0x1a9dac[_0x4a7a86('0x1497')]('-')[0x1]);}else _0x513418[_0x4a7a86('0x1d7')]='always';}_0x183a9f[_0x4a7a86('0x4b9')]['id']&&!_0x513418[_0x4a7a86('0x2630')][_0x4a7a86('0x193')]&&(_0x513418[_0x4a7a86('0x2630')][_0x4a7a86('0x20d0')]=_0x183a9f[_0x4a7a86('0x4b9')]['id']);_0x513418['interval']['IntervalId']&&_0x513418[_0x4a7a86('0x2630')][_0x4a7a86('0x193')]&&(_0x513418['type']=_0x4a7a86('0x4b2'));_0x513418[_0x4a7a86('0x267f')]=_0x4597ce,_0x513418[_0x4a7a86('0x2791')]=_0x3ae1eb,_0x513418[_0x4a7a86('0xca7')]=_0x2696fc;_0x513418[_0x4a7a86('0x2630')]['application']&&(_0xd5cb29[_0x4a7a86('0x1516')](_0x4a7a86('0xe23'))?_0x266e9e[_0x4a7a86('0x2630')][_0x4a7a86('0x1335')]({'fields':_0x4a7a86('0x27dc'),'IntervalId':'null','nolimit':!![]})[_0x4a7a86('0x1714')][_0x4a7a86('0x2788')](function(_0x5cadb0){const _0x37cf1f=_0x4a7a86;_0x513418[_0x37cf1f('0xec5')]=_0x5cadb0[_0x37cf1f('0x25df')]||[];})['catch'](function(_0x287a01){const _0x791886=_0x4a7a86;_0x654fc7[_0x791886('0x5e8')]({'title':_0x287a01[_0x791886('0x1b51')]?_0x791886('0x15d1')+_0x287a01[_0x791886('0x1b51')]+_0x791886('0x1b0b')+_0x287a01[_0x791886('0x22ce')]:_0x791886('0x2151'),'msg':_0x287a01[_0x791886('0x11fc')]?JSON[_0x791886('0x1be0')](_0x287a01[_0x791886('0x11fc')]):_0x287a01[_0x791886('0x17df')]()});}):_0x266e9e[_0x4a7a86('0x2630')][_0x4a7a86('0x1335')]({'fields':_0x4a7a86('0x27dc'),'IntervalId':_0x4a7a86('0x954'),'nolimit':!![]})[_0x4a7a86('0x1714')][_0x4a7a86('0x2788')](function(_0x88377f){const _0x2c0b0c=_0x4a7a86;_0x513418[_0x2c0b0c('0xec5')]=_0x88377f['rows']||[];})[_0x4a7a86('0x2788')](function(){const _0x1356c9=_0x4a7a86;return _0x266e9e['userProfileSection']['get']({'userProfileId':_0x513418['currentUser'][_0x1356c9('0x237f')],'sectionId':0x3ec})[_0x1356c9('0x1714')];})['then'](function(_0x39b46c){const _0x2df71e=_0x4a7a86,_0x19ba4c=_0x39b46c&&_0x39b46c[_0x2df71e('0x25df')]?_0x39b46c[_0x2df71e('0x25df')][0x0]:null;if(!_0x19ba4c)_0x513418['intervals']=[];else{if(!_0x19ba4c[_0x2df71e('0x1c0a')])return _0x266e9e[_0x2df71e('0x1050')][_0x2df71e('0x1335')]({'sectionId':_0x19ba4c['id']})[_0x2df71e('0x1714')][_0x2df71e('0x2788')](function(_0x5b8aba){const _0x417d56=_0x2df71e,_0x287034=_0x5b8aba&&_0x5b8aba['rows']?_0x5b8aba[_0x417d56('0x25df')]:[],_0x417f17=[];let _0x16f5a3=null;_0x513418['interval']&&(_0x16f5a3=_0x283545()[_0x417d56('0x20e8')](_0x513418[_0x417d56('0xec5')],{'name':_0x513418[_0x417d56('0x2630')][_0x417d56('0x20d0')]})),_0x16f5a3&&!_0x283545()[_0x417d56('0xc5d')](_0x287034,[_0x417d56('0x2707'),_0x16f5a3['id']])&&_0x513418[_0x417d56('0xec5')][_0x417d56('0x1534')](function(_0x5a08ff){const _0x4e86a2=_0x417d56;_0x5a08ff['id']===_0x16f5a3['id']&&(_0x5a08ff[_0x4e86a2('0x3bf')]=![],_0x417f17[_0x4e86a2('0x13e3')](_0x5a08ff));}),_0x513418[_0x417d56('0xec5')]=_0x417f17;});}})[_0x4a7a86('0x1cb5')](function(_0x29be2e){const _0x52ba0b=_0x4a7a86;_0x654fc7['error']({'title':_0x29be2e[_0x52ba0b('0x1b51')]?_0x52ba0b('0x15d1')+_0x29be2e[_0x52ba0b('0x1b51')]+_0x52ba0b('0x1b0b')+_0x29be2e[_0x52ba0b('0x22ce')]:_0x52ba0b('0x2151'),'msg':_0x29be2e[_0x52ba0b('0x11fc')]?JSON['stringify'](_0x29be2e[_0x52ba0b('0x11fc')]):_0x29be2e[_0x52ba0b('0x17df')]()});}));function _0x378938(){const _0x516beb=_0x4a7a86;switch(_0x513418['type']){case _0x516beb('0xc8f'):case'list':return _0x516beb('0x2191');case'custom':{const _0x4fd05c=[];if(_0x513418[_0x516beb('0x9c0')]!=='*'&&_0x513418[_0x516beb('0x9c0')]&&_0x513418[_0x516beb('0x4a7')]){const _0x57b6a1=(_0x513418[_0x516beb('0x9c0')]['getHours']()<0xa?'0':'')+_0x513418[_0x516beb('0x9c0')][_0x516beb('0x130a')]()+':'+((_0x513418[_0x516beb('0x9c0')][_0x516beb('0x2649')]()<0xa?'0':'')+_0x513418[_0x516beb('0x9c0')][_0x516beb('0x2649')]()),_0x2e8fe0=(_0x513418['timeRangeTo']['getHours']()<0xa?'0':'')+_0x513418['timeRangeTo'][_0x516beb('0x130a')]()+':'+((_0x513418['timeRangeTo'][_0x516beb('0x2649')]()<0xa?'0':'')+_0x513418['timeRangeTo'][_0x516beb('0x2649')]());_0x4fd05c['push'](_0x57b6a1+'-'+_0x2e8fe0);}else _0x4fd05c[_0x516beb('0x13e3')]('*');return _0x513418[_0x516beb('0x240c')]?_0x513418['dayOfWeekTo']?_0x4fd05c[_0x516beb('0x13e3')](_0x513418[_0x516beb('0x240c')]+'-'+_0x513418[_0x516beb('0x6c2')]):_0x4fd05c[_0x516beb('0x13e3')](_0x513418[_0x516beb('0x240c')]):_0x4fd05c['push']('*'),_0x513418[_0x516beb('0x1d91')]?_0x513418[_0x516beb('0x883')]?_0x4fd05c['push'](_0x513418['monthDayFrom']+'-'+_0x513418[_0x516beb('0x883')]):_0x4fd05c[_0x516beb('0x13e3')](_0x513418[_0x516beb('0x1d91')]):_0x4fd05c['push']('*'),_0x513418[_0x516beb('0x1317')]?_0x513418[_0x516beb('0x3dc')]?_0x4fd05c[_0x516beb('0x13e3')](_0x513418[_0x516beb('0x1317')]+'-'+_0x513418[_0x516beb('0x3dc')]):_0x4fd05c[_0x516beb('0x13e3')](_0x513418[_0x516beb('0x1317')]):_0x4fd05c[_0x516beb('0x13e3')]('*'),_0x4fd05c['join']();}}}function _0x4597ce(){const _0xb5ff8f=_0x4a7a86;_0x513418['errors']=[],_0x513418[_0xb5ff8f('0x2630')][_0xb5ff8f('0x2630')]=_0x378938(),_0x266e9e[_0xb5ff8f('0x2630')][_0xb5ff8f('0xbd0')](_0x513418[_0xb5ff8f('0x2630')])['$promise']['then'](function(_0x366e1b){const _0x54aad5=_0xb5ff8f;_0x513418[_0x54aad5('0xec5')]['push'](_0x366e1b),_0x654fc7[_0x54aad5('0x173b')]({'title':_0x54aad5('0x1146'),'msg':_0x513418['interval'][_0x54aad5('0x1a8d')]?_0x513418[_0x54aad5('0x2630')][_0x54aad5('0x1a8d')]+_0x54aad5('0x1e4a'):''}),_0x2696fc();})[_0xb5ff8f('0x1cb5')](function(_0x222f98){const _0x179e88=_0xb5ff8f;console[_0x179e88('0x5e8')](_0x222f98),_0x513418['errors']=_0x222f98[_0x179e88('0x11fc')][_0x179e88('0x25be')]||[{'message':_0x222f98[_0x179e88('0x17df')](),'type':_0x179e88('0x94a')}];});}function _0x3ae1eb(){const _0x541992=_0x4a7a86;_0x513418['errors']=[],_0x513418[_0x541992('0x2630')][_0x541992('0x2630')]=_0x378938(),_0x513418[_0x541992('0x2630')][_0x541992('0x193')]?(_0x513418['type']!=='list'&&(_0x513418[_0x541992('0x2630')][_0x541992('0x20d0')]=null),_0x2696fc(_0x513418['interval'])):_0x266e9e['interval'][_0x541992('0x2740')]({'id':_0x513418[_0x541992('0x2630')]['id']},_0x513418['interval'])[_0x541992('0x1714')]['then'](function(_0x441d32){const _0x5414ad=_0x541992,_0x2763f2=_0x283545()[_0x5414ad('0x20e8')](_0x513418[_0x5414ad('0xec5')],{'id':_0x441d32['id']});_0x2763f2&&_0x283545()[_0x5414ad('0x2503')](_0x2763f2,_0x441d32),_0x654fc7[_0x5414ad('0x173b')]({'title':'Interval\x20properly\x20saved!','msg':_0x5414ad('0x14f1')}),_0x2696fc();})['catch'](function(_0x442ccc){const _0xaae52e=_0x541992;console[_0xaae52e('0x5e8')](_0x442ccc),_0x513418[_0xaae52e('0x25be')]=_0x442ccc[_0xaae52e('0x11fc')][_0xaae52e('0x25be')]||[{'message':_0x442ccc[_0xaae52e('0x17df')](),'type':_0xaae52e('0xc2d')}];});}function _0x2696fc(_0x48cfcb){const _0x1f6c3a=_0x4a7a86;_0x245dff[_0x1f6c3a('0x19d')](_0x48cfcb);}}const _0x38b0f0=_0xa1b28a;_0x40a467[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty','inboundrouteApp',_0x34e79e('0x26ea'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x40a467(_0x4f43bc,_0x3f6f3a,_0x192b52,_0x4c41ad,_0xfd107a,_0x4a8726,_0xcb2736,_0x1cfc91){const _0x173703=_0x34e79e,_0x4a9de5=this;_0x4a9de5[_0x173703('0x9cb')]=_0xcb2736[_0x173703('0x24cc')](),_0x4a9de5[_0x173703('0x25be')]=[],_0x4a9de5[_0x173703('0x14e4')]=_0x173703('0xc6c')+(_0x4c41ad[_0x173703('0x167b')]||_0x4c41ad[_0x173703('0x8a5')])[_0x173703('0x25e6')](),_0x4a9de5[_0x173703('0x211')]=angular['copy'](_0x4c41ad),_0x4a9de5[_0x173703('0xe28')]=_0x1cfc91,_0x4a9de5['hasModulePermissions']={};if(_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')])switch(_0x4a9de5[_0x173703('0x211')][_0x173703('0x167b')]?_0x4a9de5[_0x173703('0x211')][_0x173703('0x167b')]['toLowerCase']():_0x4a9de5[_0x173703('0x211')][_0x173703('0x8a5')][_0x173703('0xc2e')]()){case _0x173703('0x1d56'):break;case _0x173703('0x5e1'):{const _0x1a60fa=_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')]['split'](',');_0x4a9de5[_0x173703('0x211')][_0x173703('0x234b')]=_0x1a60fa[0x0],_0x4a9de5['playback'][_0x173703('0x175b')]=_0x1a60fa[0x1],_0x4a9de5[_0x173703('0x211')][_0x173703('0xf50')]=_0x1a60fa[_0x173703('0x845')](0x2,_0x1a60fa[_0x173703('0x2566')])[_0x173703('0x185f')](',');}break;case'amazonlex':{const _0x192fd5=_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')]['split'](',');_0x4a9de5[_0x173703('0x211')]['accesskeyid']=_0x192fd5[0x0],_0x4a9de5[_0x173703('0x211')][_0x173703('0x1b58')]=_0x192fd5[0x1],_0x4a9de5['playback']['lexregion']=_0x192fd5[0x2],_0x4a9de5[_0x173703('0x211')][_0x173703('0x4eb')]=_0x192fd5[0x3],_0x4a9de5['playback'][_0x173703('0xf50')]=_0x192fd5[_0x173703('0x845')](0x4,_0x192fd5[_0x173703('0x2566')])[_0x173703('0x185f')](',');}break;case _0x173703('0x808'):{const _0x39123d=_0x4a9de5[_0x173703('0x211')]['appdata'][_0x173703('0x1497')](',');_0x4a9de5[_0x173703('0x211')]['times']=isNaN(_0x39123d[0x0])?_0x39123d[0x0]:parseInt(_0x39123d[0x0],0xa),_0x4a9de5[_0x173703('0x211')][_0x173703('0x16db')]=_0x39123d[_0x173703('0x845')](0x1,_0x39123d[_0x173703('0x2566')])['join'](',');}break;case _0x173703('0x15e2'):_0x4a9de5[_0x173703('0x211')][_0x173703('0x16db')]=_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')];break;case _0x173703('0x3a6'):_0x4a9de5[_0x173703('0x211')][_0x173703('0x1a8d')]=_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')]['split']('=')[0x0],_0x4a9de5['playback'][_0x173703('0x49')]=_0x4a9de5[_0x173703('0x211')][_0x173703('0xd6b')][_0x173703('0x1497')]('=')[0x1];break;case _0x173703('0x2631'):_0x4a9de5['playback'][_0x173703('0x1bf6')]=_0x4a9de5['playback'][_0x173703('0xd6b')];break;default:{const _0x35954a=_0x4a9de5['playback'][_0x173703('0xd6b')][_0x173703('0x1497')](',');_0x4a9de5[_0x173703('0x211')]['appdata']=_0x283545()[_0x173703('0x213d')](_0x35954a[0x0])?_0x35954a[0x0]:isNaN(_0x35954a[0x0])?_0x35954a[0x0]:parseInt(_0x35954a[0x0],0xa),_0x4a9de5[_0x173703('0x211')][_0x173703('0x784')]=_0x283545()[_0x173703('0x213d')](_0x35954a[0x1])?_0x35954a[0x1]:isNaN(_0x35954a[0x1])?_0x35954a[0x1]:parseInt(_0x35954a[0x1],0xa);}break;}else{}_0x4a9de5[_0x173703('0x211')][_0x173703('0x1d7')]&&_0x4a9de5[_0x173703('0x211')]['type']['toLowerCase']()===_0x173703('0x1')&&_0x4a9de5[_0x173703('0x211')][_0x173703('0x167b')]['toLowerCase']()===_0x173703('0x229c')&&(_0x4a9de5[_0x173703('0x211')][_0x173703('0x1f71')]=_0x4a9de5[_0x173703('0x211')][_0x173703('0x1224')]?_0x4a9de5[_0x173703('0x211')][_0x173703('0x1224')]['split']('$')[0x0]:undefined,_0x4a9de5[_0x173703('0x211')][_0x173703('0x2081')]=_0x4a9de5[_0x173703('0x211')]['callerID']?_0x173703('0x1834')+_0x4a9de5['playback'][_0x173703('0x8de')]:undefined);_0x4a9de5[_0x173703('0xa46')]=_0x4a90e1,_0x4a9de5[_0x173703('0xca7')]=_0x1e100a,_0xcb2736[_0x173703('0x1516')](_0x173703('0xe23'))?_0x4a8726[_0x173703('0x216d')]['get']({'fields':_0x173703('0x1480'),'sort':_0x173703('0x1a8d'),'nolimit':_0x173703('0x1001')})[_0x173703('0x1714')][_0x173703('0x2788')](function(_0xa2f9b5){const _0x4cb9da=_0x173703;_0x4a9de5[_0x4cb9da('0x16ca')]=_0xa2f9b5[_0x4cb9da('0x25df')]||[];})[_0x173703('0x1cb5')](function(_0x3ea57a){const _0x3e2b0c=_0x173703;_0x192b52[_0x3e2b0c('0x5e8')]({'title':_0x3ea57a['status']?_0x3e2b0c('0x15d1')+_0x3ea57a['status']+_0x3e2b0c('0x1b0b')+_0x3ea57a[_0x3e2b0c('0x22ce')]:'SYSTEM:GET_SOUNDS','msg':_0x3ea57a[_0x3e2b0c('0x11fc')]?JSON[_0x3e2b0c('0x1be0')](_0x3ea57a[_0x3e2b0c('0x11fc')]):_0x3ea57a[_0x3e2b0c('0x17df')]()});}):_0x4a8726['sound'][_0x173703('0x1335')]({'fields':_0x173703('0x1480'),'sort':_0x173703('0x1a8d'),'nolimit':_0x173703('0x1001')})[_0x173703('0x1714')][_0x173703('0x2788')](function(_0x4151ce){const _0x16c592=_0x173703;_0x4a9de5[_0x16c592('0x16ca')]=_0x4151ce[_0x16c592('0x25df')]||[];})[_0x173703('0x2788')](function(){const _0x4b7be7=_0x173703;return _0x4a8726[_0x4b7be7('0xec9')][_0x4b7be7('0x1335')]({'userProfileId':_0x4a9de5['currentUser'][_0x4b7be7('0x237f')],'sectionId':0x3ef})[_0x4b7be7('0x1714')];})['then'](function(_0x859907){const _0x4b7cce=_0x173703,_0xcb96d6=_0x859907&&_0x859907['rows']?_0x859907[_0x4b7cce('0x25df')][0x0]:null;if(!_0xcb96d6){const _0x35cf96=[];let _0x497df4=null;_0x4a9de5[_0x4b7cce('0x211')]&&(_0x497df4=_0x283545()[_0x4b7cce('0x20e8')](_0x4a9de5['sounds'],{'save_name':_0x4a9de5[_0x4b7cce('0x211')]['sound']}));for(let _0x2c75d2=0x0;_0x2c75d2<_0x4a9de5[_0x4b7cce('0x16ca')][_0x4b7cce('0x2566')];_0x2c75d2++){_0x497df4&&_0x4a9de5[_0x4b7cce('0x16ca')][_0x2c75d2]['id']===_0x497df4['id']&&(_0x4a9de5['sounds'][_0x2c75d2][_0x4b7cce('0x3bf')]=![],_0x35cf96[_0x4b7cce('0x13e3')](_0x4a9de5[_0x4b7cce('0x16ca')][_0x2c75d2]));}_0x4a9de5['sounds']=_0x35cf96;}else{if(!_0xcb96d6[_0x4b7cce('0x1c0a')])return _0x4a8726[_0x4b7cce('0x1050')][_0x4b7cce('0x1335')]({'sectionId':_0xcb96d6['id']})[_0x4b7cce('0x1714')]['then'](function(_0x2cca2d){const _0x46f9da=_0x4b7cce,_0x3c1d63=_0x283545()['map'](_0x2cca2d['rows'],function(_0x2204ff){const _0x5085c0=a0_0x14e7;return _0x283545()[_0x5085c0('0x20e8')](_0x4a9de5[_0x5085c0('0x16ca')],{'id':_0x2204ff[_0x5085c0('0x2707')]});});let _0xd4e50=null;_0x4a9de5[_0x46f9da('0x211')]&&(_0xd4e50=_0x283545()[_0x46f9da('0x20e8')](_0x4a9de5[_0x46f9da('0x16ca')],{'save_name':_0x4a9de5[_0x46f9da('0x211')][_0x46f9da('0x216d')]}));if(_0xd4e50&&!_0x283545()['some'](_0x3c1d63,['id',_0xd4e50['id']])){const _0x3ae3a6=_0x283545()[_0x46f9da('0x20e8')](_0x4a9de5[_0x46f9da('0x16ca')],{'id':_0xd4e50['id']});_0x3ae3a6['canSelect']=![],_0x3c1d63[_0x46f9da('0x13e3')](_0x3ae3a6);}_0x4a9de5['sounds']=_0x3c1d63;});}})['catch'](function(_0x5e84ba){const _0x5bd793=_0x173703;_0x192b52[_0x5bd793('0x5e8')]({'title':_0x5e84ba[_0x5bd793('0x1b51')]?_0x5bd793('0x15d1')+_0x5e84ba['status']+_0x5bd793('0x1b0b')+_0x5e84ba[_0x5bd793('0x22ce')]:_0x5bd793('0x19a8'),'msg':_0x5e84ba[_0x5bd793('0x11fc')]?JSON[_0x5bd793('0x1be0')](_0x5e84ba['data']):_0x5e84ba[_0x5bd793('0x17df')]()});});function _0x4a90e1(){const _0x4c407d=_0x173703;_0x4a9de5[_0x4c407d('0x25be')]=[];const _0x3ffdd1=[];_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x1d7')]&&_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x1d7')]['toLowerCase']()===_0x4c407d('0x1')&&_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x167b')]===_0x4c407d('0x25fb')&&(_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x1224')]=_0xfd107a[_0x4c407d('0x277c')]?(_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x1f71')]||'')+_0x4c407d('0x124d')+_0xfd107a[_0x4c407d('0x277c')]+'}':(_0x4a9de5['playback'][_0x4c407d('0x1f71')]||'')+'${EXTEN}',_0xfd107a['recordingFormat']!==_0x4c407d('0x1dc')?_0x4a9de5['playback'][_0x4c407d('0x784')][_0x4c407d('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4a9de5['playback']['options']+=_0x4c407d('0x1609')):_0x4a9de5['playback'][_0x4c407d('0x784')]=_0x4a9de5[_0x4c407d('0x211')]['options']['replace'](_0x4c407d('0x1609'),''));if(_0x4a9de5[_0x4c407d('0x211')]['appType']&&_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x167b')]==='custom'){}else switch((_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x8a5')]||_0x4a9de5['playback'][_0x4c407d('0x167b')])['toLowerCase']()){case _0x4c407d('0x3a6'):_0x4a9de5[_0x4c407d('0x211')]['appdata']=_0x4a9de5['playback'][_0x4c407d('0x1a8d')]+'='+_0x4a9de5['playback'][_0x4c407d('0x49')];break;case _0x4c407d('0x1d56'):break;default:_0x3ffdd1[0x0]=_0x4a9de5[_0x4c407d('0x211')]['appdata'],_0x3ffdd1[0x1]=_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0x784')],_0x4a9de5[_0x4c407d('0x211')][_0x4c407d('0xd6b')]=_0x3ffdd1[_0x4c407d('0x185f')](',');}_0x1e100a(_0x4a9de5[_0x4c407d('0x211')]);}function _0x1e100a(_0x4dbc0e){const _0x37c3e9=_0x173703;_0x4f43bc[_0x37c3e9('0x19d')](_0x4dbc0e);}}const _0x3bb484=_0x40a467;_0x102263['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x61b'),'inboundroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x102263(_0x25b911,_0x5acbc5,_0x852c70,_0x3644e2,_0x463354,_0x21d6fd,_0x141f88,_0x15c2b1){const _0x25f1e7=_0x34e79e,_0x5728cc=this;_0x5728cc[_0x25f1e7('0x9cb')]=_0x141f88[_0x25f1e7('0x24cc')](),_0x5728cc[_0x25f1e7('0x25be')]=[],_0x5728cc[_0x25f1e7('0x14e4')]='VOICE.EDIT_'+(_0x3644e2['appType']||_0x3644e2[_0x25f1e7('0x8a5')])[_0x25f1e7('0x25e6')](),_0x5728cc[_0x25f1e7('0x1ab4')]=angular[_0x25f1e7('0x2669')](_0x3644e2),_0x5728cc[_0x25f1e7('0xe28')]=_0x15c2b1,_0x5728cc[_0x25f1e7('0x1193')]={};if(_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xd6b')])switch(_0x5728cc[_0x25f1e7('0x1ab4')]['appType']?_0x5728cc[_0x25f1e7('0x1ab4')]['appType'][_0x25f1e7('0xc2e')]():_0x5728cc['queue'][_0x25f1e7('0x8a5')][_0x25f1e7('0xc2e')]()){case _0x25f1e7('0x1d56'):break;case _0x25f1e7('0x5e1'):{const _0x79c937=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xd6b')]['split'](',');_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x234b')]=_0x79c937[0x0],_0x5728cc['queue'][_0x25f1e7('0x175b')]=_0x79c937[0x1],_0x5728cc[_0x25f1e7('0x1ab4')]['welcomemessage']=_0x79c937[_0x25f1e7('0x845')](0x2,_0x79c937[_0x25f1e7('0x2566')])[_0x25f1e7('0x185f')](',');}break;case _0x25f1e7('0x137a'):{const _0x2985fa=_0x5728cc['queue'][_0x25f1e7('0xd6b')][_0x25f1e7('0x1497')](',');_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x27f2')]=_0x2985fa[0x0],_0x5728cc['queue']['secretaccesskey']=_0x2985fa[0x1],_0x5728cc[_0x25f1e7('0x1ab4')]['lexregion']=_0x2985fa[0x2],_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x4eb')]=_0x2985fa[0x3],_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xf50')]=_0x2985fa['slice'](0x4,_0x2985fa['length'])['join'](',');}break;case _0x25f1e7('0x808'):{const _0x3f1a86=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xd6b')][_0x25f1e7('0x1497')](',');_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x5fd')]=isNaN(_0x3f1a86[0x0])?_0x3f1a86[0x0]:parseInt(_0x3f1a86[0x0],0xa),_0x5728cc[_0x25f1e7('0x1ab4')]['text']=_0x3f1a86['slice'](0x1,_0x3f1a86[_0x25f1e7('0x2566')])[_0x25f1e7('0x185f')](',');}break;case'message':_0x5728cc['queue']['text']=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xd6b')];break;case'set':_0x5728cc['queue']['name']=_0x5728cc['queue']['appdata'][_0x25f1e7('0x1497')]('=')[0x0],_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x49')]=_0x5728cc['queue'][_0x25f1e7('0xd6b')][_0x25f1e7('0x1497')]('=')[0x1];break;case _0x25f1e7('0x2631'):_0x5728cc[_0x25f1e7('0x1ab4')]['project']=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0xd6b')];break;default:{const _0x55037a=_0x5728cc[_0x25f1e7('0x1ab4')]['appdata']['split'](',');_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x1ab4')]=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x0])?_0x55037a[0x0]:isNaN(_0x55037a[0x0])?_0x55037a[0x0]:parseInt(_0x55037a[0x0],0xa),_0x5728cc[_0x25f1e7('0x1ab4')]['options']=_0x283545()['isEmpty'](_0x55037a[0x1])?_0x55037a[0x1]:isNaN(_0x55037a[0x1])?_0x55037a[0x1]:parseInt(_0x55037a[0x1],0xa),_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x5')]=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x2])?_0x55037a[0x2]:isNaN(_0x55037a[0x2])?_0x55037a[0x2]:parseInt(_0x55037a[0x2],0xa),_0x5728cc['queue'][_0x25f1e7('0x216d')]=_0x283545()['isEmpty'](_0x55037a[0x3])?_0x55037a[0x3]:isNaN(_0x55037a[0x3])?_0x55037a[0x3]:parseInt(_0x55037a[0x3],0xa),_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x24e4')]=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x4])?_0x55037a[0x4]:isNaN(_0x55037a[0x4])?_0x55037a[0x4]:parseInt(_0x55037a[0x4],0xa),_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x2631')]=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x5])?_0x55037a[0x5]:isNaN(_0x55037a[0x5])?_0x55037a[0x5]:parseInt(_0x55037a[0x5],0xa),_0x5728cc['queue'][_0x25f1e7('0x380')]=_0x283545()['isEmpty'](_0x55037a[0x6])?_0x55037a[0x6]:isNaN(_0x55037a[0x6])?_0x55037a[0x6]:parseInt(_0x55037a[0x6],0xa),_0x5728cc[_0x25f1e7('0x1ab4')]['gosub']=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x7])?_0x55037a[0x7]:isNaN(_0x55037a[0x7])?_0x55037a[0x7]:parseInt(_0x55037a[0x7],0xa),_0x5728cc[_0x25f1e7('0x1ab4')]['rule']=_0x283545()['isEmpty'](_0x55037a[0x8])?_0x55037a[0x8]:isNaN(_0x55037a[0x8])?_0x55037a[0x8]:parseInt(_0x55037a[0x8],0xa),_0x5728cc[_0x25f1e7('0x1ab4')]['position']=_0x283545()[_0x25f1e7('0x213d')](_0x55037a[0x9])?_0x55037a[0x9]:isNaN(_0x55037a[0x9])?_0x55037a[0x9]:parseInt(_0x55037a[0x9],0xa);}break;}else{}_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x1d7')]&&_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x1d7')][_0x25f1e7('0xc2e')]()==='outbound'&&_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x167b')][_0x25f1e7('0xc2e')]()===_0x25f1e7('0x229c')&&(_0x5728cc['queue'][_0x25f1e7('0x1f71')]=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x1224')]?_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x1224')][_0x25f1e7('0x1497')]('$')[0x0]:undefined,_0x5728cc[_0x25f1e7('0x1ab4')]['callerId']=_0x5728cc[_0x25f1e7('0x1ab4')][_0x25f1e7('0x8de')]?'CALLERID(all)='+_0x5728cc[_0x25f1e7('0x1ab4')]['callerID']:undefined);_0x5728cc[_0x25f1e7('0xa46')]=_0x6a1b36,_0x5728cc['closeDialog']=_0xc27329,_0x141f88[_0x25f1e7('0x1516')](_0x25f1e7('0xe23'))?_0x21d6fd[_0x25f1e7('0x216d')][_0x25f1e7('0x1335')]({'fields':_0x25f1e7('0x1480'),'sort':'name','nolimit':_0x25f1e7('0x1001')})[_0x25f1e7('0x1714')][_0x25f1e7('0x2788')](function(_0x33eeb9){const _0x2a5e6c=_0x25f1e7;_0x5728cc['sounds']=_0x33eeb9[_0x2a5e6c('0x25df')]||[];})[_0x25f1e7('0x1cb5')](function(_0x11c9e3){const _0x16758c=_0x25f1e7;_0x852c70[_0x16758c('0x5e8')]({'title':_0x11c9e3['status']?_0x16758c('0x15d1')+_0x11c9e3[_0x16758c('0x1b51')]+_0x16758c('0x1b0b')+_0x11c9e3[_0x16758c('0x22ce')]:'SYSTEM:GET_SOUNDS','msg':_0x11c9e3[_0x16758c('0x11fc')]?JSON[_0x16758c('0x1be0')](_0x11c9e3['data']):_0x11c9e3[_0x16758c('0x17df')]()});}):_0x21d6fd[_0x25f1e7('0x216d')]['get']({'fields':'id,name,save_name','sort':_0x25f1e7('0x1a8d'),'nolimit':_0x25f1e7('0x1001')})[_0x25f1e7('0x1714')][_0x25f1e7('0x2788')](function(_0x2c416b){const _0x2317a7=_0x25f1e7;_0x5728cc[_0x2317a7('0x16ca')]=_0x2c416b[_0x2317a7('0x25df')]||[];})['then'](function(){const _0xc7881f=_0x25f1e7;return _0x21d6fd[_0xc7881f('0xec9')][_0xc7881f('0x1335')]({'userProfileId':_0x5728cc[_0xc7881f('0x9cb')]['userProfileId'],'sectionId':0x3ef})[_0xc7881f('0x1714')];})[_0x25f1e7('0x2788')](function(_0x1f8e75){const _0x2576f8=_0x25f1e7,_0x381c2f=_0x1f8e75&&_0x1f8e75[_0x2576f8('0x25df')]?_0x1f8e75['rows'][0x0]:null;if(!_0x381c2f){const _0x514849=[];let _0xa15116=null;_0x5728cc[_0x2576f8('0x1ab4')]&&(_0xa15116=_0x283545()[_0x2576f8('0x20e8')](_0x5728cc[_0x2576f8('0x16ca')],{'save_name':_0x5728cc[_0x2576f8('0x1ab4')][_0x2576f8('0x216d')]}));for(let _0x5256ee=0x0;_0x5256ee<_0x5728cc[_0x2576f8('0x16ca')][_0x2576f8('0x2566')];_0x5256ee++){_0xa15116&&_0x5728cc[_0x2576f8('0x16ca')][_0x5256ee]['id']===_0xa15116['id']&&(_0x5728cc['sounds'][_0x5256ee][_0x2576f8('0x3bf')]=![],_0x514849['push'](_0x5728cc[_0x2576f8('0x16ca')][_0x5256ee]));}_0x5728cc[_0x2576f8('0x16ca')]=_0x514849;}else{if(!_0x381c2f['autoAssociation'])return _0x21d6fd[_0x2576f8('0x1050')][_0x2576f8('0x1335')]({'sectionId':_0x381c2f['id']})[_0x2576f8('0x1714')][_0x2576f8('0x2788')](function(_0x23eeab){const _0x245ce0=_0x2576f8,_0xbaef6e=_0x283545()[_0x245ce0('0x155d')](_0x23eeab[_0x245ce0('0x25df')],function(_0x5d88e6){const _0x232afb=_0x245ce0;return _0x283545()[_0x232afb('0x20e8')](_0x5728cc[_0x232afb('0x16ca')],{'id':_0x5d88e6[_0x232afb('0x2707')]});});let _0xc0379b=null;_0x5728cc[_0x245ce0('0x1ab4')]&&(_0xc0379b=_0x283545()[_0x245ce0('0x20e8')](_0x5728cc[_0x245ce0('0x16ca')],{'save_name':_0x5728cc['queue'][_0x245ce0('0x216d')]}));if(_0xc0379b&&!_0x283545()['some'](_0xbaef6e,['id',_0xc0379b['id']])){const _0x487097=_0x283545()['find'](_0x5728cc['sounds'],{'id':_0xc0379b['id']});_0x487097[_0x245ce0('0x3bf')]=![],_0xbaef6e[_0x245ce0('0x13e3')](_0x487097);}_0x5728cc[_0x245ce0('0x16ca')]=_0xbaef6e;});}})[_0x25f1e7('0x1cb5')](function(_0x303188){const _0x2c6c20=_0x25f1e7;_0x852c70[_0x2c6c20('0x5e8')]({'title':_0x303188[_0x2c6c20('0x1b51')]?_0x2c6c20('0x15d1')+_0x303188['status']+_0x2c6c20('0x1b0b')+_0x303188[_0x2c6c20('0x22ce')]:_0x2c6c20('0x19a8'),'msg':_0x303188['data']?JSON[_0x2c6c20('0x1be0')](_0x303188[_0x2c6c20('0x11fc')]):_0x303188[_0x2c6c20('0x17df')]()});}),_0x141f88[_0x25f1e7('0x1516')](_0x25f1e7('0xe23'))?_0x21d6fd[_0x25f1e7('0x2043')][_0x25f1e7('0x1335')]({'type':_0x25f1e7('0x2e4'),'fields':_0x25f1e7('0xafa'),'sort':_0x25f1e7('0x1a8d'),'nolimit':_0x25f1e7('0x1001')})[_0x25f1e7('0x1714')][_0x25f1e7('0x2788')](function(_0x421d01){const _0x13560d=_0x25f1e7;_0x5728cc['queues']=_0x421d01[_0x13560d('0x25df')]||[];})['catch'](function(_0x1282d4){const _0x57713f=_0x25f1e7;_0x852c70['error']({'title':_0x1282d4[_0x57713f('0x1b51')]?_0x57713f('0x15d1')+_0x1282d4[_0x57713f('0x1b51')]+_0x57713f('0x1b0b')+_0x1282d4[_0x57713f('0x22ce')]:_0x57713f('0x2763'),'msg':_0x1282d4['data']?JSON[_0x57713f('0x1be0')](_0x1282d4[_0x57713f('0x11fc')]):_0x1282d4[_0x57713f('0x17df')]()});}):_0x21d6fd[_0x25f1e7('0x2043')][_0x25f1e7('0x1335')]({'type':_0x25f1e7('0x2e4'),'fields':_0x25f1e7('0xafa'),'sort':_0x25f1e7('0x1a8d'),'nolimit':_0x25f1e7('0x1001')})[_0x25f1e7('0x1714')][_0x25f1e7('0x2788')](function(_0x295c89){const _0x45fcc2=_0x25f1e7;_0x5728cc['queues']=_0x295c89[_0x45fcc2('0x25df')]||[];})[_0x25f1e7('0x2788')](function(){const _0x1e58fb=_0x25f1e7;return _0x21d6fd[_0x1e58fb('0xec9')]['get']({'userProfileId':_0x5728cc[_0x1e58fb('0x9cb')]['userProfileId'],'sectionId':0x191})[_0x1e58fb('0x1714')];})['then'](function(_0x1f35a9){const _0x19c50c=_0x25f1e7,_0x3d01f2=_0x1f35a9&&_0x1f35a9[_0x19c50c('0x25df')]?_0x1f35a9[_0x19c50c('0x25df')][0x0]:null;if(!_0x3d01f2){const _0xa8536=[];let _0x29d506=null;_0x5728cc['queue']&&(_0x29d506=_0x283545()[_0x19c50c('0x20e8')](_0x5728cc['queues'],{'name':_0x5728cc[_0x19c50c('0x1ab4')][_0x19c50c('0x1ab4')]}));for(let _0x32cb03=0x0;_0x32cb03<_0x5728cc[_0x19c50c('0x283e')]['length'];_0x32cb03++){_0x29d506&&_0x5728cc['queues'][_0x32cb03]['id']===_0x29d506['id']&&(_0x5728cc[_0x19c50c('0x283e')][_0x32cb03][_0x19c50c('0x3bf')]=![],_0xa8536[_0x19c50c('0x13e3')](_0x5728cc['queues'][_0x32cb03]));}_0x5728cc[_0x19c50c('0x283e')]=_0xa8536;}else{if(!_0x3d01f2['autoAssociation'])return _0x21d6fd[_0x19c50c('0x1050')][_0x19c50c('0x1335')]({'sectionId':_0x3d01f2['id']})['$promise']['then'](function(_0x40150b){const _0x44273d=_0x19c50c,_0x5d9d40=_0x283545()[_0x44273d('0x155d')](_0x40150b[_0x44273d('0x25df')],function(_0x1d5d69){const _0x11cc22=_0x44273d;return _0x283545()[_0x11cc22('0x20e8')](_0x5728cc['queues'],{'id':_0x1d5d69[_0x11cc22('0x2707')]});});let _0x2fbdac=null;_0x5728cc[_0x44273d('0x1ab4')]&&(_0x2fbdac=_0x283545()['find'](_0x5728cc[_0x44273d('0x283e')],{'name':_0x5728cc[_0x44273d('0x1ab4')]['queue']}));if(_0x2fbdac&&!_0x283545()[_0x44273d('0xc5d')](_0x5d9d40,['id',_0x2fbdac['id']])){const _0x2b857e=_0x283545()[_0x44273d('0x20e8')](_0x5728cc[_0x44273d('0x283e')],{'id':_0x2fbdac['id']});_0x2b857e[_0x44273d('0x3bf')]=![],_0x5d9d40[_0x44273d('0x13e3')](_0x2b857e);}_0x5728cc[_0x44273d('0x283e')]=_0x5d9d40;});}})[_0x25f1e7('0x1cb5')](function(_0x3eb375){const _0x87523e=_0x25f1e7;_0x852c70[_0x87523e('0x5e8')]({'title':_0x3eb375[_0x87523e('0x1b51')]?_0x87523e('0x15d1')+_0x3eb375[_0x87523e('0x1b51')]+_0x87523e('0x1b0b')+_0x3eb375[_0x87523e('0x22ce')]:_0x87523e('0xb14'),'msg':_0x3eb375[_0x87523e('0x11fc')]?JSON[_0x87523e('0x1be0')](_0x3eb375['data']):_0x3eb375[_0x87523e('0x17df')]()});});function _0x6a1b36(){const _0x17a8c9=_0x25f1e7;_0x5728cc[_0x17a8c9('0x25be')]=[];const _0x8b5d=[];_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1d7')]&&_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1d7')][_0x17a8c9('0xc2e')]()===_0x17a8c9('0x1')&&_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x167b')]===_0x17a8c9('0x25fb')&&(_0x5728cc[_0x17a8c9('0x1ab4')]['phone']=_0x463354[_0x17a8c9('0x277c')]?(_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1f71')]||'')+_0x17a8c9('0x124d')+_0x463354[_0x17a8c9('0x277c')]+'}':(_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1f71')]||'')+_0x17a8c9('0x1275'),_0x463354[_0x17a8c9('0x801')]!==_0x17a8c9('0x1dc')?_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x784')][_0x17a8c9('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5728cc['queue'][_0x17a8c9('0x784')]+=_0x17a8c9('0x1609')):_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x784')]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x784')][_0x17a8c9('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x167b')]&&_0x5728cc['queue'][_0x17a8c9('0x167b')]==='custom'){}else switch((_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x8a5')]||_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x167b')])[_0x17a8c9('0xc2e')]()){case'set':_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0xd6b')]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1a8d')]+'='+_0x5728cc['queue'][_0x17a8c9('0x49')];break;case'custom':break;default:_0x8b5d[0x0]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1ab4')],_0x8b5d[0x1]=_0x5728cc[_0x17a8c9('0x1ab4')]['options'],_0x8b5d[0x2]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x5')],_0x8b5d[0x3]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x216d')],_0x8b5d[0x4]=_0x5728cc['queue'][_0x17a8c9('0x24e4')],_0x8b5d[0x5]=_0x5728cc['queue'][_0x17a8c9('0x2631')],_0x8b5d[0x6]=_0x5728cc[_0x17a8c9('0x1ab4')]['macro'],_0x8b5d[0x7]=_0x5728cc[_0x17a8c9('0x1ab4')]['gosub'],_0x8b5d[0x8]=_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0x1b87')],_0x8b5d[0x9]=_0x5728cc[_0x17a8c9('0x1ab4')]['position'],_0x5728cc[_0x17a8c9('0x1ab4')][_0x17a8c9('0xd6b')]=_0x8b5d[_0x17a8c9('0x185f')](',');}_0xc27329(_0x5728cc['queue']);}function _0xc27329(_0x28cdf8){const _0x1d47b8=_0x25f1e7;_0x25b911[_0x1d47b8('0x19d')](_0x28cdf8);}}const _0x4eb335=_0x102263;_0x3db8a6[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x61b'),_0x34e79e('0x26ea'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x3db8a6(_0x25184f,_0x25ed70,_0x449d88,_0x539aa3,_0x310c58,_0x32d87d,_0x1e9d58,_0x55664b){const _0x29d7f2=_0x34e79e,_0x37bc05=this;_0x37bc05['currentUser']=_0x1e9d58[_0x29d7f2('0x24cc')](),_0x37bc05[_0x29d7f2('0x25be')]=[],_0x37bc05[_0x29d7f2('0x14e4')]='VOICE.EDIT_'+(_0x539aa3[_0x29d7f2('0x167b')]||_0x539aa3[_0x29d7f2('0x8a5')])[_0x29d7f2('0x25e6')](),_0x37bc05[_0x29d7f2('0x1031')]=angular[_0x29d7f2('0x2669')](_0x539aa3),_0x37bc05[_0x29d7f2('0xe28')]=_0x55664b,_0x37bc05['hasModulePermissions']={};if(_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xd6b')])switch(_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x167b')]?_0x37bc05['ringgroup'][_0x29d7f2('0x167b')][_0x29d7f2('0xc2e')]():_0x37bc05['ringgroup'][_0x29d7f2('0x8a5')][_0x29d7f2('0xc2e')]()){case _0x29d7f2('0x1d56'):break;case _0x29d7f2('0x5e1'):{const _0x109d28=_0x37bc05['ringgroup'][_0x29d7f2('0xd6b')]['split'](',');_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x234b')]=_0x109d28[0x0],_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x175b')]=_0x109d28[0x1],_0x37bc05[_0x29d7f2('0x1031')]['welcomemessage']=_0x109d28[_0x29d7f2('0x845')](0x2,_0x109d28['length'])[_0x29d7f2('0x185f')](',');}break;case _0x29d7f2('0x137a'):{const _0x34b439=_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xd6b')][_0x29d7f2('0x1497')](',');_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x27f2')]=_0x34b439[0x0],_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x1b58')]=_0x34b439[0x1],_0x37bc05[_0x29d7f2('0x1031')]['lexregion']=_0x34b439[0x2],_0x37bc05[_0x29d7f2('0x1031')]['botname']=_0x34b439[0x3],_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xf50')]=_0x34b439[_0x29d7f2('0x845')](0x4,_0x34b439[_0x29d7f2('0x2566')])[_0x29d7f2('0x185f')](',');}break;case _0x29d7f2('0x808'):{const _0x2c44f4=_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xd6b')][_0x29d7f2('0x1497')](',');_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x5fd')]=isNaN(_0x2c44f4[0x0])?_0x2c44f4[0x0]:parseInt(_0x2c44f4[0x0],0xa),_0x37bc05['ringgroup'][_0x29d7f2('0x16db')]=_0x2c44f4[_0x29d7f2('0x845')](0x1,_0x2c44f4[_0x29d7f2('0x2566')])[_0x29d7f2('0x185f')](',');}break;case'message':_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x16db')]=_0x37bc05['ringgroup'][_0x29d7f2('0xd6b')];break;case _0x29d7f2('0x3a6'):_0x37bc05[_0x29d7f2('0x1031')]['name']=_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xd6b')]['split']('=')[0x0],_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x49')]=_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0xd6b')][_0x29d7f2('0x1497')]('=')[0x1];break;case'agi':_0x37bc05['ringgroup']['project']=_0x37bc05['ringgroup'][_0x29d7f2('0xd6b')];break;default:{const _0x81e110=_0x37bc05['ringgroup'][_0x29d7f2('0xd6b')][_0x29d7f2('0x1497')](',');_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x10c7')]=_0x81e110[0x0][_0x29d7f2('0x1497')]('&'),_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x24e4')]=_0x283545()[_0x29d7f2('0x213d')](_0x81e110[0x1])?_0x81e110[0x1]:isNaN(_0x81e110[0x1])?_0x81e110[0x1]:parseInt(_0x81e110[0x1],0xa),_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x784')]=_0x283545()[_0x29d7f2('0x213d')](_0x81e110[0x2])?_0x81e110[0x2]:isNaN(_0x81e110[0x2])?_0x81e110[0x2]:parseInt(_0x81e110[0x2],0xa),_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x1672')]=_0x283545()[_0x29d7f2('0x213d')](_0x81e110[0x3])?_0x81e110[0x3]:isNaN(_0x81e110[0x3])?_0x81e110[0x3]:parseInt(_0x81e110[0x3],0xa);}break;}else{}_0x37bc05[_0x29d7f2('0x1031')]['type']&&_0x37bc05['ringgroup']['type']['toLowerCase']()===_0x29d7f2('0x1')&&_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x167b')][_0x29d7f2('0xc2e')]()==='outbounddial'&&(_0x37bc05['ringgroup'][_0x29d7f2('0x1f71')]=_0x37bc05['ringgroup'][_0x29d7f2('0x1224')]?_0x37bc05['ringgroup'][_0x29d7f2('0x1224')][_0x29d7f2('0x1497')]('$')[0x0]:undefined,_0x37bc05['ringgroup']['callerId']=_0x37bc05[_0x29d7f2('0x1031')][_0x29d7f2('0x8de')]?'CALLERID(all)='+_0x37bc05[_0x29d7f2('0x1031')]['callerID']:undefined);_0x37bc05[_0x29d7f2('0xa46')]=_0x450e7,_0x37bc05['closeDialog']=_0x4cfe75;const _0x462eed=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x29d7f2('0x23ab')}];let _0x409f78=null;_0x1e9d58[_0x29d7f2('0x1516')](_0x29d7f2('0xe23'))?_0x32d87d['user'][_0x29d7f2('0x1335')]({'fields':_0x29d7f2('0x17a1'),'sort':'name','nolimit':'true'})[_0x29d7f2('0x1714')]['then'](function(_0x47a0aa){_0x37bc05['users']=_0x47a0aa['rows']||[];})[_0x29d7f2('0x1cb5')](function(_0x1683b7){const _0x412a96=_0x29d7f2;_0x449d88[_0x412a96('0x5e8')]({'title':_0x1683b7['status']?_0x412a96('0x15d1')+_0x1683b7[_0x412a96('0x1b51')]+_0x412a96('0x1b0b')+_0x1683b7[_0x412a96('0x22ce')]:'SYSTEM:GET_USERS','msg':_0x1683b7['data']?JSON[_0x412a96('0x1be0')](_0x1683b7[_0x412a96('0x11fc')]):_0x1683b7['toString']()});}):_0x32d87d['user'][_0x29d7f2('0x1335')]({'fields':_0x29d7f2('0x17a1'),'sort':_0x29d7f2('0x1a8d'),'nolimit':'true'})['$promise'][_0x29d7f2('0x2788')](function(_0x505c1d){const _0x1cb540=_0x29d7f2;_0x409f78=_0x505c1d[_0x1cb540('0x25df')]||[];})[_0x29d7f2('0x2788')](function(){const _0x1e5c4e=_0x29d7f2,_0x1c53ef=[];for(let _0xe51e4a=0x0;_0xe51e4a<_0x462eed[_0x1e5c4e('0x2566')];_0xe51e4a++){_0x1c53ef[_0x1e5c4e('0x13e3')](_0x32d87d[_0x1e5c4e('0xec9')][_0x1e5c4e('0x1335')]({'userProfileId':_0x37bc05['currentUser'][_0x1e5c4e('0x237f')],'sectionId':_0x462eed[_0xe51e4a]['id']})[_0x1e5c4e('0x1714')]);}return _0x25ed70['all'](_0x1c53ef);})[_0x29d7f2('0x2788')](function(_0x3513d8){const _0x23f74b=_0x29d7f2,_0x112dfa=_0x283545()['map'](_0x3513d8,function(_0x53d9fa){const _0x4680c6=a0_0x14e7;return _0x53d9fa&&_0x53d9fa['rows']?_0x53d9fa[_0x4680c6('0x25df')][0x0]:null;}),_0x5ea742=[];for(let _0x3d03c4=0x0;_0x3d03c4<_0x462eed[_0x23f74b('0x2566')];_0x3d03c4++){const _0x12efb4=_0x283545()[_0x23f74b('0x20e8')](_0x112dfa,[_0x23f74b('0x201d'),_0x462eed[_0x3d03c4]['id']]);if(_0x12efb4){if(!_0x12efb4['autoAssociation'])_0x5ea742['push'](_0x32d87d[_0x23f74b('0x1050')][_0x23f74b('0x1335')]({'sectionId':_0x12efb4['id']})[_0x23f74b('0x1714')]);else{const _0x25bc40=[];_0x409f78[_0x23f74b('0x1534')](function(_0x196a72){const _0x4953ae=_0x23f74b;_0x196a72[_0x4953ae('0xb34')]===_0x462eed[_0x3d03c4][_0x4953ae('0xb34')]&&_0x25bc40[_0x4953ae('0x13e3')](_0x196a72);}),_0x5ea742[_0x23f74b('0x13e3')]({'rows':_0x25bc40,'count':_0x25bc40['length']});}}}return _0x25ed70['all'](_0x5ea742);})[_0x29d7f2('0x2788')](function(_0x48fa23){const _0x42b520=_0x29d7f2,_0x205813=[];let _0x8f90cc=null;_0x37bc05[_0x42b520('0x1031')]&&(_0x8f90cc=_0x283545()[_0x42b520('0x20e8')](_0x409f78,{'name':_0x37bc05['ringgroup'][_0x42b520('0x10c7')]}));for(let _0x309566=0x0;_0x309566<_0x48fa23['length'];_0x309566++){const _0x33a7ad=_0x48fa23[_0x309566][_0x42b520('0x25df')]||[];_0x33a7ad[_0x42b520('0x1534')](function(_0x3ffa1b){const _0x12bb3f=_0x42b520;_0x205813[_0x12bb3f('0x13e3')](_0x3ffa1b);});}_0x8f90cc&&!_0x283545()[_0x42b520('0xc5d')](_0x205813,['resourceId',_0x8f90cc['id']])&&_0x409f78[_0x42b520('0x1534')](function(_0x40aa1b){const _0x10227e=_0x42b520;_0x40aa1b['id']===_0x8f90cc['id']&&(_0x40aa1b[_0x10227e('0x3bf')]=![],_0x205813[_0x10227e('0x13e3')](_0x40aa1b));}),_0x37bc05[_0x42b520('0x1e42')]=_0x205813;})[_0x29d7f2('0x1cb5')](function(_0x3836cd){const _0x226f22=_0x29d7f2;_0x449d88[_0x226f22('0x5e8')]({'title':_0x3836cd[_0x226f22('0x1b51')]?'API:'+_0x3836cd['status']+'\x20-\x20'+_0x3836cd[_0x226f22('0x22ce')]:_0x226f22('0x245d'),'msg':_0x3836cd['data']?JSON[_0x226f22('0x1be0')](_0x3836cd[_0x226f22('0x11fc')]):_0x3836cd[_0x226f22('0x17df')]()});});function _0x450e7(){const _0x4543b5=_0x29d7f2;_0x37bc05[_0x4543b5('0x25be')]=[];const _0x598e14=[];_0x37bc05['ringgroup'][_0x4543b5('0x1d7')]&&_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1d7')][_0x4543b5('0xc2e')]()===_0x4543b5('0x1')&&_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x167b')]==='outboundDial'&&(_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1224')]=_0x310c58[_0x4543b5('0x277c')]?(_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1f71')]||'')+_0x4543b5('0x124d')+_0x310c58[_0x4543b5('0x277c')]+'}':(_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1f71')]||'')+'${EXTEN}',_0x310c58[_0x4543b5('0x801')]!==_0x4543b5('0x1dc')?_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x784')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x37bc05[_0x4543b5('0x1031')]['options']+=_0x4543b5('0x1609')):_0x37bc05[_0x4543b5('0x1031')]['options']=_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x784')][_0x4543b5('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x167b')]&&_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x167b')]===_0x4543b5('0x1d56')){}else switch((_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x8a5')]||_0x37bc05['ringgroup']['appType'])[_0x4543b5('0xc2e')]()){case _0x4543b5('0x3a6'):_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0xd6b')]=_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1a8d')]+'='+_0x37bc05[_0x4543b5('0x1031')]['value'];break;case _0x4543b5('0x1d56'):break;default:_0x598e14[0x0]=_0x37bc05[_0x4543b5('0x1031')]['multipleUsers'][_0x4543b5('0x185f')]('&'),_0x598e14[0x1]=_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x24e4')],_0x598e14[0x2]=_0x37bc05['ringgroup'][_0x4543b5('0x784')],_0x598e14[0x3]=_0x37bc05[_0x4543b5('0x1031')][_0x4543b5('0x1672')],_0x37bc05['ringgroup'][_0x4543b5('0xd6b')]=_0x598e14['join'](',');}_0x4cfe75(_0x37bc05[_0x4543b5('0x1031')]);}function _0x4cfe75(_0x1bf9ac){const _0x11de88=_0x29d7f2;_0x25184f[_0x11de88('0x19d')](_0x1bf9ac);}}const _0x1e3a3a=_0x3db8a6;_0x22276b[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),'inboundrouteApp',_0x34e79e('0x26ea'),'api',_0x34e79e('0x1b04'),'crudPermissions'];function _0x22276b(_0x1c5739,_0x3aa4a1,_0x9f5cd0,_0x46bd38,_0x3dfb2c,_0x125a80,_0x3092e7,_0x3b78a7){const _0x3bf0dc=_0x34e79e,_0x2a8210=this;_0x2a8210[_0x3bf0dc('0x9cb')]=_0x3092e7[_0x3bf0dc('0x24cc')](),_0x2a8210['errors']=[],_0x2a8210[_0x3bf0dc('0x14e4')]=_0x3bf0dc('0xc6c')+(_0x46bd38['appType']||_0x46bd38[_0x3bf0dc('0x8a5')])[_0x3bf0dc('0x25e6')](),_0x2a8210[_0x3bf0dc('0x3a6')]=angular[_0x3bf0dc('0x2669')](_0x46bd38),_0x2a8210[_0x3bf0dc('0xe28')]=_0x3b78a7,_0x2a8210[_0x3bf0dc('0x1193')]={};if(_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')])switch(_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x167b')]?_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x167b')]['toLowerCase']():_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x8a5')]['toLowerCase']()){case _0x3bf0dc('0x1d56'):break;case'dialogflow':{const _0x6c983=_0x2a8210['set'][_0x3bf0dc('0xd6b')][_0x3bf0dc('0x1497')](',');_0x2a8210['set'][_0x3bf0dc('0x234b')]=_0x6c983[0x0],_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x175b')]=_0x6c983[0x1],_0x2a8210['set'][_0x3bf0dc('0xf50')]=_0x6c983['slice'](0x2,_0x6c983[_0x3bf0dc('0x2566')])[_0x3bf0dc('0x185f')](',');}break;case _0x3bf0dc('0x137a'):{const _0x42988d=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')][_0x3bf0dc('0x1497')](',');_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x27f2')]=_0x42988d[0x0],_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x1b58')]=_0x42988d[0x1],_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xb70')]=_0x42988d[0x2],_0x2a8210['set']['botname']=_0x42988d[0x3],_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xf50')]=_0x42988d[_0x3bf0dc('0x845')](0x4,_0x42988d[_0x3bf0dc('0x2566')])['join'](',');}break;case _0x3bf0dc('0x808'):{const _0x5d87e8=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')][_0x3bf0dc('0x1497')](',');_0x2a8210[_0x3bf0dc('0x3a6')]['times']=isNaN(_0x5d87e8[0x0])?_0x5d87e8[0x0]:parseInt(_0x5d87e8[0x0],0xa),_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x16db')]=_0x5d87e8['slice'](0x1,_0x5d87e8['length'])[_0x3bf0dc('0x185f')](',');}break;case _0x3bf0dc('0x15e2'):_0x2a8210['set'][_0x3bf0dc('0x16db')]=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')];break;case _0x3bf0dc('0x3a6'):_0x2a8210[_0x3bf0dc('0x3a6')]['name']=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')][_0x3bf0dc('0x1497')]('=')[0x0],_0x2a8210['set'][_0x3bf0dc('0x49')]=_0x2a8210[_0x3bf0dc('0x3a6')]['appdata'][_0x3bf0dc('0x1497')]('=')[0x1];break;case'agi':_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x1bf6')]=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')];break;default:{const _0x5157f5=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0xd6b')][_0x3bf0dc('0x1497')]('=');_0x2a8210[_0x3bf0dc('0x3a6')]['name']=_0x283545()['isEmpty'](_0x5157f5[0x0])?_0x5157f5[0x0]:isNaN(_0x5157f5[0x0])?_0x5157f5[0x0]:parseInt(_0x5157f5[0x0],0xa),_0x2a8210['set']['value']=_0x283545()['isEmpty'](_0x5157f5[0x1])?_0x5157f5[0x1]:isNaN(_0x5157f5[0x1])?_0x5157f5[0x1]:parseInt(_0x5157f5[0x1],0xa);}break;}else{}_0x2a8210['set'][_0x3bf0dc('0x1d7')]&&_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x1d7')][_0x3bf0dc('0xc2e')]()==='outbound'&&_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x167b')][_0x3bf0dc('0xc2e')]()===_0x3bf0dc('0x229c')&&(_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x1f71')]=_0x2a8210['set']['phone']?_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x1224')]['split']('$')[0x0]:undefined,_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x2081')]=_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x8de')]?_0x3bf0dc('0x1834')+_0x2a8210[_0x3bf0dc('0x3a6')][_0x3bf0dc('0x8de')]:undefined);_0x2a8210[_0x3bf0dc('0xa46')]=_0x512cc2,_0x2a8210[_0x3bf0dc('0xca7')]=_0x3ba0c0,_0x3092e7[_0x3bf0dc('0x1516')](_0x3bf0dc('0xe23'))?_0x125a80[_0x3bf0dc('0xa72')][_0x3bf0dc('0x1335')]({'fields':_0x3bf0dc('0x1338'),'sort':'name','nolimit':_0x3bf0dc('0x1001')})[_0x3bf0dc('0x1714')][_0x3bf0dc('0x2788')](function(_0x28ce99){const _0x323bba=_0x3bf0dc;_0x2a8210[_0x323bba('0xf76')]=_0x28ce99[_0x323bba('0x25df')]||[];})[_0x3bf0dc('0x1cb5')](function(_0x487544){const _0x2285fc=_0x3bf0dc;_0x9f5cd0[_0x2285fc('0x5e8')]({'title':_0x487544[_0x2285fc('0x1b51')]?'API:'+_0x487544[_0x2285fc('0x1b51')]+'\x20-\x20'+_0x487544[_0x2285fc('0x22ce')]:_0x2285fc('0xe86'),'msg':_0x487544['data']?JSON[_0x2285fc('0x1be0')](_0x487544[_0x2285fc('0x11fc')]):_0x487544[_0x2285fc('0x17df')]()});}):_0x125a80[_0x3bf0dc('0xa72')][_0x3bf0dc('0x1335')]({'fields':_0x3bf0dc('0x1338'),'sort':_0x3bf0dc('0x1a8d'),'nolimit':'true'})[_0x3bf0dc('0x1714')]['then'](function(_0x452017){const _0x1231b6=_0x3bf0dc;_0x2a8210[_0x1231b6('0xf76')]=_0x452017[_0x1231b6('0x25df')]||[];})['then'](function(){const _0x29e702=_0x3bf0dc;return _0x125a80['userProfileSection'][_0x29e702('0x1335')]({'userProfileId':_0x2a8210[_0x29e702('0x9cb')][_0x29e702('0x237f')],'sectionId':0x3f4})[_0x29e702('0x1714')];})[_0x3bf0dc('0x2788')](function(_0xf9d716){const _0x2fb579=_0x3bf0dc,_0x4aa79c=_0xf9d716&&_0xf9d716[_0x2fb579('0x25df')]?_0xf9d716[_0x2fb579('0x25df')][0x0]:null;if(!_0x4aa79c){const _0x516d0e=[];let _0x28f712=null;_0x2a8210[_0x2fb579('0x3a6')]&&(_0x28f712=_0x283545()[_0x2fb579('0x20e8')](_0x2a8210[_0x2fb579('0xf76')],{'name':_0x2a8210[_0x2fb579('0x3a6')][_0x2fb579('0x1a8d')]}));for(let _0x48b150=0x0;_0x48b150<_0x2a8210['variables'][_0x2fb579('0x2566')];_0x48b150++){_0x28f712&&_0x2a8210['variables'][_0x48b150]['id']===_0x28f712['id']&&(_0x2a8210['variables'][_0x48b150][_0x2fb579('0x3bf')]=![],_0x516d0e[_0x2fb579('0x13e3')](_0x2a8210[_0x2fb579('0xf76')][_0x48b150]));}_0x2a8210[_0x2fb579('0xf76')]=_0x516d0e;}else{if(!_0x4aa79c[_0x2fb579('0x1c0a')])return _0x125a80[_0x2fb579('0x1050')]['get']({'sectionId':_0x4aa79c['id']})['$promise'][_0x2fb579('0x2788')](function(_0x278f2c){const _0x35508f=_0x2fb579,_0x244438=_0x283545()[_0x35508f('0x155d')](_0x278f2c[_0x35508f('0x25df')],function(_0x16afcd){const _0x40ca17=_0x35508f;return _0x283545()[_0x40ca17('0x20e8')](_0x2a8210[_0x40ca17('0xf76')],{'id':_0x16afcd[_0x40ca17('0x2707')]});});let _0x2619e1=null;_0x2a8210['set']&&(_0x2619e1=_0x283545()[_0x35508f('0x20e8')](_0x2a8210[_0x35508f('0xf76')],{'name':_0x2a8210[_0x35508f('0x3a6')]['name']}));if(_0x2619e1&&!_0x283545()[_0x35508f('0xc5d')](_0x244438,['id',_0x2619e1['id']])){const _0x323275=_0x283545()[_0x35508f('0x20e8')](_0x2a8210[_0x35508f('0xf76')],{'id':_0x2619e1['id']});_0x323275['canSelect']=![],_0x244438[_0x35508f('0x13e3')](_0x323275);}_0x2a8210[_0x35508f('0xf76')]=_0x244438;});}})[_0x3bf0dc('0x1cb5')](function(_0x8b126e){const _0x373fad=_0x3bf0dc;_0x9f5cd0[_0x373fad('0x5e8')]({'title':_0x8b126e[_0x373fad('0x1b51')]?_0x373fad('0x15d1')+_0x8b126e['status']+_0x373fad('0x1b0b')+_0x8b126e[_0x373fad('0x22ce')]:_0x373fad('0x1592'),'msg':_0x8b126e[_0x373fad('0x11fc')]?JSON['stringify'](_0x8b126e[_0x373fad('0x11fc')]):_0x8b126e['toString']()});});function _0x512cc2(){const _0x4a9107=_0x3bf0dc;_0x2a8210[_0x4a9107('0x25be')]=[];const _0x564b41=[];_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x1d7')]&&_0x2a8210[_0x4a9107('0x3a6')]['type'][_0x4a9107('0xc2e')]()==='outbound'&&_0x2a8210['set'][_0x4a9107('0x167b')]===_0x4a9107('0x25fb')&&(_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x1224')]=_0x3dfb2c[_0x4a9107('0x277c')]?(_0x2a8210['set'][_0x4a9107('0x1f71')]||'')+_0x4a9107('0x124d')+_0x3dfb2c[_0x4a9107('0x277c')]+'}':(_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x1f71')]||'')+_0x4a9107('0x1275'),_0x3dfb2c[_0x4a9107('0x801')]!==_0x4a9107('0x1dc')?_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x784')][_0x4a9107('0x821')](_0x4a9107('0x1609'))<0x0&&(_0x2a8210['set'][_0x4a9107('0x784')]+=_0x4a9107('0x1609')):_0x2a8210['set'][_0x4a9107('0x784')]=_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x784')][_0x4a9107('0x10a4')](_0x4a9107('0x1609'),''));if(_0x2a8210['set'][_0x4a9107('0x167b')]&&_0x2a8210[_0x4a9107('0x3a6')]['appType']===_0x4a9107('0x1d56')){}else switch((_0x2a8210[_0x4a9107('0x3a6')]['app']||_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x167b')])[_0x4a9107('0xc2e')]()){case'set':_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0xd6b')]=_0x2a8210[_0x4a9107('0x3a6')]['name']+'='+_0x2a8210[_0x4a9107('0x3a6')]['value'];break;case _0x4a9107('0x1d56'):break;default:_0x564b41[0x0]=_0x2a8210[_0x4a9107('0x3a6')]['name'],_0x564b41[0x1]=_0x2a8210[_0x4a9107('0x3a6')][_0x4a9107('0x49')],_0x2a8210['set'][_0x4a9107('0xd6b')]=_0x564b41[_0x4a9107('0x185f')]('=');}_0x3ba0c0(_0x2a8210['set']);}function _0x3ba0c0(_0x4d9e2e){const _0xdb24f3=_0x3bf0dc;_0x1c5739[_0xdb24f3('0x19d')](_0x4d9e2e);}}const _0x51423d=_0x22276b;_0x27a733[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'inboundrouteApp',_0x34e79e('0x26ea'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x27a733(_0x301b98,_0x3a04b7,_0x272cd0,_0x4ab064,_0x4101cb,_0x4ea86c,_0x179a7b,_0x7ee206){const _0x40deea=_0x34e79e,_0x39e4c3=this;_0x39e4c3[_0x40deea('0x9cb')]=_0x179a7b['getCurrentUser'](),_0x39e4c3[_0x40deea('0x25be')]=[],_0x39e4c3['title']=_0x40deea('0xc6c')+(_0x4ab064[_0x40deea('0x167b')]||_0x4ab064['app'])[_0x40deea('0x25e6')](),_0x39e4c3[_0x40deea('0x2339')]=angular[_0x40deea('0x2669')](_0x4ab064),_0x39e4c3[_0x40deea('0xe28')]=_0x7ee206,_0x39e4c3[_0x40deea('0x1193')]={};if(_0x39e4c3['voicemail'][_0x40deea('0xd6b')])switch(_0x39e4c3[_0x40deea('0x2339')]['appType']?_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x167b')][_0x40deea('0xc2e')]():_0x39e4c3[_0x40deea('0x2339')]['app'][_0x40deea('0xc2e')]()){case'custom':break;case _0x40deea('0x5e1'):{const _0x1c197e=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xd6b')][_0x40deea('0x1497')](',');_0x39e4c3['voicemail']['key']=_0x1c197e[0x0],_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x175b')]=_0x1c197e[0x1],_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xf50')]=_0x1c197e[_0x40deea('0x845')](0x2,_0x1c197e['length'])[_0x40deea('0x185f')](',');}break;case _0x40deea('0x137a'):{const _0x10fe3a=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xd6b')][_0x40deea('0x1497')](',');_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x27f2')]=_0x10fe3a[0x0],_0x39e4c3['voicemail']['secretaccesskey']=_0x10fe3a[0x1],_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xb70')]=_0x10fe3a[0x2],_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x4eb')]=_0x10fe3a[0x3],_0x39e4c3[_0x40deea('0x2339')]['welcomemessage']=_0x10fe3a[_0x40deea('0x845')](0x4,_0x10fe3a[_0x40deea('0x2566')])[_0x40deea('0x185f')](',');}break;case _0x40deea('0x808'):{const _0x4c29c0=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xd6b')]['split'](',');_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x5fd')]=isNaN(_0x4c29c0[0x0])?_0x4c29c0[0x0]:parseInt(_0x4c29c0[0x0],0xa),_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x16db')]=_0x4c29c0[_0x40deea('0x845')](0x1,_0x4c29c0['length'])[_0x40deea('0x185f')](',');}break;case _0x40deea('0x15e2'):_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x16db')]=_0x39e4c3['voicemail'][_0x40deea('0xd6b')];break;case _0x40deea('0x3a6'):_0x39e4c3['voicemail'][_0x40deea('0x1a8d')]=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0xd6b')][_0x40deea('0x1497')]('=')[0x0],_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x49')]=_0x39e4c3['voicemail'][_0x40deea('0xd6b')][_0x40deea('0x1497')]('=')[0x1];break;case _0x40deea('0x2631'):_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1bf6')]=_0x39e4c3[_0x40deea('0x2339')]['appdata'];break;default:{const _0x187d61=_0x39e4c3['voicemail']['appdata'][_0x40deea('0x1497')](',');_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1e3d')]=_0x283545()['isEmpty'](_0x187d61[0x0])?_0x187d61[0x0]:isNaN(_0x187d61[0x0])?_0x187d61[0x0]:parseInt(_0x187d61[0x0],0xa),_0x39e4c3[_0x40deea('0x2339')]['options']=_0x283545()[_0x40deea('0x213d')](_0x187d61[0x1])?_0x187d61[0x1]:isNaN(_0x187d61[0x1])?_0x187d61[0x1]:parseInt(_0x187d61[0x1],0xa);}break;}else{}_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1d7')]&&_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1d7')][_0x40deea('0xc2e')]()===_0x40deea('0x1')&&_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x167b')][_0x40deea('0xc2e')]()==='outbounddial'&&(_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1f71')]=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1224')]?_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x1224')][_0x40deea('0x1497')]('$')[0x0]:undefined,_0x39e4c3[_0x40deea('0x2339')]['callerId']=_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x8de')]?_0x40deea('0x1834')+_0x39e4c3[_0x40deea('0x2339')][_0x40deea('0x8de')]:undefined);_0x39e4c3['saveInboundRouteApp']=_0x39cf89,_0x39e4c3[_0x40deea('0xca7')]=_0x368cda,_0x179a7b['hasRole'](_0x40deea('0xe23'))?_0x4ea86c[_0x40deea('0x1e3d')]['get']({'fields':_0x40deea('0x1783'),'sort':'mailbox','nolimit':_0x40deea('0x1001')})[_0x40deea('0x1714')][_0x40deea('0x2788')](function(_0x29f170){const _0x41f7a2=_0x40deea;_0x39e4c3[_0x41f7a2('0x2800')]=_0x29f170[_0x41f7a2('0x25df')]||[];})[_0x40deea('0x1cb5')](function(_0x4318d9){const _0x57fa3e=_0x40deea;_0x272cd0[_0x57fa3e('0x5e8')]({'title':_0x4318d9[_0x57fa3e('0x1b51')]?'API:'+_0x4318d9['status']+_0x57fa3e('0x1b0b')+_0x4318d9[_0x57fa3e('0x22ce')]:_0x57fa3e('0x1081'),'msg':_0x4318d9['data']?JSON[_0x57fa3e('0x1be0')](_0x4318d9[_0x57fa3e('0x11fc')]):_0x4318d9[_0x57fa3e('0x17df')]()});}):_0x4ea86c['voiceMail'][_0x40deea('0x1335')]({'fields':_0x40deea('0x1783'),'sort':_0x40deea('0x1dd'),'nolimit':_0x40deea('0x1001')})[_0x40deea('0x1714')]['then'](function(_0x9dfd94){const _0x42f1da=_0x40deea;_0x39e4c3[_0x42f1da('0x2800')]=_0x9dfd94[_0x42f1da('0x25df')]||[];})[_0x40deea('0x2788')](function(){const _0x47e9e7=_0x40deea;return _0x4ea86c[_0x47e9e7('0xec9')]['get']({'userProfileId':_0x39e4c3[_0x47e9e7('0x9cb')][_0x47e9e7('0x237f')],'sectionId':0x196})['$promise'];})[_0x40deea('0x2788')](function(_0x27df7f){const _0x5d4336=_0x40deea,_0x480348=_0x27df7f&&_0x27df7f[_0x5d4336('0x25df')]?_0x27df7f['rows'][0x0]:null;if(!_0x480348){const _0x4d52d1=[];let _0x42b487=null;_0x39e4c3[_0x5d4336('0x2339')]&&(_0x42b487=_0x283545()[_0x5d4336('0x20e8')](_0x39e4c3['voiceMails'],{'mailbox':_0x39e4c3['voicemail'][_0x5d4336('0x1e3d')]}));for(let _0x9929af=0x0;_0x9929af<_0x39e4c3['voiceMails'][_0x5d4336('0x2566')];_0x9929af++){_0x42b487&&_0x39e4c3['voiceMails'][_0x9929af]['id']===_0x42b487['id']&&(_0x39e4c3['voiceMails'][_0x9929af][_0x5d4336('0x3bf')]=![],_0x4d52d1['push'](_0x39e4c3['voiceMails'][_0x9929af]));}_0x39e4c3[_0x5d4336('0x2800')]=_0x4d52d1;}else{if(!_0x480348[_0x5d4336('0x1c0a')])return _0x4ea86c[_0x5d4336('0x1050')]['get']({'sectionId':_0x480348['id']})['$promise'][_0x5d4336('0x2788')](function(_0x152e24){const _0x5d6a63=_0x5d4336,_0x299ba2=_0x283545()[_0x5d6a63('0x155d')](_0x152e24['rows'],function(_0x447c77){const _0xf5b195=_0x5d6a63;return _0x283545()[_0xf5b195('0x20e8')](_0x39e4c3[_0xf5b195('0x2800')],{'id':_0x447c77[_0xf5b195('0x2707')]});});let _0x245a09=null;_0x39e4c3[_0x5d6a63('0x2339')]&&(_0x245a09=_0x283545()[_0x5d6a63('0x20e8')](_0x39e4c3[_0x5d6a63('0x2800')],{'mailbox':_0x39e4c3[_0x5d6a63('0x2339')][_0x5d6a63('0x1e3d')]}));if(_0x245a09&&!_0x283545()[_0x5d6a63('0xc5d')](_0x299ba2,['id',_0x245a09['id']])){const _0x327eb7=_0x283545()[_0x5d6a63('0x20e8')](_0x39e4c3['voiceMails'],{'id':_0x245a09['id']});_0x327eb7['canSelect']=![],_0x299ba2[_0x5d6a63('0x13e3')](_0x327eb7);}_0x39e4c3[_0x5d6a63('0x2800')]=_0x299ba2;});}})[_0x40deea('0x1cb5')](function(_0x630457){const _0x472e31=_0x40deea;_0x272cd0[_0x472e31('0x5e8')]({'title':_0x630457['status']?'API:'+_0x630457[_0x472e31('0x1b51')]+_0x472e31('0x1b0b')+_0x630457[_0x472e31('0x22ce')]:_0x472e31('0x282e'),'msg':_0x630457['data']?JSON[_0x472e31('0x1be0')](_0x630457[_0x472e31('0x11fc')]):_0x630457[_0x472e31('0x17df')]()});});function _0x39cf89(){const _0x19f923=_0x40deea;_0x39e4c3[_0x19f923('0x25be')]=[];const _0x5bef39=[];_0x39e4c3[_0x19f923('0x2339')]['type']&&_0x39e4c3['voicemail'][_0x19f923('0x1d7')][_0x19f923('0xc2e')]()===_0x19f923('0x1')&&_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x167b')]==='outboundDial'&&(_0x39e4c3['voicemail'][_0x19f923('0x1224')]=_0x4101cb[_0x19f923('0x277c')]?(_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x1f71')]||'')+_0x19f923('0x124d')+_0x4101cb[_0x19f923('0x277c')]+'}':(_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x1f71')]||'')+'${EXTEN}',_0x4101cb[_0x19f923('0x801')]!==_0x19f923('0x1dc')?_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x784')][_0x19f923('0x821')](_0x19f923('0x1609'))<0x0&&(_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x784')]+=_0x19f923('0x1609')):_0x39e4c3[_0x19f923('0x2339')]['options']=_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x784')][_0x19f923('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x39e4c3['voicemail']['appType']&&_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x167b')]===_0x19f923('0x1d56')){}else switch((_0x39e4c3['voicemail'][_0x19f923('0x8a5')]||_0x39e4c3['voicemail']['appType'])['toLowerCase']()){case'set':_0x39e4c3['voicemail'][_0x19f923('0xd6b')]=_0x39e4c3[_0x19f923('0x2339')]['name']+'='+_0x39e4c3['voicemail'][_0x19f923('0x49')];break;case _0x19f923('0x1d56'):break;default:_0x5bef39[0x0]=_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x1e3d')],_0x5bef39[0x1]=_0x39e4c3[_0x19f923('0x2339')][_0x19f923('0x784')],_0x39e4c3[_0x19f923('0x2339')]['appdata']=_0x5bef39[_0x19f923('0x185f')](',');}_0x368cda(_0x39e4c3['voicemail']);}function _0x368cda(_0x17e4b2){_0x301b98['hide'](_0x17e4b2);}}const _0x28c3ac=_0x27a733;_0xc301da[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'inboundroute',_0x34e79e('0xec9')];function _0xc301da(_0x6fcc85,_0x518d3a,_0x66bb6e,_0x3923f6,_0x209fc0,_0x128a9a,_0x17dd3f,_0x297936,_0x33c573,_0xf91fae,_0x5dde58,_0x2e18f1){const _0x29a3c2=_0x34e79e,_0x2628c4=this;_0x2628c4['currentUser']=_0xf91fae[_0x29a3c2('0x24cc')](),_0x2628c4['license']=_0x128a9a,_0x2628c4[_0x29a3c2('0x1af0')]=_0x17dd3f,_0x2628c4['passwordPattern']=_0x2628c4['setting'][_0x29a3c2('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2628c4[_0x29a3c2('0xe9')]=_0x518d3a[_0x29a3c2('0x170c')]()+_0x29a3c2('0x726')+_0x518d3a[_0x29a3c2('0x1c6a')](),_0x2628c4[_0x29a3c2('0x26ea')]=_0x5dde58||_0x6fcc85[_0x29a3c2('0x4b9')]['inboundroute']||{},_0x2628c4[_0x29a3c2('0xec9')]=_0x2e18f1&&_0x2e18f1[_0x29a3c2('0x338')]==0x1?_0x2e18f1[_0x29a3c2('0x25df')][0x0]:null,_0x2628c4[_0x29a3c2('0xe28')]=_0xf91fae[_0x29a3c2('0x157e')](_0x2628c4[_0x29a3c2('0xec9')]?_0x2628c4[_0x29a3c2('0xec9')][_0x29a3c2('0xe28')]:null),_0x2628c4['hasModulePermissions']={},_0x2628c4['selectedTab']=_0x6fcc85[_0x29a3c2('0x4b9')][_0x29a3c2('0x24f6')]||0x0,_0x2628c4[_0x29a3c2('0x204f')]=_0x33c573['info'],_0x2628c4['gotoInboundRoutes']=_0xdf4df9,_0x2628c4[_0x29a3c2('0x198d')]=_0x202522,_0xf91fae[_0x29a3c2('0x1516')](_0x29a3c2('0xe23'))?_0x297936['voiceContext'][_0x29a3c2('0x1335')]({'fields':'id,name','sort':_0x29a3c2('0x1a8d'),'nolimit':_0x29a3c2('0x1001')})[_0x29a3c2('0x1714')][_0x29a3c2('0x2788')](function(_0x5832bf){const _0x316b30=_0x29a3c2;_0x2628c4[_0x316b30('0xf3e')]=_0x5832bf['rows']||[];})['catch'](function(_0x47deea){const _0x25b14a=_0x29a3c2;_0x33c573[_0x25b14a('0x5e8')]({'title':_0x47deea[_0x25b14a('0x1b51')]?_0x25b14a('0x15d1')+_0x47deea[_0x25b14a('0x1b51')]+_0x25b14a('0x1b0b')+_0x47deea[_0x25b14a('0x22ce')]:_0x25b14a('0x15f7'),'msg':_0x47deea[_0x25b14a('0x11fc')]?JSON[_0x25b14a('0x1be0')](_0x47deea[_0x25b14a('0x11fc')]):_0x47deea[_0x25b14a('0x17df')]()});}):_0x297936[_0x29a3c2('0x15cc')][_0x29a3c2('0x1335')]({'fields':_0x29a3c2('0x1338'),'sort':_0x29a3c2('0x1a8d'),'nolimit':_0x29a3c2('0x1001')})['$promise'][_0x29a3c2('0x2788')](function(_0x4299bb){const _0x4b97fc=_0x29a3c2;_0x2628c4[_0x4b97fc('0xf3e')]=_0x4299bb['rows']||[];})[_0x29a3c2('0x2788')](function(){const _0x36eb8=_0x29a3c2;return _0x297936['userProfileSection']['get']({'userProfileId':_0x2628c4[_0x36eb8('0x9cb')][_0x36eb8('0x237f')],'sectionId':0x195})[_0x36eb8('0x1714')];})[_0x29a3c2('0x2788')](function(_0x4525af){const _0x5e2402=_0x29a3c2,_0x96d3a=_0x4525af&&_0x4525af[_0x5e2402('0x25df')]?_0x4525af['rows'][0x0]:null;if(!_0x96d3a)return _0x297936[_0x5e2402('0x15cc')][_0x5e2402('0x1335')]({'fields':_0x5e2402('0x1338'),'sort':_0x5e2402('0x1a8d'),'nolimit':_0x5e2402('0x1001'),'defaultEntry':0x1})[_0x5e2402('0x1714')][_0x5e2402('0x2788')](function(_0x418507){const _0x3e040f=_0x5e2402;_0x2628c4[_0x3e040f('0xf3e')]=_0x418507[_0x3e040f('0x25df')]||[];});else{if(!_0x96d3a[_0x5e2402('0x1c0a')])return _0x297936[_0x5e2402('0x1050')][_0x5e2402('0x1335')]({'sectionId':_0x96d3a['id']})[_0x5e2402('0x1714')][_0x5e2402('0x2788')](function(_0xc19bcc){const _0x3eab2f=_0x5e2402,_0x166342=_0x283545()['map'](_0xc19bcc[_0x3eab2f('0x25df')],function(_0x1b8f21){const _0x1b07b0=_0x3eab2f;return _0x283545()[_0x1b07b0('0x20e8')](_0x2628c4['contexts'],{'id':_0x1b8f21['resourceId']});});let _0x23bdad=null;_0x2628c4[_0x3eab2f('0x26ea')]&&(_0x23bdad=_0x283545()['find'](_0x2628c4[_0x3eab2f('0xf3e')],{'name':_0x2628c4[_0x3eab2f('0x26ea')]['context']}));if(_0x23bdad&&!_0x283545()['some'](_0x166342,['id',_0x23bdad['id']])){const _0x295136=_0x283545()[_0x3eab2f('0x20e8')](_0x2628c4[_0x3eab2f('0xf3e')],{'id':_0x23bdad['id']});_0x295136[_0x3eab2f('0x3bf')]=![],_0x166342['push'](_0x295136);}_0x2628c4[_0x3eab2f('0xf3e')]=_0x166342;});}})[_0x29a3c2('0x1cb5')](function(_0x556780){const _0x4ef9b3=_0x29a3c2;_0x33c573['error']({'title':_0x556780[_0x4ef9b3('0x1b51')]?_0x4ef9b3('0x15d1')+_0x556780[_0x4ef9b3('0x1b51')]+_0x4ef9b3('0x1b0b')+_0x556780['statusText']:'SYSTEM:GETcontexts','msg':_0x556780[_0x4ef9b3('0x11fc')]?JSON['stringify'](_0x556780[_0x4ef9b3('0x11fc')]):_0x556780[_0x4ef9b3('0x17df')]()});});function _0xdf4df9(){const _0x480b9a=_0x29a3c2;_0x6fcc85['go']('app.voice.inboundroutes',{},{'reload':_0x480b9a('0x1b98')});}function _0x202522(){const _0x5d0b51=_0x29a3c2;_0x297936[_0x5d0b51('0x2636')][_0x5d0b51('0x2740')]({'id':_0x2628c4[_0x5d0b51('0x26ea')]['id']},_0x2628c4['inboundroute'])[_0x5d0b51('0x1714')]['then'](function(){const _0x134f5f=_0x5d0b51;_0x33c573[_0x134f5f('0x173b')]({'title':_0x134f5f('0x1bb6'),'msg':_0x2628c4['inboundroute'][_0x134f5f('0x1a8d')]?_0x2628c4['inboundroute'][_0x134f5f('0x1a8d')]+_0x134f5f('0x6f8'):''});})[_0x5d0b51('0x1cb5')](function(_0x5f884a){const _0x16a001=_0x5d0b51;_0x33c573[_0x16a001('0x5e8')]({'title':_0x5f884a[_0x16a001('0x1b51')]?'API:'+_0x5f884a[_0x16a001('0x1b51')]+_0x16a001('0x1b0b')+_0x5f884a[_0x16a001('0x22ce')]:_0x16a001('0x2078'),'msg':_0x5f884a['data']?JSON[_0x16a001('0x1be0')](_0x5f884a[_0x16a001('0x11fc')]):_0x5f884a[_0x16a001('0x17df')]()});});}}const _0x251c0a=_0xc301da,_0x156037=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html';_0x411da9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0xb5d'),_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license','setting'];function _0x411da9(_0x48284f,_0x131627,_0x55fa12,_0x184da5,_0xccf2c,_0x4b5efb,_0x222a99,_0x2d8ecf,_0x15f25d,_0xd908e0,_0x54f538,_0xb6281d,_0x364b65,_0x16163e,_0xd44da6,_0x22449,_0x352f93){const _0x106ff0=_0x34e79e,_0x4e9f7d=this;_0x4e9f7d[_0x106ff0('0x130d')]=_0x22449,_0x4e9f7d['setting']=_0x352f93,_0x4e9f7d[_0x106ff0('0x9cb')]=_0xd44da6[_0x106ff0('0x24cc')](),_0x4e9f7d[_0x106ff0('0xb5d')]=_0x15f25d||{'count':0x0,'rows':[]},_0x4e9f7d['userProfile']=_0xd908e0,_0x4e9f7d[_0x106ff0('0xec9')]=_0x54f538&&_0x54f538[_0x106ff0('0x338')]==0x1?_0x54f538['rows'][0x0]:null,_0x4e9f7d[_0x106ff0('0xe28')]=_0xd44da6[_0x106ff0('0x157e')](_0x4e9f7d[_0x106ff0('0xec9')]?_0x4e9f7d[_0x106ff0('0xec9')]['crudPermissions']:null),_0x4e9f7d[_0x106ff0('0x26a9')]='inboundroutes',_0x4e9f7d[_0x106ff0('0x2278')]='',_0x4e9f7d[_0x106ff0('0x25e2')]=null,_0x4e9f7d['selectedInboundRoutes']=[],_0x4e9f7d['query']={'fields':_0x106ff0('0x1a1a'),'type':_0x106ff0('0x2e4'),'sort':_0x106ff0('0x1cee'),'VoiceExtensionId':_0x106ff0('0x954'),'limit':0xa,'page':0x1},_0x4e9f7d[_0x106ff0('0x1f7e')]=_0x44a383,_0x4e9f7d[_0x106ff0('0x1e5')]=_0x469121,_0x4e9f7d[_0x106ff0('0x173b')]=_0x282334,_0x4e9f7d[_0x106ff0('0x12a')]=_0x31cd87,_0x4e9f7d[_0x106ff0('0x2315')]=_0x1f3005,_0x4e9f7d['deleteInboundRoute']=_0x46dfad,_0x4e9f7d[_0x106ff0('0x1a76')]=_0x17d9ec,_0x4e9f7d['deleteSelectedInboundRoutes']=_0x2bc195,_0x4e9f7d[_0x106ff0('0x871')]=_0x216602,_0x4e9f7d[_0x106ff0('0x1248')]=_0x132b09,_0xd44da6[_0x106ff0('0x1516')](_0x106ff0('0xe23'))?_0xb6281d[_0x106ff0('0x15cc')][_0x106ff0('0x1335')]({'fields':_0x106ff0('0x1338'),'sort':'name','nolimit':_0x106ff0('0x1001')})[_0x106ff0('0x1714')][_0x106ff0('0x2788')](function(_0x5a569f){const _0x5dfb07=_0x106ff0;_0x4e9f7d[_0x5dfb07('0xf3e')]=_0x5a569f[_0x5dfb07('0x25df')]||[];})[_0x106ff0('0x1cb5')](function(_0x9669b1){const _0x213c77=_0x106ff0;_0x16163e['error']({'title':_0x9669b1['status']?_0x213c77('0x15d1')+_0x9669b1[_0x213c77('0x1b51')]+_0x213c77('0x1b0b')+_0x9669b1['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x9669b1[_0x213c77('0x11fc')]?JSON[_0x213c77('0x1be0')](_0x9669b1[_0x213c77('0x11fc')]):_0x9669b1['toString']()});}):_0xb6281d[_0x106ff0('0x15cc')][_0x106ff0('0x1335')]({'fields':'id,name','sort':_0x106ff0('0x1a8d'),'nolimit':_0x106ff0('0x1001')})[_0x106ff0('0x1714')][_0x106ff0('0x2788')](function(_0x4d6ee0){const _0x428400=_0x106ff0;_0x4e9f7d[_0x428400('0xf3e')]=_0x4d6ee0[_0x428400('0x25df')]||[];})[_0x106ff0('0x2788')](function(){const _0x346ba1=_0x106ff0;return _0xb6281d[_0x346ba1('0xec9')][_0x346ba1('0x1335')]({'userProfileId':_0x4e9f7d[_0x346ba1('0x9cb')][_0x346ba1('0x237f')],'sectionId':0x195})[_0x346ba1('0x1714')];})[_0x106ff0('0x2788')](function(_0x155fe1){const _0x5ea590=_0x106ff0,_0x72764b=_0x155fe1&&_0x155fe1[_0x5ea590('0x25df')]?_0x155fe1[_0x5ea590('0x25df')][0x0]:null;if(!_0x72764b)return _0xb6281d[_0x5ea590('0x15cc')][_0x5ea590('0x1335')]({'fields':_0x5ea590('0x1338'),'sort':_0x5ea590('0x1a8d'),'nolimit':_0x5ea590('0x1001'),'defaultEntry':0x1})['$promise'][_0x5ea590('0x2788')](function(_0x56fb4f){const _0x3c7b35=_0x5ea590;_0x4e9f7d['contexts']=_0x56fb4f[_0x3c7b35('0x25df')]||[];});else{if(!_0x72764b[_0x5ea590('0x1c0a')])return _0xb6281d[_0x5ea590('0x1050')][_0x5ea590('0x1335')]({'sectionId':_0x72764b['id']})[_0x5ea590('0x1714')][_0x5ea590('0x2788')](function(_0x2fe5c8){const _0x3f75c1=_0x5ea590,_0x5b6f56=_0x283545()[_0x3f75c1('0x155d')](_0x2fe5c8[_0x3f75c1('0x25df')],function(_0x8d5c3f){const _0x380e4e=_0x3f75c1;return _0x283545()[_0x380e4e('0x20e8')](_0x4e9f7d[_0x380e4e('0xf3e')],{'id':_0x8d5c3f[_0x380e4e('0x2707')]});});let _0x35dab5=null;_0x4e9f7d[_0x3f75c1('0x26ea')]&&(_0x35dab5=_0x283545()[_0x3f75c1('0x20e8')](_0x4e9f7d[_0x3f75c1('0xf3e')],{'name':_0x4e9f7d[_0x3f75c1('0x26ea')][_0x3f75c1('0x1f3b')]}));if(_0x35dab5&&!_0x283545()[_0x3f75c1('0xc5d')](_0x5b6f56,['id',_0x35dab5['id']])){const _0x1eaa3b=_0x283545()[_0x3f75c1('0x20e8')](_0x4e9f7d[_0x3f75c1('0xf3e')],{'id':_0x35dab5['id']});_0x1eaa3b[_0x3f75c1('0x3bf')]=![],_0x5b6f56[_0x3f75c1('0x13e3')](_0x1eaa3b);}_0x4e9f7d[_0x3f75c1('0xf3e')]=_0x5b6f56;});}})['catch'](function(_0x115271){const _0xac070e=_0x106ff0;_0x16163e[_0xac070e('0x5e8')]({'title':_0x115271['status']?_0xac070e('0x15d1')+_0x115271[_0xac070e('0x1b51')]+'\x20-\x20'+_0x115271['statusText']:'SYSTEM:GETcontexts','msg':_0x115271['data']?JSON[_0xac070e('0x1be0')](_0x115271[_0xac070e('0x11fc')]):_0x115271['toString']()});});function _0x44a383(_0xcef261){const _0x2f21ec=_0x106ff0;_0x55fa12['go'](_0x2f21ec('0x1ccb'),{'id':_0xcef261['id'],'inboundroute':_0xcef261,'crudPermissions':_0x4e9f7d[_0x2f21ec('0xe28')]});}function _0x469121(_0x26f452,_0x365c9a){const _0x460b2e=_0x106ff0,_0x59c9e6=_0xccf2c[_0x460b2e('0x112e')]()[_0x460b2e('0x14e4')](_0x460b2e('0x2114')+_0x283545()[_0x460b2e('0x114')](_0x460b2e('0x26ea'))+'?')[_0x460b2e('0x93e')](_0x460b2e('0x1670')+(_0x26f452[_0x460b2e('0x1a8d')]||'inboundroute')+_0x460b2e('0x229e')+'\x20will\x20be\x20deleted.')[_0x460b2e('0x10bc')](_0x460b2e('0x1adb'))[_0x460b2e('0x24d0')](_0x365c9a)['ok']('OK')['cancel'](_0x460b2e('0x1d8d'));_0xccf2c['show'](_0x59c9e6)[_0x460b2e('0x2788')](function(){_0x46dfad(_0x26f452);},function(){const _0x465e3f=_0x460b2e;console[_0x465e3f('0x10df')](_0x465e3f('0x1d8d'));});}let _0x5712d2=!![],_0x502c8b=0x1;_0x48284f['$watch']('vm.query.filter',function(_0x59c0f2,_0x4ea75a){const _0x5c3728=_0x106ff0;_0x5712d2?_0x222a99(function(){_0x5712d2=![];}):(!_0x4ea75a&&(_0x502c8b=_0x4e9f7d[_0x5c3728('0x135a')][_0x5c3728('0x23f5')]),_0x59c0f2!==_0x4ea75a&&(_0x4e9f7d[_0x5c3728('0x135a')]['page']=0x1),!_0x59c0f2&&(_0x4e9f7d[_0x5c3728('0x135a')][_0x5c3728('0x23f5')]=_0x502c8b),_0x4e9f7d[_0x5c3728('0x12a')]());});function _0x282334(_0x5f0dc9){const _0x1b4cfc=_0x106ff0;_0x4e9f7d[_0x1b4cfc('0xb5d')]=_0x5f0dc9||{'count':0x0,'rows':[]};}function _0x31cd87(){const _0x5719c1=_0x106ff0;_0x4e9f7d['query'][_0x5719c1('0x19e')]=(_0x4e9f7d[_0x5719c1('0x135a')][_0x5719c1('0x23f5')]-0x1)*_0x4e9f7d['query'][_0x5719c1('0x68e')],_0xd44da6[_0x5719c1('0x1516')](_0x5719c1('0xe23'))?_0x4e9f7d[_0x5719c1('0x1808')]=_0xb6281d['voiceExtension']['get'](_0x4e9f7d[_0x5719c1('0x135a')],_0x282334)[_0x5719c1('0x1714')]:(_0x4e9f7d[_0x5719c1('0x135a')]['id']=_0x4e9f7d['userProfile']['id'],_0x4e9f7d[_0x5719c1('0x135a')][_0x5719c1('0xb13')]=_0x5719c1('0x9c5'),_0x4e9f7d[_0x5719c1('0x1808')]=_0xb6281d[_0x5719c1('0x63c')][_0x5719c1('0xa1')](_0x4e9f7d['query'],_0x282334)[_0x5719c1('0x1714')]);}function _0x1f3005(_0x2f5ffb,_0x1f43c8){const _0x240b76=_0x106ff0;_0xccf2c[_0x240b76('0x2fa')]({'controller':_0x240b76('0x1d96'),'controllerAs':'vm','templateUrl':_0x156037,'parent':angular[_0x240b76('0x16b1')](_0x4b5efb['body']),'targetEvent':_0x2f5ffb,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x1f43c8,'inboundroutes':_0x4e9f7d[_0x240b76('0xb5d')][_0x240b76('0x25df')],'license':_0x4e9f7d[_0x240b76('0x130d')],'setting':_0x4e9f7d['setting'],'crudPermissions':_0x4e9f7d['crudPermissions']}});}function _0x46dfad(_0x37324){const _0x34b34f=_0x106ff0;_0xb6281d[_0x34b34f('0x2636')][_0x34b34f('0x17c4')]({'id':_0x37324['id']})[_0x34b34f('0x1714')][_0x34b34f('0x2788')](function(){const _0x27d668=_0x34b34f;_0x283545()['remove'](_0x4e9f7d['inboundroutes'][_0x27d668('0x25df')],{'id':_0x37324['id']}),_0x4e9f7d[_0x27d668('0xb5d')][_0x27d668('0x338')]-=0x1,!_0x4e9f7d[_0x27d668('0xb5d')][_0x27d668('0x25df')][_0x27d668('0x2566')]&&_0x4e9f7d[_0x27d668('0x12a')](),_0x16163e[_0x27d668('0x173b')]({'title':_0x283545()[_0x27d668('0x114')]('InboundRoute')+'\x20deleted!','msg':_0x37324[_0x27d668('0x1a8d')]?_0x37324[_0x27d668('0x1a8d')]+_0x27d668('0x14d4'):''});})[_0x34b34f('0x1cb5')](function(_0x5c9bad){const _0x57a758=_0x34b34f;if(_0x5c9bad[_0x57a758('0x11fc')]&&_0x5c9bad[_0x57a758('0x11fc')]['errors']&&_0x5c9bad['data']['errors']['length']){_0x4e9f7d[_0x57a758('0x25be')]=_0x5c9bad[_0x57a758('0x11fc')]['errors']||[{'message':_0x5c9bad[_0x57a758('0x17df')](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x5115cf=0x0;_0x5115cf<_0x5c9bad[_0x57a758('0x11fc')][_0x57a758('0x25be')][_0x57a758('0x2566')];_0x5115cf++){_0x16163e[_0x57a758('0x5e8')]({'title':_0x5c9bad['data'][_0x57a758('0x25be')][_0x5115cf][_0x57a758('0x1d7')],'msg':_0x5c9bad[_0x57a758('0x11fc')]['errors'][_0x5115cf][_0x57a758('0x15e2')]});}}else _0x16163e[_0x57a758('0x5e8')]({'title':_0x5c9bad[_0x57a758('0x1b51')]?_0x57a758('0x15d1')+_0x5c9bad['status']+_0x57a758('0x1b0b')+_0x5c9bad[_0x57a758('0x22ce')]:'SYSTEM:DELETEvoiceExtension','msg':_0x5c9bad[_0x57a758('0x11fc')]?JSON[_0x57a758('0x1be0')](_0x5c9bad[_0x57a758('0x11fc')]['message']):_0x5c9bad[_0x57a758('0x15e2')]||_0x5c9bad[_0x57a758('0x17df')]()});});}function _0x17d9ec(){const _0x86457a=_0x106ff0,_0x2c7544=angular[_0x86457a('0x2669')](_0x4e9f7d[_0x86457a('0x2656')]);return _0x4e9f7d[_0x86457a('0x2656')]=[],_0x2c7544;}function _0x2bc195(_0x361ce9){const _0x596d12=_0x106ff0,_0x459fcd=_0xccf2c[_0x596d12('0x112e')]()[_0x596d12('0x14e4')](_0x596d12('0x27ea'))[_0x596d12('0x93e')](_0x596d12('0x1670')+_0x4e9f7d[_0x596d12('0x2656')][_0x596d12('0x2566')]+_0x596d12('0xbd')+_0x596d12('0x27c7'))[_0x596d12('0x10bc')](_0x596d12('0x2603'))[_0x596d12('0x24d0')](_0x361ce9)['ok']('OK')[_0x596d12('0x1801')](_0x596d12('0x1d8d'));_0xccf2c[_0x596d12('0x2fa')](_0x459fcd)[_0x596d12('0x2788')](function(){const _0x4de152=_0x596d12;_0x4e9f7d[_0x4de152('0x2656')][_0x4de152('0x1534')](function(_0x5088eb){_0x46dfad(_0x5088eb);}),_0x4e9f7d[_0x4de152('0x2656')]=[];});}function _0x216602(){_0x4e9f7d['selectedInboundRoutes']=[];}function _0x132b09(){const _0x4a4048=_0x106ff0;_0x4e9f7d['selectedInboundRoutes']=_0x4e9f7d[_0x4a4048('0xb5d')][_0x4a4048('0x25df')];}}const _0x3d06c9=_0x411da9;_0x3d2f82[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),'$location','$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x40d'),'internalroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x3d2f82(_0x2a4c5b,_0x222fc0,_0x865b0a,_0x3b3134,_0x425e9b,_0x155220,_0x1cf7e8,_0x30ec77,_0x24e067,_0x2fa26a,_0x1da253,_0x309753,_0x42f47a,_0x1c813a){const _0x1f6d57=_0x34e79e,_0x1bc694=this;_0x1bc694['currentUser']=_0x1da253[_0x1f6d57('0x24cc')](),_0x1bc694[_0x1f6d57('0x25be')]=[],_0x1bc694['setting']=_0x42f47a,_0x1bc694['license']=_0x309753,_0x1bc694[_0x1f6d57('0xe28')]=_0x1c813a,_0x1bc694[_0x1f6d57('0x1193')]={},_0x1bc694[_0x1f6d57('0x18ad')]=_0x1bc694[_0x1f6d57('0x1af0')]&&_0x1bc694[_0x1f6d57('0x1af0')][_0x1f6d57('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1bc694[_0x1f6d57('0x14e4')]=_0x1f6d57('0x18f'),_0x1bc694[_0x1f6d57('0x24e5')]=angular[_0x1f6d57('0x2669')](_0x24e067),_0x1bc694[_0x1f6d57('0x40d')]=_0x30ec77,_0x1bc694[_0x1f6d57('0x2586')]=![];!_0x1bc694[_0x1f6d57('0x24e5')]&&(_0x1bc694[_0x1f6d57('0x24e5')]={'appdata':'Internal\x20Call','type':_0x1f6d57('0x2838'),'context':_0x1f6d57('0x15b1')},_0x1bc694['title']=_0x1f6d57('0x12e7'),_0x1bc694[_0x1f6d57('0x2586')]=!![]);_0x1bc694[_0x1f6d57('0x1c17')]=_0x303dd8,_0x1bc694[_0x1f6d57('0x1d5f')]=_0x4b1db2,_0x1bc694[_0x1f6d57('0xb96')]=_0x517d61,_0x1bc694[_0x1f6d57('0x2601')]=_0x469321,_0x1bc694['closeDialog']=_0x5cecd5,_0x1da253[_0x1f6d57('0x1516')](_0x1f6d57('0xe23'))?_0x2fa26a[_0x1f6d57('0x15cc')][_0x1f6d57('0x1335')]({'fields':_0x1f6d57('0x1338'),'sort':_0x1f6d57('0x1a8d'),'nolimit':_0x1f6d57('0x1001')})['$promise'][_0x1f6d57('0x2788')](function(_0x504767){const _0x561bef=_0x1f6d57;_0x1bc694[_0x561bef('0xf3e')]=_0x504767[_0x561bef('0x25df')]||[];})['catch'](function(_0x53a414){const _0x2bfd5c=_0x1f6d57;_0x1cf7e8[_0x2bfd5c('0x5e8')]({'title':_0x53a414['status']?_0x2bfd5c('0x15d1')+_0x53a414[_0x2bfd5c('0x1b51')]+_0x2bfd5c('0x1b0b')+_0x53a414[_0x2bfd5c('0x22ce')]:'SYSTEM:GET_CONTEXTS','msg':_0x53a414[_0x2bfd5c('0x11fc')]?JSON['stringify'](_0x53a414[_0x2bfd5c('0x11fc')]):_0x53a414[_0x2bfd5c('0x17df')]()});}):_0x2fa26a[_0x1f6d57('0x15cc')][_0x1f6d57('0x1335')]({'fields':_0x1f6d57('0x1338'),'sort':_0x1f6d57('0x1a8d'),'nolimit':_0x1f6d57('0x1001')})['$promise'][_0x1f6d57('0x2788')](function(_0x55e497){_0x1bc694['contexts']=_0x55e497['rows']||[];})[_0x1f6d57('0x2788')](function(){const _0x49b864=_0x1f6d57;return _0x2fa26a[_0x49b864('0xec9')][_0x49b864('0x1335')]({'userProfileId':_0x1bc694[_0x49b864('0x9cb')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x1f6d57('0x2788')](function(_0x4a8958){const _0xb107be=_0x1f6d57,_0x3a2b61=_0x4a8958&&_0x4a8958[_0xb107be('0x25df')]?_0x4a8958['rows'][0x0]:null;if(!_0x3a2b61)return _0x2fa26a[_0xb107be('0x15cc')]['get']({'fields':'id,name','sort':_0xb107be('0x1a8d'),'nolimit':_0xb107be('0x1001'),'defaultEntry':0x1})[_0xb107be('0x1714')][_0xb107be('0x2788')](function(_0x43c999){const _0x494687=_0xb107be;_0x1bc694[_0x494687('0xf3e')]=_0x43c999[_0x494687('0x25df')]||[];});else{if(!_0x3a2b61[_0xb107be('0x1c0a')])return _0x2fa26a[_0xb107be('0x1050')]['get']({'sectionId':_0x3a2b61['id']})[_0xb107be('0x1714')][_0xb107be('0x2788')](function(_0x20fcc5){const _0x27f602=_0xb107be,_0x38511e=_0x283545()[_0x27f602('0x155d')](_0x20fcc5['rows'],function(_0x2e56de){const _0x1f2d8f=_0x27f602;return _0x283545()['find'](_0x1bc694[_0x1f2d8f('0xf3e')],{'id':_0x2e56de[_0x1f2d8f('0x2707')]});});let _0x1ead27=null;_0x1bc694['internalroute']&&(_0x1ead27=_0x283545()[_0x27f602('0x20e8')](_0x1bc694[_0x27f602('0xf3e')],{'name':_0x1bc694[_0x27f602('0x24e5')][_0x27f602('0x1f3b')]}));if(_0x1ead27&&!_0x283545()[_0x27f602('0xc5d')](_0x38511e,['id',_0x1ead27['id']])){const _0x13585c=_0x283545()[_0x27f602('0x20e8')](_0x1bc694[_0x27f602('0xf3e')],{'id':_0x1ead27['id']});_0x13585c[_0x27f602('0x3bf')]=![],_0x38511e[_0x27f602('0x13e3')](_0x13585c);}_0x1bc694['contexts']=_0x38511e;});}})[_0x1f6d57('0x1cb5')](function(_0x9d7e33){const _0x134d1d=_0x1f6d57;_0x1cf7e8[_0x134d1d('0x5e8')]({'title':_0x9d7e33[_0x134d1d('0x1b51')]?_0x134d1d('0x15d1')+_0x9d7e33[_0x134d1d('0x1b51')]+_0x134d1d('0x1b0b')+_0x9d7e33['statusText']:_0x134d1d('0x265a'),'msg':_0x9d7e33['data']?JSON[_0x134d1d('0x1be0')](_0x9d7e33[_0x134d1d('0x11fc')]):_0x9d7e33[_0x134d1d('0x17df')]()});});function _0x303dd8(){const _0xc43646=_0x1f6d57;_0x1bc694[_0xc43646('0x25be')]=[],_0x2fa26a[_0xc43646('0x2636')][_0xc43646('0xbd0')](_0x1bc694[_0xc43646('0x24e5')])[_0xc43646('0x1714')][_0xc43646('0x2788')](function(_0x5f3537){const _0x2ea68d=_0xc43646;_0x1bc694[_0x2ea68d('0x40d')][_0x2ea68d('0xc51')](_0x5f3537[_0x2ea68d('0x1cbf')]()),_0x1cf7e8[_0x2ea68d('0x173b')]({'title':'InternalRoute\x20properly\x20created','msg':_0x1bc694[_0x2ea68d('0x24e5')][_0x2ea68d('0x1a8d')]?_0x1bc694[_0x2ea68d('0x24e5')][_0x2ea68d('0x1a8d')]+_0x2ea68d('0x1e4a'):''}),_0x5cecd5(_0x5f3537);})[_0xc43646('0x1cb5')](function(_0x4da280){const _0xa4a395=_0xc43646;if(_0x4da280[_0xa4a395('0x11fc')]&&_0x4da280['data'][_0xa4a395('0x25be')]&&_0x4da280[_0xa4a395('0x11fc')][_0xa4a395('0x25be')]['length']){_0x1bc694['errors']=_0x4da280[_0xa4a395('0x11fc')][_0xa4a395('0x25be')]||[{'message':_0x4da280[_0xa4a395('0x17df')](),'type':_0xa4a395('0x1695')}];for(let _0x5c0e56=0x0;_0x5c0e56<_0x4da280[_0xa4a395('0x11fc')][_0xa4a395('0x25be')]['length'];_0x5c0e56+=0x1){_0x1cf7e8[_0xa4a395('0x5e8')]({'title':_0x4da280['data']['errors'][_0x5c0e56][_0xa4a395('0x1d7')],'msg':_0x4da280[_0xa4a395('0x11fc')]['errors'][_0x5c0e56][_0xa4a395('0x15e2')]});}}else _0x1cf7e8[_0xa4a395('0x5e8')]({'title':_0x4da280[_0xa4a395('0x1b51')]?_0xa4a395('0x15d1')+_0x4da280['status']+_0xa4a395('0x1b0b')+_0x4da280[_0xa4a395('0x22ce')]:_0xa4a395('0x1695'),'msg':_0x4da280[_0xa4a395('0x11fc')]?JSON[_0xa4a395('0x1be0')](_0x4da280[_0xa4a395('0x11fc')][_0xa4a395('0x15e2')]):_0x4da280[_0xa4a395('0x17df')]()});});}function _0x4b1db2(){const _0x5c1ab2=_0x1f6d57;_0x1bc694[_0x5c1ab2('0x25be')]=[],_0x2fa26a[_0x5c1ab2('0x2636')][_0x5c1ab2('0x2740')]({'id':_0x1bc694['internalroute']['id']},_0x1bc694[_0x5c1ab2('0x24e5')])[_0x5c1ab2('0x1714')][_0x5c1ab2('0x2788')](function(_0x3640cd){const _0x95ee42=_0x5c1ab2,_0x1f6b7c=_0x283545()[_0x95ee42('0x20e8')](_0x1bc694[_0x95ee42('0x40d')],{'id':_0x3640cd['id']});_0x1f6b7c&&_0x283545()[_0x95ee42('0x2503')](_0x1f6b7c,_0x283545()['pick'](_0x3640cd[_0x95ee42('0x1cbf')](),_0x283545()[_0x95ee42('0x2163')](_0x1f6b7c))),_0x1cf7e8[_0x95ee42('0x173b')]({'title':_0x95ee42('0x1cb4'),'msg':_0x1bc694['internalroute'][_0x95ee42('0x1a8d')]?_0x1bc694[_0x95ee42('0x24e5')]['name']+_0x95ee42('0x24cf'):''}),_0x5cecd5(_0x3640cd);})['catch'](function(_0x5ac22a){const _0x7de163=_0x5c1ab2;if(_0x5ac22a[_0x7de163('0x11fc')]&&_0x5ac22a[_0x7de163('0x11fc')][_0x7de163('0x25be')]&&_0x5ac22a[_0x7de163('0x11fc')]['errors'][_0x7de163('0x2566')]){_0x1bc694[_0x7de163('0x25be')]=_0x5ac22a['data'][_0x7de163('0x25be')]||[{'message':_0x5ac22a['toString'](),'type':_0x7de163('0x38')}];for(let _0x36fc46=0x0;_0x36fc46<_0x5ac22a[_0x7de163('0x11fc')][_0x7de163('0x25be')][_0x7de163('0x2566')];_0x36fc46++){_0x1cf7e8['error']({'title':_0x5ac22a['data']['errors'][_0x36fc46][_0x7de163('0x1d7')],'msg':_0x5ac22a[_0x7de163('0x11fc')][_0x7de163('0x25be')][_0x36fc46]['message']});}}else _0x1cf7e8[_0x7de163('0x5e8')]({'title':_0x5ac22a[_0x7de163('0x1b51')]?_0x7de163('0x15d1')+_0x5ac22a[_0x7de163('0x1b51')]+_0x7de163('0x1b0b')+_0x5ac22a[_0x7de163('0x22ce')]:_0x7de163('0x38'),'msg':_0x5ac22a[_0x7de163('0x11fc')]?JSON[_0x7de163('0x1be0')](_0x5ac22a[_0x7de163('0x11fc')][_0x7de163('0x15e2')]):_0x5ac22a[_0x7de163('0x17df')]()});});}function _0x517d61(_0x11d6d2){const _0x40e93e=_0x1f6d57;_0x1bc694[_0x40e93e('0x25be')]=[];const _0x35c341=_0x3b3134[_0x40e93e('0x112e')]()['title']('Are\x20you\x20sure?')[_0x40e93e('0x1c98')](_0x40e93e('0x1a05'))[_0x40e93e('0x10bc')]('Delete\x20InternalRoute')['ok']('Delete')['cancel'](_0x40e93e('0x1481'))[_0x40e93e('0x24d0')](_0x11d6d2);_0x3b3134[_0x40e93e('0x2fa')](_0x35c341)['then'](function(){const _0x38f4d1=_0x40e93e;_0x2fa26a[_0x38f4d1('0x2636')][_0x38f4d1('0x17c4')]({'id':_0x1bc694[_0x38f4d1('0x24e5')]['id']})[_0x38f4d1('0x1714')]['then'](function(){const _0x2187bd=_0x38f4d1;_0x283545()[_0x2187bd('0x1a90')](_0x1bc694['internalroutes'],{'id':_0x1bc694[_0x2187bd('0x24e5')]['id']}),_0x1cf7e8[_0x2187bd('0x173b')]({'title':'InternalRoute\x20properly\x20deleted!','msg':(_0x1bc694['internalroute']['name']||_0x2187bd('0x24e5'))+_0x2187bd('0x14d4')}),_0x5cecd5(_0x1bc694[_0x2187bd('0x24e5')]);})[_0x38f4d1('0x1cb5')](function(_0x2d997b){const _0x212188=_0x38f4d1;if(_0x2d997b[_0x212188('0x11fc')]&&_0x2d997b[_0x212188('0x11fc')][_0x212188('0x25be')]&&_0x2d997b[_0x212188('0x11fc')]['errors']['length']){_0x1bc694[_0x212188('0x25be')]=_0x2d997b['data'][_0x212188('0x25be')]||[{'message':_0x2d997b['toString'](),'type':'api.voiceExtension.delete'}];for(let _0x1bb91a=0x0;_0x1bb91a<_0x2d997b[_0x212188('0x11fc')]['errors']['length'];_0x1bb91a++){_0x1cf7e8[_0x212188('0x5e8')]({'title':_0x2d997b[_0x212188('0x11fc')][_0x212188('0x25be')][_0x1bb91a][_0x212188('0x1d7')],'msg':_0x2d997b[_0x212188('0x11fc')][_0x212188('0x25be')][_0x1bb91a][_0x212188('0x15e2')]});}}else _0x1cf7e8[_0x212188('0x5e8')]({'title':_0x2d997b[_0x212188('0x1b51')]?_0x212188('0x15d1')+_0x2d997b[_0x212188('0x1b51')]+_0x212188('0x1b0b')+_0x2d997b['statusText']:_0x212188('0x1e7d'),'msg':_0x2d997b['data']?JSON['stringify'](_0x2d997b[_0x212188('0x11fc')]['message']):_0x2d997b[_0x212188('0x15e2')]||_0x2d997b['toString']()});});},function(){});}function _0x469321(_0x4ccad0){return _0x4ccad0===null?undefined:new Date(_0x4ccad0);}function _0x5cecd5(_0xbd0ae8){const _0x1e4201=_0x1f6d57;_0x3b3134[_0x1e4201('0x19d')](_0xbd0ae8);}}const _0x30cc21=_0x3d2f82,_0xef9fe3=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html',_0x5c48d1=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html',_0xf3875a=_0x18dd13['p']+_0x34e79e('0x1aec'),_0x40bdec=_0x18dd13['p']+_0x34e79e('0x14e0'),_0x118ccb=_0x18dd13['p']+_0x34e79e('0x197d'),_0x841ae5=_0x18dd13['p']+_0x34e79e('0x22c1'),_0x494794=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html',_0x3e8b61=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html',_0x121db1=_0x18dd13['p']+_0x34e79e('0x708'),_0x497e01=_0x18dd13['p']+_0x34e79e('0x129e'),_0xda0140=_0x18dd13['p']+_0x34e79e('0x2d1'),_0x33d1a4=_0x18dd13['p']+_0x34e79e('0xe94'),_0x38a8c1=_0x18dd13['p']+_0x34e79e('0x1187');_0x4a8c68[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty','Auth'];const _0x1aabd7={'agi':_0xef9fe3,'custom':_0x5c48d1,'dial':_0xf3875a,'externaldial':_0x40bdec,'goto':_0x118ccb,'hangup':_0x841ae5,'internaldial':_0x494794,'interval':_0x3e8b61,'playback':_0x121db1,'queue':_0x497e01,'ringgroup':_0xda0140,'set':_0x33d1a4,'voicemail':_0x38a8c1};function _0x4a8c68(_0x372fa6,_0x5d7eb0,_0xc17845,_0x51816c,_0x4dd5bd){const _0xd4ad37=_0x34e79e,_0x47009f=this;_0x47009f[_0xd4ad37('0x9cb')]=_0x4dd5bd[_0xd4ad37('0x24cc')](),_0x47009f[_0xd4ad37('0x24e5')]={},_0x47009f[_0xd4ad37('0x1907')]={'count':0x0,'rows':[]},_0x47009f[_0xd4ad37('0xd8b')]=[],_0x47009f[_0xd4ad37('0xe28')],_0x47009f[_0xd4ad37('0x135a')]={'sort':'priority'},_0x47009f[_0xd4ad37('0x105')]=_0x283545()[_0xd4ad37('0x9')](_0x283545()[_0xd4ad37('0x8ce')]([{'app':_0xd4ad37('0x27dd'),'appType':_0xd4ad37('0x2630'),'type':'Internal','types':[_0xd4ad37('0xc8f'),_0xd4ad37('0x1d56'),_0xd4ad37('0x4b2')],'fields':[],'isApp':![]},{'app':_0xd4ad37('0x107f'),'appType':_0xd4ad37('0x1ab4'),'context':'from-sip','type':_0xd4ad37('0x2663'),'options':'xX','appdata':_0xd4ad37('0x1eac'),'icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0xd4ad37('0x16ca'),'field':{'name':_0xd4ad37('0x216d'),'key':_0xd4ad37('0xc52'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0xd4ad37('0x216d'),'filters':{'fields':_0xd4ad37('0x1480'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0xd4ad37('0x283e'),'field':{'name':_0xd4ad37('0x1ab4'),'key':_0xd4ad37('0x1a8d')},'route':_0xd4ad37('0x2043'),'filters':{'type':_0xd4ad37('0x2e4'),'fields':'id,name,type','sort':'name','nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0xd4ad37('0x107f'),'name':'queue','type':'apiselect','values':_0xd4ad37('0x283e'),'value':'queue.name','option':_0xd4ad37('0x158'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':_0xd4ad37('0x16db'),'param':0x1},{'title':_0xd4ad37('0x334'),'name':_0xd4ad37('0x5'),'type':_0xd4ad37('0x16db'),'param':0x2},{'title':_0xd4ad37('0x25d0'),'name':_0xd4ad37('0x216d'),'type':'apiselect','values':_0xd4ad37('0x16ca'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','option':_0xd4ad37('0x990'),'defaultValues':[{'value':'\x27\x27','option':_0xd4ad37('0x1d8f')}],'param':0x3},{'title':_0xd4ad37('0xa7e'),'name':_0xd4ad37('0x24e4'),'type':_0xd4ad37('0x272c'),'min':0x0,'param':0x4},{'title':_0xd4ad37('0x172e'),'name':_0xd4ad37('0x2631'),'type':'text','param':0x5},{'title':_0xd4ad37('0xc6d'),'name':'macro','type':_0xd4ad37('0x16db'),'param':0x6},{'title':_0xd4ad37('0xd49'),'name':_0xd4ad37('0x557'),'type':_0xd4ad37('0x16db'),'param':0x7},{'title':_0xd4ad37('0xf0b'),'name':_0xd4ad37('0x1b87'),'type':_0xd4ad37('0x16db'),'param':0x8},{'title':_0xd4ad37('0x20af'),'name':_0xd4ad37('0x1fef'),'type':_0xd4ad37('0x272c'),'min':0x0,'param':0x9},{'title':_0xd4ad37('0x1e90'),'name':_0xd4ad37('0xb1c'),'type':_0xd4ad37('0xf9e'),'general':!![]}]},{'app':_0xd4ad37('0x13a2'),'appType':'playback','context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0xd4ad37('0xd6b'),'key':_0xd4ad37('0xc52'),'prefix':_0xd4ad37('0xd05')},'route':_0xd4ad37('0x216d'),'filters':{'fields':_0xd4ad37('0x1480'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0xd4ad37('0x1df8'),'name':'appdata','type':_0xd4ad37('0x2519'),'values':_0xd4ad37('0x16ca'),'value':_0xd4ad37('0x69d'),'option':_0xd4ad37('0x18'),'required':!![],'param':0x0},{'title':_0xd4ad37('0x2748'),'name':_0xd4ad37('0x784'),'type':_0xd4ad37('0x16db'),'param':0x1},{'title':_0xd4ad37('0x1e90'),'name':'answer','type':_0xd4ad37('0xf9e'),'general':!![]}]},{'app':_0xd4ad37('0x1a7d'),'appType':_0xd4ad37('0x17e6'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':'icon-apps','options':'xX','interval':_0xd4ad37('0x2191'),'isApp':!![],'fields':[{'title':_0xd4ad37('0x224'),'name':_0xd4ad37('0x2494'),'type':'text','required':!![],'param':0x0},{'title':_0xd4ad37('0xa7e'),'name':_0xd4ad37('0x24e4'),'type':_0xd4ad37('0x272c'),'min':0x0,'param':0x1},{'title':_0xd4ad37('0x2748'),'name':_0xd4ad37('0x784'),'type':_0xd4ad37('0x16db'),'param':0x2},{'title':_0xd4ad37('0x334'),'name':_0xd4ad37('0x1672'),'type':_0xd4ad37('0x16db'),'param':0x3}]},{'app':'Dial','appType':_0xd4ad37('0x1c25'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':_0xd4ad37('0x21ff'),'options':'xX','interval':_0xd4ad37('0x2191'),'isApp':!![],'extraApi':[{'name':_0xd4ad37('0x1e42'),'field':{'name':_0xd4ad37('0x1e6a'),'key':_0xd4ad37('0x1a8d'),'prefix':_0xd4ad37('0x30b')},'route':_0xd4ad37('0x1e6a'),'filters':{'fields':'id,name,role','sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0xd4ad37('0x188b')},{'id':0xcb,'role':_0xd4ad37('0x23ab')}]}}],'fields':[{'title':_0xd4ad37('0x1832'),'name':_0xd4ad37('0x1e6a'),'type':_0xd4ad37('0x2519'),'values':'users','value':_0xd4ad37('0x19cd'),'option':_0xd4ad37('0x1e58'),'required':!![],'param':0x0},{'title':'Timeout','name':_0xd4ad37('0x24e4'),'type':'number','min':0x0,'param':0x1},{'title':_0xd4ad37('0x2748'),'name':_0xd4ad37('0x784'),'type':_0xd4ad37('0x16db'),'param':0x2},{'title':_0xd4ad37('0x334'),'name':_0xd4ad37('0x1672'),'type':_0xd4ad37('0x16db'),'param':0x3}]},{'app':'Dial','appType':_0xd4ad37('0x2c2'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':_0xd4ad37('0x20f2'),'field':{'name':_0xd4ad37('0x2549'),'key':_0xd4ad37('0x1a8d')},'route':_0xd4ad37('0x2549'),'filters':{'fields':_0xd4ad37('0x1338'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':_0xd4ad37('0x2549'),'type':'apiselect','values':_0xd4ad37('0x20f2'),'value':'trunk.name','option':_0xd4ad37('0x217b'),'required':!![],'param':0x0},{'title':_0xd4ad37('0x1c43'),'name':_0xd4ad37('0x1224'),'type':_0xd4ad37('0x16db')},{'title':_0xd4ad37('0xa7e'),'name':'timeout','type':_0xd4ad37('0x272c'),'min':0x0,'param':0x1},{'title':_0xd4ad37('0x2748'),'name':_0xd4ad37('0x784'),'type':_0xd4ad37('0x16db'),'param':0x2},{'title':_0xd4ad37('0x334'),'name':'url','type':_0xd4ad37('0x16db'),'param':0x3}]},{'app':_0xd4ad37('0x1a7d'),'appType':_0xd4ad37('0x1bfb'),'context':'from-sip','type':'Internal','icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':_0xd4ad37('0x1e42'),'field':{'name':_0xd4ad37('0x10c7'),'key':_0xd4ad37('0x1a8d'),'prefix':_0xd4ad37('0x30b')},'route':'user','filters':{'fields':_0xd4ad37('0x17a1'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0xd4ad37('0x188b')},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0xd4ad37('0x1832'),'name':_0xd4ad37('0x10c7'),'type':_0xd4ad37('0x2519'),'multiple':!![],'values':_0xd4ad37('0x1e42'),'value':_0xd4ad37('0x57f'),'option':_0xd4ad37('0x222a'),'required':!![],'param':0x0},{'title':_0xd4ad37('0xa7e'),'name':_0xd4ad37('0x24e4'),'type':_0xd4ad37('0x272c'),'min':0x0,'param':0x1},{'title':'Options','name':_0xd4ad37('0x784'),'type':_0xd4ad37('0x16db'),'param':0x2},{'title':'Url','name':_0xd4ad37('0x1672'),'type':_0xd4ad37('0x16db'),'param':0x3}]},{'app':_0xd4ad37('0xc8d'),'alias':'CallySquare','appType':_0xd4ad37('0x2631'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':_0xd4ad37('0x21ff'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xd4ad37('0x18f9'),'field':{'name':'project','key':'name','prefix':_0xd4ad37('0x1fde')},'route':'squareProject','filters':{'fields':'id,name','sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0xd4ad37('0x5b8'),'name':'project','type':_0xd4ad37('0x2519'),'values':'projects','value':_0xd4ad37('0x1fa2'),'option':_0xd4ad37('0x21b9'),'required':!![],'param':0x0}]},{'app':_0xd4ad37('0x1500'),'appType':_0xd4ad37('0x22fb'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':'icon-apps','interval':_0xd4ad37('0x2191'),'isApp':!![],'extraApi':[{'name':'contexts','field':{'name':_0xd4ad37('0x1f3b'),'key':_0xd4ad37('0x1a8d')},'route':'voiceContext','filters':{'fields':_0xd4ad37('0x1338'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0xd4ad37('0x1f3b'),'type':'apiselect','values':_0xd4ad37('0xf3e'),'value':_0xd4ad37('0x11d2'),'option':_0xd4ad37('0x11d2'),'required':!![],'param':0x0},{'title':_0xd4ad37('0xa29'),'name':_0xd4ad37('0x1eb7'),'type':_0xd4ad37('0x16db'),'required':!![],'param':0x1},{'title':_0xd4ad37('0x14ef'),'name':'priority','type':_0xd4ad37('0x16db'),'required':!![],'param':0x2}]},{'app':'hangup','appType':_0xd4ad37('0x42c'),'context':_0xd4ad37('0x15b1'),'type':_0xd4ad37('0x2663'),'icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'isApp':!![],'fields':[{'title':_0xd4ad37('0x15c3'),'name':'appdata','type':_0xd4ad37('0x983'),'param':0x0,'values':[{'option':_0xd4ad37('0x1233'),'value':_0xd4ad37('0x27c2')},{'option':_0xd4ad37('0x15cd'),'value':_0xd4ad37('0x1c8f')},{'option':'HANGUPCAUSE_17','value':_0xd4ad37('0x2124')},{'option':_0xd4ad37('0x3f3'),'value':_0xd4ad37('0x21f4')},{'option':_0xd4ad37('0x1242'),'value':_0xd4ad37('0x846')},{'option':_0xd4ad37('0x23d5'),'value':_0xd4ad37('0x1fd4')},{'option':'HANGUPCAUSE_27','value':_0xd4ad37('0x1baa')},{'option':'HANGUPCAUSE_38','value':_0xd4ad37('0x181c')},{'option':_0xd4ad37('0x2016'),'value':_0xd4ad37('0x77c')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0xd4ad37('0x16b2'),'appType':_0xd4ad37('0x3a6'),'context':'from-sip','type':_0xd4ad37('0x2663'),'separator':'=','icon':_0xd4ad37('0x21ff'),'interval':_0xd4ad37('0x2191'),'extraApi':[{'name':_0xd4ad37('0xf76'),'field':{'name':_0xd4ad37('0x1a8d'),'key':_0xd4ad37('0x1a8d')},'route':'variable','filters':{'fields':_0xd4ad37('0x1338'),'sort':_0xd4ad37('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0xd4ad37('0x158c'),'name':'name','type':'apiselect','values':_0xd4ad37('0xf76'),'value':'name.name','option':_0xd4ad37('0x7ac'),'required':!![],'param':0x0},{'title':_0xd4ad37('0x165a'),'name':_0xd4ad37('0x49'),'type':_0xd4ad37('0x16db'),'required':!![],'param':0x1}]},{'app':null,'appType':_0xd4ad37('0x1d56'),'icon':_0xd4ad37('0x21ff'),'type':_0xd4ad37('0x2663'),'interval':_0xd4ad37('0x2191'),'isApp':!![],'fields':[{'title':_0xd4ad37('0x26ec'),'name':_0xd4ad37('0x8a5'),'type':'text','required':!![],'param':0x0},{'title':_0xd4ad37('0x675'),'name':_0xd4ad37('0xd6b'),'type':_0xd4ad37('0x16db'),'param':0x1}]},{'app':_0xd4ad37('0x1920'),'appType':_0xd4ad37('0x2339'),'context':'from-sip','icon':_0xd4ad37('0x21ff'),'type':'Internal','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'voiceMails','field':{'name':_0xd4ad37('0x1e3d'),'key':_0xd4ad37('0x1dd'),'suffix':_0xd4ad37('0x12f6')},'route':_0xd4ad37('0x1e3d'),'filters':{'fields':_0xd4ad37('0x1783'),'sort':_0xd4ad37('0x1dd'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0xd4ad37('0x1b3c'),'name':_0xd4ad37('0x1e3d'),'type':_0xd4ad37('0x2519'),'values':_0xd4ad37('0x2800'),'value':_0xd4ad37('0x2496'),'option':_0xd4ad37('0x2044'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':_0xd4ad37('0x16db'),'param':0x1}]}],[_0xd4ad37('0x8a5')]),{'isApp':![]}),_0x47009f[_0xd4ad37('0x4b2')]={'group':{'name':_0xd4ad37('0x134b'),'pull':_0xd4ad37('0x1b8')},'animation':0x64,'sort':![]},_0x47009f[_0xd4ad37('0x26de')]={'group':{'name':_0xd4ad37('0x2268'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x16bc60){const _0x1e110c=_0xd4ad37;_0x497487(_0x16bc60,_0x16bc60[_0x1e110c('0x7da')]);},'onSort':function(){_0x335792();}},_0x47009f['init']=_0x121e95,_0x47009f[_0xd4ad37('0x16a')]=_0x41f1b6,_0x47009f[_0xd4ad37('0x1eee')]=_0x47a92c,_0x47009f[_0xd4ad37('0x234a')]=_0x497487,_0x47009f['editInterval']=_0x50761b,_0x47009f[_0xd4ad37('0xe74')]=_0x4312ff,_0x47009f['deleteSelectedInternalRouteApps']=_0x572dcc,_0x47009f['rewriteRouting']=_0x335792,_0x47009f[_0xd4ad37('0x1963')]=_0x4998cf;function _0x121e95(_0x4480f0,_0x2393f8){const _0x16c588=_0xd4ad37;_0x47009f[_0x16c588('0x24e5')]=_0x4480f0,_0x47009f[_0x16c588('0xe28')]=typeof _0x2393f8!==_0x16c588('0xedb')?_0x2393f8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x47009f[_0x16c588('0x26de')][_0x16c588('0x1112')]=!_0x47009f[_0x16c588('0xe28')][_0x16c588('0x21b7')]?!![]:![],_0x47009f[_0x16c588('0x135a')]['VoiceExtensionId']=_0x4480f0['id'],_0x47009f[_0x16c588('0x135a')]['isApp']=!![],_0x47009f[_0x16c588('0x135a')]['nolimit']=!![],_0x47009f[_0x16c588('0x1eee')](),_0x47009f['getIntervals']();}function _0x41f1b6(_0x21f91a,_0x87fc58,_0x18ec1b){const _0x3d0315=_0xd4ad37,_0x48f459=_0x5d7eb0[_0x3d0315('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x3d0315('0x1670')+_0x21f91a[_0x3d0315('0x8a5')]+_0x3d0315('0x229e')+_0x3d0315('0x27c7'))[_0x3d0315('0x10bc')](_0x3d0315('0xdd6'))[_0x3d0315('0x24d0')](_0x18ec1b)['ok']('OK')['cancel'](_0x3d0315('0x1d8d'));_0x5d7eb0[_0x3d0315('0x2fa')](_0x48f459)[_0x3d0315('0x2788')](function(){const _0x30cb51=_0x3d0315;_0x47009f[_0x30cb51('0x1907')]['rows'][_0x30cb51('0x722')](_0x87fc58,0x1),_0x335792();},function(){const _0x5e6b90=_0x3d0315;console[_0x5e6b90('0x10df')](_0x5e6b90('0x1d8d'));});}function _0x497487(_0xb0619a,_0x1dae6d){const _0x22bd1c=_0xd4ad37;if(_0x47009f[_0x22bd1c('0x1907')][_0x22bd1c('0x25df')]['length']){const _0x3ee9f1=_0x47009f['internalrouteApps']['rows'][_0x1dae6d]?_0x47009f[_0x22bd1c('0x1907')][_0x22bd1c('0x25df')][_0x1dae6d]:_0x47009f[_0x22bd1c('0x1907')][_0x22bd1c('0x25df')][0x0],_0x3119d3=(_0x3ee9f1[_0x22bd1c('0x167b')]||_0x3ee9f1[_0x22bd1c('0x8a5')])[_0x22bd1c('0xc2e')]();_0x5d7eb0[_0x22bd1c('0x2fa')]({'controller':_0x22bd1c('0x1f14')+_0x3119d3+_0x22bd1c('0x100d'),'controllerAs':'vm','templateUrl':_0x1aabd7[_0x3119d3],'parent':angular[_0x22bd1c('0x16b1')](_0xc17845[_0x22bd1c('0x945')]),'targetEvent':_0xb0619a,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x3ee9f1,'internalroute':_0x47009f[_0x22bd1c('0x24e5')],'crudPermissions':_0x47009f[_0x22bd1c('0xe28')]}})['then'](function(_0x3f837a){const _0x279d65=_0x22bd1c;_0x3f837a&&(_0x3f837a['id']?_0x47009f['internalrouteApps'][_0x279d65('0x25df')][_0x1dae6d]=_0x3f837a:_0x47009f[_0x279d65('0x1907')][_0x279d65('0x25df')]['splice'](_0x1dae6d,0x0,_0x3f837a),_0x335792());})[_0x22bd1c('0x1cb5')](function(_0x539753){const _0x1c4df2=_0x22bd1c;_0x539753&&_0x51816c[_0x1c4df2('0x5e8')]({'title':_0x539753[_0x1c4df2('0x1b51')]?'API:'+_0x539753[_0x1c4df2('0x1b51')]+_0x1c4df2('0x1b0b')+_0x539753[_0x1c4df2('0x22ce')]:_0x1c4df2('0x239b'),'msg':_0x539753[_0x1c4df2('0x11fc')]?JSON[_0x1c4df2('0x1be0')](_0x539753[_0x1c4df2('0x11fc')]):_0x539753[_0x1c4df2('0x17df')]()});});}}function _0x50761b(_0x131b05,_0x1bfa09){const _0x3e7fe2=_0xd4ad37;if(_0x47009f[_0x3e7fe2('0x1907')][_0x3e7fe2('0x25df')][_0x3e7fe2('0x2566')]){const _0x15a525=_0x47009f[_0x3e7fe2('0x1907')][_0x3e7fe2('0x25df')][_0x1bfa09]?_0x47009f[_0x3e7fe2('0x1907')][_0x3e7fe2('0x25df')][_0x1bfa09]:_0x47009f[_0x3e7fe2('0x1907')][_0x3e7fe2('0x25df')][0x0];_0x5d7eb0['show']({'controller':_0x3e7fe2('0x1624'),'controllerAs':'vm','templateUrl':_0x3e8b61,'parent':angular['element'](_0xc17845['body']),'targetEvent':_0x131b05,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x15a525[_0x3e7fe2('0x2630')],'IntervalId':_0x15a525[_0x3e7fe2('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x47009f['crudPermissions']}})[_0x3e7fe2('0x2788')](function(_0x332026){const _0x28644f=_0x3e7fe2;_0x332026&&(_0x15a525[_0x28644f('0x2630')]=_0x332026[_0x28644f('0x2630')]||_0x28644f('0x2191'),_0x15a525[_0x28644f('0x20d0')]=_0x332026[_0x28644f('0x20d0')]||null,_0x335792());});}}function _0x335792(){const _0x491435=_0xd4ad37,_0x227876=['queue',_0x491435('0x211')];let _0x123881=0x2,_0x4c6d43=[];_0x4c6d43[_0x491435('0x13e3')]({'type':_0x491435('0x2838'),'app':'Set','appdata':_0x491435('0x2439'),'context':_0x47009f[_0x491435('0x24e5')]['context'],'exten':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')],'priority':_0x123881++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}),_0x4c6d43['push']({'type':_0x491435('0x2838'),'app':_0x491435('0x16b2'),'appdata':_0x491435('0x365'),'context':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],'exten':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')],'priority':_0x123881++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}),_0x4c6d43[_0x491435('0x13e3')]({'type':'internal','app':_0x491435('0x16b2'),'appdata':_0x491435('0x2283'),'context':_0x47009f[_0x491435('0x24e5')]['context'],'exten':_0x47009f['internalroute']['exten'],'priority':_0x123881++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}),_0x4c6d43[_0x491435('0x13e3')]({'type':'internal','app':'Set','appdata':_0x491435('0x2711'),'context':_0x47009f['internalroute']['context'],'exten':_0x47009f['internalroute'][_0x491435('0x1d6f')],'priority':_0x123881++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']});for(let _0x9f3967=0x0,_0x47f41f=0x0;_0x9f3967<_0x47009f[_0x491435('0x1907')][_0x491435('0x25df')][_0x491435('0x2566')];_0x9f3967++,_0x47f41f=0x0){const _0x319657=_0x47009f[_0x491435('0x1907')][_0x491435('0x25df')][_0x9f3967],_0x3f3bdf=[],_0x13c0e3=[];_0x319657[_0x491435('0xec5')]=_0x319657['interval']!==_0x491435('0x2191')?[_0x319657[_0x491435('0x2630')]]:_0x319657[_0x491435('0x20d0')]?_0x283545()[_0x491435('0x155d')](_0x283545()[_0x491435('0x916')](_0x47009f[_0x491435('0xec5')][_0x491435('0x25df')],{'IntervalId':_0x319657[_0x491435('0x20d0')]}),'interval'):[],_0x319657[_0x491435('0x1f3b')]=_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],_0x319657[_0x491435('0x1d6f')]=_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')];_0x319657['type']&&(_0x319657[_0x491435('0x1d7')]=_0x319657[_0x491435('0x1d7')][_0x491435('0xc2e')]());typeof _0x319657[_0x491435('0xb1c')]!==_0x491435('0xedb')&&(_0x227876['includes'](_0x319657[_0x491435('0x8a5')][_0x491435('0xc2e')]())&&_0x319657[_0x491435('0x167b')]!==_0x491435('0x1d56')&&(_0x319657[_0x491435('0xb1c')]?(_0x3f3bdf[_0x491435('0x13e3')]({'type':_0x319657['type'][_0x491435('0xc2e')](),'app':'ExecIf','appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],'exten':_0x47009f[_0x491435('0x24e5')]['exten'],'priority':_0x319657[_0x491435('0xec5')][_0x491435('0x2566')]+_0x123881+_0x47f41f++,'VoiceExtensionId':_0x47009f['internalroute']['id']}),_0x3f3bdf[_0x491435('0x13e3')]({'type':_0x319657[_0x491435('0x1d7')][_0x491435('0xc2e')](),'app':_0x491435('0x16b2'),'appdata':_0x491435('0x18f1'),'context':_0x47009f[_0x491435('0x24e5')]['context'],'exten':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')],'priority':_0x319657['intervals'][_0x491435('0x2566')]+_0x123881+_0x47f41f++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']})):(_0x3f3bdf['push']({'type':_0x319657['type'][_0x491435('0xc2e')](),'app':_0x491435('0x947'),'appdata':_0x491435('0xc60'),'context':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],'exten':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')],'priority':_0x319657['intervals'][_0x491435('0x2566')]+_0x123881+_0x47f41f++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}),_0x3f3bdf[_0x491435('0x13e3')]({'type':_0x319657['type'][_0x491435('0xc2e')](),'app':_0x491435('0x16b2'),'appdata':_0x491435('0x18c'),'context':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],'exten':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1d6f')],'priority':_0x319657[_0x491435('0xec5')][_0x491435('0x2566')]+_0x123881+_0x47f41f++,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}))));for(let _0x4041d5=0x0;_0x4041d5<_0x319657[_0x491435('0xec5')][_0x491435('0x2566')];_0x4041d5++){const _0x3b96d2=_0x123881+_0x319657[_0x491435('0xec5')][_0x491435('0x2566')],_0x32295f=_0x4041d5===_0x319657[_0x491435('0xec5')]['length']-0x1?_0x123881+_0x3f3bdf['length']+_0x13c0e3['length']+0x2:_0x123881+_0x4041d5+0x1;_0x3f3bdf[_0x491435('0x722')](_0x4041d5,0x0,{'type':_0x491435('0x2838'),'app':_0x491435('0x1740'),'appdata':_0x319657[_0x491435('0xec5')][_0x4041d5]+'?'+_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')]+_0x491435('0xf23')+_0x3b96d2+':'+_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')]+_0x491435('0xf23')+_0x32295f,'exten':_0x47009f[_0x491435('0x24e5')]['exten'],'context':_0x47009f[_0x491435('0x24e5')][_0x491435('0x1f3b')],'priority':_0x123881+_0x4041d5,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']});}_0x319657[_0x491435('0x155b')]=_0x3f3bdf[_0x491435('0x2566')]?_0x283545()[_0x491435('0x1d39')](_0x3f3bdf)['priority']+0x1:_0x123881,_0x123881=(_0x13c0e3['length']?_0x283545()[_0x491435('0x1d39')](_0x13c0e3)['priority']:_0x319657[_0x491435('0x155b')])+0x1,_0x4c6d43=_0x283545()['concat'](_0x4c6d43,_0x3f3bdf,[_0x319657],_0x13c0e3);}_0x4c6d43[_0x491435('0x13e3')]({'type':'internal','app':_0x491435('0x1265'),'exten':_0x47009f['internalroute'][_0x491435('0x1d6f')],'context':_0x47009f['internalroute']['context'],'priority':_0x123881,'VoiceExtensionId':_0x47009f[_0x491435('0x24e5')]['id']}),_0x372fa6[_0x491435('0x2636')][_0x491435('0x109')]({'id':_0x47009f['internalroute']['id']},_0x283545()['sortBy'](_0x4c6d43,_0x491435('0x155b')))[_0x491435('0x1714')][_0x491435('0x2788')](function(_0x188aee){const _0x1d5823=_0x491435;_0x47009f['internalrouteApps']['rows']=_0x188aee[_0x1d5823('0x25df')];})[_0x491435('0x1cb5')](function(_0x4ede22){const _0x3ede33=_0x491435;console[_0x3ede33('0x5e8')](_0x4ede22);});}function _0x43a7e8(_0x41885b){const _0x5a5724=_0xd4ad37;_0x47009f[_0x5a5724('0x1907')]=_0x41885b||{'count':0x0,'rows':[]};}function _0x4998cf(){const _0x17e2fa=_0xd4ad37;return _0x372fa6['interval'][_0x17e2fa('0x1335')]({'fields':_0x17e2fa('0x12c6')})[_0x17e2fa('0x1714')][_0x17e2fa('0x2788')](function(_0x451b28){_0x47009f['intervals']=_0x451b28;})['catch'](function(_0x203c50){console['error'](_0x203c50);});}function _0x47a92c(){const _0x14f914=_0xd4ad37;_0x47009f['promise']=_0x372fa6[_0x14f914('0x2636')]['get'](_0x47009f[_0x14f914('0x135a')],_0x43a7e8)['$promise'];}function _0x4312ff(_0x101cc3){const _0x53df04=_0xd4ad37;_0x283545()[_0x53df04('0x1a90')](_0x47009f['internalrouteApps'][_0x53df04('0x25df')],{'id':_0x101cc3['id']}),_0x335792(),_0x51816c['success']({'title':_0x53df04('0x170b'),'msg':_0x101cc3[_0x53df04('0x8a5')]?_0x101cc3[_0x53df04('0x8a5')]+_0x53df04('0x14d4'):''});}function _0x572dcc(_0x2e7b03){const _0x261414=_0xd4ad37,_0x473c58=_0x5d7eb0[_0x261414('0x112e')]()[_0x261414('0x14e4')](_0x261414('0x191c'))['htmlContent'](_0x261414('0x1670')+_0x47009f['selectedInternalRouteApps']['length']+'\x20selected'+_0x261414('0x27c7'))[_0x261414('0x10bc')](_0x261414('0x1db'))[_0x261414('0x24d0')](_0x2e7b03)['ok']('OK')[_0x261414('0x1801')](_0x261414('0x1d8d'));_0x5d7eb0[_0x261414('0x2fa')](_0x473c58)[_0x261414('0x2788')](function(){const _0x52924d=_0x261414;_0x47009f[_0x52924d('0xd8b')][_0x52924d('0x1534')](function(_0x7f749b){const _0x3caf24=_0x52924d;_0x283545()[_0x3caf24('0x1a90')](_0x47009f[_0x3caf24('0x1907')][_0x3caf24('0x25df')],{'id':_0x7f749b['id']});}),_0x47009f[_0x52924d('0xd8b')]=[],_0x335792();});}}const _0x45ebee=_0x4a8c68;_0x3b4a7f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x1f78'),'internalroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3b4a7f(_0x5b97b7,_0x4089ff,_0xced757,_0x165a9e,_0x5cd0e4,_0x20a893,_0x1f30a6,_0x3ccd5d){const _0x417636=_0x34e79e,_0x1242c3=this;_0x1242c3[_0x417636('0x9cb')]=_0x1f30a6[_0x417636('0x24cc')](),_0x1242c3[_0x417636('0x25be')]=[],_0x1242c3[_0x417636('0x14e4')]='VOICE.EDIT_'+(_0x165a9e[_0x417636('0x167b')]||_0x165a9e[_0x417636('0x8a5')])[_0x417636('0x25e6')](),_0x1242c3[_0x417636('0x2631')]=angular[_0x417636('0x2669')](_0x165a9e),_0x1242c3[_0x417636('0xe28')]=_0x3ccd5d,_0x1242c3[_0x417636('0x1193')]={};if(_0x1242c3[_0x417636('0x2631')]['appdata'])switch(_0x1242c3[_0x417636('0x2631')][_0x417636('0x167b')]?_0x1242c3[_0x417636('0x2631')][_0x417636('0x167b')]['toLowerCase']():_0x1242c3[_0x417636('0x2631')][_0x417636('0x8a5')]['toLowerCase']()){case _0x417636('0x1d56'):break;case _0x417636('0x5e1'):{const _0x1cd091=_0x1242c3['agi'][_0x417636('0xd6b')][_0x417636('0x1497')](',');_0x1242c3[_0x417636('0x2631')][_0x417636('0x234b')]=_0x1cd091[0x0],_0x1242c3[_0x417636('0x2631')][_0x417636('0x175b')]=_0x1cd091[0x1],_0x1242c3[_0x417636('0x2631')][_0x417636('0xf50')]=_0x1cd091['slice'](0x2,_0x1cd091['length'])['join'](',');}break;case _0x417636('0x137a'):{const _0x53b251=_0x1242c3['agi'][_0x417636('0xd6b')][_0x417636('0x1497')](',');_0x1242c3[_0x417636('0x2631')]['accesskeyid']=_0x53b251[0x0],_0x1242c3['agi'][_0x417636('0x1b58')]=_0x53b251[0x1],_0x1242c3[_0x417636('0x2631')][_0x417636('0xb70')]=_0x53b251[0x2],_0x1242c3[_0x417636('0x2631')][_0x417636('0x4eb')]=_0x53b251[0x3],_0x1242c3['agi']['welcomemessage']=_0x53b251[_0x417636('0x845')](0x4,_0x53b251['length'])[_0x417636('0x185f')](',');}break;case _0x417636('0x808'):{const _0x5ee22c=_0x1242c3[_0x417636('0x2631')][_0x417636('0xd6b')][_0x417636('0x1497')](',');_0x1242c3[_0x417636('0x2631')][_0x417636('0x5fd')]=isNaN(_0x5ee22c[0x0])?_0x5ee22c[0x0]:parseInt(_0x5ee22c[0x0],0xa),_0x1242c3[_0x417636('0x2631')]['text']=_0x5ee22c[_0x417636('0x845')](0x1,_0x5ee22c[_0x417636('0x2566')])[_0x417636('0x185f')](',');}break;case _0x417636('0x15e2'):_0x1242c3[_0x417636('0x2631')]['text']=_0x1242c3[_0x417636('0x2631')][_0x417636('0xd6b')];break;case'set':_0x1242c3[_0x417636('0x2631')][_0x417636('0x1a8d')]=_0x1242c3[_0x417636('0x2631')][_0x417636('0xd6b')][_0x417636('0x1497')]('=')[0x0],_0x1242c3[_0x417636('0x2631')][_0x417636('0x49')]=_0x1242c3[_0x417636('0x2631')]['appdata'][_0x417636('0x1497')]('=')[0x1];break;case _0x417636('0x2631'):_0x1242c3[_0x417636('0x2631')][_0x417636('0x1bf6')]=_0x1242c3['agi']['appdata'];break;default:{const _0x46b36b=_0x1242c3[_0x417636('0x2631')]['appdata']['split'](',');_0x1242c3[_0x417636('0x2631')]['project']=_0x283545()[_0x417636('0x213d')](_0x46b36b[0x0])?_0x46b36b[0x0]:isNaN(_0x46b36b[0x0])?_0x46b36b[0x0]:parseInt(_0x46b36b[0x0],0xa);}break;}else{}_0x1242c3['agi'][_0x417636('0x1d7')]&&_0x1242c3[_0x417636('0x2631')][_0x417636('0x1d7')]['toLowerCase']()===_0x417636('0x1')&&_0x1242c3[_0x417636('0x2631')][_0x417636('0x167b')][_0x417636('0xc2e')]()===_0x417636('0x229c')&&(_0x1242c3[_0x417636('0x2631')][_0x417636('0x1f71')]=_0x1242c3[_0x417636('0x2631')][_0x417636('0x1224')]?_0x1242c3[_0x417636('0x2631')][_0x417636('0x1224')][_0x417636('0x1497')]('$')[0x0]:undefined,_0x1242c3[_0x417636('0x2631')][_0x417636('0x2081')]=_0x1242c3[_0x417636('0x2631')][_0x417636('0x8de')]?'CALLERID(all)='+_0x1242c3['agi'][_0x417636('0x8de')]:undefined);_0x1242c3['saveInternalRouteApp']=_0x4727e6,_0x1242c3['closeDialog']=_0x3650f9,_0x1f30a6[_0x417636('0x1516')]('admin')?_0x20a893[_0x417636('0x163a')]['get']({'fields':'id,name','sort':_0x417636('0x1a8d'),'nolimit':_0x417636('0x1001')})[_0x417636('0x1714')][_0x417636('0x2788')](function(_0x3d8a8f){const _0x35cdc3=_0x417636;_0x1242c3[_0x35cdc3('0x18f9')]=_0x3d8a8f[_0x35cdc3('0x25df')]||[];})['catch'](function(_0x5a3cc9){const _0x4c6660=_0x417636;_0xced757[_0x4c6660('0x5e8')]({'title':_0x5a3cc9[_0x4c6660('0x1b51')]?_0x4c6660('0x15d1')+_0x5a3cc9['status']+'\x20-\x20'+_0x5a3cc9[_0x4c6660('0x22ce')]:_0x4c6660('0x123a'),'msg':_0x5a3cc9['data']?JSON['stringify'](_0x5a3cc9[_0x4c6660('0x11fc')]):_0x5a3cc9['toString']()});}):_0x20a893[_0x417636('0x163a')][_0x417636('0x1335')]({'fields':_0x417636('0x1338'),'sort':'name','nolimit':_0x417636('0x1001')})[_0x417636('0x1714')][_0x417636('0x2788')](function(_0x497341){const _0x3990f2=_0x417636;_0x1242c3[_0x3990f2('0x18f9')]=_0x497341[_0x3990f2('0x25df')]||[];})[_0x417636('0x2788')](function(){const _0x1b8757=_0x417636;return _0x20a893['userProfileSection'][_0x1b8757('0x1335')]({'userProfileId':_0x1242c3[_0x1b8757('0x9cb')][_0x1b8757('0x237f')],'sectionId':0x44f})[_0x1b8757('0x1714')];})['then'](function(_0xaf8711){const _0x451758=_0x417636,_0x23f4d5=_0xaf8711&&_0xaf8711['rows']?_0xaf8711[_0x451758('0x25df')][0x0]:null;if(!_0x23f4d5){const _0x58be9e=[];let _0x6e6e5f=null;_0x1242c3[_0x451758('0x2631')]&&(_0x6e6e5f=_0x283545()[_0x451758('0x20e8')](_0x1242c3['projects'],{'name':_0x1242c3[_0x451758('0x2631')][_0x451758('0x1bf6')]}));for(let _0x3c64b0=0x0;_0x3c64b0<_0x1242c3[_0x451758('0x18f9')][_0x451758('0x2566')];_0x3c64b0++){_0x6e6e5f&&_0x1242c3[_0x451758('0x18f9')][_0x3c64b0]['id']===_0x6e6e5f['id']&&(_0x1242c3[_0x451758('0x18f9')][_0x3c64b0][_0x451758('0x3bf')]=![],_0x58be9e[_0x451758('0x13e3')](_0x1242c3[_0x451758('0x18f9')][_0x3c64b0]));}_0x1242c3['projects']=_0x58be9e;}else{if(!_0x23f4d5[_0x451758('0x1c0a')])return _0x20a893[_0x451758('0x1050')][_0x451758('0x1335')]({'sectionId':_0x23f4d5['id']})[_0x451758('0x1714')][_0x451758('0x2788')](function(_0x320b97){const _0x2966bd=_0x451758,_0x4ee9eb=_0x283545()[_0x2966bd('0x155d')](_0x320b97[_0x2966bd('0x25df')],function(_0x1c110d){const _0x484c4a=_0x2966bd;return _0x283545()[_0x484c4a('0x20e8')](_0x1242c3[_0x484c4a('0x18f9')],{'id':_0x1c110d[_0x484c4a('0x2707')]});});let _0x27218b=null;_0x1242c3[_0x2966bd('0x2631')]&&(_0x27218b=_0x283545()[_0x2966bd('0x20e8')](_0x1242c3['projects'],{'name':_0x1242c3[_0x2966bd('0x2631')]['project']}));if(_0x27218b&&!_0x283545()[_0x2966bd('0xc5d')](_0x4ee9eb,['id',_0x27218b['id']])){const _0x44df41=_0x283545()[_0x2966bd('0x20e8')](_0x1242c3[_0x2966bd('0x18f9')],{'id':_0x27218b['id']});_0x44df41[_0x2966bd('0x3bf')]=![],_0x4ee9eb[_0x2966bd('0x13e3')](_0x44df41);}_0x1242c3[_0x2966bd('0x18f9')]=_0x4ee9eb;});}})[_0x417636('0x1cb5')](function(_0x9b9b09){const _0x5a1d7a=_0x417636;_0xced757[_0x5a1d7a('0x5e8')]({'title':_0x9b9b09[_0x5a1d7a('0x1b51')]?_0x5a1d7a('0x15d1')+_0x9b9b09['status']+_0x5a1d7a('0x1b0b')+_0x9b9b09['statusText']:_0x5a1d7a('0x1d8c'),'msg':_0x9b9b09[_0x5a1d7a('0x11fc')]?JSON[_0x5a1d7a('0x1be0')](_0x9b9b09['data']):_0x9b9b09[_0x5a1d7a('0x17df')]()});});function _0x4727e6(){const _0x46bcf7=_0x417636;_0x1242c3[_0x46bcf7('0x25be')]=[];const _0x33a1e6=[];_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1d7')]&&_0x1242c3['agi'][_0x46bcf7('0x1d7')][_0x46bcf7('0xc2e')]()==='outbound'&&_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x167b')]===_0x46bcf7('0x25fb')&&(_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1224')]=_0x5cd0e4[_0x46bcf7('0x277c')]?(_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1f71')]||'')+_0x46bcf7('0x124d')+_0x5cd0e4[_0x46bcf7('0x277c')]+'}':(_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1f71')]||'')+_0x46bcf7('0x1275'),_0x5cd0e4['recordingFormat']!==_0x46bcf7('0x1dc')?_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x784')][_0x46bcf7('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x784')]+=_0x46bcf7('0x1609')):_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x784')]=_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x784')][_0x46bcf7('0x10a4')](_0x46bcf7('0x1609'),''));if(_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x167b')]&&_0x1242c3['agi']['appType']==='custom'){}else switch((_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x8a5')]||_0x1242c3[_0x46bcf7('0x2631')]['appType'])['toLowerCase']()){case _0x46bcf7('0x3a6'):_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0xd6b')]=_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1a8d')]+'='+_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x49')];break;case _0x46bcf7('0x1d56'):break;default:_0x33a1e6[0x0]=_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0x1bf6')],_0x1242c3[_0x46bcf7('0x2631')][_0x46bcf7('0xd6b')]=_0x33a1e6[_0x46bcf7('0x185f')](',');}_0x3650f9(_0x1242c3[_0x46bcf7('0x2631')]);}function _0x3650f9(_0x72aa86){const _0xe6f6b8=_0x417636;_0x5b97b7[_0xe6f6b8('0x19d')](_0x72aa86);}}const _0x35a56b=_0x3b4a7f;_0xb1f818[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),'internalroute','api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xb1f818(_0x54e4e4,_0x1bc999,_0x25f75b,_0x209e6a,_0x4c6d92,_0x3a9714,_0x576ad9,_0xe298aa){const _0x3444ca=_0x34e79e,_0x1f24e6=this;_0x1f24e6[_0x3444ca('0x9cb')]=_0x576ad9[_0x3444ca('0x24cc')](),_0x1f24e6[_0x3444ca('0x25be')]=[],_0x1f24e6['title']='VOICE.EDIT_'+(_0x209e6a[_0x3444ca('0x167b')]||_0x209e6a['app'])[_0x3444ca('0x25e6')](),_0x1f24e6[_0x3444ca('0x1d56')]=angular[_0x3444ca('0x2669')](_0x209e6a),_0x1f24e6[_0x3444ca('0xe28')]=_0xe298aa,_0x1f24e6['hasModulePermissions']={};if(_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')])switch(_0x1f24e6[_0x3444ca('0x1d56')]['appType']?_0x1f24e6[_0x3444ca('0x1d56')]['appType'][_0x3444ca('0xc2e')]():_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x8a5')]['toLowerCase']()){case'custom':break;case _0x3444ca('0x5e1'):{const _0x3656d0=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')][_0x3444ca('0x1497')](',');_0x1f24e6['custom']['key']=_0x3656d0[0x0],_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x175b')]=_0x3656d0[0x1],_0x1f24e6[_0x3444ca('0x1d56')]['welcomemessage']=_0x3656d0[_0x3444ca('0x845')](0x2,_0x3656d0[_0x3444ca('0x2566')])['join'](',');}break;case _0x3444ca('0x137a'):{const _0x225e52=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')]['split'](',');_0x1f24e6['custom'][_0x3444ca('0x27f2')]=_0x225e52[0x0],_0x1f24e6['custom'][_0x3444ca('0x1b58')]=_0x225e52[0x1],_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xb70')]=_0x225e52[0x2],_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x4eb')]=_0x225e52[0x3],_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xf50')]=_0x225e52[_0x3444ca('0x845')](0x4,_0x225e52['length'])[_0x3444ca('0x185f')](',');}break;case _0x3444ca('0x808'):{const _0x6a273=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')][_0x3444ca('0x1497')](',');_0x1f24e6['custom'][_0x3444ca('0x5fd')]=isNaN(_0x6a273[0x0])?_0x6a273[0x0]:parseInt(_0x6a273[0x0],0xa),_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x16db')]=_0x6a273[_0x3444ca('0x845')](0x1,_0x6a273[_0x3444ca('0x2566')])[_0x3444ca('0x185f')](',');}break;case'message':_0x1f24e6[_0x3444ca('0x1d56')]['text']=_0x1f24e6['custom'][_0x3444ca('0xd6b')];break;case _0x3444ca('0x3a6'):_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1a8d')]=_0x1f24e6['custom'][_0x3444ca('0xd6b')]['split']('=')[0x0],_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x49')]=_0x1f24e6[_0x3444ca('0x1d56')]['appdata'][_0x3444ca('0x1497')]('=')[0x1];break;case _0x3444ca('0x2631'):_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1bf6')]=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')];break;default:{const _0x366382=_0x1f24e6['custom']['appdata']['split'](',');_0x1f24e6['custom'][_0x3444ca('0x8a5')]=_0x283545()['isEmpty'](_0x366382[0x0])?_0x366382[0x0]:isNaN(_0x366382[0x0])?_0x366382[0x0]:parseInt(_0x366382[0x0],0xa),_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0xd6b')]=_0x283545()['isEmpty'](_0x366382[0x1])?_0x366382[0x1]:isNaN(_0x366382[0x1])?_0x366382[0x1]:parseInt(_0x366382[0x1],0xa);}break;}else{}_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1d7')]&&_0x1f24e6[_0x3444ca('0x1d56')]['type'][_0x3444ca('0xc2e')]()===_0x3444ca('0x1')&&_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x167b')]['toLowerCase']()===_0x3444ca('0x229c')&&(_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1f71')]=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1224')]?_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x1224')][_0x3444ca('0x1497')]('$')[0x0]:undefined,_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x2081')]=_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x8de')]?_0x3444ca('0x1834')+_0x1f24e6[_0x3444ca('0x1d56')][_0x3444ca('0x8de')]:undefined);_0x1f24e6[_0x3444ca('0x1e5c')]=_0x3cc336,_0x1f24e6[_0x3444ca('0xca7')]=_0x330879;function _0x3cc336(){const _0x2a7369=_0x3444ca;_0x1f24e6[_0x2a7369('0x25be')]=[];const _0x3e5e38=[];_0x1f24e6[_0x2a7369('0x1d56')]['type']&&_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x1d7')][_0x2a7369('0xc2e')]()==='outbound'&&_0x1f24e6[_0x2a7369('0x1d56')]['appType']===_0x2a7369('0x25fb')&&(_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x1224')]=_0x4c6d92[_0x2a7369('0x277c')]?(_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x1f71')]||'')+'${EXTEN:'+_0x4c6d92['cutdigits']+'}':(_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x1f71')]||'')+'${EXTEN}',_0x4c6d92[_0x2a7369('0x801')]!=='none'?_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x784')]['indexOf'](_0x2a7369('0x1609'))<0x0&&(_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x784')]+='U(xcally-mixmonitor-context)'):_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x784')]=_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x784')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x167b')]&&_0x1f24e6['custom'][_0x2a7369('0x167b')]==='custom'){}else switch((_0x1f24e6['custom'][_0x2a7369('0x8a5')]||_0x1f24e6[_0x2a7369('0x1d56')]['appType'])['toLowerCase']()){case'set':_0x1f24e6[_0x2a7369('0x1d56')]['appdata']=_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x1a8d')]+'='+_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0x49')];break;case _0x2a7369('0x1d56'):break;default:_0x3e5e38[0x0]=_0x1f24e6[_0x2a7369('0x1d56')]['app'],_0x3e5e38[0x1]=_0x1f24e6['custom'][_0x2a7369('0xd6b')],_0x1f24e6[_0x2a7369('0x1d56')][_0x2a7369('0xd6b')]=_0x3e5e38[_0x2a7369('0x185f')](',');}_0x330879(_0x1f24e6[_0x2a7369('0x1d56')]);}function _0x330879(_0x291987){const _0x2657f6=_0x3444ca;_0x54e4e4[_0x2657f6('0x19d')](_0x291987);}}const _0x492ebf=_0xb1f818;_0x2a1cc5[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),'api','Auth',_0x34e79e('0xe28')];function _0x2a1cc5(_0x5a37c2,_0x59ebd3,_0x3fba89,_0x438c2b,_0x333e7e,_0x1f3dad,_0x526ffc,_0x33bc0a){const _0x1ed40e=_0x34e79e,_0x5b75d9=this;_0x5b75d9[_0x1ed40e('0x9cb')]=_0x526ffc[_0x1ed40e('0x24cc')](),_0x5b75d9[_0x1ed40e('0x25be')]=[],_0x5b75d9['title']=_0x1ed40e('0xc6c')+(_0x438c2b[_0x1ed40e('0x167b')]||_0x438c2b[_0x1ed40e('0x8a5')])[_0x1ed40e('0x25e6')](),_0x5b75d9[_0x1ed40e('0x17e6')]=angular[_0x1ed40e('0x2669')](_0x438c2b),_0x5b75d9[_0x1ed40e('0xe28')]=_0x33bc0a,_0x5b75d9[_0x1ed40e('0x1193')]={};if(_0x5b75d9[_0x1ed40e('0x17e6')]['appdata'])switch(_0x5b75d9['dial']['appType']?_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x167b')][_0x1ed40e('0xc2e')]():_0x5b75d9['dial'][_0x1ed40e('0x8a5')][_0x1ed40e('0xc2e')]()){case _0x1ed40e('0x1d56'):break;case _0x1ed40e('0x5e1'):{const _0x270600=_0x5b75d9['dial'][_0x1ed40e('0xd6b')]['split'](',');_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x234b')]=_0x270600[0x0],_0x5b75d9['dial'][_0x1ed40e('0x175b')]=_0x270600[0x1],_0x5b75d9[_0x1ed40e('0x17e6')]['welcomemessage']=_0x270600[_0x1ed40e('0x845')](0x2,_0x270600[_0x1ed40e('0x2566')])[_0x1ed40e('0x185f')](',');}break;case _0x1ed40e('0x137a'):{const _0x461ddc=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xd6b')][_0x1ed40e('0x1497')](',');_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x27f2')]=_0x461ddc[0x0],_0x5b75d9['dial'][_0x1ed40e('0x1b58')]=_0x461ddc[0x1],_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xb70')]=_0x461ddc[0x2],_0x5b75d9['dial'][_0x1ed40e('0x4eb')]=_0x461ddc[0x3],_0x5b75d9['dial']['welcomemessage']=_0x461ddc['slice'](0x4,_0x461ddc[_0x1ed40e('0x2566')])[_0x1ed40e('0x185f')](',');}break;case _0x1ed40e('0x808'):{const _0x31e758=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xd6b')][_0x1ed40e('0x1497')](',');_0x5b75d9['dial']['times']=isNaN(_0x31e758[0x0])?_0x31e758[0x0]:parseInt(_0x31e758[0x0],0xa),_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x16db')]=_0x31e758['slice'](0x1,_0x31e758[_0x1ed40e('0x2566')])[_0x1ed40e('0x185f')](',');}break;case _0x1ed40e('0x15e2'):_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x16db')]=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xd6b')];break;case _0x1ed40e('0x3a6'):_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1a8d')]=_0x5b75d9[_0x1ed40e('0x17e6')]['appdata'][_0x1ed40e('0x1497')]('=')[0x0],_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x49')]=_0x5b75d9['dial'][_0x1ed40e('0xd6b')]['split']('=')[0x1];break;case _0x1ed40e('0x2631'):_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1bf6')]=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xd6b')];break;default:{const _0x51437c=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0xd6b')][_0x1ed40e('0x1497')](',');_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x2494')]=_0x283545()[_0x1ed40e('0x213d')](_0x51437c[0x0])?_0x51437c[0x0]:isNaN(_0x51437c[0x0])?_0x51437c[0x0]:parseInt(_0x51437c[0x0],0xa),_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x24e4')]=_0x283545()['isEmpty'](_0x51437c[0x1])?_0x51437c[0x1]:isNaN(_0x51437c[0x1])?_0x51437c[0x1]:parseInt(_0x51437c[0x1],0xa),_0x5b75d9[_0x1ed40e('0x17e6')]['options']=_0x283545()[_0x1ed40e('0x213d')](_0x51437c[0x2])?_0x51437c[0x2]:isNaN(_0x51437c[0x2])?_0x51437c[0x2]:parseInt(_0x51437c[0x2],0xa),_0x5b75d9['dial']['url']=_0x283545()[_0x1ed40e('0x213d')](_0x51437c[0x3])?_0x51437c[0x3]:isNaN(_0x51437c[0x3])?_0x51437c[0x3]:parseInt(_0x51437c[0x3],0xa);}break;}else{}_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1d7')]&&_0x5b75d9['dial'][_0x1ed40e('0x1d7')][_0x1ed40e('0xc2e')]()===_0x1ed40e('0x1')&&_0x5b75d9[_0x1ed40e('0x17e6')]['appType'][_0x1ed40e('0xc2e')]()===_0x1ed40e('0x229c')&&(_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1f71')]=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1224')]?_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x1224')]['split']('$')[0x0]:undefined,_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x2081')]=_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x8de')]?'CALLERID(all)='+_0x5b75d9[_0x1ed40e('0x17e6')][_0x1ed40e('0x8de')]:undefined);_0x5b75d9['saveInternalRouteApp']=_0xe4fd59,_0x5b75d9[_0x1ed40e('0xca7')]=_0x168864;function _0xe4fd59(){const _0x2813a3=_0x1ed40e;_0x5b75d9['errors']=[];const _0x4b86d5=[];_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x1d7')]&&_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x1d7')][_0x2813a3('0xc2e')]()==='outbound'&&_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x167b')]===_0x2813a3('0x25fb')&&(_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x1224')]=_0x333e7e[_0x2813a3('0x277c')]?(_0x5b75d9['dial']['prefix']||'')+_0x2813a3('0x124d')+_0x333e7e[_0x2813a3('0x277c')]+'}':(_0x5b75d9[_0x2813a3('0x17e6')]['prefix']||'')+'${EXTEN}',_0x333e7e['recordingFormat']!==_0x2813a3('0x1dc')?_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x784')]['indexOf'](_0x2813a3('0x1609'))<0x0&&(_0x5b75d9['dial'][_0x2813a3('0x784')]+=_0x2813a3('0x1609')):_0x5b75d9[_0x2813a3('0x17e6')]['options']=_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x784')][_0x2813a3('0x10a4')](_0x2813a3('0x1609'),''));if(_0x5b75d9['dial'][_0x2813a3('0x167b')]&&_0x5b75d9[_0x2813a3('0x17e6')]['appType']===_0x2813a3('0x1d56')){}else switch((_0x5b75d9[_0x2813a3('0x17e6')]['app']||_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x167b')])[_0x2813a3('0xc2e')]()){case _0x2813a3('0x3a6'):_0x5b75d9[_0x2813a3('0x17e6')]['appdata']=_0x5b75d9[_0x2813a3('0x17e6')]['name']+'='+_0x5b75d9[_0x2813a3('0x17e6')]['value'];break;case _0x2813a3('0x1d56'):break;default:_0x4b86d5[0x0]=_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x2494')],_0x4b86d5[0x1]=_0x5b75d9[_0x2813a3('0x17e6')]['timeout'],_0x4b86d5[0x2]=_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x784')],_0x4b86d5[0x3]=_0x5b75d9[_0x2813a3('0x17e6')][_0x2813a3('0x1672')],_0x5b75d9[_0x2813a3('0x17e6')]['appdata']=_0x4b86d5[_0x2813a3('0x185f')](',');}_0x168864(_0x5b75d9[_0x2813a3('0x17e6')]);}function _0x168864(_0x14ff78){const _0x3f185a=_0x1ed40e;_0x5a37c2[_0x3f185a('0x19d')](_0x14ff78);}}const _0x5a27ff=_0x2a1cc5;_0x35f5ba[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),'internalroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x35f5ba(_0x4a5e34,_0x3081ab,_0x1142f2,_0x5e663e,_0x1a09fe,_0x2204c7,_0x3ac171,_0xc879ca){const _0x40d476=_0x34e79e,_0x5241aa=this;_0x5241aa[_0x40d476('0x9cb')]=_0x3ac171['getCurrentUser'](),_0x5241aa['errors']=[],_0x5241aa[_0x40d476('0x14e4')]='VOICE.EDIT_'+(_0x5e663e['appType']||_0x5e663e['app'])[_0x40d476('0x25e6')](),_0x5241aa[_0x40d476('0x2817')]=angular[_0x40d476('0x2669')](_0x5e663e),_0x5241aa[_0x40d476('0xe28')]=_0xc879ca,_0x5241aa['hasModulePermissions']={};if(_0x5241aa['externaldial'][_0x40d476('0xd6b')])switch(_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x167b')]?_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x167b')]['toLowerCase']():_0x5241aa['externaldial'][_0x40d476('0x8a5')][_0x40d476('0xc2e')]()){case _0x40d476('0x1d56'):break;case _0x40d476('0x5e1'):{const _0x3c4afc=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')][_0x40d476('0x1497')](',');_0x5241aa['externaldial'][_0x40d476('0x234b')]=_0x3c4afc[0x0],_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x175b')]=_0x3c4afc[0x1],_0x5241aa[_0x40d476('0x2817')]['welcomemessage']=_0x3c4afc[_0x40d476('0x845')](0x2,_0x3c4afc[_0x40d476('0x2566')])[_0x40d476('0x185f')](',');}break;case _0x40d476('0x137a'):{const _0x41dc02=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')]['split'](',');_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x27f2')]=_0x41dc02[0x0],_0x5241aa[_0x40d476('0x2817')]['secretaccesskey']=_0x41dc02[0x1],_0x5241aa[_0x40d476('0x2817')]['lexregion']=_0x41dc02[0x2],_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x4eb')]=_0x41dc02[0x3],_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xf50')]=_0x41dc02[_0x40d476('0x845')](0x4,_0x41dc02['length'])[_0x40d476('0x185f')](',');}break;case _0x40d476('0x808'):{const _0x96afcd=_0x5241aa[_0x40d476('0x2817')]['appdata'][_0x40d476('0x1497')](',');_0x5241aa[_0x40d476('0x2817')]['times']=isNaN(_0x96afcd[0x0])?_0x96afcd[0x0]:parseInt(_0x96afcd[0x0],0xa),_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x16db')]=_0x96afcd['slice'](0x1,_0x96afcd[_0x40d476('0x2566')])[_0x40d476('0x185f')](',');}break;case _0x40d476('0x15e2'):_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x16db')]=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')];break;case _0x40d476('0x3a6'):_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x1a8d')]=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')][_0x40d476('0x1497')]('=')[0x0],_0x5241aa[_0x40d476('0x2817')]['value']=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')][_0x40d476('0x1497')]('=')[0x1];break;case _0x40d476('0x2631'):_0x5241aa[_0x40d476('0x2817')]['project']=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')];break;default:{const _0x381104=_0x5241aa[_0x40d476('0x2817')][_0x40d476('0xd6b')]['split'](',');_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x2549')]=_0x381104[0x0][_0x40d476('0x1497')]('/')[0x1],_0x5241aa['externaldial']['phone']=_0x381104[0x0][_0x40d476('0x1497')]('/')[0x2],_0x5241aa['externaldial'][_0x40d476('0x24e4')]=_0x283545()[_0x40d476('0x213d')](_0x381104[0x1])?_0x381104[0x1]:isNaN(_0x381104[0x1])?_0x381104[0x1]:parseInt(_0x381104[0x1],0xa),_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x784')]=_0x283545()['isEmpty'](_0x381104[0x2])?_0x381104[0x2]:isNaN(_0x381104[0x2])?_0x381104[0x2]:parseInt(_0x381104[0x2],0xa),_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x1672')]=_0x283545()[_0x40d476('0x213d')](_0x381104[0x3])?_0x381104[0x3]:isNaN(_0x381104[0x3])?_0x381104[0x3]:parseInt(_0x381104[0x3],0xa);}break;}else{}_0x5241aa[_0x40d476('0x2817')]['type']&&_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x1d7')][_0x40d476('0xc2e')]()===_0x40d476('0x1')&&_0x5241aa['externaldial'][_0x40d476('0x167b')][_0x40d476('0xc2e')]()===_0x40d476('0x229c')&&(_0x5241aa[_0x40d476('0x2817')]['prefix']=_0x5241aa['externaldial']['phone']?_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x1224')][_0x40d476('0x1497')]('$')[0x0]:undefined,_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x2081')]=_0x5241aa['externaldial'][_0x40d476('0x8de')]?_0x40d476('0x1834')+_0x5241aa[_0x40d476('0x2817')][_0x40d476('0x8de')]:undefined);_0x5241aa['saveInternalRouteApp']=_0x213132,_0x5241aa[_0x40d476('0xca7')]=_0x413466,_0x3ac171['hasRole']('admin')?_0x2204c7['trunk'][_0x40d476('0x1335')]({'fields':'id,name','sort':_0x40d476('0x1a8d'),'nolimit':_0x40d476('0x1001')})[_0x40d476('0x1714')][_0x40d476('0x2788')](function(_0x14a3b6){const _0x4f2f87=_0x40d476;_0x5241aa[_0x4f2f87('0x20f2')]=_0x14a3b6[_0x4f2f87('0x25df')]||[];})['catch'](function(_0x5b8785){const _0x4be3f4=_0x40d476;_0x1142f2['error']({'title':_0x5b8785[_0x4be3f4('0x1b51')]?_0x4be3f4('0x15d1')+_0x5b8785['status']+_0x4be3f4('0x1b0b')+_0x5b8785[_0x4be3f4('0x22ce')]:_0x4be3f4('0x119d'),'msg':_0x5b8785[_0x4be3f4('0x11fc')]?JSON[_0x4be3f4('0x1be0')](_0x5b8785[_0x4be3f4('0x11fc')]):_0x5b8785['toString']()});}):_0x2204c7[_0x40d476('0x2549')]['get']({'fields':_0x40d476('0x1338'),'sort':_0x40d476('0x1a8d'),'nolimit':_0x40d476('0x1001')})[_0x40d476('0x1714')]['then'](function(_0x1994e7){const _0x178246=_0x40d476;_0x5241aa[_0x178246('0x20f2')]=_0x1994e7[_0x178246('0x25df')]||[];})[_0x40d476('0x2788')](function(){const _0x557d5c=_0x40d476;return _0x2204c7[_0x557d5c('0xec9')][_0x557d5c('0x1335')]({'userProfileId':_0x5241aa[_0x557d5c('0x9cb')]['userProfileId'],'sectionId':0x3f3})[_0x557d5c('0x1714')];})[_0x40d476('0x2788')](function(_0x4c278e){const _0x4c1b0e=_0x40d476,_0x579895=_0x4c278e&&_0x4c278e[_0x4c1b0e('0x25df')]?_0x4c278e[_0x4c1b0e('0x25df')][0x0]:null;if(!_0x579895){const _0x17095e=[];let _0xb5b9ed=null;_0x5241aa[_0x4c1b0e('0x2817')]&&(_0xb5b9ed=_0x283545()[_0x4c1b0e('0x20e8')](_0x5241aa[_0x4c1b0e('0x20f2')],{'name':_0x5241aa[_0x4c1b0e('0x2817')]['trunk']}));for(let _0x232113=0x0;_0x232113<_0x5241aa['trunks']['length'];_0x232113++){_0xb5b9ed&&_0x5241aa[_0x4c1b0e('0x20f2')][_0x232113]['id']===_0xb5b9ed['id']&&(_0x5241aa['trunks'][_0x232113][_0x4c1b0e('0x3bf')]=![],_0x17095e[_0x4c1b0e('0x13e3')](_0x5241aa['trunks'][_0x232113]));}_0x5241aa[_0x4c1b0e('0x20f2')]=_0x17095e;}else{if(!_0x579895[_0x4c1b0e('0x1c0a')])return _0x2204c7[_0x4c1b0e('0x1050')][_0x4c1b0e('0x1335')]({'sectionId':_0x579895['id']})['$promise'][_0x4c1b0e('0x2788')](function(_0x49845c){const _0x585427=_0x4c1b0e,_0x18d6a5=_0x283545()[_0x585427('0x155d')](_0x49845c[_0x585427('0x25df')],function(_0xfddcf4){const _0x483aba=_0x585427;return _0x283545()['find'](_0x5241aa['trunks'],{'id':_0xfddcf4[_0x483aba('0x2707')]});});let _0x277a1c=null;_0x5241aa['externaldial']&&(_0x277a1c=_0x283545()['find'](_0x5241aa[_0x585427('0x20f2')],{'name':_0x5241aa[_0x585427('0x2817')]['trunk']}));if(_0x277a1c&&!_0x283545()['some'](_0x18d6a5,['id',_0x277a1c['id']])){const _0x1f40ef=_0x283545()[_0x585427('0x20e8')](_0x5241aa[_0x585427('0x20f2')],{'id':_0x277a1c['id']});_0x1f40ef[_0x585427('0x3bf')]=![],_0x18d6a5[_0x585427('0x13e3')](_0x1f40ef);}_0x5241aa[_0x585427('0x20f2')]=_0x18d6a5;});}})['catch'](function(_0x1af6cb){const _0x580c49=_0x40d476;_0x1142f2[_0x580c49('0x5e8')]({'title':_0x1af6cb['status']?_0x580c49('0x15d1')+_0x1af6cb[_0x580c49('0x1b51')]+_0x580c49('0x1b0b')+_0x1af6cb[_0x580c49('0x22ce')]:_0x580c49('0xdb5'),'msg':_0x1af6cb[_0x580c49('0x11fc')]?JSON[_0x580c49('0x1be0')](_0x1af6cb[_0x580c49('0x11fc')]):_0x1af6cb[_0x580c49('0x17df')]()});});function _0x213132(){const _0x25eac4=_0x40d476;_0x5241aa['errors']=[];const _0x179299=[];_0x5241aa[_0x25eac4('0x2817')]['type']&&_0x5241aa['externaldial']['type'][_0x25eac4('0xc2e')]()===_0x25eac4('0x1')&&_0x5241aa[_0x25eac4('0x2817')]['appType']===_0x25eac4('0x25fb')&&(_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x1224')]=_0x1a09fe['cutdigits']?(_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x1f71')]||'')+_0x25eac4('0x124d')+_0x1a09fe['cutdigits']+'}':(_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x1f71')]||'')+_0x25eac4('0x1275'),_0x1a09fe['recordingFormat']!==_0x25eac4('0x1dc')?_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x784')]['indexOf'](_0x25eac4('0x1609'))<0x0&&(_0x5241aa['externaldial'][_0x25eac4('0x784')]+=_0x25eac4('0x1609')):_0x5241aa[_0x25eac4('0x2817')]['options']=_0x5241aa[_0x25eac4('0x2817')]['options']['replace'](_0x25eac4('0x1609'),''));if(_0x5241aa['externaldial'][_0x25eac4('0x167b')]&&_0x5241aa['externaldial']['appType']===_0x25eac4('0x1d56')){}else switch((_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x8a5')]||_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x167b')])[_0x25eac4('0xc2e')]()){case _0x25eac4('0x3a6'):_0x5241aa['externaldial'][_0x25eac4('0xd6b')]=_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x1a8d')]+'='+_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x49')];break;case _0x25eac4('0x1d56'):break;default:_0x179299[0x0]=[_0x25eac4('0x2756'),_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x2549')],_0x5241aa['externaldial'][_0x25eac4('0x1224')]][_0x25eac4('0x185f')]('/'),_0x179299[0x1]=_0x5241aa[_0x25eac4('0x2817')]['timeout'],_0x179299[0x2]=_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0x784')],_0x179299[0x3]=_0x5241aa['externaldial'][_0x25eac4('0x1672')],_0x5241aa[_0x25eac4('0x2817')][_0x25eac4('0xd6b')]=_0x179299['join'](',');}_0x413466(_0x5241aa[_0x25eac4('0x2817')]);}function _0x413466(_0xc85fa){const _0x296aee=_0x40d476;_0x4a5e34[_0x296aee('0x19d')](_0xc85fa);}}const _0x3eefe9=_0x35f5ba;_0x3e84d4[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3e84d4(_0x3bcef5,_0x2d510f,_0x1df2b5,_0xe3df8c,_0x51507f,_0x541540,_0x22d78c,_0xe98cf0){const _0x5afee1=_0x34e79e,_0x19d2be=this;_0x19d2be[_0x5afee1('0x9cb')]=_0x22d78c[_0x5afee1('0x24cc')](),_0x19d2be[_0x5afee1('0x25be')]=[],_0x19d2be[_0x5afee1('0x14e4')]='VOICE.EDIT_'+(_0xe3df8c[_0x5afee1('0x167b')]||_0xe3df8c[_0x5afee1('0x8a5')])['toUpperCase'](),_0x19d2be[_0x5afee1('0x1500')]=angular['copy'](_0xe3df8c),_0x19d2be['crudPermissions']=_0xe98cf0,_0x19d2be[_0x5afee1('0x1193')]={};if(_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')])switch(_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x167b')]?_0x19d2be[_0x5afee1('0x1500')]['appType'][_0x5afee1('0xc2e')]():_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x8a5')][_0x5afee1('0xc2e')]()){case _0x5afee1('0x1d56'):break;case'dialogflow':{const _0x3ed0dd=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')][_0x5afee1('0x1497')](',');_0x19d2be[_0x5afee1('0x1500')]['key']=_0x3ed0dd[0x0],_0x19d2be['goto'][_0x5afee1('0x175b')]=_0x3ed0dd[0x1],_0x19d2be['goto'][_0x5afee1('0xf50')]=_0x3ed0dd[_0x5afee1('0x845')](0x2,_0x3ed0dd[_0x5afee1('0x2566')])[_0x5afee1('0x185f')](',');}break;case _0x5afee1('0x137a'):{const _0x4161b8=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')]['split'](',');_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x27f2')]=_0x4161b8[0x0],_0x19d2be[_0x5afee1('0x1500')]['secretaccesskey']=_0x4161b8[0x1],_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xb70')]=_0x4161b8[0x2],_0x19d2be[_0x5afee1('0x1500')]['botname']=_0x4161b8[0x3],_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xf50')]=_0x4161b8[_0x5afee1('0x845')](0x4,_0x4161b8[_0x5afee1('0x2566')])[_0x5afee1('0x185f')](',');}break;case _0x5afee1('0x808'):{const _0x282c6c=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')]['split'](',');_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x5fd')]=isNaN(_0x282c6c[0x0])?_0x282c6c[0x0]:parseInt(_0x282c6c[0x0],0xa),_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x16db')]=_0x282c6c['slice'](0x1,_0x282c6c[_0x5afee1('0x2566')])[_0x5afee1('0x185f')](',');}break;case _0x5afee1('0x15e2'):_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x16db')]=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')];break;case _0x5afee1('0x3a6'):_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x1a8d')]=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')]['split']('=')[0x0],_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x49')]=_0x19d2be[_0x5afee1('0x1500')]['appdata'][_0x5afee1('0x1497')]('=')[0x1];break;case'agi':_0x19d2be['goto'][_0x5afee1('0x1bf6')]=_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0xd6b')];break;default:{const _0x2cfc67=_0x19d2be[_0x5afee1('0x1500')]['appdata']['split'](',');_0x19d2be['goto'][_0x5afee1('0x1f3b')]=_0x283545()[_0x5afee1('0x213d')](_0x2cfc67[0x0])?_0x2cfc67[0x0]:isNaN(_0x2cfc67[0x0])?_0x2cfc67[0x0]:parseInt(_0x2cfc67[0x0],0xa),_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x1eb7')]=_0x283545()[_0x5afee1('0x213d')](_0x2cfc67[0x1])?_0x2cfc67[0x1]:isNaN(_0x2cfc67[0x1])?_0x2cfc67[0x1]:parseInt(_0x2cfc67[0x1],0xa),_0x19d2be[_0x5afee1('0x1500')]['priority']=_0x283545()[_0x5afee1('0x213d')](_0x2cfc67[0x2])?_0x2cfc67[0x2]:isNaN(_0x2cfc67[0x2])?_0x2cfc67[0x2]:parseInt(_0x2cfc67[0x2],0xa);}break;}else{}_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x1d7')]&&_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x1d7')]['toLowerCase']()===_0x5afee1('0x1')&&_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x19d2be['goto'][_0x5afee1('0x1f71')]=_0x19d2be['goto'][_0x5afee1('0x1224')]?_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x1224')][_0x5afee1('0x1497')]('$')[0x0]:undefined,_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x2081')]=_0x19d2be['goto'][_0x5afee1('0x8de')]?_0x5afee1('0x1834')+_0x19d2be[_0x5afee1('0x1500')][_0x5afee1('0x8de')]:undefined);_0x19d2be['saveInternalRouteApp']=_0x3646b6,_0x19d2be[_0x5afee1('0xca7')]=_0x18728d,_0x22d78c[_0x5afee1('0x1516')](_0x5afee1('0xe23'))?_0x541540[_0x5afee1('0x15cc')][_0x5afee1('0x1335')]({'fields':'id,name','sort':_0x5afee1('0x1a8d'),'nolimit':'true'})[_0x5afee1('0x1714')][_0x5afee1('0x2788')](function(_0x40c788){const _0x16dc9e=_0x5afee1;_0x19d2be[_0x16dc9e('0xf3e')]=_0x40c788['rows']||[];})[_0x5afee1('0x1cb5')](function(_0x9688eb){const _0x10b931=_0x5afee1;_0x1df2b5[_0x10b931('0x5e8')]({'title':_0x9688eb[_0x10b931('0x1b51')]?_0x10b931('0x15d1')+_0x9688eb[_0x10b931('0x1b51')]+_0x10b931('0x1b0b')+_0x9688eb['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x9688eb[_0x10b931('0x11fc')]?JSON[_0x10b931('0x1be0')](_0x9688eb[_0x10b931('0x11fc')]):_0x9688eb[_0x10b931('0x17df')]()});}):_0x541540[_0x5afee1('0x15cc')][_0x5afee1('0x1335')]({'fields':_0x5afee1('0x1338'),'sort':_0x5afee1('0x1a8d'),'nolimit':'true'})['$promise'][_0x5afee1('0x2788')](function(_0x30e4b8){const _0x24b5c3=_0x5afee1;_0x19d2be[_0x24b5c3('0xf3e')]=_0x30e4b8[_0x24b5c3('0x25df')]||[];})['then'](function(){const _0x423e20=_0x5afee1;return _0x541540[_0x423e20('0xec9')][_0x423e20('0x1335')]({'userProfileId':_0x19d2be[_0x423e20('0x9cb')][_0x423e20('0x237f')],'sectionId':0x195})[_0x423e20('0x1714')];})[_0x5afee1('0x2788')](function(_0x3c9f9f){const _0x4207b1=_0x5afee1,_0x2f17dc=_0x3c9f9f&&_0x3c9f9f[_0x4207b1('0x25df')]?_0x3c9f9f[_0x4207b1('0x25df')][0x0]:null;if(!_0x2f17dc)return _0x541540[_0x4207b1('0x15cc')][_0x4207b1('0x1335')]({'fields':'id,name','sort':_0x4207b1('0x1a8d'),'nolimit':_0x4207b1('0x1001'),'defaultEntry':0x1})[_0x4207b1('0x1714')][_0x4207b1('0x2788')](function(_0x454554){const _0x10d246=_0x4207b1;_0x19d2be[_0x10d246('0xf3e')]=_0x454554[_0x10d246('0x25df')]||[];});else{if(!_0x2f17dc[_0x4207b1('0x1c0a')])return _0x541540[_0x4207b1('0x1050')][_0x4207b1('0x1335')]({'sectionId':_0x2f17dc['id']})[_0x4207b1('0x1714')]['then'](function(_0x11fa54){const _0x319156=_0x4207b1,_0x3df8d4=_0x283545()[_0x319156('0x155d')](_0x11fa54[_0x319156('0x25df')],function(_0x3152f3){const _0x21db73=_0x319156;return _0x283545()[_0x21db73('0x20e8')](_0x19d2be[_0x21db73('0xf3e')],{'id':_0x3152f3[_0x21db73('0x2707')]});});let _0x1d3ce1=null;_0x19d2be[_0x319156('0x1500')]&&(_0x1d3ce1=_0x283545()[_0x319156('0x20e8')](_0x19d2be[_0x319156('0xf3e')],{'name':_0x19d2be[_0x319156('0x1500')][_0x319156('0x1f3b')]}));if(_0x1d3ce1&&!_0x283545()[_0x319156('0xc5d')](_0x3df8d4,['id',_0x1d3ce1['id']])){const _0x36a436=_0x283545()[_0x319156('0x20e8')](_0x19d2be[_0x319156('0xf3e')],{'id':_0x1d3ce1['id']});_0x36a436[_0x319156('0x3bf')]=![],_0x3df8d4[_0x319156('0x13e3')](_0x36a436);}_0x19d2be[_0x319156('0xf3e')]=_0x3df8d4;});}})[_0x5afee1('0x1cb5')](function(_0x598359){const _0x26f327=_0x5afee1;_0x1df2b5[_0x26f327('0x5e8')]({'title':_0x598359[_0x26f327('0x1b51')]?_0x26f327('0x15d1')+_0x598359[_0x26f327('0x1b51')]+'\x20-\x20'+_0x598359[_0x26f327('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x598359[_0x26f327('0x11fc')]?JSON[_0x26f327('0x1be0')](_0x598359[_0x26f327('0x11fc')]):_0x598359['toString']()});});function _0x3646b6(){const _0x13eaaa=_0x5afee1;_0x19d2be[_0x13eaaa('0x25be')]=[];const _0x48bdb4=[];_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1d7')]&&_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1d7')][_0x13eaaa('0xc2e')]()==='outbound'&&_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x167b')]===_0x13eaaa('0x25fb')&&(_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1224')]=_0x51507f[_0x13eaaa('0x277c')]?(_0x19d2be[_0x13eaaa('0x1500')]['prefix']||'')+'${EXTEN:'+_0x51507f[_0x13eaaa('0x277c')]+'}':(_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1f71')]||'')+_0x13eaaa('0x1275'),_0x51507f['recordingFormat']!=='none'?_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x784')][_0x13eaaa('0x821')](_0x13eaaa('0x1609'))<0x0&&(_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x784')]+=_0x13eaaa('0x1609')):_0x19d2be['goto']['options']=_0x19d2be['goto']['options']['replace'](_0x13eaaa('0x1609'),''));if(_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x167b')]&&_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x167b')]===_0x13eaaa('0x1d56')){}else switch((_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x8a5')]||_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x167b')])['toLowerCase']()){case _0x13eaaa('0x3a6'):_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0xd6b')]=_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1a8d')]+'='+_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x49')];break;case _0x13eaaa('0x1d56'):break;default:_0x48bdb4[0x0]=_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1f3b')],_0x48bdb4[0x1]=_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x1eb7')],_0x48bdb4[0x2]=_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0x155b')],_0x19d2be[_0x13eaaa('0x1500')][_0x13eaaa('0xd6b')]=_0x48bdb4[_0x13eaaa('0x185f')](',');}_0x18728d(_0x19d2be[_0x13eaaa('0x1500')]);}function _0x18728d(_0x77ba4b){const _0x1c7671=_0x5afee1;_0x3bcef5[_0x1c7671('0x19d')](_0x77ba4b);}}const _0x5d26f5=_0x3e84d4;_0x3906d7[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x3906d7(_0x396363,_0x5653b8,_0x328931,_0xdecd03,_0x198818,_0x2b65df,_0x41bce7,_0x152803){const _0x151eae=_0x34e79e,_0x243c89=this;_0x243c89[_0x151eae('0x9cb')]=_0x41bce7[_0x151eae('0x24cc')](),_0x243c89[_0x151eae('0x25be')]=[],_0x243c89[_0x151eae('0x14e4')]=_0x151eae('0xc6c')+(_0xdecd03[_0x151eae('0x167b')]||_0xdecd03['app'])[_0x151eae('0x25e6')](),_0x243c89[_0x151eae('0x42c')]=angular['copy'](_0xdecd03),_0x243c89[_0x151eae('0xe28')]=_0x152803,_0x243c89[_0x151eae('0x1193')]={};if(_0x243c89['hangup'][_0x151eae('0xd6b')])switch(_0x243c89['hangup']['appType']?_0x243c89[_0x151eae('0x42c')][_0x151eae('0x167b')][_0x151eae('0xc2e')]():_0x243c89[_0x151eae('0x42c')]['app'][_0x151eae('0xc2e')]()){case _0x151eae('0x1d56'):break;case _0x151eae('0x5e1'):{const _0x4c821e=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')][_0x151eae('0x1497')](',');_0x243c89[_0x151eae('0x42c')]['key']=_0x4c821e[0x0],_0x243c89[_0x151eae('0x42c')]['language']=_0x4c821e[0x1],_0x243c89[_0x151eae('0x42c')][_0x151eae('0xf50')]=_0x4c821e[_0x151eae('0x845')](0x2,_0x4c821e['length'])[_0x151eae('0x185f')](',');}break;case'amazonlex':{const _0x3c6085=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')]['split'](',');_0x243c89[_0x151eae('0x42c')][_0x151eae('0x27f2')]=_0x3c6085[0x0],_0x243c89[_0x151eae('0x42c')][_0x151eae('0x1b58')]=_0x3c6085[0x1],_0x243c89['hangup'][_0x151eae('0xb70')]=_0x3c6085[0x2],_0x243c89[_0x151eae('0x42c')][_0x151eae('0x4eb')]=_0x3c6085[0x3],_0x243c89[_0x151eae('0x42c')][_0x151eae('0xf50')]=_0x3c6085[_0x151eae('0x845')](0x4,_0x3c6085[_0x151eae('0x2566')])['join'](',');}break;case _0x151eae('0x808'):{const _0x74fc6e=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')][_0x151eae('0x1497')](',');_0x243c89[_0x151eae('0x42c')][_0x151eae('0x5fd')]=isNaN(_0x74fc6e[0x0])?_0x74fc6e[0x0]:parseInt(_0x74fc6e[0x0],0xa),_0x243c89[_0x151eae('0x42c')]['text']=_0x74fc6e['slice'](0x1,_0x74fc6e['length'])['join'](',');}break;case _0x151eae('0x15e2'):_0x243c89[_0x151eae('0x42c')][_0x151eae('0x16db')]=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')];break;case _0x151eae('0x3a6'):_0x243c89[_0x151eae('0x42c')][_0x151eae('0x1a8d')]=_0x243c89[_0x151eae('0x42c')]['appdata']['split']('=')[0x0],_0x243c89['hangup']['value']=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')][_0x151eae('0x1497')]('=')[0x1];break;case _0x151eae('0x2631'):_0x243c89[_0x151eae('0x42c')][_0x151eae('0x1bf6')]=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')];break;default:{const _0x104682=_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')][_0x151eae('0x1497')](',');_0x243c89[_0x151eae('0x42c')][_0x151eae('0xd6b')]=_0x283545()['isEmpty'](_0x104682[0x0])?_0x104682[0x0]:isNaN(_0x104682[0x0])?_0x104682[0x0]:parseInt(_0x104682[0x0],0xa);}break;}else{}_0x243c89['hangup'][_0x151eae('0x1d7')]&&_0x243c89['hangup']['type'][_0x151eae('0xc2e')]()===_0x151eae('0x1')&&_0x243c89['hangup']['appType'][_0x151eae('0xc2e')]()===_0x151eae('0x229c')&&(_0x243c89[_0x151eae('0x42c')][_0x151eae('0x1f71')]=_0x243c89['hangup'][_0x151eae('0x1224')]?_0x243c89[_0x151eae('0x42c')][_0x151eae('0x1224')][_0x151eae('0x1497')]('$')[0x0]:undefined,_0x243c89[_0x151eae('0x42c')][_0x151eae('0x2081')]=_0x243c89['hangup']['callerID']?_0x151eae('0x1834')+_0x243c89[_0x151eae('0x42c')][_0x151eae('0x8de')]:undefined);_0x243c89[_0x151eae('0x1e5c')]=_0x82798d,_0x243c89[_0x151eae('0xca7')]=_0x439eb4;function _0x82798d(){const _0x5757a7=_0x151eae;_0x243c89[_0x5757a7('0x25be')]=[];const _0x223252=[];_0x243c89['hangup'][_0x5757a7('0x1d7')]&&_0x243c89[_0x5757a7('0x42c')]['type'][_0x5757a7('0xc2e')]()===_0x5757a7('0x1')&&_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x167b')]===_0x5757a7('0x25fb')&&(_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x1224')]=_0x198818[_0x5757a7('0x277c')]?(_0x243c89['hangup'][_0x5757a7('0x1f71')]||'')+_0x5757a7('0x124d')+_0x198818[_0x5757a7('0x277c')]+'}':(_0x243c89['hangup']['prefix']||'')+'${EXTEN}',_0x198818[_0x5757a7('0x801')]!==_0x5757a7('0x1dc')?_0x243c89['hangup'][_0x5757a7('0x784')][_0x5757a7('0x821')](_0x5757a7('0x1609'))<0x0&&(_0x243c89[_0x5757a7('0x42c')]['options']+=_0x5757a7('0x1609')):_0x243c89['hangup'][_0x5757a7('0x784')]=_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x784')]['replace'](_0x5757a7('0x1609'),''));if(_0x243c89['hangup']['appType']&&_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x167b')]===_0x5757a7('0x1d56')){}else switch((_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x8a5')]||_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0x167b')])['toLowerCase']()){case _0x5757a7('0x3a6'):_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0xd6b')]=_0x243c89[_0x5757a7('0x42c')]['name']+'='+_0x243c89[_0x5757a7('0x42c')]['value'];break;case _0x5757a7('0x1d56'):break;default:_0x223252[0x0]=_0x243c89[_0x5757a7('0x42c')]['appdata'],_0x243c89[_0x5757a7('0x42c')][_0x5757a7('0xd6b')]=_0x223252[_0x5757a7('0x185f')](',');}_0x439eb4(_0x243c89['hangup']);}function _0x439eb4(_0x29e9f0){_0x396363['hide'](_0x29e9f0);}}const _0x5038fe=_0x3906d7;_0x31b385['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'internalrouteApp','internalroute',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x31b385(_0x1db37f,_0x56cbc3,_0x538f31,_0xabe5be,_0x2b1c27,_0x30c26e,_0x225a19,_0x3b3b8d){const _0x18ebe1=_0x34e79e,_0x42b7ea=this;_0x42b7ea[_0x18ebe1('0x9cb')]=_0x225a19[_0x18ebe1('0x24cc')](),_0x42b7ea[_0x18ebe1('0x25be')]=[],_0x42b7ea[_0x18ebe1('0x14e4')]=_0x18ebe1('0xc6c')+(_0xabe5be[_0x18ebe1('0x167b')]||_0xabe5be[_0x18ebe1('0x8a5')])[_0x18ebe1('0x25e6')](),_0x42b7ea[_0x18ebe1('0x1b6')]=angular['copy'](_0xabe5be),_0x42b7ea['crudPermissions']=_0x3b3b8d,_0x42b7ea[_0x18ebe1('0x1193')]={};if(_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')])switch(_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x167b')]?_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x167b')][_0x18ebe1('0xc2e')]():_0x42b7ea[_0x18ebe1('0x1b6')]['app']['toLowerCase']()){case _0x18ebe1('0x1d56'):break;case _0x18ebe1('0x5e1'):{const _0xf9f63b=_0x42b7ea[_0x18ebe1('0x1b6')]['appdata'][_0x18ebe1('0x1497')](',');_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x234b')]=_0xf9f63b[0x0],_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x175b')]=_0xf9f63b[0x1],_0x42b7ea['internaldial'][_0x18ebe1('0xf50')]=_0xf9f63b['slice'](0x2,_0xf9f63b[_0x18ebe1('0x2566')])[_0x18ebe1('0x185f')](',');}break;case _0x18ebe1('0x137a'):{const _0x1891b8=_0x42b7ea[_0x18ebe1('0x1b6')]['appdata'][_0x18ebe1('0x1497')](',');_0x42b7ea['internaldial']['accesskeyid']=_0x1891b8[0x0],_0x42b7ea['internaldial'][_0x18ebe1('0x1b58')]=_0x1891b8[0x1],_0x42b7ea[_0x18ebe1('0x1b6')]['lexregion']=_0x1891b8[0x2],_0x42b7ea['internaldial'][_0x18ebe1('0x4eb')]=_0x1891b8[0x3],_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xf50')]=_0x1891b8[_0x18ebe1('0x845')](0x4,_0x1891b8[_0x18ebe1('0x2566')])[_0x18ebe1('0x185f')](',');}break;case'autoreply':{const _0x27ee7a=_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')][_0x18ebe1('0x1497')](',');_0x42b7ea['internaldial']['times']=isNaN(_0x27ee7a[0x0])?_0x27ee7a[0x0]:parseInt(_0x27ee7a[0x0],0xa),_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x16db')]=_0x27ee7a[_0x18ebe1('0x845')](0x1,_0x27ee7a[_0x18ebe1('0x2566')])[_0x18ebe1('0x185f')](',');}break;case _0x18ebe1('0x15e2'):_0x42b7ea['internaldial'][_0x18ebe1('0x16db')]=_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')];break;case'set':_0x42b7ea['internaldial'][_0x18ebe1('0x1a8d')]=_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')][_0x18ebe1('0x1497')]('=')[0x0],_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x49')]=_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')][_0x18ebe1('0x1497')]('=')[0x1];break;case _0x18ebe1('0x2631'):_0x42b7ea['internaldial']['project']=_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0xd6b')];break;default:{const _0x298ffe=_0x42b7ea['internaldial'][_0x18ebe1('0xd6b')][_0x18ebe1('0x1497')](',');_0x42b7ea[_0x18ebe1('0x1b6')]['user']=_0x283545()[_0x18ebe1('0x213d')](_0x298ffe[0x0])?_0x298ffe[0x0]:isNaN(_0x298ffe[0x0])?_0x298ffe[0x0]:parseInt(_0x298ffe[0x0],0xa),_0x42b7ea['internaldial'][_0x18ebe1('0x24e4')]=_0x283545()[_0x18ebe1('0x213d')](_0x298ffe[0x1])?_0x298ffe[0x1]:isNaN(_0x298ffe[0x1])?_0x298ffe[0x1]:parseInt(_0x298ffe[0x1],0xa),_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x784')]=_0x283545()['isEmpty'](_0x298ffe[0x2])?_0x298ffe[0x2]:isNaN(_0x298ffe[0x2])?_0x298ffe[0x2]:parseInt(_0x298ffe[0x2],0xa),_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x1672')]=_0x283545()[_0x18ebe1('0x213d')](_0x298ffe[0x3])?_0x298ffe[0x3]:isNaN(_0x298ffe[0x3])?_0x298ffe[0x3]:parseInt(_0x298ffe[0x3],0xa);}break;}else{}_0x42b7ea[_0x18ebe1('0x1b6')]['type']&&_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x1d7')][_0x18ebe1('0xc2e')]()===_0x18ebe1('0x1')&&_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x167b')][_0x18ebe1('0xc2e')]()===_0x18ebe1('0x229c')&&(_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x1f71')]=_0x42b7ea['internaldial'][_0x18ebe1('0x1224')]?_0x42b7ea['internaldial'][_0x18ebe1('0x1224')][_0x18ebe1('0x1497')]('$')[0x0]:undefined,_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x2081')]=_0x42b7ea['internaldial'][_0x18ebe1('0x8de')]?_0x18ebe1('0x1834')+_0x42b7ea[_0x18ebe1('0x1b6')][_0x18ebe1('0x8de')]:undefined);_0x42b7ea[_0x18ebe1('0x1e5c')]=_0xe72804,_0x42b7ea[_0x18ebe1('0xca7')]=_0x28ff6f;const _0x5f040d=[{'id':0xca,'role':_0x18ebe1('0x188b')},{'id':0xcb,'role':'telephone'}];let _0x3aee15=null;_0x225a19[_0x18ebe1('0x1516')]('admin')?_0x30c26e[_0x18ebe1('0x1e6a')][_0x18ebe1('0x1335')]({'fields':_0x18ebe1('0x17a1'),'sort':_0x18ebe1('0x1a8d'),'nolimit':'true'})['$promise'][_0x18ebe1('0x2788')](function(_0x2a5c2f){const _0x4481f9=_0x18ebe1;_0x42b7ea[_0x4481f9('0x1e42')]=_0x2a5c2f['rows']||[];})['catch'](function(_0x2fedad){const _0x49fc0e=_0x18ebe1;_0x538f31[_0x49fc0e('0x5e8')]({'title':_0x2fedad['status']?'API:'+_0x2fedad[_0x49fc0e('0x1b51')]+_0x49fc0e('0x1b0b')+_0x2fedad[_0x49fc0e('0x22ce')]:_0x49fc0e('0x111a'),'msg':_0x2fedad['data']?JSON[_0x49fc0e('0x1be0')](_0x2fedad[_0x49fc0e('0x11fc')]):_0x2fedad[_0x49fc0e('0x17df')]()});}):_0x30c26e[_0x18ebe1('0x1e6a')][_0x18ebe1('0x1335')]({'fields':_0x18ebe1('0x17a1'),'sort':_0x18ebe1('0x1a8d'),'nolimit':'true'})[_0x18ebe1('0x1714')]['then'](function(_0x2125ad){const _0x44ae84=_0x18ebe1;_0x3aee15=_0x2125ad[_0x44ae84('0x25df')]||[];})[_0x18ebe1('0x2788')](function(){const _0x5daf46=_0x18ebe1,_0x57c6cc=[];for(let _0x1b1760=0x0;_0x1b1760<_0x5f040d[_0x5daf46('0x2566')];_0x1b1760++){_0x57c6cc[_0x5daf46('0x13e3')](_0x30c26e[_0x5daf46('0xec9')][_0x5daf46('0x1335')]({'userProfileId':_0x42b7ea['currentUser'][_0x5daf46('0x237f')],'sectionId':_0x5f040d[_0x1b1760]['id']})[_0x5daf46('0x1714')]);}return _0x56cbc3[_0x5daf46('0x1def')](_0x57c6cc);})[_0x18ebe1('0x2788')](function(_0x543912){const _0x3bedb6=_0x18ebe1,_0x3e3a6d=_0x283545()['map'](_0x543912,function(_0x1a0695){const _0x5173a8=a0_0x14e7;return _0x1a0695&&_0x1a0695[_0x5173a8('0x25df')]?_0x1a0695[_0x5173a8('0x25df')][0x0]:null;}),_0x570040=[];for(let _0x31fe01=0x0;_0x31fe01<_0x5f040d['length'];_0x31fe01++){const _0x269135=_0x283545()[_0x3bedb6('0x20e8')](_0x3e3a6d,[_0x3bedb6('0x201d'),_0x5f040d[_0x31fe01]['id']]);if(_0x269135){if(!_0x269135[_0x3bedb6('0x1c0a')])_0x570040[_0x3bedb6('0x13e3')](_0x30c26e[_0x3bedb6('0x1050')]['get']({'sectionId':_0x269135['id']})[_0x3bedb6('0x1714')]);else{const _0x5a3c33=[];_0x3aee15[_0x3bedb6('0x1534')](function(_0x462545){const _0x361b5f=_0x3bedb6;_0x462545[_0x361b5f('0xb34')]===_0x5f040d[_0x31fe01][_0x361b5f('0xb34')]&&_0x5a3c33['push'](_0x462545);}),_0x570040[_0x3bedb6('0x13e3')]({'rows':_0x5a3c33,'count':_0x5a3c33[_0x3bedb6('0x2566')]});}}}return _0x56cbc3['all'](_0x570040);})[_0x18ebe1('0x2788')](function(_0x5ec642){const _0x94b31f=_0x18ebe1,_0x409cd7=[];let _0x1390d1=null;_0x42b7ea[_0x94b31f('0x1b6')]&&(_0x1390d1=_0x283545()[_0x94b31f('0x20e8')](_0x3aee15,{'name':_0x42b7ea[_0x94b31f('0x1b6')][_0x94b31f('0x1e6a')]}));for(let _0x265ee1=0x0;_0x265ee1<_0x5ec642[_0x94b31f('0x2566')];_0x265ee1++){const _0x3e3f3a=_0x5ec642[_0x265ee1]['rows']||[];_0x3e3f3a[_0x94b31f('0x1534')](function(_0x4f6dcb){const _0x4d7951=_0x94b31f;_0x409cd7[_0x4d7951('0x13e3')](_0x4f6dcb);});}_0x1390d1&&!_0x283545()[_0x94b31f('0xc5d')](_0x409cd7,[_0x94b31f('0x2707'),_0x1390d1['id']])&&_0x3aee15['forEach'](function(_0x120f65){const _0x4532ed=_0x94b31f;_0x120f65['id']===_0x1390d1['id']&&(_0x120f65['canSelect']=![],_0x409cd7[_0x4532ed('0x13e3')](_0x120f65));}),_0x42b7ea[_0x94b31f('0x1e42')]=_0x409cd7;})[_0x18ebe1('0x1cb5')](function(_0x3f3fe3){const _0x11ccc5=_0x18ebe1;_0x538f31[_0x11ccc5('0x5e8')]({'title':_0x3f3fe3['status']?_0x11ccc5('0x15d1')+_0x3f3fe3[_0x11ccc5('0x1b51')]+_0x11ccc5('0x1b0b')+_0x3f3fe3[_0x11ccc5('0x22ce')]:'SYSTEM:GETusers','msg':_0x3f3fe3['data']?JSON[_0x11ccc5('0x1be0')](_0x3f3fe3[_0x11ccc5('0x11fc')]):_0x3f3fe3[_0x11ccc5('0x17df')]()});});function _0xe72804(){const _0x3a34b5=_0x18ebe1;_0x42b7ea['errors']=[];const _0x363916=[];_0x42b7ea['internaldial']['type']&&_0x42b7ea[_0x3a34b5('0x1b6')]['type'][_0x3a34b5('0xc2e')]()==='outbound'&&_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x167b')]===_0x3a34b5('0x25fb')&&(_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x1224')]=_0x2b1c27[_0x3a34b5('0x277c')]?(_0x42b7ea[_0x3a34b5('0x1b6')]['prefix']||'')+_0x3a34b5('0x124d')+_0x2b1c27['cutdigits']+'}':(_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x1f71')]||'')+_0x3a34b5('0x1275'),_0x2b1c27[_0x3a34b5('0x801')]!==_0x3a34b5('0x1dc')?_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x784')][_0x3a34b5('0x821')](_0x3a34b5('0x1609'))<0x0&&(_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x784')]+=_0x3a34b5('0x1609')):_0x42b7ea['internaldial'][_0x3a34b5('0x784')]=_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x784')]['replace'](_0x3a34b5('0x1609'),''));if(_0x42b7ea['internaldial'][_0x3a34b5('0x167b')]&&_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x167b')]===_0x3a34b5('0x1d56')){}else switch((_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x8a5')]||_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x167b')])[_0x3a34b5('0xc2e')]()){case _0x3a34b5('0x3a6'):_0x42b7ea['internaldial']['appdata']=_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x1a8d')]+'='+_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x49')];break;case _0x3a34b5('0x1d56'):break;default:_0x363916[0x0]=_0x42b7ea['internaldial'][_0x3a34b5('0x1e6a')],_0x363916[0x1]=_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x24e4')],_0x363916[0x2]=_0x42b7ea[_0x3a34b5('0x1b6')]['options'],_0x363916[0x3]=_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0x1672')],_0x42b7ea[_0x3a34b5('0x1b6')][_0x3a34b5('0xd6b')]=_0x363916['join'](',');}_0x28ff6f(_0x42b7ea[_0x3a34b5('0x1b6')]);}function _0x28ff6f(_0x5e3be0){const _0x5ab3d8=_0x18ebe1;_0x1db37f[_0x5ab3d8('0x19d')](_0x5e3be0);}}const _0x476ebe=_0x31b385;_0x528892[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x528892(_0x3d0b32,_0x9d8b8c,_0x2aa60a,_0x1570a4,_0x2ac1cd,_0x151aa6,_0x3208b9,_0x35aa15,_0x5b7f2f,_0x24a3d5){const _0x460739=_0x34e79e,_0x46965b=this;_0x46965b[_0x460739('0x9cb')]=_0x5b7f2f[_0x460739('0x24cc')](),_0x46965b[_0x460739('0x25be')]=[],_0x46965b['title']='TOOLS.EDIT_INTERVAL',_0x46965b[_0x460739('0x2630')]=angular[_0x460739('0x2669')](_0x2ac1cd),_0x46965b[_0x460739('0xec5')]=_0x151aa6,_0x46965b[_0x460739('0x1f7c')]=![],_0x46965b[_0x460739('0x2512')]=[_0x460739('0xc8f'),_0x460739('0x1d56'),'list'],_0x46965b[_0x460739('0xe28')]=_0x24a3d5,_0x46965b['daysOfWeek']=_0x1570a4['getDaysOfWeek'](),_0x46965b['monthNumber']=_0x1570a4[_0x460739('0x1383')](),_0x46965b[_0x460739('0xfed')]=_0x1570a4['getMonthName'](),_0x46965b[_0x460739('0x1d59')]=_0x1570a4[_0x460739('0x1b79')]();if(!_0x46965b[_0x460739('0x2630')])_0x46965b[_0x460739('0x2630')]={'interval':'*,*,*,*'},_0x46965b['type']=_0x460739('0xc8f'),_0x46965b[_0x460739('0x14e4')]=_0x460739('0xbee'),_0x46965b[_0x460739('0x1f7c')]=!![];else{if(_0x46965b[_0x460739('0x2630')]['interval']!==_0x460739('0x2191')){_0x46965b[_0x460739('0x1d7')]=_0x460739('0x1d56');const _0x47e43c=_0x46965b[_0x460739('0x2630')]['interval'][_0x460739('0x1497')](','),_0x27ce40=_0x47e43c[0x0],_0x3d46c4=_0x47e43c[0x1],_0x462004=_0x47e43c[0x2],_0xae4dcc=_0x47e43c[0x3];if(_0x27ce40!=='*'){const _0x2e5217=_0x27ce40[_0x460739('0x1497')]('-')[0x0],_0xaa548e=_0x27ce40['split']('-')[0x1];let _0x23a38e;_0x23a38e=new Date(),_0x23a38e['setHours'](Number(_0x2e5217['split'](':')[0x0])),_0x23a38e['setMinutes'](Number(_0x2e5217[_0x460739('0x1497')](':')[0x1])),_0x46965b[_0x460739('0x9c0')]=_0x23a38e,_0x23a38e=new Date(),_0x23a38e[_0x460739('0x26f3')](Number(_0xaa548e[_0x460739('0x1497')](':')[0x0])),_0x23a38e[_0x460739('0x18d')](Number(_0xaa548e[_0x460739('0x1497')](':')[0x1])),_0x46965b[_0x460739('0x4a7')]=_0x23a38e;}_0x3d46c4!=='*'&&(_0x46965b['dayOfWeekFrom']=_0x3d46c4[_0x460739('0x1497')]('-')[0x0],_0x46965b[_0x460739('0x6c2')]=_0x3d46c4[_0x460739('0x1497')]('-')[0x1]),_0x462004!=='*'&&(_0x46965b['monthDayFrom']=_0x462004[_0x460739('0x1497')]('-')[0x0],_0x46965b[_0x460739('0x883')]=_0x462004['split']('-')[0x1]),_0xae4dcc!=='*'&&(_0x46965b['monthFrom']=_0xae4dcc['split']('-')[0x0],_0x46965b[_0x460739('0x3dc')]=_0xae4dcc[_0x460739('0x1497')]('-')[0x1]);}else _0x46965b[_0x460739('0x1d7')]=_0x460739('0xc8f');}_0x3d0b32['params']['id']&&!_0x46965b[_0x460739('0x2630')][_0x460739('0x193')]&&(_0x46965b[_0x460739('0x2630')]['IntervalId']=_0x3d0b32[_0x460739('0x4b9')]['id']);_0x46965b[_0x460739('0x2630')][_0x460739('0x20d0')]&&_0x46965b[_0x460739('0x2630')][_0x460739('0x193')]&&(_0x46965b[_0x460739('0x1d7')]='list');_0x46965b[_0x460739('0x267f')]=_0x2d70cf,_0x46965b['saveInterval']=_0x266733,_0x46965b[_0x460739('0xca7')]=_0x20ddd4;_0x46965b[_0x460739('0x2630')]['application']&&(_0x5b7f2f[_0x460739('0x1516')](_0x460739('0xe23'))?_0x35aa15['interval'][_0x460739('0x1335')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x460739('0x954'),'nolimit':!![]})[_0x460739('0x1714')]['then'](function(_0x532b06){const _0x4b5935=_0x460739;_0x46965b[_0x4b5935('0xec5')]=_0x532b06[_0x4b5935('0x25df')]||[];})[_0x460739('0x1cb5')](function(_0x23ef1e){const _0xd6ea3c=_0x460739;_0x3208b9[_0xd6ea3c('0x5e8')]({'title':_0x23ef1e['status']?'API:'+_0x23ef1e[_0xd6ea3c('0x1b51')]+_0xd6ea3c('0x1b0b')+_0x23ef1e[_0xd6ea3c('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x23ef1e[_0xd6ea3c('0x11fc')]?JSON[_0xd6ea3c('0x1be0')](_0x23ef1e[_0xd6ea3c('0x11fc')]):_0x23ef1e[_0xd6ea3c('0x17df')]()});}):_0x35aa15[_0x460739('0x2630')][_0x460739('0x1335')]({'fields':_0x460739('0x27dc'),'IntervalId':_0x460739('0x954'),'nolimit':!![]})[_0x460739('0x1714')][_0x460739('0x2788')](function(_0x150897){const _0x5585a4=_0x460739;_0x46965b['intervals']=_0x150897[_0x5585a4('0x25df')]||[];})['then'](function(){const _0x390e7e=_0x460739;return _0x35aa15['userProfileSection']['get']({'userProfileId':_0x46965b[_0x390e7e('0x9cb')]['userProfileId'],'sectionId':0x3ec})[_0x390e7e('0x1714')];})[_0x460739('0x2788')](function(_0x5beb77){const _0x3d4460=_0x460739,_0x3c316b=_0x5beb77&&_0x5beb77[_0x3d4460('0x25df')]?_0x5beb77['rows'][0x0]:null;if(!_0x3c316b)_0x46965b[_0x3d4460('0xec5')]=[];else{if(!_0x3c316b[_0x3d4460('0x1c0a')])return _0x35aa15[_0x3d4460('0x1050')][_0x3d4460('0x1335')]({'sectionId':_0x3c316b['id']})[_0x3d4460('0x1714')][_0x3d4460('0x2788')](function(_0x157b9d){const _0x31a355=_0x3d4460,_0x4d1c8f=_0x157b9d&&_0x157b9d[_0x31a355('0x25df')]?_0x157b9d['rows']:[],_0x96d022=[];let _0x44d08a=null;_0x46965b[_0x31a355('0x2630')]&&(_0x44d08a=_0x283545()['find'](_0x46965b[_0x31a355('0xec5')],{'name':_0x46965b[_0x31a355('0x2630')]['IntervalId']})),_0x44d08a&&!_0x283545()['some'](_0x4d1c8f,[_0x31a355('0x2707'),_0x44d08a['id']])&&_0x46965b[_0x31a355('0xec5')][_0x31a355('0x1534')](function(_0x1855d7){const _0xcc85a0=_0x31a355;_0x1855d7['id']===_0x44d08a['id']&&(_0x1855d7[_0xcc85a0('0x3bf')]=![],_0x96d022['push'](_0x1855d7));}),_0x46965b['intervals']=_0x96d022;});}})['catch'](function(_0x5ca626){const _0xfa1172=_0x460739;_0x3208b9[_0xfa1172('0x5e8')]({'title':_0x5ca626['status']?_0xfa1172('0x15d1')+_0x5ca626['status']+'\x20-\x20'+_0x5ca626[_0xfa1172('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x5ca626['data']?JSON['stringify'](_0x5ca626[_0xfa1172('0x11fc')]):_0x5ca626[_0xfa1172('0x17df')]()});}));function _0x1d7166(){const _0x42a66c=_0x460739;switch(_0x46965b[_0x42a66c('0x1d7')]){case _0x42a66c('0xc8f'):case _0x42a66c('0x4b2'):return _0x42a66c('0x2191');case _0x42a66c('0x1d56'):{const _0x25e104=[];if(_0x46965b[_0x42a66c('0x9c0')]!=='*'&&_0x46965b[_0x42a66c('0x9c0')]&&_0x46965b['timeRangeTo']){const _0x2a8fa3=(_0x46965b[_0x42a66c('0x9c0')][_0x42a66c('0x130a')]()<0xa?'0':'')+_0x46965b['timeRangeFrom'][_0x42a66c('0x130a')]()+':'+((_0x46965b[_0x42a66c('0x9c0')]['getMinutes']()<0xa?'0':'')+_0x46965b['timeRangeFrom'][_0x42a66c('0x2649')]()),_0x123d12=(_0x46965b[_0x42a66c('0x4a7')][_0x42a66c('0x130a')]()<0xa?'0':'')+_0x46965b[_0x42a66c('0x4a7')][_0x42a66c('0x130a')]()+':'+((_0x46965b['timeRangeTo'][_0x42a66c('0x2649')]()<0xa?'0':'')+_0x46965b[_0x42a66c('0x4a7')][_0x42a66c('0x2649')]());_0x25e104[_0x42a66c('0x13e3')](_0x2a8fa3+'-'+_0x123d12);}else _0x25e104[_0x42a66c('0x13e3')]('*');return _0x46965b[_0x42a66c('0x240c')]?_0x46965b['dayOfWeekTo']?_0x25e104[_0x42a66c('0x13e3')](_0x46965b[_0x42a66c('0x240c')]+'-'+_0x46965b[_0x42a66c('0x6c2')]):_0x25e104[_0x42a66c('0x13e3')](_0x46965b[_0x42a66c('0x240c')]):_0x25e104[_0x42a66c('0x13e3')]('*'),_0x46965b['monthDayFrom']?_0x46965b[_0x42a66c('0x883')]?_0x25e104[_0x42a66c('0x13e3')](_0x46965b['monthDayFrom']+'-'+_0x46965b[_0x42a66c('0x883')]):_0x25e104[_0x42a66c('0x13e3')](_0x46965b[_0x42a66c('0x1d91')]):_0x25e104['push']('*'),_0x46965b[_0x42a66c('0x1317')]?_0x46965b[_0x42a66c('0x3dc')]?_0x25e104[_0x42a66c('0x13e3')](_0x46965b[_0x42a66c('0x1317')]+'-'+_0x46965b[_0x42a66c('0x3dc')]):_0x25e104[_0x42a66c('0x13e3')](_0x46965b[_0x42a66c('0x1317')]):_0x25e104[_0x42a66c('0x13e3')]('*'),_0x25e104['join']();}}}function _0x2d70cf(){const _0x52cca1=_0x460739;_0x46965b[_0x52cca1('0x25be')]=[],_0x46965b[_0x52cca1('0x2630')][_0x52cca1('0x2630')]=_0x1d7166(),_0x35aa15[_0x52cca1('0x2630')]['save'](_0x46965b[_0x52cca1('0x2630')])[_0x52cca1('0x1714')][_0x52cca1('0x2788')](function(_0x1dd340){const _0x12d0cf=_0x52cca1;_0x46965b[_0x12d0cf('0xec5')][_0x12d0cf('0x13e3')](_0x1dd340),_0x3208b9['success']({'title':_0x12d0cf('0x1146'),'msg':_0x46965b[_0x12d0cf('0x2630')]['name']?_0x46965b[_0x12d0cf('0x2630')][_0x12d0cf('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x20ddd4();})[_0x52cca1('0x1cb5')](function(_0x3db825){const _0x4f7716=_0x52cca1;console['error'](_0x3db825),_0x46965b['errors']=_0x3db825[_0x4f7716('0x11fc')]['errors']||[{'message':_0x3db825[_0x4f7716('0x17df')](),'type':_0x4f7716('0x94a')}];});}function _0x266733(){const _0x2f514c=_0x460739;_0x46965b['errors']=[],_0x46965b[_0x2f514c('0x2630')][_0x2f514c('0x2630')]=_0x1d7166(),_0x46965b[_0x2f514c('0x2630')][_0x2f514c('0x193')]?(_0x46965b[_0x2f514c('0x1d7')]!==_0x2f514c('0x4b2')&&(_0x46965b[_0x2f514c('0x2630')][_0x2f514c('0x20d0')]=null),_0x20ddd4(_0x46965b[_0x2f514c('0x2630')])):_0x35aa15[_0x2f514c('0x2630')][_0x2f514c('0x2740')]({'id':_0x46965b[_0x2f514c('0x2630')]['id']},_0x46965b[_0x2f514c('0x2630')])[_0x2f514c('0x1714')][_0x2f514c('0x2788')](function(_0x390023){const _0x2d565a=_0x2f514c,_0xcccf7d=_0x283545()[_0x2d565a('0x20e8')](_0x46965b[_0x2d565a('0xec5')],{'id':_0x390023['id']});_0xcccf7d&&_0x283545()[_0x2d565a('0x2503')](_0xcccf7d,_0x390023),_0x3208b9[_0x2d565a('0x173b')]({'title':_0x2d565a('0xd34'),'msg':_0x2d565a('0x14f1')}),_0x20ddd4();})[_0x2f514c('0x1cb5')](function(_0x1ea2cb){const _0x54128d=_0x2f514c;console[_0x54128d('0x5e8')](_0x1ea2cb),_0x46965b[_0x54128d('0x25be')]=_0x1ea2cb['data'][_0x54128d('0x25be')]||[{'message':_0x1ea2cb['toString'](),'type':'api.interval.update'}];});}function _0x20ddd4(_0x332cf3){const _0x4bb0b1=_0x460739;_0x9d8b8c[_0x4bb0b1('0x19d')](_0x332cf3);}}const _0x1ece5a=_0x528892;_0x3e15a0[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'internalrouteApp',_0x34e79e('0x24e5'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3e15a0(_0x1a14f1,_0x27235e,_0x419bdc,_0x1a0701,_0x100e2e,_0x47d0b5,_0x9ebe1b,_0x5e79c7){const _0x5ae6d2=_0x34e79e,_0x99367a=this;_0x99367a[_0x5ae6d2('0x9cb')]=_0x9ebe1b[_0x5ae6d2('0x24cc')](),_0x99367a[_0x5ae6d2('0x25be')]=[],_0x99367a[_0x5ae6d2('0x14e4')]='VOICE.EDIT_'+(_0x1a0701[_0x5ae6d2('0x167b')]||_0x1a0701[_0x5ae6d2('0x8a5')])['toUpperCase'](),_0x99367a['playback']=angular['copy'](_0x1a0701),_0x99367a[_0x5ae6d2('0xe28')]=_0x5e79c7,_0x99367a['hasModulePermissions']={};if(_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')])switch(_0x99367a[_0x5ae6d2('0x211')]['appType']?_0x99367a['playback'][_0x5ae6d2('0x167b')][_0x5ae6d2('0xc2e')]():_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x8a5')][_0x5ae6d2('0xc2e')]()){case'custom':break;case'dialogflow':{const _0x638fac=_0x99367a['playback']['appdata'][_0x5ae6d2('0x1497')](',');_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x234b')]=_0x638fac[0x0],_0x99367a[_0x5ae6d2('0x211')]['language']=_0x638fac[0x1],_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xf50')]=_0x638fac[_0x5ae6d2('0x845')](0x2,_0x638fac[_0x5ae6d2('0x2566')])[_0x5ae6d2('0x185f')](',');}break;case _0x5ae6d2('0x137a'):{const _0x559123=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')][_0x5ae6d2('0x1497')](',');_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x27f2')]=_0x559123[0x0],_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x1b58')]=_0x559123[0x1],_0x99367a['playback'][_0x5ae6d2('0xb70')]=_0x559123[0x2],_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x4eb')]=_0x559123[0x3],_0x99367a[_0x5ae6d2('0x211')]['welcomemessage']=_0x559123[_0x5ae6d2('0x845')](0x4,_0x559123[_0x5ae6d2('0x2566')])[_0x5ae6d2('0x185f')](',');}break;case _0x5ae6d2('0x808'):{const _0x1c32e9=_0x99367a['playback'][_0x5ae6d2('0xd6b')][_0x5ae6d2('0x1497')](',');_0x99367a[_0x5ae6d2('0x211')]['times']=isNaN(_0x1c32e9[0x0])?_0x1c32e9[0x0]:parseInt(_0x1c32e9[0x0],0xa),_0x99367a['playback'][_0x5ae6d2('0x16db')]=_0x1c32e9[_0x5ae6d2('0x845')](0x1,_0x1c32e9['length'])[_0x5ae6d2('0x185f')](',');}break;case _0x5ae6d2('0x15e2'):_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x16db')]=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')];break;case'set':_0x99367a['playback']['name']=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')][_0x5ae6d2('0x1497')]('=')[0x0],_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x49')]=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')][_0x5ae6d2('0x1497')]('=')[0x1];break;case _0x5ae6d2('0x2631'):_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x1bf6')]=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')];break;default:{const _0x151ad5=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')][_0x5ae6d2('0x1497')](',');_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0xd6b')]=_0x283545()[_0x5ae6d2('0x213d')](_0x151ad5[0x0])?_0x151ad5[0x0]:isNaN(_0x151ad5[0x0])?_0x151ad5[0x0]:parseInt(_0x151ad5[0x0],0xa),_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x784')]=_0x283545()[_0x5ae6d2('0x213d')](_0x151ad5[0x1])?_0x151ad5[0x1]:isNaN(_0x151ad5[0x1])?_0x151ad5[0x1]:parseInt(_0x151ad5[0x1],0xa);}break;}else{}_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x1d7')]&&_0x99367a[_0x5ae6d2('0x211')]['type'][_0x5ae6d2('0xc2e')]()===_0x5ae6d2('0x1')&&_0x99367a['playback'][_0x5ae6d2('0x167b')]['toLowerCase']()===_0x5ae6d2('0x229c')&&(_0x99367a[_0x5ae6d2('0x211')]['prefix']=_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x1224')]?_0x99367a['playback'][_0x5ae6d2('0x1224')][_0x5ae6d2('0x1497')]('$')[0x0]:undefined,_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x2081')]=_0x99367a[_0x5ae6d2('0x211')]['callerID']?_0x5ae6d2('0x1834')+_0x99367a[_0x5ae6d2('0x211')][_0x5ae6d2('0x8de')]:undefined);_0x99367a[_0x5ae6d2('0x1e5c')]=_0xabe345,_0x99367a[_0x5ae6d2('0xca7')]=_0x248b8e,_0x9ebe1b[_0x5ae6d2('0x1516')](_0x5ae6d2('0xe23'))?_0x47d0b5['sound'][_0x5ae6d2('0x1335')]({'fields':_0x5ae6d2('0x1480'),'sort':'name','nolimit':_0x5ae6d2('0x1001')})[_0x5ae6d2('0x1714')][_0x5ae6d2('0x2788')](function(_0x464b5a){const _0x4b53ff=_0x5ae6d2;_0x99367a['sounds']=_0x464b5a[_0x4b53ff('0x25df')]||[];})['catch'](function(_0x16df65){const _0x68f4ce=_0x5ae6d2;_0x419bdc['error']({'title':_0x16df65[_0x68f4ce('0x1b51')]?_0x68f4ce('0x15d1')+_0x16df65[_0x68f4ce('0x1b51')]+_0x68f4ce('0x1b0b')+_0x16df65[_0x68f4ce('0x22ce')]:'SYSTEM:GET_SOUNDS','msg':_0x16df65[_0x68f4ce('0x11fc')]?JSON[_0x68f4ce('0x1be0')](_0x16df65[_0x68f4ce('0x11fc')]):_0x16df65[_0x68f4ce('0x17df')]()});}):_0x47d0b5[_0x5ae6d2('0x216d')]['get']({'fields':_0x5ae6d2('0x1480'),'sort':_0x5ae6d2('0x1a8d'),'nolimit':_0x5ae6d2('0x1001')})[_0x5ae6d2('0x1714')][_0x5ae6d2('0x2788')](function(_0x18a2d8){const _0x33d108=_0x5ae6d2;_0x99367a[_0x33d108('0x16ca')]=_0x18a2d8[_0x33d108('0x25df')]||[];})[_0x5ae6d2('0x2788')](function(){const _0x33ef42=_0x5ae6d2;return _0x47d0b5['userProfileSection'][_0x33ef42('0x1335')]({'userProfileId':_0x99367a[_0x33ef42('0x9cb')][_0x33ef42('0x237f')],'sectionId':0x3ef})['$promise'];})[_0x5ae6d2('0x2788')](function(_0x27a482){const _0x8dab08=_0x5ae6d2,_0x863c00=_0x27a482&&_0x27a482[_0x8dab08('0x25df')]?_0x27a482[_0x8dab08('0x25df')][0x0]:null;if(!_0x863c00){const _0x231d8c=[];let _0x26c0f4=null;_0x99367a[_0x8dab08('0x211')]&&(_0x26c0f4=_0x283545()[_0x8dab08('0x20e8')](_0x99367a[_0x8dab08('0x16ca')],{'save_name':_0x99367a[_0x8dab08('0x211')][_0x8dab08('0xd6b')]}));for(let _0x4848cf=0x0;_0x4848cf<_0x99367a['sounds'][_0x8dab08('0x2566')];_0x4848cf++){_0x26c0f4&&_0x99367a[_0x8dab08('0x16ca')][_0x4848cf]['id']===_0x26c0f4['id']&&(_0x99367a[_0x8dab08('0x16ca')][_0x4848cf][_0x8dab08('0x3bf')]=![],_0x231d8c[_0x8dab08('0x13e3')](_0x99367a[_0x8dab08('0x16ca')][_0x4848cf]));}_0x99367a[_0x8dab08('0x16ca')]=_0x231d8c;}else{if(!_0x863c00[_0x8dab08('0x1c0a')])return _0x47d0b5[_0x8dab08('0x1050')]['get']({'sectionId':_0x863c00['id']})['$promise'][_0x8dab08('0x2788')](function(_0x291042){const _0x5e428e=_0x8dab08,_0x5516e6=_0x283545()['map'](_0x291042[_0x5e428e('0x25df')],function(_0x3341c1){const _0x2cd52b=_0x5e428e;return _0x283545()[_0x2cd52b('0x20e8')](_0x99367a[_0x2cd52b('0x16ca')],{'id':_0x3341c1[_0x2cd52b('0x2707')]});});let _0x47289e=null;_0x99367a[_0x5e428e('0x211')]&&(_0x47289e=_0x283545()[_0x5e428e('0x20e8')](_0x99367a[_0x5e428e('0x16ca')],{'save_name':_0x99367a[_0x5e428e('0x211')][_0x5e428e('0xd6b')]}));if(_0x47289e&&!_0x283545()[_0x5e428e('0xc5d')](_0x5516e6,['id',_0x47289e['id']])){const _0x5b3574=_0x283545()[_0x5e428e('0x20e8')](_0x99367a['sounds'],{'id':_0x47289e['id']});_0x5b3574[_0x5e428e('0x3bf')]=![],_0x5516e6[_0x5e428e('0x13e3')](_0x5b3574);}_0x99367a[_0x5e428e('0x16ca')]=_0x5516e6;});}})[_0x5ae6d2('0x1cb5')](function(_0x400e5f){const _0x425dbf=_0x5ae6d2;_0x419bdc[_0x425dbf('0x5e8')]({'title':_0x400e5f[_0x425dbf('0x1b51')]?_0x425dbf('0x15d1')+_0x400e5f[_0x425dbf('0x1b51')]+_0x425dbf('0x1b0b')+_0x400e5f['statusText']:_0x425dbf('0x19a8'),'msg':_0x400e5f[_0x425dbf('0x11fc')]?JSON[_0x425dbf('0x1be0')](_0x400e5f['data']):_0x400e5f[_0x425dbf('0x17df')]()});});function _0xabe345(){const _0x3d076a=_0x5ae6d2;_0x99367a['errors']=[];const _0x1c9f49=[];_0x99367a['playback'][_0x3d076a('0x1d7')]&&_0x99367a[_0x3d076a('0x211')][_0x3d076a('0x1d7')][_0x3d076a('0xc2e')]()==='outbound'&&_0x99367a['playback'][_0x3d076a('0x167b')]===_0x3d076a('0x25fb')&&(_0x99367a[_0x3d076a('0x211')][_0x3d076a('0x1224')]=_0x100e2e[_0x3d076a('0x277c')]?(_0x99367a['playback'][_0x3d076a('0x1f71')]||'')+_0x3d076a('0x124d')+_0x100e2e[_0x3d076a('0x277c')]+'}':(_0x99367a[_0x3d076a('0x211')][_0x3d076a('0x1f71')]||'')+_0x3d076a('0x1275'),_0x100e2e[_0x3d076a('0x801')]!==_0x3d076a('0x1dc')?_0x99367a[_0x3d076a('0x211')]['options'][_0x3d076a('0x821')](_0x3d076a('0x1609'))<0x0&&(_0x99367a['playback'][_0x3d076a('0x784')]+=_0x3d076a('0x1609')):_0x99367a[_0x3d076a('0x211')]['options']=_0x99367a[_0x3d076a('0x211')]['options'][_0x3d076a('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x99367a[_0x3d076a('0x211')]['appType']&&_0x99367a['playback']['appType']===_0x3d076a('0x1d56')){}else switch((_0x99367a['playback'][_0x3d076a('0x8a5')]||_0x99367a['playback'][_0x3d076a('0x167b')])['toLowerCase']()){case'set':_0x99367a['playback'][_0x3d076a('0xd6b')]=_0x99367a[_0x3d076a('0x211')]['name']+'='+_0x99367a[_0x3d076a('0x211')][_0x3d076a('0x49')];break;case _0x3d076a('0x1d56'):break;default:_0x1c9f49[0x0]=_0x99367a[_0x3d076a('0x211')][_0x3d076a('0xd6b')],_0x1c9f49[0x1]=_0x99367a[_0x3d076a('0x211')]['options'],_0x99367a[_0x3d076a('0x211')][_0x3d076a('0xd6b')]=_0x1c9f49[_0x3d076a('0x185f')](',');}_0x248b8e(_0x99367a[_0x3d076a('0x211')]);}function _0x248b8e(_0x4f21b5){_0x1a14f1['hide'](_0x4f21b5);}}const _0x274aca=_0x3e15a0;_0x119e7b[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x119e7b(_0x3640b9,_0x1423a9,_0x905e97,_0x30c47f,_0x55a224,_0x289600,_0x2e87fe,_0x381a05){const _0x164a75=_0x34e79e,_0x5bbad5=this;_0x5bbad5['currentUser']=_0x2e87fe[_0x164a75('0x24cc')](),_0x5bbad5[_0x164a75('0x25be')]=[],_0x5bbad5[_0x164a75('0x14e4')]=_0x164a75('0xc6c')+(_0x30c47f[_0x164a75('0x167b')]||_0x30c47f[_0x164a75('0x8a5')])[_0x164a75('0x25e6')](),_0x5bbad5[_0x164a75('0x1ab4')]=angular['copy'](_0x30c47f),_0x5bbad5[_0x164a75('0xe28')]=_0x381a05,_0x5bbad5[_0x164a75('0x1193')]={};if(_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xd6b')])switch(_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x167b')]?_0x5bbad5['queue'][_0x164a75('0x167b')][_0x164a75('0xc2e')]():_0x5bbad5['queue'][_0x164a75('0x8a5')]['toLowerCase']()){case _0x164a75('0x1d56'):break;case _0x164a75('0x5e1'):{const _0x54801c=_0x5bbad5[_0x164a75('0x1ab4')]['appdata'][_0x164a75('0x1497')](',');_0x5bbad5['queue'][_0x164a75('0x234b')]=_0x54801c[0x0],_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x175b')]=_0x54801c[0x1],_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xf50')]=_0x54801c[_0x164a75('0x845')](0x2,_0x54801c[_0x164a75('0x2566')])[_0x164a75('0x185f')](',');}break;case'amazonlex':{const _0x5ab337=_0x5bbad5['queue'][_0x164a75('0xd6b')]['split'](',');_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x27f2')]=_0x5ab337[0x0],_0x5bbad5['queue'][_0x164a75('0x1b58')]=_0x5ab337[0x1],_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xb70')]=_0x5ab337[0x2],_0x5bbad5[_0x164a75('0x1ab4')]['botname']=_0x5ab337[0x3],_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xf50')]=_0x5ab337[_0x164a75('0x845')](0x4,_0x5ab337[_0x164a75('0x2566')])[_0x164a75('0x185f')](',');}break;case'autoreply':{const _0x201519=_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xd6b')]['split'](',');_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x5fd')]=isNaN(_0x201519[0x0])?_0x201519[0x0]:parseInt(_0x201519[0x0],0xa),_0x5bbad5['queue'][_0x164a75('0x16db')]=_0x201519[_0x164a75('0x845')](0x1,_0x201519['length'])[_0x164a75('0x185f')](',');}break;case _0x164a75('0x15e2'):_0x5bbad5['queue'][_0x164a75('0x16db')]=_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xd6b')];break;case'set':_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1a8d')]=_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xd6b')]['split']('=')[0x0],_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x49')]=_0x5bbad5['queue'][_0x164a75('0xd6b')][_0x164a75('0x1497')]('=')[0x1];break;case _0x164a75('0x2631'):_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1bf6')]=_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0xd6b')];break;default:{const _0x1dd9c2=_0x5bbad5[_0x164a75('0x1ab4')]['appdata'][_0x164a75('0x1497')](',');_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1ab4')]=_0x283545()['isEmpty'](_0x1dd9c2[0x0])?_0x1dd9c2[0x0]:isNaN(_0x1dd9c2[0x0])?_0x1dd9c2[0x0]:parseInt(_0x1dd9c2[0x0],0xa),_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x784')]=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x1])?_0x1dd9c2[0x1]:isNaN(_0x1dd9c2[0x1])?_0x1dd9c2[0x1]:parseInt(_0x1dd9c2[0x1],0xa),_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x5')]=_0x283545()['isEmpty'](_0x1dd9c2[0x2])?_0x1dd9c2[0x2]:isNaN(_0x1dd9c2[0x2])?_0x1dd9c2[0x2]:parseInt(_0x1dd9c2[0x2],0xa),_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x216d')]=_0x283545()['isEmpty'](_0x1dd9c2[0x3])?_0x1dd9c2[0x3]:isNaN(_0x1dd9c2[0x3])?_0x1dd9c2[0x3]:parseInt(_0x1dd9c2[0x3],0xa),_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x24e4')]=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x4])?_0x1dd9c2[0x4]:isNaN(_0x1dd9c2[0x4])?_0x1dd9c2[0x4]:parseInt(_0x1dd9c2[0x4],0xa),_0x5bbad5[_0x164a75('0x1ab4')]['agi']=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x5])?_0x1dd9c2[0x5]:isNaN(_0x1dd9c2[0x5])?_0x1dd9c2[0x5]:parseInt(_0x1dd9c2[0x5],0xa),_0x5bbad5[_0x164a75('0x1ab4')]['macro']=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x6])?_0x1dd9c2[0x6]:isNaN(_0x1dd9c2[0x6])?_0x1dd9c2[0x6]:parseInt(_0x1dd9c2[0x6],0xa),_0x5bbad5[_0x164a75('0x1ab4')]['gosub']=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x7])?_0x1dd9c2[0x7]:isNaN(_0x1dd9c2[0x7])?_0x1dd9c2[0x7]:parseInt(_0x1dd9c2[0x7],0xa),_0x5bbad5[_0x164a75('0x1ab4')]['rule']=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x8])?_0x1dd9c2[0x8]:isNaN(_0x1dd9c2[0x8])?_0x1dd9c2[0x8]:parseInt(_0x1dd9c2[0x8],0xa),_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1fef')]=_0x283545()[_0x164a75('0x213d')](_0x1dd9c2[0x9])?_0x1dd9c2[0x9]:isNaN(_0x1dd9c2[0x9])?_0x1dd9c2[0x9]:parseInt(_0x1dd9c2[0x9],0xa);}break;}else{}_0x5bbad5['queue'][_0x164a75('0x1d7')]&&_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1d7')][_0x164a75('0xc2e')]()===_0x164a75('0x1')&&_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x167b')][_0x164a75('0xc2e')]()===_0x164a75('0x229c')&&(_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1f71')]=_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1224')]?_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x1224')][_0x164a75('0x1497')]('$')[0x0]:undefined,_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x2081')]=_0x5bbad5[_0x164a75('0x1ab4')]['callerID']?_0x164a75('0x1834')+_0x5bbad5[_0x164a75('0x1ab4')][_0x164a75('0x8de')]:undefined);_0x5bbad5[_0x164a75('0x1e5c')]=_0x53f993,_0x5bbad5['closeDialog']=_0x532c22,_0x2e87fe['hasRole'](_0x164a75('0xe23'))?_0x289600[_0x164a75('0x216d')][_0x164a75('0x1335')]({'fields':'id,name,save_name','sort':_0x164a75('0x1a8d'),'nolimit':_0x164a75('0x1001')})[_0x164a75('0x1714')][_0x164a75('0x2788')](function(_0x3fa98f){const _0x2ee115=_0x164a75;_0x5bbad5[_0x2ee115('0x16ca')]=_0x3fa98f[_0x2ee115('0x25df')]||[];})[_0x164a75('0x1cb5')](function(_0x16c50f){const _0x21eea6=_0x164a75;_0x905e97[_0x21eea6('0x5e8')]({'title':_0x16c50f[_0x21eea6('0x1b51')]?_0x21eea6('0x15d1')+_0x16c50f[_0x21eea6('0x1b51')]+_0x21eea6('0x1b0b')+_0x16c50f[_0x21eea6('0x22ce')]:'SYSTEM:GET_SOUNDS','msg':_0x16c50f[_0x21eea6('0x11fc')]?JSON['stringify'](_0x16c50f[_0x21eea6('0x11fc')]):_0x16c50f[_0x21eea6('0x17df')]()});}):_0x289600[_0x164a75('0x216d')]['get']({'fields':_0x164a75('0x1480'),'sort':_0x164a75('0x1a8d'),'nolimit':_0x164a75('0x1001')})[_0x164a75('0x1714')][_0x164a75('0x2788')](function(_0x92d562){const _0x11769c=_0x164a75;_0x5bbad5[_0x11769c('0x16ca')]=_0x92d562[_0x11769c('0x25df')]||[];})[_0x164a75('0x2788')](function(){const _0x59dc55=_0x164a75;return _0x289600['userProfileSection'][_0x59dc55('0x1335')]({'userProfileId':_0x5bbad5['currentUser'][_0x59dc55('0x237f')],'sectionId':0x3ef})['$promise'];})[_0x164a75('0x2788')](function(_0x582fce){const _0x32736e=_0x164a75,_0x52c8cf=_0x582fce&&_0x582fce['rows']?_0x582fce[_0x32736e('0x25df')][0x0]:null;if(!_0x52c8cf){const _0x5c2118=[];let _0xebecef=null;_0x5bbad5['queue']&&(_0xebecef=_0x283545()[_0x32736e('0x20e8')](_0x5bbad5[_0x32736e('0x16ca')],{'save_name':_0x5bbad5[_0x32736e('0x1ab4')]['sound']}));for(let _0x1da88a=0x0;_0x1da88a<_0x5bbad5['sounds'][_0x32736e('0x2566')];_0x1da88a++){_0xebecef&&_0x5bbad5['sounds'][_0x1da88a]['id']===_0xebecef['id']&&(_0x5bbad5[_0x32736e('0x16ca')][_0x1da88a][_0x32736e('0x3bf')]=![],_0x5c2118[_0x32736e('0x13e3')](_0x5bbad5[_0x32736e('0x16ca')][_0x1da88a]));}_0x5bbad5['sounds']=_0x5c2118;}else{if(!_0x52c8cf[_0x32736e('0x1c0a')])return _0x289600[_0x32736e('0x1050')][_0x32736e('0x1335')]({'sectionId':_0x52c8cf['id']})['$promise'][_0x32736e('0x2788')](function(_0x2309cf){const _0x2ff61a=_0x32736e,_0xf97123=_0x283545()[_0x2ff61a('0x155d')](_0x2309cf['rows'],function(_0x5360ec){const _0x31315b=_0x2ff61a;return _0x283545()[_0x31315b('0x20e8')](_0x5bbad5[_0x31315b('0x16ca')],{'id':_0x5360ec['resourceId']});});let _0x563281=null;_0x5bbad5[_0x2ff61a('0x1ab4')]&&(_0x563281=_0x283545()[_0x2ff61a('0x20e8')](_0x5bbad5[_0x2ff61a('0x16ca')],{'save_name':_0x5bbad5[_0x2ff61a('0x1ab4')]['sound']}));if(_0x563281&&!_0x283545()['some'](_0xf97123,['id',_0x563281['id']])){const _0x34ab97=_0x283545()['find'](_0x5bbad5[_0x2ff61a('0x16ca')],{'id':_0x563281['id']});_0x34ab97[_0x2ff61a('0x3bf')]=![],_0xf97123[_0x2ff61a('0x13e3')](_0x34ab97);}_0x5bbad5[_0x2ff61a('0x16ca')]=_0xf97123;});}})[_0x164a75('0x1cb5')](function(_0x2fe7f1){const _0x1158a2=_0x164a75;_0x905e97['error']({'title':_0x2fe7f1[_0x1158a2('0x1b51')]?_0x1158a2('0x15d1')+_0x2fe7f1[_0x1158a2('0x1b51')]+'\x20-\x20'+_0x2fe7f1[_0x1158a2('0x22ce')]:_0x1158a2('0x19a8'),'msg':_0x2fe7f1[_0x1158a2('0x11fc')]?JSON[_0x1158a2('0x1be0')](_0x2fe7f1[_0x1158a2('0x11fc')]):_0x2fe7f1['toString']()});}),_0x2e87fe[_0x164a75('0x1516')](_0x164a75('0xe23'))?_0x289600[_0x164a75('0x2043')][_0x164a75('0x1335')]({'type':_0x164a75('0x2e4'),'fields':_0x164a75('0xafa'),'sort':_0x164a75('0x1a8d'),'nolimit':_0x164a75('0x1001')})[_0x164a75('0x1714')]['then'](function(_0x41e1a4){const _0xce2d51=_0x164a75;_0x5bbad5[_0xce2d51('0x283e')]=_0x41e1a4[_0xce2d51('0x25df')]||[];})[_0x164a75('0x1cb5')](function(_0x1a1ad9){const _0x5ac268=_0x164a75;_0x905e97['error']({'title':_0x1a1ad9[_0x5ac268('0x1b51')]?'API:'+_0x1a1ad9[_0x5ac268('0x1b51')]+_0x5ac268('0x1b0b')+_0x1a1ad9['statusText']:_0x5ac268('0x2763'),'msg':_0x1a1ad9[_0x5ac268('0x11fc')]?JSON['stringify'](_0x1a1ad9[_0x5ac268('0x11fc')]):_0x1a1ad9[_0x5ac268('0x17df')]()});}):_0x289600['voiceQueue'][_0x164a75('0x1335')]({'type':'inbound','fields':_0x164a75('0xafa'),'sort':'name','nolimit':_0x164a75('0x1001')})[_0x164a75('0x1714')][_0x164a75('0x2788')](function(_0x3cac90){const _0x925283=_0x164a75;_0x5bbad5[_0x925283('0x283e')]=_0x3cac90[_0x925283('0x25df')]||[];})[_0x164a75('0x2788')](function(){const _0x42317f=_0x164a75;return _0x289600['userProfileSection'][_0x42317f('0x1335')]({'userProfileId':_0x5bbad5[_0x42317f('0x9cb')]['userProfileId'],'sectionId':0x191})[_0x42317f('0x1714')];})['then'](function(_0xe2c08a){const _0x54afc4=_0x164a75,_0x3a62ce=_0xe2c08a&&_0xe2c08a[_0x54afc4('0x25df')]?_0xe2c08a[_0x54afc4('0x25df')][0x0]:null;if(!_0x3a62ce){const _0xdeef71=[];let _0x4ba863=null;_0x5bbad5[_0x54afc4('0x1ab4')]&&(_0x4ba863=_0x283545()[_0x54afc4('0x20e8')](_0x5bbad5[_0x54afc4('0x283e')],{'name':_0x5bbad5[_0x54afc4('0x1ab4')][_0x54afc4('0x1ab4')]}));for(let _0x335fd1=0x0;_0x335fd1<_0x5bbad5['queues']['length'];_0x335fd1++){_0x4ba863&&_0x5bbad5[_0x54afc4('0x283e')][_0x335fd1]['id']===_0x4ba863['id']&&(_0x5bbad5[_0x54afc4('0x283e')][_0x335fd1][_0x54afc4('0x3bf')]=![],_0xdeef71[_0x54afc4('0x13e3')](_0x5bbad5['queues'][_0x335fd1]));}_0x5bbad5[_0x54afc4('0x283e')]=_0xdeef71;}else{if(!_0x3a62ce['autoAssociation'])return _0x289600[_0x54afc4('0x1050')][_0x54afc4('0x1335')]({'sectionId':_0x3a62ce['id']})[_0x54afc4('0x1714')]['then'](function(_0x5bf654){const _0x282b5d=_0x54afc4,_0x2666cd=_0x283545()[_0x282b5d('0x155d')](_0x5bf654[_0x282b5d('0x25df')],function(_0x29851b){const _0x1be0df=_0x282b5d;return _0x283545()[_0x1be0df('0x20e8')](_0x5bbad5[_0x1be0df('0x283e')],{'id':_0x29851b[_0x1be0df('0x2707')]});});let _0x8f7c78=null;_0x5bbad5[_0x282b5d('0x1ab4')]&&(_0x8f7c78=_0x283545()[_0x282b5d('0x20e8')](_0x5bbad5[_0x282b5d('0x283e')],{'name':_0x5bbad5[_0x282b5d('0x1ab4')][_0x282b5d('0x1ab4')]}));if(_0x8f7c78&&!_0x283545()[_0x282b5d('0xc5d')](_0x2666cd,['id',_0x8f7c78['id']])){const _0x1e9233=_0x283545()[_0x282b5d('0x20e8')](_0x5bbad5[_0x282b5d('0x283e')],{'id':_0x8f7c78['id']});_0x1e9233[_0x282b5d('0x3bf')]=![],_0x2666cd[_0x282b5d('0x13e3')](_0x1e9233);}_0x5bbad5[_0x282b5d('0x283e')]=_0x2666cd;});}})['catch'](function(_0xc1758c){const _0x4b2bee=_0x164a75;_0x905e97[_0x4b2bee('0x5e8')]({'title':_0xc1758c['status']?'API:'+_0xc1758c[_0x4b2bee('0x1b51')]+_0x4b2bee('0x1b0b')+_0xc1758c['statusText']:'SYSTEM:GETqueues','msg':_0xc1758c['data']?JSON[_0x4b2bee('0x1be0')](_0xc1758c[_0x4b2bee('0x11fc')]):_0xc1758c['toString']()});});function _0x53f993(){const _0x214192=_0x164a75;_0x5bbad5[_0x214192('0x25be')]=[];const _0x76d4a3=[];_0x5bbad5['queue'][_0x214192('0x1d7')]&&_0x5bbad5['queue'][_0x214192('0x1d7')]['toLowerCase']()===_0x214192('0x1')&&_0x5bbad5[_0x214192('0x1ab4')]['appType']===_0x214192('0x25fb')&&(_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1224')]=_0x55a224[_0x214192('0x277c')]?(_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1f71')]||'')+_0x214192('0x124d')+_0x55a224[_0x214192('0x277c')]+'}':(_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1f71')]||'')+_0x214192('0x1275'),_0x55a224[_0x214192('0x801')]!=='none'?_0x5bbad5['queue'][_0x214192('0x784')]['indexOf'](_0x214192('0x1609'))<0x0&&(_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x784')]+='U(xcally-mixmonitor-context)'):_0x5bbad5['queue'][_0x214192('0x784')]=_0x5bbad5[_0x214192('0x1ab4')]['options'][_0x214192('0x10a4')](_0x214192('0x1609'),''));if(_0x5bbad5[_0x214192('0x1ab4')]['appType']&&_0x5bbad5['queue'][_0x214192('0x167b')]===_0x214192('0x1d56')){}else switch((_0x5bbad5['queue'][_0x214192('0x8a5')]||_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x167b')])['toLowerCase']()){case _0x214192('0x3a6'):_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0xd6b')]=_0x5bbad5['queue'][_0x214192('0x1a8d')]+'='+_0x5bbad5[_0x214192('0x1ab4')]['value'];break;case'custom':break;default:_0x76d4a3[0x0]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1ab4')],_0x76d4a3[0x1]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x784')],_0x76d4a3[0x2]=_0x5bbad5[_0x214192('0x1ab4')]['URL'],_0x76d4a3[0x3]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x216d')],_0x76d4a3[0x4]=_0x5bbad5['queue'][_0x214192('0x24e4')],_0x76d4a3[0x5]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x2631')],_0x76d4a3[0x6]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x380')],_0x76d4a3[0x7]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x557')],_0x76d4a3[0x8]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1b87')],_0x76d4a3[0x9]=_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0x1fef')],_0x5bbad5[_0x214192('0x1ab4')][_0x214192('0xd6b')]=_0x76d4a3['join'](',');}_0x532c22(_0x5bbad5[_0x214192('0x1ab4')]);}function _0x532c22(_0x1d1f40){_0x3640b9['hide'](_0x1d1f40);}}const _0x36103e=_0x119e7b;_0x2be5c0['$inject']=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2be5c0(_0x2cbae7,_0x4a0bfa,_0x195fcd,_0x13a601,_0x559cda,_0x3f0470,_0x54d574,_0x3939b6){const _0x43dbea=_0x34e79e,_0x84ac5f=this;_0x84ac5f[_0x43dbea('0x9cb')]=_0x54d574[_0x43dbea('0x24cc')](),_0x84ac5f['errors']=[],_0x84ac5f[_0x43dbea('0x14e4')]='VOICE.EDIT_'+(_0x13a601[_0x43dbea('0x167b')]||_0x13a601[_0x43dbea('0x8a5')])[_0x43dbea('0x25e6')](),_0x84ac5f[_0x43dbea('0x1031')]=angular['copy'](_0x13a601),_0x84ac5f[_0x43dbea('0xe28')]=_0x3939b6,_0x84ac5f[_0x43dbea('0x1193')]={};if(_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0xd6b')])switch(_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x167b')]?_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x167b')]['toLowerCase']():_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x8a5')]['toLowerCase']()){case _0x43dbea('0x1d56'):break;case _0x43dbea('0x5e1'):{const _0x3186f5=_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0xd6b')][_0x43dbea('0x1497')](',');_0x84ac5f[_0x43dbea('0x1031')]['key']=_0x3186f5[0x0],_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x175b')]=_0x3186f5[0x1],_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0xf50')]=_0x3186f5[_0x43dbea('0x845')](0x2,_0x3186f5[_0x43dbea('0x2566')])[_0x43dbea('0x185f')](',');}break;case _0x43dbea('0x137a'):{const _0x4e6093=_0x84ac5f[_0x43dbea('0x1031')]['appdata'][_0x43dbea('0x1497')](',');_0x84ac5f[_0x43dbea('0x1031')]['accesskeyid']=_0x4e6093[0x0],_0x84ac5f[_0x43dbea('0x1031')]['secretaccesskey']=_0x4e6093[0x1],_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0xb70')]=_0x4e6093[0x2],_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x4eb')]=_0x4e6093[0x3],_0x84ac5f['ringgroup'][_0x43dbea('0xf50')]=_0x4e6093[_0x43dbea('0x845')](0x4,_0x4e6093[_0x43dbea('0x2566')])[_0x43dbea('0x185f')](',');}break;case'autoreply':{const _0x1511d5=_0x84ac5f[_0x43dbea('0x1031')]['appdata'][_0x43dbea('0x1497')](',');_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x5fd')]=isNaN(_0x1511d5[0x0])?_0x1511d5[0x0]:parseInt(_0x1511d5[0x0],0xa),_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x16db')]=_0x1511d5[_0x43dbea('0x845')](0x1,_0x1511d5[_0x43dbea('0x2566')])[_0x43dbea('0x185f')](',');}break;case _0x43dbea('0x15e2'):_0x84ac5f['ringgroup'][_0x43dbea('0x16db')]=_0x84ac5f[_0x43dbea('0x1031')]['appdata'];break;case'set':_0x84ac5f[_0x43dbea('0x1031')]['name']=_0x84ac5f[_0x43dbea('0x1031')]['appdata'][_0x43dbea('0x1497')]('=')[0x0],_0x84ac5f['ringgroup'][_0x43dbea('0x49')]=_0x84ac5f['ringgroup'][_0x43dbea('0xd6b')][_0x43dbea('0x1497')]('=')[0x1];break;case _0x43dbea('0x2631'):_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x1bf6')]=_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0xd6b')];break;default:{const _0x263180=_0x84ac5f['ringgroup'][_0x43dbea('0xd6b')]['split'](',');_0x84ac5f['ringgroup'][_0x43dbea('0x10c7')]=_0x263180[0x0][_0x43dbea('0x1497')]('&'),_0x84ac5f[_0x43dbea('0x1031')]['timeout']=_0x283545()['isEmpty'](_0x263180[0x1])?_0x263180[0x1]:isNaN(_0x263180[0x1])?_0x263180[0x1]:parseInt(_0x263180[0x1],0xa),_0x84ac5f['ringgroup'][_0x43dbea('0x784')]=_0x283545()[_0x43dbea('0x213d')](_0x263180[0x2])?_0x263180[0x2]:isNaN(_0x263180[0x2])?_0x263180[0x2]:parseInt(_0x263180[0x2],0xa),_0x84ac5f[_0x43dbea('0x1031')]['url']=_0x283545()[_0x43dbea('0x213d')](_0x263180[0x3])?_0x263180[0x3]:isNaN(_0x263180[0x3])?_0x263180[0x3]:parseInt(_0x263180[0x3],0xa);}break;}else{}_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x1d7')]&&_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x1d7')]['toLowerCase']()==='outbound'&&_0x84ac5f[_0x43dbea('0x1031')]['appType'][_0x43dbea('0xc2e')]()===_0x43dbea('0x229c')&&(_0x84ac5f['ringgroup'][_0x43dbea('0x1f71')]=_0x84ac5f[_0x43dbea('0x1031')]['phone']?_0x84ac5f[_0x43dbea('0x1031')]['phone'][_0x43dbea('0x1497')]('$')[0x0]:undefined,_0x84ac5f['ringgroup']['callerId']=_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x8de')]?_0x43dbea('0x1834')+_0x84ac5f[_0x43dbea('0x1031')][_0x43dbea('0x8de')]:undefined);_0x84ac5f[_0x43dbea('0x1e5c')]=_0x42ef15,_0x84ac5f[_0x43dbea('0xca7')]=_0x188b4a;const _0x11fe86=[{'id':0xca,'role':_0x43dbea('0x188b')},{'id':0xcb,'role':_0x43dbea('0x23ab')}];let _0x5ed26e=null;_0x54d574['hasRole'](_0x43dbea('0xe23'))?_0x3f0470[_0x43dbea('0x1e6a')][_0x43dbea('0x1335')]({'fields':'id,name,role','sort':_0x43dbea('0x1a8d'),'nolimit':'true'})[_0x43dbea('0x1714')][_0x43dbea('0x2788')](function(_0xe09aac){const _0x352eb1=_0x43dbea;_0x84ac5f['users']=_0xe09aac[_0x352eb1('0x25df')]||[];})[_0x43dbea('0x1cb5')](function(_0x137fd7){const _0x45081a=_0x43dbea;_0x195fcd['error']({'title':_0x137fd7[_0x45081a('0x1b51')]?_0x45081a('0x15d1')+_0x137fd7[_0x45081a('0x1b51')]+_0x45081a('0x1b0b')+_0x137fd7[_0x45081a('0x22ce')]:'SYSTEM:GET_USERS','msg':_0x137fd7[_0x45081a('0x11fc')]?JSON['stringify'](_0x137fd7[_0x45081a('0x11fc')]):_0x137fd7[_0x45081a('0x17df')]()});}):_0x3f0470[_0x43dbea('0x1e6a')][_0x43dbea('0x1335')]({'fields':'id,name,role','sort':_0x43dbea('0x1a8d'),'nolimit':_0x43dbea('0x1001')})[_0x43dbea('0x1714')][_0x43dbea('0x2788')](function(_0xf03a24){const _0x2234c2=_0x43dbea;_0x5ed26e=_0xf03a24[_0x2234c2('0x25df')]||[];})[_0x43dbea('0x2788')](function(){const _0x30671e=_0x43dbea,_0x5ca80f=[];for(let _0x2f7b99=0x0;_0x2f7b99<_0x11fe86[_0x30671e('0x2566')];_0x2f7b99++){_0x5ca80f[_0x30671e('0x13e3')](_0x3f0470[_0x30671e('0xec9')]['get']({'userProfileId':_0x84ac5f['currentUser']['userProfileId'],'sectionId':_0x11fe86[_0x2f7b99]['id']})[_0x30671e('0x1714')]);}return _0x4a0bfa[_0x30671e('0x1def')](_0x5ca80f);})[_0x43dbea('0x2788')](function(_0x243103){const _0x25525d=_0x43dbea,_0x5ce9d7=_0x283545()[_0x25525d('0x155d')](_0x243103,function(_0x41d718){const _0x520fb5=_0x25525d;return _0x41d718&&_0x41d718[_0x520fb5('0x25df')]?_0x41d718['rows'][0x0]:null;}),_0x596038=[];for(let _0x3576fb=0x0;_0x3576fb<_0x11fe86['length'];_0x3576fb++){const _0x3a5a9f=_0x283545()[_0x25525d('0x20e8')](_0x5ce9d7,[_0x25525d('0x201d'),_0x11fe86[_0x3576fb]['id']]);if(_0x3a5a9f){if(!_0x3a5a9f['autoAssociation'])_0x596038[_0x25525d('0x13e3')](_0x3f0470['userProfileResource'][_0x25525d('0x1335')]({'sectionId':_0x3a5a9f['id']})[_0x25525d('0x1714')]);else{const _0x5404ea=[];_0x5ed26e[_0x25525d('0x1534')](function(_0x4408da){const _0x2ee902=_0x25525d;_0x4408da['role']===_0x11fe86[_0x3576fb]['role']&&_0x5404ea[_0x2ee902('0x13e3')](_0x4408da);}),_0x596038[_0x25525d('0x13e3')]({'rows':_0x5404ea,'count':_0x5404ea[_0x25525d('0x2566')]});}}}return _0x4a0bfa['all'](_0x596038);})[_0x43dbea('0x2788')](function(_0x43841a){const _0x34fe64=_0x43dbea,_0x48a424=[];let _0xa7f92b=null;_0x84ac5f[_0x34fe64('0x1031')]&&(_0xa7f92b=_0x283545()[_0x34fe64('0x20e8')](_0x5ed26e,{'name':_0x84ac5f[_0x34fe64('0x1031')][_0x34fe64('0x10c7')]}));for(let _0x2f9480=0x0;_0x2f9480<_0x43841a['length'];_0x2f9480++){const _0x1c9e22=_0x43841a[_0x2f9480]['rows']||[];_0x1c9e22[_0x34fe64('0x1534')](function(_0x5d63bd){_0x48a424['push'](_0x5d63bd);});}_0xa7f92b&&!_0x283545()['some'](_0x48a424,[_0x34fe64('0x2707'),_0xa7f92b['id']])&&_0x5ed26e[_0x34fe64('0x1534')](function(_0x3961b5){const _0x41eb04=_0x34fe64;_0x3961b5['id']===_0xa7f92b['id']&&(_0x3961b5[_0x41eb04('0x3bf')]=![],_0x48a424[_0x41eb04('0x13e3')](_0x3961b5));}),_0x84ac5f[_0x34fe64('0x1e42')]=_0x48a424;})[_0x43dbea('0x1cb5')](function(_0x491d05){const _0x20e859=_0x43dbea;_0x195fcd[_0x20e859('0x5e8')]({'title':_0x491d05[_0x20e859('0x1b51')]?_0x20e859('0x15d1')+_0x491d05[_0x20e859('0x1b51')]+_0x20e859('0x1b0b')+_0x491d05[_0x20e859('0x22ce')]:_0x20e859('0x245d'),'msg':_0x491d05[_0x20e859('0x11fc')]?JSON[_0x20e859('0x1be0')](_0x491d05[_0x20e859('0x11fc')]):_0x491d05[_0x20e859('0x17df')]()});});function _0x42ef15(){const _0x541401=_0x43dbea;_0x84ac5f[_0x541401('0x25be')]=[];const _0x16ba22=[];_0x84ac5f['ringgroup']['type']&&_0x84ac5f[_0x541401('0x1031')][_0x541401('0x1d7')][_0x541401('0xc2e')]()===_0x541401('0x1')&&_0x84ac5f[_0x541401('0x1031')]['appType']==='outboundDial'&&(_0x84ac5f[_0x541401('0x1031')][_0x541401('0x1224')]=_0x559cda[_0x541401('0x277c')]?(_0x84ac5f[_0x541401('0x1031')]['prefix']||'')+_0x541401('0x124d')+_0x559cda[_0x541401('0x277c')]+'}':(_0x84ac5f[_0x541401('0x1031')][_0x541401('0x1f71')]||'')+_0x541401('0x1275'),_0x559cda[_0x541401('0x801')]!==_0x541401('0x1dc')?_0x84ac5f[_0x541401('0x1031')]['options'][_0x541401('0x821')](_0x541401('0x1609'))<0x0&&(_0x84ac5f['ringgroup'][_0x541401('0x784')]+='U(xcally-mixmonitor-context)'):_0x84ac5f[_0x541401('0x1031')][_0x541401('0x784')]=_0x84ac5f[_0x541401('0x1031')][_0x541401('0x784')][_0x541401('0x10a4')](_0x541401('0x1609'),''));if(_0x84ac5f['ringgroup'][_0x541401('0x167b')]&&_0x84ac5f[_0x541401('0x1031')][_0x541401('0x167b')]===_0x541401('0x1d56')){}else switch((_0x84ac5f[_0x541401('0x1031')]['app']||_0x84ac5f['ringgroup']['appType'])[_0x541401('0xc2e')]()){case _0x541401('0x3a6'):_0x84ac5f[_0x541401('0x1031')]['appdata']=_0x84ac5f[_0x541401('0x1031')]['name']+'='+_0x84ac5f[_0x541401('0x1031')][_0x541401('0x49')];break;case _0x541401('0x1d56'):break;default:_0x16ba22[0x0]=_0x84ac5f[_0x541401('0x1031')][_0x541401('0x10c7')][_0x541401('0x185f')]('&'),_0x16ba22[0x1]=_0x84ac5f[_0x541401('0x1031')][_0x541401('0x24e4')],_0x16ba22[0x2]=_0x84ac5f[_0x541401('0x1031')][_0x541401('0x784')],_0x16ba22[0x3]=_0x84ac5f['ringgroup']['url'],_0x84ac5f[_0x541401('0x1031')][_0x541401('0xd6b')]=_0x16ba22['join'](',');}_0x188b4a(_0x84ac5f['ringgroup']);}function _0x188b4a(_0x1bf9ea){const _0x1b50f3=_0x43dbea;_0x2cbae7[_0x1b50f3('0x19d')](_0x1bf9ea);}}const _0x26f2fd=_0x2be5c0;_0x1f95e8['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'internalrouteApp',_0x34e79e('0x24e5'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x1f95e8(_0x34114e,_0x3f98f8,_0x3838f5,_0x5dc587,_0x5a6023,_0x4e1bb9,_0x2a3a18,_0x7f26){const _0x85afc2=_0x34e79e,_0x529d4c=this;_0x529d4c[_0x85afc2('0x9cb')]=_0x2a3a18[_0x85afc2('0x24cc')](),_0x529d4c[_0x85afc2('0x25be')]=[],_0x529d4c[_0x85afc2('0x14e4')]='VOICE.EDIT_'+(_0x5dc587['appType']||_0x5dc587[_0x85afc2('0x8a5')])[_0x85afc2('0x25e6')](),_0x529d4c['set']=angular[_0x85afc2('0x2669')](_0x5dc587),_0x529d4c[_0x85afc2('0xe28')]=_0x7f26,_0x529d4c[_0x85afc2('0x1193')]={};if(_0x529d4c['set'][_0x85afc2('0xd6b')])switch(_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x167b')]?_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x167b')][_0x85afc2('0xc2e')]():_0x529d4c['set'][_0x85afc2('0x8a5')][_0x85afc2('0xc2e')]()){case _0x85afc2('0x1d56'):break;case'dialogflow':{const _0x30cf4c=_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0xd6b')][_0x85afc2('0x1497')](',');_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x234b')]=_0x30cf4c[0x0],_0x529d4c[_0x85afc2('0x3a6')]['language']=_0x30cf4c[0x1],_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0xf50')]=_0x30cf4c['slice'](0x2,_0x30cf4c[_0x85afc2('0x2566')])[_0x85afc2('0x185f')](',');}break;case'amazonlex':{const _0x377631=_0x529d4c['set'][_0x85afc2('0xd6b')][_0x85afc2('0x1497')](',');_0x529d4c['set'][_0x85afc2('0x27f2')]=_0x377631[0x0],_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1b58')]=_0x377631[0x1],_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0xb70')]=_0x377631[0x2],_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x4eb')]=_0x377631[0x3],_0x529d4c[_0x85afc2('0x3a6')]['welcomemessage']=_0x377631[_0x85afc2('0x845')](0x4,_0x377631[_0x85afc2('0x2566')])[_0x85afc2('0x185f')](',');}break;case _0x85afc2('0x808'):{const _0x1117db=_0x529d4c[_0x85afc2('0x3a6')]['appdata'][_0x85afc2('0x1497')](',');_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x5fd')]=isNaN(_0x1117db[0x0])?_0x1117db[0x0]:parseInt(_0x1117db[0x0],0xa),_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x16db')]=_0x1117db[_0x85afc2('0x845')](0x1,_0x1117db['length'])[_0x85afc2('0x185f')](',');}break;case'message':_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x16db')]=_0x529d4c['set']['appdata'];break;case _0x85afc2('0x3a6'):_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1a8d')]=_0x529d4c[_0x85afc2('0x3a6')]['appdata'][_0x85afc2('0x1497')]('=')[0x0],_0x529d4c[_0x85afc2('0x3a6')]['value']=_0x529d4c[_0x85afc2('0x3a6')]['appdata'][_0x85afc2('0x1497')]('=')[0x1];break;case _0x85afc2('0x2631'):_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1bf6')]=_0x529d4c['set']['appdata'];break;default:{const _0x4bdd09=_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0xd6b')][_0x85afc2('0x1497')]('=');_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1a8d')]=_0x283545()[_0x85afc2('0x213d')](_0x4bdd09[0x0])?_0x4bdd09[0x0]:isNaN(_0x4bdd09[0x0])?_0x4bdd09[0x0]:parseInt(_0x4bdd09[0x0],0xa),_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x49')]=_0x283545()[_0x85afc2('0x213d')](_0x4bdd09[0x1])?_0x4bdd09[0x1]:isNaN(_0x4bdd09[0x1])?_0x4bdd09[0x1]:parseInt(_0x4bdd09[0x1],0xa);}break;}else{}_0x529d4c['set']['type']&&_0x529d4c['set'][_0x85afc2('0x1d7')][_0x85afc2('0xc2e')]()==='outbound'&&_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1f71')]=_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1224')]?_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x1224')][_0x85afc2('0x1497')]('$')[0x0]:undefined,_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x2081')]=_0x529d4c[_0x85afc2('0x3a6')]['callerID']?_0x85afc2('0x1834')+_0x529d4c[_0x85afc2('0x3a6')][_0x85afc2('0x8de')]:undefined);_0x529d4c[_0x85afc2('0x1e5c')]=_0x2e15d2,_0x529d4c[_0x85afc2('0xca7')]=_0x4f9f3f,_0x2a3a18[_0x85afc2('0x1516')](_0x85afc2('0xe23'))?_0x4e1bb9['variable'][_0x85afc2('0x1335')]({'fields':_0x85afc2('0x1338'),'sort':_0x85afc2('0x1a8d'),'nolimit':_0x85afc2('0x1001')})[_0x85afc2('0x1714')]['then'](function(_0x2832bb){const _0x1247d3=_0x85afc2;_0x529d4c[_0x1247d3('0xf76')]=_0x2832bb['rows']||[];})[_0x85afc2('0x1cb5')](function(_0x4b29c4){const _0x317702=_0x85afc2;_0x3838f5['error']({'title':_0x4b29c4[_0x317702('0x1b51')]?_0x317702('0x15d1')+_0x4b29c4['status']+_0x317702('0x1b0b')+_0x4b29c4[_0x317702('0x22ce')]:_0x317702('0xe86'),'msg':_0x4b29c4[_0x317702('0x11fc')]?JSON[_0x317702('0x1be0')](_0x4b29c4[_0x317702('0x11fc')]):_0x4b29c4['toString']()});}):_0x4e1bb9[_0x85afc2('0xa72')][_0x85afc2('0x1335')]({'fields':'id,name','sort':_0x85afc2('0x1a8d'),'nolimit':_0x85afc2('0x1001')})[_0x85afc2('0x1714')][_0x85afc2('0x2788')](function(_0x5bca93){_0x529d4c['variables']=_0x5bca93['rows']||[];})[_0x85afc2('0x2788')](function(){const _0x1199f8=_0x85afc2;return _0x4e1bb9[_0x1199f8('0xec9')][_0x1199f8('0x1335')]({'userProfileId':_0x529d4c[_0x1199f8('0x9cb')][_0x1199f8('0x237f')],'sectionId':0x3f4})[_0x1199f8('0x1714')];})[_0x85afc2('0x2788')](function(_0x21c402){const _0x1a2439=_0x85afc2,_0x5b7210=_0x21c402&&_0x21c402[_0x1a2439('0x25df')]?_0x21c402['rows'][0x0]:null;if(!_0x5b7210){const _0xa33a49=[];let _0x38c56d=null;_0x529d4c[_0x1a2439('0x3a6')]&&(_0x38c56d=_0x283545()[_0x1a2439('0x20e8')](_0x529d4c[_0x1a2439('0xf76')],{'name':_0x529d4c[_0x1a2439('0x3a6')][_0x1a2439('0x1a8d')]}));for(let _0x5d4d0a=0x0;_0x5d4d0a<_0x529d4c[_0x1a2439('0xf76')][_0x1a2439('0x2566')];_0x5d4d0a++){_0x38c56d&&_0x529d4c[_0x1a2439('0xf76')][_0x5d4d0a]['id']===_0x38c56d['id']&&(_0x529d4c[_0x1a2439('0xf76')][_0x5d4d0a][_0x1a2439('0x3bf')]=![],_0xa33a49[_0x1a2439('0x13e3')](_0x529d4c[_0x1a2439('0xf76')][_0x5d4d0a]));}_0x529d4c[_0x1a2439('0xf76')]=_0xa33a49;}else{if(!_0x5b7210[_0x1a2439('0x1c0a')])return _0x4e1bb9[_0x1a2439('0x1050')][_0x1a2439('0x1335')]({'sectionId':_0x5b7210['id']})[_0x1a2439('0x1714')][_0x1a2439('0x2788')](function(_0x345ee3){const _0x24c76e=_0x1a2439,_0x348f82=_0x283545()['map'](_0x345ee3[_0x24c76e('0x25df')],function(_0xbdd16a){const _0x10fe46=_0x24c76e;return _0x283545()[_0x10fe46('0x20e8')](_0x529d4c['variables'],{'id':_0xbdd16a[_0x10fe46('0x2707')]});});let _0x4eede1=null;_0x529d4c[_0x24c76e('0x3a6')]&&(_0x4eede1=_0x283545()[_0x24c76e('0x20e8')](_0x529d4c[_0x24c76e('0xf76')],{'name':_0x529d4c[_0x24c76e('0x3a6')][_0x24c76e('0x1a8d')]}));if(_0x4eede1&&!_0x283545()[_0x24c76e('0xc5d')](_0x348f82,['id',_0x4eede1['id']])){const _0x3016f9=_0x283545()[_0x24c76e('0x20e8')](_0x529d4c[_0x24c76e('0xf76')],{'id':_0x4eede1['id']});_0x3016f9[_0x24c76e('0x3bf')]=![],_0x348f82[_0x24c76e('0x13e3')](_0x3016f9);}_0x529d4c['variables']=_0x348f82;});}})[_0x85afc2('0x1cb5')](function(_0x393158){const _0x3507cf=_0x85afc2;_0x3838f5[_0x3507cf('0x5e8')]({'title':_0x393158[_0x3507cf('0x1b51')]?_0x3507cf('0x15d1')+_0x393158[_0x3507cf('0x1b51')]+_0x3507cf('0x1b0b')+_0x393158[_0x3507cf('0x22ce')]:_0x3507cf('0x1592'),'msg':_0x393158[_0x3507cf('0x11fc')]?JSON[_0x3507cf('0x1be0')](_0x393158[_0x3507cf('0x11fc')]):_0x393158['toString']()});});function _0x2e15d2(){const _0x27096a=_0x85afc2;_0x529d4c[_0x27096a('0x25be')]=[];const _0x2149c7=[];_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x1d7')]&&_0x529d4c['set']['type'][_0x27096a('0xc2e')]()===_0x27096a('0x1')&&_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x167b')]===_0x27096a('0x25fb')&&(_0x529d4c[_0x27096a('0x3a6')]['phone']=_0x5a6023[_0x27096a('0x277c')]?(_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x1f71')]||'')+'${EXTEN:'+_0x5a6023[_0x27096a('0x277c')]+'}':(_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x1f71')]||'')+'${EXTEN}',_0x5a6023[_0x27096a('0x801')]!==_0x27096a('0x1dc')?_0x529d4c[_0x27096a('0x3a6')]['options'][_0x27096a('0x821')](_0x27096a('0x1609'))<0x0&&(_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x784')]+=_0x27096a('0x1609')):_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x784')]=_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x784')][_0x27096a('0x10a4')](_0x27096a('0x1609'),''));if(_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x167b')]&&_0x529d4c[_0x27096a('0x3a6')]['appType']===_0x27096a('0x1d56')){}else switch((_0x529d4c[_0x27096a('0x3a6')]['app']||_0x529d4c[_0x27096a('0x3a6')]['appType'])[_0x27096a('0xc2e')]()){case'set':_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0xd6b')]=_0x529d4c[_0x27096a('0x3a6')]['name']+'='+_0x529d4c['set'][_0x27096a('0x49')];break;case _0x27096a('0x1d56'):break;default:_0x2149c7[0x0]=_0x529d4c[_0x27096a('0x3a6')][_0x27096a('0x1a8d')],_0x2149c7[0x1]=_0x529d4c['set'][_0x27096a('0x49')],_0x529d4c[_0x27096a('0x3a6')]['appdata']=_0x2149c7[_0x27096a('0x185f')]('=');}_0x4f9f3f(_0x529d4c[_0x27096a('0x3a6')]);}function _0x4f9f3f(_0x1a2542){const _0x2ed923=_0x85afc2;_0x34114e[_0x2ed923('0x19d')](_0x1a2542);}}const _0x2a0ddf=_0x1f95e8;_0x45c1cb['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1f78'),_0x34e79e('0x24e5'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x45c1cb(_0x2c82ab,_0x2d3ccb,_0x590569,_0x118fc5,_0x23a59f,_0x457821,_0x1cd679,_0x207f85){const _0x37660d=_0x34e79e,_0x3fa25a=this;_0x3fa25a[_0x37660d('0x9cb')]=_0x1cd679[_0x37660d('0x24cc')](),_0x3fa25a[_0x37660d('0x25be')]=[],_0x3fa25a[_0x37660d('0x14e4')]=_0x37660d('0xc6c')+(_0x118fc5[_0x37660d('0x167b')]||_0x118fc5[_0x37660d('0x8a5')])[_0x37660d('0x25e6')](),_0x3fa25a[_0x37660d('0x2339')]=angular['copy'](_0x118fc5),_0x3fa25a['crudPermissions']=_0x207f85,_0x3fa25a[_0x37660d('0x1193')]={};if(_0x3fa25a['voicemail'][_0x37660d('0xd6b')])switch(_0x3fa25a['voicemail'][_0x37660d('0x167b')]?_0x3fa25a['voicemail'][_0x37660d('0x167b')][_0x37660d('0xc2e')]():_0x3fa25a['voicemail']['app'][_0x37660d('0xc2e')]()){case _0x37660d('0x1d56'):break;case _0x37660d('0x5e1'):{const _0x442db0=_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0xd6b')][_0x37660d('0x1497')](',');_0x3fa25a['voicemail'][_0x37660d('0x234b')]=_0x442db0[0x0],_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x175b')]=_0x442db0[0x1],_0x3fa25a['voicemail'][_0x37660d('0xf50')]=_0x442db0[_0x37660d('0x845')](0x2,_0x442db0['length'])[_0x37660d('0x185f')](',');}break;case _0x37660d('0x137a'):{const _0x48a4fb=_0x3fa25a['voicemail'][_0x37660d('0xd6b')][_0x37660d('0x1497')](',');_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x27f2')]=_0x48a4fb[0x0],_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1b58')]=_0x48a4fb[0x1],_0x3fa25a[_0x37660d('0x2339')]['lexregion']=_0x48a4fb[0x2],_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x4eb')]=_0x48a4fb[0x3],_0x3fa25a[_0x37660d('0x2339')]['welcomemessage']=_0x48a4fb[_0x37660d('0x845')](0x4,_0x48a4fb['length'])[_0x37660d('0x185f')](',');}break;case'autoreply':{const _0x55092c=_0x3fa25a['voicemail'][_0x37660d('0xd6b')][_0x37660d('0x1497')](',');_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x5fd')]=isNaN(_0x55092c[0x0])?_0x55092c[0x0]:parseInt(_0x55092c[0x0],0xa),_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x16db')]=_0x55092c['slice'](0x1,_0x55092c[_0x37660d('0x2566')])[_0x37660d('0x185f')](',');}break;case _0x37660d('0x15e2'):_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x16db')]=_0x3fa25a['voicemail'][_0x37660d('0xd6b')];break;case _0x37660d('0x3a6'):_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1a8d')]=_0x3fa25a['voicemail']['appdata'][_0x37660d('0x1497')]('=')[0x0],_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x49')]=_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0xd6b')][_0x37660d('0x1497')]('=')[0x1];break;case _0x37660d('0x2631'):_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1bf6')]=_0x3fa25a['voicemail'][_0x37660d('0xd6b')];break;default:{const _0x4f318f=_0x3fa25a[_0x37660d('0x2339')]['appdata'][_0x37660d('0x1497')](',');_0x3fa25a[_0x37660d('0x2339')]['voiceMail']=_0x283545()[_0x37660d('0x213d')](_0x4f318f[0x0])?_0x4f318f[0x0]:isNaN(_0x4f318f[0x0])?_0x4f318f[0x0]:parseInt(_0x4f318f[0x0],0xa),_0x3fa25a[_0x37660d('0x2339')]['options']=_0x283545()['isEmpty'](_0x4f318f[0x1])?_0x4f318f[0x1]:isNaN(_0x4f318f[0x1])?_0x4f318f[0x1]:parseInt(_0x4f318f[0x1],0xa);}break;}else{}_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1d7')]&&_0x3fa25a[_0x37660d('0x2339')]['type'][_0x37660d('0xc2e')]()==='outbound'&&_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x167b')][_0x37660d('0xc2e')]()===_0x37660d('0x229c')&&(_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1f71')]=_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1224')]?_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x1224')][_0x37660d('0x1497')]('$')[0x0]:undefined,_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x2081')]=_0x3fa25a['voicemail'][_0x37660d('0x8de')]?'CALLERID(all)='+_0x3fa25a[_0x37660d('0x2339')][_0x37660d('0x8de')]:undefined);_0x3fa25a[_0x37660d('0x1e5c')]=_0x3b93bc,_0x3fa25a[_0x37660d('0xca7')]=_0x21a1fc,_0x1cd679['hasRole'](_0x37660d('0xe23'))?_0x457821['voiceMail'][_0x37660d('0x1335')]({'fields':_0x37660d('0x1783'),'sort':'mailbox','nolimit':'true'})[_0x37660d('0x1714')][_0x37660d('0x2788')](function(_0x36ecd8){const _0x5469dd=_0x37660d;_0x3fa25a[_0x5469dd('0x2800')]=_0x36ecd8[_0x5469dd('0x25df')]||[];})['catch'](function(_0x569101){const _0x203ba6=_0x37660d;_0x590569[_0x203ba6('0x5e8')]({'title':_0x569101['status']?_0x203ba6('0x15d1')+_0x569101['status']+_0x203ba6('0x1b0b')+_0x569101[_0x203ba6('0x22ce')]:_0x203ba6('0x1081'),'msg':_0x569101[_0x203ba6('0x11fc')]?JSON[_0x203ba6('0x1be0')](_0x569101[_0x203ba6('0x11fc')]):_0x569101['toString']()});}):_0x457821[_0x37660d('0x1e3d')][_0x37660d('0x1335')]({'fields':'id,mailbox','sort':_0x37660d('0x1dd'),'nolimit':_0x37660d('0x1001')})[_0x37660d('0x1714')][_0x37660d('0x2788')](function(_0x16842f){const _0x3b14ff=_0x37660d;_0x3fa25a[_0x3b14ff('0x2800')]=_0x16842f[_0x3b14ff('0x25df')]||[];})[_0x37660d('0x2788')](function(){const _0x1b8a21=_0x37660d;return _0x457821[_0x1b8a21('0xec9')][_0x1b8a21('0x1335')]({'userProfileId':_0x3fa25a[_0x1b8a21('0x9cb')]['userProfileId'],'sectionId':0x196})[_0x1b8a21('0x1714')];})[_0x37660d('0x2788')](function(_0x5d7a1){const _0x1e2821=_0x37660d,_0x16eccb=_0x5d7a1&&_0x5d7a1['rows']?_0x5d7a1[_0x1e2821('0x25df')][0x0]:null;if(!_0x16eccb){const _0x4b5c65=[];let _0x5dca6f=null;_0x3fa25a['voicemail']&&(_0x5dca6f=_0x283545()[_0x1e2821('0x20e8')](_0x3fa25a[_0x1e2821('0x2800')],{'mailbox':_0x3fa25a[_0x1e2821('0x2339')][_0x1e2821('0x1e3d')]}));for(let _0x2027b8=0x0;_0x2027b8<_0x3fa25a[_0x1e2821('0x2800')][_0x1e2821('0x2566')];_0x2027b8++){_0x5dca6f&&_0x3fa25a[_0x1e2821('0x2800')][_0x2027b8]['id']===_0x5dca6f['id']&&(_0x3fa25a['voiceMails'][_0x2027b8][_0x1e2821('0x3bf')]=![],_0x4b5c65[_0x1e2821('0x13e3')](_0x3fa25a[_0x1e2821('0x2800')][_0x2027b8]));}_0x3fa25a[_0x1e2821('0x2800')]=_0x4b5c65;}else{if(!_0x16eccb['autoAssociation'])return _0x457821[_0x1e2821('0x1050')][_0x1e2821('0x1335')]({'sectionId':_0x16eccb['id']})[_0x1e2821('0x1714')]['then'](function(_0x4145e6){const _0xab0183=_0x1e2821,_0x501a21=_0x283545()[_0xab0183('0x155d')](_0x4145e6[_0xab0183('0x25df')],function(_0x3f275b){const _0x5005e7=_0xab0183;return _0x283545()['find'](_0x3fa25a[_0x5005e7('0x2800')],{'id':_0x3f275b[_0x5005e7('0x2707')]});});let _0x40b1e9=null;_0x3fa25a[_0xab0183('0x2339')]&&(_0x40b1e9=_0x283545()[_0xab0183('0x20e8')](_0x3fa25a['voiceMails'],{'mailbox':_0x3fa25a[_0xab0183('0x2339')]['voiceMail']}));if(_0x40b1e9&&!_0x283545()[_0xab0183('0xc5d')](_0x501a21,['id',_0x40b1e9['id']])){const _0x39120a=_0x283545()[_0xab0183('0x20e8')](_0x3fa25a[_0xab0183('0x2800')],{'id':_0x40b1e9['id']});_0x39120a[_0xab0183('0x3bf')]=![],_0x501a21[_0xab0183('0x13e3')](_0x39120a);}_0x3fa25a[_0xab0183('0x2800')]=_0x501a21;});}})[_0x37660d('0x1cb5')](function(_0x1a7a64){const _0x5f080f=_0x37660d;_0x590569[_0x5f080f('0x5e8')]({'title':_0x1a7a64[_0x5f080f('0x1b51')]?_0x5f080f('0x15d1')+_0x1a7a64[_0x5f080f('0x1b51')]+_0x5f080f('0x1b0b')+_0x1a7a64[_0x5f080f('0x22ce')]:_0x5f080f('0x282e'),'msg':_0x1a7a64[_0x5f080f('0x11fc')]?JSON['stringify'](_0x1a7a64[_0x5f080f('0x11fc')]):_0x1a7a64[_0x5f080f('0x17df')]()});});function _0x3b93bc(){const _0x488861=_0x37660d;_0x3fa25a[_0x488861('0x25be')]=[];const _0x44dfd6=[];_0x3fa25a[_0x488861('0x2339')][_0x488861('0x1d7')]&&_0x3fa25a['voicemail'][_0x488861('0x1d7')]['toLowerCase']()===_0x488861('0x1')&&_0x3fa25a[_0x488861('0x2339')][_0x488861('0x167b')]===_0x488861('0x25fb')&&(_0x3fa25a[_0x488861('0x2339')][_0x488861('0x1224')]=_0x23a59f[_0x488861('0x277c')]?(_0x3fa25a['voicemail'][_0x488861('0x1f71')]||'')+_0x488861('0x124d')+_0x23a59f[_0x488861('0x277c')]+'}':(_0x3fa25a[_0x488861('0x2339')][_0x488861('0x1f71')]||'')+_0x488861('0x1275'),_0x23a59f['recordingFormat']!=='none'?_0x3fa25a['voicemail']['options'][_0x488861('0x821')](_0x488861('0x1609'))<0x0&&(_0x3fa25a[_0x488861('0x2339')][_0x488861('0x784')]+=_0x488861('0x1609')):_0x3fa25a[_0x488861('0x2339')][_0x488861('0x784')]=_0x3fa25a['voicemail'][_0x488861('0x784')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x3fa25a[_0x488861('0x2339')][_0x488861('0x167b')]&&_0x3fa25a['voicemail'][_0x488861('0x167b')]===_0x488861('0x1d56')){}else switch((_0x3fa25a[_0x488861('0x2339')][_0x488861('0x8a5')]||_0x3fa25a['voicemail'][_0x488861('0x167b')])['toLowerCase']()){case'set':_0x3fa25a[_0x488861('0x2339')][_0x488861('0xd6b')]=_0x3fa25a[_0x488861('0x2339')][_0x488861('0x1a8d')]+'='+_0x3fa25a[_0x488861('0x2339')][_0x488861('0x49')];break;case _0x488861('0x1d56'):break;default:_0x44dfd6[0x0]=_0x3fa25a[_0x488861('0x2339')][_0x488861('0x1e3d')],_0x44dfd6[0x1]=_0x3fa25a[_0x488861('0x2339')][_0x488861('0x784')],_0x3fa25a[_0x488861('0x2339')][_0x488861('0xd6b')]=_0x44dfd6[_0x488861('0x185f')](',');}_0x21a1fc(_0x3fa25a[_0x488861('0x2339')]);}function _0x21a1fc(_0x2e2e35){_0x2c82ab['hide'](_0x2e2e35);}}const _0x2b67b8=_0x45c1cb;_0x6b1dff[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x24e5'),'userProfileSection'];function _0x6b1dff(_0xce01a,_0x497ec6,_0x52400b,_0x2a7a44,_0x2cb2ae,_0xe94f17,_0x5771e5,_0x352300,_0x5a8f5c,_0x2d7734,_0x1d3abc,_0x511092){const _0x168e0f=_0x34e79e,_0x482fda=this;_0x482fda['currentUser']=_0x2d7734[_0x168e0f('0x24cc')](),_0x482fda['license']=_0xe94f17,_0x482fda['setting']=_0x5771e5,_0x482fda[_0x168e0f('0x18ad')]=_0x482fda[_0x168e0f('0x1af0')][_0x168e0f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x482fda['location']=_0x497ec6['protocol']()+_0x168e0f('0x726')+_0x497ec6[_0x168e0f('0x1c6a')](),_0x482fda[_0x168e0f('0x24e5')]=_0x1d3abc||_0xce01a['params'][_0x168e0f('0x24e5')]||{},_0x482fda[_0x168e0f('0xec9')]=_0x511092&&_0x511092[_0x168e0f('0x338')]==0x1?_0x511092[_0x168e0f('0x25df')][0x0]:null,_0x482fda[_0x168e0f('0xe28')]=_0x2d7734['parseCrudPermissions'](_0x482fda[_0x168e0f('0xec9')]?_0x482fda[_0x168e0f('0xec9')][_0x168e0f('0xe28')]:null),_0x482fda['hasModulePermissions']={},_0x482fda[_0x168e0f('0xcb3')]=_0xce01a['params']['tab']||0x0,_0x482fda['alert']=_0x5a8f5c[_0x168e0f('0x2276')],_0x482fda['gotoInternalRoutes']=_0x2fb817,_0x482fda[_0x168e0f('0x1d5f')]=_0x15ee15,_0x2d7734[_0x168e0f('0x1516')](_0x168e0f('0xe23'))?_0x352300[_0x168e0f('0x15cc')][_0x168e0f('0x1335')]({'fields':_0x168e0f('0x1338'),'sort':'name','nolimit':_0x168e0f('0x1001')})['$promise'][_0x168e0f('0x2788')](function(_0x4ffdb0){const _0x23e4dc=_0x168e0f;_0x482fda[_0x23e4dc('0xf3e')]=_0x4ffdb0['rows']||[];})[_0x168e0f('0x1cb5')](function(_0x1162a2){const _0x41ac2d=_0x168e0f;_0x5a8f5c['error']({'title':_0x1162a2[_0x41ac2d('0x1b51')]?_0x41ac2d('0x15d1')+_0x1162a2[_0x41ac2d('0x1b51')]+'\x20-\x20'+_0x1162a2[_0x41ac2d('0x22ce')]:_0x41ac2d('0x15f7'),'msg':_0x1162a2[_0x41ac2d('0x11fc')]?JSON[_0x41ac2d('0x1be0')](_0x1162a2[_0x41ac2d('0x11fc')]):_0x1162a2[_0x41ac2d('0x17df')]()});}):_0x352300[_0x168e0f('0x15cc')][_0x168e0f('0x1335')]({'fields':_0x168e0f('0x1338'),'sort':_0x168e0f('0x1a8d'),'nolimit':_0x168e0f('0x1001')})['$promise']['then'](function(_0x40731a){const _0x2e1a1=_0x168e0f;_0x482fda[_0x2e1a1('0xf3e')]=_0x40731a[_0x2e1a1('0x25df')]||[];})[_0x168e0f('0x2788')](function(){const _0x334008=_0x168e0f;return _0x352300[_0x334008('0xec9')]['get']({'userProfileId':_0x482fda[_0x334008('0x9cb')][_0x334008('0x237f')],'sectionId':0x195})['$promise'];})[_0x168e0f('0x2788')](function(_0x55cac7){const _0xc8b90e=_0x168e0f,_0x3b3a49=_0x55cac7&&_0x55cac7[_0xc8b90e('0x25df')]?_0x55cac7['rows'][0x0]:null;if(!_0x3b3a49)return _0x352300[_0xc8b90e('0x15cc')][_0xc8b90e('0x1335')]({'fields':_0xc8b90e('0x1338'),'sort':'name','nolimit':_0xc8b90e('0x1001'),'defaultEntry':0x1})[_0xc8b90e('0x1714')]['then'](function(_0x3de61f){const _0x91cc25=_0xc8b90e;_0x482fda[_0x91cc25('0xf3e')]=_0x3de61f[_0x91cc25('0x25df')]||[];});else{if(!_0x3b3a49[_0xc8b90e('0x1c0a')])return _0x352300[_0xc8b90e('0x1050')][_0xc8b90e('0x1335')]({'sectionId':_0x3b3a49['id']})[_0xc8b90e('0x1714')][_0xc8b90e('0x2788')](function(_0x584416){const _0x558859=_0xc8b90e,_0x5d304c=_0x283545()[_0x558859('0x155d')](_0x584416[_0x558859('0x25df')],function(_0x4c5121){const _0x25d450=_0x558859;return _0x283545()[_0x25d450('0x20e8')](_0x482fda[_0x25d450('0xf3e')],{'id':_0x4c5121[_0x25d450('0x2707')]});});let _0x46b891=null;_0x482fda[_0x558859('0x24e5')]&&(_0x46b891=_0x283545()[_0x558859('0x20e8')](_0x482fda[_0x558859('0xf3e')],{'name':_0x482fda[_0x558859('0x24e5')][_0x558859('0x1f3b')]}));if(_0x46b891&&!_0x283545()[_0x558859('0xc5d')](_0x5d304c,['id',_0x46b891['id']])){const _0xb7d109=_0x283545()[_0x558859('0x20e8')](_0x482fda['contexts'],{'id':_0x46b891['id']});_0xb7d109[_0x558859('0x3bf')]=![],_0x5d304c[_0x558859('0x13e3')](_0xb7d109);}_0x482fda[_0x558859('0xf3e')]=_0x5d304c;});}})[_0x168e0f('0x1cb5')](function(_0x15261e){const _0x224773=_0x168e0f;_0x5a8f5c[_0x224773('0x5e8')]({'title':_0x15261e[_0x224773('0x1b51')]?_0x224773('0x15d1')+_0x15261e[_0x224773('0x1b51')]+'\x20-\x20'+_0x15261e[_0x224773('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x15261e[_0x224773('0x11fc')]?JSON[_0x224773('0x1be0')](_0x15261e[_0x224773('0x11fc')]):_0x15261e['toString']()});});function _0x2fb817(){const _0x5ba976=_0x168e0f;_0xce01a['go'](_0x5ba976('0xe68'),{},{'reload':'app.voice.internalroutes'});}function _0x15ee15(){const _0x1a1a18=_0x168e0f;_0x352300[_0x1a1a18('0x2636')][_0x1a1a18('0x2740')]({'id':_0x482fda[_0x1a1a18('0x24e5')]['id']},_0x482fda['internalroute'])[_0x1a1a18('0x1714')][_0x1a1a18('0x2788')](function(){const _0xc62f0=_0x1a1a18;_0x5a8f5c[_0xc62f0('0x173b')]({'title':_0xc62f0('0x1db4'),'msg':_0x482fda['internalroute'][_0xc62f0('0x1a8d')]?_0x482fda[_0xc62f0('0x24e5')][_0xc62f0('0x1a8d')]+_0xc62f0('0x6f8'):''});})[_0x1a1a18('0x1cb5')](function(_0x1326cf){const _0x101fce=_0x1a1a18;_0x5a8f5c[_0x101fce('0x5e8')]({'title':_0x1326cf['status']?'API:'+_0x1326cf[_0x101fce('0x1b51')]+_0x101fce('0x1b0b')+_0x1326cf[_0x101fce('0x22ce')]:_0x101fce('0x2078'),'msg':_0x1326cf[_0x101fce('0x11fc')]?JSON[_0x101fce('0x1be0')](_0x1326cf[_0x101fce('0x11fc')]):_0x1326cf[_0x101fce('0x17df')]()});});}}const _0xa9cde8=_0x6b1dff,_0x220e46=_0x18dd13['p']+_0x34e79e('0x1996');_0x4a3a79[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'internalroutes',_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x4a3a79(_0xb02dce,_0x1121ab,_0x54abf2,_0x24b9d8,_0x5b12bf,_0x104f18,_0xac4d8b,_0xfee98f,_0x2818f3,_0x5ca650,_0xfca449,_0x1ffe51,_0x1471dd,_0x4bb48d,_0x32d779,_0x133b2c,_0x49dbdf){const _0x4ffaba=_0x34e79e,_0x3ccdf1=this;_0x3ccdf1[_0x4ffaba('0x130d')]=_0x133b2c,_0x3ccdf1[_0x4ffaba('0x1af0')]=_0x49dbdf,_0x3ccdf1['currentUser']=_0x32d779[_0x4ffaba('0x24cc')](),_0x3ccdf1['internalroutes']=_0x2818f3||{'count':0x0,'rows':[]},_0x3ccdf1[_0x4ffaba('0x63c')]=_0x5ca650,_0x3ccdf1['userProfileSection']=_0xfca449&&_0xfca449[_0x4ffaba('0x338')]==0x1?_0xfca449[_0x4ffaba('0x25df')][0x0]:null,_0x3ccdf1[_0x4ffaba('0xe28')]=_0x32d779[_0x4ffaba('0x157e')](_0x3ccdf1[_0x4ffaba('0xec9')]?_0x3ccdf1[_0x4ffaba('0xec9')][_0x4ffaba('0xe28')]:null),_0x3ccdf1[_0x4ffaba('0x26a9')]=_0x4ffaba('0x40d'),_0x3ccdf1[_0x4ffaba('0x2278')]='',_0x3ccdf1[_0x4ffaba('0x25e2')]=null,_0x3ccdf1[_0x4ffaba('0x1606')]=[],_0x3ccdf1[_0x4ffaba('0x135a')]={'fields':_0x4ffaba('0x1a1a'),'type':'internal','sort':_0x4ffaba('0x1cee'),'VoiceExtensionId':_0x4ffaba('0x954'),'limit':0xa,'page':0x1},_0x3ccdf1[_0x4ffaba('0x1f7e')]=_0x3ddc9d,_0x3ccdf1[_0x4ffaba('0x1e5')]=_0x28989b,_0x3ccdf1[_0x4ffaba('0x173b')]=_0xa82aa7,_0x3ccdf1[_0x4ffaba('0x258a')]=_0x1f3d2d,_0x3ccdf1[_0x4ffaba('0x25e')]=_0x4e7a35,_0x3ccdf1[_0x4ffaba('0xb96')]=_0x56ad7a,_0x3ccdf1[_0x4ffaba('0x5d1')]=_0x3a3154,_0x3ccdf1[_0x4ffaba('0xbfa')]=_0x20e6ab,_0x3ccdf1[_0x4ffaba('0x110b')]=_0x1d2fe3,_0x3ccdf1[_0x4ffaba('0x1f6e')]=_0x40aea2,_0x32d779['hasRole'](_0x4ffaba('0xe23'))?_0x1ffe51[_0x4ffaba('0x15cc')]['get']({'fields':_0x4ffaba('0x1338'),'sort':_0x4ffaba('0x1a8d'),'nolimit':_0x4ffaba('0x1001')})[_0x4ffaba('0x1714')][_0x4ffaba('0x2788')](function(_0x182b37){const _0x5d8954=_0x4ffaba;_0x3ccdf1[_0x5d8954('0xf3e')]=_0x182b37[_0x5d8954('0x25df')]||[];})[_0x4ffaba('0x1cb5')](function(_0xcd0d14){const _0x2beee9=_0x4ffaba;_0x4bb48d[_0x2beee9('0x5e8')]({'title':_0xcd0d14[_0x2beee9('0x1b51')]?'API:'+_0xcd0d14[_0x2beee9('0x1b51')]+'\x20-\x20'+_0xcd0d14[_0x2beee9('0x22ce')]:_0x2beee9('0x15f7'),'msg':_0xcd0d14['data']?JSON[_0x2beee9('0x1be0')](_0xcd0d14['data']):_0xcd0d14['toString']()});}):_0x1ffe51[_0x4ffaba('0x15cc')][_0x4ffaba('0x1335')]({'fields':_0x4ffaba('0x1338'),'sort':_0x4ffaba('0x1a8d'),'nolimit':_0x4ffaba('0x1001')})['$promise'][_0x4ffaba('0x2788')](function(_0x1c38fd){_0x3ccdf1['contexts']=_0x1c38fd['rows']||[];})[_0x4ffaba('0x2788')](function(){const _0x2e78cf=_0x4ffaba;return _0x1ffe51[_0x2e78cf('0xec9')][_0x2e78cf('0x1335')]({'userProfileId':_0x3ccdf1[_0x2e78cf('0x9cb')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x4ffaba('0x2788')](function(_0x2333ff){const _0x26d7a0=_0x4ffaba,_0x4acce8=_0x2333ff&&_0x2333ff[_0x26d7a0('0x25df')]?_0x2333ff['rows'][0x0]:null;if(!_0x4acce8)return _0x1ffe51['voiceContext']['get']({'fields':_0x26d7a0('0x1338'),'sort':'name','nolimit':_0x26d7a0('0x1001'),'defaultEntry':0x1})[_0x26d7a0('0x1714')][_0x26d7a0('0x2788')](function(_0x33984c){const _0x119975=_0x26d7a0;_0x3ccdf1[_0x119975('0xf3e')]=_0x33984c[_0x119975('0x25df')]||[];});else{if(!_0x4acce8[_0x26d7a0('0x1c0a')])return _0x1ffe51[_0x26d7a0('0x1050')][_0x26d7a0('0x1335')]({'sectionId':_0x4acce8['id']})[_0x26d7a0('0x1714')]['then'](function(_0x4d8069){const _0x564bd7=_0x26d7a0,_0x29510a=_0x283545()[_0x564bd7('0x155d')](_0x4d8069['rows'],function(_0x302be6){const _0xbd42=_0x564bd7;return _0x283545()[_0xbd42('0x20e8')](_0x3ccdf1['contexts'],{'id':_0x302be6[_0xbd42('0x2707')]});});let _0x1b7af2=null;_0x3ccdf1[_0x564bd7('0x24e5')]&&(_0x1b7af2=_0x283545()[_0x564bd7('0x20e8')](_0x3ccdf1[_0x564bd7('0xf3e')],{'name':_0x3ccdf1['internalroute'][_0x564bd7('0x1f3b')]}));if(_0x1b7af2&&!_0x283545()[_0x564bd7('0xc5d')](_0x29510a,['id',_0x1b7af2['id']])){const _0x185aab=_0x283545()[_0x564bd7('0x20e8')](_0x3ccdf1[_0x564bd7('0xf3e')],{'id':_0x1b7af2['id']});_0x185aab['canSelect']=![],_0x29510a[_0x564bd7('0x13e3')](_0x185aab);}_0x3ccdf1[_0x564bd7('0xf3e')]=_0x29510a;});}})[_0x4ffaba('0x1cb5')](function(_0x29545e){const _0x23f50b=_0x4ffaba;_0x4bb48d[_0x23f50b('0x5e8')]({'title':_0x29545e[_0x23f50b('0x1b51')]?_0x23f50b('0x15d1')+_0x29545e[_0x23f50b('0x1b51')]+_0x23f50b('0x1b0b')+_0x29545e[_0x23f50b('0x22ce')]:_0x23f50b('0x265a'),'msg':_0x29545e['data']?JSON[_0x23f50b('0x1be0')](_0x29545e[_0x23f50b('0x11fc')]):_0x29545e['toString']()});});function _0x3ddc9d(_0x3b8477){const _0x82eec4=_0x4ffaba;_0x54abf2['go'](_0x82eec4('0x4f3'),{'id':_0x3b8477['id'],'internalroute':_0x3b8477,'crudPermissions':_0x3ccdf1[_0x82eec4('0xe28')]});}function _0x28989b(_0x3c0a88,_0x5495b1){const _0x2296d9=_0x4ffaba,_0x223cdb=_0x5b12bf[_0x2296d9('0x112e')]()[_0x2296d9('0x14e4')](_0x2296d9('0x2114')+_0x283545()[_0x2296d9('0x114')](_0x2296d9('0x24e5'))+'?')['htmlContent'](''+(_0x3c0a88[_0x2296d9('0x1a8d')]||_0x2296d9('0x24e5'))+_0x2296d9('0x229e')+'\x20will\x20be\x20deleted.')[_0x2296d9('0x10bc')](_0x2296d9('0x178'))[_0x2296d9('0x24d0')](_0x5495b1)['ok']('OK')['cancel'](_0x2296d9('0x1d8d'));_0x5b12bf['show'](_0x223cdb)[_0x2296d9('0x2788')](function(){_0x56ad7a(_0x3c0a88);},function(){const _0x5b6e78=_0x2296d9;console[_0x5b6e78('0x10df')](_0x5b6e78('0x1d8d'));});}let _0x2646e5=!![],_0x37193d=0x1;_0xb02dce[_0x4ffaba('0x1662')](_0x4ffaba('0x1569'),function(_0x46a80f,_0x418283){const _0x444c0b=_0x4ffaba;_0x2646e5?_0xac4d8b(function(){_0x2646e5=![];}):(!_0x418283&&(_0x37193d=_0x3ccdf1[_0x444c0b('0x135a')][_0x444c0b('0x23f5')]),_0x46a80f!==_0x418283&&(_0x3ccdf1[_0x444c0b('0x135a')][_0x444c0b('0x23f5')]=0x1),!_0x46a80f&&(_0x3ccdf1[_0x444c0b('0x135a')][_0x444c0b('0x23f5')]=_0x37193d),_0x3ccdf1[_0x444c0b('0x258a')]());});function _0xa82aa7(_0x2947f2){const _0x474f6a=_0x4ffaba;_0x3ccdf1[_0x474f6a('0x40d')]=_0x2947f2||{'count':0x0,'rows':[]};}function _0x1f3d2d(){const _0x236dde=_0x4ffaba;_0x3ccdf1[_0x236dde('0x135a')][_0x236dde('0x19e')]=(_0x3ccdf1[_0x236dde('0x135a')][_0x236dde('0x23f5')]-0x1)*_0x3ccdf1[_0x236dde('0x135a')][_0x236dde('0x68e')],_0x32d779[_0x236dde('0x1516')](_0x236dde('0xe23'))?_0x3ccdf1[_0x236dde('0x1808')]=_0x1ffe51['voiceExtension'][_0x236dde('0x1335')](_0x3ccdf1['query'],_0xa82aa7)[_0x236dde('0x1714')]:(_0x3ccdf1['query']['id']=_0x3ccdf1[_0x236dde('0x63c')]['id'],_0x3ccdf1[_0x236dde('0x135a')][_0x236dde('0xb13')]=_0x236dde('0x6c0'),_0x3ccdf1[_0x236dde('0x1808')]=_0x1ffe51['userProfile'][_0x236dde('0xa1')](_0x3ccdf1['query'],_0xa82aa7)['$promise']);}function _0x4e7a35(_0x150283,_0x3bb4d7){const _0x42a781=_0x4ffaba;_0x5b12bf[_0x42a781('0x2fa')]({'controller':_0x42a781('0x544'),'controllerAs':'vm','templateUrl':_0x220e46,'parent':angular[_0x42a781('0x16b1')](_0x104f18['body']),'targetEvent':_0x150283,'clickOutsideToClose':!![],'locals':{'internalroute':_0x3bb4d7,'internalroutes':_0x3ccdf1[_0x42a781('0x40d')]['rows'],'license':_0x3ccdf1[_0x42a781('0x130d')],'setting':_0x3ccdf1[_0x42a781('0x1af0')],'crudPermissions':_0x3ccdf1[_0x42a781('0xe28')]}});}function _0x56ad7a(_0x2e33a6){const _0x4e34fc=_0x4ffaba;_0x1ffe51[_0x4e34fc('0x2636')]['delete']({'id':_0x2e33a6['id']})[_0x4e34fc('0x1714')][_0x4e34fc('0x2788')](function(){const _0x244cb9=_0x4e34fc;_0x283545()[_0x244cb9('0x1a90')](_0x3ccdf1[_0x244cb9('0x40d')][_0x244cb9('0x25df')],{'id':_0x2e33a6['id']}),_0x3ccdf1['internalroutes'][_0x244cb9('0x338')]-=0x1,!_0x3ccdf1['internalroutes'][_0x244cb9('0x25df')][_0x244cb9('0x2566')]&&_0x3ccdf1[_0x244cb9('0x258a')](),_0x4bb48d[_0x244cb9('0x173b')]({'title':_0x283545()['startCase']('InternalRoute')+_0x244cb9('0x20db'),'msg':_0x2e33a6[_0x244cb9('0x1a8d')]?_0x2e33a6[_0x244cb9('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x4e34fc('0x1cb5')](function(_0x5a1ce6){const _0x319254=_0x4e34fc;if(_0x5a1ce6[_0x319254('0x11fc')]&&_0x5a1ce6[_0x319254('0x11fc')][_0x319254('0x25be')]&&_0x5a1ce6[_0x319254('0x11fc')][_0x319254('0x25be')][_0x319254('0x2566')]){_0x3ccdf1['errors']=_0x5a1ce6[_0x319254('0x11fc')]['errors']||[{'message':_0x5a1ce6[_0x319254('0x17df')](),'type':_0x319254('0x1216')}];for(let _0x282305=0x0;_0x282305<_0x5a1ce6['data'][_0x319254('0x25be')]['length'];_0x282305++){_0x4bb48d[_0x319254('0x5e8')]({'title':_0x5a1ce6[_0x319254('0x11fc')]['errors'][_0x282305]['type'],'msg':_0x5a1ce6['data'][_0x319254('0x25be')][_0x282305][_0x319254('0x15e2')]});}}else _0x4bb48d['error']({'title':_0x5a1ce6[_0x319254('0x1b51')]?_0x319254('0x15d1')+_0x5a1ce6['status']+_0x319254('0x1b0b')+_0x5a1ce6['statusText']:_0x319254('0x1216'),'msg':_0x5a1ce6[_0x319254('0x11fc')]?JSON[_0x319254('0x1be0')](_0x5a1ce6[_0x319254('0x11fc')][_0x319254('0x15e2')]):_0x5a1ce6[_0x319254('0x15e2')]||_0x5a1ce6[_0x319254('0x17df')]()});});}function _0x3a3154(){const _0xbad746=_0x4ffaba,_0x5a638b=angular[_0xbad746('0x2669')](_0x3ccdf1[_0xbad746('0x1606')]);return _0x3ccdf1[_0xbad746('0x1606')]=[],_0x5a638b;}function _0x20e6ab(_0x68fed4){const _0x35ad59=_0x4ffaba,_0x110455=_0x5b12bf[_0x35ad59('0x112e')]()[_0x35ad59('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?')[_0x35ad59('0x93e')](_0x35ad59('0x1670')+_0x3ccdf1['selectedInternalRoutes'][_0x35ad59('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x35ad59('0x10bc')](_0x35ad59('0x21f8'))[_0x35ad59('0x24d0')](_0x68fed4)['ok']('OK')[_0x35ad59('0x1801')](_0x35ad59('0x1d8d'));_0x5b12bf['show'](_0x110455)[_0x35ad59('0x2788')](function(){const _0x556dbf=_0x35ad59;_0x3ccdf1[_0x556dbf('0x1606')][_0x556dbf('0x1534')](function(_0x2ba3c2){_0x56ad7a(_0x2ba3c2);}),_0x3ccdf1[_0x556dbf('0x1606')]=[];});}function _0x1d2fe3(){const _0x3aa363=_0x4ffaba;_0x3ccdf1[_0x3aa363('0x1606')]=[];}function _0x40aea2(){const _0x400a6c=_0x4ffaba;_0x3ccdf1['selectedInternalRoutes']=_0x3ccdf1[_0x400a6c('0x40d')][_0x400a6c('0x25df')];}}const _0xc98cd9=_0x4a3a79;_0xb9021[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty','musiconholds','musiconhold','api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0xb9021(_0x46ce28,_0x4ffc7b,_0x4d6e15,_0x42e8fd,_0x5297cd,_0xf85e6e,_0x5f498c,_0xb7c77a,_0x41b64a,_0x5a1e4b,_0x312df4,_0x3464ee,_0x4901d4,_0x724462){const _0x5cc4f4=_0x34e79e,_0x4f6bef=this;_0x4f6bef[_0x5cc4f4('0x9cb')]=_0x312df4['getCurrentUser'](),_0x4f6bef[_0x5cc4f4('0x25be')]=[],_0x4f6bef[_0x5cc4f4('0x1af0')]=_0x4901d4,_0x4f6bef[_0x5cc4f4('0x130d')]=_0x3464ee,_0x4f6bef[_0x5cc4f4('0xe28')]=_0x724462,_0x4f6bef[_0x5cc4f4('0x1193')]={},_0x4f6bef[_0x5cc4f4('0x18ad')]=_0x4f6bef[_0x5cc4f4('0x1af0')]&&_0x4f6bef[_0x5cc4f4('0x1af0')][_0x5cc4f4('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f6bef[_0x5cc4f4('0x14e4')]=_0x5cc4f4('0xbb1'),_0x4f6bef[_0x5cc4f4('0xefd')]=angular[_0x5cc4f4('0x2669')](_0x41b64a),_0x4f6bef[_0x5cc4f4('0xc0c')]=_0xb7c77a,_0x4f6bef['newMusicOnHold']=![];!_0x4f6bef[_0x5cc4f4('0xefd')]&&(_0x4f6bef['musiconhold']={'mode':'files'},_0x4f6bef[_0x5cc4f4('0x14e4')]='VOICE.NEW_MUSICONHOLD',_0x4f6bef['newMusicOnHold']=!![]);_0x4f6bef[_0x5cc4f4('0x1a84')]=_0x368e24,_0x4f6bef[_0x5cc4f4('0x969')]=_0x1f786c,_0x4f6bef[_0x5cc4f4('0x24a2')]=_0x11bf0a,_0x4f6bef['getDateFromString']=_0x164800,_0x4f6bef[_0x5cc4f4('0xca7')]=_0x567202;function _0x368e24(){const _0x7a7956=_0x5cc4f4;_0x4f6bef[_0x7a7956('0x25be')]=[],_0x5a1e4b['voiceMusicOnHold'][_0x7a7956('0xbd0')](_0x4f6bef[_0x7a7956('0xefd')])[_0x7a7956('0x1714')][_0x7a7956('0x2788')](function(_0x20add0){const _0x50e609=_0x7a7956;_0x4f6bef[_0x50e609('0xc0c')]['unshift'](_0x20add0[_0x50e609('0x1cbf')]()),_0x5f498c[_0x50e609('0x173b')]({'title':_0x50e609('0x10b'),'msg':_0x4f6bef[_0x50e609('0xefd')][_0x50e609('0x1a8d')]?_0x4f6bef['musiconhold'][_0x50e609('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x567202(_0x20add0);})[_0x7a7956('0x1cb5')](function(_0x3d6b90){const _0x244d3b=_0x7a7956;if(_0x3d6b90[_0x244d3b('0x11fc')]&&_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x25be')]&&_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x25be')][_0x244d3b('0x2566')]){_0x4f6bef[_0x244d3b('0x25be')]=_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x25be')]||[{'message':_0x3d6b90[_0x244d3b('0x17df')](),'type':_0x244d3b('0x3b6')}];for(let _0x47c7cb=0x0;_0x47c7cb<_0x3d6b90['data'][_0x244d3b('0x25be')][_0x244d3b('0x2566')];_0x47c7cb+=0x1){_0x5f498c[_0x244d3b('0x5e8')]({'title':_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x25be')][_0x47c7cb]['type'],'msg':_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x25be')][_0x47c7cb][_0x244d3b('0x15e2')]});}}else _0x5f498c[_0x244d3b('0x5e8')]({'title':_0x3d6b90[_0x244d3b('0x1b51')]?_0x244d3b('0x15d1')+_0x3d6b90[_0x244d3b('0x1b51')]+'\x20-\x20'+_0x3d6b90['statusText']:_0x244d3b('0x3b6'),'msg':_0x3d6b90[_0x244d3b('0x11fc')]?JSON['stringify'](_0x3d6b90[_0x244d3b('0x11fc')][_0x244d3b('0x15e2')]):_0x3d6b90[_0x244d3b('0x17df')]()});});}function _0x1f786c(){const _0x3e3358=_0x5cc4f4;_0x4f6bef[_0x3e3358('0x25be')]=[],_0x5a1e4b[_0x3e3358('0xbb3')][_0x3e3358('0x2740')]({'id':_0x4f6bef[_0x3e3358('0xefd')]['id']},_0x4f6bef['musiconhold'])[_0x3e3358('0x1714')][_0x3e3358('0x2788')](function(_0x123b3f){const _0x4115f8=_0x3e3358,_0xaed915=_0x283545()[_0x4115f8('0x20e8')](_0x4f6bef[_0x4115f8('0xc0c')],{'id':_0x123b3f['id']});_0xaed915&&_0x283545()[_0x4115f8('0x2503')](_0xaed915,_0x283545()[_0x4115f8('0x41b')](_0x123b3f[_0x4115f8('0x1cbf')](),_0x283545()[_0x4115f8('0x2163')](_0xaed915))),_0x5f498c[_0x4115f8('0x173b')]({'title':'MusicOnHold\x20properly\x20saved!','msg':_0x4f6bef[_0x4115f8('0xefd')][_0x4115f8('0x1a8d')]?_0x4f6bef[_0x4115f8('0xefd')][_0x4115f8('0x1a8d')]+_0x4115f8('0x24cf'):''}),_0x567202(_0x123b3f);})['catch'](function(_0x5e4af7){const _0x45facf=_0x3e3358;if(_0x5e4af7[_0x45facf('0x11fc')]&&_0x5e4af7[_0x45facf('0x11fc')]['errors']&&_0x5e4af7['data'][_0x45facf('0x25be')][_0x45facf('0x2566')]){_0x4f6bef['errors']=_0x5e4af7[_0x45facf('0x11fc')][_0x45facf('0x25be')]||[{'message':_0x5e4af7[_0x45facf('0x17df')](),'type':_0x45facf('0x154a')}];for(let _0x5d195b=0x0;_0x5d195b<_0x5e4af7[_0x45facf('0x11fc')][_0x45facf('0x25be')][_0x45facf('0x2566')];_0x5d195b++){_0x5f498c[_0x45facf('0x5e8')]({'title':_0x5e4af7[_0x45facf('0x11fc')][_0x45facf('0x25be')][_0x5d195b][_0x45facf('0x1d7')],'msg':_0x5e4af7[_0x45facf('0x11fc')][_0x45facf('0x25be')][_0x5d195b]['message']});}}else _0x5f498c['error']({'title':_0x5e4af7[_0x45facf('0x1b51')]?_0x45facf('0x15d1')+_0x5e4af7[_0x45facf('0x1b51')]+_0x45facf('0x1b0b')+_0x5e4af7['statusText']:'api.voiceMusicOnHold.update','msg':_0x5e4af7[_0x45facf('0x11fc')]?JSON['stringify'](_0x5e4af7[_0x45facf('0x11fc')]['message']):_0x5e4af7[_0x45facf('0x17df')]()});});}function _0x11bf0a(_0x1892f5){const _0x11dad6=_0x5cc4f4;_0x4f6bef[_0x11dad6('0x25be')]=[];const _0x5aea27=_0x42e8fd[_0x11dad6('0x112e')]()[_0x11dad6('0x14e4')](_0x11dad6('0x458'))[_0x11dad6('0x1c98')](_0x11dad6('0x3af'))[_0x11dad6('0x10bc')](_0x11dad6('0x17e5'))['ok'](_0x11dad6('0x2786'))[_0x11dad6('0x1801')](_0x11dad6('0x1481'))[_0x11dad6('0x24d0')](_0x1892f5);_0x42e8fd['show'](_0x5aea27)[_0x11dad6('0x2788')](function(){const _0x32337c=_0x11dad6;_0x5a1e4b[_0x32337c('0xbb3')][_0x32337c('0x17c4')]({'id':_0x4f6bef['musiconhold']['id']})['$promise'][_0x32337c('0x2788')](function(){const _0x3350a5=_0x32337c;_0x283545()[_0x3350a5('0x1a90')](_0x4f6bef['musiconholds'],{'id':_0x4f6bef['musiconhold']['id']}),_0x5f498c[_0x3350a5('0x173b')]({'title':_0x3350a5('0x1432'),'msg':(_0x4f6bef[_0x3350a5('0xefd')]['name']||_0x3350a5('0xefd'))+_0x3350a5('0x14d4')}),_0x567202(_0x4f6bef[_0x3350a5('0xefd')]);})['catch'](function(_0xf9b4cb){const _0x25c555=_0x32337c;if(_0xf9b4cb[_0x25c555('0x11fc')]&&_0xf9b4cb[_0x25c555('0x11fc')][_0x25c555('0x25be')]&&_0xf9b4cb['data'][_0x25c555('0x25be')]['length']){_0x4f6bef['errors']=_0xf9b4cb[_0x25c555('0x11fc')][_0x25c555('0x25be')]||[{'message':_0xf9b4cb[_0x25c555('0x17df')](),'type':_0x25c555('0x16eb')}];for(let _0x40fc5d=0x0;_0x40fc5d<_0xf9b4cb[_0x25c555('0x11fc')][_0x25c555('0x25be')][_0x25c555('0x2566')];_0x40fc5d++){_0x5f498c['error']({'title':_0xf9b4cb[_0x25c555('0x11fc')]['errors'][_0x40fc5d][_0x25c555('0x1d7')],'msg':_0xf9b4cb['data'][_0x25c555('0x25be')][_0x40fc5d]['message']});}}else _0x5f498c[_0x25c555('0x5e8')]({'title':_0xf9b4cb[_0x25c555('0x1b51')]?_0x25c555('0x15d1')+_0xf9b4cb[_0x25c555('0x1b51')]+'\x20-\x20'+_0xf9b4cb[_0x25c555('0x22ce')]:'api.voiceMusicOnHold.delete','msg':_0xf9b4cb['data']?JSON[_0x25c555('0x1be0')](_0xf9b4cb['data'][_0x25c555('0x15e2')]):_0xf9b4cb['message']||_0xf9b4cb[_0x25c555('0x17df')]()});});},function(){});}function _0x164800(_0x2aa881){return _0x2aa881===null?undefined:new Date(_0x2aa881);}function _0x567202(_0x35210c){const _0x2ea85d=_0x5cc4f4;_0x42e8fd[_0x2ea85d('0x19d')](_0x35210c);}}const _0x37efc8=_0xb9021,_0x1ebc91=_0x18dd13['p']+_0x34e79e('0x19c5');_0x19b6bb[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q','$translate',_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x19b6bb(_0x44436c,_0x5ee9a0,_0x3fa1b9,_0x13e3ca,_0x279038,_0x314fd2,_0x1ce453,_0x2fc35f,_0x1764ab,_0x5530a4,_0x231d2c){const _0x3bbb6b=_0x34e79e,_0x4dd995=this;_0x4dd995[_0x3bbb6b('0x9cb')]=_0x231d2c[_0x3bbb6b('0x24cc')](),_0x4dd995['musiconhold']={},_0x4dd995[_0x3bbb6b('0x108f')]={'count':0x0,'rows':[]},_0x4dd995[_0x3bbb6b('0x1f2a')]=[],_0x4dd995['crudPermissions'],_0x4dd995['query']={'fields':_0x3bbb6b('0x1681'),'limit':0xa,'page':0x1},_0x4dd995[_0x3bbb6b('0x24eb')]=_0x1dee2a,_0x4dd995[_0x3bbb6b('0x16a')]=_0x9d1955,_0x4dd995[_0x3bbb6b('0x1fd8')]=_0x35de35,_0x4dd995['success']=_0x130ce1,_0x4dd995['getMusicOnHoldMohSounds']=_0x466506,_0x4dd995[_0x3bbb6b('0x1bcb')]=_0x4473c2,_0x4dd995[_0x3bbb6b('0x1ac2')]=_0x42ca11,_0x4dd995[_0x3bbb6b('0x1c80')]=_0x1352ae,_0x4dd995[_0x3bbb6b('0x2340')]=_0x79a5a3,_0x231d2c[_0x3bbb6b('0x1516')]('admin')?_0x5530a4[_0x3bbb6b('0x216d')][_0x3bbb6b('0x1335')]({'fields':_0x3bbb6b('0x1338'),'sort':_0x3bbb6b('0x1a8d')})[_0x3bbb6b('0x1714')]['then'](function(_0x4942d6){const _0x158e4e=_0x3bbb6b;_0x4dd995[_0x158e4e('0x16ca')]=_0x4942d6[_0x158e4e('0x25df')]||[];})[_0x3bbb6b('0x1cb5')](function(_0x31e44f){const _0x5a6ae7=_0x3bbb6b;_0x1764ab[_0x5a6ae7('0x5e8')]({'title':_0x31e44f[_0x5a6ae7('0x1b51')]?'API:'+_0x31e44f['status']+'\x20-\x20'+_0x31e44f[_0x5a6ae7('0x22ce')]:'SYSTEM:GET_SOUNDS','msg':_0x31e44f[_0x5a6ae7('0x11fc')]?JSON[_0x5a6ae7('0x1be0')](_0x31e44f[_0x5a6ae7('0x11fc')]):_0x31e44f['toString']()});}):_0x5530a4[_0x3bbb6b('0x216d')][_0x3bbb6b('0x1335')]({'fields':_0x3bbb6b('0x1338'),'sort':_0x3bbb6b('0x1a8d')})['$promise'][_0x3bbb6b('0x2788')](function(_0x2e5d53){const _0x8a7126=_0x3bbb6b;_0x4dd995[_0x8a7126('0x16ca')]=_0x2e5d53[_0x8a7126('0x25df')]||[];})[_0x3bbb6b('0x2788')](function(){const _0x452c8d=_0x3bbb6b;return _0x5530a4[_0x452c8d('0xec9')][_0x452c8d('0x1335')]({'userProfileId':_0x4dd995[_0x452c8d('0x9cb')]['userProfileId'],'sectionId':0x3ef})[_0x452c8d('0x1714')];})['then'](function(_0x46f5aa){const _0x3f4eaa=_0x3bbb6b,_0x24b8d6=_0x46f5aa&&_0x46f5aa[_0x3f4eaa('0x25df')]?_0x46f5aa[_0x3f4eaa('0x25df')][0x0]:null;if(!_0x24b8d6){const _0x5ec652=[];let _0x4c9046=null;_0x4dd995[_0x3f4eaa('0xefd')]&&(_0x4c9046=_0x283545()[_0x3f4eaa('0x20e8')](_0x4dd995['sounds'],{'id':Number(_0x4dd995['musiconhold']['id'])}));for(let _0x43543d=0x0;_0x43543d<_0x4dd995['sounds'][_0x3f4eaa('0x2566')];_0x43543d++){_0x4c9046&&_0x4dd995[_0x3f4eaa('0x16ca')][_0x43543d]['id']===_0x4c9046['id']&&(_0x4dd995[_0x3f4eaa('0x16ca')][_0x43543d][_0x3f4eaa('0x3bf')]=![],_0x5ec652['push'](_0x4dd995['sounds'][_0x43543d]));}_0x4dd995[_0x3f4eaa('0x16ca')]=_0x5ec652;}else{if(!_0x24b8d6['autoAssociation'])return _0x5530a4[_0x3f4eaa('0x1050')][_0x3f4eaa('0x1335')]({'sectionId':_0x24b8d6['id']})[_0x3f4eaa('0x1714')][_0x3f4eaa('0x2788')](function(_0x30dd14){const _0x211e7a=_0x3f4eaa,_0x272623=_0x283545()[_0x211e7a('0x155d')](_0x30dd14[_0x211e7a('0x25df')],function(_0x5e6937){const _0x58bcf9=_0x211e7a;return _0x283545()[_0x58bcf9('0x20e8')](_0x4dd995[_0x58bcf9('0x16ca')],{'id':_0x5e6937[_0x58bcf9('0x2707')]});});let _0x283644=null;_0x4dd995['musiconhold']&&(_0x283644=_0x283545()[_0x211e7a('0x20e8')](_0x4dd995[_0x211e7a('0x16ca')],{'id':Number(_0x4dd995['musiconhold']['id'])}));if(_0x283644&&!_0x283545()[_0x211e7a('0xc5d')](_0x272623,['id',_0x283644['id']])){const _0x3d0ff5=_0x283545()[_0x211e7a('0x20e8')](_0x4dd995[_0x211e7a('0x16ca')],{'id':_0x283644['id']});_0x3d0ff5[_0x211e7a('0x3bf')]=![],_0x272623[_0x211e7a('0x13e3')](_0x3d0ff5);}_0x4dd995[_0x211e7a('0x16ca')]=_0x272623;});}})[_0x3bbb6b('0x1cb5')](function(_0x1bfb2d){const _0x136c1d=_0x3bbb6b;_0x1764ab['error']({'title':_0x1bfb2d[_0x136c1d('0x1b51')]?_0x136c1d('0x15d1')+_0x1bfb2d[_0x136c1d('0x1b51')]+_0x136c1d('0x1b0b')+_0x1bfb2d[_0x136c1d('0x22ce')]:_0x136c1d('0x19a8'),'msg':_0x1bfb2d[_0x136c1d('0x11fc')]?JSON[_0x136c1d('0x1be0')](_0x1bfb2d[_0x136c1d('0x11fc')]):_0x1bfb2d['toString']()});});function _0x1dee2a(_0x21fe27,_0x27c7a9){const _0x1c6940=_0x3bbb6b;_0x4dd995[_0x1c6940('0xefd')]=_0x21fe27,_0x4dd995[_0x1c6940('0xe28')]=typeof _0x27c7a9!==_0x1c6940('0xedb')?_0x27c7a9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4dd995[_0x1c6940('0x135a')][_0x1c6940('0xaaa')]=_0x4dd995['musiconhold']['id'],_0x4dd995[_0x1c6940('0x135a')]['id']=_0x4dd995['musiconhold']['id'],_0x466506();}function _0x35de35(_0x51660f,_0x45c683,_0x48f656){const _0x5ceb36=_0x3bbb6b;return _0x5530a4[_0x5ceb36('0x216d')][_0x5ceb36('0x1486')]({'id':_0x51660f['id'],'exists':!![],'attachments':_0x48f656})[_0x5ceb36('0x1714')][_0x5ceb36('0x2788')](function(_0x5454ed){const _0x4fb50f=_0x5ceb36,_0x4f6235=[_0x5454ed['buffer']];let _0x4bcab1=_0x4fb50f('0x20ec')+_0x51660f['id'];const _0x57f24a=new Blob(_0x4f6235,{'type':_0x5454ed[_0x4fb50f('0x1d7')]});_0x4bcab1=_0x51660f[_0x4fb50f('0x2572')]?_0x51660f['save_name']+'.'+_0x51660f[_0x4fb50f('0x2572')]:_0x51660f[_0x4fb50f('0xc52')];const _0x593bcb=window[_0x4fb50f('0x11c4')][_0x4fb50f('0x1ae6')]('a');_0x593bcb[_0x4fb50f('0x1c6b')](_0x4fb50f('0x186a'),URL[_0x4fb50f('0x1b0d')](_0x57f24a)),_0x593bcb[_0x4fb50f('0x1c6b')]('download',_0x4bcab1),document[_0x4fb50f('0x945')][_0x4fb50f('0xcbf')](_0x593bcb),_0x593bcb[_0x4fb50f('0x132a')]();})[_0x5ceb36('0x1cb5')](function(_0x1ca615){const _0x5f5afa=_0x5ceb36;if(_0x1ca615[_0x5f5afa('0x11fc')]&&_0x1ca615[_0x5f5afa('0x11fc')][_0x5f5afa('0x25be')]&&_0x1ca615[_0x5f5afa('0x11fc')][_0x5f5afa('0x25be')]['length'])for(let _0x2c0036=0x0;_0x2c0036<_0x1ca615[_0x5f5afa('0x11fc')][_0x5f5afa('0x25be')][_0x5f5afa('0x2566')];_0x2c0036+=0x1){_0x1764ab[_0x5f5afa('0x5e8')]({'title':_0x1ca615['data'][_0x5f5afa('0x25be')][_0x2c0036][_0x5f5afa('0x1d7')],'msg':_0x1ca615['data'][_0x5f5afa('0x25be')][_0x2c0036]['message']});}else _0x1764ab[_0x5f5afa('0x5e8')]({'title':_0x1ca615[_0x5f5afa('0x1b51')]?_0x5f5afa('0x15d1')+_0x1ca615['status']+_0x5f5afa('0x1b0b')+_0x1ca615[_0x5f5afa('0x22ce')]:_0x5f5afa('0x3b6'),'msg':_0x1ca615[_0x5f5afa('0x11fc')]?JSON['stringify'](_0x1ca615[_0x5f5afa('0x11fc')][_0x5f5afa('0x15e2')]):_0x1ca615[_0x5f5afa('0x17df')]()});});}function _0x9d1955(_0x3f5981,_0x916da){const _0x2a773b=_0x3bbb6b,_0x3a3746=_0x1ce453[_0x2a773b('0x112e')]()[_0x2a773b('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?')[_0x2a773b('0x93e')](''+(_0x3f5981[_0x2a773b('0x1a8d')]||_0x3f5981['id']&&_0x283545()['upperFirst'](_0x2a773b('0xa65'))+_0x3f5981['id']||'mohSound')+''+_0x2a773b('0x27c7'))[_0x2a773b('0x10bc')]('delete\x20mohSound')[_0x2a773b('0x24d0')](_0x916da)['ok']('OK')['cancel'](_0x2a773b('0x1d8d'));_0x1ce453['show'](_0x3a3746)[_0x2a773b('0x2788')](function(){_0x1352ae(_0x3f5981);},function(){const _0x372026=_0x2a773b;console[_0x372026('0x10df')](_0x372026('0x1d8d'));});}function _0x130ce1(_0x4ff8bc){const _0x15e12f=_0x3bbb6b;_0x4dd995[_0x15e12f('0x108f')]=_0x4ff8bc||{'count':0x0,'rows':[]};}function _0x466506(){const _0x2b3757=_0x3bbb6b;_0x4dd995[_0x2b3757('0x135a')][_0x2b3757('0x19e')]=(_0x4dd995['query'][_0x2b3757('0x23f5')]-0x1)*_0x4dd995[_0x2b3757('0x135a')][_0x2b3757('0x68e')],_0x4dd995[_0x2b3757('0x1808')]=_0x5530a4[_0x2b3757('0xbb3')][_0x2b3757('0x1b4f')](_0x4dd995[_0x2b3757('0x135a')],_0x130ce1)['$promise'];}function _0x4473c2(_0x10512a,_0x2e8c88){const _0x17c494=_0x3bbb6b;_0x1ce453[_0x17c494('0x2fa')]({'controller':'CreateOrEditMohSoundDialogController','controllerAs':'vm','templateUrl':_0x1ebc91,'parent':angular[_0x17c494('0x16b1')](_0x2fc35f[_0x17c494('0x945')]),'targetEvent':_0x10512a,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x4dd995[_0x17c494('0xefd')],'mohSound':_0x2e8c88,'mohSounds':_0x4dd995[_0x17c494('0x108f')]['rows'],'license':null,'setting':null,'crudPermissions':_0x4dd995[_0x17c494('0xe28')]}});}function _0x1352ae(_0x25d3e2){const _0x247149=_0x3bbb6b;_0x5530a4['voiceMusicOnHold']['removeSound']({'id':_0x3fa1b9[_0x247149('0x4b9')]['id'],'id2':_0x25d3e2['id']})['$promise'][_0x247149('0x2788')](function(){const _0x318364=_0x247149;_0x283545()['remove'](_0x4dd995['musiconholdMohSounds'][_0x318364('0x25df')],{'id':_0x25d3e2['id']}),_0x4dd995[_0x318364('0x108f')][_0x318364('0x338')]-=0x1,!_0x4dd995[_0x318364('0x108f')]['rows'][_0x318364('0x2566')]&&_0x466506(),_0x1764ab[_0x318364('0x173b')]({'title':_0x318364('0xed6'),'msg':_0x25d3e2[_0x318364('0x1a8d')]?_0x25d3e2[_0x318364('0x1a8d')]+_0x318364('0x14d4'):''});})[_0x247149('0x1cb5')](function(_0x4a3238){const _0x269591=_0x247149;if(_0x4a3238[_0x269591('0x11fc')]&&_0x4a3238[_0x269591('0x11fc')][_0x269591('0x25be')]&&_0x4a3238[_0x269591('0x11fc')]['errors']['length']){_0x4dd995[_0x269591('0x25be')]=_0x4a3238[_0x269591('0x11fc')]['errors']||[{'message':_0x4a3238[_0x269591('0x17df')](),'type':_0x269591('0x1413')}];for(let _0x32ce04=0x0;_0x32ce04<_0x4a3238[_0x269591('0x11fc')][_0x269591('0x25be')][_0x269591('0x2566')];_0x32ce04++){_0x1764ab[_0x269591('0x5e8')]({'title':_0x4a3238[_0x269591('0x11fc')][_0x269591('0x25be')][_0x32ce04][_0x269591('0x1d7')],'msg':_0x4a3238[_0x269591('0x11fc')]['errors'][_0x32ce04][_0x269591('0x15e2')]});}}else _0x1764ab[_0x269591('0x5e8')]({'title':_0x4a3238[_0x269591('0x1b51')]?_0x269591('0x15d1')+_0x4a3238[_0x269591('0x1b51')]+'\x20-\x20'+_0x4a3238[_0x269591('0x22ce')]:'SYSTEM:GETvoiceMusicOnHold','msg':_0x4a3238['data']?JSON[_0x269591('0x1be0')](_0x4a3238[_0x269591('0x11fc')][_0x269591('0x15e2')]):_0x4a3238[_0x269591('0x15e2')]||_0x4a3238[_0x269591('0x17df')]()});});}function _0x42ca11(){const _0x48c911=_0x3bbb6b,_0x299af1=angular[_0x48c911('0x2669')](_0x4dd995[_0x48c911('0x1f2a')]);return _0x4dd995['selectedMusicOnHoldMohSounds']=[],_0x299af1;}function _0x79a5a3(_0x21741a){const _0x58205c=_0x3bbb6b,_0x171259=_0x1ce453[_0x58205c('0x112e')]()[_0x58205c('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?')['htmlContent'](_0x58205c('0x1670')+_0x4dd995[_0x58205c('0x1f2a')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x58205c('0x10bc')](_0x58205c('0xf35'))[_0x58205c('0x24d0')](_0x21741a)['ok']('OK')['cancel'](_0x58205c('0x1d8d'));_0x1ce453[_0x58205c('0x2fa')](_0x171259)[_0x58205c('0x2788')](function(){const _0x2053e9=_0x58205c;_0x4dd995[_0x2053e9('0x1f2a')][_0x2053e9('0x1534')](function(_0x1818b3){_0x1352ae(_0x1818b3);}),_0x4dd995[_0x2053e9('0x1f2a')]=[];});}let _0x4b5cfb=!![],_0x15b180=0x1;_0x5ee9a0[_0x3bbb6b('0x1662')](_0x3bbb6b('0x2571'),function(_0x5d4b35,_0x1b8bc7){const _0x172d4a=_0x3bbb6b;_0x4b5cfb?_0x314fd2(function(){_0x4b5cfb=![];}):(!_0x1b8bc7&&(_0x15b180=_0x4dd995['query'][_0x172d4a('0x23f5')]),_0x5d4b35!==_0x1b8bc7&&(_0x4dd995['query'][_0x172d4a('0x23f5')]=0x1),!_0x5d4b35&&(_0x4dd995[_0x172d4a('0x135a')]['page']=_0x15b180),_0x466506());});}const _0x25423d=_0x19b6bb;_0x4cd4bc[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1dca'),'mohSound','api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x4cd4bc(_0x3944cf,_0x2b97ad,_0x5c77ce,_0x446427,_0x5e4f49,_0x2fcf25,_0x33252c,_0x1e1aa5,_0x308a64,_0x3a5046,_0x143e0b,_0x97f717,_0x47a7de,_0x58bbd4){const _0x2c6da4=_0x34e79e,_0x501fa1=this;_0x501fa1[_0x2c6da4('0x9cb')]=_0x143e0b[_0x2c6da4('0x24cc')](),_0x501fa1[_0x2c6da4('0x25be')]=[],_0x501fa1[_0x2c6da4('0x1af0')]=_0x47a7de,_0x501fa1[_0x2c6da4('0x130d')]=_0x97f717,_0x501fa1[_0x2c6da4('0xe28')]=_0x58bbd4,_0x501fa1['hasModulePermissions']={},_0x501fa1[_0x2c6da4('0x18ad')]=_0x501fa1[_0x2c6da4('0x1af0')]&&_0x501fa1['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x501fa1[_0x2c6da4('0x14e4')]=_0x2c6da4('0x1bb2'),_0x501fa1[_0x2c6da4('0x20ec')]=angular[_0x2c6da4('0x2669')](_0x308a64),_0x501fa1[_0x2c6da4('0x1dca')]=_0x1e1aa5,_0x501fa1[_0x2c6da4('0xd7c')]=![];!_0x501fa1[_0x2c6da4('0x20ec')]&&(_0x501fa1[_0x2c6da4('0x20ec')]={},_0x501fa1[_0x2c6da4('0x14e4')]=_0x2c6da4('0x97c'),_0x501fa1[_0x2c6da4('0xd7c')]=!![]);_0x2b97ad[_0x2c6da4('0x4b9')]['id']&&(_0x501fa1[_0x2c6da4('0x20ec')][_0x2c6da4('0xaaa')]=_0x2b97ad[_0x2c6da4('0x4b9')]['id']);_0x501fa1[_0x2c6da4('0x109d')]=_0x18dc0b,_0x501fa1['saveMohSound']=_0x21bb56,_0x501fa1[_0x2c6da4('0x1b68')]=_0x27deb1,_0x501fa1[_0x2c6da4('0x2601')]=_0x15ca65,_0x501fa1['closeDialog']=_0x26d5f5,_0x143e0b[_0x2c6da4('0x1516')]('admin')?_0x3a5046['sound'][_0x2c6da4('0x1335')]({'fields':_0x2c6da4('0x1338'),'sort':'name'})[_0x2c6da4('0x1714')][_0x2c6da4('0x2788')](function(_0xa86ec5){const _0x321d58=_0x2c6da4;_0x501fa1[_0x321d58('0x16ca')]=_0xa86ec5[_0x321d58('0x25df')]||[];})[_0x2c6da4('0x1cb5')](function(_0x2ee79d){const _0x3dc3c3=_0x2c6da4;_0x33252c[_0x3dc3c3('0x5e8')]({'title':_0x2ee79d['status']?'API:'+_0x2ee79d[_0x3dc3c3('0x1b51')]+_0x3dc3c3('0x1b0b')+_0x2ee79d[_0x3dc3c3('0x22ce')]:_0x3dc3c3('0xc3c'),'msg':_0x2ee79d[_0x3dc3c3('0x11fc')]?JSON[_0x3dc3c3('0x1be0')](_0x2ee79d[_0x3dc3c3('0x11fc')]):_0x2ee79d['toString']()});}):_0x3a5046[_0x2c6da4('0x216d')][_0x2c6da4('0x1335')]({'fields':_0x2c6da4('0x1338'),'sort':_0x2c6da4('0x1a8d')})['$promise'][_0x2c6da4('0x2788')](function(_0x1f4647){const _0x342598=_0x2c6da4;_0x501fa1[_0x342598('0x16ca')]=_0x1f4647[_0x342598('0x25df')]||[];})[_0x2c6da4('0x2788')](function(){const _0x436e1a=_0x2c6da4;return _0x3a5046['userProfileSection'][_0x436e1a('0x1335')]({'userProfileId':_0x501fa1[_0x436e1a('0x9cb')]['userProfileId'],'sectionId':0x3ef})[_0x436e1a('0x1714')];})['then'](function(_0x4dea57){const _0x39886a=_0x2c6da4,_0x3d5c12=_0x4dea57&&_0x4dea57[_0x39886a('0x25df')]?_0x4dea57['rows'][0x0]:null;if(!_0x3d5c12){const _0x57b8d7=[];let _0x490e6c=null;_0x501fa1['mohSound']&&(_0x490e6c=_0x283545()[_0x39886a('0x20e8')](_0x501fa1[_0x39886a('0x16ca')],{'id':Number(_0x501fa1[_0x39886a('0x20ec')]['id'])}));for(let _0x38cf8b=0x0;_0x38cf8b<_0x501fa1[_0x39886a('0x16ca')][_0x39886a('0x2566')];_0x38cf8b++){_0x490e6c&&_0x501fa1[_0x39886a('0x16ca')][_0x38cf8b]['id']===_0x490e6c['id']&&(_0x501fa1[_0x39886a('0x16ca')][_0x38cf8b][_0x39886a('0x3bf')]=![],_0x57b8d7['push'](_0x501fa1['sounds'][_0x38cf8b]));}_0x501fa1[_0x39886a('0x16ca')]=_0x57b8d7;}else{if(!_0x3d5c12[_0x39886a('0x1c0a')])return _0x3a5046[_0x39886a('0x1050')]['get']({'sectionId':_0x3d5c12['id']})['$promise'][_0x39886a('0x2788')](function(_0x20f159){const _0x15d75b=_0x39886a,_0x141155=_0x283545()[_0x15d75b('0x155d')](_0x20f159[_0x15d75b('0x25df')],function(_0x1bfd2b){const _0x116048=_0x15d75b;return _0x283545()[_0x116048('0x20e8')](_0x501fa1['sounds'],{'id':_0x1bfd2b[_0x116048('0x2707')]});});let _0x36f2db=null;_0x501fa1[_0x15d75b('0x20ec')]&&(_0x36f2db=_0x283545()[_0x15d75b('0x20e8')](_0x501fa1['sounds'],{'id':Number(_0x501fa1[_0x15d75b('0x20ec')]['id'])}));if(_0x36f2db&&!_0x283545()[_0x15d75b('0xc5d')](_0x141155,['id',_0x36f2db['id']])){const _0x2e9089=_0x283545()[_0x15d75b('0x20e8')](_0x501fa1[_0x15d75b('0x16ca')],{'id':_0x36f2db['id']});_0x2e9089['canSelect']=![],_0x141155[_0x15d75b('0x13e3')](_0x2e9089);}_0x501fa1['sounds']=_0x141155;});}})['catch'](function(_0xb5009c){const _0x52b40c=_0x2c6da4;_0x33252c['error']({'title':_0xb5009c[_0x52b40c('0x1b51')]?_0x52b40c('0x15d1')+_0xb5009c[_0x52b40c('0x1b51')]+_0x52b40c('0x1b0b')+_0xb5009c[_0x52b40c('0x22ce')]:_0x52b40c('0x19a8'),'msg':_0xb5009c[_0x52b40c('0x11fc')]?JSON[_0x52b40c('0x1be0')](_0xb5009c[_0x52b40c('0x11fc')]):_0xb5009c[_0x52b40c('0x17df')]()});});function _0x18dc0b(){const _0x490b9d=_0x2c6da4;_0x501fa1[_0x490b9d('0x25be')]=[],_0x3a5046['voiceMusicOnHold'][_0x490b9d('0x18a')]({'id':_0x2b97ad['params']['id']},_0x501fa1['mohSound'])['$promise'][_0x490b9d('0x2788')](function(_0xfb626c){const _0x3fbda5=_0x490b9d;_0x501fa1[_0x3fbda5('0x1dca')][_0x3fbda5('0xc51')](_0xfb626c[_0x3fbda5('0x1cbf')]()),_0x33252c[_0x3fbda5('0x173b')]({'title':_0x3fbda5('0x90f'),'msg':_0x501fa1[_0x3fbda5('0x20ec')][_0x3fbda5('0x1a8d')]?_0x501fa1[_0x3fbda5('0x20ec')][_0x3fbda5('0x1a8d')]+_0x3fbda5('0x1e4a'):''}),_0x26d5f5(_0xfb626c);})[_0x490b9d('0x1cb5')](function(_0x1dfc8e){const _0x236d0e=_0x490b9d;if(_0x1dfc8e['data']&&_0x1dfc8e['data'][_0x236d0e('0x25be')]&&_0x1dfc8e[_0x236d0e('0x11fc')][_0x236d0e('0x25be')][_0x236d0e('0x2566')]){_0x501fa1['errors']=_0x1dfc8e[_0x236d0e('0x11fc')][_0x236d0e('0x25be')]||[{'message':_0x1dfc8e[_0x236d0e('0x17df')](),'type':'api.voiceMusicOnHold.save'}];for(let _0xb076c0=0x0;_0xb076c0<_0x1dfc8e[_0x236d0e('0x11fc')][_0x236d0e('0x25be')][_0x236d0e('0x2566')];_0xb076c0+=0x1){_0x33252c['error']({'title':_0x1dfc8e[_0x236d0e('0x11fc')][_0x236d0e('0x25be')][_0xb076c0]['type'],'msg':_0x1dfc8e[_0x236d0e('0x11fc')][_0x236d0e('0x25be')][_0xb076c0]['message']});}}else _0x33252c['error']({'title':_0x1dfc8e['status']?_0x236d0e('0x15d1')+_0x1dfc8e['status']+_0x236d0e('0x1b0b')+_0x1dfc8e[_0x236d0e('0x22ce')]:_0x236d0e('0x3b6'),'msg':_0x1dfc8e[_0x236d0e('0x11fc')]?JSON[_0x236d0e('0x1be0')](_0x1dfc8e[_0x236d0e('0x11fc')]['message']):_0x1dfc8e[_0x236d0e('0x17df')]()});});}function _0x21bb56(){const _0xaaf5ee=_0x2c6da4;_0x501fa1['errors']=[],_0x3a5046[_0xaaf5ee('0xbb3')][_0xaaf5ee('0x2740')]({'id':_0x501fa1[_0xaaf5ee('0x20ec')]['id']},_0x501fa1[_0xaaf5ee('0x20ec')])[_0xaaf5ee('0x1714')][_0xaaf5ee('0x2788')](function(_0x5cd527){const _0x890952=_0xaaf5ee,_0x40cc78=_0x283545()['find'](_0x501fa1['mohSounds'],{'id':_0x5cd527['id']});_0x40cc78&&_0x283545()[_0x890952('0x2503')](_0x40cc78,_0x283545()['pick'](_0x5cd527[_0x890952('0x1cbf')](),_0x283545()['keys'](_0x40cc78))),_0x33252c[_0x890952('0x173b')]({'title':_0x890952('0x598'),'msg':_0x501fa1[_0x890952('0x20ec')][_0x890952('0x1a8d')]?_0x501fa1[_0x890952('0x20ec')][_0x890952('0x1a8d')]+_0x890952('0x24cf'):''}),_0x26d5f5(_0x5cd527);})[_0xaaf5ee('0x1cb5')](function(_0x3da690){const _0x2b37b2=_0xaaf5ee;if(_0x3da690[_0x2b37b2('0x11fc')]&&_0x3da690[_0x2b37b2('0x11fc')][_0x2b37b2('0x25be')]&&_0x3da690['data']['errors'][_0x2b37b2('0x2566')]){_0x501fa1['errors']=_0x3da690[_0x2b37b2('0x11fc')]['errors']||[{'message':_0x3da690[_0x2b37b2('0x17df')](),'type':_0x2b37b2('0x154a')}];for(let _0x2c9d7d=0x0;_0x2c9d7d<_0x3da690[_0x2b37b2('0x11fc')]['errors'][_0x2b37b2('0x2566')];_0x2c9d7d++){_0x33252c[_0x2b37b2('0x5e8')]({'title':_0x3da690[_0x2b37b2('0x11fc')][_0x2b37b2('0x25be')][_0x2c9d7d][_0x2b37b2('0x1d7')],'msg':_0x3da690['data'][_0x2b37b2('0x25be')][_0x2c9d7d][_0x2b37b2('0x15e2')]});}}else _0x33252c[_0x2b37b2('0x5e8')]({'title':_0x3da690['status']?_0x2b37b2('0x15d1')+_0x3da690['status']+'\x20-\x20'+_0x3da690[_0x2b37b2('0x22ce')]:'api.voiceMusicOnHold.update','msg':_0x3da690[_0x2b37b2('0x11fc')]?JSON[_0x2b37b2('0x1be0')](_0x3da690[_0x2b37b2('0x11fc')][_0x2b37b2('0x15e2')]):_0x3da690[_0x2b37b2('0x17df')]()});});}function _0x27deb1(_0x4f0ae4){const _0x2d3ac6=_0x2c6da4;_0x501fa1['errors']=[];const _0x429b73=_0x446427['confirm']()[_0x2d3ac6('0x14e4')](_0x2d3ac6('0x458'))['content'](_0x2d3ac6('0x131d'))['ariaLabel'](_0x2d3ac6('0xb3d'))['ok'](_0x2d3ac6('0x2786'))[_0x2d3ac6('0x1801')](_0x2d3ac6('0x1481'))['targetEvent'](_0x4f0ae4);_0x446427[_0x2d3ac6('0x2fa')](_0x429b73)['then'](function(){const _0xce647b=_0x2d3ac6;_0x3a5046[_0xce647b('0xbb3')][_0xce647b('0x17c4')]({'id':_0x501fa1[_0xce647b('0x20ec')]['id']})[_0xce647b('0x1714')][_0xce647b('0x2788')](function(){const _0x42da71=_0xce647b;_0x283545()[_0x42da71('0x1a90')](_0x501fa1[_0x42da71('0x1dca')],{'id':_0x501fa1['mohSound']['id']}),_0x33252c[_0x42da71('0x173b')]({'title':_0x42da71('0x1b96'),'msg':(_0x501fa1['mohSound'][_0x42da71('0x1a8d')]||_0x42da71('0x20ec'))+_0x42da71('0x14d4')}),_0x26d5f5(_0x501fa1[_0x42da71('0x20ec')]);})[_0xce647b('0x1cb5')](function(_0x23589b){const _0x28547f=_0xce647b;if(_0x23589b['data']&&_0x23589b[_0x28547f('0x11fc')]['errors']&&_0x23589b['data'][_0x28547f('0x25be')][_0x28547f('0x2566')]){_0x501fa1[_0x28547f('0x25be')]=_0x23589b[_0x28547f('0x11fc')][_0x28547f('0x25be')]||[{'message':_0x23589b['toString'](),'type':_0x28547f('0x16eb')}];for(let _0x4bf638=0x0;_0x4bf638<_0x23589b[_0x28547f('0x11fc')][_0x28547f('0x25be')][_0x28547f('0x2566')];_0x4bf638++){_0x33252c[_0x28547f('0x5e8')]({'title':_0x23589b[_0x28547f('0x11fc')][_0x28547f('0x25be')][_0x4bf638][_0x28547f('0x1d7')],'msg':_0x23589b['data'][_0x28547f('0x25be')][_0x4bf638][_0x28547f('0x15e2')]});}}else _0x33252c[_0x28547f('0x5e8')]({'title':_0x23589b[_0x28547f('0x1b51')]?_0x28547f('0x15d1')+_0x23589b[_0x28547f('0x1b51')]+_0x28547f('0x1b0b')+_0x23589b['statusText']:'api.voiceMusicOnHold.delete','msg':_0x23589b[_0x28547f('0x11fc')]?JSON[_0x28547f('0x1be0')](_0x23589b[_0x28547f('0x11fc')][_0x28547f('0x15e2')]):_0x23589b[_0x28547f('0x15e2')]||_0x23589b[_0x28547f('0x17df')]()});});},function(){});}function _0x15ca65(_0x23fbea){return _0x23fbea===null?undefined:new Date(_0x23fbea);}function _0x26d5f5(_0x567dbe){const _0xf0b540=_0x2c6da4;_0x446427[_0xf0b540('0x19d')](_0x567dbe);}}const _0x10623b=_0x4cd4bc;_0x14af9d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'api','toasty',_0x34e79e('0x1b04'),'musiconhold','userProfileSection'];function _0x14af9d(_0x41cfec,_0x4d84a6,_0x429f33,_0x54a575,_0x1fbd16,_0x40b5ce,_0x4279bd,_0x2e49d3,_0x24b510,_0x38771c,_0x19b5e1,_0x554408){const _0x31fa8b=_0x34e79e,_0x925c5c=this;_0x925c5c['currentUser']=_0x38771c['getCurrentUser'](),_0x925c5c[_0x31fa8b('0x130d')]=_0x40b5ce,_0x925c5c[_0x31fa8b('0x1af0')]=_0x4279bd,_0x925c5c['passwordPattern']=_0x925c5c[_0x31fa8b('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x925c5c[_0x31fa8b('0xe9')]=_0x4d84a6['protocol']()+_0x31fa8b('0x726')+_0x4d84a6[_0x31fa8b('0x1c6a')](),_0x925c5c[_0x31fa8b('0xefd')]=_0x19b5e1||_0x41cfec[_0x31fa8b('0x4b9')][_0x31fa8b('0xefd')]||{},_0x925c5c[_0x31fa8b('0xec9')]=_0x554408&&_0x554408[_0x31fa8b('0x338')]==0x1?_0x554408[_0x31fa8b('0x25df')][0x0]:null,_0x925c5c[_0x31fa8b('0xe28')]=_0x38771c[_0x31fa8b('0x157e')](_0x925c5c[_0x31fa8b('0xec9')]?_0x925c5c[_0x31fa8b('0xec9')][_0x31fa8b('0xe28')]:null),_0x925c5c[_0x31fa8b('0x1193')]={},_0x925c5c[_0x31fa8b('0xcb3')]=_0x41cfec[_0x31fa8b('0x4b9')][_0x31fa8b('0x24f6')]||0x0,_0x925c5c[_0x31fa8b('0x204f')]=_0x24b510['info'],_0x925c5c[_0x31fa8b('0x1208')]=_0x43dc52,_0x925c5c[_0x31fa8b('0x969')]=_0x58e5f2;function _0x43dc52(){const _0x353d3c=_0x31fa8b;_0x41cfec['go'](_0x353d3c('0x16f1'),{},{'reload':_0x353d3c('0x16f1')});}function _0x58e5f2(){const _0x5e73c5=_0x31fa8b;_0x2e49d3[_0x5e73c5('0xbb3')][_0x5e73c5('0x2740')]({'id':_0x925c5c[_0x5e73c5('0xefd')]['id']},_0x925c5c[_0x5e73c5('0xefd')])['$promise'][_0x5e73c5('0x2788')](function(){const _0x5dc050=_0x5e73c5;_0x24b510['success']({'title':_0x5dc050('0x1b22'),'msg':_0x925c5c[_0x5dc050('0xefd')][_0x5dc050('0x1a8d')]?_0x925c5c[_0x5dc050('0xefd')][_0x5dc050('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x5e73c5('0x1cb5')](function(_0x146073){const _0x45a7e5=_0x5e73c5;_0x24b510[_0x45a7e5('0x5e8')]({'title':_0x146073[_0x45a7e5('0x1b51')]?_0x45a7e5('0x15d1')+_0x146073[_0x45a7e5('0x1b51')]+_0x45a7e5('0x1b0b')+_0x146073[_0x45a7e5('0x22ce')]:_0x45a7e5('0x1413'),'msg':_0x146073[_0x45a7e5('0x11fc')]?JSON['stringify'](_0x146073['data']):_0x146073['toString']()});});}}const _0x272090=_0x14af9d,_0x6085af=_0x18dd13['p']+_0x34e79e('0x6da');_0x419ef5[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window','$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout','$translate',_0x34e79e('0xc0c'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x419ef5(_0x21a38e,_0x461cf0,_0x45a80d,_0x27829a,_0x590e66,_0x4d1499,_0x33b963,_0x12135e,_0xb0b482,_0x13c9e4,_0x235789,_0x59179f,_0x5680e3,_0x41bb12,_0x241c05,_0x4b2de9,_0x2d960a){const _0x540925=_0x34e79e,_0x7fa05f=this;_0x7fa05f[_0x540925('0x130d')]=_0x4b2de9,_0x7fa05f[_0x540925('0x1af0')]=_0x2d960a,_0x7fa05f['currentUser']=_0x241c05[_0x540925('0x24cc')](),_0x7fa05f[_0x540925('0xc0c')]=_0xb0b482||{'count':0x0,'rows':[]},_0x7fa05f[_0x540925('0x63c')]=_0x13c9e4,_0x7fa05f['userProfileSection']=_0x235789&&_0x235789[_0x540925('0x338')]==0x1?_0x235789['rows'][0x0]:null,_0x7fa05f[_0x540925('0xe28')]=_0x241c05['parseCrudPermissions'](_0x7fa05f[_0x540925('0xec9')]?_0x7fa05f[_0x540925('0xec9')][_0x540925('0xe28')]:null),_0x7fa05f['table']=_0x540925('0xc0c'),_0x7fa05f[_0x540925('0x2278')]='',_0x7fa05f[_0x540925('0x25e2')]=null,_0x7fa05f[_0x540925('0xb58')]=[],_0x7fa05f['query']={'fields':_0x540925('0xe63'),'defaultEntry':_0x540925('0x1888'),'limit':0xa,'page':0x1},_0x7fa05f['arraymode']=_0x283545()[_0x540925('0x13cf')]([{'option':_0x540925('0x21bb'),'value':_0x540925('0x1ca6')},{'option':_0x540925('0x56'),'value':_0x540925('0x9f6')}],function(_0xca4bf6){const _0x37deec=_0x540925;return _0x283545()[_0x37deec('0x10a4')](_0xca4bf6['value'],new RegExp('\x27','g'),'');}),_0x7fa05f[_0x540925('0x498')]=_0x283545()[_0x540925('0x13cf')]([{'option':'Random','value':_0x540925('0x178f')},{'option':_0x540925('0xf80'),'value':_0x540925('0x12bb')}],function(_0x4ce0e7){const _0x401f26=_0x540925;return _0x283545()[_0x401f26('0x10a4')](_0x4ce0e7[_0x401f26('0x49')],new RegExp('\x27','g'),'');}),_0x7fa05f[_0x540925('0x1f7e')]=_0x44bbd3,_0x7fa05f[_0x540925('0x1e5')]=_0x49965e,_0x7fa05f[_0x540925('0x173b')]=_0x33adc7,_0x7fa05f['getMusicOnHolds']=_0x22a018,_0x7fa05f[_0x540925('0x21e0')]=_0xc7be20,_0x7fa05f[_0x540925('0x24a2')]=_0x49ef08,_0x7fa05f[_0x540925('0x1997')]=_0x453e1a,_0x7fa05f['deleteSelectedMusicOnHolds']=_0x583ba2,_0x7fa05f[_0x540925('0x25c4')]=_0x55cb80,_0x7fa05f[_0x540925('0x48d')]=_0x5776eb;function _0x44bbd3(_0x36e495){const _0x1ccbe9=_0x540925;_0x45a80d['go'](_0x1ccbe9('0x53b'),{'id':_0x36e495['id'],'musiconhold':_0x36e495,'crudPermissions':_0x7fa05f[_0x1ccbe9('0xe28')]});}function _0x49965e(_0x4adbce,_0x239262){const _0x990eb7=_0x540925,_0x58827e=_0x590e66[_0x990eb7('0x112e')]()['title'](_0x990eb7('0x2114')+_0x283545()[_0x990eb7('0x114')](_0x990eb7('0xefd'))+'?')['htmlContent'](_0x990eb7('0x1670')+(_0x4adbce[_0x990eb7('0x1a8d')]||'musiconhold')+_0x990eb7('0x229e')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x990eb7('0x1981'))['targetEvent'](_0x239262)['ok']('OK')[_0x990eb7('0x1801')](_0x990eb7('0x1d8d'));_0x590e66[_0x990eb7('0x2fa')](_0x58827e)[_0x990eb7('0x2788')](function(){_0x49ef08(_0x4adbce);},function(){const _0x2e9cfb=_0x990eb7;console[_0x2e9cfb('0x10df')](_0x2e9cfb('0x1d8d'));});}let _0x28b354=!![],_0x485144=0x1;_0x21a38e[_0x540925('0x1662')](_0x540925('0x1569'),function(_0x33e701,_0x2c7ff7){const _0x3839a8=_0x540925;_0x28b354?_0x33b963(function(){_0x28b354=![];}):(!_0x2c7ff7&&(_0x485144=_0x7fa05f[_0x3839a8('0x135a')][_0x3839a8('0x23f5')]),_0x33e701!==_0x2c7ff7&&(_0x7fa05f['query'][_0x3839a8('0x23f5')]=0x1),!_0x33e701&&(_0x7fa05f['query'][_0x3839a8('0x23f5')]=_0x485144),_0x7fa05f[_0x3839a8('0x411')]());});function _0x33adc7(_0x2ab5c1){_0x7fa05f['musiconholds']=_0x2ab5c1||{'count':0x0,'rows':[]};}function _0x22a018(){const _0x2bf745=_0x540925;_0x7fa05f[_0x2bf745('0x135a')][_0x2bf745('0x19e')]=(_0x7fa05f[_0x2bf745('0x135a')][_0x2bf745('0x23f5')]-0x1)*_0x7fa05f[_0x2bf745('0x135a')][_0x2bf745('0x68e')],_0x241c05[_0x2bf745('0x1516')](_0x2bf745('0xe23'))?_0x7fa05f['promise']=_0x59179f['voiceMusicOnHold'][_0x2bf745('0x1335')](_0x7fa05f['query'],_0x33adc7)[_0x2bf745('0x1714')]:(_0x7fa05f[_0x2bf745('0x135a')]['id']=_0x7fa05f[_0x2bf745('0x63c')]['id'],_0x7fa05f[_0x2bf745('0x135a')][_0x2bf745('0xb13')]=_0x2bf745('0x3b5'),_0x7fa05f[_0x2bf745('0x1808')]=_0x59179f[_0x2bf745('0x63c')][_0x2bf745('0xa1')](_0x7fa05f[_0x2bf745('0x135a')],_0x33adc7)[_0x2bf745('0x1714')]);}function _0xc7be20(_0x508a13,_0x5bdba2){const _0xd071f8=_0x540925;_0x590e66[_0xd071f8('0x2fa')]({'controller':'CreateOrEditMusicOnHoldDialogController','controllerAs':'vm','templateUrl':_0x6085af,'parent':angular[_0xd071f8('0x16b1')](_0x4d1499[_0xd071f8('0x945')]),'targetEvent':_0x508a13,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x5bdba2,'musiconholds':_0x7fa05f['musiconholds']['rows'],'license':_0x7fa05f[_0xd071f8('0x130d')],'setting':_0x7fa05f[_0xd071f8('0x1af0')],'crudPermissions':_0x7fa05f[_0xd071f8('0xe28')]}});}function _0x49ef08(_0x32516e){const _0x462e79=_0x540925;_0x59179f[_0x462e79('0xbb3')]['delete']({'id':_0x32516e['id']})['$promise']['then'](function(){const _0x2703c9=_0x462e79;_0x283545()['remove'](_0x7fa05f[_0x2703c9('0xc0c')][_0x2703c9('0x25df')],{'id':_0x32516e['id']}),_0x7fa05f[_0x2703c9('0xc0c')][_0x2703c9('0x338')]-=0x1,!_0x7fa05f[_0x2703c9('0xc0c')][_0x2703c9('0x25df')]['length']&&_0x7fa05f[_0x2703c9('0x411')](),_0x41bb12[_0x2703c9('0x173b')]({'title':_0x283545()['startCase']('MusicOnHold')+_0x2703c9('0x20db'),'msg':_0x32516e[_0x2703c9('0x1a8d')]?_0x32516e[_0x2703c9('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x3bef5d){const _0x2067fd=_0x462e79;if(_0x3bef5d[_0x2067fd('0x11fc')]&&_0x3bef5d[_0x2067fd('0x11fc')][_0x2067fd('0x25be')]&&_0x3bef5d[_0x2067fd('0x11fc')][_0x2067fd('0x25be')][_0x2067fd('0x2566')]){_0x7fa05f[_0x2067fd('0x25be')]=_0x3bef5d[_0x2067fd('0x11fc')]['errors']||[{'message':_0x3bef5d['toString'](),'type':_0x2067fd('0x810')}];for(let _0x56150a=0x0;_0x56150a<_0x3bef5d['data'][_0x2067fd('0x25be')][_0x2067fd('0x2566')];_0x56150a++){_0x41bb12['error']({'title':_0x3bef5d[_0x2067fd('0x11fc')]['errors'][_0x56150a][_0x2067fd('0x1d7')],'msg':_0x3bef5d[_0x2067fd('0x11fc')][_0x2067fd('0x25be')][_0x56150a][_0x2067fd('0x15e2')]});}}else _0x41bb12[_0x2067fd('0x5e8')]({'title':_0x3bef5d[_0x2067fd('0x1b51')]?'API:'+_0x3bef5d[_0x2067fd('0x1b51')]+_0x2067fd('0x1b0b')+_0x3bef5d[_0x2067fd('0x22ce')]:_0x2067fd('0x810'),'msg':_0x3bef5d[_0x2067fd('0x11fc')]?JSON['stringify'](_0x3bef5d[_0x2067fd('0x11fc')][_0x2067fd('0x15e2')]):_0x3bef5d[_0x2067fd('0x15e2')]||_0x3bef5d[_0x2067fd('0x17df')]()});});}function _0x453e1a(){const _0x4b2ff5=_0x540925,_0x1f3f93=angular[_0x4b2ff5('0x2669')](_0x7fa05f[_0x4b2ff5('0xb58')]);return _0x7fa05f[_0x4b2ff5('0xb58')]=[],_0x1f3f93;}function _0x583ba2(_0x5ef3cb){const _0x2efc88=_0x540925,_0x8d449f=_0x590e66[_0x2efc88('0x112e')]()[_0x2efc88('0x14e4')](_0x2efc88('0x2de'))['htmlContent'](''+_0x7fa05f[_0x2efc88('0xb58')][_0x2efc88('0x2566')]+_0x2efc88('0xbd')+_0x2efc88('0x27c7'))[_0x2efc88('0x10bc')]('delete\x20MusicOnHolds')[_0x2efc88('0x24d0')](_0x5ef3cb)['ok']('OK')[_0x2efc88('0x1801')]('CANCEL');_0x590e66[_0x2efc88('0x2fa')](_0x8d449f)['then'](function(){const _0xeaebb6=_0x2efc88;_0x7fa05f['selectedMusicOnHolds'][_0xeaebb6('0x1534')](function(_0x30fc22){_0x49ef08(_0x30fc22);}),_0x7fa05f[_0xeaebb6('0xb58')]=[];});}function _0x55cb80(){const _0x4193ad=_0x540925;_0x7fa05f[_0x4193ad('0xb58')]=[];}function _0x5776eb(){const _0x1dd78d=_0x540925;_0x7fa05f[_0x1dd78d('0xb58')]=_0x7fa05f[_0x1dd78d('0xc0c')]['rows'];}}const _0xe4035d=_0x419ef5;_0x137b90[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x19b0'),_0x34e79e('0x1e98'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x137b90(_0x51d4d6,_0xa6bd23,_0x449ae1,_0x53182a,_0x4af2d4,_0x407063,_0x51cf2a,_0x3caa44,_0x1a17f2,_0x4a4f35,_0x4fafdb,_0x2b1767,_0x32b8a6,_0x522879){const _0x5383bc=_0x34e79e,_0x3947f3=this;_0x3947f3[_0x5383bc('0x9cb')]=_0x4fafdb[_0x5383bc('0x24cc')](),_0x3947f3[_0x5383bc('0x25be')]=[],_0x3947f3[_0x5383bc('0x1af0')]=_0x32b8a6,_0x3947f3[_0x5383bc('0x130d')]=_0x2b1767,_0x3947f3[_0x5383bc('0xe28')]=_0x522879,_0x3947f3[_0x5383bc('0x1193')]={},_0x3947f3[_0x5383bc('0x18ad')]=_0x3947f3['setting']&&_0x3947f3[_0x5383bc('0x1af0')][_0x5383bc('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3947f3[_0x5383bc('0x14e4')]=_0x5383bc('0x87'),_0x3947f3[_0x5383bc('0x1e98')]=angular[_0x5383bc('0x2669')](_0x1a17f2),_0x3947f3[_0x5383bc('0x19b0')]=_0x3caa44,_0x3947f3[_0x5383bc('0x109b')]=![],_0x3947f3[_0x5383bc('0x1a82')]={'count':0x0,'rows':[]},_0x3947f3[_0x5383bc('0x105')]=_0x283545()[_0x5383bc('0x9')](_0x283545()['sortBy']([{'app':_0x5383bc('0x27dd'),'appType':_0x5383bc('0x2630'),'type':_0x5383bc('0x396'),'types':[_0x5383bc('0xc8f'),'custom',_0x5383bc('0x4b2')],'fields':[],'isApp':![]},{'app':_0x5383bc('0x1a7d'),'appType':_0x5383bc('0x25fb'),'context':_0x5383bc('0x15b1'),'type':'Outbound','icon':_0x5383bc('0x21ff'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':'trunks','route':_0x5383bc('0x2549'),'filters':{'fields':'name','sort':'name'}},{'name':_0x5383bc('0xe45'),'route':_0x5383bc('0x1764'),'filters':{'fields':'name','sort':'name','nolimit':!![]}}],'fields':[{'title':'Trunk','name':'trunk','type':'apiselect','values':_0x5383bc('0x20f2'),'value':_0x5383bc('0x217b'),'option':'trunk.name','required':!![],'param':0x0},{'title':_0x5383bc('0x1a78'),'name':_0x5383bc('0x8de'),'type':_0x5383bc('0x16db'),'ngPattern':'/"(.*)"\x5cs<(.*?)>$/','help':!![]},{'title':_0x5383bc('0x1d0f'),'name':_0x5383bc('0x1f71'),'type':_0x5383bc('0x16db')},{'title':'Tags','name':_0x5383bc('0x1764'),'type':_0x5383bc('0x2519'),'values':_0x5383bc('0xe45'),'value':_0x5383bc('0x282c'),'option':_0x5383bc('0x282c'),'defaultValues':[{'value':'\x27--\x27','option':_0x5383bc('0x1d8f')}]},{'title':'Timeout','name':'timeout','type':'number','min':0x0,'param':0x1},{'title':'Options','name':_0x5383bc('0x784'),'type':_0x5383bc('0x16db'),'param':0x2},{'title':'Url','name':_0x5383bc('0x1672'),'type':_0x5383bc('0x16db'),'param':0x3}]},{'app':null,'type':_0x5383bc('0x396'),'appType':_0x5383bc('0x1d56'),'icon':'icon-apps','interval':_0x5383bc('0x2191'),'isApp':!![],'fields':[{'title':_0x5383bc('0x26ec'),'name':'app','type':_0x5383bc('0x16db'),'required':!![],'param':0x0},{'title':_0x5383bc('0x675'),'name':_0x5383bc('0xd6b'),'type':_0x5383bc('0x16db'),'param':0x1}]}],[_0x5383bc('0x8a5')]),{'isApp':![]});!_0x3947f3[_0x5383bc('0x1e98')]&&(_0x3947f3[_0x5383bc('0x1e98')]={'appdata':'Outbound\x20Call','type':_0x5383bc('0x1'),'context':_0x5383bc('0x15b1'),'recordingFormat':_0x5383bc('0x1dc')},_0x3947f3[_0x5383bc('0x14e4')]=_0x5383bc('0xd97'),_0x3947f3['newOutboundRoute']=!![]);_0x3947f3['addNewOutboundRoute']=_0x15e01d,_0x3947f3[_0x5383bc('0xb6a')]=_0x2f732e,_0x3947f3[_0x5383bc('0xfc6')]=_0x2a2558,_0x3947f3[_0x5383bc('0x2601')]=_0x376475,_0x3947f3[_0x5383bc('0xa9c')]=_0x432dbf,_0x3947f3[_0x5383bc('0xca7')]=_0x468025,_0x4fafdb['hasRole']('admin')?_0x4a4f35[_0x5383bc('0x15cc')]['get']({'fields':_0x5383bc('0x1338'),'sort':_0x5383bc('0x1a8d'),'nolimit':_0x5383bc('0x1001')})[_0x5383bc('0x1714')][_0x5383bc('0x2788')](function(_0x9c617){const _0x660d7a=_0x5383bc;_0x3947f3['contexts']=_0x9c617[_0x660d7a('0x25df')]||[];})[_0x5383bc('0x1cb5')](function(_0x510dcc){const _0x4a895f=_0x5383bc;_0x51cf2a[_0x4a895f('0x5e8')]({'title':_0x510dcc['status']?_0x4a895f('0x15d1')+_0x510dcc['status']+'\x20-\x20'+_0x510dcc[_0x4a895f('0x22ce')]:'SYSTEM:GET_CONTEXTS','msg':_0x510dcc[_0x4a895f('0x11fc')]?JSON[_0x4a895f('0x1be0')](_0x510dcc[_0x4a895f('0x11fc')]):_0x510dcc[_0x4a895f('0x17df')]()});}):_0x4a4f35['voiceContext']['get']({'fields':_0x5383bc('0x1338'),'sort':_0x5383bc('0x1a8d'),'nolimit':_0x5383bc('0x1001')})[_0x5383bc('0x1714')][_0x5383bc('0x2788')](function(_0x1da6b6){const _0x78e38f=_0x5383bc;_0x3947f3['contexts']=_0x1da6b6[_0x78e38f('0x25df')]||[];})['then'](function(){const _0x51b41d=_0x5383bc;return _0x4a4f35[_0x51b41d('0xec9')][_0x51b41d('0x1335')]({'userProfileId':_0x3947f3[_0x51b41d('0x9cb')][_0x51b41d('0x237f')],'sectionId':0x195})[_0x51b41d('0x1714')];})['then'](function(_0x8587a6){const _0x586f7b=_0x5383bc,_0x41f6c8=_0x8587a6&&_0x8587a6[_0x586f7b('0x25df')]?_0x8587a6['rows'][0x0]:null;if(!_0x41f6c8)return _0x4a4f35['voiceContext']['get']({'fields':_0x586f7b('0x1338'),'sort':_0x586f7b('0x1a8d'),'nolimit':'true','defaultEntry':0x1})[_0x586f7b('0x1714')][_0x586f7b('0x2788')](function(_0x57c938){const _0x537435=_0x586f7b;_0x3947f3['contexts']=_0x57c938[_0x537435('0x25df')]||[];});else{if(!_0x41f6c8[_0x586f7b('0x1c0a')])return _0x4a4f35[_0x586f7b('0x1050')][_0x586f7b('0x1335')]({'sectionId':_0x41f6c8['id']})['$promise'][_0x586f7b('0x2788')](function(_0x58da5e){const _0x1ed9bd=_0x586f7b,_0x31628f=_0x283545()[_0x1ed9bd('0x155d')](_0x58da5e['rows'],function(_0x4545bd){const _0x20a65a=_0x1ed9bd;return _0x283545()['find'](_0x3947f3[_0x20a65a('0xf3e')],{'id':_0x4545bd[_0x20a65a('0x2707')]});});let _0x3e414c=null;_0x3947f3['outboundroute']&&(_0x3e414c=_0x283545()[_0x1ed9bd('0x20e8')](_0x3947f3['contexts'],{'name':_0x3947f3[_0x1ed9bd('0x1e98')][_0x1ed9bd('0x1f3b')]}));if(_0x3e414c&&!_0x283545()[_0x1ed9bd('0xc5d')](_0x31628f,['id',_0x3e414c['id']])){const _0x101470=_0x283545()[_0x1ed9bd('0x20e8')](_0x3947f3['contexts'],{'id':_0x3e414c['id']});_0x101470[_0x1ed9bd('0x3bf')]=![],_0x31628f[_0x1ed9bd('0x13e3')](_0x101470);}_0x3947f3[_0x1ed9bd('0xf3e')]=_0x31628f;});}})[_0x5383bc('0x1cb5')](function(_0x228342){const _0x54d5ce=_0x5383bc;_0x51cf2a[_0x54d5ce('0x5e8')]({'title':_0x228342[_0x54d5ce('0x1b51')]?_0x54d5ce('0x15d1')+_0x228342[_0x54d5ce('0x1b51')]+'\x20-\x20'+_0x228342[_0x54d5ce('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x228342[_0x54d5ce('0x11fc')]?JSON['stringify'](_0x228342[_0x54d5ce('0x11fc')]):_0x228342[_0x54d5ce('0x17df')]()});});function _0x15e01d(){const _0x9ad1cf=_0x5383bc;_0x3947f3[_0x9ad1cf('0x25be')]=[],_0x4a4f35[_0x9ad1cf('0x2636')][_0x9ad1cf('0xbd0')](_0x3947f3[_0x9ad1cf('0x1e98')])[_0x9ad1cf('0x1714')]['then'](function(_0x13ae0b){const _0x5bc2d3=_0x9ad1cf;_0x3947f3[_0x5bc2d3('0x19b0')][_0x5bc2d3('0xc51')](_0x13ae0b[_0x5bc2d3('0x1cbf')]()),_0x51cf2a['success']({'title':_0x5bc2d3('0xa42'),'msg':_0x3947f3[_0x5bc2d3('0x1e98')][_0x5bc2d3('0x1a8d')]?_0x3947f3['outboundroute']['name']+'\x20has\x20been\x20created!':''}),_0x468025(_0x13ae0b);})[_0x9ad1cf('0x1cb5')](function(_0x309a62){const _0x2cb4b9=_0x9ad1cf;if(_0x309a62[_0x2cb4b9('0x11fc')]&&_0x309a62['data']['errors']&&_0x309a62[_0x2cb4b9('0x11fc')][_0x2cb4b9('0x25be')][_0x2cb4b9('0x2566')]){_0x3947f3[_0x2cb4b9('0x25be')]=_0x309a62[_0x2cb4b9('0x11fc')][_0x2cb4b9('0x25be')]||[{'message':_0x309a62['toString'](),'type':_0x2cb4b9('0x1695')}];for(let _0x3c43a4=0x0;_0x3c43a4<_0x309a62[_0x2cb4b9('0x11fc')][_0x2cb4b9('0x25be')][_0x2cb4b9('0x2566')];_0x3c43a4+=0x1){_0x51cf2a[_0x2cb4b9('0x5e8')]({'title':_0x309a62['data'][_0x2cb4b9('0x25be')][_0x3c43a4][_0x2cb4b9('0x1d7')],'msg':_0x309a62['data'][_0x2cb4b9('0x25be')][_0x3c43a4][_0x2cb4b9('0x15e2')]});}}else _0x51cf2a[_0x2cb4b9('0x5e8')]({'title':_0x309a62[_0x2cb4b9('0x1b51')]?'API:'+_0x309a62[_0x2cb4b9('0x1b51')]+'\x20-\x20'+_0x309a62[_0x2cb4b9('0x22ce')]:_0x2cb4b9('0x1695'),'msg':_0x309a62[_0x2cb4b9('0x11fc')]?JSON[_0x2cb4b9('0x1be0')](_0x309a62[_0x2cb4b9('0x11fc')][_0x2cb4b9('0x15e2')]):_0x309a62[_0x2cb4b9('0x17df')]()});});}function _0x2f732e(){const _0x58639b=_0x5383bc;_0x3947f3['errors']=[],_0x4a4f35[_0x58639b('0x2636')][_0x58639b('0x2740')]({'id':_0x3947f3[_0x58639b('0x1e98')]['id']},_0x3947f3[_0x58639b('0x1e98')])[_0x58639b('0x1714')][_0x58639b('0x2788')](function(_0x24a505){const _0x28e9f5=_0x58639b,_0x5e9123=_0x283545()[_0x28e9f5('0x20e8')](_0x3947f3['outboundroutes'],{'id':_0x24a505['id']});_0x5e9123&&(_0x283545()[_0x28e9f5('0x2503')](_0x5e9123,_0x283545()[_0x28e9f5('0x41b')](_0x24a505[_0x28e9f5('0x1cbf')](),_0x283545()[_0x28e9f5('0x2163')](_0x5e9123))),_0x4a4f35[_0x28e9f5('0x2636')]['get']({'sort':'priority','VoiceExtensionId':_0x5e9123['id'],'isApp':!![],'nolimit':!![]})[_0x28e9f5('0x1714')][_0x28e9f5('0x2788')](function(_0x1ef646){_0x3947f3['outboundrouteApps']=_0x1ef646,_0x432dbf();})),_0x51cf2a[_0x28e9f5('0x173b')]({'title':'OutboundRoute\x20properly\x20saved!','msg':_0x3947f3[_0x28e9f5('0x1e98')]['name']?_0x3947f3[_0x28e9f5('0x1e98')][_0x28e9f5('0x1a8d')]+_0x28e9f5('0x24cf'):''}),_0x468025(_0x24a505);})['catch'](function(_0x3e358d){const _0x1e336a=_0x58639b;if(_0x3e358d[_0x1e336a('0x11fc')]&&_0x3e358d[_0x1e336a('0x11fc')]['errors']&&_0x3e358d[_0x1e336a('0x11fc')][_0x1e336a('0x25be')][_0x1e336a('0x2566')]){_0x3947f3['errors']=_0x3e358d[_0x1e336a('0x11fc')]['errors']||[{'message':_0x3e358d[_0x1e336a('0x17df')](),'type':_0x1e336a('0x38')}];for(let _0x566de6=0x0;_0x566de6<_0x3e358d[_0x1e336a('0x11fc')][_0x1e336a('0x25be')]['length'];_0x566de6++){_0x51cf2a[_0x1e336a('0x5e8')]({'title':_0x3e358d[_0x1e336a('0x11fc')][_0x1e336a('0x25be')][_0x566de6][_0x1e336a('0x1d7')],'msg':_0x3e358d[_0x1e336a('0x11fc')]['errors'][_0x566de6][_0x1e336a('0x15e2')]});}}else _0x51cf2a[_0x1e336a('0x5e8')]({'title':_0x3e358d[_0x1e336a('0x1b51')]?_0x1e336a('0x15d1')+_0x3e358d[_0x1e336a('0x1b51')]+_0x1e336a('0x1b0b')+_0x3e358d['statusText']:_0x1e336a('0x38'),'msg':_0x3e358d[_0x1e336a('0x11fc')]?JSON[_0x1e336a('0x1be0')](_0x3e358d['data'][_0x1e336a('0x15e2')]):_0x3e358d[_0x1e336a('0x17df')]()});});}function _0x2a2558(_0xf9e52e){const _0x40454e=_0x5383bc;_0x4a4f35[_0x40454e('0x17ee')][_0x40454e('0x1335')]({'VoiceExtensionId':_0x1a17f2['id']})[_0x40454e('0x1714')]['then'](function(_0x1eb380){const _0x4d3e2e=_0x40454e;if(_0x1eb380&&_0x1eb380['rows']&&_0x1eb380[_0x4d3e2e('0x25df')][_0x4d3e2e('0x2566')]>0x0)return _0x51cf2a['error']({'title':'Outbound\x20route\x20not\x20deleted!','msg':_0x4d3e2e('0x7a5')});else{_0x3947f3['errors']=[];const _0x1f737b=_0x53182a['confirm']()[_0x4d3e2e('0x14e4')](_0x4d3e2e('0x458'))[_0x4d3e2e('0x1c98')](_0x4d3e2e('0xd06'))['ariaLabel'](_0x4d3e2e('0x2565'))['ok'](_0x4d3e2e('0x2786'))[_0x4d3e2e('0x1801')](_0x4d3e2e('0x1481'))[_0x4d3e2e('0x24d0')](_0xf9e52e);_0x53182a[_0x4d3e2e('0x2fa')](_0x1f737b)[_0x4d3e2e('0x2788')](function(){const _0x481edc=_0x4d3e2e;_0x4a4f35[_0x481edc('0x2636')][_0x481edc('0x17c4')]({'id':_0x3947f3[_0x481edc('0x1e98')]['id']})[_0x481edc('0x1714')]['then'](function(){const _0x553f58=_0x481edc;_0x283545()[_0x553f58('0x1a90')](_0x3947f3[_0x553f58('0x19b0')],{'id':_0x3947f3[_0x553f58('0x1e98')]['id']}),_0x51cf2a[_0x553f58('0x173b')]({'title':'OutboundRoute\x20properly\x20deleted!','msg':(_0x3947f3[_0x553f58('0x1e98')][_0x553f58('0x1a8d')]||_0x553f58('0x1e98'))+'\x20has\x20been\x20deleted!'}),_0x468025(_0x3947f3[_0x553f58('0x1e98')]);})[_0x481edc('0x1cb5')](function(_0x210876){const _0x13c5d4=_0x481edc;if(_0x210876[_0x13c5d4('0x11fc')]&&_0x210876[_0x13c5d4('0x11fc')][_0x13c5d4('0x25be')]&&_0x210876['data'][_0x13c5d4('0x25be')]['length']){_0x3947f3[_0x13c5d4('0x25be')]=_0x210876[_0x13c5d4('0x11fc')]['errors']||[{'message':_0x210876[_0x13c5d4('0x17df')](),'type':_0x13c5d4('0x1e7d')}];for(let _0x3fde43=0x0;_0x3fde43<_0x210876[_0x13c5d4('0x11fc')][_0x13c5d4('0x25be')][_0x13c5d4('0x2566')];_0x3fde43++){_0x51cf2a['error']({'title':_0x210876['data'][_0x13c5d4('0x25be')][_0x3fde43][_0x13c5d4('0x1d7')],'msg':_0x210876['data']['errors'][_0x3fde43]['message']});}}else _0x51cf2a['error']({'title':_0x210876['status']?_0x13c5d4('0x15d1')+_0x210876[_0x13c5d4('0x1b51')]+_0x13c5d4('0x1b0b')+_0x210876['statusText']:_0x13c5d4('0x1e7d'),'msg':_0x210876[_0x13c5d4('0x11fc')]?JSON[_0x13c5d4('0x1be0')](_0x210876[_0x13c5d4('0x11fc')][_0x13c5d4('0x15e2')]):_0x210876['message']||_0x210876['toString']()});});},function(){});}});}function _0x432dbf(){const _0x37926a=_0x5383bc;let _0x2bc027=0x2,_0x711ba5=[];_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':_0x37926a('0xd38'),'context':_0x3947f3['outboundroute'][_0x37926a('0x1f3b')],'exten':_0x3947f3[_0x37926a('0x1e98')]['exten'],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3['outboundroute']['id']}),_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':_0x37926a('0x21d6')+(_0x3947f3['outboundroute'][_0x37926a('0x277c')]?_0x37926a('0x124d')+_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x277c')]+'}':_0x37926a('0x1275')),'context':_0x3947f3[_0x37926a('0x1e98')]['context'],'exten':_0x3947f3['outboundroute'][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x3947f3['outboundroute'][_0x37926a('0x1f3b')],'exten':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':_0x37926a('0x2283'),'context':_0x3947f3['outboundroute']['context'],'exten':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x711ba5['push']({'type':'outbound','app':_0x37926a('0x16b2'),'appdata':_0x37926a('0x2711'),'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'exten':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':_0x37926a('0xfe2')+_0x3947f3['outboundroute']['id'],'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'exten':_0x3947f3[_0x37926a('0x1e98')]['exten'],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']});typeof _0x3947f3['outboundroute']['recordingFormat']!==_0x37926a('0xedb')&&_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x801')]!==_0x37926a('0x1dc')&&(_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':_0x37926a('0x3c6'),'context':_0x3947f3['outboundroute'][_0x37926a('0x1f3b')],'exten':_0x3947f3['outboundroute'][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x711ba5['push']({'type':_0x37926a('0x1'),'app':_0x37926a('0x16b2'),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x3947f3[_0x37926a('0x1e98')]['recordingFormat']||0x0,'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'exten':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1d6f')],'priority':_0x2bc027++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}));for(let _0x3f6831=0x0,_0x59e7a3=0x0;_0x3f6831<_0x3947f3[_0x37926a('0x1a82')]['rows'][_0x37926a('0x2566')];_0x3f6831++,_0x59e7a3=0x0){const _0x3871ec=_0x3947f3[_0x37926a('0x1a82')]['rows'][_0x3f6831],_0x576dec=[],_0x5ee1f9=[];_0x3871ec['intervals']=_0x3871ec['interval']!=='*,*,*,*'?[_0x3871ec[_0x37926a('0x2630')]]:_0x3871ec[_0x37926a('0x20d0')]?_0x283545()['map'](_0x283545()[_0x37926a('0x916')](_0x3947f3['intervals'][_0x37926a('0x25df')],{'IntervalId':_0x3871ec[_0x37926a('0x20d0')]}),_0x37926a('0x2630')):[],_0x3871ec[_0x37926a('0x1f3b')]=_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],_0x3871ec[_0x37926a('0x1d6f')]=_0x3947f3['outboundroute']['exten'];_0x3871ec[_0x37926a('0x1d7')]&&(_0x3871ec[_0x37926a('0x1d7')]=_0x3871ec[_0x37926a('0x1d7')][_0x37926a('0xc2e')]());typeof _0x3871ec['tag']!==_0x37926a('0xedb')&&(_0x3871ec[_0x37926a('0x1764')]&&_0x3871ec['tag']!=='--'&&_0x576dec['push']({'type':_0x3871ec[_0x37926a('0x1d7')][_0x37926a('0xc2e')](),'app':'Set','appdata':'CDR(tag)='+_0x3871ec[_0x37926a('0x1764')],'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'exten':_0x3947f3['outboundroute'][_0x37926a('0x1d6f')],'priority':_0x3871ec[_0x37926a('0xec5')][_0x37926a('0x2566')]+_0x2bc027+_0x59e7a3++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}));_0x3871ec[_0x37926a('0x8de')]?_0x576dec[_0x37926a('0x13e3')]({'type':_0x3871ec[_0x37926a('0x1d7')][_0x37926a('0xc2e')](),'app':'ExecIf','appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x3871ec[_0x37926a('0x8de')]+')','context':_0x3947f3[_0x37926a('0x1e98')]['context'],'exten':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1d6f')],'priority':_0x3871ec['intervals'][_0x37926a('0x2566')]+_0x2bc027+_0x59e7a3++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}):_0x576dec[_0x37926a('0x13e3')]({'type':_0x3871ec['type'][_0x37926a('0xc2e')](),'app':_0x37926a('0x947'),'appdata':_0x37926a('0xf1'),'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'exten':_0x3947f3['outboundroute']['exten'],'priority':_0x3871ec[_0x37926a('0xec5')][_0x37926a('0x2566')]+_0x2bc027+_0x59e7a3++,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']});for(let _0x270ee1=0x0;_0x270ee1<_0x3871ec['intervals'][_0x37926a('0x2566')];_0x270ee1++){const _0x3c388d=_0x2bc027+_0x3871ec['intervals'][_0x37926a('0x2566')],_0x37b7ca=_0x270ee1===_0x3871ec['intervals'][_0x37926a('0x2566')]-0x1?_0x2bc027+_0x576dec[_0x37926a('0x2566')]+_0x5ee1f9[_0x37926a('0x2566')]+0x2:_0x2bc027+_0x270ee1+0x1;_0x576dec[_0x37926a('0x722')](_0x270ee1,0x0,{'type':_0x37926a('0x1'),'app':_0x37926a('0x1740'),'appdata':_0x3871ec['intervals'][_0x270ee1]+'?'+_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')]+_0x37926a('0xf23')+_0x3c388d+':'+_0x3947f3[_0x37926a('0x1e98')]['context']+_0x37926a('0xf23')+_0x37b7ca,'exten':_0x3947f3[_0x37926a('0x1e98')]['exten'],'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'priority':_0x2bc027+_0x270ee1,'VoiceExtensionId':_0x3947f3['outboundroute']['id']});}if(_0x3871ec[_0x37926a('0x167b')]==='outboundDial'){const _0x502855=_0x283545()[_0x37926a('0x20e8')](_0x3947f3[_0x37926a('0x105')],{'appType':_0x37926a('0x25fb')});if(_0x502855&&_0x502855[_0x37926a('0x1578')]){const _0x352651={},_0x430beb=_0x3871ec[_0x37926a('0xd6b')][_0x37926a('0x1497')](','),_0x4faf58=[];for(let _0x5106ac=0x0,_0x2ef5f8=_0x502855['fields'][_0x37926a('0x2566')];_0x5106ac<_0x2ef5f8;_0x5106ac++){if(typeof _0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1453')]!==_0x37926a('0xedb'))switch(_0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1a8d')]){case _0x37926a('0x2549'):_0x352651[_0x37926a('0x2549')]=_0x430beb[_0x502855[_0x37926a('0x1578')][_0x5106ac]['param']][_0x37926a('0x1497')]('/')[0x1],_0x352651[_0x37926a('0x1224')]=_0x430beb[_0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1453')]]['split']('/')[0x2],_0x352651[_0x37926a('0x1f71')]=_0x352651[_0x37926a('0x1224')]?_0x352651[_0x37926a('0x1224')][_0x37926a('0x1497')]('$')[0x0]:undefined,_0x352651[_0x37926a('0x1224')]=_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x277c')]?(_0x352651[_0x37926a('0x1f71')]||'')+_0x37926a('0x124d')+_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x277c')]+'}':(_0x352651['prefix']||'')+'${EXTEN}',_0x4faf58[_0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1453')]]=[_0x37926a('0x2756'),_0x352651[_0x37926a('0x2549')],_0x352651[_0x37926a('0x1224')]][_0x37926a('0x185f')]('/');break;case _0x37926a('0x784'):_0x352651[_0x37926a('0x784')]=_0x430beb[_0x502855[_0x37926a('0x1578')][_0x5106ac]['param']];_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x801')]!==_0x37926a('0x1dc')?_0x352651['options']['indexOf'](_0x37926a('0x1609'))<0x0&&(_0x352651['options']+=_0x37926a('0x1609')):_0x352651[_0x37926a('0x784')]=_0x352651['options'][_0x37926a('0x10a4')](_0x37926a('0x1609'),'');_0x4faf58[_0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1453')]]=_0x352651[_0x37926a('0x784')];break;default:_0x4faf58[_0x502855[_0x37926a('0x1578')][_0x5106ac][_0x37926a('0x1453')]]=_0x430beb[_0x502855[_0x37926a('0x1578')][_0x5106ac]['param']];}}_0x3871ec[_0x37926a('0xd6b')]=_0x4faf58[_0x37926a('0x185f')](',');}}_0x3871ec['priority']=_0x576dec[_0x37926a('0x2566')]?_0x283545()['last'](_0x576dec)[_0x37926a('0x155b')]+0x1:_0x2bc027,_0x2bc027=(_0x5ee1f9['length']?_0x283545()[_0x37926a('0x1d39')](_0x5ee1f9)[_0x37926a('0x155b')]:_0x3871ec[_0x37926a('0x155b')])+0x1,_0x711ba5=_0x283545()[_0x37926a('0x1282')](_0x711ba5,_0x576dec,[_0x3871ec],_0x5ee1f9);}_0x711ba5[_0x37926a('0x13e3')]({'type':_0x37926a('0x1'),'app':_0x37926a('0x1265'),'exten':_0x3947f3['outboundroute'][_0x37926a('0x1d6f')],'context':_0x3947f3[_0x37926a('0x1e98')][_0x37926a('0x1f3b')],'priority':_0x2bc027,'VoiceExtensionId':_0x3947f3[_0x37926a('0x1e98')]['id']}),_0x4a4f35[_0x37926a('0x2636')][_0x37926a('0x109')]({'id':_0x3947f3[_0x37926a('0x1e98')]['id']},_0x283545()['sortBy'](_0x711ba5,'priority'))['$promise'][_0x37926a('0x2788')](function(_0x52273a){const _0xfbd275=_0x37926a;_0x3947f3[_0xfbd275('0x1a82')][_0xfbd275('0x25df')]=_0x52273a[_0xfbd275('0x25df')];})[_0x37926a('0x1cb5')](function(_0x2936e6){const _0x11af1c=_0x37926a;console[_0x11af1c('0x5e8')](_0x2936e6);});}function _0x376475(_0xb3d706){return _0xb3d706===null?undefined:new Date(_0xb3d706);}function _0x468025(_0x29a776){const _0x314f13=_0x5383bc;_0x53182a[_0x314f13('0x19d')](_0x29a776);}}const _0x5f56df=_0x137b90,_0x2d7913=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html',_0xe82cc0=_0x18dd13['p']+_0x34e79e('0x1da4'),_0x4086d3=_0x18dd13['p']+_0x34e79e('0x1d3c');_0x620764[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0xd6f'),_0x34e79e('0x1701'),'Auth'];const _0xda213c={'custom':_0x2d7913,'interval':_0xe82cc0,'outbounddial':_0x4086d3};function _0x620764(_0x2c4093,_0x302f3c,_0x3c4867,_0x3b10a8,_0xf41eab,_0xb84dd8,_0x45ff59){const _0x467afb=_0x34e79e,_0x1fbc2d=this;_0x1fbc2d[_0x467afb('0x9cb')]=_0x45ff59[_0x467afb('0x24cc')](),_0x1fbc2d[_0x467afb('0x1e98')]={},_0x1fbc2d[_0x467afb('0x1a82')]={'count':0x0,'rows':[]},_0x1fbc2d[_0x467afb('0x1ca7')]=[],_0x1fbc2d[_0x467afb('0xe28')],_0x1fbc2d[_0x467afb('0x135a')]={'sort':_0x467afb('0x155b')},_0x1fbc2d[_0x467afb('0x105')]=_0x283545()[_0x467afb('0x9')](_0x283545()['sortBy']([{'app':_0x467afb('0x27dd'),'appType':_0x467afb('0x2630'),'type':_0x467afb('0x396'),'types':[_0x467afb('0xc8f'),'custom','list'],'fields':[],'isApp':![]},{'app':_0x467afb('0x1a7d'),'appType':_0x467afb('0x25fb'),'context':_0x467afb('0x15b1'),'type':_0x467afb('0x396'),'icon':_0x467afb('0x21ff'),'interval':_0x467afb('0x2191'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x467afb('0x20f2'),'field':{'name':_0x467afb('0x2549'),'key':_0x467afb('0x1a8d')},'route':_0x467afb('0x2549'),'filters':{'fields':_0x467afb('0x1338'),'sort':_0x467afb('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x467afb('0xe45'),'field':{'name':_0x467afb('0x1764'),'key':_0x467afb('0x1a8d')},'route':'tag','filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x467afb('0x312'),'name':_0x467afb('0x2549'),'type':_0x467afb('0x2519'),'values':_0x467afb('0x20f2'),'value':_0x467afb('0x217b'),'option':'trunk.name','required':!![],'param':0x0},{'title':_0x467afb('0x1a78'),'name':_0x467afb('0x8de'),'type':_0x467afb('0x16db'),'help':!![]},{'title':_0x467afb('0x1d0f'),'name':_0x467afb('0x1f71'),'type':_0x467afb('0x16db')},{'title':_0x467afb('0xbcf'),'name':_0x467afb('0x1764'),'type':_0x467afb('0x2519'),'values':_0x467afb('0xe45'),'value':'tag.name','option':_0x467afb('0x282c'),'defaultValues':[{'value':_0x467afb('0xd71'),'option':_0x467afb('0x1d8f')}]},{'title':'Timeout','name':_0x467afb('0x24e4'),'type':_0x467afb('0x272c'),'min':0x0,'param':0x1},{'title':_0x467afb('0x2748'),'name':_0x467afb('0x784'),'type':'text','param':0x2},{'title':_0x467afb('0x334'),'name':_0x467afb('0x1672'),'type':_0x467afb('0x16db'),'param':0x3}]},{'app':null,'type':_0x467afb('0x396'),'appType':'custom','icon':_0x467afb('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x467afb('0x26ec'),'name':_0x467afb('0x8a5'),'type':_0x467afb('0x16db'),'required':!![],'param':0x0},{'title':_0x467afb('0x675'),'name':_0x467afb('0xd6b'),'type':_0x467afb('0x16db'),'param':0x1}]}],[_0x467afb('0x8a5')]),{'isApp':![]}),_0x1fbc2d[_0x467afb('0x4b2')]={'group':{'name':'opt1','pull':_0x467afb('0x1b8')},'animation':0x64,'sort':![]},_0x1fbc2d['applications']={'group':{'name':_0x467afb('0x2268'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x4c1774){_0x4076d6(_0x4c1774,_0x4c1774['newIndex']);},'onSort':function(){_0x4ba31e();}},_0x1fbc2d[_0x467afb('0x24eb')]=_0x50ac26,_0x1fbc2d[_0x467afb('0x16a')]=_0x4ed640,_0x1fbc2d[_0x467afb('0x27ed')]=_0x388557,_0x1fbc2d[_0x467afb('0x1933')]=_0x4076d6,_0x1fbc2d[_0x467afb('0x10ce')]=_0x398a57,_0x1fbc2d[_0x467afb('0x12ce')]=_0x255493,_0x1fbc2d[_0x467afb('0x1472')]=_0x4f32e5,_0x1fbc2d[_0x467afb('0xa9c')]=_0x4ba31e,_0x1fbc2d['getIntervals']=_0x3b63c,_0x1fbc2d[_0x467afb('0x12b8')]=_0x4f42ed;function _0x50ac26(_0x2ce37e,_0x4c54ac){const _0x21e333=_0x467afb;_0x1fbc2d[_0x21e333('0x1e98')]=_0x2ce37e,_0x1fbc2d[_0x21e333('0xe28')]=typeof _0x4c54ac!==_0x21e333('0xedb')?_0x4c54ac:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1fbc2d[_0x21e333('0x26de')][_0x21e333('0x1112')]=!_0x1fbc2d[_0x21e333('0xe28')][_0x21e333('0x21b7')]?!![]:![],_0xf41eab['on'](_0x21e333('0xe19'),_0x1fbc2d[_0x21e333('0x12b8')]),_0x1fbc2d[_0x21e333('0x135a')][_0x21e333('0xa33')]=_0x2ce37e['id'],_0x1fbc2d['query']['isApp']=!![],_0x1fbc2d[_0x21e333('0x135a')][_0x21e333('0xd18')]=!![],_0x1fbc2d[_0x21e333('0x27ed')](),_0x1fbc2d[_0x21e333('0x1963')]();}function _0x4f42ed(_0x446930){const _0x11f508=_0x467afb;_0x446930[_0x11f508('0xa33')]===_0x1fbc2d['outboundroute']['id']&&_0x4ba31e(!![]);}function _0x4ed640(_0x154445,_0x34e73d,_0x119471){const _0x36011c=_0x467afb,_0x583f2f=_0x302f3c[_0x36011c('0x112e')]()[_0x36011c('0x14e4')](_0x36011c('0xbe7'))[_0x36011c('0x93e')](_0x36011c('0x1670')+_0x154445[_0x36011c('0x8a5')]+_0x36011c('0x229e')+_0x36011c('0x27c7'))[_0x36011c('0x10bc')](_0x36011c('0xdd6'))[_0x36011c('0x24d0')](_0x119471)['ok']('OK')[_0x36011c('0x1801')]('CANCEL');_0x302f3c[_0x36011c('0x2fa')](_0x583f2f)[_0x36011c('0x2788')](function(){const _0x5c549c=_0x36011c;_0x1fbc2d[_0x5c549c('0x1a82')][_0x5c549c('0x25df')][_0x5c549c('0x722')](_0x34e73d,0x1),_0x4ba31e();},function(){console['log']('CANCEL');});}function _0x4076d6(_0x2a58a2,_0x4ed59a){const _0x590dee=_0x467afb;if(_0x1fbc2d['outboundrouteApps'][_0x590dee('0x25df')][_0x590dee('0x2566')]){const _0x354293=_0x1fbc2d[_0x590dee('0x1a82')]['rows'][_0x4ed59a]?_0x1fbc2d[_0x590dee('0x1a82')][_0x590dee('0x25df')][_0x4ed59a]:_0x1fbc2d[_0x590dee('0x1a82')]['rows'][0x0],_0x24c014=(_0x354293[_0x590dee('0x167b')]||_0x354293[_0x590dee('0x8a5')])[_0x590dee('0xc2e')]();_0x302f3c['show']({'controller':_0x590dee('0x10a7')+_0x24c014+_0x590dee('0x100d'),'controllerAs':'vm','templateUrl':_0xda213c[_0x24c014],'parent':angular[_0x590dee('0x16b1')](_0x3c4867[_0x590dee('0x945')]),'targetEvent':_0x2a58a2,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x354293,'outboundroute':_0x1fbc2d[_0x590dee('0x1e98')],'crudPermissions':_0x1fbc2d[_0x590dee('0xe28')]}})[_0x590dee('0x2788')](function(_0x48caa5){const _0x72d542=_0x590dee;_0x48caa5&&(_0x48caa5['id']?_0x1fbc2d[_0x72d542('0x1a82')][_0x72d542('0x25df')][_0x4ed59a]=_0x48caa5:_0x1fbc2d[_0x72d542('0x1a82')][_0x72d542('0x25df')][_0x72d542('0x722')](_0x4ed59a,0x0,_0x48caa5),_0x4ba31e());})['catch'](function(_0x11d519){const _0x1ed1ca=_0x590dee;_0x11d519&&_0x3b10a8[_0x1ed1ca('0x5e8')]({'title':_0x11d519[_0x1ed1ca('0x1b51')]?'API:'+_0x11d519[_0x1ed1ca('0x1b51')]+_0x1ed1ca('0x1b0b')+_0x11d519['statusText']:_0x1ed1ca('0x239b'),'msg':_0x11d519['data']?JSON[_0x1ed1ca('0x1be0')](_0x11d519['data']):_0x11d519['toString']()});});}}function _0x398a57(_0x2fa067,_0xac3afc){const _0x136758=_0x467afb;if(_0x1fbc2d[_0x136758('0x1a82')][_0x136758('0x25df')][_0x136758('0x2566')]){const _0x139da2=_0x1fbc2d[_0x136758('0x1a82')][_0x136758('0x25df')][_0xac3afc]?_0x1fbc2d[_0x136758('0x1a82')][_0x136758('0x25df')][_0xac3afc]:_0x1fbc2d[_0x136758('0x1a82')][_0x136758('0x25df')][0x0];_0x302f3c['show']({'controller':'EditoutboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0xe82cc0,'parent':angular[_0x136758('0x16b1')](_0x3c4867['body']),'targetEvent':_0x2fa067,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x139da2['interval'],'IntervalId':_0x139da2['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x1fbc2d[_0x136758('0xe28')]}})[_0x136758('0x2788')](function(_0x5b1649){const _0x440900=_0x136758;_0x5b1649&&(_0x139da2[_0x440900('0x2630')]=_0x5b1649[_0x440900('0x2630')]||'*,*,*,*',_0x139da2[_0x440900('0x20d0')]=_0x5b1649[_0x440900('0x20d0')]||null,_0x4ba31e());});}}function _0x4ba31e(_0x365fd6){const _0x597f28=_0x467afb;let _0xcc2f70=0x2,_0x2d365e=[];_0x2d365e['push']({'type':_0x597f28('0x1'),'app':_0x597f28('0x16b2'),'appdata':'CDR(type)=outbound','context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x16b2'),'appdata':_0x597f28('0x21d6')+(_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x277c')]?_0x597f28('0x124d')+_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x277c')]+'}':_0x597f28('0x1275')),'context':_0x1fbc2d['outboundroute']['context'],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':'Set','appdata':_0x597f28('0x1f3f')+_0x1fbc2d[_0x597f28('0x1e98')]['id'],'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']});const _0x41a244=_0xcc2f70++;_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x947'),'appdata':_0x597f28('0x1510')+(_0x41a244+0x2)+'):Goto('+(_0x41a244+0x1)+')','context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d['outboundroute'][_0x597f28('0x1d6f')],'priority':_0x41a244,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':'outbound','app':'Set','appdata':_0x1fbc2d['outboundroute'][_0x597f28('0x277c')]?_0x597f28('0x26a4')+_0x1fbc2d['outboundroute'][_0x597f28('0x277c')]+'}':_0x597f28('0x232'),'context':_0x1fbc2d['outboundroute'][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')]['exten'],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d['outboundroute']['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':'outbound','app':_0x597f28('0x16b2'),'appdata':_0x597f28('0x365'),'context':_0x1fbc2d['outboundroute'][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x16b2'),'appdata':_0x597f28('0x2283'),'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d['outboundroute'][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e['push']({'type':'outbound','app':_0x597f28('0x16b2'),'appdata':'MONITOR_OPTIONS=ab','context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e['push']({'type':_0x597f28('0x1'),'app':'Set','appdata':'outboundrouteid='+_0x1fbc2d[_0x597f28('0x1e98')]['id'],'context':_0x1fbc2d[_0x597f28('0x1e98')]['context'],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d['outboundroute']['id']});typeof _0x1fbc2d['outboundroute'][_0x597f28('0x801')]===_0x597f28('0xedb')&&_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x801')]!==_0x597f28('0x1dc')&&(_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x16b2'),'appdata':_0x597f28('0x3c6'),'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')]['exten'],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}),_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x16b2'),'appdata':_0x597f28('0x26ee')+_0x1fbc2d['outboundroute'][_0x597f28('0x801')]||0x0,'context':_0x1fbc2d[_0x597f28('0x1e98')]['context'],'exten':_0x1fbc2d[_0x597f28('0x1e98')]['exten'],'priority':_0xcc2f70++,'VoiceExtensionId':_0x1fbc2d['outboundroute']['id']}));for(let _0x445568=0x0,_0x3399ef=0x0;_0x445568<_0x1fbc2d[_0x597f28('0x1a82')]['rows'][_0x597f28('0x2566')];_0x445568++,_0x3399ef=0x0){const _0x4bcd78=_0x1fbc2d[_0x597f28('0x1a82')][_0x597f28('0x25df')][_0x445568],_0x95f50b=[],_0x5b6270=[];_0x4bcd78[_0x597f28('0xec5')]=_0x4bcd78['interval']!==_0x597f28('0x2191')?[_0x4bcd78[_0x597f28('0x2630')]]:_0x4bcd78[_0x597f28('0x20d0')]?_0x283545()['map'](_0x283545()[_0x597f28('0x916')](_0x1fbc2d['intervals'][_0x597f28('0x25df')],{'IntervalId':_0x4bcd78[_0x597f28('0x20d0')]}),_0x597f28('0x2630')):[],_0x4bcd78['context']=_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],_0x4bcd78[_0x597f28('0x1d6f')]=_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')];_0x4bcd78[_0x597f28('0x1d7')]&&(_0x4bcd78[_0x597f28('0x1d7')]=_0x4bcd78[_0x597f28('0x1d7')][_0x597f28('0xc2e')]());typeof _0x4bcd78[_0x597f28('0x1764')]!==_0x597f28('0xedb')&&(_0x4bcd78[_0x597f28('0x1764')]&&_0x4bcd78[_0x597f28('0x1764')]!=='--'&&_0x95f50b['push']({'type':_0x4bcd78[_0x597f28('0x1d7')][_0x597f28('0xc2e')](),'app':_0x597f28('0x16b2'),'appdata':'CDR(tag)='+_0x4bcd78[_0x597f28('0x1764')],'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0x4bcd78[_0x597f28('0xec5')]['length']+_0xcc2f70+_0x3399ef++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}));_0x4bcd78[_0x597f28('0x8de')]?_0x95f50b[_0x597f28('0x13e3')]({'type':_0x4bcd78[_0x597f28('0x1d7')][_0x597f28('0xc2e')](),'app':'ExecIf','appdata':_0x597f28('0x1e1')+_0x4bcd78[_0x597f28('0x8de')]+')','context':_0x1fbc2d['outboundroute'][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0x4bcd78['intervals'][_0x597f28('0x2566')]+_0xcc2f70+_0x3399ef++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']}):_0x95f50b['push']({'type':_0x4bcd78[_0x597f28('0x1d7')]['toLowerCase'](),'app':_0x597f28('0x947'),'appdata':_0x597f28('0xf1'),'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'priority':_0x4bcd78[_0x597f28('0xec5')][_0x597f28('0x2566')]+_0xcc2f70+_0x3399ef++,'VoiceExtensionId':_0x1fbc2d[_0x597f28('0x1e98')]['id']});for(let _0x389a28=0x0;_0x389a28<_0x4bcd78[_0x597f28('0xec5')][_0x597f28('0x2566')];_0x389a28++){const _0x1e1fb=_0xcc2f70+_0x4bcd78[_0x597f28('0xec5')]['length'],_0xb78278=_0x389a28===_0x4bcd78[_0x597f28('0xec5')][_0x597f28('0x2566')]-0x1?_0xcc2f70+_0x95f50b[_0x597f28('0x2566')]+_0x5b6270[_0x597f28('0x2566')]+0x2:_0xcc2f70+_0x389a28+0x1;_0x95f50b[_0x597f28('0x722')](_0x389a28,0x0,{'type':_0x597f28('0x1'),'app':_0x597f28('0x1740'),'appdata':_0x4bcd78[_0x597f28('0xec5')][_0x389a28]+'?'+_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')]+_0x597f28('0xf23')+_0x1e1fb+':'+_0x1fbc2d['outboundroute']['context']+',${EXTEN},'+_0xb78278,'exten':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1d6f')],'context':_0x1fbc2d[_0x597f28('0x1e98')]['context'],'priority':_0xcc2f70+_0x389a28,'VoiceExtensionId':_0x1fbc2d['outboundroute']['id']});}if(_0x365fd6&&_0x4bcd78['appType']===_0x597f28('0x25fb')){const _0xa4f4c9=_0x283545()[_0x597f28('0x20e8')](_0x1fbc2d[_0x597f28('0x105')],{'appType':_0x597f28('0x25fb')});if(_0xa4f4c9&&_0xa4f4c9[_0x597f28('0x1578')]){const _0x2c64a6={},_0x38ac0e=_0x4bcd78[_0x597f28('0xd6b')]['split'](','),_0x1afe76=[];for(let _0x29f3c0=0x0,_0x364b0f=_0xa4f4c9['fields'][_0x597f28('0x2566')];_0x29f3c0<_0x364b0f;_0x29f3c0++){if(typeof _0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0][_0x597f28('0x1453')]!==_0x597f28('0xedb'))switch(_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0][_0x597f28('0x1a8d')]){case _0x597f28('0x2549'):_0x2c64a6['trunk']=_0x38ac0e[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0]['param']][_0x597f28('0x1497')]('/')[0x1],_0x2c64a6['phone']=_0x38ac0e[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0][_0x597f28('0x1453')]][_0x597f28('0x1497')]('/')[0x2],_0x2c64a6[_0x597f28('0x1f71')]=_0x2c64a6[_0x597f28('0x1224')]?_0x2c64a6[_0x597f28('0x1224')][_0x597f28('0x1497')]('$')[0x0]:undefined,_0x2c64a6[_0x597f28('0x1224')]=_0x1fbc2d['outboundroute'][_0x597f28('0x277c')]?(_0x2c64a6[_0x597f28('0x1f71')]||'')+_0x597f28('0x124d')+_0x1fbc2d['outboundroute']['cutdigits']+'}':(_0x2c64a6[_0x597f28('0x1f71')]||'')+_0x597f28('0x1275'),_0x1afe76[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0][_0x597f28('0x1453')]]=[_0x597f28('0x2756'),_0x2c64a6[_0x597f28('0x2549')],_0x2c64a6[_0x597f28('0x1224')]][_0x597f28('0x185f')]('/');break;case _0x597f28('0x784'):_0x2c64a6[_0x597f28('0x784')]=_0x38ac0e[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0]['param']];_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x801')]!==_0x597f28('0x1dc')?_0x2c64a6['options'][_0x597f28('0x821')](_0x597f28('0x1609'))<0x0&&(_0x2c64a6[_0x597f28('0x784')]+=_0x597f28('0x1609')):_0x2c64a6[_0x597f28('0x784')]=_0x2c64a6[_0x597f28('0x784')][_0x597f28('0x10a4')](_0x597f28('0x1609'),'');_0x1afe76[_0xa4f4c9['fields'][_0x29f3c0][_0x597f28('0x1453')]]=_0x2c64a6['options'];break;default:_0x1afe76[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0]['param']]=_0x38ac0e[_0xa4f4c9[_0x597f28('0x1578')][_0x29f3c0][_0x597f28('0x1453')]];}}_0x4bcd78[_0x597f28('0xd6b')]=_0x1afe76[_0x597f28('0x185f')](',');}}_0x4bcd78[_0x597f28('0x155b')]=_0x95f50b['length']?_0x283545()['last'](_0x95f50b)[_0x597f28('0x155b')]+0x1:_0xcc2f70,_0xcc2f70=(_0x5b6270[_0x597f28('0x2566')]?_0x283545()[_0x597f28('0x1d39')](_0x5b6270)[_0x597f28('0x155b')]:_0x4bcd78[_0x597f28('0x155b')])+0x1,_0x2d365e=_0x283545()[_0x597f28('0x1282')](_0x2d365e,_0x95f50b,[_0x4bcd78],_0x5b6270);}_0x2d365e[_0x597f28('0x13e3')]({'type':_0x597f28('0x1'),'app':_0x597f28('0x1265'),'exten':_0x1fbc2d['outboundroute'][_0x597f28('0x1d6f')],'context':_0x1fbc2d[_0x597f28('0x1e98')][_0x597f28('0x1f3b')],'priority':_0xcc2f70,'VoiceExtensionId':_0x1fbc2d['outboundroute']['id']}),_0x2c4093[_0x597f28('0x2636')][_0x597f28('0x109')]({'id':_0x1fbc2d[_0x597f28('0x1e98')]['id']},_0x283545()[_0x597f28('0x8ce')](_0x2d365e,_0x597f28('0x155b')))['$promise'][_0x597f28('0x2788')](function(_0x39f15d){const _0x4383fa=_0x597f28;_0x1fbc2d['outboundrouteApps'][_0x4383fa('0x25df')]=_0x39f15d[_0x4383fa('0x25df')];})['catch'](function(_0x3e8014){const _0xf8d31a=_0x597f28;console[_0xf8d31a('0x5e8')](_0x3e8014);});}function _0x495d8e(_0x52de59){const _0x5e2e78=_0x467afb;_0x1fbc2d[_0x5e2e78('0x1a82')]=_0x52de59||{'count':0x0,'rows':[]};}function _0x3b63c(){const _0x23779e=_0x467afb;return _0x2c4093['interval'][_0x23779e('0x1335')]({'fields':_0x23779e('0x12c6')})[_0x23779e('0x1714')][_0x23779e('0x2788')](function(_0x2d1644){const _0x42b8cb=_0x23779e;_0x1fbc2d[_0x42b8cb('0xec5')]=_0x2d1644;})[_0x23779e('0x1cb5')](function(_0x1057a7){console['error'](_0x1057a7);});}function _0x388557(){const _0xb4fc15=_0x467afb;_0x1fbc2d[_0xb4fc15('0x1808')]=_0x2c4093[_0xb4fc15('0x2636')][_0xb4fc15('0x1335')](_0x1fbc2d[_0xb4fc15('0x135a')],_0x495d8e)['$promise'];}function _0x255493(_0x36018c){const _0x4b736d=_0x467afb;_0x283545()[_0x4b736d('0x1a90')](_0x1fbc2d[_0x4b736d('0x1a82')][_0x4b736d('0x25df')],{'id':_0x36018c['id']}),_0x4ba31e(),_0x3b10a8[_0x4b736d('0x173b')]({'title':_0x4b736d('0x170b'),'msg':_0x36018c[_0x4b736d('0x8a5')]?_0x36018c['app']+_0x4b736d('0x14d4'):''});}function _0x4f32e5(_0x425c87){const _0x378c2f=_0x467afb,_0x3b2682=_0x302f3c[_0x378c2f('0x112e')]()[_0x378c2f('0x14e4')](_0x378c2f('0x191c'))[_0x378c2f('0x93e')](_0x378c2f('0x1670')+_0x1fbc2d[_0x378c2f('0x1ca7')]['length']+_0x378c2f('0xbd')+_0x378c2f('0x27c7'))[_0x378c2f('0x10bc')](_0x378c2f('0x1db'))[_0x378c2f('0x24d0')](_0x425c87)['ok']('OK')['cancel']('CANCEL');_0x302f3c[_0x378c2f('0x2fa')](_0x3b2682)[_0x378c2f('0x2788')](function(){const _0x52e565=_0x378c2f;_0x1fbc2d['selectedOutboundRouteApps']['forEach'](function(_0x35c6a4){const _0x4604ab=a0_0x14e7;_0x283545()['remove'](_0x1fbc2d['outboundrouteApps'][_0x4604ab('0x25df')],{'id':_0x35c6a4['id']});}),_0x1fbc2d[_0x52e565('0x1ca7')]=[],_0x4ba31e();});}_0xb84dd8['$on']('$destroy',function(){const _0x2a243e=_0x467afb;_0xf41eab[_0x2a243e('0x277f')]('voiceExtension:update');});}const _0x5782e7=_0x620764;_0x3b91b1[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x11af'),_0x34e79e('0x1e98'),'api','Auth',_0x34e79e('0xe28')];function _0x3b91b1(_0x42d6ab,_0x1d69ce,_0x2b84a9,_0x2e28f7,_0x1c9cee,_0x1e4bc6,_0x4137cb,_0x117d0f){const _0x96b298=_0x34e79e,_0x29e275=this;_0x29e275[_0x96b298('0x9cb')]=_0x4137cb[_0x96b298('0x24cc')](),_0x29e275[_0x96b298('0x25be')]=[],_0x29e275['title']=_0x96b298('0xc6c')+(_0x2e28f7[_0x96b298('0x167b')]||_0x2e28f7[_0x96b298('0x8a5')])[_0x96b298('0x25e6')](),_0x29e275[_0x96b298('0x1d56')]=angular['copy'](_0x2e28f7),_0x29e275[_0x96b298('0xe28')]=_0x117d0f,_0x29e275[_0x96b298('0x1193')]={};if(_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')])switch(_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x167b')]?_0x29e275[_0x96b298('0x1d56')]['appType'][_0x96b298('0xc2e')]():_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x8a5')][_0x96b298('0xc2e')]()){case _0x96b298('0x1d56'):break;case _0x96b298('0x5e1'):{const _0x34d4c7=_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')][_0x96b298('0x1497')](',');_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x234b')]=_0x34d4c7[0x0],_0x29e275['custom'][_0x96b298('0x175b')]=_0x34d4c7[0x1],_0x29e275['custom']['welcomemessage']=_0x34d4c7[_0x96b298('0x845')](0x2,_0x34d4c7[_0x96b298('0x2566')])[_0x96b298('0x185f')](',');}break;case _0x96b298('0x137a'):{const _0x3bf86f=_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')][_0x96b298('0x1497')](',');_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x27f2')]=_0x3bf86f[0x0],_0x29e275[_0x96b298('0x1d56')]['secretaccesskey']=_0x3bf86f[0x1],_0x29e275['custom']['lexregion']=_0x3bf86f[0x2],_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x4eb')]=_0x3bf86f[0x3],_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xf50')]=_0x3bf86f[_0x96b298('0x845')](0x4,_0x3bf86f[_0x96b298('0x2566')])['join'](',');}break;case _0x96b298('0x808'):{const _0x1a9a6b=_0x29e275[_0x96b298('0x1d56')]['appdata'][_0x96b298('0x1497')](',');_0x29e275[_0x96b298('0x1d56')]['times']=isNaN(_0x1a9a6b[0x0])?_0x1a9a6b[0x0]:parseInt(_0x1a9a6b[0x0],0xa),_0x29e275[_0x96b298('0x1d56')]['text']=_0x1a9a6b['slice'](0x1,_0x1a9a6b[_0x96b298('0x2566')])['join'](',');}break;case _0x96b298('0x15e2'):_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x16db')]=_0x29e275['custom']['appdata'];break;case'set':_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x1a8d')]=_0x29e275[_0x96b298('0x1d56')]['appdata'][_0x96b298('0x1497')]('=')[0x0],_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x49')]=_0x29e275[_0x96b298('0x1d56')]['appdata'][_0x96b298('0x1497')]('=')[0x1];break;case'agi':_0x29e275['custom'][_0x96b298('0x1bf6')]=_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')];break;default:{const _0x1d62db=_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')][_0x96b298('0x1497')](',');_0x29e275['custom'][_0x96b298('0x8a5')]=_0x283545()['isEmpty'](_0x1d62db[0x0])?_0x1d62db[0x0]:isNaN(_0x1d62db[0x0])?_0x1d62db[0x0]:parseInt(_0x1d62db[0x0],0xa),_0x29e275[_0x96b298('0x1d56')][_0x96b298('0xd6b')]=_0x283545()[_0x96b298('0x213d')](_0x1d62db[0x1])?_0x1d62db[0x1]:isNaN(_0x1d62db[0x1])?_0x1d62db[0x1]:parseInt(_0x1d62db[0x1],0xa);}break;}else{}_0x29e275['custom'][_0x96b298('0x1d7')]&&_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x1d7')]['toLowerCase']()===_0x96b298('0x1')&&_0x29e275[_0x96b298('0x1d56')]['appType'][_0x96b298('0xc2e')]()===_0x96b298('0x229c')&&(_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x1f71')]=_0x29e275['custom']['phone']?_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x1224')][_0x96b298('0x1497')]('$')[0x0]:undefined,_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x2081')]=_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x8de')]?_0x96b298('0x1834')+_0x29e275[_0x96b298('0x1d56')][_0x96b298('0x8de')]:undefined);_0x29e275[_0x96b298('0x5e7')]=_0x120b4d,_0x29e275['closeDialog']=_0x58b310;function _0x120b4d(){const _0x33a930=_0x96b298;_0x29e275[_0x33a930('0x25be')]=[];const _0x4f5782=[];_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x1d7')]&&_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x1d7')]['toLowerCase']()===_0x33a930('0x1')&&_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x167b')]===_0x33a930('0x25fb')&&(_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x1224')]=_0x1c9cee[_0x33a930('0x277c')]?(_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x1f71')]||'')+'${EXTEN:'+_0x1c9cee[_0x33a930('0x277c')]+'}':(_0x29e275[_0x33a930('0x1d56')]['prefix']||'')+_0x33a930('0x1275'),_0x1c9cee[_0x33a930('0x801')]!==_0x33a930('0x1dc')?_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x784')][_0x33a930('0x821')](_0x33a930('0x1609'))<0x0&&(_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x784')]+=_0x33a930('0x1609')):_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x784')]=_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x784')][_0x33a930('0x10a4')](_0x33a930('0x1609'),''));if(_0x29e275[_0x33a930('0x1d56')]['appType']&&_0x29e275['custom'][_0x33a930('0x167b')]==='custom'){}else switch((_0x29e275['custom']['app']||_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x167b')])['toLowerCase']()){case _0x33a930('0x3a6'):_0x29e275['custom'][_0x33a930('0xd6b')]=_0x29e275[_0x33a930('0x1d56')]['name']+'='+_0x29e275[_0x33a930('0x1d56')][_0x33a930('0x49')];break;case _0x33a930('0x1d56'):break;default:_0x4f5782[0x0]=_0x29e275[_0x33a930('0x1d56')]['app'],_0x4f5782[0x1]=_0x29e275[_0x33a930('0x1d56')][_0x33a930('0xd6b')],_0x29e275['custom']['appdata']=_0x4f5782['join'](',');}_0x58b310(_0x29e275['custom']);}function _0x58b310(_0x3c0cd1){const _0x4e256d=_0x96b298;_0x42d6ab[_0x4e256d('0x19d')](_0x3c0cd1);}}const _0x1ea8e8=_0x3b91b1;_0x3c67e1[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),'IndexFactory',_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3c67e1(_0x549fab,_0x28ce13,_0x2d0739,_0x1cbeb8,_0xc9f20c,_0x2aee44,_0x1243b7,_0x51184d,_0x48b9ca,_0x2959ae){const _0x4f044f=_0x34e79e,_0x5ab644=this;_0x5ab644[_0x4f044f('0x9cb')]=_0x48b9ca[_0x4f044f('0x24cc')](),_0x5ab644[_0x4f044f('0x25be')]=[],_0x5ab644['title']=_0x4f044f('0x2f9'),_0x5ab644[_0x4f044f('0x2630')]=angular['copy'](_0xc9f20c),_0x5ab644[_0x4f044f('0xec5')]=_0x2aee44,_0x5ab644[_0x4f044f('0x1f7c')]=![],_0x5ab644[_0x4f044f('0x2512')]=[_0x4f044f('0xc8f'),_0x4f044f('0x1d56'),_0x4f044f('0x4b2')],_0x5ab644[_0x4f044f('0xe28')]=_0x2959ae,_0x5ab644['daysOfWeek']=_0x1cbeb8[_0x4f044f('0xec1')](),_0x5ab644[_0x4f044f('0x323')]=_0x1cbeb8[_0x4f044f('0x1383')](),_0x5ab644[_0x4f044f('0xfed')]=_0x1cbeb8[_0x4f044f('0xc35')](),_0x5ab644['daysOfMonth']=_0x1cbeb8[_0x4f044f('0x1b79')]();if(!_0x5ab644[_0x4f044f('0x2630')])_0x5ab644[_0x4f044f('0x2630')]={'interval':_0x4f044f('0x2191')},_0x5ab644[_0x4f044f('0x1d7')]='always',_0x5ab644[_0x4f044f('0x14e4')]=_0x4f044f('0xbee'),_0x5ab644['newInterval']=!![];else{if(_0x5ab644[_0x4f044f('0x2630')]['interval']!=='*,*,*,*'){_0x5ab644[_0x4f044f('0x1d7')]='custom';const _0x21e3ce=_0x5ab644[_0x4f044f('0x2630')]['interval'][_0x4f044f('0x1497')](','),_0x263ca2=_0x21e3ce[0x0],_0x142471=_0x21e3ce[0x1],_0x5e8f32=_0x21e3ce[0x2],_0x42a2f3=_0x21e3ce[0x3];if(_0x263ca2!=='*'){const _0x3870c0=_0x263ca2[_0x4f044f('0x1497')]('-')[0x0],_0x324d22=_0x263ca2[_0x4f044f('0x1497')]('-')[0x1];let _0x2abc9b;_0x2abc9b=new Date(),_0x2abc9b[_0x4f044f('0x26f3')](Number(_0x3870c0[_0x4f044f('0x1497')](':')[0x0])),_0x2abc9b[_0x4f044f('0x18d')](Number(_0x3870c0[_0x4f044f('0x1497')](':')[0x1])),_0x5ab644[_0x4f044f('0x9c0')]=_0x2abc9b,_0x2abc9b=new Date(),_0x2abc9b[_0x4f044f('0x26f3')](Number(_0x324d22['split'](':')[0x0])),_0x2abc9b['setMinutes'](Number(_0x324d22[_0x4f044f('0x1497')](':')[0x1])),_0x5ab644[_0x4f044f('0x4a7')]=_0x2abc9b;}_0x142471!=='*'&&(_0x5ab644[_0x4f044f('0x240c')]=_0x142471[_0x4f044f('0x1497')]('-')[0x0],_0x5ab644['dayOfWeekTo']=_0x142471[_0x4f044f('0x1497')]('-')[0x1]),_0x5e8f32!=='*'&&(_0x5ab644[_0x4f044f('0x1d91')]=_0x5e8f32[_0x4f044f('0x1497')]('-')[0x0],_0x5ab644[_0x4f044f('0x883')]=_0x5e8f32['split']('-')[0x1]),_0x42a2f3!=='*'&&(_0x5ab644[_0x4f044f('0x1317')]=_0x42a2f3['split']('-')[0x0],_0x5ab644[_0x4f044f('0x3dc')]=_0x42a2f3[_0x4f044f('0x1497')]('-')[0x1]);}else _0x5ab644[_0x4f044f('0x1d7')]='always';}_0x549fab['params']['id']&&!_0x5ab644[_0x4f044f('0x2630')]['application']&&(_0x5ab644[_0x4f044f('0x2630')][_0x4f044f('0x20d0')]=_0x549fab[_0x4f044f('0x4b9')]['id']);_0x5ab644[_0x4f044f('0x2630')]['IntervalId']&&_0x5ab644['interval'][_0x4f044f('0x193')]&&(_0x5ab644[_0x4f044f('0x1d7')]=_0x4f044f('0x4b2'));_0x5ab644[_0x4f044f('0x267f')]=_0xed3dc,_0x5ab644[_0x4f044f('0x2791')]=_0x371eaa,_0x5ab644[_0x4f044f('0xca7')]=_0x252ba2;_0x5ab644[_0x4f044f('0x2630')]['application']&&(_0x48b9ca[_0x4f044f('0x1516')](_0x4f044f('0xe23'))?_0x51184d['interval'][_0x4f044f('0x1335')]({'fields':_0x4f044f('0x27dc'),'IntervalId':_0x4f044f('0x954'),'nolimit':!![]})[_0x4f044f('0x1714')][_0x4f044f('0x2788')](function(_0x4782f7){const _0x260630=_0x4f044f;_0x5ab644[_0x260630('0xec5')]=_0x4782f7[_0x260630('0x25df')]||[];})[_0x4f044f('0x1cb5')](function(_0x5cfafe){const _0x465070=_0x4f044f;_0x1243b7[_0x465070('0x5e8')]({'title':_0x5cfafe[_0x465070('0x1b51')]?_0x465070('0x15d1')+_0x5cfafe[_0x465070('0x1b51')]+_0x465070('0x1b0b')+_0x5cfafe[_0x465070('0x22ce')]:_0x465070('0x2151'),'msg':_0x5cfafe[_0x465070('0x11fc')]?JSON['stringify'](_0x5cfafe[_0x465070('0x11fc')]):_0x5cfafe[_0x465070('0x17df')]()});}):_0x51184d[_0x4f044f('0x2630')][_0x4f044f('0x1335')]({'fields':_0x4f044f('0x27dc'),'IntervalId':_0x4f044f('0x954'),'nolimit':!![]})[_0x4f044f('0x1714')][_0x4f044f('0x2788')](function(_0x42d189){const _0x569e7d=_0x4f044f;_0x5ab644[_0x569e7d('0xec5')]=_0x42d189[_0x569e7d('0x25df')]||[];})[_0x4f044f('0x2788')](function(){const _0x303b81=_0x4f044f;return _0x51184d[_0x303b81('0xec9')][_0x303b81('0x1335')]({'userProfileId':_0x5ab644[_0x303b81('0x9cb')][_0x303b81('0x237f')],'sectionId':0x3ec})[_0x303b81('0x1714')];})[_0x4f044f('0x2788')](function(_0x313bbf){const _0x5cadd7=_0x4f044f,_0x10263d=_0x313bbf&&_0x313bbf[_0x5cadd7('0x25df')]?_0x313bbf['rows'][0x0]:null;if(!_0x10263d)_0x5ab644['intervals']=[];else{if(!_0x10263d['autoAssociation'])return _0x51184d['userProfileResource']['get']({'sectionId':_0x10263d['id']})[_0x5cadd7('0x1714')][_0x5cadd7('0x2788')](function(_0x1e0299){const _0x2fb7b5=_0x5cadd7,_0x390300=_0x1e0299&&_0x1e0299[_0x2fb7b5('0x25df')]?_0x1e0299[_0x2fb7b5('0x25df')]:[],_0x4617d8=[];let _0x55ec9a=null;_0x5ab644[_0x2fb7b5('0x2630')]&&(_0x55ec9a=_0x283545()[_0x2fb7b5('0x20e8')](_0x5ab644[_0x2fb7b5('0xec5')],{'name':_0x5ab644[_0x2fb7b5('0x2630')]['IntervalId']})),_0x55ec9a&&!_0x283545()[_0x2fb7b5('0xc5d')](_0x390300,['resourceId',_0x55ec9a['id']])&&_0x5ab644[_0x2fb7b5('0xec5')][_0x2fb7b5('0x1534')](function(_0x659c01){const _0xdb12be=_0x2fb7b5;_0x659c01['id']===_0x55ec9a['id']&&(_0x659c01[_0xdb12be('0x3bf')]=![],_0x4617d8[_0xdb12be('0x13e3')](_0x659c01));}),_0x5ab644[_0x2fb7b5('0xec5')]=_0x4617d8;});}})['catch'](function(_0x2c97b7){const _0x2c8f0e=_0x4f044f;_0x1243b7['error']({'title':_0x2c97b7[_0x2c8f0e('0x1b51')]?_0x2c8f0e('0x15d1')+_0x2c97b7[_0x2c8f0e('0x1b51')]+_0x2c8f0e('0x1b0b')+_0x2c97b7[_0x2c8f0e('0x22ce')]:_0x2c8f0e('0x2151'),'msg':_0x2c97b7[_0x2c8f0e('0x11fc')]?JSON['stringify'](_0x2c97b7[_0x2c8f0e('0x11fc')]):_0x2c97b7['toString']()});}));function _0x509958(){const _0x27c8af=_0x4f044f;switch(_0x5ab644[_0x27c8af('0x1d7')]){case _0x27c8af('0xc8f'):case _0x27c8af('0x4b2'):return _0x27c8af('0x2191');case _0x27c8af('0x1d56'):{const _0x910aea=[];if(_0x5ab644[_0x27c8af('0x9c0')]!=='*'&&_0x5ab644[_0x27c8af('0x9c0')]&&_0x5ab644[_0x27c8af('0x4a7')]){const _0x92f137=(_0x5ab644[_0x27c8af('0x9c0')][_0x27c8af('0x130a')]()<0xa?'0':'')+_0x5ab644['timeRangeFrom']['getHours']()+':'+((_0x5ab644[_0x27c8af('0x9c0')][_0x27c8af('0x2649')]()<0xa?'0':'')+_0x5ab644[_0x27c8af('0x9c0')]['getMinutes']()),_0xb280df=(_0x5ab644[_0x27c8af('0x4a7')][_0x27c8af('0x130a')]()<0xa?'0':'')+_0x5ab644[_0x27c8af('0x4a7')][_0x27c8af('0x130a')]()+':'+((_0x5ab644[_0x27c8af('0x4a7')]['getMinutes']()<0xa?'0':'')+_0x5ab644['timeRangeTo'][_0x27c8af('0x2649')]());_0x910aea['push'](_0x92f137+'-'+_0xb280df);}else _0x910aea[_0x27c8af('0x13e3')]('*');return _0x5ab644[_0x27c8af('0x240c')]?_0x5ab644[_0x27c8af('0x6c2')]?_0x910aea['push'](_0x5ab644[_0x27c8af('0x240c')]+'-'+_0x5ab644['dayOfWeekTo']):_0x910aea['push'](_0x5ab644[_0x27c8af('0x240c')]):_0x910aea[_0x27c8af('0x13e3')]('*'),_0x5ab644[_0x27c8af('0x1d91')]?_0x5ab644[_0x27c8af('0x883')]?_0x910aea[_0x27c8af('0x13e3')](_0x5ab644[_0x27c8af('0x1d91')]+'-'+_0x5ab644[_0x27c8af('0x883')]):_0x910aea[_0x27c8af('0x13e3')](_0x5ab644[_0x27c8af('0x1d91')]):_0x910aea['push']('*'),_0x5ab644[_0x27c8af('0x1317')]?_0x5ab644[_0x27c8af('0x3dc')]?_0x910aea[_0x27c8af('0x13e3')](_0x5ab644[_0x27c8af('0x1317')]+'-'+_0x5ab644[_0x27c8af('0x3dc')]):_0x910aea[_0x27c8af('0x13e3')](_0x5ab644[_0x27c8af('0x1317')]):_0x910aea[_0x27c8af('0x13e3')]('*'),_0x910aea[_0x27c8af('0x185f')]();}}}function _0xed3dc(){const _0x43fa51=_0x4f044f;_0x5ab644['errors']=[],_0x5ab644['interval'][_0x43fa51('0x2630')]=_0x509958(),_0x51184d[_0x43fa51('0x2630')]['save'](_0x5ab644[_0x43fa51('0x2630')])['$promise'][_0x43fa51('0x2788')](function(_0x19bc3c){const _0x55887d=_0x43fa51;_0x5ab644[_0x55887d('0xec5')][_0x55887d('0x13e3')](_0x19bc3c),_0x1243b7[_0x55887d('0x173b')]({'title':_0x55887d('0x1146'),'msg':_0x5ab644[_0x55887d('0x2630')][_0x55887d('0x1a8d')]?_0x5ab644[_0x55887d('0x2630')][_0x55887d('0x1a8d')]+_0x55887d('0x1e4a'):''}),_0x252ba2();})[_0x43fa51('0x1cb5')](function(_0xbc2dbb){const _0x5d6453=_0x43fa51;console[_0x5d6453('0x5e8')](_0xbc2dbb),_0x5ab644[_0x5d6453('0x25be')]=_0xbc2dbb[_0x5d6453('0x11fc')]['errors']||[{'message':_0xbc2dbb['toString'](),'type':'api.interval.save'}];});}function _0x371eaa(){const _0x58370e=_0x4f044f;_0x5ab644[_0x58370e('0x25be')]=[],_0x5ab644[_0x58370e('0x2630')][_0x58370e('0x2630')]=_0x509958(),_0x5ab644['interval'][_0x58370e('0x193')]?(_0x5ab644[_0x58370e('0x1d7')]!==_0x58370e('0x4b2')&&(_0x5ab644['interval'][_0x58370e('0x20d0')]=null),_0x252ba2(_0x5ab644['interval'])):_0x51184d[_0x58370e('0x2630')]['update']({'id':_0x5ab644[_0x58370e('0x2630')]['id']},_0x5ab644[_0x58370e('0x2630')])[_0x58370e('0x1714')][_0x58370e('0x2788')](function(_0x4891bd){const _0x106906=_0x58370e,_0x2e1770=_0x283545()[_0x106906('0x20e8')](_0x5ab644[_0x106906('0xec5')],{'id':_0x4891bd['id']});_0x2e1770&&_0x283545()['merge'](_0x2e1770,_0x4891bd),_0x1243b7['success']({'title':_0x106906('0xd34'),'msg':_0x106906('0x14f1')}),_0x252ba2();})['catch'](function(_0x29abf4){const _0x48fb0a=_0x58370e;console[_0x48fb0a('0x5e8')](_0x29abf4),_0x5ab644[_0x48fb0a('0x25be')]=_0x29abf4['data'][_0x48fb0a('0x25be')]||[{'message':_0x29abf4[_0x48fb0a('0x17df')](),'type':'api.interval.update'}];});}function _0x252ba2(_0x83a224){const _0x5e5faa=_0x4f044f;_0x28ce13[_0x5e5faa('0x19d')](_0x83a224);}}const _0x137170=_0x3c67e1;_0x3967d2[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x11af'),_0x34e79e('0x1e98'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3967d2(_0x55a661,_0x5740c8,_0x2ea1be,_0x23e92e,_0x12da8b,_0x11bc2e,_0x208418,_0x4b7835){const _0x51ea8f=_0x34e79e,_0x5f396e=this;_0x5f396e[_0x51ea8f('0x9cb')]=_0x208418['getCurrentUser'](),_0x5f396e[_0x51ea8f('0x25be')]=[],_0x5f396e[_0x51ea8f('0x14e4')]=_0x51ea8f('0xc6c')+(_0x23e92e[_0x51ea8f('0x167b')]||_0x23e92e[_0x51ea8f('0x8a5')])['toUpperCase'](),_0x5f396e[_0x51ea8f('0x229c')]=angular['copy'](_0x23e92e),_0x5f396e[_0x51ea8f('0xe28')]=_0x4b7835,_0x5f396e[_0x51ea8f('0x1193')]={};if(_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')])switch(_0x5f396e['outbounddial'][_0x51ea8f('0x167b')]?_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x167b')]['toLowerCase']():_0x5f396e['outbounddial'][_0x51ea8f('0x8a5')][_0x51ea8f('0xc2e')]()){case _0x51ea8f('0x1d56'):break;case _0x51ea8f('0x5e1'):{const _0x140a42=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')][_0x51ea8f('0x1497')](',');_0x5f396e['outbounddial'][_0x51ea8f('0x234b')]=_0x140a42[0x0],_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x175b')]=_0x140a42[0x1],_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xf50')]=_0x140a42[_0x51ea8f('0x845')](0x2,_0x140a42['length'])['join'](',');}break;case _0x51ea8f('0x137a'):{const _0x334090=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')][_0x51ea8f('0x1497')](',');_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x27f2')]=_0x334090[0x0],_0x5f396e[_0x51ea8f('0x229c')]['secretaccesskey']=_0x334090[0x1],_0x5f396e['outbounddial'][_0x51ea8f('0xb70')]=_0x334090[0x2],_0x5f396e[_0x51ea8f('0x229c')]['botname']=_0x334090[0x3],_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xf50')]=_0x334090[_0x51ea8f('0x845')](0x4,_0x334090[_0x51ea8f('0x2566')])[_0x51ea8f('0x185f')](',');}break;case _0x51ea8f('0x808'):{const _0x56a744=_0x5f396e['outbounddial']['appdata'][_0x51ea8f('0x1497')](',');_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x5fd')]=isNaN(_0x56a744[0x0])?_0x56a744[0x0]:parseInt(_0x56a744[0x0],0xa),_0x5f396e[_0x51ea8f('0x229c')]['text']=_0x56a744[_0x51ea8f('0x845')](0x1,_0x56a744[_0x51ea8f('0x2566')])[_0x51ea8f('0x185f')](',');}break;case _0x51ea8f('0x15e2'):_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x16db')]=_0x5f396e['outbounddial'][_0x51ea8f('0xd6b')];break;case _0x51ea8f('0x3a6'):_0x5f396e['outbounddial']['name']=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')][_0x51ea8f('0x1497')]('=')[0x0],_0x5f396e['outbounddial'][_0x51ea8f('0x49')]=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')][_0x51ea8f('0x1497')]('=')[0x1];break;case _0x51ea8f('0x2631'):_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1bf6')]=_0x5f396e['outbounddial'][_0x51ea8f('0xd6b')];break;default:{const _0xa145ee=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0xd6b')]['split'](',');_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x2549')]=_0xa145ee[0x0]['split']('/')[0x1],_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1224')]=_0xa145ee[0x0][_0x51ea8f('0x1497')]('/')[0x2],_0x5f396e[_0x51ea8f('0x229c')]['timeout']=_0x283545()[_0x51ea8f('0x213d')](_0xa145ee[0x1])?_0xa145ee[0x1]:isNaN(_0xa145ee[0x1])?_0xa145ee[0x1]:parseInt(_0xa145ee[0x1],0xa),_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x784')]=_0x283545()['isEmpty'](_0xa145ee[0x2])?_0xa145ee[0x2]:isNaN(_0xa145ee[0x2])?_0xa145ee[0x2]:parseInt(_0xa145ee[0x2],0xa),_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1672')]=_0x283545()[_0x51ea8f('0x213d')](_0xa145ee[0x3])?_0xa145ee[0x3]:isNaN(_0xa145ee[0x3])?_0xa145ee[0x3]:parseInt(_0xa145ee[0x3],0xa);}break;}else{}_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1d7')]&&_0x5f396e[_0x51ea8f('0x229c')]['type']['toLowerCase']()===_0x51ea8f('0x1')&&_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x167b')][_0x51ea8f('0xc2e')]()===_0x51ea8f('0x229c')&&(_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1f71')]=_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1224')]?_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x1224')][_0x51ea8f('0x1497')]('$')[0x0]:undefined,_0x5f396e[_0x51ea8f('0x229c')][_0x51ea8f('0x2081')]=_0x5f396e[_0x51ea8f('0x229c')]['callerID']?_0x51ea8f('0x1834')+_0x5f396e['outbounddial']['callerID']:undefined);_0x5f396e[_0x51ea8f('0x5e7')]=_0x29f0ba,_0x5f396e[_0x51ea8f('0xca7')]=_0x247529,_0x208418[_0x51ea8f('0x1516')](_0x51ea8f('0xe23'))?_0x11bc2e[_0x51ea8f('0x2549')][_0x51ea8f('0x1335')]({'fields':_0x51ea8f('0x1338'),'sort':_0x51ea8f('0x1a8d'),'nolimit':'true'})[_0x51ea8f('0x1714')][_0x51ea8f('0x2788')](function(_0x5c03b9){const _0x323701=_0x51ea8f;_0x5f396e[_0x323701('0x20f2')]=_0x5c03b9['rows']||[];})[_0x51ea8f('0x1cb5')](function(_0x592273){const _0x5407fb=_0x51ea8f;_0x2ea1be[_0x5407fb('0x5e8')]({'title':_0x592273['status']?'API:'+_0x592273['status']+_0x5407fb('0x1b0b')+_0x592273[_0x5407fb('0x22ce')]:_0x5407fb('0x119d'),'msg':_0x592273['data']?JSON['stringify'](_0x592273[_0x5407fb('0x11fc')]):_0x592273[_0x5407fb('0x17df')]()});}):_0x11bc2e[_0x51ea8f('0x2549')][_0x51ea8f('0x1335')]({'fields':_0x51ea8f('0x1338'),'sort':_0x51ea8f('0x1a8d'),'nolimit':_0x51ea8f('0x1001')})['$promise']['then'](function(_0x3ad81e){const _0x4f9cfc=_0x51ea8f;_0x5f396e[_0x4f9cfc('0x20f2')]=_0x3ad81e[_0x4f9cfc('0x25df')]||[];})[_0x51ea8f('0x2788')](function(){const _0x2b7d06=_0x51ea8f;return _0x11bc2e['userProfileSection'][_0x2b7d06('0x1335')]({'userProfileId':_0x5f396e['currentUser'][_0x2b7d06('0x237f')],'sectionId':0x3f3})[_0x2b7d06('0x1714')];})['then'](function(_0x1e2961){const _0x1791d5=_0x51ea8f,_0x5254a5=_0x1e2961&&_0x1e2961[_0x1791d5('0x25df')]?_0x1e2961[_0x1791d5('0x25df')][0x0]:null;if(!_0x5254a5){const _0x1f54fa=[];let _0x29eca7=null;_0x5f396e[_0x1791d5('0x229c')]&&(_0x29eca7=_0x283545()['find'](_0x5f396e[_0x1791d5('0x20f2')],{'name':_0x5f396e[_0x1791d5('0x229c')]['trunk']}));for(let _0x490581=0x0;_0x490581<_0x5f396e[_0x1791d5('0x20f2')][_0x1791d5('0x2566')];_0x490581++){_0x29eca7&&_0x5f396e[_0x1791d5('0x20f2')][_0x490581]['id']===_0x29eca7['id']&&(_0x5f396e[_0x1791d5('0x20f2')][_0x490581][_0x1791d5('0x3bf')]=![],_0x1f54fa[_0x1791d5('0x13e3')](_0x5f396e[_0x1791d5('0x20f2')][_0x490581]));}_0x5f396e[_0x1791d5('0x20f2')]=_0x1f54fa;}else{if(!_0x5254a5[_0x1791d5('0x1c0a')])return _0x11bc2e['userProfileResource']['get']({'sectionId':_0x5254a5['id']})[_0x1791d5('0x1714')][_0x1791d5('0x2788')](function(_0x49c020){const _0x588ec2=_0x1791d5,_0x442186=_0x283545()[_0x588ec2('0x155d')](_0x49c020[_0x588ec2('0x25df')],function(_0x3dc839){const _0x433637=_0x588ec2;return _0x283545()[_0x433637('0x20e8')](_0x5f396e[_0x433637('0x20f2')],{'id':_0x3dc839[_0x433637('0x2707')]});});let _0x2fd95e=null;_0x5f396e[_0x588ec2('0x229c')]&&(_0x2fd95e=_0x283545()[_0x588ec2('0x20e8')](_0x5f396e[_0x588ec2('0x20f2')],{'name':_0x5f396e[_0x588ec2('0x229c')][_0x588ec2('0x2549')]}));if(_0x2fd95e&&!_0x283545()[_0x588ec2('0xc5d')](_0x442186,['id',_0x2fd95e['id']])){const _0x579451=_0x283545()['find'](_0x5f396e[_0x588ec2('0x20f2')],{'id':_0x2fd95e['id']});_0x579451[_0x588ec2('0x3bf')]=![],_0x442186[_0x588ec2('0x13e3')](_0x579451);}_0x5f396e[_0x588ec2('0x20f2')]=_0x442186;});}})['catch'](function(_0x18997a){const _0x52ea20=_0x51ea8f;_0x2ea1be[_0x52ea20('0x5e8')]({'title':_0x18997a[_0x52ea20('0x1b51')]?'API:'+_0x18997a[_0x52ea20('0x1b51')]+'\x20-\x20'+_0x18997a[_0x52ea20('0x22ce')]:'SYSTEM:GETtrunks','msg':_0x18997a[_0x52ea20('0x11fc')]?JSON[_0x52ea20('0x1be0')](_0x18997a[_0x52ea20('0x11fc')]):_0x18997a[_0x52ea20('0x17df')]()});}),_0x208418[_0x51ea8f('0x1516')](_0x51ea8f('0xe23'))?_0x11bc2e[_0x51ea8f('0x1764')]['get']({'fields':_0x51ea8f('0x1338'),'sort':_0x51ea8f('0x1a8d'),'nolimit':_0x51ea8f('0x1001')})[_0x51ea8f('0x1714')][_0x51ea8f('0x2788')](function(_0x3fffec){const _0x3cc92a=_0x51ea8f;_0x5f396e[_0x3cc92a('0xe45')]=_0x3fffec[_0x3cc92a('0x25df')]||[];})[_0x51ea8f('0x1cb5')](function(_0x29d38d){const _0x286125=_0x51ea8f;_0x2ea1be[_0x286125('0x5e8')]({'title':_0x29d38d[_0x286125('0x1b51')]?_0x286125('0x15d1')+_0x29d38d['status']+_0x286125('0x1b0b')+_0x29d38d[_0x286125('0x22ce')]:'SYSTEM:GET_TAGS','msg':_0x29d38d[_0x286125('0x11fc')]?JSON[_0x286125('0x1be0')](_0x29d38d[_0x286125('0x11fc')]):_0x29d38d[_0x286125('0x17df')]()});}):_0x11bc2e[_0x51ea8f('0x1764')][_0x51ea8f('0x1335')]({'fields':_0x51ea8f('0x1338'),'sort':'name','nolimit':_0x51ea8f('0x1001')})[_0x51ea8f('0x1714')][_0x51ea8f('0x2788')](function(_0x591bb3){const _0x131536=_0x51ea8f;_0x5f396e[_0x131536('0xe45')]=_0x591bb3[_0x131536('0x25df')]||[];})[_0x51ea8f('0x2788')](function(){const _0x313d98=_0x51ea8f;return _0x11bc2e['userProfileSection'][_0x313d98('0x1335')]({'userProfileId':_0x5f396e[_0x313d98('0x9cb')][_0x313d98('0x237f')],'sectionId':0x3f0})['$promise'];})['then'](function(_0x596928){const _0x357e21=_0x51ea8f,_0x2a7295=_0x596928&&_0x596928[_0x357e21('0x25df')]?_0x596928[_0x357e21('0x25df')][0x0]:null;if(!_0x2a7295){const _0x4323ce=[];let _0x186b11=null;_0x5f396e[_0x357e21('0x229c')]&&(_0x186b11=_0x283545()[_0x357e21('0x20e8')](_0x5f396e[_0x357e21('0xe45')],{'name':_0x5f396e[_0x357e21('0x229c')]['tag']}));for(let _0x5eef69=0x0;_0x5eef69<_0x5f396e[_0x357e21('0xe45')]['length'];_0x5eef69++){_0x186b11&&_0x5f396e[_0x357e21('0xe45')][_0x5eef69]['id']===_0x186b11['id']&&(_0x5f396e['tags'][_0x5eef69]['canSelect']=![],_0x4323ce[_0x357e21('0x13e3')](_0x5f396e['tags'][_0x5eef69]));}_0x5f396e['tags']=_0x4323ce;}else{if(!_0x2a7295[_0x357e21('0x1c0a')])return _0x11bc2e['userProfileResource']['get']({'sectionId':_0x2a7295['id']})[_0x357e21('0x1714')][_0x357e21('0x2788')](function(_0x5ddb64){const _0x385660=_0x357e21,_0x22bd31=_0x283545()[_0x385660('0x155d')](_0x5ddb64[_0x385660('0x25df')],function(_0x5c8f20){const _0x62b45=_0x385660;return _0x283545()[_0x62b45('0x20e8')](_0x5f396e['tags'],{'id':_0x5c8f20[_0x62b45('0x2707')]});});let _0x223aea=null;_0x5f396e[_0x385660('0x229c')]&&(_0x223aea=_0x283545()[_0x385660('0x20e8')](_0x5f396e[_0x385660('0xe45')],{'name':_0x5f396e[_0x385660('0x229c')][_0x385660('0x1764')]}));if(_0x223aea&&!_0x283545()[_0x385660('0xc5d')](_0x22bd31,['id',_0x223aea['id']])){const _0x1d1086=_0x283545()[_0x385660('0x20e8')](_0x5f396e[_0x385660('0xe45')],{'id':_0x223aea['id']});_0x1d1086[_0x385660('0x3bf')]=![],_0x22bd31['push'](_0x1d1086);}_0x5f396e[_0x385660('0xe45')]=_0x22bd31;});}})[_0x51ea8f('0x1cb5')](function(_0xcfe4e5){const _0x1ad891=_0x51ea8f;_0x2ea1be[_0x1ad891('0x5e8')]({'title':_0xcfe4e5[_0x1ad891('0x1b51')]?_0x1ad891('0x15d1')+_0xcfe4e5[_0x1ad891('0x1b51')]+'\x20-\x20'+_0xcfe4e5[_0x1ad891('0x22ce')]:_0x1ad891('0x1470'),'msg':_0xcfe4e5[_0x1ad891('0x11fc')]?JSON['stringify'](_0xcfe4e5[_0x1ad891('0x11fc')]):_0xcfe4e5[_0x1ad891('0x17df')]()});});function _0x29f0ba(){const _0x293491=_0x51ea8f;_0x5f396e['errors']=[];const _0xb2c30=[];_0x5f396e['outbounddial'][_0x293491('0x1d7')]&&_0x5f396e['outbounddial'][_0x293491('0x1d7')][_0x293491('0xc2e')]()==='outbound'&&_0x5f396e['outbounddial'][_0x293491('0x167b')]===_0x293491('0x25fb')&&(_0x5f396e[_0x293491('0x229c')]['phone']=_0x12da8b[_0x293491('0x277c')]?(_0x5f396e[_0x293491('0x229c')][_0x293491('0x1f71')]||'')+_0x293491('0x124d')+_0x12da8b['cutdigits']+'}':(_0x5f396e[_0x293491('0x229c')]['prefix']||'')+_0x293491('0x1275'),_0x12da8b[_0x293491('0x801')]!==_0x293491('0x1dc')?_0x5f396e[_0x293491('0x229c')][_0x293491('0x784')][_0x293491('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5f396e['outbounddial']['options']+=_0x293491('0x1609')):_0x5f396e[_0x293491('0x229c')][_0x293491('0x784')]=_0x5f396e[_0x293491('0x229c')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x5f396e['outbounddial'][_0x293491('0x167b')]&&_0x5f396e[_0x293491('0x229c')][_0x293491('0x167b')]===_0x293491('0x1d56')){}else switch((_0x5f396e[_0x293491('0x229c')]['app']||_0x5f396e[_0x293491('0x229c')][_0x293491('0x167b')])[_0x293491('0xc2e')]()){case _0x293491('0x3a6'):_0x5f396e[_0x293491('0x229c')][_0x293491('0xd6b')]=_0x5f396e[_0x293491('0x229c')][_0x293491('0x1a8d')]+'='+_0x5f396e[_0x293491('0x229c')]['value'];break;case _0x293491('0x1d56'):break;default:_0xb2c30[0x0]=[_0x293491('0x2756'),_0x5f396e[_0x293491('0x229c')][_0x293491('0x2549')],_0x5f396e[_0x293491('0x229c')]['phone']]['join']('/'),_0xb2c30[0x1]=_0x5f396e[_0x293491('0x229c')][_0x293491('0x24e4')],_0xb2c30[0x2]=_0x5f396e[_0x293491('0x229c')][_0x293491('0x784')],_0xb2c30[0x3]=_0x5f396e[_0x293491('0x229c')]['url'],_0x5f396e[_0x293491('0x229c')]['appdata']=_0xb2c30['join'](',');}_0x247529(_0x5f396e[_0x293491('0x229c')]);}function _0x247529(_0x49bb2f){const _0x5f4cc5=_0x51ea8f;_0x55a661[_0x5f4cc5('0x19d')](_0x49bb2f);}}const _0x1ed135=_0x3967d2;_0x3159b2[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document','$translate',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x1e98'),_0x34e79e('0xec9')];function _0x3159b2(_0x18863f,_0x162fbb,_0x3d5b6c,_0x3a88ce,_0x1a0922,_0x4bc2ea,_0x2044df,_0x4b71d3,_0x2a2bb5,_0x156005,_0x588d96,_0x32c893){const _0x431d8e=_0x34e79e,_0x5cc0d5=this;_0x5cc0d5[_0x431d8e('0x9cb')]=_0x156005[_0x431d8e('0x24cc')](),_0x5cc0d5['license']=_0x4bc2ea,_0x5cc0d5['setting']=_0x2044df,_0x5cc0d5[_0x431d8e('0x18ad')]=_0x5cc0d5[_0x431d8e('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5cc0d5['location']=_0x162fbb['protocol']()+_0x431d8e('0x726')+_0x162fbb[_0x431d8e('0x1c6a')](),_0x5cc0d5['outboundroute']=_0x588d96||_0x18863f['params']['outboundroute']||{},_0x5cc0d5['userProfileSection']=_0x32c893&&_0x32c893[_0x431d8e('0x338')]==0x1?_0x32c893[_0x431d8e('0x25df')][0x0]:null,_0x5cc0d5['crudPermissions']=_0x156005['parseCrudPermissions'](_0x5cc0d5[_0x431d8e('0xec9')]?_0x5cc0d5[_0x431d8e('0xec9')]['crudPermissions']:null),_0x5cc0d5['hasModulePermissions']={},_0x5cc0d5[_0x431d8e('0xcb3')]=_0x18863f[_0x431d8e('0x4b9')][_0x431d8e('0x24f6')]||0x0,_0x5cc0d5[_0x431d8e('0x204f')]=_0x2a2bb5[_0x431d8e('0x2276')],_0x5cc0d5['gotoOutboundRoutes']=_0x575385,_0x5cc0d5[_0x431d8e('0xb6a')]=_0x2e6d84,_0x156005['hasRole'](_0x431d8e('0xe23'))?_0x4b71d3[_0x431d8e('0x15cc')][_0x431d8e('0x1335')]({'fields':'id,name','sort':_0x431d8e('0x1a8d'),'nolimit':_0x431d8e('0x1001')})['$promise']['then'](function(_0xba044){const _0x15a3e7=_0x431d8e;_0x5cc0d5[_0x15a3e7('0xf3e')]=_0xba044['rows']||[];})[_0x431d8e('0x1cb5')](function(_0x4b7b27){const _0xb84c67=_0x431d8e;_0x2a2bb5[_0xb84c67('0x5e8')]({'title':_0x4b7b27['status']?_0xb84c67('0x15d1')+_0x4b7b27[_0xb84c67('0x1b51')]+_0xb84c67('0x1b0b')+_0x4b7b27[_0xb84c67('0x22ce')]:_0xb84c67('0x15f7'),'msg':_0x4b7b27[_0xb84c67('0x11fc')]?JSON[_0xb84c67('0x1be0')](_0x4b7b27[_0xb84c67('0x11fc')]):_0x4b7b27[_0xb84c67('0x17df')]()});}):_0x4b71d3[_0x431d8e('0x15cc')][_0x431d8e('0x1335')]({'fields':'id,name','sort':_0x431d8e('0x1a8d'),'nolimit':_0x431d8e('0x1001')})[_0x431d8e('0x1714')]['then'](function(_0x1cb20e){const _0x26a205=_0x431d8e;_0x5cc0d5['contexts']=_0x1cb20e[_0x26a205('0x25df')]||[];})[_0x431d8e('0x2788')](function(){const _0xd5e7a7=_0x431d8e;return _0x4b71d3[_0xd5e7a7('0xec9')][_0xd5e7a7('0x1335')]({'userProfileId':_0x5cc0d5[_0xd5e7a7('0x9cb')][_0xd5e7a7('0x237f')],'sectionId':0x195})[_0xd5e7a7('0x1714')];})[_0x431d8e('0x2788')](function(_0x2b3312){const _0x3d465d=_0x431d8e,_0x451849=_0x2b3312&&_0x2b3312['rows']?_0x2b3312[_0x3d465d('0x25df')][0x0]:null;if(!_0x451849)return _0x4b71d3[_0x3d465d('0x15cc')][_0x3d465d('0x1335')]({'fields':'id,name','sort':'name','nolimit':_0x3d465d('0x1001'),'defaultEntry':0x1})[_0x3d465d('0x1714')]['then'](function(_0x3201f3){const _0x10cf3b=_0x3d465d;_0x5cc0d5[_0x10cf3b('0xf3e')]=_0x3201f3['rows']||[];});else{if(!_0x451849['autoAssociation'])return _0x4b71d3[_0x3d465d('0x1050')][_0x3d465d('0x1335')]({'sectionId':_0x451849['id']})['$promise'][_0x3d465d('0x2788')](function(_0x8542e9){const _0x4557f3=_0x3d465d,_0x3fe4e5=_0x283545()[_0x4557f3('0x155d')](_0x8542e9['rows'],function(_0x7a4fd2){const _0x1bf6c6=_0x4557f3;return _0x283545()[_0x1bf6c6('0x20e8')](_0x5cc0d5[_0x1bf6c6('0xf3e')],{'id':_0x7a4fd2[_0x1bf6c6('0x2707')]});});let _0x5d19b7=null;_0x5cc0d5['outboundroute']&&(_0x5d19b7=_0x283545()[_0x4557f3('0x20e8')](_0x5cc0d5['contexts'],{'name':_0x5cc0d5[_0x4557f3('0x1e98')][_0x4557f3('0x1f3b')]}));if(_0x5d19b7&&!_0x283545()['some'](_0x3fe4e5,['id',_0x5d19b7['id']])){const _0x61361f=_0x283545()[_0x4557f3('0x20e8')](_0x5cc0d5[_0x4557f3('0xf3e')],{'id':_0x5d19b7['id']});_0x61361f[_0x4557f3('0x3bf')]=![],_0x3fe4e5['push'](_0x61361f);}_0x5cc0d5['contexts']=_0x3fe4e5;});}})['catch'](function(_0xc0a95d){const _0x1d222b=_0x431d8e;_0x2a2bb5[_0x1d222b('0x5e8')]({'title':_0xc0a95d[_0x1d222b('0x1b51')]?'API:'+_0xc0a95d[_0x1d222b('0x1b51')]+'\x20-\x20'+_0xc0a95d[_0x1d222b('0x22ce')]:_0x1d222b('0x265a'),'msg':_0xc0a95d[_0x1d222b('0x11fc')]?JSON[_0x1d222b('0x1be0')](_0xc0a95d['data']):_0xc0a95d[_0x1d222b('0x17df')]()});});function _0x575385(){const _0x100251=_0x431d8e;_0x18863f['go'](_0x100251('0xe27'),{},{'reload':'app.voice.outboundroutes'});}function _0x2e6d84(){const _0x4ff864=_0x431d8e;_0x4b71d3[_0x4ff864('0x2636')]['update']({'id':_0x5cc0d5[_0x4ff864('0x1e98')]['id']},_0x5cc0d5[_0x4ff864('0x1e98')])[_0x4ff864('0x1714')][_0x4ff864('0x2788')](function(){const _0x389050=_0x4ff864;_0x2a2bb5[_0x389050('0x173b')]({'title':'OutboundRoute\x20updated!','msg':_0x5cc0d5[_0x389050('0x1e98')]['name']?_0x5cc0d5[_0x389050('0x1e98')]['name']+'\x20has\x20been\x20updated!':''});})[_0x4ff864('0x1cb5')](function(_0x129b2d){const _0x6ac7cb=_0x4ff864;_0x2a2bb5[_0x6ac7cb('0x5e8')]({'title':_0x129b2d[_0x6ac7cb('0x1b51')]?_0x6ac7cb('0x15d1')+_0x129b2d['status']+_0x6ac7cb('0x1b0b')+_0x129b2d['statusText']:_0x6ac7cb('0x2078'),'msg':_0x129b2d['data']?JSON['stringify'](_0x129b2d[_0x6ac7cb('0x11fc')]):_0x129b2d[_0x6ac7cb('0x17df')]()});});}}const _0x3c9551=_0x3159b2,_0x1d8874=_0x18dd13['p']+_0x34e79e('0x15cf');_0x232f2d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),'outboundroutes',_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x232f2d(_0x1292ca,_0x570832,_0x3ef540,_0x90a622,_0x26c4aa,_0x1f3793,_0x5f136e,_0x28eef8,_0x71c115,_0x100e94,_0x4db17c,_0x5c11f9,_0x1550e8,_0x4c65d9,_0x1103dd,_0x5cc318,_0x2bc6f8){const _0x4791af=_0x34e79e,_0x3cace6=this;_0x3cace6[_0x4791af('0x130d')]=_0x5cc318,_0x3cace6['setting']=_0x2bc6f8,_0x3cace6[_0x4791af('0x9cb')]=_0x1103dd[_0x4791af('0x24cc')](),_0x3cace6['outboundroutes']=_0x71c115||{'count':0x0,'rows':[]},_0x3cace6['userProfile']=_0x100e94,_0x3cace6['userProfileSection']=_0x4db17c&&_0x4db17c['count']==0x1?_0x4db17c[_0x4791af('0x25df')][0x0]:null,_0x3cace6[_0x4791af('0xe28')]=_0x1103dd[_0x4791af('0x157e')](_0x3cace6[_0x4791af('0xec9')]?_0x3cace6[_0x4791af('0xec9')][_0x4791af('0xe28')]:null),_0x3cace6[_0x4791af('0x26a9')]='outboundroutes',_0x3cace6[_0x4791af('0x2278')]='',_0x3cace6[_0x4791af('0x25e2')]=null,_0x3cace6[_0x4791af('0x2350')]=[],_0x3cace6[_0x4791af('0x135a')]={'fields':_0x4791af('0x16e0'),'type':_0x4791af('0x1'),'sort':_0x4791af('0x1cee'),'VoiceExtensionId':_0x4791af('0x954'),'limit':0xa,'page':0x1},_0x3cace6[_0x4791af('0xa24')]=_0x283545()['keyBy']([{'option':_0x4791af('0x1dc'),'value':_0x4791af('0x1e8e')},{'option':_0x4791af('0x1c99'),'value':_0x4791af('0x13f7')},{'option':_0x4791af('0x7d6'),'value':_0x4791af('0x1eba')},{'option':_0x4791af('0x14c1'),'value':'\x27gsm\x27'}],function(_0x2aff8c){const _0x147534=_0x4791af;return _0x283545()['replace'](_0x2aff8c[_0x147534('0x49')],new RegExp('\x27','g'),'');}),_0x3cace6[_0x4791af('0x1f7e')]=_0x1b515b,_0x3cace6[_0x4791af('0x1e5')]=_0x4a8217,_0x3cace6[_0x4791af('0x173b')]=_0x603368,_0x3cace6[_0x4791af('0x76a')]=_0x4bc25f,_0x3cace6['createOrEditOutboundRoute']=_0xad6572,_0x3cace6[_0x4791af('0xfc6')]=_0x4d4dde,_0x3cace6[_0x4791af('0x21d3')]=_0x2d2553,_0x3cace6[_0x4791af('0x418')]=_0x304370,_0x3cace6[_0x4791af('0x116a')]=_0x29eaf7,_0x3cace6[_0x4791af('0x17a0')]=_0x2fffc6,_0x1103dd[_0x4791af('0x1516')](_0x4791af('0xe23'))?_0x5c11f9[_0x4791af('0x15cc')][_0x4791af('0x1335')]({'fields':'id,name','sort':_0x4791af('0x1a8d'),'nolimit':_0x4791af('0x1001')})[_0x4791af('0x1714')][_0x4791af('0x2788')](function(_0x1de677){const _0x1e5b2f=_0x4791af;_0x3cace6[_0x1e5b2f('0xf3e')]=_0x1de677[_0x1e5b2f('0x25df')]||[];})[_0x4791af('0x1cb5')](function(_0x2a435e){const _0x49c2d0=_0x4791af;_0x4c65d9[_0x49c2d0('0x5e8')]({'title':_0x2a435e[_0x49c2d0('0x1b51')]?_0x49c2d0('0x15d1')+_0x2a435e[_0x49c2d0('0x1b51')]+'\x20-\x20'+_0x2a435e[_0x49c2d0('0x22ce')]:_0x49c2d0('0x15f7'),'msg':_0x2a435e['data']?JSON[_0x49c2d0('0x1be0')](_0x2a435e[_0x49c2d0('0x11fc')]):_0x2a435e['toString']()});}):_0x5c11f9[_0x4791af('0x15cc')]['get']({'fields':_0x4791af('0x1338'),'sort':_0x4791af('0x1a8d'),'nolimit':_0x4791af('0x1001')})[_0x4791af('0x1714')][_0x4791af('0x2788')](function(_0x40a5cf){const _0x1b08cc=_0x4791af;_0x3cace6[_0x1b08cc('0xf3e')]=_0x40a5cf[_0x1b08cc('0x25df')]||[];})[_0x4791af('0x2788')](function(){const _0x34506d=_0x4791af;return _0x5c11f9[_0x34506d('0xec9')][_0x34506d('0x1335')]({'userProfileId':_0x3cace6['currentUser'][_0x34506d('0x237f')],'sectionId':0x195})[_0x34506d('0x1714')];})['then'](function(_0x3441a0){const _0x1d66e0=_0x4791af,_0x984f35=_0x3441a0&&_0x3441a0['rows']?_0x3441a0[_0x1d66e0('0x25df')][0x0]:null;if(!_0x984f35)return _0x5c11f9[_0x1d66e0('0x15cc')][_0x1d66e0('0x1335')]({'fields':_0x1d66e0('0x1338'),'sort':'name','nolimit':'true','defaultEntry':0x1})[_0x1d66e0('0x1714')][_0x1d66e0('0x2788')](function(_0x53ae1a){const _0x5d37c1=_0x1d66e0;_0x3cace6[_0x5d37c1('0xf3e')]=_0x53ae1a[_0x5d37c1('0x25df')]||[];});else{if(!_0x984f35[_0x1d66e0('0x1c0a')])return _0x5c11f9['userProfileResource']['get']({'sectionId':_0x984f35['id']})['$promise'][_0x1d66e0('0x2788')](function(_0x47b49a){const _0x468cbd=_0x1d66e0,_0x1da00d=_0x283545()[_0x468cbd('0x155d')](_0x47b49a[_0x468cbd('0x25df')],function(_0x24b7f8){const _0x2a4cdb=_0x468cbd;return _0x283545()[_0x2a4cdb('0x20e8')](_0x3cace6[_0x2a4cdb('0xf3e')],{'id':_0x24b7f8[_0x2a4cdb('0x2707')]});});let _0x461e90=null;_0x3cace6['outboundroute']&&(_0x461e90=_0x283545()[_0x468cbd('0x20e8')](_0x3cace6[_0x468cbd('0xf3e')],{'name':_0x3cace6[_0x468cbd('0x1e98')]['context']}));if(_0x461e90&&!_0x283545()[_0x468cbd('0xc5d')](_0x1da00d,['id',_0x461e90['id']])){const _0x514dca=_0x283545()[_0x468cbd('0x20e8')](_0x3cace6['contexts'],{'id':_0x461e90['id']});_0x514dca[_0x468cbd('0x3bf')]=![],_0x1da00d['push'](_0x514dca);}_0x3cace6[_0x468cbd('0xf3e')]=_0x1da00d;});}})['catch'](function(_0x2e9de7){const _0x41cdd5=_0x4791af;_0x4c65d9[_0x41cdd5('0x5e8')]({'title':_0x2e9de7[_0x41cdd5('0x1b51')]?_0x41cdd5('0x15d1')+_0x2e9de7[_0x41cdd5('0x1b51')]+_0x41cdd5('0x1b0b')+_0x2e9de7[_0x41cdd5('0x22ce')]:_0x41cdd5('0x265a'),'msg':_0x2e9de7[_0x41cdd5('0x11fc')]?JSON[_0x41cdd5('0x1be0')](_0x2e9de7[_0x41cdd5('0x11fc')]):_0x2e9de7['toString']()});});function _0x1b515b(_0x35f69a){_0x3ef540['go']('app.voice.outboundroutes.edit',{'id':_0x35f69a['id'],'outboundroute':_0x35f69a,'crudPermissions':_0x3cace6['crudPermissions']});}function _0x4a8217(_0x2b694e,_0x6744b0){const _0x508302=_0x4791af,_0x2d4797=_0x26c4aa[_0x508302('0x112e')]()[_0x508302('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x508302('0x114')]('outboundroute')+'?')[_0x508302('0x93e')](_0x508302('0x1670')+(_0x2b694e['name']||_0x508302('0x1e98'))+_0x508302('0x229e')+_0x508302('0x27c7'))[_0x508302('0x10bc')](_0x508302('0xcdb'))[_0x508302('0x24d0')](_0x6744b0)['ok']('OK')['cancel'](_0x508302('0x1d8d'));_0x26c4aa[_0x508302('0x2fa')](_0x2d4797)[_0x508302('0x2788')](function(){_0x4d4dde(_0x2b694e);},function(){const _0x46f180=_0x508302;console[_0x46f180('0x10df')]('CANCEL');});}let _0x4158bd=!![],_0x2ffa90=0x1;_0x1292ca[_0x4791af('0x1662')](_0x4791af('0x1569'),function(_0x55e0e8,_0x2d74a6){const _0x4ca543=_0x4791af;_0x4158bd?_0x5f136e(function(){_0x4158bd=![];}):(!_0x2d74a6&&(_0x2ffa90=_0x3cace6[_0x4ca543('0x135a')][_0x4ca543('0x23f5')]),_0x55e0e8!==_0x2d74a6&&(_0x3cace6['query']['page']=0x1),!_0x55e0e8&&(_0x3cace6[_0x4ca543('0x135a')][_0x4ca543('0x23f5')]=_0x2ffa90),_0x3cace6[_0x4ca543('0x76a')]());});function _0x603368(_0x3110cb){_0x3cace6['outboundroutes']=_0x3110cb||{'count':0x0,'rows':[]};}function _0x4bc25f(){const _0x568fe2=_0x4791af;_0x3cace6['query'][_0x568fe2('0x19e')]=(_0x3cace6['query'][_0x568fe2('0x23f5')]-0x1)*_0x3cace6['query'][_0x568fe2('0x68e')],_0x1103dd[_0x568fe2('0x1516')](_0x568fe2('0xe23'))?_0x3cace6[_0x568fe2('0x1808')]=_0x5c11f9[_0x568fe2('0x2636')]['get'](_0x3cace6[_0x568fe2('0x135a')],_0x603368)[_0x568fe2('0x1714')]:(_0x3cace6[_0x568fe2('0x135a')]['id']=_0x3cace6['userProfile']['id'],_0x3cace6[_0x568fe2('0x135a')]['section']=_0x568fe2('0x1fa1'),_0x3cace6[_0x568fe2('0x1808')]=_0x5c11f9[_0x568fe2('0x63c')][_0x568fe2('0xa1')](_0x3cace6['query'],_0x603368)[_0x568fe2('0x1714')]);}function _0xad6572(_0x38db0d,_0x2326e1){const _0x264408=_0x4791af;_0x26c4aa['show']({'controller':_0x264408('0xdd0'),'controllerAs':'vm','templateUrl':_0x1d8874,'parent':angular[_0x264408('0x16b1')](_0x1f3793[_0x264408('0x945')]),'targetEvent':_0x38db0d,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x2326e1,'outboundroutes':_0x3cace6[_0x264408('0x19b0')]['rows'],'license':_0x3cace6[_0x264408('0x130d')],'setting':_0x3cace6[_0x264408('0x1af0')],'crudPermissions':_0x3cace6[_0x264408('0xe28')]}});}function _0x4d4dde(_0xbb2b93){const _0x21a40c=_0x4791af;_0x5c11f9[_0x21a40c('0x17ee')][_0x21a40c('0x1335')]({'VoiceExtensionId':_0xbb2b93['id']})[_0x21a40c('0x1714')][_0x21a40c('0x2788')](function(_0x51bdbf){const _0x445fc1=_0x21a40c;if(_0x51bdbf&&_0x51bdbf[_0x445fc1('0x25df')]&&_0x51bdbf['rows'][_0x445fc1('0x2566')]>0x0)return _0x4c65d9[_0x445fc1('0x5e8')]({'title':_0x445fc1('0x1c'),'msg':_0x445fc1('0x7a5')});else _0x5c11f9[_0x445fc1('0x2636')][_0x445fc1('0x17c4')]({'id':_0xbb2b93['id']})[_0x445fc1('0x1714')][_0x445fc1('0x2788')](function(){const _0x1d13d6=_0x445fc1;_0x283545()[_0x1d13d6('0x1a90')](_0x3cace6['outboundroutes'][_0x1d13d6('0x25df')],{'id':_0xbb2b93['id']}),_0x3cace6[_0x1d13d6('0x19b0')]['count']-=0x1,!_0x3cace6[_0x1d13d6('0x19b0')][_0x1d13d6('0x25df')][_0x1d13d6('0x2566')]&&_0x3cace6[_0x1d13d6('0x76a')](),_0x4c65d9[_0x1d13d6('0x173b')]({'title':_0x283545()[_0x1d13d6('0x114')](_0x1d13d6('0x1923'))+_0x1d13d6('0x20db'),'msg':_0xbb2b93[_0x1d13d6('0x1a8d')]?_0xbb2b93['name']+_0x1d13d6('0x14d4'):''});})[_0x445fc1('0x1cb5')](function(_0xd2fa32){const _0x8aceaa=_0x445fc1;if(_0xd2fa32[_0x8aceaa('0x11fc')]&&_0xd2fa32[_0x8aceaa('0x11fc')][_0x8aceaa('0x25be')]&&_0xd2fa32['data']['errors'][_0x8aceaa('0x2566')]){_0x3cace6[_0x8aceaa('0x25be')]=_0xd2fa32[_0x8aceaa('0x11fc')][_0x8aceaa('0x25be')]||[{'message':_0xd2fa32[_0x8aceaa('0x17df')](),'type':_0x8aceaa('0x1216')}];for(let _0x5adc80=0x0;_0x5adc80<_0xd2fa32[_0x8aceaa('0x11fc')][_0x8aceaa('0x25be')]['length'];_0x5adc80++){_0x4c65d9[_0x8aceaa('0x5e8')]({'title':_0xd2fa32['data']['errors'][_0x5adc80][_0x8aceaa('0x1d7')],'msg':_0xd2fa32[_0x8aceaa('0x11fc')][_0x8aceaa('0x25be')][_0x5adc80]['message']});}}else _0x4c65d9[_0x8aceaa('0x5e8')]({'title':_0xd2fa32[_0x8aceaa('0x1b51')]?_0x8aceaa('0x15d1')+_0xd2fa32[_0x8aceaa('0x1b51')]+_0x8aceaa('0x1b0b')+_0xd2fa32[_0x8aceaa('0x22ce')]:'SYSTEM:DELETEvoiceExtension','msg':_0xd2fa32[_0x8aceaa('0x11fc')]?JSON['stringify'](_0xd2fa32[_0x8aceaa('0x11fc')][_0x8aceaa('0x15e2')]):_0xd2fa32['message']||_0xd2fa32[_0x8aceaa('0x17df')]()});});});}function _0x2d2553(){const _0x20b216=_0x4791af,_0x28d070=angular[_0x20b216('0x2669')](_0x3cace6['selectedOutboundRoutes']);return _0x3cace6['selectedOutboundRoutes']=[],_0x28d070;}function _0x304370(_0x4576e4){const _0xffc1d2=_0x4791af,_0x322817=_0x26c4aa[_0xffc1d2('0x112e')]()[_0xffc1d2('0x14e4')](_0xffc1d2('0x2e1'))[_0xffc1d2('0x93e')](_0xffc1d2('0x1670')+_0x3cace6[_0xffc1d2('0x2350')][_0xffc1d2('0x2566')]+_0xffc1d2('0xbd')+_0xffc1d2('0x27c7'))['ariaLabel'](_0xffc1d2('0x2b7'))[_0xffc1d2('0x24d0')](_0x4576e4)['ok']('OK')['cancel']('CANCEL');_0x26c4aa[_0xffc1d2('0x2fa')](_0x322817)[_0xffc1d2('0x2788')](function(){const _0x41d789=_0xffc1d2;_0x3cace6['selectedOutboundRoutes'][_0x41d789('0x1534')](function(_0x1c5687){_0x4d4dde(_0x1c5687);}),_0x3cace6[_0x41d789('0x2350')]=[];});}function _0x29eaf7(){const _0x18b526=_0x4791af;_0x3cace6[_0x18b526('0x2350')]=[];}function _0x2fffc6(){const _0x4bc099=_0x4791af;_0x3cace6[_0x4bc099('0x2350')]=_0x3cace6[_0x4bc099('0x19b0')][_0x4bc099('0x25df')];}}const _0x278616=_0x232f2d;_0xd51c00[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x232d'),_0x34e79e('0x2339'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0xd51c00(_0x38e80e,_0x3d5e27,_0x372de6,_0x221f97,_0x4f21c6,_0x50f3b8,_0x2164bb,_0x5e69a9,_0x2433de,_0x39250a,_0x4eb5c5,_0x335988,_0x54fe66,_0xc94ac){const _0x3bc736=_0x34e79e,_0x55b578=this;_0x55b578[_0x3bc736('0x9cb')]=_0x4eb5c5[_0x3bc736('0x24cc')](),_0x55b578[_0x3bc736('0x25be')]=[],_0x55b578[_0x3bc736('0x1af0')]=_0x54fe66,_0x55b578[_0x3bc736('0x130d')]=_0x335988,_0x55b578[_0x3bc736('0xe28')]=_0xc94ac,_0x55b578[_0x3bc736('0x1193')]={},_0x55b578[_0x3bc736('0x18ad')]=_0x55b578[_0x3bc736('0x1af0')]&&_0x55b578[_0x3bc736('0x1af0')][_0x3bc736('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55b578['title']=_0x3bc736('0x119b'),_0x55b578[_0x3bc736('0x2339')]=angular['copy'](_0x2433de),_0x55b578[_0x3bc736('0x232d')]=_0x5e69a9,_0x55b578['newVoicemail']=![];!_0x55b578[_0x3bc736('0x2339')]&&(_0x55b578[_0x3bc736('0x2339')]={'attach':'no'},_0x55b578['title']=_0x3bc736('0x14a4'),_0x55b578[_0x3bc736('0x1798')]=!![]);_0x55b578['addNewVoicemail']=_0x59dfe0,_0x55b578[_0x3bc736('0x27b3')]=_0x53fd57,_0x55b578[_0x3bc736('0xf20')]=_0x12894b,_0x55b578['getDateFromString']=_0xf7d625,_0x55b578[_0x3bc736('0xca7')]=_0x124eb7;function _0x59dfe0(){const _0xb7cd13=_0x3bc736;_0x55b578['errors']=[],_0x39250a['voiceMail'][_0xb7cd13('0xbd0')](_0x55b578[_0xb7cd13('0x2339')])[_0xb7cd13('0x1714')][_0xb7cd13('0x2788')](function(_0x42a4d0){const _0x218b62=_0xb7cd13;_0x55b578[_0x218b62('0x232d')][_0x218b62('0xc51')](_0x42a4d0['toJSON']()),_0x2164bb['success']({'title':'Voicemail\x20properly\x20created','msg':_0x55b578['voicemail'][_0x218b62('0x1a8d')]?_0x55b578['voicemail'][_0x218b62('0x1a8d')]+_0x218b62('0x1e4a'):''}),_0x124eb7(_0x42a4d0);})[_0xb7cd13('0x1cb5')](function(_0x4d25e5){const _0x4dd952=_0xb7cd13;if(_0x4d25e5[_0x4dd952('0x11fc')]&&_0x4d25e5[_0x4dd952('0x11fc')][_0x4dd952('0x25be')]&&_0x4d25e5['data'][_0x4dd952('0x25be')][_0x4dd952('0x2566')]){_0x55b578[_0x4dd952('0x25be')]=_0x4d25e5['data'][_0x4dd952('0x25be')]||[{'message':_0x4d25e5[_0x4dd952('0x17df')](),'type':_0x4dd952('0x10b1')}];for(let _0xfe2369=0x0;_0xfe2369<_0x4d25e5[_0x4dd952('0x11fc')][_0x4dd952('0x25be')][_0x4dd952('0x2566')];_0xfe2369+=0x1){_0x2164bb[_0x4dd952('0x5e8')]({'title':_0x4d25e5[_0x4dd952('0x11fc')]['errors'][_0xfe2369]['type'],'msg':_0x4d25e5[_0x4dd952('0x11fc')][_0x4dd952('0x25be')][_0xfe2369][_0x4dd952('0x15e2')]});}}else _0x2164bb['error']({'title':_0x4d25e5[_0x4dd952('0x1b51')]?_0x4dd952('0x15d1')+_0x4d25e5[_0x4dd952('0x1b51')]+_0x4dd952('0x1b0b')+_0x4d25e5[_0x4dd952('0x22ce')]:_0x4dd952('0x10b1'),'msg':_0x4d25e5[_0x4dd952('0x11fc')]?JSON[_0x4dd952('0x1be0')](_0x4d25e5[_0x4dd952('0x11fc')][_0x4dd952('0x15e2')]):_0x4d25e5['toString']()});});}function _0x53fd57(){const _0x1b97ba=_0x3bc736;_0x55b578[_0x1b97ba('0x25be')]=[],_0x39250a[_0x1b97ba('0x1e3d')]['update']({'id':_0x55b578[_0x1b97ba('0x2339')]['id']},_0x55b578['voicemail'])[_0x1b97ba('0x1714')][_0x1b97ba('0x2788')](function(_0xd3795a){const _0x46b914=_0x1b97ba,_0x2d5237=_0x283545()[_0x46b914('0x20e8')](_0x55b578['voicemails'],{'id':_0xd3795a['id']});_0x2d5237&&_0x283545()['merge'](_0x2d5237,_0x283545()[_0x46b914('0x41b')](_0xd3795a[_0x46b914('0x1cbf')](),_0x283545()['keys'](_0x2d5237))),_0x2164bb[_0x46b914('0x173b')]({'title':_0x46b914('0x8e7'),'msg':_0x55b578[_0x46b914('0x2339')][_0x46b914('0x1a8d')]?_0x55b578[_0x46b914('0x2339')][_0x46b914('0x1a8d')]+_0x46b914('0x24cf'):''}),_0x124eb7(_0xd3795a);})[_0x1b97ba('0x1cb5')](function(_0x11d7cf){const _0x1b78b1=_0x1b97ba;if(_0x11d7cf['data']&&_0x11d7cf[_0x1b78b1('0x11fc')]['errors']&&_0x11d7cf[_0x1b78b1('0x11fc')]['errors'][_0x1b78b1('0x2566')]){_0x55b578[_0x1b78b1('0x25be')]=_0x11d7cf[_0x1b78b1('0x11fc')][_0x1b78b1('0x25be')]||[{'message':_0x11d7cf['toString'](),'type':_0x1b78b1('0x746')}];for(let _0x4e17ea=0x0;_0x4e17ea<_0x11d7cf[_0x1b78b1('0x11fc')][_0x1b78b1('0x25be')]['length'];_0x4e17ea++){_0x2164bb['error']({'title':_0x11d7cf['data'][_0x1b78b1('0x25be')][_0x4e17ea]['type'],'msg':_0x11d7cf['data']['errors'][_0x4e17ea][_0x1b78b1('0x15e2')]});}}else _0x2164bb['error']({'title':_0x11d7cf[_0x1b78b1('0x1b51')]?'API:'+_0x11d7cf[_0x1b78b1('0x1b51')]+_0x1b78b1('0x1b0b')+_0x11d7cf[_0x1b78b1('0x22ce')]:_0x1b78b1('0x746'),'msg':_0x11d7cf[_0x1b78b1('0x11fc')]?JSON['stringify'](_0x11d7cf[_0x1b78b1('0x11fc')][_0x1b78b1('0x15e2')]):_0x11d7cf['toString']()});});}function _0x12894b(_0x2d6a8d){const _0x4cfe08=_0x3bc736;_0x55b578[_0x4cfe08('0x25be')]=[];const _0x11248f=_0x221f97['confirm']()[_0x4cfe08('0x14e4')]('Are\x20you\x20sure?')['content']('The\x20voicemail\x20will\x20be\x20deleted.')['ariaLabel'](_0x4cfe08('0x4f6'))['ok']('Delete')[_0x4cfe08('0x1801')](_0x4cfe08('0x1481'))[_0x4cfe08('0x24d0')](_0x2d6a8d);_0x221f97[_0x4cfe08('0x2fa')](_0x11248f)[_0x4cfe08('0x2788')](function(){const _0x874cec=_0x4cfe08;_0x39250a[_0x874cec('0x1e3d')][_0x874cec('0x17c4')]({'id':_0x55b578[_0x874cec('0x2339')]['id']})[_0x874cec('0x1714')][_0x874cec('0x2788')](function(){const _0x353a8e=_0x874cec;_0x283545()[_0x353a8e('0x1a90')](_0x55b578['voicemails'],{'id':_0x55b578[_0x353a8e('0x2339')]['id']}),_0x2164bb[_0x353a8e('0x173b')]({'title':_0x353a8e('0x2792'),'msg':(_0x55b578[_0x353a8e('0x2339')][_0x353a8e('0x1a8d')]||_0x353a8e('0x2339'))+_0x353a8e('0x14d4')}),_0x124eb7(_0x55b578[_0x353a8e('0x2339')]);})['catch'](function(_0x25210b){const _0x1b7358=_0x874cec;if(_0x25210b[_0x1b7358('0x11fc')]&&_0x25210b[_0x1b7358('0x11fc')][_0x1b7358('0x25be')]&&_0x25210b[_0x1b7358('0x11fc')][_0x1b7358('0x25be')][_0x1b7358('0x2566')]){_0x55b578['errors']=_0x25210b[_0x1b7358('0x11fc')][_0x1b7358('0x25be')]||[{'message':_0x25210b['toString'](),'type':_0x1b7358('0x27ce')}];for(let _0x4e2048=0x0;_0x4e2048<_0x25210b[_0x1b7358('0x11fc')][_0x1b7358('0x25be')][_0x1b7358('0x2566')];_0x4e2048++){_0x2164bb[_0x1b7358('0x5e8')]({'title':_0x25210b['data'][_0x1b7358('0x25be')][_0x4e2048][_0x1b7358('0x1d7')],'msg':_0x25210b[_0x1b7358('0x11fc')]['errors'][_0x4e2048]['message']});}}else _0x2164bb[_0x1b7358('0x5e8')]({'title':_0x25210b['status']?_0x1b7358('0x15d1')+_0x25210b[_0x1b7358('0x1b51')]+_0x1b7358('0x1b0b')+_0x25210b['statusText']:_0x1b7358('0x27ce'),'msg':_0x25210b[_0x1b7358('0x11fc')]?JSON['stringify'](_0x25210b[_0x1b7358('0x11fc')][_0x1b7358('0x15e2')]):_0x25210b[_0x1b7358('0x15e2')]||_0x25210b[_0x1b7358('0x17df')]()});});},function(){});}function _0xf7d625(_0x5c503e){return _0x5c503e===null?undefined:new Date(_0x5c503e);}function _0x124eb7(_0x4b3e9a){const _0x171740=_0x3bc736;_0x221f97[_0x171740('0x19d')](_0x4b3e9a);}}const _0x124978=_0xd51c00;_0x44770c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'$scope',_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x44770c(_0xd9c650,_0x39adb7,_0x43f5f6,_0x1973f9,_0x21dabe,_0x3875a4,_0x50acc2,_0x1f3ca5,_0x258505,_0x12a680,_0x20ec6f){const _0x258b7d=_0x34e79e,_0x5bdd41=this;_0x5bdd41[_0x258b7d('0x9cb')]=_0x20ec6f[_0x258b7d('0x24cc')](),_0x5bdd41[_0x258b7d('0x2339')]={},_0x5bdd41[_0x258b7d('0x1528')]={'count':0x0,'rows':[]},_0x5bdd41[_0x258b7d('0x19b6')]=[],_0x5bdd41[_0x258b7d('0xe28')],_0x5bdd41[_0x258b7d('0x135a')]={'fields':_0x258b7d('0x187b'),'sort':'-stamp','limit':0xa,'page':0x1},_0x5bdd41[_0x258b7d('0x24eb')]=_0x2df6d2,_0x5bdd41[_0x258b7d('0x16a')]=_0x2db534,_0x5bdd41['voiceMailMessageDownload']=_0x5dcaf2,_0x5bdd41['success']=_0x14329e,_0x5bdd41[_0x258b7d('0x123e')]=_0x4d99d0,_0x5bdd41[_0x258b7d('0xffd')]=_0x41b8c5,_0x5bdd41['deleteVoicemailMessage']=_0x34b9c3,_0x5bdd41[_0x258b7d('0x186')]=_0x5a3e11;function _0x2df6d2(_0x3d1c13,_0x251f87){const _0x3547ed=_0x258b7d;_0x5bdd41[_0x3547ed('0x2339')]=_0x3d1c13,_0x5bdd41[_0x3547ed('0xe28')]=typeof _0x251f87!=='undefined'?_0x251f87:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5bdd41[_0x3547ed('0x135a')]['id']=_0x5bdd41[_0x3547ed('0x2339')]['id'],_0x4d99d0();}function _0x5dcaf2(_0x3bd234,_0x546c32,_0xeafebd){const _0x5c9dad=_0x258b7d;return _0x12a680[_0x5c9dad('0x1262')][_0x5c9dad('0x1486')]({'id':_0x3bd234['id'],'exists':!![],'attachments':_0xeafebd})[_0x5c9dad('0x1714')][_0x5c9dad('0x2788')](function(_0x33f3f2){const _0x513093=_0x5c9dad,_0x972cb1=[_0x33f3f2[_0x513093('0x3f1')]];let _0x56e4cb='message'+_0x3bd234['id'];const _0xfacef9=new Blob(_0x972cb1,{'type':_0x33f3f2['type']});_0x56e4cb=_0x3bd234[_0x513093('0x1d97')]+_0x513093('0x1e80');const _0x5b1817=window[_0x513093('0x11c4')][_0x513093('0x1ae6')]('a');_0x5b1817[_0x513093('0x1c6b')](_0x513093('0x186a'),URL[_0x513093('0x1b0d')](_0xfacef9)),_0x5b1817[_0x513093('0x1c6b')](_0x513093('0x1486'),_0x56e4cb),document[_0x513093('0x945')][_0x513093('0xcbf')](_0x5b1817),_0x5b1817[_0x513093('0x132a')]();})['catch'](function(_0x14cec2){const _0xd683db=_0x5c9dad;if(_0x14cec2[_0xd683db('0x11fc')]&&_0x14cec2[_0xd683db('0x11fc')][_0xd683db('0x25be')]&&_0x14cec2[_0xd683db('0x11fc')][_0xd683db('0x25be')]['length'])for(let _0x13b3b9=0x0;_0x13b3b9<_0x14cec2[_0xd683db('0x11fc')]['errors'][_0xd683db('0x2566')];_0x13b3b9+=0x1){_0x258505[_0xd683db('0x5e8')]({'title':_0x14cec2['data'][_0xd683db('0x25be')][_0x13b3b9][_0xd683db('0x1d7')],'msg':_0x14cec2[_0xd683db('0x11fc')]['errors'][_0x13b3b9][_0xd683db('0x15e2')]});}else _0x258505[_0xd683db('0x5e8')]({'title':_0x14cec2[_0xd683db('0x1b51')]?_0xd683db('0x15d1')+_0x14cec2['status']+_0xd683db('0x1b0b')+_0x14cec2[_0xd683db('0x22ce')]:'api.voiceMail.save','msg':_0x14cec2[_0xd683db('0x11fc')]?JSON['stringify'](_0x14cec2['data']['message']):_0x14cec2[_0xd683db('0x17df')]()});});}function _0x2db534(_0x59f216,_0x545ad9){const _0x25a484=_0x258b7d,_0x2984ab=_0x50acc2[_0x25a484('0x112e')]()[_0x25a484('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?')['htmlContent'](_0x25a484('0x1670')+(_0x59f216[_0x25a484('0x1a8d')]||_0x59f216['id']&&_0x283545()[_0x25a484('0x2265')]('message\x20#')+_0x59f216['id']||_0x25a484('0x15e2'))+_0x25a484('0x229e')+_0x25a484('0x27c7'))['ariaLabel'](_0x25a484('0x12fb'))[_0x25a484('0x24d0')](_0x545ad9)['ok']('OK')[_0x25a484('0x1801')]('CANCEL');_0x50acc2[_0x25a484('0x2fa')](_0x2984ab)[_0x25a484('0x2788')](function(){_0x34b9c3(_0x59f216);},function(){const _0x3abfca=_0x25a484;console[_0x3abfca('0x10df')](_0x3abfca('0x1d8d'));});}function _0x14329e(_0x5b4dbf){const _0x3fa4bd=_0x258b7d;_0x5bdd41[_0x3fa4bd('0x1528')]=_0x5b4dbf||{'count':0x0,'rows':[]};}function _0x4d99d0(){const _0x5f5966=_0x258b7d;_0x5bdd41[_0x5f5966('0x135a')]['offset']=(_0x5bdd41[_0x5f5966('0x135a')][_0x5f5966('0x23f5')]-0x1)*_0x5bdd41[_0x5f5966('0x135a')][_0x5f5966('0x68e')],_0x5bdd41['promise']=_0x12a680[_0x5f5966('0x1e3d')][_0x5f5966('0x241f')](_0x5bdd41[_0x5f5966('0x135a')],_0x14329e)[_0x5f5966('0x1714')];}function _0x34b9c3(_0x481e2f){const _0x555e40=_0x258b7d;_0x12a680[_0x555e40('0x1262')]['delete']({'id':_0x481e2f['id']})['$promise'][_0x555e40('0x2788')](function(){const _0x5cd450=_0x555e40;_0x283545()[_0x5cd450('0x1a90')](_0x5bdd41[_0x5cd450('0x1528')][_0x5cd450('0x25df')],{'id':_0x481e2f['id']}),_0x5bdd41['voicemailMessages'][_0x5cd450('0x338')]-=0x1,!_0x5bdd41[_0x5cd450('0x1528')]['rows'][_0x5cd450('0x2566')]&&_0x4d99d0(),_0x258505[_0x5cd450('0x173b')]({'title':'Message\x20deleted!','msg':_0x481e2f[_0x5cd450('0x1a8d')]?_0x481e2f[_0x5cd450('0x1a8d')]+_0x5cd450('0x14d4'):''});})['catch'](function(_0x30f9fe){const _0x33552b=_0x555e40;if(_0x30f9fe[_0x33552b('0x11fc')]&&_0x30f9fe[_0x33552b('0x11fc')][_0x33552b('0x25be')]&&_0x30f9fe[_0x33552b('0x11fc')][_0x33552b('0x25be')][_0x33552b('0x2566')]){_0x5bdd41['errors']=_0x30f9fe[_0x33552b('0x11fc')][_0x33552b('0x25be')]||[{'message':_0x30f9fe['toString'](),'type':_0x33552b('0x1df6')}];for(let _0x5e3a76=0x0;_0x5e3a76<_0x30f9fe['data'][_0x33552b('0x25be')][_0x33552b('0x2566')];_0x5e3a76++){_0x258505[_0x33552b('0x5e8')]({'title':_0x30f9fe['data'][_0x33552b('0x25be')][_0x5e3a76]['type'],'msg':_0x30f9fe[_0x33552b('0x11fc')][_0x33552b('0x25be')][_0x5e3a76][_0x33552b('0x15e2')]});}}else _0x258505[_0x33552b('0x5e8')]({'title':_0x30f9fe[_0x33552b('0x1b51')]?_0x33552b('0x15d1')+_0x30f9fe[_0x33552b('0x1b51')]+_0x33552b('0x1b0b')+_0x30f9fe[_0x33552b('0x22ce')]:_0x33552b('0x1df6'),'msg':_0x30f9fe[_0x33552b('0x11fc')]?JSON[_0x33552b('0x1be0')](_0x30f9fe[_0x33552b('0x11fc')][_0x33552b('0x15e2')]):_0x30f9fe['message']||_0x30f9fe['toString']()});});}function _0x41b8c5(){const _0x226ee9=_0x258b7d,_0xb67656=angular[_0x226ee9('0x2669')](_0x5bdd41[_0x226ee9('0x19b6')]);return _0x5bdd41[_0x226ee9('0x19b6')]=[],_0xb67656;}function _0x5a3e11(_0x1b6e9b){const _0xf874ee=_0x258b7d,_0x5f5cc7=_0x50acc2[_0xf874ee('0x112e')]()[_0xf874ee('0x14e4')](_0xf874ee('0x378'))[_0xf874ee('0x93e')](_0xf874ee('0x1670')+_0x5bdd41['selectedVoicemailMessages'][_0xf874ee('0x2566')]+_0xf874ee('0xbd')+_0xf874ee('0x27c7'))[_0xf874ee('0x10bc')]('delete\x20messages')[_0xf874ee('0x24d0')](_0x1b6e9b)['ok']('OK')[_0xf874ee('0x1801')](_0xf874ee('0x1d8d'));_0x50acc2['show'](_0x5f5cc7)[_0xf874ee('0x2788')](function(){const _0x2058fc=_0xf874ee;_0x5bdd41[_0x2058fc('0x19b6')][_0x2058fc('0x1534')](function(_0x164a38){_0x34b9c3(_0x164a38);}),_0x5bdd41[_0x2058fc('0x19b6')]=[];});}let _0x53d0e6=!![],_0xd328f6=0x1;_0x39adb7[_0x258b7d('0x1662')](_0x258b7d('0x2571'),function(_0x4cae1b,_0x1a9201){const _0x7af5a3=_0x258b7d;_0x53d0e6?_0x3875a4(function(){_0x53d0e6=![];}):(!_0x1a9201&&(_0xd328f6=_0x5bdd41[_0x7af5a3('0x135a')][_0x7af5a3('0x23f5')]),_0x4cae1b!==_0x1a9201&&(_0x5bdd41[_0x7af5a3('0x135a')][_0x7af5a3('0x23f5')]=0x1),!_0x4cae1b&&(_0x5bdd41[_0x7af5a3('0x135a')][_0x7af5a3('0x23f5')]=_0xd328f6),_0x4d99d0());});}const _0xf10235=_0x44770c;_0x1927f6['$inject']=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x2339'),_0x34e79e('0xec9')];function _0x1927f6(_0x569ec9,_0x41af42,_0x100efa,_0x5a2947,_0x4380d2,_0x4913f8,_0x592636,_0x20efa0,_0x500ecf,_0xfb4832,_0x1a74c8,_0x4d5f2f){const _0x5a7488=_0x34e79e,_0x5736bd=this;_0x5736bd[_0x5a7488('0x9cb')]=_0xfb4832[_0x5a7488('0x24cc')](),_0x5736bd[_0x5a7488('0x130d')]=_0x4913f8,_0x5736bd['setting']=_0x592636,_0x5736bd[_0x5a7488('0x18ad')]=_0x5736bd[_0x5a7488('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5736bd[_0x5a7488('0xe9')]=_0x41af42[_0x5a7488('0x170c')]()+_0x5a7488('0x726')+_0x41af42[_0x5a7488('0x1c6a')](),_0x5736bd[_0x5a7488('0x2339')]=_0x1a74c8||_0x569ec9[_0x5a7488('0x4b9')][_0x5a7488('0x2339')]||{},_0x5736bd[_0x5a7488('0xec9')]=_0x4d5f2f&&_0x4d5f2f[_0x5a7488('0x338')]==0x1?_0x4d5f2f['rows'][0x0]:null,_0x5736bd[_0x5a7488('0xe28')]=_0xfb4832[_0x5a7488('0x157e')](_0x5736bd[_0x5a7488('0xec9')]?_0x5736bd[_0x5a7488('0xec9')][_0x5a7488('0xe28')]:null),_0x5736bd['hasModulePermissions']={},_0x5736bd[_0x5a7488('0xcb3')]=_0x569ec9[_0x5a7488('0x4b9')][_0x5a7488('0x24f6')]||0x0,_0x5736bd['alert']=_0x500ecf['info'],_0x5736bd[_0x5a7488('0x25d9')]=_0x3505c7,_0x5736bd['saveVoicemail']=_0x4d06d3,_0xfb4832['hasRole'](_0x5a7488('0xe23'))?_0x20efa0[_0x5a7488('0x15cc')][_0x5a7488('0x1335')]({'fields':_0x5a7488('0x1338'),'sort':_0x5a7488('0x1a8d')})[_0x5a7488('0x1714')][_0x5a7488('0x2788')](function(_0x2c3942){const _0x4e6d05=_0x5a7488;_0x5736bd[_0x4e6d05('0xf3e')]=_0x2c3942[_0x4e6d05('0x25df')]||[];})[_0x5a7488('0x1cb5')](function(_0x35c7aa){const _0x5524eb=_0x5a7488;_0x500ecf[_0x5524eb('0x5e8')]({'title':_0x35c7aa[_0x5524eb('0x1b51')]?_0x5524eb('0x15d1')+_0x35c7aa[_0x5524eb('0x1b51')]+_0x5524eb('0x1b0b')+_0x35c7aa[_0x5524eb('0x22ce')]:_0x5524eb('0x15f7'),'msg':_0x35c7aa[_0x5524eb('0x11fc')]?JSON[_0x5524eb('0x1be0')](_0x35c7aa[_0x5524eb('0x11fc')]):_0x35c7aa['toString']()});}):_0x20efa0[_0x5a7488('0x15cc')]['get']({'fields':_0x5a7488('0x1338'),'sort':_0x5a7488('0x1a8d')})[_0x5a7488('0x1714')][_0x5a7488('0x2788')](function(_0x402097){const _0x5ef964=_0x5a7488;_0x5736bd['contexts']=_0x402097[_0x5ef964('0x25df')]||[];})[_0x5a7488('0x2788')](function(){const _0x2357cc=_0x5a7488;return _0x20efa0[_0x2357cc('0xec9')]['get']({'userProfileId':_0x5736bd['currentUser'][_0x2357cc('0x237f')],'sectionId':0x195})[_0x2357cc('0x1714')];})[_0x5a7488('0x2788')](function(_0x1842ff){const _0x248000=_0x5a7488,_0x232261=_0x1842ff&&_0x1842ff[_0x248000('0x25df')]?_0x1842ff[_0x248000('0x25df')][0x0]:null;if(!_0x232261)return _0x20efa0['voiceContext'][_0x248000('0x1335')]({'fields':_0x248000('0x1338'),'sort':_0x248000('0x1a8d'),'defaultEntry':0x1})[_0x248000('0x1714')][_0x248000('0x2788')](function(_0x4d6676){const _0x308b81=_0x248000;_0x5736bd[_0x308b81('0xf3e')]=_0x4d6676[_0x308b81('0x25df')]||[];});else{if(!_0x232261[_0x248000('0x1c0a')])return _0x20efa0['userProfileResource'][_0x248000('0x1335')]({'sectionId':_0x232261['id']})['$promise'][_0x248000('0x2788')](function(_0x27e5ae){const _0x41dcff=_0x248000,_0xdfcf08=_0x283545()[_0x41dcff('0x155d')](_0x27e5ae['rows'],function(_0x3f1c6b){const _0x42c7b6=_0x41dcff;return _0x283545()[_0x42c7b6('0x20e8')](_0x5736bd[_0x42c7b6('0xf3e')],{'id':_0x3f1c6b['resourceId']});});let _0x2c74cf=null;_0x5736bd[_0x41dcff('0x2339')]&&(_0x2c74cf=_0x283545()[_0x41dcff('0x20e8')](_0x5736bd[_0x41dcff('0xf3e')],{'name':_0x5736bd['voicemail'][_0x41dcff('0x1f3b')]}));if(_0x2c74cf&&!_0x283545()[_0x41dcff('0xc5d')](_0xdfcf08,['id',_0x2c74cf['id']])){const _0x58ad90=_0x283545()[_0x41dcff('0x20e8')](_0x5736bd[_0x41dcff('0xf3e')],{'id':_0x2c74cf['id']});_0x58ad90[_0x41dcff('0x3bf')]=![],_0xdfcf08[_0x41dcff('0x13e3')](_0x58ad90);}_0x5736bd[_0x41dcff('0xf3e')]=_0xdfcf08;});}})['catch'](function(_0x4ba251){const _0x38da87=_0x5a7488;_0x500ecf['error']({'title':_0x4ba251[_0x38da87('0x1b51')]?'API:'+_0x4ba251[_0x38da87('0x1b51')]+_0x38da87('0x1b0b')+_0x4ba251[_0x38da87('0x22ce')]:'SYSTEM:GETcontexts','msg':_0x4ba251[_0x38da87('0x11fc')]?JSON[_0x38da87('0x1be0')](_0x4ba251[_0x38da87('0x11fc')]):_0x4ba251[_0x38da87('0x17df')]()});});function _0x3505c7(){const _0x6746b1=_0x5a7488;_0x569ec9['go'](_0x6746b1('0x4f5'),{},{'reload':_0x6746b1('0x4f5')});}function _0x4d06d3(){const _0x3b7d1d=_0x5a7488;_0x20efa0['voiceMail'][_0x3b7d1d('0x2740')]({'id':_0x5736bd[_0x3b7d1d('0x2339')]['id']},_0x5736bd[_0x3b7d1d('0x2339')])[_0x3b7d1d('0x1714')]['then'](function(){const _0x4678ab=_0x3b7d1d;_0x500ecf[_0x4678ab('0x173b')]({'title':_0x4678ab('0xa70'),'msg':_0x5736bd[_0x4678ab('0x2339')]['name']?_0x5736bd['voicemail'][_0x4678ab('0x1a8d')]+_0x4678ab('0x6f8'):''});})[_0x3b7d1d('0x1cb5')](function(_0x46c8ad){const _0x5d8699=_0x3b7d1d;_0x500ecf['error']({'title':_0x46c8ad[_0x5d8699('0x1b51')]?'API:'+_0x46c8ad['status']+_0x5d8699('0x1b0b')+_0x46c8ad[_0x5d8699('0x22ce')]:_0x5d8699('0x1df6'),'msg':_0x46c8ad[_0x5d8699('0x11fc')]?JSON[_0x5d8699('0x1be0')](_0x46c8ad[_0x5d8699('0x11fc')]):_0x46c8ad['toString']()});});}}const _0x379fb5=_0x1927f6,_0x3a4350=_0x18dd13['p']+_0x34e79e('0x1412');_0xee5f57[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x232d'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0xee5f57(_0x4a8e0b,_0x244b09,_0x33504b,_0x8cb079,_0x365d80,_0x58ce51,_0x2c627e,_0x3305b4,_0x1f27a5,_0x185e91,_0x436bab,_0x584446,_0xe3e0e5,_0x1fc669,_0x32a53a,_0x345b7f,_0x590162){const _0x2f16ec=_0x34e79e,_0x5327f8=this;_0x5327f8[_0x2f16ec('0x130d')]=_0x345b7f,_0x5327f8[_0x2f16ec('0x1af0')]=_0x590162,_0x5327f8['currentUser']=_0x32a53a[_0x2f16ec('0x24cc')](),_0x5327f8['voicemails']=_0x1f27a5||{'count':0x0,'rows':[]},_0x5327f8[_0x2f16ec('0x63c')]=_0x185e91,_0x5327f8['userProfileSection']=_0x436bab&&_0x436bab[_0x2f16ec('0x338')]==0x1?_0x436bab[_0x2f16ec('0x25df')][0x0]:null,_0x5327f8[_0x2f16ec('0xe28')]=_0x32a53a[_0x2f16ec('0x157e')](_0x5327f8['userProfileSection']?_0x5327f8[_0x2f16ec('0xec9')][_0x2f16ec('0xe28')]:null),_0x5327f8['table']=_0x2f16ec('0x232d'),_0x5327f8['listOrder']='',_0x5327f8[_0x2f16ec('0x25e2')]=null,_0x5327f8[_0x2f16ec('0x2778')]=[],_0x5327f8[_0x2f16ec('0x135a')]={'fields':_0x2f16ec('0x6a4'),'sort':_0x2f16ec('0x1cee'),'limit':0xa,'page':0x1},_0x5327f8[_0x2f16ec('0x390')]=_0x283545()[_0x2f16ec('0x13cf')]([{'option':_0x2f16ec('0xb23'),'value':'\x27yes\x27'},{'option':'No','value':_0x2f16ec('0x2363')}],function(_0x12e9b6){const _0x1621e5=_0x2f16ec;return _0x283545()[_0x1621e5('0x10a4')](_0x12e9b6[_0x1621e5('0x49')],new RegExp('\x27','g'),'');}),_0x5327f8[_0x2f16ec('0x329')]=_0x283545()[_0x2f16ec('0x13cf')]([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x2f16ec('0x2363')}],function(_0x1ff695){const _0x2464b4=_0x2f16ec;return _0x283545()[_0x2464b4('0x10a4')](_0x1ff695['value'],new RegExp('\x27','g'),'');}),_0x5327f8[_0x2f16ec('0x2353')]=_0x283545()[_0x2f16ec('0x13cf')]([{'option':_0x2f16ec('0xb23'),'value':'\x27yes\x27'},{'option':'No','value':_0x2f16ec('0x2363')}],function(_0x8d36fe){const _0x158776=_0x2f16ec;return _0x283545()[_0x158776('0x10a4')](_0x8d36fe[_0x158776('0x49')],new RegExp('\x27','g'),'');}),_0x5327f8[_0x2f16ec('0x1f7e')]=_0x20564c,_0x5327f8['deleteconfirm']=_0x393dec,_0x5327f8[_0x2f16ec('0x173b')]=_0x3e5969,_0x5327f8[_0x2f16ec('0x8e')]=_0x43452e,_0x5327f8['createOrEditVoicemail']=_0x5667b7,_0x5327f8[_0x2f16ec('0xf20')]=_0x365179,_0x5327f8[_0x2f16ec('0x1521')]=_0x4f4b21,_0x5327f8[_0x2f16ec('0x962')]=_0x828213,_0x5327f8[_0x2f16ec('0x33e')]=_0x1479b0,_0x5327f8[_0x2f16ec('0x1821')]=_0x4080b5;function _0x20564c(_0x1d3c20){const _0x559c78=_0x2f16ec;_0x33504b['go'](_0x559c78('0xa16'),{'id':_0x1d3c20['id'],'voicemail':_0x1d3c20,'crudPermissions':_0x5327f8[_0x559c78('0xe28')]});}function _0x393dec(_0x3f37cd,_0x646039){const _0x897791=_0x2f16ec,_0x1f9efe=_0x365d80[_0x897791('0x112e')]()[_0x897791('0x14e4')](_0x897791('0x2114')+_0x283545()[_0x897791('0x114')]('voicemail')+'?')['htmlContent'](_0x897791('0x1670')+(_0x3f37cd['name']||_0x897791('0x2339'))+_0x897791('0x229e')+'\x20will\x20be\x20deleted.')[_0x897791('0x10bc')]('delete\x20voicemail')[_0x897791('0x24d0')](_0x646039)['ok']('OK')[_0x897791('0x1801')]('CANCEL');_0x365d80['show'](_0x1f9efe)[_0x897791('0x2788')](function(){_0x365179(_0x3f37cd);},function(){console['log']('CANCEL');});}let _0x1c9f5e=!![],_0xf39b73=0x1;_0x4a8e0b[_0x2f16ec('0x1662')](_0x2f16ec('0x1569'),function(_0x5e1424,_0x22012c){const _0x5e3fd7=_0x2f16ec;_0x1c9f5e?_0x2c627e(function(){_0x1c9f5e=![];}):(!_0x22012c&&(_0xf39b73=_0x5327f8['query']['page']),_0x5e1424!==_0x22012c&&(_0x5327f8[_0x5e3fd7('0x135a')]['page']=0x1),!_0x5e1424&&(_0x5327f8[_0x5e3fd7('0x135a')][_0x5e3fd7('0x23f5')]=_0xf39b73),_0x5327f8[_0x5e3fd7('0x8e')]());});function _0x3e5969(_0x5136a0){const _0x504161=_0x2f16ec;_0x5327f8[_0x504161('0x232d')]=_0x5136a0||{'count':0x0,'rows':[]};}function _0x43452e(){const _0x1f308f=_0x2f16ec;_0x5327f8['query']['offset']=(_0x5327f8[_0x1f308f('0x135a')][_0x1f308f('0x23f5')]-0x1)*_0x5327f8[_0x1f308f('0x135a')]['limit'],_0x32a53a[_0x1f308f('0x1516')]('admin')?_0x5327f8[_0x1f308f('0x1808')]=_0x584446['voiceMail'][_0x1f308f('0x1335')](_0x5327f8[_0x1f308f('0x135a')],_0x3e5969)[_0x1f308f('0x1714')]:(_0x5327f8[_0x1f308f('0x135a')]['id']=_0x5327f8[_0x1f308f('0x63c')]['id'],_0x5327f8[_0x1f308f('0x135a')][_0x1f308f('0xb13')]='Voicemails',_0x5327f8['promise']=_0x584446[_0x1f308f('0x63c')]['getResources'](_0x5327f8['query'],_0x3e5969)[_0x1f308f('0x1714')]);}function _0x5667b7(_0x1a3396,_0x38fb45){const _0x2b3808=_0x2f16ec;_0x365d80['show']({'controller':_0x2b3808('0x1396'),'controllerAs':'vm','templateUrl':_0x3a4350,'parent':angular[_0x2b3808('0x16b1')](_0x58ce51[_0x2b3808('0x945')]),'targetEvent':_0x1a3396,'clickOutsideToClose':!![],'locals':{'voicemail':_0x38fb45,'voicemails':_0x5327f8[_0x2b3808('0x232d')][_0x2b3808('0x25df')],'license':_0x5327f8['license'],'setting':_0x5327f8[_0x2b3808('0x1af0')],'crudPermissions':_0x5327f8[_0x2b3808('0xe28')]}});}function _0x365179(_0x531fde){const _0x1b2ded=_0x2f16ec;_0x584446['voiceMail'][_0x1b2ded('0x17c4')]({'id':_0x531fde['id']})[_0x1b2ded('0x1714')][_0x1b2ded('0x2788')](function(){const _0x4a6b20=_0x1b2ded;_0x283545()[_0x4a6b20('0x1a90')](_0x5327f8['voicemails'][_0x4a6b20('0x25df')],{'id':_0x531fde['id']}),_0x5327f8[_0x4a6b20('0x232d')][_0x4a6b20('0x338')]-=0x1,!_0x5327f8[_0x4a6b20('0x232d')][_0x4a6b20('0x25df')][_0x4a6b20('0x2566')]&&_0x5327f8[_0x4a6b20('0x8e')](),_0x1fc669[_0x4a6b20('0x173b')]({'title':_0x283545()[_0x4a6b20('0x114')](_0x4a6b20('0x1920'))+_0x4a6b20('0x20db'),'msg':_0x531fde[_0x4a6b20('0x1a8d')]?_0x531fde[_0x4a6b20('0x1a8d')]+_0x4a6b20('0x14d4'):''});})[_0x1b2ded('0x1cb5')](function(_0x16a7be){const _0x3b0aab=_0x1b2ded;if(_0x16a7be[_0x3b0aab('0x11fc')]&&_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')]&&_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')][_0x3b0aab('0x2566')]){_0x5327f8[_0x3b0aab('0x25be')]=_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')]||[{'message':_0x16a7be[_0x3b0aab('0x17df')](),'type':_0x3b0aab('0x1395')}];for(let _0x365f2e=0x0;_0x365f2e<_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')][_0x3b0aab('0x2566')];_0x365f2e++){_0x1fc669[_0x3b0aab('0x5e8')]({'title':_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')][_0x365f2e][_0x3b0aab('0x1d7')],'msg':_0x16a7be[_0x3b0aab('0x11fc')][_0x3b0aab('0x25be')][_0x365f2e][_0x3b0aab('0x15e2')]});}}else _0x1fc669[_0x3b0aab('0x5e8')]({'title':_0x16a7be['status']?_0x3b0aab('0x15d1')+_0x16a7be[_0x3b0aab('0x1b51')]+_0x3b0aab('0x1b0b')+_0x16a7be[_0x3b0aab('0x22ce')]:_0x3b0aab('0x1395'),'msg':_0x16a7be[_0x3b0aab('0x11fc')]?JSON['stringify'](_0x16a7be[_0x3b0aab('0x11fc')]['message']):_0x16a7be['message']||_0x16a7be['toString']()});});}function _0x4f4b21(){const _0x280f43=_0x2f16ec,_0x49795f=angular[_0x280f43('0x2669')](_0x5327f8['selectedVoicemails']);return _0x5327f8['selectedVoicemails']=[],_0x49795f;}function _0x828213(_0x1e85bb){const _0x5611a7=_0x2f16ec,_0x3b9d02=_0x365d80[_0x5611a7('0x112e')]()[_0x5611a7('0x14e4')](_0x5611a7('0x2653'))['htmlContent'](_0x5611a7('0x1670')+_0x5327f8[_0x5611a7('0x2778')][_0x5611a7('0x2566')]+_0x5611a7('0xbd')+_0x5611a7('0x27c7'))[_0x5611a7('0x10bc')](_0x5611a7('0x1303'))[_0x5611a7('0x24d0')](_0x1e85bb)['ok']('OK')[_0x5611a7('0x1801')](_0x5611a7('0x1d8d'));_0x365d80[_0x5611a7('0x2fa')](_0x3b9d02)['then'](function(){const _0x108032=_0x5611a7;_0x5327f8[_0x108032('0x2778')][_0x108032('0x1534')](function(_0x581cce){_0x365179(_0x581cce);}),_0x5327f8[_0x108032('0x2778')]=[];});}function _0x1479b0(){_0x5327f8['selectedVoicemails']=[];}function _0x4080b5(){const _0x506200=_0x2f16ec;_0x5327f8[_0x506200('0x2778')]=_0x5327f8[_0x506200('0x232d')]['rows'];}}const _0x33374d=_0xee5f57;_0x13709e[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty','voicePrefixes','voicePrefix',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting','crudPermissions'];function _0x13709e(_0x449e6c,_0x4b784b,_0x27f38b,_0x3c095f,_0x2e7a01,_0x198bf6,_0x2dbe98,_0x253705,_0x153b39,_0x7334d7,_0x56fa9f,_0x5b30fb,_0x14ea56,_0x3dbd24){const _0x2e1c71=_0x34e79e,_0x268b07=this;_0x268b07[_0x2e1c71('0x9cb')]=_0x56fa9f[_0x2e1c71('0x24cc')](),_0x268b07['errors']=[],_0x268b07['setting']=_0x14ea56,_0x268b07[_0x2e1c71('0x130d')]=_0x5b30fb,_0x268b07[_0x2e1c71('0xe28')]=_0x3dbd24,_0x268b07['hasModulePermissions']={},_0x268b07[_0x2e1c71('0x18ad')]=_0x268b07[_0x2e1c71('0x1af0')]&&_0x268b07['setting'][_0x2e1c71('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x268b07[_0x2e1c71('0x14e4')]=_0x2e1c71('0x209c'),_0x268b07['voicePrefix']=angular[_0x2e1c71('0x2669')](_0x153b39),_0x268b07[_0x2e1c71('0xc76')]=_0x253705,_0x268b07[_0x2e1c71('0x1756')]=![];!_0x268b07['voicePrefix']&&(_0x268b07[_0x2e1c71('0x17ee')]={},_0x268b07[_0x2e1c71('0x14e4')]=_0x2e1c71('0xebd'),_0x268b07[_0x2e1c71('0x1756')]=!![]);_0x268b07[_0x2e1c71('0x1447')]=_0x3a0996,_0x268b07['savevoicePrefix']=_0x5d10a1,_0x268b07[_0x2e1c71('0x2127')]=_0x649556,_0x268b07[_0x2e1c71('0x2601')]=_0x634188,_0x268b07['closeDialog']=_0x257bb8,_0x56fa9f[_0x2e1c71('0x1516')](_0x2e1c71('0xe23'))?_0x7334d7[_0x2e1c71('0x2636')][_0x2e1c71('0x1335')]({'fields':_0x2e1c71('0x174d'),'type':_0x2e1c71('0x1'),'VoiceExtensionId':'null','nolimit':'true'})[_0x2e1c71('0x1714')][_0x2e1c71('0x2788')](function(_0xb9821e){const _0x562953=_0x2e1c71;_0x268b07['outboundRoutes']=_0xb9821e[_0x562953('0x25df')]||[];})[_0x2e1c71('0x1cb5')](function(_0xb7ca7b){const _0x4c9339=_0x2e1c71;_0x2dbe98[_0x4c9339('0x5e8')]({'title':_0xb7ca7b['status']?'API:'+_0xb7ca7b['status']+_0x4c9339('0x1b0b')+_0xb7ca7b[_0x4c9339('0x22ce')]:_0x4c9339('0x10ea'),'msg':_0xb7ca7b['data']?JSON[_0x4c9339('0x1be0')](_0xb7ca7b[_0x4c9339('0x11fc')]):_0xb7ca7b[_0x4c9339('0x17df')]()});}):_0x7334d7[_0x2e1c71('0x2636')][_0x2e1c71('0x1335')]({'fields':_0x2e1c71('0x174d'),'type':_0x2e1c71('0x1'),'VoiceExtensionId':_0x2e1c71('0x954'),'nolimit':_0x2e1c71('0x1001')})['$promise'][_0x2e1c71('0x2788')](function(_0x5b24f6){const _0x17f12a=_0x2e1c71;_0x268b07[_0x17f12a('0xf8')]=_0x5b24f6[_0x17f12a('0x25df')]||[];})[_0x2e1c71('0x2788')](function(){const _0x4e5d5e=_0x2e1c71;return _0x7334d7['userProfileSection'][_0x4e5d5e('0x1335')]({'userProfileId':_0x268b07[_0x4e5d5e('0x9cb')][_0x4e5d5e('0x237f')],'sectionId':0x193})['$promise'];})['then'](function(_0x373c62){const _0x5a790b=_0x2e1c71,_0x813ef2=_0x373c62&&_0x373c62['rows']?_0x373c62['rows'][0x0]:null;if(!_0x813ef2){const _0x3314d2=[];let _0x48e9a4=null;_0x268b07[_0x5a790b('0x17ee')]&&(_0x48e9a4=_0x283545()['find'](_0x268b07[_0x5a790b('0xf8')],{'id':Number(_0x268b07[_0x5a790b('0x17ee')][_0x5a790b('0xa33')])}));for(let _0x3d807a=0x0;_0x3d807a<_0x268b07[_0x5a790b('0xf8')][_0x5a790b('0x2566')];_0x3d807a++){_0x48e9a4&&_0x268b07[_0x5a790b('0xf8')][_0x3d807a]['id']===_0x48e9a4['id']&&(_0x268b07[_0x5a790b('0xf8')][_0x3d807a][_0x5a790b('0x3bf')]=![],_0x3314d2[_0x5a790b('0x13e3')](_0x268b07['outboundRoutes'][_0x3d807a]));}_0x268b07[_0x5a790b('0xf8')]=_0x3314d2;}else{if(!_0x813ef2[_0x5a790b('0x1c0a')])return _0x7334d7[_0x5a790b('0x1050')][_0x5a790b('0x1335')]({'sectionId':_0x813ef2['id']})[_0x5a790b('0x1714')][_0x5a790b('0x2788')](function(_0x2caae7){const _0x1a790b=_0x5a790b,_0x331f41=_0x283545()[_0x1a790b('0x155d')](_0x2caae7['rows'],function(_0x397386){const _0x12cec6=_0x1a790b;return _0x283545()[_0x12cec6('0x20e8')](_0x268b07['outboundRoutes'],{'id':_0x397386[_0x12cec6('0x2707')]});});let _0x5e61ab=null;_0x268b07[_0x1a790b('0x17ee')]&&(_0x5e61ab=_0x283545()[_0x1a790b('0x20e8')](_0x268b07[_0x1a790b('0xf8')],{'id':Number(_0x268b07[_0x1a790b('0x17ee')][_0x1a790b('0xa33')])}));if(_0x5e61ab&&!_0x283545()[_0x1a790b('0xc5d')](_0x331f41,['id',_0x5e61ab['id']])){const _0x2afeb0=_0x283545()[_0x1a790b('0x20e8')](_0x268b07['outboundRoutes'],{'id':_0x5e61ab['id']});_0x2afeb0['canSelect']=![],_0x331f41[_0x1a790b('0x13e3')](_0x2afeb0);}_0x268b07[_0x1a790b('0xf8')]=_0x331f41;});}})[_0x2e1c71('0x1cb5')](function(_0x1c91bd){const _0x2715e9=_0x2e1c71;_0x2dbe98[_0x2715e9('0x5e8')]({'title':_0x1c91bd[_0x2715e9('0x1b51')]?'API:'+_0x1c91bd[_0x2715e9('0x1b51')]+'\x20-\x20'+_0x1c91bd[_0x2715e9('0x22ce')]:'SYSTEM:GEToutboundRoutes','msg':_0x1c91bd[_0x2715e9('0x11fc')]?JSON['stringify'](_0x1c91bd[_0x2715e9('0x11fc')]):_0x1c91bd['toString']()});});function _0x3a0996(){const _0x11eb83=_0x2e1c71;_0x268b07[_0x11eb83('0x25be')]=[],_0x7334d7['voicePrefix']['save'](_0x268b07[_0x11eb83('0x17ee')])[_0x11eb83('0x1714')][_0x11eb83('0x2788')](function(_0x5610f3){const _0x5862f0=_0x11eb83;_0x268b07[_0x5862f0('0xc76')][_0x5862f0('0xc51')](_0x5610f3[_0x5862f0('0x1cbf')]()),_0x2dbe98[_0x5862f0('0x173b')]({'title':_0x5862f0('0x108a'),'msg':_0x268b07[_0x5862f0('0x17ee')][_0x5862f0('0x1a8d')]?_0x268b07[_0x5862f0('0x17ee')][_0x5862f0('0x1a8d')]+_0x5862f0('0x1e4a'):''}),_0x257bb8(_0x5610f3);})['catch'](function(_0x511756){const _0x25f384=_0x11eb83;if(_0x511756[_0x25f384('0x11fc')]&&_0x511756[_0x25f384('0x11fc')]['errors']&&_0x511756['data']['errors'][_0x25f384('0x2566')]){_0x268b07[_0x25f384('0x25be')]=_0x511756[_0x25f384('0x11fc')][_0x25f384('0x25be')]||[{'message':_0x511756[_0x25f384('0x17df')](),'type':_0x25f384('0x17d8')}];for(let _0x46d4b5=0x0;_0x46d4b5<_0x511756[_0x25f384('0x11fc')][_0x25f384('0x25be')]['length'];_0x46d4b5+=0x1){_0x2dbe98[_0x25f384('0x5e8')]({'title':_0x511756['data'][_0x25f384('0x25be')][_0x46d4b5][_0x25f384('0x1d7')],'msg':_0x511756[_0x25f384('0x11fc')][_0x25f384('0x25be')][_0x46d4b5][_0x25f384('0x15e2')]});}}else _0x2dbe98[_0x25f384('0x5e8')]({'title':_0x511756['status']?_0x25f384('0x15d1')+_0x511756[_0x25f384('0x1b51')]+_0x25f384('0x1b0b')+_0x511756[_0x25f384('0x22ce')]:_0x25f384('0x17d8'),'msg':_0x511756[_0x25f384('0x11fc')]?JSON['stringify'](_0x511756['data'][_0x25f384('0x15e2')]):_0x511756[_0x25f384('0x17df')]()});});}function _0x5d10a1(){const _0x2b2b5e=_0x2e1c71;_0x268b07['errors']=[],_0x7334d7[_0x2b2b5e('0x17ee')]['update']({'id':_0x268b07[_0x2b2b5e('0x17ee')]['id']},_0x268b07[_0x2b2b5e('0x17ee')])[_0x2b2b5e('0x1714')]['then'](function(_0x2032d5){const _0x3352cf=_0x2b2b5e,_0x44cbf6=_0x283545()[_0x3352cf('0x20e8')](_0x268b07['voicePrefixes'],{'id':_0x2032d5['id']});_0x44cbf6&&_0x283545()[_0x3352cf('0x2503')](_0x44cbf6,_0x283545()[_0x3352cf('0x41b')](_0x2032d5[_0x3352cf('0x1cbf')](),_0x283545()['keys'](_0x44cbf6))),_0x2dbe98[_0x3352cf('0x173b')]({'title':_0x3352cf('0xc34'),'msg':_0x268b07[_0x3352cf('0x17ee')][_0x3352cf('0x1a8d')]?_0x268b07['voicePrefix']['name']+_0x3352cf('0x24cf'):''}),_0x257bb8(_0x2032d5);})['catch'](function(_0x28cd6a){const _0xe8ea5b=_0x2b2b5e;if(_0x28cd6a[_0xe8ea5b('0x11fc')]&&_0x28cd6a[_0xe8ea5b('0x11fc')][_0xe8ea5b('0x25be')]&&_0x28cd6a['data'][_0xe8ea5b('0x25be')][_0xe8ea5b('0x2566')]){_0x268b07[_0xe8ea5b('0x25be')]=_0x28cd6a[_0xe8ea5b('0x11fc')][_0xe8ea5b('0x25be')]||[{'message':_0x28cd6a[_0xe8ea5b('0x17df')](),'type':_0xe8ea5b('0x1d46')}];for(let _0x240e29=0x0;_0x240e29<_0x28cd6a[_0xe8ea5b('0x11fc')][_0xe8ea5b('0x25be')]['length'];_0x240e29++){_0x2dbe98[_0xe8ea5b('0x5e8')]({'title':_0x28cd6a['data']['errors'][_0x240e29][_0xe8ea5b('0x1d7')],'msg':_0x28cd6a[_0xe8ea5b('0x11fc')][_0xe8ea5b('0x25be')][_0x240e29]['message']});}}else _0x2dbe98[_0xe8ea5b('0x5e8')]({'title':_0x28cd6a['status']?_0xe8ea5b('0x15d1')+_0x28cd6a[_0xe8ea5b('0x1b51')]+'\x20-\x20'+_0x28cd6a[_0xe8ea5b('0x22ce')]:'api.voicePrefix.update','msg':_0x28cd6a[_0xe8ea5b('0x11fc')]?JSON[_0xe8ea5b('0x1be0')](_0x28cd6a[_0xe8ea5b('0x11fc')]['message']):_0x28cd6a[_0xe8ea5b('0x17df')]()});});}function _0x649556(_0x426b67){const _0x4d9fcd=_0x2e1c71;_0x268b07[_0x4d9fcd('0x25be')]=[];const _0x22f503=_0x3c095f[_0x4d9fcd('0x112e')]()[_0x4d9fcd('0x14e4')](_0x4d9fcd('0x458'))[_0x4d9fcd('0x1c98')](_0x4d9fcd('0x668'))[_0x4d9fcd('0x10bc')](_0x4d9fcd('0xf1c'))['ok'](_0x4d9fcd('0x2786'))['cancel'](_0x4d9fcd('0x1481'))['targetEvent'](_0x426b67);_0x3c095f[_0x4d9fcd('0x2fa')](_0x22f503)[_0x4d9fcd('0x2788')](function(){const _0xf7cd6b=_0x4d9fcd;_0x7334d7[_0xf7cd6b('0x17ee')][_0xf7cd6b('0x17c4')]({'id':_0x268b07[_0xf7cd6b('0x17ee')]['id']})['$promise'][_0xf7cd6b('0x2788')](function(){const _0x25a2e4=_0xf7cd6b;_0x283545()[_0x25a2e4('0x1a90')](_0x268b07[_0x25a2e4('0xc76')],{'id':_0x268b07[_0x25a2e4('0x17ee')]['id']}),_0x2dbe98[_0x25a2e4('0x173b')]({'title':_0x25a2e4('0x20a1'),'msg':(_0x268b07['voicePrefix']['name']||'voicePrefix')+_0x25a2e4('0x14d4')}),_0x257bb8(_0x268b07['voicePrefix']);})[_0xf7cd6b('0x1cb5')](function(_0x1147ee){const _0x31be93=_0xf7cd6b;if(_0x1147ee[_0x31be93('0x11fc')]&&_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')]&&_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')][_0x31be93('0x2566')]){_0x268b07[_0x31be93('0x25be')]=_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')]||[{'message':_0x1147ee['toString'](),'type':_0x31be93('0x3a4')}];for(let _0xc802a9=0x0;_0xc802a9<_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')][_0x31be93('0x2566')];_0xc802a9++){_0x2dbe98[_0x31be93('0x5e8')]({'title':_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')][_0xc802a9][_0x31be93('0x1d7')],'msg':_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x25be')][_0xc802a9][_0x31be93('0x15e2')]});}}else _0x2dbe98[_0x31be93('0x5e8')]({'title':_0x1147ee[_0x31be93('0x1b51')]?_0x31be93('0x15d1')+_0x1147ee[_0x31be93('0x1b51')]+_0x31be93('0x1b0b')+_0x1147ee[_0x31be93('0x22ce')]:_0x31be93('0x3a4'),'msg':_0x1147ee['data']?JSON[_0x31be93('0x1be0')](_0x1147ee[_0x31be93('0x11fc')][_0x31be93('0x15e2')]):_0x1147ee['message']||_0x1147ee[_0x31be93('0x17df')]()});});},function(){});}function _0x634188(_0x2e5f90){return _0x2e5f90===null?undefined:new Date(_0x2e5f90);}function _0x257bb8(_0x1db099){const _0x1a09fb=_0x2e1c71;_0x3c095f[_0x1a09fb('0x19d')](_0x1db099);}}const _0xce6aac=_0x13709e;_0x4f9182['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),'voicePrefix',_0x34e79e('0xc76'),_0x34e79e('0x548'),'$translate',_0x34e79e('0x1b04'),'crudPermissions'];function _0x4f9182(_0x10d3fc,_0x50ccef,_0x32076d,_0x48d729,_0x567f0b,_0x4477c4,_0x35550b,_0x828b6f,_0x3f01a4,_0x5a29e6){const _0x49edae=_0x34e79e,_0xe8cf7f=this;_0xe8cf7f['currentUser']=_0x3f01a4[_0x49edae('0x24cc')](),_0xe8cf7f[_0x49edae('0x17ee')]=_0x567f0b,_0xe8cf7f[_0x49edae('0xe28')]=_0x5a29e6,_0xe8cf7f[_0x49edae('0x548')]=_0x35550b,_0xe8cf7f[_0x49edae('0x117b')]=[],_0xe8cf7f[_0x49edae('0x73d')]=[],_0xe8cf7f['selectedItems']=[],_0xe8cf7f[_0x49edae('0x12d9')]=[],_0xe8cf7f[_0x49edae('0xd0d')]=[],_0xe8cf7f[_0x49edae('0x2677')]=![],_0xe8cf7f[_0x49edae('0x122e')]=_0x36cb6f,_0xe8cf7f[_0x49edae('0x1f8d')]=_0x1cb9b0,_0xe8cf7f[_0x49edae('0xca7')]=_0x1dbb4e,_0xe8cf7f[_0x49edae('0x121')]={'readOnly':!_0xe8cf7f[_0x49edae('0xe28')][_0x49edae('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x49edae('0x1a8d'),'line1':'fullname','line2':['name',_0x49edae('0x2838')],'line3':'','labelAll':_0x828b6f['instant']('VOICE.ALL_AGENTS'),'labelSelected':_0x828b6f['instant']('VOICE.SELECTED_AGENTS'),'transferCallback':function(){const _0xf375a1=_0x49edae,_0x386f4b=_0x283545()[_0xf375a1('0x12d1')](_0xe8cf7f[_0xf375a1('0xd0d')],_0xe8cf7f[_0xf375a1('0x283f')],'id');_0xe8cf7f[_0xf375a1('0x2677')]=_0x283545()[_0xf375a1('0x213d')](_0x386f4b)?![]:!![];}};function _0x36cb6f(){const _0x502279=_0x49edae;return _0x3f01a4['hasRole'](_0x502279('0xe23'))?_0x5808b5()[_0x502279('0x1cb5')](function(_0xbb4f7f){const _0x17caa2=_0x502279;_0x32076d[_0x17caa2('0x5e8')]({'title':_0xbb4f7f[_0x17caa2('0x1b51')]?'API:'+_0xbb4f7f[_0x17caa2('0x1b51')]+_0x17caa2('0x1b0b')+_0xbb4f7f[_0x17caa2('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0xbb4f7f[_0x17caa2('0x1b51')]?JSON[_0x17caa2('0x1be0')](_0xbb4f7f['data']):_0xbb4f7f[_0x17caa2('0x17df')]()});}):_0x5dfc92()['then'](function(_0x11b2de){const _0x4db428=_0x502279;return _0xe8cf7f[_0x4db428('0xb13')]=_0x11b2de,_0x5808b5();})['catch'](function(_0x20a0e4){const _0x41bfe0=_0x502279;_0x32076d[_0x41bfe0('0x5e8')]({'title':_0x20a0e4['status']?_0x41bfe0('0x15d1')+_0x20a0e4['status']+_0x41bfe0('0x1b0b')+_0x20a0e4[_0x41bfe0('0x22ce')]:_0x41bfe0('0xd90'),'msg':_0x20a0e4[_0x41bfe0('0x1b51')]?JSON[_0x41bfe0('0x1be0')](_0x20a0e4[_0x41bfe0('0x11fc')]):_0x20a0e4[_0x41bfe0('0x17df')]()});});}function _0x5dfc92(){return _0x50ccef(function(_0x15cf41,_0x2168af){const _0x3e7191=a0_0x14e7;_0x48d729[_0x3e7191('0xec9')][_0x3e7191('0x1335')]({'userProfileId':_0xe8cf7f[_0x3e7191('0x9cb')][_0x3e7191('0x237f')],'name':_0x3e7191('0x1f72')})[_0x3e7191('0x1714')][_0x3e7191('0x2788')](function(_0x5db8fe){const _0x9dbb56=_0x3e7191,_0x1e56d6=_0x5db8fe&&_0x5db8fe[_0x9dbb56('0x25df')]?_0x5db8fe[_0x9dbb56('0x25df')][0x0]:null;_0x15cf41(_0x1e56d6);})[_0x3e7191('0x1cb5')](function(_0x561511){_0x2168af(_0x561511);});});}function _0x5808b5(){return _0x50ccef(function(_0x5171c7,_0x413c92){const _0x430d2d=a0_0x14e7;return _0x2a006b()[_0x430d2d('0x2788')](function(_0x420c38){const _0x591adf=_0x430d2d;return _0xe8cf7f[_0x591adf('0x117b')]=_0x420c38['rows']?_0x420c38[_0x591adf('0x25df')]:[],_0x3f01a4[_0x591adf('0x1516')](_0x591adf('0xe23'))?_0x420c38:_0xe8cf7f['section']?_0xe8cf7f[_0x591adf('0xb13')]['autoAssociation']?_0x420c38:_0xa4cf25():null;})[_0x430d2d('0x2788')](function(_0x59bd47){const _0x7352a4=_0x430d2d,_0xfc178d=_0x59bd47&&_0x59bd47['rows']?_0x59bd47[_0x7352a4('0x25df')]:[];return _0xe8cf7f[_0x7352a4('0x73d')]=_0x283545()[_0x7352a4('0x155d')](_0xfc178d,function(_0x56b3c7){const _0x16d167=_0x7352a4;return _0x283545()['find'](_0xe8cf7f['items'],{'id':_0x3f01a4['hasRole']('admin')||_0xe8cf7f[_0x16d167('0xb13')][_0x16d167('0x1c0a')]?_0x56b3c7['id']:_0x56b3c7[_0x16d167('0x2707')]});}),_0xe8cf7f[_0x7352a4('0x12d9')]=angular['copy'](_0xe8cf7f[_0x7352a4('0x73d')]),_0xe8cf7f[_0x7352a4('0x117b')][_0x7352a4('0x1534')](function(_0x329117){const _0xe7b3ee=_0x7352a4,_0x24d962=_0x283545()[_0xe7b3ee('0x20e8')](_0xe8cf7f[_0xe7b3ee('0x73d')],{'id':_0x329117['id']});_0x3f01a4['hasRole'](_0xe7b3ee('0xe23'))?_0x329117[_0xe7b3ee('0x68d')]=!![]:_0x329117[_0xe7b3ee('0x68d')]=typeof _0x24d962!==_0xe7b3ee('0xedb')?!![]:![];}),_0x15d250();})[_0x430d2d('0x2788')](function(_0x21375f){const _0x53122c=_0x430d2d,_0x20408d=_0x21375f&&_0x21375f[_0x53122c('0x25df')]?_0x21375f[_0x53122c('0x25df')]:[];_0xe8cf7f['selectedItems']=_0x283545()[_0x53122c('0x155d')](_0x20408d,function(_0x13c5fd){const _0x3922a8=_0x53122c,_0x53a7dd=_0x283545()['find'](_0xe8cf7f[_0x3922a8('0x117b')],{'id':_0x13c5fd['id']});return _0x53a7dd[_0x3922a8('0x1ab')]=_0x13c5fd[_0x3922a8('0x24a4')]?_0x3922a8('0x1b9d')+_0x13c5fd[_0x3922a8('0x24a4')][_0x3922a8('0x1ab')]:'',_0x53a7dd[_0x3922a8('0x2838')]=typeof _0x13c5fd[_0x3922a8('0x2838')]!==_0x3922a8('0xedb')?'<'+_0x13c5fd[_0x3922a8('0x2838')]+'>':'',_0x53a7dd;}),_0xe8cf7f['startingSelectedItems']=angular['copy'](_0xe8cf7f[_0x53122c('0x283f')]),_0xe8cf7f['dualMultiselectOptions'][_0x53122c('0x283f')]=_0xe8cf7f[_0x53122c('0x283f')],_0xe8cf7f[_0x53122c('0x121')][_0x53122c('0x117b')]=_0x283545()[_0x53122c('0x432')](_0xe8cf7f[_0x53122c('0x73d')],_0xe8cf7f[_0x53122c('0x121')][_0x53122c('0x283f')],'id'),_0x5171c7();})[_0x430d2d('0x1cb5')](function(_0x43d198){_0x413c92(_0x43d198);});});}function _0xa4cf25(){return _0x50ccef(function(_0x334189,_0x570cc4){const _0x36b25f=a0_0x14e7;return _0x48d729[_0x36b25f('0x1050')]['get']({'sectionId':_0xe8cf7f['section']['id'],'nolimit':!![]})[_0x36b25f('0x1714')][_0x36b25f('0x2788')](function(_0x3916fb){_0x334189(_0x3916fb);})[_0x36b25f('0x1cb5')](function(_0x238ebb){_0x570cc4(_0x238ebb);});});}function _0x15d250(){return _0x50ccef(function(_0x553cb2,_0x178929){const _0x4e243a=a0_0x14e7;return _0x48d729[_0x4e243a('0x17ee')]['getAgents']({'id':_0xe8cf7f[_0x4e243a('0x17ee')]['id'],'fields':_0x4e243a('0x1d32'),'nolimit':!![],'role':_0x4e243a('0x188b')})[_0x4e243a('0x1714')]['then'](function(_0x388789){_0x553cb2(_0x388789);})[_0x4e243a('0x1cb5')](function(_0x17cce6){_0x178929(_0x17cce6);});});}function _0x2a006b(){return _0x50ccef(function(_0x2ad3ec,_0xc68efe){const _0x3262f1=a0_0x14e7;return _0x48d729[_0x3262f1('0x1e6a')][_0x3262f1('0x1335')]({'fields':_0x3262f1('0x1d32'),'nolimit':!![],'role':_0x3262f1('0x188b')})[_0x3262f1('0x1714')][_0x3262f1('0x2788')](function(_0x271fb){_0x2ad3ec(_0x271fb);})[_0x3262f1('0x1cb5')](function(_0x3fc704){_0xc68efe(_0x3fc704);});});}function _0x21c169(_0x466f4a){return _0x50ccef(function(_0x330bde,_0x40b46d){const _0x210dea=a0_0x14e7;_0x283545()['isEmpty'](_0x466f4a)?_0x330bde():_0x48d729['voicePrefix'][_0x210dea('0x588')]({'id':_0xe8cf7f[_0x210dea('0x17ee')]['id'],'ids':_0x283545()['map'](_0x466f4a,'id')})[_0x210dea('0x1714')]['then'](function(){_0x330bde();})[_0x210dea('0x1cb5')](function(_0x17f5e6){_0x40b46d(_0x17f5e6);});});}function _0x5efc8e(_0x5240d1){return _0x50ccef(function(_0x515a0b,_0x2b034d){const _0x29c42b=a0_0x14e7;_0x283545()['isEmpty'](_0x5240d1)?_0x515a0b():_0x48d729['voicePrefix'][_0x29c42b('0x1d72')]({'id':_0xe8cf7f[_0x29c42b('0x17ee')]['id'],'ids':_0x283545()['map'](_0x5240d1,'id')})[_0x29c42b('0x1714')][_0x29c42b('0x2788')](function(){_0x515a0b();})[_0x29c42b('0x1cb5')](function(_0x520369){_0x2b034d(_0x520369);});});}function _0x1cb9b0(){const _0x2f4ae6=_0x49edae,_0x1a1287=_0x283545()['differenceBy'](_0xe8cf7f[_0x2f4ae6('0xd0d')],_0xe8cf7f[_0x2f4ae6('0x283f')],'id'),_0x16a551=_0x283545()['differenceBy'](_0xe8cf7f['selectedItems'],_0xe8cf7f[_0x2f4ae6('0xd0d')],'id');return _0x5efc8e(_0x1a1287)[_0x2f4ae6('0x2788')](function(){return _0x21c169(_0x16a551);})[_0x2f4ae6('0x2788')](function(){const _0x31026c=_0x2f4ae6;_0xe8cf7f[_0x31026c('0x2677')]=![],_0xe8cf7f['startingAllowedItems']=angular[_0x31026c('0x2669')](_0xe8cf7f[_0x31026c('0x73d')]),_0xe8cf7f[_0x31026c('0xd0d')]=angular[_0x31026c('0x2669')](_0xe8cf7f[_0x31026c('0x283f')]),_0x32076d[_0x31026c('0x173b')]({'title':_0x31026c('0x10c8'),'msg':_0x31026c('0x1984')});})[_0x2f4ae6('0x1cb5')](function(_0x19bb8e){const _0x550afb=_0x2f4ae6;_0x32076d['error']({'title':_0x19bb8e['status']?_0x550afb('0x15d1')+_0x19bb8e[_0x550afb('0x1b51')]+'\x20-\x20'+_0x19bb8e['statusText']:_0x550afb('0x13cd'),'msg':_0x19bb8e[_0x550afb('0x1b51')]?JSON['stringify'](_0x19bb8e[_0x550afb('0x11fc')]):_0x19bb8e['toString']()});});}function _0x1dbb4e(){const _0x12602c=_0x49edae;_0x10d3fc[_0x12602c('0x19d')]();}}const _0x2b77e5=_0x4f9182,_0x5ee082=_0x18dd13['p']+_0x34e79e('0x1817'),_0x3c0854=_0x18dd13['p']+_0x34e79e('0x1bdb');_0xd06814[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0xc76'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0xd06814(_0x5e0a9a,_0x595a10,_0x2de657,_0x308b1b,_0x5da49d,_0x2fdf40,_0x258e01,_0x1f1896,_0x2b74e9,_0xa5de78,_0x419495,_0x5a4748,_0x3baace,_0x2af648,_0xe86c73,_0x55d367,_0x3982d3){const _0x170e8e=_0x34e79e,_0x4b9aad=this;_0x4b9aad[_0x170e8e('0x130d')]=_0x55d367,_0x4b9aad[_0x170e8e('0x1af0')]=_0x3982d3,_0x4b9aad['currentUser']=_0xe86c73[_0x170e8e('0x24cc')](),_0x4b9aad['voicePrefixes']=_0x2b74e9||{'count':0x0,'rows':[]},_0x4b9aad[_0x170e8e('0x63c')]=_0xa5de78,_0x4b9aad[_0x170e8e('0xec9')]=_0x419495&&_0x419495[_0x170e8e('0x338')]==0x1?_0x419495['rows'][0x0]:null,_0x4b9aad[_0x170e8e('0xe28')]=_0xe86c73[_0x170e8e('0x157e')](_0x4b9aad[_0x170e8e('0xec9')]?_0x4b9aad[_0x170e8e('0xec9')][_0x170e8e('0xe28')]:null),_0x4b9aad[_0x170e8e('0x26a9')]=_0x170e8e('0xc76'),_0x4b9aad[_0x170e8e('0x2278')]='',_0x4b9aad['listOrderAsc']=null,_0x4b9aad[_0x170e8e('0x1532')]=[],_0x4b9aad[_0x170e8e('0x135a')]={'fields':_0x170e8e('0x23c7'),'limit':0xa,'page':0x1},_0x4b9aad[_0x170e8e('0x23af')]=_0x293dfa,_0x4b9aad[_0x170e8e('0x1113')]=_0x575b18,_0x4b9aad[_0x170e8e('0x1e5')]=_0x234845,_0x4b9aad[_0x170e8e('0x173b')]=_0x3f4b63,_0x4b9aad['getVoicePrefixes']=_0x5b591a,_0x4b9aad[_0x170e8e('0x132c')]=_0x1cec0c,_0x4b9aad['deletevoicePrefix']=_0x1b231d,_0x4b9aad[_0x170e8e('0x777')]=_0x27f6f0,_0x4b9aad[_0x170e8e('0xaff')]=_0x7c9f44,_0x4b9aad['deselectVoicePrefixes']=_0x2f4e82,_0x4b9aad[_0x170e8e('0x1254')]=_0x242323,_0xe86c73['hasRole'](_0x170e8e('0xe23'))?_0x5a4748[_0x170e8e('0x2636')][_0x170e8e('0x1335')]({'fields':_0x170e8e('0x174d'),'type':'outbound','VoiceExtensionId':'null','nolimit':_0x170e8e('0x1001')})[_0x170e8e('0x1714')][_0x170e8e('0x2788')](function(_0x38dfd6){const _0x2fdd0b=_0x170e8e;_0x4b9aad[_0x2fdd0b('0xf8')]=_0x38dfd6[_0x2fdd0b('0x25df')]||[];})['catch'](function(_0x5d268e){const _0xb8a765=_0x170e8e;_0x2af648['error']({'title':_0x5d268e[_0xb8a765('0x1b51')]?_0xb8a765('0x15d1')+_0x5d268e[_0xb8a765('0x1b51')]+_0xb8a765('0x1b0b')+_0x5d268e[_0xb8a765('0x22ce')]:_0xb8a765('0x10ea'),'msg':_0x5d268e[_0xb8a765('0x11fc')]?JSON['stringify'](_0x5d268e['data']):_0x5d268e[_0xb8a765('0x17df')]()});}):_0x5a4748['voiceExtension']['get']({'fields':_0x170e8e('0x174d'),'type':_0x170e8e('0x1'),'VoiceExtensionId':_0x170e8e('0x954'),'nolimit':_0x170e8e('0x1001')})['$promise'][_0x170e8e('0x2788')](function(_0x5dad58){const _0x2e52bd=_0x170e8e;_0x4b9aad[_0x2e52bd('0xf8')]=_0x5dad58['rows']||[];})[_0x170e8e('0x2788')](function(){const _0x3b84ef=_0x170e8e;return _0x5a4748[_0x3b84ef('0xec9')][_0x3b84ef('0x1335')]({'userProfileId':_0x4b9aad['currentUser'][_0x3b84ef('0x237f')],'sectionId':0x193})[_0x3b84ef('0x1714')];})[_0x170e8e('0x2788')](function(_0x387485){const _0x50e05a=_0x170e8e,_0x288240=_0x387485&&_0x387485[_0x50e05a('0x25df')]?_0x387485[_0x50e05a('0x25df')][0x0]:null;if(!_0x288240){const _0x7f7b5e=[];let _0x13f544=null;_0x4b9aad[_0x50e05a('0x17ee')]&&(_0x13f544=_0x283545()['find'](_0x4b9aad[_0x50e05a('0xf8')],{'id':Number(_0x4b9aad[_0x50e05a('0x17ee')][_0x50e05a('0xa33')])}));for(let _0x49b6c1=0x0;_0x49b6c1<_0x4b9aad['outboundRoutes'][_0x50e05a('0x2566')];_0x49b6c1++){_0x13f544&&_0x4b9aad[_0x50e05a('0xf8')][_0x49b6c1]['id']===_0x13f544['id']&&(_0x4b9aad[_0x50e05a('0xf8')][_0x49b6c1][_0x50e05a('0x3bf')]=![],_0x7f7b5e[_0x50e05a('0x13e3')](_0x4b9aad[_0x50e05a('0xf8')][_0x49b6c1]));}_0x4b9aad[_0x50e05a('0xf8')]=_0x7f7b5e;}else{if(!_0x288240[_0x50e05a('0x1c0a')])return _0x5a4748[_0x50e05a('0x1050')]['get']({'sectionId':_0x288240['id']})['$promise']['then'](function(_0x5d451d){const _0x3e0449=_0x50e05a,_0x3a53df=_0x283545()[_0x3e0449('0x155d')](_0x5d451d[_0x3e0449('0x25df')],function(_0x5744db){const _0x12e44c=_0x3e0449;return _0x283545()[_0x12e44c('0x20e8')](_0x4b9aad[_0x12e44c('0xf8')],{'id':_0x5744db[_0x12e44c('0x2707')]});});let _0x18f98a=null;_0x4b9aad['voicePrefix']&&(_0x18f98a=_0x283545()['find'](_0x4b9aad['outboundRoutes'],{'id':Number(_0x4b9aad[_0x3e0449('0x17ee')][_0x3e0449('0xa33')])}));if(_0x18f98a&&!_0x283545()['some'](_0x3a53df,['id',_0x18f98a['id']])){const _0x5d1914=_0x283545()[_0x3e0449('0x20e8')](_0x4b9aad[_0x3e0449('0xf8')],{'id':_0x18f98a['id']});_0x5d1914['canSelect']=![],_0x3a53df['push'](_0x5d1914);}_0x4b9aad[_0x3e0449('0xf8')]=_0x3a53df;});}})[_0x170e8e('0x1cb5')](function(_0x2e66a5){const _0xaf7fca=_0x170e8e;_0x2af648[_0xaf7fca('0x5e8')]({'title':_0x2e66a5[_0xaf7fca('0x1b51')]?_0xaf7fca('0x15d1')+_0x2e66a5[_0xaf7fca('0x1b51')]+_0xaf7fca('0x1b0b')+_0x2e66a5[_0xaf7fca('0x22ce')]:_0xaf7fca('0x138e'),'msg':_0x2e66a5[_0xaf7fca('0x11fc')]?JSON[_0xaf7fca('0x1be0')](_0x2e66a5[_0xaf7fca('0x11fc')]):_0x2e66a5[_0xaf7fca('0x17df')]()});});function _0x293dfa(_0x283688,_0x3fca9d){const _0x3b92c9=_0x170e8e;_0x5da49d['show']({'controller':_0x3b92c9('0x47b'),'controllerAs':'vm','templateUrl':_0x5ee082,'parent':angular[_0x3b92c9('0x16b1')](_0x2fdf40['body']),'targetEvent':_0x3fca9d,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x283688,'voicePrefixes':_0x4b9aad[_0x3b92c9('0xc76')][_0x3b92c9('0x25df')],'license':_0x4b9aad[_0x3b92c9('0x130d')],'setting':null,'crudPermissions':_0x4b9aad['crudPermissions']}});}function _0x575b18(_0x1c04b8,_0xd6b882){const _0x28469=_0x170e8e;_0x5da49d[_0x28469('0x2fa')]({'controller':'voicePrefixagentaddController','controllerAs':'vm','templateUrl':_0x3c0854,'parent':angular[_0x28469('0x16b1')](_0x2fdf40[_0x28469('0x945')]),'targetEvent':_0xd6b882,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x1c04b8,'voicePrefixes':_0x4b9aad[_0x28469('0xc76')]?_0x4b9aad[_0x28469('0xc76')][_0x28469('0x25df')]:[],'crudPermissions':_0x4b9aad['crudPermissions'],'realtime':![]}});}function _0x234845(_0x14aa1b,_0x342eb2){const _0x35657c=_0x170e8e,_0x39c259=_0x5da49d['confirm']()[_0x35657c('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x35657c('0x114')]('voicePrefix')+'?')[_0x35657c('0x93e')](_0x35657c('0x1670')+(_0x14aa1b[_0x35657c('0x1a8d')]||_0x35657c('0x17ee'))+_0x35657c('0x229e')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x35657c('0xf3f'))[_0x35657c('0x24d0')](_0x342eb2)['ok']('OK')[_0x35657c('0x1801')](_0x35657c('0x1d8d'));_0x5da49d[_0x35657c('0x2fa')](_0x39c259)[_0x35657c('0x2788')](function(){_0x1b231d(_0x14aa1b);},function(){const _0x3105cc=_0x35657c;console['log'](_0x3105cc('0x1d8d'));});}let _0x9cc380=!![],_0x1c8857=0x1;_0x5e0a9a[_0x170e8e('0x1662')](_0x170e8e('0x1569'),function(_0x20d087,_0x29d5d6){const _0x3a5744=_0x170e8e;_0x9cc380?_0x258e01(function(){_0x9cc380=![];}):(!_0x29d5d6&&(_0x1c8857=_0x4b9aad[_0x3a5744('0x135a')][_0x3a5744('0x23f5')]),_0x20d087!==_0x29d5d6&&(_0x4b9aad[_0x3a5744('0x135a')][_0x3a5744('0x23f5')]=0x1),!_0x20d087&&(_0x4b9aad[_0x3a5744('0x135a')][_0x3a5744('0x23f5')]=_0x1c8857),_0x4b9aad[_0x3a5744('0xbe4')]());});function _0x3f4b63(_0x2f8c28){const _0xac5b41=_0x170e8e;_0x4b9aad[_0xac5b41('0xc76')]=_0x2f8c28||{'count':0x0,'rows':[]};}function _0x5b591a(){const _0x495959=_0x170e8e;_0x4b9aad['query'][_0x495959('0x19e')]=(_0x4b9aad[_0x495959('0x135a')][_0x495959('0x23f5')]-0x1)*_0x4b9aad[_0x495959('0x135a')]['limit'],_0xe86c73[_0x495959('0x1516')](_0x495959('0xe23'))?_0x4b9aad['promise']=_0x5a4748[_0x495959('0x17ee')]['get'](_0x4b9aad[_0x495959('0x135a')],_0x3f4b63)['$promise']:(_0x4b9aad[_0x495959('0x135a')]['id']=_0x4b9aad[_0x495959('0x63c')]['id'],_0x4b9aad[_0x495959('0x135a')]['section']=_0x495959('0x22d4'),_0x4b9aad['promise']=_0x5a4748[_0x495959('0x63c')][_0x495959('0xa1')](_0x4b9aad[_0x495959('0x135a')],_0x3f4b63)['$promise']);}function _0x1cec0c(_0x36d3a0,_0x31076b){const _0x51a5c1=_0x170e8e;_0x5da49d['show']({'controller':_0x51a5c1('0x47b'),'controllerAs':'vm','templateUrl':_0x5ee082,'parent':angular['element'](_0x2fdf40[_0x51a5c1('0x945')]),'targetEvent':_0x36d3a0,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x31076b,'voicePrefixes':_0x4b9aad[_0x51a5c1('0xc76')][_0x51a5c1('0x25df')],'license':_0x4b9aad[_0x51a5c1('0x130d')],'setting':_0x4b9aad[_0x51a5c1('0x1af0')],'crudPermissions':_0x4b9aad[_0x51a5c1('0xe28')]}});}function _0x1b231d(_0x2da9f3){const _0x50a45f=_0x170e8e;_0x5a4748[_0x50a45f('0x17ee')][_0x50a45f('0x17c4')]({'id':_0x2da9f3['id']})[_0x50a45f('0x1714')][_0x50a45f('0x2788')](function(){const _0x311de5=_0x50a45f;_0x283545()[_0x311de5('0x1a90')](_0x4b9aad[_0x311de5('0xc76')]['rows'],{'id':_0x2da9f3['id']}),_0x4b9aad['voicePrefixes'][_0x311de5('0x338')]-=0x1,!_0x4b9aad[_0x311de5('0xc76')][_0x311de5('0x25df')][_0x311de5('0x2566')]&&_0x4b9aad[_0x311de5('0xbe4')](),_0x2af648[_0x311de5('0x173b')]({'title':_0x283545()[_0x311de5('0x114')]('voicePrefix')+_0x311de5('0x20db'),'msg':_0x2da9f3['name']?_0x2da9f3[_0x311de5('0x1a8d')]+_0x311de5('0x14d4'):''});})[_0x50a45f('0x1cb5')](function(_0x1e710c){const _0x597e2b=_0x50a45f;if(_0x1e710c[_0x597e2b('0x11fc')]&&_0x1e710c[_0x597e2b('0x11fc')]['errors']&&_0x1e710c[_0x597e2b('0x11fc')][_0x597e2b('0x25be')][_0x597e2b('0x2566')]){_0x4b9aad[_0x597e2b('0x25be')]=_0x1e710c[_0x597e2b('0x11fc')][_0x597e2b('0x25be')]||[{'message':_0x1e710c[_0x597e2b('0x17df')](),'type':_0x597e2b('0x1930')}];for(let _0x1c8579=0x0;_0x1c8579<_0x1e710c[_0x597e2b('0x11fc')]['errors'][_0x597e2b('0x2566')];_0x1c8579++){_0x2af648[_0x597e2b('0x5e8')]({'title':_0x1e710c['data'][_0x597e2b('0x25be')][_0x1c8579][_0x597e2b('0x1d7')],'msg':_0x1e710c['data']['errors'][_0x1c8579][_0x597e2b('0x15e2')]});}}else _0x2af648[_0x597e2b('0x5e8')]({'title':_0x1e710c['status']?'API:'+_0x1e710c[_0x597e2b('0x1b51')]+_0x597e2b('0x1b0b')+_0x1e710c[_0x597e2b('0x22ce')]:'SYSTEM:DELETEvoicePrefix','msg':_0x1e710c[_0x597e2b('0x11fc')]?JSON['stringify'](_0x1e710c[_0x597e2b('0x11fc')][_0x597e2b('0x15e2')]):_0x1e710c[_0x597e2b('0x15e2')]||_0x1e710c[_0x597e2b('0x17df')]()});});}function _0x27f6f0(){const _0x55a9ab=_0x170e8e,_0x2af049=angular['copy'](_0x4b9aad[_0x55a9ab('0x1532')]);return _0x4b9aad['selectedVoicePrefixes']=[],_0x2af049;}function _0x7c9f44(_0x58a950){const _0x1d92b5=_0x170e8e,_0x5f1bdf=_0x5da49d[_0x1d92b5('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?')[_0x1d92b5('0x93e')](_0x1d92b5('0x1670')+_0x4b9aad[_0x1d92b5('0x1532')][_0x1d92b5('0x2566')]+_0x1d92b5('0xbd')+_0x1d92b5('0x27c7'))[_0x1d92b5('0x10bc')](_0x1d92b5('0x1314'))[_0x1d92b5('0x24d0')](_0x58a950)['ok']('OK')[_0x1d92b5('0x1801')](_0x1d92b5('0x1d8d'));_0x5da49d[_0x1d92b5('0x2fa')](_0x5f1bdf)[_0x1d92b5('0x2788')](function(){const _0x3781fe=_0x1d92b5;_0x4b9aad[_0x3781fe('0x1532')]['forEach'](function(_0xcf3efc){_0x1b231d(_0xcf3efc);}),_0x4b9aad['selectedVoicePrefixes']=[];});}function _0x2f4e82(){const _0x1405f3=_0x170e8e;_0x4b9aad[_0x1405f3('0x1532')]=[];}function _0x242323(){const _0x3e4650=_0x170e8e;_0x4b9aad[_0x3e4650('0x1532')]=_0x4b9aad['voicePrefixes'][_0x3e4650('0x25df')];}}const _0x35056a=_0xd06814;_0x122916[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x135'),_0x34e79e('0x2043'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x122916(_0x41c52c,_0x289a02,_0x22d1e0,_0x45f42f,_0x4a9cf6,_0x59ecf7,_0xd0ca06,_0x1cbf56,_0x3d6834,_0x51e4ce,_0x27a836,_0x3967cd,_0x35001f,_0x3129a2){const _0x3941a2=_0x34e79e,_0xe45355=this;_0xe45355['currentUser']=_0x27a836['getCurrentUser'](),_0xe45355[_0x3941a2('0x25be')]=[],_0xe45355['setting']=_0x35001f,_0xe45355[_0x3941a2('0x130d')]=_0x3967cd,_0xe45355[_0x3941a2('0xe28')]=_0x3129a2,_0xe45355[_0x3941a2('0x1193')]={},_0xe45355[_0x3941a2('0x18ad')]=_0xe45355['setting']&&_0xe45355[_0x3941a2('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe45355[_0x3941a2('0x14e4')]=_0x3941a2('0x1781'),_0xe45355['voiceQueue']=angular[_0x3941a2('0x2669')](_0x3d6834),_0xe45355['voiceQueues']=_0x1cbf56,_0xe45355[_0x3941a2('0x1aac')]=![];!_0xe45355[_0x3941a2('0x2043')]&&(_0xe45355[_0x3941a2('0x2043')]={'type':'inbound','strategy':_0x3941a2('0x1738'),'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'},_0xe45355['title']='VOICE.NEW_VOICEQUEUE',_0xe45355[_0x3941a2('0x1aac')]=!![]);_0xe45355[_0x3941a2('0xe25')]=_0x498dca,_0xe45355[_0x3941a2('0x25d2')]=_0x3e53a3,_0xe45355['deleteVoiceQueue']=_0x3249c6,_0xe45355[_0x3941a2('0x2601')]=_0x588ce1,_0xe45355[_0x3941a2('0xca7')]=_0x34abb4;function _0x498dca(){const _0xa5c7e9=_0x3941a2;_0xe45355[_0xa5c7e9('0x25be')]=[],_0x51e4ce['voiceQueue'][_0xa5c7e9('0xbd0')](_0xe45355['voiceQueue'])[_0xa5c7e9('0x1714')][_0xa5c7e9('0x2788')](function(_0x6be2a){const _0x2beb5a=_0xa5c7e9;_0xe45355[_0x2beb5a('0x135')][_0x2beb5a('0xc51')](_0x6be2a[_0x2beb5a('0x1cbf')]()),_0xd0ca06[_0x2beb5a('0x173b')]({'title':_0x2beb5a('0x2720'),'msg':_0xe45355[_0x2beb5a('0x2043')][_0x2beb5a('0x1a8d')]?_0xe45355['voiceQueue']['name']+_0x2beb5a('0x1e4a'):''}),_0x34abb4(_0x6be2a);})[_0xa5c7e9('0x1cb5')](function(_0x4b6519){const _0xd3b3ed=_0xa5c7e9;if(_0x4b6519[_0xd3b3ed('0x11fc')]&&_0x4b6519[_0xd3b3ed('0x11fc')][_0xd3b3ed('0x25be')]&&_0x4b6519[_0xd3b3ed('0x11fc')][_0xd3b3ed('0x25be')]['length']){_0xe45355['errors']=_0x4b6519[_0xd3b3ed('0x11fc')][_0xd3b3ed('0x25be')]||[{'message':_0x4b6519[_0xd3b3ed('0x17df')](),'type':'api.voiceQueue.save'}];for(let _0x498934=0x0;_0x498934<_0x4b6519[_0xd3b3ed('0x11fc')][_0xd3b3ed('0x25be')][_0xd3b3ed('0x2566')];_0x498934+=0x1){_0xd0ca06[_0xd3b3ed('0x5e8')]({'title':_0x4b6519[_0xd3b3ed('0x11fc')][_0xd3b3ed('0x25be')][_0x498934]['type'],'msg':_0x4b6519[_0xd3b3ed('0x11fc')]['errors'][_0x498934][_0xd3b3ed('0x15e2')]});}}else _0xd0ca06[_0xd3b3ed('0x5e8')]({'title':_0x4b6519[_0xd3b3ed('0x1b51')]?_0xd3b3ed('0x15d1')+_0x4b6519[_0xd3b3ed('0x1b51')]+'\x20-\x20'+_0x4b6519[_0xd3b3ed('0x22ce')]:'api.voiceQueue.save','msg':_0x4b6519['data']?JSON[_0xd3b3ed('0x1be0')](_0x4b6519['data'][_0xd3b3ed('0x15e2')]):_0x4b6519[_0xd3b3ed('0x17df')]()});});}function _0x3e53a3(){const _0x504d22=_0x3941a2;_0xe45355[_0x504d22('0x25be')]=[],_0x51e4ce[_0x504d22('0x2043')][_0x504d22('0x2740')]({'id':_0xe45355[_0x504d22('0x2043')]['id']},_0xe45355[_0x504d22('0x2043')])[_0x504d22('0x1714')][_0x504d22('0x2788')](function(_0xd15333){const _0x139a81=_0x504d22,_0x1d32ae=_0x283545()[_0x139a81('0x20e8')](_0xe45355[_0x139a81('0x135')],{'id':_0xd15333['id']});_0x1d32ae&&_0x283545()[_0x139a81('0x2503')](_0x1d32ae,_0x283545()[_0x139a81('0x41b')](_0xd15333[_0x139a81('0x1cbf')](),_0x283545()['keys'](_0x1d32ae))),_0xd0ca06[_0x139a81('0x173b')]({'title':'VoiceQueue\x20properly\x20saved!','msg':_0xe45355[_0x139a81('0x2043')][_0x139a81('0x1a8d')]?_0xe45355[_0x139a81('0x2043')]['name']+_0x139a81('0x24cf'):''}),_0x34abb4(_0xd15333);})[_0x504d22('0x1cb5')](function(_0x40fd1e){const _0x4a0774=_0x504d22;if(_0x40fd1e[_0x4a0774('0x11fc')]&&_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x25be')]&&_0x40fd1e['data'][_0x4a0774('0x25be')][_0x4a0774('0x2566')]){_0xe45355[_0x4a0774('0x25be')]=_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x25be')]||[{'message':_0x40fd1e[_0x4a0774('0x17df')](),'type':'api.voiceQueue.update'}];for(let _0x55ba5b=0x0;_0x55ba5b<_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x25be')][_0x4a0774('0x2566')];_0x55ba5b++){_0xd0ca06['error']({'title':_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x25be')][_0x55ba5b][_0x4a0774('0x1d7')],'msg':_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x25be')][_0x55ba5b][_0x4a0774('0x15e2')]});}}else _0xd0ca06['error']({'title':_0x40fd1e['status']?_0x4a0774('0x15d1')+_0x40fd1e['status']+_0x4a0774('0x1b0b')+_0x40fd1e[_0x4a0774('0x22ce')]:_0x4a0774('0x17ab'),'msg':_0x40fd1e['data']?JSON[_0x4a0774('0x1be0')](_0x40fd1e[_0x4a0774('0x11fc')][_0x4a0774('0x15e2')]):_0x40fd1e[_0x4a0774('0x17df')]()});});}function _0x3249c6(_0x41a8b5){const _0x1814f5=_0x3941a2;_0xe45355[_0x1814f5('0x25be')]=[];const _0x2bbb33=_0x45f42f['confirm']()['title'](_0x1814f5('0x458'))[_0x1814f5('0x1c98')]('The\x20voiceQueue\x20will\x20be\x20deleted.')[_0x1814f5('0x10bc')]('Delete\x20VoiceQueue')['ok'](_0x1814f5('0x2786'))[_0x1814f5('0x1801')](_0x1814f5('0x1481'))[_0x1814f5('0x24d0')](_0x41a8b5);_0x45f42f['show'](_0x2bbb33)[_0x1814f5('0x2788')](function(){const _0x1bbf0a=_0x1814f5;_0x51e4ce[_0x1bbf0a('0x2043')]['delete']({'id':_0xe45355[_0x1bbf0a('0x2043')]['id']})['$promise'][_0x1bbf0a('0x2788')](function(){const _0x52b2cf=_0x1bbf0a;_0x283545()[_0x52b2cf('0x1a90')](_0xe45355['voiceQueues'],{'id':_0xe45355['voiceQueue']['id']}),_0xd0ca06['success']({'title':_0x52b2cf('0x7e1'),'msg':(_0xe45355[_0x52b2cf('0x2043')][_0x52b2cf('0x1a8d')]||_0x52b2cf('0x2043'))+_0x52b2cf('0x14d4')}),_0x34abb4(_0xe45355['voiceQueue']);})[_0x1bbf0a('0x1cb5')](function(_0x3da5be){const _0x40c88e=_0x1bbf0a;if(_0x3da5be[_0x40c88e('0x11fc')]&&_0x3da5be[_0x40c88e('0x11fc')]['errors']&&_0x3da5be['data'][_0x40c88e('0x25be')][_0x40c88e('0x2566')]){_0xe45355[_0x40c88e('0x25be')]=_0x3da5be['data']['errors']||[{'message':_0x3da5be['toString'](),'type':_0x40c88e('0x27f9')}];for(let _0x40213b=0x0;_0x40213b<_0x3da5be['data'][_0x40c88e('0x25be')][_0x40c88e('0x2566')];_0x40213b++){_0xd0ca06[_0x40c88e('0x5e8')]({'title':_0x3da5be[_0x40c88e('0x11fc')][_0x40c88e('0x25be')][_0x40213b][_0x40c88e('0x1d7')],'msg':_0x3da5be['data'][_0x40c88e('0x25be')][_0x40213b][_0x40c88e('0x15e2')]});}}else _0xd0ca06[_0x40c88e('0x5e8')]({'title':_0x3da5be[_0x40c88e('0x1b51')]?_0x40c88e('0x15d1')+_0x3da5be[_0x40c88e('0x1b51')]+'\x20-\x20'+_0x3da5be['statusText']:'api.voiceQueue.delete','msg':_0x3da5be[_0x40c88e('0x11fc')]?JSON[_0x40c88e('0x1be0')](_0x3da5be[_0x40c88e('0x11fc')][_0x40c88e('0x15e2')]):_0x3da5be['message']||_0x3da5be[_0x40c88e('0x17df')]()});});},function(){});}function _0x588ce1(_0x42cd85){return _0x42cd85===null?undefined:new Date(_0x42cd85);}function _0x34abb4(_0x4d1c0b){_0x45f42f['hide'](_0x4d1c0b);}}const _0x5a1d0a=_0x122916;_0x4cc653[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api',_0x34e79e('0x2043'),'voiceQueues',_0x34e79e('0x548'),'$translate',_0x34e79e('0x1b04'),'crudPermissions'];function _0x4cc653(_0x281c31,_0x24e915,_0x30f5ef,_0x14612e,_0xb20788,_0x35af01,_0x1c9616,_0x3e08db,_0x26cd67,_0x377ab6){const _0x4471a4=_0x34e79e,_0x43d9af=this;_0x43d9af['currentUser']=_0x26cd67[_0x4471a4('0x24cc')](),_0x43d9af['voiceQueue']=_0xb20788,_0x43d9af[_0x4471a4('0xe28')]=_0x377ab6,_0x43d9af['penalty']=0x0,_0x43d9af['realtime']=_0x1c9616,_0x43d9af[_0x4471a4('0x117b')]=[],_0x43d9af['allowedItems']=[],_0x43d9af[_0x4471a4('0x283f')]=[],_0x43d9af[_0x4471a4('0x12d9')]=[],_0x43d9af[_0x4471a4('0xd0d')]=[],_0x43d9af[_0x4471a4('0x2677')]=![],_0x43d9af['onInit']=_0x25827c,_0x43d9af[_0x4471a4('0x1f8d')]=_0x4648ac,_0x43d9af[_0x4471a4('0xca7')]=_0x3dc3da,_0x43d9af[_0x4471a4('0x121')]={'readOnly':!_0x43d9af[_0x4471a4('0xe28')][_0x4471a4('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4471a4('0x1a8d'),'line1':_0x4471a4('0x2831'),'line2':[_0x4471a4('0x1a8d'),'internal'],'line3':_0x4471a4('0x1ab'),'labelAll':_0x3e08db[_0x4471a4('0x1b11')]('VOICE.ALL_AGENTS'),'labelSelected':_0x3e08db['instant'](_0x4471a4('0x222c')),'transferCallback':function(_0x4bec41,_0xdac2e2){const _0x124507=_0x4471a4;_0xdac2e2?_0x4bec41[_0x124507('0x1534')](function(_0x350809){const _0x40f759=_0x124507;_0x350809[_0x40f759('0x1ab')]=undefined;}):_0x4bec41[_0x124507('0x1534')](function(_0x522052){const _0x303712=_0x124507;_0x522052['penalty']=_0x303712('0x1b9d')+_0x43d9af[_0x303712('0x1ab')];});const _0xa7276=_0x283545()[_0x124507('0x265d')](_0x43d9af[_0x124507('0xd0d')],_0x43d9af[_0x124507('0x283f')],function(_0x2df11c,_0x1b8ad0){const _0x45b22e=_0x124507;return _0x2df11c['id']===_0x1b8ad0['id']&&_0x2df11c[_0x45b22e('0x1ab')]===_0x1b8ad0['penalty'];});_0x43d9af[_0x124507('0x2677')]=_0x283545()[_0x124507('0x213d')](_0xa7276)?![]:!![];}};function _0x25827c(){const _0x4b257f=_0x4471a4;return _0x26cd67[_0x4b257f('0x1516')](_0x4b257f('0xe23'))?_0x9b303()['catch'](function(_0x3c5936){const _0x290de4=_0x4b257f;_0x30f5ef[_0x290de4('0x5e8')]({'title':_0x3c5936[_0x290de4('0x1b51')]?'API:'+_0x3c5936[_0x290de4('0x1b51')]+_0x290de4('0x1b0b')+_0x3c5936[_0x290de4('0x22ce')]:_0x290de4('0xd90'),'msg':_0x3c5936['status']?JSON['stringify'](_0x3c5936['data']):_0x3c5936[_0x290de4('0x17df')]()});}):_0x14073b()[_0x4b257f('0x2788')](function(_0x1d04b9){const _0x3c711e=_0x4b257f;return _0x43d9af[_0x3c711e('0xb13')]=_0x1d04b9,_0x9b303();})[_0x4b257f('0x1cb5')](function(_0x5cbe7a){const _0x451ca8=_0x4b257f;_0x30f5ef[_0x451ca8('0x5e8')]({'title':_0x5cbe7a[_0x451ca8('0x1b51')]?_0x451ca8('0x15d1')+_0x5cbe7a[_0x451ca8('0x1b51')]+_0x451ca8('0x1b0b')+_0x5cbe7a[_0x451ca8('0x22ce')]:_0x451ca8('0xd90'),'msg':_0x5cbe7a[_0x451ca8('0x1b51')]?JSON[_0x451ca8('0x1be0')](_0x5cbe7a['data']):_0x5cbe7a['toString']()});});}function _0x14073b(){return _0x24e915(function(_0x1d29a5,_0x44f804){const _0x22c011=a0_0x14e7;_0x14612e[_0x22c011('0xec9')][_0x22c011('0x1335')]({'userProfileId':_0x43d9af[_0x22c011('0x9cb')]['userProfileId'],'name':_0x22c011('0x1f72')})[_0x22c011('0x1714')][_0x22c011('0x2788')](function(_0x41fad3){const _0xc7f417=_0x22c011,_0x156dff=_0x41fad3&&_0x41fad3[_0xc7f417('0x25df')]?_0x41fad3[_0xc7f417('0x25df')][0x0]:null;_0x1d29a5(_0x156dff);})['catch'](function(_0x1e0ffd){_0x44f804(_0x1e0ffd);});});}function _0x9b303(){return _0x24e915(function(_0x2503e7,_0x196088){const _0xef6603=a0_0x14e7;return _0x313ced()[_0xef6603('0x2788')](function(_0x431ec1){const _0x3ac1e=_0xef6603;return _0x43d9af[_0x3ac1e('0x117b')]=_0x431ec1[_0x3ac1e('0x25df')]?_0x431ec1[_0x3ac1e('0x25df')]:[],_0x26cd67[_0x3ac1e('0x1516')](_0x3ac1e('0xe23'))?_0x431ec1:_0x43d9af['section']?_0x43d9af[_0x3ac1e('0xb13')]['autoAssociation']?_0x431ec1:_0x203063():null;})['then'](function(_0x2b8817){const _0x4e2a2a=_0xef6603,_0x5bc1a7=_0x2b8817&&_0x2b8817['rows']?_0x2b8817[_0x4e2a2a('0x25df')]:[];return _0x43d9af[_0x4e2a2a('0x73d')]=_0x283545()[_0x4e2a2a('0x155d')](_0x5bc1a7,function(_0x5c9c10){const _0x10847a=_0x4e2a2a;return _0x283545()[_0x10847a('0x20e8')](_0x43d9af[_0x10847a('0x117b')],{'id':_0x26cd67['hasRole']('admin')||_0x43d9af[_0x10847a('0xb13')][_0x10847a('0x1c0a')]?_0x5c9c10['id']:_0x5c9c10[_0x10847a('0x2707')]});}),_0x43d9af[_0x4e2a2a('0x12d9')]=angular['copy'](_0x43d9af[_0x4e2a2a('0x73d')]),_0x43d9af[_0x4e2a2a('0x117b')]['forEach'](function(_0x1994da){const _0x3c9751=_0x4e2a2a,_0x284386=_0x283545()[_0x3c9751('0x20e8')](_0x43d9af[_0x3c9751('0x73d')],{'id':_0x1994da['id']});_0x26cd67[_0x3c9751('0x1516')](_0x3c9751('0xe23'))?_0x1994da['isValid']=!![]:_0x1994da[_0x3c9751('0x68d')]=typeof _0x284386!==_0x3c9751('0xedb')?!![]:![];}),_0x51b747();})[_0xef6603('0x2788')](function(_0x245104){const _0x5a5a7a=_0xef6603,_0x28753b=_0x245104&&_0x245104[_0x5a5a7a('0x25df')]?_0x245104[_0x5a5a7a('0x25df')]:[];_0x43d9af[_0x5a5a7a('0x283f')]=_0x283545()[_0x5a5a7a('0x155d')](_0x28753b,function(_0x41f924){const _0x6a1fb9=_0x5a5a7a,_0x67d229=_0x283545()['find'](_0x43d9af['items'],{'id':_0x41f924['id']});return _0x67d229['penalty']=_0x41f924[_0x6a1fb9('0x2fe')]?_0x6a1fb9('0x1b9d')+_0x41f924[_0x6a1fb9('0x2fe')][_0x6a1fb9('0x1ab')]:'',_0x67d229[_0x6a1fb9('0x2838')]=typeof _0x41f924[_0x6a1fb9('0x2838')]!=='undefined'?'<'+_0x41f924[_0x6a1fb9('0x2838')]+'>':'',_0x67d229;}),_0x43d9af['startingSelectedItems']=angular['copy'](_0x43d9af[_0x5a5a7a('0x283f')]),_0x43d9af['dualMultiselectOptions'][_0x5a5a7a('0x283f')]=_0x43d9af[_0x5a5a7a('0x283f')],_0x43d9af[_0x5a5a7a('0x121')][_0x5a5a7a('0x117b')]=_0x283545()[_0x5a5a7a('0x432')](_0x43d9af[_0x5a5a7a('0x73d')],_0x43d9af[_0x5a5a7a('0x121')][_0x5a5a7a('0x283f')],'id'),_0x2503e7();})['catch'](function(_0x56d429){_0x196088(_0x56d429);});});}function _0x203063(){return _0x24e915(function(_0x4895dc,_0x4aca7a){const _0x295a0e=a0_0x14e7;return _0x14612e[_0x295a0e('0x1050')][_0x295a0e('0x1335')]({'sectionId':_0x43d9af[_0x295a0e('0xb13')]['id'],'nolimit':!![]})[_0x295a0e('0x1714')][_0x295a0e('0x2788')](function(_0x184f2d){_0x4895dc(_0x184f2d);})['catch'](function(_0xe21c0f){_0x4aca7a(_0xe21c0f);});});}function _0x51b747(){return _0x24e915(function(_0x2166ee,_0x43abc5){const _0x36b1bc=a0_0x14e7;return _0x14612e[_0x36b1bc('0x2043')][_0x36b1bc('0x19db')]({'id':_0x43d9af[_0x36b1bc('0x2043')]['id'],'fields':_0x36b1bc('0x1d32'),'nolimit':!![],'role':_0x36b1bc('0x188b')})[_0x36b1bc('0x1714')][_0x36b1bc('0x2788')](function(_0x477b96){_0x2166ee(_0x477b96);})['catch'](function(_0x77d5e6){_0x43abc5(_0x77d5e6);});});}function _0x313ced(){return _0x24e915(function(_0x2458ce,_0x463323){const _0xd7c017=a0_0x14e7;return _0x14612e[_0xd7c017('0x1e6a')]['get']({'fields':_0xd7c017('0x1d32'),'nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x28ae25){_0x2458ce(_0x28ae25);})[_0xd7c017('0x1cb5')](function(_0x2ba928){_0x463323(_0x2ba928);});});}function _0x24dfee(_0x267ef5){return _0x24e915(function(_0x24ed76,_0x2d50bf){const _0x3238bd=a0_0x14e7;if(_0x283545()[_0x3238bd('0x213d')](_0x267ef5))_0x24ed76();else{const _0x4e640b=[],_0x4b2cb3=_0x283545()[_0x3238bd('0x1d6c')](_0x267ef5,_0x3238bd('0x1ab'));for(let _0x5e07c7=0x0;_0x5e07c7'+_0x4a31b0('0x27c7'))[_0x4a31b0('0x10bc')](_0x4a31b0('0xa57'))[_0x4a31b0('0x24d0')](_0x29108f)['ok']('OK')['cancel'](_0x4a31b0('0x1d8d'));_0x5dbe32[_0x4a31b0('0x2fa')](_0x52ebf9)[_0x4a31b0('0x2788')](function(){const _0x298154=_0x4a31b0;_0x7f5b42['selectedVoiceQueues'][_0x298154('0x1534')](function(_0x17d186){_0x507504(_0x17d186);}),_0x7f5b42[_0x298154('0x2fc')]=[];});}function _0x344902(){_0x7f5b42['selectedVoiceQueues']=[];}function _0x2028d0(){const _0x564af0=_0xe87705;_0x7f5b42['selectedVoiceQueues']=_0x7f5b42[_0x564af0('0x135')][_0x564af0('0x25df')];}}const _0x2f4486=_0x1f7649;_0x53dcda[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x2527'),_0x34e79e('0x14ff'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x53dcda(_0x553771,_0x5d2ceb,_0xefe03f,_0x3873c3,_0x55a5fc,_0x186e2e,_0x509a86,_0x455a58,_0x4a85a0,_0xd1d886,_0x911c7c,_0x7117a9,_0x42f272,_0x2ba9d7){const _0xf3c041=_0x34e79e,_0x4bf2ee=this;_0x4bf2ee['currentUser']=_0x911c7c[_0xf3c041('0x24cc')](),_0x4bf2ee['errors']=[],_0x4bf2ee[_0xf3c041('0x1af0')]=_0x42f272,_0x4bf2ee[_0xf3c041('0x130d')]=_0x7117a9,_0x4bf2ee['crudPermissions']=_0x2ba9d7,_0x4bf2ee[_0xf3c041('0x1193')]={},_0x4bf2ee[_0xf3c041('0x18ad')]=_0x4bf2ee[_0xf3c041('0x1af0')]&&_0x4bf2ee['setting'][_0xf3c041('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4bf2ee['title']=_0xf3c041('0x298'),_0x4bf2ee[_0xf3c041('0x14ff')]=angular[_0xf3c041('0x2669')](_0x4a85a0),_0x4bf2ee[_0xf3c041('0x2527')]=_0x455a58,_0x4bf2ee[_0xf3c041('0x1cba')]=![];!_0x4bf2ee[_0xf3c041('0x14ff')]&&(_0x4bf2ee[_0xf3c041('0x14ff')]={},_0x4bf2ee[_0xf3c041('0x14e4')]='VOICE.NEW_VOICERECORDING',_0x4bf2ee[_0xf3c041('0x1cba')]=!![]);_0x4bf2ee['addNewVoiceRecording']=_0x19d2f0,_0x4bf2ee[_0xf3c041('0x1048')]=_0x52297a,_0x4bf2ee[_0xf3c041('0x2835')]=_0x34f683,_0x4bf2ee[_0xf3c041('0x2601')]=_0xa91d83,_0x4bf2ee[_0xf3c041('0xca7')]=_0x36b130;function _0x19d2f0(){const _0x1fa32b=_0xf3c041;_0x4bf2ee[_0x1fa32b('0x25be')]=[],_0xd1d886['voiceRecording'][_0x1fa32b('0xbd0')](_0x4bf2ee['voiceRecording'])['$promise'][_0x1fa32b('0x2788')](function(_0xde6f2f){const _0x4c5ae9=_0x1fa32b;_0x4bf2ee[_0x4c5ae9('0x2527')][_0x4c5ae9('0xc51')](_0xde6f2f['toJSON']()),_0x509a86[_0x4c5ae9('0x173b')]({'title':'VoiceRecording\x20properly\x20created','msg':_0x4bf2ee[_0x4c5ae9('0x14ff')][_0x4c5ae9('0x1a8d')]?_0x4bf2ee['voiceRecording'][_0x4c5ae9('0x1a8d')]+_0x4c5ae9('0x1e4a'):''}),_0x36b130(_0xde6f2f);})[_0x1fa32b('0x1cb5')](function(_0x3c6f69){const _0x16bd68=_0x1fa32b;if(_0x3c6f69[_0x16bd68('0x11fc')]&&_0x3c6f69[_0x16bd68('0x11fc')]['errors']&&_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x25be')]['length']){_0x4bf2ee[_0x16bd68('0x25be')]=_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x25be')]||[{'message':_0x3c6f69[_0x16bd68('0x17df')](),'type':_0x16bd68('0x195a')}];for(let _0x4e4dd9=0x0;_0x4e4dd9<_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x25be')][_0x16bd68('0x2566')];_0x4e4dd9+=0x1){_0x509a86[_0x16bd68('0x5e8')]({'title':_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x25be')][_0x4e4dd9][_0x16bd68('0x1d7')],'msg':_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x25be')][_0x4e4dd9][_0x16bd68('0x15e2')]});}}else _0x509a86[_0x16bd68('0x5e8')]({'title':_0x3c6f69['status']?_0x16bd68('0x15d1')+_0x3c6f69[_0x16bd68('0x1b51')]+_0x16bd68('0x1b0b')+_0x3c6f69['statusText']:_0x16bd68('0x195a'),'msg':_0x3c6f69[_0x16bd68('0x11fc')]?JSON[_0x16bd68('0x1be0')](_0x3c6f69[_0x16bd68('0x11fc')][_0x16bd68('0x15e2')]):_0x3c6f69['toString']()});});}function _0x52297a(){const _0x3fe5b3=_0xf3c041;_0x4bf2ee[_0x3fe5b3('0x25be')]=[],_0xd1d886[_0x3fe5b3('0x14ff')]['update']({'id':_0x4bf2ee[_0x3fe5b3('0x14ff')]['id']},_0x4bf2ee[_0x3fe5b3('0x14ff')])[_0x3fe5b3('0x1714')][_0x3fe5b3('0x2788')](function(_0x11aaa7){const _0x5e53ab=_0x3fe5b3,_0x5567e0=_0x283545()[_0x5e53ab('0x20e8')](_0x4bf2ee[_0x5e53ab('0x2527')],{'id':_0x11aaa7['id']});_0x5567e0&&_0x283545()[_0x5e53ab('0x2503')](_0x5567e0,_0x283545()['pick'](_0x11aaa7[_0x5e53ab('0x1cbf')](),_0x283545()['keys'](_0x5567e0))),_0x509a86['success']({'title':_0x5e53ab('0x168d'),'msg':_0x4bf2ee['voiceRecording'][_0x5e53ab('0x1a8d')]?_0x4bf2ee[_0x5e53ab('0x14ff')][_0x5e53ab('0x1a8d')]+_0x5e53ab('0x24cf'):''}),_0x36b130(_0x11aaa7);})['catch'](function(_0xb5aaa5){const _0x29901a=_0x3fe5b3;if(_0xb5aaa5['data']&&_0xb5aaa5[_0x29901a('0x11fc')][_0x29901a('0x25be')]&&_0xb5aaa5['data']['errors'][_0x29901a('0x2566')]){_0x4bf2ee[_0x29901a('0x25be')]=_0xb5aaa5[_0x29901a('0x11fc')][_0x29901a('0x25be')]||[{'message':_0xb5aaa5[_0x29901a('0x17df')](),'type':_0x29901a('0x1ec9')}];for(let _0x45acda=0x0;_0x45acda<_0xb5aaa5[_0x29901a('0x11fc')]['errors']['length'];_0x45acda++){_0x509a86['error']({'title':_0xb5aaa5[_0x29901a('0x11fc')][_0x29901a('0x25be')][_0x45acda]['type'],'msg':_0xb5aaa5[_0x29901a('0x11fc')][_0x29901a('0x25be')][_0x45acda]['message']});}}else _0x509a86[_0x29901a('0x5e8')]({'title':_0xb5aaa5[_0x29901a('0x1b51')]?'API:'+_0xb5aaa5[_0x29901a('0x1b51')]+'\x20-\x20'+_0xb5aaa5[_0x29901a('0x22ce')]:_0x29901a('0x1ec9'),'msg':_0xb5aaa5[_0x29901a('0x11fc')]?JSON[_0x29901a('0x1be0')](_0xb5aaa5[_0x29901a('0x11fc')][_0x29901a('0x15e2')]):_0xb5aaa5[_0x29901a('0x17df')]()});});}function _0x34f683(_0x3fbbbd){const _0x1f8ea5=_0xf3c041;_0x4bf2ee[_0x1f8ea5('0x25be')]=[];const _0x30ff71=_0x3873c3[_0x1f8ea5('0x112e')]()[_0x1f8ea5('0x14e4')](_0x1f8ea5('0x458'))['content'](_0x1f8ea5('0x445'))['ariaLabel'](_0x1f8ea5('0x1ecc'))['ok'](_0x1f8ea5('0x2786'))[_0x1f8ea5('0x1801')](_0x1f8ea5('0x1481'))['targetEvent'](_0x3fbbbd);_0x3873c3[_0x1f8ea5('0x2fa')](_0x30ff71)['then'](function(){const _0x39359b=_0x1f8ea5;_0xd1d886['voiceRecording']['delete']({'id':_0x4bf2ee[_0x39359b('0x14ff')]['id']})[_0x39359b('0x1714')][_0x39359b('0x2788')](function(){const _0x1ae2fe=_0x39359b;_0x283545()[_0x1ae2fe('0x1a90')](_0x4bf2ee[_0x1ae2fe('0x2527')],{'id':_0x4bf2ee[_0x1ae2fe('0x14ff')]['id']}),_0x509a86[_0x1ae2fe('0x173b')]({'title':_0x1ae2fe('0x2676'),'msg':(_0x4bf2ee[_0x1ae2fe('0x14ff')]['name']||_0x1ae2fe('0x14ff'))+_0x1ae2fe('0x14d4')}),_0x36b130(_0x4bf2ee[_0x1ae2fe('0x14ff')]);})[_0x39359b('0x1cb5')](function(_0x36481b){const _0x206ec5=_0x39359b;if(_0x36481b['data']&&_0x36481b[_0x206ec5('0x11fc')][_0x206ec5('0x25be')]&&_0x36481b['data'][_0x206ec5('0x25be')][_0x206ec5('0x2566')]){_0x4bf2ee[_0x206ec5('0x25be')]=_0x36481b['data']['errors']||[{'message':_0x36481b['toString'](),'type':'api.voiceRecording.delete'}];for(let _0x5c847a=0x0;_0x5c847a<_0x36481b['data'][_0x206ec5('0x25be')][_0x206ec5('0x2566')];_0x5c847a++){_0x509a86[_0x206ec5('0x5e8')]({'title':_0x36481b['data'][_0x206ec5('0x25be')][_0x5c847a][_0x206ec5('0x1d7')],'msg':_0x36481b[_0x206ec5('0x11fc')][_0x206ec5('0x25be')][_0x5c847a][_0x206ec5('0x15e2')]});}}else _0x509a86[_0x206ec5('0x5e8')]({'title':_0x36481b[_0x206ec5('0x1b51')]?_0x206ec5('0x15d1')+_0x36481b['status']+_0x206ec5('0x1b0b')+_0x36481b[_0x206ec5('0x22ce')]:_0x206ec5('0x2356'),'msg':_0x36481b[_0x206ec5('0x11fc')]?JSON['stringify'](_0x36481b[_0x206ec5('0x11fc')][_0x206ec5('0x15e2')]):_0x36481b[_0x206ec5('0x15e2')]||_0x36481b[_0x206ec5('0x17df')]()});});},function(){});}function _0xa91d83(_0x3f043b){return _0x3f043b===null?undefined:new Date(_0x3f043b);}function _0x36b130(_0x4acdd6){const _0x281b83=_0xf3c041;_0x3873c3[_0x281b83('0x19d')](_0x4acdd6);}}const _0x1a1cf4=_0x53dcda;function _0x109865(){const _0x10f006=_0x34e79e,_0x59ea11=this;_0x59ea11[_0x10f006('0x14ff')]={},_0x59ea11[_0x10f006('0x24eb')]=_0x354b08;function _0x354b08(_0x259c8d){const _0x5fcb37=_0x10f006;_0x59ea11[_0x5fcb37('0x14ff')]=_0x259c8d;}}const _0x1d9b52=_0x109865;_0x34c631[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth','voiceRecording',_0x34e79e('0xec9')];function _0x34c631(_0x51ecc1,_0x59fda2,_0x54512f,_0x77e121,_0x15264f,_0x284787,_0x3579e0,_0xa124a9,_0x4c9dff,_0x1213d8,_0x42257a,_0x41383e){const _0xf470e3=_0x34e79e,_0x13cb13=this;_0x13cb13['currentUser']=_0x1213d8['getCurrentUser'](),_0x13cb13[_0xf470e3('0x130d')]=_0x284787,_0x13cb13['setting']=_0x3579e0,_0x13cb13[_0xf470e3('0x18ad')]=_0x13cb13[_0xf470e3('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13cb13[_0xf470e3('0xe9')]=_0x59fda2['protocol']()+_0xf470e3('0x726')+_0x59fda2[_0xf470e3('0x1c6a')](),_0x13cb13[_0xf470e3('0x14ff')]=_0x42257a||_0x51ecc1['params'][_0xf470e3('0x14ff')]||{},_0x13cb13[_0xf470e3('0xec9')]=_0x41383e&&_0x41383e[_0xf470e3('0x338')]==0x1?_0x41383e['rows'][0x0]:null,_0x13cb13[_0xf470e3('0xe28')]=_0x1213d8[_0xf470e3('0x157e')](_0x13cb13[_0xf470e3('0xec9')]?_0x13cb13[_0xf470e3('0xec9')][_0xf470e3('0xe28')]:null),_0x13cb13[_0xf470e3('0x1193')]={},_0x13cb13[_0xf470e3('0xcb3')]=_0x51ecc1[_0xf470e3('0x4b9')]['tab']||0x0,_0x13cb13[_0xf470e3('0x204f')]=_0x4c9dff[_0xf470e3('0x2276')],_0x13cb13[_0xf470e3('0x1361')]=_0x329fd6,_0x13cb13[_0xf470e3('0x1048')]=_0x44bb84;function _0x329fd6(){const _0x24c0b7=_0xf470e3;_0x51ecc1['go'](_0x24c0b7('0xfe3'),{},{'reload':_0x24c0b7('0xfe3')});}function _0x44bb84(){const _0xb05bb2=_0xf470e3;_0xa124a9[_0xb05bb2('0x14ff')][_0xb05bb2('0x2740')]({'id':_0x13cb13[_0xb05bb2('0x14ff')]['id']},_0x13cb13[_0xb05bb2('0x14ff')])[_0xb05bb2('0x1714')]['then'](function(){const _0x5606b8=_0xb05bb2;_0x4c9dff['success']({'title':'VoiceRecording\x20updated!','msg':_0x13cb13[_0x5606b8('0x14ff')][_0x5606b8('0x1a8d')]?_0x13cb13[_0x5606b8('0x14ff')][_0x5606b8('0x1a8d')]+_0x5606b8('0x6f8'):''});})[_0xb05bb2('0x1cb5')](function(_0x522b36){const _0x2a0c41=_0xb05bb2;_0x4c9dff[_0x2a0c41('0x5e8')]({'title':_0x522b36[_0x2a0c41('0x1b51')]?'API:'+_0x522b36[_0x2a0c41('0x1b51')]+_0x2a0c41('0x1b0b')+_0x522b36[_0x2a0c41('0x22ce')]:_0x2a0c41('0x9db'),'msg':_0x522b36[_0x2a0c41('0x11fc')]?JSON[_0x2a0c41('0x1be0')](_0x522b36['data']):_0x522b36[_0x2a0c41('0x17df')]()});});}}const _0x5d31c9=_0x34c631,_0x5706ea=_0x18dd13['p']+_0x34e79e('0x893');_0x139549[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window','$state','$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate','voiceRecordings',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x139549(_0x2396dc,_0x49c844,_0x236d6e,_0xc4936,_0x5166b0,_0x2920c0,_0x5bc3fa,_0x148a99,_0x277dfe,_0xfc16f,_0x21633a,_0x3c1664,_0x10ee56,_0x13d965,_0x853a34,_0x290ff9,_0x4d7d75){const _0x485a6d=_0x34e79e,_0x19f90c=this;_0x19f90c[_0x485a6d('0x130d')]=_0x290ff9,_0x19f90c[_0x485a6d('0x1af0')]=_0x4d7d75,_0x19f90c[_0x485a6d('0x9cb')]=_0x853a34['getCurrentUser'](),_0x19f90c[_0x485a6d('0x2527')]=_0x277dfe||{'count':0x0,'rows':[]},_0x19f90c['userProfile']=_0xfc16f,_0x19f90c[_0x485a6d('0xec9')]=_0x21633a&&_0x21633a[_0x485a6d('0x338')]==0x1?_0x21633a[_0x485a6d('0x25df')][0x0]:null,_0x19f90c[_0x485a6d('0xe28')]=_0x853a34[_0x485a6d('0x157e')](_0x19f90c[_0x485a6d('0xec9')]?_0x19f90c[_0x485a6d('0xec9')][_0x485a6d('0xe28')]:null),_0x19f90c[_0x485a6d('0x26a9')]=_0x485a6d('0x2527'),_0x19f90c[_0x485a6d('0x2278')]='',_0x19f90c[_0x485a6d('0x25e2')]=null,_0x19f90c[_0x485a6d('0x1027')]=[],_0x19f90c[_0x485a6d('0x135a')]={'fields':_0x485a6d('0x6b3'),'sort':'-updatedAt','createdAt':'@msUtils.firstLastDayMonth()','limit':0xa,'page':0x1},_0x19f90c[_0x485a6d('0x135a')][_0x485a6d('0x172')]=_0x10ee56['firstLastDayMonth'](),_0x19f90c['quickFilters']=_0x3067ca();function _0x3067ca(){const _0x4be08c=_0x485a6d;return[{'name':_0x4be08c('0x9ac'),'key':_0x4be08c('0x172'),'type':_0x4be08c('0x1012'),'label':'DASHBOARDS.SELECT_DATE_RANGE'}];}_0x19f90c[_0x485a6d('0x1f7e')]=_0xa69669,_0x19f90c[_0x485a6d('0x12dc')]=_0x3cc74d,_0x19f90c[_0x485a6d('0xb27')]=_0x33bd8c,_0x19f90c[_0x485a6d('0x1711')]=_0x35fe35,_0x19f90c['downloadtranscribefile2']=_0x532223,_0x19f90c[_0x485a6d('0x17f5')]=_0x949f4a,_0x19f90c['deleteconfirm']=_0x5a278a,_0x19f90c[_0x485a6d('0x173b')]=_0x461e53,_0x19f90c[_0x485a6d('0x1499')]=_0x308322,_0x19f90c[_0x485a6d('0x1741')]=_0x222c3d,_0x19f90c[_0x485a6d('0x2835')]=_0xb56b85,_0x19f90c['exportSelectedVoiceRecordings']=_0x1bfe69,_0x19f90c[_0x485a6d('0x1d8a')]=_0xd63a17,_0x19f90c[_0x485a6d('0x24bb')]=_0x6fdb27,_0x19f90c[_0x485a6d('0x2245')]=_0x351c40;function _0xa69669(_0x189ea3){const _0x3ceaa4=_0x485a6d;_0x236d6e['go'](_0x3ceaa4('0x12a7'),{'id':_0x189ea3['id'],'voiceRecording':_0x189ea3,'crudPermissions':_0x19f90c[_0x3ceaa4('0xe28')]});}_0x19f90c['runtranscribeSelectedVoiceRecordings']=_0x28f040;function _0x3cc74d(_0xe8981a){const _0x2f3f8b=_0x485a6d;return _0x3c1664['voiceRecording'][_0x2f3f8b('0x1966')]({'id':_0xe8981a['id'],'runSentiment':![]})['$promise'][_0x2f3f8b('0x2788')](function(_0xf05034){const _0x76015f=_0x2f3f8b;_0x13d965['success']({'title':_0x148a99[_0x76015f('0x1b11')]('VOICE.RUNTRANSCRIBE_VOICERECORDING'),'msg':_0x148a99[_0x76015f('0x1b11')](_0x76015f('0x791'))+'\x20succeded!'}),_0xe8981a[_0x76015f('0x214b')]=_0xf05034['transcribeStatus'];})[_0x2f3f8b('0x1cb5')](function(_0x134cb9){const _0x12ee0=_0x2f3f8b;_0x13d965[_0x12ee0('0x5e8')]({'title':_0x148a99[_0x12ee0('0x1b11')](_0x12ee0('0x791')),'msg':_0x134cb9[_0x12ee0('0x11fc')]?_0x134cb9[_0x12ee0('0x11fc')][_0x12ee0('0x15e2')]?_0x134cb9[_0x12ee0('0x11fc')][_0x12ee0('0x15e2')]:JSON[_0x12ee0('0x1be0')](_0x134cb9[_0x12ee0('0x11fc')]):_0x134cb9['toString']()});});}function _0x28f040(){const _0x1fc228=_0x485a6d;_0x19f90c[_0x1fc228('0x1027')][_0x1fc228('0x1534')](function(_0x2aaf13){_0x3cc74d(_0x2aaf13);}),_0x19f90c[_0x1fc228('0x1027')]=[];}_0x19f90c['runtranscribesentimentSelectedVoiceRecordings']=_0x4e1430;function _0x33bd8c(_0x482182){const _0xe9c8b2=_0x485a6d;return _0x3c1664[_0xe9c8b2('0x14ff')][_0xe9c8b2('0x1966')]({'id':_0x482182['id'],'runSentiment':!![]})[_0xe9c8b2('0x1714')][_0xe9c8b2('0x2788')](function(_0x210135){const _0x59868c=_0xe9c8b2;_0x13d965[_0x59868c('0x173b')]({'title':_0x148a99[_0x59868c('0x1b11')](_0x59868c('0x31d')),'msg':_0x148a99[_0x59868c('0x1b11')](_0x59868c('0x31d'))+_0x59868c('0x214')}),_0x482182[_0x59868c('0x214b')]=_0x210135['transcribeStatus'];})['catch'](function(_0x4fcb0c){const _0x27b8f8=_0xe9c8b2;_0x13d965[_0x27b8f8('0x5e8')]({'title':_0x148a99['instant'](_0x27b8f8('0x31d')),'msg':_0x4fcb0c[_0x27b8f8('0x11fc')]?_0x4fcb0c[_0x27b8f8('0x11fc')][_0x27b8f8('0x15e2')]?_0x4fcb0c['data'][_0x27b8f8('0x15e2')]:JSON['stringify'](_0x4fcb0c[_0x27b8f8('0x11fc')]):_0x4fcb0c[_0x27b8f8('0x17df')]()});});}function _0x4e1430(){const _0x44529c=_0x485a6d;_0x19f90c[_0x44529c('0x1027')][_0x44529c('0x1534')](function(_0x271f59){_0x33bd8c(_0x271f59);}),_0x19f90c[_0x44529c('0x1027')]=[];}_0x19f90c[_0x485a6d('0x23c4')]=_0x34c139;function _0x35fe35(_0x54ff9f){const _0x377184=_0x485a6d;return _0x3c1664[_0x377184('0x14ff')][_0x377184('0x1966')]({'id':_0x54ff9f['id'],'runSentiment':!![]})[_0x377184('0x1714')]['then'](function(){const _0x640c5f=_0x377184;_0x13d965[_0x640c5f('0x173b')]({'title':_0x148a99['instant']('VOICE.RUNSENTIMENT_VOICERECORDING'),'msg':_0x148a99[_0x640c5f('0x1b11')](_0x640c5f('0xa92'))+_0x640c5f('0x214')});})[_0x377184('0x1cb5')](function(_0x2f8447){const _0xf142d3=_0x377184;_0x13d965[_0xf142d3('0x5e8')]({'title':_0x148a99['instant'](_0xf142d3('0xa92')),'msg':_0x2f8447[_0xf142d3('0x11fc')]?_0x2f8447[_0xf142d3('0x11fc')][_0xf142d3('0x15e2')]?_0x2f8447[_0xf142d3('0x11fc')][_0xf142d3('0x15e2')]:JSON[_0xf142d3('0x1be0')](_0x2f8447['data']):_0x2f8447['toString']()});});}function _0x34c139(){_0x19f90c['selectedVoiceRecordings']['forEach'](function(_0x2bf3bb){_0x35fe35(_0x2bf3bb);}),_0x19f90c['selectedVoiceRecordings']=[];}function _0x532223(_0x180db9){const _0x42c9c9=_0x485a6d;let _0x38e8b5=![];const _0x3ddd7b=!_0x283545()[_0x42c9c9('0x1015')](_0x180db9['format'])?_0x180db9['format']:_0x180db9[_0x42c9c9('0x49')][_0x42c9c9('0x2dd')](_0x180db9[_0x42c9c9('0x49')][_0x42c9c9('0x1dee')]('.'));return _0x38e8b5=_0x3ddd7b==='.mp4'?!![]:![],_0x3c1664[_0x42c9c9('0x14ff')][_0x42c9c9('0xaba')]({'id':_0x180db9['id']})[_0x42c9c9('0x1714')][_0x42c9c9('0x2788')](function(_0x57d149){const _0x186f16=_0x42c9c9,_0x265125=[_0x57d149[_0x186f16('0x3f1')]];let _0x4a466c=_0x186f16('0x1486');const _0x4e4502=new Blob(_0x265125,{'type':_0x57d149[_0x186f16('0x1d7')]});_0x4a466c=_0x180db9[_0x186f16('0x1be7')]+_0x186f16('0x1403');const _0x57cb48=window[_0x186f16('0x11c4')][_0x186f16('0x1ae6')]('a');_0x57cb48['setAttribute']('href',URL[_0x186f16('0x1b0d')](_0x4e4502)),_0x57cb48[_0x186f16('0x1c6b')]('download',_0x4a466c),document[_0x186f16('0x945')][_0x186f16('0xcbf')](_0x57cb48),_0x57cb48[_0x186f16('0x132a')]();})[_0x42c9c9('0x1cb5')](function(_0x4ca4dc){const _0x16e0da=_0x42c9c9;if(_0x4ca4dc[_0x16e0da('0x11fc')]&&_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x25be')]&&_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x25be')][_0x16e0da('0x2566')])for(let _0x2909f4=0x0;_0x2909f4<_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x25be')]['length'];_0x2909f4++){_0x13d965[_0x16e0da('0x5e8')]({'title':_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x25be')][_0x2909f4]['type'],'msg':_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x25be')][_0x2909f4][_0x16e0da('0x15e2')]});}else{if(String(_0x4ca4dc[_0x16e0da('0x1b51')])===_0x16e0da('0x267b')&&_0x38e8b5===![])_0x13d965[_0x16e0da('0x2276')]({'title':_0x148a99[_0x16e0da('0x1b11')](_0x16e0da('0x1ad7')),'msg':_0x148a99[_0x16e0da('0x1b11')]('VOICE.WRONG_EXTENSION')});else String(_0x4ca4dc[_0x16e0da('0x1b51')])===_0x16e0da('0x267b')?_0x13d965[_0x16e0da('0x2276')]({'title':_0x148a99['instant']('VOICE.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x148a99[_0x16e0da('0x1b11')]('VOICE.FILE_NOT_FOUND')}):_0x13d965[_0x16e0da('0x5e8')]({'title':_0x4ca4dc[_0x16e0da('0x1b51')]?_0x16e0da('0x15d1')+_0x4ca4dc['status']+_0x16e0da('0x1b0b')+_0x4ca4dc[_0x16e0da('0x22ce')]:_0x16e0da('0x195a'),'msg':_0x4ca4dc['data']?JSON['stringify'](_0x4ca4dc[_0x16e0da('0x11fc')][_0x16e0da('0x15e2')]):_0x4ca4dc['toString']()});}});}function _0x58c21f(_0x49222a){const _0x5b1cc5=_0x485a6d;let _0x4f9926=_0x49222a[_0x5b1cc5('0x1dee')]('/')>-0x1?_0x49222a[_0x5b1cc5('0x2dd')](_0x49222a[_0x5b1cc5('0x1dee')]('/')+0x1):_0x49222a[_0x5b1cc5('0x1dee')]('\x5c')>-0x1?_0x49222a[_0x5b1cc5('0x2dd')](_0x49222a[_0x5b1cc5('0x1dee')]('\x5c')+0x1):_0x49222a;return _0x4f9926=_0x4f9926['substring'](0x0,_0x4f9926['lastIndexOf']('.')),_0x4f9926;}function _0x949f4a(_0x2a4922){const _0x51a4e1=_0x485a6d;let _0x21aa93=![];const _0x3c572c=!_0x283545()['isNil'](_0x2a4922[_0x51a4e1('0x22b4')])?_0x2a4922[_0x51a4e1('0x22b4')]:_0x2a4922[_0x51a4e1('0x49')]['substring'](_0x2a4922[_0x51a4e1('0x49')]['lastIndexOf']('.'));return _0x21aa93=_0x3c572c===_0x51a4e1('0x64f')?!![]:![],_0x3c1664[_0x51a4e1('0x14ff')][_0x51a4e1('0x1486')]({'id':_0x2a4922['id']})['$promise'][_0x51a4e1('0x2788')](function(_0x1316df){const _0x1f41f2=_0x51a4e1,_0x5148cb=[_0x1316df[_0x1f41f2('0x3f1')]];let _0x384e1a=_0x1f41f2('0x1486');const _0x5170ce=new Blob(_0x5148cb,{'type':_0x1316df[_0x1f41f2('0x1d7')]});_0x384e1a=_0x58c21f(_0x2a4922[_0x1f41f2('0x49')])+_0x2a4922[_0x1f41f2('0x22b4')];const _0x221deb=window[_0x1f41f2('0x11c4')][_0x1f41f2('0x1ae6')]('a');_0x221deb[_0x1f41f2('0x1c6b')](_0x1f41f2('0x186a'),URL[_0x1f41f2('0x1b0d')](_0x5170ce)),_0x221deb[_0x1f41f2('0x1c6b')](_0x1f41f2('0x1486'),_0x384e1a),document[_0x1f41f2('0x945')][_0x1f41f2('0xcbf')](_0x221deb),_0x221deb[_0x1f41f2('0x132a')]();})[_0x51a4e1('0x1cb5')](function(_0x237669){const _0x280049=_0x51a4e1;if(_0x237669[_0x280049('0x11fc')]&&_0x237669[_0x280049('0x11fc')][_0x280049('0x25be')]&&_0x237669[_0x280049('0x11fc')][_0x280049('0x25be')]['length'])for(let _0x3e1c34=0x0;_0x3e1c34<_0x237669[_0x280049('0x11fc')]['errors'][_0x280049('0x2566')];_0x3e1c34++){_0x13d965[_0x280049('0x5e8')]({'title':_0x237669[_0x280049('0x11fc')]['errors'][_0x3e1c34]['type'],'msg':_0x237669[_0x280049('0x11fc')][_0x280049('0x25be')][_0x3e1c34]['message']});}else{if(String(_0x237669[_0x280049('0x1b51')])==='404'&&_0x21aa93===![])_0x13d965[_0x280049('0x2276')]({'title':_0x148a99[_0x280049('0x1b11')](_0x280049('0x1ad7')),'msg':_0x148a99[_0x280049('0x1b11')]('VOICE.WRONG_EXTENSION')});else String(_0x237669[_0x280049('0x1b51')])===_0x280049('0x267b')?_0x13d965['info']({'title':_0x148a99['instant'](_0x280049('0x1ad7')),'msg':_0x148a99[_0x280049('0x1b11')](_0x280049('0x24ae'))}):_0x13d965[_0x280049('0x5e8')]({'title':_0x237669[_0x280049('0x1b51')]?_0x280049('0x15d1')+_0x237669['status']+_0x280049('0x1b0b')+_0x237669[_0x280049('0x22ce')]:_0x280049('0x195a'),'msg':_0x237669[_0x280049('0x11fc')]?JSON['stringify'](_0x237669['data'][_0x280049('0x15e2')]):_0x237669['toString']()});}});}function _0x5a278a(_0xf3147a,_0x21b47a){const _0x3eec8f=_0x485a6d,_0x412ddc=_0x5166b0[_0x3eec8f('0x112e')]()[_0x3eec8f('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x3eec8f('0x114')](_0x3eec8f('0x14ff'))+'?')[_0x3eec8f('0x93e')](''+(_0xf3147a[_0x3eec8f('0x1a8d')]||'voiceRecording')+_0x3eec8f('0x229e')+_0x3eec8f('0x27c7'))[_0x3eec8f('0x10bc')](_0x3eec8f('0x402'))[_0x3eec8f('0x24d0')](_0x21b47a)['ok']('OK')[_0x3eec8f('0x1801')](_0x3eec8f('0x1d8d'));_0x5166b0[_0x3eec8f('0x2fa')](_0x412ddc)[_0x3eec8f('0x2788')](function(){_0xb56b85(_0xf3147a);},function(){const _0x132e0c=_0x3eec8f;console[_0x132e0c('0x10df')]('CANCEL');});}let _0x2ac401=!![],_0x3d49d0=0x1;_0x2396dc[_0x485a6d('0x1662')](_0x485a6d('0x1569'),function(_0x58eae0,_0x428c76){const _0x452a5f=_0x485a6d;_0x2ac401?_0x5bc3fa(function(){_0x2ac401=![];}):(!_0x428c76&&(_0x3d49d0=_0x19f90c[_0x452a5f('0x135a')][_0x452a5f('0x23f5')]),_0x58eae0!==_0x428c76&&(_0x19f90c[_0x452a5f('0x135a')][_0x452a5f('0x23f5')]=0x1),!_0x58eae0&&(_0x19f90c[_0x452a5f('0x135a')]['page']=_0x3d49d0),_0x19f90c[_0x452a5f('0x1499')]());});function _0x461e53(_0x5313a5){const _0x3698cd=_0x485a6d;_0x19f90c[_0x3698cd('0x2527')]=_0x5313a5||{'count':0x0,'rows':[]};}function _0x308322(){const _0x53b078=_0x485a6d;_0x19f90c['query'][_0x53b078('0x19e')]=(_0x19f90c[_0x53b078('0x135a')][_0x53b078('0x23f5')]-0x1)*_0x19f90c['query'][_0x53b078('0x68e')],_0x853a34[_0x53b078('0x1516')](_0x53b078('0xe23'))?_0x19f90c['promise']=_0x3c1664[_0x53b078('0x14ff')][_0x53b078('0x1335')](_0x19f90c['query'],_0x461e53)[_0x53b078('0x1714')]:(_0x19f90c[_0x53b078('0x135a')]['id']=_0x19f90c['userProfile']['id'],_0x19f90c[_0x53b078('0x135a')][_0x53b078('0xb13')]=_0x53b078('0x1bb4'),_0x19f90c[_0x53b078('0x1808')]=_0x3c1664['userProfile'][_0x53b078('0xa1')](_0x19f90c[_0x53b078('0x135a')],_0x461e53)[_0x53b078('0x1714')]);}function _0x222c3d(_0x407a8a,_0x226886){const _0x4c86ab=_0x485a6d;_0x5166b0[_0x4c86ab('0x2fa')]({'controller':_0x4c86ab('0x11b3'),'controllerAs':'vm','templateUrl':_0x5706ea,'parent':angular['element'](_0x2920c0[_0x4c86ab('0x945')]),'targetEvent':_0x407a8a,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x226886,'voiceRecordings':_0x19f90c['voiceRecordings'][_0x4c86ab('0x25df')],'license':_0x19f90c[_0x4c86ab('0x130d')],'setting':_0x19f90c[_0x4c86ab('0x1af0')],'crudPermissions':_0x19f90c[_0x4c86ab('0xe28')]}});}function _0xb56b85(_0x2398c1){const _0x416cba=_0x485a6d;_0x3c1664[_0x416cba('0x14ff')][_0x416cba('0x17c4')]({'id':_0x2398c1['id']})[_0x416cba('0x1714')]['then'](function(){const _0x1f368b=_0x416cba;_0x283545()[_0x1f368b('0x1a90')](_0x19f90c[_0x1f368b('0x2527')]['rows'],{'id':_0x2398c1['id']}),_0x19f90c[_0x1f368b('0x2527')]['count']-=0x1,!_0x19f90c[_0x1f368b('0x2527')]['rows'][_0x1f368b('0x2566')]&&_0x19f90c['getVoiceRecordings'](),_0x13d965[_0x1f368b('0x173b')]({'title':_0x283545()[_0x1f368b('0x114')](_0x1f368b('0x1008'))+_0x1f368b('0x20db'),'msg':_0x2398c1[_0x1f368b('0x1a8d')]?_0x2398c1[_0x1f368b('0x1a8d')]+_0x1f368b('0x14d4'):''});})[_0x416cba('0x1cb5')](function(_0x3c8c8e){const _0x5bb077=_0x416cba;if(_0x3c8c8e[_0x5bb077('0x11fc')]&&_0x3c8c8e['data'][_0x5bb077('0x25be')]&&_0x3c8c8e[_0x5bb077('0x11fc')]['errors'][_0x5bb077('0x2566')]){_0x19f90c[_0x5bb077('0x25be')]=_0x3c8c8e[_0x5bb077('0x11fc')][_0x5bb077('0x25be')]||[{'message':_0x3c8c8e[_0x5bb077('0x17df')](),'type':_0x5bb077('0x620')}];for(let _0x365ec7=0x0;_0x365ec7<_0x3c8c8e[_0x5bb077('0x11fc')][_0x5bb077('0x25be')][_0x5bb077('0x2566')];_0x365ec7++){_0x13d965[_0x5bb077('0x5e8')]({'title':_0x3c8c8e[_0x5bb077('0x11fc')][_0x5bb077('0x25be')][_0x365ec7][_0x5bb077('0x1d7')],'msg':_0x3c8c8e[_0x5bb077('0x11fc')][_0x5bb077('0x25be')][_0x365ec7][_0x5bb077('0x15e2')]});}}else _0x13d965['error']({'title':_0x3c8c8e[_0x5bb077('0x1b51')]?_0x5bb077('0x15d1')+_0x3c8c8e['status']+'\x20-\x20'+_0x3c8c8e[_0x5bb077('0x22ce')]:'SYSTEM:DELETEvoiceRecording','msg':_0x3c8c8e['data']?JSON['stringify'](_0x3c8c8e[_0x5bb077('0x11fc')][_0x5bb077('0x15e2')]):_0x3c8c8e[_0x5bb077('0x15e2')]||_0x3c8c8e[_0x5bb077('0x17df')]()});});}function _0x1bfe69(){const _0x4736c4=_0x485a6d,_0x50c981=angular[_0x4736c4('0x2669')](_0x19f90c[_0x4736c4('0x1027')]);return _0x19f90c[_0x4736c4('0x1027')]=[],_0x50c981;}function _0xd63a17(_0x543c0a){const _0x517872=_0x485a6d,_0x27e99b=_0x5166b0[_0x517872('0x112e')]()['title'](_0x517872('0x7f'))[_0x517872('0x93e')](''+_0x19f90c[_0x517872('0x1027')][_0x517872('0x2566')]+_0x517872('0xbd')+'\x20will\x20be\x20deleted.')[_0x517872('0x10bc')](_0x517872('0x1300'))[_0x517872('0x24d0')](_0x543c0a)['ok']('OK')['cancel'](_0x517872('0x1d8d'));_0x5166b0[_0x517872('0x2fa')](_0x27e99b)[_0x517872('0x2788')](function(){const _0x304124=_0x517872;_0x19f90c[_0x304124('0x1027')]['forEach'](function(_0x326f0c){_0xb56b85(_0x326f0c);}),_0x19f90c[_0x304124('0x1027')]=[];});}function _0x6fdb27(){_0x19f90c['selectedVoiceRecordings']=[];}function _0x351c40(){const _0x26d89a=_0x485a6d;_0x19f90c[_0x26d89a('0x1027')]=_0x19f90c[_0x26d89a('0x2527')][_0x26d89a('0x25df')];}}const _0x24b617=_0x139549,_0x1a0bc1=_0x18dd13['p']+_0x34e79e('0xecc'),_0x1dce10=_0x18dd13['p']+_0x34e79e('0xfe0'),_0x266371=_0x18dd13['p']+_0x34e79e('0x11cd'),_0xc8b9ca=_0x18dd13['p']+_0x34e79e('0x262a'),_0x29b968=_0x18dd13['p']+_0x34e79e('0x1e6d'),_0x437b16=_0x18dd13['p']+_0x34e79e('0xb19'),_0x2ff40b=_0x18dd13['p']+_0x34e79e('0x42a'),_0x14aaeb=_0x18dd13['p']+_0x34e79e('0xcf1'),_0x27b652=_0x18dd13['p']+_0x34e79e('0x4bc'),_0x1ad609=_0x18dd13['p']+_0x34e79e('0x1b1f'),_0x54d1b6=_0x18dd13['p']+_0x34e79e('0x163'),_0x4d799e=_0x18dd13['p']+_0x34e79e('0xcd6'),_0x1b0a78=_0x18dd13['p']+_0x34e79e('0x384'),_0x3fd8d6=_0x18dd13['p']+_0x34e79e('0xba9'),_0xf44c15=_0x18dd13['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html',_0x4808be=_0x18dd13['p']+_0x34e79e('0x25a4'),_0x1d7b9b=_0x18dd13['p']+_0x34e79e('0x996');_0x3a6172['$inject']=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0x3a6172(_0x9b2831,_0x50eff9){const _0x5e22b9=_0x34e79e;_0x9b2831[_0x5e22b9('0x249b')](_0x5e22b9('0xe00'),{'abstract':!![],'url':_0x5e22b9('0x2680')})[_0x5e22b9('0x249b')]('app.voice.voiceQueues',{'url':'/voiceQueues','views':{'content@app':{'templateUrl':_0x1a0bc1,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':['apiResolver',_0x5e22b9('0x1b04'),function(_0x551fac,_0x34e772){const _0xd3bc46=_0x5e22b9;return _0x34e772[_0xd3bc46('0x1516')]('admin')?_0x551fac[_0xd3bc46('0x2322')](_0xd3bc46('0x18df'),{'fields':'createdAt,updatedAt,id,name,type,strategy,timeout,maxlen,retry,wrapuptime,weight,joinempty,leavewhenempty,musiconhold,announce,description,periodic_announce,queue_reporthold,queue_youarenext,queue_thereare,queue_callswaiting,queue_holdtime,queue_minutes,queue_minute,queue_seconds,queue_thankyou,announce_frequency,min_announce_frequency,periodic_announce_frequency,random_periodic_announce,announce_holdtime,announce_position,announce_position_limit,reportholdtime,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,servicelevel,mandatoryDisposition,mandatoryDispositionPauseId','type':_0xd3bc46('0x2e4'),'sort':_0xd3bc46('0x1cee'),'channel':_0xd3bc46('0x1f60'),'limit':0xa,'offset':0x0}):_0x551fac['resolve'](_0xd3bc46('0x27c5'),{'id':_0x34e772[_0xd3bc46('0x24cc')]()[_0xd3bc46('0x237f')],'section':_0xd3bc46('0x182e'),'fields':_0xd3bc46('0x242b'),'type':'inbound','sort':_0xd3bc46('0x1cee'),'channel':_0xd3bc46('0x1f60'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),'Auth',function(_0x158c27,_0x1eea33){const _0x1e6c3e=_0x5e22b9;return _0x1eea33[_0x1e6c3e('0x1516')]('admin')?null:_0x158c27[_0x1e6c3e('0x2322')](_0x1e6c3e('0x231d'),{'fields':'id,name,crudPermissions','id':_0x1eea33[_0x1e6c3e('0x24cc')]()[_0x1e6c3e('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x3bce22,_0x5c38ec){const _0x2800f2=_0x5e22b9;return _0x5c38ec[_0x2800f2('0x1516')](_0x2800f2('0xe23'))?null:_0x3bce22['resolve'](_0x2800f2('0x22ca'),{'fields':_0x2800f2('0xe2c'),'userProfileId':_0x5c38ec[_0x2800f2('0x24cc')]()[_0x2800f2('0x237f')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x210a'),{'url':_0x5e22b9('0x206b'),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1dce10,'controller':_0x5e22b9('0x1909')}},'resolve':{'voiceQueue':[_0x5e22b9('0x1318'),_0x5e22b9('0xad0'),function(_0x3282ef,_0x5626a2){const _0x2771d3=_0x5e22b9;return _0x3282ef[_0x2771d3('0x2322')](_0x2771d3('0x18df'),{'fields':_0x2771d3('0x242b'),'id':_0x5626a2['id']});}],'userProfileSection':['apiResolver',_0x5e22b9('0x1b04'),function(_0x20e0f8,_0x4ce0f0){const _0x1ba1a0=_0x5e22b9;return _0x20e0f8[_0x1ba1a0('0x2322')](_0x1ba1a0('0x22ca'),{'fields':_0x1ba1a0('0xe2c'),'userProfileId':_0x4ce0f0[_0x1ba1a0('0x24cc')]()[_0x1ba1a0('0x237f')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')]('app.voice.inboundroutes',{'url':'/inboundroutes','views':{'content@app':{'templateUrl':_0x266371,'controller':_0x5e22b9('0x3d8')}},'resolve':{'inboundroutes':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x52b067,_0x4e871c){const _0x4ae115=_0x5e22b9;return _0x4e871c[_0x4ae115('0x1516')](_0x4ae115('0xe23'))?_0x52b067['resolve'](_0x4ae115('0x47'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x4ae115('0x2e4'),'sort':_0x4ae115('0x1cee'),'VoiceExtensionId':_0x4ae115('0x954'),'limit':0xa,'offset':0x0}):_0x52b067['resolve'](_0x4ae115('0x27c5'),{'id':_0x4e871c[_0x4ae115('0x24cc')]()[_0x4ae115('0x237f')],'section':_0x4ae115('0x9c5'),'fields':_0x4ae115('0x1a1a'),'type':_0x4ae115('0x2e4'),'sort':_0x4ae115('0x1cee'),'VoiceExtensionId':_0x4ae115('0x954'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x104db3,_0x3d2660){const _0xbb1930=_0x5e22b9;return _0x3d2660[_0xbb1930('0x1516')](_0xbb1930('0xe23'))?null:_0x104db3['resolve'](_0xbb1930('0x231d'),{'fields':'id,name,crudPermissions','id':_0x3d2660[_0xbb1930('0x24cc')]()[_0xbb1930('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),'Auth',function(_0x4e91b0,_0x498f59){const _0x42f23e=_0x5e22b9;return _0x498f59[_0x42f23e('0x1516')](_0x42f23e('0xe23'))?null:_0x4e91b0[_0x42f23e('0x2322')](_0x42f23e('0x22ca'),{'fields':_0x42f23e('0xe2c'),'userProfileId':_0x498f59[_0x42f23e('0x24cc')]()[_0x42f23e('0x237f')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x1ccb'),{'url':_0x5e22b9('0x206b'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xc8b9ca,'controller':_0x5e22b9('0x7f5')}},'resolve':{'inboundroute':[_0x5e22b9('0x1318'),_0x5e22b9('0xad0'),function(_0x50ab52,_0x432827){const _0x526db9=_0x5e22b9;return _0x50ab52[_0x526db9('0x2322')](_0x526db9('0x47'),{'fields':_0x526db9('0x1a1a'),'id':_0x432827['id']});}],'userProfileSection':['apiResolver',_0x5e22b9('0x1b04'),function(_0x32ecea,_0x3a79f4){const _0x460358=_0x5e22b9;return _0x32ecea[_0x460358('0x2322')](_0x460358('0x22ca'),{'fields':_0x460358('0xe2c'),'userProfileId':_0x3a79f4['getCurrentUser']()[_0x460358('0x237f')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0xe27'),{'url':_0x5e22b9('0x18bb'),'views':{'content@app':{'templateUrl':_0x29b968,'controller':_0x5e22b9('0x1d79')}},'resolve':{'outboundroutes':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x167f53,_0x10e340){const _0xc4c2a=_0x5e22b9;return _0x10e340[_0xc4c2a('0x1516')](_0xc4c2a('0xe23'))?_0x167f53['resolve'](_0xc4c2a('0x47'),{'fields':_0xc4c2a('0x16e0'),'type':_0xc4c2a('0x1'),'sort':'-updatedAt','VoiceExtensionId':_0xc4c2a('0x954'),'limit':0xa,'offset':0x0}):_0x167f53[_0xc4c2a('0x2322')](_0xc4c2a('0x27c5'),{'id':_0x10e340[_0xc4c2a('0x24cc')]()[_0xc4c2a('0x237f')],'section':_0xc4c2a('0x1fa1'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':'outbound','sort':_0xc4c2a('0x1cee'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),'Auth',function(_0x458101,_0x225b4e){const _0x208d8b=_0x5e22b9;return _0x225b4e[_0x208d8b('0x1516')](_0x208d8b('0xe23'))?null:_0x458101['resolve'](_0x208d8b('0x231d'),{'fields':_0x208d8b('0x3f0'),'id':_0x225b4e[_0x208d8b('0x24cc')]()[_0x208d8b('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x2fe682,_0x759ad2){const _0x5bc6c0=_0x5e22b9;return _0x759ad2['hasRole'](_0x5bc6c0('0xe23'))?null:_0x2fe682[_0x5bc6c0('0x2322')](_0x5bc6c0('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x759ad2[_0x5bc6c0('0x24cc')]()[_0x5bc6c0('0x237f')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':'voice'})[_0x5e22b9('0x249b')]('app.voice.outboundroutes.edit',{'url':_0x5e22b9('0x206b'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x437b16,'controller':_0x5e22b9('0x10ab')}},'resolve':{'outboundroute':['apiResolver','$stateParams',function(_0x3e88a1,_0x9f4d1e){const _0x5f27fc=_0x5e22b9;return _0x3e88a1[_0x5f27fc('0x2322')](_0x5f27fc('0x47'),{'fields':_0x5f27fc('0x16e0'),'id':_0x9f4d1e['id']});}],'userProfileSection':['apiResolver',_0x5e22b9('0x1b04'),function(_0x5967ac,_0x193777){const _0x10e870=_0x5e22b9;return _0x5967ac['resolve'](_0x10e870('0x22ca'),{'fields':_0x10e870('0xe2c'),'userProfileId':_0x193777['getCurrentUser']()[_0x10e870('0x237f')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0xe68'),{'url':_0x5e22b9('0x140a'),'views':{'content@app':{'templateUrl':_0x2ff40b,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':[_0x5e22b9('0x1318'),'Auth',function(_0x148a1c,_0x4b42ad){const _0x3b12fa=_0x5e22b9;return _0x4b42ad[_0x3b12fa('0x1516')]('admin')?_0x148a1c[_0x3b12fa('0x2322')](_0x3b12fa('0x47'),{'fields':_0x3b12fa('0x1a1a'),'type':_0x3b12fa('0x2838'),'sort':'-updatedAt','VoiceExtensionId':_0x3b12fa('0x954'),'limit':0xa,'offset':0x0}):_0x148a1c[_0x3b12fa('0x2322')](_0x3b12fa('0x27c5'),{'id':_0x4b42ad['getCurrentUser']()['userProfileId'],'section':_0x3b12fa('0x6c0'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x3b12fa('0x2838'),'sort':_0x3b12fa('0x1cee'),'VoiceExtensionId':_0x3b12fa('0x954'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5e22b9('0x1b04'),function(_0x8ee7c2,_0xfe9f2a){const _0x4db7d0=_0x5e22b9;return _0xfe9f2a[_0x4db7d0('0x1516')](_0x4db7d0('0xe23'))?null:_0x8ee7c2['resolve'](_0x4db7d0('0x231d'),{'fields':_0x4db7d0('0x3f0'),'id':_0xfe9f2a[_0x4db7d0('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x386ac0,_0x5ed1b5){const _0x3e604c=_0x5e22b9;return _0x5ed1b5[_0x3e604c('0x1516')](_0x3e604c('0xe23'))?null:_0x386ac0[_0x3e604c('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5ed1b5['getCurrentUser']()[_0x3e604c('0x237f')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})['state'](_0x5e22b9('0x4f3'),{'url':_0x5e22b9('0x206b'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x14aaeb,'controller':_0x5e22b9('0x2323')}},'resolve':{'internalroute':[_0x5e22b9('0x1318'),'$stateParams',function(_0x36f6cd,_0x1f43b6){const _0x1bb829=_0x5e22b9;return _0x36f6cd[_0x1bb829('0x2322')](_0x1bb829('0x47'),{'fields':_0x1bb829('0x1a1a'),'id':_0x1f43b6['id']});}],'userProfileSection':[_0x5e22b9('0x1318'),'Auth',function(_0x321053,_0x45e7ef){const _0x105070=_0x5e22b9;return _0x321053[_0x105070('0x2322')](_0x105070('0x22ca'),{'fields':_0x105070('0xe2c'),'userProfileId':_0x45e7ef[_0x105070('0x24cc')]()[_0x105070('0x237f')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x218d'),{'url':'/contexts','views':{'content@app':{'templateUrl':_0x27b652,'controller':_0x5e22b9('0x1b55')}},'resolve':{'contexts':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x4fe1c8,_0x1338ae){const _0x2258ad=_0x5e22b9;return _0x1338ae[_0x2258ad('0x1516')](_0x2258ad('0xe23'))?_0x4fe1c8['resolve']('voiceContext@get',{'fields':_0x2258ad('0x1f79'),'sort':_0x2258ad('0x1cee'),'defaultEntry':_0x2258ad('0x1888'),'limit':0xa,'offset':0x0}):_0x4fe1c8[_0x2258ad('0x2322')](_0x2258ad('0x27c5'),{'id':_0x1338ae['getCurrentUser']()[_0x2258ad('0x237f')],'section':_0x2258ad('0x1b38'),'fields':_0x2258ad('0x1f79'),'sort':'-updatedAt','defaultEntry':_0x2258ad('0x1888'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x340efa,_0xe60d){const _0x21fd83=_0x5e22b9;return _0xe60d[_0x21fd83('0x1516')](_0x21fd83('0xe23'))?null:_0x340efa[_0x21fd83('0x2322')]('userProfile@get',{'fields':_0x21fd83('0x3f0'),'id':_0xe60d[_0x21fd83('0x24cc')]()[_0x21fd83('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),'Auth',function(_0x194fdf,_0x1aefcb){const _0x55b17b=_0x5e22b9;return _0x1aefcb['hasRole'](_0x55b17b('0xe23'))?null:_0x194fdf[_0x55b17b('0x2322')](_0x55b17b('0x22ca'),{'fields':_0x55b17b('0xe2c'),'userProfileId':_0x1aefcb[_0x55b17b('0x24cc')]()[_0x55b17b('0x237f')],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')]('app.voice.voicemails',{'url':_0x5e22b9('0x277a'),'views':{'content@app':{'templateUrl':_0x1ad609,'controller':'VoicemailsController\x20as\x20vm'}},'resolve':{'voicemails':[_0x5e22b9('0x1318'),'Auth',function(_0x4511ad,_0x4a7dc5){const _0x3ea2fb=_0x5e22b9;return _0x4a7dc5[_0x3ea2fb('0x1516')](_0x3ea2fb('0xe23'))?_0x4511ad[_0x3ea2fb('0x2322')](_0x3ea2fb('0x11f9'),{'fields':_0x3ea2fb('0x6a4'),'sort':_0x3ea2fb('0x1cee'),'limit':0xa,'offset':0x0}):_0x4511ad['resolve'](_0x3ea2fb('0x27c5'),{'id':_0x4a7dc5[_0x3ea2fb('0x24cc')]()['userProfileId'],'section':_0x3ea2fb('0x604'),'fields':_0x3ea2fb('0x6a4'),'sort':_0x3ea2fb('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x410ef9,_0x472e9d){const _0xdcbe01=_0x5e22b9;return _0x472e9d['hasRole'](_0xdcbe01('0xe23'))?null:_0x410ef9[_0xdcbe01('0x2322')](_0xdcbe01('0x231d'),{'fields':_0xdcbe01('0x3f0'),'id':_0x472e9d[_0xdcbe01('0x24cc')]()[_0xdcbe01('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),'Auth',function(_0x3a61db,_0x43b4c9){const _0x4ffbc5=_0x5e22b9;return _0x43b4c9[_0x4ffbc5('0x1516')](_0x4ffbc5('0xe23'))?null:_0x3a61db[_0x4ffbc5('0x2322')](_0x4ffbc5('0x22ca'),{'fields':_0x4ffbc5('0xe2c'),'userProfileId':_0x43b4c9[_0x4ffbc5('0x24cc')]()[_0x4ffbc5('0x237f')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0xa16'),{'url':_0x5e22b9('0x206b'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x54d1b6,'controller':'VoicemailController\x20as\x20vm'}},'resolve':{'voicemail':[_0x5e22b9('0x1318'),_0x5e22b9('0xad0'),function(_0x57b1d6,_0x5758d9){const _0x541932=_0x5e22b9;return _0x57b1d6['resolve'](_0x541932('0x11f9'),{'fields':_0x541932('0x6a4'),'id':_0x5758d9['id']});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0xaef9ad,_0x2f014d){const _0x1e7fed=_0x5e22b9;return _0xaef9ad['resolve']('userProfileSection@get',{'fields':_0x1e7fed('0xe2c'),'userProfileId':_0x2f014d[_0x1e7fed('0x24cc')]()[_0x1e7fed('0x237f')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})[_0x5e22b9('0x249b')](_0x5e22b9('0x16f1'),{'url':_0x5e22b9('0x1229'),'views':{'content@app':{'templateUrl':_0x4d799e,'controller':_0x5e22b9('0xf0d')}},'resolve':{'musiconholds':['apiResolver',_0x5e22b9('0x1b04'),function(_0x4bc295,_0x23f1d4){const _0xd0be51=_0x5e22b9;return _0x23f1d4[_0xd0be51('0x1516')](_0xd0be51('0xe23'))?_0x4bc295[_0xd0be51('0x2322')](_0xd0be51('0x305'),{'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0xd0be51('0x1888'),'limit':0xa,'offset':0x0}):_0x4bc295[_0xd0be51('0x2322')](_0xd0be51('0x27c5'),{'id':_0x23f1d4['getCurrentUser']()[_0xd0be51('0x237f')],'section':'MusicOnHolds','fields':_0xd0be51('0xe63'),'defaultEntry':'false','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5e22b9('0x1b04'),function(_0x126649,_0x228e02){const _0x66b25=_0x5e22b9;return _0x228e02[_0x66b25('0x1516')](_0x66b25('0xe23'))?null:_0x126649[_0x66b25('0x2322')](_0x66b25('0x231d'),{'fields':'id,name,crudPermissions','id':_0x228e02[_0x66b25('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x5e22b9('0x1b04'),function(_0x4cc2e0,_0x160fc8){const _0x313b55=_0x5e22b9;return _0x160fc8[_0x313b55('0x1516')]('admin')?null:_0x4cc2e0[_0x313b55('0x2322')](_0x313b55('0x22ca'),{'fields':_0x313b55('0xe2c'),'userProfileId':_0x160fc8[_0x313b55('0x24cc')]()[_0x313b55('0x237f')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x53b'),{'url':_0x5e22b9('0x206b'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1b0a78,'controller':_0x5e22b9('0x70e')}},'resolve':{'musiconhold':[_0x5e22b9('0x1318'),_0x5e22b9('0xad0'),function(_0x2f06a6,_0x997d18){const _0x1d2550=_0x5e22b9;return _0x2f06a6[_0x1d2550('0x2322')](_0x1d2550('0x305'),{'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','id':_0x997d18['id']});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x2f00d1,_0x4206b5){const _0x558c9b=_0x5e22b9;return _0x2f00d1[_0x558c9b('0x2322')](_0x558c9b('0x22ca'),{'fields':_0x558c9b('0xe2c'),'userProfileId':_0x4206b5[_0x558c9b('0x24cc')]()['userProfileId'],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0xfe3'),{'url':'/voiceRecordings','views':{'content@app':{'templateUrl':_0x3fd8d6,'controller':_0x5e22b9('0x18fa')}},'resolve':{'voiceRecordings':['apiResolver',_0x5e22b9('0x1b04'),_0x5e22b9('0x9c4'),function(_0xb141de,_0x7ea8f2,_0x27b3ef){const _0x1a7d9d=_0x5e22b9;return _0x7ea8f2['hasRole'](_0x1a7d9d('0xe23'))?_0xb141de[_0x1a7d9d('0x2322')](_0x1a7d9d('0x18e4'),{'fields':_0x1a7d9d('0x6b3'),'sort':_0x1a7d9d('0x1cee'),'createdAt':_0x27b3ef[_0x1a7d9d('0x65a')](),'limit':0xa,'offset':0x0}):_0xb141de[_0x1a7d9d('0x2322')](_0x1a7d9d('0x27c5'),{'id':_0x7ea8f2[_0x1a7d9d('0x24cc')]()[_0x1a7d9d('0x237f')],'section':_0x1a7d9d('0x1bb4'),'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','sort':_0x1a7d9d('0x1cee'),'createdAt':_0x27b3ef['firstLastDayMonth'](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0xfb3e81,_0x385968){const _0x417f24=_0x5e22b9;return _0x385968['hasRole'](_0x417f24('0xe23'))?null:_0xfb3e81[_0x417f24('0x2322')]('userProfile@get',{'fields':_0x417f24('0x3f0'),'id':_0x385968[_0x417f24('0x24cc')]()[_0x417f24('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),'Auth',function(_0x4da635,_0x153c59){const _0x36e092=_0x5e22b9;return _0x153c59[_0x36e092('0x1516')](_0x36e092('0xe23'))?null:_0x4da635[_0x36e092('0x2322')](_0x36e092('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x153c59[_0x36e092('0x24cc')]()[_0x36e092('0x237f')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x12a7'),{'url':'/:id?tab','params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xf44c15,'controller':_0x5e22b9('0x24fd')}},'resolve':{'voiceRecording':['apiResolver',_0x5e22b9('0xad0'),function(_0x29069a,_0x4b4459){const _0x322a2c=_0x5e22b9;return _0x29069a[_0x322a2c('0x2322')](_0x322a2c('0x18e4'),{'fields':_0x322a2c('0x6b3'),'id':_0x4b4459['id']});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x2849f0,_0x2f0a33){const _0x59eb1d=_0x5e22b9;return _0x2849f0[_0x59eb1d('0x2322')](_0x59eb1d('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f0a33[_0x59eb1d('0x24cc')]()[_0x59eb1d('0x237f')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')](_0x5e22b9('0x24df'),{'url':_0x5e22b9('0x26d'),'views':{'content@app':{'templateUrl':_0x4808be,'controller':'ChanSpiesController\x20as\x20vm'}},'resolve':{'chanSpies':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x33b21e,_0x2d33b0){const _0x2a4e02=_0x5e22b9;return _0x2d33b0[_0x2a4e02('0x1516')]('admin')?_0x33b21e['resolve']('voiceChanSpy@get',{'fields':_0x2a4e02('0xa7b'),'sort':_0x2a4e02('0x1cee'),'limit':0xa,'offset':0x0}):_0x33b21e['resolve']('userProfile@getResources',{'id':_0x2d33b0['getCurrentUser']()[_0x2a4e02('0x237f')],'section':_0x2a4e02('0x732'),'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x2a4e02('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x1ab03f,_0x5256e4){const _0x570311=_0x5e22b9;return _0x5256e4[_0x570311('0x1516')]('admin')?null:_0x1ab03f[_0x570311('0x2322')]('userProfile@get',{'fields':_0x570311('0x3f0'),'id':_0x5256e4['getCurrentUser']()[_0x570311('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x4e6e5f,_0x2a812e){const _0x258aa1=_0x5e22b9;return _0x2a812e[_0x258aa1('0x1516')]('admin')?null:_0x4e6e5f[_0x258aa1('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2a812e[_0x258aa1('0x24cc')]()[_0x258aa1('0x237f')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x5e22b9('0x1f60')})[_0x5e22b9('0x249b')]('app.voice.voicePrefixes',{'url':_0x5e22b9('0xd67'),'views':{'content@app':{'templateUrl':_0x1d7b9b,'controller':_0x5e22b9('0x19f0')}},'resolve':{'voicePrefixes':[_0x5e22b9('0x1318'),'Auth',function(_0x55b5ba,_0x2235fd){const _0x80db01=_0x5e22b9;return _0x2235fd[_0x80db01('0x1516')]('admin')?_0x55b5ba[_0x80db01('0x2322')](_0x80db01('0x1afe'),{'fields':_0x80db01('0x23c7'),'limit':0xa,'offset':0x0}):_0x55b5ba[_0x80db01('0x2322')](_0x80db01('0x27c5'),{'id':_0x2235fd[_0x80db01('0x24cc')]()['userProfileId'],'section':_0x80db01('0x22d4'),'fields':_0x80db01('0x23c7'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x5814a9,_0x10eaab){const _0x9f3113=_0x5e22b9;return _0x10eaab[_0x9f3113('0x1516')](_0x9f3113('0xe23'))?null:_0x5814a9[_0x9f3113('0x2322')](_0x9f3113('0x231d'),{'fields':_0x9f3113('0x3f0'),'id':_0x10eaab[_0x9f3113('0x24cc')]()[_0x9f3113('0x237f')]});}],'userProfileSection':[_0x5e22b9('0x1318'),_0x5e22b9('0x1b04'),function(_0x1bc30b,_0x5c53ad){const _0x3be2d1=_0x5e22b9;return _0x5c53ad[_0x3be2d1('0x1516')](_0x3be2d1('0xe23'))?null:_0x1bc30b[_0x3be2d1('0x2322')](_0x3be2d1('0x22ca'),{'fields':_0x3be2d1('0xe2c'),'userProfileId':_0x5c53ad['getCurrentUser']()[_0x3be2d1('0x237f')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x5e22b9('0x1f60')}),_0x50eff9[_0x5e22b9('0x15ae')](_0x5e22b9('0xd52'));}angular[_0x34e79e('0x16e2')]('app.voice',[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),'mdColorPicker',_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),'mdPickers',_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82'),_0x34e79e('0x14cb')])[_0x34e79e('0x1a22')](_0x3a6172)[_0x34e79e('0xb44')]('ChanSpiesController',_0x2d69f3)[_0x34e79e('0xb44')]('CreateOrEditchanSpyDialogController',_0xbe994e)['controller']('ContextsController',_0x1101b8)[_0x34e79e('0xb44')](_0x34e79e('0x1937'),_0x4512b9)['controller']('CreateOrEditInboundRouteDialogController',_0x12be53)['controller']('InboundRouteActionsController',_0x183217)[_0x34e79e('0xb44')](_0x34e79e('0x14f2'),_0x4c60c2)[_0x34e79e('0xb44')](_0x34e79e('0x1a09'),_0x1fbe61)['controller'](_0x34e79e('0xde5'),_0x57c6e9)['controller']('EditInboundAppexternaldialDialogController',_0x24ceff)[_0x34e79e('0xb44')]('EditInboundAppgotoDialogController',_0x1dcc02)[_0x34e79e('0xb44')]('EditInboundApphangupDialogController',_0x548a56)['controller'](_0x34e79e('0x37e'),_0x15f11d)[_0x34e79e('0xb44')]('EditInboundAppintervalDialogController',_0x38b0f0)['controller'](_0x34e79e('0x13b5'),_0x3bb484)[_0x34e79e('0xb44')]('EditInboundAppqueueDialogController',_0x4eb335)['controller']('EditInboundAppringgroupDialogController',_0x1e3a3a)['controller'](_0x34e79e('0x1d70'),_0x51423d)[_0x34e79e('0xb44')](_0x34e79e('0x22c3'),_0x28c3ac)[_0x34e79e('0xb44')]('InboundRouteController',_0x251c0a)['controller'](_0x34e79e('0x22c4'),_0x3d06c9)[_0x34e79e('0xb44')](_0x34e79e('0x544'),_0x30cc21)['controller'](_0x34e79e('0xa9e'),_0x45ebee)[_0x34e79e('0xb44')](_0x34e79e('0x45f'),_0x35a56b)[_0x34e79e('0xb44')](_0x34e79e('0x1526'),_0x492ebf)[_0x34e79e('0xb44')](_0x34e79e('0xf10'),_0x5a27ff)[_0x34e79e('0xb44')](_0x34e79e('0x6eb'),_0x3eefe9)[_0x34e79e('0xb44')](_0x34e79e('0x23c9'),_0x5d26f5)[_0x34e79e('0xb44')](_0x34e79e('0x2c3'),_0x5038fe)[_0x34e79e('0xb44')](_0x34e79e('0x104b'),_0x476ebe)[_0x34e79e('0xb44')](_0x34e79e('0x1624'),_0x1ece5a)[_0x34e79e('0xb44')](_0x34e79e('0xd88'),_0x274aca)[_0x34e79e('0xb44')](_0x34e79e('0x782'),_0x36103e)[_0x34e79e('0xb44')]('EditInternalAppringgroupDialogController',_0x26f2fd)[_0x34e79e('0xb44')]('EditInternalAppsetDialogController',_0x2a0ddf)[_0x34e79e('0xb44')](_0x34e79e('0x20d3'),_0x2b67b8)[_0x34e79e('0xb44')](_0x34e79e('0xad3'),_0xa9cde8)[_0x34e79e('0xb44')](_0x34e79e('0x57d'),_0xc98cd9)[_0x34e79e('0xb44')]('CreateOrEditMusicOnHoldDialogController',_0x37efc8)['controller'](_0x34e79e('0x65d'),_0x25423d)['controller'](_0x34e79e('0xd15'),_0x10623b)[_0x34e79e('0xb44')]('MusicOnHoldController',_0x272090)[_0x34e79e('0xb44')](_0x34e79e('0xd8e'),_0xe4035d),angular[_0x34e79e('0x16e2')](_0x34e79e('0xe00'))[_0x34e79e('0xb44')](_0x34e79e('0xdd0'),_0x5f56df)[_0x34e79e('0xb44')](_0x34e79e('0x1c0d'),_0x5782e7)[_0x34e79e('0xb44')]('EditoutboundAppcustomDialogController',_0x1ea8e8)['controller'](_0x34e79e('0x10ba'),_0x137170)[_0x34e79e('0xb44')](_0x34e79e('0x1932'),_0x1ed135)[_0x34e79e('0xb44')](_0x34e79e('0xdff'),_0x3c9551)[_0x34e79e('0xb44')]('OutboundRoutesController',_0x278616)[_0x34e79e('0xb44')](_0x34e79e('0x1396'),_0x124978)[_0x34e79e('0xb44')](_0x34e79e('0x2451'),_0xf10235)[_0x34e79e('0xb44')](_0x34e79e('0x1a44'),_0x379fb5)['controller']('VoicemailsController',_0x33374d)[_0x34e79e('0xb44')](_0x34e79e('0x47b'),_0xce6aac)['controller'](_0x34e79e('0xad6'),_0x2b77e5)[_0x34e79e('0xb44')](_0x34e79e('0x1e49'),_0x35056a)['controller']('CreateOrEditVoiceQueueDialogController',_0x5a1d0a)['controller']('VoiceQueueagentaddController',_0x51c7e6)[_0x34e79e('0xb44')]('VoiceQueueteamaddController',_0x441db8)['controller']('VoiceQueueController',_0x3dd203)[_0x34e79e('0xb44')]('VoiceQueuesController',_0x2f4486)['controller'](_0x34e79e('0x11b3'),_0x1a1cf4)['controller'](_0x34e79e('0x566'),_0x1d9b52)[_0x34e79e('0xb44')](_0x34e79e('0x316'),_0x5d31c9)[_0x34e79e('0xb44')](_0x34e79e('0x19e3'),_0x24b617);const _0x117f46=_0x18dd13['p']+_0x34e79e('0x25da'),_0x26be7f=_0x18dd13['p']+_0x34e79e('0x1b2f'),_0x1f9233=_0x18dd13['p']+_0x34e79e('0xbd8'),_0x3b8070=_0x18dd13['p']+_0x34e79e('0x2211'),_0x1ab2c6=_0x18dd13['p']+_0x34e79e('0xa89'),_0x33baab=_0x18dd13['p']+_0x34e79e('0xfe5'),_0x14585e=_0x18dd13['p']+'src/js/modules/main/apps/chat/views/realtime/queues/view.html/view.html';_0x29703a[_0x34e79e('0x2d9')]=['$scope','$q',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$filter',_0x34e79e('0x225d'),_0x34e79e('0x1713'),_0x34e79e('0x1c55'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),'helperClasses',_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'$interval'];function _0x29703a(_0x4ab037,_0x29bc26,_0x2b6447,_0x5f552e,_0x46170c,_0x4ee92c,_0x3ff4d1,_0x225a9b,_0x3ab248,_0x442c24,_0x104b60,_0x1d3f9c,_0x378ecf,_0x48dff4,_0x2b7555,_0xc65387,_0x47e5eb,_0x4d3993){const _0x345ae6=_0x34e79e,_0x27c420=this,_0x4579d5=[_0x345ae6('0x261d'),'online','lastLoginAt',_0x345ae6('0x233e'),'pauseType',_0x345ae6('0x233e'),_0x345ae6('0x2838'),_0x345ae6('0x32e'),_0x345ae6('0x23a5'),_0x345ae6('0x1098'),'mailPause',_0x345ae6('0xfd5'),_0x345ae6('0x924'),_0x345ae6('0x1891'),_0x345ae6('0x2a1'),_0x345ae6('0x4e0'),'openchannelCapacity',_0x345ae6('0x251c'),'smsCapacity',_0x345ae6('0x982'),_0x345ae6('0xc8b'),_0x345ae6('0xc78'),'openchannelCurrentCapacity','mailCurrentCapacity','smsCurrentCapacity','whatsappCurrentCapacity','faxCurrentCapacity','chatStatus',_0x345ae6('0x18a3'),_0x345ae6('0x1a75'),_0x345ae6('0x698'),_0x345ae6('0x167f'),_0x345ae6('0x17d6'),_0x345ae6('0x1536'),'chatStatusTime',_0x345ae6('0x320'),'mailStatusTime',_0x345ae6('0x27b0'),_0x345ae6('0x1ac7'),_0x345ae6('0xbc'),_0x345ae6('0x48b'),_0x345ae6('0x1ab4'),_0x345ae6('0xdb6'),_0x345ae6('0x12b5'),_0x345ae6('0x15d7'),'phoneBarEnableAutomaticScreenRecording'],_0x57e7f9=[_0x345ae6('0x23a5'),_0x345ae6('0x1098'),_0x345ae6('0x20cd'),_0x345ae6('0xfd5'),'whatsappPause',_0x345ae6('0x1891'),_0x345ae6('0x2a1'),_0x345ae6('0x7c2')];_0x27c420[_0x345ae6('0x9cb')]=_0xc65387['getCurrentUser'](),_0x27c420[_0x345ae6('0x27be')]=['ringing',_0x345ae6('0x11c3'),_0x345ae6('0xed9'),_0x345ae6('0x2097'),'not_inuse'],_0x27c420['pauses']=_0x3ff4d1||{'count':0x0,'rows':[]},_0x27c420[_0x345ae6('0x130d')]=_0x47e5eb,_0x27c420['userProfile']=_0x48dff4,_0x27c420[_0x345ae6('0xec9')]=_0x2b7555&&_0x2b7555[_0x345ae6('0x338')]==0x1?_0x2b7555[_0x345ae6('0x25df')][0x0]:null,_0x27c420['crudPermissions']=_0xc65387['parseCrudPermissions'](_0x27c420[_0x345ae6('0xec9')]?_0x27c420['userProfileSection'][_0x345ae6('0xe28')]:null),_0x27c420[_0x345ae6('0x1713')]=_0x225a9b?_0x283545()['keyBy'](_0x225a9b[_0x345ae6('0x25df')]?_0x225a9b[_0x345ae6('0x25df')]:[],'id'):{},_0x27c420[_0x345ae6('0x1c55')]=_0x3ab248?_0x283545()[_0x345ae6('0x13cf')](_0x3ab248[_0x345ae6('0x25df')]?_0x3ab248[_0x345ae6('0x25df')]:[],'id'):{},_0x27c420['paginatedAgents']={},_0x27c420['load']=![],_0x27c420[_0x345ae6('0x1dc2')]=[],_0x27c420['agentInternal']={};for(const _0x25188d in _0x27c420[_0x345ae6('0x1713')]){typeof _0x27c420['agents'][_0x25188d]!==_0x345ae6('0xedb')&&(_0x27c420['agents'][_0x25188d]['init']=!![]);}_0x27c420[_0x345ae6('0x135a')]={'limit':0xa,'page':0x1,'order':_0x345ae6('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0x27c420[_0x345ae6('0x192f')]=_0x3066d3,_0x27c420[_0x345ae6('0x2025')]=_0x2d3380,_0x27c420[_0x345ae6('0x619')]=_0x4dac66,_0x27c420[_0x345ae6('0xc00')]=_0x4807b6,_0x27c420[_0x345ae6('0xa35')]=_0x25f8f0,_0x27c420[_0x345ae6('0xd10')]=_0x127861,_0x27c420['getAgentGlobalStatus']=_0x158efe,_0x27c420[_0x345ae6('0x192')]=_0x11de76,_0x27c420['checkPause']=_0x59ec95,_0x27c420['isPartialPause']=_0xc2dbe0,_0x27c420[_0x345ae6('0x158d')]=_0x123c1c,_0x27c420[_0x345ae6('0x2409')]=_0x3af242,_0x27c420[_0x345ae6('0x122e')]=_0x3f4b32,_0x27c420[_0x345ae6('0x2826')]=_0x3a1f79,_0x27c420['onComplete']=_0x17d23a,_0x27c420[_0x345ae6('0x1e03')]=_0xcbdb59,_0x104b60['on']('user:save',_0x27c420[_0x345ae6('0x158d')]),_0x104b60['on']('user:update',_0x27c420[_0x345ae6('0x2409')]),_0x104b60['on'](_0x345ae6('0x1958'),_0x27c420[_0x345ae6('0x2826')]),_0x104b60['on']('user:agentcomplete',_0x27c420[_0x345ae6('0xb61')]),_0x3f4b32();let _0x3ecb79=_0x4d3993(function(){const _0x282a24=_0x345ae6;_0x27c420['load']&&(_0x27c420[_0x282a24('0x374')]=![],_0x3f4b32());},0x3e7);function _0x3f4b32(){const _0x3835a1=_0x345ae6;_0x27c420[_0x3835a1('0x374')]=![];const _0x2c6db8=_0x29bc26[_0x3835a1('0x2311')]();_0x27c420[_0x3835a1('0x1808')]=_0x2c6db8['promise'],_0x27c420['filteredAgents']=[],_0x27c420['order']=[],_0x283545()[_0x3835a1('0x1b')](_0x27c420[_0x3835a1('0x1713')],function(_0x38ec4f,_0x12573e){const _0x19a877=_0x3835a1;_0x27c420[_0x19a877('0x1c55')][_0x12573e]&&_0x283545()[_0x19a877('0x2503')](_0x38ec4f,_0x283545()['pick'](_0x283545()[_0x19a877('0x5a9')](_0x27c420['rpcAgents'][_0x12573e],_0x57e7f9),_0x4579d5)),_0x158efe(_0x38ec4f),_0x38ec4f[_0x19a877('0x7c2')]?(_0x27c420[_0x19a877('0xfe8')][_0x19a877('0x13e3')](_0x38ec4f),_0x27c420[_0x19a877('0x1564')][_0x38ec4f['internal']]=_0x12573e):_0x38ec4f[_0x19a877('0xf3b')]=_0x283545()[_0x19a877('0x420')](_0x59f37a()()[_0x19a877('0x22b4')]('x'));});_0x27c420[_0x3835a1('0x135a')][_0x3835a1('0x52c')]&&_0x283545()[_0x3835a1('0x1a90')](_0x27c420['filteredAgents'],function(_0x3ac5b2){const _0x5187cb=_0x3835a1;return _0x3ac5b2[_0x5187cb('0xee3')]!==_0x27c420[_0x5187cb('0x135a')][_0x5187cb('0x52c')];});_0x27c420[_0x3835a1('0x135a')][_0x3835a1('0xf25')]&&_0x283545()[_0x3835a1('0x1a90')](_0x27c420[_0x3835a1('0xfe8')],function(_0x3b4b94){const _0x2f3089=_0x3835a1;return _0x3b4b94[_0x2f3089('0x11e9')]!==_0x27c420['query'][_0x2f3089('0xf25')];});_0x27c420[_0x3835a1('0x135a')][_0x3835a1('0x916')]&&_0x283545()[_0x3835a1('0x1a90')](_0x27c420[_0x3835a1('0xfe8')],function(_0x5ccd74){const _0x22ec6c=_0x3835a1;return _0x5ccd74['fullname'][_0x22ec6c('0xc2e')]()[_0x22ec6c('0x821')](_0x27c420[_0x22ec6c('0x135a')][_0x22ec6c('0x916')][_0x22ec6c('0xc2e')]())<0x0;});_0x27c420[_0x3835a1('0xfe8')]=_0x21ed6e(_0x27c420[_0x3835a1('0xfe8')]);const _0x10e7bd=(_0x27c420[_0x3835a1('0x135a')]['page']-0x1)*_0x27c420[_0x3835a1('0x135a')][_0x3835a1('0x68e')];_0x27c420[_0x3835a1('0x26ed')]=_0x283545()[_0x3835a1('0x280')](_0x27c420[_0x3835a1('0xfe8')],_0x10e7bd)['slice'](0x0,_0x27c420['query'][_0x3835a1('0x68e')]);for(let _0x4f1e39=0x0;_0x4f1e39<_0x27c420[_0x3835a1('0x26ed')]['length'];_0x4f1e39+=0x1){_0x27c420[_0x3835a1('0x1dc2')][_0x3835a1('0x13e3')](_0x27c420[_0x3835a1('0x26ed')][_0x4f1e39]['id']);}_0x2c6db8['resolve'](),_0x27c420[_0x3835a1('0x374')]=!![];}function _0x123c1c(_0x8f5324){const _0x41c94e=_0x345ae6;_0x27c420[_0x41c94e('0x1713')][_0x8f5324['id']]&&(_0x283545()[_0x41c94e('0x2503')](_0x27c420[_0x41c94e('0x1713')][_0x8f5324['id']],_0x283545()[_0x41c94e('0x41b')](_0x283545()[_0x41c94e('0x5a9')](_0x8f5324,_0x57e7f9),_0x4579d5)),_0x283545()[_0x41c94e('0x2503')](_0x27c420[_0x41c94e('0x1c55')][_0x8f5324['id']],_0x283545()[_0x41c94e('0x41b')](_0x283545()['omit'](_0x8f5324,_0x57e7f9),_0x4579d5)),_0x158efe(_0x27c420[_0x41c94e('0x1713')][_0x8f5324['id']]));}function _0x3af242(_0x341854){const _0x4322d1=_0x345ae6;_0x27c420['agents'][_0x341854['id']]&&(_0x283545()[_0x4322d1('0x2503')](_0x27c420['agents'][_0x341854['id']],_0x283545()[_0x4322d1('0x41b')](_0x341854,_0x4579d5)),_0x283545()['merge'](_0x27c420[_0x4322d1('0x1c55')][_0x341854['id']],_0x283545()[_0x4322d1('0x41b')](_0x341854,_0x4579d5)),_0x341854[_0x4322d1('0x233e')]&&(_0x27c420[_0x4322d1('0x1713')][_0x341854['id']][_0x4322d1('0xf3b')]=_0x341854['lastPauseAt'],_0x27c420['rpcAgents'][_0x341854['id']][_0x4322d1('0xf3b')]=_0x341854[_0x4322d1('0x233e')]),_0x158efe(_0x27c420[_0x4322d1('0x1713')][_0x341854['id']]));}function _0x3a1f79(_0x46cde0){const _0x1dd478=_0x345ae6;_0x27c420[_0x1dd478('0x1713')][_0x27c420['agentInternal'][_0x46cde0[_0x1dd478('0x7f4')]]]&&(_0x283545()[_0x1dd478('0x2503')](_0x27c420[_0x1dd478('0x1713')][_0x27c420[_0x1dd478('0x1564')][_0x46cde0[_0x1dd478('0x7f4')]]],_0x283545()['pick'](_0x46cde0,['queue','destconnectedlinenum'])),_0x283545()[_0x1dd478('0x2503')](_0x27c420[_0x1dd478('0x1c55')][_0x27c420['agentInternal'][_0x46cde0[_0x1dd478('0x7f4')]]],_0x283545()['pick'](_0x46cde0,[_0x1dd478('0x1ab4'),_0x1dd478('0xdb6')])));}function _0x17d23a(_0x328728){const _0x22401a=_0x345ae6;_0x27c420['agents'][_0x27c420['agentInternal'][_0x328728[_0x22401a('0x7f4')]]]&&(_0x27c420['agents'][_0x27c420[_0x22401a('0x1564')][_0x328728[_0x22401a('0x7f4')]]]=_0x283545()[_0x22401a('0x5a9')](_0x27c420[_0x22401a('0x1713')][_0x27c420[_0x22401a('0x1564')][_0x328728[_0x22401a('0x7f4')]]],[_0x22401a('0x1ab4'),'destconnectedlinenum']),_0x27c420[_0x22401a('0x1c55')][_0x27c420[_0x22401a('0x1564')][_0x328728[_0x22401a('0x7f4')]]]=_0x283545()[_0x22401a('0x5a9')](_0x27c420[_0x22401a('0x1c55')][_0x27c420['agentInternal'][_0x328728['destaccountcode']]],['queue','destconnectedlinenum']));}function _0x3066d3(_0x9b243d){const _0x142da6=_0x345ae6;return _0x442c24[_0x142da6('0x1e6a')][_0x142da6('0x192f')]({'id':_0x9b243d['id'],'device':'realtime','agent_id':_0x9b243d['id'],'agent_name':_0x9b243d[_0x142da6('0x1a8d')]})[_0x142da6('0x1714')]['then'](function(){const _0x5f752c=_0x142da6;_0x1d3f9c[_0x5f752c('0x173b')]({'title':_0x5f752c('0x256b'),'msg':_0x9b243d[_0x5f752c('0x2831')]+'\x20\x20properly\x20logout'}),_0x27c420['agents'][_0x9b243d['id']]&&(_0x27c420[_0x5f752c('0x1713')][_0x9b243d['id']]['online']=![]),_0x27c420[_0x5f752c('0x1c55')][_0x9b243d['id']]&&(_0x27c420[_0x5f752c('0x1c55')][_0x9b243d['id']][_0x5f752c('0x7c2')]=![]),_0x3f4b32();})[_0x142da6('0x1cb5')](function(_0x477ac4){const _0x4f3be7=_0x142da6;_0x1d3f9c[_0x4f3be7('0x5e8')]({'title':_0x477ac4[_0x4f3be7('0x1b51')]?'API:'+_0x477ac4[_0x4f3be7('0x1b51')]+_0x4f3be7('0x1b0b')+_0x477ac4['statusText']:_0x4f3be7('0x184d'),'msg':_0x477ac4[_0x4f3be7('0x11fc')]?JSON[_0x4f3be7('0x1be0')](_0x477ac4['data'][_0x4f3be7('0x15e2')]):_0x477ac4[_0x4f3be7('0x17df')]()});});}function _0x4dac66(_0x1244ea,_0x2b3582){const _0x45484c=_0x345ae6;return _0x442c24[_0x45484c('0x1e6a')][_0x45484c('0x619')]({'id':_0x1244ea['id'],'type':_0x2b3582})[_0x45484c('0x1714')][_0x45484c('0x2788')](function(_0x382447){const _0xd960cb=_0x45484c;_0x27c420['agents'][_0x1244ea['id']]&&_0x283545()[_0xd960cb('0x2503')](_0x27c420[_0xd960cb('0x1713')][_0x1244ea['id']],_0x283545()[_0xd960cb('0x41b')](_0x382447,_0x4579d5)),_0x27c420[_0xd960cb('0x1c55')][_0x1244ea['id']]&&_0x283545()['merge'](_0x27c420[_0xd960cb('0x1c55')][_0x1244ea['id']],_0x283545()['pick'](_0x382447,_0x4579d5)),_0x158efe(_0x27c420[_0xd960cb('0x1713')][_0x1244ea['id']]);})[_0x45484c('0x1cb5')](function(_0x24604a){const _0x2efef2=_0x45484c;_0x1d3f9c['error']({'title':_0x24604a[_0x2efef2('0x1b51')]?_0x2efef2('0x15d1')+_0x24604a[_0x2efef2('0x1b51')]+_0x2efef2('0x1b0b')+_0x24604a[_0x2efef2('0x22ce')]:'api.staff.save','msg':_0x24604a['data']?JSON[_0x2efef2('0x1be0')](_0x24604a[_0x2efef2('0x11fc')][_0x2efef2('0x15e2')]):_0x24604a[_0x2efef2('0x17df')]()});});}function _0x4807b6(_0x3af4fe){const _0x3341db=_0x345ae6;return _0x442c24['user'][_0x3341db('0x1826')]({'id':_0x3af4fe['id']})[_0x3341db('0x1714')][_0x3341db('0x2788')](function(_0x178132){const _0x1138f6=_0x3341db;_0x27c420[_0x1138f6('0x1713')][_0x3af4fe['id']]&&_0x283545()['merge'](_0x27c420['agents'][_0x3af4fe['id']],_0x283545()[_0x1138f6('0x41b')](_0x178132,_0x4579d5)),_0x27c420[_0x1138f6('0x1c55')][_0x3af4fe['id']]&&_0x283545()[_0x1138f6('0x2503')](_0x27c420[_0x1138f6('0x1c55')][_0x3af4fe['id']],_0x283545()['pick'](_0x178132,_0x4579d5)),_0x158efe(_0x27c420[_0x1138f6('0x1713')][_0x3af4fe['id']]);})[_0x3341db('0x1cb5')](function(_0x5265a6){const _0xa7b679=_0x3341db;_0x1d3f9c['error']({'title':_0x5265a6[_0xa7b679('0x1b51')]?_0xa7b679('0x15d1')+_0x5265a6[_0xa7b679('0x1b51')]+_0xa7b679('0x1b0b')+_0x5265a6['statusText']:_0xa7b679('0x184d'),'msg':_0x5265a6[_0xa7b679('0x11fc')]?JSON[_0xa7b679('0x1be0')](_0x5265a6['data'][_0xa7b679('0x15e2')]):_0x5265a6['toString']()});});}function _0x25f8f0(_0x5604ad){const _0x40950b=_0x345ae6;_0x5f552e[_0x40950b('0x2fa')](_0x5f552e[_0x40950b('0x204f')]()['clickOutsideToClose'](!![])[_0x40950b('0x14e4')](_0x40950b('0xcbb'))[_0x40950b('0x93e')](_0x40950b('0x122a'))['ok']('Ok')[_0x40950b('0x24d0')](_0x5604ad));}function _0x2d3380(_0x18cd04,_0xfb45f3){const _0x13d178=_0x345ae6;_0x5f552e['show']({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0x13d178('0x16b1')](_0x46170c[_0x13d178('0x945')]),'targetEvent':_0xfb45f3,'clickOutsideToClose':!![],'locals':{'agent':_0x18cd04,'agents':[],'channel':_0x13d178('0x231'),'direction':_0x13d178('0x2e4'),'crudPermissions':_0x27c420[_0x13d178('0xe28')]}});}function _0x11de76(_0x154c29){const _0x2ec7eb=_0x345ae6;return _0x154c29==='pause'||_0x154c29===_0x2ec7eb('0x1d48');}function _0x59ec95(_0x45e68b){return _0x45e68b==='pause';}function _0xc2dbe0(_0x36e737){return _0x36e737==='*pause';}function _0x5465e2(_0x3f5930){const _0x2558f4=_0x345ae6;return _0x3f5930===_0x2558f4('0x124c')||_0x3f5930==='unknown'||_0x3f5930===_0x2558f4('0x27f0')||_0x3f5930===_0x2558f4('0x26f8')||_0x283545()[_0x2558f4('0x1015')](_0x3f5930);}function _0x127861(_0x3f4928,_0x225d5f){const _0x4d5069=_0x345ae6;if(_0x225d5f==='voice'){if(_0x3f4928[_0x225d5f+_0x4d5069('0x21d8')]!==_0x4d5069('0x124c'))return _0x3f4928[_0x225d5f+_0x4d5069('0x21d8')];if(_0x3f4928[_0x225d5f+_0x4d5069('0x14f6')])return _0x3f4928[_0x225d5f+_0x4d5069('0x21d8')]=_0x4d5069('0x619'),_0x4d5069('0x619');return _0x4d5069('0x124c');}else{if(_0x3f4928[_0x225d5f+'Pause'])return _0x3f4928[_0x225d5f+_0x4d5069('0x21d8')]=_0x4d5069('0x619'),_0x4d5069('0x619');return _0x3f4928[_0x225d5f+_0x4d5069('0x21d8')];}}function _0x158efe(_0xdd9e10){const _0xb67133=_0x345ae6;let _0x42daa1='unknown';if(_0x283545()['every']([_0x127861(_0xdd9e10,_0xb67133('0x1f60')),_0x127861(_0xdd9e10,'chat'),_0x127861(_0xdd9e10,_0xb67133('0x2795')),_0x127861(_0xdd9e10,'openchannel'),_0x127861(_0xdd9e10,_0xb67133('0x529')),_0x127861(_0xdd9e10,_0xb67133('0x195d')),_0x127861(_0xdd9e10,_0xb67133('0x10cf'))],_0x11de76))_0x42daa1=_0xb67133('0x619');else{if(_0x283545()[_0xb67133('0xc5d')]([_0x127861(_0xdd9e10,_0xb67133('0x1f60')),_0x127861(_0xdd9e10,_0xb67133('0x231')),_0x127861(_0xdd9e10,_0xb67133('0x2795')),_0x127861(_0xdd9e10,_0xb67133('0x18aa')),_0x127861(_0xdd9e10,'sms'),_0x127861(_0xdd9e10,_0xb67133('0x195d')),_0x127861(_0xdd9e10,_0xb67133('0x10cf'))],_0x11de76))_0x42daa1=_0xb67133('0x1d48');else _0x283545()[_0xb67133('0x111e')]([_0x127861(_0xdd9e10,'voice'),_0x127861(_0xdd9e10,'chat'),_0x127861(_0xdd9e10,_0xb67133('0x2795')),_0x127861(_0xdd9e10,_0xb67133('0x18aa')),_0x127861(_0xdd9e10,_0xb67133('0x529')),_0x127861(_0xdd9e10,_0xb67133('0x195d')),_0x127861(_0xdd9e10,'fax')],_0x5465e2)?_0x42daa1=_0xb67133('0x124c'):_0x42daa1='busy';}_0xdd9e10[_0xb67133('0xee3')]!==_0x42daa1&&(_0xdd9e10[_0xb67133('0xee3')]=_0x42daa1,_0xdd9e10[_0xb67133('0x24eb')]?(_0xdd9e10['init']=![],_0xdd9e10[_0xb67133('0xf3b')]=_0x11de76(_0x42daa1)?_0x283545()[_0xb67133('0x420')](_0x59f37a()(_0xdd9e10['lastPauseAt'])[_0xb67133('0x22b4')]('x')):_0x283545()[_0xb67133('0xb0a')]([_0xdd9e10[_0xb67133('0x48b')],_0xdd9e10[_0xb67133('0x1eeb')],_0xdd9e10[_0xb67133('0x1831')],_0xdd9e10['smsStatusTime'],_0xdd9e10[_0xb67133('0x1ac7')],_0xdd9e10['openchannelStatusTime'],_0xdd9e10[_0xb67133('0xbc')]])):_0xdd9e10[_0xb67133('0xf3b')]=_0x283545()['toNumber'](_0x59f37a()()[_0xb67133('0x22b4')]('x')));}function _0x21ed6e(_0x5b4466){const _0x2f1b40=_0x345ae6,_0x186397=_0x283545()[_0x2f1b40('0x993')](_0x27c420[_0x2f1b40('0x135a')][_0x2f1b40('0x1dc2')],'-')?_0x2f1b40('0x25b5'):_0x2f1b40('0xe07');return _0x283545()[_0x2f1b40('0xf87')](_0x5b4466,[_0x27c420[_0x2f1b40('0x135a')][_0x2f1b40('0x1dc2')][_0x2f1b40('0x10a4')]('-','')],[_0x186397]);}function _0x23a708(){const _0x211bdb=_0x345ae6;_0x3ecb79&&(_0x4d3993[_0x211bdb('0x1801')](_0x3ecb79),_0x3ecb79=null);}function _0xcbdb59(_0x220340,_0x5e3833){const _0x3371c3=_0x345ae6;return _0x442c24[_0x3371c3('0x1e6a')][_0x3371c3('0x2740')]({'id':_0x220340['id']},{'screenrecording':_0x5e3833})[_0x3371c3('0x1714')][_0x3371c3('0x1cb5')](function(_0x41ee98){const _0x2af357=_0x3371c3;_0x1d3f9c[_0x2af357('0x5e8')]({'title':_0x41ee98[_0x2af357('0x1b51')]?_0x2af357('0x15d1')+_0x41ee98[_0x2af357('0x1b51')]+_0x2af357('0x1b0b')+_0x41ee98['statusText']:_0x2af357('0x863'),'msg':_0x41ee98[_0x2af357('0x11fc')]?JSON['stringify'](_0x41ee98[_0x2af357('0x11fc')]['message']):_0x41ee98[_0x2af357('0x17df')]()});});}_0x4ab037[_0x345ae6('0x651')](_0x345ae6('0x26ac'),function(){const _0x5182ff=_0x345ae6;_0x104b60[_0x5182ff('0x277f')]('user:save'),_0x104b60[_0x5182ff('0x277f')](_0x5182ff('0x1cb6')),_0x104b60['removeAllListeners'](_0x5182ff('0x1958')),_0x104b60[_0x5182ff('0x277f')](_0x5182ff('0x116b')),_0x23a708();});}const _0x1c7af7=_0x29703a,_0x416f73=_0x18dd13['p']+_0x34e79e('0x11d6'),_0x19f6e9=_0x18dd13['p']+_0x34e79e('0x6ae');_0x3234a9[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),'$mdDialog','$q',_0x34e79e('0x1580'),'$interval',_0x34e79e('0x283e'),_0x34e79e('0x274c'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty','userProfile',_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x3234a9(_0x7f5dfa,_0x5bf74b,_0x40f0bd,_0x2ace62,_0x4d5caa,_0x35591d,_0x4ae384,_0x472cbe,_0xa21ad0,_0x17be9c,_0xcf2bef,_0x8f2b6d,_0x12df2e,_0xc7ac45){const _0x3167ae=_0x34e79e,_0x4b61c2=this,_0x6af147=[_0x3167ae('0x477'),_0x3167ae('0x2705'),_0x3167ae('0x1eb6'),_0x3167ae('0x1e8c'),'pTalking','originated',_0x3167ae('0x15e2'),_0x3167ae('0x10b2'),'dialMethod','Trunk',_0x3167ae('0x120')];_0x4b61c2[_0x3167ae('0x9cb')]=_0xc7ac45[_0x3167ae('0x24cc')](),_0x4b61c2['count']=_0x4ae384[_0x3167ae('0x338')]?_0x4ae384[_0x3167ae('0x338')]:0x0,_0x4b61c2[_0x3167ae('0x283e')]=_0x4ae384?_0x283545()[_0x3167ae('0x13cf')](_0x4ae384[_0x3167ae('0x25df')]?_0x4ae384['rows']:[],'id'):{},_0x4b61c2[_0x3167ae('0x274c')]=_0x472cbe?_0x283545()['keyBy'](_0x472cbe[_0x3167ae('0x25df')]?_0x472cbe['rows']:[],'id'):{},_0x4b61c2[_0x3167ae('0x63c')]=_0x8f2b6d,_0x4b61c2[_0x3167ae('0xec9')]=_0x12df2e&&_0x12df2e['count']==0x1?_0x12df2e[_0x3167ae('0x25df')][0x0]:null,_0x4b61c2['crudPermissions']=_0xc7ac45[_0x3167ae('0x157e')](_0x4b61c2[_0x3167ae('0xec9')]?_0x4b61c2['userProfileSection'][_0x3167ae('0xe28')]:null);_0xc7ac45[_0x3167ae('0x1516')]('admin')?_0x4b61c2[_0x3167ae('0x135a')]={'type':_0x3167ae('0x2e4'),'sort':_0x3167ae('0x1cee'),'limit':0xa,'page':0x1}:_0x4b61c2['query']={'id':_0x4b61c2[_0x3167ae('0x9cb')]['id'],'channel':_0x3167ae('0x231'),'type':'inbound','sort':_0x3167ae('0x1cee'),'limit':0xa,'page':0x1};_0x4b61c2['success']=_0x35c33e,_0x4b61c2[_0x3167ae('0x138a')]=_0x1adb2c,_0x4b61c2[_0x3167ae('0x25c7')]=_0x587405,_0x4b61c2['agentAdd']=_0x5ee574,_0x4b61c2['updateQueue']=_0x21422c,_0x4b61c2[_0x3167ae('0x158d')]=_0x4c6871,_0x4b61c2[_0x3167ae('0x25e9')]=_0x2df7a7,_0x4b61c2['onRemoveMember']=_0x459170,_0x4b61c2[_0x3167ae('0x1768')]=_0x3da187,_0x4b61c2[_0x3167ae('0x18e3')]=_0x526011,_0x4b61c2[_0x3167ae('0x234')]=_0x50aede,_0x4b61c2[_0x3167ae('0x11ad')]=_0x400944,_0x4b61c2[_0x3167ae('0x1dc2')]=[],_0x283545()['forIn'](_0x4b61c2[_0x3167ae('0x283e')],function(_0x4ecea2){const _0x52cfdc=_0x3167ae;_0x4b61c2[_0x52cfdc('0x1dc2')]['push'](_0x4ecea2['id']);}),_0x17be9c['on'](_0x3167ae('0x1d3e'),_0x4b61c2[_0x3167ae('0x158d')]),_0x17be9c['on'](_0x3167ae('0x5fb'),_0x4b61c2[_0x3167ae('0x25e9')]),_0x17be9c['on']('userChatQueue:remove',_0x4b61c2['onRemoveMember']),_0x17be9c['on'](_0x3167ae('0x1cb6'),_0x4b61c2[_0x3167ae('0x1768')]),_0x17be9c['on'](_0x3167ae('0x11e0'),_0x4b61c2[_0x3167ae('0x234')]),_0x17be9c['on'](_0x3167ae('0x454'),_0x4b61c2[_0x3167ae('0x18e3')]);function _0x400944(){const _0x9386c2=_0x3167ae,_0x3a8131=[];return _0x283545()[_0x9386c2('0x1b')](_0x4b61c2['queues'],function(_0x452357,_0x4100ea){const _0x4cd362=_0x9386c2;_0x452357[_0x4cd362('0x120')]=0x0,_0x452357[_0x4cd362('0xc65')]=0x0,_0x4b61c2[_0x4cd362('0x283e')][_0x4100ea][_0x4cd362('0x1713')]={},_0x3a8131[_0x4cd362('0x13e3')](_0xa21ad0[_0x4cd362('0x12a8')]['getMembers']({'id':_0x4100ea})['$promise']),_0x4b61c2['rpcQueues'][_0x4100ea]&&_0x283545()[_0x4cd362('0x2503')](_0x452357,_0x283545()[_0x4cd362('0x41b')](_0x4b61c2[_0x4cd362('0x274c')][_0x4100ea],_0x6af147));}),_0x2ace62[_0x9386c2('0x1def')](_0x3a8131)['then'](function(_0x4a44d9){const _0x5dd6d9=_0x9386c2;for(let _0x3ff059=0x0;_0x3ff059<_0x4a44d9['length'];_0x3ff059+=0x1){for(let _0x243f5f=0x0;_0x243f5f<_0x4a44d9[_0x3ff059][_0x5dd6d9('0x25df')][_0x5dd6d9('0x2566')];_0x243f5f++){_0x4a44d9[_0x3ff059]['rows'][_0x243f5f]['paused']&&_0x4b61c2['queues'][_0x4a44d9[_0x3ff059]['rows'][_0x243f5f]['ChatQueueId']][_0x5dd6d9('0x120')]++,_0x4b61c2['queues'][_0x4a44d9[_0x3ff059][_0x5dd6d9('0x25df')][_0x243f5f]['ChatQueueId']]['loggedInDb']++,_0x4b61c2[_0x5dd6d9('0x283e')][_0x4a44d9[_0x3ff059]['rows'][_0x243f5f]['ChatQueueId']][_0x5dd6d9('0x1713')][_0x4a44d9[_0x3ff059][_0x5dd6d9('0x25df')][_0x243f5f][_0x5dd6d9('0x3bb')]]=_0x4a44d9[_0x3ff059][_0x5dd6d9('0x25df')][_0x243f5f][_0x5dd6d9('0x159b')];}}})[_0x9386c2('0x1cb5')](function(_0x577883){console['error'](_0x577883);});}function _0x4c6871(_0x214564){const _0x19d868=_0x3167ae;_0x4b61c2[_0x19d868('0x283e')][_0x214564['id']]&&_0x283545()[_0x19d868('0x2503')](_0x4b61c2[_0x19d868('0x283e')][_0x214564['id']],_0x283545()[_0x19d868('0x41b')](_0x214564,_0x6af147));}function _0x2df7a7(_0x583126){const _0x3c6be0=_0x3167ae;_0x4b61c2['queues'][_0x583126[_0x3c6be0('0x159b')]]&&_0x4b61c2[_0x3c6be0('0x283e')][_0x583126['ChatQueueId']][_0x3c6be0('0xc65')]++;}function _0x459170(_0x5e749a){const _0x4aa723=_0x3167ae;_0x4b61c2['queues'][_0x5e749a[_0x4aa723('0x159b')]]&&_0x4b61c2['queues'][_0x5e749a['ChatQueueId']][_0x4aa723('0xc65')]--;}function _0x3da187(_0x48e243){const _0x5ab161=_0x3167ae;console[_0x5ab161('0x10df')](_0x5ab161('0x1768'),_0x48e243);if(_0x48e243['voicePause'])_0x283545()[_0x5ab161('0x1b')](_0x4b61c2[_0x5ab161('0x283e')],function(_0x4b26bc){const _0xd1663b=_0x5ab161;_0x4b26bc[_0xd1663b('0x1713')][_0x48e243['id']]&&(_0x4b26bc[_0xd1663b('0x120')]+=0x1,console['log']('pause'));});else!_0x48e243['voicePause']&&_0x283545()['forIn'](_0x4b61c2['queues'],function(_0x21817c){const _0x500d69=_0x5ab161;_0x21817c[_0x500d69('0x1713')][_0x48e243['id']]&&(_0x21817c[_0x500d69('0x120')]>0x0&&(_0x21817c[_0x500d69('0x120')]-=0x1,console[_0x500d69('0x10df')](_0x500d69('0x1826'))));});}function _0x526011(_0x8b9124){const _0x1ef2de=_0x3167ae;console[_0x1ef2de('0x10df')](_0x1ef2de('0x388'),_0x8b9124),_0x4b61c2[_0x1ef2de('0x283e')][_0x8b9124[_0x1ef2de('0x159b')]]&&(_0x4b61c2[_0x1ef2de('0x283e')][_0x8b9124[_0x1ef2de('0x159b')]][_0x1ef2de('0xc65')]+=0x1,_0x4b61c2['queues'][_0x8b9124[_0x1ef2de('0x159b')]][_0x1ef2de('0x1713')][_0x8b9124[_0x1ef2de('0x3bb')]]=_0x8b9124[_0x1ef2de('0x159b')]);}function _0x50aede(_0x2ee6a1){const _0x53229d=_0x3167ae;console[_0x53229d('0x10df')](_0x53229d('0x234'),_0x2ee6a1),_0x4b61c2[_0x53229d('0x283e')][_0x2ee6a1[_0x53229d('0x159b')]]&&_0x4b61c2[_0x53229d('0x283e')][_0x2ee6a1['ChatQueueId']][_0x53229d('0xc65')]>0x0&&(_0x4b61c2[_0x53229d('0x283e')][_0x2ee6a1[_0x53229d('0x159b')]][_0x53229d('0xc65')]-=0x1,delete _0x4b61c2['queues'][_0x2ee6a1[_0x53229d('0x159b')]][_0x53229d('0x1713')][_0x2ee6a1['UserId']]);}let _0x5d566e=!![],_0x2856b0=0x1;_0x7f5dfa[_0x3167ae('0x1662')](_0x3167ae('0x1569'),function(_0x872658,_0xaf0411){const _0x57e9cc=_0x3167ae;_0x5d566e?_0x5bf74b(function(){_0x5d566e=![];}):(!_0xaf0411&&(_0x2856b0=_0x4b61c2[_0x57e9cc('0x135a')][_0x57e9cc('0x23f5')]),_0x872658!==_0xaf0411&&(_0x4b61c2[_0x57e9cc('0x135a')]['page']=0x1),!_0x872658&&(_0x4b61c2[_0x57e9cc('0x135a')][_0x57e9cc('0x23f5')]=_0x2856b0),_0x4b61c2[_0x57e9cc('0x138a')]());});function _0x35c33e(_0x2ee459){const _0x56051e=_0x3167ae;_0x4b61c2[_0x56051e('0x338')]=_0x2ee459['count'],_0x4b61c2[_0x56051e('0x283e')]=_0x2ee459?_0x283545()[_0x56051e('0x13cf')](_0x2ee459[_0x56051e('0x25df')]?_0x2ee459['rows']:[],'id'):{};if(_0x2ee459[_0x56051e('0x25df')]){_0x4b61c2[_0x56051e('0x1dc2')]=[];for(let _0x3d4225=0x0;_0x3d4225<_0x2ee459[_0x56051e('0x25df')][_0x56051e('0x2566')];_0x3d4225++){_0x4b61c2[_0x56051e('0x1dc2')][_0x56051e('0x13e3')](_0x2ee459[_0x56051e('0x25df')][_0x3d4225]['id']);}}_0x400944();}function _0x1adb2c(){const _0x42ffac=_0x3167ae;_0x4b61c2[_0x42ffac('0x135a')][_0x42ffac('0x19e')]=(_0x4b61c2[_0x42ffac('0x135a')][_0x42ffac('0x23f5')]-0x1)*_0x4b61c2['query'][_0x42ffac('0x68e')],_0xc7ac45['hasRole']('admin')?_0x4b61c2[_0x42ffac('0x1808')]=_0xa21ad0[_0x42ffac('0x12a8')][_0x42ffac('0x1335')](_0x4b61c2[_0x42ffac('0x135a')],_0x35c33e)[_0x42ffac('0x1714')]:(_0x4b61c2[_0x42ffac('0x135a')]['id']=_0x4b61c2[_0x42ffac('0x63c')]['id'],_0x4b61c2[_0x42ffac('0x135a')][_0x42ffac('0xb13')]=_0x42ffac('0x12c2'),_0x4b61c2[_0x42ffac('0x1808')]=_0xa21ad0['userProfile'][_0x42ffac('0xa1')](_0x4b61c2[_0x42ffac('0x135a')],_0x35c33e)['$promise']);}function _0x587405(_0x2195d8,_0x11cf8d){const _0xcf4fa=_0x3167ae;_0x40f0bd[_0xcf4fa('0x2fa')]({'controller':_0xcf4fa('0xe2f'),'controllerAs':'vm','templateUrl':_0x416f73,'parent':angular[_0xcf4fa('0x16b1')](_0x4d5caa['body']),'targetEvent':_0x2195d8,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x11cf8d,'chatQueues':_0x283545()['values'](_0x4b61c2[_0xcf4fa('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x4b61c2['crudPermissions']}});}function _0x5ee574(_0x6b696b,_0xf6239d){const _0x176ef4=_0x3167ae;_0x40f0bd['show']({'controller':_0x176ef4('0xfbd'),'controllerAs':'vm','templateUrl':_0x19f6e9,'parent':angular[_0x176ef4('0x16b1')](_0x4d5caa['body']),'targetEvent':_0x6b696b,'clickOutsideToClose':!![],'locals':{'chatQueue':_0xf6239d,'chatQueues':_0x4b61c2[_0x176ef4('0x283e')]?_0x4b61c2[_0x176ef4('0x283e')]['rows']:[],'realtime':![],'crudPermissions':_0x4b61c2[_0x176ef4('0xe28')]}});}function _0x21422c(_0xe618b9){const _0x430e1d=_0x3167ae;return _0xa21ad0['chatQueue']['update'](_0xe618b9)[_0x430e1d('0x1714')][_0x430e1d('0x2788')](function(){const _0x3d5f68=_0x430e1d;_0xcf2bef['success']({'title':_0x3d5f68('0xc31'),'msg':_0xe618b9['name']?_0xe618b9['name']+_0x3d5f68('0x6f8'):''});})['catch'](function(_0x363ce1){const _0x122f58=_0x430e1d;_0xcf2bef['error']({'title':_0x122f58('0xa30'),'msg':_0x363ce1[_0x122f58('0x15e2')]});});}_0x7f5dfa['$on'](_0x3167ae('0x26ac'),function(){const _0x109502=_0x3167ae;_0x17be9c['removeAllListeners'](_0x109502('0x1d3e')),_0x17be9c[_0x109502('0x277f')](_0x109502('0x6bd')),_0x17be9c[_0x109502('0x277f')]('userChatQueue:save'),_0x17be9c['removeAllListeners'](_0x109502('0x1cb6')),_0x17be9c[_0x109502('0x277f')]('userVoiceQueue:remove'),_0x17be9c[_0x109502('0x277f')]('userVoiceQueue:save');});}const _0x5e8fa1=_0x3234a9;function _0x529d11(){const _0x4037ec=_0x34e79e;return{'status':{'registered':_0x4037ec('0xc38'),'unregistered':_0x4037ec('0x1ad6'),'lagged':_0x4037ec('0x1ad6'),'reachable':_0x4037ec('0xc38'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x4037ec('0x22b7')},'state':{'unknown':_0x4037ec('0x165d'),'not_inuse':_0x4037ec('0x368'),'inuse':_0x4037ec('0x1b19'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x4037ec('0x165d'),'unavailable':_0x4037ec('0x165d'),'ringing':_0x4037ec('0x18d1'),'ringinuse':_0x4037ec('0x18d1'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x4037ec('0x18d1'),'up':_0x4037ec('0x699'),'hangup':_0x4037ec('0x393')},'channelStatusOut':{'ring':_0x4037ec('0x2223'),'up':_0x4037ec('0x699'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x28c263=_0x529d11;_0x2b8e33[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0xd6f')];function _0x2b8e33(_0x264efd,_0x3dc808,_0x44f191){const _0x12880c=_0x34e79e,_0x2854ac=this;_0x44f191[_0x12880c('0x16a4')](),_0x44f191[_0x12880c('0x26c')](),_0x2854ac[_0x12880c('0xcb3')]=0x0;switch(_0x3dc808['current']['name']){case _0x12880c('0xc67'):_0x2854ac['selectedTab']=0x0;break;case _0x12880c('0x242'):_0x2854ac['selectedTab']=0x1;break;default:_0x2854ac['selectedTab']=0x0,_0x3dc808['go']('app.chat.realtime.agents');}_0x264efd[_0x12880c('0x1662')](_0x12880c('0x362'),function(_0x5dbcf6,_0x4e327b){const _0x558b50=_0x12880c;if(_0x5dbcf6!==_0x4e327b)switch(_0x5dbcf6){case 0x0:_0x3dc808['go'](_0x558b50('0xc67'));break;case 0x1:_0x3dc808['go'](_0x558b50('0x242'));break;default:_0x3dc808['go'](_0x558b50('0xc67'));}});}const _0x32c278=_0x2b8e33;_0x18685d[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x18685d(_0x5215e2){const _0x2c9fcb=_0x34e79e;_0x5215e2[_0x2c9fcb('0x249b')](_0x2c9fcb('0x1260'),{'url':_0x2c9fcb('0x2090'),'views':{'content@app':{'templateUrl':_0x1ab2c6,'controller':'ChatRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x2c9fcb('0x1318'),'Auth',function(_0x316769,_0x2ff000){const _0x1cbd63=_0x2c9fcb;return _0x2ff000['hasRole'](_0x1cbd63('0xe23'))?null:_0x316769[_0x1cbd63('0x2322')](_0x1cbd63('0x231d'),{'fields':_0x1cbd63('0x3f0'),'id':_0x2ff000[_0x1cbd63('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x2c9fcb('0x1318'),_0x2c9fcb('0x1b04'),function(_0x5800ad,_0x30f4c2){const _0x2ec1ac=_0x2c9fcb;return _0x30f4c2[_0x2ec1ac('0x1516')](_0x2ec1ac('0xe23'))?null:_0x5800ad['resolve'](_0x2ec1ac('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x30f4c2[_0x2ec1ac('0x24cc')]()[_0x2ec1ac('0x237f')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x2c9fcb('0x249b')](_0x2c9fcb('0xc67'),{'url':_0x2c9fcb('0xa9b'),'controller':_0x2c9fcb('0x1ee2'),'templateUrl':_0x33baab,'resolve':{'pauses':[_0x2c9fcb('0x1318'),function(_0x3da208){const _0x462f92=_0x2c9fcb;return _0x3da208[_0x462f92('0x2322')](_0x462f92('0x6c1'),{'nolimit':!![]});}],'agents':[_0x2c9fcb('0x1318'),'Auth',function(_0x208e0d,_0x3a40b7){const _0x514545=_0x2c9fcb;return _0x3a40b7[_0x514545('0x1516')](_0x514545('0xe23'))?_0x208e0d[_0x514545('0x2322')]('user@get',{'fields':'id,name,fullname,role,userpic,internal,online,voicePause,openchannelPause,faxPause,chatPause,smsPause,whatsappPause,mailPause,pauseType,lastPauseAt,lastLoginAt,lastPauseAt,chatCapacity,mailCapacity,openchannelCapacity,faxCapacity,smsCapacity,whatsappCapacity,screenrecording,phoneBarEnableScreenRecordingByAgent,phoneBarEnableAutomaticScreenRecording','role':'agent','sort':'fullname','nolimit':!![]}):_0x208e0d[_0x514545('0x2322')](_0x514545('0x27c5'),{'id':_0x3a40b7[_0x514545('0x24cc')]()['userProfileId'],'section':_0x514545('0x1f72'),'fields':_0x514545('0xed0'),'role':_0x514545('0x188b'),'sort':_0x514545('0x2831'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x2c9fcb('0x1b04'),function(_0x2f0113,_0x57d3cc){const _0x1fd8ef=_0x2c9fcb;return _0x57d3cc[_0x1fd8ef('0x1516')](_0x1fd8ef('0xe23'))?null:_0x2f0113['resolve'](_0x1fd8ef('0x231d'),{'fields':'id,name,crudPermissions','id':_0x57d3cc[_0x1fd8ef('0x24cc')]()[_0x1fd8ef('0x237f')]});}],'userProfileSection':[_0x2c9fcb('0x1318'),'Auth',function(_0x4ac6ce,_0x692537){const _0x3204b8=_0x2c9fcb;return _0x692537[_0x3204b8('0x1516')](_0x3204b8('0xe23'))?null:_0x4ac6ce['resolve'](_0x3204b8('0x22ca'),{'fields':_0x3204b8('0xe2c'),'userProfileId':_0x692537[_0x3204b8('0x24cc')]()[_0x3204b8('0x237f')],'sectionId':0xca});}],'rpcAgents':[_0x2c9fcb('0x1318'),function(_0x5a0e20){const _0x27e3e8=_0x2c9fcb;return _0x5a0e20[_0x27e3e8('0x2322')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x1fe})['state'](_0x2c9fcb('0x242'),{'url':_0x2c9fcb('0x1c30'),'controller':_0x2c9fcb('0x25dc'),'templateUrl':_0x14585e,'resolve':{'queues':[_0x2c9fcb('0x1318'),'Auth',function(_0x2d8d89,_0x11ac22){const _0x10d2af=_0x2c9fcb;return _0x11ac22[_0x10d2af('0x1516')](_0x10d2af('0xe23'))?_0x2d8d89['resolve'](_0x10d2af('0x13d5'),{'type':_0x10d2af('0x2e4'),'sort':_0x10d2af('0x1cee'),'limit':0xa,'offset':0x0}):_0x2d8d89['resolve']('userProfile@getResources',{'id':_0x11ac22['getCurrentUser']()['userProfileId'],'section':'ChatQueues','channel':_0x10d2af('0x231'),'type':_0x10d2af('0x2e4'),'sort':_0x10d2af('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x2c9fcb('0x1b04'),function(_0x544f14,_0x511840){const _0x116e7f=_0x2c9fcb;return _0x511840[_0x116e7f('0x1516')](_0x116e7f('0xe23'))?null:_0x544f14[_0x116e7f('0x2322')]('userProfile@get',{'fields':_0x116e7f('0x3f0'),'id':_0x511840[_0x116e7f('0x24cc')]()[_0x116e7f('0x237f')]});}],'userProfileSection':[_0x2c9fcb('0x1318'),_0x2c9fcb('0x1b04'),function(_0x4ba52a,_0x123f9d){const _0x4f9a76=_0x2c9fcb;return _0x123f9d[_0x4f9a76('0x1516')](_0x4f9a76('0xe23'))?null:_0x4ba52a[_0x4f9a76('0x2322')]('userProfileSection@get',{'fields':_0x4f9a76('0xe2c'),'userProfileId':_0x123f9d[_0x4f9a76('0x24cc')]()[_0x4f9a76('0x237f')],'sectionId':0x1f5});}],'rpcQueues':['apiResolver',function(_0x3160b8){const _0x31cd9c=_0x2c9fcb;return _0x3160b8[_0x31cd9c('0x2322')](_0x31cd9c('0xfde'));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1260'),[])[_0x34e79e('0x1a22')](_0x18685d)[_0x34e79e('0xb44')](_0x34e79e('0x2188'),_0x1c7af7)[_0x34e79e('0xb44')](_0x34e79e('0x106c'),_0x5e8fa1)[_0x34e79e('0x227e')](_0x34e79e('0x1fc6'),_0x28c263)[_0x34e79e('0xb44')](_0x34e79e('0xff3'),_0x32c278);const _0xa42055=_0x18dd13['p']+_0x34e79e('0x21e1');_0x5edf0f['$inject']=['$scope',_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x133a'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x5edf0f(_0x5656a1,_0x5c8208,_0x46d18e,_0x20c126,_0x176143,_0x21b77d,_0x750895,_0x672bb3,_0x402df8,_0x244e04,_0x2fa521,_0xe09ad8,_0x56c241,_0x18670b,_0x3897f2,_0x5dacd7,_0x2c10fa){const _0x1466ee=_0x34e79e,_0x17b62d=this;_0x17b62d['license']=_0x5dacd7,_0x17b62d[_0x1466ee('0x1af0')]=_0x2c10fa,_0x17b62d['currentUser']=_0x3897f2[_0x1466ee('0x24cc')](),_0x17b62d['chatQueues']=_0x402df8||{'count':0x0,'rows':[]},_0x17b62d[_0x1466ee('0x63c')]=_0x244e04,_0x17b62d[_0x1466ee('0xec9')]=_0x2fa521&&_0x2fa521[_0x1466ee('0x338')]==0x1?_0x2fa521[_0x1466ee('0x25df')][0x0]:null,_0x17b62d[_0x1466ee('0xe28')]=_0x3897f2[_0x1466ee('0x157e')](_0x17b62d['userProfileSection']?_0x17b62d[_0x1466ee('0xec9')]['crudPermissions']:null),_0x17b62d[_0x1466ee('0x26a9')]='chatQueues',_0x17b62d['listOrder']='',_0x17b62d['listOrderAsc']=null,_0x17b62d[_0x1466ee('0x1777')]=[],_0x17b62d[_0x1466ee('0x135a')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x1466ee('0x1cee'),'channel':'chat','limit':0xa,'page':0x1},_0x17b62d[_0x1466ee('0x7b8')]=_0x283545()[_0x1466ee('0x13cf')]([{'option':_0x1466ee('0x152c'),'value':'\x27beepall\x27'},{'option':_0x1466ee('0x37a'),'value':_0x1466ee('0x228e')}],function(_0x303bfe){const _0x5a77d3=_0x1466ee;return _0x283545()['replace'](_0x303bfe[_0x5a77d3('0x49')],new RegExp('\x27','g'),'');}),_0x17b62d[_0x1466ee('0x1f7e')]=_0x13f429,_0x17b62d[_0x1466ee('0xde3')]=_0x598ab6,_0x17b62d[_0x1466ee('0x1113')]=_0x41c07c,_0x17b62d[_0x1466ee('0x1e5')]=_0x356223,_0x17b62d[_0x1466ee('0x8d1')]=_0x455b18,_0x17b62d[_0x1466ee('0x173b')]=_0x5c5938,_0x17b62d[_0x1466ee('0x15c0')]=_0x28fe65,_0x17b62d[_0x1466ee('0x25c7')]=_0x4e26ae,_0x17b62d[_0x1466ee('0x1b86')]=_0x5d1db9,_0x17b62d[_0x1466ee('0x1000')]=_0x3ec23e,_0x17b62d['deleteSelectedChatQueues']=_0x40b128,_0x17b62d['deselectChatQueues']=_0x3f9bfd,_0x17b62d['selectAllChatQueues']=_0x3b5817;function _0x13f429(_0x25905e){const _0x67d174=_0x1466ee;_0x46d18e['go'](_0x67d174('0x18fc'),{'id':_0x25905e['id'],'chatQueue':_0x25905e,'crudPermissions':_0x17b62d[_0x67d174('0xe28')]});}function _0x598ab6(_0x4a67ec,_0x453623){const _0x2f41cb=_0x1466ee;_0x176143[_0x2f41cb('0x2fa')]({'controller':_0x2f41cb('0xb8c'),'controllerAs':'vm','templateUrl':_0xa42055,'parent':angular[_0x2f41cb('0x16b1')](_0x21b77d[_0x2f41cb('0x945')]),'targetEvent':_0x453623,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4a67ec,'chatQueues':_0x17b62d['chatQueues']?_0x17b62d[_0x2f41cb('0x133a')][_0x2f41cb('0x25df')]:[],'crudPermissions':_0x17b62d[_0x2f41cb('0xe28')]}});}function _0x41c07c(_0x1d7e64,_0x3aa39c){const _0x1ad86d=_0x1466ee;_0x176143['show']({'controller':_0x1ad86d('0xfbd'),'controllerAs':'vm','templateUrl':_0x19f6e9,'parent':angular[_0x1ad86d('0x16b1')](_0x21b77d[_0x1ad86d('0x945')]),'targetEvent':_0x3aa39c,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1d7e64,'chatQueues':_0x17b62d[_0x1ad86d('0x133a')]?_0x17b62d['chatQueues'][_0x1ad86d('0x25df')]:[],'crudPermissions':_0x17b62d[_0x1ad86d('0xe28')],'realtime':![]}});}function _0x356223(_0xd432da,_0x2490d9){const _0x1ba6dc=_0x1466ee,_0x213b79=_0x176143[_0x1ba6dc('0x112e')]()['title'](_0x1ba6dc('0x2114')+_0x283545()['startCase']('chatQueue')+'?')[_0x1ba6dc('0x93e')](''+(_0xd432da['name']||'chatQueue')+_0x1ba6dc('0x229e')+'\x20will\x20be\x20deleted.')[_0x1ba6dc('0x10bc')](_0x1ba6dc('0x1c33'))[_0x1ba6dc('0x24d0')](_0x2490d9)['ok']('OK')['cancel'](_0x1ba6dc('0x1d8d'));_0x176143['show'](_0x213b79)['then'](function(){_0x5d1db9(_0xd432da);},function(){const _0x44d2a5=_0x1ba6dc;console[_0x44d2a5('0x10df')]('CANCEL');});}function _0x455b18(){const _0xd8b433=_0x1466ee;if(_0x3897f2[_0xd8b433('0x1516')](_0xd8b433('0xe23')))_0x46d18e['go'](_0xd8b433('0x242'),{});else return _0xe09ad8['userProfileSection'][_0xd8b433('0x1335')]({'userProfileId':_0x3897f2[_0xd8b433('0x24cc')]()[_0xd8b433('0x237f')],'sectionId':0x1fe})[_0xd8b433('0x1714')]['then'](function(_0x267094){const _0x4cf1d6=_0xd8b433,_0x193a2c=_0x267094&&_0x267094[_0x4cf1d6('0x25df')]?_0x267094[_0x4cf1d6('0x25df')][0x0]:null;_0x193a2c&&_0x193a2c[_0x4cf1d6('0x14f4')]?_0x46d18e['go'](_0x4cf1d6('0x242'),{}):_0x18670b[_0x4cf1d6('0x2276')]({'title':_0x672bb3[_0x4cf1d6('0x1b11')](_0x4cf1d6('0x5be')),'msg':_0x672bb3[_0x4cf1d6('0x1b11')](_0x4cf1d6('0x1abc'))});})['catch'](function(_0x2b8c0d){const _0x20d426=_0xd8b433;_0x18670b[_0x20d426('0x5e8')]({'title':_0x2b8c0d['status']?_0x20d426('0x15d1')+_0x2b8c0d[_0x20d426('0x1b51')]+_0x20d426('0x1b0b')+_0x2b8c0d[_0x20d426('0x22ce')]:_0x20d426('0x2292'),'msg':_0x2b8c0d['status']?JSON[_0x20d426('0x1be0')](_0x2b8c0d[_0x20d426('0x11fc')]):_0x2b8c0d[_0x20d426('0x17df')]()});});}let _0x503cf9=!![],_0x254a10=0x1;_0x5656a1[_0x1466ee('0x1662')](_0x1466ee('0x1569'),function(_0x1c5021,_0x53d7b8){const _0x7461dc=_0x1466ee;_0x503cf9?_0x750895(function(){_0x503cf9=![];}):(!_0x53d7b8&&(_0x254a10=_0x17b62d[_0x7461dc('0x135a')]['page']),_0x1c5021!==_0x53d7b8&&(_0x17b62d[_0x7461dc('0x135a')]['page']=0x1),!_0x1c5021&&(_0x17b62d['query']['page']=_0x254a10),_0x17b62d['getChatQueues']());});function _0x5c5938(_0x34a994){const _0x4593c0=_0x1466ee;_0x17b62d[_0x4593c0('0x133a')]=_0x34a994||{'count':0x0,'rows':[]};}function _0x28fe65(){const _0xe1b8e1=_0x1466ee;_0x17b62d[_0xe1b8e1('0x135a')][_0xe1b8e1('0x19e')]=(_0x17b62d[_0xe1b8e1('0x135a')][_0xe1b8e1('0x23f5')]-0x1)*_0x17b62d[_0xe1b8e1('0x135a')]['limit'],_0x3897f2[_0xe1b8e1('0x1516')](_0xe1b8e1('0xe23'))?_0x17b62d[_0xe1b8e1('0x1808')]=_0xe09ad8['chatQueue']['get'](_0x17b62d[_0xe1b8e1('0x135a')],_0x5c5938)[_0xe1b8e1('0x1714')]:(_0x17b62d[_0xe1b8e1('0x135a')]['id']=_0x17b62d['userProfile']['id'],_0x17b62d['query'][_0xe1b8e1('0xb13')]='ChatQueues',_0x17b62d[_0xe1b8e1('0x1808')]=_0xe09ad8[_0xe1b8e1('0x63c')][_0xe1b8e1('0xa1')](_0x17b62d[_0xe1b8e1('0x135a')],_0x5c5938)[_0xe1b8e1('0x1714')]);}function _0x4e26ae(_0x486986,_0x544b4d){const _0x1713a0=_0x1466ee;_0x176143[_0x1713a0('0x2fa')]({'controller':_0x1713a0('0xe2f'),'controllerAs':'vm','templateUrl':_0x416f73,'parent':angular['element'](_0x21b77d['body']),'targetEvent':_0x486986,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x544b4d,'chatQueues':_0x17b62d[_0x1713a0('0x133a')]['rows'],'license':_0x17b62d[_0x1713a0('0x130d')],'setting':_0x17b62d[_0x1713a0('0x1af0')],'crudPermissions':_0x17b62d['crudPermissions']}});}function _0x5d1db9(_0x4094ba){const _0x122d58=_0x1466ee;_0xe09ad8[_0x122d58('0x12a8')][_0x122d58('0x17c4')]({'id':_0x4094ba['id']})[_0x122d58('0x1714')][_0x122d58('0x2788')](function(){const _0x51f077=_0x122d58;_0x283545()[_0x51f077('0x1a90')](_0x17b62d[_0x51f077('0x133a')][_0x51f077('0x25df')],{'id':_0x4094ba['id']}),_0x17b62d[_0x51f077('0x133a')][_0x51f077('0x338')]-=0x1,!_0x17b62d[_0x51f077('0x133a')]['rows'][_0x51f077('0x2566')]&&_0x17b62d[_0x51f077('0x15c0')](),_0x18670b['success']({'title':_0x283545()[_0x51f077('0x114')](_0x51f077('0xf9a'))+_0x51f077('0x20db'),'msg':_0x4094ba[_0x51f077('0x1a8d')]?_0x4094ba[_0x51f077('0x1a8d')]+_0x51f077('0x14d4'):''});})[_0x122d58('0x1cb5')](function(_0x5e6cc5){const _0x1e37b9=_0x122d58;if(_0x5e6cc5[_0x1e37b9('0x11fc')]&&_0x5e6cc5[_0x1e37b9('0x11fc')][_0x1e37b9('0x25be')]&&_0x5e6cc5['data'][_0x1e37b9('0x25be')]['length']){_0x17b62d['errors']=_0x5e6cc5[_0x1e37b9('0x11fc')][_0x1e37b9('0x25be')]||[{'message':_0x5e6cc5[_0x1e37b9('0x17df')](),'type':_0x1e37b9('0x7d2')}];for(let _0x482f63=0x0;_0x482f63<_0x5e6cc5[_0x1e37b9('0x11fc')]['errors'][_0x1e37b9('0x2566')];_0x482f63++){_0x18670b[_0x1e37b9('0x5e8')]({'title':_0x5e6cc5['data']['errors'][_0x482f63][_0x1e37b9('0x1d7')],'msg':_0x5e6cc5[_0x1e37b9('0x11fc')][_0x1e37b9('0x25be')][_0x482f63]['message']});}}else _0x18670b['error']({'title':_0x5e6cc5['status']?'API:'+_0x5e6cc5[_0x1e37b9('0x1b51')]+_0x1e37b9('0x1b0b')+_0x5e6cc5['statusText']:'SYSTEM:DELETEchatQueue','msg':_0x5e6cc5[_0x1e37b9('0x11fc')]?JSON[_0x1e37b9('0x1be0')](_0x5e6cc5['data'][_0x1e37b9('0x15e2')]):_0x5e6cc5[_0x1e37b9('0x15e2')]||_0x5e6cc5['toString']()});});}function _0x3ec23e(){const _0x3868d9=_0x1466ee,_0x3fdbae=angular['copy'](_0x17b62d[_0x3868d9('0x1777')]);return _0x17b62d[_0x3868d9('0x1777')]=[],_0x3fdbae;}function _0x40b128(_0x38499d){const _0x4c58f3=_0x1466ee,_0x26faf5=_0x176143['confirm']()[_0x4c58f3('0x14e4')](_0x4c58f3('0xbd9'))[_0x4c58f3('0x93e')](_0x4c58f3('0x1670')+_0x17b62d[_0x4c58f3('0x1777')][_0x4c58f3('0x2566')]+_0x4c58f3('0xbd')+_0x4c58f3('0x27c7'))[_0x4c58f3('0x10bc')]('delete\x20ChatQueues')[_0x4c58f3('0x24d0')](_0x38499d)['ok']('OK')[_0x4c58f3('0x1801')]('CANCEL');_0x176143[_0x4c58f3('0x2fa')](_0x26faf5)[_0x4c58f3('0x2788')](function(){const _0x24e4b0=_0x4c58f3;_0x17b62d[_0x24e4b0('0x1777')][_0x24e4b0('0x1534')](function(_0x39f1a5){_0x5d1db9(_0x39f1a5);}),_0x17b62d[_0x24e4b0('0x1777')]=[];});}function _0x3f9bfd(){const _0x525105=_0x1466ee;_0x17b62d[_0x525105('0x1777')]=[];}function _0x3b5817(){const _0x58a206=_0x1466ee;_0x17b62d[_0x58a206('0x1777')]=_0x17b62d[_0x58a206('0x133a')][_0x58a206('0x25df')];}}const _0x3ba91c=_0x5edf0f;_0x45d363['$inject']=['$scope','$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x133a'),_0x34e79e('0x12a8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x45d363(_0x1067da,_0x4849d9,_0x40b5ff,_0x59566d,_0x4f2a6e,_0x20ba91,_0x55959b,_0x29bf4e,_0x203520,_0xd966c,_0x2df0ef,_0x3ed7f0,_0x4cf626,_0x324598){const _0x334598=_0x34e79e,_0x1ada07=this;_0x1ada07[_0x334598('0x9cb')]=_0x2df0ef[_0x334598('0x24cc')](),_0x1ada07[_0x334598('0x25be')]=[],_0x1ada07[_0x334598('0x1af0')]=_0x4cf626,_0x1ada07['license']=_0x3ed7f0,_0x1ada07[_0x334598('0xe28')]=_0x324598,_0x1ada07['hasModulePermissions']={},_0x1ada07[_0x334598('0x18ad')]=_0x1ada07[_0x334598('0x1af0')]&&_0x1ada07[_0x334598('0x1af0')][_0x334598('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ada07['title']=_0x334598('0x25b'),_0x1ada07[_0x334598('0x12a8')]=angular[_0x334598('0x2669')](_0x203520),_0x1ada07[_0x334598('0x133a')]=_0x29bf4e,_0x1ada07[_0x334598('0x8cb')]=![];!_0x1ada07[_0x334598('0x12a8')]&&(_0x1ada07[_0x334598('0x12a8')]={'strategy':_0x334598('0x1acd'),'timeout':0xa},_0x1ada07[_0x334598('0x14e4')]=_0x334598('0x15d'),_0x1ada07[_0x334598('0x8cb')]=!![]);_0x1ada07[_0x334598('0x2832')]=_0x1b7678,_0x1ada07[_0x334598('0x2183')]=_0x57ad99,_0x1ada07[_0x334598('0x1b86')]=_0x70b836,_0x1ada07[_0x334598('0x2601')]=_0x20cc5a,_0x1ada07[_0x334598('0xca7')]=_0x332a7f;function _0x1b7678(){const _0x2b025b=_0x334598;_0x1ada07['errors']=[],_0xd966c[_0x2b025b('0x12a8')][_0x2b025b('0xbd0')](_0x1ada07[_0x2b025b('0x12a8')])[_0x2b025b('0x1714')][_0x2b025b('0x2788')](function(_0x286ac6){const _0x36a774=_0x2b025b;_0x1ada07[_0x36a774('0x133a')][_0x36a774('0xc51')](_0x286ac6[_0x36a774('0x1cbf')]()),_0x55959b[_0x36a774('0x173b')]({'title':'ChatQueue\x20properly\x20created','msg':_0x1ada07[_0x36a774('0x12a8')][_0x36a774('0x1a8d')]?_0x1ada07[_0x36a774('0x12a8')][_0x36a774('0x1a8d')]+_0x36a774('0x1e4a'):''}),_0x332a7f(_0x286ac6);})[_0x2b025b('0x1cb5')](function(_0x3cdbcb){const _0x2bbc03=_0x2b025b;if(_0x3cdbcb[_0x2bbc03('0x11fc')]&&_0x3cdbcb[_0x2bbc03('0x11fc')][_0x2bbc03('0x25be')]&&_0x3cdbcb[_0x2bbc03('0x11fc')][_0x2bbc03('0x25be')][_0x2bbc03('0x2566')]){_0x1ada07['errors']=_0x3cdbcb['data']['errors']||[{'message':_0x3cdbcb['toString'](),'type':_0x2bbc03('0x278f')}];for(let _0xe05d7=0x0;_0xe05d7<_0x3cdbcb['data']['errors'][_0x2bbc03('0x2566')];_0xe05d7+=0x1){_0x55959b['error']({'title':_0x3cdbcb[_0x2bbc03('0x11fc')][_0x2bbc03('0x25be')][_0xe05d7][_0x2bbc03('0x1d7')],'msg':_0x3cdbcb[_0x2bbc03('0x11fc')][_0x2bbc03('0x25be')][_0xe05d7][_0x2bbc03('0x15e2')]});}}else _0x55959b[_0x2bbc03('0x5e8')]({'title':_0x3cdbcb[_0x2bbc03('0x1b51')]?_0x2bbc03('0x15d1')+_0x3cdbcb[_0x2bbc03('0x1b51')]+_0x2bbc03('0x1b0b')+_0x3cdbcb[_0x2bbc03('0x22ce')]:_0x2bbc03('0x278f'),'msg':_0x3cdbcb[_0x2bbc03('0x11fc')]?JSON[_0x2bbc03('0x1be0')](_0x3cdbcb[_0x2bbc03('0x11fc')]['message']):_0x3cdbcb['toString']()});});}function _0x57ad99(){const _0x3ab209=_0x334598;_0x1ada07['errors']=[],_0xd966c[_0x3ab209('0x12a8')][_0x3ab209('0x2740')]({'id':_0x1ada07[_0x3ab209('0x12a8')]['id']},_0x1ada07[_0x3ab209('0x12a8')])[_0x3ab209('0x1714')]['then'](function(_0x5cf4c3){const _0x1552f4=_0x3ab209,_0x48f4aa=_0x283545()[_0x1552f4('0x20e8')](_0x1ada07['chatQueues'],{'id':_0x5cf4c3['id']});_0x48f4aa&&_0x283545()[_0x1552f4('0x2503')](_0x48f4aa,_0x283545()[_0x1552f4('0x41b')](_0x5cf4c3[_0x1552f4('0x1cbf')](),_0x283545()[_0x1552f4('0x2163')](_0x48f4aa))),_0x55959b[_0x1552f4('0x173b')]({'title':_0x1552f4('0x1a38'),'msg':_0x1ada07[_0x1552f4('0x12a8')][_0x1552f4('0x1a8d')]?_0x1ada07[_0x1552f4('0x12a8')][_0x1552f4('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x332a7f(_0x5cf4c3);})[_0x3ab209('0x1cb5')](function(_0x37f92a){const _0x1c9271=_0x3ab209;if(_0x37f92a['data']&&_0x37f92a['data'][_0x1c9271('0x25be')]&&_0x37f92a[_0x1c9271('0x11fc')][_0x1c9271('0x25be')][_0x1c9271('0x2566')]){_0x1ada07[_0x1c9271('0x25be')]=_0x37f92a[_0x1c9271('0x11fc')][_0x1c9271('0x25be')]||[{'message':_0x37f92a[_0x1c9271('0x17df')](),'type':'api.chatQueue.update'}];for(let _0x2e3bbe=0x0;_0x2e3bbe<_0x37f92a[_0x1c9271('0x11fc')]['errors'][_0x1c9271('0x2566')];_0x2e3bbe++){_0x55959b['error']({'title':_0x37f92a['data']['errors'][_0x2e3bbe][_0x1c9271('0x1d7')],'msg':_0x37f92a['data'][_0x1c9271('0x25be')][_0x2e3bbe][_0x1c9271('0x15e2')]});}}else _0x55959b[_0x1c9271('0x5e8')]({'title':_0x37f92a['status']?_0x1c9271('0x15d1')+_0x37f92a[_0x1c9271('0x1b51')]+_0x1c9271('0x1b0b')+_0x37f92a[_0x1c9271('0x22ce')]:'api.chatQueue.update','msg':_0x37f92a[_0x1c9271('0x11fc')]?JSON[_0x1c9271('0x1be0')](_0x37f92a[_0x1c9271('0x11fc')][_0x1c9271('0x15e2')]):_0x37f92a['toString']()});});}function _0x70b836(_0x42e7c2){const _0x19816f=_0x334598;_0x1ada07[_0x19816f('0x25be')]=[];const _0x5622b6=_0x59566d[_0x19816f('0x112e')]()[_0x19816f('0x14e4')](_0x19816f('0x458'))['content']('The\x20chatQueue\x20will\x20be\x20deleted.')[_0x19816f('0x10bc')]('Delete\x20ChatQueue')['ok'](_0x19816f('0x2786'))[_0x19816f('0x1801')](_0x19816f('0x1481'))[_0x19816f('0x24d0')](_0x42e7c2);_0x59566d[_0x19816f('0x2fa')](_0x5622b6)[_0x19816f('0x2788')](function(){const _0x1694c2=_0x19816f;_0xd966c[_0x1694c2('0x12a8')][_0x1694c2('0x17c4')]({'id':_0x1ada07['chatQueue']['id']})['$promise'][_0x1694c2('0x2788')](function(){const _0x192579=_0x1694c2;_0x283545()['remove'](_0x1ada07[_0x192579('0x133a')],{'id':_0x1ada07[_0x192579('0x12a8')]['id']}),_0x55959b['success']({'title':_0x192579('0x27a8'),'msg':(_0x1ada07[_0x192579('0x12a8')][_0x192579('0x1a8d')]||_0x192579('0x12a8'))+_0x192579('0x14d4')}),_0x332a7f(_0x1ada07[_0x192579('0x12a8')]);})[_0x1694c2('0x1cb5')](function(_0x58b1fc){const _0x348961=_0x1694c2;if(_0x58b1fc[_0x348961('0x11fc')]&&_0x58b1fc['data'][_0x348961('0x25be')]&&_0x58b1fc[_0x348961('0x11fc')][_0x348961('0x25be')][_0x348961('0x2566')]){_0x1ada07[_0x348961('0x25be')]=_0x58b1fc[_0x348961('0x11fc')][_0x348961('0x25be')]||[{'message':_0x58b1fc[_0x348961('0x17df')](),'type':_0x348961('0x2260')}];for(let _0x945f89=0x0;_0x945f89<_0x58b1fc['data'][_0x348961('0x25be')]['length'];_0x945f89++){_0x55959b[_0x348961('0x5e8')]({'title':_0x58b1fc[_0x348961('0x11fc')]['errors'][_0x945f89]['type'],'msg':_0x58b1fc[_0x348961('0x11fc')][_0x348961('0x25be')][_0x945f89][_0x348961('0x15e2')]});}}else _0x55959b[_0x348961('0x5e8')]({'title':_0x58b1fc[_0x348961('0x1b51')]?_0x348961('0x15d1')+_0x58b1fc['status']+_0x348961('0x1b0b')+_0x58b1fc[_0x348961('0x22ce')]:'api.chatQueue.delete','msg':_0x58b1fc[_0x348961('0x11fc')]?JSON[_0x348961('0x1be0')](_0x58b1fc['data'][_0x348961('0x15e2')]):_0x58b1fc[_0x348961('0x15e2')]||_0x58b1fc[_0x348961('0x17df')]()});});},function(){});}function _0x20cc5a(_0x5ed2b3){return _0x5ed2b3===null?undefined:new Date(_0x5ed2b3);}function _0x332a7f(_0x46276a){_0x59566d['hide'](_0x46276a);}}const _0x1854be=_0x45d363;_0x34436f['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api',_0x34e79e('0x12a8'),'chatQueues',_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x34436f(_0x2da6f6,_0x2218f1,_0xa4cd4e,_0x28d93c,_0x585a07,_0xe31700,_0x397f9b,_0x1ba384,_0x5de964,_0x420907){const _0x17e81c=_0x34e79e,_0x1974dd=this;_0x1974dd[_0x17e81c('0x9cb')]=_0x5de964['getCurrentUser'](),_0x1974dd['chatQueue']=_0x585a07,_0x1974dd[_0x17e81c('0xe28')]=_0x420907,_0x1974dd['realtime']=_0x397f9b,_0x1974dd[_0x17e81c('0x117b')]=[],_0x1974dd[_0x17e81c('0x73d')]=[],_0x1974dd[_0x17e81c('0x283f')]=[],_0x1974dd[_0x17e81c('0x12d9')]=[],_0x1974dd[_0x17e81c('0xd0d')]=[],_0x1974dd[_0x17e81c('0x2677')]=![],_0x1974dd[_0x17e81c('0x122e')]=_0xe48ffc,_0x1974dd[_0x17e81c('0x1f8d')]=_0x1fa67c,_0x1974dd['closeDialog']=_0xb97444,_0x1974dd['dualMultiselectOptions']={'readOnly':!_0x1974dd['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x17e81c('0x1a8d'),'line1':_0x17e81c('0x2831'),'line2':[_0x17e81c('0x1a8d'),'internal'],'line3':'','labelAll':_0x1ba384[_0x17e81c('0x1b11')](_0x17e81c('0x1728')),'labelSelected':_0x1ba384[_0x17e81c('0x1b11')](_0x17e81c('0x24a')),'transferCallback':function(){const _0x288b1c=_0x17e81c,_0x5eceaa=_0x283545()[_0x288b1c('0x12d1')](_0x1974dd[_0x288b1c('0xd0d')],_0x1974dd[_0x288b1c('0x283f')],'id');_0x1974dd['pendingChanges']=_0x283545()[_0x288b1c('0x213d')](_0x5eceaa)?![]:!![];}};function _0xe48ffc(){const _0x2495bb=_0x17e81c;return _0x5de964[_0x2495bb('0x1516')](_0x2495bb('0xe23'))?_0x2ac886()[_0x2495bb('0x1cb5')](function(_0x4bf0d3){const _0x1d2453=_0x2495bb;_0xa4cd4e[_0x1d2453('0x5e8')]({'title':_0x4bf0d3[_0x1d2453('0x1b51')]?_0x1d2453('0x15d1')+_0x4bf0d3['status']+_0x1d2453('0x1b0b')+_0x4bf0d3[_0x1d2453('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x4bf0d3[_0x1d2453('0x1b51')]?JSON[_0x1d2453('0x1be0')](_0x4bf0d3[_0x1d2453('0x11fc')]):_0x4bf0d3[_0x1d2453('0x17df')]()});}):_0xa045eb()['then'](function(_0x307001){const _0x4d37ae=_0x2495bb;return _0x1974dd[_0x4d37ae('0xb13')]=_0x307001,_0x2ac886();})[_0x2495bb('0x1cb5')](function(_0x5be423){const _0x436821=_0x2495bb;_0xa4cd4e['error']({'title':_0x5be423['status']?'API:'+_0x5be423[_0x436821('0x1b51')]+'\x20-\x20'+_0x5be423['statusText']:_0x436821('0xd90'),'msg':_0x5be423[_0x436821('0x1b51')]?JSON['stringify'](_0x5be423['data']):_0x5be423[_0x436821('0x17df')]()});});}function _0xa045eb(){return _0x2218f1(function(_0x459879,_0x195f72){const _0x41995f=a0_0x14e7;_0x28d93c[_0x41995f('0xec9')]['get']({'userProfileId':_0x1974dd[_0x41995f('0x9cb')]['userProfileId'],'name':_0x41995f('0x1f72')})['$promise'][_0x41995f('0x2788')](function(_0x5e8fb6){const _0x1976c7=_0x41995f,_0x5ed21d=_0x5e8fb6&&_0x5e8fb6[_0x1976c7('0x25df')]?_0x5e8fb6[_0x1976c7('0x25df')][0x0]:null;_0x459879(_0x5ed21d);})[_0x41995f('0x1cb5')](function(_0x4a5b13){_0x195f72(_0x4a5b13);});});}function _0x2ac886(){return _0x2218f1(function(_0xbbcdf4,_0x4178db){const _0x2ab418=a0_0x14e7;return _0x110d75()[_0x2ab418('0x2788')](function(_0x12110a){const _0x156189=_0x2ab418;return _0x1974dd[_0x156189('0x117b')]=_0x12110a[_0x156189('0x25df')]?_0x12110a[_0x156189('0x25df')]:[],_0x5de964['hasRole'](_0x156189('0xe23'))?_0x12110a:_0x1974dd[_0x156189('0xb13')]?_0x1974dd['section']['autoAssociation']?_0x12110a:_0x412c78():null;})[_0x2ab418('0x2788')](function(_0x2941b9){const _0x4bc7d7=_0x2ab418,_0x37ed87=_0x2941b9&&_0x2941b9[_0x4bc7d7('0x25df')]?_0x2941b9[_0x4bc7d7('0x25df')]:[];return _0x1974dd[_0x4bc7d7('0x73d')]=_0x283545()['map'](_0x37ed87,function(_0x285b18){const _0x3b42ac=_0x4bc7d7;return _0x283545()[_0x3b42ac('0x20e8')](_0x1974dd['items'],{'id':_0x5de964[_0x3b42ac('0x1516')](_0x3b42ac('0xe23'))||_0x1974dd[_0x3b42ac('0xb13')][_0x3b42ac('0x1c0a')]?_0x285b18['id']:_0x285b18[_0x3b42ac('0x2707')]});}),_0x1974dd[_0x4bc7d7('0x12d9')]=angular['copy'](_0x1974dd[_0x4bc7d7('0x73d')]),_0x1974dd[_0x4bc7d7('0x117b')][_0x4bc7d7('0x1534')](function(_0x1618d3){const _0x19c4da=_0x4bc7d7,_0x6944a1=_0x283545()[_0x19c4da('0x20e8')](_0x1974dd[_0x19c4da('0x73d')],{'id':_0x1618d3['id']});_0x5de964[_0x19c4da('0x1516')](_0x19c4da('0xe23'))?_0x1618d3[_0x19c4da('0x68d')]=!![]:_0x1618d3[_0x19c4da('0x68d')]=typeof _0x6944a1!==_0x19c4da('0xedb')?!![]:![];}),_0x323bbe();})['then'](function(_0xbcb8aa){const _0x294f52=_0x2ab418,_0x57dce9=_0xbcb8aa&&_0xbcb8aa[_0x294f52('0x25df')]?_0xbcb8aa[_0x294f52('0x25df')]:[];_0x1974dd['selectedItems']=_0x283545()['map'](_0x57dce9,function(_0x116d21){const _0x519135=_0x294f52,_0x3a6991=_0x283545()['find'](_0x1974dd[_0x519135('0x117b')],{'id':_0x116d21['id']});return _0x3a6991['penalty']=_0x116d21[_0x519135('0x13c3')]?_0x519135('0x1b9d')+_0x116d21[_0x519135('0x13c3')][_0x519135('0x1ab')]:'',_0x3a6991[_0x519135('0x2838')]=typeof _0x116d21[_0x519135('0x2838')]!=='undefined'?'<'+_0x116d21['internal']+'>':'',_0x3a6991;}),_0x1974dd[_0x294f52('0xd0d')]=angular[_0x294f52('0x2669')](_0x1974dd[_0x294f52('0x283f')]),_0x1974dd['dualMultiselectOptions']['selectedItems']=_0x1974dd[_0x294f52('0x283f')],_0x1974dd[_0x294f52('0x121')][_0x294f52('0x117b')]=_0x283545()['differenceBy'](_0x1974dd[_0x294f52('0x73d')],_0x1974dd[_0x294f52('0x121')][_0x294f52('0x283f')],'id'),_0xbbcdf4();})[_0x2ab418('0x1cb5')](function(_0xec228d){_0x4178db(_0xec228d);});});}function _0x412c78(){return _0x2218f1(function(_0x2c63f0,_0x204857){const _0x14edcc=a0_0x14e7;return _0x28d93c[_0x14edcc('0x1050')][_0x14edcc('0x1335')]({'sectionId':_0x1974dd[_0x14edcc('0xb13')]['id'],'nolimit':!![]})[_0x14edcc('0x1714')][_0x14edcc('0x2788')](function(_0x1e237a){_0x2c63f0(_0x1e237a);})['catch'](function(_0x1215ea){_0x204857(_0x1215ea);});});}function _0x323bbe(){return _0x2218f1(function(_0x13d1fd,_0x1b5688){const _0x1f0f87=a0_0x14e7;return _0x28d93c[_0x1f0f87('0x12a8')][_0x1f0f87('0x19db')]({'id':_0x1974dd[_0x1f0f87('0x12a8')]['id'],'fields':_0x1f0f87('0x1d32'),'nolimit':!![],'role':_0x1f0f87('0x188b')})[_0x1f0f87('0x1714')]['then'](function(_0x2b4f21){_0x13d1fd(_0x2b4f21);})[_0x1f0f87('0x1cb5')](function(_0x5f3a34){_0x1b5688(_0x5f3a34);});});}function _0x110d75(){return _0x2218f1(function(_0x52b58f,_0x2f1829){const _0x337aec=a0_0x14e7;return _0x28d93c[_0x337aec('0x1e6a')]['get']({'fields':_0x337aec('0x1d32'),'nolimit':!![],'role':_0x337aec('0x188b')})[_0x337aec('0x1714')][_0x337aec('0x2788')](function(_0x6d016a){_0x52b58f(_0x6d016a);})[_0x337aec('0x1cb5')](function(_0x4b12d2){_0x2f1829(_0x4b12d2);});});}function _0x548c38(_0x300ddf){return _0x2218f1(function(_0xea53e9,_0x2df531){const _0x27118a=a0_0x14e7;_0x283545()[_0x27118a('0x213d')](_0x300ddf)?_0xea53e9():_0x28d93c[_0x27118a('0x12a8')][_0x27118a('0x588')]({'id':_0x1974dd[_0x27118a('0x12a8')]['id'],'ids':_0x283545()[_0x27118a('0x155d')](_0x300ddf,'id')})[_0x27118a('0x1714')][_0x27118a('0x2788')](function(){_0xea53e9();})['catch'](function(_0x5137bf){_0x2df531(_0x5137bf);});});}function _0x56df19(_0x10c057){return _0x2218f1(function(_0x59d042,_0x359865){const _0x5b7774=a0_0x14e7;_0x283545()[_0x5b7774('0x213d')](_0x10c057)?_0x59d042():_0x28d93c[_0x5b7774('0x12a8')][_0x5b7774('0x1d72')]({'id':_0x1974dd[_0x5b7774('0x12a8')]['id'],'ids':_0x283545()[_0x5b7774('0x155d')](_0x10c057,'id')})['$promise'][_0x5b7774('0x2788')](function(){_0x59d042();})['catch'](function(_0x1e3fba){_0x359865(_0x1e3fba);});});}function _0x1fa67c(){const _0x3d636f=_0x17e81c,_0x5d94af=_0x283545()[_0x3d636f('0x432')](_0x1974dd[_0x3d636f('0xd0d')],_0x1974dd[_0x3d636f('0x283f')],'id'),_0xb28371=_0x283545()[_0x3d636f('0x432')](_0x1974dd['selectedItems'],_0x1974dd[_0x3d636f('0xd0d')],'id');return _0x56df19(_0x5d94af)[_0x3d636f('0x2788')](function(){return _0x548c38(_0xb28371);})[_0x3d636f('0x2788')](function(){const _0x177215=_0x3d636f;_0x1974dd[_0x177215('0x2677')]=![],_0x1974dd['startingAllowedItems']=angular[_0x177215('0x2669')](_0x1974dd[_0x177215('0x73d')]),_0x1974dd[_0x177215('0xd0d')]=angular[_0x177215('0x2669')](_0x1974dd['selectedItems']),_0xa4cd4e[_0x177215('0x173b')]({'title':_0x177215('0x10c8'),'msg':_0x177215('0x1984')});})[_0x3d636f('0x1cb5')](function(_0x4dac4f){const _0x40501e=_0x3d636f;_0xa4cd4e[_0x40501e('0x5e8')]({'title':_0x4dac4f[_0x40501e('0x1b51')]?_0x40501e('0x15d1')+_0x4dac4f[_0x40501e('0x1b51')]+_0x40501e('0x1b0b')+_0x4dac4f[_0x40501e('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4dac4f[_0x40501e('0x1b51')]?JSON[_0x40501e('0x1be0')](_0x4dac4f['data']):_0x4dac4f[_0x40501e('0x17df')]()});});}function _0xb97444(){const _0x219219=_0x17e81c;_0x2da6f6[_0x219219('0x19d')]();}}const _0x53b2cd=_0x34436f;_0x373761['$inject']=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x12a8'),_0x34e79e('0x1a5c'),'Auth',_0x34e79e('0xe28')];function _0x373761(_0x239efc,_0x294213,_0x5ba531,_0x2efcac,_0x8d10dc,_0x221f6a,_0x5849f9,_0x1a06ca){const _0x2c04c9=_0x34e79e,_0x1cdcad=this;_0x1cdcad[_0x2c04c9('0x9cb')]=_0x5849f9[_0x2c04c9('0x24cc')](),_0x1cdcad[_0x2c04c9('0x12a8')]=_0x8d10dc,_0x1cdcad[_0x2c04c9('0xe28')]=_0x1a06ca,_0x1cdcad[_0x2c04c9('0x117b')]=[],_0x1cdcad['allowedItems']=[],_0x1cdcad['selectedItems']=[],_0x1cdcad[_0x2c04c9('0x12d9')]=[],_0x1cdcad[_0x2c04c9('0xd0d')]=[],_0x1cdcad[_0x2c04c9('0x2677')]=![],_0x1cdcad[_0x2c04c9('0x121')]={'readOnly':!_0x1cdcad[_0x2c04c9('0xe28')][_0x2c04c9('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2c04c9('0x1a8d'),'line1':_0x2c04c9('0x1a8d'),'line2':'','line3':'','labelAll':_0x221f6a[_0x2c04c9('0x1b11')](_0x2c04c9('0x7bd')),'labelSelected':_0x221f6a[_0x2c04c9('0x1b11')](_0x2c04c9('0x11f0')),'transferCallback':function(){const _0x496b55=_0x2c04c9,_0x3981fb=_0x283545()[_0x496b55('0x12d1')](_0x1cdcad['startingSelectedItems'],_0x1cdcad[_0x496b55('0x283f')],'id');_0x1cdcad[_0x496b55('0x2677')]=_0x283545()[_0x496b55('0x213d')](_0x3981fb)?![]:!![];}},_0x1cdcad[_0x2c04c9('0x122e')]=_0x23284b,_0x1cdcad[_0x2c04c9('0x1a27')]=_0x2cb380,_0x1cdcad[_0x2c04c9('0xca7')]=_0x76f195;function _0x23284b(){const _0x4c8a8c=_0x2c04c9;return _0x5849f9[_0x4c8a8c('0x1516')]('admin')?_0x2e1682()['catch'](function(_0x3588a4){const _0x31ff37=_0x4c8a8c;_0x5ba531['error']({'title':_0x3588a4[_0x31ff37('0x1b51')]?'API:'+_0x3588a4[_0x31ff37('0x1b51')]+_0x31ff37('0x1b0b')+_0x3588a4[_0x31ff37('0x22ce')]:_0x31ff37('0x556'),'msg':_0x3588a4[_0x31ff37('0x1b51')]?JSON[_0x31ff37('0x1be0')](_0x3588a4[_0x31ff37('0x11fc')]):_0x3588a4[_0x31ff37('0x17df')]()});}):_0x32a51b()['then'](function(_0x22c936){return _0x1cdcad['section']=_0x22c936,_0x2e1682();})[_0x4c8a8c('0x1cb5')](function(_0x45fff4){const _0x10d4da=_0x4c8a8c;_0x5ba531[_0x10d4da('0x5e8')]({'title':_0x45fff4[_0x10d4da('0x1b51')]?'API:'+_0x45fff4[_0x10d4da('0x1b51')]+_0x10d4da('0x1b0b')+_0x45fff4[_0x10d4da('0x22ce')]:_0x10d4da('0x556'),'msg':_0x45fff4[_0x10d4da('0x1b51')]?JSON[_0x10d4da('0x1be0')](_0x45fff4[_0x10d4da('0x11fc')]):_0x45fff4[_0x10d4da('0x17df')]()});});}function _0x32a51b(){return _0x294213(function(_0x4157db,_0x20e85c){const _0x515951=a0_0x14e7;_0x2efcac['userProfileSection'][_0x515951('0x1335')]({'userProfileId':_0x1cdcad['currentUser'][_0x515951('0x237f')],'name':_0x515951('0x23e9')})[_0x515951('0x1714')][_0x515951('0x2788')](function(_0x1bc10a){const _0x42e0cb=_0x515951,_0x1499ab=_0x1bc10a&&_0x1bc10a[_0x42e0cb('0x25df')]?_0x1bc10a[_0x42e0cb('0x25df')][0x0]:null;_0x4157db(_0x1499ab);})[_0x515951('0x1cb5')](function(_0x2c04fe){_0x20e85c(_0x2c04fe);});});}function _0x2e1682(){return _0x294213(function(_0x29dddc,_0x296bc6){const _0xcefcfe=a0_0x14e7;return _0x27b104()[_0xcefcfe('0x2788')](function(_0x2d550a){const _0x2911a7=_0xcefcfe;return _0x1cdcad[_0x2911a7('0x117b')]=_0x2d550a[_0x2911a7('0x25df')]?_0x2d550a[_0x2911a7('0x25df')]:[],_0x5849f9[_0x2911a7('0x1516')](_0x2911a7('0xe23'))?_0x2d550a:_0x1cdcad[_0x2911a7('0xb13')]?_0x1cdcad['section']['autoAssociation']?_0x2d550a:_0x1830b4():null;})[_0xcefcfe('0x2788')](function(_0x42c92b){const _0x13e0f9=_0xcefcfe,_0x469a16=_0x42c92b&&_0x42c92b[_0x13e0f9('0x25df')]?_0x42c92b[_0x13e0f9('0x25df')]:[];return _0x1cdcad['allowedItems']=_0x283545()[_0x13e0f9('0x155d')](_0x469a16,function(_0xe943a2){const _0x22d148=_0x13e0f9;return _0x283545()['find'](_0x1cdcad[_0x22d148('0x117b')],{'id':_0x5849f9[_0x22d148('0x1516')](_0x22d148('0xe23'))||_0x1cdcad[_0x22d148('0xb13')][_0x22d148('0x1c0a')]?_0xe943a2['id']:_0xe943a2[_0x22d148('0x2707')]});}),_0x1cdcad[_0x13e0f9('0x117b')]['forEach'](function(_0x5eb918){const _0x2d7b52=_0x13e0f9,_0x3255a5=_0x283545()[_0x2d7b52('0x20e8')](_0x1cdcad['allowedItems'],{'id':_0x5eb918['id']});_0x5849f9['hasRole'](_0x2d7b52('0xe23'))?_0x5eb918[_0x2d7b52('0x68d')]=!![]:_0x5eb918[_0x2d7b52('0x68d')]=typeof _0x3255a5!==_0x2d7b52('0xedb')?!![]:![];}),_0x2a803f();})[_0xcefcfe('0x2788')](function(_0x5deb9d){const _0x4066a9=_0xcefcfe,_0x23f5a0=_0x5deb9d&&_0x5deb9d[_0x4066a9('0x25df')]?_0x5deb9d[_0x4066a9('0x25df')]:[];_0x1cdcad[_0x4066a9('0x283f')]=_0x283545()['map'](_0x23f5a0,function(_0x1fe37d){const _0xc45401=_0x4066a9;return _0x283545()[_0xc45401('0x20e8')](_0x1cdcad[_0xc45401('0x117b')],{'id':_0x1fe37d['id']});}),_0x1cdcad[_0x4066a9('0xd0d')]=angular[_0x4066a9('0x2669')](_0x1cdcad['selectedItems']),_0x1cdcad[_0x4066a9('0x121')][_0x4066a9('0x283f')]=_0x1cdcad[_0x4066a9('0x283f')],_0x1cdcad['dualMultiselectOptions'][_0x4066a9('0x117b')]=_0x283545()['differenceBy'](_0x1cdcad['allowedItems'],_0x1cdcad[_0x4066a9('0x121')][_0x4066a9('0x283f')],'id'),_0x29dddc();})[_0xcefcfe('0x1cb5')](function(_0x1efa73){_0x296bc6(_0x1efa73);});});}function _0x1830b4(){return _0x294213(function(_0x3725a1,_0x29a2de){const _0x4df2ec=a0_0x14e7;return _0x2efcac[_0x4df2ec('0x1050')][_0x4df2ec('0x1335')]({'sectionId':_0x1cdcad[_0x4df2ec('0xb13')]['id'],'nolimit':!![]})[_0x4df2ec('0x1714')][_0x4df2ec('0x2788')](function(_0x474b40){_0x3725a1(_0x474b40);})['catch'](function(_0x3d5422){_0x29a2de(_0x3d5422);});});}function _0x2a803f(){return _0x294213(function(_0x4c627d,_0x31f01d){const _0x5714e2=a0_0x14e7;return _0x2efcac[_0x5714e2('0x12a8')]['getTeams']({'id':_0x1cdcad['chatQueue']['id'],'fields':'id,name','nolimit':!![]})[_0x5714e2('0x1714')][_0x5714e2('0x2788')](function(_0x4719ff){_0x4c627d(_0x4719ff);})[_0x5714e2('0x1cb5')](function(_0x3b69b7){_0x31f01d(_0x3b69b7);});});}function _0x27b104(){return _0x294213(function(_0x1ae5f0,_0x3edf7b){const _0x147cee=a0_0x14e7;return _0x2efcac[_0x147cee('0x421')]['get']({'fields':_0x147cee('0x1338'),'nolimit':!![]})[_0x147cee('0x1714')][_0x147cee('0x2788')](function(_0x3a5963){_0x1ae5f0(_0x3a5963);})['catch'](function(_0x22c5a2){_0x3edf7b(_0x22c5a2);});});}function _0x320a2f(_0x44cb05){return _0x294213(function(_0x23bc9b,_0x21553d){const _0x4cc139=a0_0x14e7;_0x283545()[_0x4cc139('0x213d')](_0x44cb05)?_0x23bc9b():_0x2efcac[_0x4cc139('0x12a8')][_0x4cc139('0x3bd')]({'id':_0x1cdcad[_0x4cc139('0x12a8')]['id'],'ids':_0x283545()['map'](_0x44cb05,'id')})[_0x4cc139('0x1714')][_0x4cc139('0x2788')](function(){_0x23bc9b();})['catch'](function(_0x2fb621){_0x21553d(_0x2fb621);});});}function _0x3b6224(_0xc7eec0){return _0x294213(function(_0x3b43d7,_0x16fbfc){const _0x897066=a0_0x14e7;_0x283545()[_0x897066('0x213d')](_0xc7eec0)?_0x3b43d7():_0x2efcac[_0x897066('0x12a8')][_0x897066('0xf4c')]({'id':_0x1cdcad[_0x897066('0x12a8')]['id'],'ids':_0x283545()['map'](_0xc7eec0,'id')})[_0x897066('0x1714')][_0x897066('0x2788')](function(){_0x3b43d7();})['catch'](function(_0x2bc37c){_0x16fbfc(_0x2bc37c);});});}function _0x2cb380(){const _0x2e31a1=_0x2c04c9,_0x257f07=_0x283545()[_0x2e31a1('0x432')](_0x1cdcad[_0x2e31a1('0xd0d')],_0x1cdcad[_0x2e31a1('0x283f')],'id'),_0x26df5b=_0x283545()[_0x2e31a1('0x432')](_0x1cdcad[_0x2e31a1('0x283f')],_0x1cdcad[_0x2e31a1('0xd0d')],'id');return _0x3b6224(_0x257f07)[_0x2e31a1('0x2788')](function(){return _0x320a2f(_0x26df5b);})[_0x2e31a1('0x2788')](function(){const _0x10dbd9=_0x2e31a1;_0x1cdcad['pendingChanges']=![],_0x1cdcad[_0x10dbd9('0x12d9')]=angular[_0x10dbd9('0x2669')](_0x1cdcad[_0x10dbd9('0x73d')]),_0x1cdcad[_0x10dbd9('0xd0d')]=angular[_0x10dbd9('0x2669')](_0x1cdcad[_0x10dbd9('0x283f')]),_0x5ba531['success']({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x2e31a1('0x1cb5')](function(_0x3ad2f3){const _0x20f9c7=_0x2e31a1;_0x5ba531[_0x20f9c7('0x5e8')]({'title':_0x3ad2f3[_0x20f9c7('0x1b51')]?'API:'+_0x3ad2f3[_0x20f9c7('0x1b51')]+_0x20f9c7('0x1b0b')+_0x3ad2f3[_0x20f9c7('0x22ce')]:_0x20f9c7('0x13cd'),'msg':_0x3ad2f3[_0x20f9c7('0x1b51')]?JSON[_0x20f9c7('0x1be0')](_0x3ad2f3[_0x20f9c7('0x11fc')]):_0x3ad2f3[_0x20f9c7('0x17df')]()});});}function _0x76f195(){const _0x16a5ce=_0x2c04c9;_0x239efc[_0x16a5ce('0x19d')]();}}const _0x469ec7=_0x373761;_0x38f777[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),'toasty',_0x34e79e('0x1b04'),'chatQueue','userProfileSection'];function _0x38f777(_0x4d62be,_0xc4a83,_0x28647e,_0x2a45cf,_0x1d34b5,_0x29e37b,_0x38c53f,_0x5aa58b,_0x4f2afb,_0x78a1b8,_0x48b44f,_0x7e8ff5){const _0x712da9=_0x34e79e,_0x11e640=this;_0x11e640[_0x712da9('0x9cb')]=_0x78a1b8[_0x712da9('0x24cc')](),_0x11e640[_0x712da9('0x130d')]=_0x29e37b,_0x11e640['setting']=_0x38c53f,_0x11e640['passwordPattern']=_0x11e640[_0x712da9('0x1af0')][_0x712da9('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11e640[_0x712da9('0xe9')]=_0xc4a83['protocol']()+_0x712da9('0x726')+_0xc4a83[_0x712da9('0x1c6a')](),_0x11e640[_0x712da9('0x12a8')]=_0x48b44f||_0x4d62be['params'][_0x712da9('0x12a8')]||{},_0x11e640[_0x712da9('0xec9')]=_0x7e8ff5&&_0x7e8ff5[_0x712da9('0x338')]==0x1?_0x7e8ff5[_0x712da9('0x25df')][0x0]:null,_0x11e640[_0x712da9('0xe28')]=_0x78a1b8[_0x712da9('0x157e')](_0x11e640[_0x712da9('0xec9')]?_0x11e640[_0x712da9('0xec9')][_0x712da9('0xe28')]:null),_0x11e640[_0x712da9('0x1193')]={},_0x11e640['selectedTab']=_0x4d62be['params'][_0x712da9('0x24f6')]||0x0,_0x11e640['teamadddialog']=_0x1fb600,_0x11e640['agentadddialog']=_0x441f4f,_0x11e640[_0x712da9('0x204f')]=_0x4f2afb[_0x712da9('0x2276')],_0x11e640[_0x712da9('0x1e14')]=_0x46af11,_0x11e640[_0x712da9('0x2183')]=_0x701071;function _0x1fb600(_0x5a19e6,_0x3cc981){const _0x4798de=_0x712da9;_0x28647e[_0x4798de('0x2fa')]({'controller':'ChatQueueteamaddController','controllerAs':'vm','templateUrl':_0xa42055,'parent':angular[_0x4798de('0x16b1')](_0x2a45cf[_0x4798de('0x945')]),'targetEvent':_0x3cc981,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5a19e6,'chatQueues':_0x11e640[_0x4798de('0x133a')]?_0x11e640['chatQueues'][_0x4798de('0x25df')]:[],'crudPermissions':_0x11e640['crudPermissions']}});}function _0x441f4f(_0x4e0e9c,_0x39f962){const _0x28c369=_0x712da9;_0x28647e[_0x28c369('0x2fa')]({'controller':_0x28c369('0xfbd'),'controllerAs':'vm','templateUrl':_0x19f6e9,'parent':angular[_0x28c369('0x16b1')](_0x2a45cf[_0x28c369('0x945')]),'targetEvent':_0x39f962,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4e0e9c,'chatQueues':_0x11e640[_0x28c369('0x133a')]?_0x11e640[_0x28c369('0x133a')][_0x28c369('0x25df')]:[],'crudPermissions':_0x11e640[_0x28c369('0xe28')],'realtime':![]}});}function _0x46af11(){const _0x4dc6b5=_0x712da9;_0x4d62be['go'](_0x4dc6b5('0x273c'),{},{'reload':_0x4dc6b5('0x273c')});}function _0x701071(){const _0x141add=_0x712da9;_0x5aa58b[_0x141add('0x12a8')][_0x141add('0x2740')]({'id':_0x11e640[_0x141add('0x12a8')]['id']},_0x11e640[_0x141add('0x12a8')])[_0x141add('0x1714')][_0x141add('0x2788')](function(){const _0x5e88df=_0x141add;_0x4f2afb['success']({'title':_0x5e88df('0xb4'),'msg':_0x11e640[_0x5e88df('0x12a8')][_0x5e88df('0x1a8d')]?_0x11e640[_0x5e88df('0x12a8')][_0x5e88df('0x1a8d')]+_0x5e88df('0x6f8'):''});})[_0x141add('0x1cb5')](function(_0x21c549){const _0x13ab6f=_0x141add;_0x4f2afb[_0x13ab6f('0x5e8')]({'title':_0x21c549['status']?'API:'+_0x21c549[_0x13ab6f('0x1b51')]+_0x13ab6f('0x1b0b')+_0x21c549['statusText']:_0x13ab6f('0x184e'),'msg':_0x21c549[_0x13ab6f('0x11fc')]?JSON['stringify'](_0x21c549['data']):_0x21c549['toString']()});});}}const _0x389dc5=_0x38f777,_0x20e67b=_0x18dd13['p']+_0x34e79e('0xb5e'),_0x5bd57f=_0x18dd13['p']+_0x34e79e('0x1a41');_0xdd3b53[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0x6de'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),'toasty','Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0xdd3b53(_0x1a8229,_0x643d72,_0x2b3d4e,_0x3904d9,_0x5dc724,_0x5ee4b1,_0x5ccbe1,_0x4b8f6b,_0x3e39ed,_0x45581e,_0x2ba6eb,_0x5bb6a1,_0x832b8f,_0x109073,_0xa63ce0,_0x59d5ac,_0x315020){const _0x5ad11b=_0x34e79e,_0x3c90f9=this;_0x3c90f9['license']=_0x59d5ac,_0x3c90f9['setting']=_0x315020,_0x3c90f9['currentUser']=_0xa63ce0['getCurrentUser'](),_0x3c90f9[_0x5ad11b('0x6de')]=_0x3e39ed||{'count':0x0,'rows':[]},_0x3c90f9[_0x5ad11b('0x63c')]=_0x45581e,_0x3c90f9['userProfileSection']=_0x2ba6eb&&_0x2ba6eb[_0x5ad11b('0x338')]==0x1?_0x2ba6eb['rows'][0x0]:null,_0x3c90f9[_0x5ad11b('0xe28')]=_0xa63ce0[_0x5ad11b('0x157e')](_0x3c90f9[_0x5ad11b('0xec9')]?_0x3c90f9[_0x5ad11b('0xec9')][_0x5ad11b('0xe28')]:null),_0x3c90f9['table']=_0x5ad11b('0x6de'),_0x3c90f9[_0x5ad11b('0x2278')]='',_0x3c90f9[_0x5ad11b('0x25e2')]=null,_0x3c90f9[_0x5ad11b('0x17b9')]=[],_0x3c90f9[_0x5ad11b('0x135a')]={'fields':_0x5ad11b('0x4a6'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3c90f9['arrayagentIdentifier']=_0x283545()[_0x5ad11b('0x13cf')]([{'option':_0x5ad11b('0x1cf'),'value':_0x5ad11b('0xebb')},{'option':_0x5ad11b('0x1374'),'value':'\x27agent_alias\x27'},{'option':_0x5ad11b('0x2490'),'value':_0x5ad11b('0x1baf')}],function(_0x2495b8){const _0x36a040=_0x5ad11b;return _0x283545()[_0x36a040('0x10a4')](_0x2495b8[_0x36a040('0x49')],new RegExp('\x27','g'),'');}),_0x3c90f9[_0x5ad11b('0x175a')]=_0x283545()['keyBy']([{'option':'Rounded','value':_0x5ad11b('0x20f5')},{'option':_0x5ad11b('0x1d65'),'value':_0x5ad11b('0x66b')}],function(_0x123ff8){const _0x5270c2=_0x5ad11b;return _0x283545()[_0x5270c2('0x10a4')](_0x123ff8['value'],new RegExp('\x27','g'),'');}),_0x3c90f9['arrayalignment']=_0x283545()[_0x5ad11b('0x13cf')]([{'option':'bottom_right','value':_0x5ad11b('0x1e')},{'option':'right','value':_0x5ad11b('0xe39')},{'option':_0x5ad11b('0x17cd'),'value':_0x5ad11b('0x14c7')}],function(_0x3ea357){const _0xee8bf9=_0x5ad11b;return _0x283545()['replace'](_0x3ea357[_0xee8bf9('0x49')],new RegExp('\x27','g'),'');}),_0x3c90f9[_0x5ad11b('0x2648')]=_0x283545()[_0x5ad11b('0x13cf')]([{'option':_0x5ad11b('0x176f'),'value':_0x5ad11b('0x1367')},{'option':_0x5ad11b('0x534'),'value':_0x5ad11b('0x236c')}],function(_0x14afe0){const _0x52c6a1=_0x5ad11b;return _0x283545()[_0x52c6a1('0x10a4')](_0x14afe0[_0x52c6a1('0x49')],new RegExp('\x27','g'),'');}),_0x3c90f9[_0x5ad11b('0x91d')]=_0x283545()[_0x5ad11b('0x13cf')]([{'option':'Star','value':_0x5ad11b('0x1773')},{'option':_0x5ad11b('0x20c2'),'value':'\x27thumb\x27'}],function(_0x45064f){const _0x45c837=_0x5ad11b;return _0x283545()[_0x45c837('0x10a4')](_0x45064f[_0x45c837('0x49')],new RegExp('\x27','g'),'');}),_0x3c90f9[_0x5ad11b('0x1f7e')]=_0x36ac16,_0x3c90f9[_0x5ad11b('0x3aa')]=_0x28d2d2,_0x3c90f9['offlinemessagesgoto']=_0xead7ea,_0x3c90f9[_0x5ad11b('0x1113')]=_0x8bdaf9,_0x3c90f9['deleteconfirm']=_0x3a65a0,_0x3c90f9['success']=_0x330ec3,_0x3c90f9['getChatWebsites']=_0x2f260e,_0x3c90f9[_0x5ad11b('0xc47')]=_0x8a8c25,_0x3c90f9[_0x5ad11b('0x1f9e')]=_0xa656b3,_0x3c90f9[_0x5ad11b('0xdac')]=_0x1d4650,_0x3c90f9[_0x5ad11b('0xfb3')]=_0x245fca,_0x3c90f9['deselectChatWebsites']=_0x2e697e,_0x3c90f9[_0x5ad11b('0x89c')]=_0x823b35,_0xa63ce0['hasRole'](_0x5ad11b('0xe23'))?_0x5bb6a1[_0x5ad11b('0x1ba4')]['get']({'fields':_0x5ad11b('0x1338'),'sort':'name'})[_0x5ad11b('0x1714')][_0x5ad11b('0x2788')](function(_0x32b788){const _0x3f362f=_0x5ad11b;_0x3c90f9[_0x3f362f('0x2')]=_0x32b788['rows']||[];})[_0x5ad11b('0x1cb5')](function(_0x2b9a03){const _0x39be80=_0x5ad11b;_0x109073[_0x39be80('0x5e8')]({'title':_0x2b9a03[_0x39be80('0x1b51')]?_0x39be80('0x15d1')+_0x2b9a03[_0x39be80('0x1b51')]+'\x20-\x20'+_0x2b9a03[_0x39be80('0x22ce')]:'SYSTEM:GET_LISTS','msg':_0x2b9a03[_0x39be80('0x11fc')]?JSON[_0x39be80('0x1be0')](_0x2b9a03[_0x39be80('0x11fc')]):_0x2b9a03['toString']()});}):_0x5bb6a1['cmList'][_0x5ad11b('0x1335')]({'fields':_0x5ad11b('0x1338'),'sort':_0x5ad11b('0x1a8d')})['$promise'][_0x5ad11b('0x2788')](function(_0x443d0c){const _0x40cd58=_0x5ad11b;_0x3c90f9['lists']=_0x443d0c[_0x40cd58('0x25df')]||[];})[_0x5ad11b('0x2788')](function(){const _0x28d5a5=_0x5ad11b;return _0x5bb6a1[_0x28d5a5('0xec9')]['get']({'userProfileId':_0x3c90f9['currentUser'][_0x28d5a5('0x237f')],'sectionId':0x12d})['$promise'];})[_0x5ad11b('0x2788')](function(_0x31cec5){const _0x1def6f=_0x5ad11b,_0xa4044f=_0x31cec5&&_0x31cec5[_0x1def6f('0x25df')]?_0x31cec5['rows'][0x0]:null;if(!_0xa4044f){const _0xa512a9=[];let _0x445a68=null;_0x3c90f9[_0x1def6f('0x169c')]&&(_0x445a68=_0x283545()[_0x1def6f('0x20e8')](_0x3c90f9['lists'],{'id':Number(_0x3c90f9['chatWebsite'][_0x1def6f('0x354')])}));for(let _0x5b684b=0x0;_0x5b684b<_0x3c90f9[_0x1def6f('0x2')][_0x1def6f('0x2566')];_0x5b684b++){_0x445a68&&_0x3c90f9[_0x1def6f('0x2')][_0x5b684b]['id']===_0x445a68['id']&&(_0x3c90f9[_0x1def6f('0x2')][_0x5b684b]['canSelect']=![],_0xa512a9[_0x1def6f('0x13e3')](_0x3c90f9[_0x1def6f('0x2')][_0x5b684b]));}_0x3c90f9[_0x1def6f('0x2')]=_0xa512a9;}else{if(!_0xa4044f[_0x1def6f('0x1c0a')])return _0x5bb6a1['userProfileResource'][_0x1def6f('0x1335')]({'sectionId':_0xa4044f['id']})[_0x1def6f('0x1714')][_0x1def6f('0x2788')](function(_0x5aa773){const _0x365491=_0x1def6f,_0x29c287=_0x283545()[_0x365491('0x155d')](_0x5aa773[_0x365491('0x25df')],function(_0x1768c3){const _0x1a9ef9=_0x365491;return _0x283545()['find'](_0x3c90f9[_0x1a9ef9('0x2')],{'id':_0x1768c3[_0x1a9ef9('0x2707')]});});let _0x462b6c=null;_0x3c90f9[_0x365491('0x169c')]&&(_0x462b6c=_0x283545()[_0x365491('0x20e8')](_0x3c90f9[_0x365491('0x2')],{'id':Number(_0x3c90f9['chatWebsite'][_0x365491('0x354')])}));if(_0x462b6c&&!_0x283545()[_0x365491('0xc5d')](_0x29c287,['id',_0x462b6c['id']])){const _0x5f5cbc=_0x283545()['find'](_0x3c90f9['lists'],{'id':_0x462b6c['id']});_0x5f5cbc['canSelect']=![],_0x29c287[_0x365491('0x13e3')](_0x5f5cbc);}_0x3c90f9[_0x365491('0x2')]=_0x29c287;});}})['catch'](function(_0x21f0bf){const _0x11ca0f=_0x5ad11b;_0x109073[_0x11ca0f('0x5e8')]({'title':_0x21f0bf['status']?_0x11ca0f('0x15d1')+_0x21f0bf[_0x11ca0f('0x1b51')]+'\x20-\x20'+_0x21f0bf['statusText']:'SYSTEM:GETlists','msg':_0x21f0bf['data']?JSON[_0x11ca0f('0x1be0')](_0x21f0bf[_0x11ca0f('0x11fc')]):_0x21f0bf[_0x11ca0f('0x17df')]()});}),_0xa63ce0['hasRole']('admin')?_0x5bb6a1[_0x5ad11b('0x2630')][_0x5ad11b('0x1335')]({'fields':'id,name','sort':'name','IntervalId':_0x5ad11b('0x954')})[_0x5ad11b('0x1714')][_0x5ad11b('0x2788')](function(_0x4d20d6){const _0xfdd0ae=_0x5ad11b;_0x3c90f9['interval']=_0x4d20d6[_0xfdd0ae('0x25df')]||[];})['catch'](function(_0xe94ff0){const _0x292c1d=_0x5ad11b;_0x109073[_0x292c1d('0x5e8')]({'title':_0xe94ff0[_0x292c1d('0x1b51')]?_0x292c1d('0x15d1')+_0xe94ff0[_0x292c1d('0x1b51')]+_0x292c1d('0x1b0b')+_0xe94ff0[_0x292c1d('0x22ce')]:_0x292c1d('0x2332'),'msg':_0xe94ff0[_0x292c1d('0x11fc')]?JSON[_0x292c1d('0x1be0')](_0xe94ff0[_0x292c1d('0x11fc')]):_0xe94ff0[_0x292c1d('0x17df')]()});}):_0x5bb6a1['interval'][_0x5ad11b('0x1335')]({'fields':_0x5ad11b('0x1338'),'sort':'name','IntervalId':_0x5ad11b('0x954')})[_0x5ad11b('0x1714')]['then'](function(_0x1e3529){const _0x1adc12=_0x5ad11b;_0x3c90f9[_0x1adc12('0x2630')]=_0x1e3529[_0x1adc12('0x25df')]||[];})[_0x5ad11b('0x2788')](function(){const _0x1ee441=_0x5ad11b;return _0x5bb6a1[_0x1ee441('0xec9')][_0x1ee441('0x1335')]({'userProfileId':_0x3c90f9[_0x1ee441('0x9cb')]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x5ad11b('0x2788')](function(_0x5e3bb6){const _0x43bd2a=_0x5ad11b,_0x2a179c=_0x5e3bb6&&_0x5e3bb6['rows']?_0x5e3bb6[_0x43bd2a('0x25df')][0x0]:null;if(!_0x2a179c){const _0x5ecc44=[];let _0x1cd7d2=null;_0x3c90f9[_0x43bd2a('0x169c')]&&(_0x1cd7d2=_0x283545()[_0x43bd2a('0x20e8')](_0x3c90f9[_0x43bd2a('0x2630')],{'id':Number(_0x3c90f9[_0x43bd2a('0x169c')][_0x43bd2a('0x20d0')])}));for(let _0x3efa8c=0x0;_0x3efa8c<_0x3c90f9[_0x43bd2a('0x2630')][_0x43bd2a('0x2566')];_0x3efa8c++){_0x1cd7d2&&_0x3c90f9['interval'][_0x3efa8c]['id']===_0x1cd7d2['id']&&(_0x3c90f9[_0x43bd2a('0x2630')][_0x3efa8c]['canSelect']=![],_0x5ecc44[_0x43bd2a('0x13e3')](_0x3c90f9['interval'][_0x3efa8c]));}_0x3c90f9['interval']=_0x5ecc44;}else{if(!_0x2a179c[_0x43bd2a('0x1c0a')])return _0x5bb6a1[_0x43bd2a('0x1050')][_0x43bd2a('0x1335')]({'sectionId':_0x2a179c['id']})[_0x43bd2a('0x1714')][_0x43bd2a('0x2788')](function(_0x493cee){const _0x42ae3a=_0x43bd2a,_0x34666b=_0x283545()[_0x42ae3a('0x155d')](_0x493cee[_0x42ae3a('0x25df')],function(_0x12a4f6){const _0x4e98a8=_0x42ae3a;return _0x283545()[_0x4e98a8('0x20e8')](_0x3c90f9[_0x4e98a8('0x2630')],{'id':_0x12a4f6[_0x4e98a8('0x2707')]});});let _0x232606=null;_0x3c90f9['chatWebsite']&&(_0x232606=_0x283545()[_0x42ae3a('0x20e8')](_0x3c90f9[_0x42ae3a('0x2630')],{'id':Number(_0x3c90f9[_0x42ae3a('0x169c')]['IntervalId'])}));if(_0x232606&&!_0x283545()['some'](_0x34666b,['id',_0x232606['id']])){const _0x10a6b4=_0x283545()['find'](_0x3c90f9['interval'],{'id':_0x232606['id']});_0x10a6b4[_0x42ae3a('0x3bf')]=![],_0x34666b[_0x42ae3a('0x13e3')](_0x10a6b4);}_0x3c90f9[_0x42ae3a('0x2630')]=_0x34666b;});}})[_0x5ad11b('0x1cb5')](function(_0x20777f){const _0x4f773e=_0x5ad11b;_0x109073[_0x4f773e('0x5e8')]({'title':_0x20777f[_0x4f773e('0x1b51')]?_0x4f773e('0x15d1')+_0x20777f[_0x4f773e('0x1b51')]+_0x4f773e('0x1b0b')+_0x20777f[_0x4f773e('0x22ce')]:'SYSTEM:GETinterval','msg':_0x20777f[_0x4f773e('0x11fc')]?JSON['stringify'](_0x20777f[_0x4f773e('0x11fc')]):_0x20777f[_0x4f773e('0x17df')]()});});function _0x36ac16(_0x370fde){const _0x3e0da8=_0x5ad11b;_0x2b3d4e['go']('app.chat.chatWebsites.edit',{'id':_0x370fde['id'],'chatWebsite':_0x370fde,'crudPermissions':_0x3c90f9[_0x3e0da8('0xe28')]});}function _0x28d2d2(_0x1e961c){const _0x357ceb=_0x5ad11b;_0x2b3d4e['go'](_0x357ceb('0x2d4'),{'id':_0x1e961c['id'],'tab':0xa});}function _0xead7ea(_0x170128){const _0x39baf5=_0x5ad11b;_0x2b3d4e['go'](_0x39baf5('0x2d4'),{'id':_0x170128['id'],'tab':0xb});}function _0x8bdaf9(_0x420829,_0x49e46a){const _0x298a86=_0x5ad11b;_0x5dc724[_0x298a86('0x2fa')]({'controller':'ChatWebsiteagentaddController','controllerAs':'vm','templateUrl':_0x20e67b,'parent':angular['element'](_0x5ee4b1[_0x298a86('0x945')]),'targetEvent':_0x49e46a,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x420829,'chatWebsites':_0x3c90f9['chatWebsites']?_0x3c90f9[_0x298a86('0x6de')][_0x298a86('0x25df')]:[],'crudPermissions':_0x3c90f9[_0x298a86('0xe28')],'realtime':![]}});}function _0x3a65a0(_0x37221c,_0x10528a){const _0x118e1c=_0x5ad11b,_0x2b00ba=_0x5dc724[_0x118e1c('0x112e')]()['title'](_0x118e1c('0x2114')+_0x283545()[_0x118e1c('0x114')](_0x118e1c('0x169c'))+'?')['htmlContent'](''+(_0x37221c[_0x118e1c('0x1a8d')]||_0x118e1c('0x169c'))+''+_0x118e1c('0x27c7'))[_0x118e1c('0x10bc')](_0x118e1c('0x155c'))[_0x118e1c('0x24d0')](_0x10528a)['ok']('OK')[_0x118e1c('0x1801')](_0x118e1c('0x1d8d'));_0x5dc724['show'](_0x2b00ba)[_0x118e1c('0x2788')](function(){_0xa656b3(_0x37221c);},function(){const _0x247b3b=_0x118e1c;console['log'](_0x247b3b('0x1d8d'));});}let _0xe70318=!![],_0x4b16f0=0x1;_0x1a8229[_0x5ad11b('0x1662')](_0x5ad11b('0x1569'),function(_0x4e01a2,_0x1ccb68){const _0x4f9437=_0x5ad11b;_0xe70318?_0x5ccbe1(function(){_0xe70318=![];}):(!_0x1ccb68&&(_0x4b16f0=_0x3c90f9[_0x4f9437('0x135a')][_0x4f9437('0x23f5')]),_0x4e01a2!==_0x1ccb68&&(_0x3c90f9['query'][_0x4f9437('0x23f5')]=0x1),!_0x4e01a2&&(_0x3c90f9[_0x4f9437('0x135a')][_0x4f9437('0x23f5')]=_0x4b16f0),_0x3c90f9[_0x4f9437('0xfa6')]());});function _0x330ec3(_0x9c3595){_0x3c90f9['chatWebsites']=_0x9c3595||{'count':0x0,'rows':[]};}function _0x2f260e(){const _0x5ed918=_0x5ad11b;_0x3c90f9['query']['offset']=(_0x3c90f9['query'][_0x5ed918('0x23f5')]-0x1)*_0x3c90f9['query'][_0x5ed918('0x68e')],_0xa63ce0[_0x5ed918('0x1516')]('admin')?_0x3c90f9[_0x5ed918('0x1808')]=_0x5bb6a1[_0x5ed918('0x169c')]['get'](_0x3c90f9[_0x5ed918('0x135a')],_0x330ec3)[_0x5ed918('0x1714')]:(_0x3c90f9[_0x5ed918('0x135a')]['id']=_0x3c90f9['userProfile']['id'],_0x3c90f9['query'][_0x5ed918('0xb13')]=_0x5ed918('0x453'),_0x3c90f9[_0x5ed918('0x1808')]=_0x5bb6a1[_0x5ed918('0x63c')][_0x5ed918('0xa1')](_0x3c90f9[_0x5ed918('0x135a')],_0x330ec3)[_0x5ed918('0x1714')]);}function _0x8a8c25(_0x4c9d61,_0x5e2f6b){const _0x112fe2=_0x5ad11b;_0x5dc724[_0x112fe2('0x2fa')]({'controller':_0x112fe2('0xfe7'),'controllerAs':'vm','templateUrl':_0x5bd57f,'parent':angular[_0x112fe2('0x16b1')](_0x5ee4b1[_0x112fe2('0x945')]),'targetEvent':_0x4c9d61,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5e2f6b,'chatWebsites':_0x3c90f9['chatWebsites']['rows'],'license':_0x3c90f9[_0x112fe2('0x130d')],'setting':_0x3c90f9[_0x112fe2('0x1af0')],'crudPermissions':_0x3c90f9['crudPermissions']}});}function _0xa656b3(_0x398e5f){const _0xfa8a07=_0x5ad11b;_0x5bb6a1[_0xfa8a07('0x169c')][_0xfa8a07('0x17c4')]({'id':_0x398e5f['id']})['$promise'][_0xfa8a07('0x2788')](function(){const _0x3888fe=_0xfa8a07;_0x283545()[_0x3888fe('0x1a90')](_0x3c90f9[_0x3888fe('0x6de')][_0x3888fe('0x25df')],{'id':_0x398e5f['id']}),_0x3c90f9[_0x3888fe('0x6de')][_0x3888fe('0x338')]-=0x1,!_0x3c90f9['chatWebsites'][_0x3888fe('0x25df')]['length']&&_0x3c90f9[_0x3888fe('0xfa6')](),_0x109073['success']({'title':_0x283545()[_0x3888fe('0x114')](_0x3888fe('0xa26'))+_0x3888fe('0x20db'),'msg':_0x398e5f[_0x3888fe('0x1a8d')]?_0x398e5f[_0x3888fe('0x1a8d')]+_0x3888fe('0x14d4'):''});})['catch'](function(_0x4d7d4f){const _0x329776=_0xfa8a07;if(_0x4d7d4f[_0x329776('0x11fc')]&&_0x4d7d4f[_0x329776('0x11fc')]['errors']&&_0x4d7d4f['data'][_0x329776('0x25be')]['length']){_0x3c90f9[_0x329776('0x25be')]=_0x4d7d4f[_0x329776('0x11fc')][_0x329776('0x25be')]||[{'message':_0x4d7d4f[_0x329776('0x17df')](),'type':'SYSTEM:DELETEchatWebsite'}];for(let _0x56a88d=0x0;_0x56a88d<_0x4d7d4f[_0x329776('0x11fc')][_0x329776('0x25be')]['length'];_0x56a88d++){_0x109073[_0x329776('0x5e8')]({'title':_0x4d7d4f[_0x329776('0x11fc')][_0x329776('0x25be')][_0x56a88d][_0x329776('0x1d7')],'msg':_0x4d7d4f['data'][_0x329776('0x25be')][_0x56a88d][_0x329776('0x15e2')]});}}else _0x109073[_0x329776('0x5e8')]({'title':_0x4d7d4f[_0x329776('0x1b51')]?_0x329776('0x15d1')+_0x4d7d4f[_0x329776('0x1b51')]+_0x329776('0x1b0b')+_0x4d7d4f[_0x329776('0x22ce')]:'SYSTEM:DELETEchatWebsite','msg':_0x4d7d4f[_0x329776('0x11fc')]?JSON[_0x329776('0x1be0')](_0x4d7d4f[_0x329776('0x11fc')][_0x329776('0x15e2')]):_0x4d7d4f[_0x329776('0x15e2')]||_0x4d7d4f[_0x329776('0x17df')]()});});}function _0x1d4650(){const _0x2b4492=_0x5ad11b,_0x50c7b7=angular[_0x2b4492('0x2669')](_0x3c90f9[_0x2b4492('0x17b9')]);return _0x3c90f9[_0x2b4492('0x17b9')]=[],_0x50c7b7;}function _0x245fca(_0x3e5b39){const _0x43e751=_0x5ad11b,_0x495e8f=_0x5dc724['confirm']()[_0x43e751('0x14e4')](_0x43e751('0x142'))['htmlContent'](_0x43e751('0x1670')+_0x3c90f9['selectedChatWebsites'][_0x43e751('0x2566')]+'\x20selected'+_0x43e751('0x27c7'))[_0x43e751('0x10bc')](_0x43e751('0x2000'))[_0x43e751('0x24d0')](_0x3e5b39)['ok']('OK')[_0x43e751('0x1801')](_0x43e751('0x1d8d'));_0x5dc724['show'](_0x495e8f)[_0x43e751('0x2788')](function(){const _0x5a8f47=_0x43e751;_0x3c90f9['selectedChatWebsites'][_0x5a8f47('0x1534')](function(_0x5cbb41){_0xa656b3(_0x5cbb41);}),_0x3c90f9[_0x5a8f47('0x17b9')]=[];});}function _0x2e697e(){const _0x55d0e0=_0x5ad11b;_0x3c90f9[_0x55d0e0('0x17b9')]=[];}function _0x823b35(){const _0x140427=_0x5ad11b;_0x3c90f9[_0x140427('0x17b9')]=_0x3c90f9[_0x140427('0x6de')][_0x140427('0x25df')];}}const _0xab73b8=_0xdd3b53;_0x2e0219['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x6de'),'chatWebsite',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x2e0219(_0x5bf964,_0x508f2f,_0x3e24bb,_0x3e90ee,_0xe65884,_0x167039,_0xe27359,_0x42f6d6,_0x19d094,_0x11cb06,_0xf21238,_0x4ee712,_0x23600d,_0x57c44f){const _0x14e727=_0x34e79e,_0x147834=this;_0x147834['currentUser']=_0xf21238['getCurrentUser'](),_0x147834['errors']=[],_0x147834['setting']=_0x23600d,_0x147834[_0x14e727('0x130d')]=_0x4ee712,_0x147834[_0x14e727('0xe28')]=_0x57c44f,_0x147834['hasModulePermissions']={},_0x147834[_0x14e727('0x18ad')]=_0x147834[_0x14e727('0x1af0')]&&_0x147834['setting'][_0x14e727('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x147834['title']=_0x14e727('0x18bd'),_0x147834['chatWebsite']=angular['copy'](_0x19d094),_0x147834[_0x14e727('0x6de')]=_0x42f6d6,_0x147834[_0x14e727('0xade')]=![];!_0x147834[_0x14e727('0x169c')]&&(_0x147834[_0x14e727('0x169c')]={'remote':_0x3e24bb[_0x14e727('0x170c')]()+_0x14e727('0x726')+_0x3e24bb[_0x14e727('0x1c6a')]()+(_0x3e24bb['port']()?':'+_0x3e24bb[_0x14e727('0x1fee')]():''),'header_shape':_0x14e727('0x25c2'),'alignment':_0x14e727('0x1f52'),'verticalAlignment':0x1e,'messagesAlignment':_0x14e727('0x176f'),'IntervalId':_0x14e727('0x954'),'timezone':_0x14e727('0x954'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x147834[_0x14e727('0x14e4')]='CHAT.NEW_CHATWEBSITE',_0x147834[_0x14e727('0xade')]=!![]);_0x508f2f[_0x14e727('0x4b9')]['id']&&(_0x147834[_0x14e727('0x169c')][_0x14e727('0x965')]=_0x508f2f[_0x14e727('0x4b9')]['id']);_0x147834['addNewChatWebsite']=_0x298378,_0x147834['saveChatWebsite']=_0x3a1fa2,_0x147834['deleteChatWebsite']=_0x46d099,_0x147834['getDateFromString']=_0x7fe33a,_0x147834[_0x14e727('0xca7')]=_0x353cb4,_0xf21238['hasRole'](_0x14e727('0xe23'))?_0x11cb06[_0x14e727('0x1ba4')][_0x14e727('0x1335')]({'fields':'id,name','sort':_0x14e727('0x1a8d')})[_0x14e727('0x1714')]['then'](function(_0x2330f0){const _0x59d353=_0x14e727;_0x147834[_0x59d353('0x2')]=_0x2330f0[_0x59d353('0x25df')]||[];})[_0x14e727('0x1cb5')](function(_0x247d08){const _0x439d95=_0x14e727;_0xe27359[_0x439d95('0x5e8')]({'title':_0x247d08[_0x439d95('0x1b51')]?_0x439d95('0x15d1')+_0x247d08[_0x439d95('0x1b51')]+_0x439d95('0x1b0b')+_0x247d08[_0x439d95('0x22ce')]:_0x439d95('0x11da'),'msg':_0x247d08[_0x439d95('0x11fc')]?JSON[_0x439d95('0x1be0')](_0x247d08[_0x439d95('0x11fc')]):_0x247d08[_0x439d95('0x17df')]()});}):_0x11cb06[_0x14e727('0x1ba4')][_0x14e727('0x1335')]({'fields':_0x14e727('0x1338'),'sort':'name'})[_0x14e727('0x1714')][_0x14e727('0x2788')](function(_0x4d77d5){const _0x38e035=_0x14e727;_0x147834[_0x38e035('0x2')]=_0x4d77d5[_0x38e035('0x25df')]||[];})['then'](function(){const _0x1b33f8=_0x14e727;return _0x11cb06[_0x1b33f8('0xec9')][_0x1b33f8('0x1335')]({'userProfileId':_0x147834[_0x1b33f8('0x9cb')]['userProfileId'],'sectionId':0x12d})[_0x1b33f8('0x1714')];})[_0x14e727('0x2788')](function(_0x381d0a){const _0x514bda=_0x14e727,_0x26b934=_0x381d0a&&_0x381d0a['rows']?_0x381d0a[_0x514bda('0x25df')][0x0]:null;if(!_0x26b934){const _0x436391=[];let _0x3e73aa=null;_0x147834['chatWebsite']&&(_0x3e73aa=_0x283545()[_0x514bda('0x20e8')](_0x147834[_0x514bda('0x2')],{'id':Number(_0x147834[_0x514bda('0x169c')]['ListId'])}));for(let _0x527d07=0x0;_0x527d07<_0x147834[_0x514bda('0x2')][_0x514bda('0x2566')];_0x527d07++){_0x3e73aa&&_0x147834['lists'][_0x527d07]['id']===_0x3e73aa['id']&&(_0x147834[_0x514bda('0x2')][_0x527d07][_0x514bda('0x3bf')]=![],_0x436391[_0x514bda('0x13e3')](_0x147834[_0x514bda('0x2')][_0x527d07]));}_0x147834[_0x514bda('0x2')]=_0x436391;}else{if(!_0x26b934[_0x514bda('0x1c0a')])return _0x11cb06['userProfileResource']['get']({'sectionId':_0x26b934['id']})[_0x514bda('0x1714')][_0x514bda('0x2788')](function(_0x138cce){const _0x57ee97=_0x514bda,_0x5d2915=_0x283545()[_0x57ee97('0x155d')](_0x138cce['rows'],function(_0xd0b144){const _0x54494f=_0x57ee97;return _0x283545()['find'](_0x147834[_0x54494f('0x2')],{'id':_0xd0b144['resourceId']});});let _0x4ac125=null;_0x147834[_0x57ee97('0x169c')]&&(_0x4ac125=_0x283545()[_0x57ee97('0x20e8')](_0x147834[_0x57ee97('0x2')],{'id':Number(_0x147834[_0x57ee97('0x169c')][_0x57ee97('0x354')])}));if(_0x4ac125&&!_0x283545()['some'](_0x5d2915,['id',_0x4ac125['id']])){const _0x4dd92e=_0x283545()['find'](_0x147834[_0x57ee97('0x2')],{'id':_0x4ac125['id']});_0x4dd92e[_0x57ee97('0x3bf')]=![],_0x5d2915[_0x57ee97('0x13e3')](_0x4dd92e);}_0x147834['lists']=_0x5d2915;});}})[_0x14e727('0x1cb5')](function(_0x4a35bd){const _0x281471=_0x14e727;_0xe27359[_0x281471('0x5e8')]({'title':_0x4a35bd[_0x281471('0x1b51')]?'API:'+_0x4a35bd[_0x281471('0x1b51')]+_0x281471('0x1b0b')+_0x4a35bd[_0x281471('0x22ce')]:_0x281471('0x999'),'msg':_0x4a35bd[_0x281471('0x11fc')]?JSON[_0x281471('0x1be0')](_0x4a35bd['data']):_0x4a35bd[_0x281471('0x17df')]()});}),_0xf21238[_0x14e727('0x1516')](_0x14e727('0xe23'))?_0x11cb06[_0x14e727('0x2630')][_0x14e727('0x1335')]({'fields':'id,name','sort':_0x14e727('0x1a8d'),'IntervalId':_0x14e727('0x954')})[_0x14e727('0x1714')]['then'](function(_0x467c6a){const _0x238c6e=_0x14e727;_0x147834[_0x238c6e('0x2630')]=_0x467c6a[_0x238c6e('0x25df')]||[];})[_0x14e727('0x1cb5')](function(_0x3d3ca7){const _0x3817ae=_0x14e727;_0xe27359[_0x3817ae('0x5e8')]({'title':_0x3d3ca7[_0x3817ae('0x1b51')]?_0x3817ae('0x15d1')+_0x3d3ca7[_0x3817ae('0x1b51')]+'\x20-\x20'+_0x3d3ca7[_0x3817ae('0x22ce')]:_0x3817ae('0x2332'),'msg':_0x3d3ca7[_0x3817ae('0x11fc')]?JSON[_0x3817ae('0x1be0')](_0x3d3ca7[_0x3817ae('0x11fc')]):_0x3d3ca7[_0x3817ae('0x17df')]()});}):_0x11cb06[_0x14e727('0x2630')][_0x14e727('0x1335')]({'fields':_0x14e727('0x1338'),'sort':_0x14e727('0x1a8d'),'IntervalId':_0x14e727('0x954')})[_0x14e727('0x1714')]['then'](function(_0x5c26b6){const _0x59e7ed=_0x14e727;_0x147834[_0x59e7ed('0x2630')]=_0x5c26b6[_0x59e7ed('0x25df')]||[];})[_0x14e727('0x2788')](function(){const _0x56e3f7=_0x14e727;return _0x11cb06[_0x56e3f7('0xec9')][_0x56e3f7('0x1335')]({'userProfileId':_0x147834[_0x56e3f7('0x9cb')]['userProfileId'],'sectionId':0x3ec})[_0x56e3f7('0x1714')];})['then'](function(_0x20acaf){const _0x59437b=_0x14e727,_0x35281c=_0x20acaf&&_0x20acaf[_0x59437b('0x25df')]?_0x20acaf['rows'][0x0]:null;if(!_0x35281c){const _0x50d4d3=[];let _0x5bfcc7=null;_0x147834[_0x59437b('0x169c')]&&(_0x5bfcc7=_0x283545()[_0x59437b('0x20e8')](_0x147834[_0x59437b('0x2630')],{'id':Number(_0x147834[_0x59437b('0x169c')]['IntervalId'])}));for(let _0xe689dd=0x0;_0xe689dd<_0x147834[_0x59437b('0x2630')][_0x59437b('0x2566')];_0xe689dd++){_0x5bfcc7&&_0x147834[_0x59437b('0x2630')][_0xe689dd]['id']===_0x5bfcc7['id']&&(_0x147834[_0x59437b('0x2630')][_0xe689dd]['canSelect']=![],_0x50d4d3[_0x59437b('0x13e3')](_0x147834[_0x59437b('0x2630')][_0xe689dd]));}_0x147834['interval']=_0x50d4d3;}else{if(!_0x35281c[_0x59437b('0x1c0a')])return _0x11cb06[_0x59437b('0x1050')][_0x59437b('0x1335')]({'sectionId':_0x35281c['id']})[_0x59437b('0x1714')]['then'](function(_0x3db1ba){const _0x212dbb=_0x59437b,_0x506d5f=_0x283545()[_0x212dbb('0x155d')](_0x3db1ba[_0x212dbb('0x25df')],function(_0x32d7c6){const _0x3eb711=_0x212dbb;return _0x283545()[_0x3eb711('0x20e8')](_0x147834['interval'],{'id':_0x32d7c6[_0x3eb711('0x2707')]});});let _0x191e95=null;_0x147834[_0x212dbb('0x169c')]&&(_0x191e95=_0x283545()[_0x212dbb('0x20e8')](_0x147834[_0x212dbb('0x2630')],{'id':Number(_0x147834['chatWebsite'][_0x212dbb('0x20d0')])}));if(_0x191e95&&!_0x283545()[_0x212dbb('0xc5d')](_0x506d5f,['id',_0x191e95['id']])){const _0x16da2a=_0x283545()['find'](_0x147834[_0x212dbb('0x2630')],{'id':_0x191e95['id']});_0x16da2a[_0x212dbb('0x3bf')]=![],_0x506d5f[_0x212dbb('0x13e3')](_0x16da2a);}_0x147834[_0x212dbb('0x2630')]=_0x506d5f;});}})[_0x14e727('0x1cb5')](function(_0x2e089f){const _0x2b4486=_0x14e727;_0xe27359[_0x2b4486('0x5e8')]({'title':_0x2e089f[_0x2b4486('0x1b51')]?_0x2b4486('0x15d1')+_0x2e089f[_0x2b4486('0x1b51')]+_0x2b4486('0x1b0b')+_0x2e089f[_0x2b4486('0x22ce')]:_0x2b4486('0x9b6'),'msg':_0x2e089f[_0x2b4486('0x11fc')]?JSON['stringify'](_0x2e089f[_0x2b4486('0x11fc')]):_0x2e089f[_0x2b4486('0x17df')]()});});function _0x298378(){const _0x1cf78a=_0x14e727;_0x147834['errors']=[],_0x11cb06['chatWebsite']['save'](_0x147834[_0x1cf78a('0x169c')])[_0x1cf78a('0x1714')][_0x1cf78a('0x2788')](function(_0x3e1652){const _0x3eeb22=_0x1cf78a;_0x147834[_0x3eeb22('0x6de')][_0x3eeb22('0xc51')](_0x3e1652[_0x3eeb22('0x1cbf')]()),_0xe27359['success']({'title':_0x3eeb22('0x1b2d'),'msg':_0x147834[_0x3eeb22('0x169c')]['name']?_0x147834['chatWebsite'][_0x3eeb22('0x1a8d')]+_0x3eeb22('0x1e4a'):''}),_0x353cb4(_0x3e1652);})['catch'](function(_0xbdb70c){const _0x207235=_0x1cf78a;if(_0xbdb70c[_0x207235('0x11fc')]&&_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')]&&_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')][_0x207235('0x2566')]){_0x147834[_0x207235('0x25be')]=_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')]||[{'message':_0xbdb70c[_0x207235('0x17df')](),'type':'api.chatWebsite.save'}];for(let _0x2de08f=0x0;_0x2de08f<_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')][_0x207235('0x2566')];_0x2de08f+=0x1){_0xe27359['error']({'title':_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')][_0x2de08f][_0x207235('0x1d7')],'msg':_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x25be')][_0x2de08f][_0x207235('0x15e2')]});}}else _0xe27359[_0x207235('0x5e8')]({'title':_0xbdb70c[_0x207235('0x1b51')]?_0x207235('0x15d1')+_0xbdb70c['status']+'\x20-\x20'+_0xbdb70c[_0x207235('0x22ce')]:_0x207235('0x1087'),'msg':_0xbdb70c[_0x207235('0x11fc')]?JSON[_0x207235('0x1be0')](_0xbdb70c[_0x207235('0x11fc')][_0x207235('0x15e2')]):_0xbdb70c[_0x207235('0x17df')]()});});}function _0x3a1fa2(){const _0x3f1bf7=_0x14e727;_0x147834['errors']=[],_0x11cb06[_0x3f1bf7('0x169c')][_0x3f1bf7('0x2740')]({'id':_0x147834[_0x3f1bf7('0x169c')]['id']},_0x147834['chatWebsite'])[_0x3f1bf7('0x1714')]['then'](function(_0xd7ba3b){const _0x2dac71=_0x3f1bf7,_0xcb8374=_0x283545()[_0x2dac71('0x20e8')](_0x147834[_0x2dac71('0x6de')],{'id':_0xd7ba3b['id']});_0xcb8374&&_0x283545()[_0x2dac71('0x2503')](_0xcb8374,_0x283545()['pick'](_0xd7ba3b['toJSON'](),_0x283545()['keys'](_0xcb8374))),_0xe27359['success']({'title':_0x2dac71('0x12fd'),'msg':_0x147834[_0x2dac71('0x169c')][_0x2dac71('0x1a8d')]?_0x147834['chatWebsite'][_0x2dac71('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x353cb4(_0xd7ba3b);})['catch'](function(_0x131662){const _0xf2655a=_0x3f1bf7;if(_0x131662[_0xf2655a('0x11fc')]&&_0x131662[_0xf2655a('0x11fc')]['errors']&&_0x131662[_0xf2655a('0x11fc')][_0xf2655a('0x25be')]['length']){_0x147834[_0xf2655a('0x25be')]=_0x131662[_0xf2655a('0x11fc')][_0xf2655a('0x25be')]||[{'message':_0x131662[_0xf2655a('0x17df')](),'type':_0xf2655a('0x1ff7')}];for(let _0x1337b2=0x0;_0x1337b2<_0x131662[_0xf2655a('0x11fc')][_0xf2655a('0x25be')]['length'];_0x1337b2++){_0xe27359[_0xf2655a('0x5e8')]({'title':_0x131662[_0xf2655a('0x11fc')][_0xf2655a('0x25be')][_0x1337b2]['type'],'msg':_0x131662[_0xf2655a('0x11fc')][_0xf2655a('0x25be')][_0x1337b2][_0xf2655a('0x15e2')]});}}else _0xe27359['error']({'title':_0x131662[_0xf2655a('0x1b51')]?_0xf2655a('0x15d1')+_0x131662[_0xf2655a('0x1b51')]+_0xf2655a('0x1b0b')+_0x131662[_0xf2655a('0x22ce')]:_0xf2655a('0x1ff7'),'msg':_0x131662['data']?JSON[_0xf2655a('0x1be0')](_0x131662['data']['message']):_0x131662['toString']()});});}function _0x46d099(_0x4e5c89){const _0x5f5235=_0x14e727;_0x147834[_0x5f5235('0x25be')]=[];const _0x2a08f9=_0x3e90ee[_0x5f5235('0x112e')]()[_0x5f5235('0x14e4')]('Are\x20you\x20sure?')[_0x5f5235('0x1c98')]('The\x20chatWebsite\x20will\x20be\x20deleted.')[_0x5f5235('0x10bc')](_0x5f5235('0x6f9'))['ok'](_0x5f5235('0x2786'))['cancel'](_0x5f5235('0x1481'))[_0x5f5235('0x24d0')](_0x4e5c89);_0x3e90ee['show'](_0x2a08f9)[_0x5f5235('0x2788')](function(){const _0x13db91=_0x5f5235;_0x11cb06['chatWebsite']['delete']({'id':_0x147834[_0x13db91('0x169c')]['id']})['$promise'][_0x13db91('0x2788')](function(){const _0x33c1c6=_0x13db91;_0x283545()[_0x33c1c6('0x1a90')](_0x147834[_0x33c1c6('0x6de')],{'id':_0x147834['chatWebsite']['id']}),_0xe27359[_0x33c1c6('0x173b')]({'title':_0x33c1c6('0xd6a'),'msg':(_0x147834['chatWebsite'][_0x33c1c6('0x1a8d')]||_0x33c1c6('0x169c'))+'\x20has\x20been\x20deleted!'}),_0x353cb4(_0x147834[_0x33c1c6('0x169c')]);})[_0x13db91('0x1cb5')](function(_0x166d77){const _0x330f3a=_0x13db91;if(_0x166d77['data']&&_0x166d77[_0x330f3a('0x11fc')][_0x330f3a('0x25be')]&&_0x166d77[_0x330f3a('0x11fc')][_0x330f3a('0x25be')]['length']){_0x147834[_0x330f3a('0x25be')]=_0x166d77[_0x330f3a('0x11fc')][_0x330f3a('0x25be')]||[{'message':_0x166d77[_0x330f3a('0x17df')](),'type':_0x330f3a('0x1ead')}];for(let _0x409276=0x0;_0x409276<_0x166d77[_0x330f3a('0x11fc')][_0x330f3a('0x25be')][_0x330f3a('0x2566')];_0x409276++){_0xe27359[_0x330f3a('0x5e8')]({'title':_0x166d77[_0x330f3a('0x11fc')]['errors'][_0x409276]['type'],'msg':_0x166d77[_0x330f3a('0x11fc')]['errors'][_0x409276][_0x330f3a('0x15e2')]});}}else _0xe27359['error']({'title':_0x166d77[_0x330f3a('0x1b51')]?_0x330f3a('0x15d1')+_0x166d77[_0x330f3a('0x1b51')]+_0x330f3a('0x1b0b')+_0x166d77[_0x330f3a('0x22ce')]:_0x330f3a('0x1ead'),'msg':_0x166d77[_0x330f3a('0x11fc')]?JSON[_0x330f3a('0x1be0')](_0x166d77[_0x330f3a('0x11fc')][_0x330f3a('0x15e2')]):_0x166d77[_0x330f3a('0x15e2')]||_0x166d77[_0x330f3a('0x17df')]()});});},function(){});}function _0x7fe33a(_0x3f9145){return _0x3f9145===null?undefined:new Date(_0x3f9145);}function _0x353cb4(_0x4b15af){const _0x4eccb9=_0x14e727;_0x3e90ee[_0x4eccb9('0x19d')](_0x4b15af);}}const _0x5f507d=_0x2e0219,_0x2e7320=_0x18dd13['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html',_0x2edb56=_0x18dd13['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html',_0x537d0e=_0x18dd13['p']+_0x34e79e('0x283d'),_0x41aa40=_0x18dd13['p']+_0x34e79e('0x11e2'),_0x821448=_0x18dd13['p']+_0x34e79e('0x49a'),_0x13531f=_0x18dd13['p']+_0x34e79e('0x923'),_0xeb36f4=_0x18dd13['p']+_0x34e79e('0x224d'),_0x3ce433=_0x18dd13['p']+_0x34e79e('0x888'),_0x389562=_0x18dd13['p']+_0x34e79e('0x21d4'),_0x20f031=_0x18dd13['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html',_0x9ef8e6=_0x18dd13['p']+_0x34e79e('0x16e1'),_0x36790d=_0x18dd13['p']+_0x34e79e('0x113');_0x46230b[_0x34e79e('0x2d9')]=['api',_0x34e79e('0x123b'),'$document','toasty',_0x34e79e('0x1b04')];const _0x1a8b13={'agent':_0x2e7320,'amazonlex':_0x2edb56,'autoreply':_0x537d0e,'close':_0x41aa40,'dialogflow':_0x821448,'gotoif':_0x13531f,'gotop':_0xeb36f4,'interval':_0x3ce433,'noop':_0x389562,'queue':_0x20f031,'system':_0x9ef8e6,'tag':_0x36790d};function _0x46230b(_0x1f8018,_0x52e63a,_0x501e04,_0x18436e,_0x51ec58){const _0x5d3626=_0x34e79e,_0x29c81a=this;_0x29c81a[_0x5d3626('0x9cb')]=_0x51ec58[_0x5d3626('0x24cc')](),_0x29c81a[_0x5d3626('0x169c')]={},_0x29c81a[_0x5d3626('0xf4f')]={'count':0x0,'rows':[]},_0x29c81a['selectedChatWebsiteApps']=[],_0x29c81a['crudPermissions'],_0x29c81a['query']={'sort':_0x5d3626('0x155b')},_0x29c81a['apps']=_0x283545()[_0x5d3626('0x9')](_0x283545()[_0x5d3626('0x8ce')]([{'app':_0x5d3626('0x27dd'),'appType':_0x5d3626('0x2630'),'types':['always',_0x5d3626('0x1d56'),'list'],'fields':[],'isApp':![]},{'app':_0x5d3626('0x18dd'),'appType':_0x5d3626('0x18dd'),'type':_0x5d3626('0x18dd'),'icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x5d3626('0x49'),'type':_0x5d3626('0x16db'),'param':0x0}]},{'app':_0x5d3626('0xe81'),'appType':_0x5d3626('0xe81'),'type':_0x5d3626('0xe81'),'icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x5d3626('0xf76'),'field':{'name':_0x5d3626('0xa72'),'key':_0x5d3626('0x1a8d')},'route':_0x5d3626('0xa72'),'filters':{'fields':_0x5d3626('0x1338'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5d3626('0x1677'),'name':_0x5d3626('0x28d'),'type':_0x5d3626('0x16db'),'required':!![],'param':0x0},{'title':_0x5d3626('0x158c'),'name':_0x5d3626('0xa72'),'type':'apiselect','values':'variables','value':_0x5d3626('0x59b'),'option':_0x5d3626('0x59b'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5d3626('0x1598'),'appType':_0x5d3626('0x1598'),'type':_0x5d3626('0x1500'),'icon':'icon-apps','interval':_0x5d3626('0x2191'),'isApp':!![],'fields':[{'title':_0x5d3626('0x14ef'),'name':_0x5d3626('0x155b'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x5d3626('0x1e01'),'type':'gotoif','icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'isApp':!![],'fields':[{'title':_0x5d3626('0x1388'),'name':_0x5d3626('0xf2b'),'type':_0x5d3626('0x16db'),'required':!![],'param':0x0},{'title':_0x5d3626('0x86a'),'name':_0x5d3626('0x86a'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x5d3626('0x1474'),'name':_0x5d3626('0x1474'),'type':_0x5d3626('0x272c'),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x5d3626('0x1ab4'),'foreignKey':'ChatQueueId','type':_0x5d3626('0x1ab4'),'icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'isApp':!![],'extraApi':[{'name':_0x5d3626('0x283e'),'field':{'name':_0x5d3626('0x1ab4'),'key':'name'},'route':_0x5d3626('0x12a8'),'filters':{'fields':_0x5d3626('0xafa'),'sort':'name','nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':'Queue','name':_0x5d3626('0x1ab4'),'type':_0x5d3626('0x2519'),'values':_0x5d3626('0x283e'),'value':_0x5d3626('0x158'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5d3626('0xa7e'),'name':_0x5d3626('0x24e4'),'type':_0x5d3626('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x5d3626('0x188b'),'appType':_0x5d3626('0x188b'),'type':'agent','foreignKey':'UserId','icon':_0x5d3626('0x21ff'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5d3626('0x1713'),'field':{'name':_0x5d3626('0x188b'),'key':_0x5d3626('0x1a8d')},'route':_0x5d3626('0x1e6a'),'filters':{'fields':'id,name','role':_0x5d3626('0x188b'),'sort':_0x5d3626('0x1a8d'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x5d3626('0x262d'),'name':_0x5d3626('0x188b'),'type':_0x5d3626('0x2519'),'values':'agents','value':_0x5d3626('0x156f'),'option':_0x5d3626('0x156f'),'required':!![],'param':0x0},{'title':_0x5d3626('0xa7e'),'name':_0x5d3626('0x24e4'),'type':_0x5d3626('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'close','appType':'close','type':_0x5d3626('0x69f'),'icon':'icon-apps','interval':_0x5d3626('0x2191'),'isApp':!![],'fields':[{'title':'Disposition','name':_0x5d3626('0x1db2'),'type':'text','required':!![],'param':0x0}]},{'app':_0x5d3626('0x808'),'appType':'autoreply','type':_0x5d3626('0x808'),'icon':'icon-apps','interval':_0x5d3626('0x2191'),'isApp':!![],'fields':[{'title':_0x5d3626('0x5fd'),'name':_0x5d3626('0x5fd'),'type':_0x5d3626('0x983'),'defaultValue':'1','values':[{'option':_0x5d3626('0xa18'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x5d3626('0xc39'),'name':'text','type':_0x5d3626('0x1215'),'required':!![],'param':0x1}]},{'app':_0x5d3626('0x1764'),'appType':_0x5d3626('0x1764'),'type':_0x5d3626('0x1764'),'foreignKey':'TagId','icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'isApp':!![],'extraApi':[{'name':_0x5d3626('0xe45'),'field':{'name':_0x5d3626('0x1764'),'key':_0x5d3626('0x1a8d')},'route':'tag','filters':{'fields':'id,name','sort':_0x5d3626('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5d3626('0x251d'),'name':_0x5d3626('0x1764'),'type':_0x5d3626('0x2519'),'values':_0x5d3626('0xe45'),'value':'tag.name','option':_0x5d3626('0x282c'),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x5d3626('0x5e1'),'type':_0x5d3626('0x5e1'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5d3626('0x127f'),'name':_0x5d3626('0x234b'),'type':_0x5d3626('0x16db'),'required':!![],'param':0x0},{'title':_0x5d3626('0x175b'),'name':_0x5d3626('0x175b'),'type':_0x5d3626('0x983'),'defaultValue':_0x5d3626('0xeca'),'values':[{'option':_0x5d3626('0x42b'),'value':_0x5d3626('0x1570')},{'option':_0x5d3626('0x866'),'value':_0x5d3626('0xeca')},{'option':_0x5d3626('0x1072'),'value':_0x5d3626('0x217a')},{'option':'Italian','value':_0x5d3626('0x26d0')},{'option':_0x5d3626('0x2488'),'value':_0x5d3626('0x1893')},{'option':_0x5d3626('0xfd2'),'value':'\x27fr\x27'},{'option':'Indonesian','value':'\x27id\x27'},{'option':_0x5d3626('0x270a'),'value':_0x5d3626('0x29')},{'option':_0x5d3626('0x166c'),'value':_0x5d3626('0x1a6a')},{'option':_0x5d3626('0x805'),'value':'\x27nl\x27'},{'option':_0x5d3626('0xa7a'),'value':_0x5d3626('0x2363')},{'option':_0x5d3626('0x168e'),'value':_0x5d3626('0x1cb0')},{'option':_0x5d3626('0x27ae'),'value':_0x5d3626('0x7a3')},{'option':_0x5d3626('0x1319'),'value':_0x5d3626('0x6cb')},{'option':_0x5d3626('0xbaf'),'value':_0x5d3626('0x1561')},{'option':_0x5d3626('0x97b'),'value':_0x5d3626('0x10d9')},{'option':'Ukrainian','value':_0x5d3626('0x1961')},{'option':_0x5d3626('0x1a89'),'value':'\x27zh-CN\x27'},{'option':_0x5d3626('0x13e6'),'value':_0x5d3626('0x553')},{'option':'Chinese\x20(Traditional)','value':_0x5d3626('0x464')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':'welcomemessage','type':'textarea','maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x5d3626('0x137a'),'appType':'amazonlex','type':_0x5d3626('0x137a'),'icon':_0x5d3626('0x21ff'),'interval':_0x5d3626('0x2191'),'isApp':!![],'fields':[{'title':_0x5d3626('0x27f2'),'name':'accesskeyid','type':_0x5d3626('0x16db'),'required':!![],'param':0x0},{'title':'secretaccesskey','name':'secretaccesskey','type':_0x5d3626('0x16db'),'required':!![],'param':0x1},{'title':_0x5d3626('0xb70'),'name':_0x5d3626('0xb70'),'type':'select','defaultValue':'\x27us-east-1\x27','values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':'\x27us-east-1\x27'},{'option':_0x5d3626('0x7cf'),'value':'\x27us-west-2\x27'},{'option':'EU\x20(Ireland)','value':_0x5d3626('0x150a')},{'option':_0x5d3626('0x1172'),'value':_0x5d3626('0xbb6')}],'required':!![],'param':0x2},{'title':_0x5d3626('0x4eb'),'name':_0x5d3626('0x4eb'),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x5d3626('0x8a5')]),{'isApp':![]}),_0x29c81a[_0x5d3626('0x4b2')]={'group':{'name':'opt1','pull':_0x5d3626('0x1b8')},'animation':0x64,'sort':![]},_0x29c81a['applications']={'group':{'name':_0x5d3626('0x2268'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x3c4928){const _0x1fd3a8=_0x5d3626;_0x5e65a7(_0x3c4928,_0x3c4928[_0x1fd3a8('0x7da')]);},'onSort':function(){_0x150288();}},_0x29c81a[_0x5d3626('0x24eb')]=_0x4b47f6,_0x29c81a[_0x5d3626('0x16a')]=_0x81afe1,_0x29c81a[_0x5d3626('0x24f8')]=_0x588751,_0x29c81a[_0x5d3626('0x2641')]=_0x5e65a7,_0x29c81a[_0x5d3626('0x10ce')]=_0x5a5a09,_0x29c81a[_0x5d3626('0xff8')]=_0x4906a0,_0x29c81a[_0x5d3626('0x2652')]=_0x3c63bd,_0x29c81a[_0x5d3626('0xa9c')]=_0x150288,_0x29c81a['getIntervals']=_0x112f04;function _0x4b47f6(_0x225d3e,_0x165bfe){const _0xadb823=_0x5d3626;_0x29c81a['chatWebsite']=_0x225d3e,_0x29c81a['crudPermissions']=typeof _0x165bfe!==_0xadb823('0xedb')?_0x165bfe:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x29c81a['applications'][_0xadb823('0x1112')]=!_0x29c81a[_0xadb823('0xe28')][_0xadb823('0x21b7')]?!![]:![],_0x29c81a['query']['id']=_0x225d3e['id'],_0x29c81a[_0xadb823('0x135a')][_0xadb823('0x436')]=!![],_0x29c81a[_0xadb823('0x135a')][_0xadb823('0xd18')]=!![],_0x29c81a[_0xadb823('0x24f8')](),_0x29c81a[_0xadb823('0x1963')]();}function _0x81afe1(_0x2d0d54,_0x183019,_0x2e3c04){const _0x22d434=_0x5d3626,_0x2cd771=_0x52e63a[_0x22d434('0x112e')]()[_0x22d434('0x14e4')](_0x22d434('0xbe7'))[_0x22d434('0x93e')](_0x22d434('0x1670')+_0x2d0d54[_0x22d434('0x8a5')]+_0x22d434('0x229e')+_0x22d434('0x27c7'))['ariaLabel'](_0x22d434('0xdd6'))['targetEvent'](_0x2e3c04)['ok']('OK')[_0x22d434('0x1801')]('CANCEL');_0x52e63a[_0x22d434('0x2fa')](_0x2cd771)[_0x22d434('0x2788')](function(){const _0x5e2b0e=_0x22d434;_0x29c81a[_0x5e2b0e('0xf4f')][_0x5e2b0e('0x25df')][_0x5e2b0e('0x722')](_0x183019,0x1),_0x150288();},function(){const _0x38f199=_0x22d434;console['log'](_0x38f199('0x1d8d'));});}function _0x5e65a7(_0x150abd,_0x237874){const _0x5aec38=_0x5d3626;if(_0x29c81a[_0x5aec38('0xf4f')]['rows'][_0x5aec38('0x2566')]){const _0x88821c=_0x29c81a[_0x5aec38('0xf4f')][_0x5aec38('0x25df')][_0x237874]?_0x29c81a[_0x5aec38('0xf4f')][_0x5aec38('0x25df')][_0x237874]:_0x29c81a[_0x5aec38('0xf4f')][_0x5aec38('0x25df')][0x0],_0x428a0f=(_0x88821c[_0x5aec38('0x167b')]||_0x88821c[_0x5aec38('0x8a5')])[_0x5aec38('0xc2e')]();_0x52e63a['show']({'controller':'EditChatWebsiteApp'+_0x428a0f+_0x5aec38('0x100d'),'controllerAs':'vm','templateUrl':_0x1a8b13[_0x428a0f],'parent':angular[_0x5aec38('0x16b1')](_0x501e04['body']),'targetEvent':_0x150abd,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x88821c,'chatWebsite':_0x29c81a[_0x5aec38('0x169c')],'crudPermissions':_0x29c81a['crudPermissions']}})['then'](function(_0x5c881d){const _0x182f15=_0x5aec38;_0x5c881d&&(_0x5c881d['id']?_0x29c81a['chatWebsiteApps'][_0x182f15('0x25df')][_0x237874]=_0x5c881d:_0x29c81a['chatWebsiteApps'][_0x182f15('0x25df')][_0x182f15('0x722')](_0x237874,0x0,_0x5c881d),_0x150288());})[_0x5aec38('0x1cb5')](function(_0x4e0e64){const _0x20c8ad=_0x5aec38;_0x4e0e64&&_0x18436e[_0x20c8ad('0x5e8')]({'title':_0x4e0e64[_0x20c8ad('0x1b51')]?_0x20c8ad('0x15d1')+_0x4e0e64[_0x20c8ad('0x1b51')]+_0x20c8ad('0x1b0b')+_0x4e0e64[_0x20c8ad('0x22ce')]:_0x20c8ad('0x239b'),'msg':_0x4e0e64[_0x20c8ad('0x11fc')]?JSON[_0x20c8ad('0x1be0')](_0x4e0e64[_0x20c8ad('0x11fc')]):_0x4e0e64[_0x20c8ad('0x17df')]()});});}}function _0x5a5a09(_0x3673dd,_0x4a33fd){const _0x13407b=_0x5d3626;if(_0x29c81a[_0x13407b('0xf4f')]['rows'][_0x13407b('0x2566')]){const _0x56a45e=_0x29c81a[_0x13407b('0xf4f')][_0x13407b('0x25df')][_0x4a33fd]?_0x29c81a[_0x13407b('0xf4f')][_0x13407b('0x25df')][_0x4a33fd]:_0x29c81a['chatWebsiteApps'][_0x13407b('0x25df')][0x0];_0x52e63a[_0x13407b('0x2fa')]({'controller':_0x13407b('0x1a3a'),'controllerAs':'vm','templateUrl':_0x3ce433,'parent':angular[_0x13407b('0x16b1')](_0x501e04[_0x13407b('0x945')]),'targetEvent':_0x3673dd,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x56a45e[_0x13407b('0x2630')],'IntervalId':_0x56a45e[_0x13407b('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x29c81a[_0x13407b('0xe28')]}})[_0x13407b('0x2788')](function(_0x4db5c4){const _0x2042ab=_0x13407b;_0x4db5c4&&(_0x56a45e[_0x2042ab('0x2630')]=_0x4db5c4['interval']||_0x2042ab('0x2191'),_0x56a45e[_0x2042ab('0x20d0')]=_0x4db5c4[_0x2042ab('0x20d0')]||null,_0x150288());});}}function _0x150288(){const _0x2f1b34=_0x5d3626;let _0x4fc964=0x1,_0x48b258=[];for(let _0x540e59=0x0;_0x540e59<_0x29c81a['chatWebsiteApps'][_0x2f1b34('0x25df')][_0x2f1b34('0x2566')];_0x540e59++){const _0x2213d1=_0x29c81a[_0x2f1b34('0xf4f')][_0x2f1b34('0x25df')][_0x540e59],_0x194a73=[],_0x3e745d=[];_0x2213d1[_0x2f1b34('0xec5')]=_0x2213d1[_0x2f1b34('0x2630')]!=='*,*,*,*'?[_0x2213d1['interval']]:_0x2213d1['IntervalId']?_0x283545()[_0x2f1b34('0x155d')](_0x283545()[_0x2f1b34('0x916')](_0x29c81a[_0x2f1b34('0xec5')][_0x2f1b34('0x25df')],{'IntervalId':_0x2213d1[_0x2f1b34('0x20d0')]}),_0x2f1b34('0x2630')):[],_0x2213d1[_0x2f1b34('0x1f3b')]=_0x29c81a['chatWebsite'][_0x2f1b34('0x1f3b')],_0x2213d1[_0x2f1b34('0x1d6f')]=_0x29c81a['chatWebsite'][_0x2f1b34('0x1d6f')],_0x2213d1['type']&&(_0x2213d1['type']=_0x2213d1[_0x2f1b34('0x1d7')][_0x2f1b34('0xc2e')]()),_0x2213d1['priority']=_0x194a73[_0x2f1b34('0x2566')]?_0x283545()[_0x2f1b34('0x1d39')](_0x194a73)[_0x2f1b34('0x155b')]+0x1:_0x4fc964,_0x4fc964=(_0x3e745d[_0x2f1b34('0x2566')]?_0x283545()[_0x2f1b34('0x1d39')](_0x3e745d)['priority']:_0x2213d1[_0x2f1b34('0x155b')])+0x1,_0x48b258=_0x283545()[_0x2f1b34('0x1282')](_0x48b258,_0x194a73,[_0x2213d1],_0x3e745d);}_0x1f8018[_0x2f1b34('0x169c')][_0x2f1b34('0x109')]({'id':_0x29c81a[_0x2f1b34('0x169c')]['id']},_0x283545()[_0x2f1b34('0x8ce')](_0x48b258,_0x2f1b34('0x155b')))[_0x2f1b34('0x1714')][_0x2f1b34('0x2788')](function(_0x2c3945){const _0x7c755b=_0x2f1b34;_0x29c81a[_0x7c755b('0xf4f')][_0x7c755b('0x25df')]=_0x2c3945['rows'];})['catch'](function(_0x5b1e35){console['error'](_0x5b1e35);});}function _0x237831(_0x28c707){const _0x28a182=_0x5d3626;_0x29c81a[_0x28a182('0xf4f')]=_0x28c707||{'count':0x0,'rows':[]};}function _0x112f04(){const _0xc48697=_0x5d3626;return _0x1f8018[_0xc48697('0x2630')][_0xc48697('0x1335')]({'fields':_0xc48697('0x12c6')})[_0xc48697('0x1714')]['then'](function(_0x115c89){const _0x23969b=_0xc48697;_0x29c81a[_0x23969b('0xec5')]=_0x115c89;})[_0xc48697('0x1cb5')](function(_0x3dbc96){console['error'](_0x3dbc96);});}function _0x588751(){const _0x395e7e=_0x5d3626;_0x29c81a['promise']=_0x1f8018['chatWebsite'][_0x395e7e('0x26b0')](_0x29c81a[_0x395e7e('0x135a')],_0x237831)[_0x395e7e('0x1714')];}function _0x4906a0(_0x4356fe){const _0x4d233c=_0x5d3626;_0x283545()[_0x4d233c('0x1a90')](_0x29c81a[_0x4d233c('0xf4f')][_0x4d233c('0x25df')],{'id':_0x4356fe['id']}),_0x150288(),_0x18436e[_0x4d233c('0x173b')]({'title':_0x4d233c('0x170b'),'msg':_0x4356fe[_0x4d233c('0x8a5')]?_0x4356fe[_0x4d233c('0x8a5')]+_0x4d233c('0x14d4'):''});}function _0x3c63bd(_0x1f770a){const _0x275027=_0x5d3626,_0xce48be=_0x52e63a['confirm']()[_0x275027('0x14e4')](_0x275027('0x191c'))[_0x275027('0x93e')](''+_0x29c81a[_0x275027('0x6d6')][_0x275027('0x2566')]+_0x275027('0xbd')+_0x275027('0x27c7'))['ariaLabel'](_0x275027('0x1db'))['targetEvent'](_0x1f770a)['ok']('OK')[_0x275027('0x1801')](_0x275027('0x1d8d'));_0x52e63a[_0x275027('0x2fa')](_0xce48be)[_0x275027('0x2788')](function(){const _0x2733ee=_0x275027;_0x29c81a[_0x2733ee('0x6d6')][_0x2733ee('0x1534')](function(_0x42250c){const _0x7483ef=_0x2733ee;_0x283545()[_0x7483ef('0x1a90')](_0x29c81a['chatWebsiteApps']['rows'],{'id':_0x42250c['id']});}),_0x29c81a[_0x2733ee('0x6d6')]=[],_0x150288();});}}const _0x1cb63a=_0x46230b;_0x1c8e71[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api','chatWebsite','chatWebsites',_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1c8e71(_0x20f1e8,_0x214bc5,_0x3026d4,_0x3d7588,_0xff484d,_0x4a72e1,_0xab4bbb,_0x17ecde,_0x3c387b,_0x11c70b){const _0x179274=_0x34e79e,_0x38e282=this;_0x38e282['currentUser']=_0x3c387b[_0x179274('0x24cc')](),_0x38e282[_0x179274('0x169c')]=_0xff484d,_0x38e282[_0x179274('0xe28')]=_0x11c70b,_0x38e282['realtime']=_0xab4bbb,_0x38e282['items']=[],_0x38e282['allowedItems']=[],_0x38e282[_0x179274('0x283f')]=[],_0x38e282[_0x179274('0x12d9')]=[],_0x38e282[_0x179274('0xd0d')]=[],_0x38e282[_0x179274('0x2677')]=![],_0x38e282[_0x179274('0x122e')]=_0x292ef1,_0x38e282[_0x179274('0x1f8d')]=_0x52f3fa,_0x38e282[_0x179274('0xca7')]=_0x5d09a4,_0x38e282['dualMultiselectOptions']={'readOnly':!_0x38e282['crudPermissions'][_0x179274('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x179274('0x1a8d'),'line1':_0x179274('0x2831'),'line2':[_0x179274('0x1a8d'),_0x179274('0x2838')],'line3':'','labelAll':_0x17ecde[_0x179274('0x1b11')]('CHAT.ALL_AGENTS'),'labelSelected':_0x17ecde[_0x179274('0x1b11')](_0x179274('0x24a')),'transferCallback':function(){const _0x4fc684=_0x179274,_0x172154=_0x283545()[_0x4fc684('0x12d1')](_0x38e282[_0x4fc684('0xd0d')],_0x38e282[_0x4fc684('0x283f')],'id');_0x38e282['pendingChanges']=_0x283545()['isEmpty'](_0x172154)?![]:!![];}};function _0x292ef1(){const _0x2835f0=_0x179274;return _0x3c387b[_0x2835f0('0x1516')](_0x2835f0('0xe23'))?_0x41ac03()[_0x2835f0('0x1cb5')](function(_0x8aa0a2){const _0x47ab8d=_0x2835f0;_0x3026d4['error']({'title':_0x8aa0a2[_0x47ab8d('0x1b51')]?'API:'+_0x8aa0a2[_0x47ab8d('0x1b51')]+_0x47ab8d('0x1b0b')+_0x8aa0a2[_0x47ab8d('0x22ce')]:_0x47ab8d('0xd90'),'msg':_0x8aa0a2[_0x47ab8d('0x1b51')]?JSON[_0x47ab8d('0x1be0')](_0x8aa0a2[_0x47ab8d('0x11fc')]):_0x8aa0a2[_0x47ab8d('0x17df')]()});}):_0x9b3619()[_0x2835f0('0x2788')](function(_0xdfe827){return _0x38e282['section']=_0xdfe827,_0x41ac03();})[_0x2835f0('0x1cb5')](function(_0x24fb46){const _0x3f2622=_0x2835f0;_0x3026d4['error']({'title':_0x24fb46['status']?_0x3f2622('0x15d1')+_0x24fb46[_0x3f2622('0x1b51')]+_0x3f2622('0x1b0b')+_0x24fb46[_0x3f2622('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x24fb46[_0x3f2622('0x1b51')]?JSON[_0x3f2622('0x1be0')](_0x24fb46[_0x3f2622('0x11fc')]):_0x24fb46[_0x3f2622('0x17df')]()});});}function _0x9b3619(){return _0x214bc5(function(_0x5d7ee4,_0x228089){const _0x45529a=a0_0x14e7;_0x3d7588['userProfileSection']['get']({'userProfileId':_0x38e282['currentUser'][_0x45529a('0x237f')],'name':_0x45529a('0x1f72')})['$promise'][_0x45529a('0x2788')](function(_0x140b5b){const _0x1db71e=_0x45529a,_0x23e93c=_0x140b5b&&_0x140b5b[_0x1db71e('0x25df')]?_0x140b5b[_0x1db71e('0x25df')][0x0]:null;_0x5d7ee4(_0x23e93c);})[_0x45529a('0x1cb5')](function(_0x10c53c){_0x228089(_0x10c53c);});});}function _0x41ac03(){return _0x214bc5(function(_0x4ff6d6,_0x2c3f57){const _0x1a0fee=a0_0x14e7;return _0x2caf70()[_0x1a0fee('0x2788')](function(_0x1715ee){const _0x4bfee8=_0x1a0fee;return _0x38e282['items']=_0x1715ee[_0x4bfee8('0x25df')]?_0x1715ee[_0x4bfee8('0x25df')]:[],_0x3c387b[_0x4bfee8('0x1516')](_0x4bfee8('0xe23'))?_0x1715ee:_0x38e282[_0x4bfee8('0xb13')]?_0x38e282[_0x4bfee8('0xb13')][_0x4bfee8('0x1c0a')]?_0x1715ee:_0x596fe4():null;})[_0x1a0fee('0x2788')](function(_0x5b5273){const _0x19a116=_0x1a0fee,_0x379501=_0x5b5273&&_0x5b5273[_0x19a116('0x25df')]?_0x5b5273['rows']:[];return _0x38e282[_0x19a116('0x73d')]=_0x283545()[_0x19a116('0x155d')](_0x379501,function(_0xddba22){const _0x5c65a1=_0x19a116;return _0x283545()['find'](_0x38e282['items'],{'id':_0x3c387b[_0x5c65a1('0x1516')](_0x5c65a1('0xe23'))||_0x38e282['section'][_0x5c65a1('0x1c0a')]?_0xddba22['id']:_0xddba22[_0x5c65a1('0x2707')]});}),_0x38e282[_0x19a116('0x12d9')]=angular[_0x19a116('0x2669')](_0x38e282['allowedItems']),_0x38e282[_0x19a116('0x117b')]['forEach'](function(_0x50ed12){const _0x59481c=_0x19a116,_0x124a25=_0x283545()['find'](_0x38e282[_0x59481c('0x73d')],{'id':_0x50ed12['id']});_0x3c387b['hasRole']('admin')?_0x50ed12['isValid']=!![]:_0x50ed12[_0x59481c('0x68d')]=typeof _0x124a25!=='undefined'?!![]:![];}),_0x207348();})[_0x1a0fee('0x2788')](function(_0x148991){const _0x77d8f5=_0x1a0fee,_0x2656bc=_0x148991&&_0x148991[_0x77d8f5('0x25df')]?_0x148991['rows']:[];_0x38e282[_0x77d8f5('0x283f')]=_0x283545()[_0x77d8f5('0x155d')](_0x2656bc,function(_0x3ceda6){const _0x5d7d4a=_0x77d8f5,_0x173276=_0x283545()[_0x5d7d4a('0x20e8')](_0x38e282[_0x5d7d4a('0x117b')],{'id':_0x3ceda6['id']});return _0x173276[_0x5d7d4a('0x1ab')]=_0x3ceda6['UserChatWebsite']?'penalty\x20'+_0x3ceda6[_0x5d7d4a('0x1320')][_0x5d7d4a('0x1ab')]:'',_0x173276['internal']=typeof _0x3ceda6[_0x5d7d4a('0x2838')]!=='undefined'?'<'+_0x3ceda6['internal']+'>':'',_0x173276;}),_0x38e282[_0x77d8f5('0xd0d')]=angular['copy'](_0x38e282[_0x77d8f5('0x283f')]),_0x38e282[_0x77d8f5('0x121')][_0x77d8f5('0x283f')]=_0x38e282[_0x77d8f5('0x283f')],_0x38e282['dualMultiselectOptions'][_0x77d8f5('0x117b')]=_0x283545()['differenceBy'](_0x38e282[_0x77d8f5('0x73d')],_0x38e282[_0x77d8f5('0x121')][_0x77d8f5('0x283f')],'id'),_0x4ff6d6();})[_0x1a0fee('0x1cb5')](function(_0x485a23){_0x2c3f57(_0x485a23);});});}function _0x596fe4(){return _0x214bc5(function(_0x373343,_0x14246e){const _0x20858d=a0_0x14e7;return _0x3d7588[_0x20858d('0x1050')]['get']({'sectionId':_0x38e282['section']['id'],'nolimit':!![]})['$promise'][_0x20858d('0x2788')](function(_0x593e3f){_0x373343(_0x593e3f);})[_0x20858d('0x1cb5')](function(_0x116789){_0x14246e(_0x116789);});});}function _0x207348(){return _0x214bc5(function(_0x5c8e95,_0x1e86a6){const _0x783145=a0_0x14e7;return _0x3d7588[_0x783145('0x169c')][_0x783145('0x19db')]({'id':_0x38e282['chatWebsite']['id'],'fields':_0x783145('0x1d32'),'nolimit':!![],'role':_0x783145('0x188b')})['$promise']['then'](function(_0x4064c4){_0x5c8e95(_0x4064c4);})['catch'](function(_0x11dc16){_0x1e86a6(_0x11dc16);});});}function _0x2caf70(){return _0x214bc5(function(_0x290e41,_0x12e3ac){const _0x5889d3=a0_0x14e7;return _0x3d7588['user'][_0x5889d3('0x1335')]({'fields':_0x5889d3('0x1d32'),'nolimit':!![],'role':'agent'})[_0x5889d3('0x1714')][_0x5889d3('0x2788')](function(_0x2239c4){_0x290e41(_0x2239c4);})[_0x5889d3('0x1cb5')](function(_0x529fb8){_0x12e3ac(_0x529fb8);});});}function _0x3c7d02(_0x2a28a7){return _0x214bc5(function(_0x4f392e,_0x20e97d){const _0x5281df=a0_0x14e7;_0x283545()[_0x5281df('0x213d')](_0x2a28a7)?_0x4f392e():_0x3d7588['chatWebsite'][_0x5281df('0x588')]({'id':_0x38e282[_0x5281df('0x169c')]['id'],'ids':_0x283545()[_0x5281df('0x155d')](_0x2a28a7,'id')})[_0x5281df('0x1714')][_0x5281df('0x2788')](function(){_0x4f392e();})[_0x5281df('0x1cb5')](function(_0x35fe0c){_0x20e97d(_0x35fe0c);});});}function _0xf53818(_0x5b0508){return _0x214bc5(function(_0x11825d,_0x500f33){const _0x2b1888=a0_0x14e7;_0x283545()[_0x2b1888('0x213d')](_0x5b0508)?_0x11825d():_0x3d7588[_0x2b1888('0x169c')]['removeAgents']({'id':_0x38e282[_0x2b1888('0x169c')]['id'],'ids':_0x283545()['map'](_0x5b0508,'id')})['$promise']['then'](function(){_0x11825d();})[_0x2b1888('0x1cb5')](function(_0x3d1172){_0x500f33(_0x3d1172);});});}function _0x52f3fa(){const _0xb3a152=_0x179274,_0xc9937e=_0x283545()[_0xb3a152('0x432')](_0x38e282[_0xb3a152('0xd0d')],_0x38e282[_0xb3a152('0x283f')],'id'),_0x23ba98=_0x283545()[_0xb3a152('0x432')](_0x38e282[_0xb3a152('0x283f')],_0x38e282['startingSelectedItems'],'id');return _0xf53818(_0xc9937e)['then'](function(){return _0x3c7d02(_0x23ba98);})[_0xb3a152('0x2788')](function(){const _0x20a6e7=_0xb3a152;_0x38e282[_0x20a6e7('0x2677')]=![],_0x38e282['startingAllowedItems']=angular['copy'](_0x38e282[_0x20a6e7('0x73d')]),_0x38e282[_0x20a6e7('0xd0d')]=angular['copy'](_0x38e282['selectedItems']),_0x3026d4[_0x20a6e7('0x173b')]({'title':_0x20a6e7('0x10c8'),'msg':_0x20a6e7('0x1984')});})[_0xb3a152('0x1cb5')](function(_0x4a279b){const _0x201a6c=_0xb3a152;_0x3026d4[_0x201a6c('0x5e8')]({'title':_0x4a279b[_0x201a6c('0x1b51')]?_0x201a6c('0x15d1')+_0x4a279b[_0x201a6c('0x1b51')]+_0x201a6c('0x1b0b')+_0x4a279b[_0x201a6c('0x22ce')]:_0x201a6c('0x13cd'),'msg':_0x4a279b['status']?JSON[_0x201a6c('0x1be0')](_0x4a279b[_0x201a6c('0x11fc')]):_0x4a279b['toString']()});});}function _0x5d09a4(){const _0x50f4d7=_0x179274;_0x20f1e8[_0x50f4d7('0x19d')]();}}const _0x4bf71b=_0x1c8e71;_0x103407[_0x34e79e('0x2d9')]=['$cookies','toasty'];function _0x103407(_0x513ef4,_0x452f9f){const _0xa7888d=_0x34e79e,_0x50d7c7=this,_0x5a9f23=0x8,_0x1a22a4=_0x5a9f23*0x400*0x400;_0x50d7c7[_0xa7888d('0x169c')]={},_0x50d7c7[_0xa7888d('0xe28')],_0x50d7c7[_0xa7888d('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1a22a4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x50d7c7['ngFlow']={'flow':{}},_0x50d7c7[_0xa7888d('0x189a')]=![],_0x50d7c7[_0xa7888d('0x1573')]=_0x3cd3c5,_0x50d7c7[_0xa7888d('0x1b63')]=_0x172267,_0x50d7c7[_0xa7888d('0xc41')]=_0x6f5a37,_0x50d7c7['init']=_0x3f20c6;function _0x3f20c6(_0x52a8f0,_0x53d07a){const _0x269525=_0xa7888d;_0x50d7c7['chatWebsite']=angular['copy'](_0x52a8f0),_0x50d7c7[_0x269525('0xe28')]=typeof _0x53d07a!==_0x269525('0xedb')?_0x53d07a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x50d7c7[_0x269525('0x1fce')][_0x269525('0x159c')]='/api/chat/websites/:id/avatar'[_0x269525('0x10a4')](_0x269525('0x1d1e'),_0x50d7c7[_0x269525('0x169c')]['id']),_0x50d7c7['chatWebsite'][_0x269525('0x17d5')]=[];}function _0x3cd3c5(_0xadd8b9){const _0x47f0ed=_0xa7888d,_0x47ce9c=[_0x47f0ed('0x170a'),'jpg'];if(!_0x283545()['includes'](_0x47ce9c,_0xadd8b9[_0x47f0ed('0xa31')]()))return _0x452f9f[_0x47f0ed('0x5e8')]({'title':_0x47f0ed('0x425')+_0xadd8b9[_0x47f0ed('0xa31')](),'msg':_0x47f0ed('0x250c')+_0x47ce9c[_0x47f0ed('0x185f')]()}),![];if(_0xadd8b9[_0x47f0ed('0x634')]>_0x1a22a4)return _0x452f9f[_0x47f0ed('0x5e8')]({'title':'File\x20too\x20big','msg':_0x47f0ed('0x232c')+_0x5a9f23+'MB'}),![];const _0x3518e6={'id':_0xadd8b9[_0x47f0ed('0x7c8')],'file':_0xadd8b9,'type':'uploading'};return _0x50d7c7[_0x47f0ed('0x169c')][_0x47f0ed('0x17d5')]['unshift'](_0x3518e6),!![];}function _0x172267(){const _0x1552d8=_0xa7888d;_0x50d7c7['ngFlow'][_0x1552d8('0x8a4')][_0x1552d8('0xcc6')][_0x1552d8('0x186d')]={'X-Requested-With':_0x1552d8('0xa34'),'Authorization':_0x1552d8('0xf2f')+_0x513ef4[_0x1552d8('0x1335')](_0x1552d8('0x2eb'))},_0x50d7c7['ngFlow'][_0x1552d8('0x8a4')]['upload']();}function _0x6f5a37(_0x2ab5c5){const _0x568b43=_0xa7888d;angular['forEach'](_0x50d7c7['chatWebsite'][_0x568b43('0x17d5')],function(_0x5b5307){const _0x342301=_0x568b43;if(_0x5b5307['id']===_0x2ab5c5[_0x342301('0x7c8')]){const _0x21b12e=new FileReader();_0x21b12e[_0x342301('0x1ccc')](_0x5b5307['file']['file']),_0x21b12e[_0x342301('0x2468')]=function(_0x4a40b7){const _0x408a32=_0x342301;_0x5b5307[_0x408a32('0x1672')]=_0x4a40b7['target'][_0x408a32('0xdb9')];},_0x5b5307[_0x342301('0x1d7')]=_0x342301('0x157f');}});}}const _0x388c13=_0x103407;_0x56f8f3['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0xb9d'),_0x34e79e('0x169c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x56f8f3(_0x1b0afd,_0x22b274,_0x2e356d,_0x181cba,_0x4eae34,_0x317c82,_0xa22367,_0x15d56c){const _0x3fc489=_0x34e79e,_0xbd96ed=this;_0xbd96ed[_0x3fc489('0x9cb')]=_0xa22367['getCurrentUser'](),_0xbd96ed[_0x3fc489('0x25be')]=[],_0xbd96ed['title']=_0x3fc489('0x1281')+(_0x181cba[_0x3fc489('0x167b')]||_0x181cba[_0x3fc489('0x8a5')])['toUpperCase'](),_0xbd96ed[_0x3fc489('0x188b')]=angular[_0x3fc489('0x2669')](_0x181cba),_0xbd96ed[_0x3fc489('0xe28')]=_0x15d56c,_0xbd96ed[_0x3fc489('0x1193')]={};if(_0xbd96ed[_0x3fc489('0x188b')]['appdata'])switch(_0xbd96ed[_0x3fc489('0x188b')]['appType']?_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x167b')][_0x3fc489('0xc2e')]():_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x8a5')][_0x3fc489('0xc2e')]()){case _0x3fc489('0x1d56'):break;case'dialogflow':{const _0x2c0695=_0xbd96ed['agent'][_0x3fc489('0xd6b')]['split'](',');_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x234b')]=_0x2c0695[0x0],_0xbd96ed['agent'][_0x3fc489('0x175b')]=_0x2c0695[0x1],_0xbd96ed['agent'][_0x3fc489('0xf50')]=_0x2c0695[_0x3fc489('0x845')](0x2,_0x2c0695[_0x3fc489('0x2566')])[_0x3fc489('0x185f')](',');}break;case _0x3fc489('0x137a'):{const _0x2cf94f=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xd6b')]['split'](',');_0xbd96ed[_0x3fc489('0x188b')]['accesskeyid']=_0x2cf94f[0x0],_0xbd96ed[_0x3fc489('0x188b')]['secretaccesskey']=_0x2cf94f[0x1],_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xb70')]=_0x2cf94f[0x2],_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x4eb')]=_0x2cf94f[0x3],_0xbd96ed[_0x3fc489('0x188b')]['welcomemessage']=_0x2cf94f[_0x3fc489('0x845')](0x4,_0x2cf94f['length'])['join'](',');}break;case _0x3fc489('0x808'):{const _0x39f00a=_0xbd96ed[_0x3fc489('0x188b')]['appdata'][_0x3fc489('0x1497')](',');_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x5fd')]=isNaN(_0x39f00a[0x0])?_0x39f00a[0x0]:parseInt(_0x39f00a[0x0],0xa),_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x16db')]=_0x39f00a[_0x3fc489('0x845')](0x1,_0x39f00a[_0x3fc489('0x2566')])['join'](',');}break;case _0x3fc489('0x15e2'):_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x16db')]=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xd6b')];break;case _0x3fc489('0x3a6'):_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x1a8d')]=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xd6b')][_0x3fc489('0x1497')]('=')[0x0],_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x49')]=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xd6b')][_0x3fc489('0x1497')]('=')[0x1];break;case _0x3fc489('0x2631'):_0xbd96ed[_0x3fc489('0x188b')]['project']=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0xd6b')];break;default:{const _0x32df6c=_0xbd96ed['agent'][_0x3fc489('0xd6b')][_0x3fc489('0x1497')](',');_0xbd96ed[_0x3fc489('0x188b')]['agent']=_0x283545()[_0x3fc489('0x213d')](_0x32df6c[0x0])?_0x32df6c[0x0]:isNaN(_0x32df6c[0x0])?_0x32df6c[0x0]:parseInt(_0x32df6c[0x0],0xa),_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x24e4')]=_0x283545()['isEmpty'](_0x32df6c[0x1])?_0x32df6c[0x1]:isNaN(_0x32df6c[0x1])?_0x32df6c[0x1]:parseInt(_0x32df6c[0x1],0xa);}break;}else _0xbd96ed['agent']['timeout']=0x1e;_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x1d7')]&&_0xbd96ed[_0x3fc489('0x188b')]['type'][_0x3fc489('0xc2e')]()==='outbound'&&_0xbd96ed[_0x3fc489('0x188b')]['appType'][_0x3fc489('0xc2e')]()===_0x3fc489('0x229c')&&(_0xbd96ed[_0x3fc489('0x188b')]['prefix']=_0xbd96ed[_0x3fc489('0x188b')]['phone']?_0xbd96ed[_0x3fc489('0x188b')]['phone'][_0x3fc489('0x1497')]('$')[0x0]:undefined,_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x2081')]=_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x8de')]?_0x3fc489('0x1834')+_0xbd96ed[_0x3fc489('0x188b')][_0x3fc489('0x8de')]:undefined);_0xbd96ed['saveChatWebsiteApp']=_0x511afc,_0xbd96ed[_0x3fc489('0xca7')]=_0x10344a,_0xa22367[_0x3fc489('0x1516')](_0x3fc489('0xe23'))?_0x317c82[_0x3fc489('0x1e6a')][_0x3fc489('0x1335')]({'fields':_0x3fc489('0x1338'),'role':_0x3fc489('0x188b'),'sort':_0x3fc489('0x1a8d'),'nolimit':_0x3fc489('0x1001')})['$promise'][_0x3fc489('0x2788')](function(_0x50f7ca){const _0x17dc6e=_0x3fc489;_0xbd96ed[_0x17dc6e('0x1713')]=_0x50f7ca[_0x17dc6e('0x25df')]||[];})[_0x3fc489('0x1cb5')](function(_0x4b6daf){const _0x17c2f1=_0x3fc489;_0x2e356d[_0x17c2f1('0x5e8')]({'title':_0x4b6daf[_0x17c2f1('0x1b51')]?_0x17c2f1('0x15d1')+_0x4b6daf[_0x17c2f1('0x1b51')]+'\x20-\x20'+_0x4b6daf[_0x17c2f1('0x22ce')]:_0x17c2f1('0xd90'),'msg':_0x4b6daf[_0x17c2f1('0x11fc')]?JSON[_0x17c2f1('0x1be0')](_0x4b6daf[_0x17c2f1('0x11fc')]):_0x4b6daf[_0x17c2f1('0x17df')]()});}):_0x317c82[_0x3fc489('0x1e6a')][_0x3fc489('0x1335')]({'fields':'id,name','role':_0x3fc489('0x188b'),'sort':'name','nolimit':_0x3fc489('0x1001')})['$promise']['then'](function(_0x464165){const _0x7f75f6=_0x3fc489;_0xbd96ed[_0x7f75f6('0x1713')]=_0x464165[_0x7f75f6('0x25df')]||[];})[_0x3fc489('0x2788')](function(){const _0x551b12=_0x3fc489;return _0x317c82[_0x551b12('0xec9')][_0x551b12('0x1335')]({'userProfileId':_0xbd96ed[_0x551b12('0x9cb')][_0x551b12('0x237f')],'sectionId':0xca})['$promise'];})[_0x3fc489('0x2788')](function(_0x14f467){const _0x16cb10=_0x3fc489,_0x2b4e1d=_0x14f467&&_0x14f467[_0x16cb10('0x25df')]?_0x14f467[_0x16cb10('0x25df')][0x0]:null;if(!_0x2b4e1d){const _0x75995=[];let _0x3f1fc2=null;_0xbd96ed[_0x16cb10('0x188b')]&&(_0x3f1fc2=_0x283545()[_0x16cb10('0x20e8')](_0xbd96ed[_0x16cb10('0x1713')],{'name':_0xbd96ed[_0x16cb10('0x188b')][_0x16cb10('0x188b')]}));for(let _0x1026a7=0x0;_0x1026a7<_0xbd96ed[_0x16cb10('0x1713')]['length'];_0x1026a7++){_0x3f1fc2&&_0xbd96ed[_0x16cb10('0x1713')][_0x1026a7]['id']===_0x3f1fc2['id']&&(_0xbd96ed[_0x16cb10('0x1713')][_0x1026a7][_0x16cb10('0x3bf')]=![],_0x75995['push'](_0xbd96ed[_0x16cb10('0x1713')][_0x1026a7]));}_0xbd96ed[_0x16cb10('0x1713')]=_0x75995;}else{if(!_0x2b4e1d[_0x16cb10('0x1c0a')])return _0x317c82['userProfileResource']['get']({'sectionId':_0x2b4e1d['id']})[_0x16cb10('0x1714')]['then'](function(_0x22e154){const _0x3627df=_0x16cb10,_0x427bc3=_0x283545()[_0x3627df('0x155d')](_0x22e154[_0x3627df('0x25df')],function(_0x235148){const _0x4c6a81=_0x3627df;return _0x283545()[_0x4c6a81('0x20e8')](_0xbd96ed[_0x4c6a81('0x1713')],{'id':_0x235148[_0x4c6a81('0x2707')]});});let _0xc2bc=null;_0xbd96ed[_0x3627df('0x188b')]&&(_0xc2bc=_0x283545()[_0x3627df('0x20e8')](_0xbd96ed[_0x3627df('0x1713')],{'name':_0xbd96ed[_0x3627df('0x188b')]['agent']}));if(_0xc2bc&&!_0x283545()['some'](_0x427bc3,['id',_0xc2bc['id']])){const _0x5c2432=_0x283545()[_0x3627df('0x20e8')](_0xbd96ed[_0x3627df('0x1713')],{'id':_0xc2bc['id']});_0x5c2432[_0x3627df('0x3bf')]=![],_0x427bc3[_0x3627df('0x13e3')](_0x5c2432);}_0xbd96ed[_0x3627df('0x1713')]=_0x427bc3;});}})[_0x3fc489('0x1cb5')](function(_0x2df5b1){const _0x5ad49b=_0x3fc489;_0x2e356d[_0x5ad49b('0x5e8')]({'title':_0x2df5b1[_0x5ad49b('0x1b51')]?'API:'+_0x2df5b1[_0x5ad49b('0x1b51')]+_0x5ad49b('0x1b0b')+_0x2df5b1[_0x5ad49b('0x22ce')]:_0x5ad49b('0x1246'),'msg':_0x2df5b1[_0x5ad49b('0x11fc')]?JSON['stringify'](_0x2df5b1[_0x5ad49b('0x11fc')]):_0x2df5b1['toString']()});});function _0x511afc(){const _0x266d8b=_0x3fc489;_0xbd96ed['errors']=[];const _0x3c2140=[];_0xbd96ed[_0x266d8b('0x188b')]['type']&&_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x1d7')][_0x266d8b('0xc2e')]()===_0x266d8b('0x1')&&_0xbd96ed['agent'][_0x266d8b('0x167b')]===_0x266d8b('0x25fb')&&(_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x1224')]=_0x4eae34[_0x266d8b('0x277c')]?(_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x1f71')]||'')+_0x266d8b('0x124d')+_0x4eae34['cutdigits']+'}':(_0xbd96ed['agent'][_0x266d8b('0x1f71')]||'')+_0x266d8b('0x1275'),_0x4eae34[_0x266d8b('0x801')]!==_0x266d8b('0x1dc')?_0xbd96ed[_0x266d8b('0x188b')]['options'][_0x266d8b('0x821')](_0x266d8b('0x1609'))<0x0&&(_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x784')]+=_0x266d8b('0x1609')):_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x784')]=_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x784')][_0x266d8b('0x10a4')](_0x266d8b('0x1609'),''));const _0x1b2de2=_0x283545()['find'](_0xbd96ed[_0x266d8b('0x1713')],{'name':_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x188b')]});_0x1b2de2&&(_0xbd96ed['agent']['UserId']=_0x1b2de2['id']);if(_0xbd96ed[_0x266d8b('0x188b')]['appType']&&_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x167b')]===_0x266d8b('0x1d56')){}else switch((_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x8a5')]||_0xbd96ed[_0x266d8b('0x188b')]['appType'])[_0x266d8b('0xc2e')]()){case _0x266d8b('0x3a6'):_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0xd6b')]=_0xbd96ed['agent'][_0x266d8b('0x1a8d')]+'='+_0xbd96ed['agent'][_0x266d8b('0x49')];break;case _0x266d8b('0x1d56'):break;default:_0x3c2140[0x0]=_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x188b')],_0x3c2140[0x1]=_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0x24e4')],_0xbd96ed[_0x266d8b('0x188b')][_0x266d8b('0xd6b')]=_0x3c2140['join'](',');}_0x10344a(_0xbd96ed[_0x266d8b('0x188b')]);}function _0x10344a(_0x1ec0d9){_0x1b0afd['hide'](_0x1ec0d9);}}const _0x19e17c=_0x56f8f3;_0x2279ba[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0xb9d'),_0x34e79e('0x169c'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x2279ba(_0x3d502c,_0xee583a,_0x31acb8,_0x374a51,_0x31d692,_0x2ed40d,_0x4b8fe8,_0x124e35){const _0x551f5d=_0x34e79e,_0xfddfa2=this;_0xfddfa2[_0x551f5d('0x9cb')]=_0x4b8fe8['getCurrentUser'](),_0xfddfa2[_0x551f5d('0x25be')]=[],_0xfddfa2[_0x551f5d('0x14e4')]=_0x551f5d('0x1281')+(_0x374a51['appType']||_0x374a51[_0x551f5d('0x8a5')])[_0x551f5d('0x25e6')](),_0xfddfa2[_0x551f5d('0x137a')]=angular[_0x551f5d('0x2669')](_0x374a51),_0xfddfa2['crudPermissions']=_0x124e35,_0xfddfa2[_0x551f5d('0x1193')]={};if(_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xd6b')])switch(_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x167b')]?_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x167b')]['toLowerCase']():_0xfddfa2[_0x551f5d('0x137a')]['app'][_0x551f5d('0xc2e')]()){case _0x551f5d('0x1d56'):break;case _0x551f5d('0x5e1'):{const _0x246faf=_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xd6b')]['split'](',');_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x234b')]=_0x246faf[0x0],_0xfddfa2[_0x551f5d('0x137a')]['language']=_0x246faf[0x1],_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xf50')]=_0x246faf[_0x551f5d('0x845')](0x2,_0x246faf['length'])[_0x551f5d('0x185f')](',');}break;case'amazonlex':{const _0x107870=_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xd6b')]['split'](',');_0xfddfa2['amazonlex']['accesskeyid']=_0x107870[0x0],_0xfddfa2['amazonlex'][_0x551f5d('0x1b58')]=_0x107870[0x1],_0xfddfa2['amazonlex'][_0x551f5d('0xb70')]=_0x107870[0x2],_0xfddfa2['amazonlex'][_0x551f5d('0x4eb')]=_0x107870[0x3],_0xfddfa2[_0x551f5d('0x137a')]['welcomemessage']=_0x107870[_0x551f5d('0x845')](0x4,_0x107870['length'])[_0x551f5d('0x185f')](',');}break;case _0x551f5d('0x808'):{const _0x42ff29=_0xfddfa2[_0x551f5d('0x137a')]['appdata']['split'](',');_0xfddfa2['amazonlex'][_0x551f5d('0x5fd')]=isNaN(_0x42ff29[0x0])?_0x42ff29[0x0]:parseInt(_0x42ff29[0x0],0xa),_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x16db')]=_0x42ff29[_0x551f5d('0x845')](0x1,_0x42ff29[_0x551f5d('0x2566')])[_0x551f5d('0x185f')](',');}break;case _0x551f5d('0x15e2'):_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x16db')]=_0xfddfa2[_0x551f5d('0x137a')]['appdata'];break;case'set':_0xfddfa2['amazonlex']['name']=_0xfddfa2['amazonlex'][_0x551f5d('0xd6b')]['split']('=')[0x0],_0xfddfa2['amazonlex'][_0x551f5d('0x49')]=_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xd6b')][_0x551f5d('0x1497')]('=')[0x1];break;case'agi':_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x1bf6')]=_0xfddfa2[_0x551f5d('0x137a')]['appdata'];break;default:{const _0xff937d=_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xd6b')]['split'](',');_0xfddfa2[_0x551f5d('0x137a')]['accesskeyid']=_0x283545()[_0x551f5d('0x213d')](_0xff937d[0x0])?_0xff937d[0x0]:isNaN(_0xff937d[0x0])?_0xff937d[0x0]:parseInt(_0xff937d[0x0],0xa),_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x1b58')]=_0x283545()['isEmpty'](_0xff937d[0x1])?_0xff937d[0x1]:isNaN(_0xff937d[0x1])?_0xff937d[0x1]:parseInt(_0xff937d[0x1],0xa),_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0xb70')]=_0x283545()[_0x551f5d('0x213d')](_0xff937d[0x2])?_0xff937d[0x2]:isNaN(_0xff937d[0x2])?_0xff937d[0x2]:parseInt(_0xff937d[0x2],0xa),_0xfddfa2['amazonlex']['botname']=_0x283545()[_0x551f5d('0x213d')](_0xff937d[0x3])?_0xff937d[0x3]:isNaN(_0xff937d[0x3])?_0xff937d[0x3]:parseInt(_0xff937d[0x3],0xa),_0xfddfa2['amazonlex'][_0x551f5d('0xf50')]=_0x283545()[_0x551f5d('0x213d')](_0xff937d[0x4])?_0xff937d[0x4]:isNaN(_0xff937d[0x4])?_0xff937d[0x4]:parseInt(_0xff937d[0x4],0xa);}break;}else _0xfddfa2[_0x551f5d('0x137a')]['lexregion']=_0x551f5d('0x1aa5');_0xfddfa2[_0x551f5d('0x137a')]['type']&&_0xfddfa2['amazonlex'][_0x551f5d('0x1d7')][_0x551f5d('0xc2e')]()===_0x551f5d('0x1')&&_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x167b')][_0x551f5d('0xc2e')]()==='outbounddial'&&(_0xfddfa2['amazonlex']['prefix']=_0xfddfa2['amazonlex'][_0x551f5d('0x1224')]?_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x1224')][_0x551f5d('0x1497')]('$')[0x0]:undefined,_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x2081')]=_0xfddfa2[_0x551f5d('0x137a')][_0x551f5d('0x8de')]?_0x551f5d('0x1834')+_0xfddfa2['amazonlex'][_0x551f5d('0x8de')]:undefined);_0xfddfa2[_0x551f5d('0x1be2')]=_0x1361e1,_0xfddfa2['closeDialog']=_0x33daa6;function _0x1361e1(){const _0xdcc81d=_0x551f5d;_0xfddfa2[_0xdcc81d('0x25be')]=[];const _0x3e1cb2=[];_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x1d7')]&&_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x1d7')][_0xdcc81d('0xc2e')]()===_0xdcc81d('0x1')&&_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x167b')]==='outboundDial'&&(_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x1224')]=_0x31d692['cutdigits']?(_0xfddfa2['amazonlex'][_0xdcc81d('0x1f71')]||'')+_0xdcc81d('0x124d')+_0x31d692[_0xdcc81d('0x277c')]+'}':(_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x1f71')]||'')+_0xdcc81d('0x1275'),_0x31d692[_0xdcc81d('0x801')]!=='none'?_0xfddfa2['amazonlex'][_0xdcc81d('0x784')][_0xdcc81d('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x784')]+=_0xdcc81d('0x1609')):_0xfddfa2['amazonlex'][_0xdcc81d('0x784')]=_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x784')]['replace']('U(xcally-mixmonitor-context)',''));if(_0xfddfa2[_0xdcc81d('0x137a')]['appType']&&_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x167b')]===_0xdcc81d('0x1d56')){}else switch((_0xfddfa2[_0xdcc81d('0x137a')]['app']||_0xfddfa2['amazonlex'][_0xdcc81d('0x167b')])[_0xdcc81d('0xc2e')]()){case _0xdcc81d('0x3a6'):_0xfddfa2['amazonlex'][_0xdcc81d('0xd6b')]=_0xfddfa2['amazonlex'][_0xdcc81d('0x1a8d')]+'='+_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0x49')];break;case _0xdcc81d('0x1d56'):break;default:_0x3e1cb2[0x0]=_0xfddfa2['amazonlex'][_0xdcc81d('0x27f2')],_0x3e1cb2[0x1]=_0xfddfa2['amazonlex'][_0xdcc81d('0x1b58')],_0x3e1cb2[0x2]=_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0xb70')],_0x3e1cb2[0x3]=_0xfddfa2[_0xdcc81d('0x137a')]['botname'],_0x3e1cb2[0x4]=_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0xf50')],_0xfddfa2[_0xdcc81d('0x137a')][_0xdcc81d('0xd6b')]=_0x3e1cb2['join'](',');}_0x33daa6(_0xfddfa2[_0xdcc81d('0x137a')]);}function _0x33daa6(_0x1390c1){_0x3d502c['hide'](_0x1390c1);}}const _0x5c4e66=_0x2279ba;_0x58c4bb[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'chatWebsiteApp','chatWebsite',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x58c4bb(_0x550c85,_0x5a393f,_0x21352e,_0x2dda07,_0x372279,_0x48bf29,_0x500e24,_0x7a23da){const _0x4349b6=_0x34e79e,_0x4a50b2=this;_0x4a50b2[_0x4349b6('0x9cb')]=_0x500e24[_0x4349b6('0x24cc')](),_0x4a50b2['errors']=[],_0x4a50b2['title']='CHAT.EDIT_'+(_0x2dda07['appType']||_0x2dda07[_0x4349b6('0x8a5')])['toUpperCase'](),_0x4a50b2[_0x4349b6('0x808')]=angular['copy'](_0x2dda07),_0x4a50b2[_0x4349b6('0xe28')]=_0x7a23da,_0x4a50b2[_0x4349b6('0x1193')]={};if(_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')])switch(_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x167b')]?_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x167b')][_0x4349b6('0xc2e')]():_0x4a50b2['autoreply'][_0x4349b6('0x8a5')][_0x4349b6('0xc2e')]()){case'custom':break;case _0x4349b6('0x5e1'):{const _0x47947b=_0x4a50b2[_0x4349b6('0x808')]['appdata'][_0x4349b6('0x1497')](',');_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x234b')]=_0x47947b[0x0],_0x4a50b2['autoreply'][_0x4349b6('0x175b')]=_0x47947b[0x1],_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xf50')]=_0x47947b[_0x4349b6('0x845')](0x2,_0x47947b[_0x4349b6('0x2566')])['join'](',');}break;case _0x4349b6('0x137a'):{const _0xc4a9f3=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')]['split'](',');_0x4a50b2[_0x4349b6('0x808')]['accesskeyid']=_0xc4a9f3[0x0],_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1b58')]=_0xc4a9f3[0x1],_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xb70')]=_0xc4a9f3[0x2],_0x4a50b2['autoreply'][_0x4349b6('0x4eb')]=_0xc4a9f3[0x3],_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xf50')]=_0xc4a9f3[_0x4349b6('0x845')](0x4,_0xc4a9f3['length'])[_0x4349b6('0x185f')](',');}break;case'autoreply':{const _0x2e4c82=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')][_0x4349b6('0x1497')](',');_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x5fd')]=isNaN(_0x2e4c82[0x0])?_0x2e4c82[0x0]:parseInt(_0x2e4c82[0x0],0xa),_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x16db')]=_0x2e4c82['slice'](0x1,_0x2e4c82['length'])['join'](',');}break;case _0x4349b6('0x15e2'):_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x16db')]=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')];break;case'set':_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1a8d')]=_0x4a50b2[_0x4349b6('0x808')]['appdata'][_0x4349b6('0x1497')]('=')[0x0],_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x49')]=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')]['split']('=')[0x1];break;case _0x4349b6('0x2631'):_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1bf6')]=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0xd6b')];break;default:{const _0x205635=_0x4a50b2['autoreply'][_0x4349b6('0xd6b')][_0x4349b6('0x1497')](',');_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x5fd')]=_0x283545()['isEmpty'](_0x205635[0x0])?_0x205635[0x0]:isNaN(_0x205635[0x0])?_0x205635[0x0]:parseInt(_0x205635[0x0],0xa),_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x16db')]=_0x283545()[_0x4349b6('0x213d')](_0x205635[0x1])?_0x205635[0x1]:isNaN(_0x205635[0x1])?_0x205635[0x1]:parseInt(_0x205635[0x1],0xa);}break;}else _0x4a50b2['autoreply']['times']=0x1;_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1d7')]&&_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1d7')][_0x4349b6('0xc2e')]()===_0x4349b6('0x1')&&_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x167b')][_0x4349b6('0xc2e')]()===_0x4349b6('0x229c')&&(_0x4a50b2['autoreply'][_0x4349b6('0x1f71')]=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1224')]?_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x1224')]['split']('$')[0x0]:undefined,_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x2081')]=_0x4a50b2[_0x4349b6('0x808')][_0x4349b6('0x8de')]?_0x4349b6('0x1834')+_0x4a50b2['autoreply'][_0x4349b6('0x8de')]:undefined);_0x4a50b2[_0x4349b6('0x1be2')]=_0x2016a9,_0x4a50b2['closeDialog']=_0x96f4bd;function _0x2016a9(){const _0x243540=_0x4349b6;_0x4a50b2[_0x243540('0x25be')]=[];const _0x3c612c=[];_0x4a50b2[_0x243540('0x808')][_0x243540('0x1d7')]&&_0x4a50b2[_0x243540('0x808')][_0x243540('0x1d7')][_0x243540('0xc2e')]()===_0x243540('0x1')&&_0x4a50b2[_0x243540('0x808')][_0x243540('0x167b')]==='outboundDial'&&(_0x4a50b2['autoreply'][_0x243540('0x1224')]=_0x372279[_0x243540('0x277c')]?(_0x4a50b2[_0x243540('0x808')][_0x243540('0x1f71')]||'')+_0x243540('0x124d')+_0x372279[_0x243540('0x277c')]+'}':(_0x4a50b2[_0x243540('0x808')]['prefix']||'')+_0x243540('0x1275'),_0x372279[_0x243540('0x801')]!==_0x243540('0x1dc')?_0x4a50b2[_0x243540('0x808')][_0x243540('0x784')][_0x243540('0x821')](_0x243540('0x1609'))<0x0&&(_0x4a50b2['autoreply'][_0x243540('0x784')]+=_0x243540('0x1609')):_0x4a50b2[_0x243540('0x808')][_0x243540('0x784')]=_0x4a50b2[_0x243540('0x808')][_0x243540('0x784')][_0x243540('0x10a4')](_0x243540('0x1609'),''));if(_0x4a50b2[_0x243540('0x808')][_0x243540('0x167b')]&&_0x4a50b2[_0x243540('0x808')][_0x243540('0x167b')]===_0x243540('0x1d56')){}else switch((_0x4a50b2[_0x243540('0x808')][_0x243540('0x8a5')]||_0x4a50b2[_0x243540('0x808')][_0x243540('0x167b')])['toLowerCase']()){case'set':_0x4a50b2[_0x243540('0x808')][_0x243540('0xd6b')]=_0x4a50b2['autoreply'][_0x243540('0x1a8d')]+'='+_0x4a50b2[_0x243540('0x808')][_0x243540('0x49')];break;case _0x243540('0x1d56'):break;default:_0x3c612c[0x0]=_0x4a50b2[_0x243540('0x808')]['times'],_0x3c612c[0x1]=_0x4a50b2[_0x243540('0x808')][_0x243540('0x16db')],_0x4a50b2[_0x243540('0x808')][_0x243540('0xd6b')]=_0x3c612c['join'](',');}_0x96f4bd(_0x4a50b2['autoreply']);}function _0x96f4bd(_0x32cbb1){const _0x4ce673=_0x4349b6;_0x550c85[_0x4ce673('0x19d')](_0x32cbb1);}}const _0x37c2e4=_0x58c4bb;_0x461e03[_0x34e79e('0x2d9')]=['$mdDialog','$q','toasty',_0x34e79e('0xb9d'),_0x34e79e('0x169c'),'api',_0x34e79e('0x1b04'),'crudPermissions'];function _0x461e03(_0x1e2d05,_0x3955f0,_0x1c788c,_0x5998de,_0x16fce4,_0x1bfa06,_0x2e1ba9,_0x4b5c16){const _0x516b68=_0x34e79e,_0x3855bb=this;_0x3855bb[_0x516b68('0x9cb')]=_0x2e1ba9[_0x516b68('0x24cc')](),_0x3855bb[_0x516b68('0x25be')]=[],_0x3855bb[_0x516b68('0x14e4')]=_0x516b68('0x1281')+(_0x5998de[_0x516b68('0x167b')]||_0x5998de['app'])[_0x516b68('0x25e6')](),_0x3855bb[_0x516b68('0x69f')]=angular[_0x516b68('0x2669')](_0x5998de),_0x3855bb['crudPermissions']=_0x4b5c16,_0x3855bb['hasModulePermissions']={};if(_0x3855bb[_0x516b68('0x69f')]['appdata'])switch(_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x167b')]?_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x167b')][_0x516b68('0xc2e')]():_0x3855bb[_0x516b68('0x69f')]['app']['toLowerCase']()){case'custom':break;case _0x516b68('0x5e1'):{const _0x47ed85=_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xd6b')][_0x516b68('0x1497')](',');_0x3855bb[_0x516b68('0x69f')]['key']=_0x47ed85[0x0],_0x3855bb['close'][_0x516b68('0x175b')]=_0x47ed85[0x1],_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xf50')]=_0x47ed85['slice'](0x2,_0x47ed85['length'])[_0x516b68('0x185f')](',');}break;case _0x516b68('0x137a'):{const _0xf41745=_0x3855bb['close'][_0x516b68('0xd6b')][_0x516b68('0x1497')](',');_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x27f2')]=_0xf41745[0x0],_0x3855bb['close']['secretaccesskey']=_0xf41745[0x1],_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xb70')]=_0xf41745[0x2],_0x3855bb['close'][_0x516b68('0x4eb')]=_0xf41745[0x3],_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xf50')]=_0xf41745[_0x516b68('0x845')](0x4,_0xf41745[_0x516b68('0x2566')])[_0x516b68('0x185f')](',');}break;case _0x516b68('0x808'):{const _0x1de6bf=_0x3855bb[_0x516b68('0x69f')]['appdata'][_0x516b68('0x1497')](',');_0x3855bb['close'][_0x516b68('0x5fd')]=isNaN(_0x1de6bf[0x0])?_0x1de6bf[0x0]:parseInt(_0x1de6bf[0x0],0xa),_0x3855bb['close'][_0x516b68('0x16db')]=_0x1de6bf[_0x516b68('0x845')](0x1,_0x1de6bf[_0x516b68('0x2566')])[_0x516b68('0x185f')](',');}break;case _0x516b68('0x15e2'):_0x3855bb['close'][_0x516b68('0x16db')]=_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xd6b')];break;case'set':_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1a8d')]=_0x3855bb['close'][_0x516b68('0xd6b')][_0x516b68('0x1497')]('=')[0x0],_0x3855bb[_0x516b68('0x69f')]['value']=_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xd6b')]['split']('=')[0x1];break;case'agi':_0x3855bb['close'][_0x516b68('0x1bf6')]=_0x3855bb['close'][_0x516b68('0xd6b')];break;default:{const _0x24cf63=_0x3855bb[_0x516b68('0x69f')][_0x516b68('0xd6b')][_0x516b68('0x1497')](',');_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1db2')]=_0x283545()[_0x516b68('0x213d')](_0x24cf63[0x0])?_0x24cf63[0x0]:isNaN(_0x24cf63[0x0])?_0x24cf63[0x0]:parseInt(_0x24cf63[0x0],0xa);}break;}else{}_0x3855bb['close'][_0x516b68('0x1d7')]&&_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1d7')][_0x516b68('0xc2e')]()===_0x516b68('0x1')&&_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x167b')][_0x516b68('0xc2e')]()===_0x516b68('0x229c')&&(_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1f71')]=_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1224')]?_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x1224')][_0x516b68('0x1497')]('$')[0x0]:undefined,_0x3855bb[_0x516b68('0x69f')]['callerId']=_0x3855bb['close']['callerID']?_0x516b68('0x1834')+_0x3855bb[_0x516b68('0x69f')][_0x516b68('0x8de')]:undefined);_0x3855bb[_0x516b68('0x1be2')]=_0x32c24b,_0x3855bb[_0x516b68('0xca7')]=_0x4cfe3d;function _0x32c24b(){const _0x263f33=_0x516b68;_0x3855bb['errors']=[];const _0x1c00c5=[];_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x1d7')]&&_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x1d7')][_0x263f33('0xc2e')]()==='outbound'&&_0x3855bb['close']['appType']==='outboundDial'&&(_0x3855bb[_0x263f33('0x69f')]['phone']=_0x16fce4[_0x263f33('0x277c')]?(_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x1f71')]||'')+_0x263f33('0x124d')+_0x16fce4[_0x263f33('0x277c')]+'}':(_0x3855bb['close']['prefix']||'')+_0x263f33('0x1275'),_0x16fce4[_0x263f33('0x801')]!==_0x263f33('0x1dc')?_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x784')][_0x263f33('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3855bb['close']['options']+=_0x263f33('0x1609')):_0x3855bb[_0x263f33('0x69f')]['options']=_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x784')][_0x263f33('0x10a4')](_0x263f33('0x1609'),''));if(_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x167b')]&&_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x167b')]===_0x263f33('0x1d56')){}else switch((_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x8a5')]||_0x3855bb[_0x263f33('0x69f')]['appType'])[_0x263f33('0xc2e')]()){case'set':_0x3855bb[_0x263f33('0x69f')][_0x263f33('0xd6b')]=_0x3855bb[_0x263f33('0x69f')][_0x263f33('0x1a8d')]+'='+_0x3855bb[_0x263f33('0x69f')]['value'];break;case'custom':break;default:_0x1c00c5[0x0]=_0x3855bb['close']['disposition'],_0x3855bb[_0x263f33('0x69f')]['appdata']=_0x1c00c5[_0x263f33('0x185f')](',');}_0x4cfe3d(_0x3855bb['close']);}function _0x4cfe3d(_0x3722a0){const _0x47fed8=_0x516b68;_0x1e2d05[_0x47fed8('0x19d')](_0x3722a0);}}const _0x382e72=_0x461e03;_0x226b42[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0xb9d'),_0x34e79e('0x169c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x226b42(_0x3b02d2,_0x1d2fdb,_0x244326,_0x5976b4,_0x14558e,_0x4cffd7,_0x241d38,_0x35a366){const _0x46f6e3=_0x34e79e,_0x52e982=this;_0x52e982[_0x46f6e3('0x9cb')]=_0x241d38['getCurrentUser'](),_0x52e982['errors']=[],_0x52e982[_0x46f6e3('0x14e4')]=_0x46f6e3('0x1281')+(_0x5976b4[_0x46f6e3('0x167b')]||_0x5976b4['app'])['toUpperCase'](),_0x52e982[_0x46f6e3('0x5e1')]=angular[_0x46f6e3('0x2669')](_0x5976b4),_0x52e982[_0x46f6e3('0xe28')]=_0x35a366,_0x52e982['hasModulePermissions']={};if(_0x52e982[_0x46f6e3('0x5e1')]['appdata'])switch(_0x52e982[_0x46f6e3('0x5e1')]['appType']?_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x167b')]['toLowerCase']():_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x8a5')]['toLowerCase']()){case'custom':break;case _0x46f6e3('0x5e1'):{const _0x38f80e=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xd6b')][_0x46f6e3('0x1497')](',');_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x234b')]=_0x38f80e[0x0],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x175b')]=_0x38f80e[0x1],_0x52e982['dialogflow'][_0x46f6e3('0xf50')]=_0x38f80e[_0x46f6e3('0x845')](0x2,_0x38f80e['length'])['join'](',');}break;case'amazonlex':{const _0x589ac9=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xd6b')][_0x46f6e3('0x1497')](',');_0x52e982['dialogflow'][_0x46f6e3('0x27f2')]=_0x589ac9[0x0],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1b58')]=_0x589ac9[0x1],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xb70')]=_0x589ac9[0x2],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x4eb')]=_0x589ac9[0x3],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xf50')]=_0x589ac9['slice'](0x4,_0x589ac9['length'])[_0x46f6e3('0x185f')](',');}break;case _0x46f6e3('0x808'):{const _0x13a402=_0x52e982[_0x46f6e3('0x5e1')]['appdata'][_0x46f6e3('0x1497')](',');_0x52e982['dialogflow'][_0x46f6e3('0x5fd')]=isNaN(_0x13a402[0x0])?_0x13a402[0x0]:parseInt(_0x13a402[0x0],0xa),_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x16db')]=_0x13a402[_0x46f6e3('0x845')](0x1,_0x13a402[_0x46f6e3('0x2566')])['join'](',');}break;case _0x46f6e3('0x15e2'):_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x16db')]=_0x52e982['dialogflow'][_0x46f6e3('0xd6b')];break;case _0x46f6e3('0x3a6'):_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1a8d')]=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xd6b')][_0x46f6e3('0x1497')]('=')[0x0],_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x49')]=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xd6b')]['split']('=')[0x1];break;case _0x46f6e3('0x2631'):_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1bf6')]=_0x52e982['dialogflow']['appdata'];break;default:{const _0x36bebb=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0xd6b')][_0x46f6e3('0x1497')](',');_0x52e982['dialogflow'][_0x46f6e3('0x234b')]=_0x283545()[_0x46f6e3('0x213d')](_0x36bebb[0x0])?_0x36bebb[0x0]:isNaN(_0x36bebb[0x0])?_0x36bebb[0x0]:parseInt(_0x36bebb[0x0],0xa),_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x175b')]=_0x283545()[_0x46f6e3('0x213d')](_0x36bebb[0x1])?_0x36bebb[0x1]:isNaN(_0x36bebb[0x1])?_0x36bebb[0x1]:parseInt(_0x36bebb[0x1],0xa),_0x52e982['dialogflow'][_0x46f6e3('0xf50')]=_0x283545()[_0x46f6e3('0x213d')](_0x36bebb[0x2])?_0x36bebb[0x2]:isNaN(_0x36bebb[0x2])?_0x36bebb[0x2]:parseInt(_0x36bebb[0x2],0xa);}break;}else _0x52e982[_0x46f6e3('0x5e1')]['language']='en';_0x52e982['dialogflow'][_0x46f6e3('0x1d7')]&&_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1d7')][_0x46f6e3('0xc2e')]()===_0x46f6e3('0x1')&&_0x52e982[_0x46f6e3('0x5e1')]['appType'][_0x46f6e3('0xc2e')]()==='outbounddial'&&(_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1f71')]=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x1224')]?_0x52e982[_0x46f6e3('0x5e1')]['phone'][_0x46f6e3('0x1497')]('$')[0x0]:undefined,_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x2081')]=_0x52e982[_0x46f6e3('0x5e1')][_0x46f6e3('0x8de')]?_0x46f6e3('0x1834')+_0x52e982['dialogflow'][_0x46f6e3('0x8de')]:undefined);_0x52e982[_0x46f6e3('0x1be2')]=_0x9d2d04,_0x52e982['closeDialog']=_0x404618;function _0x9d2d04(){const _0x45d18a=_0x46f6e3;_0x52e982['errors']=[];const _0x2a2070=[];_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x1d7')]&&_0x52e982['dialogflow'][_0x45d18a('0x1d7')][_0x45d18a('0xc2e')]()===_0x45d18a('0x1')&&_0x52e982['dialogflow'][_0x45d18a('0x167b')]===_0x45d18a('0x25fb')&&(_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x1224')]=_0x14558e[_0x45d18a('0x277c')]?(_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x1f71')]||'')+'${EXTEN:'+_0x14558e[_0x45d18a('0x277c')]+'}':(_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x1f71')]||'')+_0x45d18a('0x1275'),_0x14558e[_0x45d18a('0x801')]!=='none'?_0x52e982['dialogflow'][_0x45d18a('0x784')]['indexOf'](_0x45d18a('0x1609'))<0x0&&(_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x784')]+=_0x45d18a('0x1609')):_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x784')]=_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x784')]['replace'](_0x45d18a('0x1609'),''));if(_0x52e982['dialogflow']['appType']&&_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x167b')]===_0x45d18a('0x1d56')){}else switch((_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x8a5')]||_0x52e982['dialogflow'][_0x45d18a('0x167b')])['toLowerCase']()){case _0x45d18a('0x3a6'):_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0xd6b')]=_0x52e982['dialogflow'][_0x45d18a('0x1a8d')]+'='+_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0x49')];break;case'custom':break;default:_0x2a2070[0x0]=_0x52e982[_0x45d18a('0x5e1')]['key'],_0x2a2070[0x1]=_0x52e982['dialogflow'][_0x45d18a('0x175b')],_0x2a2070[0x2]=_0x52e982[_0x45d18a('0x5e1')]['welcomemessage'],_0x52e982[_0x45d18a('0x5e1')][_0x45d18a('0xd6b')]=_0x2a2070[_0x45d18a('0x185f')](',');}_0x404618(_0x52e982[_0x45d18a('0x5e1')]);}function _0x404618(_0xa4a3b){_0x3b02d2['hide'](_0xa4a3b);}}const _0x48a57b=_0x226b42;_0xff1551[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0xb9d'),_0x34e79e('0x169c'),'api','Auth',_0x34e79e('0xe28')];function _0xff1551(_0x32ecca,_0x305901,_0x225997,_0x312afa,_0xc454e2,_0x44b069,_0x48f1c2,_0x5096d9){const _0x282c94=_0x34e79e,_0x46494b=this;_0x46494b[_0x282c94('0x9cb')]=_0x48f1c2['getCurrentUser'](),_0x46494b[_0x282c94('0x25be')]=[],_0x46494b['title']='CHAT.EDIT_'+(_0x312afa[_0x282c94('0x167b')]||_0x312afa[_0x282c94('0x8a5')])[_0x282c94('0x25e6')](),_0x46494b[_0x282c94('0x1e01')]=angular[_0x282c94('0x2669')](_0x312afa),_0x46494b[_0x282c94('0xe28')]=_0x5096d9,_0x46494b['hasModulePermissions']={};if(_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xd6b')])switch(_0x46494b['gotoif'][_0x282c94('0x167b')]?_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x167b')][_0x282c94('0xc2e')]():_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x8a5')][_0x282c94('0xc2e')]()){case _0x282c94('0x1d56'):break;case _0x282c94('0x5e1'):{const _0x20106a=_0x46494b['gotoif']['appdata'][_0x282c94('0x1497')](',');_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x234b')]=_0x20106a[0x0],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x175b')]=_0x20106a[0x1],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xf50')]=_0x20106a['slice'](0x2,_0x20106a['length'])[_0x282c94('0x185f')](',');}break;case'amazonlex':{const _0x4b54fe=_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xd6b')][_0x282c94('0x1497')](',');_0x46494b['gotoif'][_0x282c94('0x27f2')]=_0x4b54fe[0x0],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1b58')]=_0x4b54fe[0x1],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xb70')]=_0x4b54fe[0x2],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x4eb')]=_0x4b54fe[0x3],_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xf50')]=_0x4b54fe[_0x282c94('0x845')](0x4,_0x4b54fe['length'])[_0x282c94('0x185f')](',');}break;case _0x282c94('0x808'):{const _0x469e07=_0x46494b['gotoif']['appdata'][_0x282c94('0x1497')](',');_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x5fd')]=isNaN(_0x469e07[0x0])?_0x469e07[0x0]:parseInt(_0x469e07[0x0],0xa),_0x46494b['gotoif'][_0x282c94('0x16db')]=_0x469e07[_0x282c94('0x845')](0x1,_0x469e07[_0x282c94('0x2566')])[_0x282c94('0x185f')](',');}break;case _0x282c94('0x15e2'):_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x16db')]=_0x46494b['gotoif']['appdata'];break;case _0x282c94('0x3a6'):_0x46494b[_0x282c94('0x1e01')]['name']=_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xd6b')][_0x282c94('0x1497')]('=')[0x0],_0x46494b[_0x282c94('0x1e01')]['value']=_0x46494b['gotoif'][_0x282c94('0xd6b')][_0x282c94('0x1497')]('=')[0x1];break;case _0x282c94('0x2631'):_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1bf6')]=_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xd6b')];break;default:{const _0x5d9730=_0x46494b[_0x282c94('0x1e01')]['appdata'][_0x282c94('0x1497')](',');_0x46494b[_0x282c94('0x1e01')][_0x282c94('0xf2b')]=_0x283545()[_0x282c94('0x213d')](_0x5d9730[0x0])?_0x5d9730[0x0]:isNaN(_0x5d9730[0x0])?_0x5d9730[0x0]:parseInt(_0x5d9730[0x0],0xa),_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x86a')]=_0x283545()[_0x282c94('0x213d')](_0x5d9730[0x1])?_0x5d9730[0x1]:isNaN(_0x5d9730[0x1])?_0x5d9730[0x1]:parseInt(_0x5d9730[0x1],0xa),_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1474')]=_0x283545()[_0x282c94('0x213d')](_0x5d9730[0x2])?_0x5d9730[0x2]:isNaN(_0x5d9730[0x2])?_0x5d9730[0x2]:parseInt(_0x5d9730[0x2],0xa);}break;}else{}_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1d7')]&&_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1d7')]['toLowerCase']()===_0x282c94('0x1')&&_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1f71')]=_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1224')]?_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x1224')][_0x282c94('0x1497')]('$')[0x0]:undefined,_0x46494b[_0x282c94('0x1e01')]['callerId']=_0x46494b['gotoif']['callerID']?_0x282c94('0x1834')+_0x46494b[_0x282c94('0x1e01')][_0x282c94('0x8de')]:undefined);_0x46494b[_0x282c94('0x1be2')]=_0x4c54c1,_0x46494b['closeDialog']=_0x9076c5;function _0x4c54c1(){const _0x31a817=_0x282c94;_0x46494b[_0x31a817('0x25be')]=[];const _0x3a2bdd=[];_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x1d7')]&&_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x1d7')][_0x31a817('0xc2e')]()==='outbound'&&_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x167b')]===_0x31a817('0x25fb')&&(_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x1224')]=_0xc454e2[_0x31a817('0x277c')]?(_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x1f71')]||'')+'${EXTEN:'+_0xc454e2[_0x31a817('0x277c')]+'}':(_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x1f71')]||'')+_0x31a817('0x1275'),_0xc454e2[_0x31a817('0x801')]!=='none'?_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x784')][_0x31a817('0x821')](_0x31a817('0x1609'))<0x0&&(_0x46494b['gotoif']['options']+=_0x31a817('0x1609')):_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x784')]=_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x784')]['replace'](_0x31a817('0x1609'),''));if(_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x167b')]&&_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x167b')]===_0x31a817('0x1d56')){}else switch((_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x8a5')]||_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x167b')])[_0x31a817('0xc2e')]()){case _0x31a817('0x3a6'):_0x46494b[_0x31a817('0x1e01')][_0x31a817('0xd6b')]=_0x46494b[_0x31a817('0x1e01')]['name']+'='+_0x46494b['gotoif']['value'];break;case _0x31a817('0x1d56'):break;default:_0x3a2bdd[0x0]=_0x46494b[_0x31a817('0x1e01')][_0x31a817('0xf2b')],_0x3a2bdd[0x1]=_0x46494b[_0x31a817('0x1e01')][_0x31a817('0x86a')],_0x3a2bdd[0x2]=_0x46494b[_0x31a817('0x1e01')]['falsepriority'],_0x46494b[_0x31a817('0x1e01')][_0x31a817('0xd6b')]=_0x3a2bdd[_0x31a817('0x185f')](',');}_0x9076c5(_0x46494b[_0x31a817('0x1e01')]);}function _0x9076c5(_0xe541ec){const _0x27b5a7=_0x282c94;_0x32ecca[_0x27b5a7('0x19d')](_0xe541ec);}}const _0x510acc=_0xff1551;_0x2dcf08[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'chatWebsiteApp',_0x34e79e('0x169c'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2dcf08(_0x18c16e,_0x505c1a,_0x2939af,_0x4aa0db,_0x345923,_0x33b4ff,_0x3c06e6,_0x44e682){const _0x3315b0=_0x34e79e,_0x50c35b=this;_0x50c35b[_0x3315b0('0x9cb')]=_0x3c06e6['getCurrentUser'](),_0x50c35b[_0x3315b0('0x25be')]=[],_0x50c35b['title']=_0x3315b0('0x1281')+(_0x4aa0db['appType']||_0x4aa0db[_0x3315b0('0x8a5')])[_0x3315b0('0x25e6')](),_0x50c35b[_0x3315b0('0x1598')]=angular['copy'](_0x4aa0db),_0x50c35b[_0x3315b0('0xe28')]=_0x44e682,_0x50c35b[_0x3315b0('0x1193')]={};if(_0x50c35b[_0x3315b0('0x1598')]['appdata'])switch(_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x167b')]?_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x167b')][_0x3315b0('0xc2e')]():_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x8a5')]['toLowerCase']()){case'custom':break;case _0x3315b0('0x5e1'):{const _0x5baf3d=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xd6b')][_0x3315b0('0x1497')](',');_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x234b')]=_0x5baf3d[0x0],_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x175b')]=_0x5baf3d[0x1],_0x50c35b[_0x3315b0('0x1598')]['welcomemessage']=_0x5baf3d[_0x3315b0('0x845')](0x2,_0x5baf3d[_0x3315b0('0x2566')])[_0x3315b0('0x185f')](',');}break;case _0x3315b0('0x137a'):{const _0x124d1f=_0x50c35b[_0x3315b0('0x1598')]['appdata'][_0x3315b0('0x1497')](',');_0x50c35b['gotop'][_0x3315b0('0x27f2')]=_0x124d1f[0x0],_0x50c35b[_0x3315b0('0x1598')]['secretaccesskey']=_0x124d1f[0x1],_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xb70')]=_0x124d1f[0x2],_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x4eb')]=_0x124d1f[0x3],_0x50c35b['gotop']['welcomemessage']=_0x124d1f[_0x3315b0('0x845')](0x4,_0x124d1f[_0x3315b0('0x2566')])[_0x3315b0('0x185f')](',');}break;case _0x3315b0('0x808'):{const _0x191a21=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xd6b')]['split'](',');_0x50c35b['gotop'][_0x3315b0('0x5fd')]=isNaN(_0x191a21[0x0])?_0x191a21[0x0]:parseInt(_0x191a21[0x0],0xa),_0x50c35b[_0x3315b0('0x1598')]['text']=_0x191a21[_0x3315b0('0x845')](0x1,_0x191a21[_0x3315b0('0x2566')])[_0x3315b0('0x185f')](',');}break;case _0x3315b0('0x15e2'):_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x16db')]=_0x50c35b['gotop'][_0x3315b0('0xd6b')];break;case'set':_0x50c35b[_0x3315b0('0x1598')]['name']=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xd6b')][_0x3315b0('0x1497')]('=')[0x0],_0x50c35b['gotop']['value']=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xd6b')][_0x3315b0('0x1497')]('=')[0x1];break;case _0x3315b0('0x2631'):_0x50c35b['gotop'][_0x3315b0('0x1bf6')]=_0x50c35b['gotop']['appdata'];break;default:{const _0x22eac7=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0xd6b')][_0x3315b0('0x1497')](',');_0x50c35b['gotop'][_0x3315b0('0x155b')]=_0x283545()[_0x3315b0('0x213d')](_0x22eac7[0x0])?_0x22eac7[0x0]:isNaN(_0x22eac7[0x0])?_0x22eac7[0x0]:parseInt(_0x22eac7[0x0],0xa);}break;}else{}_0x50c35b['gotop'][_0x3315b0('0x1d7')]&&_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x1d7')][_0x3315b0('0xc2e')]()===_0x3315b0('0x1')&&_0x50c35b['gotop'][_0x3315b0('0x167b')]['toLowerCase']()===_0x3315b0('0x229c')&&(_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x1f71')]=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x1224')]?_0x50c35b[_0x3315b0('0x1598')]['phone']['split']('$')[0x0]:undefined,_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x2081')]=_0x50c35b[_0x3315b0('0x1598')][_0x3315b0('0x8de')]?_0x3315b0('0x1834')+_0x50c35b['gotop'][_0x3315b0('0x8de')]:undefined);_0x50c35b[_0x3315b0('0x1be2')]=_0x46e45f,_0x50c35b[_0x3315b0('0xca7')]=_0x233586;function _0x46e45f(){const _0x3ebd05=_0x3315b0;_0x50c35b[_0x3ebd05('0x25be')]=[];const _0x33a493=[];_0x50c35b[_0x3ebd05('0x1598')]['type']&&_0x50c35b[_0x3ebd05('0x1598')]['type'][_0x3ebd05('0xc2e')]()===_0x3ebd05('0x1')&&_0x50c35b[_0x3ebd05('0x1598')]['appType']===_0x3ebd05('0x25fb')&&(_0x50c35b['gotop'][_0x3ebd05('0x1224')]=_0x345923[_0x3ebd05('0x277c')]?(_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x1f71')]||'')+_0x3ebd05('0x124d')+_0x345923[_0x3ebd05('0x277c')]+'}':(_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x1f71')]||'')+_0x3ebd05('0x1275'),_0x345923[_0x3ebd05('0x801')]!==_0x3ebd05('0x1dc')?_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x784')][_0x3ebd05('0x821')](_0x3ebd05('0x1609'))<0x0&&(_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x784')]+=_0x3ebd05('0x1609')):_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x784')]=_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x784')][_0x3ebd05('0x10a4')](_0x3ebd05('0x1609'),''));if(_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x167b')]&&_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x167b')]===_0x3ebd05('0x1d56')){}else switch((_0x50c35b[_0x3ebd05('0x1598')]['app']||_0x50c35b['gotop'][_0x3ebd05('0x167b')])[_0x3ebd05('0xc2e')]()){case'set':_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0xd6b')]=_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0x1a8d')]+'='+_0x50c35b[_0x3ebd05('0x1598')]['value'];break;case _0x3ebd05('0x1d56'):break;default:_0x33a493[0x0]=_0x50c35b['gotop'][_0x3ebd05('0x155b')],_0x50c35b[_0x3ebd05('0x1598')][_0x3ebd05('0xd6b')]=_0x33a493[_0x3ebd05('0x185f')](',');}_0x233586(_0x50c35b[_0x3ebd05('0x1598')]);}function _0x233586(_0x59600c){_0x18c16e['hide'](_0x59600c);}}const _0x49af5e=_0x2dcf08;_0x3b0c54['$inject']=['$state','$mdDialog',_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),'toasty',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3b0c54(_0x3f14ad,_0x24c05c,_0x5885f6,_0x2db73a,_0x18033c,_0x12640d,_0x593433,_0x348ca2,_0x2133af,_0x2cb199){const _0x5a9093=_0x34e79e,_0x2fe2fe=this;_0x2fe2fe[_0x5a9093('0x9cb')]=_0x2133af[_0x5a9093('0x24cc')](),_0x2fe2fe[_0x5a9093('0x25be')]=[],_0x2fe2fe['title']=_0x5a9093('0x2f9'),_0x2fe2fe[_0x5a9093('0x2630')]=angular['copy'](_0x18033c),_0x2fe2fe[_0x5a9093('0xec5')]=_0x12640d,_0x2fe2fe[_0x5a9093('0x1f7c')]=![],_0x2fe2fe[_0x5a9093('0x2512')]=[_0x5a9093('0xc8f'),_0x5a9093('0x1d56'),_0x5a9093('0x4b2')],_0x2fe2fe['crudPermissions']=_0x2cb199,_0x2fe2fe['daysOfWeek']=_0x2db73a['getDaysOfWeek'](),_0x2fe2fe[_0x5a9093('0x323')]=_0x2db73a['getMonthNumber'](),_0x2fe2fe['monthName']=_0x2db73a[_0x5a9093('0xc35')](),_0x2fe2fe[_0x5a9093('0x1d59')]=_0x2db73a[_0x5a9093('0x1b79')]();if(!_0x2fe2fe[_0x5a9093('0x2630')])_0x2fe2fe[_0x5a9093('0x2630')]={'interval':_0x5a9093('0x2191')},_0x2fe2fe[_0x5a9093('0x1d7')]=_0x5a9093('0xc8f'),_0x2fe2fe[_0x5a9093('0x14e4')]=_0x5a9093('0xbee'),_0x2fe2fe[_0x5a9093('0x1f7c')]=!![];else{if(_0x2fe2fe[_0x5a9093('0x2630')][_0x5a9093('0x2630')]!==_0x5a9093('0x2191')){_0x2fe2fe[_0x5a9093('0x1d7')]='custom';const _0x4bd43c=_0x2fe2fe[_0x5a9093('0x2630')]['interval'][_0x5a9093('0x1497')](','),_0x268343=_0x4bd43c[0x0],_0x54bf7f=_0x4bd43c[0x1],_0x3f4286=_0x4bd43c[0x2],_0x1a7d71=_0x4bd43c[0x3];if(_0x268343!=='*'){const _0x36cb66=_0x268343['split']('-')[0x0],_0x356a20=_0x268343['split']('-')[0x1];let _0x5ba451;_0x5ba451=new Date(),_0x5ba451[_0x5a9093('0x26f3')](Number(_0x36cb66[_0x5a9093('0x1497')](':')[0x0])),_0x5ba451[_0x5a9093('0x18d')](Number(_0x36cb66[_0x5a9093('0x1497')](':')[0x1])),_0x2fe2fe[_0x5a9093('0x9c0')]=_0x5ba451,_0x5ba451=new Date(),_0x5ba451['setHours'](Number(_0x356a20[_0x5a9093('0x1497')](':')[0x0])),_0x5ba451[_0x5a9093('0x18d')](Number(_0x356a20[_0x5a9093('0x1497')](':')[0x1])),_0x2fe2fe[_0x5a9093('0x4a7')]=_0x5ba451;}_0x54bf7f!=='*'&&(_0x2fe2fe[_0x5a9093('0x240c')]=_0x54bf7f[_0x5a9093('0x1497')]('-')[0x0],_0x2fe2fe[_0x5a9093('0x6c2')]=_0x54bf7f['split']('-')[0x1]),_0x3f4286!=='*'&&(_0x2fe2fe['monthDayFrom']=_0x3f4286[_0x5a9093('0x1497')]('-')[0x0],_0x2fe2fe['monthDayTo']=_0x3f4286[_0x5a9093('0x1497')]('-')[0x1]),_0x1a7d71!=='*'&&(_0x2fe2fe[_0x5a9093('0x1317')]=_0x1a7d71[_0x5a9093('0x1497')]('-')[0x0],_0x2fe2fe[_0x5a9093('0x3dc')]=_0x1a7d71[_0x5a9093('0x1497')]('-')[0x1]);}else _0x2fe2fe[_0x5a9093('0x1d7')]=_0x5a9093('0xc8f');}_0x3f14ad[_0x5a9093('0x4b9')]['id']&&!_0x2fe2fe['interval'][_0x5a9093('0x193')]&&(_0x2fe2fe[_0x5a9093('0x2630')][_0x5a9093('0x20d0')]=_0x3f14ad[_0x5a9093('0x4b9')]['id']);_0x2fe2fe[_0x5a9093('0x2630')]['IntervalId']&&_0x2fe2fe[_0x5a9093('0x2630')][_0x5a9093('0x193')]&&(_0x2fe2fe['type']=_0x5a9093('0x4b2'));_0x2fe2fe[_0x5a9093('0x267f')]=_0x5ddd0e,_0x2fe2fe[_0x5a9093('0x2791')]=_0x230595,_0x2fe2fe[_0x5a9093('0xca7')]=_0x56d361;_0x2fe2fe['interval'][_0x5a9093('0x193')]&&(_0x2133af[_0x5a9093('0x1516')](_0x5a9093('0xe23'))?_0x348ca2[_0x5a9093('0x2630')]['get']({'fields':_0x5a9093('0x27dc'),'IntervalId':'null','nolimit':!![]})[_0x5a9093('0x1714')][_0x5a9093('0x2788')](function(_0xd8b439){const _0x544891=_0x5a9093;_0x2fe2fe[_0x544891('0xec5')]=_0xd8b439[_0x544891('0x25df')]||[];})[_0x5a9093('0x1cb5')](function(_0x1a869f){const _0x19c56a=_0x5a9093;_0x593433['error']({'title':_0x1a869f[_0x19c56a('0x1b51')]?'API:'+_0x1a869f[_0x19c56a('0x1b51')]+_0x19c56a('0x1b0b')+_0x1a869f['statusText']:_0x19c56a('0x2151'),'msg':_0x1a869f[_0x19c56a('0x11fc')]?JSON[_0x19c56a('0x1be0')](_0x1a869f[_0x19c56a('0x11fc')]):_0x1a869f[_0x19c56a('0x17df')]()});}):_0x348ca2[_0x5a9093('0x2630')][_0x5a9093('0x1335')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5a9093('0x954'),'nolimit':!![]})['$promise'][_0x5a9093('0x2788')](function(_0xf29dc8){const _0x2cea32=_0x5a9093;_0x2fe2fe[_0x2cea32('0xec5')]=_0xf29dc8[_0x2cea32('0x25df')]||[];})[_0x5a9093('0x2788')](function(){const _0x555971=_0x5a9093;return _0x348ca2[_0x555971('0xec9')][_0x555971('0x1335')]({'userProfileId':_0x2fe2fe[_0x555971('0x9cb')][_0x555971('0x237f')],'sectionId':0x3ec})[_0x555971('0x1714')];})[_0x5a9093('0x2788')](function(_0x54dc10){const _0x5f352c=_0x5a9093,_0x449cda=_0x54dc10&&_0x54dc10[_0x5f352c('0x25df')]?_0x54dc10[_0x5f352c('0x25df')][0x0]:null;if(!_0x449cda)_0x2fe2fe[_0x5f352c('0xec5')]=[];else{if(!_0x449cda[_0x5f352c('0x1c0a')])return _0x348ca2['userProfileResource'][_0x5f352c('0x1335')]({'sectionId':_0x449cda['id']})[_0x5f352c('0x1714')][_0x5f352c('0x2788')](function(_0x344d5e){const _0x4c2d0f=_0x5f352c,_0x1f8464=_0x344d5e&&_0x344d5e[_0x4c2d0f('0x25df')]?_0x344d5e['rows']:[],_0xda4c1d=[];let _0x23b2b9=null;_0x2fe2fe[_0x4c2d0f('0x2630')]&&(_0x23b2b9=_0x283545()['find'](_0x2fe2fe[_0x4c2d0f('0xec5')],{'name':_0x2fe2fe['interval'][_0x4c2d0f('0x20d0')]})),_0x23b2b9&&!_0x283545()[_0x4c2d0f('0xc5d')](_0x1f8464,[_0x4c2d0f('0x2707'),_0x23b2b9['id']])&&_0x2fe2fe[_0x4c2d0f('0xec5')]['forEach'](function(_0x26e95){const _0x394ed4=_0x4c2d0f;_0x26e95['id']===_0x23b2b9['id']&&(_0x26e95[_0x394ed4('0x3bf')]=![],_0xda4c1d[_0x394ed4('0x13e3')](_0x26e95));}),_0x2fe2fe[_0x4c2d0f('0xec5')]=_0xda4c1d;});}})[_0x5a9093('0x1cb5')](function(_0x492b3d){const _0xa64e53=_0x5a9093;_0x593433['error']({'title':_0x492b3d['status']?_0xa64e53('0x15d1')+_0x492b3d['status']+_0xa64e53('0x1b0b')+_0x492b3d[_0xa64e53('0x22ce')]:_0xa64e53('0x2151'),'msg':_0x492b3d[_0xa64e53('0x11fc')]?JSON[_0xa64e53('0x1be0')](_0x492b3d['data']):_0x492b3d[_0xa64e53('0x17df')]()});}));function _0x257c27(){const _0x5b8a77=_0x5a9093;switch(_0x2fe2fe['type']){case _0x5b8a77('0xc8f'):case _0x5b8a77('0x4b2'):return _0x5b8a77('0x2191');case _0x5b8a77('0x1d56'):{const _0x5c4265=[];if(_0x2fe2fe[_0x5b8a77('0x9c0')]!=='*'&&_0x2fe2fe['timeRangeFrom']&&_0x2fe2fe[_0x5b8a77('0x4a7')]){const _0x371cbd=(_0x2fe2fe[_0x5b8a77('0x9c0')][_0x5b8a77('0x130a')]()<0xa?'0':'')+_0x2fe2fe[_0x5b8a77('0x9c0')][_0x5b8a77('0x130a')]()+':'+((_0x2fe2fe[_0x5b8a77('0x9c0')][_0x5b8a77('0x2649')]()<0xa?'0':'')+_0x2fe2fe[_0x5b8a77('0x9c0')]['getMinutes']()),_0x4df96e=(_0x2fe2fe['timeRangeTo'][_0x5b8a77('0x130a')]()<0xa?'0':'')+_0x2fe2fe[_0x5b8a77('0x4a7')]['getHours']()+':'+((_0x2fe2fe[_0x5b8a77('0x4a7')][_0x5b8a77('0x2649')]()<0xa?'0':'')+_0x2fe2fe['timeRangeTo']['getMinutes']());_0x5c4265[_0x5b8a77('0x13e3')](_0x371cbd+'-'+_0x4df96e);}else _0x5c4265['push']('*');return _0x2fe2fe['dayOfWeekFrom']?_0x2fe2fe[_0x5b8a77('0x6c2')]?_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x240c')]+'-'+_0x2fe2fe[_0x5b8a77('0x6c2')]):_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x240c')]):_0x5c4265[_0x5b8a77('0x13e3')]('*'),_0x2fe2fe['monthDayFrom']?_0x2fe2fe[_0x5b8a77('0x883')]?_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x1d91')]+'-'+_0x2fe2fe[_0x5b8a77('0x883')]):_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x1d91')]):_0x5c4265[_0x5b8a77('0x13e3')]('*'),_0x2fe2fe[_0x5b8a77('0x1317')]?_0x2fe2fe[_0x5b8a77('0x3dc')]?_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x1317')]+'-'+_0x2fe2fe[_0x5b8a77('0x3dc')]):_0x5c4265[_0x5b8a77('0x13e3')](_0x2fe2fe[_0x5b8a77('0x1317')]):_0x5c4265[_0x5b8a77('0x13e3')]('*'),_0x5c4265[_0x5b8a77('0x185f')]();}}}function _0x5ddd0e(){const _0x969581=_0x5a9093;_0x2fe2fe[_0x969581('0x25be')]=[],_0x2fe2fe['interval'][_0x969581('0x2630')]=_0x257c27(),_0x348ca2[_0x969581('0x2630')][_0x969581('0xbd0')](_0x2fe2fe[_0x969581('0x2630')])[_0x969581('0x1714')][_0x969581('0x2788')](function(_0x34df35){const _0xd61c50=_0x969581;_0x2fe2fe[_0xd61c50('0xec5')][_0xd61c50('0x13e3')](_0x34df35),_0x593433['success']({'title':_0xd61c50('0x1146'),'msg':_0x2fe2fe[_0xd61c50('0x2630')][_0xd61c50('0x1a8d')]?_0x2fe2fe[_0xd61c50('0x2630')][_0xd61c50('0x1a8d')]+_0xd61c50('0x1e4a'):''}),_0x56d361();})[_0x969581('0x1cb5')](function(_0x28d36d){const _0x34dfcc=_0x969581;console[_0x34dfcc('0x5e8')](_0x28d36d),_0x2fe2fe[_0x34dfcc('0x25be')]=_0x28d36d[_0x34dfcc('0x11fc')][_0x34dfcc('0x25be')]||[{'message':_0x28d36d[_0x34dfcc('0x17df')](),'type':_0x34dfcc('0x94a')}];});}function _0x230595(){const _0x2e3727=_0x5a9093;_0x2fe2fe[_0x2e3727('0x25be')]=[],_0x2fe2fe[_0x2e3727('0x2630')][_0x2e3727('0x2630')]=_0x257c27(),_0x2fe2fe[_0x2e3727('0x2630')][_0x2e3727('0x193')]?(_0x2fe2fe[_0x2e3727('0x1d7')]!=='list'&&(_0x2fe2fe['interval'][_0x2e3727('0x20d0')]=null),_0x56d361(_0x2fe2fe[_0x2e3727('0x2630')])):_0x348ca2[_0x2e3727('0x2630')]['update']({'id':_0x2fe2fe[_0x2e3727('0x2630')]['id']},_0x2fe2fe[_0x2e3727('0x2630')])[_0x2e3727('0x1714')][_0x2e3727('0x2788')](function(_0x28619f){const _0x1e94cb=_0x2e3727,_0x41f0a3=_0x283545()[_0x1e94cb('0x20e8')](_0x2fe2fe[_0x1e94cb('0xec5')],{'id':_0x28619f['id']});_0x41f0a3&&_0x283545()['merge'](_0x41f0a3,_0x28619f),_0x593433['success']({'title':_0x1e94cb('0xd34'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x56d361();})[_0x2e3727('0x1cb5')](function(_0x84c657){const _0x41d54a=_0x2e3727;console[_0x41d54a('0x5e8')](_0x84c657),_0x2fe2fe[_0x41d54a('0x25be')]=_0x84c657[_0x41d54a('0x11fc')][_0x41d54a('0x25be')]||[{'message':_0x84c657[_0x41d54a('0x17df')](),'type':_0x41d54a('0xc2d')}];});}function _0x56d361(_0x254af6){const _0x446ba5=_0x5a9093;_0x24c05c[_0x446ba5('0x19d')](_0x254af6);}}const _0x10428a=_0x3b0c54;_0x2df8d8[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0xb9d'),_0x34e79e('0x169c'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x2df8d8(_0x13f80d,_0xb6f88c,_0x8ad4f2,_0x50e78a,_0x4ab7b3,_0x144604,_0xe43154,_0x59e880){const _0x29ece1=_0x34e79e,_0x4330ed=this;_0x4330ed[_0x29ece1('0x9cb')]=_0xe43154[_0x29ece1('0x24cc')](),_0x4330ed[_0x29ece1('0x25be')]=[],_0x4330ed['title']=_0x29ece1('0x1281')+(_0x50e78a[_0x29ece1('0x167b')]||_0x50e78a['app'])['toUpperCase'](),_0x4330ed[_0x29ece1('0x18dd')]=angular[_0x29ece1('0x2669')](_0x50e78a),_0x4330ed[_0x29ece1('0xe28')]=_0x59e880,_0x4330ed[_0x29ece1('0x1193')]={};if(_0x4330ed['noop']['appdata'])switch(_0x4330ed[_0x29ece1('0x18dd')]['appType']?_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x167b')][_0x29ece1('0xc2e')]():_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x8a5')][_0x29ece1('0xc2e')]()){case'custom':break;case _0x29ece1('0x5e1'):{const _0x5d591b=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xd6b')][_0x29ece1('0x1497')](',');_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x234b')]=_0x5d591b[0x0],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x175b')]=_0x5d591b[0x1],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xf50')]=_0x5d591b[_0x29ece1('0x845')](0x2,_0x5d591b[_0x29ece1('0x2566')])[_0x29ece1('0x185f')](',');}break;case _0x29ece1('0x137a'):{const _0x302092=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xd6b')][_0x29ece1('0x1497')](',');_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x27f2')]=_0x302092[0x0],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1b58')]=_0x302092[0x1],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xb70')]=_0x302092[0x2],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x4eb')]=_0x302092[0x3],_0x4330ed['noop'][_0x29ece1('0xf50')]=_0x302092[_0x29ece1('0x845')](0x4,_0x302092['length'])['join'](',');}break;case _0x29ece1('0x808'):{const _0x4bde82=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xd6b')][_0x29ece1('0x1497')](',');_0x4330ed['noop'][_0x29ece1('0x5fd')]=isNaN(_0x4bde82[0x0])?_0x4bde82[0x0]:parseInt(_0x4bde82[0x0],0xa),_0x4330ed['noop'][_0x29ece1('0x16db')]=_0x4bde82['slice'](0x1,_0x4bde82[_0x29ece1('0x2566')])['join'](',');}break;case _0x29ece1('0x15e2'):_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x16db')]=_0x4330ed[_0x29ece1('0x18dd')]['appdata'];break;case _0x29ece1('0x3a6'):_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1a8d')]=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xd6b')][_0x29ece1('0x1497')]('=')[0x0],_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x49')]=_0x4330ed[_0x29ece1('0x18dd')]['appdata']['split']('=')[0x1];break;case _0x29ece1('0x2631'):_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1bf6')]=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0xd6b')];break;default:{const _0x493d67=_0x4330ed['noop'][_0x29ece1('0xd6b')]['split'](',');_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x49')]=_0x283545()[_0x29ece1('0x213d')](_0x493d67[0x0])?_0x493d67[0x0]:isNaN(_0x493d67[0x0])?_0x493d67[0x0]:parseInt(_0x493d67[0x0],0xa);}break;}else{}_0x4330ed[_0x29ece1('0x18dd')]['type']&&_0x4330ed[_0x29ece1('0x18dd')]['type'][_0x29ece1('0xc2e')]()==='outbound'&&_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x167b')][_0x29ece1('0xc2e')]()===_0x29ece1('0x229c')&&(_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1f71')]=_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1224')]?_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x1224')][_0x29ece1('0x1497')]('$')[0x0]:undefined,_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x2081')]=_0x4330ed['noop']['callerID']?_0x29ece1('0x1834')+_0x4330ed[_0x29ece1('0x18dd')][_0x29ece1('0x8de')]:undefined);_0x4330ed[_0x29ece1('0x1be2')]=_0x12be0b,_0x4330ed[_0x29ece1('0xca7')]=_0x3cd751;function _0x12be0b(){const _0x62cbd2=_0x29ece1;_0x4330ed[_0x62cbd2('0x25be')]=[];const _0x40bcd1=[];_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x1d7')]&&_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x1d7')][_0x62cbd2('0xc2e')]()===_0x62cbd2('0x1')&&_0x4330ed['noop'][_0x62cbd2('0x167b')]===_0x62cbd2('0x25fb')&&(_0x4330ed['noop'][_0x62cbd2('0x1224')]=_0x4ab7b3[_0x62cbd2('0x277c')]?(_0x4330ed[_0x62cbd2('0x18dd')]['prefix']||'')+'${EXTEN:'+_0x4ab7b3[_0x62cbd2('0x277c')]+'}':(_0x4330ed['noop'][_0x62cbd2('0x1f71')]||'')+_0x62cbd2('0x1275'),_0x4ab7b3[_0x62cbd2('0x801')]!==_0x62cbd2('0x1dc')?_0x4330ed['noop']['options'][_0x62cbd2('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x784')]+=_0x62cbd2('0x1609')):_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x784')]=_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x784')][_0x62cbd2('0x10a4')](_0x62cbd2('0x1609'),''));if(_0x4330ed['noop'][_0x62cbd2('0x167b')]&&_0x4330ed['noop'][_0x62cbd2('0x167b')]===_0x62cbd2('0x1d56')){}else switch((_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x8a5')]||_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x167b')])[_0x62cbd2('0xc2e')]()){case'set':_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0xd6b')]=_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0x1a8d')]+'='+_0x4330ed['noop'][_0x62cbd2('0x49')];break;case _0x62cbd2('0x1d56'):break;default:_0x40bcd1[0x0]=_0x4330ed['noop'][_0x62cbd2('0x49')],_0x4330ed[_0x62cbd2('0x18dd')][_0x62cbd2('0xd6b')]=_0x40bcd1[_0x62cbd2('0x185f')](',');}_0x3cd751(_0x4330ed[_0x62cbd2('0x18dd')]);}function _0x3cd751(_0x39bf07){_0x13f80d['hide'](_0x39bf07);}}const _0x507523=_0x2df8d8;_0x2d699c[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0xb9d'),'chatWebsite',_0x34e79e('0x519'),'Auth','crudPermissions'];function _0x2d699c(_0x118eb8,_0x3d0d59,_0x1291ee,_0x278f29,_0x4bdca7,_0x1a5598,_0x5841b3,_0x4029ee){const _0xf0db7a=_0x34e79e,_0x42c5f3=this;_0x42c5f3[_0xf0db7a('0x9cb')]=_0x5841b3['getCurrentUser'](),_0x42c5f3[_0xf0db7a('0x25be')]=[],_0x42c5f3[_0xf0db7a('0x14e4')]='CHAT.EDIT_'+(_0x278f29['appType']||_0x278f29[_0xf0db7a('0x8a5')])[_0xf0db7a('0x25e6')](),_0x42c5f3[_0xf0db7a('0x1ab4')]=angular[_0xf0db7a('0x2669')](_0x278f29),_0x42c5f3[_0xf0db7a('0xe28')]=_0x4029ee,_0x42c5f3[_0xf0db7a('0x1193')]={};if(_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')])switch(_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x167b')]?_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x167b')][_0xf0db7a('0xc2e')]():_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x8a5')]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x3b4d95=_0x42c5f3['queue'][_0xf0db7a('0xd6b')]['split'](',');_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x234b')]=_0x3b4d95[0x0],_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x175b')]=_0x3b4d95[0x1],_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xf50')]=_0x3b4d95['slice'](0x2,_0x3b4d95['length'])[_0xf0db7a('0x185f')](',');}break;case'amazonlex':{const _0x1cc7f3=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')][_0xf0db7a('0x1497')](',');_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x27f2')]=_0x1cc7f3[0x0],_0x42c5f3[_0xf0db7a('0x1ab4')]['secretaccesskey']=_0x1cc7f3[0x1],_0x42c5f3['queue'][_0xf0db7a('0xb70')]=_0x1cc7f3[0x2],_0x42c5f3['queue'][_0xf0db7a('0x4eb')]=_0x1cc7f3[0x3],_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xf50')]=_0x1cc7f3[_0xf0db7a('0x845')](0x4,_0x1cc7f3[_0xf0db7a('0x2566')])[_0xf0db7a('0x185f')](',');}break;case _0xf0db7a('0x808'):{const _0x5b7dfb=_0x42c5f3[_0xf0db7a('0x1ab4')]['appdata'][_0xf0db7a('0x1497')](',');_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x5fd')]=isNaN(_0x5b7dfb[0x0])?_0x5b7dfb[0x0]:parseInt(_0x5b7dfb[0x0],0xa),_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x16db')]=_0x5b7dfb[_0xf0db7a('0x845')](0x1,_0x5b7dfb[_0xf0db7a('0x2566')])[_0xf0db7a('0x185f')](',');}break;case _0xf0db7a('0x15e2'):_0x42c5f3[_0xf0db7a('0x1ab4')]['text']=_0x42c5f3[_0xf0db7a('0x1ab4')]['appdata'];break;case _0xf0db7a('0x3a6'):_0x42c5f3['queue'][_0xf0db7a('0x1a8d')]=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')][_0xf0db7a('0x1497')]('=')[0x0],_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x49')]=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')]['split']('=')[0x1];break;case _0xf0db7a('0x2631'):_0x42c5f3['queue']['project']=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')];break;default:{const _0x287a4b=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0xd6b')][_0xf0db7a('0x1497')](',');_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1ab4')]=_0x283545()[_0xf0db7a('0x213d')](_0x287a4b[0x0])?_0x287a4b[0x0]:isNaN(_0x287a4b[0x0])?_0x287a4b[0x0]:parseInt(_0x287a4b[0x0],0xa),_0x42c5f3[_0xf0db7a('0x1ab4')]['timeout']=_0x283545()[_0xf0db7a('0x213d')](_0x287a4b[0x1])?_0x287a4b[0x1]:isNaN(_0x287a4b[0x1])?_0x287a4b[0x1]:parseInt(_0x287a4b[0x1],0xa);}break;}else _0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1ab4')]=0x12c,_0x42c5f3['queue'][_0xf0db7a('0x24e4')]=0x12c;_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1d7')]&&_0x42c5f3[_0xf0db7a('0x1ab4')]['type'][_0xf0db7a('0xc2e')]()===_0xf0db7a('0x1')&&_0x42c5f3['queue']['appType'][_0xf0db7a('0xc2e')]()===_0xf0db7a('0x229c')&&(_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1f71')]=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1224')]?_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x1224')][_0xf0db7a('0x1497')]('$')[0x0]:undefined,_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x2081')]=_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x8de')]?_0xf0db7a('0x1834')+_0x42c5f3[_0xf0db7a('0x1ab4')][_0xf0db7a('0x8de')]:undefined);_0x42c5f3['saveChatWebsiteApp']=_0x5bbf16,_0x42c5f3['closeDialog']=_0x313c73,_0x5841b3[_0xf0db7a('0x1516')](_0xf0db7a('0xe23'))?_0x1a5598[_0xf0db7a('0x12a8')][_0xf0db7a('0x1335')]({'fields':'id,name,type','sort':_0xf0db7a('0x1a8d'),'nolimit':_0xf0db7a('0x1001')})[_0xf0db7a('0x1714')]['then'](function(_0x5c444f){const _0x8c1326=_0xf0db7a;_0x42c5f3[_0x8c1326('0x283e')]=_0x5c444f[_0x8c1326('0x25df')]||[];})['catch'](function(_0x154a29){const _0x409086=_0xf0db7a;_0x1291ee[_0x409086('0x5e8')]({'title':_0x154a29[_0x409086('0x1b51')]?'API:'+_0x154a29['status']+_0x409086('0x1b0b')+_0x154a29['statusText']:_0x409086('0x2763'),'msg':_0x154a29[_0x409086('0x11fc')]?JSON[_0x409086('0x1be0')](_0x154a29['data']):_0x154a29[_0x409086('0x17df')]()});}):_0x1a5598[_0xf0db7a('0x12a8')][_0xf0db7a('0x1335')]({'fields':_0xf0db7a('0xafa'),'sort':_0xf0db7a('0x1a8d'),'nolimit':_0xf0db7a('0x1001')})[_0xf0db7a('0x1714')][_0xf0db7a('0x2788')](function(_0x3ca157){const _0x1f92f6=_0xf0db7a;_0x42c5f3[_0x1f92f6('0x283e')]=_0x3ca157[_0x1f92f6('0x25df')]||[];})['then'](function(){const _0x2bdfda=_0xf0db7a;return _0x1a5598[_0x2bdfda('0xec9')][_0x2bdfda('0x1335')]({'userProfileId':_0x42c5f3[_0x2bdfda('0x9cb')][_0x2bdfda('0x237f')],'sectionId':0x1f5})[_0x2bdfda('0x1714')];})[_0xf0db7a('0x2788')](function(_0x3fe4a3){const _0x4d3d90=_0xf0db7a,_0x1ba63d=_0x3fe4a3&&_0x3fe4a3[_0x4d3d90('0x25df')]?_0x3fe4a3['rows'][0x0]:null;if(!_0x1ba63d){const _0x5a53c2=[];let _0x2dd69e=null;_0x42c5f3['queue']&&(_0x2dd69e=_0x283545()[_0x4d3d90('0x20e8')](_0x42c5f3[_0x4d3d90('0x283e')],{'name':_0x42c5f3[_0x4d3d90('0x1ab4')][_0x4d3d90('0x1ab4')]}));for(let _0x59c596=0x0;_0x59c596<_0x42c5f3[_0x4d3d90('0x283e')][_0x4d3d90('0x2566')];_0x59c596++){_0x2dd69e&&_0x42c5f3[_0x4d3d90('0x283e')][_0x59c596]['id']===_0x2dd69e['id']&&(_0x42c5f3['queues'][_0x59c596]['canSelect']=![],_0x5a53c2[_0x4d3d90('0x13e3')](_0x42c5f3[_0x4d3d90('0x283e')][_0x59c596]));}_0x42c5f3[_0x4d3d90('0x283e')]=_0x5a53c2;}else{if(!_0x1ba63d[_0x4d3d90('0x1c0a')])return _0x1a5598['userProfileResource'][_0x4d3d90('0x1335')]({'sectionId':_0x1ba63d['id']})[_0x4d3d90('0x1714')][_0x4d3d90('0x2788')](function(_0x3d8560){const _0xfe5f83=_0x4d3d90,_0x55c635=_0x283545()[_0xfe5f83('0x155d')](_0x3d8560[_0xfe5f83('0x25df')],function(_0x1fc991){const _0x2da849=_0xfe5f83;return _0x283545()[_0x2da849('0x20e8')](_0x42c5f3[_0x2da849('0x283e')],{'id':_0x1fc991['resourceId']});});let _0x47a529=null;_0x42c5f3[_0xfe5f83('0x1ab4')]&&(_0x47a529=_0x283545()[_0xfe5f83('0x20e8')](_0x42c5f3[_0xfe5f83('0x283e')],{'name':_0x42c5f3[_0xfe5f83('0x1ab4')][_0xfe5f83('0x1ab4')]}));if(_0x47a529&&!_0x283545()[_0xfe5f83('0xc5d')](_0x55c635,['id',_0x47a529['id']])){const _0x1e40c2=_0x283545()['find'](_0x42c5f3[_0xfe5f83('0x283e')],{'id':_0x47a529['id']});_0x1e40c2[_0xfe5f83('0x3bf')]=![],_0x55c635[_0xfe5f83('0x13e3')](_0x1e40c2);}_0x42c5f3['queues']=_0x55c635;});}})[_0xf0db7a('0x1cb5')](function(_0x520c88){const _0x462ce7=_0xf0db7a;_0x1291ee[_0x462ce7('0x5e8')]({'title':_0x520c88[_0x462ce7('0x1b51')]?_0x462ce7('0x15d1')+_0x520c88[_0x462ce7('0x1b51')]+_0x462ce7('0x1b0b')+_0x520c88[_0x462ce7('0x22ce')]:_0x462ce7('0xb14'),'msg':_0x520c88[_0x462ce7('0x11fc')]?JSON[_0x462ce7('0x1be0')](_0x520c88[_0x462ce7('0x11fc')]):_0x520c88['toString']()});});function _0x5bbf16(){const _0x40d2a6=_0xf0db7a;_0x42c5f3[_0x40d2a6('0x25be')]=[];const _0x466a15=[];_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1d7')]&&_0x42c5f3['queue']['type'][_0x40d2a6('0xc2e')]()==='outbound'&&_0x42c5f3['queue'][_0x40d2a6('0x167b')]==='outboundDial'&&(_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1224')]=_0x4bdca7[_0x40d2a6('0x277c')]?(_0x42c5f3[_0x40d2a6('0x1ab4')]['prefix']||'')+_0x40d2a6('0x124d')+_0x4bdca7['cutdigits']+'}':(_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1f71')]||'')+_0x40d2a6('0x1275'),_0x4bdca7['recordingFormat']!=='none'?_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x784')][_0x40d2a6('0x821')](_0x40d2a6('0x1609'))<0x0&&(_0x42c5f3['queue'][_0x40d2a6('0x784')]+=_0x40d2a6('0x1609')):_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x784')]=_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x784')][_0x40d2a6('0x10a4')]('U(xcally-mixmonitor-context)',''));const _0x5cc744=_0x283545()['find'](_0x42c5f3[_0x40d2a6('0x283e')],{'name':_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1ab4')]});_0x5cc744&&(_0x42c5f3['queue'][_0x283545()[_0x40d2a6('0x1df5')](_0x40d2a6('0x231'))+'QueueId']=_0x5cc744['id']);if(_0x42c5f3[_0x40d2a6('0x1ab4')]['appType']&&_0x42c5f3['queue'][_0x40d2a6('0x167b')]===_0x40d2a6('0x1d56')){}else switch((_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x8a5')]||_0x42c5f3['queue'][_0x40d2a6('0x167b')])[_0x40d2a6('0xc2e')]()){case _0x40d2a6('0x3a6'):_0x42c5f3['queue'][_0x40d2a6('0xd6b')]=_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1a8d')]+'='+_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x49')];break;case _0x40d2a6('0x1d56'):break;default:_0x466a15[0x0]=_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x1ab4')],_0x466a15[0x1]=_0x42c5f3[_0x40d2a6('0x1ab4')][_0x40d2a6('0x24e4')],_0x42c5f3[_0x40d2a6('0x1ab4')]['appdata']=_0x466a15[_0x40d2a6('0x185f')](',');}_0x313c73(_0x42c5f3['queue']);}function _0x313c73(_0x2c8a6d){const _0x30d49e=_0xf0db7a;_0x118eb8[_0x30d49e('0x19d')](_0x2c8a6d);}}const _0x328283=_0x2d699c;_0x20c701[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'chatWebsiteApp',_0x34e79e('0x169c'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x20c701(_0x1a3cd5,_0x5b699e,_0x54bb48,_0x16372b,_0xc58a3c,_0x4128c4,_0x3ae3d4,_0x505ac8){const _0x2abe8f=_0x34e79e,_0x3047fe=this;_0x3047fe[_0x2abe8f('0x9cb')]=_0x3ae3d4['getCurrentUser'](),_0x3047fe['errors']=[],_0x3047fe[_0x2abe8f('0x14e4')]='CHAT.EDIT_'+(_0x16372b[_0x2abe8f('0x167b')]||_0x16372b[_0x2abe8f('0x8a5')])['toUpperCase'](),_0x3047fe[_0x2abe8f('0xe81')]=angular[_0x2abe8f('0x2669')](_0x16372b),_0x3047fe[_0x2abe8f('0xe28')]=_0x505ac8,_0x3047fe['hasModulePermissions']={};if(_0x3047fe['system'][_0x2abe8f('0xd6b')])switch(_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x167b')]?_0x3047fe[_0x2abe8f('0xe81')]['appType'][_0x2abe8f('0xc2e')]():_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x8a5')][_0x2abe8f('0xc2e')]()){case'custom':break;case _0x2abe8f('0x5e1'):{const _0x12d774=_0x3047fe['system'][_0x2abe8f('0xd6b')][_0x2abe8f('0x1497')](',');_0x3047fe['system'][_0x2abe8f('0x234b')]=_0x12d774[0x0],_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x175b')]=_0x12d774[0x1],_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xf50')]=_0x12d774[_0x2abe8f('0x845')](0x2,_0x12d774[_0x2abe8f('0x2566')])[_0x2abe8f('0x185f')](',');}break;case _0x2abe8f('0x137a'):{const _0x25c3d2=_0x3047fe[_0x2abe8f('0xe81')]['appdata']['split'](',');_0x3047fe['system'][_0x2abe8f('0x27f2')]=_0x25c3d2[0x0],_0x3047fe[_0x2abe8f('0xe81')]['secretaccesskey']=_0x25c3d2[0x1],_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xb70')]=_0x25c3d2[0x2],_0x3047fe['system'][_0x2abe8f('0x4eb')]=_0x25c3d2[0x3],_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xf50')]=_0x25c3d2[_0x2abe8f('0x845')](0x4,_0x25c3d2[_0x2abe8f('0x2566')])[_0x2abe8f('0x185f')](',');}break;case _0x2abe8f('0x808'):{const _0xea0a3=_0x3047fe[_0x2abe8f('0xe81')]['appdata'][_0x2abe8f('0x1497')](',');_0x3047fe[_0x2abe8f('0xe81')]['times']=isNaN(_0xea0a3[0x0])?_0xea0a3[0x0]:parseInt(_0xea0a3[0x0],0xa),_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x16db')]=_0xea0a3['slice'](0x1,_0xea0a3[_0x2abe8f('0x2566')])['join'](',');}break;case _0x2abe8f('0x15e2'):_0x3047fe[_0x2abe8f('0xe81')]['text']=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xd6b')];break;case _0x2abe8f('0x3a6'):_0x3047fe['system']['name']=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xd6b')]['split']('=')[0x0],_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x49')]=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xd6b')][_0x2abe8f('0x1497')]('=')[0x1];break;case _0x2abe8f('0x2631'):_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x1bf6')]=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xd6b')];break;default:{const _0x54f98d=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xd6b')]['split'](',');_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x28d')]=_0x283545()[_0x2abe8f('0x213d')](_0x54f98d[0x0])?_0x54f98d[0x0]:isNaN(_0x54f98d[0x0])?_0x54f98d[0x0]:parseInt(_0x54f98d[0x0],0xa),_0x3047fe[_0x2abe8f('0xe81')]['variable']=_0x283545()[_0x2abe8f('0x213d')](_0x54f98d[0x1])?_0x54f98d[0x1]:isNaN(_0x54f98d[0x1])?_0x54f98d[0x1]:parseInt(_0x54f98d[0x1],0xa);}break;}else _0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0xa72')]='';_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x1d7')]&&_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x1d7')][_0x2abe8f('0xc2e')]()===_0x2abe8f('0x1')&&_0x3047fe['system']['appType'][_0x2abe8f('0xc2e')]()===_0x2abe8f('0x229c')&&(_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x1f71')]=_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x1224')]?_0x3047fe['system'][_0x2abe8f('0x1224')][_0x2abe8f('0x1497')]('$')[0x0]:undefined,_0x3047fe['system'][_0x2abe8f('0x2081')]=_0x3047fe['system'][_0x2abe8f('0x8de')]?'CALLERID(all)='+_0x3047fe[_0x2abe8f('0xe81')][_0x2abe8f('0x8de')]:undefined);_0x3047fe[_0x2abe8f('0x1be2')]=_0x365dc4,_0x3047fe[_0x2abe8f('0xca7')]=_0x481485,_0x3ae3d4[_0x2abe8f('0x1516')](_0x2abe8f('0xe23'))?_0x4128c4['variable'][_0x2abe8f('0x1335')]({'fields':'id,name','sort':'name','nolimit':_0x2abe8f('0x1001')})[_0x2abe8f('0x1714')][_0x2abe8f('0x2788')](function(_0x1b994c){const _0x3e8a69=_0x2abe8f;_0x3047fe[_0x3e8a69('0xf76')]=_0x1b994c[_0x3e8a69('0x25df')]||[];})['catch'](function(_0x55e510){const _0x1d3767=_0x2abe8f;_0x54bb48[_0x1d3767('0x5e8')]({'title':_0x55e510[_0x1d3767('0x1b51')]?_0x1d3767('0x15d1')+_0x55e510[_0x1d3767('0x1b51')]+'\x20-\x20'+_0x55e510[_0x1d3767('0x22ce')]:_0x1d3767('0xe86'),'msg':_0x55e510['data']?JSON['stringify'](_0x55e510['data']):_0x55e510[_0x1d3767('0x17df')]()});}):_0x4128c4[_0x2abe8f('0xa72')][_0x2abe8f('0x1335')]({'fields':'id,name','sort':_0x2abe8f('0x1a8d'),'nolimit':_0x2abe8f('0x1001')})['$promise'][_0x2abe8f('0x2788')](function(_0x58a9e2){const _0x48a43f=_0x2abe8f;_0x3047fe[_0x48a43f('0xf76')]=_0x58a9e2[_0x48a43f('0x25df')]||[];})[_0x2abe8f('0x2788')](function(){const _0x1de096=_0x2abe8f;return _0x4128c4[_0x1de096('0xec9')][_0x1de096('0x1335')]({'userProfileId':_0x3047fe[_0x1de096('0x9cb')][_0x1de096('0x237f')],'sectionId':0x3f4})[_0x1de096('0x1714')];})[_0x2abe8f('0x2788')](function(_0x436ee7){const _0x4fa4b2=_0x2abe8f,_0x4c524e=_0x436ee7&&_0x436ee7[_0x4fa4b2('0x25df')]?_0x436ee7[_0x4fa4b2('0x25df')][0x0]:null;if(!_0x4c524e){const _0x563e59=[];let _0x14bc94=null;_0x3047fe[_0x4fa4b2('0xe81')]&&(_0x14bc94=_0x283545()[_0x4fa4b2('0x20e8')](_0x3047fe[_0x4fa4b2('0xf76')],{'name':_0x3047fe[_0x4fa4b2('0xe81')][_0x4fa4b2('0xa72')]}));for(let _0x212d28=0x0;_0x212d28<_0x3047fe[_0x4fa4b2('0xf76')][_0x4fa4b2('0x2566')];_0x212d28++){_0x14bc94&&_0x3047fe['variables'][_0x212d28]['id']===_0x14bc94['id']&&(_0x3047fe['variables'][_0x212d28][_0x4fa4b2('0x3bf')]=![],_0x563e59['push'](_0x3047fe[_0x4fa4b2('0xf76')][_0x212d28]));}_0x3047fe[_0x4fa4b2('0xf76')]=_0x563e59;}else{if(!_0x4c524e[_0x4fa4b2('0x1c0a')])return _0x4128c4[_0x4fa4b2('0x1050')][_0x4fa4b2('0x1335')]({'sectionId':_0x4c524e['id']})[_0x4fa4b2('0x1714')][_0x4fa4b2('0x2788')](function(_0xa68799){const _0x4acd81=_0x4fa4b2,_0x583f0d=_0x283545()['map'](_0xa68799['rows'],function(_0x29969b){const _0x223882=a0_0x14e7;return _0x283545()[_0x223882('0x20e8')](_0x3047fe['variables'],{'id':_0x29969b[_0x223882('0x2707')]});});let _0x41d921=null;_0x3047fe[_0x4acd81('0xe81')]&&(_0x41d921=_0x283545()[_0x4acd81('0x20e8')](_0x3047fe['variables'],{'name':_0x3047fe[_0x4acd81('0xe81')][_0x4acd81('0xa72')]}));if(_0x41d921&&!_0x283545()[_0x4acd81('0xc5d')](_0x583f0d,['id',_0x41d921['id']])){const _0x151514=_0x283545()[_0x4acd81('0x20e8')](_0x3047fe[_0x4acd81('0xf76')],{'id':_0x41d921['id']});_0x151514[_0x4acd81('0x3bf')]=![],_0x583f0d[_0x4acd81('0x13e3')](_0x151514);}_0x3047fe[_0x4acd81('0xf76')]=_0x583f0d;});}})[_0x2abe8f('0x1cb5')](function(_0x314c36){const _0x48c2ae=_0x2abe8f;_0x54bb48['error']({'title':_0x314c36[_0x48c2ae('0x1b51')]?_0x48c2ae('0x15d1')+_0x314c36[_0x48c2ae('0x1b51')]+_0x48c2ae('0x1b0b')+_0x314c36[_0x48c2ae('0x22ce')]:_0x48c2ae('0x1592'),'msg':_0x314c36[_0x48c2ae('0x11fc')]?JSON[_0x48c2ae('0x1be0')](_0x314c36[_0x48c2ae('0x11fc')]):_0x314c36[_0x48c2ae('0x17df')]()});});function _0x365dc4(){const _0x164fb7=_0x2abe8f;_0x3047fe[_0x164fb7('0x25be')]=[];const _0x137a45=[];_0x3047fe[_0x164fb7('0xe81')]['type']&&_0x3047fe['system'][_0x164fb7('0x1d7')]['toLowerCase']()===_0x164fb7('0x1')&&_0x3047fe['system'][_0x164fb7('0x167b')]===_0x164fb7('0x25fb')&&(_0x3047fe[_0x164fb7('0xe81')]['phone']=_0xc58a3c['cutdigits']?(_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x1f71')]||'')+_0x164fb7('0x124d')+_0xc58a3c[_0x164fb7('0x277c')]+'}':(_0x3047fe['system'][_0x164fb7('0x1f71')]||'')+'${EXTEN}',_0xc58a3c[_0x164fb7('0x801')]!==_0x164fb7('0x1dc')?_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x784')]['indexOf'](_0x164fb7('0x1609'))<0x0&&(_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x784')]+='U(xcally-mixmonitor-context)'):_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x784')]=_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x784')][_0x164fb7('0x10a4')](_0x164fb7('0x1609'),''));if(_0x3047fe[_0x164fb7('0xe81')]['appType']&&_0x3047fe['system'][_0x164fb7('0x167b')]===_0x164fb7('0x1d56')){}else switch((_0x3047fe[_0x164fb7('0xe81')]['app']||_0x3047fe[_0x164fb7('0xe81')]['appType'])[_0x164fb7('0xc2e')]()){case _0x164fb7('0x3a6'):_0x3047fe['system'][_0x164fb7('0xd6b')]=_0x3047fe['system'][_0x164fb7('0x1a8d')]+'='+_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x49')];break;case'custom':break;default:_0x137a45[0x0]=_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0x28d')],_0x137a45[0x1]=_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0xa72')],_0x3047fe[_0x164fb7('0xe81')][_0x164fb7('0xd6b')]=_0x137a45['join'](',');}_0x481485(_0x3047fe[_0x164fb7('0xe81')]);}function _0x481485(_0xd72df3){const _0x4a3473=_0x2abe8f;_0x1a3cd5[_0x4a3473('0x19d')](_0xd72df3);}}const _0x4a2e88=_0x20c701;_0xfba371[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0xb9d'),_0x34e79e('0x169c'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0xfba371(_0x4cb0f9,_0x46f7ce,_0x49e4b9,_0x4bd5cd,_0xa753e4,_0x2bd532,_0x1c9ec3,_0x11b21b){const _0xb69d56=_0x34e79e,_0x337ffb=this;_0x337ffb[_0xb69d56('0x9cb')]=_0x1c9ec3['getCurrentUser'](),_0x337ffb[_0xb69d56('0x25be')]=[],_0x337ffb[_0xb69d56('0x14e4')]=_0xb69d56('0x1281')+(_0x4bd5cd[_0xb69d56('0x167b')]||_0x4bd5cd[_0xb69d56('0x8a5')])[_0xb69d56('0x25e6')](),_0x337ffb['tag']=angular[_0xb69d56('0x2669')](_0x4bd5cd),_0x337ffb[_0xb69d56('0xe28')]=_0x11b21b,_0x337ffb['hasModulePermissions']={};if(_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0xd6b')])switch(_0x337ffb['tag'][_0xb69d56('0x167b')]?_0x337ffb[_0xb69d56('0x1764')]['appType'][_0xb69d56('0xc2e')]():_0x337ffb[_0xb69d56('0x1764')]['app'][_0xb69d56('0xc2e')]()){case _0xb69d56('0x1d56'):break;case _0xb69d56('0x5e1'):{const _0x27cb9d=_0x337ffb['tag']['appdata'][_0xb69d56('0x1497')](',');_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x234b')]=_0x27cb9d[0x0],_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x175b')]=_0x27cb9d[0x1],_0x337ffb['tag'][_0xb69d56('0xf50')]=_0x27cb9d[_0xb69d56('0x845')](0x2,_0x27cb9d[_0xb69d56('0x2566')])[_0xb69d56('0x185f')](',');}break;case'amazonlex':{const _0x47d7=_0x337ffb['tag']['appdata'][_0xb69d56('0x1497')](',');_0x337ffb[_0xb69d56('0x1764')]['accesskeyid']=_0x47d7[0x0],_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x1b58')]=_0x47d7[0x1],_0x337ffb['tag'][_0xb69d56('0xb70')]=_0x47d7[0x2],_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x4eb')]=_0x47d7[0x3],_0x337ffb[_0xb69d56('0x1764')]['welcomemessage']=_0x47d7['slice'](0x4,_0x47d7['length'])[_0xb69d56('0x185f')](',');}break;case _0xb69d56('0x808'):{const _0x417fe6=_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0xd6b')]['split'](',');_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x5fd')]=isNaN(_0x417fe6[0x0])?_0x417fe6[0x0]:parseInt(_0x417fe6[0x0],0xa),_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x16db')]=_0x417fe6['slice'](0x1,_0x417fe6[_0xb69d56('0x2566')])[_0xb69d56('0x185f')](',');}break;case _0xb69d56('0x15e2'):_0x337ffb['tag'][_0xb69d56('0x16db')]=_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0xd6b')];break;case'set':_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x1a8d')]=_0x337ffb['tag']['appdata'][_0xb69d56('0x1497')]('=')[0x0],_0x337ffb[_0xb69d56('0x1764')]['value']=_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0xd6b')]['split']('=')[0x1];break;case'agi':_0x337ffb['tag'][_0xb69d56('0x1bf6')]=_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0xd6b')];break;default:{const _0x36eb0a=_0x337ffb[_0xb69d56('0x1764')]['appdata'][_0xb69d56('0x1497')](',');_0x337ffb[_0xb69d56('0x1764')]['tag']=_0x283545()[_0xb69d56('0x213d')](_0x36eb0a[0x0])?_0x36eb0a[0x0]:isNaN(_0x36eb0a[0x0])?_0x36eb0a[0x0]:parseInt(_0x36eb0a[0x0],0xa);}break;}else{}_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x1d7')]&&_0x337ffb['tag'][_0xb69d56('0x1d7')][_0xb69d56('0xc2e')]()===_0xb69d56('0x1')&&_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x167b')]['toLowerCase']()===_0xb69d56('0x229c')&&(_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x1f71')]=_0x337ffb['tag'][_0xb69d56('0x1224')]?_0x337ffb['tag']['phone'][_0xb69d56('0x1497')]('$')[0x0]:undefined,_0x337ffb[_0xb69d56('0x1764')]['callerId']=_0x337ffb[_0xb69d56('0x1764')][_0xb69d56('0x8de')]?_0xb69d56('0x1834')+_0x337ffb[_0xb69d56('0x1764')]['callerID']:undefined);_0x337ffb[_0xb69d56('0x1be2')]=_0xaae76f,_0x337ffb['closeDialog']=_0xffb52,_0x1c9ec3[_0xb69d56('0x1516')](_0xb69d56('0xe23'))?_0x2bd532[_0xb69d56('0x1764')]['get']({'fields':_0xb69d56('0x1338'),'sort':'name','nolimit':_0xb69d56('0x1001')})[_0xb69d56('0x1714')][_0xb69d56('0x2788')](function(_0x418198){const _0x1adfb1=_0xb69d56;_0x337ffb[_0x1adfb1('0xe45')]=_0x418198[_0x1adfb1('0x25df')]||[];})[_0xb69d56('0x1cb5')](function(_0x1df11f){const _0x29f5a8=_0xb69d56;_0x49e4b9[_0x29f5a8('0x5e8')]({'title':_0x1df11f[_0x29f5a8('0x1b51')]?_0x29f5a8('0x15d1')+_0x1df11f[_0x29f5a8('0x1b51')]+_0x29f5a8('0x1b0b')+_0x1df11f[_0x29f5a8('0x22ce')]:_0x29f5a8('0x270'),'msg':_0x1df11f[_0x29f5a8('0x11fc')]?JSON[_0x29f5a8('0x1be0')](_0x1df11f[_0x29f5a8('0x11fc')]):_0x1df11f[_0x29f5a8('0x17df')]()});}):_0x2bd532[_0xb69d56('0x1764')]['get']({'fields':'id,name','sort':_0xb69d56('0x1a8d'),'nolimit':_0xb69d56('0x1001')})['$promise']['then'](function(_0x106528){const _0x3172d6=_0xb69d56;_0x337ffb[_0x3172d6('0xe45')]=_0x106528[_0x3172d6('0x25df')]||[];})[_0xb69d56('0x2788')](function(){const _0x84958e=_0xb69d56;return _0x2bd532['userProfileSection'][_0x84958e('0x1335')]({'userProfileId':_0x337ffb['currentUser']['userProfileId'],'sectionId':0x3f0})['$promise'];})[_0xb69d56('0x2788')](function(_0x10d787){const _0x51f494=_0xb69d56,_0x249424=_0x10d787&&_0x10d787[_0x51f494('0x25df')]?_0x10d787[_0x51f494('0x25df')][0x0]:null;if(!_0x249424){const _0x552ba7=[];let _0x2a917f=null;_0x337ffb['tag']&&(_0x2a917f=_0x283545()[_0x51f494('0x20e8')](_0x337ffb[_0x51f494('0xe45')],{'name':_0x337ffb[_0x51f494('0x1764')][_0x51f494('0x1764')]}));for(let _0x2bf77f=0x0;_0x2bf77f<_0x337ffb[_0x51f494('0xe45')][_0x51f494('0x2566')];_0x2bf77f++){_0x2a917f&&_0x337ffb[_0x51f494('0xe45')][_0x2bf77f]['id']===_0x2a917f['id']&&(_0x337ffb['tags'][_0x2bf77f][_0x51f494('0x3bf')]=![],_0x552ba7[_0x51f494('0x13e3')](_0x337ffb[_0x51f494('0xe45')][_0x2bf77f]));}_0x337ffb[_0x51f494('0xe45')]=_0x552ba7;}else{if(!_0x249424['autoAssociation'])return _0x2bd532[_0x51f494('0x1050')][_0x51f494('0x1335')]({'sectionId':_0x249424['id']})[_0x51f494('0x1714')][_0x51f494('0x2788')](function(_0x32ae00){const _0x768636=_0x51f494,_0x541392=_0x283545()[_0x768636('0x155d')](_0x32ae00['rows'],function(_0x4d9315){const _0x4aca64=_0x768636;return _0x283545()['find'](_0x337ffb[_0x4aca64('0xe45')],{'id':_0x4d9315['resourceId']});});let _0x5dfffa=null;_0x337ffb[_0x768636('0x1764')]&&(_0x5dfffa=_0x283545()[_0x768636('0x20e8')](_0x337ffb['tags'],{'name':_0x337ffb[_0x768636('0x1764')][_0x768636('0x1764')]}));if(_0x5dfffa&&!_0x283545()['some'](_0x541392,['id',_0x5dfffa['id']])){const _0x57f81c=_0x283545()[_0x768636('0x20e8')](_0x337ffb[_0x768636('0xe45')],{'id':_0x5dfffa['id']});_0x57f81c[_0x768636('0x3bf')]=![],_0x541392['push'](_0x57f81c);}_0x337ffb[_0x768636('0xe45')]=_0x541392;});}})[_0xb69d56('0x1cb5')](function(_0x74f8a6){const _0x53bd2a=_0xb69d56;_0x49e4b9['error']({'title':_0x74f8a6[_0x53bd2a('0x1b51')]?_0x53bd2a('0x15d1')+_0x74f8a6[_0x53bd2a('0x1b51')]+_0x53bd2a('0x1b0b')+_0x74f8a6[_0x53bd2a('0x22ce')]:'SYSTEM:GETtags','msg':_0x74f8a6[_0x53bd2a('0x11fc')]?JSON[_0x53bd2a('0x1be0')](_0x74f8a6[_0x53bd2a('0x11fc')]):_0x74f8a6['toString']()});});function _0xaae76f(){const _0x25d396=_0xb69d56;_0x337ffb['errors']=[];const _0x19ddbd=[];_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x1d7')]&&_0x337ffb[_0x25d396('0x1764')]['type'][_0x25d396('0xc2e')]()===_0x25d396('0x1')&&_0x337ffb['tag'][_0x25d396('0x167b')]===_0x25d396('0x25fb')&&(_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x1224')]=_0xa753e4[_0x25d396('0x277c')]?(_0x337ffb['tag'][_0x25d396('0x1f71')]||'')+_0x25d396('0x124d')+_0xa753e4[_0x25d396('0x277c')]+'}':(_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x1f71')]||'')+'${EXTEN}',_0xa753e4[_0x25d396('0x801')]!==_0x25d396('0x1dc')?_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x784')][_0x25d396('0x821')](_0x25d396('0x1609'))<0x0&&(_0x337ffb[_0x25d396('0x1764')]['options']+=_0x25d396('0x1609')):_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x784')]=_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x784')][_0x25d396('0x10a4')](_0x25d396('0x1609'),''));const _0x24b200=_0x283545()['find'](_0x337ffb[_0x25d396('0xe45')],{'name':_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x1764')]});_0x24b200&&(_0x337ffb[_0x25d396('0x1764')]['TagId']=_0x24b200['id']);if(_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x167b')]&&_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x167b')]==='custom'){}else switch((_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x8a5')]||_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x167b')])['toLowerCase']()){case _0x25d396('0x3a6'):_0x337ffb['tag'][_0x25d396('0xd6b')]=_0x337ffb['tag']['name']+'='+_0x337ffb['tag'][_0x25d396('0x49')];break;case _0x25d396('0x1d56'):break;default:_0x19ddbd[0x0]=_0x337ffb[_0x25d396('0x1764')][_0x25d396('0x1764')],_0x337ffb[_0x25d396('0x1764')][_0x25d396('0xd6b')]=_0x19ddbd['join'](',');}_0xffb52(_0x337ffb[_0x25d396('0x1764')]);}function _0xffb52(_0x2f7b16){_0x4cb0f9['hide'](_0x2f7b16);}}const _0x5f0806=_0xfba371,_0x6daacf=_0x18dd13['p']+_0x34e79e('0xf43');_0x39ee2e[_0x34e79e('0x2d9')]=['$cookies','$scope',_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty',_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x39ee2e(_0x111910,_0x599f93,_0x1126cf,_0x32ab36,_0x348ef4,_0x5388f1,_0x30d800,_0x3a3780,_0x58365d,_0x4da6f7,_0x3438ca){const _0x43d552=_0x34e79e,_0x442d8c=this;_0x442d8c[_0x43d552('0x9cb')]=_0x3438ca[_0x43d552('0x24cc')](),_0x442d8c['chatWebsite']={},_0x442d8c['chatWebsiteChatCannedAnswers']={'count':0x0,'rows':[]},_0x442d8c['selectedChatWebsiteChatCannedAnswers']=[],_0x442d8c[_0x43d552('0xe28')],_0x442d8c[_0x43d552('0x135a')]={'fields':_0x43d552('0x10ad'),'limit':0xa,'page':0x1},_0x442d8c[_0x43d552('0x24eb')]=_0x2ceef4,_0x442d8c[_0x43d552('0x16a')]=_0x321955,_0x442d8c[_0x43d552('0x173b')]=_0x5cfca8,_0x442d8c['getChatWebsiteChatCannedAnswers']=_0x580c2f,_0x442d8c['createOrEditChatWebsiteChatCannedAnswer']=_0x533400,_0x442d8c['exportSelectedChatWebsiteChatCannedAnswers']=_0x3eb62b,_0x442d8c['deleteChatWebsiteChatCannedAnswer']=_0xebe2c6,_0x442d8c[_0x43d552('0x742')]=_0x357ca2;function _0x2ceef4(_0x98035d,_0x4d44f5){const _0x4f9712=_0x43d552;_0x442d8c[_0x4f9712('0x169c')]=_0x98035d,_0x442d8c['crudPermissions']=typeof _0x4d44f5!==_0x4f9712('0xedb')?_0x4d44f5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x442d8c['query']['ChatWebsiteId']=_0x442d8c[_0x4f9712('0x169c')]['id'],_0x442d8c[_0x4f9712('0x135a')]['id']=_0x442d8c['chatWebsite']['id'],_0x580c2f();}function _0x321955(_0x2b951f,_0x4b6a0a){const _0x52b0f5=_0x43d552,_0x5819a0=_0x30d800[_0x52b0f5('0x112e')]()[_0x52b0f5('0x14e4')](_0x52b0f5('0x636'))[_0x52b0f5('0x93e')](_0x52b0f5('0x1670')+(_0x2b951f[_0x52b0f5('0x1a8d')]||_0x2b951f['id']&&_0x283545()['upperFirst'](_0x52b0f5('0x1896'))+_0x2b951f['id']||_0x52b0f5('0x14f'))+_0x52b0f5('0x229e')+_0x52b0f5('0x27c7'))[_0x52b0f5('0x10bc')]('delete\x20chatCannedAnswer')[_0x52b0f5('0x24d0')](_0x4b6a0a)['ok']('OK')[_0x52b0f5('0x1801')](_0x52b0f5('0x1d8d'));_0x30d800['show'](_0x5819a0)['then'](function(){_0xebe2c6(_0x2b951f);},function(){const _0x22adf6=_0x52b0f5;console[_0x22adf6('0x10df')](_0x22adf6('0x1d8d'));});}function _0x5cfca8(_0x5ba768){const _0x4735e3=_0x43d552;_0x442d8c[_0x4735e3('0x799')]=_0x5ba768||{'count':0x0,'rows':[]};}function _0x580c2f(){const _0x1b3258=_0x43d552;_0x442d8c[_0x1b3258('0x135a')][_0x1b3258('0x19e')]=(_0x442d8c[_0x1b3258('0x135a')][_0x1b3258('0x23f5')]-0x1)*_0x442d8c[_0x1b3258('0x135a')]['limit'],_0x442d8c['promise']=_0x4da6f7['chatWebsite'][_0x1b3258('0x1077')](_0x442d8c[_0x1b3258('0x135a')],_0x5cfca8)['$promise'];}function _0x533400(_0x4ecfca,_0x236971){const _0x110f61=_0x43d552;_0x30d800[_0x110f61('0x2fa')]({'controller':'CreateOrEditChatCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x6daacf,'parent':angular['element'](_0x3a3780[_0x110f61('0x945')]),'targetEvent':_0x4ecfca,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x442d8c[_0x110f61('0x169c')],'chatCannedAnswer':_0x236971,'chatCannedAnswers':_0x442d8c[_0x110f61('0x799')][_0x110f61('0x25df')],'license':null,'setting':null,'crudPermissions':_0x442d8c[_0x110f61('0xe28')]}});}function _0xebe2c6(_0xa7c8f8){const _0x66724d=_0x43d552;_0x4da6f7[_0x66724d('0x1870')][_0x66724d('0x17c4')]({'id':_0xa7c8f8['id']})[_0x66724d('0x1714')][_0x66724d('0x2788')](function(){const _0x43db86=_0x66724d;_0x283545()['remove'](_0x442d8c[_0x43db86('0x799')][_0x43db86('0x25df')],{'id':_0xa7c8f8['id']}),_0x442d8c[_0x43db86('0x799')][_0x43db86('0x338')]-=0x1,!_0x442d8c[_0x43db86('0x799')][_0x43db86('0x25df')][_0x43db86('0x2566')]&&_0x580c2f(),_0x58365d['success']({'title':_0x43db86('0x25a2'),'msg':_0xa7c8f8[_0x43db86('0x1a8d')]?_0xa7c8f8[_0x43db86('0x1a8d')]+_0x43db86('0x14d4'):''});})['catch'](function(_0x4ff034){const _0x300b64=_0x66724d;if(_0x4ff034[_0x300b64('0x11fc')]&&_0x4ff034[_0x300b64('0x11fc')]['errors']&&_0x4ff034[_0x300b64('0x11fc')][_0x300b64('0x25be')][_0x300b64('0x2566')]){_0x442d8c[_0x300b64('0x25be')]=_0x4ff034[_0x300b64('0x11fc')][_0x300b64('0x25be')]||[{'message':_0x4ff034['toString'](),'type':'SYSTEM:GETchatWebsite'}];for(let _0x4f3c4d=0x0;_0x4f3c4d<_0x4ff034['data'][_0x300b64('0x25be')][_0x300b64('0x2566')];_0x4f3c4d++){_0x58365d[_0x300b64('0x5e8')]({'title':_0x4ff034[_0x300b64('0x11fc')][_0x300b64('0x25be')][_0x4f3c4d][_0x300b64('0x1d7')],'msg':_0x4ff034['data'][_0x300b64('0x25be')][_0x4f3c4d][_0x300b64('0x15e2')]});}}else _0x58365d[_0x300b64('0x5e8')]({'title':_0x4ff034[_0x300b64('0x1b51')]?_0x300b64('0x15d1')+_0x4ff034[_0x300b64('0x1b51')]+_0x300b64('0x1b0b')+_0x4ff034[_0x300b64('0x22ce')]:'SYSTEM:GETchatWebsite','msg':_0x4ff034[_0x300b64('0x11fc')]?JSON['stringify'](_0x4ff034['data'][_0x300b64('0x15e2')]):_0x4ff034[_0x300b64('0x15e2')]||_0x4ff034[_0x300b64('0x17df')]()});});}function _0x3eb62b(){const _0x307c86=_0x43d552,_0x125008=angular[_0x307c86('0x2669')](_0x442d8c[_0x307c86('0x1b06')]);return _0x442d8c['selectedChatWebsiteChatCannedAnswers']=[],_0x125008;}function _0x357ca2(_0x486985){const _0xc779cf=_0x43d552,_0x585a6b=_0x30d800[_0xc779cf('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?')[_0xc779cf('0x93e')](_0xc779cf('0x1670')+_0x442d8c[_0xc779cf('0x1b06')][_0xc779cf('0x2566')]+_0xc779cf('0xbd')+_0xc779cf('0x27c7'))['ariaLabel'](_0xc779cf('0x2118'))[_0xc779cf('0x24d0')](_0x486985)['ok']('OK')[_0xc779cf('0x1801')]('CANCEL');_0x30d800[_0xc779cf('0x2fa')](_0x585a6b)[_0xc779cf('0x2788')](function(){const _0x3875ea=_0xc779cf;_0x442d8c[_0x3875ea('0x1b06')][_0x3875ea('0x1534')](function(_0x5bcde7){_0xebe2c6(_0x5bcde7);}),_0x442d8c[_0x3875ea('0x1b06')]=[];});}let _0x3b71fd=!![],_0x2470ac=0x1;_0x599f93[_0x43d552('0x1662')](_0x43d552('0x2571'),function(_0x4f41d3,_0x28cf17){const _0x255c1b=_0x43d552;_0x3b71fd?_0x5388f1(function(){_0x3b71fd=![];}):(!_0x28cf17&&(_0x2470ac=_0x442d8c['query'][_0x255c1b('0x23f5')]),_0x4f41d3!==_0x28cf17&&(_0x442d8c[_0x255c1b('0x135a')][_0x255c1b('0x23f5')]=0x1),!_0x4f41d3&&(_0x442d8c['query']['page']=_0x2470ac),_0x580c2f());});}const _0x1b3d54=_0x39ee2e;_0x88e3f9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1e41'),_0x34e79e('0x14f'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x88e3f9(_0x22a0a9,_0xb0a44b,_0x312145,_0x5282ec,_0x36a7ea,_0x87210b,_0x24598c,_0x5c4e91,_0x2fe871,_0x2e9a4e,_0x5af457,_0x178f4a,_0x5068af,_0x177863){const _0x593e05=_0x34e79e,_0xdbb710=this;_0xdbb710[_0x593e05('0x9cb')]=_0x5af457[_0x593e05('0x24cc')](),_0xdbb710[_0x593e05('0x25be')]=[],_0xdbb710[_0x593e05('0x1af0')]=_0x5068af,_0xdbb710[_0x593e05('0x130d')]=_0x178f4a,_0xdbb710[_0x593e05('0xe28')]=_0x177863,_0xdbb710['hasModulePermissions']={},_0xdbb710['passwordPattern']=_0xdbb710['setting']&&_0xdbb710[_0x593e05('0x1af0')][_0x593e05('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xdbb710[_0x593e05('0x14e4')]=_0x593e05('0x1772'),_0xdbb710[_0x593e05('0x14f')]=angular[_0x593e05('0x2669')](_0x2fe871),_0xdbb710[_0x593e05('0x1e41')]=_0x5c4e91,_0xdbb710[_0x593e05('0x31e')]=![];!_0xdbb710[_0x593e05('0x14f')]&&(_0xdbb710[_0x593e05('0x14f')]={},_0xdbb710['title']='CHAT.NEW_CHATCANNEDANSWER',_0xdbb710[_0x593e05('0x31e')]=!![]);_0xb0a44b[_0x593e05('0x4b9')]['id']&&(_0xdbb710[_0x593e05('0x14f')]['ChatWebsiteId']=_0xb0a44b[_0x593e05('0x4b9')]['id']);_0xdbb710[_0x593e05('0x157a')]=_0x5b123f,_0xdbb710[_0x593e05('0xf18')]=_0x344ae2,_0xdbb710[_0x593e05('0x1040')]=_0x1e9da7,_0xdbb710[_0x593e05('0x2601')]=_0xc67561,_0xdbb710[_0x593e05('0xca7')]=_0x37d44b;function _0x5b123f(){const _0x4a9b9c=_0x593e05;_0xdbb710[_0x4a9b9c('0x25be')]=[],_0x2e9a4e['cannedAnswer'][_0x4a9b9c('0xbd0')](_0xdbb710[_0x4a9b9c('0x14f')])[_0x4a9b9c('0x1714')][_0x4a9b9c('0x2788')](function(_0x679186){const _0x3d327d=_0x4a9b9c;_0xdbb710[_0x3d327d('0x1e41')][_0x3d327d('0xc51')](_0x679186['toJSON']()),_0x24598c[_0x3d327d('0x173b')]({'title':'ChatCannedAnswer\x20properly\x20created','msg':_0xdbb710['chatCannedAnswer'][_0x3d327d('0x1a8d')]?_0xdbb710[_0x3d327d('0x14f')][_0x3d327d('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x37d44b(_0x679186);})['catch'](function(_0x279415){const _0x21409c=_0x4a9b9c;if(_0x279415['data']&&_0x279415['data']['errors']&&_0x279415['data'][_0x21409c('0x25be')][_0x21409c('0x2566')]){_0xdbb710['errors']=_0x279415[_0x21409c('0x11fc')][_0x21409c('0x25be')]||[{'message':_0x279415[_0x21409c('0x17df')](),'type':_0x21409c('0x11b')}];for(let _0x59c63d=0x0;_0x59c63d<_0x279415['data'][_0x21409c('0x25be')][_0x21409c('0x2566')];_0x59c63d+=0x1){_0x24598c[_0x21409c('0x5e8')]({'title':_0x279415[_0x21409c('0x11fc')][_0x21409c('0x25be')][_0x59c63d][_0x21409c('0x1d7')],'msg':_0x279415[_0x21409c('0x11fc')][_0x21409c('0x25be')][_0x59c63d][_0x21409c('0x15e2')]});}}else _0x24598c[_0x21409c('0x5e8')]({'title':_0x279415[_0x21409c('0x1b51')]?_0x21409c('0x15d1')+_0x279415[_0x21409c('0x1b51')]+_0x21409c('0x1b0b')+_0x279415['statusText']:'api.cannedAnswer.save','msg':_0x279415[_0x21409c('0x11fc')]?JSON[_0x21409c('0x1be0')](_0x279415[_0x21409c('0x11fc')][_0x21409c('0x15e2')]):_0x279415[_0x21409c('0x17df')]()});});}function _0x344ae2(){const _0x3d7748=_0x593e05;_0xdbb710[_0x3d7748('0x25be')]=[],_0x2e9a4e[_0x3d7748('0x1870')][_0x3d7748('0x2740')]({'id':_0xdbb710[_0x3d7748('0x14f')]['id']},_0xdbb710[_0x3d7748('0x14f')])['$promise']['then'](function(_0x341402){const _0x40373a=_0x3d7748,_0xa343f=_0x283545()[_0x40373a('0x20e8')](_0xdbb710[_0x40373a('0x1e41')],{'id':_0x341402['id']});_0xa343f&&_0x283545()[_0x40373a('0x2503')](_0xa343f,_0x283545()['pick'](_0x341402[_0x40373a('0x1cbf')](),_0x283545()[_0x40373a('0x2163')](_0xa343f))),_0x24598c[_0x40373a('0x173b')]({'title':_0x40373a('0x1244'),'msg':_0xdbb710[_0x40373a('0x14f')][_0x40373a('0x1a8d')]?_0xdbb710['chatCannedAnswer'][_0x40373a('0x1a8d')]+_0x40373a('0x24cf'):''}),_0x37d44b(_0x341402);})[_0x3d7748('0x1cb5')](function(_0x452e2c){const _0x58df30=_0x3d7748;if(_0x452e2c['data']&&_0x452e2c[_0x58df30('0x11fc')]['errors']&&_0x452e2c['data'][_0x58df30('0x25be')][_0x58df30('0x2566')]){_0xdbb710['errors']=_0x452e2c[_0x58df30('0x11fc')][_0x58df30('0x25be')]||[{'message':_0x452e2c[_0x58df30('0x17df')](),'type':_0x58df30('0x244')}];for(let _0x2f9c00=0x0;_0x2f9c00<_0x452e2c[_0x58df30('0x11fc')]['errors'][_0x58df30('0x2566')];_0x2f9c00++){_0x24598c[_0x58df30('0x5e8')]({'title':_0x452e2c[_0x58df30('0x11fc')][_0x58df30('0x25be')][_0x2f9c00][_0x58df30('0x1d7')],'msg':_0x452e2c[_0x58df30('0x11fc')][_0x58df30('0x25be')][_0x2f9c00][_0x58df30('0x15e2')]});}}else _0x24598c['error']({'title':_0x452e2c[_0x58df30('0x1b51')]?_0x58df30('0x15d1')+_0x452e2c[_0x58df30('0x1b51')]+'\x20-\x20'+_0x452e2c['statusText']:'api.cannedAnswer.update','msg':_0x452e2c[_0x58df30('0x11fc')]?JSON[_0x58df30('0x1be0')](_0x452e2c['data']['message']):_0x452e2c[_0x58df30('0x17df')]()});});}function _0x1e9da7(_0x461846){const _0x32c71c=_0x593e05;_0xdbb710[_0x32c71c('0x25be')]=[];const _0x38482c=_0x5282ec[_0x32c71c('0x112e')]()[_0x32c71c('0x14e4')](_0x32c71c('0x458'))['content'](_0x32c71c('0x17a6'))[_0x32c71c('0x10bc')]('Delete\x20ChatCannedAnswer')['ok']('Delete')[_0x32c71c('0x1801')](_0x32c71c('0x1481'))[_0x32c71c('0x24d0')](_0x461846);_0x5282ec['show'](_0x38482c)[_0x32c71c('0x2788')](function(){const _0x4b7e4b=_0x32c71c;_0x2e9a4e[_0x4b7e4b('0x1870')][_0x4b7e4b('0x17c4')]({'id':_0xdbb710[_0x4b7e4b('0x14f')]['id']})[_0x4b7e4b('0x1714')][_0x4b7e4b('0x2788')](function(){const _0x375e24=_0x4b7e4b;_0x283545()['remove'](_0xdbb710[_0x375e24('0x1e41')],{'id':_0xdbb710[_0x375e24('0x14f')]['id']}),_0x24598c['success']({'title':_0x375e24('0x3a'),'msg':(_0xdbb710[_0x375e24('0x14f')][_0x375e24('0x1a8d')]||_0x375e24('0x14f'))+_0x375e24('0x14d4')}),_0x37d44b(_0xdbb710['chatCannedAnswer']);})[_0x4b7e4b('0x1cb5')](function(_0x221101){const _0x8b65f8=_0x4b7e4b;if(_0x221101[_0x8b65f8('0x11fc')]&&_0x221101[_0x8b65f8('0x11fc')][_0x8b65f8('0x25be')]&&_0x221101[_0x8b65f8('0x11fc')][_0x8b65f8('0x25be')][_0x8b65f8('0x2566')]){_0xdbb710['errors']=_0x221101['data'][_0x8b65f8('0x25be')]||[{'message':_0x221101[_0x8b65f8('0x17df')](),'type':_0x8b65f8('0x1cad')}];for(let _0x39ef9a=0x0;_0x39ef9a<_0x221101['data']['errors']['length'];_0x39ef9a++){_0x24598c[_0x8b65f8('0x5e8')]({'title':_0x221101['data'][_0x8b65f8('0x25be')][_0x39ef9a][_0x8b65f8('0x1d7')],'msg':_0x221101['data']['errors'][_0x39ef9a][_0x8b65f8('0x15e2')]});}}else _0x24598c['error']({'title':_0x221101[_0x8b65f8('0x1b51')]?'API:'+_0x221101[_0x8b65f8('0x1b51')]+'\x20-\x20'+_0x221101[_0x8b65f8('0x22ce')]:_0x8b65f8('0x1cad'),'msg':_0x221101[_0x8b65f8('0x11fc')]?JSON[_0x8b65f8('0x1be0')](_0x221101[_0x8b65f8('0x11fc')][_0x8b65f8('0x15e2')]):_0x221101[_0x8b65f8('0x15e2')]||_0x221101[_0x8b65f8('0x17df')]()});});},function(){});}function _0xc67561(_0x4df55d){return _0x4df55d===null?undefined:new Date(_0x4df55d);}function _0x37d44b(_0x49970e){const _0x5a23d9=_0x593e05;_0x5282ec[_0x5a23d9('0x19d')](_0x49970e);}}const _0x2db53e=_0x88e3f9;_0x3d8133[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x3d8133(_0xfc77fc,_0x8811b1,_0x590cc1,_0x2a8d7e,_0x540850,_0xe73efe,_0x470c53,_0x327c76,_0xb7916c,_0x2a25ac,_0x8df572){const _0x51803=_0x34e79e,_0x18ea4a=this;_0x18ea4a['currentUser']=_0x8df572[_0x51803('0x24cc')](),_0x18ea4a[_0x51803('0x818')]={'count':0x0,'rows':[]},_0x18ea4a[_0x51803('0x25d8')]=[],_0x18ea4a['crudPermissions'],_0x18ea4a[_0x51803('0x21c2')]={'first':_0x51803('0x1b84'),'second':'2nd','third':_0x51803('0x188d')},_0x18ea4a[_0x51803('0x135a')]={'fields':_0x51803('0x258b'),'sort':_0x51803('0x1cee'),'limit':0xa,'page':0x1},_0x18ea4a[_0x51803('0x24eb')]=_0x18e698,_0x18ea4a[_0x51803('0x16a')]=_0x1fa875,_0x18ea4a[_0x51803('0x173b')]=_0x34f288,_0x18ea4a[_0x51803('0x2069')]=_0x2cdcc6,_0x18ea4a['createOrEditDisposition']=_0x4e9928,_0x18ea4a[_0x51803('0x25ba')]=_0x25e3c4,_0x18ea4a[_0x51803('0x1550')]=_0x31245e,_0x18ea4a[_0x51803('0x1e3b')]=_0x58ed15,_0x18ea4a[_0x51803('0x3b4')]=_0x3d98a5,_0x18ea4a[_0x51803('0xe69')]=_0x45ed33;function _0x18e698(_0x1dfdd9,_0x12b82e){const _0x50183b=_0x51803;_0x18ea4a[_0x50183b('0x169c')]=_0x1dfdd9||{},_0x18ea4a[_0x50183b('0xe28')]=typeof _0x12b82e!==_0x50183b('0xedb')?_0x12b82e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x18ea4a[_0x50183b('0x135a')][_0x50183b('0x965')]=_0x18ea4a['chatWebsite']['id'],_0x18ea4a['query']['id']=_0x18ea4a[_0x50183b('0x169c')]['id'],_0x2cdcc6();}function _0x4e9928(_0x18a3cc,_0x48c2d1){const _0x2b4aa0=_0x51803;_0x540850['show']({'controller':_0x2b4aa0('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x2b4aa0('0x16b1')](_0xe73efe['body']),'targetEvent':_0x18a3cc,'clickOutsideToClose':!![],'locals':{'disposition':_0x48c2d1,'dispositions':_0x18ea4a['dispositions'][_0x2b4aa0('0x25df')],'model':{'id':_0x18ea4a[_0x2b4aa0('0x169c')]['id'],'field':_0x2b4aa0('0x965')},'license':null,'setting':null,'crudPermissions':_0x18ea4a['crudPermissions']}})[_0x2b4aa0('0x2788')](function(_0x27dee4){if(_0x27dee4)_0x2cdcc6();});}function _0x1fa875(_0x473669,_0x289dfa){const _0x4dcf32=_0x51803,_0x5d0770=_0x283545()[_0x4dcf32('0xc5d')](_0x18ea4a[_0x4dcf32('0x818')]['rows'],['ParentId',_0x473669['id']]),_0x45deda=_0x540850[_0x4dcf32('0x112e')]()['title'](_0x327c76[_0x4dcf32('0x1b11')](_0x4dcf32('0x29e')))[_0x4dcf32('0x1c98')](_0x327c76[_0x4dcf32('0x1b11')](_0x4dcf32('0x5b')+(_0x5d0770?_0x4dcf32('0x40a'):_0x4dcf32('0x281c')),{'name':_0x473669[_0x4dcf32('0x1a8d')]}))[_0x4dcf32('0x10bc')](_0x4dcf32('0x1f86'))[_0x4dcf32('0x24d0')](_0x289dfa)['ok']('OK')['cancel'](_0x327c76[_0x4dcf32('0x1b11')](_0x4dcf32('0x1061')));_0x540850['show'](_0x45deda)['then'](function(){_0x25e3c4(_0x473669);});}function _0x34f288(_0x3e3ece){_0x18ea4a['dispositions']=_0x3e3ece||{'count':0x0,'rows':[]};}function _0x2cdcc6(){const _0x2d8b44=_0x51803;_0x18ea4a[_0x2d8b44('0x135a')]['offset']=(_0x18ea4a['query']['page']-0x1)*_0x18ea4a[_0x2d8b44('0x135a')][_0x2d8b44('0x68e')],_0x18ea4a['promise']=_0xb7916c[_0x2d8b44('0x169c')][_0x2d8b44('0x2069')](_0x18ea4a[_0x2d8b44('0x135a')],_0x34f288)[_0x2d8b44('0x1714')];}function _0x25e3c4(_0x195f9d){const _0x39f749=_0x51803;_0xb7916c[_0x39f749('0x1db2')]['delete']({'id':_0x195f9d['id']})['$promise'][_0x39f749('0x2788')](function(){const _0x4bd1ac=_0x39f749;_0x2cdcc6(),_0x2a25ac[_0x4bd1ac('0x173b')]({'title':_0x327c76[_0x4bd1ac('0x1b11')](_0x4bd1ac('0x156e'))});})[_0x39f749('0x1cb5')](function(_0x3de587){const _0x41c929=_0x39f749;if(_0x3de587[_0x41c929('0x11fc')]&&_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x25be')]&&_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x25be')][_0x41c929('0x2566')]){_0x18ea4a['errors']=_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x25be')]||[{'message':_0x3de587[_0x41c929('0x17df')](),'type':_0x41c929('0x1410')}];for(let _0x32f33f=0x0;_0x32f33f<_0x3de587['data']['errors'][_0x41c929('0x2566')];_0x32f33f++){_0x2a25ac['error']({'title':_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x25be')][_0x32f33f]['type'],'msg':_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x25be')][_0x32f33f][_0x41c929('0x15e2')]});}}else _0x2a25ac[_0x41c929('0x5e8')]({'title':_0x3de587[_0x41c929('0x1b51')]?_0x41c929('0x15d1')+_0x3de587[_0x41c929('0x1b51')]+_0x41c929('0x1b0b')+_0x3de587['statusText']:_0x41c929('0x1410'),'msg':_0x3de587[_0x41c929('0x11fc')]?JSON[_0x41c929('0x1be0')](_0x3de587[_0x41c929('0x11fc')][_0x41c929('0x15e2')]):_0x3de587[_0x41c929('0x15e2')]||_0x3de587['toString']()});});}function _0x31245e(){const _0x51b662=_0x51803,_0x4585f0=angular['copy'](_0x18ea4a[_0x51b662('0x25d8')]);return _0x18ea4a[_0x51b662('0x25d8')]=[],_0x4585f0;}function _0x58ed15(_0x118338){const _0x199728=_0x51803,_0x1018cc=_0x540850[_0x199728('0x112e')]()[_0x199728('0x14e4')](_0x327c76[_0x199728('0x1b11')](_0x199728('0x63d')))[_0x199728('0x1c98')](_0x327c76[_0x199728('0x1b11')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x18ea4a['selectedDispositions']['length']}))[_0x199728('0x10bc')](_0x199728('0x248b'))[_0x199728('0x24d0')](_0x118338)['ok']('OK')[_0x199728('0x1801')](_0x327c76[_0x199728('0x1b11')](_0x199728('0x1061')));_0x540850[_0x199728('0x2fa')](_0x1018cc)['then'](function(){const _0x23cf09=_0x199728;_0x18ea4a[_0x23cf09('0x25d8')][_0x23cf09('0x1534')](function(_0x320651){_0x25e3c4(_0x320651);}),_0x18ea4a[_0x23cf09('0x25d8')]=[];});}function _0x3d98a5(){_0x18ea4a['selectedDispositions']=[];}function _0x45ed33(){const _0x1a5184=_0x51803;_0x18ea4a[_0x1a5184('0x25d8')]=_0x18ea4a[_0x1a5184('0x818')][_0x1a5184('0x25df')];}let _0x3f2900=!![],_0x2b8a18=0x1;_0xfc77fc[_0x51803('0x1662')](_0x51803('0x2571'),function(_0x54f7ff,_0x4e4cde){const _0x2e978f=_0x51803;_0x3f2900?_0x470c53(function(){_0x3f2900=![];}):(!_0x4e4cde&&(_0x2b8a18=_0x18ea4a[_0x2e978f('0x135a')]['page']),_0x54f7ff!==_0x4e4cde&&(_0x18ea4a[_0x2e978f('0x135a')]['page']=0x1),!_0x54f7ff&&(_0x18ea4a[_0x2e978f('0x135a')][_0x2e978f('0x23f5')]=_0x2b8a18),_0x2cdcc6());});}const _0x30d950=_0x3d8133;_0x1a56f5[_0x34e79e('0x2d9')]=['$mdDialog','$document','api'];function _0x1a56f5(_0x528f77,_0x5a584b,_0x26dd4e){const _0x1bdb0f=_0x34e79e,_0x458bff=this;_0x458bff['chatWebsite']={},_0x458bff[_0x1bdb0f('0x169')]={},_0x458bff[_0x1bdb0f('0x105d')]=[{'type':_0x1bdb0f('0x1c1b'),'name':_0x1bdb0f('0x1742'),'icon':_0x1bdb0f('0x1bb7')},{'type':_0x1bdb0f('0x16b4'),'name':'Select','icon':_0x1bdb0f('0x15e3')},{'type':_0x1bdb0f('0x20f6'),'name':'Input','icon':_0x1bdb0f('0x1733')},{'type':_0x1bdb0f('0x1215'),'name':_0x1bdb0f('0xaf5'),'icon':_0x1bdb0f('0x122f')},{'type':_0x1bdb0f('0x224a'),'name':_0x1bdb0f('0x65e'),'icon':_0x1bdb0f('0xff2')},{'type':'checkboxes','name':'Checkboxes','icon':_0x1bdb0f('0x1935')},{'type':'agreement','name':'Agreement','icon':_0x1bdb0f('0x978')}],_0x458bff[_0x1bdb0f('0x24eb')]=_0x40ddd6,_0x458bff['up']=_0x4164b3,_0x458bff[_0x1bdb0f('0x146a')]=_0x188ed2,_0x458bff[_0x1bdb0f('0x9b8')]=_0x2b16ea,_0x458bff[_0x1bdb0f('0x1a90')]=_0x3808cc;function _0x40ddd6(_0x39782b){const _0xb7946=_0x1bdb0f;_0x458bff['fields']=[],_0x458bff[_0xb7946('0x132')]=[],_0x458bff[_0xb7946('0x23b2')]=['id',_0xb7946('0x172'),_0xb7946('0x5f'),_0xb7946('0x354'),'CompanyId',_0xb7946('0x1714'),_0xb7946('0x187a')],_0x458bff[_0xb7946('0x169c')]=_0x39782b,_0x283545()[_0xb7946('0x213d')](_0x458bff['chatWebsite']['offlineForm'])&&(_0x458bff[_0xb7946('0x169c')]['offlineForm']={'items':[],'fromKey':null}),_0x26dd4e['cmList'][_0xb7946('0x100b')]({'id':_0x458bff[_0xb7946('0x169c')][_0xb7946('0x354')]})[_0xb7946('0x1714')]['then'](function(_0x54f458){const _0x44d898=_0xb7946;for(let _0x134eac=0x0;_0x134eac<_0x54f458[_0x44d898('0x25df')][_0x44d898('0x2566')];_0x134eac++){_0x458bff[_0x44d898('0x132')][_0x44d898('0x13e3')]({'key':'cf_'+_0x54f458[_0x44d898('0x25df')][_0x134eac]['id'],'value':_0x54f458[_0x44d898('0x25df')][_0x134eac]['alias']});}return _0x26dd4e['cmContact'][_0x44d898('0x15f8')]()['$promise'];})[_0xb7946('0x2788')](function(_0x430f6b){const _0xc8365f=_0xb7946,_0x2f8c24=_0x283545()[_0xc8365f('0x2163')](_0x430f6b);for(let _0x3a887d=0x0;_0x3a887d<_0x2f8c24[_0xc8365f('0x2566')];_0x3a887d++){!_0x283545()[_0xc8365f('0x1d4e')](_0x458bff[_0xc8365f('0x23b2')],_0x2f8c24[_0x3a887d])&&!_0x283545()[_0xc8365f('0x993')](_0x2f8c24[_0x3a887d],_0xc8365f('0x249c'))&&_0x458bff[_0xc8365f('0x1578')][_0xc8365f('0xc51')]({'key':_0x2f8c24[_0x3a887d],'value':_0x2f8c24[_0x3a887d]});}return _0x26dd4e[_0xc8365f('0xa72')][_0xc8365f('0x1335')]()[_0xc8365f('0x1714')];})[_0xb7946('0x2788')](function(_0x5a03ba){const _0x36c04b=_0xb7946;_0x458bff[_0x36c04b('0xf76')]=_0x5a03ba[_0x36c04b('0x25df')];})['catch'](function(_0x288d37){const _0x4d48df=_0xb7946;console[_0x4d48df('0x5e8')](_0x288d37);});}function _0x4164b3(_0x20d00f,_0x113790){const _0x5e628e=_0x1bdb0f;if(_0x113790!==0x0){const _0x33b0be=_0x458bff['chatWebsite']['offlineForm'][_0x5e628e('0x117b')][_0x113790-0x1];_0x458bff[_0x5e628e('0x169c')][_0x5e628e('0x169')]['items'][_0x113790]=_0x33b0be,_0x458bff[_0x5e628e('0x169c')][_0x5e628e('0x169')][_0x5e628e('0x117b')][_0x113790-0x1]=angular[_0x5e628e('0x2669')](_0x20d00f);if(_0x458bff['chatWebsite']['offlineForm'][_0x5e628e('0x11e3')]===_0x113790)_0x458bff[_0x5e628e('0x169c')][_0x5e628e('0x169')][_0x5e628e('0x11e3')]--;else _0x458bff[_0x5e628e('0x169c')]['offlineForm']['fromKey']===_0x113790-0x1&&_0x458bff[_0x5e628e('0x169c')]['offlineForm'][_0x5e628e('0x11e3')]++;}}function _0x188ed2(_0x4ac2fd,_0x312bd4){const _0x1d2a2b=_0x1bdb0f;if(_0x312bd4!==_0x458bff[_0x1d2a2b('0x169c')][_0x1d2a2b('0x169')]['items'][_0x1d2a2b('0x2566')]-0x1){const _0x5a902e=_0x458bff[_0x1d2a2b('0x169c')][_0x1d2a2b('0x169')][_0x1d2a2b('0x117b')][_0x312bd4+0x1];_0x458bff['chatWebsite'][_0x1d2a2b('0x169')][_0x1d2a2b('0x117b')][_0x312bd4]=_0x5a902e,_0x458bff[_0x1d2a2b('0x169c')]['offlineForm'][_0x1d2a2b('0x117b')][_0x312bd4+0x1]=angular[_0x1d2a2b('0x2669')](_0x4ac2fd);if(_0x458bff[_0x1d2a2b('0x169c')][_0x1d2a2b('0x169')][_0x1d2a2b('0x11e3')]===_0x312bd4)_0x458bff['chatWebsite']['offlineForm'][_0x1d2a2b('0x11e3')]++;else _0x458bff['chatWebsite'][_0x1d2a2b('0x169')]['fromKey']===_0x312bd4+0x1&&_0x458bff[_0x1d2a2b('0x169c')][_0x1d2a2b('0x169')][_0x1d2a2b('0x11e3')]--;}}function _0x2b16ea(_0x4246bf){const _0x2d40d4=_0x1bdb0f;_0x458bff[_0x2d40d4('0x169c')][_0x2d40d4('0x169')][_0x2d40d4('0x117b')]['push']({'type':_0x4246bf,'cmField':null,'variable':null});}function _0x3808cc(_0x2cb2d2){const _0x178632=_0x1bdb0f,_0x24f396=_0x528f77[_0x178632('0x112e')]()[_0x178632('0x14e4')](_0x178632('0x1184'))['textContent'](_0x178632('0x458'))[_0x178632('0x10bc')](_0x178632('0x1e6c'))['ok']('Ok')[_0x178632('0x1801')](_0x178632('0x1481'));_0x528f77['show'](_0x24f396)[_0x178632('0x2788')](function(){const _0x4292d7=_0x178632;_0x458bff[_0x4292d7('0x169c')][_0x4292d7('0x169')]['items'][_0x4292d7('0x722')](_0x2cb2d2,0x1);});}}const _0x34b3bd=_0x1a56f5;_0x44f1e0[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$document','api'];function _0x44f1e0(_0x2c4505,_0x386ba4,_0x42c635){const _0x222933=_0x34e79e,_0xdcd860=this;_0xdcd860[_0x222933('0x169c')]={},_0xdcd860['onlineForm']={},_0xdcd860[_0x222933('0x105d')]=[{'type':_0x222933('0x1c1b'),'name':_0x222933('0x1742'),'icon':'icon-label'},{'type':'chooseFromList','name':_0x222933('0x8c6'),'icon':_0x222933('0x15e3')},{'type':_0x222933('0x20f6'),'name':_0x222933('0x160f'),'icon':'icon-keyboard'},{'type':_0x222933('0x1215'),'name':_0x222933('0xaf5'),'icon':_0x222933('0x122f')},{'type':_0x222933('0x224a'),'name':'Radio\x20Buttons','icon':'icon-radiobox-marked'},{'type':_0x222933('0xfae'),'name':_0x222933('0x7b6'),'icon':_0x222933('0x1935')},{'type':_0x222933('0x2ff'),'name':_0x222933('0x17ac'),'icon':_0x222933('0x978')}],_0xdcd860[_0x222933('0x24eb')]=_0x40c33c,_0xdcd860['up']=_0x6982a4,_0xdcd860[_0x222933('0x146a')]=_0x1bc453,_0xdcd860['add']=_0x968ea0,_0xdcd860['remove']=_0x5747fd;function _0x40c33c(_0x1c13d0){const _0x40a764=_0x222933;_0xdcd860[_0x40a764('0x1578')]=[],_0xdcd860['customFields']=[],_0xdcd860[_0x40a764('0x23b2')]=['id',_0x40a764('0x172'),_0x40a764('0x5f'),_0x40a764('0x354'),'CompanyId',_0x40a764('0x1714'),_0x40a764('0x187a')],_0xdcd860[_0x40a764('0x169c')]=_0x1c13d0,_0x283545()[_0x40a764('0x213d')](_0xdcd860[_0x40a764('0x169c')][_0x40a764('0xacd')])&&(_0xdcd860[_0x40a764('0x169c')]['onlineForm']={'items':[],'fromKey':null}),_0x42c635[_0x40a764('0x1ba4')][_0x40a764('0x100b')]({'id':_0xdcd860[_0x40a764('0x169c')]['ListId']})[_0x40a764('0x1714')]['then'](function(_0x445eee){const _0x325389=_0x40a764;for(let _0x25a088=0x0;_0x25a088<_0x445eee[_0x325389('0x25df')][_0x325389('0x2566')];_0x25a088++){_0xdcd860[_0x325389('0x132')][_0x325389('0x13e3')]({'key':_0x325389('0x249c')+_0x445eee[_0x325389('0x25df')][_0x25a088]['id'],'value':_0x445eee[_0x325389('0x25df')][_0x25a088][_0x325389('0xd83')]});}return _0x42c635[_0x325389('0xa83')][_0x325389('0x15f8')]()['$promise'];})[_0x40a764('0x2788')](function(_0x59a445){const _0x3457f1=_0x40a764,_0x56de85=_0x283545()[_0x3457f1('0x2163')](_0x59a445);for(let _0x15d887=0x0;_0x15d887<_0x56de85[_0x3457f1('0x2566')];_0x15d887++){!_0x283545()[_0x3457f1('0x1d4e')](_0xdcd860[_0x3457f1('0x23b2')],_0x56de85[_0x15d887])&&!_0x283545()[_0x3457f1('0x993')](_0x56de85[_0x15d887],_0x3457f1('0x249c'))&&_0xdcd860['fields'][_0x3457f1('0xc51')]({'key':_0x56de85[_0x15d887],'value':_0x56de85[_0x15d887]});}return _0x42c635['variable'][_0x3457f1('0x1335')]()['$promise'];})[_0x40a764('0x2788')](function(_0x57d4f6){const _0x537c14=_0x40a764;_0xdcd860['variables']=_0x57d4f6[_0x537c14('0x25df')];})[_0x40a764('0x1cb5')](function(_0x3b4449){const _0x1a8d2c=_0x40a764;console[_0x1a8d2c('0x5e8')](_0x3b4449);});}function _0x6982a4(_0x386c9f,_0x1a3ebd){const _0x42ece7=_0x222933;if(_0x1a3ebd!==0x0){const _0x410314=_0xdcd860[_0x42ece7('0x169c')][_0x42ece7('0xacd')][_0x42ece7('0x117b')][_0x1a3ebd-0x1];_0xdcd860['chatWebsite']['onlineForm']['items'][_0x1a3ebd]=_0x410314,_0xdcd860[_0x42ece7('0x169c')][_0x42ece7('0xacd')][_0x42ece7('0x117b')][_0x1a3ebd-0x1]=angular['copy'](_0x386c9f);if(_0xdcd860[_0x42ece7('0x169c')][_0x42ece7('0xacd')][_0x42ece7('0x11e3')]===_0x1a3ebd)_0xdcd860[_0x42ece7('0x169c')][_0x42ece7('0xacd')][_0x42ece7('0x11e3')]--;else _0xdcd860[_0x42ece7('0x169c')][_0x42ece7('0xacd')][_0x42ece7('0x11e3')]===_0x1a3ebd-0x1&&_0xdcd860['chatWebsite'][_0x42ece7('0xacd')][_0x42ece7('0x11e3')]++;}}function _0x1bc453(_0x3bc2ac,_0x1d7f20){const _0x144bc9=_0x222933;if(_0x1d7f20!==_0xdcd860['chatWebsite'][_0x144bc9('0xacd')][_0x144bc9('0x117b')][_0x144bc9('0x2566')]-0x1){const _0x3d67bc=_0xdcd860[_0x144bc9('0x169c')]['onlineForm'][_0x144bc9('0x117b')][_0x1d7f20+0x1];_0xdcd860[_0x144bc9('0x169c')][_0x144bc9('0xacd')][_0x144bc9('0x117b')][_0x1d7f20]=_0x3d67bc,_0xdcd860['chatWebsite'][_0x144bc9('0xacd')][_0x144bc9('0x117b')][_0x1d7f20+0x1]=angular[_0x144bc9('0x2669')](_0x3bc2ac);if(_0xdcd860[_0x144bc9('0x169c')]['onlineForm']['fromKey']===_0x1d7f20)_0xdcd860[_0x144bc9('0x169c')]['onlineForm']['fromKey']++;else _0xdcd860['chatWebsite'][_0x144bc9('0xacd')][_0x144bc9('0x11e3')]===_0x1d7f20+0x1&&_0xdcd860['chatWebsite']['onlineForm'][_0x144bc9('0x11e3')]--;}}function _0x968ea0(_0x2af488){const _0x48538a=_0x222933;_0xdcd860[_0x48538a('0x169c')][_0x48538a('0xacd')][_0x48538a('0x117b')][_0x48538a('0x13e3')]({'type':_0x2af488,'cmField':null,'variable':null});}function _0x5747fd(_0x13d88f){const _0x5924fd=_0x222933,_0x2d7352=_0x2c4505[_0x5924fd('0x112e')]()[_0x5924fd('0x14e4')](_0x5924fd('0x1184'))[_0x5924fd('0x1a95')](_0x5924fd('0x458'))['ariaLabel'](_0x5924fd('0x1e6c'))['ok']('Ok')[_0x5924fd('0x1801')](_0x5924fd('0x1481'));_0x2c4505['show'](_0x2d7352)[_0x5924fd('0x2788')](function(){const _0x30b176=_0x5924fd;_0xdcd860[_0x30b176('0x169c')][_0x30b176('0xacd')][_0x30b176('0x11e3')]===_0x13d88f&&(_0xdcd860[_0x30b176('0x169c')]['onlineForm'][_0x30b176('0x11e3')]=null),_0xdcd860[_0x30b176('0x169c')][_0x30b176('0xacd')][_0x30b176('0x117b')][_0x30b176('0x722')](_0x13d88f,0x1),!_0xdcd860[_0x30b176('0x169c')][_0x30b176('0xacd')]['items']['length']&&(_0xdcd860[_0x30b176('0x169c')][_0x30b176('0xacd')][_0x30b176('0x11e3')]=null);});}}const _0x4f9b9f=_0x44f1e0;_0x49671c['$inject']=['$cookies',_0x34e79e('0xd57')];function _0x49671c(_0xb20daa,_0x10527f){const _0x287ba3=_0x34e79e,_0x1e52c7=this,_0x54ad51=0x8,_0x36e2bf=_0x54ad51*0x400*0x400;_0x1e52c7[_0x287ba3('0x169c')]={},_0x1e52c7[_0x287ba3('0xe28')],_0x1e52c7[_0x287ba3('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x36e2bf,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1e52c7[_0x287ba3('0x2793')]={'flow':{}},_0x1e52c7[_0x287ba3('0x189a')]=![],_0x1e52c7[_0x287ba3('0x1573')]=_0xe0217e,_0x1e52c7['upload']=_0x42e08c,_0x1e52c7[_0x287ba3('0xc41')]=_0x3c0a69,_0x1e52c7[_0x287ba3('0x24eb')]=_0x4e5190;function _0x4e5190(_0x3dc6f0,_0x30bec5){const _0xea0d1a=_0x287ba3;_0x1e52c7[_0xea0d1a('0x169c')]=angular['copy'](_0x3dc6f0),_0x1e52c7[_0xea0d1a('0xe28')]=typeof _0x30bec5!==_0xea0d1a('0xedb')?_0x30bec5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1e52c7[_0xea0d1a('0x1fce')][_0xea0d1a('0x159c')]=_0xea0d1a('0xc16')[_0xea0d1a('0x10a4')](_0xea0d1a('0x1d1e'),_0x1e52c7[_0xea0d1a('0x169c')]['id']),_0x1e52c7['chatWebsite'][_0xea0d1a('0x17d5')]=[];}function _0xe0217e(_0x443b7c){const _0x42108a=_0x287ba3,_0x11b69a=[_0x42108a('0x170a'),_0x42108a('0xec2')];if(!_0x283545()['includes'](_0x11b69a,_0x443b7c[_0x42108a('0xa31')]()))return _0x10527f[_0x42108a('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x443b7c[_0x42108a('0xa31')](),'msg':_0x42108a('0x250c')+_0x11b69a[_0x42108a('0x185f')]()}),![];if(_0x443b7c[_0x42108a('0x634')]>_0x36e2bf)return _0x10527f[_0x42108a('0x5e8')]({'title':'File\x20too\x20big','msg':_0x42108a('0x232c')+_0x54ad51+'MB'}),![];const _0x14913f={'id':_0x443b7c[_0x42108a('0x7c8')],'file':_0x443b7c,'type':_0x42108a('0x1c20')};return _0x1e52c7['chatWebsite']['images'][_0x42108a('0xc51')](_0x14913f),!![];}function _0x42e08c(){const _0x2e5d83=_0x287ba3;_0x1e52c7[_0x2e5d83('0x2793')][_0x2e5d83('0x8a4')]['opts'][_0x2e5d83('0x186d')]={'X-Requested-With':_0x2e5d83('0xa34'),'Authorization':'Bearer\x20'+_0xb20daa['get']('motion.token')},_0x1e52c7[_0x2e5d83('0x2793')][_0x2e5d83('0x8a4')][_0x2e5d83('0x1b63')]();}function _0x3c0a69(_0x214da6){const _0x53e2ec=_0x287ba3;angular[_0x53e2ec('0x1534')](_0x1e52c7[_0x53e2ec('0x169c')][_0x53e2ec('0x17d5')],function(_0x51cde4){const _0x43c05c=_0x53e2ec;if(_0x51cde4['id']===_0x214da6[_0x43c05c('0x7c8')]){const _0x490f66=new FileReader();_0x490f66[_0x43c05c('0x1ccc')](_0x51cde4[_0x43c05c('0x3d5')][_0x43c05c('0x3d5')]),_0x490f66[_0x43c05c('0x2468')]=function(_0x53c85f){const _0x3dd017=_0x43c05c;_0x51cde4[_0x3dd017('0x1672')]=_0x53c85f[_0x3dd017('0x159c')][_0x3dd017('0xdb9')];},_0x51cde4[_0x43c05c('0x1d7')]=_0x43c05c('0x157f');}});}}const _0x56bc01=_0x49671c,_0xd5f1c7=_0x18dd13['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html';_0x57c954[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),'$state','$q','$translate',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x57c954(_0x45d4d7,_0xf888b0,_0x12f790,_0x42c7ba,_0x4a49fd,_0x26219a,_0x3e57ba,_0x3249b3,_0x55bb4e,_0x37b2ef,_0x187858){const _0x46c55a=_0x34e79e,_0x3316be=this;_0x3316be['currentUser']=_0x187858[_0x46c55a('0x24cc')](),_0x3316be[_0x46c55a('0x169c')]={},_0x3316be[_0x46c55a('0x1db0')]={'count':0x0,'rows':[]},_0x3316be[_0x46c55a('0xaca')]=[],_0x3316be[_0x46c55a('0xe28')],_0x3316be['query']={'read':_0x46c55a('0x954'),'closed':_0x46c55a('0x954'),'sort':_0x46c55a('0x34b'),'includeAll':_0x46c55a('0x1001'),'limit':0xa,'page':0x1},_0x3316be[_0x46c55a('0x24eb')]=_0x2b81ce,_0x3316be[_0x46c55a('0x16a')]=_0x22e735,_0x3316be['chatInteractionDownload']=_0x1352d7,_0x3316be[_0x46c55a('0x173b')]=_0x56652c,_0x3316be['getChatWebsiteInteractions']=_0x4b97ec,_0x3316be[_0x46c55a('0xdd9')]=_0xf15bac,_0x3316be[_0x46c55a('0x27c6')]=_0x24336f,_0x3316be['exportSelectedChatWebsiteInteractions']=_0x1f5b3a,_0x3316be[_0x46c55a('0x1bd1')]=_0x37149b,_0x3316be['deleteSelectedChatWebsiteInteractions']=_0x53a1bf;function _0x2b81ce(_0x1cfb42,_0x5e7edf){const _0x3936df=_0x46c55a;_0x3316be[_0x3936df('0x169c')]=_0x1cfb42,_0x3316be[_0x3936df('0xe28')]=typeof _0x5e7edf!==_0x3936df('0xedb')?_0x5e7edf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3316be[_0x3936df('0x135a')][_0x3936df('0x965')]=_0x3316be['chatWebsite']['id'],_0x3316be[_0x3936df('0x1e13')]={'fields':_0x4e1b10()},_0x39ba09();}function _0x39ba09(){const _0x4139c3=_0x46c55a;return _0x37b2ef['tag'][_0x4139c3('0x1335')]()[_0x4139c3('0x1714')]['then'](function(_0x43ae7d){_0x3316be['tags']=_0x43ae7d||{'count':0x0,'rows':[]};})[_0x4139c3('0x2788')](function(){const _0x2a4665=_0x4139c3;_0x3316be[_0x2a4665('0xa28')]=_0x1b54d5();});}function _0x1b54d5(){const _0x2db580=_0x46c55a;return[{'name':_0x2db580('0x9ac'),'key':'createdAt','type':_0x2db580('0x1012'),'label':_0x2db580('0x1664')},{'name':'Messages','key':_0x2db580('0x18e8'),'type':_0x2db580('0x983'),'label':_0x2db580('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x2db580('0xe54')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x2db580('0x21d8'),'key':_0x2db580('0x215d'),'type':_0x2db580('0x983'),'label':_0x2db580('0xd0'),'customOptions':[{'value':0x0,'translate':_0x2db580('0xd6c')},{'value':0x1,'translate':_0x2db580('0x977')},{'value':null,'translate':_0x2db580('0xc79')}]},{'name':_0x2db580('0x262d'),'key':_0x2db580('0x3bb'),'type':'select','label':_0x2db580('0x2bd'),'customOptions':[{'value':'null','translate':_0x2db580('0xce3')},{'value':undefined,'translate':_0x2db580('0xc79')}]},{'name':_0x2db580('0x251d'),'key':_0x2db580('0x1764'),'type':_0x2db580('0x9a4'),'label':_0x2db580('0xa54'),'options':_0x3316be[_0x2db580('0xe45')][_0x2db580('0x25df')],'placeholder':_0x2db580('0x263')}];}function _0x4e1b10(){const _0x334164=_0x46c55a;return[{'name':'Id','column':'id','type':_0x334164('0x272c')},{'name':_0x334164('0x1c64'),'column':_0x334164('0x1c64'),'type':_0x334164('0x137e'),'options':{'searchFields':[_0x334164('0x26da'),_0x334164('0x26b9'),'email'],'route':{'model':_0x334164('0xa83'),'action':_0x334164('0x1335'),'params':{'fields':_0x334164('0x1373'),'Contact':_0x334164('0x20bf'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x334164('0x149c')]}},{'name':_0x334164('0x16c9'),'column':'subject','type':_0x334164('0x16db'),'options':{'excludedOperators':['$eq',_0x334164('0x149c')]}},{'name':_0x334164('0x1e8f'),'column':_0x334164('0x550'),'type':_0x334164('0x16db'),'options':{'excludedOperators':[_0x334164('0x1ff9'),_0x334164('0x149c')]}},{'name':_0x334164('0x21d8'),'column':_0x334164('0x215d'),'type':_0x334164('0x983'),'values':[{'id':0x0,'translate':_0x334164('0xd6c')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x334164('0x149c')]}},{'name':_0x334164('0x262d'),'column':_0x334164('0x1832'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x334164('0x1e6a'),'action':_0x334164('0x1335'),'params':{'role':_0x334164('0x188b'),'fields':_0x334164('0x10fe'),'nolimit':!![]}},'searchFields':[_0x334164('0x2831'),_0x334164('0x1a8d')],'extraOperators':['$substring'],'excludedOperators':[_0x334164('0x149c')]}},{'name':_0x334164('0xbcf'),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x334164('0x1764'),'action':_0x334164('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x334164('0x9ac'),'column':_0x334164('0x172'),'type':'date','options':{'excludedOperators':[_0x334164('0x149c')]}},{'name':_0x334164('0x27d7'),'column':'unreadMessages','type':_0x334164('0x983'),'values':[{'id':0x1,'translate':_0x334164('0x204a')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}];}function _0x24336f(){const _0x55bec0=_0x46c55a;_0x3e57ba['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x55bec0('0x16b1')](_0x3249b3[_0x55bec0('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0x3316be[_0x55bec0('0x1e13')][_0x55bec0('0x1578')],'color':undefined,'storagePath':_0x55bec0('0x317')},'fullscreen':!![]})[_0x55bec0('0x2788')](function(_0x2682c1){const _0xa9f0a3=_0x55bec0;_0x3316be[_0xa9f0a3('0x135a')][_0xa9f0a3('0x470')]=_0x2682c1===![]?undefined:_0x2682c1;if(_0x3316be[_0xa9f0a3('0x135a')][_0xa9f0a3('0x470')])_0x4b97ec();else _0x2682c1===![]&&_0x4b97ec();})[_0x55bec0('0x1cb5')](function(_0x1b95ad){const _0x3bda33=_0x55bec0;_0x55bb4e[_0x3bda33('0x5e8')]({'title':_0x3bda33('0x824'),'msg':_0x1b95ad[_0x3bda33('0x11fc')]?JSON[_0x3bda33('0x1be0')](_0x1b95ad[_0x3bda33('0x11fc')]['message']):_0x1b95ad[_0x3bda33('0x17df')]()});});}function _0x1352d7(_0x3272cd,_0x5a331c,_0x285add){const _0x57ed6d=_0x46c55a;return _0x37b2ef[_0x57ed6d('0x11d0')][_0x57ed6d('0x1486')]({'id':_0x3272cd['id'],'exists':!![],'attachments':_0x285add})[_0x57ed6d('0x1714')]['then'](function(_0x1427be){const _0x22415e=_0x57ed6d,_0x378bc6=[_0x1427be[_0x22415e('0x3f1')]];let _0x48755f=_0x22415e('0xd61')+_0x3272cd['id'];const _0x41fad8=new Blob(_0x378bc6,{'type':_0x1427be[_0x22415e('0x1d7')]});_0x48755f=_0x22415e('0x10a6')+_0x3272cd['id']+_0x22415e('0xfdb');const _0x106290=window[_0x22415e('0x11c4')][_0x22415e('0x1ae6')]('a');_0x106290[_0x22415e('0x1c6b')](_0x22415e('0x186a'),URL[_0x22415e('0x1b0d')](_0x41fad8)),_0x106290[_0x22415e('0x1c6b')](_0x22415e('0x1486'),_0x48755f),document[_0x22415e('0x945')][_0x22415e('0xcbf')](_0x106290),_0x106290[_0x22415e('0x132a')]();})['catch'](function(_0xfd1646){const _0x203add=_0x57ed6d;if(_0xfd1646['data']&&_0xfd1646[_0x203add('0x11fc')][_0x203add('0x25be')]&&_0xfd1646[_0x203add('0x11fc')][_0x203add('0x25be')][_0x203add('0x2566')])for(let _0x2fb868=0x0;_0x2fb868<_0xfd1646[_0x203add('0x11fc')]['errors']['length'];_0x2fb868+=0x1){_0x55bb4e['error']({'title':_0xfd1646[_0x203add('0x11fc')][_0x203add('0x25be')][_0x2fb868]['type'],'msg':_0xfd1646[_0x203add('0x11fc')][_0x203add('0x25be')][_0x2fb868]['message']});}else _0x55bb4e['error']({'title':_0xfd1646[_0x203add('0x1b51')]?_0x203add('0x15d1')+_0xfd1646[_0x203add('0x1b51')]+_0x203add('0x1b0b')+_0xfd1646[_0x203add('0x22ce')]:'api.chatWebsite.save','msg':_0xfd1646['data']?JSON[_0x203add('0x1be0')](_0xfd1646['data'][_0x203add('0x15e2')]):_0xfd1646['toString']()});});}function _0x22e735(_0x503180,_0x9f0f80){const _0x3c2eac=_0x46c55a,_0xbfa68d=_0x3e57ba[_0x3c2eac('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x3c2eac('0x93e')](_0x3c2eac('0x1670')+(_0x503180['name']||_0x503180['id']&&_0x283545()[_0x3c2eac('0x2265')](_0x3c2eac('0xb4c'))+_0x503180['id']||_0x3c2eac('0xd61'))+''+_0x3c2eac('0x27c7'))['ariaLabel'](_0x3c2eac('0xa98'))[_0x3c2eac('0x24d0')](_0x9f0f80)['ok']('OK')['cancel']('CANCEL');_0x3e57ba['show'](_0xbfa68d)['then'](function(){_0x37149b(_0x503180);},function(){const _0x26ceea=_0x3c2eac;console[_0x26ceea('0x10df')](_0x26ceea('0x1d8d'));});}function _0x56652c(_0x3a2a8e){const _0x5d0c02=_0x46c55a;_0x3316be['chatWebsiteInteractions']=_0x3a2a8e||{'count':0x0,'rows':[]};for(let _0x32792c=0x0;_0x32792c<_0x3316be[_0x5d0c02('0x1db0')][_0x5d0c02('0x25df')][_0x5d0c02('0x2566')];_0x32792c+=0x1){const _0x1f1957=_0x3316be[_0x5d0c02('0x1db0')][_0x5d0c02('0x25df')][_0x32792c];_0x42f8a7(_0x1f1957),_0x1f1957[_0x5d0c02('0xe42')]['name']=_0x16cf25(_0x1f1957);}}function _0x4b97ec(){const _0x2e5fdd=_0x46c55a;_0x3316be[_0x2e5fdd('0x135a')][_0x2e5fdd('0x19e')]=(_0x3316be[_0x2e5fdd('0x135a')][_0x2e5fdd('0x23f5')]-0x1)*_0x3316be[_0x2e5fdd('0x135a')]['limit'],_0x3316be[_0x2e5fdd('0x1808')]=_0x37b2ef[_0x2e5fdd('0x11d0')]['get'](_0x3316be[_0x2e5fdd('0x135a')],_0x56652c)[_0x2e5fdd('0x1714')];}function _0xf15bac(_0x2294ce,_0xfe2d58){const _0x11bf0f=_0x46c55a;_0x3e57ba[_0x11bf0f('0x2fa')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular['element'](_0x3249b3[_0x11bf0f('0x945')]),'targetEvent':_0x2294ce,'clickOutsideToClose':!![],'onShowing':function(_0x4184dd){const _0x113efc=_0x11bf0f;_0x4184dd['vm'][_0x113efc('0x24eb')]({'id':0x1,'channel':_0x113efc('0x231'),'interaction':_0xfe2d58,'spy':!![]},_0xf888b0[_0x113efc('0x7d0')]['vm'][_0x113efc('0x1af0')]);}});}function _0x37149b(_0x42c8b3){const _0x47003d=_0x46c55a;_0x37b2ef['chatInteraction'][_0x47003d('0x17c4')]({'id':_0x42c8b3['id']})[_0x47003d('0x1714')]['then'](function(){const _0x227844=_0x47003d;_0x283545()[_0x227844('0x1a90')](_0x3316be[_0x227844('0x1db0')][_0x227844('0x25df')],{'id':_0x42c8b3['id']}),_0x3316be[_0x227844('0x1db0')][_0x227844('0x338')]-=0x1,!_0x3316be[_0x227844('0x1db0')][_0x227844('0x25df')][_0x227844('0x2566')]&&_0x4b97ec(),_0x55bb4e[_0x227844('0x173b')]({'title':_0x227844('0xb73'),'msg':_0x42c8b3[_0x227844('0x1a8d')]?_0x42c8b3[_0x227844('0x1a8d')]+_0x227844('0x14d4'):''});})[_0x47003d('0x1cb5')](function(_0x4f09f3){const _0x3a8eba=_0x47003d;if(_0x4f09f3[_0x3a8eba('0x11fc')]&&_0x4f09f3[_0x3a8eba('0x11fc')]['errors']&&_0x4f09f3[_0x3a8eba('0x11fc')][_0x3a8eba('0x25be')][_0x3a8eba('0x2566')]){_0x3316be[_0x3a8eba('0x25be')]=_0x4f09f3[_0x3a8eba('0x11fc')][_0x3a8eba('0x25be')]||[{'message':_0x4f09f3['toString'](),'type':_0x3a8eba('0x136')}];for(let _0x94caae=0x0;_0x94caae<_0x4f09f3[_0x3a8eba('0x11fc')]['errors'][_0x3a8eba('0x2566')];_0x94caae++){_0x55bb4e['error']({'title':_0x4f09f3[_0x3a8eba('0x11fc')]['errors'][_0x94caae][_0x3a8eba('0x1d7')],'msg':_0x4f09f3[_0x3a8eba('0x11fc')][_0x3a8eba('0x25be')][_0x94caae][_0x3a8eba('0x15e2')]});}}else _0x55bb4e[_0x3a8eba('0x5e8')]({'title':_0x4f09f3[_0x3a8eba('0x1b51')]?'API:'+_0x4f09f3[_0x3a8eba('0x1b51')]+'\x20-\x20'+_0x4f09f3[_0x3a8eba('0x22ce')]:_0x3a8eba('0x136'),'msg':_0x4f09f3[_0x3a8eba('0x11fc')]?JSON[_0x3a8eba('0x1be0')](_0x4f09f3[_0x3a8eba('0x11fc')][_0x3a8eba('0x15e2')]):_0x4f09f3[_0x3a8eba('0x15e2')]||_0x4f09f3[_0x3a8eba('0x17df')]()});});}function _0x1f5b3a(){const _0x4bc004=_0x46c55a,_0x5893fd=angular['copy'](_0x3316be['selectedChatWebsiteInteractions']);return _0x3316be[_0x4bc004('0xaca')]=[],_0x5893fd;}function _0x53a1bf(_0x3263b6){const _0x501c64=_0x46c55a,_0x5afda5=_0x3e57ba[_0x501c64('0x112e')]()[_0x501c64('0x14e4')](_0x501c64('0x1ff'))[_0x501c64('0x93e')](_0x501c64('0x1670')+_0x3316be[_0x501c64('0xaca')][_0x501c64('0x2566')]+_0x501c64('0xbd')+'\x20will\x20be\x20deleted.')[_0x501c64('0x10bc')]('delete\x20interactions')[_0x501c64('0x24d0')](_0x3263b6)['ok']('OK')[_0x501c64('0x1801')](_0x501c64('0x1d8d'));_0x3e57ba[_0x501c64('0x2fa')](_0x5afda5)[_0x501c64('0x2788')](function(){const _0x4bd713=_0x501c64;_0x3316be['selectedChatWebsiteInteractions'][_0x4bd713('0x1534')](function(_0x121750){_0x37149b(_0x121750);}),_0x3316be[_0x4bd713('0xaca')]=[];});}function _0x42f8a7(_0x13fb1e){const _0x14f125=_0x46c55a;_0x13fb1e['Contact']?_0x13fb1e['contactName']=(_0x13fb1e[_0x14f125('0x1c64')]['firstName']||'')+'\x20'+(_0x13fb1e[_0x14f125('0x1c64')][_0x14f125('0x26b9')]||''):_0x13fb1e[_0x14f125('0x497')]=_0x4a49fd[_0x14f125('0x1b11')]('DASHBOARDS.UNKNOWN');}function _0x16cf25(_0x38121f){const _0x189ed0=_0x46c55a;if(_0x38121f[_0x189ed0('0x3bb')])return _0x38121f[_0x189ed0('0x3bb')]===_0x3316be[_0x189ed0('0x9cb')]['id']?_0x4a49fd[_0x189ed0('0x1b11')](_0x189ed0('0x3a8')):_0x38121f[_0x189ed0('0xe42')][_0x189ed0('0x2831')]+'\x20<'+_0x38121f[_0x189ed0('0xe42')][_0x189ed0('0x2838')]+'>';return _0x4a49fd[_0x189ed0('0x1b11')](_0x189ed0('0xce3'));}let _0x186004=!![],_0x21a203=0x1;_0xf888b0['$watch'](_0x46c55a('0x2571'),function(_0x1c4be6,_0xe70c78){const _0x37e445=_0x46c55a;_0x186004?_0x26219a(function(){_0x186004=![];}):(!_0xe70c78&&(_0x21a203=_0x3316be[_0x37e445('0x135a')][_0x37e445('0x23f5')]),_0x1c4be6!==_0xe70c78&&(_0x3316be[_0x37e445('0x135a')]['page']=0x1),!_0x1c4be6&&(_0x3316be['query']['page']=_0x21a203),_0x4b97ec());});}const _0x58fc21=_0x57c954;_0x4cb769[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0xd57')];function _0x4cb769(_0x47e9fd,_0x296956){const _0x4b7bc1=_0x34e79e,_0x43a855=this,_0x5abb01=0x8,_0x1b585d=_0x5abb01*0x400*0x400;_0x43a855['chatWebsite']={},_0x43a855[_0x4b7bc1('0xe28')],_0x43a855['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1b585d,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x43a855[_0x4b7bc1('0x2793')]={'flow':{}},_0x43a855[_0x4b7bc1('0x189a')]=![],_0x43a855[_0x4b7bc1('0x1573')]=_0x1ee125,_0x43a855[_0x4b7bc1('0x1b63')]=_0x3e9dd9,_0x43a855[_0x4b7bc1('0xc41')]=_0x164eac,_0x43a855[_0x4b7bc1('0x24eb')]=_0x242054;function _0x242054(_0x3aacfa,_0x99b0dc){const _0x459f2d=_0x4b7bc1;_0x43a855[_0x459f2d('0x169c')]=angular[_0x459f2d('0x2669')](_0x3aacfa),_0x43a855[_0x459f2d('0xe28')]=typeof _0x99b0dc!==_0x459f2d('0xedb')?_0x99b0dc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x43a855[_0x459f2d('0x1fce')][_0x459f2d('0x159c')]=_0x459f2d('0x148c')['replace'](_0x459f2d('0x1d1e'),_0x43a855['chatWebsite']['id']),_0x43a855[_0x459f2d('0x169c')][_0x459f2d('0x17d5')]=[];}function _0x1ee125(_0x4932bd){const _0x112c4a=_0x4b7bc1,_0x500da5=[_0x112c4a('0x170a'),_0x112c4a('0xec2')];if(!_0x283545()[_0x112c4a('0x1d4e')](_0x500da5,_0x4932bd[_0x112c4a('0xa31')]()))return _0x296956['error']({'title':_0x112c4a('0x425')+_0x4932bd[_0x112c4a('0xa31')](),'msg':_0x112c4a('0x250c')+_0x500da5[_0x112c4a('0x185f')]()}),![];if(_0x4932bd[_0x112c4a('0x634')]>_0x1b585d)return _0x296956[_0x112c4a('0x5e8')]({'title':_0x112c4a('0x6e8'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x5abb01+'MB'}),![];const _0x2d01b1={'id':_0x4932bd['uniqueIdentifier'],'file':_0x4932bd,'type':_0x112c4a('0x1c20')};return _0x43a855[_0x112c4a('0x169c')][_0x112c4a('0x17d5')][_0x112c4a('0xc51')](_0x2d01b1),!![];}function _0x3e9dd9(){const _0x4a1b9e=_0x4b7bc1;_0x43a855['ngFlow']['flow'][_0x4a1b9e('0xcc6')][_0x4a1b9e('0x186d')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x4a1b9e('0xf2f')+_0x47e9fd[_0x4a1b9e('0x1335')](_0x4a1b9e('0x2eb'))},_0x43a855[_0x4a1b9e('0x2793')][_0x4a1b9e('0x8a4')][_0x4a1b9e('0x1b63')]();}function _0x164eac(_0x107067){const _0x1273c0=_0x4b7bc1;angular[_0x1273c0('0x1534')](_0x43a855[_0x1273c0('0x169c')][_0x1273c0('0x17d5')],function(_0x4e0629){const _0x307d47=_0x1273c0;if(_0x4e0629['id']===_0x107067[_0x307d47('0x7c8')]){const _0x1c047d=new FileReader();_0x1c047d['readAsDataURL'](_0x4e0629[_0x307d47('0x3d5')]['file']),_0x1c047d[_0x307d47('0x2468')]=function(_0x13f3b6){const _0x3ed683=_0x307d47;_0x4e0629['url']=_0x13f3b6[_0x3ed683('0x159c')]['result'];},_0x4e0629[_0x307d47('0x1d7')]=_0x307d47('0x157f');}});}}const _0x4eba2c=_0x4cb769,_0x1f23fa=_0x18dd13['p']+_0x34e79e('0xaea');_0x30d323[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),'$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x30d323(_0x407436,_0x5762c8,_0xdda521,_0x5a4eb6,_0x39cb1e,_0xfcafba,_0x5ada7d,_0x4eb973,_0x13f64a,_0x4b94e0,_0x23d981){const _0x1b5476=_0x34e79e,_0x3a583c=this;_0x3a583c['currentUser']=_0x23d981[_0x1b5476('0x24cc')](),_0x3a583c[_0x1b5476('0x169c')]={},_0x3a583c[_0x1b5476('0x3d0')]={'count':0x0,'rows':[]},_0x3a583c[_0x1b5476('0xd1d')]=[],_0x3a583c[_0x1b5476('0xe28')],_0x3a583c[_0x1b5476('0x135a')]={'fields':_0x1b5476('0x20f1'),'sort':_0x1b5476('0x34b'),'limit':0xa,'page':0x1},_0x3a583c[_0x1b5476('0x24eb')]=_0x893fa8,_0x3a583c[_0x1b5476('0x16a')]=_0x1197f0,_0x3a583c[_0x1b5476('0x173b')]=_0x140f1c,_0x3a583c[_0x1b5476('0x1ea7')]=_0x1425a4,_0x3a583c[_0x1b5476('0x1797')]=_0x12a559,_0x3a583c[_0x1b5476('0xd94')]=_0x47f5df,_0x3a583c[_0x1b5476('0x1887')]=_0x496e46,_0x3a583c[_0x1b5476('0xda2')]=_0x4905e2,_0x3a583c['deleteSelectedChatWebsiteOfflineMessages']=_0x350e3e;function _0x893fa8(_0x21d2fd,_0x2b3290){const _0x258102=_0x1b5476;_0x3a583c['chatWebsite']=_0x21d2fd,_0x3a583c['crudPermissions']=typeof _0x2b3290!==_0x258102('0xedb')?_0x2b3290:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3a583c[_0x258102('0x135a')]['id']=_0x3a583c['chatWebsite']['id'],_0x1425a4();}function _0x1197f0(_0x468dea,_0x291dcf){const _0x4b7d0e=_0x1b5476,_0x25bcef=_0x5ada7d[_0x4b7d0e('0x112e')]()[_0x4b7d0e('0x14e4')](_0x4b7d0e('0x11b8'))[_0x4b7d0e('0x93e')](''+(_0x468dea[_0x4b7d0e('0x1a8d')]||_0x468dea['id']&&_0x283545()[_0x4b7d0e('0x2265')](_0x4b7d0e('0xb22'))+_0x468dea['id']||_0x4b7d0e('0x19ca'))+_0x4b7d0e('0x229e')+'\x20will\x20be\x20deleted.')[_0x4b7d0e('0x10bc')](_0x4b7d0e('0xb38'))[_0x4b7d0e('0x24d0')](_0x291dcf)['ok']('OK')['cancel'](_0x4b7d0e('0x1d8d'));_0x5ada7d[_0x4b7d0e('0x2fa')](_0x25bcef)[_0x4b7d0e('0x2788')](function(){_0x4905e2(_0x468dea);},function(){const _0x5d8895=_0x4b7d0e;console[_0x5d8895('0x10df')](_0x5d8895('0x1d8d'));});}function _0x140f1c(_0x3fd660){_0x3a583c['chatWebsiteOfflineMessages']=_0x3fd660||{'count':0x0,'rows':[]};}function _0x1425a4(){const _0x171de6=_0x1b5476;_0x3a583c[_0x171de6('0x135a')][_0x171de6('0x19e')]=(_0x3a583c['query'][_0x171de6('0x23f5')]-0x1)*_0x3a583c[_0x171de6('0x135a')][_0x171de6('0x68e')],_0x3a583c['promise']=_0x4b94e0[_0x171de6('0x169c')]['getOfflineMessages'](_0x3a583c['query'],_0x140f1c)['$promise'];}function _0x12a559(_0x43a47f,_0x25c4d8){const _0x1b4dcd=_0x1b5476;_0x5ada7d['show']({'controller':_0x1b4dcd('0xb67'),'controllerAs':'vm','templateUrl':_0x1f23fa,'parent':angular[_0x1b4dcd('0x16b1')](_0x4eb973[_0x1b4dcd('0x945')]),'targetEvent':_0x43a47f,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3a583c[_0x1b4dcd('0x169c')],'offlineMessage':_0x25c4d8,'offlineMessages':_0x3a583c[_0x1b4dcd('0x3d0')][_0x1b4dcd('0x25df')],'license':null,'setting':null,'crudPermissions':_0x3a583c[_0x1b4dcd('0xe28')]}});}function _0x47f5df(_0x1fff19,_0x418140){const _0x6f9882=_0x1b5476;_0x5ada7d['show']({'controller':_0x6f9882('0xfda'),'controllerAs':'vm','templateUrl':_0x1f23fa,'parent':angular[_0x6f9882('0x16b1')](_0x4eb973['body']),'targetEvent':_0x1fff19,'clickOutsideToClose':!![],'resolve':{'message':[_0x6f9882('0x1318'),function(_0x402d14){const _0x102546=_0x6f9882;return _0x402d14[_0x102546('0x2322')](_0x102546('0x1013'),{'fields':_0x102546('0x125d'),'id':_0x418140['id']});}]}});}function _0x4905e2(_0x40a638){const _0x2c7122=_0x1b5476;_0x4b94e0[_0x2c7122('0x1444')]['delete']({'id':_0x40a638['id']})[_0x2c7122('0x1714')][_0x2c7122('0x2788')](function(){const _0x19a514=_0x2c7122;_0x283545()[_0x19a514('0x1a90')](_0x3a583c[_0x19a514('0x3d0')][_0x19a514('0x25df')],{'id':_0x40a638['id']}),_0x3a583c[_0x19a514('0x3d0')][_0x19a514('0x338')]-=0x1,!_0x3a583c[_0x19a514('0x3d0')][_0x19a514('0x25df')]['length']&&_0x1425a4(),_0x13f64a[_0x19a514('0x173b')]({'title':_0x19a514('0xbd5'),'msg':_0x40a638[_0x19a514('0x1a8d')]?_0x40a638[_0x19a514('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x2c7122('0x1cb5')](function(_0x1357c9){const _0xeb915b=_0x2c7122;if(_0x1357c9[_0xeb915b('0x11fc')]&&_0x1357c9[_0xeb915b('0x11fc')][_0xeb915b('0x25be')]&&_0x1357c9[_0xeb915b('0x11fc')][_0xeb915b('0x25be')][_0xeb915b('0x2566')]){_0x3a583c[_0xeb915b('0x25be')]=_0x1357c9['data'][_0xeb915b('0x25be')]||[{'message':_0x1357c9['toString'](),'type':_0xeb915b('0x136')}];for(let _0x31720e=0x0;_0x31720e<_0x1357c9[_0xeb915b('0x11fc')][_0xeb915b('0x25be')][_0xeb915b('0x2566')];_0x31720e++){_0x13f64a[_0xeb915b('0x5e8')]({'title':_0x1357c9[_0xeb915b('0x11fc')][_0xeb915b('0x25be')][_0x31720e][_0xeb915b('0x1d7')],'msg':_0x1357c9[_0xeb915b('0x11fc')][_0xeb915b('0x25be')][_0x31720e][_0xeb915b('0x15e2')]});}}else _0x13f64a[_0xeb915b('0x5e8')]({'title':_0x1357c9[_0xeb915b('0x1b51')]?_0xeb915b('0x15d1')+_0x1357c9[_0xeb915b('0x1b51')]+_0xeb915b('0x1b0b')+_0x1357c9[_0xeb915b('0x22ce')]:_0xeb915b('0x136'),'msg':_0x1357c9[_0xeb915b('0x11fc')]?JSON['stringify'](_0x1357c9['data']['message']):_0x1357c9[_0xeb915b('0x15e2')]||_0x1357c9['toString']()});});}function _0x496e46(){const _0x3ba7ab=_0x1b5476,_0x4a6e83=angular['copy'](_0x3a583c[_0x3ba7ab('0xd1d')]);return _0x3a583c[_0x3ba7ab('0xd1d')]=[],_0x4a6e83;}function _0x350e3e(_0x202ca9){const _0x424606=_0x1b5476,_0x5dc873=_0x5ada7d[_0x424606('0x112e')]()['title'](_0x424606('0x6cd'))['htmlContent'](_0x424606('0x1670')+_0x3a583c[_0x424606('0xd1d')]['length']+_0x424606('0xbd')+_0x424606('0x27c7'))[_0x424606('0x10bc')](_0x424606('0x460'))[_0x424606('0x24d0')](_0x202ca9)['ok']('OK')[_0x424606('0x1801')]('CANCEL');_0x5ada7d[_0x424606('0x2fa')](_0x5dc873)[_0x424606('0x2788')](function(){const _0x392ab7=_0x424606;_0x3a583c[_0x392ab7('0xd1d')]['forEach'](function(_0x4b05cf){_0x4905e2(_0x4b05cf);}),_0x3a583c[_0x392ab7('0xd1d')]=[];});}let _0x4518e5=!![],_0x4d2a2a=0x1;_0x5762c8[_0x1b5476('0x1662')](_0x1b5476('0x2571'),function(_0x5de9cd,_0x4a4dac){const _0x5537e3=_0x1b5476;_0x4518e5?_0xfcafba(function(){_0x4518e5=![];}):(!_0x4a4dac&&(_0x4d2a2a=_0x3a583c['query'][_0x5537e3('0x23f5')]),_0x5de9cd!==_0x4a4dac&&(_0x3a583c['query'][_0x5537e3('0x23f5')]=0x1),!_0x5de9cd&&(_0x3a583c[_0x5537e3('0x135a')][_0x5537e3('0x23f5')]=_0x4d2a2a),_0x1425a4());});}const _0x1a7484=_0x30d323;_0x553f5b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x15e2')];function _0x553f5b(_0x11e7cf,_0x55df0d){const _0x4820eb=_0x34e79e,_0x261b0a=this;_0x261b0a['title']=_0x4820eb('0x1c69'),_0x261b0a[_0x4820eb('0x15e2')]=_0x55df0d,_0x261b0a[_0x4820eb('0xca7')]=_0x3dad0f;function _0x3dad0f(_0x191368){const _0x5b4f28=_0x4820eb;_0x11e7cf[_0x5b4f28('0x19d')](_0x191368);}}const _0x415d8c=_0x553f5b,_0x1c1348=_0x18dd13['p']+_0x34e79e('0xd8f');_0x38e18e[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'$scope',_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x38e18e(_0xdf22e8,_0x455d4b,_0x181247,_0x5ce996,_0x3cd273,_0x5f3a3e,_0x3b41c7,_0x59a7f8,_0x41aa5e,_0x45645f,_0x4e7bc5){const _0x3f63cf=_0x34e79e,_0x22526c=this;_0x22526c['currentUser']=_0x4e7bc5[_0x3f63cf('0x24cc')](),_0x22526c[_0x3f63cf('0x169c')]={},_0x22526c[_0x3f63cf('0x14de')]={'count':0x0,'rows':[]},_0x22526c[_0x3f63cf('0x154e')]=[],_0x22526c[_0x3f63cf('0xe28')],_0x22526c[_0x3f63cf('0x135a')]={'fields':_0x3f63cf('0x511'),'limit':0xa,'page':0x1},_0x22526c['arraytype']=_0x283545()[_0x3f63cf('0x13cf')]([{'option':_0x3f63cf('0x154'),'value':_0x3f63cf('0x1007')},{'option':_0x3f63cf('0xa7e'),'value':_0x3f63cf('0x77f')}],function(_0x26145e){return _0x283545()['replace'](_0x26145e['value'],new RegExp('\x27','g'),'');}),_0x22526c[_0x3f63cf('0x24eb')]=_0x589679,_0x22526c[_0x3f63cf('0x16a')]=_0x231a8f,_0x22526c[_0x3f63cf('0x173b')]=_0x3c8048,_0x22526c['getChatWebsiteProactiveActions']=_0x552e74,_0x22526c[_0x3f63cf('0x11a6')]=_0x3ff567,_0x22526c[_0x3f63cf('0x22e7')]=_0x44fa6e,_0x22526c[_0x3f63cf('0x242f')]=_0x4d8ea9,_0x22526c[_0x3f63cf('0x206f')]=_0x21ab43;function _0x589679(_0x244e60,_0x4c74be){const _0x1f9cce=_0x3f63cf;_0x22526c[_0x1f9cce('0x169c')]=_0x244e60,_0x22526c[_0x1f9cce('0xe28')]=typeof _0x4c74be!==_0x1f9cce('0xedb')?_0x4c74be:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x22526c[_0x1f9cce('0x135a')][_0x1f9cce('0x965')]=_0x22526c[_0x1f9cce('0x169c')]['id'],_0x22526c[_0x1f9cce('0x135a')]['id']=_0x22526c[_0x1f9cce('0x169c')]['id'],_0x552e74();}function _0x231a8f(_0x4403a1,_0x1d0168){const _0x4b04a9=_0x3f63cf,_0x2c195c=_0x3b41c7['confirm']()[_0x4b04a9('0x14e4')](_0x4b04a9('0x1250'))[_0x4b04a9('0x93e')](_0x4b04a9('0x1670')+(_0x4403a1[_0x4b04a9('0x1a8d')]||_0x4403a1['id']&&_0x283545()['upperFirst']('chatProactiveAction\x20#')+_0x4403a1['id']||_0x4b04a9('0xd7a'))+_0x4b04a9('0x229e')+_0x4b04a9('0x27c7'))[_0x4b04a9('0x10bc')](_0x4b04a9('0x216'))[_0x4b04a9('0x24d0')](_0x1d0168)['ok']('OK')[_0x4b04a9('0x1801')](_0x4b04a9('0x1d8d'));_0x3b41c7[_0x4b04a9('0x2fa')](_0x2c195c)[_0x4b04a9('0x2788')](function(){_0x4d8ea9(_0x4403a1);},function(){const _0x55f811=_0x4b04a9;console[_0x55f811('0x10df')](_0x55f811('0x1d8d'));});}function _0x3c8048(_0x5ef7a2){const _0x46bf33=_0x3f63cf;_0x22526c[_0x46bf33('0x14de')]=_0x5ef7a2||{'count':0x0,'rows':[]};}function _0x552e74(){const _0x1ee508=_0x3f63cf;_0x22526c[_0x1ee508('0x135a')][_0x1ee508('0x19e')]=(_0x22526c[_0x1ee508('0x135a')][_0x1ee508('0x23f5')]-0x1)*_0x22526c['query'][_0x1ee508('0x68e')],_0x22526c[_0x1ee508('0x1808')]=_0x45645f[_0x1ee508('0x169c')][_0x1ee508('0x279a')](_0x22526c[_0x1ee508('0x135a')],_0x3c8048)['$promise'];}function _0x3ff567(_0x10775d,_0x40c9a5){const _0x3e99ee=_0x3f63cf;_0x3b41c7[_0x3e99ee('0x2fa')]({'controller':_0x3e99ee('0x4ea'),'controllerAs':'vm','templateUrl':_0x1c1348,'parent':angular[_0x3e99ee('0x16b1')](_0x59a7f8[_0x3e99ee('0x945')]),'targetEvent':_0x10775d,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x22526c[_0x3e99ee('0x169c')],'chatProactiveAction':_0x40c9a5,'proactive':_0x22526c[_0x3e99ee('0x14de')][_0x3e99ee('0x25df')],'license':null,'setting':null,'crudPermissions':_0x22526c[_0x3e99ee('0xe28')]}});}function _0x4d8ea9(_0x336a5b){const _0x229f1d=_0x3f63cf;_0x45645f['chatProactiveAction'][_0x229f1d('0x17c4')]({'id':_0x336a5b['id']})[_0x229f1d('0x1714')][_0x229f1d('0x2788')](function(){const _0x53a9a1=_0x229f1d;_0x283545()[_0x53a9a1('0x1a90')](_0x22526c['chatWebsiteProactiveActions'][_0x53a9a1('0x25df')],{'id':_0x336a5b['id']}),_0x22526c['chatWebsiteProactiveActions'][_0x53a9a1('0x338')]-=0x1,!_0x22526c[_0x53a9a1('0x14de')][_0x53a9a1('0x25df')][_0x53a9a1('0x2566')]&&_0x552e74(),_0x41aa5e[_0x53a9a1('0x173b')]({'title':_0x53a9a1('0x1f'),'msg':_0x336a5b[_0x53a9a1('0x1a8d')]?_0x336a5b['name']+'\x20has\x20been\x20deleted!':''});})[_0x229f1d('0x1cb5')](function(_0x164874){const _0x5b8f03=_0x229f1d;if(_0x164874[_0x5b8f03('0x11fc')]&&_0x164874[_0x5b8f03('0x11fc')][_0x5b8f03('0x25be')]&&_0x164874[_0x5b8f03('0x11fc')][_0x5b8f03('0x25be')][_0x5b8f03('0x2566')]){_0x22526c['errors']=_0x164874['data'][_0x5b8f03('0x25be')]||[{'message':_0x164874[_0x5b8f03('0x17df')](),'type':_0x5b8f03('0x136')}];for(let _0x2872ba=0x0;_0x2872ba<_0x164874[_0x5b8f03('0x11fc')][_0x5b8f03('0x25be')][_0x5b8f03('0x2566')];_0x2872ba++){_0x41aa5e['error']({'title':_0x164874[_0x5b8f03('0x11fc')][_0x5b8f03('0x25be')][_0x2872ba][_0x5b8f03('0x1d7')],'msg':_0x164874[_0x5b8f03('0x11fc')][_0x5b8f03('0x25be')][_0x2872ba]['message']});}}else _0x41aa5e[_0x5b8f03('0x5e8')]({'title':_0x164874[_0x5b8f03('0x1b51')]?_0x5b8f03('0x15d1')+_0x164874['status']+_0x5b8f03('0x1b0b')+_0x164874['statusText']:_0x5b8f03('0x136'),'msg':_0x164874[_0x5b8f03('0x11fc')]?JSON[_0x5b8f03('0x1be0')](_0x164874[_0x5b8f03('0x11fc')]['message']):_0x164874[_0x5b8f03('0x15e2')]||_0x164874[_0x5b8f03('0x17df')]()});});}function _0x44fa6e(){const _0x5c13f9=_0x3f63cf,_0x2b0660=angular[_0x5c13f9('0x2669')](_0x22526c[_0x5c13f9('0x154e')]);return _0x22526c[_0x5c13f9('0x154e')]=[],_0x2b0660;}function _0x21ab43(_0x2b9400){const _0x5bed92=_0x3f63cf,_0x2f0b21=_0x3b41c7[_0x5bed92('0x112e')]()[_0x5bed92('0x14e4')](_0x5bed92('0x83e'))['htmlContent'](_0x5bed92('0x1670')+_0x22526c[_0x5bed92('0x154e')]['length']+_0x5bed92('0xbd')+'\x20will\x20be\x20deleted.')[_0x5bed92('0x10bc')](_0x5bed92('0x144a'))[_0x5bed92('0x24d0')](_0x2b9400)['ok']('OK')[_0x5bed92('0x1801')](_0x5bed92('0x1d8d'));_0x3b41c7['show'](_0x2f0b21)[_0x5bed92('0x2788')](function(){const _0x912ca9=_0x5bed92;_0x22526c[_0x912ca9('0x154e')][_0x912ca9('0x1534')](function(_0x488bec){_0x4d8ea9(_0x488bec);}),_0x22526c['selectedChatWebsiteProactiveActions']=[];});}let _0x36cfcd=!![],_0x36fbaa=0x1;_0x455d4b[_0x3f63cf('0x1662')]('vm_dc.query.filter',function(_0x1658c8,_0x37b1ed){const _0x54f63e=_0x3f63cf;_0x36cfcd?_0x5f3a3e(function(){_0x36cfcd=![];}):(!_0x37b1ed&&(_0x36fbaa=_0x22526c[_0x54f63e('0x135a')][_0x54f63e('0x23f5')]),_0x1658c8!==_0x37b1ed&&(_0x22526c[_0x54f63e('0x135a')]['page']=0x1),!_0x1658c8&&(_0x22526c[_0x54f63e('0x135a')][_0x54f63e('0x23f5')]=_0x36fbaa),_0x552e74());});}const _0x3faced=_0x38e18e;_0x1db34b[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q','$translate','toasty','proactive',_0x34e79e('0xd7a'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x1db34b(_0xa936ce,_0x11fcf8,_0x266774,_0x5d6efd,_0x280aaf,_0xe28737,_0x3ea39b,_0x471a30,_0x327e6b,_0x491e79,_0x15c890,_0x2d5446,_0x1705e3,_0x24b767){const _0x4adbb4=_0x34e79e,_0x3af874=this;_0x3af874[_0x4adbb4('0x9cb')]=_0x15c890['getCurrentUser'](),_0x3af874[_0x4adbb4('0x25be')]=[],_0x3af874[_0x4adbb4('0x1af0')]=_0x1705e3,_0x3af874[_0x4adbb4('0x130d')]=_0x2d5446,_0x3af874[_0x4adbb4('0xe28')]=_0x24b767,_0x3af874[_0x4adbb4('0x1193')]={},_0x3af874[_0x4adbb4('0x18ad')]=_0x3af874[_0x4adbb4('0x1af0')]&&_0x3af874['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3af874['title']=_0x4adbb4('0x126d'),_0x3af874['chatProactiveAction']=angular[_0x4adbb4('0x2669')](_0x327e6b),_0x3af874[_0x4adbb4('0x226')]=_0x471a30,_0x3af874['newChatProactiveAction']=![];!_0x3af874[_0x4adbb4('0xd7a')]&&(_0x3af874[_0x4adbb4('0xd7a')]={'type':_0x4adbb4('0x11d7')},_0x3af874[_0x4adbb4('0x14e4')]=_0x4adbb4('0xcae'),_0x3af874['newChatProactiveAction']=!![]);_0x11fcf8[_0x4adbb4('0x4b9')]['id']&&(_0x3af874[_0x4adbb4('0xd7a')][_0x4adbb4('0x965')]=_0x11fcf8[_0x4adbb4('0x4b9')]['id']);_0x3af874['addNewChatProactiveAction']=_0x5044cb,_0x3af874[_0x4adbb4('0x20e6')]=_0x3a81b2,_0x3af874[_0x4adbb4('0xb20')]=_0x3b9f0d,_0x3af874[_0x4adbb4('0x2601')]=_0x6e00d0,_0x3af874[_0x4adbb4('0xca7')]=_0x6bbeae;function _0x5044cb(){const _0x12d44e=_0x4adbb4;_0x3af874[_0x12d44e('0x25be')]=[],_0x491e79[_0x12d44e('0xd7a')]['save'](_0x3af874[_0x12d44e('0xd7a')])[_0x12d44e('0x1714')][_0x12d44e('0x2788')](function(_0x8ce65a){const _0x5deaef=_0x12d44e;_0x3af874[_0x5deaef('0x226')][_0x5deaef('0xc51')](_0x8ce65a[_0x5deaef('0x1cbf')]()),_0x3ea39b['success']({'title':'ChatProactiveAction\x20properly\x20created','msg':_0x3af874[_0x5deaef('0xd7a')][_0x5deaef('0x1a8d')]?_0x3af874[_0x5deaef('0xd7a')]['name']+_0x5deaef('0x1e4a'):''}),_0x6bbeae(_0x8ce65a);})[_0x12d44e('0x1cb5')](function(_0x32d704){const _0x26e7ff=_0x12d44e;if(_0x32d704[_0x26e7ff('0x11fc')]&&_0x32d704[_0x26e7ff('0x11fc')][_0x26e7ff('0x25be')]&&_0x32d704[_0x26e7ff('0x11fc')][_0x26e7ff('0x25be')][_0x26e7ff('0x2566')]){_0x3af874[_0x26e7ff('0x25be')]=_0x32d704[_0x26e7ff('0x11fc')][_0x26e7ff('0x25be')]||[{'message':_0x32d704[_0x26e7ff('0x17df')](),'type':_0x26e7ff('0xfd')}];for(let _0x460586=0x0;_0x460586<_0x32d704[_0x26e7ff('0x11fc')][_0x26e7ff('0x25be')][_0x26e7ff('0x2566')];_0x460586+=0x1){_0x3ea39b[_0x26e7ff('0x5e8')]({'title':_0x32d704['data'][_0x26e7ff('0x25be')][_0x460586][_0x26e7ff('0x1d7')],'msg':_0x32d704[_0x26e7ff('0x11fc')][_0x26e7ff('0x25be')][_0x460586][_0x26e7ff('0x15e2')]});}}else _0x3ea39b[_0x26e7ff('0x5e8')]({'title':_0x32d704[_0x26e7ff('0x1b51')]?_0x26e7ff('0x15d1')+_0x32d704[_0x26e7ff('0x1b51')]+'\x20-\x20'+_0x32d704['statusText']:_0x26e7ff('0xfd'),'msg':_0x32d704[_0x26e7ff('0x11fc')]?JSON[_0x26e7ff('0x1be0')](_0x32d704['data'][_0x26e7ff('0x15e2')]):_0x32d704[_0x26e7ff('0x17df')]()});});}function _0x3a81b2(){const _0x9b8d9d=_0x4adbb4;_0x3af874[_0x9b8d9d('0x25be')]=[],_0x491e79[_0x9b8d9d('0xd7a')][_0x9b8d9d('0x2740')]({'id':_0x3af874[_0x9b8d9d('0xd7a')]['id']},_0x3af874['chatProactiveAction'])[_0x9b8d9d('0x1714')]['then'](function(_0x3f486f){const _0x786269=_0x9b8d9d,_0x535375=_0x283545()['find'](_0x3af874[_0x786269('0x226')],{'id':_0x3f486f['id']});_0x535375&&_0x283545()[_0x786269('0x2503')](_0x535375,_0x283545()['pick'](_0x3f486f[_0x786269('0x1cbf')](),_0x283545()['keys'](_0x535375))),_0x3ea39b[_0x786269('0x173b')]({'title':_0x786269('0x10c0'),'msg':_0x3af874[_0x786269('0xd7a')][_0x786269('0x1a8d')]?_0x3af874['chatProactiveAction'][_0x786269('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x6bbeae(_0x3f486f);})[_0x9b8d9d('0x1cb5')](function(_0x1070ae){const _0x5cfe01=_0x9b8d9d;if(_0x1070ae[_0x5cfe01('0x11fc')]&&_0x1070ae['data']['errors']&&_0x1070ae[_0x5cfe01('0x11fc')]['errors'][_0x5cfe01('0x2566')]){_0x3af874[_0x5cfe01('0x25be')]=_0x1070ae['data']['errors']||[{'message':_0x1070ae[_0x5cfe01('0x17df')](),'type':'api.chatProactiveAction.update'}];for(let _0x473e48=0x0;_0x473e48<_0x1070ae['data'][_0x5cfe01('0x25be')][_0x5cfe01('0x2566')];_0x473e48++){_0x3ea39b[_0x5cfe01('0x5e8')]({'title':_0x1070ae[_0x5cfe01('0x11fc')][_0x5cfe01('0x25be')][_0x473e48][_0x5cfe01('0x1d7')],'msg':_0x1070ae[_0x5cfe01('0x11fc')]['errors'][_0x473e48][_0x5cfe01('0x15e2')]});}}else _0x3ea39b[_0x5cfe01('0x5e8')]({'title':_0x1070ae[_0x5cfe01('0x1b51')]?'API:'+_0x1070ae[_0x5cfe01('0x1b51')]+'\x20-\x20'+_0x1070ae['statusText']:_0x5cfe01('0x1c05'),'msg':_0x1070ae[_0x5cfe01('0x11fc')]?JSON[_0x5cfe01('0x1be0')](_0x1070ae[_0x5cfe01('0x11fc')][_0x5cfe01('0x15e2')]):_0x1070ae[_0x5cfe01('0x17df')]()});});}function _0x3b9f0d(_0x36892e){const _0x5e118d=_0x4adbb4;_0x3af874[_0x5e118d('0x25be')]=[];const _0xf4a9bf=_0x5d6efd[_0x5e118d('0x112e')]()[_0x5e118d('0x14e4')](_0x5e118d('0x458'))[_0x5e118d('0x1c98')]('The\x20chatProactiveAction\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20ChatProactiveAction')['ok'](_0x5e118d('0x2786'))[_0x5e118d('0x1801')](_0x5e118d('0x1481'))[_0x5e118d('0x24d0')](_0x36892e);_0x5d6efd[_0x5e118d('0x2fa')](_0xf4a9bf)['then'](function(){const _0x312b7c=_0x5e118d;_0x491e79[_0x312b7c('0xd7a')]['delete']({'id':_0x3af874[_0x312b7c('0xd7a')]['id']})['$promise'][_0x312b7c('0x2788')](function(){const _0x194d6d=_0x312b7c;_0x283545()[_0x194d6d('0x1a90')](_0x3af874['proactive'],{'id':_0x3af874[_0x194d6d('0xd7a')]['id']}),_0x3ea39b[_0x194d6d('0x173b')]({'title':_0x194d6d('0x166e'),'msg':(_0x3af874[_0x194d6d('0xd7a')][_0x194d6d('0x1a8d')]||_0x194d6d('0xd7a'))+_0x194d6d('0x14d4')}),_0x6bbeae(_0x3af874[_0x194d6d('0xd7a')]);})[_0x312b7c('0x1cb5')](function(_0xda39a0){const _0x265301=_0x312b7c;if(_0xda39a0[_0x265301('0x11fc')]&&_0xda39a0[_0x265301('0x11fc')][_0x265301('0x25be')]&&_0xda39a0['data'][_0x265301('0x25be')][_0x265301('0x2566')]){_0x3af874[_0x265301('0x25be')]=_0xda39a0[_0x265301('0x11fc')][_0x265301('0x25be')]||[{'message':_0xda39a0[_0x265301('0x17df')](),'type':'api.chatProactiveAction.delete'}];for(let _0x2d08d5=0x0;_0x2d08d5<_0xda39a0['data'][_0x265301('0x25be')][_0x265301('0x2566')];_0x2d08d5++){_0x3ea39b[_0x265301('0x5e8')]({'title':_0xda39a0[_0x265301('0x11fc')][_0x265301('0x25be')][_0x2d08d5][_0x265301('0x1d7')],'msg':_0xda39a0['data'][_0x265301('0x25be')][_0x2d08d5][_0x265301('0x15e2')]});}}else _0x3ea39b[_0x265301('0x5e8')]({'title':_0xda39a0[_0x265301('0x1b51')]?_0x265301('0x15d1')+_0xda39a0[_0x265301('0x1b51')]+_0x265301('0x1b0b')+_0xda39a0[_0x265301('0x22ce')]:_0x265301('0x2660'),'msg':_0xda39a0[_0x265301('0x11fc')]?JSON[_0x265301('0x1be0')](_0xda39a0[_0x265301('0x11fc')][_0x265301('0x15e2')]):_0xda39a0[_0x265301('0x15e2')]||_0xda39a0[_0x265301('0x17df')]()});});},function(){});}function _0x6e00d0(_0x561bcf){return _0x561bcf===null?undefined:new Date(_0x561bcf);}function _0x6bbeae(_0x197f19){const _0x3adbe4=_0x4adbb4;_0x5d6efd[_0x3adbe4('0x19d')](_0x197f19);}}const _0xa1ef9e=_0x1db34b;_0x11ed2f[_0x34e79e('0x2d9')]=['$scope'];function _0x11ed2f(_0x3cd54f){const _0x1288eb=_0x34e79e,_0x1409ba=this;_0x1409ba['chatWebsite']={},_0x1409ba[_0x1288eb('0x24eb')]=_0x2b2a03,_0x1409ba[_0x1288eb('0x2276')]={};function _0x2b2a03(_0x501931){const _0x3cf3d5=_0x1288eb;_0x1409ba[_0x3cf3d5('0x169c')]=_0x501931,_0x1409ba[_0x3cf3d5('0x1ce2')]='\x0a',_0x1409ba[_0x3cf3d5('0xba2')]=_0x3cf3d5('0xaee')+_0x1409ba[_0x3cf3d5('0x169c')][_0x3cf3d5('0x2279')]+_0x3cf3d5('0x4e')+_0x1409ba['chatWebsite']['id']+_0x3cf3d5('0xefa')+_0x1409ba['chatWebsite'][_0x3cf3d5('0x2620')]+_0x3cf3d5('0xd48'),_0x1409ba[_0x3cf3d5('0x2423')]=_0x3cf3d5('0x23b1');}_0x3cd54f['$watch'](_0x1288eb('0xa80'),function(){const _0x59877a=_0x1288eb;_0x1409ba['script']=_0x59877a('0xaee')+_0x1409ba[_0x59877a('0x169c')]['remote']+_0x59877a('0x4e')+_0x1409ba[_0x59877a('0x169c')]['id']+'/snippet?token='+_0x1409ba[_0x59877a('0x169c')]['token']+_0x59877a('0xd48');});}const _0x1edf7b=_0x11ed2f;_0x4e063a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0xd57')];function _0x4e063a(_0x1676a1,_0x4cbdfe){const _0x3cfc68=_0x34e79e,_0x1b24a5=this,_0xca9473=0x8,_0x281047=_0xca9473*0x400*0x400;_0x1b24a5[_0x3cfc68('0x169c')]={},_0x1b24a5[_0x3cfc68('0xe28')],_0x1b24a5[_0x3cfc68('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x281047,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1b24a5[_0x3cfc68('0x2793')]={'flow':{}},_0x1b24a5[_0x3cfc68('0x189a')]=![],_0x1b24a5[_0x3cfc68('0x1573')]=_0x5218ad,_0x1b24a5['upload']=_0x48a013,_0x1b24a5[_0x3cfc68('0xc41')]=_0xc96920,_0x1b24a5[_0x3cfc68('0x24eb')]=_0x967520;function _0x967520(_0x1cfcb3,_0x80ebb){const _0x194252=_0x3cfc68;_0x1b24a5[_0x194252('0x169c')]=angular[_0x194252('0x2669')](_0x1cfcb3),_0x1b24a5[_0x194252('0xe28')]=typeof _0x80ebb!=='undefined'?_0x80ebb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b24a5[_0x194252('0x1fce')][_0x194252('0x159c')]=_0x194252('0x214a')[_0x194252('0x10a4')](_0x194252('0x1d1e'),_0x1b24a5['chatWebsite']['id']),_0x1b24a5[_0x194252('0x169c')]['images']=[];}function _0x5218ad(_0x567c34){const _0x1e2b33=_0x3cfc68,_0x5572f1=[_0x1e2b33('0x170a'),_0x1e2b33('0xec2')];if(!_0x283545()[_0x1e2b33('0x1d4e')](_0x5572f1,_0x567c34[_0x1e2b33('0xa31')]()))return _0x4cbdfe[_0x1e2b33('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x567c34[_0x1e2b33('0xa31')](),'msg':'Supported\x20extension:\x20'+_0x5572f1[_0x1e2b33('0x185f')]()}),![];if(_0x567c34[_0x1e2b33('0x634')]>_0x281047)return _0x4cbdfe['error']({'title':_0x1e2b33('0x6e8'),'msg':_0x1e2b33('0x232c')+_0xca9473+'MB'}),![];const _0x4354b7={'id':_0x567c34['uniqueIdentifier'],'file':_0x567c34,'type':_0x1e2b33('0x1c20')};return _0x1b24a5[_0x1e2b33('0x169c')]['images'][_0x1e2b33('0xc51')](_0x4354b7),!![];}function _0x48a013(){const _0x47b66c=_0x3cfc68;_0x1b24a5['ngFlow']['flow'][_0x47b66c('0xcc6')][_0x47b66c('0x186d')]={'X-Requested-With':_0x47b66c('0xa34'),'Authorization':_0x47b66c('0xf2f')+_0x1676a1['get'](_0x47b66c('0x2eb'))},_0x1b24a5[_0x47b66c('0x2793')][_0x47b66c('0x8a4')][_0x47b66c('0x1b63')]();}function _0xc96920(_0x5690a0){const _0x15d1e4=_0x3cfc68;angular['forEach'](_0x1b24a5[_0x15d1e4('0x169c')][_0x15d1e4('0x17d5')],function(_0x2c6ea0){const _0x22f370=_0x15d1e4;if(_0x2c6ea0['id']===_0x5690a0['uniqueIdentifier']){const _0x4a933a=new FileReader();_0x4a933a[_0x22f370('0x1ccc')](_0x2c6ea0['file']['file']),_0x4a933a[_0x22f370('0x2468')]=function(_0x247aac){const _0xa5d350=_0x22f370;_0x2c6ea0[_0xa5d350('0x1672')]=_0x247aac[_0xa5d350('0x159c')][_0xa5d350('0xdb9')];},_0x2c6ea0[_0x22f370('0x1d7')]=_0x22f370('0x157f');}});}}const _0x57878e=_0x4e063a;_0x1c359b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document','$translate',_0x34e79e('0x130d'),'setting','api',_0x34e79e('0xd57'),'Auth',_0x34e79e('0x169c'),_0x34e79e('0xec9')];function _0x1c359b(_0x31f322,_0x295cb4,_0x438197,_0x54c3b1,_0x45e764,_0x6aade9,_0x3e1884,_0xe71f8c,_0x36a902,_0x5c0005,_0x3a74cc,_0x315c82){const _0x490244=_0x34e79e,_0x2c7a1d=this;_0x2c7a1d['currentUser']=_0x5c0005['getCurrentUser'](),_0x2c7a1d[_0x490244('0x130d')]=_0x6aade9,_0x2c7a1d['setting']=_0x3e1884,_0x2c7a1d['passwordPattern']=_0x2c7a1d[_0x490244('0x1af0')][_0x490244('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c7a1d['location']=_0x295cb4['protocol']()+'://'+_0x295cb4[_0x490244('0x1c6a')](),_0x2c7a1d[_0x490244('0x169c')]=_0x3a74cc||_0x31f322[_0x490244('0x4b9')]['chatWebsite']||{},_0x2c7a1d[_0x490244('0xec9')]=_0x315c82&&_0x315c82['count']==0x1?_0x315c82[_0x490244('0x25df')][0x0]:null,_0x2c7a1d[_0x490244('0xe28')]=_0x5c0005[_0x490244('0x157e')](_0x2c7a1d[_0x490244('0xec9')]?_0x2c7a1d[_0x490244('0xec9')][_0x490244('0xe28')]:null),_0x2c7a1d['hasModulePermissions']={},_0x2c7a1d[_0x490244('0xcb3')]=_0x31f322[_0x490244('0x4b9')][_0x490244('0x24f6')]||0x0,_0x2c7a1d['agentadddialog']=_0x4cc25f,_0x2c7a1d[_0x490244('0x204f')]=_0x36a902[_0x490244('0x2276')],_0x2c7a1d[_0x490244('0x2277')]=_0xcdfcbf,_0x2c7a1d['saveChatWebsite']=_0x1c7e63,_0x5c0005[_0x490244('0x1516')](_0x490244('0xe23'))?_0xe71f8c[_0x490244('0x1ba4')][_0x490244('0x1335')]({'fields':'id,name','sort':_0x490244('0x1a8d')})['$promise'][_0x490244('0x2788')](function(_0x4b74a0){const _0x42fdd6=_0x490244;_0x2c7a1d[_0x42fdd6('0x2')]=_0x4b74a0[_0x42fdd6('0x25df')]||[];})['catch'](function(_0x1ccaf2){const _0x9875d1=_0x490244;_0x36a902['error']({'title':_0x1ccaf2['status']?_0x9875d1('0x15d1')+_0x1ccaf2[_0x9875d1('0x1b51')]+'\x20-\x20'+_0x1ccaf2[_0x9875d1('0x22ce')]:_0x9875d1('0x11da'),'msg':_0x1ccaf2[_0x9875d1('0x11fc')]?JSON[_0x9875d1('0x1be0')](_0x1ccaf2[_0x9875d1('0x11fc')]):_0x1ccaf2[_0x9875d1('0x17df')]()});}):_0xe71f8c[_0x490244('0x1ba4')]['get']({'fields':_0x490244('0x1338'),'sort':_0x490244('0x1a8d')})[_0x490244('0x1714')]['then'](function(_0x2c032b){const _0x540914=_0x490244;_0x2c7a1d[_0x540914('0x2')]=_0x2c032b[_0x540914('0x25df')]||[];})['then'](function(){const _0x249a26=_0x490244;return _0xe71f8c[_0x249a26('0xec9')][_0x249a26('0x1335')]({'userProfileId':_0x2c7a1d['currentUser']['userProfileId'],'sectionId':0x12d})['$promise'];})['then'](function(_0x41a267){const _0x2b32b5=_0x490244,_0x3c936d=_0x41a267&&_0x41a267['rows']?_0x41a267[_0x2b32b5('0x25df')][0x0]:null;if(!_0x3c936d){const _0x2e35be=[];let _0x19e756=null;_0x2c7a1d['chatWebsite']&&(_0x19e756=_0x283545()['find'](_0x2c7a1d[_0x2b32b5('0x2')],{'id':Number(_0x2c7a1d[_0x2b32b5('0x169c')][_0x2b32b5('0x354')])}));for(let _0x98aa08=0x0;_0x98aa08<_0x2c7a1d[_0x2b32b5('0x2')][_0x2b32b5('0x2566')];_0x98aa08++){_0x19e756&&_0x2c7a1d['lists'][_0x98aa08]['id']===_0x19e756['id']&&(_0x2c7a1d[_0x2b32b5('0x2')][_0x98aa08][_0x2b32b5('0x3bf')]=![],_0x2e35be[_0x2b32b5('0x13e3')](_0x2c7a1d['lists'][_0x98aa08]));}_0x2c7a1d['lists']=_0x2e35be;}else{if(!_0x3c936d[_0x2b32b5('0x1c0a')])return _0xe71f8c[_0x2b32b5('0x1050')][_0x2b32b5('0x1335')]({'sectionId':_0x3c936d['id']})[_0x2b32b5('0x1714')][_0x2b32b5('0x2788')](function(_0x4c4e8f){const _0x8ab213=_0x2b32b5,_0x52103a=_0x283545()[_0x8ab213('0x155d')](_0x4c4e8f[_0x8ab213('0x25df')],function(_0x306c58){const _0xcad762=_0x8ab213;return _0x283545()[_0xcad762('0x20e8')](_0x2c7a1d[_0xcad762('0x2')],{'id':_0x306c58[_0xcad762('0x2707')]});});let _0x488a8b=null;_0x2c7a1d['chatWebsite']&&(_0x488a8b=_0x283545()[_0x8ab213('0x20e8')](_0x2c7a1d['lists'],{'id':Number(_0x2c7a1d['chatWebsite'][_0x8ab213('0x354')])}));if(_0x488a8b&&!_0x283545()[_0x8ab213('0xc5d')](_0x52103a,['id',_0x488a8b['id']])){const _0x53a9c6=_0x283545()[_0x8ab213('0x20e8')](_0x2c7a1d[_0x8ab213('0x2')],{'id':_0x488a8b['id']});_0x53a9c6['canSelect']=![],_0x52103a[_0x8ab213('0x13e3')](_0x53a9c6);}_0x2c7a1d[_0x8ab213('0x2')]=_0x52103a;});}})['catch'](function(_0xbd68bc){const _0x3b9fa9=_0x490244;_0x36a902[_0x3b9fa9('0x5e8')]({'title':_0xbd68bc[_0x3b9fa9('0x1b51')]?_0x3b9fa9('0x15d1')+_0xbd68bc[_0x3b9fa9('0x1b51')]+'\x20-\x20'+_0xbd68bc['statusText']:_0x3b9fa9('0x999'),'msg':_0xbd68bc[_0x3b9fa9('0x11fc')]?JSON[_0x3b9fa9('0x1be0')](_0xbd68bc[_0x3b9fa9('0x11fc')]):_0xbd68bc[_0x3b9fa9('0x17df')]()});}),_0x5c0005['hasRole']('admin')?_0xe71f8c[_0x490244('0x2630')][_0x490244('0x1335')]({'fields':_0x490244('0x1338'),'sort':_0x490244('0x1a8d'),'IntervalId':_0x490244('0x954')})['$promise']['then'](function(_0x13c553){const _0x4630bc=_0x490244;_0x2c7a1d[_0x4630bc('0x2630')]=_0x13c553[_0x4630bc('0x25df')]||[];})[_0x490244('0x1cb5')](function(_0x26f800){const _0x54e741=_0x490244;_0x36a902['error']({'title':_0x26f800['status']?_0x54e741('0x15d1')+_0x26f800[_0x54e741('0x1b51')]+_0x54e741('0x1b0b')+_0x26f800[_0x54e741('0x22ce')]:_0x54e741('0x2332'),'msg':_0x26f800[_0x54e741('0x11fc')]?JSON[_0x54e741('0x1be0')](_0x26f800[_0x54e741('0x11fc')]):_0x26f800[_0x54e741('0x17df')]()});}):_0xe71f8c[_0x490244('0x2630')][_0x490244('0x1335')]({'fields':_0x490244('0x1338'),'sort':_0x490244('0x1a8d'),'IntervalId':_0x490244('0x954')})['$promise'][_0x490244('0x2788')](function(_0x14f0a3){const _0x3c84c7=_0x490244;_0x2c7a1d[_0x3c84c7('0x2630')]=_0x14f0a3[_0x3c84c7('0x25df')]||[];})[_0x490244('0x2788')](function(){const _0x2df7f8=_0x490244;return _0xe71f8c['userProfileSection'][_0x2df7f8('0x1335')]({'userProfileId':_0x2c7a1d[_0x2df7f8('0x9cb')]['userProfileId'],'sectionId':0x3ec})[_0x2df7f8('0x1714')];})['then'](function(_0x251847){const _0x1ec22a=_0x490244,_0x496b4f=_0x251847&&_0x251847[_0x1ec22a('0x25df')]?_0x251847['rows'][0x0]:null;if(!_0x496b4f){const _0x5d5cca=[];let _0x4d9818=null;_0x2c7a1d['chatWebsite']&&(_0x4d9818=_0x283545()[_0x1ec22a('0x20e8')](_0x2c7a1d[_0x1ec22a('0x2630')],{'id':Number(_0x2c7a1d[_0x1ec22a('0x169c')]['IntervalId'])}));for(let _0x32179f=0x0;_0x32179f<_0x2c7a1d[_0x1ec22a('0x2630')][_0x1ec22a('0x2566')];_0x32179f++){_0x4d9818&&_0x2c7a1d[_0x1ec22a('0x2630')][_0x32179f]['id']===_0x4d9818['id']&&(_0x2c7a1d['interval'][_0x32179f]['canSelect']=![],_0x5d5cca[_0x1ec22a('0x13e3')](_0x2c7a1d['interval'][_0x32179f]));}_0x2c7a1d[_0x1ec22a('0x2630')]=_0x5d5cca;}else{if(!_0x496b4f[_0x1ec22a('0x1c0a')])return _0xe71f8c[_0x1ec22a('0x1050')][_0x1ec22a('0x1335')]({'sectionId':_0x496b4f['id']})[_0x1ec22a('0x1714')][_0x1ec22a('0x2788')](function(_0xd39080){const _0x5a8667=_0x1ec22a,_0x342216=_0x283545()['map'](_0xd39080[_0x5a8667('0x25df')],function(_0x4f0eba){const _0x28b3c6=_0x5a8667;return _0x283545()['find'](_0x2c7a1d['interval'],{'id':_0x4f0eba[_0x28b3c6('0x2707')]});});let _0xa27426=null;_0x2c7a1d[_0x5a8667('0x169c')]&&(_0xa27426=_0x283545()[_0x5a8667('0x20e8')](_0x2c7a1d[_0x5a8667('0x2630')],{'id':Number(_0x2c7a1d[_0x5a8667('0x169c')][_0x5a8667('0x20d0')])}));if(_0xa27426&&!_0x283545()[_0x5a8667('0xc5d')](_0x342216,['id',_0xa27426['id']])){const _0x2ff040=_0x283545()[_0x5a8667('0x20e8')](_0x2c7a1d[_0x5a8667('0x2630')],{'id':_0xa27426['id']});_0x2ff040[_0x5a8667('0x3bf')]=![],_0x342216[_0x5a8667('0x13e3')](_0x2ff040);}_0x2c7a1d[_0x5a8667('0x2630')]=_0x342216;});}})['catch'](function(_0x353d99){const _0x5e5933=_0x490244;_0x36a902[_0x5e5933('0x5e8')]({'title':_0x353d99['status']?_0x5e5933('0x15d1')+_0x353d99['status']+_0x5e5933('0x1b0b')+_0x353d99['statusText']:'SYSTEM:GETinterval','msg':_0x353d99[_0x5e5933('0x11fc')]?JSON['stringify'](_0x353d99['data']):_0x353d99[_0x5e5933('0x17df')]()});}),_0x5c0005['hasRole'](_0x490244('0xe23'))?_0xe71f8c[_0x490244('0x619')]['get']({'fields':_0x490244('0xcfa'),'sort':_0x490244('0x1a8d'),'nolimit':_0x490244('0x1001')})['$promise']['then'](function(_0x55ed27){const _0x511ad7=_0x490244;_0x2c7a1d[_0x511ad7('0x225d')]=_0x55ed27[_0x511ad7('0x25df')]||[];})[_0x490244('0x1cb5')](function(_0x5661c4){const _0x4fd268=_0x490244;_0x36a902['error']({'title':_0x5661c4[_0x4fd268('0x1b51')]?'API:'+_0x5661c4[_0x4fd268('0x1b51')]+_0x4fd268('0x1b0b')+_0x5661c4[_0x4fd268('0x22ce')]:_0x4fd268('0x10d8'),'msg':_0x5661c4[_0x4fd268('0x11fc')]?JSON[_0x4fd268('0x1be0')](_0x5661c4[_0x4fd268('0x11fc')]):_0x5661c4[_0x4fd268('0x17df')]()});}):_0xe71f8c['pause']['get']({'fields':_0x490244('0xcfa'),'sort':_0x490244('0x1a8d'),'nolimit':_0x490244('0x1001')})[_0x490244('0x1714')][_0x490244('0x2788')](function(_0x19c9c2){const _0x3f1d6c=_0x490244;_0x2c7a1d[_0x3f1d6c('0x225d')]=_0x19c9c2[_0x3f1d6c('0x25df')]||[];})[_0x490244('0x2788')](function(){const _0x35ab38=_0x490244;return _0xe71f8c[_0x35ab38('0xec9')][_0x35ab38('0x1335')]({'userProfileId':_0x2c7a1d[_0x35ab38('0x9cb')][_0x35ab38('0x237f')],'sectionId':0x3ed})['$promise'];})[_0x490244('0x2788')](function(_0x2b810b){const _0x3ffa93=_0x490244,_0x4cadbc=_0x2b810b&&_0x2b810b[_0x3ffa93('0x25df')]?_0x2b810b[_0x3ffa93('0x25df')][0x0]:null;if(!_0x4cadbc)_0x2c7a1d[_0x3ffa93('0x225d')]=[];else{if(!_0x4cadbc[_0x3ffa93('0x1c0a')])return _0xe71f8c['userProfileResource'][_0x3ffa93('0x1335')]({'sectionId':_0x4cadbc['id']})[_0x3ffa93('0x1714')]['then'](function(_0x2f7095){const _0x511adc=_0x3ffa93,_0x4486b3=_0x283545()['map'](_0x2f7095[_0x511adc('0x25df')],function(_0x542daf){const _0x204e35=_0x511adc;return _0x283545()['find'](_0x2c7a1d[_0x204e35('0x225d')],{'id':_0x542daf[_0x204e35('0x2707')]});});_0x2c7a1d[_0x511adc('0x225d')][_0x511adc('0x1534')](function(_0x1a1cb0){const _0x4f3e15=_0x511adc;!_0x283545()['some'](_0x4486b3,['id',_0x1a1cb0['id']])&&(_0x1a1cb0[_0x4f3e15('0x3bf')]=![]),_0x4486b3[_0x4f3e15('0x13e3')](_0x1a1cb0);}),_0x2c7a1d[_0x511adc('0x225d')]=_0x4486b3;});}})['catch'](function(_0x3f6031){const _0xa4b83f=_0x490244;_0x36a902['error']({'title':_0x3f6031[_0xa4b83f('0x1b51')]?_0xa4b83f('0x15d1')+_0x3f6031['status']+_0xa4b83f('0x1b0b')+_0x3f6031[_0xa4b83f('0x22ce')]:_0xa4b83f('0x7d9'),'msg':_0x3f6031[_0xa4b83f('0x11fc')]?JSON['stringify'](_0x3f6031[_0xa4b83f('0x11fc')]):_0x3f6031['toString']()});});function _0x4cc25f(_0x1c5d8c,_0x2acae0){const _0x328613=_0x490244;_0x438197[_0x328613('0x2fa')]({'controller':'ChatWebsiteagentaddController','controllerAs':'vm','templateUrl':_0x20e67b,'parent':angular[_0x328613('0x16b1')](_0x54c3b1[_0x328613('0x945')]),'targetEvent':_0x2acae0,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x1c5d8c,'chatWebsites':_0x2c7a1d[_0x328613('0x6de')]?_0x2c7a1d[_0x328613('0x6de')]['rows']:[],'crudPermissions':_0x2c7a1d[_0x328613('0xe28')],'realtime':![]}});}function _0xcdfcbf(){const _0x58d783=_0x490244;_0x31f322['go'](_0x58d783('0x167'),{},{'reload':_0x58d783('0x167')});}function _0x1c7e63(){const _0x6080a=_0x490244;_0xe71f8c[_0x6080a('0x169c')]['update']({'id':_0x2c7a1d[_0x6080a('0x169c')]['id']},_0x2c7a1d[_0x6080a('0x169c')])['$promise'][_0x6080a('0x2788')](function(){const _0x38cf1d=_0x6080a;_0x36a902[_0x38cf1d('0x173b')]({'title':'ChatWebsite\x20updated!','msg':_0x2c7a1d[_0x38cf1d('0x169c')][_0x38cf1d('0x1a8d')]?_0x2c7a1d[_0x38cf1d('0x169c')][_0x38cf1d('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x6080a('0x1cb5')](function(_0x3b94da){const _0x13f1e0=_0x6080a;_0x36a902[_0x13f1e0('0x5e8')]({'title':_0x3b94da['status']?'API:'+_0x3b94da['status']+_0x13f1e0('0x1b0b')+_0x3b94da[_0x13f1e0('0x22ce')]:_0x13f1e0('0x136'),'msg':_0x3b94da[_0x13f1e0('0x11fc')]?JSON['stringify'](_0x3b94da[_0x13f1e0('0x11fc')]):_0x3b94da['toString']()});});}}const _0x4f40c5=_0x1c359b;_0x3a05b0[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0x3a05b0(_0x47b625,_0xfbbfdf){const _0x460f66=_0x34e79e;_0x47b625[_0x460f66('0x249b')](_0x460f66('0x1bde'),{'abstract':!![],'url':_0x460f66('0x227a')})[_0x460f66('0x249b')](_0x460f66('0x273c'),{'url':_0x460f66('0xd8a'),'views':{'content@app':{'templateUrl':_0x117f46,'controller':_0x460f66('0x92e')}},'resolve':{'chatQueues':['apiResolver',_0x460f66('0x1b04'),function(_0x51d38e,_0x271b75){const _0x3a744c=_0x460f66;return _0x271b75[_0x3a744c('0x1516')](_0x3a744c('0xe23'))?_0x51d38e['resolve'](_0x3a744c('0x13d5'),{'fields':_0x3a744c('0x1a03'),'sort':'-updatedAt','channel':_0x3a744c('0x231'),'limit':0xa,'offset':0x0}):_0x51d38e['resolve'](_0x3a744c('0x27c5'),{'id':_0x271b75[_0x3a744c('0x24cc')]()[_0x3a744c('0x237f')],'section':'ChatQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x3a744c('0x1cee'),'channel':_0x3a744c('0x231'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x460f66('0x1318'),'Auth',function(_0x45c2a4,_0x596e09){const _0x53ed8b=_0x460f66;return _0x596e09[_0x53ed8b('0x1516')]('admin')?null:_0x45c2a4[_0x53ed8b('0x2322')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x596e09[_0x53ed8b('0x24cc')]()[_0x53ed8b('0x237f')]});}],'userProfileSection':[_0x460f66('0x1318'),_0x460f66('0x1b04'),function(_0x2b81d4,_0x7446b5){const _0x337fb5=_0x460f66;return _0x7446b5[_0x337fb5('0x1516')](_0x337fb5('0xe23'))?null:_0x2b81d4[_0x337fb5('0x2322')](_0x337fb5('0x22ca'),{'fields':_0x337fb5('0xe2c'),'userProfileId':_0x7446b5[_0x337fb5('0x24cc')]()[_0x337fb5('0x237f')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x460f66('0x231')})[_0x460f66('0x249b')](_0x460f66('0x18fc'),{'url':'/:id?tab','params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26be7f,'controller':'ChatQueueController\x20as\x20vm'}},'resolve':{'chatQueue':[_0x460f66('0x1318'),_0x460f66('0xad0'),function(_0x484015,_0x3ab5fc){const _0x5a16a7=_0x460f66;return _0x484015[_0x5a16a7('0x2322')]('chatQueue@get',{'fields':_0x5a16a7('0x1a03'),'id':_0x3ab5fc['id']});}],'userProfileSection':[_0x460f66('0x1318'),_0x460f66('0x1b04'),function(_0x20875d,_0x17af4d){const _0x43cc36=_0x460f66;return _0x20875d[_0x43cc36('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x17af4d[_0x43cc36('0x24cc')]()[_0x43cc36('0x237f')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x460f66('0x231')})[_0x460f66('0x249b')](_0x460f66('0x167'),{'url':'/chatWebsites','views':{'content@app':{'templateUrl':_0x1f9233,'controller':_0x460f66('0x23ed')}},'resolve':{'chatWebsites':[_0x460f66('0x1318'),_0x460f66('0x1b04'),function(_0x46735e,_0x442f7c){const _0x1a1f4e=_0x460f66;return _0x442f7c[_0x1a1f4e('0x1516')](_0x1a1f4e('0xe23'))?_0x46735e[_0x1a1f4e('0x2322')]('chatWebsite@get',{'fields':_0x1a1f4e('0x4a6'),'sort':_0x1a1f4e('0x1cee'),'limit':0xa,'offset':0x0}):_0x46735e[_0x1a1f4e('0x2322')](_0x1a1f4e('0x27c5'),{'id':_0x442f7c[_0x1a1f4e('0x24cc')]()[_0x1a1f4e('0x237f')],'section':_0x1a1f4e('0x453'),'fields':_0x1a1f4e('0x4a6'),'sort':_0x1a1f4e('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x460f66('0x1b04'),function(_0x148708,_0xd92250){const _0x338156=_0x460f66;return _0xd92250[_0x338156('0x1516')](_0x338156('0xe23'))?null:_0x148708[_0x338156('0x2322')](_0x338156('0x231d'),{'fields':_0x338156('0x3f0'),'id':_0xd92250[_0x338156('0x24cc')]()[_0x338156('0x237f')]});}],'userProfileSection':[_0x460f66('0x1318'),_0x460f66('0x1b04'),function(_0x14cdef,_0x1002dd){const _0x4c51bf=_0x460f66;return _0x1002dd[_0x4c51bf('0x1516')](_0x4c51bf('0xe23'))?null:_0x14cdef['resolve'](_0x4c51bf('0x22ca'),{'fields':_0x4c51bf('0xe2c'),'userProfileId':_0x1002dd[_0x4c51bf('0x24cc')]()[_0x4c51bf('0x237f')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x460f66('0x231')})[_0x460f66('0x249b')]('app.chat.chatWebsites.edit',{'url':_0x460f66('0x206b'),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3b8070,'controller':_0x460f66('0x17b2')}},'resolve':{'chatWebsite':[_0x460f66('0x1318'),_0x460f66('0xad0'),function(_0x53ee59,_0x117eac){const _0x85f302=_0x460f66;return _0x53ee59[_0x85f302('0x2322')](_0x85f302('0x99f'),{'fields':_0x85f302('0x4a6'),'id':_0x117eac['id']});}],'userProfileSection':[_0x460f66('0x1318'),_0x460f66('0x1b04'),function(_0x3b2f9d,_0x286310){const _0x303cb6=_0x460f66;return _0x3b2f9d[_0x303cb6('0x2322')](_0x303cb6('0x22ca'),{'fields':_0x303cb6('0xe2c'),'userProfileId':_0x286310[_0x303cb6('0x24cc')]()[_0x303cb6('0x237f')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x460f66('0x231')}),_0xfbbfdf['addPart'](_0x460f66('0x2021'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1bde'),[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),'ckeditor',_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),'angularMaterialFormBuilder',_0x34e79e('0x2023'),_0x34e79e('0x429'),'angular.filter','app.chat.realtime'])[_0x34e79e('0x1a22')](_0x3a05b0)[_0x34e79e('0xb44')](_0x34e79e('0x6b'),_0x3ba91c)['controller'](_0x34e79e('0xe2f'),_0x1854be)[_0x34e79e('0xb44')](_0x34e79e('0xfbd'),_0x53b2cd)[_0x34e79e('0xb44')](_0x34e79e('0xb8c'),_0x469ec7)[_0x34e79e('0xb44')]('ChatQueueController',_0x389dc5)[_0x34e79e('0xb44')](_0x34e79e('0x5f6'),_0xab73b8)[_0x34e79e('0xb44')](_0x34e79e('0xfe7'),_0x5f507d)[_0x34e79e('0xb44')](_0x34e79e('0x266e'),_0x1cb63a)[_0x34e79e('0xb44')](_0x34e79e('0x1f37'),_0x4bf71b)['controller'](_0x34e79e('0x80d'),_0x388c13)['controller'](_0x34e79e('0xe61'),_0x19e17c)[_0x34e79e('0xb44')](_0x34e79e('0xb3c'),_0x5c4e66)[_0x34e79e('0xb44')](_0x34e79e('0xb3c'),_0x5c4e66)[_0x34e79e('0xb44')](_0x34e79e('0x17b0'),_0x37c2e4)['controller'](_0x34e79e('0x295'),_0x382e72)[_0x34e79e('0xb44')](_0x34e79e('0x4f0'),_0x48a57b)[_0x34e79e('0xb44')]('EditChatWebsiteAppgotoifDialogController',_0x510acc)[_0x34e79e('0xb44')](_0x34e79e('0xee'),_0x49af5e)[_0x34e79e('0xb44')]('EditChatWebsiteAppintervalDialogController',_0x10428a)['controller'](_0x34e79e('0x1b37'),_0x507523)[_0x34e79e('0xb44')](_0x34e79e('0x1b45'),_0x328283)[_0x34e79e('0xb44')](_0x34e79e('0x2083'),_0x4a2e88)[_0x34e79e('0xb44')](_0x34e79e('0x161f'),_0x5f0806)['controller']('ChatWebsiteChatCannedAnswersController',_0x1b3d54)[_0x34e79e('0xb44')](_0x34e79e('0xe1a'),_0x2db53e)[_0x34e79e('0xb44')](_0x34e79e('0x13fa'),_0x30d950)[_0x34e79e('0xb44')](_0x34e79e('0x160a'),_0x34b3bd)['controller']('ChatWebsiteonlineFormController',_0x4f9b9f)[_0x34e79e('0xb44')](_0x34e79e('0x1ab1'),_0x56bc01)['controller']('ChatWebsiteInteractionsController',_0x58fc21)[_0x34e79e('0xb44')](_0x34e79e('0x20df'),_0x4eba2c)[_0x34e79e('0xb44')](_0x34e79e('0x7c4'),_0x1a7484)['controller'](_0x34e79e('0xfda'),_0x415d8c)[_0x34e79e('0xb44')](_0x34e79e('0x1e44'),_0x3faced)[_0x34e79e('0xb44')](_0x34e79e('0x4ea'),_0xa1ef9e)[_0x34e79e('0xb44')](_0x34e79e('0x1f12'),_0x1edf7b)['controller'](_0x34e79e('0xa77'),_0x57878e)[_0x34e79e('0xb44')](_0x34e79e('0x1f28'),_0x4f40c5);const _0x272b57=_0x18dd13['p']+_0x34e79e('0x17d0'),_0x786699=_0x18dd13['p']+_0x34e79e('0x172f'),_0x4bcfaf=_0x18dd13['p']+_0x34e79e('0x25b9'),_0x174f2e=_0x18dd13['p']+_0x34e79e('0xf55');_0x4d79f0['$inject']=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x135d'),_0x34e79e('0x225d'),_0x34e79e('0x1713'),_0x34e79e('0x1c55'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty','helperClasses',_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x16e3')];function _0x4d79f0(_0x5616ac,_0x469100,_0xe99bff,_0x5c5294,_0x52e315,_0x55800c,_0x2afcca,_0x546c93,_0x356136,_0x39c2f1,_0x1de89d,_0x239663,_0x356ed2,_0x5511f1,_0x326491,_0x46483c,_0x1b225e,_0x35ffa9){const _0x584f75=_0x34e79e,_0x38e6a5=this,_0xfe90ab=[_0x584f75('0x261d'),_0x584f75('0x7c2'),_0x584f75('0x813'),_0x584f75('0x233e'),_0x584f75('0x11e9'),_0x584f75('0x233e'),_0x584f75('0x2838'),_0x584f75('0x32e'),_0x584f75('0x23a5'),_0x584f75('0x1098'),_0x584f75('0x20cd'),_0x584f75('0xfd5'),_0x584f75('0x924'),_0x584f75('0x1891'),_0x584f75('0x2a1'),'chatCapacity',_0x584f75('0xde1'),_0x584f75('0x251c'),_0x584f75('0x27b7'),_0x584f75('0x982'),_0x584f75('0xc8b'),_0x584f75('0xc78'),_0x584f75('0x7af'),_0x584f75('0x113a'),_0x584f75('0x1f88'),_0x584f75('0x1d37'),_0x584f75('0x76c'),'chatStatus',_0x584f75('0x18a3'),'mailStatus','smsStatus',_0x584f75('0x167f'),'faxStatus',_0x584f75('0x1536'),_0x584f75('0x1eeb'),_0x584f75('0x320'),_0x584f75('0x1831'),_0x584f75('0x27b0'),_0x584f75('0x1ac7'),_0x584f75('0xbc'),_0x584f75('0x48b'),'queue',_0x584f75('0xdb6'),'screenrecording',_0x584f75('0x15d7'),_0x584f75('0xafd')],_0x3d0df0=[_0x584f75('0x23a5'),_0x584f75('0x1098'),_0x584f75('0x20cd'),_0x584f75('0xfd5'),_0x584f75('0x924'),_0x584f75('0x1891'),_0x584f75('0x2a1'),'online'];_0x38e6a5[_0x584f75('0x9cb')]=_0x46483c[_0x584f75('0x24cc')](),_0x38e6a5[_0x584f75('0x27be')]=[_0x584f75('0x26f8'),_0x584f75('0x11c3'),_0x584f75('0xed9'),_0x584f75('0x2097'),_0x584f75('0x1af6')],_0x38e6a5['pauses']=_0x2afcca||{'count':0x0,'rows':[]},_0x38e6a5[_0x584f75('0x130d')]=_0x1b225e,_0x38e6a5[_0x584f75('0x63c')]=_0x5511f1,_0x38e6a5[_0x584f75('0xec9')]=_0x326491&&_0x326491[_0x584f75('0x338')]==0x1?_0x326491[_0x584f75('0x25df')][0x0]:null,_0x38e6a5[_0x584f75('0xe28')]=_0x46483c['parseCrudPermissions'](_0x38e6a5[_0x584f75('0xec9')]?_0x38e6a5[_0x584f75('0xec9')][_0x584f75('0xe28')]:null),_0x38e6a5[_0x584f75('0x1713')]=_0x546c93?_0x283545()[_0x584f75('0x13cf')](_0x546c93[_0x584f75('0x25df')]?_0x546c93[_0x584f75('0x25df')]:[],'id'):{},_0x38e6a5[_0x584f75('0x1c55')]=_0x356136?_0x283545()[_0x584f75('0x13cf')](_0x356136['rows']?_0x356136[_0x584f75('0x25df')]:[],'id'):{},_0x38e6a5[_0x584f75('0x26ed')]={},_0x38e6a5[_0x584f75('0x374')]=![],_0x38e6a5[_0x584f75('0x1dc2')]=[],_0x38e6a5[_0x584f75('0x1564')]={};for(const _0x1087f4 in _0x38e6a5[_0x584f75('0x1713')]){typeof _0x38e6a5[_0x584f75('0x1713')][_0x1087f4]!==_0x584f75('0xedb')&&(_0x38e6a5[_0x584f75('0x1713')][_0x1087f4][_0x584f75('0x24eb')]=!![]);}_0x38e6a5['query']={'limit':0xa,'page':0x1,'order':_0x584f75('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0x38e6a5[_0x584f75('0x192f')]=_0x57f219,_0x38e6a5[_0x584f75('0x2025')]=_0x181554,_0x38e6a5[_0x584f75('0x619')]=_0x37077a,_0x38e6a5[_0x584f75('0xc00')]=_0x2182bd,_0x38e6a5[_0x584f75('0xa35')]=_0x36bb27,_0x38e6a5[_0x584f75('0xd10')]=_0x579f4f,_0x38e6a5[_0x584f75('0xcfd')]=_0x382b2c,_0x38e6a5[_0x584f75('0x192')]=_0x37a542,_0x38e6a5[_0x584f75('0xaef')]=_0x10e677,_0x38e6a5[_0x584f75('0x17f9')]=_0x1b4188,_0x38e6a5[_0x584f75('0x158d')]=_0x595b93,_0x38e6a5[_0x584f75('0x2409')]=_0x2ccbcd,_0x38e6a5[_0x584f75('0x122e')]=_0xc42c64,_0x38e6a5[_0x584f75('0x2826')]=_0x1e6047,_0x38e6a5[_0x584f75('0xb61')]=_0x117e42,_0x38e6a5['screenRecording']=_0x4e3e7f,_0x1de89d['on'](_0x584f75('0x71'),_0x38e6a5[_0x584f75('0x158d')]),_0x1de89d['on'](_0x584f75('0x1cb6'),_0x38e6a5[_0x584f75('0x2409')]),_0x1de89d['on'](_0x584f75('0x1958'),_0x38e6a5['onConnect']),_0x1de89d['on'](_0x584f75('0x116b'),_0x38e6a5[_0x584f75('0xb61')]),_0xc42c64();let _0x5b565c=_0x35ffa9(function(){const _0x2b78ec=_0x584f75;_0x38e6a5[_0x2b78ec('0x374')]&&(_0x38e6a5[_0x2b78ec('0x374')]=![],_0xc42c64());},0x3e7);function _0xc42c64(){const _0x10b30f=_0x584f75;_0x38e6a5[_0x10b30f('0x374')]=![];const _0x1f8070=_0x469100[_0x10b30f('0x2311')]();_0x38e6a5[_0x10b30f('0x1808')]=_0x1f8070[_0x10b30f('0x1808')],_0x38e6a5[_0x10b30f('0xfe8')]=[],_0x38e6a5[_0x10b30f('0x1dc2')]=[],_0x283545()[_0x10b30f('0x1b')](_0x38e6a5[_0x10b30f('0x1713')],function(_0x11c645,_0x38f6c9){const _0x2207c1=_0x10b30f;_0x38e6a5['rpcAgents'][_0x38f6c9]&&_0x283545()[_0x2207c1('0x2503')](_0x11c645,_0x283545()[_0x2207c1('0x41b')](_0x283545()['omit'](_0x38e6a5['rpcAgents'][_0x38f6c9],_0x3d0df0),_0xfe90ab)),_0x382b2c(_0x11c645),_0x11c645['online']?(_0x38e6a5[_0x2207c1('0xfe8')][_0x2207c1('0x13e3')](_0x11c645),_0x38e6a5['agentInternal'][_0x11c645['internal']]=_0x38f6c9):_0x11c645[_0x2207c1('0xf3b')]=_0x283545()[_0x2207c1('0x420')](_0x59f37a()()[_0x2207c1('0x22b4')]('x'));});_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0x52c')]&&_0x283545()[_0x10b30f('0x1a90')](_0x38e6a5['filteredAgents'],function(_0x4c63f5){const _0x13e500=_0x10b30f;return _0x4c63f5[_0x13e500('0xee3')]!==_0x38e6a5[_0x13e500('0x135a')][_0x13e500('0x52c')];});_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0xf25')]&&_0x283545()[_0x10b30f('0x1a90')](_0x38e6a5['filteredAgents'],function(_0x97be4d){const _0x33c9aa=_0x10b30f;return _0x97be4d[_0x33c9aa('0x11e9')]!==_0x38e6a5[_0x33c9aa('0x135a')][_0x33c9aa('0xf25')];});_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0x916')]&&_0x283545()[_0x10b30f('0x1a90')](_0x38e6a5['filteredAgents'],function(_0x2fae29){const _0x3b1a70=_0x10b30f;return _0x2fae29[_0x3b1a70('0x2831')][_0x3b1a70('0xc2e')]()[_0x3b1a70('0x821')](_0x38e6a5[_0x3b1a70('0x135a')][_0x3b1a70('0x916')][_0x3b1a70('0xc2e')]())<0x0;});_0x38e6a5['filteredAgents']=_0x4c14af(_0x38e6a5[_0x10b30f('0xfe8')]);const _0x46f931=(_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0x23f5')]-0x1)*_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0x68e')];_0x38e6a5[_0x10b30f('0x26ed')]=_0x283545()[_0x10b30f('0x280')](_0x38e6a5[_0x10b30f('0xfe8')],_0x46f931)[_0x10b30f('0x845')](0x0,_0x38e6a5[_0x10b30f('0x135a')][_0x10b30f('0x68e')]);for(let _0x3bac1b=0x0;_0x3bac1b<_0x38e6a5[_0x10b30f('0x26ed')][_0x10b30f('0x2566')];_0x3bac1b+=0x1){_0x38e6a5[_0x10b30f('0x1dc2')]['push'](_0x38e6a5[_0x10b30f('0x26ed')][_0x3bac1b]['id']);}_0x1f8070[_0x10b30f('0x2322')](),_0x38e6a5[_0x10b30f('0x374')]=!![];}function _0x595b93(_0xf5912e){const _0x41af10=_0x584f75;_0x38e6a5[_0x41af10('0x1713')][_0xf5912e['id']]&&(_0x283545()[_0x41af10('0x2503')](_0x38e6a5[_0x41af10('0x1713')][_0xf5912e['id']],_0x283545()['pick'](_0x283545()[_0x41af10('0x5a9')](_0xf5912e,_0x3d0df0),_0xfe90ab)),_0x283545()[_0x41af10('0x2503')](_0x38e6a5['rpcAgents'][_0xf5912e['id']],_0x283545()['pick'](_0x283545()[_0x41af10('0x5a9')](_0xf5912e,_0x3d0df0),_0xfe90ab)),_0x382b2c(_0x38e6a5['agents'][_0xf5912e['id']]));}function _0x2ccbcd(_0x3bae9f){const _0x46b6ab=_0x584f75;_0x38e6a5[_0x46b6ab('0x1713')][_0x3bae9f['id']]&&(_0x283545()[_0x46b6ab('0x2503')](_0x38e6a5['agents'][_0x3bae9f['id']],_0x283545()[_0x46b6ab('0x41b')](_0x3bae9f,_0xfe90ab)),_0x283545()[_0x46b6ab('0x2503')](_0x38e6a5[_0x46b6ab('0x1c55')][_0x3bae9f['id']],_0x283545()['pick'](_0x3bae9f,_0xfe90ab)),_0x3bae9f[_0x46b6ab('0x233e')]&&(_0x38e6a5[_0x46b6ab('0x1713')][_0x3bae9f['id']][_0x46b6ab('0xf3b')]=_0x3bae9f['lastPauseAt'],_0x38e6a5[_0x46b6ab('0x1c55')][_0x3bae9f['id']][_0x46b6ab('0xf3b')]=_0x3bae9f[_0x46b6ab('0x233e')]),_0x382b2c(_0x38e6a5[_0x46b6ab('0x1713')][_0x3bae9f['id']]));}function _0x1e6047(_0x41aade){const _0x31564b=_0x584f75;_0x38e6a5[_0x31564b('0x1713')][_0x38e6a5['agentInternal'][_0x41aade[_0x31564b('0x7f4')]]]&&(_0x283545()[_0x31564b('0x2503')](_0x38e6a5[_0x31564b('0x1713')][_0x38e6a5[_0x31564b('0x1564')][_0x41aade[_0x31564b('0x7f4')]]],_0x283545()[_0x31564b('0x41b')](_0x41aade,[_0x31564b('0x1ab4'),_0x31564b('0xdb6')])),_0x283545()[_0x31564b('0x2503')](_0x38e6a5['rpcAgents'][_0x38e6a5[_0x31564b('0x1564')][_0x41aade[_0x31564b('0x7f4')]]],_0x283545()['pick'](_0x41aade,[_0x31564b('0x1ab4'),'destconnectedlinenum'])));}function _0x117e42(_0x22bae9){const _0x2fcfed=_0x584f75;_0x38e6a5[_0x2fcfed('0x1713')][_0x38e6a5[_0x2fcfed('0x1564')][_0x22bae9['destaccountcode']]]&&(_0x38e6a5[_0x2fcfed('0x1713')][_0x38e6a5[_0x2fcfed('0x1564')][_0x22bae9[_0x2fcfed('0x7f4')]]]=_0x283545()[_0x2fcfed('0x5a9')](_0x38e6a5[_0x2fcfed('0x1713')][_0x38e6a5[_0x2fcfed('0x1564')][_0x22bae9['destaccountcode']]],[_0x2fcfed('0x1ab4'),_0x2fcfed('0xdb6')]),_0x38e6a5[_0x2fcfed('0x1c55')][_0x38e6a5[_0x2fcfed('0x1564')][_0x22bae9[_0x2fcfed('0x7f4')]]]=_0x283545()[_0x2fcfed('0x5a9')](_0x38e6a5['rpcAgents'][_0x38e6a5['agentInternal'][_0x22bae9['destaccountcode']]],[_0x2fcfed('0x1ab4'),'destconnectedlinenum']));}function _0x57f219(_0x565ee3){const _0x434070=_0x584f75;return _0x39c2f1[_0x434070('0x1e6a')][_0x434070('0x192f')]({'id':_0x565ee3['id'],'device':_0x434070('0x548'),'agent_id':_0x565ee3['id'],'agent_name':_0x565ee3[_0x434070('0x1a8d')]})[_0x434070('0x1714')]['then'](function(){const _0x22a36c=_0x434070;_0x239663[_0x22a36c('0x173b')]({'title':_0x22a36c('0x256b'),'msg':_0x565ee3['fullname']+_0x22a36c('0x12e2')}),_0x38e6a5[_0x22a36c('0x1713')][_0x565ee3['id']]&&(_0x38e6a5[_0x22a36c('0x1713')][_0x565ee3['id']]['online']=![]),_0x38e6a5[_0x22a36c('0x1c55')][_0x565ee3['id']]&&(_0x38e6a5[_0x22a36c('0x1c55')][_0x565ee3['id']][_0x22a36c('0x7c2')]=![]),_0xc42c64();})[_0x434070('0x1cb5')](function(_0xf36faf){const _0x5a84c3=_0x434070;_0x239663[_0x5a84c3('0x5e8')]({'title':_0xf36faf[_0x5a84c3('0x1b51')]?_0x5a84c3('0x15d1')+_0xf36faf['status']+_0x5a84c3('0x1b0b')+_0xf36faf[_0x5a84c3('0x22ce')]:_0x5a84c3('0x184d'),'msg':_0xf36faf[_0x5a84c3('0x11fc')]?JSON[_0x5a84c3('0x1be0')](_0xf36faf[_0x5a84c3('0x11fc')][_0x5a84c3('0x15e2')]):_0xf36faf['toString']()});});}function _0x37077a(_0x4d6039,_0x367e0f){const _0x4047f7=_0x584f75;return _0x39c2f1['user'][_0x4047f7('0x619')]({'id':_0x4d6039['id'],'type':_0x367e0f})['$promise'][_0x4047f7('0x2788')](function(_0xe3cf50){const _0x414498=_0x4047f7;_0x38e6a5[_0x414498('0x1713')][_0x4d6039['id']]&&_0x283545()['merge'](_0x38e6a5[_0x414498('0x1713')][_0x4d6039['id']],_0x283545()[_0x414498('0x41b')](_0xe3cf50,_0xfe90ab)),_0x38e6a5['rpcAgents'][_0x4d6039['id']]&&_0x283545()['merge'](_0x38e6a5[_0x414498('0x1c55')][_0x4d6039['id']],_0x283545()[_0x414498('0x41b')](_0xe3cf50,_0xfe90ab)),_0x382b2c(_0x38e6a5['agents'][_0x4d6039['id']]);})[_0x4047f7('0x1cb5')](function(_0x5dd1c4){const _0x3f699c=_0x4047f7;_0x239663[_0x3f699c('0x5e8')]({'title':_0x5dd1c4[_0x3f699c('0x1b51')]?_0x3f699c('0x15d1')+_0x5dd1c4['status']+_0x3f699c('0x1b0b')+_0x5dd1c4['statusText']:'api.staff.save','msg':_0x5dd1c4[_0x3f699c('0x11fc')]?JSON[_0x3f699c('0x1be0')](_0x5dd1c4[_0x3f699c('0x11fc')][_0x3f699c('0x15e2')]):_0x5dd1c4[_0x3f699c('0x17df')]()});});}function _0x2182bd(_0x28ba4e){const _0x1617f0=_0x584f75;return _0x39c2f1[_0x1617f0('0x1e6a')][_0x1617f0('0x1826')]({'id':_0x28ba4e['id']})[_0x1617f0('0x1714')][_0x1617f0('0x2788')](function(_0x1ce26b){const _0x29791f=_0x1617f0;_0x38e6a5[_0x29791f('0x1713')][_0x28ba4e['id']]&&_0x283545()['merge'](_0x38e6a5['agents'][_0x28ba4e['id']],_0x283545()[_0x29791f('0x41b')](_0x1ce26b,_0xfe90ab)),_0x38e6a5[_0x29791f('0x1c55')][_0x28ba4e['id']]&&_0x283545()['merge'](_0x38e6a5[_0x29791f('0x1c55')][_0x28ba4e['id']],_0x283545()['pick'](_0x1ce26b,_0xfe90ab)),_0x382b2c(_0x38e6a5[_0x29791f('0x1713')][_0x28ba4e['id']]);})['catch'](function(_0x57dd06){const _0x26ca13=_0x1617f0;_0x239663[_0x26ca13('0x5e8')]({'title':_0x57dd06['status']?_0x26ca13('0x15d1')+_0x57dd06['status']+_0x26ca13('0x1b0b')+_0x57dd06['statusText']:_0x26ca13('0x184d'),'msg':_0x57dd06[_0x26ca13('0x11fc')]?JSON[_0x26ca13('0x1be0')](_0x57dd06[_0x26ca13('0x11fc')]['message']):_0x57dd06[_0x26ca13('0x17df')]()});});}function _0x36bb27(_0x377150){const _0x3d9b53=_0x584f75;_0x5c5294[_0x3d9b53('0x2fa')](_0x5c5294[_0x3d9b53('0x204f')]()[_0x3d9b53('0x1e4e')](!![])['title']('Legend')[_0x3d9b53('0x93e')](_0x3d9b53('0x122a'))['ok']('Ok')['targetEvent'](_0x377150));}function _0x181554(_0xb545ec,_0xa1d98a){const _0x2c2ff2=_0x584f75;_0x5c5294[_0x2c2ff2('0x2fa')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0x2c2ff2('0x16b1')](_0x52e315[_0x2c2ff2('0x945')]),'targetEvent':_0xa1d98a,'clickOutsideToClose':!![],'locals':{'agent':_0xb545ec,'agents':[],'channel':_0x2c2ff2('0x2795'),'direction':'inbound','crudPermissions':_0x38e6a5['crudPermissions']}});}function _0x37a542(_0x3ba081){const _0x498081=_0x584f75;return _0x3ba081===_0x498081('0x619')||_0x3ba081==='*pause';}function _0x10e677(_0x529edc){return _0x529edc==='pause';}function _0x1b4188(_0x275594){const _0x2337ce=_0x584f75;return _0x275594===_0x2337ce('0x1d48');}function _0x26ccf3(_0x4a938d){const _0x3923e2=_0x584f75;return _0x4a938d===_0x3923e2('0x124c')||_0x4a938d===_0x3923e2('0x119')||_0x4a938d===_0x3923e2('0x27f0')||_0x4a938d===_0x3923e2('0x26f8')||_0x283545()[_0x3923e2('0x1015')](_0x4a938d);}function _0x579f4f(_0x1cf514,_0x454bff){const _0x247ac4=_0x584f75;if(_0x454bff===_0x247ac4('0x1f60')){if(_0x1cf514[_0x454bff+_0x247ac4('0x21d8')]!==_0x247ac4('0x124c'))return _0x1cf514[_0x454bff+_0x247ac4('0x21d8')];if(_0x1cf514[_0x454bff+_0x247ac4('0x14f6')])return _0x1cf514[_0x454bff+_0x247ac4('0x21d8')]=_0x247ac4('0x619'),'pause';return _0x247ac4('0x124c');}else{if(_0x1cf514[_0x454bff+_0x247ac4('0x14f6')])return _0x1cf514[_0x454bff+_0x247ac4('0x21d8')]=_0x247ac4('0x619'),_0x247ac4('0x619');return _0x1cf514[_0x454bff+_0x247ac4('0x21d8')];}}function _0x382b2c(_0x4d5233){const _0x5f1a80=_0x584f75;let _0x42ecfe=_0x5f1a80('0x119');if(_0x283545()['every']([_0x579f4f(_0x4d5233,'voice'),_0x579f4f(_0x4d5233,'chat'),_0x579f4f(_0x4d5233,_0x5f1a80('0x2795')),_0x579f4f(_0x4d5233,_0x5f1a80('0x18aa')),_0x579f4f(_0x4d5233,_0x5f1a80('0x529')),_0x579f4f(_0x4d5233,'whatsapp'),_0x579f4f(_0x4d5233,_0x5f1a80('0x10cf'))],_0x37a542))_0x42ecfe='pause';else{if(_0x283545()[_0x5f1a80('0xc5d')]([_0x579f4f(_0x4d5233,_0x5f1a80('0x1f60')),_0x579f4f(_0x4d5233,'chat'),_0x579f4f(_0x4d5233,_0x5f1a80('0x2795')),_0x579f4f(_0x4d5233,_0x5f1a80('0x18aa')),_0x579f4f(_0x4d5233,_0x5f1a80('0x529')),_0x579f4f(_0x4d5233,_0x5f1a80('0x195d')),_0x579f4f(_0x4d5233,'fax')],_0x37a542))_0x42ecfe='*pause';else _0x283545()[_0x5f1a80('0x111e')]([_0x579f4f(_0x4d5233,_0x5f1a80('0x1f60')),_0x579f4f(_0x4d5233,_0x5f1a80('0x231')),_0x579f4f(_0x4d5233,'mail'),_0x579f4f(_0x4d5233,_0x5f1a80('0x18aa')),_0x579f4f(_0x4d5233,_0x5f1a80('0x529')),_0x579f4f(_0x4d5233,_0x5f1a80('0x195d')),_0x579f4f(_0x4d5233,'fax')],_0x26ccf3)?_0x42ecfe=_0x5f1a80('0x124c'):_0x42ecfe='busy';}_0x4d5233[_0x5f1a80('0xee3')]!==_0x42ecfe&&(_0x4d5233[_0x5f1a80('0xee3')]=_0x42ecfe,_0x4d5233['init']?(_0x4d5233['init']=![],_0x4d5233[_0x5f1a80('0xf3b')]=_0x37a542(_0x42ecfe)?_0x283545()[_0x5f1a80('0x420')](_0x59f37a()(_0x4d5233[_0x5f1a80('0x233e')])[_0x5f1a80('0x22b4')]('x')):_0x283545()[_0x5f1a80('0xb0a')]([_0x4d5233[_0x5f1a80('0x48b')],_0x4d5233[_0x5f1a80('0x1eeb')],_0x4d5233[_0x5f1a80('0x1831')],_0x4d5233[_0x5f1a80('0x27b0')],_0x4d5233['whatsappStatusTime'],_0x4d5233['openchannelStatusTime'],_0x4d5233['faxStatusTime']])):_0x4d5233['globalStatusTime']=_0x283545()[_0x5f1a80('0x420')](_0x59f37a()()[_0x5f1a80('0x22b4')]('x')));}function _0x4c14af(_0x1d5d5e){const _0xbbbda=_0x584f75,_0x554ba8=_0x283545()[_0xbbbda('0x993')](_0x38e6a5[_0xbbbda('0x135a')][_0xbbbda('0x1dc2')],'-')?'desc':_0xbbbda('0xe07');return _0x283545()['orderBy'](_0x1d5d5e,[_0x38e6a5['query']['order']['replace']('-','')],[_0x554ba8]);}function _0x46db7c(){const _0x165325=_0x584f75;_0x5b565c&&(_0x35ffa9[_0x165325('0x1801')](_0x5b565c),_0x5b565c=null);}function _0x4e3e7f(_0x56dfdc,_0x274085){const _0x48fd1f=_0x584f75;return _0x39c2f1[_0x48fd1f('0x1e6a')]['update']({'id':_0x56dfdc['id']},{'screenrecording':_0x274085})[_0x48fd1f('0x1714')][_0x48fd1f('0x1cb5')](function(_0x5b130a){const _0x338bea=_0x48fd1f;_0x239663[_0x338bea('0x5e8')]({'title':_0x5b130a['status']?'API:'+_0x5b130a[_0x338bea('0x1b51')]+_0x338bea('0x1b0b')+_0x5b130a['statusText']:_0x338bea('0x863'),'msg':_0x5b130a[_0x338bea('0x11fc')]?JSON[_0x338bea('0x1be0')](_0x5b130a[_0x338bea('0x11fc')]['message']):_0x5b130a[_0x338bea('0x17df')]()});});}_0x5616ac[_0x584f75('0x651')](_0x584f75('0x26ac'),function(){const _0x21bf46=_0x584f75;_0x1de89d[_0x21bf46('0x277f')]('user:save'),_0x1de89d[_0x21bf46('0x277f')](_0x21bf46('0x1cb6')),_0x1de89d[_0x21bf46('0x277f')](_0x21bf46('0x1958')),_0x1de89d[_0x21bf46('0x277f')]('user:agentcomplete'),_0x46db7c();});}const _0x14e376=_0x4d79f0,_0x47fd74=_0x18dd13['p']+_0x34e79e('0x1814'),_0x2e0890=_0x18dd13['p']+_0x34e79e('0x1df4');_0x58f410[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x446'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1580'),_0x34e79e('0x16e3'),_0x34e79e('0x283e'),'rpcQueues','api','socket',_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x58f410(_0x18cab5,_0x7bd6b1,_0x33269d,_0x190f2f,_0x31e972,_0x526522,_0x3bf572,_0x3b7a02,_0xfb934f,_0x436eef,_0x598e01,_0x3bdc1e,_0x522e25,_0x2409df){const _0x4cc2e5=_0x34e79e,_0x522b0a=this,_0x32bf36=['loggedIn',_0x4cc2e5('0x2705'),_0x4cc2e5('0x1eb6'),'talking',_0x4cc2e5('0x21c9'),_0x4cc2e5('0x253b'),'message','dialActive',_0x4cc2e5('0x1054'),_0x4cc2e5('0x312'),'paused'];_0x522b0a[_0x4cc2e5('0x9cb')]=_0x2409df[_0x4cc2e5('0x24cc')](),_0x522b0a['count']=_0x3bf572[_0x4cc2e5('0x338')]?_0x3bf572[_0x4cc2e5('0x338')]:0x0,_0x522b0a['queues']=_0x3bf572?_0x283545()[_0x4cc2e5('0x13cf')](_0x3bf572[_0x4cc2e5('0x25df')]?_0x3bf572['rows']:[],'id'):{},_0x522b0a[_0x4cc2e5('0x274c')]=_0x3b7a02?_0x283545()[_0x4cc2e5('0x13cf')](_0x3b7a02[_0x4cc2e5('0x25df')]?_0x3b7a02[_0x4cc2e5('0x25df')]:[],'id'):{},_0x522b0a[_0x4cc2e5('0x63c')]=_0x3bdc1e,_0x522b0a[_0x4cc2e5('0xec9')]=_0x522e25&&_0x522e25[_0x4cc2e5('0x338')]==0x1?_0x522e25[_0x4cc2e5('0x25df')][0x0]:null,_0x522b0a[_0x4cc2e5('0xe28')]=_0x2409df['parseCrudPermissions'](_0x522b0a[_0x4cc2e5('0xec9')]?_0x522b0a[_0x4cc2e5('0xec9')][_0x4cc2e5('0xe28')]:null);_0x2409df[_0x4cc2e5('0x1516')](_0x4cc2e5('0xe23'))?_0x522b0a[_0x4cc2e5('0x135a')]={'type':'inbound','sort':_0x4cc2e5('0x1cee'),'limit':0xa,'page':0x1}:_0x522b0a[_0x4cc2e5('0x135a')]={'id':_0x522b0a['currentUser']['id'],'channel':_0x4cc2e5('0x2795'),'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x522b0a[_0x4cc2e5('0x173b')]=_0x171016,_0x522b0a[_0x4cc2e5('0x138a')]=_0x10593e,_0x522b0a['createOrEditMailQueue']=_0x520465,_0x522b0a[_0x4cc2e5('0x2510')]=_0x2a841e,_0x522b0a[_0x4cc2e5('0x154c')]=_0x3bb998,_0x522b0a[_0x4cc2e5('0x158d')]=_0x237f3d,_0x522b0a['onSaveMember']=_0x371a1a,_0x522b0a[_0x4cc2e5('0x1174')]=_0x3c22dd,_0x522b0a[_0x4cc2e5('0x1768')]=_0x2419d8,_0x522b0a[_0x4cc2e5('0x18e3')]=_0x26f2da,_0x522b0a['onLogout']=_0xe91694,_0x522b0a[_0x4cc2e5('0x11ad')]=_0x164805,_0x522b0a[_0x4cc2e5('0x1dc2')]=[],_0x283545()['forIn'](_0x522b0a['queues'],function(_0x48a639){const _0x46e51a=_0x4cc2e5;_0x522b0a[_0x46e51a('0x1dc2')]['push'](_0x48a639['id']);}),_0x436eef['on'](_0x4cc2e5('0x499'),_0x522b0a['onSave']),_0x436eef['on'](_0x4cc2e5('0xd9a'),_0x522b0a['onSaveMember']),_0x436eef['on'](_0x4cc2e5('0xa27'),_0x522b0a['onRemoveMember']),_0x436eef['on'](_0x4cc2e5('0x1cb6'),_0x522b0a[_0x4cc2e5('0x1768')]),_0x436eef['on'](_0x4cc2e5('0x11e0'),_0x522b0a[_0x4cc2e5('0x234')]),_0x436eef['on']('userVoiceQueue:save',_0x522b0a[_0x4cc2e5('0x18e3')]);function _0x164805(){const _0x2874f1=_0x4cc2e5,_0xd280aa=[];return _0x283545()[_0x2874f1('0x1b')](_0x522b0a['queues'],function(_0x439d58,_0x270d57){const _0x1218ce=_0x2874f1;_0x439d58['paused']=0x0,_0x439d58[_0x1218ce('0xc65')]=0x0,_0x522b0a[_0x1218ce('0x283e')][_0x270d57][_0x1218ce('0x1713')]={},_0xd280aa['push'](_0xfb934f[_0x1218ce('0x139b')]['getMembers']({'id':_0x270d57})[_0x1218ce('0x1714')]),_0x522b0a[_0x1218ce('0x274c')][_0x270d57]&&_0x283545()[_0x1218ce('0x2503')](_0x439d58,_0x283545()[_0x1218ce('0x41b')](_0x522b0a[_0x1218ce('0x274c')][_0x270d57],_0x32bf36));}),_0x190f2f[_0x2874f1('0x1def')](_0xd280aa)[_0x2874f1('0x2788')](function(_0x4d3f6f){const _0x7b888=_0x2874f1;for(let _0x1dec64=0x0;_0x1dec64<_0x4d3f6f[_0x7b888('0x2566')];_0x1dec64+=0x1){for(let _0x399b3d=0x0;_0x399b3d<_0x4d3f6f[_0x1dec64]['rows'][_0x7b888('0x2566')];_0x399b3d++){_0x4d3f6f[_0x1dec64][_0x7b888('0x25df')][_0x399b3d][_0x7b888('0x120')]&&_0x522b0a[_0x7b888('0x283e')][_0x4d3f6f[_0x1dec64][_0x7b888('0x25df')][_0x399b3d][_0x7b888('0x2657')]]['paused']++,_0x522b0a[_0x7b888('0x283e')][_0x4d3f6f[_0x1dec64][_0x7b888('0x25df')][_0x399b3d][_0x7b888('0x2657')]][_0x7b888('0xc65')]++,_0x522b0a[_0x7b888('0x283e')][_0x4d3f6f[_0x1dec64][_0x7b888('0x25df')][_0x399b3d][_0x7b888('0x2657')]]['agents'][_0x4d3f6f[_0x1dec64]['rows'][_0x399b3d][_0x7b888('0x3bb')]]=_0x4d3f6f[_0x1dec64][_0x7b888('0x25df')][_0x399b3d][_0x7b888('0x2657')];}}})[_0x2874f1('0x1cb5')](function(_0x4ee718){console['error'](_0x4ee718);});}function _0x237f3d(_0x2b60be){const _0xaef599=_0x4cc2e5;_0x522b0a['queues'][_0x2b60be['id']]&&_0x283545()['merge'](_0x522b0a[_0xaef599('0x283e')][_0x2b60be['id']],_0x283545()[_0xaef599('0x41b')](_0x2b60be,_0x32bf36));}function _0x371a1a(_0x8ca43d){const _0x5f3e04=_0x4cc2e5;_0x522b0a['queues'][_0x8ca43d[_0x5f3e04('0x2657')]]&&_0x522b0a[_0x5f3e04('0x283e')][_0x8ca43d[_0x5f3e04('0x2657')]][_0x5f3e04('0xc65')]++;}function _0x3c22dd(_0x1fceaa){const _0x4bb8d4=_0x4cc2e5;_0x522b0a[_0x4bb8d4('0x283e')][_0x1fceaa[_0x4bb8d4('0x2657')]]&&_0x522b0a[_0x4bb8d4('0x283e')][_0x1fceaa['MailQueueId']][_0x4bb8d4('0xc65')]--;}function _0x2419d8(_0x154e15){const _0x1a2bf8=_0x4cc2e5;console[_0x1a2bf8('0x10df')](_0x1a2bf8('0x1768'),_0x154e15);if(_0x154e15['voicePause'])_0x283545()[_0x1a2bf8('0x1b')](_0x522b0a[_0x1a2bf8('0x283e')],function(_0x5aabf0){const _0x18cf6c=_0x1a2bf8;_0x5aabf0[_0x18cf6c('0x1713')][_0x154e15['id']]&&(_0x5aabf0[_0x18cf6c('0x120')]+=0x1,console[_0x18cf6c('0x10df')](_0x18cf6c('0x619')));});else!_0x154e15[_0x1a2bf8('0x2a1')]&&_0x283545()['forIn'](_0x522b0a[_0x1a2bf8('0x283e')],function(_0x16ed5a){const _0x48824e=_0x1a2bf8;_0x16ed5a['agents'][_0x154e15['id']]&&(_0x16ed5a[_0x48824e('0x120')]>0x0&&(_0x16ed5a[_0x48824e('0x120')]-=0x1,console[_0x48824e('0x10df')](_0x48824e('0x1826'))));});}function _0x26f2da(_0x9ae584){const _0xad4a43=_0x4cc2e5;console[_0xad4a43('0x10df')](_0xad4a43('0x388'),_0x9ae584),_0x522b0a[_0xad4a43('0x283e')][_0x9ae584[_0xad4a43('0x2657')]]&&(_0x522b0a[_0xad4a43('0x283e')][_0x9ae584[_0xad4a43('0x2657')]]['loggedInDb']+=0x1,_0x522b0a['queues'][_0x9ae584[_0xad4a43('0x2657')]][_0xad4a43('0x1713')][_0x9ae584[_0xad4a43('0x3bb')]]=_0x9ae584[_0xad4a43('0x2657')]);}function _0xe91694(_0xac3787){const _0x5393ac=_0x4cc2e5;console['log'](_0x5393ac('0x234'),_0xac3787),_0x522b0a[_0x5393ac('0x283e')][_0xac3787[_0x5393ac('0x2657')]]&&_0x522b0a['queues'][_0xac3787[_0x5393ac('0x2657')]][_0x5393ac('0xc65')]>0x0&&(_0x522b0a[_0x5393ac('0x283e')][_0xac3787['MailQueueId']][_0x5393ac('0xc65')]-=0x1,delete _0x522b0a[_0x5393ac('0x283e')][_0xac3787[_0x5393ac('0x2657')]][_0x5393ac('0x1713')][_0xac3787['UserId']]);}let _0x52487b=!![],_0xb808b7=0x1;_0x18cab5[_0x4cc2e5('0x1662')](_0x4cc2e5('0x1569'),function(_0x35bbb2,_0x4be9d2){const _0x2089f9=_0x4cc2e5;_0x52487b?_0x7bd6b1(function(){_0x52487b=![];}):(!_0x4be9d2&&(_0xb808b7=_0x522b0a['query']['page']),_0x35bbb2!==_0x4be9d2&&(_0x522b0a[_0x2089f9('0x135a')]['page']=0x1),!_0x35bbb2&&(_0x522b0a[_0x2089f9('0x135a')][_0x2089f9('0x23f5')]=_0xb808b7),_0x522b0a[_0x2089f9('0x138a')]());});function _0x171016(_0x1f4080){const _0xe7d101=_0x4cc2e5;_0x522b0a[_0xe7d101('0x338')]=_0x1f4080[_0xe7d101('0x338')],_0x522b0a[_0xe7d101('0x283e')]=_0x1f4080?_0x283545()[_0xe7d101('0x13cf')](_0x1f4080['rows']?_0x1f4080[_0xe7d101('0x25df')]:[],'id'):{};if(_0x1f4080[_0xe7d101('0x25df')]){_0x522b0a['order']=[];for(let _0x19167a=0x0;_0x19167a<_0x1f4080[_0xe7d101('0x25df')][_0xe7d101('0x2566')];_0x19167a++){_0x522b0a[_0xe7d101('0x1dc2')][_0xe7d101('0x13e3')](_0x1f4080[_0xe7d101('0x25df')][_0x19167a]['id']);}}_0x164805();}function _0x10593e(){const _0x2b23e7=_0x4cc2e5;_0x522b0a[_0x2b23e7('0x135a')][_0x2b23e7('0x19e')]=(_0x522b0a[_0x2b23e7('0x135a')]['page']-0x1)*_0x522b0a[_0x2b23e7('0x135a')][_0x2b23e7('0x68e')],_0x2409df[_0x2b23e7('0x1516')](_0x2b23e7('0xe23'))?_0x522b0a[_0x2b23e7('0x1808')]=_0xfb934f[_0x2b23e7('0x139b')]['get'](_0x522b0a[_0x2b23e7('0x135a')],_0x171016)['$promise']:(_0x522b0a[_0x2b23e7('0x135a')]['id']=_0x522b0a[_0x2b23e7('0x63c')]['id'],_0x522b0a[_0x2b23e7('0x135a')][_0x2b23e7('0xb13')]='MailQueues',_0x522b0a[_0x2b23e7('0x1808')]=_0xfb934f['userProfile'][_0x2b23e7('0xa1')](_0x522b0a['query'],_0x171016)[_0x2b23e7('0x1714')]);}function _0x520465(_0x490268,_0x3ae082){const _0x5bd765=_0x4cc2e5;_0x33269d[_0x5bd765('0x2fa')]({'controller':_0x5bd765('0x119c'),'controllerAs':'vm','templateUrl':_0x47fd74,'parent':angular[_0x5bd765('0x16b1')](_0x31e972[_0x5bd765('0x945')]),'targetEvent':_0x490268,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x3ae082,'mailQueues':_0x283545()['values'](_0x522b0a[_0x5bd765('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x522b0a[_0x5bd765('0xe28')]}});}function _0x2a841e(_0x576c79,_0x1056a6){const _0x4e139d=_0x4cc2e5;_0x33269d[_0x4e139d('0x2fa')]({'controller':_0x4e139d('0xefe'),'controllerAs':'vm','templateUrl':_0x2e0890,'parent':angular['element'](_0x31e972['body']),'targetEvent':_0x576c79,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x1056a6,'mailQueues':_0x522b0a[_0x4e139d('0x283e')]?_0x522b0a[_0x4e139d('0x283e')][_0x4e139d('0x25df')]:[],'realtime':![],'crudPermissions':_0x522b0a[_0x4e139d('0xe28')]}});}function _0x3bb998(_0x4b8f82){const _0x1b42d2=_0x4cc2e5;return _0xfb934f[_0x1b42d2('0x139b')][_0x1b42d2('0x2740')](_0x4b8f82)['$promise'][_0x1b42d2('0x2788')](function(){const _0x45208f=_0x1b42d2;_0x598e01[_0x45208f('0x173b')]({'title':_0x45208f('0xc31'),'msg':_0x4b8f82[_0x45208f('0x1a8d')]?_0x4b8f82[_0x45208f('0x1a8d')]+_0x45208f('0x6f8'):''});})[_0x1b42d2('0x1cb5')](function(_0x354bfa){const _0x2d0d95=_0x1b42d2;_0x598e01[_0x2d0d95('0x5e8')]({'title':_0x2d0d95('0xa30'),'msg':_0x354bfa[_0x2d0d95('0x15e2')]});});}_0x18cab5['$on'](_0x4cc2e5('0x26ac'),function(){const _0xfcc544=_0x4cc2e5;_0x436eef[_0xfcc544('0x277f')]('mail_queue:save'),_0x436eef[_0xfcc544('0x277f')]('userMailQueue:remove'),_0x436eef['removeAllListeners'](_0xfcc544('0xd9a')),_0x436eef[_0xfcc544('0x277f')](_0xfcc544('0x1cb6')),_0x436eef[_0xfcc544('0x277f')](_0xfcc544('0x11e0')),_0x436eef[_0xfcc544('0x277f')](_0xfcc544('0x454'));});}const _0x39e01e=_0x58f410;function _0x365037(){const _0x5962f6=_0x34e79e;return{'status':{'registered':_0x5962f6('0xc38'),'unregistered':_0x5962f6('0x1ad6'),'lagged':_0x5962f6('0x1ad6'),'reachable':_0x5962f6('0xc38'),'unreachable':_0x5962f6('0x1ad6'),'unknown':_0x5962f6('0x22b7')},'state':{'unknown':_0x5962f6('0x165d'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x5962f6('0xf03'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x5962f6('0x165d'),'ringing':_0x5962f6('0x18d1'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x5962f6('0x234e')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5962f6('0x393')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x4d47c3=_0x365037;_0x8df08['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0xd6f')];function _0x8df08(_0x22e1ae,_0xd790c6,_0x14f9b9){const _0x4f5d2c=_0x34e79e,_0x102f92=this;_0x14f9b9['disconnect'](),_0x14f9b9[_0x4f5d2c('0x26c')](),_0x102f92[_0x4f5d2c('0xcb3')]=0x0;switch(_0xd790c6[_0x4f5d2c('0x1c7f')]['name']){case'app.mail.realtime.agents':_0x102f92[_0x4f5d2c('0xcb3')]=0x0;break;case _0x4f5d2c('0xf73'):_0x102f92[_0x4f5d2c('0xcb3')]=0x1;break;case'app.mail.realtime.accounts':_0x102f92[_0x4f5d2c('0xcb3')]=0x2;break;default:_0x102f92[_0x4f5d2c('0xcb3')]=0x0,_0xd790c6['go'](_0x4f5d2c('0x1c12'));}_0x22e1ae[_0x4f5d2c('0x1662')](_0x4f5d2c('0x362'),function(_0x389fe2,_0x27c7ef){const _0x329b6a=_0x4f5d2c;if(_0x389fe2!==_0x27c7ef)switch(_0x389fe2){case 0x0:_0xd790c6['go'](_0x329b6a('0x1c12'));break;case 0x1:_0xd790c6['go'](_0x329b6a('0xf73'));break;case 0x2:_0xd790c6['go'](_0x329b6a('0x1145'));break;default:_0xd790c6['go'](_0x329b6a('0x1c12'));}});}const _0x3d362a=_0x8df08;_0x4ff207[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x4ff207(_0x5566c6){const _0x19b27b=_0x34e79e;_0x5566c6['state'](_0x19b27b('0xf4e'),{'url':_0x19b27b('0x2090'),'views':{'content@app':{'templateUrl':_0x272b57,'controller':_0x19b27b('0x132f')}},'resolve':{'userProfile':['apiResolver',_0x19b27b('0x1b04'),function(_0x196b68,_0x580e52){const _0x335d06=_0x19b27b;return _0x580e52[_0x335d06('0x1516')](_0x335d06('0xe23'))?null:_0x196b68['resolve']('userProfile@get',{'fields':_0x335d06('0x3f0'),'id':_0x580e52[_0x335d06('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0x20e088,_0x2d99ae){const _0x3eaa2a=_0x19b27b;return _0x2d99ae[_0x3eaa2a('0x1516')](_0x3eaa2a('0xe23'))?null:_0x20e088[_0x3eaa2a('0x2322')](_0x3eaa2a('0x22ca'),{'fields':_0x3eaa2a('0xe2c'),'userProfileId':_0x2d99ae[_0x3eaa2a('0x24cc')]()[_0x3eaa2a('0x237f')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})['state']('app.mail.realtime.agents',{'url':_0x19b27b('0xa9b'),'controller':_0x19b27b('0x204d'),'templateUrl':_0x786699,'resolve':{'pauses':['apiResolver',function(_0x889c7f){const _0x1e2e40=_0x19b27b;return _0x889c7f[_0x1e2e40('0x2322')]('pause@get',{'nolimit':!![]});}],'agents':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0x3a3a7c,_0x4ae4eb){const _0x170bb2=_0x19b27b;return _0x4ae4eb[_0x170bb2('0x1516')](_0x170bb2('0xe23'))?_0x3a3a7c[_0x170bb2('0x2322')](_0x170bb2('0x144f'),{'fields':_0x170bb2('0xed0'),'role':_0x170bb2('0x188b'),'sort':'fullname','nolimit':!![]}):_0x3a3a7c[_0x170bb2('0x2322')](_0x170bb2('0x27c5'),{'id':_0x4ae4eb[_0x170bb2('0x24cc')]()['userProfileId'],'section':'Agents','fields':_0x170bb2('0xed0'),'role':'agent','sort':_0x170bb2('0x2831'),'nolimit':!![]});}],'userProfile':[_0x19b27b('0x1318'),'Auth',function(_0x25a4c2,_0x154f63){const _0x34efe8=_0x19b27b;return _0x154f63[_0x34efe8('0x1516')](_0x34efe8('0xe23'))?null:_0x25a4c2[_0x34efe8('0x2322')](_0x34efe8('0x231d'),{'fields':'id,name,crudPermissions','id':_0x154f63[_0x34efe8('0x24cc')]()[_0x34efe8('0x237f')]});}],'userProfileSection':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0xe2774,_0x3a7cc0){const _0x50f8f2=_0x19b27b;return _0x3a7cc0[_0x50f8f2('0x1516')](_0x50f8f2('0xe23'))?null:_0xe2774[_0x50f8f2('0x2322')](_0x50f8f2('0x22ca'),{'fields':_0x50f8f2('0xe2c'),'userProfileId':_0x3a7cc0[_0x50f8f2('0x24cc')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x48ee09){const _0x1c0d2b=_0x19b27b;return _0x48ee09['resolve'](_0x1c0d2b('0x21f7'));}]},'authenticate':!![],'permissionId':0x262})[_0x19b27b('0x249b')](_0x19b27b('0xf73'),{'url':'/queues','controller':_0x19b27b('0x2275'),'templateUrl':_0x4bcfaf,'resolve':{'queues':['apiResolver','Auth',function(_0x2b20a5,_0x2c9d6d){const _0x17d251=_0x19b27b;return _0x2c9d6d['hasRole'](_0x17d251('0xe23'))?_0x2b20a5['resolve'](_0x17d251('0x1c29'),{'type':_0x17d251('0x2e4'),'sort':_0x17d251('0x1cee'),'limit':0xa,'offset':0x0}):_0x2b20a5[_0x17d251('0x2322')](_0x17d251('0x27c5'),{'id':_0x2c9d6d[_0x17d251('0x24cc')]()[_0x17d251('0x237f')],'section':_0x17d251('0x26fc'),'channel':_0x17d251('0x2795'),'type':_0x17d251('0x2e4'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0x3c19fc,_0x3e6ae4){const _0x140ecd=_0x19b27b;return _0x3e6ae4[_0x140ecd('0x1516')]('admin')?null:_0x3c19fc['resolve'](_0x140ecd('0x231d'),{'fields':_0x140ecd('0x3f0'),'id':_0x3e6ae4[_0x140ecd('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x19b27b('0x1318'),'Auth',function(_0x1af0f6,_0x46f777){const _0x3a6c43=_0x19b27b;return _0x46f777['hasRole'](_0x3a6c43('0xe23'))?null:_0x1af0f6[_0x3a6c43('0x2322')](_0x3a6c43('0x22ca'),{'fields':_0x3a6c43('0xe2c'),'userProfileId':_0x46f777[_0x3a6c43('0x24cc')]()['userProfileId'],'sectionId':0x259});}],'rpcQueues':['apiResolver',function(_0x4c217b){const _0x55b7a9=_0x19b27b;return _0x4c217b[_0x55b7a9('0x2322')](_0x55b7a9('0x179a'));}]},'authenticate':!![],'permissionId':0x262})[_0x19b27b('0x249b')]('app.mail.realtime.accounts',{'url':_0x19b27b('0x1f44'),'controller':_0x19b27b('0x145a'),'templateUrl':_0x174f2e,'resolve':{'mailAccounts':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0x966b23,_0x10de99){const _0x38c3bf=_0x19b27b;return _0x10de99[_0x38c3bf('0x1516')](_0x38c3bf('0xe23'))?_0x966b23[_0x38c3bf('0x2322')](_0x38c3bf('0x219f'),{'sort':_0x38c3bf('0x1cee'),'limit':0xa,'offset':0x0}):_0x966b23['resolve'](_0x38c3bf('0x27c5'),{'id':_0x10de99[_0x38c3bf('0x24cc')]()['userProfileId'],'section':_0x38c3bf('0x1efc'),'sort':_0x38c3bf('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x19b27b('0x1318'),'Auth',function(_0x1eb8ea,_0x3b69c0){const _0x77ccd2=_0x19b27b;return _0x3b69c0[_0x77ccd2('0x1516')](_0x77ccd2('0xe23'))?null:_0x1eb8ea[_0x77ccd2('0x2322')]('userProfile@get',{'fields':_0x77ccd2('0x3f0'),'id':_0x3b69c0[_0x77ccd2('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x19b27b('0x1318'),_0x19b27b('0x1b04'),function(_0x23b8be,_0x63dbd5){const _0x479a99=_0x19b27b;return _0x63dbd5[_0x479a99('0x1516')](_0x479a99('0xe23'))?null:_0x23b8be[_0x479a99('0x2322')](_0x479a99('0x22ca'),{'fields':_0x479a99('0xe2c'),'userProfileId':_0x63dbd5[_0x479a99('0x24cc')]()[_0x479a99('0x237f')],'sectionId':0x25a});}],'rpcMailAccounts':[_0x19b27b('0x1318'),function(_0x3c8d19){const _0x47b53f=_0x19b27b;return _0x3c8d19[_0x47b53f('0x2322')]('rpc@getMailAccounts');}]},'authenticate':!![],'permissionId':0x262});}angular[_0x34e79e('0x16e2')]('app.mail.realtime',[])[_0x34e79e('0x1a22')](_0x4ff207)[_0x34e79e('0xb44')](_0x34e79e('0x23e6'),_0x14e376)['controller'](_0x34e79e('0x2500'),_0x39e01e)[_0x34e79e('0x227e')](_0x34e79e('0x1fc6'),_0x4d47c3)[_0x34e79e('0xb44')](_0x34e79e('0x11c2'),_0x3d362a);const _0x4675f1=_0x18dd13['p']+_0x34e79e('0xc4e'),_0x52bd00=_0x18dd13['p']+_0x34e79e('0x1ca8'),_0x4d07f2=_0x18dd13['p']+_0x34e79e('0xdc3'),_0x2901dc=_0x18dd13['p']+_0x34e79e('0x1b8c'),_0x33eb89=_0x18dd13['p']+_0x34e79e('0x26d4');_0x330f93['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'mailAccounts',_0x34e79e('0x2594'),_0x34e79e('0x519'),'Auth','license','setting',_0x34e79e('0xe28')];function _0x330f93(_0x3c3621,_0x321856,_0x15327c,_0x2b6e33,_0x123ea6,_0x4f0226,_0x10f4fe,_0x8e9a8c,_0x127f65,_0x5c2030,_0x1f9399,_0x53e023,_0x4678cf,_0x5594b5){const _0x20e14b=_0x34e79e,_0x5f2cda=this;_0x5f2cda[_0x20e14b('0x9cb')]=_0x1f9399[_0x20e14b('0x24cc')](),_0x5f2cda[_0x20e14b('0x25be')]=[],_0x5f2cda[_0x20e14b('0x1af0')]=_0x4678cf,_0x5f2cda['license']=_0x53e023,_0x5f2cda[_0x20e14b('0xe28')]=_0x5594b5,_0x5f2cda[_0x20e14b('0x1193')]={},_0x5f2cda['passwordPattern']=_0x5f2cda[_0x20e14b('0x1af0')]&&_0x5f2cda[_0x20e14b('0x1af0')][_0x20e14b('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f2cda[_0x20e14b('0x14e4')]=_0x20e14b('0x1863'),_0x5f2cda[_0x20e14b('0x2594')]=angular[_0x20e14b('0x2669')](_0x127f65),_0x5f2cda[_0x20e14b('0x1e22')]=_0x8e9a8c,_0x5f2cda[_0x20e14b('0x139d')]=![];!_0x5f2cda[_0x20e14b('0x2594')]&&(_0x5f2cda[_0x20e14b('0x2594')]={'active':!![],'cservice':_0x20e14b('0x954'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x5f2cda[_0x20e14b('0x14e4')]=_0x20e14b('0x152'),_0x5f2cda[_0x20e14b('0x139d')]=!![]);_0x321856[_0x20e14b('0x4b9')]['id']&&(_0x5f2cda[_0x20e14b('0x2594')]['MailAccountId']=_0x321856['params']['id']);_0x5f2cda[_0x20e14b('0x17e8')]=_0xa2d7cc,_0x5f2cda[_0x20e14b('0xee7')]=_0x43da98,_0x5f2cda[_0x20e14b('0x1f11')]=_0x5f272e,_0x5f2cda[_0x20e14b('0x2601')]=_0x46f1f1,_0x5f2cda['closeDialog']=_0x56feb0,_0x1f9399[_0x20e14b('0x1516')](_0x20e14b('0xe23'))?_0x5c2030[_0x20e14b('0x1ba4')][_0x20e14b('0x1335')]({'fields':'id,name','sort':'name'})[_0x20e14b('0x1714')][_0x20e14b('0x2788')](function(_0x5b5ccc){const _0x646957=_0x20e14b;_0x5f2cda['lists']=_0x5b5ccc[_0x646957('0x25df')]||[];})['catch'](function(_0x4a17fd){const _0x207045=_0x20e14b;_0x10f4fe[_0x207045('0x5e8')]({'title':_0x4a17fd[_0x207045('0x1b51')]?'API:'+_0x4a17fd[_0x207045('0x1b51')]+_0x207045('0x1b0b')+_0x4a17fd['statusText']:_0x207045('0x11da'),'msg':_0x4a17fd[_0x207045('0x11fc')]?JSON[_0x207045('0x1be0')](_0x4a17fd['data']):_0x4a17fd[_0x207045('0x17df')]()});}):_0x5c2030['cmList'][_0x20e14b('0x1335')]({'fields':_0x20e14b('0x1338'),'sort':_0x20e14b('0x1a8d')})[_0x20e14b('0x1714')][_0x20e14b('0x2788')](function(_0xd7922e){const _0x1a770f=_0x20e14b;_0x5f2cda[_0x1a770f('0x2')]=_0xd7922e[_0x1a770f('0x25df')]||[];})[_0x20e14b('0x2788')](function(){const _0x5084dc=_0x20e14b;return _0x5c2030[_0x5084dc('0xec9')][_0x5084dc('0x1335')]({'userProfileId':_0x5f2cda['currentUser']['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x20e14b('0x2788')](function(_0x19bfe6){const _0x32d34a=_0x20e14b,_0x3dd96f=_0x19bfe6&&_0x19bfe6[_0x32d34a('0x25df')]?_0x19bfe6[_0x32d34a('0x25df')][0x0]:null;if(!_0x3dd96f){const _0x2cd931=[];let _0x548242=null;_0x5f2cda[_0x32d34a('0x2594')]&&(_0x548242=_0x283545()[_0x32d34a('0x20e8')](_0x5f2cda[_0x32d34a('0x2')],{'id':Number(_0x5f2cda[_0x32d34a('0x2594')][_0x32d34a('0x354')])}));for(let _0x283205=0x0;_0x283205<_0x5f2cda[_0x32d34a('0x2')]['length'];_0x283205++){_0x548242&&_0x5f2cda[_0x32d34a('0x2')][_0x283205]['id']===_0x548242['id']&&(_0x5f2cda[_0x32d34a('0x2')][_0x283205][_0x32d34a('0x3bf')]=![],_0x2cd931[_0x32d34a('0x13e3')](_0x5f2cda['lists'][_0x283205]));}_0x5f2cda['lists']=_0x2cd931;}else{if(!_0x3dd96f[_0x32d34a('0x1c0a')])return _0x5c2030[_0x32d34a('0x1050')][_0x32d34a('0x1335')]({'sectionId':_0x3dd96f['id']})[_0x32d34a('0x1714')][_0x32d34a('0x2788')](function(_0x1c4323){const _0x3cb455=_0x32d34a,_0x2299f2=_0x283545()['map'](_0x1c4323[_0x3cb455('0x25df')],function(_0x3cd3e4){const _0x1d35cd=_0x3cb455;return _0x283545()[_0x1d35cd('0x20e8')](_0x5f2cda['lists'],{'id':_0x3cd3e4[_0x1d35cd('0x2707')]});});let _0x1cdfe0=null;_0x5f2cda[_0x3cb455('0x2594')]&&(_0x1cdfe0=_0x283545()[_0x3cb455('0x20e8')](_0x5f2cda[_0x3cb455('0x2')],{'id':Number(_0x5f2cda[_0x3cb455('0x2594')][_0x3cb455('0x354')])}));if(_0x1cdfe0&&!_0x283545()[_0x3cb455('0xc5d')](_0x2299f2,['id',_0x1cdfe0['id']])){const _0x56fcc0=_0x283545()[_0x3cb455('0x20e8')](_0x5f2cda[_0x3cb455('0x2')],{'id':_0x1cdfe0['id']});_0x56fcc0[_0x3cb455('0x3bf')]=![],_0x2299f2[_0x3cb455('0x13e3')](_0x56fcc0);}_0x5f2cda[_0x3cb455('0x2')]=_0x2299f2;});}})[_0x20e14b('0x1cb5')](function(_0x4e652b){const _0x59a4cf=_0x20e14b;_0x10f4fe[_0x59a4cf('0x5e8')]({'title':_0x4e652b['status']?_0x59a4cf('0x15d1')+_0x4e652b[_0x59a4cf('0x1b51')]+'\x20-\x20'+_0x4e652b[_0x59a4cf('0x22ce')]:_0x59a4cf('0x999'),'msg':_0x4e652b[_0x59a4cf('0x11fc')]?JSON[_0x59a4cf('0x1be0')](_0x4e652b[_0x59a4cf('0x11fc')]):_0x4e652b[_0x59a4cf('0x17df')]()});});function _0xa2d7cc(){const _0x4fd6b6=_0x20e14b;_0x5f2cda[_0x4fd6b6('0x25be')]=[],_0x5c2030[_0x4fd6b6('0x2594')]['save'](_0x5f2cda[_0x4fd6b6('0x2594')])[_0x4fd6b6('0x1714')][_0x4fd6b6('0x2788')](function(_0x5529e6){const _0x2159ff=_0x4fd6b6;_0x5f2cda['mailAccounts'][_0x2159ff('0xc51')](_0x5529e6[_0x2159ff('0x1cbf')]()),_0x10f4fe[_0x2159ff('0x173b')]({'title':'MailAccount\x20properly\x20created','msg':_0x5f2cda[_0x2159ff('0x2594')][_0x2159ff('0x1a8d')]?_0x5f2cda[_0x2159ff('0x2594')][_0x2159ff('0x1a8d')]+_0x2159ff('0x1e4a'):''}),_0x56feb0(_0x5529e6);})[_0x4fd6b6('0x1cb5')](function(_0x2aac57){const _0x5bf30e=_0x4fd6b6;if(_0x2aac57['data']&&_0x2aac57[_0x5bf30e('0x11fc')][_0x5bf30e('0x25be')]&&_0x2aac57['data'][_0x5bf30e('0x25be')][_0x5bf30e('0x2566')]){_0x5f2cda[_0x5bf30e('0x25be')]=_0x2aac57[_0x5bf30e('0x11fc')]['errors']||[{'message':_0x2aac57[_0x5bf30e('0x17df')](),'type':'api.mailAccount.save'}];for(let _0x4f2602=0x0;_0x4f2602<_0x2aac57[_0x5bf30e('0x11fc')][_0x5bf30e('0x25be')][_0x5bf30e('0x2566')];_0x4f2602+=0x1){_0x10f4fe['error']({'title':_0x2aac57[_0x5bf30e('0x11fc')][_0x5bf30e('0x25be')][_0x4f2602][_0x5bf30e('0x1d7')],'msg':_0x2aac57[_0x5bf30e('0x11fc')][_0x5bf30e('0x25be')][_0x4f2602]['message']});}}else _0x10f4fe[_0x5bf30e('0x5e8')]({'title':_0x2aac57[_0x5bf30e('0x1b51')]?_0x5bf30e('0x15d1')+_0x2aac57[_0x5bf30e('0x1b51')]+'\x20-\x20'+_0x2aac57[_0x5bf30e('0x22ce')]:_0x5bf30e('0x200f'),'msg':_0x2aac57['data']?JSON['stringify'](_0x2aac57[_0x5bf30e('0x11fc')]['message']):_0x2aac57[_0x5bf30e('0x17df')]()});});}function _0x43da98(){const _0x24bdc8=_0x20e14b;_0x5f2cda[_0x24bdc8('0x25be')]=[],_0x5c2030[_0x24bdc8('0x2594')][_0x24bdc8('0x2740')]({'id':_0x5f2cda['mailAccount']['id']},_0x5f2cda[_0x24bdc8('0x2594')])[_0x24bdc8('0x1714')][_0x24bdc8('0x2788')](function(_0x20a288){const _0x3df3d3=_0x24bdc8,_0x5a1853=_0x283545()[_0x3df3d3('0x20e8')](_0x5f2cda[_0x3df3d3('0x1e22')],{'id':_0x20a288['id']});_0x5a1853&&_0x283545()['merge'](_0x5a1853,_0x283545()[_0x3df3d3('0x41b')](_0x20a288['toJSON'](),_0x283545()[_0x3df3d3('0x2163')](_0x5a1853))),_0x10f4fe['success']({'title':_0x3df3d3('0x1186'),'msg':_0x5f2cda[_0x3df3d3('0x2594')][_0x3df3d3('0x1a8d')]?_0x5f2cda[_0x3df3d3('0x2594')]['name']+_0x3df3d3('0x24cf'):''}),_0x56feb0(_0x20a288);})[_0x24bdc8('0x1cb5')](function(_0x50bc5b){const _0x15f6c0=_0x24bdc8;if(_0x50bc5b[_0x15f6c0('0x11fc')]&&_0x50bc5b[_0x15f6c0('0x11fc')][_0x15f6c0('0x25be')]&&_0x50bc5b['data'][_0x15f6c0('0x25be')][_0x15f6c0('0x2566')]){_0x5f2cda[_0x15f6c0('0x25be')]=_0x50bc5b[_0x15f6c0('0x11fc')]['errors']||[{'message':_0x50bc5b[_0x15f6c0('0x17df')](),'type':_0x15f6c0('0x159')}];for(let _0x4e248a=0x0;_0x4e248a<_0x50bc5b['data'][_0x15f6c0('0x25be')]['length'];_0x4e248a++){_0x10f4fe['error']({'title':_0x50bc5b[_0x15f6c0('0x11fc')]['errors'][_0x4e248a][_0x15f6c0('0x1d7')],'msg':_0x50bc5b[_0x15f6c0('0x11fc')][_0x15f6c0('0x25be')][_0x4e248a][_0x15f6c0('0x15e2')]});}}else _0x10f4fe[_0x15f6c0('0x5e8')]({'title':_0x50bc5b['status']?_0x15f6c0('0x15d1')+_0x50bc5b[_0x15f6c0('0x1b51')]+_0x15f6c0('0x1b0b')+_0x50bc5b[_0x15f6c0('0x22ce')]:'api.mailAccount.update','msg':_0x50bc5b['data']?JSON[_0x15f6c0('0x1be0')](_0x50bc5b[_0x15f6c0('0x11fc')][_0x15f6c0('0x15e2')]):_0x50bc5b[_0x15f6c0('0x17df')]()});});}function _0x5f272e(_0xa66a74){const _0x30de56=_0x20e14b;if(_0x5f2cda['mailAccount']['service'])return _0x10f4fe[_0x30de56('0x5e8')]({'title':'Mail\x20Account\x20not\x20deleted!','msg':'You\x20can\x27t\x20remove\x20service\x20account'});_0x5f2cda[_0x30de56('0x25be')]=[];const _0x54a66c=_0x2b6e33[_0x30de56('0x112e')]()[_0x30de56('0x14e4')]('Are\x20you\x20sure?')[_0x30de56('0x1c98')](_0x30de56('0x12ab'))['ariaLabel'](_0x30de56('0x2f2'))['ok'](_0x30de56('0x2786'))['cancel'](_0x30de56('0x1481'))[_0x30de56('0x24d0')](_0xa66a74);_0x2b6e33[_0x30de56('0x2fa')](_0x54a66c)['then'](function(){const _0x3e1264=_0x30de56;_0x5c2030[_0x3e1264('0x2594')][_0x3e1264('0x17c4')]({'id':_0x5f2cda[_0x3e1264('0x2594')]['id']})[_0x3e1264('0x1714')][_0x3e1264('0x2788')](function(){const _0x268811=_0x3e1264;_0x283545()['remove'](_0x5f2cda[_0x268811('0x1e22')],{'id':_0x5f2cda['mailAccount']['id']}),_0x10f4fe['success']({'title':_0x268811('0x16ef'),'msg':(_0x5f2cda[_0x268811('0x2594')][_0x268811('0x1a8d')]||_0x268811('0x2594'))+_0x268811('0x14d4')}),_0x56feb0(_0x5f2cda['mailAccount']);})[_0x3e1264('0x1cb5')](function(_0x62ca68){const _0x2d23ce=_0x3e1264;if(_0x62ca68['data']&&_0x62ca68[_0x2d23ce('0x11fc')]['errors']&&_0x62ca68[_0x2d23ce('0x11fc')]['errors'][_0x2d23ce('0x2566')]){_0x5f2cda['errors']=_0x62ca68['data']['errors']||[{'message':_0x62ca68[_0x2d23ce('0x17df')](),'type':'api.mailAccount.delete'}];for(let _0x1c6a6e=0x0;_0x1c6a6e<_0x62ca68[_0x2d23ce('0x11fc')]['errors'][_0x2d23ce('0x2566')];_0x1c6a6e++){_0x10f4fe['error']({'title':_0x62ca68[_0x2d23ce('0x11fc')]['errors'][_0x1c6a6e][_0x2d23ce('0x1d7')],'msg':_0x62ca68[_0x2d23ce('0x11fc')]['errors'][_0x1c6a6e][_0x2d23ce('0x15e2')]});}}else _0x10f4fe[_0x2d23ce('0x5e8')]({'title':_0x62ca68['status']?_0x2d23ce('0x15d1')+_0x62ca68['status']+'\x20-\x20'+_0x62ca68[_0x2d23ce('0x22ce')]:_0x2d23ce('0xa56'),'msg':_0x62ca68['data']?JSON[_0x2d23ce('0x1be0')](_0x62ca68[_0x2d23ce('0x11fc')][_0x2d23ce('0x15e2')]):_0x62ca68['message']||_0x62ca68[_0x2d23ce('0x17df')]()});});},function(){});}function _0x46f1f1(_0xf033f5){return _0xf033f5===null?undefined:new Date(_0xf033f5);}function _0x56feb0(_0x54ba9f){const _0x1094e4=_0x20e14b;_0x2b6e33[_0x1094e4('0x19d')](_0x54ba9f);}}const _0xf2ad5a=_0x330f93,_0x54c4ad=_0x18dd13['p']+_0x34e79e('0x173a'),_0x2f393e=_0x18dd13['p']+_0x34e79e('0x155f'),_0x2d7266=_0x18dd13['p']+_0x34e79e('0x133c'),_0x19fa15=_0x18dd13['p']+_0x34e79e('0x7b3'),_0x5846e5=_0x18dd13['p']+_0x34e79e('0x124f'),_0x54d87f=_0x18dd13['p']+_0x34e79e('0x1e5b'),_0x2a18e9=_0x18dd13['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog.html',_0x4895f8=_0x18dd13['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html',_0x14fa81=_0x18dd13['p']+_0x34e79e('0x1bf'),_0x57c7e8=_0x18dd13['p']+_0x34e79e('0x26df');_0x58ddfa[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty',_0x34e79e('0x1b04')];const _0x2e7a3c={'agent':_0x54c4ad,'autoreply':_0x2f393e,'close':_0x2d7266,'gotoif':_0x19fa15,'gotop':_0x5846e5,'interval':_0x54d87f,'noop':_0x2a18e9,'queue':_0x4895f8,'system':_0x14fa81,'tag':_0x57c7e8};function _0x58ddfa(_0x54d4ac,_0x33f635,_0x31efd4,_0x597943,_0x4c54e8){const _0x172621=_0x34e79e,_0x105b07=this;_0x105b07[_0x172621('0x9cb')]=_0x4c54e8[_0x172621('0x24cc')](),_0x105b07['mailAccount']={},_0x105b07[_0x172621('0x2431')]={'count':0x0,'rows':[]},_0x105b07[_0x172621('0x12f3')]=[],_0x105b07[_0x172621('0xe28')],_0x105b07[_0x172621('0x135a')]={'sort':'priority'},_0x105b07[_0x172621('0x105')]=_0x283545()[_0x172621('0x9')](_0x283545()[_0x172621('0x8ce')]([{'app':_0x172621('0x27dd'),'appType':_0x172621('0x2630'),'types':[_0x172621('0xc8f'),'custom',_0x172621('0x4b2')],'fields':[],'isApp':![]},{'app':_0x172621('0x18dd'),'appType':_0x172621('0x18dd'),'type':_0x172621('0x18dd'),'icon':'icon-apps','interval':_0x172621('0x2191'),'required':!![],'isApp':!![],'fields':[{'title':_0x172621('0x165a'),'name':_0x172621('0x49'),'type':_0x172621('0x16db'),'param':0x0}]},{'app':_0x172621('0xe81'),'appType':_0x172621('0xe81'),'type':_0x172621('0xe81'),'icon':'icon-apps','interval':_0x172621('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x172621('0xf76'),'field':{'name':_0x172621('0xa72'),'key':'name'},'route':'variable','filters':{'fields':_0x172621('0x1338'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x172621('0x1677'),'name':_0x172621('0x28d'),'type':_0x172621('0x16db'),'required':!![],'param':0x0},{'title':_0x172621('0x158c'),'name':_0x172621('0xa72'),'type':_0x172621('0x2519'),'values':'variables','value':_0x172621('0x59b'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x172621('0x1598'),'appType':_0x172621('0x1598'),'type':_0x172621('0x1500'),'icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'fields':[{'title':'Priority','name':'priority','type':_0x172621('0x272c'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x172621('0x1e01'),'appType':'gotoif','type':_0x172621('0x1e01'),'icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'fields':[{'title':_0x172621('0x1388'),'name':'condition','type':_0x172621('0x16db'),'required':!![],'param':0x0},{'title':'truepriority','name':'truepriority','type':_0x172621('0x272c'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':_0x172621('0x272c'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x172621('0x1ab4'),'appType':_0x172621('0x1ab4'),'foreignKey':_0x172621('0x2657'),'type':_0x172621('0x1ab4'),'icon':'icon-apps','interval':_0x172621('0x2191'),'isApp':!![],'extraApi':[{'name':_0x172621('0x283e'),'field':{'name':'queue','key':_0x172621('0x1a8d')},'route':_0x172621('0x139b'),'filters':{'fields':_0x172621('0xafa'),'sort':_0x172621('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x172621('0x107f'),'name':_0x172621('0x1ab4'),'type':_0x172621('0x2519'),'values':'queues','value':_0x172621('0x158'),'option':_0x172621('0x158'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x172621('0xa7e'),'name':'timeout','type':_0x172621('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x172621('0x188b'),'appType':_0x172621('0x188b'),'type':_0x172621('0x188b'),'foreignKey':'UserId','icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'extraApi':[{'name':_0x172621('0x1713'),'field':{'name':_0x172621('0x188b'),'key':_0x172621('0x1a8d')},'route':_0x172621('0x1e6a'),'filters':{'fields':_0x172621('0x1338'),'sort':_0x172621('0x1a8d'),'nolimit':!![],'role':_0x172621('0x188b')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x172621('0x188b'),'type':_0x172621('0x2519'),'values':'agents','value':_0x172621('0x156f'),'option':_0x172621('0x156f'),'required':!![],'param':0x0},{'title':_0x172621('0xa7e'),'name':_0x172621('0x24e4'),'type':_0x172621('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x172621('0x808'),'appType':_0x172621('0x808'),'type':_0x172621('0x808'),'icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'fields':[{'title':_0x172621('0x5fd'),'name':_0x172621('0x5fd'),'type':_0x172621('0x983'),'defaultValue':'1','values':[{'option':_0x172621('0xa18'),'value':'1'},{'option':_0x172621('0x25e3'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x172621('0xc39'),'name':_0x172621('0x16db'),'type':_0x172621('0x1cd8'),'required':!![],'param':0x1}]},{'app':_0x172621('0x69f'),'appType':_0x172621('0x69f'),'type':'close','icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'fields':[{'title':_0x172621('0x1e89'),'name':_0x172621('0x1db2'),'type':'text','required':!![],'param':0x0}]},{'app':_0x172621('0x1764'),'appType':'tag','type':_0x172621('0x1764'),'foreignKey':_0x172621('0x90a'),'icon':_0x172621('0x21ff'),'interval':_0x172621('0x2191'),'isApp':!![],'extraApi':[{'name':_0x172621('0xe45'),'field':{'name':_0x172621('0x1764'),'key':_0x172621('0x1a8d')},'route':_0x172621('0x1764'),'filters':{'fields':'id,name','sort':_0x172621('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':'tag','type':_0x172621('0x2519'),'values':'tags','value':_0x172621('0x282c'),'option':_0x172621('0x282c'),'required':!![],'param':0x0}]}],['app']),{'isApp':![]}),_0x105b07[_0x172621('0x4b2')]={'group':{'name':_0x172621('0x134b'),'pull':'clone'},'animation':0x64,'sort':![]},_0x105b07[_0x172621('0x26de')]={'group':{'name':_0x172621('0x2268'),'put':_0x172621('0x134b')},'animation':0x64,'onAdd':function(_0x30acbd){_0x781f1a(_0x30acbd,_0x30acbd['newIndex']);},'onSort':function(){_0x49a1c2();}},_0x105b07['init']=_0x1979d0,_0x105b07[_0x172621('0x16a')]=_0xf41c7f,_0x105b07[_0x172621('0x4b3')]=_0x2e7dec,_0x105b07[_0x172621('0x1f95')]=_0x781f1a,_0x105b07['editInterval']=_0x26f630,_0x105b07['deleteMailAccountApp']=_0x43de84,_0x105b07['deleteSelectedMailAccountApps']=_0x5e9331,_0x105b07['rewriteRouting']=_0x49a1c2,_0x105b07['getIntervals']=_0x453ee1;function _0x1979d0(_0x31f589,_0x21c982){const _0x4e542c=_0x172621;_0x105b07[_0x4e542c('0x2594')]=_0x31f589,_0x105b07['crudPermissions']=typeof _0x21c982!=='undefined'?_0x21c982:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x105b07[_0x4e542c('0x26de')]['disabled']=!_0x105b07['crudPermissions'][_0x4e542c('0x21b7')]?!![]:![],_0x105b07[_0x4e542c('0x135a')]['id']=_0x31f589['id'],_0x105b07[_0x4e542c('0x135a')]['isApp']=!![],_0x105b07[_0x4e542c('0x135a')][_0x4e542c('0xd18')]=!![],_0x105b07[_0x4e542c('0x4b3')](),_0x105b07['getIntervals']();}function _0xf41c7f(_0x336b1d,_0x4e4bd0,_0x3ea75a){const _0x5b9c10=_0x172621,_0x43eed0=_0x33f635[_0x5b9c10('0x112e')]()[_0x5b9c10('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x5b9c10('0x1670')+_0x336b1d[_0x5b9c10('0x8a5')]+''+'\x20will\x20be\x20deleted.')[_0x5b9c10('0x10bc')]('delete\x20application')[_0x5b9c10('0x24d0')](_0x3ea75a)['ok']('OK')[_0x5b9c10('0x1801')]('CANCEL');_0x33f635['show'](_0x43eed0)[_0x5b9c10('0x2788')](function(){const _0x1ea8e3=_0x5b9c10;_0x105b07[_0x1ea8e3('0x2431')][_0x1ea8e3('0x25df')]['splice'](_0x4e4bd0,0x1),_0x49a1c2();},function(){const _0x2b5487=_0x5b9c10;console[_0x2b5487('0x10df')]('CANCEL');});}function _0x781f1a(_0x441e8c,_0x149ea0){const _0x21f876=_0x172621;if(_0x105b07['mailAccountApps'][_0x21f876('0x25df')][_0x21f876('0x2566')]){const _0x3c5ae1=_0x105b07[_0x21f876('0x2431')][_0x21f876('0x25df')][_0x149ea0]?_0x105b07[_0x21f876('0x2431')]['rows'][_0x149ea0]:_0x105b07[_0x21f876('0x2431')][_0x21f876('0x25df')][0x0],_0x5a9204=(_0x3c5ae1[_0x21f876('0x167b')]||_0x3c5ae1[_0x21f876('0x8a5')])[_0x21f876('0xc2e')]();_0x33f635[_0x21f876('0x2fa')]({'controller':_0x21f876('0x1792')+_0x5a9204+_0x21f876('0x100d'),'controllerAs':'vm','templateUrl':_0x2e7a3c[_0x5a9204],'parent':angular['element'](_0x31efd4[_0x21f876('0x945')]),'targetEvent':_0x441e8c,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x3c5ae1,'mailAccount':_0x105b07['mailAccount'],'crudPermissions':_0x105b07[_0x21f876('0xe28')]}})[_0x21f876('0x2788')](function(_0x53888d){const _0xf18308=_0x21f876;_0x53888d&&(_0x53888d['id']?_0x105b07[_0xf18308('0x2431')]['rows'][_0x149ea0]=_0x53888d:_0x105b07[_0xf18308('0x2431')]['rows'][_0xf18308('0x722')](_0x149ea0,0x0,_0x53888d),_0x49a1c2());})[_0x21f876('0x1cb5')](function(_0x46794b){const _0x178f64=_0x21f876;_0x46794b&&_0x597943[_0x178f64('0x5e8')]({'title':_0x46794b[_0x178f64('0x1b51')]?_0x178f64('0x15d1')+_0x46794b[_0x178f64('0x1b51')]+_0x178f64('0x1b0b')+_0x46794b['statusText']:_0x178f64('0x239b'),'msg':_0x46794b['data']?JSON[_0x178f64('0x1be0')](_0x46794b[_0x178f64('0x11fc')]):_0x46794b[_0x178f64('0x17df')]()});});}}function _0x26f630(_0x50105f,_0x4d2038){const _0x341929=_0x172621;if(_0x105b07[_0x341929('0x2431')][_0x341929('0x25df')][_0x341929('0x2566')]){const _0x2e4359=_0x105b07[_0x341929('0x2431')][_0x341929('0x25df')][_0x4d2038]?_0x105b07['mailAccountApps'][_0x341929('0x25df')][_0x4d2038]:_0x105b07[_0x341929('0x2431')][_0x341929('0x25df')][0x0];_0x33f635[_0x341929('0x2fa')]({'controller':_0x341929('0x9ef'),'controllerAs':'vm','templateUrl':_0x54d87f,'parent':angular[_0x341929('0x16b1')](_0x31efd4['body']),'targetEvent':_0x50105f,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2e4359['interval'],'IntervalId':_0x2e4359[_0x341929('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x105b07[_0x341929('0xe28')]}})[_0x341929('0x2788')](function(_0x37b248){const _0x48340f=_0x341929;_0x37b248&&(_0x2e4359[_0x48340f('0x2630')]=_0x37b248[_0x48340f('0x2630')]||_0x48340f('0x2191'),_0x2e4359[_0x48340f('0x20d0')]=_0x37b248[_0x48340f('0x20d0')]||null,_0x49a1c2());});}}function _0x49a1c2(){const _0x168e12=_0x172621;let _0x134289=0x1,_0x23aceb=[];for(let _0x849af6=0x0;_0x849af6<_0x105b07[_0x168e12('0x2431')][_0x168e12('0x25df')][_0x168e12('0x2566')];_0x849af6++){const _0x4d0cef=_0x105b07['mailAccountApps']['rows'][_0x849af6],_0x51f2f6=[],_0x3d30d0=[];_0x4d0cef['intervals']=_0x4d0cef[_0x168e12('0x2630')]!==_0x168e12('0x2191')?[_0x4d0cef['interval']]:_0x4d0cef[_0x168e12('0x20d0')]?_0x283545()[_0x168e12('0x155d')](_0x283545()[_0x168e12('0x916')](_0x105b07[_0x168e12('0xec5')][_0x168e12('0x25df')],{'IntervalId':_0x4d0cef['IntervalId']}),_0x168e12('0x2630')):[],_0x4d0cef[_0x168e12('0x1f3b')]=_0x105b07[_0x168e12('0x2594')][_0x168e12('0x1f3b')],_0x4d0cef[_0x168e12('0x1d6f')]=_0x105b07[_0x168e12('0x2594')]['exten'],_0x4d0cef[_0x168e12('0x1d7')]&&(_0x4d0cef['type']=_0x4d0cef['type'][_0x168e12('0xc2e')]()),_0x4d0cef['priority']=_0x51f2f6[_0x168e12('0x2566')]?_0x283545()[_0x168e12('0x1d39')](_0x51f2f6)[_0x168e12('0x155b')]+0x1:_0x134289,_0x134289=(_0x3d30d0[_0x168e12('0x2566')]?_0x283545()['last'](_0x3d30d0)[_0x168e12('0x155b')]:_0x4d0cef[_0x168e12('0x155b')])+0x1,_0x23aceb=_0x283545()[_0x168e12('0x1282')](_0x23aceb,_0x51f2f6,[_0x4d0cef],_0x3d30d0);}_0x54d4ac[_0x168e12('0x2594')][_0x168e12('0x109')]({'id':_0x105b07[_0x168e12('0x2594')]['id']},_0x283545()[_0x168e12('0x8ce')](_0x23aceb,_0x168e12('0x155b')))[_0x168e12('0x1714')][_0x168e12('0x2788')](function(_0x30329c){const _0x1ceb4e=_0x168e12;_0x105b07[_0x1ceb4e('0x2431')]['rows']=_0x30329c[_0x1ceb4e('0x25df')];})[_0x168e12('0x1cb5')](function(_0x115329){const _0x4649c6=_0x168e12;console[_0x4649c6('0x5e8')](_0x115329);});}function _0x31fcd5(_0x270ef6){const _0xfe3b19=_0x172621;_0x105b07[_0xfe3b19('0x2431')]=_0x270ef6||{'count':0x0,'rows':[]};}function _0x453ee1(){const _0x4de9a4=_0x172621;return _0x54d4ac[_0x4de9a4('0x2630')][_0x4de9a4('0x1335')]({'fields':'id,interval,IntervalId'})['$promise'][_0x4de9a4('0x2788')](function(_0x459ce3){const _0x372474=_0x4de9a4;_0x105b07[_0x372474('0xec5')]=_0x459ce3;})[_0x4de9a4('0x1cb5')](function(_0x301da8){const _0x4c47ee=_0x4de9a4;console[_0x4c47ee('0x5e8')](_0x301da8);});}function _0x2e7dec(){const _0x50f67b=_0x172621;_0x105b07[_0x50f67b('0x1808')]=_0x54d4ac[_0x50f67b('0x2594')][_0x50f67b('0x26b0')](_0x105b07[_0x50f67b('0x135a')],_0x31fcd5)[_0x50f67b('0x1714')];}function _0x43de84(_0xfd79a3){const _0x5ded40=_0x172621;_0x283545()[_0x5ded40('0x1a90')](_0x105b07[_0x5ded40('0x2431')]['rows'],{'id':_0xfd79a3['id']}),_0x49a1c2(),_0x597943[_0x5ded40('0x173b')]({'title':_0x5ded40('0x170b'),'msg':_0xfd79a3[_0x5ded40('0x8a5')]?_0xfd79a3['app']+_0x5ded40('0x14d4'):''});}function _0x5e9331(_0x195027){const _0x350ce3=_0x172621,_0x4ae42c=_0x33f635[_0x350ce3('0x112e')]()[_0x350ce3('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x350ce3('0x93e')](_0x350ce3('0x1670')+_0x105b07[_0x350ce3('0x12f3')]['length']+_0x350ce3('0xbd')+_0x350ce3('0x27c7'))[_0x350ce3('0x10bc')](_0x350ce3('0x1db'))[_0x350ce3('0x24d0')](_0x195027)['ok']('OK')[_0x350ce3('0x1801')]('CANCEL');_0x33f635[_0x350ce3('0x2fa')](_0x4ae42c)['then'](function(){const _0x34b681=_0x350ce3;_0x105b07[_0x34b681('0x12f3')][_0x34b681('0x1534')](function(_0xbd8d1){_0x283545()['remove'](_0x105b07['mailAccountApps']['rows'],{'id':_0xbd8d1['id']});}),_0x105b07[_0x34b681('0x12f3')]=[],_0x49a1c2();});}}const _0x39fc7f=_0x58ddfa;_0x3f3d1f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api','mailAccount',_0x34e79e('0x1e22'),'realtime',_0x34e79e('0x1a5c'),'Auth',_0x34e79e('0xe28')];function _0x3f3d1f(_0x4fad4e,_0xe1de8,_0x445de3,_0x198750,_0x54e273,_0x287cc5,_0x336e68,_0x468270,_0x32c79b,_0x3f4289){const _0x49432e=_0x34e79e,_0x1dadde=this;_0x1dadde[_0x49432e('0x9cb')]=_0x32c79b[_0x49432e('0x24cc')](),_0x1dadde[_0x49432e('0x2594')]=_0x54e273,_0x1dadde[_0x49432e('0xe28')]=_0x3f4289,_0x1dadde[_0x49432e('0x548')]=_0x336e68,_0x1dadde[_0x49432e('0x117b')]=[],_0x1dadde['allowedItems']=[],_0x1dadde[_0x49432e('0x283f')]=[],_0x1dadde[_0x49432e('0x12d9')]=[],_0x1dadde[_0x49432e('0xd0d')]=[],_0x1dadde[_0x49432e('0x2677')]=![],_0x1dadde[_0x49432e('0x122e')]=_0x32d927,_0x1dadde[_0x49432e('0x1f8d')]=_0xfe928c,_0x1dadde[_0x49432e('0xca7')]=_0x341d85,_0x1dadde[_0x49432e('0x121')]={'readOnly':!_0x1dadde[_0x49432e('0xe28')][_0x49432e('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x49432e('0x2831'),'line2':[_0x49432e('0x1a8d'),_0x49432e('0x2838')],'line3':'','labelAll':_0x468270['instant'](_0x49432e('0x8f8')),'labelSelected':_0x468270[_0x49432e('0x1b11')](_0x49432e('0x4d0')),'transferCallback':function(){const _0x4cc62c=_0x49432e,_0x3ae82e=_0x283545()[_0x4cc62c('0x12d1')](_0x1dadde[_0x4cc62c('0xd0d')],_0x1dadde['selectedItems'],'id');_0x1dadde[_0x4cc62c('0x2677')]=_0x283545()['isEmpty'](_0x3ae82e)?![]:!![];}};function _0x32d927(){const _0x1d1a05=_0x49432e;return _0x32c79b['hasRole']('admin')?_0xe01fd0()[_0x1d1a05('0x1cb5')](function(_0x50527c){const _0x1c6d25=_0x1d1a05;_0x445de3[_0x1c6d25('0x5e8')]({'title':_0x50527c['status']?_0x1c6d25('0x15d1')+_0x50527c['status']+'\x20-\x20'+_0x50527c[_0x1c6d25('0x22ce')]:_0x1c6d25('0xd90'),'msg':_0x50527c[_0x1c6d25('0x1b51')]?JSON[_0x1c6d25('0x1be0')](_0x50527c[_0x1c6d25('0x11fc')]):_0x50527c[_0x1c6d25('0x17df')]()});}):_0x326550()[_0x1d1a05('0x2788')](function(_0xf5f7ba){const _0x57efe2=_0x1d1a05;return _0x1dadde[_0x57efe2('0xb13')]=_0xf5f7ba,_0xe01fd0();})['catch'](function(_0x3e42b7){const _0x3f6c99=_0x1d1a05;_0x445de3[_0x3f6c99('0x5e8')]({'title':_0x3e42b7[_0x3f6c99('0x1b51')]?_0x3f6c99('0x15d1')+_0x3e42b7[_0x3f6c99('0x1b51')]+'\x20-\x20'+_0x3e42b7[_0x3f6c99('0x22ce')]:_0x3f6c99('0xd90'),'msg':_0x3e42b7['status']?JSON['stringify'](_0x3e42b7['data']):_0x3e42b7[_0x3f6c99('0x17df')]()});});}function _0x326550(){return _0xe1de8(function(_0x1ea1e9,_0x541c6e){const _0x144463=a0_0x14e7;_0x198750[_0x144463('0xec9')]['get']({'userProfileId':_0x1dadde[_0x144463('0x9cb')][_0x144463('0x237f')],'name':_0x144463('0x1f72')})[_0x144463('0x1714')][_0x144463('0x2788')](function(_0x3301f6){const _0xc9c28=_0x3301f6&&_0x3301f6['rows']?_0x3301f6['rows'][0x0]:null;_0x1ea1e9(_0xc9c28);})['catch'](function(_0x20a249){_0x541c6e(_0x20a249);});});}function _0xe01fd0(){return _0xe1de8(function(_0x29d7fc,_0x335f04){const _0x353b75=a0_0x14e7;return _0x17d09d()[_0x353b75('0x2788')](function(_0x18e610){const _0x6430a1=_0x353b75;return _0x1dadde[_0x6430a1('0x117b')]=_0x18e610[_0x6430a1('0x25df')]?_0x18e610[_0x6430a1('0x25df')]:[],_0x32c79b[_0x6430a1('0x1516')](_0x6430a1('0xe23'))?_0x18e610:_0x1dadde[_0x6430a1('0xb13')]?_0x1dadde['section'][_0x6430a1('0x1c0a')]?_0x18e610:_0x591630():null;})[_0x353b75('0x2788')](function(_0x8b0c17){const _0x1eb063=_0x353b75,_0x1cc66a=_0x8b0c17&&_0x8b0c17['rows']?_0x8b0c17[_0x1eb063('0x25df')]:[];return _0x1dadde[_0x1eb063('0x73d')]=_0x283545()[_0x1eb063('0x155d')](_0x1cc66a,function(_0x54096a){const _0x429780=_0x1eb063;return _0x283545()[_0x429780('0x20e8')](_0x1dadde[_0x429780('0x117b')],{'id':_0x32c79b['hasRole'](_0x429780('0xe23'))||_0x1dadde[_0x429780('0xb13')][_0x429780('0x1c0a')]?_0x54096a['id']:_0x54096a['resourceId']});}),_0x1dadde['startingAllowedItems']=angular[_0x1eb063('0x2669')](_0x1dadde[_0x1eb063('0x73d')]),_0x1dadde[_0x1eb063('0x117b')][_0x1eb063('0x1534')](function(_0x19c561){const _0x3dfaa1=_0x1eb063,_0x4ac996=_0x283545()[_0x3dfaa1('0x20e8')](_0x1dadde['allowedItems'],{'id':_0x19c561['id']});_0x32c79b[_0x3dfaa1('0x1516')](_0x3dfaa1('0xe23'))?_0x19c561[_0x3dfaa1('0x68d')]=!![]:_0x19c561['isValid']=typeof _0x4ac996!==_0x3dfaa1('0xedb')?!![]:![];}),_0x22c2dc();})[_0x353b75('0x2788')](function(_0x98695b){const _0x1f2baa=_0x353b75,_0x40b660=_0x98695b&&_0x98695b['rows']?_0x98695b['rows']:[];_0x1dadde[_0x1f2baa('0x283f')]=_0x283545()[_0x1f2baa('0x155d')](_0x40b660,function(_0x4d30df){const _0xd2ddd2=_0x1f2baa,_0x5a8a78=_0x283545()[_0xd2ddd2('0x20e8')](_0x1dadde[_0xd2ddd2('0x117b')],{'id':_0x4d30df['id']});return _0x5a8a78['penalty']=_0x4d30df[_0xd2ddd2('0x1a2')]?_0xd2ddd2('0x1b9d')+_0x4d30df[_0xd2ddd2('0x1a2')][_0xd2ddd2('0x1ab')]:'',_0x5a8a78[_0xd2ddd2('0x2838')]=typeof _0x4d30df['internal']!==_0xd2ddd2('0xedb')?'<'+_0x4d30df[_0xd2ddd2('0x2838')]+'>':'',_0x5a8a78;}),_0x1dadde[_0x1f2baa('0xd0d')]=angular[_0x1f2baa('0x2669')](_0x1dadde[_0x1f2baa('0x283f')]),_0x1dadde[_0x1f2baa('0x121')][_0x1f2baa('0x283f')]=_0x1dadde['selectedItems'],_0x1dadde[_0x1f2baa('0x121')][_0x1f2baa('0x117b')]=_0x283545()[_0x1f2baa('0x432')](_0x1dadde['allowedItems'],_0x1dadde[_0x1f2baa('0x121')][_0x1f2baa('0x283f')],'id'),_0x29d7fc();})['catch'](function(_0x376068){_0x335f04(_0x376068);});});}function _0x591630(){return _0xe1de8(function(_0x34ae21,_0x193305){const _0x146341=a0_0x14e7;return _0x198750[_0x146341('0x1050')]['get']({'sectionId':_0x1dadde[_0x146341('0xb13')]['id'],'nolimit':!![]})[_0x146341('0x1714')][_0x146341('0x2788')](function(_0x4e23d2){_0x34ae21(_0x4e23d2);})[_0x146341('0x1cb5')](function(_0x3a9ae2){_0x193305(_0x3a9ae2);});});}function _0x22c2dc(){return _0xe1de8(function(_0x37c556,_0x457ce0){const _0x226fd5=a0_0x14e7;return _0x198750[_0x226fd5('0x2594')][_0x226fd5('0x19db')]({'id':_0x1dadde['mailAccount']['id'],'fields':_0x226fd5('0x1d32'),'nolimit':!![],'role':_0x226fd5('0x188b')})['$promise']['then'](function(_0x1f6edf){_0x37c556(_0x1f6edf);})['catch'](function(_0x1331cb){_0x457ce0(_0x1331cb);});});}function _0x17d09d(){return _0xe1de8(function(_0x2e9928,_0x41f73){const _0x155fa9=a0_0x14e7;return _0x198750[_0x155fa9('0x1e6a')][_0x155fa9('0x1335')]({'fields':_0x155fa9('0x1d32'),'nolimit':!![],'role':_0x155fa9('0x188b')})[_0x155fa9('0x1714')][_0x155fa9('0x2788')](function(_0x57088d){_0x2e9928(_0x57088d);})[_0x155fa9('0x1cb5')](function(_0x26b6c3){_0x41f73(_0x26b6c3);});});}function _0x21e8c8(_0x270b20){return _0xe1de8(function(_0x5d3136,_0x38e0da){const _0x53ce09=a0_0x14e7;_0x283545()[_0x53ce09('0x213d')](_0x270b20)?_0x5d3136():_0x198750[_0x53ce09('0x2594')][_0x53ce09('0x588')]({'id':_0x1dadde[_0x53ce09('0x2594')]['id'],'ids':_0x283545()[_0x53ce09('0x155d')](_0x270b20,'id')})[_0x53ce09('0x1714')]['then'](function(){_0x5d3136();})[_0x53ce09('0x1cb5')](function(_0x293711){_0x38e0da(_0x293711);});});}function _0x4afcbb(_0x1042a4){return _0xe1de8(function(_0x17b3a1,_0x1f4ec5){const _0x3a45fd=a0_0x14e7;_0x283545()[_0x3a45fd('0x213d')](_0x1042a4)?_0x17b3a1():_0x198750[_0x3a45fd('0x2594')]['removeAgents']({'id':_0x1dadde[_0x3a45fd('0x2594')]['id'],'ids':_0x283545()[_0x3a45fd('0x155d')](_0x1042a4,'id')})[_0x3a45fd('0x1714')][_0x3a45fd('0x2788')](function(){_0x17b3a1();})[_0x3a45fd('0x1cb5')](function(_0x361fcf){_0x1f4ec5(_0x361fcf);});});}function _0xfe928c(){const _0x180d27=_0x49432e,_0x2d5db7=_0x283545()['differenceBy'](_0x1dadde[_0x180d27('0xd0d')],_0x1dadde[_0x180d27('0x283f')],'id'),_0x2b412d=_0x283545()['differenceBy'](_0x1dadde[_0x180d27('0x283f')],_0x1dadde[_0x180d27('0xd0d')],'id');return _0x4afcbb(_0x2d5db7)['then'](function(){return _0x21e8c8(_0x2b412d);})[_0x180d27('0x2788')](function(){const _0x310d62=_0x180d27;_0x1dadde[_0x310d62('0x2677')]=![],_0x1dadde[_0x310d62('0x12d9')]=angular['copy'](_0x1dadde['allowedItems']),_0x1dadde[_0x310d62('0xd0d')]=angular[_0x310d62('0x2669')](_0x1dadde[_0x310d62('0x283f')]),_0x445de3[_0x310d62('0x173b')]({'title':'SUCCESS','msg':_0x310d62('0x1984')});})['catch'](function(_0x13861e){const _0x3194be=_0x180d27;_0x445de3['error']({'title':_0x13861e['status']?_0x3194be('0x15d1')+_0x13861e[_0x3194be('0x1b51')]+_0x3194be('0x1b0b')+_0x13861e[_0x3194be('0x22ce')]:_0x3194be('0x13cd'),'msg':_0x13861e[_0x3194be('0x1b51')]?JSON[_0x3194be('0x1be0')](_0x13861e[_0x3194be('0x11fc')]):_0x13861e['toString']()});});}function _0x341d85(){const _0x4c82f6=_0x49432e;_0x4fad4e[_0x4c82f6('0x19d')]();}}const _0x299225=_0x3f3d1f;_0x2d98c6[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),_0x34e79e('0x2594'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2d98c6(_0x3cf154,_0x545a75,_0x43b40,_0x4683e1,_0x1ea3e3,_0x25941d,_0x10644a,_0x125fdc){const _0x25ccf9=_0x34e79e,_0x4e905c=this;_0x4e905c[_0x25ccf9('0x9cb')]=_0x10644a[_0x25ccf9('0x24cc')](),_0x4e905c[_0x25ccf9('0x25be')]=[],_0x4e905c['title']='MAIL.EDIT_'+(_0x4683e1['appType']||_0x4683e1[_0x25ccf9('0x8a5')])[_0x25ccf9('0x25e6')](),_0x4e905c[_0x25ccf9('0x188b')]=angular['copy'](_0x4683e1),_0x4e905c[_0x25ccf9('0xe28')]=_0x125fdc,_0x4e905c[_0x25ccf9('0x1193')]={};if(_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xd6b')])switch(_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x167b')]?_0x4e905c[_0x25ccf9('0x188b')]['appType'][_0x25ccf9('0xc2e')]():_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x8a5')][_0x25ccf9('0xc2e')]()){case _0x25ccf9('0x1d56'):break;case _0x25ccf9('0x5e1'):{const _0x34cf10=_0x4e905c['agent'][_0x25ccf9('0xd6b')][_0x25ccf9('0x1497')](',');_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x234b')]=_0x34cf10[0x0],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x175b')]=_0x34cf10[0x1],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xf50')]=_0x34cf10['slice'](0x2,_0x34cf10[_0x25ccf9('0x2566')])[_0x25ccf9('0x185f')](',');}break;case _0x25ccf9('0x137a'):{const _0x3eb241=_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xd6b')][_0x25ccf9('0x1497')](',');_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x27f2')]=_0x3eb241[0x0],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x1b58')]=_0x3eb241[0x1],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xb70')]=_0x3eb241[0x2],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x4eb')]=_0x3eb241[0x3],_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xf50')]=_0x3eb241[_0x25ccf9('0x845')](0x4,_0x3eb241['length'])['join'](',');}break;case'autoreply':{const _0xd8fda4=_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xd6b')][_0x25ccf9('0x1497')](',');_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x5fd')]=isNaN(_0xd8fda4[0x0])?_0xd8fda4[0x0]:parseInt(_0xd8fda4[0x0],0xa),_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x16db')]=_0xd8fda4[_0x25ccf9('0x845')](0x1,_0xd8fda4[_0x25ccf9('0x2566')])[_0x25ccf9('0x185f')](',');}break;case _0x25ccf9('0x15e2'):_0x4e905c['agent']['text']=_0x4e905c[_0x25ccf9('0x188b')]['appdata'];break;case'set':_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x1a8d')]=_0x4e905c['agent']['appdata'][_0x25ccf9('0x1497')]('=')[0x0],_0x4e905c['agent'][_0x25ccf9('0x49')]=_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0xd6b')]['split']('=')[0x1];break;case'agi':_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x1bf6')]=_0x4e905c['agent'][_0x25ccf9('0xd6b')];break;default:{const _0x2eced7=_0x4e905c['agent'][_0x25ccf9('0xd6b')][_0x25ccf9('0x1497')](',');_0x4e905c['agent'][_0x25ccf9('0x188b')]=_0x283545()[_0x25ccf9('0x213d')](_0x2eced7[0x0])?_0x2eced7[0x0]:isNaN(_0x2eced7[0x0])?_0x2eced7[0x0]:parseInt(_0x2eced7[0x0],0xa),_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x24e4')]=_0x283545()[_0x25ccf9('0x213d')](_0x2eced7[0x1])?_0x2eced7[0x1]:isNaN(_0x2eced7[0x1])?_0x2eced7[0x1]:parseInt(_0x2eced7[0x1],0xa);}break;}else _0x4e905c['agent'][_0x25ccf9('0x24e4')]=0x1e;_0x4e905c['agent'][_0x25ccf9('0x1d7')]&&_0x4e905c[_0x25ccf9('0x188b')]['type'][_0x25ccf9('0xc2e')]()===_0x25ccf9('0x1')&&_0x4e905c['agent'][_0x25ccf9('0x167b')][_0x25ccf9('0xc2e')]()===_0x25ccf9('0x229c')&&(_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x1f71')]=_0x4e905c['agent']['phone']?_0x4e905c['agent'][_0x25ccf9('0x1224')]['split']('$')[0x0]:undefined,_0x4e905c[_0x25ccf9('0x188b')]['callerId']=_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x8de')]?_0x25ccf9('0x1834')+_0x4e905c[_0x25ccf9('0x188b')][_0x25ccf9('0x8de')]:undefined);_0x4e905c[_0x25ccf9('0x136b')]=_0x27b988,_0x4e905c[_0x25ccf9('0xca7')]=_0x52521d,_0x10644a[_0x25ccf9('0x1516')]('admin')?_0x25941d['user'][_0x25ccf9('0x1335')]({'fields':'id,name','sort':'name','nolimit':_0x25ccf9('0x1001'),'role':_0x25ccf9('0x188b')})[_0x25ccf9('0x1714')][_0x25ccf9('0x2788')](function(_0x55a5c2){const _0x381638=_0x25ccf9;_0x4e905c[_0x381638('0x1713')]=_0x55a5c2[_0x381638('0x25df')]||[];})[_0x25ccf9('0x1cb5')](function(_0x34afd6){const _0x59e248=_0x25ccf9;_0x43b40[_0x59e248('0x5e8')]({'title':_0x34afd6['status']?_0x59e248('0x15d1')+_0x34afd6['status']+_0x59e248('0x1b0b')+_0x34afd6[_0x59e248('0x22ce')]:_0x59e248('0xd90'),'msg':_0x34afd6[_0x59e248('0x11fc')]?JSON['stringify'](_0x34afd6[_0x59e248('0x11fc')]):_0x34afd6[_0x59e248('0x17df')]()});}):_0x25941d[_0x25ccf9('0x1e6a')]['get']({'fields':_0x25ccf9('0x1338'),'sort':_0x25ccf9('0x1a8d'),'nolimit':_0x25ccf9('0x1001'),'role':_0x25ccf9('0x188b')})[_0x25ccf9('0x1714')][_0x25ccf9('0x2788')](function(_0x43325b){const _0x5d0995=_0x25ccf9;_0x4e905c[_0x5d0995('0x1713')]=_0x43325b[_0x5d0995('0x25df')]||[];})[_0x25ccf9('0x2788')](function(){const _0x271845=_0x25ccf9;return _0x25941d[_0x271845('0xec9')][_0x271845('0x1335')]({'userProfileId':_0x4e905c[_0x271845('0x9cb')][_0x271845('0x237f')],'sectionId':0xca})[_0x271845('0x1714')];})[_0x25ccf9('0x2788')](function(_0x242eb6){const _0x50e29a=_0x25ccf9,_0x3b807c=_0x242eb6&&_0x242eb6[_0x50e29a('0x25df')]?_0x242eb6[_0x50e29a('0x25df')][0x0]:null;if(!_0x3b807c){const _0x12121a=[];let _0x50048d=null;_0x4e905c['agent']&&(_0x50048d=_0x283545()['find'](_0x4e905c[_0x50e29a('0x1713')],{'name':_0x4e905c[_0x50e29a('0x188b')][_0x50e29a('0x188b')]}));for(let _0x286126=0x0;_0x286126<_0x4e905c[_0x50e29a('0x1713')]['length'];_0x286126++){_0x50048d&&_0x4e905c['agents'][_0x286126]['id']===_0x50048d['id']&&(_0x4e905c['agents'][_0x286126]['canSelect']=![],_0x12121a['push'](_0x4e905c[_0x50e29a('0x1713')][_0x286126]));}_0x4e905c[_0x50e29a('0x1713')]=_0x12121a;}else{if(!_0x3b807c['autoAssociation'])return _0x25941d[_0x50e29a('0x1050')]['get']({'sectionId':_0x3b807c['id']})[_0x50e29a('0x1714')][_0x50e29a('0x2788')](function(_0x26b04d){const _0x456bb5=_0x50e29a,_0x1acf52=_0x283545()[_0x456bb5('0x155d')](_0x26b04d[_0x456bb5('0x25df')],function(_0x1fadcf){const _0x567c51=_0x456bb5;return _0x283545()['find'](_0x4e905c[_0x567c51('0x1713')],{'id':_0x1fadcf[_0x567c51('0x2707')]});});let _0x4cfc1a=null;_0x4e905c[_0x456bb5('0x188b')]&&(_0x4cfc1a=_0x283545()[_0x456bb5('0x20e8')](_0x4e905c['agents'],{'name':_0x4e905c[_0x456bb5('0x188b')][_0x456bb5('0x188b')]}));if(_0x4cfc1a&&!_0x283545()[_0x456bb5('0xc5d')](_0x1acf52,['id',_0x4cfc1a['id']])){const _0x32b910=_0x283545()[_0x456bb5('0x20e8')](_0x4e905c[_0x456bb5('0x1713')],{'id':_0x4cfc1a['id']});_0x32b910['canSelect']=![],_0x1acf52[_0x456bb5('0x13e3')](_0x32b910);}_0x4e905c[_0x456bb5('0x1713')]=_0x1acf52;});}})[_0x25ccf9('0x1cb5')](function(_0xb4d564){const _0x1b7a5a=_0x25ccf9;_0x43b40[_0x1b7a5a('0x5e8')]({'title':_0xb4d564['status']?_0x1b7a5a('0x15d1')+_0xb4d564[_0x1b7a5a('0x1b51')]+_0x1b7a5a('0x1b0b')+_0xb4d564[_0x1b7a5a('0x22ce')]:_0x1b7a5a('0x1246'),'msg':_0xb4d564[_0x1b7a5a('0x11fc')]?JSON[_0x1b7a5a('0x1be0')](_0xb4d564[_0x1b7a5a('0x11fc')]):_0xb4d564[_0x1b7a5a('0x17df')]()});});function _0x27b988(){const _0xe4dbe8=_0x25ccf9;_0x4e905c[_0xe4dbe8('0x25be')]=[];const _0x556674=[];_0x4e905c['agent'][_0xe4dbe8('0x1d7')]&&_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x1d7')][_0xe4dbe8('0xc2e')]()==='outbound'&&_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x167b')]===_0xe4dbe8('0x25fb')&&(_0x4e905c['agent'][_0xe4dbe8('0x1224')]=_0x1ea3e3[_0xe4dbe8('0x277c')]?(_0x4e905c['agent']['prefix']||'')+_0xe4dbe8('0x124d')+_0x1ea3e3[_0xe4dbe8('0x277c')]+'}':(_0x4e905c[_0xe4dbe8('0x188b')]['prefix']||'')+'${EXTEN}',_0x1ea3e3[_0xe4dbe8('0x801')]!==_0xe4dbe8('0x1dc')?_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x784')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x4e905c[_0xe4dbe8('0x188b')]['options']+=_0xe4dbe8('0x1609')):_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x784')]=_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x784')]['replace'](_0xe4dbe8('0x1609'),''));const _0x58e31a=_0x283545()[_0xe4dbe8('0x20e8')](_0x4e905c[_0xe4dbe8('0x1713')],{'name':_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x188b')]});_0x58e31a&&(_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x3bb')]=_0x58e31a['id']);if(_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x167b')]&&_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x167b')]===_0xe4dbe8('0x1d56')){}else switch((_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x8a5')]||_0x4e905c[_0xe4dbe8('0x188b')]['appType'])[_0xe4dbe8('0xc2e')]()){case _0xe4dbe8('0x3a6'):_0x4e905c['agent'][_0xe4dbe8('0xd6b')]=_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x1a8d')]+'='+_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x49')];break;case'custom':break;default:_0x556674[0x0]=_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x188b')],_0x556674[0x1]=_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0x24e4')],_0x4e905c[_0xe4dbe8('0x188b')][_0xe4dbe8('0xd6b')]=_0x556674[_0xe4dbe8('0x185f')](',');}_0x52521d(_0x4e905c['agent']);}function _0x52521d(_0x250101){const _0x5b7980=_0x25ccf9;_0x3cf154[_0x5b7980('0x19d')](_0x250101);}}const _0xc7e3d4=_0x2d98c6;_0xe39099[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'mailAccountApp',_0x34e79e('0x2594'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xe39099(_0x53e33f,_0x5cd298,_0x2383df,_0x5c6a58,_0x4867ff,_0x111e52,_0x2866ac,_0x590860){const _0x29da6c=_0x34e79e,_0x4ebffa=this;_0x4ebffa[_0x29da6c('0x9cb')]=_0x2866ac[_0x29da6c('0x24cc')](),_0x4ebffa[_0x29da6c('0x25be')]=[],_0x4ebffa['title']=_0x29da6c('0x23bd')+(_0x5c6a58[_0x29da6c('0x167b')]||_0x5c6a58[_0x29da6c('0x8a5')])[_0x29da6c('0x25e6')](),_0x4ebffa[_0x29da6c('0x808')]=angular[_0x29da6c('0x2669')](_0x5c6a58),_0x4ebffa[_0x29da6c('0xe28')]=_0x590860,_0x4ebffa['hasModulePermissions']={};if(_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')])switch(_0x4ebffa['autoreply'][_0x29da6c('0x167b')]?_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x167b')][_0x29da6c('0xc2e')]():_0x4ebffa[_0x29da6c('0x808')]['app'][_0x29da6c('0xc2e')]()){case _0x29da6c('0x1d56'):break;case _0x29da6c('0x5e1'):{const _0x44b298=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')][_0x29da6c('0x1497')](',');_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x234b')]=_0x44b298[0x0],_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x175b')]=_0x44b298[0x1],_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xf50')]=_0x44b298[_0x29da6c('0x845')](0x2,_0x44b298[_0x29da6c('0x2566')])[_0x29da6c('0x185f')](',');}break;case'amazonlex':{const _0x139d23=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')]['split'](',');_0x4ebffa['autoreply']['accesskeyid']=_0x139d23[0x0],_0x4ebffa['autoreply'][_0x29da6c('0x1b58')]=_0x139d23[0x1],_0x4ebffa['autoreply'][_0x29da6c('0xb70')]=_0x139d23[0x2],_0x4ebffa[_0x29da6c('0x808')]['botname']=_0x139d23[0x3],_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xf50')]=_0x139d23['slice'](0x4,_0x139d23[_0x29da6c('0x2566')])[_0x29da6c('0x185f')](',');}break;case'autoreply':{const _0x2aab23=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')]['split'](',');_0x4ebffa['autoreply'][_0x29da6c('0x5fd')]=isNaN(_0x2aab23[0x0])?_0x2aab23[0x0]:parseInt(_0x2aab23[0x0],0xa),_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x16db')]=_0x2aab23[_0x29da6c('0x845')](0x1,_0x2aab23[_0x29da6c('0x2566')])[_0x29da6c('0x185f')](',');}break;case _0x29da6c('0x15e2'):_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x16db')]=_0x4ebffa['autoreply'][_0x29da6c('0xd6b')];break;case _0x29da6c('0x3a6'):_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x1a8d')]=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')][_0x29da6c('0x1497')]('=')[0x0],_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x49')]=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')][_0x29da6c('0x1497')]('=')[0x1];break;case'agi':_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x1bf6')]=_0x4ebffa[_0x29da6c('0x808')]['appdata'];break;default:{const _0x527408=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0xd6b')][_0x29da6c('0x1497')](',');_0x4ebffa['autoreply'][_0x29da6c('0x5fd')]=_0x283545()[_0x29da6c('0x213d')](_0x527408[0x0])?_0x527408[0x0]:isNaN(_0x527408[0x0])?_0x527408[0x0]:parseInt(_0x527408[0x0],0xa),_0x4ebffa['autoreply'][_0x29da6c('0x16db')]=_0x283545()[_0x29da6c('0x213d')](_0x527408[0x1])?_0x527408[0x1]:isNaN(_0x527408[0x1])?_0x527408[0x1]:parseInt(_0x527408[0x1],0xa);}break;}else _0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x5fd')]=0x1;_0x4ebffa[_0x29da6c('0x808')]['type']&&_0x4ebffa['autoreply']['type']['toLowerCase']()==='outbound'&&_0x4ebffa['autoreply'][_0x29da6c('0x167b')][_0x29da6c('0xc2e')]()==='outbounddial'&&(_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x1f71')]=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x1224')]?_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x1224')]['split']('$')[0x0]:undefined,_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x2081')]=_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x8de')]?_0x29da6c('0x1834')+_0x4ebffa[_0x29da6c('0x808')][_0x29da6c('0x8de')]:undefined);_0x4ebffa['saveMailAccountApp']=_0x342222,_0x4ebffa[_0x29da6c('0xca7')]=_0x39ec8d;function _0x342222(){const _0x46ef85=_0x29da6c;_0x4ebffa[_0x46ef85('0x25be')]=[];const _0x5d8e40=[];_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1d7')]&&_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1d7')][_0x46ef85('0xc2e')]()===_0x46ef85('0x1')&&_0x4ebffa[_0x46ef85('0x808')]['appType']===_0x46ef85('0x25fb')&&(_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1224')]=_0x4867ff[_0x46ef85('0x277c')]?(_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1f71')]||'')+_0x46ef85('0x124d')+_0x4867ff[_0x46ef85('0x277c')]+'}':(_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1f71')]||'')+_0x46ef85('0x1275'),_0x4867ff[_0x46ef85('0x801')]!=='none'?_0x4ebffa[_0x46ef85('0x808')]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x784')]+=_0x46ef85('0x1609')):_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x784')]=_0x4ebffa[_0x46ef85('0x808')]['options'][_0x46ef85('0x10a4')](_0x46ef85('0x1609'),''));if(_0x4ebffa['autoreply'][_0x46ef85('0x167b')]&&_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x167b')]===_0x46ef85('0x1d56')){}else switch((_0x4ebffa['autoreply'][_0x46ef85('0x8a5')]||_0x4ebffa[_0x46ef85('0x808')]['appType'])['toLowerCase']()){case _0x46ef85('0x3a6'):_0x4ebffa['autoreply'][_0x46ef85('0xd6b')]=_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x1a8d')]+'='+_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x49')];break;case'custom':break;default:_0x5d8e40[0x0]=_0x4ebffa['autoreply']['times'],_0x5d8e40[0x1]=_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0x16db')],_0x4ebffa[_0x46ef85('0x808')][_0x46ef85('0xd6b')]=_0x5d8e40['join'](',');}_0x39ec8d(_0x4ebffa[_0x46ef85('0x808')]);}function _0x39ec8d(_0x292609){const _0x296269=_0x29da6c;_0x53e33f[_0x296269('0x19d')](_0x292609);}}const _0x1ff89f=_0xe39099;_0x5d6913[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),'mailAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x5d6913(_0x264f61,_0x159e06,_0x190efb,_0x56db26,_0x4ce4ed,_0x2c3bbe,_0x346bf2,_0x2a30ac){const _0x4a157b=_0x34e79e,_0x3dd308=this;_0x3dd308[_0x4a157b('0x9cb')]=_0x346bf2[_0x4a157b('0x24cc')](),_0x3dd308[_0x4a157b('0x25be')]=[],_0x3dd308[_0x4a157b('0x14e4')]=_0x4a157b('0x23bd')+(_0x56db26[_0x4a157b('0x167b')]||_0x56db26[_0x4a157b('0x8a5')])['toUpperCase'](),_0x3dd308[_0x4a157b('0x69f')]=angular[_0x4a157b('0x2669')](_0x56db26),_0x3dd308['crudPermissions']=_0x2a30ac,_0x3dd308[_0x4a157b('0x1193')]={};if(_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0xd6b')])switch(_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x167b')]?_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x167b')]['toLowerCase']():_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x8a5')][_0x4a157b('0xc2e')]()){case'custom':break;case _0x4a157b('0x5e1'):{const _0x5a9fcf=_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0xd6b')][_0x4a157b('0x1497')](',');_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x234b')]=_0x5a9fcf[0x0],_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x175b')]=_0x5a9fcf[0x1],_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0xf50')]=_0x5a9fcf[_0x4a157b('0x845')](0x2,_0x5a9fcf[_0x4a157b('0x2566')])[_0x4a157b('0x185f')](',');}break;case _0x4a157b('0x137a'):{const _0x5a7461=_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0xd6b')][_0x4a157b('0x1497')](',');_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x27f2')]=_0x5a7461[0x0],_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1b58')]=_0x5a7461[0x1],_0x3dd308[_0x4a157b('0x69f')]['lexregion']=_0x5a7461[0x2],_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x4eb')]=_0x5a7461[0x3],_0x3dd308['close'][_0x4a157b('0xf50')]=_0x5a7461['slice'](0x4,_0x5a7461[_0x4a157b('0x2566')])['join'](',');}break;case _0x4a157b('0x808'):{const _0x5b1833=_0x3dd308['close'][_0x4a157b('0xd6b')][_0x4a157b('0x1497')](',');_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x5fd')]=isNaN(_0x5b1833[0x0])?_0x5b1833[0x0]:parseInt(_0x5b1833[0x0],0xa),_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x16db')]=_0x5b1833[_0x4a157b('0x845')](0x1,_0x5b1833[_0x4a157b('0x2566')])['join'](',');}break;case'message':_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x16db')]=_0x3dd308[_0x4a157b('0x69f')]['appdata'];break;case _0x4a157b('0x3a6'):_0x3dd308[_0x4a157b('0x69f')]['name']=_0x3dd308['close'][_0x4a157b('0xd6b')][_0x4a157b('0x1497')]('=')[0x0],_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x49')]=_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0xd6b')]['split']('=')[0x1];break;case'agi':_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1bf6')]=_0x3dd308['close']['appdata'];break;default:{const _0x4267e7=_0x3dd308['close'][_0x4a157b('0xd6b')][_0x4a157b('0x1497')](',');_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1db2')]=_0x283545()[_0x4a157b('0x213d')](_0x4267e7[0x0])?_0x4267e7[0x0]:isNaN(_0x4267e7[0x0])?_0x4267e7[0x0]:parseInt(_0x4267e7[0x0],0xa);}break;}else{}_0x3dd308['close'][_0x4a157b('0x1d7')]&&_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1d7')][_0x4a157b('0xc2e')]()===_0x4a157b('0x1')&&_0x3dd308['close'][_0x4a157b('0x167b')]['toLowerCase']()===_0x4a157b('0x229c')&&(_0x3dd308[_0x4a157b('0x69f')]['prefix']=_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1224')]?_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x1224')][_0x4a157b('0x1497')]('$')[0x0]:undefined,_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x2081')]=_0x3dd308[_0x4a157b('0x69f')]['callerID']?_0x4a157b('0x1834')+_0x3dd308[_0x4a157b('0x69f')][_0x4a157b('0x8de')]:undefined);_0x3dd308[_0x4a157b('0x136b')]=_0x54c611,_0x3dd308[_0x4a157b('0xca7')]=_0x11847;function _0x54c611(){const _0x3168da=_0x4a157b;_0x3dd308[_0x3168da('0x25be')]=[];const _0x4a2e08=[];_0x3dd308['close'][_0x3168da('0x1d7')]&&_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1d7')][_0x3168da('0xc2e')]()===_0x3168da('0x1')&&_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x167b')]===_0x3168da('0x25fb')&&(_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1224')]=_0x4ce4ed[_0x3168da('0x277c')]?(_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1f71')]||'')+_0x3168da('0x124d')+_0x4ce4ed[_0x3168da('0x277c')]+'}':(_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1f71')]||'')+'${EXTEN}',_0x4ce4ed[_0x3168da('0x801')]!==_0x3168da('0x1dc')?_0x3dd308['close']['options']['indexOf'](_0x3168da('0x1609'))<0x0&&(_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x784')]+='U(xcally-mixmonitor-context)'):_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x784')]=_0x3dd308[_0x3168da('0x69f')]['options'][_0x3168da('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x167b')]&&_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x167b')]===_0x3168da('0x1d56')){}else switch((_0x3dd308[_0x3168da('0x69f')]['app']||_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x167b')])['toLowerCase']()){case _0x3168da('0x3a6'):_0x3dd308[_0x3168da('0x69f')]['appdata']=_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1a8d')]+'='+_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x49')];break;case _0x3168da('0x1d56'):break;default:_0x4a2e08[0x0]=_0x3dd308[_0x3168da('0x69f')][_0x3168da('0x1db2')],_0x3dd308[_0x3168da('0x69f')][_0x3168da('0xd6b')]=_0x4a2e08[_0x3168da('0x185f')](',');}_0x11847(_0x3dd308[_0x3168da('0x69f')]);}function _0x11847(_0x215857){_0x264f61['hide'](_0x215857);}}const _0x17c870=_0x5d6913;_0x5b893b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),'mailAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x5b893b(_0x292d7b,_0x34024e,_0x123dc8,_0x4d9d0d,_0x4e5856,_0x38ed43,_0x636faa,_0x41511f){const _0x8ff446=_0x34e79e,_0x44030e=this;_0x44030e[_0x8ff446('0x9cb')]=_0x636faa[_0x8ff446('0x24cc')](),_0x44030e['errors']=[],_0x44030e[_0x8ff446('0x14e4')]=_0x8ff446('0x23bd')+(_0x4d9d0d['appType']||_0x4d9d0d['app'])[_0x8ff446('0x25e6')](),_0x44030e[_0x8ff446('0x1e01')]=angular['copy'](_0x4d9d0d),_0x44030e['crudPermissions']=_0x41511f,_0x44030e[_0x8ff446('0x1193')]={};if(_0x44030e[_0x8ff446('0x1e01')]['appdata'])switch(_0x44030e[_0x8ff446('0x1e01')]['appType']?_0x44030e[_0x8ff446('0x1e01')]['appType']['toLowerCase']():_0x44030e[_0x8ff446('0x1e01')]['app'][_0x8ff446('0xc2e')]()){case'custom':break;case'dialogflow':{const _0x20c8c6=_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0xd6b')][_0x8ff446('0x1497')](',');_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x234b')]=_0x20c8c6[0x0],_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x175b')]=_0x20c8c6[0x1],_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0xf50')]=_0x20c8c6[_0x8ff446('0x845')](0x2,_0x20c8c6['length'])['join'](',');}break;case _0x8ff446('0x137a'):{const _0x177400=_0x44030e['gotoif']['appdata'][_0x8ff446('0x1497')](',');_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x27f2')]=_0x177400[0x0],_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x1b58')]=_0x177400[0x1],_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0xb70')]=_0x177400[0x2],_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x4eb')]=_0x177400[0x3],_0x44030e[_0x8ff446('0x1e01')]['welcomemessage']=_0x177400[_0x8ff446('0x845')](0x4,_0x177400['length'])[_0x8ff446('0x185f')](',');}break;case _0x8ff446('0x808'):{const _0x1b879e=_0x44030e[_0x8ff446('0x1e01')]['appdata'][_0x8ff446('0x1497')](',');_0x44030e[_0x8ff446('0x1e01')]['times']=isNaN(_0x1b879e[0x0])?_0x1b879e[0x0]:parseInt(_0x1b879e[0x0],0xa),_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x16db')]=_0x1b879e[_0x8ff446('0x845')](0x1,_0x1b879e[_0x8ff446('0x2566')])[_0x8ff446('0x185f')](',');}break;case _0x8ff446('0x15e2'):_0x44030e['gotoif'][_0x8ff446('0x16db')]=_0x44030e['gotoif']['appdata'];break;case _0x8ff446('0x3a6'):_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x1a8d')]=_0x44030e['gotoif'][_0x8ff446('0xd6b')]['split']('=')[0x0],_0x44030e['gotoif'][_0x8ff446('0x49')]=_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0xd6b')][_0x8ff446('0x1497')]('=')[0x1];break;case _0x8ff446('0x2631'):_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x1bf6')]=_0x44030e['gotoif'][_0x8ff446('0xd6b')];break;default:{const _0xbd6a62=_0x44030e[_0x8ff446('0x1e01')]['appdata']['split'](',');_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0xf2b')]=_0x283545()[_0x8ff446('0x213d')](_0xbd6a62[0x0])?_0xbd6a62[0x0]:isNaN(_0xbd6a62[0x0])?_0xbd6a62[0x0]:parseInt(_0xbd6a62[0x0],0xa),_0x44030e['gotoif'][_0x8ff446('0x86a')]=_0x283545()[_0x8ff446('0x213d')](_0xbd6a62[0x1])?_0xbd6a62[0x1]:isNaN(_0xbd6a62[0x1])?_0xbd6a62[0x1]:parseInt(_0xbd6a62[0x1],0xa),_0x44030e['gotoif'][_0x8ff446('0x1474')]=_0x283545()[_0x8ff446('0x213d')](_0xbd6a62[0x2])?_0xbd6a62[0x2]:isNaN(_0xbd6a62[0x2])?_0xbd6a62[0x2]:parseInt(_0xbd6a62[0x2],0xa);}break;}else{}_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x1d7')]&&_0x44030e['gotoif'][_0x8ff446('0x1d7')][_0x8ff446('0xc2e')]()===_0x8ff446('0x1')&&_0x44030e['gotoif'][_0x8ff446('0x167b')][_0x8ff446('0xc2e')]()===_0x8ff446('0x229c')&&(_0x44030e[_0x8ff446('0x1e01')]['prefix']=_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x1224')]?_0x44030e['gotoif'][_0x8ff446('0x1224')][_0x8ff446('0x1497')]('$')[0x0]:undefined,_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x2081')]=_0x44030e['gotoif']['callerID']?'CALLERID(all)='+_0x44030e[_0x8ff446('0x1e01')][_0x8ff446('0x8de')]:undefined);_0x44030e[_0x8ff446('0x136b')]=_0x15e4ed,_0x44030e[_0x8ff446('0xca7')]=_0x1bd468;function _0x15e4ed(){const _0x56ec6c=_0x8ff446;_0x44030e[_0x56ec6c('0x25be')]=[];const _0x4796ca=[];_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x1d7')]&&_0x44030e['gotoif']['type'][_0x56ec6c('0xc2e')]()===_0x56ec6c('0x1')&&_0x44030e['gotoif'][_0x56ec6c('0x167b')]===_0x56ec6c('0x25fb')&&(_0x44030e[_0x56ec6c('0x1e01')]['phone']=_0x4e5856[_0x56ec6c('0x277c')]?(_0x44030e[_0x56ec6c('0x1e01')]['prefix']||'')+_0x56ec6c('0x124d')+_0x4e5856[_0x56ec6c('0x277c')]+'}':(_0x44030e['gotoif'][_0x56ec6c('0x1f71')]||'')+_0x56ec6c('0x1275'),_0x4e5856[_0x56ec6c('0x801')]!==_0x56ec6c('0x1dc')?_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x784')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x784')]+=_0x56ec6c('0x1609')):_0x44030e['gotoif'][_0x56ec6c('0x784')]=_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x784')][_0x56ec6c('0x10a4')](_0x56ec6c('0x1609'),''));if(_0x44030e['gotoif'][_0x56ec6c('0x167b')]&&_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x167b')]===_0x56ec6c('0x1d56')){}else switch((_0x44030e[_0x56ec6c('0x1e01')]['app']||_0x44030e['gotoif'][_0x56ec6c('0x167b')])['toLowerCase']()){case'set':_0x44030e['gotoif'][_0x56ec6c('0xd6b')]=_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x1a8d')]+'='+_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x49')];break;case'custom':break;default:_0x4796ca[0x0]=_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0xf2b')],_0x4796ca[0x1]=_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x86a')],_0x4796ca[0x2]=_0x44030e[_0x56ec6c('0x1e01')][_0x56ec6c('0x1474')],_0x44030e['gotoif']['appdata']=_0x4796ca[_0x56ec6c('0x185f')](',');}_0x1bd468(_0x44030e[_0x56ec6c('0x1e01')]);}function _0x1bd468(_0xcc4334){const _0x33787d=_0x8ff446;_0x292d7b[_0x33787d('0x19d')](_0xcc4334);}}const _0x5af785=_0x5b893b;_0x3910fc[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),_0x34e79e('0x2594'),'api','Auth','crudPermissions'];function _0x3910fc(_0x4582f0,_0xa65007,_0x118c66,_0x14972d,_0x36e7e5,_0x4d24be,_0x8b5eda,_0x43880f){const _0x311216=_0x34e79e,_0x4403af=this;_0x4403af['currentUser']=_0x8b5eda[_0x311216('0x24cc')](),_0x4403af['errors']=[],_0x4403af['title']='MAIL.EDIT_'+(_0x14972d[_0x311216('0x167b')]||_0x14972d['app'])[_0x311216('0x25e6')](),_0x4403af[_0x311216('0x1598')]=angular[_0x311216('0x2669')](_0x14972d),_0x4403af['crudPermissions']=_0x43880f,_0x4403af[_0x311216('0x1193')]={};if(_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')])switch(_0x4403af['gotop'][_0x311216('0x167b')]?_0x4403af[_0x311216('0x1598')][_0x311216('0x167b')][_0x311216('0xc2e')]():_0x4403af['gotop']['app']['toLowerCase']()){case _0x311216('0x1d56'):break;case _0x311216('0x5e1'):{const _0x211d92=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')]['split'](',');_0x4403af['gotop'][_0x311216('0x234b')]=_0x211d92[0x0],_0x4403af[_0x311216('0x1598')][_0x311216('0x175b')]=_0x211d92[0x1],_0x4403af[_0x311216('0x1598')][_0x311216('0xf50')]=_0x211d92[_0x311216('0x845')](0x2,_0x211d92['length'])['join'](',');}break;case _0x311216('0x137a'):{const _0x2baa4b=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')]['split'](',');_0x4403af['gotop'][_0x311216('0x27f2')]=_0x2baa4b[0x0],_0x4403af[_0x311216('0x1598')][_0x311216('0x1b58')]=_0x2baa4b[0x1],_0x4403af[_0x311216('0x1598')][_0x311216('0xb70')]=_0x2baa4b[0x2],_0x4403af[_0x311216('0x1598')][_0x311216('0x4eb')]=_0x2baa4b[0x3],_0x4403af[_0x311216('0x1598')]['welcomemessage']=_0x2baa4b[_0x311216('0x845')](0x4,_0x2baa4b[_0x311216('0x2566')])['join'](',');}break;case _0x311216('0x808'):{const _0x5d881c=_0x4403af[_0x311216('0x1598')]['appdata'][_0x311216('0x1497')](',');_0x4403af['gotop'][_0x311216('0x5fd')]=isNaN(_0x5d881c[0x0])?_0x5d881c[0x0]:parseInt(_0x5d881c[0x0],0xa),_0x4403af['gotop']['text']=_0x5d881c['slice'](0x1,_0x5d881c[_0x311216('0x2566')])[_0x311216('0x185f')](',');}break;case'message':_0x4403af[_0x311216('0x1598')]['text']=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')];break;case _0x311216('0x3a6'):_0x4403af['gotop'][_0x311216('0x1a8d')]=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')][_0x311216('0x1497')]('=')[0x0],_0x4403af['gotop'][_0x311216('0x49')]=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')]['split']('=')[0x1];break;case'agi':_0x4403af[_0x311216('0x1598')][_0x311216('0x1bf6')]=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')];break;default:{const _0x2dc00e=_0x4403af[_0x311216('0x1598')][_0x311216('0xd6b')][_0x311216('0x1497')](',');_0x4403af[_0x311216('0x1598')][_0x311216('0x155b')]=_0x283545()[_0x311216('0x213d')](_0x2dc00e[0x0])?_0x2dc00e[0x0]:isNaN(_0x2dc00e[0x0])?_0x2dc00e[0x0]:parseInt(_0x2dc00e[0x0],0xa);}break;}else{}_0x4403af[_0x311216('0x1598')][_0x311216('0x1d7')]&&_0x4403af['gotop'][_0x311216('0x1d7')][_0x311216('0xc2e')]()===_0x311216('0x1')&&_0x4403af[_0x311216('0x1598')][_0x311216('0x167b')][_0x311216('0xc2e')]()===_0x311216('0x229c')&&(_0x4403af[_0x311216('0x1598')][_0x311216('0x1f71')]=_0x4403af[_0x311216('0x1598')][_0x311216('0x1224')]?_0x4403af[_0x311216('0x1598')][_0x311216('0x1224')][_0x311216('0x1497')]('$')[0x0]:undefined,_0x4403af['gotop'][_0x311216('0x2081')]=_0x4403af[_0x311216('0x1598')]['callerID']?'CALLERID(all)='+_0x4403af[_0x311216('0x1598')][_0x311216('0x8de')]:undefined);_0x4403af[_0x311216('0x136b')]=_0x20293d,_0x4403af[_0x311216('0xca7')]=_0x1cd620;function _0x20293d(){const _0x2bd286=_0x311216;_0x4403af[_0x2bd286('0x25be')]=[];const _0x3b0d95=[];_0x4403af['gotop'][_0x2bd286('0x1d7')]&&_0x4403af['gotop'][_0x2bd286('0x1d7')][_0x2bd286('0xc2e')]()===_0x2bd286('0x1')&&_0x4403af['gotop']['appType']===_0x2bd286('0x25fb')&&(_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x1224')]=_0x36e7e5[_0x2bd286('0x277c')]?(_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x1f71')]||'')+_0x2bd286('0x124d')+_0x36e7e5[_0x2bd286('0x277c')]+'}':(_0x4403af['gotop'][_0x2bd286('0x1f71')]||'')+_0x2bd286('0x1275'),_0x36e7e5['recordingFormat']!==_0x2bd286('0x1dc')?_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x784')][_0x2bd286('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4403af['gotop'][_0x2bd286('0x784')]+='U(xcally-mixmonitor-context)'):_0x4403af[_0x2bd286('0x1598')]['options']=_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x784')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x167b')]&&_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x167b')]==='custom'){}else switch((_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x8a5')]||_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x167b')])[_0x2bd286('0xc2e')]()){case _0x2bd286('0x3a6'):_0x4403af['gotop'][_0x2bd286('0xd6b')]=_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x1a8d')]+'='+_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x49')];break;case _0x2bd286('0x1d56'):break;default:_0x3b0d95[0x0]=_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0x155b')],_0x4403af[_0x2bd286('0x1598')][_0x2bd286('0xd6b')]=_0x3b0d95[_0x2bd286('0x185f')](',');}_0x1cd620(_0x4403af[_0x2bd286('0x1598')]);}function _0x1cd620(_0x7a92c8){const _0x3b5759=_0x311216;_0x4582f0[_0x3b5759('0x19d')](_0x7a92c8);}}const _0xa8377d=_0x3910fc;_0x44d5aa[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x123b'),'$mdToast',_0x34e79e('0x13'),'interval','intervals','toasty','api',_0x34e79e('0x1b04'),'crudPermissions'];function _0x44d5aa(_0x408c90,_0x5333dc,_0x256325,_0x420b27,_0x1c4833,_0x2dc7dc,_0x385b5b,_0x5edd19,_0x47da4f,_0x1f574b){const _0x113b7e=_0x34e79e,_0x5a2033=this;_0x5a2033[_0x113b7e('0x9cb')]=_0x47da4f['getCurrentUser'](),_0x5a2033[_0x113b7e('0x25be')]=[],_0x5a2033['title']=_0x113b7e('0x2f9'),_0x5a2033['interval']=angular['copy'](_0x1c4833),_0x5a2033[_0x113b7e('0xec5')]=_0x2dc7dc,_0x5a2033[_0x113b7e('0x1f7c')]=![],_0x5a2033['types']=[_0x113b7e('0xc8f'),'custom',_0x113b7e('0x4b2')],_0x5a2033[_0x113b7e('0xe28')]=_0x1f574b,_0x5a2033[_0x113b7e('0x1eb8')]=_0x420b27[_0x113b7e('0xec1')](),_0x5a2033[_0x113b7e('0x323')]=_0x420b27[_0x113b7e('0x1383')](),_0x5a2033['monthName']=_0x420b27[_0x113b7e('0xc35')](),_0x5a2033[_0x113b7e('0x1d59')]=_0x420b27[_0x113b7e('0x1b79')]();if(!_0x5a2033[_0x113b7e('0x2630')])_0x5a2033[_0x113b7e('0x2630')]={'interval':_0x113b7e('0x2191')},_0x5a2033[_0x113b7e('0x1d7')]=_0x113b7e('0xc8f'),_0x5a2033['title']='TOOLS.NEW_INTERVAL',_0x5a2033[_0x113b7e('0x1f7c')]=!![];else{if(_0x5a2033[_0x113b7e('0x2630')]['interval']!==_0x113b7e('0x2191')){_0x5a2033[_0x113b7e('0x1d7')]='custom';const _0x178f13=_0x5a2033[_0x113b7e('0x2630')][_0x113b7e('0x2630')]['split'](','),_0xea58ad=_0x178f13[0x0],_0x320ec1=_0x178f13[0x1],_0x508352=_0x178f13[0x2],_0x593d4b=_0x178f13[0x3];if(_0xea58ad!=='*'){const _0x3dd8b1=_0xea58ad[_0x113b7e('0x1497')]('-')[0x0],_0xa2a1c2=_0xea58ad[_0x113b7e('0x1497')]('-')[0x1];let _0x27d0ef;_0x27d0ef=new Date(),_0x27d0ef[_0x113b7e('0x26f3')](Number(_0x3dd8b1[_0x113b7e('0x1497')](':')[0x0])),_0x27d0ef['setMinutes'](Number(_0x3dd8b1[_0x113b7e('0x1497')](':')[0x1])),_0x5a2033[_0x113b7e('0x9c0')]=_0x27d0ef,_0x27d0ef=new Date(),_0x27d0ef[_0x113b7e('0x26f3')](Number(_0xa2a1c2['split'](':')[0x0])),_0x27d0ef[_0x113b7e('0x18d')](Number(_0xa2a1c2[_0x113b7e('0x1497')](':')[0x1])),_0x5a2033[_0x113b7e('0x4a7')]=_0x27d0ef;}_0x320ec1!=='*'&&(_0x5a2033[_0x113b7e('0x240c')]=_0x320ec1[_0x113b7e('0x1497')]('-')[0x0],_0x5a2033[_0x113b7e('0x6c2')]=_0x320ec1[_0x113b7e('0x1497')]('-')[0x1]),_0x508352!=='*'&&(_0x5a2033[_0x113b7e('0x1d91')]=_0x508352[_0x113b7e('0x1497')]('-')[0x0],_0x5a2033['monthDayTo']=_0x508352[_0x113b7e('0x1497')]('-')[0x1]),_0x593d4b!=='*'&&(_0x5a2033['monthFrom']=_0x593d4b[_0x113b7e('0x1497')]('-')[0x0],_0x5a2033[_0x113b7e('0x3dc')]=_0x593d4b['split']('-')[0x1]);}else _0x5a2033['type']='always';}_0x408c90[_0x113b7e('0x4b9')]['id']&&!_0x5a2033['interval']['application']&&(_0x5a2033[_0x113b7e('0x2630')][_0x113b7e('0x20d0')]=_0x408c90[_0x113b7e('0x4b9')]['id']);_0x5a2033[_0x113b7e('0x2630')][_0x113b7e('0x20d0')]&&_0x5a2033['interval']['application']&&(_0x5a2033[_0x113b7e('0x1d7')]=_0x113b7e('0x4b2'));_0x5a2033[_0x113b7e('0x267f')]=_0x1bc6c9,_0x5a2033['saveInterval']=_0x9a53e4,_0x5a2033[_0x113b7e('0xca7')]=_0x2ab2a7;_0x5a2033[_0x113b7e('0x2630')][_0x113b7e('0x193')]&&(_0x47da4f['hasRole'](_0x113b7e('0xe23'))?_0x5edd19[_0x113b7e('0x2630')]['get']({'fields':_0x113b7e('0x27dc'),'IntervalId':_0x113b7e('0x954'),'nolimit':!![]})['$promise'][_0x113b7e('0x2788')](function(_0x1f1d9e){const _0x27908c=_0x113b7e;_0x5a2033[_0x27908c('0xec5')]=_0x1f1d9e['rows']||[];})['catch'](function(_0x5de78b){const _0x73f03e=_0x113b7e;_0x385b5b['error']({'title':_0x5de78b[_0x73f03e('0x1b51')]?_0x73f03e('0x15d1')+_0x5de78b[_0x73f03e('0x1b51')]+_0x73f03e('0x1b0b')+_0x5de78b[_0x73f03e('0x22ce')]:_0x73f03e('0x2151'),'msg':_0x5de78b[_0x73f03e('0x11fc')]?JSON[_0x73f03e('0x1be0')](_0x5de78b[_0x73f03e('0x11fc')]):_0x5de78b[_0x73f03e('0x17df')]()});}):_0x5edd19[_0x113b7e('0x2630')][_0x113b7e('0x1335')]({'fields':_0x113b7e('0x27dc'),'IntervalId':'null','nolimit':!![]})['$promise'][_0x113b7e('0x2788')](function(_0x2f7efa){const _0x5d2fad=_0x113b7e;_0x5a2033[_0x5d2fad('0xec5')]=_0x2f7efa[_0x5d2fad('0x25df')]||[];})[_0x113b7e('0x2788')](function(){const _0x60fd0f=_0x113b7e;return _0x5edd19[_0x60fd0f('0xec9')][_0x60fd0f('0x1335')]({'userProfileId':_0x5a2033[_0x60fd0f('0x9cb')][_0x60fd0f('0x237f')],'sectionId':0x3ec})[_0x60fd0f('0x1714')];})[_0x113b7e('0x2788')](function(_0x29b6db){const _0x51bbe9=_0x113b7e,_0x3bdea7=_0x29b6db&&_0x29b6db['rows']?_0x29b6db[_0x51bbe9('0x25df')][0x0]:null;if(!_0x3bdea7)_0x5a2033[_0x51bbe9('0xec5')]=[];else{if(!_0x3bdea7[_0x51bbe9('0x1c0a')])return _0x5edd19[_0x51bbe9('0x1050')][_0x51bbe9('0x1335')]({'sectionId':_0x3bdea7['id']})[_0x51bbe9('0x1714')][_0x51bbe9('0x2788')](function(_0x1e0c00){const _0x17787f=_0x51bbe9,_0x29d2d6=_0x1e0c00&&_0x1e0c00[_0x17787f('0x25df')]?_0x1e0c00[_0x17787f('0x25df')]:[],_0x510f9e=[];let _0x12d8f5=null;_0x5a2033[_0x17787f('0x2630')]&&(_0x12d8f5=_0x283545()[_0x17787f('0x20e8')](_0x5a2033['intervals'],{'name':_0x5a2033[_0x17787f('0x2630')][_0x17787f('0x20d0')]})),_0x12d8f5&&!_0x283545()[_0x17787f('0xc5d')](_0x29d2d6,[_0x17787f('0x2707'),_0x12d8f5['id']])&&_0x5a2033[_0x17787f('0xec5')][_0x17787f('0x1534')](function(_0x349213){const _0x44a561=_0x17787f;_0x349213['id']===_0x12d8f5['id']&&(_0x349213[_0x44a561('0x3bf')]=![],_0x510f9e['push'](_0x349213));}),_0x5a2033[_0x17787f('0xec5')]=_0x510f9e;});}})['catch'](function(_0x2d4eb8){const _0x1db79a=_0x113b7e;_0x385b5b[_0x1db79a('0x5e8')]({'title':_0x2d4eb8['status']?_0x1db79a('0x15d1')+_0x2d4eb8[_0x1db79a('0x1b51')]+'\x20-\x20'+_0x2d4eb8[_0x1db79a('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x2d4eb8[_0x1db79a('0x11fc')]?JSON['stringify'](_0x2d4eb8[_0x1db79a('0x11fc')]):_0x2d4eb8[_0x1db79a('0x17df')]()});}));function _0x44cb1e(){const _0x360417=_0x113b7e;switch(_0x5a2033[_0x360417('0x1d7')]){case'always':case _0x360417('0x4b2'):return _0x360417('0x2191');case _0x360417('0x1d56'):{const _0x16ff68=[];if(_0x5a2033[_0x360417('0x9c0')]!=='*'&&_0x5a2033['timeRangeFrom']&&_0x5a2033[_0x360417('0x4a7')]){const _0x4acf1d=(_0x5a2033[_0x360417('0x9c0')][_0x360417('0x130a')]()<0xa?'0':'')+_0x5a2033[_0x360417('0x9c0')][_0x360417('0x130a')]()+':'+((_0x5a2033[_0x360417('0x9c0')][_0x360417('0x2649')]()<0xa?'0':'')+_0x5a2033['timeRangeFrom'][_0x360417('0x2649')]()),_0x15fe0d=(_0x5a2033[_0x360417('0x4a7')][_0x360417('0x130a')]()<0xa?'0':'')+_0x5a2033[_0x360417('0x4a7')]['getHours']()+':'+((_0x5a2033[_0x360417('0x4a7')][_0x360417('0x2649')]()<0xa?'0':'')+_0x5a2033['timeRangeTo'][_0x360417('0x2649')]());_0x16ff68['push'](_0x4acf1d+'-'+_0x15fe0d);}else _0x16ff68[_0x360417('0x13e3')]('*');return _0x5a2033[_0x360417('0x240c')]?_0x5a2033[_0x360417('0x6c2')]?_0x16ff68[_0x360417('0x13e3')](_0x5a2033['dayOfWeekFrom']+'-'+_0x5a2033[_0x360417('0x6c2')]):_0x16ff68['push'](_0x5a2033[_0x360417('0x240c')]):_0x16ff68[_0x360417('0x13e3')]('*'),_0x5a2033[_0x360417('0x1d91')]?_0x5a2033[_0x360417('0x883')]?_0x16ff68[_0x360417('0x13e3')](_0x5a2033['monthDayFrom']+'-'+_0x5a2033['monthDayTo']):_0x16ff68[_0x360417('0x13e3')](_0x5a2033['monthDayFrom']):_0x16ff68[_0x360417('0x13e3')]('*'),_0x5a2033[_0x360417('0x1317')]?_0x5a2033[_0x360417('0x3dc')]?_0x16ff68[_0x360417('0x13e3')](_0x5a2033['monthFrom']+'-'+_0x5a2033[_0x360417('0x3dc')]):_0x16ff68[_0x360417('0x13e3')](_0x5a2033[_0x360417('0x1317')]):_0x16ff68[_0x360417('0x13e3')]('*'),_0x16ff68['join']();}}}function _0x1bc6c9(){const _0x29604d=_0x113b7e;_0x5a2033[_0x29604d('0x25be')]=[],_0x5a2033['interval']['interval']=_0x44cb1e(),_0x5edd19[_0x29604d('0x2630')]['save'](_0x5a2033[_0x29604d('0x2630')])[_0x29604d('0x1714')]['then'](function(_0x54fae2){const _0x58e263=_0x29604d;_0x5a2033['intervals'][_0x58e263('0x13e3')](_0x54fae2),_0x385b5b['success']({'title':_0x58e263('0x1146'),'msg':_0x5a2033[_0x58e263('0x2630')][_0x58e263('0x1a8d')]?_0x5a2033[_0x58e263('0x2630')][_0x58e263('0x1a8d')]+_0x58e263('0x1e4a'):''}),_0x2ab2a7();})[_0x29604d('0x1cb5')](function(_0x4bf514){const _0x3ce37c=_0x29604d;console['error'](_0x4bf514),_0x5a2033['errors']=_0x4bf514[_0x3ce37c('0x11fc')]['errors']||[{'message':_0x4bf514[_0x3ce37c('0x17df')](),'type':_0x3ce37c('0x94a')}];});}function _0x9a53e4(){const _0xfc6149=_0x113b7e;_0x5a2033[_0xfc6149('0x25be')]=[],_0x5a2033[_0xfc6149('0x2630')]['interval']=_0x44cb1e(),_0x5a2033['interval'][_0xfc6149('0x193')]?(_0x5a2033['type']!==_0xfc6149('0x4b2')&&(_0x5a2033['interval']['IntervalId']=null),_0x2ab2a7(_0x5a2033['interval'])):_0x5edd19[_0xfc6149('0x2630')][_0xfc6149('0x2740')]({'id':_0x5a2033[_0xfc6149('0x2630')]['id']},_0x5a2033['interval'])['$promise']['then'](function(_0x18eac7){const _0x357ff1=_0xfc6149,_0x3e22d9=_0x283545()[_0x357ff1('0x20e8')](_0x5a2033[_0x357ff1('0xec5')],{'id':_0x18eac7['id']});_0x3e22d9&&_0x283545()[_0x357ff1('0x2503')](_0x3e22d9,_0x18eac7),_0x385b5b[_0x357ff1('0x173b')]({'title':_0x357ff1('0xd34'),'msg':_0x357ff1('0x14f1')}),_0x2ab2a7();})[_0xfc6149('0x1cb5')](function(_0x5b5b18){const _0x26863e=_0xfc6149;console[_0x26863e('0x5e8')](_0x5b5b18),_0x5a2033[_0x26863e('0x25be')]=_0x5b5b18[_0x26863e('0x11fc')][_0x26863e('0x25be')]||[{'message':_0x5b5b18[_0x26863e('0x17df')](),'type':_0x26863e('0xc2d')}];});}function _0x2ab2a7(_0x478b43){const _0x261819=_0x113b7e;_0x5333dc[_0x261819('0x19d')](_0x478b43);}}const _0x2234e6=_0x44d5aa;_0x5e14a6[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),_0x34e79e('0x2594'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x5e14a6(_0x1da508,_0x1767bb,_0x17f142,_0x51ba38,_0x213710,_0x114c28,_0x41a250,_0x465723){const _0x510dd0=_0x34e79e,_0x14441c=this;_0x14441c[_0x510dd0('0x9cb')]=_0x41a250[_0x510dd0('0x24cc')](),_0x14441c[_0x510dd0('0x25be')]=[],_0x14441c['title']=_0x510dd0('0x23bd')+(_0x51ba38[_0x510dd0('0x167b')]||_0x51ba38['app'])[_0x510dd0('0x25e6')](),_0x14441c[_0x510dd0('0x18dd')]=angular[_0x510dd0('0x2669')](_0x51ba38),_0x14441c[_0x510dd0('0xe28')]=_0x465723,_0x14441c['hasModulePermissions']={};if(_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')])switch(_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x167b')]?_0x14441c['noop'][_0x510dd0('0x167b')][_0x510dd0('0xc2e')]():_0x14441c['noop'][_0x510dd0('0x8a5')][_0x510dd0('0xc2e')]()){case'custom':break;case _0x510dd0('0x5e1'):{const _0x18b937=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')][_0x510dd0('0x1497')](',');_0x14441c['noop']['key']=_0x18b937[0x0],_0x14441c['noop'][_0x510dd0('0x175b')]=_0x18b937[0x1],_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xf50')]=_0x18b937[_0x510dd0('0x845')](0x2,_0x18b937[_0x510dd0('0x2566')])[_0x510dd0('0x185f')](',');}break;case _0x510dd0('0x137a'):{const _0x1a8119=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')][_0x510dd0('0x1497')](',');_0x14441c['noop'][_0x510dd0('0x27f2')]=_0x1a8119[0x0],_0x14441c['noop'][_0x510dd0('0x1b58')]=_0x1a8119[0x1],_0x14441c[_0x510dd0('0x18dd')]['lexregion']=_0x1a8119[0x2],_0x14441c['noop'][_0x510dd0('0x4eb')]=_0x1a8119[0x3],_0x14441c['noop']['welcomemessage']=_0x1a8119[_0x510dd0('0x845')](0x4,_0x1a8119['length'])[_0x510dd0('0x185f')](',');}break;case _0x510dd0('0x808'):{const _0x1c1681=_0x14441c[_0x510dd0('0x18dd')]['appdata'][_0x510dd0('0x1497')](',');_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x5fd')]=isNaN(_0x1c1681[0x0])?_0x1c1681[0x0]:parseInt(_0x1c1681[0x0],0xa),_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x16db')]=_0x1c1681[_0x510dd0('0x845')](0x1,_0x1c1681[_0x510dd0('0x2566')])[_0x510dd0('0x185f')](',');}break;case _0x510dd0('0x15e2'):_0x14441c[_0x510dd0('0x18dd')]['text']=_0x14441c['noop'][_0x510dd0('0xd6b')];break;case _0x510dd0('0x3a6'):_0x14441c['noop'][_0x510dd0('0x1a8d')]=_0x14441c[_0x510dd0('0x18dd')]['appdata'][_0x510dd0('0x1497')]('=')[0x0],_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x49')]=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')]['split']('=')[0x1];break;case _0x510dd0('0x2631'):_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x1bf6')]=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')];break;default:{const _0x2ad846=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0xd6b')][_0x510dd0('0x1497')](',');_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x49')]=_0x283545()['isEmpty'](_0x2ad846[0x0])?_0x2ad846[0x0]:isNaN(_0x2ad846[0x0])?_0x2ad846[0x0]:parseInt(_0x2ad846[0x0],0xa);}break;}else{}_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x1d7')]&&_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x1d7')][_0x510dd0('0xc2e')]()===_0x510dd0('0x1')&&_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x14441c['noop'][_0x510dd0('0x1f71')]=_0x14441c[_0x510dd0('0x18dd')][_0x510dd0('0x1224')]?_0x14441c[_0x510dd0('0x18dd')]['phone']['split']('$')[0x0]:undefined,_0x14441c['noop'][_0x510dd0('0x2081')]=_0x14441c[_0x510dd0('0x18dd')]['callerID']?_0x510dd0('0x1834')+_0x14441c['noop'][_0x510dd0('0x8de')]:undefined);_0x14441c[_0x510dd0('0x136b')]=_0x31b037,_0x14441c[_0x510dd0('0xca7')]=_0x27cf7b;function _0x31b037(){const _0x565a10=_0x510dd0;_0x14441c[_0x565a10('0x25be')]=[];const _0x1dcdef=[];_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x1d7')]&&_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x1d7')][_0x565a10('0xc2e')]()===_0x565a10('0x1')&&_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x167b')]===_0x565a10('0x25fb')&&(_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x1224')]=_0x213710['cutdigits']?(_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x1f71')]||'')+_0x565a10('0x124d')+_0x213710[_0x565a10('0x277c')]+'}':(_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x1f71')]||'')+_0x565a10('0x1275'),_0x213710[_0x565a10('0x801')]!=='none'?_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x784')][_0x565a10('0x821')](_0x565a10('0x1609'))<0x0&&(_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x784')]+='U(xcally-mixmonitor-context)'):_0x14441c[_0x565a10('0x18dd')]['options']=_0x14441c[_0x565a10('0x18dd')]['options'][_0x565a10('0x10a4')](_0x565a10('0x1609'),''));if(_0x14441c[_0x565a10('0x18dd')]['appType']&&_0x14441c[_0x565a10('0x18dd')]['appType']===_0x565a10('0x1d56')){}else switch((_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x8a5')]||_0x14441c[_0x565a10('0x18dd')][_0x565a10('0x167b')])[_0x565a10('0xc2e')]()){case _0x565a10('0x3a6'):_0x14441c['noop']['appdata']=_0x14441c['noop']['name']+'='+_0x14441c['noop']['value'];break;case'custom':break;default:_0x1dcdef[0x0]=_0x14441c['noop'][_0x565a10('0x49')],_0x14441c[_0x565a10('0x18dd')][_0x565a10('0xd6b')]=_0x1dcdef[_0x565a10('0x185f')](',');}_0x27cf7b(_0x14441c[_0x565a10('0x18dd')]);}function _0x27cf7b(_0x3a5a60){const _0xc44ef8=_0x510dd0;_0x1da508[_0xc44ef8('0x19d')](_0x3a5a60);}}const _0x1276a1=_0x5e14a6;_0x363651[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'mailAccountApp','mailAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x363651(_0x24e916,_0x564d2c,_0x2550f1,_0x5e7234,_0x55c58b,_0x3da55a,_0x35bf4b,_0x78c242){const _0xbdfaba=_0x34e79e,_0x6a814=this;_0x6a814['currentUser']=_0x35bf4b[_0xbdfaba('0x24cc')](),_0x6a814[_0xbdfaba('0x25be')]=[],_0x6a814['title']=_0xbdfaba('0x23bd')+(_0x5e7234[_0xbdfaba('0x167b')]||_0x5e7234[_0xbdfaba('0x8a5')])[_0xbdfaba('0x25e6')](),_0x6a814[_0xbdfaba('0x1ab4')]=angular['copy'](_0x5e7234),_0x6a814[_0xbdfaba('0xe28')]=_0x78c242,_0x6a814['hasModulePermissions']={};if(_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xd6b')])switch(_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x167b')]?_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x167b')][_0xbdfaba('0xc2e')]():_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x8a5')][_0xbdfaba('0xc2e')]()){case _0xbdfaba('0x1d56'):break;case'dialogflow':{const _0x52611f=_0x6a814[_0xbdfaba('0x1ab4')]['appdata'][_0xbdfaba('0x1497')](',');_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x234b')]=_0x52611f[0x0],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x175b')]=_0x52611f[0x1],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xf50')]=_0x52611f[_0xbdfaba('0x845')](0x2,_0x52611f[_0xbdfaba('0x2566')])[_0xbdfaba('0x185f')](',');}break;case'amazonlex':{const _0x250a6d=_0x6a814['queue'][_0xbdfaba('0xd6b')][_0xbdfaba('0x1497')](',');_0x6a814['queue'][_0xbdfaba('0x27f2')]=_0x250a6d[0x0],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1b58')]=_0x250a6d[0x1],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xb70')]=_0x250a6d[0x2],_0x6a814['queue'][_0xbdfaba('0x4eb')]=_0x250a6d[0x3],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xf50')]=_0x250a6d[_0xbdfaba('0x845')](0x4,_0x250a6d['length'])[_0xbdfaba('0x185f')](',');}break;case'autoreply':{const _0x9d518=_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xd6b')][_0xbdfaba('0x1497')](',');_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x5fd')]=isNaN(_0x9d518[0x0])?_0x9d518[0x0]:parseInt(_0x9d518[0x0],0xa),_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x16db')]=_0x9d518[_0xbdfaba('0x845')](0x1,_0x9d518[_0xbdfaba('0x2566')])[_0xbdfaba('0x185f')](',');}break;case _0xbdfaba('0x15e2'):_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x16db')]=_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xd6b')];break;case'set':_0x6a814['queue'][_0xbdfaba('0x1a8d')]=_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xd6b')][_0xbdfaba('0x1497')]('=')[0x0],_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x49')]=_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0xd6b')][_0xbdfaba('0x1497')]('=')[0x1];break;case _0xbdfaba('0x2631'):_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1bf6')]=_0x6a814[_0xbdfaba('0x1ab4')]['appdata'];break;default:{const _0x1d5ad1=_0x6a814['queue']['appdata'][_0xbdfaba('0x1497')](',');_0x6a814['queue'][_0xbdfaba('0x1ab4')]=_0x283545()['isEmpty'](_0x1d5ad1[0x0])?_0x1d5ad1[0x0]:isNaN(_0x1d5ad1[0x0])?_0x1d5ad1[0x0]:parseInt(_0x1d5ad1[0x0],0xa),_0x6a814[_0xbdfaba('0x1ab4')]['timeout']=_0x283545()['isEmpty'](_0x1d5ad1[0x1])?_0x1d5ad1[0x1]:isNaN(_0x1d5ad1[0x1])?_0x1d5ad1[0x1]:parseInt(_0x1d5ad1[0x1],0xa);}break;}else _0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1ab4')]=0x12c,_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x24e4')]=0x12c;_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1d7')]&&_0x6a814['queue'][_0xbdfaba('0x1d7')][_0xbdfaba('0xc2e')]()==='outbound'&&_0x6a814['queue'][_0xbdfaba('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1f71')]=_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1224')]?_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x1224')]['split']('$')[0x0]:undefined,_0x6a814[_0xbdfaba('0x1ab4')]['callerId']=_0x6a814['queue'][_0xbdfaba('0x8de')]?_0xbdfaba('0x1834')+_0x6a814[_0xbdfaba('0x1ab4')][_0xbdfaba('0x8de')]:undefined);_0x6a814[_0xbdfaba('0x136b')]=_0x2182fc,_0x6a814[_0xbdfaba('0xca7')]=_0x1924da,_0x35bf4b[_0xbdfaba('0x1516')](_0xbdfaba('0xe23'))?_0x3da55a[_0xbdfaba('0x139b')][_0xbdfaba('0x1335')]({'fields':_0xbdfaba('0xafa'),'sort':_0xbdfaba('0x1a8d'),'nolimit':_0xbdfaba('0x1001')})['$promise'][_0xbdfaba('0x2788')](function(_0x9dc923){const _0x269f42=_0xbdfaba;_0x6a814[_0x269f42('0x283e')]=_0x9dc923['rows']||[];})[_0xbdfaba('0x1cb5')](function(_0x402574){const _0x4652fe=_0xbdfaba;_0x2550f1[_0x4652fe('0x5e8')]({'title':_0x402574['status']?_0x4652fe('0x15d1')+_0x402574['status']+_0x4652fe('0x1b0b')+_0x402574[_0x4652fe('0x22ce')]:_0x4652fe('0x2763'),'msg':_0x402574[_0x4652fe('0x11fc')]?JSON[_0x4652fe('0x1be0')](_0x402574[_0x4652fe('0x11fc')]):_0x402574[_0x4652fe('0x17df')]()});}):_0x3da55a[_0xbdfaba('0x139b')][_0xbdfaba('0x1335')]({'fields':_0xbdfaba('0xafa'),'sort':_0xbdfaba('0x1a8d'),'nolimit':_0xbdfaba('0x1001')})['$promise'][_0xbdfaba('0x2788')](function(_0x4b96e4){const _0x282984=_0xbdfaba;_0x6a814[_0x282984('0x283e')]=_0x4b96e4[_0x282984('0x25df')]||[];})[_0xbdfaba('0x2788')](function(){const _0x6a15c4=_0xbdfaba;return _0x3da55a[_0x6a15c4('0xec9')][_0x6a15c4('0x1335')]({'userProfileId':_0x6a814[_0x6a15c4('0x9cb')][_0x6a15c4('0x237f')],'sectionId':0x259})[_0x6a15c4('0x1714')];})[_0xbdfaba('0x2788')](function(_0x371cc6){const _0x5c377e=_0xbdfaba,_0x7a384c=_0x371cc6&&_0x371cc6['rows']?_0x371cc6[_0x5c377e('0x25df')][0x0]:null;if(!_0x7a384c){const _0x50f92b=[];let _0x4ec7cc=null;_0x6a814['queue']&&(_0x4ec7cc=_0x283545()[_0x5c377e('0x20e8')](_0x6a814[_0x5c377e('0x283e')],{'name':_0x6a814[_0x5c377e('0x1ab4')]['queue']}));for(let _0x3d92ee=0x0;_0x3d92ee<_0x6a814['queues'][_0x5c377e('0x2566')];_0x3d92ee++){_0x4ec7cc&&_0x6a814['queues'][_0x3d92ee]['id']===_0x4ec7cc['id']&&(_0x6a814['queues'][_0x3d92ee]['canSelect']=![],_0x50f92b[_0x5c377e('0x13e3')](_0x6a814[_0x5c377e('0x283e')][_0x3d92ee]));}_0x6a814[_0x5c377e('0x283e')]=_0x50f92b;}else{if(!_0x7a384c['autoAssociation'])return _0x3da55a[_0x5c377e('0x1050')][_0x5c377e('0x1335')]({'sectionId':_0x7a384c['id']})[_0x5c377e('0x1714')][_0x5c377e('0x2788')](function(_0xc4b07f){const _0xc6e25c=_0x5c377e,_0x2b7e51=_0x283545()['map'](_0xc4b07f[_0xc6e25c('0x25df')],function(_0x42f563){const _0x469fc3=_0xc6e25c;return _0x283545()[_0x469fc3('0x20e8')](_0x6a814[_0x469fc3('0x283e')],{'id':_0x42f563[_0x469fc3('0x2707')]});});let _0x428155=null;_0x6a814[_0xc6e25c('0x1ab4')]&&(_0x428155=_0x283545()['find'](_0x6a814[_0xc6e25c('0x283e')],{'name':_0x6a814['queue']['queue']}));if(_0x428155&&!_0x283545()[_0xc6e25c('0xc5d')](_0x2b7e51,['id',_0x428155['id']])){const _0x44439b=_0x283545()[_0xc6e25c('0x20e8')](_0x6a814[_0xc6e25c('0x283e')],{'id':_0x428155['id']});_0x44439b['canSelect']=![],_0x2b7e51[_0xc6e25c('0x13e3')](_0x44439b);}_0x6a814[_0xc6e25c('0x283e')]=_0x2b7e51;});}})[_0xbdfaba('0x1cb5')](function(_0x4951a2){const _0x441435=_0xbdfaba;_0x2550f1[_0x441435('0x5e8')]({'title':_0x4951a2[_0x441435('0x1b51')]?'API:'+_0x4951a2[_0x441435('0x1b51')]+_0x441435('0x1b0b')+_0x4951a2[_0x441435('0x22ce')]:_0x441435('0xb14'),'msg':_0x4951a2['data']?JSON[_0x441435('0x1be0')](_0x4951a2[_0x441435('0x11fc')]):_0x4951a2[_0x441435('0x17df')]()});});function _0x2182fc(){const _0x1f8575=_0xbdfaba;_0x6a814[_0x1f8575('0x25be')]=[];const _0x344399=[];_0x6a814[_0x1f8575('0x1ab4')]['type']&&_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x1d7')][_0x1f8575('0xc2e')]()===_0x1f8575('0x1')&&_0x6a814['queue'][_0x1f8575('0x167b')]===_0x1f8575('0x25fb')&&(_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x1224')]=_0x55c58b[_0x1f8575('0x277c')]?(_0x6a814['queue'][_0x1f8575('0x1f71')]||'')+_0x1f8575('0x124d')+_0x55c58b[_0x1f8575('0x277c')]+'}':(_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x1f71')]||'')+_0x1f8575('0x1275'),_0x55c58b[_0x1f8575('0x801')]!==_0x1f8575('0x1dc')?_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x784')][_0x1f8575('0x821')](_0x1f8575('0x1609'))<0x0&&(_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x784')]+=_0x1f8575('0x1609')):_0x6a814['queue']['options']=_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x784')][_0x1f8575('0x10a4')](_0x1f8575('0x1609'),''));const _0x23a8b9=_0x283545()[_0x1f8575('0x20e8')](_0x6a814[_0x1f8575('0x283e')],{'name':_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x1ab4')]});_0x23a8b9&&(_0x6a814[_0x1f8575('0x1ab4')][_0x283545()['capitalize']('mail')+_0x1f8575('0xec4')]=_0x23a8b9['id']);if(_0x6a814['queue'][_0x1f8575('0x167b')]&&_0x6a814[_0x1f8575('0x1ab4')]['appType']===_0x1f8575('0x1d56')){}else switch((_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x8a5')]||_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x167b')])[_0x1f8575('0xc2e')]()){case _0x1f8575('0x3a6'):_0x6a814[_0x1f8575('0x1ab4')]['appdata']=_0x6a814['queue'][_0x1f8575('0x1a8d')]+'='+_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x49')];break;case _0x1f8575('0x1d56'):break;default:_0x344399[0x0]=_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x1ab4')],_0x344399[0x1]=_0x6a814[_0x1f8575('0x1ab4')][_0x1f8575('0x24e4')],_0x6a814['queue'][_0x1f8575('0xd6b')]=_0x344399[_0x1f8575('0x185f')](',');}_0x1924da(_0x6a814[_0x1f8575('0x1ab4')]);}function _0x1924da(_0x2338ff){const _0x524d36=_0xbdfaba;_0x24e916[_0x524d36('0x19d')](_0x2338ff);}}const _0xb6c1c1=_0x363651;_0xf822c5[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1ef5'),'mailAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xf822c5(_0x2a3536,_0x26cd2d,_0x5055b0,_0x58ea49,_0x14940e,_0x118731,_0x4f5333,_0x2d3932){const _0x289ebe=_0x34e79e,_0x53cfa5=this;_0x53cfa5[_0x289ebe('0x9cb')]=_0x4f5333[_0x289ebe('0x24cc')](),_0x53cfa5['errors']=[],_0x53cfa5[_0x289ebe('0x14e4')]=_0x289ebe('0x23bd')+(_0x58ea49[_0x289ebe('0x167b')]||_0x58ea49[_0x289ebe('0x8a5')])['toUpperCase'](),_0x53cfa5[_0x289ebe('0xe81')]=angular['copy'](_0x58ea49),_0x53cfa5['crudPermissions']=_0x2d3932,_0x53cfa5['hasModulePermissions']={};if(_0x53cfa5[_0x289ebe('0xe81')]['appdata'])switch(_0x53cfa5['system'][_0x289ebe('0x167b')]?_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x167b')][_0x289ebe('0xc2e')]():_0x53cfa5['system'][_0x289ebe('0x8a5')][_0x289ebe('0xc2e')]()){case _0x289ebe('0x1d56'):break;case _0x289ebe('0x5e1'):{const _0x1d3a3b=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xd6b')][_0x289ebe('0x1497')](',');_0x53cfa5['system']['key']=_0x1d3a3b[0x0],_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x175b')]=_0x1d3a3b[0x1],_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xf50')]=_0x1d3a3b[_0x289ebe('0x845')](0x2,_0x1d3a3b[_0x289ebe('0x2566')])[_0x289ebe('0x185f')](',');}break;case _0x289ebe('0x137a'):{const _0x24e7ba=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xd6b')][_0x289ebe('0x1497')](',');_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x27f2')]=_0x24e7ba[0x0],_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x1b58')]=_0x24e7ba[0x1],_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xb70')]=_0x24e7ba[0x2],_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x4eb')]=_0x24e7ba[0x3],_0x53cfa5[_0x289ebe('0xe81')]['welcomemessage']=_0x24e7ba[_0x289ebe('0x845')](0x4,_0x24e7ba['length'])[_0x289ebe('0x185f')](',');}break;case _0x289ebe('0x808'):{const _0x5636b9=_0x53cfa5[_0x289ebe('0xe81')]['appdata'][_0x289ebe('0x1497')](',');_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x5fd')]=isNaN(_0x5636b9[0x0])?_0x5636b9[0x0]:parseInt(_0x5636b9[0x0],0xa),_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x16db')]=_0x5636b9['slice'](0x1,_0x5636b9[_0x289ebe('0x2566')])['join'](',');}break;case _0x289ebe('0x15e2'):_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x16db')]=_0x53cfa5['system'][_0x289ebe('0xd6b')];break;case'set':_0x53cfa5['system'][_0x289ebe('0x1a8d')]=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xd6b')][_0x289ebe('0x1497')]('=')[0x0],_0x53cfa5['system'][_0x289ebe('0x49')]=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xd6b')][_0x289ebe('0x1497')]('=')[0x1];break;case'agi':_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x1bf6')]=_0x53cfa5[_0x289ebe('0xe81')]['appdata'];break;default:{const _0x3314c4=_0x53cfa5['system'][_0x289ebe('0xd6b')][_0x289ebe('0x1497')](',');_0x53cfa5[_0x289ebe('0xe81')]['command']=_0x283545()['isEmpty'](_0x3314c4[0x0])?_0x3314c4[0x0]:isNaN(_0x3314c4[0x0])?_0x3314c4[0x0]:parseInt(_0x3314c4[0x0],0xa),_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xa72')]=_0x283545()[_0x289ebe('0x213d')](_0x3314c4[0x1])?_0x3314c4[0x1]:isNaN(_0x3314c4[0x1])?_0x3314c4[0x1]:parseInt(_0x3314c4[0x1],0xa);}break;}else _0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0xa72')]='';_0x53cfa5[_0x289ebe('0xe81')]['type']&&_0x53cfa5['system']['type'][_0x289ebe('0xc2e')]()===_0x289ebe('0x1')&&_0x53cfa5[_0x289ebe('0xe81')]['appType'][_0x289ebe('0xc2e')]()===_0x289ebe('0x229c')&&(_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x1f71')]=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x1224')]?_0x53cfa5['system'][_0x289ebe('0x1224')]['split']('$')[0x0]:undefined,_0x53cfa5['system']['callerId']=_0x53cfa5[_0x289ebe('0xe81')][_0x289ebe('0x8de')]?'CALLERID(all)='+_0x53cfa5['system']['callerID']:undefined);_0x53cfa5[_0x289ebe('0x136b')]=_0x2e758c,_0x53cfa5[_0x289ebe('0xca7')]=_0x36f26e,_0x4f5333[_0x289ebe('0x1516')](_0x289ebe('0xe23'))?_0x118731[_0x289ebe('0xa72')][_0x289ebe('0x1335')]({'fields':_0x289ebe('0x1338'),'sort':_0x289ebe('0x1a8d'),'nolimit':'true'})[_0x289ebe('0x1714')][_0x289ebe('0x2788')](function(_0x7731ca){const _0x2e02bb=_0x289ebe;_0x53cfa5[_0x2e02bb('0xf76')]=_0x7731ca[_0x2e02bb('0x25df')]||[];})[_0x289ebe('0x1cb5')](function(_0x4f39a0){const _0x448434=_0x289ebe;_0x5055b0[_0x448434('0x5e8')]({'title':_0x4f39a0[_0x448434('0x1b51')]?'API:'+_0x4f39a0[_0x448434('0x1b51')]+_0x448434('0x1b0b')+_0x4f39a0[_0x448434('0x22ce')]:_0x448434('0xe86'),'msg':_0x4f39a0[_0x448434('0x11fc')]?JSON[_0x448434('0x1be0')](_0x4f39a0[_0x448434('0x11fc')]):_0x4f39a0[_0x448434('0x17df')]()});}):_0x118731[_0x289ebe('0xa72')][_0x289ebe('0x1335')]({'fields':'id,name','sort':_0x289ebe('0x1a8d'),'nolimit':_0x289ebe('0x1001')})[_0x289ebe('0x1714')][_0x289ebe('0x2788')](function(_0x3e584e){const _0xc61d3c=_0x289ebe;_0x53cfa5[_0xc61d3c('0xf76')]=_0x3e584e[_0xc61d3c('0x25df')]||[];})['then'](function(){const _0x429d62=_0x289ebe;return _0x118731[_0x429d62('0xec9')][_0x429d62('0x1335')]({'userProfileId':_0x53cfa5[_0x429d62('0x9cb')][_0x429d62('0x237f')],'sectionId':0x3f4})[_0x429d62('0x1714')];})[_0x289ebe('0x2788')](function(_0x38ea65){const _0x43c673=_0x289ebe,_0x5d46f4=_0x38ea65&&_0x38ea65[_0x43c673('0x25df')]?_0x38ea65['rows'][0x0]:null;if(!_0x5d46f4){const _0x38974f=[];let _0x4df414=null;_0x53cfa5[_0x43c673('0xe81')]&&(_0x4df414=_0x283545()[_0x43c673('0x20e8')](_0x53cfa5['variables'],{'name':_0x53cfa5['system']['variable']}));for(let _0x74eaee=0x0;_0x74eaee<_0x53cfa5[_0x43c673('0xf76')][_0x43c673('0x2566')];_0x74eaee++){_0x4df414&&_0x53cfa5[_0x43c673('0xf76')][_0x74eaee]['id']===_0x4df414['id']&&(_0x53cfa5[_0x43c673('0xf76')][_0x74eaee][_0x43c673('0x3bf')]=![],_0x38974f[_0x43c673('0x13e3')](_0x53cfa5['variables'][_0x74eaee]));}_0x53cfa5[_0x43c673('0xf76')]=_0x38974f;}else{if(!_0x5d46f4[_0x43c673('0x1c0a')])return _0x118731[_0x43c673('0x1050')][_0x43c673('0x1335')]({'sectionId':_0x5d46f4['id']})[_0x43c673('0x1714')]['then'](function(_0x1e90bf){const _0x124e17=_0x43c673,_0x49c51f=_0x283545()['map'](_0x1e90bf[_0x124e17('0x25df')],function(_0x26e276){const _0x3934fd=_0x124e17;return _0x283545()[_0x3934fd('0x20e8')](_0x53cfa5[_0x3934fd('0xf76')],{'id':_0x26e276['resourceId']});});let _0x3914ec=null;_0x53cfa5[_0x124e17('0xe81')]&&(_0x3914ec=_0x283545()['find'](_0x53cfa5[_0x124e17('0xf76')],{'name':_0x53cfa5['system'][_0x124e17('0xa72')]}));if(_0x3914ec&&!_0x283545()[_0x124e17('0xc5d')](_0x49c51f,['id',_0x3914ec['id']])){const _0xc6d408=_0x283545()[_0x124e17('0x20e8')](_0x53cfa5[_0x124e17('0xf76')],{'id':_0x3914ec['id']});_0xc6d408[_0x124e17('0x3bf')]=![],_0x49c51f['push'](_0xc6d408);}_0x53cfa5[_0x124e17('0xf76')]=_0x49c51f;});}})['catch'](function(_0x10b354){const _0x510839=_0x289ebe;_0x5055b0[_0x510839('0x5e8')]({'title':_0x10b354['status']?_0x510839('0x15d1')+_0x10b354['status']+'\x20-\x20'+_0x10b354[_0x510839('0x22ce')]:_0x510839('0x1592'),'msg':_0x10b354[_0x510839('0x11fc')]?JSON[_0x510839('0x1be0')](_0x10b354[_0x510839('0x11fc')]):_0x10b354[_0x510839('0x17df')]()});});function _0x2e758c(){const _0x10789e=_0x289ebe;_0x53cfa5[_0x10789e('0x25be')]=[];const _0x57bb8b=[];_0x53cfa5['system'][_0x10789e('0x1d7')]&&_0x53cfa5['system']['type'][_0x10789e('0xc2e')]()==='outbound'&&_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x167b')]===_0x10789e('0x25fb')&&(_0x53cfa5[_0x10789e('0xe81')]['phone']=_0x14940e['cutdigits']?(_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x1f71')]||'')+'${EXTEN:'+_0x14940e['cutdigits']+'}':(_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x1f71')]||'')+_0x10789e('0x1275'),_0x14940e['recordingFormat']!==_0x10789e('0x1dc')?_0x53cfa5['system'][_0x10789e('0x784')]['indexOf'](_0x10789e('0x1609'))<0x0&&(_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x784')]+=_0x10789e('0x1609')):_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x784')]=_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x784')][_0x10789e('0x10a4')](_0x10789e('0x1609'),''));if(_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x167b')]&&_0x53cfa5[_0x10789e('0xe81')]['appType']==='custom'){}else switch((_0x53cfa5[_0x10789e('0xe81')]['app']||_0x53cfa5['system']['appType'])['toLowerCase']()){case _0x10789e('0x3a6'):_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0xd6b')]=_0x53cfa5['system'][_0x10789e('0x1a8d')]+'='+_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0x49')];break;case'custom':break;default:_0x57bb8b[0x0]=_0x53cfa5['system']['command'],_0x57bb8b[0x1]=_0x53cfa5[_0x10789e('0xe81')][_0x10789e('0xa72')],_0x53cfa5[_0x10789e('0xe81')]['appdata']=_0x57bb8b['join'](',');}_0x36f26e(_0x53cfa5[_0x10789e('0xe81')]);}function _0x36f26e(_0x4b515e){const _0x5b36cd=_0x289ebe;_0x2a3536[_0x5b36cd('0x19d')](_0x4b515e);}}const _0x5534bd=_0xf822c5;_0x3c8c47[_0x34e79e('0x2d9')]=['$mdDialog','$q','toasty','mailAccountApp',_0x34e79e('0x2594'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3c8c47(_0x23a43f,_0x3ba56d,_0x2f2821,_0xa1b627,_0x3b8151,_0x33c2a0,_0x339082,_0x3c783a){const _0x28e25b=_0x34e79e,_0x4c334e=this;_0x4c334e[_0x28e25b('0x9cb')]=_0x339082[_0x28e25b('0x24cc')](),_0x4c334e[_0x28e25b('0x25be')]=[],_0x4c334e['title']='MAIL.EDIT_'+(_0xa1b627[_0x28e25b('0x167b')]||_0xa1b627[_0x28e25b('0x8a5')])['toUpperCase'](),_0x4c334e['tag']=angular['copy'](_0xa1b627),_0x4c334e['crudPermissions']=_0x3c783a,_0x4c334e[_0x28e25b('0x1193')]={};if(_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')])switch(_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x167b')]?_0x4c334e[_0x28e25b('0x1764')]['appType'][_0x28e25b('0xc2e')]():_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x8a5')][_0x28e25b('0xc2e')]()){case _0x28e25b('0x1d56'):break;case _0x28e25b('0x5e1'):{const _0x117854=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')][_0x28e25b('0x1497')](',');_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x234b')]=_0x117854[0x0],_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x175b')]=_0x117854[0x1],_0x4c334e['tag']['welcomemessage']=_0x117854[_0x28e25b('0x845')](0x2,_0x117854[_0x28e25b('0x2566')])[_0x28e25b('0x185f')](',');}break;case _0x28e25b('0x137a'):{const _0x52c61b=_0x4c334e['tag']['appdata']['split'](',');_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x27f2')]=_0x52c61b[0x0],_0x4c334e['tag']['secretaccesskey']=_0x52c61b[0x1],_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xb70')]=_0x52c61b[0x2],_0x4c334e['tag'][_0x28e25b('0x4eb')]=_0x52c61b[0x3],_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xf50')]=_0x52c61b[_0x28e25b('0x845')](0x4,_0x52c61b[_0x28e25b('0x2566')])[_0x28e25b('0x185f')](',');}break;case _0x28e25b('0x808'):{const _0x28af7d=_0x4c334e[_0x28e25b('0x1764')]['appdata'][_0x28e25b('0x1497')](',');_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x5fd')]=isNaN(_0x28af7d[0x0])?_0x28af7d[0x0]:parseInt(_0x28af7d[0x0],0xa),_0x4c334e[_0x28e25b('0x1764')]['text']=_0x28af7d[_0x28e25b('0x845')](0x1,_0x28af7d[_0x28e25b('0x2566')])['join'](',');}break;case'message':_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x16db')]=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')];break;case _0x28e25b('0x3a6'):_0x4c334e[_0x28e25b('0x1764')]['name']=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')][_0x28e25b('0x1497')]('=')[0x0],_0x4c334e['tag'][_0x28e25b('0x49')]=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')][_0x28e25b('0x1497')]('=')[0x1];break;case _0x28e25b('0x2631'):_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1bf6')]=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0xd6b')];break;default:{const _0xb8bb30=_0x4c334e['tag'][_0x28e25b('0xd6b')]['split'](',');_0x4c334e[_0x28e25b('0x1764')]['tag']=_0x283545()[_0x28e25b('0x213d')](_0xb8bb30[0x0])?_0xb8bb30[0x0]:isNaN(_0xb8bb30[0x0])?_0xb8bb30[0x0]:parseInt(_0xb8bb30[0x0],0xa);}break;}else{}_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1d7')]&&_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1d7')][_0x28e25b('0xc2e')]()===_0x28e25b('0x1')&&_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x167b')][_0x28e25b('0xc2e')]()===_0x28e25b('0x229c')&&(_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1f71')]=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1224')]?_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x1224')][_0x28e25b('0x1497')]('$')[0x0]:undefined,_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x2081')]=_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x8de')]?_0x28e25b('0x1834')+_0x4c334e[_0x28e25b('0x1764')][_0x28e25b('0x8de')]:undefined);_0x4c334e['saveMailAccountApp']=_0x296397,_0x4c334e[_0x28e25b('0xca7')]=_0x1cf224,_0x339082['hasRole'](_0x28e25b('0xe23'))?_0x33c2a0[_0x28e25b('0x1764')][_0x28e25b('0x1335')]({'fields':_0x28e25b('0x1338'),'sort':_0x28e25b('0x1a8d'),'nolimit':'true'})[_0x28e25b('0x1714')]['then'](function(_0x3ad0ba){const _0x326e44=_0x28e25b;_0x4c334e['tags']=_0x3ad0ba[_0x326e44('0x25df')]||[];})[_0x28e25b('0x1cb5')](function(_0x47723c){const _0x2ae02f=_0x28e25b;_0x2f2821[_0x2ae02f('0x5e8')]({'title':_0x47723c[_0x2ae02f('0x1b51')]?_0x2ae02f('0x15d1')+_0x47723c['status']+_0x2ae02f('0x1b0b')+_0x47723c['statusText']:_0x2ae02f('0x270'),'msg':_0x47723c[_0x2ae02f('0x11fc')]?JSON['stringify'](_0x47723c[_0x2ae02f('0x11fc')]):_0x47723c[_0x2ae02f('0x17df')]()});}):_0x33c2a0[_0x28e25b('0x1764')][_0x28e25b('0x1335')]({'fields':_0x28e25b('0x1338'),'sort':_0x28e25b('0x1a8d'),'nolimit':_0x28e25b('0x1001')})[_0x28e25b('0x1714')][_0x28e25b('0x2788')](function(_0x27e761){const _0x5069a8=_0x28e25b;_0x4c334e['tags']=_0x27e761[_0x5069a8('0x25df')]||[];})[_0x28e25b('0x2788')](function(){const _0x5dcbd5=_0x28e25b;return _0x33c2a0[_0x5dcbd5('0xec9')]['get']({'userProfileId':_0x4c334e['currentUser'][_0x5dcbd5('0x237f')],'sectionId':0x3f0})[_0x5dcbd5('0x1714')];})['then'](function(_0x2ec68c){const _0x348821=_0x28e25b,_0x26642e=_0x2ec68c&&_0x2ec68c[_0x348821('0x25df')]?_0x2ec68c['rows'][0x0]:null;if(!_0x26642e){const _0x53c29d=[];let _0xe90da5=null;_0x4c334e['tag']&&(_0xe90da5=_0x283545()[_0x348821('0x20e8')](_0x4c334e[_0x348821('0xe45')],{'name':_0x4c334e[_0x348821('0x1764')][_0x348821('0x1764')]}));for(let _0x297307=0x0;_0x297307<_0x4c334e['tags']['length'];_0x297307++){_0xe90da5&&_0x4c334e['tags'][_0x297307]['id']===_0xe90da5['id']&&(_0x4c334e[_0x348821('0xe45')][_0x297307][_0x348821('0x3bf')]=![],_0x53c29d[_0x348821('0x13e3')](_0x4c334e[_0x348821('0xe45')][_0x297307]));}_0x4c334e[_0x348821('0xe45')]=_0x53c29d;}else{if(!_0x26642e['autoAssociation'])return _0x33c2a0[_0x348821('0x1050')][_0x348821('0x1335')]({'sectionId':_0x26642e['id']})[_0x348821('0x1714')][_0x348821('0x2788')](function(_0xac8cb8){const _0x5a0822=_0x348821,_0x17de46=_0x283545()[_0x5a0822('0x155d')](_0xac8cb8['rows'],function(_0x405f13){const _0x173d2d=_0x5a0822;return _0x283545()[_0x173d2d('0x20e8')](_0x4c334e[_0x173d2d('0xe45')],{'id':_0x405f13['resourceId']});});let _0x2f04cc=null;_0x4c334e[_0x5a0822('0x1764')]&&(_0x2f04cc=_0x283545()[_0x5a0822('0x20e8')](_0x4c334e[_0x5a0822('0xe45')],{'name':_0x4c334e['tag'][_0x5a0822('0x1764')]}));if(_0x2f04cc&&!_0x283545()[_0x5a0822('0xc5d')](_0x17de46,['id',_0x2f04cc['id']])){const _0xc23790=_0x283545()[_0x5a0822('0x20e8')](_0x4c334e[_0x5a0822('0xe45')],{'id':_0x2f04cc['id']});_0xc23790['canSelect']=![],_0x17de46[_0x5a0822('0x13e3')](_0xc23790);}_0x4c334e[_0x5a0822('0xe45')]=_0x17de46;});}})[_0x28e25b('0x1cb5')](function(_0x4f7e60){const _0x459901=_0x28e25b;_0x2f2821['error']({'title':_0x4f7e60['status']?_0x459901('0x15d1')+_0x4f7e60[_0x459901('0x1b51')]+_0x459901('0x1b0b')+_0x4f7e60['statusText']:_0x459901('0x1470'),'msg':_0x4f7e60[_0x459901('0x11fc')]?JSON[_0x459901('0x1be0')](_0x4f7e60['data']):_0x4f7e60[_0x459901('0x17df')]()});});function _0x296397(){const _0x7027ff=_0x28e25b;_0x4c334e[_0x7027ff('0x25be')]=[];const _0x2abeb2=[];_0x4c334e['tag'][_0x7027ff('0x1d7')]&&_0x4c334e['tag'][_0x7027ff('0x1d7')]['toLowerCase']()==='outbound'&&_0x4c334e[_0x7027ff('0x1764')]['appType']===_0x7027ff('0x25fb')&&(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1224')]=_0x3b8151[_0x7027ff('0x277c')]?(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1f71')]||'')+_0x7027ff('0x124d')+_0x3b8151[_0x7027ff('0x277c')]+'}':(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1f71')]||'')+_0x7027ff('0x1275'),_0x3b8151['recordingFormat']!=='none'?_0x4c334e[_0x7027ff('0x1764')]['options'][_0x7027ff('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x784')]+=_0x7027ff('0x1609')):_0x4c334e['tag'][_0x7027ff('0x784')]=_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x784')][_0x7027ff('0x10a4')]('U(xcally-mixmonitor-context)',''));const _0x20e1ad=_0x283545()[_0x7027ff('0x20e8')](_0x4c334e[_0x7027ff('0xe45')],{'name':_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1764')]});_0x20e1ad&&(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x90a')]=_0x20e1ad['id']);if(_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x167b')]&&_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x167b')]===_0x7027ff('0x1d56')){}else switch((_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x8a5')]||_0x4c334e[_0x7027ff('0x1764')]['appType'])[_0x7027ff('0xc2e')]()){case'set':_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0xd6b')]=_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1a8d')]+'='+_0x4c334e[_0x7027ff('0x1764')]['value'];break;case _0x7027ff('0x1d56'):break;default:_0x2abeb2[0x0]=_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0x1764')],_0x4c334e[_0x7027ff('0x1764')][_0x7027ff('0xd6b')]=_0x2abeb2[_0x7027ff('0x185f')](',');}_0x1cf224(_0x4c334e[_0x7027ff('0x1764')]);}function _0x1cf224(_0x1291f8){const _0x871a43=_0x28e25b;_0x23a43f[_0x871a43('0x19d')](_0x1291f8);}}const _0x49d126=_0x3c8c47;_0xa73b72['$inject']=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q','$translate',_0x34e79e('0x446'),'$mdDialog','$document',_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0xa73b72(_0x49020e,_0x1165b9,_0x110bbb,_0x45c558,_0x25ecfb,_0x278b3a,_0xa8fd1c,_0x36cd03,_0x439edb,_0x2f4982,_0x2cd7f6){const _0x57abfb=_0x34e79e,_0xa62730=this;_0xa62730[_0x57abfb('0x9cb')]=_0x2cd7f6['getCurrentUser'](),_0xa62730[_0x57abfb('0x2594')]={},_0xa62730[_0x57abfb('0xe3b')]={'count':0x0,'rows':[]},_0xa62730[_0x57abfb('0x9ee')]=[],_0xa62730['crudPermissions'],_0xa62730[_0x57abfb('0x135a')]={'read':_0x57abfb('0x954'),'closed':_0x57abfb('0x954'),'sort':_0x57abfb('0x34b'),'includeAll':_0x57abfb('0x1001'),'limit':0xa,'page':0x1},_0xa62730['init']=_0x23c10e,_0xa62730[_0x57abfb('0x16a')]=_0x408ba9,_0xa62730[_0x57abfb('0x2480')]=_0x118f4e,_0xa62730[_0x57abfb('0x173b')]=_0x11deea,_0xa62730[_0x57abfb('0x23c2')]=_0x412b96,_0xa62730[_0x57abfb('0x2137')]=_0x4cc0a0,_0xa62730[_0x57abfb('0x27c6')]=_0x11e8cb,_0xa62730[_0x57abfb('0x1b7c')]=_0x2c4af4,_0xa62730[_0x57abfb('0x110')]=_0x27a3ef,_0xa62730[_0x57abfb('0x131c')]=_0x39e3ae;function _0x23c10e(_0x522d93,_0x35e01b){const _0x13d404=_0x57abfb;_0xa62730[_0x13d404('0x2594')]=_0x522d93,_0xa62730[_0x13d404('0xe28')]=typeof _0x35e01b!==_0x13d404('0xedb')?_0x35e01b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xa62730[_0x13d404('0x135a')]['MailAccountId']=_0xa62730['mailAccount']['id'],_0xa62730[_0x13d404('0x1e13')]={'fields':_0x3fe4f4()},_0x247a24();}function _0x247a24(){const _0x5633cb=_0x57abfb;return _0x2f4982[_0x5633cb('0x1764')][_0x5633cb('0x1335')]()['$promise'][_0x5633cb('0x2788')](function(_0x567ace){const _0x4d31d5=_0x5633cb;_0xa62730[_0x4d31d5('0xe45')]=_0x567ace||{'count':0x0,'rows':[]};})[_0x5633cb('0x2788')](function(){const _0x36d0fa=_0x5633cb;return _0x2f4982[_0x36d0fa('0xf75')]['get']({'nolimit':!![]})['$promise'][_0x36d0fa('0x2788')](function(_0x2e8f41){const _0x2a2258=_0x36d0fa;_0xa62730[_0x2a2258('0x1978')]=_0x2e8f41||{'count':0x0,'rows':[]};});})[_0x5633cb('0x2788')](function(){_0xa62730['quickFilters']=_0x50a01d();});}function _0x50a01d(){const _0x57b5be=_0x57abfb;return[{'name':_0x57b5be('0x9ac'),'key':_0x57b5be('0x172'),'type':_0x57b5be('0x1012'),'label':_0x57b5be('0x1664')},{'name':'Messages','key':_0x57b5be('0x18e8'),'type':_0x57b5be('0x983'),'label':_0x57b5be('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x57b5be('0xe54')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x57b5be('0xc79')}]},{'name':'Status','key':'closed','type':_0x57b5be('0x983'),'label':_0x57b5be('0xd0'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x57b5be('0x977')},{'value':null,'translate':_0x57b5be('0xc79')}]},{'name':_0x57b5be('0x20ef'),'key':_0x57b5be('0x1288'),'type':_0x57b5be('0x983'),'label':_0x57b5be('0xd7d'),'options':_0xa62730[_0x57b5be('0x1978')]['rows'],'customOptions':[{'value':_0x57b5be('0x954'),'translate':_0x57b5be('0x256')},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0x57b5be('0x1a8d'),'ngIf':'closed\x20===\x200'},{'name':_0x57b5be('0x262d'),'key':_0x57b5be('0x3bb'),'type':_0x57b5be('0x983'),'label':_0x57b5be('0x2bd'),'customOptions':[{'value':'null','translate':_0x57b5be('0xce3')},{'value':undefined,'translate':_0x57b5be('0xc79')}]},{'name':_0x57b5be('0x251d'),'key':_0x57b5be('0x1764'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0xa62730[_0x57b5be('0xe45')][_0x57b5be('0x25df')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x3fe4f4(){const _0xb1126d=_0x57abfb;return[{'name':'Id','column':'id','type':_0xb1126d('0x272c')},{'name':_0xb1126d('0x1c64'),'column':_0xb1126d('0x1c64'),'type':_0xb1126d('0x137e'),'options':{'searchFields':[_0xb1126d('0x26da'),_0xb1126d('0x26b9'),_0xb1126d('0x2436')],'route':{'model':_0xb1126d('0xa83'),'action':_0xb1126d('0x1335'),'params':{'fields':_0xb1126d('0x1373'),'Contact':_0xb1126d('0x20bf'),'nolimit':!![]}},'extraOperators':[_0xb1126d('0x1a77')],'excludedOperators':[_0xb1126d('0x149c')]}},{'name':_0xb1126d('0x16c9'),'column':'subject','type':_0xb1126d('0x16db'),'options':{'excludedOperators':[_0xb1126d('0x1ff9'),_0xb1126d('0x149c')]}},{'name':_0xb1126d('0x1e8f'),'column':_0xb1126d('0x550'),'type':'text','options':{'excludedOperators':['$eq',_0xb1126d('0x149c')]}},{'name':_0xb1126d('0x21d8'),'column':_0xb1126d('0x215d'),'type':_0xb1126d('0x983'),'values':[{'id':0x0,'translate':_0xb1126d('0xd6c')},{'id':0x1,'translate':_0xb1126d('0x977')}],'options':{'excludedOperators':[_0xb1126d('0x149c')]}},{'name':'Substatus','column':_0xb1126d('0x1288'),'type':_0xb1126d('0x9a4'),'options':{'field':_0xb1126d('0x1a8d'),'route':{'model':'mailSubstatus','action':_0xb1126d('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0xb1126d('0x38b')]}},{'name':'Agent','column':_0xb1126d('0x1832'),'type':'autocomplete','options':{'table':'i','route':{'model':_0xb1126d('0x1e6a'),'action':_0xb1126d('0x1335'),'params':{'role':_0xb1126d('0x188b'),'fields':_0xb1126d('0x10fe'),'nolimit':!![]}},'searchFields':[_0xb1126d('0x2831'),_0xb1126d('0x1a8d')],'extraOperators':[_0xb1126d('0x1a77')],'excludedOperators':[_0xb1126d('0x149c')]}},{'name':_0xb1126d('0xbcf'),'column':_0xb1126d('0x251d'),'type':'multiselect','options':{'route':{'model':'tag','action':'get','params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0xb1126d('0x9ac'),'column':_0xb1126d('0x172'),'type':_0xb1126d('0x1012'),'options':{'excludedOperators':[_0xb1126d('0x149c')]}},{'name':_0xb1126d('0x27d7'),'column':_0xb1126d('0xecd'),'type':'select','values':[{'id':0x1,'translate':_0xb1126d('0x204a')},{'id':0x0,'translate':_0xb1126d('0xe54')}],'options':{'excludedOperators':[_0xb1126d('0x149c')]}}];}function _0x11e8cb(){const _0x52b434=_0x57abfb;_0xa8fd1c[_0x52b434('0x2fa')]({'controller':_0x52b434('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x52b434('0x16b1')](_0x36cd03[_0x52b434('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0xa62730[_0x52b434('0x1e13')][_0x52b434('0x1578')],'color':undefined,'storagePath':_0x52b434('0x1e0a')},'fullscreen':!![]})['then'](function(_0x275de0){const _0x2bdc21=_0x52b434;_0xa62730[_0x2bdc21('0x135a')][_0x2bdc21('0x470')]=_0x275de0===![]?undefined:_0x275de0;if(_0xa62730[_0x2bdc21('0x135a')][_0x2bdc21('0x470')])_0xa62730[_0x2bdc21('0x135a')][_0x2bdc21('0x470')]+='||MailAccountId:=$eq['+_0xa62730[_0x2bdc21('0x2594')]['id']+']',_0x412b96();else _0x275de0===![]&&_0x412b96();})[_0x52b434('0x1cb5')](function(_0xc5038){const _0x5ac9c7=_0x52b434;_0x439edb[_0x5ac9c7('0x5e8')]({'title':_0x5ac9c7('0x824'),'msg':_0xc5038['data']?JSON['stringify'](_0xc5038[_0x5ac9c7('0x11fc')][_0x5ac9c7('0x15e2')]):_0xc5038[_0x5ac9c7('0x17df')]()});});}function _0x118f4e(_0x13d5d5,_0x418c7d,_0x30e618){const _0x3b7b53=_0x57abfb;return _0x2f4982[_0x3b7b53('0x2559')][_0x3b7b53('0x1486')]({'id':_0x13d5d5['id'],'exists':!![],'attachments':_0x30e618})['$promise']['then'](function(_0x33667b){const _0x3b2015=_0x3b7b53,_0xa28b67=[_0x33667b[_0x3b2015('0x3f1')]];let _0x3a47a5=_0x3b2015('0xd61')+_0x13d5d5['id'];const _0xd2981b=new Blob(_0xa28b67,{'type':_0x33667b['type']});_0x3a47a5=_0x3b2015('0x1e93')+_0x13d5d5['id']+_0x3b2015('0xfdb');const _0x45bffd=window['document'][_0x3b2015('0x1ae6')]('a');_0x45bffd['setAttribute'](_0x3b2015('0x186a'),URL[_0x3b2015('0x1b0d')](_0xd2981b)),_0x45bffd[_0x3b2015('0x1c6b')]('download',_0x3a47a5),document[_0x3b2015('0x945')][_0x3b2015('0xcbf')](_0x45bffd),_0x45bffd['click']();})[_0x3b7b53('0x1cb5')](function(_0x44b470){const _0x3e246d=_0x3b7b53;if(_0x44b470['data']&&_0x44b470[_0x3e246d('0x11fc')][_0x3e246d('0x25be')]&&_0x44b470[_0x3e246d('0x11fc')][_0x3e246d('0x25be')][_0x3e246d('0x2566')])for(let _0x2627c5=0x0;_0x2627c5<_0x44b470[_0x3e246d('0x11fc')][_0x3e246d('0x25be')]['length'];_0x2627c5+=0x1){_0x439edb[_0x3e246d('0x5e8')]({'title':_0x44b470[_0x3e246d('0x11fc')]['errors'][_0x2627c5]['type'],'msg':_0x44b470[_0x3e246d('0x11fc')]['errors'][_0x2627c5][_0x3e246d('0x15e2')]});}else _0x439edb[_0x3e246d('0x5e8')]({'title':_0x44b470[_0x3e246d('0x1b51')]?_0x3e246d('0x15d1')+_0x44b470['status']+_0x3e246d('0x1b0b')+_0x44b470[_0x3e246d('0x22ce')]:_0x3e246d('0x200f'),'msg':_0x44b470[_0x3e246d('0x11fc')]?JSON[_0x3e246d('0x1be0')](_0x44b470[_0x3e246d('0x11fc')][_0x3e246d('0x15e2')]):_0x44b470[_0x3e246d('0x17df')]()});});}function _0x408ba9(_0x1064f4,_0x8385d2){const _0x828cb9=_0x57abfb,_0x517009=_0xa8fd1c[_0x828cb9('0x112e')]()[_0x828cb9('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x828cb9('0x93e')](_0x828cb9('0x1670')+(_0x1064f4['name']||_0x1064f4['id']&&_0x283545()[_0x828cb9('0x2265')](_0x828cb9('0xb4c'))+_0x1064f4['id']||_0x828cb9('0xd61'))+_0x828cb9('0x229e')+_0x828cb9('0x27c7'))['ariaLabel'](_0x828cb9('0xa98'))['targetEvent'](_0x8385d2)['ok']('OK')[_0x828cb9('0x1801')](_0x828cb9('0x1d8d'));_0xa8fd1c[_0x828cb9('0x2fa')](_0x517009)['then'](function(){_0x27a3ef(_0x1064f4);},function(){const _0x245090=_0x828cb9;console[_0x245090('0x10df')]('CANCEL');});}function _0x11deea(_0x575a18){const _0x657f71=_0x57abfb;_0xa62730[_0x657f71('0xe3b')]=_0x575a18||{'count':0x0,'rows':[]};for(let _0x15af0e=0x0;_0x15af0e<_0xa62730[_0x657f71('0xe3b')]['rows'][_0x657f71('0x2566')];_0x15af0e+=0x1){const _0x204749=_0xa62730['mailAccountInteractions'][_0x657f71('0x25df')][_0x15af0e];_0x40a280(_0x204749),_0x204749[_0x657f71('0xe42')][_0x657f71('0x1a8d')]=_0x584731(_0x204749);}}function _0x412b96(){const _0x2b8935=_0x57abfb;_0xa62730[_0x2b8935('0x135a')][_0x2b8935('0x19e')]=(_0xa62730[_0x2b8935('0x135a')]['page']-0x1)*_0xa62730[_0x2b8935('0x135a')][_0x2b8935('0x68e')],_0xa62730[_0x2b8935('0x1808')]=_0x2f4982[_0x2b8935('0x2559')][_0x2b8935('0x1335')](_0xa62730[_0x2b8935('0x135a')],_0x11deea)[_0x2b8935('0x1714')];}function _0x4cc0a0(_0x101e3f,_0x2d2ca3){const _0x2bfbed=_0x57abfb;_0xa8fd1c[_0x2bfbed('0x2fa')]({'controller':_0x2bfbed('0xcd'),'controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular[_0x2bfbed('0x16b1')](_0x36cd03['body']),'targetEvent':_0x101e3f,'clickOutsideToClose':!![],'onShowing':function(_0x194ef8){const _0x51c065=_0x2bfbed;_0x194ef8['vm'][_0x51c065('0x24eb')]({'id':0x1,'channel':_0x51c065('0x2795'),'interaction':_0x2d2ca3,'spy':!![]},_0x1165b9[_0x51c065('0x7d0')]['vm'][_0x51c065('0x1af0')]);}});}function _0x27a3ef(_0x35393b){const _0x5711c4=_0x57abfb;_0x2f4982['mailInteraction'][_0x5711c4('0x17c4')]({'id':_0x35393b['id']})['$promise'][_0x5711c4('0x2788')](function(){const _0xf0defc=_0x5711c4;_0x283545()[_0xf0defc('0x1a90')](_0xa62730[_0xf0defc('0xe3b')]['rows'],{'id':_0x35393b['id']}),_0xa62730[_0xf0defc('0xe3b')][_0xf0defc('0x338')]-=0x1,!_0xa62730[_0xf0defc('0xe3b')]['rows'][_0xf0defc('0x2566')]&&_0x412b96(),_0x439edb[_0xf0defc('0x173b')]({'title':_0xf0defc('0xb73'),'msg':_0x35393b[_0xf0defc('0x1a8d')]?_0x35393b[_0xf0defc('0x1a8d')]+_0xf0defc('0x14d4'):''});})[_0x5711c4('0x1cb5')](function(_0x183207){const _0x666168=_0x5711c4;if(_0x183207[_0x666168('0x11fc')]&&_0x183207[_0x666168('0x11fc')][_0x666168('0x25be')]&&_0x183207[_0x666168('0x11fc')][_0x666168('0x25be')][_0x666168('0x2566')]){_0xa62730['errors']=_0x183207[_0x666168('0x11fc')][_0x666168('0x25be')]||[{'message':_0x183207[_0x666168('0x17df')](),'type':_0x666168('0xa4b')}];for(let _0x18a904=0x0;_0x18a904<_0x183207[_0x666168('0x11fc')][_0x666168('0x25be')][_0x666168('0x2566')];_0x18a904++){_0x439edb[_0x666168('0x5e8')]({'title':_0x183207['data'][_0x666168('0x25be')][_0x18a904][_0x666168('0x1d7')],'msg':_0x183207[_0x666168('0x11fc')]['errors'][_0x18a904][_0x666168('0x15e2')]});}}else _0x439edb[_0x666168('0x5e8')]({'title':_0x183207[_0x666168('0x1b51')]?'API:'+_0x183207[_0x666168('0x1b51')]+_0x666168('0x1b0b')+_0x183207[_0x666168('0x22ce')]:'SYSTEM:GETmailAccount','msg':_0x183207[_0x666168('0x11fc')]?JSON[_0x666168('0x1be0')](_0x183207[_0x666168('0x11fc')][_0x666168('0x15e2')]):_0x183207[_0x666168('0x15e2')]||_0x183207[_0x666168('0x17df')]()});});}function _0x2c4af4(){const _0x29706a=_0x57abfb,_0x2a73c9=angular[_0x29706a('0x2669')](_0xa62730[_0x29706a('0x9ee')]);return _0xa62730[_0x29706a('0x9ee')]=[],_0x2a73c9;}function _0x39e3ae(_0x163de5){const _0x23377c=_0x57abfb,_0xbf43c3=_0xa8fd1c[_0x23377c('0x112e')]()[_0x23377c('0x14e4')](_0x23377c('0x1ff'))['htmlContent'](_0x23377c('0x1670')+_0xa62730[_0x23377c('0x9ee')][_0x23377c('0x2566')]+_0x23377c('0xbd')+_0x23377c('0x27c7'))[_0x23377c('0x10bc')](_0x23377c('0x970'))[_0x23377c('0x24d0')](_0x163de5)['ok']('OK')['cancel'](_0x23377c('0x1d8d'));_0xa8fd1c[_0x23377c('0x2fa')](_0xbf43c3)['then'](function(){const _0x56abc7=_0x23377c;_0xa62730['selectedMailAccountInteractions'][_0x56abc7('0x1534')](function(_0x2d48d0){_0x27a3ef(_0x2d48d0);}),_0xa62730[_0x56abc7('0x9ee')]=[];});}function _0x40a280(_0x41b923){const _0x2f1bba=_0x57abfb;if(!_0x283545()[_0x2f1bba('0x213d')](_0x41b923['to'])&&!_0x283545()[_0x2f1bba('0x1d4e')](_0x41b923['to'],_0xa62730[_0x2f1bba('0x2594')][_0x2f1bba('0x2436')]))_0x41b923['contactName']=_0x41b923['to'][_0x2f1bba('0x1497')]('\x20<')[0x0],_0x41b923[_0x2f1bba('0x1aba')]=_0x41b923['to'][_0x2f1bba('0x1497')]('<')['pop']()[_0x2f1bba('0x1497')]('>')[0x0];else _0x41b923[_0x2f1bba('0x1c64')]?(_0x41b923[_0x2f1bba('0x497')]=(_0x41b923[_0x2f1bba('0x1c64')][_0x2f1bba('0x26da')]||'')+'\x20'+(_0x41b923[_0x2f1bba('0x1c64')][_0x2f1bba('0x26b9')]||''),_0x41b923[_0x2f1bba('0x1aba')]=_0x41b923[_0x2f1bba('0x1c64')][_0x2f1bba('0x2436')]||''):_0x41b923['contactName']=_0x25ecfb[_0x2f1bba('0x1b11')](_0x2f1bba('0x892'));}function _0x584731(_0x2ff520){const _0x1520e3=_0x57abfb;if(_0x2ff520[_0x1520e3('0x3bb')])return _0x2ff520['UserId']===_0xa62730[_0x1520e3('0x9cb')]['id']?_0x25ecfb['instant']('DASHBOARDS.ME'):_0x2ff520[_0x1520e3('0xe42')][_0x1520e3('0x2831')]+'\x20<'+_0x2ff520['Owner']['internal']+'>';return _0x25ecfb['instant'](_0x1520e3('0xce3'));}let _0x1c508e=!![],_0x19ee32=0x1;_0x1165b9[_0x57abfb('0x1662')](_0x57abfb('0x2571'),function(_0x165023,_0x3595b6){const _0x485940=_0x57abfb;_0x1c508e?_0x278b3a(function(){_0x1c508e=![];}):(!_0x3595b6&&(_0x19ee32=_0xa62730['query'][_0x485940('0x23f5')]),_0x165023!==_0x3595b6&&(_0xa62730['query']['page']=0x1),!_0x165023&&(_0xa62730['query'][_0x485940('0x23f5')]=_0x19ee32),_0x412b96());});}const _0x4d6ef4=_0xa73b72,_0x21ccb2=_0x18dd13['p']+_0x34e79e('0x26b1');_0x482b71[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x482b71(_0xf65c15,_0x204412,_0x14db58,_0x343481,_0x4c1f75,_0xa58dfb,_0x1a86d3,_0x2daafa,_0x408b8b,_0x47bb88,_0x2e8ada){const _0x1fde28=_0x34e79e,_0xafc318=this;_0xafc318[_0x1fde28('0x9cb')]=_0x2e8ada[_0x1fde28('0x24cc')](),_0xafc318[_0x1fde28('0x2594')]={},_0xafc318['mailAccountMailCannedAnswers']={'count':0x0,'rows':[]},_0xafc318[_0x1fde28('0x1fe4')]=[],_0xafc318[_0x1fde28('0xe28')],_0xafc318[_0x1fde28('0x135a')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0xafc318['init']=_0x284ce4,_0xafc318['deleteConfirm']=_0x2f6325,_0xafc318[_0x1fde28('0x173b')]=_0x3681db,_0xafc318[_0x1fde28('0x1f4e')]=_0x13ad85,_0xafc318['createOrEditMailAccountMailCannedAnswer']=_0x184a9a,_0xafc318[_0x1fde28('0x20ea')]=_0x1174ee,_0xafc318[_0x1fde28('0x1c8e')]=_0x3af799,_0xafc318['deleteSelectedMailAccountMailCannedAnswers']=_0x11e364;function _0x284ce4(_0x3d3fc0,_0x5234e3){const _0x5b4f82=_0x1fde28;_0xafc318['mailAccount']=_0x3d3fc0,_0xafc318['crudPermissions']=typeof _0x5234e3!==_0x5b4f82('0xedb')?_0x5234e3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xafc318['query'][_0x5b4f82('0x26b2')]=_0xafc318['mailAccount']['id'],_0xafc318[_0x5b4f82('0x135a')]['id']=_0xafc318[_0x5b4f82('0x2594')]['id'],_0x13ad85();}function _0x2f6325(_0xa609a7,_0x4c50e9){const _0x570ec6=_0x1fde28,_0x11afbd=_0x1a86d3['confirm']()[_0x570ec6('0x14e4')](_0x570ec6('0xe41'))[_0x570ec6('0x93e')](''+(_0xa609a7['name']||_0xa609a7['id']&&_0x283545()[_0x570ec6('0x2265')](_0x570ec6('0x6f0'))+_0xa609a7['id']||_0x570ec6('0x833'))+_0x570ec6('0x229e')+'\x20will\x20be\x20deleted.')[_0x570ec6('0x10bc')](_0x570ec6('0x18b8'))[_0x570ec6('0x24d0')](_0x4c50e9)['ok']('OK')[_0x570ec6('0x1801')]('CANCEL');_0x1a86d3[_0x570ec6('0x2fa')](_0x11afbd)[_0x570ec6('0x2788')](function(){_0x3af799(_0xa609a7);},function(){const _0x4f8b42=_0x570ec6;console[_0x4f8b42('0x10df')](_0x4f8b42('0x1d8d'));});}function _0x3681db(_0x2720aa){_0xafc318['mailAccountMailCannedAnswers']=_0x2720aa||{'count':0x0,'rows':[]};}function _0x13ad85(){const _0x263878=_0x1fde28;_0xafc318[_0x263878('0x135a')][_0x263878('0x19e')]=(_0xafc318[_0x263878('0x135a')][_0x263878('0x23f5')]-0x1)*_0xafc318[_0x263878('0x135a')][_0x263878('0x68e')],_0xafc318[_0x263878('0x1808')]=_0x47bb88[_0x263878('0x2594')][_0x263878('0x1077')](_0xafc318[_0x263878('0x135a')],_0x3681db)['$promise'];}function _0x184a9a(_0x1625c5,_0x163851){const _0x104ef7=_0x1fde28;_0x1a86d3['show']({'controller':_0x104ef7('0x2761'),'controllerAs':'vm','templateUrl':_0x21ccb2,'parent':angular[_0x104ef7('0x16b1')](_0x2daafa[_0x104ef7('0x945')]),'targetEvent':_0x1625c5,'clickOutsideToClose':!![],'locals':{'mailAccount':_0xafc318[_0x104ef7('0x2594')],'mailCannedAnswer':_0x163851,'mailCannedAnswers':_0xafc318[_0x104ef7('0xb05')]['rows'],'license':null,'setting':null,'crudPermissions':_0xafc318[_0x104ef7('0xe28')]}});}function _0x3af799(_0x35f01c){const _0x56ad83=_0x1fde28;_0x47bb88[_0x56ad83('0x1870')]['delete']({'id':_0x35f01c['id']})[_0x56ad83('0x1714')][_0x56ad83('0x2788')](function(){const _0x437d1e=_0x56ad83;_0x283545()['remove'](_0xafc318['mailAccountMailCannedAnswers'][_0x437d1e('0x25df')],{'id':_0x35f01c['id']}),_0xafc318[_0x437d1e('0xb05')][_0x437d1e('0x338')]-=0x1,!_0xafc318[_0x437d1e('0xb05')][_0x437d1e('0x25df')][_0x437d1e('0x2566')]&&_0x13ad85(),_0x408b8b[_0x437d1e('0x173b')]({'title':_0x437d1e('0x1f6'),'msg':_0x35f01c['name']?_0x35f01c[_0x437d1e('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x56ad83('0x1cb5')](function(_0x4c95d4){const _0x2768d6=_0x56ad83;if(_0x4c95d4[_0x2768d6('0x11fc')]&&_0x4c95d4[_0x2768d6('0x11fc')][_0x2768d6('0x25be')]&&_0x4c95d4[_0x2768d6('0x11fc')][_0x2768d6('0x25be')][_0x2768d6('0x2566')]){_0xafc318['errors']=_0x4c95d4[_0x2768d6('0x11fc')][_0x2768d6('0x25be')]||[{'message':_0x4c95d4[_0x2768d6('0x17df')](),'type':'SYSTEM:GETmailAccount'}];for(let _0x1fb83e=0x0;_0x1fb83e<_0x4c95d4[_0x2768d6('0x11fc')][_0x2768d6('0x25be')]['length'];_0x1fb83e++){_0x408b8b[_0x2768d6('0x5e8')]({'title':_0x4c95d4[_0x2768d6('0x11fc')]['errors'][_0x1fb83e][_0x2768d6('0x1d7')],'msg':_0x4c95d4[_0x2768d6('0x11fc')]['errors'][_0x1fb83e][_0x2768d6('0x15e2')]});}}else _0x408b8b[_0x2768d6('0x5e8')]({'title':_0x4c95d4[_0x2768d6('0x1b51')]?_0x2768d6('0x15d1')+_0x4c95d4[_0x2768d6('0x1b51')]+_0x2768d6('0x1b0b')+_0x4c95d4[_0x2768d6('0x22ce')]:_0x2768d6('0xa4b'),'msg':_0x4c95d4[_0x2768d6('0x11fc')]?JSON[_0x2768d6('0x1be0')](_0x4c95d4[_0x2768d6('0x11fc')]['message']):_0x4c95d4[_0x2768d6('0x15e2')]||_0x4c95d4[_0x2768d6('0x17df')]()});});}function _0x1174ee(){const _0x26a549=_0x1fde28,_0x329146=angular[_0x26a549('0x2669')](_0xafc318[_0x26a549('0x1fe4')]);return _0xafc318['selectedMailAccountMailCannedAnswers']=[],_0x329146;}function _0x11e364(_0x231379){const _0x7214c7=_0x1fde28,_0x132c77=_0x1a86d3[_0x7214c7('0x112e')]()['title'](_0x7214c7('0xe8b'))[_0x7214c7('0x93e')](_0x7214c7('0x1670')+_0xafc318[_0x7214c7('0x1fe4')][_0x7214c7('0x2566')]+_0x7214c7('0xbd')+_0x7214c7('0x27c7'))['ariaLabel'](_0x7214c7('0x1e5a'))['targetEvent'](_0x231379)['ok']('OK')[_0x7214c7('0x1801')]('CANCEL');_0x1a86d3[_0x7214c7('0x2fa')](_0x132c77)[_0x7214c7('0x2788')](function(){const _0x3869b2=_0x7214c7;_0xafc318['selectedMailAccountMailCannedAnswers'][_0x3869b2('0x1534')](function(_0x42f1f4){_0x3af799(_0x42f1f4);}),_0xafc318[_0x3869b2('0x1fe4')]=[];});}let _0x13de45=!![],_0x1028b9=0x1;_0x204412[_0x1fde28('0x1662')](_0x1fde28('0x2571'),function(_0x41f71f,_0x4983ac){const _0x134d3a=_0x1fde28;_0x13de45?_0xa58dfb(function(){_0x13de45=![];}):(!_0x4983ac&&(_0x1028b9=_0xafc318['query']['page']),_0x41f71f!==_0x4983ac&&(_0xafc318['query']['page']=0x1),!_0x41f71f&&(_0xafc318['query'][_0x134d3a('0x23f5')]=_0x1028b9),_0x13ad85());});}const _0x307544=_0x482b71;_0x3b3f19[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x20f3'),_0x34e79e('0x833'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x3b3f19(_0x523761,_0x3e007b,_0x532a0c,_0x46832b,_0x26e71f,_0x2c7cff,_0x4d6b75,_0x24cc13,_0x294c8f,_0x27a5b3,_0x3b9339,_0x1e9ed5,_0x4e573f,_0x3937e2){const _0x334ae3=_0x34e79e,_0x1a94b5=this;_0x1a94b5['currentUser']=_0x3b9339[_0x334ae3('0x24cc')](),_0x1a94b5[_0x334ae3('0x25be')]=[],_0x1a94b5[_0x334ae3('0x1af0')]=_0x4e573f,_0x1a94b5[_0x334ae3('0x130d')]=_0x1e9ed5,_0x1a94b5[_0x334ae3('0xe28')]=_0x3937e2,_0x1a94b5[_0x334ae3('0x1193')]={},_0x1a94b5[_0x334ae3('0x18ad')]=_0x1a94b5[_0x334ae3('0x1af0')]&&_0x1a94b5[_0x334ae3('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a94b5[_0x334ae3('0x14e4')]=_0x334ae3('0x19be'),_0x1a94b5[_0x334ae3('0x833')]=angular[_0x334ae3('0x2669')](_0x294c8f),_0x1a94b5[_0x334ae3('0x20f3')]=_0x24cc13,_0x1a94b5['newMailCannedAnswer']=![];!_0x1a94b5[_0x334ae3('0x833')]&&(_0x1a94b5[_0x334ae3('0x833')]={},_0x1a94b5[_0x334ae3('0x14e4')]='MAIL.NEW_MAILCANNEDANSWER',_0x1a94b5[_0x334ae3('0x218')]=!![]);_0x3e007b[_0x334ae3('0x4b9')]['id']&&(_0x1a94b5[_0x334ae3('0x833')][_0x334ae3('0x26b2')]=_0x3e007b[_0x334ae3('0x4b9')]['id']);_0x1a94b5['addNewMailCannedAnswer']=_0x18af07,_0x1a94b5[_0x334ae3('0x208f')]=_0x2efb26,_0x1a94b5['deleteMailCannedAnswer']=_0x3b8c1f,_0x1a94b5['getDateFromString']=_0x457b28,_0x1a94b5[_0x334ae3('0xca7')]=_0x84992e;function _0x18af07(){const _0x2be098=_0x334ae3;_0x1a94b5[_0x2be098('0x25be')]=[],_0x27a5b3[_0x2be098('0x1870')][_0x2be098('0xbd0')](_0x1a94b5['mailCannedAnswer'])[_0x2be098('0x1714')][_0x2be098('0x2788')](function(_0x11dafa){const _0x413903=_0x2be098;_0x1a94b5[_0x413903('0x20f3')][_0x413903('0xc51')](_0x11dafa[_0x413903('0x1cbf')]()),_0x4d6b75['success']({'title':'MailCannedAnswer\x20properly\x20created','msg':_0x1a94b5[_0x413903('0x833')][_0x413903('0x1a8d')]?_0x1a94b5[_0x413903('0x833')][_0x413903('0x1a8d')]+_0x413903('0x1e4a'):''}),_0x84992e(_0x11dafa);})['catch'](function(_0xb54310){const _0xfed8c4=_0x2be098;if(_0xb54310['data']&&_0xb54310[_0xfed8c4('0x11fc')][_0xfed8c4('0x25be')]&&_0xb54310[_0xfed8c4('0x11fc')][_0xfed8c4('0x25be')][_0xfed8c4('0x2566')]){_0x1a94b5[_0xfed8c4('0x25be')]=_0xb54310[_0xfed8c4('0x11fc')][_0xfed8c4('0x25be')]||[{'message':_0xb54310[_0xfed8c4('0x17df')](),'type':_0xfed8c4('0x11b')}];for(let _0x5dd2d1=0x0;_0x5dd2d1<_0xb54310['data']['errors']['length'];_0x5dd2d1+=0x1){_0x4d6b75[_0xfed8c4('0x5e8')]({'title':_0xb54310['data'][_0xfed8c4('0x25be')][_0x5dd2d1][_0xfed8c4('0x1d7')],'msg':_0xb54310['data'][_0xfed8c4('0x25be')][_0x5dd2d1]['message']});}}else _0x4d6b75[_0xfed8c4('0x5e8')]({'title':_0xb54310[_0xfed8c4('0x1b51')]?'API:'+_0xb54310[_0xfed8c4('0x1b51')]+'\x20-\x20'+_0xb54310[_0xfed8c4('0x22ce')]:_0xfed8c4('0x11b'),'msg':_0xb54310[_0xfed8c4('0x11fc')]?JSON[_0xfed8c4('0x1be0')](_0xb54310[_0xfed8c4('0x11fc')][_0xfed8c4('0x15e2')]):_0xb54310[_0xfed8c4('0x17df')]()});});}function _0x2efb26(){const _0x4e72d7=_0x334ae3;_0x1a94b5['errors']=[],_0x27a5b3[_0x4e72d7('0x1870')][_0x4e72d7('0x2740')]({'id':_0x1a94b5['mailCannedAnswer']['id']},_0x1a94b5[_0x4e72d7('0x833')])[_0x4e72d7('0x1714')][_0x4e72d7('0x2788')](function(_0x1934d8){const _0x437312=_0x4e72d7,_0x2a25a4=_0x283545()[_0x437312('0x20e8')](_0x1a94b5['mailCannedAnswers'],{'id':_0x1934d8['id']});_0x2a25a4&&_0x283545()[_0x437312('0x2503')](_0x2a25a4,_0x283545()['pick'](_0x1934d8[_0x437312('0x1cbf')](),_0x283545()[_0x437312('0x2163')](_0x2a25a4))),_0x4d6b75[_0x437312('0x173b')]({'title':_0x437312('0xfe'),'msg':_0x1a94b5[_0x437312('0x833')]['name']?_0x1a94b5[_0x437312('0x833')][_0x437312('0x1a8d')]+_0x437312('0x24cf'):''}),_0x84992e(_0x1934d8);})[_0x4e72d7('0x1cb5')](function(_0x4a4167){const _0x49cfdc=_0x4e72d7;if(_0x4a4167[_0x49cfdc('0x11fc')]&&_0x4a4167['data'][_0x49cfdc('0x25be')]&&_0x4a4167[_0x49cfdc('0x11fc')][_0x49cfdc('0x25be')][_0x49cfdc('0x2566')]){_0x1a94b5['errors']=_0x4a4167[_0x49cfdc('0x11fc')][_0x49cfdc('0x25be')]||[{'message':_0x4a4167[_0x49cfdc('0x17df')](),'type':_0x49cfdc('0x244')}];for(let _0x13d469=0x0;_0x13d469<_0x4a4167[_0x49cfdc('0x11fc')][_0x49cfdc('0x25be')]['length'];_0x13d469++){_0x4d6b75[_0x49cfdc('0x5e8')]({'title':_0x4a4167[_0x49cfdc('0x11fc')][_0x49cfdc('0x25be')][_0x13d469]['type'],'msg':_0x4a4167['data'][_0x49cfdc('0x25be')][_0x13d469][_0x49cfdc('0x15e2')]});}}else _0x4d6b75[_0x49cfdc('0x5e8')]({'title':_0x4a4167[_0x49cfdc('0x1b51')]?_0x49cfdc('0x15d1')+_0x4a4167['status']+_0x49cfdc('0x1b0b')+_0x4a4167[_0x49cfdc('0x22ce')]:_0x49cfdc('0x244'),'msg':_0x4a4167['data']?JSON['stringify'](_0x4a4167['data'][_0x49cfdc('0x15e2')]):_0x4a4167[_0x49cfdc('0x17df')]()});});}function _0x3b8c1f(_0x1fd7d3){const _0x4e44e5=_0x334ae3;_0x1a94b5[_0x4e44e5('0x25be')]=[];const _0x2d63bb=_0x46832b[_0x4e44e5('0x112e')]()[_0x4e44e5('0x14e4')]('Are\x20you\x20sure?')['content'](_0x4e44e5('0x18f0'))[_0x4e44e5('0x10bc')](_0x4e44e5('0x9ed'))['ok'](_0x4e44e5('0x2786'))[_0x4e44e5('0x1801')](_0x4e44e5('0x1481'))['targetEvent'](_0x1fd7d3);_0x46832b[_0x4e44e5('0x2fa')](_0x2d63bb)[_0x4e44e5('0x2788')](function(){const _0x388fc5=_0x4e44e5;_0x27a5b3[_0x388fc5('0x1870')][_0x388fc5('0x17c4')]({'id':_0x1a94b5[_0x388fc5('0x833')]['id']})[_0x388fc5('0x1714')][_0x388fc5('0x2788')](function(){const _0x266239=_0x388fc5;_0x283545()['remove'](_0x1a94b5[_0x266239('0x20f3')],{'id':_0x1a94b5[_0x266239('0x833')]['id']}),_0x4d6b75[_0x266239('0x173b')]({'title':'MailCannedAnswer\x20properly\x20deleted!','msg':(_0x1a94b5['mailCannedAnswer'][_0x266239('0x1a8d')]||_0x266239('0x833'))+_0x266239('0x14d4')}),_0x84992e(_0x1a94b5[_0x266239('0x833')]);})[_0x388fc5('0x1cb5')](function(_0x58db05){const _0x154356=_0x388fc5;if(_0x58db05[_0x154356('0x11fc')]&&_0x58db05['data'][_0x154356('0x25be')]&&_0x58db05[_0x154356('0x11fc')]['errors']['length']){_0x1a94b5[_0x154356('0x25be')]=_0x58db05[_0x154356('0x11fc')][_0x154356('0x25be')]||[{'message':_0x58db05['toString'](),'type':_0x154356('0x1cad')}];for(let _0x535cae=0x0;_0x535cae<_0x58db05[_0x154356('0x11fc')][_0x154356('0x25be')][_0x154356('0x2566')];_0x535cae++){_0x4d6b75[_0x154356('0x5e8')]({'title':_0x58db05[_0x154356('0x11fc')]['errors'][_0x535cae][_0x154356('0x1d7')],'msg':_0x58db05[_0x154356('0x11fc')][_0x154356('0x25be')][_0x535cae]['message']});}}else _0x4d6b75['error']({'title':_0x58db05[_0x154356('0x1b51')]?'API:'+_0x58db05[_0x154356('0x1b51')]+_0x154356('0x1b0b')+_0x58db05['statusText']:_0x154356('0x1cad'),'msg':_0x58db05[_0x154356('0x11fc')]?JSON['stringify'](_0x58db05[_0x154356('0x11fc')][_0x154356('0x15e2')]):_0x58db05[_0x154356('0x15e2')]||_0x58db05['toString']()});});},function(){});}function _0x457b28(_0x2254d2){return _0x2254d2===null?undefined:new Date(_0x2254d2);}function _0x84992e(_0xe3c585){const _0x16e48f=_0x334ae3;_0x46832b[_0x16e48f('0x19d')](_0xe3c585);}}const _0x10d20e=_0x3b3f19;_0x43f38e['$inject']=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x43f38e(_0x357416,_0x1d7d0b,_0x55b40c,_0x200921,_0x5d0063,_0x40cdf1,_0x5bc549,_0x17aa8e,_0x1d0b6c,_0x520ed7,_0x23a495){const _0x4cc204=_0x34e79e,_0xe25019=this;_0xe25019['currentUser']=_0x23a495['getCurrentUser'](),_0xe25019[_0x4cc204('0x818')]={'count':0x0,'rows':[]},_0xe25019['selectedDispositions']=[],_0xe25019[_0x4cc204('0xe28')],_0xe25019[_0x4cc204('0x21c2')]={'first':'1st','second':_0x4cc204('0x1e6'),'third':_0x4cc204('0x188d')},_0xe25019[_0x4cc204('0x135a')]={'fields':_0x4cc204('0x258b'),'sort':_0x4cc204('0x1cee'),'limit':0xa,'page':0x1},_0xe25019[_0x4cc204('0x24eb')]=_0x583abe,_0xe25019[_0x4cc204('0x16a')]=_0x285134,_0xe25019[_0x4cc204('0x173b')]=_0x27c082,_0xe25019['getDispositions']=_0x429849,_0xe25019[_0x4cc204('0x2839')]=_0x534e7d,_0xe25019[_0x4cc204('0x25ba')]=_0x380706,_0xe25019['exportSelectedDispositions']=_0x26b810,_0xe25019[_0x4cc204('0x1e3b')]=_0xa9dbcc,_0xe25019[_0x4cc204('0x3b4')]=_0x5cfefe,_0xe25019[_0x4cc204('0xe69')]=_0x1cf49f;function _0x583abe(_0x1a6ead,_0x23b76a){const _0x2fd2e8=_0x4cc204;_0xe25019[_0x2fd2e8('0x2594')]=_0x1a6ead||{},_0xe25019[_0x2fd2e8('0xe28')]=typeof _0x23b76a!==_0x2fd2e8('0xedb')?_0x23b76a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xe25019[_0x2fd2e8('0x135a')][_0x2fd2e8('0x26b2')]=_0xe25019[_0x2fd2e8('0x2594')]['id'],_0xe25019[_0x2fd2e8('0x135a')]['id']=_0xe25019[_0x2fd2e8('0x2594')]['id'],_0x429849();}function _0x534e7d(_0x2222bb,_0x42ecba){const _0x38cb06=_0x4cc204;_0x5d0063[_0x38cb06('0x2fa')]({'controller':_0x38cb06('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x38cb06('0x16b1')](_0x40cdf1['body']),'targetEvent':_0x2222bb,'clickOutsideToClose':!![],'locals':{'disposition':_0x42ecba,'dispositions':_0xe25019['dispositions'][_0x38cb06('0x25df')],'model':{'id':_0xe25019[_0x38cb06('0x2594')]['id'],'field':_0x38cb06('0x26b2')},'license':null,'setting':null,'crudPermissions':_0xe25019[_0x38cb06('0xe28')]}})['then'](function(_0x406ad3){if(_0x406ad3)_0x429849();});}function _0x285134(_0x40b2a5,_0xcf54f0){const _0x81d8a6=_0x4cc204,_0x1a77b9=_0x283545()[_0x81d8a6('0xc5d')](_0xe25019[_0x81d8a6('0x818')][_0x81d8a6('0x25df')],['ParentId',_0x40b2a5['id']]),_0x4252df=_0x5d0063[_0x81d8a6('0x112e')]()[_0x81d8a6('0x14e4')](_0x17aa8e[_0x81d8a6('0x1b11')](_0x81d8a6('0x29e')))['content'](_0x17aa8e[_0x81d8a6('0x1b11')]('TOOLS.NOTIFICATIONS.'+(_0x1a77b9?_0x81d8a6('0x40a'):_0x81d8a6('0x281c')),{'name':_0x40b2a5[_0x81d8a6('0x1a8d')]}))[_0x81d8a6('0x10bc')](_0x81d8a6('0x1f86'))[_0x81d8a6('0x24d0')](_0xcf54f0)['ok']('OK')[_0x81d8a6('0x1801')](_0x17aa8e[_0x81d8a6('0x1b11')](_0x81d8a6('0x1061')));_0x5d0063[_0x81d8a6('0x2fa')](_0x4252df)[_0x81d8a6('0x2788')](function(){_0x380706(_0x40b2a5);});}function _0x27c082(_0x5c2fab){const _0x89d164=_0x4cc204;_0xe25019[_0x89d164('0x818')]=_0x5c2fab||{'count':0x0,'rows':[]};}function _0x429849(){const _0x4bdb18=_0x4cc204;_0xe25019[_0x4bdb18('0x135a')][_0x4bdb18('0x19e')]=(_0xe25019[_0x4bdb18('0x135a')][_0x4bdb18('0x23f5')]-0x1)*_0xe25019[_0x4bdb18('0x135a')][_0x4bdb18('0x68e')],_0xe25019[_0x4bdb18('0x1808')]=_0x1d0b6c[_0x4bdb18('0x2594')][_0x4bdb18('0x2069')](_0xe25019[_0x4bdb18('0x135a')],_0x27c082)[_0x4bdb18('0x1714')];}function _0x380706(_0x1a2b3a){const _0x414bdf=_0x4cc204;_0x1d0b6c['disposition'][_0x414bdf('0x17c4')]({'id':_0x1a2b3a['id']})[_0x414bdf('0x1714')][_0x414bdf('0x2788')](function(){const _0x5533cc=_0x414bdf;_0x429849(),_0x520ed7[_0x5533cc('0x173b')]({'title':_0x17aa8e['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x414bdf('0x1cb5')](function(_0xf3fa89){const _0x923575=_0x414bdf;if(_0xf3fa89[_0x923575('0x11fc')]&&_0xf3fa89[_0x923575('0x11fc')][_0x923575('0x25be')]&&_0xf3fa89[_0x923575('0x11fc')]['errors'][_0x923575('0x2566')]){_0xe25019['errors']=_0xf3fa89[_0x923575('0x11fc')][_0x923575('0x25be')]||[{'message':_0xf3fa89[_0x923575('0x17df')](),'type':_0x923575('0x1410')}];for(let _0x206de8=0x0;_0x206de8<_0xf3fa89['data']['errors'][_0x923575('0x2566')];_0x206de8++){_0x520ed7['error']({'title':_0xf3fa89[_0x923575('0x11fc')][_0x923575('0x25be')][_0x206de8][_0x923575('0x1d7')],'msg':_0xf3fa89[_0x923575('0x11fc')]['errors'][_0x206de8][_0x923575('0x15e2')]});}}else _0x520ed7[_0x923575('0x5e8')]({'title':_0xf3fa89['status']?_0x923575('0x15d1')+_0xf3fa89[_0x923575('0x1b51')]+_0x923575('0x1b0b')+_0xf3fa89[_0x923575('0x22ce')]:_0x923575('0x1410'),'msg':_0xf3fa89['data']?JSON[_0x923575('0x1be0')](_0xf3fa89['data'][_0x923575('0x15e2')]):_0xf3fa89[_0x923575('0x15e2')]||_0xf3fa89[_0x923575('0x17df')]()});});}function _0x26b810(){const _0x391dcb=_0x4cc204,_0x3c5787=angular[_0x391dcb('0x2669')](_0xe25019[_0x391dcb('0x25d8')]);return _0xe25019['selectedDispositions']=[],_0x3c5787;}function _0xa9dbcc(_0x426f79){const _0xcbe45e=_0x4cc204,_0x1904a2=_0x5d0063[_0xcbe45e('0x112e')]()[_0xcbe45e('0x14e4')](_0x17aa8e[_0xcbe45e('0x1b11')](_0xcbe45e('0x63d')))[_0xcbe45e('0x1c98')](_0x17aa8e['instant'](_0xcbe45e('0x153f'),{'total':_0xe25019[_0xcbe45e('0x25d8')][_0xcbe45e('0x2566')]}))['ariaLabel'](_0xcbe45e('0x248b'))[_0xcbe45e('0x24d0')](_0x426f79)['ok']('OK')[_0xcbe45e('0x1801')](_0x17aa8e['instant']('TOOLS.CANCEL'));_0x5d0063[_0xcbe45e('0x2fa')](_0x1904a2)['then'](function(){const _0x34b3b7=_0xcbe45e;_0xe25019[_0x34b3b7('0x25d8')][_0x34b3b7('0x1534')](function(_0x2b6684){_0x380706(_0x2b6684);}),_0xe25019[_0x34b3b7('0x25d8')]=[];});}function _0x5cfefe(){_0xe25019['selectedDispositions']=[];}function _0x1cf49f(){const _0x539a4e=_0x4cc204;_0xe25019['selectedDispositions']=_0xe25019['dispositions'][_0x539a4e('0x25df')];}let _0x3b942d=!![],_0x2b6bc5=0x1;_0x357416[_0x4cc204('0x1662')](_0x4cc204('0x2571'),function(_0x37a794,_0x47290d){const _0x34962a=_0x4cc204;_0x3b942d?_0x5bc549(function(){_0x3b942d=![];}):(!_0x47290d&&(_0x2b6bc5=_0xe25019[_0x34962a('0x135a')][_0x34962a('0x23f5')]),_0x37a794!==_0x47290d&&(_0xe25019[_0x34962a('0x135a')][_0x34962a('0x23f5')]=0x1),!_0x37a794&&(_0xe25019[_0x34962a('0x135a')]['page']=_0x2b6bc5),_0x429849());});}const _0x158f6a=_0x43f38e,_0x4603a4=_0x18dd13['p']+_0x34e79e('0x41');_0x268959[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x2594'),_0x34e79e('0xec9')];function _0x268959(_0x4724b,_0x1c92da,_0x3a5efc,_0x41539a,_0x2a7b22,_0x19625e,_0xcb7d6b,_0x1b49a4,_0x1b3df1,_0x214a06,_0x20c9e3,_0x3512a1){const _0x47381e=_0x34e79e,_0x5da0e7=this;_0x5da0e7[_0x47381e('0x9cb')]=_0x214a06[_0x47381e('0x24cc')](),_0x5da0e7[_0x47381e('0x130d')]=_0x19625e,_0x5da0e7['setting']=_0xcb7d6b,_0x5da0e7[_0x47381e('0x18ad')]=_0x5da0e7[_0x47381e('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5da0e7[_0x47381e('0xe9')]=_0x1c92da[_0x47381e('0x170c')]()+_0x47381e('0x726')+_0x1c92da[_0x47381e('0x1c6a')](),_0x5da0e7[_0x47381e('0x2594')]=_0x20c9e3||_0x4724b[_0x47381e('0x4b9')][_0x47381e('0x2594')]||{},_0x5da0e7[_0x47381e('0xec9')]=_0x3512a1&&_0x3512a1[_0x47381e('0x338')]==0x1?_0x3512a1['rows'][0x0]:null,_0x5da0e7[_0x47381e('0xe28')]=_0x214a06[_0x47381e('0x157e')](_0x5da0e7[_0x47381e('0xec9')]?_0x5da0e7[_0x47381e('0xec9')][_0x47381e('0xe28')]:null),_0x5da0e7[_0x47381e('0x1193')]={},_0x5da0e7[_0x47381e('0xcb3')]=_0x4724b[_0x47381e('0x4b9')][_0x47381e('0x24f6')]||0x0,_0x5da0e7[_0x47381e('0x1fc7')]=_0x3ddc18,_0x5da0e7[_0x47381e('0x1113')]=_0x362daf,_0x5da0e7[_0x47381e('0x204f')]=_0x1b3df1[_0x47381e('0x2276')],_0x5da0e7[_0x47381e('0x23a0')]=_0x1cf0c5,_0x5da0e7[_0x47381e('0xee7')]=_0xee56a1,_0x214a06[_0x47381e('0x1516')](_0x47381e('0xe23'))?_0x1b49a4[_0x47381e('0x1ba4')][_0x47381e('0x1335')]({'fields':_0x47381e('0x1338'),'sort':_0x47381e('0x1a8d')})['$promise'][_0x47381e('0x2788')](function(_0xf2daa){const _0x25c326=_0x47381e;_0x5da0e7[_0x25c326('0x2')]=_0xf2daa[_0x25c326('0x25df')]||[];})[_0x47381e('0x1cb5')](function(_0x2c1ab0){const _0x481126=_0x47381e;_0x1b3df1['error']({'title':_0x2c1ab0[_0x481126('0x1b51')]?_0x481126('0x15d1')+_0x2c1ab0['status']+_0x481126('0x1b0b')+_0x2c1ab0['statusText']:_0x481126('0x11da'),'msg':_0x2c1ab0[_0x481126('0x11fc')]?JSON[_0x481126('0x1be0')](_0x2c1ab0['data']):_0x2c1ab0[_0x481126('0x17df')]()});}):_0x1b49a4[_0x47381e('0x1ba4')]['get']({'fields':_0x47381e('0x1338'),'sort':_0x47381e('0x1a8d')})['$promise']['then'](function(_0x461f63){const _0x5db61d=_0x47381e;_0x5da0e7[_0x5db61d('0x2')]=_0x461f63[_0x5db61d('0x25df')]||[];})[_0x47381e('0x2788')](function(){const _0x8f3ff=_0x47381e;return _0x1b49a4['userProfileSection'][_0x8f3ff('0x1335')]({'userProfileId':_0x5da0e7[_0x8f3ff('0x9cb')][_0x8f3ff('0x237f')],'sectionId':0x12d})[_0x8f3ff('0x1714')];})[_0x47381e('0x2788')](function(_0x3df8e3){const _0x49cd27=_0x47381e,_0x4876ae=_0x3df8e3&&_0x3df8e3[_0x49cd27('0x25df')]?_0x3df8e3[_0x49cd27('0x25df')][0x0]:null;if(!_0x4876ae){const _0xd8b795=[];let _0x431c0f=null;_0x5da0e7[_0x49cd27('0x2594')]&&(_0x431c0f=_0x283545()[_0x49cd27('0x20e8')](_0x5da0e7['lists'],{'id':Number(_0x5da0e7[_0x49cd27('0x2594')][_0x49cd27('0x354')])}));for(let _0x23f57b=0x0;_0x23f57b<_0x5da0e7[_0x49cd27('0x2')][_0x49cd27('0x2566')];_0x23f57b++){_0x431c0f&&_0x5da0e7[_0x49cd27('0x2')][_0x23f57b]['id']===_0x431c0f['id']&&(_0x5da0e7[_0x49cd27('0x2')][_0x23f57b][_0x49cd27('0x3bf')]=![],_0xd8b795[_0x49cd27('0x13e3')](_0x5da0e7['lists'][_0x23f57b]));}_0x5da0e7[_0x49cd27('0x2')]=_0xd8b795;}else{if(!_0x4876ae['autoAssociation'])return _0x1b49a4[_0x49cd27('0x1050')][_0x49cd27('0x1335')]({'sectionId':_0x4876ae['id']})[_0x49cd27('0x1714')][_0x49cd27('0x2788')](function(_0x4c252c){const _0x5661de=_0x49cd27,_0x574967=_0x283545()[_0x5661de('0x155d')](_0x4c252c[_0x5661de('0x25df')],function(_0x184b73){const _0x1da94d=_0x5661de;return _0x283545()[_0x1da94d('0x20e8')](_0x5da0e7[_0x1da94d('0x2')],{'id':_0x184b73[_0x1da94d('0x2707')]});});let _0x4971a0=null;_0x5da0e7[_0x5661de('0x2594')]&&(_0x4971a0=_0x283545()[_0x5661de('0x20e8')](_0x5da0e7['lists'],{'id':Number(_0x5da0e7[_0x5661de('0x2594')]['ListId'])}));if(_0x4971a0&&!_0x283545()[_0x5661de('0xc5d')](_0x574967,['id',_0x4971a0['id']])){const _0x4515a9=_0x283545()['find'](_0x5da0e7[_0x5661de('0x2')],{'id':_0x4971a0['id']});_0x4515a9[_0x5661de('0x3bf')]=![],_0x574967[_0x5661de('0x13e3')](_0x4515a9);}_0x5da0e7[_0x5661de('0x2')]=_0x574967;});}})[_0x47381e('0x1cb5')](function(_0x45d0fd){const _0x1b66a1=_0x47381e;_0x1b3df1[_0x1b66a1('0x5e8')]({'title':_0x45d0fd[_0x1b66a1('0x1b51')]?_0x1b66a1('0x15d1')+_0x45d0fd[_0x1b66a1('0x1b51')]+_0x1b66a1('0x1b0b')+_0x45d0fd[_0x1b66a1('0x22ce')]:'SYSTEM:GETlists','msg':_0x45d0fd[_0x1b66a1('0x11fc')]?JSON['stringify'](_0x45d0fd['data']):_0x45d0fd[_0x1b66a1('0x17df')]()});}),_0x214a06[_0x47381e('0x1516')](_0x47381e('0xe23'))?_0x1b49a4[_0x47381e('0x619')]['get']({'fields':_0x47381e('0xcfa'),'sort':_0x47381e('0x1a8d'),'nolimit':_0x47381e('0x1001')})['$promise'][_0x47381e('0x2788')](function(_0x59058b){const _0x3e9979=_0x47381e;_0x5da0e7[_0x3e9979('0x225d')]=_0x59058b[_0x3e9979('0x25df')]||[];})[_0x47381e('0x1cb5')](function(_0x2094bd){const _0x148d4a=_0x47381e;_0x1b3df1[_0x148d4a('0x5e8')]({'title':_0x2094bd[_0x148d4a('0x1b51')]?'API:'+_0x2094bd['status']+_0x148d4a('0x1b0b')+_0x2094bd[_0x148d4a('0x22ce')]:_0x148d4a('0x10d8'),'msg':_0x2094bd['data']?JSON[_0x148d4a('0x1be0')](_0x2094bd['data']):_0x2094bd[_0x148d4a('0x17df')]()});}):_0x1b49a4[_0x47381e('0x619')][_0x47381e('0x1335')]({'fields':_0x47381e('0xcfa'),'sort':'name','nolimit':_0x47381e('0x1001')})['$promise'][_0x47381e('0x2788')](function(_0x6947da){const _0x500589=_0x47381e;_0x5da0e7[_0x500589('0x225d')]=_0x6947da[_0x500589('0x25df')]||[];})[_0x47381e('0x2788')](function(){const _0x438013=_0x47381e;return _0x1b49a4[_0x438013('0xec9')][_0x438013('0x1335')]({'userProfileId':_0x5da0e7['currentUser'][_0x438013('0x237f')],'sectionId':0x3ed})[_0x438013('0x1714')];})[_0x47381e('0x2788')](function(_0x50a879){const _0x2004fa=_0x47381e,_0x4f75e4=_0x50a879&&_0x50a879[_0x2004fa('0x25df')]?_0x50a879[_0x2004fa('0x25df')][0x0]:null;if(!_0x4f75e4)_0x5da0e7[_0x2004fa('0x225d')]=[];else{if(!_0x4f75e4[_0x2004fa('0x1c0a')])return _0x1b49a4[_0x2004fa('0x1050')][_0x2004fa('0x1335')]({'sectionId':_0x4f75e4['id']})[_0x2004fa('0x1714')][_0x2004fa('0x2788')](function(_0x1175b0){const _0x4b09a4=_0x2004fa,_0xac0fde=_0x283545()[_0x4b09a4('0x155d')](_0x1175b0[_0x4b09a4('0x25df')],function(_0xd57158){const _0xe6b760=_0x4b09a4;return _0x283545()[_0xe6b760('0x20e8')](_0x5da0e7[_0xe6b760('0x225d')],{'id':_0xd57158['resourceId']});});_0x5da0e7[_0x4b09a4('0x225d')][_0x4b09a4('0x1534')](function(_0x6bed07){const _0x59bfe3=_0x4b09a4;!_0x283545()[_0x59bfe3('0xc5d')](_0xac0fde,['id',_0x6bed07['id']])&&(_0x6bed07[_0x59bfe3('0x3bf')]=![]),_0xac0fde[_0x59bfe3('0x13e3')](_0x6bed07);}),_0x5da0e7[_0x4b09a4('0x225d')]=_0xac0fde;});}})['catch'](function(_0x2800f5){const _0x77daa=_0x47381e;_0x1b3df1[_0x77daa('0x5e8')]({'title':_0x2800f5[_0x77daa('0x1b51')]?_0x77daa('0x15d1')+_0x2800f5[_0x77daa('0x1b51')]+'\x20-\x20'+_0x2800f5[_0x77daa('0x22ce')]:_0x77daa('0x7d9'),'msg':_0x2800f5[_0x77daa('0x11fc')]?JSON['stringify'](_0x2800f5[_0x77daa('0x11fc')]):_0x2800f5['toString']()});});function _0x3ddc18(){const _0x4f4be1=_0x47381e;if(_0x214a06['hasRole'](_0x4f4be1('0xe23')))_0x4724b['go'](_0x4f4be1('0x1145'),{});else return _0x1b49a4[_0x4f4be1('0xec9')][_0x4f4be1('0x1335')]({'userProfileId':_0x214a06[_0x4f4be1('0x24cc')]()[_0x4f4be1('0x237f')],'sectionId':0x262})[_0x4f4be1('0x1714')][_0x4f4be1('0x2788')](function(_0x564785){const _0x3e0ee4=_0x4f4be1,_0x5bfcc1=_0x564785&&_0x564785[_0x3e0ee4('0x25df')]?_0x564785[_0x3e0ee4('0x25df')][0x0]:null;_0x5bfcc1&&_0x5bfcc1['enabled']?_0x4724b['go'](_0x3e0ee4('0x1145'),{}):_0x1b3df1['info']({'title':_0x2a7b22['instant'](_0x3e0ee4('0x5be')),'msg':_0x2a7b22['instant'](_0x3e0ee4('0x1abc'))});})['catch'](function(_0x480362){const _0x4e3775=_0x4f4be1;_0x1b3df1['error']({'title':_0x480362[_0x4e3775('0x1b51')]?'API:'+_0x480362['status']+_0x4e3775('0x1b0b')+_0x480362[_0x4e3775('0x22ce')]:_0x4e3775('0x2292'),'msg':_0x480362[_0x4e3775('0x1b51')]?JSON['stringify'](_0x480362[_0x4e3775('0x11fc')]):_0x480362['toString']()});});}function _0x362daf(_0x467a81,_0x2cff59){const _0x1a78b6=_0x47381e;_0x3a5efc[_0x1a78b6('0x2fa')]({'controller':_0x1a78b6('0x8e0'),'controllerAs':'vm','templateUrl':_0x4603a4,'parent':angular[_0x1a78b6('0x16b1')](_0x41539a['body']),'targetEvent':_0x2cff59,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x467a81,'mailAccounts':_0x5da0e7[_0x1a78b6('0x1e22')]?_0x5da0e7[_0x1a78b6('0x1e22')][_0x1a78b6('0x25df')]:[],'crudPermissions':_0x5da0e7['crudPermissions'],'realtime':![]}});}function _0x1cf0c5(){const _0x418ede=_0x47381e;_0x4724b['go'](_0x418ede('0x1de9'),{},{'reload':_0x418ede('0x1de9')});}function _0xee56a1(){const _0x58d300=_0x47381e;_0x1b49a4[_0x58d300('0x2594')][_0x58d300('0x2740')]({'id':_0x5da0e7[_0x58d300('0x2594')]['id']},_0x5da0e7['mailAccount'])['$promise']['then'](function(){const _0x336e25=_0x58d300;_0x1b3df1[_0x336e25('0x173b')]({'title':_0x336e25('0x13e1'),'msg':_0x5da0e7[_0x336e25('0x2594')][_0x336e25('0x1a8d')]?_0x5da0e7[_0x336e25('0x2594')][_0x336e25('0x1a8d')]+_0x336e25('0x6f8'):''});})[_0x58d300('0x1cb5')](function(_0x28fab3){const _0x6c9ba4=_0x58d300;_0x1b3df1[_0x6c9ba4('0x5e8')]({'title':_0x28fab3[_0x6c9ba4('0x1b51')]?_0x6c9ba4('0x15d1')+_0x28fab3[_0x6c9ba4('0x1b51')]+_0x6c9ba4('0x1b0b')+_0x28fab3[_0x6c9ba4('0x22ce')]:'SYSTEM:GETmailAccount','msg':_0x28fab3['data']?JSON[_0x6c9ba4('0x1be0')](_0x28fab3[_0x6c9ba4('0x11fc')]):_0x28fab3['toString']()});});}}const _0x3833e4=_0x268959,_0x3bf4b6=_0x18dd13['p']+_0x34e79e('0xcaa');_0x320f56['$inject']=['$scope','$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x1e22'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty','Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x320f56(_0x50323d,_0x56d549,_0x39330d,_0x40b4a0,_0x9afa9c,_0x44ab47,_0x79a3f4,_0x303aba,_0x25f758,_0x3229f1,_0x5774ad,_0xce2131,_0xe75e73,_0x137ab4,_0x50c127,_0x1eeb6f,_0x125ec8){const _0x1cdf5c=_0x34e79e,_0x57a89c=this;_0x57a89c['license']=_0x1eeb6f,_0x57a89c['setting']=_0x125ec8,_0x57a89c['currentUser']=_0x50c127[_0x1cdf5c('0x24cc')](),_0x57a89c[_0x1cdf5c('0x1e22')]=_0x25f758||{'count':0x0,'rows':[]},_0x57a89c[_0x1cdf5c('0x63c')]=_0x3229f1,_0x57a89c['userProfileSection']=_0x5774ad&&_0x5774ad[_0x1cdf5c('0x338')]==0x1?_0x5774ad['rows'][0x0]:null,_0x57a89c[_0x1cdf5c('0xe28')]=_0x50c127[_0x1cdf5c('0x157e')](_0x57a89c[_0x1cdf5c('0xec9')]?_0x57a89c[_0x1cdf5c('0xec9')][_0x1cdf5c('0xe28')]:null),_0x57a89c[_0x1cdf5c('0x26a9')]='mailAccounts',_0x57a89c['listOrder']='',_0x57a89c[_0x1cdf5c('0x25e2')]=null,_0x57a89c[_0x1cdf5c('0x239f')]=[],_0x57a89c[_0x1cdf5c('0x135a')]={'fields':_0x1cdf5c('0x14a0'),'sort':_0x1cdf5c('0x1cee'),'limit':0xa,'page':0x1},_0x57a89c[_0x1cdf5c('0x2573')]=_0x283545()[_0x1cdf5c('0x13cf')]([{'option':_0x1cdf5c('0x56'),'value':'null'},{'option':_0x1cdf5c('0x17aa'),'value':_0x1cdf5c('0x27ac')},{'option':'Hotmail','value':_0x1cdf5c('0xecb')},{'option':_0x1cdf5c('0x643'),'value':_0x1cdf5c('0xda3')},{'option':_0x1cdf5c('0x1f63'),'value':'\x27outlook365\x27'}],function(_0x1b475c){const _0xb2f43c=_0x1cdf5c;return _0x283545()['replace'](_0x1b475c[_0xb2f43c('0x49')],new RegExp('\x27','g'),'');}),_0x57a89c['arrayImap.service']=_0x283545()[_0x1cdf5c('0x13cf')]([{'option':'Custom','value':_0x1cdf5c('0x954')},{'option':_0x1cdf5c('0x17aa'),'value':_0x1cdf5c('0x27ac')},{'option':'Hotmail','value':_0x1cdf5c('0xecb')},{'option':_0x1cdf5c('0x643'),'value':_0x1cdf5c('0xda3')},{'option':_0x1cdf5c('0x1f63'),'value':_0x1cdf5c('0x1d19')}],function(_0x46e93f){const _0x3def1e=_0x1cdf5c;return _0x283545()[_0x3def1e('0x10a4')](_0x46e93f[_0x3def1e('0x49')],new RegExp('\x27','g'),'');}),_0x57a89c[_0x1cdf5c('0x2746')]=_0x283545()['keyBy']([{'option':_0x1cdf5c('0x56'),'value':'null'},{'option':'Gmail','value':'\x27gmail\x27'},{'option':'Hotmail','value':'\x27hotmail\x27'},{'option':_0x1cdf5c('0x643'),'value':'\x27yahoo\x27'},{'option':_0x1cdf5c('0x1f63'),'value':_0x1cdf5c('0x1d19')}],function(_0x4be883){const _0x54a72d=_0x1cdf5c;return _0x283545()[_0x54a72d('0x10a4')](_0x4be883[_0x54a72d('0x49')],new RegExp('\x27','g'),'');}),_0x57a89c['editstate']=_0x2215cf,_0x57a89c[_0x1cdf5c('0x1129')]=_0x5af9fe,_0x57a89c[_0x1cdf5c('0x3aa')]=_0x4e6070,_0x57a89c[_0x1cdf5c('0x8d1')]=_0x1d3e21,_0x57a89c[_0x1cdf5c('0x1113')]=_0xf36361,_0x57a89c[_0x1cdf5c('0x1e5')]=_0x4d949b,_0x57a89c[_0x1cdf5c('0x173b')]=_0x2f7162,_0x57a89c[_0x1cdf5c('0x1688')]=_0x5541c5,_0x57a89c[_0x1cdf5c('0x1983')]=_0x58c316,_0x57a89c['deleteMailAccount']=_0x513433,_0x57a89c[_0x1cdf5c('0x16aa')]=_0xd038c8,_0x57a89c[_0x1cdf5c('0x22e2')]=_0x367698,_0x57a89c[_0x1cdf5c('0x2605')]=_0x1e1fe9,_0x57a89c[_0x1cdf5c('0x2714')]=_0xbc5d78,_0x50c127[_0x1cdf5c('0x1516')](_0x1cdf5c('0xe23'))?_0xce2131['cmList'][_0x1cdf5c('0x1335')]({'fields':'id,name','sort':_0x1cdf5c('0x1a8d')})[_0x1cdf5c('0x1714')][_0x1cdf5c('0x2788')](function(_0x12740e){const _0x5afa47=_0x1cdf5c;_0x57a89c[_0x5afa47('0x2')]=_0x12740e[_0x5afa47('0x25df')]||[];})[_0x1cdf5c('0x1cb5')](function(_0x43a802){const _0x5e7a76=_0x1cdf5c;_0x137ab4[_0x5e7a76('0x5e8')]({'title':_0x43a802[_0x5e7a76('0x1b51')]?'API:'+_0x43a802[_0x5e7a76('0x1b51')]+_0x5e7a76('0x1b0b')+_0x43a802[_0x5e7a76('0x22ce')]:_0x5e7a76('0x11da'),'msg':_0x43a802[_0x5e7a76('0x11fc')]?JSON[_0x5e7a76('0x1be0')](_0x43a802[_0x5e7a76('0x11fc')]):_0x43a802[_0x5e7a76('0x17df')]()});}):_0xce2131[_0x1cdf5c('0x1ba4')][_0x1cdf5c('0x1335')]({'fields':_0x1cdf5c('0x1338'),'sort':_0x1cdf5c('0x1a8d')})[_0x1cdf5c('0x1714')][_0x1cdf5c('0x2788')](function(_0x4b96ce){const _0x1ce34f=_0x1cdf5c;_0x57a89c['lists']=_0x4b96ce[_0x1ce34f('0x25df')]||[];})[_0x1cdf5c('0x2788')](function(){const _0x379f80=_0x1cdf5c;return _0xce2131['userProfileSection'][_0x379f80('0x1335')]({'userProfileId':_0x57a89c[_0x379f80('0x9cb')][_0x379f80('0x237f')],'sectionId':0x12d})[_0x379f80('0x1714')];})[_0x1cdf5c('0x2788')](function(_0x47111f){const _0x4b5035=_0x1cdf5c,_0x3a6c82=_0x47111f&&_0x47111f[_0x4b5035('0x25df')]?_0x47111f[_0x4b5035('0x25df')][0x0]:null;if(!_0x3a6c82){const _0xd1ff14=[];let _0x17aa27=null;_0x57a89c[_0x4b5035('0x2594')]&&(_0x17aa27=_0x283545()[_0x4b5035('0x20e8')](_0x57a89c[_0x4b5035('0x2')],{'id':Number(_0x57a89c[_0x4b5035('0x2594')][_0x4b5035('0x354')])}));for(let _0x39f126=0x0;_0x39f126<_0x57a89c[_0x4b5035('0x2')][_0x4b5035('0x2566')];_0x39f126++){_0x17aa27&&_0x57a89c[_0x4b5035('0x2')][_0x39f126]['id']===_0x17aa27['id']&&(_0x57a89c[_0x4b5035('0x2')][_0x39f126][_0x4b5035('0x3bf')]=![],_0xd1ff14[_0x4b5035('0x13e3')](_0x57a89c['lists'][_0x39f126]));}_0x57a89c[_0x4b5035('0x2')]=_0xd1ff14;}else{if(!_0x3a6c82['autoAssociation'])return _0xce2131[_0x4b5035('0x1050')][_0x4b5035('0x1335')]({'sectionId':_0x3a6c82['id']})['$promise'][_0x4b5035('0x2788')](function(_0x23ef2a){const _0x4376bc=_0x4b5035,_0x842cbd=_0x283545()[_0x4376bc('0x155d')](_0x23ef2a[_0x4376bc('0x25df')],function(_0x56709b){const _0x155f55=_0x4376bc;return _0x283545()[_0x155f55('0x20e8')](_0x57a89c[_0x155f55('0x2')],{'id':_0x56709b[_0x155f55('0x2707')]});});let _0x1d81a4=null;_0x57a89c[_0x4376bc('0x2594')]&&(_0x1d81a4=_0x283545()[_0x4376bc('0x20e8')](_0x57a89c[_0x4376bc('0x2')],{'id':Number(_0x57a89c['mailAccount']['ListId'])}));if(_0x1d81a4&&!_0x283545()['some'](_0x842cbd,['id',_0x1d81a4['id']])){const _0x3ebe45=_0x283545()['find'](_0x57a89c['lists'],{'id':_0x1d81a4['id']});_0x3ebe45[_0x4376bc('0x3bf')]=![],_0x842cbd['push'](_0x3ebe45);}_0x57a89c['lists']=_0x842cbd;});}})['catch'](function(_0x15abb0){const _0x3f63cc=_0x1cdf5c;_0x137ab4['error']({'title':_0x15abb0[_0x3f63cc('0x1b51')]?_0x3f63cc('0x15d1')+_0x15abb0[_0x3f63cc('0x1b51')]+_0x3f63cc('0x1b0b')+_0x15abb0[_0x3f63cc('0x22ce')]:_0x3f63cc('0x999'),'msg':_0x15abb0[_0x3f63cc('0x11fc')]?JSON[_0x3f63cc('0x1be0')](_0x15abb0[_0x3f63cc('0x11fc')]):_0x15abb0['toString']()});});function _0x2215cf(_0x3efb3c){const _0x36f395=_0x1cdf5c;_0x39330d['go'](_0x36f395('0x9b1'),{'id':_0x3efb3c['id'],'mailAccount':_0x3efb3c,'crudPermissions':_0x57a89c[_0x36f395('0xe28')]});}function _0x5af9fe(_0x26f81b){const _0x58f947=_0x1cdf5c;if(_0x26f81b&&_0x26f81b['id'])return _0xce2131[_0x58f947('0x2594')][_0x58f947('0xcfe')]({'id':_0x26f81b['id']})[_0x58f947('0x1714')][_0x58f947('0x2788')](function(){const _0x47cff4=_0x58f947;_0x137ab4[_0x47cff4('0x173b')]({'title':_0x47cff4('0x2736'),'msg':'Connection\x20succeded!'});})[_0x58f947('0x1cb5')](function(_0x3a68bf){const _0x5e8220=_0x58f947;_0x137ab4[_0x5e8220('0x5e8')]({'title':_0x5e8220('0x2736'),'msg':_0x3a68bf[_0x5e8220('0x11fc')]?JSON[_0x5e8220('0x1be0')](_0x3a68bf[_0x5e8220('0x11fc')]):_0x3a68bf[_0x5e8220('0x17df')]()});});else _0x137ab4[_0x58f947('0x5e8')]({'title':_0x58f947('0x2736'),'msg':_0x58f947('0xee6')});}function _0x4e6070(_0x23121e){const _0x58e0e3=_0x1cdf5c;_0x39330d['go'](_0x58e0e3('0x9b1'),{'id':_0x23121e['id'],'tab':0x7});}function _0x1d3e21(){const _0xc3b828=_0x1cdf5c;if(_0x50c127[_0xc3b828('0x1516')](_0xc3b828('0xe23')))_0x39330d['go']('app.mail.realtime.accounts',{});else return _0xce2131[_0xc3b828('0xec9')][_0xc3b828('0x1335')]({'userProfileId':_0x50c127[_0xc3b828('0x24cc')]()[_0xc3b828('0x237f')],'sectionId':0x262})['$promise'][_0xc3b828('0x2788')](function(_0x5b4fce){const _0x5483b2=_0xc3b828,_0x435679=_0x5b4fce&&_0x5b4fce[_0x5483b2('0x25df')]?_0x5b4fce[_0x5483b2('0x25df')][0x0]:null;_0x435679&&_0x435679['enabled']?_0x39330d['go'](_0x5483b2('0x1145'),{}):_0x137ab4[_0x5483b2('0x2276')]({'title':_0x303aba[_0x5483b2('0x1b11')](_0x5483b2('0x5be')),'msg':_0x303aba[_0x5483b2('0x1b11')](_0x5483b2('0x1abc'))});})['catch'](function(_0x54d59e){const _0x3bd3af=_0xc3b828;_0x137ab4[_0x3bd3af('0x5e8')]({'title':_0x54d59e[_0x3bd3af('0x1b51')]?_0x3bd3af('0x15d1')+_0x54d59e['status']+'\x20-\x20'+_0x54d59e[_0x3bd3af('0x22ce')]:'USERPROFILE:GET_SECTION','msg':_0x54d59e[_0x3bd3af('0x1b51')]?JSON[_0x3bd3af('0x1be0')](_0x54d59e['data']):_0x54d59e[_0x3bd3af('0x17df')]()});});}function _0xf36361(_0x5c7334,_0x171a1d){const _0x2733f5=_0x1cdf5c;_0x9afa9c[_0x2733f5('0x2fa')]({'controller':_0x2733f5('0x8e0'),'controllerAs':'vm','templateUrl':_0x4603a4,'parent':angular[_0x2733f5('0x16b1')](_0x44ab47[_0x2733f5('0x945')]),'targetEvent':_0x171a1d,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x5c7334,'mailAccounts':_0x57a89c[_0x2733f5('0x1e22')]?_0x57a89c[_0x2733f5('0x1e22')][_0x2733f5('0x25df')]:[],'crudPermissions':_0x57a89c['crudPermissions'],'realtime':![]}});}function _0x4d949b(_0x4ed606,_0x57b700){const _0x4095ad=_0x1cdf5c,_0xa496f5=_0x9afa9c[_0x4095ad('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x4095ad('0x114')](_0x4095ad('0x2594'))+'?')[_0x4095ad('0x93e')](_0x4095ad('0x1670')+(_0x4ed606[_0x4095ad('0x1a8d')]||'mailAccount')+_0x4095ad('0x229e')+_0x4095ad('0x27c7'))['ariaLabel'](_0x4095ad('0x2018'))[_0x4095ad('0x24d0')](_0x57b700)['ok']('OK')['cancel'](_0x4095ad('0x1d8d'));_0x9afa9c[_0x4095ad('0x2fa')](_0xa496f5)[_0x4095ad('0x2788')](function(){_0x513433(_0x4ed606);},function(){const _0x5204cf=_0x4095ad;console[_0x5204cf('0x10df')](_0x5204cf('0x1d8d'));});}let _0x518833=!![],_0x4d93a5=0x1;_0x50323d[_0x1cdf5c('0x1662')]('vm.query.filter',function(_0x487a8a,_0x21e77a){const _0x441055=_0x1cdf5c;_0x518833?_0x79a3f4(function(){_0x518833=![];}):(!_0x21e77a&&(_0x4d93a5=_0x57a89c['query']['page']),_0x487a8a!==_0x21e77a&&(_0x57a89c['query'][_0x441055('0x23f5')]=0x1),!_0x487a8a&&(_0x57a89c[_0x441055('0x135a')][_0x441055('0x23f5')]=_0x4d93a5),_0x57a89c[_0x441055('0x1688')]());});function _0x2f7162(_0x9fa571){const _0x3848af=_0x1cdf5c;_0x57a89c[_0x3848af('0x1e22')]=_0x9fa571||{'count':0x0,'rows':[]};}function _0x5541c5(){const _0x3213f9=_0x1cdf5c;_0x57a89c[_0x3213f9('0x135a')]['offset']=(_0x57a89c[_0x3213f9('0x135a')][_0x3213f9('0x23f5')]-0x1)*_0x57a89c[_0x3213f9('0x135a')][_0x3213f9('0x68e')],_0x50c127[_0x3213f9('0x1516')]('admin')?_0x57a89c[_0x3213f9('0x1808')]=_0xce2131[_0x3213f9('0x2594')]['get'](_0x57a89c[_0x3213f9('0x135a')],_0x2f7162)[_0x3213f9('0x1714')]:(_0x57a89c[_0x3213f9('0x135a')]['id']=_0x57a89c['userProfile']['id'],_0x57a89c[_0x3213f9('0x135a')][_0x3213f9('0xb13')]='MailAccounts',_0x57a89c[_0x3213f9('0x1808')]=_0xce2131['userProfile']['getResources'](_0x57a89c[_0x3213f9('0x135a')],_0x2f7162)[_0x3213f9('0x1714')]);}function _0x58c316(_0x1033f6,_0x2be016){const _0x40637e=_0x1cdf5c;_0x9afa9c[_0x40637e('0x2fa')]({'controller':'CreateOrEditMailAccountDialogController','controllerAs':'vm','templateUrl':_0x3bf4b6,'parent':angular[_0x40637e('0x16b1')](_0x44ab47['body']),'targetEvent':_0x1033f6,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2be016,'mailAccounts':_0x57a89c[_0x40637e('0x1e22')][_0x40637e('0x25df')],'license':_0x57a89c[_0x40637e('0x130d')],'setting':_0x57a89c['setting'],'crudPermissions':_0x57a89c[_0x40637e('0xe28')]}});}function _0x513433(_0x52bbef){const _0x51b575=_0x1cdf5c;if(_0x52bbef[_0x51b575('0x24a8')])return _0x137ab4['error']({'title':_0x51b575('0x1c82'),'msg':'You\x20can\x27t\x20remove\x20service\x20account'});_0xce2131[_0x51b575('0x2594')][_0x51b575('0x17c4')]({'id':_0x52bbef['id']})['$promise'][_0x51b575('0x2788')](function(){const _0x1bb951=_0x51b575;_0x283545()[_0x1bb951('0x1a90')](_0x57a89c[_0x1bb951('0x1e22')][_0x1bb951('0x25df')],{'id':_0x52bbef['id']}),_0x57a89c['mailAccounts'][_0x1bb951('0x338')]-=0x1,!_0x57a89c['mailAccounts'][_0x1bb951('0x25df')][_0x1bb951('0x2566')]&&_0x57a89c[_0x1bb951('0x1688')](),_0x137ab4['success']({'title':_0x283545()[_0x1bb951('0x114')](_0x1bb951('0x146'))+'\x20deleted!','msg':_0x52bbef[_0x1bb951('0x1a8d')]?_0x52bbef[_0x1bb951('0x1a8d')]+_0x1bb951('0x14d4'):''});})[_0x51b575('0x1cb5')](function(_0x5aecf1){const _0x18fbb4=_0x51b575;if(_0x5aecf1[_0x18fbb4('0x11fc')]&&_0x5aecf1[_0x18fbb4('0x11fc')][_0x18fbb4('0x25be')]&&_0x5aecf1['data']['errors'][_0x18fbb4('0x2566')]){_0x57a89c[_0x18fbb4('0x25be')]=_0x5aecf1[_0x18fbb4('0x11fc')][_0x18fbb4('0x25be')]||[{'message':_0x5aecf1[_0x18fbb4('0x17df')](),'type':_0x18fbb4('0x1c9f')}];for(let _0x529955=0x0;_0x529955<_0x5aecf1['data'][_0x18fbb4('0x25be')][_0x18fbb4('0x2566')];_0x529955++){_0x137ab4[_0x18fbb4('0x5e8')]({'title':_0x5aecf1['data'][_0x18fbb4('0x25be')][_0x529955][_0x18fbb4('0x1d7')],'msg':_0x5aecf1[_0x18fbb4('0x11fc')][_0x18fbb4('0x25be')][_0x529955][_0x18fbb4('0x15e2')]});}}else _0x137ab4[_0x18fbb4('0x5e8')]({'title':_0x5aecf1['status']?_0x18fbb4('0x15d1')+_0x5aecf1[_0x18fbb4('0x1b51')]+_0x18fbb4('0x1b0b')+_0x5aecf1[_0x18fbb4('0x22ce')]:'SYSTEM:DELETEmailAccount','msg':_0x5aecf1[_0x18fbb4('0x11fc')]?JSON[_0x18fbb4('0x1be0')](_0x5aecf1[_0x18fbb4('0x11fc')][_0x18fbb4('0x15e2')]):_0x5aecf1[_0x18fbb4('0x15e2')]||_0x5aecf1[_0x18fbb4('0x17df')]()});});}function _0xd038c8(){const _0xdf5cc6=_0x1cdf5c,_0x3fa45f=angular[_0xdf5cc6('0x2669')](_0x57a89c[_0xdf5cc6('0x239f')]);return _0x57a89c[_0xdf5cc6('0x239f')]=[],_0x3fa45f;}function _0x367698(_0x43ac31){const _0x105319=_0x1cdf5c,_0x56a91d=_0x9afa9c[_0x105319('0x112e')]()[_0x105319('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?')[_0x105319('0x93e')](_0x105319('0x1670')+_0x57a89c[_0x105319('0x239f')][_0x105319('0x2566')]+_0x105319('0xbd')+_0x105319('0x27c7'))[_0x105319('0x10bc')]('delete\x20MailAccounts')[_0x105319('0x24d0')](_0x43ac31)['ok']('OK')['cancel']('CANCEL');_0x9afa9c['show'](_0x56a91d)['then'](function(){const _0x4ff58f=_0x105319;_0x57a89c[_0x4ff58f('0x239f')]['forEach'](function(_0x22b408){_0x513433(_0x22b408);}),_0x57a89c[_0x4ff58f('0x239f')]=[];});}function _0x1e1fe9(){const _0x40ba68=_0x1cdf5c;_0x57a89c[_0x40ba68('0x239f')]=[];}function _0xbc5d78(){const _0x1b986d=_0x1cdf5c;_0x57a89c[_0x1b986d('0x239f')]=_0x57a89c['mailAccounts']['rows'];}}const _0x43ba49=_0x320f56;_0xe30111[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0x1780'),_0x34e79e('0x139b'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0xe30111(_0x47475a,_0x332adf,_0x7d21fd,_0x5760dc,_0x5660ba,_0x1cd00f,_0x30d169,_0x50278a,_0x276a9c,_0x205cca,_0xc478c1,_0x56dbc0,_0x974cbd,_0x2294f9){const _0x2130b1=_0x34e79e,_0x6c017e=this;_0x6c017e['currentUser']=_0xc478c1[_0x2130b1('0x24cc')](),_0x6c017e['errors']=[],_0x6c017e[_0x2130b1('0x1af0')]=_0x974cbd,_0x6c017e[_0x2130b1('0x130d')]=_0x56dbc0,_0x6c017e[_0x2130b1('0xe28')]=_0x2294f9,_0x6c017e[_0x2130b1('0x1193')]={},_0x6c017e[_0x2130b1('0x18ad')]=_0x6c017e[_0x2130b1('0x1af0')]&&_0x6c017e[_0x2130b1('0x1af0')][_0x2130b1('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x6c017e[_0x2130b1('0x14e4')]='MAIL.EDIT_MAILQUEUE',_0x6c017e[_0x2130b1('0x139b')]=angular[_0x2130b1('0x2669')](_0x276a9c),_0x6c017e[_0x2130b1('0x1780')]=_0x50278a,_0x6c017e[_0x2130b1('0x492')]=![];!_0x6c017e['mailQueue']&&(_0x6c017e[_0x2130b1('0x139b')]={'strategy':_0x2130b1('0x1acd'),'timeout':0xa},_0x6c017e[_0x2130b1('0x14e4')]=_0x2130b1('0xe84'),_0x6c017e[_0x2130b1('0x492')]=!![]);_0x6c017e['addNewMailQueue']=_0x2965f1,_0x6c017e[_0x2130b1('0x1349')]=_0x1168b4,_0x6c017e[_0x2130b1('0x27d2')]=_0x1dc92e,_0x6c017e['getDateFromString']=_0x335ca0,_0x6c017e[_0x2130b1('0xca7')]=_0x5b07f8;function _0x2965f1(){const _0x3d2c6d=_0x2130b1;_0x6c017e[_0x3d2c6d('0x25be')]=[],_0x205cca['mailQueue'][_0x3d2c6d('0xbd0')](_0x6c017e[_0x3d2c6d('0x139b')])[_0x3d2c6d('0x1714')][_0x3d2c6d('0x2788')](function(_0x324a9b){const _0x9db30a=_0x3d2c6d;_0x6c017e[_0x9db30a('0x1780')][_0x9db30a('0xc51')](_0x324a9b['toJSON']()),_0x30d169[_0x9db30a('0x173b')]({'title':'MailQueue\x20properly\x20created','msg':_0x6c017e['mailQueue']['name']?_0x6c017e[_0x9db30a('0x139b')][_0x9db30a('0x1a8d')]+_0x9db30a('0x1e4a'):''}),_0x5b07f8(_0x324a9b);})[_0x3d2c6d('0x1cb5')](function(_0x3c0cf5){const _0x1e31fa=_0x3d2c6d;if(_0x3c0cf5[_0x1e31fa('0x11fc')]&&_0x3c0cf5[_0x1e31fa('0x11fc')]['errors']&&_0x3c0cf5[_0x1e31fa('0x11fc')][_0x1e31fa('0x25be')][_0x1e31fa('0x2566')]){_0x6c017e[_0x1e31fa('0x25be')]=_0x3c0cf5[_0x1e31fa('0x11fc')][_0x1e31fa('0x25be')]||[{'message':_0x3c0cf5[_0x1e31fa('0x17df')](),'type':_0x1e31fa('0x2728')}];for(let _0x1c04ea=0x0;_0x1c04ea<_0x3c0cf5[_0x1e31fa('0x11fc')]['errors']['length'];_0x1c04ea+=0x1){_0x30d169[_0x1e31fa('0x5e8')]({'title':_0x3c0cf5[_0x1e31fa('0x11fc')][_0x1e31fa('0x25be')][_0x1c04ea][_0x1e31fa('0x1d7')],'msg':_0x3c0cf5[_0x1e31fa('0x11fc')][_0x1e31fa('0x25be')][_0x1c04ea][_0x1e31fa('0x15e2')]});}}else _0x30d169['error']({'title':_0x3c0cf5[_0x1e31fa('0x1b51')]?_0x1e31fa('0x15d1')+_0x3c0cf5['status']+'\x20-\x20'+_0x3c0cf5[_0x1e31fa('0x22ce')]:'api.mailQueue.save','msg':_0x3c0cf5[_0x1e31fa('0x11fc')]?JSON[_0x1e31fa('0x1be0')](_0x3c0cf5[_0x1e31fa('0x11fc')][_0x1e31fa('0x15e2')]):_0x3c0cf5[_0x1e31fa('0x17df')]()});});}function _0x1168b4(){const _0x20f213=_0x2130b1;_0x6c017e[_0x20f213('0x25be')]=[],_0x205cca[_0x20f213('0x139b')]['update']({'id':_0x6c017e[_0x20f213('0x139b')]['id']},_0x6c017e[_0x20f213('0x139b')])[_0x20f213('0x1714')][_0x20f213('0x2788')](function(_0x53d908){const _0x124d44=_0x20f213,_0x5ac558=_0x283545()[_0x124d44('0x20e8')](_0x6c017e[_0x124d44('0x1780')],{'id':_0x53d908['id']});_0x5ac558&&_0x283545()[_0x124d44('0x2503')](_0x5ac558,_0x283545()[_0x124d44('0x41b')](_0x53d908[_0x124d44('0x1cbf')](),_0x283545()[_0x124d44('0x2163')](_0x5ac558))),_0x30d169['success']({'title':_0x124d44('0x1926'),'msg':_0x6c017e['mailQueue'][_0x124d44('0x1a8d')]?_0x6c017e['mailQueue'][_0x124d44('0x1a8d')]+_0x124d44('0x24cf'):''}),_0x5b07f8(_0x53d908);})[_0x20f213('0x1cb5')](function(_0x1e54f6){const _0x5b79e4=_0x20f213;if(_0x1e54f6[_0x5b79e4('0x11fc')]&&_0x1e54f6[_0x5b79e4('0x11fc')][_0x5b79e4('0x25be')]&&_0x1e54f6[_0x5b79e4('0x11fc')][_0x5b79e4('0x25be')]['length']){_0x6c017e[_0x5b79e4('0x25be')]=_0x1e54f6[_0x5b79e4('0x11fc')][_0x5b79e4('0x25be')]||[{'message':_0x1e54f6[_0x5b79e4('0x17df')](),'type':_0x5b79e4('0x1e43')}];for(let _0x50e849=0x0;_0x50e849<_0x1e54f6['data'][_0x5b79e4('0x25be')][_0x5b79e4('0x2566')];_0x50e849++){_0x30d169[_0x5b79e4('0x5e8')]({'title':_0x1e54f6[_0x5b79e4('0x11fc')][_0x5b79e4('0x25be')][_0x50e849]['type'],'msg':_0x1e54f6['data'][_0x5b79e4('0x25be')][_0x50e849][_0x5b79e4('0x15e2')]});}}else _0x30d169[_0x5b79e4('0x5e8')]({'title':_0x1e54f6[_0x5b79e4('0x1b51')]?'API:'+_0x1e54f6[_0x5b79e4('0x1b51')]+'\x20-\x20'+_0x1e54f6[_0x5b79e4('0x22ce')]:_0x5b79e4('0x1e43'),'msg':_0x1e54f6[_0x5b79e4('0x11fc')]?JSON[_0x5b79e4('0x1be0')](_0x1e54f6[_0x5b79e4('0x11fc')][_0x5b79e4('0x15e2')]):_0x1e54f6[_0x5b79e4('0x17df')]()});});}function _0x1dc92e(_0x4b8b8f){const _0x36cf77=_0x2130b1;_0x6c017e['errors']=[];const _0x51af68=_0x5760dc[_0x36cf77('0x112e')]()['title']('Are\x20you\x20sure?')['content']('The\x20mailQueue\x20will\x20be\x20deleted.')[_0x36cf77('0x10bc')](_0x36cf77('0x5d5'))['ok']('Delete')[_0x36cf77('0x1801')](_0x36cf77('0x1481'))[_0x36cf77('0x24d0')](_0x4b8b8f);_0x5760dc[_0x36cf77('0x2fa')](_0x51af68)[_0x36cf77('0x2788')](function(){const _0xa0a00e=_0x36cf77;_0x205cca[_0xa0a00e('0x139b')][_0xa0a00e('0x17c4')]({'id':_0x6c017e[_0xa0a00e('0x139b')]['id']})[_0xa0a00e('0x1714')][_0xa0a00e('0x2788')](function(){const _0x3b2d34=_0xa0a00e;_0x283545()[_0x3b2d34('0x1a90')](_0x6c017e[_0x3b2d34('0x1780')],{'id':_0x6c017e[_0x3b2d34('0x139b')]['id']}),_0x30d169['success']({'title':'MailQueue\x20properly\x20deleted!','msg':(_0x6c017e[_0x3b2d34('0x139b')][_0x3b2d34('0x1a8d')]||_0x3b2d34('0x139b'))+'\x20has\x20been\x20deleted!'}),_0x5b07f8(_0x6c017e['mailQueue']);})[_0xa0a00e('0x1cb5')](function(_0x1e3f7d){const _0x141dc9=_0xa0a00e;if(_0x1e3f7d[_0x141dc9('0x11fc')]&&_0x1e3f7d[_0x141dc9('0x11fc')][_0x141dc9('0x25be')]&&_0x1e3f7d['data']['errors']['length']){_0x6c017e[_0x141dc9('0x25be')]=_0x1e3f7d[_0x141dc9('0x11fc')][_0x141dc9('0x25be')]||[{'message':_0x1e3f7d[_0x141dc9('0x17df')](),'type':_0x141dc9('0x1db8')}];for(let _0x5a12ea=0x0;_0x5a12ea<_0x1e3f7d[_0x141dc9('0x11fc')][_0x141dc9('0x25be')][_0x141dc9('0x2566')];_0x5a12ea++){_0x30d169['error']({'title':_0x1e3f7d['data'][_0x141dc9('0x25be')][_0x5a12ea][_0x141dc9('0x1d7')],'msg':_0x1e3f7d[_0x141dc9('0x11fc')]['errors'][_0x5a12ea][_0x141dc9('0x15e2')]});}}else _0x30d169[_0x141dc9('0x5e8')]({'title':_0x1e3f7d['status']?_0x141dc9('0x15d1')+_0x1e3f7d[_0x141dc9('0x1b51')]+_0x141dc9('0x1b0b')+_0x1e3f7d[_0x141dc9('0x22ce')]:'api.mailQueue.delete','msg':_0x1e3f7d[_0x141dc9('0x11fc')]?JSON['stringify'](_0x1e3f7d[_0x141dc9('0x11fc')]['message']):_0x1e3f7d[_0x141dc9('0x15e2')]||_0x1e3f7d['toString']()});});},function(){});}function _0x335ca0(_0x17c059){return _0x17c059===null?undefined:new Date(_0x17c059);}function _0x5b07f8(_0x27cd4a){_0x5760dc['hide'](_0x27cd4a);}}const _0x1f0de2=_0xe30111;_0x403d2b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api','mailQueue',_0x34e79e('0x1780'),_0x34e79e('0x548'),'$translate',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x403d2b(_0x22c985,_0x5d1adc,_0x22d90f,_0x3e31a0,_0x1db849,_0x4c5f05,_0x2ad151,_0x2bc34e,_0x2c949a,_0x1217d3){const _0x27252b=_0x34e79e,_0x17cb3c=this;_0x17cb3c[_0x27252b('0x9cb')]=_0x2c949a[_0x27252b('0x24cc')](),_0x17cb3c[_0x27252b('0x139b')]=_0x1db849,_0x17cb3c[_0x27252b('0xe28')]=_0x1217d3,_0x17cb3c['realtime']=_0x2ad151,_0x17cb3c[_0x27252b('0x117b')]=[],_0x17cb3c[_0x27252b('0x73d')]=[],_0x17cb3c['selectedItems']=[],_0x17cb3c[_0x27252b('0x12d9')]=[],_0x17cb3c[_0x27252b('0xd0d')]=[],_0x17cb3c['pendingChanges']=![],_0x17cb3c['onInit']=_0x2c4257,_0x17cb3c[_0x27252b('0x1f8d')]=_0x544cbb,_0x17cb3c['closeDialog']=_0x14261c,_0x17cb3c[_0x27252b('0x121')]={'readOnly':!_0x17cb3c[_0x27252b('0xe28')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x27252b('0x1a8d'),'line1':_0x27252b('0x2831'),'line2':[_0x27252b('0x1a8d'),_0x27252b('0x2838')],'line3':'','labelAll':_0x2bc34e[_0x27252b('0x1b11')](_0x27252b('0x8f8')),'labelSelected':_0x2bc34e['instant']('MAIL.SELECTED_AGENTS'),'transferCallback':function(){const _0x3b275e=_0x27252b,_0x29d723=_0x283545()[_0x3b275e('0x12d1')](_0x17cb3c[_0x3b275e('0xd0d')],_0x17cb3c['selectedItems'],'id');_0x17cb3c[_0x3b275e('0x2677')]=_0x283545()[_0x3b275e('0x213d')](_0x29d723)?![]:!![];}};function _0x2c4257(){const _0x500262=_0x27252b;return _0x2c949a[_0x500262('0x1516')]('admin')?_0x30b071()['catch'](function(_0x5acf3c){const _0x597820=_0x500262;_0x22d90f[_0x597820('0x5e8')]({'title':_0x5acf3c[_0x597820('0x1b51')]?_0x597820('0x15d1')+_0x5acf3c[_0x597820('0x1b51')]+'\x20-\x20'+_0x5acf3c['statusText']:_0x597820('0xd90'),'msg':_0x5acf3c['status']?JSON['stringify'](_0x5acf3c['data']):_0x5acf3c[_0x597820('0x17df')]()});}):_0xd3a94c()[_0x500262('0x2788')](function(_0x3ad8c7){return _0x17cb3c['section']=_0x3ad8c7,_0x30b071();})[_0x500262('0x1cb5')](function(_0x38bcdd){const _0x3d4c76=_0x500262;_0x22d90f[_0x3d4c76('0x5e8')]({'title':_0x38bcdd[_0x3d4c76('0x1b51')]?_0x3d4c76('0x15d1')+_0x38bcdd[_0x3d4c76('0x1b51')]+'\x20-\x20'+_0x38bcdd[_0x3d4c76('0x22ce')]:_0x3d4c76('0xd90'),'msg':_0x38bcdd[_0x3d4c76('0x1b51')]?JSON[_0x3d4c76('0x1be0')](_0x38bcdd[_0x3d4c76('0x11fc')]):_0x38bcdd['toString']()});});}function _0xd3a94c(){return _0x5d1adc(function(_0x2b73cc,_0x32a834){const _0x23b692=a0_0x14e7;_0x3e31a0[_0x23b692('0xec9')]['get']({'userProfileId':_0x17cb3c[_0x23b692('0x9cb')][_0x23b692('0x237f')],'name':_0x23b692('0x1f72')})['$promise'][_0x23b692('0x2788')](function(_0x26a0ce){const _0x265d1d=_0x23b692,_0xbde7a6=_0x26a0ce&&_0x26a0ce[_0x265d1d('0x25df')]?_0x26a0ce[_0x265d1d('0x25df')][0x0]:null;_0x2b73cc(_0xbde7a6);})[_0x23b692('0x1cb5')](function(_0x374ff4){_0x32a834(_0x374ff4);});});}function _0x30b071(){return _0x5d1adc(function(_0x1a151b,_0x158adc){const _0x13cb32=a0_0x14e7;return _0x238d80()[_0x13cb32('0x2788')](function(_0x121013){const _0x433741=_0x13cb32;return _0x17cb3c[_0x433741('0x117b')]=_0x121013[_0x433741('0x25df')]?_0x121013[_0x433741('0x25df')]:[],_0x2c949a['hasRole'](_0x433741('0xe23'))?_0x121013:_0x17cb3c[_0x433741('0xb13')]?_0x17cb3c[_0x433741('0xb13')][_0x433741('0x1c0a')]?_0x121013:_0x1875b0():null;})[_0x13cb32('0x2788')](function(_0x1537d8){const _0x2cbadb=_0x13cb32,_0x472293=_0x1537d8&&_0x1537d8[_0x2cbadb('0x25df')]?_0x1537d8[_0x2cbadb('0x25df')]:[];return _0x17cb3c[_0x2cbadb('0x73d')]=_0x283545()[_0x2cbadb('0x155d')](_0x472293,function(_0x28bdea){const _0x3f281a=_0x2cbadb;return _0x283545()['find'](_0x17cb3c[_0x3f281a('0x117b')],{'id':_0x2c949a[_0x3f281a('0x1516')]('admin')||_0x17cb3c[_0x3f281a('0xb13')][_0x3f281a('0x1c0a')]?_0x28bdea['id']:_0x28bdea['resourceId']});}),_0x17cb3c[_0x2cbadb('0x12d9')]=angular[_0x2cbadb('0x2669')](_0x17cb3c[_0x2cbadb('0x73d')]),_0x17cb3c['items'][_0x2cbadb('0x1534')](function(_0x1d9c3b){const _0xdaeaf4=_0x2cbadb,_0x4cbc57=_0x283545()['find'](_0x17cb3c[_0xdaeaf4('0x73d')],{'id':_0x1d9c3b['id']});_0x2c949a['hasRole'](_0xdaeaf4('0xe23'))?_0x1d9c3b[_0xdaeaf4('0x68d')]=!![]:_0x1d9c3b[_0xdaeaf4('0x68d')]=typeof _0x4cbc57!==_0xdaeaf4('0xedb')?!![]:![];}),_0x8de5e9();})['then'](function(_0x4100b0){const _0x26e7e5=_0x13cb32,_0x474451=_0x4100b0&&_0x4100b0[_0x26e7e5('0x25df')]?_0x4100b0[_0x26e7e5('0x25df')]:[];_0x17cb3c[_0x26e7e5('0x283f')]=_0x283545()['map'](_0x474451,function(_0x2fb69b){const _0x4c8e75=_0x26e7e5,_0x59a3ea=_0x283545()['find'](_0x17cb3c['items'],{'id':_0x2fb69b['id']});return _0x59a3ea['penalty']=_0x2fb69b[_0x4c8e75('0xc7b')]?_0x4c8e75('0x1b9d')+_0x2fb69b[_0x4c8e75('0xc7b')][_0x4c8e75('0x1ab')]:'',_0x59a3ea[_0x4c8e75('0x2838')]=typeof _0x2fb69b[_0x4c8e75('0x2838')]!==_0x4c8e75('0xedb')?'<'+_0x2fb69b[_0x4c8e75('0x2838')]+'>':'',_0x59a3ea;}),_0x17cb3c[_0x26e7e5('0xd0d')]=angular[_0x26e7e5('0x2669')](_0x17cb3c[_0x26e7e5('0x283f')]),_0x17cb3c['dualMultiselectOptions'][_0x26e7e5('0x283f')]=_0x17cb3c[_0x26e7e5('0x283f')],_0x17cb3c[_0x26e7e5('0x121')][_0x26e7e5('0x117b')]=_0x283545()['differenceBy'](_0x17cb3c[_0x26e7e5('0x73d')],_0x17cb3c['dualMultiselectOptions'][_0x26e7e5('0x283f')],'id'),_0x1a151b();})['catch'](function(_0x4fc0f7){_0x158adc(_0x4fc0f7);});});}function _0x1875b0(){return _0x5d1adc(function(_0x2dbe33,_0x21b98f){const _0x39f7c3=a0_0x14e7;return _0x3e31a0[_0x39f7c3('0x1050')][_0x39f7c3('0x1335')]({'sectionId':_0x17cb3c[_0x39f7c3('0xb13')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x426a62){_0x2dbe33(_0x426a62);})[_0x39f7c3('0x1cb5')](function(_0x2d75cc){_0x21b98f(_0x2d75cc);});});}function _0x8de5e9(){return _0x5d1adc(function(_0x5cd7ec,_0xf63471){const _0x5a6200=a0_0x14e7;return _0x3e31a0[_0x5a6200('0x139b')][_0x5a6200('0x19db')]({'id':_0x17cb3c[_0x5a6200('0x139b')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x5a6200('0x1714')]['then'](function(_0x409db8){_0x5cd7ec(_0x409db8);})[_0x5a6200('0x1cb5')](function(_0x4fc20c){_0xf63471(_0x4fc20c);});});}function _0x238d80(){return _0x5d1adc(function(_0x3ece37,_0x43db5f){const _0x1e1a35=a0_0x14e7;return _0x3e31a0[_0x1e1a35('0x1e6a')][_0x1e1a35('0x1335')]({'fields':_0x1e1a35('0x1d32'),'nolimit':!![],'role':_0x1e1a35('0x188b')})[_0x1e1a35('0x1714')]['then'](function(_0x2d0c4d){_0x3ece37(_0x2d0c4d);})['catch'](function(_0x1b67e9){_0x43db5f(_0x1b67e9);});});}function _0x2b90b2(_0x2d6e4f){return _0x5d1adc(function(_0x17c4db,_0x55632d){const _0x400602=a0_0x14e7;_0x283545()['isEmpty'](_0x2d6e4f)?_0x17c4db():_0x3e31a0['mailQueue']['addAgents']({'id':_0x17cb3c['mailQueue']['id'],'ids':_0x283545()['map'](_0x2d6e4f,'id')})[_0x400602('0x1714')][_0x400602('0x2788')](function(){_0x17c4db();})['catch'](function(_0x2998d2){_0x55632d(_0x2998d2);});});}function _0x293397(_0x388c86){return _0x5d1adc(function(_0x4d9f36,_0x5e4792){const _0x7e8094=a0_0x14e7;_0x283545()[_0x7e8094('0x213d')](_0x388c86)?_0x4d9f36():_0x3e31a0[_0x7e8094('0x139b')][_0x7e8094('0x1d72')]({'id':_0x17cb3c[_0x7e8094('0x139b')]['id'],'ids':_0x283545()[_0x7e8094('0x155d')](_0x388c86,'id')})[_0x7e8094('0x1714')][_0x7e8094('0x2788')](function(){_0x4d9f36();})['catch'](function(_0x21ed82){_0x5e4792(_0x21ed82);});});}function _0x544cbb(){const _0x2ab28f=_0x27252b,_0x11a48b=_0x283545()[_0x2ab28f('0x432')](_0x17cb3c[_0x2ab28f('0xd0d')],_0x17cb3c[_0x2ab28f('0x283f')],'id'),_0x54d829=_0x283545()[_0x2ab28f('0x432')](_0x17cb3c[_0x2ab28f('0x283f')],_0x17cb3c[_0x2ab28f('0xd0d')],'id');return _0x293397(_0x11a48b)[_0x2ab28f('0x2788')](function(){return _0x2b90b2(_0x54d829);})['then'](function(){const _0x4fbbc1=_0x2ab28f;_0x17cb3c[_0x4fbbc1('0x2677')]=![],_0x17cb3c['startingAllowedItems']=angular['copy'](_0x17cb3c[_0x4fbbc1('0x73d')]),_0x17cb3c['startingSelectedItems']=angular[_0x4fbbc1('0x2669')](_0x17cb3c[_0x4fbbc1('0x283f')]),_0x22d90f[_0x4fbbc1('0x173b')]({'title':'SUCCESS','msg':_0x4fbbc1('0x1984')});})[_0x2ab28f('0x1cb5')](function(_0x2954d6){const _0x11eb39=_0x2ab28f;_0x22d90f[_0x11eb39('0x5e8')]({'title':_0x2954d6[_0x11eb39('0x1b51')]?'API:'+_0x2954d6['status']+_0x11eb39('0x1b0b')+_0x2954d6['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2954d6[_0x11eb39('0x1b51')]?JSON[_0x11eb39('0x1be0')](_0x2954d6['data']):_0x2954d6[_0x11eb39('0x17df')]()});});}function _0x14261c(){const _0x3b20dd=_0x27252b;_0x22c985[_0x3b20dd('0x19d')]();}}const _0x168709=_0x403d2b;_0x4f8f82[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x139b'),_0x34e79e('0x1a5c'),'Auth',_0x34e79e('0xe28')];function _0x4f8f82(_0x2b977e,_0x1f4f3e,_0x2de747,_0x21a493,_0x6fd633,_0x3c8d5c,_0x4e618f,_0x48ddc9){const _0x5c3ce=_0x34e79e,_0x39d163=this;_0x39d163[_0x5c3ce('0x9cb')]=_0x4e618f[_0x5c3ce('0x24cc')](),_0x39d163['mailQueue']=_0x6fd633,_0x39d163[_0x5c3ce('0xe28')]=_0x48ddc9,_0x39d163['items']=[],_0x39d163[_0x5c3ce('0x73d')]=[],_0x39d163[_0x5c3ce('0x283f')]=[],_0x39d163['startingAllowedItems']=[],_0x39d163[_0x5c3ce('0xd0d')]=[],_0x39d163['pendingChanges']=![],_0x39d163[_0x5c3ce('0x121')]={'readOnly':!_0x39d163[_0x5c3ce('0xe28')][_0x5c3ce('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5c3ce('0x1a8d'),'line1':_0x5c3ce('0x1a8d'),'line2':'','line3':'','labelAll':_0x3c8d5c[_0x5c3ce('0x1b11')](_0x5c3ce('0x23b0')),'labelSelected':_0x3c8d5c[_0x5c3ce('0x1b11')]('MAIL.SELECTED_TEAMS'),'transferCallback':function(){const _0x2bd5c4=_0x5c3ce,_0x549465=_0x283545()[_0x2bd5c4('0x12d1')](_0x39d163[_0x2bd5c4('0xd0d')],_0x39d163[_0x2bd5c4('0x283f')],'id');_0x39d163[_0x2bd5c4('0x2677')]=_0x283545()[_0x2bd5c4('0x213d')](_0x549465)?![]:!![];}},_0x39d163[_0x5c3ce('0x122e')]=_0x4107ac,_0x39d163[_0x5c3ce('0x1a27')]=_0x575f9a,_0x39d163[_0x5c3ce('0xca7')]=_0x155140;function _0x4107ac(){const _0x464dcc=_0x5c3ce;return _0x4e618f[_0x464dcc('0x1516')](_0x464dcc('0xe23'))?_0x7ada7d()[_0x464dcc('0x1cb5')](function(_0x66669d){const _0x2db53a=_0x464dcc;_0x2de747[_0x2db53a('0x5e8')]({'title':_0x66669d[_0x2db53a('0x1b51')]?_0x2db53a('0x15d1')+_0x66669d[_0x2db53a('0x1b51')]+_0x2db53a('0x1b0b')+_0x66669d[_0x2db53a('0x22ce')]:'SYSTEM:GET_TEAMS','msg':_0x66669d['status']?JSON[_0x2db53a('0x1be0')](_0x66669d[_0x2db53a('0x11fc')]):_0x66669d[_0x2db53a('0x17df')]()});}):_0x2c9031()[_0x464dcc('0x2788')](function(_0x21a004){const _0x242a17=_0x464dcc;return _0x39d163[_0x242a17('0xb13')]=_0x21a004,_0x7ada7d();})['catch'](function(_0x13f8e4){const _0x5c7fbd=_0x464dcc;_0x2de747[_0x5c7fbd('0x5e8')]({'title':_0x13f8e4[_0x5c7fbd('0x1b51')]?'API:'+_0x13f8e4[_0x5c7fbd('0x1b51')]+_0x5c7fbd('0x1b0b')+_0x13f8e4[_0x5c7fbd('0x22ce')]:_0x5c7fbd('0x556'),'msg':_0x13f8e4[_0x5c7fbd('0x1b51')]?JSON[_0x5c7fbd('0x1be0')](_0x13f8e4[_0x5c7fbd('0x11fc')]):_0x13f8e4[_0x5c7fbd('0x17df')]()});});}function _0x2c9031(){return _0x1f4f3e(function(_0x1eb200,_0x5be403){const _0x1f59cf=a0_0x14e7;_0x21a493[_0x1f59cf('0xec9')][_0x1f59cf('0x1335')]({'userProfileId':_0x39d163[_0x1f59cf('0x9cb')][_0x1f59cf('0x237f')],'name':'Teams'})[_0x1f59cf('0x1714')][_0x1f59cf('0x2788')](function(_0x46f782){const _0x4dc160=_0x1f59cf,_0x422715=_0x46f782&&_0x46f782[_0x4dc160('0x25df')]?_0x46f782[_0x4dc160('0x25df')][0x0]:null;_0x1eb200(_0x422715);})[_0x1f59cf('0x1cb5')](function(_0x1e29de){_0x5be403(_0x1e29de);});});}function _0x7ada7d(){return _0x1f4f3e(function(_0x13daf0,_0x51907b){const _0x55c960=a0_0x14e7;return _0x227d54()[_0x55c960('0x2788')](function(_0x533a70){const _0x248083=_0x55c960;return _0x39d163['items']=_0x533a70[_0x248083('0x25df')]?_0x533a70[_0x248083('0x25df')]:[],_0x4e618f['hasRole'](_0x248083('0xe23'))?_0x533a70:_0x39d163[_0x248083('0xb13')]?_0x39d163['section'][_0x248083('0x1c0a')]?_0x533a70:_0x6e1e79():null;})[_0x55c960('0x2788')](function(_0x33129b){const _0x4efc07=_0x55c960,_0x23c3ba=_0x33129b&&_0x33129b['rows']?_0x33129b[_0x4efc07('0x25df')]:[];return _0x39d163[_0x4efc07('0x73d')]=_0x283545()[_0x4efc07('0x155d')](_0x23c3ba,function(_0x173d1b){const _0x52f914=_0x4efc07;return _0x283545()['find'](_0x39d163[_0x52f914('0x117b')],{'id':_0x4e618f[_0x52f914('0x1516')]('admin')||_0x39d163[_0x52f914('0xb13')][_0x52f914('0x1c0a')]?_0x173d1b['id']:_0x173d1b[_0x52f914('0x2707')]});}),_0x39d163[_0x4efc07('0x117b')]['forEach'](function(_0x450fc0){const _0x30ffc4=_0x4efc07,_0x3f5fd9=_0x283545()[_0x30ffc4('0x20e8')](_0x39d163[_0x30ffc4('0x73d')],{'id':_0x450fc0['id']});_0x4e618f['hasRole'](_0x30ffc4('0xe23'))?_0x450fc0[_0x30ffc4('0x68d')]=!![]:_0x450fc0['isValid']=typeof _0x3f5fd9!==_0x30ffc4('0xedb')?!![]:![];}),_0x5aa762();})['then'](function(_0x5c196b){const _0x49718=_0x55c960,_0x50d176=_0x5c196b&&_0x5c196b[_0x49718('0x25df')]?_0x5c196b[_0x49718('0x25df')]:[];_0x39d163['selectedItems']=_0x283545()[_0x49718('0x155d')](_0x50d176,function(_0x94a442){const _0xd5b208=_0x49718;return _0x283545()['find'](_0x39d163[_0xd5b208('0x117b')],{'id':_0x94a442['id']});}),_0x39d163['startingSelectedItems']=angular[_0x49718('0x2669')](_0x39d163[_0x49718('0x283f')]),_0x39d163[_0x49718('0x121')][_0x49718('0x283f')]=_0x39d163[_0x49718('0x283f')],_0x39d163[_0x49718('0x121')][_0x49718('0x117b')]=_0x283545()['differenceBy'](_0x39d163[_0x49718('0x73d')],_0x39d163[_0x49718('0x121')][_0x49718('0x283f')],'id'),_0x13daf0();})[_0x55c960('0x1cb5')](function(_0x309df5){_0x51907b(_0x309df5);});});}function _0x6e1e79(){return _0x1f4f3e(function(_0x2cfde2,_0xc6720c){const _0x4d2bf8=a0_0x14e7;return _0x21a493[_0x4d2bf8('0x1050')][_0x4d2bf8('0x1335')]({'sectionId':_0x39d163['section']['id'],'nolimit':!![]})[_0x4d2bf8('0x1714')]['then'](function(_0x570037){_0x2cfde2(_0x570037);})['catch'](function(_0x429568){_0xc6720c(_0x429568);});});}function _0x5aa762(){return _0x1f4f3e(function(_0x1d2314,_0x39f7f4){const _0x471871=a0_0x14e7;return _0x21a493[_0x471871('0x139b')][_0x471871('0x1435')]({'id':_0x39d163[_0x471871('0x139b')]['id'],'fields':_0x471871('0x1338'),'nolimit':!![]})[_0x471871('0x1714')][_0x471871('0x2788')](function(_0x998c70){_0x1d2314(_0x998c70);})[_0x471871('0x1cb5')](function(_0x1508b6){_0x39f7f4(_0x1508b6);});});}function _0x227d54(){return _0x1f4f3e(function(_0x1db652,_0x300237){const _0x515850=a0_0x14e7;return _0x21a493['team'][_0x515850('0x1335')]({'fields':_0x515850('0x1338'),'nolimit':!![]})['$promise'][_0x515850('0x2788')](function(_0x4692ef){_0x1db652(_0x4692ef);})['catch'](function(_0x166316){_0x300237(_0x166316);});});}function _0x32798e(_0x4f3438){return _0x1f4f3e(function(_0x262717,_0x27d1e2){const _0xea0c95=a0_0x14e7;_0x283545()[_0xea0c95('0x213d')](_0x4f3438)?_0x262717():_0x21a493['mailQueue'][_0xea0c95('0x3bd')]({'id':_0x39d163[_0xea0c95('0x139b')]['id'],'ids':_0x283545()['map'](_0x4f3438,'id')})[_0xea0c95('0x1714')][_0xea0c95('0x2788')](function(){_0x262717();})[_0xea0c95('0x1cb5')](function(_0x834a28){_0x27d1e2(_0x834a28);});});}function _0x30f298(_0x3aefba){return _0x1f4f3e(function(_0xe06d89,_0x37c895){const _0x7be346=a0_0x14e7;_0x283545()['isEmpty'](_0x3aefba)?_0xe06d89():_0x21a493['mailQueue'][_0x7be346('0xf4c')]({'id':_0x39d163[_0x7be346('0x139b')]['id'],'ids':_0x283545()['map'](_0x3aefba,'id')})['$promise'][_0x7be346('0x2788')](function(){_0xe06d89();})[_0x7be346('0x1cb5')](function(_0x4b81b6){_0x37c895(_0x4b81b6);});});}function _0x575f9a(){const _0x548608=_0x5c3ce,_0x2e5493=_0x283545()[_0x548608('0x432')](_0x39d163[_0x548608('0xd0d')],_0x39d163['selectedItems'],'id'),_0x53f3c3=_0x283545()[_0x548608('0x432')](_0x39d163[_0x548608('0x283f')],_0x39d163[_0x548608('0xd0d')],'id');return _0x30f298(_0x2e5493)[_0x548608('0x2788')](function(){return _0x32798e(_0x53f3c3);})[_0x548608('0x2788')](function(){const _0x4a6ab9=_0x548608;_0x39d163[_0x4a6ab9('0x2677')]=![],_0x39d163[_0x4a6ab9('0x12d9')]=angular[_0x4a6ab9('0x2669')](_0x39d163[_0x4a6ab9('0x73d')]),_0x39d163['startingSelectedItems']=angular[_0x4a6ab9('0x2669')](_0x39d163[_0x4a6ab9('0x283f')]),_0x2de747['success']({'title':_0x4a6ab9('0x10c8'),'msg':_0x4a6ab9('0x7f3')});})[_0x548608('0x1cb5')](function(_0xd5a6fb){const _0xeb1293=_0x548608;_0x2de747[_0xeb1293('0x5e8')]({'title':_0xd5a6fb['status']?_0xeb1293('0x15d1')+_0xd5a6fb['status']+_0xeb1293('0x1b0b')+_0xd5a6fb[_0xeb1293('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0xd5a6fb['status']?JSON[_0xeb1293('0x1be0')](_0xd5a6fb[_0xeb1293('0x11fc')]):_0xd5a6fb['toString']()});});}function _0x155140(){const _0x339ad0=_0x5c3ce;_0x2b977e[_0x339ad0('0x19d')]();}}const _0xcf8b49=_0x4f8f82,_0x2adb42=_0x18dd13['p']+_0x34e79e('0xcaf');_0x5450be['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),'setting',_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x139b'),_0x34e79e('0xec9')];function _0x5450be(_0x507547,_0x18ea86,_0x15a4b6,_0x33f29b,_0xd228b0,_0x4962d8,_0x409fb8,_0x593917,_0x1556d1,_0x53b807,_0x5b22ce,_0x14c258){const _0x1817e8=_0x34e79e,_0x56e513=this;_0x56e513[_0x1817e8('0x9cb')]=_0x53b807['getCurrentUser'](),_0x56e513[_0x1817e8('0x130d')]=_0x4962d8,_0x56e513['setting']=_0x409fb8,_0x56e513['passwordPattern']=_0x56e513['setting'][_0x1817e8('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56e513[_0x1817e8('0xe9')]=_0x18ea86[_0x1817e8('0x170c')]()+_0x1817e8('0x726')+_0x18ea86['host'](),_0x56e513[_0x1817e8('0x139b')]=_0x5b22ce||_0x507547[_0x1817e8('0x4b9')]['mailQueue']||{},_0x56e513['userProfileSection']=_0x14c258&&_0x14c258[_0x1817e8('0x338')]==0x1?_0x14c258[_0x1817e8('0x25df')][0x0]:null,_0x56e513[_0x1817e8('0xe28')]=_0x53b807['parseCrudPermissions'](_0x56e513[_0x1817e8('0xec9')]?_0x56e513[_0x1817e8('0xec9')]['crudPermissions']:null),_0x56e513[_0x1817e8('0x1193')]={},_0x56e513[_0x1817e8('0xcb3')]=_0x507547[_0x1817e8('0x4b9')]['tab']||0x0,_0x56e513[_0x1817e8('0xde3')]=_0x1ea62f,_0x56e513['agentadddialog']=_0x29789d,_0x56e513[_0x1817e8('0x204f')]=_0x1556d1['info'],_0x56e513[_0x1817e8('0xfa7')]=_0x15b998,_0x56e513[_0x1817e8('0x1349')]=_0x23f3f4;function _0x1ea62f(_0x4e3014,_0x39a779){const _0x5a5219=_0x1817e8;_0x15a4b6[_0x5a5219('0x2fa')]({'controller':_0x5a5219('0x18a9'),'controllerAs':'vm','templateUrl':_0x2adb42,'parent':angular[_0x5a5219('0x16b1')](_0x33f29b[_0x5a5219('0x945')]),'targetEvent':_0x39a779,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4e3014,'mailQueues':_0x56e513[_0x5a5219('0x1780')]?_0x56e513[_0x5a5219('0x1780')][_0x5a5219('0x25df')]:[],'crudPermissions':_0x56e513[_0x5a5219('0xe28')]}});}function _0x29789d(_0x59c724,_0x1b6a51){const _0x441f48=_0x1817e8;_0x15a4b6[_0x441f48('0x2fa')]({'controller':_0x441f48('0xefe'),'controllerAs':'vm','templateUrl':_0x2e0890,'parent':angular[_0x441f48('0x16b1')](_0x33f29b[_0x441f48('0x945')]),'targetEvent':_0x1b6a51,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x59c724,'mailQueues':_0x56e513[_0x441f48('0x1780')]?_0x56e513[_0x441f48('0x1780')]['rows']:[],'crudPermissions':_0x56e513[_0x441f48('0xe28')],'realtime':![]}});}function _0x15b998(){const _0x118c0e=_0x1817e8;_0x507547['go'](_0x118c0e('0xab9'),{},{'reload':_0x118c0e('0xab9')});}function _0x23f3f4(){const _0x213349=_0x1817e8;_0x593917[_0x213349('0x139b')][_0x213349('0x2740')]({'id':_0x56e513[_0x213349('0x139b')]['id']},_0x56e513[_0x213349('0x139b')])[_0x213349('0x1714')][_0x213349('0x2788')](function(){const _0x18e4ec=_0x213349;_0x1556d1[_0x18e4ec('0x173b')]({'title':_0x18e4ec('0xba3'),'msg':_0x56e513[_0x18e4ec('0x139b')][_0x18e4ec('0x1a8d')]?_0x56e513['mailQueue'][_0x18e4ec('0x1a8d')]+_0x18e4ec('0x6f8'):''});})[_0x213349('0x1cb5')](function(_0x5c6cf0){const _0x45a526=_0x213349;_0x1556d1[_0x45a526('0x5e8')]({'title':_0x5c6cf0[_0x45a526('0x1b51')]?'API:'+_0x5c6cf0['status']+_0x45a526('0x1b0b')+_0x5c6cf0['statusText']:_0x45a526('0x25de'),'msg':_0x5c6cf0[_0x45a526('0x11fc')]?JSON['stringify'](_0x5c6cf0[_0x45a526('0x11fc')]):_0x5c6cf0['toString']()});});}}const _0x453cd0=_0x5450be;_0x50243d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x1780'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x50243d(_0x4ff561,_0x481d71,_0x258f6e,_0x50d551,_0x2c0b89,_0x87362f,_0x41ee54,_0x1fb8cc,_0x41073a,_0x49f133,_0x1113e8,_0x4d9002,_0x531d52,_0x518c2b,_0x363202,_0x43a207,_0x2dd8){const _0x458fed=_0x34e79e,_0xff0ab5=this;_0xff0ab5[_0x458fed('0x130d')]=_0x43a207,_0xff0ab5['setting']=_0x2dd8,_0xff0ab5[_0x458fed('0x9cb')]=_0x363202[_0x458fed('0x24cc')](),_0xff0ab5[_0x458fed('0x1780')]=_0x41073a||{'count':0x0,'rows':[]},_0xff0ab5[_0x458fed('0x63c')]=_0x49f133,_0xff0ab5['userProfileSection']=_0x1113e8&&_0x1113e8[_0x458fed('0x338')]==0x1?_0x1113e8['rows'][0x0]:null,_0xff0ab5[_0x458fed('0xe28')]=_0x363202['parseCrudPermissions'](_0xff0ab5[_0x458fed('0xec9')]?_0xff0ab5['userProfileSection'][_0x458fed('0xe28')]:null),_0xff0ab5[_0x458fed('0x26a9')]=_0x458fed('0x1780'),_0xff0ab5[_0x458fed('0x2278')]='',_0xff0ab5[_0x458fed('0x25e2')]=null,_0xff0ab5[_0x458fed('0x56f')]=[],_0xff0ab5[_0x458fed('0x135a')]={'fields':_0x458fed('0x1a03'),'sort':_0x458fed('0x1cee'),'channel':_0x458fed('0x2795'),'limit':0xa,'page':0x1},_0xff0ab5[_0x458fed('0x7b8')]=_0x283545()[_0x458fed('0x13cf')]([{'option':_0x458fed('0x152c'),'value':_0x458fed('0x11e4')},{'option':'RR\x20Memory','value':_0x458fed('0x228e')}],function(_0x319c97){const _0x1879c1=_0x458fed;return _0x283545()[_0x1879c1('0x10a4')](_0x319c97[_0x1879c1('0x49')],new RegExp('\x27','g'),'');}),_0xff0ab5[_0x458fed('0x1f7e')]=_0x4b077f,_0xff0ab5[_0x458fed('0xde3')]=_0x9a6614,_0xff0ab5[_0x458fed('0x1113')]=_0xb32a7d,_0xff0ab5[_0x458fed('0x1e5')]=_0x2e2150,_0xff0ab5[_0x458fed('0x8d1')]=_0x5de7e4,_0xff0ab5[_0x458fed('0x173b')]=_0x37f1a5,_0xff0ab5[_0x458fed('0x1fe7')]=_0x4df1c4,_0xff0ab5[_0x458fed('0x13e0')]=_0x4d3f9b,_0xff0ab5[_0x458fed('0x27d2')]=_0x3c7c99,_0xff0ab5[_0x458fed('0x43d')]=_0x28fd23,_0xff0ab5[_0x458fed('0xcda')]=_0x1679c3,_0xff0ab5[_0x458fed('0x24f1')]=_0x267d16,_0xff0ab5['selectAllMailQueues']=_0x511220;function _0x4b077f(_0x2fe208){const _0x5ea344=_0x458fed;_0x258f6e['go'](_0x5ea344('0x2272'),{'id':_0x2fe208['id'],'mailQueue':_0x2fe208,'crudPermissions':_0xff0ab5[_0x5ea344('0xe28')]});}function _0x9a6614(_0x443df8,_0x56fdd3){const _0x5aa115=_0x458fed;_0x2c0b89[_0x5aa115('0x2fa')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x2adb42,'parent':angular[_0x5aa115('0x16b1')](_0x87362f[_0x5aa115('0x945')]),'targetEvent':_0x56fdd3,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x443df8,'mailQueues':_0xff0ab5[_0x5aa115('0x1780')]?_0xff0ab5[_0x5aa115('0x1780')]['rows']:[],'crudPermissions':_0xff0ab5[_0x5aa115('0xe28')]}});}function _0xb32a7d(_0x47dc77,_0x3d1e24){const _0x5cc746=_0x458fed;_0x2c0b89[_0x5cc746('0x2fa')]({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0x2e0890,'parent':angular[_0x5cc746('0x16b1')](_0x87362f[_0x5cc746('0x945')]),'targetEvent':_0x3d1e24,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x47dc77,'mailQueues':_0xff0ab5[_0x5cc746('0x1780')]?_0xff0ab5[_0x5cc746('0x1780')][_0x5cc746('0x25df')]:[],'crudPermissions':_0xff0ab5['crudPermissions'],'realtime':![]}});}function _0x2e2150(_0x1565d7,_0x399f43){const _0x28efae=_0x458fed,_0xa13ad1=_0x2c0b89['confirm']()[_0x28efae('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x28efae('0x114')](_0x28efae('0x139b'))+'?')[_0x28efae('0x93e')](_0x28efae('0x1670')+(_0x1565d7[_0x28efae('0x1a8d')]||_0x28efae('0x139b'))+_0x28efae('0x229e')+_0x28efae('0x27c7'))[_0x28efae('0x10bc')]('delete\x20mailQueue')[_0x28efae('0x24d0')](_0x399f43)['ok']('OK')[_0x28efae('0x1801')](_0x28efae('0x1d8d'));_0x2c0b89[_0x28efae('0x2fa')](_0xa13ad1)[_0x28efae('0x2788')](function(){_0x3c7c99(_0x1565d7);},function(){const _0x359aef=_0x28efae;console['log'](_0x359aef('0x1d8d'));});}function _0x5de7e4(){const _0x15d63f=_0x458fed;if(_0x363202['hasRole']('admin'))_0x258f6e['go'](_0x15d63f('0xf73'),{});else return _0x4d9002[_0x15d63f('0xec9')][_0x15d63f('0x1335')]({'userProfileId':_0x363202[_0x15d63f('0x24cc')]()[_0x15d63f('0x237f')],'sectionId':0x262})['$promise'][_0x15d63f('0x2788')](function(_0x100e7c){const _0x4c8839=_0x15d63f,_0x3a1fd5=_0x100e7c&&_0x100e7c[_0x4c8839('0x25df')]?_0x100e7c[_0x4c8839('0x25df')][0x0]:null;_0x3a1fd5&&_0x3a1fd5[_0x4c8839('0x14f4')]?_0x258f6e['go']('app.mail.realtime.queues',{}):_0x518c2b[_0x4c8839('0x2276')]({'title':_0x1fb8cc[_0x4c8839('0x1b11')](_0x4c8839('0x5be')),'msg':_0x1fb8cc[_0x4c8839('0x1b11')](_0x4c8839('0x1abc'))});})['catch'](function(_0x40ef0c){const _0x9924ab=_0x15d63f;_0x518c2b[_0x9924ab('0x5e8')]({'title':_0x40ef0c[_0x9924ab('0x1b51')]?'API:'+_0x40ef0c[_0x9924ab('0x1b51')]+_0x9924ab('0x1b0b')+_0x40ef0c['statusText']:_0x9924ab('0x2292'),'msg':_0x40ef0c[_0x9924ab('0x1b51')]?JSON['stringify'](_0x40ef0c[_0x9924ab('0x11fc')]):_0x40ef0c[_0x9924ab('0x17df')]()});});}let _0x599c2a=!![],_0x4a331c=0x1;_0x4ff561[_0x458fed('0x1662')](_0x458fed('0x1569'),function(_0x59f08a,_0xaa4592){const _0x3b0975=_0x458fed;_0x599c2a?_0x41ee54(function(){_0x599c2a=![];}):(!_0xaa4592&&(_0x4a331c=_0xff0ab5[_0x3b0975('0x135a')][_0x3b0975('0x23f5')]),_0x59f08a!==_0xaa4592&&(_0xff0ab5[_0x3b0975('0x135a')][_0x3b0975('0x23f5')]=0x1),!_0x59f08a&&(_0xff0ab5[_0x3b0975('0x135a')]['page']=_0x4a331c),_0xff0ab5[_0x3b0975('0x1fe7')]());});function _0x37f1a5(_0x3378aa){const _0x54ef86=_0x458fed;_0xff0ab5[_0x54ef86('0x1780')]=_0x3378aa||{'count':0x0,'rows':[]};}function _0x4df1c4(){const _0x39d85c=_0x458fed;_0xff0ab5[_0x39d85c('0x135a')][_0x39d85c('0x19e')]=(_0xff0ab5['query'][_0x39d85c('0x23f5')]-0x1)*_0xff0ab5[_0x39d85c('0x135a')][_0x39d85c('0x68e')],_0x363202[_0x39d85c('0x1516')](_0x39d85c('0xe23'))?_0xff0ab5[_0x39d85c('0x1808')]=_0x4d9002['mailQueue'][_0x39d85c('0x1335')](_0xff0ab5['query'],_0x37f1a5)['$promise']:(_0xff0ab5[_0x39d85c('0x135a')]['id']=_0xff0ab5[_0x39d85c('0x63c')]['id'],_0xff0ab5[_0x39d85c('0x135a')][_0x39d85c('0xb13')]=_0x39d85c('0x26fc'),_0xff0ab5['promise']=_0x4d9002[_0x39d85c('0x63c')]['getResources'](_0xff0ab5['query'],_0x37f1a5)[_0x39d85c('0x1714')]);}function _0x4d3f9b(_0x40fb84,_0x584c13){const _0x129c73=_0x458fed;_0x2c0b89[_0x129c73('0x2fa')]({'controller':'CreateOrEditMailQueueDialogController','controllerAs':'vm','templateUrl':_0x47fd74,'parent':angular['element'](_0x87362f['body']),'targetEvent':_0x40fb84,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x584c13,'mailQueues':_0xff0ab5[_0x129c73('0x1780')][_0x129c73('0x25df')],'license':_0xff0ab5[_0x129c73('0x130d')],'setting':_0xff0ab5[_0x129c73('0x1af0')],'crudPermissions':_0xff0ab5[_0x129c73('0xe28')]}});}function _0x3c7c99(_0x168627){const _0x193d22=_0x458fed;_0x4d9002[_0x193d22('0x139b')][_0x193d22('0x17c4')]({'id':_0x168627['id']})[_0x193d22('0x1714')]['then'](function(){const _0x3e969e=_0x193d22;_0x283545()[_0x3e969e('0x1a90')](_0xff0ab5[_0x3e969e('0x1780')][_0x3e969e('0x25df')],{'id':_0x168627['id']}),_0xff0ab5[_0x3e969e('0x1780')][_0x3e969e('0x338')]-=0x1,!_0xff0ab5[_0x3e969e('0x1780')][_0x3e969e('0x25df')][_0x3e969e('0x2566')]&&_0xff0ab5[_0x3e969e('0x1fe7')](),_0x518c2b[_0x3e969e('0x173b')]({'title':_0x283545()[_0x3e969e('0x114')](_0x3e969e('0x670'))+'\x20deleted!','msg':_0x168627[_0x3e969e('0x1a8d')]?_0x168627[_0x3e969e('0x1a8d')]+_0x3e969e('0x14d4'):''});})[_0x193d22('0x1cb5')](function(_0x37fc3f){const _0x3378cf=_0x193d22;if(_0x37fc3f[_0x3378cf('0x11fc')]&&_0x37fc3f['data']['errors']&&_0x37fc3f[_0x3378cf('0x11fc')]['errors'][_0x3378cf('0x2566')]){_0xff0ab5[_0x3378cf('0x25be')]=_0x37fc3f[_0x3378cf('0x11fc')][_0x3378cf('0x25be')]||[{'message':_0x37fc3f[_0x3378cf('0x17df')](),'type':_0x3378cf('0x744')}];for(let _0x40959e=0x0;_0x40959e<_0x37fc3f['data'][_0x3378cf('0x25be')][_0x3378cf('0x2566')];_0x40959e++){_0x518c2b[_0x3378cf('0x5e8')]({'title':_0x37fc3f['data']['errors'][_0x40959e][_0x3378cf('0x1d7')],'msg':_0x37fc3f['data'][_0x3378cf('0x25be')][_0x40959e][_0x3378cf('0x15e2')]});}}else _0x518c2b['error']({'title':_0x37fc3f[_0x3378cf('0x1b51')]?'API:'+_0x37fc3f[_0x3378cf('0x1b51')]+_0x3378cf('0x1b0b')+_0x37fc3f[_0x3378cf('0x22ce')]:_0x3378cf('0x744'),'msg':_0x37fc3f['data']?JSON[_0x3378cf('0x1be0')](_0x37fc3f[_0x3378cf('0x11fc')][_0x3378cf('0x15e2')]):_0x37fc3f[_0x3378cf('0x15e2')]||_0x37fc3f[_0x3378cf('0x17df')]()});});}function _0x28fd23(){const _0x321b4a=_0x458fed,_0x27f8f3=angular['copy'](_0xff0ab5[_0x321b4a('0x56f')]);return _0xff0ab5['selectedMailQueues']=[],_0x27f8f3;}function _0x1679c3(_0x2cea09){const _0x3fffc2=_0x458fed,_0x3507af=_0x2c0b89[_0x3fffc2('0x112e')]()[_0x3fffc2('0x14e4')](_0x3fffc2('0x6ea'))['htmlContent'](_0x3fffc2('0x1670')+_0xff0ab5[_0x3fffc2('0x56f')]['length']+_0x3fffc2('0xbd')+'\x20will\x20be\x20deleted.')[_0x3fffc2('0x10bc')]('delete\x20MailQueues')[_0x3fffc2('0x24d0')](_0x2cea09)['ok']('OK')[_0x3fffc2('0x1801')](_0x3fffc2('0x1d8d'));_0x2c0b89[_0x3fffc2('0x2fa')](_0x3507af)['then'](function(){const _0x306c88=_0x3fffc2;_0xff0ab5[_0x306c88('0x56f')]['forEach'](function(_0x57c1a0){_0x3c7c99(_0x57c1a0);}),_0xff0ab5['selectedMailQueues']=[];});}function _0x267d16(){const _0x5311ff=_0x458fed;_0xff0ab5[_0x5311ff('0x56f')]=[];}function _0x511220(){const _0x523555=_0x458fed;_0xff0ab5[_0x523555('0x56f')]=_0xff0ab5[_0x523555('0x1780')][_0x523555('0x25df')];}}const _0x182169=_0x50243d;_0x94be5c['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x162'),'mailSubstatus',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x94be5c(_0x2445fb,_0x22b828,_0x51fd25,_0x1b0816,_0x1bd557,_0x43e122,_0x48fe3b,_0x37385a,_0xe8237b,_0x2e715d,_0x3c45f4,_0x3fe0a1,_0x58d752,_0x1de66c){const _0x5dd6e8=_0x34e79e,_0x3317e0=this;_0x3317e0[_0x5dd6e8('0x9cb')]=_0x3c45f4[_0x5dd6e8('0x24cc')](),_0x3317e0['errors']=[],_0x3317e0[_0x5dd6e8('0x1af0')]=_0x58d752,_0x3317e0[_0x5dd6e8('0x130d')]=_0x3fe0a1,_0x3317e0['crudPermissions']=_0x1de66c,_0x3317e0['hasModulePermissions']={},_0x3317e0[_0x5dd6e8('0x18ad')]=_0x3317e0[_0x5dd6e8('0x1af0')]&&_0x3317e0[_0x5dd6e8('0x1af0')][_0x5dd6e8('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3317e0[_0x5dd6e8('0x14e4')]='MAIL.EDIT_MAILSUBSTATUS',_0x3317e0['mailSubstatus']=angular[_0x5dd6e8('0x2669')](_0xe8237b),_0x3317e0['mailSubtatuses']=_0x37385a,_0x3317e0[_0x5dd6e8('0x2213')]=![];!_0x3317e0[_0x5dd6e8('0xf75')]&&(_0x3317e0[_0x5dd6e8('0xf75')]={},_0x3317e0[_0x5dd6e8('0x14e4')]=_0x5dd6e8('0x141b'),_0x3317e0[_0x5dd6e8('0x2213')]=!![]);_0x3317e0['addNewMailSubstatus']=_0x17fce6,_0x3317e0['saveMailSubstatus']=_0x2743de,_0x3317e0['deleteMailSubstatus']=_0x4a52c7,_0x3317e0[_0x5dd6e8('0x2601')]=_0x355d45,_0x3317e0[_0x5dd6e8('0xca7')]=_0x4c074e;function _0x17fce6(){const _0x323c8d=_0x5dd6e8;_0x3317e0[_0x323c8d('0x25be')]=[],_0x2e715d[_0x323c8d('0xf75')][_0x323c8d('0xbd0')](_0x3317e0[_0x323c8d('0xf75')])['$promise'][_0x323c8d('0x2788')](function(_0x11297b){const _0x474eea=_0x323c8d;_0x3317e0[_0x474eea('0x162')]['unshift'](_0x11297b[_0x474eea('0x1cbf')]()),_0x48fe3b[_0x474eea('0x173b')]({'title':'MailSubstatus\x20properly\x20created','msg':_0x3317e0[_0x474eea('0xf75')][_0x474eea('0x1a8d')]?_0x3317e0['mailSubstatus'][_0x474eea('0x1a8d')]+_0x474eea('0x1e4a'):''}),_0x4c074e(_0x11297b);})[_0x323c8d('0x1cb5')](function(_0x5086f5){const _0x3cdfa0=_0x323c8d;if(_0x5086f5[_0x3cdfa0('0x11fc')]&&_0x5086f5[_0x3cdfa0('0x11fc')][_0x3cdfa0('0x25be')]&&_0x5086f5[_0x3cdfa0('0x11fc')][_0x3cdfa0('0x25be')][_0x3cdfa0('0x2566')]){_0x3317e0[_0x3cdfa0('0x25be')]=_0x5086f5[_0x3cdfa0('0x11fc')][_0x3cdfa0('0x25be')]||[{'message':_0x5086f5[_0x3cdfa0('0x17df')](),'type':'api.mailSubstatus.save'}];for(let _0x44426d=0x0;_0x44426d<_0x5086f5[_0x3cdfa0('0x11fc')][_0x3cdfa0('0x25be')][_0x3cdfa0('0x2566')];_0x44426d+=0x1){_0x48fe3b['error']({'title':_0x5086f5[_0x3cdfa0('0x11fc')][_0x3cdfa0('0x25be')][_0x44426d][_0x3cdfa0('0x1d7')],'msg':_0x5086f5['data']['errors'][_0x44426d]['message']});}}else _0x48fe3b[_0x3cdfa0('0x5e8')]({'title':_0x5086f5[_0x3cdfa0('0x1b51')]?'API:'+_0x5086f5['status']+'\x20-\x20'+_0x5086f5[_0x3cdfa0('0x22ce')]:'api.mailSubstatus.save','msg':_0x5086f5['data']?JSON[_0x3cdfa0('0x1be0')](_0x5086f5[_0x3cdfa0('0x11fc')]['message']):_0x5086f5['toString']()});});}function _0x2743de(){const _0x4e3884=_0x5dd6e8;_0x3317e0[_0x4e3884('0x25be')]=[],_0x2e715d[_0x4e3884('0xf75')][_0x4e3884('0x2740')]({'id':_0x3317e0[_0x4e3884('0xf75')]['id']},_0x3317e0[_0x4e3884('0xf75')])[_0x4e3884('0x1714')][_0x4e3884('0x2788')](function(_0x1cef4c){const _0x35fe16=_0x4e3884,_0x303623=_0x283545()[_0x35fe16('0x20e8')](_0x3317e0[_0x35fe16('0x162')],{'id':_0x1cef4c['id']});_0x303623&&_0x283545()[_0x35fe16('0x2503')](_0x303623,_0x283545()['pick'](_0x1cef4c['toJSON'](),_0x283545()[_0x35fe16('0x2163')](_0x303623))),_0x48fe3b[_0x35fe16('0x173b')]({'title':_0x35fe16('0x2661'),'msg':_0x3317e0[_0x35fe16('0xf75')][_0x35fe16('0x1a8d')]?_0x3317e0['mailSubstatus']['name']+_0x35fe16('0x24cf'):''}),_0x4c074e(_0x1cef4c);})[_0x4e3884('0x1cb5')](function(_0x24f965){const _0x52b1b3=_0x4e3884;if(_0x24f965[_0x52b1b3('0x11fc')]&&_0x24f965[_0x52b1b3('0x11fc')]['errors']&&_0x24f965[_0x52b1b3('0x11fc')][_0x52b1b3('0x25be')][_0x52b1b3('0x2566')]){_0x3317e0[_0x52b1b3('0x25be')]=_0x24f965[_0x52b1b3('0x11fc')][_0x52b1b3('0x25be')]||[{'message':_0x24f965[_0x52b1b3('0x17df')](),'type':_0x52b1b3('0x54a')}];for(let _0x1e4aea=0x0;_0x1e4aea<_0x24f965[_0x52b1b3('0x11fc')][_0x52b1b3('0x25be')]['length'];_0x1e4aea++){_0x48fe3b[_0x52b1b3('0x5e8')]({'title':_0x24f965[_0x52b1b3('0x11fc')][_0x52b1b3('0x25be')][_0x1e4aea][_0x52b1b3('0x1d7')],'msg':_0x24f965[_0x52b1b3('0x11fc')][_0x52b1b3('0x25be')][_0x1e4aea][_0x52b1b3('0x15e2')]});}}else _0x48fe3b[_0x52b1b3('0x5e8')]({'title':_0x24f965[_0x52b1b3('0x1b51')]?'API:'+_0x24f965[_0x52b1b3('0x1b51')]+'\x20-\x20'+_0x24f965[_0x52b1b3('0x22ce')]:_0x52b1b3('0x54a'),'msg':_0x24f965[_0x52b1b3('0x11fc')]?JSON[_0x52b1b3('0x1be0')](_0x24f965[_0x52b1b3('0x11fc')]['message']):_0x24f965['toString']()});});}function _0x4a52c7(_0x3f5515){const _0x5b9e57=_0x5dd6e8;_0x3317e0[_0x5b9e57('0x25be')]=[];const _0x3b9a1a=_0x1b0816['confirm']()[_0x5b9e57('0x14e4')](_0x5b9e57('0x458'))[_0x5b9e57('0x1c98')](_0x5b9e57('0x465'))['ariaLabel'](_0x5b9e57('0xe47'))['ok']('Delete')['cancel']('Cancel')[_0x5b9e57('0x24d0')](_0x3f5515);_0x1b0816[_0x5b9e57('0x2fa')](_0x3b9a1a)[_0x5b9e57('0x2788')](function(){const _0x3b60ec=_0x5b9e57;_0x2e715d[_0x3b60ec('0xf75')]['delete']({'id':_0x3317e0[_0x3b60ec('0xf75')]['id']})[_0x3b60ec('0x1714')][_0x3b60ec('0x2788')](function(){const _0x1703f4=_0x3b60ec;_0x283545()[_0x1703f4('0x1a90')](_0x3317e0['mailSubtatuses'],{'id':_0x3317e0[_0x1703f4('0xf75')]['id']}),_0x48fe3b['success']({'title':_0x1703f4('0x128b'),'msg':(_0x3317e0[_0x1703f4('0xf75')][_0x1703f4('0x1a8d')]||_0x1703f4('0xf75'))+_0x1703f4('0x14d4')}),_0x4c074e(_0x3317e0['mailSubstatus']);})[_0x3b60ec('0x1cb5')](function(_0x1e0534){const _0x3bf736=_0x3b60ec;if(_0x1e0534['data']&&_0x1e0534[_0x3bf736('0x11fc')]['errors']&&_0x1e0534[_0x3bf736('0x11fc')][_0x3bf736('0x25be')][_0x3bf736('0x2566')]){_0x3317e0[_0x3bf736('0x25be')]=_0x1e0534[_0x3bf736('0x11fc')][_0x3bf736('0x25be')]||[{'message':_0x1e0534['toString'](),'type':'api.mailSubstatus.delete'}];for(let _0x13c01c=0x0;_0x13c01c<_0x1e0534[_0x3bf736('0x11fc')][_0x3bf736('0x25be')][_0x3bf736('0x2566')];_0x13c01c++){_0x48fe3b[_0x3bf736('0x5e8')]({'title':_0x1e0534[_0x3bf736('0x11fc')][_0x3bf736('0x25be')][_0x13c01c][_0x3bf736('0x1d7')],'msg':_0x1e0534['data'][_0x3bf736('0x25be')][_0x13c01c][_0x3bf736('0x15e2')]});}}else _0x48fe3b['error']({'title':_0x1e0534[_0x3bf736('0x1b51')]?'API:'+_0x1e0534['status']+_0x3bf736('0x1b0b')+_0x1e0534[_0x3bf736('0x22ce')]:_0x3bf736('0xdd3'),'msg':_0x1e0534[_0x3bf736('0x11fc')]?JSON['stringify'](_0x1e0534[_0x3bf736('0x11fc')][_0x3bf736('0x15e2')]):_0x1e0534[_0x3bf736('0x15e2')]||_0x1e0534[_0x3bf736('0x17df')]()});});},function(){});}function _0x355d45(_0x2a7d81){return _0x2a7d81===null?undefined:new Date(_0x2a7d81);}function _0x4c074e(_0x5d805a){const _0xa426f5=_0x5dd6e8;_0x1b0816[_0xa426f5('0x19d')](_0x5d805a);}}const _0x590c3d=_0x94be5c,_0x56a5f4=_0x18dd13['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html';_0x363d5a[_0x34e79e('0x2d9')]=['$scope','$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x162'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x363d5a(_0x4cf190,_0x1ec9c2,_0x52dfef,_0x51d212,_0x1281c9,_0x4e31e5,_0x16883e,_0x3fc83f,_0x53a9f8,_0x5a437f,_0x26b977,_0x42ca9c,_0x4c5803,_0x57ac49,_0x12a635,_0x5a0849,_0x206da1){const _0x10673a=_0x34e79e,_0x5d0a9d=this;_0x5d0a9d['license']=_0x5a0849,_0x5d0a9d[_0x10673a('0x1af0')]=_0x206da1,_0x5d0a9d[_0x10673a('0x9cb')]=_0x12a635[_0x10673a('0x24cc')](),_0x5d0a9d['mailSubtatuses']=_0x53a9f8||{'count':0x0,'rows':[]},_0x5d0a9d[_0x10673a('0x63c')]=_0x5a437f,_0x5d0a9d[_0x10673a('0xec9')]=_0x26b977&&_0x26b977['count']==0x1?_0x26b977[_0x10673a('0x25df')][0x0]:null,_0x5d0a9d['crudPermissions']=_0x12a635[_0x10673a('0x157e')](_0x5d0a9d[_0x10673a('0xec9')]?_0x5d0a9d[_0x10673a('0xec9')][_0x10673a('0xe28')]:null),_0x5d0a9d[_0x10673a('0x26a9')]=_0x10673a('0x162'),_0x5d0a9d[_0x10673a('0x2278')]='',_0x5d0a9d[_0x10673a('0x25e2')]=null,_0x5d0a9d[_0x10673a('0x1157')]=[],_0x5d0a9d[_0x10673a('0x135a')]={'fields':_0x10673a('0x1f79'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x5d0a9d[_0x10673a('0x23af')]=_0x28994f,_0x5d0a9d['deleteconfirm']=_0x49c037,_0x5d0a9d[_0x10673a('0x173b')]=_0x29a153,_0x5d0a9d[_0x10673a('0x5c3')]=_0x211818,_0x5d0a9d[_0x10673a('0x20a2')]=_0x56d168,_0x5d0a9d['deleteMailSubstatus']=_0x1988d2,_0x5d0a9d[_0x10673a('0x1df0')]=_0x43868d,_0x5d0a9d[_0x10673a('0x130f')]=_0x1de7f7,_0x5d0a9d[_0x10673a('0x1b02')]=_0x1b22ef,_0x5d0a9d[_0x10673a('0x3fe')]=_0x542b06;function _0x28994f(_0x1a13b3,_0x454a70){const _0x2a78cd=_0x10673a;_0x1281c9['show']({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x56a5f4,'parent':angular[_0x2a78cd('0x16b1')](_0x4e31e5[_0x2a78cd('0x945')]),'targetEvent':_0x454a70,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x1a13b3,'mailSubtatuses':_0x5d0a9d[_0x2a78cd('0x162')][_0x2a78cd('0x25df')],'license':_0x5d0a9d[_0x2a78cd('0x130d')],'setting':null,'crudPermissions':_0x5d0a9d[_0x2a78cd('0xe28')]}});}function _0x49c037(_0x36f2df,_0x297a44){const _0x558e34=_0x10673a,_0x49d536=_0x1281c9[_0x558e34('0x112e')]()[_0x558e34('0x14e4')](_0x558e34('0x2114')+_0x283545()['startCase'](_0x558e34('0xf75'))+'?')[_0x558e34('0x93e')](_0x558e34('0x1670')+(_0x36f2df[_0x558e34('0x1a8d')]||_0x558e34('0xf75'))+''+'\x20will\x20be\x20deleted.')[_0x558e34('0x10bc')](_0x558e34('0x1dda'))[_0x558e34('0x24d0')](_0x297a44)['ok']('OK')[_0x558e34('0x1801')](_0x558e34('0x1d8d'));_0x1281c9['show'](_0x49d536)[_0x558e34('0x2788')](function(){_0x1988d2(_0x36f2df);},function(){const _0x478f62=_0x558e34;console[_0x478f62('0x10df')](_0x478f62('0x1d8d'));});}let _0x5ee15b=!![],_0x43b519=0x1;_0x4cf190[_0x10673a('0x1662')]('vm.query.filter',function(_0x9164cf,_0x755903){const _0x3a2ea4=_0x10673a;_0x5ee15b?_0x16883e(function(){_0x5ee15b=![];}):(!_0x755903&&(_0x43b519=_0x5d0a9d[_0x3a2ea4('0x135a')]['page']),_0x9164cf!==_0x755903&&(_0x5d0a9d[_0x3a2ea4('0x135a')][_0x3a2ea4('0x23f5')]=0x1),!_0x9164cf&&(_0x5d0a9d['query'][_0x3a2ea4('0x23f5')]=_0x43b519),_0x5d0a9d['getMailSubstatuses']());});function _0x29a153(_0x212e4e){_0x5d0a9d['mailSubtatuses']=_0x212e4e||{'count':0x0,'rows':[]};}function _0x211818(){const _0x3ccedc=_0x10673a;_0x5d0a9d[_0x3ccedc('0x135a')][_0x3ccedc('0x19e')]=(_0x5d0a9d[_0x3ccedc('0x135a')][_0x3ccedc('0x23f5')]-0x1)*_0x5d0a9d[_0x3ccedc('0x135a')][_0x3ccedc('0x68e')],_0x12a635['hasRole']('admin')?_0x5d0a9d['promise']=_0x42ca9c[_0x3ccedc('0xf75')][_0x3ccedc('0x1335')](_0x5d0a9d[_0x3ccedc('0x135a')],_0x29a153)[_0x3ccedc('0x1714')]:(_0x5d0a9d[_0x3ccedc('0x135a')]['id']=_0x5d0a9d[_0x3ccedc('0x63c')]['id'],_0x5d0a9d[_0x3ccedc('0x135a')][_0x3ccedc('0xb13')]=_0x3ccedc('0x333'),_0x5d0a9d[_0x3ccedc('0x1808')]=_0x42ca9c['userProfile'][_0x3ccedc('0xa1')](_0x5d0a9d['query'],_0x29a153)['$promise']);}function _0x56d168(_0x20d3bd,_0x3e24c7){const _0x397d03=_0x10673a;_0x1281c9['show']({'controller':_0x397d03('0x94f'),'controllerAs':'vm','templateUrl':_0x56a5f4,'parent':angular['element'](_0x4e31e5[_0x397d03('0x945')]),'targetEvent':_0x20d3bd,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x3e24c7,'mailSubtatuses':_0x5d0a9d[_0x397d03('0x162')][_0x397d03('0x25df')],'license':_0x5d0a9d[_0x397d03('0x130d')],'setting':_0x5d0a9d[_0x397d03('0x1af0')],'crudPermissions':_0x5d0a9d[_0x397d03('0xe28')]}});}function _0x1988d2(_0x5d48fd){const _0x27408e=_0x10673a;_0x42ca9c[_0x27408e('0xf75')][_0x27408e('0x17c4')]({'id':_0x5d48fd['id']})['$promise'][_0x27408e('0x2788')](function(){const _0x3a73a2=_0x27408e;_0x283545()[_0x3a73a2('0x1a90')](_0x5d0a9d['mailSubtatuses'][_0x3a73a2('0x25df')],{'id':_0x5d48fd['id']}),_0x5d0a9d[_0x3a73a2('0x162')][_0x3a73a2('0x338')]-=0x1,!_0x5d0a9d[_0x3a73a2('0x162')]['rows'][_0x3a73a2('0x2566')]&&_0x5d0a9d[_0x3a73a2('0x5c3')](),_0x57ac49[_0x3a73a2('0x173b')]({'title':_0x283545()[_0x3a73a2('0x114')](_0x3a73a2('0x2108'))+_0x3a73a2('0x20db'),'msg':_0x5d48fd[_0x3a73a2('0x1a8d')]?_0x5d48fd[_0x3a73a2('0x1a8d')]+_0x3a73a2('0x14d4'):''});})[_0x27408e('0x1cb5')](function(_0x440f39){const _0x3f72f9=_0x27408e;if(_0x440f39['data']&&_0x440f39['data']['errors']&&_0x440f39[_0x3f72f9('0x11fc')]['errors'][_0x3f72f9('0x2566')]){_0x5d0a9d['errors']=_0x440f39['data']['errors']||[{'message':_0x440f39[_0x3f72f9('0x17df')](),'type':'SYSTEM:DELETEmailSubstatus'}];for(let _0x317be7=0x0;_0x317be7<_0x440f39[_0x3f72f9('0x11fc')][_0x3f72f9('0x25be')][_0x3f72f9('0x2566')];_0x317be7++){_0x57ac49['error']({'title':_0x440f39['data'][_0x3f72f9('0x25be')][_0x317be7][_0x3f72f9('0x1d7')],'msg':_0x440f39[_0x3f72f9('0x11fc')][_0x3f72f9('0x25be')][_0x317be7][_0x3f72f9('0x15e2')]});}}else _0x57ac49[_0x3f72f9('0x5e8')]({'title':_0x440f39[_0x3f72f9('0x1b51')]?_0x3f72f9('0x15d1')+_0x440f39[_0x3f72f9('0x1b51')]+'\x20-\x20'+_0x440f39[_0x3f72f9('0x22ce')]:_0x3f72f9('0xe18'),'msg':_0x440f39[_0x3f72f9('0x11fc')]?JSON[_0x3f72f9('0x1be0')](_0x440f39[_0x3f72f9('0x11fc')]['message']):_0x440f39[_0x3f72f9('0x15e2')]||_0x440f39[_0x3f72f9('0x17df')]()});});}function _0x43868d(){const _0x5a4ae3=_0x10673a,_0x242754=angular['copy'](_0x5d0a9d['selectedMailSubstatuses']);return _0x5d0a9d[_0x5a4ae3('0x1157')]=[],_0x242754;}function _0x1de7f7(_0x10ded2){const _0x5c1e8a=_0x10673a,_0x22ca53=_0x1281c9['confirm']()[_0x5c1e8a('0x14e4')](_0x5c1e8a('0x20cf'))['htmlContent'](_0x5c1e8a('0x1670')+_0x5d0a9d[_0x5c1e8a('0x1157')][_0x5c1e8a('0x2566')]+_0x5c1e8a('0xbd')+_0x5c1e8a('0x27c7'))[_0x5c1e8a('0x10bc')](_0x5c1e8a('0xbcc'))[_0x5c1e8a('0x24d0')](_0x10ded2)['ok']('OK')['cancel'](_0x5c1e8a('0x1d8d'));_0x1281c9[_0x5c1e8a('0x2fa')](_0x22ca53)[_0x5c1e8a('0x2788')](function(){const _0x350b93=_0x5c1e8a;_0x5d0a9d[_0x350b93('0x1157')]['forEach'](function(_0x4bc293){_0x1988d2(_0x4bc293);}),_0x5d0a9d['selectedMailSubstatuses']=[];});}function _0x1b22ef(){const _0x17e1f6=_0x10673a;_0x5d0a9d[_0x17e1f6('0x1157')]=[];}function _0x542b06(){const _0x1bee05=_0x10673a;_0x5d0a9d[_0x1bee05('0x1157')]=_0x5d0a9d[_0x1bee05('0x162')][_0x1bee05('0x25df')];}}const _0x3ce252=_0x363d5a;_0xaaff00[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0xaaff00(_0x38685c,_0x21be01){const _0x3fe864=_0x34e79e;_0x38685c[_0x3fe864('0x249b')](_0x3fe864('0x1bab'),{'abstract':!![],'url':_0x3fe864('0x16e4')})[_0x3fe864('0x249b')](_0x3fe864('0xab9'),{'url':_0x3fe864('0x2482'),'views':{'content@app':{'templateUrl':_0x4675f1,'controller':_0x3fe864('0x2b')}},'resolve':{'mailQueues':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x29dc4a,_0x273a7a){const _0x25f3df=_0x3fe864;return _0x273a7a[_0x25f3df('0x1516')](_0x25f3df('0xe23'))?_0x29dc4a[_0x25f3df('0x2322')](_0x25f3df('0x1c29'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x25f3df('0x2795'),'limit':0xa,'offset':0x0}):_0x29dc4a[_0x25f3df('0x2322')](_0x25f3df('0x27c5'),{'id':_0x273a7a['getCurrentUser']()[_0x25f3df('0x237f')],'section':_0x25f3df('0x26fc'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x25f3df('0x1cee'),'channel':'mail','limit':0xa,'offset':0x0});}],'userProfile':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x238fcd,_0x4dbfcd){const _0x1ae23c=_0x3fe864;return _0x4dbfcd[_0x1ae23c('0x1516')](_0x1ae23c('0xe23'))?null:_0x238fcd[_0x1ae23c('0x2322')](_0x1ae23c('0x231d'),{'fields':_0x1ae23c('0x3f0'),'id':_0x4dbfcd[_0x1ae23c('0x24cc')]()[_0x1ae23c('0x237f')]});}],'userProfileSection':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x290e89,_0x4d0153){const _0x101a90=_0x3fe864;return _0x4d0153[_0x101a90('0x1516')](_0x101a90('0xe23'))?null:_0x290e89[_0x101a90('0x2322')](_0x101a90('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4d0153['getCurrentUser']()['userProfileId'],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x3fe864('0x2795')})['state'](_0x3fe864('0x2272'),{'url':_0x3fe864('0x206b'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x52bd00,'controller':'MailQueueController\x20as\x20vm'}},'resolve':{'mailQueue':[_0x3fe864('0x1318'),_0x3fe864('0xad0'),function(_0xb5d57b,_0x48ebe2){const _0x13ced2=_0x3fe864;return _0xb5d57b[_0x13ced2('0x2322')](_0x13ced2('0x1c29'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x48ebe2['id']});}],'userProfileSection':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x4ff87f,_0x588929){const _0x5cf30e=_0x3fe864;return _0x4ff87f[_0x5cf30e('0x2322')](_0x5cf30e('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x588929[_0x5cf30e('0x24cc')]()[_0x5cf30e('0x237f')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x3fe864('0x2795')})['state'](_0x3fe864('0x1de9'),{'url':_0x3fe864('0x975'),'views':{'content@app':{'templateUrl':_0x4d07f2,'controller':_0x3fe864('0x62c')}},'resolve':{'mailAccounts':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x49720d,_0x110709){const _0x147cd2=_0x3fe864;return _0x110709[_0x147cd2('0x1516')](_0x147cd2('0xe23'))?_0x49720d[_0x147cd2('0x2322')](_0x147cd2('0x219f'),{'fields':_0x147cd2('0x14a0'),'sort':_0x147cd2('0x1cee'),'limit':0xa,'offset':0x0}):_0x49720d[_0x147cd2('0x2322')](_0x147cd2('0x27c5'),{'id':_0x110709[_0x147cd2('0x24cc')]()[_0x147cd2('0x237f')],'section':_0x147cd2('0x1efc'),'fields':_0x147cd2('0x14a0'),'sort':_0x147cd2('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x253307,_0x55a5d3){const _0x244f0e=_0x3fe864;return _0x55a5d3[_0x244f0e('0x1516')](_0x244f0e('0xe23'))?null:_0x253307[_0x244f0e('0x2322')](_0x244f0e('0x231d'),{'fields':_0x244f0e('0x3f0'),'id':_0x55a5d3[_0x244f0e('0x24cc')]()[_0x244f0e('0x237f')]});}],'userProfileSection':[_0x3fe864('0x1318'),'Auth',function(_0x16ecd4,_0x1c6f1a){const _0xb12b53=_0x3fe864;return _0x1c6f1a[_0xb12b53('0x1516')]('admin')?null:_0x16ecd4[_0xb12b53('0x2322')](_0xb12b53('0x22ca'),{'fields':_0xb12b53('0xe2c'),'userProfileId':_0x1c6f1a[_0xb12b53('0x24cc')]()[_0xb12b53('0x237f')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0x3fe864('0x249b')](_0x3fe864('0x9b1'),{'url':_0x3fe864('0x206b'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2901dc,'controller':_0x3fe864('0x160e')}},'resolve':{'mailAccount':['apiResolver','$stateParams',function(_0x341d88,_0x19beaa){const _0x5dab66=_0x3fe864;return _0x341d88[_0x5dab66('0x2322')](_0x5dab66('0x219f'),{'fields':_0x5dab66('0x14a0'),'id':_0x19beaa['id']});}],'userProfileSection':[_0x3fe864('0x1318'),'Auth',function(_0x1c0d57,_0x3db6dc){const _0x338f16=_0x3fe864;return _0x1c0d57['resolve'](_0x338f16('0x22ca'),{'fields':_0x338f16('0xe2c'),'userProfileId':_0x3db6dc['getCurrentUser']()[_0x338f16('0x237f')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x3fe864('0x2795')})[_0x3fe864('0x249b')]('app.mail.mailSubtatuses',{'url':_0x3fe864('0x10da'),'views':{'content@app':{'templateUrl':_0x33eb89,'controller':_0x3fe864('0x1047')}},'resolve':{'mailSubtatuses':[_0x3fe864('0x1318'),function(_0x278917){const _0x1d45fe=_0x3fe864;return _0x278917[_0x1d45fe('0x2322')]('mailSubstatus@get',{'fields':'createdAt,updatedAt,id,name,description','sort':_0x1d45fe('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x4111cb,_0x25177e){const _0x4bffb2=_0x3fe864;return _0x25177e[_0x4bffb2('0x1516')]('admin')?null:_0x4111cb[_0x4bffb2('0x2322')]('userProfile@get',{'fields':_0x4bffb2('0x3f0'),'id':_0x25177e[_0x4bffb2('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x3fe864('0x1318'),_0x3fe864('0x1b04'),function(_0x52d24c,_0x2563e7){const _0x40875e=_0x3fe864;return _0x2563e7[_0x40875e('0x1516')]('admin')?null:_0x52d24c[_0x40875e('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2563e7[_0x40875e('0x24cc')]()['userProfileId'],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':_0x3fe864('0x2795')}),_0x21be01['addPart'](_0x3fe864('0x121e'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1bab'),[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),'flow','mdColorPicker','ckeditor',_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),'mwFormUtils',_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),'angular.filter',_0x34e79e('0xf4e')])['config'](_0xaaff00)['controller'](_0x34e79e('0x600'),_0xf2ad5a)['controller'](_0x34e79e('0x125c'),_0x39fc7f)[_0x34e79e('0xb44')](_0x34e79e('0x8e0'),_0x299225)[_0x34e79e('0xb44')]('EditMailAccountAppagentDialogController',_0xc7e3d4)[_0x34e79e('0xb44')](_0x34e79e('0x2253'),_0x1ff89f)[_0x34e79e('0xb44')]('EditMailAccountAppcloseDialogController',_0x17c870)['controller'](_0x34e79e('0x360'),_0x5af785)[_0x34e79e('0xb44')](_0x34e79e('0xd09'),_0xa8377d)[_0x34e79e('0xb44')](_0x34e79e('0x9ef'),_0x2234e6)[_0x34e79e('0xb44')](_0x34e79e('0x213b'),_0x1276a1)[_0x34e79e('0xb44')](_0x34e79e('0x19d0'),_0xb6c1c1)['controller'](_0x34e79e('0x276'),_0x5534bd)[_0x34e79e('0xb44')](_0x34e79e('0x192d'),_0x49d126)['controller']('MailAccountInteractionsController',_0x4d6ef4)[_0x34e79e('0xb44')](_0x34e79e('0xfa3'),_0x307544)[_0x34e79e('0xb44')](_0x34e79e('0x2761'),_0x10d20e)[_0x34e79e('0xb44')](_0x34e79e('0xb49'),_0x158f6a)[_0x34e79e('0xb44')](_0x34e79e('0x20b4'),_0x3833e4)['controller'](_0x34e79e('0xc7'),_0x43ba49)['controller'](_0x34e79e('0x119c'),_0x1f0de2)[_0x34e79e('0xb44')]('MailQueueagentaddController',_0x168709)[_0x34e79e('0xb44')](_0x34e79e('0x18a9'),_0xcf8b49)['controller'](_0x34e79e('0x1f89'),_0x453cd0)[_0x34e79e('0xb44')](_0x34e79e('0x22c7'),_0x182169)[_0x34e79e('0xb44')](_0x34e79e('0x94f'),_0x590c3d)[_0x34e79e('0xb44')](_0x34e79e('0x2408'),_0x3ce252);const _0x184ae9=_0x18dd13['p']+_0x34e79e('0x443'),_0x36947f=_0x18dd13['p']+_0x34e79e('0x1f4c'),_0x19adef=_0x18dd13['p']+_0x34e79e('0x18bf');_0x4c8870[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x446'),'$mdDialog','$document',_0x34e79e('0x135d'),_0x34e79e('0x225d'),'agents','rpcAgents','api',_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1fc6'),'userProfile','userProfileSection',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x16e3')];function _0x4c8870(_0x41c821,_0x57c049,_0xed2440,_0x460b88,_0x914185,_0xe8bc69,_0x246010,_0x5f12b5,_0x3b75a6,_0x2acc9b,_0x1167aa,_0x27bf30,_0xae9967,_0x3de2e6,_0x422256,_0x562e30,_0x490d72,_0x406e66){const _0x3d7e6d=_0x34e79e,_0x134e48=this,_0x400375=['userpic','online',_0x3d7e6d('0x813'),_0x3d7e6d('0x233e'),_0x3d7e6d('0x11e9'),_0x3d7e6d('0x233e'),'internal',_0x3d7e6d('0x32e'),_0x3d7e6d('0x23a5'),'openchannelPause',_0x3d7e6d('0x20cd'),_0x3d7e6d('0xfd5'),_0x3d7e6d('0x924'),_0x3d7e6d('0x1891'),_0x3d7e6d('0x2a1'),_0x3d7e6d('0x4e0'),_0x3d7e6d('0xde1'),'mailCapacity','smsCapacity',_0x3d7e6d('0x982'),_0x3d7e6d('0xc8b'),_0x3d7e6d('0xc78'),'openchannelCurrentCapacity',_0x3d7e6d('0x113a'),_0x3d7e6d('0x1f88'),_0x3d7e6d('0x1d37'),'faxCurrentCapacity','chatStatus',_0x3d7e6d('0x18a3'),'mailStatus',_0x3d7e6d('0x698'),_0x3d7e6d('0x167f'),_0x3d7e6d('0x17d6'),'voiceStatus',_0x3d7e6d('0x1eeb'),_0x3d7e6d('0x320'),_0x3d7e6d('0x1831'),_0x3d7e6d('0x27b0'),_0x3d7e6d('0x1ac7'),_0x3d7e6d('0xbc'),_0x3d7e6d('0x48b'),_0x3d7e6d('0x1ab4'),_0x3d7e6d('0xdb6'),_0x3d7e6d('0x12b5'),_0x3d7e6d('0x15d7'),_0x3d7e6d('0xafd')],_0x284877=['chatPause',_0x3d7e6d('0x1098'),_0x3d7e6d('0x20cd'),_0x3d7e6d('0xfd5'),_0x3d7e6d('0x924'),_0x3d7e6d('0x1891'),'voicePause','online'];_0x134e48[_0x3d7e6d('0x9cb')]=_0x562e30[_0x3d7e6d('0x24cc')](),_0x134e48['availableStates']=['ringing',_0x3d7e6d('0x11c3'),_0x3d7e6d('0xed9'),_0x3d7e6d('0x2097'),_0x3d7e6d('0x1af6')],_0x134e48['pauses']=_0x246010||{'count':0x0,'rows':[]},_0x134e48['license']=_0x490d72,_0x134e48[_0x3d7e6d('0x63c')]=_0x3de2e6,_0x134e48[_0x3d7e6d('0xec9')]=_0x422256&&_0x422256['count']==0x1?_0x422256['rows'][0x0]:null,_0x134e48['crudPermissions']=_0x562e30[_0x3d7e6d('0x157e')](_0x134e48['userProfileSection']?_0x134e48[_0x3d7e6d('0xec9')][_0x3d7e6d('0xe28')]:null),_0x134e48[_0x3d7e6d('0x1713')]=_0x5f12b5?_0x283545()[_0x3d7e6d('0x13cf')](_0x5f12b5[_0x3d7e6d('0x25df')]?_0x5f12b5[_0x3d7e6d('0x25df')]:[],'id'):{},_0x134e48[_0x3d7e6d('0x1c55')]=_0x3b75a6?_0x283545()[_0x3d7e6d('0x13cf')](_0x3b75a6[_0x3d7e6d('0x25df')]?_0x3b75a6[_0x3d7e6d('0x25df')]:[],'id'):{},_0x134e48[_0x3d7e6d('0x26ed')]={},_0x134e48[_0x3d7e6d('0x374')]=![],_0x134e48['order']=[],_0x134e48[_0x3d7e6d('0x1564')]={};for(const _0x263926 in _0x134e48[_0x3d7e6d('0x1713')]){typeof _0x134e48[_0x3d7e6d('0x1713')][_0x263926]!=='undefined'&&(_0x134e48[_0x3d7e6d('0x1713')][_0x263926][_0x3d7e6d('0x24eb')]=!![]);}_0x134e48['query']={'limit':0xa,'page':0x1,'order':_0x3d7e6d('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0x134e48[_0x3d7e6d('0x192f')]=_0xeb1499,_0x134e48[_0x3d7e6d('0x2025')]=_0x2a1d56,_0x134e48['pause']=_0x47b414,_0x134e48['unPause']=_0x2d322e,_0x134e48[_0x3d7e6d('0xa35')]=_0x2d23fb,_0x134e48['getAgentStatus']=_0x2967b5,_0x134e48[_0x3d7e6d('0xcfd')]=_0x1e22c8,_0x134e48[_0x3d7e6d('0x192')]=_0x333887,_0x134e48[_0x3d7e6d('0xaef')]=_0xf66dd4,_0x134e48['isPartialPause']=_0x2e1b69,_0x134e48[_0x3d7e6d('0x158d')]=_0x1e4b54,_0x134e48['onUpdate']=_0x40569b,_0x134e48[_0x3d7e6d('0x122e')]=_0x34841e,_0x134e48[_0x3d7e6d('0x2826')]=_0x571d58,_0x134e48[_0x3d7e6d('0xb61')]=_0xf86ac1,_0x134e48[_0x3d7e6d('0x1e03')]=_0x288cc8,_0x1167aa['on'](_0x3d7e6d('0x71'),_0x134e48[_0x3d7e6d('0x158d')]),_0x1167aa['on'](_0x3d7e6d('0x1cb6'),_0x134e48['onUpdate']),_0x1167aa['on'](_0x3d7e6d('0x1958'),_0x134e48[_0x3d7e6d('0x2826')]),_0x1167aa['on'](_0x3d7e6d('0x116b'),_0x134e48[_0x3d7e6d('0xb61')]),_0x34841e();let _0x4e9d76=_0x406e66(function(){const _0x5c5165=_0x3d7e6d;_0x134e48[_0x5c5165('0x374')]&&(_0x134e48['load']=![],_0x34841e());},0x3e7);function _0x34841e(){const _0x9539ae=_0x3d7e6d;_0x134e48[_0x9539ae('0x374')]=![];const _0x1c5c17=_0x57c049['defer']();_0x134e48[_0x9539ae('0x1808')]=_0x1c5c17[_0x9539ae('0x1808')],_0x134e48[_0x9539ae('0xfe8')]=[],_0x134e48['order']=[],_0x283545()[_0x9539ae('0x1b')](_0x134e48[_0x9539ae('0x1713')],function(_0x1eb4de,_0x5605f1){const _0x4c266b=_0x9539ae;_0x134e48[_0x4c266b('0x1c55')][_0x5605f1]&&_0x283545()[_0x4c266b('0x2503')](_0x1eb4de,_0x283545()[_0x4c266b('0x41b')](_0x283545()['omit'](_0x134e48['rpcAgents'][_0x5605f1],_0x284877),_0x400375)),_0x1e22c8(_0x1eb4de),_0x1eb4de['online']?(_0x134e48['filteredAgents']['push'](_0x1eb4de),_0x134e48[_0x4c266b('0x1564')][_0x1eb4de[_0x4c266b('0x2838')]]=_0x5605f1):_0x1eb4de['globalStatusTime']=_0x283545()[_0x4c266b('0x420')](_0x59f37a()()[_0x4c266b('0x22b4')]('x'));});_0x134e48[_0x9539ae('0x135a')]['globalStatusFilter']&&_0x283545()[_0x9539ae('0x1a90')](_0x134e48['filteredAgents'],function(_0x991114){const _0x1950ee=_0x9539ae;return _0x991114[_0x1950ee('0xee3')]!==_0x134e48[_0x1950ee('0x135a')]['globalStatusFilter'];});_0x134e48[_0x9539ae('0x135a')][_0x9539ae('0xf25')]&&_0x283545()[_0x9539ae('0x1a90')](_0x134e48[_0x9539ae('0xfe8')],function(_0x285813){const _0x4e475b=_0x9539ae;return _0x285813[_0x4e475b('0x11e9')]!==_0x134e48['query'][_0x4e475b('0xf25')];});_0x134e48['query'][_0x9539ae('0x916')]&&_0x283545()[_0x9539ae('0x1a90')](_0x134e48[_0x9539ae('0xfe8')],function(_0x19be6f){const _0x12c5f5=_0x9539ae;return _0x19be6f[_0x12c5f5('0x2831')]['toLowerCase']()['indexOf'](_0x134e48[_0x12c5f5('0x135a')][_0x12c5f5('0x916')][_0x12c5f5('0xc2e')]())<0x0;});_0x134e48['filteredAgents']=_0x5e0160(_0x134e48[_0x9539ae('0xfe8')]);const _0x5aeb90=(_0x134e48[_0x9539ae('0x135a')][_0x9539ae('0x23f5')]-0x1)*_0x134e48[_0x9539ae('0x135a')][_0x9539ae('0x68e')];_0x134e48[_0x9539ae('0x26ed')]=_0x283545()[_0x9539ae('0x280')](_0x134e48[_0x9539ae('0xfe8')],_0x5aeb90)[_0x9539ae('0x845')](0x0,_0x134e48[_0x9539ae('0x135a')][_0x9539ae('0x68e')]);for(let _0x5b4467=0x0;_0x5b4467<_0x134e48['paginatedAgents'][_0x9539ae('0x2566')];_0x5b4467+=0x1){_0x134e48[_0x9539ae('0x1dc2')][_0x9539ae('0x13e3')](_0x134e48[_0x9539ae('0x26ed')][_0x5b4467]['id']);}_0x1c5c17[_0x9539ae('0x2322')](),_0x134e48[_0x9539ae('0x374')]=!![];}function _0x1e4b54(_0x295a09){const _0x2f4428=_0x3d7e6d;_0x134e48[_0x2f4428('0x1713')][_0x295a09['id']]&&(_0x283545()[_0x2f4428('0x2503')](_0x134e48[_0x2f4428('0x1713')][_0x295a09['id']],_0x283545()[_0x2f4428('0x41b')](_0x283545()[_0x2f4428('0x5a9')](_0x295a09,_0x284877),_0x400375)),_0x283545()[_0x2f4428('0x2503')](_0x134e48[_0x2f4428('0x1c55')][_0x295a09['id']],_0x283545()[_0x2f4428('0x41b')](_0x283545()['omit'](_0x295a09,_0x284877),_0x400375)),_0x1e22c8(_0x134e48[_0x2f4428('0x1713')][_0x295a09['id']]));}function _0x40569b(_0x380933){const _0x1893e9=_0x3d7e6d;_0x134e48[_0x1893e9('0x1713')][_0x380933['id']]&&(_0x283545()['merge'](_0x134e48['agents'][_0x380933['id']],_0x283545()['pick'](_0x380933,_0x400375)),_0x283545()['merge'](_0x134e48[_0x1893e9('0x1c55')][_0x380933['id']],_0x283545()['pick'](_0x380933,_0x400375)),_0x380933['lastPauseAt']&&(_0x134e48[_0x1893e9('0x1713')][_0x380933['id']][_0x1893e9('0xf3b')]=_0x380933['lastPauseAt'],_0x134e48[_0x1893e9('0x1c55')][_0x380933['id']][_0x1893e9('0xf3b')]=_0x380933[_0x1893e9('0x233e')]),_0x1e22c8(_0x134e48['agents'][_0x380933['id']]));}function _0x571d58(_0x29abba){const _0x54325b=_0x3d7e6d;_0x134e48['agents'][_0x134e48[_0x54325b('0x1564')][_0x29abba['destaccountcode']]]&&(_0x283545()[_0x54325b('0x2503')](_0x134e48[_0x54325b('0x1713')][_0x134e48[_0x54325b('0x1564')][_0x29abba['destaccountcode']]],_0x283545()['pick'](_0x29abba,[_0x54325b('0x1ab4'),'destconnectedlinenum'])),_0x283545()[_0x54325b('0x2503')](_0x134e48[_0x54325b('0x1c55')][_0x134e48[_0x54325b('0x1564')][_0x29abba[_0x54325b('0x7f4')]]],_0x283545()[_0x54325b('0x41b')](_0x29abba,[_0x54325b('0x1ab4'),'destconnectedlinenum'])));}function _0xf86ac1(_0x1f96b2){const _0x44c23b=_0x3d7e6d;_0x134e48[_0x44c23b('0x1713')][_0x134e48[_0x44c23b('0x1564')][_0x1f96b2[_0x44c23b('0x7f4')]]]&&(_0x134e48[_0x44c23b('0x1713')][_0x134e48['agentInternal'][_0x1f96b2[_0x44c23b('0x7f4')]]]=_0x283545()[_0x44c23b('0x5a9')](_0x134e48[_0x44c23b('0x1713')][_0x134e48[_0x44c23b('0x1564')][_0x1f96b2[_0x44c23b('0x7f4')]]],[_0x44c23b('0x1ab4'),_0x44c23b('0xdb6')]),_0x134e48['rpcAgents'][_0x134e48[_0x44c23b('0x1564')][_0x1f96b2['destaccountcode']]]=_0x283545()[_0x44c23b('0x5a9')](_0x134e48[_0x44c23b('0x1c55')][_0x134e48['agentInternal'][_0x1f96b2[_0x44c23b('0x7f4')]]],[_0x44c23b('0x1ab4'),_0x44c23b('0xdb6')]));}function _0xeb1499(_0x22bedd){const _0x346275=_0x3d7e6d;return _0x2acc9b[_0x346275('0x1e6a')][_0x346275('0x192f')]({'id':_0x22bedd['id'],'device':_0x346275('0x548'),'agent_id':_0x22bedd['id'],'agent_name':_0x22bedd[_0x346275('0x1a8d')]})[_0x346275('0x1714')][_0x346275('0x2788')](function(){const _0x3c441d=_0x346275;_0x27bf30[_0x3c441d('0x173b')]({'title':_0x3c441d('0x256b'),'msg':_0x22bedd[_0x3c441d('0x2831')]+_0x3c441d('0x12e2')}),_0x134e48[_0x3c441d('0x1713')][_0x22bedd['id']]&&(_0x134e48[_0x3c441d('0x1713')][_0x22bedd['id']][_0x3c441d('0x7c2')]=![]),_0x134e48[_0x3c441d('0x1c55')][_0x22bedd['id']]&&(_0x134e48[_0x3c441d('0x1c55')][_0x22bedd['id']][_0x3c441d('0x7c2')]=![]),_0x34841e();})[_0x346275('0x1cb5')](function(_0x1575c7){const _0x43169c=_0x346275;_0x27bf30[_0x43169c('0x5e8')]({'title':_0x1575c7['status']?'API:'+_0x1575c7[_0x43169c('0x1b51')]+_0x43169c('0x1b0b')+_0x1575c7[_0x43169c('0x22ce')]:_0x43169c('0x184d'),'msg':_0x1575c7[_0x43169c('0x11fc')]?JSON[_0x43169c('0x1be0')](_0x1575c7['data'][_0x43169c('0x15e2')]):_0x1575c7['toString']()});});}function _0x47b414(_0x4fee90,_0x1515c9){const _0x51684f=_0x3d7e6d;return _0x2acc9b[_0x51684f('0x1e6a')]['pause']({'id':_0x4fee90['id'],'type':_0x1515c9})['$promise'][_0x51684f('0x2788')](function(_0x4b6de2){const _0x176001=_0x51684f;_0x134e48['agents'][_0x4fee90['id']]&&_0x283545()[_0x176001('0x2503')](_0x134e48[_0x176001('0x1713')][_0x4fee90['id']],_0x283545()['pick'](_0x4b6de2,_0x400375)),_0x134e48['rpcAgents'][_0x4fee90['id']]&&_0x283545()[_0x176001('0x2503')](_0x134e48[_0x176001('0x1c55')][_0x4fee90['id']],_0x283545()[_0x176001('0x41b')](_0x4b6de2,_0x400375)),_0x1e22c8(_0x134e48['agents'][_0x4fee90['id']]);})[_0x51684f('0x1cb5')](function(_0x4f0deb){const _0xdb728e=_0x51684f;_0x27bf30[_0xdb728e('0x5e8')]({'title':_0x4f0deb[_0xdb728e('0x1b51')]?'API:'+_0x4f0deb[_0xdb728e('0x1b51')]+_0xdb728e('0x1b0b')+_0x4f0deb['statusText']:_0xdb728e('0x184d'),'msg':_0x4f0deb[_0xdb728e('0x11fc')]?JSON[_0xdb728e('0x1be0')](_0x4f0deb['data'][_0xdb728e('0x15e2')]):_0x4f0deb[_0xdb728e('0x17df')]()});});}function _0x2d322e(_0x4bcbfe){const _0x2d744=_0x3d7e6d;return _0x2acc9b[_0x2d744('0x1e6a')][_0x2d744('0x1826')]({'id':_0x4bcbfe['id']})['$promise'][_0x2d744('0x2788')](function(_0x1f040e){const _0x3b20f3=_0x2d744;_0x134e48['agents'][_0x4bcbfe['id']]&&_0x283545()[_0x3b20f3('0x2503')](_0x134e48[_0x3b20f3('0x1713')][_0x4bcbfe['id']],_0x283545()[_0x3b20f3('0x41b')](_0x1f040e,_0x400375)),_0x134e48[_0x3b20f3('0x1c55')][_0x4bcbfe['id']]&&_0x283545()[_0x3b20f3('0x2503')](_0x134e48['rpcAgents'][_0x4bcbfe['id']],_0x283545()['pick'](_0x1f040e,_0x400375)),_0x1e22c8(_0x134e48['agents'][_0x4bcbfe['id']]);})['catch'](function(_0x3613b3){const _0xccc7f9=_0x2d744;_0x27bf30[_0xccc7f9('0x5e8')]({'title':_0x3613b3[_0xccc7f9('0x1b51')]?_0xccc7f9('0x15d1')+_0x3613b3[_0xccc7f9('0x1b51')]+_0xccc7f9('0x1b0b')+_0x3613b3[_0xccc7f9('0x22ce')]:_0xccc7f9('0x184d'),'msg':_0x3613b3['data']?JSON[_0xccc7f9('0x1be0')](_0x3613b3[_0xccc7f9('0x11fc')][_0xccc7f9('0x15e2')]):_0x3613b3[_0xccc7f9('0x17df')]()});});}function _0x2d23fb(_0x5989c0){const _0x271b8e=_0x3d7e6d;_0x460b88[_0x271b8e('0x2fa')](_0x460b88[_0x271b8e('0x204f')]()[_0x271b8e('0x1e4e')](!![])[_0x271b8e('0x14e4')](_0x271b8e('0xcbb'))[_0x271b8e('0x93e')](_0x271b8e('0x122a'))['ok']('Ok')[_0x271b8e('0x24d0')](_0x5989c0));}function _0x2a1d56(_0x24d970,_0x5b1cb4){const _0x55ed8b=_0x3d7e6d;_0x460b88[_0x55ed8b('0x2fa')]({'controller':_0x55ed8b('0x2b2'),'controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0x55ed8b('0x16b1')](_0x914185['body']),'targetEvent':_0x5b1cb4,'clickOutsideToClose':!![],'locals':{'agent':_0x24d970,'agents':[],'channel':_0x55ed8b('0x529'),'direction':_0x55ed8b('0x2e4'),'crudPermissions':_0x134e48[_0x55ed8b('0xe28')]}});}function _0x333887(_0x2aa7f1){const _0x34b9ae=_0x3d7e6d;return _0x2aa7f1==='pause'||_0x2aa7f1===_0x34b9ae('0x1d48');}function _0xf66dd4(_0x3455b3){const _0x57d9f2=_0x3d7e6d;return _0x3455b3===_0x57d9f2('0x619');}function _0x2e1b69(_0x5df6ee){const _0x25cf15=_0x3d7e6d;return _0x5df6ee===_0x25cf15('0x1d48');}function _0x41b133(_0x5596b2){const _0x16a855=_0x3d7e6d;return _0x5596b2===_0x16a855('0x124c')||_0x5596b2==='unknown'||_0x5596b2===_0x16a855('0x27f0')||_0x5596b2===_0x16a855('0x26f8')||_0x283545()[_0x16a855('0x1015')](_0x5596b2);}function _0x2967b5(_0x50bab1,_0x20688c){const _0x6732c8=_0x3d7e6d;if(_0x20688c==='voice'){if(_0x50bab1[_0x20688c+_0x6732c8('0x21d8')]!=='idle')return _0x50bab1[_0x20688c+'Status'];if(_0x50bab1[_0x20688c+'Pause'])return _0x50bab1[_0x20688c+_0x6732c8('0x21d8')]=_0x6732c8('0x619'),_0x6732c8('0x619');return _0x6732c8('0x124c');}else{if(_0x50bab1[_0x20688c+'Pause'])return _0x50bab1[_0x20688c+_0x6732c8('0x21d8')]=_0x6732c8('0x619'),_0x6732c8('0x619');return _0x50bab1[_0x20688c+_0x6732c8('0x21d8')];}}function _0x1e22c8(_0x103739){const _0x53a9ff=_0x3d7e6d;let _0x2b7213=_0x53a9ff('0x119');if(_0x283545()[_0x53a9ff('0x111e')]([_0x2967b5(_0x103739,'voice'),_0x2967b5(_0x103739,_0x53a9ff('0x231')),_0x2967b5(_0x103739,'mail'),_0x2967b5(_0x103739,_0x53a9ff('0x18aa')),_0x2967b5(_0x103739,_0x53a9ff('0x529')),_0x2967b5(_0x103739,'whatsapp'),_0x2967b5(_0x103739,_0x53a9ff('0x10cf'))],_0x333887))_0x2b7213=_0x53a9ff('0x619');else{if(_0x283545()[_0x53a9ff('0xc5d')]([_0x2967b5(_0x103739,'voice'),_0x2967b5(_0x103739,_0x53a9ff('0x231')),_0x2967b5(_0x103739,_0x53a9ff('0x2795')),_0x2967b5(_0x103739,_0x53a9ff('0x18aa')),_0x2967b5(_0x103739,'sms'),_0x2967b5(_0x103739,'whatsapp'),_0x2967b5(_0x103739,_0x53a9ff('0x10cf'))],_0x333887))_0x2b7213=_0x53a9ff('0x1d48');else _0x283545()[_0x53a9ff('0x111e')]([_0x2967b5(_0x103739,_0x53a9ff('0x1f60')),_0x2967b5(_0x103739,_0x53a9ff('0x231')),_0x2967b5(_0x103739,'mail'),_0x2967b5(_0x103739,_0x53a9ff('0x18aa')),_0x2967b5(_0x103739,_0x53a9ff('0x529')),_0x2967b5(_0x103739,'whatsapp'),_0x2967b5(_0x103739,'fax')],_0x41b133)?_0x2b7213='idle':_0x2b7213=_0x53a9ff('0xed9');}_0x103739['globalStatus']!==_0x2b7213&&(_0x103739[_0x53a9ff('0xee3')]=_0x2b7213,_0x103739['init']?(_0x103739['init']=![],_0x103739[_0x53a9ff('0xf3b')]=_0x333887(_0x2b7213)?_0x283545()[_0x53a9ff('0x420')](_0x59f37a()(_0x103739[_0x53a9ff('0x233e')])['format']('x')):_0x283545()[_0x53a9ff('0xb0a')]([_0x103739[_0x53a9ff('0x48b')],_0x103739[_0x53a9ff('0x1eeb')],_0x103739[_0x53a9ff('0x1831')],_0x103739[_0x53a9ff('0x27b0')],_0x103739[_0x53a9ff('0x1ac7')],_0x103739[_0x53a9ff('0x320')],_0x103739[_0x53a9ff('0xbc')]])):_0x103739[_0x53a9ff('0xf3b')]=_0x283545()[_0x53a9ff('0x420')](_0x59f37a()()[_0x53a9ff('0x22b4')]('x')));}function _0x5e0160(_0x274ad1){const _0xd0b96d=_0x3d7e6d,_0x2847f0=_0x283545()['startsWith'](_0x134e48['query'][_0xd0b96d('0x1dc2')],'-')?_0xd0b96d('0x25b5'):_0xd0b96d('0xe07');return _0x283545()[_0xd0b96d('0xf87')](_0x274ad1,[_0x134e48[_0xd0b96d('0x135a')][_0xd0b96d('0x1dc2')][_0xd0b96d('0x10a4')]('-','')],[_0x2847f0]);}function _0x22038a(){_0x4e9d76&&(_0x406e66['cancel'](_0x4e9d76),_0x4e9d76=null);}function _0x288cc8(_0x181f3c,_0x4929aa){const _0x34f0bd=_0x3d7e6d;return _0x2acc9b[_0x34f0bd('0x1e6a')][_0x34f0bd('0x2740')]({'id':_0x181f3c['id']},{'screenrecording':_0x4929aa})['$promise'][_0x34f0bd('0x1cb5')](function(_0x1887c0){const _0x1d636b=_0x34f0bd;_0x27bf30[_0x1d636b('0x5e8')]({'title':_0x1887c0['status']?_0x1d636b('0x15d1')+_0x1887c0[_0x1d636b('0x1b51')]+_0x1d636b('0x1b0b')+_0x1887c0[_0x1d636b('0x22ce')]:_0x1d636b('0x863'),'msg':_0x1887c0[_0x1d636b('0x11fc')]?JSON[_0x1d636b('0x1be0')](_0x1887c0[_0x1d636b('0x11fc')][_0x1d636b('0x15e2')]):_0x1887c0[_0x1d636b('0x17df')]()});});}_0x41c821[_0x3d7e6d('0x651')](_0x3d7e6d('0x26ac'),function(){const _0x32642b=_0x3d7e6d;_0x1167aa[_0x32642b('0x277f')](_0x32642b('0x71')),_0x1167aa[_0x32642b('0x277f')]('user:update'),_0x1167aa[_0x32642b('0x277f')](_0x32642b('0x1958')),_0x1167aa[_0x32642b('0x277f')]('user:agentcomplete'),_0x22038a();});}const _0x5a77ef=_0x4c8870,_0x48b58b=_0x18dd13['p']+_0x34e79e('0x133e'),_0x4d5143=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html';_0x15deaf[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$timeout','$mdDialog','$q','$document',_0x34e79e('0x16e3'),_0x34e79e('0x283e'),'rpcQueues','api',_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x15deaf(_0x3e6087,_0x22cfaa,_0x3b1423,_0x1eaaa5,_0x48fb95,_0x2ba85e,_0x3e52e1,_0x4bffd3,_0x2c2bf8,_0x3e9975,_0x2cd4f0,_0x5d18f3,_0x3d40cb,_0x183d1f){const _0x21497d=_0x34e79e,_0x364be1=this,_0x289abf=[_0x21497d('0x477'),'available',_0x21497d('0x1eb6'),_0x21497d('0x1e8c'),'pTalking',_0x21497d('0x253b'),'message','dialActive',_0x21497d('0x1054'),'Trunk',_0x21497d('0x120')];_0x364be1[_0x21497d('0x9cb')]=_0x183d1f[_0x21497d('0x24cc')](),_0x364be1[_0x21497d('0x338')]=_0x3e52e1[_0x21497d('0x338')]?_0x3e52e1[_0x21497d('0x338')]:0x0,_0x364be1[_0x21497d('0x283e')]=_0x3e52e1?_0x283545()[_0x21497d('0x13cf')](_0x3e52e1[_0x21497d('0x25df')]?_0x3e52e1[_0x21497d('0x25df')]:[],'id'):{},_0x364be1[_0x21497d('0x274c')]=_0x4bffd3?_0x283545()[_0x21497d('0x13cf')](_0x4bffd3[_0x21497d('0x25df')]?_0x4bffd3[_0x21497d('0x25df')]:[],'id'):{},_0x364be1[_0x21497d('0x63c')]=_0x5d18f3,_0x364be1[_0x21497d('0xec9')]=_0x3d40cb&&_0x3d40cb[_0x21497d('0x338')]==0x1?_0x3d40cb[_0x21497d('0x25df')][0x0]:null,_0x364be1[_0x21497d('0xe28')]=_0x183d1f[_0x21497d('0x157e')](_0x364be1[_0x21497d('0xec9')]?_0x364be1[_0x21497d('0xec9')][_0x21497d('0xe28')]:null);_0x183d1f[_0x21497d('0x1516')](_0x21497d('0xe23'))?_0x364be1[_0x21497d('0x135a')]={'type':_0x21497d('0x2e4'),'sort':_0x21497d('0x1cee'),'limit':0xa,'page':0x1}:_0x364be1['query']={'id':_0x364be1[_0x21497d('0x9cb')]['id'],'channel':'sms','type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x364be1[_0x21497d('0x173b')]=_0x4c0c11,_0x364be1['getQueues']=_0x8a390,_0x364be1[_0x21497d('0xd93')]=_0x5811af,_0x364be1[_0x21497d('0x2510')]=_0x6f41da,_0x364be1[_0x21497d('0x154c')]=_0x16e8ec,_0x364be1[_0x21497d('0x158d')]=_0x165e14,_0x364be1['onSaveMember']=_0x4bf5aa,_0x364be1[_0x21497d('0x1174')]=_0x27a22a,_0x364be1[_0x21497d('0x1768')]=_0xda6977,_0x364be1[_0x21497d('0x18e3')]=_0x177f20,_0x364be1[_0x21497d('0x234')]=_0x49ec76,_0x364be1[_0x21497d('0x11ad')]=_0x13cf10,_0x364be1[_0x21497d('0x1dc2')]=[],_0x283545()[_0x21497d('0x1b')](_0x364be1[_0x21497d('0x283e')],function(_0x36b2ea){const _0x12f001=_0x21497d;_0x364be1[_0x12f001('0x1dc2')][_0x12f001('0x13e3')](_0x36b2ea['id']);}),_0x3e9975['on'](_0x21497d('0x731'),_0x364be1[_0x21497d('0x158d')]),_0x3e9975['on'](_0x21497d('0x46e'),_0x364be1[_0x21497d('0x25e9')]),_0x3e9975['on']('userSmsQueue:remove',_0x364be1[_0x21497d('0x1174')]),_0x3e9975['on'](_0x21497d('0x1cb6'),_0x364be1[_0x21497d('0x1768')]),_0x3e9975['on'](_0x21497d('0x11e0'),_0x364be1['onLogout']),_0x3e9975['on']('userVoiceQueue:save',_0x364be1['onLogin']);function _0x13cf10(){const _0x52cf37=_0x21497d,_0x19ea24=[];return _0x283545()[_0x52cf37('0x1b')](_0x364be1[_0x52cf37('0x283e')],function(_0x44fe37,_0x29a68d){const _0x9a1dc3=_0x52cf37;_0x44fe37[_0x9a1dc3('0x120')]=0x0,_0x44fe37[_0x9a1dc3('0xc65')]=0x0,_0x364be1[_0x9a1dc3('0x283e')][_0x29a68d][_0x9a1dc3('0x1713')]={},_0x19ea24[_0x9a1dc3('0x13e3')](_0x2c2bf8[_0x9a1dc3('0x23cf')][_0x9a1dc3('0xe75')]({'id':_0x29a68d})[_0x9a1dc3('0x1714')]),_0x364be1[_0x9a1dc3('0x274c')][_0x29a68d]&&_0x283545()[_0x9a1dc3('0x2503')](_0x44fe37,_0x283545()['pick'](_0x364be1[_0x9a1dc3('0x274c')][_0x29a68d],_0x289abf));}),_0x1eaaa5[_0x52cf37('0x1def')](_0x19ea24)[_0x52cf37('0x2788')](function(_0x113df){const _0x5e8505=_0x52cf37;for(let _0x49602d=0x0;_0x49602d<_0x113df[_0x5e8505('0x2566')];_0x49602d+=0x1){for(let _0x516ebf=0x0;_0x516ebf<_0x113df[_0x49602d][_0x5e8505('0x25df')][_0x5e8505('0x2566')];_0x516ebf++){_0x113df[_0x49602d][_0x5e8505('0x25df')][_0x516ebf][_0x5e8505('0x120')]&&_0x364be1[_0x5e8505('0x283e')][_0x113df[_0x49602d]['rows'][_0x516ebf]['SmsQueueId']][_0x5e8505('0x120')]++,_0x364be1[_0x5e8505('0x283e')][_0x113df[_0x49602d][_0x5e8505('0x25df')][_0x516ebf][_0x5e8505('0x27e3')]][_0x5e8505('0xc65')]++,_0x364be1[_0x5e8505('0x283e')][_0x113df[_0x49602d]['rows'][_0x516ebf][_0x5e8505('0x27e3')]][_0x5e8505('0x1713')][_0x113df[_0x49602d][_0x5e8505('0x25df')][_0x516ebf][_0x5e8505('0x3bb')]]=_0x113df[_0x49602d][_0x5e8505('0x25df')][_0x516ebf]['SmsQueueId'];}}})[_0x52cf37('0x1cb5')](function(_0x1006bb){const _0x293702=_0x52cf37;console[_0x293702('0x5e8')](_0x1006bb);});}function _0x165e14(_0x4fc9a6){const _0x15b35a=_0x21497d;_0x364be1[_0x15b35a('0x283e')][_0x4fc9a6['id']]&&_0x283545()[_0x15b35a('0x2503')](_0x364be1[_0x15b35a('0x283e')][_0x4fc9a6['id']],_0x283545()['pick'](_0x4fc9a6,_0x289abf));}function _0x4bf5aa(_0x57442b){const _0x5b7ce9=_0x21497d;_0x364be1['queues'][_0x57442b[_0x5b7ce9('0x27e3')]]&&_0x364be1[_0x5b7ce9('0x283e')][_0x57442b[_0x5b7ce9('0x27e3')]]['loggedInDb']++;}function _0x27a22a(_0x43aebf){const _0x3c814e=_0x21497d;_0x364be1[_0x3c814e('0x283e')][_0x43aebf[_0x3c814e('0x27e3')]]&&_0x364be1[_0x3c814e('0x283e')][_0x43aebf[_0x3c814e('0x27e3')]]['loggedInDb']--;}function _0xda6977(_0x331b03){const _0x109f30=_0x21497d;console[_0x109f30('0x10df')](_0x109f30('0x1768'),_0x331b03);if(_0x331b03['voicePause'])_0x283545()[_0x109f30('0x1b')](_0x364be1['queues'],function(_0x28f629){const _0x2ea91e=_0x109f30;_0x28f629[_0x2ea91e('0x1713')][_0x331b03['id']]&&(_0x28f629[_0x2ea91e('0x120')]+=0x1,console[_0x2ea91e('0x10df')](_0x2ea91e('0x619')));});else!_0x331b03[_0x109f30('0x2a1')]&&_0x283545()['forIn'](_0x364be1[_0x109f30('0x283e')],function(_0x1005c1){const _0x11959f=_0x109f30;_0x1005c1[_0x11959f('0x1713')][_0x331b03['id']]&&(_0x1005c1[_0x11959f('0x120')]>0x0&&(_0x1005c1[_0x11959f('0x120')]-=0x1,console['log'](_0x11959f('0x1826'))));});}function _0x177f20(_0x531b2d){const _0x775b43=_0x21497d;console[_0x775b43('0x10df')](_0x775b43('0x388'),_0x531b2d),_0x364be1['queues'][_0x531b2d[_0x775b43('0x27e3')]]&&(_0x364be1[_0x775b43('0x283e')][_0x531b2d[_0x775b43('0x27e3')]]['loggedInDb']+=0x1,_0x364be1['queues'][_0x531b2d[_0x775b43('0x27e3')]][_0x775b43('0x1713')][_0x531b2d[_0x775b43('0x3bb')]]=_0x531b2d[_0x775b43('0x27e3')]);}function _0x49ec76(_0x39a805){const _0x238032=_0x21497d;console['log']('onLogout',_0x39a805),_0x364be1[_0x238032('0x283e')][_0x39a805[_0x238032('0x27e3')]]&&_0x364be1['queues'][_0x39a805[_0x238032('0x27e3')]][_0x238032('0xc65')]>0x0&&(_0x364be1[_0x238032('0x283e')][_0x39a805[_0x238032('0x27e3')]][_0x238032('0xc65')]-=0x1,delete _0x364be1['queues'][_0x39a805[_0x238032('0x27e3')]]['agents'][_0x39a805[_0x238032('0x3bb')]]);}let _0x597456=!![],_0x2cbcdb=0x1;_0x3e6087['$watch'](_0x21497d('0x1569'),function(_0x1d467f,_0x42020d){const _0x1270b4=_0x21497d;_0x597456?_0x22cfaa(function(){_0x597456=![];}):(!_0x42020d&&(_0x2cbcdb=_0x364be1['query'][_0x1270b4('0x23f5')]),_0x1d467f!==_0x42020d&&(_0x364be1[_0x1270b4('0x135a')]['page']=0x1),!_0x1d467f&&(_0x364be1[_0x1270b4('0x135a')]['page']=_0x2cbcdb),_0x364be1[_0x1270b4('0x138a')]());});function _0x4c0c11(_0x5fab3e){const _0x4cc23a=_0x21497d;_0x364be1[_0x4cc23a('0x338')]=_0x5fab3e[_0x4cc23a('0x338')],_0x364be1['queues']=_0x5fab3e?_0x283545()[_0x4cc23a('0x13cf')](_0x5fab3e[_0x4cc23a('0x25df')]?_0x5fab3e[_0x4cc23a('0x25df')]:[],'id'):{};if(_0x5fab3e['rows']){_0x364be1[_0x4cc23a('0x1dc2')]=[];for(let _0x2705a8=0x0;_0x2705a8<_0x5fab3e['rows'][_0x4cc23a('0x2566')];_0x2705a8++){_0x364be1[_0x4cc23a('0x1dc2')][_0x4cc23a('0x13e3')](_0x5fab3e['rows'][_0x2705a8]['id']);}}_0x13cf10();}function _0x8a390(){const _0x5b7733=_0x21497d;_0x364be1['query']['offset']=(_0x364be1[_0x5b7733('0x135a')][_0x5b7733('0x23f5')]-0x1)*_0x364be1[_0x5b7733('0x135a')][_0x5b7733('0x68e')],_0x183d1f['hasRole'](_0x5b7733('0xe23'))?_0x364be1[_0x5b7733('0x1808')]=_0x2c2bf8[_0x5b7733('0x23cf')]['get'](_0x364be1[_0x5b7733('0x135a')],_0x4c0c11)[_0x5b7733('0x1714')]:(_0x364be1['query']['id']=_0x364be1[_0x5b7733('0x63c')]['id'],_0x364be1[_0x5b7733('0x135a')][_0x5b7733('0xb13')]=_0x5b7733('0x1a3c'),_0x364be1[_0x5b7733('0x1808')]=_0x2c2bf8[_0x5b7733('0x63c')][_0x5b7733('0xa1')](_0x364be1[_0x5b7733('0x135a')],_0x4c0c11)[_0x5b7733('0x1714')]);}function _0x5811af(_0x4c6b08,_0x526cc9){const _0x585cc8=_0x21497d;_0x3b1423[_0x585cc8('0x2fa')]({'controller':'CreateOrEditSmsQueueDialogController','controllerAs':'vm','templateUrl':_0x48b58b,'parent':angular[_0x585cc8('0x16b1')](_0x48fb95[_0x585cc8('0x945')]),'targetEvent':_0x4c6b08,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x526cc9,'smsQueues':_0x283545()[_0x585cc8('0xc5')](_0x364be1['queues']),'license':null,'setting':null,'crudPermissions':_0x364be1[_0x585cc8('0xe28')]}});}function _0x6f41da(_0x43b134,_0x5a6af1){const _0x2fbcdb=_0x21497d;_0x3b1423[_0x2fbcdb('0x2fa')]({'controller':_0x2fbcdb('0x1b93'),'controllerAs':'vm','templateUrl':_0x4d5143,'parent':angular[_0x2fbcdb('0x16b1')](_0x48fb95[_0x2fbcdb('0x945')]),'targetEvent':_0x43b134,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5a6af1,'smsQueues':_0x364be1[_0x2fbcdb('0x283e')]?_0x364be1[_0x2fbcdb('0x283e')][_0x2fbcdb('0x25df')]:[],'realtime':![],'crudPermissions':_0x364be1[_0x2fbcdb('0xe28')]}});}function _0x16e8ec(_0x521e63){const _0x5f43f5=_0x21497d;return _0x2c2bf8[_0x5f43f5('0x23cf')]['update'](_0x521e63)[_0x5f43f5('0x1714')][_0x5f43f5('0x2788')](function(){const _0x1c413c=_0x5f43f5;_0x2cd4f0[_0x1c413c('0x173b')]({'title':_0x1c413c('0xc31'),'msg':_0x521e63[_0x1c413c('0x1a8d')]?_0x521e63[_0x1c413c('0x1a8d')]+_0x1c413c('0x6f8'):''});})['catch'](function(_0x3d623c){const _0x5b8444=_0x5f43f5;_0x2cd4f0['error']({'title':'Error\x20creating\x20queue!','msg':_0x3d623c[_0x5b8444('0x15e2')]});});}_0x3e6087[_0x21497d('0x651')](_0x21497d('0x26ac'),function(){const _0x2c1c96=_0x21497d;_0x3e9975[_0x2c1c96('0x277f')](_0x2c1c96('0x731')),_0x3e9975['removeAllListeners']('userSmsQueue:remove'),_0x3e9975['removeAllListeners']('userSmsQueue:save'),_0x3e9975[_0x2c1c96('0x277f')](_0x2c1c96('0x1cb6')),_0x3e9975[_0x2c1c96('0x277f')](_0x2c1c96('0x11e0')),_0x3e9975[_0x2c1c96('0x277f')](_0x2c1c96('0x454'));});}const _0x5c874c=_0x15deaf;function _0x15ebcf(){const _0x36b613=_0x34e79e;return{'status':{'registered':_0x36b613('0xc38'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x36b613('0x1ad6'),'reachable':_0x36b613('0xc38'),'unreachable':_0x36b613('0x1ad6'),'unknown':_0x36b613('0x22b7')},'state':{'unknown':_0x36b613('0x165d'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x36b613('0x1b19'),'busy':_0x36b613('0xf03'),'invalid':_0x36b613('0x165d'),'unavailable':_0x36b613('0x165d'),'ringing':_0x36b613('0x18d1'),'ringinuse':_0x36b613('0x18d1'),'onhold':_0x36b613('0x234e')},'channelStatus':{'ring':_0x36b613('0x18d1'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x36b613('0x393')},'channelStatusOut':{'ring':_0x36b613('0x2223'),'up':_0x36b613('0x699'),'hangup':_0x36b613('0x393')}};}const _0xc57b46=_0x15ebcf;_0x255b43[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0xd6f')];function _0x255b43(_0x1d2650,_0x5a576c,_0x2721cd){const _0x3ede34=_0x34e79e,_0x13082a=this;_0x2721cd['disconnect'](),_0x2721cd[_0x3ede34('0x26c')](),_0x13082a[_0x3ede34('0xcb3')]=0x0;switch(_0x5a576c[_0x3ede34('0x1c7f')][_0x3ede34('0x1a8d')]){case _0x3ede34('0x757'):_0x13082a['selectedTab']=0x0;break;case _0x3ede34('0x1dc9'):_0x13082a[_0x3ede34('0xcb3')]=0x1;break;default:_0x13082a[_0x3ede34('0xcb3')]=0x0,_0x5a576c['go'](_0x3ede34('0x757'));}_0x1d2650[_0x3ede34('0x1662')](_0x3ede34('0x362'),function(_0xff9883,_0x2ad984){const _0x3d34a0=_0x3ede34;if(_0xff9883!==_0x2ad984)switch(_0xff9883){case 0x0:_0x5a576c['go'](_0x3d34a0('0x757'));break;case 0x1:_0x5a576c['go']('app.sms.realtime.queues');break;default:_0x5a576c['go'](_0x3d34a0('0x757'));}});}const _0x4eb085=_0x255b43;_0x262942[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x262942(_0x46859d){const _0x114631=_0x34e79e;_0x46859d[_0x114631('0x249b')](_0x114631('0x29a'),{'url':_0x114631('0x2090'),'views':{'content@app':{'templateUrl':_0x184ae9,'controller':_0x114631('0x166b')}},'resolve':{'userProfile':['apiResolver',_0x114631('0x1b04'),function(_0x3b87d3,_0x3e5565){const _0x52060d=_0x114631;return _0x3e5565[_0x52060d('0x1516')](_0x52060d('0xe23'))?null:_0x3b87d3[_0x52060d('0x2322')](_0x52060d('0x231d'),{'fields':_0x52060d('0x3f0'),'id':_0x3e5565[_0x52060d('0x24cc')]()[_0x52060d('0x237f')]});}],'userProfileSection':[_0x114631('0x1318'),_0x114631('0x1b04'),function(_0x374f55,_0x5efa63){const _0x2008e3=_0x114631;return _0x5efa63['hasRole'](_0x2008e3('0xe23'))?null:_0x374f55[_0x2008e3('0x2322')](_0x2008e3('0x22ca'),{'fields':_0x2008e3('0xe2c'),'userProfileId':_0x5efa63['getCurrentUser']()[_0x2008e3('0x237f')],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x114631('0x249b')](_0x114631('0x757'),{'url':_0x114631('0xa9b'),'controller':'AgentsSmsRealtimeController\x20as\x20vm','templateUrl':_0x36947f,'resolve':{'pauses':[_0x114631('0x1318'),function(_0x381876){return _0x381876['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x114631('0x1318'),_0x114631('0x1b04'),function(_0x54b833,_0x523f1c){const _0x33048a=_0x114631;return _0x523f1c[_0x33048a('0x1516')](_0x33048a('0xe23'))?_0x54b833['resolve'](_0x33048a('0x144f'),{'fields':_0x33048a('0xed0'),'role':_0x33048a('0x188b'),'sort':_0x33048a('0x2831'),'nolimit':!![]}):_0x54b833[_0x33048a('0x2322')](_0x33048a('0x27c5'),{'id':_0x523f1c[_0x33048a('0x24cc')]()['userProfileId'],'section':_0x33048a('0x1f72'),'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':_0x33048a('0x2831'),'nolimit':!![]});}],'userProfile':[_0x114631('0x1318'),_0x114631('0x1b04'),function(_0x4d138e,_0x2cd1c2){const _0x53a648=_0x114631;return _0x2cd1c2[_0x53a648('0x1516')](_0x53a648('0xe23'))?null:_0x4d138e[_0x53a648('0x2322')](_0x53a648('0x231d'),{'fields':_0x53a648('0x3f0'),'id':_0x2cd1c2[_0x53a648('0x24cc')]()[_0x53a648('0x237f')]});}],'userProfileSection':[_0x114631('0x1318'),_0x114631('0x1b04'),function(_0x54323b,_0x1d62f6){const _0x50681b=_0x114631;return _0x1d62f6[_0x50681b('0x1516')](_0x50681b('0xe23'))?null:_0x54323b['resolve'](_0x50681b('0x22ca'),{'fields':_0x50681b('0xe2c'),'userProfileId':_0x1d62f6[_0x50681b('0x24cc')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x114631('0x1318'),function(_0x2dbda0){const _0x448bd7=_0x114631;return _0x2dbda0[_0x448bd7('0x2322')](_0x448bd7('0x21f7'));}]},'authenticate':!![],'permissionId':0x2c6})[_0x114631('0x249b')]('app.sms.realtime.queues',{'url':_0x114631('0x1c30'),'controller':_0x114631('0x20e7'),'templateUrl':_0x19adef,'resolve':{'queues':['apiResolver',_0x114631('0x1b04'),function(_0x2edf09,_0x364176){const _0x535f1a=_0x114631;return _0x364176[_0x535f1a('0x1516')](_0x535f1a('0xe23'))?_0x2edf09[_0x535f1a('0x2322')](_0x535f1a('0x755'),{'type':_0x535f1a('0x2e4'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2edf09[_0x535f1a('0x2322')]('userProfile@getResources',{'id':_0x364176[_0x535f1a('0x24cc')]()[_0x535f1a('0x237f')],'section':_0x535f1a('0x1a3c'),'channel':_0x535f1a('0x529'),'type':_0x535f1a('0x2e4'),'sort':_0x535f1a('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':[_0x114631('0x1318'),_0x114631('0x1b04'),function(_0x526af3,_0xc28c7c){const _0x3d0b05=_0x114631;return _0xc28c7c[_0x3d0b05('0x1516')](_0x3d0b05('0xe23'))?null:_0x526af3[_0x3d0b05('0x2322')]('userProfile@get',{'fields':_0x3d0b05('0x3f0'),'id':_0xc28c7c[_0x3d0b05('0x24cc')]()[_0x3d0b05('0x237f')]});}],'userProfileSection':[_0x114631('0x1318'),'Auth',function(_0x78277a,_0x41b916){const _0x1c15e9=_0x114631;return _0x41b916[_0x1c15e9('0x1516')](_0x1c15e9('0xe23'))?null:_0x78277a['resolve'](_0x1c15e9('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x41b916[_0x1c15e9('0x24cc')]()[_0x1c15e9('0x237f')],'sectionId':0x2bd});}],'rpcQueues':[_0x114631('0x1318'),function(_0x3422dc){const _0x52809c=_0x114631;return _0x3422dc['resolve'](_0x52809c('0x703'));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x29a'),[])['config'](_0x262942)[_0x34e79e('0xb44')]('AgentsSmsRealtimeController',_0x5a77ef)[_0x34e79e('0xb44')]('QueuesSmsRealtimeController',_0x5c874c)[_0x34e79e('0x227e')](_0x34e79e('0x1fc6'),_0xc57b46)['controller'](_0x34e79e('0x17c3'),_0x4eb085);const _0x4bb7d7=_0x18dd13['p']+_0x34e79e('0x62f'),_0x461dba=_0x18dd13['p']+_0x34e79e('0x2420'),_0x4fb5c9=_0x18dd13['p']+_0x34e79e('0x2121'),_0x3c3b9c=_0x18dd13['p']+_0x34e79e('0x81b');_0x1ae6e9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x5f4'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting','crudPermissions'];function _0x1ae6e9(_0x5dc348,_0x36c44c,_0xd5be0f,_0x433474,_0x2aca17,_0x43200d,_0x51aa83,_0x515c80,_0x25cc35,_0x2ff0f0,_0x2bd1b9,_0x4cd0a0,_0x471799,_0x4e6143){const _0x3755ec=_0x34e79e,_0x409857=this;_0x409857[_0x3755ec('0x9cb')]=_0x2bd1b9[_0x3755ec('0x24cc')](),_0x409857['errors']=[],_0x409857[_0x3755ec('0x1af0')]=_0x471799,_0x409857[_0x3755ec('0x130d')]=_0x4cd0a0,_0x409857[_0x3755ec('0xe28')]=_0x4e6143,_0x409857[_0x3755ec('0x1193')]={},_0x409857[_0x3755ec('0x18ad')]=_0x409857[_0x3755ec('0x1af0')]&&_0x409857[_0x3755ec('0x1af0')][_0x3755ec('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x409857[_0x3755ec('0x14e4')]=_0x3755ec('0x237b'),_0x409857[_0x3755ec('0x1cf0')]=angular[_0x3755ec('0x2669')](_0x25cc35),_0x409857[_0x3755ec('0x5f4')]=_0x515c80,_0x409857['newSmsAccount']=![];!_0x409857[_0x3755ec('0x1cf0')]&&(_0x409857[_0x3755ec('0x1cf0')]={'remote':_0xd5be0f[_0x3755ec('0x170c')]()+_0x3755ec('0x726')+_0xd5be0f[_0x3755ec('0x1c6a')]()+(_0xd5be0f['port']()?':'+_0xd5be0f[_0x3755ec('0x1fee')]():''),'type':'twilio','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x409857[_0x3755ec('0x14e4')]=_0x3755ec('0x753'),_0x409857[_0x3755ec('0x1f36')]=!![]);_0x36c44c[_0x3755ec('0x4b9')]['id']&&(_0x409857[_0x3755ec('0x1cf0')][_0x3755ec('0xcba')]=_0x36c44c[_0x3755ec('0x4b9')]['id']);_0x409857[_0x3755ec('0x1b5b')]=_0x3c4138,_0x409857['saveSmsAccount']=_0x28c542,_0x409857[_0x3755ec('0x2192')]=_0x507109,_0x409857['getDateFromString']=_0x26a041,_0x409857[_0x3755ec('0xca7')]=_0x246d7e,_0x2bd1b9[_0x3755ec('0x1516')](_0x3755ec('0xe23'))?_0x2ff0f0[_0x3755ec('0x1ba4')]['get']({'fields':_0x3755ec('0x1338'),'sort':_0x3755ec('0x1a8d')})['$promise']['then'](function(_0x31df8e){const _0x1df915=_0x3755ec;_0x409857[_0x1df915('0x2')]=_0x31df8e[_0x1df915('0x25df')]||[];})[_0x3755ec('0x1cb5')](function(_0x7e1ba7){const _0x7ef5c4=_0x3755ec;_0x51aa83[_0x7ef5c4('0x5e8')]({'title':_0x7e1ba7['status']?_0x7ef5c4('0x15d1')+_0x7e1ba7['status']+'\x20-\x20'+_0x7e1ba7[_0x7ef5c4('0x22ce')]:_0x7ef5c4('0x11da'),'msg':_0x7e1ba7['data']?JSON['stringify'](_0x7e1ba7[_0x7ef5c4('0x11fc')]):_0x7e1ba7['toString']()});}):_0x2ff0f0[_0x3755ec('0x1ba4')]['get']({'fields':_0x3755ec('0x1338'),'sort':'name'})[_0x3755ec('0x1714')]['then'](function(_0x288c7c){const _0x2b1edf=_0x3755ec;_0x409857[_0x2b1edf('0x2')]=_0x288c7c['rows']||[];})[_0x3755ec('0x2788')](function(){const _0x42b8ad=_0x3755ec;return _0x2ff0f0['userProfileSection'][_0x42b8ad('0x1335')]({'userProfileId':_0x409857[_0x42b8ad('0x9cb')][_0x42b8ad('0x237f')],'sectionId':0x12d})[_0x42b8ad('0x1714')];})['then'](function(_0x58b0c9){const _0x462378=_0x3755ec,_0x43eac9=_0x58b0c9&&_0x58b0c9[_0x462378('0x25df')]?_0x58b0c9[_0x462378('0x25df')][0x0]:null;if(!_0x43eac9){const _0x4a0552=[];let _0x10091b=null;_0x409857['smsAccount']&&(_0x10091b=_0x283545()['find'](_0x409857['lists'],{'id':Number(_0x409857[_0x462378('0x1cf0')][_0x462378('0x354')])}));for(let _0x5b4ab4=0x0;_0x5b4ab4<_0x409857[_0x462378('0x2')][_0x462378('0x2566')];_0x5b4ab4++){_0x10091b&&_0x409857[_0x462378('0x2')][_0x5b4ab4]['id']===_0x10091b['id']&&(_0x409857[_0x462378('0x2')][_0x5b4ab4][_0x462378('0x3bf')]=![],_0x4a0552[_0x462378('0x13e3')](_0x409857[_0x462378('0x2')][_0x5b4ab4]));}_0x409857[_0x462378('0x2')]=_0x4a0552;}else{if(!_0x43eac9[_0x462378('0x1c0a')])return _0x2ff0f0[_0x462378('0x1050')][_0x462378('0x1335')]({'sectionId':_0x43eac9['id']})[_0x462378('0x1714')][_0x462378('0x2788')](function(_0x386ea4){const _0x4a1c6c=_0x462378,_0x5f4708=_0x283545()[_0x4a1c6c('0x155d')](_0x386ea4['rows'],function(_0x5acefa){const _0x394530=_0x4a1c6c;return _0x283545()[_0x394530('0x20e8')](_0x409857[_0x394530('0x2')],{'id':_0x5acefa['resourceId']});});let _0x45a448=null;_0x409857[_0x4a1c6c('0x1cf0')]&&(_0x45a448=_0x283545()[_0x4a1c6c('0x20e8')](_0x409857[_0x4a1c6c('0x2')],{'id':Number(_0x409857['smsAccount'][_0x4a1c6c('0x354')])}));if(_0x45a448&&!_0x283545()[_0x4a1c6c('0xc5d')](_0x5f4708,['id',_0x45a448['id']])){const _0x255583=_0x283545()[_0x4a1c6c('0x20e8')](_0x409857[_0x4a1c6c('0x2')],{'id':_0x45a448['id']});_0x255583['canSelect']=![],_0x5f4708[_0x4a1c6c('0x13e3')](_0x255583);}_0x409857['lists']=_0x5f4708;});}})['catch'](function(_0x835c83){const _0x1ae8d0=_0x3755ec;_0x51aa83[_0x1ae8d0('0x5e8')]({'title':_0x835c83[_0x1ae8d0('0x1b51')]?_0x1ae8d0('0x15d1')+_0x835c83[_0x1ae8d0('0x1b51')]+'\x20-\x20'+_0x835c83[_0x1ae8d0('0x22ce')]:'SYSTEM:GETlists','msg':_0x835c83['data']?JSON['stringify'](_0x835c83['data']):_0x835c83[_0x1ae8d0('0x17df')]()});});function _0x3c4138(){const _0x417102=_0x3755ec;_0x409857[_0x417102('0x25be')]=[],_0x2ff0f0['smsAccount'][_0x417102('0xbd0')](_0x409857[_0x417102('0x1cf0')])[_0x417102('0x1714')][_0x417102('0x2788')](function(_0x310c06){const _0x2c6a17=_0x417102;_0x409857['smsAccounts'][_0x2c6a17('0xc51')](_0x310c06[_0x2c6a17('0x1cbf')]()),_0x51aa83[_0x2c6a17('0x173b')]({'title':_0x2c6a17('0xbc5'),'msg':_0x409857[_0x2c6a17('0x1cf0')][_0x2c6a17('0x1a8d')]?_0x409857['smsAccount'][_0x2c6a17('0x1a8d')]+_0x2c6a17('0x1e4a'):''}),_0x246d7e(_0x310c06);})['catch'](function(_0x9ae61e){const _0x5752ed=_0x417102;if(_0x9ae61e[_0x5752ed('0x11fc')]&&_0x9ae61e[_0x5752ed('0x11fc')][_0x5752ed('0x25be')]&&_0x9ae61e[_0x5752ed('0x11fc')]['errors'][_0x5752ed('0x2566')]){_0x409857[_0x5752ed('0x25be')]=_0x9ae61e[_0x5752ed('0x11fc')][_0x5752ed('0x25be')]||[{'message':_0x9ae61e[_0x5752ed('0x17df')](),'type':_0x5752ed('0x238f')}];for(let _0x52736e=0x0;_0x52736e<_0x9ae61e[_0x5752ed('0x11fc')][_0x5752ed('0x25be')]['length'];_0x52736e+=0x1){_0x51aa83[_0x5752ed('0x5e8')]({'title':_0x9ae61e[_0x5752ed('0x11fc')][_0x5752ed('0x25be')][_0x52736e][_0x5752ed('0x1d7')],'msg':_0x9ae61e[_0x5752ed('0x11fc')][_0x5752ed('0x25be')][_0x52736e][_0x5752ed('0x15e2')]});}}else _0x51aa83['error']({'title':_0x9ae61e[_0x5752ed('0x1b51')]?_0x5752ed('0x15d1')+_0x9ae61e[_0x5752ed('0x1b51')]+'\x20-\x20'+_0x9ae61e['statusText']:_0x5752ed('0x238f'),'msg':_0x9ae61e[_0x5752ed('0x11fc')]?JSON[_0x5752ed('0x1be0')](_0x9ae61e[_0x5752ed('0x11fc')]['message']):_0x9ae61e[_0x5752ed('0x17df')]()});});}function _0x28c542(){const _0x2c1476=_0x3755ec;_0x409857[_0x2c1476('0x25be')]=[],_0x2ff0f0[_0x2c1476('0x1cf0')][_0x2c1476('0x2740')]({'id':_0x409857[_0x2c1476('0x1cf0')]['id']},_0x409857[_0x2c1476('0x1cf0')])[_0x2c1476('0x1714')][_0x2c1476('0x2788')](function(_0x3403d7){const _0x4af422=_0x2c1476,_0x32a4d1=_0x283545()['find'](_0x409857[_0x4af422('0x5f4')],{'id':_0x3403d7['id']});_0x32a4d1&&_0x283545()[_0x4af422('0x2503')](_0x32a4d1,_0x283545()[_0x4af422('0x41b')](_0x3403d7[_0x4af422('0x1cbf')](),_0x283545()[_0x4af422('0x2163')](_0x32a4d1))),_0x51aa83[_0x4af422('0x173b')]({'title':_0x4af422('0x9f2'),'msg':_0x409857[_0x4af422('0x1cf0')][_0x4af422('0x1a8d')]?_0x409857[_0x4af422('0x1cf0')][_0x4af422('0x1a8d')]+_0x4af422('0x24cf'):''}),_0x246d7e(_0x3403d7);})[_0x2c1476('0x1cb5')](function(_0x43da92){const _0x5e3d8b=_0x2c1476;if(_0x43da92[_0x5e3d8b('0x11fc')]&&_0x43da92[_0x5e3d8b('0x11fc')][_0x5e3d8b('0x25be')]&&_0x43da92['data'][_0x5e3d8b('0x25be')][_0x5e3d8b('0x2566')]){_0x409857[_0x5e3d8b('0x25be')]=_0x43da92[_0x5e3d8b('0x11fc')][_0x5e3d8b('0x25be')]||[{'message':_0x43da92[_0x5e3d8b('0x17df')](),'type':_0x5e3d8b('0x1386')}];for(let _0x1ed172=0x0;_0x1ed172<_0x43da92['data']['errors'][_0x5e3d8b('0x2566')];_0x1ed172++){_0x51aa83[_0x5e3d8b('0x5e8')]({'title':_0x43da92['data'][_0x5e3d8b('0x25be')][_0x1ed172][_0x5e3d8b('0x1d7')],'msg':_0x43da92[_0x5e3d8b('0x11fc')]['errors'][_0x1ed172][_0x5e3d8b('0x15e2')]});}}else _0x51aa83[_0x5e3d8b('0x5e8')]({'title':_0x43da92[_0x5e3d8b('0x1b51')]?_0x5e3d8b('0x15d1')+_0x43da92[_0x5e3d8b('0x1b51')]+_0x5e3d8b('0x1b0b')+_0x43da92[_0x5e3d8b('0x22ce')]:_0x5e3d8b('0x1386'),'msg':_0x43da92[_0x5e3d8b('0x11fc')]?JSON[_0x5e3d8b('0x1be0')](_0x43da92['data'][_0x5e3d8b('0x15e2')]):_0x43da92[_0x5e3d8b('0x17df')]()});});}function _0x507109(_0x5df5bb){const _0x573d7e=_0x3755ec;_0x409857['errors']=[];const _0xbdf809=_0x433474[_0x573d7e('0x112e')]()[_0x573d7e('0x14e4')](_0x573d7e('0x458'))[_0x573d7e('0x1c98')]('The\x20smsAccount\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20SmsAccount')['ok'](_0x573d7e('0x2786'))[_0x573d7e('0x1801')](_0x573d7e('0x1481'))['targetEvent'](_0x5df5bb);_0x433474[_0x573d7e('0x2fa')](_0xbdf809)[_0x573d7e('0x2788')](function(){const _0x2a71a8=_0x573d7e;_0x2ff0f0['smsAccount']['delete']({'id':_0x409857[_0x2a71a8('0x1cf0')]['id']})[_0x2a71a8('0x1714')][_0x2a71a8('0x2788')](function(){const _0x2104c8=_0x2a71a8;_0x283545()[_0x2104c8('0x1a90')](_0x409857[_0x2104c8('0x5f4')],{'id':_0x409857[_0x2104c8('0x1cf0')]['id']}),_0x51aa83[_0x2104c8('0x173b')]({'title':_0x2104c8('0x405'),'msg':(_0x409857[_0x2104c8('0x1cf0')]['name']||'smsAccount')+_0x2104c8('0x14d4')}),_0x246d7e(_0x409857[_0x2104c8('0x1cf0')]);})[_0x2a71a8('0x1cb5')](function(_0xd01dd6){const _0x382186=_0x2a71a8;if(_0xd01dd6['data']&&_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x25be')]&&_0xd01dd6[_0x382186('0x11fc')]['errors'][_0x382186('0x2566')]){_0x409857[_0x382186('0x25be')]=_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x25be')]||[{'message':_0xd01dd6['toString'](),'type':'api.smsAccount.delete'}];for(let _0x1dea3b=0x0;_0x1dea3b<_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x25be')][_0x382186('0x2566')];_0x1dea3b++){_0x51aa83[_0x382186('0x5e8')]({'title':_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x25be')][_0x1dea3b][_0x382186('0x1d7')],'msg':_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x25be')][_0x1dea3b][_0x382186('0x15e2')]});}}else _0x51aa83['error']({'title':_0xd01dd6[_0x382186('0x1b51')]?_0x382186('0x15d1')+_0xd01dd6[_0x382186('0x1b51')]+_0x382186('0x1b0b')+_0xd01dd6['statusText']:_0x382186('0x1046'),'msg':_0xd01dd6[_0x382186('0x11fc')]?JSON[_0x382186('0x1be0')](_0xd01dd6[_0x382186('0x11fc')][_0x382186('0x15e2')]):_0xd01dd6[_0x382186('0x15e2')]||_0xd01dd6[_0x382186('0x17df')]()});});},function(){});}function _0x26a041(_0x277ada){return _0x277ada===null?undefined:new Date(_0x277ada);}function _0x246d7e(_0x1d4c13){const _0x2ba2be=_0x3755ec;_0x433474[_0x2ba2be('0x19d')](_0x1d4c13);}}const _0x17effb=_0x1ae6e9,_0x2f090f=_0x18dd13['p']+_0x34e79e('0x3f6'),_0x30cee0=_0x18dd13['p']+_0x34e79e('0x1c71'),_0x11406a=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html',_0x4cd043=_0x18dd13['p']+_0x34e79e('0x2789'),_0x2cb774=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html',_0x65cb08=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog.html',_0x4ddce9=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog.html',_0x2e9c69=_0x18dd13['p']+_0x34e79e('0xeb4'),_0x2426bd=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html',_0x2e462d=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html',_0x2286f8=_0x18dd13['p']+_0x34e79e('0x5ba'),_0x4de596=_0x18dd13['p']+_0x34e79e('0x1118');_0x5da76f[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'Auth'];const _0x3effdc={'agent':_0x2f090f,'amazonlex':_0x30cee0,'autoreply':_0x11406a,'close':_0x4cd043,'dialogflow':_0x2cb774,'gotoif':_0x65cb08,'gotop':_0x4ddce9,'interval':_0x2e9c69,'noop':_0x2426bd,'queue':_0x2e462d,'system':_0x2286f8,'tag':_0x4de596};function _0x5da76f(_0x5aff78,_0x33203d,_0x5a0252,_0x322196,_0x3f2ed6){const _0x46a2a1=_0x34e79e,_0x138e8a=this;_0x138e8a[_0x46a2a1('0x9cb')]=_0x3f2ed6[_0x46a2a1('0x24cc')](),_0x138e8a[_0x46a2a1('0x1cf0')]={},_0x138e8a['smsAccountApps']={'count':0x0,'rows':[]},_0x138e8a[_0x46a2a1('0x2616')]=[],_0x138e8a['crudPermissions'],_0x138e8a[_0x46a2a1('0x135a')]={'sort':'priority'},_0x138e8a[_0x46a2a1('0x105')]=_0x283545()['reject'](_0x283545()[_0x46a2a1('0x8ce')]([{'app':_0x46a2a1('0x27dd'),'appType':_0x46a2a1('0x2630'),'types':[_0x46a2a1('0xc8f'),_0x46a2a1('0x1d56'),_0x46a2a1('0x4b2')],'fields':[],'isApp':![]},{'app':_0x46a2a1('0x18dd'),'appType':_0x46a2a1('0x18dd'),'type':_0x46a2a1('0x18dd'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'required':!![],'isApp':!![],'fields':[{'title':_0x46a2a1('0x165a'),'name':'value','type':_0x46a2a1('0x16db'),'param':0x0}]},{'app':_0x46a2a1('0xe81'),'appType':_0x46a2a1('0xe81'),'type':_0x46a2a1('0xe81'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x46a2a1('0xf76'),'field':{'name':_0x46a2a1('0xa72'),'key':_0x46a2a1('0x1a8d')},'route':_0x46a2a1('0xa72'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x46a2a1('0x1677'),'name':'command','type':'text','required':!![],'param':0x0},{'title':_0x46a2a1('0x158c'),'name':_0x46a2a1('0xa72'),'type':_0x46a2a1('0x2519'),'values':_0x46a2a1('0xf76'),'value':_0x46a2a1('0x59b'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x46a2a1('0x1d8f')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x46a2a1('0x1598'),'appType':_0x46a2a1('0x1598'),'type':_0x46a2a1('0x1500'),'icon':_0x46a2a1('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Priority','name':_0x46a2a1('0x155b'),'type':_0x46a2a1('0x272c'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':'gotoif','type':_0x46a2a1('0x1e01'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'isApp':!![],'fields':[{'title':_0x46a2a1('0x1388'),'name':_0x46a2a1('0xf2b'),'type':_0x46a2a1('0x16db'),'required':!![],'param':0x0},{'title':_0x46a2a1('0x86a'),'name':'truepriority','type':_0x46a2a1('0x272c'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x46a2a1('0x1474'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x46a2a1('0x1ab4'),'foreignKey':_0x46a2a1('0x27e3'),'type':_0x46a2a1('0x1ab4'),'icon':'icon-apps','interval':_0x46a2a1('0x2191'),'isApp':!![],'extraApi':[{'name':_0x46a2a1('0x283e'),'field':{'name':_0x46a2a1('0x1ab4'),'key':'name'},'route':_0x46a2a1('0x23cf'),'filters':{'fields':_0x46a2a1('0xafa'),'sort':'name','nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':'Queue','name':'queue','type':_0x46a2a1('0x2519'),'values':_0x46a2a1('0x283e'),'value':_0x46a2a1('0x158'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x46a2a1('0xa7e'),'name':_0x46a2a1('0x24e4'),'type':_0x46a2a1('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':'agent','type':_0x46a2a1('0x188b'),'foreignKey':_0x46a2a1('0x3bb'),'icon':'icon-apps','interval':_0x46a2a1('0x2191'),'isApp':!![],'extraApi':[{'name':_0x46a2a1('0x1713'),'field':{'name':_0x46a2a1('0x188b'),'key':_0x46a2a1('0x1a8d')},'route':_0x46a2a1('0x1e6a'),'filters':{'fields':_0x46a2a1('0x1338'),'sort':_0x46a2a1('0x1a8d'),'nolimit':!![],'role':_0x46a2a1('0x188b')},'permissions':{'section':0xca}}],'fields':[{'title':_0x46a2a1('0x262d'),'name':_0x46a2a1('0x188b'),'type':_0x46a2a1('0x2519'),'values':'agents','value':'agent.name','option':'agent.name','required':!![],'param':0x0},{'title':_0x46a2a1('0xa7e'),'name':_0x46a2a1('0x24e4'),'type':_0x46a2a1('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x46a2a1('0x808'),'appType':_0x46a2a1('0x808'),'type':_0x46a2a1('0x808'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'isApp':!![],'fields':[{'title':_0x46a2a1('0x5fd'),'name':_0x46a2a1('0x5fd'),'type':_0x46a2a1('0x983'),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':'text','type':'textarea','required':!![],'param':0x1}]},{'app':'close','appType':_0x46a2a1('0x69f'),'type':_0x46a2a1('0x69f'),'icon':'icon-apps','interval':_0x46a2a1('0x2191'),'isApp':!![],'fields':[{'title':_0x46a2a1('0x1e89'),'name':'disposition','type':_0x46a2a1('0x16db'),'required':!![],'param':0x0}]},{'app':_0x46a2a1('0x1764'),'appType':'tag','type':_0x46a2a1('0x1764'),'foreignKey':_0x46a2a1('0x90a'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'isApp':!![],'extraApi':[{'name':_0x46a2a1('0xe45'),'field':{'name':_0x46a2a1('0x1764'),'key':_0x46a2a1('0x1a8d')},'route':_0x46a2a1('0x1764'),'filters':{'fields':_0x46a2a1('0x1338'),'sort':_0x46a2a1('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x46a2a1('0x251d'),'name':_0x46a2a1('0x1764'),'type':_0x46a2a1('0x2519'),'values':'tags','value':'tag.name','option':_0x46a2a1('0x282c'),'required':!![],'param':0x0}]},{'app':_0x46a2a1('0x5e1'),'appType':_0x46a2a1('0x5e1'),'type':'dialogflow','icon':_0x46a2a1('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x46a2a1('0x127f'),'name':_0x46a2a1('0x234b'),'type':_0x46a2a1('0x16db'),'required':!![],'param':0x0},{'title':'language','name':_0x46a2a1('0x175b'),'type':_0x46a2a1('0x983'),'defaultValue':_0x46a2a1('0xeca'),'values':[{'option':_0x46a2a1('0x42b'),'value':_0x46a2a1('0x1570')},{'option':_0x46a2a1('0x866'),'value':_0x46a2a1('0xeca')},{'option':_0x46a2a1('0x1072'),'value':'\x27de\x27'},{'option':_0x46a2a1('0xf33'),'value':'\x27it\x27'},{'option':_0x46a2a1('0x2488'),'value':_0x46a2a1('0x1893')},{'option':'French','value':_0x46a2a1('0x33b')},{'option':_0x46a2a1('0x131e'),'value':_0x46a2a1('0x1b15')},{'option':_0x46a2a1('0x270a'),'value':_0x46a2a1('0x29')},{'option':_0x46a2a1('0x166c'),'value':'\x27ko\x27'},{'option':_0x46a2a1('0x805'),'value':_0x46a2a1('0x17a8')},{'option':_0x46a2a1('0xa7a'),'value':_0x46a2a1('0x2363')},{'option':'Portuguese\x20(European)','value':_0x46a2a1('0x1cb0')},{'option':_0x46a2a1('0x27ae'),'value':_0x46a2a1('0x7a3')},{'option':_0x46a2a1('0x1319'),'value':_0x46a2a1('0x6cb')},{'option':_0x46a2a1('0xbaf'),'value':_0x46a2a1('0x1561')},{'option':_0x46a2a1('0x97b'),'value':_0x46a2a1('0x10d9')},{'option':'Ukrainian','value':_0x46a2a1('0x1961')},{'option':_0x46a2a1('0x1a89'),'value':_0x46a2a1('0xd54')},{'option':_0x46a2a1('0x13e6'),'value':_0x46a2a1('0x553')},{'option':_0x46a2a1('0x1b70'),'value':_0x46a2a1('0x464')}],'required':!![],'param':0x1},{'title':_0x46a2a1('0xf50'),'name':_0x46a2a1('0xf50'),'type':_0x46a2a1('0x1215'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x46a2a1('0x137a'),'appType':_0x46a2a1('0x137a'),'type':_0x46a2a1('0x137a'),'icon':_0x46a2a1('0x21ff'),'interval':_0x46a2a1('0x2191'),'isApp':!![],'fields':[{'title':_0x46a2a1('0x27f2'),'name':_0x46a2a1('0x27f2'),'type':'text','required':!![],'param':0x0},{'title':'secretaccesskey','name':'secretaccesskey','type':_0x46a2a1('0x16db'),'required':!![],'param':0x1},{'title':_0x46a2a1('0xb70'),'name':_0x46a2a1('0xb70'),'type':'select','defaultValue':_0x46a2a1('0x826'),'values':[{'option':_0x46a2a1('0x98c'),'value':'\x27us-east-1\x27'},{'option':_0x46a2a1('0x7cf'),'value':_0x46a2a1('0x2221')},{'option':_0x46a2a1('0x282b'),'value':_0x46a2a1('0x150a')},{'option':_0x46a2a1('0x1172'),'value':_0x46a2a1('0xbb6')}],'required':!![],'param':0x2},{'title':_0x46a2a1('0x4eb'),'name':_0x46a2a1('0x4eb'),'type':_0x46a2a1('0x16db'),'required':!![],'param':0x3},{'title':_0x46a2a1('0xf50'),'name':_0x46a2a1('0xf50'),'type':_0x46a2a1('0x1215'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x46a2a1('0x8a5')]),{'isApp':![]}),_0x138e8a[_0x46a2a1('0x4b2')]={'group':{'name':_0x46a2a1('0x134b'),'pull':_0x46a2a1('0x1b8')},'animation':0x64,'sort':![]},_0x138e8a['applications']={'group':{'name':_0x46a2a1('0x2268'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x557c0a){const _0x462d7e=_0x46a2a1;_0xe4d4a5(_0x557c0a,_0x557c0a[_0x462d7e('0x7da')]);},'onSort':function(){_0x1ad6b3();}},_0x138e8a[_0x46a2a1('0x24eb')]=_0x21aac1,_0x138e8a['deleteConfirm']=_0x3ec7d8,_0x138e8a[_0x46a2a1('0x1851')]=_0x47775e,_0x138e8a['editSmsAccountApp']=_0xe4d4a5,_0x138e8a[_0x46a2a1('0x10ce')]=_0xad43ad,_0x138e8a['deleteSmsAccountApp']=_0x3d9922,_0x138e8a[_0x46a2a1('0x24c2')]=_0x533c5b,_0x138e8a[_0x46a2a1('0xa9c')]=_0x1ad6b3,_0x138e8a[_0x46a2a1('0x1963')]=_0x47e85b;function _0x21aac1(_0x479671,_0x20f6cc){const _0x4142f6=_0x46a2a1;_0x138e8a['smsAccount']=_0x479671,_0x138e8a[_0x4142f6('0xe28')]=typeof _0x20f6cc!==_0x4142f6('0xedb')?_0x20f6cc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x138e8a['applications'][_0x4142f6('0x1112')]=!_0x138e8a[_0x4142f6('0xe28')][_0x4142f6('0x21b7')]?!![]:![],_0x138e8a['query']['id']=_0x479671['id'],_0x138e8a[_0x4142f6('0x135a')]['isApp']=!![],_0x138e8a[_0x4142f6('0x135a')][_0x4142f6('0xd18')]=!![],_0x138e8a[_0x4142f6('0x1851')](),_0x138e8a[_0x4142f6('0x1963')]();}function _0x3ec7d8(_0x582310,_0x225f93,_0x442199){const _0xf9faf8=_0x46a2a1,_0x2f1436=_0x33203d['confirm']()[_0xf9faf8('0x14e4')](_0xf9faf8('0xbe7'))[_0xf9faf8('0x93e')](_0xf9faf8('0x1670')+_0x582310[_0xf9faf8('0x8a5')]+''+_0xf9faf8('0x27c7'))[_0xf9faf8('0x10bc')](_0xf9faf8('0xdd6'))['targetEvent'](_0x442199)['ok']('OK')[_0xf9faf8('0x1801')](_0xf9faf8('0x1d8d'));_0x33203d[_0xf9faf8('0x2fa')](_0x2f1436)[_0xf9faf8('0x2788')](function(){const _0x585315=_0xf9faf8;_0x138e8a[_0x585315('0x141d')][_0x585315('0x25df')][_0x585315('0x722')](_0x225f93,0x1),_0x1ad6b3();},function(){const _0x11d884=_0xf9faf8;console[_0x11d884('0x10df')](_0x11d884('0x1d8d'));});}function _0xe4d4a5(_0x317d5b,_0x715789){const _0x378499=_0x46a2a1;if(_0x138e8a[_0x378499('0x141d')]['rows'][_0x378499('0x2566')]){const _0x56b974=_0x138e8a[_0x378499('0x141d')]['rows'][_0x715789]?_0x138e8a[_0x378499('0x141d')][_0x378499('0x25df')][_0x715789]:_0x138e8a[_0x378499('0x141d')][_0x378499('0x25df')][0x0],_0x2cf11b=(_0x56b974[_0x378499('0x167b')]||_0x56b974['app'])['toLowerCase']();_0x33203d[_0x378499('0x2fa')]({'controller':_0x378499('0x269c')+_0x2cf11b+'DialogController','controllerAs':'vm','templateUrl':_0x3effdc[_0x2cf11b],'parent':angular['element'](_0x5a0252[_0x378499('0x945')]),'targetEvent':_0x317d5b,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x56b974,'smsAccount':_0x138e8a[_0x378499('0x1cf0')],'crudPermissions':_0x138e8a[_0x378499('0xe28')]}})[_0x378499('0x2788')](function(_0x448a31){const _0x557cd2=_0x378499;_0x448a31&&(_0x448a31['id']?_0x138e8a[_0x557cd2('0x141d')]['rows'][_0x715789]=_0x448a31:_0x138e8a[_0x557cd2('0x141d')][_0x557cd2('0x25df')]['splice'](_0x715789,0x0,_0x448a31),_0x1ad6b3());})[_0x378499('0x1cb5')](function(_0x3e4189){const _0x129999=_0x378499;_0x3e4189&&_0x322196[_0x129999('0x5e8')]({'title':_0x3e4189[_0x129999('0x1b51')]?'API:'+_0x3e4189[_0x129999('0x1b51')]+_0x129999('0x1b0b')+_0x3e4189[_0x129999('0x22ce')]:_0x129999('0x239b'),'msg':_0x3e4189['data']?JSON['stringify'](_0x3e4189[_0x129999('0x11fc')]):_0x3e4189[_0x129999('0x17df')]()});});}}function _0xad43ad(_0x262f72,_0x55955c){const _0x4b8a69=_0x46a2a1;if(_0x138e8a[_0x4b8a69('0x141d')][_0x4b8a69('0x25df')][_0x4b8a69('0x2566')]){const _0x1371bb=_0x138e8a['smsAccountApps'][_0x4b8a69('0x25df')][_0x55955c]?_0x138e8a['smsAccountApps'][_0x4b8a69('0x25df')][_0x55955c]:_0x138e8a[_0x4b8a69('0x141d')][_0x4b8a69('0x25df')][0x0];_0x33203d['show']({'controller':'EditSmsAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x2e9c69,'parent':angular['element'](_0x5a0252[_0x4b8a69('0x945')]),'targetEvent':_0x262f72,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1371bb['interval'],'IntervalId':_0x1371bb['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x138e8a[_0x4b8a69('0xe28')]}})[_0x4b8a69('0x2788')](function(_0x402099){const _0x54b200=_0x4b8a69;_0x402099&&(_0x1371bb[_0x54b200('0x2630')]=_0x402099[_0x54b200('0x2630')]||'*,*,*,*',_0x1371bb[_0x54b200('0x20d0')]=_0x402099['IntervalId']||null,_0x1ad6b3());});}}function _0x1ad6b3(){const _0x19a06a=_0x46a2a1;let _0x325c2a=0x1,_0x12cff3=[];for(let _0x387a6b=0x0;_0x387a6b<_0x138e8a[_0x19a06a('0x141d')]['rows'][_0x19a06a('0x2566')];_0x387a6b++){const _0x2b343c=_0x138e8a[_0x19a06a('0x141d')][_0x19a06a('0x25df')][_0x387a6b],_0x52b655=[],_0x174c4d=[];_0x2b343c[_0x19a06a('0xec5')]=_0x2b343c[_0x19a06a('0x2630')]!==_0x19a06a('0x2191')?[_0x2b343c['interval']]:_0x2b343c[_0x19a06a('0x20d0')]?_0x283545()['map'](_0x283545()[_0x19a06a('0x916')](_0x138e8a[_0x19a06a('0xec5')][_0x19a06a('0x25df')],{'IntervalId':_0x2b343c[_0x19a06a('0x20d0')]}),_0x19a06a('0x2630')):[],_0x2b343c[_0x19a06a('0x1f3b')]=_0x138e8a['smsAccount'][_0x19a06a('0x1f3b')],_0x2b343c[_0x19a06a('0x1d6f')]=_0x138e8a['smsAccount'][_0x19a06a('0x1d6f')],_0x2b343c[_0x19a06a('0x1d7')]&&(_0x2b343c[_0x19a06a('0x1d7')]=_0x2b343c[_0x19a06a('0x1d7')][_0x19a06a('0xc2e')]()),_0x2b343c[_0x19a06a('0x155b')]=_0x52b655[_0x19a06a('0x2566')]?_0x283545()['last'](_0x52b655)[_0x19a06a('0x155b')]+0x1:_0x325c2a,_0x325c2a=(_0x174c4d['length']?_0x283545()[_0x19a06a('0x1d39')](_0x174c4d)[_0x19a06a('0x155b')]:_0x2b343c[_0x19a06a('0x155b')])+0x1,_0x12cff3=_0x283545()[_0x19a06a('0x1282')](_0x12cff3,_0x52b655,[_0x2b343c],_0x174c4d);}_0x5aff78[_0x19a06a('0x1cf0')][_0x19a06a('0x109')]({'id':_0x138e8a[_0x19a06a('0x1cf0')]['id']},_0x283545()['sortBy'](_0x12cff3,_0x19a06a('0x155b')))[_0x19a06a('0x1714')][_0x19a06a('0x2788')](function(_0x3cbfa7){const _0x2de9ee=_0x19a06a;_0x138e8a[_0x2de9ee('0x141d')][_0x2de9ee('0x25df')]=_0x3cbfa7[_0x2de9ee('0x25df')];})['catch'](function(_0xee47bc){const _0x335a19=_0x19a06a;console[_0x335a19('0x5e8')](_0xee47bc);});}function _0x3b93cd(_0x217373){const _0x486762=_0x46a2a1;_0x138e8a[_0x486762('0x141d')]=_0x217373||{'count':0x0,'rows':[]};}function _0x47e85b(){const _0x5206b7=_0x46a2a1;return _0x5aff78[_0x5206b7('0x2630')][_0x5206b7('0x1335')]({'fields':_0x5206b7('0x12c6')})[_0x5206b7('0x1714')]['then'](function(_0x4ffee5){const _0x59a59f=_0x5206b7;_0x138e8a[_0x59a59f('0xec5')]=_0x4ffee5;})[_0x5206b7('0x1cb5')](function(_0x518ef3){const _0x4bc43d=_0x5206b7;console[_0x4bc43d('0x5e8')](_0x518ef3);});}function _0x47775e(){const _0x450da9=_0x46a2a1;_0x138e8a[_0x450da9('0x1808')]=_0x5aff78[_0x450da9('0x1cf0')]['getApplications'](_0x138e8a[_0x450da9('0x135a')],_0x3b93cd)[_0x450da9('0x1714')];}function _0x3d9922(_0xd6225e){const _0x5118e0=_0x46a2a1;_0x283545()[_0x5118e0('0x1a90')](_0x138e8a[_0x5118e0('0x141d')][_0x5118e0('0x25df')],{'id':_0xd6225e['id']}),_0x1ad6b3(),_0x322196[_0x5118e0('0x173b')]({'title':_0x5118e0('0x170b'),'msg':_0xd6225e[_0x5118e0('0x8a5')]?_0xd6225e[_0x5118e0('0x8a5')]+'\x20has\x20been\x20deleted!':''});}function _0x533c5b(_0xaf68){const _0x233c85=_0x46a2a1,_0x53c6e7=_0x33203d['confirm']()[_0x233c85('0x14e4')](_0x233c85('0x191c'))[_0x233c85('0x93e')](''+_0x138e8a[_0x233c85('0x2616')][_0x233c85('0x2566')]+_0x233c85('0xbd')+_0x233c85('0x27c7'))['ariaLabel'](_0x233c85('0x1db'))[_0x233c85('0x24d0')](_0xaf68)['ok']('OK')[_0x233c85('0x1801')](_0x233c85('0x1d8d'));_0x33203d[_0x233c85('0x2fa')](_0x53c6e7)[_0x233c85('0x2788')](function(){const _0x3c4e02=_0x233c85;_0x138e8a[_0x3c4e02('0x2616')]['forEach'](function(_0x564f0a){const _0x599383=_0x3c4e02;_0x283545()[_0x599383('0x1a90')](_0x138e8a[_0x599383('0x141d')][_0x599383('0x25df')],{'id':_0x564f0a['id']});}),_0x138e8a[_0x3c4e02('0x2616')]=[],_0x1ad6b3();});}}const _0x185db3=_0x5da76f;_0x2fa671[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1cf0'),_0x34e79e('0x5f4'),_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2fa671(_0x574e55,_0x146c70,_0x96d04d,_0x5d38fa,_0x588494,_0x3e55c9,_0x2ecdd7,_0x5b84af,_0x237634,_0x2f0764){const _0x2e1594=_0x34e79e,_0x292ced=this;_0x292ced['currentUser']=_0x237634['getCurrentUser'](),_0x292ced[_0x2e1594('0x1cf0')]=_0x588494,_0x292ced[_0x2e1594('0xe28')]=_0x2f0764,_0x292ced[_0x2e1594('0x548')]=_0x2ecdd7,_0x292ced[_0x2e1594('0x117b')]=[],_0x292ced['allowedItems']=[],_0x292ced[_0x2e1594('0x283f')]=[],_0x292ced['startingAllowedItems']=[],_0x292ced[_0x2e1594('0xd0d')]=[],_0x292ced[_0x2e1594('0x2677')]=![],_0x292ced[_0x2e1594('0x122e')]=_0x14f3a5,_0x292ced['saveAgents']=_0x503ec7,_0x292ced['closeDialog']=_0x146cf3,_0x292ced[_0x2e1594('0x121')]={'readOnly':!_0x292ced[_0x2e1594('0xe28')][_0x2e1594('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2e1594('0x1a8d'),'line1':_0x2e1594('0x2831'),'line2':[_0x2e1594('0x1a8d'),'internal'],'line3':'','labelAll':_0x5b84af[_0x2e1594('0x1b11')]('SMS.ALL_AGENTS'),'labelSelected':_0x5b84af['instant'](_0x2e1594('0x774')),'transferCallback':function(){const _0x396080=_0x2e1594,_0x565486=_0x283545()[_0x396080('0x12d1')](_0x292ced['startingSelectedItems'],_0x292ced[_0x396080('0x283f')],'id');_0x292ced[_0x396080('0x2677')]=_0x283545()[_0x396080('0x213d')](_0x565486)?![]:!![];}};function _0x14f3a5(){const _0x521e57=_0x2e1594;return _0x237634[_0x521e57('0x1516')]('admin')?_0x3c97ad()[_0x521e57('0x1cb5')](function(_0x5763e9){const _0x503160=_0x521e57;_0x96d04d[_0x503160('0x5e8')]({'title':_0x5763e9[_0x503160('0x1b51')]?'API:'+_0x5763e9['status']+_0x503160('0x1b0b')+_0x5763e9[_0x503160('0x22ce')]:_0x503160('0xd90'),'msg':_0x5763e9['status']?JSON[_0x503160('0x1be0')](_0x5763e9[_0x503160('0x11fc')]):_0x5763e9[_0x503160('0x17df')]()});}):_0x37b111()[_0x521e57('0x2788')](function(_0x4df259){return _0x292ced['section']=_0x4df259,_0x3c97ad();})[_0x521e57('0x1cb5')](function(_0x3db70c){const _0xe814aa=_0x521e57;_0x96d04d[_0xe814aa('0x5e8')]({'title':_0x3db70c[_0xe814aa('0x1b51')]?'API:'+_0x3db70c[_0xe814aa('0x1b51')]+_0xe814aa('0x1b0b')+_0x3db70c['statusText']:_0xe814aa('0xd90'),'msg':_0x3db70c[_0xe814aa('0x1b51')]?JSON[_0xe814aa('0x1be0')](_0x3db70c[_0xe814aa('0x11fc')]):_0x3db70c[_0xe814aa('0x17df')]()});});}function _0x37b111(){return _0x146c70(function(_0x55d70d,_0x8937be){const _0x4e5fcb=a0_0x14e7;_0x5d38fa[_0x4e5fcb('0xec9')]['get']({'userProfileId':_0x292ced['currentUser'][_0x4e5fcb('0x237f')],'name':'Agents'})['$promise']['then'](function(_0x388859){const _0x61d245=_0x4e5fcb,_0x3b2d9f=_0x388859&&_0x388859[_0x61d245('0x25df')]?_0x388859[_0x61d245('0x25df')][0x0]:null;_0x55d70d(_0x3b2d9f);})[_0x4e5fcb('0x1cb5')](function(_0x4925c1){_0x8937be(_0x4925c1);});});}function _0x3c97ad(){return _0x146c70(function(_0x1d2dcd,_0x522ef7){const _0x4121a8=a0_0x14e7;return _0x54bca2()['then'](function(_0x426be8){const _0x385f88=a0_0x14e7;return _0x292ced[_0x385f88('0x117b')]=_0x426be8[_0x385f88('0x25df')]?_0x426be8['rows']:[],_0x237634[_0x385f88('0x1516')](_0x385f88('0xe23'))?_0x426be8:_0x292ced[_0x385f88('0xb13')]?_0x292ced['section'][_0x385f88('0x1c0a')]?_0x426be8:_0x3ec6b2():null;})[_0x4121a8('0x2788')](function(_0x3f1792){const _0x547313=_0x4121a8,_0x25799f=_0x3f1792&&_0x3f1792[_0x547313('0x25df')]?_0x3f1792['rows']:[];return _0x292ced[_0x547313('0x73d')]=_0x283545()[_0x547313('0x155d')](_0x25799f,function(_0xed7c31){const _0xfdd13c=_0x547313;return _0x283545()[_0xfdd13c('0x20e8')](_0x292ced['items'],{'id':_0x237634[_0xfdd13c('0x1516')](_0xfdd13c('0xe23'))||_0x292ced['section'][_0xfdd13c('0x1c0a')]?_0xed7c31['id']:_0xed7c31['resourceId']});}),_0x292ced['startingAllowedItems']=angular['copy'](_0x292ced[_0x547313('0x73d')]),_0x292ced['items'][_0x547313('0x1534')](function(_0x278872){const _0x12a713=_0x547313,_0x12ae68=_0x283545()[_0x12a713('0x20e8')](_0x292ced[_0x12a713('0x73d')],{'id':_0x278872['id']});_0x237634['hasRole'](_0x12a713('0xe23'))?_0x278872[_0x12a713('0x68d')]=!![]:_0x278872[_0x12a713('0x68d')]=typeof _0x12ae68!==_0x12a713('0xedb')?!![]:![];}),_0x38ed53();})[_0x4121a8('0x2788')](function(_0xeff8e3){const _0x3fdfb6=_0x4121a8,_0xb77b1a=_0xeff8e3&&_0xeff8e3['rows']?_0xeff8e3[_0x3fdfb6('0x25df')]:[];_0x292ced[_0x3fdfb6('0x283f')]=_0x283545()[_0x3fdfb6('0x155d')](_0xb77b1a,function(_0x522920){const _0x4773f3=_0x3fdfb6,_0x8ab56e=_0x283545()[_0x4773f3('0x20e8')](_0x292ced[_0x4773f3('0x117b')],{'id':_0x522920['id']});return _0x8ab56e[_0x4773f3('0x1ab')]=_0x522920['UserSmsAccount']?_0x4773f3('0x1b9d')+_0x522920[_0x4773f3('0xfb')]['penalty']:'',_0x8ab56e[_0x4773f3('0x2838')]=typeof _0x522920['internal']!=='undefined'?'<'+_0x522920[_0x4773f3('0x2838')]+'>':'',_0x8ab56e;}),_0x292ced['startingSelectedItems']=angular[_0x3fdfb6('0x2669')](_0x292ced[_0x3fdfb6('0x283f')]),_0x292ced[_0x3fdfb6('0x121')]['selectedItems']=_0x292ced[_0x3fdfb6('0x283f')],_0x292ced['dualMultiselectOptions']['items']=_0x283545()[_0x3fdfb6('0x432')](_0x292ced[_0x3fdfb6('0x73d')],_0x292ced[_0x3fdfb6('0x121')][_0x3fdfb6('0x283f')],'id'),_0x1d2dcd();})[_0x4121a8('0x1cb5')](function(_0x466973){_0x522ef7(_0x466973);});});}function _0x3ec6b2(){return _0x146c70(function(_0x133012,_0x241c77){const _0x240763=a0_0x14e7;return _0x5d38fa[_0x240763('0x1050')][_0x240763('0x1335')]({'sectionId':_0x292ced[_0x240763('0xb13')]['id'],'nolimit':!![]})[_0x240763('0x1714')][_0x240763('0x2788')](function(_0x4786cd){_0x133012(_0x4786cd);})[_0x240763('0x1cb5')](function(_0x2427b8){_0x241c77(_0x2427b8);});});}function _0x38ed53(){return _0x146c70(function(_0x78953f,_0x546724){const _0x37fc2a=a0_0x14e7;return _0x5d38fa[_0x37fc2a('0x1cf0')][_0x37fc2a('0x19db')]({'id':_0x292ced[_0x37fc2a('0x1cf0')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x37fc2a('0x188b')})[_0x37fc2a('0x1714')][_0x37fc2a('0x2788')](function(_0x48d77a){_0x78953f(_0x48d77a);})[_0x37fc2a('0x1cb5')](function(_0x411b83){_0x546724(_0x411b83);});});}function _0x54bca2(){return _0x146c70(function(_0x83979,_0x1936de){const _0x1673fd=a0_0x14e7;return _0x5d38fa['user'][_0x1673fd('0x1335')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x1673fd('0x1714')]['then'](function(_0x4bc531){_0x83979(_0x4bc531);})[_0x1673fd('0x1cb5')](function(_0x4c9904){_0x1936de(_0x4c9904);});});}function _0x1046ce(_0x2b6077){return _0x146c70(function(_0x34088d,_0x4c544f){const _0x180ac6=a0_0x14e7;_0x283545()[_0x180ac6('0x213d')](_0x2b6077)?_0x34088d():_0x5d38fa['smsAccount'][_0x180ac6('0x588')]({'id':_0x292ced[_0x180ac6('0x1cf0')]['id'],'ids':_0x283545()[_0x180ac6('0x155d')](_0x2b6077,'id')})[_0x180ac6('0x1714')][_0x180ac6('0x2788')](function(){_0x34088d();})[_0x180ac6('0x1cb5')](function(_0x5419f8){_0x4c544f(_0x5419f8);});});}function _0x5dbe63(_0x4d9649){return _0x146c70(function(_0x3e3e1c,_0xa9d8b4){const _0x56ccfd=a0_0x14e7;_0x283545()[_0x56ccfd('0x213d')](_0x4d9649)?_0x3e3e1c():_0x5d38fa[_0x56ccfd('0x1cf0')]['removeAgents']({'id':_0x292ced[_0x56ccfd('0x1cf0')]['id'],'ids':_0x283545()[_0x56ccfd('0x155d')](_0x4d9649,'id')})['$promise'][_0x56ccfd('0x2788')](function(){_0x3e3e1c();})['catch'](function(_0x2d5386){_0xa9d8b4(_0x2d5386);});});}function _0x503ec7(){const _0x5a84db=_0x2e1594,_0x9decc7=_0x283545()[_0x5a84db('0x432')](_0x292ced[_0x5a84db('0xd0d')],_0x292ced[_0x5a84db('0x283f')],'id'),_0x5707cc=_0x283545()[_0x5a84db('0x432')](_0x292ced[_0x5a84db('0x283f')],_0x292ced[_0x5a84db('0xd0d')],'id');return _0x5dbe63(_0x9decc7)['then'](function(){return _0x1046ce(_0x5707cc);})[_0x5a84db('0x2788')](function(){const _0x18253b=_0x5a84db;_0x292ced['pendingChanges']=![],_0x292ced['startingAllowedItems']=angular[_0x18253b('0x2669')](_0x292ced[_0x18253b('0x73d')]),_0x292ced[_0x18253b('0xd0d')]=angular[_0x18253b('0x2669')](_0x292ced['selectedItems']),_0x96d04d['success']({'title':_0x18253b('0x10c8'),'msg':_0x18253b('0x1984')});})[_0x5a84db('0x1cb5')](function(_0x558567){const _0x1b8450=_0x5a84db;_0x96d04d[_0x1b8450('0x5e8')]({'title':_0x558567[_0x1b8450('0x1b51')]?_0x1b8450('0x15d1')+_0x558567['status']+_0x1b8450('0x1b0b')+_0x558567[_0x1b8450('0x22ce')]:_0x1b8450('0x13cd'),'msg':_0x558567['status']?JSON['stringify'](_0x558567['data']):_0x558567[_0x1b8450('0x17df')]()});});}function _0x146cf3(){const _0xd08a32=_0x2e1594;_0x574e55[_0xd08a32('0x19d')]();}}const _0x1a697b=_0x2fa671;_0x3ad027[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3ad027(_0x114297,_0x3a55f6,_0x3ac552,_0x9c2fc7,_0x41e8de,_0xc5419f,_0x37b5d2,_0x18d430){const _0x574103=_0x34e79e,_0x4ce827=this;_0x4ce827[_0x574103('0x9cb')]=_0x37b5d2['getCurrentUser'](),_0x4ce827[_0x574103('0x25be')]=[],_0x4ce827[_0x574103('0x14e4')]='SMS.EDIT_'+(_0x9c2fc7[_0x574103('0x167b')]||_0x9c2fc7[_0x574103('0x8a5')])[_0x574103('0x25e6')](),_0x4ce827[_0x574103('0x188b')]=angular[_0x574103('0x2669')](_0x9c2fc7),_0x4ce827[_0x574103('0xe28')]=_0x18d430,_0x4ce827[_0x574103('0x1193')]={};if(_0x4ce827[_0x574103('0x188b')][_0x574103('0xd6b')])switch(_0x4ce827[_0x574103('0x188b')][_0x574103('0x167b')]?_0x4ce827[_0x574103('0x188b')]['appType'][_0x574103('0xc2e')]():_0x4ce827[_0x574103('0x188b')]['app']['toLowerCase']()){case _0x574103('0x1d56'):break;case _0x574103('0x5e1'):{const _0x8c10c8=_0x4ce827['agent'][_0x574103('0xd6b')][_0x574103('0x1497')](',');_0x4ce827['agent']['key']=_0x8c10c8[0x0],_0x4ce827[_0x574103('0x188b')]['language']=_0x8c10c8[0x1],_0x4ce827['agent'][_0x574103('0xf50')]=_0x8c10c8[_0x574103('0x845')](0x2,_0x8c10c8[_0x574103('0x2566')])[_0x574103('0x185f')](',');}break;case _0x574103('0x137a'):{const _0x5d0441=_0x4ce827['agent'][_0x574103('0xd6b')][_0x574103('0x1497')](',');_0x4ce827[_0x574103('0x188b')][_0x574103('0x27f2')]=_0x5d0441[0x0],_0x4ce827['agent'][_0x574103('0x1b58')]=_0x5d0441[0x1],_0x4ce827[_0x574103('0x188b')]['lexregion']=_0x5d0441[0x2],_0x4ce827[_0x574103('0x188b')][_0x574103('0x4eb')]=_0x5d0441[0x3],_0x4ce827[_0x574103('0x188b')]['welcomemessage']=_0x5d0441[_0x574103('0x845')](0x4,_0x5d0441[_0x574103('0x2566')])[_0x574103('0x185f')](',');}break;case _0x574103('0x808'):{const _0x19a4b8=_0x4ce827[_0x574103('0x188b')]['appdata'][_0x574103('0x1497')](',');_0x4ce827['agent'][_0x574103('0x5fd')]=isNaN(_0x19a4b8[0x0])?_0x19a4b8[0x0]:parseInt(_0x19a4b8[0x0],0xa),_0x4ce827[_0x574103('0x188b')][_0x574103('0x16db')]=_0x19a4b8[_0x574103('0x845')](0x1,_0x19a4b8[_0x574103('0x2566')])[_0x574103('0x185f')](',');}break;case'message':_0x4ce827[_0x574103('0x188b')][_0x574103('0x16db')]=_0x4ce827[_0x574103('0x188b')][_0x574103('0xd6b')];break;case'set':_0x4ce827['agent'][_0x574103('0x1a8d')]=_0x4ce827[_0x574103('0x188b')]['appdata'][_0x574103('0x1497')]('=')[0x0],_0x4ce827[_0x574103('0x188b')]['value']=_0x4ce827[_0x574103('0x188b')]['appdata'][_0x574103('0x1497')]('=')[0x1];break;case _0x574103('0x2631'):_0x4ce827[_0x574103('0x188b')][_0x574103('0x1bf6')]=_0x4ce827[_0x574103('0x188b')][_0x574103('0xd6b')];break;default:{const _0x5df834=_0x4ce827[_0x574103('0x188b')][_0x574103('0xd6b')][_0x574103('0x1497')](',');_0x4ce827['agent']['agent']=_0x283545()['isEmpty'](_0x5df834[0x0])?_0x5df834[0x0]:isNaN(_0x5df834[0x0])?_0x5df834[0x0]:parseInt(_0x5df834[0x0],0xa),_0x4ce827[_0x574103('0x188b')][_0x574103('0x24e4')]=_0x283545()[_0x574103('0x213d')](_0x5df834[0x1])?_0x5df834[0x1]:isNaN(_0x5df834[0x1])?_0x5df834[0x1]:parseInt(_0x5df834[0x1],0xa);}break;}else _0x4ce827[_0x574103('0x188b')][_0x574103('0x24e4')]=0x1e;_0x4ce827[_0x574103('0x188b')][_0x574103('0x1d7')]&&_0x4ce827[_0x574103('0x188b')][_0x574103('0x1d7')][_0x574103('0xc2e')]()===_0x574103('0x1')&&_0x4ce827[_0x574103('0x188b')]['appType'][_0x574103('0xc2e')]()===_0x574103('0x229c')&&(_0x4ce827[_0x574103('0x188b')][_0x574103('0x1f71')]=_0x4ce827[_0x574103('0x188b')][_0x574103('0x1224')]?_0x4ce827[_0x574103('0x188b')][_0x574103('0x1224')][_0x574103('0x1497')]('$')[0x0]:undefined,_0x4ce827[_0x574103('0x188b')][_0x574103('0x2081')]=_0x4ce827[_0x574103('0x188b')][_0x574103('0x8de')]?_0x574103('0x1834')+_0x4ce827['agent'][_0x574103('0x8de')]:undefined);_0x4ce827[_0x574103('0x19d4')]=_0x17de7e,_0x4ce827[_0x574103('0xca7')]=_0x16b0e3,_0x37b5d2[_0x574103('0x1516')](_0x574103('0xe23'))?_0xc5419f[_0x574103('0x1e6a')]['get']({'fields':_0x574103('0x1338'),'sort':'name','nolimit':'true','role':_0x574103('0x188b')})[_0x574103('0x1714')][_0x574103('0x2788')](function(_0x36017c){const _0x78bc39=_0x574103;_0x4ce827['agents']=_0x36017c[_0x78bc39('0x25df')]||[];})[_0x574103('0x1cb5')](function(_0x1e236a){const _0x5c057a=_0x574103;_0x3ac552[_0x5c057a('0x5e8')]({'title':_0x1e236a['status']?_0x5c057a('0x15d1')+_0x1e236a[_0x5c057a('0x1b51')]+'\x20-\x20'+_0x1e236a[_0x5c057a('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x1e236a['data']?JSON[_0x5c057a('0x1be0')](_0x1e236a[_0x5c057a('0x11fc')]):_0x1e236a[_0x5c057a('0x17df')]()});}):_0xc5419f[_0x574103('0x1e6a')][_0x574103('0x1335')]({'fields':_0x574103('0x1338'),'sort':_0x574103('0x1a8d'),'nolimit':_0x574103('0x1001'),'role':_0x574103('0x188b')})[_0x574103('0x1714')]['then'](function(_0x3c1c28){const _0x23fd5f=_0x574103;_0x4ce827[_0x23fd5f('0x1713')]=_0x3c1c28[_0x23fd5f('0x25df')]||[];})[_0x574103('0x2788')](function(){const _0x3106a5=_0x574103;return _0xc5419f[_0x3106a5('0xec9')]['get']({'userProfileId':_0x4ce827[_0x3106a5('0x9cb')][_0x3106a5('0x237f')],'sectionId':0xca})['$promise'];})[_0x574103('0x2788')](function(_0x3f85c9){const _0xf0454=_0x574103,_0x2d2193=_0x3f85c9&&_0x3f85c9[_0xf0454('0x25df')]?_0x3f85c9[_0xf0454('0x25df')][0x0]:null;if(!_0x2d2193){const _0x1db0fa=[];let _0x65ef1e=null;_0x4ce827['agent']&&(_0x65ef1e=_0x283545()[_0xf0454('0x20e8')](_0x4ce827['agents'],{'name':_0x4ce827[_0xf0454('0x188b')][_0xf0454('0x188b')]}));for(let _0xb425a7=0x0;_0xb425a7<_0x4ce827[_0xf0454('0x1713')][_0xf0454('0x2566')];_0xb425a7++){_0x65ef1e&&_0x4ce827[_0xf0454('0x1713')][_0xb425a7]['id']===_0x65ef1e['id']&&(_0x4ce827['agents'][_0xb425a7]['canSelect']=![],_0x1db0fa[_0xf0454('0x13e3')](_0x4ce827[_0xf0454('0x1713')][_0xb425a7]));}_0x4ce827[_0xf0454('0x1713')]=_0x1db0fa;}else{if(!_0x2d2193[_0xf0454('0x1c0a')])return _0xc5419f[_0xf0454('0x1050')][_0xf0454('0x1335')]({'sectionId':_0x2d2193['id']})['$promise']['then'](function(_0x4ad433){const _0x4b28a4=_0xf0454,_0x1c2f14=_0x283545()[_0x4b28a4('0x155d')](_0x4ad433[_0x4b28a4('0x25df')],function(_0x48c616){const _0x456db5=_0x4b28a4;return _0x283545()[_0x456db5('0x20e8')](_0x4ce827[_0x456db5('0x1713')],{'id':_0x48c616[_0x456db5('0x2707')]});});let _0x12ac4a=null;_0x4ce827[_0x4b28a4('0x188b')]&&(_0x12ac4a=_0x283545()[_0x4b28a4('0x20e8')](_0x4ce827[_0x4b28a4('0x1713')],{'name':_0x4ce827[_0x4b28a4('0x188b')]['agent']}));if(_0x12ac4a&&!_0x283545()[_0x4b28a4('0xc5d')](_0x1c2f14,['id',_0x12ac4a['id']])){const _0x4c74d4=_0x283545()[_0x4b28a4('0x20e8')](_0x4ce827['agents'],{'id':_0x12ac4a['id']});_0x4c74d4[_0x4b28a4('0x3bf')]=![],_0x1c2f14[_0x4b28a4('0x13e3')](_0x4c74d4);}_0x4ce827['agents']=_0x1c2f14;});}})['catch'](function(_0x436a86){const _0x1ccba5=_0x574103;_0x3ac552[_0x1ccba5('0x5e8')]({'title':_0x436a86[_0x1ccba5('0x1b51')]?_0x1ccba5('0x15d1')+_0x436a86['status']+_0x1ccba5('0x1b0b')+_0x436a86[_0x1ccba5('0x22ce')]:_0x1ccba5('0x1246'),'msg':_0x436a86['data']?JSON[_0x1ccba5('0x1be0')](_0x436a86[_0x1ccba5('0x11fc')]):_0x436a86[_0x1ccba5('0x17df')]()});});function _0x17de7e(){const _0x5cc666=_0x574103;_0x4ce827['errors']=[];const _0xb0389c=[];_0x4ce827['agent']['type']&&_0x4ce827['agent']['type']['toLowerCase']()==='outbound'&&_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x167b')]===_0x5cc666('0x25fb')&&(_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x1224')]=_0x41e8de[_0x5cc666('0x277c')]?(_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x1f71')]||'')+_0x5cc666('0x124d')+_0x41e8de['cutdigits']+'}':(_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x1f71')]||'')+_0x5cc666('0x1275'),_0x41e8de[_0x5cc666('0x801')]!==_0x5cc666('0x1dc')?_0x4ce827['agent'][_0x5cc666('0x784')][_0x5cc666('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4ce827['agent'][_0x5cc666('0x784')]+=_0x5cc666('0x1609')):_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x784')]=_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x784')][_0x5cc666('0x10a4')](_0x5cc666('0x1609'),''));const _0x106e69=_0x283545()['find'](_0x4ce827['agents'],{'name':_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x188b')]});_0x106e69&&(_0x4ce827['agent'][_0x5cc666('0x3bb')]=_0x106e69['id']);if(_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x167b')]&&_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x167b')]===_0x5cc666('0x1d56')){}else switch((_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x8a5')]||_0x4ce827[_0x5cc666('0x188b')]['appType'])[_0x5cc666('0xc2e')]()){case _0x5cc666('0x3a6'):_0x4ce827['agent'][_0x5cc666('0xd6b')]=_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0x1a8d')]+'='+_0x4ce827[_0x5cc666('0x188b')]['value'];break;case'custom':break;default:_0xb0389c[0x0]=_0x4ce827['agent']['agent'],_0xb0389c[0x1]=_0x4ce827['agent'][_0x5cc666('0x24e4')],_0x4ce827[_0x5cc666('0x188b')][_0x5cc666('0xd6b')]=_0xb0389c[_0x5cc666('0x185f')](',');}_0x16b0e3(_0x4ce827[_0x5cc666('0x188b')]);}function _0x16b0e3(_0x476f57){const _0x5e3b8a=_0x574103;_0x114297[_0x5e3b8a('0x19d')](_0x476f57);}}const _0x37464e=_0x3ad027;_0x217d9d[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x217d9d(_0xa98e40,_0x3150fd,_0x3aad5f,_0x5b3bb2,_0x2c841f,_0x1ed8ef,_0x256650,_0x375fb2){const _0x1bb4ce=_0x34e79e,_0x1219ea=this;_0x1219ea['currentUser']=_0x256650[_0x1bb4ce('0x24cc')](),_0x1219ea[_0x1bb4ce('0x25be')]=[],_0x1219ea[_0x1bb4ce('0x14e4')]='SMS.EDIT_'+(_0x5b3bb2[_0x1bb4ce('0x167b')]||_0x5b3bb2[_0x1bb4ce('0x8a5')])[_0x1bb4ce('0x25e6')](),_0x1219ea['amazonlex']=angular[_0x1bb4ce('0x2669')](_0x5b3bb2),_0x1219ea[_0x1bb4ce('0xe28')]=_0x375fb2,_0x1219ea[_0x1bb4ce('0x1193')]={};if(_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xd6b')])switch(_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x167b')]?_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x167b')][_0x1bb4ce('0xc2e')]():_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x8a5')][_0x1bb4ce('0xc2e')]()){case _0x1bb4ce('0x1d56'):break;case'dialogflow':{const _0x3d1b36=_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xd6b')][_0x1bb4ce('0x1497')](',');_0x1219ea['amazonlex'][_0x1bb4ce('0x234b')]=_0x3d1b36[0x0],_0x1219ea['amazonlex'][_0x1bb4ce('0x175b')]=_0x3d1b36[0x1],_0x1219ea[_0x1bb4ce('0x137a')]['welcomemessage']=_0x3d1b36[_0x1bb4ce('0x845')](0x2,_0x3d1b36[_0x1bb4ce('0x2566')])[_0x1bb4ce('0x185f')](',');}break;case _0x1bb4ce('0x137a'):{const _0x3965c6=_0x1219ea['amazonlex'][_0x1bb4ce('0xd6b')][_0x1bb4ce('0x1497')](',');_0x1219ea[_0x1bb4ce('0x137a')]['accesskeyid']=_0x3965c6[0x0],_0x1219ea[_0x1bb4ce('0x137a')]['secretaccesskey']=_0x3965c6[0x1],_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xb70')]=_0x3965c6[0x2],_0x1219ea[_0x1bb4ce('0x137a')]['botname']=_0x3965c6[0x3],_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xf50')]=_0x3965c6['slice'](0x4,_0x3965c6[_0x1bb4ce('0x2566')])[_0x1bb4ce('0x185f')](',');}break;case'autoreply':{const _0x49d30d=_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xd6b')][_0x1bb4ce('0x1497')](',');_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x5fd')]=isNaN(_0x49d30d[0x0])?_0x49d30d[0x0]:parseInt(_0x49d30d[0x0],0xa),_0x1219ea['amazonlex']['text']=_0x49d30d[_0x1bb4ce('0x845')](0x1,_0x49d30d[_0x1bb4ce('0x2566')])[_0x1bb4ce('0x185f')](',');}break;case'message':_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x16db')]=_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xd6b')];break;case _0x1bb4ce('0x3a6'):_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x1a8d')]=_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xd6b')][_0x1bb4ce('0x1497')]('=')[0x0],_0x1219ea['amazonlex']['value']=_0x1219ea['amazonlex'][_0x1bb4ce('0xd6b')][_0x1bb4ce('0x1497')]('=')[0x1];break;case'agi':_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x1bf6')]=_0x1219ea[_0x1bb4ce('0x137a')]['appdata'];break;default:{const _0x20f3bc=_0x1219ea[_0x1bb4ce('0x137a')]['appdata']['split'](',');_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x27f2')]=_0x283545()[_0x1bb4ce('0x213d')](_0x20f3bc[0x0])?_0x20f3bc[0x0]:isNaN(_0x20f3bc[0x0])?_0x20f3bc[0x0]:parseInt(_0x20f3bc[0x0],0xa),_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x1b58')]=_0x283545()[_0x1bb4ce('0x213d')](_0x20f3bc[0x1])?_0x20f3bc[0x1]:isNaN(_0x20f3bc[0x1])?_0x20f3bc[0x1]:parseInt(_0x20f3bc[0x1],0xa),_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0xb70')]=_0x283545()[_0x1bb4ce('0x213d')](_0x20f3bc[0x2])?_0x20f3bc[0x2]:isNaN(_0x20f3bc[0x2])?_0x20f3bc[0x2]:parseInt(_0x20f3bc[0x2],0xa),_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x4eb')]=_0x283545()[_0x1bb4ce('0x213d')](_0x20f3bc[0x3])?_0x20f3bc[0x3]:isNaN(_0x20f3bc[0x3])?_0x20f3bc[0x3]:parseInt(_0x20f3bc[0x3],0xa),_0x1219ea['amazonlex'][_0x1bb4ce('0xf50')]=_0x283545()['isEmpty'](_0x20f3bc[0x4])?_0x20f3bc[0x4]:isNaN(_0x20f3bc[0x4])?_0x20f3bc[0x4]:parseInt(_0x20f3bc[0x4],0xa);}break;}else _0x1219ea[_0x1bb4ce('0x137a')]['lexregion']=_0x1bb4ce('0x1aa5');_0x1219ea['amazonlex'][_0x1bb4ce('0x1d7')]&&_0x1219ea['amazonlex']['type'][_0x1bb4ce('0xc2e')]()===_0x1bb4ce('0x1')&&_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x167b')]['toLowerCase']()===_0x1bb4ce('0x229c')&&(_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x1f71')]=_0x1219ea[_0x1bb4ce('0x137a')]['phone']?_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x1224')][_0x1bb4ce('0x1497')]('$')[0x0]:undefined,_0x1219ea[_0x1bb4ce('0x137a')]['callerId']=_0x1219ea[_0x1bb4ce('0x137a')]['callerID']?_0x1bb4ce('0x1834')+_0x1219ea[_0x1bb4ce('0x137a')][_0x1bb4ce('0x8de')]:undefined);_0x1219ea[_0x1bb4ce('0x19d4')]=_0x5c7253,_0x1219ea['closeDialog']=_0x22c7b8;function _0x5c7253(){const _0x5eead2=_0x1bb4ce;_0x1219ea[_0x5eead2('0x25be')]=[];const _0x229519=[];_0x1219ea['amazonlex'][_0x5eead2('0x1d7')]&&_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x1d7')]['toLowerCase']()==='outbound'&&_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x167b')]===_0x5eead2('0x25fb')&&(_0x1219ea['amazonlex'][_0x5eead2('0x1224')]=_0x2c841f[_0x5eead2('0x277c')]?(_0x1219ea[_0x5eead2('0x137a')]['prefix']||'')+'${EXTEN:'+_0x2c841f['cutdigits']+'}':(_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x1f71')]||'')+_0x5eead2('0x1275'),_0x2c841f[_0x5eead2('0x801')]!==_0x5eead2('0x1dc')?_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x784')][_0x5eead2('0x821')](_0x5eead2('0x1609'))<0x0&&(_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x784')]+=_0x5eead2('0x1609')):_0x1219ea['amazonlex'][_0x5eead2('0x784')]=_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x784')][_0x5eead2('0x10a4')](_0x5eead2('0x1609'),''));if(_0x1219ea['amazonlex']['appType']&&_0x1219ea[_0x5eead2('0x137a')]['appType']===_0x5eead2('0x1d56')){}else switch((_0x1219ea['amazonlex'][_0x5eead2('0x8a5')]||_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x167b')])['toLowerCase']()){case _0x5eead2('0x3a6'):_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0xd6b')]=_0x1219ea['amazonlex'][_0x5eead2('0x1a8d')]+'='+_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x49')];break;case'custom':break;default:_0x229519[0x0]=_0x1219ea[_0x5eead2('0x137a')]['accesskeyid'],_0x229519[0x1]=_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x1b58')],_0x229519[0x2]=_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0xb70')],_0x229519[0x3]=_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0x4eb')],_0x229519[0x4]=_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0xf50')],_0x1219ea[_0x5eead2('0x137a')][_0x5eead2('0xd6b')]=_0x229519[_0x5eead2('0x185f')](',');}_0x22c7b8(_0x1219ea[_0x5eead2('0x137a')]);}function _0x22c7b8(_0x3e3818){_0xa98e40['hide'](_0x3e3818);}}const _0x160e9c=_0x217d9d;_0x4d5404[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'smsAccountApp',_0x34e79e('0x1cf0'),'api','Auth','crudPermissions'];function _0x4d5404(_0x5cdad6,_0x4d2a24,_0x3ee075,_0x37d78d,_0xbc3160,_0x3d4cd2,_0x10e32c,_0x5b3f00){const _0x54669c=_0x34e79e,_0x37e933=this;_0x37e933[_0x54669c('0x9cb')]=_0x10e32c[_0x54669c('0x24cc')](),_0x37e933[_0x54669c('0x25be')]=[],_0x37e933[_0x54669c('0x14e4')]='SMS.EDIT_'+(_0x37d78d[_0x54669c('0x167b')]||_0x37d78d[_0x54669c('0x8a5')])[_0x54669c('0x25e6')](),_0x37e933[_0x54669c('0x808')]=angular[_0x54669c('0x2669')](_0x37d78d),_0x37e933[_0x54669c('0xe28')]=_0x5b3f00,_0x37e933['hasModulePermissions']={};if(_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')])switch(_0x37e933[_0x54669c('0x808')]['appType']?_0x37e933[_0x54669c('0x808')]['appType'][_0x54669c('0xc2e')]():_0x37e933[_0x54669c('0x808')][_0x54669c('0x8a5')][_0x54669c('0xc2e')]()){case _0x54669c('0x1d56'):break;case _0x54669c('0x5e1'):{const _0x33174e=_0x37e933[_0x54669c('0x808')]['appdata'][_0x54669c('0x1497')](',');_0x37e933[_0x54669c('0x808')][_0x54669c('0x234b')]=_0x33174e[0x0],_0x37e933['autoreply'][_0x54669c('0x175b')]=_0x33174e[0x1],_0x37e933[_0x54669c('0x808')][_0x54669c('0xf50')]=_0x33174e['slice'](0x2,_0x33174e[_0x54669c('0x2566')])['join'](',');}break;case _0x54669c('0x137a'):{const _0x83a329=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')][_0x54669c('0x1497')](',');_0x37e933['autoreply'][_0x54669c('0x27f2')]=_0x83a329[0x0],_0x37e933['autoreply']['secretaccesskey']=_0x83a329[0x1],_0x37e933[_0x54669c('0x808')][_0x54669c('0xb70')]=_0x83a329[0x2],_0x37e933[_0x54669c('0x808')][_0x54669c('0x4eb')]=_0x83a329[0x3],_0x37e933[_0x54669c('0x808')]['welcomemessage']=_0x83a329[_0x54669c('0x845')](0x4,_0x83a329['length'])[_0x54669c('0x185f')](',');}break;case _0x54669c('0x808'):{const _0x94fc57=_0x37e933['autoreply'][_0x54669c('0xd6b')]['split'](',');_0x37e933['autoreply']['times']=isNaN(_0x94fc57[0x0])?_0x94fc57[0x0]:parseInt(_0x94fc57[0x0],0xa),_0x37e933['autoreply']['text']=_0x94fc57[_0x54669c('0x845')](0x1,_0x94fc57[_0x54669c('0x2566')])[_0x54669c('0x185f')](',');}break;case _0x54669c('0x15e2'):_0x37e933[_0x54669c('0x808')][_0x54669c('0x16db')]=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')];break;case _0x54669c('0x3a6'):_0x37e933['autoreply'][_0x54669c('0x1a8d')]=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')][_0x54669c('0x1497')]('=')[0x0],_0x37e933[_0x54669c('0x808')][_0x54669c('0x49')]=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')][_0x54669c('0x1497')]('=')[0x1];break;case _0x54669c('0x2631'):_0x37e933[_0x54669c('0x808')]['project']=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')];break;default:{const _0x3ab04f=_0x37e933[_0x54669c('0x808')][_0x54669c('0xd6b')][_0x54669c('0x1497')](',');_0x37e933[_0x54669c('0x808')]['times']=_0x283545()['isEmpty'](_0x3ab04f[0x0])?_0x3ab04f[0x0]:isNaN(_0x3ab04f[0x0])?_0x3ab04f[0x0]:parseInt(_0x3ab04f[0x0],0xa),_0x37e933[_0x54669c('0x808')][_0x54669c('0x16db')]=_0x283545()[_0x54669c('0x213d')](_0x3ab04f[0x1])?_0x3ab04f[0x1]:isNaN(_0x3ab04f[0x1])?_0x3ab04f[0x1]:parseInt(_0x3ab04f[0x1],0xa);}}else _0x37e933['autoreply']['times']=0x1;_0x37e933[_0x54669c('0x808')][_0x54669c('0x1d7')]&&_0x37e933['autoreply']['type']['toLowerCase']()===_0x54669c('0x1')&&_0x37e933['autoreply']['appType'][_0x54669c('0xc2e')]()===_0x54669c('0x229c')&&(_0x37e933[_0x54669c('0x808')][_0x54669c('0x1f71')]=_0x37e933['autoreply'][_0x54669c('0x1224')]?_0x37e933[_0x54669c('0x808')][_0x54669c('0x1224')][_0x54669c('0x1497')]('$')[0x0]:undefined,_0x37e933[_0x54669c('0x808')]['callerId']=_0x37e933[_0x54669c('0x808')][_0x54669c('0x8de')]?'CALLERID(all)='+_0x37e933[_0x54669c('0x808')]['callerID']:undefined);_0x37e933['saveSmsAccountApp']=_0x4926e4,_0x37e933[_0x54669c('0xca7')]=_0x1c69cf;function _0x4926e4(){const _0xd5a773=_0x54669c;_0x37e933[_0xd5a773('0x25be')]=[];const _0x3fe7d9=[];_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x1d7')]&&_0x37e933['autoreply'][_0xd5a773('0x1d7')][_0xd5a773('0xc2e')]()===_0xd5a773('0x1')&&_0x37e933[_0xd5a773('0x808')]['appType']===_0xd5a773('0x25fb')&&(_0x37e933['autoreply'][_0xd5a773('0x1224')]=_0xbc3160[_0xd5a773('0x277c')]?(_0x37e933['autoreply'][_0xd5a773('0x1f71')]||'')+_0xd5a773('0x124d')+_0xbc3160[_0xd5a773('0x277c')]+'}':(_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x1f71')]||'')+_0xd5a773('0x1275'),_0xbc3160[_0xd5a773('0x801')]!==_0xd5a773('0x1dc')?_0x37e933[_0xd5a773('0x808')]['options']['indexOf'](_0xd5a773('0x1609'))<0x0&&(_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x784')]+=_0xd5a773('0x1609')):_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x784')]=_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x784')]['replace'](_0xd5a773('0x1609'),''));if(_0x37e933['autoreply'][_0xd5a773('0x167b')]&&_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x167b')]===_0xd5a773('0x1d56')){}else switch((_0x37e933['autoreply'][_0xd5a773('0x8a5')]||_0x37e933['autoreply']['appType'])[_0xd5a773('0xc2e')]()){case _0xd5a773('0x3a6'):_0x37e933[_0xd5a773('0x808')][_0xd5a773('0xd6b')]=_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x1a8d')]+'='+_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x49')];break;case _0xd5a773('0x1d56'):break;default:_0x3fe7d9[0x0]=_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x5fd')],_0x3fe7d9[0x1]=_0x37e933[_0xd5a773('0x808')][_0xd5a773('0x16db')],_0x37e933[_0xd5a773('0x808')][_0xd5a773('0xd6b')]=_0x3fe7d9[_0xd5a773('0x185f')](',');}_0x1c69cf(_0x37e933['autoreply']);}function _0x1c69cf(_0x4d6efb){const _0x50c284=_0x54669c;_0x5cdad6[_0x50c284('0x19d')](_0x4d6efb);}}const _0x4ad580=_0x4d5404;_0x48efc2['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x48efc2(_0x1fc4b1,_0x186b14,_0x3e6c9f,_0x38b731,_0x3589c7,_0x4ec360,_0x1f020e,_0x3bbc5a){const _0x7c58df=_0x34e79e,_0x39633a=this;_0x39633a['currentUser']=_0x1f020e['getCurrentUser'](),_0x39633a[_0x7c58df('0x25be')]=[],_0x39633a['title']=_0x7c58df('0xb93')+(_0x38b731[_0x7c58df('0x167b')]||_0x38b731[_0x7c58df('0x8a5')])[_0x7c58df('0x25e6')](),_0x39633a[_0x7c58df('0x69f')]=angular[_0x7c58df('0x2669')](_0x38b731),_0x39633a[_0x7c58df('0xe28')]=_0x3bbc5a,_0x39633a[_0x7c58df('0x1193')]={};if(_0x39633a['close'][_0x7c58df('0xd6b')])switch(_0x39633a['close']['appType']?_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x167b')][_0x7c58df('0xc2e')]():_0x39633a['close']['app'][_0x7c58df('0xc2e')]()){case _0x7c58df('0x1d56'):break;case _0x7c58df('0x5e1'):{const _0x45a150=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')][_0x7c58df('0x1497')](',');_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x234b')]=_0x45a150[0x0],_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x175b')]=_0x45a150[0x1],_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xf50')]=_0x45a150[_0x7c58df('0x845')](0x2,_0x45a150['length'])[_0x7c58df('0x185f')](',');}break;case _0x7c58df('0x137a'):{const _0x41e62a=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')]['split'](',');_0x39633a[_0x7c58df('0x69f')]['accesskeyid']=_0x41e62a[0x0],_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x1b58')]=_0x41e62a[0x1],_0x39633a[_0x7c58df('0x69f')]['lexregion']=_0x41e62a[0x2],_0x39633a['close'][_0x7c58df('0x4eb')]=_0x41e62a[0x3],_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xf50')]=_0x41e62a['slice'](0x4,_0x41e62a['length'])[_0x7c58df('0x185f')](',');}break;case _0x7c58df('0x808'):{const _0x1f131d=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')][_0x7c58df('0x1497')](',');_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x5fd')]=isNaN(_0x1f131d[0x0])?_0x1f131d[0x0]:parseInt(_0x1f131d[0x0],0xa),_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x16db')]=_0x1f131d[_0x7c58df('0x845')](0x1,_0x1f131d['length'])[_0x7c58df('0x185f')](',');}break;case _0x7c58df('0x15e2'):_0x39633a['close'][_0x7c58df('0x16db')]=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')];break;case _0x7c58df('0x3a6'):_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x1a8d')]=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')]['split']('=')[0x0],_0x39633a[_0x7c58df('0x69f')]['value']=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')]['split']('=')[0x1];break;case _0x7c58df('0x2631'):_0x39633a[_0x7c58df('0x69f')]['project']=_0x39633a['close'][_0x7c58df('0xd6b')];break;default:{const _0x2fae11=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0xd6b')][_0x7c58df('0x1497')](',');_0x39633a['close'][_0x7c58df('0x1db2')]=_0x283545()[_0x7c58df('0x213d')](_0x2fae11[0x0])?_0x2fae11[0x0]:isNaN(_0x2fae11[0x0])?_0x2fae11[0x0]:parseInt(_0x2fae11[0x0],0xa);}break;}else{}_0x39633a['close']['type']&&_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x1d7')]['toLowerCase']()===_0x7c58df('0x1')&&_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x167b')][_0x7c58df('0xc2e')]()===_0x7c58df('0x229c')&&(_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x1f71')]=_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x1224')]?_0x39633a['close']['phone'][_0x7c58df('0x1497')]('$')[0x0]:undefined,_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x2081')]=_0x39633a[_0x7c58df('0x69f')]['callerID']?_0x7c58df('0x1834')+_0x39633a[_0x7c58df('0x69f')][_0x7c58df('0x8de')]:undefined);_0x39633a['saveSmsAccountApp']=_0x12c548,_0x39633a[_0x7c58df('0xca7')]=_0x16bfb1;function _0x12c548(){const _0x4af626=_0x7c58df;_0x39633a[_0x4af626('0x25be')]=[];const _0x5e33ce=[];_0x39633a[_0x4af626('0x69f')]['type']&&_0x39633a[_0x4af626('0x69f')]['type']['toLowerCase']()===_0x4af626('0x1')&&_0x39633a[_0x4af626('0x69f')][_0x4af626('0x167b')]===_0x4af626('0x25fb')&&(_0x39633a[_0x4af626('0x69f')][_0x4af626('0x1224')]=_0x3589c7[_0x4af626('0x277c')]?(_0x39633a[_0x4af626('0x69f')][_0x4af626('0x1f71')]||'')+_0x4af626('0x124d')+_0x3589c7[_0x4af626('0x277c')]+'}':(_0x39633a['close']['prefix']||'')+_0x4af626('0x1275'),_0x3589c7[_0x4af626('0x801')]!==_0x4af626('0x1dc')?_0x39633a[_0x4af626('0x69f')][_0x4af626('0x784')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x39633a[_0x4af626('0x69f')]['options']+=_0x4af626('0x1609')):_0x39633a['close'][_0x4af626('0x784')]=_0x39633a[_0x4af626('0x69f')]['options'][_0x4af626('0x10a4')](_0x4af626('0x1609'),''));if(_0x39633a[_0x4af626('0x69f')][_0x4af626('0x167b')]&&_0x39633a['close'][_0x4af626('0x167b')]===_0x4af626('0x1d56')){}else switch((_0x39633a[_0x4af626('0x69f')][_0x4af626('0x8a5')]||_0x39633a[_0x4af626('0x69f')][_0x4af626('0x167b')])['toLowerCase']()){case'set':_0x39633a[_0x4af626('0x69f')]['appdata']=_0x39633a['close'][_0x4af626('0x1a8d')]+'='+_0x39633a[_0x4af626('0x69f')][_0x4af626('0x49')];break;case _0x4af626('0x1d56'):break;default:_0x5e33ce[0x0]=_0x39633a[_0x4af626('0x69f')][_0x4af626('0x1db2')],_0x39633a[_0x4af626('0x69f')][_0x4af626('0xd6b')]=_0x5e33ce[_0x4af626('0x185f')](',');}_0x16bfb1(_0x39633a[_0x4af626('0x69f')]);}function _0x16bfb1(_0x422134){const _0x3d450e=_0x7c58df;_0x1fc4b1[_0x3d450e('0x19d')](_0x422134);}}const _0x2bd19b=_0x48efc2;_0x1568af[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1568af(_0x30925d,_0x577a77,_0x481a91,_0xecadc7,_0xce7829,_0x41af78,_0x9deb98,_0x2644dd){const _0x53c0b4=_0x34e79e,_0x143f71=this;_0x143f71['currentUser']=_0x9deb98[_0x53c0b4('0x24cc')](),_0x143f71['errors']=[],_0x143f71[_0x53c0b4('0x14e4')]=_0x53c0b4('0xb93')+(_0xecadc7[_0x53c0b4('0x167b')]||_0xecadc7['app'])[_0x53c0b4('0x25e6')](),_0x143f71['dialogflow']=angular['copy'](_0xecadc7),_0x143f71['crudPermissions']=_0x2644dd,_0x143f71[_0x53c0b4('0x1193')]={};if(_0x143f71[_0x53c0b4('0x5e1')]['appdata'])switch(_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x167b')]?_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x167b')][_0x53c0b4('0xc2e')]():_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x8a5')][_0x53c0b4('0xc2e')]()){case'custom':break;case _0x53c0b4('0x5e1'):{const _0x1bd330=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')](',');_0x143f71['dialogflow'][_0x53c0b4('0x234b')]=_0x1bd330[0x0],_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x175b')]=_0x1bd330[0x1],_0x143f71['dialogflow'][_0x53c0b4('0xf50')]=_0x1bd330['slice'](0x2,_0x1bd330['length'])[_0x53c0b4('0x185f')](',');}break;case'amazonlex':{const _0x546f02=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')](',');_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x27f2')]=_0x546f02[0x0],_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1b58')]=_0x546f02[0x1],_0x143f71['dialogflow'][_0x53c0b4('0xb70')]=_0x546f02[0x2],_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x4eb')]=_0x546f02[0x3],_0x143f71['dialogflow']['welcomemessage']=_0x546f02[_0x53c0b4('0x845')](0x4,_0x546f02[_0x53c0b4('0x2566')])[_0x53c0b4('0x185f')](',');}break;case'autoreply':{const _0x257492=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')](',');_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x5fd')]=isNaN(_0x257492[0x0])?_0x257492[0x0]:parseInt(_0x257492[0x0],0xa),_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x16db')]=_0x257492[_0x53c0b4('0x845')](0x1,_0x257492[_0x53c0b4('0x2566')])[_0x53c0b4('0x185f')](',');}break;case'message':_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x16db')]=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')];break;case'set':_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1a8d')]=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')]('=')[0x0],_0x143f71['dialogflow'][_0x53c0b4('0x49')]=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')]('=')[0x1];break;case'agi':_0x143f71[_0x53c0b4('0x5e1')]['project']=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0xd6b')];break;default:{const _0x1f50a3=_0x143f71['dialogflow'][_0x53c0b4('0xd6b')][_0x53c0b4('0x1497')](',');_0x143f71[_0x53c0b4('0x5e1')]['key']=_0x283545()[_0x53c0b4('0x213d')](_0x1f50a3[0x0])?_0x1f50a3[0x0]:isNaN(_0x1f50a3[0x0])?_0x1f50a3[0x0]:parseInt(_0x1f50a3[0x0],0xa),_0x143f71[_0x53c0b4('0x5e1')]['language']=_0x283545()[_0x53c0b4('0x213d')](_0x1f50a3[0x1])?_0x1f50a3[0x1]:isNaN(_0x1f50a3[0x1])?_0x1f50a3[0x1]:parseInt(_0x1f50a3[0x1],0xa),_0x143f71['dialogflow']['welcomemessage']=_0x283545()[_0x53c0b4('0x213d')](_0x1f50a3[0x2])?_0x1f50a3[0x2]:isNaN(_0x1f50a3[0x2])?_0x1f50a3[0x2]:parseInt(_0x1f50a3[0x2],0xa);}break;}else _0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x175b')]='en';_0x143f71[_0x53c0b4('0x5e1')]['type']&&_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1d7')][_0x53c0b4('0xc2e')]()===_0x53c0b4('0x1')&&_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x167b')][_0x53c0b4('0xc2e')]()===_0x53c0b4('0x229c')&&(_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1f71')]=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1224')]?_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x1224')]['split']('$')[0x0]:undefined,_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x2081')]=_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x8de')]?_0x53c0b4('0x1834')+_0x143f71[_0x53c0b4('0x5e1')][_0x53c0b4('0x8de')]:undefined);_0x143f71[_0x53c0b4('0x19d4')]=_0x2acea9,_0x143f71[_0x53c0b4('0xca7')]=_0x1cc26d;function _0x2acea9(){const _0x12b1bc=_0x53c0b4;_0x143f71[_0x12b1bc('0x25be')]=[];const _0xf3908=[];_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x1d7')]&&_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x1d7')][_0x12b1bc('0xc2e')]()===_0x12b1bc('0x1')&&_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x167b')]==='outboundDial'&&(_0x143f71[_0x12b1bc('0x5e1')]['phone']=_0xce7829[_0x12b1bc('0x277c')]?(_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x1f71')]||'')+_0x12b1bc('0x124d')+_0xce7829[_0x12b1bc('0x277c')]+'}':(_0x143f71['dialogflow']['prefix']||'')+_0x12b1bc('0x1275'),_0xce7829[_0x12b1bc('0x801')]!==_0x12b1bc('0x1dc')?_0x143f71['dialogflow'][_0x12b1bc('0x784')][_0x12b1bc('0x821')](_0x12b1bc('0x1609'))<0x0&&(_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x784')]+=_0x12b1bc('0x1609')):_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x784')]=_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x784')][_0x12b1bc('0x10a4')](_0x12b1bc('0x1609'),''));if(_0x143f71[_0x12b1bc('0x5e1')]['appType']&&_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x167b')]===_0x12b1bc('0x1d56')){}else switch((_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x8a5')]||_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x167b')])['toLowerCase']()){case _0x12b1bc('0x3a6'):_0x143f71['dialogflow']['appdata']=_0x143f71['dialogflow'][_0x12b1bc('0x1a8d')]+'='+_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x49')];break;case _0x12b1bc('0x1d56'):break;default:_0xf3908[0x0]=_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x234b')],_0xf3908[0x1]=_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0x175b')],_0xf3908[0x2]=_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0xf50')],_0x143f71[_0x12b1bc('0x5e1')][_0x12b1bc('0xd6b')]=_0xf3908[_0x12b1bc('0x185f')](',');}_0x1cc26d(_0x143f71[_0x12b1bc('0x5e1')]);}function _0x1cc26d(_0x57a1b0){const _0x44c365=_0x53c0b4;_0x30925d[_0x44c365('0x19d')](_0x57a1b0);}}const _0x37bffa=_0x1568af;_0x2923a3[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),'api','Auth',_0x34e79e('0xe28')];function _0x2923a3(_0x5cebbf,_0x537ce1,_0x26f0b3,_0x18cb0e,_0x43acdb,_0x33a382,_0x4890f5,_0x124077){const _0x4027c7=_0x34e79e,_0xfd17b4=this;_0xfd17b4[_0x4027c7('0x9cb')]=_0x4890f5[_0x4027c7('0x24cc')](),_0xfd17b4[_0x4027c7('0x25be')]=[],_0xfd17b4['title']='SMS.EDIT_'+(_0x18cb0e[_0x4027c7('0x167b')]||_0x18cb0e['app'])['toUpperCase'](),_0xfd17b4[_0x4027c7('0x1e01')]=angular[_0x4027c7('0x2669')](_0x18cb0e),_0xfd17b4[_0x4027c7('0xe28')]=_0x124077,_0xfd17b4['hasModulePermissions']={};if(_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xd6b')])switch(_0xfd17b4['gotoif'][_0x4027c7('0x167b')]?_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x167b')]['toLowerCase']():_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x8a5')]['toLowerCase']()){case'custom':break;case _0x4027c7('0x5e1'):{const _0x438493=_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xd6b')][_0x4027c7('0x1497')](',');_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x234b')]=_0x438493[0x0],_0xfd17b4['gotoif'][_0x4027c7('0x175b')]=_0x438493[0x1],_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xf50')]=_0x438493[_0x4027c7('0x845')](0x2,_0x438493[_0x4027c7('0x2566')])['join'](',');}break;case _0x4027c7('0x137a'):{const _0x149d6c=_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xd6b')][_0x4027c7('0x1497')](',');_0xfd17b4['gotoif'][_0x4027c7('0x27f2')]=_0x149d6c[0x0],_0xfd17b4[_0x4027c7('0x1e01')]['secretaccesskey']=_0x149d6c[0x1],_0xfd17b4[_0x4027c7('0x1e01')]['lexregion']=_0x149d6c[0x2],_0xfd17b4['gotoif'][_0x4027c7('0x4eb')]=_0x149d6c[0x3],_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xf50')]=_0x149d6c[_0x4027c7('0x845')](0x4,_0x149d6c[_0x4027c7('0x2566')])[_0x4027c7('0x185f')](',');}break;case'autoreply':{const _0x393cce=_0xfd17b4[_0x4027c7('0x1e01')]['appdata'][_0x4027c7('0x1497')](',');_0xfd17b4['gotoif'][_0x4027c7('0x5fd')]=isNaN(_0x393cce[0x0])?_0x393cce[0x0]:parseInt(_0x393cce[0x0],0xa),_0xfd17b4['gotoif'][_0x4027c7('0x16db')]=_0x393cce[_0x4027c7('0x845')](0x1,_0x393cce[_0x4027c7('0x2566')])[_0x4027c7('0x185f')](',');}break;case _0x4027c7('0x15e2'):_0xfd17b4['gotoif'][_0x4027c7('0x16db')]=_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xd6b')];break;case _0x4027c7('0x3a6'):_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x1a8d')]=_0xfd17b4[_0x4027c7('0x1e01')]['appdata'][_0x4027c7('0x1497')]('=')[0x0],_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x49')]=_0xfd17b4['gotoif'][_0x4027c7('0xd6b')]['split']('=')[0x1];break;case _0x4027c7('0x2631'):_0xfd17b4[_0x4027c7('0x1e01')]['project']=_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0xd6b')];break;default:{const _0x5e828f=_0xfd17b4['gotoif'][_0x4027c7('0xd6b')][_0x4027c7('0x1497')](',');_0xfd17b4['gotoif'][_0x4027c7('0xf2b')]=_0x283545()['isEmpty'](_0x5e828f[0x0])?_0x5e828f[0x0]:isNaN(_0x5e828f[0x0])?_0x5e828f[0x0]:parseInt(_0x5e828f[0x0],0xa),_0xfd17b4[_0x4027c7('0x1e01')]['truepriority']=_0x283545()[_0x4027c7('0x213d')](_0x5e828f[0x1])?_0x5e828f[0x1]:isNaN(_0x5e828f[0x1])?_0x5e828f[0x1]:parseInt(_0x5e828f[0x1],0xa),_0xfd17b4['gotoif']['falsepriority']=_0x283545()[_0x4027c7('0x213d')](_0x5e828f[0x2])?_0x5e828f[0x2]:isNaN(_0x5e828f[0x2])?_0x5e828f[0x2]:parseInt(_0x5e828f[0x2],0xa);}break;}else{}_0xfd17b4['gotoif'][_0x4027c7('0x1d7')]&&_0xfd17b4[_0x4027c7('0x1e01')]['type'][_0x4027c7('0xc2e')]()===_0x4027c7('0x1')&&_0xfd17b4[_0x4027c7('0x1e01')]['appType']['toLowerCase']()===_0x4027c7('0x229c')&&(_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x1f71')]=_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x1224')]?_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x1224')]['split']('$')[0x0]:undefined,_0xfd17b4[_0x4027c7('0x1e01')]['callerId']=_0xfd17b4[_0x4027c7('0x1e01')]['callerID']?'CALLERID(all)='+_0xfd17b4[_0x4027c7('0x1e01')][_0x4027c7('0x8de')]:undefined);_0xfd17b4[_0x4027c7('0x19d4')]=_0x28020c,_0xfd17b4['closeDialog']=_0x5eb886;function _0x28020c(){const _0x3998f6=_0x4027c7;_0xfd17b4['errors']=[];const _0x550a8d=[];_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x1d7')]&&_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x1d7')][_0x3998f6('0xc2e')]()===_0x3998f6('0x1')&&_0xfd17b4['gotoif'][_0x3998f6('0x167b')]===_0x3998f6('0x25fb')&&(_0xfd17b4['gotoif'][_0x3998f6('0x1224')]=_0x43acdb[_0x3998f6('0x277c')]?(_0xfd17b4[_0x3998f6('0x1e01')]['prefix']||'')+_0x3998f6('0x124d')+_0x43acdb[_0x3998f6('0x277c')]+'}':(_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x1f71')]||'')+_0x3998f6('0x1275'),_0x43acdb[_0x3998f6('0x801')]!==_0x3998f6('0x1dc')?_0xfd17b4['gotoif'][_0x3998f6('0x784')]['indexOf'](_0x3998f6('0x1609'))<0x0&&(_0xfd17b4['gotoif'][_0x3998f6('0x784')]+=_0x3998f6('0x1609')):_0xfd17b4['gotoif'][_0x3998f6('0x784')]=_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x784')]['replace']('U(xcally-mixmonitor-context)',''));if(_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x167b')]&&_0xfd17b4['gotoif'][_0x3998f6('0x167b')]===_0x3998f6('0x1d56')){}else switch((_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x8a5')]||_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x167b')])['toLowerCase']()){case _0x3998f6('0x3a6'):_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0xd6b')]=_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x1a8d')]+'='+_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x49')];break;case _0x3998f6('0x1d56'):break;default:_0x550a8d[0x0]=_0xfd17b4['gotoif'][_0x3998f6('0xf2b')],_0x550a8d[0x1]=_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0x86a')],_0x550a8d[0x2]=_0xfd17b4['gotoif'][_0x3998f6('0x1474')],_0xfd17b4[_0x3998f6('0x1e01')][_0x3998f6('0xd6b')]=_0x550a8d[_0x3998f6('0x185f')](',');}_0x5eb886(_0xfd17b4[_0x3998f6('0x1e01')]);}function _0x5eb886(_0x45a5aa){const _0x39d28f=_0x4027c7;_0x5cebbf[_0x39d28f('0x19d')](_0x45a5aa);}}const _0x1df2c0=_0x2923a3;_0x2b179f['$inject']=['$mdDialog','$q','toasty',_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2b179f(_0xb87785,_0x22d0ed,_0xd62546,_0x40d217,_0x1cf97c,_0x294f48,_0xfacfc9,_0x5c8c6f){const _0x5a9985=_0x34e79e,_0x3379da=this;_0x3379da[_0x5a9985('0x9cb')]=_0xfacfc9['getCurrentUser'](),_0x3379da[_0x5a9985('0x25be')]=[],_0x3379da[_0x5a9985('0x14e4')]=_0x5a9985('0xb93')+(_0x40d217[_0x5a9985('0x167b')]||_0x40d217[_0x5a9985('0x8a5')])[_0x5a9985('0x25e6')](),_0x3379da[_0x5a9985('0x1598')]=angular['copy'](_0x40d217),_0x3379da[_0x5a9985('0xe28')]=_0x5c8c6f,_0x3379da[_0x5a9985('0x1193')]={};if(_0x3379da['gotop']['appdata'])switch(_0x3379da['gotop'][_0x5a9985('0x167b')]?_0x3379da['gotop']['appType'][_0x5a9985('0xc2e')]():_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x8a5')][_0x5a9985('0xc2e')]()){case _0x5a9985('0x1d56'):break;case _0x5a9985('0x5e1'):{const _0x888208=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xd6b')][_0x5a9985('0x1497')](',');_0x3379da['gotop']['key']=_0x888208[0x0],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x175b')]=_0x888208[0x1],_0x3379da[_0x5a9985('0x1598')]['welcomemessage']=_0x888208[_0x5a9985('0x845')](0x2,_0x888208[_0x5a9985('0x2566')])['join'](',');}break;case _0x5a9985('0x137a'):{const _0x51371e=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xd6b')][_0x5a9985('0x1497')](',');_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x27f2')]=_0x51371e[0x0],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x1b58')]=_0x51371e[0x1],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xb70')]=_0x51371e[0x2],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x4eb')]=_0x51371e[0x3],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xf50')]=_0x51371e['slice'](0x4,_0x51371e[_0x5a9985('0x2566')])[_0x5a9985('0x185f')](',');}break;case _0x5a9985('0x808'):{const _0x1b0ab6=_0x3379da['gotop'][_0x5a9985('0xd6b')][_0x5a9985('0x1497')](',');_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x5fd')]=isNaN(_0x1b0ab6[0x0])?_0x1b0ab6[0x0]:parseInt(_0x1b0ab6[0x0],0xa),_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x16db')]=_0x1b0ab6[_0x5a9985('0x845')](0x1,_0x1b0ab6[_0x5a9985('0x2566')])['join'](',');}break;case _0x5a9985('0x15e2'):_0x3379da['gotop'][_0x5a9985('0x16db')]=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xd6b')];break;case'set':_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x1a8d')]=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xd6b')][_0x5a9985('0x1497')]('=')[0x0],_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x49')]=_0x3379da[_0x5a9985('0x1598')]['appdata']['split']('=')[0x1];break;case'agi':_0x3379da['gotop'][_0x5a9985('0x1bf6')]=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0xd6b')];break;default:{const _0x15cc27=_0x3379da['gotop']['appdata']['split'](',');_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x155b')]=_0x283545()[_0x5a9985('0x213d')](_0x15cc27[0x0])?_0x15cc27[0x0]:isNaN(_0x15cc27[0x0])?_0x15cc27[0x0]:parseInt(_0x15cc27[0x0],0xa);}break;}else{}_0x3379da['gotop'][_0x5a9985('0x1d7')]&&_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x1d7')][_0x5a9985('0xc2e')]()===_0x5a9985('0x1')&&_0x3379da['gotop'][_0x5a9985('0x167b')][_0x5a9985('0xc2e')]()==='outbounddial'&&(_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x1f71')]=_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x1224')]?_0x3379da['gotop'][_0x5a9985('0x1224')][_0x5a9985('0x1497')]('$')[0x0]:undefined,_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x2081')]=_0x3379da['gotop'][_0x5a9985('0x8de')]?_0x5a9985('0x1834')+_0x3379da[_0x5a9985('0x1598')][_0x5a9985('0x8de')]:undefined);_0x3379da[_0x5a9985('0x19d4')]=_0x4c22b9,_0x3379da[_0x5a9985('0xca7')]=_0x2feb7a;function _0x4c22b9(){const _0xe6bd66=_0x5a9985;_0x3379da[_0xe6bd66('0x25be')]=[];const _0x1e7415=[];_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x1d7')]&&_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x1d7')][_0xe6bd66('0xc2e')]()==='outbound'&&_0x3379da['gotop'][_0xe6bd66('0x167b')]===_0xe6bd66('0x25fb')&&(_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x1224')]=_0x1cf97c['cutdigits']?(_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x1f71')]||'')+_0xe6bd66('0x124d')+_0x1cf97c[_0xe6bd66('0x277c')]+'}':(_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x1f71')]||'')+_0xe6bd66('0x1275'),_0x1cf97c[_0xe6bd66('0x801')]!==_0xe6bd66('0x1dc')?_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x784')][_0xe6bd66('0x821')](_0xe6bd66('0x1609'))<0x0&&(_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x784')]+=_0xe6bd66('0x1609')):_0x3379da[_0xe6bd66('0x1598')]['options']=_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x784')][_0xe6bd66('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x3379da['gotop'][_0xe6bd66('0x167b')]&&_0x3379da[_0xe6bd66('0x1598')]['appType']===_0xe6bd66('0x1d56')){}else switch((_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x8a5')]||_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x167b')])[_0xe6bd66('0xc2e')]()){case _0xe6bd66('0x3a6'):_0x3379da[_0xe6bd66('0x1598')]['appdata']=_0x3379da['gotop']['name']+'='+_0x3379da[_0xe6bd66('0x1598')]['value'];break;case _0xe6bd66('0x1d56'):break;default:_0x1e7415[0x0]=_0x3379da[_0xe6bd66('0x1598')][_0xe6bd66('0x155b')],_0x3379da['gotop'][_0xe6bd66('0xd6b')]=_0x1e7415[_0xe6bd66('0x185f')](',');}_0x2feb7a(_0x3379da['gotop']);}function _0x2feb7a(_0x277930){const _0x763b52=_0x5a9985;_0xb87785[_0x763b52('0x19d')](_0x277930);}}const _0x11496f=_0x2b179f;_0x8a2be[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x8a2be(_0x3ecc65,_0x26071e,_0x4f084e,_0x18387b,_0x5d5d3a,_0xe344cd,_0x1dfe7,_0x2034ff,_0x352ac0,_0x5e9516){const _0x3c6961=_0x34e79e,_0x4035cd=this;_0x4035cd[_0x3c6961('0x9cb')]=_0x352ac0[_0x3c6961('0x24cc')](),_0x4035cd[_0x3c6961('0x25be')]=[],_0x4035cd[_0x3c6961('0x14e4')]='TOOLS.EDIT_INTERVAL',_0x4035cd[_0x3c6961('0x2630')]=angular[_0x3c6961('0x2669')](_0x5d5d3a),_0x4035cd[_0x3c6961('0xec5')]=_0xe344cd,_0x4035cd[_0x3c6961('0x1f7c')]=![],_0x4035cd['types']=[_0x3c6961('0xc8f'),_0x3c6961('0x1d56'),_0x3c6961('0x4b2')],_0x4035cd[_0x3c6961('0xe28')]=_0x5e9516,_0x4035cd[_0x3c6961('0x1eb8')]=_0x18387b[_0x3c6961('0xec1')](),_0x4035cd[_0x3c6961('0x323')]=_0x18387b[_0x3c6961('0x1383')](),_0x4035cd[_0x3c6961('0xfed')]=_0x18387b[_0x3c6961('0xc35')](),_0x4035cd[_0x3c6961('0x1d59')]=_0x18387b['getDaysOfMonth']();if(!_0x4035cd[_0x3c6961('0x2630')])_0x4035cd[_0x3c6961('0x2630')]={'interval':_0x3c6961('0x2191')},_0x4035cd[_0x3c6961('0x1d7')]=_0x3c6961('0xc8f'),_0x4035cd[_0x3c6961('0x14e4')]=_0x3c6961('0xbee'),_0x4035cd[_0x3c6961('0x1f7c')]=!![];else{if(_0x4035cd['interval'][_0x3c6961('0x2630')]!==_0x3c6961('0x2191')){_0x4035cd[_0x3c6961('0x1d7')]=_0x3c6961('0x1d56');const _0x55f43d=_0x4035cd[_0x3c6961('0x2630')][_0x3c6961('0x2630')][_0x3c6961('0x1497')](','),_0x379416=_0x55f43d[0x0],_0x211e3a=_0x55f43d[0x1],_0x1896b2=_0x55f43d[0x2],_0x84392a=_0x55f43d[0x3];if(_0x379416!=='*'){const _0x34e51b=_0x379416[_0x3c6961('0x1497')]('-')[0x0],_0xf79a17=_0x379416['split']('-')[0x1];let _0x1227c2;_0x1227c2=new Date(),_0x1227c2[_0x3c6961('0x26f3')](Number(_0x34e51b[_0x3c6961('0x1497')](':')[0x0])),_0x1227c2[_0x3c6961('0x18d')](Number(_0x34e51b[_0x3c6961('0x1497')](':')[0x1])),_0x4035cd[_0x3c6961('0x9c0')]=_0x1227c2,_0x1227c2=new Date(),_0x1227c2[_0x3c6961('0x26f3')](Number(_0xf79a17['split'](':')[0x0])),_0x1227c2[_0x3c6961('0x18d')](Number(_0xf79a17[_0x3c6961('0x1497')](':')[0x1])),_0x4035cd['timeRangeTo']=_0x1227c2;}_0x211e3a!=='*'&&(_0x4035cd[_0x3c6961('0x240c')]=_0x211e3a[_0x3c6961('0x1497')]('-')[0x0],_0x4035cd[_0x3c6961('0x6c2')]=_0x211e3a[_0x3c6961('0x1497')]('-')[0x1]),_0x1896b2!=='*'&&(_0x4035cd['monthDayFrom']=_0x1896b2['split']('-')[0x0],_0x4035cd[_0x3c6961('0x883')]=_0x1896b2[_0x3c6961('0x1497')]('-')[0x1]),_0x84392a!=='*'&&(_0x4035cd[_0x3c6961('0x1317')]=_0x84392a[_0x3c6961('0x1497')]('-')[0x0],_0x4035cd['monthTo']=_0x84392a[_0x3c6961('0x1497')]('-')[0x1]);}else _0x4035cd[_0x3c6961('0x1d7')]='always';}_0x3ecc65[_0x3c6961('0x4b9')]['id']&&!_0x4035cd['interval'][_0x3c6961('0x193')]&&(_0x4035cd[_0x3c6961('0x2630')]['IntervalId']=_0x3ecc65[_0x3c6961('0x4b9')]['id']);_0x4035cd[_0x3c6961('0x2630')]['IntervalId']&&_0x4035cd[_0x3c6961('0x2630')][_0x3c6961('0x193')]&&(_0x4035cd['type']=_0x3c6961('0x4b2'));_0x4035cd[_0x3c6961('0x267f')]=_0x1ec71,_0x4035cd['saveInterval']=_0x1bb009,_0x4035cd['closeDialog']=_0x3f9d7b;_0x4035cd[_0x3c6961('0x2630')]['application']&&(_0x352ac0['hasRole'](_0x3c6961('0xe23'))?_0x2034ff[_0x3c6961('0x2630')][_0x3c6961('0x1335')]({'fields':_0x3c6961('0x27dc'),'IntervalId':'null','nolimit':!![]})[_0x3c6961('0x1714')]['then'](function(_0x205ea1){const _0x3cda3f=_0x3c6961;_0x4035cd[_0x3cda3f('0xec5')]=_0x205ea1['rows']||[];})[_0x3c6961('0x1cb5')](function(_0x4b9087){const _0x155175=_0x3c6961;_0x1dfe7[_0x155175('0x5e8')]({'title':_0x4b9087['status']?_0x155175('0x15d1')+_0x4b9087[_0x155175('0x1b51')]+'\x20-\x20'+_0x4b9087[_0x155175('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x4b9087[_0x155175('0x11fc')]?JSON[_0x155175('0x1be0')](_0x4b9087[_0x155175('0x11fc')]):_0x4b9087['toString']()});}):_0x2034ff[_0x3c6961('0x2630')]['get']({'fields':_0x3c6961('0x27dc'),'IntervalId':_0x3c6961('0x954'),'nolimit':!![]})[_0x3c6961('0x1714')]['then'](function(_0x2b1b2b){const _0x2acbac=_0x3c6961;_0x4035cd[_0x2acbac('0xec5')]=_0x2b1b2b['rows']||[];})[_0x3c6961('0x2788')](function(){const _0x35f660=_0x3c6961;return _0x2034ff[_0x35f660('0xec9')][_0x35f660('0x1335')]({'userProfileId':_0x4035cd[_0x35f660('0x9cb')][_0x35f660('0x237f')],'sectionId':0x3ec})[_0x35f660('0x1714')];})[_0x3c6961('0x2788')](function(_0x2129f2){const _0x15adcf=_0x3c6961,_0x5eda0f=_0x2129f2&&_0x2129f2['rows']?_0x2129f2[_0x15adcf('0x25df')][0x0]:null;if(!_0x5eda0f)_0x4035cd[_0x15adcf('0xec5')]=[];else{if(!_0x5eda0f[_0x15adcf('0x1c0a')])return _0x2034ff[_0x15adcf('0x1050')][_0x15adcf('0x1335')]({'sectionId':_0x5eda0f['id']})['$promise'][_0x15adcf('0x2788')](function(_0x32dd49){const _0x56eab2=_0x15adcf,_0x5c4018=_0x32dd49&&_0x32dd49[_0x56eab2('0x25df')]?_0x32dd49[_0x56eab2('0x25df')]:[],_0x4421aa=[];let _0x1912e5=null;_0x4035cd[_0x56eab2('0x2630')]&&(_0x1912e5=_0x283545()[_0x56eab2('0x20e8')](_0x4035cd[_0x56eab2('0xec5')],{'name':_0x4035cd[_0x56eab2('0x2630')][_0x56eab2('0x20d0')]})),_0x1912e5&&!_0x283545()[_0x56eab2('0xc5d')](_0x5c4018,['resourceId',_0x1912e5['id']])&&_0x4035cd['intervals'][_0x56eab2('0x1534')](function(_0xdd36a5){const _0x42525a=_0x56eab2;_0xdd36a5['id']===_0x1912e5['id']&&(_0xdd36a5['canSelect']=![],_0x4421aa[_0x42525a('0x13e3')](_0xdd36a5));}),_0x4035cd[_0x56eab2('0xec5')]=_0x4421aa;});}})[_0x3c6961('0x1cb5')](function(_0x41b4c9){const _0xd8194a=_0x3c6961;_0x1dfe7[_0xd8194a('0x5e8')]({'title':_0x41b4c9[_0xd8194a('0x1b51')]?_0xd8194a('0x15d1')+_0x41b4c9['status']+_0xd8194a('0x1b0b')+_0x41b4c9[_0xd8194a('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x41b4c9[_0xd8194a('0x11fc')]?JSON[_0xd8194a('0x1be0')](_0x41b4c9[_0xd8194a('0x11fc')]):_0x41b4c9[_0xd8194a('0x17df')]()});}));function _0x8201cd(){const _0x2bce33=_0x3c6961;switch(_0x4035cd[_0x2bce33('0x1d7')]){case'always':case'list':return'*,*,*,*';case _0x2bce33('0x1d56'):{const _0x464400=[];if(_0x4035cd[_0x2bce33('0x9c0')]!=='*'&&_0x4035cd[_0x2bce33('0x9c0')]&&_0x4035cd[_0x2bce33('0x4a7')]){const _0x451bc1=(_0x4035cd[_0x2bce33('0x9c0')][_0x2bce33('0x130a')]()<0xa?'0':'')+_0x4035cd['timeRangeFrom'][_0x2bce33('0x130a')]()+':'+((_0x4035cd[_0x2bce33('0x9c0')][_0x2bce33('0x2649')]()<0xa?'0':'')+_0x4035cd[_0x2bce33('0x9c0')][_0x2bce33('0x2649')]()),_0x24ad85=(_0x4035cd[_0x2bce33('0x4a7')][_0x2bce33('0x130a')]()<0xa?'0':'')+_0x4035cd[_0x2bce33('0x4a7')][_0x2bce33('0x130a')]()+':'+((_0x4035cd[_0x2bce33('0x4a7')][_0x2bce33('0x2649')]()<0xa?'0':'')+_0x4035cd['timeRangeTo']['getMinutes']());_0x464400['push'](_0x451bc1+'-'+_0x24ad85);}else _0x464400['push']('*');return _0x4035cd[_0x2bce33('0x240c')]?_0x4035cd[_0x2bce33('0x6c2')]?_0x464400[_0x2bce33('0x13e3')](_0x4035cd[_0x2bce33('0x240c')]+'-'+_0x4035cd['dayOfWeekTo']):_0x464400['push'](_0x4035cd[_0x2bce33('0x240c')]):_0x464400[_0x2bce33('0x13e3')]('*'),_0x4035cd['monthDayFrom']?_0x4035cd[_0x2bce33('0x883')]?_0x464400[_0x2bce33('0x13e3')](_0x4035cd[_0x2bce33('0x1d91')]+'-'+_0x4035cd['monthDayTo']):_0x464400[_0x2bce33('0x13e3')](_0x4035cd[_0x2bce33('0x1d91')]):_0x464400['push']('*'),_0x4035cd[_0x2bce33('0x1317')]?_0x4035cd[_0x2bce33('0x3dc')]?_0x464400['push'](_0x4035cd['monthFrom']+'-'+_0x4035cd[_0x2bce33('0x3dc')]):_0x464400[_0x2bce33('0x13e3')](_0x4035cd[_0x2bce33('0x1317')]):_0x464400['push']('*'),_0x464400['join']();}}}function _0x1ec71(){const _0x1d4a4d=_0x3c6961;_0x4035cd[_0x1d4a4d('0x25be')]=[],_0x4035cd['interval'][_0x1d4a4d('0x2630')]=_0x8201cd(),_0x2034ff['interval'][_0x1d4a4d('0xbd0')](_0x4035cd[_0x1d4a4d('0x2630')])[_0x1d4a4d('0x1714')][_0x1d4a4d('0x2788')](function(_0x564b9d){const _0x216f7f=_0x1d4a4d;_0x4035cd['intervals'][_0x216f7f('0x13e3')](_0x564b9d),_0x1dfe7[_0x216f7f('0x173b')]({'title':_0x216f7f('0x1146'),'msg':_0x4035cd['interval']['name']?_0x4035cd[_0x216f7f('0x2630')][_0x216f7f('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x3f9d7b();})[_0x1d4a4d('0x1cb5')](function(_0x363672){const _0x2dde4c=_0x1d4a4d;console[_0x2dde4c('0x5e8')](_0x363672),_0x4035cd[_0x2dde4c('0x25be')]=_0x363672[_0x2dde4c('0x11fc')][_0x2dde4c('0x25be')]||[{'message':_0x363672[_0x2dde4c('0x17df')](),'type':_0x2dde4c('0x94a')}];});}function _0x1bb009(){const _0x3fab28=_0x3c6961;_0x4035cd[_0x3fab28('0x25be')]=[],_0x4035cd[_0x3fab28('0x2630')][_0x3fab28('0x2630')]=_0x8201cd(),_0x4035cd[_0x3fab28('0x2630')][_0x3fab28('0x193')]?(_0x4035cd[_0x3fab28('0x1d7')]!==_0x3fab28('0x4b2')&&(_0x4035cd[_0x3fab28('0x2630')][_0x3fab28('0x20d0')]=null),_0x3f9d7b(_0x4035cd[_0x3fab28('0x2630')])):_0x2034ff['interval'][_0x3fab28('0x2740')]({'id':_0x4035cd[_0x3fab28('0x2630')]['id']},_0x4035cd[_0x3fab28('0x2630')])['$promise']['then'](function(_0x206370){const _0x11736e=_0x3fab28,_0x47704f=_0x283545()[_0x11736e('0x20e8')](_0x4035cd[_0x11736e('0xec5')],{'id':_0x206370['id']});_0x47704f&&_0x283545()[_0x11736e('0x2503')](_0x47704f,_0x206370),_0x1dfe7['success']({'title':_0x11736e('0xd34'),'msg':_0x11736e('0x14f1')}),_0x3f9d7b();})[_0x3fab28('0x1cb5')](function(_0x456fcb){const _0x207224=_0x3fab28;console['error'](_0x456fcb),_0x4035cd[_0x207224('0x25be')]=_0x456fcb[_0x207224('0x11fc')][_0x207224('0x25be')]||[{'message':_0x456fcb[_0x207224('0x17df')](),'type':_0x207224('0xc2d')}];});}function _0x3f9d7b(_0x3368f3){const _0x969f41=_0x3c6961;_0x26071e[_0x969f41('0x19d')](_0x3368f3);}}const _0x463079=_0x8a2be;_0x9e914f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'smsAccountApp',_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x9e914f(_0x1fdc1f,_0x12770c,_0x1aa56f,_0x2d97b0,_0x3629ad,_0x2d107b,_0x1fd282,_0x112526){const _0x5c8897=_0x34e79e,_0x27b78e=this;_0x27b78e[_0x5c8897('0x9cb')]=_0x1fd282[_0x5c8897('0x24cc')](),_0x27b78e[_0x5c8897('0x25be')]=[],_0x27b78e['title']=_0x5c8897('0xb93')+(_0x2d97b0[_0x5c8897('0x167b')]||_0x2d97b0[_0x5c8897('0x8a5')])[_0x5c8897('0x25e6')](),_0x27b78e[_0x5c8897('0x18dd')]=angular['copy'](_0x2d97b0),_0x27b78e[_0x5c8897('0xe28')]=_0x112526,_0x27b78e[_0x5c8897('0x1193')]={};if(_0x27b78e['noop'][_0x5c8897('0xd6b')])switch(_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x167b')]?_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x167b')][_0x5c8897('0xc2e')]():_0x27b78e['noop']['app'][_0x5c8897('0xc2e')]()){case _0x5c8897('0x1d56'):break;case _0x5c8897('0x5e1'):{const _0x3b890e=_0x27b78e['noop'][_0x5c8897('0xd6b')][_0x5c8897('0x1497')](',');_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x234b')]=_0x3b890e[0x0],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x175b')]=_0x3b890e[0x1],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xf50')]=_0x3b890e[_0x5c8897('0x845')](0x2,_0x3b890e[_0x5c8897('0x2566')])['join'](',');}break;case _0x5c8897('0x137a'):{const _0x5caabf=_0x27b78e[_0x5c8897('0x18dd')]['appdata'][_0x5c8897('0x1497')](',');_0x27b78e[_0x5c8897('0x18dd')]['accesskeyid']=_0x5caabf[0x0],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x1b58')]=_0x5caabf[0x1],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xb70')]=_0x5caabf[0x2],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x4eb')]=_0x5caabf[0x3],_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xf50')]=_0x5caabf['slice'](0x4,_0x5caabf['length'])[_0x5c8897('0x185f')](',');}break;case'autoreply':{const _0x485bbb=_0x27b78e['noop'][_0x5c8897('0xd6b')][_0x5c8897('0x1497')](',');_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x5fd')]=isNaN(_0x485bbb[0x0])?_0x485bbb[0x0]:parseInt(_0x485bbb[0x0],0xa),_0x27b78e['noop'][_0x5c8897('0x16db')]=_0x485bbb['slice'](0x1,_0x485bbb['length'])[_0x5c8897('0x185f')](',');}break;case _0x5c8897('0x15e2'):_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x16db')]=_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xd6b')];break;case'set':_0x27b78e['noop'][_0x5c8897('0x1a8d')]=_0x27b78e['noop'][_0x5c8897('0xd6b')][_0x5c8897('0x1497')]('=')[0x0],_0x27b78e[_0x5c8897('0x18dd')]['value']=_0x27b78e['noop'][_0x5c8897('0xd6b')]['split']('=')[0x1];break;case'agi':_0x27b78e['noop'][_0x5c8897('0x1bf6')]=_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xd6b')];break;default:{const _0x37de18=_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0xd6b')][_0x5c8897('0x1497')](',');_0x27b78e[_0x5c8897('0x18dd')]['value']=_0x283545()[_0x5c8897('0x213d')](_0x37de18[0x0])?_0x37de18[0x0]:isNaN(_0x37de18[0x0])?_0x37de18[0x0]:parseInt(_0x37de18[0x0],0xa);}break;}else{}_0x27b78e['noop'][_0x5c8897('0x1d7')]&&_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x1d7')][_0x5c8897('0xc2e')]()==='outbound'&&_0x27b78e['noop']['appType']['toLowerCase']()===_0x5c8897('0x229c')&&(_0x27b78e[_0x5c8897('0x18dd')]['prefix']=_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x1224')]?_0x27b78e[_0x5c8897('0x18dd')][_0x5c8897('0x1224')][_0x5c8897('0x1497')]('$')[0x0]:undefined,_0x27b78e['noop'][_0x5c8897('0x2081')]=_0x27b78e[_0x5c8897('0x18dd')]['callerID']?_0x5c8897('0x1834')+_0x27b78e[_0x5c8897('0x18dd')]['callerID']:undefined);_0x27b78e[_0x5c8897('0x19d4')]=_0x1be929,_0x27b78e[_0x5c8897('0xca7')]=_0x11bd33;function _0x1be929(){const _0x4306ff=_0x5c8897;_0x27b78e['errors']=[];const _0x220b17=[];_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x1d7')]&&_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x1d7')][_0x4306ff('0xc2e')]()===_0x4306ff('0x1')&&_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x167b')]===_0x4306ff('0x25fb')&&(_0x27b78e[_0x4306ff('0x18dd')]['phone']=_0x3629ad[_0x4306ff('0x277c')]?(_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x1f71')]||'')+_0x4306ff('0x124d')+_0x3629ad[_0x4306ff('0x277c')]+'}':(_0x27b78e[_0x4306ff('0x18dd')]['prefix']||'')+_0x4306ff('0x1275'),_0x3629ad['recordingFormat']!==_0x4306ff('0x1dc')?_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x784')][_0x4306ff('0x821')](_0x4306ff('0x1609'))<0x0&&(_0x27b78e['noop'][_0x4306ff('0x784')]+=_0x4306ff('0x1609')):_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x784')]=_0x27b78e['noop'][_0x4306ff('0x784')][_0x4306ff('0x10a4')](_0x4306ff('0x1609'),''));if(_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x167b')]&&_0x27b78e['noop']['appType']===_0x4306ff('0x1d56')){}else switch((_0x27b78e['noop']['app']||_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x167b')])[_0x4306ff('0xc2e')]()){case _0x4306ff('0x3a6'):_0x27b78e['noop'][_0x4306ff('0xd6b')]=_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x1a8d')]+'='+_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x49')];break;case _0x4306ff('0x1d56'):break;default:_0x220b17[0x0]=_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0x49')],_0x27b78e[_0x4306ff('0x18dd')][_0x4306ff('0xd6b')]=_0x220b17[_0x4306ff('0x185f')](',');}_0x11bd33(_0x27b78e[_0x4306ff('0x18dd')]);}function _0x11bd33(_0x4216d5){const _0x3f46bb=_0x5c8897;_0x1fdc1f[_0x3f46bb('0x19d')](_0x4216d5);}}const _0x517f50=_0x9e914f;_0x2a265a[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),'smsAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2a265a(_0x449a3d,_0x297aa8,_0x251187,_0x239791,_0x560f22,_0x56ee30,_0xf81174,_0x2d85cf){const _0x4d0204=_0x34e79e,_0x2f3044=this;_0x2f3044[_0x4d0204('0x9cb')]=_0xf81174['getCurrentUser'](),_0x2f3044['errors']=[],_0x2f3044[_0x4d0204('0x14e4')]=_0x4d0204('0xb93')+(_0x239791[_0x4d0204('0x167b')]||_0x239791[_0x4d0204('0x8a5')])[_0x4d0204('0x25e6')](),_0x2f3044[_0x4d0204('0x1ab4')]=angular[_0x4d0204('0x2669')](_0x239791),_0x2f3044[_0x4d0204('0xe28')]=_0x2d85cf,_0x2f3044[_0x4d0204('0x1193')]={};if(_0x2f3044['queue'][_0x4d0204('0xd6b')])switch(_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x167b')]?_0x2f3044[_0x4d0204('0x1ab4')]['appType'][_0x4d0204('0xc2e')]():_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x8a5')][_0x4d0204('0xc2e')]()){case'custom':break;case'dialogflow':{const _0x373318=_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xd6b')][_0x4d0204('0x1497')](',');_0x2f3044['queue']['key']=_0x373318[0x0],_0x2f3044[_0x4d0204('0x1ab4')]['language']=_0x373318[0x1],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xf50')]=_0x373318[_0x4d0204('0x845')](0x2,_0x373318[_0x4d0204('0x2566')])[_0x4d0204('0x185f')](',');}break;case _0x4d0204('0x137a'):{const _0x2bf24a=_0x2f3044['queue']['appdata'][_0x4d0204('0x1497')](',');_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x27f2')]=_0x2bf24a[0x0],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1b58')]=_0x2bf24a[0x1],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xb70')]=_0x2bf24a[0x2],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x4eb')]=_0x2bf24a[0x3],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xf50')]=_0x2bf24a[_0x4d0204('0x845')](0x4,_0x2bf24a[_0x4d0204('0x2566')])[_0x4d0204('0x185f')](',');}break;case _0x4d0204('0x808'):{const _0x2b0f2d=_0x2f3044[_0x4d0204('0x1ab4')]['appdata']['split'](',');_0x2f3044[_0x4d0204('0x1ab4')]['times']=isNaN(_0x2b0f2d[0x0])?_0x2b0f2d[0x0]:parseInt(_0x2b0f2d[0x0],0xa),_0x2f3044['queue'][_0x4d0204('0x16db')]=_0x2b0f2d['slice'](0x1,_0x2b0f2d[_0x4d0204('0x2566')])[_0x4d0204('0x185f')](',');}break;case _0x4d0204('0x15e2'):_0x2f3044[_0x4d0204('0x1ab4')]['text']=_0x2f3044[_0x4d0204('0x1ab4')]['appdata'];break;case'set':_0x2f3044[_0x4d0204('0x1ab4')]['name']=_0x2f3044[_0x4d0204('0x1ab4')]['appdata'][_0x4d0204('0x1497')]('=')[0x0],_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x49')]=_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xd6b')][_0x4d0204('0x1497')]('=')[0x1];break;case'agi':_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1bf6')]=_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xd6b')];break;default:{const _0x126cee=_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0xd6b')][_0x4d0204('0x1497')](',');_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1ab4')]=_0x283545()[_0x4d0204('0x213d')](_0x126cee[0x0])?_0x126cee[0x0]:isNaN(_0x126cee[0x0])?_0x126cee[0x0]:parseInt(_0x126cee[0x0],0xa),_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x24e4')]=_0x283545()[_0x4d0204('0x213d')](_0x126cee[0x1])?_0x126cee[0x1]:isNaN(_0x126cee[0x1])?_0x126cee[0x1]:parseInt(_0x126cee[0x1],0xa);}break;}else _0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1ab4')]=0x12c,_0x2f3044['queue']['timeout']=0x12c;_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1d7')]&&_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1d7')][_0x4d0204('0xc2e')]()===_0x4d0204('0x1')&&_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x167b')][_0x4d0204('0xc2e')]()==='outbounddial'&&(_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1f71')]=_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1224')]?_0x2f3044[_0x4d0204('0x1ab4')][_0x4d0204('0x1224')][_0x4d0204('0x1497')]('$')[0x0]:undefined,_0x2f3044['queue'][_0x4d0204('0x2081')]=_0x2f3044['queue'][_0x4d0204('0x8de')]?_0x4d0204('0x1834')+_0x2f3044['queue'][_0x4d0204('0x8de')]:undefined);_0x2f3044[_0x4d0204('0x19d4')]=_0xe2d7c1,_0x2f3044[_0x4d0204('0xca7')]=_0x58b472,_0xf81174[_0x4d0204('0x1516')](_0x4d0204('0xe23'))?_0x56ee30[_0x4d0204('0x23cf')]['get']({'fields':_0x4d0204('0xafa'),'sort':_0x4d0204('0x1a8d'),'nolimit':_0x4d0204('0x1001')})[_0x4d0204('0x1714')][_0x4d0204('0x2788')](function(_0x1e8472){const _0x53de0f=_0x4d0204;_0x2f3044[_0x53de0f('0x283e')]=_0x1e8472[_0x53de0f('0x25df')]||[];})['catch'](function(_0x3b8899){const _0x5bda9e=_0x4d0204;_0x251187[_0x5bda9e('0x5e8')]({'title':_0x3b8899['status']?_0x5bda9e('0x15d1')+_0x3b8899['status']+_0x5bda9e('0x1b0b')+_0x3b8899[_0x5bda9e('0x22ce')]:_0x5bda9e('0x2763'),'msg':_0x3b8899[_0x5bda9e('0x11fc')]?JSON[_0x5bda9e('0x1be0')](_0x3b8899['data']):_0x3b8899[_0x5bda9e('0x17df')]()});}):_0x56ee30[_0x4d0204('0x23cf')][_0x4d0204('0x1335')]({'fields':_0x4d0204('0xafa'),'sort':_0x4d0204('0x1a8d'),'nolimit':_0x4d0204('0x1001')})['$promise'][_0x4d0204('0x2788')](function(_0x5742e3){const _0x39f2f4=_0x4d0204;_0x2f3044[_0x39f2f4('0x283e')]=_0x5742e3[_0x39f2f4('0x25df')]||[];})[_0x4d0204('0x2788')](function(){const _0x3a5c15=_0x4d0204;return _0x56ee30[_0x3a5c15('0xec9')]['get']({'userProfileId':_0x2f3044[_0x3a5c15('0x9cb')][_0x3a5c15('0x237f')],'sectionId':0x2bd})[_0x3a5c15('0x1714')];})['then'](function(_0x231ac4){const _0x2a3965=_0x4d0204,_0x19dead=_0x231ac4&&_0x231ac4[_0x2a3965('0x25df')]?_0x231ac4[_0x2a3965('0x25df')][0x0]:null;if(!_0x19dead){const _0x28ac84=[];let _0x3e4d72=null;_0x2f3044[_0x2a3965('0x1ab4')]&&(_0x3e4d72=_0x283545()['find'](_0x2f3044[_0x2a3965('0x283e')],{'name':_0x2f3044[_0x2a3965('0x1ab4')][_0x2a3965('0x1ab4')]}));for(let _0x4ea940=0x0;_0x4ea940<_0x2f3044[_0x2a3965('0x283e')][_0x2a3965('0x2566')];_0x4ea940++){_0x3e4d72&&_0x2f3044[_0x2a3965('0x283e')][_0x4ea940]['id']===_0x3e4d72['id']&&(_0x2f3044[_0x2a3965('0x283e')][_0x4ea940]['canSelect']=![],_0x28ac84['push'](_0x2f3044[_0x2a3965('0x283e')][_0x4ea940]));}_0x2f3044[_0x2a3965('0x283e')]=_0x28ac84;}else{if(!_0x19dead['autoAssociation'])return _0x56ee30[_0x2a3965('0x1050')][_0x2a3965('0x1335')]({'sectionId':_0x19dead['id']})['$promise'][_0x2a3965('0x2788')](function(_0x2d5662){const _0x36add1=_0x2a3965,_0x2ac9f5=_0x283545()[_0x36add1('0x155d')](_0x2d5662['rows'],function(_0x28a3da){const _0x214a93=_0x36add1;return _0x283545()[_0x214a93('0x20e8')](_0x2f3044[_0x214a93('0x283e')],{'id':_0x28a3da[_0x214a93('0x2707')]});});let _0x309bf5=null;_0x2f3044[_0x36add1('0x1ab4')]&&(_0x309bf5=_0x283545()[_0x36add1('0x20e8')](_0x2f3044[_0x36add1('0x283e')],{'name':_0x2f3044[_0x36add1('0x1ab4')]['queue']}));if(_0x309bf5&&!_0x283545()[_0x36add1('0xc5d')](_0x2ac9f5,['id',_0x309bf5['id']])){const _0x4a62d4=_0x283545()['find'](_0x2f3044['queues'],{'id':_0x309bf5['id']});_0x4a62d4[_0x36add1('0x3bf')]=![],_0x2ac9f5[_0x36add1('0x13e3')](_0x4a62d4);}_0x2f3044[_0x36add1('0x283e')]=_0x2ac9f5;});}})[_0x4d0204('0x1cb5')](function(_0xfae0d0){const _0xc273cc=_0x4d0204;_0x251187['error']({'title':_0xfae0d0[_0xc273cc('0x1b51')]?_0xc273cc('0x15d1')+_0xfae0d0[_0xc273cc('0x1b51')]+_0xc273cc('0x1b0b')+_0xfae0d0[_0xc273cc('0x22ce')]:_0xc273cc('0xb14'),'msg':_0xfae0d0[_0xc273cc('0x11fc')]?JSON[_0xc273cc('0x1be0')](_0xfae0d0[_0xc273cc('0x11fc')]):_0xfae0d0[_0xc273cc('0x17df')]()});});function _0xe2d7c1(){const _0x63dc3=_0x4d0204;_0x2f3044['errors']=[];const _0x180a24=[];_0x2f3044[_0x63dc3('0x1ab4')]['type']&&_0x2f3044[_0x63dc3('0x1ab4')]['type'][_0x63dc3('0xc2e')]()===_0x63dc3('0x1')&&_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x167b')]===_0x63dc3('0x25fb')&&(_0x2f3044['queue']['phone']=_0x560f22[_0x63dc3('0x277c')]?(_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x1f71')]||'')+_0x63dc3('0x124d')+_0x560f22[_0x63dc3('0x277c')]+'}':(_0x2f3044[_0x63dc3('0x1ab4')]['prefix']||'')+'${EXTEN}',_0x560f22[_0x63dc3('0x801')]!=='none'?_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x784')][_0x63dc3('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2f3044[_0x63dc3('0x1ab4')]['options']+='U(xcally-mixmonitor-context)'):_0x2f3044['queue'][_0x63dc3('0x784')]=_0x2f3044['queue'][_0x63dc3('0x784')][_0x63dc3('0x10a4')](_0x63dc3('0x1609'),''));const _0x283697=_0x283545()['find'](_0x2f3044['queues'],{'name':_0x2f3044['queue']['queue']});_0x283697&&(_0x2f3044[_0x63dc3('0x1ab4')][_0x283545()[_0x63dc3('0x1df5')](_0x63dc3('0x529'))+_0x63dc3('0xec4')]=_0x283697['id']);if(_0x2f3044['queue'][_0x63dc3('0x167b')]&&_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x167b')]==='custom'){}else switch((_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x8a5')]||_0x2f3044[_0x63dc3('0x1ab4')]['appType'])[_0x63dc3('0xc2e')]()){case _0x63dc3('0x3a6'):_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0xd6b')]=_0x2f3044['queue'][_0x63dc3('0x1a8d')]+'='+_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0x49')];break;case _0x63dc3('0x1d56'):break;default:_0x180a24[0x0]=_0x2f3044[_0x63dc3('0x1ab4')]['queue'],_0x180a24[0x1]=_0x2f3044['queue'][_0x63dc3('0x24e4')],_0x2f3044[_0x63dc3('0x1ab4')][_0x63dc3('0xd6b')]=_0x180a24[_0x63dc3('0x185f')](',');}_0x58b472(_0x2f3044[_0x63dc3('0x1ab4')]);}function _0x58b472(_0x2eb85f){const _0x1c332b=_0x4d0204;_0x449a3d[_0x1c332b('0x19d')](_0x2eb85f);}}const _0x59bdd0=_0x2a265a;_0x38e64f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x43a'),_0x34e79e('0x1cf0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x38e64f(_0x53e879,_0x45896d,_0xe113a0,_0x357afa,_0x5beff0,_0x195eb4,_0x1a6483,_0x2b2341){const _0x5d9663=_0x34e79e,_0x1ef60d=this;_0x1ef60d[_0x5d9663('0x9cb')]=_0x1a6483[_0x5d9663('0x24cc')](),_0x1ef60d[_0x5d9663('0x25be')]=[],_0x1ef60d[_0x5d9663('0x14e4')]=_0x5d9663('0xb93')+(_0x357afa[_0x5d9663('0x167b')]||_0x357afa[_0x5d9663('0x8a5')])[_0x5d9663('0x25e6')](),_0x1ef60d[_0x5d9663('0xe81')]=angular[_0x5d9663('0x2669')](_0x357afa),_0x1ef60d['crudPermissions']=_0x2b2341,_0x1ef60d[_0x5d9663('0x1193')]={};if(_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xd6b')])switch(_0x1ef60d['system'][_0x5d9663('0x167b')]?_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x167b')]['toLowerCase']():_0x1ef60d['system'][_0x5d9663('0x8a5')][_0x5d9663('0xc2e')]()){case _0x5d9663('0x1d56'):break;case _0x5d9663('0x5e1'):{const _0x20fa31=_0x1ef60d['system'][_0x5d9663('0xd6b')][_0x5d9663('0x1497')](',');_0x1ef60d['system'][_0x5d9663('0x234b')]=_0x20fa31[0x0],_0x1ef60d[_0x5d9663('0xe81')]['language']=_0x20fa31[0x1],_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xf50')]=_0x20fa31[_0x5d9663('0x845')](0x2,_0x20fa31['length'])[_0x5d9663('0x185f')](',');}break;case _0x5d9663('0x137a'):{const _0x2f33a7=_0x1ef60d['system'][_0x5d9663('0xd6b')][_0x5d9663('0x1497')](',');_0x1ef60d[_0x5d9663('0xe81')]['accesskeyid']=_0x2f33a7[0x0],_0x1ef60d[_0x5d9663('0xe81')]['secretaccesskey']=_0x2f33a7[0x1],_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xb70')]=_0x2f33a7[0x2],_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x4eb')]=_0x2f33a7[0x3],_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xf50')]=_0x2f33a7[_0x5d9663('0x845')](0x4,_0x2f33a7[_0x5d9663('0x2566')])['join'](',');}break;case _0x5d9663('0x808'):{const _0x57f320=_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xd6b')][_0x5d9663('0x1497')](',');_0x1ef60d[_0x5d9663('0xe81')]['times']=isNaN(_0x57f320[0x0])?_0x57f320[0x0]:parseInt(_0x57f320[0x0],0xa),_0x1ef60d['system'][_0x5d9663('0x16db')]=_0x57f320['slice'](0x1,_0x57f320[_0x5d9663('0x2566')])[_0x5d9663('0x185f')](',');}break;case'message':_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x16db')]=_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xd6b')];break;case _0x5d9663('0x3a6'):_0x1ef60d[_0x5d9663('0xe81')]['name']=_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xd6b')][_0x5d9663('0x1497')]('=')[0x0],_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x49')]=_0x1ef60d['system']['appdata'][_0x5d9663('0x1497')]('=')[0x1];break;case _0x5d9663('0x2631'):_0x1ef60d['system'][_0x5d9663('0x1bf6')]=_0x1ef60d['system']['appdata'];break;default:{const _0x544d62=_0x1ef60d[_0x5d9663('0xe81')]['appdata']['split'](',');_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x28d')]=_0x283545()[_0x5d9663('0x213d')](_0x544d62[0x0])?_0x544d62[0x0]:isNaN(_0x544d62[0x0])?_0x544d62[0x0]:parseInt(_0x544d62[0x0],0xa),_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xa72')]=_0x283545()['isEmpty'](_0x544d62[0x1])?_0x544d62[0x1]:isNaN(_0x544d62[0x1])?_0x544d62[0x1]:parseInt(_0x544d62[0x1],0xa);}break;}else _0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0xa72')]='';_0x1ef60d['system'][_0x5d9663('0x1d7')]&&_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x1d7')][_0x5d9663('0xc2e')]()===_0x5d9663('0x1')&&_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x167b')][_0x5d9663('0xc2e')]()==='outbounddial'&&(_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x1f71')]=_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x1224')]?_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x1224')][_0x5d9663('0x1497')]('$')[0x0]:undefined,_0x1ef60d[_0x5d9663('0xe81')]['callerId']=_0x1ef60d[_0x5d9663('0xe81')][_0x5d9663('0x8de')]?'CALLERID(all)='+_0x1ef60d[_0x5d9663('0xe81')]['callerID']:undefined);_0x1ef60d['saveSmsAccountApp']=_0x238ab6,_0x1ef60d[_0x5d9663('0xca7')]=_0x3234e9,_0x1a6483[_0x5d9663('0x1516')]('admin')?_0x195eb4[_0x5d9663('0xa72')][_0x5d9663('0x1335')]({'fields':'id,name','sort':'name','nolimit':_0x5d9663('0x1001')})[_0x5d9663('0x1714')]['then'](function(_0x33eda4){const _0x448cc8=_0x5d9663;_0x1ef60d[_0x448cc8('0xf76')]=_0x33eda4[_0x448cc8('0x25df')]||[];})[_0x5d9663('0x1cb5')](function(_0x545526){const _0x282970=_0x5d9663;_0xe113a0['error']({'title':_0x545526[_0x282970('0x1b51')]?_0x282970('0x15d1')+_0x545526[_0x282970('0x1b51')]+_0x282970('0x1b0b')+_0x545526['statusText']:_0x282970('0xe86'),'msg':_0x545526[_0x282970('0x11fc')]?JSON['stringify'](_0x545526[_0x282970('0x11fc')]):_0x545526['toString']()});}):_0x195eb4[_0x5d9663('0xa72')][_0x5d9663('0x1335')]({'fields':'id,name','sort':_0x5d9663('0x1a8d'),'nolimit':'true'})[_0x5d9663('0x1714')][_0x5d9663('0x2788')](function(_0x48016c){_0x1ef60d['variables']=_0x48016c['rows']||[];})[_0x5d9663('0x2788')](function(){const _0x2280c3=_0x5d9663;return _0x195eb4[_0x2280c3('0xec9')][_0x2280c3('0x1335')]({'userProfileId':_0x1ef60d['currentUser'][_0x2280c3('0x237f')],'sectionId':0x3f4})[_0x2280c3('0x1714')];})[_0x5d9663('0x2788')](function(_0x23d18a){const _0x3db71b=_0x5d9663,_0x20dbd7=_0x23d18a&&_0x23d18a[_0x3db71b('0x25df')]?_0x23d18a['rows'][0x0]:null;if(!_0x20dbd7){const _0x28d6ac=[];let _0x1b46b4=null;_0x1ef60d[_0x3db71b('0xe81')]&&(_0x1b46b4=_0x283545()[_0x3db71b('0x20e8')](_0x1ef60d[_0x3db71b('0xf76')],{'name':_0x1ef60d[_0x3db71b('0xe81')]['variable']}));for(let _0x52f801=0x0;_0x52f801<_0x1ef60d[_0x3db71b('0xf76')][_0x3db71b('0x2566')];_0x52f801++){_0x1b46b4&&_0x1ef60d[_0x3db71b('0xf76')][_0x52f801]['id']===_0x1b46b4['id']&&(_0x1ef60d[_0x3db71b('0xf76')][_0x52f801][_0x3db71b('0x3bf')]=![],_0x28d6ac[_0x3db71b('0x13e3')](_0x1ef60d[_0x3db71b('0xf76')][_0x52f801]));}_0x1ef60d[_0x3db71b('0xf76')]=_0x28d6ac;}else{if(!_0x20dbd7[_0x3db71b('0x1c0a')])return _0x195eb4[_0x3db71b('0x1050')][_0x3db71b('0x1335')]({'sectionId':_0x20dbd7['id']})[_0x3db71b('0x1714')]['then'](function(_0x1c072d){const _0x35d4cd=_0x3db71b,_0x2c0e9d=_0x283545()[_0x35d4cd('0x155d')](_0x1c072d[_0x35d4cd('0x25df')],function(_0x349591){const _0x17ca6f=_0x35d4cd;return _0x283545()['find'](_0x1ef60d[_0x17ca6f('0xf76')],{'id':_0x349591[_0x17ca6f('0x2707')]});});let _0x3b6834=null;_0x1ef60d[_0x35d4cd('0xe81')]&&(_0x3b6834=_0x283545()[_0x35d4cd('0x20e8')](_0x1ef60d[_0x35d4cd('0xf76')],{'name':_0x1ef60d[_0x35d4cd('0xe81')][_0x35d4cd('0xa72')]}));if(_0x3b6834&&!_0x283545()['some'](_0x2c0e9d,['id',_0x3b6834['id']])){const _0x5ca722=_0x283545()[_0x35d4cd('0x20e8')](_0x1ef60d[_0x35d4cd('0xf76')],{'id':_0x3b6834['id']});_0x5ca722[_0x35d4cd('0x3bf')]=![],_0x2c0e9d[_0x35d4cd('0x13e3')](_0x5ca722);}_0x1ef60d[_0x35d4cd('0xf76')]=_0x2c0e9d;});}})[_0x5d9663('0x1cb5')](function(_0x104830){const _0x293adb=_0x5d9663;_0xe113a0[_0x293adb('0x5e8')]({'title':_0x104830[_0x293adb('0x1b51')]?'API:'+_0x104830[_0x293adb('0x1b51')]+_0x293adb('0x1b0b')+_0x104830[_0x293adb('0x22ce')]:_0x293adb('0x1592'),'msg':_0x104830[_0x293adb('0x11fc')]?JSON[_0x293adb('0x1be0')](_0x104830[_0x293adb('0x11fc')]):_0x104830[_0x293adb('0x17df')]()});});function _0x238ab6(){const _0xaf9aa0=_0x5d9663;_0x1ef60d['errors']=[];const _0x3b6b3d=[];_0x1ef60d['system'][_0xaf9aa0('0x1d7')]&&_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x1d7')]['toLowerCase']()===_0xaf9aa0('0x1')&&_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x167b')]===_0xaf9aa0('0x25fb')&&(_0x1ef60d['system'][_0xaf9aa0('0x1224')]=_0x5beff0[_0xaf9aa0('0x277c')]?(_0x1ef60d['system'][_0xaf9aa0('0x1f71')]||'')+'${EXTEN:'+_0x5beff0['cutdigits']+'}':(_0x1ef60d[_0xaf9aa0('0xe81')]['prefix']||'')+_0xaf9aa0('0x1275'),_0x5beff0[_0xaf9aa0('0x801')]!==_0xaf9aa0('0x1dc')?_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x784')][_0xaf9aa0('0x821')](_0xaf9aa0('0x1609'))<0x0&&(_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x784')]+=_0xaf9aa0('0x1609')):_0x1ef60d['system']['options']=_0x1ef60d['system'][_0xaf9aa0('0x784')][_0xaf9aa0('0x10a4')](_0xaf9aa0('0x1609'),''));if(_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x167b')]&&_0x1ef60d['system'][_0xaf9aa0('0x167b')]===_0xaf9aa0('0x1d56')){}else switch((_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x8a5')]||_0x1ef60d[_0xaf9aa0('0xe81')]['appType'])['toLowerCase']()){case _0xaf9aa0('0x3a6'):_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0xd6b')]=_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x1a8d')]+'='+_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0x49')];break;case'custom':break;default:_0x3b6b3d[0x0]=_0x1ef60d[_0xaf9aa0('0xe81')]['command'],_0x3b6b3d[0x1]=_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0xa72')],_0x1ef60d[_0xaf9aa0('0xe81')][_0xaf9aa0('0xd6b')]=_0x3b6b3d[_0xaf9aa0('0x185f')](',');}_0x3234e9(_0x1ef60d[_0xaf9aa0('0xe81')]);}function _0x3234e9(_0x11066f){const _0x1cd267=_0x5d9663;_0x53e879[_0x1cd267('0x19d')](_0x11066f);}}const _0x3be974=_0x38e64f;_0x17ce92[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),'smsAccountApp',_0x34e79e('0x1cf0'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x17ce92(_0x207f27,_0x3a35a9,_0xff1044,_0xf49dff,_0x27e7d3,_0x5d0753,_0x474f31,_0x527741){const _0x28ea03=_0x34e79e,_0x13c81c=this;_0x13c81c['currentUser']=_0x474f31[_0x28ea03('0x24cc')](),_0x13c81c['errors']=[],_0x13c81c[_0x28ea03('0x14e4')]='SMS.EDIT_'+(_0xf49dff[_0x28ea03('0x167b')]||_0xf49dff['app'])[_0x28ea03('0x25e6')](),_0x13c81c[_0x28ea03('0x1764')]=angular['copy'](_0xf49dff),_0x13c81c[_0x28ea03('0xe28')]=_0x527741,_0x13c81c['hasModulePermissions']={};if(_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')])switch(_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x167b')]?_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x167b')][_0x28ea03('0xc2e')]():_0x13c81c[_0x28ea03('0x1764')]['app'][_0x28ea03('0xc2e')]()){case _0x28ea03('0x1d56'):break;case _0x28ea03('0x5e1'):{const _0x4adc0b=_0x13c81c['tag'][_0x28ea03('0xd6b')][_0x28ea03('0x1497')](',');_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x234b')]=_0x4adc0b[0x0],_0x13c81c[_0x28ea03('0x1764')]['language']=_0x4adc0b[0x1],_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xf50')]=_0x4adc0b[_0x28ea03('0x845')](0x2,_0x4adc0b[_0x28ea03('0x2566')])[_0x28ea03('0x185f')](',');}break;case _0x28ea03('0x137a'):{const _0xd662d9=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')][_0x28ea03('0x1497')](',');_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x27f2')]=_0xd662d9[0x0],_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1b58')]=_0xd662d9[0x1],_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xb70')]=_0xd662d9[0x2],_0x13c81c['tag']['botname']=_0xd662d9[0x3],_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xf50')]=_0xd662d9[_0x28ea03('0x845')](0x4,_0xd662d9[_0x28ea03('0x2566')])[_0x28ea03('0x185f')](',');}break;case _0x28ea03('0x808'):{const _0x25a549=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')][_0x28ea03('0x1497')](',');_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x5fd')]=isNaN(_0x25a549[0x0])?_0x25a549[0x0]:parseInt(_0x25a549[0x0],0xa),_0x13c81c['tag'][_0x28ea03('0x16db')]=_0x25a549['slice'](0x1,_0x25a549[_0x28ea03('0x2566')])['join'](',');}break;case _0x28ea03('0x15e2'):_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x16db')]=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')];break;case _0x28ea03('0x3a6'):_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1a8d')]=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')]['split']('=')[0x0],_0x13c81c['tag'][_0x28ea03('0x49')]=_0x13c81c['tag'][_0x28ea03('0xd6b')][_0x28ea03('0x1497')]('=')[0x1];break;case'agi':_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1bf6')]=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')];break;default:{const _0x4c6747=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0xd6b')][_0x28ea03('0x1497')](',');_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1764')]=_0x283545()[_0x28ea03('0x213d')](_0x4c6747[0x0])?_0x4c6747[0x0]:isNaN(_0x4c6747[0x0])?_0x4c6747[0x0]:parseInt(_0x4c6747[0x0],0xa);}break;}else{}_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1d7')]&&_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1d7')]['toLowerCase']()==='outbound'&&_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x167b')][_0x28ea03('0xc2e')]()===_0x28ea03('0x229c')&&(_0x13c81c['tag'][_0x28ea03('0x1f71')]=_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1224')]?_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x1224')][_0x28ea03('0x1497')]('$')[0x0]:undefined,_0x13c81c[_0x28ea03('0x1764')][_0x28ea03('0x2081')]=_0x13c81c[_0x28ea03('0x1764')]['callerID']?'CALLERID(all)='+_0x13c81c['tag'][_0x28ea03('0x8de')]:undefined);_0x13c81c[_0x28ea03('0x19d4')]=_0x249511,_0x13c81c[_0x28ea03('0xca7')]=_0x5aeeb8,_0x474f31[_0x28ea03('0x1516')](_0x28ea03('0xe23'))?_0x5d0753[_0x28ea03('0x1764')][_0x28ea03('0x1335')]({'fields':_0x28ea03('0x1338'),'sort':'name','nolimit':_0x28ea03('0x1001')})[_0x28ea03('0x1714')][_0x28ea03('0x2788')](function(_0x4786fc){const _0x9c9bd6=_0x28ea03;_0x13c81c[_0x9c9bd6('0xe45')]=_0x4786fc[_0x9c9bd6('0x25df')]||[];})['catch'](function(_0x3873ee){const _0x2492be=_0x28ea03;_0xff1044[_0x2492be('0x5e8')]({'title':_0x3873ee['status']?_0x2492be('0x15d1')+_0x3873ee[_0x2492be('0x1b51')]+_0x2492be('0x1b0b')+_0x3873ee[_0x2492be('0x22ce')]:_0x2492be('0x270'),'msg':_0x3873ee[_0x2492be('0x11fc')]?JSON[_0x2492be('0x1be0')](_0x3873ee[_0x2492be('0x11fc')]):_0x3873ee[_0x2492be('0x17df')]()});}):_0x5d0753[_0x28ea03('0x1764')]['get']({'fields':'id,name','sort':_0x28ea03('0x1a8d'),'nolimit':_0x28ea03('0x1001')})[_0x28ea03('0x1714')][_0x28ea03('0x2788')](function(_0x38cd86){const _0x6a342f=_0x28ea03;_0x13c81c[_0x6a342f('0xe45')]=_0x38cd86[_0x6a342f('0x25df')]||[];})[_0x28ea03('0x2788')](function(){const _0x28eaae=_0x28ea03;return _0x5d0753[_0x28eaae('0xec9')][_0x28eaae('0x1335')]({'userProfileId':_0x13c81c[_0x28eaae('0x9cb')][_0x28eaae('0x237f')],'sectionId':0x3f0})[_0x28eaae('0x1714')];})[_0x28ea03('0x2788')](function(_0x562344){const _0x5679bf=_0x28ea03,_0x177bf9=_0x562344&&_0x562344['rows']?_0x562344[_0x5679bf('0x25df')][0x0]:null;if(!_0x177bf9){const _0xad882e=[];let _0x16aac7=null;_0x13c81c[_0x5679bf('0x1764')]&&(_0x16aac7=_0x283545()[_0x5679bf('0x20e8')](_0x13c81c[_0x5679bf('0xe45')],{'name':_0x13c81c[_0x5679bf('0x1764')][_0x5679bf('0x1764')]}));for(let _0x1697b0=0x0;_0x1697b0<_0x13c81c['tags']['length'];_0x1697b0++){_0x16aac7&&_0x13c81c[_0x5679bf('0xe45')][_0x1697b0]['id']===_0x16aac7['id']&&(_0x13c81c[_0x5679bf('0xe45')][_0x1697b0][_0x5679bf('0x3bf')]=![],_0xad882e[_0x5679bf('0x13e3')](_0x13c81c[_0x5679bf('0xe45')][_0x1697b0]));}_0x13c81c['tags']=_0xad882e;}else{if(!_0x177bf9[_0x5679bf('0x1c0a')])return _0x5d0753['userProfileResource'][_0x5679bf('0x1335')]({'sectionId':_0x177bf9['id']})['$promise'][_0x5679bf('0x2788')](function(_0x49f3ac){const _0x3caa30=_0x5679bf,_0x2310f3=_0x283545()[_0x3caa30('0x155d')](_0x49f3ac[_0x3caa30('0x25df')],function(_0x58e242){const _0x560ef3=_0x3caa30;return _0x283545()[_0x560ef3('0x20e8')](_0x13c81c[_0x560ef3('0xe45')],{'id':_0x58e242[_0x560ef3('0x2707')]});});let _0x537b7a=null;_0x13c81c[_0x3caa30('0x1764')]&&(_0x537b7a=_0x283545()['find'](_0x13c81c['tags'],{'name':_0x13c81c[_0x3caa30('0x1764')][_0x3caa30('0x1764')]}));if(_0x537b7a&&!_0x283545()[_0x3caa30('0xc5d')](_0x2310f3,['id',_0x537b7a['id']])){const _0x1edeb2=_0x283545()[_0x3caa30('0x20e8')](_0x13c81c['tags'],{'id':_0x537b7a['id']});_0x1edeb2['canSelect']=![],_0x2310f3[_0x3caa30('0x13e3')](_0x1edeb2);}_0x13c81c[_0x3caa30('0xe45')]=_0x2310f3;});}})[_0x28ea03('0x1cb5')](function(_0x1b3b72){const _0x2ed4eb=_0x28ea03;_0xff1044[_0x2ed4eb('0x5e8')]({'title':_0x1b3b72[_0x2ed4eb('0x1b51')]?_0x2ed4eb('0x15d1')+_0x1b3b72[_0x2ed4eb('0x1b51')]+_0x2ed4eb('0x1b0b')+_0x1b3b72[_0x2ed4eb('0x22ce')]:_0x2ed4eb('0x1470'),'msg':_0x1b3b72[_0x2ed4eb('0x11fc')]?JSON[_0x2ed4eb('0x1be0')](_0x1b3b72[_0x2ed4eb('0x11fc')]):_0x1b3b72[_0x2ed4eb('0x17df')]()});});function _0x249511(){const _0x26c2b1=_0x28ea03;_0x13c81c[_0x26c2b1('0x25be')]=[];const _0x30bb00=[];_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1d7')]&&_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1d7')]['toLowerCase']()==='outbound'&&_0x13c81c['tag'][_0x26c2b1('0x167b')]===_0x26c2b1('0x25fb')&&(_0x13c81c['tag']['phone']=_0x27e7d3[_0x26c2b1('0x277c')]?(_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1f71')]||'')+'${EXTEN:'+_0x27e7d3['cutdigits']+'}':(_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1f71')]||'')+_0x26c2b1('0x1275'),_0x27e7d3[_0x26c2b1('0x801')]!=='none'?_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x784')][_0x26c2b1('0x821')](_0x26c2b1('0x1609'))<0x0&&(_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x784')]+='U(xcally-mixmonitor-context)'):_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x784')]=_0x13c81c[_0x26c2b1('0x1764')]['options'][_0x26c2b1('0x10a4')]('U(xcally-mixmonitor-context)',''));const _0xb78371=_0x283545()[_0x26c2b1('0x20e8')](_0x13c81c[_0x26c2b1('0xe45')],{'name':_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1764')]});_0xb78371&&(_0x13c81c['tag']['TagId']=_0xb78371['id']);if(_0x13c81c['tag'][_0x26c2b1('0x167b')]&&_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x167b')]===_0x26c2b1('0x1d56')){}else switch((_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x8a5')]||_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x167b')])[_0x26c2b1('0xc2e')]()){case'set':_0x13c81c['tag'][_0x26c2b1('0xd6b')]=_0x13c81c[_0x26c2b1('0x1764')]['name']+'='+_0x13c81c[_0x26c2b1('0x1764')]['value'];break;case _0x26c2b1('0x1d56'):break;default:_0x30bb00[0x0]=_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0x1764')],_0x13c81c[_0x26c2b1('0x1764')][_0x26c2b1('0xd6b')]=_0x30bb00[_0x26c2b1('0x185f')](',');}_0x5aeeb8(_0x13c81c['tag']);}function _0x5aeeb8(_0x72c8e6){const _0x3fe0ed=_0x28ea03;_0x207f27[_0x3fe0ed('0x19d')](_0x72c8e6);}}const _0x343516=_0x17ce92;_0x2622a1[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),'$state','$q','$translate','$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'Auth'];function _0x2622a1(_0x2710da,_0x316598,_0x202e43,_0x12030e,_0x4b6ada,_0x2f7b6e,_0x54b56e,_0x995d90,_0x56b45a,_0x538559,_0x105f41){const _0x11d68c=_0x34e79e,_0x1175f6=this;_0x1175f6[_0x11d68c('0x9cb')]=_0x105f41[_0x11d68c('0x24cc')](),_0x1175f6[_0x11d68c('0x1cf0')]={},_0x1175f6[_0x11d68c('0x1e83')]={'count':0x0,'rows':[]},_0x1175f6[_0x11d68c('0x2523')]=[],_0x1175f6[_0x11d68c('0xe28')],_0x1175f6['query']={'read':_0x11d68c('0x954'),'closed':_0x11d68c('0x954'),'sort':_0x11d68c('0x34b'),'includeAll':_0x11d68c('0x1001'),'limit':0xa,'page':0x1},_0x1175f6[_0x11d68c('0x24eb')]=_0x1c8ebd,_0x1175f6[_0x11d68c('0x16a')]=_0x5af598,_0x1175f6[_0x11d68c('0x21e')]=_0x567a6a,_0x1175f6[_0x11d68c('0x173b')]=_0x4e8593,_0x1175f6['getSmsAccountInteractions']=_0x56693b,_0x1175f6[_0x11d68c('0xf39')]=_0x2657b0,_0x1175f6[_0x11d68c('0x27c6')]=_0x1e5930,_0x1175f6['exportSelectedSmsAccountInteractions']=_0x3a7350,_0x1175f6[_0x11d68c('0x176e')]=_0x184244,_0x1175f6[_0x11d68c('0x1eaf')]=_0x1aee88;function _0x1c8ebd(_0x3b6fbc,_0x49b1fd){const _0x10f851=_0x11d68c;_0x1175f6[_0x10f851('0x1cf0')]=_0x3b6fbc,_0x1175f6[_0x10f851('0xe28')]=typeof _0x49b1fd!=='undefined'?_0x49b1fd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1175f6[_0x10f851('0x135a')][_0x10f851('0xcba')]=_0x1175f6[_0x10f851('0x1cf0')]['id'],_0x1175f6[_0x10f851('0x1e13')]={'fields':_0x20dd6c()},_0x2c580b();}function _0x2c580b(){const _0xf85d3d=_0x11d68c;return _0x538559[_0xf85d3d('0x1764')][_0xf85d3d('0x1335')]()[_0xf85d3d('0x1714')]['then'](function(_0x367ad2){const _0x2427d3=_0xf85d3d;_0x1175f6[_0x2427d3('0xe45')]=_0x367ad2||{'count':0x0,'rows':[]};})[_0xf85d3d('0x2788')](function(){const _0x2c7e67=_0xf85d3d;_0x1175f6[_0x2c7e67('0xa28')]=_0x27ca22();});}function _0x27ca22(){const _0x4afb9d=_0x11d68c;return[{'name':_0x4afb9d('0x9ac'),'key':_0x4afb9d('0x172'),'type':_0x4afb9d('0x1012'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x4afb9d('0x1f77'),'key':'read','type':_0x4afb9d('0x983'),'label':_0x4afb9d('0xb0b'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x4afb9d('0xc79')}]},{'name':_0x4afb9d('0x21d8'),'key':_0x4afb9d('0x215d'),'type':_0x4afb9d('0x983'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x4afb9d('0xd6c')},{'value':0x1,'translate':_0x4afb9d('0x977')},{'value':null,'translate':_0x4afb9d('0xc79')}]},{'name':_0x4afb9d('0x262d'),'key':_0x4afb9d('0x3bb'),'type':'select','label':_0x4afb9d('0x2bd'),'customOptions':[{'value':_0x4afb9d('0x954'),'translate':_0x4afb9d('0xce3')},{'value':undefined,'translate':_0x4afb9d('0xc79')}]},{'name':_0x4afb9d('0x251d'),'key':'tag','type':_0x4afb9d('0x9a4'),'label':_0x4afb9d('0xa54'),'options':_0x1175f6['tags'][_0x4afb9d('0x25df')],'placeholder':_0x4afb9d('0x263')}];}function _0x20dd6c(){const _0x56813b=_0x11d68c;return[{'name':'Id','column':'id','type':_0x56813b('0x272c')},{'name':_0x56813b('0x1c64'),'column':'Contact','type':_0x56813b('0x137e'),'options':{'searchFields':[_0x56813b('0x26da'),'lastName',_0x56813b('0x2436')],'route':{'model':_0x56813b('0xa83'),'action':_0x56813b('0x1335'),'params':{'fields':_0x56813b('0x1373'),'Contact':_0x56813b('0x20bf'),'nolimit':!![]}},'extraOperators':[_0x56813b('0x1a77')],'excludedOperators':[_0x56813b('0x149c')]}},{'name':'Subject','column':'subject','type':_0x56813b('0x16db'),'options':{'excludedOperators':[_0x56813b('0x1ff9'),'$ne']}},{'name':_0x56813b('0x1e8f'),'column':'plainBody','type':'text','options':{'excludedOperators':[_0x56813b('0x1ff9'),'$ne']}},{'name':_0x56813b('0x21d8'),'column':_0x56813b('0x215d'),'type':'select','values':[{'id':0x0,'translate':_0x56813b('0xd6c')},{'id':0x1,'translate':_0x56813b('0x977')}],'options':{'excludedOperators':[_0x56813b('0x149c')]}},{'name':'Agent','column':_0x56813b('0x1832'),'type':_0x56813b('0x137e'),'options':{'table':'i','route':{'model':_0x56813b('0x1e6a'),'action':_0x56813b('0x1335'),'params':{'role':'agent','fields':_0x56813b('0x10fe'),'nolimit':!![]}},'searchFields':[_0x56813b('0x2831'),_0x56813b('0x1a8d')],'extraOperators':[_0x56813b('0x1a77')],'excludedOperators':[_0x56813b('0x149c')]}},{'name':_0x56813b('0xbcf'),'column':_0x56813b('0x251d'),'type':'multiselect','options':{'route':{'model':_0x56813b('0x1764'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x56813b('0x38b')]}},{'name':_0x56813b('0x9ac'),'column':_0x56813b('0x172'),'type':_0x56813b('0x1012'),'options':{'excludedOperators':['$ne']}},{'name':_0x56813b('0x27d7'),'column':_0x56813b('0xecd'),'type':_0x56813b('0x983'),'values':[{'id':0x1,'translate':_0x56813b('0x204a')},{'id':0x0,'translate':_0x56813b('0xe54')}],'options':{'excludedOperators':[_0x56813b('0x149c')]}}];}function _0x1e5930(){const _0x2445da=_0x11d68c;_0x54b56e[_0x2445da('0x2fa')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x2445da('0x16b1')](_0x995d90[_0x2445da('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0x1175f6[_0x2445da('0x1e13')]['fields'],'color':undefined,'storagePath':'sms.smsAccounts'},'fullscreen':!![]})['then'](function(_0x5efb00){const _0x498da7=_0x2445da;_0x1175f6[_0x498da7('0x135a')][_0x498da7('0x470')]=_0x5efb00===![]?undefined:_0x5efb00;if(_0x1175f6['query']['search'])_0x56693b();else _0x5efb00===![]&&_0x56693b();})[_0x2445da('0x1cb5')](function(_0x19a93b){const _0x19b490=_0x2445da;_0x56b45a[_0x19b490('0x5e8')]({'title':'ERROR','msg':_0x19a93b[_0x19b490('0x11fc')]?JSON[_0x19b490('0x1be0')](_0x19a93b[_0x19b490('0x11fc')][_0x19b490('0x15e2')]):_0x19a93b['toString']()});});}function _0x567a6a(_0x4f5090,_0x509694,_0x2c78b9){const _0x5784dc=_0x11d68c;return _0x538559['smsInteraction'][_0x5784dc('0x1486')]({'id':_0x4f5090['id'],'exists':!![],'attachments':_0x2c78b9})[_0x5784dc('0x1714')]['then'](function(_0x518caa){const _0x4f18d8=_0x5784dc,_0x233b47=[_0x518caa[_0x4f18d8('0x3f1')]];let _0x25d8c1='interaction'+_0x4f5090['id'];const _0x29b3a0=new Blob(_0x233b47,{'type':_0x518caa[_0x4f18d8('0x1d7')]});_0x25d8c1='sms-interaction'+_0x4f5090['id']+_0x4f18d8('0xfdb');const _0x1295c7=window[_0x4f18d8('0x11c4')][_0x4f18d8('0x1ae6')]('a');_0x1295c7['setAttribute']('href',URL[_0x4f18d8('0x1b0d')](_0x29b3a0)),_0x1295c7[_0x4f18d8('0x1c6b')](_0x4f18d8('0x1486'),_0x25d8c1),document['body'][_0x4f18d8('0xcbf')](_0x1295c7),_0x1295c7[_0x4f18d8('0x132a')]();})[_0x5784dc('0x1cb5')](function(_0x20c4a8){const _0x5ef04c=_0x5784dc;if(_0x20c4a8[_0x5ef04c('0x11fc')]&&_0x20c4a8['data'][_0x5ef04c('0x25be')]&&_0x20c4a8[_0x5ef04c('0x11fc')][_0x5ef04c('0x25be')][_0x5ef04c('0x2566')])for(let _0x2852e9=0x0;_0x2852e9<_0x20c4a8['data'][_0x5ef04c('0x25be')][_0x5ef04c('0x2566')];_0x2852e9+=0x1){_0x56b45a[_0x5ef04c('0x5e8')]({'title':_0x20c4a8['data'][_0x5ef04c('0x25be')][_0x2852e9][_0x5ef04c('0x1d7')],'msg':_0x20c4a8['data']['errors'][_0x2852e9][_0x5ef04c('0x15e2')]});}else _0x56b45a['error']({'title':_0x20c4a8[_0x5ef04c('0x1b51')]?'API:'+_0x20c4a8[_0x5ef04c('0x1b51')]+'\x20-\x20'+_0x20c4a8[_0x5ef04c('0x22ce')]:_0x5ef04c('0x238f'),'msg':_0x20c4a8[_0x5ef04c('0x11fc')]?JSON[_0x5ef04c('0x1be0')](_0x20c4a8[_0x5ef04c('0x11fc')][_0x5ef04c('0x15e2')]):_0x20c4a8[_0x5ef04c('0x17df')]()});});}function _0x5af598(_0xcc42f3,_0x5f11df){const _0x140af5=_0x11d68c,_0x3c6093=_0x54b56e[_0x140af5('0x112e')]()[_0x140af5('0x14e4')](_0x140af5('0x20be'))[_0x140af5('0x93e')](''+(_0xcc42f3['name']||_0xcc42f3['id']&&_0x283545()['upperFirst']('interaction\x20#')+_0xcc42f3['id']||_0x140af5('0xd61'))+_0x140af5('0x229e')+_0x140af5('0x27c7'))[_0x140af5('0x10bc')](_0x140af5('0xa98'))['targetEvent'](_0x5f11df)['ok']('OK')['cancel'](_0x140af5('0x1d8d'));_0x54b56e[_0x140af5('0x2fa')](_0x3c6093)[_0x140af5('0x2788')](function(){_0x184244(_0xcc42f3);},function(){const _0x5b0281=_0x140af5;console[_0x5b0281('0x10df')]('CANCEL');});}function _0x4e8593(_0x596a6d){const _0x3bb7b0=_0x11d68c;_0x1175f6[_0x3bb7b0('0x1e83')]=_0x596a6d||{'count':0x0,'rows':[]};for(let _0x148ffe=0x0;_0x148ffe<_0x1175f6['smsAccountInteractions'][_0x3bb7b0('0x25df')][_0x3bb7b0('0x2566')];_0x148ffe+=0x1){const _0x61cecb=_0x1175f6[_0x3bb7b0('0x1e83')]['rows'][_0x148ffe];_0x346194(_0x61cecb),_0x61cecb['Owner'][_0x3bb7b0('0x1a8d')]=_0x58f273(_0x61cecb);}}function _0x56693b(){const _0x385fad=_0x11d68c;_0x1175f6[_0x385fad('0x135a')][_0x385fad('0x19e')]=(_0x1175f6[_0x385fad('0x135a')][_0x385fad('0x23f5')]-0x1)*_0x1175f6[_0x385fad('0x135a')][_0x385fad('0x68e')],_0x1175f6[_0x385fad('0x1808')]=_0x538559[_0x385fad('0x1990')]['get'](_0x1175f6[_0x385fad('0x135a')],_0x4e8593)[_0x385fad('0x1714')];}function _0x2657b0(_0x4fc36c,_0x9983){const _0xdf8496=_0x11d68c;_0x54b56e[_0xdf8496('0x2fa')]({'controller':_0xdf8496('0xcd'),'controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular['element'](_0x995d90['body']),'targetEvent':_0x4fc36c,'clickOutsideToClose':!![],'onShowing':function(_0x4de28c){const _0x382818=_0xdf8496;_0x4de28c['vm'][_0x382818('0x24eb')]({'id':0x1,'channel':_0x382818('0x529'),'interaction':_0x9983,'spy':!![]},_0x316598[_0x382818('0x7d0')]['vm'][_0x382818('0x1af0')]);}});}function _0x184244(_0x28875c){const _0xd43780=_0x11d68c;_0x538559[_0xd43780('0x1990')][_0xd43780('0x17c4')]({'id':_0x28875c['id']})[_0xd43780('0x1714')][_0xd43780('0x2788')](function(){const _0x18db54=_0xd43780;_0x283545()[_0x18db54('0x1a90')](_0x1175f6[_0x18db54('0x1e83')][_0x18db54('0x25df')],{'id':_0x28875c['id']}),_0x1175f6[_0x18db54('0x1e83')][_0x18db54('0x338')]-=0x1,!_0x1175f6[_0x18db54('0x1e83')][_0x18db54('0x25df')][_0x18db54('0x2566')]&&_0x56693b(),_0x56b45a[_0x18db54('0x173b')]({'title':_0x18db54('0xb73'),'msg':_0x28875c[_0x18db54('0x1a8d')]?_0x28875c[_0x18db54('0x1a8d')]+_0x18db54('0x14d4'):''});})[_0xd43780('0x1cb5')](function(_0x4b71a7){const _0x52f0cd=_0xd43780;if(_0x4b71a7[_0x52f0cd('0x11fc')]&&_0x4b71a7[_0x52f0cd('0x11fc')]['errors']&&_0x4b71a7[_0x52f0cd('0x11fc')][_0x52f0cd('0x25be')]['length']){_0x1175f6['errors']=_0x4b71a7['data']['errors']||[{'message':_0x4b71a7[_0x52f0cd('0x17df')](),'type':_0x52f0cd('0x1ae5')}];for(let _0xeebb93=0x0;_0xeebb93<_0x4b71a7[_0x52f0cd('0x11fc')]['errors']['length'];_0xeebb93++){_0x56b45a['error']({'title':_0x4b71a7[_0x52f0cd('0x11fc')][_0x52f0cd('0x25be')][_0xeebb93]['type'],'msg':_0x4b71a7['data']['errors'][_0xeebb93][_0x52f0cd('0x15e2')]});}}else _0x56b45a['error']({'title':_0x4b71a7[_0x52f0cd('0x1b51')]?_0x52f0cd('0x15d1')+_0x4b71a7[_0x52f0cd('0x1b51')]+_0x52f0cd('0x1b0b')+_0x4b71a7[_0x52f0cd('0x22ce')]:'SYSTEM:GETsmsAccount','msg':_0x4b71a7[_0x52f0cd('0x11fc')]?JSON[_0x52f0cd('0x1be0')](_0x4b71a7[_0x52f0cd('0x11fc')][_0x52f0cd('0x15e2')]):_0x4b71a7[_0x52f0cd('0x15e2')]||_0x4b71a7[_0x52f0cd('0x17df')]()});});}function _0x3a7350(){const _0x3aad26=_0x11d68c,_0x346fd0=angular[_0x3aad26('0x2669')](_0x1175f6[_0x3aad26('0x2523')]);return _0x1175f6[_0x3aad26('0x2523')]=[],_0x346fd0;}function _0x1aee88(_0x1adce9){const _0x4b5453=_0x11d68c,_0x2c0a8a=_0x54b56e['confirm']()[_0x4b5453('0x14e4')](_0x4b5453('0x1ff'))['htmlContent'](_0x4b5453('0x1670')+_0x1175f6[_0x4b5453('0x2523')]['length']+_0x4b5453('0xbd')+_0x4b5453('0x27c7'))['ariaLabel']('delete\x20interactions')['targetEvent'](_0x1adce9)['ok']('OK')[_0x4b5453('0x1801')]('CANCEL');_0x54b56e[_0x4b5453('0x2fa')](_0x2c0a8a)[_0x4b5453('0x2788')](function(){const _0x209d9b=_0x4b5453;_0x1175f6['selectedSmsAccountInteractions'][_0x209d9b('0x1534')](function(_0xea682){_0x184244(_0xea682);}),_0x1175f6['selectedSmsAccountInteractions']=[];});}function _0x346194(_0x42e30f){const _0x172be2=_0x11d68c;_0x42e30f[_0x172be2('0x1c64')]?(_0x42e30f[_0x172be2('0x497')]=(_0x42e30f[_0x172be2('0x1c64')][_0x172be2('0x26da')]||'')+'\x20'+(_0x42e30f[_0x172be2('0x1c64')]['lastName']||''),_0x42e30f[_0x172be2('0x1aba')]=_0x42e30f[_0x172be2('0x1c64')]['mobile']):_0x42e30f[_0x172be2('0x497')]=_0x4b6ada['instant'](_0x172be2('0x2185'));}function _0x58f273(_0x1c1132){const _0x30b3d5=_0x11d68c;if(_0x1c1132[_0x30b3d5('0x3bb')])return _0x1c1132[_0x30b3d5('0x3bb')]===_0x1175f6[_0x30b3d5('0x9cb')]['id']?_0x4b6ada[_0x30b3d5('0x1b11')](_0x30b3d5('0x3a8')):_0x1c1132[_0x30b3d5('0xe42')]['fullname']+'\x20<'+_0x1c1132['Owner'][_0x30b3d5('0x2838')]+'>';return _0x4b6ada[_0x30b3d5('0x1b11')](_0x30b3d5('0xce3'));}let _0x3c5f71=!![],_0x204d23=0x1;_0x316598[_0x11d68c('0x1662')]('vm_dc.query.filter',function(_0x35997c,_0x176737){const _0x1f3485=_0x11d68c;_0x3c5f71?_0x2f7b6e(function(){_0x3c5f71=![];}):(!_0x176737&&(_0x204d23=_0x1175f6[_0x1f3485('0x135a')]['page']),_0x35997c!==_0x176737&&(_0x1175f6[_0x1f3485('0x135a')]['page']=0x1),!_0x35997c&&(_0x1175f6['query']['page']=_0x204d23),_0x56693b());});}const _0x5082d8=_0x2622a1,_0x8cafce=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html';_0x3f6679[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty',_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x3f6679(_0x1644ed,_0x52cf13,_0xe1be84,_0x122364,_0x3b889e,_0x58df58,_0x2261f6,_0x2e2f3b,_0x2b2367,_0x5f2110,_0x16fa58){const _0x28b487=_0x34e79e,_0x31cede=this;_0x31cede[_0x28b487('0x9cb')]=_0x16fa58[_0x28b487('0x24cc')](),_0x31cede[_0x28b487('0x1cf0')]={},_0x31cede['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x31cede[_0x28b487('0x650')]=[],_0x31cede[_0x28b487('0xe28')],_0x31cede[_0x28b487('0x135a')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x31cede[_0x28b487('0x24eb')]=_0x2a6c69,_0x31cede['deleteConfirm']=_0x4fcf09,_0x31cede[_0x28b487('0x173b')]=_0x3ff375,_0x31cede['getSmsAccountSmsCannedAnswers']=_0x19bb8a,_0x31cede[_0x28b487('0x4ac')]=_0x4f81a3,_0x31cede[_0x28b487('0x3a2')]=_0xc02d27,_0x31cede[_0x28b487('0x91a')]=_0x439b66,_0x31cede['deleteSelectedSmsAccountSmsCannedAnswers']=_0x41fb5e;function _0x2a6c69(_0x2be857,_0x1403d3){const _0x3021e0=_0x28b487;_0x31cede['smsAccount']=_0x2be857,_0x31cede[_0x3021e0('0xe28')]=typeof _0x1403d3!==_0x3021e0('0xedb')?_0x1403d3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31cede[_0x3021e0('0x135a')][_0x3021e0('0xcba')]=_0x31cede[_0x3021e0('0x1cf0')]['id'],_0x31cede[_0x3021e0('0x135a')]['id']=_0x31cede[_0x3021e0('0x1cf0')]['id'],_0x19bb8a();}function _0x4fcf09(_0x1eeee6,_0x7f139f){const _0x2f550a=_0x28b487,_0x40740f=_0x2261f6['confirm']()[_0x2f550a('0x14e4')](_0x2f550a('0x1a7a'))['htmlContent'](''+(_0x1eeee6['name']||_0x1eeee6['id']&&_0x283545()[_0x2f550a('0x2265')](_0x2f550a('0x918'))+_0x1eeee6['id']||'smsCannedAnswer')+_0x2f550a('0x229e')+'\x20will\x20be\x20deleted.')[_0x2f550a('0x10bc')](_0x2f550a('0x1256'))['targetEvent'](_0x7f139f)['ok']('OK')['cancel'](_0x2f550a('0x1d8d'));_0x2261f6[_0x2f550a('0x2fa')](_0x40740f)[_0x2f550a('0x2788')](function(){_0x439b66(_0x1eeee6);},function(){const _0x5e2271=_0x2f550a;console[_0x5e2271('0x10df')](_0x5e2271('0x1d8d'));});}function _0x3ff375(_0x27786b){const _0x324e4f=_0x28b487;_0x31cede[_0x324e4f('0x1d9c')]=_0x27786b||{'count':0x0,'rows':[]};}function _0x19bb8a(){const _0x5230fd=_0x28b487;_0x31cede[_0x5230fd('0x135a')][_0x5230fd('0x19e')]=(_0x31cede['query'][_0x5230fd('0x23f5')]-0x1)*_0x31cede[_0x5230fd('0x135a')][_0x5230fd('0x68e')],_0x31cede[_0x5230fd('0x1808')]=_0x5f2110[_0x5230fd('0x1cf0')][_0x5230fd('0x1077')](_0x31cede['query'],_0x3ff375)[_0x5230fd('0x1714')];}function _0x4f81a3(_0x45a010,_0x1142ba){const _0x2c7db6=_0x28b487;_0x2261f6[_0x2c7db6('0x2fa')]({'controller':'CreateOrEditSmsCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x8cafce,'parent':angular['element'](_0x2e2f3b[_0x2c7db6('0x945')]),'targetEvent':_0x45a010,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x31cede['smsAccount'],'smsCannedAnswer':_0x1142ba,'smsCannedAnswers':_0x31cede[_0x2c7db6('0x1d9c')][_0x2c7db6('0x25df')],'license':null,'setting':null,'crudPermissions':_0x31cede[_0x2c7db6('0xe28')]}});}function _0x439b66(_0x4e421e){const _0x245e03=_0x28b487;_0x5f2110[_0x245e03('0x1870')][_0x245e03('0x17c4')]({'id':_0x4e421e['id']})[_0x245e03('0x1714')][_0x245e03('0x2788')](function(){const _0x518661=_0x245e03;_0x283545()[_0x518661('0x1a90')](_0x31cede[_0x518661('0x1d9c')][_0x518661('0x25df')],{'id':_0x4e421e['id']}),_0x31cede[_0x518661('0x1d9c')][_0x518661('0x338')]-=0x1,!_0x31cede['smsAccountSmsCannedAnswers']['rows'][_0x518661('0x2566')]&&_0x19bb8a(),_0x2b2367['success']({'title':_0x518661('0x5c7'),'msg':_0x4e421e['name']?_0x4e421e['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x5efd95){const _0x2c0ef9=_0x245e03;if(_0x5efd95['data']&&_0x5efd95[_0x2c0ef9('0x11fc')][_0x2c0ef9('0x25be')]&&_0x5efd95[_0x2c0ef9('0x11fc')]['errors']['length']){_0x31cede['errors']=_0x5efd95[_0x2c0ef9('0x11fc')][_0x2c0ef9('0x25be')]||[{'message':_0x5efd95['toString'](),'type':'SYSTEM:GETsmsAccount'}];for(let _0x44311f=0x0;_0x44311f<_0x5efd95[_0x2c0ef9('0x11fc')][_0x2c0ef9('0x25be')]['length'];_0x44311f++){_0x2b2367['error']({'title':_0x5efd95[_0x2c0ef9('0x11fc')][_0x2c0ef9('0x25be')][_0x44311f][_0x2c0ef9('0x1d7')],'msg':_0x5efd95['data'][_0x2c0ef9('0x25be')][_0x44311f][_0x2c0ef9('0x15e2')]});}}else _0x2b2367[_0x2c0ef9('0x5e8')]({'title':_0x5efd95[_0x2c0ef9('0x1b51')]?_0x2c0ef9('0x15d1')+_0x5efd95[_0x2c0ef9('0x1b51')]+_0x2c0ef9('0x1b0b')+_0x5efd95['statusText']:_0x2c0ef9('0x1ae5'),'msg':_0x5efd95[_0x2c0ef9('0x11fc')]?JSON[_0x2c0ef9('0x1be0')](_0x5efd95[_0x2c0ef9('0x11fc')][_0x2c0ef9('0x15e2')]):_0x5efd95[_0x2c0ef9('0x15e2')]||_0x5efd95[_0x2c0ef9('0x17df')]()});});}function _0xc02d27(){const _0x5d7419=_0x28b487,_0x4f98b3=angular[_0x5d7419('0x2669')](_0x31cede['selectedSmsAccountSmsCannedAnswers']);return _0x31cede['selectedSmsAccountSmsCannedAnswers']=[],_0x4f98b3;}function _0x41fb5e(_0x121b5c){const _0x581d9b=_0x28b487,_0x309168=_0x2261f6[_0x581d9b('0x112e')]()[_0x581d9b('0x14e4')](_0x581d9b('0x1d23'))[_0x581d9b('0x93e')](_0x581d9b('0x1670')+_0x31cede[_0x581d9b('0x650')][_0x581d9b('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x581d9b('0x24bd'))[_0x581d9b('0x24d0')](_0x121b5c)['ok']('OK')[_0x581d9b('0x1801')](_0x581d9b('0x1d8d'));_0x2261f6['show'](_0x309168)[_0x581d9b('0x2788')](function(){const _0x19898b=_0x581d9b;_0x31cede[_0x19898b('0x650')][_0x19898b('0x1534')](function(_0x3fcf0b){_0x439b66(_0x3fcf0b);}),_0x31cede['selectedSmsAccountSmsCannedAnswers']=[];});}let _0x4a5f21=!![],_0x2c7af7=0x1;_0x52cf13[_0x28b487('0x1662')]('vm_dc.query.filter',function(_0x2e3375,_0x2a045d){const _0x2e4ca7=_0x28b487;_0x4a5f21?_0x58df58(function(){_0x4a5f21=![];}):(!_0x2a045d&&(_0x2c7af7=_0x31cede[_0x2e4ca7('0x135a')][_0x2e4ca7('0x23f5')]),_0x2e3375!==_0x2a045d&&(_0x31cede[_0x2e4ca7('0x135a')]['page']=0x1),!_0x2e3375&&(_0x31cede[_0x2e4ca7('0x135a')][_0x2e4ca7('0x23f5')]=_0x2c7af7),_0x19bb8a());});}const _0x36a37e=_0x3f6679;_0x1188e7[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1d1f'),'smsCannedAnswer',_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x1188e7(_0x29bf03,_0x184a39,_0x54db87,_0x5129eb,_0x45bd50,_0x4a604e,_0x4bfa70,_0x89569d,_0x557e18,_0x3236aa,_0x25fab7,_0x457016,_0x1f432f,_0x2973fd){const _0x4e5cc5=_0x34e79e,_0x49da98=this;_0x49da98[_0x4e5cc5('0x9cb')]=_0x25fab7[_0x4e5cc5('0x24cc')](),_0x49da98['errors']=[],_0x49da98['setting']=_0x1f432f,_0x49da98['license']=_0x457016,_0x49da98[_0x4e5cc5('0xe28')]=_0x2973fd,_0x49da98[_0x4e5cc5('0x1193')]={},_0x49da98[_0x4e5cc5('0x18ad')]=_0x49da98['setting']&&_0x49da98[_0x4e5cc5('0x1af0')][_0x4e5cc5('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49da98['title']=_0x4e5cc5('0x442'),_0x49da98[_0x4e5cc5('0x667')]=angular[_0x4e5cc5('0x2669')](_0x557e18),_0x49da98[_0x4e5cc5('0x1d1f')]=_0x89569d,_0x49da98[_0x4e5cc5('0xddc')]=![];!_0x49da98['smsCannedAnswer']&&(_0x49da98[_0x4e5cc5('0x667')]={},_0x49da98['title']=_0x4e5cc5('0xb90'),_0x49da98[_0x4e5cc5('0xddc')]=!![]);_0x184a39['params']['id']&&(_0x49da98[_0x4e5cc5('0x667')][_0x4e5cc5('0xcba')]=_0x184a39[_0x4e5cc5('0x4b9')]['id']);_0x49da98['addNewSmsCannedAnswer']=_0x439bba,_0x49da98[_0x4e5cc5('0x19da')]=_0x2c43dd,_0x49da98[_0x4e5cc5('0x1582')]=_0x10c194,_0x49da98[_0x4e5cc5('0x2601')]=_0x53b5c3,_0x49da98[_0x4e5cc5('0xca7')]=_0x219206;function _0x439bba(){const _0x59e53f=_0x4e5cc5;_0x49da98['errors']=[],_0x3236aa[_0x59e53f('0x1870')][_0x59e53f('0xbd0')](_0x49da98[_0x59e53f('0x667')])[_0x59e53f('0x1714')]['then'](function(_0xa63785){const _0x10a2eb=_0x59e53f;_0x49da98[_0x10a2eb('0x1d1f')][_0x10a2eb('0xc51')](_0xa63785[_0x10a2eb('0x1cbf')]()),_0x4bfa70['success']({'title':_0x10a2eb('0x838'),'msg':_0x49da98[_0x10a2eb('0x667')][_0x10a2eb('0x1a8d')]?_0x49da98[_0x10a2eb('0x667')][_0x10a2eb('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x219206(_0xa63785);})[_0x59e53f('0x1cb5')](function(_0x174cbc){const _0x40eaa3=_0x59e53f;if(_0x174cbc[_0x40eaa3('0x11fc')]&&_0x174cbc[_0x40eaa3('0x11fc')]['errors']&&_0x174cbc[_0x40eaa3('0x11fc')][_0x40eaa3('0x25be')][_0x40eaa3('0x2566')]){_0x49da98[_0x40eaa3('0x25be')]=_0x174cbc['data'][_0x40eaa3('0x25be')]||[{'message':_0x174cbc[_0x40eaa3('0x17df')](),'type':_0x40eaa3('0x11b')}];for(let _0x4cf116=0x0;_0x4cf116<_0x174cbc[_0x40eaa3('0x11fc')][_0x40eaa3('0x25be')][_0x40eaa3('0x2566')];_0x4cf116+=0x1){_0x4bfa70['error']({'title':_0x174cbc['data'][_0x40eaa3('0x25be')][_0x4cf116][_0x40eaa3('0x1d7')],'msg':_0x174cbc[_0x40eaa3('0x11fc')][_0x40eaa3('0x25be')][_0x4cf116]['message']});}}else _0x4bfa70['error']({'title':_0x174cbc[_0x40eaa3('0x1b51')]?_0x40eaa3('0x15d1')+_0x174cbc[_0x40eaa3('0x1b51')]+_0x40eaa3('0x1b0b')+_0x174cbc[_0x40eaa3('0x22ce')]:_0x40eaa3('0x11b'),'msg':_0x174cbc[_0x40eaa3('0x11fc')]?JSON[_0x40eaa3('0x1be0')](_0x174cbc[_0x40eaa3('0x11fc')]['message']):_0x174cbc[_0x40eaa3('0x17df')]()});});}function _0x2c43dd(){const _0x49670a=_0x4e5cc5;_0x49da98[_0x49670a('0x25be')]=[],_0x3236aa[_0x49670a('0x1870')][_0x49670a('0x2740')]({'id':_0x49da98[_0x49670a('0x667')]['id']},_0x49da98[_0x49670a('0x667')])[_0x49670a('0x1714')]['then'](function(_0x2e932c){const _0x3ed6b2=_0x49670a,_0x5c08e6=_0x283545()[_0x3ed6b2('0x20e8')](_0x49da98['smsCannedAnswers'],{'id':_0x2e932c['id']});_0x5c08e6&&_0x283545()['merge'](_0x5c08e6,_0x283545()[_0x3ed6b2('0x41b')](_0x2e932c[_0x3ed6b2('0x1cbf')](),_0x283545()[_0x3ed6b2('0x2163')](_0x5c08e6))),_0x4bfa70[_0x3ed6b2('0x173b')]({'title':_0x3ed6b2('0xd26'),'msg':_0x49da98['smsCannedAnswer'][_0x3ed6b2('0x1a8d')]?_0x49da98[_0x3ed6b2('0x667')][_0x3ed6b2('0x1a8d')]+_0x3ed6b2('0x24cf'):''}),_0x219206(_0x2e932c);})['catch'](function(_0x1759be){const _0x40acf0=_0x49670a;if(_0x1759be[_0x40acf0('0x11fc')]&&_0x1759be[_0x40acf0('0x11fc')][_0x40acf0('0x25be')]&&_0x1759be[_0x40acf0('0x11fc')][_0x40acf0('0x25be')][_0x40acf0('0x2566')]){_0x49da98[_0x40acf0('0x25be')]=_0x1759be[_0x40acf0('0x11fc')]['errors']||[{'message':_0x1759be['toString'](),'type':'api.cannedAnswer.update'}];for(let _0x48d464=0x0;_0x48d464<_0x1759be['data']['errors'][_0x40acf0('0x2566')];_0x48d464++){_0x4bfa70[_0x40acf0('0x5e8')]({'title':_0x1759be[_0x40acf0('0x11fc')]['errors'][_0x48d464][_0x40acf0('0x1d7')],'msg':_0x1759be[_0x40acf0('0x11fc')][_0x40acf0('0x25be')][_0x48d464]['message']});}}else _0x4bfa70['error']({'title':_0x1759be[_0x40acf0('0x1b51')]?_0x40acf0('0x15d1')+_0x1759be[_0x40acf0('0x1b51')]+_0x40acf0('0x1b0b')+_0x1759be['statusText']:_0x40acf0('0x244'),'msg':_0x1759be[_0x40acf0('0x11fc')]?JSON[_0x40acf0('0x1be0')](_0x1759be[_0x40acf0('0x11fc')]['message']):_0x1759be['toString']()});});}function _0x10c194(_0x1dbac3){const _0x13e3ad=_0x4e5cc5;_0x49da98[_0x13e3ad('0x25be')]=[];const _0x3bbfaa=_0x5129eb[_0x13e3ad('0x112e')]()[_0x13e3ad('0x14e4')](_0x13e3ad('0x458'))['content'](_0x13e3ad('0x78a'))[_0x13e3ad('0x10bc')](_0x13e3ad('0x27ec'))['ok']('Delete')[_0x13e3ad('0x1801')](_0x13e3ad('0x1481'))[_0x13e3ad('0x24d0')](_0x1dbac3);_0x5129eb[_0x13e3ad('0x2fa')](_0x3bbfaa)[_0x13e3ad('0x2788')](function(){const _0x49ef2a=_0x13e3ad;_0x3236aa[_0x49ef2a('0x1870')][_0x49ef2a('0x17c4')]({'id':_0x49da98['smsCannedAnswer']['id']})[_0x49ef2a('0x1714')]['then'](function(){const _0x2cbbb8=_0x49ef2a;_0x283545()[_0x2cbbb8('0x1a90')](_0x49da98['smsCannedAnswers'],{'id':_0x49da98['smsCannedAnswer']['id']}),_0x4bfa70['success']({'title':'SmsCannedAnswer\x20properly\x20deleted!','msg':(_0x49da98[_0x2cbbb8('0x667')][_0x2cbbb8('0x1a8d')]||_0x2cbbb8('0x667'))+'\x20has\x20been\x20deleted!'}),_0x219206(_0x49da98[_0x2cbbb8('0x667')]);})['catch'](function(_0x18802f){const _0x40c45b=_0x49ef2a;if(_0x18802f[_0x40c45b('0x11fc')]&&_0x18802f[_0x40c45b('0x11fc')][_0x40c45b('0x25be')]&&_0x18802f[_0x40c45b('0x11fc')][_0x40c45b('0x25be')][_0x40c45b('0x2566')]){_0x49da98[_0x40c45b('0x25be')]=_0x18802f[_0x40c45b('0x11fc')][_0x40c45b('0x25be')]||[{'message':_0x18802f[_0x40c45b('0x17df')](),'type':_0x40c45b('0x1cad')}];for(let _0xdb2695=0x0;_0xdb2695<_0x18802f[_0x40c45b('0x11fc')]['errors'][_0x40c45b('0x2566')];_0xdb2695++){_0x4bfa70['error']({'title':_0x18802f[_0x40c45b('0x11fc')][_0x40c45b('0x25be')][_0xdb2695]['type'],'msg':_0x18802f[_0x40c45b('0x11fc')][_0x40c45b('0x25be')][_0xdb2695][_0x40c45b('0x15e2')]});}}else _0x4bfa70[_0x40c45b('0x5e8')]({'title':_0x18802f['status']?_0x40c45b('0x15d1')+_0x18802f[_0x40c45b('0x1b51')]+'\x20-\x20'+_0x18802f['statusText']:_0x40c45b('0x1cad'),'msg':_0x18802f[_0x40c45b('0x11fc')]?JSON['stringify'](_0x18802f[_0x40c45b('0x11fc')]['message']):_0x18802f['message']||_0x18802f[_0x40c45b('0x17df')]()});});},function(){});}function _0x53b5c3(_0x412dff){return _0x412dff===null?undefined:new Date(_0x412dff);}function _0x219206(_0x2cfb15){const _0x52e63b=_0x4e5cc5;_0x5129eb[_0x52e63b('0x19d')](_0x2cfb15);}}const _0x171ab3=_0x1188e7;_0x35bfce[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'api',_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x35bfce(_0x4eae73,_0x4c4186,_0x49043e,_0x954de7,_0xe8f669,_0x33b8d7,_0x226afc,_0x2555b4,_0x2ea76e,_0x1793ea,_0x55c8df){const _0x427b81=_0x34e79e,_0x143825=this;_0x143825[_0x427b81('0x9cb')]=_0x55c8df[_0x427b81('0x24cc')](),_0x143825[_0x427b81('0x818')]={'count':0x0,'rows':[]},_0x143825[_0x427b81('0x25d8')]=[],_0x143825[_0x427b81('0xe28')],_0x143825[_0x427b81('0x21c2')]={'first':_0x427b81('0x1b84'),'second':_0x427b81('0x1e6'),'third':'3rd'},_0x143825[_0x427b81('0x135a')]={'fields':_0x427b81('0x258b'),'sort':_0x427b81('0x1cee'),'limit':0xa,'page':0x1},_0x143825[_0x427b81('0x24eb')]=_0xd6bd98,_0x143825[_0x427b81('0x16a')]=_0x1b8bae,_0x143825[_0x427b81('0x173b')]=_0x577204,_0x143825[_0x427b81('0x2069')]=_0x3906a8,_0x143825[_0x427b81('0x2839')]=_0x56be4e,_0x143825[_0x427b81('0x25ba')]=_0x2fea98,_0x143825[_0x427b81('0x1550')]=_0x181dc7,_0x143825['deleteSelectedDispositions']=_0x5b4b42,_0x143825['deselectDispositions']=_0x56a00a,_0x143825['selectAllDispositions']=_0x3b7ca6;function _0xd6bd98(_0x21e789,_0x4cce26){const _0x3542e9=_0x427b81;_0x143825[_0x3542e9('0x1cf0')]=_0x21e789||{},_0x143825['crudPermissions']=typeof _0x4cce26!=='undefined'?_0x4cce26:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x143825[_0x3542e9('0x135a')]['SmsAccountId']=_0x143825['smsAccount']['id'],_0x143825[_0x3542e9('0x135a')]['id']=_0x143825[_0x3542e9('0x1cf0')]['id'],_0x3906a8();}function _0x56be4e(_0x5b7404,_0x14921b){const _0x2d7798=_0x427b81;_0xe8f669['show']({'controller':_0x2d7798('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x2d7798('0x16b1')](_0x33b8d7[_0x2d7798('0x945')]),'targetEvent':_0x5b7404,'clickOutsideToClose':!![],'locals':{'disposition':_0x14921b,'dispositions':_0x143825['dispositions'][_0x2d7798('0x25df')],'model':{'id':_0x143825[_0x2d7798('0x1cf0')]['id'],'field':_0x2d7798('0xcba')},'license':null,'setting':null,'crudPermissions':_0x143825[_0x2d7798('0xe28')]}})[_0x2d7798('0x2788')](function(_0x47b838){if(_0x47b838)_0x3906a8();});}function _0x1b8bae(_0x16e18c,_0x2cdc3c){const _0x29128b=_0x427b81,_0x57bd1a=_0x283545()[_0x29128b('0xc5d')](_0x143825['dispositions']['rows'],['ParentId',_0x16e18c['id']]),_0x779424=_0xe8f669['confirm']()[_0x29128b('0x14e4')](_0x2555b4[_0x29128b('0x1b11')](_0x29128b('0x29e')))[_0x29128b('0x1c98')](_0x2555b4['instant'](_0x29128b('0x5b')+(_0x57bd1a?_0x29128b('0x40a'):_0x29128b('0x281c')),{'name':_0x16e18c[_0x29128b('0x1a8d')]}))[_0x29128b('0x10bc')]('Delete\x20disposition')['targetEvent'](_0x2cdc3c)['ok']('OK')[_0x29128b('0x1801')](_0x2555b4[_0x29128b('0x1b11')](_0x29128b('0x1061')));_0xe8f669[_0x29128b('0x2fa')](_0x779424)['then'](function(){_0x2fea98(_0x16e18c);});}function _0x577204(_0xe0bff3){_0x143825['dispositions']=_0xe0bff3||{'count':0x0,'rows':[]};}function _0x3906a8(){const _0x4dd476=_0x427b81;_0x143825[_0x4dd476('0x135a')][_0x4dd476('0x19e')]=(_0x143825[_0x4dd476('0x135a')][_0x4dd476('0x23f5')]-0x1)*_0x143825[_0x4dd476('0x135a')][_0x4dd476('0x68e')],_0x143825[_0x4dd476('0x1808')]=_0x2ea76e[_0x4dd476('0x1cf0')]['getDispositions'](_0x143825[_0x4dd476('0x135a')],_0x577204)['$promise'];}function _0x2fea98(_0x3f47e6){const _0x50ec1d=_0x427b81;_0x2ea76e[_0x50ec1d('0x1db2')][_0x50ec1d('0x17c4')]({'id':_0x3f47e6['id']})[_0x50ec1d('0x1714')]['then'](function(){const _0x5c93ea=_0x50ec1d;_0x3906a8(),_0x1793ea['success']({'title':_0x2555b4[_0x5c93ea('0x1b11')](_0x5c93ea('0x156e'))});})[_0x50ec1d('0x1cb5')](function(_0x44feb8){const _0x336660=_0x50ec1d;if(_0x44feb8[_0x336660('0x11fc')]&&_0x44feb8[_0x336660('0x11fc')][_0x336660('0x25be')]&&_0x44feb8['data']['errors'][_0x336660('0x2566')]){_0x143825['errors']=_0x44feb8[_0x336660('0x11fc')]['errors']||[{'message':_0x44feb8['toString'](),'type':_0x336660('0x1410')}];for(let _0x29c4e9=0x0;_0x29c4e9<_0x44feb8['data'][_0x336660('0x25be')]['length'];_0x29c4e9++){_0x1793ea['error']({'title':_0x44feb8['data'][_0x336660('0x25be')][_0x29c4e9][_0x336660('0x1d7')],'msg':_0x44feb8[_0x336660('0x11fc')][_0x336660('0x25be')][_0x29c4e9]['message']});}}else _0x1793ea['error']({'title':_0x44feb8[_0x336660('0x1b51')]?_0x336660('0x15d1')+_0x44feb8[_0x336660('0x1b51')]+_0x336660('0x1b0b')+_0x44feb8[_0x336660('0x22ce')]:_0x336660('0x1410'),'msg':_0x44feb8[_0x336660('0x11fc')]?JSON[_0x336660('0x1be0')](_0x44feb8[_0x336660('0x11fc')][_0x336660('0x15e2')]):_0x44feb8[_0x336660('0x15e2')]||_0x44feb8[_0x336660('0x17df')]()});});}function _0x181dc7(){const _0x400ba4=_0x427b81,_0x20ed75=angular['copy'](_0x143825['selectedDispositions']);return _0x143825[_0x400ba4('0x25d8')]=[],_0x20ed75;}function _0x5b4b42(_0x27fbc0){const _0x1a999c=_0x427b81,_0x52d95b=_0xe8f669['confirm']()[_0x1a999c('0x14e4')](_0x2555b4['instant'](_0x1a999c('0x63d')))[_0x1a999c('0x1c98')](_0x2555b4['instant'](_0x1a999c('0x153f'),{'total':_0x143825['selectedDispositions']['length']}))[_0x1a999c('0x10bc')]('Delete\x20dispositions')[_0x1a999c('0x24d0')](_0x27fbc0)['ok']('OK')['cancel'](_0x2555b4[_0x1a999c('0x1b11')]('TOOLS.CANCEL'));_0xe8f669[_0x1a999c('0x2fa')](_0x52d95b)[_0x1a999c('0x2788')](function(){const _0x1746b4=_0x1a999c;_0x143825[_0x1746b4('0x25d8')][_0x1746b4('0x1534')](function(_0x17e19d){_0x2fea98(_0x17e19d);}),_0x143825[_0x1746b4('0x25d8')]=[];});}function _0x56a00a(){_0x143825['selectedDispositions']=[];}function _0x3b7ca6(){const _0x5499c3=_0x427b81;_0x143825[_0x5499c3('0x25d8')]=_0x143825['dispositions'][_0x5499c3('0x25df')];}let _0x2772b7=!![],_0x444fdf=0x1;_0x4eae73[_0x427b81('0x1662')](_0x427b81('0x2571'),function(_0x454bbc,_0x253c7f){const _0x3d296a=_0x427b81;_0x2772b7?_0x226afc(function(){_0x2772b7=![];}):(!_0x253c7f&&(_0x444fdf=_0x143825[_0x3d296a('0x135a')]['page']),_0x454bbc!==_0x253c7f&&(_0x143825[_0x3d296a('0x135a')][_0x3d296a('0x23f5')]=0x1),!_0x454bbc&&(_0x143825[_0x3d296a('0x135a')][_0x3d296a('0x23f5')]=_0x444fdf),_0x3906a8());});}const _0x1fdda1=_0x35bfce,_0x119915=_0x18dd13['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd.html';_0x433008[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$translate',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x1cf0'),_0x34e79e('0xec9')];function _0x433008(_0xdc1542,_0x376fb9,_0xdfad7f,_0x54b8a2,_0x517302,_0x5dd6ea,_0x3b80d8,_0x38f13a,_0x8aac7a,_0x24f981,_0x31a639,_0x525e35){const _0x504f30=_0x34e79e,_0x8b9f0d=this;_0x8b9f0d['currentUser']=_0x24f981['getCurrentUser'](),_0x8b9f0d[_0x504f30('0x130d')]=_0x5dd6ea,_0x8b9f0d[_0x504f30('0x1af0')]=_0x3b80d8,_0x8b9f0d[_0x504f30('0x18ad')]=_0x8b9f0d[_0x504f30('0x1af0')][_0x504f30('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8b9f0d[_0x504f30('0xe9')]=_0x376fb9['protocol']()+_0x504f30('0x726')+_0x376fb9['host'](),_0x8b9f0d['smsAccount']=_0x31a639||_0xdc1542[_0x504f30('0x4b9')][_0x504f30('0x1cf0')]||{},_0x8b9f0d[_0x504f30('0xec9')]=_0x525e35&&_0x525e35[_0x504f30('0x338')]==0x1?_0x525e35['rows'][0x0]:null,_0x8b9f0d['crudPermissions']=_0x24f981[_0x504f30('0x157e')](_0x8b9f0d[_0x504f30('0xec9')]?_0x8b9f0d['userProfileSection'][_0x504f30('0xe28')]:null),_0x8b9f0d['hasModulePermissions']={},_0x8b9f0d[_0x504f30('0xcb3')]=_0xdc1542[_0x504f30('0x4b9')][_0x504f30('0x24f6')]||0x0,_0x8b9f0d[_0x504f30('0x1113')]=_0xe51296,_0x8b9f0d[_0x504f30('0x204f')]=_0x8aac7a[_0x504f30('0x2276')],_0x8b9f0d[_0x504f30('0x750')]=_0x4f483b,_0x8b9f0d['saveSmsAccount']=_0x159ebc,_0x24f981[_0x504f30('0x1516')](_0x504f30('0xe23'))?_0x38f13a['cmList']['get']({'fields':_0x504f30('0x1338'),'sort':_0x504f30('0x1a8d')})[_0x504f30('0x1714')][_0x504f30('0x2788')](function(_0x1de2c2){const _0x4e829d=_0x504f30;_0x8b9f0d[_0x4e829d('0x2')]=_0x1de2c2[_0x4e829d('0x25df')]||[];})['catch'](function(_0x455603){const _0x1565cf=_0x504f30;_0x8aac7a[_0x1565cf('0x5e8')]({'title':_0x455603[_0x1565cf('0x1b51')]?_0x1565cf('0x15d1')+_0x455603[_0x1565cf('0x1b51')]+_0x1565cf('0x1b0b')+_0x455603['statusText']:_0x1565cf('0x11da'),'msg':_0x455603['data']?JSON[_0x1565cf('0x1be0')](_0x455603[_0x1565cf('0x11fc')]):_0x455603['toString']()});}):_0x38f13a['cmList'][_0x504f30('0x1335')]({'fields':'id,name','sort':_0x504f30('0x1a8d')})[_0x504f30('0x1714')][_0x504f30('0x2788')](function(_0x416319){const _0x533a29=_0x504f30;_0x8b9f0d[_0x533a29('0x2')]=_0x416319['rows']||[];})['then'](function(){const _0x3f348d=_0x504f30;return _0x38f13a[_0x3f348d('0xec9')][_0x3f348d('0x1335')]({'userProfileId':_0x8b9f0d[_0x3f348d('0x9cb')][_0x3f348d('0x237f')],'sectionId':0x12d})[_0x3f348d('0x1714')];})[_0x504f30('0x2788')](function(_0x5e24d4){const _0xe00ce5=_0x504f30,_0x37885c=_0x5e24d4&&_0x5e24d4[_0xe00ce5('0x25df')]?_0x5e24d4[_0xe00ce5('0x25df')][0x0]:null;if(!_0x37885c){const _0xe87207=[];let _0x129f83=null;_0x8b9f0d[_0xe00ce5('0x1cf0')]&&(_0x129f83=_0x283545()[_0xe00ce5('0x20e8')](_0x8b9f0d['lists'],{'id':Number(_0x8b9f0d['smsAccount'][_0xe00ce5('0x354')])}));for(let _0x5b022b=0x0;_0x5b022b<_0x8b9f0d[_0xe00ce5('0x2')][_0xe00ce5('0x2566')];_0x5b022b++){_0x129f83&&_0x8b9f0d['lists'][_0x5b022b]['id']===_0x129f83['id']&&(_0x8b9f0d[_0xe00ce5('0x2')][_0x5b022b][_0xe00ce5('0x3bf')]=![],_0xe87207['push'](_0x8b9f0d['lists'][_0x5b022b]));}_0x8b9f0d['lists']=_0xe87207;}else{if(!_0x37885c[_0xe00ce5('0x1c0a')])return _0x38f13a[_0xe00ce5('0x1050')][_0xe00ce5('0x1335')]({'sectionId':_0x37885c['id']})[_0xe00ce5('0x1714')][_0xe00ce5('0x2788')](function(_0xb03fcf){const _0x44431d=_0xe00ce5,_0x49fb01=_0x283545()[_0x44431d('0x155d')](_0xb03fcf[_0x44431d('0x25df')],function(_0xd6a866){const _0x117118=_0x44431d;return _0x283545()[_0x117118('0x20e8')](_0x8b9f0d[_0x117118('0x2')],{'id':_0xd6a866[_0x117118('0x2707')]});});let _0x1638d6=null;_0x8b9f0d[_0x44431d('0x1cf0')]&&(_0x1638d6=_0x283545()[_0x44431d('0x20e8')](_0x8b9f0d['lists'],{'id':Number(_0x8b9f0d[_0x44431d('0x1cf0')]['ListId'])}));if(_0x1638d6&&!_0x283545()[_0x44431d('0xc5d')](_0x49fb01,['id',_0x1638d6['id']])){const _0x48fe64=_0x283545()['find'](_0x8b9f0d[_0x44431d('0x2')],{'id':_0x1638d6['id']});_0x48fe64['canSelect']=![],_0x49fb01[_0x44431d('0x13e3')](_0x48fe64);}_0x8b9f0d[_0x44431d('0x2')]=_0x49fb01;});}})[_0x504f30('0x1cb5')](function(_0x58c3dd){const _0x3abfc7=_0x504f30;_0x8aac7a[_0x3abfc7('0x5e8')]({'title':_0x58c3dd[_0x3abfc7('0x1b51')]?_0x3abfc7('0x15d1')+_0x58c3dd[_0x3abfc7('0x1b51')]+'\x20-\x20'+_0x58c3dd[_0x3abfc7('0x22ce')]:_0x3abfc7('0x999'),'msg':_0x58c3dd['data']?JSON[_0x3abfc7('0x1be0')](_0x58c3dd[_0x3abfc7('0x11fc')]):_0x58c3dd[_0x3abfc7('0x17df')]()});}),_0x24f981[_0x504f30('0x1516')]('admin')?_0x38f13a[_0x504f30('0x619')]['get']({'fields':'name,id','sort':'name','nolimit':_0x504f30('0x1001')})[_0x504f30('0x1714')]['then'](function(_0x36f88c){const _0x47a056=_0x504f30;_0x8b9f0d[_0x47a056('0x225d')]=_0x36f88c[_0x47a056('0x25df')]||[];})[_0x504f30('0x1cb5')](function(_0x355ff0){const _0x38b43f=_0x504f30;_0x8aac7a[_0x38b43f('0x5e8')]({'title':_0x355ff0[_0x38b43f('0x1b51')]?_0x38b43f('0x15d1')+_0x355ff0['status']+_0x38b43f('0x1b0b')+_0x355ff0['statusText']:_0x38b43f('0x10d8'),'msg':_0x355ff0[_0x38b43f('0x11fc')]?JSON[_0x38b43f('0x1be0')](_0x355ff0['data']):_0x355ff0[_0x38b43f('0x17df')]()});}):_0x38f13a[_0x504f30('0x619')][_0x504f30('0x1335')]({'fields':_0x504f30('0xcfa'),'sort':'name','nolimit':_0x504f30('0x1001')})[_0x504f30('0x1714')]['then'](function(_0xb40a1b){const _0x4886a5=_0x504f30;_0x8b9f0d['pauses']=_0xb40a1b[_0x4886a5('0x25df')]||[];})[_0x504f30('0x2788')](function(){const _0x2216a9=_0x504f30;return _0x38f13a[_0x2216a9('0xec9')][_0x2216a9('0x1335')]({'userProfileId':_0x8b9f0d['currentUser'][_0x2216a9('0x237f')],'sectionId':0x3ed})[_0x2216a9('0x1714')];})[_0x504f30('0x2788')](function(_0x2ae755){const _0x112c12=_0x504f30,_0x2840d2=_0x2ae755&&_0x2ae755[_0x112c12('0x25df')]?_0x2ae755[_0x112c12('0x25df')][0x0]:null;if(!_0x2840d2)_0x8b9f0d[_0x112c12('0x225d')]=[];else{if(!_0x2840d2[_0x112c12('0x1c0a')])return _0x38f13a[_0x112c12('0x1050')][_0x112c12('0x1335')]({'sectionId':_0x2840d2['id']})[_0x112c12('0x1714')][_0x112c12('0x2788')](function(_0x40c485){const _0x43d866=_0x112c12,_0x335d84=_0x283545()[_0x43d866('0x155d')](_0x40c485[_0x43d866('0x25df')],function(_0x6142b1){const _0x21c033=_0x43d866;return _0x283545()['find'](_0x8b9f0d[_0x21c033('0x225d')],{'id':_0x6142b1['resourceId']});});_0x8b9f0d[_0x43d866('0x225d')][_0x43d866('0x1534')](function(_0xd03ab5){const _0x209afe=_0x43d866;!_0x283545()[_0x209afe('0xc5d')](_0x335d84,['id',_0xd03ab5['id']])&&(_0xd03ab5[_0x209afe('0x3bf')]=![]),_0x335d84[_0x209afe('0x13e3')](_0xd03ab5);}),_0x8b9f0d[_0x43d866('0x225d')]=_0x335d84;});}})[_0x504f30('0x1cb5')](function(_0x4d906e){const _0x32a850=_0x504f30;_0x8aac7a[_0x32a850('0x5e8')]({'title':_0x4d906e[_0x32a850('0x1b51')]?_0x32a850('0x15d1')+_0x4d906e[_0x32a850('0x1b51')]+_0x32a850('0x1b0b')+_0x4d906e['statusText']:_0x32a850('0x7d9'),'msg':_0x4d906e['data']?JSON[_0x32a850('0x1be0')](_0x4d906e[_0x32a850('0x11fc')]):_0x4d906e[_0x32a850('0x17df')]()});});function _0xe51296(_0x51c248,_0x4a6705){const _0x5ee676=_0x504f30;_0xdfad7f[_0x5ee676('0x2fa')]({'controller':'SmsAccountagentaddController','controllerAs':'vm','templateUrl':_0x119915,'parent':angular[_0x5ee676('0x16b1')](_0x54b8a2['body']),'targetEvent':_0x4a6705,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x51c248,'smsAccounts':_0x8b9f0d[_0x5ee676('0x5f4')]?_0x8b9f0d[_0x5ee676('0x5f4')][_0x5ee676('0x25df')]:[],'crudPermissions':_0x8b9f0d[_0x5ee676('0xe28')],'realtime':![]}});}function _0x4f483b(){const _0x5dc9e6=_0x504f30;_0xdc1542['go'](_0x5dc9e6('0x1910'),{},{'reload':'app.sms.smsAccounts'});}function _0x159ebc(){const _0x2ec677=_0x504f30;_0x38f13a[_0x2ec677('0x1cf0')][_0x2ec677('0x2740')]({'id':_0x8b9f0d[_0x2ec677('0x1cf0')]['id']},_0x8b9f0d[_0x2ec677('0x1cf0')])[_0x2ec677('0x1714')][_0x2ec677('0x2788')](function(){const _0x4c7526=_0x2ec677;_0x8aac7a[_0x4c7526('0x173b')]({'title':'SmsAccount\x20updated!','msg':_0x8b9f0d[_0x4c7526('0x1cf0')][_0x4c7526('0x1a8d')]?_0x8b9f0d[_0x4c7526('0x1cf0')][_0x4c7526('0x1a8d')]+_0x4c7526('0x6f8'):''});})[_0x2ec677('0x1cb5')](function(_0x4b137d){const _0x65efac=_0x2ec677;_0x8aac7a[_0x65efac('0x5e8')]({'title':_0x4b137d[_0x65efac('0x1b51')]?'API:'+_0x4b137d[_0x65efac('0x1b51')]+_0x65efac('0x1b0b')+_0x4b137d['statusText']:_0x65efac('0x1ae5'),'msg':_0x4b137d[_0x65efac('0x11fc')]?JSON[_0x65efac('0x1be0')](_0x4b137d[_0x65efac('0x11fc')]):_0x4b137d[_0x65efac('0x17df')]()});});}}const _0x3a58d0=_0x433008,_0x3a04cd=_0x18dd13['p']+_0x34e79e('0x1d41');_0x5690e5[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav','$mdDialog','$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x5f4'),'userProfile','userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x5690e5(_0x185861,_0x324b9c,_0x1b6aec,_0x33776c,_0x2ba8ed,_0x5afe48,_0x4724e7,_0x330d5a,_0x228bf4,_0x5655a2,_0xf95f44,_0x18404e,_0x15bcab,_0x4b01f3,_0x3e01f0,_0x3f9abc,_0x4ea544){const _0x5bc431=_0x34e79e,_0x4df967=this;_0x4df967[_0x5bc431('0x130d')]=_0x3f9abc,_0x4df967['setting']=_0x4ea544,_0x4df967[_0x5bc431('0x9cb')]=_0x3e01f0['getCurrentUser'](),_0x4df967[_0x5bc431('0x5f4')]=_0x228bf4||{'count':0x0,'rows':[]},_0x4df967['userProfile']=_0x5655a2,_0x4df967[_0x5bc431('0xec9')]=_0xf95f44&&_0xf95f44['count']==0x1?_0xf95f44['rows'][0x0]:null,_0x4df967[_0x5bc431('0xe28')]=_0x3e01f0[_0x5bc431('0x157e')](_0x4df967['userProfileSection']?_0x4df967[_0x5bc431('0xec9')][_0x5bc431('0xe28')]:null),_0x4df967[_0x5bc431('0x26a9')]=_0x5bc431('0x5f4'),_0x4df967[_0x5bc431('0x2278')]='',_0x4df967[_0x5bc431('0x25e2')]=null,_0x4df967['selectedSmsAccounts']=[],_0x4df967[_0x5bc431('0x135a')]={'fields':_0x5bc431('0x188f'),'sort':_0x5bc431('0x1cee'),'limit':0xa,'page':0x1},_0x4df967[_0x5bc431('0x1221')]=_0x283545()[_0x5bc431('0x13cf')]([{'option':_0x5bc431('0x27d5'),'value':_0x5bc431('0x1621')},{'option':_0x5bc431('0x2474'),'value':'\x27skebby\x27'},{'option':'Connectel','value':_0x5bc431('0x1ac8')},{'option':_0x5bc431('0x273e'),'value':'\x27clicksend\x27'},{'option':_0x5bc431('0x12d7'),'value':_0x5bc431('0x199c')},{'option':_0x5bc431('0x1fb5'),'value':_0x5bc431('0x663')},{'option':'Clickatell','value':_0x5bc431('0x84f')},{'option':'CSCTelecom','value':'\x27csc\x27'},{'option':'Intelepeer','value':_0x5bc431('0x1e28')}],function(_0x559114){const _0x517527=_0x5bc431;return _0x283545()[_0x517527('0x10a4')](_0x559114['value'],new RegExp('\x27','g'),'');}),_0x4df967[_0x5bc431('0x1249')]=_0x283545()[_0x5bc431('0x13cf')]([{'option':'Basic','value':_0x5bc431('0x1166')},{'option':'Classic','value':_0x5bc431('0x1b21')},{'option':_0x5bc431('0x10f'),'value':_0x5bc431('0x2f1')}],function(_0x1a4900){const _0x5d3bc7=_0x5bc431;return _0x283545()[_0x5d3bc7('0x10a4')](_0x1a4900[_0x5d3bc7('0x49')],new RegExp('\x27','g'),'');}),_0x4df967[_0x5bc431('0x1f7e')]=_0x27c76c,_0x4df967[_0x5bc431('0x3aa')]=_0x368188,_0x4df967[_0x5bc431('0x1113')]=_0x729676,_0x4df967[_0x5bc431('0x1e5')]=_0x54889e,_0x4df967[_0x5bc431('0x173b')]=_0x296a95,_0x4df967['getSmsAccounts']=_0x46e207,_0x4df967['createOrEditSmsAccount']=_0x30b910,_0x4df967['deleteSmsAccount']=_0x1b20e3,_0x4df967[_0x5bc431('0x1c8c')]=_0x538a80,_0x4df967[_0x5bc431('0x8d2')]=_0xf58492,_0x4df967[_0x5bc431('0x9bb')]=_0x3110a0,_0x4df967[_0x5bc431('0x224f')]=_0x30d4be,_0x3e01f0['hasRole']('admin')?_0x18404e[_0x5bc431('0x1ba4')]['get']({'fields':'id,name','sort':_0x5bc431('0x1a8d')})[_0x5bc431('0x1714')][_0x5bc431('0x2788')](function(_0x547ae0){const _0x5a7a08=_0x5bc431;_0x4df967[_0x5a7a08('0x2')]=_0x547ae0[_0x5a7a08('0x25df')]||[];})['catch'](function(_0x25a1d3){const _0x3d038a=_0x5bc431;_0x4b01f3[_0x3d038a('0x5e8')]({'title':_0x25a1d3[_0x3d038a('0x1b51')]?_0x3d038a('0x15d1')+_0x25a1d3['status']+_0x3d038a('0x1b0b')+_0x25a1d3['statusText']:_0x3d038a('0x11da'),'msg':_0x25a1d3[_0x3d038a('0x11fc')]?JSON[_0x3d038a('0x1be0')](_0x25a1d3[_0x3d038a('0x11fc')]):_0x25a1d3[_0x3d038a('0x17df')]()});}):_0x18404e[_0x5bc431('0x1ba4')][_0x5bc431('0x1335')]({'fields':_0x5bc431('0x1338'),'sort':'name'})['$promise'][_0x5bc431('0x2788')](function(_0x56adcf){const _0x218b83=_0x5bc431;_0x4df967[_0x218b83('0x2')]=_0x56adcf['rows']||[];})['then'](function(){const _0x11d191=_0x5bc431;return _0x18404e[_0x11d191('0xec9')][_0x11d191('0x1335')]({'userProfileId':_0x4df967['currentUser'][_0x11d191('0x237f')],'sectionId':0x12d})['$promise'];})[_0x5bc431('0x2788')](function(_0x2ef937){const _0x7ae889=_0x5bc431,_0x4bbda5=_0x2ef937&&_0x2ef937['rows']?_0x2ef937['rows'][0x0]:null;if(!_0x4bbda5){const _0x4d0f0a=[];let _0xeeb899=null;_0x4df967[_0x7ae889('0x1cf0')]&&(_0xeeb899=_0x283545()[_0x7ae889('0x20e8')](_0x4df967[_0x7ae889('0x2')],{'id':Number(_0x4df967[_0x7ae889('0x1cf0')][_0x7ae889('0x354')])}));for(let _0x225a65=0x0;_0x225a65<_0x4df967[_0x7ae889('0x2')][_0x7ae889('0x2566')];_0x225a65++){_0xeeb899&&_0x4df967[_0x7ae889('0x2')][_0x225a65]['id']===_0xeeb899['id']&&(_0x4df967[_0x7ae889('0x2')][_0x225a65]['canSelect']=![],_0x4d0f0a[_0x7ae889('0x13e3')](_0x4df967['lists'][_0x225a65]));}_0x4df967[_0x7ae889('0x2')]=_0x4d0f0a;}else{if(!_0x4bbda5[_0x7ae889('0x1c0a')])return _0x18404e[_0x7ae889('0x1050')][_0x7ae889('0x1335')]({'sectionId':_0x4bbda5['id']})[_0x7ae889('0x1714')][_0x7ae889('0x2788')](function(_0x26324b){const _0x1e524b=_0x7ae889,_0x1520a2=_0x283545()[_0x1e524b('0x155d')](_0x26324b['rows'],function(_0x3bc646){const _0x296289=_0x1e524b;return _0x283545()[_0x296289('0x20e8')](_0x4df967[_0x296289('0x2')],{'id':_0x3bc646[_0x296289('0x2707')]});});let _0xa9557d=null;_0x4df967[_0x1e524b('0x1cf0')]&&(_0xa9557d=_0x283545()[_0x1e524b('0x20e8')](_0x4df967[_0x1e524b('0x2')],{'id':Number(_0x4df967['smsAccount'][_0x1e524b('0x354')])}));if(_0xa9557d&&!_0x283545()[_0x1e524b('0xc5d')](_0x1520a2,['id',_0xa9557d['id']])){const _0x4ced8f=_0x283545()[_0x1e524b('0x20e8')](_0x4df967[_0x1e524b('0x2')],{'id':_0xa9557d['id']});_0x4ced8f['canSelect']=![],_0x1520a2['push'](_0x4ced8f);}_0x4df967[_0x1e524b('0x2')]=_0x1520a2;});}})[_0x5bc431('0x1cb5')](function(_0x11024d){const _0x55ef40=_0x5bc431;_0x4b01f3[_0x55ef40('0x5e8')]({'title':_0x11024d[_0x55ef40('0x1b51')]?'API:'+_0x11024d[_0x55ef40('0x1b51')]+_0x55ef40('0x1b0b')+_0x11024d['statusText']:'SYSTEM:GETlists','msg':_0x11024d[_0x55ef40('0x11fc')]?JSON[_0x55ef40('0x1be0')](_0x11024d[_0x55ef40('0x11fc')]):_0x11024d[_0x55ef40('0x17df')]()});});function _0x27c76c(_0x599723){const _0x3601ac=_0x5bc431;_0x1b6aec['go']('app.sms.smsAccounts.edit',{'id':_0x599723['id'],'smsAccount':_0x599723,'crudPermissions':_0x4df967[_0x3601ac('0xe28')]});}function _0x368188(_0x49cf83){const _0x259f20=_0x5bc431;_0x1b6aec['go'](_0x259f20('0x1a7'),{'id':_0x49cf83['id'],'tab':0x5});}function _0x729676(_0x3231eb,_0x102b5a){const _0x1b6b54=_0x5bc431;_0x2ba8ed[_0x1b6b54('0x2fa')]({'controller':_0x1b6b54('0xc97'),'controllerAs':'vm','templateUrl':_0x119915,'parent':angular[_0x1b6b54('0x16b1')](_0x5afe48['body']),'targetEvent':_0x102b5a,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x3231eb,'smsAccounts':_0x4df967['smsAccounts']?_0x4df967[_0x1b6b54('0x5f4')]['rows']:[],'crudPermissions':_0x4df967['crudPermissions'],'realtime':![]}});}function _0x54889e(_0x4b233e,_0x3c3202){const _0x2d45f9=_0x5bc431,_0xb27e08=_0x2ba8ed['confirm']()[_0x2d45f9('0x14e4')](_0x2d45f9('0x2114')+_0x283545()['startCase'](_0x2d45f9('0x1cf0'))+'?')['htmlContent'](''+(_0x4b233e['name']||'smsAccount')+_0x2d45f9('0x229e')+_0x2d45f9('0x27c7'))[_0x2d45f9('0x10bc')](_0x2d45f9('0x154d'))[_0x2d45f9('0x24d0')](_0x3c3202)['ok']('OK')['cancel'](_0x2d45f9('0x1d8d'));_0x2ba8ed['show'](_0xb27e08)[_0x2d45f9('0x2788')](function(){_0x1b20e3(_0x4b233e);},function(){const _0x33ae42=_0x2d45f9;console[_0x33ae42('0x10df')](_0x33ae42('0x1d8d'));});}let _0x256eca=!![],_0x20efab=0x1;_0x185861[_0x5bc431('0x1662')]('vm.query.filter',function(_0x5af044,_0x597877){const _0x1afebd=_0x5bc431;_0x256eca?_0x4724e7(function(){_0x256eca=![];}):(!_0x597877&&(_0x20efab=_0x4df967[_0x1afebd('0x135a')][_0x1afebd('0x23f5')]),_0x5af044!==_0x597877&&(_0x4df967[_0x1afebd('0x135a')]['page']=0x1),!_0x5af044&&(_0x4df967[_0x1afebd('0x135a')][_0x1afebd('0x23f5')]=_0x20efab),_0x4df967['getSmsAccounts']());});function _0x296a95(_0x29391c){_0x4df967['smsAccounts']=_0x29391c||{'count':0x0,'rows':[]};}function _0x46e207(){const _0x6da322=_0x5bc431;_0x4df967[_0x6da322('0x135a')][_0x6da322('0x19e')]=(_0x4df967[_0x6da322('0x135a')][_0x6da322('0x23f5')]-0x1)*_0x4df967['query'][_0x6da322('0x68e')],_0x3e01f0[_0x6da322('0x1516')](_0x6da322('0xe23'))?_0x4df967[_0x6da322('0x1808')]=_0x18404e[_0x6da322('0x1cf0')][_0x6da322('0x1335')](_0x4df967[_0x6da322('0x135a')],_0x296a95)[_0x6da322('0x1714')]:(_0x4df967[_0x6da322('0x135a')]['id']=_0x4df967['userProfile']['id'],_0x4df967[_0x6da322('0x135a')][_0x6da322('0xb13')]=_0x6da322('0x1894'),_0x4df967[_0x6da322('0x1808')]=_0x18404e[_0x6da322('0x63c')][_0x6da322('0xa1')](_0x4df967['query'],_0x296a95)[_0x6da322('0x1714')]);}function _0x30b910(_0x255e46,_0x5bb717){const _0x263e45=_0x5bc431;_0x2ba8ed['show']({'controller':'CreateOrEditSmsAccountDialogController','controllerAs':'vm','templateUrl':_0x3a04cd,'parent':angular[_0x263e45('0x16b1')](_0x5afe48[_0x263e45('0x945')]),'targetEvent':_0x255e46,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x5bb717,'smsAccounts':_0x4df967[_0x263e45('0x5f4')][_0x263e45('0x25df')],'license':_0x4df967['license'],'setting':_0x4df967[_0x263e45('0x1af0')],'crudPermissions':_0x4df967[_0x263e45('0xe28')]}});}function _0x1b20e3(_0x49b515){const _0x2a08d9=_0x5bc431;_0x18404e[_0x2a08d9('0x1cf0')][_0x2a08d9('0x17c4')]({'id':_0x49b515['id']})[_0x2a08d9('0x1714')]['then'](function(){const _0x25b4e7=_0x2a08d9;_0x283545()[_0x25b4e7('0x1a90')](_0x4df967[_0x25b4e7('0x5f4')][_0x25b4e7('0x25df')],{'id':_0x49b515['id']}),_0x4df967[_0x25b4e7('0x5f4')][_0x25b4e7('0x338')]-=0x1,!_0x4df967[_0x25b4e7('0x5f4')][_0x25b4e7('0x25df')][_0x25b4e7('0x2566')]&&_0x4df967[_0x25b4e7('0xb69')](),_0x4b01f3['success']({'title':_0x283545()[_0x25b4e7('0x114')](_0x25b4e7('0x54c'))+_0x25b4e7('0x20db'),'msg':_0x49b515['name']?_0x49b515[_0x25b4e7('0x1a8d')]+_0x25b4e7('0x14d4'):''});})[_0x2a08d9('0x1cb5')](function(_0x1258b3){const _0x4f0e09=_0x2a08d9;if(_0x1258b3['data']&&_0x1258b3[_0x4f0e09('0x11fc')][_0x4f0e09('0x25be')]&&_0x1258b3[_0x4f0e09('0x11fc')][_0x4f0e09('0x25be')]['length']){_0x4df967[_0x4f0e09('0x25be')]=_0x1258b3[_0x4f0e09('0x11fc')]['errors']||[{'message':_0x1258b3[_0x4f0e09('0x17df')](),'type':_0x4f0e09('0x2589')}];for(let _0xb176bb=0x0;_0xb176bb<_0x1258b3['data'][_0x4f0e09('0x25be')][_0x4f0e09('0x2566')];_0xb176bb++){_0x4b01f3['error']({'title':_0x1258b3[_0x4f0e09('0x11fc')]['errors'][_0xb176bb][_0x4f0e09('0x1d7')],'msg':_0x1258b3[_0x4f0e09('0x11fc')][_0x4f0e09('0x25be')][_0xb176bb]['message']});}}else _0x4b01f3['error']({'title':_0x1258b3['status']?_0x4f0e09('0x15d1')+_0x1258b3[_0x4f0e09('0x1b51')]+'\x20-\x20'+_0x1258b3[_0x4f0e09('0x22ce')]:_0x4f0e09('0x2589'),'msg':_0x1258b3['data']?JSON['stringify'](_0x1258b3['data']['message']):_0x1258b3[_0x4f0e09('0x15e2')]||_0x1258b3[_0x4f0e09('0x17df')]()});});}function _0x538a80(){const _0x4a38e8=_0x5bc431,_0x1399fd=angular[_0x4a38e8('0x2669')](_0x4df967[_0x4a38e8('0x2ea')]);return _0x4df967[_0x4a38e8('0x2ea')]=[],_0x1399fd;}function _0xf58492(_0x1e85b2){const _0x288b88=_0x5bc431,_0xe00daf=_0x2ba8ed[_0x288b88('0x112e')]()[_0x288b88('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?')[_0x288b88('0x93e')](''+_0x4df967['selectedSmsAccounts'][_0x288b88('0x2566')]+_0x288b88('0xbd')+_0x288b88('0x27c7'))['ariaLabel'](_0x288b88('0x2725'))[_0x288b88('0x24d0')](_0x1e85b2)['ok']('OK')[_0x288b88('0x1801')](_0x288b88('0x1d8d'));_0x2ba8ed['show'](_0xe00daf)[_0x288b88('0x2788')](function(){_0x4df967['selectedSmsAccounts']['forEach'](function(_0x15415e){_0x1b20e3(_0x15415e);}),_0x4df967['selectedSmsAccounts']=[];});}function _0x3110a0(){const _0x449921=_0x5bc431;_0x4df967[_0x449921('0x2ea')]=[];}function _0x30d4be(){const _0x58580e=_0x5bc431;_0x4df967[_0x58580e('0x2ea')]=_0x4df967[_0x58580e('0x5f4')][_0x58580e('0x25df')];}}const _0x3b8022=_0x5690e5;_0x2c8083[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty','smsQueues','smsQueue','api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x2c8083(_0xe092ef,_0x359352,_0x34a52e,_0xf328c6,_0x162dc8,_0x466b76,_0x10771c,_0x53420c,_0x4da679,_0x31d675,_0x3831ab,_0x6fb6b1,_0x5874eb,_0x19d284){const _0x1127ee=_0x34e79e,_0x238745=this;_0x238745['currentUser']=_0x3831ab[_0x1127ee('0x24cc')](),_0x238745[_0x1127ee('0x25be')]=[],_0x238745[_0x1127ee('0x1af0')]=_0x5874eb,_0x238745['license']=_0x6fb6b1,_0x238745[_0x1127ee('0xe28')]=_0x19d284,_0x238745['hasModulePermissions']={},_0x238745[_0x1127ee('0x18ad')]=_0x238745[_0x1127ee('0x1af0')]&&_0x238745['setting'][_0x1127ee('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x238745['title']='SMS.EDIT_SMSQUEUE',_0x238745[_0x1127ee('0x23cf')]=angular['copy'](_0x4da679),_0x238745[_0x1127ee('0x188')]=_0x53420c,_0x238745[_0x1127ee('0x2099')]=![];!_0x238745[_0x1127ee('0x23cf')]&&(_0x238745[_0x1127ee('0x23cf')]={'strategy':_0x1127ee('0x1acd'),'timeout':0xa},_0x238745[_0x1127ee('0x14e4')]=_0x1127ee('0x1f38'),_0x238745[_0x1127ee('0x2099')]=!![]);_0x238745[_0x1127ee('0x677')]=_0x235893,_0x238745['saveSmsQueue']=_0x4b3ec1,_0x238745[_0x1127ee('0x4ee')]=_0x501b1f,_0x238745[_0x1127ee('0x2601')]=_0x1fc0fa,_0x238745[_0x1127ee('0xca7')]=_0x426ade;function _0x235893(){const _0x279062=_0x1127ee;_0x238745[_0x279062('0x25be')]=[],_0x31d675['smsQueue'][_0x279062('0xbd0')](_0x238745[_0x279062('0x23cf')])['$promise'][_0x279062('0x2788')](function(_0x4f2240){const _0x42ee12=_0x279062;_0x238745[_0x42ee12('0x188')][_0x42ee12('0xc51')](_0x4f2240[_0x42ee12('0x1cbf')]()),_0x10771c[_0x42ee12('0x173b')]({'title':_0x42ee12('0x1141'),'msg':_0x238745['smsQueue'][_0x42ee12('0x1a8d')]?_0x238745[_0x42ee12('0x23cf')][_0x42ee12('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x426ade(_0x4f2240);})[_0x279062('0x1cb5')](function(_0x1e7ee9){const _0x3cc45d=_0x279062;if(_0x1e7ee9['data']&&_0x1e7ee9[_0x3cc45d('0x11fc')][_0x3cc45d('0x25be')]&&_0x1e7ee9[_0x3cc45d('0x11fc')][_0x3cc45d('0x25be')][_0x3cc45d('0x2566')]){_0x238745[_0x3cc45d('0x25be')]=_0x1e7ee9[_0x3cc45d('0x11fc')][_0x3cc45d('0x25be')]||[{'message':_0x1e7ee9[_0x3cc45d('0x17df')](),'type':_0x3cc45d('0x7b5')}];for(let _0x53e897=0x0;_0x53e897<_0x1e7ee9[_0x3cc45d('0x11fc')][_0x3cc45d('0x25be')]['length'];_0x53e897+=0x1){_0x10771c[_0x3cc45d('0x5e8')]({'title':_0x1e7ee9[_0x3cc45d('0x11fc')][_0x3cc45d('0x25be')][_0x53e897]['type'],'msg':_0x1e7ee9[_0x3cc45d('0x11fc')]['errors'][_0x53e897][_0x3cc45d('0x15e2')]});}}else _0x10771c[_0x3cc45d('0x5e8')]({'title':_0x1e7ee9[_0x3cc45d('0x1b51')]?'API:'+_0x1e7ee9['status']+'\x20-\x20'+_0x1e7ee9['statusText']:'api.smsQueue.save','msg':_0x1e7ee9['data']?JSON['stringify'](_0x1e7ee9[_0x3cc45d('0x11fc')]['message']):_0x1e7ee9[_0x3cc45d('0x17df')]()});});}function _0x4b3ec1(){const _0x110bcc=_0x1127ee;_0x238745[_0x110bcc('0x25be')]=[],_0x31d675['smsQueue'][_0x110bcc('0x2740')]({'id':_0x238745[_0x110bcc('0x23cf')]['id']},_0x238745[_0x110bcc('0x23cf')])[_0x110bcc('0x1714')][_0x110bcc('0x2788')](function(_0x531f3b){const _0x5a1272=_0x110bcc,_0x1b130e=_0x283545()[_0x5a1272('0x20e8')](_0x238745[_0x5a1272('0x188')],{'id':_0x531f3b['id']});_0x1b130e&&_0x283545()['merge'](_0x1b130e,_0x283545()[_0x5a1272('0x41b')](_0x531f3b['toJSON'](),_0x283545()[_0x5a1272('0x2163')](_0x1b130e))),_0x10771c[_0x5a1272('0x173b')]({'title':_0x5a1272('0x25dd'),'msg':_0x238745[_0x5a1272('0x23cf')][_0x5a1272('0x1a8d')]?_0x238745[_0x5a1272('0x23cf')][_0x5a1272('0x1a8d')]+_0x5a1272('0x24cf'):''}),_0x426ade(_0x531f3b);})[_0x110bcc('0x1cb5')](function(_0x86916e){const _0x183bf6=_0x110bcc;if(_0x86916e[_0x183bf6('0x11fc')]&&_0x86916e[_0x183bf6('0x11fc')][_0x183bf6('0x25be')]&&_0x86916e['data']['errors'][_0x183bf6('0x2566')]){_0x238745[_0x183bf6('0x25be')]=_0x86916e['data'][_0x183bf6('0x25be')]||[{'message':_0x86916e[_0x183bf6('0x17df')](),'type':_0x183bf6('0x237d')}];for(let _0x57f2a7=0x0;_0x57f2a7<_0x86916e[_0x183bf6('0x11fc')][_0x183bf6('0x25be')]['length'];_0x57f2a7++){_0x10771c['error']({'title':_0x86916e[_0x183bf6('0x11fc')][_0x183bf6('0x25be')][_0x57f2a7][_0x183bf6('0x1d7')],'msg':_0x86916e['data']['errors'][_0x57f2a7][_0x183bf6('0x15e2')]});}}else _0x10771c[_0x183bf6('0x5e8')]({'title':_0x86916e[_0x183bf6('0x1b51')]?_0x183bf6('0x15d1')+_0x86916e[_0x183bf6('0x1b51')]+'\x20-\x20'+_0x86916e['statusText']:_0x183bf6('0x237d'),'msg':_0x86916e['data']?JSON['stringify'](_0x86916e[_0x183bf6('0x11fc')]['message']):_0x86916e[_0x183bf6('0x17df')]()});});}function _0x501b1f(_0x36146e){const _0x3f9812=_0x1127ee;_0x238745[_0x3f9812('0x25be')]=[];const _0x1c25cf=_0xf328c6[_0x3f9812('0x112e')]()[_0x3f9812('0x14e4')](_0x3f9812('0x458'))[_0x3f9812('0x1c98')]('The\x20smsQueue\x20will\x20be\x20deleted.')[_0x3f9812('0x10bc')](_0x3f9812('0x1cf3'))['ok']('Delete')[_0x3f9812('0x1801')]('Cancel')[_0x3f9812('0x24d0')](_0x36146e);_0xf328c6[_0x3f9812('0x2fa')](_0x1c25cf)[_0x3f9812('0x2788')](function(){const _0x17f825=_0x3f9812;_0x31d675[_0x17f825('0x23cf')][_0x17f825('0x17c4')]({'id':_0x238745[_0x17f825('0x23cf')]['id']})['$promise'][_0x17f825('0x2788')](function(){const _0x26b5c0=_0x17f825;_0x283545()[_0x26b5c0('0x1a90')](_0x238745['smsQueues'],{'id':_0x238745[_0x26b5c0('0x23cf')]['id']}),_0x10771c[_0x26b5c0('0x173b')]({'title':_0x26b5c0('0x1e3'),'msg':(_0x238745[_0x26b5c0('0x23cf')][_0x26b5c0('0x1a8d')]||_0x26b5c0('0x23cf'))+_0x26b5c0('0x14d4')}),_0x426ade(_0x238745['smsQueue']);})[_0x17f825('0x1cb5')](function(_0x333158){const _0x5adb3e=_0x17f825;if(_0x333158[_0x5adb3e('0x11fc')]&&_0x333158[_0x5adb3e('0x11fc')]['errors']&&_0x333158[_0x5adb3e('0x11fc')][_0x5adb3e('0x25be')][_0x5adb3e('0x2566')]){_0x238745[_0x5adb3e('0x25be')]=_0x333158[_0x5adb3e('0x11fc')][_0x5adb3e('0x25be')]||[{'message':_0x333158['toString'](),'type':_0x5adb3e('0x190b')}];for(let _0x9b09ea=0x0;_0x9b09ea<_0x333158[_0x5adb3e('0x11fc')][_0x5adb3e('0x25be')][_0x5adb3e('0x2566')];_0x9b09ea++){_0x10771c[_0x5adb3e('0x5e8')]({'title':_0x333158['data'][_0x5adb3e('0x25be')][_0x9b09ea][_0x5adb3e('0x1d7')],'msg':_0x333158[_0x5adb3e('0x11fc')]['errors'][_0x9b09ea][_0x5adb3e('0x15e2')]});}}else _0x10771c[_0x5adb3e('0x5e8')]({'title':_0x333158[_0x5adb3e('0x1b51')]?'API:'+_0x333158[_0x5adb3e('0x1b51')]+'\x20-\x20'+_0x333158['statusText']:_0x5adb3e('0x190b'),'msg':_0x333158[_0x5adb3e('0x11fc')]?JSON[_0x5adb3e('0x1be0')](_0x333158[_0x5adb3e('0x11fc')][_0x5adb3e('0x15e2')]):_0x333158[_0x5adb3e('0x15e2')]||_0x333158[_0x5adb3e('0x17df')]()});});},function(){});}function _0x1fc0fa(_0x54e39d){return _0x54e39d===null?undefined:new Date(_0x54e39d);}function _0x426ade(_0x588007){const _0x29d5f5=_0x1127ee;_0xf328c6[_0x29d5f5('0x19d')](_0x588007);}}const _0x55d541=_0x2c8083;_0x49fede[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x23cf'),'smsQueues',_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x49fede(_0x385075,_0x134aa7,_0x3ed16d,_0x14edec,_0x57aa3c,_0x1fb65d,_0x483948,_0x45c04a,_0x2439f6,_0x219938){const _0x3a212d=_0x34e79e,_0x9205cb=this;_0x9205cb[_0x3a212d('0x9cb')]=_0x2439f6[_0x3a212d('0x24cc')](),_0x9205cb['smsQueue']=_0x57aa3c,_0x9205cb[_0x3a212d('0xe28')]=_0x219938,_0x9205cb[_0x3a212d('0x548')]=_0x483948,_0x9205cb[_0x3a212d('0x117b')]=[],_0x9205cb[_0x3a212d('0x73d')]=[],_0x9205cb[_0x3a212d('0x283f')]=[],_0x9205cb['startingAllowedItems']=[],_0x9205cb[_0x3a212d('0xd0d')]=[],_0x9205cb['pendingChanges']=![],_0x9205cb[_0x3a212d('0x122e')]=_0x4658f4,_0x9205cb[_0x3a212d('0x1f8d')]=_0xf7808e,_0x9205cb[_0x3a212d('0xca7')]=_0x5cfd65,_0x9205cb[_0x3a212d('0x121')]={'readOnly':!_0x9205cb[_0x3a212d('0xe28')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x3a212d('0x2831'),'line2':[_0x3a212d('0x1a8d'),_0x3a212d('0x2838')],'line3':'','labelAll':_0x45c04a[_0x3a212d('0x1b11')](_0x3a212d('0x1fa')),'labelSelected':_0x45c04a[_0x3a212d('0x1b11')](_0x3a212d('0x774')),'transferCallback':function(){const _0x2c57ce=_0x3a212d,_0x53c1dd=_0x283545()[_0x2c57ce('0x12d1')](_0x9205cb[_0x2c57ce('0xd0d')],_0x9205cb[_0x2c57ce('0x283f')],'id');_0x9205cb[_0x2c57ce('0x2677')]=_0x283545()['isEmpty'](_0x53c1dd)?![]:!![];}};function _0x4658f4(){const _0x4bb67e=_0x3a212d;return _0x2439f6[_0x4bb67e('0x1516')](_0x4bb67e('0xe23'))?_0xc164c6()[_0x4bb67e('0x1cb5')](function(_0x2df158){const _0x522a53=_0x4bb67e;_0x3ed16d['error']({'title':_0x2df158[_0x522a53('0x1b51')]?_0x522a53('0x15d1')+_0x2df158[_0x522a53('0x1b51')]+_0x522a53('0x1b0b')+_0x2df158['statusText']:_0x522a53('0xd90'),'msg':_0x2df158[_0x522a53('0x1b51')]?JSON['stringify'](_0x2df158[_0x522a53('0x11fc')]):_0x2df158[_0x522a53('0x17df')]()});}):_0x5bd534()[_0x4bb67e('0x2788')](function(_0x387251){return _0x9205cb['section']=_0x387251,_0xc164c6();})[_0x4bb67e('0x1cb5')](function(_0x535922){const _0x366b7d=_0x4bb67e;_0x3ed16d['error']({'title':_0x535922[_0x366b7d('0x1b51')]?_0x366b7d('0x15d1')+_0x535922[_0x366b7d('0x1b51')]+_0x366b7d('0x1b0b')+_0x535922[_0x366b7d('0x22ce')]:_0x366b7d('0xd90'),'msg':_0x535922['status']?JSON['stringify'](_0x535922[_0x366b7d('0x11fc')]):_0x535922[_0x366b7d('0x17df')]()});});}function _0x5bd534(){return _0x134aa7(function(_0x6e3630,_0x9c5a26){const _0x8ca6e6=a0_0x14e7;_0x14edec[_0x8ca6e6('0xec9')][_0x8ca6e6('0x1335')]({'userProfileId':_0x9205cb[_0x8ca6e6('0x9cb')][_0x8ca6e6('0x237f')],'name':_0x8ca6e6('0x1f72')})[_0x8ca6e6('0x1714')][_0x8ca6e6('0x2788')](function(_0x4ce39c){const _0x3e4a76=_0x8ca6e6,_0x216e13=_0x4ce39c&&_0x4ce39c[_0x3e4a76('0x25df')]?_0x4ce39c[_0x3e4a76('0x25df')][0x0]:null;_0x6e3630(_0x216e13);})['catch'](function(_0x2bfbd3){_0x9c5a26(_0x2bfbd3);});});}function _0xc164c6(){return _0x134aa7(function(_0x1c0183,_0x389b5e){const _0x102725=a0_0x14e7;return _0x7c954()[_0x102725('0x2788')](function(_0x51a927){const _0x527077=_0x102725;return _0x9205cb['items']=_0x51a927[_0x527077('0x25df')]?_0x51a927[_0x527077('0x25df')]:[],_0x2439f6['hasRole'](_0x527077('0xe23'))?_0x51a927:_0x9205cb[_0x527077('0xb13')]?_0x9205cb[_0x527077('0xb13')][_0x527077('0x1c0a')]?_0x51a927:_0x26002e():null;})[_0x102725('0x2788')](function(_0x2bddf7){const _0x45ee85=_0x102725,_0x39b10a=_0x2bddf7&&_0x2bddf7[_0x45ee85('0x25df')]?_0x2bddf7[_0x45ee85('0x25df')]:[];return _0x9205cb[_0x45ee85('0x73d')]=_0x283545()['map'](_0x39b10a,function(_0x51270c){const _0x175277=_0x45ee85;return _0x283545()[_0x175277('0x20e8')](_0x9205cb[_0x175277('0x117b')],{'id':_0x2439f6['hasRole'](_0x175277('0xe23'))||_0x9205cb[_0x175277('0xb13')][_0x175277('0x1c0a')]?_0x51270c['id']:_0x51270c[_0x175277('0x2707')]});}),_0x9205cb[_0x45ee85('0x12d9')]=angular['copy'](_0x9205cb['allowedItems']),_0x9205cb['items'][_0x45ee85('0x1534')](function(_0x36de8e){const _0x71c12f=_0x45ee85,_0xe47b76=_0x283545()[_0x71c12f('0x20e8')](_0x9205cb[_0x71c12f('0x73d')],{'id':_0x36de8e['id']});_0x2439f6[_0x71c12f('0x1516')](_0x71c12f('0xe23'))?_0x36de8e['isValid']=!![]:_0x36de8e['isValid']=typeof _0xe47b76!=='undefined'?!![]:![];}),_0x7c798c();})[_0x102725('0x2788')](function(_0x8b909a){const _0x17c8ac=_0x102725,_0x18061e=_0x8b909a&&_0x8b909a[_0x17c8ac('0x25df')]?_0x8b909a[_0x17c8ac('0x25df')]:[];_0x9205cb[_0x17c8ac('0x283f')]=_0x283545()['map'](_0x18061e,function(_0x56a40b){const _0x406ec6=_0x17c8ac,_0x36b51c=_0x283545()['find'](_0x9205cb[_0x406ec6('0x117b')],{'id':_0x56a40b['id']});return _0x36b51c[_0x406ec6('0x1ab')]=_0x56a40b[_0x406ec6('0x27bf')]?_0x406ec6('0x1b9d')+_0x56a40b[_0x406ec6('0x27bf')]['penalty']:'',_0x36b51c['internal']=typeof _0x56a40b[_0x406ec6('0x2838')]!==_0x406ec6('0xedb')?'<'+_0x56a40b[_0x406ec6('0x2838')]+'>':'',_0x36b51c;}),_0x9205cb[_0x17c8ac('0xd0d')]=angular[_0x17c8ac('0x2669')](_0x9205cb[_0x17c8ac('0x283f')]),_0x9205cb[_0x17c8ac('0x121')][_0x17c8ac('0x283f')]=_0x9205cb[_0x17c8ac('0x283f')],_0x9205cb[_0x17c8ac('0x121')][_0x17c8ac('0x117b')]=_0x283545()[_0x17c8ac('0x432')](_0x9205cb[_0x17c8ac('0x73d')],_0x9205cb[_0x17c8ac('0x121')]['selectedItems'],'id'),_0x1c0183();})[_0x102725('0x1cb5')](function(_0xb243bd){_0x389b5e(_0xb243bd);});});}function _0x26002e(){return _0x134aa7(function(_0x58cf69,_0x439c91){const _0x530f69=a0_0x14e7;return _0x14edec['userProfileResource'][_0x530f69('0x1335')]({'sectionId':_0x9205cb[_0x530f69('0xb13')]['id'],'nolimit':!![]})[_0x530f69('0x1714')]['then'](function(_0x227d43){_0x58cf69(_0x227d43);})['catch'](function(_0x709d82){_0x439c91(_0x709d82);});});}function _0x7c798c(){return _0x134aa7(function(_0x5cf43c,_0x12a3a7){const _0x5b813b=a0_0x14e7;return _0x14edec[_0x5b813b('0x23cf')]['getAgents']({'id':_0x9205cb[_0x5b813b('0x23cf')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5b813b('0x188b')})[_0x5b813b('0x1714')][_0x5b813b('0x2788')](function(_0x35947d){_0x5cf43c(_0x35947d);})[_0x5b813b('0x1cb5')](function(_0x3942f8){_0x12a3a7(_0x3942f8);});});}function _0x7c954(){return _0x134aa7(function(_0x17301c,_0x557dd8){const _0x5a2c24=a0_0x14e7;return _0x14edec[_0x5a2c24('0x1e6a')][_0x5a2c24('0x1335')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5a2c24('0x188b')})[_0x5a2c24('0x1714')][_0x5a2c24('0x2788')](function(_0x2f2ff7){_0x17301c(_0x2f2ff7);})[_0x5a2c24('0x1cb5')](function(_0x1fec87){_0x557dd8(_0x1fec87);});});}function _0x3d5c3f(_0x3d7cac){return _0x134aa7(function(_0x1721b5,_0x44d299){const _0x4b68ae=a0_0x14e7;_0x283545()[_0x4b68ae('0x213d')](_0x3d7cac)?_0x1721b5():_0x14edec[_0x4b68ae('0x23cf')]['addAgents']({'id':_0x9205cb[_0x4b68ae('0x23cf')]['id'],'ids':_0x283545()['map'](_0x3d7cac,'id')})[_0x4b68ae('0x1714')][_0x4b68ae('0x2788')](function(){_0x1721b5();})[_0x4b68ae('0x1cb5')](function(_0x48ca96){_0x44d299(_0x48ca96);});});}function _0x4fa835(_0x49f2b0){return _0x134aa7(function(_0x4204d2,_0x2525fa){const _0x2c993a=a0_0x14e7;_0x283545()[_0x2c993a('0x213d')](_0x49f2b0)?_0x4204d2():_0x14edec['smsQueue'][_0x2c993a('0x1d72')]({'id':_0x9205cb['smsQueue']['id'],'ids':_0x283545()['map'](_0x49f2b0,'id')})['$promise'][_0x2c993a('0x2788')](function(){_0x4204d2();})['catch'](function(_0x3d6e5b){_0x2525fa(_0x3d6e5b);});});}function _0xf7808e(){const _0x1307d8=_0x3a212d,_0xde69c3=_0x283545()[_0x1307d8('0x432')](_0x9205cb[_0x1307d8('0xd0d')],_0x9205cb[_0x1307d8('0x283f')],'id'),_0x2b9023=_0x283545()[_0x1307d8('0x432')](_0x9205cb['selectedItems'],_0x9205cb[_0x1307d8('0xd0d')],'id');return _0x4fa835(_0xde69c3)[_0x1307d8('0x2788')](function(){return _0x3d5c3f(_0x2b9023);})[_0x1307d8('0x2788')](function(){const _0x3fe441=_0x1307d8;_0x9205cb['pendingChanges']=![],_0x9205cb['startingAllowedItems']=angular['copy'](_0x9205cb['allowedItems']),_0x9205cb[_0x3fe441('0xd0d')]=angular[_0x3fe441('0x2669')](_0x9205cb[_0x3fe441('0x283f')]),_0x3ed16d[_0x3fe441('0x173b')]({'title':_0x3fe441('0x10c8'),'msg':_0x3fe441('0x1984')});})[_0x1307d8('0x1cb5')](function(_0x3eea60){const _0x58c9dd=_0x1307d8;_0x3ed16d[_0x58c9dd('0x5e8')]({'title':_0x3eea60['status']?_0x58c9dd('0x15d1')+_0x3eea60[_0x58c9dd('0x1b51')]+'\x20-\x20'+_0x3eea60[_0x58c9dd('0x22ce')]:_0x58c9dd('0x13cd'),'msg':_0x3eea60[_0x58c9dd('0x1b51')]?JSON['stringify'](_0x3eea60[_0x58c9dd('0x11fc')]):_0x3eea60[_0x58c9dd('0x17df')]()});});}function _0x5cfd65(){const _0x3af902=_0x3a212d;_0x385075[_0x3af902('0x19d')]();}}const _0x3b940a=_0x49fede;_0x4a2845[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x23cf'),_0x34e79e('0x1a5c'),'Auth','crudPermissions'];function _0x4a2845(_0x447531,_0xbb3be1,_0x60b118,_0x19d279,_0x4b154e,_0x3b4c1a,_0x187f10,_0x4eca98){const _0x358dbe=_0x34e79e,_0xf00d5a=this;_0xf00d5a[_0x358dbe('0x9cb')]=_0x187f10[_0x358dbe('0x24cc')](),_0xf00d5a['smsQueue']=_0x4b154e,_0xf00d5a[_0x358dbe('0xe28')]=_0x4eca98,_0xf00d5a[_0x358dbe('0x117b')]=[],_0xf00d5a['allowedItems']=[],_0xf00d5a[_0x358dbe('0x283f')]=[],_0xf00d5a[_0x358dbe('0x12d9')]=[],_0xf00d5a['startingSelectedItems']=[],_0xf00d5a[_0x358dbe('0x2677')]=![],_0xf00d5a[_0x358dbe('0x121')]={'readOnly':!_0xf00d5a[_0x358dbe('0xe28')][_0x358dbe('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x358dbe('0x1a8d'),'line2':'','line3':'','labelAll':_0x3b4c1a[_0x358dbe('0x1b11')](_0x358dbe('0xa0a')),'labelSelected':_0x3b4c1a[_0x358dbe('0x1b11')](_0x358dbe('0x2c7')),'transferCallback':function(){const _0x5b9f3a=_0x358dbe,_0x4a7037=_0x283545()[_0x5b9f3a('0x12d1')](_0xf00d5a[_0x5b9f3a('0xd0d')],_0xf00d5a[_0x5b9f3a('0x283f')],'id');_0xf00d5a[_0x5b9f3a('0x2677')]=_0x283545()[_0x5b9f3a('0x213d')](_0x4a7037)?![]:!![];}},_0xf00d5a['onInit']=_0x7a29f5,_0xf00d5a[_0x358dbe('0x1a27')]=_0x455d8e,_0xf00d5a['closeDialog']=_0x4cb08f;function _0x7a29f5(){const _0x1d5481=_0x358dbe;return _0x187f10[_0x1d5481('0x1516')](_0x1d5481('0xe23'))?_0xa90f03()[_0x1d5481('0x1cb5')](function(_0x343819){const _0x55e9b3=_0x1d5481;_0x60b118[_0x55e9b3('0x5e8')]({'title':_0x343819[_0x55e9b3('0x1b51')]?_0x55e9b3('0x15d1')+_0x343819['status']+_0x55e9b3('0x1b0b')+_0x343819[_0x55e9b3('0x22ce')]:_0x55e9b3('0x556'),'msg':_0x343819['status']?JSON[_0x55e9b3('0x1be0')](_0x343819['data']):_0x343819[_0x55e9b3('0x17df')]()});}):_0x1eb767()[_0x1d5481('0x2788')](function(_0x1af516){const _0x5b6cb0=_0x1d5481;return _0xf00d5a[_0x5b6cb0('0xb13')]=_0x1af516,_0xa90f03();})['catch'](function(_0x2762bf){const _0x2e4509=_0x1d5481;_0x60b118[_0x2e4509('0x5e8')]({'title':_0x2762bf[_0x2e4509('0x1b51')]?_0x2e4509('0x15d1')+_0x2762bf['status']+'\x20-\x20'+_0x2762bf[_0x2e4509('0x22ce')]:'SYSTEM:GET_TEAMS','msg':_0x2762bf[_0x2e4509('0x1b51')]?JSON[_0x2e4509('0x1be0')](_0x2762bf['data']):_0x2762bf[_0x2e4509('0x17df')]()});});}function _0x1eb767(){return _0xbb3be1(function(_0xe46e67,_0x256653){const _0x5f32a=a0_0x14e7;_0x19d279['userProfileSection'][_0x5f32a('0x1335')]({'userProfileId':_0xf00d5a[_0x5f32a('0x9cb')][_0x5f32a('0x237f')],'name':_0x5f32a('0x23e9')})['$promise']['then'](function(_0x58b3cf){const _0x4e6101=_0x58b3cf&&_0x58b3cf['rows']?_0x58b3cf['rows'][0x0]:null;_0xe46e67(_0x4e6101);})[_0x5f32a('0x1cb5')](function(_0x359e28){_0x256653(_0x359e28);});});}function _0xa90f03(){return _0xbb3be1(function(_0x5203fe,_0x25e23a){const _0x26519d=a0_0x14e7;return _0x4b5a71()[_0x26519d('0x2788')](function(_0x18434b){const _0x4f6f1a=_0x26519d;return _0xf00d5a[_0x4f6f1a('0x117b')]=_0x18434b[_0x4f6f1a('0x25df')]?_0x18434b[_0x4f6f1a('0x25df')]:[],_0x187f10[_0x4f6f1a('0x1516')](_0x4f6f1a('0xe23'))?_0x18434b:_0xf00d5a[_0x4f6f1a('0xb13')]?_0xf00d5a[_0x4f6f1a('0xb13')]['autoAssociation']?_0x18434b:_0x442edc():null;})[_0x26519d('0x2788')](function(_0x3ad1fb){const _0x40750a=_0x26519d,_0x227f57=_0x3ad1fb&&_0x3ad1fb['rows']?_0x3ad1fb['rows']:[];return _0xf00d5a[_0x40750a('0x73d')]=_0x283545()[_0x40750a('0x155d')](_0x227f57,function(_0x48aef1){const _0x70c7f9=_0x40750a;return _0x283545()[_0x70c7f9('0x20e8')](_0xf00d5a[_0x70c7f9('0x117b')],{'id':_0x187f10[_0x70c7f9('0x1516')](_0x70c7f9('0xe23'))||_0xf00d5a['section'][_0x70c7f9('0x1c0a')]?_0x48aef1['id']:_0x48aef1['resourceId']});}),_0xf00d5a[_0x40750a('0x117b')][_0x40750a('0x1534')](function(_0x40837f){const _0x1c7cc1=_0x40750a,_0x46fd2c=_0x283545()[_0x1c7cc1('0x20e8')](_0xf00d5a[_0x1c7cc1('0x73d')],{'id':_0x40837f['id']});_0x187f10[_0x1c7cc1('0x1516')](_0x1c7cc1('0xe23'))?_0x40837f[_0x1c7cc1('0x68d')]=!![]:_0x40837f[_0x1c7cc1('0x68d')]=typeof _0x46fd2c!=='undefined'?!![]:![];}),_0x4572e3();})[_0x26519d('0x2788')](function(_0x5dae6f){const _0x293a29=_0x26519d,_0x674251=_0x5dae6f&&_0x5dae6f['rows']?_0x5dae6f['rows']:[];_0xf00d5a['selectedItems']=_0x283545()['map'](_0x674251,function(_0x46a1b1){const _0xa2b0c2=a0_0x14e7;return _0x283545()[_0xa2b0c2('0x20e8')](_0xf00d5a['items'],{'id':_0x46a1b1['id']});}),_0xf00d5a['startingSelectedItems']=angular['copy'](_0xf00d5a[_0x293a29('0x283f')]),_0xf00d5a[_0x293a29('0x121')]['selectedItems']=_0xf00d5a[_0x293a29('0x283f')],_0xf00d5a[_0x293a29('0x121')][_0x293a29('0x117b')]=_0x283545()[_0x293a29('0x432')](_0xf00d5a['allowedItems'],_0xf00d5a['dualMultiselectOptions'][_0x293a29('0x283f')],'id'),_0x5203fe();})[_0x26519d('0x1cb5')](function(_0x4a17e7){_0x25e23a(_0x4a17e7);});});}function _0x442edc(){return _0xbb3be1(function(_0x5e5b0a,_0x2b2a08){const _0x1b48ae=a0_0x14e7;return _0x19d279[_0x1b48ae('0x1050')][_0x1b48ae('0x1335')]({'sectionId':_0xf00d5a[_0x1b48ae('0xb13')]['id'],'nolimit':!![]})[_0x1b48ae('0x1714')]['then'](function(_0x48a3ca){_0x5e5b0a(_0x48a3ca);})[_0x1b48ae('0x1cb5')](function(_0x5b788c){_0x2b2a08(_0x5b788c);});});}function _0x4572e3(){return _0xbb3be1(function(_0x4c8acd,_0x51d32d){const _0x190d26=a0_0x14e7;return _0x19d279[_0x190d26('0x23cf')]['getTeams']({'id':_0xf00d5a[_0x190d26('0x23cf')]['id'],'fields':_0x190d26('0x1338'),'nolimit':!![]})['$promise']['then'](function(_0x52b81a){_0x4c8acd(_0x52b81a);})['catch'](function(_0x5b742b){_0x51d32d(_0x5b742b);});});}function _0x4b5a71(){return _0xbb3be1(function(_0x325274,_0x5ac352){const _0x2166ed=a0_0x14e7;return _0x19d279[_0x2166ed('0x421')][_0x2166ed('0x1335')]({'fields':'id,name','nolimit':!![]})[_0x2166ed('0x1714')][_0x2166ed('0x2788')](function(_0x3a251c){_0x325274(_0x3a251c);})[_0x2166ed('0x1cb5')](function(_0x1d72db){_0x5ac352(_0x1d72db);});});}function _0x43e90c(_0x3d4745){return _0xbb3be1(function(_0x2f15b4,_0x1dd59d){const _0xe68080=a0_0x14e7;_0x283545()[_0xe68080('0x213d')](_0x3d4745)?_0x2f15b4():_0x19d279['smsQueue']['addTeams']({'id':_0xf00d5a[_0xe68080('0x23cf')]['id'],'ids':_0x283545()[_0xe68080('0x155d')](_0x3d4745,'id')})[_0xe68080('0x1714')]['then'](function(){_0x2f15b4();})[_0xe68080('0x1cb5')](function(_0x1d5908){_0x1dd59d(_0x1d5908);});});}function _0x5192c2(_0x2f726c){return _0xbb3be1(function(_0x4dd5bc,_0x5d926d){const _0x422a3b=a0_0x14e7;_0x283545()[_0x422a3b('0x213d')](_0x2f726c)?_0x4dd5bc():_0x19d279['smsQueue'][_0x422a3b('0xf4c')]({'id':_0xf00d5a[_0x422a3b('0x23cf')]['id'],'ids':_0x283545()[_0x422a3b('0x155d')](_0x2f726c,'id')})[_0x422a3b('0x1714')][_0x422a3b('0x2788')](function(){_0x4dd5bc();})['catch'](function(_0x5bf8f8){_0x5d926d(_0x5bf8f8);});});}function _0x455d8e(){const _0x450b3e=_0x358dbe,_0x541313=_0x283545()[_0x450b3e('0x432')](_0xf00d5a[_0x450b3e('0xd0d')],_0xf00d5a[_0x450b3e('0x283f')],'id'),_0x59038c=_0x283545()['differenceBy'](_0xf00d5a[_0x450b3e('0x283f')],_0xf00d5a[_0x450b3e('0xd0d')],'id');return _0x5192c2(_0x541313)[_0x450b3e('0x2788')](function(){return _0x43e90c(_0x59038c);})[_0x450b3e('0x2788')](function(){const _0x20757a=_0x450b3e;_0xf00d5a[_0x20757a('0x2677')]=![],_0xf00d5a[_0x20757a('0x12d9')]=angular[_0x20757a('0x2669')](_0xf00d5a['allowedItems']),_0xf00d5a[_0x20757a('0xd0d')]=angular[_0x20757a('0x2669')](_0xf00d5a['selectedItems']),_0x60b118[_0x20757a('0x173b')]({'title':_0x20757a('0x10c8'),'msg':_0x20757a('0x7f3')});})[_0x450b3e('0x1cb5')](function(_0x23776e){const _0x36aeaf=_0x450b3e;_0x60b118[_0x36aeaf('0x5e8')]({'title':_0x23776e[_0x36aeaf('0x1b51')]?_0x36aeaf('0x15d1')+_0x23776e[_0x36aeaf('0x1b51')]+_0x36aeaf('0x1b0b')+_0x23776e[_0x36aeaf('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x23776e['status']?JSON[_0x36aeaf('0x1be0')](_0x23776e[_0x36aeaf('0x11fc')]):_0x23776e[_0x36aeaf('0x17df')]()});});}function _0x4cb08f(){_0x447531['hide']();}}const _0x14bbe3=_0x4a2845,_0x2d0020=_0x18dd13['p']+_0x34e79e('0x1748');_0x2950cf[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x23cf'),_0x34e79e('0xec9')];function _0x2950cf(_0x978857,_0x2b1707,_0x399d96,_0xc8380,_0x1a229b,_0x2384cf,_0x35b276,_0x1cf904,_0x16d10d,_0x13d579,_0x356d9b,_0x59d451){const _0x4b4aac=_0x34e79e,_0x323faa=this;_0x323faa[_0x4b4aac('0x9cb')]=_0x13d579['getCurrentUser'](),_0x323faa[_0x4b4aac('0x130d')]=_0x2384cf,_0x323faa[_0x4b4aac('0x1af0')]=_0x35b276,_0x323faa[_0x4b4aac('0x18ad')]=_0x323faa[_0x4b4aac('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x323faa[_0x4b4aac('0xe9')]=_0x2b1707[_0x4b4aac('0x170c')]()+_0x4b4aac('0x726')+_0x2b1707[_0x4b4aac('0x1c6a')](),_0x323faa[_0x4b4aac('0x23cf')]=_0x356d9b||_0x978857[_0x4b4aac('0x4b9')][_0x4b4aac('0x23cf')]||{},_0x323faa[_0x4b4aac('0xec9')]=_0x59d451&&_0x59d451['count']==0x1?_0x59d451[_0x4b4aac('0x25df')][0x0]:null,_0x323faa[_0x4b4aac('0xe28')]=_0x13d579['parseCrudPermissions'](_0x323faa[_0x4b4aac('0xec9')]?_0x323faa[_0x4b4aac('0xec9')][_0x4b4aac('0xe28')]:null),_0x323faa[_0x4b4aac('0x1193')]={},_0x323faa[_0x4b4aac('0xcb3')]=_0x978857[_0x4b4aac('0x4b9')][_0x4b4aac('0x24f6')]||0x0,_0x323faa[_0x4b4aac('0xde3')]=_0x2f791a,_0x323faa[_0x4b4aac('0x1113')]=_0x451f71,_0x323faa[_0x4b4aac('0x204f')]=_0x16d10d[_0x4b4aac('0x2276')],_0x323faa[_0x4b4aac('0x25aa')]=_0x2bdd4f,_0x323faa[_0x4b4aac('0x91e')]=_0x32e19b;function _0x2f791a(_0x17c53e,_0x1121d9){const _0xb4d7f0=_0x4b4aac;_0x399d96[_0xb4d7f0('0x2fa')]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x2d0020,'parent':angular['element'](_0xc8380[_0xb4d7f0('0x945')]),'targetEvent':_0x1121d9,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x17c53e,'smsQueues':_0x323faa[_0xb4d7f0('0x188')]?_0x323faa[_0xb4d7f0('0x188')]['rows']:[],'crudPermissions':_0x323faa[_0xb4d7f0('0xe28')]}});}function _0x451f71(_0x35d870,_0x4e2ae9){const _0x399b44=_0x4b4aac;_0x399d96['show']({'controller':_0x399b44('0x1b93'),'controllerAs':'vm','templateUrl':_0x4d5143,'parent':angular[_0x399b44('0x16b1')](_0xc8380[_0x399b44('0x945')]),'targetEvent':_0x4e2ae9,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x35d870,'smsQueues':_0x323faa[_0x399b44('0x188')]?_0x323faa[_0x399b44('0x188')][_0x399b44('0x25df')]:[],'crudPermissions':_0x323faa[_0x399b44('0xe28')],'realtime':![]}});}function _0x2bdd4f(){const _0x185255=_0x4b4aac;_0x978857['go'](_0x185255('0x24c7'),{},{'reload':_0x185255('0x24c7')});}function _0x32e19b(){const _0x3fbfa0=_0x4b4aac;_0x1cf904[_0x3fbfa0('0x23cf')][_0x3fbfa0('0x2740')]({'id':_0x323faa[_0x3fbfa0('0x23cf')]['id']},_0x323faa[_0x3fbfa0('0x23cf')])[_0x3fbfa0('0x1714')][_0x3fbfa0('0x2788')](function(){const _0x363d2b=_0x3fbfa0;_0x16d10d[_0x363d2b('0x173b')]({'title':_0x363d2b('0x11'),'msg':_0x323faa[_0x363d2b('0x23cf')][_0x363d2b('0x1a8d')]?_0x323faa[_0x363d2b('0x23cf')]['name']+_0x363d2b('0x6f8'):''});})[_0x3fbfa0('0x1cb5')](function(_0x106681){const _0x4bb5af=_0x3fbfa0;_0x16d10d[_0x4bb5af('0x5e8')]({'title':_0x106681['status']?'API:'+_0x106681[_0x4bb5af('0x1b51')]+'\x20-\x20'+_0x106681[_0x4bb5af('0x22ce')]:_0x4bb5af('0x2752'),'msg':_0x106681[_0x4bb5af('0x11fc')]?JSON[_0x4bb5af('0x1be0')](_0x106681[_0x4bb5af('0x11fc')]):_0x106681[_0x4bb5af('0x17df')]()});});}}const _0x441a6b=_0x2950cf;_0x5338da['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x188'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api','msUtils','toasty','Auth','license',_0x34e79e('0x1af0')];function _0x5338da(_0x333807,_0x444944,_0x6891b5,_0x1dcb64,_0x36de31,_0x4c360d,_0x59c91c,_0x5cdb5d,_0x505560,_0xc332dd,_0x337817,_0x826cd0,_0x34810e,_0x5d2b83,_0x318ba4,_0xf231f5,_0x2650f2){const _0x43fe29=_0x34e79e,_0x552432=this;_0x552432[_0x43fe29('0x130d')]=_0xf231f5,_0x552432[_0x43fe29('0x1af0')]=_0x2650f2,_0x552432[_0x43fe29('0x9cb')]=_0x318ba4['getCurrentUser'](),_0x552432['smsQueues']=_0x505560||{'count':0x0,'rows':[]},_0x552432[_0x43fe29('0x63c')]=_0xc332dd,_0x552432[_0x43fe29('0xec9')]=_0x337817&&_0x337817[_0x43fe29('0x338')]==0x1?_0x337817[_0x43fe29('0x25df')][0x0]:null,_0x552432[_0x43fe29('0xe28')]=_0x318ba4[_0x43fe29('0x157e')](_0x552432['userProfileSection']?_0x552432['userProfileSection'][_0x43fe29('0xe28')]:null),_0x552432[_0x43fe29('0x26a9')]=_0x43fe29('0x188'),_0x552432['listOrder']='',_0x552432[_0x43fe29('0x25e2')]=null,_0x552432[_0x43fe29('0xee1')]=[],_0x552432[_0x43fe29('0x135a')]={'fields':_0x43fe29('0x1a03'),'sort':_0x43fe29('0x1cee'),'channel':_0x43fe29('0x529'),'limit':0xa,'page':0x1},_0x552432['arraystrategy']=_0x283545()['keyBy']([{'option':'Beepall','value':_0x43fe29('0x11e4')},{'option':_0x43fe29('0x37a'),'value':_0x43fe29('0x228e')}],function(_0x2f4053){const _0x2b9445=_0x43fe29;return _0x283545()[_0x2b9445('0x10a4')](_0x2f4053[_0x2b9445('0x49')],new RegExp('\x27','g'),'');}),_0x552432[_0x43fe29('0x1f7e')]=_0x53b4a4,_0x552432[_0x43fe29('0xde3')]=_0x332339,_0x552432['agentadddialog']=_0x18ceb9,_0x552432[_0x43fe29('0x1e5')]=_0x3bd92,_0x552432['gotorealtimegoto']=_0x25d0c4,_0x552432[_0x43fe29('0x173b')]=_0x48c11f,_0x552432[_0x43fe29('0xe3f')]=_0x1c7093,_0x552432[_0x43fe29('0xd93')]=_0x11aafd,_0x552432[_0x43fe29('0x4ee')]=_0xbbc1ad,_0x552432[_0x43fe29('0x23f1')]=_0x5412b4,_0x552432[_0x43fe29('0x1597')]=_0x5176fb,_0x552432[_0x43fe29('0x615')]=_0x2b399f,_0x552432[_0x43fe29('0xb02')]=_0x33241e;function _0x53b4a4(_0x1af7bf){const _0x2632e0=_0x43fe29;_0x6891b5['go'](_0x2632e0('0x1bd4'),{'id':_0x1af7bf['id'],'smsQueue':_0x1af7bf,'crudPermissions':_0x552432[_0x2632e0('0xe28')]});}function _0x332339(_0x624fcb,_0x4a80cc){const _0x40356b=_0x43fe29;_0x36de31[_0x40356b('0x2fa')]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x2d0020,'parent':angular[_0x40356b('0x16b1')](_0x4c360d[_0x40356b('0x945')]),'targetEvent':_0x4a80cc,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x624fcb,'smsQueues':_0x552432[_0x40356b('0x188')]?_0x552432[_0x40356b('0x188')][_0x40356b('0x25df')]:[],'crudPermissions':_0x552432[_0x40356b('0xe28')]}});}function _0x18ceb9(_0x100aad,_0x2e7972){const _0x31b19b=_0x43fe29;_0x36de31['show']({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x4d5143,'parent':angular[_0x31b19b('0x16b1')](_0x4c360d[_0x31b19b('0x945')]),'targetEvent':_0x2e7972,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x100aad,'smsQueues':_0x552432[_0x31b19b('0x188')]?_0x552432[_0x31b19b('0x188')][_0x31b19b('0x25df')]:[],'crudPermissions':_0x552432[_0x31b19b('0xe28')],'realtime':![]}});}function _0x3bd92(_0x4cb23c,_0xb9be54){const _0x257c11=_0x43fe29,_0x2dde1f=_0x36de31[_0x257c11('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()['startCase'](_0x257c11('0x23cf'))+'?')[_0x257c11('0x93e')](_0x257c11('0x1670')+(_0x4cb23c['name']||_0x257c11('0x23cf'))+_0x257c11('0x229e')+_0x257c11('0x27c7'))[_0x257c11('0x10bc')](_0x257c11('0x5a0'))['targetEvent'](_0xb9be54)['ok']('OK')[_0x257c11('0x1801')](_0x257c11('0x1d8d'));_0x36de31['show'](_0x2dde1f)['then'](function(){_0xbbc1ad(_0x4cb23c);},function(){const _0x50ca89=_0x257c11;console[_0x50ca89('0x10df')](_0x50ca89('0x1d8d'));});}function _0x25d0c4(){const _0x1d46e0=_0x43fe29;if(_0x318ba4[_0x1d46e0('0x1516')](_0x1d46e0('0xe23')))_0x6891b5['go']('app.sms.realtime.queues',{});else return _0x826cd0['userProfileSection'][_0x1d46e0('0x1335')]({'userProfileId':_0x318ba4[_0x1d46e0('0x24cc')]()[_0x1d46e0('0x237f')],'sectionId':0x2c6})[_0x1d46e0('0x1714')]['then'](function(_0x25d1fd){const _0x5a0133=_0x1d46e0,_0x3cdd7c=_0x25d1fd&&_0x25d1fd['rows']?_0x25d1fd[_0x5a0133('0x25df')][0x0]:null;_0x3cdd7c&&_0x3cdd7c[_0x5a0133('0x14f4')]?_0x6891b5['go'](_0x5a0133('0x1dc9'),{}):_0x5d2b83['info']({'title':_0x5cdb5d[_0x5a0133('0x1b11')](_0x5a0133('0x5be')),'msg':_0x5cdb5d[_0x5a0133('0x1b11')](_0x5a0133('0x1abc'))});})[_0x1d46e0('0x1cb5')](function(_0x851d23){const _0x3d0679=_0x1d46e0;_0x5d2b83[_0x3d0679('0x5e8')]({'title':_0x851d23[_0x3d0679('0x1b51')]?_0x3d0679('0x15d1')+_0x851d23['status']+'\x20-\x20'+_0x851d23[_0x3d0679('0x22ce')]:'USERPROFILE:GET_SECTION','msg':_0x851d23['status']?JSON[_0x3d0679('0x1be0')](_0x851d23[_0x3d0679('0x11fc')]):_0x851d23[_0x3d0679('0x17df')]()});});}let _0x2ecd7e=!![],_0x4ec635=0x1;_0x333807['$watch']('vm.query.filter',function(_0x297911,_0x103aa6){const _0x4ebe25=_0x43fe29;_0x2ecd7e?_0x59c91c(function(){_0x2ecd7e=![];}):(!_0x103aa6&&(_0x4ec635=_0x552432[_0x4ebe25('0x135a')][_0x4ebe25('0x23f5')]),_0x297911!==_0x103aa6&&(_0x552432[_0x4ebe25('0x135a')][_0x4ebe25('0x23f5')]=0x1),!_0x297911&&(_0x552432[_0x4ebe25('0x135a')]['page']=_0x4ec635),_0x552432['getSmsQueues']());});function _0x48c11f(_0x3b7469){const _0x45f551=_0x43fe29;_0x552432[_0x45f551('0x188')]=_0x3b7469||{'count':0x0,'rows':[]};}function _0x1c7093(){const _0x42cecc=_0x43fe29;_0x552432['query'][_0x42cecc('0x19e')]=(_0x552432[_0x42cecc('0x135a')][_0x42cecc('0x23f5')]-0x1)*_0x552432['query']['limit'],_0x318ba4['hasRole'](_0x42cecc('0xe23'))?_0x552432[_0x42cecc('0x1808')]=_0x826cd0[_0x42cecc('0x23cf')]['get'](_0x552432['query'],_0x48c11f)['$promise']:(_0x552432[_0x42cecc('0x135a')]['id']=_0x552432[_0x42cecc('0x63c')]['id'],_0x552432[_0x42cecc('0x135a')][_0x42cecc('0xb13')]=_0x42cecc('0x1a3c'),_0x552432['promise']=_0x826cd0[_0x42cecc('0x63c')][_0x42cecc('0xa1')](_0x552432[_0x42cecc('0x135a')],_0x48c11f)[_0x42cecc('0x1714')]);}function _0x11aafd(_0x259f9c,_0x242855){const _0x5c2da6=_0x43fe29;_0x36de31[_0x5c2da6('0x2fa')]({'controller':_0x5c2da6('0xcd1'),'controllerAs':'vm','templateUrl':_0x48b58b,'parent':angular['element'](_0x4c360d[_0x5c2da6('0x945')]),'targetEvent':_0x259f9c,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x242855,'smsQueues':_0x552432[_0x5c2da6('0x188')][_0x5c2da6('0x25df')],'license':_0x552432['license'],'setting':_0x552432[_0x5c2da6('0x1af0')],'crudPermissions':_0x552432[_0x5c2da6('0xe28')]}});}function _0xbbc1ad(_0x26b768){const _0x5aec36=_0x43fe29;_0x826cd0[_0x5aec36('0x23cf')]['delete']({'id':_0x26b768['id']})['$promise'][_0x5aec36('0x2788')](function(){const _0x161199=_0x5aec36;_0x283545()[_0x161199('0x1a90')](_0x552432[_0x161199('0x188')][_0x161199('0x25df')],{'id':_0x26b768['id']}),_0x552432[_0x161199('0x188')][_0x161199('0x338')]-=0x1,!_0x552432['smsQueues']['rows']['length']&&_0x552432['getSmsQueues'](),_0x5d2b83[_0x161199('0x173b')]({'title':_0x283545()[_0x161199('0x114')](_0x161199('0xf31'))+'\x20deleted!','msg':_0x26b768[_0x161199('0x1a8d')]?_0x26b768[_0x161199('0x1a8d')]+_0x161199('0x14d4'):''});})[_0x5aec36('0x1cb5')](function(_0x3a9c05){const _0x2eb636=_0x5aec36;if(_0x3a9c05[_0x2eb636('0x11fc')]&&_0x3a9c05[_0x2eb636('0x11fc')][_0x2eb636('0x25be')]&&_0x3a9c05[_0x2eb636('0x11fc')]['errors']['length']){_0x552432[_0x2eb636('0x25be')]=_0x3a9c05[_0x2eb636('0x11fc')][_0x2eb636('0x25be')]||[{'message':_0x3a9c05[_0x2eb636('0x17df')](),'type':_0x2eb636('0x17')}];for(let _0x5112cd=0x0;_0x5112cd<_0x3a9c05[_0x2eb636('0x11fc')]['errors'][_0x2eb636('0x2566')];_0x5112cd++){_0x5d2b83[_0x2eb636('0x5e8')]({'title':_0x3a9c05[_0x2eb636('0x11fc')]['errors'][_0x5112cd]['type'],'msg':_0x3a9c05[_0x2eb636('0x11fc')][_0x2eb636('0x25be')][_0x5112cd][_0x2eb636('0x15e2')]});}}else _0x5d2b83[_0x2eb636('0x5e8')]({'title':_0x3a9c05[_0x2eb636('0x1b51')]?_0x2eb636('0x15d1')+_0x3a9c05[_0x2eb636('0x1b51')]+_0x2eb636('0x1b0b')+_0x3a9c05[_0x2eb636('0x22ce')]:_0x2eb636('0x17'),'msg':_0x3a9c05[_0x2eb636('0x11fc')]?JSON[_0x2eb636('0x1be0')](_0x3a9c05[_0x2eb636('0x11fc')][_0x2eb636('0x15e2')]):_0x3a9c05[_0x2eb636('0x15e2')]||_0x3a9c05['toString']()});});}function _0x5412b4(){const _0x31ccec=_0x43fe29,_0x168867=angular[_0x31ccec('0x2669')](_0x552432[_0x31ccec('0xee1')]);return _0x552432['selectedSmsQueues']=[],_0x168867;}function _0x5176fb(_0xea31bf){const _0x443deb=_0x43fe29,_0x34b9c8=_0x36de31['confirm']()['title'](_0x443deb('0x212d'))[_0x443deb('0x93e')](_0x443deb('0x1670')+_0x552432['selectedSmsQueues']['length']+_0x443deb('0xbd')+_0x443deb('0x27c7'))['ariaLabel']('delete\x20SmsQueues')['targetEvent'](_0xea31bf)['ok']('OK')[_0x443deb('0x1801')](_0x443deb('0x1d8d'));_0x36de31[_0x443deb('0x2fa')](_0x34b9c8)[_0x443deb('0x2788')](function(){const _0x245463=_0x443deb;_0x552432[_0x245463('0xee1')][_0x245463('0x1534')](function(_0x441187){_0xbbc1ad(_0x441187);}),_0x552432[_0x245463('0xee1')]=[];});}function _0x2b399f(){const _0x149846=_0x43fe29;_0x552432[_0x149846('0xee1')]=[];}function _0x33241e(){const _0x18fa6a=_0x43fe29;_0x552432[_0x18fa6a('0xee1')]=_0x552432['smsQueues'][_0x18fa6a('0x25df')];}}const _0x121b04=_0x5338da;_0x5c3999[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x5c3999(_0x5cb485,_0x2fdbca){const _0x4db7b9=_0x34e79e;_0x5cb485[_0x4db7b9('0x249b')](_0x4db7b9('0x92f'),{'abstract':!![],'url':_0x4db7b9('0x1a19')})[_0x4db7b9('0x249b')]('app.sms.smsQueues',{'url':_0x4db7b9('0x1594'),'views':{'content@app':{'templateUrl':_0x4bb7d7,'controller':'SmsQueuesController\x20as\x20vm'}},'resolve':{'smsQueues':[_0x4db7b9('0x1318'),'Auth',function(_0x42ffef,_0x484ef1){const _0x3183f2=_0x4db7b9;return _0x484ef1['hasRole'](_0x3183f2('0xe23'))?_0x42ffef[_0x3183f2('0x2322')](_0x3183f2('0x755'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x3183f2('0x529'),'limit':0xa,'offset':0x0}):_0x42ffef[_0x3183f2('0x2322')](_0x3183f2('0x27c5'),{'id':_0x484ef1['getCurrentUser']()['userProfileId'],'section':'SmsQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x3183f2('0x1cee'),'channel':_0x3183f2('0x529'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4db7b9('0x1318'),'Auth',function(_0x15d731,_0x3e3084){const _0x1be923=_0x4db7b9;return _0x3e3084[_0x1be923('0x1516')](_0x1be923('0xe23'))?null:_0x15d731['resolve'](_0x1be923('0x231d'),{'fields':_0x1be923('0x3f0'),'id':_0x3e3084['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x4db7b9('0x1b04'),function(_0x3434ce,_0x3117af){const _0x3912ec=_0x4db7b9;return _0x3117af[_0x3912ec('0x1516')](_0x3912ec('0xe23'))?null:_0x3434ce[_0x3912ec('0x2322')](_0x3912ec('0x22ca'),{'fields':_0x3912ec('0xe2c'),'userProfileId':_0x3117af['getCurrentUser']()[_0x3912ec('0x237f')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x4db7b9('0x529')})['state'](_0x4db7b9('0x1bd4'),{'url':_0x4db7b9('0x206b'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x461dba,'controller':_0x4db7b9('0x16f')}},'resolve':{'smsQueue':[_0x4db7b9('0x1318'),_0x4db7b9('0xad0'),function(_0x36f98f,_0x4fb944){const _0x9ebc80=_0x4db7b9;return _0x36f98f[_0x9ebc80('0x2322')]('smsQueue@get',{'fields':_0x9ebc80('0x1a03'),'id':_0x4fb944['id']});}],'userProfileSection':[_0x4db7b9('0x1318'),_0x4db7b9('0x1b04'),function(_0x4bbc5e,_0xb65c27){const _0x365e9d=_0x4db7b9;return _0x4bbc5e[_0x365e9d('0x2322')](_0x365e9d('0x22ca'),{'fields':_0x365e9d('0xe2c'),'userProfileId':_0xb65c27[_0x365e9d('0x24cc')]()[_0x365e9d('0x237f')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x4db7b9('0x529')})[_0x4db7b9('0x249b')](_0x4db7b9('0x1910'),{'url':'/smsAccounts','views':{'content@app':{'templateUrl':_0x4fb5c9,'controller':_0x4db7b9('0x1b29')}},'resolve':{'smsAccounts':['apiResolver',_0x4db7b9('0x1b04'),function(_0x5b242e,_0xbefb0e){const _0x26a751=_0x4db7b9;return _0xbefb0e[_0x26a751('0x1516')](_0x26a751('0xe23'))?_0x5b242e[_0x26a751('0x2322')](_0x26a751('0x1511'),{'fields':_0x26a751('0x188f'),'sort':_0x26a751('0x1cee'),'limit':0xa,'offset':0x0}):_0x5b242e['resolve'](_0x26a751('0x27c5'),{'id':_0xbefb0e[_0x26a751('0x24cc')]()[_0x26a751('0x237f')],'section':_0x26a751('0x1894'),'fields':_0x26a751('0x188f'),'sort':_0x26a751('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4db7b9('0x1318'),'Auth',function(_0x98bef,_0x6ef0f4){const _0x5533f1=_0x4db7b9;return _0x6ef0f4[_0x5533f1('0x1516')]('admin')?null:_0x98bef[_0x5533f1('0x2322')](_0x5533f1('0x231d'),{'fields':_0x5533f1('0x3f0'),'id':_0x6ef0f4[_0x5533f1('0x24cc')]()[_0x5533f1('0x237f')]});}],'userProfileSection':[_0x4db7b9('0x1318'),_0x4db7b9('0x1b04'),function(_0x245e7d,_0x38d4b6){const _0x3ccb03=_0x4db7b9;return _0x38d4b6[_0x3ccb03('0x1516')](_0x3ccb03('0xe23'))?null:_0x245e7d[_0x3ccb03('0x2322')](_0x3ccb03('0x22ca'),{'fields':_0x3ccb03('0xe2c'),'userProfileId':_0x38d4b6[_0x3ccb03('0x24cc')]()[_0x3ccb03('0x237f')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x4db7b9('0x529')})['state']('app.sms.smsAccounts.edit',{'url':_0x4db7b9('0x206b'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c3b9c,'controller':_0x4db7b9('0x178e')}},'resolve':{'smsAccount':['apiResolver',_0x4db7b9('0xad0'),function(_0x496b80,_0x49452f){const _0x47bfd2=_0x4db7b9;return _0x496b80[_0x47bfd2('0x2322')](_0x47bfd2('0x1511'),{'fields':_0x47bfd2('0x188f'),'id':_0x49452f['id']});}],'userProfileSection':[_0x4db7b9('0x1318'),_0x4db7b9('0x1b04'),function(_0x2dd90c,_0x4c8d0e){const _0x4368e0=_0x4db7b9;return _0x2dd90c['resolve']('userProfileSection@get',{'fields':_0x4368e0('0xe2c'),'userProfileId':_0x4c8d0e[_0x4368e0('0x24cc')]()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x4db7b9('0x529')}),_0x2fdbca['addPart'](_0x4db7b9('0x25f1'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x92f'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),'mdPickers',_0x34e79e('0x1bb'),_0x34e79e('0x279'),'mwFormUtils','ngclipboard',_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82'),'app.sms.realtime'])['config'](_0x5c3999)[_0x34e79e('0xb44')]('CreateOrEditSmsAccountDialogController',_0x17effb)['controller'](_0x34e79e('0xe53'),_0x185db3)[_0x34e79e('0xb44')](_0x34e79e('0xc97'),_0x1a697b)[_0x34e79e('0xb44')](_0x34e79e('0x851'),_0x37464e)[_0x34e79e('0xb44')]('EditSmsAccountAppamazonlexDialogController',_0x160e9c)['controller'](_0x34e79e('0xf46'),_0x4ad580)[_0x34e79e('0xb44')](_0x34e79e('0x2ac'),_0x2bd19b)[_0x34e79e('0xb44')](_0x34e79e('0x659'),_0x37bffa)[_0x34e79e('0xb44')](_0x34e79e('0x20e4'),_0x1df2c0)['controller']('EditSmsAccountAppgotopDialogController',_0x11496f)[_0x34e79e('0xb44')](_0x34e79e('0xa94'),_0x463079)[_0x34e79e('0xb44')](_0x34e79e('0x2644'),_0x517f50)[_0x34e79e('0xb44')](_0x34e79e('0xae3'),_0x59bdd0)[_0x34e79e('0xb44')](_0x34e79e('0x86f'),_0x3be974)[_0x34e79e('0xb44')](_0x34e79e('0x913'),_0x343516)[_0x34e79e('0xb44')](_0x34e79e('0x49f'),_0x5082d8)[_0x34e79e('0xb44')]('SmsAccountSmsCannedAnswersController',_0x36a37e)[_0x34e79e('0xb44')](_0x34e79e('0x2f4'),_0x171ab3)['controller'](_0x34e79e('0x22c5'),_0x1fdda1)[_0x34e79e('0xb44')](_0x34e79e('0x1c84'),_0x3a58d0)[_0x34e79e('0xb44')]('SmsAccountsController',_0x3b8022)[_0x34e79e('0xb44')](_0x34e79e('0xcd1'),_0x55d541)[_0x34e79e('0xb44')]('SmsQueueagentaddController',_0x3b940a)[_0x34e79e('0xb44')](_0x34e79e('0xe12'),_0x14bbe3)['controller'](_0x34e79e('0xa6d'),_0x441a6b)['controller']('SmsQueuesController',_0x121b04);const _0x51d690=_0x18dd13['p']+_0x34e79e('0x20b6'),_0xf68d8e=_0x18dd13['p']+_0x34e79e('0x1e0c'),_0xadcd69=_0x18dd13['p']+_0x34e79e('0x1f1b');_0x54f65['$inject']=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x135d'),_0x34e79e('0x225d'),_0x34e79e('0x1713'),_0x34e79e('0x1c55'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty','helperClasses','userProfile','userProfileSection',_0x34e79e('0x1b04'),'license','$interval'];function _0x54f65(_0x5629cb,_0x2fb420,_0x39cc95,_0x5e4656,_0x55b759,_0x2f1df4,_0x5c4b91,_0x271ab9,_0x5f2205,_0x243434,_0x42ea4f,_0x425dcc,_0x1f57be,_0x1c18b3,_0x5e8b58,_0x388451,_0x1c00bd,_0xf6f706){const _0x54f35a=_0x34e79e,_0x1944ff=this,_0x4fe13f=[_0x54f35a('0x261d'),_0x54f35a('0x7c2'),_0x54f35a('0x813'),_0x54f35a('0x233e'),'pauseType',_0x54f35a('0x233e'),_0x54f35a('0x2838'),_0x54f35a('0x32e'),_0x54f35a('0x23a5'),_0x54f35a('0x1098'),_0x54f35a('0x20cd'),_0x54f35a('0xfd5'),_0x54f35a('0x924'),_0x54f35a('0x1891'),'voicePause',_0x54f35a('0x4e0'),_0x54f35a('0xde1'),_0x54f35a('0x251c'),'smsCapacity',_0x54f35a('0x982'),'faxCapacity','chatCurrentCapacity',_0x54f35a('0x7af'),_0x54f35a('0x113a'),_0x54f35a('0x1f88'),_0x54f35a('0x1d37'),'faxCurrentCapacity','chatStatus',_0x54f35a('0x18a3'),_0x54f35a('0x1a75'),_0x54f35a('0x698'),_0x54f35a('0x167f'),_0x54f35a('0x17d6'),_0x54f35a('0x1536'),_0x54f35a('0x1eeb'),'openchannelStatusTime',_0x54f35a('0x1831'),_0x54f35a('0x27b0'),_0x54f35a('0x1ac7'),_0x54f35a('0xbc'),_0x54f35a('0x48b'),_0x54f35a('0x1ab4'),_0x54f35a('0xdb6'),'screenrecording',_0x54f35a('0x15d7'),_0x54f35a('0xafd')],_0xb2e31d=['chatPause',_0x54f35a('0x1098'),_0x54f35a('0x20cd'),_0x54f35a('0xfd5'),'whatsappPause',_0x54f35a('0x1891'),_0x54f35a('0x2a1'),_0x54f35a('0x7c2')];_0x1944ff['currentUser']=_0x388451[_0x54f35a('0x24cc')](),_0x1944ff['availableStates']=[_0x54f35a('0x26f8'),_0x54f35a('0x11c3'),_0x54f35a('0xed9'),'onhold','not_inuse'],_0x1944ff[_0x54f35a('0x225d')]=_0x5c4b91||{'count':0x0,'rows':[]},_0x1944ff[_0x54f35a('0x130d')]=_0x1c00bd,_0x1944ff[_0x54f35a('0x63c')]=_0x1c18b3,_0x1944ff[_0x54f35a('0xec9')]=_0x5e8b58&&_0x5e8b58[_0x54f35a('0x338')]==0x1?_0x5e8b58[_0x54f35a('0x25df')][0x0]:null,_0x1944ff[_0x54f35a('0xe28')]=_0x388451[_0x54f35a('0x157e')](_0x1944ff[_0x54f35a('0xec9')]?_0x1944ff['userProfileSection'][_0x54f35a('0xe28')]:null),_0x1944ff[_0x54f35a('0x1713')]=_0x271ab9?_0x283545()['keyBy'](_0x271ab9['rows']?_0x271ab9[_0x54f35a('0x25df')]:[],'id'):{},_0x1944ff['rpcAgents']=_0x5f2205?_0x283545()[_0x54f35a('0x13cf')](_0x5f2205['rows']?_0x5f2205[_0x54f35a('0x25df')]:[],'id'):{},_0x1944ff[_0x54f35a('0x26ed')]={},_0x1944ff[_0x54f35a('0x374')]=![],_0x1944ff[_0x54f35a('0x1dc2')]=[],_0x1944ff[_0x54f35a('0x1564')]={};for(const _0x486928 in _0x1944ff[_0x54f35a('0x1713')]){typeof _0x1944ff[_0x54f35a('0x1713')][_0x486928]!==_0x54f35a('0xedb')&&(_0x1944ff[_0x54f35a('0x1713')][_0x486928][_0x54f35a('0x24eb')]=!![]);}_0x1944ff[_0x54f35a('0x135a')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x1944ff[_0x54f35a('0x192f')]=_0xec8a30,_0x1944ff[_0x54f35a('0x2025')]=_0x47d73f,_0x1944ff['pause']=_0x24c44e,_0x1944ff['unPause']=_0x22eb78,_0x1944ff[_0x54f35a('0xa35')]=_0x180946,_0x1944ff[_0x54f35a('0xd10')]=_0x4719a9,_0x1944ff[_0x54f35a('0xcfd')]=_0x4ac31a,_0x1944ff[_0x54f35a('0x192')]=_0x3071b0,_0x1944ff[_0x54f35a('0xaef')]=_0x27724c,_0x1944ff[_0x54f35a('0x17f9')]=_0x5d8dae,_0x1944ff[_0x54f35a('0x158d')]=_0x567f7b,_0x1944ff['onUpdate']=_0x29196e,_0x1944ff[_0x54f35a('0x122e')]=_0x4f4e01,_0x1944ff[_0x54f35a('0x2826')]=_0x2f65a0,_0x1944ff[_0x54f35a('0xb61')]=_0x5cb0f2,_0x1944ff['screenRecording']=_0xd2ca07,_0x42ea4f['on'](_0x54f35a('0x71'),_0x1944ff['onSave']),_0x42ea4f['on'](_0x54f35a('0x1cb6'),_0x1944ff[_0x54f35a('0x2409')]),_0x42ea4f['on'](_0x54f35a('0x1958'),_0x1944ff[_0x54f35a('0x2826')]),_0x42ea4f['on'](_0x54f35a('0x116b'),_0x1944ff[_0x54f35a('0xb61')]),_0x4f4e01();let _0x1cfa2c=_0xf6f706(function(){const _0x1f82b1=_0x54f35a;_0x1944ff[_0x1f82b1('0x374')]&&(_0x1944ff[_0x1f82b1('0x374')]=![],_0x4f4e01());},0x3e7);function _0x4f4e01(){const _0x2ee9ea=_0x54f35a;_0x1944ff[_0x2ee9ea('0x374')]=![];const _0xd205b0=_0x2fb420[_0x2ee9ea('0x2311')]();_0x1944ff['promise']=_0xd205b0[_0x2ee9ea('0x1808')],_0x1944ff['filteredAgents']=[],_0x1944ff['order']=[],_0x283545()[_0x2ee9ea('0x1b')](_0x1944ff['agents'],function(_0x2d7227,_0x59a40b){const _0x2fce86=_0x2ee9ea;_0x1944ff['rpcAgents'][_0x59a40b]&&_0x283545()[_0x2fce86('0x2503')](_0x2d7227,_0x283545()[_0x2fce86('0x41b')](_0x283545()['omit'](_0x1944ff[_0x2fce86('0x1c55')][_0x59a40b],_0xb2e31d),_0x4fe13f)),_0x4ac31a(_0x2d7227),_0x2d7227[_0x2fce86('0x7c2')]?(_0x1944ff[_0x2fce86('0xfe8')][_0x2fce86('0x13e3')](_0x2d7227),_0x1944ff['agentInternal'][_0x2d7227[_0x2fce86('0x2838')]]=_0x59a40b):_0x2d7227[_0x2fce86('0xf3b')]=_0x283545()[_0x2fce86('0x420')](_0x59f37a()()[_0x2fce86('0x22b4')]('x'));});_0x1944ff[_0x2ee9ea('0x135a')]['globalStatusFilter']&&_0x283545()[_0x2ee9ea('0x1a90')](_0x1944ff['filteredAgents'],function(_0x281ae0){const _0x4d64f5=_0x2ee9ea;return _0x281ae0[_0x4d64f5('0xee3')]!==_0x1944ff[_0x4d64f5('0x135a')][_0x4d64f5('0x52c')];});_0x1944ff[_0x2ee9ea('0x135a')][_0x2ee9ea('0xf25')]&&_0x283545()[_0x2ee9ea('0x1a90')](_0x1944ff[_0x2ee9ea('0xfe8')],function(_0x4cbb0d){const _0x1e7b0c=_0x2ee9ea;return _0x4cbb0d[_0x1e7b0c('0x11e9')]!==_0x1944ff[_0x1e7b0c('0x135a')][_0x1e7b0c('0xf25')];});_0x1944ff[_0x2ee9ea('0x135a')]['filter']&&_0x283545()['remove'](_0x1944ff['filteredAgents'],function(_0x1bd484){const _0x400a06=_0x2ee9ea;return _0x1bd484[_0x400a06('0x2831')][_0x400a06('0xc2e')]()[_0x400a06('0x821')](_0x1944ff[_0x400a06('0x135a')][_0x400a06('0x916')][_0x400a06('0xc2e')]())<0x0;});_0x1944ff['filteredAgents']=_0x55dbea(_0x1944ff[_0x2ee9ea('0xfe8')]);const _0xd1be27=(_0x1944ff[_0x2ee9ea('0x135a')][_0x2ee9ea('0x23f5')]-0x1)*_0x1944ff[_0x2ee9ea('0x135a')][_0x2ee9ea('0x68e')];_0x1944ff[_0x2ee9ea('0x26ed')]=_0x283545()[_0x2ee9ea('0x280')](_0x1944ff[_0x2ee9ea('0xfe8')],_0xd1be27)[_0x2ee9ea('0x845')](0x0,_0x1944ff[_0x2ee9ea('0x135a')][_0x2ee9ea('0x68e')]);for(let _0x2c2234=0x0;_0x2c2234<_0x1944ff['paginatedAgents'][_0x2ee9ea('0x2566')];_0x2c2234+=0x1){_0x1944ff[_0x2ee9ea('0x1dc2')]['push'](_0x1944ff[_0x2ee9ea('0x26ed')][_0x2c2234]['id']);}_0xd205b0['resolve'](),_0x1944ff[_0x2ee9ea('0x374')]=!![];}function _0x567f7b(_0x980298){const _0x1b97e8=_0x54f35a;_0x1944ff[_0x1b97e8('0x1713')][_0x980298['id']]&&(_0x283545()['merge'](_0x1944ff[_0x1b97e8('0x1713')][_0x980298['id']],_0x283545()[_0x1b97e8('0x41b')](_0x283545()[_0x1b97e8('0x5a9')](_0x980298,_0xb2e31d),_0x4fe13f)),_0x283545()[_0x1b97e8('0x2503')](_0x1944ff[_0x1b97e8('0x1c55')][_0x980298['id']],_0x283545()['pick'](_0x283545()[_0x1b97e8('0x5a9')](_0x980298,_0xb2e31d),_0x4fe13f)),_0x4ac31a(_0x1944ff[_0x1b97e8('0x1713')][_0x980298['id']]));}function _0x29196e(_0x2b481c){const _0x5d863c=_0x54f35a;_0x1944ff[_0x5d863c('0x1713')][_0x2b481c['id']]&&(_0x283545()['merge'](_0x1944ff[_0x5d863c('0x1713')][_0x2b481c['id']],_0x283545()['pick'](_0x2b481c,_0x4fe13f)),_0x283545()[_0x5d863c('0x2503')](_0x1944ff[_0x5d863c('0x1c55')][_0x2b481c['id']],_0x283545()[_0x5d863c('0x41b')](_0x2b481c,_0x4fe13f)),_0x2b481c[_0x5d863c('0x233e')]&&(_0x1944ff[_0x5d863c('0x1713')][_0x2b481c['id']]['globalStatusTime']=_0x2b481c['lastPauseAt'],_0x1944ff['rpcAgents'][_0x2b481c['id']][_0x5d863c('0xf3b')]=_0x2b481c['lastPauseAt']),_0x4ac31a(_0x1944ff['agents'][_0x2b481c['id']]));}function _0x2f65a0(_0x32485a){const _0x1b20d4=_0x54f35a;_0x1944ff[_0x1b20d4('0x1713')][_0x1944ff[_0x1b20d4('0x1564')][_0x32485a[_0x1b20d4('0x7f4')]]]&&(_0x283545()['merge'](_0x1944ff[_0x1b20d4('0x1713')][_0x1944ff[_0x1b20d4('0x1564')][_0x32485a[_0x1b20d4('0x7f4')]]],_0x283545()['pick'](_0x32485a,[_0x1b20d4('0x1ab4'),'destconnectedlinenum'])),_0x283545()[_0x1b20d4('0x2503')](_0x1944ff[_0x1b20d4('0x1c55')][_0x1944ff[_0x1b20d4('0x1564')][_0x32485a[_0x1b20d4('0x7f4')]]],_0x283545()['pick'](_0x32485a,[_0x1b20d4('0x1ab4'),_0x1b20d4('0xdb6')])));}function _0x5cb0f2(_0x59ef8b){const _0x2017f4=_0x54f35a;_0x1944ff[_0x2017f4('0x1713')][_0x1944ff[_0x2017f4('0x1564')][_0x59ef8b['destaccountcode']]]&&(_0x1944ff['agents'][_0x1944ff[_0x2017f4('0x1564')][_0x59ef8b['destaccountcode']]]=_0x283545()[_0x2017f4('0x5a9')](_0x1944ff[_0x2017f4('0x1713')][_0x1944ff['agentInternal'][_0x59ef8b[_0x2017f4('0x7f4')]]],[_0x2017f4('0x1ab4'),_0x2017f4('0xdb6')]),_0x1944ff[_0x2017f4('0x1c55')][_0x1944ff[_0x2017f4('0x1564')][_0x59ef8b[_0x2017f4('0x7f4')]]]=_0x283545()[_0x2017f4('0x5a9')](_0x1944ff['rpcAgents'][_0x1944ff[_0x2017f4('0x1564')][_0x59ef8b[_0x2017f4('0x7f4')]]],[_0x2017f4('0x1ab4'),_0x2017f4('0xdb6')]));}function _0xec8a30(_0xb2be2a){const _0x53850c=_0x54f35a;return _0x243434['user']['logout']({'id':_0xb2be2a['id'],'device':_0x53850c('0x548'),'agent_id':_0xb2be2a['id'],'agent_name':_0xb2be2a[_0x53850c('0x1a8d')]})[_0x53850c('0x1714')][_0x53850c('0x2788')](function(){const _0xc76034=_0x53850c;_0x425dcc[_0xc76034('0x173b')]({'title':_0xc76034('0x256b'),'msg':_0xb2be2a[_0xc76034('0x2831')]+_0xc76034('0x12e2')}),_0x1944ff[_0xc76034('0x1713')][_0xb2be2a['id']]&&(_0x1944ff[_0xc76034('0x1713')][_0xb2be2a['id']][_0xc76034('0x7c2')]=![]),_0x1944ff['rpcAgents'][_0xb2be2a['id']]&&(_0x1944ff['rpcAgents'][_0xb2be2a['id']][_0xc76034('0x7c2')]=![]),_0x4f4e01();})['catch'](function(_0x228201){const _0x36ede8=_0x53850c;_0x425dcc['error']({'title':_0x228201[_0x36ede8('0x1b51')]?_0x36ede8('0x15d1')+_0x228201['status']+_0x36ede8('0x1b0b')+_0x228201[_0x36ede8('0x22ce')]:_0x36ede8('0x184d'),'msg':_0x228201[_0x36ede8('0x11fc')]?JSON[_0x36ede8('0x1be0')](_0x228201[_0x36ede8('0x11fc')][_0x36ede8('0x15e2')]):_0x228201[_0x36ede8('0x17df')]()});});}function _0x24c44e(_0x4a18f0,_0x535d96){const _0x51f447=_0x54f35a;return _0x243434[_0x51f447('0x1e6a')][_0x51f447('0x619')]({'id':_0x4a18f0['id'],'type':_0x535d96})[_0x51f447('0x1714')][_0x51f447('0x2788')](function(_0x3c35f7){const _0x1a6ab7=_0x51f447;_0x1944ff['agents'][_0x4a18f0['id']]&&_0x283545()[_0x1a6ab7('0x2503')](_0x1944ff[_0x1a6ab7('0x1713')][_0x4a18f0['id']],_0x283545()['pick'](_0x3c35f7,_0x4fe13f)),_0x1944ff[_0x1a6ab7('0x1c55')][_0x4a18f0['id']]&&_0x283545()[_0x1a6ab7('0x2503')](_0x1944ff[_0x1a6ab7('0x1c55')][_0x4a18f0['id']],_0x283545()[_0x1a6ab7('0x41b')](_0x3c35f7,_0x4fe13f)),_0x4ac31a(_0x1944ff['agents'][_0x4a18f0['id']]);})[_0x51f447('0x1cb5')](function(_0x4ab87c){const _0x28f151=_0x51f447;_0x425dcc[_0x28f151('0x5e8')]({'title':_0x4ab87c[_0x28f151('0x1b51')]?_0x28f151('0x15d1')+_0x4ab87c['status']+_0x28f151('0x1b0b')+_0x4ab87c[_0x28f151('0x22ce')]:'api.staff.save','msg':_0x4ab87c['data']?JSON[_0x28f151('0x1be0')](_0x4ab87c['data'][_0x28f151('0x15e2')]):_0x4ab87c[_0x28f151('0x17df')]()});});}function _0x22eb78(_0x485b0a){const _0x1a3e38=_0x54f35a;return _0x243434['user'][_0x1a3e38('0x1826')]({'id':_0x485b0a['id']})['$promise'][_0x1a3e38('0x2788')](function(_0x38de46){const _0x8e27f2=_0x1a3e38;_0x1944ff['agents'][_0x485b0a['id']]&&_0x283545()[_0x8e27f2('0x2503')](_0x1944ff[_0x8e27f2('0x1713')][_0x485b0a['id']],_0x283545()[_0x8e27f2('0x41b')](_0x38de46,_0x4fe13f)),_0x1944ff['rpcAgents'][_0x485b0a['id']]&&_0x283545()[_0x8e27f2('0x2503')](_0x1944ff[_0x8e27f2('0x1c55')][_0x485b0a['id']],_0x283545()[_0x8e27f2('0x41b')](_0x38de46,_0x4fe13f)),_0x4ac31a(_0x1944ff[_0x8e27f2('0x1713')][_0x485b0a['id']]);})[_0x1a3e38('0x1cb5')](function(_0x3e14b8){const _0x247f6c=_0x1a3e38;_0x425dcc[_0x247f6c('0x5e8')]({'title':_0x3e14b8[_0x247f6c('0x1b51')]?'API:'+_0x3e14b8[_0x247f6c('0x1b51')]+_0x247f6c('0x1b0b')+_0x3e14b8[_0x247f6c('0x22ce')]:_0x247f6c('0x184d'),'msg':_0x3e14b8[_0x247f6c('0x11fc')]?JSON['stringify'](_0x3e14b8[_0x247f6c('0x11fc')][_0x247f6c('0x15e2')]):_0x3e14b8[_0x247f6c('0x17df')]()});});}function _0x180946(_0x5ef695){const _0x23f041=_0x54f35a;_0x5e4656[_0x23f041('0x2fa')](_0x5e4656[_0x23f041('0x204f')]()[_0x23f041('0x1e4e')](!![])[_0x23f041('0x14e4')]('Legend')['htmlContent']('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x23f041('0x24d0')](_0x5ef695));}function _0x47d73f(_0x42f948,_0x2ffe46){const _0x5cf9c8=_0x54f35a;_0x5e4656[_0x5cf9c8('0x2fa')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0x5cf9c8('0x16b1')](_0x55b759['body']),'targetEvent':_0x2ffe46,'clickOutsideToClose':!![],'locals':{'agent':_0x42f948,'agents':[],'channel':_0x5cf9c8('0x18aa'),'direction':_0x5cf9c8('0x2e4'),'crudPermissions':_0x1944ff['crudPermissions']}});}function _0x3071b0(_0x490f4c){const _0x28fe16=_0x54f35a;return _0x490f4c===_0x28fe16('0x619')||_0x490f4c===_0x28fe16('0x1d48');}function _0x27724c(_0x4a25e6){const _0x6e5a3c=_0x54f35a;return _0x4a25e6===_0x6e5a3c('0x619');}function _0x5d8dae(_0x5266f5){const _0xe7c75a=_0x54f35a;return _0x5266f5===_0xe7c75a('0x1d48');}function _0x5ef8ee(_0x3c17be){const _0x17dd16=_0x54f35a;return _0x3c17be===_0x17dd16('0x124c')||_0x3c17be===_0x17dd16('0x119')||_0x3c17be===_0x17dd16('0x27f0')||_0x3c17be===_0x17dd16('0x26f8')||_0x283545()[_0x17dd16('0x1015')](_0x3c17be);}function _0x4719a9(_0x781868,_0x40feb8){const _0xd348c6=_0x54f35a;if(_0x40feb8===_0xd348c6('0x1f60')){if(_0x781868[_0x40feb8+_0xd348c6('0x21d8')]!==_0xd348c6('0x124c'))return _0x781868[_0x40feb8+_0xd348c6('0x21d8')];if(_0x781868[_0x40feb8+'Pause'])return _0x781868[_0x40feb8+_0xd348c6('0x21d8')]=_0xd348c6('0x619'),_0xd348c6('0x619');return _0xd348c6('0x124c');}else{if(_0x781868[_0x40feb8+'Pause'])return _0x781868[_0x40feb8+_0xd348c6('0x21d8')]=_0xd348c6('0x619'),_0xd348c6('0x619');return _0x781868[_0x40feb8+_0xd348c6('0x21d8')];}}function _0x4ac31a(_0xe99138){const _0x2cb776=_0x54f35a;let _0x2e3c97=_0x2cb776('0x119');if(_0x283545()['every']([_0x4719a9(_0xe99138,'voice'),_0x4719a9(_0xe99138,_0x2cb776('0x231')),_0x4719a9(_0xe99138,'mail'),_0x4719a9(_0xe99138,'openchannel'),_0x4719a9(_0xe99138,'sms'),_0x4719a9(_0xe99138,_0x2cb776('0x195d')),_0x4719a9(_0xe99138,_0x2cb776('0x10cf'))],_0x3071b0))_0x2e3c97=_0x2cb776('0x619');else{if(_0x283545()[_0x2cb776('0xc5d')]([_0x4719a9(_0xe99138,_0x2cb776('0x1f60')),_0x4719a9(_0xe99138,_0x2cb776('0x231')),_0x4719a9(_0xe99138,_0x2cb776('0x2795')),_0x4719a9(_0xe99138,'openchannel'),_0x4719a9(_0xe99138,'sms'),_0x4719a9(_0xe99138,_0x2cb776('0x195d')),_0x4719a9(_0xe99138,'fax')],_0x3071b0))_0x2e3c97=_0x2cb776('0x1d48');else _0x283545()[_0x2cb776('0x111e')]([_0x4719a9(_0xe99138,_0x2cb776('0x1f60')),_0x4719a9(_0xe99138,'chat'),_0x4719a9(_0xe99138,_0x2cb776('0x2795')),_0x4719a9(_0xe99138,'openchannel'),_0x4719a9(_0xe99138,'sms'),_0x4719a9(_0xe99138,'whatsapp'),_0x4719a9(_0xe99138,_0x2cb776('0x10cf'))],_0x5ef8ee)?_0x2e3c97=_0x2cb776('0x124c'):_0x2e3c97=_0x2cb776('0xed9');}_0xe99138[_0x2cb776('0xee3')]!==_0x2e3c97&&(_0xe99138['globalStatus']=_0x2e3c97,_0xe99138[_0x2cb776('0x24eb')]?(_0xe99138['init']=![],_0xe99138['globalStatusTime']=_0x3071b0(_0x2e3c97)?_0x283545()['toNumber'](_0x59f37a()(_0xe99138[_0x2cb776('0x233e')])[_0x2cb776('0x22b4')]('x')):_0x283545()[_0x2cb776('0xb0a')]([_0xe99138[_0x2cb776('0x48b')],_0xe99138[_0x2cb776('0x1eeb')],_0xe99138[_0x2cb776('0x1831')],_0xe99138[_0x2cb776('0x27b0')],_0xe99138[_0x2cb776('0x1ac7')],_0xe99138[_0x2cb776('0x320')],_0xe99138[_0x2cb776('0xbc')]])):_0xe99138[_0x2cb776('0xf3b')]=_0x283545()['toNumber'](_0x59f37a()()[_0x2cb776('0x22b4')]('x')));}function _0x55dbea(_0x4a540c){const _0x730106=_0x54f35a,_0x4c0d12=_0x283545()[_0x730106('0x993')](_0x1944ff['query'][_0x730106('0x1dc2')],'-')?_0x730106('0x25b5'):_0x730106('0xe07');return _0x283545()[_0x730106('0xf87')](_0x4a540c,[_0x1944ff[_0x730106('0x135a')]['order']['replace']('-','')],[_0x4c0d12]);}function _0xf56168(){_0x1cfa2c&&(_0xf6f706['cancel'](_0x1cfa2c),_0x1cfa2c=null);}function _0xd2ca07(_0x2b96e1,_0x5df830){const _0x208dfd=_0x54f35a;return _0x243434[_0x208dfd('0x1e6a')][_0x208dfd('0x2740')]({'id':_0x2b96e1['id']},{'screenrecording':_0x5df830})[_0x208dfd('0x1714')]['catch'](function(_0x4c1cd5){const _0x23e08f=_0x208dfd;_0x425dcc[_0x23e08f('0x5e8')]({'title':_0x4c1cd5['status']?_0x23e08f('0x15d1')+_0x4c1cd5[_0x23e08f('0x1b51')]+_0x23e08f('0x1b0b')+_0x4c1cd5[_0x23e08f('0x22ce')]:_0x23e08f('0x863'),'msg':_0x4c1cd5[_0x23e08f('0x11fc')]?JSON[_0x23e08f('0x1be0')](_0x4c1cd5[_0x23e08f('0x11fc')]['message']):_0x4c1cd5['toString']()});});}_0x5629cb['$on'](_0x54f35a('0x26ac'),function(){const _0x54a1aa=_0x54f35a;_0x42ea4f[_0x54a1aa('0x277f')](_0x54a1aa('0x71')),_0x42ea4f[_0x54a1aa('0x277f')](_0x54a1aa('0x1cb6')),_0x42ea4f[_0x54a1aa('0x277f')]('user:agentconnect'),_0x42ea4f[_0x54a1aa('0x277f')](_0x54a1aa('0x116b')),_0xf56168();});}const _0x4c5376=_0x54f65,_0x4f5f61=_0x18dd13['p']+_0x34e79e('0xecf'),_0x4dfbe8=_0x18dd13['p']+_0x34e79e('0x1976');_0x2e90b3['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1580'),_0x34e79e('0x16e3'),'queues',_0x34e79e('0x274c'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x2e90b3(_0x46d24e,_0x3714b2,_0x4229dd,_0x2dd8b2,_0xf0bdd,_0x44ea80,_0xa706a7,_0x2bef7d,_0x4ab1b7,_0x3264f2,_0x28986d,_0x182e7c,_0xe4e9a9,_0x37e5a7){const _0x27d816=_0x34e79e,_0x1b2bad=this,_0xbeffb8=[_0x27d816('0x477'),_0x27d816('0x2705'),'waiting','talking',_0x27d816('0x21c9'),'originated',_0x27d816('0x15e2'),'dialActive','dialMethod',_0x27d816('0x312'),_0x27d816('0x120')];_0x1b2bad[_0x27d816('0x9cb')]=_0x37e5a7[_0x27d816('0x24cc')](),_0x1b2bad[_0x27d816('0x338')]=_0xa706a7[_0x27d816('0x338')]?_0xa706a7[_0x27d816('0x338')]:0x0,_0x1b2bad[_0x27d816('0x283e')]=_0xa706a7?_0x283545()[_0x27d816('0x13cf')](_0xa706a7[_0x27d816('0x25df')]?_0xa706a7[_0x27d816('0x25df')]:[],'id'):{},_0x1b2bad['rpcQueues']=_0x2bef7d?_0x283545()[_0x27d816('0x13cf')](_0x2bef7d[_0x27d816('0x25df')]?_0x2bef7d[_0x27d816('0x25df')]:[],'id'):{},_0x1b2bad[_0x27d816('0x63c')]=_0x182e7c,_0x1b2bad['userProfileSection']=_0xe4e9a9&&_0xe4e9a9[_0x27d816('0x338')]==0x1?_0xe4e9a9[_0x27d816('0x25df')][0x0]:null,_0x1b2bad['crudPermissions']=_0x37e5a7[_0x27d816('0x157e')](_0x1b2bad[_0x27d816('0xec9')]?_0x1b2bad[_0x27d816('0xec9')][_0x27d816('0xe28')]:null);_0x37e5a7[_0x27d816('0x1516')](_0x27d816('0xe23'))?_0x1b2bad[_0x27d816('0x135a')]={'type':_0x27d816('0x2e4'),'sort':_0x27d816('0x1cee'),'limit':0xa,'page':0x1}:_0x1b2bad['query']={'id':_0x1b2bad[_0x27d816('0x9cb')]['id'],'channel':'openchannel','type':'inbound','sort':_0x27d816('0x1cee'),'limit':0xa,'page':0x1};_0x1b2bad['success']=_0x1bbbb9,_0x1b2bad[_0x27d816('0x138a')]=_0x4860f4,_0x1b2bad[_0x27d816('0x1a81')]=_0xd3c34f,_0x1b2bad[_0x27d816('0x2510')]=_0x178179,_0x1b2bad[_0x27d816('0x154c')]=_0x1c180d,_0x1b2bad['onSave']=_0x28b496,_0x1b2bad[_0x27d816('0x25e9')]=_0x205777,_0x1b2bad[_0x27d816('0x1174')]=_0x37d125,_0x1b2bad['onPause']=_0x49865a,_0x1b2bad[_0x27d816('0x18e3')]=_0xdeb60b,_0x1b2bad[_0x27d816('0x234')]=_0x181882,_0x1b2bad['$onInit']=_0x5732f4,_0x1b2bad['order']=[],_0x283545()[_0x27d816('0x1b')](_0x1b2bad[_0x27d816('0x283e')],function(_0xf84e15){const _0x629135=_0x27d816;_0x1b2bad[_0x629135('0x1dc2')][_0x629135('0x13e3')](_0xf84e15['id']);}),_0x3264f2['on'](_0x27d816('0x1e55'),_0x1b2bad[_0x27d816('0x158d')]),_0x3264f2['on'](_0x27d816('0xc46'),_0x1b2bad[_0x27d816('0x25e9')]),_0x3264f2['on'](_0x27d816('0x161d'),_0x1b2bad[_0x27d816('0x1174')]),_0x3264f2['on']('user:update',_0x1b2bad[_0x27d816('0x1768')]),_0x3264f2['on'](_0x27d816('0x11e0'),_0x1b2bad[_0x27d816('0x234')]),_0x3264f2['on']('userVoiceQueue:save',_0x1b2bad[_0x27d816('0x18e3')]);function _0x5732f4(){const _0x9b3305=_0x27d816,_0x522f6c=[];return _0x283545()['forIn'](_0x1b2bad['queues'],function(_0x1037bd,_0x48db12){const _0x5d147f=a0_0x14e7;_0x1037bd['paused']=0x0,_0x1037bd[_0x5d147f('0xc65')]=0x0,_0x1b2bad[_0x5d147f('0x283e')][_0x48db12][_0x5d147f('0x1713')]={},_0x522f6c[_0x5d147f('0x13e3')](_0x4ab1b7[_0x5d147f('0xb26')][_0x5d147f('0xe75')]({'id':_0x48db12})[_0x5d147f('0x1714')]),_0x1b2bad[_0x5d147f('0x274c')][_0x48db12]&&_0x283545()[_0x5d147f('0x2503')](_0x1037bd,_0x283545()[_0x5d147f('0x41b')](_0x1b2bad[_0x5d147f('0x274c')][_0x48db12],_0xbeffb8));}),_0x2dd8b2[_0x9b3305('0x1def')](_0x522f6c)['then'](function(_0x324441){const _0x595cfc=_0x9b3305;for(let _0xf7892b=0x0;_0xf7892b<_0x324441[_0x595cfc('0x2566')];_0xf7892b+=0x1){for(let _0x4c808c=0x0;_0x4c808c<_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x595cfc('0x2566')];_0x4c808c++){_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x4c808c][_0x595cfc('0x120')]&&_0x1b2bad['queues'][_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x4c808c][_0x595cfc('0x53')]][_0x595cfc('0x120')]++,_0x1b2bad[_0x595cfc('0x283e')][_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x4c808c][_0x595cfc('0x53')]][_0x595cfc('0xc65')]++,_0x1b2bad['queues'][_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x4c808c][_0x595cfc('0x53')]][_0x595cfc('0x1713')][_0x324441[_0xf7892b][_0x595cfc('0x25df')][_0x4c808c][_0x595cfc('0x3bb')]]=_0x324441[_0xf7892b]['rows'][_0x4c808c][_0x595cfc('0x53')];}}})[_0x9b3305('0x1cb5')](function(_0x1f83b7){const _0x15c567=_0x9b3305;console[_0x15c567('0x5e8')](_0x1f83b7);});}function _0x28b496(_0xdd00fd){const _0x528e0f=_0x27d816;_0x1b2bad[_0x528e0f('0x283e')][_0xdd00fd['id']]&&_0x283545()['merge'](_0x1b2bad[_0x528e0f('0x283e')][_0xdd00fd['id']],_0x283545()[_0x528e0f('0x41b')](_0xdd00fd,_0xbeffb8));}function _0x205777(_0x43e642){const _0x4b726e=_0x27d816;_0x1b2bad[_0x4b726e('0x283e')][_0x43e642[_0x4b726e('0x53')]]&&_0x1b2bad[_0x4b726e('0x283e')][_0x43e642['OpenchannelQueueId']][_0x4b726e('0xc65')]++;}function _0x37d125(_0x2f072f){const _0x1f8bed=_0x27d816;_0x1b2bad['queues'][_0x2f072f[_0x1f8bed('0x53')]]&&_0x1b2bad[_0x1f8bed('0x283e')][_0x2f072f[_0x1f8bed('0x53')]][_0x1f8bed('0xc65')]--;}function _0x49865a(_0x2f5a71){const _0x76d5bf=_0x27d816;console[_0x76d5bf('0x10df')]('onPause',_0x2f5a71);if(_0x2f5a71[_0x76d5bf('0x2a1')])_0x283545()[_0x76d5bf('0x1b')](_0x1b2bad[_0x76d5bf('0x283e')],function(_0x47c2b7){const _0x31f27a=_0x76d5bf;_0x47c2b7['agents'][_0x2f5a71['id']]&&(_0x47c2b7[_0x31f27a('0x120')]+=0x1,console[_0x31f27a('0x10df')](_0x31f27a('0x619')));});else!_0x2f5a71['voicePause']&&_0x283545()['forIn'](_0x1b2bad['queues'],function(_0x194c8f){const _0x4b01f7=_0x76d5bf;_0x194c8f['agents'][_0x2f5a71['id']]&&(_0x194c8f[_0x4b01f7('0x120')]>0x0&&(_0x194c8f[_0x4b01f7('0x120')]-=0x1,console['log'](_0x4b01f7('0x1826'))));});}function _0xdeb60b(_0x157da9){const _0xebb7a5=_0x27d816;console[_0xebb7a5('0x10df')](_0xebb7a5('0x388'),_0x157da9),_0x1b2bad[_0xebb7a5('0x283e')][_0x157da9[_0xebb7a5('0x53')]]&&(_0x1b2bad[_0xebb7a5('0x283e')][_0x157da9['OpenchannelQueueId']][_0xebb7a5('0xc65')]+=0x1,_0x1b2bad[_0xebb7a5('0x283e')][_0x157da9['OpenchannelQueueId']][_0xebb7a5('0x1713')][_0x157da9[_0xebb7a5('0x3bb')]]=_0x157da9[_0xebb7a5('0x53')]);}function _0x181882(_0x5d3bd3){const _0x49fe34=_0x27d816;console[_0x49fe34('0x10df')](_0x49fe34('0x234'),_0x5d3bd3),_0x1b2bad['queues'][_0x5d3bd3[_0x49fe34('0x53')]]&&_0x1b2bad[_0x49fe34('0x283e')][_0x5d3bd3[_0x49fe34('0x53')]][_0x49fe34('0xc65')]>0x0&&(_0x1b2bad[_0x49fe34('0x283e')][_0x5d3bd3['OpenchannelQueueId']][_0x49fe34('0xc65')]-=0x1,delete _0x1b2bad[_0x49fe34('0x283e')][_0x5d3bd3[_0x49fe34('0x53')]][_0x49fe34('0x1713')][_0x5d3bd3['UserId']]);}let _0x22f095=!![],_0x291fb1=0x1;_0x46d24e['$watch'](_0x27d816('0x1569'),function(_0x18e5a9,_0x45d2b9){const _0x1fb285=_0x27d816;_0x22f095?_0x3714b2(function(){_0x22f095=![];}):(!_0x45d2b9&&(_0x291fb1=_0x1b2bad['query']['page']),_0x18e5a9!==_0x45d2b9&&(_0x1b2bad[_0x1fb285('0x135a')][_0x1fb285('0x23f5')]=0x1),!_0x18e5a9&&(_0x1b2bad[_0x1fb285('0x135a')][_0x1fb285('0x23f5')]=_0x291fb1),_0x1b2bad[_0x1fb285('0x138a')]());});function _0x1bbbb9(_0x5b3c17){const _0x2a1675=_0x27d816;_0x1b2bad[_0x2a1675('0x338')]=_0x5b3c17[_0x2a1675('0x338')],_0x1b2bad[_0x2a1675('0x283e')]=_0x5b3c17?_0x283545()[_0x2a1675('0x13cf')](_0x5b3c17[_0x2a1675('0x25df')]?_0x5b3c17[_0x2a1675('0x25df')]:[],'id'):{};if(_0x5b3c17['rows']){_0x1b2bad[_0x2a1675('0x1dc2')]=[];for(let _0x327f27=0x0;_0x327f27<_0x5b3c17[_0x2a1675('0x25df')][_0x2a1675('0x2566')];_0x327f27++){_0x1b2bad[_0x2a1675('0x1dc2')][_0x2a1675('0x13e3')](_0x5b3c17[_0x2a1675('0x25df')][_0x327f27]['id']);}}_0x5732f4();}function _0x4860f4(){const _0x472615=_0x27d816;_0x1b2bad[_0x472615('0x135a')][_0x472615('0x19e')]=(_0x1b2bad[_0x472615('0x135a')][_0x472615('0x23f5')]-0x1)*_0x1b2bad[_0x472615('0x135a')][_0x472615('0x68e')],_0x37e5a7[_0x472615('0x1516')]('admin')?_0x1b2bad[_0x472615('0x1808')]=_0x4ab1b7['openchannelQueue'][_0x472615('0x1335')](_0x1b2bad[_0x472615('0x135a')],_0x1bbbb9)[_0x472615('0x1714')]:(_0x1b2bad[_0x472615('0x135a')]['id']=_0x1b2bad[_0x472615('0x63c')]['id'],_0x1b2bad['query'][_0x472615('0xb13')]=_0x472615('0x2080'),_0x1b2bad['promise']=_0x4ab1b7['userProfile'][_0x472615('0xa1')](_0x1b2bad[_0x472615('0x135a')],_0x1bbbb9)[_0x472615('0x1714')]);}function _0xd3c34f(_0x27deff,_0xcfcbfe){const _0x498566=_0x27d816;_0x4229dd['show']({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x4f5f61,'parent':angular['element'](_0xf0bdd[_0x498566('0x945')]),'targetEvent':_0x27deff,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0xcfcbfe,'openchannelQueues':_0x283545()[_0x498566('0xc5')](_0x1b2bad[_0x498566('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x1b2bad[_0x498566('0xe28')]}});}function _0x178179(_0x1099f4,_0x280375){const _0x37bd65=_0x27d816;_0x4229dd[_0x37bd65('0x2fa')]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0x4dfbe8,'parent':angular[_0x37bd65('0x16b1')](_0xf0bdd['body']),'targetEvent':_0x1099f4,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x280375,'openchannelQueues':_0x1b2bad[_0x37bd65('0x283e')]?_0x1b2bad['queues'][_0x37bd65('0x25df')]:[],'realtime':![],'crudPermissions':_0x1b2bad[_0x37bd65('0xe28')]}});}function _0x1c180d(_0x4c5ce0){const _0x494a08=_0x27d816;return _0x4ab1b7[_0x494a08('0xb26')][_0x494a08('0x2740')](_0x4c5ce0)[_0x494a08('0x1714')][_0x494a08('0x2788')](function(){const _0x55ae20=_0x494a08;_0x28986d['success']({'title':_0x55ae20('0xc31'),'msg':_0x4c5ce0[_0x55ae20('0x1a8d')]?_0x4c5ce0[_0x55ae20('0x1a8d')]+_0x55ae20('0x6f8'):''});})[_0x494a08('0x1cb5')](function(_0x29258a){const _0x52e540=_0x494a08;_0x28986d[_0x52e540('0x5e8')]({'title':_0x52e540('0xa30'),'msg':_0x29258a[_0x52e540('0x15e2')]});});}_0x46d24e[_0x27d816('0x651')](_0x27d816('0x26ac'),function(){const _0x229ea6=_0x27d816;_0x3264f2[_0x229ea6('0x277f')](_0x229ea6('0x1e55')),_0x3264f2['removeAllListeners']('userOpenchannelQueue:remove'),_0x3264f2['removeAllListeners']('userOpenchannelQueue:save'),_0x3264f2['removeAllListeners'](_0x229ea6('0x1cb6')),_0x3264f2[_0x229ea6('0x277f')](_0x229ea6('0x11e0')),_0x3264f2[_0x229ea6('0x277f')](_0x229ea6('0x454'));});}const _0x383536=_0x2e90b3;function _0x35094a(){const _0x5ed9c5=_0x34e79e;return{'status':{'registered':_0x5ed9c5('0xc38'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x5ed9c5('0x1ad6'),'reachable':_0x5ed9c5('0xc38'),'unreachable':_0x5ed9c5('0x1ad6'),'unknown':_0x5ed9c5('0x22b7')},'state':{'unknown':_0x5ed9c5('0x165d'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x5ed9c5('0xf03'),'invalid':_0x5ed9c5('0x165d'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x5ed9c5('0x18d1'),'ringinuse':_0x5ed9c5('0x18d1'),'onhold':_0x5ed9c5('0x234e')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x5ed9c5('0x393')},'channelStatusOut':{'ring':_0x5ed9c5('0x2223'),'up':_0x5ed9c5('0x699'),'hangup':_0x5ed9c5('0x393')}};}const _0x2fe13f=_0x35094a;_0x3dca2f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0xd6f')];function _0x3dca2f(_0x1635f9,_0x152089,_0x3dcb5b){const _0xe719b1=_0x34e79e,_0x479dee=this;_0x3dcb5b[_0xe719b1('0x16a4')](),_0x3dcb5b[_0xe719b1('0x26c')](),_0x479dee['selectedTab']=0x0;switch(_0x152089[_0xe719b1('0x1c7f')][_0xe719b1('0x1a8d')]){case _0xe719b1('0xd72'):_0x479dee[_0xe719b1('0xcb3')]=0x0;break;case _0xe719b1('0x7d'):_0x479dee[_0xe719b1('0xcb3')]=0x1;break;default:_0x479dee[_0xe719b1('0xcb3')]=0x0,_0x152089['go'](_0xe719b1('0xd72'));}_0x1635f9[_0xe719b1('0x1662')](_0xe719b1('0x362'),function(_0x27374c,_0x3f3ea9){const _0x1d00fa=_0xe719b1;if(_0x27374c!==_0x3f3ea9)switch(_0x27374c){case 0x0:_0x152089['go'](_0x1d00fa('0xd72'));break;case 0x1:_0x152089['go'](_0x1d00fa('0x7d'));break;default:_0x152089['go'](_0x1d00fa('0xd72'));}});}const _0x3ad5dd=_0x3dca2f;_0x1665ad['$inject']=[_0x34e79e('0xf2d')];function _0x1665ad(_0x22474b){const _0xa67bc9=_0x34e79e;_0x22474b[_0xa67bc9('0x249b')]('app.openchannel.realtime',{'url':_0xa67bc9('0x2090'),'views':{'content@app':{'templateUrl':_0x51d690,'controller':_0xa67bc9('0x264a')}},'resolve':{'userProfile':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x28108d,_0x201ec1){const _0x5adcce=_0xa67bc9;return _0x201ec1[_0x5adcce('0x1516')](_0x5adcce('0xe23'))?null:_0x28108d[_0x5adcce('0x2322')]('userProfile@get',{'fields':_0x5adcce('0x3f0'),'id':_0x201ec1[_0x5adcce('0x24cc')]()[_0x5adcce('0x237f')]});}],'userProfileSection':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x2be118,_0x495769){const _0xff6263=_0xa67bc9;return _0x495769[_0xff6263('0x1516')](_0xff6263('0xe23'))?null:_0x2be118['resolve'](_0xff6263('0x22ca'),{'fields':_0xff6263('0xe2c'),'userProfileId':_0x495769['getCurrentUser']()[_0xff6263('0x237f')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0xa67bc9('0x249b')]('app.openchannel.realtime.agents',{'url':_0xa67bc9('0xa9b'),'controller':'AgentsOpenchannelRealtimeController\x20as\x20vm','templateUrl':_0xf68d8e,'resolve':{'pauses':[_0xa67bc9('0x1318'),function(_0x46a199){const _0x2c9cc3=_0xa67bc9;return _0x46a199[_0x2c9cc3('0x2322')](_0x2c9cc3('0x6c1'),{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x250e5f,_0x4396f7){const _0x1c4f5a=_0xa67bc9;return _0x4396f7[_0x1c4f5a('0x1516')](_0x1c4f5a('0xe23'))?_0x250e5f[_0x1c4f5a('0x2322')]('user@get',{'fields':_0x1c4f5a('0xed0'),'role':_0x1c4f5a('0x188b'),'sort':_0x1c4f5a('0x2831'),'nolimit':!![]}):_0x250e5f[_0x1c4f5a('0x2322')]('userProfile@getResources',{'id':_0x4396f7[_0x1c4f5a('0x24cc')]()[_0x1c4f5a('0x237f')],'section':_0x1c4f5a('0x1f72'),'fields':_0x1c4f5a('0xed0'),'role':'agent','sort':'fullname','nolimit':!![]});}],'userProfile':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x364f87,_0x2c9457){const _0x22538e=_0xa67bc9;return _0x2c9457[_0x22538e('0x1516')](_0x22538e('0xe23'))?null:_0x364f87[_0x22538e('0x2322')](_0x22538e('0x231d'),{'fields':_0x22538e('0x3f0'),'id':_0x2c9457[_0x22538e('0x24cc')]()[_0x22538e('0x237f')]});}],'userProfileSection':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x29fcbc,_0x494b8d){const _0x3c8fb6=_0xa67bc9;return _0x494b8d[_0x3c8fb6('0x1516')](_0x3c8fb6('0xe23'))?null:_0x29fcbc[_0x3c8fb6('0x2322')]('userProfileSection@get',{'fields':_0x3c8fb6('0xe2c'),'userProfileId':_0x494b8d[_0x3c8fb6('0x24cc')]()[_0x3c8fb6('0x237f')],'sectionId':0xca});}],'rpcAgents':[_0xa67bc9('0x1318'),function(_0x29ee45){const _0xa33ffc=_0xa67bc9;return _0x29ee45[_0xa33ffc('0x2322')](_0xa33ffc('0x21f7'));}]},'authenticate':!![],'permissionId':0x32a})[_0xa67bc9('0x249b')](_0xa67bc9('0x7d'),{'url':'/queues','controller':'QueuesOpenchannelRealtimeController\x20as\x20vm','templateUrl':_0xadcd69,'resolve':{'queues':['apiResolver',_0xa67bc9('0x1b04'),function(_0x371158,_0x445644){const _0x3dca98=_0xa67bc9;return _0x445644[_0x3dca98('0x1516')]('admin')?_0x371158[_0x3dca98('0x2322')](_0x3dca98('0x12f5'),{'type':_0x3dca98('0x2e4'),'sort':_0x3dca98('0x1cee'),'limit':0xa,'offset':0x0}):_0x371158[_0x3dca98('0x2322')](_0x3dca98('0x27c5'),{'id':_0x445644[_0x3dca98('0x24cc')]()[_0x3dca98('0x237f')],'section':'OpenchannelQueues','channel':_0x3dca98('0x18aa'),'type':_0x3dca98('0x2e4'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x3f70bb,_0x524fd1){const _0x33480c=_0xa67bc9;return _0x524fd1[_0x33480c('0x1516')](_0x33480c('0xe23'))?null:_0x3f70bb[_0x33480c('0x2322')]('userProfile@get',{'fields':_0x33480c('0x3f0'),'id':_0x524fd1[_0x33480c('0x24cc')]()[_0x33480c('0x237f')]});}],'userProfileSection':[_0xa67bc9('0x1318'),_0xa67bc9('0x1b04'),function(_0x54a8f4,_0x3715ad){const _0x27ac09=_0xa67bc9;return _0x3715ad[_0x27ac09('0x1516')](_0x27ac09('0xe23'))?null:_0x54a8f4[_0x27ac09('0x2322')]('userProfileSection@get',{'fields':_0x27ac09('0xe2c'),'userProfileId':_0x3715ad[_0x27ac09('0x24cc')]()[_0x27ac09('0x237f')],'sectionId':0x321});}],'rpcQueues':[_0xa67bc9('0x1318'),function(_0x293a7a){const _0x5e1952=_0xa67bc9;return _0x293a7a[_0x5e1952('0x2322')](_0x5e1952('0x47c'));}]},'authenticate':!![],'permissionId':0x32a});}angular['module']('app.openchannel.realtime',[])[_0x34e79e('0x1a22')](_0x1665ad)[_0x34e79e('0xb44')](_0x34e79e('0x2158'),_0x4c5376)['controller'](_0x34e79e('0x6f6'),_0x383536)[_0x34e79e('0x227e')]('helperClasses',_0x2fe13f)[_0x34e79e('0xb44')](_0x34e79e('0x13bb'),_0x3ad5dd);const _0x1728c2=_0x18dd13['p']+_0x34e79e('0x218f'),_0xd7992b=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html',_0x432087=_0x18dd13['p']+_0x34e79e('0x1e54'),_0x13357f=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html';_0x14508a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state','$location','$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1e10'),_0x34e79e('0xfba'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x14508a(_0x257a30,_0x21730a,_0x169e0d,_0x28e329,_0x5f0ceb,_0x316298,_0x408221,_0x49e0d9,_0x35bdfa,_0x55fcb7,_0x205f69,_0x5d94ed,_0x15d334,_0x1be205){const _0x1c3ef2=_0x34e79e,_0x492ac0=this;_0x492ac0[_0x1c3ef2('0x9cb')]=_0x205f69['getCurrentUser'](),_0x492ac0[_0x1c3ef2('0x25be')]=[],_0x492ac0['setting']=_0x15d334,_0x492ac0['license']=_0x5d94ed,_0x492ac0[_0x1c3ef2('0xe28')]=_0x1be205,_0x492ac0[_0x1c3ef2('0x1193')]={},_0x492ac0['passwordPattern']=_0x492ac0[_0x1c3ef2('0x1af0')]&&_0x492ac0[_0x1c3ef2('0x1af0')][_0x1c3ef2('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x492ac0[_0x1c3ef2('0x14e4')]='OPENCHANNEL.EDIT_OPENCHANNELACCOUNT',_0x492ac0[_0x1c3ef2('0xfba')]=angular[_0x1c3ef2('0x2669')](_0x35bdfa),_0x492ac0[_0x1c3ef2('0x1e10')]=_0x49e0d9,_0x492ac0['newOpenchannelAccount']=![];!_0x492ac0[_0x1c3ef2('0xfba')]&&(_0x492ac0[_0x1c3ef2('0xfba')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x492ac0[_0x1c3ef2('0x14e4')]=_0x1c3ef2('0x210d'),_0x492ac0[_0x1c3ef2('0x26c9')]=!![]);_0x21730a[_0x1c3ef2('0x4b9')]['id']&&(_0x492ac0[_0x1c3ef2('0xfba')][_0x1c3ef2('0x22fa')]=_0x21730a[_0x1c3ef2('0x4b9')]['id']);_0x492ac0[_0x1c3ef2('0x24bf')]=_0x32e91f,_0x492ac0[_0x1c3ef2('0x124e')]=_0xdfbb72,_0x492ac0[_0x1c3ef2('0x1bee')]=_0x48fd42,_0x492ac0[_0x1c3ef2('0x2601')]=_0x58c125,_0x492ac0[_0x1c3ef2('0xca7')]=_0xda276f,_0x205f69[_0x1c3ef2('0x1516')]('admin')?_0x55fcb7[_0x1c3ef2('0x1ba4')][_0x1c3ef2('0x1335')]({'fields':_0x1c3ef2('0x1338'),'sort':_0x1c3ef2('0x1a8d')})[_0x1c3ef2('0x1714')]['then'](function(_0x5e10d9){const _0x2316c=_0x1c3ef2;_0x492ac0[_0x2316c('0x2')]=_0x5e10d9['rows']||[];})[_0x1c3ef2('0x1cb5')](function(_0x1d7cc6){const _0x4fe5ba=_0x1c3ef2;_0x408221['error']({'title':_0x1d7cc6[_0x4fe5ba('0x1b51')]?'API:'+_0x1d7cc6[_0x4fe5ba('0x1b51')]+'\x20-\x20'+_0x1d7cc6[_0x4fe5ba('0x22ce')]:_0x4fe5ba('0x11da'),'msg':_0x1d7cc6['data']?JSON[_0x4fe5ba('0x1be0')](_0x1d7cc6[_0x4fe5ba('0x11fc')]):_0x1d7cc6['toString']()});}):_0x55fcb7[_0x1c3ef2('0x1ba4')][_0x1c3ef2('0x1335')]({'fields':'id,name','sort':'name'})[_0x1c3ef2('0x1714')]['then'](function(_0xfa74cb){const _0x441e0a=_0x1c3ef2;_0x492ac0['lists']=_0xfa74cb[_0x441e0a('0x25df')]||[];})[_0x1c3ef2('0x2788')](function(){const _0x2b7325=_0x1c3ef2;return _0x55fcb7[_0x2b7325('0xec9')][_0x2b7325('0x1335')]({'userProfileId':_0x492ac0['currentUser']['userProfileId'],'sectionId':0x12d})[_0x2b7325('0x1714')];})[_0x1c3ef2('0x2788')](function(_0x156a05){const _0x17da31=_0x1c3ef2,_0x294454=_0x156a05&&_0x156a05['rows']?_0x156a05[_0x17da31('0x25df')][0x0]:null;if(!_0x294454){const _0x576502=[];let _0x1b5d30=null;_0x492ac0[_0x17da31('0xfba')]&&(_0x1b5d30=_0x283545()[_0x17da31('0x20e8')](_0x492ac0[_0x17da31('0x2')],{'id':Number(_0x492ac0['openchannelAccount']['ListId'])}));for(let _0x2bffd7=0x0;_0x2bffd7<_0x492ac0[_0x17da31('0x2')][_0x17da31('0x2566')];_0x2bffd7++){_0x1b5d30&&_0x492ac0[_0x17da31('0x2')][_0x2bffd7]['id']===_0x1b5d30['id']&&(_0x492ac0[_0x17da31('0x2')][_0x2bffd7][_0x17da31('0x3bf')]=![],_0x576502['push'](_0x492ac0[_0x17da31('0x2')][_0x2bffd7]));}_0x492ac0[_0x17da31('0x2')]=_0x576502;}else{if(!_0x294454['autoAssociation'])return _0x55fcb7['userProfileResource'][_0x17da31('0x1335')]({'sectionId':_0x294454['id']})[_0x17da31('0x1714')]['then'](function(_0x3dd490){const _0x4a88d9=_0x17da31,_0xe9f054=_0x283545()['map'](_0x3dd490[_0x4a88d9('0x25df')],function(_0x3ed14a){const _0x33c2dc=_0x4a88d9;return _0x283545()[_0x33c2dc('0x20e8')](_0x492ac0[_0x33c2dc('0x2')],{'id':_0x3ed14a[_0x33c2dc('0x2707')]});});let _0x51be77=null;_0x492ac0[_0x4a88d9('0xfba')]&&(_0x51be77=_0x283545()[_0x4a88d9('0x20e8')](_0x492ac0['lists'],{'id':Number(_0x492ac0[_0x4a88d9('0xfba')][_0x4a88d9('0x354')])}));if(_0x51be77&&!_0x283545()[_0x4a88d9('0xc5d')](_0xe9f054,['id',_0x51be77['id']])){const _0x45f6cb=_0x283545()[_0x4a88d9('0x20e8')](_0x492ac0[_0x4a88d9('0x2')],{'id':_0x51be77['id']});_0x45f6cb['canSelect']=![],_0xe9f054[_0x4a88d9('0x13e3')](_0x45f6cb);}_0x492ac0[_0x4a88d9('0x2')]=_0xe9f054;});}})[_0x1c3ef2('0x1cb5')](function(_0x342014){const _0x4e53b0=_0x1c3ef2;_0x408221['error']({'title':_0x342014[_0x4e53b0('0x1b51')]?'API:'+_0x342014[_0x4e53b0('0x1b51')]+_0x4e53b0('0x1b0b')+_0x342014['statusText']:_0x4e53b0('0x999'),'msg':_0x342014[_0x4e53b0('0x11fc')]?JSON[_0x4e53b0('0x1be0')](_0x342014['data']):_0x342014[_0x4e53b0('0x17df')]()});});function _0x32e91f(){const _0x293cfe=_0x1c3ef2;_0x492ac0['errors']=[],_0x55fcb7[_0x293cfe('0xfba')][_0x293cfe('0xbd0')](_0x492ac0['openchannelAccount'])[_0x293cfe('0x1714')][_0x293cfe('0x2788')](function(_0x399d28){const _0x194652=_0x293cfe;_0x492ac0['openchannelAccounts'][_0x194652('0xc51')](_0x399d28[_0x194652('0x1cbf')]()),_0x408221[_0x194652('0x173b')]({'title':_0x194652('0x1cf9'),'msg':_0x492ac0['openchannelAccount']['name']?_0x492ac0[_0x194652('0xfba')]['name']+'\x20has\x20been\x20created!':''}),_0xda276f(_0x399d28);})['catch'](function(_0x52a8b5){const _0x1780b2=_0x293cfe;if(_0x52a8b5[_0x1780b2('0x11fc')]&&_0x52a8b5[_0x1780b2('0x11fc')][_0x1780b2('0x25be')]&&_0x52a8b5['data'][_0x1780b2('0x25be')][_0x1780b2('0x2566')]){_0x492ac0['errors']=_0x52a8b5[_0x1780b2('0x11fc')]['errors']||[{'message':_0x52a8b5[_0x1780b2('0x17df')](),'type':_0x1780b2('0x2665')}];for(let _0xb63fc3=0x0;_0xb63fc3<_0x52a8b5[_0x1780b2('0x11fc')][_0x1780b2('0x25be')]['length'];_0xb63fc3+=0x1){_0x408221[_0x1780b2('0x5e8')]({'title':_0x52a8b5[_0x1780b2('0x11fc')][_0x1780b2('0x25be')][_0xb63fc3][_0x1780b2('0x1d7')],'msg':_0x52a8b5['data'][_0x1780b2('0x25be')][_0xb63fc3][_0x1780b2('0x15e2')]});}}else _0x408221[_0x1780b2('0x5e8')]({'title':_0x52a8b5['status']?_0x1780b2('0x15d1')+_0x52a8b5[_0x1780b2('0x1b51')]+_0x1780b2('0x1b0b')+_0x52a8b5[_0x1780b2('0x22ce')]:_0x1780b2('0x2665'),'msg':_0x52a8b5[_0x1780b2('0x11fc')]?JSON[_0x1780b2('0x1be0')](_0x52a8b5[_0x1780b2('0x11fc')][_0x1780b2('0x15e2')]):_0x52a8b5[_0x1780b2('0x17df')]()});});}function _0xdfbb72(){const _0x3bdc78=_0x1c3ef2;_0x492ac0['errors']=[],_0x55fcb7['openchannelAccount']['update']({'id':_0x492ac0[_0x3bdc78('0xfba')]['id']},_0x492ac0[_0x3bdc78('0xfba')])[_0x3bdc78('0x1714')]['then'](function(_0x876d46){const _0x949e6d=_0x3bdc78,_0x36cb98=_0x283545()[_0x949e6d('0x20e8')](_0x492ac0[_0x949e6d('0x1e10')],{'id':_0x876d46['id']});_0x36cb98&&_0x283545()[_0x949e6d('0x2503')](_0x36cb98,_0x283545()[_0x949e6d('0x41b')](_0x876d46[_0x949e6d('0x1cbf')](),_0x283545()[_0x949e6d('0x2163')](_0x36cb98))),_0x408221['success']({'title':'OpenchannelAccount\x20properly\x20saved!','msg':_0x492ac0[_0x949e6d('0xfba')]['name']?_0x492ac0[_0x949e6d('0xfba')][_0x949e6d('0x1a8d')]+_0x949e6d('0x24cf'):''}),_0xda276f(_0x876d46);})['catch'](function(_0x516db0){const _0x38f2ef=_0x3bdc78;if(_0x516db0[_0x38f2ef('0x11fc')]&&_0x516db0[_0x38f2ef('0x11fc')]['errors']&&_0x516db0[_0x38f2ef('0x11fc')][_0x38f2ef('0x25be')][_0x38f2ef('0x2566')]){_0x492ac0[_0x38f2ef('0x25be')]=_0x516db0['data'][_0x38f2ef('0x25be')]||[{'message':_0x516db0['toString'](),'type':'api.openchannelAccount.update'}];for(let _0x251eaa=0x0;_0x251eaa<_0x516db0['data'][_0x38f2ef('0x25be')]['length'];_0x251eaa++){_0x408221['error']({'title':_0x516db0[_0x38f2ef('0x11fc')][_0x38f2ef('0x25be')][_0x251eaa][_0x38f2ef('0x1d7')],'msg':_0x516db0[_0x38f2ef('0x11fc')][_0x38f2ef('0x25be')][_0x251eaa][_0x38f2ef('0x15e2')]});}}else _0x408221[_0x38f2ef('0x5e8')]({'title':_0x516db0['status']?_0x38f2ef('0x15d1')+_0x516db0[_0x38f2ef('0x1b51')]+_0x38f2ef('0x1b0b')+_0x516db0[_0x38f2ef('0x22ce')]:_0x38f2ef('0xf3d'),'msg':_0x516db0[_0x38f2ef('0x11fc')]?JSON[_0x38f2ef('0x1be0')](_0x516db0['data']['message']):_0x516db0[_0x38f2ef('0x17df')]()});});}function _0x48fd42(_0x4f0942){const _0x41ab00=_0x1c3ef2;_0x492ac0['errors']=[];const _0xcdd7fb=_0x28e329['confirm']()[_0x41ab00('0x14e4')](_0x41ab00('0x458'))['content'](_0x41ab00('0x16f7'))[_0x41ab00('0x10bc')](_0x41ab00('0x237e'))['ok'](_0x41ab00('0x2786'))[_0x41ab00('0x1801')](_0x41ab00('0x1481'))['targetEvent'](_0x4f0942);_0x28e329[_0x41ab00('0x2fa')](_0xcdd7fb)[_0x41ab00('0x2788')](function(){const _0x266d88=_0x41ab00;_0x55fcb7[_0x266d88('0xfba')][_0x266d88('0x17c4')]({'id':_0x492ac0[_0x266d88('0xfba')]['id']})[_0x266d88('0x1714')]['then'](function(){const _0x42b463=_0x266d88;_0x283545()['remove'](_0x492ac0[_0x42b463('0x1e10')],{'id':_0x492ac0['openchannelAccount']['id']}),_0x408221[_0x42b463('0x173b')]({'title':_0x42b463('0x1405'),'msg':(_0x492ac0[_0x42b463('0xfba')][_0x42b463('0x1a8d')]||'openchannelAccount')+_0x42b463('0x14d4')}),_0xda276f(_0x492ac0[_0x42b463('0xfba')]);})['catch'](function(_0x1a9df5){const _0x3b213e=_0x266d88;if(_0x1a9df5[_0x3b213e('0x11fc')]&&_0x1a9df5[_0x3b213e('0x11fc')]['errors']&&_0x1a9df5['data']['errors'][_0x3b213e('0x2566')]){_0x492ac0[_0x3b213e('0x25be')]=_0x1a9df5[_0x3b213e('0x11fc')][_0x3b213e('0x25be')]||[{'message':_0x1a9df5[_0x3b213e('0x17df')](),'type':_0x3b213e('0x19fe')}];for(let _0x23630e=0x0;_0x23630e<_0x1a9df5['data']['errors'][_0x3b213e('0x2566')];_0x23630e++){_0x408221[_0x3b213e('0x5e8')]({'title':_0x1a9df5[_0x3b213e('0x11fc')][_0x3b213e('0x25be')][_0x23630e][_0x3b213e('0x1d7')],'msg':_0x1a9df5['data']['errors'][_0x23630e][_0x3b213e('0x15e2')]});}}else _0x408221[_0x3b213e('0x5e8')]({'title':_0x1a9df5[_0x3b213e('0x1b51')]?_0x3b213e('0x15d1')+_0x1a9df5[_0x3b213e('0x1b51')]+_0x3b213e('0x1b0b')+_0x1a9df5[_0x3b213e('0x22ce')]:_0x3b213e('0x19fe'),'msg':_0x1a9df5[_0x3b213e('0x11fc')]?JSON[_0x3b213e('0x1be0')](_0x1a9df5['data'][_0x3b213e('0x15e2')]):_0x1a9df5[_0x3b213e('0x15e2')]||_0x1a9df5[_0x3b213e('0x17df')]()});});},function(){});}function _0x58c125(_0x44230a){return _0x44230a===null?undefined:new Date(_0x44230a);}function _0xda276f(_0xe5acdc){const _0xcf303e=_0x1c3ef2;_0x28e329[_0xcf303e('0x19d')](_0xe5acdc);}}const _0x264e35=_0x14508a,_0x43554f=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html',_0x4b5fe8=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog.html',_0x1e1086=_0x18dd13['p']+_0x34e79e('0x2e8'),_0x2d6d71=_0x18dd13['p']+_0x34e79e('0x1124'),_0x4d916a=_0x18dd13['p']+_0x34e79e('0x207a'),_0x3d3b7d=_0x18dd13['p']+_0x34e79e('0xa99'),_0x3b88d9=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog.html',_0x294efe=_0x18dd13['p']+_0x34e79e('0x51a'),_0x86610b=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html',_0x59b6f0=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html';_0x2c91d5[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x1b04')];const _0x62b582={'agent':_0x43554f,'autoreply':_0x4b5fe8,'close':_0x1e1086,'gotoif':_0x2d6d71,'gotop':_0x4d916a,'interval':_0x3d3b7d,'noop':_0x3b88d9,'queue':_0x294efe,'system':_0x86610b,'tag':_0x59b6f0};function _0x2c91d5(_0x29c12a,_0x3cfd5c,_0x46c6bd,_0x5b5aef,_0x5ee61b){const _0x21b58a=_0x34e79e,_0x4b993c=this;_0x4b993c[_0x21b58a('0x9cb')]=_0x5ee61b[_0x21b58a('0x24cc')](),_0x4b993c[_0x21b58a('0xfba')]={},_0x4b993c[_0x21b58a('0x2233')]={'count':0x0,'rows':[]},_0x4b993c['selectedOpenchannelAccountApps']=[],_0x4b993c['crudPermissions'],_0x4b993c[_0x21b58a('0x135a')]={'sort':_0x21b58a('0x155b')},_0x4b993c[_0x21b58a('0x105')]=_0x283545()[_0x21b58a('0x9')](_0x283545()[_0x21b58a('0x8ce')]([{'app':_0x21b58a('0x5e1'),'appType':'dialogflow','type':'dialogflow','icon':_0x21b58a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x21b58a('0x127f'),'name':_0x21b58a('0x234b'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x0},{'title':_0x21b58a('0x175b'),'name':'language','type':'select','defaultValue':_0x21b58a('0xeca'),'values':[{'option':_0x21b58a('0x42b'),'value':_0x21b58a('0x1570')},{'option':_0x21b58a('0x866'),'value':_0x21b58a('0xeca')},{'option':_0x21b58a('0x1072'),'value':_0x21b58a('0x217a')},{'option':_0x21b58a('0xf33'),'value':_0x21b58a('0x26d0')},{'option':_0x21b58a('0x2488'),'value':_0x21b58a('0x1893')},{'option':_0x21b58a('0xfd2'),'value':_0x21b58a('0x33b')},{'option':_0x21b58a('0x131e'),'value':_0x21b58a('0x1b15')},{'option':_0x21b58a('0x270a'),'value':'\x27ja\x27'},{'option':_0x21b58a('0x166c'),'value':'\x27ko\x27'},{'option':_0x21b58a('0x805'),'value':_0x21b58a('0x17a8')},{'option':_0x21b58a('0xa7a'),'value':_0x21b58a('0x2363')},{'option':_0x21b58a('0x168e'),'value':_0x21b58a('0x1cb0')},{'option':_0x21b58a('0x27ae'),'value':_0x21b58a('0x7a3')},{'option':_0x21b58a('0x1319'),'value':_0x21b58a('0x6cb')},{'option':_0x21b58a('0xbaf'),'value':_0x21b58a('0x1561')},{'option':_0x21b58a('0x97b'),'value':_0x21b58a('0x10d9')},{'option':_0x21b58a('0x21ef'),'value':'\x27uk\x27'},{'option':_0x21b58a('0x1a89'),'value':_0x21b58a('0xd54')},{'option':_0x21b58a('0x13e6'),'value':_0x21b58a('0x553')},{'option':_0x21b58a('0x1b70'),'value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':_0x21b58a('0xf50'),'name':'welcomemessage','type':_0x21b58a('0x1215'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':'amazonlex','appType':_0x21b58a('0x137a'),'type':_0x21b58a('0x137a'),'icon':_0x21b58a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':_0x21b58a('0x27f2'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x0},{'title':_0x21b58a('0x1b58'),'name':_0x21b58a('0x1b58'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x1},{'title':_0x21b58a('0xb70'),'name':_0x21b58a('0xb70'),'type':_0x21b58a('0x983'),'defaultValue':_0x21b58a('0x826'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x21b58a('0x826')},{'option':_0x21b58a('0x7cf'),'value':_0x21b58a('0x2221')},{'option':_0x21b58a('0x282b'),'value':_0x21b58a('0x150a')},{'option':_0x21b58a('0x1172'),'value':_0x21b58a('0xbb6')}],'required':!![],'param':0x2},{'title':_0x21b58a('0x4eb'),'name':_0x21b58a('0x4eb'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x21b58a('0xf50'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':'Interval','appType':_0x21b58a('0x2630'),'types':[_0x21b58a('0xc8f'),'custom',_0x21b58a('0x4b2')],'fields':[],'isApp':![]},{'app':_0x21b58a('0x18dd'),'appType':_0x21b58a('0x18dd'),'type':_0x21b58a('0x18dd'),'icon':_0x21b58a('0x21ff'),'interval':_0x21b58a('0x2191'),'required':!![],'isApp':!![],'fields':[{'title':_0x21b58a('0x165a'),'name':_0x21b58a('0x49'),'type':_0x21b58a('0x16db'),'param':0x0}]},{'app':_0x21b58a('0xe81'),'appType':_0x21b58a('0xe81'),'type':'system','icon':_0x21b58a('0x21ff'),'interval':_0x21b58a('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x21b58a('0xa72'),'key':_0x21b58a('0x1a8d')},'route':'variable','filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x21b58a('0x1677'),'name':_0x21b58a('0x28d'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x0},{'title':'Variable','name':_0x21b58a('0xa72'),'type':_0x21b58a('0x2519'),'values':_0x21b58a('0xf76'),'value':_0x21b58a('0x59b'),'option':_0x21b58a('0x59b'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x21b58a('0x1598'),'type':_0x21b58a('0x1500'),'icon':'icon-apps','interval':_0x21b58a('0x2191'),'isApp':!![],'fields':[{'title':_0x21b58a('0x14ef'),'name':_0x21b58a('0x155b'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x21b58a('0x1e01'),'appType':'gotoif','type':'gotoif','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x21b58a('0x1388'),'name':_0x21b58a('0xf2b'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x0},{'title':_0x21b58a('0x86a'),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x21b58a('0x1474'),'name':_0x21b58a('0x1474'),'type':_0x21b58a('0x272c'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x21b58a('0x1ab4'),'appType':_0x21b58a('0x1ab4'),'foreignKey':_0x21b58a('0x53'),'type':_0x21b58a('0x1ab4'),'icon':_0x21b58a('0x21ff'),'interval':_0x21b58a('0x2191'),'isApp':!![],'extraApi':[{'name':_0x21b58a('0x283e'),'field':{'name':'queue','key':_0x21b58a('0x1a8d')},'route':_0x21b58a('0xb26'),'filters':{'fields':_0x21b58a('0xafa'),'sort':_0x21b58a('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x21b58a('0x107f'),'name':_0x21b58a('0x1ab4'),'type':_0x21b58a('0x2519'),'values':_0x21b58a('0x283e'),'value':'queue.name','option':_0x21b58a('0x158'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x21b58a('0xa7e'),'name':_0x21b58a('0x24e4'),'type':_0x21b58a('0x272c'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x21b58a('0x188b'),'appType':_0x21b58a('0x188b'),'type':_0x21b58a('0x188b'),'foreignKey':_0x21b58a('0x3bb'),'icon':_0x21b58a('0x21ff'),'interval':_0x21b58a('0x2191'),'isApp':!![],'extraApi':[{'name':_0x21b58a('0x1713'),'field':{'name':'agent','key':_0x21b58a('0x1a8d')},'route':_0x21b58a('0x1e6a'),'filters':{'fields':_0x21b58a('0x1338'),'sort':_0x21b58a('0x1a8d'),'role':_0x21b58a('0x188b'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x21b58a('0x262d'),'name':_0x21b58a('0x188b'),'type':_0x21b58a('0x2519'),'values':_0x21b58a('0x1713'),'value':_0x21b58a('0x156f'),'option':_0x21b58a('0x156f'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x21b58a('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x21b58a('0x808'),'appType':_0x21b58a('0x808'),'type':_0x21b58a('0x808'),'icon':_0x21b58a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'times','name':'times','type':'select','defaultValue':'1','values':[{'option':_0x21b58a('0xa18'),'value':'1'},{'option':_0x21b58a('0x25e3'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x21b58a('0xc39'),'name':_0x21b58a('0x16db'),'type':_0x21b58a('0x1215'),'required':!![],'param':0x1}]},{'app':_0x21b58a('0x69f'),'appType':'close','type':_0x21b58a('0x69f'),'icon':'icon-apps','interval':_0x21b58a('0x2191'),'isApp':!![],'fields':[{'title':_0x21b58a('0x1e89'),'name':_0x21b58a('0x1db2'),'type':_0x21b58a('0x16db'),'required':!![],'param':0x0}]},{'app':_0x21b58a('0x1764'),'appType':'tag','type':_0x21b58a('0x1764'),'foreignKey':_0x21b58a('0x90a'),'icon':_0x21b58a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x21b58a('0xe45'),'field':{'name':_0x21b58a('0x1764'),'key':_0x21b58a('0x1a8d')},'route':_0x21b58a('0x1764'),'filters':{'fields':_0x21b58a('0x1338'),'sort':_0x21b58a('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x21b58a('0x251d'),'name':_0x21b58a('0x1764'),'type':_0x21b58a('0x2519'),'values':'tags','value':_0x21b58a('0x282c'),'option':'tag.name','required':!![],'param':0x0}]}],[_0x21b58a('0x8a5')]),{'isApp':![]}),_0x4b993c[_0x21b58a('0x4b2')]={'group':{'name':_0x21b58a('0x134b'),'pull':_0x21b58a('0x1b8')},'animation':0x64,'sort':![]},_0x4b993c['applications']={'group':{'name':_0x21b58a('0x2268'),'put':_0x21b58a('0x134b')},'animation':0x64,'onAdd':function(_0x207bd2){_0x1596b4(_0x207bd2,_0x207bd2['newIndex']);},'onSort':function(){_0x239e42();}},_0x4b993c[_0x21b58a('0x24eb')]=_0x58613f,_0x4b993c[_0x21b58a('0x16a')]=_0x37d2ef,_0x4b993c[_0x21b58a('0x1b6e')]=_0x4b057b,_0x4b993c[_0x21b58a('0x22e3')]=_0x1596b4,_0x4b993c['editInterval']=_0x2f9658,_0x4b993c[_0x21b58a('0x2553')]=_0x143f6d,_0x4b993c[_0x21b58a('0x633')]=_0x3502f6,_0x4b993c['rewriteRouting']=_0x239e42,_0x4b993c['getIntervals']=_0x167acf;function _0x58613f(_0x493af6,_0x3bfc71){const _0x30ef59=_0x21b58a;_0x4b993c['openchannelAccount']=_0x493af6,_0x4b993c[_0x30ef59('0xe28')]=typeof _0x3bfc71!==_0x30ef59('0xedb')?_0x3bfc71:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b993c[_0x30ef59('0x26de')][_0x30ef59('0x1112')]=!_0x4b993c[_0x30ef59('0xe28')]['canEdit']?!![]:![],_0x4b993c[_0x30ef59('0x135a')]['id']=_0x493af6['id'],_0x4b993c[_0x30ef59('0x135a')]['isApp']=!![],_0x4b993c[_0x30ef59('0x135a')][_0x30ef59('0xd18')]=!![],_0x4b993c[_0x30ef59('0x1b6e')](),_0x4b993c['getIntervals']();}function _0x37d2ef(_0x35db15,_0x2ee028,_0x180502){const _0x130370=_0x21b58a,_0x8fa7d4=_0x3cfd5c[_0x130370('0x112e')]()[_0x130370('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x130370('0x93e')](_0x130370('0x1670')+_0x35db15['app']+_0x130370('0x229e')+_0x130370('0x27c7'))[_0x130370('0x10bc')](_0x130370('0xdd6'))[_0x130370('0x24d0')](_0x180502)['ok']('OK')['cancel'](_0x130370('0x1d8d'));_0x3cfd5c['show'](_0x8fa7d4)[_0x130370('0x2788')](function(){const _0x57243e=_0x130370;_0x4b993c[_0x57243e('0x2233')]['rows']['splice'](_0x2ee028,0x1),_0x239e42();},function(){const _0x13f7ec=_0x130370;console[_0x13f7ec('0x10df')]('CANCEL');});}function _0x1596b4(_0x58e281,_0x357b40){const _0x191615=_0x21b58a;if(_0x4b993c['openchannelAccountApps'][_0x191615('0x25df')][_0x191615('0x2566')]){const _0x2b81f7=_0x4b993c[_0x191615('0x2233')][_0x191615('0x25df')][_0x357b40]?_0x4b993c['openchannelAccountApps']['rows'][_0x357b40]:_0x4b993c['openchannelAccountApps'][_0x191615('0x25df')][0x0],_0x46a577=(_0x2b81f7[_0x191615('0x167b')]||_0x2b81f7[_0x191615('0x8a5')])['toLowerCase']();_0x3cfd5c[_0x191615('0x2fa')]({'controller':_0x191615('0x1093')+_0x46a577+'DialogController','controllerAs':'vm','templateUrl':_0x62b582[_0x46a577],'parent':angular[_0x191615('0x16b1')](_0x46c6bd[_0x191615('0x945')]),'targetEvent':_0x58e281,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x2b81f7,'openchannelAccount':_0x4b993c['openchannelAccount'],'crudPermissions':_0x4b993c[_0x191615('0xe28')]}})[_0x191615('0x2788')](function(_0x1e86bf){const _0x1ec2c2=_0x191615;_0x1e86bf&&(_0x1e86bf['id']?_0x4b993c['openchannelAccountApps'][_0x1ec2c2('0x25df')][_0x357b40]=_0x1e86bf:_0x4b993c[_0x1ec2c2('0x2233')][_0x1ec2c2('0x25df')][_0x1ec2c2('0x722')](_0x357b40,0x0,_0x1e86bf),_0x239e42());})[_0x191615('0x1cb5')](function(_0x367639){const _0x294497=_0x191615;_0x367639&&_0x5b5aef['error']({'title':_0x367639[_0x294497('0x1b51')]?_0x294497('0x15d1')+_0x367639['status']+_0x294497('0x1b0b')+_0x367639[_0x294497('0x22ce')]:_0x294497('0x239b'),'msg':_0x367639['data']?JSON['stringify'](_0x367639['data']):_0x367639[_0x294497('0x17df')]()});});}}function _0x2f9658(_0x2da8de,_0x151088){const _0x5e5f47=_0x21b58a;if(_0x4b993c[_0x5e5f47('0x2233')][_0x5e5f47('0x25df')][_0x5e5f47('0x2566')]){const _0x2b17a2=_0x4b993c[_0x5e5f47('0x2233')][_0x5e5f47('0x25df')][_0x151088]?_0x4b993c[_0x5e5f47('0x2233')]['rows'][_0x151088]:_0x4b993c[_0x5e5f47('0x2233')][_0x5e5f47('0x25df')][0x0];_0x3cfd5c[_0x5e5f47('0x2fa')]({'controller':'EditOpenchannelAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x3d3b7d,'parent':angular[_0x5e5f47('0x16b1')](_0x46c6bd[_0x5e5f47('0x945')]),'targetEvent':_0x2da8de,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2b17a2[_0x5e5f47('0x2630')],'IntervalId':_0x2b17a2[_0x5e5f47('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x4b993c[_0x5e5f47('0xe28')]}})[_0x5e5f47('0x2788')](function(_0x2993e7){const _0x423c1a=_0x5e5f47;_0x2993e7&&(_0x2b17a2[_0x423c1a('0x2630')]=_0x2993e7[_0x423c1a('0x2630')]||_0x423c1a('0x2191'),_0x2b17a2[_0x423c1a('0x20d0')]=_0x2993e7['IntervalId']||null,_0x239e42());});}}function _0x239e42(){const _0x5ec5b8=_0x21b58a;let _0x4a19fe=0x1,_0x46bb3a=[];for(let _0x199ec7=0x0;_0x199ec7<_0x4b993c[_0x5ec5b8('0x2233')][_0x5ec5b8('0x25df')][_0x5ec5b8('0x2566')];_0x199ec7++){const _0x3d66bb=_0x4b993c[_0x5ec5b8('0x2233')][_0x5ec5b8('0x25df')][_0x199ec7],_0x536169=[],_0x2d75de=[];_0x3d66bb['intervals']=_0x3d66bb['interval']!=='*,*,*,*'?[_0x3d66bb['interval']]:_0x3d66bb[_0x5ec5b8('0x20d0')]?_0x283545()[_0x5ec5b8('0x155d')](_0x283545()[_0x5ec5b8('0x916')](_0x4b993c[_0x5ec5b8('0xec5')][_0x5ec5b8('0x25df')],{'IntervalId':_0x3d66bb[_0x5ec5b8('0x20d0')]}),'interval'):[],_0x3d66bb[_0x5ec5b8('0x1f3b')]=_0x4b993c['openchannelAccount']['context'],_0x3d66bb[_0x5ec5b8('0x1d6f')]=_0x4b993c[_0x5ec5b8('0xfba')]['exten'],_0x3d66bb[_0x5ec5b8('0x1d7')]&&(_0x3d66bb['type']=_0x3d66bb[_0x5ec5b8('0x1d7')][_0x5ec5b8('0xc2e')]()),_0x3d66bb['priority']=_0x536169[_0x5ec5b8('0x2566')]?_0x283545()['last'](_0x536169)[_0x5ec5b8('0x155b')]+0x1:_0x4a19fe,_0x4a19fe=(_0x2d75de[_0x5ec5b8('0x2566')]?_0x283545()[_0x5ec5b8('0x1d39')](_0x2d75de)[_0x5ec5b8('0x155b')]:_0x3d66bb[_0x5ec5b8('0x155b')])+0x1,_0x46bb3a=_0x283545()[_0x5ec5b8('0x1282')](_0x46bb3a,_0x536169,[_0x3d66bb],_0x2d75de);}_0x29c12a[_0x5ec5b8('0xfba')][_0x5ec5b8('0x109')]({'id':_0x4b993c['openchannelAccount']['id']},_0x283545()[_0x5ec5b8('0x8ce')](_0x46bb3a,_0x5ec5b8('0x155b')))[_0x5ec5b8('0x1714')][_0x5ec5b8('0x2788')](function(_0x5cb56f){const _0x346215=_0x5ec5b8;_0x4b993c[_0x346215('0x2233')][_0x346215('0x25df')]=_0x5cb56f[_0x346215('0x25df')];})[_0x5ec5b8('0x1cb5')](function(_0x382f0f){const _0x3dfd9d=_0x5ec5b8;console[_0x3dfd9d('0x5e8')](_0x382f0f);});}function _0x208481(_0xc65d07){const _0x476461=_0x21b58a;_0x4b993c[_0x476461('0x2233')]=_0xc65d07||{'count':0x0,'rows':[]};}function _0x167acf(){const _0x32a92c=_0x21b58a;return _0x29c12a[_0x32a92c('0x2630')][_0x32a92c('0x1335')]({'fields':'id,interval,IntervalId'})[_0x32a92c('0x1714')][_0x32a92c('0x2788')](function(_0x4acfae){_0x4b993c['intervals']=_0x4acfae;})['catch'](function(_0x4c5be6){const _0x3a1afc=_0x32a92c;console[_0x3a1afc('0x5e8')](_0x4c5be6);});}function _0x4b057b(){const _0x33108c=_0x21b58a;_0x4b993c[_0x33108c('0x1808')]=_0x29c12a[_0x33108c('0xfba')][_0x33108c('0x26b0')](_0x4b993c[_0x33108c('0x135a')],_0x208481)[_0x33108c('0x1714')];}function _0x143f6d(_0x317795){const _0x58dd74=_0x21b58a;_0x283545()[_0x58dd74('0x1a90')](_0x4b993c[_0x58dd74('0x2233')]['rows'],{'id':_0x317795['id']}),_0x239e42(),_0x5b5aef[_0x58dd74('0x173b')]({'title':_0x58dd74('0x170b'),'msg':_0x317795['app']?_0x317795[_0x58dd74('0x8a5')]+_0x58dd74('0x14d4'):''});}function _0x3502f6(_0x5df33e){const _0xc057f3=_0x21b58a,_0x2d82fe=_0x3cfd5c[_0xc057f3('0x112e')]()['title'](_0xc057f3('0x191c'))[_0xc057f3('0x93e')](_0xc057f3('0x1670')+_0x4b993c[_0xc057f3('0x1671')][_0xc057f3('0x2566')]+_0xc057f3('0xbd')+'\x20will\x20be\x20deleted.')[_0xc057f3('0x10bc')](_0xc057f3('0x1db'))['targetEvent'](_0x5df33e)['ok']('OK')['cancel']('CANCEL');_0x3cfd5c[_0xc057f3('0x2fa')](_0x2d82fe)[_0xc057f3('0x2788')](function(){const _0xcd4f2a=_0xc057f3;_0x4b993c['selectedOpenchannelAccountApps'][_0xcd4f2a('0x1534')](function(_0x4b5f4b){const _0xd3a4d3=_0xcd4f2a;_0x283545()['remove'](_0x4b993c[_0xd3a4d3('0x2233')]['rows'],{'id':_0x4b5f4b['id']});}),_0x4b993c[_0xcd4f2a('0x1671')]=[],_0x239e42();});}}const _0x23b23f=_0x2c91d5;_0x3b42cc[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),'openchannelAccount',_0x34e79e('0x1e10'),_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x3b42cc(_0x49b5cc,_0x3b7df9,_0x46b067,_0x35b9ad,_0x592166,_0x379aaf,_0x203c83,_0x1c6347,_0x4017ef,_0x44167e){const _0x205516=_0x34e79e,_0x419c78=this;_0x419c78[_0x205516('0x9cb')]=_0x4017ef[_0x205516('0x24cc')](),_0x419c78[_0x205516('0xfba')]=_0x592166,_0x419c78[_0x205516('0xe28')]=_0x44167e,_0x419c78[_0x205516('0x548')]=_0x203c83,_0x419c78['items']=[],_0x419c78['allowedItems']=[],_0x419c78[_0x205516('0x283f')]=[],_0x419c78[_0x205516('0x12d9')]=[],_0x419c78[_0x205516('0xd0d')]=[],_0x419c78[_0x205516('0x2677')]=![],_0x419c78[_0x205516('0x122e')]=_0x4659c5,_0x419c78['saveAgents']=_0x29d398,_0x419c78[_0x205516('0xca7')]=_0x57a57a,_0x419c78[_0x205516('0x121')]={'readOnly':!_0x419c78[_0x205516('0xe28')][_0x205516('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x205516('0x1a8d'),_0x205516('0x2838')],'line3':'','labelAll':_0x1c6347['instant'](_0x205516('0x220a')),'labelSelected':_0x1c6347[_0x205516('0x1b11')](_0x205516('0x1d7a')),'transferCallback':function(){const _0x14b8da=_0x205516,_0x2716a1=_0x283545()[_0x14b8da('0x12d1')](_0x419c78['startingSelectedItems'],_0x419c78[_0x14b8da('0x283f')],'id');_0x419c78[_0x14b8da('0x2677')]=_0x283545()[_0x14b8da('0x213d')](_0x2716a1)?![]:!![];}};function _0x4659c5(){const _0x3eb167=_0x205516;return _0x4017ef['hasRole'](_0x3eb167('0xe23'))?_0x4c165d()['catch'](function(_0x2125bc){const _0x472c39=_0x3eb167;_0x46b067['error']({'title':_0x2125bc[_0x472c39('0x1b51')]?_0x472c39('0x15d1')+_0x2125bc[_0x472c39('0x1b51')]+'\x20-\x20'+_0x2125bc[_0x472c39('0x22ce')]:_0x472c39('0xd90'),'msg':_0x2125bc['status']?JSON[_0x472c39('0x1be0')](_0x2125bc[_0x472c39('0x11fc')]):_0x2125bc[_0x472c39('0x17df')]()});}):_0x50d68e()[_0x3eb167('0x2788')](function(_0x77b687){const _0x28d8d7=_0x3eb167;return _0x419c78[_0x28d8d7('0xb13')]=_0x77b687,_0x4c165d();})[_0x3eb167('0x1cb5')](function(_0x33fec8){const _0x4c1ed8=_0x3eb167;_0x46b067[_0x4c1ed8('0x5e8')]({'title':_0x33fec8[_0x4c1ed8('0x1b51')]?_0x4c1ed8('0x15d1')+_0x33fec8[_0x4c1ed8('0x1b51')]+_0x4c1ed8('0x1b0b')+_0x33fec8[_0x4c1ed8('0x22ce')]:_0x4c1ed8('0xd90'),'msg':_0x33fec8[_0x4c1ed8('0x1b51')]?JSON['stringify'](_0x33fec8[_0x4c1ed8('0x11fc')]):_0x33fec8[_0x4c1ed8('0x17df')]()});});}function _0x50d68e(){return _0x3b7df9(function(_0x555df1,_0x57bc57){const _0x5d4cc5=a0_0x14e7;_0x35b9ad[_0x5d4cc5('0xec9')]['get']({'userProfileId':_0x419c78[_0x5d4cc5('0x9cb')][_0x5d4cc5('0x237f')],'name':_0x5d4cc5('0x1f72')})[_0x5d4cc5('0x1714')][_0x5d4cc5('0x2788')](function(_0x3818ab){const _0x26c7a6=_0x5d4cc5,_0x11c710=_0x3818ab&&_0x3818ab[_0x26c7a6('0x25df')]?_0x3818ab['rows'][0x0]:null;_0x555df1(_0x11c710);})[_0x5d4cc5('0x1cb5')](function(_0x416781){_0x57bc57(_0x416781);});});}function _0x4c165d(){return _0x3b7df9(function(_0x123ee7,_0x227464){const _0x2e5b39=a0_0x14e7;return _0xe35017()[_0x2e5b39('0x2788')](function(_0xb0ff30){const _0x30157e=_0x2e5b39;return _0x419c78[_0x30157e('0x117b')]=_0xb0ff30[_0x30157e('0x25df')]?_0xb0ff30[_0x30157e('0x25df')]:[],_0x4017ef[_0x30157e('0x1516')](_0x30157e('0xe23'))?_0xb0ff30:_0x419c78['section']?_0x419c78[_0x30157e('0xb13')][_0x30157e('0x1c0a')]?_0xb0ff30:_0x18a725():null;})['then'](function(_0x2a1806){const _0x5292b3=_0x2e5b39,_0xa2185a=_0x2a1806&&_0x2a1806['rows']?_0x2a1806[_0x5292b3('0x25df')]:[];return _0x419c78[_0x5292b3('0x73d')]=_0x283545()[_0x5292b3('0x155d')](_0xa2185a,function(_0x498e8c){const _0x1fb67b=_0x5292b3;return _0x283545()[_0x1fb67b('0x20e8')](_0x419c78[_0x1fb67b('0x117b')],{'id':_0x4017ef[_0x1fb67b('0x1516')](_0x1fb67b('0xe23'))||_0x419c78[_0x1fb67b('0xb13')][_0x1fb67b('0x1c0a')]?_0x498e8c['id']:_0x498e8c['resourceId']});}),_0x419c78[_0x5292b3('0x12d9')]=angular[_0x5292b3('0x2669')](_0x419c78[_0x5292b3('0x73d')]),_0x419c78['items'][_0x5292b3('0x1534')](function(_0x5970fc){const _0x255abf=_0x5292b3,_0x4da021=_0x283545()[_0x255abf('0x20e8')](_0x419c78[_0x255abf('0x73d')],{'id':_0x5970fc['id']});_0x4017ef['hasRole'](_0x255abf('0xe23'))?_0x5970fc[_0x255abf('0x68d')]=!![]:_0x5970fc[_0x255abf('0x68d')]=typeof _0x4da021!=='undefined'?!![]:![];}),_0x1146a4();})['then'](function(_0x3078f2){const _0x35cea0=_0x2e5b39,_0xb51392=_0x3078f2&&_0x3078f2[_0x35cea0('0x25df')]?_0x3078f2[_0x35cea0('0x25df')]:[];_0x419c78[_0x35cea0('0x283f')]=_0x283545()[_0x35cea0('0x155d')](_0xb51392,function(_0x5f449a){const _0x2ddf71=_0x35cea0,_0x22593b=_0x283545()[_0x2ddf71('0x20e8')](_0x419c78['items'],{'id':_0x5f449a['id']});return _0x22593b['penalty']=_0x5f449a[_0x2ddf71('0xc37')]?_0x2ddf71('0x1b9d')+_0x5f449a[_0x2ddf71('0xc37')][_0x2ddf71('0x1ab')]:'',_0x22593b[_0x2ddf71('0x2838')]=typeof _0x5f449a[_0x2ddf71('0x2838')]!=='undefined'?'<'+_0x5f449a[_0x2ddf71('0x2838')]+'>':'',_0x22593b;}),_0x419c78[_0x35cea0('0xd0d')]=angular[_0x35cea0('0x2669')](_0x419c78['selectedItems']),_0x419c78[_0x35cea0('0x121')][_0x35cea0('0x283f')]=_0x419c78[_0x35cea0('0x283f')],_0x419c78[_0x35cea0('0x121')][_0x35cea0('0x117b')]=_0x283545()[_0x35cea0('0x432')](_0x419c78['allowedItems'],_0x419c78['dualMultiselectOptions'][_0x35cea0('0x283f')],'id'),_0x123ee7();})[_0x2e5b39('0x1cb5')](function(_0x2b8a5a){_0x227464(_0x2b8a5a);});});}function _0x18a725(){return _0x3b7df9(function(_0x213797,_0x197287){const _0x475218=a0_0x14e7;return _0x35b9ad[_0x475218('0x1050')]['get']({'sectionId':_0x419c78[_0x475218('0xb13')]['id'],'nolimit':!![]})[_0x475218('0x1714')][_0x475218('0x2788')](function(_0xa547f3){_0x213797(_0xa547f3);})[_0x475218('0x1cb5')](function(_0x345e1e){_0x197287(_0x345e1e);});});}function _0x1146a4(){return _0x3b7df9(function(_0x396455,_0x1af079){const _0x4278a=a0_0x14e7;return _0x35b9ad[_0x4278a('0xfba')][_0x4278a('0x19db')]({'id':_0x419c78[_0x4278a('0xfba')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x4278a('0x1714')][_0x4278a('0x2788')](function(_0x3d9099){_0x396455(_0x3d9099);})[_0x4278a('0x1cb5')](function(_0x54378e){_0x1af079(_0x54378e);});});}function _0xe35017(){return _0x3b7df9(function(_0x281e1f,_0x2b146e){const _0x1272e1=a0_0x14e7;return _0x35b9ad[_0x1272e1('0x1e6a')][_0x1272e1('0x1335')]({'fields':_0x1272e1('0x1d32'),'nolimit':!![],'role':_0x1272e1('0x188b')})[_0x1272e1('0x1714')]['then'](function(_0x44b931){_0x281e1f(_0x44b931);})[_0x1272e1('0x1cb5')](function(_0x3c97e3){_0x2b146e(_0x3c97e3);});});}function _0x55f1f6(_0x209cd5){return _0x3b7df9(function(_0x3e37c6,_0x1d4c17){const _0x4eed86=a0_0x14e7;_0x283545()[_0x4eed86('0x213d')](_0x209cd5)?_0x3e37c6():_0x35b9ad['openchannelAccount'][_0x4eed86('0x588')]({'id':_0x419c78['openchannelAccount']['id'],'ids':_0x283545()[_0x4eed86('0x155d')](_0x209cd5,'id')})[_0x4eed86('0x1714')][_0x4eed86('0x2788')](function(){_0x3e37c6();})[_0x4eed86('0x1cb5')](function(_0x53924e){_0x1d4c17(_0x53924e);});});}function _0x2b7821(_0x1d97c5){return _0x3b7df9(function(_0x2c083e,_0x2911cb){const _0x19a609=a0_0x14e7;_0x283545()[_0x19a609('0x213d')](_0x1d97c5)?_0x2c083e():_0x35b9ad['openchannelAccount'][_0x19a609('0x1d72')]({'id':_0x419c78[_0x19a609('0xfba')]['id'],'ids':_0x283545()[_0x19a609('0x155d')](_0x1d97c5,'id')})[_0x19a609('0x1714')][_0x19a609('0x2788')](function(){_0x2c083e();})[_0x19a609('0x1cb5')](function(_0x3e201a){_0x2911cb(_0x3e201a);});});}function _0x29d398(){const _0x492866=_0x205516,_0x5a6144=_0x283545()['differenceBy'](_0x419c78['startingSelectedItems'],_0x419c78[_0x492866('0x283f')],'id'),_0x44ffa1=_0x283545()[_0x492866('0x432')](_0x419c78[_0x492866('0x283f')],_0x419c78[_0x492866('0xd0d')],'id');return _0x2b7821(_0x5a6144)[_0x492866('0x2788')](function(){return _0x55f1f6(_0x44ffa1);})[_0x492866('0x2788')](function(){const _0x38eca7=_0x492866;_0x419c78[_0x38eca7('0x2677')]=![],_0x419c78['startingAllowedItems']=angular[_0x38eca7('0x2669')](_0x419c78['allowedItems']),_0x419c78[_0x38eca7('0xd0d')]=angular['copy'](_0x419c78[_0x38eca7('0x283f')]),_0x46b067[_0x38eca7('0x173b')]({'title':_0x38eca7('0x10c8'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x492866('0x1cb5')](function(_0x9b42f0){const _0xcb476=_0x492866;_0x46b067[_0xcb476('0x5e8')]({'title':_0x9b42f0[_0xcb476('0x1b51')]?'API:'+_0x9b42f0['status']+_0xcb476('0x1b0b')+_0x9b42f0['statusText']:_0xcb476('0x13cd'),'msg':_0x9b42f0[_0xcb476('0x1b51')]?JSON[_0xcb476('0x1be0')](_0x9b42f0[_0xcb476('0x11fc')]):_0x9b42f0[_0xcb476('0x17df')]()});});}function _0x57a57a(){const _0x4baf4f=_0x205516;_0x49b5cc[_0x4baf4f('0x19d')]();}}const _0x449c1b=_0x3b42cc;_0x2c59f4[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2c59f4(_0x53d08f,_0x43c8cc,_0xf99514,_0xf0d048,_0x427d8f,_0x1bf68a,_0x603f4b,_0x38cbfb){const _0x9f692e=_0x34e79e,_0x37a59f=this;_0x37a59f[_0x9f692e('0x9cb')]=_0x603f4b['getCurrentUser'](),_0x37a59f[_0x9f692e('0x25be')]=[],_0x37a59f[_0x9f692e('0x14e4')]='OPENCHANNEL.EDIT_'+(_0xf0d048[_0x9f692e('0x167b')]||_0xf0d048[_0x9f692e('0x8a5')])[_0x9f692e('0x25e6')](),_0x37a59f[_0x9f692e('0x188b')]=angular[_0x9f692e('0x2669')](_0xf0d048),_0x37a59f[_0x9f692e('0xe28')]=_0x38cbfb,_0x37a59f[_0x9f692e('0x1193')]={};if(_0x37a59f[_0x9f692e('0x188b')]['appdata'])switch(_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x167b')]?_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x167b')]['toLowerCase']():_0x37a59f['agent']['app']['toLowerCase']()){case _0x9f692e('0x1d56'):break;case'dialogflow':{const _0x2b5ebc=_0x37a59f[_0x9f692e('0x188b')]['appdata'][_0x9f692e('0x1497')](',');_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x234b')]=_0x2b5ebc[0x0],_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x175b')]=_0x2b5ebc[0x1],_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xf50')]=_0x2b5ebc[_0x9f692e('0x845')](0x2,_0x2b5ebc[_0x9f692e('0x2566')])[_0x9f692e('0x185f')](',');}break;case _0x9f692e('0x137a'):{const _0x1890cf=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xd6b')]['split'](',');_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x27f2')]=_0x1890cf[0x0],_0x37a59f['agent']['secretaccesskey']=_0x1890cf[0x1],_0x37a59f[_0x9f692e('0x188b')]['lexregion']=_0x1890cf[0x2],_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x4eb')]=_0x1890cf[0x3],_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xf50')]=_0x1890cf[_0x9f692e('0x845')](0x4,_0x1890cf[_0x9f692e('0x2566')])[_0x9f692e('0x185f')](',');}break;case _0x9f692e('0x808'):{const _0x519e72=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xd6b')][_0x9f692e('0x1497')](',');_0x37a59f[_0x9f692e('0x188b')]['times']=isNaN(_0x519e72[0x0])?_0x519e72[0x0]:parseInt(_0x519e72[0x0],0xa),_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x16db')]=_0x519e72[_0x9f692e('0x845')](0x1,_0x519e72[_0x9f692e('0x2566')])['join'](',');}break;case _0x9f692e('0x15e2'):_0x37a59f['agent'][_0x9f692e('0x16db')]=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xd6b')];break;case'set':_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x1a8d')]=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xd6b')]['split']('=')[0x0],_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x49')]=_0x37a59f['agent'][_0x9f692e('0xd6b')][_0x9f692e('0x1497')]('=')[0x1];break;case _0x9f692e('0x2631'):_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x1bf6')]=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0xd6b')];break;default:{const _0x295934=_0x37a59f[_0x9f692e('0x188b')]['appdata']['split'](',');_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x188b')]=_0x283545()['isEmpty'](_0x295934[0x0])?_0x295934[0x0]:isNaN(_0x295934[0x0])?_0x295934[0x0]:parseInt(_0x295934[0x0],0xa),_0x37a59f['agent'][_0x9f692e('0x24e4')]=_0x283545()[_0x9f692e('0x213d')](_0x295934[0x1])?_0x295934[0x1]:isNaN(_0x295934[0x1])?_0x295934[0x1]:parseInt(_0x295934[0x1],0xa);}break;}else _0x37a59f['agent'][_0x9f692e('0x24e4')]=0x1e;_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x1d7')]&&_0x37a59f['agent'][_0x9f692e('0x1d7')][_0x9f692e('0xc2e')]()===_0x9f692e('0x1')&&_0x37a59f['agent'][_0x9f692e('0x167b')][_0x9f692e('0xc2e')]()===_0x9f692e('0x229c')&&(_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x1f71')]=_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x1224')]?_0x37a59f['agent'][_0x9f692e('0x1224')][_0x9f692e('0x1497')]('$')[0x0]:undefined,_0x37a59f[_0x9f692e('0x188b')][_0x9f692e('0x2081')]=_0x37a59f[_0x9f692e('0x188b')]['callerID']?_0x9f692e('0x1834')+_0x37a59f['agent'][_0x9f692e('0x8de')]:undefined);_0x37a59f[_0x9f692e('0x451')]=_0x10bd41,_0x37a59f[_0x9f692e('0xca7')]=_0x1490a5,_0x603f4b[_0x9f692e('0x1516')](_0x9f692e('0xe23'))?_0x1bf68a[_0x9f692e('0x1e6a')][_0x9f692e('0x1335')]({'fields':_0x9f692e('0x1338'),'sort':_0x9f692e('0x1a8d'),'role':_0x9f692e('0x188b'),'nolimit':_0x9f692e('0x1001')})[_0x9f692e('0x1714')]['then'](function(_0x5de732){const _0x3e6b8a=_0x9f692e;_0x37a59f['agents']=_0x5de732[_0x3e6b8a('0x25df')]||[];})[_0x9f692e('0x1cb5')](function(_0x60e2f5){const _0x1fa328=_0x9f692e;_0xf99514['error']({'title':_0x60e2f5[_0x1fa328('0x1b51')]?_0x1fa328('0x15d1')+_0x60e2f5[_0x1fa328('0x1b51')]+_0x1fa328('0x1b0b')+_0x60e2f5[_0x1fa328('0x22ce')]:_0x1fa328('0xd90'),'msg':_0x60e2f5[_0x1fa328('0x11fc')]?JSON['stringify'](_0x60e2f5['data']):_0x60e2f5[_0x1fa328('0x17df')]()});}):_0x1bf68a[_0x9f692e('0x1e6a')][_0x9f692e('0x1335')]({'fields':_0x9f692e('0x1338'),'sort':_0x9f692e('0x1a8d'),'role':_0x9f692e('0x188b'),'nolimit':_0x9f692e('0x1001')})['$promise']['then'](function(_0x26d792){const _0x2031a5=_0x9f692e;_0x37a59f[_0x2031a5('0x1713')]=_0x26d792[_0x2031a5('0x25df')]||[];})[_0x9f692e('0x2788')](function(){const _0x25cb24=_0x9f692e;return _0x1bf68a['userProfileSection'][_0x25cb24('0x1335')]({'userProfileId':_0x37a59f['currentUser'][_0x25cb24('0x237f')],'sectionId':0xca})[_0x25cb24('0x1714')];})['then'](function(_0xcdb022){const _0x406e22=_0x9f692e,_0xa17357=_0xcdb022&&_0xcdb022[_0x406e22('0x25df')]?_0xcdb022['rows'][0x0]:null;if(!_0xa17357){const _0x530167=[];let _0x2fc834=null;_0x37a59f[_0x406e22('0x188b')]&&(_0x2fc834=_0x283545()[_0x406e22('0x20e8')](_0x37a59f[_0x406e22('0x1713')],{'name':_0x37a59f[_0x406e22('0x188b')][_0x406e22('0x188b')]}));for(let _0x165fbe=0x0;_0x165fbe<_0x37a59f['agents'][_0x406e22('0x2566')];_0x165fbe++){_0x2fc834&&_0x37a59f['agents'][_0x165fbe]['id']===_0x2fc834['id']&&(_0x37a59f[_0x406e22('0x1713')][_0x165fbe][_0x406e22('0x3bf')]=![],_0x530167[_0x406e22('0x13e3')](_0x37a59f['agents'][_0x165fbe]));}_0x37a59f['agents']=_0x530167;}else{if(!_0xa17357[_0x406e22('0x1c0a')])return _0x1bf68a[_0x406e22('0x1050')]['get']({'sectionId':_0xa17357['id']})[_0x406e22('0x1714')][_0x406e22('0x2788')](function(_0x24e519){const _0x508f90=_0x406e22,_0x2bba05=_0x283545()['map'](_0x24e519['rows'],function(_0x2e66f0){const _0x3a3393=a0_0x14e7;return _0x283545()['find'](_0x37a59f[_0x3a3393('0x1713')],{'id':_0x2e66f0[_0x3a3393('0x2707')]});});let _0x2922f5=null;_0x37a59f[_0x508f90('0x188b')]&&(_0x2922f5=_0x283545()[_0x508f90('0x20e8')](_0x37a59f[_0x508f90('0x1713')],{'name':_0x37a59f['agent'][_0x508f90('0x188b')]}));if(_0x2922f5&&!_0x283545()[_0x508f90('0xc5d')](_0x2bba05,['id',_0x2922f5['id']])){const _0x1c7712=_0x283545()[_0x508f90('0x20e8')](_0x37a59f['agents'],{'id':_0x2922f5['id']});_0x1c7712[_0x508f90('0x3bf')]=![],_0x2bba05['push'](_0x1c7712);}_0x37a59f[_0x508f90('0x1713')]=_0x2bba05;});}})[_0x9f692e('0x1cb5')](function(_0x404962){const _0x40779a=_0x9f692e;_0xf99514['error']({'title':_0x404962[_0x40779a('0x1b51')]?_0x40779a('0x15d1')+_0x404962[_0x40779a('0x1b51')]+_0x40779a('0x1b0b')+_0x404962['statusText']:'SYSTEM:GETagents','msg':_0x404962['data']?JSON[_0x40779a('0x1be0')](_0x404962[_0x40779a('0x11fc')]):_0x404962[_0x40779a('0x17df')]()});});function _0x10bd41(){const _0x498a5a=_0x9f692e;_0x37a59f[_0x498a5a('0x25be')]=[];const _0x5bccb5=[];_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x1d7')]&&_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x1d7')][_0x498a5a('0xc2e')]()==='outbound'&&_0x37a59f[_0x498a5a('0x188b')]['appType']===_0x498a5a('0x25fb')&&(_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x1224')]=_0x427d8f[_0x498a5a('0x277c')]?(_0x37a59f['agent'][_0x498a5a('0x1f71')]||'')+_0x498a5a('0x124d')+_0x427d8f['cutdigits']+'}':(_0x37a59f['agent'][_0x498a5a('0x1f71')]||'')+_0x498a5a('0x1275'),_0x427d8f[_0x498a5a('0x801')]!=='none'?_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x784')][_0x498a5a('0x821')](_0x498a5a('0x1609'))<0x0&&(_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x784')]+=_0x498a5a('0x1609')):_0x37a59f['agent'][_0x498a5a('0x784')]=_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x784')][_0x498a5a('0x10a4')](_0x498a5a('0x1609'),''));const _0x3251d8=_0x283545()[_0x498a5a('0x20e8')](_0x37a59f['agents'],{'name':_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x188b')]});_0x3251d8&&(_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x3bb')]=_0x3251d8['id']);if(_0x37a59f[_0x498a5a('0x188b')]['appType']&&_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x167b')]==='custom'){}else switch((_0x37a59f['agent'][_0x498a5a('0x8a5')]||_0x37a59f[_0x498a5a('0x188b')]['appType'])[_0x498a5a('0xc2e')]()){case _0x498a5a('0x3a6'):_0x37a59f['agent'][_0x498a5a('0xd6b')]=_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x1a8d')]+'='+_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x49')];break;case _0x498a5a('0x1d56'):break;default:_0x5bccb5[0x0]=_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x188b')],_0x5bccb5[0x1]=_0x37a59f[_0x498a5a('0x188b')][_0x498a5a('0x24e4')],_0x37a59f['agent'][_0x498a5a('0xd6b')]=_0x5bccb5[_0x498a5a('0x185f')](',');}_0x1490a5(_0x37a59f['agent']);}function _0x1490a5(_0x112f24){_0x53d08f['hide'](_0x112f24);}}const _0x11b4a8=_0x2c59f4;_0x2044eb[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x271f'),'openchannelAccount',_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x2044eb(_0x55e919,_0x1bd207,_0x1b8465,_0x2174fe,_0x44c6b8,_0x2ced3a,_0x2edbe2,_0x43d5c1){const _0x487d01=_0x34e79e,_0x44c9be=this;_0x44c9be[_0x487d01('0x9cb')]=_0x2edbe2[_0x487d01('0x24cc')](),_0x44c9be[_0x487d01('0x25be')]=[],_0x44c9be[_0x487d01('0x14e4')]='OPENCHANNEL.EDIT_'+(_0x2174fe[_0x487d01('0x167b')]||_0x2174fe[_0x487d01('0x8a5')])[_0x487d01('0x25e6')](),_0x44c9be[_0x487d01('0x137a')]=angular[_0x487d01('0x2669')](_0x2174fe),_0x44c9be[_0x487d01('0xe28')]=_0x43d5c1,_0x44c9be[_0x487d01('0x1193')]={};if(_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')])switch(_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x167b')]?_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x167b')][_0x487d01('0xc2e')]():_0x44c9be['amazonlex'][_0x487d01('0x8a5')][_0x487d01('0xc2e')]()){case _0x487d01('0x1d56'):break;case _0x487d01('0x5e1'):{const _0x177a3f=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')][_0x487d01('0x1497')](',');_0x44c9be[_0x487d01('0x137a')]['key']=_0x177a3f[0x0],_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x175b')]=_0x177a3f[0x1],_0x44c9be[_0x487d01('0x137a')]['welcomemessage']=_0x177a3f[_0x487d01('0x845')](0x2,_0x177a3f[_0x487d01('0x2566')])[_0x487d01('0x185f')](',');}break;case _0x487d01('0x137a'):{const _0x33b6f8=_0x44c9be[_0x487d01('0x137a')]['appdata']['split'](',');_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x27f2')]=_0x33b6f8[0x0],_0x44c9be['amazonlex'][_0x487d01('0x1b58')]=_0x33b6f8[0x1],_0x44c9be['amazonlex']['lexregion']=_0x33b6f8[0x2],_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x4eb')]=_0x33b6f8[0x3],_0x44c9be['amazonlex']['welcomemessage']=_0x33b6f8[_0x487d01('0x845')](0x4,_0x33b6f8[_0x487d01('0x2566')])[_0x487d01('0x185f')](',');}break;case'autoreply':{const _0x2e7a31=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')]['split'](',');_0x44c9be[_0x487d01('0x137a')]['times']=isNaN(_0x2e7a31[0x0])?_0x2e7a31[0x0]:parseInt(_0x2e7a31[0x0],0xa),_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x16db')]=_0x2e7a31[_0x487d01('0x845')](0x1,_0x2e7a31[_0x487d01('0x2566')])[_0x487d01('0x185f')](',');}break;case _0x487d01('0x15e2'):_0x44c9be['amazonlex'][_0x487d01('0x16db')]=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')];break;case _0x487d01('0x3a6'):_0x44c9be['amazonlex']['name']=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')]['split']('=')[0x0],_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x49')]=_0x44c9be['amazonlex']['appdata']['split']('=')[0x1];break;case'agi':_0x44c9be[_0x487d01('0x137a')]['project']=_0x44c9be[_0x487d01('0x137a')]['appdata'];break;default:{const _0x154d1b=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xd6b')][_0x487d01('0x1497')](',');_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x27f2')]=_0x283545()[_0x487d01('0x213d')](_0x154d1b[0x0])?_0x154d1b[0x0]:isNaN(_0x154d1b[0x0])?_0x154d1b[0x0]:parseInt(_0x154d1b[0x0],0xa),_0x44c9be[_0x487d01('0x137a')]['secretaccesskey']=_0x283545()[_0x487d01('0x213d')](_0x154d1b[0x1])?_0x154d1b[0x1]:isNaN(_0x154d1b[0x1])?_0x154d1b[0x1]:parseInt(_0x154d1b[0x1],0xa),_0x44c9be[_0x487d01('0x137a')][_0x487d01('0xb70')]=_0x283545()[_0x487d01('0x213d')](_0x154d1b[0x2])?_0x154d1b[0x2]:isNaN(_0x154d1b[0x2])?_0x154d1b[0x2]:parseInt(_0x154d1b[0x2],0xa),_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x4eb')]=_0x283545()['isEmpty'](_0x154d1b[0x3])?_0x154d1b[0x3]:isNaN(_0x154d1b[0x3])?_0x154d1b[0x3]:parseInt(_0x154d1b[0x3],0xa),_0x44c9be['amazonlex'][_0x487d01('0xf50')]=_0x283545()['isEmpty'](_0x154d1b[0x4])?_0x154d1b[0x4]:isNaN(_0x154d1b[0x4])?_0x154d1b[0x4]:parseInt(_0x154d1b[0x4],0xa);}break;}else _0x44c9be[_0x487d01('0x137a')]['lexregion']=_0x487d01('0x1aa5');_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x1d7')]&&_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x1d7')][_0x487d01('0xc2e')]()==='outbound'&&_0x44c9be['amazonlex'][_0x487d01('0x167b')][_0x487d01('0xc2e')]()===_0x487d01('0x229c')&&(_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x1f71')]=_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x1224')]?_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x1224')][_0x487d01('0x1497')]('$')[0x0]:undefined,_0x44c9be[_0x487d01('0x137a')]['callerId']=_0x44c9be['amazonlex'][_0x487d01('0x8de')]?_0x487d01('0x1834')+_0x44c9be[_0x487d01('0x137a')][_0x487d01('0x8de')]:undefined);_0x44c9be['saveOpenchannelAccountApp']=_0x36ca1,_0x44c9be[_0x487d01('0xca7')]=_0x3e70da;function _0x36ca1(){const _0x35045a=_0x487d01;_0x44c9be[_0x35045a('0x25be')]=[];const _0x4af850=[];_0x44c9be[_0x35045a('0x137a')]['type']&&_0x44c9be['amazonlex'][_0x35045a('0x1d7')][_0x35045a('0xc2e')]()===_0x35045a('0x1')&&_0x44c9be['amazonlex'][_0x35045a('0x167b')]===_0x35045a('0x25fb')&&(_0x44c9be[_0x35045a('0x137a')]['phone']=_0x44c6b8[_0x35045a('0x277c')]?(_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x1f71')]||'')+_0x35045a('0x124d')+_0x44c6b8[_0x35045a('0x277c')]+'}':(_0x44c9be['amazonlex'][_0x35045a('0x1f71')]||'')+_0x35045a('0x1275'),_0x44c6b8[_0x35045a('0x801')]!==_0x35045a('0x1dc')?_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x784')][_0x35045a('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x784')]+=_0x35045a('0x1609')):_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x784')]=_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x784')][_0x35045a('0x10a4')](_0x35045a('0x1609'),''));if(_0x44c9be['amazonlex']['appType']&&_0x44c9be[_0x35045a('0x137a')]['appType']===_0x35045a('0x1d56')){}else switch((_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x8a5')]||_0x44c9be['amazonlex'][_0x35045a('0x167b')])[_0x35045a('0xc2e')]()){case'set':_0x44c9be[_0x35045a('0x137a')][_0x35045a('0xd6b')]=_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x1a8d')]+'='+_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x49')];break;case _0x35045a('0x1d56'):break;default:_0x4af850[0x0]=_0x44c9be['amazonlex'][_0x35045a('0x27f2')],_0x4af850[0x1]=_0x44c9be[_0x35045a('0x137a')][_0x35045a('0x1b58')],_0x4af850[0x2]=_0x44c9be[_0x35045a('0x137a')][_0x35045a('0xb70')],_0x4af850[0x3]=_0x44c9be[_0x35045a('0x137a')]['botname'],_0x4af850[0x4]=_0x44c9be['amazonlex']['welcomemessage'],_0x44c9be[_0x35045a('0x137a')][_0x35045a('0xd6b')]=_0x4af850['join'](',');}_0x3e70da(_0x44c9be['amazonlex']);}function _0x3e70da(_0x2efd5){_0x55e919['hide'](_0x2efd5);}}const _0x5599f7=_0x2044eb;_0x4098a8['$inject']=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x4098a8(_0x16d88c,_0x47d2da,_0x21a6a5,_0x420b23,_0x5334fa,_0x45d4e6,_0x32d105,_0x54b7e2){const _0xe96cd5=_0x34e79e,_0x5e22f3=this;_0x5e22f3[_0xe96cd5('0x9cb')]=_0x32d105['getCurrentUser'](),_0x5e22f3[_0xe96cd5('0x25be')]=[],_0x5e22f3[_0xe96cd5('0x14e4')]=_0xe96cd5('0x1ed')+(_0x420b23[_0xe96cd5('0x167b')]||_0x420b23[_0xe96cd5('0x8a5')])[_0xe96cd5('0x25e6')](),_0x5e22f3[_0xe96cd5('0x808')]=angular['copy'](_0x420b23),_0x5e22f3[_0xe96cd5('0xe28')]=_0x54b7e2,_0x5e22f3[_0xe96cd5('0x1193')]={};if(_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')])switch(_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x167b')]?_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x167b')][_0xe96cd5('0xc2e')]():_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x8a5')][_0xe96cd5('0xc2e')]()){case'custom':break;case'dialogflow':{const _0x24d09e=_0x5e22f3[_0xe96cd5('0x808')]['appdata']['split'](',');_0x5e22f3['autoreply'][_0xe96cd5('0x234b')]=_0x24d09e[0x0],_0x5e22f3['autoreply']['language']=_0x24d09e[0x1],_0x5e22f3[_0xe96cd5('0x808')]['welcomemessage']=_0x24d09e[_0xe96cd5('0x845')](0x2,_0x24d09e[_0xe96cd5('0x2566')])[_0xe96cd5('0x185f')](',');}break;case _0xe96cd5('0x137a'):{const _0x3a70c0=_0x5e22f3[_0xe96cd5('0x808')]['appdata']['split'](',');_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x27f2')]=_0x3a70c0[0x0],_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x1b58')]=_0x3a70c0[0x1],_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xb70')]=_0x3a70c0[0x2],_0x5e22f3['autoreply'][_0xe96cd5('0x4eb')]=_0x3a70c0[0x3],_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xf50')]=_0x3a70c0['slice'](0x4,_0x3a70c0[_0xe96cd5('0x2566')])['join'](',');}break;case'autoreply':{const _0x712e3a=_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')][_0xe96cd5('0x1497')](',');_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x5fd')]=isNaN(_0x712e3a[0x0])?_0x712e3a[0x0]:parseInt(_0x712e3a[0x0],0xa),_0x5e22f3[_0xe96cd5('0x808')]['text']=_0x712e3a[_0xe96cd5('0x845')](0x1,_0x712e3a[_0xe96cd5('0x2566')])[_0xe96cd5('0x185f')](',');}break;case _0xe96cd5('0x15e2'):_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x16db')]=_0x5e22f3['autoreply'][_0xe96cd5('0xd6b')];break;case'set':_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x1a8d')]=_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')][_0xe96cd5('0x1497')]('=')[0x0],_0x5e22f3[_0xe96cd5('0x808')]['value']=_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')][_0xe96cd5('0x1497')]('=')[0x1];break;case _0xe96cd5('0x2631'):_0x5e22f3[_0xe96cd5('0x808')]['project']=_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')];break;default:{const _0x13b504=_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0xd6b')][_0xe96cd5('0x1497')](',');_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x5fd')]=_0x283545()[_0xe96cd5('0x213d')](_0x13b504[0x0])?_0x13b504[0x0]:isNaN(_0x13b504[0x0])?_0x13b504[0x0]:parseInt(_0x13b504[0x0],0xa),_0x5e22f3['autoreply'][_0xe96cd5('0x16db')]=_0x283545()[_0xe96cd5('0x213d')](_0x13b504[0x1])?_0x13b504[0x1]:isNaN(_0x13b504[0x1])?_0x13b504[0x1]:parseInt(_0x13b504[0x1],0xa);}break;}else _0x5e22f3['autoreply'][_0xe96cd5('0x5fd')]=0x1;_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x1d7')]&&_0x5e22f3[_0xe96cd5('0x808')]['type'][_0xe96cd5('0xc2e')]()==='outbound'&&_0x5e22f3[_0xe96cd5('0x808')]['appType'][_0xe96cd5('0xc2e')]()==='outbounddial'&&(_0x5e22f3[_0xe96cd5('0x808')][_0xe96cd5('0x1f71')]=_0x5e22f3['autoreply'][_0xe96cd5('0x1224')]?_0x5e22f3['autoreply'][_0xe96cd5('0x1224')][_0xe96cd5('0x1497')]('$')[0x0]:undefined,_0x5e22f3['autoreply'][_0xe96cd5('0x2081')]=_0x5e22f3['autoreply'][_0xe96cd5('0x8de')]?'CALLERID(all)='+_0x5e22f3['autoreply'][_0xe96cd5('0x8de')]:undefined);_0x5e22f3[_0xe96cd5('0x451')]=_0x344cf6,_0x5e22f3['closeDialog']=_0x46af74;function _0x344cf6(){const _0x407944=_0xe96cd5;_0x5e22f3[_0x407944('0x25be')]=[];const _0x24801d=[];_0x5e22f3[_0x407944('0x808')][_0x407944('0x1d7')]&&_0x5e22f3[_0x407944('0x808')][_0x407944('0x1d7')]['toLowerCase']()==='outbound'&&_0x5e22f3[_0x407944('0x808')][_0x407944('0x167b')]==='outboundDial'&&(_0x5e22f3[_0x407944('0x808')][_0x407944('0x1224')]=_0x5334fa[_0x407944('0x277c')]?(_0x5e22f3[_0x407944('0x808')][_0x407944('0x1f71')]||'')+_0x407944('0x124d')+_0x5334fa[_0x407944('0x277c')]+'}':(_0x5e22f3['autoreply'][_0x407944('0x1f71')]||'')+_0x407944('0x1275'),_0x5334fa[_0x407944('0x801')]!=='none'?_0x5e22f3[_0x407944('0x808')][_0x407944('0x784')][_0x407944('0x821')](_0x407944('0x1609'))<0x0&&(_0x5e22f3['autoreply'][_0x407944('0x784')]+='U(xcally-mixmonitor-context)'):_0x5e22f3[_0x407944('0x808')][_0x407944('0x784')]=_0x5e22f3[_0x407944('0x808')][_0x407944('0x784')][_0x407944('0x10a4')](_0x407944('0x1609'),''));if(_0x5e22f3[_0x407944('0x808')][_0x407944('0x167b')]&&_0x5e22f3[_0x407944('0x808')][_0x407944('0x167b')]===_0x407944('0x1d56')){}else switch((_0x5e22f3[_0x407944('0x808')]['app']||_0x5e22f3[_0x407944('0x808')]['appType'])[_0x407944('0xc2e')]()){case _0x407944('0x3a6'):_0x5e22f3[_0x407944('0x808')][_0x407944('0xd6b')]=_0x5e22f3[_0x407944('0x808')][_0x407944('0x1a8d')]+'='+_0x5e22f3[_0x407944('0x808')]['value'];break;case _0x407944('0x1d56'):break;default:_0x24801d[0x0]=_0x5e22f3[_0x407944('0x808')][_0x407944('0x5fd')],_0x24801d[0x1]=_0x5e22f3[_0x407944('0x808')][_0x407944('0x16db')],_0x5e22f3[_0x407944('0x808')][_0x407944('0xd6b')]=_0x24801d['join'](',');}_0x46af74(_0x5e22f3['autoreply']);}function _0x46af74(_0x2ba516){const _0x22fa2c=_0xe96cd5;_0x16d88c[_0x22fa2c('0x19d')](_0x2ba516);}}const _0x5a3c79=_0x4098a8;_0x345ac1[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),'api',_0x34e79e('0x1b04'),'crudPermissions'];function _0x345ac1(_0x2f2445,_0x20f565,_0x2d3fc2,_0x5c09bc,_0x2585f2,_0x378f7e,_0x48049b,_0x58b8fc){const _0x2cb93f=_0x34e79e,_0x337905=this;_0x337905['currentUser']=_0x48049b[_0x2cb93f('0x24cc')](),_0x337905[_0x2cb93f('0x25be')]=[],_0x337905[_0x2cb93f('0x14e4')]=_0x2cb93f('0x1ed')+(_0x5c09bc[_0x2cb93f('0x167b')]||_0x5c09bc['app'])[_0x2cb93f('0x25e6')](),_0x337905['close']=angular[_0x2cb93f('0x2669')](_0x5c09bc),_0x337905[_0x2cb93f('0xe28')]=_0x58b8fc,_0x337905['hasModulePermissions']={};if(_0x337905['close'][_0x2cb93f('0xd6b')])switch(_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x167b')]?_0x337905['close'][_0x2cb93f('0x167b')]['toLowerCase']():_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x8a5')][_0x2cb93f('0xc2e')]()){case _0x2cb93f('0x1d56'):break;case'dialogflow':{const _0x15676e=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xd6b')][_0x2cb93f('0x1497')](',');_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x234b')]=_0x15676e[0x0],_0x337905[_0x2cb93f('0x69f')]['language']=_0x15676e[0x1],_0x337905['close']['welcomemessage']=_0x15676e[_0x2cb93f('0x845')](0x2,_0x15676e[_0x2cb93f('0x2566')])['join'](',');}break;case _0x2cb93f('0x137a'):{const _0x1a4bc2=_0x337905['close'][_0x2cb93f('0xd6b')]['split'](',');_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x27f2')]=_0x1a4bc2[0x0],_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x1b58')]=_0x1a4bc2[0x1],_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xb70')]=_0x1a4bc2[0x2],_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x4eb')]=_0x1a4bc2[0x3],_0x337905[_0x2cb93f('0x69f')]['welcomemessage']=_0x1a4bc2['slice'](0x4,_0x1a4bc2['length'])['join'](',');}break;case _0x2cb93f('0x808'):{const _0x10cf54=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xd6b')][_0x2cb93f('0x1497')](',');_0x337905[_0x2cb93f('0x69f')]['times']=isNaN(_0x10cf54[0x0])?_0x10cf54[0x0]:parseInt(_0x10cf54[0x0],0xa),_0x337905['close'][_0x2cb93f('0x16db')]=_0x10cf54[_0x2cb93f('0x845')](0x1,_0x10cf54[_0x2cb93f('0x2566')])[_0x2cb93f('0x185f')](',');}break;case _0x2cb93f('0x15e2'):_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x16db')]=_0x337905['close'][_0x2cb93f('0xd6b')];break;case _0x2cb93f('0x3a6'):_0x337905[_0x2cb93f('0x69f')]['name']=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xd6b')]['split']('=')[0x0],_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x49')]=_0x337905['close'][_0x2cb93f('0xd6b')][_0x2cb93f('0x1497')]('=')[0x1];break;case'agi':_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x1bf6')]=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xd6b')];break;default:{const _0x752dbd=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0xd6b')][_0x2cb93f('0x1497')](',');_0x337905['close'][_0x2cb93f('0x1db2')]=_0x283545()[_0x2cb93f('0x213d')](_0x752dbd[0x0])?_0x752dbd[0x0]:isNaN(_0x752dbd[0x0])?_0x752dbd[0x0]:parseInt(_0x752dbd[0x0],0xa);}break;}else{}_0x337905[_0x2cb93f('0x69f')]['type']&&_0x337905[_0x2cb93f('0x69f')]['type'][_0x2cb93f('0xc2e')]()===_0x2cb93f('0x1')&&_0x337905[_0x2cb93f('0x69f')]['appType'][_0x2cb93f('0xc2e')]()===_0x2cb93f('0x229c')&&(_0x337905['close'][_0x2cb93f('0x1f71')]=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x1224')]?_0x337905[_0x2cb93f('0x69f')]['phone'][_0x2cb93f('0x1497')]('$')[0x0]:undefined,_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x2081')]=_0x337905[_0x2cb93f('0x69f')][_0x2cb93f('0x8de')]?_0x2cb93f('0x1834')+_0x337905['close'][_0x2cb93f('0x8de')]:undefined);_0x337905['saveOpenchannelAccountApp']=_0x5d45b9,_0x337905['closeDialog']=_0x363d64;function _0x5d45b9(){const _0xa2b86=_0x2cb93f;_0x337905['errors']=[];const _0x5010c5=[];_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x1d7')]&&_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x1d7')]['toLowerCase']()==='outbound'&&_0x337905['close']['appType']==='outboundDial'&&(_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x1224')]=_0x2585f2['cutdigits']?(_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x1f71')]||'')+'${EXTEN:'+_0x2585f2[_0xa2b86('0x277c')]+'}':(_0x337905['close'][_0xa2b86('0x1f71')]||'')+_0xa2b86('0x1275'),_0x2585f2[_0xa2b86('0x801')]!==_0xa2b86('0x1dc')?_0x337905['close'][_0xa2b86('0x784')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x784')]+='U(xcally-mixmonitor-context)'):_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x784')]=_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x784')][_0xa2b86('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x337905[_0xa2b86('0x69f')]['appType']&&_0x337905[_0xa2b86('0x69f')]['appType']===_0xa2b86('0x1d56')){}else switch((_0x337905[_0xa2b86('0x69f')]['app']||_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x167b')])[_0xa2b86('0xc2e')]()){case'set':_0x337905['close'][_0xa2b86('0xd6b')]=_0x337905['close'][_0xa2b86('0x1a8d')]+'='+_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x49')];break;case _0xa2b86('0x1d56'):break;default:_0x5010c5[0x0]=_0x337905[_0xa2b86('0x69f')][_0xa2b86('0x1db2')],_0x337905['close'][_0xa2b86('0xd6b')]=_0x5010c5[_0xa2b86('0x185f')](',');}_0x363d64(_0x337905['close']);}function _0x363d64(_0x420799){const _0x4511ef=_0x2cb93f;_0x2f2445[_0x4511ef('0x19d')](_0x420799);}}const _0x2061b3=_0x345ac1;_0x21cfc4[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x21cfc4(_0x2f6d37,_0x32d701,_0x1b9975,_0x4f54f,_0x11927a,_0x5bf586,_0x37f446,_0x3cfea9){const _0x6fea0b=_0x34e79e,_0x1b98a3=this;_0x1b98a3[_0x6fea0b('0x9cb')]=_0x37f446['getCurrentUser'](),_0x1b98a3[_0x6fea0b('0x25be')]=[],_0x1b98a3[_0x6fea0b('0x14e4')]='OPENCHANNEL.EDIT_'+(_0x4f54f[_0x6fea0b('0x167b')]||_0x4f54f[_0x6fea0b('0x8a5')])[_0x6fea0b('0x25e6')](),_0x1b98a3[_0x6fea0b('0x5e1')]=angular['copy'](_0x4f54f),_0x1b98a3[_0x6fea0b('0xe28')]=_0x3cfea9,_0x1b98a3['hasModulePermissions']={};if(_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')])switch(_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x167b')]?_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x167b')]['toLowerCase']():_0x1b98a3[_0x6fea0b('0x5e1')]['app'][_0x6fea0b('0xc2e')]()){case'custom':break;case _0x6fea0b('0x5e1'):{const _0x1b1701=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')][_0x6fea0b('0x1497')](',');_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x234b')]=_0x1b1701[0x0],_0x1b98a3['dialogflow'][_0x6fea0b('0x175b')]=_0x1b1701[0x1],_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xf50')]=_0x1b1701['slice'](0x2,_0x1b1701['length'])['join'](',');}break;case _0x6fea0b('0x137a'):{const _0x22cb4c=_0x1b98a3['dialogflow']['appdata'][_0x6fea0b('0x1497')](',');_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x27f2')]=_0x22cb4c[0x0],_0x1b98a3['dialogflow'][_0x6fea0b('0x1b58')]=_0x22cb4c[0x1],_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xb70')]=_0x22cb4c[0x2],_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x4eb')]=_0x22cb4c[0x3],_0x1b98a3['dialogflow'][_0x6fea0b('0xf50')]=_0x22cb4c['slice'](0x4,_0x22cb4c[_0x6fea0b('0x2566')])[_0x6fea0b('0x185f')](',');}break;case'autoreply':{const _0x1e5d4e=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')]['split'](',');_0x1b98a3['dialogflow'][_0x6fea0b('0x5fd')]=isNaN(_0x1e5d4e[0x0])?_0x1e5d4e[0x0]:parseInt(_0x1e5d4e[0x0],0xa),_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x16db')]=_0x1e5d4e[_0x6fea0b('0x845')](0x1,_0x1e5d4e[_0x6fea0b('0x2566')])[_0x6fea0b('0x185f')](',');}break;case _0x6fea0b('0x15e2'):_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x16db')]=_0x1b98a3['dialogflow'][_0x6fea0b('0xd6b')];break;case _0x6fea0b('0x3a6'):_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x1a8d')]=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')][_0x6fea0b('0x1497')]('=')[0x0],_0x1b98a3['dialogflow'][_0x6fea0b('0x49')]=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')]['split']('=')[0x1];break;case'agi':_0x1b98a3[_0x6fea0b('0x5e1')]['project']=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')];break;default:{const _0x4886d1=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xd6b')]['split'](',');_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x234b')]=_0x283545()[_0x6fea0b('0x213d')](_0x4886d1[0x0])?_0x4886d1[0x0]:isNaN(_0x4886d1[0x0])?_0x4886d1[0x0]:parseInt(_0x4886d1[0x0],0xa),_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x175b')]=_0x283545()[_0x6fea0b('0x213d')](_0x4886d1[0x1])?_0x4886d1[0x1]:isNaN(_0x4886d1[0x1])?_0x4886d1[0x1]:parseInt(_0x4886d1[0x1],0xa),_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0xf50')]=_0x283545()[_0x6fea0b('0x213d')](_0x4886d1[0x2])?_0x4886d1[0x2]:isNaN(_0x4886d1[0x2])?_0x4886d1[0x2]:parseInt(_0x4886d1[0x2],0xa);}break;}else _0x1b98a3['dialogflow'][_0x6fea0b('0x175b')]='en';_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x1d7')]&&_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x1d7')][_0x6fea0b('0xc2e')]()===_0x6fea0b('0x1')&&_0x1b98a3[_0x6fea0b('0x5e1')]['appType'][_0x6fea0b('0xc2e')]()===_0x6fea0b('0x229c')&&(_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x1f71')]=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x1224')]?_0x1b98a3['dialogflow'][_0x6fea0b('0x1224')][_0x6fea0b('0x1497')]('$')[0x0]:undefined,_0x1b98a3['dialogflow'][_0x6fea0b('0x2081')]=_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x8de')]?_0x6fea0b('0x1834')+_0x1b98a3[_0x6fea0b('0x5e1')][_0x6fea0b('0x8de')]:undefined);_0x1b98a3['saveOpenchannelAccountApp']=_0x1dac76,_0x1b98a3[_0x6fea0b('0xca7')]=_0x40b087;function _0x1dac76(){const _0x2985c4=_0x6fea0b;_0x1b98a3[_0x2985c4('0x25be')]=[];const _0x3230e9=[];_0x1b98a3['dialogflow'][_0x2985c4('0x1d7')]&&_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x1d7')][_0x2985c4('0xc2e')]()===_0x2985c4('0x1')&&_0x1b98a3['dialogflow'][_0x2985c4('0x167b')]===_0x2985c4('0x25fb')&&(_0x1b98a3['dialogflow'][_0x2985c4('0x1224')]=_0x11927a[_0x2985c4('0x277c')]?(_0x1b98a3[_0x2985c4('0x5e1')]['prefix']||'')+_0x2985c4('0x124d')+_0x11927a[_0x2985c4('0x277c')]+'}':(_0x1b98a3['dialogflow'][_0x2985c4('0x1f71')]||'')+'${EXTEN}',_0x11927a['recordingFormat']!==_0x2985c4('0x1dc')?_0x1b98a3['dialogflow'][_0x2985c4('0x784')][_0x2985c4('0x821')](_0x2985c4('0x1609'))<0x0&&(_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x784')]+=_0x2985c4('0x1609')):_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x784')]=_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x784')][_0x2985c4('0x10a4')](_0x2985c4('0x1609'),''));if(_0x1b98a3[_0x2985c4('0x5e1')]['appType']&&_0x1b98a3['dialogflow']['appType']===_0x2985c4('0x1d56')){}else switch((_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x8a5')]||_0x1b98a3[_0x2985c4('0x5e1')]['appType'])['toLowerCase']()){case _0x2985c4('0x3a6'):_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0xd6b')]=_0x1b98a3['dialogflow']['name']+'='+_0x1b98a3[_0x2985c4('0x5e1')]['value'];break;case _0x2985c4('0x1d56'):break;default:_0x3230e9[0x0]=_0x1b98a3[_0x2985c4('0x5e1')]['key'],_0x3230e9[0x1]=_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0x175b')],_0x3230e9[0x2]=_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0xf50')],_0x1b98a3[_0x2985c4('0x5e1')][_0x2985c4('0xd6b')]=_0x3230e9['join'](',');}_0x40b087(_0x1b98a3[_0x2985c4('0x5e1')]);}function _0x40b087(_0x429a03){const _0x54643c=_0x6fea0b;_0x2f6d37[_0x54643c('0x19d')](_0x429a03);}}const _0x488c62=_0x21cfc4;_0x3c6a98['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3c6a98(_0x3c615c,_0x524829,_0x3f4741,_0x1f5cfa,_0xb14304,_0x612657,_0x241af4,_0x542977){const _0x2d721e=_0x34e79e,_0x38f69e=this;_0x38f69e[_0x2d721e('0x9cb')]=_0x241af4[_0x2d721e('0x24cc')](),_0x38f69e[_0x2d721e('0x25be')]=[],_0x38f69e[_0x2d721e('0x14e4')]=_0x2d721e('0x1ed')+(_0x1f5cfa[_0x2d721e('0x167b')]||_0x1f5cfa[_0x2d721e('0x8a5')])[_0x2d721e('0x25e6')](),_0x38f69e[_0x2d721e('0x1e01')]=angular[_0x2d721e('0x2669')](_0x1f5cfa),_0x38f69e[_0x2d721e('0xe28')]=_0x542977,_0x38f69e['hasModulePermissions']={};if(_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0xd6b')])switch(_0x38f69e[_0x2d721e('0x1e01')]['appType']?_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x167b')][_0x2d721e('0xc2e')]():_0x38f69e['gotoif'][_0x2d721e('0x8a5')][_0x2d721e('0xc2e')]()){case _0x2d721e('0x1d56'):break;case _0x2d721e('0x5e1'):{const _0x414b69=_0x38f69e[_0x2d721e('0x1e01')]['appdata'][_0x2d721e('0x1497')](',');_0x38f69e[_0x2d721e('0x1e01')]['key']=_0x414b69[0x0],_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x175b')]=_0x414b69[0x1],_0x38f69e[_0x2d721e('0x1e01')]['welcomemessage']=_0x414b69[_0x2d721e('0x845')](0x2,_0x414b69[_0x2d721e('0x2566')])['join'](',');}break;case _0x2d721e('0x137a'):{const _0x4a9c75=_0x38f69e['gotoif'][_0x2d721e('0xd6b')][_0x2d721e('0x1497')](',');_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x27f2')]=_0x4a9c75[0x0],_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1b58')]=_0x4a9c75[0x1],_0x38f69e[_0x2d721e('0x1e01')]['lexregion']=_0x4a9c75[0x2],_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x4eb')]=_0x4a9c75[0x3],_0x38f69e['gotoif'][_0x2d721e('0xf50')]=_0x4a9c75['slice'](0x4,_0x4a9c75[_0x2d721e('0x2566')])[_0x2d721e('0x185f')](',');}break;case _0x2d721e('0x808'):{const _0x21771c=_0x38f69e['gotoif']['appdata'][_0x2d721e('0x1497')](',');_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x5fd')]=isNaN(_0x21771c[0x0])?_0x21771c[0x0]:parseInt(_0x21771c[0x0],0xa),_0x38f69e['gotoif'][_0x2d721e('0x16db')]=_0x21771c[_0x2d721e('0x845')](0x1,_0x21771c[_0x2d721e('0x2566')])['join'](',');}break;case _0x2d721e('0x15e2'):_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x16db')]=_0x38f69e['gotoif'][_0x2d721e('0xd6b')];break;case _0x2d721e('0x3a6'):_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1a8d')]=_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0xd6b')][_0x2d721e('0x1497')]('=')[0x0],_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x49')]=_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0xd6b')]['split']('=')[0x1];break;case _0x2d721e('0x2631'):_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1bf6')]=_0x38f69e[_0x2d721e('0x1e01')]['appdata'];break;default:{const _0x33e2f9=_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0xd6b')][_0x2d721e('0x1497')](',');_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0xf2b')]=_0x283545()[_0x2d721e('0x213d')](_0x33e2f9[0x0])?_0x33e2f9[0x0]:isNaN(_0x33e2f9[0x0])?_0x33e2f9[0x0]:parseInt(_0x33e2f9[0x0],0xa),_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x86a')]=_0x283545()[_0x2d721e('0x213d')](_0x33e2f9[0x1])?_0x33e2f9[0x1]:isNaN(_0x33e2f9[0x1])?_0x33e2f9[0x1]:parseInt(_0x33e2f9[0x1],0xa),_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1474')]=_0x283545()[_0x2d721e('0x213d')](_0x33e2f9[0x2])?_0x33e2f9[0x2]:isNaN(_0x33e2f9[0x2])?_0x33e2f9[0x2]:parseInt(_0x33e2f9[0x2],0xa);}break;}else{}_0x38f69e[_0x2d721e('0x1e01')]['type']&&_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1d7')][_0x2d721e('0xc2e')]()==='outbound'&&_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x1f71')]=_0x38f69e[_0x2d721e('0x1e01')]['phone']?_0x38f69e[_0x2d721e('0x1e01')]['phone'][_0x2d721e('0x1497')]('$')[0x0]:undefined,_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x2081')]=_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x8de')]?_0x2d721e('0x1834')+_0x38f69e[_0x2d721e('0x1e01')][_0x2d721e('0x8de')]:undefined);_0x38f69e[_0x2d721e('0x451')]=_0x4e6761,_0x38f69e['closeDialog']=_0x46b8c5;function _0x4e6761(){const _0x44cd62=_0x2d721e;_0x38f69e[_0x44cd62('0x25be')]=[];const _0x159a40=[];_0x38f69e['gotoif'][_0x44cd62('0x1d7')]&&_0x38f69e['gotoif'][_0x44cd62('0x1d7')][_0x44cd62('0xc2e')]()===_0x44cd62('0x1')&&_0x38f69e['gotoif']['appType']==='outboundDial'&&(_0x38f69e['gotoif'][_0x44cd62('0x1224')]=_0xb14304[_0x44cd62('0x277c')]?(_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x1f71')]||'')+_0x44cd62('0x124d')+_0xb14304['cutdigits']+'}':(_0x38f69e['gotoif'][_0x44cd62('0x1f71')]||'')+_0x44cd62('0x1275'),_0xb14304[_0x44cd62('0x801')]!==_0x44cd62('0x1dc')?_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x784')][_0x44cd62('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x784')]+='U(xcally-mixmonitor-context)'):_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x784')]=_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x784')]['replace'](_0x44cd62('0x1609'),''));if(_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x167b')]&&_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x167b')]===_0x44cd62('0x1d56')){}else switch((_0x38f69e[_0x44cd62('0x1e01')]['app']||_0x38f69e['gotoif'][_0x44cd62('0x167b')])[_0x44cd62('0xc2e')]()){case _0x44cd62('0x3a6'):_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0xd6b')]=_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x1a8d')]+'='+_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x49')];break;case'custom':break;default:_0x159a40[0x0]=_0x38f69e[_0x44cd62('0x1e01')]['condition'],_0x159a40[0x1]=_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x86a')],_0x159a40[0x2]=_0x38f69e[_0x44cd62('0x1e01')][_0x44cd62('0x1474')],_0x38f69e[_0x44cd62('0x1e01')]['appdata']=_0x159a40['join'](',');}_0x46b8c5(_0x38f69e['gotoif']);}function _0x46b8c5(_0x2f588b){_0x3c615c['hide'](_0x2f588b);}}const _0x3d8dd0=_0x3c6a98;_0x58678d[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty','openchannelAccountApp',_0x34e79e('0xfba'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x58678d(_0x3c921c,_0x4034b7,_0x460976,_0x46fa5f,_0x1faefa,_0x55de02,_0x187f8a,_0x31c4ff){const _0x4b30a3=_0x34e79e,_0x28584d=this;_0x28584d[_0x4b30a3('0x9cb')]=_0x187f8a[_0x4b30a3('0x24cc')](),_0x28584d[_0x4b30a3('0x25be')]=[],_0x28584d[_0x4b30a3('0x14e4')]=_0x4b30a3('0x1ed')+(_0x46fa5f['appType']||_0x46fa5f[_0x4b30a3('0x8a5')])['toUpperCase'](),_0x28584d[_0x4b30a3('0x1598')]=angular[_0x4b30a3('0x2669')](_0x46fa5f),_0x28584d['crudPermissions']=_0x31c4ff,_0x28584d[_0x4b30a3('0x1193')]={};if(_0x28584d['gotop'][_0x4b30a3('0xd6b')])switch(_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x167b')]?_0x28584d[_0x4b30a3('0x1598')]['appType']['toLowerCase']():_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x8a5')][_0x4b30a3('0xc2e')]()){case _0x4b30a3('0x1d56'):break;case _0x4b30a3('0x5e1'):{const _0x211f8f=_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0xd6b')]['split'](',');_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x234b')]=_0x211f8f[0x0],_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x175b')]=_0x211f8f[0x1],_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0xf50')]=_0x211f8f[_0x4b30a3('0x845')](0x2,_0x211f8f[_0x4b30a3('0x2566')])[_0x4b30a3('0x185f')](',');}break;case _0x4b30a3('0x137a'):{const _0x17f977=_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0xd6b')][_0x4b30a3('0x1497')](',');_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x27f2')]=_0x17f977[0x0],_0x28584d[_0x4b30a3('0x1598')]['secretaccesskey']=_0x17f977[0x1],_0x28584d[_0x4b30a3('0x1598')]['lexregion']=_0x17f977[0x2],_0x28584d[_0x4b30a3('0x1598')]['botname']=_0x17f977[0x3],_0x28584d['gotop'][_0x4b30a3('0xf50')]=_0x17f977[_0x4b30a3('0x845')](0x4,_0x17f977[_0x4b30a3('0x2566')])[_0x4b30a3('0x185f')](',');}break;case'autoreply':{const _0x1f85e9=_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0xd6b')][_0x4b30a3('0x1497')](',');_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x5fd')]=isNaN(_0x1f85e9[0x0])?_0x1f85e9[0x0]:parseInt(_0x1f85e9[0x0],0xa),_0x28584d['gotop'][_0x4b30a3('0x16db')]=_0x1f85e9[_0x4b30a3('0x845')](0x1,_0x1f85e9[_0x4b30a3('0x2566')])[_0x4b30a3('0x185f')](',');}break;case _0x4b30a3('0x15e2'):_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x16db')]=_0x28584d['gotop'][_0x4b30a3('0xd6b')];break;case'set':_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x1a8d')]=_0x28584d['gotop'][_0x4b30a3('0xd6b')][_0x4b30a3('0x1497')]('=')[0x0],_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x49')]=_0x28584d['gotop'][_0x4b30a3('0xd6b')][_0x4b30a3('0x1497')]('=')[0x1];break;case _0x4b30a3('0x2631'):_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x1bf6')]=_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0xd6b')];break;default:{const _0x24a120=_0x28584d['gotop'][_0x4b30a3('0xd6b')][_0x4b30a3('0x1497')](',');_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x155b')]=_0x283545()[_0x4b30a3('0x213d')](_0x24a120[0x0])?_0x24a120[0x0]:isNaN(_0x24a120[0x0])?_0x24a120[0x0]:parseInt(_0x24a120[0x0],0xa);}break;}else{}_0x28584d['gotop']['type']&&_0x28584d['gotop'][_0x4b30a3('0x1d7')][_0x4b30a3('0xc2e')]()===_0x4b30a3('0x1')&&_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x167b')][_0x4b30a3('0xc2e')]()===_0x4b30a3('0x229c')&&(_0x28584d['gotop'][_0x4b30a3('0x1f71')]=_0x28584d[_0x4b30a3('0x1598')]['phone']?_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x1224')][_0x4b30a3('0x1497')]('$')[0x0]:undefined,_0x28584d[_0x4b30a3('0x1598')][_0x4b30a3('0x2081')]=_0x28584d['gotop'][_0x4b30a3('0x8de')]?_0x4b30a3('0x1834')+_0x28584d['gotop'][_0x4b30a3('0x8de')]:undefined);_0x28584d[_0x4b30a3('0x451')]=_0x40bca2,_0x28584d[_0x4b30a3('0xca7')]=_0x473e41;function _0x40bca2(){const _0x1e1e59=_0x4b30a3;_0x28584d[_0x1e1e59('0x25be')]=[];const _0x88bfc6=[];_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x1d7')]&&_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x1d7')][_0x1e1e59('0xc2e')]()===_0x1e1e59('0x1')&&_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x167b')]===_0x1e1e59('0x25fb')&&(_0x28584d['gotop'][_0x1e1e59('0x1224')]=_0x1faefa['cutdigits']?(_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x1f71')]||'')+_0x1e1e59('0x124d')+_0x1faefa[_0x1e1e59('0x277c')]+'}':(_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x1f71')]||'')+_0x1e1e59('0x1275'),_0x1faefa[_0x1e1e59('0x801')]!==_0x1e1e59('0x1dc')?_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x784')][_0x1e1e59('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x28584d['gotop']['options']+='U(xcally-mixmonitor-context)'):_0x28584d['gotop'][_0x1e1e59('0x784')]=_0x28584d['gotop'][_0x1e1e59('0x784')][_0x1e1e59('0x10a4')](_0x1e1e59('0x1609'),''));if(_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x167b')]&&_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x167b')]===_0x1e1e59('0x1d56')){}else switch((_0x28584d['gotop']['app']||_0x28584d['gotop'][_0x1e1e59('0x167b')])[_0x1e1e59('0xc2e')]()){case _0x1e1e59('0x3a6'):_0x28584d[_0x1e1e59('0x1598')]['appdata']=_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x1a8d')]+'='+_0x28584d[_0x1e1e59('0x1598')]['value'];break;case _0x1e1e59('0x1d56'):break;default:_0x88bfc6[0x0]=_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0x155b')],_0x28584d[_0x1e1e59('0x1598')][_0x1e1e59('0xd6b')]=_0x88bfc6[_0x1e1e59('0x185f')](',');}_0x473e41(_0x28584d[_0x1e1e59('0x1598')]);}function _0x473e41(_0x10ceee){const _0x11ece1=_0x4b30a3;_0x3c921c[_0x11ece1('0x19d')](_0x10ceee);}}const _0x5c9e57=_0x58678d;_0x4650c8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),'$mdToast',_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x4650c8(_0x446f33,_0x525b23,_0x15569d,_0x3b2d16,_0x1a9901,_0x1084cf,_0x23ea49,_0x1f52f2,_0x872599,_0x583ad8){const _0x1cc3c0=_0x34e79e,_0x3649a4=this;_0x3649a4['currentUser']=_0x872599['getCurrentUser'](),_0x3649a4[_0x1cc3c0('0x25be')]=[],_0x3649a4[_0x1cc3c0('0x14e4')]=_0x1cc3c0('0x2f9'),_0x3649a4[_0x1cc3c0('0x2630')]=angular['copy'](_0x1a9901),_0x3649a4[_0x1cc3c0('0xec5')]=_0x1084cf,_0x3649a4['newInterval']=![],_0x3649a4['types']=[_0x1cc3c0('0xc8f'),'custom','list'],_0x3649a4[_0x1cc3c0('0xe28')]=_0x583ad8,_0x3649a4[_0x1cc3c0('0x1eb8')]=_0x3b2d16[_0x1cc3c0('0xec1')](),_0x3649a4[_0x1cc3c0('0x323')]=_0x3b2d16[_0x1cc3c0('0x1383')](),_0x3649a4[_0x1cc3c0('0xfed')]=_0x3b2d16['getMonthName'](),_0x3649a4[_0x1cc3c0('0x1d59')]=_0x3b2d16[_0x1cc3c0('0x1b79')]();if(!_0x3649a4[_0x1cc3c0('0x2630')])_0x3649a4[_0x1cc3c0('0x2630')]={'interval':'*,*,*,*'},_0x3649a4[_0x1cc3c0('0x1d7')]='always',_0x3649a4[_0x1cc3c0('0x14e4')]=_0x1cc3c0('0xbee'),_0x3649a4[_0x1cc3c0('0x1f7c')]=!![];else{if(_0x3649a4[_0x1cc3c0('0x2630')][_0x1cc3c0('0x2630')]!==_0x1cc3c0('0x2191')){_0x3649a4[_0x1cc3c0('0x1d7')]=_0x1cc3c0('0x1d56');const _0x4dab3e=_0x3649a4[_0x1cc3c0('0x2630')]['interval'][_0x1cc3c0('0x1497')](','),_0x34d88d=_0x4dab3e[0x0],_0x25f803=_0x4dab3e[0x1],_0x30ebcc=_0x4dab3e[0x2],_0x54029a=_0x4dab3e[0x3];if(_0x34d88d!=='*'){const _0x24e1af=_0x34d88d[_0x1cc3c0('0x1497')]('-')[0x0],_0x3e4801=_0x34d88d['split']('-')[0x1];let _0x5edef3;_0x5edef3=new Date(),_0x5edef3[_0x1cc3c0('0x26f3')](Number(_0x24e1af[_0x1cc3c0('0x1497')](':')[0x0])),_0x5edef3[_0x1cc3c0('0x18d')](Number(_0x24e1af['split'](':')[0x1])),_0x3649a4[_0x1cc3c0('0x9c0')]=_0x5edef3,_0x5edef3=new Date(),_0x5edef3[_0x1cc3c0('0x26f3')](Number(_0x3e4801['split'](':')[0x0])),_0x5edef3[_0x1cc3c0('0x18d')](Number(_0x3e4801[_0x1cc3c0('0x1497')](':')[0x1])),_0x3649a4[_0x1cc3c0('0x4a7')]=_0x5edef3;}_0x25f803!=='*'&&(_0x3649a4['dayOfWeekFrom']=_0x25f803[_0x1cc3c0('0x1497')]('-')[0x0],_0x3649a4['dayOfWeekTo']=_0x25f803[_0x1cc3c0('0x1497')]('-')[0x1]),_0x30ebcc!=='*'&&(_0x3649a4[_0x1cc3c0('0x1d91')]=_0x30ebcc[_0x1cc3c0('0x1497')]('-')[0x0],_0x3649a4[_0x1cc3c0('0x883')]=_0x30ebcc['split']('-')[0x1]),_0x54029a!=='*'&&(_0x3649a4['monthFrom']=_0x54029a[_0x1cc3c0('0x1497')]('-')[0x0],_0x3649a4[_0x1cc3c0('0x3dc')]=_0x54029a[_0x1cc3c0('0x1497')]('-')[0x1]);}else _0x3649a4[_0x1cc3c0('0x1d7')]='always';}_0x446f33[_0x1cc3c0('0x4b9')]['id']&&!_0x3649a4[_0x1cc3c0('0x2630')][_0x1cc3c0('0x193')]&&(_0x3649a4[_0x1cc3c0('0x2630')][_0x1cc3c0('0x20d0')]=_0x446f33[_0x1cc3c0('0x4b9')]['id']);_0x3649a4[_0x1cc3c0('0x2630')]['IntervalId']&&_0x3649a4['interval'][_0x1cc3c0('0x193')]&&(_0x3649a4['type']='list');_0x3649a4[_0x1cc3c0('0x267f')]=_0xf40854,_0x3649a4[_0x1cc3c0('0x2791')]=_0x18b098,_0x3649a4[_0x1cc3c0('0xca7')]=_0x1a64de;_0x3649a4[_0x1cc3c0('0x2630')][_0x1cc3c0('0x193')]&&(_0x872599[_0x1cc3c0('0x1516')](_0x1cc3c0('0xe23'))?_0x1f52f2[_0x1cc3c0('0x2630')][_0x1cc3c0('0x1335')]({'fields':_0x1cc3c0('0x27dc'),'IntervalId':_0x1cc3c0('0x954'),'nolimit':!![]})[_0x1cc3c0('0x1714')]['then'](function(_0x146580){const _0x41da0c=_0x1cc3c0;_0x3649a4[_0x41da0c('0xec5')]=_0x146580[_0x41da0c('0x25df')]||[];})[_0x1cc3c0('0x1cb5')](function(_0x47a82e){const _0x19df99=_0x1cc3c0;_0x23ea49[_0x19df99('0x5e8')]({'title':_0x47a82e['status']?_0x19df99('0x15d1')+_0x47a82e[_0x19df99('0x1b51')]+'\x20-\x20'+_0x47a82e['statusText']:_0x19df99('0x2151'),'msg':_0x47a82e[_0x19df99('0x11fc')]?JSON[_0x19df99('0x1be0')](_0x47a82e[_0x19df99('0x11fc')]):_0x47a82e[_0x19df99('0x17df')]()});}):_0x1f52f2[_0x1cc3c0('0x2630')][_0x1cc3c0('0x1335')]({'fields':_0x1cc3c0('0x27dc'),'IntervalId':_0x1cc3c0('0x954'),'nolimit':!![]})[_0x1cc3c0('0x1714')][_0x1cc3c0('0x2788')](function(_0x271ce3){const _0x52fb19=_0x1cc3c0;_0x3649a4[_0x52fb19('0xec5')]=_0x271ce3[_0x52fb19('0x25df')]||[];})['then'](function(){const _0x434014=_0x1cc3c0;return _0x1f52f2[_0x434014('0xec9')]['get']({'userProfileId':_0x3649a4[_0x434014('0x9cb')][_0x434014('0x237f')],'sectionId':0x3ec})[_0x434014('0x1714')];})[_0x1cc3c0('0x2788')](function(_0x188765){const _0x24753f=_0x1cc3c0,_0x272fae=_0x188765&&_0x188765[_0x24753f('0x25df')]?_0x188765[_0x24753f('0x25df')][0x0]:null;if(!_0x272fae)_0x3649a4['intervals']=[];else{if(!_0x272fae[_0x24753f('0x1c0a')])return _0x1f52f2['userProfileResource'][_0x24753f('0x1335')]({'sectionId':_0x272fae['id']})[_0x24753f('0x1714')][_0x24753f('0x2788')](function(_0x1d199d){const _0x544e39=_0x24753f,_0x58cc46=_0x1d199d&&_0x1d199d['rows']?_0x1d199d[_0x544e39('0x25df')]:[],_0x3f2b47=[];let _0x2481f1=null;_0x3649a4[_0x544e39('0x2630')]&&(_0x2481f1=_0x283545()[_0x544e39('0x20e8')](_0x3649a4['intervals'],{'name':_0x3649a4[_0x544e39('0x2630')][_0x544e39('0x20d0')]})),_0x2481f1&&!_0x283545()[_0x544e39('0xc5d')](_0x58cc46,[_0x544e39('0x2707'),_0x2481f1['id']])&&_0x3649a4[_0x544e39('0xec5')][_0x544e39('0x1534')](function(_0x4ac00d){const _0x4b9b79=_0x544e39;_0x4ac00d['id']===_0x2481f1['id']&&(_0x4ac00d['canSelect']=![],_0x3f2b47[_0x4b9b79('0x13e3')](_0x4ac00d));}),_0x3649a4['intervals']=_0x3f2b47;});}})['catch'](function(_0x4f9418){const _0x805ee2=_0x1cc3c0;_0x23ea49[_0x805ee2('0x5e8')]({'title':_0x4f9418['status']?_0x805ee2('0x15d1')+_0x4f9418[_0x805ee2('0x1b51')]+_0x805ee2('0x1b0b')+_0x4f9418[_0x805ee2('0x22ce')]:_0x805ee2('0x2151'),'msg':_0x4f9418[_0x805ee2('0x11fc')]?JSON['stringify'](_0x4f9418[_0x805ee2('0x11fc')]):_0x4f9418['toString']()});}));function _0x4c6373(){const _0x458082=_0x1cc3c0;switch(_0x3649a4[_0x458082('0x1d7')]){case'always':case _0x458082('0x4b2'):return _0x458082('0x2191');case'custom':{const _0x3b69cf=[];if(_0x3649a4[_0x458082('0x9c0')]!=='*'&&_0x3649a4[_0x458082('0x9c0')]&&_0x3649a4['timeRangeTo']){const _0x1d2a24=(_0x3649a4['timeRangeFrom'][_0x458082('0x130a')]()<0xa?'0':'')+_0x3649a4[_0x458082('0x9c0')][_0x458082('0x130a')]()+':'+((_0x3649a4[_0x458082('0x9c0')][_0x458082('0x2649')]()<0xa?'0':'')+_0x3649a4[_0x458082('0x9c0')]['getMinutes']()),_0x4eb6b0=(_0x3649a4['timeRangeTo'][_0x458082('0x130a')]()<0xa?'0':'')+_0x3649a4[_0x458082('0x4a7')][_0x458082('0x130a')]()+':'+((_0x3649a4[_0x458082('0x4a7')][_0x458082('0x2649')]()<0xa?'0':'')+_0x3649a4[_0x458082('0x4a7')][_0x458082('0x2649')]());_0x3b69cf[_0x458082('0x13e3')](_0x1d2a24+'-'+_0x4eb6b0);}else _0x3b69cf[_0x458082('0x13e3')]('*');return _0x3649a4[_0x458082('0x240c')]?_0x3649a4[_0x458082('0x6c2')]?_0x3b69cf[_0x458082('0x13e3')](_0x3649a4[_0x458082('0x240c')]+'-'+_0x3649a4[_0x458082('0x6c2')]):_0x3b69cf[_0x458082('0x13e3')](_0x3649a4[_0x458082('0x240c')]):_0x3b69cf[_0x458082('0x13e3')]('*'),_0x3649a4['monthDayFrom']?_0x3649a4[_0x458082('0x883')]?_0x3b69cf['push'](_0x3649a4['monthDayFrom']+'-'+_0x3649a4['monthDayTo']):_0x3b69cf[_0x458082('0x13e3')](_0x3649a4['monthDayFrom']):_0x3b69cf[_0x458082('0x13e3')]('*'),_0x3649a4[_0x458082('0x1317')]?_0x3649a4['monthTo']?_0x3b69cf[_0x458082('0x13e3')](_0x3649a4[_0x458082('0x1317')]+'-'+_0x3649a4[_0x458082('0x3dc')]):_0x3b69cf[_0x458082('0x13e3')](_0x3649a4[_0x458082('0x1317')]):_0x3b69cf[_0x458082('0x13e3')]('*'),_0x3b69cf[_0x458082('0x185f')]();}}}function _0xf40854(){const _0x3601cb=_0x1cc3c0;_0x3649a4[_0x3601cb('0x25be')]=[],_0x3649a4[_0x3601cb('0x2630')][_0x3601cb('0x2630')]=_0x4c6373(),_0x1f52f2[_0x3601cb('0x2630')]['save'](_0x3649a4[_0x3601cb('0x2630')])[_0x3601cb('0x1714')][_0x3601cb('0x2788')](function(_0x3e3081){const _0xa3c141=_0x3601cb;_0x3649a4[_0xa3c141('0xec5')][_0xa3c141('0x13e3')](_0x3e3081),_0x23ea49[_0xa3c141('0x173b')]({'title':'Interval\x20properly\x20created','msg':_0x3649a4[_0xa3c141('0x2630')]['name']?_0x3649a4[_0xa3c141('0x2630')][_0xa3c141('0x1a8d')]+_0xa3c141('0x1e4a'):''}),_0x1a64de();})[_0x3601cb('0x1cb5')](function(_0x5d2c10){const _0x4dbbae=_0x3601cb;console[_0x4dbbae('0x5e8')](_0x5d2c10),_0x3649a4[_0x4dbbae('0x25be')]=_0x5d2c10[_0x4dbbae('0x11fc')][_0x4dbbae('0x25be')]||[{'message':_0x5d2c10['toString'](),'type':_0x4dbbae('0x94a')}];});}function _0x18b098(){const _0x1ce8c0=_0x1cc3c0;_0x3649a4[_0x1ce8c0('0x25be')]=[],_0x3649a4[_0x1ce8c0('0x2630')][_0x1ce8c0('0x2630')]=_0x4c6373(),_0x3649a4[_0x1ce8c0('0x2630')][_0x1ce8c0('0x193')]?(_0x3649a4[_0x1ce8c0('0x1d7')]!==_0x1ce8c0('0x4b2')&&(_0x3649a4[_0x1ce8c0('0x2630')][_0x1ce8c0('0x20d0')]=null),_0x1a64de(_0x3649a4[_0x1ce8c0('0x2630')])):_0x1f52f2[_0x1ce8c0('0x2630')][_0x1ce8c0('0x2740')]({'id':_0x3649a4['interval']['id']},_0x3649a4[_0x1ce8c0('0x2630')])['$promise'][_0x1ce8c0('0x2788')](function(_0x7e6f86){const _0xe388c5=_0x1ce8c0,_0x4c096a=_0x283545()[_0xe388c5('0x20e8')](_0x3649a4['intervals'],{'id':_0x7e6f86['id']});_0x4c096a&&_0x283545()[_0xe388c5('0x2503')](_0x4c096a,_0x7e6f86),_0x23ea49[_0xe388c5('0x173b')]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x1a64de();})['catch'](function(_0x333407){const _0x38625b=_0x1ce8c0;console[_0x38625b('0x5e8')](_0x333407),_0x3649a4[_0x38625b('0x25be')]=_0x333407[_0x38625b('0x11fc')][_0x38625b('0x25be')]||[{'message':_0x333407[_0x38625b('0x17df')](),'type':_0x38625b('0xc2d')}];});}function _0x1a64de(_0x25d81d){const _0x2d12e1=_0x1cc3c0;_0x525b23[_0x2d12e1('0x19d')](_0x25d81d);}}const _0x856dcc=_0x4650c8;_0x55939f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),'openchannelAccount',_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x55939f(_0x4cfa29,_0x5574e4,_0x5b8e5c,_0x21b59c,_0x1f825c,_0x2bf7b8,_0x30f860,_0x3441ed){const _0x34ec04=_0x34e79e,_0x1b3c73=this;_0x1b3c73[_0x34ec04('0x9cb')]=_0x30f860[_0x34ec04('0x24cc')](),_0x1b3c73['errors']=[],_0x1b3c73[_0x34ec04('0x14e4')]=_0x34ec04('0x1ed')+(_0x21b59c[_0x34ec04('0x167b')]||_0x21b59c['app'])[_0x34ec04('0x25e6')](),_0x1b3c73['noop']=angular[_0x34ec04('0x2669')](_0x21b59c),_0x1b3c73[_0x34ec04('0xe28')]=_0x3441ed,_0x1b3c73['hasModulePermissions']={};if(_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0xd6b')])switch(_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x167b')]?_0x1b3c73['noop'][_0x34ec04('0x167b')][_0x34ec04('0xc2e')]():_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x8a5')][_0x34ec04('0xc2e')]()){case _0x34ec04('0x1d56'):break;case _0x34ec04('0x5e1'):{const _0x1e3fdf=_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0xd6b')]['split'](',');_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x234b')]=_0x1e3fdf[0x0],_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x175b')]=_0x1e3fdf[0x1],_0x1b3c73['noop'][_0x34ec04('0xf50')]=_0x1e3fdf[_0x34ec04('0x845')](0x2,_0x1e3fdf[_0x34ec04('0x2566')])[_0x34ec04('0x185f')](',');}break;case _0x34ec04('0x137a'):{const _0x1913d3=_0x1b3c73['noop'][_0x34ec04('0xd6b')][_0x34ec04('0x1497')](',');_0x1b3c73[_0x34ec04('0x18dd')]['accesskeyid']=_0x1913d3[0x0],_0x1b3c73[_0x34ec04('0x18dd')]['secretaccesskey']=_0x1913d3[0x1],_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0xb70')]=_0x1913d3[0x2],_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x4eb')]=_0x1913d3[0x3],_0x1b3c73['noop'][_0x34ec04('0xf50')]=_0x1913d3[_0x34ec04('0x845')](0x4,_0x1913d3[_0x34ec04('0x2566')])[_0x34ec04('0x185f')](',');}break;case _0x34ec04('0x808'):{const _0x3a5061=_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0xd6b')]['split'](',');_0x1b3c73[_0x34ec04('0x18dd')]['times']=isNaN(_0x3a5061[0x0])?_0x3a5061[0x0]:parseInt(_0x3a5061[0x0],0xa),_0x1b3c73['noop'][_0x34ec04('0x16db')]=_0x3a5061[_0x34ec04('0x845')](0x1,_0x3a5061['length'])[_0x34ec04('0x185f')](',');}break;case _0x34ec04('0x15e2'):_0x1b3c73[_0x34ec04('0x18dd')]['text']=_0x1b3c73[_0x34ec04('0x18dd')]['appdata'];break;case _0x34ec04('0x3a6'):_0x1b3c73[_0x34ec04('0x18dd')]['name']=_0x1b3c73['noop'][_0x34ec04('0xd6b')][_0x34ec04('0x1497')]('=')[0x0],_0x1b3c73['noop'][_0x34ec04('0x49')]=_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0xd6b')]['split']('=')[0x1];break;case _0x34ec04('0x2631'):_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x1bf6')]=_0x1b3c73['noop'][_0x34ec04('0xd6b')];break;default:{const _0x1094b4=_0x1b3c73['noop'][_0x34ec04('0xd6b')][_0x34ec04('0x1497')](',');_0x1b3c73['noop'][_0x34ec04('0x49')]=_0x283545()[_0x34ec04('0x213d')](_0x1094b4[0x0])?_0x1094b4[0x0]:isNaN(_0x1094b4[0x0])?_0x1094b4[0x0]:parseInt(_0x1094b4[0x0],0xa);}break;}else{}_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x1d7')]&&_0x1b3c73['noop'][_0x34ec04('0x1d7')][_0x34ec04('0xc2e')]()===_0x34ec04('0x1')&&_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x167b')][_0x34ec04('0xc2e')]()===_0x34ec04('0x229c')&&(_0x1b3c73['noop'][_0x34ec04('0x1f71')]=_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x1224')]?_0x1b3c73['noop'][_0x34ec04('0x1224')][_0x34ec04('0x1497')]('$')[0x0]:undefined,_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x2081')]=_0x1b3c73['noop'][_0x34ec04('0x8de')]?_0x34ec04('0x1834')+_0x1b3c73[_0x34ec04('0x18dd')][_0x34ec04('0x8de')]:undefined);_0x1b3c73[_0x34ec04('0x451')]=_0x4853eb,_0x1b3c73[_0x34ec04('0xca7')]=_0xd405;function _0x4853eb(){const _0x5299a4=_0x34ec04;_0x1b3c73[_0x5299a4('0x25be')]=[];const _0x3bfbaa=[];_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x1d7')]&&_0x1b3c73[_0x5299a4('0x18dd')]['type']['toLowerCase']()===_0x5299a4('0x1')&&_0x1b3c73[_0x5299a4('0x18dd')]['appType']===_0x5299a4('0x25fb')&&(_0x1b3c73['noop']['phone']=_0x1f825c[_0x5299a4('0x277c')]?(_0x1b3c73['noop'][_0x5299a4('0x1f71')]||'')+_0x5299a4('0x124d')+_0x1f825c[_0x5299a4('0x277c')]+'}':(_0x1b3c73[_0x5299a4('0x18dd')]['prefix']||'')+_0x5299a4('0x1275'),_0x1f825c[_0x5299a4('0x801')]!==_0x5299a4('0x1dc')?_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x784')][_0x5299a4('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x784')]+=_0x5299a4('0x1609')):_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x784')]=_0x1b3c73['noop'][_0x5299a4('0x784')][_0x5299a4('0x10a4')](_0x5299a4('0x1609'),''));if(_0x1b3c73[_0x5299a4('0x18dd')]['appType']&&_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x167b')]===_0x5299a4('0x1d56')){}else switch((_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x8a5')]||_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x167b')])[_0x5299a4('0xc2e')]()){case _0x5299a4('0x3a6'):_0x1b3c73['noop'][_0x5299a4('0xd6b')]=_0x1b3c73['noop']['name']+'='+_0x1b3c73['noop'][_0x5299a4('0x49')];break;case _0x5299a4('0x1d56'):break;default:_0x3bfbaa[0x0]=_0x1b3c73[_0x5299a4('0x18dd')][_0x5299a4('0x49')],_0x1b3c73['noop'][_0x5299a4('0xd6b')]=_0x3bfbaa[_0x5299a4('0x185f')](',');}_0xd405(_0x1b3c73['noop']);}function _0xd405(_0x4a0ffb){_0x4cfa29['hide'](_0x4a0ffb);}}const _0x99de39=_0x55939f;_0x23799f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x23799f(_0x4d6e4f,_0x8170b1,_0x5759e4,_0x3b7b99,_0x266483,_0x317286,_0x391dec,_0x163705){const _0xf4fdd1=_0x34e79e,_0x531351=this;_0x531351[_0xf4fdd1('0x9cb')]=_0x391dec['getCurrentUser'](),_0x531351['errors']=[],_0x531351['title']='OPENCHANNEL.EDIT_'+(_0x3b7b99[_0xf4fdd1('0x167b')]||_0x3b7b99[_0xf4fdd1('0x8a5')])[_0xf4fdd1('0x25e6')](),_0x531351[_0xf4fdd1('0x1ab4')]=angular[_0xf4fdd1('0x2669')](_0x3b7b99),_0x531351[_0xf4fdd1('0xe28')]=_0x163705,_0x531351[_0xf4fdd1('0x1193')]={};if(_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xd6b')])switch(_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x167b')]?_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x167b')]['toLowerCase']():_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x8a5')][_0xf4fdd1('0xc2e')]()){case _0xf4fdd1('0x1d56'):break;case _0xf4fdd1('0x5e1'):{const _0x495871=_0x531351['queue'][_0xf4fdd1('0xd6b')]['split'](',');_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x234b')]=_0x495871[0x0],_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x175b')]=_0x495871[0x1],_0x531351['queue'][_0xf4fdd1('0xf50')]=_0x495871[_0xf4fdd1('0x845')](0x2,_0x495871[_0xf4fdd1('0x2566')])['join'](',');}break;case'amazonlex':{const _0x4bc6b2=_0x531351['queue']['appdata'][_0xf4fdd1('0x1497')](',');_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x27f2')]=_0x4bc6b2[0x0],_0x531351[_0xf4fdd1('0x1ab4')]['secretaccesskey']=_0x4bc6b2[0x1],_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xb70')]=_0x4bc6b2[0x2],_0x531351['queue']['botname']=_0x4bc6b2[0x3],_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xf50')]=_0x4bc6b2[_0xf4fdd1('0x845')](0x4,_0x4bc6b2[_0xf4fdd1('0x2566')])['join'](',');}break;case _0xf4fdd1('0x808'):{const _0x2a7528=_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xd6b')][_0xf4fdd1('0x1497')](',');_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x5fd')]=isNaN(_0x2a7528[0x0])?_0x2a7528[0x0]:parseInt(_0x2a7528[0x0],0xa),_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x16db')]=_0x2a7528[_0xf4fdd1('0x845')](0x1,_0x2a7528[_0xf4fdd1('0x2566')])[_0xf4fdd1('0x185f')](',');}break;case'message':_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x16db')]=_0x531351[_0xf4fdd1('0x1ab4')]['appdata'];break;case _0xf4fdd1('0x3a6'):_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1a8d')]=_0x531351['queue']['appdata'][_0xf4fdd1('0x1497')]('=')[0x0],_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x49')]=_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xd6b')][_0xf4fdd1('0x1497')]('=')[0x1];break;case _0xf4fdd1('0x2631'):_0x531351[_0xf4fdd1('0x1ab4')]['project']=_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0xd6b')];break;default:{const _0x115d7b=_0x531351[_0xf4fdd1('0x1ab4')]['appdata'][_0xf4fdd1('0x1497')](',');_0x531351[_0xf4fdd1('0x1ab4')]['queue']=_0x283545()[_0xf4fdd1('0x213d')](_0x115d7b[0x0])?_0x115d7b[0x0]:isNaN(_0x115d7b[0x0])?_0x115d7b[0x0]:parseInt(_0x115d7b[0x0],0xa),_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x24e4')]=_0x283545()['isEmpty'](_0x115d7b[0x1])?_0x115d7b[0x1]:isNaN(_0x115d7b[0x1])?_0x115d7b[0x1]:parseInt(_0x115d7b[0x1],0xa);}break;}else _0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1ab4')]=0x12c,_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x24e4')]=0x12c;_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1d7')]&&_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1d7')][_0xf4fdd1('0xc2e')]()==='outbound'&&_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x167b')][_0xf4fdd1('0xc2e')]()===_0xf4fdd1('0x229c')&&(_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1f71')]=_0x531351[_0xf4fdd1('0x1ab4')]['phone']?_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x1224')][_0xf4fdd1('0x1497')]('$')[0x0]:undefined,_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x2081')]=_0x531351['queue']['callerID']?_0xf4fdd1('0x1834')+_0x531351[_0xf4fdd1('0x1ab4')][_0xf4fdd1('0x8de')]:undefined);_0x531351[_0xf4fdd1('0x451')]=_0x2595a7,_0x531351['closeDialog']=_0x498e96,_0x391dec[_0xf4fdd1('0x1516')](_0xf4fdd1('0xe23'))?_0x317286[_0xf4fdd1('0xb26')]['get']({'fields':'id,name,type','sort':_0xf4fdd1('0x1a8d'),'nolimit':_0xf4fdd1('0x1001')})['$promise'][_0xf4fdd1('0x2788')](function(_0x3633f1){const _0xbc323d=_0xf4fdd1;_0x531351[_0xbc323d('0x283e')]=_0x3633f1[_0xbc323d('0x25df')]||[];})[_0xf4fdd1('0x1cb5')](function(_0x3e7877){const _0x47807c=_0xf4fdd1;_0x5759e4[_0x47807c('0x5e8')]({'title':_0x3e7877['status']?_0x47807c('0x15d1')+_0x3e7877[_0x47807c('0x1b51')]+_0x47807c('0x1b0b')+_0x3e7877['statusText']:_0x47807c('0x2763'),'msg':_0x3e7877[_0x47807c('0x11fc')]?JSON[_0x47807c('0x1be0')](_0x3e7877[_0x47807c('0x11fc')]):_0x3e7877[_0x47807c('0x17df')]()});}):_0x317286[_0xf4fdd1('0xb26')][_0xf4fdd1('0x1335')]({'fields':'id,name,type','sort':_0xf4fdd1('0x1a8d'),'nolimit':_0xf4fdd1('0x1001')})[_0xf4fdd1('0x1714')][_0xf4fdd1('0x2788')](function(_0x45359d){const _0xefa972=_0xf4fdd1;_0x531351[_0xefa972('0x283e')]=_0x45359d[_0xefa972('0x25df')]||[];})[_0xf4fdd1('0x2788')](function(){const _0x42f930=_0xf4fdd1;return _0x317286[_0x42f930('0xec9')][_0x42f930('0x1335')]({'userProfileId':_0x531351[_0x42f930('0x9cb')][_0x42f930('0x237f')],'sectionId':0x321})[_0x42f930('0x1714')];})[_0xf4fdd1('0x2788')](function(_0x572cc4){const _0x4a9f55=_0xf4fdd1,_0x2d738c=_0x572cc4&&_0x572cc4[_0x4a9f55('0x25df')]?_0x572cc4[_0x4a9f55('0x25df')][0x0]:null;if(!_0x2d738c){const _0x1fe99f=[];let _0x52d854=null;_0x531351[_0x4a9f55('0x1ab4')]&&(_0x52d854=_0x283545()[_0x4a9f55('0x20e8')](_0x531351[_0x4a9f55('0x283e')],{'name':_0x531351[_0x4a9f55('0x1ab4')][_0x4a9f55('0x1ab4')]}));for(let _0x192791=0x0;_0x192791<_0x531351[_0x4a9f55('0x283e')][_0x4a9f55('0x2566')];_0x192791++){_0x52d854&&_0x531351['queues'][_0x192791]['id']===_0x52d854['id']&&(_0x531351[_0x4a9f55('0x283e')][_0x192791]['canSelect']=![],_0x1fe99f[_0x4a9f55('0x13e3')](_0x531351[_0x4a9f55('0x283e')][_0x192791]));}_0x531351[_0x4a9f55('0x283e')]=_0x1fe99f;}else{if(!_0x2d738c['autoAssociation'])return _0x317286['userProfileResource'][_0x4a9f55('0x1335')]({'sectionId':_0x2d738c['id']})[_0x4a9f55('0x1714')]['then'](function(_0x56fb86){const _0x381d0c=_0x4a9f55,_0x54498e=_0x283545()[_0x381d0c('0x155d')](_0x56fb86['rows'],function(_0x3a297e){const _0xef6c=_0x381d0c;return _0x283545()[_0xef6c('0x20e8')](_0x531351['queues'],{'id':_0x3a297e[_0xef6c('0x2707')]});});let _0x1442dd=null;_0x531351['queue']&&(_0x1442dd=_0x283545()[_0x381d0c('0x20e8')](_0x531351[_0x381d0c('0x283e')],{'name':_0x531351[_0x381d0c('0x1ab4')][_0x381d0c('0x1ab4')]}));if(_0x1442dd&&!_0x283545()[_0x381d0c('0xc5d')](_0x54498e,['id',_0x1442dd['id']])){const _0x28e36a=_0x283545()[_0x381d0c('0x20e8')](_0x531351[_0x381d0c('0x283e')],{'id':_0x1442dd['id']});_0x28e36a[_0x381d0c('0x3bf')]=![],_0x54498e['push'](_0x28e36a);}_0x531351['queues']=_0x54498e;});}})[_0xf4fdd1('0x1cb5')](function(_0x274ea8){const _0x58419a=_0xf4fdd1;_0x5759e4['error']({'title':_0x274ea8[_0x58419a('0x1b51')]?_0x58419a('0x15d1')+_0x274ea8[_0x58419a('0x1b51')]+_0x58419a('0x1b0b')+_0x274ea8[_0x58419a('0x22ce')]:_0x58419a('0xb14'),'msg':_0x274ea8[_0x58419a('0x11fc')]?JSON['stringify'](_0x274ea8[_0x58419a('0x11fc')]):_0x274ea8[_0x58419a('0x17df')]()});});function _0x2595a7(){const _0x16213b=_0xf4fdd1;_0x531351['errors']=[];const _0x50d7b6=[];_0x531351['queue'][_0x16213b('0x1d7')]&&_0x531351[_0x16213b('0x1ab4')]['type']['toLowerCase']()===_0x16213b('0x1')&&_0x531351['queue']['appType']==='outboundDial'&&(_0x531351[_0x16213b('0x1ab4')]['phone']=_0x266483[_0x16213b('0x277c')]?(_0x531351['queue'][_0x16213b('0x1f71')]||'')+_0x16213b('0x124d')+_0x266483[_0x16213b('0x277c')]+'}':(_0x531351[_0x16213b('0x1ab4')][_0x16213b('0x1f71')]||'')+'${EXTEN}',_0x266483[_0x16213b('0x801')]!=='none'?_0x531351[_0x16213b('0x1ab4')][_0x16213b('0x784')][_0x16213b('0x821')](_0x16213b('0x1609'))<0x0&&(_0x531351[_0x16213b('0x1ab4')]['options']+=_0x16213b('0x1609')):_0x531351[_0x16213b('0x1ab4')][_0x16213b('0x784')]=_0x531351['queue']['options'][_0x16213b('0x10a4')](_0x16213b('0x1609'),''));const _0x19932f=_0x283545()['find'](_0x531351[_0x16213b('0x283e')],{'name':_0x531351[_0x16213b('0x1ab4')][_0x16213b('0x1ab4')]});_0x19932f&&(_0x531351[_0x16213b('0x1ab4')][_0x283545()[_0x16213b('0x1df5')]('openChannel')+_0x16213b('0xec4')]=_0x19932f['id']);if(_0x531351[_0x16213b('0x1ab4')][_0x16213b('0x167b')]&&_0x531351['queue'][_0x16213b('0x167b')]==='custom'){}else switch((_0x531351['queue']['app']||_0x531351['queue'][_0x16213b('0x167b')])['toLowerCase']()){case _0x16213b('0x3a6'):_0x531351[_0x16213b('0x1ab4')][_0x16213b('0xd6b')]=_0x531351[_0x16213b('0x1ab4')]['name']+'='+_0x531351['queue']['value'];break;case'custom':break;default:_0x50d7b6[0x0]=_0x531351[_0x16213b('0x1ab4')]['queue'],_0x50d7b6[0x1]=_0x531351['queue']['timeout'],_0x531351[_0x16213b('0x1ab4')][_0x16213b('0xd6b')]=_0x50d7b6['join'](',');}_0x498e96(_0x531351['queue']);}function _0x498e96(_0x244c58){const _0x520d04=_0xf4fdd1;_0x4d6e4f[_0x520d04('0x19d')](_0x244c58);}}const _0x538146=_0x23799f;_0x58b7f0['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x271f'),_0x34e79e('0xfba'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x58b7f0(_0x451a4a,_0x1af0a6,_0x2f306b,_0x4eac4c,_0x48ec9b,_0x13d6f3,_0x22dd69,_0x4bafc0){const _0x1fb51e=_0x34e79e,_0x49094=this;_0x49094['currentUser']=_0x22dd69[_0x1fb51e('0x24cc')](),_0x49094[_0x1fb51e('0x25be')]=[],_0x49094['title']=_0x1fb51e('0x1ed')+(_0x4eac4c['appType']||_0x4eac4c[_0x1fb51e('0x8a5')])[_0x1fb51e('0x25e6')](),_0x49094[_0x1fb51e('0xe81')]=angular['copy'](_0x4eac4c),_0x49094[_0x1fb51e('0xe28')]=_0x4bafc0,_0x49094[_0x1fb51e('0x1193')]={};if(_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')])switch(_0x49094[_0x1fb51e('0xe81')]['appType']?_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x167b')][_0x1fb51e('0xc2e')]():_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x8a5')][_0x1fb51e('0xc2e')]()){case _0x1fb51e('0x1d56'):break;case _0x1fb51e('0x5e1'):{const _0x538224=_0x49094[_0x1fb51e('0xe81')]['appdata'][_0x1fb51e('0x1497')](',');_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x234b')]=_0x538224[0x0],_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x175b')]=_0x538224[0x1],_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xf50')]=_0x538224['slice'](0x2,_0x538224[_0x1fb51e('0x2566')])[_0x1fb51e('0x185f')](',');}break;case _0x1fb51e('0x137a'):{const _0x32d5bc=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')][_0x1fb51e('0x1497')](',');_0x49094[_0x1fb51e('0xe81')]['accesskeyid']=_0x32d5bc[0x0],_0x49094['system'][_0x1fb51e('0x1b58')]=_0x32d5bc[0x1],_0x49094['system']['lexregion']=_0x32d5bc[0x2],_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x4eb')]=_0x32d5bc[0x3],_0x49094['system'][_0x1fb51e('0xf50')]=_0x32d5bc[_0x1fb51e('0x845')](0x4,_0x32d5bc[_0x1fb51e('0x2566')])[_0x1fb51e('0x185f')](',');}break;case _0x1fb51e('0x808'):{const _0x2516bc=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')][_0x1fb51e('0x1497')](',');_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x5fd')]=isNaN(_0x2516bc[0x0])?_0x2516bc[0x0]:parseInt(_0x2516bc[0x0],0xa),_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x16db')]=_0x2516bc[_0x1fb51e('0x845')](0x1,_0x2516bc[_0x1fb51e('0x2566')])[_0x1fb51e('0x185f')](',');}break;case'message':_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x16db')]=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')];break;case'set':_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x1a8d')]=_0x49094['system'][_0x1fb51e('0xd6b')][_0x1fb51e('0x1497')]('=')[0x0],_0x49094['system']['value']=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')][_0x1fb51e('0x1497')]('=')[0x1];break;case _0x1fb51e('0x2631'):_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x1bf6')]=_0x49094['system'][_0x1fb51e('0xd6b')];break;default:{const _0x34383b=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xd6b')][_0x1fb51e('0x1497')](',');_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x28d')]=_0x283545()[_0x1fb51e('0x213d')](_0x34383b[0x0])?_0x34383b[0x0]:isNaN(_0x34383b[0x0])?_0x34383b[0x0]:parseInt(_0x34383b[0x0],0xa),_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xa72')]=_0x283545()[_0x1fb51e('0x213d')](_0x34383b[0x1])?_0x34383b[0x1]:isNaN(_0x34383b[0x1])?_0x34383b[0x1]:parseInt(_0x34383b[0x1],0xa);}break;}else _0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0xa72')]='';_0x49094['system'][_0x1fb51e('0x1d7')]&&_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x1d7')][_0x1fb51e('0xc2e')]()==='outbound'&&_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x167b')]['toLowerCase']()===_0x1fb51e('0x229c')&&(_0x49094['system'][_0x1fb51e('0x1f71')]=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x1224')]?_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x1224')][_0x1fb51e('0x1497')]('$')[0x0]:undefined,_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x2081')]=_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x8de')]?_0x1fb51e('0x1834')+_0x49094[_0x1fb51e('0xe81')][_0x1fb51e('0x8de')]:undefined);_0x49094['saveOpenchannelAccountApp']=_0x471800,_0x49094[_0x1fb51e('0xca7')]=_0xc547b2,_0x22dd69[_0x1fb51e('0x1516')]('admin')?_0x13d6f3['variable'][_0x1fb51e('0x1335')]({'fields':'id,name','sort':_0x1fb51e('0x1a8d'),'nolimit':_0x1fb51e('0x1001')})[_0x1fb51e('0x1714')][_0x1fb51e('0x2788')](function(_0x4efdd9){_0x49094['variables']=_0x4efdd9['rows']||[];})[_0x1fb51e('0x1cb5')](function(_0x3ce9f6){const _0x527c8f=_0x1fb51e;_0x2f306b['error']({'title':_0x3ce9f6[_0x527c8f('0x1b51')]?'API:'+_0x3ce9f6[_0x527c8f('0x1b51')]+_0x527c8f('0x1b0b')+_0x3ce9f6['statusText']:'SYSTEM:GET_VARIABLES','msg':_0x3ce9f6[_0x527c8f('0x11fc')]?JSON[_0x527c8f('0x1be0')](_0x3ce9f6[_0x527c8f('0x11fc')]):_0x3ce9f6[_0x527c8f('0x17df')]()});}):_0x13d6f3['variable'][_0x1fb51e('0x1335')]({'fields':_0x1fb51e('0x1338'),'sort':'name','nolimit':_0x1fb51e('0x1001')})[_0x1fb51e('0x1714')][_0x1fb51e('0x2788')](function(_0x1cccb0){const _0x3f57d5=_0x1fb51e;_0x49094[_0x3f57d5('0xf76')]=_0x1cccb0['rows']||[];})[_0x1fb51e('0x2788')](function(){const _0x136ec3=_0x1fb51e;return _0x13d6f3[_0x136ec3('0xec9')][_0x136ec3('0x1335')]({'userProfileId':_0x49094['currentUser'][_0x136ec3('0x237f')],'sectionId':0x3f4})['$promise'];})['then'](function(_0xd7699c){const _0xd420f5=_0x1fb51e,_0x1a6ae2=_0xd7699c&&_0xd7699c['rows']?_0xd7699c[_0xd420f5('0x25df')][0x0]:null;if(!_0x1a6ae2){const _0x4c09c8=[];let _0xbfdfa0=null;_0x49094[_0xd420f5('0xe81')]&&(_0xbfdfa0=_0x283545()[_0xd420f5('0x20e8')](_0x49094[_0xd420f5('0xf76')],{'name':_0x49094['system']['variable']}));for(let _0x170747=0x0;_0x170747<_0x49094[_0xd420f5('0xf76')][_0xd420f5('0x2566')];_0x170747++){_0xbfdfa0&&_0x49094[_0xd420f5('0xf76')][_0x170747]['id']===_0xbfdfa0['id']&&(_0x49094[_0xd420f5('0xf76')][_0x170747][_0xd420f5('0x3bf')]=![],_0x4c09c8[_0xd420f5('0x13e3')](_0x49094[_0xd420f5('0xf76')][_0x170747]));}_0x49094[_0xd420f5('0xf76')]=_0x4c09c8;}else{if(!_0x1a6ae2[_0xd420f5('0x1c0a')])return _0x13d6f3[_0xd420f5('0x1050')][_0xd420f5('0x1335')]({'sectionId':_0x1a6ae2['id']})['$promise'][_0xd420f5('0x2788')](function(_0xc1c742){const _0x16275d=_0xd420f5,_0x54df29=_0x283545()[_0x16275d('0x155d')](_0xc1c742[_0x16275d('0x25df')],function(_0x4cba6d){const _0x3cb668=_0x16275d;return _0x283545()['find'](_0x49094['variables'],{'id':_0x4cba6d[_0x3cb668('0x2707')]});});let _0x2e5327=null;_0x49094['system']&&(_0x2e5327=_0x283545()[_0x16275d('0x20e8')](_0x49094[_0x16275d('0xf76')],{'name':_0x49094[_0x16275d('0xe81')][_0x16275d('0xa72')]}));if(_0x2e5327&&!_0x283545()[_0x16275d('0xc5d')](_0x54df29,['id',_0x2e5327['id']])){const _0x320903=_0x283545()['find'](_0x49094[_0x16275d('0xf76')],{'id':_0x2e5327['id']});_0x320903[_0x16275d('0x3bf')]=![],_0x54df29[_0x16275d('0x13e3')](_0x320903);}_0x49094[_0x16275d('0xf76')]=_0x54df29;});}})[_0x1fb51e('0x1cb5')](function(_0x5e04b2){const _0xd807e1=_0x1fb51e;_0x2f306b['error']({'title':_0x5e04b2['status']?_0xd807e1('0x15d1')+_0x5e04b2[_0xd807e1('0x1b51')]+_0xd807e1('0x1b0b')+_0x5e04b2['statusText']:_0xd807e1('0x1592'),'msg':_0x5e04b2[_0xd807e1('0x11fc')]?JSON[_0xd807e1('0x1be0')](_0x5e04b2[_0xd807e1('0x11fc')]):_0x5e04b2['toString']()});});function _0x471800(){const _0xd0187c=_0x1fb51e;_0x49094[_0xd0187c('0x25be')]=[];const _0x12d267=[];_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x1d7')]&&_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x1d7')][_0xd0187c('0xc2e')]()===_0xd0187c('0x1')&&_0x49094[_0xd0187c('0xe81')]['appType']==='outboundDial'&&(_0x49094[_0xd0187c('0xe81')]['phone']=_0x48ec9b['cutdigits']?(_0x49094[_0xd0187c('0xe81')]['prefix']||'')+_0xd0187c('0x124d')+_0x48ec9b[_0xd0187c('0x277c')]+'}':(_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x1f71')]||'')+_0xd0187c('0x1275'),_0x48ec9b[_0xd0187c('0x801')]!=='none'?_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x784')][_0xd0187c('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x784')]+=_0xd0187c('0x1609')):_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x784')]=_0x49094['system'][_0xd0187c('0x784')][_0xd0187c('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x167b')]&&_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x167b')]===_0xd0187c('0x1d56')){}else switch((_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x8a5')]||_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x167b')])[_0xd0187c('0xc2e')]()){case _0xd0187c('0x3a6'):_0x49094[_0xd0187c('0xe81')]['appdata']=_0x49094[_0xd0187c('0xe81')][_0xd0187c('0x1a8d')]+'='+_0x49094[_0xd0187c('0xe81')]['value'];break;case'custom':break;default:_0x12d267[0x0]=_0x49094['system'][_0xd0187c('0x28d')],_0x12d267[0x1]=_0x49094[_0xd0187c('0xe81')]['variable'],_0x49094[_0xd0187c('0xe81')]['appdata']=_0x12d267[_0xd0187c('0x185f')](',');}_0xc547b2(_0x49094[_0xd0187c('0xe81')]);}function _0xc547b2(_0x3ee275){const _0xf1b5aa=_0x1fb51e;_0x451a4a[_0xf1b5aa('0x19d')](_0x3ee275);}}const _0x2db4a1=_0x58b7f0;_0x14da73[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'openchannelAccountApp',_0x34e79e('0xfba'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x14da73(_0x47e39b,_0x472fa1,_0x482afb,_0x5a0a04,_0x3efe92,_0x2bd8f7,_0x285482,_0x40b940){const _0x134cb2=_0x34e79e,_0x2b3551=this;_0x2b3551[_0x134cb2('0x9cb')]=_0x285482['getCurrentUser'](),_0x2b3551[_0x134cb2('0x25be')]=[],_0x2b3551['title']=_0x134cb2('0x1ed')+(_0x5a0a04[_0x134cb2('0x167b')]||_0x5a0a04[_0x134cb2('0x8a5')])[_0x134cb2('0x25e6')](),_0x2b3551[_0x134cb2('0x1764')]=angular[_0x134cb2('0x2669')](_0x5a0a04),_0x2b3551['crudPermissions']=_0x40b940,_0x2b3551[_0x134cb2('0x1193')]={};if(_0x2b3551['tag'][_0x134cb2('0xd6b')])switch(_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x167b')]?_0x2b3551['tag'][_0x134cb2('0x167b')][_0x134cb2('0xc2e')]():_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x8a5')][_0x134cb2('0xc2e')]()){case _0x134cb2('0x1d56'):break;case _0x134cb2('0x5e1'):{const _0x2425b5=_0x2b3551[_0x134cb2('0x1764')]['appdata']['split'](',');_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x234b')]=_0x2425b5[0x0],_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x175b')]=_0x2425b5[0x1],_0x2b3551['tag'][_0x134cb2('0xf50')]=_0x2425b5[_0x134cb2('0x845')](0x2,_0x2425b5[_0x134cb2('0x2566')])[_0x134cb2('0x185f')](',');}break;case _0x134cb2('0x137a'):{const _0x5279f9=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xd6b')][_0x134cb2('0x1497')](',');_0x2b3551['tag']['accesskeyid']=_0x5279f9[0x0],_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1b58')]=_0x5279f9[0x1],_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xb70')]=_0x5279f9[0x2],_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x4eb')]=_0x5279f9[0x3],_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xf50')]=_0x5279f9[_0x134cb2('0x845')](0x4,_0x5279f9[_0x134cb2('0x2566')])[_0x134cb2('0x185f')](',');}break;case _0x134cb2('0x808'):{const _0x37bb93=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xd6b')][_0x134cb2('0x1497')](',');_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x5fd')]=isNaN(_0x37bb93[0x0])?_0x37bb93[0x0]:parseInt(_0x37bb93[0x0],0xa),_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x16db')]=_0x37bb93[_0x134cb2('0x845')](0x1,_0x37bb93[_0x134cb2('0x2566')])['join'](',');}break;case'message':_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x16db')]=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xd6b')];break;case _0x134cb2('0x3a6'):_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1a8d')]=_0x2b3551[_0x134cb2('0x1764')]['appdata'][_0x134cb2('0x1497')]('=')[0x0],_0x2b3551['tag'][_0x134cb2('0x49')]=_0x2b3551['tag']['appdata'][_0x134cb2('0x1497')]('=')[0x1];break;case _0x134cb2('0x2631'):_0x2b3551['tag'][_0x134cb2('0x1bf6')]=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xd6b')];break;default:{const _0x5e5b83=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0xd6b')][_0x134cb2('0x1497')](',');_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1764')]=_0x283545()[_0x134cb2('0x213d')](_0x5e5b83[0x0])?_0x5e5b83[0x0]:isNaN(_0x5e5b83[0x0])?_0x5e5b83[0x0]:parseInt(_0x5e5b83[0x0],0xa);}break;}else{}_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1d7')]&&_0x2b3551['tag']['type'][_0x134cb2('0xc2e')]()===_0x134cb2('0x1')&&_0x2b3551['tag'][_0x134cb2('0x167b')][_0x134cb2('0xc2e')]()==='outbounddial'&&(_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1f71')]=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1224')]?_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x1224')][_0x134cb2('0x1497')]('$')[0x0]:undefined,_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x2081')]=_0x2b3551[_0x134cb2('0x1764')][_0x134cb2('0x8de')]?_0x134cb2('0x1834')+_0x2b3551['tag'][_0x134cb2('0x8de')]:undefined);_0x2b3551[_0x134cb2('0x451')]=_0x59096e,_0x2b3551[_0x134cb2('0xca7')]=_0x54ac92,_0x285482['hasRole'](_0x134cb2('0xe23'))?_0x2bd8f7[_0x134cb2('0x1764')][_0x134cb2('0x1335')]({'fields':'id,name','sort':_0x134cb2('0x1a8d'),'nolimit':'true'})[_0x134cb2('0x1714')]['then'](function(_0x1fe80c){const _0x1cc821=_0x134cb2;_0x2b3551[_0x1cc821('0xe45')]=_0x1fe80c[_0x1cc821('0x25df')]||[];})[_0x134cb2('0x1cb5')](function(_0x390e77){const _0x3a5f4d=_0x134cb2;_0x482afb['error']({'title':_0x390e77[_0x3a5f4d('0x1b51')]?_0x3a5f4d('0x15d1')+_0x390e77['status']+_0x3a5f4d('0x1b0b')+_0x390e77[_0x3a5f4d('0x22ce')]:_0x3a5f4d('0x270'),'msg':_0x390e77[_0x3a5f4d('0x11fc')]?JSON[_0x3a5f4d('0x1be0')](_0x390e77[_0x3a5f4d('0x11fc')]):_0x390e77[_0x3a5f4d('0x17df')]()});}):_0x2bd8f7['tag'][_0x134cb2('0x1335')]({'fields':_0x134cb2('0x1338'),'sort':_0x134cb2('0x1a8d'),'nolimit':_0x134cb2('0x1001')})[_0x134cb2('0x1714')]['then'](function(_0x1815c4){const _0xa4e60c=_0x134cb2;_0x2b3551[_0xa4e60c('0xe45')]=_0x1815c4[_0xa4e60c('0x25df')]||[];})[_0x134cb2('0x2788')](function(){const _0x55bf97=_0x134cb2;return _0x2bd8f7[_0x55bf97('0xec9')]['get']({'userProfileId':_0x2b3551[_0x55bf97('0x9cb')][_0x55bf97('0x237f')],'sectionId':0x3f0})['$promise'];})[_0x134cb2('0x2788')](function(_0x4e2311){const _0xd03afe=_0x134cb2,_0x3938d9=_0x4e2311&&_0x4e2311[_0xd03afe('0x25df')]?_0x4e2311['rows'][0x0]:null;if(!_0x3938d9){const _0x40eda5=[];let _0x2420f0=null;_0x2b3551[_0xd03afe('0x1764')]&&(_0x2420f0=_0x283545()['find'](_0x2b3551[_0xd03afe('0xe45')],{'name':_0x2b3551[_0xd03afe('0x1764')][_0xd03afe('0x1764')]}));for(let _0x466873=0x0;_0x466873<_0x2b3551['tags'][_0xd03afe('0x2566')];_0x466873++){_0x2420f0&&_0x2b3551['tags'][_0x466873]['id']===_0x2420f0['id']&&(_0x2b3551[_0xd03afe('0xe45')][_0x466873]['canSelect']=![],_0x40eda5[_0xd03afe('0x13e3')](_0x2b3551[_0xd03afe('0xe45')][_0x466873]));}_0x2b3551[_0xd03afe('0xe45')]=_0x40eda5;}else{if(!_0x3938d9[_0xd03afe('0x1c0a')])return _0x2bd8f7[_0xd03afe('0x1050')][_0xd03afe('0x1335')]({'sectionId':_0x3938d9['id']})['$promise'][_0xd03afe('0x2788')](function(_0x54b1d7){const _0x4e9b64=_0xd03afe,_0x7592a4=_0x283545()[_0x4e9b64('0x155d')](_0x54b1d7['rows'],function(_0x55736d){const _0x1780f4=_0x4e9b64;return _0x283545()[_0x1780f4('0x20e8')](_0x2b3551[_0x1780f4('0xe45')],{'id':_0x55736d['resourceId']});});let _0x1b78de=null;_0x2b3551[_0x4e9b64('0x1764')]&&(_0x1b78de=_0x283545()[_0x4e9b64('0x20e8')](_0x2b3551[_0x4e9b64('0xe45')],{'name':_0x2b3551[_0x4e9b64('0x1764')][_0x4e9b64('0x1764')]}));if(_0x1b78de&&!_0x283545()['some'](_0x7592a4,['id',_0x1b78de['id']])){const _0x3d21cf=_0x283545()[_0x4e9b64('0x20e8')](_0x2b3551[_0x4e9b64('0xe45')],{'id':_0x1b78de['id']});_0x3d21cf[_0x4e9b64('0x3bf')]=![],_0x7592a4[_0x4e9b64('0x13e3')](_0x3d21cf);}_0x2b3551['tags']=_0x7592a4;});}})[_0x134cb2('0x1cb5')](function(_0x462e9e){const _0x203e64=_0x134cb2;_0x482afb['error']({'title':_0x462e9e[_0x203e64('0x1b51')]?_0x203e64('0x15d1')+_0x462e9e['status']+_0x203e64('0x1b0b')+_0x462e9e[_0x203e64('0x22ce')]:_0x203e64('0x1470'),'msg':_0x462e9e[_0x203e64('0x11fc')]?JSON[_0x203e64('0x1be0')](_0x462e9e['data']):_0x462e9e[_0x203e64('0x17df')]()});});function _0x59096e(){const _0x1dec90=_0x134cb2;_0x2b3551[_0x1dec90('0x25be')]=[];const _0x8cba8d=[];_0x2b3551['tag'][_0x1dec90('0x1d7')]&&_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x1d7')][_0x1dec90('0xc2e')]()===_0x1dec90('0x1')&&_0x2b3551[_0x1dec90('0x1764')]['appType']===_0x1dec90('0x25fb')&&(_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x1224')]=_0x3efe92[_0x1dec90('0x277c')]?(_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x1f71')]||'')+_0x1dec90('0x124d')+_0x3efe92[_0x1dec90('0x277c')]+'}':(_0x2b3551['tag'][_0x1dec90('0x1f71')]||'')+_0x1dec90('0x1275'),_0x3efe92[_0x1dec90('0x801')]!==_0x1dec90('0x1dc')?_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x784')][_0x1dec90('0x821')](_0x1dec90('0x1609'))<0x0&&(_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x784')]+=_0x1dec90('0x1609')):_0x2b3551['tag'][_0x1dec90('0x784')]=_0x2b3551['tag'][_0x1dec90('0x784')][_0x1dec90('0x10a4')](_0x1dec90('0x1609'),''));const _0xf052e1=_0x283545()[_0x1dec90('0x20e8')](_0x2b3551[_0x1dec90('0xe45')],{'name':_0x2b3551['tag']['tag']});_0xf052e1&&(_0x2b3551[_0x1dec90('0x1764')]['TagId']=_0xf052e1['id']);if(_0x2b3551[_0x1dec90('0x1764')]['appType']&&_0x2b3551[_0x1dec90('0x1764')]['appType']===_0x1dec90('0x1d56')){}else switch((_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x8a5')]||_0x2b3551['tag'][_0x1dec90('0x167b')])[_0x1dec90('0xc2e')]()){case _0x1dec90('0x3a6'):_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0xd6b')]=_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0x1a8d')]+'='+_0x2b3551[_0x1dec90('0x1764')]['value'];break;case _0x1dec90('0x1d56'):break;default:_0x8cba8d[0x0]=_0x2b3551[_0x1dec90('0x1764')]['tag'],_0x2b3551[_0x1dec90('0x1764')][_0x1dec90('0xd6b')]=_0x8cba8d[_0x1dec90('0x185f')](',');}_0x54ac92(_0x2b3551[_0x1dec90('0x1764')]);}function _0x54ac92(_0x57dff1){const _0x1fd308=_0x134cb2;_0x47e39b[_0x1fd308('0x19d')](_0x57dff1);}}const _0x5643a1=_0x14da73;_0x377ff4[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x377ff4(_0xdba91a,_0x273e4b,_0xb0531,_0x9efe65,_0x43c2bf,_0x3a4101,_0x4d8c30,_0x373bc4,_0x5e7ea6,_0x30be1c,_0x228695){const _0x3d5d15=_0x34e79e,_0x3daea4=this;_0x3daea4[_0x3d5d15('0x9cb')]=_0x228695[_0x3d5d15('0x24cc')](),_0x3daea4[_0x3d5d15('0xfba')]={},_0x3daea4['openchannelAccountInteractions']={'count':0x0,'rows':[]},_0x3daea4[_0x3d5d15('0xf3c')]=[],_0x3daea4[_0x3d5d15('0xe28')],_0x3daea4[_0x3d5d15('0x135a')]={'read':'null','closed':_0x3d5d15('0x954'),'sort':'-createdAt','includeAll':'true','limit':0xa,'page':0x1},_0x3daea4[_0x3d5d15('0x24eb')]=_0x8f1dc1,_0x3daea4['deleteConfirm']=_0x458ea1,_0x3daea4[_0x3d5d15('0x1340')]=_0xfd86fe,_0x3daea4['success']=_0x578167,_0x3daea4['getOpenchannelAccountInteractions']=_0x2c998d,_0x3daea4[_0x3d5d15('0x1539')]=_0x26134d,_0x3daea4[_0x3d5d15('0x27c6')]=_0x442df9,_0x3daea4[_0x3d5d15('0x1b01')]=_0x3c8ab2,_0x3daea4[_0x3d5d15('0xc54')]=_0x7b9d88,_0x3daea4[_0x3d5d15('0x27')]=_0x399b6c;function _0x8f1dc1(_0x47cd9f,_0x13c76a){const _0x46c765=_0x3d5d15;_0x3daea4[_0x46c765('0xfba')]=_0x47cd9f,_0x3daea4[_0x46c765('0xe28')]=typeof _0x13c76a!=='undefined'?_0x13c76a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3daea4[_0x46c765('0x135a')]['OpenchannelAccountId']=_0x3daea4[_0x46c765('0xfba')]['id'],_0x3daea4['advancedSearch']={'fields':_0x15942b()},_0x125598();}function _0x125598(){const _0x106151=_0x3d5d15;return _0x30be1c['tag'][_0x106151('0x1335')]()[_0x106151('0x1714')][_0x106151('0x2788')](function(_0x42e47d){const _0x498811=_0x106151;_0x3daea4[_0x498811('0xe45')]=_0x42e47d||{'count':0x0,'rows':[]};})[_0x106151('0x2788')](function(){const _0x38ff41=_0x106151;_0x3daea4[_0x38ff41('0xa28')]=_0x139734();});}function _0x139734(){const _0x38f5f1=_0x3d5d15;return[{'name':_0x38f5f1('0x9ac'),'key':_0x38f5f1('0x172'),'type':'date','label':_0x38f5f1('0x1664')},{'name':_0x38f5f1('0x1f77'),'key':_0x38f5f1('0x18e8'),'type':_0x38f5f1('0x983'),'label':_0x38f5f1('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x38f5f1('0xe54')},{'value':0x1,'translate':_0x38f5f1('0x204a')},{'value':null,'translate':_0x38f5f1('0xc79')}]},{'name':_0x38f5f1('0x21d8'),'key':'closed','type':_0x38f5f1('0x983'),'label':_0x38f5f1('0xd0'),'customOptions':[{'value':0x0,'translate':_0x38f5f1('0xd6c')},{'value':0x1,'translate':_0x38f5f1('0x977')},{'value':null,'translate':_0x38f5f1('0xc79')}]},{'name':_0x38f5f1('0x262d'),'key':_0x38f5f1('0x3bb'),'type':_0x38f5f1('0x983'),'label':_0x38f5f1('0x2bd'),'customOptions':[{'value':_0x38f5f1('0x954'),'translate':_0x38f5f1('0xce3')},{'value':undefined,'translate':_0x38f5f1('0xc79')}]},{'name':_0x38f5f1('0x251d'),'key':_0x38f5f1('0x1764'),'type':_0x38f5f1('0x9a4'),'label':'DASHBOARDS.SELECT_TAG','options':_0x3daea4[_0x38f5f1('0xe45')]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x15942b(){const _0x485b16=_0x3d5d15;return[{'name':'Id','column':'id','type':_0x485b16('0x272c')},{'name':'Contact','column':_0x485b16('0x1c64'),'type':_0x485b16('0x137e'),'options':{'searchFields':[_0x485b16('0x26da'),'lastName',_0x485b16('0x2436')],'route':{'model':_0x485b16('0xa83'),'action':_0x485b16('0x1335'),'params':{'fields':_0x485b16('0x1373'),'Contact':_0x485b16('0x20bf'),'nolimit':!![]}},'extraOperators':[_0x485b16('0x1a77')],'excludedOperators':['$ne']}},{'name':_0x485b16('0x16c9'),'column':_0x485b16('0x248f'),'type':_0x485b16('0x16db'),'options':{'excludedOperators':[_0x485b16('0x1ff9'),_0x485b16('0x149c')]}},{'name':_0x485b16('0x1e8f'),'column':_0x485b16('0x550'),'type':'text','options':{'excludedOperators':['$eq',_0x485b16('0x149c')]}},{'name':_0x485b16('0x21d8'),'column':_0x485b16('0x215d'),'type':_0x485b16('0x983'),'values':[{'id':0x0,'translate':_0x485b16('0xd6c')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x485b16('0x149c')]}},{'name':_0x485b16('0x262d'),'column':_0x485b16('0x1832'),'type':_0x485b16('0x137e'),'options':{'table':'i','route':{'model':_0x485b16('0x1e6a'),'action':_0x485b16('0x1335'),'params':{'role':_0x485b16('0x188b'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x485b16('0x2831'),_0x485b16('0x1a8d')],'extraOperators':[_0x485b16('0x1a77')],'excludedOperators':[_0x485b16('0x149c')]}},{'name':'Tags','column':_0x485b16('0x251d'),'type':_0x485b16('0x9a4'),'options':{'route':{'model':_0x485b16('0x1764'),'action':_0x485b16('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x485b16('0x9ac'),'column':_0x485b16('0x172'),'type':_0x485b16('0x1012'),'options':{'excludedOperators':[_0x485b16('0x149c')]}},{'name':_0x485b16('0x27d7'),'column':_0x485b16('0xecd'),'type':_0x485b16('0x983'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x485b16('0xe54')}],'options':{'excludedOperators':[_0x485b16('0x149c')]}}];}function _0x442df9(){const _0x1f3f2d=_0x3d5d15;_0x4d8c30[_0x1f3f2d('0x2fa')]({'controller':_0x1f3f2d('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x1f3f2d('0x16b1')](_0x373bc4[_0x1f3f2d('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0x3daea4[_0x1f3f2d('0x1e13')]['fields'],'color':undefined,'storagePath':_0x1f3f2d('0x26ba')},'fullscreen':!![]})[_0x1f3f2d('0x2788')](function(_0x56ec4d){const _0x3e128a=_0x1f3f2d;_0x3daea4['query'][_0x3e128a('0x470')]=_0x56ec4d===![]?undefined:_0x56ec4d;if(_0x3daea4[_0x3e128a('0x135a')][_0x3e128a('0x470')])_0x2c998d();else _0x56ec4d===![]&&_0x2c998d();})['catch'](function(_0x349a2a){const _0x33744c=_0x1f3f2d;_0x5e7ea6['error']({'title':'ERROR','msg':_0x349a2a[_0x33744c('0x11fc')]?JSON[_0x33744c('0x1be0')](_0x349a2a[_0x33744c('0x11fc')][_0x33744c('0x15e2')]):_0x349a2a['toString']()});});}function _0xfd86fe(_0x3efdb0,_0x35480a,_0x474e5e){const _0x47ec90=_0x3d5d15;return _0x30be1c['openchannelInteraction'][_0x47ec90('0x1486')]({'id':_0x3efdb0['id'],'exists':!![],'attachments':_0x474e5e})[_0x47ec90('0x1714')][_0x47ec90('0x2788')](function(_0x508d30){const _0x1d00c5=_0x47ec90,_0x1acd2c=[_0x508d30[_0x1d00c5('0x3f1')]];let _0x5133a4=_0x1d00c5('0xd61')+_0x3efdb0['id'];const _0xe3de99=new Blob(_0x1acd2c,{'type':_0x508d30[_0x1d00c5('0x1d7')]});_0x5133a4=_0x1d00c5('0x528')+_0x3efdb0['id']+_0x1d00c5('0xfdb');const _0x565075=window[_0x1d00c5('0x11c4')]['createElement']('a');_0x565075['setAttribute'](_0x1d00c5('0x186a'),URL['createObjectURL'](_0xe3de99)),_0x565075['setAttribute'](_0x1d00c5('0x1486'),_0x5133a4),document['body'][_0x1d00c5('0xcbf')](_0x565075),_0x565075[_0x1d00c5('0x132a')]();})['catch'](function(_0x1f5d6b){const _0x1e7bba=_0x47ec90;if(_0x1f5d6b['data']&&_0x1f5d6b[_0x1e7bba('0x11fc')]['errors']&&_0x1f5d6b[_0x1e7bba('0x11fc')][_0x1e7bba('0x25be')][_0x1e7bba('0x2566')])for(let _0x5d3ea9=0x0;_0x5d3ea9<_0x1f5d6b[_0x1e7bba('0x11fc')][_0x1e7bba('0x25be')][_0x1e7bba('0x2566')];_0x5d3ea9+=0x1){_0x5e7ea6['error']({'title':_0x1f5d6b['data'][_0x1e7bba('0x25be')][_0x5d3ea9][_0x1e7bba('0x1d7')],'msg':_0x1f5d6b[_0x1e7bba('0x11fc')][_0x1e7bba('0x25be')][_0x5d3ea9][_0x1e7bba('0x15e2')]});}else _0x5e7ea6[_0x1e7bba('0x5e8')]({'title':_0x1f5d6b[_0x1e7bba('0x1b51')]?_0x1e7bba('0x15d1')+_0x1f5d6b[_0x1e7bba('0x1b51')]+_0x1e7bba('0x1b0b')+_0x1f5d6b['statusText']:_0x1e7bba('0x2665'),'msg':_0x1f5d6b[_0x1e7bba('0x11fc')]?JSON[_0x1e7bba('0x1be0')](_0x1f5d6b[_0x1e7bba('0x11fc')][_0x1e7bba('0x15e2')]):_0x1f5d6b[_0x1e7bba('0x17df')]()});});}function _0x458ea1(_0x54e9aa,_0x5ec11c){const _0x2b9a7f=_0x3d5d15,_0x1df015=_0x4d8c30['confirm']()[_0x2b9a7f('0x14e4')](_0x2b9a7f('0x20be'))[_0x2b9a7f('0x93e')](_0x2b9a7f('0x1670')+(_0x54e9aa['name']||_0x54e9aa['id']&&_0x283545()[_0x2b9a7f('0x2265')](_0x2b9a7f('0xb4c'))+_0x54e9aa['id']||_0x2b9a7f('0xd61'))+_0x2b9a7f('0x229e')+'\x20will\x20be\x20deleted.')[_0x2b9a7f('0x10bc')]('delete\x20interaction')[_0x2b9a7f('0x24d0')](_0x5ec11c)['ok']('OK')[_0x2b9a7f('0x1801')](_0x2b9a7f('0x1d8d'));_0x4d8c30[_0x2b9a7f('0x2fa')](_0x1df015)['then'](function(){_0x7b9d88(_0x54e9aa);},function(){const _0x1aeab8=_0x2b9a7f;console[_0x1aeab8('0x10df')](_0x1aeab8('0x1d8d'));});}function _0x578167(_0x2f98b1){const _0xd3ecf1=_0x3d5d15;_0x3daea4[_0xd3ecf1('0x1625')]=_0x2f98b1||{'count':0x0,'rows':[]};for(let _0x96600a=0x0;_0x96600a<_0x3daea4[_0xd3ecf1('0x1625')][_0xd3ecf1('0x25df')][_0xd3ecf1('0x2566')];_0x96600a+=0x1){const _0x3412f1=_0x3daea4['openchannelAccountInteractions'][_0xd3ecf1('0x25df')][_0x96600a];_0x389a02(_0x3412f1),_0x3412f1[_0xd3ecf1('0xe42')]['name']=_0xf54997(_0x3412f1);}}function _0x2c998d(){const _0x4bd570=_0x3d5d15;_0x3daea4[_0x4bd570('0x135a')][_0x4bd570('0x19e')]=(_0x3daea4[_0x4bd570('0x135a')]['page']-0x1)*_0x3daea4[_0x4bd570('0x135a')]['limit'],_0x3daea4[_0x4bd570('0x1808')]=_0x30be1c[_0x4bd570('0x1989')]['get'](_0x3daea4[_0x4bd570('0x135a')],_0x578167)['$promise'];}function _0x26134d(_0x32b8c7,_0x9600ff){const _0x1a3872=_0x3d5d15;_0x4d8c30[_0x1a3872('0x2fa')]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular[_0x1a3872('0x16b1')](_0x373bc4[_0x1a3872('0x945')]),'targetEvent':_0x32b8c7,'clickOutsideToClose':!![],'onShowing':function(_0x23aed7){const _0x2e48e0=_0x1a3872;_0x23aed7['vm']['init']({'id':0x1,'channel':_0x2e48e0('0x18aa'),'interaction':_0x9600ff,'spy':!![]},_0x273e4b[_0x2e48e0('0x7d0')]['vm'][_0x2e48e0('0x1af0')]);}});}function _0x7b9d88(_0x3178fd){const _0x5db170=_0x3d5d15;_0x30be1c[_0x5db170('0x1989')]['delete']({'id':_0x3178fd['id']})[_0x5db170('0x1714')][_0x5db170('0x2788')](function(){const _0x49584a=_0x5db170;_0x283545()[_0x49584a('0x1a90')](_0x3daea4[_0x49584a('0x1625')][_0x49584a('0x25df')],{'id':_0x3178fd['id']}),_0x3daea4[_0x49584a('0x1625')][_0x49584a('0x338')]-=0x1,!_0x3daea4[_0x49584a('0x1625')][_0x49584a('0x25df')][_0x49584a('0x2566')]&&_0x2c998d(),_0x5e7ea6[_0x49584a('0x173b')]({'title':'Interaction\x20deleted!','msg':_0x3178fd['name']?_0x3178fd[_0x49584a('0x1a8d')]+_0x49584a('0x14d4'):''});})['catch'](function(_0x52cef6){const _0x5a81e3=_0x5db170;if(_0x52cef6['data']&&_0x52cef6['data'][_0x5a81e3('0x25be')]&&_0x52cef6['data'][_0x5a81e3('0x25be')][_0x5a81e3('0x2566')]){_0x3daea4[_0x5a81e3('0x25be')]=_0x52cef6[_0x5a81e3('0x11fc')][_0x5a81e3('0x25be')]||[{'message':_0x52cef6[_0x5a81e3('0x17df')](),'type':_0x5a81e3('0x697')}];for(let _0x3308f4=0x0;_0x3308f4<_0x52cef6['data'][_0x5a81e3('0x25be')][_0x5a81e3('0x2566')];_0x3308f4++){_0x5e7ea6[_0x5a81e3('0x5e8')]({'title':_0x52cef6['data'][_0x5a81e3('0x25be')][_0x3308f4][_0x5a81e3('0x1d7')],'msg':_0x52cef6[_0x5a81e3('0x11fc')][_0x5a81e3('0x25be')][_0x3308f4][_0x5a81e3('0x15e2')]});}}else _0x5e7ea6['error']({'title':_0x52cef6[_0x5a81e3('0x1b51')]?_0x5a81e3('0x15d1')+_0x52cef6[_0x5a81e3('0x1b51')]+_0x5a81e3('0x1b0b')+_0x52cef6[_0x5a81e3('0x22ce')]:_0x5a81e3('0x697'),'msg':_0x52cef6[_0x5a81e3('0x11fc')]?JSON[_0x5a81e3('0x1be0')](_0x52cef6[_0x5a81e3('0x11fc')][_0x5a81e3('0x15e2')]):_0x52cef6[_0x5a81e3('0x15e2')]||_0x52cef6[_0x5a81e3('0x17df')]()});});}function _0x3c8ab2(){const _0x29e738=_0x3d5d15,_0x4ed52a=angular[_0x29e738('0x2669')](_0x3daea4['selectedOpenchannelAccountInteractions']);return _0x3daea4['selectedOpenchannelAccountInteractions']=[],_0x4ed52a;}function _0x399b6c(_0x32176c){const _0xb7b15=_0x3d5d15,_0x3c07c0=_0x4d8c30[_0xb7b15('0x112e')]()[_0xb7b15('0x14e4')](_0xb7b15('0x1ff'))['htmlContent'](_0xb7b15('0x1670')+_0x3daea4[_0xb7b15('0xf3c')][_0xb7b15('0x2566')]+_0xb7b15('0xbd')+_0xb7b15('0x27c7'))[_0xb7b15('0x10bc')](_0xb7b15('0x970'))[_0xb7b15('0x24d0')](_0x32176c)['ok']('OK')[_0xb7b15('0x1801')](_0xb7b15('0x1d8d'));_0x4d8c30['show'](_0x3c07c0)[_0xb7b15('0x2788')](function(){const _0x22fbb1=_0xb7b15;_0x3daea4['selectedOpenchannelAccountInteractions'][_0x22fbb1('0x1534')](function(_0x4a1517){_0x7b9d88(_0x4a1517);}),_0x3daea4[_0x22fbb1('0xf3c')]=[];});}function _0x389a02(_0x1047bd){const _0x5aa54b=_0x3d5d15;if(_0x1047bd[_0x5aa54b('0x444')])_0x1047bd[_0x5aa54b('0x497')]=_0x1047bd[_0x5aa54b('0x444')];else _0x1047bd[_0x5aa54b('0x1c64')]?_0x1047bd[_0x5aa54b('0x497')]=(_0x1047bd[_0x5aa54b('0x1c64')][_0x5aa54b('0x26da')]||'')+'\x20'+(_0x1047bd['Contact']['lastName']||''):_0x1047bd[_0x5aa54b('0x497')]=_0x43c2bf[_0x5aa54b('0x1b11')](_0x5aa54b('0x8a2'));}function _0xf54997(_0x17dcaf){const _0x51ff9e=_0x3d5d15;if(_0x17dcaf[_0x51ff9e('0x3bb')])return _0x17dcaf['UserId']===_0x3daea4[_0x51ff9e('0x9cb')]['id']?_0x43c2bf[_0x51ff9e('0x1b11')]('DASHBOARDS.ME'):_0x17dcaf[_0x51ff9e('0xe42')]['fullname']+'\x20<'+_0x17dcaf[_0x51ff9e('0xe42')][_0x51ff9e('0x2838')]+'>';return _0x43c2bf[_0x51ff9e('0x1b11')]('DASHBOARDS.NOT_ASSIGNED');}let _0x5e4dbf=!![],_0x5bba8=0x1;_0x273e4b[_0x3d5d15('0x1662')]('vm_dc.query.filter',function(_0x266922,_0x53bf19){const _0x57b74b=_0x3d5d15;_0x5e4dbf?_0x3a4101(function(){_0x5e4dbf=![];}):(!_0x53bf19&&(_0x5bba8=_0x3daea4[_0x57b74b('0x135a')][_0x57b74b('0x23f5')]),_0x266922!==_0x53bf19&&(_0x3daea4[_0x57b74b('0x135a')][_0x57b74b('0x23f5')]=0x1),!_0x266922&&(_0x3daea4[_0x57b74b('0x135a')]['page']=_0x5bba8),_0x2c998d());});}const _0x5a541e=_0x377ff4,_0x5d7a3e=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html';_0x1d368b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),'$mdDialog','$document',_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x1d368b(_0x328e0a,_0x3bf1e7,_0x43f55b,_0x3a2aca,_0x1e4fa1,_0x327b01,_0x3192b8,_0x56eb0f,_0x3f27b4,_0x48ac31,_0x384af5){const _0x191515=_0x34e79e,_0x4977f1=this;_0x4977f1['currentUser']=_0x384af5[_0x191515('0x24cc')](),_0x4977f1[_0x191515('0xfba')]={},_0x4977f1[_0x191515('0x256e')]={'count':0x0,'rows':[]},_0x4977f1[_0x191515('0x89e')]=[],_0x4977f1[_0x191515('0xe28')],_0x4977f1[_0x191515('0x135a')]={'fields':_0x191515('0x10ad'),'limit':0xa,'page':0x1},_0x4977f1[_0x191515('0x24eb')]=_0x3e8d62,_0x4977f1[_0x191515('0x16a')]=_0x320640,_0x4977f1[_0x191515('0x173b')]=_0x2c375a,_0x4977f1[_0x191515('0x159f')]=_0x2008e0,_0x4977f1[_0x191515('0x1b1a')]=_0x39193e,_0x4977f1['exportSelectedOpenchannelAccountOpenchannelCannedAnswers']=_0x3abe64,_0x4977f1[_0x191515('0x192c')]=_0x42b28a,_0x4977f1[_0x191515('0x867')]=_0x4e347c;function _0x3e8d62(_0x547364,_0x2fc5a8){const _0x28ec9b=_0x191515;_0x4977f1[_0x28ec9b('0xfba')]=_0x547364,_0x4977f1[_0x28ec9b('0xe28')]=typeof _0x2fc5a8!==_0x28ec9b('0xedb')?_0x2fc5a8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4977f1[_0x28ec9b('0x135a')][_0x28ec9b('0x22fa')]=_0x4977f1['openchannelAccount']['id'],_0x4977f1[_0x28ec9b('0x135a')]['id']=_0x4977f1[_0x28ec9b('0xfba')]['id'],_0x2008e0();}function _0x320640(_0x441678,_0x1f4269){const _0x4abec9=_0x191515,_0x4bb3be=_0x3192b8[_0x4abec9('0x112e')]()[_0x4abec9('0x14e4')](_0x4abec9('0x214f'))[_0x4abec9('0x93e')](''+(_0x441678[_0x4abec9('0x1a8d')]||_0x441678['id']&&_0x283545()[_0x4abec9('0x2265')](_0x4abec9('0x2531'))+_0x441678['id']||'openchannelCannedAnswer')+''+'\x20will\x20be\x20deleted.')[_0x4abec9('0x10bc')](_0x4abec9('0x21ee'))['targetEvent'](_0x1f4269)['ok']('OK')['cancel'](_0x4abec9('0x1d8d'));_0x3192b8[_0x4abec9('0x2fa')](_0x4bb3be)[_0x4abec9('0x2788')](function(){_0x42b28a(_0x441678);},function(){const _0x252c1e=_0x4abec9;console[_0x252c1e('0x10df')](_0x252c1e('0x1d8d'));});}function _0x2c375a(_0x279910){_0x4977f1['openchannelAccountOpenchannelCannedAnswers']=_0x279910||{'count':0x0,'rows':[]};}function _0x2008e0(){const _0x746203=_0x191515;_0x4977f1[_0x746203('0x135a')][_0x746203('0x19e')]=(_0x4977f1['query'][_0x746203('0x23f5')]-0x1)*_0x4977f1[_0x746203('0x135a')]['limit'],_0x4977f1[_0x746203('0x1808')]=_0x48ac31[_0x746203('0xfba')][_0x746203('0x1077')](_0x4977f1[_0x746203('0x135a')],_0x2c375a)[_0x746203('0x1714')];}function _0x39193e(_0x36d5fd,_0x332319){const _0x5f3477=_0x191515;_0x3192b8[_0x5f3477('0x2fa')]({'controller':_0x5f3477('0x8fb'),'controllerAs':'vm','templateUrl':_0x5d7a3e,'parent':angular[_0x5f3477('0x16b1')](_0x56eb0f[_0x5f3477('0x945')]),'targetEvent':_0x36d5fd,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x4977f1['openchannelAccount'],'openchannelCannedAnswer':_0x332319,'openchannelCannedAnswers':_0x4977f1[_0x5f3477('0x256e')][_0x5f3477('0x25df')],'license':null,'setting':null,'crudPermissions':_0x4977f1[_0x5f3477('0xe28')]}});}function _0x42b28a(_0x10b445){const _0x4a38ad=_0x191515;_0x48ac31[_0x4a38ad('0x1870')][_0x4a38ad('0x17c4')]({'id':_0x10b445['id']})[_0x4a38ad('0x1714')]['then'](function(){const _0xf417ff=_0x4a38ad;_0x283545()[_0xf417ff('0x1a90')](_0x4977f1[_0xf417ff('0x256e')]['rows'],{'id':_0x10b445['id']}),_0x4977f1['openchannelAccountOpenchannelCannedAnswers']['count']-=0x1,!_0x4977f1['openchannelAccountOpenchannelCannedAnswers'][_0xf417ff('0x25df')][_0xf417ff('0x2566')]&&_0x2008e0(),_0x3f27b4[_0xf417ff('0x173b')]({'title':_0xf417ff('0x24ac'),'msg':_0x10b445[_0xf417ff('0x1a8d')]?_0x10b445['name']+'\x20has\x20been\x20deleted!':''});})[_0x4a38ad('0x1cb5')](function(_0x285773){const _0x16eb1b=_0x4a38ad;if(_0x285773['data']&&_0x285773[_0x16eb1b('0x11fc')][_0x16eb1b('0x25be')]&&_0x285773[_0x16eb1b('0x11fc')]['errors'][_0x16eb1b('0x2566')]){_0x4977f1[_0x16eb1b('0x25be')]=_0x285773['data'][_0x16eb1b('0x25be')]||[{'message':_0x285773[_0x16eb1b('0x17df')](),'type':'SYSTEM:GETopenchannelAccount'}];for(let _0x2461e1=0x0;_0x2461e1<_0x285773['data'][_0x16eb1b('0x25be')][_0x16eb1b('0x2566')];_0x2461e1++){_0x3f27b4['error']({'title':_0x285773[_0x16eb1b('0x11fc')][_0x16eb1b('0x25be')][_0x2461e1][_0x16eb1b('0x1d7')],'msg':_0x285773[_0x16eb1b('0x11fc')][_0x16eb1b('0x25be')][_0x2461e1][_0x16eb1b('0x15e2')]});}}else _0x3f27b4[_0x16eb1b('0x5e8')]({'title':_0x285773[_0x16eb1b('0x1b51')]?_0x16eb1b('0x15d1')+_0x285773[_0x16eb1b('0x1b51')]+_0x16eb1b('0x1b0b')+_0x285773[_0x16eb1b('0x22ce')]:_0x16eb1b('0x697'),'msg':_0x285773[_0x16eb1b('0x11fc')]?JSON[_0x16eb1b('0x1be0')](_0x285773['data'][_0x16eb1b('0x15e2')]):_0x285773[_0x16eb1b('0x15e2')]||_0x285773[_0x16eb1b('0x17df')]()});});}function _0x3abe64(){const _0x587f16=_0x191515,_0x2ab6ad=angular[_0x587f16('0x2669')](_0x4977f1[_0x587f16('0x89e')]);return _0x4977f1[_0x587f16('0x89e')]=[],_0x2ab6ad;}function _0x4e347c(_0x1b3710){const _0x3d7190=_0x191515,_0x387816=_0x3192b8[_0x3d7190('0x112e')]()[_0x3d7190('0x14e4')](_0x3d7190('0x270b'))[_0x3d7190('0x93e')](_0x3d7190('0x1670')+_0x4977f1[_0x3d7190('0x89e')][_0x3d7190('0x2566')]+_0x3d7190('0xbd')+_0x3d7190('0x27c7'))['ariaLabel']('delete\x20openchannelCannedAnswers')[_0x3d7190('0x24d0')](_0x1b3710)['ok']('OK')[_0x3d7190('0x1801')](_0x3d7190('0x1d8d'));_0x3192b8[_0x3d7190('0x2fa')](_0x387816)[_0x3d7190('0x2788')](function(){const _0x1fd37c=_0x3d7190;_0x4977f1[_0x1fd37c('0x89e')]['forEach'](function(_0xe4a1af){_0x42b28a(_0xe4a1af);}),_0x4977f1[_0x1fd37c('0x89e')]=[];});}let _0x144fa1=!![],_0x21be38=0x1;_0x3bf1e7['$watch'](_0x191515('0x2571'),function(_0x14da44,_0x5875e5){const _0x4268d3=_0x191515;_0x144fa1?_0x327b01(function(){_0x144fa1=![];}):(!_0x5875e5&&(_0x21be38=_0x4977f1[_0x4268d3('0x135a')]['page']),_0x14da44!==_0x5875e5&&(_0x4977f1[_0x4268d3('0x135a')]['page']=0x1),!_0x14da44&&(_0x4977f1[_0x4268d3('0x135a')][_0x4268d3('0x23f5')]=_0x21be38),_0x2008e0());});}const _0x53860d=_0x1d368b;_0x3f5898['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1efd'),'openchannelCannedAnswer','api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x3f5898(_0x309b1c,_0x515830,_0x8601a7,_0x2667f5,_0x12c785,_0x1d3329,_0x25795e,_0x5ae796,_0xce080a,_0x3bc05f,_0x3fb031,_0x467357,_0x218225,_0x58b4a4){const _0x4fa9fd=_0x34e79e,_0x936572=this;_0x936572[_0x4fa9fd('0x9cb')]=_0x3fb031['getCurrentUser'](),_0x936572[_0x4fa9fd('0x25be')]=[],_0x936572[_0x4fa9fd('0x1af0')]=_0x218225,_0x936572[_0x4fa9fd('0x130d')]=_0x467357,_0x936572[_0x4fa9fd('0xe28')]=_0x58b4a4,_0x936572['hasModulePermissions']={},_0x936572[_0x4fa9fd('0x18ad')]=_0x936572[_0x4fa9fd('0x1af0')]&&_0x936572[_0x4fa9fd('0x1af0')][_0x4fa9fd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x936572[_0x4fa9fd('0x14e4')]=_0x4fa9fd('0x1c7b'),_0x936572[_0x4fa9fd('0x23e1')]=angular[_0x4fa9fd('0x2669')](_0xce080a),_0x936572[_0x4fa9fd('0x1efd')]=_0x5ae796,_0x936572[_0x4fa9fd('0x6ca')]=![];!_0x936572[_0x4fa9fd('0x23e1')]&&(_0x936572[_0x4fa9fd('0x23e1')]={},_0x936572[_0x4fa9fd('0x14e4')]=_0x4fa9fd('0x92d'),_0x936572[_0x4fa9fd('0x6ca')]=!![]);_0x515830['params']['id']&&(_0x936572[_0x4fa9fd('0x23e1')][_0x4fa9fd('0x22fa')]=_0x515830[_0x4fa9fd('0x4b9')]['id']);_0x936572['addNewOpenchannelCannedAnswer']=_0x5a97ad,_0x936572[_0x4fa9fd('0xb99')]=_0x2da880,_0x936572[_0x4fa9fd('0x101a')]=_0x36d35a,_0x936572['getDateFromString']=_0x386e73,_0x936572[_0x4fa9fd('0xca7')]=_0x2e23ab;function _0x5a97ad(){const _0x2f793a=_0x4fa9fd;_0x936572[_0x2f793a('0x25be')]=[],_0x3bc05f[_0x2f793a('0x1870')][_0x2f793a('0xbd0')](_0x936572['openchannelCannedAnswer'])[_0x2f793a('0x1714')][_0x2f793a('0x2788')](function(_0x46b2a6){const _0x34d7b1=_0x2f793a;_0x936572[_0x34d7b1('0x1efd')][_0x34d7b1('0xc51')](_0x46b2a6['toJSON']()),_0x25795e['success']({'title':_0x34d7b1('0xf82'),'msg':_0x936572[_0x34d7b1('0x23e1')][_0x34d7b1('0x1a8d')]?_0x936572['openchannelCannedAnswer']['name']+_0x34d7b1('0x1e4a'):''}),_0x2e23ab(_0x46b2a6);})['catch'](function(_0x4ac054){const _0x24cf60=_0x2f793a;if(_0x4ac054[_0x24cf60('0x11fc')]&&_0x4ac054[_0x24cf60('0x11fc')][_0x24cf60('0x25be')]&&_0x4ac054[_0x24cf60('0x11fc')][_0x24cf60('0x25be')][_0x24cf60('0x2566')]){_0x936572['errors']=_0x4ac054[_0x24cf60('0x11fc')][_0x24cf60('0x25be')]||[{'message':_0x4ac054['toString'](),'type':_0x24cf60('0x11b')}];for(let _0x142521=0x0;_0x142521<_0x4ac054['data'][_0x24cf60('0x25be')][_0x24cf60('0x2566')];_0x142521+=0x1){_0x25795e[_0x24cf60('0x5e8')]({'title':_0x4ac054[_0x24cf60('0x11fc')]['errors'][_0x142521][_0x24cf60('0x1d7')],'msg':_0x4ac054['data']['errors'][_0x142521][_0x24cf60('0x15e2')]});}}else _0x25795e[_0x24cf60('0x5e8')]({'title':_0x4ac054[_0x24cf60('0x1b51')]?_0x24cf60('0x15d1')+_0x4ac054[_0x24cf60('0x1b51')]+_0x24cf60('0x1b0b')+_0x4ac054[_0x24cf60('0x22ce')]:_0x24cf60('0x11b'),'msg':_0x4ac054[_0x24cf60('0x11fc')]?JSON['stringify'](_0x4ac054[_0x24cf60('0x11fc')][_0x24cf60('0x15e2')]):_0x4ac054['toString']()});});}function _0x2da880(){const _0x4e4f4e=_0x4fa9fd;_0x936572['errors']=[],_0x3bc05f[_0x4e4f4e('0x1870')]['update']({'id':_0x936572[_0x4e4f4e('0x23e1')]['id']},_0x936572[_0x4e4f4e('0x23e1')])['$promise'][_0x4e4f4e('0x2788')](function(_0x36c315){const _0x4ddc7e=_0x4e4f4e,_0x11ca3c=_0x283545()['find'](_0x936572[_0x4ddc7e('0x1efd')],{'id':_0x36c315['id']});_0x11ca3c&&_0x283545()[_0x4ddc7e('0x2503')](_0x11ca3c,_0x283545()[_0x4ddc7e('0x41b')](_0x36c315[_0x4ddc7e('0x1cbf')](),_0x283545()[_0x4ddc7e('0x2163')](_0x11ca3c))),_0x25795e[_0x4ddc7e('0x173b')]({'title':_0x4ddc7e('0x1e96'),'msg':_0x936572[_0x4ddc7e('0x23e1')][_0x4ddc7e('0x1a8d')]?_0x936572['openchannelCannedAnswer'][_0x4ddc7e('0x1a8d')]+_0x4ddc7e('0x24cf'):''}),_0x2e23ab(_0x36c315);})[_0x4e4f4e('0x1cb5')](function(_0x140dde){const _0x4c4f6f=_0x4e4f4e;if(_0x140dde['data']&&_0x140dde[_0x4c4f6f('0x11fc')][_0x4c4f6f('0x25be')]&&_0x140dde[_0x4c4f6f('0x11fc')][_0x4c4f6f('0x25be')][_0x4c4f6f('0x2566')]){_0x936572['errors']=_0x140dde[_0x4c4f6f('0x11fc')][_0x4c4f6f('0x25be')]||[{'message':_0x140dde[_0x4c4f6f('0x17df')](),'type':_0x4c4f6f('0x244')}];for(let _0x4a8268=0x0;_0x4a8268<_0x140dde[_0x4c4f6f('0x11fc')][_0x4c4f6f('0x25be')][_0x4c4f6f('0x2566')];_0x4a8268++){_0x25795e[_0x4c4f6f('0x5e8')]({'title':_0x140dde[_0x4c4f6f('0x11fc')]['errors'][_0x4a8268]['type'],'msg':_0x140dde[_0x4c4f6f('0x11fc')][_0x4c4f6f('0x25be')][_0x4a8268]['message']});}}else _0x25795e[_0x4c4f6f('0x5e8')]({'title':_0x140dde[_0x4c4f6f('0x1b51')]?_0x4c4f6f('0x15d1')+_0x140dde['status']+_0x4c4f6f('0x1b0b')+_0x140dde[_0x4c4f6f('0x22ce')]:_0x4c4f6f('0x244'),'msg':_0x140dde[_0x4c4f6f('0x11fc')]?JSON[_0x4c4f6f('0x1be0')](_0x140dde['data'][_0x4c4f6f('0x15e2')]):_0x140dde[_0x4c4f6f('0x17df')]()});});}function _0x36d35a(_0x28be88){const _0x3cd777=_0x4fa9fd;_0x936572['errors']=[];const _0x2bd02e=_0x2667f5[_0x3cd777('0x112e')]()[_0x3cd777('0x14e4')](_0x3cd777('0x458'))[_0x3cd777('0x1c98')]('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')[_0x3cd777('0x10bc')]('Delete\x20OpenchannelCannedAnswer')['ok'](_0x3cd777('0x2786'))[_0x3cd777('0x1801')](_0x3cd777('0x1481'))['targetEvent'](_0x28be88);_0x2667f5[_0x3cd777('0x2fa')](_0x2bd02e)[_0x3cd777('0x2788')](function(){const _0x25b780=_0x3cd777;_0x3bc05f[_0x25b780('0x1870')][_0x25b780('0x17c4')]({'id':_0x936572[_0x25b780('0x23e1')]['id']})['$promise'][_0x25b780('0x2788')](function(){const _0x2a7ed8=_0x25b780;_0x283545()[_0x2a7ed8('0x1a90')](_0x936572[_0x2a7ed8('0x1efd')],{'id':_0x936572[_0x2a7ed8('0x23e1')]['id']}),_0x25795e['success']({'title':'OpenchannelCannedAnswer\x20properly\x20deleted!','msg':(_0x936572['openchannelCannedAnswer'][_0x2a7ed8('0x1a8d')]||'openchannelCannedAnswer')+_0x2a7ed8('0x14d4')}),_0x2e23ab(_0x936572[_0x2a7ed8('0x23e1')]);})[_0x25b780('0x1cb5')](function(_0x2edcf3){const _0x2b6280=_0x25b780;if(_0x2edcf3[_0x2b6280('0x11fc')]&&_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x25be')]&&_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x25be')][_0x2b6280('0x2566')]){_0x936572['errors']=_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x25be')]||[{'message':_0x2edcf3[_0x2b6280('0x17df')](),'type':_0x2b6280('0x1cad')}];for(let _0x24ae06=0x0;_0x24ae06<_0x2edcf3[_0x2b6280('0x11fc')]['errors'][_0x2b6280('0x2566')];_0x24ae06++){_0x25795e['error']({'title':_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x25be')][_0x24ae06][_0x2b6280('0x1d7')],'msg':_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x25be')][_0x24ae06]['message']});}}else _0x25795e[_0x2b6280('0x5e8')]({'title':_0x2edcf3['status']?_0x2b6280('0x15d1')+_0x2edcf3[_0x2b6280('0x1b51')]+_0x2b6280('0x1b0b')+_0x2edcf3[_0x2b6280('0x22ce')]:'api.cannedAnswer.delete','msg':_0x2edcf3[_0x2b6280('0x11fc')]?JSON[_0x2b6280('0x1be0')](_0x2edcf3[_0x2b6280('0x11fc')][_0x2b6280('0x15e2')]):_0x2edcf3[_0x2b6280('0x15e2')]||_0x2edcf3[_0x2b6280('0x17df')]()});});},function(){});}function _0x386e73(_0x3dc0f5){return _0x3dc0f5===null?undefined:new Date(_0x3dc0f5);}function _0x2e23ab(_0x2e8ed4){const _0x284a6b=_0x4fa9fd;_0x2667f5[_0x284a6b('0x19d')](_0x2e8ed4);}}const _0x19b70a=_0x3f5898;_0x1cc5a6['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),'$translate','api','toasty',_0x34e79e('0x1b04')];function _0x1cc5a6(_0x2343b7,_0x583401,_0x187769,_0x24508f,_0x128319,_0x3cf2bb,_0x20cefc,_0x749aa3,_0x12567f,_0x85f01b,_0x11f368){const _0x4f30a5=_0x34e79e,_0x183cb0=this;_0x183cb0[_0x4f30a5('0x9cb')]=_0x11f368['getCurrentUser'](),_0x183cb0['dispositions']={'count':0x0,'rows':[]},_0x183cb0['selectedDispositions']=[],_0x183cb0[_0x4f30a5('0xe28')],_0x183cb0[_0x4f30a5('0x21c2')]={'first':_0x4f30a5('0x1b84'),'second':_0x4f30a5('0x1e6'),'third':_0x4f30a5('0x188d')},_0x183cb0[_0x4f30a5('0x135a')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x4f30a5('0x1cee'),'limit':0xa,'page':0x1},_0x183cb0[_0x4f30a5('0x24eb')]=_0x39d41d,_0x183cb0[_0x4f30a5('0x16a')]=_0x182dbe,_0x183cb0[_0x4f30a5('0x173b')]=_0x5f56a1,_0x183cb0[_0x4f30a5('0x2069')]=_0xc1f1d6,_0x183cb0['createOrEditDisposition']=_0x46dfdd,_0x183cb0['deleteDisposition']=_0x244f23,_0x183cb0[_0x4f30a5('0x1550')]=_0x162100,_0x183cb0['deleteSelectedDispositions']=_0x458327,_0x183cb0['deselectDispositions']=_0x279d47,_0x183cb0[_0x4f30a5('0xe69')]=_0x3c11b6;function _0x39d41d(_0x3623e9,_0x5a47e6){const _0x132631=_0x4f30a5;_0x183cb0['openchannelAccount']=_0x3623e9||{},_0x183cb0[_0x132631('0xe28')]=typeof _0x5a47e6!==_0x132631('0xedb')?_0x5a47e6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x183cb0[_0x132631('0x135a')]['OpenchannelAccountId']=_0x183cb0[_0x132631('0xfba')]['id'],_0x183cb0[_0x132631('0x135a')]['id']=_0x183cb0[_0x132631('0xfba')]['id'],_0xc1f1d6();}function _0x46dfdd(_0x26ca33,_0x58d8ba){const _0x5cbed4=_0x4f30a5;_0x128319['show']({'controller':_0x5cbed4('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular['element'](_0x3cf2bb[_0x5cbed4('0x945')]),'targetEvent':_0x26ca33,'clickOutsideToClose':!![],'locals':{'disposition':_0x58d8ba,'dispositions':_0x183cb0[_0x5cbed4('0x818')][_0x5cbed4('0x25df')],'model':{'id':_0x183cb0[_0x5cbed4('0xfba')]['id'],'field':_0x5cbed4('0x22fa')},'license':null,'setting':null,'crudPermissions':_0x183cb0[_0x5cbed4('0xe28')]}})[_0x5cbed4('0x2788')](function(_0x3c15c6){if(_0x3c15c6)_0xc1f1d6();});}function _0x182dbe(_0x3fec53,_0x37b2bd){const _0x16a443=_0x4f30a5,_0x3f012a=_0x283545()['some'](_0x183cb0[_0x16a443('0x818')][_0x16a443('0x25df')],[_0x16a443('0x1ba'),_0x3fec53['id']]),_0x61e56b=_0x128319['confirm']()['title'](_0x749aa3['instant'](_0x16a443('0x29e')))[_0x16a443('0x1c98')](_0x749aa3[_0x16a443('0x1b11')](_0x16a443('0x5b')+(_0x3f012a?_0x16a443('0x40a'):_0x16a443('0x281c')),{'name':_0x3fec53[_0x16a443('0x1a8d')]}))[_0x16a443('0x10bc')](_0x16a443('0x1f86'))[_0x16a443('0x24d0')](_0x37b2bd)['ok']('OK')[_0x16a443('0x1801')](_0x749aa3[_0x16a443('0x1b11')](_0x16a443('0x1061')));_0x128319[_0x16a443('0x2fa')](_0x61e56b)[_0x16a443('0x2788')](function(){_0x244f23(_0x3fec53);});}function _0x5f56a1(_0xb5f519){const _0x3e22f8=_0x4f30a5;_0x183cb0[_0x3e22f8('0x818')]=_0xb5f519||{'count':0x0,'rows':[]};}function _0xc1f1d6(){const _0x50516c=_0x4f30a5;_0x183cb0[_0x50516c('0x135a')]['offset']=(_0x183cb0[_0x50516c('0x135a')][_0x50516c('0x23f5')]-0x1)*_0x183cb0[_0x50516c('0x135a')][_0x50516c('0x68e')],_0x183cb0['promise']=_0x12567f['openchannelAccount'][_0x50516c('0x2069')](_0x183cb0[_0x50516c('0x135a')],_0x5f56a1)[_0x50516c('0x1714')];}function _0x244f23(_0x5219a5){const _0x2597b6=_0x4f30a5;_0x12567f[_0x2597b6('0x1db2')]['delete']({'id':_0x5219a5['id']})[_0x2597b6('0x1714')]['then'](function(){const _0x37c998=_0x2597b6;_0xc1f1d6(),_0x85f01b[_0x37c998('0x173b')]({'title':_0x749aa3[_0x37c998('0x1b11')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x2597b6('0x1cb5')](function(_0x4bfccf){const _0x372a09=_0x2597b6;if(_0x4bfccf['data']&&_0x4bfccf[_0x372a09('0x11fc')]['errors']&&_0x4bfccf['data'][_0x372a09('0x25be')][_0x372a09('0x2566')]){_0x183cb0[_0x372a09('0x25be')]=_0x4bfccf[_0x372a09('0x11fc')][_0x372a09('0x25be')]||[{'message':_0x4bfccf[_0x372a09('0x17df')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x392e00=0x0;_0x392e00<_0x4bfccf['data'][_0x372a09('0x25be')][_0x372a09('0x2566')];_0x392e00++){_0x85f01b['error']({'title':_0x4bfccf[_0x372a09('0x11fc')][_0x372a09('0x25be')][_0x392e00][_0x372a09('0x1d7')],'msg':_0x4bfccf[_0x372a09('0x11fc')][_0x372a09('0x25be')][_0x392e00][_0x372a09('0x15e2')]});}}else _0x85f01b[_0x372a09('0x5e8')]({'title':_0x4bfccf[_0x372a09('0x1b51')]?_0x372a09('0x15d1')+_0x4bfccf[_0x372a09('0x1b51')]+_0x372a09('0x1b0b')+_0x4bfccf[_0x372a09('0x22ce')]:_0x372a09('0x1410'),'msg':_0x4bfccf[_0x372a09('0x11fc')]?JSON[_0x372a09('0x1be0')](_0x4bfccf[_0x372a09('0x11fc')][_0x372a09('0x15e2')]):_0x4bfccf[_0x372a09('0x15e2')]||_0x4bfccf['toString']()});});}function _0x162100(){const _0xfde6f6=_0x4f30a5,_0x12f844=angular[_0xfde6f6('0x2669')](_0x183cb0[_0xfde6f6('0x25d8')]);return _0x183cb0[_0xfde6f6('0x25d8')]=[],_0x12f844;}function _0x458327(_0x2f3dec){const _0x165cdb=_0x4f30a5,_0x4be16d=_0x128319['confirm']()[_0x165cdb('0x14e4')](_0x749aa3[_0x165cdb('0x1b11')](_0x165cdb('0x63d')))['content'](_0x749aa3[_0x165cdb('0x1b11')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x183cb0[_0x165cdb('0x25d8')]['length']}))[_0x165cdb('0x10bc')](_0x165cdb('0x248b'))[_0x165cdb('0x24d0')](_0x2f3dec)['ok']('OK')[_0x165cdb('0x1801')](_0x749aa3[_0x165cdb('0x1b11')](_0x165cdb('0x1061')));_0x128319[_0x165cdb('0x2fa')](_0x4be16d)['then'](function(){const _0x6b9886=_0x165cdb;_0x183cb0[_0x6b9886('0x25d8')][_0x6b9886('0x1534')](function(_0x194f3b){_0x244f23(_0x194f3b);}),_0x183cb0[_0x6b9886('0x25d8')]=[];});}function _0x279d47(){const _0x25b11b=_0x4f30a5;_0x183cb0[_0x25b11b('0x25d8')]=[];}function _0x3c11b6(){const _0x209b0f=_0x4f30a5;_0x183cb0[_0x209b0f('0x25d8')]=_0x183cb0[_0x209b0f('0x818')][_0x209b0f('0x25df')];}let _0x405c08=!![],_0x277011=0x1;_0x2343b7['$watch'](_0x4f30a5('0x2571'),function(_0x24dd2d,_0x5ae51c){const _0x54536a=_0x4f30a5;_0x405c08?_0x20cefc(function(){_0x405c08=![];}):(!_0x5ae51c&&(_0x277011=_0x183cb0[_0x54536a('0x135a')][_0x54536a('0x23f5')]),_0x24dd2d!==_0x5ae51c&&(_0x183cb0[_0x54536a('0x135a')][_0x54536a('0x23f5')]=0x1),!_0x24dd2d&&(_0x183cb0[_0x54536a('0x135a')][_0x54536a('0x23f5')]=_0x277011),_0xc1f1d6());});}const _0x1bc47b=_0x1cc5a6,_0x36464a=_0x18dd13['p']+_0x34e79e('0xdc0');_0xf6356b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'api',_0x34e79e('0xd57'),'Auth',_0x34e79e('0xfba'),_0x34e79e('0xec9')];function _0xf6356b(_0x332207,_0x520a9e,_0x2cc737,_0x571e0f,_0x3e26f9,_0x4c273b,_0xa1d7ab,_0x36d83d,_0x5642eb,_0x28d124,_0x539723,_0x57c775){const _0x5c5ded=_0x34e79e,_0x5138f8=this;_0x5138f8[_0x5c5ded('0x9cb')]=_0x28d124[_0x5c5ded('0x24cc')](),_0x5138f8[_0x5c5ded('0x130d')]=_0x4c273b,_0x5138f8[_0x5c5ded('0x1af0')]=_0xa1d7ab,_0x5138f8[_0x5c5ded('0x18ad')]=_0x5138f8[_0x5c5ded('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5138f8[_0x5c5ded('0xe9')]=_0x520a9e[_0x5c5ded('0x170c')]()+_0x5c5ded('0x726')+_0x520a9e[_0x5c5ded('0x1c6a')](),_0x5138f8['openchannelAccount']=_0x539723||_0x332207[_0x5c5ded('0x4b9')][_0x5c5ded('0xfba')]||{},_0x5138f8[_0x5c5ded('0xec9')]=_0x57c775&&_0x57c775[_0x5c5ded('0x338')]==0x1?_0x57c775[_0x5c5ded('0x25df')][0x0]:null,_0x5138f8[_0x5c5ded('0xe28')]=_0x28d124[_0x5c5ded('0x157e')](_0x5138f8['userProfileSection']?_0x5138f8['userProfileSection'][_0x5c5ded('0xe28')]:null),_0x5138f8['hasModulePermissions']={},_0x5138f8[_0x5c5ded('0xcb3')]=_0x332207[_0x5c5ded('0x4b9')][_0x5c5ded('0x24f6')]||0x0,_0x5138f8[_0x5c5ded('0x1113')]=_0xbd65f5,_0x5138f8['alert']=_0x5642eb[_0x5c5ded('0x2276')],_0x5138f8[_0x5c5ded('0xca6')]=_0x5d91d1,_0x5138f8[_0x5c5ded('0x124e')]=_0x5e985d,_0x28d124[_0x5c5ded('0x1516')]('admin')?_0x36d83d['cmList']['get']({'fields':_0x5c5ded('0x1338'),'sort':_0x5c5ded('0x1a8d')})[_0x5c5ded('0x1714')][_0x5c5ded('0x2788')](function(_0x882b96){const _0x3b56d1=_0x5c5ded;_0x5138f8[_0x3b56d1('0x2')]=_0x882b96[_0x3b56d1('0x25df')]||[];})[_0x5c5ded('0x1cb5')](function(_0x1d57ad){const _0x557fa0=_0x5c5ded;_0x5642eb[_0x557fa0('0x5e8')]({'title':_0x1d57ad[_0x557fa0('0x1b51')]?_0x557fa0('0x15d1')+_0x1d57ad['status']+_0x557fa0('0x1b0b')+_0x1d57ad['statusText']:_0x557fa0('0x11da'),'msg':_0x1d57ad[_0x557fa0('0x11fc')]?JSON[_0x557fa0('0x1be0')](_0x1d57ad[_0x557fa0('0x11fc')]):_0x1d57ad[_0x557fa0('0x17df')]()});}):_0x36d83d[_0x5c5ded('0x1ba4')][_0x5c5ded('0x1335')]({'fields':_0x5c5ded('0x1338'),'sort':_0x5c5ded('0x1a8d')})[_0x5c5ded('0x1714')]['then'](function(_0x4f6d93){const _0x212bc3=_0x5c5ded;_0x5138f8[_0x212bc3('0x2')]=_0x4f6d93[_0x212bc3('0x25df')]||[];})['then'](function(){const _0x498a96=_0x5c5ded;return _0x36d83d['userProfileSection'][_0x498a96('0x1335')]({'userProfileId':_0x5138f8[_0x498a96('0x9cb')][_0x498a96('0x237f')],'sectionId':0x12d})[_0x498a96('0x1714')];})[_0x5c5ded('0x2788')](function(_0xbe5b4c){const _0x57624e=_0x5c5ded,_0x8c90b=_0xbe5b4c&&_0xbe5b4c['rows']?_0xbe5b4c[_0x57624e('0x25df')][0x0]:null;if(!_0x8c90b){const _0x5b20e9=[];let _0x1d07dd=null;_0x5138f8[_0x57624e('0xfba')]&&(_0x1d07dd=_0x283545()[_0x57624e('0x20e8')](_0x5138f8[_0x57624e('0x2')],{'id':Number(_0x5138f8[_0x57624e('0xfba')]['ListId'])}));for(let _0x2e4d61=0x0;_0x2e4d61<_0x5138f8[_0x57624e('0x2')]['length'];_0x2e4d61++){_0x1d07dd&&_0x5138f8[_0x57624e('0x2')][_0x2e4d61]['id']===_0x1d07dd['id']&&(_0x5138f8[_0x57624e('0x2')][_0x2e4d61][_0x57624e('0x3bf')]=![],_0x5b20e9[_0x57624e('0x13e3')](_0x5138f8[_0x57624e('0x2')][_0x2e4d61]));}_0x5138f8[_0x57624e('0x2')]=_0x5b20e9;}else{if(!_0x8c90b[_0x57624e('0x1c0a')])return _0x36d83d[_0x57624e('0x1050')][_0x57624e('0x1335')]({'sectionId':_0x8c90b['id']})[_0x57624e('0x1714')][_0x57624e('0x2788')](function(_0x48ce7f){const _0x3fd53a=_0x57624e,_0xe26a9=_0x283545()[_0x3fd53a('0x155d')](_0x48ce7f[_0x3fd53a('0x25df')],function(_0x498f77){const _0x570ecb=_0x3fd53a;return _0x283545()[_0x570ecb('0x20e8')](_0x5138f8[_0x570ecb('0x2')],{'id':_0x498f77[_0x570ecb('0x2707')]});});let _0x53f319=null;_0x5138f8['openchannelAccount']&&(_0x53f319=_0x283545()[_0x3fd53a('0x20e8')](_0x5138f8[_0x3fd53a('0x2')],{'id':Number(_0x5138f8['openchannelAccount'][_0x3fd53a('0x354')])}));if(_0x53f319&&!_0x283545()[_0x3fd53a('0xc5d')](_0xe26a9,['id',_0x53f319['id']])){const _0x41bcb1=_0x283545()[_0x3fd53a('0x20e8')](_0x5138f8[_0x3fd53a('0x2')],{'id':_0x53f319['id']});_0x41bcb1[_0x3fd53a('0x3bf')]=![],_0xe26a9[_0x3fd53a('0x13e3')](_0x41bcb1);}_0x5138f8[_0x3fd53a('0x2')]=_0xe26a9;});}})[_0x5c5ded('0x1cb5')](function(_0x5ad095){const _0x1da822=_0x5c5ded;_0x5642eb['error']({'title':_0x5ad095[_0x1da822('0x1b51')]?_0x1da822('0x15d1')+_0x5ad095['status']+_0x1da822('0x1b0b')+_0x5ad095['statusText']:_0x1da822('0x999'),'msg':_0x5ad095[_0x1da822('0x11fc')]?JSON[_0x1da822('0x1be0')](_0x5ad095[_0x1da822('0x11fc')]):_0x5ad095[_0x1da822('0x17df')]()});}),_0x36d83d[_0x5c5ded('0xa83')][_0x5c5ded('0x15f8')]({'id':_0x5138f8[_0x5c5ded('0xfba')][_0x5c5ded('0x354')]})[_0x5c5ded('0x1714')][_0x5c5ded('0x2788')](function(_0xb8a59a){const _0x1bc32c=_0x5c5ded;_0x5138f8[_0x1bc32c('0x1578')]=[],_0xb8a59a=_0x283545()[_0x1bc32c('0xc5')](_0xb8a59a[_0x1bc32c('0x1cbf')]());const _0x195490=['id','createdAt',_0x1bc32c('0x5f'),_0x1bc32c('0xeb0'),_0x1bc32c('0x1343'),_0x1bc32c('0x354'),_0x1bc32c('0x1dcb')];for(let _0x59e787=0x0;_0x59e787<_0xb8a59a[_0x1bc32c('0x2566')];_0x59e787++){!_0x283545()[_0x1bc32c('0x1d4e')](_0x195490,_0xb8a59a[_0x59e787][_0x1bc32c('0x1495')])&&_0x5138f8[_0x1bc32c('0x1578')][_0x1bc32c('0x13e3')](_0xb8a59a[_0x59e787]);}})[_0x5c5ded('0x1cb5')](function(_0x23fa0d){const _0x5c9331=_0x5c5ded;_0x5642eb[_0x5c9331('0x5e8')]({'title':_0x23fa0d[_0x5c9331('0x1b51')]?_0x5c9331('0x15d1')+_0x23fa0d[_0x5c9331('0x1b51')]+_0x5c9331('0x1b0b')+_0x23fa0d[_0x5c9331('0x22ce')]:_0x5c9331('0x737'),'msg':_0x23fa0d[_0x5c9331('0x11fc')]?JSON[_0x5c9331('0x1be0')](_0x23fa0d[_0x5c9331('0x11fc')]):_0x23fa0d[_0x5c9331('0x17df')]()});}),_0x28d124[_0x5c5ded('0x1516')](_0x5c5ded('0xe23'))?_0x36d83d[_0x5c5ded('0x619')]['get']({'fields':'name,id','sort':_0x5c5ded('0x1a8d'),'nolimit':_0x5c5ded('0x1001')})['$promise'][_0x5c5ded('0x2788')](function(_0x5882e4){const _0x40db5d=_0x5c5ded;_0x5138f8[_0x40db5d('0x225d')]=_0x5882e4['rows']||[];})[_0x5c5ded('0x1cb5')](function(_0xd12a16){const _0x5b3571=_0x5c5ded;_0x5642eb[_0x5b3571('0x5e8')]({'title':_0xd12a16['status']?'API:'+_0xd12a16[_0x5b3571('0x1b51')]+_0x5b3571('0x1b0b')+_0xd12a16[_0x5b3571('0x22ce')]:'SYSTEM:GET_PAUSES','msg':_0xd12a16[_0x5b3571('0x11fc')]?JSON['stringify'](_0xd12a16['data']):_0xd12a16[_0x5b3571('0x17df')]()});}):_0x36d83d[_0x5c5ded('0x619')][_0x5c5ded('0x1335')]({'fields':'name,id','sort':_0x5c5ded('0x1a8d'),'nolimit':'true'})['$promise'][_0x5c5ded('0x2788')](function(_0x347177){const _0x383d35=_0x5c5ded;_0x5138f8['pauses']=_0x347177[_0x383d35('0x25df')]||[];})[_0x5c5ded('0x2788')](function(){const _0x511f13=_0x5c5ded;return _0x36d83d[_0x511f13('0xec9')][_0x511f13('0x1335')]({'userProfileId':_0x5138f8[_0x511f13('0x9cb')][_0x511f13('0x237f')],'sectionId':0x3ed})[_0x511f13('0x1714')];})['then'](function(_0x47fdfb){const _0x356670=_0x5c5ded,_0xfc939=_0x47fdfb&&_0x47fdfb[_0x356670('0x25df')]?_0x47fdfb[_0x356670('0x25df')][0x0]:null;if(!_0xfc939)_0x5138f8[_0x356670('0x225d')]=[];else{if(!_0xfc939[_0x356670('0x1c0a')])return _0x36d83d[_0x356670('0x1050')][_0x356670('0x1335')]({'sectionId':_0xfc939['id']})['$promise'][_0x356670('0x2788')](function(_0x2c1d5f){const _0x247b37=_0x356670,_0x412c35=_0x283545()[_0x247b37('0x155d')](_0x2c1d5f[_0x247b37('0x25df')],function(_0x38fe42){const _0xde55c5=_0x247b37;return _0x283545()[_0xde55c5('0x20e8')](_0x5138f8[_0xde55c5('0x225d')],{'id':_0x38fe42[_0xde55c5('0x2707')]});});_0x5138f8[_0x247b37('0x225d')][_0x247b37('0x1534')](function(_0x1f728e){const _0x5bf859=_0x247b37;!_0x283545()[_0x5bf859('0xc5d')](_0x412c35,['id',_0x1f728e['id']])&&(_0x1f728e[_0x5bf859('0x3bf')]=![]),_0x412c35[_0x5bf859('0x13e3')](_0x1f728e);}),_0x5138f8[_0x247b37('0x225d')]=_0x412c35;});}})[_0x5c5ded('0x1cb5')](function(_0x50b60c){const _0x37606a=_0x5c5ded;_0x5642eb[_0x37606a('0x5e8')]({'title':_0x50b60c[_0x37606a('0x1b51')]?_0x37606a('0x15d1')+_0x50b60c[_0x37606a('0x1b51')]+_0x37606a('0x1b0b')+_0x50b60c[_0x37606a('0x22ce')]:_0x37606a('0x7d9'),'msg':_0x50b60c[_0x37606a('0x11fc')]?JSON[_0x37606a('0x1be0')](_0x50b60c[_0x37606a('0x11fc')]):_0x50b60c['toString']()});});function _0xbd65f5(_0x12e732,_0x339e2c){const _0x5e26e7=_0x5c5ded;_0x2cc737[_0x5e26e7('0x2fa')]({'controller':_0x5e26e7('0x1dec'),'controllerAs':'vm','templateUrl':_0x36464a,'parent':angular[_0x5e26e7('0x16b1')](_0x571e0f['body']),'targetEvent':_0x339e2c,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x12e732,'openchannelAccounts':_0x5138f8['openchannelAccounts']?_0x5138f8[_0x5e26e7('0x1e10')][_0x5e26e7('0x25df')]:[],'crudPermissions':_0x5138f8[_0x5e26e7('0xe28')],'realtime':![]}});}function _0x5d91d1(){const _0x384aa8=_0x5c5ded;_0x332207['go'](_0x384aa8('0x843'),{},{'reload':_0x384aa8('0x843')});}function _0x5e985d(){const _0x118393=_0x5c5ded;_0x36d83d[_0x118393('0xfba')][_0x118393('0x2740')]({'id':_0x5138f8['openchannelAccount']['id']},_0x5138f8['openchannelAccount'])[_0x118393('0x1714')][_0x118393('0x2788')](function(){const _0x55ec44=_0x118393;_0x5642eb['success']({'title':_0x55ec44('0x254f'),'msg':_0x5138f8['openchannelAccount'][_0x55ec44('0x1a8d')]?_0x5138f8['openchannelAccount'][_0x55ec44('0x1a8d')]+_0x55ec44('0x6f8'):''});})['catch'](function(_0x1278ff){const _0x40f57c=_0x118393;_0x5642eb[_0x40f57c('0x5e8')]({'title':_0x1278ff[_0x40f57c('0x1b51')]?_0x40f57c('0x15d1')+_0x1278ff[_0x40f57c('0x1b51')]+'\x20-\x20'+_0x1278ff[_0x40f57c('0x22ce')]:'SYSTEM:GETopenchannelAccount','msg':_0x1278ff[_0x40f57c('0x11fc')]?JSON[_0x40f57c('0x1be0')](_0x1278ff[_0x40f57c('0x11fc')]):_0x1278ff[_0x40f57c('0x17df')]()});});}}const _0x3df09d=_0xf6356b,_0x51e809=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html';_0x117283[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x1e10'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x117283(_0x2ab70e,_0x401735,_0x10f390,_0x34bb38,_0x2cbb9a,_0x34ed7e,_0x1d7fe6,_0x153baf,_0x230b58,_0x1d2445,_0x2d32d0,_0x311da0,_0x33a78c,_0x1eb510,_0x5c9cae,_0x2c99c8,_0xe52900){const _0x3943df=_0x34e79e,_0x3d4a8c=this;_0x3d4a8c[_0x3943df('0x130d')]=_0x2c99c8,_0x3d4a8c[_0x3943df('0x1af0')]=_0xe52900,_0x3d4a8c[_0x3943df('0x9cb')]=_0x5c9cae[_0x3943df('0x24cc')](),_0x3d4a8c[_0x3943df('0x1e10')]=_0x230b58||{'count':0x0,'rows':[]},_0x3d4a8c[_0x3943df('0x63c')]=_0x1d2445,_0x3d4a8c[_0x3943df('0xec9')]=_0x2d32d0&&_0x2d32d0[_0x3943df('0x338')]==0x1?_0x2d32d0[_0x3943df('0x25df')][0x0]:null,_0x3d4a8c['crudPermissions']=_0x5c9cae['parseCrudPermissions'](_0x3d4a8c[_0x3943df('0xec9')]?_0x3d4a8c[_0x3943df('0xec9')][_0x3943df('0xe28')]:null),_0x3d4a8c[_0x3943df('0x26a9')]='openchannelAccounts',_0x3d4a8c[_0x3943df('0x2278')]='',_0x3d4a8c[_0x3943df('0x25e2')]=null,_0x3d4a8c[_0x3943df('0x184b')]=[],_0x3d4a8c[_0x3943df('0x135a')]={'fields':_0x3943df('0x24b4'),'sort':_0x3943df('0x1cee'),'limit':0xa,'page':0x1},_0x3d4a8c[_0x3943df('0x1f7e')]=_0x45cf55,_0x3d4a8c[_0x3943df('0x3aa')]=_0x2cfae4,_0x3d4a8c[_0x3943df('0x1113')]=_0x447492,_0x3d4a8c[_0x3943df('0x1e5')]=_0x35137b,_0x3d4a8c[_0x3943df('0x173b')]=_0x13ef37,_0x3d4a8c[_0x3943df('0x184')]=_0x5ecda5,_0x3d4a8c['createOrEditOpenchannelAccount']=_0x1a90de,_0x3d4a8c['deleteOpenchannelAccount']=_0x286981,_0x3d4a8c['exportSelectedOpenchannelAccounts']=_0x97ec69,_0x3d4a8c[_0x3943df('0x1ba8')]=_0x2b76b5,_0x3d4a8c[_0x3943df('0x24d3')]=_0x389c0a,_0x3d4a8c['selectAllOpenchannelAccounts']=_0x48d0cb,_0x5c9cae['hasRole'](_0x3943df('0xe23'))?_0x311da0[_0x3943df('0x1ba4')][_0x3943df('0x1335')]({'fields':_0x3943df('0x1338'),'sort':_0x3943df('0x1a8d')})[_0x3943df('0x1714')][_0x3943df('0x2788')](function(_0x54f9f2){const _0x515504=_0x3943df;_0x3d4a8c['lists']=_0x54f9f2[_0x515504('0x25df')]||[];})[_0x3943df('0x1cb5')](function(_0x2e9819){const _0x3aec61=_0x3943df;_0x1eb510['error']({'title':_0x2e9819[_0x3aec61('0x1b51')]?_0x3aec61('0x15d1')+_0x2e9819[_0x3aec61('0x1b51')]+_0x3aec61('0x1b0b')+_0x2e9819[_0x3aec61('0x22ce')]:'SYSTEM:GET_LISTS','msg':_0x2e9819['data']?JSON[_0x3aec61('0x1be0')](_0x2e9819[_0x3aec61('0x11fc')]):_0x2e9819[_0x3aec61('0x17df')]()});}):_0x311da0[_0x3943df('0x1ba4')]['get']({'fields':'id,name','sort':_0x3943df('0x1a8d')})[_0x3943df('0x1714')]['then'](function(_0x12f754){const _0x14f692=_0x3943df;_0x3d4a8c[_0x14f692('0x2')]=_0x12f754[_0x14f692('0x25df')]||[];})[_0x3943df('0x2788')](function(){const _0x558f7f=_0x3943df;return _0x311da0[_0x558f7f('0xec9')]['get']({'userProfileId':_0x3d4a8c[_0x558f7f('0x9cb')]['userProfileId'],'sectionId':0x12d})[_0x558f7f('0x1714')];})[_0x3943df('0x2788')](function(_0x4cb424){const _0x48aa1a=_0x3943df,_0x3cbf12=_0x4cb424&&_0x4cb424['rows']?_0x4cb424[_0x48aa1a('0x25df')][0x0]:null;if(!_0x3cbf12){const _0x565fa3=[];let _0x584cd1=null;_0x3d4a8c[_0x48aa1a('0xfba')]&&(_0x584cd1=_0x283545()[_0x48aa1a('0x20e8')](_0x3d4a8c['lists'],{'id':Number(_0x3d4a8c[_0x48aa1a('0xfba')][_0x48aa1a('0x354')])}));for(let _0x3cd8db=0x0;_0x3cd8db<_0x3d4a8c[_0x48aa1a('0x2')][_0x48aa1a('0x2566')];_0x3cd8db++){_0x584cd1&&_0x3d4a8c[_0x48aa1a('0x2')][_0x3cd8db]['id']===_0x584cd1['id']&&(_0x3d4a8c[_0x48aa1a('0x2')][_0x3cd8db]['canSelect']=![],_0x565fa3[_0x48aa1a('0x13e3')](_0x3d4a8c[_0x48aa1a('0x2')][_0x3cd8db]));}_0x3d4a8c[_0x48aa1a('0x2')]=_0x565fa3;}else{if(!_0x3cbf12['autoAssociation'])return _0x311da0['userProfileResource'][_0x48aa1a('0x1335')]({'sectionId':_0x3cbf12['id']})[_0x48aa1a('0x1714')][_0x48aa1a('0x2788')](function(_0xbdc0fc){const _0x2db6e5=_0x48aa1a,_0x115020=_0x283545()[_0x2db6e5('0x155d')](_0xbdc0fc[_0x2db6e5('0x25df')],function(_0x51edfe){const _0x3aa216=_0x2db6e5;return _0x283545()[_0x3aa216('0x20e8')](_0x3d4a8c[_0x3aa216('0x2')],{'id':_0x51edfe[_0x3aa216('0x2707')]});});let _0x5e913f=null;_0x3d4a8c['openchannelAccount']&&(_0x5e913f=_0x283545()['find'](_0x3d4a8c[_0x2db6e5('0x2')],{'id':Number(_0x3d4a8c['openchannelAccount']['ListId'])}));if(_0x5e913f&&!_0x283545()[_0x2db6e5('0xc5d')](_0x115020,['id',_0x5e913f['id']])){const _0x3e00a3=_0x283545()[_0x2db6e5('0x20e8')](_0x3d4a8c[_0x2db6e5('0x2')],{'id':_0x5e913f['id']});_0x3e00a3['canSelect']=![],_0x115020['push'](_0x3e00a3);}_0x3d4a8c[_0x2db6e5('0x2')]=_0x115020;});}})[_0x3943df('0x1cb5')](function(_0x316ecf){const _0x109a1b=_0x3943df;_0x1eb510[_0x109a1b('0x5e8')]({'title':_0x316ecf['status']?'API:'+_0x316ecf[_0x109a1b('0x1b51')]+'\x20-\x20'+_0x316ecf[_0x109a1b('0x22ce')]:'SYSTEM:GETlists','msg':_0x316ecf[_0x109a1b('0x11fc')]?JSON[_0x109a1b('0x1be0')](_0x316ecf[_0x109a1b('0x11fc')]):_0x316ecf[_0x109a1b('0x17df')]()});});function _0x45cf55(_0x2e62e9){const _0x2a37e2=_0x3943df;_0x10f390['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x2e62e9['id'],'openchannelAccount':_0x2e62e9,'crudPermissions':_0x3d4a8c[_0x2a37e2('0xe28')]});}function _0x2cfae4(_0x28e378){const _0x140247=_0x3943df;_0x10f390['go'](_0x140247('0x580'),{'id':_0x28e378['id'],'tab':0x5});}function _0x447492(_0x26abbd,_0x2d6540){const _0x56ec1b=_0x3943df;_0x2cbb9a[_0x56ec1b('0x2fa')]({'controller':_0x56ec1b('0x1dec'),'controllerAs':'vm','templateUrl':_0x36464a,'parent':angular[_0x56ec1b('0x16b1')](_0x34ed7e[_0x56ec1b('0x945')]),'targetEvent':_0x2d6540,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x26abbd,'openchannelAccounts':_0x3d4a8c[_0x56ec1b('0x1e10')]?_0x3d4a8c[_0x56ec1b('0x1e10')][_0x56ec1b('0x25df')]:[],'crudPermissions':_0x3d4a8c[_0x56ec1b('0xe28')],'realtime':![]}});}function _0x35137b(_0x256d84,_0x1a5758){const _0x597e0f=_0x3943df,_0xf9c351=_0x2cbb9a['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x597e0f('0x114')](_0x597e0f('0xfba'))+'?')['htmlContent'](_0x597e0f('0x1670')+(_0x256d84[_0x597e0f('0x1a8d')]||_0x597e0f('0xfba'))+'
'+_0x597e0f('0x27c7'))['ariaLabel']('delete\x20openchannelAccount')['targetEvent'](_0x1a5758)['ok']('OK')[_0x597e0f('0x1801')](_0x597e0f('0x1d8d'));_0x2cbb9a[_0x597e0f('0x2fa')](_0xf9c351)['then'](function(){_0x286981(_0x256d84);},function(){const _0x5287b2=_0x597e0f;console[_0x5287b2('0x10df')]('CANCEL');});}let _0x46faaa=!![],_0x3b5a8b=0x1;_0x2ab70e[_0x3943df('0x1662')](_0x3943df('0x1569'),function(_0x181c9d,_0x1028f1){const _0x327bdb=_0x3943df;_0x46faaa?_0x1d7fe6(function(){_0x46faaa=![];}):(!_0x1028f1&&(_0x3b5a8b=_0x3d4a8c['query']['page']),_0x181c9d!==_0x1028f1&&(_0x3d4a8c['query'][_0x327bdb('0x23f5')]=0x1),!_0x181c9d&&(_0x3d4a8c[_0x327bdb('0x135a')][_0x327bdb('0x23f5')]=_0x3b5a8b),_0x3d4a8c[_0x327bdb('0x184')]());});function _0x13ef37(_0x46147c){const _0x353567=_0x3943df;_0x3d4a8c[_0x353567('0x1e10')]=_0x46147c||{'count':0x0,'rows':[]};}function _0x5ecda5(){const _0xf8c158=_0x3943df;_0x3d4a8c[_0xf8c158('0x135a')][_0xf8c158('0x19e')]=(_0x3d4a8c['query'][_0xf8c158('0x23f5')]-0x1)*_0x3d4a8c[_0xf8c158('0x135a')]['limit'],_0x5c9cae[_0xf8c158('0x1516')](_0xf8c158('0xe23'))?_0x3d4a8c[_0xf8c158('0x1808')]=_0x311da0[_0xf8c158('0xfba')][_0xf8c158('0x1335')](_0x3d4a8c[_0xf8c158('0x135a')],_0x13ef37)[_0xf8c158('0x1714')]:(_0x3d4a8c[_0xf8c158('0x135a')]['id']=_0x3d4a8c[_0xf8c158('0x63c')]['id'],_0x3d4a8c[_0xf8c158('0x135a')][_0xf8c158('0xb13')]=_0xf8c158('0x1b13'),_0x3d4a8c['promise']=_0x311da0[_0xf8c158('0x63c')][_0xf8c158('0xa1')](_0x3d4a8c[_0xf8c158('0x135a')],_0x13ef37)[_0xf8c158('0x1714')]);}function _0x1a90de(_0x15c164,_0x132422){const _0xc7e0a=_0x3943df;_0x2cbb9a[_0xc7e0a('0x2fa')]({'controller':_0xc7e0a('0x6c5'),'controllerAs':'vm','templateUrl':_0x51e809,'parent':angular[_0xc7e0a('0x16b1')](_0x34ed7e[_0xc7e0a('0x945')]),'targetEvent':_0x15c164,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x132422,'openchannelAccounts':_0x3d4a8c[_0xc7e0a('0x1e10')][_0xc7e0a('0x25df')],'license':_0x3d4a8c[_0xc7e0a('0x130d')],'setting':_0x3d4a8c[_0xc7e0a('0x1af0')],'crudPermissions':_0x3d4a8c[_0xc7e0a('0xe28')]}});}function _0x286981(_0x83b756){const _0x196803=_0x3943df;_0x311da0[_0x196803('0xfba')][_0x196803('0x17c4')]({'id':_0x83b756['id']})['$promise'][_0x196803('0x2788')](function(){const _0x499550=_0x196803;_0x283545()[_0x499550('0x1a90')](_0x3d4a8c[_0x499550('0x1e10')][_0x499550('0x25df')],{'id':_0x83b756['id']}),_0x3d4a8c[_0x499550('0x1e10')][_0x499550('0x338')]-=0x1,!_0x3d4a8c[_0x499550('0x1e10')][_0x499550('0x25df')][_0x499550('0x2566')]&&_0x3d4a8c[_0x499550('0x184')](),_0x1eb510['success']({'title':_0x283545()[_0x499550('0x114')](_0x499550('0x283'))+_0x499550('0x20db'),'msg':_0x83b756[_0x499550('0x1a8d')]?_0x83b756[_0x499550('0x1a8d')]+_0x499550('0x14d4'):''});})[_0x196803('0x1cb5')](function(_0x32ca24){const _0x251580=_0x196803;if(_0x32ca24['data']&&_0x32ca24[_0x251580('0x11fc')][_0x251580('0x25be')]&&_0x32ca24['data'][_0x251580('0x25be')][_0x251580('0x2566')]){_0x3d4a8c[_0x251580('0x25be')]=_0x32ca24[_0x251580('0x11fc')]['errors']||[{'message':_0x32ca24[_0x251580('0x17df')](),'type':_0x251580('0x1b36')}];for(let _0x5252c2=0x0;_0x5252c2<_0x32ca24[_0x251580('0x11fc')][_0x251580('0x25be')]['length'];_0x5252c2++){_0x1eb510[_0x251580('0x5e8')]({'title':_0x32ca24[_0x251580('0x11fc')][_0x251580('0x25be')][_0x5252c2]['type'],'msg':_0x32ca24[_0x251580('0x11fc')]['errors'][_0x5252c2][_0x251580('0x15e2')]});}}else _0x1eb510[_0x251580('0x5e8')]({'title':_0x32ca24['status']?_0x251580('0x15d1')+_0x32ca24['status']+_0x251580('0x1b0b')+_0x32ca24['statusText']:_0x251580('0x1b36'),'msg':_0x32ca24[_0x251580('0x11fc')]?JSON[_0x251580('0x1be0')](_0x32ca24[_0x251580('0x11fc')][_0x251580('0x15e2')]):_0x32ca24[_0x251580('0x15e2')]||_0x32ca24[_0x251580('0x17df')]()});});}function _0x97ec69(){const _0x1f828f=_0x3943df,_0x28e088=angular[_0x1f828f('0x2669')](_0x3d4a8c['selectedOpenchannelAccounts']);return _0x3d4a8c['selectedOpenchannelAccounts']=[],_0x28e088;}function _0x2b76b5(_0x940461){const _0x2427e3=_0x3943df,_0x4bb3d0=_0x2cbb9a['confirm']()['title'](_0x2427e3('0x235b'))[_0x2427e3('0x93e')](_0x2427e3('0x1670')+_0x3d4a8c['selectedOpenchannelAccounts']['length']+_0x2427e3('0xbd')+_0x2427e3('0x27c7'))['ariaLabel']('delete\x20OpenchannelAccounts')[_0x2427e3('0x24d0')](_0x940461)['ok']('OK')[_0x2427e3('0x1801')]('CANCEL');_0x2cbb9a['show'](_0x4bb3d0)[_0x2427e3('0x2788')](function(){const _0x8ffed0=_0x2427e3;_0x3d4a8c[_0x8ffed0('0x184b')][_0x8ffed0('0x1534')](function(_0x2d5f0d){_0x286981(_0x2d5f0d);}),_0x3d4a8c[_0x8ffed0('0x184b')]=[];});}function _0x389c0a(){_0x3d4a8c['selectedOpenchannelAccounts']=[];}function _0x48d0cb(){const _0x34b497=_0x3943df;_0x3d4a8c['selectedOpenchannelAccounts']=_0x3d4a8c['openchannelAccounts'][_0x34b497('0x25df')];}}const _0x59e629=_0x117283;_0x3fb536[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0x258c'),_0x34e79e('0xb26'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x3fb536(_0x5d7ee5,_0x48dae6,_0x3e4f36,_0x57bce2,_0x202b67,_0x5e3b9f,_0x167310,_0x2c033c,_0x21f67a,_0x3caf0a,_0x2ac315,_0x3db9cf,_0x1752f1,_0x19aa3c){const _0x5ed8bb=_0x34e79e,_0x245dce=this;_0x245dce['currentUser']=_0x2ac315[_0x5ed8bb('0x24cc')](),_0x245dce['errors']=[],_0x245dce[_0x5ed8bb('0x1af0')]=_0x1752f1,_0x245dce['license']=_0x3db9cf,_0x245dce[_0x5ed8bb('0xe28')]=_0x19aa3c,_0x245dce[_0x5ed8bb('0x1193')]={},_0x245dce[_0x5ed8bb('0x18ad')]=_0x245dce[_0x5ed8bb('0x1af0')]&&_0x245dce[_0x5ed8bb('0x1af0')][_0x5ed8bb('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x245dce['title']=_0x5ed8bb('0x104d'),_0x245dce[_0x5ed8bb('0xb26')]=angular[_0x5ed8bb('0x2669')](_0x21f67a),_0x245dce['openchannelQueues']=_0x2c033c,_0x245dce[_0x5ed8bb('0x12bc')]=![];!_0x245dce['openchannelQueue']&&(_0x245dce['openchannelQueue']={'strategy':_0x5ed8bb('0x1acd'),'timeout':0xa},_0x245dce[_0x5ed8bb('0x14e4')]=_0x5ed8bb('0x1152'),_0x245dce[_0x5ed8bb('0x12bc')]=!![]);_0x245dce[_0x5ed8bb('0x6fd')]=_0x8d1e88,_0x245dce[_0x5ed8bb('0xe11')]=_0x164570,_0x245dce[_0x5ed8bb('0x145c')]=_0x2927a1,_0x245dce[_0x5ed8bb('0x2601')]=_0x3d1ca5,_0x245dce[_0x5ed8bb('0xca7')]=_0x30b652;function _0x8d1e88(){const _0x3afaed=_0x5ed8bb;_0x245dce[_0x3afaed('0x25be')]=[],_0x3caf0a[_0x3afaed('0xb26')][_0x3afaed('0xbd0')](_0x245dce['openchannelQueue'])[_0x3afaed('0x1714')]['then'](function(_0x5158a0){const _0x5db57c=_0x3afaed;_0x245dce['openchannelQueues'][_0x5db57c('0xc51')](_0x5158a0[_0x5db57c('0x1cbf')]()),_0x167310[_0x5db57c('0x173b')]({'title':_0x5db57c('0x815'),'msg':_0x245dce[_0x5db57c('0xb26')][_0x5db57c('0x1a8d')]?_0x245dce[_0x5db57c('0xb26')][_0x5db57c('0x1a8d')]+_0x5db57c('0x1e4a'):''}),_0x30b652(_0x5158a0);})[_0x3afaed('0x1cb5')](function(_0x72f1f8){const _0x42b89d=_0x3afaed;if(_0x72f1f8[_0x42b89d('0x11fc')]&&_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')]&&_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')][_0x42b89d('0x2566')]){_0x245dce[_0x42b89d('0x25be')]=_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')]||[{'message':_0x72f1f8[_0x42b89d('0x17df')](),'type':_0x42b89d('0xa87')}];for(let _0x6c6686=0x0;_0x6c6686<_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')][_0x42b89d('0x2566')];_0x6c6686+=0x1){_0x167310[_0x42b89d('0x5e8')]({'title':_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')][_0x6c6686][_0x42b89d('0x1d7')],'msg':_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x25be')][_0x6c6686][_0x42b89d('0x15e2')]});}}else _0x167310[_0x42b89d('0x5e8')]({'title':_0x72f1f8[_0x42b89d('0x1b51')]?_0x42b89d('0x15d1')+_0x72f1f8['status']+'\x20-\x20'+_0x72f1f8[_0x42b89d('0x22ce')]:_0x42b89d('0xa87'),'msg':_0x72f1f8['data']?JSON['stringify'](_0x72f1f8[_0x42b89d('0x11fc')][_0x42b89d('0x15e2')]):_0x72f1f8[_0x42b89d('0x17df')]()});});}function _0x164570(){const _0x297f70=_0x5ed8bb;_0x245dce[_0x297f70('0x25be')]=[],_0x3caf0a[_0x297f70('0xb26')][_0x297f70('0x2740')]({'id':_0x245dce[_0x297f70('0xb26')]['id']},_0x245dce[_0x297f70('0xb26')])[_0x297f70('0x1714')][_0x297f70('0x2788')](function(_0x3c8da9){const _0xdb5392=_0x297f70,_0x38e9e6=_0x283545()[_0xdb5392('0x20e8')](_0x245dce[_0xdb5392('0x258c')],{'id':_0x3c8da9['id']});_0x38e9e6&&_0x283545()[_0xdb5392('0x2503')](_0x38e9e6,_0x283545()['pick'](_0x3c8da9[_0xdb5392('0x1cbf')](),_0x283545()['keys'](_0x38e9e6))),_0x167310[_0xdb5392('0x173b')]({'title':_0xdb5392('0x17e9'),'msg':_0x245dce[_0xdb5392('0xb26')][_0xdb5392('0x1a8d')]?_0x245dce[_0xdb5392('0xb26')][_0xdb5392('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x30b652(_0x3c8da9);})[_0x297f70('0x1cb5')](function(_0x22b15e){const _0x12675e=_0x297f70;if(_0x22b15e[_0x12675e('0x11fc')]&&_0x22b15e['data'][_0x12675e('0x25be')]&&_0x22b15e['data'][_0x12675e('0x25be')]['length']){_0x245dce[_0x12675e('0x25be')]=_0x22b15e[_0x12675e('0x11fc')][_0x12675e('0x25be')]||[{'message':_0x22b15e[_0x12675e('0x17df')](),'type':_0x12675e('0x1a2e')}];for(let _0x58436e=0x0;_0x58436e<_0x22b15e[_0x12675e('0x11fc')][_0x12675e('0x25be')]['length'];_0x58436e++){_0x167310[_0x12675e('0x5e8')]({'title':_0x22b15e[_0x12675e('0x11fc')][_0x12675e('0x25be')][_0x58436e][_0x12675e('0x1d7')],'msg':_0x22b15e[_0x12675e('0x11fc')][_0x12675e('0x25be')][_0x58436e][_0x12675e('0x15e2')]});}}else _0x167310[_0x12675e('0x5e8')]({'title':_0x22b15e[_0x12675e('0x1b51')]?_0x12675e('0x15d1')+_0x22b15e[_0x12675e('0x1b51')]+_0x12675e('0x1b0b')+_0x22b15e[_0x12675e('0x22ce')]:_0x12675e('0x1a2e'),'msg':_0x22b15e['data']?JSON[_0x12675e('0x1be0')](_0x22b15e[_0x12675e('0x11fc')][_0x12675e('0x15e2')]):_0x22b15e['toString']()});});}function _0x2927a1(_0x95d644){const _0xe61636=_0x5ed8bb;_0x245dce[_0xe61636('0x25be')]=[];const _0x5b6a0e=_0x57bce2[_0xe61636('0x112e')]()[_0xe61636('0x14e4')](_0xe61636('0x458'))[_0xe61636('0x1c98')](_0xe61636('0x2f7'))[_0xe61636('0x10bc')]('Delete\x20OpenchannelQueue')['ok'](_0xe61636('0x2786'))[_0xe61636('0x1801')](_0xe61636('0x1481'))[_0xe61636('0x24d0')](_0x95d644);_0x57bce2['show'](_0x5b6a0e)['then'](function(){const _0x369cee=_0xe61636;_0x3caf0a[_0x369cee('0xb26')][_0x369cee('0x17c4')]({'id':_0x245dce[_0x369cee('0xb26')]['id']})[_0x369cee('0x1714')]['then'](function(){const _0x2aa118=_0x369cee;_0x283545()[_0x2aa118('0x1a90')](_0x245dce[_0x2aa118('0x258c')],{'id':_0x245dce['openchannelQueue']['id']}),_0x167310[_0x2aa118('0x173b')]({'title':_0x2aa118('0x6df'),'msg':(_0x245dce['openchannelQueue'][_0x2aa118('0x1a8d')]||_0x2aa118('0xb26'))+_0x2aa118('0x14d4')}),_0x30b652(_0x245dce[_0x2aa118('0xb26')]);})['catch'](function(_0x3c58f0){const _0x4d9a92=_0x369cee;if(_0x3c58f0[_0x4d9a92('0x11fc')]&&_0x3c58f0['data'][_0x4d9a92('0x25be')]&&_0x3c58f0[_0x4d9a92('0x11fc')]['errors'][_0x4d9a92('0x2566')]){_0x245dce[_0x4d9a92('0x25be')]=_0x3c58f0['data']['errors']||[{'message':_0x3c58f0['toString'](),'type':'api.openchannelQueue.delete'}];for(let _0x4dacf4=0x0;_0x4dacf4<_0x3c58f0[_0x4d9a92('0x11fc')][_0x4d9a92('0x25be')][_0x4d9a92('0x2566')];_0x4dacf4++){_0x167310[_0x4d9a92('0x5e8')]({'title':_0x3c58f0['data'][_0x4d9a92('0x25be')][_0x4dacf4][_0x4d9a92('0x1d7')],'msg':_0x3c58f0[_0x4d9a92('0x11fc')]['errors'][_0x4dacf4][_0x4d9a92('0x15e2')]});}}else _0x167310['error']({'title':_0x3c58f0[_0x4d9a92('0x1b51')]?'API:'+_0x3c58f0[_0x4d9a92('0x1b51')]+_0x4d9a92('0x1b0b')+_0x3c58f0['statusText']:_0x4d9a92('0x24e7'),'msg':_0x3c58f0['data']?JSON[_0x4d9a92('0x1be0')](_0x3c58f0[_0x4d9a92('0x11fc')]['message']):_0x3c58f0[_0x4d9a92('0x15e2')]||_0x3c58f0[_0x4d9a92('0x17df')]()});});},function(){});}function _0x3d1ca5(_0x4273ae){return _0x4273ae===null?undefined:new Date(_0x4273ae);}function _0x30b652(_0xba37ee){const _0x144858=_0x5ed8bb;_0x57bce2[_0x144858('0x19d')](_0xba37ee);}}const _0x32dc10=_0x3fb536;_0x4845b4[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),'api',_0x34e79e('0xb26'),_0x34e79e('0x258c'),'realtime',_0x34e79e('0x1a5c'),'Auth',_0x34e79e('0xe28')];function _0x4845b4(_0x569b43,_0x4854a5,_0x31cc3c,_0x200882,_0x44dd9e,_0x5e1e7d,_0xd0847b,_0x8dbebb,_0x2c5d10,_0x270778){const _0x1a2a0f=_0x34e79e,_0x1d31eb=this;_0x1d31eb['currentUser']=_0x2c5d10[_0x1a2a0f('0x24cc')](),_0x1d31eb[_0x1a2a0f('0xb26')]=_0x44dd9e,_0x1d31eb['crudPermissions']=_0x270778,_0x1d31eb[_0x1a2a0f('0x548')]=_0xd0847b,_0x1d31eb[_0x1a2a0f('0x117b')]=[],_0x1d31eb[_0x1a2a0f('0x73d')]=[],_0x1d31eb[_0x1a2a0f('0x283f')]=[],_0x1d31eb[_0x1a2a0f('0x12d9')]=[],_0x1d31eb['startingSelectedItems']=[],_0x1d31eb[_0x1a2a0f('0x2677')]=![],_0x1d31eb['onInit']=_0x22053a,_0x1d31eb[_0x1a2a0f('0x1f8d')]=_0x7296b2,_0x1d31eb['closeDialog']=_0x9a10fa,_0x1d31eb[_0x1a2a0f('0x121')]={'readOnly':!_0x1d31eb[_0x1a2a0f('0xe28')][_0x1a2a0f('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1a2a0f('0x1a8d'),'line1':_0x1a2a0f('0x2831'),'line2':[_0x1a2a0f('0x1a8d'),_0x1a2a0f('0x2838')],'line3':'','labelAll':_0x8dbebb[_0x1a2a0f('0x1b11')](_0x1a2a0f('0x220a')),'labelSelected':_0x8dbebb[_0x1a2a0f('0x1b11')]('OPENCHANNEL.SELECTED_AGENTS'),'transferCallback':function(){const _0x21b965=_0x1a2a0f,_0xbc430c=_0x283545()[_0x21b965('0x12d1')](_0x1d31eb[_0x21b965('0xd0d')],_0x1d31eb[_0x21b965('0x283f')],'id');_0x1d31eb[_0x21b965('0x2677')]=_0x283545()[_0x21b965('0x213d')](_0xbc430c)?![]:!![];}};function _0x22053a(){const _0xd7649a=_0x1a2a0f;return _0x2c5d10[_0xd7649a('0x1516')](_0xd7649a('0xe23'))?_0x3e16b0()[_0xd7649a('0x1cb5')](function(_0xaafef3){const _0x1d05ac=_0xd7649a;_0x31cc3c[_0x1d05ac('0x5e8')]({'title':_0xaafef3[_0x1d05ac('0x1b51')]?_0x1d05ac('0x15d1')+_0xaafef3[_0x1d05ac('0x1b51')]+_0x1d05ac('0x1b0b')+_0xaafef3['statusText']:'SYSTEM:GET_AGENTS','msg':_0xaafef3['status']?JSON[_0x1d05ac('0x1be0')](_0xaafef3['data']):_0xaafef3[_0x1d05ac('0x17df')]()});}):_0x5e6e9a()[_0xd7649a('0x2788')](function(_0x3ff3f4){const _0x417ff0=_0xd7649a;return _0x1d31eb[_0x417ff0('0xb13')]=_0x3ff3f4,_0x3e16b0();})[_0xd7649a('0x1cb5')](function(_0x45aa28){const _0x5743dd=_0xd7649a;_0x31cc3c['error']({'title':_0x45aa28['status']?'API:'+_0x45aa28['status']+_0x5743dd('0x1b0b')+_0x45aa28[_0x5743dd('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x45aa28[_0x5743dd('0x1b51')]?JSON[_0x5743dd('0x1be0')](_0x45aa28[_0x5743dd('0x11fc')]):_0x45aa28[_0x5743dd('0x17df')]()});});}function _0x5e6e9a(){return _0x4854a5(function(_0x2ace46,_0x260c0f){const _0x59c652=a0_0x14e7;_0x200882[_0x59c652('0xec9')]['get']({'userProfileId':_0x1d31eb[_0x59c652('0x9cb')][_0x59c652('0x237f')],'name':'Agents'})[_0x59c652('0x1714')][_0x59c652('0x2788')](function(_0x4088e1){const _0x4faa48=_0x59c652,_0x49f5f9=_0x4088e1&&_0x4088e1[_0x4faa48('0x25df')]?_0x4088e1[_0x4faa48('0x25df')][0x0]:null;_0x2ace46(_0x49f5f9);})['catch'](function(_0x1ee477){_0x260c0f(_0x1ee477);});});}function _0x3e16b0(){return _0x4854a5(function(_0x571f43,_0x5f50bc){const _0x4c6869=a0_0x14e7;return _0x4cce00()[_0x4c6869('0x2788')](function(_0x489d04){const _0x495986=_0x4c6869;return _0x1d31eb['items']=_0x489d04['rows']?_0x489d04[_0x495986('0x25df')]:[],_0x2c5d10[_0x495986('0x1516')](_0x495986('0xe23'))?_0x489d04:_0x1d31eb['section']?_0x1d31eb[_0x495986('0xb13')][_0x495986('0x1c0a')]?_0x489d04:_0x114cda():null;})['then'](function(_0x313870){const _0xac3159=_0x4c6869,_0x7c429d=_0x313870&&_0x313870[_0xac3159('0x25df')]?_0x313870['rows']:[];return _0x1d31eb[_0xac3159('0x73d')]=_0x283545()[_0xac3159('0x155d')](_0x7c429d,function(_0x461f78){const _0x1ee048=_0xac3159;return _0x283545()[_0x1ee048('0x20e8')](_0x1d31eb[_0x1ee048('0x117b')],{'id':_0x2c5d10['hasRole'](_0x1ee048('0xe23'))||_0x1d31eb[_0x1ee048('0xb13')][_0x1ee048('0x1c0a')]?_0x461f78['id']:_0x461f78[_0x1ee048('0x2707')]});}),_0x1d31eb[_0xac3159('0x12d9')]=angular[_0xac3159('0x2669')](_0x1d31eb[_0xac3159('0x73d')]),_0x1d31eb[_0xac3159('0x117b')][_0xac3159('0x1534')](function(_0xb55b91){const _0x47ba29=_0xac3159,_0x59a8cb=_0x283545()[_0x47ba29('0x20e8')](_0x1d31eb[_0x47ba29('0x73d')],{'id':_0xb55b91['id']});_0x2c5d10['hasRole']('admin')?_0xb55b91[_0x47ba29('0x68d')]=!![]:_0xb55b91[_0x47ba29('0x68d')]=typeof _0x59a8cb!==_0x47ba29('0xedb')?!![]:![];}),_0x5ac34c();})[_0x4c6869('0x2788')](function(_0x466eb0){const _0xde638f=_0x4c6869,_0x2601cc=_0x466eb0&&_0x466eb0['rows']?_0x466eb0['rows']:[];_0x1d31eb['selectedItems']=_0x283545()[_0xde638f('0x155d')](_0x2601cc,function(_0xa02c33){const _0x40b60c=_0xde638f,_0x1d6d2b=_0x283545()[_0x40b60c('0x20e8')](_0x1d31eb['items'],{'id':_0xa02c33['id']});return _0x1d6d2b[_0x40b60c('0x1ab')]=_0xa02c33[_0x40b60c('0x1d21')]?'penalty\x20'+_0xa02c33[_0x40b60c('0x1d21')][_0x40b60c('0x1ab')]:'',_0x1d6d2b[_0x40b60c('0x2838')]=typeof _0xa02c33[_0x40b60c('0x2838')]!==_0x40b60c('0xedb')?'<'+_0xa02c33['internal']+'>':'',_0x1d6d2b;}),_0x1d31eb[_0xde638f('0xd0d')]=angular[_0xde638f('0x2669')](_0x1d31eb[_0xde638f('0x283f')]),_0x1d31eb[_0xde638f('0x121')]['selectedItems']=_0x1d31eb[_0xde638f('0x283f')],_0x1d31eb[_0xde638f('0x121')][_0xde638f('0x117b')]=_0x283545()[_0xde638f('0x432')](_0x1d31eb[_0xde638f('0x73d')],_0x1d31eb[_0xde638f('0x121')][_0xde638f('0x283f')],'id'),_0x571f43();})[_0x4c6869('0x1cb5')](function(_0x22f7e2){_0x5f50bc(_0x22f7e2);});});}function _0x114cda(){return _0x4854a5(function(_0x19695b,_0x57cd8c){const _0x23f37e=a0_0x14e7;return _0x200882[_0x23f37e('0x1050')][_0x23f37e('0x1335')]({'sectionId':_0x1d31eb[_0x23f37e('0xb13')]['id'],'nolimit':!![]})[_0x23f37e('0x1714')][_0x23f37e('0x2788')](function(_0x1f3fbe){_0x19695b(_0x1f3fbe);})['catch'](function(_0x4d48da){_0x57cd8c(_0x4d48da);});});}function _0x5ac34c(){return _0x4854a5(function(_0x4c5520,_0x481837){const _0x413ed4=a0_0x14e7;return _0x200882[_0x413ed4('0xb26')][_0x413ed4('0x19db')]({'id':_0x1d31eb[_0x413ed4('0xb26')]['id'],'fields':_0x413ed4('0x1d32'),'nolimit':!![],'role':_0x413ed4('0x188b')})[_0x413ed4('0x1714')]['then'](function(_0x180a48){_0x4c5520(_0x180a48);})[_0x413ed4('0x1cb5')](function(_0x5d1866){_0x481837(_0x5d1866);});});}function _0x4cce00(){return _0x4854a5(function(_0xa6e63d,_0xbacab2){const _0x43f6c1=a0_0x14e7;return _0x200882['user']['get']({'fields':_0x43f6c1('0x1d32'),'nolimit':!![],'role':_0x43f6c1('0x188b')})[_0x43f6c1('0x1714')][_0x43f6c1('0x2788')](function(_0x52ee19){_0xa6e63d(_0x52ee19);})[_0x43f6c1('0x1cb5')](function(_0x483a35){_0xbacab2(_0x483a35);});});}function _0x1b1d01(_0x3e4e1e){return _0x4854a5(function(_0x31d3cc,_0x5551cd){const _0x1811a3=a0_0x14e7;_0x283545()['isEmpty'](_0x3e4e1e)?_0x31d3cc():_0x200882[_0x1811a3('0xb26')]['addAgents']({'id':_0x1d31eb[_0x1811a3('0xb26')]['id'],'ids':_0x283545()['map'](_0x3e4e1e,'id')})[_0x1811a3('0x1714')][_0x1811a3('0x2788')](function(){_0x31d3cc();})['catch'](function(_0x3efaab){_0x5551cd(_0x3efaab);});});}function _0x428f59(_0x3ef8c2){return _0x4854a5(function(_0x5e8f10,_0x7f1a68){const _0x46d0cb=a0_0x14e7;_0x283545()[_0x46d0cb('0x213d')](_0x3ef8c2)?_0x5e8f10():_0x200882[_0x46d0cb('0xb26')][_0x46d0cb('0x1d72')]({'id':_0x1d31eb['openchannelQueue']['id'],'ids':_0x283545()[_0x46d0cb('0x155d')](_0x3ef8c2,'id')})[_0x46d0cb('0x1714')][_0x46d0cb('0x2788')](function(){_0x5e8f10();})['catch'](function(_0x29b5f9){_0x7f1a68(_0x29b5f9);});});}function _0x7296b2(){const _0x4d30ab=_0x1a2a0f,_0x4c9e39=_0x283545()[_0x4d30ab('0x432')](_0x1d31eb['startingSelectedItems'],_0x1d31eb['selectedItems'],'id'),_0x362f04=_0x283545()['differenceBy'](_0x1d31eb[_0x4d30ab('0x283f')],_0x1d31eb['startingSelectedItems'],'id');return _0x428f59(_0x4c9e39)['then'](function(){return _0x1b1d01(_0x362f04);})[_0x4d30ab('0x2788')](function(){const _0x3ede90=_0x4d30ab;_0x1d31eb[_0x3ede90('0x2677')]=![],_0x1d31eb[_0x3ede90('0x12d9')]=angular['copy'](_0x1d31eb['allowedItems']),_0x1d31eb['startingSelectedItems']=angular[_0x3ede90('0x2669')](_0x1d31eb['selectedItems']),_0x31cc3c[_0x3ede90('0x173b')]({'title':_0x3ede90('0x10c8'),'msg':_0x3ede90('0x1984')});})['catch'](function(_0xd82142){const _0x1c7122=_0x4d30ab;_0x31cc3c[_0x1c7122('0x5e8')]({'title':_0xd82142[_0x1c7122('0x1b51')]?_0x1c7122('0x15d1')+_0xd82142['status']+_0x1c7122('0x1b0b')+_0xd82142['statusText']:_0x1c7122('0x13cd'),'msg':_0xd82142[_0x1c7122('0x1b51')]?JSON['stringify'](_0xd82142[_0x1c7122('0x11fc')]):_0xd82142[_0x1c7122('0x17df')]()});});}function _0x9a10fa(){_0x569b43['hide']();}}const _0x35a536=_0x4845b4;_0x50f2ef['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0xb26'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x50f2ef(_0xa90218,_0x1c819d,_0x42f784,_0x5793f4,_0x19caef,_0x575ef7,_0x7afb51,_0x46bdea){const _0x2ef352=_0x34e79e,_0x421bb4=this;_0x421bb4[_0x2ef352('0x9cb')]=_0x7afb51[_0x2ef352('0x24cc')](),_0x421bb4[_0x2ef352('0xb26')]=_0x19caef,_0x421bb4[_0x2ef352('0xe28')]=_0x46bdea,_0x421bb4[_0x2ef352('0x117b')]=[],_0x421bb4[_0x2ef352('0x73d')]=[],_0x421bb4[_0x2ef352('0x283f')]=[],_0x421bb4[_0x2ef352('0x12d9')]=[],_0x421bb4[_0x2ef352('0xd0d')]=[],_0x421bb4['pendingChanges']=![],_0x421bb4[_0x2ef352('0x121')]={'readOnly':!_0x421bb4[_0x2ef352('0xe28')][_0x2ef352('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x2ef352('0x1a8d'),'line2':'','line3':'','labelAll':_0x575ef7[_0x2ef352('0x1b11')](_0x2ef352('0x90c')),'labelSelected':_0x575ef7[_0x2ef352('0x1b11')](_0x2ef352('0x12eb')),'transferCallback':function(){const _0xbab911=_0x2ef352,_0x16e7ec=_0x283545()[_0xbab911('0x12d1')](_0x421bb4[_0xbab911('0xd0d')],_0x421bb4[_0xbab911('0x283f')],'id');_0x421bb4[_0xbab911('0x2677')]=_0x283545()[_0xbab911('0x213d')](_0x16e7ec)?![]:!![];}},_0x421bb4['onInit']=_0x46362b,_0x421bb4['saveTeams']=_0x8dd2e9,_0x421bb4['closeDialog']=_0x1080f3;function _0x46362b(){const _0x4434e8=_0x2ef352;return _0x7afb51[_0x4434e8('0x1516')]('admin')?_0x18800e()[_0x4434e8('0x1cb5')](function(_0x36edc5){const _0x15ad68=_0x4434e8;_0x42f784[_0x15ad68('0x5e8')]({'title':_0x36edc5[_0x15ad68('0x1b51')]?'API:'+_0x36edc5[_0x15ad68('0x1b51')]+_0x15ad68('0x1b0b')+_0x36edc5[_0x15ad68('0x22ce')]:_0x15ad68('0x556'),'msg':_0x36edc5[_0x15ad68('0x1b51')]?JSON[_0x15ad68('0x1be0')](_0x36edc5[_0x15ad68('0x11fc')]):_0x36edc5[_0x15ad68('0x17df')]()});}):_0x251a07()[_0x4434e8('0x2788')](function(_0x5b04f1){const _0x233102=_0x4434e8;return _0x421bb4[_0x233102('0xb13')]=_0x5b04f1,_0x18800e();})['catch'](function(_0x54b319){const _0x2a978e=_0x4434e8;_0x42f784[_0x2a978e('0x5e8')]({'title':_0x54b319['status']?_0x2a978e('0x15d1')+_0x54b319[_0x2a978e('0x1b51')]+_0x2a978e('0x1b0b')+_0x54b319['statusText']:_0x2a978e('0x556'),'msg':_0x54b319['status']?JSON[_0x2a978e('0x1be0')](_0x54b319['data']):_0x54b319[_0x2a978e('0x17df')]()});});}function _0x251a07(){return _0x1c819d(function(_0x152755,_0x23253e){const _0x2e329b=a0_0x14e7;_0x5793f4[_0x2e329b('0xec9')][_0x2e329b('0x1335')]({'userProfileId':_0x421bb4['currentUser'][_0x2e329b('0x237f')],'name':_0x2e329b('0x23e9')})[_0x2e329b('0x1714')]['then'](function(_0x5ac9a7){const _0x43c50e=_0x2e329b,_0x202301=_0x5ac9a7&&_0x5ac9a7[_0x43c50e('0x25df')]?_0x5ac9a7['rows'][0x0]:null;_0x152755(_0x202301);})['catch'](function(_0x2c147e){_0x23253e(_0x2c147e);});});}function _0x18800e(){return _0x1c819d(function(_0x3601b7,_0x4ca359){const _0x141b30=a0_0x14e7;return _0x3a850e()[_0x141b30('0x2788')](function(_0x2d2a43){const _0xb33659=_0x141b30;return _0x421bb4[_0xb33659('0x117b')]=_0x2d2a43[_0xb33659('0x25df')]?_0x2d2a43[_0xb33659('0x25df')]:[],_0x7afb51[_0xb33659('0x1516')](_0xb33659('0xe23'))?_0x2d2a43:_0x421bb4[_0xb33659('0xb13')]?_0x421bb4[_0xb33659('0xb13')][_0xb33659('0x1c0a')]?_0x2d2a43:_0x3f1d5f():null;})['then'](function(_0x3c7ae1){const _0x2d3319=_0x141b30,_0x25f40a=_0x3c7ae1&&_0x3c7ae1[_0x2d3319('0x25df')]?_0x3c7ae1[_0x2d3319('0x25df')]:[];return _0x421bb4[_0x2d3319('0x73d')]=_0x283545()[_0x2d3319('0x155d')](_0x25f40a,function(_0x549cd6){const _0x56815e=_0x2d3319;return _0x283545()[_0x56815e('0x20e8')](_0x421bb4['items'],{'id':_0x7afb51['hasRole']('admin')||_0x421bb4['section'][_0x56815e('0x1c0a')]?_0x549cd6['id']:_0x549cd6[_0x56815e('0x2707')]});}),_0x421bb4['items']['forEach'](function(_0x2125b1){const _0x2b55aa=_0x2d3319,_0x28c40c=_0x283545()[_0x2b55aa('0x20e8')](_0x421bb4['allowedItems'],{'id':_0x2125b1['id']});_0x7afb51[_0x2b55aa('0x1516')]('admin')?_0x2125b1[_0x2b55aa('0x68d')]=!![]:_0x2125b1[_0x2b55aa('0x68d')]=typeof _0x28c40c!==_0x2b55aa('0xedb')?!![]:![];}),_0x4bb71b();})[_0x141b30('0x2788')](function(_0x281f0a){const _0x19a899=_0x141b30,_0xda8222=_0x281f0a&&_0x281f0a[_0x19a899('0x25df')]?_0x281f0a[_0x19a899('0x25df')]:[];_0x421bb4[_0x19a899('0x283f')]=_0x283545()[_0x19a899('0x155d')](_0xda8222,function(_0x15be5b){const _0x35e4e4=_0x19a899;return _0x283545()[_0x35e4e4('0x20e8')](_0x421bb4[_0x35e4e4('0x117b')],{'id':_0x15be5b['id']});}),_0x421bb4['startingSelectedItems']=angular[_0x19a899('0x2669')](_0x421bb4[_0x19a899('0x283f')]),_0x421bb4['dualMultiselectOptions'][_0x19a899('0x283f')]=_0x421bb4[_0x19a899('0x283f')],_0x421bb4[_0x19a899('0x121')][_0x19a899('0x117b')]=_0x283545()[_0x19a899('0x432')](_0x421bb4[_0x19a899('0x73d')],_0x421bb4[_0x19a899('0x121')][_0x19a899('0x283f')],'id'),_0x3601b7();})[_0x141b30('0x1cb5')](function(_0x474f21){_0x4ca359(_0x474f21);});});}function _0x3f1d5f(){return _0x1c819d(function(_0xccd299,_0x186bdc){const _0x57f877=a0_0x14e7;return _0x5793f4[_0x57f877('0x1050')][_0x57f877('0x1335')]({'sectionId':_0x421bb4[_0x57f877('0xb13')]['id'],'nolimit':!![]})[_0x57f877('0x1714')]['then'](function(_0xae4cac){_0xccd299(_0xae4cac);})['catch'](function(_0x587332){_0x186bdc(_0x587332);});});}function _0x4bb71b(){return _0x1c819d(function(_0x3ec798,_0xb1158b){const _0x35dbe7=a0_0x14e7;return _0x5793f4[_0x35dbe7('0xb26')][_0x35dbe7('0x1435')]({'id':_0x421bb4['openchannelQueue']['id'],'fields':_0x35dbe7('0x1338'),'nolimit':!![]})[_0x35dbe7('0x1714')][_0x35dbe7('0x2788')](function(_0x424381){_0x3ec798(_0x424381);})[_0x35dbe7('0x1cb5')](function(_0x5a79cb){_0xb1158b(_0x5a79cb);});});}function _0x3a850e(){return _0x1c819d(function(_0x220b9e,_0x1160fe){const _0x2fcdaa=a0_0x14e7;return _0x5793f4['team'][_0x2fcdaa('0x1335')]({'fields':_0x2fcdaa('0x1338'),'nolimit':!![]})[_0x2fcdaa('0x1714')][_0x2fcdaa('0x2788')](function(_0x4504df){_0x220b9e(_0x4504df);})[_0x2fcdaa('0x1cb5')](function(_0x3fe5da){_0x1160fe(_0x3fe5da);});});}function _0x44b5ff(_0x43dd4b){return _0x1c819d(function(_0x551b50,_0x317067){const _0x15d4a=a0_0x14e7;_0x283545()['isEmpty'](_0x43dd4b)?_0x551b50():_0x5793f4['openchannelQueue'][_0x15d4a('0x3bd')]({'id':_0x421bb4[_0x15d4a('0xb26')]['id'],'ids':_0x283545()[_0x15d4a('0x155d')](_0x43dd4b,'id')})[_0x15d4a('0x1714')][_0x15d4a('0x2788')](function(){_0x551b50();})[_0x15d4a('0x1cb5')](function(_0x1cc1cc){_0x317067(_0x1cc1cc);});});}function _0x2eceae(_0x1646f6){return _0x1c819d(function(_0x2ab210,_0x48ae0f){const _0x7e10e2=a0_0x14e7;_0x283545()['isEmpty'](_0x1646f6)?_0x2ab210():_0x5793f4[_0x7e10e2('0xb26')][_0x7e10e2('0xf4c')]({'id':_0x421bb4[_0x7e10e2('0xb26')]['id'],'ids':_0x283545()[_0x7e10e2('0x155d')](_0x1646f6,'id')})[_0x7e10e2('0x1714')][_0x7e10e2('0x2788')](function(){_0x2ab210();})['catch'](function(_0x45de63){_0x48ae0f(_0x45de63);});});}function _0x8dd2e9(){const _0x36156b=_0x2ef352,_0x2df308=_0x283545()[_0x36156b('0x432')](_0x421bb4[_0x36156b('0xd0d')],_0x421bb4[_0x36156b('0x283f')],'id'),_0xb8b28d=_0x283545()['differenceBy'](_0x421bb4[_0x36156b('0x283f')],_0x421bb4['startingSelectedItems'],'id');return _0x2eceae(_0x2df308)[_0x36156b('0x2788')](function(){return _0x44b5ff(_0xb8b28d);})[_0x36156b('0x2788')](function(){const _0x26c8fc=_0x36156b;_0x421bb4[_0x26c8fc('0x2677')]=![],_0x421bb4['startingAllowedItems']=angular['copy'](_0x421bb4[_0x26c8fc('0x73d')]),_0x421bb4['startingSelectedItems']=angular[_0x26c8fc('0x2669')](_0x421bb4[_0x26c8fc('0x283f')]),_0x42f784[_0x26c8fc('0x173b')]({'title':_0x26c8fc('0x10c8'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x36156b('0x1cb5')](function(_0x284086){const _0x3b71af=_0x36156b;_0x42f784[_0x3b71af('0x5e8')]({'title':_0x284086[_0x3b71af('0x1b51')]?_0x3b71af('0x15d1')+_0x284086[_0x3b71af('0x1b51')]+_0x3b71af('0x1b0b')+_0x284086['statusText']:_0x3b71af('0x13cd'),'msg':_0x284086['status']?JSON['stringify'](_0x284086[_0x3b71af('0x11fc')]):_0x284086[_0x3b71af('0x17df')]()});});}function _0x1080f3(){_0xa90218['hide']();}}const _0x138a09=_0x50f2ef,_0x25657a=_0x18dd13['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html';_0x5238d6['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'api','toasty',_0x34e79e('0x1b04'),_0x34e79e('0xb26'),_0x34e79e('0xec9')];function _0x5238d6(_0x2cb859,_0x3562fe,_0x5f9177,_0x10d170,_0x12e041,_0x4c4b0a,_0x246aa8,_0x5bf7c1,_0x4a5aff,_0x242ffc,_0x47c426,_0x1c37e8){const _0x487d3c=_0x34e79e,_0x4f2051=this;_0x4f2051['currentUser']=_0x242ffc[_0x487d3c('0x24cc')](),_0x4f2051[_0x487d3c('0x130d')]=_0x4c4b0a,_0x4f2051[_0x487d3c('0x1af0')]=_0x246aa8,_0x4f2051[_0x487d3c('0x18ad')]=_0x4f2051['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f2051[_0x487d3c('0xe9')]=_0x3562fe[_0x487d3c('0x170c')]()+_0x487d3c('0x726')+_0x3562fe[_0x487d3c('0x1c6a')](),_0x4f2051['openchannelQueue']=_0x47c426||_0x2cb859[_0x487d3c('0x4b9')]['openchannelQueue']||{},_0x4f2051['userProfileSection']=_0x1c37e8&&_0x1c37e8['count']==0x1?_0x1c37e8[_0x487d3c('0x25df')][0x0]:null,_0x4f2051['crudPermissions']=_0x242ffc[_0x487d3c('0x157e')](_0x4f2051[_0x487d3c('0xec9')]?_0x4f2051[_0x487d3c('0xec9')][_0x487d3c('0xe28')]:null),_0x4f2051[_0x487d3c('0x1193')]={},_0x4f2051[_0x487d3c('0xcb3')]=_0x2cb859[_0x487d3c('0x4b9')]['tab']||0x0,_0x4f2051['teamadddialog']=_0x465830,_0x4f2051[_0x487d3c('0x1113')]=_0xd6321a,_0x4f2051[_0x487d3c('0x204f')]=_0x4a5aff['info'],_0x4f2051[_0x487d3c('0x2727')]=_0x4a6c40,_0x4f2051[_0x487d3c('0xe11')]=_0x20cfb9;function _0x465830(_0x5d834a,_0x1175ac){const _0x38a80e=_0x487d3c;_0x5f9177[_0x38a80e('0x2fa')]({'controller':_0x38a80e('0xdde'),'controllerAs':'vm','templateUrl':_0x25657a,'parent':angular[_0x38a80e('0x16b1')](_0x10d170[_0x38a80e('0x945')]),'targetEvent':_0x1175ac,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x5d834a,'openchannelQueues':_0x4f2051[_0x38a80e('0x258c')]?_0x4f2051[_0x38a80e('0x258c')]['rows']:[],'crudPermissions':_0x4f2051[_0x38a80e('0xe28')]}});}function _0xd6321a(_0x135c48,_0x43222f){const _0x4dd742=_0x487d3c;_0x5f9177[_0x4dd742('0x2fa')]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0x4dfbe8,'parent':angular[_0x4dd742('0x16b1')](_0x10d170[_0x4dd742('0x945')]),'targetEvent':_0x43222f,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x135c48,'openchannelQueues':_0x4f2051[_0x4dd742('0x258c')]?_0x4f2051['openchannelQueues'][_0x4dd742('0x25df')]:[],'crudPermissions':_0x4f2051['crudPermissions'],'realtime':![]}});}function _0x4a6c40(){const _0x40ec0b=_0x487d3c;_0x2cb859['go'](_0x40ec0b('0x1ac'),{},{'reload':_0x40ec0b('0x1ac')});}function _0x20cfb9(){const _0x2f288e=_0x487d3c;_0x5bf7c1[_0x2f288e('0xb26')]['update']({'id':_0x4f2051[_0x2f288e('0xb26')]['id']},_0x4f2051[_0x2f288e('0xb26')])['$promise']['then'](function(){const _0x288d98=_0x2f288e;_0x4a5aff[_0x288d98('0x173b')]({'title':'OpenchannelQueue\x20updated!','msg':_0x4f2051[_0x288d98('0xb26')][_0x288d98('0x1a8d')]?_0x4f2051['openchannelQueue'][_0x288d98('0x1a8d')]+_0x288d98('0x6f8'):''});})[_0x2f288e('0x1cb5')](function(_0x19d766){const _0x3ca27c=_0x2f288e;_0x4a5aff['error']({'title':_0x19d766[_0x3ca27c('0x1b51')]?_0x3ca27c('0x15d1')+_0x19d766[_0x3ca27c('0x1b51')]+_0x3ca27c('0x1b0b')+_0x19d766['statusText']:_0x3ca27c('0x1a48'),'msg':_0x19d766[_0x3ca27c('0x11fc')]?JSON[_0x3ca27c('0x1be0')](_0x19d766[_0x3ca27c('0x11fc')]):_0x19d766[_0x3ca27c('0x17df')]()});});}}const _0x3045fd=_0x5238d6;_0x4df7db['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x258c'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x4df7db(_0x375e6f,_0x628f78,_0x4002b1,_0x41b742,_0x10eade,_0x38a5a4,_0x1ca95b,_0x33c472,_0x284b49,_0x4b4ca9,_0x25bc73,_0x73960f,_0x459c9e,_0x588897,_0x560b34,_0x1b6eb1,_0x3781ae){const _0x1c5a8a=_0x34e79e,_0x268cd7=this;_0x268cd7[_0x1c5a8a('0x130d')]=_0x1b6eb1,_0x268cd7[_0x1c5a8a('0x1af0')]=_0x3781ae,_0x268cd7[_0x1c5a8a('0x9cb')]=_0x560b34[_0x1c5a8a('0x24cc')](),_0x268cd7[_0x1c5a8a('0x258c')]=_0x284b49||{'count':0x0,'rows':[]},_0x268cd7[_0x1c5a8a('0x63c')]=_0x4b4ca9,_0x268cd7[_0x1c5a8a('0xec9')]=_0x25bc73&&_0x25bc73[_0x1c5a8a('0x338')]==0x1?_0x25bc73['rows'][0x0]:null,_0x268cd7['crudPermissions']=_0x560b34[_0x1c5a8a('0x157e')](_0x268cd7[_0x1c5a8a('0xec9')]?_0x268cd7[_0x1c5a8a('0xec9')][_0x1c5a8a('0xe28')]:null),_0x268cd7[_0x1c5a8a('0x26a9')]=_0x1c5a8a('0x258c'),_0x268cd7[_0x1c5a8a('0x2278')]='',_0x268cd7[_0x1c5a8a('0x25e2')]=null,_0x268cd7['selectedOpenchannelQueues']=[],_0x268cd7['query']={'fields':_0x1c5a8a('0x1a03'),'sort':_0x1c5a8a('0x1cee'),'channel':_0x1c5a8a('0x18aa'),'limit':0xa,'page':0x1},_0x268cd7[_0x1c5a8a('0x7b8')]=_0x283545()['keyBy']([{'option':_0x1c5a8a('0x152c'),'value':_0x1c5a8a('0x11e4')},{'option':_0x1c5a8a('0x37a'),'value':_0x1c5a8a('0x228e')}],function(_0x3fe3e6){return _0x283545()['replace'](_0x3fe3e6['value'],new RegExp('\x27','g'),'');}),_0x268cd7[_0x1c5a8a('0x1f7e')]=_0x263364,_0x268cd7['teamadddialog']=_0x3994f7,_0x268cd7['agentadddialog']=_0x156895,_0x268cd7[_0x1c5a8a('0x1e5')]=_0x1dfc12,_0x268cd7[_0x1c5a8a('0x8d1')]=_0x2f351d,_0x268cd7[_0x1c5a8a('0x173b')]=_0x3f7b28,_0x268cd7[_0x1c5a8a('0x240a')]=_0x172642,_0x268cd7[_0x1c5a8a('0x1a81')]=_0x8ce643,_0x268cd7[_0x1c5a8a('0x145c')]=_0x588cef,_0x268cd7[_0x1c5a8a('0xf16')]=_0x130fb0,_0x268cd7[_0x1c5a8a('0x235f')]=_0x4f80f6,_0x268cd7[_0x1c5a8a('0x1581')]=_0x146ad3,_0x268cd7[_0x1c5a8a('0x476')]=_0x8c52f8;function _0x263364(_0x240110){const _0x4f5a23=_0x1c5a8a;_0x4002b1['go'](_0x4f5a23('0xe4f'),{'id':_0x240110['id'],'openchannelQueue':_0x240110,'crudPermissions':_0x268cd7['crudPermissions']});}function _0x3994f7(_0x353538,_0x30aeac){const _0x572fe2=_0x1c5a8a;_0x10eade[_0x572fe2('0x2fa')]({'controller':_0x572fe2('0xdde'),'controllerAs':'vm','templateUrl':_0x25657a,'parent':angular[_0x572fe2('0x16b1')](_0x38a5a4['body']),'targetEvent':_0x30aeac,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x353538,'openchannelQueues':_0x268cd7['openchannelQueues']?_0x268cd7[_0x572fe2('0x258c')]['rows']:[],'crudPermissions':_0x268cd7[_0x572fe2('0xe28')]}});}function _0x156895(_0x13d93f,_0x42c515){const _0x14143b=_0x1c5a8a;_0x10eade[_0x14143b('0x2fa')]({'controller':_0x14143b('0xdf6'),'controllerAs':'vm','templateUrl':_0x4dfbe8,'parent':angular['element'](_0x38a5a4[_0x14143b('0x945')]),'targetEvent':_0x42c515,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x13d93f,'openchannelQueues':_0x268cd7[_0x14143b('0x258c')]?_0x268cd7['openchannelQueues'][_0x14143b('0x25df')]:[],'crudPermissions':_0x268cd7['crudPermissions'],'realtime':![]}});}function _0x1dfc12(_0x50bab2,_0x59f704){const _0x954cb7=_0x1c5a8a,_0x22cd2e=_0x10eade[_0x954cb7('0x112e')]()[_0x954cb7('0x14e4')](_0x954cb7('0x2114')+_0x283545()[_0x954cb7('0x114')](_0x954cb7('0xb26'))+'?')[_0x954cb7('0x93e')](_0x954cb7('0x1670')+(_0x50bab2[_0x954cb7('0x1a8d')]||_0x954cb7('0xb26'))+'
'+_0x954cb7('0x27c7'))[_0x954cb7('0x10bc')](_0x954cb7('0x1173'))[_0x954cb7('0x24d0')](_0x59f704)['ok']('OK')[_0x954cb7('0x1801')](_0x954cb7('0x1d8d'));_0x10eade[_0x954cb7('0x2fa')](_0x22cd2e)['then'](function(){_0x588cef(_0x50bab2);},function(){const _0x590f6f=_0x954cb7;console['log'](_0x590f6f('0x1d8d'));});}function _0x2f351d(){const _0x50f2d2=_0x1c5a8a;if(_0x560b34[_0x50f2d2('0x1516')](_0x50f2d2('0xe23')))_0x4002b1['go'](_0x50f2d2('0x7d'),{});else return _0x73960f[_0x50f2d2('0xec9')][_0x50f2d2('0x1335')]({'userProfileId':_0x560b34[_0x50f2d2('0x24cc')]()[_0x50f2d2('0x237f')],'sectionId':0x32a})[_0x50f2d2('0x1714')][_0x50f2d2('0x2788')](function(_0xcb52ab){const _0xbc7390=_0x50f2d2,_0x3f307b=_0xcb52ab&&_0xcb52ab[_0xbc7390('0x25df')]?_0xcb52ab[_0xbc7390('0x25df')][0x0]:null;_0x3f307b&&_0x3f307b[_0xbc7390('0x14f4')]?_0x4002b1['go'](_0xbc7390('0x7d'),{}):_0x588897['info']({'title':_0x33c472['instant'](_0xbc7390('0x5be')),'msg':_0x33c472[_0xbc7390('0x1b11')](_0xbc7390('0x1abc'))});})[_0x50f2d2('0x1cb5')](function(_0x4f2af6){const _0x3bafea=_0x50f2d2;_0x588897['error']({'title':_0x4f2af6['status']?_0x3bafea('0x15d1')+_0x4f2af6['status']+'\x20-\x20'+_0x4f2af6['statusText']:_0x3bafea('0x2292'),'msg':_0x4f2af6[_0x3bafea('0x1b51')]?JSON[_0x3bafea('0x1be0')](_0x4f2af6[_0x3bafea('0x11fc')]):_0x4f2af6[_0x3bafea('0x17df')]()});});}let _0x509107=!![],_0x299b14=0x1;_0x375e6f['$watch']('vm.query.filter',function(_0x2e04cf,_0x43cfc5){const _0x10dd0e=_0x1c5a8a;_0x509107?_0x1ca95b(function(){_0x509107=![];}):(!_0x43cfc5&&(_0x299b14=_0x268cd7[_0x10dd0e('0x135a')][_0x10dd0e('0x23f5')]),_0x2e04cf!==_0x43cfc5&&(_0x268cd7[_0x10dd0e('0x135a')][_0x10dd0e('0x23f5')]=0x1),!_0x2e04cf&&(_0x268cd7[_0x10dd0e('0x135a')]['page']=_0x299b14),_0x268cd7[_0x10dd0e('0x240a')]());});function _0x3f7b28(_0x4ab7af){const _0x45e6ae=_0x1c5a8a;_0x268cd7[_0x45e6ae('0x258c')]=_0x4ab7af||{'count':0x0,'rows':[]};}function _0x172642(){const _0x4ce7f5=_0x1c5a8a;_0x268cd7['query'][_0x4ce7f5('0x19e')]=(_0x268cd7[_0x4ce7f5('0x135a')][_0x4ce7f5('0x23f5')]-0x1)*_0x268cd7[_0x4ce7f5('0x135a')][_0x4ce7f5('0x68e')],_0x560b34[_0x4ce7f5('0x1516')](_0x4ce7f5('0xe23'))?_0x268cd7[_0x4ce7f5('0x1808')]=_0x73960f[_0x4ce7f5('0xb26')][_0x4ce7f5('0x1335')](_0x268cd7[_0x4ce7f5('0x135a')],_0x3f7b28)['$promise']:(_0x268cd7[_0x4ce7f5('0x135a')]['id']=_0x268cd7[_0x4ce7f5('0x63c')]['id'],_0x268cd7[_0x4ce7f5('0x135a')]['section']=_0x4ce7f5('0x2080'),_0x268cd7['promise']=_0x73960f[_0x4ce7f5('0x63c')][_0x4ce7f5('0xa1')](_0x268cd7[_0x4ce7f5('0x135a')],_0x3f7b28)[_0x4ce7f5('0x1714')]);}function _0x8ce643(_0x214b5e,_0x3b5e4b){const _0x2fb5eb=_0x1c5a8a;_0x10eade[_0x2fb5eb('0x2fa')]({'controller':_0x2fb5eb('0x359'),'controllerAs':'vm','templateUrl':_0x4f5f61,'parent':angular[_0x2fb5eb('0x16b1')](_0x38a5a4[_0x2fb5eb('0x945')]),'targetEvent':_0x214b5e,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x3b5e4b,'openchannelQueues':_0x268cd7[_0x2fb5eb('0x258c')][_0x2fb5eb('0x25df')],'license':_0x268cd7[_0x2fb5eb('0x130d')],'setting':_0x268cd7[_0x2fb5eb('0x1af0')],'crudPermissions':_0x268cd7['crudPermissions']}});}function _0x588cef(_0xf241e7){const _0x1bacc4=_0x1c5a8a;_0x73960f['openchannelQueue'][_0x1bacc4('0x17c4')]({'id':_0xf241e7['id']})['$promise'][_0x1bacc4('0x2788')](function(){const _0x31f509=_0x1bacc4;_0x283545()[_0x31f509('0x1a90')](_0x268cd7['openchannelQueues'][_0x31f509('0x25df')],{'id':_0xf241e7['id']}),_0x268cd7[_0x31f509('0x258c')][_0x31f509('0x338')]-=0x1,!_0x268cd7[_0x31f509('0x258c')][_0x31f509('0x25df')][_0x31f509('0x2566')]&&_0x268cd7[_0x31f509('0x240a')](),_0x588897['success']({'title':_0x283545()[_0x31f509('0x114')]('OpenchannelQueue')+_0x31f509('0x20db'),'msg':_0xf241e7['name']?_0xf241e7[_0x31f509('0x1a8d')]+_0x31f509('0x14d4'):''});})['catch'](function(_0xecd0e1){const _0x52642d=_0x1bacc4;if(_0xecd0e1[_0x52642d('0x11fc')]&&_0xecd0e1[_0x52642d('0x11fc')][_0x52642d('0x25be')]&&_0xecd0e1['data'][_0x52642d('0x25be')]['length']){_0x268cd7[_0x52642d('0x25be')]=_0xecd0e1[_0x52642d('0x11fc')][_0x52642d('0x25be')]||[{'message':_0xecd0e1[_0x52642d('0x17df')](),'type':_0x52642d('0x37c')}];for(let _0x17d8d4=0x0;_0x17d8d4<_0xecd0e1['data']['errors'][_0x52642d('0x2566')];_0x17d8d4++){_0x588897[_0x52642d('0x5e8')]({'title':_0xecd0e1['data']['errors'][_0x17d8d4][_0x52642d('0x1d7')],'msg':_0xecd0e1[_0x52642d('0x11fc')]['errors'][_0x17d8d4][_0x52642d('0x15e2')]});}}else _0x588897[_0x52642d('0x5e8')]({'title':_0xecd0e1[_0x52642d('0x1b51')]?_0x52642d('0x15d1')+_0xecd0e1[_0x52642d('0x1b51')]+_0x52642d('0x1b0b')+_0xecd0e1[_0x52642d('0x22ce')]:'SYSTEM:DELETEopenchannelQueue','msg':_0xecd0e1[_0x52642d('0x11fc')]?JSON[_0x52642d('0x1be0')](_0xecd0e1['data'][_0x52642d('0x15e2')]):_0xecd0e1['message']||_0xecd0e1[_0x52642d('0x17df')]()});});}function _0x130fb0(){const _0x3e80ca=_0x1c5a8a,_0xb5b193=angular[_0x3e80ca('0x2669')](_0x268cd7[_0x3e80ca('0x127')]);return _0x268cd7[_0x3e80ca('0x127')]=[],_0xb5b193;}function _0x4f80f6(_0x5482e0){const _0x2155e2=_0x1c5a8a,_0x5e1d7d=_0x10eade[_0x2155e2('0x112e')]()[_0x2155e2('0x14e4')](_0x2155e2('0x2814'))[_0x2155e2('0x93e')](_0x2155e2('0x1670')+_0x268cd7[_0x2155e2('0x127')][_0x2155e2('0x2566')]+_0x2155e2('0xbd')+_0x2155e2('0x27c7'))[_0x2155e2('0x10bc')](_0x2155e2('0x631'))[_0x2155e2('0x24d0')](_0x5482e0)['ok']('OK')[_0x2155e2('0x1801')](_0x2155e2('0x1d8d'));_0x10eade[_0x2155e2('0x2fa')](_0x5e1d7d)[_0x2155e2('0x2788')](function(){const _0x2efe4c=_0x2155e2;_0x268cd7[_0x2efe4c('0x127')]['forEach'](function(_0x334fa9){_0x588cef(_0x334fa9);}),_0x268cd7['selectedOpenchannelQueues']=[];});}function _0x146ad3(){const _0x5c6fa8=_0x1c5a8a;_0x268cd7[_0x5c6fa8('0x127')]=[];}function _0x8c52f8(){const _0x48246d=_0x1c5a8a;_0x268cd7['selectedOpenchannelQueues']=_0x268cd7[_0x48246d('0x258c')][_0x48246d('0x25df')];}}const _0x9f42f9=_0x4df7db;_0xba760e['$inject']=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0xba760e(_0x4d4525,_0x115d0e){const _0x4d4d57=_0x34e79e;_0x4d4525[_0x4d4d57('0x249b')](_0x4d4d57('0x1cf8'),{'abstract':!![],'url':_0x4d4d57('0xdfa')})[_0x4d4d57('0x249b')]('app.openchannel.openchannelQueues',{'url':_0x4d4d57('0x1159'),'views':{'content@app':{'templateUrl':_0x1728c2,'controller':_0x4d4d57('0x769')}},'resolve':{'openchannelQueues':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0x1fc85c,_0x4e5f26){const _0x9be33e=_0x4d4d57;return _0x4e5f26[_0x9be33e('0x1516')](_0x9be33e('0xe23'))?_0x1fc85c[_0x9be33e('0x2322')](_0x9be33e('0x12f5'),{'fields':_0x9be33e('0x1a03'),'sort':_0x9be33e('0x1cee'),'channel':_0x9be33e('0x18aa'),'limit':0xa,'offset':0x0}):_0x1fc85c[_0x9be33e('0x2322')]('userProfile@getResources',{'id':_0x4e5f26[_0x9be33e('0x24cc')]()[_0x9be33e('0x237f')],'section':_0x9be33e('0x2080'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x9be33e('0x1cee'),'channel':'openchannel','limit':0xa,'offset':0x0});}],'userProfile':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0x401c61,_0x415cec){const _0x413804=_0x4d4d57;return _0x415cec[_0x413804('0x1516')](_0x413804('0xe23'))?null:_0x401c61['resolve'](_0x413804('0x231d'),{'fields':'id,name,crudPermissions','id':_0x415cec[_0x413804('0x24cc')]()[_0x413804('0x237f')]});}],'userProfileSection':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0x15959f,_0x3ff2c0){const _0xc4230e=_0x4d4d57;return _0x3ff2c0[_0xc4230e('0x1516')](_0xc4230e('0xe23'))?null:_0x15959f[_0xc4230e('0x2322')](_0xc4230e('0x22ca'),{'fields':_0xc4230e('0xe2c'),'userProfileId':_0x3ff2c0[_0xc4230e('0x24cc')]()[_0xc4230e('0x237f')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x4d4d57('0x18aa')})['state'](_0x4d4d57('0xe4f'),{'url':_0x4d4d57('0x206b'),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd7992b,'controller':_0x4d4d57('0x1abe')}},'resolve':{'openchannelQueue':[_0x4d4d57('0x1318'),_0x4d4d57('0xad0'),function(_0x3cd6b1,_0x3fc22f){const _0x117411=_0x4d4d57;return _0x3cd6b1[_0x117411('0x2322')](_0x117411('0x12f5'),{'fields':_0x117411('0x1a03'),'id':_0x3fc22f['id']});}],'userProfileSection':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0x2328ed,_0x2a8ba3){const _0x475660=_0x4d4d57;return _0x2328ed[_0x475660('0x2322')](_0x475660('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2a8ba3['getCurrentUser']()[_0x475660('0x237f')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x4d4d57('0x249b')]('app.openchannel.openchannelAccounts',{'url':'/openchannelAccounts','views':{'content@app':{'templateUrl':_0x432087,'controller':'OpenchannelAccountsController\x20as\x20vm'}},'resolve':{'openchannelAccounts':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0xccc04d,_0x16ffc5){const _0x54b30c=_0x4d4d57;return _0x16ffc5[_0x54b30c('0x1516')]('admin')?_0xccc04d['resolve'](_0x54b30c('0x1535'),{'fields':_0x54b30c('0x24b4'),'sort':_0x54b30c('0x1cee'),'limit':0xa,'offset':0x0}):_0xccc04d[_0x54b30c('0x2322')]('userProfile@getResources',{'id':_0x16ffc5[_0x54b30c('0x24cc')]()[_0x54b30c('0x237f')],'section':_0x54b30c('0x1b13'),'fields':_0x54b30c('0x24b4'),'sort':_0x54b30c('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4d4d57('0x1318'),_0x4d4d57('0x1b04'),function(_0x157718,_0x5d239f){const _0x3f550f=_0x4d4d57;return _0x5d239f[_0x3f550f('0x1516')](_0x3f550f('0xe23'))?null:_0x157718[_0x3f550f('0x2322')](_0x3f550f('0x231d'),{'fields':_0x3f550f('0x3f0'),'id':_0x5d239f[_0x3f550f('0x24cc')]()[_0x3f550f('0x237f')]});}],'userProfileSection':['apiResolver',_0x4d4d57('0x1b04'),function(_0x4203f2,_0x2fa5b3){const _0x1fb955=_0x4d4d57;return _0x2fa5b3[_0x1fb955('0x1516')](_0x1fb955('0xe23'))?null:_0x4203f2[_0x1fb955('0x2322')](_0x1fb955('0x22ca'),{'fields':_0x1fb955('0xe2c'),'userProfileId':_0x2fa5b3[_0x1fb955('0x24cc')]()[_0x1fb955('0x237f')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x4d4d57('0x18aa')})['state']('app.openchannel.openchannelAccounts.edit',{'url':_0x4d4d57('0x206b'),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x13357f,'controller':_0x4d4d57('0x1b82')}},'resolve':{'openchannelAccount':[_0x4d4d57('0x1318'),_0x4d4d57('0xad0'),function(_0x32dc29,_0x32ad7b){const _0x6fd1b7=_0x4d4d57;return _0x32dc29[_0x6fd1b7('0x2322')]('openchannelAccount@get',{'fields':_0x6fd1b7('0x24b4'),'id':_0x32ad7b['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x24bc7c,_0x753c8c){const _0x2cc27f=_0x4d4d57;return _0x24bc7c[_0x2cc27f('0x2322')](_0x2cc27f('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x753c8c['getCurrentUser']()[_0x2cc27f('0x237f')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x4d4d57('0x18aa')}),_0x115d0e[_0x4d4d57('0x15ae')]('app/main/apps/openchannel');}angular['module']('app.openchannel',[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),'ckeditor',_0x34e79e('0x15c8'),'ngAria','ngAnimate',_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),'mwFormUtils',_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),'angular.filter',_0x34e79e('0xd69')])['config'](_0xba760e)[_0x34e79e('0xb44')](_0x34e79e('0x6c5'),_0x264e35)[_0x34e79e('0xb44')]('OpenchannelAccountActionsController',_0x23b23f)[_0x34e79e('0xb44')](_0x34e79e('0x1dec'),_0x449c1b)[_0x34e79e('0xb44')]('EditOpenchannelAccountAppagentDialogController',_0x11b4a8)[_0x34e79e('0xb44')](_0x34e79e('0x1bc6'),_0x5599f7)[_0x34e79e('0xb44')](_0x34e79e('0xe31'),_0x5a3c79)[_0x34e79e('0xb44')](_0x34e79e('0x2783'),_0x2061b3)[_0x34e79e('0xb44')](_0x34e79e('0x78c'),_0x488c62)[_0x34e79e('0xb44')](_0x34e79e('0xffb'),_0x3d8dd0)['controller'](_0x34e79e('0x14bc'),_0x5c9e57)['controller']('EditOpenchannelAccountAppintervalDialogController',_0x856dcc)[_0x34e79e('0xb44')](_0x34e79e('0x992'),_0x99de39)[_0x34e79e('0xb44')](_0x34e79e('0xa4'),_0x538146)['controller']('EditOpenchannelAccountAppsystemDialogController',_0x2db4a1)[_0x34e79e('0xb44')]('EditOpenchannelAccountApptagDialogController',_0x5643a1)['controller']('OpenchannelAccountInteractionsController',_0x5a541e)[_0x34e79e('0xb44')](_0x34e79e('0x25cc'),_0x53860d)[_0x34e79e('0xb44')](_0x34e79e('0x8fb'),_0x19b70a)[_0x34e79e('0xb44')]('OpenchannelAccountDispositionsController',_0x1bc47b)[_0x34e79e('0xb44')](_0x34e79e('0x1946'),_0x3df09d)[_0x34e79e('0xb44')](_0x34e79e('0x733'),_0x59e629)[_0x34e79e('0xb44')](_0x34e79e('0x359'),_0x32dc10)['controller'](_0x34e79e('0xdf6'),_0x35a536)[_0x34e79e('0xb44')](_0x34e79e('0xdde'),_0x138a09)[_0x34e79e('0xb44')]('OpenchannelQueueController',_0x3045fd)[_0x34e79e('0xb44')](_0x34e79e('0x158a'),_0x9f42f9);const _0x3ae5e6=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html',_0x16cad7=_0x18dd13['p']+_0x34e79e('0x1273'),_0x211ff6=_0x18dd13['p']+_0x34e79e('0x17ec'),_0x5ac789=_0x18dd13['p']+_0x34e79e('0x95d'),_0x58873e=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html',_0x4cd1c6=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/realtime/agents/view.html/view.html',_0x1b8961=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view.html',_0x53d561=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/realtime/queues/view.html/view.html',_0x4b18ae=_0x18dd13['p']+_0x34e79e('0x205');_0x24abd2['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1382'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0xe9b'),'rpcFaxAccounts',_0x34e79e('0x63c'),_0x34e79e('0xec9'),'Auth'];function _0x24abd2(_0x19266d,_0x4ffe92,_0x1556b3,_0xfd1b7e,_0x347272,_0x3f9e0b,_0x140e1f,_0x40f882,_0x44c0a7,_0x3d666,_0x135776,_0xbeb40a,_0x2f33d8){const _0x2b9c70=_0x34e79e,_0x7b0bdc=this;_0x7b0bdc[_0x2b9c70('0x9cb')]=_0x2f33d8[_0x2b9c70('0x24cc')](),_0x7b0bdc[_0x2b9c70('0x338')]=_0x44c0a7&&_0x44c0a7[_0x2b9c70('0x338')]?_0x44c0a7[_0x2b9c70('0x338')]:0x0,_0x7b0bdc[_0x2b9c70('0xe9b')]=_0x44c0a7?_0x283545()[_0x2b9c70('0x13cf')](_0x44c0a7['rows']?_0x44c0a7[_0x2b9c70('0x25df')]:[],'id'):{},_0x7b0bdc[_0x2b9c70('0x44d')]=_0x3d666?_0x283545()[_0x2b9c70('0x13cf')](_0x3d666[_0x2b9c70('0x25df')]?_0x3d666[_0x2b9c70('0x25df')]:[],'id'):{},_0x7b0bdc[_0x2b9c70('0x63c')]=_0x135776,_0x7b0bdc[_0x2b9c70('0xec9')]=_0xbeb40a&&_0xbeb40a[_0x2b9c70('0x338')]==0x1?_0xbeb40a[_0x2b9c70('0x25df')][0x0]:null,_0x7b0bdc['crudPermissions']=_0x2f33d8[_0x2b9c70('0x157e')](_0x7b0bdc[_0x2b9c70('0xec9')]?_0x7b0bdc['userProfileSection']['crudPermissions']:null),_0x7b0bdc[_0x2b9c70('0x135a')]={'sort':_0x2b9c70('0x941'),'limit':0xa,'page':0x1},_0x7b0bdc[_0x2b9c70('0x173b')]=_0x22c06a,_0x7b0bdc[_0x2b9c70('0x11ad')]=_0x509483,_0x7b0bdc['getFaxAccounts']=_0x7c01da,_0x7b0bdc[_0x2b9c70('0x158d')]=_0x485db5,_0x7b0bdc[_0x2b9c70('0x1d24')]=_0x3bd0c8,_0x7b0bdc[_0x2b9c70('0x1dfc')]=_0x3be1a8,_0x7b0bdc[_0x2b9c70('0x1dc2')]=[],_0x283545()['forIn'](_0x7b0bdc['faxAccounts'],function(_0x25a672){const _0x5f484b=_0x2b9c70;_0x7b0bdc[_0x5f484b('0x1dc2')][_0x5f484b('0x13e3')](_0x25a672['id']);}),_0x140e1f['on'](_0x2b9c70('0x13d0'),_0x7b0bdc[_0x2b9c70('0x158d')]),_0x140e1f['on']('faxAccount:update',_0x7b0bdc[_0x2b9c70('0x158d')]),_0x140e1f['on'](_0x2b9c70('0x75b'),_0x7b0bdc[_0x2b9c70('0x1d24')]);function _0x509483(){const _0x3524b2=_0x2b9c70;_0x283545()[_0x3524b2('0x1b')](_0x7b0bdc[_0x3524b2('0xe9b')],function(_0x50982a,_0x30dc3b){const _0x5ec234=_0x3524b2;_0x7b0bdc[_0x5ec234('0x44d')][_0x30dc3b]&&_0x283545()[_0x5ec234('0x2503')](_0x50982a,_0x7b0bdc[_0x5ec234('0x44d')][_0x30dc3b]);}),_0x283545()[_0x3524b2('0x1b')](_0x7b0bdc['faxAccounts'],function(_0xe1ccc1,_0x29ae85){const _0x5c85f4=_0x3524b2,_0xf59b88={'id':_0x29ae85,'sort':_0x5c85f4('0x2658'),'direction':'in','limit':0x1,'offset':0x0,'$gte':_0x5c85f4('0x2160')+_0x59f37a()()[_0x5c85f4('0x13e4')]('day')['format'](_0x5c85f4('0xe8e'))};_0x3f9e0b['faxAccount'][_0x5c85f4('0x241f')](_0xf59b88)[_0x5c85f4('0x1714')][_0x5c85f4('0x2788')](function(_0x171cf1){const _0x59f385=_0x5c85f4;return _0x171cf1&&(_0xe1ccc1['in']=_0x171cf1[_0x59f385('0x338')]||0x0,_0xe1ccc1[_0x59f385('0x178d')]=_0x171cf1[_0x59f385('0x25df')]&&_0x171cf1[_0x59f385('0x25df')][_0x59f385('0x2566')]?_0x171cf1['rows'][0x0][_0x59f385('0x172')]:undefined),_0xf59b88[_0x59f385('0x7c3')]=_0x59f385('0x181d'),_0x3f9e0b['faxAccount']['getMessages'](_0xf59b88)[_0x59f385('0x1714')];})[_0x5c85f4('0x2788')](function(_0x2096a9){const _0x5fa404=_0x5c85f4;_0x2096a9&&(_0xe1ccc1[_0x5fa404('0x181d')]=_0x2096a9[_0x5fa404('0x338')]||0x0,_0xe1ccc1[_0x5fa404('0x1864')]=_0x2096a9[_0x5fa404('0x25df')]&&_0x2096a9[_0x5fa404('0x25df')][_0x5fa404('0x2566')]?_0x2096a9['rows'][0x0]['createdAt']:undefined);})['catch'](function(_0x4fb34a){const _0x31e953=_0x5c85f4;console[_0x31e953('0x10df')](_0x4fb34a);});});}function _0x485db5(_0x36defa){const _0x540e2f=_0x2b9c70;_0x7b0bdc['faxAccounts'][_0x36defa['id']]&&_0x283545()[_0x540e2f('0x2503')](_0x7b0bdc[_0x540e2f('0xe9b')][_0x36defa['id']],_0x36defa);}function _0x3bd0c8(_0x2584fd){const _0x34ccf0=_0x2b9c70;_0x7b0bdc['faxAccounts'][_0x2584fd[_0x34ccf0('0xfc2')]]&&(_0x2584fd[_0x34ccf0('0x7c3')]=='in'?(_0x7b0bdc[_0x34ccf0('0xe9b')][_0x2584fd[_0x34ccf0('0xfc2')]]['in']+=0x1,_0x7b0bdc[_0x34ccf0('0xe9b')][_0x2584fd[_0x34ccf0('0xfc2')]][_0x34ccf0('0x178d')]=_0x2584fd['createdAt']):(_0x7b0bdc[_0x34ccf0('0xe9b')][_0x2584fd[_0x34ccf0('0xfc2')]][_0x34ccf0('0x181d')]+=0x1,_0x7b0bdc[_0x34ccf0('0xe9b')][_0x2584fd[_0x34ccf0('0xfc2')]][_0x34ccf0('0x1864')]=_0x2584fd[_0x34ccf0('0x172')]));}function _0x3be1a8(_0x4e9786,_0x59ee27){_0x347272['go']('app.fax.faxAccounts.edit',{'id':_0x59ee27['id'],'faxAccount':_0x59ee27});}let _0x2370c7=!![],_0x3db50c=0x1;_0x19266d['$watch'](_0x2b9c70('0x1569'),function(_0x56307b,_0x3d7369){const _0x2dc3cb=_0x2b9c70;_0x2370c7?_0x4ffe92(function(){_0x2370c7=![];}):(!_0x3d7369&&(_0x3db50c=_0x7b0bdc['query'][_0x2dc3cb('0x23f5')]),_0x56307b!==_0x3d7369&&(_0x7b0bdc[_0x2dc3cb('0x135a')][_0x2dc3cb('0x23f5')]=0x1),!_0x56307b&&(_0x7b0bdc['query'][_0x2dc3cb('0x23f5')]=_0x3db50c),_0x7b0bdc[_0x2dc3cb('0x1dbb')]());});function _0x22c06a(_0x455a87){const _0x71a0e2=_0x2b9c70;_0x7b0bdc[_0x71a0e2('0xe9b')]=_0x455a87?_0x283545()['keyBy'](_0x455a87[_0x71a0e2('0x25df')]?_0x455a87['rows']:[],'id'):{};if(_0x455a87[_0x71a0e2('0x25df')]){_0x7b0bdc['order']=[];for(let _0xc0810c=0x0;_0xc0810c<_0x455a87['rows'][_0x71a0e2('0x2566')];_0xc0810c++){_0x7b0bdc[_0x71a0e2('0x1dc2')][_0x71a0e2('0x13e3')](_0x455a87[_0x71a0e2('0x25df')][_0xc0810c]['id']);}}_0x509483();}function _0x7c01da(){const _0x983fe9=_0x2b9c70;_0x7b0bdc[_0x983fe9('0x135a')][_0x983fe9('0x19e')]=(_0x7b0bdc[_0x983fe9('0x135a')][_0x983fe9('0x23f5')]-0x1)*_0x7b0bdc[_0x983fe9('0x135a')][_0x983fe9('0x68e')],_0x2f33d8['hasRole'](_0x983fe9('0xe23'))?_0x7b0bdc[_0x983fe9('0x1808')]=_0x3f9e0b[_0x983fe9('0x1fb8')][_0x983fe9('0x1335')](_0x7b0bdc[_0x983fe9('0x135a')],_0x22c06a)[_0x983fe9('0x1714')]:(_0x7b0bdc[_0x983fe9('0x135a')]['id']=_0x7b0bdc[_0x983fe9('0x63c')]['id'],_0x7b0bdc[_0x983fe9('0x135a')][_0x983fe9('0xb13')]=_0x983fe9('0x1819'),_0x7b0bdc[_0x983fe9('0x1808')]=_0x3f9e0b[_0x983fe9('0x63c')][_0x983fe9('0xa1')](_0x7b0bdc[_0x983fe9('0x135a')],_0x22c06a)[_0x983fe9('0x1714')]);}_0x19266d[_0x2b9c70('0x651')](_0x2b9c70('0x26ac'),function(){const _0x2d33ac=_0x2b9c70;_0x140e1f[_0x2d33ac('0x277f')]('faxAccount:save'),_0x140e1f[_0x2d33ac('0x277f')](_0x2d33ac('0x15e0')),_0x140e1f[_0x2d33ac('0x277f')]('faxMessage:save');});}const _0x20d37c=_0x24abd2;_0x4b47b6[_0x34e79e('0x2d9')]=['$scope','$q',_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x135d'),_0x34e79e('0x225d'),_0x34e79e('0x1713'),_0x34e79e('0x1c55'),'api','socket',_0x34e79e('0xd57'),_0x34e79e('0x1fc6'),'userProfile',_0x34e79e('0xec9'),'Auth','license',_0x34e79e('0x16e3')];function _0x4b47b6(_0x3038ab,_0x3ac62e,_0x41e6a8,_0x1fe195,_0x2749cc,_0x68dc3e,_0x6d5af5,_0x5120fe,_0x20601d,_0x558a7b,_0x42b7db,_0x2b49a9,_0x26195e,_0x4a82b6,_0x148161,_0x2aebfb,_0x59a42b,_0x120860){const _0x13f324=_0x34e79e,_0x19e787=this,_0x5bbb11=['userpic','online','lastLoginAt',_0x13f324('0x233e'),_0x13f324('0x11e9'),_0x13f324('0x233e'),_0x13f324('0x2838'),'address',_0x13f324('0x23a5'),_0x13f324('0x1098'),'mailPause',_0x13f324('0xfd5'),_0x13f324('0x924'),_0x13f324('0x1891'),_0x13f324('0x2a1'),_0x13f324('0x4e0'),_0x13f324('0xde1'),_0x13f324('0x251c'),_0x13f324('0x27b7'),_0x13f324('0x982'),_0x13f324('0xc8b'),_0x13f324('0xc78'),_0x13f324('0x7af'),_0x13f324('0x113a'),_0x13f324('0x1f88'),'whatsappCurrentCapacity','faxCurrentCapacity',_0x13f324('0x25d5'),_0x13f324('0x18a3'),_0x13f324('0x1a75'),_0x13f324('0x698'),_0x13f324('0x167f'),_0x13f324('0x17d6'),_0x13f324('0x1536'),'chatStatusTime',_0x13f324('0x320'),_0x13f324('0x1831'),_0x13f324('0x27b0'),_0x13f324('0x1ac7'),'faxStatusTime','voiceStatusTime',_0x13f324('0x1ab4'),_0x13f324('0xdb6'),_0x13f324('0x12b5'),_0x13f324('0x15d7'),_0x13f324('0xafd')],_0x5e6e3d=[_0x13f324('0x23a5'),_0x13f324('0x1098'),_0x13f324('0x20cd'),_0x13f324('0xfd5'),_0x13f324('0x924'),_0x13f324('0x1891'),'voicePause','online'];_0x19e787['currentUser']=_0x2aebfb[_0x13f324('0x24cc')](),_0x19e787['availableStates']=['ringing',_0x13f324('0x11c3'),_0x13f324('0xed9'),'onhold',_0x13f324('0x1af6')],_0x19e787[_0x13f324('0x225d')]=_0x6d5af5||{'count':0x0,'rows':[]},_0x19e787[_0x13f324('0x130d')]=_0x59a42b,_0x19e787['userProfile']=_0x4a82b6,_0x19e787['userProfileSection']=_0x148161&&_0x148161['count']==0x1?_0x148161[_0x13f324('0x25df')][0x0]:null,_0x19e787['crudPermissions']=_0x2aebfb[_0x13f324('0x157e')](_0x19e787['userProfileSection']?_0x19e787['userProfileSection'][_0x13f324('0xe28')]:null),_0x19e787[_0x13f324('0x1713')]=_0x5120fe?_0x283545()[_0x13f324('0x13cf')](_0x5120fe[_0x13f324('0x25df')]?_0x5120fe['rows']:[],'id'):{},_0x19e787[_0x13f324('0x1c55')]=_0x20601d?_0x283545()[_0x13f324('0x13cf')](_0x20601d[_0x13f324('0x25df')]?_0x20601d['rows']:[],'id'):{},_0x19e787[_0x13f324('0x26ed')]={},_0x19e787['load']=![],_0x19e787['order']=[],_0x19e787['agentInternal']={};for(const _0x5ca2de in _0x19e787[_0x13f324('0x1713')]){typeof _0x19e787['agents'][_0x5ca2de]!==_0x13f324('0xedb')&&(_0x19e787[_0x13f324('0x1713')][_0x5ca2de][_0x13f324('0x24eb')]=!![]);}_0x19e787[_0x13f324('0x135a')]={'limit':0xa,'page':0x1,'order':_0x13f324('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0x19e787[_0x13f324('0x192f')]=_0x5d38d8,_0x19e787[_0x13f324('0x2025')]=_0x48968f,_0x19e787[_0x13f324('0x619')]=_0x850ed3,_0x19e787[_0x13f324('0xc00')]=_0xe1a712,_0x19e787[_0x13f324('0xa35')]=_0x125bd2,_0x19e787[_0x13f324('0xd10')]=_0x3c398c,_0x19e787[_0x13f324('0xcfd')]=_0x333bd9,_0x19e787[_0x13f324('0x192')]=_0x13067f,_0x19e787[_0x13f324('0xaef')]=_0x47d3da,_0x19e787[_0x13f324('0x17f9')]=_0x474839,_0x19e787[_0x13f324('0x158d')]=_0x3c6165,_0x19e787[_0x13f324('0x2409')]=_0x263f7e,_0x19e787[_0x13f324('0x122e')]=_0x3eb1b2,_0x19e787[_0x13f324('0x2826')]=_0x2a59c9,_0x19e787[_0x13f324('0xb61')]=_0x197edc,_0x19e787[_0x13f324('0x1e03')]=_0xc93cf6,_0x42b7db['on'](_0x13f324('0x71'),_0x19e787[_0x13f324('0x158d')]),_0x42b7db['on'](_0x13f324('0x1cb6'),_0x19e787[_0x13f324('0x2409')]),_0x42b7db['on'](_0x13f324('0x1958'),_0x19e787[_0x13f324('0x2826')]),_0x42b7db['on'](_0x13f324('0x116b'),_0x19e787['onComplete']),_0x3eb1b2();let _0x579cbc=_0x120860(function(){const _0x59fb3f=_0x13f324;_0x19e787[_0x59fb3f('0x374')]&&(_0x19e787[_0x59fb3f('0x374')]=![],_0x3eb1b2());},0x3e7);function _0x3eb1b2(){const _0x467a0c=_0x13f324;_0x19e787[_0x467a0c('0x374')]=![];const _0x3e4fb2=_0x3ac62e[_0x467a0c('0x2311')]();_0x19e787[_0x467a0c('0x1808')]=_0x3e4fb2[_0x467a0c('0x1808')],_0x19e787['filteredAgents']=[],_0x19e787[_0x467a0c('0x1dc2')]=[],_0x283545()[_0x467a0c('0x1b')](_0x19e787['agents'],function(_0x1d486a,_0x2fb315){const _0x529853=_0x467a0c;_0x19e787[_0x529853('0x1c55')][_0x2fb315]&&_0x283545()[_0x529853('0x2503')](_0x1d486a,_0x283545()['pick'](_0x283545()[_0x529853('0x5a9')](_0x19e787['rpcAgents'][_0x2fb315],_0x5e6e3d),_0x5bbb11)),_0x333bd9(_0x1d486a),_0x1d486a[_0x529853('0x7c2')]?(_0x19e787[_0x529853('0xfe8')][_0x529853('0x13e3')](_0x1d486a),_0x19e787[_0x529853('0x1564')][_0x1d486a[_0x529853('0x2838')]]=_0x2fb315):_0x1d486a[_0x529853('0xf3b')]=_0x283545()[_0x529853('0x420')](_0x59f37a()()['format']('x'));});_0x19e787['query'][_0x467a0c('0x52c')]&&_0x283545()[_0x467a0c('0x1a90')](_0x19e787[_0x467a0c('0xfe8')],function(_0x5682d3){const _0x23859c=_0x467a0c;return _0x5682d3[_0x23859c('0xee3')]!==_0x19e787['query'][_0x23859c('0x52c')];});_0x19e787[_0x467a0c('0x135a')][_0x467a0c('0xf25')]&&_0x283545()[_0x467a0c('0x1a90')](_0x19e787['filteredAgents'],function(_0x1f7910){const _0x7fa13e=_0x467a0c;return _0x1f7910[_0x7fa13e('0x11e9')]!==_0x19e787[_0x7fa13e('0x135a')][_0x7fa13e('0xf25')];});_0x19e787[_0x467a0c('0x135a')][_0x467a0c('0x916')]&&_0x283545()[_0x467a0c('0x1a90')](_0x19e787[_0x467a0c('0xfe8')],function(_0x401f89){const _0x48db79=_0x467a0c;return _0x401f89[_0x48db79('0x2831')][_0x48db79('0xc2e')]()['indexOf'](_0x19e787[_0x48db79('0x135a')][_0x48db79('0x916')]['toLowerCase']())<0x0;});_0x19e787[_0x467a0c('0xfe8')]=_0x25e08c(_0x19e787[_0x467a0c('0xfe8')]);const _0x1004eb=(_0x19e787[_0x467a0c('0x135a')][_0x467a0c('0x23f5')]-0x1)*_0x19e787[_0x467a0c('0x135a')][_0x467a0c('0x68e')];_0x19e787[_0x467a0c('0x26ed')]=_0x283545()['drop'](_0x19e787[_0x467a0c('0xfe8')],_0x1004eb)[_0x467a0c('0x845')](0x0,_0x19e787[_0x467a0c('0x135a')][_0x467a0c('0x68e')]);for(let _0x50e662=0x0;_0x50e662<_0x19e787['paginatedAgents'][_0x467a0c('0x2566')];_0x50e662+=0x1){_0x19e787['order'][_0x467a0c('0x13e3')](_0x19e787[_0x467a0c('0x26ed')][_0x50e662]['id']);}_0x3e4fb2[_0x467a0c('0x2322')](),_0x19e787[_0x467a0c('0x374')]=!![];}function _0x3c6165(_0x1fbcaa){const _0x59e236=_0x13f324;_0x19e787[_0x59e236('0x1713')][_0x1fbcaa['id']]&&(_0x283545()[_0x59e236('0x2503')](_0x19e787[_0x59e236('0x1713')][_0x1fbcaa['id']],_0x283545()[_0x59e236('0x41b')](_0x283545()[_0x59e236('0x5a9')](_0x1fbcaa,_0x5e6e3d),_0x5bbb11)),_0x283545()[_0x59e236('0x2503')](_0x19e787[_0x59e236('0x1c55')][_0x1fbcaa['id']],_0x283545()[_0x59e236('0x41b')](_0x283545()[_0x59e236('0x5a9')](_0x1fbcaa,_0x5e6e3d),_0x5bbb11)),_0x333bd9(_0x19e787['agents'][_0x1fbcaa['id']]));}function _0x263f7e(_0x490514){const _0x33ee2e=_0x13f324;_0x19e787[_0x33ee2e('0x1713')][_0x490514['id']]&&(_0x283545()['merge'](_0x19e787[_0x33ee2e('0x1713')][_0x490514['id']],_0x283545()[_0x33ee2e('0x41b')](_0x490514,_0x5bbb11)),_0x283545()['merge'](_0x19e787[_0x33ee2e('0x1c55')][_0x490514['id']],_0x283545()[_0x33ee2e('0x41b')](_0x490514,_0x5bbb11)),_0x490514[_0x33ee2e('0x233e')]&&(_0x19e787['agents'][_0x490514['id']][_0x33ee2e('0xf3b')]=_0x490514[_0x33ee2e('0x233e')],_0x19e787['rpcAgents'][_0x490514['id']][_0x33ee2e('0xf3b')]=_0x490514['lastPauseAt']),_0x333bd9(_0x19e787[_0x33ee2e('0x1713')][_0x490514['id']]));}function _0x2a59c9(_0x38642c){const _0x471590=_0x13f324;_0x19e787['agents'][_0x19e787[_0x471590('0x1564')][_0x38642c[_0x471590('0x7f4')]]]&&(_0x283545()[_0x471590('0x2503')](_0x19e787['agents'][_0x19e787[_0x471590('0x1564')][_0x38642c['destaccountcode']]],_0x283545()[_0x471590('0x41b')](_0x38642c,[_0x471590('0x1ab4'),_0x471590('0xdb6')])),_0x283545()[_0x471590('0x2503')](_0x19e787[_0x471590('0x1c55')][_0x19e787[_0x471590('0x1564')][_0x38642c[_0x471590('0x7f4')]]],_0x283545()[_0x471590('0x41b')](_0x38642c,['queue','destconnectedlinenum'])));}function _0x197edc(_0x2b93f8){const _0x4066b2=_0x13f324;_0x19e787[_0x4066b2('0x1713')][_0x19e787[_0x4066b2('0x1564')][_0x2b93f8['destaccountcode']]]&&(_0x19e787[_0x4066b2('0x1713')][_0x19e787[_0x4066b2('0x1564')][_0x2b93f8[_0x4066b2('0x7f4')]]]=_0x283545()['omit'](_0x19e787[_0x4066b2('0x1713')][_0x19e787[_0x4066b2('0x1564')][_0x2b93f8['destaccountcode']]],[_0x4066b2('0x1ab4'),_0x4066b2('0xdb6')]),_0x19e787[_0x4066b2('0x1c55')][_0x19e787['agentInternal'][_0x2b93f8[_0x4066b2('0x7f4')]]]=_0x283545()[_0x4066b2('0x5a9')](_0x19e787[_0x4066b2('0x1c55')][_0x19e787[_0x4066b2('0x1564')][_0x2b93f8['destaccountcode']]],[_0x4066b2('0x1ab4'),'destconnectedlinenum']));}function _0x5d38d8(_0x3267a2){const _0x3f5104=_0x13f324;return _0x558a7b['user']['logout']({'id':_0x3267a2['id'],'device':_0x3f5104('0x548'),'agent_id':_0x3267a2['id'],'agent_name':_0x3267a2['name']})[_0x3f5104('0x1714')][_0x3f5104('0x2788')](function(){const _0x210461=_0x3f5104;_0x2b49a9['success']({'title':_0x210461('0x256b'),'msg':_0x3267a2[_0x210461('0x2831')]+_0x210461('0x12e2')}),_0x19e787[_0x210461('0x1713')][_0x3267a2['id']]&&(_0x19e787['agents'][_0x3267a2['id']][_0x210461('0x7c2')]=![]),_0x19e787[_0x210461('0x1c55')][_0x3267a2['id']]&&(_0x19e787[_0x210461('0x1c55')][_0x3267a2['id']][_0x210461('0x7c2')]=![]),_0x3eb1b2();})[_0x3f5104('0x1cb5')](function(_0x15664b){const _0x2be770=_0x3f5104;_0x2b49a9[_0x2be770('0x5e8')]({'title':_0x15664b[_0x2be770('0x1b51')]?'API:'+_0x15664b['status']+_0x2be770('0x1b0b')+_0x15664b[_0x2be770('0x22ce')]:_0x2be770('0x184d'),'msg':_0x15664b['data']?JSON['stringify'](_0x15664b[_0x2be770('0x11fc')]['message']):_0x15664b['toString']()});});}function _0x850ed3(_0x3036ca,_0x1a612c){const _0x4d54e6=_0x13f324;return _0x558a7b['user'][_0x4d54e6('0x619')]({'id':_0x3036ca['id'],'type':_0x1a612c})[_0x4d54e6('0x1714')][_0x4d54e6('0x2788')](function(_0x46799d){const _0x1fe338=_0x4d54e6;_0x19e787[_0x1fe338('0x1713')][_0x3036ca['id']]&&_0x283545()[_0x1fe338('0x2503')](_0x19e787['agents'][_0x3036ca['id']],_0x283545()[_0x1fe338('0x41b')](_0x46799d,_0x5bbb11)),_0x19e787[_0x1fe338('0x1c55')][_0x3036ca['id']]&&_0x283545()[_0x1fe338('0x2503')](_0x19e787['rpcAgents'][_0x3036ca['id']],_0x283545()['pick'](_0x46799d,_0x5bbb11)),_0x333bd9(_0x19e787[_0x1fe338('0x1713')][_0x3036ca['id']]);})[_0x4d54e6('0x1cb5')](function(_0x3016d2){const _0x2520c1=_0x4d54e6;_0x2b49a9[_0x2520c1('0x5e8')]({'title':_0x3016d2['status']?_0x2520c1('0x15d1')+_0x3016d2['status']+_0x2520c1('0x1b0b')+_0x3016d2[_0x2520c1('0x22ce')]:'api.staff.save','msg':_0x3016d2[_0x2520c1('0x11fc')]?JSON[_0x2520c1('0x1be0')](_0x3016d2['data']['message']):_0x3016d2[_0x2520c1('0x17df')]()});});}function _0xe1a712(_0x509261){const _0xa2e3e7=_0x13f324;return _0x558a7b[_0xa2e3e7('0x1e6a')]['unpause']({'id':_0x509261['id']})['$promise'][_0xa2e3e7('0x2788')](function(_0x450575){const _0x452e1e=_0xa2e3e7;_0x19e787[_0x452e1e('0x1713')][_0x509261['id']]&&_0x283545()[_0x452e1e('0x2503')](_0x19e787['agents'][_0x509261['id']],_0x283545()[_0x452e1e('0x41b')](_0x450575,_0x5bbb11)),_0x19e787[_0x452e1e('0x1c55')][_0x509261['id']]&&_0x283545()[_0x452e1e('0x2503')](_0x19e787[_0x452e1e('0x1c55')][_0x509261['id']],_0x283545()[_0x452e1e('0x41b')](_0x450575,_0x5bbb11)),_0x333bd9(_0x19e787[_0x452e1e('0x1713')][_0x509261['id']]);})[_0xa2e3e7('0x1cb5')](function(_0x295efa){const _0x3df1b4=_0xa2e3e7;_0x2b49a9[_0x3df1b4('0x5e8')]({'title':_0x295efa['status']?'API:'+_0x295efa[_0x3df1b4('0x1b51')]+_0x3df1b4('0x1b0b')+_0x295efa['statusText']:'api.staff.save','msg':_0x295efa[_0x3df1b4('0x11fc')]?JSON[_0x3df1b4('0x1be0')](_0x295efa[_0x3df1b4('0x11fc')][_0x3df1b4('0x15e2')]):_0x295efa[_0x3df1b4('0x17df')]()});});}function _0x125bd2(_0x275cd4){const _0x1b3aee=_0x13f324;_0x1fe195[_0x1b3aee('0x2fa')](_0x1fe195[_0x1b3aee('0x204f')]()['clickOutsideToClose'](!![])[_0x1b3aee('0x14e4')](_0x1b3aee('0xcbb'))[_0x1b3aee('0x93e')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x1b3aee('0x24d0')](_0x275cd4));}function _0x48968f(_0x56d5f9,_0x13a11a){const _0x52c629=_0x13f324;_0x1fe195[_0x52c629('0x2fa')]({'controller':_0x52c629('0x2b2'),'controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular['element'](_0x2749cc[_0x52c629('0x945')]),'targetEvent':_0x13a11a,'clickOutsideToClose':!![],'locals':{'agent':_0x56d5f9,'agents':[],'channel':_0x52c629('0x10cf'),'direction':'inbound','crudPermissions':_0x19e787[_0x52c629('0xe28')]}});}function _0x13067f(_0x366982){const _0x5264ca=_0x13f324;return _0x366982===_0x5264ca('0x619')||_0x366982===_0x5264ca('0x1d48');}function _0x47d3da(_0x10e459){const _0x1d2967=_0x13f324;return _0x10e459===_0x1d2967('0x619');}function _0x474839(_0x536c4f){const _0x59b8f3=_0x13f324;return _0x536c4f===_0x59b8f3('0x1d48');}function _0xaa1608(_0x208907){const _0x221ae7=_0x13f324;return _0x208907==='idle'||_0x208907==='unknown'||_0x208907==='unavailable'||_0x208907===_0x221ae7('0x26f8')||_0x283545()[_0x221ae7('0x1015')](_0x208907);}function _0x3c398c(_0x23bca9,_0x5e97de){const _0x8a117d=_0x13f324;if(_0x5e97de===_0x8a117d('0x1f60')){if(_0x23bca9[_0x5e97de+_0x8a117d('0x21d8')]!==_0x8a117d('0x124c'))return _0x23bca9[_0x5e97de+'Status'];if(_0x23bca9[_0x5e97de+_0x8a117d('0x14f6')])return _0x23bca9[_0x5e97de+'Status']='pause',_0x8a117d('0x619');return _0x8a117d('0x124c');}else{if(_0x23bca9[_0x5e97de+_0x8a117d('0x14f6')])return _0x23bca9[_0x5e97de+_0x8a117d('0x21d8')]='pause','pause';return _0x23bca9[_0x5e97de+'Status'];}}function _0x333bd9(_0xd87b02){const _0x256aa5=_0x13f324;let _0x567ad9=_0x256aa5('0x119');if(_0x283545()['every']([_0x3c398c(_0xd87b02,_0x256aa5('0x1f60')),_0x3c398c(_0xd87b02,_0x256aa5('0x231')),_0x3c398c(_0xd87b02,_0x256aa5('0x2795')),_0x3c398c(_0xd87b02,_0x256aa5('0x18aa')),_0x3c398c(_0xd87b02,'sms'),_0x3c398c(_0xd87b02,'whatsapp'),_0x3c398c(_0xd87b02,_0x256aa5('0x10cf'))],_0x13067f))_0x567ad9=_0x256aa5('0x619');else{if(_0x283545()['some']([_0x3c398c(_0xd87b02,_0x256aa5('0x1f60')),_0x3c398c(_0xd87b02,_0x256aa5('0x231')),_0x3c398c(_0xd87b02,'mail'),_0x3c398c(_0xd87b02,'openchannel'),_0x3c398c(_0xd87b02,_0x256aa5('0x529')),_0x3c398c(_0xd87b02,'whatsapp'),_0x3c398c(_0xd87b02,_0x256aa5('0x10cf'))],_0x13067f))_0x567ad9='*pause';else _0x283545()[_0x256aa5('0x111e')]([_0x3c398c(_0xd87b02,'voice'),_0x3c398c(_0xd87b02,'chat'),_0x3c398c(_0xd87b02,_0x256aa5('0x2795')),_0x3c398c(_0xd87b02,_0x256aa5('0x18aa')),_0x3c398c(_0xd87b02,_0x256aa5('0x529')),_0x3c398c(_0xd87b02,_0x256aa5('0x195d')),_0x3c398c(_0xd87b02,'fax')],_0xaa1608)?_0x567ad9=_0x256aa5('0x124c'):_0x567ad9=_0x256aa5('0xed9');}_0xd87b02[_0x256aa5('0xee3')]!==_0x567ad9&&(_0xd87b02[_0x256aa5('0xee3')]=_0x567ad9,_0xd87b02[_0x256aa5('0x24eb')]?(_0xd87b02['init']=![],_0xd87b02['globalStatusTime']=_0x13067f(_0x567ad9)?_0x283545()['toNumber'](_0x59f37a()(_0xd87b02[_0x256aa5('0x233e')])['format']('x')):_0x283545()[_0x256aa5('0xb0a')]([_0xd87b02[_0x256aa5('0x48b')],_0xd87b02[_0x256aa5('0x1eeb')],_0xd87b02[_0x256aa5('0x1831')],_0xd87b02['smsStatusTime'],_0xd87b02['whatsappStatusTime'],_0xd87b02[_0x256aa5('0x320')],_0xd87b02[_0x256aa5('0xbc')]])):_0xd87b02[_0x256aa5('0xf3b')]=_0x283545()[_0x256aa5('0x420')](_0x59f37a()()['format']('x')));}function _0x25e08c(_0x5c2b55){const _0x11e766=_0x13f324,_0x36ad17=_0x283545()[_0x11e766('0x993')](_0x19e787[_0x11e766('0x135a')][_0x11e766('0x1dc2')],'-')?_0x11e766('0x25b5'):_0x11e766('0xe07');return _0x283545()[_0x11e766('0xf87')](_0x5c2b55,[_0x19e787[_0x11e766('0x135a')]['order']['replace']('-','')],[_0x36ad17]);}function _0x5d8cfc(){const _0x2fc5c2=_0x13f324;_0x579cbc&&(_0x120860[_0x2fc5c2('0x1801')](_0x579cbc),_0x579cbc=null);}function _0xc93cf6(_0x15c843,_0x415626){const _0x1adc7c=_0x13f324;return _0x558a7b[_0x1adc7c('0x1e6a')][_0x1adc7c('0x2740')]({'id':_0x15c843['id']},{'screenrecording':_0x415626})[_0x1adc7c('0x1714')][_0x1adc7c('0x1cb5')](function(_0xe4409){const _0x3b3369=_0x1adc7c;_0x2b49a9[_0x3b3369('0x5e8')]({'title':_0xe4409[_0x3b3369('0x1b51')]?_0x3b3369('0x15d1')+_0xe4409[_0x3b3369('0x1b51')]+_0x3b3369('0x1b0b')+_0xe4409[_0x3b3369('0x22ce')]:_0x3b3369('0x863'),'msg':_0xe4409['data']?JSON[_0x3b3369('0x1be0')](_0xe4409[_0x3b3369('0x11fc')][_0x3b3369('0x15e2')]):_0xe4409[_0x3b3369('0x17df')]()});});}_0x3038ab[_0x13f324('0x651')]('$destroy',function(){const _0x2f7472=_0x13f324;_0x42b7db[_0x2f7472('0x277f')]('user:save'),_0x42b7db[_0x2f7472('0x277f')](_0x2f7472('0x1cb6')),_0x42b7db[_0x2f7472('0x277f')]('user:agentconnect'),_0x42b7db[_0x2f7472('0x277f')]('user:agentcomplete'),_0x5d8cfc();});}const _0x479f80=_0x4b47b6,_0x534cb3=_0x18dd13['p']+_0x34e79e('0x989'),_0x18f3e0=_0x18dd13['p']+_0x34e79e('0x2c8');_0x867b1d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1580'),_0x34e79e('0x16e3'),_0x34e79e('0x283e'),'rpcQueues',_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty',_0x34e79e('0x63c'),_0x34e79e('0xec9'),'Auth'];function _0x867b1d(_0x174cbf,_0x22d11d,_0x391f94,_0x3d53f6,_0xcf8cb4,_0x53f301,_0x2acd9c,_0x3d6d96,_0x24a07d,_0x2c4776,_0x120597,_0x1d7526,_0x1acc11,_0x14316){const _0x2b32e8=_0x34e79e,_0x22eaa3=this,_0x3e5b5f=[_0x2b32e8('0x477'),'available','waiting',_0x2b32e8('0x1e8c'),'pTalking',_0x2b32e8('0x253b'),_0x2b32e8('0x15e2'),'dialActive',_0x2b32e8('0x1054'),_0x2b32e8('0x312'),_0x2b32e8('0x120')];_0x22eaa3[_0x2b32e8('0x9cb')]=_0x14316[_0x2b32e8('0x24cc')](),_0x22eaa3[_0x2b32e8('0x338')]=_0x2acd9c[_0x2b32e8('0x338')]?_0x2acd9c[_0x2b32e8('0x338')]:0x0,_0x22eaa3['queues']=_0x2acd9c?_0x283545()['keyBy'](_0x2acd9c[_0x2b32e8('0x25df')]?_0x2acd9c['rows']:[],'id'):{},_0x22eaa3[_0x2b32e8('0x274c')]=_0x3d6d96?_0x283545()[_0x2b32e8('0x13cf')](_0x3d6d96[_0x2b32e8('0x25df')]?_0x3d6d96['rows']:[],'id'):{},_0x22eaa3[_0x2b32e8('0x63c')]=_0x1d7526,_0x22eaa3['userProfileSection']=_0x1acc11&&_0x1acc11[_0x2b32e8('0x338')]==0x1?_0x1acc11[_0x2b32e8('0x25df')][0x0]:null,_0x22eaa3[_0x2b32e8('0xe28')]=_0x14316[_0x2b32e8('0x157e')](_0x22eaa3[_0x2b32e8('0xec9')]?_0x22eaa3[_0x2b32e8('0xec9')][_0x2b32e8('0xe28')]:null);_0x14316[_0x2b32e8('0x1516')]('admin')?_0x22eaa3['query']={'type':_0x2b32e8('0x2e4'),'sort':_0x2b32e8('0x1cee'),'limit':0xa,'page':0x1}:_0x22eaa3['query']={'id':_0x22eaa3[_0x2b32e8('0x9cb')]['id'],'channel':_0x2b32e8('0x10cf'),'type':_0x2b32e8('0x2e4'),'sort':_0x2b32e8('0x1cee'),'limit':0xa,'page':0x1};_0x22eaa3[_0x2b32e8('0x173b')]=_0x337c1c,_0x22eaa3['getQueues']=_0x58364b,_0x22eaa3['createOrEditFaxQueue']=_0x11210e,_0x22eaa3[_0x2b32e8('0x2510')]=_0x1dcb30,_0x22eaa3[_0x2b32e8('0x154c')]=_0x5e55a9,_0x22eaa3[_0x2b32e8('0x158d')]=_0x27cccc,_0x22eaa3['onSaveMember']=_0x52506b,_0x22eaa3['onRemoveMember']=_0x5d7377,_0x22eaa3[_0x2b32e8('0x1768')]=_0x131621,_0x22eaa3[_0x2b32e8('0x18e3')]=_0x1cd051,_0x22eaa3[_0x2b32e8('0x234')]=_0x23a704,_0x22eaa3[_0x2b32e8('0x11ad')]=_0x1d4067,_0x22eaa3[_0x2b32e8('0x1dc2')]=[],_0x283545()['forIn'](_0x22eaa3[_0x2b32e8('0x283e')],function(_0x3d55af){const _0x57d404=_0x2b32e8;_0x22eaa3[_0x57d404('0x1dc2')][_0x57d404('0x13e3')](_0x3d55af['id']);}),_0x2c4776['on']('fax_queue:save',_0x22eaa3[_0x2b32e8('0x158d')]),_0x2c4776['on'](_0x2b32e8('0x7b7'),_0x22eaa3[_0x2b32e8('0x25e9')]),_0x2c4776['on'](_0x2b32e8('0x274e'),_0x22eaa3['onRemoveMember']),_0x2c4776['on']('user:update',_0x22eaa3[_0x2b32e8('0x1768')]),_0x2c4776['on'](_0x2b32e8('0x11e0'),_0x22eaa3[_0x2b32e8('0x234')]),_0x2c4776['on']('userVoiceQueue:save',_0x22eaa3[_0x2b32e8('0x18e3')]);function _0x1d4067(){const _0x21b53b=_0x2b32e8,_0x3fd5e5=[];return _0x283545()[_0x21b53b('0x1b')](_0x22eaa3[_0x21b53b('0x283e')],function(_0x85b1f2,_0x3f666c){const _0x14801e=_0x21b53b;_0x85b1f2[_0x14801e('0x120')]=0x0,_0x85b1f2[_0x14801e('0xc65')]=0x0,_0x22eaa3['queues'][_0x3f666c][_0x14801e('0x1713')]={},_0x3fd5e5[_0x14801e('0x13e3')](_0x24a07d[_0x14801e('0x1cc3')]['getMembers']({'id':_0x3f666c})[_0x14801e('0x1714')]),_0x22eaa3[_0x14801e('0x274c')][_0x3f666c]&&_0x283545()[_0x14801e('0x2503')](_0x85b1f2,_0x283545()[_0x14801e('0x41b')](_0x22eaa3['rpcQueues'][_0x3f666c],_0x3e5b5f));}),_0x3d53f6[_0x21b53b('0x1def')](_0x3fd5e5)[_0x21b53b('0x2788')](function(_0x4edf0d){const _0x37fbe2=_0x21b53b;for(let _0xda9e7c=0x0;_0xda9e7c<_0x4edf0d['length'];_0xda9e7c+=0x1){for(let _0x542af8=0x0;_0x542af8<_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')]['length'];_0x542af8++){_0x4edf0d[_0xda9e7c]['rows'][_0x542af8][_0x37fbe2('0x120')]&&_0x22eaa3[_0x37fbe2('0x283e')][_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')][_0x542af8]['FaxQueueId']][_0x37fbe2('0x120')]++,_0x22eaa3[_0x37fbe2('0x283e')][_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')][_0x542af8][_0x37fbe2('0xa01')]][_0x37fbe2('0xc65')]++,_0x22eaa3['queues'][_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')][_0x542af8][_0x37fbe2('0xa01')]][_0x37fbe2('0x1713')][_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')][_0x542af8][_0x37fbe2('0x3bb')]]=_0x4edf0d[_0xda9e7c][_0x37fbe2('0x25df')][_0x542af8][_0x37fbe2('0xa01')];}}})[_0x21b53b('0x1cb5')](function(_0x4c554e){const _0x222823=_0x21b53b;console[_0x222823('0x5e8')](_0x4c554e);});}function _0x27cccc(_0x2f8af6){const _0x4d2a66=_0x2b32e8;_0x22eaa3[_0x4d2a66('0x283e')][_0x2f8af6['id']]&&_0x283545()['merge'](_0x22eaa3['queues'][_0x2f8af6['id']],_0x283545()['pick'](_0x2f8af6,_0x3e5b5f));}function _0x52506b(_0x18f6bd){const _0x390a30=_0x2b32e8;_0x22eaa3[_0x390a30('0x283e')][_0x18f6bd[_0x390a30('0xa01')]]&&_0x22eaa3['queues'][_0x18f6bd[_0x390a30('0xa01')]][_0x390a30('0xc65')]++;}function _0x5d7377(_0x2b810a){const _0x5208ac=_0x2b32e8;_0x22eaa3[_0x5208ac('0x283e')][_0x2b810a[_0x5208ac('0xa01')]]&&_0x22eaa3[_0x5208ac('0x283e')][_0x2b810a[_0x5208ac('0xa01')]][_0x5208ac('0xc65')]--;}function _0x131621(_0x56ccb8){const _0x4155e9=_0x2b32e8;console[_0x4155e9('0x10df')](_0x4155e9('0x1768'),_0x56ccb8);if(_0x56ccb8[_0x4155e9('0x2a1')])_0x283545()[_0x4155e9('0x1b')](_0x22eaa3[_0x4155e9('0x283e')],function(_0x279cbb){const _0x4ad87a=_0x4155e9;_0x279cbb['agents'][_0x56ccb8['id']]&&(_0x279cbb[_0x4ad87a('0x120')]+=0x1,console[_0x4ad87a('0x10df')](_0x4ad87a('0x619')));});else!_0x56ccb8[_0x4155e9('0x2a1')]&&_0x283545()[_0x4155e9('0x1b')](_0x22eaa3[_0x4155e9('0x283e')],function(_0x1a0a00){const _0x148bc9=_0x4155e9;_0x1a0a00[_0x148bc9('0x1713')][_0x56ccb8['id']]&&(_0x1a0a00[_0x148bc9('0x120')]>0x0&&(_0x1a0a00['paused']-=0x1,console['log'](_0x148bc9('0x1826'))));});}function _0x1cd051(_0x259605){const _0x193669=_0x2b32e8;console[_0x193669('0x10df')](_0x193669('0x388'),_0x259605),_0x22eaa3[_0x193669('0x283e')][_0x259605[_0x193669('0xa01')]]&&(_0x22eaa3['queues'][_0x259605[_0x193669('0xa01')]][_0x193669('0xc65')]+=0x1,_0x22eaa3[_0x193669('0x283e')][_0x259605[_0x193669('0xa01')]]['agents'][_0x259605[_0x193669('0x3bb')]]=_0x259605['FaxQueueId']);}function _0x23a704(_0xc5d332){const _0x17fd0d=_0x2b32e8;console[_0x17fd0d('0x10df')](_0x17fd0d('0x234'),_0xc5d332),_0x22eaa3[_0x17fd0d('0x283e')][_0xc5d332['FaxQueueId']]&&_0x22eaa3[_0x17fd0d('0x283e')][_0xc5d332[_0x17fd0d('0xa01')]][_0x17fd0d('0xc65')]>0x0&&(_0x22eaa3[_0x17fd0d('0x283e')][_0xc5d332[_0x17fd0d('0xa01')]][_0x17fd0d('0xc65')]-=0x1,delete _0x22eaa3['queues'][_0xc5d332[_0x17fd0d('0xa01')]][_0x17fd0d('0x1713')][_0xc5d332['UserId']]);}let _0x46f721=!![],_0x48ba55=0x1;_0x174cbf[_0x2b32e8('0x1662')]('vm.query.filter',function(_0x443f2f,_0x3e9e97){const _0x2f0192=_0x2b32e8;_0x46f721?_0x22d11d(function(){_0x46f721=![];}):(!_0x3e9e97&&(_0x48ba55=_0x22eaa3[_0x2f0192('0x135a')][_0x2f0192('0x23f5')]),_0x443f2f!==_0x3e9e97&&(_0x22eaa3[_0x2f0192('0x135a')][_0x2f0192('0x23f5')]=0x1),!_0x443f2f&&(_0x22eaa3[_0x2f0192('0x135a')][_0x2f0192('0x23f5')]=_0x48ba55),_0x22eaa3[_0x2f0192('0x138a')]());});function _0x337c1c(_0x583d3f){const _0x198d8b=_0x2b32e8;_0x22eaa3[_0x198d8b('0x338')]=_0x583d3f['count'],_0x22eaa3[_0x198d8b('0x283e')]=_0x583d3f?_0x283545()[_0x198d8b('0x13cf')](_0x583d3f[_0x198d8b('0x25df')]?_0x583d3f[_0x198d8b('0x25df')]:[],'id'):{};if(_0x583d3f[_0x198d8b('0x25df')]){_0x22eaa3['order']=[];for(let _0x175dda=0x0;_0x175dda<_0x583d3f[_0x198d8b('0x25df')][_0x198d8b('0x2566')];_0x175dda++){_0x22eaa3['order'][_0x198d8b('0x13e3')](_0x583d3f[_0x198d8b('0x25df')][_0x175dda]['id']);}}_0x1d4067();}function _0x58364b(){const _0x789142=_0x2b32e8;_0x22eaa3[_0x789142('0x135a')]['offset']=(_0x22eaa3[_0x789142('0x135a')][_0x789142('0x23f5')]-0x1)*_0x22eaa3[_0x789142('0x135a')]['limit'],_0x14316[_0x789142('0x1516')](_0x789142('0xe23'))?_0x22eaa3['promise']=_0x24a07d['faxQueue'][_0x789142('0x1335')](_0x22eaa3[_0x789142('0x135a')],_0x337c1c)[_0x789142('0x1714')]:(_0x22eaa3[_0x789142('0x135a')]['id']=_0x22eaa3[_0x789142('0x63c')]['id'],_0x22eaa3[_0x789142('0x135a')][_0x789142('0xb13')]='FaxQueues',_0x22eaa3['promise']=_0x24a07d[_0x789142('0x63c')][_0x789142('0xa1')](_0x22eaa3[_0x789142('0x135a')],_0x337c1c)[_0x789142('0x1714')]);}function _0x11210e(_0x463565,_0x1ff04c){const _0x521992=_0x2b32e8;_0x391f94[_0x521992('0x2fa')]({'controller':_0x521992('0xbfb'),'controllerAs':'vm','templateUrl':_0x18f3e0,'parent':angular[_0x521992('0x16b1')](_0xcf8cb4[_0x521992('0x945')]),'targetEvent':_0x463565,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1ff04c,'faxQueues':_0x283545()['values'](_0x22eaa3[_0x521992('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x22eaa3[_0x521992('0xe28')]}});}function _0x1dcb30(_0x4a816e,_0x18609e){const _0x495d92=_0x2b32e8;_0x391f94[_0x495d92('0x2fa')]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x534cb3,'parent':angular[_0x495d92('0x16b1')](_0xcf8cb4[_0x495d92('0x945')]),'targetEvent':_0x4a816e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x18609e,'faxQueues':_0x22eaa3[_0x495d92('0x283e')]?_0x22eaa3['queues'][_0x495d92('0x25df')]:[],'realtime':![],'crudPermissions':_0x22eaa3['crudPermissions']}});}function _0x5e55a9(_0x457d56){const _0x3dbda0=_0x2b32e8;return _0x24a07d[_0x3dbda0('0x1cc3')][_0x3dbda0('0x2740')](_0x457d56)[_0x3dbda0('0x1714')]['then'](function(){const _0x4bb9af=_0x3dbda0;_0x120597[_0x4bb9af('0x173b')]({'title':_0x4bb9af('0xc31'),'msg':_0x457d56[_0x4bb9af('0x1a8d')]?_0x457d56['name']+_0x4bb9af('0x6f8'):''});})[_0x3dbda0('0x1cb5')](function(_0x31ade3){const _0x1a9f6e=_0x3dbda0;_0x120597[_0x1a9f6e('0x5e8')]({'title':_0x1a9f6e('0xa30'),'msg':_0x31ade3[_0x1a9f6e('0x15e2')]});});}_0x174cbf['$on'](_0x2b32e8('0x26ac'),function(){const _0x18e404=_0x2b32e8;_0x2c4776['removeAllListeners'](_0x18e404('0xdb1')),_0x2c4776['removeAllListeners'](_0x18e404('0x274e')),_0x2c4776[_0x18e404('0x277f')]('userFaxQueue:save'),_0x2c4776['removeAllListeners']('user:update'),_0x2c4776[_0x18e404('0x277f')](_0x18e404('0x11e0')),_0x2c4776[_0x18e404('0x277f')](_0x18e404('0x454'));});}const _0x5c25e9=_0x867b1d;function _0xfaa89b(){const _0x20de69=_0x34e79e;return{'status':{'registered':_0x20de69('0xc38'),'unregistered':_0x20de69('0x1ad6'),'lagged':_0x20de69('0x1ad6'),'reachable':_0x20de69('0xc38'),'unreachable':_0x20de69('0x1ad6'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x20de69('0x368'),'inuse':_0x20de69('0x1b19'),'busy':'red-300-fg\x20icon-phone-locked','invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x20de69('0x165d'),'ringing':_0x20de69('0x18d1'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x20de69('0x234e')},'channelStatus':{'ring':_0x20de69('0x18d1'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x20de69('0x393')},'channelStatusOut':{'ring':_0x20de69('0x2223'),'up':_0x20de69('0x699'),'hangup':_0x20de69('0x393')}};}const _0xd4d0d1=_0xfaa89b;_0x1275df[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'socket'];function _0x1275df(_0x3c7ab4,_0x2a6a1c,_0x4471f0){const _0x6765d5=_0x34e79e,_0x329a71=this;_0x4471f0[_0x6765d5('0x16a4')](),_0x4471f0[_0x6765d5('0x26c')](),_0x329a71[_0x6765d5('0xcb3')]=0x0;switch(_0x2a6a1c[_0x6765d5('0x1c7f')]['name']){case _0x6765d5('0x1082'):_0x329a71['selectedTab']=0x0;break;case _0x6765d5('0x903'):_0x329a71[_0x6765d5('0xcb3')]=0x1;break;case _0x6765d5('0x1b6f'):_0x329a71['selectedTab']=0x2;break;case _0x6765d5('0x9b4'):_0x329a71[_0x6765d5('0xcb3')]=0x3;break;default:_0x329a71['selectedTab']=0x0,_0x2a6a1c['go']('app.fax.realtime.agents');}_0x3c7ab4[_0x6765d5('0x1662')](_0x6765d5('0x362'),function(_0x52cbeb,_0x3c0ce5){const _0x9fab5d=_0x6765d5;if(_0x52cbeb!==_0x3c0ce5)switch(_0x52cbeb){case 0x0:_0x2a6a1c['go'](_0x9fab5d('0x1082'));break;case 0x1:_0x2a6a1c['go'](_0x9fab5d('0x903'));break;case 0x2:_0x2a6a1c['go']('app.fax.realtime.queues');break;case 0x3:_0x2a6a1c['go'](_0x9fab5d('0x9b4'));break;default:_0x2a6a1c['go'](_0x9fab5d('0x1082'));}});}const _0x3ea3b0=_0x1275df;_0x45e245[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x20f2'),_0x34e79e('0x1330'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x1fc6'),_0x34e79e('0x1382'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x45e245(_0xc38707,_0x4bb69e,_0x318e76,_0x348d7d,_0x4511cf,_0x3bde2f,_0x7acd9e,_0x588a4f,_0x5518bb,_0x51aa47,_0xd5fa4d,_0x233ce9){const _0x5eac2c=_0x34e79e,_0x590dde=this,_0x5892dc=[_0x5eac2c('0x1b51'),_0x5eac2c('0x27b8'),_0x5eac2c('0x478'),_0x5eac2c('0x1c6a'),_0x5eac2c('0x1fee'),_0x5eac2c('0x2838'),'state',_0x5eac2c('0x1b51')];_0x590dde[_0x5eac2c('0x9cb')]=_0x233ce9[_0x5eac2c('0x24cc')](),_0x590dde['count']=_0x348d7d[_0x5eac2c('0x338')],_0x590dde['trunks']=_0x348d7d?_0x348d7d[_0x5eac2c('0x25df')]:[],_0x590dde[_0x5eac2c('0x1330')]=_0x4511cf?_0x4511cf[_0x5eac2c('0x25df')]?_0x4511cf[_0x5eac2c('0x25df')]:[]:[],_0x590dde['query']={'fields':_0x5eac2c('0x1338'),'active':!![],'sort':_0x5eac2c('0x1cee'),'limit':0xa,'page':0x1},_0x590dde['statusClass']=_0x588a4f['status'],_0x590dde[_0x5eac2c('0x19fc')]=_0x588a4f[_0x5eac2c('0x249b')],_0x590dde[_0x5eac2c('0x63c')]=_0x51aa47,_0x590dde[_0x5eac2c('0xec9')]=_0xd5fa4d&&_0xd5fa4d['count']==0x1?_0xd5fa4d[_0x5eac2c('0x25df')][0x0]:null,_0x590dde[_0x5eac2c('0xe28')]=_0x233ce9['parseCrudPermissions'](_0x590dde[_0x5eac2c('0xec9')]?_0x590dde[_0x5eac2c('0xec9')][_0x5eac2c('0xe28')]:null),_0x590dde[_0x5eac2c('0x173b')]=_0x42d911,_0x590dde['$onInit']=_0x328f08,_0x590dde['showInfo']=_0x143574,_0x590dde[_0x5eac2c('0x8f0')]=_0x4d17d3,_0x590dde[_0x5eac2c('0x11d')]=_0x5e3685,_0x590dde['onSave']=_0x2e4de8,_0x7acd9e['on'](_0x5eac2c('0xa13'),_0x590dde[_0x5eac2c('0x158d')]);function _0x328f08(){const _0x195794=_0x5eac2c;let _0x3e4d12;for(let _0x3afdfc=0x0;_0x3afdfc<_0x590dde[_0x195794('0x20f2')]['length'];_0x3afdfc+=0x1){_0x3e4d12=_0x283545()['findIndex'](_0x590dde[_0x195794('0x1330')],['id',_0x590dde[_0x195794('0x20f2')][_0x3afdfc]['id']]),_0x3e4d12>=0x0&&_0x283545()['merge'](_0x590dde['trunks'][_0x3afdfc],_0x283545()[_0x195794('0x41b')](_0x590dde['rpcTrunks'][_0x3e4d12],_0x5892dc));}}function _0x143574(_0x3aa7c9){const _0x1cdbbb=_0x5eac2c;_0x318e76[_0x1cdbbb('0x2fa')](_0x318e76[_0x1cdbbb('0x204f')]()['clickOutsideToClose'](!![])[_0x1cdbbb('0x14e4')](_0x1cdbbb('0xcbb'))['htmlContent']('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x1cdbbb('0x24d0')](_0x3aa7c9));}function _0x39ab94(_0x3b5642,_0x3dc816,_0x30467b){const _0x54d00a=_0x5eac2c;_0x3dc816>=0x0&&_0x283545()[_0x54d00a('0x2503')](_0x3b5642[_0x3dc816],_0x283545()[_0x54d00a('0x41b')](_0x30467b,_0x5892dc));}function _0x2e4de8(_0x2a6943){const _0x5917d6=_0x5eac2c,_0x1a8dbd=_0x283545()[_0x5917d6('0x1855')](_0x590dde[_0x5917d6('0x20f2')],['id',_0x2a6943['id']]),_0xbd3640=_0x283545()[_0x5917d6('0x1855')](_0x590dde[_0x5917d6('0x1330')],['id',_0x2a6943['id']]);_0x39ab94(_0x590dde['trunks'],_0x1a8dbd,_0x2a6943),_0x39ab94(_0x590dde[_0x5917d6('0x1330')],_0xbd3640,_0x2a6943);}let _0x29c20d=!![],_0x419977=0x1;_0xc38707['$watch']('vm.query.filter',function(_0xc5de8a,_0x183897){const _0x2efca9=_0x5eac2c;_0x29c20d?_0x4bb69e(function(){_0x29c20d=![];}):(!_0x183897&&(_0x419977=_0x590dde['query']['page']),_0xc5de8a!==_0x183897&&(_0x590dde[_0x2efca9('0x135a')][_0x2efca9('0x23f5')]=0x1),!_0xc5de8a&&(_0x590dde['query'][_0x2efca9('0x23f5')]=_0x419977),_0x590dde[_0x2efca9('0x8f0')]());});function _0x42d911(_0x323098){const _0x1e3350=_0x5eac2c;_0x590dde['count']=_0x323098[_0x1e3350('0x338')],_0x590dde[_0x1e3350('0x20f2')]=_0x323098?_0x323098[_0x1e3350('0x25df')]?_0x323098['rows']:[]:[],_0x328f08();}function _0x4d17d3(){const _0x3b2311=_0x5eac2c;_0x590dde[_0x3b2311('0x135a')][_0x3b2311('0x19e')]=(_0x590dde[_0x3b2311('0x135a')][_0x3b2311('0x23f5')]-0x1)*_0x590dde['query'][_0x3b2311('0x68e')],_0x233ce9[_0x3b2311('0x1516')](_0x3b2311('0xe23'))?_0x590dde[_0x3b2311('0x1808')]=_0x3bde2f[_0x3b2311('0x2549')]['get'](_0x590dde[_0x3b2311('0x135a')],_0x42d911)[_0x3b2311('0x1714')]:(_0x590dde[_0x3b2311('0x135a')]['id']=_0x590dde['userProfile']['id'],_0x590dde[_0x3b2311('0x135a')][_0x3b2311('0xb13')]=_0x3b2311('0xca4'),_0x590dde[_0x3b2311('0x1808')]=_0x3bde2f[_0x3b2311('0x63c')][_0x3b2311('0xa1')](_0x590dde[_0x3b2311('0x135a')],_0x42d911)['$promise']);}_0xc38707['$on'](_0x5eac2c('0x26ac'),function(){const _0xd0f559=_0x5eac2c;_0x7acd9e[_0xd0f559('0x277f')](_0xd0f559('0xa13'));});function _0x5e3685(_0x3efdbd,_0x5c67e7){const _0x30a35d=_0x5eac2c;_0x5518bb['go'](_0x30a35d('0x108c'),{'id':_0x5c67e7['id']});}}const _0x4f184f=_0x45e245;_0x4d95b5[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x4d95b5(_0x28f45d){const _0x4476e4=_0x34e79e;_0x28f45d[_0x4476e4('0x249b')](_0x4476e4('0x16d1'),{'url':_0x4476e4('0x2090'),'views':{'content@app':{'templateUrl':_0x58873e,'controller':_0x4476e4('0x1a52')}},'resolve':{'userProfile':['apiResolver',_0x4476e4('0x1b04'),function(_0x454701,_0x1e4439){const _0x2ad38f=_0x4476e4;return _0x1e4439[_0x2ad38f('0x1516')](_0x2ad38f('0xe23'))?null:_0x454701[_0x2ad38f('0x2322')](_0x2ad38f('0x231d'),{'fields':_0x2ad38f('0x3f0'),'id':_0x1e4439[_0x2ad38f('0x24cc')]()[_0x2ad38f('0x237f')]});}],'userProfileSection':['apiResolver',_0x4476e4('0x1b04'),function(_0x4f2461,_0x421c90){const _0x246e5c=_0x4476e4;return _0x421c90[_0x246e5c('0x1516')]('admin')?null:_0x4f2461[_0x246e5c('0x2322')](_0x246e5c('0x22ca'),{'fields':_0x246e5c('0xe2c'),'userProfileId':_0x421c90['getCurrentUser']()[_0x246e5c('0x237f')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0x4476e4('0x249b')](_0x4476e4('0x1082'),{'url':'/agents','controller':_0x4476e4('0x23a1'),'templateUrl':_0x4cd1c6,'resolve':{'pauses':[_0x4476e4('0x1318'),function(_0x5e5b5a){const _0x272f51=_0x4476e4;return _0x5e5b5a['resolve'](_0x272f51('0x6c1'),{'nolimit':!![]});}],'agents':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x172842,_0x27c1d1){const _0x46eec3=_0x4476e4;return _0x27c1d1[_0x46eec3('0x1516')]('admin')?_0x172842[_0x46eec3('0x2322')](_0x46eec3('0x144f'),{'fields':_0x46eec3('0xed0'),'role':_0x46eec3('0x188b'),'sort':_0x46eec3('0x2831'),'nolimit':!![]}):_0x172842[_0x46eec3('0x2322')](_0x46eec3('0x27c5'),{'id':_0x27c1d1[_0x46eec3('0x24cc')]()['userProfileId'],'section':_0x46eec3('0x1f72'),'fields':_0x46eec3('0xed0'),'role':_0x46eec3('0x188b'),'sort':_0x46eec3('0x2831'),'nolimit':!![]});}],'userProfile':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x2bf5a2,_0x55c23b){const _0x1e09ab=_0x4476e4;return _0x55c23b[_0x1e09ab('0x1516')](_0x1e09ab('0xe23'))?null:_0x2bf5a2[_0x1e09ab('0x2322')](_0x1e09ab('0x231d'),{'fields':_0x1e09ab('0x3f0'),'id':_0x55c23b[_0x1e09ab('0x24cc')]()[_0x1e09ab('0x237f')]});}],'userProfileSection':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x5eee9c,_0x424546){const _0x2cac58=_0x4476e4;return _0x424546[_0x2cac58('0x1516')](_0x2cac58('0xe23'))?null:_0x5eee9c[_0x2cac58('0x2322')](_0x2cac58('0x22ca'),{'fields':_0x2cac58('0xe2c'),'userProfileId':_0x424546[_0x2cac58('0x24cc')]()[_0x2cac58('0x237f')],'sectionId':0xca});}],'rpcAgents':[_0x4476e4('0x1318'),function(_0x29a040){const _0x3405c7=_0x4476e4;return _0x29a040[_0x3405c7('0x2322')](_0x3405c7('0x21f7'));}]},'authenticate':!![],'permissionId':0x38e})[_0x4476e4('0x249b')](_0x4476e4('0x903'),{'url':_0x4476e4('0x186e'),'controller':_0x4476e4('0xbd7'),'templateUrl':_0x1b8961,'resolve':{'trunks':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x5c5a76,_0x342eef){const _0x22c09e=_0x4476e4;return _0x342eef[_0x22c09e('0x1516')](_0x22c09e('0xe23'))?_0x5c5a76['resolve'](_0x22c09e('0x7d4'),{'fields':_0x22c09e('0x1338'),'active':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5c5a76[_0x22c09e('0x2322')]('userProfile@getResources',{'id':_0x342eef[_0x22c09e('0x24cc')]()[_0x22c09e('0x237f')],'section':_0x22c09e('0xca4'),'fields':'id,name','active':!![],'sort':_0x22c09e('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4476e4('0x1318'),'Auth',function(_0x5aea4f,_0x1654ba){const _0x2ad5cb=_0x4476e4;return _0x1654ba['hasRole'](_0x2ad5cb('0xe23'))?null:_0x5aea4f[_0x2ad5cb('0x2322')](_0x2ad5cb('0x231d'),{'fields':'id,name,crudPermissions','id':_0x1654ba[_0x2ad5cb('0x24cc')]()[_0x2ad5cb('0x237f')]});}],'userProfileSection':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x2cc66b,_0x59839c){const _0x40a1d0=_0x4476e4;return _0x59839c[_0x40a1d0('0x1516')](_0x40a1d0('0xe23'))?null:_0x2cc66b['resolve'](_0x40a1d0('0x22ca'),{'fields':_0x40a1d0('0xe2c'),'userProfileId':_0x59839c[_0x40a1d0('0x24cc')]()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x345e83){const _0x3e272f=_0x4476e4;return _0x345e83[_0x3e272f('0x2322')]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x38e})[_0x4476e4('0x249b')](_0x4476e4('0x1b6f'),{'url':_0x4476e4('0x1c30'),'controller':_0x4476e4('0x81c'),'templateUrl':_0x53d561,'resolve':{'queues':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x502221,_0x3b94c3){const _0x24b3c9=_0x4476e4;return _0x3b94c3[_0x24b3c9('0x1516')](_0x24b3c9('0xe23'))?_0x502221[_0x24b3c9('0x2322')](_0x24b3c9('0x1dd5'),{'type':'inbound','sort':_0x24b3c9('0x1cee'),'limit':0xa,'offset':0x0}):_0x502221['resolve'](_0x24b3c9('0x27c5'),{'id':_0x3b94c3[_0x24b3c9('0x24cc')]()[_0x24b3c9('0x237f')],'section':_0x24b3c9('0x1d6d'),'channel':_0x24b3c9('0x10cf'),'type':_0x24b3c9('0x2e4'),'sort':_0x24b3c9('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':[_0x4476e4('0x1318'),'Auth',function(_0x5650ae,_0x5b0a00){const _0x78d9e2=_0x4476e4;return _0x5b0a00[_0x78d9e2('0x1516')](_0x78d9e2('0xe23'))?null:_0x5650ae[_0x78d9e2('0x2322')]('userProfile@get',{'fields':_0x78d9e2('0x3f0'),'id':_0x5b0a00[_0x78d9e2('0x24cc')]()[_0x78d9e2('0x237f')]});}],'userProfileSection':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x554b60,_0x547685){const _0xfb9ed4=_0x4476e4;return _0x547685[_0xfb9ed4('0x1516')](_0xfb9ed4('0xe23'))?null:_0x554b60[_0xfb9ed4('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x547685[_0xfb9ed4('0x24cc')]()['userProfileId'],'sectionId':0x385});}],'rpcQueues':[_0x4476e4('0x1318'),function(_0x2ce96c){const _0x1e1f3b=_0x4476e4;return _0x2ce96c[_0x1e1f3b('0x2322')](_0x1e1f3b('0xea2'));}]},'authenticate':!![],'permissionId':0x38e})['state']('app.fax.realtime.accounts',{'url':'/accounts','controller':'FaxAccountsRealtimeController\x20as\x20vm','templateUrl':_0x4b18ae,'resolve':{'faxAccounts':[_0x4476e4('0x1318'),'Auth',function(_0x5e3608,_0x8eb268){const _0x17c522=_0x4476e4;return _0x8eb268[_0x17c522('0x1516')](_0x17c522('0xe23'))?_0x5e3608[_0x17c522('0x2322')](_0x17c522('0x357'),{'sort':_0x17c522('0x1cee'),'limit':0xa,'offset':0x0}):_0x5e3608[_0x17c522('0x2322')](_0x17c522('0x27c5'),{'id':_0x8eb268['getCurrentUser']()[_0x17c522('0x237f')],'section':_0x17c522('0x1819'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x377a73,_0x10727f){const _0x52615e=_0x4476e4;return _0x10727f[_0x52615e('0x1516')](_0x52615e('0xe23'))?null:_0x377a73['resolve'](_0x52615e('0x231d'),{'fields':_0x52615e('0x3f0'),'id':_0x10727f[_0x52615e('0x24cc')]()[_0x52615e('0x237f')]});}],'userProfileSection':[_0x4476e4('0x1318'),_0x4476e4('0x1b04'),function(_0x5a40e7,_0x220c3d){const _0x35a258=_0x4476e4;return _0x220c3d[_0x35a258('0x1516')]('admin')?null:_0x5a40e7[_0x35a258('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x220c3d[_0x35a258('0x24cc')]()[_0x35a258('0x237f')],'sectionId':0x386});}],'rpcFaxAccounts':['apiResolver',function(_0x4e72b9){return _0x4e72b9['resolve']('rpc@getFaxAccounts');}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x16d1'),[])[_0x34e79e('0x1a22')](_0x4d95b5)[_0x34e79e('0xb44')]('FaxAccountsRealtimeController',_0x20d37c)['controller'](_0x34e79e('0x1607'),_0x479f80)[_0x34e79e('0xb44')](_0x34e79e('0x16c'),_0x5c25e9)[_0x34e79e('0x227e')](_0x34e79e('0x1fc6'),_0xd4d0d1)['controller'](_0x34e79e('0x8a6'),_0x3ea3b0)[_0x34e79e('0xb44')](_0x34e79e('0x1758'),_0x4f184f),_0x38b1a3['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0xe9b'),_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x38b1a3(_0x43397e,_0x1088fb,_0x4122be,_0x4f5e54,_0x26bb91,_0xd91ee2,_0x452dff,_0xb00330,_0xfa44d1,_0x41d081,_0x4184aa,_0x25425b,_0x221073,_0x23cac7){const _0x1295f7=_0x34e79e,_0x30b718=this;_0x30b718[_0x1295f7('0x9cb')]=_0x4184aa[_0x1295f7('0x24cc')](),_0x30b718['errors']=[],_0x30b718[_0x1295f7('0x1af0')]=_0x221073,_0x30b718[_0x1295f7('0x130d')]=_0x25425b,_0x30b718[_0x1295f7('0xe28')]=_0x23cac7,_0x30b718['hasModulePermissions']={},_0x30b718['passwordPattern']=_0x30b718[_0x1295f7('0x1af0')]&&_0x30b718[_0x1295f7('0x1af0')][_0x1295f7('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30b718['title']=_0x1295f7('0x269f'),_0x30b718['faxAccount']=angular[_0x1295f7('0x2669')](_0xfa44d1),_0x30b718[_0x1295f7('0xe9b')]=_0xb00330,_0x30b718[_0x1295f7('0x1d76')]=![];!_0x30b718['faxAccount']&&(_0x30b718[_0x1295f7('0x1fb8')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x30b718[_0x1295f7('0x14e4')]=_0x1295f7('0xffc'),_0x30b718[_0x1295f7('0x1d76')]=!![]);_0x1088fb['params']['id']&&(_0x30b718[_0x1295f7('0x1fb8')][_0x1295f7('0xfc2')]=_0x1088fb[_0x1295f7('0x4b9')]['id']);_0x30b718[_0x1295f7('0x21cb')]=_0x51a75c,_0x30b718[_0x1295f7('0xadc')]=_0x512fd9,_0x30b718[_0x1295f7('0x1901')]=_0x44e7f9,_0x30b718[_0x1295f7('0x2601')]=_0x5f11e4,_0x30b718['closeDialog']=_0x4c1e74,_0x4184aa[_0x1295f7('0x1516')]('admin')?_0x41d081[_0x1295f7('0x2549')]['get']({'fields':_0x1295f7('0x1338'),'sort':'name'})[_0x1295f7('0x1714')][_0x1295f7('0x2788')](function(_0x4571e7){const _0x23612c=_0x1295f7;_0x30b718[_0x23612c('0x20f2')]=_0x4571e7[_0x23612c('0x25df')]||[];})[_0x1295f7('0x1cb5')](function(_0x52a310){const _0x314483=_0x1295f7;_0x452dff['error']({'title':_0x52a310['status']?_0x314483('0x15d1')+_0x52a310['status']+_0x314483('0x1b0b')+_0x52a310[_0x314483('0x22ce')]:_0x314483('0x119d'),'msg':_0x52a310[_0x314483('0x11fc')]?JSON[_0x314483('0x1be0')](_0x52a310[_0x314483('0x11fc')]):_0x52a310['toString']()});}):_0x41d081[_0x1295f7('0x2549')]['get']({'fields':_0x1295f7('0x1338'),'sort':'name'})[_0x1295f7('0x1714')]['then'](function(_0x447b9d){const _0x1a53fc=_0x1295f7;_0x30b718[_0x1a53fc('0x20f2')]=_0x447b9d[_0x1a53fc('0x25df')]||[];})[_0x1295f7('0x2788')](function(){const _0x5e774a=_0x1295f7;return _0x41d081[_0x5e774a('0xec9')][_0x5e774a('0x1335')]({'userProfileId':_0x30b718['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x5e774a('0x1714')];})[_0x1295f7('0x2788')](function(_0x242119){const _0x187fc6=_0x1295f7,_0x3af16e=_0x242119&&_0x242119['rows']?_0x242119['rows'][0x0]:null;if(!_0x3af16e){const _0x3eb4ba=[];let _0x21beba=null;_0x30b718[_0x187fc6('0x1fb8')]&&(_0x21beba=_0x283545()['find'](_0x30b718[_0x187fc6('0x20f2')],{'id':Number(_0x30b718[_0x187fc6('0x1fb8')]['TrunkId'])}));for(let _0x5b65da=0x0;_0x5b65da<_0x30b718['trunks']['length'];_0x5b65da++){_0x21beba&&_0x30b718['trunks'][_0x5b65da]['id']===_0x21beba['id']&&(_0x30b718[_0x187fc6('0x20f2')][_0x5b65da][_0x187fc6('0x3bf')]=![],_0x3eb4ba[_0x187fc6('0x13e3')](_0x30b718[_0x187fc6('0x20f2')][_0x5b65da]));}_0x30b718[_0x187fc6('0x20f2')]=_0x3eb4ba;}else{if(!_0x3af16e[_0x187fc6('0x1c0a')])return _0x41d081[_0x187fc6('0x1050')][_0x187fc6('0x1335')]({'sectionId':_0x3af16e['id']})[_0x187fc6('0x1714')]['then'](function(_0x5f3f96){const _0x1f3fd6=_0x187fc6,_0x1515ba=_0x283545()[_0x1f3fd6('0x155d')](_0x5f3f96['rows'],function(_0x1b6768){const _0x50478c=_0x1f3fd6;return _0x283545()['find'](_0x30b718[_0x50478c('0x20f2')],{'id':_0x1b6768[_0x50478c('0x2707')]});});let _0x498bdd=null;_0x30b718['faxAccount']&&(_0x498bdd=_0x283545()['find'](_0x30b718[_0x1f3fd6('0x20f2')],{'id':Number(_0x30b718['faxAccount']['TrunkId'])}));if(_0x498bdd&&!_0x283545()[_0x1f3fd6('0xc5d')](_0x1515ba,['id',_0x498bdd['id']])){const _0x5236f9=_0x283545()[_0x1f3fd6('0x20e8')](_0x30b718[_0x1f3fd6('0x20f2')],{'id':_0x498bdd['id']});_0x5236f9[_0x1f3fd6('0x3bf')]=![],_0x1515ba[_0x1f3fd6('0x13e3')](_0x5236f9);}_0x30b718[_0x1f3fd6('0x20f2')]=_0x1515ba;});}})[_0x1295f7('0x1cb5')](function(_0x597a76){const _0x3fa5b5=_0x1295f7;_0x452dff[_0x3fa5b5('0x5e8')]({'title':_0x597a76[_0x3fa5b5('0x1b51')]?_0x3fa5b5('0x15d1')+_0x597a76[_0x3fa5b5('0x1b51')]+_0x3fa5b5('0x1b0b')+_0x597a76[_0x3fa5b5('0x22ce')]:_0x3fa5b5('0xdb5'),'msg':_0x597a76[_0x3fa5b5('0x11fc')]?JSON['stringify'](_0x597a76['data']):_0x597a76[_0x3fa5b5('0x17df')]()});}),_0x4184aa[_0x1295f7('0x1516')]('admin')?_0x41d081['cmList']['get']({'fields':_0x1295f7('0x1338'),'sort':_0x1295f7('0x1a8d')})[_0x1295f7('0x1714')][_0x1295f7('0x2788')](function(_0x1f3c72){const _0x5c9190=_0x1295f7;_0x30b718['lists']=_0x1f3c72[_0x5c9190('0x25df')]||[];})[_0x1295f7('0x1cb5')](function(_0x671043){const _0xec2b77=_0x1295f7;_0x452dff[_0xec2b77('0x5e8')]({'title':_0x671043[_0xec2b77('0x1b51')]?'API:'+_0x671043['status']+_0xec2b77('0x1b0b')+_0x671043[_0xec2b77('0x22ce')]:'SYSTEM:GET_LISTS','msg':_0x671043[_0xec2b77('0x11fc')]?JSON[_0xec2b77('0x1be0')](_0x671043[_0xec2b77('0x11fc')]):_0x671043[_0xec2b77('0x17df')]()});}):_0x41d081[_0x1295f7('0x1ba4')]['get']({'fields':_0x1295f7('0x1338'),'sort':_0x1295f7('0x1a8d')})[_0x1295f7('0x1714')][_0x1295f7('0x2788')](function(_0x545cf8){const _0x1f1859=_0x1295f7;_0x30b718[_0x1f1859('0x2')]=_0x545cf8[_0x1f1859('0x25df')]||[];})['then'](function(){const _0x1cd6b8=_0x1295f7;return _0x41d081['userProfileSection'][_0x1cd6b8('0x1335')]({'userProfileId':_0x30b718[_0x1cd6b8('0x9cb')][_0x1cd6b8('0x237f')],'sectionId':0x12d})[_0x1cd6b8('0x1714')];})['then'](function(_0x38c151){const _0x237558=_0x1295f7,_0x4270bd=_0x38c151&&_0x38c151[_0x237558('0x25df')]?_0x38c151[_0x237558('0x25df')][0x0]:null;if(!_0x4270bd){const _0x4431e2=[];let _0x2349e4=null;_0x30b718['faxAccount']&&(_0x2349e4=_0x283545()[_0x237558('0x20e8')](_0x30b718[_0x237558('0x2')],{'id':Number(_0x30b718[_0x237558('0x1fb8')][_0x237558('0x354')])}));for(let _0x5a219b=0x0;_0x5a219b<_0x30b718[_0x237558('0x2')][_0x237558('0x2566')];_0x5a219b++){_0x2349e4&&_0x30b718[_0x237558('0x2')][_0x5a219b]['id']===_0x2349e4['id']&&(_0x30b718['lists'][_0x5a219b]['canSelect']=![],_0x4431e2[_0x237558('0x13e3')](_0x30b718[_0x237558('0x2')][_0x5a219b]));}_0x30b718[_0x237558('0x2')]=_0x4431e2;}else{if(!_0x4270bd['autoAssociation'])return _0x41d081[_0x237558('0x1050')][_0x237558('0x1335')]({'sectionId':_0x4270bd['id']})[_0x237558('0x1714')][_0x237558('0x2788')](function(_0x2555cf){const _0x309d73=_0x237558,_0xe07387=_0x283545()['map'](_0x2555cf[_0x309d73('0x25df')],function(_0x149e4b){const _0x1d00ce=_0x309d73;return _0x283545()[_0x1d00ce('0x20e8')](_0x30b718[_0x1d00ce('0x2')],{'id':_0x149e4b[_0x1d00ce('0x2707')]});});let _0x366724=null;_0x30b718[_0x309d73('0x1fb8')]&&(_0x366724=_0x283545()['find'](_0x30b718[_0x309d73('0x2')],{'id':Number(_0x30b718[_0x309d73('0x1fb8')][_0x309d73('0x354')])}));if(_0x366724&&!_0x283545()[_0x309d73('0xc5d')](_0xe07387,['id',_0x366724['id']])){const _0x5b6fd2=_0x283545()[_0x309d73('0x20e8')](_0x30b718['lists'],{'id':_0x366724['id']});_0x5b6fd2[_0x309d73('0x3bf')]=![],_0xe07387['push'](_0x5b6fd2);}_0x30b718[_0x309d73('0x2')]=_0xe07387;});}})['catch'](function(_0x4814de){const _0x3f551d=_0x1295f7;_0x452dff['error']({'title':_0x4814de[_0x3f551d('0x1b51')]?'API:'+_0x4814de[_0x3f551d('0x1b51')]+_0x3f551d('0x1b0b')+_0x4814de[_0x3f551d('0x22ce')]:_0x3f551d('0x999'),'msg':_0x4814de[_0x3f551d('0x11fc')]?JSON[_0x3f551d('0x1be0')](_0x4814de[_0x3f551d('0x11fc')]):_0x4814de['toString']()});});function _0x51a75c(){const _0x4f349c=_0x1295f7;_0x30b718[_0x4f349c('0x25be')]=[],_0x41d081[_0x4f349c('0x1fb8')][_0x4f349c('0x1485')](_0x30b718[_0x4f349c('0x1fb8')])['$promise'][_0x4f349c('0x2788')](function(_0x33ebad){const _0x2d5513=_0x4f349c;_0x30b718[_0x2d5513('0xe9b')][_0x2d5513('0xc51')](_0x33ebad['toJSON']()),_0x452dff[_0x2d5513('0x173b')]({'title':_0x2d5513('0x8f4'),'msg':_0x30b718[_0x2d5513('0x1fb8')][_0x2d5513('0x1a8d')]?_0x30b718[_0x2d5513('0x1fb8')][_0x2d5513('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x4c1e74(_0x33ebad);})[_0x4f349c('0x1cb5')](function(_0x381f09){const _0x2f93d2=_0x4f349c;if(_0x381f09['data']&&_0x381f09[_0x2f93d2('0x11fc')][_0x2f93d2('0x25be')]&&_0x381f09[_0x2f93d2('0x11fc')][_0x2f93d2('0x25be')][_0x2f93d2('0x2566')]){_0x30b718[_0x2f93d2('0x25be')]=_0x381f09[_0x2f93d2('0x11fc')][_0x2f93d2('0x25be')]||[{'message':_0x381f09[_0x2f93d2('0x17df')](),'type':_0x2f93d2('0x277d')}];for(let _0x2c90fe=0x0;_0x2c90fe<_0x381f09[_0x2f93d2('0x11fc')][_0x2f93d2('0x25be')][_0x2f93d2('0x2566')];_0x2c90fe+=0x1){_0x452dff[_0x2f93d2('0x5e8')]({'title':_0x381f09[_0x2f93d2('0x11fc')][_0x2f93d2('0x25be')][_0x2c90fe][_0x2f93d2('0x1d7')],'msg':_0x381f09[_0x2f93d2('0x11fc')]['errors'][_0x2c90fe][_0x2f93d2('0x15e2')]});}}else _0x452dff['error']({'title':_0x381f09[_0x2f93d2('0x1b51')]?'API:'+_0x381f09[_0x2f93d2('0x1b51')]+_0x2f93d2('0x1b0b')+_0x381f09[_0x2f93d2('0x22ce')]:_0x2f93d2('0x277d'),'msg':_0x381f09[_0x2f93d2('0x11fc')]?JSON[_0x2f93d2('0x1be0')](_0x381f09['data'][_0x2f93d2('0x15e2')]):_0x381f09[_0x2f93d2('0x17df')]()});});}function _0x512fd9(){const _0x5ddee5=_0x1295f7;_0x30b718['errors']=[],_0x41d081[_0x5ddee5('0x1fb8')]['updateAccountApplications'](_0x30b718[_0x5ddee5('0x1fb8')])[_0x5ddee5('0x1714')]['then'](function(_0x3c1358){const _0x17beb9=_0x5ddee5,_0x2b8fd5=_0x283545()[_0x17beb9('0x20e8')](_0x30b718['faxAccounts'],{'id':_0x3c1358['id']});_0x2b8fd5&&_0x283545()[_0x17beb9('0x2503')](_0x2b8fd5,_0x283545()[_0x17beb9('0x41b')](_0x3c1358[_0x17beb9('0x1cbf')](),_0x283545()['keys'](_0x2b8fd5))),_0x452dff['success']({'title':_0x17beb9('0x43'),'msg':_0x30b718[_0x17beb9('0x1fb8')][_0x17beb9('0x1a8d')]?_0x30b718[_0x17beb9('0x1fb8')][_0x17beb9('0x1a8d')]+_0x17beb9('0x24cf'):''}),_0x4c1e74(_0x3c1358);})['catch'](function(_0xdc187c){const _0x12ddf4=_0x5ddee5;if(_0xdc187c[_0x12ddf4('0x11fc')]&&_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x25be')]&&_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x25be')][_0x12ddf4('0x2566')]){_0x30b718['errors']=_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x25be')]||[{'message':_0xdc187c['toString'](),'type':_0x12ddf4('0xd1b')}];for(let _0x1e8cfa=0x0;_0x1e8cfa<_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x25be')]['length'];_0x1e8cfa++){_0x452dff[_0x12ddf4('0x5e8')]({'title':_0xdc187c['data'][_0x12ddf4('0x25be')][_0x1e8cfa][_0x12ddf4('0x1d7')],'msg':_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x25be')][_0x1e8cfa][_0x12ddf4('0x15e2')]});}}else _0x452dff['error']({'title':_0xdc187c[_0x12ddf4('0x1b51')]?_0x12ddf4('0x15d1')+_0xdc187c['status']+_0x12ddf4('0x1b0b')+_0xdc187c['statusText']:_0x12ddf4('0xd1b'),'msg':_0xdc187c[_0x12ddf4('0x11fc')]?JSON[_0x12ddf4('0x1be0')](_0xdc187c[_0x12ddf4('0x11fc')][_0x12ddf4('0x15e2')]):_0xdc187c[_0x12ddf4('0x17df')]()});});}function _0x44e7f9(_0x1835d8){const _0xc9cb89=_0x1295f7;_0x30b718[_0xc9cb89('0x25be')]=[];const _0x530913=_0x4f5e54[_0xc9cb89('0x112e')]()[_0xc9cb89('0x14e4')](_0xc9cb89('0x458'))[_0xc9cb89('0x1c98')]('The\x20faxAccount\x20will\x20be\x20deleted.')[_0xc9cb89('0x10bc')](_0xc9cb89('0x2769'))['ok'](_0xc9cb89('0x2786'))[_0xc9cb89('0x1801')](_0xc9cb89('0x1481'))[_0xc9cb89('0x24d0')](_0x1835d8);_0x4f5e54[_0xc9cb89('0x2fa')](_0x530913)['then'](function(){const _0x533102=_0xc9cb89;_0x41d081[_0x533102('0x1fb8')]['delete']({'id':_0x30b718[_0x533102('0x1fb8')]['id']})[_0x533102('0x1714')]['then'](function(){const _0x535935=_0x533102;_0x283545()[_0x535935('0x1a90')](_0x30b718[_0x535935('0xe9b')],{'id':_0x30b718['faxAccount']['id']}),_0x452dff[_0x535935('0x173b')]({'title':_0x535935('0x17a2'),'msg':(_0x30b718['faxAccount'][_0x535935('0x1a8d')]||_0x535935('0x1fb8'))+'\x20has\x20been\x20deleted!'}),_0x4c1e74(_0x30b718[_0x535935('0x1fb8')]);})['catch'](function(_0x2d577e){const _0x597828=_0x533102;if(_0x2d577e[_0x597828('0x11fc')]&&_0x2d577e[_0x597828('0x11fc')][_0x597828('0x25be')]&&_0x2d577e[_0x597828('0x11fc')]['errors'][_0x597828('0x2566')]){_0x30b718[_0x597828('0x25be')]=_0x2d577e[_0x597828('0x11fc')]['errors']||[{'message':_0x2d577e[_0x597828('0x17df')](),'type':'api.faxAccount.delete'}];for(let _0x5755bc=0x0;_0x5755bc<_0x2d577e[_0x597828('0x11fc')]['errors'][_0x597828('0x2566')];_0x5755bc++){_0x452dff[_0x597828('0x5e8')]({'title':_0x2d577e['data'][_0x597828('0x25be')][_0x5755bc][_0x597828('0x1d7')],'msg':_0x2d577e[_0x597828('0x11fc')][_0x597828('0x25be')][_0x5755bc]['message']});}}else _0x452dff[_0x597828('0x5e8')]({'title':_0x2d577e['status']?_0x597828('0x15d1')+_0x2d577e[_0x597828('0x1b51')]+_0x597828('0x1b0b')+_0x2d577e[_0x597828('0x22ce')]:'api.faxAccount.delete','msg':_0x2d577e[_0x597828('0x11fc')]?JSON[_0x597828('0x1be0')](_0x2d577e[_0x597828('0x11fc')][_0x597828('0x15e2')]):_0x2d577e['message']||_0x2d577e[_0x597828('0x17df')]()});});},function(){});}function _0x5f11e4(_0x18728c){return _0x18728c===null?undefined:new Date(_0x18728c);}function _0x4c1e74(_0x2c03ac){const _0x49fd9d=_0x1295f7;_0x4f5e54[_0x49fd9d('0x19d')](_0x2c03ac);}}const _0x3c05b3=_0x38b1a3,_0x16e19c=_0x18dd13['p']+_0x34e79e('0xc6e'),_0x29fe49=_0x18dd13['p']+_0x34e79e('0x495'),_0x420ee7=_0x18dd13['p']+_0x34e79e('0x281d'),_0x4c246d=_0x18dd13['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html',_0x3dc709=_0x18dd13['p']+_0x34e79e('0x24ea'),_0x23a8f0=_0x18dd13['p']+_0x34e79e('0x26c1'),_0x473d75=_0x18dd13['p']+_0x34e79e('0x9ab'),_0x24fb3c=_0x18dd13['p']+_0x34e79e('0x252e'),_0x3b6537=_0x18dd13['p']+_0x34e79e('0x18d2');_0x47b840[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];const _0x575077={'agent':_0x16e19c,'close':_0x29fe49,'gotoif':_0x420ee7,'gotop':_0x4c246d,'interval':_0x3dc709,'noop':_0x23a8f0,'queue':_0x473d75,'system':_0x24fb3c,'tag':_0x3b6537};function _0x47b840(_0x1c6743,_0x3b203d,_0x4d6694,_0x53c852,_0x3ca6){const _0x30c343=_0x34e79e,_0x3cf611=this;_0x3cf611[_0x30c343('0x9cb')]=_0x3ca6[_0x30c343('0x24cc')](),_0x3cf611['faxAccount']={},_0x3cf611[_0x30c343('0xebe')]={'count':0x0,'rows':[]},_0x3cf611[_0x30c343('0x1ea0')]=[],_0x3cf611[_0x30c343('0xe28')],_0x3cf611[_0x30c343('0x135a')]={'sort':_0x30c343('0x155b')},_0x3cf611['apps']=_0x283545()[_0x30c343('0x9')](_0x283545()[_0x30c343('0x8ce')]([{'app':'Interval','appType':_0x30c343('0x2630'),'types':['always','custom',_0x30c343('0x4b2')],'fields':[],'isApp':![]},{'app':_0x30c343('0x18dd'),'appType':_0x30c343('0x18dd'),'type':'noop','icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x30c343('0x16db'),'param':0x0}]},{'app':'system','appType':_0x30c343('0xe81'),'type':_0x30c343('0xe81'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x30c343('0xf76'),'field':{'name':'variable','key':_0x30c343('0x1a8d')},'route':'variable','filters':{'fields':'id,name','sort':_0x30c343('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x30c343('0x28d'),'type':'text','required':!![],'param':0x0},{'title':'Variable','name':_0x30c343('0xa72'),'type':_0x30c343('0x2519'),'values':'variables','value':_0x30c343('0x59b'),'option':_0x30c343('0x59b'),'defaultValues':[{'value':'\x27\x27','option':_0x30c343('0x1d8f')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x30c343('0x1598'),'type':_0x30c343('0x1500'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'isApp':!![],'fields':[{'title':_0x30c343('0x14ef'),'name':_0x30c343('0x155b'),'type':_0x30c343('0x272c'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x30c343('0x1e01'),'appType':_0x30c343('0x1e01'),'type':_0x30c343('0x1e01'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'isApp':!![],'fields':[{'title':_0x30c343('0x1388'),'name':_0x30c343('0xf2b'),'type':'text','required':!![],'param':0x0},{'title':_0x30c343('0x86a'),'name':_0x30c343('0x86a'),'type':_0x30c343('0x272c'),'min':0x1,'required':!![],'param':0x1},{'title':_0x30c343('0x1474'),'name':_0x30c343('0x1474'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x30c343('0x1ab4'),'appType':_0x30c343('0x1ab4'),'foreignKey':_0x30c343('0xa01'),'type':'queue','icon':_0x30c343('0x21ff'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x30c343('0x283e'),'field':{'name':_0x30c343('0x1ab4'),'key':_0x30c343('0x1a8d')},'route':_0x30c343('0x1cc3'),'filters':{'fields':_0x30c343('0xafa'),'sort':_0x30c343('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':'Queue','name':_0x30c343('0x1ab4'),'type':_0x30c343('0x2519'),'values':_0x30c343('0x283e'),'value':_0x30c343('0x158'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x30c343('0xa7e'),'name':_0x30c343('0x24e4'),'type':_0x30c343('0x272c'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':'agent','appType':_0x30c343('0x188b'),'type':_0x30c343('0x188b'),'foreignKey':_0x30c343('0x3bb'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'isApp':!![],'extraApi':[{'name':_0x30c343('0x1713'),'field':{'name':_0x30c343('0x188b'),'key':'name'},'route':'user','filters':{'fields':_0x30c343('0x1338'),'sort':_0x30c343('0x1a8d'),'role':'agent','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x30c343('0x262d'),'name':_0x30c343('0x188b'),'type':_0x30c343('0x2519'),'values':_0x30c343('0x1713'),'value':_0x30c343('0x156f'),'option':_0x30c343('0x156f'),'required':!![],'param':0x0},{'title':_0x30c343('0xa7e'),'name':_0x30c343('0x24e4'),'type':_0x30c343('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x30c343('0x69f'),'appType':_0x30c343('0x69f'),'type':_0x30c343('0x69f'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'isApp':!![],'fields':[{'title':_0x30c343('0x1e89'),'name':_0x30c343('0x1db2'),'type':'text','required':!![],'param':0x0}]},{'app':_0x30c343('0x1764'),'appType':_0x30c343('0x1764'),'type':_0x30c343('0x1764'),'foreignKey':_0x30c343('0x90a'),'icon':_0x30c343('0x21ff'),'interval':_0x30c343('0x2191'),'isApp':!![],'extraApi':[{'name':_0x30c343('0xe45'),'field':{'name':'tag','key':_0x30c343('0x1a8d')},'route':'tag','filters':{'fields':_0x30c343('0x1338'),'sort':_0x30c343('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':'tag','type':_0x30c343('0x2519'),'values':'tags','value':_0x30c343('0x282c'),'option':_0x30c343('0x282c'),'required':!![],'param':0x0}]}],[_0x30c343('0x8a5')]),{'isApp':![]}),_0x3cf611[_0x30c343('0x4b2')]={'group':{'name':_0x30c343('0x134b'),'pull':'clone'},'animation':0x64,'sort':![]},_0x3cf611['applications']={'group':{'name':_0x30c343('0x2268'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x1b5a64){const _0x3e9c81=_0x30c343;_0x4cf7a5(_0x1b5a64,_0x1b5a64[_0x3e9c81('0x7da')]);},'onSort':function(){_0x366b18();}},_0x3cf611[_0x30c343('0x24eb')]=_0xd7619d,_0x3cf611[_0x30c343('0x16a')]=_0x2979af,_0x3cf611[_0x30c343('0x14db')]=_0x210032,_0x3cf611[_0x30c343('0x10f1')]=_0x4cf7a5,_0x3cf611['editInterval']=_0x34f3b2,_0x3cf611['deleteFaxAccountApp']=_0x32501c,_0x3cf611[_0x30c343('0xf40')]=_0x11d6ce,_0x3cf611[_0x30c343('0xa9c')]=_0x366b18,_0x3cf611[_0x30c343('0x1963')]=_0x385227;function _0xd7619d(_0x362531,_0x584568){const _0x2c88ea=_0x30c343;_0x3cf611['faxAccount']=_0x362531,_0x3cf611['crudPermissions']=typeof _0x584568!==_0x2c88ea('0xedb')?_0x584568:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3cf611[_0x2c88ea('0x26de')][_0x2c88ea('0x1112')]=!_0x3cf611['crudPermissions'][_0x2c88ea('0x21b7')]?!![]:![],_0x3cf611[_0x2c88ea('0x135a')]['id']=_0x362531['id'],_0x3cf611['query'][_0x2c88ea('0x436')]=!![],_0x3cf611[_0x2c88ea('0x135a')][_0x2c88ea('0xd18')]=!![],_0x3cf611[_0x2c88ea('0x14db')](),_0x3cf611[_0x2c88ea('0x1963')]();}function _0x2979af(_0x2dc145,_0x48da3f,_0x3f9e34){const _0x117495=_0x30c343,_0xc33603=_0x3b203d[_0x117495('0x112e')]()['title'](_0x117495('0xbe7'))['htmlContent'](''+_0x2dc145[_0x117495('0x8a5')]+_0x117495('0x229e')+_0x117495('0x27c7'))[_0x117495('0x10bc')]('delete\x20application')['targetEvent'](_0x3f9e34)['ok']('OK')['cancel'](_0x117495('0x1d8d'));_0x3b203d[_0x117495('0x2fa')](_0xc33603)[_0x117495('0x2788')](function(){const _0x3750ac=_0x117495;_0x3cf611[_0x3750ac('0xebe')][_0x3750ac('0x25df')][_0x3750ac('0x722')](_0x48da3f,0x1),_0x366b18();},function(){const _0x427176=_0x117495;console['log'](_0x427176('0x1d8d'));});}function _0x4cf7a5(_0x178a5e,_0xedd106){const _0x462a99=_0x30c343;if(_0x3cf611[_0x462a99('0xebe')][_0x462a99('0x25df')][_0x462a99('0x2566')]){const _0x443c0b=_0x3cf611[_0x462a99('0xebe')][_0x462a99('0x25df')][_0xedd106]?_0x3cf611['faxAccountApps'][_0x462a99('0x25df')][_0xedd106]:_0x3cf611[_0x462a99('0xebe')]['rows'][0x0],_0x3ac4ff=(_0x443c0b['appType']||_0x443c0b[_0x462a99('0x8a5')])[_0x462a99('0xc2e')]();_0x3b203d['show']({'controller':_0x462a99('0x9d5')+_0x3ac4ff+'DialogController','controllerAs':'vm','templateUrl':_0x575077[_0x3ac4ff],'parent':angular[_0x462a99('0x16b1')](_0x4d6694['body']),'targetEvent':_0x178a5e,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x443c0b,'faxAccount':_0x3cf611[_0x462a99('0x1fb8')],'crudPermissions':_0x3cf611[_0x462a99('0xe28')]}})[_0x462a99('0x2788')](function(_0x222524){const _0x4e4cd5=_0x462a99;_0x222524&&(_0x222524['id']?_0x3cf611[_0x4e4cd5('0xebe')][_0x4e4cd5('0x25df')][_0xedd106]=_0x222524:_0x3cf611[_0x4e4cd5('0xebe')]['rows'][_0x4e4cd5('0x722')](_0xedd106,0x0,_0x222524),_0x366b18());})['catch'](function(_0x5309c5){const _0x16f52e=_0x462a99;_0x5309c5&&_0x53c852[_0x16f52e('0x5e8')]({'title':_0x5309c5[_0x16f52e('0x1b51')]?'API:'+_0x5309c5['status']+'\x20-\x20'+_0x5309c5['statusText']:_0x16f52e('0x239b'),'msg':_0x5309c5[_0x16f52e('0x11fc')]?JSON[_0x16f52e('0x1be0')](_0x5309c5[_0x16f52e('0x11fc')]):_0x5309c5[_0x16f52e('0x17df')]()});});}}function _0x34f3b2(_0x385235,_0x1e4c21){const _0xc2f188=_0x30c343;if(_0x3cf611[_0xc2f188('0xebe')][_0xc2f188('0x25df')][_0xc2f188('0x2566')]){const _0x10c00b=_0x3cf611['faxAccountApps'][_0xc2f188('0x25df')][_0x1e4c21]?_0x3cf611[_0xc2f188('0xebe')][_0xc2f188('0x25df')][_0x1e4c21]:_0x3cf611['faxAccountApps']['rows'][0x0];_0x3b203d[_0xc2f188('0x2fa')]({'controller':'EditFaxAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x3dc709,'parent':angular[_0xc2f188('0x16b1')](_0x4d6694[_0xc2f188('0x945')]),'targetEvent':_0x385235,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x10c00b['interval'],'IntervalId':_0x10c00b[_0xc2f188('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x3cf611[_0xc2f188('0xe28')]}})[_0xc2f188('0x2788')](function(_0x54d414){const _0x408f39=_0xc2f188;_0x54d414&&(_0x10c00b[_0x408f39('0x2630')]=_0x54d414['interval']||_0x408f39('0x2191'),_0x10c00b[_0x408f39('0x20d0')]=_0x54d414[_0x408f39('0x20d0')]||null,_0x366b18());});}}function _0x366b18(){const _0x41763e=_0x30c343;let _0x54274b=0x1,_0x2abdad=[];for(let _0x369c66=0x0;_0x369c66<_0x3cf611[_0x41763e('0xebe')][_0x41763e('0x25df')][_0x41763e('0x2566')];_0x369c66++){const _0x4d06da=_0x3cf611[_0x41763e('0xebe')][_0x41763e('0x25df')][_0x369c66],_0x12e52f=[],_0x5ccef9=[];_0x4d06da[_0x41763e('0xec5')]=_0x4d06da[_0x41763e('0x2630')]!=='*,*,*,*'?[_0x4d06da[_0x41763e('0x2630')]]:_0x4d06da[_0x41763e('0x20d0')]?_0x283545()[_0x41763e('0x155d')](_0x283545()[_0x41763e('0x916')](_0x3cf611[_0x41763e('0xec5')][_0x41763e('0x25df')],{'IntervalId':_0x4d06da[_0x41763e('0x20d0')]}),_0x41763e('0x2630')):[],_0x4d06da[_0x41763e('0x1f3b')]=_0x3cf611[_0x41763e('0x1fb8')][_0x41763e('0x1f3b')],_0x4d06da[_0x41763e('0x1d6f')]=_0x3cf611[_0x41763e('0x1fb8')][_0x41763e('0x1d6f')],_0x4d06da[_0x41763e('0x1d7')]&&(_0x4d06da['type']=_0x4d06da[_0x41763e('0x1d7')]['toLowerCase']()),_0x4d06da['priority']=_0x12e52f[_0x41763e('0x2566')]?_0x283545()[_0x41763e('0x1d39')](_0x12e52f)[_0x41763e('0x155b')]+0x1:_0x54274b,_0x54274b=(_0x5ccef9['length']?_0x283545()['last'](_0x5ccef9)[_0x41763e('0x155b')]:_0x4d06da[_0x41763e('0x155b')])+0x1,_0x2abdad=_0x283545()[_0x41763e('0x1282')](_0x2abdad,_0x12e52f,[_0x4d06da],_0x5ccef9);}_0x1c6743[_0x41763e('0x1fb8')][_0x41763e('0x109')]({'id':_0x3cf611[_0x41763e('0x1fb8')]['id']},_0x283545()[_0x41763e('0x8ce')](_0x2abdad,_0x41763e('0x155b')))[_0x41763e('0x1714')]['then'](function(_0x4b6ed9){const _0x5ae221=_0x41763e;_0x3cf611[_0x5ae221('0xebe')][_0x5ae221('0x25df')]=_0x4b6ed9['rows'];})['catch'](function(_0x16b935){const _0x4358bc=_0x41763e;console[_0x4358bc('0x5e8')](_0x16b935);});}function _0x289a14(_0x13c1ed){const _0x3fec03=_0x30c343;_0x3cf611[_0x3fec03('0xebe')]=_0x13c1ed||{'count':0x0,'rows':[]};}function _0x385227(){const _0x321fb8=_0x30c343;return _0x1c6743['interval'][_0x321fb8('0x1335')]({'fields':_0x321fb8('0x12c6')})[_0x321fb8('0x1714')][_0x321fb8('0x2788')](function(_0x960966){const _0x4b8558=_0x321fb8;_0x3cf611[_0x4b8558('0xec5')]=_0x960966;})[_0x321fb8('0x1cb5')](function(_0x304841){const _0x3f2fdf=_0x321fb8;console[_0x3f2fdf('0x5e8')](_0x304841);});}function _0x210032(){const _0x34b38b=_0x30c343;_0x3cf611[_0x34b38b('0x1808')]=_0x1c6743[_0x34b38b('0x1fb8')]['getApplications'](_0x3cf611[_0x34b38b('0x135a')],_0x289a14)[_0x34b38b('0x1714')];}function _0x32501c(_0x5bc075){const _0x52062e=_0x30c343;_0x283545()[_0x52062e('0x1a90')](_0x3cf611[_0x52062e('0xebe')]['rows'],{'id':_0x5bc075['id']}),_0x366b18(),_0x53c852[_0x52062e('0x173b')]({'title':_0x52062e('0x170b'),'msg':_0x5bc075['app']?_0x5bc075[_0x52062e('0x8a5')]+_0x52062e('0x14d4'):''});}function _0x11d6ce(_0x32af3f){const _0x4c1cbc=_0x30c343,_0x1f103e=_0x3b203d[_0x4c1cbc('0x112e')]()['title'](_0x4c1cbc('0x191c'))[_0x4c1cbc('0x93e')](_0x4c1cbc('0x1670')+_0x3cf611['selectedFaxAccountApps']['length']+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4c1cbc('0x1db'))[_0x4c1cbc('0x24d0')](_0x32af3f)['ok']('OK')[_0x4c1cbc('0x1801')]('CANCEL');_0x3b203d[_0x4c1cbc('0x2fa')](_0x1f103e)[_0x4c1cbc('0x2788')](function(){const _0x2cdc0a=_0x4c1cbc;_0x3cf611['selectedFaxAccountApps'][_0x2cdc0a('0x1534')](function(_0x513dd5){const _0x511f6d=_0x2cdc0a;_0x283545()[_0x511f6d('0x1a90')](_0x3cf611[_0x511f6d('0xebe')]['rows'],{'id':_0x513dd5['id']});}),_0x3cf611[_0x2cdc0a('0x1ea0')]=[],_0x366b18();});}}const _0x30ed71=_0x47b840;_0x3b068b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty','api','faxAccount',_0x34e79e('0xe9b'),_0x34e79e('0x548'),_0x34e79e('0x1a5c'),'Auth','crudPermissions'];function _0x3b068b(_0x42d572,_0x51805c,_0x3c60c0,_0x54eb33,_0xccad7,_0x40b6e6,_0x1a455e,_0x5ef4ca,_0x4a4f3d,_0x4cf33f){const _0x176b2d=_0x34e79e,_0x137d1a=this;_0x137d1a['currentUser']=_0x4a4f3d[_0x176b2d('0x24cc')](),_0x137d1a[_0x176b2d('0x1fb8')]=_0xccad7,_0x137d1a[_0x176b2d('0xe28')]=_0x4cf33f,_0x137d1a['realtime']=_0x1a455e,_0x137d1a['items']=[],_0x137d1a[_0x176b2d('0x73d')]=[],_0x137d1a[_0x176b2d('0x283f')]=[],_0x137d1a[_0x176b2d('0x12d9')]=[],_0x137d1a['startingSelectedItems']=[],_0x137d1a['pendingChanges']=![],_0x137d1a['onInit']=_0xe869d1,_0x137d1a[_0x176b2d('0x1f8d')]=_0x2bc49e,_0x137d1a['closeDialog']=_0x49104d,_0x137d1a['dualMultiselectOptions']={'readOnly':!_0x137d1a[_0x176b2d('0xe28')][_0x176b2d('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':['name',_0x176b2d('0x2838')],'line3':'','labelAll':_0x5ef4ca[_0x176b2d('0x1b11')](_0x176b2d('0xd5c')),'labelSelected':_0x5ef4ca[_0x176b2d('0x1b11')](_0x176b2d('0xd91')),'transferCallback':function(){const _0x440b75=_0x176b2d,_0x26f2d=_0x283545()[_0x440b75('0x12d1')](_0x137d1a['startingSelectedItems'],_0x137d1a['selectedItems'],'id');_0x137d1a[_0x440b75('0x2677')]=_0x283545()[_0x440b75('0x213d')](_0x26f2d)?![]:!![];}};function _0xe869d1(){const _0x451dc3=_0x176b2d;return _0x4a4f3d[_0x451dc3('0x1516')](_0x451dc3('0xe23'))?_0x899bf8()[_0x451dc3('0x1cb5')](function(_0x2e53df){const _0x376a65=_0x451dc3;_0x3c60c0[_0x376a65('0x5e8')]({'title':_0x2e53df[_0x376a65('0x1b51')]?_0x376a65('0x15d1')+_0x2e53df[_0x376a65('0x1b51')]+'\x20-\x20'+_0x2e53df[_0x376a65('0x22ce')]:_0x376a65('0xd90'),'msg':_0x2e53df['status']?JSON[_0x376a65('0x1be0')](_0x2e53df[_0x376a65('0x11fc')]):_0x2e53df['toString']()});}):_0x4b5a92()['then'](function(_0x32a3b9){const _0x237169=_0x451dc3;return _0x137d1a[_0x237169('0xb13')]=_0x32a3b9,_0x899bf8();})['catch'](function(_0xa36202){const _0x241d9e=_0x451dc3;_0x3c60c0[_0x241d9e('0x5e8')]({'title':_0xa36202[_0x241d9e('0x1b51')]?_0x241d9e('0x15d1')+_0xa36202[_0x241d9e('0x1b51')]+_0x241d9e('0x1b0b')+_0xa36202[_0x241d9e('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0xa36202[_0x241d9e('0x1b51')]?JSON[_0x241d9e('0x1be0')](_0xa36202[_0x241d9e('0x11fc')]):_0xa36202['toString']()});});}function _0x4b5a92(){return _0x51805c(function(_0x38d871,_0x468354){const _0x4b6d9b=a0_0x14e7;_0x54eb33[_0x4b6d9b('0xec9')][_0x4b6d9b('0x1335')]({'userProfileId':_0x137d1a[_0x4b6d9b('0x9cb')][_0x4b6d9b('0x237f')],'name':_0x4b6d9b('0x1f72')})['$promise'][_0x4b6d9b('0x2788')](function(_0x46e655){const _0x1da1dd=_0x4b6d9b,_0x28e0bb=_0x46e655&&_0x46e655[_0x1da1dd('0x25df')]?_0x46e655['rows'][0x0]:null;_0x38d871(_0x28e0bb);})['catch'](function(_0x535abe){_0x468354(_0x535abe);});});}function _0x899bf8(){return _0x51805c(function(_0x130436,_0x4faa7c){const _0x46243e=a0_0x14e7;return _0x58ffc5()[_0x46243e('0x2788')](function(_0xfcea2f){const _0x344015=_0x46243e;return _0x137d1a[_0x344015('0x117b')]=_0xfcea2f['rows']?_0xfcea2f[_0x344015('0x25df')]:[],_0x4a4f3d[_0x344015('0x1516')](_0x344015('0xe23'))?_0xfcea2f:_0x137d1a[_0x344015('0xb13')]?_0x137d1a['section'][_0x344015('0x1c0a')]?_0xfcea2f:_0x4115c3():null;})[_0x46243e('0x2788')](function(_0xec1cac){const _0x26f120=_0x46243e,_0x342ad3=_0xec1cac&&_0xec1cac[_0x26f120('0x25df')]?_0xec1cac[_0x26f120('0x25df')]:[];return _0x137d1a[_0x26f120('0x73d')]=_0x283545()[_0x26f120('0x155d')](_0x342ad3,function(_0x329477){const _0x4a65b4=_0x26f120;return _0x283545()[_0x4a65b4('0x20e8')](_0x137d1a[_0x4a65b4('0x117b')],{'id':_0x4a4f3d[_0x4a65b4('0x1516')](_0x4a65b4('0xe23'))||_0x137d1a[_0x4a65b4('0xb13')][_0x4a65b4('0x1c0a')]?_0x329477['id']:_0x329477[_0x4a65b4('0x2707')]});}),_0x137d1a[_0x26f120('0x12d9')]=angular[_0x26f120('0x2669')](_0x137d1a[_0x26f120('0x73d')]),_0x137d1a[_0x26f120('0x117b')][_0x26f120('0x1534')](function(_0xa523b8){const _0x186f36=_0x26f120,_0x3e5e84=_0x283545()['find'](_0x137d1a[_0x186f36('0x73d')],{'id':_0xa523b8['id']});_0x4a4f3d[_0x186f36('0x1516')](_0x186f36('0xe23'))?_0xa523b8[_0x186f36('0x68d')]=!![]:_0xa523b8[_0x186f36('0x68d')]=typeof _0x3e5e84!==_0x186f36('0xedb')?!![]:![];}),_0x1e1902();})[_0x46243e('0x2788')](function(_0xe81d1e){const _0x5ae02c=_0x46243e,_0x250ee3=_0xe81d1e&&_0xe81d1e[_0x5ae02c('0x25df')]?_0xe81d1e[_0x5ae02c('0x25df')]:[];_0x137d1a['selectedItems']=_0x283545()[_0x5ae02c('0x155d')](_0x250ee3,function(_0xda2270){const _0x360d43=_0x5ae02c,_0x1dd0b8=_0x283545()[_0x360d43('0x20e8')](_0x137d1a[_0x360d43('0x117b')],{'id':_0xda2270['id']});return _0x1dd0b8[_0x360d43('0x1ab')]=_0xda2270[_0x360d43('0x1f0')]?_0x360d43('0x1b9d')+_0xda2270['UserFaxAccount']['penalty']:'',_0x1dd0b8[_0x360d43('0x2838')]=typeof _0xda2270[_0x360d43('0x2838')]!==_0x360d43('0xedb')?'<'+_0xda2270[_0x360d43('0x2838')]+'>':'',_0x1dd0b8;}),_0x137d1a[_0x5ae02c('0xd0d')]=angular[_0x5ae02c('0x2669')](_0x137d1a[_0x5ae02c('0x283f')]),_0x137d1a[_0x5ae02c('0x121')][_0x5ae02c('0x283f')]=_0x137d1a[_0x5ae02c('0x283f')],_0x137d1a[_0x5ae02c('0x121')][_0x5ae02c('0x117b')]=_0x283545()[_0x5ae02c('0x432')](_0x137d1a[_0x5ae02c('0x73d')],_0x137d1a['dualMultiselectOptions']['selectedItems'],'id'),_0x130436();})[_0x46243e('0x1cb5')](function(_0x3d0021){_0x4faa7c(_0x3d0021);});});}function _0x4115c3(){return _0x51805c(function(_0xd4f09d,_0x35afae){const _0x237232=a0_0x14e7;return _0x54eb33[_0x237232('0x1050')][_0x237232('0x1335')]({'sectionId':_0x137d1a[_0x237232('0xb13')]['id'],'nolimit':!![]})[_0x237232('0x1714')][_0x237232('0x2788')](function(_0xed516e){_0xd4f09d(_0xed516e);})[_0x237232('0x1cb5')](function(_0xcd0912){_0x35afae(_0xcd0912);});});}function _0x1e1902(){return _0x51805c(function(_0x3293aa,_0x32f0b3){const _0x173007=a0_0x14e7;return _0x54eb33[_0x173007('0x1fb8')][_0x173007('0x19db')]({'id':_0x137d1a[_0x173007('0x1fb8')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise']['then'](function(_0x1e621f){_0x3293aa(_0x1e621f);})[_0x173007('0x1cb5')](function(_0x388f77){_0x32f0b3(_0x388f77);});});}function _0x58ffc5(){return _0x51805c(function(_0x402246,_0x215dc7){const _0x314164=a0_0x14e7;return _0x54eb33['user'][_0x314164('0x1335')]({'fields':_0x314164('0x1d32'),'nolimit':!![],'role':_0x314164('0x188b')})['$promise'][_0x314164('0x2788')](function(_0x75dce1){_0x402246(_0x75dce1);})[_0x314164('0x1cb5')](function(_0xf56754){_0x215dc7(_0xf56754);});});}function _0x22466b(_0x1c5c43){return _0x51805c(function(_0x21677e,_0x1f6c30){const _0x179c56=a0_0x14e7;_0x283545()[_0x179c56('0x213d')](_0x1c5c43)?_0x21677e():_0x54eb33[_0x179c56('0x1fb8')][_0x179c56('0x588')]({'id':_0x137d1a['faxAccount']['id'],'ids':_0x283545()[_0x179c56('0x155d')](_0x1c5c43,'id')})[_0x179c56('0x1714')][_0x179c56('0x2788')](function(){_0x21677e();})[_0x179c56('0x1cb5')](function(_0x429174){_0x1f6c30(_0x429174);});});}function _0x44cdd1(_0x49fed5){return _0x51805c(function(_0x338cfc,_0x3a785d){const _0x551577=a0_0x14e7;_0x283545()[_0x551577('0x213d')](_0x49fed5)?_0x338cfc():_0x54eb33[_0x551577('0x1fb8')][_0x551577('0x1d72')]({'id':_0x137d1a[_0x551577('0x1fb8')]['id'],'ids':_0x283545()[_0x551577('0x155d')](_0x49fed5,'id')})[_0x551577('0x1714')][_0x551577('0x2788')](function(){_0x338cfc();})[_0x551577('0x1cb5')](function(_0x391c71){_0x3a785d(_0x391c71);});});}function _0x2bc49e(){const _0x11dcda=_0x176b2d,_0x49c9a8=_0x283545()[_0x11dcda('0x432')](_0x137d1a[_0x11dcda('0xd0d')],_0x137d1a[_0x11dcda('0x283f')],'id'),_0x39b6e7=_0x283545()[_0x11dcda('0x432')](_0x137d1a[_0x11dcda('0x283f')],_0x137d1a[_0x11dcda('0xd0d')],'id');return _0x44cdd1(_0x49c9a8)[_0x11dcda('0x2788')](function(){return _0x22466b(_0x39b6e7);})['then'](function(){const _0x50bc49=_0x11dcda;_0x137d1a[_0x50bc49('0x2677')]=![],_0x137d1a[_0x50bc49('0x12d9')]=angular[_0x50bc49('0x2669')](_0x137d1a[_0x50bc49('0x73d')]),_0x137d1a['startingSelectedItems']=angular['copy'](_0x137d1a[_0x50bc49('0x283f')]),_0x3c60c0['success']({'title':_0x50bc49('0x10c8'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x11dcda('0x1cb5')](function(_0x39e1be){const _0x2d6a44=_0x11dcda;_0x3c60c0[_0x2d6a44('0x5e8')]({'title':_0x39e1be[_0x2d6a44('0x1b51')]?_0x2d6a44('0x15d1')+_0x39e1be[_0x2d6a44('0x1b51')]+_0x2d6a44('0x1b0b')+_0x39e1be[_0x2d6a44('0x22ce')]:_0x2d6a44('0x13cd'),'msg':_0x39e1be[_0x2d6a44('0x1b51')]?JSON[_0x2d6a44('0x1be0')](_0x39e1be['data']):_0x39e1be[_0x2d6a44('0x17df')]()});});}function _0x49104d(){const _0x5e949a=_0x176b2d;_0x42d572[_0x5e949a('0x19d')]();}}const _0x36245d=_0x3b068b;_0x4b06b6[_0x34e79e('0x2d9')]=['$mdDialog','$q','toasty','faxAccountApp',_0x34e79e('0x1fb8'),_0x34e79e('0x519'),'Auth','crudPermissions'];function _0x4b06b6(_0xeb5e37,_0x22c522,_0x1ef5ac,_0x3e18f5,_0x49ad56,_0x367683,_0x550ebd,_0x7302e4){const _0x3842fc=_0x34e79e,_0x5a51bd=this;_0x5a51bd[_0x3842fc('0x9cb')]=_0x550ebd[_0x3842fc('0x24cc')](),_0x5a51bd[_0x3842fc('0x25be')]=[],_0x5a51bd[_0x3842fc('0x14e4')]=_0x3842fc('0x1c3f')+(_0x3e18f5['appType']||_0x3e18f5[_0x3842fc('0x8a5')])[_0x3842fc('0x25e6')](),_0x5a51bd[_0x3842fc('0x188b')]=angular[_0x3842fc('0x2669')](_0x3e18f5),_0x5a51bd[_0x3842fc('0xe28')]=_0x7302e4,_0x5a51bd[_0x3842fc('0x1193')]={};if(_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xd6b')])switch(_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x167b')]?_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x167b')][_0x3842fc('0xc2e')]():_0x5a51bd['agent']['app']['toLowerCase']()){case _0x3842fc('0x1d56'):break;case _0x3842fc('0x5e1'):{const _0x2cb0c8=_0x5a51bd['agent'][_0x3842fc('0xd6b')]['split'](',');_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x234b')]=_0x2cb0c8[0x0],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x175b')]=_0x2cb0c8[0x1],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xf50')]=_0x2cb0c8[_0x3842fc('0x845')](0x2,_0x2cb0c8[_0x3842fc('0x2566')])[_0x3842fc('0x185f')](',');}break;case _0x3842fc('0x137a'):{const _0x481346=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xd6b')][_0x3842fc('0x1497')](',');_0x5a51bd['agent'][_0x3842fc('0x27f2')]=_0x481346[0x0],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x1b58')]=_0x481346[0x1],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xb70')]=_0x481346[0x2],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x4eb')]=_0x481346[0x3],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xf50')]=_0x481346[_0x3842fc('0x845')](0x4,_0x481346['length'])[_0x3842fc('0x185f')](',');}break;case _0x3842fc('0x808'):{const _0x25b58b=_0x5a51bd['agent'][_0x3842fc('0xd6b')][_0x3842fc('0x1497')](',');_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x5fd')]=isNaN(_0x25b58b[0x0])?_0x25b58b[0x0]:parseInt(_0x25b58b[0x0],0xa),_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x16db')]=_0x25b58b[_0x3842fc('0x845')](0x1,_0x25b58b[_0x3842fc('0x2566')])['join'](',');}break;case _0x3842fc('0x15e2'):_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x16db')]=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xd6b')];break;case _0x3842fc('0x3a6'):_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x1a8d')]=_0x5a51bd['agent'][_0x3842fc('0xd6b')]['split']('=')[0x0],_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x49')]=_0x5a51bd['agent'][_0x3842fc('0xd6b')][_0x3842fc('0x1497')]('=')[0x1];break;case'agi':_0x5a51bd['agent'][_0x3842fc('0x1bf6')]=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xd6b')];break;default:{const _0x400e17=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0xd6b')]['split'](',');_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x188b')]=_0x283545()[_0x3842fc('0x213d')](_0x400e17[0x0])?_0x400e17[0x0]:isNaN(_0x400e17[0x0])?_0x400e17[0x0]:parseInt(_0x400e17[0x0],0xa),_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x24e4')]=_0x283545()['isEmpty'](_0x400e17[0x1])?_0x400e17[0x1]:isNaN(_0x400e17[0x1])?_0x400e17[0x1]:parseInt(_0x400e17[0x1],0xa);}break;}else _0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x24e4')]=0x1e;_0x5a51bd['agent'][_0x3842fc('0x1d7')]&&_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x1d7')][_0x3842fc('0xc2e')]()===_0x3842fc('0x1')&&_0x5a51bd['agent'][_0x3842fc('0x167b')][_0x3842fc('0xc2e')]()===_0x3842fc('0x229c')&&(_0x5a51bd[_0x3842fc('0x188b')]['prefix']=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x1224')]?_0x5a51bd['agent'][_0x3842fc('0x1224')]['split']('$')[0x0]:undefined,_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x2081')]=_0x5a51bd[_0x3842fc('0x188b')][_0x3842fc('0x8de')]?_0x3842fc('0x1834')+_0x5a51bd['agent']['callerID']:undefined);_0x5a51bd['saveFaxAccountApp']=_0x4e87a9,_0x5a51bd[_0x3842fc('0xca7')]=_0x3aa6de,_0x550ebd[_0x3842fc('0x1516')]('admin')?_0x367683['user']['get']({'fields':'id,name','sort':_0x3842fc('0x1a8d'),'role':'agent','nolimit':'true'})['$promise'][_0x3842fc('0x2788')](function(_0x1c9239){const _0x132ae9=_0x3842fc;_0x5a51bd['agents']=_0x1c9239[_0x132ae9('0x25df')]||[];})[_0x3842fc('0x1cb5')](function(_0x3b1ddb){const _0x268a38=_0x3842fc;_0x1ef5ac[_0x268a38('0x5e8')]({'title':_0x3b1ddb['status']?_0x268a38('0x15d1')+_0x3b1ddb['status']+_0x268a38('0x1b0b')+_0x3b1ddb['statusText']:_0x268a38('0xd90'),'msg':_0x3b1ddb['data']?JSON[_0x268a38('0x1be0')](_0x3b1ddb[_0x268a38('0x11fc')]):_0x3b1ddb[_0x268a38('0x17df')]()});}):_0x367683[_0x3842fc('0x1e6a')][_0x3842fc('0x1335')]({'fields':'id,name','sort':_0x3842fc('0x1a8d'),'role':_0x3842fc('0x188b'),'nolimit':_0x3842fc('0x1001')})[_0x3842fc('0x1714')][_0x3842fc('0x2788')](function(_0x186e1f){const _0x53611e=_0x3842fc;_0x5a51bd[_0x53611e('0x1713')]=_0x186e1f['rows']||[];})[_0x3842fc('0x2788')](function(){const _0x5f43cb=_0x3842fc;return _0x367683[_0x5f43cb('0xec9')][_0x5f43cb('0x1335')]({'userProfileId':_0x5a51bd['currentUser'][_0x5f43cb('0x237f')],'sectionId':0xca})[_0x5f43cb('0x1714')];})['then'](function(_0x24e13c){const _0x53ec04=_0x3842fc,_0x24f52d=_0x24e13c&&_0x24e13c['rows']?_0x24e13c[_0x53ec04('0x25df')][0x0]:null;if(!_0x24f52d){const _0x373d61=[];let _0x28cc19=null;_0x5a51bd[_0x53ec04('0x188b')]&&(_0x28cc19=_0x283545()[_0x53ec04('0x20e8')](_0x5a51bd[_0x53ec04('0x1713')],{'name':_0x5a51bd[_0x53ec04('0x188b')][_0x53ec04('0x188b')]}));for(let _0x4132b3=0x0;_0x4132b3<_0x5a51bd[_0x53ec04('0x1713')]['length'];_0x4132b3++){_0x28cc19&&_0x5a51bd[_0x53ec04('0x1713')][_0x4132b3]['id']===_0x28cc19['id']&&(_0x5a51bd[_0x53ec04('0x1713')][_0x4132b3][_0x53ec04('0x3bf')]=![],_0x373d61[_0x53ec04('0x13e3')](_0x5a51bd[_0x53ec04('0x1713')][_0x4132b3]));}_0x5a51bd[_0x53ec04('0x1713')]=_0x373d61;}else{if(!_0x24f52d['autoAssociation'])return _0x367683[_0x53ec04('0x1050')][_0x53ec04('0x1335')]({'sectionId':_0x24f52d['id']})[_0x53ec04('0x1714')][_0x53ec04('0x2788')](function(_0x3ed4e6){const _0x34f060=_0x53ec04,_0x4746e2=_0x283545()[_0x34f060('0x155d')](_0x3ed4e6[_0x34f060('0x25df')],function(_0x3f782e){const _0x312b1a=_0x34f060;return _0x283545()[_0x312b1a('0x20e8')](_0x5a51bd[_0x312b1a('0x1713')],{'id':_0x3f782e[_0x312b1a('0x2707')]});});let _0x5ba290=null;_0x5a51bd[_0x34f060('0x188b')]&&(_0x5ba290=_0x283545()[_0x34f060('0x20e8')](_0x5a51bd[_0x34f060('0x1713')],{'name':_0x5a51bd[_0x34f060('0x188b')][_0x34f060('0x188b')]}));if(_0x5ba290&&!_0x283545()['some'](_0x4746e2,['id',_0x5ba290['id']])){const _0x2bfc5b=_0x283545()['find'](_0x5a51bd[_0x34f060('0x1713')],{'id':_0x5ba290['id']});_0x2bfc5b[_0x34f060('0x3bf')]=![],_0x4746e2['push'](_0x2bfc5b);}_0x5a51bd['agents']=_0x4746e2;});}})[_0x3842fc('0x1cb5')](function(_0x24c776){const _0x3e9445=_0x3842fc;_0x1ef5ac[_0x3e9445('0x5e8')]({'title':_0x24c776['status']?_0x3e9445('0x15d1')+_0x24c776[_0x3e9445('0x1b51')]+_0x3e9445('0x1b0b')+_0x24c776[_0x3e9445('0x22ce')]:_0x3e9445('0x1246'),'msg':_0x24c776[_0x3e9445('0x11fc')]?JSON[_0x3e9445('0x1be0')](_0x24c776[_0x3e9445('0x11fc')]):_0x24c776[_0x3e9445('0x17df')]()});});function _0x4e87a9(){const _0x347621=_0x3842fc;_0x5a51bd[_0x347621('0x25be')]=[];const _0x446542=[];_0x5a51bd[_0x347621('0x188b')][_0x347621('0x1d7')]&&_0x5a51bd[_0x347621('0x188b')][_0x347621('0x1d7')][_0x347621('0xc2e')]()===_0x347621('0x1')&&_0x5a51bd['agent'][_0x347621('0x167b')]===_0x347621('0x25fb')&&(_0x5a51bd['agent'][_0x347621('0x1224')]=_0x49ad56['cutdigits']?(_0x5a51bd['agent'][_0x347621('0x1f71')]||'')+'${EXTEN:'+_0x49ad56[_0x347621('0x277c')]+'}':(_0x5a51bd[_0x347621('0x188b')][_0x347621('0x1f71')]||'')+_0x347621('0x1275'),_0x49ad56[_0x347621('0x801')]!==_0x347621('0x1dc')?_0x5a51bd[_0x347621('0x188b')]['options'][_0x347621('0x821')](_0x347621('0x1609'))<0x0&&(_0x5a51bd[_0x347621('0x188b')][_0x347621('0x784')]+='U(xcally-mixmonitor-context)'):_0x5a51bd[_0x347621('0x188b')]['options']=_0x5a51bd[_0x347621('0x188b')][_0x347621('0x784')]['replace'](_0x347621('0x1609'),''));const _0x580017=_0x283545()[_0x347621('0x20e8')](_0x5a51bd[_0x347621('0x1713')],{'name':_0x5a51bd[_0x347621('0x188b')][_0x347621('0x188b')]});_0x580017&&(_0x5a51bd[_0x347621('0x188b')][_0x347621('0x3bb')]=_0x580017['id']);if(_0x5a51bd[_0x347621('0x188b')]['appType']&&_0x5a51bd[_0x347621('0x188b')][_0x347621('0x167b')]===_0x347621('0x1d56')){}else switch((_0x5a51bd[_0x347621('0x188b')][_0x347621('0x8a5')]||_0x5a51bd['agent'][_0x347621('0x167b')])[_0x347621('0xc2e')]()){case _0x347621('0x3a6'):_0x5a51bd['agent'][_0x347621('0xd6b')]=_0x5a51bd[_0x347621('0x188b')][_0x347621('0x1a8d')]+'='+_0x5a51bd[_0x347621('0x188b')][_0x347621('0x49')];break;case _0x347621('0x1d56'):break;default:_0x446542[0x0]=_0x5a51bd['agent'][_0x347621('0x188b')],_0x446542[0x1]=_0x5a51bd[_0x347621('0x188b')][_0x347621('0x24e4')],_0x5a51bd[_0x347621('0x188b')][_0x347621('0xd6b')]=_0x446542[_0x347621('0x185f')](',');}_0x3aa6de(_0x5a51bd[_0x347621('0x188b')]);}function _0x3aa6de(_0x1059fd){_0xeb5e37['hide'](_0x1059fd);}}const _0x3e5342=_0x4b06b6;_0xd74ce[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x2780'),_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xd74ce(_0x540aa3,_0x4729be,_0x1bc173,_0x4b1999,_0x35c484,_0x45b53c,_0x515e8a,_0x86ca62){const _0x58c679=_0x34e79e,_0xa1810c=this;_0xa1810c[_0x58c679('0x9cb')]=_0x515e8a[_0x58c679('0x24cc')](),_0xa1810c['errors']=[],_0xa1810c['title']='FAX.EDIT_'+(_0x4b1999[_0x58c679('0x167b')]||_0x4b1999[_0x58c679('0x8a5')])[_0x58c679('0x25e6')](),_0xa1810c[_0x58c679('0x69f')]=angular[_0x58c679('0x2669')](_0x4b1999),_0xa1810c[_0x58c679('0xe28')]=_0x86ca62,_0xa1810c['hasModulePermissions']={};if(_0xa1810c[_0x58c679('0x69f')]['appdata'])switch(_0xa1810c[_0x58c679('0x69f')]['appType']?_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x167b')][_0x58c679('0xc2e')]():_0xa1810c['close'][_0x58c679('0x8a5')]['toLowerCase']()){case _0x58c679('0x1d56'):break;case _0x58c679('0x5e1'):{const _0x308b8b=_0xa1810c['close'][_0x58c679('0xd6b')]['split'](',');_0xa1810c[_0x58c679('0x69f')]['key']=_0x308b8b[0x0],_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x175b')]=_0x308b8b[0x1],_0xa1810c[_0x58c679('0x69f')]['welcomemessage']=_0x308b8b['slice'](0x2,_0x308b8b[_0x58c679('0x2566')])['join'](',');}break;case _0x58c679('0x137a'):{const _0x11ffc2=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xd6b')][_0x58c679('0x1497')](',');_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x27f2')]=_0x11ffc2[0x0],_0xa1810c[_0x58c679('0x69f')]['secretaccesskey']=_0x11ffc2[0x1],_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xb70')]=_0x11ffc2[0x2],_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x4eb')]=_0x11ffc2[0x3],_0xa1810c[_0x58c679('0x69f')]['welcomemessage']=_0x11ffc2['slice'](0x4,_0x11ffc2[_0x58c679('0x2566')])[_0x58c679('0x185f')](',');}break;case'autoreply':{const _0xeab535=_0xa1810c[_0x58c679('0x69f')]['appdata'][_0x58c679('0x1497')](',');_0xa1810c[_0x58c679('0x69f')]['times']=isNaN(_0xeab535[0x0])?_0xeab535[0x0]:parseInt(_0xeab535[0x0],0xa),_0xa1810c[_0x58c679('0x69f')]['text']=_0xeab535[_0x58c679('0x845')](0x1,_0xeab535['length'])[_0x58c679('0x185f')](',');}break;case'message':_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x16db')]=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xd6b')];break;case _0x58c679('0x3a6'):_0xa1810c['close'][_0x58c679('0x1a8d')]=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xd6b')][_0x58c679('0x1497')]('=')[0x0],_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x49')]=_0xa1810c['close']['appdata'][_0x58c679('0x1497')]('=')[0x1];break;case _0x58c679('0x2631'):_0xa1810c['close']['project']=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xd6b')];break;default:{const _0x1eeef7=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0xd6b')][_0x58c679('0x1497')](',');_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x1db2')]=_0x283545()['isEmpty'](_0x1eeef7[0x0])?_0x1eeef7[0x0]:isNaN(_0x1eeef7[0x0])?_0x1eeef7[0x0]:parseInt(_0x1eeef7[0x0],0xa);}break;}else{}_0xa1810c[_0x58c679('0x69f')]['type']&&_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x1d7')]['toLowerCase']()===_0x58c679('0x1')&&_0xa1810c['close'][_0x58c679('0x167b')]['toLowerCase']()===_0x58c679('0x229c')&&(_0xa1810c[_0x58c679('0x69f')]['prefix']=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x1224')]?_0xa1810c['close'][_0x58c679('0x1224')][_0x58c679('0x1497')]('$')[0x0]:undefined,_0xa1810c['close'][_0x58c679('0x2081')]=_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x8de')]?_0x58c679('0x1834')+_0xa1810c[_0x58c679('0x69f')][_0x58c679('0x8de')]:undefined);_0xa1810c[_0x58c679('0x18e6')]=_0x32e1a7,_0xa1810c['closeDialog']=_0x5eec1f;function _0x32e1a7(){const _0x7d2d7=_0x58c679;_0xa1810c[_0x7d2d7('0x25be')]=[];const _0x2d1a6e=[];_0xa1810c['close'][_0x7d2d7('0x1d7')]&&_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x1d7')][_0x7d2d7('0xc2e')]()===_0x7d2d7('0x1')&&_0xa1810c['close'][_0x7d2d7('0x167b')]===_0x7d2d7('0x25fb')&&(_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x1224')]=_0x35c484['cutdigits']?(_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x1f71')]||'')+_0x7d2d7('0x124d')+_0x35c484[_0x7d2d7('0x277c')]+'}':(_0xa1810c['close'][_0x7d2d7('0x1f71')]||'')+_0x7d2d7('0x1275'),_0x35c484['recordingFormat']!==_0x7d2d7('0x1dc')?_0xa1810c['close'][_0x7d2d7('0x784')]['indexOf'](_0x7d2d7('0x1609'))<0x0&&(_0xa1810c[_0x7d2d7('0x69f')]['options']+=_0x7d2d7('0x1609')):_0xa1810c[_0x7d2d7('0x69f')]['options']=_0xa1810c[_0x7d2d7('0x69f')]['options']['replace'](_0x7d2d7('0x1609'),''));if(_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x167b')]&&_0xa1810c[_0x7d2d7('0x69f')]['appType']===_0x7d2d7('0x1d56')){}else switch((_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x8a5')]||_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x167b')])[_0x7d2d7('0xc2e')]()){case _0x7d2d7('0x3a6'):_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0xd6b')]=_0xa1810c['close'][_0x7d2d7('0x1a8d')]+'='+_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x49')];break;case _0x7d2d7('0x1d56'):break;default:_0x2d1a6e[0x0]=_0xa1810c[_0x7d2d7('0x69f')][_0x7d2d7('0x1db2')],_0xa1810c['close']['appdata']=_0x2d1a6e[_0x7d2d7('0x185f')](',');}_0x5eec1f(_0xa1810c[_0x7d2d7('0x69f')]);}function _0x5eec1f(_0x3d4a2a){const _0x498053=_0x58c679;_0x540aa3[_0x498053('0x19d')](_0x3d4a2a);}}const _0x38f218=_0xd74ce;_0xe71a4a[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x2780'),_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xe71a4a(_0x2704d7,_0x1939fc,_0x2c88da,_0x3d8c33,_0x47263f,_0x30e741,_0x1b8b50,_0x1d37e9){const _0x14ea00=_0x34e79e,_0x1e2608=this;_0x1e2608['currentUser']=_0x1b8b50[_0x14ea00('0x24cc')](),_0x1e2608[_0x14ea00('0x25be')]=[],_0x1e2608[_0x14ea00('0x14e4')]='FAX.EDIT_'+(_0x3d8c33[_0x14ea00('0x167b')]||_0x3d8c33[_0x14ea00('0x8a5')])[_0x14ea00('0x25e6')](),_0x1e2608[_0x14ea00('0x1e01')]=angular[_0x14ea00('0x2669')](_0x3d8c33),_0x1e2608['crudPermissions']=_0x1d37e9,_0x1e2608[_0x14ea00('0x1193')]={};if(_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')])switch(_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x167b')]?_0x1e2608[_0x14ea00('0x1e01')]['appType'][_0x14ea00('0xc2e')]():_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x8a5')][_0x14ea00('0xc2e')]()){case'custom':break;case _0x14ea00('0x5e1'):{const _0x18dcd7=_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')][_0x14ea00('0x1497')](',');_0x1e2608['gotoif']['key']=_0x18dcd7[0x0],_0x1e2608['gotoif'][_0x14ea00('0x175b')]=_0x18dcd7[0x1],_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xf50')]=_0x18dcd7[_0x14ea00('0x845')](0x2,_0x18dcd7[_0x14ea00('0x2566')])[_0x14ea00('0x185f')](',');}break;case _0x14ea00('0x137a'):{const _0x475d26=_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')][_0x14ea00('0x1497')](',');_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x27f2')]=_0x475d26[0x0],_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1b58')]=_0x475d26[0x1],_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xb70')]=_0x475d26[0x2],_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x4eb')]=_0x475d26[0x3],_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xf50')]=_0x475d26[_0x14ea00('0x845')](0x4,_0x475d26[_0x14ea00('0x2566')])[_0x14ea00('0x185f')](',');}break;case _0x14ea00('0x808'):{const _0x3e677a=_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')][_0x14ea00('0x1497')](',');_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x5fd')]=isNaN(_0x3e677a[0x0])?_0x3e677a[0x0]:parseInt(_0x3e677a[0x0],0xa),_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x16db')]=_0x3e677a[_0x14ea00('0x845')](0x1,_0x3e677a[_0x14ea00('0x2566')])['join'](',');}break;case _0x14ea00('0x15e2'):_0x1e2608[_0x14ea00('0x1e01')]['text']=_0x1e2608[_0x14ea00('0x1e01')]['appdata'];break;case _0x14ea00('0x3a6'):_0x1e2608['gotoif']['name']=_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')]['split']('=')[0x0],_0x1e2608['gotoif'][_0x14ea00('0x49')]=_0x1e2608[_0x14ea00('0x1e01')]['appdata'][_0x14ea00('0x1497')]('=')[0x1];break;case _0x14ea00('0x2631'):_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1bf6')]=_0x1e2608['gotoif'][_0x14ea00('0xd6b')];break;default:{const _0x15f47a=_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xd6b')][_0x14ea00('0x1497')](',');_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0xf2b')]=_0x283545()['isEmpty'](_0x15f47a[0x0])?_0x15f47a[0x0]:isNaN(_0x15f47a[0x0])?_0x15f47a[0x0]:parseInt(_0x15f47a[0x0],0xa),_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x86a')]=_0x283545()['isEmpty'](_0x15f47a[0x1])?_0x15f47a[0x1]:isNaN(_0x15f47a[0x1])?_0x15f47a[0x1]:parseInt(_0x15f47a[0x1],0xa),_0x1e2608['gotoif'][_0x14ea00('0x1474')]=_0x283545()['isEmpty'](_0x15f47a[0x2])?_0x15f47a[0x2]:isNaN(_0x15f47a[0x2])?_0x15f47a[0x2]:parseInt(_0x15f47a[0x2],0xa);}break;}else{}_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1d7')]&&_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1d7')][_0x14ea00('0xc2e')]()===_0x14ea00('0x1')&&_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x167b')][_0x14ea00('0xc2e')]()==='outbounddial'&&(_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1f71')]=_0x1e2608['gotoif']['phone']?_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x1224')]['split']('$')[0x0]:undefined,_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x2081')]=_0x1e2608[_0x14ea00('0x1e01')]['callerID']?'CALLERID(all)='+_0x1e2608[_0x14ea00('0x1e01')][_0x14ea00('0x8de')]:undefined);_0x1e2608[_0x14ea00('0x18e6')]=_0x4c1b55,_0x1e2608[_0x14ea00('0xca7')]=_0x14c571;function _0x4c1b55(){const _0xb48a52=_0x14ea00;_0x1e2608['errors']=[];const _0x5cc7a1=[];_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x1d7')]&&_0x1e2608['gotoif'][_0xb48a52('0x1d7')][_0xb48a52('0xc2e')]()===_0xb48a52('0x1')&&_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x167b')]==='outboundDial'&&(_0x1e2608[_0xb48a52('0x1e01')]['phone']=_0x47263f[_0xb48a52('0x277c')]?(_0x1e2608[_0xb48a52('0x1e01')]['prefix']||'')+_0xb48a52('0x124d')+_0x47263f[_0xb48a52('0x277c')]+'}':(_0x1e2608['gotoif'][_0xb48a52('0x1f71')]||'')+_0xb48a52('0x1275'),_0x47263f['recordingFormat']!==_0xb48a52('0x1dc')?_0x1e2608['gotoif'][_0xb48a52('0x784')][_0xb48a52('0x821')](_0xb48a52('0x1609'))<0x0&&(_0x1e2608['gotoif'][_0xb48a52('0x784')]+=_0xb48a52('0x1609')):_0x1e2608[_0xb48a52('0x1e01')]['options']=_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x784')][_0xb48a52('0x10a4')](_0xb48a52('0x1609'),''));if(_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x167b')]&&_0x1e2608['gotoif'][_0xb48a52('0x167b')]===_0xb48a52('0x1d56')){}else switch((_0x1e2608['gotoif'][_0xb48a52('0x8a5')]||_0x1e2608[_0xb48a52('0x1e01')]['appType'])[_0xb48a52('0xc2e')]()){case _0xb48a52('0x3a6'):_0x1e2608['gotoif'][_0xb48a52('0xd6b')]=_0x1e2608['gotoif'][_0xb48a52('0x1a8d')]+'='+_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x49')];break;case _0xb48a52('0x1d56'):break;default:_0x5cc7a1[0x0]=_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0xf2b')],_0x5cc7a1[0x1]=_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x86a')],_0x5cc7a1[0x2]=_0x1e2608[_0xb48a52('0x1e01')][_0xb48a52('0x1474')],_0x1e2608['gotoif']['appdata']=_0x5cc7a1[_0xb48a52('0x185f')](',');}_0x14c571(_0x1e2608['gotoif']);}function _0x14c571(_0x3402b2){const _0x1621ff=_0x14ea00;_0x2704d7[_0x1621ff('0x19d')](_0x3402b2);}}const _0x5c5267=_0xe71a4a;_0xf450fd[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x2780'),'faxAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0xf450fd(_0x28cb9d,_0x313601,_0x2af96d,_0x5314a9,_0x416a32,_0x4236a5,_0xec053,_0x22588a){const _0x20dcff=_0x34e79e,_0x535c2e=this;_0x535c2e['currentUser']=_0xec053['getCurrentUser'](),_0x535c2e[_0x20dcff('0x25be')]=[],_0x535c2e[_0x20dcff('0x14e4')]=_0x20dcff('0x1c3f')+(_0x5314a9[_0x20dcff('0x167b')]||_0x5314a9[_0x20dcff('0x8a5')])['toUpperCase'](),_0x535c2e[_0x20dcff('0x1598')]=angular[_0x20dcff('0x2669')](_0x5314a9),_0x535c2e[_0x20dcff('0xe28')]=_0x22588a,_0x535c2e['hasModulePermissions']={};if(_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')])switch(_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x167b')]?_0x535c2e[_0x20dcff('0x1598')]['appType'][_0x20dcff('0xc2e')]():_0x535c2e[_0x20dcff('0x1598')]['app'][_0x20dcff('0xc2e')]()){case'custom':break;case _0x20dcff('0x5e1'):{const _0x289c7a=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')]['split'](',');_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x234b')]=_0x289c7a[0x0],_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x175b')]=_0x289c7a[0x1],_0x535c2e['gotop']['welcomemessage']=_0x289c7a[_0x20dcff('0x845')](0x2,_0x289c7a['length'])[_0x20dcff('0x185f')](',');}break;case'amazonlex':{const _0x3c467d=_0x535c2e[_0x20dcff('0x1598')]['appdata'][_0x20dcff('0x1497')](',');_0x535c2e['gotop'][_0x20dcff('0x27f2')]=_0x3c467d[0x0],_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x1b58')]=_0x3c467d[0x1],_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xb70')]=_0x3c467d[0x2],_0x535c2e['gotop'][_0x20dcff('0x4eb')]=_0x3c467d[0x3],_0x535c2e['gotop']['welcomemessage']=_0x3c467d[_0x20dcff('0x845')](0x4,_0x3c467d[_0x20dcff('0x2566')])['join'](',');}break;case'autoreply':{const _0x378dbe=_0x535c2e[_0x20dcff('0x1598')]['appdata']['split'](',');_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x5fd')]=isNaN(_0x378dbe[0x0])?_0x378dbe[0x0]:parseInt(_0x378dbe[0x0],0xa),_0x535c2e[_0x20dcff('0x1598')]['text']=_0x378dbe[_0x20dcff('0x845')](0x1,_0x378dbe[_0x20dcff('0x2566')])[_0x20dcff('0x185f')](',');}break;case _0x20dcff('0x15e2'):_0x535c2e['gotop'][_0x20dcff('0x16db')]=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')];break;case _0x20dcff('0x3a6'):_0x535c2e['gotop'][_0x20dcff('0x1a8d')]=_0x535c2e['gotop'][_0x20dcff('0xd6b')][_0x20dcff('0x1497')]('=')[0x0],_0x535c2e['gotop'][_0x20dcff('0x49')]=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')][_0x20dcff('0x1497')]('=')[0x1];break;case _0x20dcff('0x2631'):_0x535c2e[_0x20dcff('0x1598')]['project']=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')];break;default:{const _0x22d5ca=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0xd6b')]['split'](',');_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x155b')]=_0x283545()[_0x20dcff('0x213d')](_0x22d5ca[0x0])?_0x22d5ca[0x0]:isNaN(_0x22d5ca[0x0])?_0x22d5ca[0x0]:parseInt(_0x22d5ca[0x0],0xa);}break;}else{}_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x1d7')]&&_0x535c2e['gotop'][_0x20dcff('0x1d7')][_0x20dcff('0xc2e')]()===_0x20dcff('0x1')&&_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x167b')]['toLowerCase']()==='outbounddial'&&(_0x535c2e['gotop'][_0x20dcff('0x1f71')]=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x1224')]?_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x1224')][_0x20dcff('0x1497')]('$')[0x0]:undefined,_0x535c2e['gotop'][_0x20dcff('0x2081')]=_0x535c2e[_0x20dcff('0x1598')][_0x20dcff('0x8de')]?_0x20dcff('0x1834')+_0x535c2e['gotop'][_0x20dcff('0x8de')]:undefined);_0x535c2e[_0x20dcff('0x18e6')]=_0x54a9b1,_0x535c2e['closeDialog']=_0x35af81;function _0x54a9b1(){const _0x5e610b=_0x20dcff;_0x535c2e[_0x5e610b('0x25be')]=[];const _0x42fb1a=[];_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x1d7')]&&_0x535c2e[_0x5e610b('0x1598')]['type'][_0x5e610b('0xc2e')]()===_0x5e610b('0x1')&&_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x167b')]===_0x5e610b('0x25fb')&&(_0x535c2e['gotop'][_0x5e610b('0x1224')]=_0x416a32[_0x5e610b('0x277c')]?(_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x1f71')]||'')+_0x5e610b('0x124d')+_0x416a32[_0x5e610b('0x277c')]+'}':(_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x1f71')]||'')+_0x5e610b('0x1275'),_0x416a32[_0x5e610b('0x801')]!=='none'?_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x784')][_0x5e610b('0x821')](_0x5e610b('0x1609'))<0x0&&(_0x535c2e[_0x5e610b('0x1598')]['options']+=_0x5e610b('0x1609')):_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x784')]=_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x784')][_0x5e610b('0x10a4')](_0x5e610b('0x1609'),''));if(_0x535c2e['gotop'][_0x5e610b('0x167b')]&&_0x535c2e[_0x5e610b('0x1598')]['appType']===_0x5e610b('0x1d56')){}else switch((_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x8a5')]||_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x167b')])[_0x5e610b('0xc2e')]()){case _0x5e610b('0x3a6'):_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0xd6b')]=_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x1a8d')]+'='+_0x535c2e[_0x5e610b('0x1598')]['value'];break;case _0x5e610b('0x1d56'):break;default:_0x42fb1a[0x0]=_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0x155b')],_0x535c2e[_0x5e610b('0x1598')][_0x5e610b('0xd6b')]=_0x42fb1a['join'](',');}_0x35af81(_0x535c2e[_0x5e610b('0x1598')]);}function _0x35af81(_0x2aba22){const _0x4868ec=_0x20dcff;_0x28cb9d[_0x4868ec('0x19d')](_0x2aba22);}}const _0x1c1dcc=_0xf450fd;_0x2d589d['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2d589d(_0x48b428,_0x3f6835,_0x4e9866,_0xd759b7,_0x15c35d,_0x1d512e,_0x202ba6,_0x5615f8,_0x2cafda,_0x2ef275){const _0x558eb9=_0x34e79e,_0x50521e=this;_0x50521e[_0x558eb9('0x9cb')]=_0x2cafda[_0x558eb9('0x24cc')](),_0x50521e[_0x558eb9('0x25be')]=[],_0x50521e['title']=_0x558eb9('0x2f9'),_0x50521e[_0x558eb9('0x2630')]=angular[_0x558eb9('0x2669')](_0x15c35d),_0x50521e['intervals']=_0x1d512e,_0x50521e['newInterval']=![],_0x50521e['types']=[_0x558eb9('0xc8f'),_0x558eb9('0x1d56'),'list'],_0x50521e[_0x558eb9('0xe28')]=_0x2ef275,_0x50521e[_0x558eb9('0x1eb8')]=_0xd759b7[_0x558eb9('0xec1')](),_0x50521e[_0x558eb9('0x323')]=_0xd759b7[_0x558eb9('0x1383')](),_0x50521e[_0x558eb9('0xfed')]=_0xd759b7[_0x558eb9('0xc35')](),_0x50521e[_0x558eb9('0x1d59')]=_0xd759b7[_0x558eb9('0x1b79')]();if(!_0x50521e[_0x558eb9('0x2630')])_0x50521e[_0x558eb9('0x2630')]={'interval':_0x558eb9('0x2191')},_0x50521e[_0x558eb9('0x1d7')]='always',_0x50521e['title']=_0x558eb9('0xbee'),_0x50521e[_0x558eb9('0x1f7c')]=!![];else{if(_0x50521e[_0x558eb9('0x2630')][_0x558eb9('0x2630')]!==_0x558eb9('0x2191')){_0x50521e[_0x558eb9('0x1d7')]=_0x558eb9('0x1d56');const _0x8952e7=_0x50521e['interval'][_0x558eb9('0x2630')][_0x558eb9('0x1497')](','),_0x29f73e=_0x8952e7[0x0],_0x188b76=_0x8952e7[0x1],_0x1bb4f7=_0x8952e7[0x2],_0x34f7e2=_0x8952e7[0x3];if(_0x29f73e!=='*'){const _0xd06e01=_0x29f73e[_0x558eb9('0x1497')]('-')[0x0],_0x37936f=_0x29f73e[_0x558eb9('0x1497')]('-')[0x1];let _0x2a3df3;_0x2a3df3=new Date(),_0x2a3df3[_0x558eb9('0x26f3')](Number(_0xd06e01[_0x558eb9('0x1497')](':')[0x0])),_0x2a3df3[_0x558eb9('0x18d')](Number(_0xd06e01[_0x558eb9('0x1497')](':')[0x1])),_0x50521e['timeRangeFrom']=_0x2a3df3,_0x2a3df3=new Date(),_0x2a3df3['setHours'](Number(_0x37936f['split'](':')[0x0])),_0x2a3df3[_0x558eb9('0x18d')](Number(_0x37936f[_0x558eb9('0x1497')](':')[0x1])),_0x50521e['timeRangeTo']=_0x2a3df3;}_0x188b76!=='*'&&(_0x50521e['dayOfWeekFrom']=_0x188b76[_0x558eb9('0x1497')]('-')[0x0],_0x50521e[_0x558eb9('0x6c2')]=_0x188b76['split']('-')[0x1]),_0x1bb4f7!=='*'&&(_0x50521e[_0x558eb9('0x1d91')]=_0x1bb4f7[_0x558eb9('0x1497')]('-')[0x0],_0x50521e[_0x558eb9('0x883')]=_0x1bb4f7[_0x558eb9('0x1497')]('-')[0x1]),_0x34f7e2!=='*'&&(_0x50521e['monthFrom']=_0x34f7e2[_0x558eb9('0x1497')]('-')[0x0],_0x50521e['monthTo']=_0x34f7e2[_0x558eb9('0x1497')]('-')[0x1]);}else _0x50521e[_0x558eb9('0x1d7')]='always';}_0x48b428[_0x558eb9('0x4b9')]['id']&&!_0x50521e[_0x558eb9('0x2630')][_0x558eb9('0x193')]&&(_0x50521e[_0x558eb9('0x2630')][_0x558eb9('0x20d0')]=_0x48b428[_0x558eb9('0x4b9')]['id']);_0x50521e[_0x558eb9('0x2630')][_0x558eb9('0x20d0')]&&_0x50521e['interval']['application']&&(_0x50521e[_0x558eb9('0x1d7')]=_0x558eb9('0x4b2'));_0x50521e['addNewInterval']=_0x1eb73e,_0x50521e['saveInterval']=_0x7a7c5e,_0x50521e[_0x558eb9('0xca7')]=_0x5c6d55;_0x50521e[_0x558eb9('0x2630')][_0x558eb9('0x193')]&&(_0x2cafda[_0x558eb9('0x1516')](_0x558eb9('0xe23'))?_0x5615f8['interval']['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x558eb9('0x954'),'nolimit':!![]})[_0x558eb9('0x1714')][_0x558eb9('0x2788')](function(_0x20abb5){const _0x276cd5=_0x558eb9;_0x50521e[_0x276cd5('0xec5')]=_0x20abb5['rows']||[];})[_0x558eb9('0x1cb5')](function(_0x147c78){const _0x2e4b55=_0x558eb9;_0x202ba6[_0x2e4b55('0x5e8')]({'title':_0x147c78[_0x2e4b55('0x1b51')]?_0x2e4b55('0x15d1')+_0x147c78[_0x2e4b55('0x1b51')]+_0x2e4b55('0x1b0b')+_0x147c78[_0x2e4b55('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x147c78['data']?JSON[_0x2e4b55('0x1be0')](_0x147c78[_0x2e4b55('0x11fc')]):_0x147c78[_0x2e4b55('0x17df')]()});}):_0x5615f8['interval'][_0x558eb9('0x1335')]({'fields':_0x558eb9('0x27dc'),'IntervalId':_0x558eb9('0x954'),'nolimit':!![]})[_0x558eb9('0x1714')][_0x558eb9('0x2788')](function(_0x34a253){const _0x58ebed=_0x558eb9;_0x50521e[_0x58ebed('0xec5')]=_0x34a253[_0x58ebed('0x25df')]||[];})[_0x558eb9('0x2788')](function(){const _0x41d478=_0x558eb9;return _0x5615f8[_0x41d478('0xec9')][_0x41d478('0x1335')]({'userProfileId':_0x50521e[_0x41d478('0x9cb')]['userProfileId'],'sectionId':0x3ec})[_0x41d478('0x1714')];})['then'](function(_0x281ae5){const _0x244c6e=_0x558eb9,_0x17d6c7=_0x281ae5&&_0x281ae5[_0x244c6e('0x25df')]?_0x281ae5[_0x244c6e('0x25df')][0x0]:null;if(!_0x17d6c7)_0x50521e[_0x244c6e('0xec5')]=[];else{if(!_0x17d6c7[_0x244c6e('0x1c0a')])return _0x5615f8[_0x244c6e('0x1050')]['get']({'sectionId':_0x17d6c7['id']})['$promise'][_0x244c6e('0x2788')](function(_0x5a8c35){const _0x37ba8f=_0x244c6e,_0x150044=_0x5a8c35&&_0x5a8c35[_0x37ba8f('0x25df')]?_0x5a8c35['rows']:[],_0x50fb56=[];let _0x5b4376=null;_0x50521e[_0x37ba8f('0x2630')]&&(_0x5b4376=_0x283545()[_0x37ba8f('0x20e8')](_0x50521e[_0x37ba8f('0xec5')],{'name':_0x50521e['interval']['IntervalId']})),_0x5b4376&&!_0x283545()[_0x37ba8f('0xc5d')](_0x150044,[_0x37ba8f('0x2707'),_0x5b4376['id']])&&_0x50521e[_0x37ba8f('0xec5')][_0x37ba8f('0x1534')](function(_0x5eae03){const _0x1bea82=_0x37ba8f;_0x5eae03['id']===_0x5b4376['id']&&(_0x5eae03[_0x1bea82('0x3bf')]=![],_0x50fb56['push'](_0x5eae03));}),_0x50521e[_0x37ba8f('0xec5')]=_0x50fb56;});}})[_0x558eb9('0x1cb5')](function(_0x238f5c){const _0x27f273=_0x558eb9;_0x202ba6[_0x27f273('0x5e8')]({'title':_0x238f5c[_0x27f273('0x1b51')]?_0x27f273('0x15d1')+_0x238f5c['status']+_0x27f273('0x1b0b')+_0x238f5c[_0x27f273('0x22ce')]:_0x27f273('0x2151'),'msg':_0x238f5c[_0x27f273('0x11fc')]?JSON[_0x27f273('0x1be0')](_0x238f5c[_0x27f273('0x11fc')]):_0x238f5c[_0x27f273('0x17df')]()});}));function _0x221b45(){const _0x40ebd7=_0x558eb9;switch(_0x50521e['type']){case'always':case _0x40ebd7('0x4b2'):return _0x40ebd7('0x2191');case _0x40ebd7('0x1d56'):{const _0x49df04=[];if(_0x50521e['timeRangeFrom']!=='*'&&_0x50521e[_0x40ebd7('0x9c0')]&&_0x50521e['timeRangeTo']){const _0x368104=(_0x50521e[_0x40ebd7('0x9c0')]['getHours']()<0xa?'0':'')+_0x50521e[_0x40ebd7('0x9c0')]['getHours']()+':'+((_0x50521e['timeRangeFrom'][_0x40ebd7('0x2649')]()<0xa?'0':'')+_0x50521e[_0x40ebd7('0x9c0')][_0x40ebd7('0x2649')]()),_0x51d48c=(_0x50521e[_0x40ebd7('0x4a7')][_0x40ebd7('0x130a')]()<0xa?'0':'')+_0x50521e['timeRangeTo'][_0x40ebd7('0x130a')]()+':'+((_0x50521e[_0x40ebd7('0x4a7')][_0x40ebd7('0x2649')]()<0xa?'0':'')+_0x50521e['timeRangeTo'][_0x40ebd7('0x2649')]());_0x49df04[_0x40ebd7('0x13e3')](_0x368104+'-'+_0x51d48c);}else _0x49df04[_0x40ebd7('0x13e3')]('*');return _0x50521e[_0x40ebd7('0x240c')]?_0x50521e[_0x40ebd7('0x6c2')]?_0x49df04[_0x40ebd7('0x13e3')](_0x50521e[_0x40ebd7('0x240c')]+'-'+_0x50521e[_0x40ebd7('0x6c2')]):_0x49df04[_0x40ebd7('0x13e3')](_0x50521e[_0x40ebd7('0x240c')]):_0x49df04[_0x40ebd7('0x13e3')]('*'),_0x50521e[_0x40ebd7('0x1d91')]?_0x50521e[_0x40ebd7('0x883')]?_0x49df04['push'](_0x50521e[_0x40ebd7('0x1d91')]+'-'+_0x50521e[_0x40ebd7('0x883')]):_0x49df04[_0x40ebd7('0x13e3')](_0x50521e[_0x40ebd7('0x1d91')]):_0x49df04[_0x40ebd7('0x13e3')]('*'),_0x50521e[_0x40ebd7('0x1317')]?_0x50521e[_0x40ebd7('0x3dc')]?_0x49df04[_0x40ebd7('0x13e3')](_0x50521e[_0x40ebd7('0x1317')]+'-'+_0x50521e['monthTo']):_0x49df04['push'](_0x50521e[_0x40ebd7('0x1317')]):_0x49df04[_0x40ebd7('0x13e3')]('*'),_0x49df04[_0x40ebd7('0x185f')]();}}}function _0x1eb73e(){const _0x50d0ef=_0x558eb9;_0x50521e[_0x50d0ef('0x25be')]=[],_0x50521e['interval'][_0x50d0ef('0x2630')]=_0x221b45(),_0x5615f8[_0x50d0ef('0x2630')][_0x50d0ef('0xbd0')](_0x50521e[_0x50d0ef('0x2630')])[_0x50d0ef('0x1714')][_0x50d0ef('0x2788')](function(_0x4d773b){const _0xa922b=_0x50d0ef;_0x50521e[_0xa922b('0xec5')][_0xa922b('0x13e3')](_0x4d773b),_0x202ba6['success']({'title':'Interval\x20properly\x20created','msg':_0x50521e[_0xa922b('0x2630')][_0xa922b('0x1a8d')]?_0x50521e[_0xa922b('0x2630')][_0xa922b('0x1a8d')]+_0xa922b('0x1e4a'):''}),_0x5c6d55();})[_0x50d0ef('0x1cb5')](function(_0x5adb98){const _0x1ee4b1=_0x50d0ef;console['error'](_0x5adb98),_0x50521e['errors']=_0x5adb98[_0x1ee4b1('0x11fc')][_0x1ee4b1('0x25be')]||[{'message':_0x5adb98[_0x1ee4b1('0x17df')](),'type':_0x1ee4b1('0x94a')}];});}function _0x7a7c5e(){const _0x40b9ee=_0x558eb9;_0x50521e[_0x40b9ee('0x25be')]=[],_0x50521e[_0x40b9ee('0x2630')][_0x40b9ee('0x2630')]=_0x221b45(),_0x50521e['interval'][_0x40b9ee('0x193')]?(_0x50521e[_0x40b9ee('0x1d7')]!==_0x40b9ee('0x4b2')&&(_0x50521e['interval'][_0x40b9ee('0x20d0')]=null),_0x5c6d55(_0x50521e['interval'])):_0x5615f8[_0x40b9ee('0x2630')][_0x40b9ee('0x2740')]({'id':_0x50521e[_0x40b9ee('0x2630')]['id']},_0x50521e[_0x40b9ee('0x2630')])[_0x40b9ee('0x1714')][_0x40b9ee('0x2788')](function(_0x21ef22){const _0x456c62=_0x40b9ee,_0x45a8bb=_0x283545()[_0x456c62('0x20e8')](_0x50521e[_0x456c62('0xec5')],{'id':_0x21ef22['id']});_0x45a8bb&&_0x283545()[_0x456c62('0x2503')](_0x45a8bb,_0x21ef22),_0x202ba6[_0x456c62('0x173b')]({'title':_0x456c62('0xd34'),'msg':_0x456c62('0x14f1')}),_0x5c6d55();})['catch'](function(_0x354049){const _0x986b2a=_0x40b9ee;console[_0x986b2a('0x5e8')](_0x354049),_0x50521e[_0x986b2a('0x25be')]=_0x354049[_0x986b2a('0x11fc')][_0x986b2a('0x25be')]||[{'message':_0x354049[_0x986b2a('0x17df')](),'type':_0x986b2a('0xc2d')}];});}function _0x5c6d55(_0xcb30c5){const _0x2f1e9c=_0x558eb9;_0x3f6835[_0x2f1e9c('0x19d')](_0xcb30c5);}}const _0x3ea63e=_0x2d589d;_0x4d5ac3[_0x34e79e('0x2d9')]=['$mdDialog','$q','toasty',_0x34e79e('0x2780'),_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x4d5ac3(_0x2a4d2d,_0x3c9fec,_0x5d4576,_0x56320c,_0x161657,_0x51d69e,_0x20ad64,_0x2576f3){const _0x4d62c4=_0x34e79e,_0x3a1d8a=this;_0x3a1d8a['currentUser']=_0x20ad64[_0x4d62c4('0x24cc')](),_0x3a1d8a[_0x4d62c4('0x25be')]=[],_0x3a1d8a[_0x4d62c4('0x14e4')]='FAX.EDIT_'+(_0x56320c[_0x4d62c4('0x167b')]||_0x56320c[_0x4d62c4('0x8a5')])[_0x4d62c4('0x25e6')](),_0x3a1d8a[_0x4d62c4('0x18dd')]=angular['copy'](_0x56320c),_0x3a1d8a[_0x4d62c4('0xe28')]=_0x2576f3,_0x3a1d8a[_0x4d62c4('0x1193')]={};if(_0x3a1d8a[_0x4d62c4('0x18dd')]['appdata'])switch(_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x167b')]?_0x3a1d8a['noop'][_0x4d62c4('0x167b')][_0x4d62c4('0xc2e')]():_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x8a5')][_0x4d62c4('0xc2e')]()){case _0x4d62c4('0x1d56'):break;case _0x4d62c4('0x5e1'):{const _0x5e8b25=_0x3a1d8a['noop'][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')](',');_0x3a1d8a['noop'][_0x4d62c4('0x234b')]=_0x5e8b25[0x0],_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x175b')]=_0x5e8b25[0x1],_0x3a1d8a['noop'][_0x4d62c4('0xf50')]=_0x5e8b25[_0x4d62c4('0x845')](0x2,_0x5e8b25[_0x4d62c4('0x2566')])[_0x4d62c4('0x185f')](',');}break;case'amazonlex':{const _0x22f044=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')](',');_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x27f2')]=_0x22f044[0x0],_0x3a1d8a['noop'][_0x4d62c4('0x1b58')]=_0x22f044[0x1],_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xb70')]=_0x22f044[0x2],_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x4eb')]=_0x22f044[0x3],_0x3a1d8a['noop'][_0x4d62c4('0xf50')]=_0x22f044[_0x4d62c4('0x845')](0x4,_0x22f044[_0x4d62c4('0x2566')])[_0x4d62c4('0x185f')](',');}break;case _0x4d62c4('0x808'):{const _0x4b03b5=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')](',');_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x5fd')]=isNaN(_0x4b03b5[0x0])?_0x4b03b5[0x0]:parseInt(_0x4b03b5[0x0],0xa),_0x3a1d8a[_0x4d62c4('0x18dd')]['text']=_0x4b03b5[_0x4d62c4('0x845')](0x1,_0x4b03b5[_0x4d62c4('0x2566')])[_0x4d62c4('0x185f')](',');}break;case'message':_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x16db')]=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xd6b')];break;case _0x4d62c4('0x3a6'):_0x3a1d8a[_0x4d62c4('0x18dd')]['name']=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')]('=')[0x0],_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x49')]=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')]('=')[0x1];break;case'agi':_0x3a1d8a['noop']['project']=_0x3a1d8a[_0x4d62c4('0x18dd')]['appdata'];break;default:{const _0x8e423c=_0x3a1d8a['noop'][_0x4d62c4('0xd6b')][_0x4d62c4('0x1497')](',');_0x3a1d8a[_0x4d62c4('0x18dd')]['value']=_0x283545()[_0x4d62c4('0x213d')](_0x8e423c[0x0])?_0x8e423c[0x0]:isNaN(_0x8e423c[0x0])?_0x8e423c[0x0]:parseInt(_0x8e423c[0x0],0xa);}break;}else{}_0x3a1d8a['noop']['type']&&_0x3a1d8a['noop']['type'][_0x4d62c4('0xc2e')]()==='outbound'&&_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x167b')][_0x4d62c4('0xc2e')]()===_0x4d62c4('0x229c')&&(_0x3a1d8a[_0x4d62c4('0x18dd')]['prefix']=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x1224')]?_0x3a1d8a[_0x4d62c4('0x18dd')]['phone']['split']('$')[0x0]:undefined,_0x3a1d8a[_0x4d62c4('0x18dd')]['callerId']=_0x3a1d8a[_0x4d62c4('0x18dd')][_0x4d62c4('0x8de')]?'CALLERID(all)='+_0x3a1d8a[_0x4d62c4('0x18dd')]['callerID']:undefined);_0x3a1d8a['saveFaxAccountApp']=_0x12dfe4,_0x3a1d8a[_0x4d62c4('0xca7')]=_0x418c6a;function _0x12dfe4(){const _0x4f211c=_0x4d62c4;_0x3a1d8a[_0x4f211c('0x25be')]=[];const _0x47d041=[];_0x3a1d8a['noop'][_0x4f211c('0x1d7')]&&_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x1d7')]['toLowerCase']()===_0x4f211c('0x1')&&_0x3a1d8a[_0x4f211c('0x18dd')]['appType']===_0x4f211c('0x25fb')&&(_0x3a1d8a[_0x4f211c('0x18dd')]['phone']=_0x161657[_0x4f211c('0x277c')]?(_0x3a1d8a['noop'][_0x4f211c('0x1f71')]||'')+_0x4f211c('0x124d')+_0x161657[_0x4f211c('0x277c')]+'}':(_0x3a1d8a['noop'][_0x4f211c('0x1f71')]||'')+'${EXTEN}',_0x161657[_0x4f211c('0x801')]!==_0x4f211c('0x1dc')?_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x784')]['indexOf'](_0x4f211c('0x1609'))<0x0&&(_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x784')]+=_0x4f211c('0x1609')):_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x784')]=_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x784')][_0x4f211c('0x10a4')](_0x4f211c('0x1609'),''));if(_0x3a1d8a['noop'][_0x4f211c('0x167b')]&&_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x167b')]===_0x4f211c('0x1d56')){}else switch((_0x3a1d8a[_0x4f211c('0x18dd')]['app']||_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x167b')])['toLowerCase']()){case _0x4f211c('0x3a6'):_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0xd6b')]=_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x1a8d')]+'='+_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x49')];break;case _0x4f211c('0x1d56'):break;default:_0x47d041[0x0]=_0x3a1d8a[_0x4f211c('0x18dd')][_0x4f211c('0x49')],_0x3a1d8a['noop'][_0x4f211c('0xd6b')]=_0x47d041[_0x4f211c('0x185f')](',');}_0x418c6a(_0x3a1d8a[_0x4f211c('0x18dd')]);}function _0x418c6a(_0x374c66){const _0x99652b=_0x4d62c4;_0x2a4d2d[_0x99652b('0x19d')](_0x374c66);}}const _0x396eee=_0x4d5ac3;_0x2d606a[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x2780'),_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2d606a(_0xc1c747,_0x11f6f8,_0x2b6344,_0x3c9a02,_0x3157dc,_0x1375d8,_0x1e6051,_0x276849){const _0x443717=_0x34e79e,_0x452cf2=this;_0x452cf2[_0x443717('0x9cb')]=_0x1e6051[_0x443717('0x24cc')](),_0x452cf2[_0x443717('0x25be')]=[],_0x452cf2[_0x443717('0x14e4')]=_0x443717('0x1c3f')+(_0x3c9a02[_0x443717('0x167b')]||_0x3c9a02[_0x443717('0x8a5')])[_0x443717('0x25e6')](),_0x452cf2[_0x443717('0x1ab4')]=angular['copy'](_0x3c9a02),_0x452cf2[_0x443717('0xe28')]=_0x276849,_0x452cf2[_0x443717('0x1193')]={};if(_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')])switch(_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x167b')]?_0x452cf2[_0x443717('0x1ab4')]['appType'][_0x443717('0xc2e')]():_0x452cf2[_0x443717('0x1ab4')]['app'][_0x443717('0xc2e')]()){case _0x443717('0x1d56'):break;case _0x443717('0x5e1'):{const _0x5729d2=_0x452cf2[_0x443717('0x1ab4')]['appdata'][_0x443717('0x1497')](',');_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x234b')]=_0x5729d2[0x0],_0x452cf2[_0x443717('0x1ab4')]['language']=_0x5729d2[0x1],_0x452cf2['queue'][_0x443717('0xf50')]=_0x5729d2['slice'](0x2,_0x5729d2[_0x443717('0x2566')])[_0x443717('0x185f')](',');}break;case _0x443717('0x137a'):{const _0x5866a6=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')][_0x443717('0x1497')](',');_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x27f2')]=_0x5866a6[0x0],_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1b58')]=_0x5866a6[0x1],_0x452cf2[_0x443717('0x1ab4')]['lexregion']=_0x5866a6[0x2],_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x4eb')]=_0x5866a6[0x3],_0x452cf2[_0x443717('0x1ab4')]['welcomemessage']=_0x5866a6[_0x443717('0x845')](0x4,_0x5866a6['length'])[_0x443717('0x185f')](',');}break;case _0x443717('0x808'):{const _0x2bf2bf=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')][_0x443717('0x1497')](',');_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x5fd')]=isNaN(_0x2bf2bf[0x0])?_0x2bf2bf[0x0]:parseInt(_0x2bf2bf[0x0],0xa),_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x16db')]=_0x2bf2bf[_0x443717('0x845')](0x1,_0x2bf2bf['length'])[_0x443717('0x185f')](',');}break;case'message':_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x16db')]=_0x452cf2['queue'][_0x443717('0xd6b')];break;case _0x443717('0x3a6'):_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1a8d')]=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')]['split']('=')[0x0],_0x452cf2['queue'][_0x443717('0x49')]=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')][_0x443717('0x1497')]('=')[0x1];break;case _0x443717('0x2631'):_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1bf6')]=_0x452cf2[_0x443717('0x1ab4')]['appdata'];break;default:{const _0x50413c=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0xd6b')][_0x443717('0x1497')](',');_0x452cf2['queue'][_0x443717('0x1ab4')]=_0x283545()[_0x443717('0x213d')](_0x50413c[0x0])?_0x50413c[0x0]:isNaN(_0x50413c[0x0])?_0x50413c[0x0]:parseInt(_0x50413c[0x0],0xa),_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x24e4')]=_0x283545()['isEmpty'](_0x50413c[0x1])?_0x50413c[0x1]:isNaN(_0x50413c[0x1])?_0x50413c[0x1]:parseInt(_0x50413c[0x1],0xa);}break;}else _0x452cf2['queue']['queue']=0x12c,_0x452cf2['queue']['timeout']=0x12c;_0x452cf2['queue'][_0x443717('0x1d7')]&&_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1d7')][_0x443717('0xc2e')]()===_0x443717('0x1')&&_0x452cf2['queue']['appType'][_0x443717('0xc2e')]()===_0x443717('0x229c')&&(_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1f71')]=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1224')]?_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x1224')][_0x443717('0x1497')]('$')[0x0]:undefined,_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x2081')]=_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x8de')]?_0x443717('0x1834')+_0x452cf2[_0x443717('0x1ab4')][_0x443717('0x8de')]:undefined);_0x452cf2[_0x443717('0x18e6')]=_0x840b3d,_0x452cf2[_0x443717('0xca7')]=_0x3b4c93,_0x1e6051[_0x443717('0x1516')](_0x443717('0xe23'))?_0x1375d8[_0x443717('0x1cc3')]['get']({'fields':_0x443717('0xafa'),'sort':_0x443717('0x1a8d'),'nolimit':'true'})[_0x443717('0x1714')][_0x443717('0x2788')](function(_0x576e32){const _0x2b3816=_0x443717;_0x452cf2[_0x2b3816('0x283e')]=_0x576e32[_0x2b3816('0x25df')]||[];})[_0x443717('0x1cb5')](function(_0x7cc802){const _0x2aa915=_0x443717;_0x2b6344['error']({'title':_0x7cc802[_0x2aa915('0x1b51')]?_0x2aa915('0x15d1')+_0x7cc802[_0x2aa915('0x1b51')]+_0x2aa915('0x1b0b')+_0x7cc802[_0x2aa915('0x22ce')]:_0x2aa915('0x2763'),'msg':_0x7cc802[_0x2aa915('0x11fc')]?JSON['stringify'](_0x7cc802[_0x2aa915('0x11fc')]):_0x7cc802[_0x2aa915('0x17df')]()});}):_0x1375d8[_0x443717('0x1cc3')]['get']({'fields':_0x443717('0xafa'),'sort':_0x443717('0x1a8d'),'nolimit':_0x443717('0x1001')})['$promise'][_0x443717('0x2788')](function(_0x4e7b19){const _0x9c7f4f=_0x443717;_0x452cf2[_0x9c7f4f('0x283e')]=_0x4e7b19['rows']||[];})[_0x443717('0x2788')](function(){const _0x54fe76=_0x443717;return _0x1375d8[_0x54fe76('0xec9')][_0x54fe76('0x1335')]({'userProfileId':_0x452cf2[_0x54fe76('0x9cb')][_0x54fe76('0x237f')],'sectionId':0x385})[_0x54fe76('0x1714')];})[_0x443717('0x2788')](function(_0x5bdfb0){const _0x129f84=_0x443717,_0x50d406=_0x5bdfb0&&_0x5bdfb0['rows']?_0x5bdfb0['rows'][0x0]:null;if(!_0x50d406){const _0x400372=[];let _0x3af0f8=null;_0x452cf2[_0x129f84('0x1ab4')]&&(_0x3af0f8=_0x283545()[_0x129f84('0x20e8')](_0x452cf2[_0x129f84('0x283e')],{'name':_0x452cf2['queue'][_0x129f84('0x1ab4')]}));for(let _0x3b9238=0x0;_0x3b9238<_0x452cf2['queues'][_0x129f84('0x2566')];_0x3b9238++){_0x3af0f8&&_0x452cf2['queues'][_0x3b9238]['id']===_0x3af0f8['id']&&(_0x452cf2[_0x129f84('0x283e')][_0x3b9238][_0x129f84('0x3bf')]=![],_0x400372[_0x129f84('0x13e3')](_0x452cf2[_0x129f84('0x283e')][_0x3b9238]));}_0x452cf2['queues']=_0x400372;}else{if(!_0x50d406['autoAssociation'])return _0x1375d8[_0x129f84('0x1050')][_0x129f84('0x1335')]({'sectionId':_0x50d406['id']})[_0x129f84('0x1714')][_0x129f84('0x2788')](function(_0x2f02d6){const _0x112ee9=_0x129f84,_0x55cee4=_0x283545()['map'](_0x2f02d6['rows'],function(_0x17ee8e){const _0x4c77cb=a0_0x14e7;return _0x283545()[_0x4c77cb('0x20e8')](_0x452cf2[_0x4c77cb('0x283e')],{'id':_0x17ee8e[_0x4c77cb('0x2707')]});});let _0x485524=null;_0x452cf2['queue']&&(_0x485524=_0x283545()[_0x112ee9('0x20e8')](_0x452cf2[_0x112ee9('0x283e')],{'name':_0x452cf2[_0x112ee9('0x1ab4')][_0x112ee9('0x1ab4')]}));if(_0x485524&&!_0x283545()['some'](_0x55cee4,['id',_0x485524['id']])){const _0xdfd4d3=_0x283545()['find'](_0x452cf2[_0x112ee9('0x283e')],{'id':_0x485524['id']});_0xdfd4d3[_0x112ee9('0x3bf')]=![],_0x55cee4[_0x112ee9('0x13e3')](_0xdfd4d3);}_0x452cf2[_0x112ee9('0x283e')]=_0x55cee4;});}})[_0x443717('0x1cb5')](function(_0x18c67d){const _0x58ce81=_0x443717;_0x2b6344[_0x58ce81('0x5e8')]({'title':_0x18c67d[_0x58ce81('0x1b51')]?_0x58ce81('0x15d1')+_0x18c67d['status']+_0x58ce81('0x1b0b')+_0x18c67d[_0x58ce81('0x22ce')]:_0x58ce81('0xb14'),'msg':_0x18c67d['data']?JSON[_0x58ce81('0x1be0')](_0x18c67d[_0x58ce81('0x11fc')]):_0x18c67d['toString']()});});function _0x840b3d(){const _0x52a4f0=_0x443717;_0x452cf2[_0x52a4f0('0x25be')]=[];const _0x3d2779=[];_0x452cf2['queue'][_0x52a4f0('0x1d7')]&&_0x452cf2[_0x52a4f0('0x1ab4')]['type'][_0x52a4f0('0xc2e')]()===_0x52a4f0('0x1')&&_0x452cf2['queue'][_0x52a4f0('0x167b')]===_0x52a4f0('0x25fb')&&(_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x1224')]=_0x3157dc[_0x52a4f0('0x277c')]?(_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x1f71')]||'')+'${EXTEN:'+_0x3157dc[_0x52a4f0('0x277c')]+'}':(_0x452cf2[_0x52a4f0('0x1ab4')]['prefix']||'')+_0x52a4f0('0x1275'),_0x3157dc['recordingFormat']!==_0x52a4f0('0x1dc')?_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x784')]['indexOf'](_0x52a4f0('0x1609'))<0x0&&(_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x784')]+=_0x52a4f0('0x1609')):_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x784')]=_0x452cf2['queue']['options'][_0x52a4f0('0x10a4')](_0x52a4f0('0x1609'),''));const _0xb27eba=_0x283545()[_0x52a4f0('0x20e8')](_0x452cf2[_0x52a4f0('0x283e')],{'name':_0x452cf2[_0x52a4f0('0x1ab4')]['queue']});_0xb27eba&&(_0x452cf2['queue'][_0x283545()['capitalize']('fax')+_0x52a4f0('0xec4')]=_0xb27eba['id']);if(_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x167b')]&&_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x167b')]===_0x52a4f0('0x1d56')){}else switch((_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x8a5')]||_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x167b')])[_0x52a4f0('0xc2e')]()){case _0x52a4f0('0x3a6'):_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0xd6b')]=_0x452cf2['queue'][_0x52a4f0('0x1a8d')]+'='+_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x49')];break;case _0x52a4f0('0x1d56'):break;default:_0x3d2779[0x0]=_0x452cf2[_0x52a4f0('0x1ab4')][_0x52a4f0('0x1ab4')],_0x3d2779[0x1]=_0x452cf2[_0x52a4f0('0x1ab4')]['timeout'],_0x452cf2['queue'][_0x52a4f0('0xd6b')]=_0x3d2779[_0x52a4f0('0x185f')](',');}_0x3b4c93(_0x452cf2['queue']);}function _0x3b4c93(_0x51a8d4){const _0x25a227=_0x443717;_0xc1c747[_0x25a227('0x19d')](_0x51a8d4);}}const _0x15ff61=_0x2d606a;_0x129732[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x2780'),_0x34e79e('0x1fb8'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x129732(_0x529ad8,_0x31df6b,_0x1a1a4e,_0x13db57,_0x1c4868,_0x2ea723,_0x86975c,_0xba2c6d){const _0x1c35d7=_0x34e79e,_0x2c75ba=this;_0x2c75ba[_0x1c35d7('0x9cb')]=_0x86975c[_0x1c35d7('0x24cc')](),_0x2c75ba[_0x1c35d7('0x25be')]=[],_0x2c75ba[_0x1c35d7('0x14e4')]=_0x1c35d7('0x1c3f')+(_0x13db57[_0x1c35d7('0x167b')]||_0x13db57[_0x1c35d7('0x8a5')])[_0x1c35d7('0x25e6')](),_0x2c75ba[_0x1c35d7('0xe81')]=angular['copy'](_0x13db57),_0x2c75ba['crudPermissions']=_0xba2c6d,_0x2c75ba[_0x1c35d7('0x1193')]={};if(_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')])switch(_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x167b')]?_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x167b')][_0x1c35d7('0xc2e')]():_0x2c75ba[_0x1c35d7('0xe81')]['app'][_0x1c35d7('0xc2e')]()){case _0x1c35d7('0x1d56'):break;case _0x1c35d7('0x5e1'):{const _0x285949=_0x2c75ba['system'][_0x1c35d7('0xd6b')][_0x1c35d7('0x1497')](',');_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x234b')]=_0x285949[0x0],_0x2c75ba[_0x1c35d7('0xe81')]['language']=_0x285949[0x1],_0x2c75ba[_0x1c35d7('0xe81')]['welcomemessage']=_0x285949[_0x1c35d7('0x845')](0x2,_0x285949[_0x1c35d7('0x2566')])[_0x1c35d7('0x185f')](',');}break;case'amazonlex':{const _0x2e4728=_0x2c75ba['system'][_0x1c35d7('0xd6b')][_0x1c35d7('0x1497')](',');_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x27f2')]=_0x2e4728[0x0],_0x2c75ba[_0x1c35d7('0xe81')]['secretaccesskey']=_0x2e4728[0x1],_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xb70')]=_0x2e4728[0x2],_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x4eb')]=_0x2e4728[0x3],_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xf50')]=_0x2e4728[_0x1c35d7('0x845')](0x4,_0x2e4728[_0x1c35d7('0x2566')])[_0x1c35d7('0x185f')](',');}break;case _0x1c35d7('0x808'):{const _0x3a2a42=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')][_0x1c35d7('0x1497')](',');_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x5fd')]=isNaN(_0x3a2a42[0x0])?_0x3a2a42[0x0]:parseInt(_0x3a2a42[0x0],0xa),_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x16db')]=_0x3a2a42[_0x1c35d7('0x845')](0x1,_0x3a2a42[_0x1c35d7('0x2566')])[_0x1c35d7('0x185f')](',');}break;case _0x1c35d7('0x15e2'):_0x2c75ba[_0x1c35d7('0xe81')]['text']=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')];break;case _0x1c35d7('0x3a6'):_0x2c75ba['system'][_0x1c35d7('0x1a8d')]=_0x2c75ba['system']['appdata']['split']('=')[0x0],_0x2c75ba[_0x1c35d7('0xe81')]['value']=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')][_0x1c35d7('0x1497')]('=')[0x1];break;case _0x1c35d7('0x2631'):_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x1bf6')]=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')];break;default:{const _0x3d7939=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xd6b')][_0x1c35d7('0x1497')](',');_0x2c75ba['system'][_0x1c35d7('0x28d')]=_0x283545()[_0x1c35d7('0x213d')](_0x3d7939[0x0])?_0x3d7939[0x0]:isNaN(_0x3d7939[0x0])?_0x3d7939[0x0]:parseInt(_0x3d7939[0x0],0xa),_0x2c75ba['system']['variable']=_0x283545()[_0x1c35d7('0x213d')](_0x3d7939[0x1])?_0x3d7939[0x1]:isNaN(_0x3d7939[0x1])?_0x3d7939[0x1]:parseInt(_0x3d7939[0x1],0xa);}}else _0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0xa72')]='';_0x2c75ba['system']['type']&&_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x1d7')][_0x1c35d7('0xc2e')]()===_0x1c35d7('0x1')&&_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x167b')][_0x1c35d7('0xc2e')]()==='outbounddial'&&(_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x1f71')]=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x1224')]?_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x1224')][_0x1c35d7('0x1497')]('$')[0x0]:undefined,_0x2c75ba[_0x1c35d7('0xe81')]['callerId']=_0x2c75ba[_0x1c35d7('0xe81')][_0x1c35d7('0x8de')]?_0x1c35d7('0x1834')+_0x2c75ba['system']['callerID']:undefined);_0x2c75ba[_0x1c35d7('0x18e6')]=_0x237ff7,_0x2c75ba[_0x1c35d7('0xca7')]=_0x13ed71,_0x86975c[_0x1c35d7('0x1516')](_0x1c35d7('0xe23'))?_0x2ea723['variable'][_0x1c35d7('0x1335')]({'fields':'id,name','sort':_0x1c35d7('0x1a8d'),'nolimit':'true'})[_0x1c35d7('0x1714')][_0x1c35d7('0x2788')](function(_0x1c8835){const _0x3ac805=_0x1c35d7;_0x2c75ba[_0x3ac805('0xf76')]=_0x1c8835[_0x3ac805('0x25df')]||[];})[_0x1c35d7('0x1cb5')](function(_0x27cab0){const _0x42b5d8=_0x1c35d7;_0x1a1a4e[_0x42b5d8('0x5e8')]({'title':_0x27cab0[_0x42b5d8('0x1b51')]?_0x42b5d8('0x15d1')+_0x27cab0[_0x42b5d8('0x1b51')]+_0x42b5d8('0x1b0b')+_0x27cab0[_0x42b5d8('0x22ce')]:_0x42b5d8('0xe86'),'msg':_0x27cab0['data']?JSON['stringify'](_0x27cab0['data']):_0x27cab0[_0x42b5d8('0x17df')]()});}):_0x2ea723[_0x1c35d7('0xa72')][_0x1c35d7('0x1335')]({'fields':_0x1c35d7('0x1338'),'sort':_0x1c35d7('0x1a8d'),'nolimit':_0x1c35d7('0x1001')})[_0x1c35d7('0x1714')][_0x1c35d7('0x2788')](function(_0x1cb646){const _0xf7eec6=_0x1c35d7;_0x2c75ba['variables']=_0x1cb646[_0xf7eec6('0x25df')]||[];})[_0x1c35d7('0x2788')](function(){const _0x27821e=_0x1c35d7;return _0x2ea723[_0x27821e('0xec9')]['get']({'userProfileId':_0x2c75ba[_0x27821e('0x9cb')][_0x27821e('0x237f')],'sectionId':0x3f4})[_0x27821e('0x1714')];})['then'](function(_0x512da4){const _0x530c8e=_0x1c35d7,_0x763c65=_0x512da4&&_0x512da4['rows']?_0x512da4[_0x530c8e('0x25df')][0x0]:null;if(!_0x763c65){const _0x20bf55=[];let _0x3bc1f8=null;_0x2c75ba[_0x530c8e('0xe81')]&&(_0x3bc1f8=_0x283545()[_0x530c8e('0x20e8')](_0x2c75ba[_0x530c8e('0xf76')],{'name':_0x2c75ba['system'][_0x530c8e('0xa72')]}));for(let _0x573b45=0x0;_0x573b45<_0x2c75ba[_0x530c8e('0xf76')][_0x530c8e('0x2566')];_0x573b45++){_0x3bc1f8&&_0x2c75ba[_0x530c8e('0xf76')][_0x573b45]['id']===_0x3bc1f8['id']&&(_0x2c75ba[_0x530c8e('0xf76')][_0x573b45]['canSelect']=![],_0x20bf55[_0x530c8e('0x13e3')](_0x2c75ba[_0x530c8e('0xf76')][_0x573b45]));}_0x2c75ba[_0x530c8e('0xf76')]=_0x20bf55;}else{if(!_0x763c65[_0x530c8e('0x1c0a')])return _0x2ea723[_0x530c8e('0x1050')][_0x530c8e('0x1335')]({'sectionId':_0x763c65['id']})[_0x530c8e('0x1714')][_0x530c8e('0x2788')](function(_0x3ead9d){const _0x4fc783=_0x530c8e,_0x64b058=_0x283545()[_0x4fc783('0x155d')](_0x3ead9d['rows'],function(_0x42194c){const _0x2cdc47=_0x4fc783;return _0x283545()[_0x2cdc47('0x20e8')](_0x2c75ba[_0x2cdc47('0xf76')],{'id':_0x42194c[_0x2cdc47('0x2707')]});});let _0x359433=null;_0x2c75ba[_0x4fc783('0xe81')]&&(_0x359433=_0x283545()[_0x4fc783('0x20e8')](_0x2c75ba['variables'],{'name':_0x2c75ba[_0x4fc783('0xe81')]['variable']}));if(_0x359433&&!_0x283545()[_0x4fc783('0xc5d')](_0x64b058,['id',_0x359433['id']])){const _0x2d80b1=_0x283545()['find'](_0x2c75ba['variables'],{'id':_0x359433['id']});_0x2d80b1[_0x4fc783('0x3bf')]=![],_0x64b058[_0x4fc783('0x13e3')](_0x2d80b1);}_0x2c75ba['variables']=_0x64b058;});}})['catch'](function(_0x4aa245){const _0x536f1b=_0x1c35d7;_0x1a1a4e[_0x536f1b('0x5e8')]({'title':_0x4aa245[_0x536f1b('0x1b51')]?_0x536f1b('0x15d1')+_0x4aa245[_0x536f1b('0x1b51')]+_0x536f1b('0x1b0b')+_0x4aa245[_0x536f1b('0x22ce')]:_0x536f1b('0x1592'),'msg':_0x4aa245[_0x536f1b('0x11fc')]?JSON[_0x536f1b('0x1be0')](_0x4aa245[_0x536f1b('0x11fc')]):_0x4aa245[_0x536f1b('0x17df')]()});});function _0x237ff7(){const _0x3bea57=_0x1c35d7;_0x2c75ba[_0x3bea57('0x25be')]=[];const _0x3b0fab=[];_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x1d7')]&&_0x2c75ba[_0x3bea57('0xe81')]['type'][_0x3bea57('0xc2e')]()==='outbound'&&_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x167b')]===_0x3bea57('0x25fb')&&(_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x1224')]=_0x1c4868[_0x3bea57('0x277c')]?(_0x2c75ba['system'][_0x3bea57('0x1f71')]||'')+_0x3bea57('0x124d')+_0x1c4868[_0x3bea57('0x277c')]+'}':(_0x2c75ba[_0x3bea57('0xe81')]['prefix']||'')+_0x3bea57('0x1275'),_0x1c4868['recordingFormat']!==_0x3bea57('0x1dc')?_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x784')][_0x3bea57('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x784')]+=_0x3bea57('0x1609')):_0x2c75ba['system'][_0x3bea57('0x784')]=_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x784')][_0x3bea57('0x10a4')](_0x3bea57('0x1609'),''));if(_0x2c75ba[_0x3bea57('0xe81')]['appType']&&_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x167b')]==='custom'){}else switch((_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x8a5')]||_0x2c75ba['system'][_0x3bea57('0x167b')])[_0x3bea57('0xc2e')]()){case _0x3bea57('0x3a6'):_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0xd6b')]=_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x1a8d')]+'='+_0x2c75ba[_0x3bea57('0xe81')][_0x3bea57('0x49')];break;case'custom':break;default:_0x3b0fab[0x0]=_0x2c75ba['system']['command'],_0x3b0fab[0x1]=_0x2c75ba[_0x3bea57('0xe81')]['variable'],_0x2c75ba[_0x3bea57('0xe81')]['appdata']=_0x3b0fab[_0x3bea57('0x185f')](',');}_0x13ed71(_0x2c75ba['system']);}function _0x13ed71(_0x311e0e){const _0x129ea8=_0x1c35d7;_0x529ad8[_0x129ea8('0x19d')](_0x311e0e);}}const _0x5a62a9=_0x129732;_0x2d5b98[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'faxAccountApp',_0x34e79e('0x1fb8'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2d5b98(_0x466275,_0x5c2820,_0x43d33d,_0x443048,_0x510e8e,_0x5a66cb,_0x5bdcd1,_0x5083bb){const _0x16640e=_0x34e79e,_0x1a2c28=this;_0x1a2c28[_0x16640e('0x9cb')]=_0x5bdcd1[_0x16640e('0x24cc')](),_0x1a2c28[_0x16640e('0x25be')]=[],_0x1a2c28[_0x16640e('0x14e4')]=_0x16640e('0x1c3f')+(_0x443048[_0x16640e('0x167b')]||_0x443048[_0x16640e('0x8a5')])[_0x16640e('0x25e6')](),_0x1a2c28[_0x16640e('0x1764')]=angular[_0x16640e('0x2669')](_0x443048),_0x1a2c28[_0x16640e('0xe28')]=_0x5083bb,_0x1a2c28[_0x16640e('0x1193')]={};if(_0x1a2c28['tag'][_0x16640e('0xd6b')])switch(_0x1a2c28[_0x16640e('0x1764')]['appType']?_0x1a2c28[_0x16640e('0x1764')]['appType'][_0x16640e('0xc2e')]():_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x8a5')][_0x16640e('0xc2e')]()){case _0x16640e('0x1d56'):break;case _0x16640e('0x5e1'):{const _0x5835f7=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')][_0x16640e('0x1497')](',');_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x234b')]=_0x5835f7[0x0],_0x1a2c28['tag']['language']=_0x5835f7[0x1],_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xf50')]=_0x5835f7[_0x16640e('0x845')](0x2,_0x5835f7[_0x16640e('0x2566')])[_0x16640e('0x185f')](',');}break;case'amazonlex':{const _0x1782ff=_0x1a2c28['tag'][_0x16640e('0xd6b')]['split'](',');_0x1a2c28['tag'][_0x16640e('0x27f2')]=_0x1782ff[0x0],_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x1b58')]=_0x1782ff[0x1],_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xb70')]=_0x1782ff[0x2],_0x1a2c28[_0x16640e('0x1764')]['botname']=_0x1782ff[0x3],_0x1a2c28[_0x16640e('0x1764')]['welcomemessage']=_0x1782ff[_0x16640e('0x845')](0x4,_0x1782ff['length'])[_0x16640e('0x185f')](',');}break;case _0x16640e('0x808'):{const _0x49a292=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')][_0x16640e('0x1497')](',');_0x1a2c28['tag'][_0x16640e('0x5fd')]=isNaN(_0x49a292[0x0])?_0x49a292[0x0]:parseInt(_0x49a292[0x0],0xa),_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x16db')]=_0x49a292[_0x16640e('0x845')](0x1,_0x49a292[_0x16640e('0x2566')])[_0x16640e('0x185f')](',');}break;case'message':_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x16db')]=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')];break;case _0x16640e('0x3a6'):_0x1a2c28[_0x16640e('0x1764')]['name']=_0x1a2c28['tag'][_0x16640e('0xd6b')][_0x16640e('0x1497')]('=')[0x0],_0x1a2c28[_0x16640e('0x1764')]['value']=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')]['split']('=')[0x1];break;case _0x16640e('0x2631'):_0x1a2c28[_0x16640e('0x1764')]['project']=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')];break;default:{const _0x1f0c90=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0xd6b')]['split'](',');_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x1764')]=_0x283545()[_0x16640e('0x213d')](_0x1f0c90[0x0])?_0x1f0c90[0x0]:isNaN(_0x1f0c90[0x0])?_0x1f0c90[0x0]:parseInt(_0x1f0c90[0x0],0xa);}break;}else{}_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x1d7')]&&_0x1a2c28[_0x16640e('0x1764')]['type'][_0x16640e('0xc2e')]()==='outbound'&&_0x1a2c28[_0x16640e('0x1764')]['appType'][_0x16640e('0xc2e')]()==='outbounddial'&&(_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x1f71')]=_0x1a2c28['tag'][_0x16640e('0x1224')]?_0x1a2c28[_0x16640e('0x1764')]['phone'][_0x16640e('0x1497')]('$')[0x0]:undefined,_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x2081')]=_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x8de')]?_0x16640e('0x1834')+_0x1a2c28[_0x16640e('0x1764')][_0x16640e('0x8de')]:undefined);_0x1a2c28[_0x16640e('0x18e6')]=_0x3e23a5,_0x1a2c28[_0x16640e('0xca7')]=_0x1eab39,_0x5bdcd1[_0x16640e('0x1516')](_0x16640e('0xe23'))?_0x5a66cb['tag'][_0x16640e('0x1335')]({'fields':_0x16640e('0x1338'),'sort':'name','nolimit':_0x16640e('0x1001')})['$promise']['then'](function(_0x46c8b0){const _0x195649=_0x16640e;_0x1a2c28[_0x195649('0xe45')]=_0x46c8b0[_0x195649('0x25df')]||[];})[_0x16640e('0x1cb5')](function(_0x1448fd){const _0x4f8358=_0x16640e;_0x43d33d[_0x4f8358('0x5e8')]({'title':_0x1448fd['status']?'API:'+_0x1448fd[_0x4f8358('0x1b51')]+_0x4f8358('0x1b0b')+_0x1448fd['statusText']:_0x4f8358('0x270'),'msg':_0x1448fd[_0x4f8358('0x11fc')]?JSON[_0x4f8358('0x1be0')](_0x1448fd[_0x4f8358('0x11fc')]):_0x1448fd['toString']()});}):_0x5a66cb[_0x16640e('0x1764')][_0x16640e('0x1335')]({'fields':_0x16640e('0x1338'),'sort':_0x16640e('0x1a8d'),'nolimit':_0x16640e('0x1001')})['$promise']['then'](function(_0x26d258){const _0x2cc820=_0x16640e;_0x1a2c28[_0x2cc820('0xe45')]=_0x26d258['rows']||[];})[_0x16640e('0x2788')](function(){const _0x3ff0b2=_0x16640e;return _0x5a66cb['userProfileSection'][_0x3ff0b2('0x1335')]({'userProfileId':_0x1a2c28[_0x3ff0b2('0x9cb')][_0x3ff0b2('0x237f')],'sectionId':0x3f0})[_0x3ff0b2('0x1714')];})['then'](function(_0x3cf704){const _0x40d398=_0x16640e,_0x1a7866=_0x3cf704&&_0x3cf704['rows']?_0x3cf704['rows'][0x0]:null;if(!_0x1a7866){const _0x5f5d45=[];let _0x198856=null;_0x1a2c28[_0x40d398('0x1764')]&&(_0x198856=_0x283545()['find'](_0x1a2c28[_0x40d398('0xe45')],{'name':_0x1a2c28[_0x40d398('0x1764')]['tag']}));for(let _0x370140=0x0;_0x370140<_0x1a2c28['tags'][_0x40d398('0x2566')];_0x370140++){_0x198856&&_0x1a2c28['tags'][_0x370140]['id']===_0x198856['id']&&(_0x1a2c28[_0x40d398('0xe45')][_0x370140]['canSelect']=![],_0x5f5d45[_0x40d398('0x13e3')](_0x1a2c28[_0x40d398('0xe45')][_0x370140]));}_0x1a2c28[_0x40d398('0xe45')]=_0x5f5d45;}else{if(!_0x1a7866[_0x40d398('0x1c0a')])return _0x5a66cb['userProfileResource']['get']({'sectionId':_0x1a7866['id']})[_0x40d398('0x1714')]['then'](function(_0x11fe74){const _0x13dc8b=_0x40d398,_0x5b83c4=_0x283545()[_0x13dc8b('0x155d')](_0x11fe74[_0x13dc8b('0x25df')],function(_0x51fd2b){const _0x5e82a4=_0x13dc8b;return _0x283545()[_0x5e82a4('0x20e8')](_0x1a2c28['tags'],{'id':_0x51fd2b[_0x5e82a4('0x2707')]});});let _0x38d929=null;_0x1a2c28[_0x13dc8b('0x1764')]&&(_0x38d929=_0x283545()[_0x13dc8b('0x20e8')](_0x1a2c28[_0x13dc8b('0xe45')],{'name':_0x1a2c28[_0x13dc8b('0x1764')][_0x13dc8b('0x1764')]}));if(_0x38d929&&!_0x283545()[_0x13dc8b('0xc5d')](_0x5b83c4,['id',_0x38d929['id']])){const _0x1395a1=_0x283545()[_0x13dc8b('0x20e8')](_0x1a2c28[_0x13dc8b('0xe45')],{'id':_0x38d929['id']});_0x1395a1[_0x13dc8b('0x3bf')]=![],_0x5b83c4[_0x13dc8b('0x13e3')](_0x1395a1);}_0x1a2c28[_0x13dc8b('0xe45')]=_0x5b83c4;});}})[_0x16640e('0x1cb5')](function(_0x545478){const _0x2cc627=_0x16640e;_0x43d33d[_0x2cc627('0x5e8')]({'title':_0x545478[_0x2cc627('0x1b51')]?_0x2cc627('0x15d1')+_0x545478[_0x2cc627('0x1b51')]+'\x20-\x20'+_0x545478[_0x2cc627('0x22ce')]:_0x2cc627('0x1470'),'msg':_0x545478[_0x2cc627('0x11fc')]?JSON['stringify'](_0x545478[_0x2cc627('0x11fc')]):_0x545478[_0x2cc627('0x17df')]()});});function _0x3e23a5(){const _0x42967c=_0x16640e;_0x1a2c28[_0x42967c('0x25be')]=[];const _0x3dd8ce=[];_0x1a2c28['tag']['type']&&_0x1a2c28['tag'][_0x42967c('0x1d7')]['toLowerCase']()===_0x42967c('0x1')&&_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x167b')]===_0x42967c('0x25fb')&&(_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x1224')]=_0x510e8e[_0x42967c('0x277c')]?(_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x1f71')]||'')+_0x42967c('0x124d')+_0x510e8e[_0x42967c('0x277c')]+'}':(_0x1a2c28[_0x42967c('0x1764')]['prefix']||'')+_0x42967c('0x1275'),_0x510e8e[_0x42967c('0x801')]!==_0x42967c('0x1dc')?_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x784')]['indexOf'](_0x42967c('0x1609'))<0x0&&(_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x784')]+=_0x42967c('0x1609')):_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x784')]=_0x1a2c28['tag']['options'][_0x42967c('0x10a4')]('U(xcally-mixmonitor-context)',''));const _0x1bef4e=_0x283545()[_0x42967c('0x20e8')](_0x1a2c28[_0x42967c('0xe45')],{'name':_0x1a2c28['tag'][_0x42967c('0x1764')]});_0x1bef4e&&(_0x1a2c28['tag'][_0x42967c('0x90a')]=_0x1bef4e['id']);if(_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x167b')]&&_0x1a2c28['tag'][_0x42967c('0x167b')]==='custom'){}else switch((_0x1a2c28[_0x42967c('0x1764')]['app']||_0x1a2c28['tag']['appType'])[_0x42967c('0xc2e')]()){case _0x42967c('0x3a6'):_0x1a2c28[_0x42967c('0x1764')]['appdata']=_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x1a8d')]+'='+_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x49')];break;case _0x42967c('0x1d56'):break;default:_0x3dd8ce[0x0]=_0x1a2c28[_0x42967c('0x1764')][_0x42967c('0x1764')],_0x1a2c28[_0x42967c('0x1764')]['appdata']=_0x3dd8ce[_0x42967c('0x185f')](',');}_0x1eab39(_0x1a2c28['tag']);}function _0x1eab39(_0x132192){const _0x25dbe5=_0x16640e;_0x466275[_0x25dbe5('0x19d')](_0x132192);}}const _0x164b60=_0x2d5b98;_0x30f080[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'api','toasty',_0x34e79e('0x1b04')];function _0x30f080(_0x4927d1,_0x2b88b1,_0x197b1a,_0x5bb502,_0x135472,_0x43a1c5,_0x39ff76,_0x2c07cf,_0x51cdd1,_0x2cf633,_0x11eb98){const _0x1510d7=_0x34e79e,_0xf56db2=this;_0xf56db2['currentUser']=_0x11eb98[_0x1510d7('0x24cc')](),_0xf56db2[_0x1510d7('0x818')]={'count':0x0,'rows':[]},_0xf56db2[_0x1510d7('0x25d8')]=[],_0xf56db2[_0x1510d7('0xe28')],_0xf56db2['levels']={'first':'1st','second':_0x1510d7('0x1e6'),'third':_0x1510d7('0x188d')},_0xf56db2[_0x1510d7('0x135a')]={'fields':_0x1510d7('0x258b'),'sort':_0x1510d7('0x1cee'),'limit':0xa,'page':0x1},_0xf56db2[_0x1510d7('0x24eb')]=_0x25fd6a,_0xf56db2['deleteConfirm']=_0x4c441e,_0xf56db2[_0x1510d7('0x173b')]=_0x33940c,_0xf56db2[_0x1510d7('0x2069')]=_0x2c5529,_0xf56db2[_0x1510d7('0x2839')]=_0x10b68f,_0xf56db2[_0x1510d7('0x25ba')]=_0x55ae3e,_0xf56db2[_0x1510d7('0x1550')]=_0x9d13e2,_0xf56db2[_0x1510d7('0x1e3b')]=_0xde7fda,_0xf56db2[_0x1510d7('0x3b4')]=_0x258703,_0xf56db2[_0x1510d7('0xe69')]=_0xec0931;function _0x25fd6a(_0x50202b,_0xa75938){const _0x4e90ee=_0x1510d7;_0xf56db2[_0x4e90ee('0x1fb8')]=_0x50202b||{},_0xf56db2['crudPermissions']=typeof _0xa75938!==_0x4e90ee('0xedb')?_0xa75938:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xf56db2[_0x4e90ee('0x135a')][_0x4e90ee('0xfc2')]=_0xf56db2[_0x4e90ee('0x1fb8')]['id'],_0xf56db2[_0x4e90ee('0x135a')]['id']=_0xf56db2[_0x4e90ee('0x1fb8')]['id'],_0x2c5529();}function _0x10b68f(_0x2a2b75,_0x37cfa7){const _0x176e23=_0x1510d7;_0x135472[_0x176e23('0x2fa')]({'controller':_0x176e23('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x176e23('0x16b1')](_0x43a1c5[_0x176e23('0x945')]),'targetEvent':_0x2a2b75,'clickOutsideToClose':!![],'locals':{'disposition':_0x37cfa7,'dispositions':_0xf56db2[_0x176e23('0x818')][_0x176e23('0x25df')],'model':{'id':_0xf56db2[_0x176e23('0x1fb8')]['id'],'field':'FaxAccountId'},'license':null,'setting':null,'crudPermissions':_0xf56db2[_0x176e23('0xe28')]}})[_0x176e23('0x2788')](function(_0x2a5ef0){if(_0x2a5ef0)_0x2c5529();});}function _0x4c441e(_0x525f23,_0x10d9b8){const _0x5ceee9=_0x1510d7,_0x2a97df=_0x283545()['some'](_0xf56db2[_0x5ceee9('0x818')][_0x5ceee9('0x25df')],[_0x5ceee9('0x1ba'),_0x525f23['id']]),_0x5792f4=_0x135472['confirm']()[_0x5ceee9('0x14e4')](_0x2c07cf['instant'](_0x5ceee9('0x29e')))[_0x5ceee9('0x1c98')](_0x2c07cf['instant'](_0x5ceee9('0x5b')+(_0x2a97df?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x5ceee9('0x281c')),{'name':_0x525f23['name']}))[_0x5ceee9('0x10bc')]('Delete\x20disposition')[_0x5ceee9('0x24d0')](_0x10d9b8)['ok']('OK')[_0x5ceee9('0x1801')](_0x2c07cf[_0x5ceee9('0x1b11')](_0x5ceee9('0x1061')));_0x135472[_0x5ceee9('0x2fa')](_0x5792f4)['then'](function(){_0x55ae3e(_0x525f23);});}function _0x33940c(_0x883e42){const _0x4f8eaf=_0x1510d7;_0xf56db2[_0x4f8eaf('0x818')]=_0x883e42||{'count':0x0,'rows':[]};}function _0x2c5529(){const _0x2d67a1=_0x1510d7;_0xf56db2['query'][_0x2d67a1('0x19e')]=(_0xf56db2['query'][_0x2d67a1('0x23f5')]-0x1)*_0xf56db2['query'][_0x2d67a1('0x68e')],_0xf56db2[_0x2d67a1('0x1808')]=_0x51cdd1[_0x2d67a1('0x1fb8')][_0x2d67a1('0x2069')](_0xf56db2[_0x2d67a1('0x135a')],_0x33940c)[_0x2d67a1('0x1714')];}function _0x55ae3e(_0x51bd35){const _0x2e6a13=_0x1510d7;_0x51cdd1[_0x2e6a13('0x1db2')][_0x2e6a13('0x17c4')]({'id':_0x51bd35['id']})[_0x2e6a13('0x1714')][_0x2e6a13('0x2788')](function(){const _0x354c52=_0x2e6a13;_0x2c5529(),_0x2cf633['success']({'title':_0x2c07cf['instant'](_0x354c52('0x156e'))});})[_0x2e6a13('0x1cb5')](function(_0x4dd595){const _0x4e3361=_0x2e6a13;if(_0x4dd595['data']&&_0x4dd595[_0x4e3361('0x11fc')][_0x4e3361('0x25be')]&&_0x4dd595[_0x4e3361('0x11fc')]['errors'][_0x4e3361('0x2566')]){_0xf56db2[_0x4e3361('0x25be')]=_0x4dd595[_0x4e3361('0x11fc')][_0x4e3361('0x25be')]||[{'message':_0x4dd595[_0x4e3361('0x17df')](),'type':_0x4e3361('0x1410')}];for(let _0x4b708b=0x0;_0x4b708b<_0x4dd595[_0x4e3361('0x11fc')]['errors'][_0x4e3361('0x2566')];_0x4b708b++){_0x2cf633['error']({'title':_0x4dd595[_0x4e3361('0x11fc')]['errors'][_0x4b708b][_0x4e3361('0x1d7')],'msg':_0x4dd595[_0x4e3361('0x11fc')][_0x4e3361('0x25be')][_0x4b708b][_0x4e3361('0x15e2')]});}}else _0x2cf633[_0x4e3361('0x5e8')]({'title':_0x4dd595[_0x4e3361('0x1b51')]?_0x4e3361('0x15d1')+_0x4dd595[_0x4e3361('0x1b51')]+_0x4e3361('0x1b0b')+_0x4dd595[_0x4e3361('0x22ce')]:'SYSTEM:DELETEdisposition','msg':_0x4dd595[_0x4e3361('0x11fc')]?JSON[_0x4e3361('0x1be0')](_0x4dd595[_0x4e3361('0x11fc')][_0x4e3361('0x15e2')]):_0x4dd595['message']||_0x4dd595[_0x4e3361('0x17df')]()});});}function _0x9d13e2(){const _0x50dc0b=_0x1510d7,_0x3a6861=angular[_0x50dc0b('0x2669')](_0xf56db2[_0x50dc0b('0x25d8')]);return _0xf56db2[_0x50dc0b('0x25d8')]=[],_0x3a6861;}function _0xde7fda(_0x29943e){const _0x61c531=_0x1510d7,_0x43c3b5=_0x135472[_0x61c531('0x112e')]()[_0x61c531('0x14e4')](_0x2c07cf['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x61c531('0x1c98')](_0x2c07cf['instant'](_0x61c531('0x153f'),{'total':_0xf56db2[_0x61c531('0x25d8')][_0x61c531('0x2566')]}))[_0x61c531('0x10bc')](_0x61c531('0x248b'))[_0x61c531('0x24d0')](_0x29943e)['ok']('OK')['cancel'](_0x2c07cf[_0x61c531('0x1b11')](_0x61c531('0x1061')));_0x135472[_0x61c531('0x2fa')](_0x43c3b5)['then'](function(){const _0x34faea=_0x61c531;_0xf56db2[_0x34faea('0x25d8')]['forEach'](function(_0xd2ccc4){_0x55ae3e(_0xd2ccc4);}),_0xf56db2[_0x34faea('0x25d8')]=[];});}function _0x258703(){const _0x2f7928=_0x1510d7;_0xf56db2[_0x2f7928('0x25d8')]=[];}function _0xec0931(){const _0x3f0bf5=_0x1510d7;_0xf56db2[_0x3f0bf5('0x25d8')]=_0xf56db2['dispositions']['rows'];}let _0x2cf942=!![],_0x22fce9=0x1;_0x4927d1['$watch']('vm_dc.query.filter',function(_0x591d1c,_0x26cdd1){const _0xbbc013=_0x1510d7;_0x2cf942?_0x39ff76(function(){_0x2cf942=![];}):(!_0x26cdd1&&(_0x22fce9=_0xf56db2['query'][_0xbbc013('0x23f5')]),_0x591d1c!==_0x26cdd1&&(_0xf56db2[_0xbbc013('0x135a')][_0xbbc013('0x23f5')]=0x1),!_0x591d1c&&(_0xf56db2[_0xbbc013('0x135a')][_0xbbc013('0x23f5')]=_0x22fce9),_0x2c5529());});}const _0x4007ba=_0x30f080;_0x788b9f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),'$state','$q','$translate',_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x519'),'Auth'];function _0x788b9f(_0x8cbca6,_0x14ed8e,_0x4bdabd,_0x436d64,_0x284cb5,_0x2953c6,_0x591aa4,_0x1fd363,_0x28097c,_0x16ebc6,_0x1fba59){const _0x4bc060=_0x34e79e,_0x29f16f=this;_0x29f16f[_0x4bc060('0x9cb')]=_0x1fba59[_0x4bc060('0x24cc')](),_0x29f16f['faxAccount']={},_0x29f16f['faxAccountInteractions']={'count':0x0,'rows':[]},_0x29f16f[_0x4bc060('0x807')]=[],_0x29f16f[_0x4bc060('0xe28')],_0x29f16f[_0x4bc060('0x135a')]={'read':'null','closed':'null','sort':_0x4bc060('0x34b'),'includeAll':_0x4bc060('0x1001'),'limit':0xa,'page':0x1},_0x29f16f['init']=_0x54aa0d,_0x29f16f['deleteConfirm']=_0x1977cf,_0x29f16f[_0x4bc060('0x1115')]=_0x48e063,_0x29f16f['success']=_0x4ff380,_0x29f16f[_0x4bc060('0x21da')]=_0x2d6236,_0x29f16f[_0x4bc060('0x15b4')]=_0x124f05,_0x29f16f[_0x4bc060('0x27c6')]=_0x3f6030,_0x29f16f['exportSelectedFaxAccountInteractions']=_0x385431,_0x29f16f['deleteFaxAccountInteraction']=_0x14fd6d,_0x29f16f[_0x4bc060('0xfd4')]=_0x1a40b0;function _0x54aa0d(_0xd43f69,_0x5b5797){const _0x1dec71=_0x4bc060;_0x29f16f[_0x1dec71('0x1fb8')]=_0xd43f69,_0x29f16f[_0x1dec71('0xe28')]=typeof _0x5b5797!==_0x1dec71('0xedb')?_0x5b5797:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x29f16f[_0x1dec71('0x135a')]['FaxAccountId']=_0x29f16f['faxAccount']['id'],_0x29f16f['advancedSearch']={'fields':_0xd16acf()},_0x115b4f();}function _0x115b4f(){const _0xe87f47=_0x4bc060;return _0x16ebc6[_0xe87f47('0x1764')]['get']()[_0xe87f47('0x1714')]['then'](function(_0x3ad218){const _0x12a4fa=_0xe87f47;_0x29f16f[_0x12a4fa('0xe45')]=_0x3ad218||{'count':0x0,'rows':[]};})[_0xe87f47('0x2788')](function(){const _0x5147bf=_0xe87f47;_0x29f16f[_0x5147bf('0xa28')]=_0x429137();});}function _0x429137(){const _0x56b164=_0x4bc060;return[{'name':_0x56b164('0x9ac'),'key':_0x56b164('0x172'),'type':_0x56b164('0x1012'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x56b164('0x1f77'),'key':_0x56b164('0x18e8'),'type':_0x56b164('0x983'),'label':_0x56b164('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x56b164('0xe54')},{'value':0x1,'translate':_0x56b164('0x204a')},{'value':null,'translate':_0x56b164('0xc79')}]},{'name':_0x56b164('0x21d8'),'key':_0x56b164('0x215d'),'type':_0x56b164('0x983'),'label':_0x56b164('0xd0'),'customOptions':[{'value':0x0,'translate':_0x56b164('0xd6c')},{'value':0x1,'translate':_0x56b164('0x977')},{'value':null,'translate':_0x56b164('0xc79')}]},{'name':_0x56b164('0x262d'),'key':_0x56b164('0x3bb'),'type':_0x56b164('0x983'),'label':_0x56b164('0x2bd'),'customOptions':[{'value':'null','translate':_0x56b164('0xce3')},{'value':undefined,'translate':_0x56b164('0xc79')}]},{'name':_0x56b164('0x251d'),'key':_0x56b164('0x1764'),'type':_0x56b164('0x9a4'),'label':_0x56b164('0xa54'),'options':_0x29f16f[_0x56b164('0xe45')][_0x56b164('0x25df')],'placeholder':'DASHBOARDS.TAGS'}];}function _0xd16acf(){const _0x160cd6=_0x4bc060;return[{'name':'Id','column':'id','type':'number'},{'name':_0x160cd6('0x1c64'),'column':_0x160cd6('0x1c64'),'type':_0x160cd6('0x137e'),'options':{'searchFields':[_0x160cd6('0x26da'),_0x160cd6('0x26b9'),'email'],'route':{'model':_0x160cd6('0xa83'),'action':_0x160cd6('0x1335'),'params':{'fields':_0x160cd6('0x1373'),'Contact':_0x160cd6('0x20bf'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x160cd6('0x149c')]}},{'name':'Subject','column':_0x160cd6('0x248f'),'type':'text','options':{'excludedOperators':['$eq',_0x160cd6('0x149c')]}},{'name':_0x160cd6('0x1e8f'),'column':_0x160cd6('0x550'),'type':_0x160cd6('0x16db'),'options':{'excludedOperators':['$eq',_0x160cd6('0x149c')]}},{'name':_0x160cd6('0x21d8'),'column':_0x160cd6('0x215d'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x160cd6('0x977')}],'options':{'excludedOperators':['$ne']}},{'name':_0x160cd6('0x262d'),'column':_0x160cd6('0x1832'),'type':_0x160cd6('0x137e'),'options':{'table':'i','route':{'model':_0x160cd6('0x1e6a'),'action':_0x160cd6('0x1335'),'params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x160cd6('0x2831'),_0x160cd6('0x1a8d')],'extraOperators':[_0x160cd6('0x1a77')],'excludedOperators':['$ne']}},{'name':_0x160cd6('0xbcf'),'column':_0x160cd6('0x251d'),'type':_0x160cd6('0x9a4'),'options':{'route':{'model':_0x160cd6('0x1764'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x160cd6('0x38b')]}},{'name':_0x160cd6('0x9ac'),'column':_0x160cd6('0x172'),'type':_0x160cd6('0x1012'),'options':{'excludedOperators':[_0x160cd6('0x149c')]}},{'name':_0x160cd6('0x27d7'),'column':_0x160cd6('0xecd'),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x160cd6('0xe54')}],'options':{'excludedOperators':[_0x160cd6('0x149c')]}}];}function _0x3f6030(){const _0x434daa=_0x4bc060;_0x591aa4['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular[_0x434daa('0x16b1')](_0x1fd363[_0x434daa('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0x29f16f[_0x434daa('0x1e13')][_0x434daa('0x1578')],'color':undefined,'storagePath':'fax.faxAccounts'},'fullscreen':!![]})[_0x434daa('0x2788')](function(_0x3b930f){const _0x14d8f6=_0x434daa;_0x29f16f[_0x14d8f6('0x135a')][_0x14d8f6('0x470')]=_0x3b930f===![]?undefined:_0x3b930f;if(_0x29f16f[_0x14d8f6('0x135a')][_0x14d8f6('0x470')])_0x2d6236();else _0x3b930f===![]&&_0x2d6236();})[_0x434daa('0x1cb5')](function(_0x1908d5){const _0x4044e8=_0x434daa;_0x28097c[_0x4044e8('0x5e8')]({'title':_0x4044e8('0x824'),'msg':_0x1908d5[_0x4044e8('0x11fc')]?JSON[_0x4044e8('0x1be0')](_0x1908d5['data'][_0x4044e8('0x15e2')]):_0x1908d5[_0x4044e8('0x17df')]()});});}function _0x48e063(_0x21e9c7,_0xb65f6b,_0x28869e){const _0x2e2833=_0x4bc060;return _0x16ebc6[_0x2e2833('0x26ca')][_0x2e2833('0x1486')]({'id':_0x21e9c7['id'],'exists':!![],'attachments':_0x28869e})[_0x2e2833('0x1714')][_0x2e2833('0x2788')](function(_0x1b023c){const _0xd6acb=_0x2e2833,_0x4a0244=[_0x1b023c[_0xd6acb('0x3f1')]];let _0x212ebc='interaction'+_0x21e9c7['id'];const _0x282669=new Blob(_0x4a0244,{'type':_0x1b023c['type']});_0x212ebc=_0xd6acb('0x212a')+_0x21e9c7['id']+_0xd6acb('0xfdb');const _0x3852c0=window[_0xd6acb('0x11c4')][_0xd6acb('0x1ae6')]('a');_0x3852c0['setAttribute'](_0xd6acb('0x186a'),URL['createObjectURL'](_0x282669)),_0x3852c0[_0xd6acb('0x1c6b')]('download',_0x212ebc),document[_0xd6acb('0x945')][_0xd6acb('0xcbf')](_0x3852c0),_0x3852c0[_0xd6acb('0x132a')]();})[_0x2e2833('0x1cb5')](function(_0x34bf4e){const _0x15c4b0=_0x2e2833;if(_0x34bf4e['data']&&_0x34bf4e[_0x15c4b0('0x11fc')][_0x15c4b0('0x25be')]&&_0x34bf4e['data'][_0x15c4b0('0x25be')]['length'])for(let _0x52184b=0x0;_0x52184b<_0x34bf4e[_0x15c4b0('0x11fc')][_0x15c4b0('0x25be')][_0x15c4b0('0x2566')];_0x52184b+=0x1){_0x28097c[_0x15c4b0('0x5e8')]({'title':_0x34bf4e[_0x15c4b0('0x11fc')][_0x15c4b0('0x25be')][_0x52184b]['type'],'msg':_0x34bf4e['data'][_0x15c4b0('0x25be')][_0x52184b][_0x15c4b0('0x15e2')]});}else _0x28097c[_0x15c4b0('0x5e8')]({'title':_0x34bf4e[_0x15c4b0('0x1b51')]?_0x15c4b0('0x15d1')+_0x34bf4e[_0x15c4b0('0x1b51')]+'\x20-\x20'+_0x34bf4e[_0x15c4b0('0x22ce')]:_0x15c4b0('0x277d'),'msg':_0x34bf4e['data']?JSON['stringify'](_0x34bf4e[_0x15c4b0('0x11fc')]['message']):_0x34bf4e[_0x15c4b0('0x17df')]()});});}function _0x1977cf(_0x2643ee,_0x2c8a3e){const _0x162693=_0x4bc060,_0x2c10a1=_0x591aa4['confirm']()[_0x162693('0x14e4')](_0x162693('0x20be'))[_0x162693('0x93e')](''+(_0x2643ee[_0x162693('0x1a8d')]||_0x2643ee['id']&&_0x283545()['upperFirst'](_0x162693('0xb4c'))+_0x2643ee['id']||_0x162693('0xd61'))+_0x162693('0x229e')+_0x162693('0x27c7'))[_0x162693('0x10bc')](_0x162693('0xa98'))[_0x162693('0x24d0')](_0x2c8a3e)['ok']('OK')[_0x162693('0x1801')](_0x162693('0x1d8d'));_0x591aa4[_0x162693('0x2fa')](_0x2c10a1)[_0x162693('0x2788')](function(){_0x14fd6d(_0x2643ee);},function(){const _0x3e1533=_0x162693;console[_0x3e1533('0x10df')]('CANCEL');});}function _0x4ff380(_0x390814){const _0x207b5d=_0x4bc060;_0x29f16f['faxAccountInteractions']=_0x390814||{'count':0x0,'rows':[]};for(let _0x5de9e9=0x0;_0x5de9e9<_0x29f16f[_0x207b5d('0xc25')]['rows'][_0x207b5d('0x2566')];_0x5de9e9+=0x1){const _0x17e347=_0x29f16f[_0x207b5d('0xc25')][_0x207b5d('0x25df')][_0x5de9e9];_0xaa5887(_0x17e347),_0x17e347[_0x207b5d('0xe42')]['name']=_0x2f1379(_0x17e347);}}function _0x2d6236(){const _0x4e1baa=_0x4bc060;_0x29f16f[_0x4e1baa('0x135a')][_0x4e1baa('0x19e')]=(_0x29f16f[_0x4e1baa('0x135a')][_0x4e1baa('0x23f5')]-0x1)*_0x29f16f[_0x4e1baa('0x135a')]['limit'],_0x29f16f[_0x4e1baa('0x1808')]=_0x16ebc6[_0x4e1baa('0x26ca')][_0x4e1baa('0x1335')](_0x29f16f['query'],_0x4ff380)[_0x4e1baa('0x1714')];}function _0x124f05(_0x514216,_0x289a07){const _0xa306e4=_0x4bc060;_0x591aa4[_0xa306e4('0x2fa')]({'controller':_0xa306e4('0xcd'),'controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular['element'](_0x1fd363['body']),'targetEvent':_0x514216,'clickOutsideToClose':!![],'onShowing':function(_0x4c919a){const _0x4099c0=_0xa306e4;_0x4c919a['vm'][_0x4099c0('0x24eb')]({'id':0x1,'channel':_0x4099c0('0x10cf'),'interaction':_0x289a07,'spy':!![]},_0x14ed8e[_0x4099c0('0x7d0')]['vm'][_0x4099c0('0x1af0')]);}});}function _0x14fd6d(_0x29d149){const _0x1ba125=_0x4bc060;_0x16ebc6[_0x1ba125('0x26ca')]['delete']({'id':_0x29d149['id']})[_0x1ba125('0x1714')]['then'](function(){const _0x33e12b=_0x1ba125;_0x283545()[_0x33e12b('0x1a90')](_0x29f16f['faxAccountInteractions'][_0x33e12b('0x25df')],{'id':_0x29d149['id']}),_0x29f16f[_0x33e12b('0xc25')]['count']-=0x1,!_0x29f16f['faxAccountInteractions'][_0x33e12b('0x25df')][_0x33e12b('0x2566')]&&_0x2d6236(),_0x28097c[_0x33e12b('0x173b')]({'title':_0x33e12b('0xb73'),'msg':_0x29d149[_0x33e12b('0x1a8d')]?_0x29d149['name']+_0x33e12b('0x14d4'):''});})[_0x1ba125('0x1cb5')](function(_0x3906f8){const _0x5ab342=_0x1ba125;if(_0x3906f8[_0x5ab342('0x11fc')]&&_0x3906f8[_0x5ab342('0x11fc')]['errors']&&_0x3906f8[_0x5ab342('0x11fc')][_0x5ab342('0x25be')][_0x5ab342('0x2566')]){_0x29f16f[_0x5ab342('0x25be')]=_0x3906f8[_0x5ab342('0x11fc')]['errors']||[{'message':_0x3906f8[_0x5ab342('0x17df')](),'type':_0x5ab342('0x1365')}];for(let _0x220216=0x0;_0x220216<_0x3906f8[_0x5ab342('0x11fc')][_0x5ab342('0x25be')]['length'];_0x220216++){_0x28097c['error']({'title':_0x3906f8[_0x5ab342('0x11fc')][_0x5ab342('0x25be')][_0x220216][_0x5ab342('0x1d7')],'msg':_0x3906f8[_0x5ab342('0x11fc')][_0x5ab342('0x25be')][_0x220216][_0x5ab342('0x15e2')]});}}else _0x28097c[_0x5ab342('0x5e8')]({'title':_0x3906f8[_0x5ab342('0x1b51')]?'API:'+_0x3906f8[_0x5ab342('0x1b51')]+_0x5ab342('0x1b0b')+_0x3906f8[_0x5ab342('0x22ce')]:_0x5ab342('0x1365'),'msg':_0x3906f8['data']?JSON[_0x5ab342('0x1be0')](_0x3906f8[_0x5ab342('0x11fc')][_0x5ab342('0x15e2')]):_0x3906f8[_0x5ab342('0x15e2')]||_0x3906f8[_0x5ab342('0x17df')]()});});}function _0x385431(){const _0x5f097c=_0x4bc060,_0x3a5c72=angular['copy'](_0x29f16f[_0x5f097c('0x807')]);return _0x29f16f[_0x5f097c('0x807')]=[],_0x3a5c72;}function _0x1a40b0(_0x314192){const _0x269c6e=_0x4bc060,_0x2ff81e=_0x591aa4[_0x269c6e('0x112e')]()['title'](_0x269c6e('0x1ff'))[_0x269c6e('0x93e')](_0x269c6e('0x1670')+_0x29f16f[_0x269c6e('0x807')][_0x269c6e('0x2566')]+_0x269c6e('0xbd')+_0x269c6e('0x27c7'))[_0x269c6e('0x10bc')](_0x269c6e('0x970'))[_0x269c6e('0x24d0')](_0x314192)['ok']('OK')[_0x269c6e('0x1801')]('CANCEL');_0x591aa4[_0x269c6e('0x2fa')](_0x2ff81e)['then'](function(){const _0x27154d=_0x269c6e;_0x29f16f[_0x27154d('0x807')][_0x27154d('0x1534')](function(_0x833f1e){_0x14fd6d(_0x833f1e);}),_0x29f16f[_0x27154d('0x807')]=[];});}function _0xaa5887(_0x47b934){const _0xb6c02b=_0x4bc060;_0x47b934[_0xb6c02b('0x1c64')]?(_0x47b934['contactName']=(_0x47b934[_0xb6c02b('0x1c64')]['firstName']||'')+'\x20'+(_0x47b934[_0xb6c02b('0x1c64')][_0xb6c02b('0x26b9')]||''),_0x47b934[_0xb6c02b('0x1aba')]=_0x47b934[_0xb6c02b('0x1c64')]['fax']):_0x47b934[_0xb6c02b('0x497')]=_0x284cb5[_0xb6c02b('0x1b11')]('DASHBOARDS.UNKNOWN');}function _0x2f1379(_0x294e22){const _0x53219c=_0x4bc060;if(_0x294e22[_0x53219c('0x3bb')])return _0x294e22[_0x53219c('0x3bb')]===_0x29f16f[_0x53219c('0x9cb')]['id']?_0x284cb5[_0x53219c('0x1b11')]('DASHBOARDS.ME'):_0x294e22[_0x53219c('0xe42')][_0x53219c('0x2831')]+'\x20<'+_0x294e22[_0x53219c('0xe42')]['internal']+'>';return _0x284cb5[_0x53219c('0x1b11')](_0x53219c('0xce3'));}let _0x33278c=!![],_0x42e6c5=0x1;_0x14ed8e[_0x4bc060('0x1662')](_0x4bc060('0x2571'),function(_0x49e7c3,_0x3f90aa){const _0x3d6bf1=_0x4bc060;_0x33278c?_0x2953c6(function(){_0x33278c=![];}):(!_0x3f90aa&&(_0x42e6c5=_0x29f16f['query'][_0x3d6bf1('0x23f5')]),_0x49e7c3!==_0x3f90aa&&(_0x29f16f['query'][_0x3d6bf1('0x23f5')]=0x1),!_0x49e7c3&&(_0x29f16f['query']['page']=_0x42e6c5),_0x2d6236());});}const _0x3913b8=_0x788b9f,_0x2d2724=_0x18dd13['p']+_0x34e79e('0xb50');_0x44f7c7[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),'setting','api',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x1fb8'),'userProfileSection'];function _0x44f7c7(_0x3d3b85,_0x5be736,_0x580c51,_0x1309f7,_0x10889f,_0x30ea09,_0x2bbdab,_0x1863bb,_0x359845,_0x3b37b9,_0x4280e6,_0x4dcb99){const _0x2f16bd=_0x34e79e,_0x166bbb=this;_0x166bbb[_0x2f16bd('0x9cb')]=_0x3b37b9[_0x2f16bd('0x24cc')](),_0x166bbb[_0x2f16bd('0x130d')]=_0x30ea09,_0x166bbb['setting']=_0x2bbdab,_0x166bbb[_0x2f16bd('0x18ad')]=_0x166bbb[_0x2f16bd('0x1af0')][_0x2f16bd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x166bbb[_0x2f16bd('0xe9')]=_0x5be736[_0x2f16bd('0x170c')]()+_0x2f16bd('0x726')+_0x5be736[_0x2f16bd('0x1c6a')](),_0x166bbb[_0x2f16bd('0x1fb8')]=_0x4280e6||_0x3d3b85['params']['faxAccount']||{},_0x166bbb[_0x2f16bd('0xec9')]=_0x4dcb99&&_0x4dcb99['count']==0x1?_0x4dcb99[_0x2f16bd('0x25df')][0x0]:null,_0x166bbb[_0x2f16bd('0xe28')]=_0x3b37b9[_0x2f16bd('0x157e')](_0x166bbb['userProfileSection']?_0x166bbb['userProfileSection'][_0x2f16bd('0xe28')]:null),_0x166bbb[_0x2f16bd('0x1193')]={},_0x166bbb[_0x2f16bd('0xcb3')]=_0x3d3b85[_0x2f16bd('0x4b9')][_0x2f16bd('0x24f6')]||0x0,_0x166bbb[_0x2f16bd('0x1fc7')]=_0x28f0e5,_0x166bbb[_0x2f16bd('0x1113')]=_0x1e19fa,_0x166bbb['alert']=_0x359845[_0x2f16bd('0x2276')],_0x166bbb[_0x2f16bd('0xc21')]=_0x1b0623,_0x166bbb[_0x2f16bd('0xadc')]=_0x5e03ba,_0x3b37b9[_0x2f16bd('0x1516')](_0x2f16bd('0xe23'))?_0x1863bb[_0x2f16bd('0x2549')]['get']({'fields':_0x2f16bd('0x1338'),'sort':'name'})[_0x2f16bd('0x1714')][_0x2f16bd('0x2788')](function(_0x277631){const _0x8c7ae=_0x2f16bd;_0x166bbb['trunks']=_0x277631[_0x8c7ae('0x25df')]||[];})[_0x2f16bd('0x1cb5')](function(_0xf25f76){const _0x4c6896=_0x2f16bd;_0x359845[_0x4c6896('0x5e8')]({'title':_0xf25f76[_0x4c6896('0x1b51')]?'API:'+_0xf25f76[_0x4c6896('0x1b51')]+'\x20-\x20'+_0xf25f76[_0x4c6896('0x22ce')]:_0x4c6896('0x119d'),'msg':_0xf25f76[_0x4c6896('0x11fc')]?JSON[_0x4c6896('0x1be0')](_0xf25f76[_0x4c6896('0x11fc')]):_0xf25f76[_0x4c6896('0x17df')]()});}):_0x1863bb[_0x2f16bd('0x2549')][_0x2f16bd('0x1335')]({'fields':_0x2f16bd('0x1338'),'sort':_0x2f16bd('0x1a8d')})[_0x2f16bd('0x1714')][_0x2f16bd('0x2788')](function(_0x5e7e5b){const _0x576999=_0x2f16bd;_0x166bbb[_0x576999('0x20f2')]=_0x5e7e5b[_0x576999('0x25df')]||[];})['then'](function(){const _0x4b22f2=_0x2f16bd;return _0x1863bb[_0x4b22f2('0xec9')]['get']({'userProfileId':_0x166bbb[_0x4b22f2('0x9cb')]['userProfileId'],'sectionId':0x3f3})[_0x4b22f2('0x1714')];})[_0x2f16bd('0x2788')](function(_0x4d50e8){const _0x27fdf2=_0x2f16bd,_0x49169b=_0x4d50e8&&_0x4d50e8[_0x27fdf2('0x25df')]?_0x4d50e8[_0x27fdf2('0x25df')][0x0]:null;if(!_0x49169b){const _0x44f7fa=[];let _0x456747=null;_0x166bbb[_0x27fdf2('0x1fb8')]&&(_0x456747=_0x283545()['find'](_0x166bbb['trunks'],{'id':Number(_0x166bbb[_0x27fdf2('0x1fb8')][_0x27fdf2('0x1854')])}));for(let _0x82cec6=0x0;_0x82cec6<_0x166bbb['trunks']['length'];_0x82cec6++){_0x456747&&_0x166bbb[_0x27fdf2('0x20f2')][_0x82cec6]['id']===_0x456747['id']&&(_0x166bbb[_0x27fdf2('0x20f2')][_0x82cec6][_0x27fdf2('0x3bf')]=![],_0x44f7fa['push'](_0x166bbb[_0x27fdf2('0x20f2')][_0x82cec6]));}_0x166bbb[_0x27fdf2('0x20f2')]=_0x44f7fa;}else{if(!_0x49169b[_0x27fdf2('0x1c0a')])return _0x1863bb[_0x27fdf2('0x1050')]['get']({'sectionId':_0x49169b['id']})['$promise']['then'](function(_0x4c5875){const _0x571cc0=_0x27fdf2,_0x2e4aca=_0x283545()[_0x571cc0('0x155d')](_0x4c5875[_0x571cc0('0x25df')],function(_0x40bd08){const _0x2766b8=_0x571cc0;return _0x283545()[_0x2766b8('0x20e8')](_0x166bbb[_0x2766b8('0x20f2')],{'id':_0x40bd08['resourceId']});});let _0x79c038=null;_0x166bbb['faxAccount']&&(_0x79c038=_0x283545()[_0x571cc0('0x20e8')](_0x166bbb[_0x571cc0('0x20f2')],{'id':Number(_0x166bbb[_0x571cc0('0x1fb8')][_0x571cc0('0x1854')])}));if(_0x79c038&&!_0x283545()[_0x571cc0('0xc5d')](_0x2e4aca,['id',_0x79c038['id']])){const _0x8201c9=_0x283545()[_0x571cc0('0x20e8')](_0x166bbb[_0x571cc0('0x20f2')],{'id':_0x79c038['id']});_0x8201c9[_0x571cc0('0x3bf')]=![],_0x2e4aca[_0x571cc0('0x13e3')](_0x8201c9);}_0x166bbb[_0x571cc0('0x20f2')]=_0x2e4aca;});}})[_0x2f16bd('0x1cb5')](function(_0x224eff){const _0x1d42ba=_0x2f16bd;_0x359845['error']({'title':_0x224eff[_0x1d42ba('0x1b51')]?'API:'+_0x224eff['status']+'\x20-\x20'+_0x224eff['statusText']:_0x1d42ba('0xdb5'),'msg':_0x224eff[_0x1d42ba('0x11fc')]?JSON[_0x1d42ba('0x1be0')](_0x224eff[_0x1d42ba('0x11fc')]):_0x224eff['toString']()});}),_0x3b37b9[_0x2f16bd('0x1516')](_0x2f16bd('0xe23'))?_0x1863bb[_0x2f16bd('0x1ba4')][_0x2f16bd('0x1335')]({'fields':'id,name','sort':_0x2f16bd('0x1a8d')})['$promise'][_0x2f16bd('0x2788')](function(_0x26876c){const _0x5d9adb=_0x2f16bd;_0x166bbb[_0x5d9adb('0x2')]=_0x26876c[_0x5d9adb('0x25df')]||[];})[_0x2f16bd('0x1cb5')](function(_0x49ad58){const _0xb7ba8=_0x2f16bd;_0x359845['error']({'title':_0x49ad58[_0xb7ba8('0x1b51')]?_0xb7ba8('0x15d1')+_0x49ad58[_0xb7ba8('0x1b51')]+_0xb7ba8('0x1b0b')+_0x49ad58[_0xb7ba8('0x22ce')]:_0xb7ba8('0x11da'),'msg':_0x49ad58['data']?JSON[_0xb7ba8('0x1be0')](_0x49ad58[_0xb7ba8('0x11fc')]):_0x49ad58[_0xb7ba8('0x17df')]()});}):_0x1863bb[_0x2f16bd('0x1ba4')][_0x2f16bd('0x1335')]({'fields':_0x2f16bd('0x1338'),'sort':_0x2f16bd('0x1a8d')})[_0x2f16bd('0x1714')][_0x2f16bd('0x2788')](function(_0x208b5e){const _0x1b3635=_0x2f16bd;_0x166bbb[_0x1b3635('0x2')]=_0x208b5e['rows']||[];})[_0x2f16bd('0x2788')](function(){const _0x117939=_0x2f16bd;return _0x1863bb['userProfileSection'][_0x117939('0x1335')]({'userProfileId':_0x166bbb[_0x117939('0x9cb')][_0x117939('0x237f')],'sectionId':0x12d})[_0x117939('0x1714')];})[_0x2f16bd('0x2788')](function(_0x598fa0){const _0x2fc51e=_0x2f16bd,_0x10c6f2=_0x598fa0&&_0x598fa0[_0x2fc51e('0x25df')]?_0x598fa0[_0x2fc51e('0x25df')][0x0]:null;if(!_0x10c6f2){const _0x3f2337=[];let _0x16fd6c=null;_0x166bbb[_0x2fc51e('0x1fb8')]&&(_0x16fd6c=_0x283545()[_0x2fc51e('0x20e8')](_0x166bbb['lists'],{'id':Number(_0x166bbb[_0x2fc51e('0x1fb8')][_0x2fc51e('0x354')])}));for(let _0x4152bf=0x0;_0x4152bf<_0x166bbb[_0x2fc51e('0x2')]['length'];_0x4152bf++){_0x16fd6c&&_0x166bbb[_0x2fc51e('0x2')][_0x4152bf]['id']===_0x16fd6c['id']&&(_0x166bbb[_0x2fc51e('0x2')][_0x4152bf]['canSelect']=![],_0x3f2337[_0x2fc51e('0x13e3')](_0x166bbb[_0x2fc51e('0x2')][_0x4152bf]));}_0x166bbb['lists']=_0x3f2337;}else{if(!_0x10c6f2[_0x2fc51e('0x1c0a')])return _0x1863bb[_0x2fc51e('0x1050')]['get']({'sectionId':_0x10c6f2['id']})['$promise']['then'](function(_0x4a30e9){const _0x64721f=_0x2fc51e,_0x5227fb=_0x283545()[_0x64721f('0x155d')](_0x4a30e9[_0x64721f('0x25df')],function(_0xa98847){const _0x1b1333=_0x64721f;return _0x283545()[_0x1b1333('0x20e8')](_0x166bbb['lists'],{'id':_0xa98847[_0x1b1333('0x2707')]});});let _0x1c94ed=null;_0x166bbb[_0x64721f('0x1fb8')]&&(_0x1c94ed=_0x283545()[_0x64721f('0x20e8')](_0x166bbb['lists'],{'id':Number(_0x166bbb[_0x64721f('0x1fb8')][_0x64721f('0x354')])}));if(_0x1c94ed&&!_0x283545()[_0x64721f('0xc5d')](_0x5227fb,['id',_0x1c94ed['id']])){const _0x11f1d3=_0x283545()[_0x64721f('0x20e8')](_0x166bbb[_0x64721f('0x2')],{'id':_0x1c94ed['id']});_0x11f1d3['canSelect']=![],_0x5227fb[_0x64721f('0x13e3')](_0x11f1d3);}_0x166bbb[_0x64721f('0x2')]=_0x5227fb;});}})['catch'](function(_0x48bddd){const _0x43a373=_0x2f16bd;_0x359845[_0x43a373('0x5e8')]({'title':_0x48bddd['status']?_0x43a373('0x15d1')+_0x48bddd[_0x43a373('0x1b51')]+_0x43a373('0x1b0b')+_0x48bddd['statusText']:_0x43a373('0x999'),'msg':_0x48bddd['data']?JSON[_0x43a373('0x1be0')](_0x48bddd[_0x43a373('0x11fc')]):_0x48bddd[_0x43a373('0x17df')]()});}),_0x3b37b9[_0x2f16bd('0x1516')](_0x2f16bd('0xe23'))?_0x1863bb[_0x2f16bd('0x619')][_0x2f16bd('0x1335')]({'fields':_0x2f16bd('0xcfa'),'sort':_0x2f16bd('0x1a8d'),'nolimit':_0x2f16bd('0x1001')})[_0x2f16bd('0x1714')][_0x2f16bd('0x2788')](function(_0x1aa107){const _0x447909=_0x2f16bd;_0x166bbb['pauses']=_0x1aa107[_0x447909('0x25df')]||[];})[_0x2f16bd('0x1cb5')](function(_0x1e5fd1){const _0x3c2983=_0x2f16bd;_0x359845['error']({'title':_0x1e5fd1[_0x3c2983('0x1b51')]?_0x3c2983('0x15d1')+_0x1e5fd1[_0x3c2983('0x1b51')]+_0x3c2983('0x1b0b')+_0x1e5fd1[_0x3c2983('0x22ce')]:_0x3c2983('0x10d8'),'msg':_0x1e5fd1[_0x3c2983('0x11fc')]?JSON[_0x3c2983('0x1be0')](_0x1e5fd1[_0x3c2983('0x11fc')]):_0x1e5fd1['toString']()});}):_0x1863bb[_0x2f16bd('0x619')][_0x2f16bd('0x1335')]({'fields':_0x2f16bd('0xcfa'),'sort':_0x2f16bd('0x1a8d'),'nolimit':_0x2f16bd('0x1001')})[_0x2f16bd('0x1714')][_0x2f16bd('0x2788')](function(_0x4b17a4){const _0x37c104=_0x2f16bd;_0x166bbb[_0x37c104('0x225d')]=_0x4b17a4[_0x37c104('0x25df')]||[];})[_0x2f16bd('0x2788')](function(){const _0x3a6c79=_0x2f16bd;return _0x1863bb[_0x3a6c79('0xec9')]['get']({'userProfileId':_0x166bbb[_0x3a6c79('0x9cb')][_0x3a6c79('0x237f')],'sectionId':0x3ed})['$promise'];})[_0x2f16bd('0x2788')](function(_0x4801bc){const _0x5c97fb=_0x2f16bd,_0x159e5a=_0x4801bc&&_0x4801bc[_0x5c97fb('0x25df')]?_0x4801bc['rows'][0x0]:null;if(!_0x159e5a)_0x166bbb[_0x5c97fb('0x225d')]=[];else{if(!_0x159e5a['autoAssociation'])return _0x1863bb['userProfileResource'][_0x5c97fb('0x1335')]({'sectionId':_0x159e5a['id']})['$promise'][_0x5c97fb('0x2788')](function(_0xbd10c1){const _0x128eae=_0x5c97fb,_0x2036f1=_0x283545()[_0x128eae('0x155d')](_0xbd10c1[_0x128eae('0x25df')],function(_0x31e1da){const _0x3a68e1=_0x128eae;return _0x283545()[_0x3a68e1('0x20e8')](_0x166bbb[_0x3a68e1('0x225d')],{'id':_0x31e1da['resourceId']});});_0x166bbb[_0x128eae('0x225d')]['forEach'](function(_0x55f512){const _0xe7b758=_0x128eae;!_0x283545()[_0xe7b758('0xc5d')](_0x2036f1,['id',_0x55f512['id']])&&(_0x55f512[_0xe7b758('0x3bf')]=![]),_0x2036f1['push'](_0x55f512);}),_0x166bbb[_0x128eae('0x225d')]=_0x2036f1;});}})[_0x2f16bd('0x1cb5')](function(_0xdfcd0e){const _0x33dec8=_0x2f16bd;_0x359845[_0x33dec8('0x5e8')]({'title':_0xdfcd0e[_0x33dec8('0x1b51')]?_0x33dec8('0x15d1')+_0xdfcd0e[_0x33dec8('0x1b51')]+_0x33dec8('0x1b0b')+_0xdfcd0e[_0x33dec8('0x22ce')]:_0x33dec8('0x7d9'),'msg':_0xdfcd0e[_0x33dec8('0x11fc')]?JSON['stringify'](_0xdfcd0e[_0x33dec8('0x11fc')]):_0xdfcd0e[_0x33dec8('0x17df')]()});});function _0x28f0e5(){const _0x543598=_0x2f16bd;if(_0x3b37b9[_0x543598('0x1516')]('admin'))_0x3d3b85['go']('app.fax.realtime.accounts',{});else return _0x1863bb[_0x543598('0xec9')][_0x543598('0x1335')]({'userProfileId':_0x3b37b9[_0x543598('0x24cc')]()['userProfileId'],'sectionId':0x38e})[_0x543598('0x1714')][_0x543598('0x2788')](function(_0x3c4149){const _0x321080=_0x543598,_0x2c12b4=_0x3c4149&&_0x3c4149['rows']?_0x3c4149[_0x321080('0x25df')][0x0]:null;_0x2c12b4&&_0x2c12b4[_0x321080('0x14f4')]?_0x3d3b85['go'](_0x321080('0x9b4'),{}):_0x359845[_0x321080('0x2276')]({'title':_0x10889f['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x10889f['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x543598('0x1cb5')](function(_0x41f484){const _0xffb9e7=_0x543598;_0x359845[_0xffb9e7('0x5e8')]({'title':_0x41f484['status']?_0xffb9e7('0x15d1')+_0x41f484[_0xffb9e7('0x1b51')]+_0xffb9e7('0x1b0b')+_0x41f484[_0xffb9e7('0x22ce')]:_0xffb9e7('0x2292'),'msg':_0x41f484['status']?JSON[_0xffb9e7('0x1be0')](_0x41f484[_0xffb9e7('0x11fc')]):_0x41f484['toString']()});});}function _0x1e19fa(_0x1742c0,_0x58235f){const _0xe9cebf=_0x2f16bd;_0x580c51[_0xe9cebf('0x2fa')]({'controller':_0xe9cebf('0x8ff'),'controllerAs':'vm','templateUrl':_0x2d2724,'parent':angular[_0xe9cebf('0x16b1')](_0x1309f7[_0xe9cebf('0x945')]),'targetEvent':_0x58235f,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x1742c0,'faxAccounts':_0x166bbb[_0xe9cebf('0xe9b')]?_0x166bbb[_0xe9cebf('0xe9b')]['rows']:[],'crudPermissions':_0x166bbb[_0xe9cebf('0xe28')],'realtime':![]}});}function _0x1b0623(){const _0x3509b5=_0x2f16bd;_0x3d3b85['go'](_0x3509b5('0x50b'),{},{'reload':_0x3509b5('0x50b')});}function _0x5e03ba(){const _0x5875eb=_0x2f16bd;_0x1863bb[_0x5875eb('0x1fb8')]['updateAccountApplications'](_0x166bbb['faxAccount'])[_0x5875eb('0x1714')][_0x5875eb('0x2788')](function(){const _0x2f5535=_0x5875eb;_0x359845[_0x2f5535('0x173b')]({'title':_0x2f5535('0x647'),'msg':_0x166bbb[_0x2f5535('0x1fb8')][_0x2f5535('0x1a8d')]?_0x166bbb[_0x2f5535('0x1fb8')][_0x2f5535('0x1a8d')]+_0x2f5535('0x6f8'):''});})['catch'](function(_0x49e4e6){const _0x37a019=_0x5875eb;_0x359845['error']({'title':_0x49e4e6[_0x37a019('0x1b51')]?'API:'+_0x49e4e6[_0x37a019('0x1b51')]+_0x37a019('0x1b0b')+_0x49e4e6['statusText']:'SYSTEM:GETfaxAccount','msg':_0x49e4e6['data']?JSON[_0x37a019('0x1be0')](_0x49e4e6[_0x37a019('0x11fc')]):_0x49e4e6['toString']()});});}}const _0x4cb58b=_0x44f7c7,_0x2cfdad=_0x18dd13['p']+_0x34e79e('0x17f2');_0x3591a5[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0xe9b'),'userProfile','userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x3591a5(_0x5f4a74,_0x4ce599,_0x5d1398,_0xc06282,_0x1bc294,_0x238e44,_0x17dfae,_0x2326fe,_0x262c46,_0x4abf8c,_0x117879,_0x1f1c41,_0x4febfa,_0x14f3d2,_0x8c7364,_0x135862,_0x2da910){const _0x369354=_0x34e79e,_0x5c56b6=this;_0x5c56b6[_0x369354('0x130d')]=_0x135862,_0x5c56b6['setting']=_0x2da910,_0x5c56b6[_0x369354('0x9cb')]=_0x8c7364[_0x369354('0x24cc')](),_0x5c56b6['faxAccounts']=_0x262c46||{'count':0x0,'rows':[]},_0x5c56b6[_0x369354('0x63c')]=_0x4abf8c,_0x5c56b6['userProfileSection']=_0x117879&&_0x117879[_0x369354('0x338')]==0x1?_0x117879['rows'][0x0]:null,_0x5c56b6['crudPermissions']=_0x8c7364[_0x369354('0x157e')](_0x5c56b6['userProfileSection']?_0x5c56b6[_0x369354('0xec9')][_0x369354('0xe28')]:null),_0x5c56b6['table']=_0x369354('0xe9b'),_0x5c56b6[_0x369354('0x2278')]='',_0x5c56b6[_0x369354('0x25e2')]=null,_0x5c56b6[_0x369354('0x98f')]=[],_0x5c56b6[_0x369354('0x135a')]={'fields':_0x369354('0x25e1'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x5c56b6[_0x369354('0xef0')]=_0x283545()[_0x369354('0x13cf')]([{'option':_0x369354('0x2062'),'value':_0x369354('0x640')},{'option':'no','value':_0x369354('0x2363')}],function(_0x596037){const _0x3ca445=_0x369354;return _0x283545()[_0x3ca445('0x10a4')](_0x596037[_0x3ca445('0x49')],new RegExp('\x27','g'),'');}),_0x5c56b6['arrayminrate']=_0x283545()[_0x369354('0x13cf')]([{'option':_0x369354('0x1381'),'value':_0x369354('0x118e')},{'option':_0x369354('0x8b3'),'value':_0x369354('0x175e')},{'option':_0x369354('0x1a6d'),'value':_0x369354('0x1d0d')},{'option':'9600','value':'\x279600\x27'},{'option':_0x369354('0xd76'),'value':_0x369354('0x239a')},{'option':_0x369354('0x82d'),'value':_0x369354('0x1f31')}],function(_0x5a493b){const _0x36517d=_0x369354;return _0x283545()[_0x36517d('0x10a4')](_0x5a493b[_0x36517d('0x49')],new RegExp('\x27','g'),'');}),_0x5c56b6[_0x369354('0x1dd3')]=_0x283545()[_0x369354('0x13cf')]([{'option':_0x369354('0x1381'),'value':_0x369354('0x118e')},{'option':_0x369354('0x8b3'),'value':'\x274800\x27'},{'option':_0x369354('0x1a6d'),'value':_0x369354('0x1d0d')},{'option':_0x369354('0xbf4'),'value':'\x279600\x27'},{'option':'12000','value':_0x369354('0x239a')},{'option':_0x369354('0x82d'),'value':_0x369354('0x1f31')}],function(_0x2e6a83){const _0x2c324f=_0x369354;return _0x283545()[_0x2c324f('0x10a4')](_0x2e6a83[_0x2c324f('0x49')],new RegExp('\x27','g'),'');}),_0x5c56b6[_0x369354('0x19d8')]=_0x283545()[_0x369354('0x13cf')]([{'option':_0x369354('0x2756'),'value':_0x369354('0x2177')},{'option':_0x369354('0x1e07'),'value':'\x27IAX\x27'},{'option':_0x369354('0x24cd'),'value':'\x27DADHI\x27'},{'option':_0x369354('0xe2'),'value':_0x369354('0x17f')}],function(_0x573343){const _0x2a8355=_0x369354;return _0x283545()['replace'](_0x573343[_0x2a8355('0x49')],new RegExp('\x27','g'),'');}),_0x5c56b6[_0x369354('0x1f7e')]=_0x112823,_0x5c56b6['interactionsgoto']=_0x19ed98,_0x5c56b6[_0x369354('0x8d1')]=_0x4cf5f9,_0x5c56b6[_0x369354('0x1113')]=_0x3a0329,_0x5c56b6[_0x369354('0x1e5')]=_0x7f8244,_0x5c56b6['success']=_0x39c238,_0x5c56b6[_0x369354('0x1dbb')]=_0x2d6eae,_0x5c56b6[_0x369354('0x1514')]=_0x263d46,_0x5c56b6[_0x369354('0x1901')]=_0x47bb44,_0x5c56b6['exportSelectedFaxAccounts']=_0x49f653,_0x5c56b6[_0x369354('0xe5c')]=_0x327cf7,_0x5c56b6[_0x369354('0x6d9')]=_0x31c5ed,_0x5c56b6[_0x369354('0x252f')]=_0x13e00b,_0x8c7364[_0x369354('0x1516')](_0x369354('0xe23'))?_0x1f1c41[_0x369354('0x2549')][_0x369354('0x1335')]({'fields':_0x369354('0x1338'),'sort':_0x369354('0x1a8d')})[_0x369354('0x1714')]['then'](function(_0x2f0e26){const _0x8fb186=_0x369354;_0x5c56b6[_0x8fb186('0x20f2')]=_0x2f0e26[_0x8fb186('0x25df')]||[];})[_0x369354('0x1cb5')](function(_0x59bdf4){const _0x20b11f=_0x369354;_0x14f3d2[_0x20b11f('0x5e8')]({'title':_0x59bdf4[_0x20b11f('0x1b51')]?_0x20b11f('0x15d1')+_0x59bdf4[_0x20b11f('0x1b51')]+_0x20b11f('0x1b0b')+_0x59bdf4[_0x20b11f('0x22ce')]:_0x20b11f('0x119d'),'msg':_0x59bdf4[_0x20b11f('0x11fc')]?JSON[_0x20b11f('0x1be0')](_0x59bdf4[_0x20b11f('0x11fc')]):_0x59bdf4[_0x20b11f('0x17df')]()});}):_0x1f1c41['trunk'][_0x369354('0x1335')]({'fields':_0x369354('0x1338'),'sort':_0x369354('0x1a8d')})[_0x369354('0x1714')][_0x369354('0x2788')](function(_0x54ba64){const _0x11843a=_0x369354;_0x5c56b6[_0x11843a('0x20f2')]=_0x54ba64[_0x11843a('0x25df')]||[];})[_0x369354('0x2788')](function(){const _0x2ac16f=_0x369354;return _0x1f1c41['userProfileSection'][_0x2ac16f('0x1335')]({'userProfileId':_0x5c56b6[_0x2ac16f('0x9cb')][_0x2ac16f('0x237f')],'sectionId':0x3f3})['$promise'];})[_0x369354('0x2788')](function(_0x620ee){const _0x37e1ea=_0x369354,_0x253750=_0x620ee&&_0x620ee['rows']?_0x620ee[_0x37e1ea('0x25df')][0x0]:null;if(!_0x253750){const _0x23c95a=[],_0x565d35=[];_0x5c56b6[_0x37e1ea('0xe9b')]['rows'][_0x37e1ea('0x1534')](function(_0x320766){const _0x178155=_0x37e1ea,_0x4d3c87=_0x283545()[_0x178155('0x20e8')](_0x5c56b6[_0x178155('0x20f2')],{'id':Number(_0x320766[_0x178155('0x1854')])});_0x565d35[_0x178155('0x13e3')](_0x4d3c87);});for(let _0x522abe=0x0;_0x522abe<_0x5c56b6[_0x37e1ea('0x20f2')][_0x37e1ea('0x2566')];_0x522abe++){const _0x4525ed=_0x283545()[_0x37e1ea('0xc5d')](_0x565d35,{'id':_0x5c56b6['trunks'][_0x522abe]['id']});_0x4525ed&&(_0x5c56b6['trunks'][_0x522abe]['canSelect']=![],_0x23c95a[_0x37e1ea('0x13e3')](_0x5c56b6[_0x37e1ea('0x20f2')][_0x522abe]));}_0x5c56b6[_0x37e1ea('0x20f2')]=_0x23c95a;}else{if(!_0x253750['autoAssociation'])return _0x1f1c41['userProfileResource'][_0x37e1ea('0x1335')]({'sectionId':_0x253750['id']})['$promise'][_0x37e1ea('0x2788')](function(_0x1c1050){const _0x1e3ce9=_0x37e1ea,_0x536cc2=_0x283545()['map'](_0x1c1050['rows'],function(_0x2c2533){const _0x58f856=a0_0x14e7;return _0x283545()[_0x58f856('0x20e8')](_0x5c56b6[_0x58f856('0x20f2')],{'id':_0x2c2533[_0x58f856('0x2707')]});});let _0x2c166d=null;_0x2c166d=[],_0x5c56b6[_0x1e3ce9('0xe9b')][_0x1e3ce9('0x25df')][_0x1e3ce9('0x1534')](function(_0x3f3052){const _0x52b297=_0x1e3ce9,_0x590e48=_0x283545()[_0x52b297('0x20e8')](_0x5c56b6[_0x52b297('0x20f2')],{'id':Number(_0x3f3052['TrunkId'])});_0x2c166d[_0x52b297('0x13e3')](_0x590e48);}),!_0x283545()[_0x1e3ce9('0x213d')](_0x2c166d)&&_0x2c166d['forEach'](function(_0x4b2573){const _0x363acd=_0x1e3ce9;if(!_0x283545()['some'](_0x536cc2,['id',_0x4b2573['id']])){const _0x25352c=_0x283545()[_0x363acd('0x20e8')](_0x5c56b6[_0x363acd('0x20f2')],{'id':_0x4b2573['id']});_0x25352c[_0x363acd('0x3bf')]=![],_0x536cc2[_0x363acd('0x13e3')](_0x25352c);}}),_0x5c56b6['trunks']=_0x536cc2;});}})[_0x369354('0x1cb5')](function(_0x102943){const _0x5da202=_0x369354;_0x14f3d2['error']({'title':_0x102943[_0x5da202('0x1b51')]?_0x5da202('0x15d1')+_0x102943[_0x5da202('0x1b51')]+_0x5da202('0x1b0b')+_0x102943[_0x5da202('0x22ce')]:_0x5da202('0xdb5'),'msg':_0x102943[_0x5da202('0x11fc')]?JSON['stringify'](_0x102943[_0x5da202('0x11fc')]):_0x102943[_0x5da202('0x17df')]()});}),_0x8c7364[_0x369354('0x1516')](_0x369354('0xe23'))?_0x1f1c41[_0x369354('0x1ba4')]['get']({'fields':_0x369354('0x1338'),'sort':_0x369354('0x1a8d')})[_0x369354('0x1714')][_0x369354('0x2788')](function(_0x229675){const _0x533081=_0x369354;_0x5c56b6[_0x533081('0x2')]=_0x229675[_0x533081('0x25df')]||[];})[_0x369354('0x1cb5')](function(_0x4e4fbc){const _0x51bb85=_0x369354;_0x14f3d2['error']({'title':_0x4e4fbc['status']?'API:'+_0x4e4fbc['status']+_0x51bb85('0x1b0b')+_0x4e4fbc['statusText']:_0x51bb85('0x11da'),'msg':_0x4e4fbc['data']?JSON[_0x51bb85('0x1be0')](_0x4e4fbc[_0x51bb85('0x11fc')]):_0x4e4fbc[_0x51bb85('0x17df')]()});}):_0x1f1c41['cmList']['get']({'fields':_0x369354('0x1338'),'sort':'name'})[_0x369354('0x1714')][_0x369354('0x2788')](function(_0x5d35ff){const _0x2fff99=_0x369354;_0x5c56b6['lists']=_0x5d35ff[_0x2fff99('0x25df')]||[];})[_0x369354('0x2788')](function(){const _0x1687c6=_0x369354;return _0x1f1c41[_0x1687c6('0xec9')][_0x1687c6('0x1335')]({'userProfileId':_0x5c56b6['currentUser'][_0x1687c6('0x237f')],'sectionId':0x12d})['$promise'];})[_0x369354('0x2788')](function(_0x402c08){const _0xc83f81=_0x369354,_0x33c732=_0x402c08&&_0x402c08[_0xc83f81('0x25df')]?_0x402c08[_0xc83f81('0x25df')][0x0]:null;if(!_0x33c732){const _0x294c5c=[];let _0x13610b=null;_0x5c56b6['faxAccount']&&(_0x13610b=_0x283545()[_0xc83f81('0x20e8')](_0x5c56b6['lists'],{'id':Number(_0x5c56b6[_0xc83f81('0x1fb8')][_0xc83f81('0x354')])}));for(let _0x138e94=0x0;_0x138e94<_0x5c56b6[_0xc83f81('0x2')][_0xc83f81('0x2566')];_0x138e94++){_0x13610b&&_0x5c56b6[_0xc83f81('0x2')][_0x138e94]['id']===_0x13610b['id']&&(_0x5c56b6[_0xc83f81('0x2')][_0x138e94][_0xc83f81('0x3bf')]=![],_0x294c5c[_0xc83f81('0x13e3')](_0x5c56b6[_0xc83f81('0x2')][_0x138e94]));}_0x5c56b6[_0xc83f81('0x2')]=_0x294c5c;}else{if(!_0x33c732[_0xc83f81('0x1c0a')])return _0x1f1c41[_0xc83f81('0x1050')]['get']({'sectionId':_0x33c732['id']})[_0xc83f81('0x1714')][_0xc83f81('0x2788')](function(_0x307dbc){const _0x281e4a=_0xc83f81,_0x462959=_0x283545()[_0x281e4a('0x155d')](_0x307dbc['rows'],function(_0x245f00){const _0x13c4bf=_0x281e4a;return _0x283545()[_0x13c4bf('0x20e8')](_0x5c56b6[_0x13c4bf('0x2')],{'id':_0x245f00[_0x13c4bf('0x2707')]});});let _0x21702a=null;_0x5c56b6['faxAccount']&&(_0x21702a=_0x283545()['find'](_0x5c56b6[_0x281e4a('0x2')],{'id':Number(_0x5c56b6[_0x281e4a('0x1fb8')][_0x281e4a('0x354')])}));if(_0x21702a&&!_0x283545()[_0x281e4a('0xc5d')](_0x462959,['id',_0x21702a['id']])){const _0x1517fe=_0x283545()['find'](_0x5c56b6[_0x281e4a('0x2')],{'id':_0x21702a['id']});_0x1517fe[_0x281e4a('0x3bf')]=![],_0x462959[_0x281e4a('0x13e3')](_0x1517fe);}_0x5c56b6[_0x281e4a('0x2')]=_0x462959;});}})[_0x369354('0x1cb5')](function(_0x489b7c){const _0x561f20=_0x369354;_0x14f3d2[_0x561f20('0x5e8')]({'title':_0x489b7c[_0x561f20('0x1b51')]?_0x561f20('0x15d1')+_0x489b7c[_0x561f20('0x1b51')]+_0x561f20('0x1b0b')+_0x489b7c[_0x561f20('0x22ce')]:'SYSTEM:GETlists','msg':_0x489b7c['data']?JSON[_0x561f20('0x1be0')](_0x489b7c[_0x561f20('0x11fc')]):_0x489b7c[_0x561f20('0x17df')]()});});function _0x112823(_0x2d2f76){const _0x3c282e=_0x369354;_0x5d1398['go'](_0x3c282e('0x2438'),{'id':_0x2d2f76['id'],'faxAccount':_0x2d2f76,'crudPermissions':_0x5c56b6['crudPermissions']});}function _0x19ed98(_0x522a59){_0x5d1398['go']('app.fax.faxAccounts.edit',{'id':_0x522a59['id'],'tab':0x5});}function _0x4cf5f9(){const _0x36505c=_0x369354;if(_0x8c7364[_0x36505c('0x1516')](_0x36505c('0xe23')))_0x5d1398['go'](_0x36505c('0x9b4'),{});else return _0x1f1c41[_0x36505c('0xec9')][_0x36505c('0x1335')]({'userProfileId':_0x8c7364[_0x36505c('0x24cc')]()[_0x36505c('0x237f')],'sectionId':0x38e})[_0x36505c('0x1714')]['then'](function(_0x44ce0c){const _0x158421=_0x36505c,_0x7cc593=_0x44ce0c&&_0x44ce0c['rows']?_0x44ce0c['rows'][0x0]:null;_0x7cc593&&_0x7cc593[_0x158421('0x14f4')]?_0x5d1398['go'](_0x158421('0x9b4'),{}):_0x14f3d2[_0x158421('0x2276')]({'title':_0x2326fe['instant'](_0x158421('0x5be')),'msg':_0x2326fe[_0x158421('0x1b11')](_0x158421('0x1abc'))});})[_0x36505c('0x1cb5')](function(_0x357f06){const _0x3ad828=_0x36505c;_0x14f3d2[_0x3ad828('0x5e8')]({'title':_0x357f06['status']?'API:'+_0x357f06[_0x3ad828('0x1b51')]+_0x3ad828('0x1b0b')+_0x357f06['statusText']:_0x3ad828('0x2292'),'msg':_0x357f06[_0x3ad828('0x1b51')]?JSON[_0x3ad828('0x1be0')](_0x357f06[_0x3ad828('0x11fc')]):_0x357f06[_0x3ad828('0x17df')]()});});}function _0x3a0329(_0x12a62c,_0x483377){const _0x48941a=_0x369354;_0x1bc294[_0x48941a('0x2fa')]({'controller':'FaxAccountagentaddController','controllerAs':'vm','templateUrl':_0x2d2724,'parent':angular[_0x48941a('0x16b1')](_0x238e44[_0x48941a('0x945')]),'targetEvent':_0x483377,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x12a62c,'faxAccounts':_0x5c56b6[_0x48941a('0xe9b')]?_0x5c56b6[_0x48941a('0xe9b')][_0x48941a('0x25df')]:[],'crudPermissions':_0x5c56b6[_0x48941a('0xe28')],'realtime':![]}});}function _0x7f8244(_0x54c210,_0x4e5295){const _0x5b5eda=_0x369354,_0x2d84af=_0x1bc294[_0x5b5eda('0x112e')]()[_0x5b5eda('0x14e4')](_0x5b5eda('0x2114')+_0x283545()['startCase'](_0x5b5eda('0x1fb8'))+'?')[_0x5b5eda('0x93e')](_0x5b5eda('0x1670')+(_0x54c210[_0x5b5eda('0x1a8d')]||_0x5b5eda('0x1fb8'))+_0x5b5eda('0x229e')+_0x5b5eda('0x27c7'))['ariaLabel'](_0x5b5eda('0x622'))[_0x5b5eda('0x24d0')](_0x4e5295)['ok']('OK')[_0x5b5eda('0x1801')](_0x5b5eda('0x1d8d'));_0x1bc294[_0x5b5eda('0x2fa')](_0x2d84af)['then'](function(){_0x47bb44(_0x54c210);},function(){const _0x50e553=_0x5b5eda;console[_0x50e553('0x10df')](_0x50e553('0x1d8d'));});}let _0x2fd055=!![],_0x476cf7=0x1;_0x5f4a74[_0x369354('0x1662')](_0x369354('0x1569'),function(_0x4e2574,_0x3a08ab){const _0x1a9eac=_0x369354;_0x2fd055?_0x17dfae(function(){_0x2fd055=![];}):(!_0x3a08ab&&(_0x476cf7=_0x5c56b6['query'][_0x1a9eac('0x23f5')]),_0x4e2574!==_0x3a08ab&&(_0x5c56b6['query'][_0x1a9eac('0x23f5')]=0x1),!_0x4e2574&&(_0x5c56b6[_0x1a9eac('0x135a')][_0x1a9eac('0x23f5')]=_0x476cf7),_0x5c56b6[_0x1a9eac('0x1dbb')]());});function _0x39c238(_0x3a64bf){const _0x2f4191=_0x369354;_0x5c56b6[_0x2f4191('0xe9b')]=_0x3a64bf||{'count':0x0,'rows':[]};}function _0x2d6eae(){const _0x5e918c=_0x369354;_0x5c56b6[_0x5e918c('0x135a')][_0x5e918c('0x19e')]=(_0x5c56b6[_0x5e918c('0x135a')]['page']-0x1)*_0x5c56b6[_0x5e918c('0x135a')][_0x5e918c('0x68e')],_0x8c7364['hasRole'](_0x5e918c('0xe23'))?_0x5c56b6[_0x5e918c('0x1808')]=_0x1f1c41['faxAccount']['get'](_0x5c56b6[_0x5e918c('0x135a')],_0x39c238)[_0x5e918c('0x1714')]:(_0x5c56b6[_0x5e918c('0x135a')]['id']=_0x5c56b6['userProfile']['id'],_0x5c56b6[_0x5e918c('0x135a')][_0x5e918c('0xb13')]=_0x5e918c('0x1819'),_0x5c56b6[_0x5e918c('0x1808')]=_0x1f1c41['userProfile'][_0x5e918c('0xa1')](_0x5c56b6[_0x5e918c('0x135a')],_0x39c238)[_0x5e918c('0x1714')]);}function _0x263d46(_0x3ed80b,_0xd28c9e){const _0x5b2058=_0x369354;_0x1bc294[_0x5b2058('0x2fa')]({'controller':'CreateOrEditFaxAccountDialogController','controllerAs':'vm','templateUrl':_0x2cfdad,'parent':angular[_0x5b2058('0x16b1')](_0x238e44[_0x5b2058('0x945')]),'targetEvent':_0x3ed80b,'clickOutsideToClose':!![],'locals':{'faxAccount':_0xd28c9e,'faxAccounts':_0x5c56b6[_0x5b2058('0xe9b')]['rows'],'license':_0x5c56b6[_0x5b2058('0x130d')],'setting':_0x5c56b6[_0x5b2058('0x1af0')],'crudPermissions':_0x5c56b6['crudPermissions']}});}function _0x47bb44(_0x49f82e){const _0x10ebbb=_0x369354;_0x1f1c41['faxAccount'][_0x10ebbb('0x17c4')]({'id':_0x49f82e['id']})['$promise'][_0x10ebbb('0x2788')](function(){const _0x5a825a=_0x10ebbb;_0x283545()[_0x5a825a('0x1a90')](_0x5c56b6[_0x5a825a('0xe9b')][_0x5a825a('0x25df')],{'id':_0x49f82e['id']}),_0x5c56b6[_0x5a825a('0xe9b')][_0x5a825a('0x338')]-=0x1,!_0x5c56b6['faxAccounts'][_0x5a825a('0x25df')][_0x5a825a('0x2566')]&&_0x5c56b6['getFaxAccounts'](),_0x14f3d2['success']({'title':_0x283545()['startCase']('FaxAccount')+_0x5a825a('0x20db'),'msg':_0x49f82e['name']?_0x49f82e['name']+_0x5a825a('0x14d4'):''});})[_0x10ebbb('0x1cb5')](function(_0x1b2612){const _0x5161c9=_0x10ebbb;if(_0x1b2612[_0x5161c9('0x11fc')]&&_0x1b2612['data'][_0x5161c9('0x25be')]&&_0x1b2612['data']['errors']['length']){_0x5c56b6[_0x5161c9('0x25be')]=_0x1b2612[_0x5161c9('0x11fc')][_0x5161c9('0x25be')]||[{'message':_0x1b2612[_0x5161c9('0x17df')](),'type':_0x5161c9('0x1465')}];for(let _0x5d7a50=0x0;_0x5d7a50<_0x1b2612[_0x5161c9('0x11fc')]['errors'][_0x5161c9('0x2566')];_0x5d7a50++){_0x14f3d2[_0x5161c9('0x5e8')]({'title':_0x1b2612['data'][_0x5161c9('0x25be')][_0x5d7a50][_0x5161c9('0x1d7')],'msg':_0x1b2612['data'][_0x5161c9('0x25be')][_0x5d7a50]['message']});}}else _0x14f3d2[_0x5161c9('0x5e8')]({'title':_0x1b2612[_0x5161c9('0x1b51')]?_0x5161c9('0x15d1')+_0x1b2612['status']+_0x5161c9('0x1b0b')+_0x1b2612[_0x5161c9('0x22ce')]:'SYSTEM:DELETEfaxAccount','msg':_0x1b2612[_0x5161c9('0x11fc')]?JSON[_0x5161c9('0x1be0')](_0x1b2612[_0x5161c9('0x11fc')][_0x5161c9('0x15e2')]):_0x1b2612['message']||_0x1b2612['toString']()});});}function _0x49f653(){const _0x2c5c6d=_0x369354,_0x441ca2=angular[_0x2c5c6d('0x2669')](_0x5c56b6['selectedFaxAccounts']);return _0x5c56b6[_0x2c5c6d('0x98f')]=[],_0x441ca2;}function _0x327cf7(_0x3815b2){const _0x4c812d=_0x369354,_0x3583ac=_0x1bc294[_0x4c812d('0x112e')]()[_0x4c812d('0x14e4')](_0x4c812d('0x2811'))[_0x4c812d('0x93e')](''+_0x5c56b6['selectedFaxAccounts']['length']+_0x4c812d('0xbd')+_0x4c812d('0x27c7'))[_0x4c812d('0x10bc')](_0x4c812d('0x1c81'))[_0x4c812d('0x24d0')](_0x3815b2)['ok']('OK')['cancel'](_0x4c812d('0x1d8d'));_0x1bc294[_0x4c812d('0x2fa')](_0x3583ac)['then'](function(){const _0x368f63=_0x4c812d;_0x5c56b6[_0x368f63('0x98f')][_0x368f63('0x1534')](function(_0x107fd8){_0x47bb44(_0x107fd8);}),_0x5c56b6[_0x368f63('0x98f')]=[];});}function _0x31c5ed(){const _0x21405d=_0x369354;_0x5c56b6[_0x21405d('0x98f')]=[];}function _0x13e00b(){const _0x17ead2=_0x369354;_0x5c56b6[_0x17ead2('0x98f')]=_0x5c56b6[_0x17ead2('0xe9b')][_0x17ead2('0x25df')];}}const _0x24c17b=_0x3591a5;_0x4c0027[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x134e'),_0x34e79e('0x1cc3'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x4c0027(_0x58227f,_0x3b6a74,_0x353624,_0x37e6d5,_0x4fabe8,_0xdbad4b,_0x455e07,_0xbb4017,_0x4d2958,_0x18e4eb,_0x4fab80,_0x4f6f3a,_0x2e105f,_0x2dad3e){const _0x4bb751=_0x34e79e,_0x176f73=this;_0x176f73[_0x4bb751('0x9cb')]=_0x4fab80['getCurrentUser'](),_0x176f73['errors']=[],_0x176f73[_0x4bb751('0x1af0')]=_0x2e105f,_0x176f73[_0x4bb751('0x130d')]=_0x4f6f3a,_0x176f73[_0x4bb751('0xe28')]=_0x2dad3e,_0x176f73['hasModulePermissions']={},_0x176f73[_0x4bb751('0x18ad')]=_0x176f73[_0x4bb751('0x1af0')]&&_0x176f73[_0x4bb751('0x1af0')][_0x4bb751('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x176f73['title']=_0x4bb751('0x6aa'),_0x176f73['faxQueue']=angular[_0x4bb751('0x2669')](_0x4d2958),_0x176f73[_0x4bb751('0x134e')]=_0xbb4017,_0x176f73[_0x4bb751('0x2316')]=![];!_0x176f73[_0x4bb751('0x1cc3')]&&(_0x176f73['faxQueue']={'strategy':_0x4bb751('0x1acd'),'timeout':0xa},_0x176f73[_0x4bb751('0x14e4')]=_0x4bb751('0x1e82'),_0x176f73['newFaxQueue']=!![]);_0x176f73[_0x4bb751('0x206c')]=_0x4dfd23,_0x176f73[_0x4bb751('0x5ab')]=_0xb2e51,_0x176f73['deleteFaxQueue']=_0x2f54ee,_0x176f73['getDateFromString']=_0x257287,_0x176f73[_0x4bb751('0xca7')]=_0xb8676;function _0x4dfd23(){const _0x2b0d09=_0x4bb751;_0x176f73['errors']=[],_0x18e4eb['faxQueue'][_0x2b0d09('0xbd0')](_0x176f73['faxQueue'])[_0x2b0d09('0x1714')]['then'](function(_0x47cd5b){const _0x273ba6=_0x2b0d09;_0x176f73[_0x273ba6('0x134e')][_0x273ba6('0xc51')](_0x47cd5b['toJSON']()),_0x455e07[_0x273ba6('0x173b')]({'title':_0x273ba6('0x8d'),'msg':_0x176f73[_0x273ba6('0x1cc3')][_0x273ba6('0x1a8d')]?_0x176f73[_0x273ba6('0x1cc3')][_0x273ba6('0x1a8d')]+_0x273ba6('0x1e4a'):''}),_0xb8676(_0x47cd5b);})['catch'](function(_0x2549da){const _0x3ab073=_0x2b0d09;if(_0x2549da[_0x3ab073('0x11fc')]&&_0x2549da[_0x3ab073('0x11fc')]['errors']&&_0x2549da[_0x3ab073('0x11fc')][_0x3ab073('0x25be')][_0x3ab073('0x2566')]){_0x176f73[_0x3ab073('0x25be')]=_0x2549da[_0x3ab073('0x11fc')][_0x3ab073('0x25be')]||[{'message':_0x2549da['toString'](),'type':'api.faxQueue.save'}];for(let _0x43e078=0x0;_0x43e078<_0x2549da[_0x3ab073('0x11fc')]['errors']['length'];_0x43e078+=0x1){_0x455e07[_0x3ab073('0x5e8')]({'title':_0x2549da[_0x3ab073('0x11fc')][_0x3ab073('0x25be')][_0x43e078][_0x3ab073('0x1d7')],'msg':_0x2549da[_0x3ab073('0x11fc')]['errors'][_0x43e078][_0x3ab073('0x15e2')]});}}else _0x455e07['error']({'title':_0x2549da[_0x3ab073('0x1b51')]?_0x3ab073('0x15d1')+_0x2549da[_0x3ab073('0x1b51')]+_0x3ab073('0x1b0b')+_0x2549da[_0x3ab073('0x22ce')]:_0x3ab073('0x161a'),'msg':_0x2549da['data']?JSON[_0x3ab073('0x1be0')](_0x2549da[_0x3ab073('0x11fc')][_0x3ab073('0x15e2')]):_0x2549da[_0x3ab073('0x17df')]()});});}function _0xb2e51(){const _0x2c1b89=_0x4bb751;_0x176f73[_0x2c1b89('0x25be')]=[],_0x18e4eb['faxQueue']['update']({'id':_0x176f73['faxQueue']['id']},_0x176f73[_0x2c1b89('0x1cc3')])[_0x2c1b89('0x1714')][_0x2c1b89('0x2788')](function(_0x56a436){const _0x5dfabe=_0x2c1b89,_0x3374bf=_0x283545()['find'](_0x176f73[_0x5dfabe('0x134e')],{'id':_0x56a436['id']});_0x3374bf&&_0x283545()['merge'](_0x3374bf,_0x283545()[_0x5dfabe('0x41b')](_0x56a436[_0x5dfabe('0x1cbf')](),_0x283545()[_0x5dfabe('0x2163')](_0x3374bf))),_0x455e07[_0x5dfabe('0x173b')]({'title':_0x5dfabe('0xd1a'),'msg':_0x176f73[_0x5dfabe('0x1cc3')][_0x5dfabe('0x1a8d')]?_0x176f73[_0x5dfabe('0x1cc3')]['name']+_0x5dfabe('0x24cf'):''}),_0xb8676(_0x56a436);})[_0x2c1b89('0x1cb5')](function(_0x58fe3e){const _0x34c43d=_0x2c1b89;if(_0x58fe3e[_0x34c43d('0x11fc')]&&_0x58fe3e[_0x34c43d('0x11fc')]['errors']&&_0x58fe3e['data'][_0x34c43d('0x25be')][_0x34c43d('0x2566')]){_0x176f73[_0x34c43d('0x25be')]=_0x58fe3e[_0x34c43d('0x11fc')][_0x34c43d('0x25be')]||[{'message':_0x58fe3e['toString'](),'type':_0x34c43d('0x1765')}];for(let _0x11c5da=0x0;_0x11c5da<_0x58fe3e['data'][_0x34c43d('0x25be')][_0x34c43d('0x2566')];_0x11c5da++){_0x455e07[_0x34c43d('0x5e8')]({'title':_0x58fe3e[_0x34c43d('0x11fc')]['errors'][_0x11c5da][_0x34c43d('0x1d7')],'msg':_0x58fe3e['data'][_0x34c43d('0x25be')][_0x11c5da][_0x34c43d('0x15e2')]});}}else _0x455e07[_0x34c43d('0x5e8')]({'title':_0x58fe3e[_0x34c43d('0x1b51')]?_0x34c43d('0x15d1')+_0x58fe3e[_0x34c43d('0x1b51')]+_0x34c43d('0x1b0b')+_0x58fe3e[_0x34c43d('0x22ce')]:_0x34c43d('0x1765'),'msg':_0x58fe3e[_0x34c43d('0x11fc')]?JSON[_0x34c43d('0x1be0')](_0x58fe3e['data'][_0x34c43d('0x15e2')]):_0x58fe3e[_0x34c43d('0x17df')]()});});}function _0x2f54ee(_0x156972){const _0x521c87=_0x4bb751;_0x176f73[_0x521c87('0x25be')]=[];const _0x661637=_0x37e6d5[_0x521c87('0x112e')]()['title'](_0x521c87('0x458'))[_0x521c87('0x1c98')]('The\x20faxQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x521c87('0x1f25'))['ok'](_0x521c87('0x2786'))[_0x521c87('0x1801')]('Cancel')['targetEvent'](_0x156972);_0x37e6d5[_0x521c87('0x2fa')](_0x661637)[_0x521c87('0x2788')](function(){const _0xfdbaf2=_0x521c87;_0x18e4eb['faxQueue'][_0xfdbaf2('0x17c4')]({'id':_0x176f73[_0xfdbaf2('0x1cc3')]['id']})['$promise'][_0xfdbaf2('0x2788')](function(){const _0x18cf17=_0xfdbaf2;_0x283545()[_0x18cf17('0x1a90')](_0x176f73[_0x18cf17('0x134e')],{'id':_0x176f73[_0x18cf17('0x1cc3')]['id']}),_0x455e07[_0x18cf17('0x173b')]({'title':'FaxQueue\x20properly\x20deleted!','msg':(_0x176f73[_0x18cf17('0x1cc3')]['name']||'faxQueue')+_0x18cf17('0x14d4')}),_0xb8676(_0x176f73[_0x18cf17('0x1cc3')]);})[_0xfdbaf2('0x1cb5')](function(_0x26a88f){const _0x145455=_0xfdbaf2;if(_0x26a88f[_0x145455('0x11fc')]&&_0x26a88f[_0x145455('0x11fc')][_0x145455('0x25be')]&&_0x26a88f[_0x145455('0x11fc')]['errors'][_0x145455('0x2566')]){_0x176f73[_0x145455('0x25be')]=_0x26a88f[_0x145455('0x11fc')][_0x145455('0x25be')]||[{'message':_0x26a88f[_0x145455('0x17df')](),'type':_0x145455('0x16cd')}];for(let _0x4ca73c=0x0;_0x4ca73c<_0x26a88f[_0x145455('0x11fc')][_0x145455('0x25be')][_0x145455('0x2566')];_0x4ca73c++){_0x455e07[_0x145455('0x5e8')]({'title':_0x26a88f[_0x145455('0x11fc')][_0x145455('0x25be')][_0x4ca73c]['type'],'msg':_0x26a88f[_0x145455('0x11fc')][_0x145455('0x25be')][_0x4ca73c][_0x145455('0x15e2')]});}}else _0x455e07['error']({'title':_0x26a88f[_0x145455('0x1b51')]?_0x145455('0x15d1')+_0x26a88f[_0x145455('0x1b51')]+_0x145455('0x1b0b')+_0x26a88f[_0x145455('0x22ce')]:_0x145455('0x16cd'),'msg':_0x26a88f['data']?JSON[_0x145455('0x1be0')](_0x26a88f[_0x145455('0x11fc')][_0x145455('0x15e2')]):_0x26a88f[_0x145455('0x15e2')]||_0x26a88f['toString']()});});},function(){});}function _0x257287(_0x1432e4){return _0x1432e4===null?undefined:new Date(_0x1432e4);}function _0xb8676(_0x4e9bc8){const _0x3e0ba5=_0x4bb751;_0x37e6d5[_0x3e0ba5('0x19d')](_0x4e9bc8);}}const _0xe9e055=_0x4c0027;_0x106587[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),'faxQueue',_0x34e79e('0x134e'),_0x34e79e('0x548'),'$translate',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x106587(_0x1c35c2,_0x300316,_0x101d39,_0x3fe97c,_0x3c3646,_0x4fa567,_0x258130,_0x30df98,_0xc26957,_0x88a719){const _0x693512=_0x34e79e,_0x1655e8=this;_0x1655e8[_0x693512('0x9cb')]=_0xc26957[_0x693512('0x24cc')](),_0x1655e8[_0x693512('0x1cc3')]=_0x3c3646,_0x1655e8[_0x693512('0xe28')]=_0x88a719,_0x1655e8[_0x693512('0x548')]=_0x258130,_0x1655e8['items']=[],_0x1655e8['allowedItems']=[],_0x1655e8['selectedItems']=[],_0x1655e8[_0x693512('0x12d9')]=[],_0x1655e8[_0x693512('0xd0d')]=[],_0x1655e8['pendingChanges']=![],_0x1655e8[_0x693512('0x122e')]=_0x14a496,_0x1655e8[_0x693512('0x1f8d')]=_0x1c133f,_0x1655e8[_0x693512('0xca7')]=_0x3d5e82,_0x1655e8['dualMultiselectOptions']={'readOnly':!_0x1655e8['crudPermissions'][_0x693512('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x693512('0x1a8d'),_0x693512('0x2838')],'line3':'','labelAll':_0x30df98[_0x693512('0x1b11')]('FAX.ALL_AGENTS'),'labelSelected':_0x30df98[_0x693512('0x1b11')](_0x693512('0xd91')),'transferCallback':function(){const _0xf491bd=_0x693512,_0x5a6b71=_0x283545()[_0xf491bd('0x12d1')](_0x1655e8[_0xf491bd('0xd0d')],_0x1655e8[_0xf491bd('0x283f')],'id');_0x1655e8['pendingChanges']=_0x283545()[_0xf491bd('0x213d')](_0x5a6b71)?![]:!![];}};function _0x14a496(){const _0x574203=_0x693512;return _0xc26957[_0x574203('0x1516')](_0x574203('0xe23'))?_0x572b1f()[_0x574203('0x1cb5')](function(_0xf8f5d9){const _0x35a09d=_0x574203;_0x101d39[_0x35a09d('0x5e8')]({'title':_0xf8f5d9[_0x35a09d('0x1b51')]?_0x35a09d('0x15d1')+_0xf8f5d9['status']+_0x35a09d('0x1b0b')+_0xf8f5d9[_0x35a09d('0x22ce')]:_0x35a09d('0xd90'),'msg':_0xf8f5d9[_0x35a09d('0x1b51')]?JSON[_0x35a09d('0x1be0')](_0xf8f5d9[_0x35a09d('0x11fc')]):_0xf8f5d9[_0x35a09d('0x17df')]()});}):_0x288b0a()[_0x574203('0x2788')](function(_0x586496){const _0x8fd07d=_0x574203;return _0x1655e8[_0x8fd07d('0xb13')]=_0x586496,_0x572b1f();})[_0x574203('0x1cb5')](function(_0x25353b){const _0x2f98b2=_0x574203;_0x101d39['error']({'title':_0x25353b[_0x2f98b2('0x1b51')]?_0x2f98b2('0x15d1')+_0x25353b[_0x2f98b2('0x1b51')]+_0x2f98b2('0x1b0b')+_0x25353b[_0x2f98b2('0x22ce')]:_0x2f98b2('0xd90'),'msg':_0x25353b['status']?JSON['stringify'](_0x25353b[_0x2f98b2('0x11fc')]):_0x25353b[_0x2f98b2('0x17df')]()});});}function _0x288b0a(){return _0x300316(function(_0x4ab658,_0x3449c1){const _0xec8e9e=a0_0x14e7;_0x3fe97c[_0xec8e9e('0xec9')]['get']({'userProfileId':_0x1655e8['currentUser'][_0xec8e9e('0x237f')],'name':_0xec8e9e('0x1f72')})[_0xec8e9e('0x1714')][_0xec8e9e('0x2788')](function(_0x34d873){const _0x9df4e0=_0xec8e9e,_0x161e9b=_0x34d873&&_0x34d873[_0x9df4e0('0x25df')]?_0x34d873['rows'][0x0]:null;_0x4ab658(_0x161e9b);})[_0xec8e9e('0x1cb5')](function(_0x1e9d77){_0x3449c1(_0x1e9d77);});});}function _0x572b1f(){return _0x300316(function(_0x3bf117,_0x9fc096){const _0x40e430=a0_0x14e7;return _0x5ea568()[_0x40e430('0x2788')](function(_0x50af83){const _0x52838f=_0x40e430;return _0x1655e8[_0x52838f('0x117b')]=_0x50af83[_0x52838f('0x25df')]?_0x50af83['rows']:[],_0xc26957[_0x52838f('0x1516')](_0x52838f('0xe23'))?_0x50af83:_0x1655e8['section']?_0x1655e8[_0x52838f('0xb13')][_0x52838f('0x1c0a')]?_0x50af83:_0x1994b6():null;})[_0x40e430('0x2788')](function(_0x283c27){const _0x262aa4=_0x40e430,_0x2e9b0a=_0x283c27&&_0x283c27[_0x262aa4('0x25df')]?_0x283c27[_0x262aa4('0x25df')]:[];return _0x1655e8[_0x262aa4('0x73d')]=_0x283545()[_0x262aa4('0x155d')](_0x2e9b0a,function(_0x486303){const _0x571eaa=_0x262aa4;return _0x283545()[_0x571eaa('0x20e8')](_0x1655e8[_0x571eaa('0x117b')],{'id':_0xc26957[_0x571eaa('0x1516')](_0x571eaa('0xe23'))||_0x1655e8[_0x571eaa('0xb13')]['autoAssociation']?_0x486303['id']:_0x486303[_0x571eaa('0x2707')]});}),_0x1655e8[_0x262aa4('0x12d9')]=angular[_0x262aa4('0x2669')](_0x1655e8[_0x262aa4('0x73d')]),_0x1655e8['items']['forEach'](function(_0x2ef4f0){const _0xe76b1e=_0x262aa4,_0x401bcb=_0x283545()[_0xe76b1e('0x20e8')](_0x1655e8[_0xe76b1e('0x73d')],{'id':_0x2ef4f0['id']});_0xc26957[_0xe76b1e('0x1516')]('admin')?_0x2ef4f0['isValid']=!![]:_0x2ef4f0[_0xe76b1e('0x68d')]=typeof _0x401bcb!==_0xe76b1e('0xedb')?!![]:![];}),_0x49c850();})[_0x40e430('0x2788')](function(_0x418a07){const _0x1e855e=_0x40e430,_0x43c0ba=_0x418a07&&_0x418a07[_0x1e855e('0x25df')]?_0x418a07[_0x1e855e('0x25df')]:[];_0x1655e8[_0x1e855e('0x283f')]=_0x283545()[_0x1e855e('0x155d')](_0x43c0ba,function(_0x3a8d22){const _0x44ddf7=_0x1e855e,_0x20d114=_0x283545()[_0x44ddf7('0x20e8')](_0x1655e8[_0x44ddf7('0x117b')],{'id':_0x3a8d22['id']});return _0x20d114[_0x44ddf7('0x1ab')]=_0x3a8d22[_0x44ddf7('0x1158')]?_0x44ddf7('0x1b9d')+_0x3a8d22[_0x44ddf7('0x1158')][_0x44ddf7('0x1ab')]:'',_0x20d114[_0x44ddf7('0x2838')]=typeof _0x3a8d22['internal']!=='undefined'?'<'+_0x3a8d22[_0x44ddf7('0x2838')]+'>':'',_0x20d114;}),_0x1655e8[_0x1e855e('0xd0d')]=angular[_0x1e855e('0x2669')](_0x1655e8['selectedItems']),_0x1655e8[_0x1e855e('0x121')][_0x1e855e('0x283f')]=_0x1655e8[_0x1e855e('0x283f')],_0x1655e8[_0x1e855e('0x121')][_0x1e855e('0x117b')]=_0x283545()[_0x1e855e('0x432')](_0x1655e8[_0x1e855e('0x73d')],_0x1655e8[_0x1e855e('0x121')][_0x1e855e('0x283f')],'id'),_0x3bf117();})['catch'](function(_0x547d48){_0x9fc096(_0x547d48);});});}function _0x1994b6(){return _0x300316(function(_0x58cb49,_0x3a3aff){const _0x197fd7=a0_0x14e7;return _0x3fe97c[_0x197fd7('0x1050')][_0x197fd7('0x1335')]({'sectionId':_0x1655e8['section']['id'],'nolimit':!![]})['$promise'][_0x197fd7('0x2788')](function(_0x5d3863){_0x58cb49(_0x5d3863);})['catch'](function(_0x4a6176){_0x3a3aff(_0x4a6176);});});}function _0x49c850(){return _0x300316(function(_0x9617e4,_0x2412cf){const _0x301e25=a0_0x14e7;return _0x3fe97c[_0x301e25('0x1cc3')][_0x301e25('0x19db')]({'id':_0x1655e8[_0x301e25('0x1cc3')]['id'],'fields':_0x301e25('0x1d32'),'nolimit':!![],'role':_0x301e25('0x188b')})[_0x301e25('0x1714')]['then'](function(_0x136eba){_0x9617e4(_0x136eba);})[_0x301e25('0x1cb5')](function(_0x23631c){_0x2412cf(_0x23631c);});});}function _0x5ea568(){return _0x300316(function(_0x1e6178,_0x18f623){const _0x3558f0=a0_0x14e7;return _0x3fe97c[_0x3558f0('0x1e6a')][_0x3558f0('0x1335')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3558f0('0x188b')})[_0x3558f0('0x1714')][_0x3558f0('0x2788')](function(_0x26fd86){_0x1e6178(_0x26fd86);})[_0x3558f0('0x1cb5')](function(_0x3f7647){_0x18f623(_0x3f7647);});});}function _0x51b489(_0x19f0f0){return _0x300316(function(_0x431c00,_0x2faea4){const _0x27998b=a0_0x14e7;_0x283545()[_0x27998b('0x213d')](_0x19f0f0)?_0x431c00():_0x3fe97c[_0x27998b('0x1cc3')][_0x27998b('0x588')]({'id':_0x1655e8[_0x27998b('0x1cc3')]['id'],'ids':_0x283545()[_0x27998b('0x155d')](_0x19f0f0,'id')})[_0x27998b('0x1714')][_0x27998b('0x2788')](function(){_0x431c00();})[_0x27998b('0x1cb5')](function(_0x1f555d){_0x2faea4(_0x1f555d);});});}function _0x253265(_0x5d77f2){return _0x300316(function(_0x569ab2,_0xee2d57){const _0x4d0930=a0_0x14e7;_0x283545()['isEmpty'](_0x5d77f2)?_0x569ab2():_0x3fe97c[_0x4d0930('0x1cc3')][_0x4d0930('0x1d72')]({'id':_0x1655e8[_0x4d0930('0x1cc3')]['id'],'ids':_0x283545()[_0x4d0930('0x155d')](_0x5d77f2,'id')})[_0x4d0930('0x1714')][_0x4d0930('0x2788')](function(){_0x569ab2();})[_0x4d0930('0x1cb5')](function(_0x5998d5){_0xee2d57(_0x5998d5);});});}function _0x1c133f(){const _0x2011a4=_0x693512,_0x2118d6=_0x283545()['differenceBy'](_0x1655e8[_0x2011a4('0xd0d')],_0x1655e8['selectedItems'],'id'),_0x43f45e=_0x283545()[_0x2011a4('0x432')](_0x1655e8[_0x2011a4('0x283f')],_0x1655e8[_0x2011a4('0xd0d')],'id');return _0x253265(_0x2118d6)[_0x2011a4('0x2788')](function(){return _0x51b489(_0x43f45e);})[_0x2011a4('0x2788')](function(){const _0x36cfa8=_0x2011a4;_0x1655e8[_0x36cfa8('0x2677')]=![],_0x1655e8[_0x36cfa8('0x12d9')]=angular[_0x36cfa8('0x2669')](_0x1655e8['allowedItems']),_0x1655e8[_0x36cfa8('0xd0d')]=angular[_0x36cfa8('0x2669')](_0x1655e8[_0x36cfa8('0x283f')]),_0x101d39['success']({'title':_0x36cfa8('0x10c8'),'msg':_0x36cfa8('0x1984')});})[_0x2011a4('0x1cb5')](function(_0x221827){const _0xabd346=_0x2011a4;_0x101d39['error']({'title':_0x221827['status']?_0xabd346('0x15d1')+_0x221827[_0xabd346('0x1b51')]+_0xabd346('0x1b0b')+_0x221827[_0xabd346('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x221827['status']?JSON[_0xabd346('0x1be0')](_0x221827[_0xabd346('0x11fc')]):_0x221827[_0xabd346('0x17df')]()});});}function _0x3d5e82(){_0x1c35c2['hide']();}}const _0x365c8d=_0x106587;_0x5aefc0[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x519'),_0x34e79e('0x1cc3'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x5aefc0(_0x4353ef,_0x38e585,_0x1b3c7c,_0x42f2df,_0x4e63a5,_0x10224d,_0x41f257,_0x4b04a3){const _0x5c6e22=_0x34e79e,_0x17deb2=this;_0x17deb2[_0x5c6e22('0x9cb')]=_0x41f257[_0x5c6e22('0x24cc')](),_0x17deb2['faxQueue']=_0x4e63a5,_0x17deb2[_0x5c6e22('0xe28')]=_0x4b04a3,_0x17deb2['items']=[],_0x17deb2['allowedItems']=[],_0x17deb2[_0x5c6e22('0x283f')]=[],_0x17deb2[_0x5c6e22('0x12d9')]=[],_0x17deb2[_0x5c6e22('0xd0d')]=[],_0x17deb2[_0x5c6e22('0x2677')]=![],_0x17deb2[_0x5c6e22('0x121')]={'readOnly':!_0x17deb2['crudPermissions']['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5c6e22('0x1a8d'),'line1':_0x5c6e22('0x1a8d'),'line2':'','line3':'','labelAll':_0x10224d['instant']('FAX.ALL_TEAMS'),'labelSelected':_0x10224d['instant'](_0x5c6e22('0xad5')),'transferCallback':function(){const _0x3250d7=_0x5c6e22,_0x2d3807=_0x283545()['xorBy'](_0x17deb2['startingSelectedItems'],_0x17deb2[_0x3250d7('0x283f')],'id');_0x17deb2[_0x3250d7('0x2677')]=_0x283545()[_0x3250d7('0x213d')](_0x2d3807)?![]:!![];}},_0x17deb2[_0x5c6e22('0x122e')]=_0x984084,_0x17deb2[_0x5c6e22('0x1a27')]=_0x16dd57,_0x17deb2[_0x5c6e22('0xca7')]=_0x370e4c;function _0x984084(){const _0x5d6881=_0x5c6e22;return _0x41f257[_0x5d6881('0x1516')](_0x5d6881('0xe23'))?_0x2a1f91()[_0x5d6881('0x1cb5')](function(_0x3e4003){const _0x57a965=_0x5d6881;_0x1b3c7c[_0x57a965('0x5e8')]({'title':_0x3e4003[_0x57a965('0x1b51')]?_0x57a965('0x15d1')+_0x3e4003[_0x57a965('0x1b51')]+_0x57a965('0x1b0b')+_0x3e4003[_0x57a965('0x22ce')]:_0x57a965('0x556'),'msg':_0x3e4003[_0x57a965('0x1b51')]?JSON['stringify'](_0x3e4003['data']):_0x3e4003[_0x57a965('0x17df')]()});}):_0x59cfe8()[_0x5d6881('0x2788')](function(_0x38be9a){const _0x266903=_0x5d6881;return _0x17deb2[_0x266903('0xb13')]=_0x38be9a,_0x2a1f91();})[_0x5d6881('0x1cb5')](function(_0x556030){const _0x2cc558=_0x5d6881;_0x1b3c7c[_0x2cc558('0x5e8')]({'title':_0x556030[_0x2cc558('0x1b51')]?_0x2cc558('0x15d1')+_0x556030[_0x2cc558('0x1b51')]+_0x2cc558('0x1b0b')+_0x556030[_0x2cc558('0x22ce')]:'SYSTEM:GET_TEAMS','msg':_0x556030[_0x2cc558('0x1b51')]?JSON[_0x2cc558('0x1be0')](_0x556030['data']):_0x556030['toString']()});});}function _0x59cfe8(){return _0x38e585(function(_0x540942,_0x3c19be){const _0x2bf150=a0_0x14e7;_0x42f2df[_0x2bf150('0xec9')]['get']({'userProfileId':_0x17deb2[_0x2bf150('0x9cb')][_0x2bf150('0x237f')],'name':_0x2bf150('0x23e9')})[_0x2bf150('0x1714')][_0x2bf150('0x2788')](function(_0x2c4e5a){const _0x110489=_0x2bf150,_0x40490b=_0x2c4e5a&&_0x2c4e5a[_0x110489('0x25df')]?_0x2c4e5a['rows'][0x0]:null;_0x540942(_0x40490b);})[_0x2bf150('0x1cb5')](function(_0x4b1a0b){_0x3c19be(_0x4b1a0b);});});}function _0x2a1f91(){return _0x38e585(function(_0x54f2ba,_0x24ffdf){const _0x5a7f95=a0_0x14e7;return _0x14a6fe()['then'](function(_0x6a568e){const _0xbf5379=a0_0x14e7;return _0x17deb2[_0xbf5379('0x117b')]=_0x6a568e[_0xbf5379('0x25df')]?_0x6a568e[_0xbf5379('0x25df')]:[],_0x41f257[_0xbf5379('0x1516')](_0xbf5379('0xe23'))?_0x6a568e:_0x17deb2['section']?_0x17deb2[_0xbf5379('0xb13')][_0xbf5379('0x1c0a')]?_0x6a568e:_0x57afe2():null;})[_0x5a7f95('0x2788')](function(_0x4833c9){const _0x115aec=_0x5a7f95,_0x36d017=_0x4833c9&&_0x4833c9[_0x115aec('0x25df')]?_0x4833c9[_0x115aec('0x25df')]:[];return _0x17deb2[_0x115aec('0x73d')]=_0x283545()['map'](_0x36d017,function(_0x136682){const _0x31118f=_0x115aec;return _0x283545()[_0x31118f('0x20e8')](_0x17deb2[_0x31118f('0x117b')],{'id':_0x41f257['hasRole'](_0x31118f('0xe23'))||_0x17deb2['section'][_0x31118f('0x1c0a')]?_0x136682['id']:_0x136682['resourceId']});}),_0x17deb2[_0x115aec('0x117b')][_0x115aec('0x1534')](function(_0x343bad){const _0x438871=_0x115aec,_0xf0ad2c=_0x283545()[_0x438871('0x20e8')](_0x17deb2[_0x438871('0x73d')],{'id':_0x343bad['id']});_0x41f257[_0x438871('0x1516')](_0x438871('0xe23'))?_0x343bad[_0x438871('0x68d')]=!![]:_0x343bad[_0x438871('0x68d')]=typeof _0xf0ad2c!==_0x438871('0xedb')?!![]:![];}),_0x285aa7();})[_0x5a7f95('0x2788')](function(_0x51fbaa){const _0xd47507=_0x5a7f95,_0xe49e45=_0x51fbaa&&_0x51fbaa[_0xd47507('0x25df')]?_0x51fbaa[_0xd47507('0x25df')]:[];_0x17deb2[_0xd47507('0x283f')]=_0x283545()[_0xd47507('0x155d')](_0xe49e45,function(_0x5c3efa){const _0x5dde42=_0xd47507;return _0x283545()[_0x5dde42('0x20e8')](_0x17deb2[_0x5dde42('0x117b')],{'id':_0x5c3efa['id']});}),_0x17deb2['startingSelectedItems']=angular[_0xd47507('0x2669')](_0x17deb2[_0xd47507('0x283f')]),_0x17deb2[_0xd47507('0x121')][_0xd47507('0x283f')]=_0x17deb2[_0xd47507('0x283f')],_0x17deb2[_0xd47507('0x121')]['items']=_0x283545()[_0xd47507('0x432')](_0x17deb2[_0xd47507('0x73d')],_0x17deb2[_0xd47507('0x121')]['selectedItems'],'id'),_0x54f2ba();})['catch'](function(_0x2e984a){_0x24ffdf(_0x2e984a);});});}function _0x57afe2(){return _0x38e585(function(_0x542330,_0x41595d){const _0x3dc75d=a0_0x14e7;return _0x42f2df[_0x3dc75d('0x1050')][_0x3dc75d('0x1335')]({'sectionId':_0x17deb2[_0x3dc75d('0xb13')]['id'],'nolimit':!![]})[_0x3dc75d('0x1714')]['then'](function(_0x272df1){_0x542330(_0x272df1);})[_0x3dc75d('0x1cb5')](function(_0x480b22){_0x41595d(_0x480b22);});});}function _0x285aa7(){return _0x38e585(function(_0x4dd929,_0x71147d){const _0x496263=a0_0x14e7;return _0x42f2df['faxQueue'][_0x496263('0x1435')]({'id':_0x17deb2[_0x496263('0x1cc3')]['id'],'fields':_0x496263('0x1338'),'nolimit':!![]})[_0x496263('0x1714')]['then'](function(_0x1ba7f5){_0x4dd929(_0x1ba7f5);})['catch'](function(_0x2d9eb9){_0x71147d(_0x2d9eb9);});});}function _0x14a6fe(){return _0x38e585(function(_0x15f93c,_0x1af950){const _0x191098=a0_0x14e7;return _0x42f2df[_0x191098('0x421')][_0x191098('0x1335')]({'fields':_0x191098('0x1338'),'nolimit':!![]})[_0x191098('0x1714')][_0x191098('0x2788')](function(_0xc3a02f){_0x15f93c(_0xc3a02f);})[_0x191098('0x1cb5')](function(_0x4dd7c2){_0x1af950(_0x4dd7c2);});});}function _0x486d94(_0x4c8a2e){return _0x38e585(function(_0x16c737,_0x1733d2){const _0x3a93f3=a0_0x14e7;_0x283545()[_0x3a93f3('0x213d')](_0x4c8a2e)?_0x16c737():_0x42f2df[_0x3a93f3('0x1cc3')][_0x3a93f3('0x3bd')]({'id':_0x17deb2[_0x3a93f3('0x1cc3')]['id'],'ids':_0x283545()['map'](_0x4c8a2e,'id')})[_0x3a93f3('0x1714')][_0x3a93f3('0x2788')](function(){_0x16c737();})['catch'](function(_0x1882c6){_0x1733d2(_0x1882c6);});});}function _0x1f49c5(_0x430c71){return _0x38e585(function(_0x413d01,_0x5cf23f){const _0x588a90=a0_0x14e7;_0x283545()[_0x588a90('0x213d')](_0x430c71)?_0x413d01():_0x42f2df[_0x588a90('0x1cc3')]['removeTeams']({'id':_0x17deb2[_0x588a90('0x1cc3')]['id'],'ids':_0x283545()[_0x588a90('0x155d')](_0x430c71,'id')})[_0x588a90('0x1714')]['then'](function(){_0x413d01();})[_0x588a90('0x1cb5')](function(_0x1b0b58){_0x5cf23f(_0x1b0b58);});});}function _0x16dd57(){const _0x145c85=_0x5c6e22,_0x52212c=_0x283545()['differenceBy'](_0x17deb2[_0x145c85('0xd0d')],_0x17deb2[_0x145c85('0x283f')],'id'),_0x14344d=_0x283545()[_0x145c85('0x432')](_0x17deb2[_0x145c85('0x283f')],_0x17deb2[_0x145c85('0xd0d')],'id');return _0x1f49c5(_0x52212c)[_0x145c85('0x2788')](function(){return _0x486d94(_0x14344d);})[_0x145c85('0x2788')](function(){const _0x2ae757=_0x145c85;_0x17deb2[_0x2ae757('0x2677')]=![],_0x17deb2[_0x2ae757('0x12d9')]=angular[_0x2ae757('0x2669')](_0x17deb2[_0x2ae757('0x73d')]),_0x17deb2[_0x2ae757('0xd0d')]=angular[_0x2ae757('0x2669')](_0x17deb2['selectedItems']),_0x1b3c7c[_0x2ae757('0x173b')]({'title':'SUCCESS','msg':_0x2ae757('0x7f3')});})[_0x145c85('0x1cb5')](function(_0x3b6dc0){const _0x107f61=_0x145c85;_0x1b3c7c[_0x107f61('0x5e8')]({'title':_0x3b6dc0[_0x107f61('0x1b51')]?_0x107f61('0x15d1')+_0x3b6dc0[_0x107f61('0x1b51')]+_0x107f61('0x1b0b')+_0x3b6dc0[_0x107f61('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3b6dc0[_0x107f61('0x1b51')]?JSON[_0x107f61('0x1be0')](_0x3b6dc0[_0x107f61('0x11fc')]):_0x3b6dc0[_0x107f61('0x17df')]()});});}function _0x370e4c(){const _0x34fd34=_0x5c6e22;_0x4353ef[_0x34fd34('0x19d')]();}}const _0x221df6=_0x5aefc0,_0x4695f9=_0x18dd13['p']+_0x34e79e('0x1e04');_0xf99706[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x1cc3'),'userProfileSection'];function _0xf99706(_0x96e637,_0x457014,_0x4fe490,_0x50985b,_0x30d4af,_0x18c042,_0x1a73b9,_0x5e1be3,_0x2f4b16,_0x1e217b,_0x5c58a0,_0x56e6e1){const _0x1b0e6b=_0x34e79e,_0x4c53e6=this;_0x4c53e6[_0x1b0e6b('0x9cb')]=_0x1e217b['getCurrentUser'](),_0x4c53e6[_0x1b0e6b('0x130d')]=_0x18c042,_0x4c53e6['setting']=_0x1a73b9,_0x4c53e6[_0x1b0e6b('0x18ad')]=_0x4c53e6[_0x1b0e6b('0x1af0')][_0x1b0e6b('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c53e6['location']=_0x457014[_0x1b0e6b('0x170c')]()+_0x1b0e6b('0x726')+_0x457014[_0x1b0e6b('0x1c6a')](),_0x4c53e6[_0x1b0e6b('0x1cc3')]=_0x5c58a0||_0x96e637[_0x1b0e6b('0x4b9')][_0x1b0e6b('0x1cc3')]||{},_0x4c53e6[_0x1b0e6b('0xec9')]=_0x56e6e1&&_0x56e6e1['count']==0x1?_0x56e6e1['rows'][0x0]:null,_0x4c53e6[_0x1b0e6b('0xe28')]=_0x1e217b[_0x1b0e6b('0x157e')](_0x4c53e6[_0x1b0e6b('0xec9')]?_0x4c53e6[_0x1b0e6b('0xec9')][_0x1b0e6b('0xe28')]:null),_0x4c53e6['hasModulePermissions']={},_0x4c53e6[_0x1b0e6b('0xcb3')]=_0x96e637[_0x1b0e6b('0x4b9')]['tab']||0x0,_0x4c53e6['teamadddialog']=_0x108c15,_0x4c53e6[_0x1b0e6b('0x1113')]=_0x4c2504,_0x4c53e6[_0x1b0e6b('0x204f')]=_0x2f4b16[_0x1b0e6b('0x2276')],_0x4c53e6[_0x1b0e6b('0x1a60')]=_0x117689,_0x4c53e6['saveFaxQueue']=_0x1e1fb6;function _0x108c15(_0xe38b6e,_0x45d064){const _0x5a76be=_0x1b0e6b;_0x4fe490[_0x5a76be('0x2fa')]({'controller':_0x5a76be('0x2600'),'controllerAs':'vm','templateUrl':_0x4695f9,'parent':angular[_0x5a76be('0x16b1')](_0x50985b['body']),'targetEvent':_0x45d064,'clickOutsideToClose':!![],'locals':{'faxQueue':_0xe38b6e,'faxQueues':_0x4c53e6[_0x5a76be('0x134e')]?_0x4c53e6[_0x5a76be('0x134e')]['rows']:[],'crudPermissions':_0x4c53e6['crudPermissions']}});}function _0x4c2504(_0x48a7d3,_0x16083c){const _0x34afda=_0x1b0e6b;_0x4fe490[_0x34afda('0x2fa')]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x534cb3,'parent':angular[_0x34afda('0x16b1')](_0x50985b['body']),'targetEvent':_0x16083c,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x48a7d3,'faxQueues':_0x4c53e6[_0x34afda('0x134e')]?_0x4c53e6[_0x34afda('0x134e')][_0x34afda('0x25df')]:[],'crudPermissions':_0x4c53e6['crudPermissions'],'realtime':![]}});}function _0x117689(){const _0xd0a77e=_0x1b0e6b;_0x96e637['go']('app.fax.faxQueues',{},{'reload':_0xd0a77e('0x496')});}function _0x1e1fb6(){const _0x542cb5=_0x1b0e6b;_0x5e1be3[_0x542cb5('0x1cc3')][_0x542cb5('0x2740')]({'id':_0x4c53e6[_0x542cb5('0x1cc3')]['id']},_0x4c53e6[_0x542cb5('0x1cc3')])[_0x542cb5('0x1714')]['then'](function(){const _0x330f08=_0x542cb5;_0x2f4b16[_0x330f08('0x173b')]({'title':_0x330f08('0x2343'),'msg':_0x4c53e6['faxQueue'][_0x330f08('0x1a8d')]?_0x4c53e6['faxQueue'][_0x330f08('0x1a8d')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x385a00){const _0x26f7db=_0x542cb5;_0x2f4b16[_0x26f7db('0x5e8')]({'title':_0x385a00[_0x26f7db('0x1b51')]?_0x26f7db('0x15d1')+_0x385a00[_0x26f7db('0x1b51')]+_0x26f7db('0x1b0b')+_0x385a00[_0x26f7db('0x22ce')]:'SYSTEM:GETfaxQueue','msg':_0x385a00['data']?JSON[_0x26f7db('0x1be0')](_0x385a00[_0x26f7db('0x11fc')]):_0x385a00[_0x26f7db('0x17df')]()});});}}const _0x1c9723=_0xf99706;_0x3d07d6['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav','$mdDialog','$document','$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x134e'),'userProfile',_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x3d07d6(_0x339f3d,_0x8f74be,_0x1e0f17,_0x5c478d,_0x9255cc,_0xc82be8,_0x45602e,_0x2f07b8,_0x2b4a01,_0x49f29e,_0xc6e793,_0x129864,_0x589c03,_0x589fc6,_0x13d8a7,_0x1cc693,_0x4de922){const _0x493aa4=_0x34e79e,_0x1df095=this;_0x1df095[_0x493aa4('0x130d')]=_0x1cc693,_0x1df095[_0x493aa4('0x1af0')]=_0x4de922,_0x1df095['currentUser']=_0x13d8a7[_0x493aa4('0x24cc')](),_0x1df095[_0x493aa4('0x134e')]=_0x2b4a01||{'count':0x0,'rows':[]},_0x1df095[_0x493aa4('0x63c')]=_0x49f29e,_0x1df095[_0x493aa4('0xec9')]=_0xc6e793&&_0xc6e793[_0x493aa4('0x338')]==0x1?_0xc6e793[_0x493aa4('0x25df')][0x0]:null,_0x1df095[_0x493aa4('0xe28')]=_0x13d8a7[_0x493aa4('0x157e')](_0x1df095[_0x493aa4('0xec9')]?_0x1df095[_0x493aa4('0xec9')][_0x493aa4('0xe28')]:null),_0x1df095[_0x493aa4('0x26a9')]=_0x493aa4('0x134e'),_0x1df095['listOrder']='',_0x1df095['listOrderAsc']=null,_0x1df095['selectedFaxQueues']=[],_0x1df095[_0x493aa4('0x135a')]={'fields':_0x493aa4('0x1a03'),'sort':'-updatedAt','channel':_0x493aa4('0x10cf'),'limit':0xa,'page':0x1},_0x1df095[_0x493aa4('0x7b8')]=_0x283545()['keyBy']([{'option':_0x493aa4('0x152c'),'value':_0x493aa4('0x11e4')},{'option':_0x493aa4('0x37a'),'value':_0x493aa4('0x228e')}],function(_0x18503b){return _0x283545()['replace'](_0x18503b['value'],new RegExp('\x27','g'),'');}),_0x1df095[_0x493aa4('0x1f7e')]=_0x3a194f,_0x1df095[_0x493aa4('0xde3')]=_0x51ae0a,_0x1df095[_0x493aa4('0x1113')]=_0x39c04,_0x1df095[_0x493aa4('0x1e5')]=_0x5765ae,_0x1df095[_0x493aa4('0x8d1')]=_0x549e00,_0x1df095[_0x493aa4('0x173b')]=_0x32a60f,_0x1df095['getFaxQueues']=_0x3288bd,_0x1df095[_0x493aa4('0x1675')]=_0x17045d,_0x1df095['deleteFaxQueue']=_0x2793d1,_0x1df095['exportSelectedFaxQueues']=_0x38329b,_0x1df095[_0x493aa4('0x17ba')]=_0x53f6c1,_0x1df095[_0x493aa4('0x243c')]=_0x3eb117,_0x1df095[_0x493aa4('0xe0d')]=_0x3876e6;function _0x3a194f(_0x5746da){const _0x190ce3=_0x493aa4;_0x1e0f17['go']('app.fax.faxQueues.edit',{'id':_0x5746da['id'],'faxQueue':_0x5746da,'crudPermissions':_0x1df095[_0x190ce3('0xe28')]});}function _0x51ae0a(_0x15f58e,_0x52b6a7){const _0x308fb8=_0x493aa4;_0x9255cc['show']({'controller':_0x308fb8('0x2600'),'controllerAs':'vm','templateUrl':_0x4695f9,'parent':angular[_0x308fb8('0x16b1')](_0xc82be8[_0x308fb8('0x945')]),'targetEvent':_0x52b6a7,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x15f58e,'faxQueues':_0x1df095[_0x308fb8('0x134e')]?_0x1df095[_0x308fb8('0x134e')]['rows']:[],'crudPermissions':_0x1df095['crudPermissions']}});}function _0x39c04(_0x3a4366,_0x2a912d){const _0x328bd3=_0x493aa4;_0x9255cc[_0x328bd3('0x2fa')]({'controller':_0x328bd3('0xfd1'),'controllerAs':'vm','templateUrl':_0x534cb3,'parent':angular[_0x328bd3('0x16b1')](_0xc82be8[_0x328bd3('0x945')]),'targetEvent':_0x2a912d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3a4366,'faxQueues':_0x1df095[_0x328bd3('0x134e')]?_0x1df095[_0x328bd3('0x134e')][_0x328bd3('0x25df')]:[],'crudPermissions':_0x1df095[_0x328bd3('0xe28')],'realtime':![]}});}function _0x5765ae(_0x58f718,_0x2650e5){const _0x59a202=_0x493aa4,_0x1ad06d=_0x9255cc[_0x59a202('0x112e')]()[_0x59a202('0x14e4')](_0x59a202('0x2114')+_0x283545()['startCase']('faxQueue')+'?')[_0x59a202('0x93e')](_0x59a202('0x1670')+(_0x58f718['name']||_0x59a202('0x1cc3'))+_0x59a202('0x229e')+_0x59a202('0x27c7'))[_0x59a202('0x10bc')](_0x59a202('0x1afd'))[_0x59a202('0x24d0')](_0x2650e5)['ok']('OK')['cancel']('CANCEL');_0x9255cc['show'](_0x1ad06d)[_0x59a202('0x2788')](function(){_0x2793d1(_0x58f718);},function(){console['log']('CANCEL');});}function _0x549e00(){const _0x323d5a=_0x493aa4;if(_0x13d8a7['hasRole']('admin'))_0x1e0f17['go'](_0x323d5a('0x1b6f'),{});else return _0x129864[_0x323d5a('0xec9')]['get']({'userProfileId':_0x13d8a7[_0x323d5a('0x24cc')]()[_0x323d5a('0x237f')],'sectionId':0x38e})[_0x323d5a('0x1714')]['then'](function(_0x11cfc3){const _0x720af9=_0x323d5a,_0xee8167=_0x11cfc3&&_0x11cfc3[_0x720af9('0x25df')]?_0x11cfc3[_0x720af9('0x25df')][0x0]:null;_0xee8167&&_0xee8167[_0x720af9('0x14f4')]?_0x1e0f17['go'](_0x720af9('0x1b6f'),{}):_0x589fc6['info']({'title':_0x2f07b8['instant'](_0x720af9('0x5be')),'msg':_0x2f07b8['instant'](_0x720af9('0x1abc'))});})[_0x323d5a('0x1cb5')](function(_0x229394){const _0x5bea11=_0x323d5a;_0x589fc6[_0x5bea11('0x5e8')]({'title':_0x229394[_0x5bea11('0x1b51')]?_0x5bea11('0x15d1')+_0x229394[_0x5bea11('0x1b51')]+_0x5bea11('0x1b0b')+_0x229394[_0x5bea11('0x22ce')]:'USERPROFILE:GET_SECTION','msg':_0x229394[_0x5bea11('0x1b51')]?JSON[_0x5bea11('0x1be0')](_0x229394[_0x5bea11('0x11fc')]):_0x229394[_0x5bea11('0x17df')]()});});}let _0x18d9b0=!![],_0x5af385=0x1;_0x339f3d[_0x493aa4('0x1662')](_0x493aa4('0x1569'),function(_0x5ddc02,_0x46b7ec){const _0x5209cc=_0x493aa4;_0x18d9b0?_0x45602e(function(){_0x18d9b0=![];}):(!_0x46b7ec&&(_0x5af385=_0x1df095['query'][_0x5209cc('0x23f5')]),_0x5ddc02!==_0x46b7ec&&(_0x1df095[_0x5209cc('0x135a')][_0x5209cc('0x23f5')]=0x1),!_0x5ddc02&&(_0x1df095[_0x5209cc('0x135a')][_0x5209cc('0x23f5')]=_0x5af385),_0x1df095[_0x5209cc('0x13eb')]());});function _0x32a60f(_0x1a1b85){const _0x47235a=_0x493aa4;_0x1df095[_0x47235a('0x134e')]=_0x1a1b85||{'count':0x0,'rows':[]};}function _0x3288bd(){const _0x53637b=_0x493aa4;_0x1df095[_0x53637b('0x135a')][_0x53637b('0x19e')]=(_0x1df095[_0x53637b('0x135a')][_0x53637b('0x23f5')]-0x1)*_0x1df095[_0x53637b('0x135a')][_0x53637b('0x68e')],_0x13d8a7[_0x53637b('0x1516')](_0x53637b('0xe23'))?_0x1df095[_0x53637b('0x1808')]=_0x129864[_0x53637b('0x1cc3')][_0x53637b('0x1335')](_0x1df095[_0x53637b('0x135a')],_0x32a60f)[_0x53637b('0x1714')]:(_0x1df095[_0x53637b('0x135a')]['id']=_0x1df095[_0x53637b('0x63c')]['id'],_0x1df095[_0x53637b('0x135a')][_0x53637b('0xb13')]=_0x53637b('0x1d6d'),_0x1df095['promise']=_0x129864[_0x53637b('0x63c')][_0x53637b('0xa1')](_0x1df095[_0x53637b('0x135a')],_0x32a60f)['$promise']);}function _0x17045d(_0x238601,_0x167c3b){const _0x430d6e=_0x493aa4;_0x9255cc[_0x430d6e('0x2fa')]({'controller':_0x430d6e('0xbfb'),'controllerAs':'vm','templateUrl':_0x18f3e0,'parent':angular[_0x430d6e('0x16b1')](_0xc82be8['body']),'targetEvent':_0x238601,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x167c3b,'faxQueues':_0x1df095['faxQueues'][_0x430d6e('0x25df')],'license':_0x1df095['license'],'setting':_0x1df095[_0x430d6e('0x1af0')],'crudPermissions':_0x1df095['crudPermissions']}});}function _0x2793d1(_0xee8fc7){const _0x12be93=_0x493aa4;_0x129864[_0x12be93('0x1cc3')][_0x12be93('0x17c4')]({'id':_0xee8fc7['id']})[_0x12be93('0x1714')][_0x12be93('0x2788')](function(){const _0x1de42f=_0x12be93;_0x283545()[_0x1de42f('0x1a90')](_0x1df095[_0x1de42f('0x134e')][_0x1de42f('0x25df')],{'id':_0xee8fc7['id']}),_0x1df095[_0x1de42f('0x134e')]['count']-=0x1,!_0x1df095[_0x1de42f('0x134e')][_0x1de42f('0x25df')][_0x1de42f('0x2566')]&&_0x1df095[_0x1de42f('0x13eb')](),_0x589fc6[_0x1de42f('0x173b')]({'title':_0x283545()[_0x1de42f('0x114')](_0x1de42f('0x27cb'))+_0x1de42f('0x20db'),'msg':_0xee8fc7[_0x1de42f('0x1a8d')]?_0xee8fc7[_0x1de42f('0x1a8d')]+_0x1de42f('0x14d4'):''});})[_0x12be93('0x1cb5')](function(_0x37df0f){const _0x1b2834=_0x12be93;if(_0x37df0f[_0x1b2834('0x11fc')]&&_0x37df0f[_0x1b2834('0x11fc')]['errors']&&_0x37df0f[_0x1b2834('0x11fc')]['errors'][_0x1b2834('0x2566')]){_0x1df095[_0x1b2834('0x25be')]=_0x37df0f[_0x1b2834('0x11fc')]['errors']||[{'message':_0x37df0f[_0x1b2834('0x17df')](),'type':_0x1b2834('0xb7b')}];for(let _0x1a065e=0x0;_0x1a065e<_0x37df0f[_0x1b2834('0x11fc')]['errors'][_0x1b2834('0x2566')];_0x1a065e++){_0x589fc6['error']({'title':_0x37df0f['data'][_0x1b2834('0x25be')][_0x1a065e][_0x1b2834('0x1d7')],'msg':_0x37df0f['data'][_0x1b2834('0x25be')][_0x1a065e][_0x1b2834('0x15e2')]});}}else _0x589fc6[_0x1b2834('0x5e8')]({'title':_0x37df0f[_0x1b2834('0x1b51')]?_0x1b2834('0x15d1')+_0x37df0f['status']+_0x1b2834('0x1b0b')+_0x37df0f[_0x1b2834('0x22ce')]:'SYSTEM:DELETEfaxQueue','msg':_0x37df0f[_0x1b2834('0x11fc')]?JSON[_0x1b2834('0x1be0')](_0x37df0f[_0x1b2834('0x11fc')][_0x1b2834('0x15e2')]):_0x37df0f[_0x1b2834('0x15e2')]||_0x37df0f[_0x1b2834('0x17df')]()});});}function _0x38329b(){const _0x47601c=_0x493aa4,_0x377670=angular[_0x47601c('0x2669')](_0x1df095[_0x47601c('0x681')]);return _0x1df095['selectedFaxQueues']=[],_0x377670;}function _0x53f6c1(_0x2262af){const _0x43d933=_0x493aa4,_0x43d971=_0x9255cc['confirm']()[_0x43d933('0x14e4')](_0x43d933('0x14ac'))[_0x43d933('0x93e')](_0x43d933('0x1670')+_0x1df095['selectedFaxQueues'][_0x43d933('0x2566')]+'\x20selected'+_0x43d933('0x27c7'))[_0x43d933('0x10bc')](_0x43d933('0x1903'))[_0x43d933('0x24d0')](_0x2262af)['ok']('OK')[_0x43d933('0x1801')](_0x43d933('0x1d8d'));_0x9255cc['show'](_0x43d971)[_0x43d933('0x2788')](function(){const _0x439506=_0x43d933;_0x1df095[_0x439506('0x681')][_0x439506('0x1534')](function(_0x1cf0bd){_0x2793d1(_0x1cf0bd);}),_0x1df095[_0x439506('0x681')]=[];});}function _0x3eb117(){_0x1df095['selectedFaxQueues']=[];}function _0x3876e6(){const _0x12ccc2=_0x493aa4;_0x1df095[_0x12ccc2('0x681')]=_0x1df095[_0x12ccc2('0x134e')][_0x12ccc2('0x25df')];}}const _0x3ffb9e=_0x3d07d6;_0x54a94b[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0x54a94b(_0x23beec,_0xe3bd87){const _0x1ed126=_0x34e79e;_0x23beec[_0x1ed126('0x249b')](_0x1ed126('0xd42'),{'abstract':!![],'url':'/fax'})[_0x1ed126('0x249b')](_0x1ed126('0x496'),{'url':_0x1ed126('0x24ab'),'views':{'content@app':{'templateUrl':_0x3ae5e6,'controller':_0x1ed126('0xe87')}},'resolve':{'faxQueues':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x23099d,_0x1ae97d){const _0x1adc83=_0x1ed126;return _0x1ae97d['hasRole']('admin')?_0x23099d[_0x1adc83('0x2322')](_0x1adc83('0x1dd5'),{'fields':_0x1adc83('0x1a03'),'sort':_0x1adc83('0x1cee'),'channel':_0x1adc83('0x10cf'),'limit':0xa,'offset':0x0}):_0x23099d[_0x1adc83('0x2322')]('userProfile@getResources',{'id':_0x1ae97d[_0x1adc83('0x24cc')]()['userProfileId'],'section':_0x1adc83('0x1d6d'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x1adc83('0x10cf'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x3eb040,_0x4798a9){const _0x1262f7=_0x1ed126;return _0x4798a9['hasRole'](_0x1262f7('0xe23'))?null:_0x3eb040['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x4798a9[_0x1262f7('0x24cc')]()[_0x1262f7('0x237f')]});}],'userProfileSection':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x407dfd,_0x51f321){const _0x172588=_0x1ed126;return _0x51f321[_0x172588('0x1516')](_0x172588('0xe23'))?null:_0x407dfd['resolve'](_0x172588('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51f321['getCurrentUser']()[_0x172588('0x237f')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x1ed126('0x10cf')})[_0x1ed126('0x249b')](_0x1ed126('0x122'),{'url':_0x1ed126('0x206b'),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x16cad7,'controller':_0x1ed126('0x1877')}},'resolve':{'faxQueue':[_0x1ed126('0x1318'),'$stateParams',function(_0x175c75,_0x5a2151){const _0x42de05=_0x1ed126;return _0x175c75[_0x42de05('0x2322')]('faxQueue@get',{'fields':_0x42de05('0x1a03'),'id':_0x5a2151['id']});}],'userProfileSection':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x46c405,_0x1cc258){const _0x205818=_0x1ed126;return _0x46c405[_0x205818('0x2322')](_0x205818('0x22ca'),{'fields':_0x205818('0xe2c'),'userProfileId':_0x1cc258[_0x205818('0x24cc')]()[_0x205818('0x237f')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x1ed126('0x10cf')})[_0x1ed126('0x249b')]('app.fax.faxAccounts',{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x211ff6,'controller':_0x1ed126('0x26cb')}},'resolve':{'faxAccounts':[_0x1ed126('0x1318'),'Auth',function(_0x1116c3,_0x2ad7cf){const _0x1aa538=_0x1ed126;return _0x2ad7cf[_0x1aa538('0x1516')](_0x1aa538('0xe23'))?_0x1116c3['resolve']('faxAccount@get',{'fields':_0x1aa538('0x25e1'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x1116c3[_0x1aa538('0x2322')](_0x1aa538('0x27c5'),{'id':_0x2ad7cf[_0x1aa538('0x24cc')]()[_0x1aa538('0x237f')],'section':_0x1aa538('0x1819'),'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':_0x1aa538('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x19f264,_0x4805a0){const _0x14d153=_0x1ed126;return _0x4805a0['hasRole'](_0x14d153('0xe23'))?null:_0x19f264['resolve'](_0x14d153('0x231d'),{'fields':'id,name,crudPermissions','id':_0x4805a0[_0x14d153('0x24cc')]()[_0x14d153('0x237f')]});}],'userProfileSection':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x9ba510,_0x203daa){const _0x1b3388=_0x1ed126;return _0x203daa[_0x1b3388('0x1516')](_0x1b3388('0xe23'))?null:_0x9ba510[_0x1b3388('0x2322')](_0x1b3388('0x22ca'),{'fields':_0x1b3388('0xe2c'),'userProfileId':_0x203daa[_0x1b3388('0x24cc')]()[_0x1b3388('0x237f')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x1ed126('0x10cf')})['state'](_0x1ed126('0x2438'),{'url':_0x1ed126('0x206b'),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5ac789,'controller':_0x1ed126('0x22ee')}},'resolve':{'faxAccount':[_0x1ed126('0x1318'),'$stateParams',function(_0x64aba3,_0x4cbf44){const _0x190a81=_0x1ed126;return _0x64aba3[_0x190a81('0x2322')](_0x190a81('0x357'),{'fields':_0x190a81('0x25e1'),'id':_0x4cbf44['id']});}],'userProfileSection':[_0x1ed126('0x1318'),_0x1ed126('0x1b04'),function(_0x3717c9,_0x1a7aab){const _0x429ae5=_0x1ed126;return _0x3717c9[_0x429ae5('0x2322')](_0x429ae5('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1a7aab[_0x429ae5('0x24cc')]()[_0x429ae5('0x237f')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'}),_0xe3bd87['addPart'](_0x1ed126('0xe92'));}angular['module'](_0x34e79e('0xd42'),[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),'flow',_0x34e79e('0x2246'),_0x34e79e('0x20ba'),'ng-sortable',_0x34e79e('0x80f'),'ngAnimate',_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),'material.components.expansionPanels',_0x34e79e('0x429'),'angular.filter',_0x34e79e('0x16d1')])[_0x34e79e('0x1a22')](_0x54a94b)[_0x34e79e('0xb44')]('CreateOrEditFaxAccountDialogController',_0x3c05b3)[_0x34e79e('0xb44')]('FaxAccountActionsController',_0x30ed71)[_0x34e79e('0xb44')](_0x34e79e('0x8ff'),_0x36245d)[_0x34e79e('0xb44')]('EditFaxAccountAppagentDialogController',_0x3e5342)['controller'](_0x34e79e('0xfc8'),_0x38f218)[_0x34e79e('0xb44')](_0x34e79e('0x20aa'),_0x5c5267)[_0x34e79e('0xb44')]('EditFaxAccountAppgotopDialogController',_0x1c1dcc)['controller'](_0x34e79e('0x19cc'),_0x3ea63e)['controller'](_0x34e79e('0xdf8'),_0x396eee)[_0x34e79e('0xb44')]('EditFaxAccountAppqueueDialogController',_0x15ff61)['controller']('EditFaxAccountAppsystemDialogController',_0x5a62a9)['controller'](_0x34e79e('0x2610'),_0x164b60)[_0x34e79e('0xb44')]('FaxAccountDispositionsController',_0x4007ba)[_0x34e79e('0xb44')]('FaxAccountInteractionsController',_0x3913b8)[_0x34e79e('0xb44')](_0x34e79e('0x3ca'),_0x4cb58b)[_0x34e79e('0xb44')](_0x34e79e('0x383'),_0x24c17b)[_0x34e79e('0xb44')]('CreateOrEditFaxQueueDialogController',_0xe9e055)[_0x34e79e('0xb44')](_0x34e79e('0xfd1'),_0x365c8d)[_0x34e79e('0xb44')](_0x34e79e('0x2600'),_0x221df6)['controller'](_0x34e79e('0x214e'),_0x1c9723)[_0x34e79e('0xb44')](_0x34e79e('0x740'),_0x3ffb9e);const _0x4ff636=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html';_0x266dd7[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1a5c'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x818'),_0x34e79e('0x1db2'),_0x34e79e('0x9b0'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x266dd7(_0x2ed444,_0x59dc8c,_0x286d7e,_0x47ea1e,_0x44ab0b,_0x3cb060,_0x7782bf,_0x3aabe5,_0x27029b,_0x15b80c,_0x366cc8,_0x3f8a1f){const _0x37efb9=_0x34e79e,_0x2d758c=this;_0x2d758c[_0x37efb9('0x9cb')]=_0x27029b[_0x37efb9('0x24cc')](),_0x2d758c[_0x37efb9('0x1db2')]=angular['copy'](_0x3cb060),_0x2d758c[_0x37efb9('0x818')]=angular[_0x37efb9('0x2669')](_0x44ab0b),_0x2d758c['setting']=_0x3f8a1f,_0x2d758c[_0x37efb9('0x130d')]=_0x366cc8,_0x2d758c['crudPermissions']=_0x15b80c,_0x2d758c[_0x37efb9('0x22f4')]=![],_0x2d758c[_0x37efb9('0x25be')]=[];!_0x2d758c['disposition']?(_0x2d758c[_0x37efb9('0x1db2')]={'level':_0x37efb9('0x2716')},_0x2d758c[_0x37efb9('0x22f4')]=!![]):_0x566846();if(_0x7782bf){const _0x52e00f=_0x7782bf[_0x37efb9('0x18da')];_0x2d758c[_0x37efb9('0x1db2')][_0x52e00f]=_0x7782bf['id'];}_0x2d758c[_0x37efb9('0x17c2')]=_0x40766b,_0x2d758c[_0x37efb9('0x255c')]=_0x5f4bb5,_0x2d758c['saveDisposition']=_0x8f6ab5,_0x2d758c[_0x37efb9('0x25ba')]=_0x1ce324,_0x2d758c[_0x37efb9('0x1776')]=_0x3c7c8a,_0x2d758c[_0x37efb9('0xca7')]=_0x169914;function _0x566846(){const _0x3816f0=_0x37efb9;if(_0x2d758c[_0x3816f0('0x1db2')][_0x3816f0('0x1631')]===_0x3816f0('0x2716'))return;_0x2d758c['parentDisposition']=_0x283545()[_0x3816f0('0x20e8')](_0x2d758c[_0x3816f0('0x818')],['id',_0x2d758c[_0x3816f0('0x1db2')][_0x3816f0('0x1ba')]]);if(!_0x2d758c[_0x3816f0('0x25f0')]){_0x2f78bd()[_0x3816f0('0x2788')](function(){const _0x22b06e=_0x3816f0;for(let _0xf5fce2=0x0;_0xf5fce2<_0x2d758c[_0x22b06e('0x177')]['length'];_0xf5fce2++){const _0x56fa28=_0x2d758c[_0x22b06e('0x177')][_0xf5fce2];if(_0x56fa28['id']===_0x2d758c[_0x22b06e('0x1db2')][_0x22b06e('0x1ba')]){_0x5e84da(_0x56fa28),_0x56fa28[_0x22b06e('0x3bf')]=![],_0x2d758c[_0x22b06e('0x818')]['push'](_0x56fa28);break;}}});return;}_0x5e84da(_0x2d758c[_0x3816f0('0x25f0')]);}function _0x2f78bd(){return _0x286d7e(function(_0x162981,_0x183c6a){const _0x1e7dec=a0_0x14e7;_0x3aabe5['disposition'][_0x1e7dec('0x1335')]({'fields':'id,name,level,ParentId','sort':'id','nolimit':_0x1e7dec('0x1001')})[_0x1e7dec('0x1714')]['then'](function(_0x8c7c80){const _0x4c94f5=_0x1e7dec;_0x2d758c[_0x4c94f5('0x177')]=_0x8c7c80[_0x4c94f5('0x25df')]||[],_0x162981();})[_0x1e7dec('0x1cb5')](function(_0x240f8a){_0x183c6a(_0x240f8a);});});}function _0x5e84da(_0x49483d){const _0x4101ab=_0x37efb9;_0x49483d[_0x4101ab('0x1631')]===_0x4101ab('0x2716')?_0x2d758c[_0x4101ab('0x50e')]=_0x49483d:(_0x2d758c[_0x4101ab('0xf79')]=!![],_0x2d758c['secondLevelDisposition']=_0x49483d,_0x2d758c[_0x4101ab('0x50e')]=_0x283545()[_0x4101ab('0x20e8')](_0x2d758c[_0x4101ab('0x818')],['id',_0x2d758c['secondLevelDisposition']['ParentId']]),!_0x2d758c[_0x4101ab('0x50e')]&&_0x2f78bd()['then'](function(){const _0x5e35d6=_0x4101ab;_0x2d758c[_0x5e35d6('0x50e')]=_0x283545()[_0x5e35d6('0x20e8')](_0x2d758c[_0x5e35d6('0x177')],['id',_0x2d758c['secondLevelDisposition'][_0x5e35d6('0x1ba')]]),_0x2d758c['firstLevelDisposition'][_0x5e35d6('0x3bf')]=![],_0x2d758c[_0x5e35d6('0x818')]['push'](_0x2d758c['firstLevelDisposition']);}));}function _0x3c7c8a(_0x2bdf44){const _0x1245f6=_0x37efb9;_0x2bdf44===_0x1245f6('0x2716')?(_0x2d758c[_0x1245f6('0x50e')]=undefined,_0x2d758c[_0x1245f6('0xf56')]=undefined,_0x2d758c[_0x1245f6('0xf79')]=![]):_0x2d758c[_0x1245f6('0xf56')]=undefined;}function _0x40766b(){const _0xd6246a=_0x37efb9;_0x2d758c[_0xd6246a('0xf56')]=undefined,_0x2d758c['anySecondLevelDisposition']=_0x283545()[_0xd6246a('0xc5d')](_0x2d758c['dispositions'],function(_0x350036){const _0x69d786=_0xd6246a;return _0x350036['ParentId']===_0x2d758c[_0x69d786('0x50e')]['id']&&_0x350036['id']!=_0x2d758c['disposition']['id'];});}function _0x5f4bb5(){const _0xd53872=_0x37efb9;_0x2d758c['errors']=[];if(_0x2d758c[_0xd53872('0xf56')])_0x2d758c[_0xd53872('0x1db2')][_0xd53872('0x1ba')]=_0x2d758c[_0xd53872('0xf56')]['id'],_0x2d758c['disposition'][_0xd53872('0x1631')]=_0xd53872('0x1f2c');else _0x2d758c[_0xd53872('0x50e')]&&(_0x2d758c[_0xd53872('0x1db2')][_0xd53872('0x1ba')]=_0x2d758c[_0xd53872('0x50e')]['id'],_0x2d758c[_0xd53872('0x1db2')][_0xd53872('0x1631')]=_0xd53872('0x1929'));_0x3aabe5[_0xd53872('0x1db2')][_0xd53872('0xbd0')](_0x2d758c[_0xd53872('0x1db2')])[_0xd53872('0x1714')]['then'](function(_0x1e67af){const _0x5ea4c7=_0xd53872;_0x2d758c[_0x5ea4c7('0x818')][_0x5ea4c7('0xc51')](_0x1e67af['toJSON']()),_0x47ea1e[_0x5ea4c7('0x173b')]({'title':_0x59dc8c[_0x5ea4c7('0x1b11')](_0x5ea4c7('0x12b1'))}),_0x169914(!![]);})[_0xd53872('0x1cb5')](function(_0x18e5a5){const _0x252ac7=_0xd53872;if(_0x18e5a5[_0x252ac7('0x11fc')]&&_0x18e5a5[_0x252ac7('0x11fc')][_0x252ac7('0x25be')]&&_0x18e5a5['data']['errors'][_0x252ac7('0x2566')]){_0x2d758c['errors']=_0x18e5a5[_0x252ac7('0x11fc')][_0x252ac7('0x25be')]||[{'message':_0x18e5a5[_0x252ac7('0x17df')](),'type':_0x252ac7('0x107')}];for(let _0x20b871=0x0;_0x20b871<_0x18e5a5['data'][_0x252ac7('0x25be')][_0x252ac7('0x2566')];_0x20b871+=0x1){_0x47ea1e[_0x252ac7('0x5e8')]({'title':_0x18e5a5[_0x252ac7('0x11fc')]['errors'][_0x20b871][_0x252ac7('0x1d7')],'msg':_0x18e5a5['data'][_0x252ac7('0x25be')][_0x20b871][_0x252ac7('0x15e2')]});}}else _0x47ea1e[_0x252ac7('0x5e8')]({'title':_0x18e5a5['status']?_0x252ac7('0x15d1')+_0x18e5a5[_0x252ac7('0x1b51')]+_0x252ac7('0x1b0b')+_0x18e5a5[_0x252ac7('0x22ce')]:_0x252ac7('0x107'),'msg':_0x18e5a5['data']?JSON[_0x252ac7('0x1be0')](_0x18e5a5[_0x252ac7('0x11fc')][_0x252ac7('0x15e2')]):_0x18e5a5[_0x252ac7('0x17df')]()});});}function _0x8f6ab5(){const _0x39e96d=_0x37efb9;_0x2d758c['errors']=[];if(_0x2d758c[_0x39e96d('0xf56')])_0x2d758c[_0x39e96d('0x1db2')][_0x39e96d('0x1ba')]=_0x2d758c[_0x39e96d('0xf56')]['id'],_0x2d758c[_0x39e96d('0x1db2')][_0x39e96d('0x1631')]='third';else _0x2d758c[_0x39e96d('0x50e')]&&(_0x2d758c['disposition'][_0x39e96d('0x1ba')]=_0x2d758c['firstLevelDisposition']['id'],_0x2d758c['disposition'][_0x39e96d('0x1631')]=_0x39e96d('0x1929'));_0x3aabe5[_0x39e96d('0x1db2')][_0x39e96d('0x2740')]({'id':_0x2d758c[_0x39e96d('0x1db2')]['id']},_0x2d758c['disposition'])[_0x39e96d('0x1714')][_0x39e96d('0x2788')](function(_0x2ae356){const _0x1f4408=_0x39e96d,_0x4123f5=_0x283545()['find'](_0x2d758c[_0x1f4408('0x818')],{'id':_0x2ae356['id']});_0x4123f5&&_0x283545()[_0x1f4408('0x2503')](_0x4123f5,_0x283545()[_0x1f4408('0x41b')](_0x2ae356['toJSON'](),_0x283545()['keys'](_0x4123f5))),_0x47ea1e[_0x1f4408('0x173b')]({'title':_0x59dc8c[_0x1f4408('0x1b11')](_0x1f4408('0xe37'))}),_0x169914(!![]);})[_0x39e96d('0x1cb5')](function(_0xba0bc3){const _0x1af9c8=_0x39e96d;if(_0xba0bc3['data']&&_0xba0bc3['data'][_0x1af9c8('0x25be')]&&_0xba0bc3[_0x1af9c8('0x11fc')][_0x1af9c8('0x25be')][_0x1af9c8('0x2566')]){_0x2d758c['errors']=_0xba0bc3[_0x1af9c8('0x11fc')]['errors']||[{'message':_0xba0bc3[_0x1af9c8('0x17df')](),'type':_0x1af9c8('0x1053')}];for(let _0x359cc7=0x0;_0x359cc7<_0xba0bc3[_0x1af9c8('0x11fc')]['errors'][_0x1af9c8('0x2566')];_0x359cc7++){_0x47ea1e['error']({'title':_0xba0bc3[_0x1af9c8('0x11fc')][_0x1af9c8('0x25be')][_0x359cc7][_0x1af9c8('0x1d7')],'msg':_0xba0bc3['data']['errors'][_0x359cc7][_0x1af9c8('0x15e2')]});}}else _0x47ea1e['error']({'title':_0xba0bc3[_0x1af9c8('0x1b51')]?'API:'+_0xba0bc3['status']+_0x1af9c8('0x1b0b')+_0xba0bc3[_0x1af9c8('0x22ce')]:_0x1af9c8('0x1053'),'msg':_0xba0bc3[_0x1af9c8('0x11fc')]?JSON[_0x1af9c8('0x1be0')](_0xba0bc3[_0x1af9c8('0x11fc')]['message']):_0xba0bc3['toString']()});});}function _0x1ce324(_0x5790ed){const _0x2d194e=_0x37efb9;_0x2d758c['errors']=[];const _0x36f4d1=_0x283545()[_0x2d194e('0xc5d')](_0x2d758c['dispositions'],[_0x2d194e('0x1ba'),_0x2d758c[_0x2d194e('0x1db2')]['id']]),_0x4bab38=_0x2ed444['confirm']({'skipHide':!![]})[_0x2d194e('0x14e4')](_0x59dc8c[_0x2d194e('0x1b11')](_0x2d194e('0x29e')))['content'](_0x59dc8c[_0x2d194e('0x1b11')]('TOOLS.NOTIFICATIONS.'+(_0x36f4d1?_0x2d194e('0x40a'):_0x2d194e('0x281c')),{'name':_0x2d758c[_0x2d194e('0x1db2')][_0x2d194e('0x1a8d')]}))[_0x2d194e('0x10bc')](_0x2d194e('0x1f86'))['ok'](_0x59dc8c[_0x2d194e('0x1b11')](_0x2d194e('0x232a')))[_0x2d194e('0x1801')](_0x59dc8c[_0x2d194e('0x1b11')](_0x2d194e('0x1061')))[_0x2d194e('0x24d0')](_0x5790ed);_0x2ed444['show'](_0x4bab38)['then'](function(){const _0x373137=_0x2d194e;_0x3aabe5[_0x373137('0x1db2')]['delete']({'id':_0x2d758c[_0x373137('0x1db2')]['id']})['$promise'][_0x373137('0x2788')](function(){_0x47ea1e['success']({'title':_0x59dc8c['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')}),_0x169914(!![]);})[_0x373137('0x1cb5')](function(_0x52e4fc){const _0x46f648=_0x373137;if(_0x52e4fc[_0x46f648('0x11fc')]&&_0x52e4fc[_0x46f648('0x11fc')]['errors']&&_0x52e4fc[_0x46f648('0x11fc')][_0x46f648('0x25be')][_0x46f648('0x2566')]){_0x2d758c['errors']=_0x52e4fc['data'][_0x46f648('0x25be')]||[{'message':_0x52e4fc[_0x46f648('0x17df')](),'type':_0x46f648('0x21c0')}];for(let _0x1ab6cb=0x0;_0x1ab6cb<_0x52e4fc[_0x46f648('0x11fc')]['errors'][_0x46f648('0x2566')];_0x1ab6cb++){_0x47ea1e[_0x46f648('0x5e8')]({'title':_0x52e4fc[_0x46f648('0x11fc')][_0x46f648('0x25be')][_0x1ab6cb][_0x46f648('0x1d7')],'msg':_0x52e4fc[_0x46f648('0x11fc')]['errors'][_0x1ab6cb][_0x46f648('0x15e2')]});}}else _0x47ea1e[_0x46f648('0x5e8')]({'title':_0x52e4fc[_0x46f648('0x1b51')]?_0x46f648('0x15d1')+_0x52e4fc[_0x46f648('0x1b51')]+'\x20-\x20'+_0x52e4fc[_0x46f648('0x22ce')]:_0x46f648('0x21c0'),'msg':_0x52e4fc[_0x46f648('0x11fc')]?JSON[_0x46f648('0x1be0')](_0x52e4fc['data']['message']):_0x52e4fc[_0x46f648('0x15e2')]||_0x52e4fc[_0x46f648('0x17df')]()});});});}function _0x169914(_0x3a8541){const _0x13760c=_0x37efb9;_0x2ed444[_0x13760c('0x19d')](_0x3a8541);}}const _0x6ba3ac=_0x266dd7;_0x50c9f1['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog','$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x818'),'userProfile',_0x34e79e('0xec9'),'api','toasty','Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x50c9f1(_0x57de91,_0xcc9e02,_0x5ab598,_0xdf3ea0,_0x42f7e0,_0x3b3ff2,_0x2f1013,_0x517752,_0x301663,_0x43e23d,_0x41b8cb,_0x3637f3,_0x247b39,_0x3a0449,_0x84e5f0,_0x4ec70c){const _0x5520b6=_0x34e79e,_0x4eb60b=this;_0x4eb60b['license']=_0x84e5f0,_0x4eb60b[_0x5520b6('0x1af0')]=_0x4ec70c,_0x4eb60b['currentUser']=_0x3a0449[_0x5520b6('0x24cc')](),_0x4eb60b[_0x5520b6('0x818')]=_0x301663||{'count':0x0,'rows':[]},_0x4eb60b[_0x5520b6('0x63c')]=_0x43e23d,_0x4eb60b[_0x5520b6('0xec9')]=_0x41b8cb&&_0x41b8cb[_0x5520b6('0x338')]==0x1?_0x41b8cb[_0x5520b6('0x25df')][0x0]:null,_0x4eb60b[_0x5520b6('0xe28')]=_0x3a0449['parseCrudPermissions'](_0x4eb60b['userProfileSection']?_0x4eb60b[_0x5520b6('0xec9')]['crudPermissions']:null),_0x4eb60b[_0x5520b6('0x25d8')]=[],_0x4eb60b[_0x5520b6('0x21c2')]={'first':_0x5520b6('0x1b84'),'second':_0x5520b6('0x1e6'),'third':_0x5520b6('0x188d')},_0x4eb60b[_0x5520b6('0x135a')]={'fields':_0x5520b6('0x258b'),'sort':_0x5520b6('0x1cee'),'MailAccountId':'null','FaxAccountId':_0x5520b6('0x954'),'SmsAccountId':_0x5520b6('0x954'),'OpenchannelAccountId':_0x5520b6('0x954'),'ChatWebsiteId':_0x5520b6('0x954'),'WhatsappAccountId':_0x5520b6('0x954'),'ListId':'null','limit':0xa,'page':0x1},_0x4eb60b[_0x5520b6('0x1e5')]=_0x334b99,_0x4eb60b['success']=_0x243c70,_0x4eb60b[_0x5520b6('0x2069')]=_0x1f1722,_0x4eb60b[_0x5520b6('0x2839')]=_0x21862c,_0x4eb60b[_0x5520b6('0x25ba')]=_0x28f971,_0x4eb60b[_0x5520b6('0x1550')]=_0x4a1b5f,_0x4eb60b[_0x5520b6('0x1e3b')]=_0x1c1f9c,_0x4eb60b[_0x5520b6('0x3b4')]=_0x246068,_0x4eb60b[_0x5520b6('0xe69')]=_0x28ddcc;function _0x21862c(_0x1effa3,_0x25f947){const _0x25d95b=_0x5520b6;_0x42f7e0[_0x25d95b('0x2fa')]({'controller':_0x25d95b('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular['element'](_0x3b3ff2['body']),'targetEvent':_0x1effa3,'clickOutsideToClose':!![],'locals':{'disposition':_0x25f947,'dispositions':_0x4eb60b[_0x25d95b('0x818')][_0x25d95b('0x25df')],'model':null,'license':_0x4eb60b[_0x25d95b('0x130d')],'setting':_0x4eb60b[_0x25d95b('0x1af0')],'crudPermissions':_0x4eb60b[_0x25d95b('0xe28')]}})[_0x25d95b('0x2788')](function(_0x4fa6ee){if(_0x4fa6ee===!![])_0x1f1722();});}function _0x334b99(_0x104cc3,_0x2d72ff){const _0x249bba=_0x5520b6,_0x210dac=_0x283545()['some'](_0x4eb60b[_0x249bba('0x818')][_0x249bba('0x25df')],['ParentId',_0x104cc3['id']]),_0x3f8adb=_0x42f7e0['confirm']()[_0x249bba('0x14e4')](_0x517752[_0x249bba('0x1b11')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x249bba('0x1c98')](_0x517752['instant'](_0x249bba('0x5b')+(_0x210dac?_0x249bba('0x40a'):_0x249bba('0x281c')),{'name':_0x104cc3[_0x249bba('0x1a8d')]}))['ariaLabel'](_0x249bba('0x1f86'))['targetEvent'](_0x2d72ff)['ok']('OK')[_0x249bba('0x1801')](_0x517752[_0x249bba('0x1b11')](_0x249bba('0x1061')));_0x42f7e0[_0x249bba('0x2fa')](_0x3f8adb)[_0x249bba('0x2788')](function(){_0x28f971(_0x104cc3);});}function _0x243c70(_0x2ef324){const _0x3fe936=_0x5520b6;_0x4eb60b[_0x3fe936('0x818')]=_0x2ef324||{'count':0x0,'rows':[]};}function _0x1f1722(){const _0xed338a=_0x5520b6;_0x4eb60b[_0xed338a('0x135a')]['offset']=(_0x4eb60b['query'][_0xed338a('0x23f5')]-0x1)*_0x4eb60b[_0xed338a('0x135a')][_0xed338a('0x68e')],_0x3a0449[_0xed338a('0x1e40')]()?_0x4eb60b[_0xed338a('0x1808')]=_0x3637f3['disposition']['get'](_0x4eb60b[_0xed338a('0x135a')],_0x243c70)[_0xed338a('0x1714')]:(_0x4eb60b['query']['id']=_0x4eb60b[_0xed338a('0x63c')]['id'],_0x4eb60b[_0xed338a('0x135a')][_0xed338a('0xb13')]=_0xed338a('0xaf3'),_0x4eb60b[_0xed338a('0x1808')]=_0x3637f3[_0xed338a('0x63c')][_0xed338a('0xa1')](_0x4eb60b[_0xed338a('0x135a')],_0x243c70)['$promise']);}function _0x28f971(_0x28ab66){const _0x3111a4=_0x5520b6;_0x3637f3[_0x3111a4('0x1db2')][_0x3111a4('0x17c4')]({'id':_0x28ab66['id']})[_0x3111a4('0x1714')][_0x3111a4('0x2788')](function(){const _0x18b0c4=_0x3111a4;_0x1f1722(),_0x247b39[_0x18b0c4('0x173b')]({'title':_0x517752[_0x18b0c4('0x1b11')](_0x18b0c4('0x156e'))});})['catch'](function(_0x45ea1e){const _0x46175e=_0x3111a4;if(_0x45ea1e[_0x46175e('0x11fc')]&&_0x45ea1e[_0x46175e('0x11fc')][_0x46175e('0x25be')]&&_0x45ea1e[_0x46175e('0x11fc')][_0x46175e('0x25be')]['length']){_0x4eb60b[_0x46175e('0x25be')]=_0x45ea1e[_0x46175e('0x11fc')][_0x46175e('0x25be')]||[{'message':_0x45ea1e[_0x46175e('0x17df')](),'type':_0x46175e('0x1410')}];for(let _0x43e692=0x0;_0x43e692<_0x45ea1e[_0x46175e('0x11fc')][_0x46175e('0x25be')]['length'];_0x43e692++){_0x247b39[_0x46175e('0x5e8')]({'title':_0x45ea1e[_0x46175e('0x11fc')][_0x46175e('0x25be')][_0x43e692][_0x46175e('0x1d7')],'msg':_0x45ea1e['data'][_0x46175e('0x25be')][_0x43e692][_0x46175e('0x15e2')]});}}else _0x247b39[_0x46175e('0x5e8')]({'title':_0x45ea1e[_0x46175e('0x1b51')]?'API:'+_0x45ea1e['status']+_0x46175e('0x1b0b')+_0x45ea1e[_0x46175e('0x22ce')]:_0x46175e('0x1410'),'msg':_0x45ea1e[_0x46175e('0x11fc')]?JSON[_0x46175e('0x1be0')](_0x45ea1e[_0x46175e('0x11fc')]['message']):_0x45ea1e['message']||_0x45ea1e[_0x46175e('0x17df')]()});});}function _0x4a1b5f(){const _0x5ec3cb=_0x5520b6,_0x18c816=angular[_0x5ec3cb('0x2669')](_0x4eb60b[_0x5ec3cb('0x25d8')]);return _0x4eb60b[_0x5ec3cb('0x25d8')]=[],_0x18c816;}function _0x1c1f9c(_0x4dd498){const _0x41a1bc=_0x5520b6,_0x5a3b1e=_0x42f7e0['confirm']()[_0x41a1bc('0x14e4')](_0x517752[_0x41a1bc('0x1b11')](_0x41a1bc('0x63d')))['content'](_0x517752[_0x41a1bc('0x1b11')](_0x41a1bc('0x153f'),{'total':_0x4eb60b[_0x41a1bc('0x25d8')][_0x41a1bc('0x2566')]}))[_0x41a1bc('0x10bc')](_0x41a1bc('0x248b'))[_0x41a1bc('0x24d0')](_0x4dd498)['ok']('OK')[_0x41a1bc('0x1801')](_0x517752[_0x41a1bc('0x1b11')](_0x41a1bc('0x1061')));_0x42f7e0[_0x41a1bc('0x2fa')](_0x5a3b1e)[_0x41a1bc('0x2788')](function(){const _0x404edc=_0x41a1bc;_0x4eb60b[_0x404edc('0x25d8')][_0x404edc('0x1534')](function(_0x12c0e2){_0x28f971(_0x12c0e2);}),_0x4eb60b[_0x404edc('0x25d8')]=[];});}function _0x246068(){_0x4eb60b['selectedDispositions']=[];}function _0x28ddcc(){const _0x5c76be=_0x5520b6;_0x4eb60b[_0x5c76be('0x25d8')]=_0x4eb60b[_0x5c76be('0x818')][_0x5c76be('0x25df')];}let _0x8703b0=!![],_0x2f81a1=0x1;_0x57de91[_0x5520b6('0x1662')](_0x5520b6('0x1569'),function(_0x29058e,_0x1e8898){const _0x20c515=_0x5520b6;_0x8703b0?_0x2f1013(function(){_0x8703b0=![];}):(!_0x1e8898&&(_0x2f81a1=_0x4eb60b[_0x20c515('0x135a')][_0x20c515('0x23f5')]),_0x29058e!==_0x1e8898&&(_0x4eb60b[_0x20c515('0x135a')][_0x20c515('0x23f5')]=0x1),!_0x29058e&&(_0x4eb60b['query'][_0x20c515('0x23f5')]=_0x2f81a1),_0x1f1722());});}const _0x84fead=_0x50c9f1;_0x193c37[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x193c37(_0x430cfd){const _0x336000=_0x34e79e;_0x430cfd[_0x336000('0x249b')](_0x336000('0xb32'),{'url':_0x336000('0x12ad'),'views':{'content@app':{'templateUrl':_0x4ff636,'controller':_0x336000('0x2244')}},'resolve':{'dispositions':[_0x336000('0x1318'),_0x336000('0x1b04'),function(_0x1c87a2,_0x2f7057){const _0x567219=_0x336000;return _0x2f7057[_0x567219('0x1516')](_0x567219('0xe23'))?_0x1c87a2['resolve'](_0x567219('0x2cf'),{'fields':_0x567219('0x258b'),'sort':_0x567219('0x1cee'),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x567219('0x954'),'OpenchannelAccountId':_0x567219('0x954'),'ChatWebsiteId':'null','WhatsappAccountId':_0x567219('0x954'),'ListId':_0x567219('0x954'),'limit':0xa,'offset':0x0}):_0x1c87a2['resolve'](_0x567219('0x27c5'),{'id':_0x2f7057['getCurrentUser']()[_0x567219('0x237f')],'section':_0x567219('0xaf3'),'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x567219('0x1cee'),'MailAccountId':_0x567219('0x954'),'FaxAccountId':'null','SmsAccountId':_0x567219('0x954'),'OpenchannelAccountId':_0x567219('0x954'),'ChatWebsiteId':_0x567219('0x954'),'WhatsappAccountId':_0x567219('0x954'),'ListId':_0x567219('0x954'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x315cef,_0x29e8b2){const _0x424e4a=_0x336000;return _0x29e8b2[_0x424e4a('0x1516')](_0x424e4a('0xe23'))?null:_0x315cef[_0x424e4a('0x2322')](_0x424e4a('0x231d'),{'fields':'id,name,crudPermissions','id':_0x29e8b2['getCurrentUser']()[_0x424e4a('0x237f')]});}],'userProfileSection':[_0x336000('0x1318'),_0x336000('0x1b04'),function(_0x5d3f8a,_0x330f3d){const _0x1c0e21=_0x336000;return _0x330f3d[_0x1c0e21('0x1516')](_0x1c0e21('0xe23'))?null:_0x5d3f8a[_0x1c0e21('0x2322')](_0x1c0e21('0x22ca'),{'fields':_0x1c0e21('0xe2c'),'userProfileId':_0x330f3d[_0x1c0e21('0x24cc')]()[_0x1c0e21('0x237f')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':'tools'});}angular[_0x34e79e('0x16e2')](_0x34e79e('0xb32'),[])[_0x34e79e('0x1a22')](_0x193c37)[_0x34e79e('0xb44')](_0x34e79e('0x1cc4'),_0x6ba3ac)[_0x34e79e('0xb44')](_0x34e79e('0x8ae'),_0x84fead);const _0x33ab37=_0x18dd13['p']+_0x34e79e('0x8a0'),_0x841f8c=_0x18dd13['p']+_0x34e79e('0x16f6');_0x35873b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1f1'),'trigger',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x35873b(_0x1c958b,_0x5f5134,_0x26d6a8,_0x557d51,_0x4f17af,_0x518844,_0x17459c,_0x2a4c41,_0x229fbc,_0xf5eb91){const _0x419d94=_0x34e79e,_0x30b3e9=this;_0x30b3e9[_0x419d94('0x9cb')]=_0x17459c[_0x419d94('0x24cc')](),_0x30b3e9['trigger']=angular[_0x419d94('0x2669')](_0x4f17af),_0x30b3e9[_0x419d94('0x1f1')]=angular[_0x419d94('0x2669')](_0x557d51),_0x30b3e9[_0x419d94('0x1af0')]=_0x229fbc,_0x30b3e9['license']=_0x2a4c41,_0x30b3e9[_0x419d94('0xe28')]=_0xf5eb91,_0x30b3e9[_0x419d94('0x1991')]=![],_0x30b3e9[_0x419d94('0x25be')]=[];!_0x30b3e9[_0x419d94('0x126e')]&&(_0x30b3e9[_0x419d94('0x126e')]={'channel':_0x419d94('0x1f60')},_0x30b3e9[_0x419d94('0x1991')]=!![]);_0x30b3e9['addNewTrigger']=_0x149438,_0x30b3e9[_0x419d94('0x1faa')]=_0x193cc9,_0x30b3e9[_0x419d94('0x12ed')]=_0x3e7ed2,_0x30b3e9[_0x419d94('0xca7')]=_0x1d377b;function _0x149438(){const _0x234084=_0x419d94;_0x30b3e9['errors']=[],_0x518844['trigger']['save'](_0x30b3e9[_0x234084('0x126e')])['$promise']['then'](function(_0x579fb6){const _0x5c40b1=_0x234084;_0x30b3e9[_0x5c40b1('0x1f1')][_0x5c40b1('0xc51')](_0x579fb6['toJSON']()),_0x26d6a8[_0x5c40b1('0x173b')]({'title':_0x5f5134[_0x5c40b1('0x1b11')](_0x5c40b1('0x24f4'))}),_0x1d377b(_0x30b3e9[_0x5c40b1('0x1f1')]);})[_0x234084('0x1cb5')](function(_0x2f8a9c){const _0x1b8a7b=_0x234084;if(_0x2f8a9c['data']&&_0x2f8a9c['data'][_0x1b8a7b('0x25be')]&&_0x2f8a9c[_0x1b8a7b('0x11fc')]['errors']['length']){_0x30b3e9[_0x1b8a7b('0x25be')]=_0x2f8a9c['data']['errors']||[{'message':_0x2f8a9c[_0x1b8a7b('0x17df')](),'type':'api.trigger.save'}];for(let _0xbc9391=0x0;_0xbc9391<_0x2f8a9c[_0x1b8a7b('0x11fc')][_0x1b8a7b('0x25be')][_0x1b8a7b('0x2566')];_0xbc9391+=0x1){_0x26d6a8[_0x1b8a7b('0x5e8')]({'title':_0x2f8a9c['data'][_0x1b8a7b('0x25be')][_0xbc9391][_0x1b8a7b('0x1d7')],'msg':_0x2f8a9c['data'][_0x1b8a7b('0x25be')][_0xbc9391][_0x1b8a7b('0x15e2')]});}}else _0x26d6a8[_0x1b8a7b('0x5e8')]({'title':_0x2f8a9c[_0x1b8a7b('0x1b51')]?_0x1b8a7b('0x15d1')+_0x2f8a9c['status']+_0x1b8a7b('0x1b0b')+_0x2f8a9c['statusText']:_0x1b8a7b('0xf62'),'msg':_0x2f8a9c['data']?JSON[_0x1b8a7b('0x1be0')](_0x2f8a9c['data'][_0x1b8a7b('0x15e2')]):_0x2f8a9c[_0x1b8a7b('0x17df')]()});});}function _0x193cc9(){const _0x31efb5=_0x419d94;_0x30b3e9['errors']=[],_0x518844[_0x31efb5('0x126e')]['update']({'id':_0x30b3e9[_0x31efb5('0x126e')]['id']},_0x30b3e9[_0x31efb5('0x126e')])[_0x31efb5('0x1714')]['then'](function(){const _0x3b4bf9=_0x31efb5;_0x30b3e9['triggers']=_0x283545()[_0x3b4bf9('0x155d')](_0x30b3e9[_0x3b4bf9('0x1f1')],function(_0x51afe4){if(_0x51afe4['id']===_0x30b3e9['trigger']['id'])return _0x30b3e9['trigger'];else return _0x51afe4;}),_0x26d6a8['success']({'title':_0x5f5134[_0x3b4bf9('0x1b11')](_0x3b4bf9('0x1057'))}),_0x1d377b(_0x30b3e9['triggers']);})[_0x31efb5('0x1cb5')](function(_0x57bc5c){const _0x80b2a0=_0x31efb5;if(_0x57bc5c[_0x80b2a0('0x11fc')]&&_0x57bc5c[_0x80b2a0('0x11fc')][_0x80b2a0('0x25be')]&&_0x57bc5c['data'][_0x80b2a0('0x25be')][_0x80b2a0('0x2566')]){_0x30b3e9[_0x80b2a0('0x25be')]=_0x57bc5c['data'][_0x80b2a0('0x25be')]||[{'message':_0x57bc5c['toString'](),'type':_0x80b2a0('0x1702')}];for(let _0x4a9210=0x0;_0x4a9210<_0x57bc5c['data'][_0x80b2a0('0x25be')][_0x80b2a0('0x2566')];_0x4a9210++){_0x26d6a8[_0x80b2a0('0x5e8')]({'title':_0x57bc5c[_0x80b2a0('0x11fc')][_0x80b2a0('0x25be')][_0x4a9210]['type'],'msg':_0x57bc5c[_0x80b2a0('0x11fc')]['errors'][_0x4a9210]['message']});}}else _0x26d6a8[_0x80b2a0('0x5e8')]({'title':_0x57bc5c[_0x80b2a0('0x1b51')]?_0x80b2a0('0x15d1')+_0x57bc5c['status']+_0x80b2a0('0x1b0b')+_0x57bc5c[_0x80b2a0('0x22ce')]:_0x80b2a0('0x1702'),'msg':_0x57bc5c[_0x80b2a0('0x11fc')]?JSON['stringify'](_0x57bc5c[_0x80b2a0('0x11fc')]['message']):_0x57bc5c[_0x80b2a0('0x17df')]()});});}function _0x3e7ed2(_0x24bab5){const _0x56bc66=_0x419d94;_0x30b3e9[_0x56bc66('0x25be')]=[];const _0xb3e0b1=_0x1c958b[_0x56bc66('0x112e')]({'skipHide':!![]})[_0x56bc66('0x14e4')](_0x5f5134[_0x56bc66('0x1b11')](_0x56bc66('0x61a')))[_0x56bc66('0x1c98')](_0x5f5134[_0x56bc66('0x1b11')](_0x56bc66('0x260'),{'name':_0x30b3e9['trigger']['name']}))['ariaLabel']('Delete\x20trigger')['ok'](_0x5f5134[_0x56bc66('0x1b11')]('TOOLS.DELETE'))[_0x56bc66('0x1801')](_0x5f5134[_0x56bc66('0x1b11')](_0x56bc66('0x1061')))['targetEvent'](_0x24bab5);_0x1c958b[_0x56bc66('0x2fa')](_0xb3e0b1)['then'](function(){const _0xa0606a=_0x56bc66;_0x518844[_0xa0606a('0x126e')][_0xa0606a('0x17c4')]({'id':_0x30b3e9[_0xa0606a('0x126e')]['id']})[_0xa0606a('0x1714')][_0xa0606a('0x2788')](function(){const _0x5e462f=_0xa0606a;_0x30b3e9[_0x5e462f('0x1f1')]=_0x283545()[_0x5e462f('0x916')](_0x30b3e9[_0x5e462f('0x1f1')],function(_0xaa0453){const _0x59a6c5=_0x5e462f;return _0xaa0453['id']!==_0x30b3e9[_0x59a6c5('0x126e')]['id'];}),_0x26d6a8[_0x5e462f('0x173b')]({'title':_0x5f5134[_0x5e462f('0x1b11')](_0x5e462f('0x22be'))}),_0x1d377b(_0x30b3e9['triggers']);})[_0xa0606a('0x1cb5')](function(_0x4b42ba){const _0xdbfb79=_0xa0606a;if(_0x4b42ba[_0xdbfb79('0x11fc')]&&_0x4b42ba[_0xdbfb79('0x11fc')][_0xdbfb79('0x25be')]&&_0x4b42ba['data']['errors'][_0xdbfb79('0x2566')]){_0x30b3e9[_0xdbfb79('0x25be')]=_0x4b42ba[_0xdbfb79('0x11fc')][_0xdbfb79('0x25be')]||[{'message':_0x4b42ba['toString'](),'type':'api.trigger.delete'}];for(let _0x35553b=0x0;_0x35553b<_0x4b42ba[_0xdbfb79('0x11fc')]['errors']['length'];_0x35553b++){_0x26d6a8[_0xdbfb79('0x5e8')]({'title':_0x4b42ba[_0xdbfb79('0x11fc')][_0xdbfb79('0x25be')][_0x35553b][_0xdbfb79('0x1d7')],'msg':_0x4b42ba[_0xdbfb79('0x11fc')][_0xdbfb79('0x25be')][_0x35553b]['message']});}}else _0x26d6a8[_0xdbfb79('0x5e8')]({'title':_0x4b42ba[_0xdbfb79('0x1b51')]?'API:'+_0x4b42ba[_0xdbfb79('0x1b51')]+'\x20-\x20'+_0x4b42ba['statusText']:_0xdbfb79('0xf22'),'msg':_0x4b42ba['data']?JSON[_0xdbfb79('0x1be0')](_0x4b42ba[_0xdbfb79('0x11fc')][_0xdbfb79('0x15e2')]):_0x4b42ba[_0xdbfb79('0x15e2')]||_0x4b42ba['toString']()});});},function(){});}function _0x1d377b(_0x36a261){_0x1c958b['hide'](_0x36a261);}}const _0x9bb8d=_0x35873b,_0x7cc7a9=_0x18dd13['p']+_0x34e79e('0xa78');_0x17d658[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$translate',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x17d658(_0x55d1fb,_0xb09bef,_0x4f1122,_0x3e4e4f,_0x29ee2c,_0x28fdc5,_0xf3dfdd,_0x2525a0){const _0x5a0123=_0x34e79e,_0x15fc1f=this;_0x15fc1f[_0x5a0123('0x9cb')]=_0x2525a0[_0x5a0123('0x24cc')](),_0x15fc1f[_0x5a0123('0x126e')]={},_0x15fc1f[_0x5a0123('0x4c8')]={'count':0x0,'rows':[]},_0x15fc1f[_0x5a0123('0x65')]=[],_0x15fc1f['query']={'fields':_0x5a0123('0xaf7'),'limit':0xa,'page':0x1},_0x15fc1f[_0x5a0123('0xb86')]={'zendesk':_0x5a0123('0x10db'),'salesforce':_0x5a0123('0x246c'),'sugarcrm':_0x5a0123('0x23b'),'freshdesk':_0x5a0123('0x2206'),'desk':_0x5a0123('0x15f6'),'zoho':_0x5a0123('0x25bd'),'vtiger':_0x5a0123('0x1bc7'),'dynamics365':'Dynamics365','servicenow':'ServiceNow','freshsales':_0x5a0123('0x107e')},_0x15fc1f[_0x5a0123('0xd68')]={0x0:_0x5a0123('0x853'),0x1:_0x5a0123('0x1fd'),0x2:_0x5a0123('0x26cd')},_0x15fc1f['onInit']=_0x734fd5,_0x15fc1f[_0x5a0123('0x173b')]=_0xf5e5df,_0x15fc1f['getTriggerActions']=_0x4ab2db,_0x15fc1f[_0x5a0123('0xd0e')]=_0xe3e571,_0x15fc1f[_0x5a0123('0x2525')]=_0x2030ee,_0x15fc1f[_0x5a0123('0x16a')]=_0x1fb91c,_0x15fc1f[_0x5a0123('0x819')]=_0x448453;function _0x734fd5(_0x165ee5,_0x5cf1fd){const _0x4b5a52=_0x5a0123;_0x15fc1f['trigger']=_0x165ee5,_0x15fc1f[_0x4b5a52('0xe28')]=typeof _0x5cf1fd!==_0x4b5a52('0xedb')?_0x5cf1fd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x15fc1f[_0x4b5a52('0x135a')]['ActionId']=_0x15fc1f[_0x4b5a52('0x126e')]['id'],_0x15fc1f['query']['id']=_0x15fc1f[_0x4b5a52('0x126e')]['id'],_0x4ab2db();}function _0x380c2a(){const _0x440338=_0x5a0123;_0x2525a0[_0x440338('0x1e40')]()?_0xf3dfdd['cmList'][_0x440338('0x1335')]({'fields':_0x440338('0x1338'),'sort':'name','nolimit':_0x440338('0x1001')})[_0x440338('0x1714')]['then'](function(_0x65b367){const _0x4f1076=_0x440338;_0x15fc1f[_0x4f1076('0x2')]=_0x65b367[_0x4f1076('0x25df')]||[];})[_0x440338('0x1cb5')](function(_0x43ff09){const _0x30f1be=_0x440338;_0x28fdc5[_0x30f1be('0x5e8')]({'title':_0x43ff09[_0x30f1be('0x1b51')]?_0x30f1be('0x15d1')+_0x43ff09[_0x30f1be('0x1b51')]+'\x20-\x20'+_0x43ff09[_0x30f1be('0x22ce')]:'SYSTEM:GET_LISTS','msg':_0x43ff09[_0x30f1be('0x11fc')]?JSON[_0x30f1be('0x1be0')](_0x43ff09[_0x30f1be('0x11fc')]):_0x43ff09[_0x30f1be('0x17df')]()});}):_0xf3dfdd['cmList'][_0x440338('0x1335')]({'fields':_0x440338('0x1338'),'sort':_0x440338('0x1a8d'),'nolimit':'true'})[_0x440338('0x1714')]['then'](function(_0x3449f7){const _0x46b22a=_0x440338;_0x15fc1f[_0x46b22a('0x2')]=_0x3449f7[_0x46b22a('0x25df')]||[];})['then'](function(){const _0x4bd1d4=_0x440338;return _0xf3dfdd[_0x4bd1d4('0xec9')][_0x4bd1d4('0x1335')]({'userProfileId':_0x15fc1f['currentUser']['userProfileId'],'sectionId':0x12d})[_0x4bd1d4('0x1714')];})[_0x440338('0x2788')](function(_0x996ec4){const _0x346bc2=_0x440338,_0x537ddf=_0x996ec4&&_0x996ec4[_0x346bc2('0x25df')]?_0x996ec4[_0x346bc2('0x25df')][0x0]:null;if(!_0x537ddf){const _0xea3f0e=[],_0xd2bccd=[];_0x15fc1f[_0x346bc2('0x4c8')][_0x346bc2('0x25df')][_0x346bc2('0x1534')](function(_0x3c7cb6){const _0x1cca04=_0x346bc2;if(_0x3c7cb6['action']===_0x1cca04('0x27db')){const _0x185c17=_0x283545()[_0x1cca04('0x20e8')](_0x15fc1f[_0x1cca04('0x2')],{'id':Number(_0x3c7cb6['data1'])});_0xd2bccd[_0x1cca04('0x13e3')](_0x185c17);}});for(let _0x3868a8=0x0;_0x3868a8<_0x15fc1f[_0x346bc2('0x2')]['length'];_0x3868a8++){const _0x3bf3db=_0x283545()['some'](_0xd2bccd,{'id':_0x15fc1f[_0x346bc2('0x2')][_0x3868a8]['id']});_0x3bf3db&&(_0x15fc1f[_0x346bc2('0x2')][_0x3868a8][_0x346bc2('0x3bf')]=![],_0xea3f0e[_0x346bc2('0x13e3')](_0x15fc1f[_0x346bc2('0x2')][_0x3868a8]));}_0x15fc1f[_0x346bc2('0x2')]=_0xea3f0e;}else{if(!_0x537ddf['autoAssociation'])return _0xf3dfdd[_0x346bc2('0x1050')][_0x346bc2('0x1335')]({'sectionId':_0x537ddf['id']})[_0x346bc2('0x1714')][_0x346bc2('0x2788')](function(_0x261289){const _0x407494=_0x346bc2,_0x123676=_0x283545()[_0x407494('0x155d')](_0x261289['rows'],function(_0x333106){const _0x4a15f5=_0x407494;return _0x283545()[_0x4a15f5('0x20e8')](_0x15fc1f[_0x4a15f5('0x2')],{'id':_0x333106[_0x4a15f5('0x2707')]});});let _0x431b54=null;_0x431b54=[],_0x15fc1f[_0x407494('0x4c8')]['rows'][_0x407494('0x1534')](function(_0x483853){const _0x3ee720=_0x407494;if(_0x483853[_0x3ee720('0x116c')]===_0x3ee720('0x27db')){const _0x213ecc=_0x283545()[_0x3ee720('0x20e8')](_0x15fc1f[_0x3ee720('0x2')],{'id':Number(_0x483853[_0x3ee720('0x623')])});_0x431b54[_0x3ee720('0x13e3')](_0x213ecc);}}),!_0x283545()[_0x407494('0x213d')](_0x431b54)&&_0x431b54['forEach'](function(_0x1fb633){const _0x280204=_0x407494;if(!_0x283545()['some'](_0x123676,['id',_0x1fb633['id']])){const _0xe39d4=_0x283545()[_0x280204('0x20e8')](_0x15fc1f[_0x280204('0x2')],{'id':_0x1fb633['id']});_0xe39d4[_0x280204('0x3bf')]=![],_0x123676['push'](_0xe39d4);}}),_0x15fc1f['lists']=_0x123676;});}})[_0x440338('0x1cb5')](function(_0x8f0873){const _0x403396=_0x440338;_0x28fdc5[_0x403396('0x5e8')]({'title':_0x8f0873[_0x403396('0x1b51')]?_0x403396('0x15d1')+_0x8f0873[_0x403396('0x1b51')]+_0x403396('0x1b0b')+_0x8f0873[_0x403396('0x22ce')]:'SYSTEM:GETlists','msg':_0x8f0873[_0x403396('0x11fc')]?JSON[_0x403396('0x1be0')](_0x8f0873[_0x403396('0x11fc')]):_0x8f0873[_0x403396('0x17df')]()});});}function _0x458770(){const _0x47d966=_0x5a0123,_0x1bc079=_0x283545()(_0x15fc1f['triggerActions'][_0x47d966('0x25df')])[_0x47d966('0x155d')](function(_0x1bf7c6){const _0x1bd32f=_0x47d966;return _0x1bf7c6['action']===_0x1bd32f('0x9e5')?_0x1bf7c6[_0x1bd32f('0x623')]:undefined;})[_0x47d966('0x24f5')]()[_0x47d966('0xe4a')]()['value']();_0x1bc079[_0x47d966('0x1534')](function(_0x41c4bd){const _0x2209cb=_0x47d966,_0x4a0c8a=_0x41c4bd+'Accounts';if(!_0x15fc1f[_0x4a0c8a]){const _0x173066=_0x2209cb('0x339')+_0x283545()[_0x2209cb('0x114')](_0x41c4bd)+_0x2209cb('0x140b');_0xf3dfdd[_0x173066][_0x2209cb('0x1335')]({'fields':_0x2209cb('0x1338'),'sort':'id','nolimit':_0x2209cb('0x1001')})[_0x2209cb('0x1714')][_0x2209cb('0x2788')](function(_0xba3429){const _0x154a69=_0x2209cb;_0x15fc1f[_0x4a0c8a]=_0xba3429[_0x154a69('0x25df')]||[];})[_0x2209cb('0x1cb5')](function(_0x52cec8){const _0x2828fc=_0x2209cb;_0x28fdc5[_0x2828fc('0x5e8')]({'title':_0x52cec8[_0x2828fc('0x1b51')]?_0x2828fc('0x15d1')+_0x52cec8[_0x2828fc('0x1b51')]+_0x2828fc('0x1b0b')+_0x52cec8[_0x2828fc('0x22ce')]:_0x2828fc('0xb2b')+_0x4a0c8a[_0x2828fc('0x25e6')]()+_0x2828fc('0xde9'),'msg':_0x52cec8['data']?JSON['stringify'](_0x52cec8[_0x2828fc('0x11fc')]):_0x52cec8['toString']()});});}});}function _0x44e794(){const _0x18f659=_0x5a0123;_0x2525a0[_0x18f659('0x1e40')]()?_0xf3dfdd[_0x18f659('0xf5b')][_0x18f659('0x1335')]({'fields':_0x18f659('0x1338'),'sort':_0x18f659('0x1a8d'),'nolimit':'true'})[_0x18f659('0x1714')][_0x18f659('0x2788')](function(_0x290bcc){const _0x454f5e=_0x18f659;_0x15fc1f[_0x454f5e('0x18f9')]=_0x290bcc[_0x454f5e('0x25df')]||[];})[_0x18f659('0x1cb5')](function(_0x48e8f4){const _0x514a25=_0x18f659;_0x28fdc5[_0x514a25('0x5e8')]({'title':_0x48e8f4[_0x514a25('0x1b51')]?'API:'+_0x48e8f4[_0x514a25('0x1b51')]+_0x514a25('0x1b0b')+_0x48e8f4[_0x514a25('0x22ce')]:'SYSTEM:GET_PROJECTS','msg':_0x48e8f4[_0x514a25('0x11fc')]?JSON[_0x514a25('0x1be0')](_0x48e8f4[_0x514a25('0x11fc')]):_0x48e8f4['toString']()});}):_0xf3dfdd[_0x18f659('0xf5b')][_0x18f659('0x1335')]({'fields':_0x18f659('0x1338'),'sort':_0x18f659('0x1a8d'),'nolimit':_0x18f659('0x1001')})['$promise'][_0x18f659('0x2788')](function(_0x46c483){const _0x57f8ec=_0x18f659;_0x15fc1f[_0x57f8ec('0x18f9')]=_0x46c483[_0x57f8ec('0x25df')]||[];})[_0x18f659('0x2788')](function(){const _0x32c293=_0x18f659;return _0xf3dfdd[_0x32c293('0xec9')]['get']({'userProfileId':_0x15fc1f[_0x32c293('0x9cb')][_0x32c293('0x237f')],'sectionId':0x6a5})['$promise'];})[_0x18f659('0x2788')](function(_0xc70c82){const _0x5826bf=_0x18f659,_0x1eaffe=_0xc70c82&&_0xc70c82[_0x5826bf('0x25df')]?_0xc70c82[_0x5826bf('0x25df')][0x0]:null;if(!_0x1eaffe){const _0x23b318=[],_0x4143b2=[];_0x15fc1f['triggerActions'][_0x5826bf('0x25df')][_0x5826bf('0x1534')](function(_0x55c550){const _0x45e71a=_0x5826bf;if(_0x55c550[_0x45e71a('0x116c')]===_0x45e71a('0x184c')){const _0x5e0044=_0x283545()['find'](_0x15fc1f[_0x45e71a('0x18f9')],{'id':Number(_0x55c550['data1'])});_0x4143b2['push'](_0x5e0044);}});for(let _0x1064a4=0x0;_0x1064a4<_0x15fc1f['projects'][_0x5826bf('0x2566')];_0x1064a4++){const _0x366467=_0x283545()[_0x5826bf('0xc5d')](_0x4143b2,{'id':_0x15fc1f['projects'][_0x1064a4]['id']});_0x366467&&(_0x15fc1f['projects'][_0x1064a4][_0x5826bf('0x3bf')]=![],_0x23b318['push'](_0x15fc1f[_0x5826bf('0x18f9')][_0x1064a4]));}_0x15fc1f[_0x5826bf('0x18f9')]=_0x23b318;}else{if(!_0x1eaffe['autoAssociation'])return _0xf3dfdd[_0x5826bf('0x1050')][_0x5826bf('0x1335')]({'sectionId':_0x1eaffe['id']})['$promise'][_0x5826bf('0x2788')](function(_0x59bb65){const _0x5be8c3=_0x5826bf,_0x3e16f1=_0x283545()[_0x5be8c3('0x155d')](_0x59bb65[_0x5be8c3('0x25df')],function(_0x1c270f){const _0x77d01b=_0x5be8c3;return _0x283545()[_0x77d01b('0x20e8')](_0x15fc1f[_0x77d01b('0x18f9')],{'id':_0x1c270f['resourceId']});});let _0x32f672=null;_0x32f672=[],_0x15fc1f[_0x5be8c3('0x4c8')][_0x5be8c3('0x25df')][_0x5be8c3('0x1534')](function(_0x3053fa){const _0x2ce85c=_0x5be8c3;if(_0x3053fa[_0x2ce85c('0x116c')]===_0x2ce85c('0x184c')){const _0x28aac0=_0x283545()[_0x2ce85c('0x20e8')](_0x15fc1f[_0x2ce85c('0x18f9')],{'id':Number(_0x3053fa[_0x2ce85c('0x623')])});_0x32f672[_0x2ce85c('0x13e3')](_0x28aac0);}}),!_0x283545()[_0x5be8c3('0x213d')](_0x32f672)&&_0x32f672[_0x5be8c3('0x1534')](function(_0x3ad412){const _0x114017=_0x5be8c3;if(!_0x283545()['some'](_0x3e16f1,['id',_0x3ad412['id']])){const _0x2abf6b=_0x283545()['find'](_0x15fc1f['projects'],{'id':_0x3ad412['id']});_0x2abf6b[_0x114017('0x3bf')]=![],_0x3e16f1[_0x114017('0x13e3')](_0x2abf6b);}}),_0x15fc1f[_0x5be8c3('0x18f9')]=_0x3e16f1;});}})[_0x18f659('0x1cb5')](function(_0x2a1cfc){const _0x151057=_0x18f659;_0x28fdc5[_0x151057('0x5e8')]({'title':_0x2a1cfc[_0x151057('0x1b51')]?_0x151057('0x15d1')+_0x2a1cfc['status']+_0x151057('0x1b0b')+_0x2a1cfc[_0x151057('0x22ce')]:_0x151057('0x1d8c'),'msg':_0x2a1cfc['data']?JSON['stringify'](_0x2a1cfc[_0x151057('0x11fc')]):_0x2a1cfc[_0x151057('0x17df')]()});});}function _0x2f1e35(){const _0x465a9a=_0x5a0123;_0x2525a0[_0x465a9a('0x1e40')]()?_0xf3dfdd[_0x465a9a('0x2273')]['get']({'fields':_0x465a9a('0x1338'),'sort':'id','nolimit':'true'})[_0x465a9a('0x1714')][_0x465a9a('0x2788')](function(_0x19463c){const _0x36ad2d=_0x465a9a;_0x15fc1f[_0x36ad2d('0x1f48')]=_0x19463c[_0x36ad2d('0x25df')]||[];})[_0x465a9a('0x1cb5')](function(_0x4afe74){const _0x258c70=_0x465a9a;_0x28fdc5[_0x258c70('0x5e8')]({'title':_0x4afe74[_0x258c70('0x1b51')]?_0x258c70('0x15d1')+_0x4afe74[_0x258c70('0x1b51')]+_0x258c70('0x1b0b')+_0x4afe74[_0x258c70('0x22ce')]:_0x258c70('0x3d3'),'msg':_0x4afe74['data']?JSON[_0x258c70('0x1be0')](_0x4afe74[_0x258c70('0x11fc')]):_0x4afe74[_0x258c70('0x17df')]()});}):_0xf3dfdd[_0x465a9a('0x2273')][_0x465a9a('0x1335')]({'fields':_0x465a9a('0x1338'),'sort':'id','nolimit':_0x465a9a('0x1001')})['$promise'][_0x465a9a('0x2788')](function(_0x5443f2){const _0x10f005=_0x465a9a;_0x15fc1f['templates']=_0x5443f2[_0x10f005('0x25df')]||[];})[_0x465a9a('0x2788')](function(){const _0x1a801c=_0x465a9a;return _0xf3dfdd[_0x1a801c('0xec9')][_0x1a801c('0x1335')]({'userProfileId':_0x15fc1f['currentUser'][_0x1a801c('0x237f')],'sectionId':0x3f1})['$promise'];})['then'](function(_0x2ad89a){const _0x1e34fb=_0x465a9a,_0x35303f=_0x2ad89a&&_0x2ad89a[_0x1e34fb('0x25df')]?_0x2ad89a['rows'][0x0]:null;if(!_0x35303f){const _0x42ed2f=[],_0x4979e0=[];_0x15fc1f['triggerActions'][_0x1e34fb('0x25df')][_0x1e34fb('0x1534')](function(_0x4fc615){const _0x1d2a69=_0x1e34fb;if(_0x283545()['includes'](['motionbar',_0x1d2a69('0x401')],_0x4fc615[_0x1d2a69('0x116c')])){const _0x437ca8=_0x283545()[_0x1d2a69('0x20e8')](_0x15fc1f[_0x1d2a69('0x1f48')],{'id':Number(_0x4fc615[_0x1d2a69('0x1793')])});_0x4979e0[_0x1d2a69('0x13e3')](_0x437ca8);}});for(let _0x302463=0x0;_0x302463<_0x15fc1f[_0x1e34fb('0x1f48')][_0x1e34fb('0x2566')];_0x302463++){const _0x403050=_0x283545()[_0x1e34fb('0xc5d')](_0x4979e0,{'id':_0x15fc1f[_0x1e34fb('0x1f48')][_0x302463]['id']});_0x403050&&(_0x15fc1f[_0x1e34fb('0x1f48')][_0x302463][_0x1e34fb('0x3bf')]=![],_0x42ed2f[_0x1e34fb('0x13e3')](_0x15fc1f[_0x1e34fb('0x1f48')][_0x302463]));}_0x15fc1f[_0x1e34fb('0x1f48')]=_0x42ed2f;}else{if(!_0x35303f[_0x1e34fb('0x1c0a')])return _0xf3dfdd[_0x1e34fb('0x1050')][_0x1e34fb('0x1335')]({'sectionId':_0x35303f['id']})[_0x1e34fb('0x1714')][_0x1e34fb('0x2788')](function(_0xe92d96){const _0x3825b0=_0x1e34fb,_0x10b7b1=_0x283545()[_0x3825b0('0x155d')](_0xe92d96[_0x3825b0('0x25df')],function(_0x25fe19){const _0x3c85df=_0x3825b0;return _0x283545()[_0x3c85df('0x20e8')](_0x15fc1f[_0x3c85df('0x1f48')],{'id':_0x25fe19[_0x3c85df('0x2707')]});});let _0x9ab83=null;_0x9ab83=[],_0x15fc1f[_0x3825b0('0x4c8')][_0x3825b0('0x25df')]['forEach'](function(_0x436915){const _0x24b28c=_0x3825b0;if(_0x283545()[_0x24b28c('0x1d4e')]([_0x24b28c('0x1d7e'),_0x24b28c('0x401')],_0x436915[_0x24b28c('0x116c')])){const _0x21d006=_0x283545()[_0x24b28c('0x20e8')](_0x15fc1f[_0x24b28c('0x1f48')],{'id':Number(_0x436915[_0x24b28c('0x1793')])});_0x9ab83[_0x24b28c('0x13e3')](_0x21d006);}}),!_0x283545()[_0x3825b0('0x213d')](_0x9ab83)&&_0x9ab83[_0x3825b0('0x1534')](function(_0x2e4da7){const _0x242a9c=_0x3825b0;if(!_0x283545()[_0x242a9c('0xc5d')](_0x10b7b1,['id',_0x2e4da7['id']])){const _0x473fd7=_0x283545()[_0x242a9c('0x20e8')](_0x15fc1f[_0x242a9c('0x1f48')],{'id':_0x2e4da7['id']});_0x473fd7[_0x242a9c('0x3bf')]=![],_0x10b7b1['push'](_0x473fd7);}}),_0x15fc1f[_0x3825b0('0x1f48')]=_0x10b7b1;});}})[_0x465a9a('0x1cb5')](function(_0x1833d){const _0x3eebd1=_0x465a9a;_0x28fdc5[_0x3eebd1('0x5e8')]({'title':_0x1833d[_0x3eebd1('0x1b51')]?_0x3eebd1('0x15d1')+_0x1833d[_0x3eebd1('0x1b51')]+_0x3eebd1('0x1b0b')+_0x1833d['statusText']:_0x3eebd1('0x3d3'),'msg':_0x1833d[_0x3eebd1('0x11fc')]?JSON[_0x3eebd1('0x1be0')](_0x1833d[_0x3eebd1('0x11fc')]):_0x1833d[_0x3eebd1('0x17df')]()});});}function _0xde8165(){const _0x402841=_0x5a0123;if(_0x283545()[_0x402841('0xc5d')](_0x15fc1f[_0x402841('0x4c8')][_0x402841('0x25df')],[_0x402841('0x116c'),'contactManager'])){if(!_0x15fc1f[_0x402841('0x2')])_0x380c2a();}_0x283545()['some'](_0x15fc1f['triggerActions'][_0x402841('0x25df')],[_0x402841('0x116c'),_0x402841('0x9e5')])&&_0x458770();if(_0x283545()[_0x402841('0xc5d')](_0x15fc1f[_0x402841('0x4c8')][_0x402841('0x25df')],function(_0x1a52c5){const _0x5232e6=_0x402841;return _0x283545()[_0x5232e6('0x1d4e')](['motionbar',_0x5232e6('0x401')],_0x1a52c5[_0x5232e6('0x116c')]);})){if(!_0x15fc1f['templates'])_0x2f1e35();}if(_0x283545()['some'](_0x15fc1f[_0x402841('0x4c8')][_0x402841('0x25df')],[_0x402841('0x116c'),_0x402841('0x184c')])){if(!_0x15fc1f['projects'])_0x44e794();}}function _0xf5e5df(_0x3b5a21){const _0x424e6a=_0x5a0123;_0x15fc1f[_0x424e6a('0x4c8')]=_0x3b5a21||{'count':0x0,'rows':[]},_0xde8165();}function _0x4ab2db(){const _0x17adce=_0x5a0123;_0x15fc1f[_0x17adce('0x135a')][_0x17adce('0x19e')]=(_0x15fc1f['query'][_0x17adce('0x23f5')]-0x1)*_0x15fc1f['query'][_0x17adce('0x68e')],_0x15fc1f[_0x17adce('0x1808')]=_0xf3dfdd[_0x17adce('0x126e')][_0x17adce('0x20b5')](_0x15fc1f[_0x17adce('0x135a')],_0xf5e5df)[_0x17adce('0x1714')];}function _0xe3e571(_0x791910,_0x554402){const _0x40bbb5=_0x5a0123;_0x3e4e4f['show']({'controller':_0x40bbb5('0x2207'),'controllerAs':'vm','templateUrl':_0x7cc7a9,'parent':angular[_0x40bbb5('0x16b1')](_0x29ee2c[_0x40bbb5('0x945')]),'targetEvent':_0x791910,'clickOutsideToClose':!![],'locals':{'trigger':_0x15fc1f[_0x40bbb5('0x126e')],'action':_0x554402,'actions':_0x15fc1f[_0x40bbb5('0x4c8')][_0x40bbb5('0x25df')],'license':null,'setting':null,'crudPermissions':_0x15fc1f[_0x40bbb5('0xe28')]}})[_0x40bbb5('0x2788')](function(_0x331c55){const _0x21e268=_0x40bbb5;_0x331c55&&(_0x15fc1f[_0x21e268('0x4c8')]={'count':_0x331c55[_0x21e268('0x2566')],'rows':_0x331c55},_0xde8165());});}function _0x1fb91c(_0xbb05ce,_0x15fe15){const _0x3f6117=_0x5a0123,_0x26024a=_0x3e4e4f[_0x3f6117('0x112e')]()[_0x3f6117('0x14e4')](_0xb09bef[_0x3f6117('0x1b11')](_0x3f6117('0xb9f')))[_0x3f6117('0x10bc')](_0x3f6117('0xc8'))['targetEvent'](_0x15fe15)['ok']('OK')[_0x3f6117('0x1801')](_0xb09bef[_0x3f6117('0x1b11')](_0x3f6117('0x1061')));_0x3e4e4f[_0x3f6117('0x2fa')](_0x26024a)[_0x3f6117('0x2788')](function(){_0x2b52ea(_0xbb05ce,!![]);});}function _0x2b52ea(_0x519074,_0x5e5d36){const _0x560c16=_0x5a0123;_0xf3dfdd[_0x560c16('0x116c')][_0x560c16('0x17c4')]({'id':_0x519074['id']})[_0x560c16('0x1714')]['then'](function(){const _0x17be5b=_0x560c16;_0x4ab2db(),_0x5e5d36&&_0x28fdc5['success']({'title':_0xb09bef[_0x17be5b('0x1b11')]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')});})[_0x560c16('0x1cb5')](function(_0x336303){const _0x1504d8=_0x560c16;if(_0x336303[_0x1504d8('0x11fc')]&&_0x336303[_0x1504d8('0x11fc')]['errors']&&_0x336303[_0x1504d8('0x11fc')][_0x1504d8('0x25be')][_0x1504d8('0x2566')]){_0x15fc1f[_0x1504d8('0x25be')]=_0x336303['data'][_0x1504d8('0x25be')]||[{'message':_0x336303[_0x1504d8('0x17df')](),'type':_0x1504d8('0x221c')}];for(let _0x3550a5=0x0;_0x3550a5<_0x336303[_0x1504d8('0x11fc')][_0x1504d8('0x25be')][_0x1504d8('0x2566')];_0x3550a5++){_0x28fdc5[_0x1504d8('0x5e8')]({'title':_0x336303[_0x1504d8('0x11fc')][_0x1504d8('0x25be')][_0x3550a5]['type'],'msg':_0x336303[_0x1504d8('0x11fc')][_0x1504d8('0x25be')][_0x3550a5]['message']});}}else _0x28fdc5['error']({'title':_0x336303['status']?_0x1504d8('0x15d1')+_0x336303[_0x1504d8('0x1b51')]+_0x1504d8('0x1b0b')+_0x336303[_0x1504d8('0x22ce')]:_0x1504d8('0x221c'),'msg':_0x336303['data']?JSON[_0x1504d8('0x1be0')](_0x336303[_0x1504d8('0x11fc')][_0x1504d8('0x15e2')]):_0x336303['message']||_0x336303['toString']()});});}function _0x2030ee(){const _0x2726cb=_0x5a0123,_0x2ec3b7=angular[_0x2726cb('0x2669')](_0x15fc1f[_0x2726cb('0x65')]);return _0x15fc1f[_0x2726cb('0x65')]=[],_0x2ec3b7;}function _0x448453(_0x4735c8){const _0x25ddcf=_0x5a0123,_0x1cd36a=_0x3e4e4f[_0x25ddcf('0x112e')]()['title'](_0xb09bef[_0x25ddcf('0x1b11')]('TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE'))[_0x25ddcf('0x1c98')](_0xb09bef[_0x25ddcf('0x1b11')](_0x25ddcf('0x1ce8'),{'total':_0x15fc1f[_0x25ddcf('0x65')]['length']}))[_0x25ddcf('0x10bc')](_0x25ddcf('0x14dc'))[_0x25ddcf('0x24d0')](_0x4735c8)['ok']('OK')[_0x25ddcf('0x1801')](_0xb09bef[_0x25ddcf('0x1b11')](_0x25ddcf('0x1061')));_0x3e4e4f['show'](_0x1cd36a)[_0x25ddcf('0x2788')](function(){const _0x488db9=_0x25ddcf;_0x15fc1f[_0x488db9('0x65')][_0x488db9('0x1534')](function(_0x2b77e8){_0x2b52ea(_0x2b77e8);}),_0x15fc1f[_0x488db9('0x65')]=[],_0x28fdc5[_0x488db9('0x173b')]({'title':_0xb09bef[_0x488db9('0x1b11')](_0x488db9('0xfc'))});});}let _0x51a8ae=!![],_0x27fdf7=0x1;_0x55d1fb[_0x5a0123('0x1662')](_0x5a0123('0x2571'),function(_0x3ce4f2,_0x4b2f8f){const _0x565197=_0x5a0123;_0x51a8ae?_0x4f1122(function(){_0x51a8ae=![];}):(!_0x4b2f8f&&(_0x27fdf7=_0x15fc1f['query'][_0x565197('0x23f5')]),_0x3ce4f2!==_0x4b2f8f&&(_0x15fc1f[_0x565197('0x135a')]['page']=0x1),!_0x3ce4f2&&(_0x15fc1f[_0x565197('0x135a')][_0x565197('0x23f5')]=_0x27fdf7),_0x4ab2db());});}const _0x4aa70b=_0x17d658;_0x146455[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$mdDialog','$translate',_0x34e79e('0xd57'),_0x34e79e('0x6d'),'action',_0x34e79e('0x126e'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x146455(_0x1d2477,_0x33bc86,_0x4da7dc,_0x491b12,_0x282188,_0x8616e2,_0x1542e2,_0x46d524,_0x328131,_0xac05db,_0x1272ac,_0x39230a){const _0x1840b9=_0x34e79e,_0x3d23b2=this;_0x3d23b2[_0x1840b9('0x9cb')]=_0x328131[_0x1840b9('0x24cc')](),_0x3d23b2['action']=angular['copy'](_0x8616e2),_0x3d23b2[_0x1840b9('0x6d')]=angular[_0x1840b9('0x2669')](_0x282188),_0x3d23b2['setting']=_0x1272ac,_0x3d23b2['license']=_0xac05db,_0x3d23b2[_0x1840b9('0xe28')]=_0x39230a,_0x3d23b2[_0x1840b9('0x9cd')]=![],_0x3d23b2[_0x1840b9('0x25be')]=[],_0x3d23b2['trigger']=angular[_0x1840b9('0x2669')](_0x1542e2);!_0x3d23b2[_0x1840b9('0x116c')]&&(_0x3d23b2[_0x1840b9('0x116c')]={},_0x3d23b2['newAction']=!![]);_0x3d23b2[_0x1840b9('0x116c')]['ActionId']=_0x1d2477[_0x1840b9('0x4b9')]['id']||undefined,_0x3d23b2[_0x1840b9('0x1207')]=['phone',_0x1840b9('0x246'),_0x1840b9('0x10cf')],_0x3d23b2['addNewAction']=_0x431677,_0x3d23b2[_0x1840b9('0x1213')]=_0x307bed,_0x3d23b2[_0x1840b9('0x630')]=_0x33ed48,_0x3d23b2[_0x1840b9('0x26cc')]=_0x58db70,_0x3d23b2['onIntegrationInit']=_0xf8cabb,_0x3d23b2[_0x1840b9('0x11a7')]=_0x56c4bb,_0x3d23b2[_0x1840b9('0x1d16')]=_0x137d87,_0x3d23b2[_0x1840b9('0x212')]=_0x8080dc,_0x3d23b2[_0x1840b9('0x1b88')]=_0x54be79,_0x3d23b2['onTypeSelection']=_0x2054f5,_0x3d23b2[_0x1840b9('0x21e9')]=_0x167e49,_0x3d23b2[_0x1840b9('0xa86')]=_0x40f2c7,_0x3d23b2[_0x1840b9('0xca7')]=_0x162890;function _0x58db70(){const _0xf12d24=_0x1840b9;_0x328131[_0xf12d24('0x1193')](_0xf12d24('0x1e35'))[_0xf12d24('0x2788')](function(_0x5d390a){const _0x25d950=_0xf12d24;_0x3d23b2[_0x25d950('0x1754')]=_0x5d390a;})['catch'](function(_0x62e55e){const _0x479773=_0xf12d24;_0x491b12[_0x479773('0x5e8')]({'title':_0x62e55e[_0x479773('0x1b51')]?_0x479773('0x15d1')+_0x62e55e[_0x479773('0x1b51')]+'\x20-\x20'+_0x62e55e['statusText']:_0x479773('0x233a'),'msg':_0x62e55e[_0x479773('0x11fc')]?JSON[_0x479773('0x1be0')](_0x62e55e[_0x479773('0x11fc')]):_0x62e55e[_0x479773('0x17df')]()});});if(_0x3d23b2['action'][_0xf12d24('0x116c')])_0x4f3c65();}function _0xf8cabb(){const _0x54b76c=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x328131['hasSectionsPermissions'](_0x54b76c)['then'](function(_0x1a7787){const _0x25e524=a0_0x14e7;_0x3d23b2[_0x25e524('0x976')]=_0x283545()[_0x25e524('0x2503')](_0x3d23b2[_0x25e524('0x976')],_0x1a7787);})['catch'](function(_0x24c3a1){const _0x52922f=a0_0x14e7;_0x491b12[_0x52922f('0x5e8')]({'title':_0x24c3a1[_0x52922f('0x1b51')]?_0x52922f('0x15d1')+_0x24c3a1['status']+_0x52922f('0x1b0b')+_0x24c3a1[_0x52922f('0x22ce')]:_0x52922f('0x66d'),'msg':_0x24c3a1[_0x52922f('0x11fc')]?JSON[_0x52922f('0x1be0')](_0x24c3a1[_0x52922f('0x11fc')]):_0x24c3a1[_0x52922f('0x17df')]()});});}function _0x56c4bb(){const _0x182c77=_0x1840b9;if(!_0x3d23b2[_0x182c77('0x9cd')])_0x4e2fdb();}function _0x565f00(){const _0x2a708e=_0x1840b9;_0x328131[_0x2a708e('0x1e40')]()?_0x46d524['cmList'][_0x2a708e('0x1335')]({'fields':_0x2a708e('0x1338'),'sort':_0x2a708e('0x1a8d'),'nolimit':_0x2a708e('0x1001')})['$promise'][_0x2a708e('0x2788')](function(_0x19740e){const _0x3c461f=_0x2a708e;_0x3d23b2['lists']=_0x19740e[_0x3c461f('0x25df')]||[];})[_0x2a708e('0x1cb5')](function(_0x1edd81){const _0x59ed80=_0x2a708e;_0x491b12[_0x59ed80('0x5e8')]({'title':_0x1edd81[_0x59ed80('0x1b51')]?_0x59ed80('0x15d1')+_0x1edd81[_0x59ed80('0x1b51')]+_0x59ed80('0x1b0b')+_0x1edd81[_0x59ed80('0x22ce')]:_0x59ed80('0x11da'),'msg':_0x1edd81['data']?JSON['stringify'](_0x1edd81[_0x59ed80('0x11fc')]):_0x1edd81[_0x59ed80('0x17df')]()});}):_0x46d524[_0x2a708e('0x1ba4')][_0x2a708e('0x1335')]({'fields':_0x2a708e('0x1338'),'sort':_0x2a708e('0x1a8d'),'nolimit':_0x2a708e('0x1001')})[_0x2a708e('0x1714')][_0x2a708e('0x2788')](function(_0x2eb400){const _0x4d07c8=_0x2a708e;_0x3d23b2[_0x4d07c8('0x2')]=_0x2eb400[_0x4d07c8('0x25df')]||[];})[_0x2a708e('0x2788')](function(){const _0x58155c=_0x2a708e;return _0x46d524[_0x58155c('0xec9')][_0x58155c('0x1335')]({'userProfileId':_0x3d23b2[_0x58155c('0x9cb')][_0x58155c('0x237f')],'sectionId':0x12d})[_0x58155c('0x1714')];})['then'](function(_0x314e4c){const _0x3be956=_0x2a708e,_0x24c2a9=_0x314e4c&&_0x314e4c[_0x3be956('0x25df')]?_0x314e4c[_0x3be956('0x25df')][0x0]:null;if(!_0x24c2a9){const _0x4c67ab=[],_0x41159e=[];_0x3d23b2[_0x3be956('0x4c8')][_0x3be956('0x25df')][_0x3be956('0x1534')](function(_0x34a1de){const _0x3b5bb1=_0x3be956;if(_0x34a1de[_0x3b5bb1('0x116c')]===_0x3b5bb1('0x27db')){const _0x349a16=_0x283545()[_0x3b5bb1('0x20e8')](_0x3d23b2['lists'],{'id':Number(_0x34a1de[_0x3b5bb1('0x623')])});_0x41159e[_0x3b5bb1('0x13e3')](_0x349a16);}});for(let _0x41ac43=0x0;_0x41ac43<_0x3d23b2[_0x3be956('0x2')][_0x3be956('0x2566')];_0x41ac43++){const _0x575c97=_0x283545()[_0x3be956('0xc5d')](_0x41159e,{'id':_0x3d23b2[_0x3be956('0x2')][_0x41ac43]['id']});_0x575c97&&(_0x3d23b2[_0x3be956('0x2')][_0x41ac43][_0x3be956('0x3bf')]=![],_0x4c67ab[_0x3be956('0x13e3')](_0x3d23b2[_0x3be956('0x2')][_0x41ac43]));}_0x3d23b2[_0x3be956('0x2')]=_0x4c67ab;}else{if(!_0x24c2a9[_0x3be956('0x1c0a')])return _0x46d524['userProfileResource'][_0x3be956('0x1335')]({'sectionId':_0x24c2a9['id']})[_0x3be956('0x1714')][_0x3be956('0x2788')](function(_0x91b402){const _0x4d5e90=_0x3be956,_0x4e3e28=_0x283545()['map'](_0x91b402[_0x4d5e90('0x25df')],function(_0x233ef5){const _0x5c2556=_0x4d5e90;return _0x283545()['find'](_0x3d23b2[_0x5c2556('0x2')],{'id':_0x233ef5[_0x5c2556('0x2707')]});});let _0x4801ae=null;_0x4801ae=[],_0x3d23b2[_0x4d5e90('0x4c8')][_0x4d5e90('0x25df')][_0x4d5e90('0x1534')](function(_0x7b52f8){const _0x343194=_0x4d5e90;if(_0x7b52f8['action']===_0x343194('0x27db')){const _0x303ed7=_0x283545()[_0x343194('0x20e8')](_0x3d23b2[_0x343194('0x2')],{'id':Number(_0x7b52f8[_0x343194('0x623')])});_0x4801ae[_0x343194('0x13e3')](_0x303ed7);}}),!_0x283545()[_0x4d5e90('0x213d')](_0x4801ae)&&_0x4801ae[_0x4d5e90('0x1534')](function(_0x9215bb){const _0x352f79=_0x4d5e90;if(!_0x283545()['some'](_0x4e3e28,['id',_0x9215bb['id']])){const _0x63b26c=_0x283545()[_0x352f79('0x20e8')](_0x3d23b2[_0x352f79('0x2')],{'id':_0x9215bb['id']});_0x63b26c[_0x352f79('0x3bf')]=![],_0x4e3e28[_0x352f79('0x13e3')](_0x63b26c);}}),_0x3d23b2['lists']=_0x4e3e28;});}})['catch'](function(_0x1a33a4){const _0x40a7ca=_0x2a708e;_0x491b12[_0x40a7ca('0x5e8')]({'title':_0x1a33a4[_0x40a7ca('0x1b51')]?_0x40a7ca('0x15d1')+_0x1a33a4[_0x40a7ca('0x1b51')]+_0x40a7ca('0x1b0b')+_0x1a33a4[_0x40a7ca('0x22ce')]:_0x40a7ca('0x999'),'msg':_0x1a33a4['data']?JSON['stringify'](_0x1a33a4['data']):_0x1a33a4[_0x40a7ca('0x17df')]()});});}function _0xcfc1bd(){const _0xe22b00=_0x1840b9;_0x46d524[_0xe22b00('0xa83')][_0xe22b00('0x15f8')]({})['$promise'][_0xe22b00('0x2788')](function(_0x3cf6e2){const _0x1ec17a=_0xe22b00;_0x3d23b2['contactFields']=[],_0x3d23b2['customFields']=[];const _0x38a7e6=_0x283545()[_0x1ec17a('0xc5')](_0x3cf6e2[_0x1ec17a('0x1cbf')]());for(let _0x53a8e6=0x0;_0x53a8e6<_0x38a7e6['length'];_0x53a8e6++){if(_0x283545()[_0x1ec17a('0x1d4e')](_0x3d23b2['allowedStandardFields'],_0x38a7e6[_0x53a8e6][_0x1ec17a('0x1495')]))_0x3d23b2[_0x1ec17a('0x1a6e')][_0x1ec17a('0x13e3')](_0x38a7e6[_0x53a8e6]);else{if(_0x283545()[_0x1ec17a('0x993')](_0x38a7e6[_0x53a8e6][_0x1ec17a('0x1495')],_0x1ec17a('0x249c'))){if(_0x38a7e6[_0x53a8e6][_0x1ec17a('0x1d56')][_0x1ec17a('0x1d7')]===_0x1ec17a('0x16db'))_0x3d23b2[_0x1ec17a('0x132')]['push'](_0x38a7e6[_0x53a8e6]);}}}})[_0xe22b00('0x1cb5')](function(_0x2e6b36){const _0x322808=_0xe22b00;_0x491b12[_0x322808('0x5e8')]({'title':_0x2e6b36[_0x322808('0x1b51')]?_0x322808('0x15d1')+_0x2e6b36[_0x322808('0x1b51')]+'\x20-\x20'+_0x2e6b36['statusText']:_0x322808('0x1ef4'),'msg':_0x2e6b36[_0x322808('0x11fc')]?JSON[_0x322808('0x1be0')](_0x2e6b36[_0x322808('0x11fc')]):_0x2e6b36['toString']()});});}function _0x4e2fdb(){const _0x22624f=_0x1840b9;_0x46d524[_0x22624f('0x1ba4')][_0x22624f('0x100b')]({'id':_0x3d23b2[_0x22624f('0x116c')][_0x22624f('0x623')],'ListId':_0x3d23b2[_0x22624f('0x116c')][_0x22624f('0x623')]})[_0x22624f('0x1714')][_0x22624f('0x2788')](function(_0x6691b0){const _0x10cd79=_0x22624f;_0x3d23b2['listFields']=_0x283545()[_0x10cd79('0x916')](_0x6691b0[_0x10cd79('0x25df')],[_0x10cd79('0x1d7'),'text']),_0x3d23b2['listFields'][_0x10cd79('0x1534')](function(_0x5943fa){const _0x264786=_0x10cd79;_0x5943fa[_0x264786('0x1495')]=_0x264786('0x249c')+_0x5943fa['id'];});})['catch'](function(_0x16b8e0){const _0x59e823=_0x22624f;_0x491b12[_0x59e823('0x5e8')]({'title':_0x16b8e0[_0x59e823('0x1b51')]?'API:'+_0x16b8e0['status']+_0x59e823('0x1b0b')+_0x16b8e0['statusText']:_0x59e823('0x1a2a'),'msg':_0x16b8e0['data']?JSON[_0x59e823('0x1be0')](_0x16b8e0[_0x59e823('0x11fc')]):_0x16b8e0[_0x59e823('0x17df')]()});});}function _0x54a884(){const _0x277e32=_0x1840b9;_0x328131['isAdmin']()?_0x46d524['jscriptyProject']['get']({'fields':_0x277e32('0x1338'),'sort':'name','nolimit':'true'})[_0x277e32('0x1714')][_0x277e32('0x2788')](function(_0x1908e1){const _0x3092c5=_0x277e32;_0x3d23b2[_0x3092c5('0x18f9')]=_0x1908e1['rows']||[];})[_0x277e32('0x1cb5')](function(_0x2dbb99){const _0xf2d445=_0x277e32;_0x491b12[_0xf2d445('0x5e8')]({'title':_0x2dbb99[_0xf2d445('0x1b51')]?'API:'+_0x2dbb99[_0xf2d445('0x1b51')]+_0xf2d445('0x1b0b')+_0x2dbb99[_0xf2d445('0x22ce')]:_0xf2d445('0x123a'),'msg':_0x2dbb99[_0xf2d445('0x11fc')]?JSON[_0xf2d445('0x1be0')](_0x2dbb99[_0xf2d445('0x11fc')]):_0x2dbb99[_0xf2d445('0x17df')]()});}):_0x46d524[_0x277e32('0xf5b')][_0x277e32('0x1335')]({'fields':'id,name','sort':_0x277e32('0x1a8d'),'nolimit':_0x277e32('0x1001')})[_0x277e32('0x1714')][_0x277e32('0x2788')](function(_0x9c9bd4){const _0xe5bcc7=_0x277e32;_0x3d23b2[_0xe5bcc7('0x18f9')]=_0x9c9bd4['rows']||[];})[_0x277e32('0x2788')](function(){const _0x5169f7=_0x277e32;return _0x46d524[_0x5169f7('0xec9')][_0x5169f7('0x1335')]({'userProfileId':_0x3d23b2['currentUser']['userProfileId'],'sectionId':0x6a5})[_0x5169f7('0x1714')];})['then'](function(_0x2772b1){const _0x38aa9f=_0x277e32,_0x2bc671=_0x2772b1&&_0x2772b1[_0x38aa9f('0x25df')]?_0x2772b1['rows'][0x0]:null;if(!_0x2bc671){const _0x2562ac=[],_0x176fd9=[];_0x3d23b2[_0x38aa9f('0x4c8')][_0x38aa9f('0x25df')][_0x38aa9f('0x1534')](function(_0x5c7109){const _0xb0bd23=_0x38aa9f;if(_0x5c7109['action']==='jscripty'){const _0x36f4a2=_0x283545()[_0xb0bd23('0x20e8')](_0x3d23b2[_0xb0bd23('0x18f9')],{'id':Number(_0x5c7109[_0xb0bd23('0x623')])});_0x176fd9[_0xb0bd23('0x13e3')](_0x36f4a2);}});for(let _0x528712=0x0;_0x528712<_0x3d23b2[_0x38aa9f('0x18f9')][_0x38aa9f('0x2566')];_0x528712++){const _0x484dce=_0x283545()[_0x38aa9f('0xc5d')](_0x176fd9,{'id':_0x3d23b2['projects'][_0x528712]['id']});_0x484dce&&(_0x3d23b2[_0x38aa9f('0x18f9')][_0x528712]['canSelect']=![],_0x2562ac[_0x38aa9f('0x13e3')](_0x3d23b2[_0x38aa9f('0x18f9')][_0x528712]));}_0x3d23b2[_0x38aa9f('0x18f9')]=_0x2562ac;}else{if(!_0x2bc671[_0x38aa9f('0x1c0a')])return _0x46d524['userProfileResource']['get']({'sectionId':_0x2bc671['id']})[_0x38aa9f('0x1714')]['then'](function(_0x2c4266){const _0x482bd3=_0x38aa9f,_0x296a25=_0x283545()[_0x482bd3('0x155d')](_0x2c4266['rows'],function(_0x20f7ec){const _0x53e930=_0x482bd3;return _0x283545()[_0x53e930('0x20e8')](_0x3d23b2[_0x53e930('0x18f9')],{'id':_0x20f7ec[_0x53e930('0x2707')]});});let _0x5aa505=null;_0x5aa505=[],_0x3d23b2[_0x482bd3('0x4c8')]['rows'][_0x482bd3('0x1534')](function(_0x36cd7e){const _0x5a87a0=_0x482bd3;if(_0x36cd7e['action']==='jscripty'){const _0x1e344b=_0x283545()[_0x5a87a0('0x20e8')](_0x3d23b2['projects'],{'id':Number(_0x36cd7e[_0x5a87a0('0x623')])});_0x5aa505['push'](_0x1e344b);}}),!_0x283545()[_0x482bd3('0x213d')](_0x5aa505)&&_0x5aa505['forEach'](function(_0x24e46d){const _0xfa8574=_0x482bd3;if(!_0x283545()[_0xfa8574('0xc5d')](_0x296a25,['id',_0x24e46d['id']])){const _0x451ab1=_0x283545()[_0xfa8574('0x20e8')](_0x3d23b2[_0xfa8574('0x18f9')],{'id':_0x24e46d['id']});_0x451ab1[_0xfa8574('0x3bf')]=![],_0x296a25[_0xfa8574('0x13e3')](_0x451ab1);}}),_0x3d23b2[_0x482bd3('0x18f9')]=_0x296a25;});}})[_0x277e32('0x1cb5')](function(_0x566f15){const _0x5905b6=_0x277e32;_0x491b12['error']({'title':_0x566f15[_0x5905b6('0x1b51')]?'API:'+_0x566f15['status']+_0x5905b6('0x1b0b')+_0x566f15[_0x5905b6('0x22ce')]:_0x5905b6('0x1d8c'),'msg':_0x566f15[_0x5905b6('0x11fc')]?JSON['stringify'](_0x566f15['data']):_0x566f15[_0x5905b6('0x17df')]()});});}function _0x1a7bab(){const _0x4ebb84=_0x1840b9;_0x328131[_0x4ebb84('0x1e40')]()?_0x46d524[_0x4ebb84('0x2273')][_0x4ebb84('0x1335')]({'fields':_0x4ebb84('0x1338'),'sort':'id','nolimit':_0x4ebb84('0x1001')})[_0x4ebb84('0x1714')][_0x4ebb84('0x2788')](function(_0x21d329){const _0x42649f=_0x4ebb84;_0x3d23b2[_0x42649f('0x1f48')]=_0x21d329[_0x42649f('0x25df')]||[];})[_0x4ebb84('0x1cb5')](function(_0x5f595b){const _0x1b209e=_0x4ebb84;_0x491b12[_0x1b209e('0x5e8')]({'title':_0x5f595b[_0x1b209e('0x1b51')]?_0x1b209e('0x15d1')+_0x5f595b['status']+'\x20-\x20'+_0x5f595b['statusText']:_0x1b209e('0x3d3'),'msg':_0x5f595b['data']?JSON['stringify'](_0x5f595b[_0x1b209e('0x11fc')]):_0x5f595b['toString']()});}):_0x46d524['template'][_0x4ebb84('0x1335')]({'fields':_0x4ebb84('0x1338'),'sort':'id','nolimit':_0x4ebb84('0x1001')})[_0x4ebb84('0x1714')][_0x4ebb84('0x2788')](function(_0x427639){const _0x3797b3=_0x4ebb84;_0x3d23b2['templates']=_0x427639[_0x3797b3('0x25df')]||[];})['then'](function(){const _0x18cb7a=_0x4ebb84;return _0x46d524['userProfileSection']['get']({'userProfileId':_0x3d23b2[_0x18cb7a('0x9cb')][_0x18cb7a('0x237f')],'sectionId':0x3f1})['$promise'];})[_0x4ebb84('0x2788')](function(_0x3496ae){const _0x407961=_0x4ebb84,_0x590c88=_0x3496ae&&_0x3496ae[_0x407961('0x25df')]?_0x3496ae[_0x407961('0x25df')][0x0]:null;if(!_0x590c88){const _0x230abc=[],_0x746fce=[];_0x3d23b2['triggerActions'][_0x407961('0x25df')][_0x407961('0x1534')](function(_0x192954){const _0x58665f=_0x407961;if(_0x283545()['includes'](['motionbar',_0x58665f('0x401')],_0x192954[_0x58665f('0x116c')])){const _0x19c781=_0x283545()[_0x58665f('0x20e8')](_0x3d23b2[_0x58665f('0x1f48')],{'id':Number(_0x192954['data2'])});_0x746fce[_0x58665f('0x13e3')](_0x19c781);}});for(let _0x4b2035=0x0;_0x4b2035<_0x3d23b2[_0x407961('0x1f48')][_0x407961('0x2566')];_0x4b2035++){const _0x1065b0=_0x283545()['some'](_0x746fce,{'id':_0x3d23b2[_0x407961('0x1f48')][_0x4b2035]['id']});_0x1065b0&&(_0x3d23b2[_0x407961('0x1f48')][_0x4b2035]['canSelect']=![],_0x230abc[_0x407961('0x13e3')](_0x3d23b2[_0x407961('0x1f48')][_0x4b2035]));}_0x3d23b2[_0x407961('0x1f48')]=_0x230abc;}else{if(!_0x590c88[_0x407961('0x1c0a')])return _0x46d524[_0x407961('0x1050')][_0x407961('0x1335')]({'sectionId':_0x590c88['id']})[_0x407961('0x1714')]['then'](function(_0x24b018){const _0x20166d=_0x407961,_0x14a702=_0x283545()[_0x20166d('0x155d')](_0x24b018[_0x20166d('0x25df')],function(_0x40017f){const _0x555fe6=_0x20166d;return _0x283545()[_0x555fe6('0x20e8')](_0x3d23b2[_0x555fe6('0x1f48')],{'id':_0x40017f['resourceId']});});let _0x478ccc=null;_0x478ccc=[],_0x3d23b2[_0x20166d('0x4c8')][_0x20166d('0x25df')][_0x20166d('0x1534')](function(_0x2696f1){const _0x974a95=_0x20166d;if(_0x283545()['includes'](['motionbar',_0x974a95('0x401')],_0x2696f1[_0x974a95('0x116c')])){const _0x7065e3=_0x283545()[_0x974a95('0x20e8')](_0x3d23b2[_0x974a95('0x1f48')],{'id':Number(_0x2696f1['data2'])});_0x478ccc[_0x974a95('0x13e3')](_0x7065e3);}}),!_0x283545()[_0x20166d('0x213d')](_0x478ccc)&&_0x478ccc[_0x20166d('0x1534')](function(_0x4fbd08){const _0x550c94=_0x20166d;if(!_0x283545()[_0x550c94('0xc5d')](_0x14a702,['id',_0x4fbd08['id']])){const _0x2ada2e=_0x283545()['find'](_0x3d23b2['templates'],{'id':_0x4fbd08['id']});_0x2ada2e[_0x550c94('0x3bf')]=![],_0x14a702['push'](_0x2ada2e);}}),_0x3d23b2['templates']=_0x14a702;});}})['catch'](function(_0x26bd4c){const _0x4363dc=_0x4ebb84;_0x491b12[_0x4363dc('0x5e8')]({'title':_0x26bd4c[_0x4363dc('0x1b51')]?_0x4363dc('0x15d1')+_0x26bd4c['status']+_0x4363dc('0x1b0b')+_0x26bd4c['statusText']:_0x4363dc('0x3d3'),'msg':_0x26bd4c[_0x4363dc('0x11fc')]?JSON[_0x4363dc('0x1be0')](_0x26bd4c[_0x4363dc('0x11fc')]):_0x26bd4c['toString']()});});}function _0x378c7d(){const _0x2ed914=_0x1840b9;switch(_0x3d23b2[_0x2ed914('0x116c')][_0x2ed914('0x623')]){case'zendesk':return _0x3d23b2[_0x2ed914('0x976')][0x515];case _0x2ed914('0x1602'):return _0x3d23b2['hasSectionPermissions'][0x516];case _0x2ed914('0x249e'):return _0x3d23b2['hasSectionPermissions'][0x519];case _0x2ed914('0x1eff'):return _0x3d23b2[_0x2ed914('0x976')][0x517];case _0x2ed914('0x1c60'):return _0x3d23b2['hasSectionPermissions'][0x51a];case _0x2ed914('0x1fc0'):return _0x3d23b2[_0x2ed914('0x976')][0x51b];case _0x2ed914('0x18dc'):return _0x3d23b2[_0x2ed914('0x976')][0x51c];case _0x2ed914('0xf7c'):return _0x3d23b2['hasSectionPermissions'][0x51d];case _0x2ed914('0x9df'):return _0x3d23b2[_0x2ed914('0x976')][0x51e];case _0x2ed914('0x1760'):return _0x3d23b2[_0x2ed914('0x976')][0x51f];}}function _0x1e237e(){const _0x3fea48=_0x1840b9;_0x3d23b2[_0x3fea48('0x116c')][_0x3fea48('0x623')]=undefined,_0x3d23b2[_0x3fea48('0x116c')]['data2']=undefined,_0x3d23b2[_0x3fea48('0x116c')][_0x3fea48('0x1280')]=undefined,_0x3d23b2[_0x3fea48('0x116c')][_0x3fea48('0x78d')]=undefined,_0x3d23b2[_0x3fea48('0x116c')][_0x3fea48('0x4cf')]=_0x3d23b2['action'][_0x3fea48('0x116c')]===_0x3fea48('0xa5a')?0x5:undefined;}function _0x4f3c65(){const _0x1092f3=_0x1840b9;switch(_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x116c')]){case _0x1092f3('0x27db'):if(!_0x3d23b2[_0x1092f3('0x2')])_0x565f00();if(!_0x3d23b2['contactFields'])_0xcfc1bd();_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x1280')]=_0x3d23b2[_0x1092f3('0x116c')]['data3']?_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x1280')][_0x1092f3('0x1497')](','):[_0x1092f3('0x1224')];if(_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x1793')]==='1'&&!_0x3d23b2['action'][_0x1092f3('0x78d')])_0x3d23b2['action']['data4']=_0x1092f3('0x1224');break;case'jscripty':if(!_0x3d23b2['projects'])_0x54a884();break;case _0x1092f3('0xa5a'):if(!_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x4cf')])_0x3d23b2[_0x1092f3('0x116c')][_0x1092f3('0x4cf')]=0x5;break;}}function _0x137d87(){_0x1e237e(),_0x4f3c65();}function _0x8080dc(){const _0x33bf6d=_0x1840b9;_0x3d23b2[_0x33bf6d('0x116c')][_0x33bf6d('0x1793')]=undefined,_0x3d23b2[_0x33bf6d('0x116c')][_0x33bf6d('0x1280')]=undefined,_0x3d23b2[_0x33bf6d('0x116c')][_0x33bf6d('0x1006')]=_0x3d23b2['newAction']?![]:!_0x378c7d();const _0x6925c8=_0x33bf6d('0x339')+_0x283545()[_0x33bf6d('0x1df5')](_0x3d23b2[_0x33bf6d('0x116c')]['data1'])+_0x33bf6d('0x140b');_0x46d524[_0x6925c8][_0x33bf6d('0x1335')]({'fields':_0x33bf6d('0x1338'),'sort':'id','nolimit':_0x33bf6d('0x1001')})['$promise'][_0x33bf6d('0x2788')](function(_0x16075a){const _0x50661e=_0x33bf6d;_0x3d23b2['accounts']=_0x16075a[_0x50661e('0x25df')]||[];})[_0x33bf6d('0x1cb5')](function(_0x4a350c){const _0x5eb2f4=_0x33bf6d;_0x491b12[_0x5eb2f4('0x5e8')]({'title':_0x4a350c[_0x5eb2f4('0x1b51')]?_0x5eb2f4('0x15d1')+_0x4a350c['status']+_0x5eb2f4('0x1b0b')+_0x4a350c[_0x5eb2f4('0x22ce')]:_0x5eb2f4('0xb2b')+_0x3d23b2['action'][_0x5eb2f4('0x623')]['toUpperCase']()+_0x5eb2f4('0xde9'),'msg':_0x4a350c[_0x5eb2f4('0x11fc')]?JSON[_0x5eb2f4('0x1be0')](_0x4a350c[_0x5eb2f4('0x11fc')]):_0x4a350c[_0x5eb2f4('0x17df')]()});});}function _0x54be79(){_0x4e2fdb();}function _0x2054f5(){const _0x1b7cc6=_0x1840b9;if(_0x3d23b2['action'][_0x1b7cc6('0x623')]==='0'&&!_0x3d23b2['templates'])_0x1a7bab();}function _0x167e49(){const _0x4928f9=_0x1840b9;if(_0x3d23b2[_0x4928f9('0x116c')]['data2']==='0')_0x3d23b2[_0x4928f9('0x116c')][_0x4928f9('0x78d')]=undefined;if(!_0x3d23b2['action']['data4']&&_0x3d23b2[_0x4928f9('0x116c')][_0x4928f9('0x1793')]==='1')_0x3d23b2[_0x4928f9('0x116c')][_0x4928f9('0x78d')]=_0x4928f9('0x1224');}function _0x40f2c7(){const _0x24924d=_0x1840b9;_0x3d23b2[_0x24924d('0x116c')][_0x24924d('0x1280')]=undefined;const _0x2eb744=_0x24924d('0x339')+_0x283545()['capitalize'](_0x3d23b2[_0x24924d('0x116c')]['data1'])+'Configuration';_0x46d524[_0x2eb744]['get']({'fields':'id,name,AccountId','sort':'id','nolimit':_0x24924d('0x1001')})[_0x24924d('0x1714')][_0x24924d('0x2788')](function(_0x2d4362){const _0x480ee3=_0x24924d;_0x3d23b2[_0x480ee3('0x1b77')]=_0x2d4362[_0x480ee3('0x25df')]||[];})[_0x24924d('0x1cb5')](function(_0x253e76){const _0x417f2b=_0x24924d;_0x491b12[_0x417f2b('0x5e8')]({'title':_0x253e76[_0x417f2b('0x1b51')]?_0x417f2b('0x15d1')+_0x253e76['status']+_0x417f2b('0x1b0b')+_0x253e76[_0x417f2b('0x22ce')]:'SYSTEM:GET_'+_0x3d23b2[_0x417f2b('0x116c')][_0x417f2b('0x623')]['toUpperCase']()+'CONFIGURATIONS','msg':_0x253e76[_0x417f2b('0x11fc')]?JSON[_0x417f2b('0x1be0')](_0x253e76[_0x417f2b('0x11fc')]):_0x253e76[_0x417f2b('0x17df')]()});});}function _0x34f631(){const _0x8e4a4f=_0x1840b9,_0x599d38=angular[_0x8e4a4f('0x2669')](_0x3d23b2[_0x8e4a4f('0x116c')]);if(_0x283545()[_0x8e4a4f('0x1ed4')](_0x599d38[_0x8e4a4f('0x1280')]))_0x599d38[_0x8e4a4f('0x1280')]=_0x3d23b2[_0x8e4a4f('0x116c')][_0x8e4a4f('0x1280')][_0x8e4a4f('0x185f')](',');return _0x599d38;}function _0x431677(){const _0x533ec6=_0x1840b9;_0x3d23b2[_0x533ec6('0x25be')]=[];const _0x16b689=_0x34f631();_0x46d524['trigger']['addAction']({'id':_0x1d2477[_0x533ec6('0x4b9')]['id']},_0x16b689)['$promise'][_0x533ec6('0x2788')](function(_0x2ed903){const _0x5a5a36=_0x533ec6;_0x3d23b2[_0x5a5a36('0x6d')][_0x5a5a36('0xc51')](_0x2ed903[_0x5a5a36('0x1cbf')]()),_0x491b12[_0x5a5a36('0x173b')]({'title':_0x4da7dc[_0x5a5a36('0x1b11')](_0x5a5a36('0x1c02'))}),_0x162890(_0x3d23b2['actions']);})[_0x533ec6('0x1cb5')](function(_0x2423db){const _0x53676e=_0x533ec6;if(_0x2423db[_0x53676e('0x11fc')]&&_0x2423db[_0x53676e('0x11fc')]['errors']&&_0x2423db[_0x53676e('0x11fc')][_0x53676e('0x25be')][_0x53676e('0x2566')]){_0x3d23b2[_0x53676e('0x25be')]=_0x2423db['data'][_0x53676e('0x25be')]||[{'message':_0x2423db[_0x53676e('0x17df')](),'type':'api.action.save'}];for(let _0x1ccda9=0x0;_0x1ccda9<_0x2423db[_0x53676e('0x11fc')][_0x53676e('0x25be')][_0x53676e('0x2566')];_0x1ccda9+=0x1){_0x491b12[_0x53676e('0x5e8')]({'title':_0x2423db['data'][_0x53676e('0x25be')][_0x1ccda9][_0x53676e('0x1d7')],'msg':_0x2423db['data']['errors'][_0x1ccda9][_0x53676e('0x15e2')]});}}else _0x491b12[_0x53676e('0x5e8')]({'title':_0x2423db[_0x53676e('0x1b51')]?_0x53676e('0x15d1')+_0x2423db[_0x53676e('0x1b51')]+_0x53676e('0x1b0b')+_0x2423db[_0x53676e('0x22ce')]:_0x53676e('0x1fba'),'msg':_0x2423db['data']?JSON[_0x53676e('0x1be0')](_0x2423db['data']['message']):_0x2423db[_0x53676e('0x17df')]()});});}function _0x307bed(){const _0x43a33e=_0x1840b9;_0x3d23b2[_0x43a33e('0x25be')]=[];const _0x4bd22c=_0x34f631();_0x46d524['action'][_0x43a33e('0x2740')]({'id':_0x4bd22c['id']},_0x4bd22c)[_0x43a33e('0x1714')][_0x43a33e('0x2788')](function(){const _0x8c894c=_0x43a33e;_0x3d23b2['actions']=_0x283545()['map'](_0x3d23b2[_0x8c894c('0x6d')],function(_0x5909a8){if(_0x5909a8['id']===_0x4bd22c['id'])return _0x4bd22c;else return _0x5909a8;}),_0x491b12['success']({'title':_0x4da7dc[_0x8c894c('0x1b11')](_0x8c894c('0xc40'))}),_0x162890(_0x3d23b2[_0x8c894c('0x6d')]);})[_0x43a33e('0x1cb5')](function(_0x3a25da){const _0x55e844=_0x43a33e;if(_0x3a25da[_0x55e844('0x11fc')]&&_0x3a25da[_0x55e844('0x11fc')][_0x55e844('0x25be')]&&_0x3a25da[_0x55e844('0x11fc')][_0x55e844('0x25be')][_0x55e844('0x2566')]){_0x3d23b2[_0x55e844('0x25be')]=_0x3a25da[_0x55e844('0x11fc')][_0x55e844('0x25be')]||[{'message':_0x3a25da[_0x55e844('0x17df')](),'type':'api.action.update'}];for(let _0x293be3=0x0;_0x293be3<_0x3a25da[_0x55e844('0x11fc')][_0x55e844('0x25be')][_0x55e844('0x2566')];_0x293be3++){_0x491b12[_0x55e844('0x5e8')]({'title':_0x3a25da['data'][_0x55e844('0x25be')][_0x293be3][_0x55e844('0x1d7')],'msg':_0x3a25da['data'][_0x55e844('0x25be')][_0x293be3][_0x55e844('0x15e2')]});}}else _0x491b12['error']({'title':_0x3a25da[_0x55e844('0x1b51')]?_0x55e844('0x15d1')+_0x3a25da[_0x55e844('0x1b51')]+_0x55e844('0x1b0b')+_0x3a25da[_0x55e844('0x22ce')]:_0x55e844('0x1283'),'msg':_0x3a25da[_0x55e844('0x11fc')]?JSON[_0x55e844('0x1be0')](_0x3a25da[_0x55e844('0x11fc')][_0x55e844('0x15e2')]):_0x3a25da[_0x55e844('0x17df')]()});});}function _0x33ed48(_0x5c450c){const _0x150657=_0x1840b9;_0x3d23b2[_0x150657('0x25be')]=[];const _0x225a75=_0x33bc86[_0x150657('0x112e')]({'skipHide':!![]})['title'](_0x4da7dc['instant']('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))[_0x150657('0x10bc')](_0x150657('0xc8'))['ok'](_0x4da7dc[_0x150657('0x1b11')](_0x150657('0x232a')))[_0x150657('0x1801')](_0x4da7dc[_0x150657('0x1b11')](_0x150657('0x1061')))[_0x150657('0x24d0')](_0x5c450c);_0x33bc86['show'](_0x225a75)[_0x150657('0x2788')](function(){const _0x5ad440=_0x150657;_0x46d524['action'][_0x5ad440('0x17c4')]({'id':_0x3d23b2['action']['id']})['$promise'][_0x5ad440('0x2788')](function(){const _0x2dec9a=_0x5ad440;_0x3d23b2[_0x2dec9a('0x6d')]=_0x283545()[_0x2dec9a('0x916')](_0x3d23b2[_0x2dec9a('0x6d')],function(_0x57d65b){return _0x57d65b['id']!==_0x3d23b2['action']['id'];}),_0x491b12['success']({'title':_0x4da7dc[_0x2dec9a('0x1b11')](_0x2dec9a('0x872'))}),_0x162890(_0x3d23b2['actions']);})['catch'](function(_0x4679eb){const _0x474c5b=_0x5ad440;if(_0x4679eb[_0x474c5b('0x11fc')]&&_0x4679eb[_0x474c5b('0x11fc')][_0x474c5b('0x25be')]&&_0x4679eb[_0x474c5b('0x11fc')][_0x474c5b('0x25be')][_0x474c5b('0x2566')]){_0x3d23b2[_0x474c5b('0x25be')]=_0x4679eb[_0x474c5b('0x11fc')][_0x474c5b('0x25be')]||[{'message':_0x4679eb[_0x474c5b('0x17df')](),'type':'api.action.delete'}];for(let _0x53c40b=0x0;_0x53c40b<_0x4679eb['data'][_0x474c5b('0x25be')][_0x474c5b('0x2566')];_0x53c40b++){_0x491b12[_0x474c5b('0x5e8')]({'title':_0x4679eb[_0x474c5b('0x11fc')]['errors'][_0x53c40b]['type'],'msg':_0x4679eb[_0x474c5b('0x11fc')][_0x474c5b('0x25be')][_0x53c40b]['message']});}}else _0x491b12[_0x474c5b('0x5e8')]({'title':_0x4679eb[_0x474c5b('0x1b51')]?_0x474c5b('0x15d1')+_0x4679eb[_0x474c5b('0x1b51')]+_0x474c5b('0x1b0b')+_0x4679eb[_0x474c5b('0x22ce')]:'api.action.delete','msg':_0x4679eb[_0x474c5b('0x11fc')]?JSON[_0x474c5b('0x1be0')](_0x4679eb[_0x474c5b('0x11fc')][_0x474c5b('0x15e2')]):_0x4679eb['message']||_0x4679eb['toString']()});});},function(){});}function _0x162890(_0x1c2994){const _0x368684=_0x1840b9;_0x33bc86[_0x368684('0x19d')](_0x1c2994);}}const _0x1058fb=_0x146455,_0x47a2b8=_0x18dd13['p']+_0x34e79e('0x12a9');_0x27d673[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$q','$translate',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'Auth'];function _0x27d673(_0x525e4e,_0x4fb7c3,_0x4b3b23,_0x4c3d1b,_0x15adbe,_0x218b8f,_0x10fbe4,_0x21ed79,_0x559220){const _0x4f425f=_0x34e79e,_0x4a9127=this;_0x4a9127[_0x4f425f('0x9cb')]=_0x559220[_0x4f425f('0x24cc')](),_0x4a9127[_0x4f425f('0x126e')]={},_0x4a9127[_0x4f425f('0x89b')]={'count':0x0,'rows':[]},_0x4a9127['selectedTriggerAllConditions']=[],_0x4a9127[_0x4f425f('0x135a')]={'fields':_0x4f425f('0x114e'),'limit':0xa,'page':0x1},_0x4a9127['fields']={'queue':_0x4f425f('0x107f'),'lastevent':_0x4f425f('0x1279'),'routeId':_0x4f425f('0x1923'),'agent':'Agent','account':_0x4f425f('0x140b'),'interaction':_0x4f425f('0x22a7'),'message':'Message'},_0x4a9127[_0x4f425f('0x174a')]={'abandoned':_0x4f425f('0x1b56'),'timeout':_0x4f425f('0xa7e'),'complete':_0x4f425f('0x1265'),'rejected':_0x4f425f('0xea5'),'called':_0x4f425f('0x3e2'),'connect':_0x4f425f('0x1e90'),'nosuchnumber':_0x4f425f('0x2173'),'busy':_0x4f425f('0x187f'),'noanswer':_0x4f425f('0xb8b'),'congestion':_0x4f425f('0x1720'),'agentreject':_0x4f425f('0x164')},_0x4a9127['messageStatuses']={'in':_0x4f425f('0x1c09'),'out':_0x4f425f('0x27a1'),'accept':_0x4f425f('0x1f0f'),'reject':_0x4f425f('0x287')},_0x4a9127[_0x4f425f('0x122e')]=_0x4acf41,_0x4a9127[_0x4f425f('0x173b')]=_0x5764d1,_0x4a9127['getTriggerAllConditions']=_0x474020,_0x4a9127[_0x4f425f('0x84b')]=_0xdc9c98,_0x4a9127[_0x4f425f('0x537')]=_0x479859,_0x4a9127['deleteConfirm']=_0xfa4292,_0x4a9127[_0x4f425f('0x110c')]=_0x13e5ad;function _0x4acf41(_0x119f7d,_0x50ea77){const _0x5f0941=_0x4f425f;_0x4a9127[_0x5f0941('0x126e')]=_0x119f7d,_0x4a9127[_0x5f0941('0xe28')]=typeof _0x50ea77!==_0x5f0941('0xedb')?_0x50ea77:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a9127[_0x5f0941('0x135a')][_0x5f0941('0x322')]=_0x4a9127[_0x5f0941('0x126e')]['id'],_0x4a9127['query']['id']=_0x4a9127['trigger']['id'],_0x474020();}function _0x578843(){const _0x41b6d5=_0x4f425f,_0x529bb9=_0x4a9127[_0x41b6d5('0x126e')][_0x41b6d5('0x2645')],_0x2f820e=_0x4a9127['trigger'][_0x41b6d5('0x2645')]+_0x4a9127['trigger']['channel']===_0x41b6d5('0x231')?'Websites':_0x41b6d5('0xfec'),_0x51b1a8=_0x4a9127[_0x41b6d5('0x126e')][_0x41b6d5('0x2645')]+(_0x4a9127['trigger'][_0x41b6d5('0x2645')]===_0x41b6d5('0x231')?_0x41b6d5('0x1577'):'Account');let _0x21f318;switch(_0x4a9127[_0x41b6d5('0x126e')][_0x41b6d5('0x2645')]){case'chat':_0x21f318=0x1f6;break;case _0x41b6d5('0x10cf'):_0x21f318=0x386;break;case _0x41b6d5('0x2795'):_0x21f318=0x25a;break;case _0x41b6d5('0x18aa'):_0x21f318=0x322;break;case'sms':_0x21f318=0x2be;break;case'whatsapp':_0x21f318=0x836;break;}_0x559220[_0x41b6d5('0x1e40')]()?_0x21ed79[_0x51b1a8][_0x41b6d5('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x41b6d5('0x1001')})[_0x41b6d5('0x1714')][_0x41b6d5('0x2788')](function(_0x1c936b){_0x4a9127[_0x2f820e]=_0x1c936b['rows']||[];})[_0x41b6d5('0x1cb5')](function(_0x5bbb5c){const _0x59bc62=_0x41b6d5;_0x10fbe4[_0x59bc62('0x5e8')]({'title':_0x5bbb5c[_0x59bc62('0x1b51')]?'API:'+_0x5bbb5c[_0x59bc62('0x1b51')]+'\x20-\x20'+_0x5bbb5c[_0x59bc62('0x22ce')]:_0x59bc62('0xb2b')+_0x529bb9['toUpperCase']()+_0x529bb9===_0x59bc62('0x231')?'WEBSITES':_0x59bc62('0xde9'),'msg':_0x5bbb5c['data']?JSON['stringify'](_0x5bbb5c['data']):_0x5bbb5c[_0x59bc62('0x17df')]()});}):_0x21ed79[_0x51b1a8][_0x41b6d5('0x1335')]({'fields':_0x41b6d5('0x1338'),'sort':'id','nolimit':_0x41b6d5('0x1001')})['$promise']['then'](function(_0x5d2efe){const _0x1c8d47=_0x41b6d5;_0x4a9127[_0x2f820e]=_0x5d2efe[_0x1c8d47('0x25df')]||[];})[_0x41b6d5('0x2788')](function(){const _0x23b731=_0x41b6d5;return _0x21ed79[_0x23b731('0xec9')][_0x23b731('0x1335')]({'userProfileId':_0x4a9127[_0x23b731('0x9cb')][_0x23b731('0x237f')],'sectionId':_0x21f318})[_0x23b731('0x1714')];})[_0x41b6d5('0x2788')](function(_0x3380b3){const _0x13dac3=_0x41b6d5,_0x484ed5=_0x3380b3&&_0x3380b3['rows']?_0x3380b3['rows'][0x0]:null;if(!_0x484ed5){const _0x3f6530=[],_0x5739a5=[];_0x4a9127[_0x13dac3('0x89b')][_0x13dac3('0x25df')][_0x13dac3('0x1534')](function(_0x487ea9){const _0x17a0ea=_0x13dac3;if(_0x487ea9['field']===_0x17a0ea('0x82f')){const _0x5312fe=_0x283545()[_0x17a0ea('0x20e8')](_0x4a9127[_0x2f820e],{'id':Number(_0x487ea9[_0x17a0ea('0x49')])});_0x5739a5[_0x17a0ea('0x13e3')](_0x5312fe);}});for(let _0x4baa0d=0x0;_0x4baa0d<_0x4a9127[_0x2f820e]['length'];_0x4baa0d++){const _0x5a3488=_0x283545()[_0x13dac3('0xc5d')](_0x5739a5,{'id':_0x4a9127[_0x2f820e][_0x4baa0d]['id']});_0x5a3488&&(_0x4a9127[_0x2f820e][_0x4baa0d][_0x13dac3('0x3bf')]=![],_0x3f6530[_0x13dac3('0x13e3')](_0x4a9127[_0x2f820e][_0x4baa0d]));}_0x4a9127[_0x2f820e]=_0x3f6530;}else{if(!_0x484ed5[_0x13dac3('0x1c0a')])return _0x21ed79['userProfileResource']['get']({'sectionId':_0x484ed5['id']})[_0x13dac3('0x1714')][_0x13dac3('0x2788')](function(_0x40cf9d){const _0x595736=_0x13dac3,_0xd0aa5b=_0x283545()[_0x595736('0x155d')](_0x40cf9d['rows'],function(_0x155c5b){const _0x435430=_0x595736;return _0x283545()['find'](_0x4a9127[_0x2f820e],{'id':_0x155c5b[_0x435430('0x2707')]});});let _0x5504d0=null;_0x5504d0=[],_0x4a9127[_0x595736('0x89b')][_0x595736('0x25df')][_0x595736('0x1534')](function(_0x29205b){const _0x40b9e4=_0x595736;if(_0x29205b[_0x40b9e4('0x18da')]===_0x40b9e4('0x82f')){const _0x275bdc=_0x283545()[_0x40b9e4('0x20e8')](_0x4a9127[_0x2f820e],{'id':Number(_0x29205b[_0x40b9e4('0x49')])});_0x5504d0[_0x40b9e4('0x13e3')](_0x275bdc);}}),!_0x283545()[_0x595736('0x213d')](_0x5504d0)&&_0x5504d0[_0x595736('0x1534')](function(_0x2663a6){const _0x1990e0=_0x595736;if(!_0x283545()[_0x1990e0('0xc5d')](_0xd0aa5b,['id',_0x2663a6['id']])){const _0x936bb=_0x283545()[_0x1990e0('0x20e8')](_0x4a9127[_0x2f820e],{'id':_0x2663a6['id']});_0x936bb['canSelect']=![],_0xd0aa5b[_0x1990e0('0x13e3')](_0x936bb);}}),_0x4a9127[_0x2f820e]=_0xd0aa5b;});}})[_0x41b6d5('0x1cb5')](function(_0x515f2d){const _0x46e53f=_0x41b6d5;_0x10fbe4[_0x46e53f('0x5e8')]({'title':_0x515f2d[_0x46e53f('0x1b51')]?'API:'+_0x515f2d[_0x46e53f('0x1b51')]+'\x20-\x20'+_0x515f2d['statusText']:_0x46e53f('0xb2b')+_0x529bb9['toUpperCase']()+_0x529bb9===_0x46e53f('0x231')?_0x46e53f('0x11cf'):'ACCOUNTS','msg':_0x515f2d[_0x46e53f('0x11fc')]?JSON[_0x46e53f('0x1be0')](_0x515f2d['data']):_0x515f2d[_0x46e53f('0x17df')]()});});}function _0x22ce66(){const _0x591570=_0x4f425f,_0x5a2862=[{'id':0x191,'type':_0x591570('0x2e4')},{'id':0x5dd,'type':_0x591570('0x1')}];let _0x185f28=null;_0x559220[_0x591570('0x1e40')]()?_0x21ed79[_0x591570('0x2043')]['get']({'fields':_0x591570('0xafa'),'sort':_0x591570('0x1a8d'),'nolimit':_0x591570('0x1001')})[_0x591570('0x1714')][_0x591570('0x2788')](function(_0x2e051c){const _0xebcec3=_0x591570;_0x4a9127['queues']=_0x2e051c[_0xebcec3('0x25df')]||[];})[_0x591570('0x1cb5')](function(_0x2025f9){const _0x80c40a=_0x591570;_0x10fbe4[_0x80c40a('0x5e8')]({'title':_0x2025f9[_0x80c40a('0x1b51')]?_0x80c40a('0x15d1')+_0x2025f9[_0x80c40a('0x1b51')]+'\x20-\x20'+_0x2025f9[_0x80c40a('0x22ce')]:'SYSTEM:GET_VOICEQUEUES','msg':_0x2025f9['data']?JSON['stringify'](_0x2025f9['data']):_0x2025f9[_0x80c40a('0x17df')]()});}):_0x21ed79[_0x591570('0x2043')]['get']({'fields':'id,name,type','sort':_0x591570('0x1a8d'),'nolimit':'true'})[_0x591570('0x1714')][_0x591570('0x2788')](function(_0x22126a){const _0x5320ea=_0x591570;_0x185f28=_0x22126a[_0x5320ea('0x25df')]||[];})['then'](function(){const _0x3e1db5=_0x591570,_0x37cfc1=[];for(let _0xb0c48=0x0;_0xb0c48<_0x5a2862[_0x3e1db5('0x2566')];_0xb0c48++){_0x37cfc1['push'](_0x21ed79[_0x3e1db5('0xec9')]['get']({'userProfileId':_0x4a9127['currentUser'][_0x3e1db5('0x237f')],'sectionId':_0x5a2862[_0xb0c48]['id']})[_0x3e1db5('0x1714')]);}return _0x4fb7c3[_0x3e1db5('0x1def')](_0x37cfc1);})[_0x591570('0x2788')](function(_0xebed40){const _0x4d84e5=_0x591570,_0xfc253d=_0x283545()[_0x4d84e5('0x155d')](_0xebed40,function(_0x340b7a){const _0x292120=_0x4d84e5;return _0x340b7a&&_0x340b7a[_0x292120('0x25df')]?_0x340b7a[_0x292120('0x25df')][0x0]:null;}),_0x35375d=[];for(let _0x1de4f2=0x0;_0x1de4f2<_0x5a2862[_0x4d84e5('0x2566')];_0x1de4f2++){const _0x3a9350=_0x283545()[_0x4d84e5('0x20e8')](_0xfc253d,['sectionId',_0x5a2862[_0x1de4f2]['id']]);if(_0x3a9350){if(!_0x3a9350['autoAssociation'])_0x35375d[_0x4d84e5('0x13e3')](_0x21ed79['userProfileResource'][_0x4d84e5('0x1335')]({'sectionId':_0x3a9350['id']})['$promise']);else{const _0x300025=[];_0x185f28[_0x4d84e5('0x1534')](function(_0x1d53f2){const _0x206c16=_0x4d84e5;_0x1d53f2['type']===_0x5a2862[_0x1de4f2]['type']&&_0x300025[_0x206c16('0x13e3')](_0x1d53f2);}),_0x35375d[_0x4d84e5('0x13e3')]({'rows':_0x300025,'count':_0x300025[_0x4d84e5('0x2566')]});}}}return _0x4fb7c3[_0x4d84e5('0x1def')](_0x35375d);})['then'](function(_0x4d16c9){const _0x54893d=_0x591570,_0xd43827=[],_0x3e8a4c=[];_0x4a9127[_0x54893d('0x89b')][_0x54893d('0x25df')][_0x54893d('0x1534')](function(_0x1a279c){const _0x3fa32d=_0x54893d;if(_0x1a279c['field']==='queue'){const _0x459c55=_0x283545()[_0x3fa32d('0x20e8')](_0x185f28,{'name':_0x1a279c['value']});_0x3e8a4c[_0x3fa32d('0x13e3')](_0x459c55);}});for(let _0x5b9fe5=0x0;_0x5b9fe5<_0x4d16c9[_0x54893d('0x2566')];_0x5b9fe5++){const _0x32e0ec=_0x4d16c9[_0x5b9fe5][_0x54893d('0x25df')]||[];_0x32e0ec[_0x54893d('0x1534')](function(_0x45c1db){const _0x5aa262=_0x54893d;_0xd43827[_0x5aa262('0x13e3')](_0x45c1db);});}!_0x283545()[_0x54893d('0x213d')](_0x3e8a4c)&&_0x3e8a4c[_0x54893d('0x1534')](function(_0x296eb5){const _0x479972=_0x54893d;if(!_0x283545()[_0x479972('0xc5d')](_0xd43827,[_0x479972('0x2707'),_0x296eb5['id']])){const _0x507a78=_0x283545()[_0x479972('0x20e8')](_0x185f28,{'id':_0x296eb5['id']});_0x507a78['canSelect']=![],_0xd43827['push'](_0x507a78);}}),_0x4a9127['queues']=_0xd43827;})[_0x591570('0x1cb5')](function(_0x32476b){const _0xf30c38=_0x591570;_0x10fbe4['error']({'title':_0x32476b['status']?_0xf30c38('0x15d1')+_0x32476b[_0xf30c38('0x1b51')]+'\x20-\x20'+_0x32476b[_0xf30c38('0x22ce')]:'SYSTEM:GET_QUEUES','msg':_0x32476b['data']?JSON[_0xf30c38('0x1be0')](_0x32476b[_0xf30c38('0x11fc')]):_0x32476b[_0xf30c38('0x17df')]()});});}function _0x3a089a(){const _0x3210c5=_0x4f425f;_0x559220[_0x3210c5('0x1e40')]()?_0x21ed79['voiceExtension']['get']({'fields':'id,exten','type':_0x3210c5('0x1'),'VoiceExtensionId':_0x3210c5('0x954'),'nolimit':_0x3210c5('0x1001')})[_0x3210c5('0x1714')][_0x3210c5('0x2788')](function(_0x44b128){const _0x2c0063=_0x3210c5;_0x4a9127[_0x2c0063('0xf8')]=_0x44b128[_0x2c0063('0x25df')]||[];})['catch'](function(_0x32add9){const _0x3b8cff=_0x3210c5;_0x10fbe4[_0x3b8cff('0x5e8')]({'title':_0x32add9['status']?'API:'+_0x32add9['status']+_0x3b8cff('0x1b0b')+_0x32add9['statusText']:_0x3b8cff('0x10ea'),'msg':_0x32add9[_0x3b8cff('0x11fc')]?JSON[_0x3b8cff('0x1be0')](_0x32add9['data']):_0x32add9[_0x3b8cff('0x17df')]()});}):_0x21ed79['voiceExtension'][_0x3210c5('0x1335')]({'fields':_0x3210c5('0x174d'),'type':'outbound','VoiceExtensionId':'null','nolimit':_0x3210c5('0x1001')})[_0x3210c5('0x1714')][_0x3210c5('0x2788')](function(_0x5323f2){const _0x46583c=_0x3210c5;_0x4a9127[_0x46583c('0xf8')]=_0x5323f2[_0x46583c('0x25df')]||[];})[_0x3210c5('0x2788')](function(){const _0x5f40e9=_0x3210c5;return _0x21ed79[_0x5f40e9('0xec9')][_0x5f40e9('0x1335')]({'userProfileId':_0x4a9127[_0x5f40e9('0x9cb')][_0x5f40e9('0x237f')],'sectionId':0x193})[_0x5f40e9('0x1714')];})[_0x3210c5('0x2788')](function(_0x1cc018){const _0x1f572d=_0x3210c5,_0x335f46=_0x1cc018&&_0x1cc018[_0x1f572d('0x25df')]?_0x1cc018['rows'][0x0]:null;if(!_0x335f46){const _0x359480=[],_0x3de8f5=[];_0x4a9127['triggerAllConditions'][_0x1f572d('0x25df')]['forEach'](function(_0x218d10){const _0xd4577c=_0x1f572d;if(_0x218d10[_0xd4577c('0x18da')]===_0xd4577c('0x1ef')){const _0x5937c5=_0x283545()[_0xd4577c('0x20e8')](_0x4a9127[_0xd4577c('0xf8')],{'id':Number(_0x218d10[_0xd4577c('0x49')])});_0x3de8f5[_0xd4577c('0x13e3')](_0x5937c5);}});for(let _0x19ca11=0x0;_0x19ca11<_0x4a9127[_0x1f572d('0xf8')][_0x1f572d('0x2566')];_0x19ca11++){const _0x598787=_0x283545()['some'](_0x3de8f5,{'id':_0x4a9127[_0x1f572d('0xf8')][_0x19ca11]['id']});_0x598787&&(_0x4a9127[_0x1f572d('0xf8')][_0x19ca11]['canSelect']=![],_0x359480[_0x1f572d('0x13e3')](_0x4a9127['outboundRoutes'][_0x19ca11]));}_0x4a9127[_0x1f572d('0xf8')]=_0x359480;}else{if(!_0x335f46['autoAssociation'])return _0x21ed79['userProfileResource'][_0x1f572d('0x1335')]({'sectionId':_0x335f46['id']})[_0x1f572d('0x1714')][_0x1f572d('0x2788')](function(_0x45fed8){const _0x31a316=_0x1f572d,_0x466cb3=_0x283545()[_0x31a316('0x155d')](_0x45fed8[_0x31a316('0x25df')],function(_0x548afe){const _0x8de18d=_0x31a316;return _0x283545()[_0x8de18d('0x20e8')](_0x4a9127[_0x8de18d('0xf8')],{'id':_0x548afe[_0x8de18d('0x2707')]});});let _0xa9d4af=null;_0xa9d4af=[],_0x4a9127[_0x31a316('0x89b')][_0x31a316('0x25df')][_0x31a316('0x1534')](function(_0x573e28){const _0x11fb60=_0x31a316;if(_0x573e28[_0x11fb60('0x18da')]==='routeId'){const _0x25704c=_0x283545()[_0x11fb60('0x20e8')](_0x4a9127[_0x11fb60('0xf8')],{'id':Number(_0x573e28['value'])});_0xa9d4af['push'](_0x25704c);}}),!_0x283545()[_0x31a316('0x213d')](_0xa9d4af)&&_0xa9d4af[_0x31a316('0x1534')](function(_0x2bba56){const _0x2f75b3=_0x31a316;if(!_0x283545()[_0x2f75b3('0xc5d')](_0x466cb3,['id',_0x2bba56['id']])){const _0x45ed47=_0x283545()[_0x2f75b3('0x20e8')](_0x4a9127[_0x2f75b3('0xf8')],{'id':_0x2bba56['id']});_0x45ed47[_0x2f75b3('0x3bf')]=![],_0x466cb3[_0x2f75b3('0x13e3')](_0x45ed47);}}),_0x4a9127[_0x31a316('0xf8')]=_0x466cb3;});}})[_0x3210c5('0x1cb5')](function(_0x36a478){const _0x222379=_0x3210c5;_0x10fbe4[_0x222379('0x5e8')]({'title':_0x36a478[_0x222379('0x1b51')]?_0x222379('0x15d1')+_0x36a478[_0x222379('0x1b51')]+'\x20-\x20'+_0x36a478[_0x222379('0x22ce')]:_0x222379('0x10ea'),'msg':_0x36a478[_0x222379('0x11fc')]?JSON['stringify'](_0x36a478[_0x222379('0x11fc')]):_0x36a478[_0x222379('0x17df')]()});});}function _0x38e667(){const _0x2f4b06=_0x4f425f;_0x559220[_0x2f4b06('0x1e40')]()?_0x21ed79['user'][_0x2f4b06('0x1335')]({'fields':'id,name,fullname','sort':'name','role':_0x2f4b06('0x188b'),'nolimit':_0x2f4b06('0x1001')})[_0x2f4b06('0x1714')][_0x2f4b06('0x2788')](function(_0x4e596f){const _0x25b42c=_0x2f4b06;_0x4a9127['agents']=_0x4e596f[_0x25b42c('0x25df')]||[];})[_0x2f4b06('0x1cb5')](function(_0x538725){const _0x23a33a=_0x2f4b06;_0x10fbe4['error']({'title':_0x538725['status']?_0x23a33a('0x15d1')+_0x538725[_0x23a33a('0x1b51')]+_0x23a33a('0x1b0b')+_0x538725[_0x23a33a('0x22ce')]:_0x23a33a('0xd90'),'msg':_0x538725[_0x23a33a('0x11fc')]?JSON['stringify'](_0x538725[_0x23a33a('0x11fc')]):_0x538725[_0x23a33a('0x17df')]()});}):_0x21ed79[_0x2f4b06('0x1e6a')]['get']({'fields':'id,name,fullname','sort':_0x2f4b06('0x1a8d'),'role':'agent','nolimit':_0x2f4b06('0x1001')})[_0x2f4b06('0x1714')][_0x2f4b06('0x2788')](function(_0xf37e59){const _0x395f3f=_0x2f4b06;_0x4a9127[_0x395f3f('0x1713')]=_0xf37e59['rows']||[];})[_0x2f4b06('0x2788')](function(){const _0x5875c5=_0x2f4b06;return _0x21ed79[_0x5875c5('0xec9')][_0x5875c5('0x1335')]({'userProfileId':_0x4a9127['currentUser']['userProfileId'],'sectionId':0xca})['$promise'];})['then'](function(_0x179f7a){const _0x251faa=_0x2f4b06,_0x4a7370=_0x179f7a&&_0x179f7a[_0x251faa('0x25df')]?_0x179f7a[_0x251faa('0x25df')][0x0]:null;if(!_0x4a7370){const _0x1e494b=[],_0x1f467f=[];_0x4a9127[_0x251faa('0x89b')][_0x251faa('0x25df')][_0x251faa('0x1534')](function(_0x21aff9){const _0x338750=_0x251faa;if(_0x21aff9['field']===_0x338750('0x188b')){const _0x23438c=_0x283545()[_0x338750('0x20e8')](_0x4a9127[_0x338750('0x1713')],{'name':_0x21aff9[_0x338750('0x49')]});_0x1f467f['push'](_0x23438c);}});for(let _0x55334d=0x0;_0x55334d<_0x4a9127['agents'][_0x251faa('0x2566')];_0x55334d++){const _0x2db0c8=_0x283545()['some'](_0x1f467f,{'id':_0x4a9127[_0x251faa('0x1713')][_0x55334d]['id']});_0x2db0c8&&(_0x4a9127[_0x251faa('0x1713')][_0x55334d]['canSelect']=![],_0x1e494b[_0x251faa('0x13e3')](_0x4a9127['agents'][_0x55334d]));}_0x4a9127['agents']=_0x1e494b;}else{if(!_0x4a7370[_0x251faa('0x1c0a')])return _0x21ed79['userProfileResource'][_0x251faa('0x1335')]({'sectionId':_0x4a7370['id']})['$promise'][_0x251faa('0x2788')](function(_0x2dfa20){const _0x3d7670=_0x251faa,_0x595f17=_0x283545()[_0x3d7670('0x155d')](_0x2dfa20['rows'],function(_0x2e0a08){const _0x274ad8=_0x3d7670;return _0x283545()[_0x274ad8('0x20e8')](_0x4a9127[_0x274ad8('0x1713')],{'id':_0x2e0a08[_0x274ad8('0x2707')]});});let _0x3b1631=null;_0x3b1631=[],_0x4a9127[_0x3d7670('0x89b')][_0x3d7670('0x25df')][_0x3d7670('0x1534')](function(_0x533e56){const _0x3669d9=_0x3d7670;if(_0x533e56[_0x3669d9('0x18da')]===_0x3669d9('0x188b')){const _0x56f6c9=_0x283545()[_0x3669d9('0x20e8')](_0x4a9127[_0x3669d9('0x1713')],{'name':_0x533e56[_0x3669d9('0x49')]});_0x3b1631[_0x3669d9('0x13e3')](_0x56f6c9);}}),!_0x283545()[_0x3d7670('0x213d')](_0x3b1631)&&_0x3b1631[_0x3d7670('0x1534')](function(_0x3252d7){const _0x5eb6a3=_0x3d7670;if(!_0x283545()['some'](_0x595f17,['id',_0x3252d7['id']])){const _0x4c13d0=_0x283545()[_0x5eb6a3('0x20e8')](_0x4a9127[_0x5eb6a3('0x1713')],{'id':_0x3252d7['id']});_0x4c13d0[_0x5eb6a3('0x3bf')]=![],_0x595f17[_0x5eb6a3('0x13e3')](_0x4c13d0);}}),_0x4a9127[_0x3d7670('0x1713')]=_0x595f17;});}})[_0x2f4b06('0x1cb5')](function(_0x23c0f4){const _0x505cbb=_0x2f4b06;_0x10fbe4['error']({'title':_0x23c0f4[_0x505cbb('0x1b51')]?_0x505cbb('0x15d1')+_0x23c0f4[_0x505cbb('0x1b51')]+_0x505cbb('0x1b0b')+_0x23c0f4['statusText']:_0x505cbb('0xd90'),'msg':_0x23c0f4[_0x505cbb('0x11fc')]?JSON['stringify'](_0x23c0f4['data']):_0x23c0f4[_0x505cbb('0x17df')]()});});}function _0x3ab01e(){const _0x45fe9f=_0x4f425f;if(_0x4a9127['trigger']['channel']===_0x45fe9f('0x1f60')){if(_0x283545()['some'](_0x4a9127[_0x45fe9f('0x89b')][_0x45fe9f('0x25df')],['field',_0x45fe9f('0x1ab4')])){if(!_0x4a9127[_0x45fe9f('0x283e')])_0x22ce66();}if(_0x283545()['some'](_0x4a9127['triggerAllConditions'][_0x45fe9f('0x25df')],[_0x45fe9f('0x18da'),_0x45fe9f('0x1ef')])){if(!_0x4a9127[_0x45fe9f('0xf8')])_0x3a089a();}if(_0x283545()[_0x45fe9f('0xc5d')](_0x4a9127[_0x45fe9f('0x89b')][_0x45fe9f('0x25df')],[_0x45fe9f('0x18da'),_0x45fe9f('0x188b')])){if(!_0x4a9127[_0x45fe9f('0x1713')])_0x38e667();}}else _0x578843();}function _0x5764d1(_0x115deb){_0x4a9127['triggerAllConditions']=_0x115deb||{'count':0x0,'rows':[]},_0x3ab01e();}function _0x474020(){const _0x17304b=_0x4f425f;_0x4a9127[_0x17304b('0x135a')][_0x17304b('0x19e')]=(_0x4a9127[_0x17304b('0x135a')][_0x17304b('0x23f5')]-0x1)*_0x4a9127[_0x17304b('0x135a')][_0x17304b('0x68e')],_0x4a9127['promise']=_0x21ed79['trigger']['getAllConditions'](_0x4a9127[_0x17304b('0x135a')],_0x5764d1)[_0x17304b('0x1714')];}function _0xdc9c98(_0x30dd3f,_0x15cb60){const _0x3febfa=_0x4f425f;_0x15adbe[_0x3febfa('0x2fa')]({'controller':_0x3febfa('0x1aa4'),'controllerAs':'vm','templateUrl':_0x47a2b8,'parent':angular['element'](_0x218b8f[_0x3febfa('0x945')]),'targetEvent':_0x30dd3f,'clickOutsideToClose':!![],'locals':{'trigger':_0x4a9127['trigger'],'allCondition':_0x15cb60,'allConditions':_0x4a9127['triggerAllConditions'][_0x3febfa('0x25df')],'license':null,'setting':null,'crudPermissions':_0x4a9127[_0x3febfa('0xe28')]}})['then'](function(_0x6add97){const _0x354789=_0x3febfa;_0x6add97&&(_0x4a9127[_0x354789('0x89b')]={'count':_0x6add97['length'],'rows':_0x6add97},_0x3ab01e());});}function _0xfa4292(_0x3e1158,_0x37b5bb){const _0x4deac5=_0x4f425f,_0x58acdd=_0x15adbe[_0x4deac5('0x112e')]()[_0x4deac5('0x14e4')](_0x4b3b23[_0x4deac5('0x1b11')](_0x4deac5('0x26bd')))[_0x4deac5('0x10bc')](_0x4deac5('0x618'))['targetEvent'](_0x37b5bb)['ok']('OK')[_0x4deac5('0x1801')](_0x4b3b23[_0x4deac5('0x1b11')](_0x4deac5('0x1061')));_0x15adbe[_0x4deac5('0x2fa')](_0x58acdd)[_0x4deac5('0x2788')](function(){_0x44d844(_0x3e1158,!![]);});}function _0x44d844(_0x18519c,_0x5cab4b){const _0x4e7009=_0x4f425f;_0x21ed79[_0x4e7009('0xf2b')][_0x4e7009('0x17c4')]({'id':_0x18519c['id']})[_0x4e7009('0x1714')][_0x4e7009('0x2788')](function(){const _0x37f0a6=_0x4e7009;_0x474020(),_0x5cab4b&&_0x10fbe4[_0x37f0a6('0x173b')]({'title':_0x4b3b23[_0x37f0a6('0x1b11')](_0x37f0a6('0xc8c'))});})[_0x4e7009('0x1cb5')](function(_0x3c7baf){const _0x1f536c=_0x4e7009;if(_0x3c7baf[_0x1f536c('0x11fc')]&&_0x3c7baf['data'][_0x1f536c('0x25be')]&&_0x3c7baf['data']['errors']['length']){_0x4a9127[_0x1f536c('0x25be')]=_0x3c7baf[_0x1f536c('0x11fc')][_0x1f536c('0x25be')]||[{'message':_0x3c7baf['toString'](),'type':_0x1f536c('0x221c')}];for(let _0x3486e5=0x0;_0x3486e5<_0x3c7baf[_0x1f536c('0x11fc')][_0x1f536c('0x25be')][_0x1f536c('0x2566')];_0x3486e5++){_0x10fbe4[_0x1f536c('0x5e8')]({'title':_0x3c7baf[_0x1f536c('0x11fc')][_0x1f536c('0x25be')][_0x3486e5][_0x1f536c('0x1d7')],'msg':_0x3c7baf['data'][_0x1f536c('0x25be')][_0x3486e5][_0x1f536c('0x15e2')]});}}else _0x10fbe4[_0x1f536c('0x5e8')]({'title':_0x3c7baf[_0x1f536c('0x1b51')]?_0x1f536c('0x15d1')+_0x3c7baf['status']+'\x20-\x20'+_0x3c7baf[_0x1f536c('0x22ce')]:_0x1f536c('0x221c'),'msg':_0x3c7baf[_0x1f536c('0x11fc')]?JSON[_0x1f536c('0x1be0')](_0x3c7baf[_0x1f536c('0x11fc')]['message']):_0x3c7baf[_0x1f536c('0x15e2')]||_0x3c7baf[_0x1f536c('0x17df')]()});});}function _0x479859(){const _0x434387=_0x4f425f,_0x15f3ef=angular[_0x434387('0x2669')](_0x4a9127[_0x434387('0x1d93')]);return _0x4a9127['selectedTriggerAllConditions']=[],_0x15f3ef;}function _0x13e5ad(_0x2a6711){const _0x5df197=_0x4f425f,_0x39d874=_0x15adbe[_0x5df197('0x112e')]()[_0x5df197('0x14e4')](_0x4b3b23['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE'))[_0x5df197('0x1c98')](_0x4b3b23[_0x5df197('0x1b11')](_0x5df197('0x218e'),{'total':_0x4a9127[_0x5df197('0x1d93')][_0x5df197('0x2566')]}))[_0x5df197('0x10bc')]('Delete\x20conditions')[_0x5df197('0x24d0')](_0x2a6711)['ok']('OK')[_0x5df197('0x1801')](_0x4b3b23[_0x5df197('0x1b11')](_0x5df197('0x1061')));_0x15adbe[_0x5df197('0x2fa')](_0x39d874)[_0x5df197('0x2788')](function(){const _0x103d60=_0x5df197;_0x4a9127[_0x103d60('0x1d93')][_0x103d60('0x1534')](function(_0x3ea7dc){_0x44d844(_0x3ea7dc);}),_0x4a9127[_0x103d60('0x1d93')]=[],_0x10fbe4[_0x103d60('0x173b')]({'title':_0x4b3b23[_0x103d60('0x1b11')](_0x103d60('0x1d34'))});});}let _0x174426=!![],_0x3660c2=0x1;_0x525e4e[_0x4f425f('0x1662')]('vm_dc.query.filter',function(_0x22fbcd,_0x426d80){const _0x2c89a1=_0x4f425f;_0x174426?_0x4c3d1b(function(){_0x174426=![];}):(!_0x426d80&&(_0x3660c2=_0x4a9127[_0x2c89a1('0x135a')][_0x2c89a1('0x23f5')]),_0x22fbcd!==_0x426d80&&(_0x4a9127[_0x2c89a1('0x135a')][_0x2c89a1('0x23f5')]=0x1),!_0x22fbcd&&(_0x4a9127[_0x2c89a1('0x135a')][_0x2c89a1('0x23f5')]=_0x3660c2),_0x474020());});}const _0x1c2230=_0x27d673;_0x511851[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1c79'),_0x34e79e('0x5e4'),_0x34e79e('0x126e'),'api',_0x34e79e('0x1b04'),'license','setting',_0x34e79e('0xe28')];function _0x511851(_0x41d2d8,_0x344a04,_0x387a79,_0x232199,_0x4c22e4,_0xbb2ddf,_0x401194,_0x2d4f99,_0xe13eaa,_0x4014d3,_0x32de11,_0x251966,_0x18ac2e,_0x317fa7,_0x4b1536){const _0x3a5eb1=_0x34e79e,_0xe95ac2=this;_0xe95ac2[_0x3a5eb1('0x9cb')]=_0x251966[_0x3a5eb1('0x24cc')](),_0xe95ac2[_0x3a5eb1('0x25be')]=[],_0xe95ac2[_0x3a5eb1('0x1af0')]=_0x317fa7,_0xe95ac2['license']=_0x18ac2e,_0xe95ac2[_0x3a5eb1('0xe28')]=_0x4b1536,_0xe95ac2[_0x3a5eb1('0x1193')]={},_0xe95ac2[_0x3a5eb1('0x18ad')]=_0xe95ac2[_0x3a5eb1('0x1af0')]&&_0xe95ac2[_0x3a5eb1('0x1af0')][_0x3a5eb1('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe95ac2[_0x3a5eb1('0x14e4')]=_0x3a5eb1('0x172d'),_0xe95ac2[_0x3a5eb1('0x5e4')]=angular[_0x3a5eb1('0x2669')](_0xe13eaa),_0xe95ac2[_0x3a5eb1('0x1c79')]=_0x2d4f99,_0xe95ac2['newAllCondition']=![],_0xe95ac2[_0x3a5eb1('0x126e')]=angular[_0x3a5eb1('0x2669')](_0x4014d3);!_0xe95ac2['allCondition']&&(_0xe95ac2[_0x3a5eb1('0x5e4')]={'field':_0x3a5eb1('0x1ab4'),'operator':_0x3a5eb1('0x2309'),'value':'in'},_0xe95ac2[_0x3a5eb1('0x14e4')]=_0x3a5eb1('0x121d'),_0xe95ac2[_0x3a5eb1('0x126b')]=!![]);_0x344a04['params']['id']&&(_0xe95ac2['allCondition'][_0x3a5eb1('0x322')]=_0x344a04[_0x3a5eb1('0x4b9')]['id']);_0xe95ac2[_0x3a5eb1('0x1d6')]=_0x1250e4,_0xe95ac2[_0x3a5eb1('0x136f')]=_0x214343,_0xe95ac2[_0x3a5eb1('0x943')]=_0xfecde6,_0xe95ac2[_0x3a5eb1('0x2601')]=_0x57075c,_0xe95ac2['closeDialog']=_0x2c4ab8,_0x251966['hasRole']('admin')?_0x32de11[_0x3a5eb1('0x169c')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':'true'})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x478892){const _0x175b22=_0x3a5eb1;_0xe95ac2['chatAccounts']=_0x478892[_0x175b22('0x25df')]||[];})['catch'](function(_0x537269){const _0x3ec78b=_0x3a5eb1;_0x401194[_0x3ec78b('0x5e8')]({'title':_0x537269[_0x3ec78b('0x1b51')]?_0x3ec78b('0x15d1')+_0x537269[_0x3ec78b('0x1b51')]+_0x3ec78b('0x1b0b')+_0x537269[_0x3ec78b('0x22ce')]:'SYSTEM:GET_CHATACCOUNTS','msg':_0x537269['data']?JSON[_0x3ec78b('0x1be0')](_0x537269[_0x3ec78b('0x11fc')]):_0x537269[_0x3ec78b('0x17df')]()});}):_0x32de11['chatWebsite'][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')]['then'](function(_0x5a5137){_0xe95ac2['chatAccounts']=_0x5a5137['rows']||[];})[_0x3a5eb1('0x2788')](function(){const _0x1f8bda=_0x3a5eb1;return _0x32de11['userProfileSection'][_0x1f8bda('0x1335')]({'userProfileId':_0xe95ac2[_0x1f8bda('0x9cb')][_0x1f8bda('0x237f')],'sectionId':0x1f6})[_0x1f8bda('0x1714')];})[_0x3a5eb1('0x2788')](function(_0xc3dc11){const _0x475a00=_0x3a5eb1,_0x2be0a7=_0xc3dc11&&_0xc3dc11[_0x475a00('0x25df')]?_0xc3dc11[_0x475a00('0x25df')][0x0]:null;if(!_0x2be0a7){const _0x3b1a38=[];let _0x5915c4=null;_0xe95ac2[_0x475a00('0x5e4')]&&(_0x5915c4=_0x283545()[_0x475a00('0x20e8')](_0xe95ac2['chatAccounts'],{'id':Number(_0xe95ac2[_0x475a00('0x5e4')][_0x475a00('0x49')])}));for(let _0x4eb3f8=0x0;_0x4eb3f8<_0xe95ac2['chatAccounts'][_0x475a00('0x2566')];_0x4eb3f8++){_0x5915c4&&_0xe95ac2['chatAccounts'][_0x4eb3f8]['id']===_0x5915c4['id']&&(_0xe95ac2[_0x475a00('0x60')][_0x4eb3f8][_0x475a00('0x3bf')]=![],_0x3b1a38[_0x475a00('0x13e3')](_0xe95ac2[_0x475a00('0x60')][_0x4eb3f8]));}_0xe95ac2[_0x475a00('0x60')]=_0x3b1a38;}else{if(!_0x2be0a7['autoAssociation'])return _0x32de11[_0x475a00('0x1050')][_0x475a00('0x1335')]({'sectionId':_0x2be0a7['id']})[_0x475a00('0x1714')][_0x475a00('0x2788')](function(_0x311cff){const _0x2e316a=_0x475a00,_0x523650=_0x283545()[_0x2e316a('0x155d')](_0x311cff['rows'],function(_0x23cc67){const _0x48a7f=_0x2e316a;return _0x283545()[_0x48a7f('0x20e8')](_0xe95ac2[_0x48a7f('0x60')],{'id':_0x23cc67[_0x48a7f('0x2707')]});});let _0x36d1ca=null;_0xe95ac2[_0x2e316a('0x5e4')]&&(_0x36d1ca=_0x283545()[_0x2e316a('0x20e8')](_0xe95ac2[_0x2e316a('0x60')],{'id':Number(_0xe95ac2[_0x2e316a('0x5e4')][_0x2e316a('0x49')])}));if(_0x36d1ca&&!_0x283545()[_0x2e316a('0xc5d')](_0x523650,['id',_0x36d1ca['id']])){const _0x2be85b=_0x283545()[_0x2e316a('0x20e8')](_0xe95ac2[_0x2e316a('0x60')],{'id':_0x36d1ca['id']});_0x2be85b['canSelect']=![],_0x523650[_0x2e316a('0x13e3')](_0x2be85b);}_0xe95ac2[_0x2e316a('0x60')]=_0x523650;});}})[_0x3a5eb1('0x1cb5')](function(_0x5aca8a){const _0x2f2da7=_0x3a5eb1;_0x401194['error']({'title':_0x5aca8a[_0x2f2da7('0x1b51')]?_0x2f2da7('0x15d1')+_0x5aca8a['status']+'\x20-\x20'+_0x5aca8a[_0x2f2da7('0x22ce')]:_0x2f2da7('0x31b'),'msg':_0x5aca8a[_0x2f2da7('0x11fc')]?JSON[_0x2f2da7('0x1be0')](_0x5aca8a[_0x2f2da7('0x11fc')]):_0x5aca8a[_0x2f2da7('0x17df')]()});}),_0x251966['hasRole'](_0x3a5eb1('0xe23'))?_0x32de11[_0x3a5eb1('0x2594')][_0x3a5eb1('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x3a9c8d){const _0x1301ae=_0x3a5eb1;_0xe95ac2[_0x1301ae('0x1e22')]=_0x3a9c8d[_0x1301ae('0x25df')]||[];})[_0x3a5eb1('0x1cb5')](function(_0x41006e){const _0x1d57b4=_0x3a5eb1;_0x401194[_0x1d57b4('0x5e8')]({'title':_0x41006e['status']?'API:'+_0x41006e[_0x1d57b4('0x1b51')]+_0x1d57b4('0x1b0b')+_0x41006e[_0x1d57b4('0x22ce')]:_0x1d57b4('0x1ae'),'msg':_0x41006e['data']?JSON[_0x1d57b4('0x1be0')](_0x41006e[_0x1d57b4('0x11fc')]):_0x41006e['toString']()});}):_0x32de11[_0x3a5eb1('0x2594')][_0x3a5eb1('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x2e52a5){const _0x37cfad=_0x3a5eb1;_0xe95ac2[_0x37cfad('0x1e22')]=_0x2e52a5['rows']||[];})[_0x3a5eb1('0x2788')](function(){const _0x59b001=_0x3a5eb1;return _0x32de11[_0x59b001('0xec9')][_0x59b001('0x1335')]({'userProfileId':_0xe95ac2[_0x59b001('0x9cb')][_0x59b001('0x237f')],'sectionId':0x25a})[_0x59b001('0x1714')];})['then'](function(_0x2312de){const _0x4c628d=_0x3a5eb1,_0x44a0d=_0x2312de&&_0x2312de[_0x4c628d('0x25df')]?_0x2312de[_0x4c628d('0x25df')][0x0]:null;if(!_0x44a0d){const _0x225883=[];let _0x5e3629=null;_0xe95ac2[_0x4c628d('0x5e4')]&&(_0x5e3629=_0x283545()[_0x4c628d('0x20e8')](_0xe95ac2[_0x4c628d('0x1e22')],{'id':Number(_0xe95ac2[_0x4c628d('0x5e4')][_0x4c628d('0x49')])}));for(let _0x1f738a=0x0;_0x1f738a<_0xe95ac2[_0x4c628d('0x1e22')][_0x4c628d('0x2566')];_0x1f738a++){_0x5e3629&&_0xe95ac2[_0x4c628d('0x1e22')][_0x1f738a]['id']===_0x5e3629['id']&&(_0xe95ac2[_0x4c628d('0x1e22')][_0x1f738a]['canSelect']=![],_0x225883[_0x4c628d('0x13e3')](_0xe95ac2[_0x4c628d('0x1e22')][_0x1f738a]));}_0xe95ac2['mailAccounts']=_0x225883;}else{if(!_0x44a0d[_0x4c628d('0x1c0a')])return _0x32de11[_0x4c628d('0x1050')][_0x4c628d('0x1335')]({'sectionId':_0x44a0d['id']})['$promise'][_0x4c628d('0x2788')](function(_0x322dde){const _0x1361dd=_0x4c628d,_0x5121aa=_0x283545()['map'](_0x322dde[_0x1361dd('0x25df')],function(_0x5a76d2){const _0x2b37ba=_0x1361dd;return _0x283545()[_0x2b37ba('0x20e8')](_0xe95ac2[_0x2b37ba('0x1e22')],{'id':_0x5a76d2['resourceId']});});let _0x443584=null;_0xe95ac2['allCondition']&&(_0x443584=_0x283545()[_0x1361dd('0x20e8')](_0xe95ac2['mailAccounts'],{'id':Number(_0xe95ac2[_0x1361dd('0x5e4')]['value'])}));if(_0x443584&&!_0x283545()[_0x1361dd('0xc5d')](_0x5121aa,['id',_0x443584['id']])){const _0x7b8f2c=_0x283545()[_0x1361dd('0x20e8')](_0xe95ac2['mailAccounts'],{'id':_0x443584['id']});_0x7b8f2c['canSelect']=![],_0x5121aa['push'](_0x7b8f2c);}_0xe95ac2[_0x1361dd('0x1e22')]=_0x5121aa;});}})[_0x3a5eb1('0x1cb5')](function(_0xf179e4){const _0x583506=_0x3a5eb1;_0x401194[_0x583506('0x5e8')]({'title':_0xf179e4[_0x583506('0x1b51')]?_0x583506('0x15d1')+_0xf179e4[_0x583506('0x1b51')]+_0x583506('0x1b0b')+_0xf179e4[_0x583506('0x22ce')]:'SYSTEM:GETmailAccounts','msg':_0xf179e4[_0x583506('0x11fc')]?JSON[_0x583506('0x1be0')](_0xf179e4['data']):_0xf179e4[_0x583506('0x17df')]()});}),_0x251966[_0x3a5eb1('0x1516')]('admin')?_0x32de11['smsAccount'][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x979d3f){const _0x17206f=_0x3a5eb1;_0xe95ac2['smsAccounts']=_0x979d3f[_0x17206f('0x25df')]||[];})[_0x3a5eb1('0x1cb5')](function(_0x18a51b){const _0x553c7c=_0x3a5eb1;_0x401194['error']({'title':_0x18a51b['status']?_0x553c7c('0x15d1')+_0x18a51b[_0x553c7c('0x1b51')]+'\x20-\x20'+_0x18a51b['statusText']:_0x553c7c('0x574'),'msg':_0x18a51b[_0x553c7c('0x11fc')]?JSON['stringify'](_0x18a51b[_0x553c7c('0x11fc')]):_0x18a51b[_0x553c7c('0x17df')]()});}):_0x32de11['smsAccount'][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':'true'})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x598195){const _0x53da1a=_0x3a5eb1;_0xe95ac2[_0x53da1a('0x5f4')]=_0x598195['rows']||[];})[_0x3a5eb1('0x2788')](function(){const _0x2fce6b=_0x3a5eb1;return _0x32de11[_0x2fce6b('0xec9')][_0x2fce6b('0x1335')]({'userProfileId':_0xe95ac2[_0x2fce6b('0x9cb')]['userProfileId'],'sectionId':0x2be})['$promise'];})[_0x3a5eb1('0x2788')](function(_0x419c80){const _0x774b83=_0x3a5eb1,_0x21a538=_0x419c80&&_0x419c80[_0x774b83('0x25df')]?_0x419c80[_0x774b83('0x25df')][0x0]:null;if(!_0x21a538){const _0x22082e=[];let _0x5ebc71=null;_0xe95ac2['allCondition']&&(_0x5ebc71=_0x283545()['find'](_0xe95ac2[_0x774b83('0x5f4')],{'id':Number(_0xe95ac2[_0x774b83('0x5e4')]['value'])}));for(let _0xd510cf=0x0;_0xd510cf<_0xe95ac2[_0x774b83('0x5f4')][_0x774b83('0x2566')];_0xd510cf++){_0x5ebc71&&_0xe95ac2[_0x774b83('0x5f4')][_0xd510cf]['id']===_0x5ebc71['id']&&(_0xe95ac2[_0x774b83('0x5f4')][_0xd510cf]['canSelect']=![],_0x22082e[_0x774b83('0x13e3')](_0xe95ac2[_0x774b83('0x5f4')][_0xd510cf]));}_0xe95ac2[_0x774b83('0x5f4')]=_0x22082e;}else{if(!_0x21a538[_0x774b83('0x1c0a')])return _0x32de11[_0x774b83('0x1050')][_0x774b83('0x1335')]({'sectionId':_0x21a538['id']})['$promise'][_0x774b83('0x2788')](function(_0x261f64){const _0x3db465=_0x774b83,_0x33503e=_0x283545()[_0x3db465('0x155d')](_0x261f64['rows'],function(_0x11bb01){const _0x4c676e=_0x3db465;return _0x283545()[_0x4c676e('0x20e8')](_0xe95ac2[_0x4c676e('0x5f4')],{'id':_0x11bb01[_0x4c676e('0x2707')]});});let _0x203ea9=null;_0xe95ac2[_0x3db465('0x5e4')]&&(_0x203ea9=_0x283545()[_0x3db465('0x20e8')](_0xe95ac2[_0x3db465('0x5f4')],{'id':Number(_0xe95ac2['allCondition'][_0x3db465('0x49')])}));if(_0x203ea9&&!_0x283545()['some'](_0x33503e,['id',_0x203ea9['id']])){const _0x288852=_0x283545()['find'](_0xe95ac2[_0x3db465('0x5f4')],{'id':_0x203ea9['id']});_0x288852['canSelect']=![],_0x33503e[_0x3db465('0x13e3')](_0x288852);}_0xe95ac2['smsAccounts']=_0x33503e;});}})[_0x3a5eb1('0x1cb5')](function(_0x424056){const _0x4705e1=_0x3a5eb1;_0x401194[_0x4705e1('0x5e8')]({'title':_0x424056['status']?_0x4705e1('0x15d1')+_0x424056[_0x4705e1('0x1b51')]+'\x20-\x20'+_0x424056[_0x4705e1('0x22ce')]:_0x4705e1('0x1f32'),'msg':_0x424056[_0x4705e1('0x11fc')]?JSON[_0x4705e1('0x1be0')](_0x424056['data']):_0x424056[_0x4705e1('0x17df')]()});}),_0x251966[_0x3a5eb1('0x1516')](_0x3a5eb1('0xe23'))?_0x32de11[_0x3a5eb1('0x15')]['get']({'fields':'id,name','sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x5e5164){const _0x7b5fc4=_0x3a5eb1;_0xe95ac2[_0x7b5fc4('0xa47')]=_0x5e5164[_0x7b5fc4('0x25df')]||[];})['catch'](function(_0x551124){const _0x482214=_0x3a5eb1;_0x401194[_0x482214('0x5e8')]({'title':_0x551124['status']?'API:'+_0x551124[_0x482214('0x1b51')]+_0x482214('0x1b0b')+_0x551124[_0x482214('0x22ce')]:_0x482214('0x19c7'),'msg':_0x551124['data']?JSON['stringify'](_0x551124['data']):_0x551124[_0x482214('0x17df')]()});}):_0x32de11['whatsappAccount'][_0x3a5eb1('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x32ae4b){const _0x2bceb5=_0x3a5eb1;_0xe95ac2[_0x2bceb5('0xa47')]=_0x32ae4b['rows']||[];})[_0x3a5eb1('0x2788')](function(){const _0x50b8ef=_0x3a5eb1;return _0x32de11[_0x50b8ef('0xec9')][_0x50b8ef('0x1335')]({'userProfileId':_0xe95ac2[_0x50b8ef('0x9cb')][_0x50b8ef('0x237f')],'sectionId':0x836})[_0x50b8ef('0x1714')];})[_0x3a5eb1('0x2788')](function(_0x4db027){const _0x45be81=_0x3a5eb1,_0x4e21f1=_0x4db027&&_0x4db027[_0x45be81('0x25df')]?_0x4db027[_0x45be81('0x25df')][0x0]:null;if(!_0x4e21f1){const _0xe68aaf=[];let _0x56ce63=null;_0xe95ac2[_0x45be81('0x5e4')]&&(_0x56ce63=_0x283545()[_0x45be81('0x20e8')](_0xe95ac2['whatsappAccounts'],{'id':Number(_0xe95ac2[_0x45be81('0x5e4')][_0x45be81('0x49')])}));for(let _0x611d6b=0x0;_0x611d6b<_0xe95ac2['whatsappAccounts'][_0x45be81('0x2566')];_0x611d6b++){_0x56ce63&&_0xe95ac2['whatsappAccounts'][_0x611d6b]['id']===_0x56ce63['id']&&(_0xe95ac2[_0x45be81('0xa47')][_0x611d6b][_0x45be81('0x3bf')]=![],_0xe68aaf[_0x45be81('0x13e3')](_0xe95ac2[_0x45be81('0xa47')][_0x611d6b]));}_0xe95ac2['whatsappAccounts']=_0xe68aaf;}else{if(!_0x4e21f1[_0x45be81('0x1c0a')])return _0x32de11[_0x45be81('0x1050')][_0x45be81('0x1335')]({'sectionId':_0x4e21f1['id']})[_0x45be81('0x1714')]['then'](function(_0x4a7c3c){const _0x1bbd96=_0x45be81,_0x487bcf=_0x283545()['map'](_0x4a7c3c[_0x1bbd96('0x25df')],function(_0x26ccb1){const _0x5f57a2=_0x1bbd96;return _0x283545()[_0x5f57a2('0x20e8')](_0xe95ac2['whatsappAccounts'],{'id':_0x26ccb1[_0x5f57a2('0x2707')]});});let _0x1a7f59=null;_0xe95ac2['allCondition']&&(_0x1a7f59=_0x283545()[_0x1bbd96('0x20e8')](_0xe95ac2[_0x1bbd96('0xa47')],{'id':Number(_0xe95ac2[_0x1bbd96('0x5e4')][_0x1bbd96('0x49')])}));if(_0x1a7f59&&!_0x283545()[_0x1bbd96('0xc5d')](_0x487bcf,['id',_0x1a7f59['id']])){const _0x446f73=_0x283545()[_0x1bbd96('0x20e8')](_0xe95ac2[_0x1bbd96('0xa47')],{'id':_0x1a7f59['id']});_0x446f73['canSelect']=![],_0x487bcf[_0x1bbd96('0x13e3')](_0x446f73);}_0xe95ac2[_0x1bbd96('0xa47')]=_0x487bcf;});}})[_0x3a5eb1('0x1cb5')](function(_0x5a3ebc){const _0x297e33=_0x3a5eb1;_0x401194[_0x297e33('0x5e8')]({'title':_0x5a3ebc[_0x297e33('0x1b51')]?_0x297e33('0x15d1')+_0x5a3ebc[_0x297e33('0x1b51')]+_0x297e33('0x1b0b')+_0x5a3ebc[_0x297e33('0x22ce')]:_0x297e33('0x57a'),'msg':_0x5a3ebc[_0x297e33('0x11fc')]?JSON[_0x297e33('0x1be0')](_0x5a3ebc[_0x297e33('0x11fc')]):_0x5a3ebc[_0x297e33('0x17df')]()});}),_0x251966[_0x3a5eb1('0x1516')]('admin')?_0x32de11[_0x3a5eb1('0x1fb8')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x4d2a00){const _0x4091f7=_0x3a5eb1;_0xe95ac2['faxAccounts']=_0x4d2a00[_0x4091f7('0x25df')]||[];})['catch'](function(_0x5ec550){const _0x2ee53e=_0x3a5eb1;_0x401194[_0x2ee53e('0x5e8')]({'title':_0x5ec550['status']?_0x2ee53e('0x15d1')+_0x5ec550[_0x2ee53e('0x1b51')]+_0x2ee53e('0x1b0b')+_0x5ec550[_0x2ee53e('0x22ce')]:_0x2ee53e('0x5c5'),'msg':_0x5ec550[_0x2ee53e('0x11fc')]?JSON['stringify'](_0x5ec550['data']):_0x5ec550[_0x2ee53e('0x17df')]()});}):_0x32de11[_0x3a5eb1('0x1fb8')][_0x3a5eb1('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x3a5eb1('0x1001')})['$promise'][_0x3a5eb1('0x2788')](function(_0x378206){const _0x51270a=_0x3a5eb1;_0xe95ac2[_0x51270a('0xe9b')]=_0x378206[_0x51270a('0x25df')]||[];})[_0x3a5eb1('0x2788')](function(){const _0xe620dd=_0x3a5eb1;return _0x32de11['userProfileSection']['get']({'userProfileId':_0xe95ac2[_0xe620dd('0x9cb')][_0xe620dd('0x237f')],'sectionId':0x386})[_0xe620dd('0x1714')];})[_0x3a5eb1('0x2788')](function(_0x20f62f){const _0x5c8867=_0x3a5eb1,_0x115082=_0x20f62f&&_0x20f62f[_0x5c8867('0x25df')]?_0x20f62f[_0x5c8867('0x25df')][0x0]:null;if(!_0x115082){const _0x39b886=[];let _0x20b41d=null;_0xe95ac2[_0x5c8867('0x5e4')]&&(_0x20b41d=_0x283545()[_0x5c8867('0x20e8')](_0xe95ac2[_0x5c8867('0xe9b')],{'id':Number(_0xe95ac2[_0x5c8867('0x5e4')]['value'])}));for(let _0x44db31=0x0;_0x44db31<_0xe95ac2[_0x5c8867('0xe9b')][_0x5c8867('0x2566')];_0x44db31++){_0x20b41d&&_0xe95ac2['faxAccounts'][_0x44db31]['id']===_0x20b41d['id']&&(_0xe95ac2['faxAccounts'][_0x44db31][_0x5c8867('0x3bf')]=![],_0x39b886[_0x5c8867('0x13e3')](_0xe95ac2[_0x5c8867('0xe9b')][_0x44db31]));}_0xe95ac2[_0x5c8867('0xe9b')]=_0x39b886;}else{if(!_0x115082[_0x5c8867('0x1c0a')])return _0x32de11[_0x5c8867('0x1050')]['get']({'sectionId':_0x115082['id']})[_0x5c8867('0x1714')][_0x5c8867('0x2788')](function(_0x48f20f){const _0x3e207c=_0x5c8867,_0x32ba2d=_0x283545()[_0x3e207c('0x155d')](_0x48f20f[_0x3e207c('0x25df')],function(_0x8785a8){const _0x4110f5=_0x3e207c;return _0x283545()[_0x4110f5('0x20e8')](_0xe95ac2[_0x4110f5('0xe9b')],{'id':_0x8785a8['resourceId']});});let _0x1920af=null;_0xe95ac2['allCondition']&&(_0x1920af=_0x283545()[_0x3e207c('0x20e8')](_0xe95ac2[_0x3e207c('0xe9b')],{'id':Number(_0xe95ac2[_0x3e207c('0x5e4')][_0x3e207c('0x49')])}));if(_0x1920af&&!_0x283545()[_0x3e207c('0xc5d')](_0x32ba2d,['id',_0x1920af['id']])){const _0x2466bc=_0x283545()[_0x3e207c('0x20e8')](_0xe95ac2['faxAccounts'],{'id':_0x1920af['id']});_0x2466bc[_0x3e207c('0x3bf')]=![],_0x32ba2d[_0x3e207c('0x13e3')](_0x2466bc);}_0xe95ac2[_0x3e207c('0xe9b')]=_0x32ba2d;});}})[_0x3a5eb1('0x1cb5')](function(_0x21d343){const _0x220f71=_0x3a5eb1;_0x401194[_0x220f71('0x5e8')]({'title':_0x21d343[_0x220f71('0x1b51')]?_0x220f71('0x15d1')+_0x21d343[_0x220f71('0x1b51')]+_0x220f71('0x1b0b')+_0x21d343[_0x220f71('0x22ce')]:_0x220f71('0x1cd6'),'msg':_0x21d343[_0x220f71('0x11fc')]?JSON[_0x220f71('0x1be0')](_0x21d343[_0x220f71('0x11fc')]):_0x21d343['toString']()});}),_0x251966[_0x3a5eb1('0x1516')](_0x3a5eb1('0xe23'))?_0x32de11[_0x3a5eb1('0xfba')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':'true'})['$promise']['then'](function(_0xad3a2){const _0x2a7acb=_0x3a5eb1;_0xe95ac2[_0x2a7acb('0x1e10')]=_0xad3a2[_0x2a7acb('0x25df')]||[];})[_0x3a5eb1('0x1cb5')](function(_0x133925){const _0x2042b9=_0x3a5eb1;_0x401194['error']({'title':_0x133925[_0x2042b9('0x1b51')]?_0x2042b9('0x15d1')+_0x133925[_0x2042b9('0x1b51')]+_0x2042b9('0x1b0b')+_0x133925['statusText']:_0x2042b9('0xabb'),'msg':_0x133925['data']?JSON['stringify'](_0x133925['data']):_0x133925[_0x2042b9('0x17df')]()});}):_0x32de11[_0x3a5eb1('0xfba')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x1338'),'sort':'id','nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x574898){const _0x4d3ccd=_0x3a5eb1;_0xe95ac2[_0x4d3ccd('0x1e10')]=_0x574898[_0x4d3ccd('0x25df')]||[];})[_0x3a5eb1('0x2788')](function(){const _0x380354=_0x3a5eb1;return _0x32de11[_0x380354('0xec9')][_0x380354('0x1335')]({'userProfileId':_0xe95ac2['currentUser']['userProfileId'],'sectionId':0x322})[_0x380354('0x1714')];})[_0x3a5eb1('0x2788')](function(_0x31b23b){const _0x495c9c=_0x3a5eb1,_0x59f7ba=_0x31b23b&&_0x31b23b[_0x495c9c('0x25df')]?_0x31b23b[_0x495c9c('0x25df')][0x0]:null;if(!_0x59f7ba){const _0x45fd8f=[];let _0x2209e7=null;_0xe95ac2[_0x495c9c('0x5e4')]&&(_0x2209e7=_0x283545()['find'](_0xe95ac2['openchannelAccounts'],{'id':Number(_0xe95ac2['allCondition'][_0x495c9c('0x49')])}));for(let _0x3cb89b=0x0;_0x3cb89b<_0xe95ac2[_0x495c9c('0x1e10')][_0x495c9c('0x2566')];_0x3cb89b++){_0x2209e7&&_0xe95ac2[_0x495c9c('0x1e10')][_0x3cb89b]['id']===_0x2209e7['id']&&(_0xe95ac2[_0x495c9c('0x1e10')][_0x3cb89b][_0x495c9c('0x3bf')]=![],_0x45fd8f[_0x495c9c('0x13e3')](_0xe95ac2[_0x495c9c('0x1e10')][_0x3cb89b]));}_0xe95ac2[_0x495c9c('0x1e10')]=_0x45fd8f;}else{if(!_0x59f7ba[_0x495c9c('0x1c0a')])return _0x32de11[_0x495c9c('0x1050')][_0x495c9c('0x1335')]({'sectionId':_0x59f7ba['id']})[_0x495c9c('0x1714')][_0x495c9c('0x2788')](function(_0x25a979){const _0xff6da8=_0x495c9c,_0x4741d4=_0x283545()[_0xff6da8('0x155d')](_0x25a979['rows'],function(_0x21b4b4){const _0x4b5121=_0xff6da8;return _0x283545()['find'](_0xe95ac2[_0x4b5121('0x1e10')],{'id':_0x21b4b4[_0x4b5121('0x2707')]});});let _0x5b2c86=null;_0xe95ac2[_0xff6da8('0x5e4')]&&(_0x5b2c86=_0x283545()['find'](_0xe95ac2[_0xff6da8('0x1e10')],{'id':Number(_0xe95ac2[_0xff6da8('0x5e4')]['value'])}));if(_0x5b2c86&&!_0x283545()[_0xff6da8('0xc5d')](_0x4741d4,['id',_0x5b2c86['id']])){const _0x544413=_0x283545()[_0xff6da8('0x20e8')](_0xe95ac2[_0xff6da8('0x1e10')],{'id':_0x5b2c86['id']});_0x544413['canSelect']=![],_0x4741d4[_0xff6da8('0x13e3')](_0x544413);}_0xe95ac2['openchannelAccounts']=_0x4741d4;});}})['catch'](function(_0x106ba4){const _0x4e1cd9=_0x3a5eb1;_0x401194[_0x4e1cd9('0x5e8')]({'title':_0x106ba4[_0x4e1cd9('0x1b51')]?_0x4e1cd9('0x15d1')+_0x106ba4[_0x4e1cd9('0x1b51')]+_0x4e1cd9('0x1b0b')+_0x106ba4['statusText']:'SYSTEM:GETopenchannelAccounts','msg':_0x106ba4['data']?JSON[_0x4e1cd9('0x1be0')](_0x106ba4[_0x4e1cd9('0x11fc')]):_0x106ba4[_0x4e1cd9('0x17df')]()});});const _0x55fac3=[{'id':0x191,'type':_0x3a5eb1('0x2e4')},{'id':0x5dd,'type':_0x3a5eb1('0x1')}];let _0x37046d=null;_0x251966[_0x3a5eb1('0x1516')](_0x3a5eb1('0xe23'))?_0x32de11[_0x3a5eb1('0x2043')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0xafa'),'sort':_0x3a5eb1('0x1a8d'),'nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')]['then'](function(_0x1e6ae5){const _0x33ba59=_0x3a5eb1;_0xe95ac2[_0x33ba59('0x283e')]=_0x1e6ae5['rows']||[];})[_0x3a5eb1('0x1cb5')](function(_0x2dc4f9){const _0x5ad4c3=_0x3a5eb1;_0x401194[_0x5ad4c3('0x5e8')]({'title':_0x2dc4f9['status']?_0x5ad4c3('0x15d1')+_0x2dc4f9[_0x5ad4c3('0x1b51')]+'\x20-\x20'+_0x2dc4f9[_0x5ad4c3('0x22ce')]:_0x5ad4c3('0x2763'),'msg':_0x2dc4f9[_0x5ad4c3('0x11fc')]?JSON[_0x5ad4c3('0x1be0')](_0x2dc4f9[_0x5ad4c3('0x11fc')]):_0x2dc4f9[_0x5ad4c3('0x17df')]()});}):_0x32de11[_0x3a5eb1('0x2043')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0xafa'),'sort':_0x3a5eb1('0x1a8d'),'nolimit':_0x3a5eb1('0x1001')})['$promise']['then'](function(_0x540d75){const _0x1b0ba9=_0x3a5eb1;_0x37046d=_0x540d75[_0x1b0ba9('0x25df')]||[];})['then'](function(){const _0x1108aa=_0x3a5eb1,_0x1e485f=[];for(let _0x166a12=0x0;_0x166a12<_0x55fac3[_0x1108aa('0x2566')];_0x166a12++){_0x1e485f[_0x1108aa('0x13e3')](_0x32de11['userProfileSection'][_0x1108aa('0x1335')]({'userProfileId':_0xe95ac2[_0x1108aa('0x9cb')][_0x1108aa('0x237f')],'sectionId':_0x55fac3[_0x166a12]['id']})['$promise']);}return _0x4c22e4['all'](_0x1e485f);})[_0x3a5eb1('0x2788')](function(_0x18ea39){const _0x3b9870=_0x3a5eb1,_0x386ef5=_0x283545()[_0x3b9870('0x155d')](_0x18ea39,function(_0x1962c7){const _0x29bf71=_0x3b9870;return _0x1962c7&&_0x1962c7[_0x29bf71('0x25df')]?_0x1962c7[_0x29bf71('0x25df')][0x0]:null;}),_0x30a2e8=[];for(let _0x35b44c=0x0;_0x35b44c<_0x55fac3[_0x3b9870('0x2566')];_0x35b44c++){const _0x44ebaa=_0x283545()[_0x3b9870('0x20e8')](_0x386ef5,[_0x3b9870('0x201d'),_0x55fac3[_0x35b44c]['id']]);if(_0x44ebaa){if(!_0x44ebaa[_0x3b9870('0x1c0a')])_0x30a2e8[_0x3b9870('0x13e3')](_0x32de11[_0x3b9870('0x1050')][_0x3b9870('0x1335')]({'sectionId':_0x44ebaa['id']})[_0x3b9870('0x1714')]);else{const _0x1a208e=[];_0x37046d[_0x3b9870('0x1534')](function(_0x33be01){const _0x499604=_0x3b9870;_0x33be01[_0x499604('0x1d7')]===_0x55fac3[_0x35b44c][_0x499604('0x1d7')]&&_0x1a208e[_0x499604('0x13e3')](_0x33be01);}),_0x30a2e8[_0x3b9870('0x13e3')]({'rows':_0x1a208e,'count':_0x1a208e[_0x3b9870('0x2566')]});}}}return _0x4c22e4[_0x3b9870('0x1def')](_0x30a2e8);})[_0x3a5eb1('0x2788')](function(_0x22a135){const _0x2de6c2=_0x3a5eb1,_0x20eee8=[];let _0x4b7c71=null;_0xe95ac2['allCondition']&&(_0x4b7c71=_0x283545()[_0x2de6c2('0x20e8')](_0x37046d,{'name':_0xe95ac2['allCondition'][_0x2de6c2('0x49')]}));for(let _0x44aa7e=0x0;_0x44aa7e<_0x22a135['length'];_0x44aa7e++){const _0xed73b8=_0x22a135[_0x44aa7e]['rows']||[];_0xed73b8[_0x2de6c2('0x1534')](function(_0x2b2251){const _0x3ebc3b=_0x2de6c2;_0x20eee8[_0x3ebc3b('0x13e3')](_0x2b2251);});}_0x4b7c71&&!_0x283545()['some'](_0x20eee8,[_0x2de6c2('0x2707'),_0x4b7c71['id']])&&_0x37046d[_0x2de6c2('0x1534')](function(_0x4dd634){const _0x204e48=_0x2de6c2;_0x4dd634['id']===_0x4b7c71['id']&&(_0x4dd634['canSelect']=![],_0x20eee8[_0x204e48('0x13e3')](_0x4dd634));}),_0xe95ac2[_0x2de6c2('0x283e')]=_0x20eee8;})[_0x3a5eb1('0x1cb5')](function(_0x4d78d0){const _0x176f54=_0x3a5eb1;_0x401194[_0x176f54('0x5e8')]({'title':_0x4d78d0[_0x176f54('0x1b51')]?_0x176f54('0x15d1')+_0x4d78d0['status']+_0x176f54('0x1b0b')+_0x4d78d0[_0x176f54('0x22ce')]:_0x176f54('0xb14'),'msg':_0x4d78d0['data']?JSON[_0x176f54('0x1be0')](_0x4d78d0[_0x176f54('0x11fc')]):_0x4d78d0[_0x176f54('0x17df')]()});}),_0x251966[_0x3a5eb1('0x1516')](_0x3a5eb1('0xe23'))?_0x32de11['voiceExtension']['get']({'fields':_0x3a5eb1('0x174d'),'type':_0x3a5eb1('0x1'),'VoiceExtensionId':_0x3a5eb1('0x954'),'nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')]['then'](function(_0x1c608b){const _0x135ace=_0x3a5eb1;_0xe95ac2[_0x135ace('0xf8')]=_0x1c608b[_0x135ace('0x25df')]||[];})[_0x3a5eb1('0x1cb5')](function(_0x2216c9){const _0x4ec9e2=_0x3a5eb1;_0x401194[_0x4ec9e2('0x5e8')]({'title':_0x2216c9[_0x4ec9e2('0x1b51')]?_0x4ec9e2('0x15d1')+_0x2216c9['status']+_0x4ec9e2('0x1b0b')+_0x2216c9[_0x4ec9e2('0x22ce')]:_0x4ec9e2('0x10ea'),'msg':_0x2216c9[_0x4ec9e2('0x11fc')]?JSON[_0x4ec9e2('0x1be0')](_0x2216c9[_0x4ec9e2('0x11fc')]):_0x2216c9['toString']()});}):_0x32de11[_0x3a5eb1('0x2636')][_0x3a5eb1('0x1335')]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x3a5eb1('0x954'),'nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x39eaf7){const _0x461d52=_0x3a5eb1;_0xe95ac2[_0x461d52('0xf8')]=_0x39eaf7[_0x461d52('0x25df')]||[];})[_0x3a5eb1('0x2788')](function(){const _0x55c113=_0x3a5eb1;return _0x32de11[_0x55c113('0xec9')]['get']({'userProfileId':_0xe95ac2[_0x55c113('0x9cb')][_0x55c113('0x237f')],'sectionId':0x193})['$promise'];})[_0x3a5eb1('0x2788')](function(_0x4f1f82){const _0x1b5c34=_0x3a5eb1,_0x69cdce=_0x4f1f82&&_0x4f1f82['rows']?_0x4f1f82[_0x1b5c34('0x25df')][0x0]:null;if(!_0x69cdce){const _0x16c371=[];let _0x929cc8=null;_0xe95ac2[_0x1b5c34('0x5e4')]&&(_0x929cc8=_0x283545()[_0x1b5c34('0x20e8')](_0xe95ac2['outboundRoutes'],{'id':Number(_0xe95ac2[_0x1b5c34('0x5e4')]['value'])}));for(let _0x322d49=0x0;_0x322d49<_0xe95ac2['outboundRoutes'][_0x1b5c34('0x2566')];_0x322d49++){_0x929cc8&&_0xe95ac2[_0x1b5c34('0xf8')][_0x322d49]['id']===_0x929cc8['id']&&(_0xe95ac2[_0x1b5c34('0xf8')][_0x322d49]['canSelect']=![],_0x16c371['push'](_0xe95ac2['outboundRoutes'][_0x322d49]));}_0xe95ac2[_0x1b5c34('0xf8')]=_0x16c371;}else{if(!_0x69cdce[_0x1b5c34('0x1c0a')])return _0x32de11['userProfileResource']['get']({'sectionId':_0x69cdce['id']})[_0x1b5c34('0x1714')][_0x1b5c34('0x2788')](function(_0x195570){const _0x23d12f=_0x1b5c34,_0x83879=_0x283545()[_0x23d12f('0x155d')](_0x195570[_0x23d12f('0x25df')],function(_0x11d637){const _0x40bfe2=_0x23d12f;return _0x283545()[_0x40bfe2('0x20e8')](_0xe95ac2[_0x40bfe2('0xf8')],{'id':_0x11d637[_0x40bfe2('0x2707')]});});let _0x49387b=null;_0xe95ac2[_0x23d12f('0x5e4')]&&(_0x49387b=_0x283545()['find'](_0xe95ac2[_0x23d12f('0xf8')],{'id':Number(_0xe95ac2[_0x23d12f('0x5e4')][_0x23d12f('0x49')])}));if(_0x49387b&&!_0x283545()[_0x23d12f('0xc5d')](_0x83879,['id',_0x49387b['id']])){const _0x1312f1=_0x283545()[_0x23d12f('0x20e8')](_0xe95ac2[_0x23d12f('0xf8')],{'id':_0x49387b['id']});_0x1312f1['canSelect']=![],_0x83879['push'](_0x1312f1);}_0xe95ac2[_0x23d12f('0xf8')]=_0x83879;});}})[_0x3a5eb1('0x1cb5')](function(_0x274de9){const _0x20613e=_0x3a5eb1;_0x401194[_0x20613e('0x5e8')]({'title':_0x274de9[_0x20613e('0x1b51')]?_0x20613e('0x15d1')+_0x274de9[_0x20613e('0x1b51')]+_0x20613e('0x1b0b')+_0x274de9[_0x20613e('0x22ce')]:_0x20613e('0x138e'),'msg':_0x274de9[_0x20613e('0x11fc')]?JSON['stringify'](_0x274de9[_0x20613e('0x11fc')]):_0x274de9[_0x20613e('0x17df')]()});}),_0x251966[_0x3a5eb1('0x1516')](_0x3a5eb1('0xe23'))?_0x32de11[_0x3a5eb1('0x1e6a')]['get']({'fields':_0x3a5eb1('0x10fe'),'sort':_0x3a5eb1('0x1a8d'),'role':_0x3a5eb1('0x188b'),'nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')][_0x3a5eb1('0x2788')](function(_0x13501a){const _0x13edcd=_0x3a5eb1;_0xe95ac2[_0x13edcd('0x1713')]=_0x13501a[_0x13edcd('0x25df')]||[];})[_0x3a5eb1('0x1cb5')](function(_0xd096da){const _0x1c24fd=_0x3a5eb1;_0x401194['error']({'title':_0xd096da[_0x1c24fd('0x1b51')]?_0x1c24fd('0x15d1')+_0xd096da[_0x1c24fd('0x1b51')]+_0x1c24fd('0x1b0b')+_0xd096da[_0x1c24fd('0x22ce')]:_0x1c24fd('0xd90'),'msg':_0xd096da[_0x1c24fd('0x11fc')]?JSON[_0x1c24fd('0x1be0')](_0xd096da[_0x1c24fd('0x11fc')]):_0xd096da[_0x1c24fd('0x17df')]()});}):_0x32de11[_0x3a5eb1('0x1e6a')][_0x3a5eb1('0x1335')]({'fields':_0x3a5eb1('0x10fe'),'sort':_0x3a5eb1('0x1a8d'),'role':_0x3a5eb1('0x188b'),'nolimit':_0x3a5eb1('0x1001')})[_0x3a5eb1('0x1714')]['then'](function(_0x2e645b){_0xe95ac2['agents']=_0x2e645b['rows']||[];})[_0x3a5eb1('0x2788')](function(){const _0x6316c9=_0x3a5eb1;return _0x32de11[_0x6316c9('0xec9')][_0x6316c9('0x1335')]({'userProfileId':_0xe95ac2[_0x6316c9('0x9cb')]['userProfileId'],'sectionId':0xca})[_0x6316c9('0x1714')];})['then'](function(_0x367a2b){const _0x2909b8=_0x3a5eb1,_0x3a05e7=_0x367a2b&&_0x367a2b[_0x2909b8('0x25df')]?_0x367a2b[_0x2909b8('0x25df')][0x0]:null;if(!_0x3a05e7){const _0x22a26f=[];let _0x593bb6=null;_0xe95ac2[_0x2909b8('0x5e4')]&&(_0x593bb6=_0x283545()[_0x2909b8('0x20e8')](_0xe95ac2[_0x2909b8('0x1713')],{'name':_0xe95ac2[_0x2909b8('0x5e4')]['value']}));for(let _0x38d455=0x0;_0x38d455<_0xe95ac2['agents'][_0x2909b8('0x2566')];_0x38d455++){_0x593bb6&&_0xe95ac2[_0x2909b8('0x1713')][_0x38d455]['id']===_0x593bb6['id']&&(_0xe95ac2[_0x2909b8('0x1713')][_0x38d455][_0x2909b8('0x3bf')]=![],_0x22a26f[_0x2909b8('0x13e3')](_0xe95ac2['agents'][_0x38d455]));}_0xe95ac2['agents']=_0x22a26f;}else{if(!_0x3a05e7['autoAssociation'])return _0x32de11['userProfileResource'][_0x2909b8('0x1335')]({'sectionId':_0x3a05e7['id']})[_0x2909b8('0x1714')][_0x2909b8('0x2788')](function(_0x120300){const _0x4bd6a5=_0x2909b8,_0x1b72dc=_0x283545()['map'](_0x120300[_0x4bd6a5('0x25df')],function(_0x467817){const _0x50a88b=_0x4bd6a5;return _0x283545()[_0x50a88b('0x20e8')](_0xe95ac2[_0x50a88b('0x1713')],{'id':_0x467817['resourceId']});});let _0x20f59c=null;_0xe95ac2[_0x4bd6a5('0x5e4')]&&(_0x20f59c=_0x283545()[_0x4bd6a5('0x20e8')](_0xe95ac2[_0x4bd6a5('0x1713')],{'name':_0xe95ac2['allCondition'][_0x4bd6a5('0x49')]}));if(_0x20f59c&&!_0x283545()['some'](_0x1b72dc,['id',_0x20f59c['id']])){const _0x580049=_0x283545()[_0x4bd6a5('0x20e8')](_0xe95ac2['agents'],{'id':_0x20f59c['id']});_0x580049[_0x4bd6a5('0x3bf')]=![],_0x1b72dc[_0x4bd6a5('0x13e3')](_0x580049);}_0xe95ac2[_0x4bd6a5('0x1713')]=_0x1b72dc;});}})[_0x3a5eb1('0x1cb5')](function(_0x386cb9){const _0x1ff36d=_0x3a5eb1;_0x401194['error']({'title':_0x386cb9[_0x1ff36d('0x1b51')]?_0x1ff36d('0x15d1')+_0x386cb9[_0x1ff36d('0x1b51')]+_0x1ff36d('0x1b0b')+_0x386cb9[_0x1ff36d('0x22ce')]:_0x1ff36d('0x1246'),'msg':_0x386cb9[_0x1ff36d('0x11fc')]?JSON[_0x1ff36d('0x1be0')](_0x386cb9[_0x1ff36d('0x11fc')]):_0x386cb9[_0x1ff36d('0x17df')]()});});function _0x1250e4(){const _0x401873=_0x3a5eb1;_0xe95ac2[_0x401873('0x25be')]=[],_0x32de11[_0x401873('0x126e')][_0x401873('0x12b')]({'id':_0x344a04['params']['id']},_0xe95ac2[_0x401873('0x5e4')])[_0x401873('0x1714')]['then'](function(_0x205447){const _0x95c8f4=_0x401873;_0xe95ac2[_0x95c8f4('0x1c79')]['unshift'](_0x205447['toJSON']()),_0x401194['success']({'title':_0x95c8f4('0xe59'),'msg':_0xe95ac2['allCondition'][_0x95c8f4('0x1a8d')]?_0xe95ac2[_0x95c8f4('0x5e4')][_0x95c8f4('0x1a8d')]+_0x95c8f4('0x1e4a'):''}),_0x2c4ab8(_0x205447);})[_0x401873('0x1cb5')](function(_0x5a68c9){const _0x1a1b12=_0x401873;if(_0x5a68c9[_0x1a1b12('0x11fc')]&&_0x5a68c9['data'][_0x1a1b12('0x25be')]&&_0x5a68c9[_0x1a1b12('0x11fc')][_0x1a1b12('0x25be')][_0x1a1b12('0x2566')]){_0xe95ac2[_0x1a1b12('0x25be')]=_0x5a68c9['data'][_0x1a1b12('0x25be')]||[{'message':_0x5a68c9[_0x1a1b12('0x17df')](),'type':_0x1a1b12('0x1e7c')}];for(let _0x599922=0x0;_0x599922<_0x5a68c9[_0x1a1b12('0x11fc')][_0x1a1b12('0x25be')][_0x1a1b12('0x2566')];_0x599922+=0x1){_0x401194[_0x1a1b12('0x5e8')]({'title':_0x5a68c9[_0x1a1b12('0x11fc')][_0x1a1b12('0x25be')][_0x599922][_0x1a1b12('0x1d7')],'msg':_0x5a68c9[_0x1a1b12('0x11fc')][_0x1a1b12('0x25be')][_0x599922][_0x1a1b12('0x15e2')]});}}else _0x401194[_0x1a1b12('0x5e8')]({'title':_0x5a68c9[_0x1a1b12('0x1b51')]?_0x1a1b12('0x15d1')+_0x5a68c9[_0x1a1b12('0x1b51')]+'\x20-\x20'+_0x5a68c9[_0x1a1b12('0x22ce')]:_0x1a1b12('0x1e7c'),'msg':_0x5a68c9['data']?JSON[_0x1a1b12('0x1be0')](_0x5a68c9[_0x1a1b12('0x11fc')][_0x1a1b12('0x15e2')]):_0x5a68c9[_0x1a1b12('0x17df')]()});});}function _0x214343(){const _0xef29f8=_0x3a5eb1;_0xe95ac2[_0xef29f8('0x25be')]=[],_0x32de11[_0xef29f8('0xf2b')][_0xef29f8('0x2740')]({'id':_0xe95ac2['allCondition']['id']},_0xe95ac2[_0xef29f8('0x5e4')])['$promise'][_0xef29f8('0x2788')](function(_0x24f351){const _0x43e1c6=_0xef29f8,_0x124f10=_0x283545()['find'](_0xe95ac2[_0x43e1c6('0x1c79')],{'id':_0x24f351['id']});_0x124f10&&_0x283545()['merge'](_0x124f10,_0x283545()[_0x43e1c6('0x41b')](_0x24f351[_0x43e1c6('0x1cbf')](),_0x283545()[_0x43e1c6('0x2163')](_0x124f10))),_0x401194[_0x43e1c6('0x173b')]({'title':_0x43e1c6('0x1799'),'msg':_0xe95ac2[_0x43e1c6('0x5e4')][_0x43e1c6('0x1a8d')]?_0xe95ac2[_0x43e1c6('0x5e4')][_0x43e1c6('0x1a8d')]+_0x43e1c6('0x24cf'):''}),_0x2c4ab8(_0x24f351);})[_0xef29f8('0x1cb5')](function(_0x3cc4c1){const _0x164a5f=_0xef29f8;if(_0x3cc4c1[_0x164a5f('0x11fc')]&&_0x3cc4c1['data'][_0x164a5f('0x25be')]&&_0x3cc4c1[_0x164a5f('0x11fc')]['errors'][_0x164a5f('0x2566')]){_0xe95ac2['errors']=_0x3cc4c1['data'][_0x164a5f('0x25be')]||[{'message':_0x3cc4c1[_0x164a5f('0x17df')](),'type':_0x164a5f('0x229d')}];for(let _0x4e4fb3=0x0;_0x4e4fb3<_0x3cc4c1[_0x164a5f('0x11fc')][_0x164a5f('0x25be')][_0x164a5f('0x2566')];_0x4e4fb3++){_0x401194[_0x164a5f('0x5e8')]({'title':_0x3cc4c1[_0x164a5f('0x11fc')][_0x164a5f('0x25be')][_0x4e4fb3]['type'],'msg':_0x3cc4c1[_0x164a5f('0x11fc')]['errors'][_0x4e4fb3][_0x164a5f('0x15e2')]});}}else _0x401194[_0x164a5f('0x5e8')]({'title':_0x3cc4c1['status']?_0x164a5f('0x15d1')+_0x3cc4c1[_0x164a5f('0x1b51')]+_0x164a5f('0x1b0b')+_0x3cc4c1[_0x164a5f('0x22ce')]:_0x164a5f('0x229d'),'msg':_0x3cc4c1[_0x164a5f('0x11fc')]?JSON[_0x164a5f('0x1be0')](_0x3cc4c1[_0x164a5f('0x11fc')][_0x164a5f('0x15e2')]):_0x3cc4c1[_0x164a5f('0x17df')]()});});}function _0xfecde6(_0x435121){const _0x5f5b2f=_0x3a5eb1;_0xe95ac2['errors']=[];const _0x1ea537=_0x232199[_0x5f5b2f('0x112e')]()['title'](_0x5f5b2f('0x458'))['content'](_0x5f5b2f('0x1986'))[_0x5f5b2f('0x10bc')](_0x5f5b2f('0x1861'))['ok'](_0x5f5b2f('0x2786'))[_0x5f5b2f('0x1801')](_0x5f5b2f('0x1481'))[_0x5f5b2f('0x24d0')](_0x435121);_0x232199[_0x5f5b2f('0x2fa')](_0x1ea537)['then'](function(){const _0x17ac6c=_0x5f5b2f;_0x32de11[_0x17ac6c('0xf2b')]['delete']({'id':_0xe95ac2['allCondition']['id']})[_0x17ac6c('0x1714')]['then'](function(){const _0x11d419=_0x17ac6c;_0x283545()[_0x11d419('0x1a90')](_0xe95ac2[_0x11d419('0x1c79')],{'id':_0xe95ac2[_0x11d419('0x5e4')]['id']}),_0x401194[_0x11d419('0x173b')]({'title':_0x11d419('0x265b'),'msg':(_0xe95ac2['allCondition'][_0x11d419('0x1a8d')]||'allCondition')+'\x20has\x20been\x20deleted!'}),_0x2c4ab8(_0xe95ac2[_0x11d419('0x5e4')]);})[_0x17ac6c('0x1cb5')](function(_0x2e31f0){const _0x3c989b=_0x17ac6c;if(_0x2e31f0[_0x3c989b('0x11fc')]&&_0x2e31f0[_0x3c989b('0x11fc')][_0x3c989b('0x25be')]&&_0x2e31f0[_0x3c989b('0x11fc')][_0x3c989b('0x25be')]['length']){_0xe95ac2[_0x3c989b('0x25be')]=_0x2e31f0[_0x3c989b('0x11fc')][_0x3c989b('0x25be')]||[{'message':_0x2e31f0[_0x3c989b('0x17df')](),'type':_0x3c989b('0x1eca')}];for(let _0x4f43fd=0x0;_0x4f43fd<_0x2e31f0['data']['errors'][_0x3c989b('0x2566')];_0x4f43fd++){_0x401194[_0x3c989b('0x5e8')]({'title':_0x2e31f0[_0x3c989b('0x11fc')]['errors'][_0x4f43fd]['type'],'msg':_0x2e31f0['data'][_0x3c989b('0x25be')][_0x4f43fd][_0x3c989b('0x15e2')]});}}else _0x401194[_0x3c989b('0x5e8')]({'title':_0x2e31f0[_0x3c989b('0x1b51')]?_0x3c989b('0x15d1')+_0x2e31f0[_0x3c989b('0x1b51')]+_0x3c989b('0x1b0b')+_0x2e31f0[_0x3c989b('0x22ce')]:_0x3c989b('0x1eca'),'msg':_0x2e31f0[_0x3c989b('0x11fc')]?JSON[_0x3c989b('0x1be0')](_0x2e31f0[_0x3c989b('0x11fc')]['message']):_0x2e31f0[_0x3c989b('0x15e2')]||_0x2e31f0[_0x3c989b('0x17df')]()});});},function(){});}function _0x57075c(_0x5e80d6){return _0x5e80d6===null?undefined:new Date(_0x5e80d6);}function _0x2c4ab8(_0x151e92){const _0x26b08e=_0x3a5eb1;_0x232199[_0x26b08e('0x19d')](_0x151e92);}}const _0x2d86c6=_0x511851,_0x864291=_0x18dd13['p']+_0x34e79e('0x1f66');_0x9bdf64[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$q','$translate','$timeout','$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x9bdf64(_0xabd6e,_0x51c988,_0x2ba9e6,_0x4c6b5d,_0xaaba27,_0x1d18f2,_0x30190c,_0xbf5f73,_0x45d21f){const _0x51f553=_0x34e79e,_0x1314f7=this;_0x1314f7[_0x51f553('0x9cb')]=_0x45d21f[_0x51f553('0x24cc')](),_0x1314f7[_0x51f553('0x126e')]={},_0x1314f7['triggerAnyConditions']={'count':0x0,'rows':[]},_0x1314f7[_0x51f553('0x493')]=[],_0x1314f7[_0x51f553('0x135a')]={'fields':_0x51f553('0x114e'),'limit':0xa,'page':0x1},_0x1314f7[_0x51f553('0x1578')]={'queue':_0x51f553('0x107f'),'lastevent':_0x51f553('0x1279'),'routeId':_0x51f553('0x1923'),'agent':_0x51f553('0x262d'),'account':_0x51f553('0x140b'),'interaction':_0x51f553('0x22a7'),'message':_0x51f553('0x217')},_0x1314f7[_0x51f553('0x174a')]={'abandoned':_0x51f553('0x1b56'),'timeout':_0x51f553('0xa7e'),'complete':'Hangup','rejected':_0x51f553('0xea5'),'called':_0x51f553('0x3e2'),'connect':_0x51f553('0x1e90'),'nosuchnumber':_0x51f553('0x2173'),'busy':_0x51f553('0x187f'),'noanswer':_0x51f553('0xb8b'),'congestion':_0x51f553('0x1720'),'agentreject':_0x51f553('0x164')},_0x1314f7['messageStatuses']={'in':_0x51f553('0x1c09'),'out':'Outgoing','accept':'Accepted','reject':'Rejected'},_0x1314f7[_0x51f553('0x122e')]=_0xbfa9c7,_0x1314f7['success']=_0x86bc7,_0x1314f7[_0x51f553('0x1c3a')]=_0x5df989,_0x1314f7[_0x51f553('0x852')]=_0x395eaf,_0x1314f7['exportSelectedTriggerAnyConditions']=_0x15b3f3,_0x1314f7['deleteConfirm']=_0x4bacba,_0x1314f7[_0x51f553('0x6f5')]=_0x380f19,_0x1314f7[_0x51f553('0x2465')]=_0x516f3e;function _0xbfa9c7(_0x223cd3,_0x5d725d){const _0x3be6f7=_0x51f553;_0x1314f7[_0x3be6f7('0x126e')]=_0x223cd3,_0x1314f7['crudPermissions']=typeof _0x5d725d!==_0x3be6f7('0xedb')?_0x5d725d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1314f7[_0x3be6f7('0x135a')][_0x3be6f7('0x22d8')]=_0x1314f7[_0x3be6f7('0x126e')]['id'],_0x1314f7['query']['id']=_0x1314f7[_0x3be6f7('0x126e')]['id'],_0x5df989();}function _0x1f7868(){const _0x45d636=_0x51f553,_0x55859b=_0x1314f7['trigger'][_0x45d636('0x2645')]+_0x1314f7['trigger'][_0x45d636('0x2645')]===_0x45d636('0x231')?_0x45d636('0x15aa'):'Accounts',_0x3c9e71=_0x1314f7[_0x45d636('0x126e')][_0x45d636('0x2645')]+(_0x1314f7[_0x45d636('0x126e')][_0x45d636('0x2645')]==='chat'?_0x45d636('0x1577'):_0x45d636('0x140b'));let _0x275eef;switch(_0x1314f7[_0x45d636('0x126e')]['channel']){case _0x45d636('0x231'):_0x275eef=0x1f6;break;case _0x45d636('0x10cf'):_0x275eef=0x386;break;case _0x45d636('0x2795'):_0x275eef=0x25a;break;case _0x45d636('0x18aa'):_0x275eef=0x322;break;case'sms':_0x275eef=0x2be;break;case _0x45d636('0x195d'):_0x275eef=0x836;break;}if(_0x45d21f[_0x45d636('0x1e40')]()){const _0x2a2a38=_0x1314f7['trigger'][_0x45d636('0x2645')];_0xbf5f73[_0x3c9e71]['get']({'fields':_0x45d636('0x1338'),'sort':'id','nolimit':_0x45d636('0x1001')})['$promise'][_0x45d636('0x2788')](function(_0x52d766){const _0x342b92=_0x45d636;_0x1314f7[_0x55859b]=_0x52d766[_0x342b92('0x25df')]||[];})[_0x45d636('0x1cb5')](function(_0x5eb284){const _0x2a339c=_0x45d636;_0x30190c[_0x2a339c('0x5e8')]({'title':_0x5eb284['status']?_0x2a339c('0x15d1')+_0x5eb284[_0x2a339c('0x1b51')]+_0x2a339c('0x1b0b')+_0x5eb284[_0x2a339c('0x22ce')]:'SYSTEM:GET_'+_0x2a2a38[_0x2a339c('0x25e6')]()+_0x2a2a38==='chat'?'WEBSITES':_0x2a339c('0xde9'),'msg':_0x5eb284['data']?JSON['stringify'](_0x5eb284['data']):_0x5eb284['toString']()});});}else{const _0x257e61=_0x1314f7[_0x45d636('0x126e')][_0x45d636('0x2645')];_0xbf5f73[_0x3c9e71][_0x45d636('0x1335')]({'fields':'id,name','sort':'id','nolimit':_0x45d636('0x1001')})['$promise']['then'](function(_0x59c5a1){const _0x11626e=_0x45d636;_0x1314f7[_0x55859b]=_0x59c5a1[_0x11626e('0x25df')]||[];})[_0x45d636('0x2788')](function(){const _0x4b90fa=_0x45d636;return _0xbf5f73['userProfileSection'][_0x4b90fa('0x1335')]({'userProfileId':_0x1314f7[_0x4b90fa('0x9cb')][_0x4b90fa('0x237f')],'sectionId':_0x275eef})['$promise'];})[_0x45d636('0x2788')](function(_0x1cd380){const _0x1cd6f0=_0x45d636,_0xd37ed=_0x1cd380&&_0x1cd380[_0x1cd6f0('0x25df')]?_0x1cd380['rows'][0x0]:null;if(!_0xd37ed){const _0x184a82=[],_0x283ca2=[];_0x1314f7['triggerAnyConditions'][_0x1cd6f0('0x25df')][_0x1cd6f0('0x1534')](function(_0x2b3357){const _0x3fe512=_0x1cd6f0;if(_0x2b3357[_0x3fe512('0x18da')]===_0x3fe512('0x82f')){const _0x4761b1=_0x283545()[_0x3fe512('0x20e8')](_0x1314f7[_0x55859b],{'id':Number(_0x2b3357[_0x3fe512('0x49')])});_0x283ca2['push'](_0x4761b1);}});for(let _0x5726ab=0x0;_0x5726ab<_0x1314f7[_0x55859b][_0x1cd6f0('0x2566')];_0x5726ab++){const _0x3ca257=_0x283545()[_0x1cd6f0('0xc5d')](_0x283ca2,{'id':_0x1314f7[_0x55859b][_0x5726ab]['id']});_0x3ca257&&(_0x1314f7[_0x55859b][_0x5726ab][_0x1cd6f0('0x3bf')]=![],_0x184a82[_0x1cd6f0('0x13e3')](_0x1314f7[_0x55859b][_0x5726ab]));}_0x1314f7[_0x55859b]=_0x184a82;}else{if(!_0xd37ed[_0x1cd6f0('0x1c0a')])return _0xbf5f73['userProfileResource']['get']({'sectionId':_0xd37ed['id']})[_0x1cd6f0('0x1714')][_0x1cd6f0('0x2788')](function(_0x2de2fe){const _0x4fe0b4=_0x1cd6f0,_0x6901c7=_0x283545()[_0x4fe0b4('0x155d')](_0x2de2fe[_0x4fe0b4('0x25df')],function(_0x367dd7){const _0xe2cc36=_0x4fe0b4;return _0x283545()[_0xe2cc36('0x20e8')](_0x1314f7[_0x55859b],{'id':_0x367dd7['resourceId']});});let _0x55d751=null;_0x55d751=[],_0x1314f7[_0x4fe0b4('0x1bd6')][_0x4fe0b4('0x25df')][_0x4fe0b4('0x1534')](function(_0x3d019e){const _0x48f4ba=_0x4fe0b4;if(_0x3d019e['field']===_0x48f4ba('0x82f')){const _0x43beca=_0x283545()['find'](_0x1314f7[_0x55859b],{'id':Number(_0x3d019e[_0x48f4ba('0x49')])});_0x55d751['push'](_0x43beca);}}),!_0x283545()[_0x4fe0b4('0x213d')](_0x55d751)&&_0x55d751[_0x4fe0b4('0x1534')](function(_0x52781b){const _0x3070e4=_0x4fe0b4;if(!_0x283545()['some'](_0x6901c7,['id',_0x52781b['id']])){const _0x108551=_0x283545()[_0x3070e4('0x20e8')](_0x1314f7[_0x55859b],{'id':_0x52781b['id']});_0x108551['canSelect']=![],_0x6901c7[_0x3070e4('0x13e3')](_0x108551);}}),_0x1314f7[_0x55859b]=_0x6901c7;});}})[_0x45d636('0x1cb5')](function(_0x1d29c7){const _0x2d9211=_0x45d636;_0x30190c[_0x2d9211('0x5e8')]({'title':_0x1d29c7[_0x2d9211('0x1b51')]?_0x2d9211('0x15d1')+_0x1d29c7[_0x2d9211('0x1b51')]+_0x2d9211('0x1b0b')+_0x1d29c7[_0x2d9211('0x22ce')]:_0x2d9211('0xb2b')+_0x257e61[_0x2d9211('0x25e6')]()+_0x257e61==='chat'?_0x2d9211('0x11cf'):_0x2d9211('0xde9'),'msg':_0x1d29c7[_0x2d9211('0x11fc')]?JSON[_0x2d9211('0x1be0')](_0x1d29c7['data']):_0x1d29c7['toString']()});});}}function _0x3bc3a9(){const _0x373f58=_0x51f553,_0x5ecf9e=[{'id':0x191,'type':_0x373f58('0x2e4')},{'id':0x5dd,'type':'outbound'}];let _0x5c5309=null;_0x45d21f[_0x373f58('0x1e40')]()?_0xbf5f73[_0x373f58('0x2043')][_0x373f58('0x1335')]({'fields':_0x373f58('0xafa'),'sort':_0x373f58('0x1a8d'),'nolimit':'true'})[_0x373f58('0x1714')][_0x373f58('0x2788')](function(_0x105315){const _0x3f91e8=_0x373f58;_0x1314f7[_0x3f91e8('0x283e')]=_0x105315[_0x3f91e8('0x25df')]||[];})[_0x373f58('0x1cb5')](function(_0x211837){const _0x2db227=_0x373f58;_0x30190c[_0x2db227('0x5e8')]({'title':_0x211837['status']?_0x2db227('0x15d1')+_0x211837[_0x2db227('0x1b51')]+_0x2db227('0x1b0b')+_0x211837[_0x2db227('0x22ce')]:'SYSTEM:GET_VOICEQUEUES','msg':_0x211837[_0x2db227('0x11fc')]?JSON[_0x2db227('0x1be0')](_0x211837['data']):_0x211837['toString']()});}):_0xbf5f73[_0x373f58('0x2043')]['get']({'fields':_0x373f58('0xafa'),'sort':_0x373f58('0x1a8d'),'nolimit':'true'})[_0x373f58('0x1714')][_0x373f58('0x2788')](function(_0x198074){const _0x4763c2=_0x373f58;_0x5c5309=_0x198074[_0x4763c2('0x25df')]||[];})[_0x373f58('0x2788')](function(){const _0x252ee2=_0x373f58,_0x2582c8=[];for(let _0x408f46=0x0;_0x408f46<_0x5ecf9e[_0x252ee2('0x2566')];_0x408f46++){_0x2582c8[_0x252ee2('0x13e3')](_0xbf5f73[_0x252ee2('0xec9')][_0x252ee2('0x1335')]({'userProfileId':_0x1314f7[_0x252ee2('0x9cb')]['userProfileId'],'sectionId':_0x5ecf9e[_0x408f46]['id']})[_0x252ee2('0x1714')]);}return _0x51c988[_0x252ee2('0x1def')](_0x2582c8);})[_0x373f58('0x2788')](function(_0x47ac99){const _0x2a12be=_0x373f58,_0x5c0b95=_0x283545()[_0x2a12be('0x155d')](_0x47ac99,function(_0x5beae5){const _0x2178dd=_0x2a12be;return _0x5beae5&&_0x5beae5[_0x2178dd('0x25df')]?_0x5beae5[_0x2178dd('0x25df')][0x0]:null;}),_0x4f42de=[];for(let _0x473983=0x0;_0x473983<_0x5ecf9e[_0x2a12be('0x2566')];_0x473983++){const _0x31825e=_0x283545()['find'](_0x5c0b95,[_0x2a12be('0x201d'),_0x5ecf9e[_0x473983]['id']]);if(_0x31825e){if(!_0x31825e['autoAssociation'])_0x4f42de[_0x2a12be('0x13e3')](_0xbf5f73[_0x2a12be('0x1050')][_0x2a12be('0x1335')]({'sectionId':_0x31825e['id']})[_0x2a12be('0x1714')]);else{const _0x465199=[];_0x5c5309[_0x2a12be('0x1534')](function(_0x4dcb51){const _0x354a6b=_0x2a12be;_0x4dcb51[_0x354a6b('0x1d7')]===_0x5ecf9e[_0x473983][_0x354a6b('0x1d7')]&&_0x465199[_0x354a6b('0x13e3')](_0x4dcb51);}),_0x4f42de['push']({'rows':_0x465199,'count':_0x465199['length']});}}}return _0x51c988[_0x2a12be('0x1def')](_0x4f42de);})[_0x373f58('0x2788')](function(_0x229f45){const _0x537e18=_0x373f58,_0x372cc7=[],_0x217436=[];_0x1314f7[_0x537e18('0x1bd6')]['rows']['forEach'](function(_0x1d18db){const _0x3c987c=_0x537e18;if(_0x1d18db[_0x3c987c('0x18da')]===_0x3c987c('0x1ab4')){const _0x13f327=_0x283545()[_0x3c987c('0x20e8')](_0x5c5309,{'name':_0x1d18db[_0x3c987c('0x49')]});_0x217436[_0x3c987c('0x13e3')](_0x13f327);}});for(let _0x55b314=0x0;_0x55b314<_0x229f45[_0x537e18('0x2566')];_0x55b314++){const _0x334f85=_0x229f45[_0x55b314]['rows']||[];_0x334f85[_0x537e18('0x1534')](function(_0x5b54a8){_0x372cc7['push'](_0x5b54a8);});}!_0x283545()[_0x537e18('0x213d')](_0x217436)&&_0x217436[_0x537e18('0x1534')](function(_0x3f34fc){const _0x442959=_0x537e18;if(!_0x283545()[_0x442959('0xc5d')](_0x372cc7,['resourceId',_0x3f34fc['id']])){const _0x1d87d4=_0x283545()[_0x442959('0x20e8')](_0x5c5309,{'id':_0x3f34fc['id']});_0x1d87d4[_0x442959('0x3bf')]=![],_0x372cc7['push'](_0x1d87d4);}}),_0x1314f7[_0x537e18('0x283e')]=_0x372cc7;})[_0x373f58('0x1cb5')](function(_0x31a980){const _0x49b150=_0x373f58;_0x30190c['error']({'title':_0x31a980[_0x49b150('0x1b51')]?_0x49b150('0x15d1')+_0x31a980[_0x49b150('0x1b51')]+'\x20-\x20'+_0x31a980[_0x49b150('0x22ce')]:_0x49b150('0x2763'),'msg':_0x31a980['data']?JSON['stringify'](_0x31a980[_0x49b150('0x11fc')]):_0x31a980[_0x49b150('0x17df')]()});});}function _0x21df58(){const _0x492349=_0x51f553;_0x45d21f[_0x492349('0x1e40')]()?_0xbf5f73[_0x492349('0x2636')]['get']({'fields':_0x492349('0x174d'),'type':_0x492349('0x1'),'VoiceExtensionId':_0x492349('0x954'),'nolimit':_0x492349('0x1001')})[_0x492349('0x1714')][_0x492349('0x2788')](function(_0x492374){const _0x223d1d=_0x492349;_0x1314f7[_0x223d1d('0xf8')]=_0x492374[_0x223d1d('0x25df')]||[];})[_0x492349('0x1cb5')](function(_0x34e603){const _0x531bcb=_0x492349;_0x30190c[_0x531bcb('0x5e8')]({'title':_0x34e603['status']?'API:'+_0x34e603[_0x531bcb('0x1b51')]+'\x20-\x20'+_0x34e603[_0x531bcb('0x22ce')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x34e603['data']?JSON[_0x531bcb('0x1be0')](_0x34e603['data']):_0x34e603[_0x531bcb('0x17df')]()});}):_0xbf5f73[_0x492349('0x2636')][_0x492349('0x1335')]({'fields':_0x492349('0x174d'),'type':'outbound','VoiceExtensionId':_0x492349('0x954'),'nolimit':_0x492349('0x1001')})['$promise'][_0x492349('0x2788')](function(_0x443c81){const _0x2486bd=_0x492349;_0x1314f7[_0x2486bd('0xf8')]=_0x443c81[_0x2486bd('0x25df')]||[];})[_0x492349('0x2788')](function(){const _0x353680=_0x492349;return _0xbf5f73[_0x353680('0xec9')]['get']({'userProfileId':_0x1314f7[_0x353680('0x9cb')][_0x353680('0x237f')],'sectionId':0x193})['$promise'];})['then'](function(_0x5e5936){const _0x9499eb=_0x492349,_0x2a9e94=_0x5e5936&&_0x5e5936[_0x9499eb('0x25df')]?_0x5e5936[_0x9499eb('0x25df')][0x0]:null;if(!_0x2a9e94){const _0x19b160=[],_0x52210f=[];_0x1314f7[_0x9499eb('0x1bd6')][_0x9499eb('0x25df')][_0x9499eb('0x1534')](function(_0x5c2bfd){const _0xc1498f=_0x9499eb;if(_0x5c2bfd[_0xc1498f('0x18da')]===_0xc1498f('0x1ef')){const _0xe675d=_0x283545()[_0xc1498f('0x20e8')](_0x1314f7[_0xc1498f('0xf8')],{'id':Number(_0x5c2bfd['value'])});_0x52210f['push'](_0xe675d);}});for(let _0x5065d8=0x0;_0x5065d8<_0x1314f7[_0x9499eb('0xf8')][_0x9499eb('0x2566')];_0x5065d8++){const _0x340542=_0x283545()[_0x9499eb('0xc5d')](_0x52210f,{'id':_0x1314f7[_0x9499eb('0xf8')][_0x5065d8]['id']});_0x340542&&(_0x1314f7['outboundRoutes'][_0x5065d8][_0x9499eb('0x3bf')]=![],_0x19b160['push'](_0x1314f7['outboundRoutes'][_0x5065d8]));}_0x1314f7['outboundRoutes']=_0x19b160;}else{if(!_0x2a9e94[_0x9499eb('0x1c0a')])return _0xbf5f73[_0x9499eb('0x1050')][_0x9499eb('0x1335')]({'sectionId':_0x2a9e94['id']})[_0x9499eb('0x1714')][_0x9499eb('0x2788')](function(_0x2e12c1){const _0x1ab1e7=_0x9499eb,_0x57ce39=_0x283545()['map'](_0x2e12c1[_0x1ab1e7('0x25df')],function(_0x405cd7){const _0x582645=_0x1ab1e7;return _0x283545()['find'](_0x1314f7[_0x582645('0xf8')],{'id':_0x405cd7['resourceId']});});let _0x209b2b=null;_0x209b2b=[],_0x1314f7[_0x1ab1e7('0x1bd6')][_0x1ab1e7('0x25df')][_0x1ab1e7('0x1534')](function(_0x47c7ad){const _0x2c4dc0=_0x1ab1e7;if(_0x47c7ad['field']===_0x2c4dc0('0x1ef')){const _0x11c24b=_0x283545()['find'](_0x1314f7[_0x2c4dc0('0xf8')],{'id':Number(_0x47c7ad['value'])});_0x209b2b[_0x2c4dc0('0x13e3')](_0x11c24b);}}),!_0x283545()[_0x1ab1e7('0x213d')](_0x209b2b)&&_0x209b2b[_0x1ab1e7('0x1534')](function(_0x4ae8af){const _0x47f71a=_0x1ab1e7;if(!_0x283545()[_0x47f71a('0xc5d')](_0x57ce39,['id',_0x4ae8af['id']])){const _0x576dfa=_0x283545()[_0x47f71a('0x20e8')](_0x1314f7[_0x47f71a('0xf8')],{'id':_0x4ae8af['id']});_0x576dfa[_0x47f71a('0x3bf')]=![],_0x57ce39['push'](_0x576dfa);}}),_0x1314f7[_0x1ab1e7('0xf8')]=_0x57ce39;});}})[_0x492349('0x1cb5')](function(_0x1bccf2){const _0xdf39a3=_0x492349;_0x30190c[_0xdf39a3('0x5e8')]({'title':_0x1bccf2[_0xdf39a3('0x1b51')]?'API:'+_0x1bccf2[_0xdf39a3('0x1b51')]+_0xdf39a3('0x1b0b')+_0x1bccf2[_0xdf39a3('0x22ce')]:_0xdf39a3('0x10ea'),'msg':_0x1bccf2[_0xdf39a3('0x11fc')]?JSON[_0xdf39a3('0x1be0')](_0x1bccf2[_0xdf39a3('0x11fc')]):_0x1bccf2[_0xdf39a3('0x17df')]()});});}function _0x20676d(){const _0x21f13=_0x51f553;_0x45d21f['isAdmin']()?_0xbf5f73[_0x21f13('0x1e6a')][_0x21f13('0x1335')]({'fields':_0x21f13('0x10fe'),'sort':'name','role':_0x21f13('0x188b'),'nolimit':_0x21f13('0x1001')})['$promise'][_0x21f13('0x2788')](function(_0x52ec86){const _0x2edb1a=_0x21f13;_0x1314f7['agents']=_0x52ec86[_0x2edb1a('0x25df')]||[];})[_0x21f13('0x1cb5')](function(_0x10606a){const _0x2e242b=_0x21f13;_0x30190c['error']({'title':_0x10606a[_0x2e242b('0x1b51')]?_0x2e242b('0x15d1')+_0x10606a[_0x2e242b('0x1b51')]+'\x20-\x20'+_0x10606a['statusText']:_0x2e242b('0xd90'),'msg':_0x10606a[_0x2e242b('0x11fc')]?JSON['stringify'](_0x10606a[_0x2e242b('0x11fc')]):_0x10606a[_0x2e242b('0x17df')]()});}):_0xbf5f73[_0x21f13('0x1e6a')][_0x21f13('0x1335')]({'fields':_0x21f13('0x10fe'),'sort':_0x21f13('0x1a8d'),'role':_0x21f13('0x188b'),'nolimit':_0x21f13('0x1001')})[_0x21f13('0x1714')][_0x21f13('0x2788')](function(_0x115464){const _0x3e38fb=_0x21f13;_0x1314f7[_0x3e38fb('0x1713')]=_0x115464[_0x3e38fb('0x25df')]||[];})[_0x21f13('0x2788')](function(){const _0x634c3=_0x21f13;return _0xbf5f73['userProfileSection'][_0x634c3('0x1335')]({'userProfileId':_0x1314f7[_0x634c3('0x9cb')]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x21f13('0x2788')](function(_0x4fd223){const _0x4b6b79=_0x21f13,_0x33f847=_0x4fd223&&_0x4fd223[_0x4b6b79('0x25df')]?_0x4fd223[_0x4b6b79('0x25df')][0x0]:null;if(!_0x33f847){const _0x44c507=[],_0x198430=[];_0x1314f7[_0x4b6b79('0x1bd6')][_0x4b6b79('0x25df')][_0x4b6b79('0x1534')](function(_0x246da){const _0x42b203=_0x4b6b79;if(_0x246da['field']===_0x42b203('0x188b')){const _0x8f221c=_0x283545()[_0x42b203('0x20e8')](_0x1314f7[_0x42b203('0x1713')],{'name':_0x246da[_0x42b203('0x49')]});_0x198430[_0x42b203('0x13e3')](_0x8f221c);}});for(let _0x4db8e9=0x0;_0x4db8e9<_0x1314f7['agents'][_0x4b6b79('0x2566')];_0x4db8e9++){const _0x470e58=_0x283545()['some'](_0x198430,{'id':_0x1314f7[_0x4b6b79('0x1713')][_0x4db8e9]['id']});_0x470e58&&(_0x1314f7[_0x4b6b79('0x1713')][_0x4db8e9]['canSelect']=![],_0x44c507[_0x4b6b79('0x13e3')](_0x1314f7['agents'][_0x4db8e9]));}_0x1314f7[_0x4b6b79('0x1713')]=_0x44c507;}else{if(!_0x33f847['autoAssociation'])return _0xbf5f73[_0x4b6b79('0x1050')][_0x4b6b79('0x1335')]({'sectionId':_0x33f847['id']})['$promise']['then'](function(_0x572a89){const _0x33a1c6=_0x4b6b79,_0x578822=_0x283545()['map'](_0x572a89[_0x33a1c6('0x25df')],function(_0x258e82){const _0x273745=_0x33a1c6;return _0x283545()[_0x273745('0x20e8')](_0x1314f7['agents'],{'id':_0x258e82[_0x273745('0x2707')]});});let _0x48a067=null;_0x48a067=[],_0x1314f7[_0x33a1c6('0x1bd6')][_0x33a1c6('0x25df')][_0x33a1c6('0x1534')](function(_0x592daa){const _0x2ec8c9=_0x33a1c6;if(_0x592daa[_0x2ec8c9('0x18da')]===_0x2ec8c9('0x188b')){const _0x3f440f=_0x283545()[_0x2ec8c9('0x20e8')](_0x1314f7['agents'],{'name':_0x592daa[_0x2ec8c9('0x49')]});_0x48a067[_0x2ec8c9('0x13e3')](_0x3f440f);}}),!_0x283545()['isEmpty'](_0x48a067)&&_0x48a067['forEach'](function(_0x193589){const _0x596f0a=_0x33a1c6;if(!_0x283545()[_0x596f0a('0xc5d')](_0x578822,['id',_0x193589['id']])){const _0xa04c59=_0x283545()[_0x596f0a('0x20e8')](_0x1314f7[_0x596f0a('0x1713')],{'id':_0x193589['id']});_0xa04c59[_0x596f0a('0x3bf')]=![],_0x578822[_0x596f0a('0x13e3')](_0xa04c59);}}),_0x1314f7['agents']=_0x578822;});}})[_0x21f13('0x1cb5')](function(_0xd976dd){const _0x568702=_0x21f13;_0x30190c['error']({'title':_0xd976dd[_0x568702('0x1b51')]?'API:'+_0xd976dd[_0x568702('0x1b51')]+_0x568702('0x1b0b')+_0xd976dd['statusText']:_0x568702('0xd90'),'msg':_0xd976dd[_0x568702('0x11fc')]?JSON['stringify'](_0xd976dd[_0x568702('0x11fc')]):_0xd976dd['toString']()});});}function _0x55aa4f(){const _0x2dccd5=_0x51f553;if(_0x1314f7[_0x2dccd5('0x126e')][_0x2dccd5('0x2645')]==='voice'){if(_0x283545()[_0x2dccd5('0xc5d')](_0x1314f7[_0x2dccd5('0x1bd6')][_0x2dccd5('0x25df')],['field',_0x2dccd5('0x1ab4')])){if(!_0x1314f7[_0x2dccd5('0x283e')])_0x3bc3a9();}if(_0x283545()[_0x2dccd5('0xc5d')](_0x1314f7[_0x2dccd5('0x1bd6')][_0x2dccd5('0x25df')],['field',_0x2dccd5('0x1ef')])){if(!_0x1314f7[_0x2dccd5('0xf8')])_0x21df58();}if(_0x283545()[_0x2dccd5('0xc5d')](_0x1314f7[_0x2dccd5('0x1bd6')][_0x2dccd5('0x25df')],['field',_0x2dccd5('0x188b')])){if(!_0x1314f7[_0x2dccd5('0x1713')])_0x20676d();}}else _0x1f7868();}function _0x86bc7(_0x14dc94){_0x1314f7['triggerAnyConditions']=_0x14dc94||{'count':0x0,'rows':[]},_0x55aa4f();}function _0x5df989(){const _0x4a4565=_0x51f553;_0x1314f7['query']['offset']=(_0x1314f7['query'][_0x4a4565('0x23f5')]-0x1)*_0x1314f7[_0x4a4565('0x135a')][_0x4a4565('0x68e')],_0x1314f7['promise']=_0xbf5f73['trigger']['getAnyConditions'](_0x1314f7['query'],_0x86bc7)[_0x4a4565('0x1714')];}function _0x395eaf(_0x378da8,_0x423459){const _0x4868aa=_0x51f553;_0xaaba27[_0x4868aa('0x2fa')]({'controller':'CreateOrEditAnyConditionDialogController','controllerAs':'vm','templateUrl':_0x864291,'parent':angular[_0x4868aa('0x16b1')](_0x1d18f2[_0x4868aa('0x945')]),'targetEvent':_0x378da8,'clickOutsideToClose':!![],'locals':{'trigger':_0x1314f7[_0x4868aa('0x126e')],'anyCondition':_0x423459,'anyConditions':_0x1314f7[_0x4868aa('0x1bd6')][_0x4868aa('0x25df')],'license':null,'setting':null,'crudPermissions':_0x1314f7[_0x4868aa('0xe28')]}})[_0x4868aa('0x2788')](function(_0x756226){const _0x22ad4d=_0x4868aa;_0x756226&&(_0x1314f7['triggerAnyConditions']={'count':_0x756226[_0x22ad4d('0x2566')],'rows':_0x756226},_0x55aa4f());});}function _0x4bacba(_0x12f50d,_0x52037c){const _0x778055=_0x51f553,_0x3ab514=_0xaaba27[_0x778055('0x112e')]()[_0x778055('0x14e4')](_0x2ba9e6[_0x778055('0x1b11')](_0x778055('0x26bd')))[_0x778055('0x10bc')](_0x778055('0x618'))[_0x778055('0x24d0')](_0x52037c)['ok']('OK')[_0x778055('0x1801')](_0x2ba9e6[_0x778055('0x1b11')](_0x778055('0x1061')));_0xaaba27[_0x778055('0x2fa')](_0x3ab514)[_0x778055('0x2788')](function(){_0x380f19(_0x12f50d,!![]);});}function _0x380f19(_0x301284,_0x3617d1){const _0xce46c=_0x51f553;_0xbf5f73[_0xce46c('0xf2b')][_0xce46c('0x17c4')]({'id':_0x301284['id']})[_0xce46c('0x1714')][_0xce46c('0x2788')](function(){const _0x27de4c=_0xce46c;_0x5df989(),_0x3617d1&&_0x30190c[_0x27de4c('0x173b')]({'title':_0x2ba9e6[_0x27de4c('0x1b11')](_0x27de4c('0xc8c'))});})[_0xce46c('0x1cb5')](function(_0x10d9b9){const _0x31340a=_0xce46c;if(_0x10d9b9[_0x31340a('0x11fc')]&&_0x10d9b9['data'][_0x31340a('0x25be')]&&_0x10d9b9['data'][_0x31340a('0x25be')][_0x31340a('0x2566')]){_0x1314f7['errors']=_0x10d9b9[_0x31340a('0x11fc')]['errors']||[{'message':_0x10d9b9[_0x31340a('0x17df')](),'type':'SYSTEM:GETtrigger'}];for(let _0x4aafb8=0x0;_0x4aafb8<_0x10d9b9[_0x31340a('0x11fc')][_0x31340a('0x25be')][_0x31340a('0x2566')];_0x4aafb8++){_0x30190c[_0x31340a('0x5e8')]({'title':_0x10d9b9[_0x31340a('0x11fc')][_0x31340a('0x25be')][_0x4aafb8][_0x31340a('0x1d7')],'msg':_0x10d9b9[_0x31340a('0x11fc')]['errors'][_0x4aafb8]['message']});}}else _0x30190c[_0x31340a('0x5e8')]({'title':_0x10d9b9['status']?_0x31340a('0x15d1')+_0x10d9b9[_0x31340a('0x1b51')]+'\x20-\x20'+_0x10d9b9['statusText']:'SYSTEM:GETtrigger','msg':_0x10d9b9[_0x31340a('0x11fc')]?JSON[_0x31340a('0x1be0')](_0x10d9b9[_0x31340a('0x11fc')][_0x31340a('0x15e2')]):_0x10d9b9[_0x31340a('0x15e2')]||_0x10d9b9[_0x31340a('0x17df')]()});});}function _0x15b3f3(){const _0xc5ef3b=_0x51f553,_0x33f0dc=angular[_0xc5ef3b('0x2669')](_0x1314f7[_0xc5ef3b('0x493')]);return _0x1314f7['selectedTriggerAnyConditions']=[],_0x33f0dc;}function _0x516f3e(_0x7897e0){const _0x5d3e6e=_0x51f553,_0x38c4b3=_0xaaba27[_0x5d3e6e('0x112e')]()[_0x5d3e6e('0x14e4')](_0x2ba9e6[_0x5d3e6e('0x1b11')](_0x5d3e6e('0xded')))[_0x5d3e6e('0x1c98')](_0x2ba9e6[_0x5d3e6e('0x1b11')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE',{'total':_0x1314f7[_0x5d3e6e('0x493')]['length']}))[_0x5d3e6e('0x10bc')](_0x5d3e6e('0x1727'))['targetEvent'](_0x7897e0)['ok']('OK')['cancel'](_0x2ba9e6[_0x5d3e6e('0x1b11')]('TOOLS.CANCEL'));_0xaaba27['show'](_0x38c4b3)[_0x5d3e6e('0x2788')](function(){const _0x4f1ec1=_0x5d3e6e;_0x1314f7[_0x4f1ec1('0x493')][_0x4f1ec1('0x1534')](function(_0x7b8dad){_0x380f19(_0x7b8dad);}),_0x1314f7[_0x4f1ec1('0x493')]=[],_0x30190c[_0x4f1ec1('0x173b')]({'title':_0x2ba9e6['instant'](_0x4f1ec1('0x1d34'))});});}let _0xe8e59=!![],_0x5b5667=0x1;_0xabd6e[_0x51f553('0x1662')](_0x51f553('0x2571'),function(_0x4b326c,_0x223741){const _0x28b51c=_0x51f553;_0xe8e59?_0x4c6b5d(function(){_0xe8e59=![];}):(!_0x223741&&(_0x5b5667=_0x1314f7[_0x28b51c('0x135a')][_0x28b51c('0x23f5')]),_0x4b326c!==_0x223741&&(_0x1314f7[_0x28b51c('0x135a')][_0x28b51c('0x23f5')]=0x1),!_0x4b326c&&(_0x1314f7['query']['page']=_0x5b5667),_0x5df989());});}const _0x55addf=_0x9bdf64;_0x1a25f0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x17a5'),_0x34e79e('0x5e4'),'trigger',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x1a25f0(_0x2835f7,_0x24e95d,_0x2d8abe,_0xe316d4,_0x1a9e3b,_0x36090c,_0x17b7d5,_0x53b9f4,_0x577af1,_0x19456e,_0x11c58d,_0x448aed,_0x26e05f){const _0x2668f8=_0x34e79e,_0x160bec=this;_0x160bec[_0x2668f8('0x9cb')]=_0x19456e[_0x2668f8('0x24cc')](),_0x160bec[_0x2668f8('0x5e4')]=angular[_0x2668f8('0x2669')](_0x17b7d5),_0x160bec[_0x2668f8('0x17a5')]=angular['copy'](_0x36090c),_0x160bec[_0x2668f8('0x1af0')]=_0x448aed,_0x160bec[_0x2668f8('0x130d')]=_0x11c58d,_0x160bec[_0x2668f8('0xe28')]=_0x26e05f,_0x160bec[_0x2668f8('0x1193')]={},_0x160bec[_0x2668f8('0x126b')]=![],_0x160bec[_0x2668f8('0x25be')]=[],_0x160bec['trigger']=angular['copy'](_0x53b9f4);!_0x160bec['allCondition']?(_0x160bec['allCondition']={'operator':'equals'},_0x160bec[_0x2668f8('0x126b')]=!![]):_0x18e741();_0x160bec[_0x2668f8('0x5e4')][_0x2668f8('0x322')]=_0x2835f7[_0x2668f8('0x4b9')]['id']||undefined,_0x160bec[_0x2668f8('0x174a')]=[{'name':_0x2668f8('0x1b56'),'value':_0x2668f8('0x2198')},{'name':_0x2668f8('0xa7e'),'value':_0x2668f8('0x24e4')},{'name':_0x2668f8('0x1265'),'value':_0x2668f8('0x15b2')},{'name':_0x2668f8('0xea5'),'value':'rejected'},{'name':_0x2668f8('0x3e2'),'value':_0x2668f8('0x57e')},{'name':'Answer','value':_0x2668f8('0x26c')},{'name':_0x2668f8('0x2173'),'value':'nosuchnumber'},{'name':_0x2668f8('0x187f'),'value':_0x2668f8('0xed9')},{'name':_0x2668f8('0xb8b'),'value':_0x2668f8('0x19c9')},{'name':_0x2668f8('0x1720'),'value':'congestion'},{'name':_0x2668f8('0x164'),'value':_0x2668f8('0x1860')}],_0x160bec[_0x2668f8('0x4da')]=_0x4fd467,_0x160bec[_0x2668f8('0x1d6')]=_0x17d847,_0x160bec[_0x2668f8('0x136f')]=_0x385c9d,_0x160bec[_0x2668f8('0x943')]=_0x5f4373,_0x160bec[_0x2668f8('0xca7')]=_0x2e7e46;function _0x18229b(){const _0x3c2da3=_0x2668f8,_0x14ed5a=[{'id':0x191,'type':_0x3c2da3('0x2e4')},{'id':0x5dd,'type':'outbound'}];let _0x530618=null;_0x19456e[_0x3c2da3('0x1e40')]()?_0x577af1[_0x3c2da3('0x2043')][_0x3c2da3('0x1335')]({'fields':_0x3c2da3('0xafa'),'sort':_0x3c2da3('0x1a8d'),'nolimit':_0x3c2da3('0x1001')})['$promise'][_0x3c2da3('0x2788')](function(_0x5b22b2){const _0x14a76c=_0x3c2da3;_0x160bec[_0x14a76c('0x283e')]=_0x5b22b2[_0x14a76c('0x25df')]||[];})[_0x3c2da3('0x1cb5')](function(_0xbe5a59){const _0x3709dd=_0x3c2da3;_0x1a9e3b[_0x3709dd('0x5e8')]({'title':_0xbe5a59[_0x3709dd('0x1b51')]?_0x3709dd('0x15d1')+_0xbe5a59[_0x3709dd('0x1b51')]+_0x3709dd('0x1b0b')+_0xbe5a59[_0x3709dd('0x22ce')]:_0x3709dd('0x22c9'),'msg':_0xbe5a59[_0x3709dd('0x11fc')]?JSON[_0x3709dd('0x1be0')](_0xbe5a59[_0x3709dd('0x11fc')]):_0xbe5a59[_0x3709dd('0x17df')]()});}):_0x577af1[_0x3c2da3('0x2043')]['get']({'fields':_0x3c2da3('0xafa'),'sort':_0x3c2da3('0x1a8d'),'nolimit':_0x3c2da3('0x1001')})[_0x3c2da3('0x1714')][_0x3c2da3('0x2788')](function(_0x20016b){const _0xf41bbe=_0x3c2da3;_0x530618=_0x20016b[_0xf41bbe('0x25df')]||[];})[_0x3c2da3('0x2788')](function(){const _0x396c5d=_0x3c2da3,_0x42c849=[];for(let _0x1d1490=0x0;_0x1d1490<_0x14ed5a['length'];_0x1d1490++){_0x42c849['push'](_0x577af1[_0x396c5d('0xec9')]['get']({'userProfileId':_0x160bec[_0x396c5d('0x9cb')]['userProfileId'],'sectionId':_0x14ed5a[_0x1d1490]['id']})['$promise']);}return _0x2d8abe[_0x396c5d('0x1def')](_0x42c849);})[_0x3c2da3('0x2788')](function(_0x2c0248){const _0x26d30f=_0x3c2da3,_0x574d93=_0x283545()[_0x26d30f('0x155d')](_0x2c0248,function(_0x26e5ef){const _0x408225=_0x26d30f;return _0x26e5ef&&_0x26e5ef['rows']?_0x26e5ef[_0x408225('0x25df')][0x0]:null;}),_0x1f2f86=[];for(let _0x3daca2=0x0;_0x3daca2<_0x14ed5a['length'];_0x3daca2++){const _0x4602a5=_0x283545()[_0x26d30f('0x20e8')](_0x574d93,['sectionId',_0x14ed5a[_0x3daca2]['id']]);if(_0x4602a5){if(!_0x4602a5[_0x26d30f('0x1c0a')])_0x1f2f86['push'](_0x577af1[_0x26d30f('0x1050')]['get']({'sectionId':_0x4602a5['id']})['$promise']);else{const _0x3a921e=[];_0x530618[_0x26d30f('0x1534')](function(_0x4517ef){const _0x5808c1=_0x26d30f;_0x4517ef[_0x5808c1('0x1d7')]===_0x14ed5a[_0x3daca2][_0x5808c1('0x1d7')]&&_0x3a921e['push'](_0x4517ef);}),_0x1f2f86['push']({'rows':_0x3a921e,'count':_0x3a921e[_0x26d30f('0x2566')]});}}}return _0x2d8abe['all'](_0x1f2f86);})[_0x3c2da3('0x2788')](function(_0xd1667){const _0x20bfca=_0x3c2da3,_0x4281b6=[],_0x259736=[];_0x160bec[_0x20bfca('0x1934')][_0x20bfca('0x25df')][_0x20bfca('0x1534')](function(_0x4138b3){const _0x87991=_0x20bfca;if(_0x4138b3['field']===_0x87991('0x1ab4')){const _0x210cc8=_0x283545()[_0x87991('0x20e8')](_0x530618,{'name':_0x4138b3[_0x87991('0x49')]});_0x259736[_0x87991('0x13e3')](_0x210cc8);}});for(let _0x4d2807=0x0;_0x4d2807<_0xd1667['length'];_0x4d2807++){const _0x22acc0=_0xd1667[_0x4d2807][_0x20bfca('0x25df')]||[];_0x22acc0[_0x20bfca('0x1534')](function(_0x48dbe6){_0x4281b6['push'](_0x48dbe6);});}!_0x283545()[_0x20bfca('0x213d')](_0x259736)&&_0x259736['forEach'](function(_0x533f74){const _0x57232d=_0x20bfca;if(!_0x283545()[_0x57232d('0xc5d')](_0x4281b6,['resourceId',_0x533f74['id']])){const _0x17f8b6=_0x283545()[_0x57232d('0x20e8')](_0x530618,{'id':_0x533f74['id']});_0x17f8b6[_0x57232d('0x3bf')]=![],_0x4281b6[_0x57232d('0x13e3')](_0x17f8b6);}}),_0x160bec[_0x20bfca('0x283e')]=_0x4281b6;})[_0x3c2da3('0x1cb5')](function(_0x2aaf73){const _0x33b24c=_0x3c2da3;_0x1a9e3b[_0x33b24c('0x5e8')]({'title':_0x2aaf73[_0x33b24c('0x1b51')]?_0x33b24c('0x15d1')+_0x2aaf73['status']+'\x20-\x20'+_0x2aaf73[_0x33b24c('0x22ce')]:_0x33b24c('0x2763'),'msg':_0x2aaf73[_0x33b24c('0x11fc')]?JSON[_0x33b24c('0x1be0')](_0x2aaf73[_0x33b24c('0x11fc')]):_0x2aaf73['toString']()});});}function _0xcca7f3(){const _0x2e711f=_0x2668f8;_0x19456e['isAdmin']()?_0x577af1[_0x2e711f('0x2636')]['get']({'fields':_0x2e711f('0x174d'),'type':'outbound','VoiceExtensionId':_0x2e711f('0x954'),'nolimit':_0x2e711f('0x1001')})[_0x2e711f('0x1714')][_0x2e711f('0x2788')](function(_0x59b806){const _0x29cc2a=_0x2e711f;_0x160bec[_0x29cc2a('0xf8')]=_0x59b806['rows']||[];})['catch'](function(_0x456264){const _0x3e600a=_0x2e711f;_0x1a9e3b[_0x3e600a('0x5e8')]({'title':_0x456264[_0x3e600a('0x1b51')]?_0x3e600a('0x15d1')+_0x456264[_0x3e600a('0x1b51')]+_0x3e600a('0x1b0b')+_0x456264[_0x3e600a('0x22ce')]:_0x3e600a('0x10ea'),'msg':_0x456264[_0x3e600a('0x11fc')]?JSON['stringify'](_0x456264[_0x3e600a('0x11fc')]):_0x456264[_0x3e600a('0x17df')]()});}):_0x577af1[_0x2e711f('0x2636')][_0x2e711f('0x1335')]({'fields':_0x2e711f('0x174d'),'type':_0x2e711f('0x1'),'VoiceExtensionId':_0x2e711f('0x954'),'nolimit':_0x2e711f('0x1001')})['$promise'][_0x2e711f('0x2788')](function(_0xd7f192){const _0x4eeb1a=_0x2e711f;_0x160bec[_0x4eeb1a('0xf8')]=_0xd7f192['rows']||[];})[_0x2e711f('0x2788')](function(){const _0x329552=_0x2e711f;return _0x577af1[_0x329552('0xec9')][_0x329552('0x1335')]({'userProfileId':_0x160bec[_0x329552('0x9cb')][_0x329552('0x237f')],'sectionId':0x193})[_0x329552('0x1714')];})[_0x2e711f('0x2788')](function(_0x2379b3){const _0x321b6a=_0x2e711f,_0x52637c=_0x2379b3&&_0x2379b3['rows']?_0x2379b3[_0x321b6a('0x25df')][0x0]:null;if(!_0x52637c){const _0x10b0c3=[],_0x390557=[];_0x160bec[_0x321b6a('0x1934')]['rows'][_0x321b6a('0x1534')](function(_0x29bab9){const _0x56ef33=_0x321b6a;if(_0x29bab9[_0x56ef33('0x18da')]===_0x56ef33('0x1ef')){const _0x4deb4e=_0x283545()[_0x56ef33('0x20e8')](_0x160bec[_0x56ef33('0xf8')],{'id':Number(_0x29bab9[_0x56ef33('0x49')])});_0x390557[_0x56ef33('0x13e3')](_0x4deb4e);}});for(let _0x1d9c69=0x0;_0x1d9c69<_0x160bec[_0x321b6a('0xf8')][_0x321b6a('0x2566')];_0x1d9c69++){const _0x383dc0=_0x283545()[_0x321b6a('0xc5d')](_0x390557,{'id':_0x160bec[_0x321b6a('0xf8')][_0x1d9c69]['id']});_0x383dc0&&(_0x160bec[_0x321b6a('0xf8')][_0x1d9c69]['canSelect']=![],_0x10b0c3[_0x321b6a('0x13e3')](_0x160bec['outboundRoutes'][_0x1d9c69]));}_0x160bec[_0x321b6a('0xf8')]=_0x10b0c3;}else{if(!_0x52637c[_0x321b6a('0x1c0a')])return _0x577af1[_0x321b6a('0x1050')][_0x321b6a('0x1335')]({'sectionId':_0x52637c['id']})[_0x321b6a('0x1714')][_0x321b6a('0x2788')](function(_0x23963b){const _0x3e9cd2=_0x321b6a,_0x1071ef=_0x283545()[_0x3e9cd2('0x155d')](_0x23963b[_0x3e9cd2('0x25df')],function(_0x47ed88){const _0x40eacd=_0x3e9cd2;return _0x283545()[_0x40eacd('0x20e8')](_0x160bec[_0x40eacd('0xf8')],{'id':_0x47ed88['resourceId']});});let _0x49fdf9=null;_0x49fdf9=[],_0x160bec['triggerallConditions'][_0x3e9cd2('0x25df')][_0x3e9cd2('0x1534')](function(_0x8e0e00){const _0x3dafab=_0x3e9cd2;if(_0x8e0e00[_0x3dafab('0x18da')]===_0x3dafab('0x1ef')){const _0x2a40ea=_0x283545()[_0x3dafab('0x20e8')](_0x160bec[_0x3dafab('0xf8')],{'id':Number(_0x8e0e00[_0x3dafab('0x49')])});_0x49fdf9[_0x3dafab('0x13e3')](_0x2a40ea);}}),!_0x283545()['isEmpty'](_0x49fdf9)&&_0x49fdf9[_0x3e9cd2('0x1534')](function(_0x330e9c){const _0xcdf710=_0x3e9cd2;if(!_0x283545()[_0xcdf710('0xc5d')](_0x1071ef,['id',_0x330e9c['id']])){const _0x320434=_0x283545()['find'](_0x160bec[_0xcdf710('0xf8')],{'id':_0x330e9c['id']});_0x320434[_0xcdf710('0x3bf')]=![],_0x1071ef[_0xcdf710('0x13e3')](_0x320434);}}),_0x160bec[_0x3e9cd2('0xf8')]=_0x1071ef;});}})[_0x2e711f('0x1cb5')](function(_0x311dc2){const _0x18514c=_0x2e711f;_0x1a9e3b['error']({'title':_0x311dc2[_0x18514c('0x1b51')]?'API:'+_0x311dc2[_0x18514c('0x1b51')]+'\x20-\x20'+_0x311dc2[_0x18514c('0x22ce')]:_0x18514c('0x10ea'),'msg':_0x311dc2[_0x18514c('0x11fc')]?JSON[_0x18514c('0x1be0')](_0x311dc2[_0x18514c('0x11fc')]):_0x311dc2[_0x18514c('0x17df')]()});});}function _0x38f1a1(){const _0x42c2c9=_0x2668f8;_0x19456e[_0x42c2c9('0x1e40')]()?_0x577af1[_0x42c2c9('0x1e6a')][_0x42c2c9('0x1335')]({'fields':_0x42c2c9('0x10fe'),'sort':_0x42c2c9('0x1a8d'),'role':_0x42c2c9('0x188b'),'nolimit':_0x42c2c9('0x1001')})[_0x42c2c9('0x1714')]['then'](function(_0x185cfb){const _0x35cbb2=_0x42c2c9;_0x160bec[_0x35cbb2('0x1713')]=_0x185cfb[_0x35cbb2('0x25df')]||[];})['catch'](function(_0xf3d22c){const _0xfc33fb=_0x42c2c9;_0x1a9e3b['error']({'title':_0xf3d22c['status']?'API:'+_0xf3d22c['status']+_0xfc33fb('0x1b0b')+_0xf3d22c['statusText']:_0xfc33fb('0xd90'),'msg':_0xf3d22c[_0xfc33fb('0x11fc')]?JSON[_0xfc33fb('0x1be0')](_0xf3d22c[_0xfc33fb('0x11fc')]):_0xf3d22c['toString']()});}):_0x577af1[_0x42c2c9('0x1e6a')][_0x42c2c9('0x1335')]({'fields':_0x42c2c9('0x10fe'),'sort':_0x42c2c9('0x1a8d'),'role':_0x42c2c9('0x188b'),'nolimit':'true'})[_0x42c2c9('0x1714')][_0x42c2c9('0x2788')](function(_0x2d3fcc){const _0x52af22=_0x42c2c9;_0x160bec['agents']=_0x2d3fcc[_0x52af22('0x25df')]||[];})[_0x42c2c9('0x2788')](function(){const _0x1985ab=_0x42c2c9;return _0x577af1[_0x1985ab('0xec9')][_0x1985ab('0x1335')]({'userProfileId':_0x160bec['currentUser'][_0x1985ab('0x237f')],'sectionId':0xca})['$promise'];})[_0x42c2c9('0x2788')](function(_0x383af9){const _0x3da178=_0x42c2c9,_0x48a935=_0x383af9&&_0x383af9[_0x3da178('0x25df')]?_0x383af9['rows'][0x0]:null;if(!_0x48a935){const _0x2f0009=[],_0x906c5a=[];_0x160bec[_0x3da178('0x1934')]['rows'][_0x3da178('0x1534')](function(_0x3fb82c){const _0x1dc39c=_0x3da178;if(_0x3fb82c[_0x1dc39c('0x18da')]==='agent'){const _0x210b8f=_0x283545()[_0x1dc39c('0x20e8')](_0x160bec[_0x1dc39c('0x1713')],{'name':_0x3fb82c[_0x1dc39c('0x49')]});_0x906c5a['push'](_0x210b8f);}});for(let _0x3360f9=0x0;_0x3360f9<_0x160bec[_0x3da178('0x1713')]['length'];_0x3360f9++){const _0xa821bf=_0x283545()[_0x3da178('0xc5d')](_0x906c5a,{'id':_0x160bec['agents'][_0x3360f9]['id']});_0xa821bf&&(_0x160bec[_0x3da178('0x1713')][_0x3360f9]['canSelect']=![],_0x2f0009['push'](_0x160bec[_0x3da178('0x1713')][_0x3360f9]));}_0x160bec[_0x3da178('0x1713')]=_0x2f0009;}else{if(!_0x48a935[_0x3da178('0x1c0a')])return _0x577af1['userProfileResource'][_0x3da178('0x1335')]({'sectionId':_0x48a935['id']})[_0x3da178('0x1714')][_0x3da178('0x2788')](function(_0x3ec0bd){const _0x505185=_0x3da178,_0x39874b=_0x283545()['map'](_0x3ec0bd[_0x505185('0x25df')],function(_0x340969){const _0x5c1283=_0x505185;return _0x283545()[_0x5c1283('0x20e8')](_0x160bec[_0x5c1283('0x1713')],{'id':_0x340969['resourceId']});});let _0x42d3d2=null;_0x42d3d2=[],_0x160bec['triggerallConditions']['rows'][_0x505185('0x1534')](function(_0x1fb729){const _0x2c96ac=_0x505185;if(_0x1fb729[_0x2c96ac('0x18da')]==='agent'){const _0x2c114e=_0x283545()[_0x2c96ac('0x20e8')](_0x160bec[_0x2c96ac('0x1713')],{'name':_0x1fb729[_0x2c96ac('0x49')]});_0x42d3d2[_0x2c96ac('0x13e3')](_0x2c114e);}}),!_0x283545()[_0x505185('0x213d')](_0x42d3d2)&&_0x42d3d2[_0x505185('0x1534')](function(_0x55b28c){const _0x12847c=_0x505185;if(!_0x283545()['some'](_0x39874b,['id',_0x55b28c['id']])){const _0x1ed7fc=_0x283545()[_0x12847c('0x20e8')](_0x160bec[_0x12847c('0x1713')],{'id':_0x55b28c['id']});_0x1ed7fc['canSelect']=![],_0x39874b['push'](_0x1ed7fc);}}),_0x160bec[_0x505185('0x1713')]=_0x39874b;});}})[_0x42c2c9('0x1cb5')](function(_0x51caa4){const _0x125b99=_0x42c2c9;_0x1a9e3b[_0x125b99('0x5e8')]({'title':_0x51caa4[_0x125b99('0x1b51')]?_0x125b99('0x15d1')+_0x51caa4[_0x125b99('0x1b51')]+_0x125b99('0x1b0b')+_0x51caa4[_0x125b99('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x51caa4[_0x125b99('0x11fc')]?JSON[_0x125b99('0x1be0')](_0x51caa4[_0x125b99('0x11fc')]):_0x51caa4['toString']()});});}function _0x5be3f0(){const _0x2f6056=_0x2668f8,_0x46f3d9=_0x160bec[_0x2f6056('0x126e')][_0x2f6056('0x2645')]+(_0x160bec['trigger'][_0x2f6056('0x2645')]===_0x2f6056('0x231')?_0x2f6056('0x1577'):_0x2f6056('0x140b'));let _0x17ecf1;switch(_0x160bec['trigger'][_0x2f6056('0x2645')]){case _0x2f6056('0x231'):_0x17ecf1=0x1f6;break;case'fax':_0x17ecf1=0x386;break;case'mail':_0x17ecf1=0x25a;break;case _0x2f6056('0x18aa'):_0x17ecf1=0x322;break;case'sms':_0x17ecf1=0x2be;break;case'whatsapp':_0x17ecf1=0x836;break;}if(_0x19456e[_0x2f6056('0x1e40')]()){const _0x130fd2=_0x160bec[_0x2f6056('0x126e')][_0x2f6056('0x2645')];_0x577af1[_0x46f3d9][_0x2f6056('0x1335')]({'fields':_0x2f6056('0x1338'),'sort':'id','nolimit':'true'})[_0x2f6056('0x1714')][_0x2f6056('0x2788')](function(_0x300e58){const _0x4cdc51=_0x2f6056;_0x160bec[_0x4cdc51('0xf8b')]=_0x300e58['rows']||[];})[_0x2f6056('0x1cb5')](function(_0x1f87b9){const _0x5cf75c=_0x2f6056;_0x1a9e3b[_0x5cf75c('0x5e8')]({'title':_0x1f87b9[_0x5cf75c('0x1b51')]?_0x5cf75c('0x15d1')+_0x1f87b9[_0x5cf75c('0x1b51')]+_0x5cf75c('0x1b0b')+_0x1f87b9[_0x5cf75c('0x22ce')]:'SYSTEM:GET_'+_0x130fd2[_0x5cf75c('0x25e6')]()+_0x130fd2===_0x5cf75c('0x231')?_0x5cf75c('0x11cf'):'ACCOUNTS','msg':_0x1f87b9[_0x5cf75c('0x11fc')]?JSON['stringify'](_0x1f87b9['data']):_0x1f87b9[_0x5cf75c('0x17df')]()});});}else _0x577af1[_0x46f3d9][_0x2f6056('0x1335')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x2f6056('0x1714')][_0x2f6056('0x2788')](function(_0x13ddc3){const _0x16dc7d=_0x2f6056;_0x160bec['accounts']=_0x13ddc3[_0x16dc7d('0x25df')]||[];})[_0x2f6056('0x2788')](function(){const _0x44327c=_0x2f6056;return _0x577af1['userProfileSection'][_0x44327c('0x1335')]({'userProfileId':_0x160bec[_0x44327c('0x9cb')][_0x44327c('0x237f')],'sectionId':_0x17ecf1})[_0x44327c('0x1714')];})[_0x2f6056('0x2788')](function(_0x1d1977){const _0x1ce3fb=_0x2f6056,_0x55f231=_0x1d1977&&_0x1d1977['rows']?_0x1d1977[_0x1ce3fb('0x25df')][0x0]:null;if(!_0x55f231){const _0x248b6d=[],_0x5958d8=[];_0x160bec[_0x1ce3fb('0x1934')]['rows']['forEach'](function(_0x45f503){const _0x499151=_0x1ce3fb;if(_0x45f503[_0x499151('0x18da')]===_0x499151('0x82f')){const _0x22b463=_0x283545()[_0x499151('0x20e8')](_0x160bec[_0x499151('0xf8b')],{'id':Number(_0x45f503[_0x499151('0x49')])});_0x5958d8[_0x499151('0x13e3')](_0x22b463);}});for(let _0x2aaf24=0x0;_0x2aaf24<_0x160bec['accounts'][_0x1ce3fb('0x2566')];_0x2aaf24++){const _0xf652a6=_0x283545()[_0x1ce3fb('0xc5d')](_0x5958d8,{'id':_0x160bec['accounts'][_0x2aaf24]['id']});_0xf652a6&&(_0x160bec[_0x1ce3fb('0xf8b')][_0x2aaf24][_0x1ce3fb('0x3bf')]=![],_0x248b6d['push'](_0x160bec['accounts'][_0x2aaf24]));}_0x160bec['accounts']=_0x248b6d;}else{if(!_0x55f231[_0x1ce3fb('0x1c0a')])return _0x577af1[_0x1ce3fb('0x1050')][_0x1ce3fb('0x1335')]({'sectionId':_0x55f231['id']})[_0x1ce3fb('0x1714')][_0x1ce3fb('0x2788')](function(_0x568919){const _0x59df72=_0x1ce3fb,_0x50a74b=_0x283545()[_0x59df72('0x155d')](_0x568919[_0x59df72('0x25df')],function(_0x4ca4ad){const _0x1fdc7e=_0x59df72;return _0x283545()[_0x1fdc7e('0x20e8')](_0x160bec[_0x1fdc7e('0xf8b')],{'id':_0x4ca4ad['resourceId']});});let _0x6f4555=null;_0x6f4555=[],_0x160bec[_0x59df72('0x1934')][_0x59df72('0x25df')][_0x59df72('0x1534')](function(_0x3983d9){const _0x19bad6=_0x59df72;if(_0x3983d9[_0x19bad6('0x18da')]===_0x19bad6('0x82f')){const _0x58837a=_0x283545()['find'](_0x160bec[_0x19bad6('0xf8b')],{'id':Number(_0x3983d9['value'])});_0x6f4555[_0x19bad6('0x13e3')](_0x58837a);}}),!_0x283545()[_0x59df72('0x213d')](_0x6f4555)&&_0x6f4555[_0x59df72('0x1534')](function(_0x1f88a6){const _0x508d42=_0x59df72;if(!_0x283545()[_0x508d42('0xc5d')](_0x50a74b,['id',_0x1f88a6['id']])){const _0x5da257=_0x283545()[_0x508d42('0x20e8')](_0x160bec['accounts'],{'id':_0x1f88a6['id']});_0x5da257[_0x508d42('0x3bf')]=![],_0x50a74b['push'](_0x5da257);}}),_0x160bec['accounts']=_0x50a74b;});}})['catch'](function(_0x1eebe8){const _0x32b3ad=_0x2f6056,_0x1aefb5=_0x160bec['trigger'][_0x32b3ad('0x2645')];_0x1a9e3b[_0x32b3ad('0x5e8')]({'title':_0x1eebe8[_0x32b3ad('0x1b51')]?'API:'+_0x1eebe8[_0x32b3ad('0x1b51')]+_0x32b3ad('0x1b0b')+_0x1eebe8[_0x32b3ad('0x22ce')]:_0x32b3ad('0xb2b')+_0x1aefb5[_0x32b3ad('0x25e6')]()+_0x1aefb5===_0x32b3ad('0x231')?_0x32b3ad('0x11cf'):_0x32b3ad('0xde9'),'msg':_0x1eebe8[_0x32b3ad('0x11fc')]?JSON[_0x32b3ad('0x1be0')](_0x1eebe8['data']):_0x1eebe8[_0x32b3ad('0x17df')]()});});}function _0x18e741(){const _0x66b843=_0x2668f8;switch(_0x160bec['allCondition'][_0x66b843('0x18da')]){case _0x66b843('0x1ab4'):if(!_0x160bec[_0x66b843('0x283e')])_0x18229b();break;case'routeId':if(!_0x160bec['outboundRoutes'])_0xcca7f3();break;case _0x66b843('0x188b'):if(!_0x160bec[_0x66b843('0x1713')])_0x38f1a1();break;case _0x66b843('0x82f'):_0x5be3f0();break;}}function _0x4fd467(){_0x18e741();}function _0x17d847(){const _0x5871a3=_0x2668f8;_0x160bec[_0x5871a3('0x25be')]=[],_0x577af1[_0x5871a3('0x126e')][_0x5871a3('0x12b')]({'id':_0x2835f7[_0x5871a3('0x4b9')]['id']},_0x160bec['allCondition'])[_0x5871a3('0x1714')][_0x5871a3('0x2788')](function(_0x13812f){const _0x2241f0=_0x5871a3;_0x160bec[_0x2241f0('0x17a5')][_0x2241f0('0xc51')](_0x13812f[_0x2241f0('0x1cbf')]()),_0x1a9e3b[_0x2241f0('0x173b')]({'title':_0xe316d4[_0x2241f0('0x1b11')](_0x2241f0('0x260c'))}),_0x2e7e46(_0x160bec['allConditions']);})[_0x5871a3('0x1cb5')](function(_0xf376fe){const _0x2d0a78=_0x5871a3;if(_0xf376fe[_0x2d0a78('0x11fc')]&&_0xf376fe[_0x2d0a78('0x11fc')][_0x2d0a78('0x25be')]&&_0xf376fe['data'][_0x2d0a78('0x25be')][_0x2d0a78('0x2566')]){_0x160bec[_0x2d0a78('0x25be')]=_0xf376fe[_0x2d0a78('0x11fc')][_0x2d0a78('0x25be')]||[{'message':_0xf376fe[_0x2d0a78('0x17df')](),'type':_0x2d0a78('0x1e7c')}];for(let _0x3de5fc=0x0;_0x3de5fc<_0xf376fe[_0x2d0a78('0x11fc')]['errors'][_0x2d0a78('0x2566')];_0x3de5fc+=0x1){_0x1a9e3b['error']({'title':_0xf376fe[_0x2d0a78('0x11fc')][_0x2d0a78('0x25be')][_0x3de5fc][_0x2d0a78('0x1d7')],'msg':_0xf376fe[_0x2d0a78('0x11fc')][_0x2d0a78('0x25be')][_0x3de5fc][_0x2d0a78('0x15e2')]});}}else _0x1a9e3b['error']({'title':_0xf376fe[_0x2d0a78('0x1b51')]?_0x2d0a78('0x15d1')+_0xf376fe[_0x2d0a78('0x1b51')]+'\x20-\x20'+_0xf376fe['statusText']:_0x2d0a78('0x1e7c'),'msg':_0xf376fe['data']?JSON[_0x2d0a78('0x1be0')](_0xf376fe[_0x2d0a78('0x11fc')][_0x2d0a78('0x15e2')]):_0xf376fe['toString']()});});}function _0x385c9d(){const _0xc751e9=_0x2668f8;_0x160bec[_0xc751e9('0x25be')]=[],_0x577af1[_0xc751e9('0xf2b')][_0xc751e9('0x2740')]({'id':_0x160bec['allCondition']['id']},_0x160bec['allCondition'])[_0xc751e9('0x1714')][_0xc751e9('0x2788')](function(){const _0xfe23f0=_0xc751e9;_0x160bec[_0xfe23f0('0x17a5')]=_0x283545()[_0xfe23f0('0x155d')](_0x160bec['allConditions'],function(_0x2a5c13){const _0x2aab6b=_0xfe23f0;if(_0x2a5c13['id']===_0x160bec[_0x2aab6b('0x5e4')]['id'])return _0x160bec['allCondition'];else return _0x2a5c13;}),_0x1a9e3b['success']({'title':_0xe316d4[_0xfe23f0('0x1b11')](_0xfe23f0('0x1897'))}),_0x2e7e46(_0x160bec[_0xfe23f0('0x17a5')]);})['catch'](function(_0x4060c6){const _0x5ea136=_0xc751e9;if(_0x4060c6[_0x5ea136('0x11fc')]&&_0x4060c6[_0x5ea136('0x11fc')][_0x5ea136('0x25be')]&&_0x4060c6[_0x5ea136('0x11fc')][_0x5ea136('0x25be')]['length']){_0x160bec[_0x5ea136('0x25be')]=_0x4060c6[_0x5ea136('0x11fc')][_0x5ea136('0x25be')]||[{'message':_0x4060c6[_0x5ea136('0x17df')](),'type':'api.condition.update'}];for(let _0x17b117=0x0;_0x17b117<_0x4060c6[_0x5ea136('0x11fc')][_0x5ea136('0x25be')][_0x5ea136('0x2566')];_0x17b117++){_0x1a9e3b[_0x5ea136('0x5e8')]({'title':_0x4060c6[_0x5ea136('0x11fc')]['errors'][_0x17b117][_0x5ea136('0x1d7')],'msg':_0x4060c6[_0x5ea136('0x11fc')]['errors'][_0x17b117][_0x5ea136('0x15e2')]});}}else _0x1a9e3b['error']({'title':_0x4060c6[_0x5ea136('0x1b51')]?_0x5ea136('0x15d1')+_0x4060c6['status']+_0x5ea136('0x1b0b')+_0x4060c6[_0x5ea136('0x22ce')]:_0x5ea136('0x229d'),'msg':_0x4060c6['data']?JSON[_0x5ea136('0x1be0')](_0x4060c6[_0x5ea136('0x11fc')][_0x5ea136('0x15e2')]):_0x4060c6[_0x5ea136('0x17df')]()});});}function _0x5f4373(_0x45036d){const _0x4b649e=_0x2668f8;_0x160bec[_0x4b649e('0x25be')]=[];const _0x278a39=_0x24e95d[_0x4b649e('0x112e')]({'skipHide':!![]})[_0x4b649e('0x14e4')](_0xe316d4[_0x4b649e('0x1b11')](_0x4b649e('0x26bd')))[_0x4b649e('0x10bc')]('Delete\x20condition')['ok'](_0xe316d4[_0x4b649e('0x1b11')](_0x4b649e('0x232a')))[_0x4b649e('0x1801')](_0xe316d4['instant'](_0x4b649e('0x1061')))[_0x4b649e('0x24d0')](_0x45036d);_0x24e95d[_0x4b649e('0x2fa')](_0x278a39)[_0x4b649e('0x2788')](function(){const _0x3dc0a8=_0x4b649e;_0x577af1[_0x3dc0a8('0xf2b')][_0x3dc0a8('0x17c4')]({'id':_0x160bec['allCondition']['id']})[_0x3dc0a8('0x1714')][_0x3dc0a8('0x2788')](function(){const _0x53cb25=_0x3dc0a8;_0x160bec[_0x53cb25('0x17a5')]=_0x283545()['filter'](_0x160bec[_0x53cb25('0x17a5')],function(_0x42acc2){const _0x5ac84e=_0x53cb25;return _0x42acc2['id']!==_0x160bec[_0x5ac84e('0x5e4')]['id'];}),_0x1a9e3b['success']({'title':_0xe316d4['instant']('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')}),_0x2e7e46(_0x160bec[_0x53cb25('0x17a5')]);})[_0x3dc0a8('0x1cb5')](function(_0x486b85){const _0x1a3bd0=_0x3dc0a8;if(_0x486b85[_0x1a3bd0('0x11fc')]&&_0x486b85[_0x1a3bd0('0x11fc')][_0x1a3bd0('0x25be')]&&_0x486b85['data'][_0x1a3bd0('0x25be')][_0x1a3bd0('0x2566')]){_0x160bec[_0x1a3bd0('0x25be')]=_0x486b85[_0x1a3bd0('0x11fc')]['errors']||[{'message':_0x486b85['toString'](),'type':_0x1a3bd0('0x1eca')}];for(let _0x5941ee=0x0;_0x5941ee<_0x486b85['data'][_0x1a3bd0('0x25be')][_0x1a3bd0('0x2566')];_0x5941ee++){_0x1a9e3b[_0x1a3bd0('0x5e8')]({'title':_0x486b85['data'][_0x1a3bd0('0x25be')][_0x5941ee][_0x1a3bd0('0x1d7')],'msg':_0x486b85[_0x1a3bd0('0x11fc')]['errors'][_0x5941ee]['message']});}}else _0x1a9e3b[_0x1a3bd0('0x5e8')]({'title':_0x486b85[_0x1a3bd0('0x1b51')]?_0x1a3bd0('0x15d1')+_0x486b85[_0x1a3bd0('0x1b51')]+_0x1a3bd0('0x1b0b')+_0x486b85['statusText']:_0x1a3bd0('0x1eca'),'msg':_0x486b85['data']?JSON[_0x1a3bd0('0x1be0')](_0x486b85[_0x1a3bd0('0x11fc')][_0x1a3bd0('0x15e2')]):_0x486b85[_0x1a3bd0('0x15e2')]||_0x486b85[_0x1a3bd0('0x17df')]()});});},function(){});}function _0x2e7e46(_0x4116a5){const _0x45b08c=_0x2668f8;_0x24e95d[_0x45b08c('0x19d')](_0x4116a5);}}const _0x383d62=_0x1a25f0;_0x68e6b5[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x126e'),'userProfileSection'];function _0x68e6b5(_0x32103c,_0x475375,_0x3d334e,_0x58d90c,_0x2a4f33,_0x14e77a,_0x6a6541,_0x22aa7c,_0x3e4e45){const _0x356c95=_0x34e79e,_0x5da767=this;_0x5da767[_0x356c95('0x9cb')]=_0x6a6541['getCurrentUser'](),_0x5da767[_0x356c95('0x130d')]=_0x3d334e,_0x5da767[_0x356c95('0x1af0')]=_0x58d90c,_0x5da767[_0x356c95('0x126e')]=_0x22aa7c||_0x32103c['params'][_0x356c95('0x126e')]||{},_0x5da767[_0x356c95('0xcb3')]=_0x32103c[_0x356c95('0x4b9')][_0x356c95('0x24f6')]||0x0;_0x32103c[_0x356c95('0x4b9')][_0x356c95('0xe28')]?_0x5da767['crudPermissions']=_0x32103c['params'][_0x356c95('0xe28')]:(_0x5da767[_0x356c95('0xec9')]=_0x3e4e45&&_0x3e4e45[_0x356c95('0x338')]==0x1?_0x3e4e45[_0x356c95('0x25df')][0x0]:null,_0x5da767[_0x356c95('0xe28')]=_0x6a6541[_0x356c95('0x157e')](_0x5da767['userProfileSection']?_0x5da767[_0x356c95('0xec9')][_0x356c95('0xe28')]:null));_0x5da767['gotoTriggers']=_0x171f6b,_0x5da767['saveTrigger']=_0x846f7f;function _0x171f6b(){const _0x5a654f=_0x356c95;_0x32103c['go'](_0x5a654f('0xf01'),{},{'reload':_0x5a654f('0xf01')});}function _0x846f7f(){const _0x48970d=_0x356c95;_0x2a4f33['trigger'][_0x48970d('0x2740')]({'id':_0x5da767[_0x48970d('0x126e')]['id']},_0x5da767['trigger'])[_0x48970d('0x1714')]['then'](function(){const _0x163492=_0x48970d;_0x14e77a[_0x163492('0x173b')]({'title':_0x475375[_0x163492('0x1b11')](_0x163492('0x1057'))});})[_0x48970d('0x1cb5')](function(_0x1e81f9){const _0x14c27b=_0x48970d;_0x14e77a[_0x14c27b('0x5e8')]({'title':_0x1e81f9[_0x14c27b('0x1b51')]?_0x14c27b('0x15d1')+_0x1e81f9[_0x14c27b('0x1b51')]+_0x14c27b('0x1b0b')+_0x1e81f9['statusText']:_0x14c27b('0x221c'),'msg':_0x1e81f9[_0x14c27b('0x11fc')]?JSON['stringify'](_0x1e81f9[_0x14c27b('0x11fc')]):_0x1e81f9[_0x14c27b('0x17df')]()});});}}const _0x48f124=_0x68e6b5,_0x51a15d=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog.html';_0x37de5e[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0x1f1'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x37de5e(_0x4455e8,_0x2b7cd7,_0x49d92f,_0x5d625a,_0x2e04b0,_0x327ae4,_0x62dbb8,_0x57fe8d,_0x5cac40,_0x5751c9,_0x3f30e7,_0x5ad50e,_0x2792b7,_0x96ab3f){const _0x2ad09f=_0x34e79e,_0x4715c2=this;_0x4715c2['license']=_0x2792b7,_0x4715c2[_0x2ad09f('0x1af0')]=_0x96ab3f,_0x4715c2['currentUser']=_0x5ad50e[_0x2ad09f('0x24cc')](),_0x4715c2[_0x2ad09f('0x1f1')]=_0x62dbb8||{'count':0x0,'rows':[]},_0x4715c2['userProfile']=_0x57fe8d,_0x4715c2[_0x2ad09f('0xec9')]=_0x5cac40&&_0x5cac40[_0x2ad09f('0x338')]==0x1?_0x5cac40[_0x2ad09f('0x25df')][0x0]:null,_0x4715c2[_0x2ad09f('0xe28')]=_0x5ad50e[_0x2ad09f('0x157e')](_0x4715c2[_0x2ad09f('0xec9')]?_0x4715c2[_0x2ad09f('0xec9')]['crudPermissions']:null),_0x4715c2[_0x2ad09f('0x1d84')]=[],_0x4715c2['query']={'fields':_0x2ad09f('0x1601'),'sort':_0x2ad09f('0x1cee'),'limit':0xa,'page':0x1},_0x4715c2[_0x2ad09f('0x15b')]=_0x50b4df,_0x4715c2[_0x2ad09f('0x1b7e')]=_0x1f9c50,_0x4715c2[_0x2ad09f('0x173b')]=_0x1a8de4,_0x4715c2[_0x2ad09f('0x1d1c')]=_0x49ebce,_0x4715c2[_0x2ad09f('0x1e5')]=_0x3fcba3,_0x4715c2[_0x2ad09f('0x2b4')]=_0x197f3a,_0x4715c2[_0x2ad09f('0x2731')]=_0x287046,_0x4715c2[_0x2ad09f('0x1bce')]=_0x43b721,_0x4715c2[_0x2ad09f('0x1310')]=_0x4a09bc;function _0x50b4df(_0x26c4d0){const _0x595695=_0x2ad09f;_0x2b7cd7['go'](_0x595695('0x1cbc'),{'id':_0x26c4d0['id'],'trigger':_0x26c4d0,'crudPermissions':_0x4715c2[_0x595695('0xe28')]});}function _0x1f9c50(_0xc18d5f,_0x24127a){const _0x21d611=_0x2ad09f;if(_0x4715c2[_0x21d611('0xe28')][_0x21d611('0x1e77')]||_0x4715c2['crudPermissions'][_0x21d611('0x98b')]&&!_0x4715c2[_0x21d611('0xe28')]['canEdit']){_0x50b4df(_0x24127a);return;}_0x49d92f[_0x21d611('0x2fa')]({'controller':_0x21d611('0x7aa'),'controllerAs':'vm','templateUrl':_0x51a15d,'parent':angular[_0x21d611('0x16b1')](_0x5d625a[_0x21d611('0x945')]),'targetEvent':_0xc18d5f,'clickOutsideToClose':!![],'locals':{'trigger':_0x24127a,'triggers':_0x4715c2[_0x21d611('0x1f1')][_0x21d611('0x25df')],'license':_0x4715c2[_0x21d611('0x130d')],'setting':_0x4715c2[_0x21d611('0x1af0')],'crudPermissions':_0x4715c2[_0x21d611('0xe28')]}})[_0x21d611('0x2788')](function(_0x1fe11b){const _0x35c611=_0x21d611;_0x1fe11b&&(_0x4715c2[_0x35c611('0x1f1')]={'count':_0x1fe11b[_0x35c611('0x2566')],'rows':_0x1fe11b});});}function _0x1a8de4(_0x27de25){const _0x42c418=_0x2ad09f;_0x4715c2[_0x42c418('0x1f1')]=_0x27de25||{'count':0x0,'rows':[]};}function _0x49ebce(){const _0x2ae265=_0x2ad09f;_0x4715c2['query'][_0x2ae265('0x19e')]=(_0x4715c2['query'][_0x2ae265('0x23f5')]-0x1)*_0x4715c2[_0x2ae265('0x135a')][_0x2ae265('0x68e')],_0x5ad50e[_0x2ae265('0x1e40')]()?_0x4715c2[_0x2ae265('0x1808')]=_0x5751c9[_0x2ae265('0x126e')][_0x2ae265('0x1335')](_0x4715c2[_0x2ae265('0x135a')],_0x1a8de4)['$promise']:(_0x4715c2[_0x2ae265('0x135a')]['id']=_0x4715c2[_0x2ae265('0x63c')]['id'],_0x4715c2[_0x2ae265('0x135a')]['section']=_0x2ae265('0x12e1'),_0x4715c2['promise']=_0x5751c9[_0x2ae265('0x63c')][_0x2ae265('0xa1')](_0x4715c2[_0x2ae265('0x135a')],_0x1a8de4)['$promise']);}function _0x3fcba3(_0x18e394,_0x57f2a8){const _0x5f1e1f=_0x2ad09f,_0x318228=_0x49d92f[_0x5f1e1f('0x112e')]()['title'](_0x327ae4[_0x5f1e1f('0x1b11')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))[_0x5f1e1f('0x1c98')](_0x327ae4[_0x5f1e1f('0x1b11')](_0x5f1e1f('0x260'),{'name':_0x18e394[_0x5f1e1f('0x1a8d')]}))[_0x5f1e1f('0x10bc')](_0x5f1e1f('0x1c78'))['targetEvent'](_0x57f2a8)['ok']('OK')[_0x5f1e1f('0x1801')](_0x327ae4[_0x5f1e1f('0x1b11')]('TOOLS.CANCEL'));_0x49d92f[_0x5f1e1f('0x2fa')](_0x318228)[_0x5f1e1f('0x2788')](function(){_0x5595d9(_0x18e394,!![]);});}function _0x5595d9(_0x11bf45,_0x171716){const _0x36b8c1=_0x2ad09f;_0x5751c9[_0x36b8c1('0x126e')][_0x36b8c1('0x17c4')]({'id':_0x11bf45['id']})[_0x36b8c1('0x1714')][_0x36b8c1('0x2788')](function(){const _0x1d14e4=_0x36b8c1;_0x49ebce(),_0x171716&&_0x3f30e7['success']({'title':_0x327ae4[_0x1d14e4('0x1b11')](_0x1d14e4('0x22be'))});})[_0x36b8c1('0x1cb5')](function(_0x28d7df){const _0x27cbd4=_0x36b8c1;if(_0x28d7df[_0x27cbd4('0x11fc')]&&_0x28d7df[_0x27cbd4('0x11fc')][_0x27cbd4('0x25be')]&&_0x28d7df[_0x27cbd4('0x11fc')][_0x27cbd4('0x25be')][_0x27cbd4('0x2566')]){_0x4715c2[_0x27cbd4('0x25be')]=_0x28d7df[_0x27cbd4('0x11fc')]['errors']||[{'message':_0x28d7df[_0x27cbd4('0x17df')](),'type':_0x27cbd4('0x17fc')}];for(let _0x509372=0x0;_0x509372<_0x28d7df['data'][_0x27cbd4('0x25be')]['length'];_0x509372++){_0x3f30e7[_0x27cbd4('0x5e8')]({'title':_0x28d7df[_0x27cbd4('0x11fc')]['errors'][_0x509372][_0x27cbd4('0x1d7')],'msg':_0x28d7df[_0x27cbd4('0x11fc')][_0x27cbd4('0x25be')][_0x509372][_0x27cbd4('0x15e2')]});}}else _0x3f30e7['error']({'title':_0x28d7df[_0x27cbd4('0x1b51')]?_0x27cbd4('0x15d1')+_0x28d7df[_0x27cbd4('0x1b51')]+'\x20-\x20'+_0x28d7df[_0x27cbd4('0x22ce')]:_0x27cbd4('0x17fc'),'msg':_0x28d7df[_0x27cbd4('0x11fc')]?JSON[_0x27cbd4('0x1be0')](_0x28d7df['data']['message']):_0x28d7df['message']||_0x28d7df['toString']()});});}function _0x197f3a(){const _0x1265f2=_0x2ad09f,_0x43233b=angular[_0x1265f2('0x2669')](_0x4715c2['selectedTriggers']);return _0x4715c2['selectedTriggers']=[],_0x43233b;}function _0x287046(_0x30c817){const _0x9ae61=_0x2ad09f,_0x55bf31=_0x49d92f[_0x9ae61('0x112e')]()[_0x9ae61('0x14e4')](_0x327ae4['instant'](_0x9ae61('0x9d0')))[_0x9ae61('0x1c98')](_0x327ae4[_0x9ae61('0x1b11')]('TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE',{'total':_0x4715c2[_0x9ae61('0x1d84')][_0x9ae61('0x2566')]}))[_0x9ae61('0x10bc')]('Delete\x20triggers')['targetEvent'](_0x30c817)['ok']('OK')['cancel'](_0x327ae4['instant'](_0x9ae61('0x1061')));_0x49d92f['show'](_0x55bf31)[_0x9ae61('0x2788')](function(){const _0x1ee45e=_0x9ae61;_0x4715c2[_0x1ee45e('0x1d84')]['forEach'](function(_0x5485d0){_0x5595d9(_0x5485d0);}),_0x4715c2[_0x1ee45e('0x1d84')]=[],_0x3f30e7['success']({'title':_0x327ae4[_0x1ee45e('0x1b11')](_0x1ee45e('0x1a71'))});});}function _0x43b721(){const _0x5583c1=_0x2ad09f;_0x4715c2[_0x5583c1('0x1d84')]=[];}function _0x4a09bc(){const _0x139e47=_0x2ad09f;_0x4715c2['selectedTriggers']=_0x4715c2[_0x139e47('0x1f1')][_0x139e47('0x25df')];}let _0xd05e9c=!![],_0x39d33c=0x1;_0x4455e8[_0x2ad09f('0x1662')]('vm.query.filter',function(_0x14694b,_0x4ef798){const _0x9dd400=_0x2ad09f;_0xd05e9c?_0x2e04b0(function(){_0xd05e9c=![];}):(!_0x4ef798&&(_0x39d33c=_0x4715c2['query'][_0x9dd400('0x23f5')]),_0x14694b!==_0x4ef798&&(_0x4715c2['query'][_0x9dd400('0x23f5')]=0x1),!_0x14694b&&(_0x4715c2[_0x9dd400('0x135a')][_0x9dd400('0x23f5')]=_0x39d33c),_0x49ebce());});}const _0x353f5f=_0x37de5e;_0x3db21d[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x3db21d(_0x379934){const _0x452cad=_0x34e79e;_0x379934['state'](_0x452cad('0xf01'),{'url':_0x452cad('0x1af'),'views':{'content@app':{'templateUrl':_0x33ab37,'controller':_0x452cad('0xb')}},'resolve':{'triggers':[_0x452cad('0x1318'),_0x452cad('0x1b04'),function(_0xf8d2a,_0x20c250){const _0x5186d7=_0x452cad;return _0x20c250[_0x5186d7('0x1516')]('admin')?_0xf8d2a['resolve'](_0x5186d7('0x8f7'),{'fields':_0x5186d7('0x3da'),'sort':_0x5186d7('0x1cee'),'limit':0xa,'offset':0x0}):_0xf8d2a[_0x5186d7('0x2322')]('userProfile@getResources',{'id':_0x20c250[_0x5186d7('0x24cc')]()[_0x5186d7('0x237f')],'section':_0x5186d7('0x12e1'),'fields':_0x5186d7('0x3da'),'sort':_0x5186d7('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x452cad('0x1b04'),function(_0x214d32,_0x277ed7){const _0xd114a0=_0x452cad;return _0x277ed7['hasRole'](_0xd114a0('0xe23'))?null:_0x214d32[_0xd114a0('0x2322')](_0xd114a0('0x231d'),{'fields':_0xd114a0('0x3f0'),'id':_0x277ed7[_0xd114a0('0x24cc')]()[_0xd114a0('0x237f')]});}],'userProfileSection':[_0x452cad('0x1318'),_0x452cad('0x1b04'),function(_0x377bfc,_0xa0765c){const _0x4a47fe=_0x452cad;return _0xa0765c[_0x4a47fe('0x1516')](_0x4a47fe('0xe23'))?null:_0x377bfc[_0x4a47fe('0x2322')](_0x4a47fe('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xa0765c['getCurrentUser']()[_0x4a47fe('0x237f')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'})[_0x452cad('0x249b')](_0x452cad('0x1cbc'),{'url':_0x452cad('0x206b'),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x841f8c,'controller':_0x452cad('0x18e5')}},'resolve':{'trigger':[_0x452cad('0x1318'),'$stateParams',function(_0x4e8d4a,_0x2c68ab){const _0x10fb78=_0x452cad;return _0x4e8d4a['resolve'](_0x10fb78('0x8f7'),{'fields':'createdAt,updatedAt,id,name,channel,status,description','id':_0x2c68ab['id']});}],'userProfileSection':[_0x452cad('0x1318'),_0x452cad('0x1b04'),function(_0x3b3c65,_0x43b9eb){const _0x4524dd=_0x452cad;return _0x3b3c65[_0x4524dd('0x2322')]('userProfileSection@get',{'fields':_0x4524dd('0xe2c'),'userProfileId':_0x43b9eb['getCurrentUser']()[_0x4524dd('0x237f')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x452cad('0x10e1')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0xf01'),[])['config'](_0x3db21d)[_0x34e79e('0xb44')](_0x34e79e('0x7aa'),_0x9bb8d)['controller'](_0x34e79e('0xd5d'),_0x4aa70b)[_0x34e79e('0xb44')]('CreateOrEditActionDialogController',_0x1058fb)['controller']('TriggerAllConditionsController',_0x1c2230)[_0x34e79e('0xb44')](_0x34e79e('0x1aa4'),_0x2d86c6)[_0x34e79e('0xb44')](_0x34e79e('0x1399'),_0x55addf)[_0x34e79e('0xb44')](_0x34e79e('0x137c'),_0x383d62)[_0x34e79e('0xb44')](_0x34e79e('0xdd5'),_0x48f124)[_0x34e79e('0xb44')](_0x34e79e('0xd33'),_0x353f5f);const _0xbab399=_0x18dd13['p']+_0x34e79e('0x9ff'),_0x1b5276=_0x18dd13['p']+_0x34e79e('0x1ff1'),_0x43a7f0=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view.html',_0x371b3e=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals.html',_0x501772=_0x18dd13['p']+_0x34e79e('0x21e4'),_0x3ac081=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html',_0x41afdf=_0x18dd13['p']+_0x34e79e('0x93c'),_0x4921ca=_0x18dd13['p']+_0x34e79e('0x9fa'),_0x2c4ec8=_0x18dd13['p']+_0x34e79e('0x1d2'),_0x3aada4=_0x18dd13['p']+_0x34e79e('0x461'),_0x4e5bb0=_0x18dd13['p']+_0x34e79e('0x114c'),_0x479fe2=_0x18dd13['p']+_0x34e79e('0x2499'),_0x41e3df=_0x18dd13['p']+_0x34e79e('0x1759'),_0x22c8de=_0x18dd13['p']+_0x34e79e('0x2700');_0x22c540[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document','$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x448'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x22c540(_0xc76ab,_0x56bb25,_0x349307,_0x73c7eb,_0x211a3c,_0x49b643,_0x59d911,_0x303d74,_0x1114bd,_0x265328,_0x2f2ec9,_0x133d42,_0x21bfc0,_0x78923b,_0x4e551f,_0x44d086,_0x515c4a){const _0x2e8b4c=_0x34e79e,_0xa62b3c=this;_0xa62b3c['license']=_0x44d086,_0xa62b3c['setting']=_0x515c4a,_0xa62b3c[_0x2e8b4c('0x9cb')]=_0x4e551f['getCurrentUser'](),_0xa62b3c['cannedAnswers']=_0x1114bd||{'count':0x0,'rows':[]},_0xa62b3c[_0x2e8b4c('0x63c')]=_0x265328,_0xa62b3c[_0x2e8b4c('0xec9')]=_0x2f2ec9&&_0x2f2ec9[_0x2e8b4c('0x338')]==0x1?_0x2f2ec9[_0x2e8b4c('0x25df')][0x0]:null,_0xa62b3c['crudPermissions']=_0x4e551f[_0x2e8b4c('0x157e')](_0xa62b3c[_0x2e8b4c('0xec9')]?_0xa62b3c['userProfileSection']['crudPermissions']:null),_0xa62b3c[_0x2e8b4c('0x26a9')]=_0x2e8b4c('0x448'),_0xa62b3c[_0x2e8b4c('0x2278')]='',_0xa62b3c[_0x2e8b4c('0x25e2')]=null,_0xa62b3c[_0x2e8b4c('0x2606')]=[],_0xa62b3c[_0x2e8b4c('0x135a')]={'fields':_0x2e8b4c('0x10ad'),'sort':_0x2e8b4c('0x1cee'),'MailAccountId':_0x2e8b4c('0x954'),'FaxAccountId':_0x2e8b4c('0x954'),'SmsAccountId':_0x2e8b4c('0x954'),'OpenchannelAccountId':_0x2e8b4c('0x954'),'ChatWebsiteId':'null','limit':0xa,'page':0x1},_0xa62b3c['editdialog']=_0x4ae143,_0xa62b3c[_0x2e8b4c('0x1e5')]=_0x50e026,_0xa62b3c[_0x2e8b4c('0x173b')]=_0x5de110,_0xa62b3c[_0x2e8b4c('0x22f3')]=_0x51a7b1,_0xa62b3c[_0x2e8b4c('0x15d4')]=_0x170a59,_0xa62b3c['deleteCannedAnswer']=_0x508c8e,_0xa62b3c['exportSelectedCannedAnswers']=_0x312ad3,_0xa62b3c['deleteSelectedCannedAnswers']=_0x283771,_0xa62b3c[_0x2e8b4c('0xfbe')]=_0x55428e,_0xa62b3c['selectAllCannedAnswers']=_0x447f7a;function _0x4ae143(_0x4673b6,_0x47cc5f){const _0x4d3c85=_0x2e8b4c;_0x211a3c[_0x4d3c85('0x2fa')]({'controller':_0x4d3c85('0x10e2'),'controllerAs':'vm','templateUrl':_0x22c8de,'parent':angular[_0x4d3c85('0x16b1')](_0x49b643[_0x4d3c85('0x945')]),'targetEvent':_0x47cc5f,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x4673b6,'cannedAnswers':_0xa62b3c['cannedAnswers'][_0x4d3c85('0x25df')],'license':_0xa62b3c[_0x4d3c85('0x130d')],'setting':null,'crudPermissions':_0xa62b3c[_0x4d3c85('0xe28')]}});}function _0x50e026(_0x11c6e9,_0x29a3f4){const _0x52a926=_0x2e8b4c,_0x1769e0=_0x211a3c[_0x52a926('0x112e')]()[_0x52a926('0x14e4')](_0x52a926('0x2114')+_0x283545()[_0x52a926('0x114')](_0x52a926('0x1870'))+'?')[_0x52a926('0x93e')](''+(_0x11c6e9[_0x52a926('0x1a8d')]||_0x52a926('0x1870'))+_0x52a926('0x229e')+_0x52a926('0x27c7'))[_0x52a926('0x10bc')](_0x52a926('0x1127'))[_0x52a926('0x24d0')](_0x29a3f4)['ok']('OK')[_0x52a926('0x1801')]('CANCEL');_0x211a3c[_0x52a926('0x2fa')](_0x1769e0)['then'](function(){_0x508c8e(_0x11c6e9);},function(){const _0x3932fc=_0x52a926;console['log'](_0x3932fc('0x1d8d'));});}let _0x1c3415=!![],_0x3ac6d7=0x1;_0xc76ab[_0x2e8b4c('0x1662')](_0x2e8b4c('0x1569'),function(_0x55544a,_0x1aa1c5){const _0x3178cb=_0x2e8b4c;_0x1c3415?_0x59d911(function(){_0x1c3415=![];}):(!_0x1aa1c5&&(_0x3ac6d7=_0xa62b3c[_0x3178cb('0x135a')]['page']),_0x55544a!==_0x1aa1c5&&(_0xa62b3c[_0x3178cb('0x135a')][_0x3178cb('0x23f5')]=0x1),!_0x55544a&&(_0xa62b3c['query'][_0x3178cb('0x23f5')]=_0x3ac6d7),_0xa62b3c[_0x3178cb('0x22f3')]());});function _0x5de110(_0x354b62){const _0x49d3ed=_0x2e8b4c;_0xa62b3c[_0x49d3ed('0x448')]=_0x354b62||{'count':0x0,'rows':[]};}function _0x51a7b1(){const _0x2917c9=_0x2e8b4c;_0xa62b3c[_0x2917c9('0x135a')][_0x2917c9('0x19e')]=(_0xa62b3c[_0x2917c9('0x135a')][_0x2917c9('0x23f5')]-0x1)*_0xa62b3c[_0x2917c9('0x135a')][_0x2917c9('0x68e')],_0x4e551f[_0x2917c9('0x1516')](_0x2917c9('0xe23'))?_0xa62b3c[_0x2917c9('0x1808')]=_0x133d42[_0x2917c9('0x1870')][_0x2917c9('0x1335')](_0xa62b3c['query'],_0x5de110)[_0x2917c9('0x1714')]:(_0xa62b3c[_0x2917c9('0x135a')]['id']=_0xa62b3c[_0x2917c9('0x63c')]['id'],_0xa62b3c[_0x2917c9('0x135a')][_0x2917c9('0xb13')]=_0x2917c9('0x252b'),_0xa62b3c[_0x2917c9('0x1808')]=_0x133d42['userProfile'][_0x2917c9('0xa1')](_0xa62b3c[_0x2917c9('0x135a')],_0x5de110)['$promise']);}function _0x170a59(_0x3e902a,_0xcf6fbe){const _0x2e9b1f=_0x2e8b4c;_0x211a3c[_0x2e9b1f('0x2fa')]({'controller':_0x2e9b1f('0x10e2'),'controllerAs':'vm','templateUrl':_0x22c8de,'parent':angular[_0x2e9b1f('0x16b1')](_0x49b643[_0x2e9b1f('0x945')]),'targetEvent':_0x3e902a,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0xcf6fbe,'cannedAnswers':_0xa62b3c[_0x2e9b1f('0x448')][_0x2e9b1f('0x25df')],'license':_0xa62b3c[_0x2e9b1f('0x130d')],'setting':_0xa62b3c[_0x2e9b1f('0x1af0')],'crudPermissions':_0xa62b3c['crudPermissions']}});}function _0x508c8e(_0x1f0240){const _0x5b8833=_0x2e8b4c;_0x133d42[_0x5b8833('0x1870')][_0x5b8833('0x17c4')]({'id':_0x1f0240['id']})[_0x5b8833('0x1714')][_0x5b8833('0x2788')](function(){const _0x3f4869=_0x5b8833;_0x283545()['remove'](_0xa62b3c[_0x3f4869('0x448')]['rows'],{'id':_0x1f0240['id']}),_0xa62b3c[_0x3f4869('0x448')]['count']-=0x1,!_0xa62b3c[_0x3f4869('0x448')][_0x3f4869('0x25df')][_0x3f4869('0x2566')]&&_0xa62b3c[_0x3f4869('0x22f3')](),_0x78923b[_0x3f4869('0x173b')]({'title':_0x283545()[_0x3f4869('0x114')]('CannedAnswer')+_0x3f4869('0x20db'),'msg':_0x1f0240['name']?_0x1f0240[_0x3f4869('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x5b8833('0x1cb5')](function(_0x8c3c9d){const _0x4154e5=_0x5b8833;if(_0x8c3c9d['data']&&_0x8c3c9d['data'][_0x4154e5('0x25be')]&&_0x8c3c9d[_0x4154e5('0x11fc')][_0x4154e5('0x25be')]['length']){_0xa62b3c[_0x4154e5('0x25be')]=_0x8c3c9d[_0x4154e5('0x11fc')]['errors']||[{'message':_0x8c3c9d[_0x4154e5('0x17df')](),'type':_0x4154e5('0x9c')}];for(let _0x22fe50=0x0;_0x22fe50<_0x8c3c9d['data']['errors'][_0x4154e5('0x2566')];_0x22fe50++){_0x78923b[_0x4154e5('0x5e8')]({'title':_0x8c3c9d[_0x4154e5('0x11fc')]['errors'][_0x22fe50][_0x4154e5('0x1d7')],'msg':_0x8c3c9d['data'][_0x4154e5('0x25be')][_0x22fe50][_0x4154e5('0x15e2')]});}}else _0x78923b[_0x4154e5('0x5e8')]({'title':_0x8c3c9d[_0x4154e5('0x1b51')]?_0x4154e5('0x15d1')+_0x8c3c9d[_0x4154e5('0x1b51')]+_0x4154e5('0x1b0b')+_0x8c3c9d['statusText']:_0x4154e5('0x9c'),'msg':_0x8c3c9d[_0x4154e5('0x11fc')]?JSON[_0x4154e5('0x1be0')](_0x8c3c9d[_0x4154e5('0x11fc')]['message']):_0x8c3c9d[_0x4154e5('0x15e2')]||_0x8c3c9d[_0x4154e5('0x17df')]()});});}function _0x312ad3(){const _0xa8cf17=_0x2e8b4c,_0xae6068=angular[_0xa8cf17('0x2669')](_0xa62b3c[_0xa8cf17('0x2606')]);return _0xa62b3c[_0xa8cf17('0x2606')]=[],_0xae6068;}function _0x283771(_0xb11ed3){const _0x5b01fb=_0x2e8b4c,_0x3daf03=_0x211a3c[_0x5b01fb('0x112e')]()[_0x5b01fb('0x14e4')](_0x5b01fb('0x1605'))[_0x5b01fb('0x93e')](_0x5b01fb('0x1670')+_0xa62b3c[_0x5b01fb('0x2606')][_0x5b01fb('0x2566')]+'\x20selected'+_0x5b01fb('0x27c7'))[_0x5b01fb('0x10bc')](_0x5b01fb('0x2031'))[_0x5b01fb('0x24d0')](_0xb11ed3)['ok']('OK')[_0x5b01fb('0x1801')](_0x5b01fb('0x1d8d'));_0x211a3c[_0x5b01fb('0x2fa')](_0x3daf03)[_0x5b01fb('0x2788')](function(){const _0x50fb06=_0x5b01fb;_0xa62b3c[_0x50fb06('0x2606')][_0x50fb06('0x1534')](function(_0x28e578){_0x508c8e(_0x28e578);}),_0xa62b3c[_0x50fb06('0x2606')]=[];});}function _0x55428e(){_0xa62b3c['selectedCannedAnswers']=[];}function _0x447f7a(){const _0x37eb54=_0x2e8b4c;_0xa62b3c[_0x37eb54('0x2606')]=_0xa62b3c[_0x37eb54('0x448')][_0x37eb54('0x25df')];}}const _0x506d57=_0x22c540;_0x280a55['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'cannedAnswers',_0x34e79e('0x1870'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x280a55(_0x32f823,_0x334663,_0x4770d7,_0x8b2d94,_0x55fd8e,_0x40c04b,_0x47103f,_0x4a58d9,_0x5247f4,_0x257897,_0x5b8471,_0x1c5c60,_0x381dd7,_0x41e121){const _0x5c59a5=_0x34e79e,_0x47ecf3=this;_0x47ecf3[_0x5c59a5('0x9cb')]=_0x5b8471['getCurrentUser'](),_0x47ecf3['errors']=[],_0x47ecf3[_0x5c59a5('0x1af0')]=_0x381dd7,_0x47ecf3[_0x5c59a5('0x130d')]=_0x1c5c60,_0x47ecf3[_0x5c59a5('0xe28')]=_0x41e121,_0x47ecf3['hasModulePermissions']={},_0x47ecf3[_0x5c59a5('0x18ad')]=_0x47ecf3[_0x5c59a5('0x1af0')]&&_0x47ecf3[_0x5c59a5('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x47ecf3[_0x5c59a5('0x14e4')]=_0x5c59a5('0x27b2'),_0x47ecf3[_0x5c59a5('0x1870')]=angular[_0x5c59a5('0x2669')](_0x5247f4),_0x47ecf3[_0x5c59a5('0x448')]=_0x4a58d9,_0x47ecf3['newCannedAnswer']=![];!_0x47ecf3[_0x5c59a5('0x1870')]&&(_0x47ecf3[_0x5c59a5('0x1870')]={},_0x47ecf3[_0x5c59a5('0x14e4')]=_0x5c59a5('0x1cdf'),_0x47ecf3[_0x5c59a5('0x2349')]=!![]);_0x47ecf3[_0x5c59a5('0x1c28')]=_0x2bf670,_0x47ecf3['saveCannedAnswer']=_0x404f28,_0x47ecf3[_0x5c59a5('0xca')]=_0x4b8f1a,_0x47ecf3['getDateFromString']=_0x1fce3b,_0x47ecf3[_0x5c59a5('0xca7')]=_0x198fd8;function _0x2bf670(){const _0x368544=_0x5c59a5;_0x47ecf3[_0x368544('0x25be')]=[],_0x257897['cannedAnswer'][_0x368544('0xbd0')](_0x47ecf3['cannedAnswer'])[_0x368544('0x1714')]['then'](function(_0x2afcb9){const _0x3e5656=_0x368544;_0x47ecf3[_0x3e5656('0x448')]['unshift'](_0x2afcb9[_0x3e5656('0x1cbf')]()),_0x47103f['success']({'title':_0x3e5656('0x146e'),'msg':_0x47ecf3['cannedAnswer'][_0x3e5656('0x1a8d')]?_0x47ecf3[_0x3e5656('0x1870')][_0x3e5656('0x1a8d')]+_0x3e5656('0x1e4a'):''}),_0x198fd8(_0x2afcb9);})[_0x368544('0x1cb5')](function(_0x3001d8){const _0x5f4d4f=_0x368544;if(_0x3001d8[_0x5f4d4f('0x11fc')]&&_0x3001d8[_0x5f4d4f('0x11fc')]['errors']&&_0x3001d8[_0x5f4d4f('0x11fc')][_0x5f4d4f('0x25be')]['length']){_0x47ecf3['errors']=_0x3001d8[_0x5f4d4f('0x11fc')][_0x5f4d4f('0x25be')]||[{'message':_0x3001d8['toString'](),'type':_0x5f4d4f('0x11b')}];for(let _0x55f776=0x0;_0x55f776<_0x3001d8[_0x5f4d4f('0x11fc')][_0x5f4d4f('0x25be')][_0x5f4d4f('0x2566')];_0x55f776+=0x1){_0x47103f['error']({'title':_0x3001d8[_0x5f4d4f('0x11fc')][_0x5f4d4f('0x25be')][_0x55f776]['type'],'msg':_0x3001d8['data'][_0x5f4d4f('0x25be')][_0x55f776][_0x5f4d4f('0x15e2')]});}}else _0x47103f[_0x5f4d4f('0x5e8')]({'title':_0x3001d8[_0x5f4d4f('0x1b51')]?_0x5f4d4f('0x15d1')+_0x3001d8[_0x5f4d4f('0x1b51')]+_0x5f4d4f('0x1b0b')+_0x3001d8[_0x5f4d4f('0x22ce')]:'api.cannedAnswer.save','msg':_0x3001d8[_0x5f4d4f('0x11fc')]?JSON[_0x5f4d4f('0x1be0')](_0x3001d8['data'][_0x5f4d4f('0x15e2')]):_0x3001d8['toString']()});});}function _0x404f28(){const _0x2ff837=_0x5c59a5;_0x47ecf3[_0x2ff837('0x25be')]=[],_0x257897[_0x2ff837('0x1870')]['update']({'id':_0x47ecf3[_0x2ff837('0x1870')]['id']},_0x47ecf3[_0x2ff837('0x1870')])[_0x2ff837('0x1714')][_0x2ff837('0x2788')](function(_0x1d7f33){const _0x505eda=_0x2ff837,_0x335f01=_0x283545()[_0x505eda('0x20e8')](_0x47ecf3[_0x505eda('0x448')],{'id':_0x1d7f33['id']});_0x335f01&&_0x283545()[_0x505eda('0x2503')](_0x335f01,_0x283545()['pick'](_0x1d7f33[_0x505eda('0x1cbf')](),_0x283545()[_0x505eda('0x2163')](_0x335f01))),_0x47103f[_0x505eda('0x173b')]({'title':_0x505eda('0x225b'),'msg':_0x47ecf3[_0x505eda('0x1870')]['name']?_0x47ecf3[_0x505eda('0x1870')]['name']+_0x505eda('0x24cf'):''}),_0x198fd8(_0x1d7f33);})[_0x2ff837('0x1cb5')](function(_0xd06f80){const _0x5e4d73=_0x2ff837;if(_0xd06f80['data']&&_0xd06f80[_0x5e4d73('0x11fc')][_0x5e4d73('0x25be')]&&_0xd06f80[_0x5e4d73('0x11fc')][_0x5e4d73('0x25be')]['length']){_0x47ecf3[_0x5e4d73('0x25be')]=_0xd06f80[_0x5e4d73('0x11fc')]['errors']||[{'message':_0xd06f80[_0x5e4d73('0x17df')](),'type':_0x5e4d73('0x244')}];for(let _0x501b4c=0x0;_0x501b4c<_0xd06f80[_0x5e4d73('0x11fc')]['errors'][_0x5e4d73('0x2566')];_0x501b4c++){_0x47103f[_0x5e4d73('0x5e8')]({'title':_0xd06f80[_0x5e4d73('0x11fc')][_0x5e4d73('0x25be')][_0x501b4c]['type'],'msg':_0xd06f80[_0x5e4d73('0x11fc')][_0x5e4d73('0x25be')][_0x501b4c][_0x5e4d73('0x15e2')]});}}else _0x47103f[_0x5e4d73('0x5e8')]({'title':_0xd06f80['status']?_0x5e4d73('0x15d1')+_0xd06f80['status']+_0x5e4d73('0x1b0b')+_0xd06f80['statusText']:'api.cannedAnswer.update','msg':_0xd06f80[_0x5e4d73('0x11fc')]?JSON['stringify'](_0xd06f80[_0x5e4d73('0x11fc')][_0x5e4d73('0x15e2')]):_0xd06f80[_0x5e4d73('0x17df')]()});});}function _0x4b8f1a(_0x565ce7){const _0x11687a=_0x5c59a5;_0x47ecf3[_0x11687a('0x25be')]=[];const _0x26f819=_0x8b2d94['confirm']()[_0x11687a('0x14e4')](_0x11687a('0x458'))[_0x11687a('0x1c98')](_0x11687a('0x257e'))['ariaLabel'](_0x11687a('0x2a5'))['ok'](_0x11687a('0x2786'))[_0x11687a('0x1801')](_0x11687a('0x1481'))[_0x11687a('0x24d0')](_0x565ce7);_0x8b2d94['show'](_0x26f819)[_0x11687a('0x2788')](function(){const _0x334a75=_0x11687a;_0x257897['cannedAnswer'][_0x334a75('0x17c4')]({'id':_0x47ecf3['cannedAnswer']['id']})[_0x334a75('0x1714')][_0x334a75('0x2788')](function(){const _0xdaa6b1=_0x334a75;_0x283545()[_0xdaa6b1('0x1a90')](_0x47ecf3[_0xdaa6b1('0x448')],{'id':_0x47ecf3[_0xdaa6b1('0x1870')]['id']}),_0x47103f[_0xdaa6b1('0x173b')]({'title':_0xdaa6b1('0x2b0'),'msg':(_0x47ecf3['cannedAnswer'][_0xdaa6b1('0x1a8d')]||'cannedAnswer')+_0xdaa6b1('0x14d4')}),_0x198fd8(_0x47ecf3['cannedAnswer']);})['catch'](function(_0x24492b){const _0x395e89=_0x334a75;if(_0x24492b[_0x395e89('0x11fc')]&&_0x24492b[_0x395e89('0x11fc')][_0x395e89('0x25be')]&&_0x24492b[_0x395e89('0x11fc')][_0x395e89('0x25be')]['length']){_0x47ecf3[_0x395e89('0x25be')]=_0x24492b[_0x395e89('0x11fc')][_0x395e89('0x25be')]||[{'message':_0x24492b[_0x395e89('0x17df')](),'type':_0x395e89('0x1cad')}];for(let _0x68cba3=0x0;_0x68cba3<_0x24492b[_0x395e89('0x11fc')]['errors'][_0x395e89('0x2566')];_0x68cba3++){_0x47103f[_0x395e89('0x5e8')]({'title':_0x24492b[_0x395e89('0x11fc')][_0x395e89('0x25be')][_0x68cba3][_0x395e89('0x1d7')],'msg':_0x24492b[_0x395e89('0x11fc')]['errors'][_0x68cba3]['message']});}}else _0x47103f['error']({'title':_0x24492b['status']?_0x395e89('0x15d1')+_0x24492b[_0x395e89('0x1b51')]+_0x395e89('0x1b0b')+_0x24492b[_0x395e89('0x22ce')]:_0x395e89('0x1cad'),'msg':_0x24492b['data']?JSON[_0x395e89('0x1be0')](_0x24492b['data']['message']):_0x24492b[_0x395e89('0x15e2')]||_0x24492b['toString']()});});},function(){});}function _0x1fce3b(_0x54101a){return _0x54101a===null?undefined:new Date(_0x54101a);}function _0x198fd8(_0x5de748){_0x8b2d94['hide'](_0x5de748);}}const _0x5f0f7a=_0x280a55;_0x9c8089['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location','$mdDialog','$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x87a'),_0x34e79e('0x1238'),'api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x9c8089(_0x541615,_0x3e5bd9,_0x47b43c,_0x2565cc,_0x58f8bd,_0x2e37b1,_0x18f0ad,_0x438843,_0x5f04ed,_0x1d6d4c,_0x4d70b2,_0x392ac0,_0x1354df,_0x3475d5){const _0x1dc9fc=_0x34e79e,_0x330a8c=this;_0x330a8c[_0x1dc9fc('0x9cb')]=_0x4d70b2[_0x1dc9fc('0x24cc')](),_0x330a8c[_0x1dc9fc('0x25be')]=[],_0x330a8c[_0x1dc9fc('0x1af0')]=_0x1354df,_0x330a8c['license']=_0x392ac0,_0x330a8c[_0x1dc9fc('0xe28')]=_0x3475d5,_0x330a8c[_0x1dc9fc('0x1193')]={},_0x330a8c[_0x1dc9fc('0x18ad')]=_0x330a8c[_0x1dc9fc('0x1af0')]&&_0x330a8c[_0x1dc9fc('0x1af0')][_0x1dc9fc('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x330a8c[_0x1dc9fc('0x14e4')]=_0x1dc9fc('0x1af9'),_0x330a8c[_0x1dc9fc('0x1238')]=angular[_0x1dc9fc('0x2669')](_0x5f04ed),_0x330a8c['customDashboards']=_0x438843,_0x330a8c[_0x1dc9fc('0x1db3')]=![];!_0x330a8c['customDashboard']&&(_0x330a8c[_0x1dc9fc('0x1238')]={},_0x330a8c['title']='TOOLS.NEW_CUSTOMDASHBOARD',_0x330a8c[_0x1dc9fc('0x1db3')]=!![]);_0x330a8c[_0x1dc9fc('0x2d5')]=_0x1cfeb3,_0x330a8c[_0x1dc9fc('0x8ec')]=_0x51bc5e,_0x330a8c['deleteCustomDashboard']=_0x462d1c,_0x330a8c[_0x1dc9fc('0x2601')]=_0x397a1d,_0x330a8c['closeDialog']=_0x349dbd;function _0x1cfeb3(){const _0x4833e5=_0x1dc9fc;_0x330a8c[_0x4833e5('0x25be')]=[],_0x1d6d4c[_0x4833e5('0x19f4')][_0x4833e5('0xbd0')](_0x330a8c[_0x4833e5('0x1238')])[_0x4833e5('0x1714')]['then'](function(_0x235290){const _0x1bf695=_0x4833e5;_0x330a8c[_0x1bf695('0x87a')][_0x1bf695('0xc51')](_0x235290['toJSON']()),_0x18f0ad[_0x1bf695('0x173b')]({'title':_0x1bf695('0x55b'),'msg':_0x330a8c[_0x1bf695('0x1238')][_0x1bf695('0x1a8d')]?_0x330a8c[_0x1bf695('0x1238')][_0x1bf695('0x1a8d')]+_0x1bf695('0x1e4a'):''}),_0x349dbd(_0x235290);})[_0x4833e5('0x1cb5')](function(_0x2357a6){const _0x4b4d67=_0x4833e5;if(_0x2357a6[_0x4b4d67('0x11fc')]&&_0x2357a6['data'][_0x4b4d67('0x25be')]&&_0x2357a6[_0x4b4d67('0x11fc')]['errors'][_0x4b4d67('0x2566')]){_0x330a8c[_0x4b4d67('0x25be')]=_0x2357a6['data'][_0x4b4d67('0x25be')]||[{'message':_0x2357a6[_0x4b4d67('0x17df')](),'type':_0x4b4d67('0x17ff')}];for(let _0x3c41fa=0x0;_0x3c41fa<_0x2357a6[_0x4b4d67('0x11fc')]['errors'][_0x4b4d67('0x2566')];_0x3c41fa+=0x1){_0x18f0ad[_0x4b4d67('0x5e8')]({'title':_0x2357a6[_0x4b4d67('0x11fc')][_0x4b4d67('0x25be')][_0x3c41fa][_0x4b4d67('0x1d7')],'msg':_0x2357a6[_0x4b4d67('0x11fc')][_0x4b4d67('0x25be')][_0x3c41fa]['message']});}}else _0x18f0ad[_0x4b4d67('0x5e8')]({'title':_0x2357a6['status']?'API:'+_0x2357a6[_0x4b4d67('0x1b51')]+_0x4b4d67('0x1b0b')+_0x2357a6[_0x4b4d67('0x22ce')]:_0x4b4d67('0x17ff'),'msg':_0x2357a6[_0x4b4d67('0x11fc')]?JSON['stringify'](_0x2357a6[_0x4b4d67('0x11fc')][_0x4b4d67('0x15e2')]):_0x2357a6[_0x4b4d67('0x17df')]()});});}function _0x51bc5e(){const _0x5048f0=_0x1dc9fc;_0x330a8c[_0x5048f0('0x25be')]=[],_0x1d6d4c[_0x5048f0('0x19f4')][_0x5048f0('0x2740')]({'id':_0x330a8c['customDashboard']['id']},_0x330a8c[_0x5048f0('0x1238')])['$promise']['then'](function(_0x3758dc){const _0xdac9af=_0x5048f0,_0x295696=_0x283545()['find'](_0x330a8c[_0xdac9af('0x87a')],{'id':_0x3758dc['id']});_0x295696&&_0x283545()[_0xdac9af('0x2503')](_0x295696,_0x283545()['pick'](_0x3758dc['toJSON'](),_0x283545()[_0xdac9af('0x2163')](_0x295696))),_0x18f0ad[_0xdac9af('0x173b')]({'title':_0xdac9af('0x102b'),'msg':_0x330a8c[_0xdac9af('0x1238')]['name']?_0x330a8c[_0xdac9af('0x1238')][_0xdac9af('0x1a8d')]+_0xdac9af('0x24cf'):''}),_0x349dbd(_0x3758dc);})[_0x5048f0('0x1cb5')](function(_0x9131cc){const _0x5fa668=_0x5048f0;if(_0x9131cc[_0x5fa668('0x11fc')]&&_0x9131cc[_0x5fa668('0x11fc')][_0x5fa668('0x25be')]&&_0x9131cc[_0x5fa668('0x11fc')][_0x5fa668('0x25be')][_0x5fa668('0x2566')]){_0x330a8c[_0x5fa668('0x25be')]=_0x9131cc[_0x5fa668('0x11fc')][_0x5fa668('0x25be')]||[{'message':_0x9131cc[_0x5fa668('0x17df')](),'type':'api.dashboard.update'}];for(let _0x4e66d4=0x0;_0x4e66d4<_0x9131cc[_0x5fa668('0x11fc')]['errors'][_0x5fa668('0x2566')];_0x4e66d4++){_0x18f0ad[_0x5fa668('0x5e8')]({'title':_0x9131cc[_0x5fa668('0x11fc')][_0x5fa668('0x25be')][_0x4e66d4][_0x5fa668('0x1d7')],'msg':_0x9131cc['data'][_0x5fa668('0x25be')][_0x4e66d4][_0x5fa668('0x15e2')]});}}else _0x18f0ad[_0x5fa668('0x5e8')]({'title':_0x9131cc[_0x5fa668('0x1b51')]?_0x5fa668('0x15d1')+_0x9131cc[_0x5fa668('0x1b51')]+_0x5fa668('0x1b0b')+_0x9131cc[_0x5fa668('0x22ce')]:_0x5fa668('0x2556'),'msg':_0x9131cc['data']?JSON[_0x5fa668('0x1be0')](_0x9131cc['data']['message']):_0x9131cc[_0x5fa668('0x17df')]()});});}function _0x462d1c(_0x5a6e24){const _0x12d055=_0x1dc9fc;_0x330a8c['errors']=[];const _0x5a79e7=_0x2565cc[_0x12d055('0x112e')]()[_0x12d055('0x14e4')](_0x12d055('0x458'))[_0x12d055('0x1c98')]('The\x20customDashboard\x20will\x20be\x20deleted.')[_0x12d055('0x10bc')](_0x12d055('0x3a7'))['ok'](_0x12d055('0x2786'))[_0x12d055('0x1801')](_0x12d055('0x1481'))[_0x12d055('0x24d0')](_0x5a6e24);_0x2565cc[_0x12d055('0x2fa')](_0x5a79e7)[_0x12d055('0x2788')](function(){const _0x2ee2fb=_0x12d055;_0x1d6d4c[_0x2ee2fb('0x19f4')][_0x2ee2fb('0x17c4')]({'id':_0x330a8c[_0x2ee2fb('0x1238')]['id']})['$promise'][_0x2ee2fb('0x2788')](function(){const _0x51ea42=_0x2ee2fb;_0x283545()[_0x51ea42('0x1a90')](_0x330a8c[_0x51ea42('0x87a')],{'id':_0x330a8c[_0x51ea42('0x1238')]['id']}),_0x18f0ad['success']({'title':_0x51ea42('0x2084'),'msg':(_0x330a8c[_0x51ea42('0x1238')][_0x51ea42('0x1a8d')]||_0x51ea42('0x1238'))+_0x51ea42('0x14d4')}),_0x349dbd(_0x330a8c[_0x51ea42('0x1238')]);})[_0x2ee2fb('0x1cb5')](function(_0x9d2d01){const _0x4f1094=_0x2ee2fb;if(_0x9d2d01[_0x4f1094('0x11fc')]&&_0x9d2d01['data']['errors']&&_0x9d2d01['data'][_0x4f1094('0x25be')]['length']){_0x330a8c[_0x4f1094('0x25be')]=_0x9d2d01[_0x4f1094('0x11fc')][_0x4f1094('0x25be')]||[{'message':_0x9d2d01['toString'](),'type':_0x4f1094('0x3ae')}];for(let _0x300620=0x0;_0x300620<_0x9d2d01[_0x4f1094('0x11fc')]['errors'][_0x4f1094('0x2566')];_0x300620++){_0x18f0ad[_0x4f1094('0x5e8')]({'title':_0x9d2d01['data'][_0x4f1094('0x25be')][_0x300620][_0x4f1094('0x1d7')],'msg':_0x9d2d01[_0x4f1094('0x11fc')][_0x4f1094('0x25be')][_0x300620][_0x4f1094('0x15e2')]});}}else _0x18f0ad[_0x4f1094('0x5e8')]({'title':_0x9d2d01['status']?'API:'+_0x9d2d01['status']+_0x4f1094('0x1b0b')+_0x9d2d01[_0x4f1094('0x22ce')]:'api.dashboard.delete','msg':_0x9d2d01[_0x4f1094('0x11fc')]?JSON[_0x4f1094('0x1be0')](_0x9d2d01[_0x4f1094('0x11fc')]['message']):_0x9d2d01['message']||_0x9d2d01[_0x4f1094('0x17df')]()});});},function(){});}function _0x397a1d(_0x1489a5){return _0x1489a5===null?undefined:new Date(_0x1489a5);}function _0x349dbd(_0x237ad0){const _0x365658=_0x1dc9fc;_0x2565cc[_0x365658('0x19d')](_0x237ad0);}}const _0x2bdbf0=_0x9c8089,_0x2d417a=_0x18dd13['p']+_0x34e79e('0xdc2');_0x74d646[_0x34e79e('0x2d9')]=['$scope','$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout','$translate','customDashboards','userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x74d646(_0x109aec,_0x1d902d,_0x1a3082,_0x5d9ce9,_0x3ac3ad,_0x5af41e,_0x2406e6,_0x4167a7,_0xc0e47a,_0x457543,_0x3873ef,_0x3805de,_0xc2805b,_0x56a17e,_0x4093a8,_0x1bf548,_0x298e52){const _0x577904=_0x34e79e,_0x54dc94=this;_0x54dc94[_0x577904('0x130d')]=_0x1bf548,_0x54dc94[_0x577904('0x1af0')]=_0x298e52,_0x54dc94[_0x577904('0x9cb')]=_0x4093a8[_0x577904('0x24cc')](),_0x54dc94[_0x577904('0x87a')]=_0xc0e47a||{'count':0x0,'rows':[]},_0x54dc94[_0x577904('0x63c')]=_0x457543,_0x54dc94[_0x577904('0xec9')]=_0x3873ef&&_0x3873ef[_0x577904('0x338')]==0x1?_0x3873ef[_0x577904('0x25df')][0x0]:null,_0x54dc94[_0x577904('0xe28')]=_0x4093a8['parseCrudPermissions'](_0x54dc94[_0x577904('0xec9')]?_0x54dc94[_0x577904('0xec9')][_0x577904('0xe28')]:null),_0x54dc94[_0x577904('0x26a9')]='customDashboards',_0x54dc94[_0x577904('0x2278')]='',_0x54dc94['listOrderAsc']=null,_0x54dc94[_0x577904('0x140')]=[],_0x54dc94[_0x577904('0x135a')]={'fields':_0x577904('0x1f79'),'sort':_0x577904('0x1cee'),'limit':0xa,'page':0x1},_0x54dc94['editstate']=_0x32ae3b,_0x54dc94[_0x577904('0x1ec')]=_0x57097a,_0x54dc94[_0x577904('0x1e5')]=_0xaf62f8,_0x54dc94[_0x577904('0x173b')]=_0x3fb2af,_0x54dc94['getCustomDashboards']=_0x449d19,_0x54dc94[_0x577904('0xa5')]=_0x493bc6,_0x54dc94[_0x577904('0x12af')]=_0x545934,_0x54dc94[_0x577904('0xab6')]=_0x5c5527,_0x54dc94[_0x577904('0xe17')]=_0x5c775d,_0x54dc94[_0x577904('0x1786')]=_0x33f3fd,_0x54dc94['selectAllCustomDashboards']=_0x5bba35;function _0x32ae3b(_0xc1628d){const _0x3015c5=_0x577904;_0x1a3082['go'](_0x3015c5('0x14a9'),{'id':_0xc1628d['id'],'customDashboard':_0xc1628d,'crudPermissions':_0x54dc94[_0x3015c5('0xe28')]});}function _0x57097a(_0x4cc505){_0x1a3082['go']('app.dashboards.custom',{'id':_0x4cc505['id']});}function _0xaf62f8(_0x352917,_0x47dca5){const _0x3d1262=_0x577904,_0x1fe1de=_0x3ac3ad[_0x3d1262('0x112e')]()[_0x3d1262('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x3d1262('0x114')](_0x3d1262('0x1238'))+'?')[_0x3d1262('0x93e')](''+(_0x352917['name']||_0x3d1262('0x1238'))+_0x3d1262('0x229e')+_0x3d1262('0x27c7'))[_0x3d1262('0x10bc')](_0x3d1262('0x980'))[_0x3d1262('0x24d0')](_0x47dca5)['ok']('OK')[_0x3d1262('0x1801')](_0x3d1262('0x1d8d'));_0x3ac3ad[_0x3d1262('0x2fa')](_0x1fe1de)[_0x3d1262('0x2788')](function(){_0x545934(_0x352917);},function(){const _0xf3c4fa=_0x3d1262;console[_0xf3c4fa('0x10df')]('CANCEL');});}let _0x59040b=!![],_0x51b423=0x1;_0x109aec[_0x577904('0x1662')](_0x577904('0x1569'),function(_0x4460ba,_0x4a4da9){const _0x5964e3=_0x577904;_0x59040b?_0x2406e6(function(){_0x59040b=![];}):(!_0x4a4da9&&(_0x51b423=_0x54dc94[_0x5964e3('0x135a')][_0x5964e3('0x23f5')]),_0x4460ba!==_0x4a4da9&&(_0x54dc94[_0x5964e3('0x135a')][_0x5964e3('0x23f5')]=0x1),!_0x4460ba&&(_0x54dc94['query'][_0x5964e3('0x23f5')]=_0x51b423),_0x54dc94['getCustomDashboards']());});function _0x3fb2af(_0xefee8f){const _0x5bb2e2=_0x577904;_0x54dc94[_0x5bb2e2('0x87a')]=_0xefee8f||{'count':0x0,'rows':[]};}function _0x449d19(){const _0x372bad=_0x577904;_0x54dc94[_0x372bad('0x135a')][_0x372bad('0x19e')]=(_0x54dc94[_0x372bad('0x135a')][_0x372bad('0x23f5')]-0x1)*_0x54dc94[_0x372bad('0x135a')][_0x372bad('0x68e')],_0x4093a8[_0x372bad('0x1516')]('admin')?_0x54dc94[_0x372bad('0x1808')]=_0x3805de['dashboard'][_0x372bad('0x1335')](_0x54dc94[_0x372bad('0x135a')],_0x3fb2af)[_0x372bad('0x1714')]:(_0x54dc94[_0x372bad('0x135a')]['id']=_0x54dc94[_0x372bad('0x63c')]['id'],_0x54dc94[_0x372bad('0x135a')][_0x372bad('0xb13')]=_0x372bad('0x780'),_0x54dc94[_0x372bad('0x1808')]=_0x3805de['userProfile'][_0x372bad('0xa1')](_0x54dc94[_0x372bad('0x135a')],_0x3fb2af)[_0x372bad('0x1714')]);}function _0x493bc6(_0x19ae12,_0x128c33){const _0x591f13=_0x577904;_0x3ac3ad[_0x591f13('0x2fa')]({'controller':_0x591f13('0xa90'),'controllerAs':'vm','templateUrl':_0x2d417a,'parent':angular[_0x591f13('0x16b1')](_0x5af41e[_0x591f13('0x945')]),'targetEvent':_0x19ae12,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x128c33,'customDashboards':_0x54dc94[_0x591f13('0x87a')]['rows'],'license':_0x54dc94[_0x591f13('0x130d')],'setting':_0x54dc94[_0x591f13('0x1af0')],'crudPermissions':_0x54dc94['crudPermissions']}});}function _0x545934(_0x38a371){const _0x310f79=_0x577904;_0x3805de[_0x310f79('0x19f4')][_0x310f79('0x17c4')]({'id':_0x38a371['id']})[_0x310f79('0x1714')][_0x310f79('0x2788')](function(){const _0x109a48=_0x310f79;_0x283545()['remove'](_0x54dc94[_0x109a48('0x87a')][_0x109a48('0x25df')],{'id':_0x38a371['id']}),_0x54dc94[_0x109a48('0x87a')][_0x109a48('0x338')]-=0x1,!_0x54dc94['customDashboards']['rows']['length']&&_0x54dc94[_0x109a48('0x22ed')](),_0x56a17e['success']({'title':_0x283545()[_0x109a48('0x114')](_0x109a48('0x1656'))+_0x109a48('0x20db'),'msg':_0x38a371[_0x109a48('0x1a8d')]?_0x38a371[_0x109a48('0x1a8d')]+_0x109a48('0x14d4'):''});})['catch'](function(_0x49bdbd){const _0x4b66ae=_0x310f79;if(_0x49bdbd[_0x4b66ae('0x11fc')]&&_0x49bdbd[_0x4b66ae('0x11fc')][_0x4b66ae('0x25be')]&&_0x49bdbd['data'][_0x4b66ae('0x25be')][_0x4b66ae('0x2566')]){_0x54dc94[_0x4b66ae('0x25be')]=_0x49bdbd[_0x4b66ae('0x11fc')][_0x4b66ae('0x25be')]||[{'message':_0x49bdbd[_0x4b66ae('0x17df')](),'type':'SYSTEM:DELETEdashboard'}];for(let _0x2f2c10=0x0;_0x2f2c10<_0x49bdbd[_0x4b66ae('0x11fc')][_0x4b66ae('0x25be')][_0x4b66ae('0x2566')];_0x2f2c10++){_0x56a17e[_0x4b66ae('0x5e8')]({'title':_0x49bdbd[_0x4b66ae('0x11fc')][_0x4b66ae('0x25be')][_0x2f2c10][_0x4b66ae('0x1d7')],'msg':_0x49bdbd[_0x4b66ae('0x11fc')]['errors'][_0x2f2c10][_0x4b66ae('0x15e2')]});}}else _0x56a17e[_0x4b66ae('0x5e8')]({'title':_0x49bdbd['status']?_0x4b66ae('0x15d1')+_0x49bdbd[_0x4b66ae('0x1b51')]+_0x4b66ae('0x1b0b')+_0x49bdbd['statusText']:_0x4b66ae('0x25a'),'msg':_0x49bdbd['data']?JSON[_0x4b66ae('0x1be0')](_0x49bdbd[_0x4b66ae('0x11fc')][_0x4b66ae('0x15e2')]):_0x49bdbd[_0x4b66ae('0x15e2')]||_0x49bdbd[_0x4b66ae('0x17df')]()});});}function _0x5c5527(){const _0x100321=_0x577904,_0x35b46d=angular[_0x100321('0x2669')](_0x54dc94[_0x100321('0x140')]);return _0x54dc94[_0x100321('0x140')]=[],_0x35b46d;}function _0x5c775d(_0x3ad907){const _0x382ae6=_0x577904,_0x27958c=_0x3ac3ad['confirm']()['title'](_0x382ae6('0x8b9'))['htmlContent'](_0x382ae6('0x1670')+_0x54dc94[_0x382ae6('0x140')]['length']+_0x382ae6('0xbd')+_0x382ae6('0x27c7'))[_0x382ae6('0x10bc')](_0x382ae6('0xa8a'))['targetEvent'](_0x3ad907)['ok']('OK')[_0x382ae6('0x1801')](_0x382ae6('0x1d8d'));_0x3ac3ad['show'](_0x27958c)[_0x382ae6('0x2788')](function(){const _0xdc1e12=_0x382ae6;_0x54dc94[_0xdc1e12('0x140')][_0xdc1e12('0x1534')](function(_0x59fb61){_0x545934(_0x59fb61);}),_0x54dc94[_0xdc1e12('0x140')]=[];});}function _0x33f3fd(){const _0x14f558=_0x577904;_0x54dc94[_0x14f558('0x140')]=[];}function _0x5bba35(){const _0x450a59=_0x577904;_0x54dc94[_0x450a59('0x140')]=_0x54dc94[_0x450a59('0x87a')][_0x450a59('0x25df')];}}const _0xb20051=_0x74d646;_0x38741d['$inject']=[_0x34e79e('0x123b'),'$state',_0x34e79e('0xd57'),_0x34e79e('0x519'),'customDashboard',_0x34e79e('0x87a'),_0x34e79e('0x1a5c')];function _0x38741d(_0xc4871f,_0x2d4fe4,_0x337e29,_0x25f21f,_0x9e7856,_0x557a56,_0x57825a){const _0x4200bd=_0x34e79e,_0x2915b3=this;_0x2915b3[_0x4200bd('0x1db3')]=!![],_0x2915b3[_0x4200bd('0x1238')]=angular[_0x4200bd('0x2669')](_0x9e7856),_0x2915b3[_0x4200bd('0x87a')]=_0x557a56,_0x2915b3['title']=_0x57825a[_0x4200bd('0x1b11')]('TOOLS.CLONE_CUSTOMDASHBOARD');_0x9e7856&&_0x9e7856[_0x4200bd('0x1a8d')]&&(_0x2915b3[_0x4200bd('0x14e4')]+=':\x20'+_0x9e7856[_0x4200bd('0x1a8d')]);_0x2915b3[_0x4200bd('0x1936')]=_0x32b7e2,_0x2915b3['closeDialog']=_0x4965f0;function _0x32b7e2(){const _0x2fceb7=_0x4200bd;return _0x25f21f[_0x2fceb7('0x19f4')][_0x2fceb7('0x1b8')]({'id':_0x9e7856['id'],'includeAll':!![]},_0x2915b3['customDashboard'])[_0x2fceb7('0x1714')][_0x2fceb7('0x2788')](function(_0x145004){const _0x1a12d=_0x2fceb7;_0x2915b3[_0x1a12d('0x87a')][_0x1a12d('0xc51')](_0x145004[_0x1a12d('0x1cbf')]()),_0x337e29[_0x1a12d('0x173b')]({'title':'CustomDashboard\x20properly\x20cloned','msg':_0x2915b3[_0x1a12d('0x1238')][_0x1a12d('0x1a8d')]?_0x2915b3[_0x1a12d('0x1238')][_0x1a12d('0x1a8d')]+_0x1a12d('0xd03'):''}),_0x2d4fe4['go']('app.tools.customDashboards.edit',{'id':_0x145004['id']}),_0x4965f0(_0x145004);})[_0x2fceb7('0x1cb5')](function(_0x235e57){const _0x51a22d=_0x2fceb7;if(_0x235e57[_0x51a22d('0x11fc')]&&_0x235e57[_0x51a22d('0x11fc')][_0x51a22d('0x25be')]&&_0x235e57[_0x51a22d('0x11fc')][_0x51a22d('0x25be')][_0x51a22d('0x2566')]){_0x2915b3[_0x51a22d('0x25be')]=_0x235e57[_0x51a22d('0x11fc')][_0x51a22d('0x25be')]||[{'message':_0x235e57[_0x51a22d('0x17df')](),'type':_0x51a22d('0x1ba5')}];for(let _0x51d39a=0x0;_0x51d39a<_0x235e57['data']['errors'][_0x51a22d('0x2566')];_0x51d39a+=0x1){_0x337e29['error']({'title':_0x235e57[_0x51a22d('0x11fc')]['errors'][_0x51d39a]['type'],'msg':_0x235e57[_0x51a22d('0x11fc')][_0x51a22d('0x25be')][_0x51d39a]['message']});}}else _0x337e29[_0x51a22d('0x5e8')]({'title':_0x235e57[_0x51a22d('0x1b51')]?_0x51a22d('0x15d1')+_0x235e57[_0x51a22d('0x1b51')]+_0x51a22d('0x1b0b')+_0x235e57['statusText']:_0x51a22d('0x1ba5'),'msg':_0x235e57[_0x51a22d('0x11fc')]?JSON['stringify'](_0x235e57[_0x51a22d('0x11fc')][_0x51a22d('0x15e2')]):_0x235e57[_0x51a22d('0x17df')]()});});}function _0x4965f0(_0x106435){_0xc4871f['hide'](_0x106435);}}const _0x1319cf=_0x38741d,_0x33d6bc=_0x18dd13['p']+_0x34e79e('0x2623');_0xadccb5[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x519')];function _0xadccb5(_0x14a7a9,_0x57c56c,_0x189d84,_0x2d845d,_0x248b87){const _0x51d72a=_0x34e79e,_0x4a398f=this;_0x4a398f[_0x51d72a('0x1238')]={},_0x4a398f[_0x51d72a('0x135')]=_0x248b87[_0x51d72a('0x1bfc')]['getVoiceQueues']({'fields':'id,name'}),_0x4a398f[_0x51d72a('0x24eb')]=_0x17409e,_0x4a398f[_0x51d72a('0x692')]=_0x3fe8f3,_0x4a398f[_0x51d72a('0x1d80')]=_0x32a8df;function _0x17409e(_0x2cf2cf,_0x4fce46){const _0x248b2b=_0x51d72a;return _0x4a398f[_0x248b2b('0xe28')]=typeof _0x4fce46!==_0x248b2b('0xedb')?_0x4fce46:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a398f[_0x248b2b('0x1238')]=_0x2cf2cf,_0x4a398f[_0x248b2b('0x1238')]['draggable']={'enabled':!![],'handle':_0x248b2b('0x506'),'stop':_0x1d928f},_0x4a398f[_0x248b2b('0x1238')]['resizable']={'enabled':!![],'handle':'.resizable','stop':_0x1d928f},_0x4a398f[_0x248b2b('0x1238')][_0x248b2b('0x25ee')]=[],_0x248b87[_0x248b2b('0x19f4')][_0x248b2b('0x22ae')]({'id':_0x2cf2cf['id']})['$promise'][_0x248b2b('0x2788')](function(_0x4082ee){const _0x37277c=_0x248b2b;if(_0x4082ee&&_0x4082ee[_0x37277c('0x338')]&&_0x4082ee[_0x37277c('0x25df')])for(let _0x3fbc8f=0x0;_0x3fbc8f<_0x4082ee[_0x37277c('0x25df')]['length'];_0x3fbc8f+=0x1){_0x4082ee[_0x37277c('0x25df')][_0x3fbc8f]['voiceQueues']=_0x4a398f[_0x37277c('0x135')],_0x4082ee[_0x37277c('0x25df')][_0x3fbc8f]['voiceQueuesSelected']=_0x283545()['map'](_0x4a398f[_0x37277c('0x135')][_0x37277c('0x25df')],'id'),_0x4082ee[_0x37277c('0x25df')][_0x3fbc8f]['templateUrl']='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x4082ee['rows'][_0x3fbc8f][_0x37277c('0x1d7')]+_0x37277c('0x1b14')+_0x4082ee[_0x37277c('0x25df')][_0x3fbc8f][_0x37277c('0x1d7')]+_0x37277c('0x34e'),_0x4a398f[_0x37277c('0x1238')][_0x37277c('0x25ee')][_0x37277c('0x13e3')](_0x4082ee[_0x37277c('0x25df')][_0x3fbc8f]);}})[_0x248b2b('0x1cb5')](function(_0x46ee6e){const _0x38bffa=_0x248b2b;console[_0x38bffa('0x5e8')](_0x46ee6e);});}function _0x3fe8f3(_0x1f37b0){const _0x2329e2=_0x51d72a;if(_0x1f37b0&&_0x1f37b0[_0x2329e2('0xa10')])for(let _0x55e4a8=0x0;_0x55e4a8<_0x1f37b0[_0x2329e2('0xa10')][_0x2329e2('0x2566')];_0x55e4a8+=0x1){_0x1f37b0[_0x2329e2('0xa10')][_0x55e4a8]['name']===_0x2329e2('0x103d')&&(_0x1f37b0[_0x2329e2('0xbe6')]=_0x1f37b0[_0x2329e2('0xa10')][_0x55e4a8][_0x2329e2('0x1d7')]),_0x1f37b0[_0x1f37b0[_0x2329e2('0xa10')][_0x55e4a8][_0x2329e2('0x1a8d')]]=_0x1f37b0[_0x2329e2('0xa10')][_0x55e4a8]['value'];}_0x14a7a9[_0x2329e2('0x2fa')]({'controller':_0x2329e2('0x14cc'),'controllerAs':'vm','templateUrl':_0x33d6bc,'parent':angular['element'](_0x57c56c['body']),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x1f37b0,'dashboard':_0x4a398f[_0x2329e2('0x1238')]['widgets'],'license':null,'setting':null,'crudPermissions':_0x4a398f[_0x2329e2('0xe28')]}})[_0x2329e2('0x2788')](function(_0x3d2f91){const _0x71cfd3=_0x2329e2;if(_0x3d2f91)for(let _0xaa266b=0x0;_0xaa266b<_0x4a398f[_0x71cfd3('0x1238')]['widgets'][_0x71cfd3('0x2566')];_0xaa266b+=0x1){_0x4a398f[_0x71cfd3('0x1238')][_0x71cfd3('0x25ee')][_0xaa266b]['id']===_0x3d2f91['id']&&(_0x4a398f[_0x71cfd3('0x1238')]['widgets'][_0xaa266b][_0x71cfd3('0xa10')]=_0x3d2f91[_0x71cfd3('0xa10')],_0x4a398f[_0x71cfd3('0x1238')]['widgets'][_0xaa266b][_0x71cfd3('0x135')]=_0x4a398f[_0x71cfd3('0x135')],_0x4a398f[_0x71cfd3('0x1238')][_0x71cfd3('0x25ee')][_0xaa266b]['voiceQueuesSelected']=_0x283545()[_0x71cfd3('0x155d')](_0x4a398f[_0x71cfd3('0x135')][_0x71cfd3('0x25df')],'id'),_0x4a398f[_0x71cfd3('0x1238')]['widgets'][_0xaa266b]['templateUrl']=_0x71cfd3('0xbf7')+_0x4a398f[_0x71cfd3('0x1238')][_0x71cfd3('0x25ee')][_0xaa266b][_0x71cfd3('0x1d7')]+_0x71cfd3('0x1b14')+_0x4a398f[_0x71cfd3('0x1238')][_0x71cfd3('0x25ee')][_0xaa266b][_0x71cfd3('0x1d7')]+_0x71cfd3('0x34e'));}});}function _0x32a8df(_0x18bc47){const _0x109233=_0x51d72a,_0x21d522=_0x14a7a9[_0x109233('0x112e')]()[_0x109233('0x14e4')](_0x109233('0x23d9')+_0x18bc47[_0x109233('0x14e4')]+'?')[_0x109233('0x1a95')]('')[_0x109233('0x10bc')]('Delete\x20Widget')['ok']('YES')[_0x109233('0x1801')]('NO');_0x14a7a9[_0x109233('0x2fa')](_0x21d522)[_0x109233('0x2788')](function(){const _0x5d714f=_0x109233;return _0x248b87[_0x5d714f('0x215b')][_0x5d714f('0x17c4')]({'id':_0x18bc47['id']})['$promise'][_0x5d714f('0x2788')](function(){const _0x36e5e7=_0x5d714f;_0x283545()['remove'](_0x4a398f['customDashboard']['widgets'],{'id':_0x18bc47['id']}),_0x2d845d['success']({'title':_0x36e5e7('0x666'),'msg':_0x18bc47[_0x36e5e7('0x1a8d')]?_0x18bc47[_0x36e5e7('0x1a8d')]+_0x36e5e7('0x14d4'):_0x36e5e7('0x24ee')});})[_0x5d714f('0x1cb5')](function(_0x2367bf){const _0x56d254=_0x5d714f;if(_0x2367bf['data']&&_0x2367bf[_0x56d254('0x11fc')][_0x56d254('0x25be')]&&_0x2367bf['data'][_0x56d254('0x25be')][_0x56d254('0x2566')]){_0x4a398f[_0x56d254('0x25be')]=_0x2367bf['data'][_0x56d254('0x25be')]||[{'message':_0x2367bf[_0x56d254('0x17df')](),'type':_0x56d254('0x552')}];for(let _0x4266cd=0x0;_0x4266cd<_0x2367bf['data'][_0x56d254('0x25be')][_0x56d254('0x2566')];_0x4266cd++){_0x2d845d[_0x56d254('0x5e8')]({'title':_0x2367bf['data'][_0x56d254('0x25be')][_0x4266cd][_0x56d254('0x1d7')],'msg':_0x2367bf[_0x56d254('0x11fc')][_0x56d254('0x25be')][_0x4266cd][_0x56d254('0x15e2')]});}}else _0x2d845d['error']({'title':_0x2367bf[_0x56d254('0x1b51')]?'API:'+_0x2367bf[_0x56d254('0x1b51')]+'\x20-\x20'+_0x2367bf[_0x56d254('0x22ce')]:_0x56d254('0x25a'),'msg':_0x2367bf['data']?JSON[_0x56d254('0x1be0')](_0x2367bf[_0x56d254('0x11fc')][_0x56d254('0x15e2')]):_0x2367bf[_0x56d254('0x15e2')]||_0x2367bf[_0x56d254('0x17df')]()});console[_0x56d254('0x5e8')](_0x2367bf);});});}function _0x1d928f(_0xbe8a47,_0x30beb0,_0x2cd643){const _0x30fc2=_0x51d72a;return _0x248b87[_0x30fc2('0x215b')][_0x30fc2('0x2740')](_0x2cd643)[_0x30fc2('0x1714')]['catch'](function(_0x2dcb2c){const _0x15a471=_0x30fc2;console[_0x15a471('0x5e8')](_0x2dcb2c);});}}const _0x54fe90=_0xadccb5,_0x397229=_0x18dd13['p']+_0x34e79e('0x19ff');_0x2e9442['$inject']=[_0x34e79e('0x1701'),'$state','$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x19f4'),_0x34e79e('0x4f1'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x2e9442(_0x8e3f9f,_0x526818,_0xd982a7,_0xb10696,_0x5975e6,_0x17c748,_0x637582,_0x382745,_0x3d8e0e,_0x4f1935,_0x1eb281,_0x226f8b,_0x1d6b4f,_0x16ed70){const _0x2b6879=_0x34e79e,_0x30b86d=this;_0x30b86d[_0x2b6879('0x9cb')]=_0x1eb281['getCurrentUser'](),_0x30b86d[_0x2b6879('0x25be')]=[],_0x30b86d['setting']=_0x1d6b4f,_0x30b86d[_0x2b6879('0x130d')]=_0x226f8b,_0x30b86d[_0x2b6879('0xe28')]=_0x16ed70,_0x30b86d[_0x2b6879('0x1193')]={},_0x30b86d[_0x2b6879('0x18ad')]=_0x30b86d[_0x2b6879('0x1af0')]&&_0x30b86d['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30b86d['title']=_0x2b6879('0xadd'),_0x30b86d[_0x2b6879('0x4f1')]=angular[_0x2b6879('0x2669')](_0x3d8e0e),_0x30b86d[_0x2b6879('0x19f4')]=_0x382745,_0x30b86d[_0x2b6879('0x2100')]=![],_0x30b86d[_0x2b6879('0x220c')]=[],_0x30b86d[_0x2b6879('0x135a')]={'fields':_0x2b6879('0x2622'),'limit':0xa,'page':0x1,'sort':'-updatedAt'};!_0x30b86d[_0x2b6879('0x4f1')]?(_0x30b86d[_0x2b6879('0x4f1')]={'type':'counter','attrUrl':_0x2b6879('0x143f'),'attrHourFormat':_0x2b6879('0x466'),'attrTimezone':_0x2b6879('0x1285'),'attrMetric':_0x2b6879('0x510'),'attrSerie1':_0x2b6879('0x510'),'attrSerie2':_0x2b6879('0x954'),'attrSerie3':_0x2b6879('0x954'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':'#2196f3','background':_0x2b6879('0xe83')},_0x30b86d['title']=_0x2b6879('0x138f'),_0x30b86d['newDashboardItem']=!![]):_0x30b86d[_0x2b6879('0x4f1')][_0x2b6879('0x1d7')]==_0x2b6879('0x1d4a')&&(_0x30b86d[_0x2b6879('0x2204')]=_0x30b86d[_0x2b6879('0x4f1')]['reportType']==='custom'?'analyticCustomReport':_0x2b6879('0x1b5c'),_0x4f1935[_0x30b86d[_0x2b6879('0x2204')]][_0x2b6879('0x1335')]({'fields':'id,name,parent'})['$promise']['then'](function(_0x1e78e8){const _0x33be0b=_0x2b6879;_0x30b86d['currentReport']=_0x283545()[_0x33be0b('0x20e8')](_0x1e78e8['rows'],{'id':_0x30b86d[_0x33be0b('0x4f1')][_0x33be0b('0x103d')]}),_0x30b86d[_0x33be0b('0x4f1')][_0x33be0b('0x148b')]=_0x30b86d[_0x33be0b('0x32d')][_0x33be0b('0x1a8d')],_0x30b86d[_0x33be0b('0x135a')][_0x33be0b('0x1734')]=_0x30b86d[_0x33be0b('0x32d')]['parent'];}));_0x30b86d[_0x2b6879('0x63e')]=_0x56a98a,_0x30b86d[_0x2b6879('0x13d3')]=_0x140d34,_0x30b86d[_0x2b6879('0x5ac')]=_0xf77a95,_0x30b86d[_0x2b6879('0x2601')]=_0xfb2216,_0x30b86d[_0x2b6879('0xb10')]=_0x31cd2a,_0x30b86d[_0x2b6879('0x173')]=_0x50565c,_0x30b86d[_0x2b6879('0x103b')]=_0x50f1e4,_0x30b86d[_0x2b6879('0x1ad8')]=_0x1651cf,_0x30b86d['closeDialog']=_0x474a61,_0x4f1935['analyticTreeReport'][_0x2b6879('0x1335')]({})[_0x2b6879('0x1714')][_0x2b6879('0x2788')](function(_0x89de7f){const _0xe3d0a7=_0x2b6879;_0x30b86d['treeReports']=_0x89de7f[_0xe3d0a7('0x25df')]||[];})[_0x2b6879('0x1cb5')](function(_0x5dc827){const _0x5f5811=_0x2b6879;_0x637582[_0x5f5811('0x5e8')]({'title':_0x5dc827['status']?_0x5f5811('0x15d1')+_0x5dc827[_0x5f5811('0x1b51')]+_0x5f5811('0x1b0b')+_0x5dc827[_0x5f5811('0x22ce')]:_0x5f5811('0x174'),'msg':_0x5dc827['data']?JSON[_0x5f5811('0x1be0')](_0x5dc827[_0x5f5811('0x11fc')]):_0x5dc827[_0x5f5811('0x17df')]()});});const _0x23f7d3=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x2b6879('0x1')}];let _0x1d471c=null;_0x1eb281['hasRole'](_0x2b6879('0xe23'))?_0x4f1935[_0x2b6879('0x2043')][_0x2b6879('0x1335')]({'fields':'id,name,type','sort':_0x2b6879('0x1a8d'),'nolimit':_0x2b6879('0x1001')})[_0x2b6879('0x1714')][_0x2b6879('0x2788')](function(_0xde4093){const _0x51f915=_0x2b6879;_0x30b86d['voiceQueues']=_0xde4093[_0x51f915('0x25df')]||[];})[_0x2b6879('0x1cb5')](function(_0x276464){const _0x2c0d82=_0x2b6879;_0x637582[_0x2c0d82('0x5e8')]({'title':_0x276464[_0x2c0d82('0x1b51')]?'API:'+_0x276464[_0x2c0d82('0x1b51')]+_0x2c0d82('0x1b0b')+_0x276464[_0x2c0d82('0x22ce')]:_0x2c0d82('0x22c9'),'msg':_0x276464[_0x2c0d82('0x11fc')]?JSON[_0x2c0d82('0x1be0')](_0x276464[_0x2c0d82('0x11fc')]):_0x276464[_0x2c0d82('0x17df')]()});}):_0x4f1935['voiceQueue']['get']({'fields':_0x2b6879('0xafa'),'sort':_0x2b6879('0x1a8d'),'nolimit':_0x2b6879('0x1001')})[_0x2b6879('0x1714')][_0x2b6879('0x2788')](function(_0x3f985b){const _0x36f0ae=_0x2b6879;_0x1d471c=_0x3f985b[_0x36f0ae('0x25df')]||[];})[_0x2b6879('0x2788')](function(){const _0x55eae9=_0x2b6879,_0x1af03a=[];for(let _0x3e61db=0x0;_0x3e61db<_0x23f7d3['length'];_0x3e61db++){_0x1af03a[_0x55eae9('0x13e3')](_0x4f1935[_0x55eae9('0xec9')][_0x55eae9('0x1335')]({'userProfileId':_0x30b86d[_0x55eae9('0x9cb')][_0x55eae9('0x237f')],'sectionId':_0x23f7d3[_0x3e61db]['id']})['$promise']);}return _0x5975e6[_0x55eae9('0x1def')](_0x1af03a);})[_0x2b6879('0x2788')](function(_0x2ce96f){const _0x177302=_0x2b6879,_0x51c5fb=_0x283545()[_0x177302('0x155d')](_0x2ce96f,function(_0x8dffac){const _0x3a670d=_0x177302;return _0x8dffac&&_0x8dffac['rows']?_0x8dffac[_0x3a670d('0x25df')][0x0]:null;}),_0x5bf8dc=[];for(let _0x1fdeb1=0x0;_0x1fdeb1<_0x23f7d3[_0x177302('0x2566')];_0x1fdeb1++){const _0x9e67aa=_0x283545()[_0x177302('0x20e8')](_0x51c5fb,[_0x177302('0x201d'),_0x23f7d3[_0x1fdeb1]['id']]);if(_0x9e67aa){if(!_0x9e67aa[_0x177302('0x1c0a')])_0x5bf8dc[_0x177302('0x13e3')](_0x4f1935['userProfileResource'][_0x177302('0x1335')]({'sectionId':_0x9e67aa['id']})[_0x177302('0x1714')]);else{const _0x55c766=[];_0x1d471c['forEach'](function(_0x1b664c){const _0x3992c6=_0x177302;_0x1b664c[_0x3992c6('0x1d7')]===_0x23f7d3[_0x1fdeb1][_0x3992c6('0x1d7')]&&_0x55c766[_0x3992c6('0x13e3')](_0x1b664c);}),_0x5bf8dc[_0x177302('0x13e3')]({'rows':_0x55c766,'count':_0x55c766[_0x177302('0x2566')]});}}}return _0x5975e6[_0x177302('0x1def')](_0x5bf8dc);})['then'](function(_0x1cecb9){const _0x1a0420=_0x2b6879,_0x4244d3=[];let _0x464a94=null;_0x30b86d[_0x1a0420('0x4f1')]&&(_0x464a94=_0x283545()[_0x1a0420('0x20e8')](_0x1d471c,{'id':Number(_0x30b86d['dashboarditem'][_0x1a0420('0x456')])}));for(let _0x59436c=0x0;_0x59436c<_0x1cecb9[_0x1a0420('0x2566')];_0x59436c++){const _0x5a1d36=_0x1cecb9[_0x59436c][_0x1a0420('0x25df')]||[];_0x5a1d36['forEach'](function(_0x5cae5c){const _0x3dc440=_0x1a0420;_0x4244d3[_0x3dc440('0x13e3')](_0x5cae5c);});}_0x464a94&&!_0x283545()[_0x1a0420('0xc5d')](_0x4244d3,[_0x1a0420('0x2707'),_0x464a94['id']])&&_0x1d471c[_0x1a0420('0x1534')](function(_0x41db9f){const _0x498091=_0x1a0420;_0x41db9f['id']===_0x464a94['id']&&(_0x41db9f['canSelect']=![],_0x4244d3[_0x498091('0x13e3')](_0x41db9f));}),_0x30b86d['voiceQueues']=_0x4244d3;})[_0x2b6879('0x1cb5')](function(_0x192a34){const _0x4a0f9f=_0x2b6879;_0x637582['error']({'title':_0x192a34[_0x4a0f9f('0x1b51')]?_0x4a0f9f('0x15d1')+_0x192a34[_0x4a0f9f('0x1b51')]+_0x4a0f9f('0x1b0b')+_0x192a34[_0x4a0f9f('0x22ce')]:_0x4a0f9f('0x19a7'),'msg':_0x192a34['data']?JSON[_0x4a0f9f('0x1be0')](_0x192a34[_0x4a0f9f('0x11fc')]):_0x192a34[_0x4a0f9f('0x17df')]()});});function _0x56a98a(){const _0x21c6e2=_0x2b6879;_0x30b86d['errors']=[],_0x4f1935[_0x21c6e2('0x19f4')]['addItem']({'id':_0x526818[_0x21c6e2('0x4b9')]['id']},_0x30b86d['dashboarditem'])['$promise'][_0x21c6e2('0x2788')](function(_0x4b5fa3){const _0x38d697=_0x21c6e2;_0x30b86d[_0x38d697('0x19f4')][_0x38d697('0xc51')](_0x4b5fa3[_0x38d697('0x1cbf')]()),_0x637582[_0x38d697('0x173b')]({'title':_0x38d697('0x1684'),'msg':_0x30b86d['dashboarditem']['name']?_0x30b86d[_0x38d697('0x4f1')][_0x38d697('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x474a61(_0x4b5fa3);})['catch'](function(_0x2f02dc){const _0x4d5c0d=_0x21c6e2;if(_0x2f02dc[_0x4d5c0d('0x11fc')]&&_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x25be')]&&_0x2f02dc['data'][_0x4d5c0d('0x25be')][_0x4d5c0d('0x2566')]){_0x30b86d[_0x4d5c0d('0x25be')]=_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x25be')]||[{'message':_0x2f02dc[_0x4d5c0d('0x17df')](),'type':_0x4d5c0d('0x190a')}];for(let _0x5e1335=0x0;_0x5e1335<_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x25be')][_0x4d5c0d('0x2566')];_0x5e1335+=0x1){_0x637582[_0x4d5c0d('0x5e8')]({'title':_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x25be')][_0x5e1335][_0x4d5c0d('0x1d7')],'msg':_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x25be')][_0x5e1335][_0x4d5c0d('0x15e2')]});}}else _0x637582[_0x4d5c0d('0x5e8')]({'title':_0x2f02dc[_0x4d5c0d('0x1b51')]?_0x4d5c0d('0x15d1')+_0x2f02dc['status']+_0x4d5c0d('0x1b0b')+_0x2f02dc[_0x4d5c0d('0x22ce')]:'api.dashboardItem.save','msg':_0x2f02dc[_0x4d5c0d('0x11fc')]?JSON[_0x4d5c0d('0x1be0')](_0x2f02dc[_0x4d5c0d('0x11fc')][_0x4d5c0d('0x15e2')]):_0x2f02dc[_0x4d5c0d('0x17df')]()});});}function _0x140d34(){const _0x464df8=_0x2b6879;_0x30b86d[_0x464df8('0x25be')]=[],_0x4f1935[_0x464df8('0x215b')][_0x464df8('0x2740')]({'id':_0x30b86d[_0x464df8('0x4f1')]['id']},_0x30b86d[_0x464df8('0x4f1')])[_0x464df8('0x1714')]['then'](function(_0x144607){const _0x5a7342=_0x464df8,_0x35e7a0=_0x283545()[_0x5a7342('0x20e8')](_0x30b86d['dashboard'],{'id':_0x144607['id']});_0x35e7a0&&_0x283545()[_0x5a7342('0x2503')](_0x35e7a0,_0x283545()['pick'](_0x144607[_0x5a7342('0x1cbf')](),_0x283545()[_0x5a7342('0x2163')](_0x35e7a0))),_0x637582[_0x5a7342('0x173b')]({'title':_0x5a7342('0x764'),'msg':_0x30b86d[_0x5a7342('0x4f1')]['name']?_0x30b86d['dashboarditem'][_0x5a7342('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x474a61(_0x144607);})[_0x464df8('0x1cb5')](function(_0x220d3d){const _0x1b121b=_0x464df8;if(_0x220d3d['data']&&_0x220d3d[_0x1b121b('0x11fc')]['errors']&&_0x220d3d[_0x1b121b('0x11fc')][_0x1b121b('0x25be')]['length']){_0x30b86d['errors']=_0x220d3d['data'][_0x1b121b('0x25be')]||[{'message':_0x220d3d[_0x1b121b('0x17df')](),'type':_0x1b121b('0xb0')}];for(let _0x532ffc=0x0;_0x532ffc<_0x220d3d[_0x1b121b('0x11fc')][_0x1b121b('0x25be')][_0x1b121b('0x2566')];_0x532ffc++){_0x637582[_0x1b121b('0x5e8')]({'title':_0x220d3d[_0x1b121b('0x11fc')]['errors'][_0x532ffc][_0x1b121b('0x1d7')],'msg':_0x220d3d[_0x1b121b('0x11fc')]['errors'][_0x532ffc][_0x1b121b('0x15e2')]});}}else _0x637582[_0x1b121b('0x5e8')]({'title':_0x220d3d['status']?_0x1b121b('0x15d1')+_0x220d3d['status']+_0x1b121b('0x1b0b')+_0x220d3d[_0x1b121b('0x22ce')]:'api.dashboardItem.update','msg':_0x220d3d[_0x1b121b('0x11fc')]?JSON[_0x1b121b('0x1be0')](_0x220d3d[_0x1b121b('0x11fc')][_0x1b121b('0x15e2')]):_0x220d3d['toString']()});});}function _0xf77a95(_0x277397){const _0x1d45e0=_0x2b6879;_0x30b86d[_0x1d45e0('0x25be')]=[];const _0x3cc20f=_0xb10696[_0x1d45e0('0x112e')]()[_0x1d45e0('0x14e4')](_0x1d45e0('0x458'))['content']('The\x20dashboarditem\x20will\x20be\x20deleted.')['ariaLabel'](_0x1d45e0('0x1258'))['ok'](_0x1d45e0('0x2786'))['cancel']('Cancel')[_0x1d45e0('0x24d0')](_0x277397);_0xb10696['show'](_0x3cc20f)['then'](function(){const _0x53449d=_0x1d45e0;_0x4f1935[_0x53449d('0x215b')][_0x53449d('0x17c4')]({'id':_0x30b86d[_0x53449d('0x4f1')]['id']})[_0x53449d('0x1714')][_0x53449d('0x2788')](function(){const _0x58b1c4=_0x53449d;_0x283545()['remove'](_0x30b86d[_0x58b1c4('0x19f4')],{'id':_0x30b86d[_0x58b1c4('0x4f1')]['id']}),_0x637582['success']({'title':_0x58b1c4('0x525'),'msg':(_0x30b86d[_0x58b1c4('0x4f1')][_0x58b1c4('0x1a8d')]||_0x58b1c4('0x4f1'))+'\x20has\x20been\x20deleted!'}),_0x474a61(_0x30b86d[_0x58b1c4('0x4f1')]);})['catch'](function(_0x5ac889){const _0x34ddca=_0x53449d;if(_0x5ac889[_0x34ddca('0x11fc')]&&_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x25be')]&&_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x25be')][_0x34ddca('0x2566')]){_0x30b86d[_0x34ddca('0x25be')]=_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x25be')]||[{'message':_0x5ac889[_0x34ddca('0x17df')](),'type':_0x34ddca('0x27fd')}];for(let _0x928cfb=0x0;_0x928cfb<_0x5ac889['data'][_0x34ddca('0x25be')]['length'];_0x928cfb++){_0x637582[_0x34ddca('0x5e8')]({'title':_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x25be')][_0x928cfb]['type'],'msg':_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x25be')][_0x928cfb][_0x34ddca('0x15e2')]});}}else _0x637582[_0x34ddca('0x5e8')]({'title':_0x5ac889[_0x34ddca('0x1b51')]?_0x34ddca('0x15d1')+_0x5ac889[_0x34ddca('0x1b51')]+_0x34ddca('0x1b0b')+_0x5ac889[_0x34ddca('0x22ce')]:_0x34ddca('0x27fd'),'msg':_0x5ac889[_0x34ddca('0x11fc')]?JSON[_0x34ddca('0x1be0')](_0x5ac889[_0x34ddca('0x11fc')][_0x34ddca('0x15e2')]):_0x5ac889[_0x34ddca('0x15e2')]||_0x5ac889[_0x34ddca('0x17df')]()});});},function(){});}function _0x4fd751(){const _0x5a5b75=_0x2b6879,_0x2ef014={'core':{'multiple':![],'animation':!![],'error':function(_0x50b864){const _0x3577f9=a0_0x14e7;console[_0x3577f9('0x5e8')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x3577f9('0x2385')](_0x50b864));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x5a5b75('0x142a')]};return _0x30b86d[_0x5a5b75('0x9cb')][_0x5a5b75('0xb34')]!=='admin'?_0x4f1935[_0x5a5b75('0xec9')]['get']({'fields':_0x5a5b75('0xe2c'),'userProfileId':_0x30b86d['currentUser']['userProfileId'],'sectionId':0x4b3})[_0x5a5b75('0x1714')][_0x5a5b75('0x2788')](function(_0x40c955){const _0x39d393=_0x5a5b75;return _0x30b86d['userProfileSection']=_0x40c955&&_0x40c955['count']==0x1?_0x40c955[_0x39d393('0x25df')][0x0]:null,_0x2ef014;})[_0x5a5b75('0x1cb5')](function(_0xcc9f2a){const _0x3e6d71=_0x5a5b75;_0x637582[_0x3e6d71('0x5e8')]({'title':_0x3e6d71('0x824'),'msg':_0xcc9f2a[_0x3e6d71('0x15e2')]});}):_0x2ef014;}function _0x26ab59(_0x340ecd){return _0x340ecd?{'loaded':_0x4555d8,'select_node':_0x59781f}:{'loaded':_0x3b029f,'select_node':_0x12a174};}function _0x59781f(_0x37db6e,_0x2224b8){const _0x4757fa=_0x2b6879;_0x30b86d[_0x4757fa('0x4a')][_0x4757fa('0x1270')](!![])[_0x4757fa('0x141a')](),_0x30b86d[_0x4757fa('0x4a')][_0x4757fa('0x1270')](!![])[_0x4757fa('0x1191')](),_0x30b86d[_0x4757fa('0x1a8f')]=_0x2224b8[_0x4757fa('0x1059')],_0x30b86d[_0x4757fa('0x1a8f')][_0x4757fa('0x1d56')]=!![],_0x30b86d['currentPath']=_0x30b86d['treeCustomInstance']['jstree'](!![])['get_path'](_0x30b86d[_0x4757fa('0x1a8f')])[_0x4757fa('0x185f')]('/\x20'),_0x30b86d[_0x4757fa('0x2204')]=_0x4757fa('0x193d'),_0x30b86d[_0x4757fa('0x135a')]['parent']=_0x2224b8['node']['id'],_0x31cd2a();}function _0x12a174(_0x28cd1a,_0x32ef0b){const _0x26f42e=_0x2b6879;_0x30b86d['treeCustomInstance'][_0x26f42e('0x1270')](!![])['deselect_all'](),_0x30b86d[_0x26f42e('0x1a49')][_0x26f42e('0x1270')](!![])['close_all'](),_0x30b86d[_0x26f42e('0x1a8f')]=_0x32ef0b[_0x26f42e('0x1059')],_0x30b86d[_0x26f42e('0x1a8f')]['custom']=![],_0x30b86d['currentPath']=_0x30b86d[_0x26f42e('0x4a')][_0x26f42e('0x1270')](!![])['get_path'](_0x30b86d['currentNode'])[_0x26f42e('0x185f')]('/\x20'),_0x30b86d[_0x26f42e('0x2204')]=_0x26f42e('0x1b5c'),_0x30b86d[_0x26f42e('0x135a')][_0x26f42e('0x1734')]=_0x32ef0b[_0x26f42e('0x1059')]['id'],_0x31cd2a();}function _0x4555d8(){const _0x2dca94=_0x2b6879;if(!_0x30b86d[_0x2dca94('0x2100')]&&_0x30b86d[_0x2dca94('0x2204')]===_0x2dca94('0x193d')){const _0x4b0d58=_0x30b86d[_0x2dca94('0x1a49')][_0x2dca94('0x1270')](!![])['get_node'](_0x30b86d[_0x2dca94('0x135a')][_0x2dca94('0x1734')]);_0x59781f(null,{'node':_0x4b0d58,'selected':_0x4b0d58['id']});}}function _0x3b029f(){const _0x1592b2=_0x2b6879;if(!_0x30b86d[_0x1592b2('0x2100')]&&_0x30b86d[_0x1592b2('0x2204')]===_0x1592b2('0x1b5c')){const _0x4803b5=_0x30b86d[_0x1592b2('0x4a')][_0x1592b2('0x1270')](!![])[_0x1592b2('0x473')](_0x30b86d[_0x1592b2('0x135a')]['parent']);_0x12a174(null,{'node':_0x4803b5,'selected':_0x4803b5['id']});}}function _0x31cd2a(){const _0x12d90c=_0x2b6879;_0x30b86d[_0x12d90c('0x135a')]['offset']=(_0x30b86d['query']['page']-0x1)*_0x30b86d[_0x12d90c('0x135a')]['limit'];if(_0x30b86d['apiName']){if(_0x30b86d[_0x12d90c('0x9cb')][_0x12d90c('0xb34')]===_0x12d90c('0xe23'))_0x30b86d[_0x12d90c('0x1808')]=_0x4f1935[_0x30b86d['apiName']][_0x12d90c('0x1335')](_0x30b86d['query'],_0x10eeb4)[_0x12d90c('0x1714')];else{if(!_0x30b86d[_0x12d90c('0xec9')])return _0x10eeb4(null);else{if(_0x30b86d['userProfileSection'][_0x12d90c('0x1c0a')])_0x30b86d['promise']=_0x4f1935[_0x30b86d[_0x12d90c('0x2204')]][_0x12d90c('0x1335')](_0x30b86d[_0x12d90c('0x135a')],_0x10eeb4)[_0x12d90c('0x1714')];else{let _0x2e2763=[];_0x30b86d[_0x12d90c('0x1808')]=_0x4f1935[_0x30b86d[_0x12d90c('0x2204')]][_0x12d90c('0x1335')](_0x30b86d[_0x12d90c('0x135a')])['$promise'][_0x12d90c('0x2788')](function(_0x4af2db){const _0x54e514=_0x12d90c;return _0x2e2763=_0x4af2db&&_0x4af2db[_0x54e514('0x25df')]?_0x4af2db[_0x54e514('0x25df')]:[],_0x2e2763[_0x54e514('0x2566')]>0x0?_0x4f1935[_0x54e514('0x1050')][_0x54e514('0x1335')]({'sectionId':_0x30b86d[_0x54e514('0xec9')]['id'],'type':_0x30b86d[_0x54e514('0x2204')]===_0x54e514('0x1b5c')?_0x54e514('0x13da'):'CustomReports'})[_0x54e514('0x1714')][_0x54e514('0x2788')](function(_0x2cb00f){const _0x2c70b4=_0x54e514,_0x1d6bcf=_0x2cb00f&&_0x2cb00f[_0x2c70b4('0x25df')]?_0x2cb00f['rows']:[];if(_0x1d6bcf[_0x2c70b4('0x2566')]>0x0){const _0x1432d2=[];return _0x2e2763['forEach'](function(_0x35efb3){const _0x17751b=_0x2c70b4,_0x3f2192=_0x283545()[_0x17751b('0x20e8')](_0x1d6bcf,[_0x17751b('0x2707'),_0x35efb3['id']]);if(_0x3f2192)_0x1432d2['push'](_0x35efb3);}),_0x10eeb4({'count':_0x1432d2[_0x2c70b4('0x2566')],'rows':_0x1432d2});}else return _0x10eeb4(null);}):_0x10eeb4(null);})[_0x12d90c('0x1cb5')](function(_0x2626fa){const _0x41395b=_0x12d90c;_0x637582[_0x41395b('0x5e8')]({'title':_0x2626fa[_0x41395b('0x1b51')]?_0x41395b('0x15d1')+_0x2626fa['status']+'\x20-\x20'+_0x2626fa[_0x41395b('0x22ce')]:'SYSTEM:GET_REPORTS','msg':_0x2626fa['data']?JSON[_0x41395b('0x1be0')](_0x2626fa[_0x41395b('0x11fc')]):_0x2626fa[_0x41395b('0x17df')]()});});}}}}}function _0x10eeb4(_0x2dd396){const _0x4038d5=_0x2b6879;_0x30b86d[_0x4038d5('0x1d35')]=_0x2dd396||{'count':0x0,'rows':[]},!_0x30b86d['newDashboardItem']&&_0x30b86d[_0x4038d5('0x220c')][_0x4038d5('0x13e3')](_0x283545()[_0x4038d5('0x20e8')](_0x30b86d[_0x4038d5('0x1d35')]['rows'],{'id':_0x30b86d[_0x4038d5('0x32d')]['id']}));}function _0x1651cf(){const _0x5bbb5f=_0x2b6879;_0x30b86d[_0x5bbb5f('0x2345')]=_0x30b86d[_0x5bbb5f('0x1d5c')][0x0]?angular['fromJson'](_0x30b86d[_0x5bbb5f('0x1d5c')][0x0][_0x5bbb5f('0xa49')]):[],_0x30b86d[_0x5bbb5f('0x23d6')]=_0x30b86d[_0x5bbb5f('0x1d5c')][0x1]?angular[_0x5bbb5f('0x2157')](_0x30b86d[_0x5bbb5f('0x1d5c')][0x1][_0x5bbb5f('0xa49')]):[],_0x30b86d['treeConfig']=_0x4fd751(),_0x30b86d[_0x5bbb5f('0x1950')]=_0x26ab59(![]),_0x30b86d[_0x5bbb5f('0x1b83')]=_0x26ab59(!![]),_0xb10696[_0x5bbb5f('0x2fa')]({'controller':function(){return _0x30b86d;},'controllerAs':'vm','templateUrl':_0x397229,'autoWrap':!![],'skipHide':!![]});}function _0x50565c(){const _0x28e4c7=_0x2b6879;_0x30b86d[_0x28e4c7('0x4f1')][_0x28e4c7('0x148b')]=_0x30b86d['selectedReport'][0x0][_0x28e4c7('0x1a8d')],_0x30b86d[_0x28e4c7('0x4f1')][_0x28e4c7('0x103d')]=_0x30b86d[_0x28e4c7('0x220c')][0x0]['id'],_0x30b86d['dashboarditem'][_0x28e4c7('0xbe6')]=_0x30b86d['currentNode'][_0x28e4c7('0x1d56')]?_0x28e4c7('0x1d56'):_0x28e4c7('0x1c15');if(!_0x30b86d[_0x28e4c7('0x2100')]){const _0x1045a8={'name':'attrReport','type':_0x30b86d[_0x28e4c7('0x4f1')]['reportType'],'value':_0x30b86d['selectedReport'][0x0]['id']};_0x30b86d[_0x28e4c7('0x4f1')][_0x28e4c7('0xa10')][_0x28e4c7('0x722')](_0x283545()[_0x28e4c7('0x1855')](_0x30b86d[_0x28e4c7('0x4f1')][_0x28e4c7('0xa10')],0x1,_0x1045a8));}_0x8e3f9f[_0x28e4c7('0x523')]['report'][_0x28e4c7('0x14cf')](),_0xb10696['hide']();}function _0x50f1e4(){const _0x4715ca=_0x2b6879;_0xb10696[_0x4715ca('0x19d')]();}function _0xfb2216(_0x51a745){return _0x51a745===null?undefined:new Date(_0x51a745);}function _0x474a61(_0x5d8827){const _0x55f91c=_0x2b6879;_0xb10696[_0x55f91c('0x19d')](_0x5d8827);}}const _0x506360=_0x2e9442,_0x54f255=_0x18dd13['p']+_0x34e79e('0x134f');_0x104bc3[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x1238'),_0x34e79e('0xec9')];function _0x104bc3(_0x598433,_0x3d6068,_0x194253,_0x1827df,_0x5e68cd,_0x210459,_0xfc955b,_0x2ed0ef,_0x2306a8,_0x24593f,_0x468373,_0x307b01){const _0x5592ac=_0x34e79e,_0x5bc807=this;_0x5bc807[_0x5592ac('0x9cb')]=_0x24593f[_0x5592ac('0x24cc')](),_0x5bc807['license']=_0x210459,_0x5bc807[_0x5592ac('0x1af0')]=_0xfc955b,_0x5bc807[_0x5592ac('0x18ad')]=_0x5bc807['setting'][_0x5592ac('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5bc807[_0x5592ac('0xe9')]=_0x3d6068[_0x5592ac('0x170c')]()+'://'+_0x3d6068[_0x5592ac('0x1c6a')](),_0x5bc807[_0x5592ac('0x1238')]=_0x468373||_0x598433['params'][_0x5592ac('0x1238')]||{},_0x5bc807[_0x5592ac('0xec9')]=_0x307b01&&_0x307b01['count']==0x1?_0x307b01[_0x5592ac('0x25df')][0x0]:null,_0x5bc807[_0x5592ac('0xe28')]=_0x24593f[_0x5592ac('0x157e')](_0x5bc807[_0x5592ac('0xec9')]?_0x5bc807[_0x5592ac('0xec9')][_0x5592ac('0xe28')]:null),_0x5bc807[_0x5592ac('0x1193')]={},_0x5bc807[_0x5592ac('0xcb3')]=_0x598433[_0x5592ac('0x4b9')][_0x5592ac('0x24f6')]||0x0,_0x5bc807[_0x5592ac('0x15fb')]=_0x43e85b,_0x5bc807[_0x5592ac('0x1fc7')]=_0x2c0bc0,_0x5bc807[_0x5592ac('0x204f')]=_0x2306a8[_0x5592ac('0x2276')],_0x5bc807[_0x5592ac('0x11d9')]=_0x251b39,_0x5bc807[_0x5592ac('0x8ec')]=_0x4ef642;function _0x43e85b(_0x532430,_0x5916fc){const _0x24bd6a=_0x5592ac;_0x194253[_0x24bd6a('0x2fa')]({'controller':_0x24bd6a('0x12f1'),'controllerAs':'vm','templateUrl':_0x54f255,'parent':angular[_0x24bd6a('0x16b1')](_0x1827df[_0x24bd6a('0x945')]),'targetEvent':_0x5916fc,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x532430,'customDashboards':_0x5bc807[_0x24bd6a('0x87a')]?_0x5bc807[_0x24bd6a('0x87a')][_0x24bd6a('0x25df')]:[],'crudPermissions':_0x5bc807[_0x24bd6a('0xe28')]}});}function _0x2c0bc0(_0x496e17){const _0x2c2e1c=_0x5592ac;_0x598433['go'](_0x2c2e1c('0x494'),{'id':_0x496e17['id']});}function _0x251b39(){const _0x5c5c4f=_0x5592ac;_0x598433['go'](_0x5c5c4f('0xf93'),{},{'reload':_0x5c5c4f('0xf93')});}function _0x4ef642(){const _0x8d3c6=_0x5592ac;_0x2ed0ef[_0x8d3c6('0x19f4')][_0x8d3c6('0x2740')]({'id':_0x5bc807['customDashboard']['id']},_0x5bc807[_0x8d3c6('0x1238')])[_0x8d3c6('0x1714')]['then'](function(){const _0x5d71b0=_0x8d3c6;_0x2306a8[_0x5d71b0('0x173b')]({'title':_0x5d71b0('0x275'),'msg':_0x5bc807[_0x5d71b0('0x1238')][_0x5d71b0('0x1a8d')]?_0x5bc807[_0x5d71b0('0x1238')][_0x5d71b0('0x1a8d')]+_0x5d71b0('0x6f8'):''});})[_0x8d3c6('0x1cb5')](function(_0x27c767){const _0x3bd2f2=_0x8d3c6;_0x2306a8[_0x3bd2f2('0x5e8')]({'title':_0x27c767[_0x3bd2f2('0x1b51')]?_0x3bd2f2('0x15d1')+_0x27c767[_0x3bd2f2('0x1b51')]+_0x3bd2f2('0x1b0b')+_0x27c767['statusText']:_0x3bd2f2('0x13cb'),'msg':_0x27c767[_0x3bd2f2('0x11fc')]?JSON[_0x3bd2f2('0x1be0')](_0x27c767['data']):_0x27c767[_0x3bd2f2('0x17df')]()});});}}const _0x4eb2a0=_0x104bc3;_0x39d88b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0xec5'),_0x34e79e('0x2630'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x39d88b(_0x4e4fa3,_0x19a416,_0x295270,_0x1bb0e5,_0x20b89f,_0x17a9bd,_0x1516b6,_0x370d7c,_0x4c0840,_0x242690,_0x19ac56,_0x159469,_0x5d6619,_0x2b11ca){const _0x326d33=_0x34e79e,_0x189c03=this;_0x189c03['currentUser']=_0x19ac56[_0x326d33('0x24cc')](),_0x189c03[_0x326d33('0x25be')]=[],_0x189c03['setting']=_0x5d6619,_0x189c03['license']=_0x159469,_0x189c03[_0x326d33('0xe28')]=_0x2b11ca,_0x189c03[_0x326d33('0x1193')]={},_0x189c03[_0x326d33('0x18ad')]=_0x189c03[_0x326d33('0x1af0')]&&_0x189c03[_0x326d33('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x189c03['title']=_0x326d33('0x2f9'),_0x189c03[_0x326d33('0x2630')]=angular[_0x326d33('0x2669')](_0x4c0840),_0x189c03[_0x326d33('0xec5')]=_0x370d7c,_0x189c03['newInterval']=![];!_0x189c03[_0x326d33('0x2630')]&&(_0x189c03[_0x326d33('0x2630')]={},_0x189c03['title']='TOOLS.NEW_INTERVAL',_0x189c03[_0x326d33('0x1f7c')]=!![]);_0x189c03[_0x326d33('0x267f')]=_0x33477a,_0x189c03[_0x326d33('0x2791')]=_0xf7d0f8,_0x189c03[_0x326d33('0x1fe6')]=_0x3eb96b,_0x189c03[_0x326d33('0x2601')]=_0x3a985b,_0x189c03[_0x326d33('0xca7')]=_0x16ae6e;function _0x33477a(){const _0x280a28=_0x326d33;_0x189c03[_0x280a28('0x25be')]=[],_0x242690[_0x280a28('0x2630')]['save'](_0x189c03[_0x280a28('0x2630')])['$promise']['then'](function(_0x59061a){const _0x5dab00=_0x280a28;_0x189c03[_0x5dab00('0xec5')][_0x5dab00('0xc51')](_0x59061a[_0x5dab00('0x1cbf')]()),_0x1516b6[_0x5dab00('0x173b')]({'title':'Interval\x20properly\x20created','msg':_0x189c03['interval'][_0x5dab00('0x1a8d')]?_0x189c03[_0x5dab00('0x2630')]['name']+_0x5dab00('0x1e4a'):''}),_0x16ae6e(_0x59061a);})[_0x280a28('0x1cb5')](function(_0x115254){const _0x599809=_0x280a28;if(_0x115254[_0x599809('0x11fc')]&&_0x115254[_0x599809('0x11fc')][_0x599809('0x25be')]&&_0x115254['data'][_0x599809('0x25be')]['length']){_0x189c03[_0x599809('0x25be')]=_0x115254[_0x599809('0x11fc')][_0x599809('0x25be')]||[{'message':_0x115254[_0x599809('0x17df')](),'type':_0x599809('0x94a')}];for(let _0x21e367=0x0;_0x21e367<_0x115254[_0x599809('0x11fc')][_0x599809('0x25be')][_0x599809('0x2566')];_0x21e367+=0x1){_0x1516b6['error']({'title':_0x115254[_0x599809('0x11fc')][_0x599809('0x25be')][_0x21e367][_0x599809('0x1d7')],'msg':_0x115254[_0x599809('0x11fc')]['errors'][_0x21e367]['message']});}}else _0x1516b6['error']({'title':_0x115254[_0x599809('0x1b51')]?_0x599809('0x15d1')+_0x115254[_0x599809('0x1b51')]+_0x599809('0x1b0b')+_0x115254['statusText']:_0x599809('0x94a'),'msg':_0x115254[_0x599809('0x11fc')]?JSON[_0x599809('0x1be0')](_0x115254['data']['message']):_0x115254[_0x599809('0x17df')]()});});}function _0xf7d0f8(){const _0x47bc98=_0x326d33;_0x189c03['errors']=[],_0x242690[_0x47bc98('0x2630')][_0x47bc98('0x2740')]({'id':_0x189c03[_0x47bc98('0x2630')]['id']},_0x189c03[_0x47bc98('0x2630')])['$promise']['then'](function(_0x5e471f){const _0x2a3d63=_0x47bc98,_0x1c796a=_0x283545()[_0x2a3d63('0x20e8')](_0x189c03[_0x2a3d63('0xec5')],{'id':_0x5e471f['id']});_0x1c796a&&_0x283545()[_0x2a3d63('0x2503')](_0x1c796a,_0x283545()[_0x2a3d63('0x41b')](_0x5e471f[_0x2a3d63('0x1cbf')](),_0x283545()[_0x2a3d63('0x2163')](_0x1c796a))),_0x1516b6[_0x2a3d63('0x173b')]({'title':_0x2a3d63('0xd34'),'msg':_0x189c03[_0x2a3d63('0x2630')][_0x2a3d63('0x1a8d')]?_0x189c03['interval'][_0x2a3d63('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x16ae6e(_0x5e471f);})[_0x47bc98('0x1cb5')](function(_0x3c9c17){const _0x1465ed=_0x47bc98;if(_0x3c9c17['data']&&_0x3c9c17[_0x1465ed('0x11fc')]['errors']&&_0x3c9c17['data'][_0x1465ed('0x25be')][_0x1465ed('0x2566')]){_0x189c03[_0x1465ed('0x25be')]=_0x3c9c17[_0x1465ed('0x11fc')][_0x1465ed('0x25be')]||[{'message':_0x3c9c17['toString'](),'type':_0x1465ed('0xc2d')}];for(let _0x3c38f0=0x0;_0x3c38f0<_0x3c9c17[_0x1465ed('0x11fc')][_0x1465ed('0x25be')][_0x1465ed('0x2566')];_0x3c38f0++){_0x1516b6[_0x1465ed('0x5e8')]({'title':_0x3c9c17[_0x1465ed('0x11fc')][_0x1465ed('0x25be')][_0x3c38f0][_0x1465ed('0x1d7')],'msg':_0x3c9c17[_0x1465ed('0x11fc')]['errors'][_0x3c38f0][_0x1465ed('0x15e2')]});}}else _0x1516b6[_0x1465ed('0x5e8')]({'title':_0x3c9c17['status']?_0x1465ed('0x15d1')+_0x3c9c17[_0x1465ed('0x1b51')]+_0x1465ed('0x1b0b')+_0x3c9c17[_0x1465ed('0x22ce')]:_0x1465ed('0xc2d'),'msg':_0x3c9c17[_0x1465ed('0x11fc')]?JSON[_0x1465ed('0x1be0')](_0x3c9c17[_0x1465ed('0x11fc')][_0x1465ed('0x15e2')]):_0x3c9c17[_0x1465ed('0x17df')]()});});}function _0x3eb96b(_0x264be0){const _0x181f9c=_0x326d33;_0x189c03[_0x181f9c('0x25be')]=[];const _0x5a40f4=_0x1bb0e5[_0x181f9c('0x112e')]()['title']('Are\x20you\x20sure?')[_0x181f9c('0x1c98')]('The\x20interval\x20will\x20be\x20deleted.')[_0x181f9c('0x10bc')](_0x181f9c('0x6c8'))['ok'](_0x181f9c('0x2786'))['cancel']('Cancel')[_0x181f9c('0x24d0')](_0x264be0);_0x1bb0e5[_0x181f9c('0x2fa')](_0x5a40f4)[_0x181f9c('0x2788')](function(){const _0x23479f=_0x181f9c;_0x242690[_0x23479f('0x2630')]['delete']({'id':_0x189c03['interval']['id']})[_0x23479f('0x1714')]['then'](function(){const _0x4e5dad=_0x23479f;_0x283545()[_0x4e5dad('0x1a90')](_0x189c03[_0x4e5dad('0xec5')],{'id':_0x189c03[_0x4e5dad('0x2630')]['id']}),_0x1516b6[_0x4e5dad('0x173b')]({'title':'Interval\x20properly\x20deleted!','msg':(_0x189c03[_0x4e5dad('0x2630')][_0x4e5dad('0x1a8d')]||'interval')+'\x20has\x20been\x20deleted!'}),_0x16ae6e(_0x189c03['interval']);})['catch'](function(_0x1afc1a){const _0x48e886=_0x23479f;if(_0x1afc1a[_0x48e886('0x11fc')]&&_0x1afc1a[_0x48e886('0x11fc')]['errors']&&_0x1afc1a[_0x48e886('0x11fc')][_0x48e886('0x25be')][_0x48e886('0x2566')]){_0x189c03[_0x48e886('0x25be')]=_0x1afc1a[_0x48e886('0x11fc')][_0x48e886('0x25be')]||[{'message':_0x1afc1a[_0x48e886('0x17df')](),'type':'api.interval.delete'}];for(let _0x17d2f1=0x0;_0x17d2f1<_0x1afc1a[_0x48e886('0x11fc')][_0x48e886('0x25be')]['length'];_0x17d2f1++){_0x1516b6['error']({'title':_0x1afc1a['data']['errors'][_0x17d2f1][_0x48e886('0x1d7')],'msg':_0x1afc1a['data'][_0x48e886('0x25be')][_0x17d2f1][_0x48e886('0x15e2')]});}}else _0x1516b6[_0x48e886('0x5e8')]({'title':_0x1afc1a[_0x48e886('0x1b51')]?_0x48e886('0x15d1')+_0x1afc1a[_0x48e886('0x1b51')]+_0x48e886('0x1b0b')+_0x1afc1a[_0x48e886('0x22ce')]:_0x48e886('0x1c0e'),'msg':_0x1afc1a['data']?JSON['stringify'](_0x1afc1a[_0x48e886('0x11fc')][_0x48e886('0x15e2')]):_0x1afc1a[_0x48e886('0x15e2')]||_0x1afc1a['toString']()});});},function(){});}function _0x3a985b(_0x1aacaa){return _0x1aacaa===null?undefined:new Date(_0x1aacaa);}function _0x16ae6e(_0x383c99){const _0x50e7fa=_0x326d33;_0x1bb0e5[_0x50e7fa('0x19d')](_0x383c99);}}const _0x4f97c4=_0x39d88b;_0x3e39fc[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),_0x34e79e('0xec5'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3e39fc(_0x27423e,_0x1c7ad5,_0x3c04ef,_0x236e3b,_0x57dc6b,_0x1afdc2,_0x110136,_0xbccfea,_0x271981,_0xc727ba){const _0x15b052=_0x34e79e,_0x3195b4=this;_0x3195b4[_0x15b052('0x9cb')]=_0x271981[_0x15b052('0x24cc')](),_0x3195b4[_0x15b052('0x25be')]=[],_0x3195b4[_0x15b052('0x14e4')]=_0x15b052('0x2f9'),_0x3195b4[_0x15b052('0x2630')]=angular[_0x15b052('0x2669')](_0x57dc6b),_0x3195b4[_0x15b052('0xec5')]=_0x1afdc2,_0x3195b4[_0x15b052('0x1f7c')]=![],_0x3195b4[_0x15b052('0x2512')]=[_0x15b052('0xc8f'),_0x15b052('0x1d56')],_0x3195b4[_0x15b052('0xe28')]=_0xc727ba,_0x3195b4[_0x15b052('0x1eb8')]=_0x236e3b[_0x15b052('0xec1')](),_0x3195b4[_0x15b052('0x323')]=_0x236e3b['getMonthNumber'](),_0x3195b4[_0x15b052('0xfed')]=_0x236e3b[_0x15b052('0xc35')](),_0x3195b4[_0x15b052('0x1d59')]=_0x236e3b[_0x15b052('0x1b79')]();if(!_0x3195b4[_0x15b052('0x2630')])_0x3195b4[_0x15b052('0x2630')]={'interval':_0x15b052('0x2191')},_0x3195b4[_0x15b052('0x1d7')]=_0x15b052('0xc8f'),_0x3195b4['title']=_0x15b052('0xbee'),_0x3195b4[_0x15b052('0x1f7c')]=!![];else{if(_0x3195b4[_0x15b052('0x2630')]['interval']!==_0x15b052('0x2191')){_0x3195b4[_0x15b052('0x1d7')]=_0x15b052('0x1d56');const _0x21d998=_0x3195b4[_0x15b052('0x2630')][_0x15b052('0x2630')][_0x15b052('0x1497')](','),_0x484062=_0x21d998[0x0],_0x14fa77=_0x21d998[0x1],_0x191d9b=_0x21d998[0x2],_0x13c9c2=_0x21d998[0x3];if(_0x484062!=='*'){const _0xa0cb31=_0x484062['split']('-')[0x0],_0x2727d5=_0x484062[_0x15b052('0x1497')]('-')[0x1];let _0x16b87f;_0x16b87f=new Date(),_0x16b87f['setHours'](Number(_0xa0cb31[_0x15b052('0x1497')](':')[0x0])),_0x16b87f[_0x15b052('0x18d')](Number(_0xa0cb31[_0x15b052('0x1497')](':')[0x1])),_0x3195b4['timeRangeFrom']=_0x16b87f,_0x16b87f=new Date(),_0x16b87f['setHours'](Number(_0x2727d5[_0x15b052('0x1497')](':')[0x0])),_0x16b87f[_0x15b052('0x18d')](Number(_0x2727d5[_0x15b052('0x1497')](':')[0x1])),_0x3195b4[_0x15b052('0x4a7')]=_0x16b87f;}_0x14fa77!=='*'&&(_0x3195b4[_0x15b052('0x240c')]=_0x14fa77[_0x15b052('0x1497')]('-')[0x0],_0x3195b4[_0x15b052('0x6c2')]=_0x14fa77['split']('-')[0x1]),_0x191d9b!=='*'&&(_0x3195b4[_0x15b052('0x1d91')]=_0x191d9b[_0x15b052('0x1497')]('-')[0x0],_0x3195b4['monthDayTo']=_0x191d9b['split']('-')[0x1]),_0x13c9c2!=='*'&&(_0x3195b4[_0x15b052('0x1317')]=_0x13c9c2['split']('-')[0x0],_0x3195b4[_0x15b052('0x3dc')]=_0x13c9c2[_0x15b052('0x1497')]('-')[0x1]);}else _0x3195b4[_0x15b052('0x1d7')]=_0x15b052('0xc8f');}_0x27423e[_0x15b052('0x4b9')]['id']&&!_0x3195b4[_0x15b052('0x2630')]['application']&&(_0x3195b4[_0x15b052('0x2630')][_0x15b052('0x20d0')]=_0x27423e[_0x15b052('0x4b9')]['id']);_0x3195b4[_0x15b052('0x2630')][_0x15b052('0x20d0')]&&_0x3195b4['interval'][_0x15b052('0x193')]&&(_0x3195b4[_0x15b052('0x1d7')]=_0x15b052('0x4b2'));_0x3195b4[_0x15b052('0x267f')]=_0x3895df,_0x3195b4[_0x15b052('0x2791')]=_0x104718,_0x3195b4['closeDialog']=_0x487814;_0x3195b4[_0x15b052('0x2630')][_0x15b052('0x193')]&&(_0x271981[_0x15b052('0x1516')](_0x15b052('0xe23'))?_0xbccfea[_0x15b052('0x2630')]['get']({'fields':_0x15b052('0x27dc'),'IntervalId':_0x15b052('0x954'),'nolimit':!![]})[_0x15b052('0x1714')][_0x15b052('0x2788')](function(_0x487f80){const _0xdf10ea=_0x15b052;_0x3195b4[_0xdf10ea('0xec5')]=_0x487f80[_0xdf10ea('0x25df')]||[];})[_0x15b052('0x1cb5')](function(_0x20e6d6){const _0x457d85=_0x15b052;_0x110136[_0x457d85('0x5e8')]({'title':_0x20e6d6['status']?_0x457d85('0x15d1')+_0x20e6d6['status']+_0x457d85('0x1b0b')+_0x20e6d6[_0x457d85('0x22ce')]:_0x457d85('0x2151'),'msg':_0x20e6d6[_0x457d85('0x11fc')]?JSON[_0x457d85('0x1be0')](_0x20e6d6[_0x457d85('0x11fc')]):_0x20e6d6[_0x457d85('0x17df')]()});}):_0xbccfea[_0x15b052('0x2630')][_0x15b052('0x1335')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x15b052('0x954'),'nolimit':!![]})[_0x15b052('0x1714')][_0x15b052('0x2788')](function(_0xd89420){const _0x52d052=_0x15b052;_0x3195b4['intervals']=_0xd89420[_0x52d052('0x25df')]||[];})['then'](function(){const _0x3f4c10=_0x15b052;return _0xbccfea[_0x3f4c10('0xec9')]['get']({'userProfileId':_0x3195b4[_0x3f4c10('0x9cb')][_0x3f4c10('0x237f')],'sectionId':0x3ec})[_0x3f4c10('0x1714')];})[_0x15b052('0x2788')](function(_0x41a052){const _0xe9d83=_0x15b052,_0x5113c9=_0x41a052&&_0x41a052[_0xe9d83('0x25df')]?_0x41a052[_0xe9d83('0x25df')][0x0]:null;if(!_0x5113c9)_0x3195b4[_0xe9d83('0xec5')]=[];else{if(!_0x5113c9[_0xe9d83('0x1c0a')])return _0xbccfea[_0xe9d83('0x1050')]['get']({'sectionId':_0x5113c9['id']})[_0xe9d83('0x1714')][_0xe9d83('0x2788')](function(_0x40a3c7){const _0x6bd7bc=_0xe9d83,_0x306485=_0x40a3c7&&_0x40a3c7[_0x6bd7bc('0x25df')]?_0x40a3c7['rows']:[],_0x4c3e83=[];let _0x14b18=null;_0x3195b4[_0x6bd7bc('0x2630')]&&(_0x14b18=_0x283545()[_0x6bd7bc('0x20e8')](_0x3195b4[_0x6bd7bc('0xec5')],{'name':_0x3195b4['interval']['IntervalId']})),_0x14b18&&!_0x283545()[_0x6bd7bc('0xc5d')](_0x306485,[_0x6bd7bc('0x2707'),_0x14b18['id']])&&_0x3195b4[_0x6bd7bc('0xec5')][_0x6bd7bc('0x1534')](function(_0x62b224){const _0x2d5595=_0x6bd7bc;_0x62b224['id']===_0x14b18['id']&&(_0x62b224[_0x2d5595('0x3bf')]=![],_0x4c3e83[_0x2d5595('0x13e3')](_0x62b224));}),_0x3195b4[_0x6bd7bc('0xec5')]=_0x4c3e83;});}})[_0x15b052('0x1cb5')](function(_0x1a3077){const _0x2a83d3=_0x15b052;_0x110136[_0x2a83d3('0x5e8')]({'title':_0x1a3077[_0x2a83d3('0x1b51')]?'API:'+_0x1a3077['status']+_0x2a83d3('0x1b0b')+_0x1a3077[_0x2a83d3('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x1a3077['data']?JSON[_0x2a83d3('0x1be0')](_0x1a3077[_0x2a83d3('0x11fc')]):_0x1a3077[_0x2a83d3('0x17df')]()});}));function _0x5123a0(){const _0x263674=_0x15b052;switch(_0x3195b4[_0x263674('0x1d7')]){case _0x263674('0xc8f'):case _0x263674('0x4b2'):return _0x263674('0x2191');case _0x263674('0x1d56'):{const _0x3151cb=[];if(_0x3195b4[_0x263674('0x9c0')]!=='*'&&_0x3195b4['timeRangeFrom']&&_0x3195b4[_0x263674('0x4a7')]){const _0x124963=(_0x3195b4[_0x263674('0x9c0')][_0x263674('0x130a')]()<0xa?'0':'')+_0x3195b4['timeRangeFrom']['getHours']()+':'+((_0x3195b4[_0x263674('0x9c0')][_0x263674('0x2649')]()<0xa?'0':'')+_0x3195b4[_0x263674('0x9c0')][_0x263674('0x2649')]()),_0x208541=(_0x3195b4[_0x263674('0x4a7')][_0x263674('0x130a')]()<0xa?'0':'')+_0x3195b4[_0x263674('0x4a7')][_0x263674('0x130a')]()+':'+((_0x3195b4[_0x263674('0x4a7')]['getMinutes']()<0xa?'0':'')+_0x3195b4[_0x263674('0x4a7')][_0x263674('0x2649')]());_0x3151cb['push'](_0x124963+'-'+_0x208541);}else _0x3151cb[_0x263674('0x13e3')]('*');return _0x3195b4[_0x263674('0x240c')]?_0x3195b4[_0x263674('0x6c2')]?_0x3151cb[_0x263674('0x13e3')](_0x3195b4['dayOfWeekFrom']+'-'+_0x3195b4[_0x263674('0x6c2')]):_0x3151cb[_0x263674('0x13e3')](_0x3195b4['dayOfWeekFrom']):_0x3151cb[_0x263674('0x13e3')]('*'),_0x3195b4['monthDayFrom']?_0x3195b4[_0x263674('0x883')]?_0x3151cb[_0x263674('0x13e3')](_0x3195b4[_0x263674('0x1d91')]+'-'+_0x3195b4[_0x263674('0x883')]):_0x3151cb[_0x263674('0x13e3')](_0x3195b4[_0x263674('0x1d91')]):_0x3151cb[_0x263674('0x13e3')]('*'),_0x3195b4['monthFrom']?_0x3195b4[_0x263674('0x3dc')]?_0x3151cb[_0x263674('0x13e3')](_0x3195b4['monthFrom']+'-'+_0x3195b4['monthTo']):_0x3151cb[_0x263674('0x13e3')](_0x3195b4[_0x263674('0x1317')]):_0x3151cb[_0x263674('0x13e3')]('*'),_0x3151cb[_0x263674('0x185f')]();}}}function _0x3895df(){const _0x429dab=_0x15b052;_0x3195b4['errors']=[],_0x3195b4[_0x429dab('0x2630')][_0x429dab('0x2630')]=_0x5123a0(),_0xbccfea[_0x429dab('0x2630')][_0x429dab('0xbd0')](_0x3195b4[_0x429dab('0x2630')])['$promise'][_0x429dab('0x2788')](function(_0x140450){const _0x6f277e=_0x429dab;_0x3195b4['intervals'][_0x6f277e('0x13e3')](_0x140450),_0x110136['success']({'title':_0x6f277e('0x1146'),'msg':_0x3195b4['interval'][_0x6f277e('0x1a8d')]?_0x3195b4[_0x6f277e('0x2630')][_0x6f277e('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x487814();})[_0x429dab('0x1cb5')](function(_0x171e23){const _0x42a255=_0x429dab;console[_0x42a255('0x5e8')](_0x171e23),_0x3195b4[_0x42a255('0x25be')]=_0x171e23[_0x42a255('0x11fc')][_0x42a255('0x25be')]||[{'message':_0x171e23[_0x42a255('0x17df')](),'type':_0x42a255('0x94a')}];});}function _0x104718(){const _0x4d9343=_0x15b052;_0x3195b4[_0x4d9343('0x25be')]=[],_0x3195b4[_0x4d9343('0x2630')][_0x4d9343('0x2630')]=_0x5123a0(),_0x3195b4[_0x4d9343('0x2630')][_0x4d9343('0x193')]?(_0x3195b4[_0x4d9343('0x1d7')]!=='list'&&(_0x3195b4['interval']['IntervalId']=null),_0x487814(_0x3195b4[_0x4d9343('0x2630')])):_0xbccfea[_0x4d9343('0x2630')][_0x4d9343('0x2740')]({'id':_0x3195b4[_0x4d9343('0x2630')]['id']},_0x3195b4[_0x4d9343('0x2630')])[_0x4d9343('0x1714')][_0x4d9343('0x2788')](function(_0x26a93a){const _0x2d845c=_0x4d9343,_0x532c9e=_0x283545()['find'](_0x3195b4[_0x2d845c('0xec5')],{'id':_0x26a93a['id']});_0x532c9e&&_0x283545()[_0x2d845c('0x2503')](_0x532c9e,_0x26a93a),_0x110136[_0x2d845c('0x173b')]({'title':_0x2d845c('0xd34'),'msg':_0x2d845c('0x14f1')}),_0x487814();})['catch'](function(_0x26cb88){const _0x48d333=_0x4d9343;console[_0x48d333('0x5e8')](_0x26cb88),_0x3195b4['errors']=_0x26cb88[_0x48d333('0x11fc')]['errors']||[{'message':_0x26cb88[_0x48d333('0x17df')](),'type':_0x48d333('0xc2d')}];});}function _0x487814(_0x8f5584){const _0x4dbc7f=_0x15b052;_0x1c7ad5[_0x4dbc7f('0x19d')](_0x8f5584);}}const _0x541dfb=_0x3e39fc,_0x4a0301=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html';_0x5dab07[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'$scope',_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x5dab07(_0x5582ce,_0x1f9bb5,_0x413f63,_0x21e382,_0x262868,_0x4d0225,_0xbe4f0e,_0x207a46,_0x48b9f6,_0x3e372e,_0x2b004d){const _0x30254d=_0x34e79e,_0x17247a=this;_0x17247a[_0x30254d('0x9cb')]=_0x2b004d[_0x30254d('0x24cc')](),_0x17247a['interval']={},_0x17247a['intervalIntervals']={'count':0x0,'rows':[]},_0x17247a[_0x30254d('0x1755')]=[],_0x17247a['crudPermissions'],_0x17247a[_0x30254d('0x770')]={'animation':0x64,'onSort':function(_0x1d9619){const _0x3f895e=_0x30254d;_0x3e372e['interval'][_0x3f895e('0x2db')]({'id':_0x17247a[_0x3f895e('0x2630')]['id']},_0x1d9619['models'])[_0x3f895e('0x1714')][_0x3f895e('0x2788')](function(_0x203574){const _0x2ff4af=_0x3f895e;_0x17247a[_0x2ff4af('0x1673')]['rows']=_0x203574;})[_0x3f895e('0x1cb5')](function(_0x3e3bf8){const _0x4e64a7=_0x3f895e;_0x48b9f6[_0x4e64a7('0x5e8')]({'title':_0x3e3bf8[_0x4e64a7('0x1b51')]?_0x4e64a7('0x15d1')+_0x3e3bf8[_0x4e64a7('0x1b51')]+_0x4e64a7('0x1b0b')+_0x3e3bf8[_0x4e64a7('0x22ce')]:_0x4e64a7('0xfad'),'msg':_0x3e3bf8['data']?JSON['stringify'](_0x3e3bf8[_0x4e64a7('0x11fc')]):_0x3e3bf8[_0x4e64a7('0x17df')]()});});}},_0x17247a[_0x30254d('0x135a')]={'fields':_0x30254d('0x84d'),'nolimit':_0x30254d('0x1001'),'limit':0xa,'page':0x1},_0x17247a[_0x30254d('0x24eb')]=_0x3bb6bb,_0x17247a[_0x30254d('0x16a')]=_0xeb9f63,_0x17247a[_0x30254d('0x173b')]=_0x13b5ce,_0x17247a[_0x30254d('0x196e')]=_0x446075,_0x17247a[_0x30254d('0x1cd1')]=_0x2ae571,_0x17247a[_0x30254d('0xcc5')]=_0x469106,_0x17247a['deleteIntervalInterval']=_0x478d04,_0x17247a['deleteSelectedIntervalIntervals']=_0x1196c5;function _0x3bb6bb(_0x59034a,_0xbee0d8){const _0x3a5395=_0x30254d;_0x17247a['interval']=_0x59034a,_0x17247a[_0x3a5395('0xe28')]=typeof _0xbee0d8!==_0x3a5395('0xedb')?_0xbee0d8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x17247a['sortableTable'][_0x3a5395('0x1112')]=!_0x17247a['crudPermissions']['canEdit']?!![]:![],_0x17247a[_0x3a5395('0x135a')]['id']=_0x17247a['interval']['id'],_0x446075();}function _0xeb9f63(_0x1c06a2,_0x46c508){const _0x4f8721=_0x30254d,_0x531d25=_0xbe4f0e['confirm']()[_0x4f8721('0x14e4')](_0x4f8721('0x94e'))['htmlContent'](''+(_0x1c06a2[_0x4f8721('0x1a8d')]||_0x1c06a2['id']&&_0x283545()['upperFirst'](_0x4f8721('0x2125'))+_0x1c06a2['id']||_0x4f8721('0x2630'))+_0x4f8721('0x229e')+_0x4f8721('0x27c7'))[_0x4f8721('0x10bc')]('delete\x20interval')['targetEvent'](_0x46c508)['ok']('OK')[_0x4f8721('0x1801')](_0x4f8721('0x1d8d'));_0xbe4f0e[_0x4f8721('0x2fa')](_0x531d25)[_0x4f8721('0x2788')](function(){_0x478d04(_0x1c06a2);},function(){const _0x55a7ff=_0x4f8721;console[_0x55a7ff('0x10df')](_0x55a7ff('0x1d8d'));});}function _0x13b5ce(_0x3fbd9c){const _0x4e9e8b=_0x30254d;_0x17247a[_0x4e9e8b('0x1673')]=_0x3fbd9c||{'count':0x0,'rows':[]};}function _0x446075(){const _0x4af181=_0x30254d;_0x17247a['query'][_0x4af181('0x19e')]=(_0x17247a[_0x4af181('0x135a')]['page']-0x1)*_0x17247a[_0x4af181('0x135a')][_0x4af181('0x68e')],_0x17247a[_0x4af181('0x1808')]=_0x3e372e[_0x4af181('0x2630')]['getIntervals'](_0x17247a[_0x4af181('0x135a')],_0x13b5ce)[_0x4af181('0x1714')];}function _0x2ae571(_0x4b1471,_0x44b48d){const _0x23c61e=_0x30254d;_0xbe4f0e['show']({'controller':'EditAppintervalDialogController','controllerAs':'vm','templateUrl':_0x4a0301,'parent':angular['element'](_0x207a46[_0x23c61e('0x945')]),'targetEvent':_0x4b1471,'clickOutsideToClose':!![],'locals':{'interval':_0x44b48d,'intervals':_0x17247a[_0x23c61e('0x1673')][_0x23c61e('0x25df')],'license':null,'setting':null,'crudPermissions':_0x17247a['crudPermissions']}});}function _0x478d04(_0x54dc1b){const _0x5d6b6c=_0x30254d;_0x3e372e[_0x5d6b6c('0x2630')][_0x5d6b6c('0x17c4')]({'id':_0x54dc1b['id']})['$promise'][_0x5d6b6c('0x2788')](function(){const _0x566453=_0x5d6b6c;_0x283545()[_0x566453('0x1a90')](_0x17247a['intervalIntervals'][_0x566453('0x25df')],{'id':_0x54dc1b['id']}),_0x17247a[_0x566453('0x1673')][_0x566453('0x338')]-=0x1,!_0x17247a[_0x566453('0x1673')]['rows']['length']&&_0x446075(),_0x48b9f6[_0x566453('0x173b')]({'title':_0x566453('0x91c'),'msg':_0x54dc1b[_0x566453('0x1a8d')]?_0x54dc1b['name']+_0x566453('0x14d4'):''});})['catch'](function(_0x5e8f4a){const _0x1d05df=_0x5d6b6c;if(_0x5e8f4a[_0x1d05df('0x11fc')]&&_0x5e8f4a['data'][_0x1d05df('0x25be')]&&_0x5e8f4a[_0x1d05df('0x11fc')][_0x1d05df('0x25be')][_0x1d05df('0x2566')]){_0x17247a['errors']=_0x5e8f4a[_0x1d05df('0x11fc')][_0x1d05df('0x25be')]||[{'message':_0x5e8f4a[_0x1d05df('0x17df')](),'type':_0x1d05df('0x9b6')}];for(let _0x1a9b6d=0x0;_0x1a9b6d<_0x5e8f4a[_0x1d05df('0x11fc')][_0x1d05df('0x25be')]['length'];_0x1a9b6d++){_0x48b9f6[_0x1d05df('0x5e8')]({'title':_0x5e8f4a[_0x1d05df('0x11fc')][_0x1d05df('0x25be')][_0x1a9b6d][_0x1d05df('0x1d7')],'msg':_0x5e8f4a['data'][_0x1d05df('0x25be')][_0x1a9b6d][_0x1d05df('0x15e2')]});}}else _0x48b9f6[_0x1d05df('0x5e8')]({'title':_0x5e8f4a[_0x1d05df('0x1b51')]?'API:'+_0x5e8f4a[_0x1d05df('0x1b51')]+_0x1d05df('0x1b0b')+_0x5e8f4a[_0x1d05df('0x22ce')]:_0x1d05df('0x9b6'),'msg':_0x5e8f4a[_0x1d05df('0x11fc')]?JSON['stringify'](_0x5e8f4a[_0x1d05df('0x11fc')][_0x1d05df('0x15e2')]):_0x5e8f4a[_0x1d05df('0x15e2')]||_0x5e8f4a[_0x1d05df('0x17df')]()});});}function _0x469106(){const _0x1b6e14=_0x30254d,_0x12d0e1=angular[_0x1b6e14('0x2669')](_0x17247a[_0x1b6e14('0x1755')]);return _0x17247a[_0x1b6e14('0x1755')]=[],_0x12d0e1;}function _0x1196c5(_0xb38170){const _0x5b149c=_0x30254d,_0x2e1984=_0xbe4f0e[_0x5b149c('0x112e')]()[_0x5b149c('0x14e4')](_0x5b149c('0xd2'))[_0x5b149c('0x93e')](''+_0x17247a[_0x5b149c('0x1755')]['length']+_0x5b149c('0xbd')+'\x20will\x20be\x20deleted.')[_0x5b149c('0x10bc')](_0x5b149c('0x5e2'))['targetEvent'](_0xb38170)['ok']('OK')[_0x5b149c('0x1801')](_0x5b149c('0x1d8d'));_0xbe4f0e[_0x5b149c('0x2fa')](_0x2e1984)[_0x5b149c('0x2788')](function(){_0x17247a['selectedIntervalIntervals']['forEach'](function(_0x1050af){_0x478d04(_0x1050af);}),_0x17247a['selectedIntervalIntervals']=[];});}let _0x419bb7=!![],_0x5bceba=0x1;_0x1f9bb5['$watch'](_0x30254d('0x2571'),function(_0x1f6dc5,_0x2fa5c2){const _0x94e445=_0x30254d;_0x419bb7?_0x4d0225(function(){_0x419bb7=![];}):(!_0x2fa5c2&&(_0x5bceba=_0x17247a[_0x94e445('0x135a')][_0x94e445('0x23f5')]),_0x1f6dc5!==_0x2fa5c2&&(_0x17247a[_0x94e445('0x135a')][_0x94e445('0x23f5')]=0x1),!_0x1f6dc5&&(_0x17247a['query']['page']=_0x5bceba),_0x446075());});}const _0x34e3fc=_0x5dab07;_0x3d0a15[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'interval',_0x34e79e('0xec9')];function _0x3d0a15(_0x303554,_0x19a670,_0x3f35f5,_0xe298b3,_0x56d078,_0x50341f,_0x39c1f5,_0x4c5b35,_0x5258dc,_0x5b452d,_0xe2472a,_0x584a95){const _0x4d8dd7=_0x34e79e,_0xd062a3=this;_0xd062a3[_0x4d8dd7('0x9cb')]=_0x5b452d[_0x4d8dd7('0x24cc')](),_0xd062a3['license']=_0x50341f,_0xd062a3[_0x4d8dd7('0x1af0')]=_0x39c1f5,_0xd062a3[_0x4d8dd7('0x18ad')]=_0xd062a3[_0x4d8dd7('0x1af0')][_0x4d8dd7('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd062a3['location']=_0x19a670[_0x4d8dd7('0x170c')]()+_0x4d8dd7('0x726')+_0x19a670['host'](),_0xd062a3[_0x4d8dd7('0x2630')]=_0xe2472a||_0x303554[_0x4d8dd7('0x4b9')][_0x4d8dd7('0x2630')]||{},_0xd062a3[_0x4d8dd7('0xec9')]=_0x584a95&&_0x584a95[_0x4d8dd7('0x338')]==0x1?_0x584a95[_0x4d8dd7('0x25df')][0x0]:null,_0xd062a3[_0x4d8dd7('0xe28')]=_0x5b452d['parseCrudPermissions'](_0xd062a3[_0x4d8dd7('0xec9')]?_0xd062a3[_0x4d8dd7('0xec9')][_0x4d8dd7('0xe28')]:null),_0xd062a3['hasModulePermissions']={},_0xd062a3[_0x4d8dd7('0xcb3')]=_0x303554[_0x4d8dd7('0x4b9')][_0x4d8dd7('0x24f6')]||0x0,_0xd062a3[_0x4d8dd7('0x204f')]=_0x5258dc['info'],_0xd062a3[_0x4d8dd7('0xf8f')]=_0x289839,_0xd062a3['saveInterval']=_0x365f5e;function _0x289839(){const _0xec3d3e=_0x4d8dd7;_0x303554['go'](_0xec3d3e('0x1da7'),{},{'reload':'app.tools.intervals'});}function _0x365f5e(){const _0x398be5=_0x4d8dd7;_0x4c5b35[_0x398be5('0x2630')][_0x398be5('0x2740')]({'id':_0xd062a3[_0x398be5('0x2630')]['id']},_0xd062a3[_0x398be5('0x2630')])['$promise'][_0x398be5('0x2788')](function(){const _0x494f75=_0x398be5;_0x5258dc[_0x494f75('0x173b')]({'title':_0x494f75('0x20f0'),'msg':_0xd062a3['interval'][_0x494f75('0x1a8d')]?_0xd062a3[_0x494f75('0x2630')]['name']+_0x494f75('0x6f8'):''});})['catch'](function(_0x1072b1){const _0x2bfcec=_0x398be5;_0x5258dc[_0x2bfcec('0x5e8')]({'title':_0x1072b1[_0x2bfcec('0x1b51')]?'API:'+_0x1072b1[_0x2bfcec('0x1b51')]+'\x20-\x20'+_0x1072b1[_0x2bfcec('0x22ce')]:_0x2bfcec('0x9b6'),'msg':_0x1072b1[_0x2bfcec('0x11fc')]?JSON[_0x2bfcec('0x1be0')](_0x1072b1['data']):_0x1072b1[_0x2bfcec('0x17df')]()});});}}const _0x165867=_0x3d0a15,_0x6dd561=_0x18dd13['p']+_0x34e79e('0xaa3');_0x2b75d6[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0xec5'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x2b75d6(_0x23cc30,_0x24a2f5,_0x546253,_0x54c777,_0x2528b8,_0x3e6975,_0x41ce97,_0x2efa98,_0x33172f,_0x1cf945,_0x1af8fd,_0x4cc97d,_0x3cef1d,_0x42795c,_0x213808,_0x22e65b,_0x1a7265){const _0x444e26=_0x34e79e,_0x44332e=this;_0x44332e[_0x444e26('0x130d')]=_0x22e65b,_0x44332e[_0x444e26('0x1af0')]=_0x1a7265,_0x44332e[_0x444e26('0x9cb')]=_0x213808[_0x444e26('0x24cc')](),_0x44332e[_0x444e26('0xec5')]=_0x33172f||{'count':0x0,'rows':[]},_0x44332e[_0x444e26('0x63c')]=_0x1cf945,_0x44332e['userProfileSection']=_0x1af8fd&&_0x1af8fd[_0x444e26('0x338')]==0x1?_0x1af8fd[_0x444e26('0x25df')][0x0]:null,_0x44332e['crudPermissions']=_0x213808['parseCrudPermissions'](_0x44332e[_0x444e26('0xec9')]?_0x44332e[_0x444e26('0xec9')][_0x444e26('0xe28')]:null),_0x44332e[_0x444e26('0x26a9')]=_0x444e26('0xec5'),_0x44332e['listOrder']='',_0x44332e['listOrderAsc']=null,_0x44332e[_0x444e26('0x152f')]=[],_0x44332e[_0x444e26('0x135a')]={'fields':_0x444e26('0x1f79'),'sort':_0x444e26('0x1cee'),'IntervalId':_0x444e26('0x954'),'limit':0xa,'page':0x1},_0x44332e['editstate']=_0x502ea0,_0x44332e[_0x444e26('0x1e5')]=_0x4cd288,_0x44332e[_0x444e26('0x173b')]=_0x3d0e74,_0x44332e['getIntervals']=_0x51e009,_0x44332e[_0x444e26('0xba5')]=_0x30869f,_0x44332e['deleteInterval']=_0x2d6539,_0x44332e[_0x444e26('0xda0')]=_0x153a0b,_0x44332e[_0x444e26('0x1b7b')]=_0x50eddf,_0x44332e[_0x444e26('0x729')]=_0x326530,_0x44332e[_0x444e26('0x1d83')]=_0x5e9fb9;function _0x502ea0(_0x405eae){_0x546253['go']('app.tools.intervals.edit',{'id':_0x405eae['id'],'interval':_0x405eae,'crudPermissions':_0x44332e['crudPermissions']});}function _0x4cd288(_0x11d8a8,_0x51d18a){const _0xd02dd6=_0x444e26,_0x59f62d=_0x2528b8[_0xd02dd6('0x112e')]()[_0xd02dd6('0x14e4')](_0xd02dd6('0x2114')+_0x283545()['startCase'](_0xd02dd6('0x2630'))+'?')[_0xd02dd6('0x93e')](_0xd02dd6('0x1670')+(_0x11d8a8[_0xd02dd6('0x1a8d')]||_0xd02dd6('0x2630'))+''+_0xd02dd6('0x27c7'))[_0xd02dd6('0x10bc')]('delete\x20interval')['targetEvent'](_0x51d18a)['ok']('OK')[_0xd02dd6('0x1801')](_0xd02dd6('0x1d8d'));_0x2528b8['show'](_0x59f62d)[_0xd02dd6('0x2788')](function(){_0x2d6539(_0x11d8a8);},function(){const _0x46e9eb=_0xd02dd6;console[_0x46e9eb('0x10df')](_0x46e9eb('0x1d8d'));});}let _0x28a1b2=!![],_0x4b02fd=0x1;_0x23cc30[_0x444e26('0x1662')](_0x444e26('0x1569'),function(_0x56c007,_0x4f37c8){const _0x5a45c6=_0x444e26;_0x28a1b2?_0x41ce97(function(){_0x28a1b2=![];}):(!_0x4f37c8&&(_0x4b02fd=_0x44332e[_0x5a45c6('0x135a')][_0x5a45c6('0x23f5')]),_0x56c007!==_0x4f37c8&&(_0x44332e['query']['page']=0x1),!_0x56c007&&(_0x44332e[_0x5a45c6('0x135a')][_0x5a45c6('0x23f5')]=_0x4b02fd),_0x44332e[_0x5a45c6('0x1963')]());});function _0x3d0e74(_0x7f141a){const _0x3d1137=_0x444e26;_0x44332e[_0x3d1137('0xec5')]=_0x7f141a||{'count':0x0,'rows':[]};}function _0x51e009(){const _0x8d7ead=_0x444e26;_0x44332e['query']['offset']=(_0x44332e[_0x8d7ead('0x135a')]['page']-0x1)*_0x44332e[_0x8d7ead('0x135a')][_0x8d7ead('0x68e')],_0x213808[_0x8d7ead('0x1516')]('admin')?_0x44332e['promise']=_0x4cc97d['interval'][_0x8d7ead('0x1335')](_0x44332e[_0x8d7ead('0x135a')],_0x3d0e74)['$promise']:(_0x44332e[_0x8d7ead('0x135a')]['id']=_0x44332e[_0x8d7ead('0x63c')]['id'],_0x44332e['query'][_0x8d7ead('0xb13')]=_0x8d7ead('0x1fab'),_0x44332e['promise']=_0x4cc97d[_0x8d7ead('0x63c')]['getResources'](_0x44332e[_0x8d7ead('0x135a')],_0x3d0e74)['$promise']);}function _0x30869f(_0x227e01,_0x25f9b5){const _0x4c14fa=_0x444e26;_0x2528b8[_0x4c14fa('0x2fa')]({'controller':_0x4c14fa('0x21cc'),'controllerAs':'vm','templateUrl':_0x6dd561,'parent':angular['element'](_0x3e6975[_0x4c14fa('0x945')]),'targetEvent':_0x227e01,'clickOutsideToClose':!![],'locals':{'interval':_0x25f9b5,'intervals':_0x44332e[_0x4c14fa('0xec5')][_0x4c14fa('0x25df')],'license':_0x44332e[_0x4c14fa('0x130d')],'setting':_0x44332e['setting'],'crudPermissions':_0x44332e['crudPermissions']}});}function _0x2d6539(_0x26d7c7){const _0x27ef81=_0x444e26;_0x4cc97d['interval'][_0x27ef81('0x17c4')]({'id':_0x26d7c7['id']})[_0x27ef81('0x1714')][_0x27ef81('0x2788')](function(){const _0x37b58f=_0x27ef81;_0x283545()[_0x37b58f('0x1a90')](_0x44332e[_0x37b58f('0xec5')][_0x37b58f('0x25df')],{'id':_0x26d7c7['id']}),_0x44332e[_0x37b58f('0xec5')][_0x37b58f('0x338')]-=0x1,!_0x44332e[_0x37b58f('0xec5')][_0x37b58f('0x25df')]['length']&&_0x44332e[_0x37b58f('0x1963')](),_0x42795c[_0x37b58f('0x173b')]({'title':_0x283545()[_0x37b58f('0x114')](_0x37b58f('0x27dd'))+'\x20deleted!','msg':_0x26d7c7['name']?_0x26d7c7['name']+'\x20has\x20been\x20deleted!':''});})[_0x27ef81('0x1cb5')](function(_0xc43933){const _0x6aa0f9=_0x27ef81;if(_0xc43933[_0x6aa0f9('0x11fc')]&&_0xc43933[_0x6aa0f9('0x11fc')]['errors']&&_0xc43933[_0x6aa0f9('0x11fc')][_0x6aa0f9('0x25be')]['length']){_0x44332e[_0x6aa0f9('0x25be')]=_0xc43933[_0x6aa0f9('0x11fc')][_0x6aa0f9('0x25be')]||[{'message':_0xc43933[_0x6aa0f9('0x17df')](),'type':_0x6aa0f9('0x14ee')}];for(let _0x369d72=0x0;_0x369d72<_0xc43933['data'][_0x6aa0f9('0x25be')][_0x6aa0f9('0x2566')];_0x369d72++){_0x42795c[_0x6aa0f9('0x5e8')]({'title':_0xc43933['data']['errors'][_0x369d72][_0x6aa0f9('0x1d7')],'msg':_0xc43933[_0x6aa0f9('0x11fc')][_0x6aa0f9('0x25be')][_0x369d72][_0x6aa0f9('0x15e2')]});}}else _0x42795c[_0x6aa0f9('0x5e8')]({'title':_0xc43933[_0x6aa0f9('0x1b51')]?_0x6aa0f9('0x15d1')+_0xc43933[_0x6aa0f9('0x1b51')]+_0x6aa0f9('0x1b0b')+_0xc43933['statusText']:_0x6aa0f9('0x14ee'),'msg':_0xc43933[_0x6aa0f9('0x11fc')]?JSON[_0x6aa0f9('0x1be0')](_0xc43933[_0x6aa0f9('0x11fc')]['message']):_0xc43933[_0x6aa0f9('0x15e2')]||_0xc43933[_0x6aa0f9('0x17df')]()});});}function _0x153a0b(){const _0x3efa84=_0x444e26,_0x67108d=angular[_0x3efa84('0x2669')](_0x44332e['selectedIntervals']);return _0x44332e[_0x3efa84('0x152f')]=[],_0x67108d;}function _0x50eddf(_0x4d8e75){const _0x5c5dfd=_0x444e26,_0x28042c=_0x2528b8[_0x5c5dfd('0x112e')]()[_0x5c5dfd('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')['htmlContent'](_0x5c5dfd('0x1670')+_0x44332e[_0x5c5dfd('0x152f')][_0x5c5dfd('0x2566')]+_0x5c5dfd('0xbd')+_0x5c5dfd('0x27c7'))[_0x5c5dfd('0x10bc')](_0x5c5dfd('0x1392'))[_0x5c5dfd('0x24d0')](_0x4d8e75)['ok']('OK')[_0x5c5dfd('0x1801')](_0x5c5dfd('0x1d8d'));_0x2528b8[_0x5c5dfd('0x2fa')](_0x28042c)[_0x5c5dfd('0x2788')](function(){const _0x3647df=_0x5c5dfd;_0x44332e[_0x3647df('0x152f')][_0x3647df('0x1534')](function(_0xbc2122){_0x2d6539(_0xbc2122);}),_0x44332e['selectedIntervals']=[];});}function _0x326530(){_0x44332e['selectedIntervals']=[];}function _0x5e9fb9(){const _0x11794d=_0x444e26;_0x44332e[_0x11794d('0x152f')]=_0x44332e['intervals'][_0x11794d('0x25df')];}}const _0x17692b=_0x2b75d6;_0x3b4081['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x225d'),'pause',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x3b4081(_0x4037f6,_0x35b788,_0x301946,_0x1e50e2,_0xd35eba,_0x941818,_0x3750ab,_0x4cd2c2,_0x2cd0c6,_0x4efa33,_0x2b179e,_0xda5554,_0x50dfa3,_0x1aad2f){const _0x42c790=_0x34e79e,_0x313303=this;_0x313303['currentUser']=_0x2b179e['getCurrentUser'](),_0x313303[_0x42c790('0x25be')]=[],_0x313303['setting']=_0x50dfa3,_0x313303[_0x42c790('0x130d')]=_0xda5554,_0x313303[_0x42c790('0xe28')]=_0x1aad2f,_0x313303[_0x42c790('0x1193')]={},_0x313303[_0x42c790('0x18ad')]=_0x313303[_0x42c790('0x1af0')]&&_0x313303[_0x42c790('0x1af0')][_0x42c790('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x313303['title']=_0x42c790('0x224e'),_0x313303[_0x42c790('0x619')]=angular[_0x42c790('0x2669')](_0x2cd0c6),_0x313303[_0x42c790('0x225d')]=_0x4cd2c2,_0x313303['newPause']=![];!_0x313303[_0x42c790('0x619')]&&(_0x313303[_0x42c790('0x619')]={},_0x313303['title']=_0x42c790('0x261e'),_0x313303[_0x42c790('0x26f')]=!![]);_0x313303[_0x42c790('0x159e')]=_0x3fd9ce,_0x313303['savePause']=_0x538385,_0x313303[_0x42c790('0x1800')]=_0x4c7a59,_0x313303[_0x42c790('0x2601')]=_0x203c85,_0x313303['closeDialog']=_0x2b4d5d;function _0x3fd9ce(){const _0x1d7d42=_0x42c790;_0x313303[_0x1d7d42('0x25be')]=[],_0x4efa33[_0x1d7d42('0x619')][_0x1d7d42('0xbd0')](_0x313303['pause'])['$promise'][_0x1d7d42('0x2788')](function(_0x1f4e41){const _0x3f682b=_0x1d7d42;_0x313303['pauses'][_0x3f682b('0xc51')](_0x1f4e41[_0x3f682b('0x1cbf')]()),_0x3750ab[_0x3f682b('0x173b')]({'title':_0x3f682b('0x24e1'),'msg':_0x313303['pause'][_0x3f682b('0x1a8d')]?_0x313303[_0x3f682b('0x619')][_0x3f682b('0x1a8d')]+_0x3f682b('0x1e4a'):''}),_0x2b4d5d(_0x1f4e41);})['catch'](function(_0x3eb7cd){const _0x4f5cf8=_0x1d7d42;if(_0x3eb7cd[_0x4f5cf8('0x11fc')]&&_0x3eb7cd[_0x4f5cf8('0x11fc')][_0x4f5cf8('0x25be')]&&_0x3eb7cd['data'][_0x4f5cf8('0x25be')][_0x4f5cf8('0x2566')]){_0x313303[_0x4f5cf8('0x25be')]=_0x3eb7cd[_0x4f5cf8('0x11fc')][_0x4f5cf8('0x25be')]||[{'message':_0x3eb7cd[_0x4f5cf8('0x17df')](),'type':_0x4f5cf8('0x105b')}];for(let _0x3c7e31=0x0;_0x3c7e31<_0x3eb7cd[_0x4f5cf8('0x11fc')][_0x4f5cf8('0x25be')][_0x4f5cf8('0x2566')];_0x3c7e31+=0x1){_0x3750ab[_0x4f5cf8('0x5e8')]({'title':_0x3eb7cd['data'][_0x4f5cf8('0x25be')][_0x3c7e31][_0x4f5cf8('0x1d7')],'msg':_0x3eb7cd['data'][_0x4f5cf8('0x25be')][_0x3c7e31][_0x4f5cf8('0x15e2')]});}}else _0x3750ab['error']({'title':_0x3eb7cd[_0x4f5cf8('0x1b51')]?'API:'+_0x3eb7cd[_0x4f5cf8('0x1b51')]+'\x20-\x20'+_0x3eb7cd[_0x4f5cf8('0x22ce')]:_0x4f5cf8('0x105b'),'msg':_0x3eb7cd[_0x4f5cf8('0x11fc')]?JSON[_0x4f5cf8('0x1be0')](_0x3eb7cd['data'][_0x4f5cf8('0x15e2')]):_0x3eb7cd[_0x4f5cf8('0x17df')]()});});}function _0x538385(){const _0x2e031e=_0x42c790;_0x313303[_0x2e031e('0x25be')]=[],_0x4efa33[_0x2e031e('0x619')][_0x2e031e('0x2740')]({'id':_0x313303[_0x2e031e('0x619')]['id']},_0x313303[_0x2e031e('0x619')])[_0x2e031e('0x1714')][_0x2e031e('0x2788')](function(_0xde7a69){const _0x56ffb2=_0x2e031e,_0x4e717b=_0x283545()[_0x56ffb2('0x20e8')](_0x313303[_0x56ffb2('0x225d')],{'id':_0xde7a69['id']});_0x4e717b&&_0x283545()[_0x56ffb2('0x2503')](_0x4e717b,_0x283545()['pick'](_0xde7a69[_0x56ffb2('0x1cbf')](),_0x283545()[_0x56ffb2('0x2163')](_0x4e717b))),_0x3750ab[_0x56ffb2('0x173b')]({'title':'Pause\x20properly\x20saved!','msg':_0x313303[_0x56ffb2('0x619')]['name']?_0x313303[_0x56ffb2('0x619')][_0x56ffb2('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x2b4d5d(_0xde7a69);})['catch'](function(_0x3d1c9e){const _0x22dea1=_0x2e031e;if(_0x3d1c9e[_0x22dea1('0x11fc')]&&_0x3d1c9e['data'][_0x22dea1('0x25be')]&&_0x3d1c9e[_0x22dea1('0x11fc')][_0x22dea1('0x25be')][_0x22dea1('0x2566')]){_0x313303[_0x22dea1('0x25be')]=_0x3d1c9e[_0x22dea1('0x11fc')][_0x22dea1('0x25be')]||[{'message':_0x3d1c9e[_0x22dea1('0x17df')](),'type':_0x22dea1('0x2269')}];for(let _0x2fbf80=0x0;_0x2fbf80<_0x3d1c9e[_0x22dea1('0x11fc')]['errors'][_0x22dea1('0x2566')];_0x2fbf80++){_0x3750ab['error']({'title':_0x3d1c9e[_0x22dea1('0x11fc')]['errors'][_0x2fbf80][_0x22dea1('0x1d7')],'msg':_0x3d1c9e[_0x22dea1('0x11fc')][_0x22dea1('0x25be')][_0x2fbf80][_0x22dea1('0x15e2')]});}}else _0x3750ab[_0x22dea1('0x5e8')]({'title':_0x3d1c9e[_0x22dea1('0x1b51')]?_0x22dea1('0x15d1')+_0x3d1c9e['status']+_0x22dea1('0x1b0b')+_0x3d1c9e[_0x22dea1('0x22ce')]:'api.pause.update','msg':_0x3d1c9e[_0x22dea1('0x11fc')]?JSON['stringify'](_0x3d1c9e[_0x22dea1('0x11fc')][_0x22dea1('0x15e2')]):_0x3d1c9e[_0x22dea1('0x17df')]()});});}function _0x4c7a59(_0x2f8683){const _0x2dbc95=_0x42c790;_0x313303[_0x2dbc95('0x25be')]=[];const _0x63540d=_0x1e50e2[_0x2dbc95('0x112e')]()[_0x2dbc95('0x14e4')]('Are\x20you\x20sure?')[_0x2dbc95('0x1c98')]('The\x20pause\x20will\x20be\x20deleted.')[_0x2dbc95('0x10bc')]('Delete\x20Pause')['ok'](_0x2dbc95('0x2786'))[_0x2dbc95('0x1801')](_0x2dbc95('0x1481'))[_0x2dbc95('0x24d0')](_0x2f8683);_0x1e50e2[_0x2dbc95('0x2fa')](_0x63540d)[_0x2dbc95('0x2788')](function(){const _0x3c159c=_0x2dbc95;_0x4efa33['pause'][_0x3c159c('0x17c4')]({'id':_0x313303['pause']['id']})[_0x3c159c('0x1714')]['then'](function(){const _0x2e5c03=_0x3c159c;_0x283545()['remove'](_0x313303[_0x2e5c03('0x225d')],{'id':_0x313303[_0x2e5c03('0x619')]['id']}),_0x3750ab[_0x2e5c03('0x173b')]({'title':'Pause\x20properly\x20deleted!','msg':(_0x313303[_0x2e5c03('0x619')][_0x2e5c03('0x1a8d')]||'pause')+_0x2e5c03('0x14d4')}),_0x2b4d5d(_0x313303['pause']);})['catch'](function(_0x559f38){const _0x2b9e64=_0x3c159c;if(_0x559f38[_0x2b9e64('0x11fc')]&&_0x559f38['data'][_0x2b9e64('0x25be')]&&_0x559f38['data'][_0x2b9e64('0x25be')][_0x2b9e64('0x2566')]){_0x313303[_0x2b9e64('0x25be')]=_0x559f38[_0x2b9e64('0x11fc')]['errors']||[{'message':_0x559f38[_0x2b9e64('0x17df')](),'type':_0x2b9e64('0x19c8')}];for(let _0x25c60f=0x0;_0x25c60f<_0x559f38[_0x2b9e64('0x11fc')][_0x2b9e64('0x25be')][_0x2b9e64('0x2566')];_0x25c60f++){_0x3750ab[_0x2b9e64('0x5e8')]({'title':_0x559f38[_0x2b9e64('0x11fc')][_0x2b9e64('0x25be')][_0x25c60f][_0x2b9e64('0x1d7')],'msg':_0x559f38['data'][_0x2b9e64('0x25be')][_0x25c60f][_0x2b9e64('0x15e2')]});}}else _0x3750ab[_0x2b9e64('0x5e8')]({'title':_0x559f38[_0x2b9e64('0x1b51')]?_0x2b9e64('0x15d1')+_0x559f38['status']+_0x2b9e64('0x1b0b')+_0x559f38[_0x2b9e64('0x22ce')]:_0x2b9e64('0x19c8'),'msg':_0x559f38[_0x2b9e64('0x11fc')]?JSON[_0x2b9e64('0x1be0')](_0x559f38[_0x2b9e64('0x11fc')]['message']):_0x559f38[_0x2b9e64('0x15e2')]||_0x559f38[_0x2b9e64('0x17df')]()});});},function(){});}function _0x203c85(_0x3d8dc5){return _0x3d8dc5===null?undefined:new Date(_0x3d8dc5);}function _0x2b4d5d(_0x5d8601){const _0x3573a9=_0x42c790;_0x1e50e2[_0x3573a9('0x19d')](_0x5d8601);}}const _0x5d2c8c=_0x3b4081,_0x20352a=_0x18dd13['p']+_0x34e79e('0x200d');_0x43e4e7[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog','$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x225d'),'userProfile',_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),'toasty','Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x43e4e7(_0x374f14,_0x2569fc,_0x585df8,_0x15dcdc,_0x24941c,_0x254f2d,_0x2cdaf3,_0xe228b5,_0x2ed1b0,_0x169932,_0x19e057,_0x2de548,_0xaa692b,_0x5d3436,_0x1e1cf5,_0x2378fa,_0x1c9d48){const _0x4767ed=_0x34e79e,_0x3120e5=this;_0x3120e5[_0x4767ed('0x130d')]=_0x2378fa,_0x3120e5['setting']=_0x1c9d48,_0x3120e5[_0x4767ed('0x9cb')]=_0x1e1cf5[_0x4767ed('0x24cc')](),_0x3120e5[_0x4767ed('0x225d')]=_0x2ed1b0||{'count':0x0,'rows':[]},_0x3120e5[_0x4767ed('0x63c')]=_0x169932,_0x3120e5[_0x4767ed('0xec9')]=_0x19e057&&_0x19e057['count']==0x1?_0x19e057[_0x4767ed('0x25df')][0x0]:null,_0x3120e5[_0x4767ed('0xe28')]=_0x1e1cf5[_0x4767ed('0x157e')](_0x3120e5[_0x4767ed('0xec9')]?_0x3120e5[_0x4767ed('0xec9')]['crudPermissions']:null),_0x3120e5[_0x4767ed('0x26a9')]=_0x4767ed('0x225d'),_0x3120e5[_0x4767ed('0x2278')]='',_0x3120e5[_0x4767ed('0x25e2')]=null,_0x3120e5[_0x4767ed('0x23c0')]=[],_0x3120e5['query']={'fields':_0x4767ed('0x1f79'),'sort':_0x4767ed('0x1cee'),'limit':0xa,'page':0x1},_0x3120e5[_0x4767ed('0x23af')]=_0x32529b,_0x3120e5['deleteconfirm']=_0x3d0696,_0x3120e5[_0x4767ed('0x173b')]=_0x5269e4,_0x3120e5['getPauses']=_0x59f087,_0x3120e5[_0x4767ed('0x22d9')]=_0x553b3e,_0x3120e5[_0x4767ed('0x1800')]=_0x849470,_0x3120e5[_0x4767ed('0xc2a')]=_0x481791,_0x3120e5['deleteSelectedPauses']=_0x209669,_0x3120e5['deselectPauses']=_0x3c8881,_0x3120e5[_0x4767ed('0x1843')]=_0x5979d0;function _0x32529b(_0x1e90c9,_0x58b1c2){const _0x52e5f9=_0x4767ed;_0x24941c[_0x52e5f9('0x2fa')]({'controller':_0x52e5f9('0x2802'),'controllerAs':'vm','templateUrl':_0x20352a,'parent':angular[_0x52e5f9('0x16b1')](_0x254f2d[_0x52e5f9('0x945')]),'targetEvent':_0x58b1c2,'clickOutsideToClose':!![],'locals':{'pause':_0x1e90c9,'pauses':_0x3120e5[_0x52e5f9('0x225d')][_0x52e5f9('0x25df')],'license':_0x3120e5[_0x52e5f9('0x130d')],'setting':null,'crudPermissions':_0x3120e5[_0x52e5f9('0xe28')]}});}function _0x3d0696(_0x2193b1,_0x43de8f){const _0x14fa5e=_0x4767ed,_0x5e8731=_0x24941c['confirm']()[_0x14fa5e('0x14e4')](_0x14fa5e('0x2114')+_0x283545()['startCase'](_0x14fa5e('0x619'))+'?')[_0x14fa5e('0x93e')](_0x14fa5e('0x1670')+(_0x2193b1[_0x14fa5e('0x1a8d')]||'pause')+_0x14fa5e('0x229e')+_0x14fa5e('0x27c7'))[_0x14fa5e('0x10bc')]('delete\x20pause')[_0x14fa5e('0x24d0')](_0x43de8f)['ok']('OK')[_0x14fa5e('0x1801')]('CANCEL');_0x24941c[_0x14fa5e('0x2fa')](_0x5e8731)[_0x14fa5e('0x2788')](function(){_0x849470(_0x2193b1);},function(){const _0x1ee965=_0x14fa5e;console[_0x1ee965('0x10df')]('CANCEL');});}let _0x461548=!![],_0x564bb3=0x1;_0x374f14[_0x4767ed('0x1662')]('vm.query.filter',function(_0x24f107,_0x4f081d){const _0x254d35=_0x4767ed;_0x461548?_0x2cdaf3(function(){_0x461548=![];}):(!_0x4f081d&&(_0x564bb3=_0x3120e5[_0x254d35('0x135a')][_0x254d35('0x23f5')]),_0x24f107!==_0x4f081d&&(_0x3120e5['query']['page']=0x1),!_0x24f107&&(_0x3120e5[_0x254d35('0x135a')]['page']=_0x564bb3),_0x3120e5[_0x254d35('0x1eea')]());});function _0x5269e4(_0xc8d42){_0x3120e5['pauses']=_0xc8d42||{'count':0x0,'rows':[]};}function _0x59f087(){const _0x17258b=_0x4767ed;_0x3120e5['query'][_0x17258b('0x19e')]=(_0x3120e5[_0x17258b('0x135a')][_0x17258b('0x23f5')]-0x1)*_0x3120e5[_0x17258b('0x135a')][_0x17258b('0x68e')],_0x1e1cf5[_0x17258b('0x1516')](_0x17258b('0xe23'))?_0x3120e5[_0x17258b('0x1808')]=_0x2de548[_0x17258b('0x619')][_0x17258b('0x1335')](_0x3120e5[_0x17258b('0x135a')],_0x5269e4)[_0x17258b('0x1714')]:(_0x3120e5[_0x17258b('0x135a')]['id']=_0x3120e5[_0x17258b('0x63c')]['id'],_0x3120e5[_0x17258b('0x135a')][_0x17258b('0xb13')]=_0x17258b('0x1ed6'),_0x3120e5[_0x17258b('0x1808')]=_0x2de548[_0x17258b('0x63c')][_0x17258b('0xa1')](_0x3120e5['query'],_0x5269e4)[_0x17258b('0x1714')]);}function _0x553b3e(_0xe28d3f,_0x92dee4){const _0x2227d2=_0x4767ed;_0x24941c['show']({'controller':_0x2227d2('0x2802'),'controllerAs':'vm','templateUrl':_0x20352a,'parent':angular['element'](_0x254f2d['body']),'targetEvent':_0xe28d3f,'clickOutsideToClose':!![],'locals':{'pause':_0x92dee4,'pauses':_0x3120e5[_0x2227d2('0x225d')][_0x2227d2('0x25df')],'license':_0x3120e5[_0x2227d2('0x130d')],'setting':_0x3120e5[_0x2227d2('0x1af0')],'crudPermissions':_0x3120e5['crudPermissions']}});}function _0x849470(_0x1c5612){const _0x6893ab=_0x4767ed;_0x2de548['pause'][_0x6893ab('0x17c4')]({'id':_0x1c5612['id']})[_0x6893ab('0x1714')]['then'](function(){const _0x106bd2=_0x6893ab;_0x283545()[_0x106bd2('0x1a90')](_0x3120e5['pauses'][_0x106bd2('0x25df')],{'id':_0x1c5612['id']}),_0x3120e5[_0x106bd2('0x225d')]['count']-=0x1,!_0x3120e5[_0x106bd2('0x225d')]['rows'][_0x106bd2('0x2566')]&&_0x3120e5[_0x106bd2('0x1eea')](),_0x5d3436[_0x106bd2('0x173b')]({'title':_0x283545()['startCase'](_0x106bd2('0x14f6'))+_0x106bd2('0x20db'),'msg':_0x1c5612[_0x106bd2('0x1a8d')]?_0x1c5612['name']+_0x106bd2('0x14d4'):''});})['catch'](function(_0x5160ff){const _0x124d2e=_0x6893ab;if(_0x5160ff['data']&&_0x5160ff[_0x124d2e('0x11fc')][_0x124d2e('0x25be')]&&_0x5160ff[_0x124d2e('0x11fc')][_0x124d2e('0x25be')][_0x124d2e('0x2566')]){_0x3120e5[_0x124d2e('0x25be')]=_0x5160ff[_0x124d2e('0x11fc')][_0x124d2e('0x25be')]||[{'message':_0x5160ff[_0x124d2e('0x17df')](),'type':_0x124d2e('0x2373')}];for(let _0x110233=0x0;_0x110233<_0x5160ff['data'][_0x124d2e('0x25be')][_0x124d2e('0x2566')];_0x110233++){_0x5d3436[_0x124d2e('0x5e8')]({'title':_0x5160ff[_0x124d2e('0x11fc')]['errors'][_0x110233]['type'],'msg':_0x5160ff[_0x124d2e('0x11fc')][_0x124d2e('0x25be')][_0x110233][_0x124d2e('0x15e2')]});}}else _0x5d3436[_0x124d2e('0x5e8')]({'title':_0x5160ff[_0x124d2e('0x1b51')]?_0x124d2e('0x15d1')+_0x5160ff[_0x124d2e('0x1b51')]+_0x124d2e('0x1b0b')+_0x5160ff[_0x124d2e('0x22ce')]:_0x124d2e('0x2373'),'msg':_0x5160ff['data']?JSON[_0x124d2e('0x1be0')](_0x5160ff['data'][_0x124d2e('0x15e2')]):_0x5160ff['message']||_0x5160ff[_0x124d2e('0x17df')]()});});}function _0x481791(){const _0x221211=_0x4767ed,_0x176ee2=angular['copy'](_0x3120e5[_0x221211('0x23c0')]);return _0x3120e5[_0x221211('0x23c0')]=[],_0x176ee2;}function _0x209669(_0x3d0f6b){const _0x4b2404=_0x4767ed,_0x107058=_0x24941c[_0x4b2404('0x112e')]()[_0x4b2404('0x14e4')](_0x4b2404('0x213'))[_0x4b2404('0x93e')](_0x4b2404('0x1670')+_0x3120e5[_0x4b2404('0x23c0')][_0x4b2404('0x2566')]+_0x4b2404('0xbd')+_0x4b2404('0x27c7'))[_0x4b2404('0x10bc')](_0x4b2404('0x1abf'))[_0x4b2404('0x24d0')](_0x3d0f6b)['ok']('OK')[_0x4b2404('0x1801')](_0x4b2404('0x1d8d'));_0x24941c[_0x4b2404('0x2fa')](_0x107058)['then'](function(){const _0x5bec57=_0x4b2404;_0x3120e5[_0x5bec57('0x23c0')][_0x5bec57('0x1534')](function(_0x46f8e1){_0x849470(_0x46f8e1);}),_0x3120e5['selectedPauses']=[];});}function _0x3c8881(){_0x3120e5['selectedPauses']=[];}function _0x5979d0(){const _0x2dd213=_0x4767ed;_0x3120e5[_0x2dd213('0x23c0')]=_0x3120e5[_0x2dd213('0x225d')][_0x2dd213('0x25df')];}}const _0x5c6662=_0x43e4e7,_0x14db8c=_0x18dd13['p']+_0x34e79e('0xb94');_0x23aff8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state','$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x14b0'),_0x34e79e('0x802'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x23aff8(_0x3602cd,_0x583d3d,_0x15f9bc,_0x59abfe,_0x40ce40,_0x23dce9,_0xf88c50,_0x19b332,_0x4a3456,_0x3d77e5,_0x143e8f,_0x553417,_0x4fc557,_0x2f9cbd){const _0x5eafcd=_0x34e79e,_0x5f2a03=this;_0x5f2a03[_0x5eafcd('0x9cb')]=_0x143e8f[_0x5eafcd('0x24cc')](),_0x5f2a03[_0x5eafcd('0x25be')]=[],_0x5f2a03[_0x5eafcd('0x1af0')]=_0x4fc557,_0x5f2a03['license']=_0x553417,_0x5f2a03[_0x5eafcd('0xe28')]=_0x2f9cbd,_0x5f2a03[_0x5eafcd('0x1193')]={},_0x5f2a03['passwordPattern']=_0x5f2a03[_0x5eafcd('0x1af0')]&&_0x5f2a03[_0x5eafcd('0x1af0')][_0x5eafcd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f2a03[_0x5eafcd('0x14e4')]='TOOLS.EDIT_SCHEDULE',_0x5f2a03['schedule']=angular[_0x5eafcd('0x2669')](_0x4a3456),_0x5f2a03[_0x5eafcd('0x14b0')]=_0x19b332,_0x5f2a03['newSchedule']=![],_0x5f2a03[_0x5eafcd('0x220c')]=[],_0x5f2a03['query']={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':'-updatedAt'};if(!_0x5f2a03[_0x5eafcd('0x802')])_0x5f2a03[_0x5eafcd('0x802')]={'output':'xlsx','active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x5eafcd('0x2305')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x5eafcd('0x1185'),'subtractNumber':0x1,'subtractUnit':_0x5eafcd('0xab5'),'sendMail':![],'sendIfEmpty':!![]},_0x5f2a03[_0x5eafcd('0x14e4')]=_0x5eafcd('0x1588'),_0x5f2a03[_0x5eafcd('0x1259')]=!![];else{_0x5f2a03[_0x5eafcd('0x2204')]=_0x5f2a03[_0x5eafcd('0x802')][_0x5eafcd('0x1a36')]?'analyticDefaultReport':_0x5eafcd('0x193d');const _0x1cc847=_0x5f2a03['schedule'][_0x5eafcd('0x1a36')]?_0x5f2a03[_0x5eafcd('0x802')][_0x5eafcd('0x1a36')]:_0x5f2a03[_0x5eafcd('0x802')][_0x5eafcd('0x220f')];_0x3d77e5[_0x5f2a03[_0x5eafcd('0x2204')]][_0x5eafcd('0x1335')]({'fields':'id,name,parent'})[_0x5eafcd('0x1714')][_0x5eafcd('0x2788')](function(_0x29cfc5){const _0x54ac41=_0x5eafcd;_0x5f2a03[_0x54ac41('0x32d')]=_0x283545()[_0x54ac41('0x20e8')](_0x29cfc5[_0x54ac41('0x25df')],{'id':_0x1cc847}),_0x5f2a03[_0x54ac41('0x802')][_0x54ac41('0x148b')]=_0x5f2a03[_0x54ac41('0x32d')][_0x54ac41('0x1a8d')],_0x5f2a03[_0x54ac41('0x135a')][_0x54ac41('0x1734')]=_0x5f2a03[_0x54ac41('0x32d')]['parent'];});}_0x5f2a03['addNewSchedule']=_0x3f58d3,_0x5f2a03[_0x5eafcd('0x12cd')]=_0xe79e51,_0x5f2a03[_0x5eafcd('0x1a62')]=_0x489cc4,_0x5f2a03[_0x5eafcd('0x2601')]=_0x5e17fe,_0x5f2a03[_0x5eafcd('0xb10')]=_0x32b325,_0x5f2a03['selectReport']=_0x5ae0e0,_0x5f2a03[_0x5eafcd('0x103b')]=_0x36f07d,_0x5f2a03[_0x5eafcd('0x1ad8')]=_0x9255aa,_0x5f2a03['closeDialog']=_0x4dbdcd,_0x3d77e5[_0x5eafcd('0x1dbc')]['get']({})[_0x5eafcd('0x1714')][_0x5eafcd('0x2788')](function(_0x118c45){const _0x26fe1e=_0x5eafcd;_0x5f2a03[_0x26fe1e('0x1d5c')]=_0x118c45[_0x26fe1e('0x25df')]||[];})['catch'](function(_0xc773cd){const _0xb069ac=_0x5eafcd;_0xf88c50[_0xb069ac('0x5e8')]({'title':_0xc773cd['status']?_0xb069ac('0x15d1')+_0xc773cd['status']+_0xb069ac('0x1b0b')+_0xc773cd['statusText']:_0xb069ac('0x174'),'msg':_0xc773cd[_0xb069ac('0x11fc')]?JSON[_0xb069ac('0x1be0')](_0xc773cd[_0xb069ac('0x11fc')]):_0xc773cd[_0xb069ac('0x17df')]()});}),_0x143e8f[_0x5eafcd('0x1516')](_0x5eafcd('0xe23'))?_0x3d77e5['mailAccount'][_0x5eafcd('0x1335')]({'fields':_0x5eafcd('0x1338'),'sort':_0x5eafcd('0x1a8d')})[_0x5eafcd('0x1714')][_0x5eafcd('0x2788')](function(_0x254a5e){const _0x5a0b59=_0x5eafcd;_0x5f2a03[_0x5a0b59('0x1e22')]=_0x254a5e['rows']||[];})[_0x5eafcd('0x1cb5')](function(_0x3eaca5){const _0x29c8d5=_0x5eafcd;_0xf88c50[_0x29c8d5('0x5e8')]({'title':_0x3eaca5[_0x29c8d5('0x1b51')]?_0x29c8d5('0x15d1')+_0x3eaca5[_0x29c8d5('0x1b51')]+_0x29c8d5('0x1b0b')+_0x3eaca5['statusText']:_0x29c8d5('0x1ae'),'msg':_0x3eaca5[_0x29c8d5('0x11fc')]?JSON[_0x29c8d5('0x1be0')](_0x3eaca5[_0x29c8d5('0x11fc')]):_0x3eaca5[_0x29c8d5('0x17df')]()});}):_0x3d77e5[_0x5eafcd('0x2594')][_0x5eafcd('0x1335')]({'fields':_0x5eafcd('0x1338'),'sort':_0x5eafcd('0x1a8d')})['$promise'][_0x5eafcd('0x2788')](function(_0x209255){const _0xe4f3ae=_0x5eafcd;_0x5f2a03[_0xe4f3ae('0x1e22')]=_0x209255[_0xe4f3ae('0x25df')]||[];})[_0x5eafcd('0x2788')](function(){const _0x47b3a5=_0x5eafcd;return _0x3d77e5[_0x47b3a5('0xec9')][_0x47b3a5('0x1335')]({'userProfileId':_0x5f2a03['currentUser'][_0x47b3a5('0x237f')],'sectionId':0x25a})[_0x47b3a5('0x1714')];})[_0x5eafcd('0x2788')](function(_0x3c4682){const _0x464f46=_0x5eafcd,_0x2e462a=_0x3c4682&&_0x3c4682[_0x464f46('0x25df')]?_0x3c4682['rows'][0x0]:null;if(!_0x2e462a){const _0x3bf200=[];let _0x42bcbe=null;_0x5f2a03[_0x464f46('0x802')]&&(_0x42bcbe=_0x283545()['find'](_0x5f2a03[_0x464f46('0x1e22')],{'id':Number(_0x5f2a03[_0x464f46('0x802')]['MailAccountId'])}));for(let _0x3118b1=0x0;_0x3118b1<_0x5f2a03[_0x464f46('0x1e22')]['length'];_0x3118b1++){_0x42bcbe&&_0x5f2a03[_0x464f46('0x1e22')][_0x3118b1]['id']===_0x42bcbe['id']&&(_0x5f2a03[_0x464f46('0x1e22')][_0x3118b1][_0x464f46('0x3bf')]=![],_0x3bf200[_0x464f46('0x13e3')](_0x5f2a03[_0x464f46('0x1e22')][_0x3118b1]));}_0x5f2a03[_0x464f46('0x1e22')]=_0x3bf200;}else{if(!_0x2e462a[_0x464f46('0x1c0a')])return _0x3d77e5[_0x464f46('0x1050')][_0x464f46('0x1335')]({'sectionId':_0x2e462a['id']})[_0x464f46('0x1714')][_0x464f46('0x2788')](function(_0x141088){const _0x5efb03=_0x464f46,_0x32f846=_0x283545()[_0x5efb03('0x155d')](_0x141088['rows'],function(_0x9f9e8a){const _0x4d840d=_0x5efb03;return _0x283545()[_0x4d840d('0x20e8')](_0x5f2a03[_0x4d840d('0x1e22')],{'id':_0x9f9e8a[_0x4d840d('0x2707')]});});let _0x16684d=null;_0x5f2a03[_0x5efb03('0x802')]&&(_0x16684d=_0x283545()[_0x5efb03('0x20e8')](_0x5f2a03[_0x5efb03('0x1e22')],{'id':Number(_0x5f2a03[_0x5efb03('0x802')][_0x5efb03('0x26b2')])}));if(_0x16684d&&!_0x283545()[_0x5efb03('0xc5d')](_0x32f846,['id',_0x16684d['id']])){const _0x18a597=_0x283545()[_0x5efb03('0x20e8')](_0x5f2a03[_0x5efb03('0x1e22')],{'id':_0x16684d['id']});_0x18a597[_0x5efb03('0x3bf')]=![],_0x32f846[_0x5efb03('0x13e3')](_0x18a597);}_0x5f2a03[_0x5efb03('0x1e22')]=_0x32f846;});}})[_0x5eafcd('0x1cb5')](function(_0x15bf38){const _0x5cc876=_0x5eafcd;_0xf88c50[_0x5cc876('0x5e8')]({'title':_0x15bf38[_0x5cc876('0x1b51')]?_0x5cc876('0x15d1')+_0x15bf38[_0x5cc876('0x1b51')]+_0x5cc876('0x1b0b')+_0x15bf38[_0x5cc876('0x22ce')]:'SYSTEM:GETmailAccounts','msg':_0x15bf38['data']?JSON['stringify'](_0x15bf38['data']):_0x15bf38[_0x5cc876('0x17df')]()});});function _0x3f58d3(){const _0x27ef5b=_0x5eafcd;_0x5f2a03[_0x27ef5b('0x25be')]=[],_0x3d77e5['schedule'][_0x27ef5b('0xbd0')](_0x5f2a03['schedule'])['$promise']['then'](function(_0x53df17){const _0x23f165=_0x27ef5b;_0x5f2a03['schedules']['unshift'](_0x53df17[_0x23f165('0x1cbf')]()),_0xf88c50[_0x23f165('0x173b')]({'title':'Schedule\x20properly\x20created','msg':_0x5f2a03[_0x23f165('0x802')][_0x23f165('0x1a8d')]?_0x5f2a03[_0x23f165('0x802')][_0x23f165('0x1a8d')]+_0x23f165('0x1e4a'):''}),_0x4dbdcd(_0x53df17);})[_0x27ef5b('0x1cb5')](function(_0x14c095){const _0xc373a9=_0x27ef5b;if(_0x14c095[_0xc373a9('0x11fc')]&&_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')]&&_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')]['length']){_0x5f2a03[_0xc373a9('0x25be')]=_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')]||[{'message':_0x14c095[_0xc373a9('0x17df')](),'type':_0xc373a9('0x218b')}];for(let _0x480976=0x0;_0x480976<_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')][_0xc373a9('0x2566')];_0x480976+=0x1){_0xf88c50[_0xc373a9('0x5e8')]({'title':_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')][_0x480976][_0xc373a9('0x1d7')],'msg':_0x14c095[_0xc373a9('0x11fc')][_0xc373a9('0x25be')][_0x480976]['message']});}}else _0xf88c50['error']({'title':_0x14c095[_0xc373a9('0x1b51')]?'API:'+_0x14c095[_0xc373a9('0x1b51')]+_0xc373a9('0x1b0b')+_0x14c095['statusText']:'api.schedule.save','msg':_0x14c095['data']?JSON[_0xc373a9('0x1be0')](_0x14c095[_0xc373a9('0x11fc')]['message']):_0x14c095[_0xc373a9('0x17df')]()});});}function _0xe79e51(){const _0x26627b=_0x5eafcd;_0x5f2a03[_0x26627b('0x25be')]=[],_0x3d77e5[_0x26627b('0x802')][_0x26627b('0x2740')]({'id':_0x5f2a03[_0x26627b('0x802')]['id']},_0x5f2a03['schedule'])[_0x26627b('0x1714')]['then'](function(_0x25a518){const _0x2bd439=_0x26627b,_0x14de58=_0x283545()['find'](_0x5f2a03[_0x2bd439('0x14b0')],{'id':_0x25a518['id']});_0x14de58&&_0x283545()[_0x2bd439('0x2503')](_0x14de58,_0x283545()['pick'](_0x25a518[_0x2bd439('0x1cbf')](),_0x283545()[_0x2bd439('0x2163')](_0x14de58))),_0xf88c50[_0x2bd439('0x173b')]({'title':_0x2bd439('0x157b'),'msg':_0x5f2a03[_0x2bd439('0x802')][_0x2bd439('0x1a8d')]?_0x5f2a03[_0x2bd439('0x802')][_0x2bd439('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x4dbdcd(_0x25a518);})[_0x26627b('0x1cb5')](function(_0x42f776){const _0xee60f3=_0x26627b;if(_0x42f776[_0xee60f3('0x11fc')]&&_0x42f776[_0xee60f3('0x11fc')][_0xee60f3('0x25be')]&&_0x42f776[_0xee60f3('0x11fc')]['errors']['length']){_0x5f2a03[_0xee60f3('0x25be')]=_0x42f776['data']['errors']||[{'message':_0x42f776[_0xee60f3('0x17df')](),'type':'api.schedule.update'}];for(let _0x5122aa=0x0;_0x5122aa<_0x42f776[_0xee60f3('0x11fc')][_0xee60f3('0x25be')][_0xee60f3('0x2566')];_0x5122aa++){_0xf88c50[_0xee60f3('0x5e8')]({'title':_0x42f776['data'][_0xee60f3('0x25be')][_0x5122aa][_0xee60f3('0x1d7')],'msg':_0x42f776['data'][_0xee60f3('0x25be')][_0x5122aa]['message']});}}else _0xf88c50[_0xee60f3('0x5e8')]({'title':_0x42f776[_0xee60f3('0x1b51')]?'API:'+_0x42f776[_0xee60f3('0x1b51')]+'\x20-\x20'+_0x42f776[_0xee60f3('0x22ce')]:'api.schedule.update','msg':_0x42f776['data']?JSON[_0xee60f3('0x1be0')](_0x42f776['data'][_0xee60f3('0x15e2')]):_0x42f776['toString']()});});}function _0x489cc4(_0x127b12){const _0x405d26=_0x5eafcd;_0x5f2a03[_0x405d26('0x25be')]=[];const _0x212ccc=_0x59abfe[_0x405d26('0x112e')]()[_0x405d26('0x14e4')](_0x405d26('0x458'))[_0x405d26('0x1c98')]('The\x20schedule\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Schedule')['ok'](_0x405d26('0x2786'))['cancel'](_0x405d26('0x1481'))['targetEvent'](_0x127b12);_0x59abfe['show'](_0x212ccc)[_0x405d26('0x2788')](function(){const _0x4cb026=_0x405d26;_0x3d77e5['schedule'][_0x4cb026('0x17c4')]({'id':_0x5f2a03[_0x4cb026('0x802')]['id']})[_0x4cb026('0x1714')][_0x4cb026('0x2788')](function(){const _0x40e62e=_0x4cb026;_0x283545()['remove'](_0x5f2a03['schedules'],{'id':_0x5f2a03[_0x40e62e('0x802')]['id']}),_0xf88c50['success']({'title':'Schedule\x20properly\x20deleted!','msg':(_0x5f2a03[_0x40e62e('0x802')]['name']||_0x40e62e('0x802'))+_0x40e62e('0x14d4')}),_0x4dbdcd(_0x5f2a03[_0x40e62e('0x802')]);})[_0x4cb026('0x1cb5')](function(_0x5b2dba){const _0x56ca5b=_0x4cb026;if(_0x5b2dba[_0x56ca5b('0x11fc')]&&_0x5b2dba[_0x56ca5b('0x11fc')][_0x56ca5b('0x25be')]&&_0x5b2dba['data'][_0x56ca5b('0x25be')]['length']){_0x5f2a03[_0x56ca5b('0x25be')]=_0x5b2dba[_0x56ca5b('0x11fc')][_0x56ca5b('0x25be')]||[{'message':_0x5b2dba[_0x56ca5b('0x17df')](),'type':_0x56ca5b('0xac9')}];for(let _0x5e16bb=0x0;_0x5e16bb<_0x5b2dba['data'][_0x56ca5b('0x25be')][_0x56ca5b('0x2566')];_0x5e16bb++){_0xf88c50[_0x56ca5b('0x5e8')]({'title':_0x5b2dba[_0x56ca5b('0x11fc')][_0x56ca5b('0x25be')][_0x5e16bb][_0x56ca5b('0x1d7')],'msg':_0x5b2dba['data']['errors'][_0x5e16bb]['message']});}}else _0xf88c50[_0x56ca5b('0x5e8')]({'title':_0x5b2dba[_0x56ca5b('0x1b51')]?'API:'+_0x5b2dba['status']+_0x56ca5b('0x1b0b')+_0x5b2dba[_0x56ca5b('0x22ce')]:_0x56ca5b('0xac9'),'msg':_0x5b2dba[_0x56ca5b('0x11fc')]?JSON[_0x56ca5b('0x1be0')](_0x5b2dba[_0x56ca5b('0x11fc')]['message']):_0x5b2dba[_0x56ca5b('0x15e2')]||_0x5b2dba[_0x56ca5b('0x17df')]()});});},function(){});}function _0xff0d42(){const _0x3cc0ed=_0x5eafcd,_0x280298={'core':{'multiple':![],'animation':!![],'error':function(_0x76abab){const _0x25049b=a0_0x14e7;console[_0x25049b('0x5e8')](_0x25049b('0x1ae8')+angular[_0x25049b('0x2385')](_0x76abab));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x3cc0ed('0x142a')]};return _0x5f2a03[_0x3cc0ed('0x9cb')][_0x3cc0ed('0xb34')]!=='admin'?_0x3d77e5[_0x3cc0ed('0xec9')][_0x3cc0ed('0x1335')]({'fields':_0x3cc0ed('0xe2c'),'userProfileId':_0x5f2a03[_0x3cc0ed('0x9cb')]['userProfileId'],'sectionId':0x4b3})[_0x3cc0ed('0x1714')][_0x3cc0ed('0x2788')](function(_0x2ec1e8){const _0x1a5bd6=_0x3cc0ed;return _0x5f2a03[_0x1a5bd6('0xec9')]=_0x2ec1e8&&_0x2ec1e8[_0x1a5bd6('0x338')]==0x1?_0x2ec1e8[_0x1a5bd6('0x25df')][0x0]:null,_0x280298;})[_0x3cc0ed('0x1cb5')](function(_0x23e9e6){const _0x1297ab=_0x3cc0ed;_0xf88c50['error']({'title':_0x1297ab('0x824'),'msg':_0x23e9e6[_0x1297ab('0x15e2')]});}):_0x280298;}function _0x3a33f0(_0x5a9e9e){return _0x5a9e9e?{'loaded':_0x145bb9,'select_node':_0x5dd6f3}:{'loaded':_0x5235cb,'select_node':_0x2144fb};}function _0x5dd6f3(_0x40fa2c,_0x3c59f3){const _0x2e8655=_0x5eafcd;_0x5f2a03[_0x2e8655('0x4a')][_0x2e8655('0x1270')](!![])[_0x2e8655('0x141a')](),_0x5f2a03[_0x2e8655('0x4a')][_0x2e8655('0x1270')](!![])[_0x2e8655('0x1191')](),_0x5f2a03[_0x2e8655('0x1a8f')]=_0x3c59f3[_0x2e8655('0x1059')],_0x5f2a03[_0x2e8655('0x1a8f')][_0x2e8655('0x1d56')]=!![],_0x5f2a03[_0x2e8655('0x1cce')]=_0x5f2a03[_0x2e8655('0x1a49')][_0x2e8655('0x1270')](!![])[_0x2e8655('0x713')](_0x5f2a03[_0x2e8655('0x1a8f')])[_0x2e8655('0x185f')]('/\x20'),_0x5f2a03[_0x2e8655('0x2204')]=_0x2e8655('0x193d'),_0x5f2a03[_0x2e8655('0x135a')]['parent']=_0x3c59f3[_0x2e8655('0x1059')]['id'],_0x32b325();}function _0x2144fb(_0x8e750b,_0x5e7071){const _0x478faa=_0x5eafcd;_0x5f2a03[_0x478faa('0x1a49')][_0x478faa('0x1270')](!![])[_0x478faa('0x141a')](),_0x5f2a03[_0x478faa('0x1a49')]['jstree'](!![])[_0x478faa('0x1191')](),_0x5f2a03['currentNode']=_0x5e7071['node'],_0x5f2a03[_0x478faa('0x1a8f')][_0x478faa('0x1d56')]=![],_0x5f2a03[_0x478faa('0x1cce')]=_0x5f2a03[_0x478faa('0x4a')]['jstree'](!![])[_0x478faa('0x713')](_0x5f2a03[_0x478faa('0x1a8f')])[_0x478faa('0x185f')]('/\x20'),_0x5f2a03[_0x478faa('0x2204')]='analyticDefaultReport',_0x5f2a03[_0x478faa('0x135a')][_0x478faa('0x1734')]=_0x5e7071['node']['id'],_0x32b325();}function _0x145bb9(){const _0x4872e4=_0x5eafcd;if(!_0x5f2a03[_0x4872e4('0x1259')]&&_0x5f2a03['apiName']===_0x4872e4('0x193d')){const _0x368c89=_0x5f2a03[_0x4872e4('0x1a49')][_0x4872e4('0x1270')](!![])[_0x4872e4('0x473')](_0x5f2a03[_0x4872e4('0x135a')][_0x4872e4('0x1734')]);_0x5dd6f3(null,{'node':_0x368c89,'selected':_0x368c89['id']});}}function _0x5235cb(){const _0x89876e=_0x5eafcd;if(!_0x5f2a03[_0x89876e('0x1259')]&&_0x5f2a03['apiName']===_0x89876e('0x1b5c')){const _0x42878a=_0x5f2a03[_0x89876e('0x4a')][_0x89876e('0x1270')](!![])[_0x89876e('0x473')](_0x5f2a03[_0x89876e('0x135a')][_0x89876e('0x1734')]);_0x2144fb(null,{'node':_0x42878a,'selected':_0x42878a['id']});}}function _0x32b325(){const _0x1e2b64=_0x5eafcd;_0x5f2a03[_0x1e2b64('0x135a')][_0x1e2b64('0x19e')]=(_0x5f2a03[_0x1e2b64('0x135a')][_0x1e2b64('0x23f5')]-0x1)*_0x5f2a03[_0x1e2b64('0x135a')][_0x1e2b64('0x68e')];if(_0x5f2a03[_0x1e2b64('0x2204')]){if(_0x5f2a03[_0x1e2b64('0x9cb')][_0x1e2b64('0xb34')]==='admin')_0x5f2a03[_0x1e2b64('0x1808')]=_0x3d77e5[_0x5f2a03[_0x1e2b64('0x2204')]][_0x1e2b64('0x1335')](_0x5f2a03['query'],_0x30dba2)[_0x1e2b64('0x1714')];else{if(!_0x5f2a03[_0x1e2b64('0xec9')])return _0x30dba2(null);else{if(_0x5f2a03[_0x1e2b64('0xec9')][_0x1e2b64('0x1c0a')])_0x5f2a03[_0x1e2b64('0x1808')]=_0x3d77e5[_0x5f2a03[_0x1e2b64('0x2204')]][_0x1e2b64('0x1335')](_0x5f2a03[_0x1e2b64('0x135a')],_0x30dba2)[_0x1e2b64('0x1714')];else{let _0x51f86f=[];_0x5f2a03['promise']=_0x3d77e5[_0x5f2a03[_0x1e2b64('0x2204')]]['get'](_0x5f2a03[_0x1e2b64('0x135a')])[_0x1e2b64('0x1714')]['then'](function(_0x2d4f37){const _0x1d30c0=_0x1e2b64;return _0x51f86f=_0x2d4f37&&_0x2d4f37[_0x1d30c0('0x25df')]?_0x2d4f37[_0x1d30c0('0x25df')]:[],_0x51f86f[_0x1d30c0('0x2566')]>0x0?_0x3d77e5[_0x1d30c0('0x1050')]['get']({'sectionId':_0x5f2a03[_0x1d30c0('0xec9')]['id'],'type':_0x5f2a03[_0x1d30c0('0x2204')]===_0x1d30c0('0x1b5c')?'DefaultReports':_0x1d30c0('0xd66')})[_0x1d30c0('0x1714')][_0x1d30c0('0x2788')](function(_0x12988a){const _0x5a77b6=_0x1d30c0,_0xedae91=_0x12988a&&_0x12988a['rows']?_0x12988a[_0x5a77b6('0x25df')]:[];if(_0xedae91['length']>0x0){const _0x12525=[];return _0x51f86f[_0x5a77b6('0x1534')](function(_0x4649ca){const _0x2b9527=_0x5a77b6,_0x5a5fd1=_0x283545()[_0x2b9527('0x20e8')](_0xedae91,['resourceId',_0x4649ca['id']]);if(_0x5a5fd1)_0x12525[_0x2b9527('0x13e3')](_0x4649ca);}),_0x30dba2({'count':_0x12525[_0x5a77b6('0x2566')],'rows':_0x12525});}else return _0x30dba2(null);}):_0x30dba2(null);})[_0x1e2b64('0x1cb5')](function(_0x489e80){const _0xbb47c2=_0x1e2b64;_0xf88c50[_0xbb47c2('0x5e8')]({'title':_0x489e80['status']?_0xbb47c2('0x15d1')+_0x489e80[_0xbb47c2('0x1b51')]+_0xbb47c2('0x1b0b')+_0x489e80[_0xbb47c2('0x22ce')]:_0xbb47c2('0x2140'),'msg':_0x489e80[_0xbb47c2('0x11fc')]?JSON[_0xbb47c2('0x1be0')](_0x489e80[_0xbb47c2('0x11fc')]):_0x489e80[_0xbb47c2('0x17df')]()});});}}}}}function _0x30dba2(_0x4325c2){const _0x2457b8=_0x5eafcd;_0x5f2a03[_0x2457b8('0x1d35')]=_0x4325c2||{'count':0x0,'rows':[]},!_0x5f2a03['newSchedule']&&_0x5f2a03['selectedReport'][_0x2457b8('0x13e3')](_0x283545()['find'](_0x5f2a03[_0x2457b8('0x1d35')][_0x2457b8('0x25df')],{'id':_0x5f2a03[_0x2457b8('0x32d')]['id']}));}function _0x9255aa(){const _0x486594=_0x5eafcd;_0x5f2a03[_0x486594('0x2345')]=_0x5f2a03['treeReports'][0x0]?angular[_0x486594('0x2157')](_0x5f2a03[_0x486594('0x1d5c')][0x0][_0x486594('0xa49')]):[],_0x5f2a03[_0x486594('0x23d6')]=_0x5f2a03[_0x486594('0x1d5c')][0x1]?angular['fromJson'](_0x5f2a03[_0x486594('0x1d5c')][0x1][_0x486594('0xa49')]):[],_0x5f2a03[_0x486594('0xc27')]=_0xff0d42(),_0x5f2a03[_0x486594('0x1950')]=_0x3a33f0(![]),_0x5f2a03[_0x486594('0x1b83')]=_0x3a33f0(!![]),_0x59abfe[_0x486594('0x2fa')]({'controller':function(){return _0x5f2a03;},'controllerAs':'vm','templateUrl':_0x14db8c,'autoWrap':!![],'skipHide':!![]});}function _0x5ae0e0(){const _0x11d46d=_0x5eafcd;_0x5f2a03[_0x11d46d('0x802')]['report']=_0x5f2a03[_0x11d46d('0x220c')][0x0]['name'],_0x5f2a03['currentNode'][_0x11d46d('0x1d56')]?(_0x5f2a03[_0x11d46d('0x802')][_0x11d46d('0x220f')]=_0x5f2a03[_0x11d46d('0x220c')][0x0]['id'],delete _0x5f2a03[_0x11d46d('0x802')][_0x11d46d('0x1a36')]):(_0x5f2a03[_0x11d46d('0x802')][_0x11d46d('0x1a36')]=_0x5f2a03[_0x11d46d('0x220c')][0x0]['id'],delete _0x5f2a03[_0x11d46d('0x802')][_0x11d46d('0x220f')]),_0x3602cd[_0x11d46d('0xc4d')]['report']['$setDirty'](),_0x59abfe['hide']();}function _0x36f07d(){const _0x31a4dc=_0x5eafcd;_0x59abfe[_0x31a4dc('0x19d')]();}function _0x5e17fe(_0x521fe7){return _0x521fe7===null?undefined:new Date(_0x521fe7);}function _0x4dbdcd(_0x39e075){const _0x34b614=_0x5eafcd;_0x59abfe[_0x34b614('0x19d')](_0x39e075);}}const _0x3452eb=_0x23aff8,_0x33923e=_0x18dd13['p']+_0x34e79e('0x6e');_0x42885f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x14b0'),_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x42885f(_0x3bd456,_0x5401f4,_0x3e0ab1,_0x2a2a39,_0x50c4b8,_0x55c51b,_0x3c1be6,_0x4d3d8b,_0x403d42,_0x3d92c4,_0x5cd207,_0x58a582,_0x302a5f,_0x224ecc,_0x47ff1b,_0xa6161e,_0x500855){const _0x1703ad=_0x34e79e,_0x663e80=this;_0x663e80[_0x1703ad('0x130d')]=_0xa6161e,_0x663e80[_0x1703ad('0x1af0')]=_0x500855,_0x663e80[_0x1703ad('0x9cb')]=_0x47ff1b[_0x1703ad('0x24cc')](),_0x663e80[_0x1703ad('0x14b0')]=_0x403d42||{'count':0x0,'rows':[]},_0x663e80[_0x1703ad('0x63c')]=_0x3d92c4,_0x663e80[_0x1703ad('0xec9')]=_0x5cd207&&_0x5cd207[_0x1703ad('0x338')]==0x1?_0x5cd207['rows'][0x0]:null,_0x663e80['crudPermissions']=_0x47ff1b['parseCrudPermissions'](_0x663e80['userProfileSection']?_0x663e80['userProfileSection']['crudPermissions']:null),_0x663e80[_0x1703ad('0x26a9')]=_0x1703ad('0x14b0'),_0x663e80[_0x1703ad('0x2278')]='',_0x663e80['listOrderAsc']=null,_0x663e80[_0x1703ad('0x219b')]=[],_0x663e80[_0x1703ad('0x135a')]={'fields':_0x1703ad('0x16e8'),'sort':_0x1703ad('0x1cee'),'limit':0xa,'page':0x1},_0x663e80[_0x1703ad('0x23e3')]=_0x283545()[_0x1703ad('0x13cf')]([{'option':'CSV','value':'\x27csv\x27'},{'option':'PDF','value':_0x1703ad('0x45a')},{'option':_0x1703ad('0x11c9'),'value':_0x1703ad('0x142d')}],function(_0x456660){const _0x3402c8=_0x1703ad;return _0x283545()[_0x3402c8('0x10a4')](_0x456660['value'],new RegExp('\x27','g'),'');}),_0x663e80[_0x1703ad('0x16f8')]=_0x283545()['keyBy']([{'option':'Minutes','value':_0x1703ad('0x289')},{'option':_0x1703ad('0x176c'),'value':_0x1703ad('0x100c')},{'option':_0x1703ad('0x27d6'),'value':'\x27days\x27'},{'option':'Weeks','value':'\x27weeks\x27'},{'option':_0x1703ad('0x1b40'),'value':_0x1703ad('0xc0f')},{'option':_0x1703ad('0x2300'),'value':_0x1703ad('0x1009')},{'option':_0x1703ad('0x1993'),'value':'\x27years\x27'}],function(_0x29ec0c){const _0x544120=_0x1703ad;return _0x283545()[_0x544120('0x10a4')](_0x29ec0c['value'],new RegExp('\x27','g'),'');}),_0x663e80['editdialog']=_0x2d1c2a,_0x663e80[_0x1703ad('0x77b')]=_0x50f11f,_0x663e80[_0x1703ad('0x1e5')]=_0x5a237f,_0x663e80['success']=_0x5e3037,_0x663e80[_0x1703ad('0x12d6')]=_0x5ee12f,_0x663e80[_0x1703ad('0x62b')]=_0x3a4f8f,_0x663e80[_0x1703ad('0x1a62')]=_0x221091,_0x663e80['exportSelectedScheduler']=_0x16ba27,_0x663e80['deleteSelectedScheduler']=_0x251061,_0x663e80['deselectScheduler']=_0x45ac4b,_0x663e80[_0x1703ad('0x5c6')]=_0x5e8e5f,_0x58a582[_0x1703ad('0x1dbc')]['get']({})[_0x1703ad('0x1714')][_0x1703ad('0x2788')](function(_0x49a801){const _0x1cbd25=_0x1703ad;_0x663e80[_0x1cbd25('0x1d5c')]=_0x49a801[_0x1cbd25('0x25df')]||[];})[_0x1703ad('0x1cb5')](function(_0x5bb0d2){const _0x5aa36e=_0x1703ad;_0x224ecc[_0x5aa36e('0x5e8')]({'title':_0x5bb0d2[_0x5aa36e('0x1b51')]?_0x5aa36e('0x15d1')+_0x5bb0d2[_0x5aa36e('0x1b51')]+_0x5aa36e('0x1b0b')+_0x5bb0d2[_0x5aa36e('0x22ce')]:'SYSTEM:GET_TREEREPORTS','msg':_0x5bb0d2[_0x5aa36e('0x11fc')]?JSON[_0x5aa36e('0x1be0')](_0x5bb0d2['data']):_0x5bb0d2[_0x5aa36e('0x17df')]()});}),_0x47ff1b[_0x1703ad('0x1516')](_0x1703ad('0xe23'))?_0x58a582[_0x1703ad('0x2594')][_0x1703ad('0x1335')]({'fields':_0x1703ad('0x1338'),'sort':'name'})[_0x1703ad('0x1714')][_0x1703ad('0x2788')](function(_0x4883ba){const _0x3f8160=_0x1703ad;_0x663e80[_0x3f8160('0x1e22')]=_0x4883ba[_0x3f8160('0x25df')]||[];})[_0x1703ad('0x1cb5')](function(_0x3e675f){const _0x3d7fb5=_0x1703ad;_0x224ecc[_0x3d7fb5('0x5e8')]({'title':_0x3e675f[_0x3d7fb5('0x1b51')]?_0x3d7fb5('0x15d1')+_0x3e675f[_0x3d7fb5('0x1b51')]+_0x3d7fb5('0x1b0b')+_0x3e675f[_0x3d7fb5('0x22ce')]:'SYSTEM:GET_MAILACCOUNTS','msg':_0x3e675f[_0x3d7fb5('0x11fc')]?JSON[_0x3d7fb5('0x1be0')](_0x3e675f[_0x3d7fb5('0x11fc')]):_0x3e675f[_0x3d7fb5('0x17df')]()});}):_0x58a582['mailAccount'][_0x1703ad('0x1335')]({'fields':_0x1703ad('0x1338'),'sort':_0x1703ad('0x1a8d')})['$promise'][_0x1703ad('0x2788')](function(_0x4dccc2){const _0x3ed951=_0x1703ad;_0x663e80[_0x3ed951('0x1e22')]=_0x4dccc2[_0x3ed951('0x25df')]||[];})[_0x1703ad('0x2788')](function(){const _0x3ad0a4=_0x1703ad;return _0x58a582[_0x3ad0a4('0xec9')][_0x3ad0a4('0x1335')]({'userProfileId':_0x663e80[_0x3ad0a4('0x9cb')][_0x3ad0a4('0x237f')],'sectionId':0x25a})[_0x3ad0a4('0x1714')];})['then'](function(_0x17e127){const _0x2caf6e=_0x1703ad,_0x25a836=_0x17e127&&_0x17e127['rows']?_0x17e127[_0x2caf6e('0x25df')][0x0]:null;if(!_0x25a836){const _0x24a2ba=[];let _0x36fdc5=null;_0x663e80[_0x2caf6e('0x802')]&&(_0x36fdc5=_0x283545()['find'](_0x663e80[_0x2caf6e('0x1e22')],{'id':Number(_0x663e80['schedule'][_0x2caf6e('0x26b2')])}));for(let _0xb6f096=0x0;_0xb6f096<_0x663e80[_0x2caf6e('0x1e22')][_0x2caf6e('0x2566')];_0xb6f096++){_0x36fdc5&&_0x663e80['mailAccounts'][_0xb6f096]['id']===_0x36fdc5['id']&&(_0x663e80[_0x2caf6e('0x1e22')][_0xb6f096][_0x2caf6e('0x3bf')]=![],_0x24a2ba[_0x2caf6e('0x13e3')](_0x663e80['mailAccounts'][_0xb6f096]));}_0x663e80[_0x2caf6e('0x1e22')]=_0x24a2ba;}else{if(!_0x25a836['autoAssociation'])return _0x58a582['userProfileResource']['get']({'sectionId':_0x25a836['id']})[_0x2caf6e('0x1714')][_0x2caf6e('0x2788')](function(_0x352f55){const _0x96b4df=_0x2caf6e,_0x22cec5=_0x283545()['map'](_0x352f55[_0x96b4df('0x25df')],function(_0x52b17e){const _0x2994f4=_0x96b4df;return _0x283545()['find'](_0x663e80[_0x2994f4('0x1e22')],{'id':_0x52b17e[_0x2994f4('0x2707')]});});let _0x36c2c8=null;_0x663e80[_0x96b4df('0x802')]&&(_0x36c2c8=_0x283545()[_0x96b4df('0x20e8')](_0x663e80[_0x96b4df('0x1e22')],{'id':Number(_0x663e80[_0x96b4df('0x802')][_0x96b4df('0x26b2')])}));if(_0x36c2c8&&!_0x283545()[_0x96b4df('0xc5d')](_0x22cec5,['id',_0x36c2c8['id']])){const _0x26f12b=_0x283545()[_0x96b4df('0x20e8')](_0x663e80[_0x96b4df('0x1e22')],{'id':_0x36c2c8['id']});_0x26f12b[_0x96b4df('0x3bf')]=![],_0x22cec5[_0x96b4df('0x13e3')](_0x26f12b);}_0x663e80['mailAccounts']=_0x22cec5;});}})[_0x1703ad('0x1cb5')](function(_0x22312b){const _0x102e79=_0x1703ad;_0x224ecc[_0x102e79('0x5e8')]({'title':_0x22312b[_0x102e79('0x1b51')]?_0x102e79('0x15d1')+_0x22312b[_0x102e79('0x1b51')]+'\x20-\x20'+_0x22312b[_0x102e79('0x22ce')]:_0x102e79('0x2796'),'msg':_0x22312b[_0x102e79('0x11fc')]?JSON[_0x102e79('0x1be0')](_0x22312b[_0x102e79('0x11fc')]):_0x22312b[_0x102e79('0x17df')]()});});function _0x2d1c2a(_0x3d580b,_0x2062c9){const _0x54b960=_0x1703ad;_0x50c4b8[_0x54b960('0x2fa')]({'controller':_0x54b960('0x19d5'),'controllerAs':'vm','templateUrl':_0x33923e,'parent':angular[_0x54b960('0x16b1')](_0x55c51b[_0x54b960('0x945')]),'targetEvent':_0x2062c9,'clickOutsideToClose':!![],'locals':{'schedule':_0x3d580b,'schedules':_0x663e80['schedules'][_0x54b960('0x25df')],'license':_0x663e80[_0x54b960('0x130d')],'setting':null,'crudPermissions':_0x663e80['crudPermissions']}});}function _0x50f11f(_0x49c889,_0x2c5a8c){const _0x5de66a=_0x1703ad,_0x3cc0a0=_0x50c4b8[_0x5de66a('0x112e')]()[_0x5de66a('0x14e4')](_0x5de66a('0x2218'))[_0x5de66a('0x93e')](''+(_0x49c889[_0x5de66a('0x1a8d')]||'schedule')+_0x5de66a('0x229e')+'\x20will\x20be\x20run.')[_0x5de66a('0x10bc')]('delete\x20schedule')['targetEvent'](_0x2c5a8c)['ok']('OK')[_0x5de66a('0x1801')]('CANCEL');_0x50c4b8['show'](_0x3cc0a0)['then'](function(){const _0x385fe4=_0x5de66a;return _0x58a582[_0x385fe4('0x802')]['run']({'id':_0x49c889['id']})[_0x385fe4('0x1714')];},function(){const _0xec8723=_0x5de66a;console['log'](_0xec8723('0x1d8d'));});}function _0x5a237f(_0x3ed439,_0x5a9e77){const _0x42ec46=_0x1703ad,_0x2b7187=_0x50c4b8[_0x42ec46('0x112e')]()[_0x42ec46('0x14e4')](_0x42ec46('0x2114')+_0x283545()['startCase']('schedule')+'?')[_0x42ec46('0x93e')](''+(_0x3ed439['name']||'schedule')+''+_0x42ec46('0x27c7'))[_0x42ec46('0x10bc')](_0x42ec46('0x1784'))['targetEvent'](_0x5a9e77)['ok']('OK')['cancel'](_0x42ec46('0x1d8d'));_0x50c4b8[_0x42ec46('0x2fa')](_0x2b7187)[_0x42ec46('0x2788')](function(){_0x221091(_0x3ed439);},function(){const _0x12857d=_0x42ec46;console[_0x12857d('0x10df')](_0x12857d('0x1d8d'));});}let _0x15c499=!![],_0x24c09a=0x1;_0x3bd456[_0x1703ad('0x1662')](_0x1703ad('0x1569'),function(_0xe26a14,_0x346a47){const _0x746b72=_0x1703ad;_0x15c499?_0x3c1be6(function(){_0x15c499=![];}):(!_0x346a47&&(_0x24c09a=_0x663e80[_0x746b72('0x135a')]['page']),_0xe26a14!==_0x346a47&&(_0x663e80[_0x746b72('0x135a')]['page']=0x1),!_0xe26a14&&(_0x663e80[_0x746b72('0x135a')]['page']=_0x24c09a),_0x663e80['getScheduler']());});function _0x5e3037(_0x2c53fb){_0x663e80['schedules']=_0x2c53fb||{'count':0x0,'rows':[]};}function _0x5ee12f(){const _0x3fa4b9=_0x1703ad;_0x663e80[_0x3fa4b9('0x135a')][_0x3fa4b9('0x19e')]=(_0x663e80[_0x3fa4b9('0x135a')]['page']-0x1)*_0x663e80[_0x3fa4b9('0x135a')][_0x3fa4b9('0x68e')],_0x47ff1b['hasRole'](_0x3fa4b9('0xe23'))?_0x663e80[_0x3fa4b9('0x1808')]=_0x58a582[_0x3fa4b9('0x802')][_0x3fa4b9('0x1335')](_0x663e80['query'],_0x5e3037)['$promise']:(_0x663e80['query']['id']=_0x663e80[_0x3fa4b9('0x63c')]['id'],_0x663e80[_0x3fa4b9('0x135a')][_0x3fa4b9('0xb13')]=_0x3fa4b9('0x149'),_0x663e80[_0x3fa4b9('0x1808')]=_0x58a582[_0x3fa4b9('0x63c')][_0x3fa4b9('0xa1')](_0x663e80['query'],_0x5e3037)[_0x3fa4b9('0x1714')]);}function _0x3a4f8f(_0x54a1ae,_0x4ff4d0){const _0x4470e1=_0x1703ad;_0x50c4b8[_0x4470e1('0x2fa')]({'controller':'CreateOrEditScheduleDialogController','controllerAs':'vm','templateUrl':_0x33923e,'parent':angular[_0x4470e1('0x16b1')](_0x55c51b[_0x4470e1('0x945')]),'targetEvent':_0x54a1ae,'clickOutsideToClose':!![],'locals':{'schedule':_0x4ff4d0,'schedules':_0x663e80['schedules'][_0x4470e1('0x25df')],'license':_0x663e80[_0x4470e1('0x130d')],'setting':_0x663e80[_0x4470e1('0x1af0')],'crudPermissions':_0x663e80[_0x4470e1('0xe28')]}});}function _0x221091(_0x49968c){const _0x469830=_0x1703ad;_0x58a582[_0x469830('0x802')][_0x469830('0x17c4')]({'id':_0x49968c['id']})[_0x469830('0x1714')][_0x469830('0x2788')](function(){const _0x21f94d=_0x469830;_0x283545()['remove'](_0x663e80['schedules']['rows'],{'id':_0x49968c['id']}),_0x663e80['schedules'][_0x21f94d('0x338')]-=0x1,!_0x663e80[_0x21f94d('0x14b0')][_0x21f94d('0x25df')][_0x21f94d('0x2566')]&&_0x663e80[_0x21f94d('0x12d6')](),_0x224ecc[_0x21f94d('0x173b')]({'title':_0x283545()[_0x21f94d('0x114')](_0x21f94d('0x1afc'))+'\x20deleted!','msg':_0x49968c[_0x21f94d('0x1a8d')]?_0x49968c['name']+_0x21f94d('0x14d4'):''});})[_0x469830('0x1cb5')](function(_0x221fa1){const _0x5e3592=_0x469830;if(_0x221fa1['data']&&_0x221fa1[_0x5e3592('0x11fc')][_0x5e3592('0x25be')]&&_0x221fa1[_0x5e3592('0x11fc')][_0x5e3592('0x25be')][_0x5e3592('0x2566')]){_0x663e80[_0x5e3592('0x25be')]=_0x221fa1[_0x5e3592('0x11fc')]['errors']||[{'message':_0x221fa1[_0x5e3592('0x17df')](),'type':_0x5e3592('0xca5')}];for(let _0x34c85a=0x0;_0x34c85a<_0x221fa1['data'][_0x5e3592('0x25be')]['length'];_0x34c85a++){_0x224ecc['error']({'title':_0x221fa1[_0x5e3592('0x11fc')][_0x5e3592('0x25be')][_0x34c85a][_0x5e3592('0x1d7')],'msg':_0x221fa1[_0x5e3592('0x11fc')][_0x5e3592('0x25be')][_0x34c85a]['message']});}}else _0x224ecc[_0x5e3592('0x5e8')]({'title':_0x221fa1[_0x5e3592('0x1b51')]?'API:'+_0x221fa1[_0x5e3592('0x1b51')]+_0x5e3592('0x1b0b')+_0x221fa1[_0x5e3592('0x22ce')]:_0x5e3592('0xca5'),'msg':_0x221fa1[_0x5e3592('0x11fc')]?JSON['stringify'](_0x221fa1[_0x5e3592('0x11fc')][_0x5e3592('0x15e2')]):_0x221fa1['message']||_0x221fa1[_0x5e3592('0x17df')]()});});}function _0x16ba27(){const _0x2feb2d=_0x1703ad,_0x10ae7a=angular[_0x2feb2d('0x2669')](_0x663e80[_0x2feb2d('0x219b')]);return _0x663e80['selectedScheduler']=[],_0x10ae7a;}function _0x251061(_0x1ecedb){const _0x3389ea=_0x1703ad,_0x2a3328=_0x50c4b8[_0x3389ea('0x112e')]()['title'](_0x3389ea('0x135f'))['htmlContent'](_0x3389ea('0x1670')+_0x663e80[_0x3389ea('0x219b')]['length']+_0x3389ea('0xbd')+_0x3389ea('0x27c7'))['ariaLabel'](_0x3389ea('0x55d'))[_0x3389ea('0x24d0')](_0x1ecedb)['ok']('OK')[_0x3389ea('0x1801')]('CANCEL');_0x50c4b8[_0x3389ea('0x2fa')](_0x2a3328)[_0x3389ea('0x2788')](function(){const _0x5b2c34=_0x3389ea;_0x663e80[_0x5b2c34('0x219b')]['forEach'](function(_0x4489ba){_0x221091(_0x4489ba);}),_0x663e80['selectedScheduler']=[];});}function _0x45ac4b(){_0x663e80['selectedScheduler']=[];}function _0x5e8e5f(){const _0x4a9afb=_0x1703ad;_0x663e80[_0x4a9afb('0x219b')]=_0x663e80['schedules'][_0x4a9afb('0x25df')];}}const _0x12126=_0x42885f;_0x38784d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x16ca'),_0x34e79e('0x216d'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x38784d(_0x25c6fa,_0x5aff33,_0x4a2a5f,_0x235df8,_0x399906,_0x596cc7,_0x14f943,_0x4b771a,_0x1b23bc,_0x383298,_0x20d47d,_0x26a461,_0x44e177,_0x76c38c){const _0x365708=_0x34e79e,_0x54836b=this;_0x54836b[_0x365708('0x9cb')]=_0x20d47d[_0x365708('0x24cc')](),_0x54836b[_0x365708('0x25be')]=[],_0x54836b[_0x365708('0x1af0')]=_0x44e177,_0x54836b[_0x365708('0x130d')]=_0x26a461,_0x54836b[_0x365708('0xe28')]=_0x76c38c,_0x54836b['hasModulePermissions']={},_0x54836b['passwordPattern']=_0x54836b[_0x365708('0x1af0')]&&_0x54836b[_0x365708('0x1af0')][_0x365708('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x54836b[_0x365708('0x14e4')]=_0x365708('0x15fd'),_0x54836b['sound']=angular[_0x365708('0x2669')](_0x1b23bc),_0x54836b['sounds']=_0x4b771a,_0x54836b['newSound']=![];!_0x54836b['sound']&&(_0x54836b[_0x365708('0x216d')]={},_0x54836b[_0x365708('0x14e4')]=_0x365708('0xb3f'),_0x54836b[_0x365708('0x7d8')]=!![]);_0x54836b[_0x365708('0x1ec1')]=_0x4b6ccc,_0x54836b[_0x365708('0x2726')]=_0x4dbd08,_0x54836b[_0x365708('0x14da')]=_0x5a3289,_0x54836b[_0x365708('0x2601')]=_0x1a0e9e,_0x54836b['closeDialog']=_0x3ee072;function _0x4b6ccc(){const _0x27cebb=_0x365708;_0x54836b[_0x27cebb('0x25be')]=[],_0x383298[_0x27cebb('0x216d')][_0x27cebb('0xbd0')](_0x54836b[_0x27cebb('0x216d')])[_0x27cebb('0x1714')][_0x27cebb('0x2788')](function(_0x18f42a){const _0x28b81f=_0x27cebb;_0x54836b[_0x28b81f('0x16ca')][_0x28b81f('0xc51')](_0x18f42a[_0x28b81f('0x1cbf')]()),_0x14f943[_0x28b81f('0x173b')]({'title':'Sound\x20properly\x20created','msg':_0x54836b[_0x28b81f('0x216d')][_0x28b81f('0x1a8d')]?_0x54836b[_0x28b81f('0x216d')][_0x28b81f('0x1a8d')]+_0x28b81f('0x1e4a'):''}),_0x3ee072(_0x18f42a);})[_0x27cebb('0x1cb5')](function(_0x2e5a86){const _0x5b76be=_0x27cebb;if(_0x2e5a86[_0x5b76be('0x11fc')]&&_0x2e5a86[_0x5b76be('0x11fc')][_0x5b76be('0x25be')]&&_0x2e5a86[_0x5b76be('0x11fc')][_0x5b76be('0x25be')]['length']){_0x54836b[_0x5b76be('0x25be')]=_0x2e5a86[_0x5b76be('0x11fc')]['errors']||[{'message':_0x2e5a86[_0x5b76be('0x17df')](),'type':_0x5b76be('0xb2e')}];for(let _0x17388a=0x0;_0x17388a<_0x2e5a86[_0x5b76be('0x11fc')][_0x5b76be('0x25be')][_0x5b76be('0x2566')];_0x17388a+=0x1){_0x14f943[_0x5b76be('0x5e8')]({'title':_0x2e5a86['data']['errors'][_0x17388a][_0x5b76be('0x1d7')],'msg':_0x2e5a86[_0x5b76be('0x11fc')][_0x5b76be('0x25be')][_0x17388a][_0x5b76be('0x15e2')]});}}else _0x14f943[_0x5b76be('0x5e8')]({'title':_0x2e5a86[_0x5b76be('0x1b51')]?_0x5b76be('0x15d1')+_0x2e5a86['status']+_0x5b76be('0x1b0b')+_0x2e5a86['statusText']:_0x5b76be('0xb2e'),'msg':_0x2e5a86[_0x5b76be('0x11fc')]?JSON['stringify'](_0x2e5a86['data'][_0x5b76be('0x15e2')]):_0x2e5a86[_0x5b76be('0x17df')]()});});}function _0x4dbd08(){const _0x4fb5ab=_0x365708;_0x54836b[_0x4fb5ab('0x25be')]=[],_0x383298[_0x4fb5ab('0x216d')][_0x4fb5ab('0x2740')]({'id':_0x54836b['sound']['id']},_0x54836b[_0x4fb5ab('0x216d')])['$promise']['then'](function(_0x775a04){const _0x35d89c=_0x4fb5ab,_0x26c48a=_0x283545()[_0x35d89c('0x20e8')](_0x54836b[_0x35d89c('0x16ca')],{'id':_0x775a04['id']});_0x26c48a&&_0x283545()[_0x35d89c('0x2503')](_0x26c48a,_0x283545()[_0x35d89c('0x41b')](_0x775a04[_0x35d89c('0x1cbf')](),_0x283545()[_0x35d89c('0x2163')](_0x26c48a))),_0x14f943[_0x35d89c('0x173b')]({'title':_0x35d89c('0x23ff'),'msg':_0x54836b['sound'][_0x35d89c('0x1a8d')]?_0x54836b['sound'][_0x35d89c('0x1a8d')]+_0x35d89c('0x24cf'):''}),_0x3ee072(_0x775a04);})[_0x4fb5ab('0x1cb5')](function(_0x52ff43){const _0x30beae=_0x4fb5ab;if(_0x52ff43['data']&&_0x52ff43[_0x30beae('0x11fc')][_0x30beae('0x25be')]&&_0x52ff43[_0x30beae('0x11fc')][_0x30beae('0x25be')][_0x30beae('0x2566')]){_0x54836b['errors']=_0x52ff43[_0x30beae('0x11fc')]['errors']||[{'message':_0x52ff43['toString'](),'type':_0x30beae('0x255d')}];for(let _0xaa0a7d=0x0;_0xaa0a7d<_0x52ff43[_0x30beae('0x11fc')][_0x30beae('0x25be')][_0x30beae('0x2566')];_0xaa0a7d++){_0x14f943[_0x30beae('0x5e8')]({'title':_0x52ff43[_0x30beae('0x11fc')]['errors'][_0xaa0a7d]['type'],'msg':_0x52ff43[_0x30beae('0x11fc')][_0x30beae('0x25be')][_0xaa0a7d][_0x30beae('0x15e2')]});}}else _0x14f943['error']({'title':_0x52ff43[_0x30beae('0x1b51')]?'API:'+_0x52ff43[_0x30beae('0x1b51')]+'\x20-\x20'+_0x52ff43[_0x30beae('0x22ce')]:'api.sound.update','msg':_0x52ff43[_0x30beae('0x11fc')]?JSON[_0x30beae('0x1be0')](_0x52ff43[_0x30beae('0x11fc')][_0x30beae('0x15e2')]):_0x52ff43['toString']()});});}function _0x5a3289(_0x208f5c){const _0x3a8975=_0x365708;_0x54836b[_0x3a8975('0x25be')]=[];const _0x36c6bb=_0x235df8[_0x3a8975('0x112e')]()[_0x3a8975('0x14e4')](_0x3a8975('0x458'))[_0x3a8975('0x1c98')]('The\x20sound\x20will\x20be\x20deleted.')[_0x3a8975('0x10bc')]('Delete\x20Sound')['ok']('Delete')[_0x3a8975('0x1801')](_0x3a8975('0x1481'))['targetEvent'](_0x208f5c);_0x235df8[_0x3a8975('0x2fa')](_0x36c6bb)[_0x3a8975('0x2788')](function(){const _0x41e5ce=_0x3a8975;_0x383298[_0x41e5ce('0x216d')][_0x41e5ce('0x17c4')]({'id':_0x54836b[_0x41e5ce('0x216d')]['id']})['$promise']['then'](function(){const _0x1ff34b=_0x41e5ce;_0x283545()[_0x1ff34b('0x1a90')](_0x54836b[_0x1ff34b('0x16ca')],{'id':_0x54836b[_0x1ff34b('0x216d')]['id']}),_0x14f943[_0x1ff34b('0x173b')]({'title':_0x1ff34b('0x129f'),'msg':(_0x54836b[_0x1ff34b('0x216d')][_0x1ff34b('0x1a8d')]||'sound')+'\x20has\x20been\x20deleted!'}),_0x3ee072(_0x54836b[_0x1ff34b('0x216d')]);})[_0x41e5ce('0x1cb5')](function(_0x4f364c){const _0x264fd2=_0x41e5ce;if(_0x4f364c['data']&&_0x4f364c[_0x264fd2('0x11fc')]['errors']&&_0x4f364c[_0x264fd2('0x11fc')][_0x264fd2('0x25be')][_0x264fd2('0x2566')]){_0x54836b[_0x264fd2('0x25be')]=_0x4f364c[_0x264fd2('0x11fc')][_0x264fd2('0x25be')]||[{'message':_0x4f364c[_0x264fd2('0x17df')](),'type':'api.sound.delete'}];for(let _0x3febb3=0x0;_0x3febb3<_0x4f364c[_0x264fd2('0x11fc')][_0x264fd2('0x25be')][_0x264fd2('0x2566')];_0x3febb3++){_0x14f943[_0x264fd2('0x5e8')]({'title':_0x4f364c[_0x264fd2('0x11fc')][_0x264fd2('0x25be')][_0x3febb3][_0x264fd2('0x1d7')],'msg':_0x4f364c[_0x264fd2('0x11fc')][_0x264fd2('0x25be')][_0x3febb3][_0x264fd2('0x15e2')]});}}else _0x14f943['error']({'title':_0x4f364c[_0x264fd2('0x1b51')]?_0x264fd2('0x15d1')+_0x4f364c[_0x264fd2('0x1b51')]+_0x264fd2('0x1b0b')+_0x4f364c[_0x264fd2('0x22ce')]:_0x264fd2('0xb77'),'msg':_0x4f364c['data']?JSON[_0x264fd2('0x1be0')](_0x4f364c['data']['message']):_0x4f364c[_0x264fd2('0x15e2')]||_0x4f364c[_0x264fd2('0x17df')]()});});},function(){});}function _0x1a0e9e(_0x3c0ab7){return _0x3c0ab7===null?undefined:new Date(_0x3c0ab7);}function _0x3ee072(_0xa94f79){const _0x1df1b2=_0x365708;_0x235df8[_0x1df1b2('0x19d')](_0xa94f79);}}const _0x266aff=_0x38784d,_0x164e95=_0x18dd13['p']+_0x34e79e('0x856'),_0x510ebd=_0x18dd13['p']+_0x34e79e('0x1703');_0x37104e[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x16ca'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api','msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x37104e(_0x118ed0,_0x2dfeee,_0x19f6e0,_0xc23428,_0x3f7da7,_0x15e0d9,_0x2d1e48,_0x76241f,_0xbed515,_0x54a3ea,_0x51a10a,_0x283c1c,_0x5e856d,_0x148f69,_0x565c1f,_0xce216f,_0xb8d208){const _0x4b9b5a=_0x34e79e,_0x3fdeb7=this;_0x3fdeb7['license']=_0xce216f,_0x3fdeb7[_0x4b9b5a('0x1af0')]=_0xb8d208,_0x3fdeb7[_0x4b9b5a('0x9cb')]=_0x565c1f[_0x4b9b5a('0x24cc')](),_0x3fdeb7[_0x4b9b5a('0x16ca')]=_0xbed515||{'count':0x0,'rows':[]},_0x3fdeb7[_0x4b9b5a('0x63c')]=_0x54a3ea,_0x3fdeb7['userProfileSection']=_0x51a10a&&_0x51a10a[_0x4b9b5a('0x338')]==0x1?_0x51a10a[_0x4b9b5a('0x25df')][0x0]:null,_0x3fdeb7[_0x4b9b5a('0xe28')]=_0x565c1f['parseCrudPermissions'](_0x3fdeb7['userProfileSection']?_0x3fdeb7[_0x4b9b5a('0xec9')][_0x4b9b5a('0xe28')]:null),_0x3fdeb7[_0x4b9b5a('0x26a9')]='sounds',_0x3fdeb7['listOrder']='',_0x3fdeb7[_0x4b9b5a('0x25e2')]=null,_0x3fdeb7[_0x4b9b5a('0x702')]=[],_0x3fdeb7[_0x4b9b5a('0x135a')]={'fields':_0x4b9b5a('0x21ab'),'sort':_0x4b9b5a('0x1cee'),'limit':0xa,'page':0x1},_0x3fdeb7[_0x4b9b5a('0x23af')]=_0x33be31,_0x3fdeb7[_0x4b9b5a('0x17f5')]=_0x1d20a3,_0x3fdeb7[_0x4b9b5a('0x1e5')]=_0x395a8e,_0x3fdeb7[_0x4b9b5a('0x173b')]=_0x49c50a,_0x3fdeb7[_0x4b9b5a('0x1b4f')]=_0x242e63,_0x3fdeb7[_0x4b9b5a('0x449')]=_0x28b750,_0x3fdeb7[_0x4b9b5a('0x14da')]=_0x2cfc68,_0x3fdeb7['exportSelectedSounds']=_0x37fc7e,_0x3fdeb7[_0x4b9b5a('0x1623')]=_0x5a4744,_0x3fdeb7['deselectSounds']=_0x24790a,_0x3fdeb7[_0x4b9b5a('0xe55')]=_0xc68cb4,_0x3fdeb7[_0x4b9b5a('0x1ee8')]=_0x50f83f;function _0x33be31(_0x57371f,_0x4bb832){const _0x3311b6=_0x4b9b5a;_0x3f7da7[_0x3311b6('0x2fa')]({'controller':_0x3311b6('0x1bc0'),'controllerAs':'vm','templateUrl':_0x164e95,'parent':angular[_0x3311b6('0x16b1')](_0x15e0d9[_0x3311b6('0x945')]),'targetEvent':_0x4bb832,'clickOutsideToClose':!![],'locals':{'sound':_0x57371f,'sounds':_0x3fdeb7[_0x3311b6('0x16ca')]['rows'],'license':_0x3fdeb7[_0x3311b6('0x130d')],'setting':null,'crudPermissions':_0x3fdeb7['crudPermissions']}});}function _0x1d20a3(_0xe42daf){const _0x1e4cec=_0x4b9b5a;return _0x283c1c[_0x1e4cec('0x216d')]['download']({'id':_0xe42daf['id']})[_0x1e4cec('0x1714')][_0x1e4cec('0x2788')](function(_0x5ddaa0){const _0xf15f73=_0x1e4cec,_0x24a4a6=[_0x5ddaa0[_0xf15f73('0x3f1')]];let _0x18eb54=_0xf15f73('0x1486');const _0x412e04=new Blob(_0x24a4a6,{'type':_0x5ddaa0[_0xf15f73('0x1d7')]});_0x18eb54=_0xe42daf[_0xf15f73('0x2572')]?_0xe42daf[_0xf15f73('0xc52')]+'.'+_0xe42daf[_0xf15f73('0x2572')]:_0xe42daf[_0xf15f73('0xc52')];const _0x413a8e=window[_0xf15f73('0x11c4')]['createElement']('a');_0x413a8e[_0xf15f73('0x1c6b')](_0xf15f73('0x186a'),URL['createObjectURL'](_0x412e04)),_0x413a8e[_0xf15f73('0x1c6b')](_0xf15f73('0x1486'),_0x18eb54),document['body']['appendChild'](_0x413a8e),_0x413a8e['click']();})[_0x1e4cec('0x1cb5')](function(_0x331ee5){const _0x25359b=_0x1e4cec;if(_0x331ee5['data']&&_0x331ee5[_0x25359b('0x11fc')]['errors']&&_0x331ee5[_0x25359b('0x11fc')][_0x25359b('0x25be')][_0x25359b('0x2566')])for(let _0xf12349=0x0;_0xf12349<_0x331ee5[_0x25359b('0x11fc')]['errors'][_0x25359b('0x2566')];_0xf12349++){_0x148f69['error']({'title':_0x331ee5[_0x25359b('0x11fc')][_0x25359b('0x25be')][_0xf12349][_0x25359b('0x1d7')],'msg':_0x331ee5[_0x25359b('0x11fc')]['errors'][_0xf12349][_0x25359b('0x15e2')]});}else _0x148f69[_0x25359b('0x5e8')]({'title':_0x331ee5[_0x25359b('0x1b51')]?'API:'+_0x331ee5['status']+'\x20-\x20'+_0x331ee5[_0x25359b('0x22ce')]:_0x25359b('0xb2e'),'msg':_0x331ee5[_0x25359b('0x11fc')]?JSON[_0x25359b('0x1be0')](_0x331ee5[_0x25359b('0x11fc')]['message']):_0x331ee5[_0x25359b('0x17df')]()});});}function _0x395a8e(_0x41800a,_0x4bfff7){const _0x8a3bed=_0x4b9b5a,_0x27be7c=_0x3f7da7[_0x8a3bed('0x112e')]()['title'](_0x8a3bed('0x2114')+_0x283545()[_0x8a3bed('0x114')]('sound')+'?')[_0x8a3bed('0x93e')](''+(_0x41800a[_0x8a3bed('0x1a8d')]||_0x8a3bed('0x216d'))+_0x8a3bed('0x229e')+_0x8a3bed('0x27c7'))[_0x8a3bed('0x10bc')](_0x8a3bed('0xff0'))['targetEvent'](_0x4bfff7)['ok']('OK')[_0x8a3bed('0x1801')]('CANCEL');_0x3f7da7['show'](_0x27be7c)[_0x8a3bed('0x2788')](function(){_0x2cfc68(_0x41800a);},function(){const _0x14d2f7=_0x8a3bed;console[_0x14d2f7('0x10df')](_0x14d2f7('0x1d8d'));});}let _0xd721c4=!![],_0x4a7c72=0x1;_0x118ed0['$watch'](_0x4b9b5a('0x1569'),function(_0x573f8c,_0x287bb9){const _0x3296f0=_0x4b9b5a;_0xd721c4?_0x2d1e48(function(){_0xd721c4=![];}):(!_0x287bb9&&(_0x4a7c72=_0x3fdeb7[_0x3296f0('0x135a')][_0x3296f0('0x23f5')]),_0x573f8c!==_0x287bb9&&(_0x3fdeb7[_0x3296f0('0x135a')][_0x3296f0('0x23f5')]=0x1),!_0x573f8c&&(_0x3fdeb7[_0x3296f0('0x135a')]['page']=_0x4a7c72),_0x3fdeb7[_0x3296f0('0x1b4f')]());});function _0x49c50a(_0x1b0d81){_0x3fdeb7['sounds']=_0x1b0d81||{'count':0x0,'rows':[]};}function _0x242e63(){const _0x1061c2=_0x4b9b5a;_0x3fdeb7[_0x1061c2('0x135a')][_0x1061c2('0x19e')]=(_0x3fdeb7[_0x1061c2('0x135a')][_0x1061c2('0x23f5')]-0x1)*_0x3fdeb7[_0x1061c2('0x135a')][_0x1061c2('0x68e')],_0x565c1f[_0x1061c2('0x1516')](_0x1061c2('0xe23'))?_0x3fdeb7[_0x1061c2('0x1808')]=_0x283c1c[_0x1061c2('0x216d')][_0x1061c2('0x1335')](_0x3fdeb7[_0x1061c2('0x135a')],_0x49c50a)[_0x1061c2('0x1714')]:(_0x3fdeb7[_0x1061c2('0x135a')]['id']=_0x3fdeb7['userProfile']['id'],_0x3fdeb7[_0x1061c2('0x135a')]['section']=_0x1061c2('0x4c3'),_0x3fdeb7['promise']=_0x283c1c[_0x1061c2('0x63c')]['getResources'](_0x3fdeb7[_0x1061c2('0x135a')],_0x49c50a)[_0x1061c2('0x1714')]);}function _0x28b750(_0x4757b8,_0x53c54c){const _0x258897=_0x4b9b5a;_0x3f7da7[_0x258897('0x2fa')]({'controller':_0x258897('0x1bc0'),'controllerAs':'vm','templateUrl':_0x164e95,'parent':angular[_0x258897('0x16b1')](_0x15e0d9['body']),'targetEvent':_0x4757b8,'clickOutsideToClose':!![],'locals':{'sound':_0x53c54c,'sounds':_0x3fdeb7[_0x258897('0x16ca')][_0x258897('0x25df')],'license':_0x3fdeb7['license'],'setting':_0x3fdeb7['setting'],'crudPermissions':_0x3fdeb7[_0x258897('0xe28')]}});}function _0x2cfc68(_0x226914){const _0x4bfa45=_0x4b9b5a;_0x283c1c[_0x4bfa45('0x216d')][_0x4bfa45('0x17c4')]({'id':_0x226914['id']})[_0x4bfa45('0x1714')]['then'](function(){const _0x59c020=_0x4bfa45;_0x283545()['remove'](_0x3fdeb7[_0x59c020('0x16ca')][_0x59c020('0x25df')],{'id':_0x226914['id']}),_0x3fdeb7[_0x59c020('0x16ca')]['count']-=0x1,!_0x3fdeb7[_0x59c020('0x16ca')][_0x59c020('0x25df')][_0x59c020('0x2566')]&&_0x3fdeb7[_0x59c020('0x1b4f')](),_0x148f69[_0x59c020('0x173b')]({'title':_0x283545()['startCase'](_0x59c020('0x1138'))+_0x59c020('0x20db'),'msg':_0x226914['name']?_0x226914['name']+_0x59c020('0x14d4'):''});})[_0x4bfa45('0x1cb5')](function(_0x53d50f){const _0x5a5209=_0x4bfa45;if(_0x53d50f[_0x5a5209('0x11fc')]&&_0x53d50f[_0x5a5209('0x11fc')][_0x5a5209('0x25be')]&&_0x53d50f['data']['errors']['length']){_0x3fdeb7[_0x5a5209('0x25be')]=_0x53d50f['data'][_0x5a5209('0x25be')]||[{'message':_0x53d50f[_0x5a5209('0x17df')](),'type':_0x5a5209('0x2411')}];for(let _0x17803b=0x0;_0x17803b<_0x53d50f['data'][_0x5a5209('0x25be')][_0x5a5209('0x2566')];_0x17803b++){_0x148f69[_0x5a5209('0x5e8')]({'title':_0x53d50f[_0x5a5209('0x11fc')]['errors'][_0x17803b]['type'],'msg':_0x53d50f['data'][_0x5a5209('0x25be')][_0x17803b][_0x5a5209('0x15e2')]});}}else _0x148f69[_0x5a5209('0x5e8')]({'title':_0x53d50f[_0x5a5209('0x1b51')]?_0x5a5209('0x15d1')+_0x53d50f[_0x5a5209('0x1b51')]+_0x5a5209('0x1b0b')+_0x53d50f[_0x5a5209('0x22ce')]:_0x5a5209('0x2411'),'msg':_0x53d50f[_0x5a5209('0x11fc')]?JSON['stringify'](_0x53d50f[_0x5a5209('0x11fc')]['message']):_0x53d50f[_0x5a5209('0x15e2')]||_0x53d50f[_0x5a5209('0x17df')]()});});}function _0x37fc7e(){const _0x7a1ac3=_0x4b9b5a,_0x4fa759=angular[_0x7a1ac3('0x2669')](_0x3fdeb7['selectedSounds']);return _0x3fdeb7[_0x7a1ac3('0x702')]=[],_0x4fa759;}function _0x5a4744(_0x2bf444){const _0xe2784a=_0x4b9b5a,_0x442cb2=_0x3f7da7[_0xe2784a('0x112e')]()[_0xe2784a('0x14e4')](_0xe2784a('0xa0f'))[_0xe2784a('0x93e')](_0xe2784a('0x1670')+_0x3fdeb7['selectedSounds'][_0xe2784a('0x2566')]+_0xe2784a('0xbd')+_0xe2784a('0x27c7'))['ariaLabel'](_0xe2784a('0x1d3a'))[_0xe2784a('0x24d0')](_0x2bf444)['ok']('OK')[_0xe2784a('0x1801')](_0xe2784a('0x1d8d'));_0x3f7da7[_0xe2784a('0x2fa')](_0x442cb2)['then'](function(){const _0x52e6d2=_0xe2784a;_0x3fdeb7[_0x52e6d2('0x702')][_0x52e6d2('0x1534')](function(_0x49ab7b){_0x2cfc68(_0x49ab7b);}),_0x3fdeb7['selectedSounds']=[];});}function _0x24790a(){const _0x574e5a=_0x4b9b5a;_0x3fdeb7[_0x574e5a('0x702')]=[];}function _0xc68cb4(){const _0x4eff74=_0x4b9b5a;_0x3fdeb7[_0x4eff74('0x702')]=_0x3fdeb7[_0x4eff74('0x16ca')][_0x4eff74('0x25df')];}function _0x50f83f(_0x12f190){const _0x2ae756=_0x4b9b5a;_0x3f7da7['show']({'controller':_0x2ae756('0xd4f'),'controllerAs':'vm','templateUrl':_0x510ebd,'parent':angular[_0x2ae756('0x16b1')](_0x15e0d9[_0x2ae756('0x945')]),'targetEvent':_0x12f190,'clickOutsideToClose':!![],'locals':{'sounds':_0x3fdeb7[_0x2ae756('0x16ca')][_0x2ae756('0x25df')]}});}}const _0x383239=_0x37104e;_0x588942[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'$mdDialog',_0x34e79e('0xd57'),_0x34e79e('0x16ca'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x588942(_0x4d4029,_0x510216,_0x1eb4c2,_0xe4caf6,_0x1e34d7,_0x3c83af){const _0x2accab=_0x34e79e,_0x29cfe2=this,_0x397007=0xf,_0x5584d1=_0x397007*0x400*0x400;_0x29cfe2[_0x2accab('0x9cb')]=_0x3c83af['getCurrentUser'](),_0x29cfe2['errors']=[],_0x29cfe2['title']='TOOLS.UPLOAD_SOUND',_0x29cfe2[_0x2accab('0x16ca')]=_0xe4caf6,_0x29cfe2[_0x2accab('0x20cb')]=[],_0x29cfe2[_0x2accab('0x2774')]=_0x2accab('0x1dc'),_0x29cfe2[_0x2accab('0x216d')]={},_0x29cfe2[_0x2accab('0x1fce')]={'maxChunkRetries':0x1,'chunkSize':_0x5584d1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x2accab('0x26b5')},_0x29cfe2['ngFlow']={'flow':{}},_0x29cfe2[_0x2accab('0x189a')]=![],_0x29cfe2[_0x2accab('0x1573')]=_0x551e76,_0x29cfe2[_0x2accab('0x1b63')]=_0x2cf729,_0x29cfe2[_0x2accab('0xc41')]=_0x26c6bc,_0x29cfe2['uploadError']=_0x653e28,_0x29cfe2[_0x2accab('0x21d1')]=_0x4d881f,_0x29cfe2[_0x2accab('0xca7')]=_0x257668;function _0x551e76(_0x3a2726){const _0x180dc2=_0x2accab,_0x29ec6d=[_0x180dc2('0x1c99'),_0x180dc2('0x127d'),_0x180dc2('0x14c1')];if(!_0x283545()['includes'](_0x29ec6d,_0x3a2726[_0x180dc2('0xa31')]()))return _0x1eb4c2['error']({'title':'Invalid\x20extension:\x20'+_0x3a2726[_0x180dc2('0xa31')](),'msg':'Supported\x20extension:\x20'+_0x29ec6d[_0x180dc2('0x185f')]()}),![];if(_0x3a2726[_0x180dc2('0x634')]>_0x5584d1)return _0x1eb4c2['error']({'title':_0x180dc2('0x6e8'),'msg':_0x180dc2('0x232c')+_0x397007+'MB'}),![];return _0x29cfe2[_0x180dc2('0x216d')]={'id':_0x3a2726[_0x180dc2('0x7c8')],'file':_0x3a2726},_0x29cfe2[_0x180dc2('0x20cb')]['unshift'](_0x29cfe2[_0x180dc2('0x216d')]),!![];}function _0x2cf729(){const _0x432ea2=_0x2accab;_0x29cfe2[_0x432ea2('0x2774')]=_0x432ea2('0x1c20'),_0x29cfe2[_0x432ea2('0x2793')][_0x432ea2('0x8a4')][_0x432ea2('0xcc6')][_0x432ea2('0x186d')]={'X-Requested-With':_0x432ea2('0xa34'),'Authorization':_0x432ea2('0xf2f')+_0x4d4029[_0x432ea2('0x1335')](_0x432ea2('0x2eb'))},_0x29cfe2['ngFlow']['flow'][_0x432ea2('0xcc6')][_0x432ea2('0x135a')]={'role':_0x29cfe2['currentUser']['role'],'userProfileId':_0x29cfe2[_0x432ea2('0x9cb')][_0x432ea2('0x237f')]},_0x29cfe2['ngFlow']['flow'][_0x432ea2('0x1b63')]();}function _0x26c6bc(_0x7c744a,_0x38626c){const _0x78706c=_0x2accab;_0x29cfe2[_0x78706c('0x16ca')][_0x78706c('0xc51')](JSON['parse'](_0x38626c)),angular[_0x78706c('0x1534')](_0x29cfe2[_0x78706c('0x20cb')],function(_0x25d833){const _0xecad62=_0x78706c;if(_0x25d833['id']===_0x7c744a[_0xecad62('0x7c8')]){const _0x3fdb80=new FileReader();_0x3fdb80['readAsDataURL'](_0x25d833['file'][_0xecad62('0x3d5')]),_0x3fdb80['onload']=function(_0x5eb9bc){const _0x102834=_0xecad62;_0x25d833[_0x102834('0x1672')]=_0x5eb9bc[_0x102834('0x159c')][_0x102834('0xdb9')];};}});}function _0x653e28(){const _0xf21917=_0x2accab;_0x29cfe2[_0xf21917('0x2793')][_0xf21917('0x8a4')]['cancel'](),_0x1eb4c2[_0xf21917('0x5e8')]({'title':_0xf21917('0xe32'),'msg':_0xf21917('0x2a7')}),_0x29cfe2[_0xf21917('0x2774')]=_0xf21917('0x1209');}function _0x4d881f(){const _0x1955c3=_0x2accab;_0x29cfe2[_0x1955c3('0x2774')]!==_0x1955c3('0x1209')&&(_0x29cfe2[_0x1955c3('0x2774')]=_0x1955c3('0xc96'),_0x1eb4c2[_0x1955c3('0x173b')]({'title':_0x1955c3('0x3ec'),'msg':_0x29cfe2[_0x1955c3('0x216d')]['file'][_0x1955c3('0x1a8d')]+_0x1955c3('0x2ae')}));}function _0x257668(){const _0x505dd4=_0x2accab;_0x510216[_0x505dd4('0x19d')]();}}const _0x141384=_0x588942;_0x166c4f[_0x34e79e('0x2d9')]=['$scope','$state',_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0xe45'),'tag',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x166c4f(_0x5e26f5,_0x1bf93b,_0x15475c,_0x3c874e,_0x47f69c,_0x3c960d,_0x454da1,_0xe94793,_0xc19798,_0x5e0cca,_0x132048,_0x377483,_0x11009f,_0x2f0ca0){const _0x40e15a=_0x34e79e,_0x24d94f=this;_0x24d94f['currentUser']=_0x132048['getCurrentUser'](),_0x24d94f[_0x40e15a('0x25be')]=[],_0x24d94f[_0x40e15a('0x1af0')]=_0x11009f,_0x24d94f[_0x40e15a('0x130d')]=_0x377483,_0x24d94f[_0x40e15a('0xe28')]=_0x2f0ca0,_0x24d94f[_0x40e15a('0x1193')]={},_0x24d94f[_0x40e15a('0x18ad')]=_0x24d94f[_0x40e15a('0x1af0')]&&_0x24d94f[_0x40e15a('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x24d94f['title']=_0x40e15a('0x10b7'),_0x24d94f[_0x40e15a('0x1764')]=angular[_0x40e15a('0x2669')](_0xc19798),_0x24d94f[_0x40e15a('0xe45')]=_0xe94793,_0x24d94f[_0x40e15a('0x20eb')]=![];!_0x24d94f['tag']&&(_0x24d94f[_0x40e15a('0x1764')]={},_0x24d94f[_0x40e15a('0x14e4')]=_0x40e15a('0x8a9'),_0x24d94f[_0x40e15a('0x20eb')]=!![]);_0x24d94f[_0x40e15a('0x1945')]=_0x30b55e,_0x24d94f[_0x40e15a('0x751')]=_0x921333,_0x24d94f['deleteTag']=_0x506485,_0x24d94f[_0x40e15a('0x2601')]=_0x4e6c67,_0x24d94f['closeDialog']=_0x87f7fe;function _0x30b55e(){const _0x4e3c2f=_0x40e15a;_0x24d94f[_0x4e3c2f('0x25be')]=[],_0x5e0cca[_0x4e3c2f('0x1764')][_0x4e3c2f('0xbd0')](_0x24d94f[_0x4e3c2f('0x1764')])['$promise'][_0x4e3c2f('0x2788')](function(_0x271c74){const _0x4721a8=_0x4e3c2f;_0x24d94f[_0x4721a8('0xe45')][_0x4721a8('0xc51')](_0x271c74[_0x4721a8('0x1cbf')]()),_0x454da1['success']({'title':_0x4721a8('0x1a4'),'msg':_0x24d94f[_0x4721a8('0x1764')]['name']?_0x24d94f['tag'][_0x4721a8('0x1a8d')]+_0x4721a8('0x1e4a'):''}),_0x87f7fe(_0x271c74);})[_0x4e3c2f('0x1cb5')](function(_0x18f965){const _0x1e0cff=_0x4e3c2f;if(_0x18f965[_0x1e0cff('0x11fc')]&&_0x18f965[_0x1e0cff('0x11fc')]['errors']&&_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x25be')][_0x1e0cff('0x2566')]){_0x24d94f['errors']=_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x25be')]||[{'message':_0x18f965['toString'](),'type':_0x1e0cff('0x67d')}];for(let _0x1e228c=0x0;_0x1e228c<_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x25be')][_0x1e0cff('0x2566')];_0x1e228c+=0x1){_0x454da1[_0x1e0cff('0x5e8')]({'title':_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x25be')][_0x1e228c][_0x1e0cff('0x1d7')],'msg':_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x25be')][_0x1e228c][_0x1e0cff('0x15e2')]});}}else _0x454da1[_0x1e0cff('0x5e8')]({'title':_0x18f965[_0x1e0cff('0x1b51')]?_0x1e0cff('0x15d1')+_0x18f965[_0x1e0cff('0x1b51')]+_0x1e0cff('0x1b0b')+_0x18f965['statusText']:_0x1e0cff('0x67d'),'msg':_0x18f965['data']?JSON[_0x1e0cff('0x1be0')](_0x18f965[_0x1e0cff('0x11fc')][_0x1e0cff('0x15e2')]):_0x18f965[_0x1e0cff('0x17df')]()});});}function _0x921333(){const _0x147027=_0x40e15a;_0x24d94f[_0x147027('0x25be')]=[],_0x5e0cca[_0x147027('0x1764')][_0x147027('0x2740')]({'id':_0x24d94f[_0x147027('0x1764')]['id']},_0x24d94f[_0x147027('0x1764')])[_0x147027('0x1714')][_0x147027('0x2788')](function(_0x13df86){const _0x501f31=_0x147027,_0x40f770=_0x283545()[_0x501f31('0x20e8')](_0x24d94f['tags'],{'id':_0x13df86['id']});_0x40f770&&_0x283545()['merge'](_0x40f770,_0x283545()[_0x501f31('0x41b')](_0x13df86[_0x501f31('0x1cbf')](),_0x283545()[_0x501f31('0x2163')](_0x40f770))),_0x454da1['success']({'title':_0x501f31('0x296'),'msg':_0x24d94f[_0x501f31('0x1764')][_0x501f31('0x1a8d')]?_0x24d94f[_0x501f31('0x1764')]['name']+_0x501f31('0x24cf'):''}),_0x87f7fe(_0x13df86);})[_0x147027('0x1cb5')](function(_0x3ad378){const _0x7ebe9d=_0x147027;if(_0x3ad378[_0x7ebe9d('0x11fc')]&&_0x3ad378[_0x7ebe9d('0x11fc')][_0x7ebe9d('0x25be')]&&_0x3ad378[_0x7ebe9d('0x11fc')]['errors'][_0x7ebe9d('0x2566')]){_0x24d94f[_0x7ebe9d('0x25be')]=_0x3ad378[_0x7ebe9d('0x11fc')][_0x7ebe9d('0x25be')]||[{'message':_0x3ad378['toString'](),'type':_0x7ebe9d('0xf9c')}];for(let _0x20cbb9=0x0;_0x20cbb9<_0x3ad378[_0x7ebe9d('0x11fc')][_0x7ebe9d('0x25be')]['length'];_0x20cbb9++){_0x454da1[_0x7ebe9d('0x5e8')]({'title':_0x3ad378[_0x7ebe9d('0x11fc')]['errors'][_0x20cbb9][_0x7ebe9d('0x1d7')],'msg':_0x3ad378[_0x7ebe9d('0x11fc')][_0x7ebe9d('0x25be')][_0x20cbb9][_0x7ebe9d('0x15e2')]});}}else _0x454da1['error']({'title':_0x3ad378[_0x7ebe9d('0x1b51')]?_0x7ebe9d('0x15d1')+_0x3ad378['status']+_0x7ebe9d('0x1b0b')+_0x3ad378[_0x7ebe9d('0x22ce')]:_0x7ebe9d('0xf9c'),'msg':_0x3ad378[_0x7ebe9d('0x11fc')]?JSON['stringify'](_0x3ad378[_0x7ebe9d('0x11fc')][_0x7ebe9d('0x15e2')]):_0x3ad378[_0x7ebe9d('0x17df')]()});});}function _0x506485(_0x5b118d){const _0x5eb8b0=_0x40e15a;_0x24d94f['errors']=[];const _0x59fda6=_0x3c874e['confirm']()[_0x5eb8b0('0x14e4')](_0x5eb8b0('0x458'))[_0x5eb8b0('0x1c98')]('The\x20tag\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Tag')['ok'](_0x5eb8b0('0x2786'))[_0x5eb8b0('0x1801')]('Cancel')[_0x5eb8b0('0x24d0')](_0x5b118d);_0x3c874e[_0x5eb8b0('0x2fa')](_0x59fda6)[_0x5eb8b0('0x2788')](function(){const _0x28116d=_0x5eb8b0;_0x5e0cca[_0x28116d('0x1764')][_0x28116d('0x17c4')]({'id':_0x24d94f['tag']['id']})[_0x28116d('0x1714')][_0x28116d('0x2788')](function(){const _0x34f42f=_0x28116d;_0x283545()[_0x34f42f('0x1a90')](_0x24d94f[_0x34f42f('0xe45')],{'id':_0x24d94f[_0x34f42f('0x1764')]['id']}),_0x454da1[_0x34f42f('0x173b')]({'title':_0x34f42f('0x108e'),'msg':(_0x24d94f[_0x34f42f('0x1764')]['name']||_0x34f42f('0x1764'))+_0x34f42f('0x14d4')}),_0x87f7fe(_0x24d94f[_0x34f42f('0x1764')]);})['catch'](function(_0x573b3f){const _0x1829e5=_0x28116d;if(_0x573b3f[_0x1829e5('0x11fc')]&&_0x573b3f[_0x1829e5('0x11fc')][_0x1829e5('0x25be')]&&_0x573b3f['data'][_0x1829e5('0x25be')][_0x1829e5('0x2566')]){_0x24d94f[_0x1829e5('0x25be')]=_0x573b3f[_0x1829e5('0x11fc')][_0x1829e5('0x25be')]||[{'message':_0x573b3f[_0x1829e5('0x17df')](),'type':_0x1829e5('0x2654')}];for(let _0x32c9e5=0x0;_0x32c9e5<_0x573b3f['data'][_0x1829e5('0x25be')][_0x1829e5('0x2566')];_0x32c9e5++){_0x454da1[_0x1829e5('0x5e8')]({'title':_0x573b3f[_0x1829e5('0x11fc')][_0x1829e5('0x25be')][_0x32c9e5][_0x1829e5('0x1d7')],'msg':_0x573b3f[_0x1829e5('0x11fc')][_0x1829e5('0x25be')][_0x32c9e5][_0x1829e5('0x15e2')]});}}else _0x454da1[_0x1829e5('0x5e8')]({'title':_0x573b3f[_0x1829e5('0x1b51')]?_0x1829e5('0x15d1')+_0x573b3f[_0x1829e5('0x1b51')]+'\x20-\x20'+_0x573b3f['statusText']:'api.tag.delete','msg':_0x573b3f['data']?JSON[_0x1829e5('0x1be0')](_0x573b3f['data']['message']):_0x573b3f[_0x1829e5('0x15e2')]||_0x573b3f['toString']()});});},function(){});}function _0x4e6c67(_0xde3b8a){return _0xde3b8a===null?undefined:new Date(_0xde3b8a);}function _0x87f7fe(_0x15d403){const _0x16f4af=_0x40e15a;_0x3c874e[_0x16f4af('0x19d')](_0x15d403);}}const _0x1dbc29=_0x166c4f,_0x3dda75=_0x18dd13['p']+_0x34e79e('0x1b28');_0x6d7a02[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0xe45'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x6d7a02(_0x11751a,_0x466160,_0x33feae,_0x3a35ce,_0xd50308,_0x33513b,_0x5d5200,_0x33f466,_0x450251,_0x33db0a,_0x3541ee,_0x31f88d,_0x2c8277,_0x3f72e5,_0x178c89,_0x5ea916,_0x5c0b91){const _0x44fcef=_0x34e79e,_0x56c8d6=this;_0x56c8d6['license']=_0x5ea916,_0x56c8d6[_0x44fcef('0x1af0')]=_0x5c0b91,_0x56c8d6[_0x44fcef('0x9cb')]=_0x178c89['getCurrentUser'](),_0x56c8d6[_0x44fcef('0xe45')]=_0x450251||{'count':0x0,'rows':[]},_0x56c8d6[_0x44fcef('0x63c')]=_0x33db0a,_0x56c8d6[_0x44fcef('0xec9')]=_0x3541ee&&_0x3541ee[_0x44fcef('0x338')]==0x1?_0x3541ee[_0x44fcef('0x25df')][0x0]:null,_0x56c8d6[_0x44fcef('0xe28')]=_0x178c89[_0x44fcef('0x157e')](_0x56c8d6['userProfileSection']?_0x56c8d6[_0x44fcef('0xec9')][_0x44fcef('0xe28')]:null),_0x56c8d6['table']=_0x44fcef('0xe45'),_0x56c8d6[_0x44fcef('0x2278')]='',_0x56c8d6['listOrderAsc']=null,_0x56c8d6[_0x44fcef('0xf6c')]=[],_0x56c8d6[_0x44fcef('0x135a')]={'fields':'createdAt,updatedAt,id,name,description,color','sort':'-updatedAt','limit':0xa,'page':0x1},_0x56c8d6[_0x44fcef('0x23af')]=_0x439999,_0x56c8d6[_0x44fcef('0x1e5')]=_0x22e7e8,_0x56c8d6[_0x44fcef('0x173b')]=_0x2c5e84,_0x56c8d6['getTags']=_0x22dc39,_0x56c8d6['createOrEditTag']=_0x3013b6,_0x56c8d6[_0x44fcef('0x1fb3')]=_0x5afbbe,_0x56c8d6[_0x44fcef('0xc10')]=_0x24447c,_0x56c8d6[_0x44fcef('0x710')]=_0x357975,_0x56c8d6[_0x44fcef('0x8e9')]=_0x39d285,_0x56c8d6[_0x44fcef('0xf0a')]=_0x56c075;function _0x439999(_0x1939c8,_0x1cc64e){const _0x47507c=_0x44fcef;_0xd50308[_0x47507c('0x2fa')]({'controller':_0x47507c('0x49e'),'controllerAs':'vm','templateUrl':_0x3dda75,'parent':angular[_0x47507c('0x16b1')](_0x33513b['body']),'targetEvent':_0x1cc64e,'clickOutsideToClose':!![],'locals':{'tag':_0x1939c8,'tags':_0x56c8d6[_0x47507c('0xe45')]['rows'],'license':_0x56c8d6[_0x47507c('0x130d')],'setting':null,'crudPermissions':_0x56c8d6[_0x47507c('0xe28')]}});}function _0x22e7e8(_0x274bec,_0x1a417c){const _0x4220e5=_0x44fcef,_0x1de6e5=_0xd50308['confirm']()[_0x4220e5('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x4220e5('0x114')](_0x4220e5('0x1764'))+'?')['htmlContent'](_0x4220e5('0x1670')+(_0x274bec[_0x4220e5('0x1a8d')]||_0x4220e5('0x1764'))+_0x4220e5('0x229e')+_0x4220e5('0x27c7'))[_0x4220e5('0x10bc')](_0x4220e5('0x27fe'))[_0x4220e5('0x24d0')](_0x1a417c)['ok']('OK')[_0x4220e5('0x1801')](_0x4220e5('0x1d8d'));_0xd50308[_0x4220e5('0x2fa')](_0x1de6e5)[_0x4220e5('0x2788')](function(){_0x5afbbe(_0x274bec);},function(){const _0x532ca1=_0x4220e5;console['log'](_0x532ca1('0x1d8d'));});}let _0x385469=!![],_0x55967f=0x1;_0x11751a[_0x44fcef('0x1662')](_0x44fcef('0x1569'),function(_0x202f59,_0xb3692c){const _0x394a24=_0x44fcef;_0x385469?_0x5d5200(function(){_0x385469=![];}):(!_0xb3692c&&(_0x55967f=_0x56c8d6['query'][_0x394a24('0x23f5')]),_0x202f59!==_0xb3692c&&(_0x56c8d6[_0x394a24('0x135a')][_0x394a24('0x23f5')]=0x1),!_0x202f59&&(_0x56c8d6[_0x394a24('0x135a')][_0x394a24('0x23f5')]=_0x55967f),_0x56c8d6[_0x394a24('0x1c39')]());});function _0x2c5e84(_0x32904e){const _0x1c557c=_0x44fcef;_0x56c8d6[_0x1c557c('0xe45')]=_0x32904e||{'count':0x0,'rows':[]};}function _0x22dc39(){const _0x5c6b62=_0x44fcef;_0x56c8d6[_0x5c6b62('0x135a')][_0x5c6b62('0x19e')]=(_0x56c8d6['query'][_0x5c6b62('0x23f5')]-0x1)*_0x56c8d6[_0x5c6b62('0x135a')][_0x5c6b62('0x68e')],_0x178c89[_0x5c6b62('0x1516')](_0x5c6b62('0xe23'))?_0x56c8d6[_0x5c6b62('0x1808')]=_0x31f88d['tag'][_0x5c6b62('0x1335')](_0x56c8d6[_0x5c6b62('0x135a')],_0x2c5e84)[_0x5c6b62('0x1714')]:(_0x56c8d6[_0x5c6b62('0x135a')]['id']=_0x56c8d6[_0x5c6b62('0x63c')]['id'],_0x56c8d6[_0x5c6b62('0x135a')][_0x5c6b62('0xb13')]=_0x5c6b62('0xbcf'),_0x56c8d6[_0x5c6b62('0x1808')]=_0x31f88d[_0x5c6b62('0x63c')]['getResources'](_0x56c8d6[_0x5c6b62('0x135a')],_0x2c5e84)['$promise']);}function _0x3013b6(_0xba3424,_0x56ab7a){const _0x2a487f=_0x44fcef;_0xd50308[_0x2a487f('0x2fa')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x3dda75,'parent':angular['element'](_0x33513b['body']),'targetEvent':_0xba3424,'clickOutsideToClose':!![],'locals':{'tag':_0x56ab7a,'tags':_0x56c8d6[_0x2a487f('0xe45')][_0x2a487f('0x25df')],'license':_0x56c8d6[_0x2a487f('0x130d')],'setting':_0x56c8d6[_0x2a487f('0x1af0')],'crudPermissions':_0x56c8d6['crudPermissions']}});}function _0x5afbbe(_0x52d233){const _0x1013f4=_0x44fcef;_0x31f88d[_0x1013f4('0x1764')][_0x1013f4('0x17c4')]({'id':_0x52d233['id']})[_0x1013f4('0x1714')]['then'](function(){const _0x35d2d5=_0x1013f4;_0x283545()['remove'](_0x56c8d6[_0x35d2d5('0xe45')][_0x35d2d5('0x25df')],{'id':_0x52d233['id']}),_0x56c8d6['tags'][_0x35d2d5('0x338')]-=0x1,!_0x56c8d6['tags'][_0x35d2d5('0x25df')]['length']&&_0x56c8d6['getTags'](),_0x3f72e5[_0x35d2d5('0x173b')]({'title':_0x283545()[_0x35d2d5('0x114')]('Tag')+_0x35d2d5('0x20db'),'msg':_0x52d233[_0x35d2d5('0x1a8d')]?_0x52d233['name']+_0x35d2d5('0x14d4'):''});})[_0x1013f4('0x1cb5')](function(_0x32672e){const _0x4d3c40=_0x1013f4;if(_0x32672e[_0x4d3c40('0x11fc')]&&_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')]&&_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')][_0x4d3c40('0x2566')]){_0x56c8d6['errors']=_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')]||[{'message':_0x32672e[_0x4d3c40('0x17df')](),'type':_0x4d3c40('0x181a')}];for(let _0x422e88=0x0;_0x422e88<_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')][_0x4d3c40('0x2566')];_0x422e88++){_0x3f72e5[_0x4d3c40('0x5e8')]({'title':_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')][_0x422e88]['type'],'msg':_0x32672e[_0x4d3c40('0x11fc')][_0x4d3c40('0x25be')][_0x422e88][_0x4d3c40('0x15e2')]});}}else _0x3f72e5[_0x4d3c40('0x5e8')]({'title':_0x32672e[_0x4d3c40('0x1b51')]?_0x4d3c40('0x15d1')+_0x32672e['status']+_0x4d3c40('0x1b0b')+_0x32672e[_0x4d3c40('0x22ce')]:_0x4d3c40('0x181a'),'msg':_0x32672e[_0x4d3c40('0x11fc')]?JSON[_0x4d3c40('0x1be0')](_0x32672e['data'][_0x4d3c40('0x15e2')]):_0x32672e[_0x4d3c40('0x15e2')]||_0x32672e[_0x4d3c40('0x17df')]()});});}function _0x24447c(){const _0x29e78a=_0x44fcef,_0xf0e862=angular[_0x29e78a('0x2669')](_0x56c8d6[_0x29e78a('0xf6c')]);return _0x56c8d6[_0x29e78a('0xf6c')]=[],_0xf0e862;}function _0x357975(_0x53fe40){const _0x84e45c=_0x44fcef,_0x4440a1=_0xd50308[_0x84e45c('0x112e')]()[_0x84e45c('0x14e4')](_0x84e45c('0x1b0f'))[_0x84e45c('0x93e')](_0x84e45c('0x1670')+_0x56c8d6[_0x84e45c('0xf6c')][_0x84e45c('0x2566')]+_0x84e45c('0xbd')+_0x84e45c('0x27c7'))['ariaLabel']('delete\x20Tags')[_0x84e45c('0x24d0')](_0x53fe40)['ok']('OK')[_0x84e45c('0x1801')](_0x84e45c('0x1d8d'));_0xd50308[_0x84e45c('0x2fa')](_0x4440a1)['then'](function(){const _0x54815d=_0x84e45c;_0x56c8d6[_0x54815d('0xf6c')][_0x54815d('0x1534')](function(_0x408e0d){_0x5afbbe(_0x408e0d);}),_0x56c8d6[_0x54815d('0xf6c')]=[];});}function _0x39d285(){_0x56c8d6['selectedTags']=[];}function _0x56c075(){const _0x439bfb=_0x44fcef;_0x56c8d6[_0x439bfb('0xf6c')]=_0x56c8d6[_0x439bfb('0xe45')][_0x439bfb('0x25df')];}}const _0x473d14=_0x6d7a02;_0x3be33b[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),'templates',_0x34e79e('0x2273'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x3be33b(_0xd75b57,_0x372b14,_0xb9436a,_0x5b1c3f,_0x89a6ff,_0x23ef32,_0x4f2b7c,_0xabed8c,_0xd38d3b,_0x5b644d,_0xf2d50e,_0x5c1661,_0x5107b7,_0x14e53b){const _0x1b5482=_0x34e79e,_0x517912=this;_0x517912[_0x1b5482('0x9cb')]=_0xf2d50e[_0x1b5482('0x24cc')](),_0x517912['errors']=[],_0x517912[_0x1b5482('0x1af0')]=_0x5107b7,_0x517912[_0x1b5482('0x130d')]=_0x5c1661,_0x517912['crudPermissions']=_0x14e53b,_0x517912[_0x1b5482('0x1193')]={},_0x517912['passwordPattern']=_0x517912['setting']&&_0x517912[_0x1b5482('0x1af0')][_0x1b5482('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x517912[_0x1b5482('0x14e4')]=_0x1b5482('0x10e0'),_0x517912[_0x1b5482('0x2273')]=angular[_0x1b5482('0x2669')](_0xd38d3b),_0x517912[_0x1b5482('0x1f48')]=_0xabed8c,_0x517912[_0x1b5482('0x2798')]=![];!_0x517912[_0x1b5482('0x2273')]&&(_0x517912[_0x1b5482('0x2273')]={},_0x517912['title']=_0x1b5482('0x2759'),_0x517912[_0x1b5482('0x2798')]=!![]);_0x517912[_0x1b5482('0x20f8')]=_0x1331a0,_0x517912['saveTemplate']=_0x44de3a,_0x517912['deleteTemplate']=_0x389183,_0x517912[_0x1b5482('0x2601')]=_0x2dda86,_0x517912[_0x1b5482('0xca7')]=_0x1cb245;function _0x1331a0(){const _0x320ce3=_0x1b5482;_0x517912[_0x320ce3('0x25be')]=[],_0x5b644d[_0x320ce3('0x2273')][_0x320ce3('0xbd0')](_0x517912[_0x320ce3('0x2273')])['$promise'][_0x320ce3('0x2788')](function(_0x14699f){const _0x2709ad=_0x320ce3;_0x517912[_0x2709ad('0x1f48')][_0x2709ad('0xc51')](_0x14699f['toJSON']()),_0x4f2b7c[_0x2709ad('0x173b')]({'title':'Template\x20properly\x20created','msg':_0x517912[_0x2709ad('0x2273')][_0x2709ad('0x1a8d')]?_0x517912[_0x2709ad('0x2273')][_0x2709ad('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x1cb245(_0x14699f);})[_0x320ce3('0x1cb5')](function(_0x1a5c83){const _0x3ba914=_0x320ce3;if(_0x1a5c83[_0x3ba914('0x11fc')]&&_0x1a5c83[_0x3ba914('0x11fc')][_0x3ba914('0x25be')]&&_0x1a5c83[_0x3ba914('0x11fc')]['errors'][_0x3ba914('0x2566')]){_0x517912['errors']=_0x1a5c83[_0x3ba914('0x11fc')][_0x3ba914('0x25be')]||[{'message':_0x1a5c83[_0x3ba914('0x17df')](),'type':_0x3ba914('0x16cb')}];for(let _0x1bfdb0=0x0;_0x1bfdb0<_0x1a5c83['data'][_0x3ba914('0x25be')][_0x3ba914('0x2566')];_0x1bfdb0+=0x1){_0x4f2b7c['error']({'title':_0x1a5c83['data'][_0x3ba914('0x25be')][_0x1bfdb0][_0x3ba914('0x1d7')],'msg':_0x1a5c83[_0x3ba914('0x11fc')]['errors'][_0x1bfdb0][_0x3ba914('0x15e2')]});}}else _0x4f2b7c[_0x3ba914('0x5e8')]({'title':_0x1a5c83[_0x3ba914('0x1b51')]?_0x3ba914('0x15d1')+_0x1a5c83[_0x3ba914('0x1b51')]+'\x20-\x20'+_0x1a5c83[_0x3ba914('0x22ce')]:_0x3ba914('0x16cb'),'msg':_0x1a5c83[_0x3ba914('0x11fc')]?JSON[_0x3ba914('0x1be0')](_0x1a5c83[_0x3ba914('0x11fc')][_0x3ba914('0x15e2')]):_0x1a5c83[_0x3ba914('0x17df')]()});});}function _0x44de3a(){const _0x8dc0d1=_0x1b5482;_0x517912[_0x8dc0d1('0x25be')]=[],_0x5b644d['template'][_0x8dc0d1('0x2740')]({'id':_0x517912[_0x8dc0d1('0x2273')]['id']},_0x517912[_0x8dc0d1('0x2273')])[_0x8dc0d1('0x1714')][_0x8dc0d1('0x2788')](function(_0x59532f){const _0x260a87=_0x8dc0d1,_0xcf43a8=_0x283545()[_0x260a87('0x20e8')](_0x517912[_0x260a87('0x1f48')],{'id':_0x59532f['id']});_0xcf43a8&&_0x283545()[_0x260a87('0x2503')](_0xcf43a8,_0x283545()[_0x260a87('0x41b')](_0x59532f['toJSON'](),_0x283545()[_0x260a87('0x2163')](_0xcf43a8))),_0x4f2b7c[_0x260a87('0x173b')]({'title':'Template\x20properly\x20saved!','msg':_0x517912[_0x260a87('0x2273')][_0x260a87('0x1a8d')]?_0x517912[_0x260a87('0x2273')][_0x260a87('0x1a8d')]+_0x260a87('0x24cf'):''}),_0x1cb245(_0x59532f);})[_0x8dc0d1('0x1cb5')](function(_0x491dde){const _0x533cb1=_0x8dc0d1;if(_0x491dde[_0x533cb1('0x11fc')]&&_0x491dde['data'][_0x533cb1('0x25be')]&&_0x491dde[_0x533cb1('0x11fc')][_0x533cb1('0x25be')][_0x533cb1('0x2566')]){_0x517912['errors']=_0x491dde[_0x533cb1('0x11fc')][_0x533cb1('0x25be')]||[{'message':_0x491dde[_0x533cb1('0x17df')](),'type':_0x533cb1('0x2618')}];for(let _0x4387f9=0x0;_0x4387f9<_0x491dde['data'][_0x533cb1('0x25be')][_0x533cb1('0x2566')];_0x4387f9++){_0x4f2b7c[_0x533cb1('0x5e8')]({'title':_0x491dde['data'][_0x533cb1('0x25be')][_0x4387f9][_0x533cb1('0x1d7')],'msg':_0x491dde['data'][_0x533cb1('0x25be')][_0x4387f9][_0x533cb1('0x15e2')]});}}else _0x4f2b7c['error']({'title':_0x491dde[_0x533cb1('0x1b51')]?_0x533cb1('0x15d1')+_0x491dde['status']+'\x20-\x20'+_0x491dde['statusText']:'api.template.update','msg':_0x491dde[_0x533cb1('0x11fc')]?JSON['stringify'](_0x491dde[_0x533cb1('0x11fc')][_0x533cb1('0x15e2')]):_0x491dde['toString']()});});}function _0x389183(_0xd685ba){const _0x53d392=_0x1b5482;_0x517912[_0x53d392('0x25be')]=[];const _0x1f166b=_0x5b1c3f[_0x53d392('0x112e')]()['title'](_0x53d392('0x458'))[_0x53d392('0x1c98')](_0x53d392('0x10c2'))[_0x53d392('0x10bc')](_0x53d392('0x216b'))['ok'](_0x53d392('0x2786'))[_0x53d392('0x1801')](_0x53d392('0x1481'))[_0x53d392('0x24d0')](_0xd685ba);_0x5b1c3f[_0x53d392('0x2fa')](_0x1f166b)['then'](function(){const _0x5e2ae8=_0x53d392;_0x5b644d[_0x5e2ae8('0x2273')][_0x5e2ae8('0x17c4')]({'id':_0x517912[_0x5e2ae8('0x2273')]['id']})['$promise'][_0x5e2ae8('0x2788')](function(){const _0x2c6f12=_0x5e2ae8;_0x283545()['remove'](_0x517912[_0x2c6f12('0x1f48')],{'id':_0x517912[_0x2c6f12('0x2273')]['id']}),_0x4f2b7c[_0x2c6f12('0x173b')]({'title':'Template\x20properly\x20deleted!','msg':(_0x517912[_0x2c6f12('0x2273')][_0x2c6f12('0x1a8d')]||_0x2c6f12('0x2273'))+_0x2c6f12('0x14d4')}),_0x1cb245(_0x517912[_0x2c6f12('0x2273')]);})[_0x5e2ae8('0x1cb5')](function(_0x198588){const _0x14042f=_0x5e2ae8;if(_0x198588[_0x14042f('0x11fc')]&&_0x198588[_0x14042f('0x11fc')][_0x14042f('0x25be')]&&_0x198588['data'][_0x14042f('0x25be')][_0x14042f('0x2566')]){_0x517912[_0x14042f('0x25be')]=_0x198588[_0x14042f('0x11fc')][_0x14042f('0x25be')]||[{'message':_0x198588[_0x14042f('0x17df')](),'type':_0x14042f('0x23c')}];for(let _0x57c050=0x0;_0x57c050<_0x198588[_0x14042f('0x11fc')][_0x14042f('0x25be')]['length'];_0x57c050++){_0x4f2b7c[_0x14042f('0x5e8')]({'title':_0x198588[_0x14042f('0x11fc')][_0x14042f('0x25be')][_0x57c050][_0x14042f('0x1d7')],'msg':_0x198588['data'][_0x14042f('0x25be')][_0x57c050]['message']});}}else _0x4f2b7c[_0x14042f('0x5e8')]({'title':_0x198588[_0x14042f('0x1b51')]?'API:'+_0x198588[_0x14042f('0x1b51')]+_0x14042f('0x1b0b')+_0x198588[_0x14042f('0x22ce')]:'api.template.delete','msg':_0x198588[_0x14042f('0x11fc')]?JSON[_0x14042f('0x1be0')](_0x198588['data'][_0x14042f('0x15e2')]):_0x198588[_0x14042f('0x15e2')]||_0x198588[_0x14042f('0x17df')]()});});},function(){});}function _0x2dda86(_0x87d73b){return _0x87d73b===null?undefined:new Date(_0x87d73b);}function _0x1cb245(_0x5d0257){const _0x4b2554=_0x1b5482;_0x5b1c3f[_0x4b2554('0x19d')](_0x5d0257);}}const _0x5d366c=_0x3be33b,_0xa988ed=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog.html';_0x59c560[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),'$state','$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x1f48'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x59c560(_0x5a4b0a,_0x4f4f69,_0x3c42f3,_0x3334f5,_0x7265c,_0x380ef9,_0x375647,_0x587ffb,_0x38e094,_0x1b9807,_0x3fa93a,_0x5bda8e,_0x162d5a,_0x413bb8,_0x289d25,_0x5462a9,_0x271069){const _0x327a97=_0x34e79e,_0x361bde=this;_0x361bde['license']=_0x5462a9,_0x361bde[_0x327a97('0x1af0')]=_0x271069,_0x361bde[_0x327a97('0x9cb')]=_0x289d25[_0x327a97('0x24cc')](),_0x361bde[_0x327a97('0x1f48')]=_0x38e094||{'count':0x0,'rows':[]},_0x361bde['userProfile']=_0x1b9807,_0x361bde[_0x327a97('0xec9')]=_0x3fa93a&&_0x3fa93a['count']==0x1?_0x3fa93a[_0x327a97('0x25df')][0x0]:null,_0x361bde['crudPermissions']=_0x289d25['parseCrudPermissions'](_0x361bde['userProfileSection']?_0x361bde['userProfileSection'][_0x327a97('0xe28')]:null),_0x361bde[_0x327a97('0x26a9')]=_0x327a97('0x1f48'),_0x361bde[_0x327a97('0x2278')]='',_0x361bde[_0x327a97('0x25e2')]=null,_0x361bde[_0x327a97('0x1e3a')]=[],_0x361bde[_0x327a97('0x135a')]={'fields':_0x327a97('0x613'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x361bde[_0x327a97('0x23af')]=_0x350690,_0x361bde[_0x327a97('0x1e5')]=_0x44cfa9,_0x361bde[_0x327a97('0x173b')]=_0x509bcd,_0x361bde[_0x327a97('0xb4e')]=_0x220724,_0x361bde[_0x327a97('0x250')]=_0x486be1,_0x361bde[_0x327a97('0x1ddd')]=_0x22ecb2,_0x361bde[_0x327a97('0x1f7')]=_0x36d689,_0x361bde['deleteSelectedTemplates']=_0xdc614b,_0x361bde[_0x327a97('0x1196')]=_0x3242c3,_0x361bde[_0x327a97('0xd0c')]=_0x3f8493;function _0x350690(_0x1f853e,_0x5535f3){const _0x2204c5=_0x327a97;_0x7265c[_0x2204c5('0x2fa')]({'controller':'CreateOrEditTemplateDialogController','controllerAs':'vm','templateUrl':_0xa988ed,'parent':angular['element'](_0x380ef9[_0x2204c5('0x945')]),'targetEvent':_0x5535f3,'clickOutsideToClose':!![],'locals':{'template':_0x1f853e,'templates':_0x361bde['templates'][_0x2204c5('0x25df')],'license':_0x361bde[_0x2204c5('0x130d')],'setting':null,'crudPermissions':_0x361bde[_0x2204c5('0xe28')]}});}function _0x44cfa9(_0x518ebc,_0xc61f78){const _0xb26157=_0x327a97,_0x4a5927=_0x7265c[_0xb26157('0x112e')]()[_0xb26157('0x14e4')](_0xb26157('0x2114')+_0x283545()[_0xb26157('0x114')]('template')+'?')[_0xb26157('0x93e')](_0xb26157('0x1670')+(_0x518ebc[_0xb26157('0x1a8d')]||_0xb26157('0x2273'))+''+'\x20will\x20be\x20deleted.')[_0xb26157('0x10bc')](_0xb26157('0x3b3'))[_0xb26157('0x24d0')](_0xc61f78)['ok']('OK')[_0xb26157('0x1801')](_0xb26157('0x1d8d'));_0x7265c['show'](_0x4a5927)[_0xb26157('0x2788')](function(){_0x22ecb2(_0x518ebc);},function(){const _0x2624d4=_0xb26157;console['log'](_0x2624d4('0x1d8d'));});}let _0x2c217a=!![],_0x27c663=0x1;_0x5a4b0a[_0x327a97('0x1662')]('vm.query.filter',function(_0x11d5c6,_0x177e42){const _0x58f63e=_0x327a97;_0x2c217a?_0x375647(function(){_0x2c217a=![];}):(!_0x177e42&&(_0x27c663=_0x361bde[_0x58f63e('0x135a')]['page']),_0x11d5c6!==_0x177e42&&(_0x361bde['query'][_0x58f63e('0x23f5')]=0x1),!_0x11d5c6&&(_0x361bde[_0x58f63e('0x135a')][_0x58f63e('0x23f5')]=_0x27c663),_0x361bde[_0x58f63e('0xb4e')]());});function _0x509bcd(_0x1da3c8){const _0x55c306=_0x327a97;_0x361bde[_0x55c306('0x1f48')]=_0x1da3c8||{'count':0x0,'rows':[]};}function _0x220724(){const _0xbb3b8f=_0x327a97;_0x361bde['query'][_0xbb3b8f('0x19e')]=(_0x361bde[_0xbb3b8f('0x135a')][_0xbb3b8f('0x23f5')]-0x1)*_0x361bde[_0xbb3b8f('0x135a')][_0xbb3b8f('0x68e')],_0x289d25[_0xbb3b8f('0x1516')](_0xbb3b8f('0xe23'))?_0x361bde[_0xbb3b8f('0x1808')]=_0x5bda8e[_0xbb3b8f('0x2273')][_0xbb3b8f('0x1335')](_0x361bde[_0xbb3b8f('0x135a')],_0x509bcd)[_0xbb3b8f('0x1714')]:(_0x361bde[_0xbb3b8f('0x135a')]['id']=_0x361bde['userProfile']['id'],_0x361bde[_0xbb3b8f('0x135a')][_0xbb3b8f('0xb13')]=_0xbb3b8f('0x177c'),_0x361bde[_0xbb3b8f('0x1808')]=_0x5bda8e['userProfile'][_0xbb3b8f('0xa1')](_0x361bde[_0xbb3b8f('0x135a')],_0x509bcd)[_0xbb3b8f('0x1714')]);}function _0x486be1(_0x24f556,_0x2e6dea){const _0x553661=_0x327a97;_0x7265c[_0x553661('0x2fa')]({'controller':_0x553661('0x24a5'),'controllerAs':'vm','templateUrl':_0xa988ed,'parent':angular[_0x553661('0x16b1')](_0x380ef9['body']),'targetEvent':_0x24f556,'clickOutsideToClose':!![],'locals':{'template':_0x2e6dea,'templates':_0x361bde[_0x553661('0x1f48')][_0x553661('0x25df')],'license':_0x361bde[_0x553661('0x130d')],'setting':_0x361bde['setting'],'crudPermissions':_0x361bde[_0x553661('0xe28')]}});}function _0x22ecb2(_0x353b1e){const _0x4de6e3=_0x327a97;_0x5bda8e[_0x4de6e3('0x2273')][_0x4de6e3('0x17c4')]({'id':_0x353b1e['id']})[_0x4de6e3('0x1714')]['then'](function(){const _0x5153f3=_0x4de6e3;_0x283545()[_0x5153f3('0x1a90')](_0x361bde[_0x5153f3('0x1f48')][_0x5153f3('0x25df')],{'id':_0x353b1e['id']}),_0x361bde['templates']['count']-=0x1,!_0x361bde[_0x5153f3('0x1f48')][_0x5153f3('0x25df')]['length']&&_0x361bde[_0x5153f3('0xb4e')](),_0x413bb8['success']({'title':_0x283545()[_0x5153f3('0x114')](_0x5153f3('0x2252'))+_0x5153f3('0x20db'),'msg':_0x353b1e[_0x5153f3('0x1a8d')]?_0x353b1e[_0x5153f3('0x1a8d')]+_0x5153f3('0x14d4'):''});})['catch'](function(_0xace034){const _0x4cd7be=_0x4de6e3;if(_0xace034['data']&&_0xace034['data'][_0x4cd7be('0x25be')]&&_0xace034[_0x4cd7be('0x11fc')][_0x4cd7be('0x25be')][_0x4cd7be('0x2566')]){_0x361bde[_0x4cd7be('0x25be')]=_0xace034[_0x4cd7be('0x11fc')]['errors']||[{'message':_0xace034['toString'](),'type':_0x4cd7be('0x2359')}];for(let _0x4c50a9=0x0;_0x4c50a9<_0xace034[_0x4cd7be('0x11fc')][_0x4cd7be('0x25be')][_0x4cd7be('0x2566')];_0x4c50a9++){_0x413bb8[_0x4cd7be('0x5e8')]({'title':_0xace034['data']['errors'][_0x4c50a9]['type'],'msg':_0xace034[_0x4cd7be('0x11fc')][_0x4cd7be('0x25be')][_0x4c50a9][_0x4cd7be('0x15e2')]});}}else _0x413bb8[_0x4cd7be('0x5e8')]({'title':_0xace034[_0x4cd7be('0x1b51')]?'API:'+_0xace034[_0x4cd7be('0x1b51')]+'\x20-\x20'+_0xace034[_0x4cd7be('0x22ce')]:_0x4cd7be('0x2359'),'msg':_0xace034[_0x4cd7be('0x11fc')]?JSON[_0x4cd7be('0x1be0')](_0xace034[_0x4cd7be('0x11fc')]['message']):_0xace034[_0x4cd7be('0x15e2')]||_0xace034[_0x4cd7be('0x17df')]()});});}function _0x36d689(){const _0x577161=_0x327a97,_0x496b31=angular['copy'](_0x361bde['selectedTemplates']);return _0x361bde[_0x577161('0x1e3a')]=[],_0x496b31;}function _0xdc614b(_0x150609){const _0x5d079b=_0x327a97,_0xea566a=_0x7265c[_0x5d079b('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?')[_0x5d079b('0x93e')](''+_0x361bde[_0x5d079b('0x1e3a')]['length']+_0x5d079b('0xbd')+_0x5d079b('0x27c7'))[_0x5d079b('0x10bc')]('delete\x20Templates')[_0x5d079b('0x24d0')](_0x150609)['ok']('OK')['cancel'](_0x5d079b('0x1d8d'));_0x7265c[_0x5d079b('0x2fa')](_0xea566a)[_0x5d079b('0x2788')](function(){const _0x4d0002=_0x5d079b;_0x361bde['selectedTemplates'][_0x4d0002('0x1534')](function(_0x262a83){_0x22ecb2(_0x262a83);}),_0x361bde[_0x4d0002('0x1e3a')]=[];});}function _0x3242c3(){_0x361bde['selectedTemplates']=[];}function _0x3f8493(){const _0x42edae=_0x327a97;_0x361bde[_0x42edae('0x1e3a')]=_0x361bde['templates'][_0x42edae('0x25df')];}}const _0x181e8d=_0x59c560;_0x5bffa6['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x20f2'),_0x34e79e('0x2549'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x5bffa6(_0xb815d9,_0x155825,_0x5f3fa8,_0x127f88,_0x5581ce,_0x3e6aca,_0x385b88,_0xddc9e0,_0x38d916,_0x4167cf,_0x331ef6,_0x593d31,_0x18c477,_0x26c9d9){const _0x1d1e83=_0x34e79e,_0x10f2ea=this;_0x10f2ea[_0x1d1e83('0x9cb')]=_0x331ef6[_0x1d1e83('0x24cc')](),_0x10f2ea[_0x1d1e83('0x25be')]=[],_0x10f2ea[_0x1d1e83('0x1af0')]=_0x18c477,_0x10f2ea[_0x1d1e83('0x130d')]=_0x593d31,_0x10f2ea['crudPermissions']=_0x26c9d9,_0x10f2ea['hasModulePermissions']={},_0x10f2ea[_0x1d1e83('0x18ad')]=_0x10f2ea[_0x1d1e83('0x1af0')]&&_0x10f2ea['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10f2ea[_0x1d1e83('0x14e4')]=_0x1d1e83('0x24c8'),_0x10f2ea[_0x1d1e83('0x2549')]=angular[_0x1d1e83('0x2669')](_0x38d916),_0x10f2ea[_0x1d1e83('0x20f2')]=_0xddc9e0,_0x10f2ea['newTrunk']=![];!_0x10f2ea[_0x1d1e83('0x2549')]&&(_0x10f2ea[_0x1d1e83('0x2549')]={'active':!![],'type':_0x1d1e83('0x5c8'),'dtmfmode':_0x1d1e83('0x1f97'),'qualify':_0x1d1e83('0x2062'),'t38pt_udptl':'no'},_0x10f2ea[_0x1d1e83('0x14e4')]='TOOLS.NEW_TRUNK',_0x10f2ea[_0x1d1e83('0xd62')]=!![]);_0x10f2ea[_0x1d1e83('0x25bb')]=_0x543006,_0x10f2ea[_0x1d1e83('0x106f')]=_0x53a9ee,_0x10f2ea[_0x1d1e83('0x16c7')]=_0x4cd888,_0x10f2ea[_0x1d1e83('0x2601')]=_0x58eb77,_0x10f2ea['closeDialog']=_0x32255f;function _0x543006(){const _0x42eda4=_0x1d1e83;_0x10f2ea[_0x42eda4('0x25be')]=[],_0x4167cf[_0x42eda4('0x2549')]['save'](_0x10f2ea[_0x42eda4('0x2549')])[_0x42eda4('0x1714')][_0x42eda4('0x2788')](function(_0x259233){const _0x2d2a9c=_0x42eda4;_0x10f2ea['trunks'][_0x2d2a9c('0xc51')](_0x259233[_0x2d2a9c('0x1cbf')]()),_0x385b88[_0x2d2a9c('0x173b')]({'title':_0x2d2a9c('0x117d'),'msg':_0x10f2ea[_0x2d2a9c('0x2549')][_0x2d2a9c('0x1a8d')]?_0x10f2ea[_0x2d2a9c('0x2549')][_0x2d2a9c('0x1a8d')]+_0x2d2a9c('0x1e4a'):''}),_0x32255f(_0x259233);})[_0x42eda4('0x1cb5')](function(_0xcc6034){const _0x4e3030=_0x42eda4;if(_0xcc6034['data']&&_0xcc6034[_0x4e3030('0x11fc')]['errors']&&_0xcc6034['data'][_0x4e3030('0x25be')]['length']){_0x10f2ea['errors']=_0xcc6034[_0x4e3030('0x11fc')][_0x4e3030('0x25be')]||[{'message':_0xcc6034['toString'](),'type':_0x4e3030('0x78b')}];for(let _0x3eb4bc=0x0;_0x3eb4bc<_0xcc6034['data'][_0x4e3030('0x25be')]['length'];_0x3eb4bc+=0x1){_0x385b88['error']({'title':_0xcc6034[_0x4e3030('0x11fc')][_0x4e3030('0x25be')][_0x3eb4bc][_0x4e3030('0x1d7')],'msg':_0xcc6034['data']['errors'][_0x3eb4bc]['message']});}}else _0x385b88[_0x4e3030('0x5e8')]({'title':_0xcc6034[_0x4e3030('0x1b51')]?_0x4e3030('0x15d1')+_0xcc6034[_0x4e3030('0x1b51')]+_0x4e3030('0x1b0b')+_0xcc6034['statusText']:_0x4e3030('0x78b'),'msg':_0xcc6034[_0x4e3030('0x11fc')]?JSON[_0x4e3030('0x1be0')](_0xcc6034['data'][_0x4e3030('0x15e2')]):_0xcc6034[_0x4e3030('0x17df')]()});});}function _0x53a9ee(){const _0x52c7e8=_0x1d1e83;_0x10f2ea['errors']=[],_0x4167cf[_0x52c7e8('0x2549')][_0x52c7e8('0x2740')]({'id':_0x10f2ea[_0x52c7e8('0x2549')]['id']},_0x10f2ea[_0x52c7e8('0x2549')])[_0x52c7e8('0x1714')][_0x52c7e8('0x2788')](function(_0x1d75df){const _0x4868ed=_0x52c7e8,_0x519181=_0x283545()[_0x4868ed('0x20e8')](_0x10f2ea['trunks'],{'id':_0x1d75df['id']});_0x519181&&_0x283545()[_0x4868ed('0x2503')](_0x519181,_0x283545()[_0x4868ed('0x41b')](_0x1d75df[_0x4868ed('0x1cbf')](),_0x283545()['keys'](_0x519181))),_0x385b88[_0x4868ed('0x173b')]({'title':_0x4868ed('0x1e25'),'msg':_0x10f2ea[_0x4868ed('0x2549')]['name']?_0x10f2ea[_0x4868ed('0x2549')]['name']+_0x4868ed('0x24cf'):''}),_0x32255f(_0x1d75df);})[_0x52c7e8('0x1cb5')](function(_0x906a64){const _0x1fefab=_0x52c7e8;if(_0x906a64[_0x1fefab('0x11fc')]&&_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')]&&_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')][_0x1fefab('0x2566')]){_0x10f2ea[_0x1fefab('0x25be')]=_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')]||[{'message':_0x906a64[_0x1fefab('0x17df')](),'type':_0x1fefab('0xc0d')}];for(let _0x13795d=0x0;_0x13795d<_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')][_0x1fefab('0x2566')];_0x13795d++){_0x385b88[_0x1fefab('0x5e8')]({'title':_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')][_0x13795d][_0x1fefab('0x1d7')],'msg':_0x906a64[_0x1fefab('0x11fc')][_0x1fefab('0x25be')][_0x13795d]['message']});}}else _0x385b88[_0x1fefab('0x5e8')]({'title':_0x906a64[_0x1fefab('0x1b51')]?_0x1fefab('0x15d1')+_0x906a64['status']+'\x20-\x20'+_0x906a64[_0x1fefab('0x22ce')]:_0x1fefab('0xc0d'),'msg':_0x906a64[_0x1fefab('0x11fc')]?JSON[_0x1fefab('0x1be0')](_0x906a64['data'][_0x1fefab('0x15e2')]):_0x906a64['toString']()});});}function _0x4cd888(_0x5e29fc){const _0x5dd407=_0x1d1e83;_0x10f2ea['errors']=[];const _0x1d1c01=_0x127f88[_0x5dd407('0x112e')]()[_0x5dd407('0x14e4')](_0x5dd407('0x458'))[_0x5dd407('0x1c98')]('The\x20trunk\x20will\x20be\x20deleted.')[_0x5dd407('0x10bc')](_0x5dd407('0x1a4b'))['ok'](_0x5dd407('0x2786'))['cancel']('Cancel')['targetEvent'](_0x5e29fc);_0x127f88[_0x5dd407('0x2fa')](_0x1d1c01)['then'](function(){const _0x251dad=_0x5dd407;_0x4167cf[_0x251dad('0x2549')][_0x251dad('0x17c4')]({'id':_0x10f2ea[_0x251dad('0x2549')]['id']})[_0x251dad('0x1714')][_0x251dad('0x2788')](function(){const _0x38babd=_0x251dad;_0x283545()[_0x38babd('0x1a90')](_0x10f2ea[_0x38babd('0x20f2')],{'id':_0x10f2ea[_0x38babd('0x2549')]['id']}),_0x385b88[_0x38babd('0x173b')]({'title':_0x38babd('0xb00'),'msg':(_0x10f2ea['trunk']['name']||_0x38babd('0x2549'))+_0x38babd('0x14d4')}),_0x32255f(_0x10f2ea[_0x38babd('0x2549')]);})[_0x251dad('0x1cb5')](function(_0x2943f1){const _0x2a7900=_0x251dad;if(_0x2943f1[_0x2a7900('0x11fc')]&&_0x2943f1[_0x2a7900('0x11fc')][_0x2a7900('0x25be')]&&_0x2943f1[_0x2a7900('0x11fc')][_0x2a7900('0x25be')][_0x2a7900('0x2566')]){_0x10f2ea[_0x2a7900('0x25be')]=_0x2943f1['data'][_0x2a7900('0x25be')]||[{'message':_0x2943f1['toString'](),'type':_0x2a7900('0x11ec')}];for(let _0x4c1af3=0x0;_0x4c1af3<_0x2943f1['data'][_0x2a7900('0x25be')]['length'];_0x4c1af3++){_0x385b88[_0x2a7900('0x5e8')]({'title':_0x2943f1['data'][_0x2a7900('0x25be')][_0x4c1af3][_0x2a7900('0x1d7')],'msg':_0x2943f1[_0x2a7900('0x11fc')][_0x2a7900('0x25be')][_0x4c1af3][_0x2a7900('0x15e2')]});}}else _0x385b88[_0x2a7900('0x5e8')]({'title':_0x2943f1[_0x2a7900('0x1b51')]?_0x2a7900('0x15d1')+_0x2943f1[_0x2a7900('0x1b51')]+_0x2a7900('0x1b0b')+_0x2943f1[_0x2a7900('0x22ce')]:_0x2a7900('0x11ec'),'msg':_0x2943f1[_0x2a7900('0x11fc')]?JSON[_0x2a7900('0x1be0')](_0x2943f1[_0x2a7900('0x11fc')]['message']):_0x2943f1[_0x2a7900('0x15e2')]||_0x2943f1['toString']()});});},function(){});}function _0x58eb77(_0x34bbbd){return _0x34bbbd===null?undefined:new Date(_0x34bbbd);}function _0x32255f(_0x1d44e5){const _0x165d73=_0x1d1e83;_0x127f88[_0x165d73('0x19d')](_0x1d44e5);}}const _0x53c08f=_0x5bffa6;_0x5eaf00[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$state',_0x34e79e('0xd57'),_0x34e79e('0x519'),'trunk','trunks','$translate'];function _0x5eaf00(_0x1c33e0,_0x17f53d,_0x1c2bee,_0x4b7dab,_0x116da4,_0x327471,_0x5f0f91){const _0x1d6a04=_0x34e79e,_0x16cba4=this;_0x16cba4[_0x1d6a04('0xd62')]=!![],_0x16cba4[_0x1d6a04('0x2549')]=angular[_0x1d6a04('0x2669')](_0x116da4),_0x16cba4['trunks']=_0x327471,_0x16cba4[_0x1d6a04('0x14e4')]=_0x5f0f91[_0x1d6a04('0x1b11')](_0x1d6a04('0x1355'));_0x116da4&&_0x116da4['name']&&(_0x16cba4[_0x1d6a04('0x14e4')]+=':\x20'+_0x116da4[_0x1d6a04('0x1a8d')]);_0x16cba4[_0x1d6a04('0x2194')]=_0x8563e5,_0x16cba4[_0x1d6a04('0xca7')]=_0xf8212;function _0x8563e5(){const _0x7e08de=_0x1d6a04;return _0x4b7dab['trunk'][_0x7e08de('0x1b8')]({'id':_0x116da4['id']},_0x16cba4['trunk'])['$promise']['then'](function(_0x3889f5){const _0x16361d=_0x7e08de;_0x16cba4[_0x16361d('0x20f2')][_0x16361d('0xc51')](_0x3889f5[_0x16361d('0x1cbf')]()),_0x1c2bee[_0x16361d('0x173b')]({'title':_0x16361d('0x85f'),'msg':_0x16cba4[_0x16361d('0x2549')][_0x16361d('0x1a8d')]?_0x16cba4[_0x16361d('0x2549')]['name']+_0x16361d('0xd03'):''}),_0x17f53d['go'](_0x16361d('0x108c'),{'id':_0x3889f5['id']}),_0xf8212(_0x3889f5);})[_0x7e08de('0x1cb5')](function(_0x42418a){const _0x4a1a99=_0x7e08de;if(_0x42418a[_0x4a1a99('0x11fc')]&&_0x42418a['data'][_0x4a1a99('0x25be')]&&_0x42418a[_0x4a1a99('0x11fc')][_0x4a1a99('0x25be')][_0x4a1a99('0x2566')]){_0x16cba4[_0x4a1a99('0x25be')]=_0x42418a[_0x4a1a99('0x11fc')]['errors']||[{'message':_0x42418a[_0x4a1a99('0x17df')](),'type':'api.trunk.clone'}];for(let _0x115414=0x0;_0x115414<_0x42418a[_0x4a1a99('0x11fc')]['errors'][_0x4a1a99('0x2566')];_0x115414+=0x1){_0x1c2bee['error']({'title':_0x42418a[_0x4a1a99('0x11fc')][_0x4a1a99('0x25be')][_0x115414][_0x4a1a99('0x1d7')],'msg':_0x42418a[_0x4a1a99('0x11fc')]['errors'][_0x115414][_0x4a1a99('0x15e2')]});}}else _0x1c2bee[_0x4a1a99('0x5e8')]({'title':_0x42418a[_0x4a1a99('0x1b51')]?_0x4a1a99('0x15d1')+_0x42418a[_0x4a1a99('0x1b51')]+'\x20-\x20'+_0x42418a[_0x4a1a99('0x22ce')]:'api.trunk.clone','msg':_0x42418a['data']?JSON[_0x4a1a99('0x1be0')](_0x42418a[_0x4a1a99('0x11fc')][_0x4a1a99('0x15e2')]):_0x42418a[_0x4a1a99('0x17df')]()});});}function _0xf8212(_0x1826f2){const _0x323ee8=_0x1d6a04;_0x1c33e0[_0x323ee8('0x19d')](_0x1826f2);}}const _0x53e202=_0x5eaf00,_0x20abe6=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html';_0x8af15e[_0x34e79e('0x2d9')]=['$state','$location',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x2549'),_0x34e79e('0xec9')];function _0x8af15e(_0x428a19,_0x5685f2,_0x50081a,_0x2a5273,_0xa97bec,_0x28c28c,_0x40f8c4,_0x3229b7,_0x5db426,_0x36f01a,_0x39433e,_0x4b9c13){const _0x286bd3=_0x34e79e,_0x3bd2f8=this;_0x3bd2f8[_0x286bd3('0x9cb')]=_0x36f01a[_0x286bd3('0x24cc')](),_0x3bd2f8[_0x286bd3('0x130d')]=_0x28c28c,_0x3bd2f8[_0x286bd3('0x1af0')]=_0x40f8c4,_0x3bd2f8[_0x286bd3('0x18ad')]=_0x3bd2f8[_0x286bd3('0x1af0')][_0x286bd3('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3bd2f8[_0x286bd3('0xe9')]=_0x5685f2[_0x286bd3('0x170c')]()+_0x286bd3('0x726')+_0x5685f2[_0x286bd3('0x1c6a')](),_0x3bd2f8[_0x286bd3('0x2549')]=_0x39433e||_0x428a19[_0x286bd3('0x4b9')][_0x286bd3('0x2549')]||{},_0x3bd2f8[_0x286bd3('0xec9')]=_0x4b9c13&&_0x4b9c13['count']==0x1?_0x4b9c13[_0x286bd3('0x25df')][0x0]:null,_0x3bd2f8[_0x286bd3('0xe28')]=_0x36f01a['parseCrudPermissions'](_0x3bd2f8[_0x286bd3('0xec9')]?_0x3bd2f8[_0x286bd3('0xec9')][_0x286bd3('0xe28')]:null),_0x3bd2f8['hasModulePermissions']={},_0x3bd2f8['selectedTab']=_0x428a19[_0x286bd3('0x4b9')]['tab']||0x0,_0x3bd2f8[_0x286bd3('0x1fc7')]=_0x78483c,_0x3bd2f8[_0x286bd3('0x15fb')]=_0x46fed9,_0x3bd2f8['alert']=_0x5db426[_0x286bd3('0x2276')],_0x3bd2f8[_0x286bd3('0x22da')]=_0x814525,_0x3bd2f8['saveTrunk']=_0x548053,_0x36f01a[_0x286bd3('0x1516')](_0x286bd3('0xe23'))?_0x3229b7['voiceContext']['get']({'fields':_0x286bd3('0x1338'),'sort':_0x286bd3('0x1a8d')})[_0x286bd3('0x1714')]['then'](function(_0x589d8e){const _0x3ee294=_0x286bd3;_0x3bd2f8[_0x3ee294('0xf3e')]=_0x589d8e[_0x3ee294('0x25df')]||[];})[_0x286bd3('0x1cb5')](function(_0x4c3429){const _0xcabdbd=_0x286bd3;_0x5db426[_0xcabdbd('0x5e8')]({'title':_0x4c3429[_0xcabdbd('0x1b51')]?_0xcabdbd('0x15d1')+_0x4c3429[_0xcabdbd('0x1b51')]+_0xcabdbd('0x1b0b')+_0x4c3429[_0xcabdbd('0x22ce')]:_0xcabdbd('0x15f7'),'msg':_0x4c3429[_0xcabdbd('0x11fc')]?JSON[_0xcabdbd('0x1be0')](_0x4c3429[_0xcabdbd('0x11fc')]):_0x4c3429[_0xcabdbd('0x17df')]()});}):_0x3229b7[_0x286bd3('0x15cc')][_0x286bd3('0x1335')]({'fields':_0x286bd3('0x1338'),'sort':_0x286bd3('0x1a8d')})[_0x286bd3('0x1714')][_0x286bd3('0x2788')](function(_0x2c4307){const _0x82afb5=_0x286bd3;_0x3bd2f8[_0x82afb5('0xf3e')]=_0x2c4307[_0x82afb5('0x25df')]||[];})[_0x286bd3('0x2788')](function(){const _0xdc918e=_0x286bd3;return _0x3229b7[_0xdc918e('0xec9')][_0xdc918e('0x1335')]({'userProfileId':_0x3bd2f8['currentUser']['userProfileId'],'sectionId':0x195})[_0xdc918e('0x1714')];})[_0x286bd3('0x2788')](function(_0x58f8b4){const _0x5253c0=_0x286bd3,_0x2b43a4=_0x58f8b4&&_0x58f8b4['rows']?_0x58f8b4[_0x5253c0('0x25df')][0x0]:null;if(!_0x2b43a4)return _0x3229b7[_0x5253c0('0x15cc')][_0x5253c0('0x1335')]({'fields':_0x5253c0('0x1338'),'sort':_0x5253c0('0x1a8d'),'defaultEntry':0x1})[_0x5253c0('0x1714')][_0x5253c0('0x2788')](function(_0x1b43a2){const _0x1198cb=_0x5253c0;_0x3bd2f8[_0x1198cb('0xf3e')]=_0x1b43a2['rows']||[];});else{if(!_0x2b43a4[_0x5253c0('0x1c0a')])return _0x3229b7[_0x5253c0('0x1050')][_0x5253c0('0x1335')]({'sectionId':_0x2b43a4['id']})[_0x5253c0('0x1714')][_0x5253c0('0x2788')](function(_0x1f3873){const _0x1e0edf=_0x5253c0,_0x1c8fd8=_0x283545()[_0x1e0edf('0x155d')](_0x1f3873[_0x1e0edf('0x25df')],function(_0x589081){const _0x1717a0=_0x1e0edf;return _0x283545()['find'](_0x3bd2f8[_0x1717a0('0xf3e')],{'id':_0x589081['resourceId']});});let _0x52e811=null;_0x3bd2f8[_0x1e0edf('0x2549')]&&(_0x52e811=_0x283545()[_0x1e0edf('0x20e8')](_0x3bd2f8[_0x1e0edf('0xf3e')],{'name':_0x3bd2f8[_0x1e0edf('0x2549')][_0x1e0edf('0x1f3b')]}));if(_0x52e811&&!_0x283545()[_0x1e0edf('0xc5d')](_0x1c8fd8,['id',_0x52e811['id']])){const _0x2a8b9e=_0x283545()[_0x1e0edf('0x20e8')](_0x3bd2f8['contexts'],{'id':_0x52e811['id']});_0x2a8b9e['canSelect']=![],_0x1c8fd8[_0x1e0edf('0x13e3')](_0x2a8b9e);}_0x3bd2f8[_0x1e0edf('0xf3e')]=_0x1c8fd8;});}})[_0x286bd3('0x1cb5')](function(_0x29ad31){const _0x5314ac=_0x286bd3;_0x5db426['error']({'title':_0x29ad31[_0x5314ac('0x1b51')]?'API:'+_0x29ad31['status']+_0x5314ac('0x1b0b')+_0x29ad31[_0x5314ac('0x22ce')]:_0x5314ac('0x265a'),'msg':_0x29ad31['data']?JSON[_0x5314ac('0x1be0')](_0x29ad31[_0x5314ac('0x11fc')]):_0x29ad31[_0x5314ac('0x17df')]()});});function _0x78483c(){const _0x313344=_0x286bd3;if(_0x36f01a[_0x313344('0x1516')]('admin'))_0x428a19['go']('app.voice.realtime.trunks',{});else return _0x3229b7[_0x313344('0xec9')][_0x313344('0x1335')]({'userProfileId':_0x36f01a[_0x313344('0x24cc')]()[_0x313344('0x237f')],'sectionId':0x19b})[_0x313344('0x1714')][_0x313344('0x2788')](function(_0xaf0a1f){const _0x159279=_0x313344,_0x2867f4=_0xaf0a1f&&_0xaf0a1f[_0x159279('0x25df')]?_0xaf0a1f[_0x159279('0x25df')][0x0]:null;_0x2867f4&&_0x2867f4['enabled']?_0x428a19['go']('app.voice.realtime.trunks',{}):_0x5db426[_0x159279('0x2276')]({'title':_0xa97bec[_0x159279('0x1b11')](_0x159279('0x5be')),'msg':_0xa97bec[_0x159279('0x1b11')](_0x159279('0x1abc'))});})[_0x313344('0x1cb5')](function(_0x3bd0e1){const _0x5965c0=_0x313344;_0x5db426['error']({'title':_0x3bd0e1[_0x5965c0('0x1b51')]?'API:'+_0x3bd0e1[_0x5965c0('0x1b51')]+'\x20-\x20'+_0x3bd0e1['statusText']:_0x5965c0('0x2292'),'msg':_0x3bd0e1[_0x5965c0('0x1b51')]?JSON[_0x5965c0('0x1be0')](_0x3bd0e1[_0x5965c0('0x11fc')]):_0x3bd0e1['toString']()});});}function _0x46fed9(_0x2f35f6,_0x2c24f1){const _0x29cceb=_0x286bd3;_0x50081a[_0x29cceb('0x2fa')]({'controller':_0x29cceb('0xbe9'),'controllerAs':'vm','templateUrl':_0x20abe6,'parent':angular[_0x29cceb('0x16b1')](_0x2a5273[_0x29cceb('0x945')]),'targetEvent':_0x2c24f1,'clickOutsideToClose':!![],'locals':{'trunk':_0x2f35f6,'trunks':_0x3bd2f8['trunks']?_0x3bd2f8[_0x29cceb('0x20f2')]['rows']:[],'crudPermissions':_0x3bd2f8[_0x29cceb('0xe28')]}});}function _0x814525(){const _0x2d6277=_0x286bd3;_0x428a19['go'](_0x2d6277('0x2070'),{},{'reload':_0x2d6277('0x2070')});}function _0x548053(){const _0x2d8794=_0x286bd3;_0x3229b7[_0x2d8794('0x2549')][_0x2d8794('0x2740')]({'id':_0x3bd2f8[_0x2d8794('0x2549')]['id']},_0x3bd2f8['trunk'])[_0x2d8794('0x1714')][_0x2d8794('0x2788')](function(){const _0x578d01=_0x2d8794;_0x5db426[_0x578d01('0x173b')]({'title':_0x578d01('0x1271'),'msg':_0x3bd2f8['trunk'][_0x578d01('0x1a8d')]?_0x3bd2f8[_0x578d01('0x2549')]['name']+_0x578d01('0x6f8'):''});})[_0x2d8794('0x1cb5')](function(_0x39d78a){const _0x568cd1=_0x2d8794;_0x5db426[_0x568cd1('0x5e8')]({'title':_0x39d78a[_0x568cd1('0x1b51')]?_0x568cd1('0x15d1')+_0x39d78a[_0x568cd1('0x1b51')]+_0x568cd1('0x1b0b')+_0x39d78a[_0x568cd1('0x22ce')]:_0x568cd1('0x2837'),'msg':_0x39d78a[_0x568cd1('0x11fc')]?JSON[_0x568cd1('0x1be0')](_0x39d78a[_0x568cd1('0x11fc')]):_0x39d78a[_0x568cd1('0x17df')]()});});}}const _0x3befc8=_0x8af15e,_0x2cb43f=_0x18dd13['p']+_0x34e79e('0x2730');_0x5e96a2[_0x34e79e('0x2d9')]=['$scope','$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x20f2'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x5e96a2(_0x1882b3,_0x117653,_0x342bbf,_0x59690e,_0x2ea668,_0x3b8043,_0x5a4082,_0x4127a9,_0x1aeccb,_0x5693e6,_0x4a0605,_0x492122,_0x468d18,_0x4b248b,_0x42cf09,_0xb16bea,_0x52236a){const _0x388082=_0x34e79e,_0x34d98b=this;_0x34d98b[_0x388082('0x130d')]=_0xb16bea,_0x34d98b['setting']=_0x52236a,_0x34d98b[_0x388082('0x9cb')]=_0x42cf09[_0x388082('0x24cc')](),_0x34d98b[_0x388082('0x20f2')]=_0x1aeccb||{'count':0x0,'rows':[]},_0x34d98b[_0x388082('0x63c')]=_0x5693e6,_0x34d98b[_0x388082('0xec9')]=_0x4a0605&&_0x4a0605['count']==0x1?_0x4a0605['rows'][0x0]:null,_0x34d98b[_0x388082('0xe28')]=_0x42cf09[_0x388082('0x157e')](_0x34d98b['userProfileSection']?_0x34d98b[_0x388082('0xec9')][_0x388082('0xe28')]:null),_0x34d98b[_0x388082('0x26a9')]='trunks',_0x34d98b[_0x388082('0x2278')]='',_0x34d98b['listOrderAsc']=null,_0x34d98b[_0x388082('0x1e97')]=[],_0x34d98b[_0x388082('0x135a')]={'fields':_0x388082('0x135c'),'sort':_0x388082('0x1cee'),'limit':0xa,'page':0x1},_0x34d98b[_0x388082('0x1221')]=_0x283545()[_0x388082('0x13cf')]([{'option':'Friend','value':_0x388082('0xbd2')},{'option':'User','value':'\x27user\x27'},{'option':'Peer','value':_0x388082('0x1bb8')}],function(_0xbc89bb){return _0x283545()['replace'](_0xbc89bb['value'],new RegExp('\x27','g'),'');}),_0x34d98b['arraydtmfmode']=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x1f97'),'value':'\x27rfc2833\x27'},{'option':_0x388082('0x2276'),'value':_0x388082('0x5a')},{'option':_0x388082('0x1033'),'value':_0x388082('0x10ed')},{'option':_0x388082('0xc04'),'value':_0x388082('0x45')},{'option':_0x388082('0x8a'),'value':'\x27auto\x27'}],function(_0x94f116){const _0x1d13af=_0x388082;return _0x283545()[_0x1d13af('0x10a4')](_0x94f116[_0x1d13af('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b['arraynat']=_0x283545()['keyBy']([{'option':_0x388082('0x16a7'),'value':_0x388082('0x1a9b')},{'option':_0x388082('0x372'),'value':_0x388082('0x1025')},{'option':_0x388082('0x2062'),'value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')},{'option':_0x388082('0x173d'),'value':_0x388082('0x1c4')},{'option':'route','value':'\x27route\x27'}],function(_0x2012db){return _0x283545()['replace'](_0x2012db['value'],new RegExp('\x27','g'),'');}),_0x34d98b['arrayqualify']=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x2062'),'value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')}],function(_0x5b3c64){const _0x243405=_0x388082;return _0x283545()['replace'](_0x5b3c64[_0x243405('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x19b7')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x972'),'value':_0x388082('0x10fb')},{'option':_0x388082('0x1729'),'value':'\x27alaw\x27'},{'option':_0x388082('0x14c1'),'value':_0x388082('0x9d3')},{'option':_0x388082('0x25bf'),'value':'\x27g723\x27'},{'option':_0x388082('0x1612'),'value':_0x388082('0xa32')},{'option':_0x388082('0xfc3'),'value':_0x388082('0x231f')},{'option':_0x388082('0x1f4f'),'value':_0x388082('0x16a6')},{'option':'ilbc','value':_0x388082('0x169f')},{'option':_0x388082('0x1460'),'value':_0x388082('0x1d1a')},{'option':_0x388082('0x8ea'),'value':_0x388082('0xcc3')}],function(_0x14039b){const _0x239b74=_0x388082;return _0x283545()[_0x239b74('0x10a4')](_0x14039b[_0x239b74('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x579')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x1fee'),'value':_0x388082('0xa0e')},{'option':_0x388082('0x1b5d'),'value':_0x388082('0x1227')},{'option':'very','value':_0x388082('0x2470')}],function(_0x409860){const _0xa43682=_0x388082;return _0x283545()[_0xa43682('0x10a4')](_0x409860[_0xa43682('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x865')]=_0x283545()[_0x388082('0x13cf')]([{'option':'yes','value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')},{'option':_0x388082('0xa2a'),'value':_0x388082('0xcee')},{'option':_0x388082('0x2740'),'value':_0x388082('0x1925')}],function(_0x37389a){const _0x3397c2=_0x388082;return _0x283545()[_0x3397c2('0x10a4')](_0x37389a['value'],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0xfb0')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x2062'),'value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')}],function(_0x354283){const _0x18c22b=_0x388082;return _0x283545()[_0x18c22b('0x10a4')](_0x354283[_0x18c22b('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b['arrayusereqphone']=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x2062'),'value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')}],function(_0x555276){const _0x2dbaff=_0x388082;return _0x283545()[_0x2dbaff('0x10a4')](_0x555276[_0x2dbaff('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x2758')]=_0x283545()['keyBy']([{'option':'yes','value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')}],function(_0x53cadb){const _0x2fbe67=_0x388082;return _0x283545()[_0x2fbe67('0x10a4')](_0x53cadb[_0x2fbe67('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x9f9')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x2062'),'value':'\x27yes\x27'},{'option':'no','value':_0x388082('0x2363')},{'option':_0x388082('0x1019'),'value':_0x388082('0x13a6')}],function(_0x14c5f3){const _0x2905b0=_0x388082;return _0x283545()[_0x2905b0('0x10a4')](_0x14c5f3[_0x2905b0('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x215f')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0x2062'),'value':_0x388082('0x640')},{'option':'no','value':_0x388082('0x2363')}],function(_0x31d08e){const _0x367088=_0x388082;return _0x283545()[_0x367088('0x10a4')](_0x31d08e[_0x367088('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x164b')]=_0x283545()[_0x388082('0x13cf')]([{'option':'udp','value':'\x27udp\x27'},{'option':'tcp','value':_0x388082('0x1bdd')},{'option':'ws','value':'\x27ws\x27'},{'option':_0x388082('0x1a92'),'value':_0x388082('0x1566')},{'option':'tls','value':'\x27tls\x27'}],function(_0x19ace5){const _0x27c883=_0x388082;return _0x283545()[_0x27c883('0x10a4')](_0x19ace5[_0x27c883('0x49')],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x275c')]=_0x283545()[_0x388082('0x13cf')]([{'option':_0x388082('0xb23'),'value':'\x27yes\x27'},{'option':'No','value':_0x388082('0x2363')},{'option':_0x388082('0x25e3'),'value':_0x388082('0x1ac1')}],function(_0x47c9dd){const _0x5c52c5=_0x388082;return _0x283545()[_0x5c52c5('0x10a4')](_0x47c9dd['value'],new RegExp('\x27','g'),'');}),_0x34d98b[_0x388082('0x1f7e')]=_0x10f217,_0x34d98b[_0x388082('0x15fb')]=_0x24ad96,_0x34d98b[_0x388082('0x8d1')]=_0x21ba31,_0x34d98b['deleteconfirm']=_0x5eb183,_0x34d98b[_0x388082('0x173b')]=_0x2513cd,_0x34d98b[_0x388082('0x8f0')]=_0x835743,_0x34d98b['createOrEditTrunk']=_0x19a7b7,_0x34d98b['deleteTrunk']=_0x23e23a,_0x34d98b['exportSelectedTrunks']=_0x1bd079,_0x34d98b[_0x388082('0x1721')]=_0x1ed622,_0x34d98b[_0x388082('0x33f')]=_0x144ee2,_0x34d98b[_0x388082('0x23ce')]=_0x512d74;function _0x10f217(_0x257728){const _0x1320f2=_0x388082;_0x342bbf['go']('app.tools.trunks.edit',{'id':_0x257728['id'],'trunk':_0x257728,'crudPermissions':_0x34d98b[_0x1320f2('0xe28')]});}function _0x24ad96(_0x5ef1a5,_0x5e55dc){const _0x214e0d=_0x388082;_0x2ea668[_0x214e0d('0x2fa')]({'controller':'TrunkcloneController','controllerAs':'vm','templateUrl':_0x20abe6,'parent':angular[_0x214e0d('0x16b1')](_0x3b8043[_0x214e0d('0x945')]),'targetEvent':_0x5e55dc,'clickOutsideToClose':!![],'locals':{'trunk':_0x5ef1a5,'trunks':_0x34d98b[_0x214e0d('0x20f2')]?_0x34d98b['trunks'][_0x214e0d('0x25df')]:[],'crudPermissions':_0x34d98b['crudPermissions']}});}function _0x21ba31(){const _0x1f8106=_0x388082;if(_0x42cf09[_0x1f8106('0x1516')](_0x1f8106('0xe23')))_0x342bbf['go'](_0x1f8106('0x129b'),{});else return _0x492122[_0x1f8106('0xec9')][_0x1f8106('0x1335')]({'userProfileId':_0x42cf09[_0x1f8106('0x24cc')]()[_0x1f8106('0x237f')],'sectionId':0x19b})['$promise'][_0x1f8106('0x2788')](function(_0x171f99){const _0x2878c7=_0x1f8106,_0x162ae7=_0x171f99&&_0x171f99[_0x2878c7('0x25df')]?_0x171f99[_0x2878c7('0x25df')][0x0]:null;_0x162ae7&&_0x162ae7[_0x2878c7('0x14f4')]?_0x342bbf['go'](_0x2878c7('0x129b'),{}):_0x4b248b['info']({'title':_0x4127a9[_0x2878c7('0x1b11')](_0x2878c7('0x5be')),'msg':_0x4127a9[_0x2878c7('0x1b11')](_0x2878c7('0x1abc'))});})[_0x1f8106('0x1cb5')](function(_0x4ddacf){const _0x20bbb2=_0x1f8106;_0x4b248b[_0x20bbb2('0x5e8')]({'title':_0x4ddacf['status']?_0x20bbb2('0x15d1')+_0x4ddacf[_0x20bbb2('0x1b51')]+_0x20bbb2('0x1b0b')+_0x4ddacf['statusText']:_0x20bbb2('0x2292'),'msg':_0x4ddacf[_0x20bbb2('0x1b51')]?JSON[_0x20bbb2('0x1be0')](_0x4ddacf[_0x20bbb2('0x11fc')]):_0x4ddacf['toString']()});});}function _0x5eb183(_0xede532,_0x324889){const _0x42eae3=_0x388082,_0x44ee03=_0x2ea668['confirm']()['title'](_0x42eae3('0x2114')+_0x283545()['startCase'](_0x42eae3('0x2549'))+'?')['htmlContent'](_0x42eae3('0x1670')+(_0xede532['name']||_0x42eae3('0x2549'))+_0x42eae3('0x229e')+_0x42eae3('0x27c7'))[_0x42eae3('0x10bc')](_0x42eae3('0x2308'))[_0x42eae3('0x24d0')](_0x324889)['ok']('OK')[_0x42eae3('0x1801')](_0x42eae3('0x1d8d'));_0x2ea668['show'](_0x44ee03)[_0x42eae3('0x2788')](function(){_0x23e23a(_0xede532);},function(){const _0x1727e6=_0x42eae3;console[_0x1727e6('0x10df')](_0x1727e6('0x1d8d'));});}let _0x2a2a9a=!![],_0x1bb12a=0x1;_0x1882b3['$watch'](_0x388082('0x1569'),function(_0x5b441b,_0x3739b5){const _0x57922e=_0x388082;_0x2a2a9a?_0x5a4082(function(){_0x2a2a9a=![];}):(!_0x3739b5&&(_0x1bb12a=_0x34d98b[_0x57922e('0x135a')][_0x57922e('0x23f5')]),_0x5b441b!==_0x3739b5&&(_0x34d98b['query']['page']=0x1),!_0x5b441b&&(_0x34d98b[_0x57922e('0x135a')][_0x57922e('0x23f5')]=_0x1bb12a),_0x34d98b[_0x57922e('0x8f0')]());});function _0x2513cd(_0x20c1d){const _0x1eb1eb=_0x388082;_0x34d98b[_0x1eb1eb('0x20f2')]=_0x20c1d||{'count':0x0,'rows':[]};}function _0x835743(){const _0x42849d=_0x388082;_0x34d98b['query'][_0x42849d('0x19e')]=(_0x34d98b[_0x42849d('0x135a')][_0x42849d('0x23f5')]-0x1)*_0x34d98b[_0x42849d('0x135a')][_0x42849d('0x68e')],_0x42cf09['hasRole']('admin')?_0x34d98b[_0x42849d('0x1808')]=_0x492122['trunk'][_0x42849d('0x1335')](_0x34d98b[_0x42849d('0x135a')],_0x2513cd)[_0x42849d('0x1714')]:(_0x34d98b[_0x42849d('0x135a')]['id']=_0x34d98b[_0x42849d('0x63c')]['id'],_0x34d98b['query'][_0x42849d('0xb13')]=_0x42849d('0xca4'),_0x34d98b[_0x42849d('0x1808')]=_0x492122[_0x42849d('0x63c')][_0x42849d('0xa1')](_0x34d98b[_0x42849d('0x135a')],_0x2513cd)[_0x42849d('0x1714')]);}function _0x19a7b7(_0x3b74cb,_0x592f5c){const _0x504ba4=_0x388082;_0x2ea668['show']({'controller':_0x504ba4('0x19e5'),'controllerAs':'vm','templateUrl':_0x2cb43f,'parent':angular['element'](_0x3b8043[_0x504ba4('0x945')]),'targetEvent':_0x3b74cb,'clickOutsideToClose':!![],'locals':{'trunk':_0x592f5c,'trunks':_0x34d98b['trunks'][_0x504ba4('0x25df')],'license':_0x34d98b[_0x504ba4('0x130d')],'setting':_0x34d98b[_0x504ba4('0x1af0')],'crudPermissions':_0x34d98b[_0x504ba4('0xe28')]}});}function _0x23e23a(_0x266580){const _0x2ca34b=_0x388082;_0x492122['trunk'][_0x2ca34b('0x17c4')]({'id':_0x266580['id']})[_0x2ca34b('0x1714')]['then'](function(){const _0x5108c9=_0x2ca34b;_0x283545()[_0x5108c9('0x1a90')](_0x34d98b[_0x5108c9('0x20f2')]['rows'],{'id':_0x266580['id']}),_0x34d98b[_0x5108c9('0x20f2')]['count']-=0x1,!_0x34d98b[_0x5108c9('0x20f2')]['rows'][_0x5108c9('0x2566')]&&_0x34d98b[_0x5108c9('0x8f0')](),_0x4b248b['success']({'title':_0x283545()[_0x5108c9('0x114')](_0x5108c9('0x312'))+_0x5108c9('0x20db'),'msg':_0x266580[_0x5108c9('0x1a8d')]?_0x266580['name']+_0x5108c9('0x14d4'):''});})[_0x2ca34b('0x1cb5')](function(_0x473c85){const _0x29dd3d=_0x2ca34b;if(_0x473c85[_0x29dd3d('0x11fc')]&&_0x473c85[_0x29dd3d('0x11fc')][_0x29dd3d('0x25be')]&&_0x473c85['data'][_0x29dd3d('0x25be')][_0x29dd3d('0x2566')]){_0x34d98b[_0x29dd3d('0x25be')]=_0x473c85['data']['errors']||[{'message':_0x473c85[_0x29dd3d('0x17df')](),'type':_0x29dd3d('0x22a3')}];for(let _0xbbcae1=0x0;_0xbbcae1<_0x473c85[_0x29dd3d('0x11fc')][_0x29dd3d('0x25be')][_0x29dd3d('0x2566')];_0xbbcae1++){_0x4b248b[_0x29dd3d('0x5e8')]({'title':_0x473c85[_0x29dd3d('0x11fc')][_0x29dd3d('0x25be')][_0xbbcae1]['type'],'msg':_0x473c85['data'][_0x29dd3d('0x25be')][_0xbbcae1]['message']});}}else _0x4b248b[_0x29dd3d('0x5e8')]({'title':_0x473c85[_0x29dd3d('0x1b51')]?_0x29dd3d('0x15d1')+_0x473c85[_0x29dd3d('0x1b51')]+_0x29dd3d('0x1b0b')+_0x473c85[_0x29dd3d('0x22ce')]:_0x29dd3d('0x22a3'),'msg':_0x473c85[_0x29dd3d('0x11fc')]?JSON[_0x29dd3d('0x1be0')](_0x473c85['data'][_0x29dd3d('0x15e2')]):_0x473c85[_0x29dd3d('0x15e2')]||_0x473c85[_0x29dd3d('0x17df')]()});});}function _0x1bd079(){const _0x476467=_0x388082,_0x169250=angular[_0x476467('0x2669')](_0x34d98b[_0x476467('0x1e97')]);return _0x34d98b['selectedTrunks']=[],_0x169250;}function _0x1ed622(_0x10e228){const _0x209629=_0x388082,_0x17f2f2=_0x2ea668[_0x209629('0x112e')]()[_0x209629('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?')[_0x209629('0x93e')](_0x209629('0x1670')+_0x34d98b['selectedTrunks'][_0x209629('0x2566')]+_0x209629('0xbd')+_0x209629('0x27c7'))['ariaLabel'](_0x209629('0x1719'))['targetEvent'](_0x10e228)['ok']('OK')[_0x209629('0x1801')](_0x209629('0x1d8d'));_0x2ea668[_0x209629('0x2fa')](_0x17f2f2)['then'](function(){const _0x323349=_0x209629;_0x34d98b[_0x323349('0x1e97')][_0x323349('0x1534')](function(_0x51350e){_0x23e23a(_0x51350e);}),_0x34d98b['selectedTrunks']=[];});}function _0x144ee2(){const _0x37ae6b=_0x388082;_0x34d98b[_0x37ae6b('0x1e97')]=[];}function _0x512d74(){const _0x549add=_0x388082;_0x34d98b[_0x549add('0x1e97')]=_0x34d98b['trunks']['rows'];}}const _0x42b3d1=_0x5e96a2;_0x645f5e[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state','$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0xf76'),_0x34e79e('0xa72'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x645f5e(_0x435237,_0x390a7b,_0x1accf9,_0x52682b,_0x2ea2a5,_0xc6e268,_0x3dda3f,_0x5d340b,_0x415085,_0x255a18,_0x3f9a1a,_0x3e3090,_0x310fc8,_0xb076c9){const _0x2d33d8=_0x34e79e,_0xbc9d5b=this;_0xbc9d5b['currentUser']=_0x3f9a1a[_0x2d33d8('0x24cc')](),_0xbc9d5b[_0x2d33d8('0x25be')]=[],_0xbc9d5b[_0x2d33d8('0x1af0')]=_0x310fc8,_0xbc9d5b[_0x2d33d8('0x130d')]=_0x3e3090,_0xbc9d5b['crudPermissions']=_0xb076c9,_0xbc9d5b[_0x2d33d8('0x1193')]={},_0xbc9d5b[_0x2d33d8('0x18ad')]=_0xbc9d5b['setting']&&_0xbc9d5b[_0x2d33d8('0x1af0')][_0x2d33d8('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbc9d5b['title']='TOOLS.EDIT_VARIABLE',_0xbc9d5b[_0x2d33d8('0xa72')]=angular['copy'](_0x415085),_0xbc9d5b[_0x2d33d8('0xf76')]=_0x5d340b,_0xbc9d5b[_0x2d33d8('0x13de')]=![];!_0xbc9d5b[_0x2d33d8('0xa72')]&&(_0xbc9d5b[_0x2d33d8('0xa72')]={},_0xbc9d5b[_0x2d33d8('0x14e4')]='TOOLS.NEW_VARIABLE',_0xbc9d5b[_0x2d33d8('0x13de')]=!![]);_0xbc9d5b[_0x2d33d8('0x1a73')]=_0x4294bf,_0xbc9d5b[_0x2d33d8('0x502')]=_0x3d119c,_0xbc9d5b[_0x2d33d8('0x259')]=_0x4d4bf3,_0xbc9d5b[_0x2d33d8('0x2601')]=_0x4ef5a9,_0xbc9d5b['closeDialog']=_0x9658a8;function _0x4294bf(){const _0x28cc91=_0x2d33d8;_0xbc9d5b[_0x28cc91('0x25be')]=[],_0x255a18['variable'][_0x28cc91('0xbd0')](_0xbc9d5b[_0x28cc91('0xa72')])[_0x28cc91('0x1714')][_0x28cc91('0x2788')](function(_0x1e04c6){const _0x48b26f=_0x28cc91;_0xbc9d5b[_0x48b26f('0xf76')][_0x48b26f('0xc51')](_0x1e04c6[_0x48b26f('0x1cbf')]()),_0x3dda3f[_0x48b26f('0x173b')]({'title':'Variable\x20properly\x20created','msg':_0xbc9d5b[_0x48b26f('0xa72')][_0x48b26f('0x1a8d')]?_0xbc9d5b[_0x48b26f('0xa72')][_0x48b26f('0x1a8d')]+_0x48b26f('0x1e4a'):''}),_0x9658a8(_0x1e04c6);})['catch'](function(_0x3ebddf){const _0x44d735=_0x28cc91;if(_0x3ebddf['data']&&_0x3ebddf[_0x44d735('0x11fc')][_0x44d735('0x25be')]&&_0x3ebddf['data'][_0x44d735('0x25be')]['length']){_0xbc9d5b[_0x44d735('0x25be')]=_0x3ebddf[_0x44d735('0x11fc')][_0x44d735('0x25be')]||[{'message':_0x3ebddf['toString'](),'type':'api.variable.save'}];for(let _0x243409=0x0;_0x243409<_0x3ebddf[_0x44d735('0x11fc')][_0x44d735('0x25be')]['length'];_0x243409+=0x1){_0x3dda3f['error']({'title':_0x3ebddf[_0x44d735('0x11fc')][_0x44d735('0x25be')][_0x243409][_0x44d735('0x1d7')],'msg':_0x3ebddf['data']['errors'][_0x243409]['message']});}}else _0x3dda3f['error']({'title':_0x3ebddf[_0x44d735('0x1b51')]?'API:'+_0x3ebddf[_0x44d735('0x1b51')]+_0x44d735('0x1b0b')+_0x3ebddf[_0x44d735('0x22ce')]:_0x44d735('0x13be'),'msg':_0x3ebddf['data']?JSON['stringify'](_0x3ebddf[_0x44d735('0x11fc')][_0x44d735('0x15e2')]):_0x3ebddf['toString']()});});}function _0x3d119c(){const _0x424c9f=_0x2d33d8;_0xbc9d5b[_0x424c9f('0x25be')]=[],_0x255a18[_0x424c9f('0xa72')][_0x424c9f('0x2740')]({'id':_0xbc9d5b[_0x424c9f('0xa72')]['id']},_0xbc9d5b[_0x424c9f('0xa72')])[_0x424c9f('0x1714')]['then'](function(_0x561980){const _0x5a8bc9=_0x424c9f,_0x2244f0=_0x283545()[_0x5a8bc9('0x20e8')](_0xbc9d5b[_0x5a8bc9('0xf76')],{'id':_0x561980['id']});_0x2244f0&&_0x283545()[_0x5a8bc9('0x2503')](_0x2244f0,_0x283545()[_0x5a8bc9('0x41b')](_0x561980[_0x5a8bc9('0x1cbf')](),_0x283545()['keys'](_0x2244f0))),_0x3dda3f[_0x5a8bc9('0x173b')]({'title':_0x5a8bc9('0x1eb'),'msg':_0xbc9d5b[_0x5a8bc9('0xa72')][_0x5a8bc9('0x1a8d')]?_0xbc9d5b[_0x5a8bc9('0xa72')]['name']+_0x5a8bc9('0x24cf'):''}),_0x9658a8(_0x561980);})[_0x424c9f('0x1cb5')](function(_0x7f4c87){const _0x5f2b65=_0x424c9f;if(_0x7f4c87[_0x5f2b65('0x11fc')]&&_0x7f4c87[_0x5f2b65('0x11fc')]['errors']&&_0x7f4c87['data'][_0x5f2b65('0x25be')]['length']){_0xbc9d5b['errors']=_0x7f4c87[_0x5f2b65('0x11fc')][_0x5f2b65('0x25be')]||[{'message':_0x7f4c87['toString'](),'type':_0x5f2b65('0x1722')}];for(let _0x166002=0x0;_0x166002<_0x7f4c87[_0x5f2b65('0x11fc')][_0x5f2b65('0x25be')][_0x5f2b65('0x2566')];_0x166002++){_0x3dda3f['error']({'title':_0x7f4c87['data'][_0x5f2b65('0x25be')][_0x166002]['type'],'msg':_0x7f4c87[_0x5f2b65('0x11fc')][_0x5f2b65('0x25be')][_0x166002][_0x5f2b65('0x15e2')]});}}else _0x3dda3f[_0x5f2b65('0x5e8')]({'title':_0x7f4c87[_0x5f2b65('0x1b51')]?_0x5f2b65('0x15d1')+_0x7f4c87['status']+_0x5f2b65('0x1b0b')+_0x7f4c87[_0x5f2b65('0x22ce')]:_0x5f2b65('0x1722'),'msg':_0x7f4c87[_0x5f2b65('0x11fc')]?JSON[_0x5f2b65('0x1be0')](_0x7f4c87[_0x5f2b65('0x11fc')][_0x5f2b65('0x15e2')]):_0x7f4c87[_0x5f2b65('0x17df')]()});});}function _0x4d4bf3(_0x3eef94){const _0xe8b8a7=_0x2d33d8;_0xbc9d5b['errors']=[];const _0x42d5e0=_0x52682b[_0xe8b8a7('0x112e')]()[_0xe8b8a7('0x14e4')](_0xe8b8a7('0x458'))[_0xe8b8a7('0x1c98')](_0xe8b8a7('0x89d'))[_0xe8b8a7('0x10bc')]('Delete\x20Variable')['ok'](_0xe8b8a7('0x2786'))['cancel']('Cancel')['targetEvent'](_0x3eef94);_0x52682b['show'](_0x42d5e0)[_0xe8b8a7('0x2788')](function(){const _0x57c79c=_0xe8b8a7;_0x255a18[_0x57c79c('0xa72')]['delete']({'id':_0xbc9d5b[_0x57c79c('0xa72')]['id']})['$promise'][_0x57c79c('0x2788')](function(){const _0x507a7f=_0x57c79c;_0x283545()[_0x507a7f('0x1a90')](_0xbc9d5b[_0x507a7f('0xf76')],{'id':_0xbc9d5b[_0x507a7f('0xa72')]['id']}),_0x3dda3f['success']({'title':_0x507a7f('0x15f4'),'msg':(_0xbc9d5b[_0x507a7f('0xa72')][_0x507a7f('0x1a8d')]||_0x507a7f('0xa72'))+_0x507a7f('0x14d4')}),_0x9658a8(_0xbc9d5b['variable']);})[_0x57c79c('0x1cb5')](function(_0x5ae1ce){const _0xcc938c=_0x57c79c;if(_0x5ae1ce[_0xcc938c('0x11fc')]&&_0x5ae1ce[_0xcc938c('0x11fc')][_0xcc938c('0x25be')]&&_0x5ae1ce[_0xcc938c('0x11fc')][_0xcc938c('0x25be')][_0xcc938c('0x2566')]){_0xbc9d5b[_0xcc938c('0x25be')]=_0x5ae1ce[_0xcc938c('0x11fc')][_0xcc938c('0x25be')]||[{'message':_0x5ae1ce['toString'](),'type':_0xcc938c('0x371')}];for(let _0x771758=0x0;_0x771758<_0x5ae1ce[_0xcc938c('0x11fc')]['errors'][_0xcc938c('0x2566')];_0x771758++){_0x3dda3f['error']({'title':_0x5ae1ce[_0xcc938c('0x11fc')]['errors'][_0x771758][_0xcc938c('0x1d7')],'msg':_0x5ae1ce[_0xcc938c('0x11fc')][_0xcc938c('0x25be')][_0x771758][_0xcc938c('0x15e2')]});}}else _0x3dda3f[_0xcc938c('0x5e8')]({'title':_0x5ae1ce['status']?_0xcc938c('0x15d1')+_0x5ae1ce[_0xcc938c('0x1b51')]+_0xcc938c('0x1b0b')+_0x5ae1ce[_0xcc938c('0x22ce')]:'api.variable.delete','msg':_0x5ae1ce[_0xcc938c('0x11fc')]?JSON[_0xcc938c('0x1be0')](_0x5ae1ce[_0xcc938c('0x11fc')]['message']):_0x5ae1ce[_0xcc938c('0x15e2')]||_0x5ae1ce[_0xcc938c('0x17df')]()});});},function(){});}function _0x4ef5a9(_0x227b76){return _0x227b76===null?undefined:new Date(_0x227b76);}function _0x9658a8(_0x1cf8ac){_0x52682b['hide'](_0x1cf8ac);}}const _0x2711c3=_0x645f5e,_0x20ca4c=_0x18dd13['p']+'src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog.html';_0x3e1ccc[_0x34e79e('0x2d9')]=['$scope','$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),'variables',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth','license',_0x34e79e('0x1af0')];function _0x3e1ccc(_0x28f51c,_0x45dc5e,_0x34e693,_0x1c8a90,_0x4c6a62,_0x58b557,_0x23dc3b,_0x466173,_0x42a480,_0x2e4329,_0x5eaff7,_0x5402e9,_0x56a807,_0x5b276e,_0xa76487,_0x49e008,_0x4ad2f0){const _0x182a2f=_0x34e79e,_0x25f7f7=this;_0x25f7f7[_0x182a2f('0x130d')]=_0x49e008,_0x25f7f7[_0x182a2f('0x1af0')]=_0x4ad2f0,_0x25f7f7[_0x182a2f('0x9cb')]=_0xa76487[_0x182a2f('0x24cc')](),_0x25f7f7[_0x182a2f('0xf76')]=_0x42a480||{'count':0x0,'rows':[]},_0x25f7f7[_0x182a2f('0x63c')]=_0x2e4329,_0x25f7f7[_0x182a2f('0xec9')]=_0x5eaff7&&_0x5eaff7[_0x182a2f('0x338')]==0x1?_0x5eaff7[_0x182a2f('0x25df')][0x0]:null,_0x25f7f7[_0x182a2f('0xe28')]=_0xa76487[_0x182a2f('0x157e')](_0x25f7f7[_0x182a2f('0xec9')]?_0x25f7f7['userProfileSection']['crudPermissions']:null),_0x25f7f7['table']=_0x182a2f('0xf76'),_0x25f7f7[_0x182a2f('0x2278')]='',_0x25f7f7[_0x182a2f('0x25e2')]=null,_0x25f7f7[_0x182a2f('0x1a39')]=[],_0x25f7f7['query']={'fields':_0x182a2f('0x1f79'),'sort':_0x182a2f('0x1cee'),'limit':0xa,'page':0x1},_0x25f7f7['editdialog']=_0xfbeddc,_0x25f7f7[_0x182a2f('0x1e5')]=_0x26ce88,_0x25f7f7[_0x182a2f('0x173b')]=_0x7eae96,_0x25f7f7[_0x182a2f('0x906')]=_0x139e68,_0x25f7f7['createOrEditVariable']=_0x565b9e,_0x25f7f7[_0x182a2f('0x259')]=_0x51a2b0,_0x25f7f7[_0x182a2f('0xb9')]=_0xe1580b,_0x25f7f7['deleteSelectedVariables']=_0x557938,_0x25f7f7[_0x182a2f('0x23be')]=_0x40d6c6,_0x25f7f7[_0x182a2f('0x191f')]=_0x404284;function _0xfbeddc(_0x3dbd07,_0x3a556b){const _0x253c9d=_0x182a2f;_0x4c6a62[_0x253c9d('0x2fa')]({'controller':'CreateOrEditVariableDialogController','controllerAs':'vm','templateUrl':_0x20ca4c,'parent':angular[_0x253c9d('0x16b1')](_0x58b557['body']),'targetEvent':_0x3a556b,'clickOutsideToClose':!![],'locals':{'variable':_0x3dbd07,'variables':_0x25f7f7[_0x253c9d('0xf76')][_0x253c9d('0x25df')],'license':_0x25f7f7[_0x253c9d('0x130d')],'setting':null,'crudPermissions':_0x25f7f7[_0x253c9d('0xe28')]}});}function _0x26ce88(_0x392e95,_0x3e34dd){const _0xaa6e82=_0x182a2f,_0x2fcb1b=_0x4c6a62['confirm']()[_0xaa6e82('0x14e4')](_0xaa6e82('0x2114')+_0x283545()[_0xaa6e82('0x114')]('variable')+'?')[_0xaa6e82('0x93e')](_0xaa6e82('0x1670')+(_0x392e95[_0xaa6e82('0x1a8d')]||_0xaa6e82('0xa72'))+''+'\x20will\x20be\x20deleted.')[_0xaa6e82('0x10bc')](_0xaa6e82('0x24e0'))[_0xaa6e82('0x24d0')](_0x3e34dd)['ok']('OK')[_0xaa6e82('0x1801')](_0xaa6e82('0x1d8d'));_0x4c6a62[_0xaa6e82('0x2fa')](_0x2fcb1b)[_0xaa6e82('0x2788')](function(){_0x51a2b0(_0x392e95);},function(){const _0x241cc4=_0xaa6e82;console[_0x241cc4('0x10df')](_0x241cc4('0x1d8d'));});}let _0x4ce5a4=!![],_0x2718c4=0x1;_0x28f51c[_0x182a2f('0x1662')](_0x182a2f('0x1569'),function(_0x642bfa,_0x51b0e5){const _0x856211=_0x182a2f;_0x4ce5a4?_0x23dc3b(function(){_0x4ce5a4=![];}):(!_0x51b0e5&&(_0x2718c4=_0x25f7f7[_0x856211('0x135a')][_0x856211('0x23f5')]),_0x642bfa!==_0x51b0e5&&(_0x25f7f7[_0x856211('0x135a')][_0x856211('0x23f5')]=0x1),!_0x642bfa&&(_0x25f7f7['query'][_0x856211('0x23f5')]=_0x2718c4),_0x25f7f7[_0x856211('0x906')]());});function _0x7eae96(_0x535819){const _0x59c54d=_0x182a2f;_0x25f7f7[_0x59c54d('0xf76')]=_0x535819||{'count':0x0,'rows':[]};}function _0x139e68(){const _0x4272be=_0x182a2f;_0x25f7f7[_0x4272be('0x135a')][_0x4272be('0x19e')]=(_0x25f7f7[_0x4272be('0x135a')]['page']-0x1)*_0x25f7f7[_0x4272be('0x135a')][_0x4272be('0x68e')],_0xa76487[_0x4272be('0x1516')]('admin')?_0x25f7f7[_0x4272be('0x1808')]=_0x5402e9[_0x4272be('0xa72')]['get'](_0x25f7f7[_0x4272be('0x135a')],_0x7eae96)[_0x4272be('0x1714')]:(_0x25f7f7[_0x4272be('0x135a')]['id']=_0x25f7f7['userProfile']['id'],_0x25f7f7[_0x4272be('0x135a')][_0x4272be('0xb13')]=_0x4272be('0x276f'),_0x25f7f7[_0x4272be('0x1808')]=_0x5402e9[_0x4272be('0x63c')][_0x4272be('0xa1')](_0x25f7f7[_0x4272be('0x135a')],_0x7eae96)[_0x4272be('0x1714')]);}function _0x565b9e(_0x306adc,_0x389274){const _0x5e3cba=_0x182a2f;_0x4c6a62[_0x5e3cba('0x2fa')]({'controller':_0x5e3cba('0x55a'),'controllerAs':'vm','templateUrl':_0x20ca4c,'parent':angular[_0x5e3cba('0x16b1')](_0x58b557[_0x5e3cba('0x945')]),'targetEvent':_0x306adc,'clickOutsideToClose':!![],'locals':{'variable':_0x389274,'variables':_0x25f7f7[_0x5e3cba('0xf76')][_0x5e3cba('0x25df')],'license':_0x25f7f7[_0x5e3cba('0x130d')],'setting':_0x25f7f7[_0x5e3cba('0x1af0')],'crudPermissions':_0x25f7f7[_0x5e3cba('0xe28')]}});}function _0x51a2b0(_0x2514a8){const _0x1b174a=_0x182a2f;_0x5402e9[_0x1b174a('0xa72')][_0x1b174a('0x17c4')]({'id':_0x2514a8['id']})[_0x1b174a('0x1714')]['then'](function(){const _0x1c9f6e=_0x1b174a;_0x283545()[_0x1c9f6e('0x1a90')](_0x25f7f7['variables'][_0x1c9f6e('0x25df')],{'id':_0x2514a8['id']}),_0x25f7f7[_0x1c9f6e('0xf76')][_0x1c9f6e('0x338')]-=0x1,!_0x25f7f7[_0x1c9f6e('0xf76')][_0x1c9f6e('0x25df')]['length']&&_0x25f7f7[_0x1c9f6e('0x906')](),_0x5b276e['success']({'title':_0x283545()[_0x1c9f6e('0x114')](_0x1c9f6e('0x158c'))+_0x1c9f6e('0x20db'),'msg':_0x2514a8[_0x1c9f6e('0x1a8d')]?_0x2514a8[_0x1c9f6e('0x1a8d')]+_0x1c9f6e('0x14d4'):''});})[_0x1b174a('0x1cb5')](function(_0xad13f0){const _0xfb306b=_0x1b174a;if(_0xad13f0[_0xfb306b('0x11fc')]&&_0xad13f0['data'][_0xfb306b('0x25be')]&&_0xad13f0[_0xfb306b('0x11fc')][_0xfb306b('0x25be')][_0xfb306b('0x2566')]){_0x25f7f7['errors']=_0xad13f0[_0xfb306b('0x11fc')]['errors']||[{'message':_0xad13f0[_0xfb306b('0x17df')](),'type':_0xfb306b('0x1149')}];for(let _0x24069b=0x0;_0x24069b<_0xad13f0[_0xfb306b('0x11fc')][_0xfb306b('0x25be')][_0xfb306b('0x2566')];_0x24069b++){_0x5b276e[_0xfb306b('0x5e8')]({'title':_0xad13f0[_0xfb306b('0x11fc')]['errors'][_0x24069b][_0xfb306b('0x1d7')],'msg':_0xad13f0[_0xfb306b('0x11fc')][_0xfb306b('0x25be')][_0x24069b][_0xfb306b('0x15e2')]});}}else _0x5b276e[_0xfb306b('0x5e8')]({'title':_0xad13f0['status']?_0xfb306b('0x15d1')+_0xad13f0[_0xfb306b('0x1b51')]+'\x20-\x20'+_0xad13f0[_0xfb306b('0x22ce')]:_0xfb306b('0x1149'),'msg':_0xad13f0['data']?JSON[_0xfb306b('0x1be0')](_0xad13f0[_0xfb306b('0x11fc')]['message']):_0xad13f0['message']||_0xad13f0[_0xfb306b('0x17df')]()});});}function _0xe1580b(){const _0x467164=_0x182a2f,_0x5b90dc=angular[_0x467164('0x2669')](_0x25f7f7['selectedVariables']);return _0x25f7f7[_0x467164('0x1a39')]=[],_0x5b90dc;}function _0x557938(_0x512867){const _0x493c67=_0x182a2f,_0x3c214b=_0x4c6a62[_0x493c67('0x112e')]()[_0x493c67('0x14e4')](_0x493c67('0x8c3'))[_0x493c67('0x93e')](_0x493c67('0x1670')+_0x25f7f7['selectedVariables'][_0x493c67('0x2566')]+_0x493c67('0xbd')+'\x20will\x20be\x20deleted.')[_0x493c67('0x10bc')](_0x493c67('0x1b81'))[_0x493c67('0x24d0')](_0x512867)['ok']('OK')[_0x493c67('0x1801')](_0x493c67('0x1d8d'));_0x4c6a62[_0x493c67('0x2fa')](_0x3c214b)['then'](function(){const _0x47670c=_0x493c67;_0x25f7f7[_0x47670c('0x1a39')]['forEach'](function(_0x367271){_0x51a2b0(_0x367271);}),_0x25f7f7[_0x47670c('0x1a39')]=[];});}function _0x40d6c6(){_0x25f7f7['selectedVariables']=[];}function _0x404284(){const _0x1ff2ca=_0x182a2f;_0x25f7f7[_0x1ff2ca('0x1a39')]=_0x25f7f7['variables']['rows'];}}const _0x4decec=_0x3e1ccc;_0x9d4298['$inject']=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x9d4298(_0x7284e9,_0xc45a82){const _0x216b35=_0x34e79e;_0x7284e9[_0x216b35('0x249b')](_0x216b35('0x1a79'),{'abstract':!![],'url':_0x216b35('0x12df')})[_0x216b35('0x249b')](_0x216b35('0x1c74'),{'url':_0x216b35('0x1743'),'views':{'content@app':{'templateUrl':_0xbab399,'controller':'CannedAnswersController\x20as\x20vm'}},'resolve':{'cannedAnswers':[_0x216b35('0x1318'),'Auth',function(_0x451fa,_0x380539){const _0xbc87f3=_0x216b35;return _0x380539[_0xbc87f3('0x1516')]('admin')?_0x451fa[_0xbc87f3('0x2322')](_0xbc87f3('0x4a0'),{'fields':_0xbc87f3('0x10ad'),'sort':'-updatedAt','MailAccountId':_0xbc87f3('0x954'),'FaxAccountId':'null','SmsAccountId':_0xbc87f3('0x954'),'OpenchannelAccountId':_0xbc87f3('0x954'),'ChatWebsiteId':_0xbc87f3('0x954'),'limit':0xa,'offset':0x0}):_0x451fa[_0xbc87f3('0x2322')](_0xbc87f3('0x27c5'),{'id':_0x380539[_0xbc87f3('0x24cc')]()[_0xbc87f3('0x237f')],'section':'CannedAnswers','fields':'createdAt,updatedAt,id,key,value,description','sort':_0xbc87f3('0x1cee'),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0xbc87f3('0x954'),'OpenchannelAccountId':_0xbc87f3('0x954'),'ChatWebsiteId':_0xbc87f3('0x954'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x4b09a7,_0x501324){const _0x6279d0=_0x216b35;return _0x501324[_0x6279d0('0x1516')](_0x6279d0('0xe23'))?null:_0x4b09a7[_0x6279d0('0x2322')]('userProfile@get',{'fields':_0x6279d0('0x3f0'),'id':_0x501324[_0x6279d0('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x216b35('0x1b04'),function(_0x58195f,_0x88b73c){const _0x5e803e=_0x216b35;return _0x88b73c[_0x5e803e('0x1516')]('admin')?null:_0x58195f['resolve'](_0x5e803e('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x88b73c[_0x5e803e('0x24cc')]()[_0x5e803e('0x237f')],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0xf93'),{'url':_0x216b35('0x3d'),'views':{'content@app':{'templateUrl':_0x1b5276,'controller':'CustomDashboardsController\x20as\x20vm'}},'resolve':{'customDashboards':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x576a6c,_0x401be3){const _0x1a0eda=_0x216b35;return _0x401be3[_0x1a0eda('0x1516')]('admin')?_0x576a6c['resolve'](_0x1a0eda('0x17c8'),{'fields':_0x1a0eda('0x1f79'),'sort':_0x1a0eda('0x1cee'),'limit':0xa,'offset':0x0}):_0x576a6c[_0x1a0eda('0x2322')](_0x1a0eda('0x27c5'),{'id':_0x401be3[_0x1a0eda('0x24cc')]()[_0x1a0eda('0x237f')],'section':_0x1a0eda('0x780'),'fields':_0x1a0eda('0x1f79'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x3209d4,_0x3cbef2){const _0x328340=_0x216b35;return _0x3cbef2[_0x328340('0x1516')]('admin')?null:_0x3209d4[_0x328340('0x2322')](_0x328340('0x231d'),{'fields':'id,name,crudPermissions','id':_0x3cbef2[_0x328340('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x216b35('0x1b04'),function(_0x399880,_0x5a9153){const _0x14b17a=_0x216b35;return _0x5a9153['hasRole']('admin')?null:_0x399880[_0x14b17a('0x2322')](_0x14b17a('0x22ca'),{'fields':_0x14b17a('0xe2c'),'userProfileId':_0x5a9153[_0x14b17a('0x24cc')]()[_0x14b17a('0x237f')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0x14a9'),{'url':'/:id?tab','params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x43a7f0,'controller':_0x216b35('0xe6e')}},'resolve':{'customDashboard':[_0x216b35('0x1318'),_0x216b35('0xad0'),function(_0x32a157,_0x2bdb0f){const _0x5581a3=_0x216b35;return _0x32a157[_0x5581a3('0x2322')](_0x5581a3('0x17c8'),{'fields':_0x5581a3('0x1f79'),'id':_0x2bdb0f['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x2de115,_0x14548d){const _0x2070ea=_0x216b35;return _0x2de115[_0x2070ea('0x2322')]('userProfileSection@get',{'fields':_0x2070ea('0xe2c'),'userProfileId':_0x14548d['getCurrentUser']()[_0x2070ea('0x237f')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')]('app.tools.intervals',{'url':_0x216b35('0x119e'),'views':{'content@app':{'templateUrl':_0x371b3e,'controller':_0x216b35('0xa04')}},'resolve':{'intervals':[_0x216b35('0x1318'),'Auth',function(_0x2f3dda,_0x74f9e9){const _0x2c68a0=_0x216b35;return _0x74f9e9[_0x2c68a0('0x1516')](_0x2c68a0('0xe23'))?_0x2f3dda[_0x2c68a0('0x2322')]('interval@get',{'fields':_0x2c68a0('0x1f79'),'sort':_0x2c68a0('0x1cee'),'IntervalId':_0x2c68a0('0x954'),'limit':0xa,'offset':0x0}):_0x2f3dda['resolve'](_0x2c68a0('0x27c5'),{'id':_0x74f9e9[_0x2c68a0('0x24cc')]()[_0x2c68a0('0x237f')],'section':_0x2c68a0('0x1fab'),'fields':_0x2c68a0('0x1f79'),'sort':_0x2c68a0('0x1cee'),'IntervalId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),'Auth',function(_0x38ed38,_0x5c1544){const _0x40bdc0=_0x216b35;return _0x5c1544['hasRole']('admin')?null:_0x38ed38[_0x40bdc0('0x2322')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x5c1544['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x31e991,_0x24ede8){const _0x4458a0=_0x216b35;return _0x24ede8[_0x4458a0('0x1516')](_0x4458a0('0xe23'))?null:_0x31e991[_0x4458a0('0x2322')](_0x4458a0('0x22ca'),{'fields':_0x4458a0('0xe2c'),'userProfileId':_0x24ede8['getCurrentUser']()[_0x4458a0('0x237f')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')]('app.tools.intervals.edit',{'url':'/:id?tab','params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x501772,'controller':_0x216b35('0x1306')}},'resolve':{'interval':[_0x216b35('0x1318'),_0x216b35('0xad0'),function(_0x443eb8,_0x16505e){const _0x7f8e08=_0x216b35;return _0x443eb8['resolve'](_0x7f8e08('0x1ddc'),{'fields':'createdAt,updatedAt,id,name,description','id':_0x16505e['id']});}],'userProfileSection':[_0x216b35('0x1318'),'Auth',function(_0x14a1d5,_0x42d135){const _0x4ecc1=_0x216b35;return _0x14a1d5[_0x4ecc1('0x2322')](_0x4ecc1('0x22ca'),{'fields':_0x4ecc1('0xe2c'),'userProfileId':_0x42d135[_0x4ecc1('0x24cc')]()[_0x4ecc1('0x237f')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x216b35('0x10e1')})['state'](_0x216b35('0x1810'),{'url':_0x216b35('0x1462'),'views':{'content@app':{'templateUrl':_0x3ac081,'controller':'PausesController\x20as\x20vm'}},'resolve':{'pauses':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x291d1f,_0x1e9dad){const _0x2d6cd6=_0x216b35;return _0x1e9dad['hasRole'](_0x2d6cd6('0xe23'))?_0x291d1f[_0x2d6cd6('0x2322')](_0x2d6cd6('0x6c1'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x2d6cd6('0x1cee'),'limit':0xa,'offset':0x0}):_0x291d1f[_0x2d6cd6('0x2322')](_0x2d6cd6('0x27c5'),{'id':_0x1e9dad[_0x2d6cd6('0x24cc')]()[_0x2d6cd6('0x237f')],'section':_0x2d6cd6('0x1ed6'),'fields':_0x2d6cd6('0x1f79'),'sort':_0x2d6cd6('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0xc397df,_0x165030){const _0x5b84d8=_0x216b35;return _0x165030[_0x5b84d8('0x1516')](_0x5b84d8('0xe23'))?null:_0xc397df['resolve'](_0x5b84d8('0x231d'),{'fields':_0x5b84d8('0x3f0'),'id':_0x165030[_0x5b84d8('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x44bcd3,_0x266fdb){const _0x1df154=_0x216b35;return _0x266fdb[_0x1df154('0x1516')]('admin')?null:_0x44bcd3[_0x1df154('0x2322')](_0x1df154('0x22ca'),{'fields':_0x1df154('0xe2c'),'userProfileId':_0x266fdb[_0x1df154('0x24cc')]()[_0x1df154('0x237f')],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0x5e3'),{'url':_0x216b35('0x1617'),'views':{'content@app':{'templateUrl':_0x41afdf,'controller':_0x216b35('0x1290')}},'resolve':{'schedules':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x29ad52,_0x5cb5b5){const _0x2c9c4e=_0x216b35;return _0x5cb5b5[_0x2c9c4e('0x1516')](_0x2c9c4e('0xe23'))?_0x29ad52[_0x2c9c4e('0x2322')](_0x2c9c4e('0x1491'),{'fields':_0x2c9c4e('0x16e8'),'sort':_0x2c9c4e('0x1cee'),'limit':0xa,'offset':0x0}):_0x29ad52[_0x2c9c4e('0x2322')](_0x2c9c4e('0x27c5'),{'id':_0x5cb5b5['getCurrentUser']()['userProfileId'],'section':_0x2c9c4e('0x149'),'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0x2c9c4e('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x216b35('0x1b04'),function(_0x1b02ec,_0xec25fb){const _0x138bc7=_0x216b35;return _0xec25fb['hasRole'](_0x138bc7('0xe23'))?null:_0x1b02ec['resolve'](_0x138bc7('0x231d'),{'fields':'id,name,crudPermissions','id':_0xec25fb[_0x138bc7('0x24cc')]()[_0x138bc7('0x237f')]});}],'userProfileSection':['apiResolver',_0x216b35('0x1b04'),function(_0x5eb27a,_0x139627){const _0x59e979=_0x216b35;return _0x139627['hasRole'](_0x59e979('0xe23'))?null:_0x5eb27a['resolve'](_0x59e979('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x139627[_0x59e979('0x24cc')]()['userProfileId'],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0x276e'),{'url':_0x216b35('0x278'),'views':{'content@app':{'templateUrl':_0x4921ca,'controller':_0x216b35('0x241b')}},'resolve':{'sounds':[_0x216b35('0x1318'),'Auth',function(_0x3a0a14,_0x3cc52b){const _0x2a97d4=_0x216b35;return _0x3cc52b['hasRole'](_0x2a97d4('0xe23'))?_0x3a0a14[_0x2a97d4('0x2322')]('sound@get',{'fields':_0x2a97d4('0x21ab'),'sort':_0x2a97d4('0x1cee'),'limit':0xa,'offset':0x0}):_0x3a0a14['resolve'](_0x2a97d4('0x27c5'),{'id':_0x3cc52b[_0x2a97d4('0x24cc')]()[_0x2a97d4('0x237f')],'section':_0x2a97d4('0x4c3'),'fields':_0x2a97d4('0x21ab'),'sort':_0x2a97d4('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),'Auth',function(_0x446506,_0x3ba3fa){const _0x2ba835=_0x216b35;return _0x3ba3fa[_0x2ba835('0x1516')](_0x2ba835('0xe23'))?null:_0x446506['resolve'](_0x2ba835('0x231d'),{'fields':_0x2ba835('0x3f0'),'id':_0x3ba3fa[_0x2ba835('0x24cc')]()[_0x2ba835('0x237f')]});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x56a6ab,_0x47e3b8){const _0xee5c8f=_0x216b35;return _0x47e3b8[_0xee5c8f('0x1516')](_0xee5c8f('0xe23'))?null:_0x56a6ab['resolve'](_0xee5c8f('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x47e3b8[_0xee5c8f('0x24cc')]()[_0xee5c8f('0x237f')],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':'tools'})[_0x216b35('0x249b')](_0x216b35('0xb75'),{'url':_0x216b35('0x109c'),'views':{'content@app':{'templateUrl':_0x2c4ec8,'controller':_0x216b35('0x175c')}},'resolve':{'tags':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x2914c4,_0x150b66){const _0x243bde=_0x216b35;return _0x150b66[_0x243bde('0x1516')](_0x243bde('0xe23'))?_0x2914c4[_0x243bde('0x2322')](_0x243bde('0x46c'),{'fields':_0x243bde('0x26e7'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2914c4[_0x243bde('0x2322')](_0x243bde('0x27c5'),{'id':_0x150b66[_0x243bde('0x24cc')]()[_0x243bde('0x237f')],'section':'Tags','fields':_0x243bde('0x26e7'),'sort':_0x243bde('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x5ea56c,_0xadf06c){const _0x545af9=_0x216b35;return _0xadf06c[_0x545af9('0x1516')]('admin')?null:_0x5ea56c['resolve'](_0x545af9('0x231d'),{'fields':_0x545af9('0x3f0'),'id':_0xadf06c[_0x545af9('0x24cc')]()[_0x545af9('0x237f')]});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x36c32f,_0x3cd705){const _0x1e9034=_0x216b35;return _0x3cd705[_0x1e9034('0x1516')](_0x1e9034('0xe23'))?null:_0x36c32f['resolve'](_0x1e9034('0x22ca'),{'fields':_0x1e9034('0xe2c'),'userProfileId':_0x3cd705[_0x1e9034('0x24cc')]()['userProfileId'],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':'tools'})[_0x216b35('0x249b')](_0x216b35('0x211a'),{'url':'/templates','views':{'content@app':{'templateUrl':_0x3aada4,'controller':_0x216b35('0x247')}},'resolve':{'templates':['apiResolver','Auth',function(_0x43e207,_0x1fe924){const _0x5883a9=_0x216b35;return _0x1fe924[_0x5883a9('0x1516')](_0x5883a9('0xe23'))?_0x43e207['resolve'](_0x5883a9('0x1d9'),{'fields':_0x5883a9('0x613'),'sort':_0x5883a9('0x1cee'),'limit':0xa,'offset':0x0}):_0x43e207[_0x5883a9('0x2322')](_0x5883a9('0x27c5'),{'id':_0x1fe924[_0x5883a9('0x24cc')]()[_0x5883a9('0x237f')],'section':_0x5883a9('0x177c'),'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x5883a9('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x216b35('0x1b04'),function(_0x6281e,_0x57370e){const _0x32c994=_0x216b35;return _0x57370e['hasRole']('admin')?null:_0x6281e['resolve'](_0x32c994('0x231d'),{'fields':'id,name,crudPermissions','id':_0x57370e[_0x32c994('0x24cc')]()[_0x32c994('0x237f')]});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x1b54e5,_0x311b3b){const _0x4e2b18=_0x216b35;return _0x311b3b[_0x4e2b18('0x1516')](_0x4e2b18('0xe23'))?null:_0x1b54e5['resolve']('userProfileSection@get',{'fields':_0x4e2b18('0xe2c'),'userProfileId':_0x311b3b[_0x4e2b18('0x24cc')]()[_0x4e2b18('0x237f')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0x2070'),{'url':'/trunks','views':{'content@app':{'templateUrl':_0x4e5bb0,'controller':_0x216b35('0x1e32')}},'resolve':{'trunks':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x4f53f7,_0x210460){const _0x47c60f=_0x216b35;return _0x210460[_0x47c60f('0x1516')](_0x47c60f('0xe23'))?_0x4f53f7[_0x47c60f('0x2322')](_0x47c60f('0x7d4'),{'fields':_0x47c60f('0x135c'),'sort':_0x47c60f('0x1cee'),'limit':0xa,'offset':0x0}):_0x4f53f7[_0x47c60f('0x2322')](_0x47c60f('0x27c5'),{'id':_0x210460['getCurrentUser']()[_0x47c60f('0x237f')],'section':'Trunks','fields':_0x47c60f('0x135c'),'sort':_0x47c60f('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x216b35('0x1b04'),function(_0x2afadf,_0x38ad77){const _0xa10fdd=_0x216b35;return _0x38ad77['hasRole'](_0xa10fdd('0xe23'))?null:_0x2afadf['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x38ad77[_0xa10fdd('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x4c3026,_0x597ee4){const _0x5f19a=_0x216b35;return _0x597ee4[_0x5f19a('0x1516')]('admin')?null:_0x4c3026[_0x5f19a('0x2322')]('userProfileSection@get',{'fields':_0x5f19a('0xe2c'),'userProfileId':_0x597ee4[_0x5f19a('0x24cc')]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':'tools'})[_0x216b35('0x249b')](_0x216b35('0x108c'),{'url':_0x216b35('0x206b'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x479fe2,'controller':_0x216b35('0xdf')}},'resolve':{'trunk':['apiResolver',_0x216b35('0xad0'),function(_0x2ba6b0,_0x181fce){const _0x891e25=_0x216b35;return _0x2ba6b0[_0x891e25('0x2322')](_0x891e25('0x7d4'),{'fields':_0x891e25('0x135c'),'id':_0x181fce['id']});}],'userProfileSection':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x1ec073,_0x4eb034){const _0x6baaab=_0x216b35;return _0x1ec073[_0x6baaab('0x2322')]('userProfileSection@get',{'fields':_0x6baaab('0xe2c'),'userProfileId':_0x4eb034['getCurrentUser']()[_0x6baaab('0x237f')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x216b35('0x10e1')})[_0x216b35('0x249b')](_0x216b35('0x13bf'),{'url':_0x216b35('0x13fc'),'views':{'content@app':{'templateUrl':_0x41e3df,'controller':_0x216b35('0x14a2')}},'resolve':{'variables':[_0x216b35('0x1318'),_0x216b35('0x1b04'),function(_0x3528d2,_0x57177b){const _0xa2d5d8=_0x216b35;return _0x57177b['hasRole'](_0xa2d5d8('0xe23'))?_0x3528d2[_0xa2d5d8('0x2322')](_0xa2d5d8('0x22d1'),{'fields':_0xa2d5d8('0x1f79'),'sort':_0xa2d5d8('0x1cee'),'limit':0xa,'offset':0x0}):_0x3528d2[_0xa2d5d8('0x2322')](_0xa2d5d8('0x27c5'),{'id':_0x57177b[_0xa2d5d8('0x24cc')]()[_0xa2d5d8('0x237f')],'section':_0xa2d5d8('0x276f'),'fields':_0xa2d5d8('0x1f79'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x216b35('0x1318'),'Auth',function(_0x1b8832,_0xc4510d){const _0x1b1c29=_0x216b35;return _0xc4510d[_0x1b1c29('0x1516')]('admin')?null:_0x1b8832[_0x1b1c29('0x2322')]('userProfile@get',{'fields':_0x1b1c29('0x3f0'),'id':_0xc4510d[_0x1b1c29('0x24cc')]()[_0x1b1c29('0x237f')]});}],'userProfileSection':[_0x216b35('0x1318'),'Auth',function(_0x10515d,_0x2bc02c){const _0x3357f4=_0x216b35;return _0x2bc02c[_0x3357f4('0x1516')](_0x3357f4('0xe23'))?null:_0x10515d['resolve']('userProfileSection@get',{'fields':_0x3357f4('0xe2c'),'userProfileId':_0x2bc02c['getCurrentUser']()[_0x3357f4('0x237f')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x216b35('0x10e1')}),_0xc45a82[_0x216b35('0x15ae')](_0x216b35('0x54b'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1a79'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),'mdColorPicker',_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),'ngEmbed',_0x34e79e('0x1ed9'),'material.components.expansionPanels',_0x34e79e('0x429'),'angular.filter',_0x34e79e('0xb32'),_0x34e79e('0xf01')])[_0x34e79e('0x1a22')](_0x9d4298)[_0x34e79e('0xb44')](_0x34e79e('0x2296'),_0x506d57)[_0x34e79e('0xb44')](_0x34e79e('0x10e2'),_0x5f0f7a)[_0x34e79e('0xb44')]('CreateOrEditCustomDashboardDialogController',_0x2bdbf0)['controller'](_0x34e79e('0x13f0'),_0xb20051)[_0x34e79e('0xb44')](_0x34e79e('0x12f1'),_0x1319cf)[_0x34e79e('0xb44')]('CustomDashboardItemsController',_0x54fe90)[_0x34e79e('0xb44')]('CreateOrEditDashboardItemDialogController',_0x506360)['controller']('CustomDashboardController',_0x4eb2a0)[_0x34e79e('0xb44')]('CreateOrEditIntervalDialogController',_0x4f97c4)[_0x34e79e('0xb44')](_0x34e79e('0x147d'),_0x541dfb)[_0x34e79e('0xb44')](_0x34e79e('0x1bb5'),_0x34e3fc)[_0x34e79e('0xb44')](_0x34e79e('0x1c57'),_0x165867)[_0x34e79e('0xb44')](_0x34e79e('0x441'),_0x17692b)['controller'](_0x34e79e('0x2802'),_0x5d2c8c)[_0x34e79e('0xb44')](_0x34e79e('0x2a6'),_0x5c6662)[_0x34e79e('0xb44')]('CreateOrEditScheduleDialogController',_0x3452eb)[_0x34e79e('0xb44')]('SchedulesController',_0x12126)[_0x34e79e('0xb44')](_0x34e79e('0x1bc0'),_0x266aff)[_0x34e79e('0xb44')](_0x34e79e('0x2520'),_0x383239)[_0x34e79e('0xb44')](_0x34e79e('0xd4f'),_0x141384)['controller']('CreateOrEditTagDialogController',_0x1dbc29)[_0x34e79e('0xb44')](_0x34e79e('0x2723'),_0x473d14)[_0x34e79e('0xb44')]('CreateOrEditTemplateDialogController',_0x5d366c)[_0x34e79e('0xb44')]('TemplatesController',_0x181e8d)[_0x34e79e('0xb44')](_0x34e79e('0x19e5'),_0x53c08f)['controller']('TrunkcloneController',_0x53e202)[_0x34e79e('0xb44')](_0x34e79e('0x247a'),_0x3befc8)[_0x34e79e('0xb44')](_0x34e79e('0x1b47'),_0x42b3d1)[_0x34e79e('0xb44')](_0x34e79e('0x55a'),_0x2711c3)['controller'](_0x34e79e('0xefc'),_0x4decec);const _0x483534=_0x18dd13['p']+'src/js/modules/main/apps/callysquare/views/projects/projects.html/projects.html',_0x13a2a4=_0x18dd13['p']+_0x34e79e('0xa51');_0x56509f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1b04'),'toasty','projects',_0x34e79e('0x1bf6'),_0x34e79e('0x519'),_0x34e79e('0xc2'),_0x34e79e('0xe28')];function _0x56509f(_0x1eb347,_0x51bc9e,_0x5f4a90,_0x334313,_0x5128f5,_0x23082d,_0x441a9b,_0x469098,_0x43c1e1,_0x5eaf70,_0x206423){const _0x3d34c4=_0x34e79e,_0x291256=this;_0x291256[_0x3d34c4('0x25be')]=[],_0x291256[_0x3d34c4('0x14e4')]='CALLYSQUARE.EDIT_PROJECT',_0x291256[_0x3d34c4('0xe28')]=_0x206423,_0x291256[_0x3d34c4('0x1bf6')]=angular[_0x3d34c4('0x2669')](_0x469098),_0x291256[_0x3d34c4('0x17fb')]=!![],_0x291256[_0x3d34c4('0x18f9')]=_0x441a9b,_0x291256['newProject']=![],_0x291256[_0x3d34c4('0xc2')]=_0x5eaf70;!_0x291256[_0x3d34c4('0x1bf6')]&&(_0x291256[_0x3d34c4('0x1bf6')]={'name':'','description':''},_0x291256[_0x3d34c4('0x14e4')]=_0x3d34c4('0x14c5'),_0x291256[_0x3d34c4('0x123f')]=!![]);_0x291256[_0x3d34c4('0x2180')]=_0x3ba3a6,_0x291256[_0x3d34c4('0x2243')]=_0x547542,_0x291256[_0x3d34c4('0x151a')]=_0x22d36c,_0x291256['closeDialog']=_0x21dd7d;function _0x3ba3a6(){const _0x2e07c5=_0x3d34c4;_0x291256['errors']=[],_0x43c1e1[_0x2e07c5('0x163a')][_0x2e07c5('0xbd0')](_0x291256[_0x2e07c5('0x1bf6')])['$promise'][_0x2e07c5('0x2788')](function(_0x1da9c0){const _0x8d7970=_0x2e07c5;return _0x43c1e1[_0x8d7970('0x1e6a')]['addSquareProjects']({'id':_0x5128f5[_0x8d7970('0x24cc')]()['id'],'ids':[_0x1da9c0['id']]})[_0x8d7970('0x1714')],_0x1da9c0;})['then'](function(_0x3818f1){const _0x5d015c=_0x2e07c5;_0x291256[_0x5d015c('0x18f9')][_0x5d015c('0xc51')](_0x3818f1),_0x23082d[_0x5d015c('0x173b')]({'title':'Project\x20properly\x20created','msg':_0x291256[_0x5d015c('0x1bf6')][_0x5d015c('0x1a8d')]?_0x291256['project'][_0x5d015c('0x1a8d')]+_0x5d015c('0x1e4a'):''}),_0x21dd7d(_0x3818f1),_0x291256[_0x5d015c('0xc2')]&&(_0x291256['newWindow']?_0x51bc9e[_0x5d015c('0x241a')](_0x5d015c('0x126f')+_0x3818f1['id'],_0x5d015c('0x2558')):_0x5f4a90['go'](_0x5d015c('0xa36'),{'id':_0x3818f1['id']}));})[_0x2e07c5('0x1cb5')](function(_0x476b17){const _0x380f8e=_0x2e07c5;if(_0x476b17[_0x380f8e('0x11fc')]&&_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x25be')]&&_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x25be')][_0x380f8e('0x2566')]){_0x291256[_0x380f8e('0x25be')]=_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x25be')]||[{'message':_0x476b17[_0x380f8e('0x17df')](),'type':_0x380f8e('0xe04')}];for(let _0x2d7f56=0x0;_0x2d7f56<_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x25be')]['length'];_0x2d7f56++){_0x23082d[_0x380f8e('0x5e8')]({'title':_0x476b17['data'][_0x380f8e('0x25be')][_0x2d7f56]['type'],'msg':_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x25be')][_0x2d7f56][_0x380f8e('0x15e2')]});}}else _0x23082d[_0x380f8e('0x5e8')]({'title':_0x476b17[_0x380f8e('0x1b51')]?_0x380f8e('0x15d1')+_0x476b17[_0x380f8e('0x1b51')]+_0x380f8e('0x1b0b')+_0x476b17['statusText']:_0x380f8e('0xe04'),'msg':_0x476b17[_0x380f8e('0x11fc')]?JSON['stringify'](_0x476b17[_0x380f8e('0x11fc')][_0x380f8e('0x15e2')]):_0x476b17[_0x380f8e('0x17df')]()});});}function _0x547542(){const _0x455021=_0x3d34c4;_0x291256[_0x455021('0x25be')]=[],_0x43c1e1[_0x455021('0x163a')][_0x455021('0x2740')]({'id':_0x291256[_0x455021('0x1bf6')]['id']},_0x291256[_0x455021('0x1bf6')])[_0x455021('0x1714')][_0x455021('0x2788')](function(_0x4923b3){const _0x2df07c=_0x455021,_0x16d4de=_0x283545()['find'](_0x291256[_0x2df07c('0x18f9')],{'id':_0x4923b3['id']});_0x16d4de&&_0x283545()[_0x2df07c('0x2503')](_0x16d4de,_0x4923b3),_0x23082d['success']({'title':_0x2df07c('0x117a'),'msg':_0x291256[_0x2df07c('0x1bf6')][_0x2df07c('0x1a8d')]?_0x291256[_0x2df07c('0x1bf6')][_0x2df07c('0x1a8d')]+_0x2df07c('0x24cf'):''}),_0x21dd7d(_0x4923b3);})['catch'](function(_0x97e9cc){const _0x87f221=_0x455021;if(_0x97e9cc[_0x87f221('0x11fc')]&&_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x25be')]&&_0x97e9cc['data'][_0x87f221('0x25be')][_0x87f221('0x2566')]){_0x291256[_0x87f221('0x25be')]=_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x25be')]||[{'message':_0x97e9cc[_0x87f221('0x17df')](),'type':_0x87f221('0x26d8')}];for(let _0xa67d5f=0x0;_0xa67d5f<_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x25be')][_0x87f221('0x2566')];_0xa67d5f++){_0x23082d[_0x87f221('0x5e8')]({'title':_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x25be')][_0xa67d5f][_0x87f221('0x1d7')],'msg':_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x25be')][_0xa67d5f][_0x87f221('0x15e2')]});}}else _0x23082d[_0x87f221('0x5e8')]({'title':_0x97e9cc[_0x87f221('0x1b51')]?_0x87f221('0x15d1')+_0x97e9cc[_0x87f221('0x1b51')]+'\x20-\x20'+_0x97e9cc[_0x87f221('0x22ce')]:_0x87f221('0x26d8'),'msg':_0x97e9cc[_0x87f221('0x11fc')]?JSON[_0x87f221('0x1be0')](_0x97e9cc[_0x87f221('0x11fc')][_0x87f221('0x15e2')]):_0x97e9cc['toString']()});});}function _0x22d36c(){const _0x46de83=_0x3d34c4;_0x291256[_0x46de83('0x25be')]=[];const _0x188d58=_0x1eb347[_0x46de83('0x112e')]()[_0x46de83('0x14e4')](_0x46de83('0x458'))['content'](_0x46de83('0x21ed'))['ariaLabel'](_0x46de83('0xcf9'))['ok'](_0x46de83('0x2786'))[_0x46de83('0x1801')](_0x46de83('0x1481'))[_0x46de83('0x24d0')](event);_0x1eb347[_0x46de83('0x2fa')](_0x188d58)[_0x46de83('0x2788')](function(){const _0x250110=_0x46de83;_0x43c1e1[_0x250110('0x163a')][_0x250110('0x17c4')]({'id':_0x291256[_0x250110('0x1bf6')]['id']})[_0x250110('0x1714')][_0x250110('0x2788')](function(){const _0x13c7cb=_0x250110;return _0x43c1e1[_0x13c7cb('0x163a')][_0x13c7cb('0x1b18')]({'id':_0x291256['project']['id']})[_0x13c7cb('0x1714')];})['then'](function(_0x3d7c88){const _0xefc542=_0x250110,_0x3f09b5=[],_0x4a00bd=_0x3d7c88['rows'];for(let _0x39d03e=0x0;_0x39d03e<_0x4a00bd[_0xefc542('0x2566')];_0x39d03e++){_0x3f09b5[_0xefc542('0x13e3')](_0x43c1e1['user'][_0xefc542('0x97d')]({'id':_0x5128f5[_0xefc542('0x24cc')]()['id'],'ids':[_0x291256[_0xefc542('0x1bf6')]['id']]})['$promise']);}return _0x334313['all'](_0x3f09b5);})[_0x250110('0x2788')](function(){const _0x3f105d=_0x250110;_0x283545()[_0x3f105d('0x1a90')](_0x291256[_0x3f105d('0x18f9')],{'id':_0x291256[_0x3f105d('0x1bf6')]['id']}),_0x23082d[_0x3f105d('0x173b')]({'title':_0x3f105d('0xccb'),'msg':_0x291256[_0x3f105d('0x1bf6')][_0x3f105d('0x1a8d')]?_0x291256[_0x3f105d('0x1bf6')][_0x3f105d('0x1a8d')]+'\x20has\x20been\x20deleted!':''}),_0x21dd7d(_0x291256[_0x3f105d('0x1bf6')]);})[_0x250110('0x1cb5')](function(_0x319830){const _0x1afd67=_0x250110;console[_0x1afd67('0x5e8')](_0x319830),_0x291256['errors']=_0x319830[_0x1afd67('0x11fc')][_0x1afd67('0x25be')]||[{'message':_0x319830[_0x1afd67('0x17df')](),'type':'api.squareProject.delete'}];});},function(){});}function _0x21dd7d(_0x2204df){const _0x56efac=_0x3d34c4;_0x1eb347[_0x56efac('0x19d')](_0x2204df);}}const _0x54af5c=_0x56509f;_0x1d91df[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x5ad'),_0x34e79e('0x70f'),'googleAsrLanguage',_0x34e79e('0x881'),_0x34e79e('0x728'),_0x34e79e('0x971'),_0x34e79e('0x1e42'),_0x34e79e('0x20f2'),'queues',_0x34e79e('0x16ca'),_0x34e79e('0xf76'),'databases',_0x34e79e('0x18f9'),_0x34e79e('0xf3e'),_0x34e79e('0xec5'),_0x34e79e('0x1e22'),_0x34e79e('0x1f48'),'lists',_0x34e79e('0x1d44'),_0x34e79e('0x1a21'),_0x34e79e('0x198'),_0x34e79e('0x608'),_0x34e79e('0x5f4'),_0x34e79e('0x225d'),'dialogFlowLanguage','awsLexRegion','Auth',_0x34e79e('0xe28')];function _0x1d91df(_0x29e379,_0x500861,_0x50f989,_0x1b26bc,_0x10b2b7,_0x2695c9,_0x579b16,_0x1f15c9,_0x2939cd,_0x10dc0d,_0x536964,_0x1dfb6b,_0xb24a2d,_0x511a59,_0x17411a,_0x9f22eb,_0x550365,_0x581982,_0x2f3e57,_0x4a07f0,_0x352441,_0x2100ed,_0x37337a,_0x2b9988,_0x2f8c14,_0x188936,_0xa8c028,_0x7ae27c,_0x5bba3f,_0x4abd39,_0x4f3fdd){const _0x571882=_0x34e79e,_0x4fc723=this,_0x4798fb={'playback':[_0x571882('0x27d1')],'answer':[_0x571882('0x24e4')],'menu':[_0x571882('0x27d1'),_0x571882('0x176a'),_0x571882('0x1774'),'retry'],'getdigits':['file_id',_0x571882('0x105f'),_0x571882('0x2478'),_0x571882('0x283a'),_0x571882('0x1a9f')],'getsecretdigits':[_0x571882('0x27d1'),_0x571882('0x105f'),_0x571882('0x2478'),_0x571882('0x283a'),_0x571882('0x1a16'),_0x571882('0x1a9f')],'vswitch':[_0x571882('0x105f')],'database':[_0x571882('0x80c'),_0x571882('0x135a')],'ext_dial':[_0x571882('0x1394'),_0x571882('0x1224'),'timeout'],'set':[_0x571882('0x105f')],'math':[_0x571882('0x105f')],'gotoc':[_0x571882('0x1f3b'),_0x571882('0x1eb7'),_0x571882('0x155b')],'system':[_0x571882('0x28d')],'agi':[_0x571882('0x28d')],'gotoif':['condition'],'saydigits':[_0x571882('0x4be')],'saynumber':[_0x571882('0x272c')],'sayphonetic':['text'],'record':['file',_0x571882('0x24e4')],'goal':[_0x571882('0x26d2')],'dial':[_0x571882('0x1dde'),_0x571882('0x24e4')],'queue':[_0x571882('0x1c2b'),_0x571882('0x24e4')],'callback':[_0x571882('0x13e9'),_0x571882('0x1a8d'),'phone','delay'],'gotoiftime':[_0x571882('0x160')],'voicemail':['mailbox'],'subproject':[_0x571882('0x827')],'sendSMS':[_0x571882('0x714'),'to','sms_text'],'sendMail':[_0x571882('0xab1'),'to'],'sendFax':[_0x571882('0xab1'),'to',_0x571882('0x1234')],'google_cloud_tts':[_0x571882('0x904'),_0x571882('0xca1'),_0x571882('0x16db')],'tts':['text'],'ispeechtts':['text',_0x571882('0x234b'),'speed'],'ispeechasr':[_0x571882('0x234b'),_0x571882('0x24e4')],'custom_app':[_0x571882('0x193')],'googleasr':[_0x571882('0x234b'),_0x571882('0x24e4')],'awspolly':[_0x571882('0x18b2'),_0x571882('0xbbb'),_0x571882('0x16db'),_0x571882('0x1977')],'lumenvoxtts':['text'],'sestektts':['text'],'lumenvoxasr':[_0x571882('0x2249')],'sestekasr':[_0x571882('0x2249')],'tildeasr':[_0x571882('0x60e'),'appsecret',_0x571882('0x14e1')],'login':['findBy'],'pause':[_0x571882('0x37b'),_0x571882('0x1e27')],'unpause':[_0x571882('0x37b')],'logout':[_0x571882('0x37b')],'dialogflow':['key',_0x571882('0x16db'),_0x571882('0xe43')],'awslex':[_0x571882('0x18b2'),_0x571882('0xbbb'),_0x571882('0x2026'),_0x571882('0x149a'),'text'],'sesteknda':['text',_0x571882('0x1430'),_0x571882('0x2056'),_0x571882('0xad8'),'ndassistant_url'],'restapi':[_0x571882('0x1672'),_0x571882('0x1018')],'mrcpsynth':[_0x571882('0x16db')],'mrcprecog':[_0x571882('0x2249')]},_0x125f3c={'queue':[_0x571882('0x27d1')],'database':[_0x571882('0x105f')],'pause':['pause_id']},_0x231734={'sendMail':['to','cc',_0x571882('0x1402')],'voicemail':[_0x571882('0x1dd')]};_0x4fc723[_0x571882('0xc4c')]=_0x2100ed[_0x571882('0x1fa9')],_0x4fc723['attributes']=_0x283545()[_0x571882('0x155d')](_0x2100ed[_0x571882('0x1b34')],function(_0x434832){const _0x2555fc=_0x571882;return{'name':_0x434832[_0x2555fc('0x1a8d')],'value':_0x434832[_0x2555fc('0x49')],'defaultValue':_0x125f3c[_0x4fc723[_0x2555fc('0xc4c')]]&&_0x283545()[_0x2555fc('0x1d4e')](_0x125f3c[_0x4fc723['cellName']],_0x434832[_0x2555fc('0x1a8d')]),'required':_0x4798fb[_0x4fc723[_0x2555fc('0xc4c')]]&&_0x283545()['includes'](_0x4798fb[_0x4fc723[_0x2555fc('0xc4c')]],_0x434832['name']),'help':_0x231734[_0x4fc723[_0x2555fc('0xc4c')]]&&_0x283545()['includes'](_0x231734[_0x4fc723[_0x2555fc('0xc4c')]],_0x434832['name'])};}),_0x4fc723[_0x571882('0xc5')]={'authMethod':[{'value':'noauth','option':_0x571882('0x5b5')},{'value':_0x571882('0x1ebc'),'option':_0x571882('0xc84')}],'answer':[{'value':_0x571882('0x2062'),'option':_0x571882('0xb23')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x571882('0xb23')},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x571882('0x15e2'),'option':'Message'},{'value':_0x571882('0x2717'),'option':_0x571882('0xdcb')},{'value':_0x571882('0x1fdb'),'option':_0x571882('0x7a6')},{'value':_0x571882('0x26b'),'option':_0x571882('0x181e')}],'hiddendigitspos':[{'value':_0x571882('0x2716'),'option':'First'},{'value':_0x571882('0x1d39'),'option':_0x571882('0x1f17')}],'recordingFormat':[{'value':'wav','option':_0x571882('0x5f8')},{'value':_0x571882('0x14c1'),'option':_0x571882('0x12e')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x571882('0x13e5'),'option':'Yes'},{'value':_0x571882('0x24ba'),'option':'No'}],'model':_0x1b26bc,'ispeech_asr_language':_0x10b2b7,'ispeech_tts_language':_0x579b16,'languageCode':_0x1f15c9,'ssmlGender':[{'value':_0x571882('0x343'),'option':_0x571882('0x1657')},{'value':'MALE','option':'Male'}],'google_tts_language':_0x2939cd,'google_asr_language':_0x2695c9,'google_cloud_tts_text_type':[{'value':'text','option':'Text'},{'value':'ssml','option':_0x571882('0x18ce')}],'aws_polly_region':_0x2f8c14,'aws_polly_voice':_0x2b9988,'aws_text_type':[{'value':_0x571882('0x16db'),'option':_0x571882('0xc39')},{'value':_0x571882('0xa1f'),'option':_0x571882('0x18ce')}],'callback_priority':[{'option':_0x571882('0x1438'),'value':0x4},{'option':_0x571882('0x1653'),'value':0x3},{'option':_0x571882('0x1a07'),'value':0x2},{'option':_0x571882('0x90e'),'value':0x1},{'option':_0x571882('0x15a7'),'value':0x0}],'findBy':[{'value':_0x571882('0x2838'),'option':_0x571882('0x2663')},{'value':_0x571882('0x1224'),'option':_0x571882('0x1c43')},{'value':_0x571882('0x246'),'option':_0x571882('0x814')}],'dialogflow_language':_0x7ae27c,'aws_lex_region':_0x5bba3f,'method':[{'value':'GET','option':_0x571882('0x253a')},{'value':_0x571882('0x26d7'),'option':_0x571882('0x26d7')},{'value':_0x571882('0x887'),'option':'PUT'},{'value':'DELETE','option':_0x571882('0x234c')}]},_0x4fc723[_0x571882('0xe28')]=_0x4f3fdd,_0x4fc723[_0x571882('0x122e')]=_0x434152,_0x4fc723['closeDialog']=_0x3de3f6,_0x4fc723[_0x571882('0x92b')]=_0x20300e;function _0x434152(){const _0x110bb0=_0x571882;_0x4abd39[_0x110bb0('0x1516')]('admin')?_0x297a31():_0x335bee();}function _0x20300e(_0x1bf04d,_0x38b051,_0xb16afd,_0x264dc4){return _0x283545()['map'](_0x1bf04d,function(_0x27f19b){const _0x279739=a0_0x14e7;return{'value':_0x27f19b[_0x38b051],'option':_0x27f19b[_0xb16afd],'group':_0x264dc4?_0x27f19b[_0x264dc4]:undefined,'canSelect':typeof _0x27f19b['canSelect']!==_0x279739('0xedb')?_0x27f19b['canSelect']:!![]};});}function _0x419bfe(_0x2b16da,_0x4a5575,_0x3c8382,_0x13f939){const _0xc702f6=_0x571882,_0x1bfeed=_0x283545()[_0xc702f6('0x916')](_0x2b16da,function(_0x9f6df5){return _0x9f6df5[_0x13f939]===null;}),_0x5d4f24=[];return _0x283545()['forEach'](_0x1bfeed,function(_0x147ba3){const _0x3cf85d=_0xc702f6;_0x5d4f24['push']({'value':_0x147ba3[_0x4a5575],'option':_0x147ba3[_0x3c8382]});const _0x23efac=_0x283545()[_0x3cf85d('0x916')](_0x2b16da,function(_0x43d033){return _0x43d033[_0x13f939]===_0x147ba3['id'];});_0x283545()[_0x3cf85d('0x1534')](_0x23efac,function(_0x53e2b8){const _0x37c016=_0x3cf85d;_0x5d4f24[_0x37c016('0x13e3')]({'value':_0x53e2b8[_0x4a5575],'option':_0x37c016('0x1b0b')+_0x53e2b8[_0x3c8382]});});}),_0x5d4f24;}function _0x297a31(){const _0x2992c9=_0x571882,_0x2c1928={'sip_id':_0x20300e(_0x10dc0d,'id','fullname',_0x2992c9('0xb34')),'trunk_name':_0x20300e(_0x536964,_0x2992c9('0x1a8d'),_0x2992c9('0x1a8d')),'trunk_id':_0x20300e(_0x536964,'id',_0x2992c9('0x1a8d')),'queue_id':_0x20300e(_0x1dfb6b,'id',_0x2992c9('0x1a8d')),'file_id':_0x20300e(_0xb24a2d,'id',_0x2992c9('0x1a8d')),'variable_id':_0x20300e(_0x511a59,'id',_0x2992c9('0x1a8d')),'odbc_id':_0x20300e(_0x17411a,'id',_0x2992c9('0x1a8d')),'project_id':_0x20300e(_0x9f22eb,'id',_0x2992c9('0x1a8d')),'context':_0x20300e(_0x550365,'id',_0x2992c9('0x1a8d')),'interval_id':_0x419bfe(_0x581982,'id',_0x2992c9('0x1a8d'),_0x2992c9('0x20d0')),'account_id':_0x20300e(_0x2f3e57,'id',_0x2992c9('0x1a8d')),'template_id':_0x20300e(_0x4a07f0,'id',_0x2992c9('0x1a8d')),'list_id':_0x20300e(_0x352441,'id',_0x2992c9('0x1a8d')),'sms_account_id':_0x20300e(_0x188936,'id',_0x2992c9('0x1a8d')),'pause_id':_0x20300e(_0xa8c028,'id','name')},_0x5850c6=_0x283545()['merge'](_0x4fc723[_0x2992c9('0xc5')],_0x2c1928);_0x4fc723[_0x2992c9('0xc5')]=_0x5850c6;}function _0x335bee(){const _0x37ec33=_0x571882,_0x530b49=[_0x37ec33('0x1dde'),_0x37ec33('0x1394'),_0x37ec33('0x1f40'),'queue_id',_0x37ec33('0x27d1'),_0x37ec33('0x105f'),_0x37ec33('0x80c'),_0x37ec33('0x827'),_0x37ec33('0x1f3b'),_0x37ec33('0x160'),_0x37ec33('0xab1'),'template_id',_0x37ec33('0x13e9'),_0x37ec33('0x714'),_0x37ec33('0x1e27')];for(let _0x15baa9=0x0;_0x15baa9<_0x4fc723[_0x37ec33('0x1b34')]['length'];_0x15baa9++){if(_0x283545()['includes'](_0x530b49,_0x4fc723[_0x37ec33('0x1b34')][_0x15baa9][_0x37ec33('0x1a8d')]))switch(_0x4fc723['attributes'][_0x15baa9][_0x37ec33('0x1a8d')]){case _0x37ec33('0x1dde'):_0x4e04ee();break;case _0x37ec33('0x1394'):_0xbdd722();break;case _0x37ec33('0x1f40'):_0x1e73d8();break;case _0x37ec33('0x1c2b'):_0x3ca2f8();break;case _0x37ec33('0x27d1'):_0x1f57b9();break;case _0x37ec33('0x105f'):_0x2dc800();break;case'odbc_id':_0x1d3815();break;case'project_id':_0x5134da();break;case _0x37ec33('0x1f3b'):_0x440fc5();break;case _0x37ec33('0x160'):_0x22ca72();break;case'account_id':_0x3f90b3();break;case _0x37ec33('0xdda'):_0x34bc8a();break;case _0x37ec33('0x13e9'):_0x29ab8d();break;case _0x37ec33('0x714'):_0x6cbc32();break;case _0x37ec33('0x1e27'):_0x2452b7();break;}}}function _0x4e04ee(){const _0x1e2b2a=_0x571882,_0x18b513=Number(_0x283545()['find'](_0x4fc723[_0x1e2b2a('0x1b34')],{'name':'sip_id'})[_0x1e2b2a('0x49')]),_0x263e73=_0x283545()['some'](_0x10dc0d,{'id':_0x18b513});if(!_0x263e73&&_0x18b513>0x0)return _0x500861[_0x1e2b2a('0x1e6a')]['get']({'id':_0x18b513,'fields':_0x1e2b2a('0x20fc')})[_0x1e2b2a('0x1714')][_0x1e2b2a('0x2788')](function(_0x195a6c){const _0x48e9ed=_0x1e2b2a,_0x106455=_0x195a6c[_0x48e9ed('0x1cbf')]();_0x106455[_0x48e9ed('0x3bf')]=![],_0x10dc0d['push'](_0x106455),_0x4fc723[_0x48e9ed('0xc5')][_0x48e9ed('0x1dde')]=_0x20300e(_0x10dc0d,'id',_0x48e9ed('0x2831'),_0x48e9ed('0xb34'));})[_0x1e2b2a('0x1cb5')](function(_0x58fe70){const _0x349402=_0x1e2b2a;_0x50f989[_0x349402('0x5e8')]({'title':_0x58fe70[_0x349402('0x1b51')]?'API:'+_0x58fe70[_0x349402('0x1b51')]+_0x349402('0x1b0b')+_0x58fe70[_0x349402('0x22ce')]:_0x349402('0xa52'),'msg':_0x58fe70[_0x349402('0x11fc')]?JSON[_0x349402('0x1be0')](_0x58fe70[_0x349402('0x11fc')][_0x349402('0x15e2')]):_0x58fe70['toString']()});});else _0x4fc723['values'][_0x1e2b2a('0x1dde')]=_0x20300e(_0x10dc0d,'id',_0x1e2b2a('0x2831'),_0x1e2b2a('0xb34'));}function _0x29ab8d(){const _0x366672=_0x571882,_0x5f197e=Number(_0x283545()['find'](_0x4fc723['attributes'],{'name':'list_id'})[_0x366672('0x49')]),_0x5524ac=_0x283545()[_0x366672('0xc5d')](_0x352441,{'id':_0x5f197e});if(!_0x5524ac&&_0x5f197e>0x0)return _0x500861[_0x366672('0x1ba4')][_0x366672('0x1335')]({'id':_0x5f197e,'fields':_0x366672('0x1338')})['$promise'][_0x366672('0x2788')](function(_0xf2535f){const _0x359c99=_0x366672,_0x3ebc9f=_0xf2535f[_0x359c99('0x1cbf')]();_0x3ebc9f[_0x359c99('0x3bf')]=![],_0x352441[_0x359c99('0x13e3')](_0x3ebc9f),_0x4fc723[_0x359c99('0xc5')]['list_id']=_0x20300e(_0x352441,'id',_0x359c99('0x1a8d'));})[_0x366672('0x1cb5')](function(_0x5f248c){const _0x2c9d84=_0x366672;_0x50f989['error']({'title':_0x5f248c['status']?'API:'+_0x5f248c[_0x2c9d84('0x1b51')]+_0x2c9d84('0x1b0b')+_0x5f248c[_0x2c9d84('0x22ce')]:_0x2c9d84('0x1c7'),'msg':_0x5f248c['data']?JSON[_0x2c9d84('0x1be0')](_0x5f248c[_0x2c9d84('0x11fc')][_0x2c9d84('0x15e2')]):_0x5f248c['toString']()});});else _0x4fc723['values'][_0x366672('0x13e9')]=_0x20300e(_0x352441,'id',_0x366672('0x1a8d'));}function _0x1e73d8(){const _0x599df8=_0x571882,_0x1072eb=Number(_0x283545()['find'](_0x4fc723['attributes'],{'name':_0x599df8('0x1f40')})['value']),_0x3dd799=_0x283545()[_0x599df8('0xc5d')](_0x536964,{'id':_0x1072eb});if(!_0x3dd799&&_0x1072eb>0x0)return _0x500861[_0x599df8('0x2549')]['get']({'id':_0x1072eb,'fields':_0x599df8('0x1338')})[_0x599df8('0x1714')]['then'](function(_0x4a2198){const _0x2010d8=_0x599df8,_0x65f458=_0x4a2198[_0x2010d8('0x1cbf')]();_0x65f458[_0x2010d8('0x3bf')]=![],_0x536964[_0x2010d8('0x13e3')](_0x65f458),_0x4fc723[_0x2010d8('0xc5')][_0x2010d8('0x1f40')]=_0x20300e(_0x536964,'id','name');})['catch'](function(_0x2722a1){const _0x14a973=_0x599df8;_0x50f989[_0x14a973('0x5e8')]({'title':_0x2722a1[_0x14a973('0x1b51')]?_0x14a973('0x15d1')+_0x2722a1[_0x14a973('0x1b51')]+_0x14a973('0x1b0b')+_0x2722a1[_0x14a973('0x22ce')]:_0x14a973('0xf5'),'msg':_0x2722a1[_0x14a973('0x11fc')]?JSON[_0x14a973('0x1be0')](_0x2722a1[_0x14a973('0x11fc')][_0x14a973('0x15e2')]):_0x2722a1[_0x14a973('0x17df')]()});});else _0x4fc723[_0x599df8('0xc5')][_0x599df8('0x1f40')]=_0x20300e(_0x536964,'id','name');}function _0xbdd722(){const _0x181374=_0x571882,_0x214dd5=_0x283545()[_0x181374('0x20e8')](_0x4fc723[_0x181374('0x1b34')],{'name':_0x181374('0x1394')})['value'],_0xd71ea4=_0x283545()[_0x181374('0xc5d')](_0x536964,{'name':_0x214dd5});if(!_0xd71ea4&&_0x214dd5)return _0x500861[_0x181374('0x2549')][_0x181374('0x1335')]({'name':_0x214dd5,'fields':_0x181374('0x1338')})[_0x181374('0x1714')][_0x181374('0x2788')](function(_0x3aa0b8){const _0x1273bd=_0x181374;if(_0x3aa0b8[_0x1273bd('0x338')]>0x0&&_0x3aa0b8[_0x1273bd('0x25df')][_0x1273bd('0x2566')]>0x0){const _0x475629=_0x3aa0b8[_0x1273bd('0x25df')][0x0];_0x475629['canSelect']=![],_0x536964['push'](_0x475629),_0x4fc723[_0x1273bd('0xc5')][_0x1273bd('0x1394')]=_0x20300e(_0x536964,_0x1273bd('0x1a8d'),_0x1273bd('0x1a8d'));}})[_0x181374('0x1cb5')](function(_0x57fb03){const _0xda70ee=_0x181374;_0x50f989['error']({'title':_0x57fb03[_0xda70ee('0x1b51')]?_0xda70ee('0x15d1')+_0x57fb03[_0xda70ee('0x1b51')]+_0xda70ee('0x1b0b')+_0x57fb03[_0xda70ee('0x22ce')]:_0xda70ee('0xf5'),'msg':_0x57fb03[_0xda70ee('0x11fc')]?JSON['stringify'](_0x57fb03[_0xda70ee('0x11fc')][_0xda70ee('0x15e2')]):_0x57fb03[_0xda70ee('0x17df')]()});});else _0x4fc723[_0x181374('0xc5')]['trunk_name']=_0x20300e(_0x536964,_0x181374('0x1a8d'),_0x181374('0x1a8d'));}function _0x3ca2f8(){const _0x146286=_0x571882,_0x4adb01=Number(_0x283545()[_0x146286('0x20e8')](_0x4fc723['attributes'],{'name':_0x146286('0x1c2b')})[_0x146286('0x49')]),_0x5d5ce6=_0x283545()[_0x146286('0xc5d')](_0x1dfb6b,{'id':_0x4adb01});if(!_0x5d5ce6&&_0x4adb01>0x0)return _0x500861[_0x146286('0x2043')][_0x146286('0x1335')]({'id':_0x4adb01,'fields':_0x146286('0x1338')})['$promise'][_0x146286('0x2788')](function(_0x55c2f7){const _0x2c8b68=_0x146286,_0x22b4e9=_0x55c2f7['toJSON']();_0x22b4e9[_0x2c8b68('0x3bf')]=![],_0x1dfb6b[_0x2c8b68('0x13e3')](_0x22b4e9),_0x4fc723['values']['queue_id']=_0x20300e(_0x1dfb6b,'id',_0x2c8b68('0x1a8d'));})['catch'](function(_0x584265){const _0x5c4264=_0x146286;_0x50f989['error']({'title':_0x584265[_0x5c4264('0x1b51')]?_0x5c4264('0x15d1')+_0x584265['status']+_0x5c4264('0x1b0b')+_0x584265[_0x5c4264('0x22ce')]:_0x5c4264('0x1336'),'msg':_0x584265[_0x5c4264('0x11fc')]?JSON[_0x5c4264('0x1be0')](_0x584265[_0x5c4264('0x11fc')][_0x5c4264('0x15e2')]):_0x584265['toString']()});});else _0x4fc723[_0x146286('0xc5')][_0x146286('0x1c2b')]=_0x20300e(_0x1dfb6b,'id','name');}function _0x1f57b9(){const _0xc1764=_0x571882,_0x2eb908=Number(_0x283545()['find'](_0x4fc723[_0xc1764('0x1b34')],{'name':'file_id'})['value']),_0x3f7e43=_0x283545()[_0xc1764('0xc5d')](_0xb24a2d,{'id':_0x2eb908});if(!_0x3f7e43&&_0x2eb908>0x0)return _0x500861[_0xc1764('0x216d')][_0xc1764('0x1335')]({'id':_0x2eb908,'fields':_0xc1764('0x1338')})[_0xc1764('0x1714')]['then'](function(_0x552aed){const _0x27926b=_0xc1764,_0x4c328d=_0x552aed[_0x27926b('0x1cbf')]();_0x4c328d[_0x27926b('0x3bf')]=![],_0xb24a2d[_0x27926b('0x13e3')](_0x4c328d),_0x4fc723[_0x27926b('0xc5')][_0x27926b('0x27d1')]=_0x20300e(_0xb24a2d,'id',_0x27926b('0x1a8d'));})[_0xc1764('0x1cb5')](function(_0x32706a){const _0xa2e36=_0xc1764;_0x50f989[_0xa2e36('0x5e8')]({'title':_0x32706a[_0xa2e36('0x1b51')]?_0xa2e36('0x15d1')+_0x32706a['status']+_0xa2e36('0x1b0b')+_0x32706a[_0xa2e36('0x22ce')]:'GET_SOUND','msg':_0x32706a['data']?JSON[_0xa2e36('0x1be0')](_0x32706a[_0xa2e36('0x11fc')][_0xa2e36('0x15e2')]):_0x32706a[_0xa2e36('0x17df')]()});});else _0x4fc723[_0xc1764('0xc5')][_0xc1764('0x27d1')]=_0x20300e(_0xb24a2d,'id','name');}function _0x2dc800(){const _0x2580d9=_0x571882,_0x485f81=Number(_0x283545()['find'](_0x4fc723[_0x2580d9('0x1b34')],{'name':_0x2580d9('0x105f')})[_0x2580d9('0x49')]),_0x20be87=_0x283545()[_0x2580d9('0xc5d')](_0x511a59,{'id':_0x485f81});if(!_0x20be87&&_0x485f81>0x0)return _0x500861['variable'][_0x2580d9('0x1335')]({'id':_0x485f81,'fields':_0x2580d9('0x1338')})[_0x2580d9('0x1714')][_0x2580d9('0x2788')](function(_0xe920a){const _0x23d666=_0x2580d9,_0x3551e8=_0xe920a[_0x23d666('0x1cbf')]();_0x3551e8['canSelect']=![],_0x511a59[_0x23d666('0x13e3')](_0x3551e8),_0x4fc723['values'][_0x23d666('0x105f')]=_0x20300e(_0x511a59,'id','name');})[_0x2580d9('0x1cb5')](function(_0x26ec00){const _0x335087=_0x2580d9;_0x50f989[_0x335087('0x5e8')]({'title':_0x26ec00['status']?'API:'+_0x26ec00[_0x335087('0x1b51')]+'\x20-\x20'+_0x26ec00[_0x335087('0x22ce')]:_0x335087('0xed5'),'msg':_0x26ec00[_0x335087('0x11fc')]?JSON[_0x335087('0x1be0')](_0x26ec00[_0x335087('0x11fc')]['message']):_0x26ec00[_0x335087('0x17df')]()});});else _0x4fc723[_0x2580d9('0xc5')][_0x2580d9('0x105f')]=_0x20300e(_0x511a59,'id',_0x2580d9('0x1a8d'));}function _0x1d3815(){const _0x4944ea=_0x571882,_0x1fcc71=Number(_0x283545()[_0x4944ea('0x20e8')](_0x4fc723[_0x4944ea('0x1b34')],{'name':'odbc_id'})[_0x4944ea('0x49')]),_0x5f4a15=_0x283545()[_0x4944ea('0xc5d')](_0x17411a,{'id':_0x1fcc71});if(!_0x5f4a15&&_0x1fcc71>0x0)return _0x500861[_0x4944ea('0x487')]['get']({'id':_0x1fcc71,'fields':_0x4944ea('0x1338')})[_0x4944ea('0x1714')][_0x4944ea('0x2788')](function(_0x5196f8){const _0x5a615a=_0x4944ea,_0x8d5239=_0x5196f8[_0x5a615a('0x1cbf')]();_0x8d5239[_0x5a615a('0x3bf')]=![],_0x17411a[_0x5a615a('0x13e3')](_0x8d5239),_0x4fc723['values'][_0x5a615a('0x80c')]=_0x20300e(_0x17411a,'id',_0x5a615a('0x1a8d'));})[_0x4944ea('0x1cb5')](function(_0x392183){const _0x4a7fff=_0x4944ea;_0x50f989[_0x4a7fff('0x5e8')]({'title':_0x392183[_0x4a7fff('0x1b51')]?_0x4a7fff('0x15d1')+_0x392183['status']+'\x20-\x20'+_0x392183[_0x4a7fff('0x22ce')]:_0x4a7fff('0x127a'),'msg':_0x392183[_0x4a7fff('0x11fc')]?JSON[_0x4a7fff('0x1be0')](_0x392183['data'][_0x4a7fff('0x15e2')]):_0x392183[_0x4a7fff('0x17df')]()});});else _0x4fc723[_0x4944ea('0xc5')][_0x4944ea('0x80c')]=_0x20300e(_0x17411a,'id',_0x4944ea('0x1a8d'));}function _0x5134da(){const _0x3f6d06=_0x571882,_0x12f866=Number(_0x283545()['find'](_0x4fc723[_0x3f6d06('0x1b34')],{'name':_0x3f6d06('0x827')})[_0x3f6d06('0x49')]),_0x461bd4=_0x283545()[_0x3f6d06('0xc5d')](_0x9f22eb,{'id':_0x12f866});if(!_0x461bd4&&_0x12f866>0x0)return _0x500861['squareProject'][_0x3f6d06('0x1335')]({'id':_0x12f866,'fields':_0x3f6d06('0x1338')})[_0x3f6d06('0x1714')][_0x3f6d06('0x2788')](function(_0x4c0b93){const _0x492321=_0x3f6d06,_0x31f671=_0x4c0b93['toJSON']();_0x31f671['canSelect']=![],_0x9f22eb['push'](_0x31f671),_0x4fc723['values'][_0x492321('0x827')]=_0x20300e(_0x9f22eb,'id',_0x492321('0x1a8d'));})[_0x3f6d06('0x1cb5')](function(_0x3802a9){const _0x12be5e=_0x3f6d06;_0x50f989[_0x12be5e('0x5e8')]({'title':_0x3802a9[_0x12be5e('0x1b51')]?_0x12be5e('0x15d1')+_0x3802a9[_0x12be5e('0x1b51')]+_0x12be5e('0x1b0b')+_0x3802a9[_0x12be5e('0x22ce')]:_0x12be5e('0xb83'),'msg':_0x3802a9[_0x12be5e('0x11fc')]?JSON[_0x12be5e('0x1be0')](_0x3802a9['data'][_0x12be5e('0x15e2')]):_0x3802a9[_0x12be5e('0x17df')]()});});else _0x4fc723[_0x3f6d06('0xc5')][_0x3f6d06('0x827')]=_0x20300e(_0x9f22eb,'id',_0x3f6d06('0x1a8d'));}function _0x440fc5(){const _0x100f0e=_0x571882,_0x30effe=Number(_0x283545()[_0x100f0e('0x20e8')](_0x4fc723['attributes'],{'name':'context'})[_0x100f0e('0x49')]),_0x222e88=_0x283545()[_0x100f0e('0xc5d')](_0x550365,{'id':_0x30effe});if(!_0x222e88&&_0x30effe>0x0)return _0x500861['voiceContext'][_0x100f0e('0x1335')]({'id':_0x30effe,'fields':_0x100f0e('0x1338')})[_0x100f0e('0x1714')]['then'](function(_0x181bb1){const _0x53406c=_0x100f0e,_0xa57590=_0x181bb1[_0x53406c('0x1cbf')]();_0xa57590['canSelect']=![],_0x550365[_0x53406c('0x13e3')](_0xa57590),_0x4fc723[_0x53406c('0xc5')][_0x53406c('0x1f3b')]=_0x20300e(_0x550365,'id','name');})[_0x100f0e('0x1cb5')](function(_0x38f80c){const _0x4fce62=_0x100f0e;_0x50f989[_0x4fce62('0x5e8')]({'title':_0x38f80c[_0x4fce62('0x1b51')]?_0x4fce62('0x15d1')+_0x38f80c[_0x4fce62('0x1b51')]+_0x4fce62('0x1b0b')+_0x38f80c[_0x4fce62('0x22ce')]:_0x4fce62('0x13a8'),'msg':_0x38f80c[_0x4fce62('0x11fc')]?JSON[_0x4fce62('0x1be0')](_0x38f80c['data'][_0x4fce62('0x15e2')]):_0x38f80c['toString']()});});else _0x4fc723[_0x100f0e('0xc5')]['context']=_0x20300e(_0x550365,'id','name');}function _0x22ca72(){const _0x25b041=_0x571882,_0x8bd7e4=Number(_0x283545()[_0x25b041('0x20e8')](_0x4fc723[_0x25b041('0x1b34')],{'name':_0x25b041('0x160')})['value']),_0x424385=_0x283545()[_0x25b041('0xc5d')](_0x581982,{'id':_0x8bd7e4});if(!_0x424385&&_0x8bd7e4>0x0)return _0x500861['interval'][_0x25b041('0x1335')]({'id':_0x8bd7e4,'fields':_0x25b041('0xb18')})[_0x25b041('0x1714')][_0x25b041('0x2788')](function(_0x5da9a3){const _0x299b9a=_0x25b041,_0x2baf14=_0x5da9a3['toJSON']();_0x2baf14[_0x299b9a('0x3bf')]=![],_0x581982[_0x299b9a('0x13e3')](_0x2baf14),_0x4fc723[_0x299b9a('0xc5')]['interval_id']=_0x20300e(_0x581982,'id','name','IntervalId');})[_0x25b041('0x1cb5')](function(_0x2371f2){const _0x13cbbf=_0x25b041;_0x50f989[_0x13cbbf('0x5e8')]({'title':_0x2371f2[_0x13cbbf('0x1b51')]?_0x13cbbf('0x15d1')+_0x2371f2['status']+_0x13cbbf('0x1b0b')+_0x2371f2[_0x13cbbf('0x22ce')]:'GET_INTERVAL','msg':_0x2371f2[_0x13cbbf('0x11fc')]?JSON['stringify'](_0x2371f2['data'][_0x13cbbf('0x15e2')]):_0x2371f2[_0x13cbbf('0x17df')]()});});else _0x4fc723[_0x25b041('0xc5')][_0x25b041('0x160')]=_0x20300e(_0x581982,'id',_0x25b041('0x1a8d'),'IntervalId');}function _0x3f90b3(){const _0x481963=_0x571882,_0x5adfc0=Number(_0x283545()[_0x481963('0x20e8')](_0x4fc723[_0x481963('0x1b34')],{'name':_0x481963('0xab1')})[_0x481963('0x49')]),_0x5a95fa=_0x283545()['some'](_0x2f3e57,{'id':_0x5adfc0});if(!_0x5a95fa&&_0x5adfc0>0x0)return _0x500861[_0x481963('0x2594')][_0x481963('0x1335')]({'id':_0x5adfc0,'fields':'id,name'})[_0x481963('0x1714')]['then'](function(_0xebf508){const _0xb9ed98=_0x481963,_0x3ff063=_0xebf508[_0xb9ed98('0x1cbf')]();_0x3ff063[_0xb9ed98('0x3bf')]=![],_0x2f3e57[_0xb9ed98('0x13e3')](_0x3ff063),_0x4fc723['values'][_0xb9ed98('0xab1')]=_0x20300e(_0x2f3e57,'id',_0xb9ed98('0x1a8d'));})[_0x481963('0x1cb5')](function(_0x5b4336){const _0xd74a07=_0x481963;_0x50f989[_0xd74a07('0x5e8')]({'title':_0x5b4336['status']?_0xd74a07('0x15d1')+_0x5b4336['status']+_0xd74a07('0x1b0b')+_0x5b4336[_0xd74a07('0x22ce')]:'GET_MAIL_ACCOUNT','msg':_0x5b4336[_0xd74a07('0x11fc')]?JSON[_0xd74a07('0x1be0')](_0x5b4336[_0xd74a07('0x11fc')][_0xd74a07('0x15e2')]):_0x5b4336[_0xd74a07('0x17df')]()});});else _0x4fc723[_0x481963('0xc5')]['account_id']=_0x20300e(_0x2f3e57,'id',_0x481963('0x1a8d'));}function _0x6cbc32(){const _0x1c7789=_0x571882,_0x2a480b=Number(_0x283545()[_0x1c7789('0x20e8')](_0x4fc723[_0x1c7789('0x1b34')],{'name':_0x1c7789('0x714')})[_0x1c7789('0x49')]),_0x30e1ff=_0x283545()[_0x1c7789('0xc5d')](_0x188936,{'id':_0x2a480b});if(!_0x30e1ff&&_0x2a480b>0x0)return _0x500861[_0x1c7789('0x1cf0')][_0x1c7789('0x1335')]({'id':_0x2a480b,'fields':'id,name'})[_0x1c7789('0x1714')]['then'](function(_0x41f120){const _0x5d08f1=_0x1c7789,_0x51825f=_0x41f120[_0x5d08f1('0x1cbf')]();_0x51825f[_0x5d08f1('0x3bf')]=![],_0x188936[_0x5d08f1('0x13e3')](_0x51825f),_0x4fc723[_0x5d08f1('0xc5')][_0x5d08f1('0x714')]=_0x20300e(_0x188936,'id',_0x5d08f1('0x1a8d'));})[_0x1c7789('0x1cb5')](function(_0x7e53e){const _0x497975=_0x1c7789;_0x50f989[_0x497975('0x5e8')]({'title':_0x7e53e[_0x497975('0x1b51')]?_0x497975('0x15d1')+_0x7e53e[_0x497975('0x1b51')]+'\x20-\x20'+_0x7e53e[_0x497975('0x22ce')]:_0x497975('0x6a3'),'msg':_0x7e53e['data']?JSON[_0x497975('0x1be0')](_0x7e53e[_0x497975('0x11fc')][_0x497975('0x15e2')]):_0x7e53e['toString']()});});else _0x4fc723[_0x1c7789('0xc5')]['sms_account_id']=_0x20300e(_0x188936,'id',_0x1c7789('0x1a8d'));}function _0x34bc8a(){const _0x1a3c2e=_0x571882,_0x27b3eb=Number(_0x283545()['find'](_0x4fc723[_0x1a3c2e('0x1b34')],{'name':_0x1a3c2e('0xdda')})[_0x1a3c2e('0x49')]),_0x31f2c5=_0x283545()[_0x1a3c2e('0xc5d')](_0x4a07f0,{'id':_0x27b3eb});if(!_0x31f2c5&&_0x27b3eb>0x0)return _0x500861[_0x1a3c2e('0x2273')][_0x1a3c2e('0x1335')]({'id':_0x27b3eb,'fields':'id,name'})['$promise']['then'](function(_0x32b7a5){const _0x9b488=_0x1a3c2e,_0x5a34ca=_0x32b7a5[_0x9b488('0x1cbf')]();_0x5a34ca[_0x9b488('0x3bf')]=![],_0x4a07f0[_0x9b488('0x13e3')](_0x5a34ca),_0x4fc723[_0x9b488('0xc5')][_0x9b488('0xdda')]=_0x20300e(_0x4a07f0,'id',_0x9b488('0x1a8d'));})[_0x1a3c2e('0x1cb5')](function(_0x51137f){const _0x3f23ec=_0x1a3c2e;_0x50f989[_0x3f23ec('0x5e8')]({'title':_0x51137f[_0x3f23ec('0x1b51')]?_0x3f23ec('0x15d1')+_0x51137f[_0x3f23ec('0x1b51')]+_0x3f23ec('0x1b0b')+_0x51137f[_0x3f23ec('0x22ce')]:'GET_TEMPLATE','msg':_0x51137f[_0x3f23ec('0x11fc')]?JSON['stringify'](_0x51137f[_0x3f23ec('0x11fc')]['message']):_0x51137f[_0x3f23ec('0x17df')]()});});else _0x4fc723[_0x1a3c2e('0xc5')][_0x1a3c2e('0xdda')]=_0x20300e(_0x4a07f0,'id',_0x1a3c2e('0x1a8d'));}function _0x2452b7(){const _0x59390c=_0x571882,_0x5b8175=Number(_0x283545()['find'](_0x4fc723['attributes'],{'name':_0x59390c('0x1e27')})[_0x59390c('0x49')]),_0x266b6d=_0x283545()[_0x59390c('0xc5d')](_0xa8c028,{'id':_0x5b8175});if(!_0x266b6d&&_0x5b8175>0x0)return _0x500861['pause'][_0x59390c('0x1335')]({'id':_0x5b8175,'fields':_0x59390c('0x1338')})[_0x59390c('0x1714')][_0x59390c('0x2788')](function(_0x1d8223){const _0x4a819e=_0x59390c,_0x2d3ad3=_0x1d8223[_0x4a819e('0x1cbf')]();_0x2d3ad3[_0x4a819e('0x3bf')]=![],_0xa8c028[_0x4a819e('0x13e3')](_0x2d3ad3),_0x4fc723[_0x4a819e('0xc5')]['pause_id']=_0x20300e(_0xa8c028,'id',_0x4a819e('0x1a8d'));})[_0x59390c('0x1cb5')](function(_0x13adfb){const _0x433713=_0x59390c;_0x50f989[_0x433713('0x5e8')]({'title':_0x13adfb[_0x433713('0x1b51')]?_0x433713('0x15d1')+_0x13adfb[_0x433713('0x1b51')]+_0x433713('0x1b0b')+_0x13adfb[_0x433713('0x22ce')]:_0x433713('0x3ce'),'msg':_0x13adfb['data']?JSON[_0x433713('0x1be0')](_0x13adfb[_0x433713('0x11fc')]['message']):_0x13adfb[_0x433713('0x17df')]()});});else _0x4fc723['values'][_0x59390c('0x1e27')]=_0x20300e(_0xa8c028,'id',_0x59390c('0x1a8d'));}function _0x3de3f6(_0x1fb061){const _0x2642f9=_0x571882;_0x1fb061&&_0x37337a(_0x4fc723[_0x2642f9('0x1b34')]),_0x29e379['hide']();}}const _0x5e47b5=_0x1d91df;function _0x54021b(){return{'require':'ngModel','link':function(_0x32edc8,_0x50fc9a,_0x1423a6,_0x4b664c){const _0x58958f=a0_0x14e7;_0x4b664c[_0x58958f('0x727')][_0x58958f('0x13e3')](function(_0x2bc66b){return''+_0x2bc66b;}),_0x4b664c[_0x58958f('0x26e4')][_0x58958f('0x13e3')](function(_0x3b9456){return parseFloat(_0x3b9456);});}};}const _0x472752=_0x54021b;function _0x27de3e(){const _0x509ef8=_0x34e79e;return[{'value':'da','option':_0x509ef8('0x42b')},{'value':'en','option':'English'},{'value':'de','option':_0x509ef8('0x1072')},{'value':'it','option':_0x509ef8('0xf33')},{'value':'es','option':_0x509ef8('0x2488')},{'value':'fr','option':_0x509ef8('0xfd2')},{'value':'id','option':_0x509ef8('0x131e')},{'value':'ja','option':_0x509ef8('0x270a')},{'value':'ko','option':_0x509ef8('0x166c')},{'value':'nl','option':_0x509ef8('0x805')},{'value':'no','option':_0x509ef8('0xa7a')},{'value':'pt','option':_0x509ef8('0x168e')},{'value':_0x509ef8('0x22b6'),'option':_0x509ef8('0x27ae')},{'value':'ru','option':'Russian'},{'value':'sv','option':_0x509ef8('0xbaf')},{'value':'th','option':_0x509ef8('0x97b')},{'value':'uk','option':'Ukrainian'},{'value':'zh-CN','option':_0x509ef8('0x1a89')},{'value':_0x509ef8('0x7f6'),'option':_0x509ef8('0x13e6')},{'value':'zh-TW','option':_0x509ef8('0x1b70')}];}function _0xcb0a5c(){const _0x52c43b=_0x34e79e;return[{'value':_0x52c43b('0x1556'),'option':'Arabic'},{'value':'cs-CZ','option':_0x52c43b('0x70d')},{'value':_0x52c43b('0x12'),'option':_0x52c43b('0x2410')},{'value':_0x52c43b('0x27bc'),'option':'Dutch\x20(Netherlands)'},{'value':_0x52c43b('0x1eda'),'option':_0x52c43b('0x1745')},{'value':_0x52c43b('0x17b4'),'option':'English\x20(Australian)'},{'value':_0x52c43b('0xa81'),'option':_0x52c43b('0x11f7')},{'value':_0x52c43b('0xa88'),'option':'English\x20(UK)'},{'value':_0x52c43b('0xb31'),'option':_0x52c43b('0xea8')},{'value':_0x52c43b('0x5d0'),'option':'Finnish\x20(Finland)'},{'value':'fil-PH','option':'Filipino\x20(Philippines)'},{'value':_0x52c43b('0x247d'),'option':'French\x20(Canada)'},{'value':'fr-FR','option':_0x52c43b('0x2174')},{'value':_0x52c43b('0x240d'),'option':_0x52c43b('0x1255')},{'value':_0x52c43b('0x1162'),'option':_0x52c43b('0x433')},{'value':'id-ID','option':_0x52c43b('0x20e')},{'value':_0x52c43b('0x2790'),'option':'Italian\x20(Italy)'},{'value':_0x52c43b('0x2484'),'option':_0x52c43b('0x594')},{'value':'ko-KR','option':_0x52c43b('0x166c')},{'value':_0x52c43b('0x23c6'),'option':_0x52c43b('0x245a')},{'value':_0x52c43b('0x8d3'),'option':_0x52c43b('0x1a6f')},{'value':_0x52c43b('0x187c'),'option':_0x52c43b('0xd5e')},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':'pt-PT','option':_0x52c43b('0xef9')},{'value':'ru-RU','option':_0x52c43b('0x26cf')},{'value':'sk-SK','option':_0x52c43b('0xab2')},{'value':_0x52c43b('0x2328'),'option':'Spanish\x20(Spain)'},{'value':_0x52c43b('0x2517'),'option':'Swedish\x20(Sweden)'},{'value':_0x52c43b('0x59d'),'option':_0x52c43b('0xd7')},{'value':_0x52c43b('0x6a'),'option':_0x52c43b('0x233c')},{'value':_0x52c43b('0x1190'),'option':_0x52c43b('0x205f')}];}function _0x47ae12(){const _0x5b4ffd=_0x34e79e;return[{'value':'af','option':_0x5b4ffd('0x1b42')},{'value':'sq','option':'Albanian'},{'value':'am','option':_0x5b4ffd('0x2036')},{'value':'ar','option':_0x5b4ffd('0xe58')},{'value':'hy','option':_0x5b4ffd('0x281e')},{'value':'az','option':_0x5b4ffd('0x7b')},{'value':'eu','option':_0x5b4ffd('0x1649')},{'value':'be','option':'Belarusian'},{'value':'bn','option':'Bengali'},{'value':'bh','option':_0x5b4ffd('0x1943')},{'value':'bs','option':_0x5b4ffd('0x1e91')},{'value':'br','option':_0x5b4ffd('0xa43')},{'value':'bg','option':_0x5b4ffd('0x195b')},{'value':'km','option':_0x5b4ffd('0x26dd')},{'value':'ca','option':_0x5b4ffd('0xeb9')},{'value':_0x5b4ffd('0x203f'),'option':'Chinese\x20(Simplified)'},{'value':'zh-TW','option':_0x5b4ffd('0x1b70')},{'value':'co','option':_0x5b4ffd('0x1fdc')},{'value':'hr','option':_0x5b4ffd('0x13ad')},{'value':'cs','option':'Czech'},{'value':'da','option':'Danish'},{'value':'nl','option':'Dutch'},{'value':'en','option':_0x5b4ffd('0x866')},{'value':'eo','option':_0x5b4ffd('0x1ea3')},{'value':'et','option':_0x5b4ffd('0x83a')},{'value':'fo','option':_0x5b4ffd('0x1ce9')},{'value':'tl','option':_0x5b4ffd('0x2242')},{'value':'fi','option':_0x5b4ffd('0x10cd')},{'value':'fr','option':_0x5b4ffd('0xfd2')},{'value':'fy','option':_0x5b4ffd('0x254c')},{'value':'gl','option':'Galician'},{'value':'ka','option':_0x5b4ffd('0x24d1')},{'value':'de','option':_0x5b4ffd('0x1072')},{'value':'el','option':_0x5b4ffd('0xe76')},{'value':'gn','option':_0x5b4ffd('0x256a')},{'value':'gu','option':_0x5b4ffd('0x124')},{'value':_0x5b4ffd('0x26fd'),'option':_0x5b4ffd('0x2570')},{'value':'ha','option':_0x5b4ffd('0x1245')},{'value':'iw','option':_0x5b4ffd('0x17b7')},{'value':'hi','option':'Hindi'},{'value':'hu','option':'Hungarian'},{'value':'is','option':_0x5b4ffd('0x2290')},{'value':'id','option':_0x5b4ffd('0x131e')},{'value':'ia','option':_0x5b4ffd('0x10d2')},{'value':'ga','option':_0x5b4ffd('0x1aa2')},{'value':'it','option':'Italian'},{'value':'jw','option':_0x5b4ffd('0x72e')},{'value':'ja','option':_0x5b4ffd('0x270a')},{'value':'kn','option':_0x5b4ffd('0x19e6')},{'value':'kk','option':_0x5b4ffd('0x1e51')},{'value':'rw','option':_0x5b4ffd('0x1f01')},{'value':'rn','option':_0x5b4ffd('0xc8e')},{'value':_0x5b4ffd('0x54'),'option':_0x5b4ffd('0x34c')},{'value':'ku','option':_0x5b4ffd('0x168b')},{'value':'ko','option':_0x5b4ffd('0x22f1')},{'value':'ky','option':_0x5b4ffd('0xa3c')},{'value':'lo','option':_0x5b4ffd('0x2522')},{'value':'la','option':_0x5b4ffd('0x7ad')},{'value':'lv','option':_0x5b4ffd('0xbf')},{'value':'ln','option':_0x5b4ffd('0x23ea')},{'value':'lt','option':'Lithuanian'},{'value':'mk','option':_0x5b4ffd('0x377')},{'value':'mg','option':_0x5b4ffd('0x13f3')},{'value':'ml','option':_0x5b4ffd('0x11ef')},{'value':'mt','option':_0x5b4ffd('0x184a')},{'value':'mi','option':_0x5b4ffd('0x27c0')},{'value':'mr','option':_0x5b4ffd('0x1d3d')},{'value':'mo','option':'Moldavian'},{'value':'mn','option':_0x5b4ffd('0x14ce')},{'value':'sr-ME','option':_0x5b4ffd('0xd63')},{'value':'ne','option':_0x5b4ffd('0x16af')},{'value':'no','option':_0x5b4ffd('0xa7a')},{'value':'nn','option':_0x5b4ffd('0x261f')},{'value':'oc','option':_0x5b4ffd('0x27cf')},{'value':'or','option':_0x5b4ffd('0x25ef')},{'value':'om','option':'Oromo'},{'value':'ps','option':'Pashto'},{'value':'fa','option':_0x5b4ffd('0x15b6')},{'value':'xx-pirate','option':'Pirate'},{'value':'pl','option':_0x5b4ffd('0xb2d')},{'value':_0x5b4ffd('0x1428'),'option':_0x5b4ffd('0x1c61')},{'value':'pt-PT','option':_0x5b4ffd('0xef9')},{'value':'pa','option':_0x5b4ffd('0x22dd')},{'value':'qu','option':_0x5b4ffd('0x1ad4')},{'value':'ro','option':_0x5b4ffd('0xe5')},{'value':'rm','option':_0x5b4ffd('0xdf7')},{'value':'ru','option':_0x5b4ffd('0x1319')},{'value':'gd','option':_0x5b4ffd('0x1afa')},{'value':'sr','option':_0x5b4ffd('0x555')},{'value':'sh','option':'Serbo-Croatian'},{'value':'st','option':_0x5b4ffd('0x1ad')},{'value':'sn','option':'Shona'},{'value':'sd','option':'Sindhi'},{'value':'si','option':'Sinhalese'},{'value':'sk','option':'Slovak'},{'value':'sl','option':_0x5b4ffd('0x5ed')},{'value':'so','option':'Somali'},{'value':'es','option':'Spanish'},{'value':'su','option':_0x5b4ffd('0x2524')},{'value':'sw','option':'Swahili'},{'value':'sv','option':_0x5b4ffd('0xbaf')},{'value':'tg','option':_0x5b4ffd('0x4c')},{'value':'ta','option':_0x5b4ffd('0x256d')},{'value':'tt','option':_0x5b4ffd('0x272d')},{'value':'te','option':_0x5b4ffd('0x1850')},{'value':'th','option':_0x5b4ffd('0x97b')},{'value':'ti','option':_0x5b4ffd('0x968')},{'value':'to','option':_0x5b4ffd('0x157c')},{'value':'tr','option':'Turkish'},{'value':'tk','option':'Turkmen'},{'value':'tw','option':'Twi'},{'value':'ug','option':_0x5b4ffd('0x500')},{'value':'uk','option':_0x5b4ffd('0x21ef')},{'value':'ur','option':'Urdu'},{'value':'uz','option':_0x5b4ffd('0x1024')},{'value':'vi','option':_0x5b4ffd('0x17d2')},{'value':'cy','option':_0x5b4ffd('0x1d4d')},{'value':'xh','option':_0x5b4ffd('0x1e99')},{'value':'yi','option':_0x5b4ffd('0x3e3')},{'value':'yo','option':'Yoruba'},{'value':'zu','option':'Zulu'}];}function _0x15f977(){const _0x5d3f19=_0x34e79e;return[{'value':_0x5d3f19('0x73'),'option':_0x5d3f19('0x17a3')},{'value':_0x5d3f19('0xb24'),'option':_0x5d3f19('0x244c')},{'value':_0x5d3f19('0x226f'),'option':_0x5d3f19('0x2010')},{'value':'az-AZ','option':_0x5d3f19('0x22f6')},{'value':_0x5d3f19('0x2e'),'option':_0x5d3f19('0x20e')},{'value':_0x5d3f19('0x1911'),'option':_0x5d3f19('0x829')},{'value':_0x5d3f19('0x23ae'),'option':_0x5d3f19('0x158f')},{'value':_0x5d3f19('0x17d'),'option':_0x5d3f19('0x1b07')},{'value':_0x5d3f19('0x10f5'),'option':_0x5d3f19('0x189e')},{'value':_0x5d3f19('0x5b1'),'option':_0x5d3f19('0x70d')},{'value':_0x5d3f19('0x12'),'option':'Danish\x20(Denmark)'},{'value':_0x5d3f19('0x27bc'),'option':_0x5d3f19('0x1ea4')},{'value':_0x5d3f19('0x17b4'),'option':_0x5d3f19('0x1d1b')},{'value':_0x5d3f19('0x16fc'),'option':_0x5d3f19('0x59')},{'value':_0x5d3f19('0x84e'),'option':_0x5d3f19('0x1c11')},{'value':_0x5d3f19('0xa88'),'option':'English\x20(United\x20Kingdom)'},{'value':'en-IN','option':_0x5d3f19('0x11f7')},{'value':_0x5d3f19('0x1a67'),'option':'English\x20(Ireland)'},{'value':_0x5d3f19('0x2066'),'option':_0x5d3f19('0x76e')},{'value':'en-NZ','option':_0x5d3f19('0x125e')},{'value':_0x5d3f19('0x9d'),'option':'English\x20(Nigeria)'},{'value':'en-PH','option':_0x5d3f19('0x1125')},{'value':'en-ZA','option':_0x5d3f19('0x234f')},{'value':'en-TZ','option':_0x5d3f19('0x1e6e')},{'value':_0x5d3f19('0xb31'),'option':'English\x20(United\x20States)'},{'value':_0x5d3f19('0xa2e'),'option':_0x5d3f19('0x330')},{'value':_0x5d3f19('0x107c'),'option':_0x5d3f19('0xe7b')},{'value':_0x5d3f19('0x1848'),'option':'Spanish\x20(Chile)'},{'value':_0x5d3f19('0x40'),'option':_0x5d3f19('0x2830')},{'value':_0x5d3f19('0x152b'),'option':_0x5d3f19('0x7ed')},{'value':_0x5d3f19('0x1548'),'option':_0x5d3f19('0x21ea')},{'value':_0x5d3f19('0xcbe'),'option':_0x5d3f19('0x1a64')},{'value':_0x5d3f19('0x2328'),'option':'Spanish\x20(Spain)'},{'value':'es-US','option':'Spanish\x20(United\x20States)'},{'value':_0x5d3f19('0x921'),'option':_0x5d3f19('0x11e8')},{'value':_0x5d3f19('0x1bdc'),'option':_0x5d3f19('0x1e5d')},{'value':_0x5d3f19('0x153c'),'option':_0x5d3f19('0xc66')},{'value':_0x5d3f19('0x256c'),'option':_0x5d3f19('0x27de')},{'value':'es-PA','option':'Spanish\x20(Panama)'},{'value':_0x5d3f19('0xca0'),'option':'Spanish\x20(Paraguay)'},{'value':'es-PE','option':_0x5d3f19('0xc98')},{'value':_0x5d3f19('0x1840'),'option':_0x5d3f19('0x1b7f')},{'value':_0x5d3f19('0x1960'),'option':_0x5d3f19('0xb98')},{'value':'es-UY','option':_0x5d3f19('0x128e')},{'value':_0x5d3f19('0xb7'),'option':_0x5d3f19('0x1e18')},{'value':_0x5d3f19('0x1df2'),'option':_0x5d3f19('0xb6e')},{'value':_0x5d3f19('0x21f2'),'option':_0x5d3f19('0x1a0')},{'value':_0x5d3f19('0x247d'),'option':_0x5d3f19('0xbfe')},{'value':_0x5d3f19('0x27c1'),'option':_0x5d3f19('0x2174')},{'value':_0x5d3f19('0x252a'),'option':_0x5d3f19('0x273')},{'value':_0x5d3f19('0xd04'),'option':_0x5d3f19('0x2706')},{'value':_0x5d3f19('0x20fe'),'option':_0x5d3f19('0x11ce')},{'value':_0x5d3f19('0x107b'),'option':_0x5d3f19('0x15a0')},{'value':_0x5d3f19('0x193b'),'option':_0x5d3f19('0x375')},{'value':_0x5d3f19('0x607'),'option':_0x5d3f19('0x11c0')},{'value':'it-IT','option':_0x5d3f19('0x345')},{'value':_0x5d3f19('0x264f'),'option':_0x5d3f19('0xc3')},{'value':_0x5d3f19('0x1347'),'option':_0x5d3f19('0x3ab')},{'value':_0x5d3f19('0x2701'),'option':_0x5d3f19('0x16e')},{'value':_0x5d3f19('0xcac'),'option':_0x5d3f19('0x315')},{'value':_0x5d3f19('0x1576'),'option':_0x5d3f19('0x1a98')},{'value':_0x5d3f19('0x1af8'),'option':_0x5d3f19('0xb74')},{'value':_0x5d3f19('0x1162'),'option':'Hungarian\x20(Hungary)'},{'value':_0x5d3f19('0x2629'),'option':_0x5d3f19('0x6b2')},{'value':'mr-IN','option':_0x5d3f19('0x1938')},{'value':'nl-NL','option':_0x5d3f19('0x1bd2')},{'value':_0x5d3f19('0x261b'),'option':_0x5d3f19('0xe14')},{'value':_0x5d3f19('0x8d3'),'option':_0x5d3f19('0xe6')},{'value':'pl-PL','option':'Polish\x20(Poland)'},{'value':_0x5d3f19('0x1428'),'option':_0x5d3f19('0x1c61')},{'value':_0x5d3f19('0x280d'),'option':'Portuguese\x20(Portugal)'},{'value':_0x5d3f19('0x20b0'),'option':_0x5d3f19('0x1ef8')},{'value':_0x5d3f19('0x1f8a'),'option':'Sinhala\x20(Srilanka)'},{'value':_0x5d3f19('0x1a12'),'option':_0x5d3f19('0xab2')},{'value':'sl-SI','option':_0x5d3f19('0x1504')},{'value':_0x5d3f19('0x6a5'),'option':'Sundanese\x20(Indonesia)'},{'value':_0x5d3f19('0xa53'),'option':'Swahili\x20(Tanzania)'},{'value':_0x5d3f19('0x12c4'),'option':_0x5d3f19('0x8d5')},{'value':_0x5d3f19('0x5d0'),'option':_0x5d3f19('0x18fd')},{'value':'sv-SE','option':_0x5d3f19('0x97a')},{'value':_0x5d3f19('0x253d'),'option':_0x5d3f19('0x12a1')},{'value':_0x5d3f19('0xd4d'),'option':_0x5d3f19('0x2833')},{'value':'ta-LK','option':_0x5d3f19('0x7f1')},{'value':_0x5d3f19('0xb03'),'option':_0x5d3f19('0x19af')},{'value':'te-IN','option':'Telugu\x20(India)'},{'value':'vi-VN','option':'Vietnamese\x20(Vietnam)'},{'value':_0x5d3f19('0x59d'),'option':_0x5d3f19('0xd7')},{'value':'ur-PK','option':_0x5d3f19('0x84c')},{'value':_0x5d3f19('0xe15'),'option':'Urdu\x20(India)'},{'value':'el-GR','option':_0x5d3f19('0x1745')},{'value':_0x5d3f19('0x7cd'),'option':_0x5d3f19('0x163c')},{'value':'ru-RU','option':_0x5d3f19('0x26cf')},{'value':'sr-RS','option':_0x5d3f19('0xf8e')},{'value':_0x5d3f19('0x6a'),'option':_0x5d3f19('0x233c')},{'value':'he-IL','option':_0x5d3f19('0x1541')},{'value':_0x5d3f19('0x13b0'),'option':'Arabic\x20(Israel)'},{'value':_0x5d3f19('0x245c'),'option':'Arabic\x20(Jordan)'},{'value':_0x5d3f19('0x24d5'),'option':_0x5d3f19('0x1411')},{'value':'ar-BH','option':'Arabic\x20(Bahrain)'},{'value':_0x5d3f19('0x103e'),'option':'Arabic\x20(Algeria)'},{'value':_0x5d3f19('0x13df'),'option':_0x5d3f19('0x1085')},{'value':_0x5d3f19('0x1fcc'),'option':_0x5d3f19('0x15cb')},{'value':'ar-KW','option':_0x5d3f19('0x1a24')},{'value':_0x5d3f19('0x246b'),'option':_0x5d3f19('0x23a2')},{'value':_0x5d3f19('0x1ff2'),'option':_0x5d3f19('0xac5')},{'value':_0x5d3f19('0x269a'),'option':_0x5d3f19('0xe03')},{'value':_0x5d3f19('0x13a5'),'option':_0x5d3f19('0x15a6')},{'value':_0x5d3f19('0x194'),'option':'Arabic\x20(Qatar)'},{'value':_0x5d3f19('0x19ef'),'option':'Arabic\x20(Lebanon)'},{'value':_0x5d3f19('0x21bf'),'option':_0x5d3f19('0x1021')},{'value':'fa-IR','option':_0x5d3f19('0x12a3')},{'value':_0x5d3f19('0x240d'),'option':'Hindi\x20(India)'},{'value':'th-TH','option':'Thai\x20(Thailand)'},{'value':_0x5d3f19('0x11ee'),'option':_0x5d3f19('0x166c')},{'value':_0x5d3f19('0x2181'),'option':_0x5d3f19('0xbe8')},{'value':_0x5d3f19('0x2435'),'option':_0x5d3f19('0x1d4f')},{'value':'ja-JP','option':'Japanese\x20(Japan)'},{'value':'cmn-Hans-HK','option':'Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)'},{'value':_0x5d3f19('0xdbd'),'option':_0x5d3f19('0x1377')}];}function _0x5c8392(){const _0x4618a1=_0x34e79e;return[{'value':'usenglishfemale','option':_0x4618a1('0x1824')},{'value':_0x4618a1('0xd16'),'option':_0x4618a1('0x210e')},{'value':'ukenglishfemale','option':'UK\x20English\x20Female'},{'value':_0x4618a1('0x1c5e'),'option':'UK\x20English\x20Male'},{'value':_0x4618a1('0xff'),'option':_0x4618a1('0xe20')},{'value':_0x4618a1('0x12f0'),'option':'US\x20Spanish\x20Female'},{'value':_0x4618a1('0x1575'),'option':_0x4618a1('0x1f65')},{'value':'chchinesefemale','option':'Chinese\x20Female'},{'value':_0x4618a1('0x1519'),'option':'Chinese\x20Male'},{'value':_0x4618a1('0x3f4'),'option':_0x4618a1('0x1b7')},{'value':_0x4618a1('0x39e'),'option':_0x4618a1('0x1195')},{'value':_0x4618a1('0x213e'),'option':'Japanese\x20Female'},{'value':'jpjapanesemale','option':_0x4618a1('0x2755')},{'value':_0x4618a1('0x2022'),'option':_0x4618a1('0x1c8')},{'value':'krkoreanmale','option':_0x4618a1('0x146b')},{'value':_0x4618a1('0x1f5a'),'option':_0x4618a1('0x2822')},{'value':_0x4618a1('0x1f76'),'option':_0x4618a1('0x1bdf')},{'value':_0x4618a1('0x1be6'),'option':_0x4618a1('0x22b8')},{'value':_0x4618a1('0x1f64'),'option':_0x4618a1('0x1332')},{'value':'eurportuguesemale','option':_0x4618a1('0x2471')},{'value':_0x4618a1('0x13b9'),'option':_0x4618a1('0x59f')},{'value':_0x4618a1('0x50a'),'option':_0x4618a1('0x267')},{'value':_0x4618a1('0x195'),'option':_0x4618a1('0xeef')},{'value':_0x4618a1('0x21b4'),'option':'European\x20Czech\x20Female'},{'value':_0x4618a1('0x932'),'option':_0x4618a1('0x2313')},{'value':'eurfinnishfemale','option':_0x4618a1('0x1484')},{'value':'eurfrenchfemale','option':_0x4618a1('0x592')},{'value':_0x4618a1('0x2534'),'option':'European\x20French\x20Male'},{'value':_0x4618a1('0xfc4'),'option':_0x4618a1('0x1d3b')},{'value':_0x4618a1('0x271c'),'option':_0x4618a1('0x45b')},{'value':_0x4618a1('0x1fdd'),'option':_0x4618a1('0xba4')},{'value':_0x4618a1('0x2030'),'option':_0x4618a1('0x2767')},{'value':_0x4618a1('0x10e3'),'option':_0x4618a1('0x2627')},{'value':'eurturkishfemale','option':_0x4618a1('0x1f05')},{'value':_0x4618a1('0x1e19'),'option':_0x4618a1('0x269')},{'value':_0x4618a1('0x1924'),'option':_0x4618a1('0xdbe')},{'value':_0x4618a1('0x563'),'option':_0x4618a1('0x10dd')},{'value':_0x4618a1('0x20d8'),'option':_0x4618a1('0x1558')},{'value':_0x4618a1('0x75f'),'option':_0x4618a1('0x1108')},{'value':'swswedishfemale','option':'Swedish\x20Female'},{'value':'cafrenchfemale','option':_0x4618a1('0x139')},{'value':'cafrenchmale','option':_0x4618a1('0x723')}];}function _0x44406c(){const _0x288faf=_0x34e79e;return[{'value':_0x288faf('0xb31'),'option':'English\x20(US)'},{'value':_0x288faf('0x16fc'),'option':'English\x20(Canada)'},{'value':_0x288faf('0xa88'),'option':_0x288faf('0x21ba')},{'value':_0x288faf('0x17b4'),'option':'English\x20(Australia)'},{'value':_0x288faf('0x2328'),'option':_0x288faf('0x2765')},{'value':_0x288faf('0x153c'),'option':'Spanish\x20(Mexico)'},{'value':'it-IT','option':_0x288faf('0x26e3')},{'value':_0x288faf('0x27c1'),'option':_0x288faf('0x1ea4')},{'value':'fr-CA','option':'French\x20(Canada)'},{'value':_0x288faf('0x187c'),'option':_0x288faf('0xd5e')},{'value':'pt-PT','option':_0x288faf('0xef9')},{'value':'ca-ES','option':_0x288faf('0xe7d')},{'value':_0x288faf('0x255b'),'option':'Chinese\x20(Taiwan)'},{'value':_0x288faf('0x12'),'option':_0x288faf('0x2410')},{'value':_0x288faf('0x2484'),'option':_0x288faf('0x594')},{'value':'ko-KR','option':_0x288faf('0x1c49')},{'value':_0x288faf('0xf45'),'option':_0x288faf('0x1bd2')},{'value':'nb-NO','option':_0x288faf('0x1a6f')},{'value':_0x288faf('0x1428'),'option':_0x288faf('0x1c61')},{'value':_0x288faf('0x24db'),'option':'Russian\x20(Russia)'},{'value':_0x288faf('0x2517'),'option':'Swedish\x20(Sweden)'},{'value':_0x288faf('0x203f'),'option':'Chinese\x20(China)'},{'value':'zh-HK','option':_0x288faf('0x13e6')}];}function _0x21beb9(){const _0x46f105=_0x34e79e;return[{'value':'0','option':'Default'},{'value':_0x46f105('0x1012'),'option':_0x46f105('0xc59')},{'value':_0x46f105('0x1292'),'option':_0x46f105('0x1473')},{'value':_0x46f105('0x1a47'),'option':_0x46f105('0x8a3')},{'value':_0x46f105('0x1176'),'option':'Numbers\x20to\x2099'},{'value':_0x46f105('0xa21'),'option':'Numbers\x20to\x20999'},{'value':_0x46f105('0x26d1'),'option':'Time'},{'value':_0x46f105('0xfee'),'option':_0x46f105('0x1a1d')},{'value':_0x46f105('0x587'),'option':_0x46f105('0x8fe')},{'value':_0x46f105('0x156d'),'option':_0x46f105('0x1088')}];}function _0x38abe0(){const _0x2ff9a8=_0x34e79e;return[{'value':'Amy','option':_0x2ff9a8('0x11de')},{'value':_0x2ff9a8('0x20ff'),'option':_0x2ff9a8('0x2807')},{'value':'Brian','option':_0x2ff9a8('0x471')},{'value':_0x2ff9a8('0x127e'),'option':_0x2ff9a8('0x17c')},{'value':_0x2ff9a8('0x1241'),'option':_0x2ff9a8('0x240')},{'value':'Celine','option':'Celine\x20(French,\x20Female)'},{'value':'Chantal','option':_0x2ff9a8('0x279e')},{'value':'Conchita','option':_0x2ff9a8('0x14ab')},{'value':'Cristiano','option':_0x2ff9a8('0xedc')},{'value':_0x2ff9a8('0x1e6b'),'option':_0x2ff9a8('0x1aa0')},{'value':_0x2ff9a8('0xf74'),'option':_0x2ff9a8('0x8e1')},{'value':_0x2ff9a8('0x1a58'),'option':_0x2ff9a8('0x1bcd')},{'value':_0x2ff9a8('0x2718'),'option':_0x2ff9a8('0x120b')},{'value':_0x2ff9a8('0xbdd'),'option':_0x2ff9a8('0x367')},{'value':_0x2ff9a8('0x46d'),'option':_0x2ff9a8('0xfc5')},{'value':_0x2ff9a8('0x1919'),'option':_0x2ff9a8('0x1752')},{'value':_0x2ff9a8('0x1cc5'),'option':_0x2ff9a8('0xe16')},{'value':_0x2ff9a8('0x260f'),'option':_0x2ff9a8('0x1257')},{'value':_0x2ff9a8('0xa68'),'option':_0x2ff9a8('0x1e71')},{'value':'Ivy','option':_0x2ff9a8('0x26dc')},{'value':_0x2ff9a8('0x203'),'option':_0x2ff9a8('0x3b9')},{'value':_0x2ff9a8('0x170'),'option':_0x2ff9a8('0x1555')},{'value':_0x2ff9a8('0xb5c'),'option':_0x2ff9a8('0x38e')},{'value':_0x2ff9a8('0x907'),'option':'Joey\x20(English,\x20US,\x20Male)'},{'value':_0x2ff9a8('0x136e'),'option':'Justin\x20(English,\x20US,\x20Male)'},{'value':_0x2ff9a8('0x2599'),'option':'Karl\x20(Icelandic,\x20Male)'},{'value':'Kendra','option':_0x2ff9a8('0xd73')},{'value':'Kimberly','option':_0x2ff9a8('0x225a')},{'value':_0x2ff9a8('0xc62'),'option':_0x2ff9a8('0xc86')},{'value':'Lotte','option':_0x2ff9a8('0x251e')},{'value':_0x2ff9a8('0xf21'),'option':_0x2ff9a8('0x1ab9')},{'value':_0x2ff9a8('0x1b0e'),'option':_0x2ff9a8('0x2762')},{'value':'Marlene','option':_0x2ff9a8('0x263d')},{'value':_0x2ff9a8('0x2045'),'option':'Mathieu\x20(French,\x20Male)'},{'value':'Maxim','option':_0x2ff9a8('0x250b')},{'value':_0x2ff9a8('0x230'),'option':'Miguel\x20(Spanish,\x20US,\x20Male)'},{'value':_0x2ff9a8('0xc06'),'option':_0x2ff9a8('0x4ad')},{'value':_0x2ff9a8('0x834'),'option':'Naja\x20(Danish,\x20Female)'},{'value':'Nicole','option':_0x2ff9a8('0x1d07')},{'value':_0x2ff9a8('0x1f33'),'option':_0x2ff9a8('0x1e8')},{'value':_0x2ff9a8('0x9a6'),'option':_0x2ff9a8('0x8c')},{'value':_0x2ff9a8('0x35e'),'option':_0x2ff9a8('0x2673')},{'value':_0x2ff9a8('0x929'),'option':_0x2ff9a8('0x20cc')},{'value':_0x2ff9a8('0x1b6d'),'option':_0x2ff9a8('0x197')},{'value':_0x2ff9a8('0x3fb'),'option':'Salli\x20(English,\x20US,\x20Female)'},{'value':_0x2ff9a8('0x1aa8'),'option':_0x2ff9a8('0x1fd3')},{'value':_0x2ff9a8('0x1931'),'option':_0x2ff9a8('0x21eb')}];}function _0x52fccb(){const _0x200664=_0x34e79e;return[{'value':'us-east-1','option':_0x200664('0x98c')},{'value':'us-east-2','option':_0x200664('0x1439')},{'value':_0x200664('0xfef'),'option':_0x200664('0xa0b')},{'value':_0x200664('0x118d'),'option':_0x200664('0x7cf')},{'value':'ca-central-1','option':'Canada\x20(Central)'},{'value':_0x200664('0x16cc'),'option':_0x200664('0x282b')},{'value':_0x200664('0x23a3'),'option':_0x200664('0x24f9')},{'value':_0x200664('0x2477'),'option':'EU\x20(London)'},{'value':_0x200664('0x6d2'),'option':_0x200664('0xed3')},{'value':_0x200664('0x146f'),'option':'Asia\x20Pacific\x20(Singapore)'},{'value':_0x200664('0xc36'),'option':'Asia\x20Pacific\x20(Sydney)'},{'value':_0x200664('0x1f34'),'option':'Asia\x20Pacific\x20(Seoul)'},{'value':'ap-northeast-1','option':'Asia\x20Pacific\x20(Tokyo)'},{'value':_0x200664('0xf5f'),'option':_0x200664('0x10e5')},{'value':_0x200664('0x272a'),'option':_0x200664('0x7c6')}];}function _0x5290c1(){const _0x559df2=_0x34e79e;return[{'value':_0x559df2('0x1aa5'),'option':'US\x20East\x20(N.\x20Virginia)'},{'value':'us-west-2','option':_0x559df2('0x7cf')},{'value':_0x559df2('0x16cc'),'option':_0x559df2('0x282b')},{'value':_0x559df2('0xc36'),'option':_0x559df2('0x1172')}];}_0x58fdc7['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x17cc'),_0x34e79e('0x1a21')];function _0x58fdc7(_0x5bdf6f,_0x160cbf,_0x151c95,_0x23ee2f){const _0x4566bb=this;_0x4566bb['project']={'preproduction':_0x151c95};function _0x4e9822(_0x32ce38){const _0x4dc75e=a0_0x14e7;_0x32ce38?(_0x23ee2f(_0x4566bb[_0x4dc75e('0x1bf6')][_0x4dc75e('0x1ca')]),_0x5bdf6f[_0x4dc75e('0x19d')](_0x4566bb[_0x4dc75e('0x1bf6')]['preproduction'])):_0x5bdf6f[_0x4dc75e('0x19d')]();}_0x4566bb['closeDialog']=_0x4e9822;}const _0x59d4b1=_0x58fdc7;_0x1b5867[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1a21')];function _0x1b5867(_0x6172af,_0x477d22){const _0x27fd6b=_0x34e79e,_0x4092cc=this,_0x125e6a=0x5,_0x4965cb=_0x125e6a*0x400*0x400;_0x4092cc[_0x27fd6b('0x25be')]=[],_0x4092cc['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4965cb,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4092cc[_0x27fd6b('0x2793')]={'flow':{}},_0x4092cc[_0x27fd6b('0x189a')]=![],_0x4092cc[_0x27fd6b('0xca7')]=_0x2a2c4a,_0x4092cc[_0x27fd6b('0x1573')]=_0x572085;function _0x572085(_0x4fd523){const _0x4ae7ba=_0x27fd6b;_0x4092cc[_0x4ae7ba('0x25be')]=[];const _0x2fbe25=['xml'];!_0x283545()[_0x4ae7ba('0x1d4e')](_0x2fbe25,_0x4fd523[_0x4ae7ba('0xa31')]())&&_0x4092cc[_0x4ae7ba('0x25be')][_0x4ae7ba('0x13e3')]({'message':_0x4ae7ba('0x19d3')+_0x4fd523[_0x4ae7ba('0xa31')]()+_0x4ae7ba('0x1c3')});_0x4fd523['size']>_0x4965cb&&_0x4092cc[_0x4ae7ba('0x25be')][_0x4ae7ba('0x13e3')]({'message':_0x4ae7ba('0x1bb0')+_0x125e6a+'MB'});if(!_0x4092cc[_0x4ae7ba('0x25be')][_0x4ae7ba('0x2566')]){const _0x965d03=new FileReader();_0x965d03['onload']=function(_0x3d8d91){const _0x2e1328=_0x4ae7ba;_0x2a2c4a(_0x3d8d91[_0x2e1328('0x159c')]['result']);},_0x965d03[_0x4ae7ba('0x8cf')](_0x4fd523[_0x4ae7ba('0x3d5')]);}}function _0x2a2c4a(_0x290512){const _0x2e4cfd=_0x27fd6b;_0x290512?(_0x477d22(_0x290512),_0x6172af['hide'](_0x290512)):_0x6172af[_0x2e4cfd('0x19d')]();}}const _0x3c9dd5=_0x1b5867;_0x25b1ef[_0x34e79e('0x2d9')]=['$mdDialog',_0x34e79e('0xd57'),_0x34e79e('0x1bf6'),_0x34e79e('0x519')];function _0x25b1ef(_0x23ddd5,_0x551923,_0x222805,_0x38eb44){const _0x528296=_0x34e79e,_0x495598=this;_0x495598[_0x528296('0x1bf6')]=_0x283545()[_0x528296('0x1b8')](_0x222805);function _0x5a4dbe(){const _0x3e92bf=_0x528296;_0x495598['errors']=[],_0x38eb44[_0x3e92bf('0x163a')][_0x3e92bf('0x2740')]({'id':_0x495598[_0x3e92bf('0x1bf6')]['id']},{'notes':_0x495598[_0x3e92bf('0x1bf6')]['notes'],'description':_0x495598[_0x3e92bf('0x1bf6')][_0x3e92bf('0x27b9')]})[_0x3e92bf('0x1714')]['then'](function(_0x509d86){const _0x4c5c35=_0x3e92bf;_0x551923[_0x4c5c35('0x173b')]({'title':_0x4c5c35('0x16f5'),'msg':_0x495598[_0x4c5c35('0x1bf6')][_0x4c5c35('0x1a8d')]?_0x495598[_0x4c5c35('0x1bf6')][_0x4c5c35('0x1a8d')]+_0x4c5c35('0x6f8'):''}),_0x23ddd5[_0x4c5c35('0x19d')](_0x509d86);})[_0x3e92bf('0x1cb5')](function(_0x3340dd){const _0x3ca930=_0x3e92bf;console[_0x3ca930('0x5e8')](_0x3340dd),_0x495598[_0x3ca930('0x25be')]=_0x3340dd['data'][_0x3ca930('0x25be')]||[{'message':_0x3340dd[_0x3ca930('0x17df')](),'type':_0x3ca930('0x26d8')}];});}function _0x76820f(){const _0x39e199=_0x528296;_0x23ddd5[_0x39e199('0x19d')]();}_0x495598[_0x528296('0xca7')]=_0x76820f,_0x495598[_0x528296('0xbd0')]=_0x5a4dbe;}const _0x4b420a=_0x25b1ef;_0x3f8947[_0x34e79e('0x2d9')]=['$mdDialog',_0x34e79e('0xd57'),'projects','$window',_0x34e79e('0x1382')];function _0x3f8947(_0x3c19c1,_0x174b21,_0x18b888,_0x56dc5b,_0x335b17){const _0xcaec71=_0x34e79e,_0x193f3e=this;_0x193f3e[_0xcaec71('0x18f9')]=_0x18b888,_0x193f3e['id']='',_0x193f3e[_0xcaec71('0x17fb')]=!![];function _0x150134(_0x125fec){const _0x18c2b8=_0xcaec71;_0x193f3e[_0x18c2b8('0x25be')]=[],_0x125fec?(_0x3c19c1['hide'](),_0x193f3e[_0x18c2b8('0x17fb')]?_0x56dc5b['open'](_0x18c2b8('0x126f')+_0x193f3e['id'],_0x18c2b8('0x2558')):_0x335b17['go'](_0x18c2b8('0xa36'),{'id':_0x193f3e['id']})):_0x3c19c1[_0x18c2b8('0x19d')]();}_0x193f3e['closeDialog']=_0x150134;}const _0x462163=_0x3f8947;_0x16ca21[_0x34e79e('0x2d9')]=['$mdDialog','toasty',_0x34e79e('0x519'),_0x34e79e('0x1bf6'),_0x34e79e('0x18f9'),_0x34e79e('0x1a5c')];function _0x16ca21(_0x172c71,_0x5c9fcf,_0x241556,_0x5ef3d6,_0x230bfd,_0xe8c0f5){const _0x58d6d6=_0x34e79e,_0x5f2f62=this;_0x5f2f62[_0x58d6d6('0x1bf6')]=_0x5ef3d6,_0x5f2f62[_0x58d6d6('0x1ab')]=0x0,_0x5f2f62[_0x58d6d6('0x117b')]=[],_0x5f2f62['selectedItems']=[],_0x5f2f62[_0x58d6d6('0xca7')]=_0x569231,_0x5f2f62[_0x58d6d6('0x121')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x58d6d6('0x1a8d'),'line1':_0x58d6d6('0x2831'),'line2':[_0x58d6d6('0x1a8d'),_0x58d6d6('0x2838')],'line3':_0x58d6d6('0x1ab'),'labelAll':_0xe8c0f5[_0x58d6d6('0x1b11')](_0x58d6d6('0x776')),'labelSelected':_0xe8c0f5[_0x58d6d6('0x1b11')]('CALLYSQUARE.SELECTED_USERS'),'transferCallback':function(_0x212317,_0x2cf527){const _0x3bc40e=_0x58d6d6;_0x241556[_0x3bc40e('0x163a')][_0x2cf527?_0x3bc40e('0xdf2'):_0x3bc40e('0x57b')]({'id':_0x5f2f62[_0x3bc40e('0x1bf6')]['id'],'ids':_0x283545()[_0x3bc40e('0x155d')](_0x212317,'id'),'penalty':_0x5f2f62[_0x3bc40e('0x1ab')]||0x0})[_0x3bc40e('0x1714')][_0x3bc40e('0x2788')](function(){const _0x13bb8d=_0x3bc40e;_0x5c9fcf[_0x13bb8d('0x173b')]({'title':_0x13bb8d('0x2574')+(_0x2cf527?_0x13bb8d('0x281b'):_0x13bb8d('0xf60')),'msg':_0x13bb8d('0x23a4')+(_0x2cf527?_0x13bb8d('0x281b'):_0x13bb8d('0xf60'))+'!'}),!_0x2cf527&&_0x597abd();})['catch'](function(_0x2a9382){const _0x448cd5=_0x3bc40e;_0x5c9fcf[_0x448cd5('0x5e8')]({'title':_0x2a9382[_0x448cd5('0x1b51')]?_0x448cd5('0x15d1')+_0x2a9382['status']+_0x448cd5('0x1b0b')+_0x2a9382[_0x448cd5('0x22ce')]:'SYSTEM:squareProjects.ADDUSERS','msg':_0x2a9382[_0x448cd5('0x1b51')]?JSON[_0x448cd5('0x1be0')](_0x2a9382[_0x448cd5('0x11fc')]):_0x2a9382[_0x448cd5('0x17df')]()});});}};function _0x597abd(){const _0x215274=_0x58d6d6;return _0x241556['squareProject'][_0x215274('0x1b18')]({'id':_0x5f2f62[_0x215274('0x1bf6')]['id'],'fields':'id,name,fullname,internal','nolimit':!![],'role':'user'})[_0x215274('0x1714')]['then'](function(_0x12d08d){const _0x16b91b=_0x215274;return _0x5f2f62[_0x16b91b('0x283f')]=_0x12d08d[_0x16b91b('0x25df')]?_0x283545()[_0x16b91b('0x155d')](_0x12d08d[_0x16b91b('0x25df')],function(_0x3865ad){return _0x3865ad;}):[],_0x5f2f62['dualMultiselectOptions'][_0x16b91b('0x283f')]=_0x5f2f62[_0x16b91b('0x283f')],_0x241556['user'][_0x16b91b('0x1335')]({'fields':_0x16b91b('0x9b7'),'role':_0x16b91b('0x1e6a'),'nolimit':!![]})['$promise'];})[_0x215274('0x2788')](function(_0x4a773b){const _0x560d8a=_0x215274;_0x5f2f62[_0x560d8a('0x117b')]=_0x4a773b[_0x560d8a('0x25df')]?_0x283545()[_0x560d8a('0x155d')](_0x4a773b['rows'],function(_0x814479){return _0x814479;}):[],_0x5f2f62[_0x560d8a('0x121')][_0x560d8a('0x117b')]=_0x283545()[_0x560d8a('0x432')](_0x5f2f62['items'],_0x5f2f62[_0x560d8a('0x283f')],'id');})['catch'](function(_0x5e1acc){const _0x3a7419=_0x215274;_0x5c9fcf['error']({'title':_0x5e1acc[_0x3a7419('0x1b51')]?_0x3a7419('0x15d1')+_0x5e1acc[_0x3a7419('0x1b51')]+'\x20-\x20'+_0x5e1acc[_0x3a7419('0x22ce')]:_0x3a7419('0x2801'),'msg':_0x5e1acc['status']?JSON[_0x3a7419('0x1be0')](_0x5e1acc[_0x3a7419('0x11fc')]):_0x5e1acc[_0x3a7419('0x17df')]()});});}function _0x569231(){const _0x6b78a1=_0x58d6d6;_0x172c71[_0x6b78a1('0x19d')]();}_0x597abd();}const _0x2c1b2f=_0x16ca21;_0x2026ea[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x1bf6'),_0x34e79e('0x17cc'),'api','$window','$state'];function _0x2026ea(_0x5caaad,_0x353247,_0x317b05,_0x4bc638,_0x34b929,_0x26eefe,_0x3ce140){const _0x11060b=_0x34e79e,_0x36954e=this;_0x36954e[_0x11060b('0x1bf6')]=angular[_0x11060b('0x2669')](_0x317b05),_0x36954e[_0x11060b('0x1bf6')][_0x11060b('0x1a8d')]+=_0x11060b('0x1632'),_0x36954e[_0x11060b('0x1bf6')][_0x11060b('0x1ca')]=_0x4bc638,_0x36954e['newWindow']=!![];function _0x46a221(){const _0x3d9b43=_0x11060b;delete _0x36954e[_0x3d9b43('0x1bf6')]['id'],_0x34b929[_0x3d9b43('0x163a')][_0x3d9b43('0xbd0')](_0x36954e[_0x3d9b43('0x1bf6')])[_0x3d9b43('0x1714')][_0x3d9b43('0x2788')](function(_0x159031){const _0x58ce78=_0x3d9b43;_0x353247[_0x58ce78('0x173b')]({'title':_0x58ce78('0x196c'),'msg':_0x36954e['project'][_0x58ce78('0x1a8d')]?_0x36954e['project'][_0x58ce78('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x5caaad[_0x58ce78('0x19d')](_0x159031),_0x36954e[_0x58ce78('0x17fb')]?_0x26eefe['open'](_0x58ce78('0x126f')+_0x159031['id'],_0x58ce78('0x2558')):_0x3ce140['go'](_0x58ce78('0xa36'),{'id':_0x159031['id']});})[_0x3d9b43('0x1cb5')](function(_0x293cbe){const _0x3c94f8=_0x3d9b43;console[_0x3c94f8('0x5e8')](_0x293cbe),_0x36954e[_0x3c94f8('0x25be')]=_0x293cbe['data'][_0x3c94f8('0x25be')]||[{'message':_0x293cbe[_0x3c94f8('0x17df')](),'type':_0x3c94f8('0xe04')}];});}function _0x329447(){const _0xced8bc=_0x11060b;_0x5caaad[_0xced8bc('0x19d')]();}_0x36954e['closeDialog']=_0x329447,_0x36954e['save']=_0x46a221;}const _0x3c343b=_0x2026ea,_0x46138b=_0x18dd13['p']+_0x34e79e('0x2166'),_0x244504=_0x18dd13['p']+_0x34e79e('0x1084'),_0x5b35cc=_0x18dd13['p']+_0x34e79e('0x2719'),_0x3ba9f1=_0x18dd13['p']+_0x34e79e('0x1e4d'),_0xdb03c2=_0x18dd13['p']+_0x34e79e('0x2360'),_0x63cae3=_0x18dd13['p']+_0x34e79e('0x1110'),_0x13323e=_0x18dd13['p']+_0x34e79e('0x109f');_0x52b817[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$document','$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1bf6'),_0x34e79e('0x1e42'),_0x34e79e('0x20f2'),_0x34e79e('0x283e'),'sounds','variables',_0x34e79e('0xdfe'),_0x34e79e('0xf3e'),_0x34e79e('0x18f9'),_0x34e79e('0xec5'),_0x34e79e('0x1e22'),'templates',_0x34e79e('0x2'),_0x34e79e('0x5f4'),_0x34e79e('0x225d'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];const _0x40d4a8=window[_0x34e79e('0x1022')],_0x4221d9=window[_0x34e79e('0x25a1')];function _0x52b817(_0x5a0f5e,_0x4e9ecc,_0x4a3324,_0x141b5f,_0xd75d16,_0x5d145e,_0x2e77f7,_0x25c470,_0x40ee60,_0x47391e,_0x406703,_0x2b0b7b,_0x2b961b,_0x418f89,_0x4dc957,_0x307314,_0x41e4cf,_0x351415,_0x557f52,_0x232afe,_0x4082d4,_0xf92727,_0x2be6b2,_0xfcd92b){const _0x2488cd=_0x34e79e,_0x5f4988=this;_0x5f4988[_0x2488cd('0x9cb')]=_0xfcd92b[_0x2488cd('0x24cc')](),_0x5f4988[_0x2488cd('0x1bf6')]=_0x25c470||{},_0x5f4988[_0x2488cd('0xec9')]=_0x2be6b2&&_0x2be6b2[_0x2488cd('0x338')]==0x1?_0x2be6b2[_0x2488cd('0x25df')][0x0]:null,_0x5f4988[_0x2488cd('0xe28')]=_0xfcd92b[_0x2488cd('0x157e')](_0x5f4988[_0x2488cd('0xec9')]?_0x5f4988[_0x2488cd('0xec9')][_0x2488cd('0xe28')]:null),_0x5f4988[_0x2488cd('0x122e')]=_0x6a2d41,_0x5f4988[_0x2488cd('0x2c1')]=_0x1a3606,_0x5f4988[_0x2488cd('0x5ee')]=_0x2ceb44,_0x5f4988[_0x2488cd('0x123f')]=_0x340edb,_0x5f4988[_0x2488cd('0x841')]=_0x28bac2,_0x5f4988[_0x2488cd('0x275f')]=_0x3aedcd,_0x5f4988[_0x2488cd('0x13de')]=_0x4240d6,_0x5f4988['updateInfo']=_0x34cead,_0x5f4988['editXML']=_0x2d53b4,_0x5f4988[_0x2488cd('0x158b')]=_0x4ae503,_0x5f4988['gotoProjects']=_0x4a06a4;function _0x6a2d41(){const _0x294f69=_0x2488cd,_0xf252e1=new _0x40d4a8(_0x5f4988,new _0x4221d9(),document[_0x294f69('0x1b0c')](_0x294f69('0x1a74')));_0xf252e1['openString'](_0x5f4988['project'][_0x294f69('0x1ca')],_0x5f4988[_0x294f69('0x1bf6')][_0x294f69('0x1a8d')],_0x5f4988[_0x294f69('0x1bf6')]);}function _0x2ceb44(_0x4c5405,_0x1d96c9){const _0x2b60ba=_0x2488cd;_0x4a3324[_0x2b60ba('0x2fa')]({'controller':_0x2b60ba('0x15ad'),'controllerAs':'vm','templateUrl':_0x46138b,'parent':angular[_0x2b60ba('0x16b1')](_0x4e9ecc[_0x2b60ba('0x945')]),'clickOutsideToClose':!![],'locals':{'users':_0x40ee60[_0x2b60ba('0x25df')]||[],'trunks':_0x47391e[_0x2b60ba('0x25df')]||[],'queues':_0x406703[_0x2b60ba('0x25df')]||[],'sounds':_0x2b0b7b[_0x2b60ba('0x25df')]||[],'variables':_0x2b961b[_0x2b60ba('0x25df')]||[],'databases':_0x418f89[_0x2b60ba('0x25df')]||[],'contexts':_0x4dc957['rows']||[],'projects':_0x307314[_0x2b60ba('0x25df')]||[],'intervals':_0x41e4cf[_0x2b60ba('0x25df')]||[],'mailAccounts':_0x351415[_0x2b60ba('0x25df')]||[],'smsAccounts':_0x4082d4[_0x2b60ba('0x25df')]||[],'pauses':_0xf92727[_0x2b60ba('0x25df')]||[],'templates':_0x557f52[_0x2b60ba('0x25df')]||[],'lists':_0x232afe['rows']||[],'cell':_0x4c5405,'saveCallback':_0x1d96c9,'crudPermissions':_0x5f4988[_0x2b60ba('0xe28')]}});}function _0x340edb(_0x92ea73){const _0x1531dd=_0x2488cd;_0x4a3324['show']({'controller':_0x1531dd('0x1e81'),'controllerAs':'vm','templateUrl':_0x244504,'parent':angular[_0x1531dd('0x16b1')](_0x4e9ecc[_0x1531dd('0x945')]),'clickOutsideToClose':!![],'locals':{'project':_0x92ea73,'projects':_0x307314['rows'],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x5f4988['crudPermissions']}});}function _0x28bac2(){const _0x59af3d=_0x2488cd;_0x4a3324[_0x59af3d('0x2fa')]({'controller':_0x59af3d('0x18ea'),'controllerAs':'vm','templateUrl':_0x5b35cc,'parent':angular[_0x59af3d('0x16b1')](_0x4e9ecc[_0x59af3d('0x945')]),'clickOutsideToClose':!![],'locals':{'projects':_0x307314[_0x59af3d('0x25df')]||[]}});}function _0x3aedcd(_0x329fac){const _0x5c1abb=_0x2488cd;_0x4a3324[_0x5c1abb('0x2fa')]({'controller':_0x5c1abb('0x24c4'),'controllerAs':'vm','templateUrl':_0x3ba9f1,'parent':angular['element'](_0x4e9ecc[_0x5c1abb('0x945')]),'clickOutsideToClose':!![],'locals':{'project':_0x5f4988[_0x5c1abb('0x1bf6')],'currentXML':_0x329fac}})[_0x5c1abb('0x2788')](function(_0x2523f2){const _0x1a944d=_0x5c1abb;_0x2523f2&&_0x307314[_0x1a944d('0x25df')]['push'](_0x2523f2);});}function _0x33bba4(){return _0x141b5f(function(_0x16a9e7,_0x27413e){const _0x5a3022=a0_0x14e7;return _0x2e77f7['userProfileSection']['get']({'userProfileId':_0x5f4988[_0x5a3022('0x9cb')][_0x5a3022('0x237f')],'sectionId':0x3f4})[_0x5a3022('0x1714')][_0x5a3022('0x2788')](function(_0x5d5893){const _0x53574d=_0x5a3022,_0x9eb6d=_0x5d5893['rows']?_0x5d5893[_0x53574d('0x25df')][0x0]:null,_0x140134=_0xfcd92b['parseCrudPermissions'](_0x9eb6d?_0x9eb6d[_0x53574d('0xe28')]:null);_0x16a9e7(_0x140134);})[_0x5a3022('0x1cb5')](function(_0x327713){_0x27413e(_0x327713);});});}function _0x4240d6(_0x27c081){const _0xb1ced2=_0x2488cd;return _0x33bba4()[_0xb1ced2('0x2788')](function(_0x308bbd){const _0x1ea71a=_0xb1ced2;_0x308bbd[_0x1ea71a('0x21b7')]?_0x4a3324['show']({'controller':_0x1ea71a('0x55a'),'controllerAs':'vm','templateUrl':_0x20ca4c,'parent':angular[_0x1ea71a('0x16b1')](_0x4e9ecc['body']),'clickOutsideToClose':!![],'locals':{'variable':_0x27c081,'variables':_0x2b961b[_0x1ea71a('0x25df')],'license':null,'setting':null,'crudPermissions':_0x308bbd}}):_0x5d145e[_0x1ea71a('0x2276')]({'title':_0xd75d16['instant'](_0x1ea71a('0x5be')),'msg':_0xd75d16[_0x1ea71a('0x1b11')](_0x1ea71a('0x4f4'))});})[_0xb1ced2('0x1cb5')](function(_0x1f529c){const _0x179d12=_0xb1ced2;_0x5d145e[_0x179d12('0x5e8')]({'title':_0x1f529c[_0x179d12('0x1b51')]?_0x179d12('0x15d1')+_0x1f529c['status']+_0x179d12('0x1b0b')+_0x1f529c['statusText']:'API:NEW_VARIABLE','msg':_0x1f529c[_0x179d12('0x11fc')]?JSON[_0x179d12('0x1be0')](_0x1f529c[_0x179d12('0x11fc')]):_0x1f529c['toString']()});});}function _0x34cead(_0x1cb213){const _0x3802e7=_0x2488cd;_0x4a3324['show']({'controller':_0x3802e7('0x4a8'),'controllerAs':'vm','templateUrl':_0xdb03c2,'parent':angular[_0x3802e7('0x16b1')](_0x4e9ecc[_0x3802e7('0x945')]),'targetEvent':_0x1cb213,'clickOutsideToClose':!![],'locals':{'project':_0x5f4988[_0x3802e7('0x1bf6')]}})[_0x3802e7('0x2788')](function(_0x255799){const _0x31e6f1=_0x3802e7;_0x255799&&_0x283545()[_0x31e6f1('0x2503')](_0x5f4988[_0x31e6f1('0x1bf6')],_0x255799);});}function _0x2d53b4(_0x27052e,_0x31b851){const _0x201995=_0x2488cd;_0x4a3324['show']({'controller':'MxGraphEditXMLController','controllerAs':'vm','templateUrl':_0x63cae3,'parent':angular[_0x201995('0x16b1')](_0x4e9ecc['body']),'clickOutsideToClose':!![],'locals':{'currentXML':_0x27052e,'saveCallback':_0x31b851}})[_0x201995('0x2788')](function(_0x20f227){const _0xca248f=_0x201995;_0x20f227&&(_0x5f4988[_0xca248f('0x1bf6')]['preproduction']=_0x20f227);});}function _0x4ae503(_0x11a04a){const _0x19a3fb=_0x2488cd;_0x4a3324[_0x19a3fb('0x2fa')]({'controller':_0x19a3fb('0xe0a'),'controllerAs':'vm','templateUrl':_0x13323e,'parent':angular['element'](_0x4e9ecc[_0x19a3fb('0x945')]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x11a04a}})['then'](function(_0xd305a7){_0xd305a7&&(_0x5f4988['project']['preproduction']=_0xd305a7);});}function _0x1a3606(_0x5191e7,_0x496772){const _0x4ed33c=_0x2488cd,_0x2b4a00={'preproduction':_0x5191e7};_0x496772&&(_0x2b4a00[_0x4ed33c('0xee8')]=_0x5191e7),_0x2e77f7[_0x4ed33c('0x163a')]['update']({'id':_0x5f4988['project']['id']},_0x2b4a00)[_0x4ed33c('0x1714')][_0x4ed33c('0x2788')](function(_0x387466){const _0x55da6f=_0x4ed33c;_0x5d145e[_0x55da6f('0x173b')]({'title':'Project\x20'+(_0x496772?_0x55da6f('0xe5d'):'saved')+'!','msg':_0x5f4988[_0x55da6f('0x1bf6')][_0x55da6f('0x1a8d')]?_0x5f4988['project'][_0x55da6f('0x1a8d')]+_0x55da6f('0x1674')+(_0x496772?'published':'saved')+'!':''}),_0x5f4988[_0x55da6f('0x1bf6')]['preproduction']=_0x387466[_0x55da6f('0x1ca')];})['catch'](function(_0x5394d3){const _0x5a9966=_0x4ed33c;_0x5d145e[_0x5a9966('0x5e8')]({'title':_0x5394d3[_0x5a9966('0x1b51')]?_0x5a9966('0x15d1')+_0x5394d3['status']+_0x5a9966('0x1b0b')+_0x5394d3[_0x5a9966('0x22ce')]:'SYSTEM:GETsquareProject','msg':_0x5394d3[_0x5a9966('0x11fc')]?JSON[_0x5a9966('0x1be0')](_0x5394d3[_0x5a9966('0x11fc')]):_0x5394d3[_0x5a9966('0x17df')]()});});}function _0x4a06a4(){_0x5a0f5e['go']('app.callysquare.projects',{},{'reload':'app.callysquare.projects'});}}const _0x18d99b=_0x52b817;_0x4362bd['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x18f9'),'userProfile',_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x4362bd(_0x4a726c,_0x116eef,_0x7a2b50,_0x1cbd5e,_0x48c018,_0x57f4ad,_0x3da570,_0x54737e,_0x594611,_0x34b6e9,_0x2a7754,_0x1b0288,_0x434636){const _0x307e53=_0x34e79e,_0x2dd993=this;_0x2dd993[_0x307e53('0x9cb')]=_0x434636['getCurrentUser'](),_0x2dd993[_0x307e53('0x18f9')]=_0x1cbd5e||{'count':0x0,'rows':[]},_0x2dd993[_0x307e53('0x63c')]=_0x48c018,_0x2dd993['userProfileSection']=_0x57f4ad&&_0x57f4ad['count']==0x1?_0x57f4ad['rows'][0x0]:null,_0x2dd993['crudPermissions']=_0x434636[_0x307e53('0x157e')](_0x2dd993[_0x307e53('0xec9')]?_0x2dd993[_0x307e53('0xec9')][_0x307e53('0xe28')]:null),_0x2dd993['table']='projects',_0x2dd993[_0x307e53('0x2278')]='',_0x2dd993[_0x307e53('0x25e2')]=null,_0x2dd993['selectedProjects']=[],_0x2dd993['query']={'fields':_0x307e53('0x1032'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2dd993[_0x307e53('0x1f7e')]=_0x4d334f,_0x2dd993[_0x307e53('0x1e5')]=_0xac116c,_0x2dd993[_0x307e53('0x173b')]=_0x22781a,_0x2dd993[_0x307e53('0x1fbe')]=_0x260f25,_0x2dd993['createOrEditProject']=_0x589dd4,_0x2dd993[_0x307e53('0x151a')]=_0x3dc54e,_0x2dd993[_0x307e53('0x1a13')]=_0x52176e,_0x2dd993['deleteSelectedProjects']=_0x4f658e,_0x2dd993[_0x307e53('0x1fcb')]=_0x301066,_0x2dd993[_0x307e53('0x1cdb')]=_0x302b8f;function _0x4d334f(_0x36cc15){const _0x22ba7e=_0x307e53;_0x116eef['go'](_0x22ba7e('0xa36'),{'id':_0x36cc15['id'],'crudPermissions':_0x2dd993[_0x22ba7e('0xe28')]});}function _0xac116c(_0x4f1447,_0x13eea0){const _0x57ce5c=_0x307e53,_0x5c7391=_0x594611[_0x57ce5c('0x112e')]()[_0x57ce5c('0x14e4')](_0x57ce5c('0x12b2'))['htmlContent'](_0x57ce5c('0x1670')+_0x4f1447[_0x57ce5c('0x1a8d')]+_0x57ce5c('0x229e')+_0x57ce5c('0x27c7'))[_0x57ce5c('0x10bc')](_0x57ce5c('0x1965'))['targetEvent'](_0x13eea0)['ok']('OK')[_0x57ce5c('0x1801')](_0x57ce5c('0x1d8d'));_0x594611[_0x57ce5c('0x2fa')](_0x5c7391)[_0x57ce5c('0x2788')](function(){_0x3dc54e(_0x4f1447);},function(){const _0x4d42f6=_0x57ce5c;console[_0x4d42f6('0x10df')]('CANCEL');});}let _0x402b84=!![],_0x186a58=0x1;_0x4a726c[_0x307e53('0x1662')](_0x307e53('0x1569'),function(_0x1c47f1,_0x3c68c6){const _0x398932=_0x307e53;_0x402b84?_0x2a7754(function(){_0x402b84=![];}):(!_0x3c68c6&&(_0x186a58=_0x2dd993[_0x398932('0x135a')]['page']),_0x1c47f1!==_0x3c68c6&&(_0x2dd993['query']['page']=0x1),!_0x1c47f1&&(_0x2dd993[_0x398932('0x135a')][_0x398932('0x23f5')]=_0x186a58),_0x2dd993['getProjects']());});function _0x22781a(_0x103865){const _0x764ed3=_0x307e53;_0x2dd993[_0x764ed3('0x18f9')]=_0x103865||{'count':0x0,'rows':[]};}function _0x260f25(){const _0x1a35d5=_0x307e53;_0x2dd993['query'][_0x1a35d5('0x19e')]=(_0x2dd993['query'][_0x1a35d5('0x23f5')]-0x1)*_0x2dd993[_0x1a35d5('0x135a')][_0x1a35d5('0x68e')],_0x434636[_0x1a35d5('0x1516')](_0x1a35d5('0xe23'))?_0x2dd993[_0x1a35d5('0x1808')]=_0x3da570[_0x1a35d5('0x163a')][_0x1a35d5('0x1335')](_0x2dd993[_0x1a35d5('0x135a')],_0x22781a)[_0x1a35d5('0x1714')]:(_0x2dd993[_0x1a35d5('0x135a')]['id']=_0x2dd993[_0x1a35d5('0x63c')]['id'],_0x2dd993[_0x1a35d5('0x135a')][_0x1a35d5('0xb13')]='SquareProjects',_0x2dd993[_0x1a35d5('0x1808')]=_0x3da570[_0x1a35d5('0x63c')]['getResources'](_0x2dd993[_0x1a35d5('0x135a')],_0x22781a)[_0x1a35d5('0x1714')]);}function _0x589dd4(_0x3f55d8,_0xa3cd35){const _0x20e702=_0x307e53;_0x594611[_0x20e702('0x2fa')]({'controller':_0x20e702('0x1e81'),'controllerAs':'vm','templateUrl':_0x244504,'parent':angular[_0x20e702('0x16b1')](_0x34b6e9['body']),'targetEvent':_0x3f55d8,'clickOutsideToClose':!![],'locals':{'project':_0xa3cd35,'projects':_0x2dd993[_0x20e702('0x18f9')][_0x20e702('0x25df')],'openFromEditor':null,'setting':null,'crudPermissions':_0x2dd993[_0x20e702('0xe28')]}});}function _0x3dc54e(_0x22f1a0){const _0x2dfe1f=_0x307e53;_0x3da570['squareProject']['delete']({'id':_0x22f1a0['id']})[_0x2dfe1f('0x1714')][_0x2dfe1f('0x2788')](function(){const _0x59db44=_0x2dfe1f;_0x283545()[_0x59db44('0x1a90')](_0x2dd993[_0x59db44('0x18f9')][_0x59db44('0x25df')],{'id':_0x22f1a0['id']}),_0x2dd993[_0x59db44('0x18f9')][_0x59db44('0x338')]-=0x1,!_0x2dd993[_0x59db44('0x18f9')]['rows'][_0x59db44('0x2566')]&&_0x2dd993[_0x59db44('0x1fbe')](),_0x1b0288[_0x59db44('0x173b')]({'title':'Project\x20deleted!','msg':_0x22f1a0['name']?_0x22f1a0[_0x59db44('0x1a8d')]+_0x59db44('0x14d4'):''});})[_0x2dfe1f('0x1cb5')](function(_0xc53024){const _0x32399f=_0x2dfe1f;if(_0xc53024[_0x32399f('0x11fc')]&&_0xc53024[_0x32399f('0x11fc')]['errors']&&_0xc53024[_0x32399f('0x11fc')][_0x32399f('0x25be')][_0x32399f('0x2566')]){_0x2dd993[_0x32399f('0x25be')]=_0xc53024[_0x32399f('0x11fc')][_0x32399f('0x25be')]||[{'message':_0xc53024[_0x32399f('0x17df')](),'type':_0x32399f('0x13ec')}];for(let _0x1b857c=0x0;_0x1b857c<_0xc53024['data'][_0x32399f('0x25be')]['length'];_0x1b857c++){_0x1b0288[_0x32399f('0x5e8')]({'title':_0xc53024['data']['errors'][_0x1b857c][_0x32399f('0x1d7')],'msg':_0xc53024[_0x32399f('0x11fc')][_0x32399f('0x25be')][_0x1b857c]['message']});}}else _0x1b0288[_0x32399f('0x5e8')]({'title':_0xc53024[_0x32399f('0x1b51')]?'API:'+_0xc53024[_0x32399f('0x1b51')]+_0x32399f('0x1b0b')+_0xc53024['statusText']:_0x32399f('0x13ec'),'msg':_0xc53024[_0x32399f('0x11fc')]?JSON['stringify'](_0xc53024[_0x32399f('0x11fc')][_0x32399f('0x15e2')]):_0xc53024[_0x32399f('0x15e2')]||_0xc53024['toString']()});});}function _0x52176e(){const _0x250e78=_0x307e53,_0x4e2171=angular['copy'](_0x2dd993[_0x250e78('0xe35')]);return _0x2dd993[_0x250e78('0xe35')]=[],_0x4e2171;}function _0x4f658e(_0x5bafe5){const _0x4847fd=_0x307e53,_0x5cf98f=_0x594611[_0x4847fd('0x112e')]()[_0x4847fd('0x14e4')](_0x4847fd('0x554'))[_0x4847fd('0x93e')](_0x4847fd('0x1670')+_0x2dd993[_0x4847fd('0xe35')]['length']+_0x4847fd('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20Projects')[_0x4847fd('0x24d0')](_0x5bafe5)['ok']('OK')[_0x4847fd('0x1801')]('CANCEL');_0x594611['show'](_0x5cf98f)[_0x4847fd('0x2788')](function(){const _0x11b5d0=_0x4847fd;_0x2dd993[_0x11b5d0('0xe35')][_0x11b5d0('0x1534')](function(_0x21e56c){_0x3dc54e(_0x21e56c);}),_0x2dd993[_0x11b5d0('0xe35')]=[];});}function _0x301066(){const _0x477a2b=_0x307e53;_0x2dd993[_0x477a2b('0xe35')]=[];}function _0x302b8f(){_0x2dd993['selectedProjects']=_0x2dd993['projects']['rows'];}}const _0x538f25=_0x4362bd;_0x45c2bc[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x45c2bc(_0x3775d3){const _0x1a9269=_0x34e79e;_0x3775d3['state']('app.callysquare.projects',{'url':'/projects','views':{'content@app':{'templateUrl':_0x483534,'controller':_0x1a9269('0x1211')}},'resolve':{'projects':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x1cbd2e,_0x21299c){const _0x3c239f=_0x1a9269;return _0x21299c[_0x3c239f('0x1516')](_0x3c239f('0xe23'))?_0x1cbd2e[_0x3c239f('0x2322')](_0x3c239f('0x18b'),{'fields':_0x3c239f('0x1032'),'sort':_0x3c239f('0x1a8d'),'limit':0xa,'offset':0x0}):_0x1cbd2e['resolve'](_0x3c239f('0x27c5'),{'id':_0x21299c['getCurrentUser']()[_0x3c239f('0x237f')],'section':_0x3c239f('0x20de'),'fields':_0x3c239f('0x1032'),'sort':_0x3c239f('0x1a8d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x256596,_0x5c334f){const _0x2620d5=_0x1a9269;return _0x256596['resolve'](_0x2620d5('0x231d'),{'fields':_0x2620d5('0x3f0'),'id':_0x5c334f[_0x2620d5('0x24cc')]()[_0x2620d5('0x237f')]});}],'userProfileSection':['apiResolver',_0x1a9269('0x1b04'),function(_0x27c292,_0x31e3b7){const _0x2a3da9=_0x1a9269;return _0x27c292[_0x2a3da9('0x2322')](_0x2a3da9('0x22ca'),{'fields':_0x2a3da9('0xe2c'),'userProfileId':_0x31e3b7[_0x2a3da9('0x24cc')]()['userProfileId'],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x1a9269('0x512')})[_0x1a9269('0x249b')](_0x1a9269('0xa36'),{'url':_0x1a9269('0x59c'),'views':{'content@app':{'templateUrl':_0x13a2a4,'controller':'ProjectController\x20as\x20vm'}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x1a9269('0x1318'),_0x1a9269('0xad0'),function(_0x11054b,_0x796c04){const _0x110ab5=_0x1a9269;return _0x11054b[_0x110ab5('0x2322')](_0x110ab5('0x18b'),{'id':_0x796c04['id']});}],'users':['apiResolver',_0x1a9269('0x1b04'),function(_0x5aa206,_0x44e8b2){const _0x321292=_0x1a9269;return _0x44e8b2['hasRole'](_0x321292('0xe23'))?_0x5aa206[_0x321292('0x2322')]('user@get',{'fields':_0x321292('0x20fc'),'sort':_0x321292('0x1a8d'),'nolimit':!![]}):_0x5aa206[_0x321292('0x2322')](_0x321292('0x27c5'),{'id':_0x44e8b2[_0x321292('0x24cc')]()[_0x321292('0x237f')],'section':'Users','mergeResources':!![],'fields':'id,fullname,role','sort':_0x321292('0x1a8d'),'nolimit':!![]});}],'trunks':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x47ece1,_0x4718c8){const _0x30344d=_0x1a9269;return _0x4718c8[_0x30344d('0x1516')](_0x30344d('0xe23'))?_0x47ece1[_0x30344d('0x2322')](_0x30344d('0x7d4'),{'fields':_0x30344d('0x1338'),'sort':_0x30344d('0x1a8d'),'nolimit':!![]}):_0x47ece1[_0x30344d('0x2322')](_0x30344d('0x27c5'),{'id':_0x4718c8[_0x30344d('0x24cc')]()[_0x30344d('0x237f')],'section':_0x30344d('0xca4'),'fields':_0x30344d('0x1338'),'sort':'name','nolimit':!![]});}],'queues':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x5e35a2,_0x3a268f){const _0x125458=_0x1a9269;return _0x3a268f[_0x125458('0x1516')]('admin')?_0x5e35a2[_0x125458('0x2322')](_0x125458('0x18df'),{'type':_0x125458('0x2e4'),'fields':_0x125458('0x1338'),'sort':_0x125458('0x1a8d'),'nolimit':!![]}):_0x5e35a2['resolve']('userProfile@getResources',{'id':_0x3a268f[_0x125458('0x24cc')]()['userProfileId'],'section':_0x125458('0x182e'),'type':_0x125458('0x2e4'),'fields':_0x125458('0x1338'),'sort':_0x125458('0x1a8d'),'nolimit':!![]});}],'sounds':[_0x1a9269('0x1318'),'Auth',function(_0x51124f,_0x30202b){const _0x510274=_0x1a9269;return _0x30202b[_0x510274('0x1516')]('admin')?_0x51124f[_0x510274('0x2322')](_0x510274('0x179f'),{'fields':_0x510274('0x1338'),'sort':_0x510274('0x1a8d'),'nolimit':!![]}):_0x51124f[_0x510274('0x2322')]('userProfile@getResources',{'id':_0x30202b[_0x510274('0x24cc')]()[_0x510274('0x237f')],'section':_0x510274('0x4c3'),'fields':'id,name','sort':_0x510274('0x1a8d'),'nolimit':!![]});}],'variables':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x5b0fe0,_0x1f0940){const _0x1bb5d2=_0x1a9269;return _0x1f0940[_0x1bb5d2('0x1516')](_0x1bb5d2('0xe23'))?_0x5b0fe0[_0x1bb5d2('0x2322')](_0x1bb5d2('0x22d1'),{'fields':_0x1bb5d2('0x1338'),'sort':_0x1bb5d2('0x1a8d'),'nolimit':!![]}):_0x5b0fe0[_0x1bb5d2('0x2322')](_0x1bb5d2('0x27c5'),{'id':_0x1f0940[_0x1bb5d2('0x24cc')]()[_0x1bb5d2('0x237f')],'section':_0x1bb5d2('0x276f'),'fields':_0x1bb5d2('0x1338'),'sort':'name','nolimit':!![]});}],'databases':[_0x1a9269('0x1318'),'Auth',function(_0x3b6a68,_0x193dc1){const _0xf152f2=_0x1a9269;return _0x193dc1['hasRole'](_0xf152f2('0xe23'))?_0x3b6a68[_0xf152f2('0x2322')](_0xf152f2('0x240e'),{'fields':_0xf152f2('0x1338'),'sort':'name','nolimit':!![]}):_0x3b6a68[_0xf152f2('0x2322')](_0xf152f2('0x27c5'),{'id':_0x193dc1['getCurrentUser']()[_0xf152f2('0x237f')],'section':_0xf152f2('0x2536'),'fields':'id,name','sort':_0xf152f2('0x1a8d'),'nolimit':!![]});}],'projects':['apiResolver',_0x1a9269('0x1b04'),function(_0x3886a4,_0x3f6a0a){const _0x1cc7e2=_0x1a9269;return _0x3f6a0a[_0x1cc7e2('0x1516')](_0x1cc7e2('0xe23'))?_0x3886a4['resolve'](_0x1cc7e2('0x18b'),{'fields':_0x1cc7e2('0x1338'),'sort':'name','nolimit':!![]}):_0x3886a4[_0x1cc7e2('0x2322')](_0x1cc7e2('0x27c5'),{'id':_0x3f6a0a['getCurrentUser']()[_0x1cc7e2('0x237f')],'section':_0x1cc7e2('0x20de'),'fields':_0x1cc7e2('0x1338'),'sort':'name','nolimit':!![]});}],'contexts':['apiResolver',_0x1a9269('0x1b04'),function(_0x2d36d8,_0x253b57){const _0x2715f1=_0x1a9269;return _0x253b57[_0x2715f1('0x1516')](_0x2715f1('0xe23'))?_0x2d36d8[_0x2715f1('0x2322')](_0x2715f1('0x2613'),{'fields':_0x2715f1('0x1338'),'sort':_0x2715f1('0x1a8d'),'nolimit':!![]}):_0x2d36d8['resolve'](_0x2715f1('0x27c5'),{'id':_0x253b57['getCurrentUser']()[_0x2715f1('0x237f')],'section':_0x2715f1('0x1b38'),'fields':_0x2715f1('0x1338'),'sort':_0x2715f1('0x1a8d'),'nolimit':!![]});}],'intervals':[_0x1a9269('0x1318'),'Auth',function(_0x12013c,_0x1e062c){const _0xbd2264=_0x1a9269;return _0x1e062c[_0xbd2264('0x1516')](_0xbd2264('0xe23'))?_0x12013c[_0xbd2264('0x2322')]('interval@get',{'fields':_0xbd2264('0xb18'),'sort':'name','nolimit':!![]}):_0x12013c[_0xbd2264('0x2322')]('userProfile@getResources',{'id':_0x1e062c['getCurrentUser']()[_0xbd2264('0x237f')],'section':_0xbd2264('0x1fab'),'fields':_0xbd2264('0xb18'),'sort':_0xbd2264('0x1a8d'),'nolimit':!![]});}],'mailAccounts':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x403e0e,_0xc9e723){const _0x2cefc6=_0x1a9269;return _0xc9e723['hasRole'](_0x2cefc6('0xe23'))?_0x403e0e[_0x2cefc6('0x2322')](_0x2cefc6('0x219f'),{'fields':_0x2cefc6('0x1338'),'sort':_0x2cefc6('0x1a8d'),'nolimit':!![]}):_0x403e0e[_0x2cefc6('0x2322')](_0x2cefc6('0x27c5'),{'id':_0xc9e723[_0x2cefc6('0x24cc')]()[_0x2cefc6('0x237f')],'section':'MailAccounts','fields':_0x2cefc6('0x1338'),'sort':_0x2cefc6('0x1a8d'),'nolimit':!![]});}],'templates':['apiResolver',_0x1a9269('0x1b04'),function(_0xfc411,_0x312173){const _0x45b99e=_0x1a9269;return _0x312173[_0x45b99e('0x1516')](_0x45b99e('0xe23'))?_0xfc411[_0x45b99e('0x2322')](_0x45b99e('0x1d9'),{'fields':'id,name','sort':_0x45b99e('0x1a8d'),'nolimit':!![]}):_0xfc411[_0x45b99e('0x2322')]('userProfile@getResources',{'id':_0x312173['getCurrentUser']()['userProfileId'],'section':_0x45b99e('0x177c'),'fields':'id,name','sort':_0x45b99e('0x1a8d'),'nolimit':!![]});}],'lists':[_0x1a9269('0x1318'),'Auth',function(_0x51460f,_0x355134){const _0xbdca50=_0x1a9269;return _0x355134[_0xbdca50('0x1516')]('admin')?_0x51460f['resolve'](_0xbdca50('0x128f'),{'fields':_0xbdca50('0x1338'),'sort':'name','nolimit':!![]}):_0x51460f[_0xbdca50('0x2322')]('userProfile@getResources',{'id':_0x355134['getCurrentUser']()['userProfileId'],'section':_0xbdca50('0x12f2'),'fields':_0xbdca50('0x1338'),'sort':_0xbdca50('0x1a8d'),'nolimit':!![]});}],'smsAccounts':['apiResolver','Auth',function(_0xd4b237,_0x5f440e){const _0x41566f=_0x1a9269;return _0x5f440e[_0x41566f('0x1516')]('admin')?_0xd4b237['resolve'](_0x41566f('0x1511'),{'fields':_0x41566f('0x1338'),'sort':_0x41566f('0x1a8d'),'nolimit':!![]}):_0xd4b237[_0x41566f('0x2322')]('userProfile@getResources',{'id':_0x5f440e[_0x41566f('0x24cc')]()[_0x41566f('0x237f')],'section':_0x41566f('0x1894'),'fields':_0x41566f('0x1338'),'sort':_0x41566f('0x1a8d'),'nolimit':!![]});}],'pauses':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x585022,_0x39b4e3){const _0x207ef7=_0x1a9269;return _0x39b4e3[_0x207ef7('0x1516')](_0x207ef7('0xe23'))?_0x585022[_0x207ef7('0x2322')]('pause@get',{'fields':'id,name','sort':_0x207ef7('0x1a8d'),'nolimit':!![]}):_0x585022[_0x207ef7('0x2322')]('userProfile@getResources',{'id':_0x39b4e3['getCurrentUser']()[_0x207ef7('0x237f')],'section':_0x207ef7('0x1ed6'),'fields':'id,name','sort':_0x207ef7('0x1a8d'),'nolimit':!![]});}],'userProfileSection':[_0x1a9269('0x1318'),_0x1a9269('0x1b04'),function(_0x38c85d,_0x444304){const _0x3b0dbc=_0x1a9269;return _0x38c85d['resolve'](_0x3b0dbc('0x22ca'),{'fields':_0x3b0dbc('0xe2c'),'userProfileId':_0x444304[_0x3b0dbc('0x24cc')]()[_0x3b0dbc('0x237f')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x1a9269('0x512')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x268b'),[])[_0x34e79e('0x1a22')](_0x45c2bc)[_0x34e79e('0xb44')](_0x34e79e('0x1e81'),_0x54af5c)['controller'](_0x34e79e('0x15ad'),_0x5e47b5)[_0x34e79e('0x5a1')](_0x34e79e('0xc69'),_0x472752)['factory']('ispeechAsrModel',_0x21beb9)[_0x34e79e('0x227e')]('ispeechAsrLanguage',_0x44406c)[_0x34e79e('0x227e')](_0x34e79e('0x881'),_0x5c8392)[_0x34e79e('0x227e')](_0x34e79e('0x728'),_0xcb0a5c)[_0x34e79e('0x227e')]('googleTtsLanguage',_0x47ae12)[_0x34e79e('0x227e')]('googleAsrLanguage',_0x15f977)[_0x34e79e('0x227e')]('awsPollyVoice',_0x38abe0)['factory'](_0x34e79e('0x608'),_0x52fccb)[_0x34e79e('0x227e')]('awsLexRegion',_0x5290c1)[_0x34e79e('0x227e')](_0x34e79e('0x1dfa'),_0x27de3e)[_0x34e79e('0xb44')](_0x34e79e('0x23cc'),_0x59d4b1)[_0x34e79e('0xb44')](_0x34e79e('0xe0a'),_0x3c9dd5)['controller'](_0x34e79e('0x4a8'),_0x4b420a)['controller']('MxGraphOpenProjectController',_0x462163)[_0x34e79e('0xb44')](_0x34e79e('0x6d7'),_0x2c1b2f)[_0x34e79e('0xb44')](_0x34e79e('0x24c4'),_0x3c343b)[_0x34e79e('0xb44')](_0x34e79e('0xe67'),_0x18d99b)[_0x34e79e('0xb44')]('ProjectsController',_0x538f25);const _0x2745d8=_0x18dd13['p']+_0x34e79e('0x28'),_0x183a69=_0x18dd13['p']+_0x34e79e('0x1ab2');_0x53f56e['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x716'),_0x34e79e('0xd92'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x53f56e(_0x48e66a,_0x36c0d2,_0x443ae8,_0x14ab63,_0x5f4dbf,_0x2be68c,_0x5b333d,_0x41a888,_0x1716b1,_0x52a303,_0x30b4d2,_0x29564a,_0x46f87d,_0x17b7f5){const _0x20937b=_0x34e79e,_0x4866e3=this;_0x4866e3['currentUser']=_0x30b4d2['getCurrentUser'](),_0x4866e3[_0x20937b('0x25be')]=[],_0x4866e3[_0x20937b('0x1af0')]=_0x46f87d,_0x4866e3['license']=_0x29564a,_0x4866e3[_0x20937b('0xe28')]=_0x17b7f5,_0x4866e3[_0x20937b('0x1193')]={},_0x4866e3[_0x20937b('0x18ad')]=_0x4866e3['setting']&&_0x4866e3[_0x20937b('0x1af0')][_0x20937b('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4866e3[_0x20937b('0x14e4')]='CALLYSQUARE.EDIT_ODBC',_0x4866e3[_0x20937b('0xd92')]=angular['copy'](_0x1716b1),_0x4866e3[_0x20937b('0x716')]=_0x41a888,_0x4866e3['newOdbc']=![];!_0x4866e3[_0x20937b('0xd92')]&&(_0x4866e3[_0x20937b('0xd92')]={},_0x4866e3['title']=_0x20937b('0x1dce'),_0x4866e3[_0x20937b('0x1a40')]=!![]);_0x4866e3['addNewOdbc']=_0x1aa2f2,_0x4866e3['saveOdbc']=_0xa41276,_0x4866e3[_0x20937b('0x1a3e')]=_0x177e4f,_0x4866e3['getDateFromString']=_0xf5b0f3,_0x4866e3['closeDialog']=_0x71f502;function _0x1aa2f2(){const _0x1c33e2=_0x20937b;_0x4866e3[_0x1c33e2('0x25be')]=[],_0x52a303[_0x1c33e2('0x487')][_0x1c33e2('0xbd0')](_0x4866e3[_0x1c33e2('0xd92')])['$promise'][_0x1c33e2('0x2788')](function(_0x4aabff){const _0x4c070b=_0x1c33e2;_0x4866e3[_0x4c070b('0x716')]['unshift'](_0x4aabff[_0x4c070b('0x1cbf')]()),_0x5b333d[_0x4c070b('0x173b')]({'title':_0x4c070b('0xed'),'msg':_0x4866e3['odbc'][_0x4c070b('0x1a8d')]?_0x4866e3[_0x4c070b('0xd92')]['name']+_0x4c070b('0x1e4a'):''}),_0x71f502(_0x4aabff);})['catch'](function(_0x2913e5){const _0x5eabdd=_0x1c33e2;if(_0x2913e5['data']&&_0x2913e5['data'][_0x5eabdd('0x25be')]&&_0x2913e5[_0x5eabdd('0x11fc')]['errors'][_0x5eabdd('0x2566')]){_0x4866e3[_0x5eabdd('0x25be')]=_0x2913e5[_0x5eabdd('0x11fc')][_0x5eabdd('0x25be')]||[{'message':_0x2913e5['toString'](),'type':'api.squareOdbc.save'}];for(let _0x4a3c8f=0x0;_0x4a3c8f<_0x2913e5['data'][_0x5eabdd('0x25be')][_0x5eabdd('0x2566')];_0x4a3c8f+=0x1){_0x5b333d['error']({'title':_0x2913e5[_0x5eabdd('0x11fc')]['errors'][_0x4a3c8f][_0x5eabdd('0x1d7')],'msg':_0x2913e5[_0x5eabdd('0x11fc')][_0x5eabdd('0x25be')][_0x4a3c8f][_0x5eabdd('0x15e2')]});}}else _0x5b333d[_0x5eabdd('0x5e8')]({'title':_0x2913e5[_0x5eabdd('0x1b51')]?_0x5eabdd('0x15d1')+_0x2913e5[_0x5eabdd('0x1b51')]+'\x20-\x20'+_0x2913e5['statusText']:'api.squareOdbc.save','msg':_0x2913e5['data']?JSON[_0x5eabdd('0x1be0')](_0x2913e5['data'][_0x5eabdd('0x15e2')]):_0x2913e5[_0x5eabdd('0x17df')]()});});}function _0xa41276(){const _0x37442a=_0x20937b;_0x4866e3['errors']=[],_0x52a303[_0x37442a('0x487')]['update']({'id':_0x4866e3[_0x37442a('0xd92')]['id']},_0x4866e3[_0x37442a('0xd92')])[_0x37442a('0x1714')]['then'](function(_0x48598b){const _0x50e275=_0x37442a,_0x3d2ed9=_0x283545()[_0x50e275('0x20e8')](_0x4866e3[_0x50e275('0x716')],{'id':_0x48598b['id']});_0x3d2ed9&&_0x283545()[_0x50e275('0x2503')](_0x3d2ed9,_0x283545()[_0x50e275('0x41b')](_0x48598b[_0x50e275('0x1cbf')](),_0x283545()[_0x50e275('0x2163')](_0x3d2ed9))),_0x5b333d['success']({'title':_0x50e275('0x831'),'msg':_0x4866e3[_0x50e275('0xd92')]['name']?_0x4866e3[_0x50e275('0xd92')][_0x50e275('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x71f502(_0x48598b);})[_0x37442a('0x1cb5')](function(_0x3590f6){const _0x2d2135=_0x37442a;if(_0x3590f6[_0x2d2135('0x11fc')]&&_0x3590f6[_0x2d2135('0x11fc')]['errors']&&_0x3590f6['data']['errors'][_0x2d2135('0x2566')]){_0x4866e3[_0x2d2135('0x25be')]=_0x3590f6[_0x2d2135('0x11fc')][_0x2d2135('0x25be')]||[{'message':_0x3590f6[_0x2d2135('0x17df')](),'type':_0x2d2135('0x1c03')}];for(let _0x37986e=0x0;_0x37986e<_0x3590f6[_0x2d2135('0x11fc')][_0x2d2135('0x25be')][_0x2d2135('0x2566')];_0x37986e++){_0x5b333d['error']({'title':_0x3590f6[_0x2d2135('0x11fc')][_0x2d2135('0x25be')][_0x37986e][_0x2d2135('0x1d7')],'msg':_0x3590f6['data'][_0x2d2135('0x25be')][_0x37986e][_0x2d2135('0x15e2')]});}}else _0x5b333d[_0x2d2135('0x5e8')]({'title':_0x3590f6[_0x2d2135('0x1b51')]?_0x2d2135('0x15d1')+_0x3590f6[_0x2d2135('0x1b51')]+'\x20-\x20'+_0x3590f6[_0x2d2135('0x22ce')]:_0x2d2135('0x1c03'),'msg':_0x3590f6[_0x2d2135('0x11fc')]?JSON[_0x2d2135('0x1be0')](_0x3590f6[_0x2d2135('0x11fc')][_0x2d2135('0x15e2')]):_0x3590f6[_0x2d2135('0x17df')]()});});}function _0x177e4f(_0xe69190){const _0x221ffe=_0x20937b;_0x4866e3[_0x221ffe('0x25be')]=[];const _0x34eb41=_0x14ab63[_0x221ffe('0x112e')]()[_0x221ffe('0x14e4')](_0x221ffe('0x458'))[_0x221ffe('0x1c98')](_0x221ffe('0xbab'))[_0x221ffe('0x10bc')](_0x221ffe('0xc74'))['ok']('Delete')[_0x221ffe('0x1801')](_0x221ffe('0x1481'))[_0x221ffe('0x24d0')](_0xe69190);_0x14ab63[_0x221ffe('0x2fa')](_0x34eb41)[_0x221ffe('0x2788')](function(){const _0x38a333=_0x221ffe;_0x52a303['squareOdbc'][_0x38a333('0x17c4')]({'id':_0x4866e3[_0x38a333('0xd92')]['id']})[_0x38a333('0x1714')][_0x38a333('0x2788')](function(){const _0x43adf9=_0x38a333;_0x283545()[_0x43adf9('0x1a90')](_0x4866e3['odbcs'],{'id':_0x4866e3[_0x43adf9('0xd92')]['id']}),_0x5b333d['success']({'title':_0x43adf9('0x1b3d'),'msg':(_0x4866e3[_0x43adf9('0xd92')][_0x43adf9('0x1a8d')]||_0x43adf9('0xd92'))+_0x43adf9('0x14d4')}),_0x71f502(_0x4866e3[_0x43adf9('0xd92')]);})[_0x38a333('0x1cb5')](function(_0x1776b8){const _0x2c5325=_0x38a333;if(_0x1776b8[_0x2c5325('0x11fc')]&&_0x1776b8[_0x2c5325('0x11fc')][_0x2c5325('0x25be')]&&_0x1776b8[_0x2c5325('0x11fc')]['errors'][_0x2c5325('0x2566')]){_0x4866e3[_0x2c5325('0x25be')]=_0x1776b8[_0x2c5325('0x11fc')]['errors']||[{'message':_0x1776b8[_0x2c5325('0x17df')](),'type':_0x2c5325('0x2041')}];for(let _0x1fe674=0x0;_0x1fe674<_0x1776b8['data'][_0x2c5325('0x25be')]['length'];_0x1fe674++){_0x5b333d['error']({'title':_0x1776b8[_0x2c5325('0x11fc')][_0x2c5325('0x25be')][_0x1fe674][_0x2c5325('0x1d7')],'msg':_0x1776b8[_0x2c5325('0x11fc')][_0x2c5325('0x25be')][_0x1fe674][_0x2c5325('0x15e2')]});}}else _0x5b333d[_0x2c5325('0x5e8')]({'title':_0x1776b8[_0x2c5325('0x1b51')]?'API:'+_0x1776b8['status']+'\x20-\x20'+_0x1776b8[_0x2c5325('0x22ce')]:'api.squareOdbc.delete','msg':_0x1776b8[_0x2c5325('0x11fc')]?JSON[_0x2c5325('0x1be0')](_0x1776b8[_0x2c5325('0x11fc')]['message']):_0x1776b8[_0x2c5325('0x15e2')]||_0x1776b8[_0x2c5325('0x17df')]()});});},function(){});}function _0xf5b0f3(_0x1d0d32){return _0x1d0d32===null?undefined:new Date(_0x1d0d32);}function _0x71f502(_0x36f791){const _0x1c1505=_0x20937b;_0x14ab63[_0x1c1505('0x19d')](_0x36f791);}}const _0x233022=_0x53f56e,_0x4dd9c4=_0x18dd13['p']+_0x34e79e('0x1029');_0x101673[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window','$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x716'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x101673(_0x2a48b7,_0x3f6339,_0x564e64,_0x207e86,_0x373a63,_0x34ff80,_0x4f3ee1,_0x521af0,_0x3e60bd,_0x4f5ba1,_0x16425e,_0x34d42c,_0x3d4ef0,_0xd270c9,_0x25a0dc,_0x43c392,_0x479b3c){const _0x21a80e=_0x34e79e,_0x412a41=this;_0x412a41[_0x21a80e('0x130d')]=_0x43c392,_0x412a41[_0x21a80e('0x1af0')]=_0x479b3c,_0x412a41[_0x21a80e('0x9cb')]=_0x25a0dc[_0x21a80e('0x24cc')](),_0x412a41[_0x21a80e('0x716')]=_0x3e60bd||{'count':0x0,'rows':[]},_0x412a41[_0x21a80e('0x63c')]=_0x4f5ba1,_0x412a41['userProfileSection']=_0x16425e&&_0x16425e[_0x21a80e('0x338')]==0x1?_0x16425e[_0x21a80e('0x25df')][0x0]:null,_0x412a41[_0x21a80e('0xe28')]=_0x25a0dc[_0x21a80e('0x157e')](_0x412a41['userProfileSection']?_0x412a41[_0x21a80e('0xec9')][_0x21a80e('0xe28')]:null),_0x412a41[_0x21a80e('0x26a9')]='odbcs',_0x412a41[_0x21a80e('0x2278')]='',_0x412a41[_0x21a80e('0x25e2')]=null,_0x412a41[_0x21a80e('0x1bd3')]=[],_0x412a41[_0x21a80e('0x135a')]={'fields':_0x21a80e('0xab8'),'sort':_0x21a80e('0x1cee'),'limit':0xa,'page':0x1},_0x412a41[_0x21a80e('0x23af')]=_0x3cfa5a,_0x412a41[_0x21a80e('0x26b3')]=_0xce45cc,_0x412a41['deleteconfirm']=_0x4740c2,_0x412a41['success']=_0x3c7941,_0x412a41[_0x21a80e('0xba6')]=_0x4665e9,_0x412a41[_0x21a80e('0x27aa')]=_0x5ba25b,_0x412a41['deleteOdbc']=_0x1e2bed,_0x412a41[_0x21a80e('0xcd4')]=_0x2dd829,_0x412a41[_0x21a80e('0x21e5')]=_0x323c0b,_0x412a41[_0x21a80e('0x183a')]=_0x2652df,_0x412a41[_0x21a80e('0x11ab')]=_0x15da20;function _0x3cfa5a(_0xa1f5b,_0x1422d9){const _0x4297c6=_0x21a80e;_0x373a63['show']({'controller':_0x4297c6('0xa3d'),'controllerAs':'vm','templateUrl':_0x4dd9c4,'parent':angular[_0x4297c6('0x16b1')](_0x34ff80['body']),'targetEvent':_0x1422d9,'clickOutsideToClose':!![],'locals':{'odbc':_0xa1f5b,'odbcs':_0x412a41['odbcs'][_0x4297c6('0x25df')],'license':_0x412a41['license'],'setting':null,'crudPermissions':_0x412a41[_0x4297c6('0xe28')]}});}function _0xce45cc(_0x14e6a6){const _0x58f6c4=_0x21a80e;return _0x34d42c[_0x58f6c4('0x487')][_0x58f6c4('0x1565')]({'id':_0x14e6a6['id']})[_0x58f6c4('0x1714')][_0x58f6c4('0x2788')](function(){const _0x109026=_0x58f6c4;_0xd270c9[_0x109026('0x173b')]({'title':_0x109026('0x1f02'),'msg':_0x109026('0x53e')});})[_0x58f6c4('0x1cb5')](function(_0x28ec99){const _0x3215b3=_0x58f6c4;_0xd270c9['error']({'title':_0x3215b3('0x1f02'),'msg':_0x28ec99[_0x3215b3('0x11fc')]?JSON[_0x3215b3('0x1be0')](_0x28ec99[_0x3215b3('0x11fc')]):_0x28ec99[_0x3215b3('0x17df')]()});});}function _0x4740c2(_0x4325e0,_0x5c7635){const _0x54cfe3=_0x21a80e,_0x1b092d=_0x373a63[_0x54cfe3('0x112e')]()[_0x54cfe3('0x14e4')](_0x54cfe3('0x2114')+_0x283545()[_0x54cfe3('0x114')](_0x54cfe3('0xd92'))+'?')['htmlContent'](_0x54cfe3('0x1670')+(_0x4325e0[_0x54cfe3('0x1a8d')]||_0x54cfe3('0xd92'))+_0x54cfe3('0x229e')+'\x20will\x20be\x20deleted.')[_0x54cfe3('0x10bc')](_0x54cfe3('0x1d7c'))[_0x54cfe3('0x24d0')](_0x5c7635)['ok']('OK')[_0x54cfe3('0x1801')](_0x54cfe3('0x1d8d'));_0x373a63[_0x54cfe3('0x2fa')](_0x1b092d)[_0x54cfe3('0x2788')](function(){_0x1e2bed(_0x4325e0);},function(){const _0x544aae=_0x54cfe3;console['log'](_0x544aae('0x1d8d'));});}let _0x25ebba=!![],_0xb9bb2e=0x1;_0x2a48b7[_0x21a80e('0x1662')](_0x21a80e('0x1569'),function(_0x1b07ce,_0x516547){const _0x6ed921=_0x21a80e;_0x25ebba?_0x4f3ee1(function(){_0x25ebba=![];}):(!_0x516547&&(_0xb9bb2e=_0x412a41['query']['page']),_0x1b07ce!==_0x516547&&(_0x412a41[_0x6ed921('0x135a')][_0x6ed921('0x23f5')]=0x1),!_0x1b07ce&&(_0x412a41[_0x6ed921('0x135a')]['page']=_0xb9bb2e),_0x412a41[_0x6ed921('0xba6')]());});function _0x3c7941(_0x2e852a){const _0x381611=_0x21a80e;_0x412a41[_0x381611('0x716')]=_0x2e852a||{'count':0x0,'rows':[]};}function _0x4665e9(){const _0x1c9efe=_0x21a80e;_0x412a41[_0x1c9efe('0x135a')][_0x1c9efe('0x19e')]=(_0x412a41['query']['page']-0x1)*_0x412a41[_0x1c9efe('0x135a')][_0x1c9efe('0x68e')],_0x25a0dc[_0x1c9efe('0x1516')](_0x1c9efe('0xe23'))?_0x412a41['promise']=_0x34d42c['squareOdbc'][_0x1c9efe('0x1335')](_0x412a41[_0x1c9efe('0x135a')],_0x3c7941)[_0x1c9efe('0x1714')]:(_0x412a41[_0x1c9efe('0x135a')]['id']=_0x412a41[_0x1c9efe('0x63c')]['id'],_0x412a41[_0x1c9efe('0x135a')]['section']=_0x1c9efe('0x2536'),_0x412a41[_0x1c9efe('0x1808')]=_0x34d42c['userProfile'][_0x1c9efe('0xa1')](_0x412a41[_0x1c9efe('0x135a')],_0x3c7941)[_0x1c9efe('0x1714')]);}function _0x5ba25b(_0x4e20d4,_0x4dc9d0){const _0x41689b=_0x21a80e;_0x373a63[_0x41689b('0x2fa')]({'controller':_0x41689b('0xa3d'),'controllerAs':'vm','templateUrl':_0x4dd9c4,'parent':angular[_0x41689b('0x16b1')](_0x34ff80[_0x41689b('0x945')]),'targetEvent':_0x4e20d4,'clickOutsideToClose':!![],'locals':{'odbc':_0x4dc9d0,'odbcs':_0x412a41[_0x41689b('0x716')][_0x41689b('0x25df')],'license':_0x412a41[_0x41689b('0x130d')],'setting':_0x412a41[_0x41689b('0x1af0')],'crudPermissions':_0x412a41['crudPermissions']}});}function _0x1e2bed(_0x1ec099){const _0xbdb972=_0x21a80e;_0x34d42c[_0xbdb972('0x487')][_0xbdb972('0x17c4')]({'id':_0x1ec099['id']})[_0xbdb972('0x1714')][_0xbdb972('0x2788')](function(){const _0x3c0fe2=_0xbdb972;_0x283545()[_0x3c0fe2('0x1a90')](_0x412a41[_0x3c0fe2('0x716')][_0x3c0fe2('0x25df')],{'id':_0x1ec099['id']}),_0x412a41[_0x3c0fe2('0x716')][_0x3c0fe2('0x338')]-=0x1,!_0x412a41[_0x3c0fe2('0x716')][_0x3c0fe2('0x25df')][_0x3c0fe2('0x2566')]&&_0x412a41[_0x3c0fe2('0xba6')](),_0xd270c9[_0x3c0fe2('0x173b')]({'title':_0x283545()['startCase'](_0x3c0fe2('0x1c23'))+_0x3c0fe2('0x20db'),'msg':_0x1ec099[_0x3c0fe2('0x1a8d')]?_0x1ec099[_0x3c0fe2('0x1a8d')]+_0x3c0fe2('0x14d4'):''});})[_0xbdb972('0x1cb5')](function(_0x5dbd06){const _0xde875a=_0xbdb972;if(_0x5dbd06['data']&&_0x5dbd06[_0xde875a('0x11fc')][_0xde875a('0x25be')]&&_0x5dbd06[_0xde875a('0x11fc')]['errors'][_0xde875a('0x2566')]){_0x412a41[_0xde875a('0x25be')]=_0x5dbd06[_0xde875a('0x11fc')][_0xde875a('0x25be')]||[{'message':_0x5dbd06[_0xde875a('0x17df')](),'type':_0xde875a('0xf19')}];for(let _0x27292b=0x0;_0x27292b<_0x5dbd06['data'][_0xde875a('0x25be')][_0xde875a('0x2566')];_0x27292b++){_0xd270c9[_0xde875a('0x5e8')]({'title':_0x5dbd06[_0xde875a('0x11fc')][_0xde875a('0x25be')][_0x27292b]['type'],'msg':_0x5dbd06[_0xde875a('0x11fc')][_0xde875a('0x25be')][_0x27292b][_0xde875a('0x15e2')]});}}else _0xd270c9['error']({'title':_0x5dbd06[_0xde875a('0x1b51')]?_0xde875a('0x15d1')+_0x5dbd06['status']+_0xde875a('0x1b0b')+_0x5dbd06[_0xde875a('0x22ce')]:_0xde875a('0xf19'),'msg':_0x5dbd06[_0xde875a('0x11fc')]?JSON[_0xde875a('0x1be0')](_0x5dbd06[_0xde875a('0x11fc')][_0xde875a('0x15e2')]):_0x5dbd06[_0xde875a('0x15e2')]||_0x5dbd06[_0xde875a('0x17df')]()});});}function _0x2dd829(){const _0x237626=angular['copy'](_0x412a41['selectedODBC']);return _0x412a41['selectedODBC']=[],_0x237626;}function _0x323c0b(_0x20d8d1){const _0x5c9de7=_0x21a80e,_0xfe3606=_0x373a63[_0x5c9de7('0x112e')]()[_0x5c9de7('0x14e4')](_0x5c9de7('0x973'))['htmlContent'](_0x5c9de7('0x1670')+_0x412a41[_0x5c9de7('0x1bd3')][_0x5c9de7('0x2566')]+'\x20selected'+_0x5c9de7('0x27c7'))[_0x5c9de7('0x10bc')](_0x5c9de7('0x4d5'))['targetEvent'](_0x20d8d1)['ok']('OK')[_0x5c9de7('0x1801')]('CANCEL');_0x373a63[_0x5c9de7('0x2fa')](_0xfe3606)[_0x5c9de7('0x2788')](function(){const _0x55afae=_0x5c9de7;_0x412a41[_0x55afae('0x1bd3')][_0x55afae('0x1534')](function(_0x1cdd94){_0x1e2bed(_0x1cdd94);}),_0x412a41[_0x55afae('0x1bd3')]=[];});}function _0x2652df(){const _0x41344e=_0x21a80e;_0x412a41[_0x41344e('0x1bd3')]=[];}function _0x15da20(){const _0x25070a=_0x21a80e;_0x412a41[_0x25070a('0x1bd3')]=_0x412a41[_0x25070a('0x716')][_0x25070a('0x25df')];}}const _0xfad44a=_0x101673;_0x29e05c['$inject']=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x150f'),_0x34e79e('0x15c1'),_0x34e79e('0x519'),'Auth','license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x29e05c(_0x510d2f,_0x2ed028,_0x1a0fd6,_0xb86129,_0x1e16d7,_0x437309,_0x4c0679,_0x505019,_0x93e3a7,_0x28d623,_0x1f3fd7,_0x5f0660,_0x7b3714,_0x2e9b15){const _0x143b62=_0x34e79e,_0x40b237=this;_0x40b237[_0x143b62('0x9cb')]=_0x1f3fd7[_0x143b62('0x24cc')](),_0x40b237[_0x143b62('0x25be')]=[],_0x40b237['setting']=_0x7b3714,_0x40b237[_0x143b62('0x130d')]=_0x5f0660,_0x40b237[_0x143b62('0xe28')]=_0x2e9b15,_0x40b237[_0x143b62('0x1193')]={},_0x40b237[_0x143b62('0x18ad')]=_0x40b237[_0x143b62('0x1af0')]&&_0x40b237[_0x143b62('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40b237[_0x143b62('0x14e4')]='CALLYSQUARE.EDIT_SQUARERECORDING',_0x40b237[_0x143b62('0x15c1')]=angular['copy'](_0x93e3a7),_0x40b237[_0x143b62('0x150f')]=_0x505019,_0x40b237['newSquareRecording']=![];!_0x40b237['squareRecording']&&(_0x40b237[_0x143b62('0x15c1')]={},_0x40b237[_0x143b62('0x14e4')]=_0x143b62('0x1a11'),_0x40b237[_0x143b62('0x21e8')]=!![]);_0x40b237['addNewSquareRecording']=_0x1e2aec,_0x40b237['saveSquareRecording']=_0x25517e,_0x40b237[_0x143b62('0x880')]=_0x1e429c,_0x40b237[_0x143b62('0x2601')]=_0x5525a2,_0x40b237[_0x143b62('0xca7')]=_0x6fb906;function _0x1e2aec(){const _0xdbc741=_0x143b62;_0x40b237['errors']=[],_0x28d623[_0xdbc741('0x15c1')][_0xdbc741('0xbd0')](_0x40b237[_0xdbc741('0x15c1')])[_0xdbc741('0x1714')][_0xdbc741('0x2788')](function(_0x59af4e){const _0x30a716=_0xdbc741;_0x40b237['squareRecordings']['unshift'](_0x59af4e[_0x30a716('0x1cbf')]()),_0x4c0679['success']({'title':_0x30a716('0x132e'),'msg':_0x40b237[_0x30a716('0x15c1')][_0x30a716('0x1a8d')]?_0x40b237[_0x30a716('0x15c1')][_0x30a716('0x1a8d')]+_0x30a716('0x1e4a'):''}),_0x6fb906(_0x59af4e);})[_0xdbc741('0x1cb5')](function(_0x5a02e6){const _0x1b9c55=_0xdbc741;if(_0x5a02e6[_0x1b9c55('0x11fc')]&&_0x5a02e6[_0x1b9c55('0x11fc')][_0x1b9c55('0x25be')]&&_0x5a02e6['data'][_0x1b9c55('0x25be')][_0x1b9c55('0x2566')]){_0x40b237[_0x1b9c55('0x25be')]=_0x5a02e6[_0x1b9c55('0x11fc')][_0x1b9c55('0x25be')]||[{'message':_0x5a02e6[_0x1b9c55('0x17df')](),'type':_0x1b9c55('0x1b1c')}];for(let _0x264079=0x0;_0x264079<_0x5a02e6[_0x1b9c55('0x11fc')][_0x1b9c55('0x25be')]['length'];_0x264079+=0x1){_0x4c0679[_0x1b9c55('0x5e8')]({'title':_0x5a02e6['data'][_0x1b9c55('0x25be')][_0x264079][_0x1b9c55('0x1d7')],'msg':_0x5a02e6[_0x1b9c55('0x11fc')]['errors'][_0x264079][_0x1b9c55('0x15e2')]});}}else _0x4c0679[_0x1b9c55('0x5e8')]({'title':_0x5a02e6[_0x1b9c55('0x1b51')]?_0x1b9c55('0x15d1')+_0x5a02e6[_0x1b9c55('0x1b51')]+_0x1b9c55('0x1b0b')+_0x5a02e6[_0x1b9c55('0x22ce')]:_0x1b9c55('0x1b1c'),'msg':_0x5a02e6[_0x1b9c55('0x11fc')]?JSON['stringify'](_0x5a02e6['data']['message']):_0x5a02e6[_0x1b9c55('0x17df')]()});});}function _0x25517e(){const _0x1141a3=_0x143b62;_0x40b237['errors']=[],_0x28d623[_0x1141a3('0x15c1')][_0x1141a3('0x2740')]({'id':_0x40b237[_0x1141a3('0x15c1')]['id']},_0x40b237[_0x1141a3('0x15c1')])[_0x1141a3('0x1714')][_0x1141a3('0x2788')](function(_0x3d0d5b){const _0x170fa3=_0x1141a3,_0x41489f=_0x283545()['find'](_0x40b237[_0x170fa3('0x150f')],{'id':_0x3d0d5b['id']});_0x41489f&&_0x283545()[_0x170fa3('0x2503')](_0x41489f,_0x283545()[_0x170fa3('0x41b')](_0x3d0d5b['toJSON'](),_0x283545()['keys'](_0x41489f))),_0x4c0679[_0x170fa3('0x173b')]({'title':_0x170fa3('0x24d9'),'msg':_0x40b237[_0x170fa3('0x15c1')][_0x170fa3('0x1a8d')]?_0x40b237[_0x170fa3('0x15c1')][_0x170fa3('0x1a8d')]+_0x170fa3('0x24cf'):''}),_0x6fb906(_0x3d0d5b);})[_0x1141a3('0x1cb5')](function(_0x4cebf7){const _0x46c6f0=_0x1141a3;if(_0x4cebf7[_0x46c6f0('0x11fc')]&&_0x4cebf7[_0x46c6f0('0x11fc')][_0x46c6f0('0x25be')]&&_0x4cebf7[_0x46c6f0('0x11fc')]['errors']['length']){_0x40b237[_0x46c6f0('0x25be')]=_0x4cebf7[_0x46c6f0('0x11fc')][_0x46c6f0('0x25be')]||[{'message':_0x4cebf7[_0x46c6f0('0x17df')](),'type':'api.squareRecording.update'}];for(let _0x594c7e=0x0;_0x594c7e<_0x4cebf7[_0x46c6f0('0x11fc')][_0x46c6f0('0x25be')]['length'];_0x594c7e++){_0x4c0679[_0x46c6f0('0x5e8')]({'title':_0x4cebf7['data']['errors'][_0x594c7e]['type'],'msg':_0x4cebf7[_0x46c6f0('0x11fc')][_0x46c6f0('0x25be')][_0x594c7e][_0x46c6f0('0x15e2')]});}}else _0x4c0679[_0x46c6f0('0x5e8')]({'title':_0x4cebf7[_0x46c6f0('0x1b51')]?_0x46c6f0('0x15d1')+_0x4cebf7[_0x46c6f0('0x1b51')]+_0x46c6f0('0x1b0b')+_0x4cebf7[_0x46c6f0('0x22ce')]:'api.squareRecording.update','msg':_0x4cebf7[_0x46c6f0('0x11fc')]?JSON[_0x46c6f0('0x1be0')](_0x4cebf7[_0x46c6f0('0x11fc')][_0x46c6f0('0x15e2')]):_0x4cebf7['toString']()});});}function _0x1e429c(_0x42e44f){const _0x5bf608=_0x143b62;_0x40b237[_0x5bf608('0x25be')]=[];const _0x19582f=_0xb86129[_0x5bf608('0x112e')]()['title']('Are\x20you\x20sure?')['content'](_0x5bf608('0x25f8'))['ariaLabel'](_0x5bf608('0x2675'))['ok'](_0x5bf608('0x2786'))[_0x5bf608('0x1801')]('Cancel')[_0x5bf608('0x24d0')](_0x42e44f);_0xb86129['show'](_0x19582f)[_0x5bf608('0x2788')](function(){const _0x5c0daa=_0x5bf608;_0x28d623[_0x5c0daa('0x15c1')]['delete']({'id':_0x40b237[_0x5c0daa('0x15c1')]['id']})['$promise'][_0x5c0daa('0x2788')](function(){const _0x34cc8c=_0x5c0daa;_0x283545()['remove'](_0x40b237[_0x34cc8c('0x150f')],{'id':_0x40b237[_0x34cc8c('0x15c1')]['id']}),_0x4c0679[_0x34cc8c('0x173b')]({'title':_0x34cc8c('0x609'),'msg':(_0x40b237['squareRecording'][_0x34cc8c('0x1a8d')]||_0x34cc8c('0x15c1'))+'\x20has\x20been\x20deleted!'}),_0x6fb906(_0x40b237[_0x34cc8c('0x15c1')]);})[_0x5c0daa('0x1cb5')](function(_0x4c4b6d){const _0x43ad46=_0x5c0daa;if(_0x4c4b6d[_0x43ad46('0x11fc')]&&_0x4c4b6d[_0x43ad46('0x11fc')][_0x43ad46('0x25be')]&&_0x4c4b6d['data']['errors'][_0x43ad46('0x2566')]){_0x40b237[_0x43ad46('0x25be')]=_0x4c4b6d[_0x43ad46('0x11fc')][_0x43ad46('0x25be')]||[{'message':_0x4c4b6d[_0x43ad46('0x17df')](),'type':_0x43ad46('0x2639')}];for(let _0x4df31b=0x0;_0x4df31b<_0x4c4b6d[_0x43ad46('0x11fc')][_0x43ad46('0x25be')]['length'];_0x4df31b++){_0x4c0679['error']({'title':_0x4c4b6d[_0x43ad46('0x11fc')]['errors'][_0x4df31b]['type'],'msg':_0x4c4b6d[_0x43ad46('0x11fc')][_0x43ad46('0x25be')][_0x4df31b]['message']});}}else _0x4c0679['error']({'title':_0x4c4b6d[_0x43ad46('0x1b51')]?_0x43ad46('0x15d1')+_0x4c4b6d['status']+_0x43ad46('0x1b0b')+_0x4c4b6d[_0x43ad46('0x22ce')]:'api.squareRecording.delete','msg':_0x4c4b6d[_0x43ad46('0x11fc')]?JSON[_0x43ad46('0x1be0')](_0x4c4b6d[_0x43ad46('0x11fc')][_0x43ad46('0x15e2')]):_0x4c4b6d[_0x43ad46('0x15e2')]||_0x4c4b6d['toString']()});});},function(){});}function _0x5525a2(_0x3c7a9f){return _0x3c7a9f===null?undefined:new Date(_0x3c7a9f);}function _0x6fb906(_0x45045e){const _0x448943=_0x143b62;_0xb86129[_0x448943('0x19d')](_0x45045e);}}const _0xa7c9e8=_0x29e05c,_0x3ff145=_0x18dd13['p']+_0x34e79e('0x1ba2');_0x59e934[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog','$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'squareRecordings',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x59e934(_0x1d1305,_0x5de967,_0x2f7ce3,_0x3500f4,_0x29018e,_0x11b3df,_0x1b43e7,_0x29b03b,_0x572f73,_0x4992c1,_0x199dea,_0x207245,_0x25fab1,_0x620339,_0x43bc2d,_0x45931a,_0x33ce64){const _0x351109=_0x34e79e,_0x236672=this;_0x236672[_0x351109('0x130d')]=_0x45931a,_0x236672[_0x351109('0x1af0')]=_0x33ce64,_0x236672[_0x351109('0x9cb')]=_0x43bc2d[_0x351109('0x24cc')](),_0x236672[_0x351109('0x150f')]=_0x572f73||{'count':0x0,'rows':[]},_0x236672[_0x351109('0x63c')]=_0x4992c1,_0x236672['userProfileSection']=_0x199dea&&_0x199dea['count']==0x1?_0x199dea['rows'][0x0]:null,_0x236672[_0x351109('0xe28')]=_0x43bc2d[_0x351109('0x157e')](_0x236672[_0x351109('0xec9')]?_0x236672['userProfileSection']['crudPermissions']:null),_0x236672[_0x351109('0x26a9')]=_0x351109('0x150f'),_0x236672[_0x351109('0x2278')]='',_0x236672[_0x351109('0x25e2')]=null,_0x236672[_0x351109('0x1c44')]=[],_0x236672[_0x351109('0x135a')]={'fields':_0x351109('0xcfc'),'sort':_0x351109('0x1cee'),'limit':0xa,'page':0x1},_0x236672[_0x351109('0x17f5')]=_0x561810,_0x236672[_0x351109('0x1e5')]=_0x3b994c,_0x236672['success']=_0x95ccd,_0x236672[_0x351109('0xdab')]=_0x133bbe,_0x236672[_0x351109('0x1849')]=_0x10c8be,_0x236672['deleteSquareRecording']=_0x38981b,_0x236672[_0x351109('0x1433')]=_0x2423a5,_0x236672['deleteSelectedSquareRecordings']=_0x3d57c2,_0x236672['deselectSquareRecordings']=_0xbfa9c5,_0x236672[_0x351109('0x2637')]=_0x4cc0b0;function _0x561810(_0x538338){const _0x1b586b=_0x351109;return _0x207245['squareRecording'][_0x1b586b('0x1486')]({'id':_0x538338['id']})[_0x1b586b('0x1714')][_0x1b586b('0x2788')](function(_0x540b65){const _0x524c33=_0x1b586b,_0x54bd11=[_0x540b65['buffer']];let _0x340ccc=_0x524c33('0x1486');const _0x4a4b91=new Blob(_0x54bd11,{'type':_0x540b65[_0x524c33('0x1d7')]});_0x340ccc=_0x538338['uniqueid']+_0x538338[_0x524c33('0x22b4')];const _0x17fed7=window['document'][_0x524c33('0x1ae6')]('a');_0x17fed7[_0x524c33('0x1c6b')](_0x524c33('0x186a'),URL[_0x524c33('0x1b0d')](_0x4a4b91)),_0x17fed7[_0x524c33('0x1c6b')]('download',_0x340ccc),document[_0x524c33('0x945')][_0x524c33('0xcbf')](_0x17fed7),_0x17fed7[_0x524c33('0x132a')]();})[_0x1b586b('0x1cb5')](function(_0x5881a9){const _0x3f3631=_0x1b586b;if(_0x5881a9[_0x3f3631('0x11fc')]&&_0x5881a9[_0x3f3631('0x11fc')][_0x3f3631('0x25be')]&&_0x5881a9[_0x3f3631('0x11fc')][_0x3f3631('0x25be')][_0x3f3631('0x2566')])for(let _0x92e97f=0x0;_0x92e97f<_0x5881a9['data'][_0x3f3631('0x25be')][_0x3f3631('0x2566')];_0x92e97f++){_0x620339[_0x3f3631('0x5e8')]({'title':_0x5881a9[_0x3f3631('0x11fc')][_0x3f3631('0x25be')][_0x92e97f][_0x3f3631('0x1d7')],'msg':_0x5881a9[_0x3f3631('0x11fc')][_0x3f3631('0x25be')][_0x92e97f][_0x3f3631('0x15e2')]});}else _0x620339['error']({'title':_0x5881a9[_0x3f3631('0x1b51')]?'API:'+_0x5881a9[_0x3f3631('0x1b51')]+_0x3f3631('0x1b0b')+_0x5881a9[_0x3f3631('0x22ce')]:'api.squareRecording.save','msg':_0x5881a9[_0x3f3631('0x11fc')]?JSON[_0x3f3631('0x1be0')](_0x5881a9[_0x3f3631('0x11fc')][_0x3f3631('0x15e2')]):_0x5881a9[_0x3f3631('0x17df')]()});});}function _0x3b994c(_0x52e7f0,_0x4b3340){const _0x552b3b=_0x351109,_0x5e8f1c=_0x29018e['confirm']()[_0x552b3b('0x14e4')](_0x552b3b('0x2114')+_0x283545()[_0x552b3b('0x114')](_0x552b3b('0x15c1'))+'?')[_0x552b3b('0x93e')](_0x552b3b('0x1670')+(_0x52e7f0[_0x552b3b('0x1a8d')]||_0x552b3b('0x15c1'))+_0x552b3b('0x229e')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20squareRecording')[_0x552b3b('0x24d0')](_0x4b3340)['ok']('OK')[_0x552b3b('0x1801')](_0x552b3b('0x1d8d'));_0x29018e[_0x552b3b('0x2fa')](_0x5e8f1c)[_0x552b3b('0x2788')](function(){_0x38981b(_0x52e7f0);},function(){console['log']('CANCEL');});}let _0x5ed26a=!![],_0x325438=0x1;_0x1d1305[_0x351109('0x1662')](_0x351109('0x1569'),function(_0x30739d,_0x279f53){const _0x378fbd=_0x351109;_0x5ed26a?_0x1b43e7(function(){_0x5ed26a=![];}):(!_0x279f53&&(_0x325438=_0x236672[_0x378fbd('0x135a')]['page']),_0x30739d!==_0x279f53&&(_0x236672['query'][_0x378fbd('0x23f5')]=0x1),!_0x30739d&&(_0x236672[_0x378fbd('0x135a')][_0x378fbd('0x23f5')]=_0x325438),_0x236672[_0x378fbd('0xdab')]());});function _0x95ccd(_0xe401b6){const _0x1d023d=_0x351109;_0x236672[_0x1d023d('0x150f')]=_0xe401b6||{'count':0x0,'rows':[]};}function _0x133bbe(){const _0xaf9324=_0x351109;_0x236672['query']['offset']=(_0x236672[_0xaf9324('0x135a')][_0xaf9324('0x23f5')]-0x1)*_0x236672[_0xaf9324('0x135a')][_0xaf9324('0x68e')],_0x43bc2d['hasRole'](_0xaf9324('0xe23'))?_0x236672[_0xaf9324('0x1808')]=_0x207245[_0xaf9324('0x15c1')]['get'](_0x236672[_0xaf9324('0x135a')],_0x95ccd)[_0xaf9324('0x1714')]:(_0x236672[_0xaf9324('0x135a')]['id']=_0x236672[_0xaf9324('0x63c')]['id'],_0x236672[_0xaf9324('0x135a')]['section']='SquareRecordings',_0x236672[_0xaf9324('0x1808')]=_0x207245[_0xaf9324('0x63c')][_0xaf9324('0xa1')](_0x236672[_0xaf9324('0x135a')],_0x95ccd)[_0xaf9324('0x1714')]);}function _0x10c8be(_0xc2e4c4,_0x395712){const _0x4d9227=_0x351109;_0x29018e[_0x4d9227('0x2fa')]({'controller':_0x4d9227('0x283b'),'controllerAs':'vm','templateUrl':_0x3ff145,'parent':angular['element'](_0x11b3df[_0x4d9227('0x945')]),'targetEvent':_0xc2e4c4,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x395712,'squareRecordings':_0x236672[_0x4d9227('0x150f')][_0x4d9227('0x25df')],'license':_0x236672[_0x4d9227('0x130d')],'setting':_0x236672[_0x4d9227('0x1af0')],'crudPermissions':_0x236672['crudPermissions']}});}function _0x38981b(_0x538a29){const _0x21b47b=_0x351109;_0x207245[_0x21b47b('0x15c1')][_0x21b47b('0x17c4')]({'id':_0x538a29['id']})[_0x21b47b('0x1714')][_0x21b47b('0x2788')](function(){const _0x25898d=_0x21b47b;_0x283545()[_0x25898d('0x1a90')](_0x236672[_0x25898d('0x150f')]['rows'],{'id':_0x538a29['id']}),_0x236672[_0x25898d('0x150f')][_0x25898d('0x338')]-=0x1,!_0x236672[_0x25898d('0x150f')]['rows']['length']&&_0x236672['getSquareRecordings'](),_0x620339['success']({'title':_0x283545()[_0x25898d('0x114')]('SquareRecording')+_0x25898d('0x20db'),'msg':_0x538a29[_0x25898d('0x1a8d')]?_0x538a29[_0x25898d('0x1a8d')]+_0x25898d('0x14d4'):''});})['catch'](function(_0x52c465){const _0x551c12=_0x21b47b;if(_0x52c465['data']&&_0x52c465['data']['errors']&&_0x52c465[_0x551c12('0x11fc')][_0x551c12('0x25be')]['length']){_0x236672[_0x551c12('0x25be')]=_0x52c465[_0x551c12('0x11fc')][_0x551c12('0x25be')]||[{'message':_0x52c465['toString'](),'type':_0x551c12('0x3b0')}];for(let _0x5a608d=0x0;_0x5a608d<_0x52c465[_0x551c12('0x11fc')][_0x551c12('0x25be')][_0x551c12('0x2566')];_0x5a608d++){_0x620339['error']({'title':_0x52c465[_0x551c12('0x11fc')][_0x551c12('0x25be')][_0x5a608d][_0x551c12('0x1d7')],'msg':_0x52c465[_0x551c12('0x11fc')]['errors'][_0x5a608d][_0x551c12('0x15e2')]});}}else _0x620339[_0x551c12('0x5e8')]({'title':_0x52c465[_0x551c12('0x1b51')]?_0x551c12('0x15d1')+_0x52c465[_0x551c12('0x1b51')]+_0x551c12('0x1b0b')+_0x52c465[_0x551c12('0x22ce')]:_0x551c12('0x3b0'),'msg':_0x52c465[_0x551c12('0x11fc')]?JSON[_0x551c12('0x1be0')](_0x52c465[_0x551c12('0x11fc')][_0x551c12('0x15e2')]):_0x52c465[_0x551c12('0x15e2')]||_0x52c465[_0x551c12('0x17df')]()});});}function _0x2423a5(){const _0x2a9bee=_0x351109,_0x1cf5da=angular[_0x2a9bee('0x2669')](_0x236672['selectedSquareRecordings']);return _0x236672[_0x2a9bee('0x1c44')]=[],_0x1cf5da;}function _0x3d57c2(_0x312b81){const _0x5b3e50=_0x351109,_0x95dbd=_0x29018e[_0x5b3e50('0x112e')]()[_0x5b3e50('0x14e4')](_0x5b3e50('0x190c'))[_0x5b3e50('0x93e')](''+_0x236672[_0x5b3e50('0x1c44')]['length']+_0x5b3e50('0xbd')+_0x5b3e50('0x27c7'))[_0x5b3e50('0x10bc')]('delete\x20SquareRecordings')['targetEvent'](_0x312b81)['ok']('OK')['cancel']('CANCEL');_0x29018e[_0x5b3e50('0x2fa')](_0x95dbd)[_0x5b3e50('0x2788')](function(){const _0x373ac3=_0x5b3e50;_0x236672[_0x373ac3('0x1c44')][_0x373ac3('0x1534')](function(_0x54f697){_0x38981b(_0x54f697);}),_0x236672['selectedSquareRecordings']=[];});}function _0xbfa9c5(){const _0x2bbdbd=_0x351109;_0x236672[_0x2bbdbd('0x1c44')]=[];}function _0x4cc0b0(){const _0x4b5b63=_0x351109;_0x236672[_0x4b5b63('0x1c44')]=_0x236672[_0x4b5b63('0x150f')][_0x4b5b63('0x25df')];}}const _0x2daf51=_0x59e934;_0x4278eb[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x4278eb(_0x56581e,_0x153f22){const _0x5aea5d=_0x34e79e;_0x56581e[_0x5aea5d('0x249b')](_0x5aea5d('0x43f'),{'abstract':!![],'url':_0x5aea5d('0x18e9')})[_0x5aea5d('0x249b')](_0x5aea5d('0x1c89'),{'url':_0x5aea5d('0xe5e'),'views':{'content@app':{'templateUrl':_0x2745d8,'controller':_0x5aea5d('0x2089')}},'resolve':{'odbcs':[_0x5aea5d('0x1318'),'Auth',function(_0x439e4c,_0x6ba14c){const _0x13b928=_0x5aea5d;return _0x6ba14c['hasRole'](_0x13b928('0xe23'))?_0x439e4c['resolve'](_0x13b928('0x240e'),{'fields':'createdAt,updatedAt,id,name,dsn,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x439e4c[_0x13b928('0x2322')](_0x13b928('0x27c5'),{'id':_0x6ba14c[_0x13b928('0x24cc')]()[_0x13b928('0x237f')],'section':_0x13b928('0x2536'),'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x13b928('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5aea5d('0x1318'),_0x5aea5d('0x1b04'),function(_0x1b8537,_0x3794ca){const _0x18028f=_0x5aea5d;return _0x3794ca[_0x18028f('0x1516')](_0x18028f('0xe23'))?null:_0x1b8537[_0x18028f('0x2322')](_0x18028f('0x231d'),{'fields':'id,name,crudPermissions','id':_0x3794ca['getCurrentUser']()[_0x18028f('0x237f')]});}],'userProfileSection':[_0x5aea5d('0x1318'),_0x5aea5d('0x1b04'),function(_0x31f228,_0x942e1d){const _0x3c89ac=_0x5aea5d;return _0x942e1d[_0x3c89ac('0x1516')]('admin')?null:_0x31f228[_0x3c89ac('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x942e1d[_0x3c89ac('0x24cc')]()[_0x3c89ac('0x237f')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':'callysquare'})[_0x5aea5d('0x249b')](_0x5aea5d('0x10b5'),{'url':_0x5aea5d('0x1a17'),'views':{'content@app':{'templateUrl':_0x183a69,'controller':_0x5aea5d('0x952')}},'resolve':{'squareRecordings':[_0x5aea5d('0x1318'),_0x5aea5d('0x1b04'),function(_0x1441cd,_0xee7a05){const _0x14c30e=_0x5aea5d;return _0xee7a05[_0x14c30e('0x1516')](_0x14c30e('0xe23'))?_0x1441cd[_0x14c30e('0x2322')]('squareRecording@get',{'fields':_0x14c30e('0xcfc'),'sort':_0x14c30e('0x1cee'),'limit':0xa,'offset':0x0}):_0x1441cd['resolve'](_0x14c30e('0x27c5'),{'id':_0xee7a05[_0x14c30e('0x24cc')]()['userProfileId'],'section':'SquareRecordings','fields':_0x14c30e('0xcfc'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5aea5d('0x1b04'),function(_0x4d4818,_0x5ce9af){const _0x264b4d=_0x5aea5d;return _0x5ce9af[_0x264b4d('0x1516')](_0x264b4d('0xe23'))?null:_0x4d4818[_0x264b4d('0x2322')]('userProfile@get',{'fields':_0x264b4d('0x3f0'),'id':_0x5ce9af[_0x264b4d('0x24cc')]()[_0x264b4d('0x237f')]});}],'userProfileSection':[_0x5aea5d('0x1318'),_0x5aea5d('0x1b04'),function(_0x55c5f2,_0x1bd300){const _0x10f540=_0x5aea5d;return _0x1bd300[_0x10f540('0x1516')](_0x10f540('0xe23'))?null:_0x55c5f2['resolve'](_0x10f540('0x22ca'),{'fields':_0x10f540('0xe2c'),'userProfileId':_0x1bd300[_0x10f540('0x24cc')]()[_0x10f540('0x237f')],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':'callysquare'}),_0x153f22[_0x5aea5d('0x15ae')](_0x5aea5d('0x179e'));}angular[_0x34e79e('0x16e2')]('app.callysquare',[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),'md.data.table',_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),'ngAnimate',_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),'angular.filter',_0x34e79e('0x268b')])[_0x34e79e('0x1a22')](_0x4278eb)[_0x34e79e('0xb44')](_0x34e79e('0xa3d'),_0x233022)['controller']('OdbcsController',_0xfad44a)[_0x34e79e('0xb44')](_0x34e79e('0x283b'),_0xa7c9e8)[_0x34e79e('0xb44')](_0x34e79e('0xa20'),_0x2daf51);const _0x11da31=_0x18dd13['p']+_0x34e79e('0x690'),_0x3778f1=_0x18dd13['p']+_0x34e79e('0x2686'),_0x30746a=_0x18dd13['p']+_0x34e79e('0x10b3'),_0x179d15=_0x18dd13['p']+_0x34e79e('0x27b1');var _0x49b416=_0x18dd13(0xd5a);_0x29154b[_0x34e79e('0x2d9')]=[_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x148b'),_0x34e79e('0x519'),_0x34e79e('0x2204'),_0x34e79e('0x23d6')];function _0x29154b(_0x53d644,_0x2ba2d4,_0xf2b3c7,_0x179b11,_0x56053a,_0xb3d9a4,_0x41f06d){const _0x5553b2=_0x34e79e,_0x4549b8=this;_0x4549b8[_0x5553b2('0x25be')]=[],_0x4549b8[_0x5553b2('0x148b')]=angular[_0x5553b2('0x2669')](_0x179b11),_0x4549b8[_0x5553b2('0x148b')][_0x5553b2('0x1a8d')]+=_0x5553b2('0x1cd7'),_0x4549b8[_0x5553b2('0x23d6')]=_0x41f06d,_0x4549b8['treeCustomConfig']={'core':{'multiple':![],'animation':!![],'error':function(_0x5171a5){const _0x1380a5=_0x5553b2;console[_0x1380a5('0x5e8')](_0x1380a5('0x1ae8')+angular['toJson'](_0x5171a5));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x5553b2('0x142a')]},_0x4549b8[_0x5553b2('0x1b83')]={'select_node':_0x1f90f8},_0x4549b8[_0x5553b2('0x14')]=_0xcf1d63,_0x4549b8['closeDialog']=_0x225977;function _0xcf1d63(){const _0x155cd9=_0x5553b2;_0x4549b8[_0x155cd9('0x25be')]=[];let _0x5f15b9;_0x56053a['analyticCustomReport'][_0x155cd9('0xbd0')]({'name':_0x4549b8[_0x155cd9('0x148b')][_0x155cd9('0x1a8d')],'description':_0x4549b8[_0x155cd9('0x148b')][_0x155cd9('0x27b9')],'table':_0x4549b8[_0x155cd9('0x148b')]['table'],'conditions':_0x4549b8[_0x155cd9('0x148b')][_0x155cd9('0x2047')],'joins':_0x4549b8['report'][_0x155cd9('0x235c')],'parent':_0x4549b8[_0x155cd9('0x1a8f')]['id']})['$promise'][_0x155cd9('0x2788')](function(_0x1d8e90){const _0x509835=_0x155cd9;_0x5f15b9=_0x1d8e90,_0xf2b3c7[_0x509835('0x173b')]({'title':_0x509835('0x2d3'),'msg':_0x4549b8[_0x509835('0x148b')]['name']?_0x4549b8[_0x509835('0x148b')]['name']+_0x509835('0xe78'):''});const _0x453e19={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x453e19[_0xb3d9a4===_0x509835('0x193d')?'CustomReportId':'DefaultReportId']=_0x4549b8[_0x509835('0x148b')]['id'],_0x56053a[_0x509835('0x23ec')][_0x509835('0x1335')](_0x453e19)[_0x509835('0x1714')];})['then'](function(_0x36043a){const _0x308189=_0x155cd9,_0x297085=_0x283545()[_0x308189('0x155d')](_0x36043a['rows'],function(_0x2210e8){const _0xf6bd3c=_0x308189;return _0x283545()[_0xf6bd3c('0x192a')]({},_0x2210e8,{'CustomReportId':_0x5f15b9['id']});});return _0x56053a[_0x308189('0x23ec')]['bulkCreate'](_0x297085)[_0x308189('0x1714')];})[_0x155cd9('0x2788')](function(){const _0x3b9a7b=_0x155cd9;_0xf2b3c7['success']({'title':'Fields\x20copied!','msg':_0x3b9a7b('0x19f7')}),_0x225977();})[_0x155cd9('0x1cb5')](function(_0x11f758){const _0x14c4b0=_0x155cd9;_0xf2b3c7[_0x14c4b0('0x5e8')]({'title':_0x11f758[_0x14c4b0('0x1b51')]?_0x14c4b0('0x15d1')+_0x11f758[_0x14c4b0('0x1b51')]+'\x20-\x20'+_0x11f758[_0x14c4b0('0x22ce')]:_0x14c4b0('0x1305'),'msg':_0x11f758[_0x14c4b0('0x11fc')]?JSON[_0x14c4b0('0x1be0')](_0x11f758[_0x14c4b0('0x11fc')][_0x14c4b0('0x15e2')]):_0x11f758[_0x14c4b0('0x17df')]()});});}function _0x1f90f8(_0x2c49d6,_0x2738e7){const _0x280966=_0x5553b2;_0x4549b8['currentNode']=_0x2738e7[_0x280966('0x1059')];}function _0x225977(){const _0x26658d=_0x5553b2;_0x2ba2d4[_0x26658d('0x19d')]();}}const _0x10fffe=_0x29154b;_0x4c4ae9[_0x34e79e('0x2d9')]=[_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x1d35'),'report',_0x34e79e('0x519'),'apiName',_0x34e79e('0x1a8f'),_0x34e79e('0x1104'),_0x34e79e('0xe28')];function _0x4c4ae9(_0x42bc41,_0x5f9131,_0x5ea9d9,_0x1fd7a1,_0x17c79b,_0x5873e8,_0x34d224,_0x52844c,_0x3f4df1,_0x53a267){const _0x4783d3=_0x34e79e,_0x424fb2=this;_0x424fb2['errors']=[],_0x424fb2[_0x4783d3('0x1596')]=[],_0x424fb2[_0x4783d3('0x14e4')]=_0x4783d3('0x2404'),_0x424fb2[_0x4783d3('0xe28')]=_0x53a267,_0x424fb2[_0x4783d3('0x148b')]=angular[_0x4783d3('0x2669')](_0x17c79b),_0x424fb2[_0x4783d3('0x1d35')]=_0x1fd7a1,_0x424fb2[_0x4783d3('0x2203')]=![],_0x424fb2['tables']=_0x3f4df1[_0x4783d3('0x92b')](),_0x424fb2['joinTypes']=[{'key':_0x4783d3('0x185f'),'value':'Join'},{'key':'left_join','value':'Left\x20Join'},{'key':_0x4783d3('0x705'),'value':_0x4783d3('0x27af')},{'key':_0x4783d3('0x1143'),'value':_0x4783d3('0x7e2')}];!_0x424fb2[_0x4783d3('0x148b')]&&(_0x424fb2[_0x4783d3('0x148b')]={'name':'','table':'report_agent','description':'','parent':_0x52844c['id']},_0x424fb2[_0x4783d3('0x14e4')]=_0x4783d3('0x171c'),_0x424fb2['newReport']=!![]);_0x424fb2['addNewReport']=_0x1bc763,_0x424fb2[_0x4783d3('0x910')]=_0xfc66d5,_0x424fb2[_0x4783d3('0x27d8')]=_0x2ef3d5,_0x424fb2[_0x4783d3('0xca7')]=_0xa2912a,_0x424fb2[_0x4783d3('0x1f98')]=_0x519597,_0x424fb2[_0x4783d3('0x24b0')]=_0x357e0c,_0x424fb2[_0x4783d3('0x24')]=_0x5654f2;function _0x357e0c(_0x5dcb54){const _0x11c561=_0x4783d3;_0x424fb2[_0x11c561('0x1596')]['splice'](_0x5dcb54,0x1);}function _0x5654f2(_0x79b4ca,_0x2d7fbb,_0x3139d4){const _0x2eb988=_0x4783d3,_0x3cf8a7=_0x283545()[_0x2eb988('0x20e8')](_0x424fb2[_0x2eb988('0x4ce')],{'name':_0x3139d4});_0x3cf8a7&&_0x3cf8a7[_0x2eb988('0x519')]&&_0x5873e8[_0x3cf8a7['api']][_0x2eb988('0x15f8')]()[_0x2eb988('0x1714')][_0x2eb988('0x2788')](function(_0x3c5f45){const _0x25fc68=_0x2eb988;_0x79b4ca[_0x2d7fbb]=_0x283545()[_0x25fc68('0xa9f')](_0x283545()[_0x25fc68('0x2163')](_0x3c5f45),[_0x25fc68('0x1714'),_0x25fc68('0x187a')]);})['catch'](function(_0x249cb3){console['error'](_0x249cb3);});}function _0x519597(_0x38a8bb){const _0x1035af=_0x4783d3;_0x38a8bb&&(delete _0x424fb2[_0x1035af('0x1c92')],_0x424fb2[_0x1035af('0x1596')][_0x1035af('0x13e3')](_0x38a8bb));}function _0x1bc763(){const _0x5f187a=_0x4783d3;_0x424fb2['errors']=[],_0x424fb2[_0x5f187a('0x148b')]['joins']=_0x283545()[_0x5f187a('0x155d')](_0x424fb2[_0x5f187a('0x1596')]||[],function(_0x467dd5){const _0x4b4499=_0x5f187a;return{'parentKey':_0x467dd5[_0x4b4499('0xc2c')],'foreignTable':_0x467dd5[_0x4b4499('0x1a8d')],'foreignKey':_0x467dd5[_0x4b4499('0x197b')],'type':_0x467dd5[_0x4b4499('0x1d7')][_0x4b4499('0xc2e')]()};}),_0x424fb2[_0x5f187a('0x148b')][_0x5f187a('0x235c')]=JSON[_0x5f187a('0x1be0')](_0x424fb2['report'][_0x5f187a('0x235c')]),_0x5873e8[_0x34d224][_0x5f187a('0xbd0')](_0x424fb2[_0x5f187a('0x148b')])[_0x5f187a('0x1714')]['then'](function(_0x412cc0){const _0x4f09b5=_0x5f187a;_0x424fb2[_0x4f09b5('0x1d35')][_0x4f09b5('0xc51')](_0x412cc0),_0x5ea9d9[_0x4f09b5('0x173b')]({'title':_0x4f09b5('0xd41'),'msg':_0x424fb2[_0x4f09b5('0x148b')][_0x4f09b5('0x1a8d')]?_0x424fb2[_0x4f09b5('0x148b')]['name']+'\x20has\x20been\x20created!':''}),_0xa2912a();})[_0x5f187a('0x1cb5')](function(_0x4ae8d6){const _0x45c972=_0x5f187a;if(_0x4ae8d6[_0x45c972('0x11fc')]&&_0x4ae8d6[_0x45c972('0x11fc')][_0x45c972('0x25be')]&&_0x4ae8d6[_0x45c972('0x11fc')]['errors'][_0x45c972('0x2566')]){_0x424fb2[_0x45c972('0x25be')]=_0x4ae8d6[_0x45c972('0x11fc')][_0x45c972('0x25be')]||[{'message':_0x4ae8d6[_0x45c972('0x17df')](),'type':_0x45c972('0x164d')}];for(let _0x5dcb2d=0x0;_0x5dcb2d<_0x4ae8d6[_0x45c972('0x11fc')][_0x45c972('0x25be')][_0x45c972('0x2566')];_0x5dcb2d++){_0x5ea9d9['error']({'title':_0x4ae8d6[_0x45c972('0x11fc')]['errors'][_0x5dcb2d]['type'],'msg':_0x4ae8d6[_0x45c972('0x11fc')][_0x45c972('0x25be')][_0x5dcb2d][_0x45c972('0x15e2')]});}}else _0x5ea9d9[_0x45c972('0x5e8')]({'title':_0x4ae8d6[_0x45c972('0x1b51')]?_0x45c972('0x15d1')+_0x4ae8d6['status']+_0x45c972('0x1b0b')+_0x4ae8d6[_0x45c972('0x22ce')]:_0x45c972('0x164d'),'msg':_0x4ae8d6[_0x45c972('0x11fc')]?JSON[_0x45c972('0x1be0')](_0x4ae8d6[_0x45c972('0x11fc')][_0x45c972('0x15e2')]):_0x4ae8d6['toString']()});});}function _0xfc66d5(){const _0xf491d=_0x4783d3;_0x424fb2[_0xf491d('0x25be')]=[],_0x5873e8[_0x34d224][_0xf491d('0x2740')]({'id':_0x424fb2['report']['id']},_0x424fb2[_0xf491d('0x148b')])[_0xf491d('0x1714')][_0xf491d('0x2788')](function(_0x53337b){const _0x258cee=_0xf491d,_0xc9fdc5=_0x283545()[_0x258cee('0x20e8')](_0x424fb2['reports'],{'id':_0x53337b['id']});_0xc9fdc5&&_0x283545()[_0x258cee('0x2503')](_0xc9fdc5,_0x53337b),_0x5ea9d9[_0x258cee('0x173b')]({'title':_0x258cee('0x676'),'msg':_0x424fb2[_0x258cee('0x148b')]['name']?_0x424fb2[_0x258cee('0x148b')][_0x258cee('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0xa2912a();})[_0xf491d('0x1cb5')](function(_0x1da482){const _0x24345d=_0xf491d;if(_0x1da482['data']&&_0x1da482[_0x24345d('0x11fc')]['errors']&&_0x1da482[_0x24345d('0x11fc')][_0x24345d('0x25be')][_0x24345d('0x2566')]){_0x424fb2[_0x24345d('0x25be')]=_0x1da482[_0x24345d('0x11fc')]['errors']||[{'message':_0x1da482[_0x24345d('0x17df')](),'type':_0x24345d('0xf90')}];for(let _0x68d36a=0x0;_0x68d36a<_0x1da482[_0x24345d('0x11fc')][_0x24345d('0x25be')]['length'];_0x68d36a++){_0x5ea9d9[_0x24345d('0x5e8')]({'title':_0x1da482[_0x24345d('0x11fc')][_0x24345d('0x25be')][_0x68d36a]['type'],'msg':_0x1da482[_0x24345d('0x11fc')][_0x24345d('0x25be')][_0x68d36a][_0x24345d('0x15e2')]});}}else _0x5ea9d9[_0x24345d('0x5e8')]({'title':_0x1da482[_0x24345d('0x1b51')]?_0x24345d('0x15d1')+_0x1da482[_0x24345d('0x1b51')]+'\x20-\x20'+_0x1da482['statusText']:'api.analyticReport.update','msg':_0x1da482[_0x24345d('0x11fc')]?JSON[_0x24345d('0x1be0')](_0x1da482[_0x24345d('0x11fc')][_0x24345d('0x15e2')]):_0x1da482[_0x24345d('0x17df')]()});});}function _0x2ef3d5(){const _0x3dc52c=_0x4783d3;_0x424fb2['errors']=[];const _0x305b73=_0x5f9131[_0x3dc52c('0x112e')]()['title']('Are\x20you\x20sure?')[_0x3dc52c('0x1c98')](_0x3dc52c('0x250f'))[_0x3dc52c('0x10bc')](_0x3dc52c('0x1be3'))['ok'](_0x3dc52c('0x2786'))[_0x3dc52c('0x1801')](_0x3dc52c('0x1481'))['targetEvent'](event);_0x5f9131['show'](_0x305b73)[_0x3dc52c('0x2788')](function(){const _0x356ce0=_0x3dc52c;_0x5873e8[_0x34d224]['delete']({'id':_0x424fb2[_0x356ce0('0x148b')]['id']})[_0x356ce0('0x1714')][_0x356ce0('0x2788')](function(){const _0x273f95=_0x356ce0;_0x283545()[_0x273f95('0x1a90')](_0x424fb2['reports'],{'id':_0x424fb2[_0x273f95('0x148b')]['id']}),_0x5ea9d9['success']({'title':_0x273f95('0x21c3'),'msg':_0x424fb2[_0x273f95('0x148b')][_0x273f95('0x1a8d')]?_0x424fb2[_0x273f95('0x148b')]['name']+_0x273f95('0x14d4'):''}),_0xa2912a();})[_0x356ce0('0x1cb5')](function(_0x26e52b){const _0x21db52=_0x356ce0;_0x424fb2['errors']=_0x26e52b['data']['errors']||[{'message':_0x26e52b[_0x21db52('0x17df')](),'type':_0x21db52('0x1552')}];});},function(){});}function _0xa2912a(){const _0x4ac5ef=_0x4783d3;_0x5f9131[_0x4ac5ef('0x19d')]();}}const _0x2cb7a7=_0x4c4ae9;_0x3e02d3[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1104'),_0x34e79e('0xd57'),_0x34e79e('0x1301')];function _0x3e02d3(_0x2a9280,_0x532422,_0x49e13f,_0x565edd){const _0x3ef35f=_0x34e79e,_0x2a8cc1=this;_0x2a8cc1[_0x3ef35f('0x148b')]={},_0x2a8cc1[_0x3ef35f('0x2047')]=_0x565edd[_0x3ef35f('0xe1b')],_0x2a8cc1['init']=_0x5dd8ff,_0x2a8cc1[_0x3ef35f('0x9f1')]=_0x24a6ff,_0x2a8cc1[_0x3ef35f('0x21a6')]=_0x3221bf,_0x2a8cc1[_0x3ef35f('0x16a')]=_0x4be762,_0x2a8cc1['isValueByCondition']=_0x6fbe71;function _0x5dd8ff(_0x4b0388,_0x2655bb){const _0x685ff7=_0x3ef35f;_0x2a8cc1['report']=_0x4b0388,_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0xf2b')]=angular['fromJson'](_0x4b0388[_0x685ff7('0x2047')])||{'group':{'operator':_0x685ff7('0x1fe'),'rules':[]}},_0x2a8cc1[_0x685ff7('0xe28')]=typeof _0x2655bb!==_0x685ff7('0xedb')?_0x2655bb:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x4a2013=0x0;_0x4a2013<_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0xf2b')][_0x685ff7('0x20ce')]['rules'][_0x685ff7('0x2566')];_0x4a2013++){if(_0x2a8cc1['report'][_0x685ff7('0xf2b')][_0x685ff7('0x20ce')][_0x685ff7('0xbc8')][_0x4a2013]['field']){const _0x39c17a=_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0xf2b')]['group'][_0x685ff7('0xbc8')][_0x4a2013][_0x685ff7('0x18da')][_0x685ff7('0x1497')]('.');_0x39c17a[_0x685ff7('0x2566')]===0x1&&(_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0xf2b')][_0x685ff7('0x20ce')]['rules'][_0x4a2013]['field']=_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0x26a9')]+'.'+_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0xf2b')][_0x685ff7('0x20ce')][_0x685ff7('0xbc8')][_0x4a2013]['field']);}}_0x532422[_0x685ff7('0x1747')](_0x2a8cc1[_0x685ff7('0x148b')][_0x685ff7('0x26a9')])['then'](function(_0x314b47){const _0x378f55=_0x685ff7;_0x2a8cc1[_0x378f55('0x1fd0')]=_0x283545()[_0x378f55('0xa9f')](_0x283545()[_0x378f55('0x2163')](_0x314b47),[_0x378f55('0x1714'),'$resolved',_0x378f55('0x172'),_0x378f55('0x5f')]);})[_0x685ff7('0x1cb5')](function(_0x20c145){const _0x294df9=_0x685ff7;_0x49e13f[_0x294df9('0x5e8')]({'title':_0x20c145['status']?'API:'+_0x20c145['status']+'\x20-\x20'+_0x20c145[_0x294df9('0x22ce')]:_0x294df9('0x11ff'),'msg':_0x20c145[_0x294df9('0x11fc')]?JSON['stringify'](_0x20c145[_0x294df9('0x11fc')]):_0x20c145['toString']()});});}function _0x24a6ff(_0x19e73f){const _0x3c478e=_0x3ef35f;_0x19e73f[_0x3c478e('0xc51')]({'condition':'=','field':'','value':''});}function _0x3221bf(_0x6608a){const _0xdc98ce=_0x3ef35f;_0x6608a[_0xdc98ce('0x13e3')]({'group':{'operator':_0xdc98ce('0x1fe'),'rules':[]}});}function _0x4be762(_0x56cb6c,_0x46ebc0,_0x1ef391){const _0x4139f2=_0x3ef35f,_0x4a2b52=_0x2a9280['confirm']()['title'](_0x4139f2('0x1a72'))['htmlContent'](_0x4139f2('0xab0'))[_0x4139f2('0x10bc')]('delete\x20item')[_0x4139f2('0x24d0')](_0x1ef391)['ok']('OK')[_0x4139f2('0x1801')](_0x4139f2('0x1d8d'));_0x2a9280['show'](_0x4a2b52)[_0x4139f2('0x2788')](function(){const _0x3063c2=_0x4139f2;_0x56cb6c[_0x3063c2('0x722')](_0x46ebc0,0x1);},function(){const _0x45c6d3=_0x4139f2;console[_0x45c6d3('0x10df')](_0x45c6d3('0x1d8d'));});}function _0x6fbe71(_0x4c1194){const _0x364d8d=_0x3ef35f;return!_0x283545()[_0x364d8d('0x1d4e')](['IS\x20NULL',_0x364d8d('0x34f'),_0x364d8d('0x3d7'),_0x364d8d('0x14b6')],_0x4c1194);}}const _0x3c6645=_0x3e02d3;_0x4b82bd['$inject']=['api'];function _0x4b82bd(_0x404085){const _0x52b026=_0x34e79e,_0x1c42a7={'cm_companies':_0x52b026('0x27f6'),'cm_contacts':_0x52b026('0xa83'),'cm_hopper':_0x52b026('0x1de1'),'cm_hopper_final':_0x52b026('0x177a'),'cm_hopper_history':_0x52b026('0x9b'),'cm_lists':_0x52b026('0x1ba4'),'chat_websites':_0x52b026('0x169c'),'chat_queues':_0x52b026('0x12a8'),'chat_interactions':_0x52b026('0x11d0'),'chat_messages':_0x52b026('0xe1'),'chat_offline_messages':_0x52b026('0x1444'),'report_chat_queue':_0x52b026('0x2d7'),'report_chat_transfer':_0x52b026('0x6a8'),'mail_accounts':'mailAccount','mail_queues':_0x52b026('0x139b'),'mail_interactions':_0x52b026('0x2559'),'mail_messages':_0x52b026('0x125'),'report_mail_queue':_0x52b026('0xae8'),'report_mail_transfer':_0x52b026('0xdf1'),'openchannel_accounts':'openchannelAccount','openchannel_queues':_0x52b026('0xb26'),'openchannel_interactions':_0x52b026('0x1989'),'openchannel_messages':_0x52b026('0x1e70'),'report_openchannel_queue':_0x52b026('0x27cc'),'report_openchannel_transfer':_0x52b026('0xa1d'),'sms_accounts':'smsAccount','sms_queues':_0x52b026('0x23cf'),'sms_interactions':_0x52b026('0x1990'),'sms_messages':_0x52b026('0xcb5'),'report_sms_queue':_0x52b026('0x2382'),'report_sms_transfer':_0x52b026('0x786'),'fax_accounts':_0x52b026('0x1fb8'),'fax_queues':_0x52b026('0x1cc3'),'fax_interactions':_0x52b026('0x26ca'),'fax_messages':_0x52b026('0x128d'),'report_fax_transfer':'faxTransferReport','report_fax_queue':_0x52b026('0x65f'),'report_call':_0x52b026('0x99'),'report_agent':'voiceAgentReport','report_square':'squareReport','report_member':'memberReport','report_queue':_0x52b026('0x1715'),'report_square_details':_0x52b026('0x1ec6'),'report_dial':_0x52b026('0xac'),'report_jscripty_sessions':_0x52b026('0x22e8'),'report_jscripty_questions':_0x52b026('0x1069'),'report_jscripty_answers':_0x52b026('0x15e7'),'users':_0x52b026('0x1e6a'),'voice_recordings':_0x52b026('0x14ff'),'cdr':_0x52b026('0x1bf8'),'whatsapp_accounts':_0x52b026('0x15'),'whatsapp_queues':'whatsappQueue','whatsapp_interactions':_0x52b026('0x95'),'whatsapp_messages':_0x52b026('0x1ef7'),'report_whatsapp_queue':'whatsappQueueReport','report_whatsapp_transfer':_0x52b026('0x413')};return{'getMap':function(){const _0x4d4e9c=_0x52b026,_0x4b866b=[];return _0x283545()[_0x4d4e9c('0x1b')](_0x1c42a7,function(_0x2b0d39,_0x3f5059){const _0x2f28d1=_0x4d4e9c;_0x4b866b[_0x2f28d1('0x13e3')]({'name':_0x3f5059,'api':_0x2b0d39});}),_0x4b866b;},'getColumns':function(_0x2a229b){const _0x140493=_0x52b026,_0x1cb550=_0x1c42a7[_0x2a229b];return _0x404085[_0x1cb550][_0x140493('0x15f8')]()[_0x140493('0x1714')];}};}const _0x39a11f=_0x4b82bd;_0x37d78e[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x148b'),_0x34e79e('0x182d'),_0x34e79e('0x22b3'),'metrics',_0x34e79e('0x1fd0'),'sqlUtil',_0x34e79e('0x519'),_0x34e79e('0xe28')];function _0x37d78e(_0x5b40eb,_0x4ec153,_0x2abfaa,_0x5106e1,_0x5812a3,_0x301be6,_0x12353e,_0x345ec1,_0xa0c2d5,_0x31eeb9,_0x533273,_0x5b7059){const _0x286038=_0x34e79e,_0x3913de=this;_0x3913de[_0x286038('0x25be')]=[],_0x3913de[_0x286038('0x14e4')]=_0x286038('0x1aae'),_0x3913de[_0x286038('0x148b')]=_0x5812a3,_0x3913de['reportField']=angular[_0x286038('0x2669')](_0x12353e),_0x3913de[_0x286038('0x182d')]=_0x301be6,_0x3913de[_0x286038('0xd3d')]=_0x345ec1,_0x3913de[_0x286038('0x1fd0')]=_0xa0c2d5,_0x3913de[_0x286038('0x1301')]=_0x31eeb9,_0x3913de[_0x286038('0x1d0b')]=![],_0x3913de[_0x286038('0xe28')]=_0x5b7059;if(!_0x3913de[_0x286038('0x22b3')])_0x3913de[_0x286038('0x22b3')]={'type':'column','function':null,'format':null,'groupBy':![],'orderBy':null},_0x3913de['title']=_0x286038('0x1f4a'),_0x3913de[_0x286038('0x1d0b')]=!![];else{_0x3913de[_0x286038('0x22b3')][_0x286038('0x1d7')]=_0x3913de[_0x286038('0x22b3')]['custom']?_0x286038('0x1d56'):_0x3913de['reportField'][_0x286038('0x9a8')]?_0x286038('0x22dc'):'column';if(_0x3913de[_0x286038('0x22b3')][_0x286038('0x18da')]&&!_0x3913de[_0x286038('0x22b3')][_0x286038('0x1d56')]&&_0x283545()['isNil'](_0x3913de[_0x286038('0x22b3')][_0x286038('0x9a8')])){const _0x421a56=_0x3913de[_0x286038('0x22b3')][_0x286038('0x18da')][_0x286038('0x1497')]('.');_0x421a56[_0x286038('0x2566')]===0x1&&(_0x3913de[_0x286038('0x22b3')][_0x286038('0x18da')]=_0x3913de[_0x286038('0x148b')][_0x286038('0x26a9')]+'.'+_0x3913de['reportField']['field']);}}_0x3913de[_0x286038('0x1ffc')]=_0x312baa,_0x3913de[_0x286038('0x10e4')]=_0x553559,_0x3913de[_0x286038('0x240b')]=_0x54f792,_0x3913de[_0x286038('0xca7')]=_0xcb9b4f;function _0x312baa(){const _0x3724b2=_0x286038;_0x3913de[_0x3724b2('0x25be')]=[],_0x3913de['reportField'][_0x3724b2('0x1d56')]=_0x3913de[_0x3724b2('0x22b3')][_0x3724b2('0x1d7')]===_0x3724b2('0x1d56'),_0x3913de[_0x3724b2('0x22b3')][_0x3724b2('0x9a8')]=_0x3913de[_0x3724b2('0x22b3')][_0x3724b2('0x1d7')]===_0x3724b2('0x22dc')?_0x3913de[_0x3724b2('0x22b3')][_0x3724b2('0x9a8')]:null,_0x3913de[_0x3724b2('0x22b3')][_0x3724b2('0x220f')]=_0x3913de[_0x3724b2('0x148b')]['id'],_0x533273[_0x3724b2('0x23ec')][_0x3724b2('0xbd0')](_0x3913de[_0x3724b2('0x22b3')])[_0x3724b2('0x1714')][_0x3724b2('0x2788')](function(_0x43b688){const _0x423cf5=_0x3724b2;_0x3913de[_0x423cf5('0x182d')]['push'](_0x43b688),_0x5106e1[_0x423cf5('0x173b')]({'title':'Report\x20field\x20properly\x20created','msg':_0x3913de[_0x423cf5('0x22b3')]['field']?_0x3913de[_0x423cf5('0x22b3')][_0x423cf5('0x18da')]+_0x423cf5('0x1e4a'):_0x3913de[_0x423cf5('0x22b3')][_0x423cf5('0x1d7')]+_0x423cf5('0x1e4a')}),_0xcb9b4f();})[_0x3724b2('0x1cb5')](function(_0x35c078){const _0x23cf2a=_0x3724b2;_0x3913de[_0x23cf2a('0x25be')]=_0x35c078[_0x23cf2a('0x11fc')][_0x23cf2a('0x25be')]||[{'message':_0x35c078[_0x23cf2a('0x17df')](),'type':_0x23cf2a('0x1957')}];});}function _0x553559(){const _0x13eee4=_0x286038;_0x3913de[_0x13eee4('0x25be')]=[],_0x3913de[_0x13eee4('0x22b3')]['custom']=_0x3913de['reportField'][_0x13eee4('0x1d7')]==='custom',_0x3913de[_0x13eee4('0x22b3')][_0x13eee4('0x9a8')]=_0x3913de[_0x13eee4('0x22b3')]['type']===_0x13eee4('0x22dc')?_0x3913de[_0x13eee4('0x22b3')]['MetricId']:null,_0x533273[_0x13eee4('0x23ec')][_0x13eee4('0x2740')]({'id':_0x3913de[_0x13eee4('0x22b3')]['id']},_0x3913de['reportField'])[_0x13eee4('0x1714')][_0x13eee4('0x2788')](function(_0x345c6){const _0x59fc93=_0x13eee4,_0x5eba6e=_0x283545()[_0x59fc93('0x20e8')](_0x3913de[_0x59fc93('0x182d')],{'id':_0x345c6['id']});_0x5eba6e&&_0x283545()[_0x59fc93('0x2503')](_0x5eba6e,_0x345c6),_0x5106e1[_0x59fc93('0x173b')]({'title':'Report\x20Field\x20properly\x20saved!','msg':_0x3913de[_0x59fc93('0x22b3')]['field']?_0x3913de['reportField']['field']+_0x59fc93('0x24cf'):''}),_0xcb9b4f();})['catch'](function(_0x1da81d){const _0x1c1c5b=_0x13eee4;_0x3913de['errors']=_0x1da81d[_0x1c1c5b('0x11fc')]['errors']||[{'message':_0x1da81d[_0x1c1c5b('0x17df')](),'type':_0x1c1c5b('0x1dd6')}];});}function _0x54f792(_0x300e63){const _0x2bb87c=_0x286038;_0x3913de[_0x2bb87c('0x25be')]=[];const _0x26b6e2=_0x2abfaa['confirm']()[_0x2bb87c('0x14e4')](_0x2bb87c('0x458'))[_0x2bb87c('0x1c98')]('The\x20field\x20will\x20be\x20deleted.')[_0x2bb87c('0x10bc')](_0x2bb87c('0x1be3'))['ok']('Delete')[_0x2bb87c('0x1801')]('Cancel')['targetEvent'](_0x300e63);_0x2abfaa[_0x2bb87c('0x2fa')](_0x26b6e2)[_0x2bb87c('0x2788')](function(){const _0x172869=_0x2bb87c;_0x533273[_0x172869('0x23ec')][_0x172869('0x17c4')]({'id':_0x3913de[_0x172869('0x22b3')]['id']})[_0x172869('0x1714')]['then'](function(){const _0x352e50=_0x172869;_0x283545()[_0x352e50('0x1a90')](_0x3913de['reportFields'],{'id':_0x3913de[_0x352e50('0x22b3')]['id']}),_0x5106e1[_0x352e50('0x173b')]({'title':'Report\x20Field\x20properly\x20deleted!','msg':_0x3913de[_0x352e50('0x22b3')]['field']?_0x3913de[_0x352e50('0x22b3')]['field']+_0x352e50('0x14d4'):''}),_0xcb9b4f();})[_0x172869('0x1cb5')](function(_0xc11ad){const _0x613212=_0x172869;_0x3913de[_0x613212('0x25be')]=_0xc11ad[_0x613212('0x11fc')]['errors']||[{'message':_0xc11ad[_0x613212('0x17df')](),'type':_0x613212('0x2816')}];});},function(){});}function _0xcb9b4f(){const _0x3dc7d9=_0x286038;_0x2abfaa[_0x3dc7d9('0x19d')]();}}const _0x42f7e9=_0x37d78e,_0x1911b4=_0x18dd13['p']+_0x34e79e('0x1525');_0x43d1d4[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1104'),_0x34e79e('0x1301'),_0x34e79e('0x1a5c')];function _0x43d1d4(_0x3480eb,_0x96521b,_0x3cd3c0,_0x484e80,_0x235af0,_0x21ce44,_0x1bad90,_0x5d253f,_0x5e588d,_0x3d5d86){const _0x1ad2d5=_0x34e79e,_0x50cacc=this;_0x50cacc[_0x1ad2d5('0x148b')]={},_0x50cacc[_0x1ad2d5('0x182d')]={'count':0x0,'rows':[]},_0x50cacc[_0x1ad2d5('0x759')]=_0x283545()[_0x1ad2d5('0x13cf')](_0x5e588d['getFunctions'],'value'),_0x50cacc[_0x1ad2d5('0x195e')]=_0x283545()['keyBy'](_0x5e588d['getFormats'],'value'),_0x50cacc[_0x1ad2d5('0x1d6c')]=_0x283545()[_0x1ad2d5('0x13cf')](_0x5e588d[_0x1ad2d5('0x1683')],_0x1ad2d5('0x49')),_0x50cacc[_0x1ad2d5('0xf87')]=_0x283545()[_0x1ad2d5('0x13cf')](_0x5e588d[_0x1ad2d5('0x2222')],_0x1ad2d5('0x49')),_0x50cacc[_0x1ad2d5('0x166a')]=[],_0x50cacc[_0x1ad2d5('0x135a')]={'fields':_0x1ad2d5('0x1869'),'nolimit':!![]},_0x50cacc[_0x1ad2d5('0x770')]={'animation':0x64,'onSort':function(_0x5d1ad8){const _0x4bd221=_0x1ad2d5;_0x1bad90[_0x4bd221('0x23ec')][_0x4bd221('0x21d2')]({'id':_0x50cacc['report']['id']},_0x5d1ad8[_0x4bd221('0x36c')])['$promise'][_0x4bd221('0x2788')](function(_0x2f8d7f){const _0x1be014=_0x4bd221;_0x50cacc[_0x1be014('0x182d')][_0x1be014('0x25df')]=_0x2f8d7f;})[_0x4bd221('0x1cb5')](function(_0x48d5d5){const _0x171d8a=_0x4bd221;_0x21ce44[_0x171d8a('0x5e8')]({'title':_0x48d5d5[_0x171d8a('0x1b51')]?_0x171d8a('0x15d1')+_0x48d5d5[_0x171d8a('0x1b51')]+'\x20-\x20'+_0x48d5d5[_0x171d8a('0x22ce')]:_0x171d8a('0x2799')});});}},_0x50cacc[_0x1ad2d5('0x24eb')]=_0x23de6a,_0x50cacc[_0x1ad2d5('0x16a')]=_0x3f4664,_0x50cacc[_0x1ad2d5('0x173b')]=_0x39ef2c,_0x50cacc[_0x1ad2d5('0x17eb')]=_0x1c461f,_0x50cacc[_0x1ad2d5('0x309')]=_0x4a1731,_0x50cacc[_0x1ad2d5('0x240b')]=_0x538ed4,_0x50cacc[_0x1ad2d5('0x2387')]=_0x3fc1e8,_0x50cacc[_0x1ad2d5('0x1ad5')]=_0x539add,_0x50cacc[_0x1ad2d5('0x1a8')]=_0x5eaa2c;function _0x23de6a(_0x5d79af,_0x4074a5){const _0x4542c3=_0x1ad2d5;_0x50cacc[_0x4542c3('0x148b')]=_0x5d79af,_0x50cacc[_0x4542c3('0x135a')][_0x4542c3('0x220f')]=_0x50cacc[_0x4542c3('0x148b')]['id'],_0x50cacc[_0x4542c3('0xe28')]=typeof _0x4074a5!==_0x4542c3('0xedb')?_0x4074a5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x50cacc['sortableTable']['disabled']=!_0x50cacc[_0x4542c3('0xe28')]['canEdit']?!![]:![],_0x5d253f[_0x4542c3('0x1747')](_0x50cacc[_0x4542c3('0x148b')][_0x4542c3('0x26a9')])[_0x4542c3('0x2788')](function(_0x1f0615){const _0x4b3abf=_0x4542c3;return _0x50cacc[_0x4b3abf('0x1fd0')]=_0x283545()[_0x4b3abf('0xa9f')](_0x283545()[_0x4b3abf('0x2163')](_0x1f0615),[_0x4b3abf('0x1714'),_0x4b3abf('0x187a')]),_0x1bad90['analyticMetric'][_0x4b3abf('0x1335')]({'fields':_0x4b3abf('0xcbd'),'nolimit':!![]})['$promise'];})['then'](function(_0x1aaf63){const _0x3f2383=_0x4542c3;_0x50cacc[_0x3f2383('0xd3d')]=_0x1aaf63['rows'];})[_0x4542c3('0x1cb5')](function(_0xcfa5a2){const _0x48eee9=_0x4542c3;_0x21ce44[_0x48eee9('0x5e8')]({'title':_0xcfa5a2['status']?_0x48eee9('0x15d1')+_0xcfa5a2['status']+'\x20-\x20'+_0xcfa5a2[_0x48eee9('0x22ce')]:_0x48eee9('0x11ff'),'msg':_0xcfa5a2[_0x48eee9('0x11fc')]?JSON['stringify'](_0xcfa5a2['data']):_0xcfa5a2[_0x48eee9('0x17df')]()});}),_0x50cacc[_0x4542c3('0x17eb')]();}function _0x3f4664(_0x470c94,_0x98b25a){const _0x21cf9f=_0x1ad2d5,_0x1b943d=_0x484e80[_0x21cf9f('0x112e')]()[_0x21cf9f('0x14e4')](_0x21cf9f('0x21d'))['htmlContent'](_0x21cf9f('0x1670')+_0x470c94[_0x21cf9f('0x18da')]+''+_0x21cf9f('0x27c7'))[_0x21cf9f('0x10bc')](_0x21cf9f('0xde7'))[_0x21cf9f('0x24d0')](_0x98b25a)['ok']('OK')[_0x21cf9f('0x1801')](_0x21cf9f('0x1d8d'));_0x484e80[_0x21cf9f('0x2fa')](_0x1b943d)[_0x21cf9f('0x2788')](function(){_0x538ed4(_0x470c94);},function(){const _0x5cbeda=_0x21cf9f;console['log'](_0x5cbeda('0x1d8d'));});}let _0x1283bf=!![];_0x96521b[_0x1ad2d5('0x1662')](_0x1ad2d5('0x1af3'),function(){const _0x47f63b=_0x1ad2d5;_0x1283bf?_0x3cd3c0(function(){_0x1283bf=![];}):_0x50cacc[_0x47f63b('0x17eb')]();});function _0x39ef2c(_0x4d0cfb){const _0x21d63e=_0x1ad2d5;_0x50cacc[_0x21d63e('0x182d')]=_0x4d0cfb||{'count':0x0,'rows':[]};}function _0x1c461f(){const _0x3dcac3=_0x1ad2d5;_0x50cacc[_0x3dcac3('0x1808')]=_0x1bad90[_0x3dcac3('0x23ec')][_0x3dcac3('0x1335')](_0x50cacc[_0x3dcac3('0x135a')],_0x39ef2c)[_0x3dcac3('0x1714')];}function _0x4a1731(_0x587408,_0x5e87a0){const _0x3e0df9=_0x1ad2d5;_0x484e80['show']({'controller':_0x3e0df9('0x2cd'),'controllerAs':'vm','templateUrl':_0x1911b4,'parent':angular[_0x3e0df9('0x16b1')](_0x235af0[_0x3e0df9('0x945')]),'targetEvent':_0x587408,'clickOutsideToClose':!![],'locals':{'report':_0x50cacc[_0x3e0df9('0x148b')],'reportField':_0x5e87a0,'reportFields':_0x50cacc['reportFields'][_0x3e0df9('0x25df')],'metrics':_0x50cacc[_0x3e0df9('0xd3d')],'columns':_0x50cacc[_0x3e0df9('0x1fd0')],'setting':null,'crudPermissions':_0x50cacc[_0x3e0df9('0xe28')]}});}function _0x538ed4(_0xb20b29){const _0x244572=_0x1ad2d5;_0x1bad90[_0x244572('0x23ec')]['delete']({'id':_0xb20b29['id']})['$promise'][_0x244572('0x2788')](function(){const _0x1c9b18=_0x244572;_0x50cacc[_0x1c9b18('0x166a')]=[],_0x283545()[_0x1c9b18('0x1a90')](_0x50cacc[_0x1c9b18('0x182d')][_0x1c9b18('0x25df')],{'id':_0xb20b29['id']}),_0x50cacc[_0x1c9b18('0x182d')]['count']-=0x1,!_0x50cacc[_0x1c9b18('0x182d')]['rows'][_0x1c9b18('0x2566')]&&_0x50cacc['getReportFields'](),_0x21ce44[_0x1c9b18('0x173b')]({'title':'Field\x20deleted!','msg':_0xb20b29[_0x1c9b18('0x18da')]?_0xb20b29['field']+_0x1c9b18('0x14d4'):''});})[_0x244572('0x1cb5')](function(_0x54beb5){const _0x32dc41=_0x244572;_0x21ce44[_0x32dc41('0x5e8')]({'title':_0x54beb5[_0x32dc41('0x1b51')]?_0x32dc41('0x15d1')+_0x54beb5[_0x32dc41('0x1b51')]+_0x32dc41('0x1b0b')+_0x54beb5[_0x32dc41('0x22ce')]:'SYSTEM:DELETEFIELD','msg':_0x54beb5[_0x32dc41('0x11fc')]?JSON['stringify'](_0x54beb5[_0x32dc41('0x11fc')]):_0x54beb5[_0x32dc41('0x17df')]()});});}function _0x3fc1e8(_0x281560){const _0x446f8d=_0x1ad2d5,_0x267fc8=_0x484e80['confirm']()[_0x446f8d('0x14e4')](_0x446f8d('0x7'))[_0x446f8d('0x93e')](_0x446f8d('0x1670')+_0x50cacc[_0x446f8d('0x166a')][_0x446f8d('0x2566')]+_0x446f8d('0xbd')+'\x20will\x20be\x20deleted.')[_0x446f8d('0x10bc')](_0x446f8d('0x736'))['targetEvent'](_0x281560)['ok']('OK')[_0x446f8d('0x1801')](_0x446f8d('0x1d8d'));_0x484e80['show'](_0x267fc8)[_0x446f8d('0x2788')](function(){const _0x2c1423=_0x446f8d;_0x50cacc['selectedReportFields'][_0x2c1423('0x1534')](function(_0xead52a){_0x538ed4(_0xead52a);}),_0x50cacc[_0x2c1423('0x166a')]=[];});}function _0x539add(_0x515630){const _0x448518=_0x1ad2d5,_0x3504f6=_0x283545()[_0x448518('0x20e8')](_0x50cacc[_0x448518('0xd3d')],{'id':_0x515630});return _0x3504f6?_0x3504f6[_0x448518('0x1a8d')]:_0x3d5d86[_0x448518('0x1b11')](_0x448518('0xd1c'));}function _0x5eaa2c(_0x12f92f){const _0x4880e2=_0x1ad2d5,_0x45a766=_0x283545()[_0x4880e2('0x20e8')](_0x50cacc['metrics'],{'id':_0x12f92f});return _0x45a766?_0x45a766['metric']:_0x3d5d86[_0x4880e2('0x1b11')](_0x4880e2('0xd1c'));}}const _0x49595b=_0x43d1d4;function _0x71361f(){const _0x2ea93a=_0x34e79e,_0x11c812=[{'value':'SUM','option':function(_0x362c35){const _0x517ea3=a0_0x14e7;return _0x517ea3('0xf02')+_0x362c35+')';}},{'value':_0x2ea93a('0x266a'),'option':function(_0x32a555){const _0x3546fa=_0x2ea93a;return _0x3546fa('0x3a3')+_0x32a555+')';}},{'value':_0x2ea93a('0xeb'),'option':function(_0x5b3bf7){return'COUNT\x20(DISTINCT\x20'+_0x5b3bf7+')';}},{'value':'MAX','option':function(_0x26a898){return'MAX\x20('+_0x26a898+')';}},{'value':_0x2ea93a('0x70b'),'option':function(_0x47f228){return'MIN\x20('+_0x47f228+')';}},{'value':_0x2ea93a('0x264'),'option':function(_0x6bf39f){return'AVG\x20('+_0x6bf39f+')';}},{'value':_0x2ea93a('0x1181'),'option':function(_0x498ef7){const _0x2eaec0=_0x2ea93a;return _0x2eaec0('0x15ce')+_0x498ef7+')';}},{'value':_0x2ea93a('0x2442'),'option':function(_0xe59c97){const _0x581c9f=_0x2ea93a;return'GROUP_CONCAT\x20('+_0xe59c97+_0x581c9f('0xa8')+_0xe59c97+_0x581c9f('0x2ec');}},{'value':_0x2ea93a('0x1289'),'option':function(_0x42c4fb){const _0x4cb266=_0x2ea93a;return _0x4cb266('0x15ce')+_0x42c4fb+'\x20ORDER\x20BY\x20'+_0x42c4fb+_0x4cb266('0xb11');}}],_0x3cb684=[{'value':'SEC_TO_TIME','option':function(_0x572d5d){const _0x8b78f2=_0x2ea93a;return _0x8b78f2('0x1cab')+_0x572d5d+')';}},{'value':_0x2ea93a('0x1ae0'),'option':function(_0x572af1){const _0x16ee8b=_0x2ea93a;return _0x16ee8b('0x1aa')+_0x572af1+')';}},{'value':'HOUR','option':function(_0x80ce06){const _0x118215=_0x2ea93a;return _0x118215('0x17ed')+_0x80ce06+')';}},{'value':_0x2ea93a('0x73e'),'option':function(_0x4e51be){const _0x17fa4a=_0x2ea93a;return _0x17fa4a('0xaf2')+_0x4e51be+')';}},{'value':_0x2ea93a('0xc05'),'option':function(_0x1357f8){const _0x19b6d2=_0x2ea93a;return _0x19b6d2('0x481')+_0x1357f8+')';}}],_0x15c421=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x51a007){const _0x24bd71=_0x2ea93a;return _0x24bd71('0x26c5')+_0x51a007;}}],_0x107ad9=[{'value':_0x2ea93a('0x1de8'),'option':function(_0x39c856){const _0x149fe0=_0x2ea93a;return _0x149fe0('0x246d')+_0x39c856+_0x149fe0('0x247e');}},{'value':'DESC','option':function(_0x2b132b){const _0x3809fd=_0x2ea93a;return _0x3809fd('0x246d')+_0x2b132b+_0x3809fd('0x1fb1');}}],_0x3ac10f=['=','!=','<','<=','>','>=',_0x2ea93a('0xed1'),'NOT\x20LIKE',_0x2ea93a('0xc1f'),_0x2ea93a('0x34f'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'];return{'getFunctions':_0x11c812,'getFormats':_0x3cb684,'getGroupBy':_0x15c421,'getOrderBy':_0x107ad9,'getConditions':_0x3ac10f};}const _0x299b52=_0x71361f;_0x5e1a50[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'report',_0x34e79e('0x1b04'),_0x34e79e('0xec9')];function _0x5e1a50(_0x27c4c2,_0x4711ed,_0xddfef1,_0x24eedf,_0x4fcbb5,_0x5dcb05){const _0x9ca886=_0x34e79e,_0x231e02=this;_0x231e02['report']=_0x24eedf||{},_0x231e02[_0x9ca886('0xec9')]=_0x5dcb05&&_0x5dcb05['count']==0x1?_0x5dcb05['rows'][0x0]:null,_0x231e02[_0x9ca886('0xe28')]=_0x4fcbb5[_0x9ca886('0x157e')](_0x231e02[_0x9ca886('0xec9')]?_0x231e02[_0x9ca886('0xec9')][_0x9ca886('0xe28')]:null),_0x231e02[_0x9ca886('0xcb3')]=_0x27c4c2['params'][_0x9ca886('0x24f6')]||0x0,_0x231e02[_0x9ca886('0x203e')]=_0xa9da75,_0x231e02['saveReport']=_0x5b1276,_0x231e02['previewReport']=_0x1b3885,_0x231e02['queryReport']=_0x57a2db,_0x231e02['mapArray']=_0x22794,_0x231e02[_0x9ca886('0x1ed4')]=_0x2616af,_0x231e02[_0x9ca886('0xea9')]=_0x3f57e3;function _0xa9da75(){const _0xea62b=_0x9ca886;_0x27c4c2['go'](_0xea62b('0xf59'),{},{'reload':'app.analytics.reports'});}function _0x5b1276(){const _0x1d724e=_0x9ca886;_0x231e02[_0x1d724e('0x148b')][_0x1d724e('0x2047')]=angular['toJson'](_0x231e02[_0x1d724e('0x148b')][_0x1d724e('0xf2b')]),_0xddfef1[_0x1d724e('0x193d')][_0x1d724e('0x2740')]({'id':_0x231e02['report']['id']},_0x283545()[_0x1d724e('0x5a9')](_0x231e02[_0x1d724e('0x148b')],_0x1d724e('0x235c')))[_0x1d724e('0x1714')]['then'](function(){const _0xbfa463=_0x1d724e;_0x4711ed[_0xbfa463('0x173b')]({'title':_0xbfa463('0x2306'),'msg':_0x231e02[_0xbfa463('0x148b')][_0xbfa463('0x1a8d')]?_0x231e02[_0xbfa463('0x148b')][_0xbfa463('0x1a8d')]+_0xbfa463('0x6f8'):''});})[_0x1d724e('0x1cb5')](function(_0x113998){const _0x1863ba=_0x1d724e;_0x4711ed[_0x1863ba('0x5e8')]({'title':_0x113998[_0x1863ba('0x1b51')]?_0x1863ba('0x15d1')+_0x113998[_0x1863ba('0x1b51')]+'\x20-\x20'+_0x113998[_0x1863ba('0x22ce')]:_0x1863ba('0x7b9'),'msg':_0x113998[_0x1863ba('0x11fc')]?JSON['stringify'](_0x113998['data']):_0x113998[_0x1863ba('0x17df')]()});});}function _0x1b3885(){const _0x5922de=_0x9ca886;_0x231e02[_0x5922de('0x1fd0')]=[],_0x231e02['rows']=[],_0x231e02[_0x5922de('0x5e8')]=![],_0xddfef1[_0x5922de('0x23ec')][_0x5922de('0x1335')]({'fields':'field,alias','nolimit':!![],'CustomReportId':_0x231e02[_0x5922de('0x148b')]['id']})['$promise'][_0x5922de('0x2788')](function(_0x3d680c){const _0x24d6d4=_0x5922de;return _0x231e02['columns']=_0x3d680c?_0x3d680c[_0x24d6d4('0x25df')]:[],_0xddfef1['analyticCustomReport'][_0x24d6d4('0x23b3')]({'id':_0x231e02['report']['id']})['$promise'];})['then'](function(_0x3be321){const _0x1402eb=_0x5922de;_0x231e02[_0x1402eb('0x25df')]=_0x3be321;})[_0x5922de('0x1cb5')](function(_0x1fe85e){const _0x4f86e9=_0x5922de;console[_0x4f86e9('0x10df')](_0x1fe85e),_0x231e02[_0x4f86e9('0x5e8')]={'title':_0x1fe85e['status']?_0x4f86e9('0x15d1')+_0x1fe85e[_0x4f86e9('0x1b51')]+_0x4f86e9('0x1b0b')+_0x1fe85e[_0x4f86e9('0x22ce')]:'SYSTEM:analyticFieldReport','msg':_0x1fe85e[_0x4f86e9('0x11fc')]?_0x1fe85e[_0x4f86e9('0x11fc')][_0x4f86e9('0x15e2')]:_0x1fe85e[_0x4f86e9('0x17df')](),'sql':_0x1fe85e[_0x4f86e9('0x11fc')]?_0x1fe85e[_0x4f86e9('0x11fc')][_0x4f86e9('0x1734')]?_0x1fe85e[_0x4f86e9('0x11fc')][_0x4f86e9('0x1734')][_0x4f86e9('0x1b4e')]:_0x4f86e9('0x168a'):_0x4f86e9('0x168a')},_0x4711ed[_0x4f86e9('0x5e8')](_0x231e02[_0x4f86e9('0x5e8')]);});}function _0x3f57e3(_0x521139,_0x297096){const _0x3082b8=_0x9ca886;return _0x59f37a()(_0x297096,_0x3082b8('0x208'),!![])[_0x3082b8('0x68d')]()&&(_0x297096=_0x59f37a()(_0x297096,'')['format'](_0x3082b8('0xe8e'))),_0x297096;}function _0x57a2db(){const _0x714beb=_0x9ca886;return _0x231e02[_0x714beb('0xfab')]=_0x714beb('0x27d3'),_0xddfef1['analyticCustomReport'][_0x714beb('0x135a')]({'id':_0x231e02[_0x714beb('0x148b')]['id']})['$promise']['then'](function(_0x5a1a11){const _0x50b8f5=_0x714beb;_0x231e02[_0x50b8f5('0xfab')]=_0x5a1a11[_0x50b8f5('0x1b4e')];})[_0x714beb('0x1cb5')](function(_0x4dda2a){const _0x27d614=_0x714beb;_0x231e02[_0x27d614('0xfab')]='',console['log'](_0x4dda2a),_0x231e02[_0x27d614('0x5e8')]={'title':_0x4dda2a[_0x27d614('0x1b51')]?_0x27d614('0x15d1')+_0x4dda2a[_0x27d614('0x1b51')]+_0x27d614('0x1b0b')+_0x4dda2a[_0x27d614('0x22ce')]:_0x27d614('0x1b16'),'msg':_0x4dda2a[_0x27d614('0x11fc')]?_0x4dda2a[_0x27d614('0x11fc')][_0x27d614('0x15e2')]:_0x4dda2a[_0x27d614('0x17df')](),'sql':_0x4dda2a[_0x27d614('0x11fc')]?_0x4dda2a[_0x27d614('0x11fc')][_0x27d614('0x1734')]?_0x4dda2a[_0x27d614('0x11fc')][_0x27d614('0x1734')]['sql']:'NO\x20QUERY':_0x27d614('0x168a')},_0x4711ed[_0x27d614('0x5e8')](_0x231e02[_0x27d614('0x5e8')]);});}function _0x22794(_0x3c869d,_0x4680ac){const _0x11c0f0=_0x9ca886;if(_0x2616af(_0x3c869d))return _0x283545()[_0x11c0f0('0x155d')](_0x3c869d,_0x4680ac)[_0x11c0f0('0x185f')](',');return'';}function _0x2616af(_0x4a28e0){const _0x18e7bc=_0x9ca886;return _0x283545()[_0x18e7bc('0x1ed4')](_0x4a28e0);}}const _0x4fc3aa=_0x5e1a50;_0x71b9e0['$inject']=['$location','$mdDialog',_0x34e79e('0xd57'),_0x34e79e('0x148b'),'api','apiName'];function _0x71b9e0(_0x2dca65,_0x1f2a57,_0xaa224c,_0x8e518,_0x529cc0,_0x4084e7){const _0x44b27c=_0x34e79e,_0x41da4e=this;_0x41da4e['errors']=[],_0x41da4e[_0x44b27c('0x148b')]=angular['copy'](_0x8e518),_0x41da4e['valueReplacer']=_0x4fc93b,_0x41da4e[_0x44b27c('0xca7')]=_0x2aa3aa,_0x50fdfc();function _0x50fdfc(){const _0x5ed1ac=_0x44b27c;_0x41da4e[_0x5ed1ac('0x1fd0')]=[],_0x41da4e['rows']=[],_0x41da4e[_0x5ed1ac('0x5e8')]=![];const _0x3ff8f8={'fields':_0x5ed1ac('0xb08'),'nolimit':!![]};_0x3ff8f8[_0x4084e7===_0x5ed1ac('0x193d')?_0x5ed1ac('0x220f'):_0x5ed1ac('0x1a36')]=_0x41da4e[_0x5ed1ac('0x148b')]['id'],_0x41da4e[_0x5ed1ac('0x1808')]=_0x529cc0[_0x5ed1ac('0x23ec')][_0x5ed1ac('0x1335')](_0x3ff8f8)[_0x5ed1ac('0x1714')]['then'](function(_0x1801cb){const _0x2ad4a9=_0x5ed1ac;return _0x41da4e[_0x2ad4a9('0x1fd0')]=_0x1801cb?_0x1801cb[_0x2ad4a9('0x25df')]:[],_0x529cc0[_0x4084e7][_0x2ad4a9('0x23b3')]({'id':_0x41da4e['report']['id']})[_0x2ad4a9('0x1714')];})[_0x5ed1ac('0x2788')](function(_0x540a61){_0x41da4e['rows']=_0x540a61;})['catch'](function(_0x28c55e){const _0x367357=_0x5ed1ac;console[_0x367357('0x10df')](_0x28c55e),_0x41da4e[_0x367357('0x5e8')]={'title':_0x28c55e[_0x367357('0x1b51')]?_0x367357('0x15d1')+_0x28c55e[_0x367357('0x1b51')]+_0x367357('0x1b0b')+_0x28c55e['statusText']:_0x367357('0x1b16'),'msg':_0x28c55e[_0x367357('0x11fc')]?_0x28c55e[_0x367357('0x11fc')]['message']:_0x28c55e[_0x367357('0x17df')](),'sql':_0x28c55e[_0x367357('0x11fc')]?_0x28c55e[_0x367357('0x11fc')][_0x367357('0x1734')]?_0x28c55e['data']['parent'][_0x367357('0x1b4e')]:_0x367357('0x168a'):_0x367357('0x168a')},_0xaa224c[_0x367357('0x5e8')](_0x41da4e[_0x367357('0x5e8')]);});}function _0x4fc93b(_0x1426b3,_0x17d1d6){const _0x15664e=_0x44b27c;return _0x59f37a()(_0x17d1d6,'YYYY-MM-DDTHH:mm:ssZ',!![])['isValid']()&&(_0x17d1d6=_0x59f37a()(_0x17d1d6,'')[_0x15664e('0x22b4')](_0x15664e('0xe8e'))),_0x17d1d6;}function _0x2aa3aa(){const _0x3765c2=_0x44b27c;_0x1f2a57[_0x3765c2('0x19d')]();}}const _0x403ac8=_0x71b9e0,_0x5f10b2=_0x18dd13['p']+'src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html',_0x4549e2=_0x18dd13['p']+'src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog.html',_0x58fbdf=_0x18dd13['p']+_0x34e79e('0x590'),_0x2662aa=_0x18dd13['p']+_0x34e79e('0x2115');_0x25df60[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x1580'),'$mdDialog',_0x34e79e('0x1382'),'$window',_0x34e79e('0x1a5c'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'treeReports',_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x25df60(_0x33ddbd,_0x45e95c,_0x1b1bdd,_0x4669b4,_0x3d2d7a,_0x561e99,_0x406951,_0x4a16b1,_0x2ee51b,_0x5ed96f,_0x248eb7,_0x46b3bc,_0x9b69bd){const _0x54c994=_0x34e79e,_0xf3488b=this;_0xf3488b[_0x54c994('0x9cb')]=_0x9b69bd[_0x54c994('0x24cc')](),_0xf3488b[_0x54c994('0x1d35')]={'count':0x0,'rows':[]},_0xf3488b[_0x54c994('0x63c')]=_0x4a16b1,_0xf3488b[_0x54c994('0xec9')]=_0x2ee51b&&_0x2ee51b[_0x54c994('0x338')]==0x1?_0x2ee51b[_0x54c994('0x25df')][0x0]:null,_0xf3488b[_0x54c994('0xe28')]=_0x9b69bd['parseCrudPermissions'](_0xf3488b[_0x54c994('0xec9')]?_0xf3488b['userProfileSection'][_0x54c994('0xe28')]:null),_0xf3488b['selectedReports']=[],_0xf3488b[_0x54c994('0x135a')]={'fields':_0x54c994('0x2622'),'limit':0xa,'page':0x1,'sort':_0x54c994('0x1cee')},_0xf3488b[_0x54c994('0x2204')]=null,_0xf3488b[_0x54c994('0x1cce')]='',_0xf3488b['customTree']=!![],_0xf3488b[_0x54c994('0x1f7e')]=_0x590891,_0xf3488b[_0x54c994('0x1342')]=_0x3e054a,_0xf3488b['previewdialog']=_0x27e82f,_0xf3488b[_0x54c994('0x1eef')]=_0x22d21f,_0xf3488b[_0x54c994('0x25ea')]=_0x1f2ffe,_0xf3488b['deleteconfirm']=_0x4259b8,_0xf3488b[_0x54c994('0x173b')]=_0x300a88,_0xf3488b['getReports']=_0x23adb6,_0xf3488b[_0x54c994('0x2302')]=_0x1e8a69,_0xf3488b['importReport']=_0x5c05e2,_0xf3488b[_0x54c994('0x27d8')]=_0x1465a2,_0xf3488b[_0x54c994('0x94c')]=_0x2a3ca0,_0xf3488b[_0x54c994('0xb1f')]=_0x534391,_0xf3488b[_0x54c994('0x12e3')]=_0x5f33c1,_0xf3488b[_0x54c994('0xdb7')]=_0x5d2bf3,_0xf3488b[_0x54c994('0x2345')]=_0x248eb7[_0x54c994('0x25df')][0x0]?angular[_0x54c994('0x2157')](_0x248eb7['rows'][0x0]['tree']):[],_0xf3488b[_0x54c994('0x23d6')]=_0x248eb7[_0x54c994('0x25df')][0x1]?angular[_0x54c994('0x2157')](_0x248eb7[_0x54c994('0x25df')][0x1]['tree']):[],_0xf3488b['treeDefaultConfig']=_0xcbd7aa(![]),_0xf3488b[_0x54c994('0x2551')]=_0xcbd7aa(!![]),_0xf3488b[_0x54c994('0x1950')]=_0x2e7a80(![]),_0xf3488b[_0x54c994('0x1b83')]=_0x2e7a80(!![]);function _0x590891(_0x253963){const _0x540c72=_0x54c994;_0x3d2d7a['go'](_0x540c72('0x25a0'),{'id':_0x253963['id'],'crudPermissions':_0xf3488b[_0x540c72('0xe28')]});}function _0x3e054a(_0x573b72,_0x44c4e2){const _0x450601=_0x54c994;_0x4669b4[_0x450601('0x2fa')]({'controller':_0x450601('0x46b'),'controllerAs':'vm','templateUrl':_0x5f10b2,'parent':angular['element'](_0x1b1bdd['body']),'targetEvent':_0x44c4e2,'clickOutsideToClose':!![],'locals':{'report':_0x573b72,'apiName':_0xf3488b['apiName'],'treeCustomData':_0xf3488b[_0x450601('0x1a49')][_0x450601('0x1270')](!![])['get_json']('#')}})[_0x450601('0x1ed8')](function(){});}function _0x27e82f(_0x595266,_0x9b6c1f){const _0x1c6a2e=_0x54c994;_0x4669b4['show']({'controller':_0x1c6a2e('0x340'),'controllerAs':'vm','templateUrl':_0x4549e2,'parent':angular[_0x1c6a2e('0x16b1')](_0x1b1bdd[_0x1c6a2e('0x945')]),'targetEvent':_0x9b6c1f,'clickOutsideToClose':!![],'locals':{'report':_0x595266,'apiName':_0xf3488b[_0x1c6a2e('0x2204')]}});}function _0x22d21f(_0x341ef7,_0x3746c7){const _0x1e8eb2=_0x54c994;_0x4669b4[_0x1e8eb2('0x2fa')]({'controller':_0x1e8eb2('0x6ad'),'controllerAs':'vm','templateUrl':_0x58fbdf,'parent':angular[_0x1e8eb2('0x16b1')](_0x1b1bdd[_0x1e8eb2('0x945')]),'targetEvent':_0x3746c7,'clickOutsideToClose':!![],'locals':{'report':_0x341ef7,'apiName':_0xf3488b[_0x1e8eb2('0x2204')],'currentPath':_0xf3488b[_0x1e8eb2('0x1cce')]}});}function _0x1f2ffe(_0x867fd9){const _0x4ff89c=_0x54c994;let _0x115282;_0x5ed96f[_0x4ff89c('0x1dd0')]['get']({'fields':_0x4ff89c('0xcbd'),'nolimit':!![]})[_0x4ff89c('0x1714')][_0x4ff89c('0x2788')](function(_0x4e7af3){const _0x182e86=_0x4ff89c;_0x115282=_0x283545()[_0x182e86('0x13cf')](_0x4e7af3[_0x182e86('0x25df')],'id');const _0x101508={'fields':_0x182e86('0x1d5a'),'nolimit':!![]};return _0x101508[_0xf3488b['apiName']===_0x182e86('0x193d')?_0x182e86('0x220f'):_0x182e86('0x1a36')]=_0x867fd9['id'],_0x5ed96f[_0x182e86('0x23ec')]['get'](_0x101508)['$promise'];})[_0x4ff89c('0x2788')](function(_0x113e71){const _0x208eca=_0x4ff89c;for(let _0x2c7849=0x0;_0x2c7849<_0x113e71[_0x208eca('0x25df')][_0x208eca('0x2566')];_0x2c7849+=0x1){_0x113e71[_0x208eca('0x25df')][_0x2c7849][_0x208eca('0x9a8')]&&(_0x113e71['rows'][_0x2c7849][_0x208eca('0x18da')]=_0x115282[_0x113e71[_0x208eca('0x25df')][_0x2c7849][_0x208eca('0x9a8')]][_0x208eca('0x22dc')],_0x113e71[_0x208eca('0x25df')][_0x2c7849]['custom']=!![]),delete _0x113e71[_0x208eca('0x25df')][_0x2c7849][_0x208eca('0x9a8')];}const _0x312227=_0x561e99[_0x208eca('0x11c4')]['createElement']('a');_0x312227[_0x208eca('0x186a')]='data:text/json;charset=utf-8,'+_0x561e99[_0x208eca('0x11a3')](angular[_0x208eca('0x2385')]({'name':_0x867fd9[_0x208eca('0x1a8d')],'description':_0x867fd9[_0x208eca('0x27b9')],'table':_0x867fd9[_0x208eca('0x26a9')],'conditions':_0x867fd9['conditions'],'joins':_0x867fd9['joins'],'fields':_0x113e71[_0x208eca('0x25df')]})),_0x312227['download']=_0x867fd9[_0x208eca('0x1a8d')]+_0x208eca('0x1096'),_0x312227[_0x208eca('0x159c')]='_self',_0x312227[_0x208eca('0x132a')](),_0x46b3bc['success']({'title':_0x208eca('0x104f'),'msg':_0x867fd9['name']?_0x867fd9[_0x208eca('0x1a8d')]+_0x208eca('0x2836'):''});})[_0x4ff89c('0x1cb5')](function(_0x2b80cc){const _0x1e65a4=_0x4ff89c;_0x46b3bc[_0x1e65a4('0x5e8')]({'title':_0x2b80cc[_0x1e65a4('0x1b51')]?'API:'+_0x2b80cc[_0x1e65a4('0x1b51')]+_0x1e65a4('0x1b0b')+_0x2b80cc[_0x1e65a4('0x22ce')]:'SYSTEM:DOWNLOADJSON','msg':_0x2b80cc[_0x1e65a4('0x11fc')]?JSON['stringify'](_0x2b80cc['data']):_0x2b80cc[_0x1e65a4('0x17df')]()});});}function _0x4259b8(_0x1cb323,_0x506d28){const _0x11a782=_0x54c994,_0x8be983=_0x4669b4[_0x11a782('0x112e')]()[_0x11a782('0x14e4')](_0x11a782('0x124a'))['htmlContent'](_0x11a782('0x1670')+_0x1cb323[_0x11a782('0x1a8d')]+_0x11a782('0x229e')+_0x11a782('0x27c7'))['ariaLabel'](_0x11a782('0x1857'))[_0x11a782('0x24d0')](_0x506d28)['ok']('OK')[_0x11a782('0x1801')](_0x11a782('0x1d8d'));_0x4669b4[_0x11a782('0x2fa')](_0x8be983)[_0x11a782('0x2788')](function(){_0x1465a2(_0x1cb323);},function(){console['log']('CANCEL');});}let _0xa8b048=!![],_0x5f4445=0x1;_0x33ddbd[_0x54c994('0x1662')](_0x54c994('0x1569'),function(_0xfbed90,_0x196dbc){const _0x5aa956=_0x54c994;_0xa8b048?_0x45e95c(function(){_0xa8b048=![];}):(!_0x196dbc&&(_0x5f4445=_0xf3488b[_0x5aa956('0x135a')][_0x5aa956('0x23f5')]),_0xfbed90!==_0x196dbc&&(_0xf3488b[_0x5aa956('0x135a')][_0x5aa956('0x23f5')]=0x1),!_0xfbed90&&(_0xf3488b['query']['page']=_0x5f4445),_0xf3488b[_0x5aa956('0xb10')]());}),_0x33ddbd[_0x54c994('0x1662')](_0x54c994('0xdec'),function(_0x1d50e3){const _0x2bfa4f=_0x54c994;_0xf3488b[_0x2bfa4f('0x4a')]&&_0xf3488b[_0x2bfa4f('0x4a')][_0x2bfa4f('0x1270')](!![])['search'](_0x1d50e3),_0xf3488b[_0x2bfa4f('0x1a49')]&&_0xf3488b[_0x2bfa4f('0x1a49')][_0x2bfa4f('0x1270')](!![])['search'](_0x1d50e3);});function _0x300a88(_0x5d2d7d){const _0x28091d=_0x54c994;_0xf3488b[_0x28091d('0x1d35')]=_0x5d2d7d||{'count':0x0,'rows':[]};}function _0x23adb6(){const _0x12c8ed=_0x54c994;_0xf3488b[_0x12c8ed('0x135a')][_0x12c8ed('0x19e')]=(_0xf3488b[_0x12c8ed('0x135a')][_0x12c8ed('0x23f5')]-0x1)*_0xf3488b[_0x12c8ed('0x135a')][_0x12c8ed('0x68e')];if(_0xf3488b[_0x12c8ed('0x2204')]){if(_0xf3488b[_0x12c8ed('0x9cb')][_0x12c8ed('0xb34')]===_0x12c8ed('0xe23')||_0xf3488b[_0x12c8ed('0xec9')][_0x12c8ed('0x1c0a')])_0xf3488b['promise']=_0x5ed96f[_0xf3488b[_0x12c8ed('0x2204')]][_0x12c8ed('0x1335')](_0xf3488b[_0x12c8ed('0x135a')],_0x300a88)[_0x12c8ed('0x1714')];else{let _0x202950=[];_0xf3488b[_0x12c8ed('0x1808')]=_0x5ed96f[_0xf3488b[_0x12c8ed('0x2204')]]['get'](_0xf3488b[_0x12c8ed('0x135a')])[_0x12c8ed('0x1714')][_0x12c8ed('0x2788')](function(_0x1cd5e0){const _0x457d67=_0x12c8ed;return _0x202950=_0x1cd5e0&&_0x1cd5e0[_0x457d67('0x25df')]?_0x1cd5e0[_0x457d67('0x25df')]:[],_0x202950['length']>0x0?_0x5ed96f[_0x457d67('0x1050')][_0x457d67('0x1335')]({'sectionId':_0xf3488b['userProfileSection']['id'],'type':_0xf3488b[_0x457d67('0x2204')]===_0x457d67('0x1b5c')?_0x457d67('0x13da'):_0x457d67('0xd66')})[_0x457d67('0x1714')][_0x457d67('0x2788')](function(_0xcaf3ab){const _0x134442=_0x457d67,_0x126334=_0xcaf3ab&&_0xcaf3ab[_0x134442('0x25df')]?_0xcaf3ab[_0x134442('0x25df')]:[];if(_0x126334[_0x134442('0x2566')]>0x0){const _0x24f744=[];return _0x202950[_0x134442('0x1534')](function(_0x2e7b11){const _0x4851e2=_0x134442,_0x1b0e2d=_0x283545()[_0x4851e2('0x20e8')](_0x126334,[_0x4851e2('0x2707'),_0x2e7b11['id']]);if(_0x1b0e2d)_0x24f744['push'](_0x2e7b11);}),_0x300a88({'count':_0x24f744[_0x134442('0x2566')],'rows':_0x24f744});}else return _0x300a88(null);}):_0x300a88(null);});}}}function _0x1e8a69(_0x494569,_0x1ab544){const _0x35bf91=_0x54c994;_0x4669b4[_0x35bf91('0x2fa')]({'controller':_0x35bf91('0x717'),'controllerAs':'vm','templateUrl':_0x2662aa,'parent':angular[_0x35bf91('0x16b1')](_0x1b1bdd[_0x35bf91('0x945')]),'targetEvent':_0x494569,'clickOutsideToClose':!![],'locals':{'report':_0x1ab544,'reports':_0xf3488b['reports'][_0x35bf91('0x25df')],'apiName':_0xf3488b[_0x35bf91('0x2204')],'currentNode':_0xf3488b[_0x35bf91('0x1a8f')],'setting':null,'crudPermissions':_0xf3488b[_0x35bf91('0xe28')]}});}function _0x5c05e2(_0x5e5ea5){const _0x9bc3e=_0x54c994;if(_0x5e5ea5[_0x9bc3e('0x3d5')]['type']===_0x9bc3e('0xb62')){const _0x2821e7=new FileReader();_0x2821e7['onload']=function(_0x56fa2e){const _0x13712b=_0x9bc3e;console[_0x13712b('0x10df')](_0x56fa2e[_0x13712b('0x159c')]['result']);try{let _0x1b4485=atob(_0x56fa2e['target']['result'][_0x13712b('0x1497')](',')[0x1]);_0x1b4485=angular['fromJson'](_0x1b4485),_0x5ed96f['analyticCustomReport'][_0x13712b('0xbd0')]({'name':_0x1b4485[_0x13712b('0x1a8d')],'description':_0x1b4485['description'],'table':_0x1b4485[_0x13712b('0x26a9')],'conditions':_0x1b4485[_0x13712b('0x2047')],'joins':_0x1b4485[_0x13712b('0x235c')],'parent':_0xf3488b['currentNode']['id']})[_0x13712b('0x1714')][_0x13712b('0x2788')](function(_0x2fc578){const _0xf71550=_0x13712b;_0xf3488b[_0xf71550('0x1d35')]['rows'][_0xf71550('0xc51')](_0x2fc578),_0x46b3bc[_0xf71550('0x173b')]({'title':_0xf71550('0x2a'),'msg':_0x2fc578[_0xf71550('0x1a8d')]?_0x2fc578[_0xf71550('0x1a8d')]+_0xf71550('0x24cf'):''});const _0x535173=_0x283545()[_0xf71550('0x155d')](_0x1b4485[_0xf71550('0x1578')],function(_0x4b2dc4){const _0x329c3c=_0xf71550;return _0x283545()[_0x329c3c('0x192a')]({},_0x4b2dc4,{'CustomReportId':_0x2fc578['id']});});return _0x5ed96f[_0xf71550('0x23ec')][_0xf71550('0x17cb')](_0x535173)[_0xf71550('0x1714')];})[_0x13712b('0x2788')](function(){const _0x12ac52=_0x13712b;_0x46b3bc[_0x12ac52('0x173b')]({'title':_0x12ac52('0xccc'),'msg':_0x12ac52('0x1b09')});})[_0x13712b('0x1cb5')](function(_0x5a235b){const _0x4b0b91=_0x13712b;_0x46b3bc['error']({'title':_0x5a235b[_0x4b0b91('0x1b51')]?_0x4b0b91('0x15d1')+_0x5a235b[_0x4b0b91('0x1b51')]+'\x20-\x20'+_0x5a235b[_0x4b0b91('0x22ce')]:'SYSTEM:GETanalyticReport','msg':_0x5a235b['data']?JSON[_0x4b0b91('0x1be0')](_0x5a235b['data']):_0x5a235b[_0x4b0b91('0x17df')]()});});}catch(_0x182408){console[_0x13712b('0x5e8')](_0x182408),_0x46b3bc[_0x13712b('0x5e8')]({'title':_0x13712b('0x942'),'msg':_0x182408[_0x13712b('0x17df')]()});}},_0x2821e7[_0x9bc3e('0x1ccc')](_0x5e5ea5[_0x9bc3e('0x3d5')]);}else _0x46b3bc[_0x9bc3e('0x5e8')]({'title':_0x9bc3e('0x12aa'),'msg':_0x9bc3e('0x250a')});}function _0x1465a2(_0x1d1707){const _0x4ee8be=_0x54c994;_0xf3488b[_0x4ee8be('0x2204')]&&_0x5ed96f[_0xf3488b['apiName']][_0x4ee8be('0x17c4')]({'id':_0x1d1707['id']})[_0x4ee8be('0x1714')][_0x4ee8be('0x2788')](function(){const _0x5bfa95=_0x4ee8be;_0x283545()[_0x5bfa95('0x1a90')](_0xf3488b['reports'][_0x5bfa95('0x25df')],{'id':_0x1d1707['id']}),_0xf3488b[_0x5bfa95('0x1d35')][_0x5bfa95('0x338')]-=0x1,!_0xf3488b['reports']['rows'][_0x5bfa95('0x2566')]&&_0xf3488b[_0x5bfa95('0xb10')](),_0x46b3bc[_0x5bfa95('0x173b')]({'title':'Report\x20deleted!','msg':_0x1d1707[_0x5bfa95('0x1a8d')]?_0x1d1707[_0x5bfa95('0x1a8d')]+_0x5bfa95('0x14d4'):''});})[_0x4ee8be('0x1cb5')](function(_0x32ffe6){const _0x581e8b=_0x4ee8be;if(_0x32ffe6[_0x581e8b('0x11fc')]&&_0x32ffe6['data'][_0x581e8b('0x25be')]&&_0x32ffe6[_0x581e8b('0x11fc')][_0x581e8b('0x25be')][_0x581e8b('0x2566')]){_0xf3488b['errors']=_0x32ffe6['data'][_0x581e8b('0x25be')]||[{'message':_0x32ffe6[_0x581e8b('0x17df')](),'type':_0x581e8b('0x17dd')}];for(let _0x2d7520=0x0;_0x2d7520<_0x32ffe6[_0x581e8b('0x11fc')][_0x581e8b('0x25be')]['length'];_0x2d7520++){_0x46b3bc[_0x581e8b('0x5e8')]({'title':_0x32ffe6[_0x581e8b('0x11fc')][_0x581e8b('0x25be')][_0x2d7520][_0x581e8b('0x1d7')],'msg':_0x32ffe6[_0x581e8b('0x11fc')][_0x581e8b('0x25be')][_0x2d7520][_0x581e8b('0x15e2')]});}}else _0x46b3bc[_0x581e8b('0x5e8')]({'title':_0x32ffe6[_0x581e8b('0x1b51')]?_0x581e8b('0x15d1')+_0x32ffe6[_0x581e8b('0x1b51')]+_0x581e8b('0x1b0b')+_0x32ffe6[_0x581e8b('0x22ce')]:_0x581e8b('0x17dd'),'msg':_0x32ffe6[_0x581e8b('0x11fc')]?JSON[_0x581e8b('0x1be0')](_0x32ffe6[_0x581e8b('0x11fc')]['message']):_0x32ffe6['message']||_0x32ffe6[_0x581e8b('0x17df')]()});});}function _0x2a3ca0(){const _0xc05d5f=_0x54c994,_0x4945f3=angular['copy'](_0xf3488b[_0xc05d5f('0x26a2')]);return _0xf3488b[_0xc05d5f('0x26a2')]=[],_0x4945f3;}function _0x534391(_0x52d022){const _0x19b140=_0x54c994,_0x289f3d=_0x4669b4[_0x19b140('0x112e')]()[_0x19b140('0x14e4')](_0x19b140('0x19ee'))['htmlContent'](_0x19b140('0x1670')+_0xf3488b[_0x19b140('0x26a2')][_0x19b140('0x2566')]+'\x20selected'+_0x19b140('0x27c7'))[_0x19b140('0x10bc')](_0x19b140('0xa2'))[_0x19b140('0x24d0')](_0x52d022)['ok']('OK')[_0x19b140('0x1801')](_0x19b140('0x1d8d'));_0x4669b4['show'](_0x289f3d)[_0x19b140('0x2788')](function(){const _0x44dab8=_0x19b140;_0xf3488b['selectedReports'][_0x44dab8('0x1534')](function(_0x352073){_0x1465a2(_0x352073);}),_0xf3488b[_0x44dab8('0x26a2')]=[];});}function _0x5f33c1(){const _0x2756ac=_0x54c994;_0xf3488b[_0x2756ac('0x26a2')]=[];}function _0x5d2bf3(){const _0x403745=_0x54c994;_0xf3488b[_0x403745('0x26a2')]=_0xf3488b['reports']['rows'];}function _0x2eab50(_0x35a092,_0xb80320){const _0x51a3f5=_0x54c994;_0xf3488b[_0x51a3f5('0x4a')][_0x51a3f5('0x1270')](!![])[_0x51a3f5('0x141a')](),_0xf3488b[_0x51a3f5('0x4a')]['jstree'](!![])[_0x51a3f5('0x1191')](),_0xf3488b[_0x51a3f5('0x1a8f')]=_0xb80320[_0x51a3f5('0x1059')],_0xf3488b[_0x51a3f5('0x1a8f')][_0x51a3f5('0x1d56')]=!![],_0xf3488b[_0x51a3f5('0x1cce')]=_0xf3488b[_0x51a3f5('0x1a49')]['jstree'](!![])['get_path'](_0xf3488b[_0x51a3f5('0x1a8f')])[_0x51a3f5('0x185f')]('/\x20'),_0xf3488b[_0x51a3f5('0x2204')]=_0x51a3f5('0x193d'),_0xf3488b['query']['parent']=_0xb80320[_0x51a3f5('0x1059')]['id'],_0x23adb6();}function _0x5bbe31(_0xda87ee,_0x359e6b){const _0x3a0d7b=_0x54c994;_0xf3488b['treeCustomInstance']['jstree'](!![])[_0x3a0d7b('0x141a')](),_0xf3488b[_0x3a0d7b('0x1a49')][_0x3a0d7b('0x1270')](!![])[_0x3a0d7b('0x1191')](),_0xf3488b[_0x3a0d7b('0x1a8f')]=_0x359e6b[_0x3a0d7b('0x1059')],_0xf3488b[_0x3a0d7b('0x1a8f')][_0x3a0d7b('0x1d56')]=![],_0xf3488b[_0x3a0d7b('0x1cce')]=_0xf3488b[_0x3a0d7b('0x4a')][_0x3a0d7b('0x1270')](!![])[_0x3a0d7b('0x713')](_0xf3488b[_0x3a0d7b('0x1a8f')])[_0x3a0d7b('0x185f')]('/\x20'),_0xf3488b[_0x3a0d7b('0x2204')]=_0x3a0d7b('0x1b5c'),_0xf3488b[_0x3a0d7b('0x135a')][_0x3a0d7b('0x1734')]=_0x359e6b[_0x3a0d7b('0x1059')]['id'],_0x23adb6();}function _0x41d31c(_0x513541,_0x5e8215){const _0x23de5b=_0x54c994,_0x4d2164=angular['toJson'](_0xf3488b[_0x23de5b('0x1a49')][_0x23de5b('0x1270')](!![])['get_json']('#'));_0x5ed96f[_0x23de5b('0x1dbc')][_0x23de5b('0x2740')]({'id':0x2,'tree':_0x4d2164})[_0x23de5b('0x1714')]['then'](function(){const _0x231d6d=_0x23de5b;_0x248eb7[_0x231d6d('0x25df')][0x1]&&(_0x248eb7['rows'][0x1][_0x231d6d('0xa49')]=_0x4d2164),_0x46b3bc['success']({'title':_0x231d6d('0x1a26'),'msg':_0x5e8215[_0x231d6d('0x1059')][_0x231d6d('0x16db')]?_0x5e8215[_0x231d6d('0x1059')][_0x231d6d('0x16db')]+_0x231d6d('0x6f8'):_0x231d6d('0x16d4')});})['catch'](function(_0x156754){const _0x1dc4ed=_0x23de5b;_0x46b3bc[_0x1dc4ed('0x5e8')]({'title':_0x156754[_0x1dc4ed('0x1b51')]?'API:'+_0x156754[_0x1dc4ed('0x1b51')]+'\x20-\x20'+_0x156754['statusText']:'SYSTEM:UPDATEanalyticTreeReport','msg':_0x156754['data']?JSON[_0x1dc4ed('0x1be0')](_0x156754[_0x1dc4ed('0x11fc')]):_0x156754[_0x1dc4ed('0x17df')]()});});}function _0xcbd7aa(_0x4c372b){const _0x3b0c33=_0x54c994;return{'core':{'multiple':![],'animation':!![],'error':function(_0x4761e0){const _0x5e54f8=a0_0x14e7;console[_0x5e54f8('0x5e8')](_0x5e54f8('0x1ae8')+angular[_0x5e54f8('0x2385')](_0x4761e0));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x4c372b?[_0x3b0c33('0x2082'),_0x3b0c33('0x6e7'),_0x3b0c33('0x470'),'state','wholerow']:[_0x3b0c33('0x470'),_0x3b0c33('0x249b'),'wholerow'],'contextmenu':{'items':function(_0x5df899){const _0x4cb95e=_0x3b0c33,_0x1c2472={};return _0xf3488b[_0x4cb95e('0xe28')][_0x4cb95e('0x21b7')]&&_0x283545()['assign'](_0x1c2472,{'create':{'label':_0x406951[_0x4cb95e('0x1b11')](_0x4cb95e('0x17af')),'action':function(){const _0x1cf6e5=_0x4cb95e;_0x5df899=_0xf3488b[_0x1cf6e5('0x1a49')][_0x1cf6e5('0x1270')](!![])['create_node'](_0x5df899),_0xf3488b[_0x1cf6e5('0x1a49')][_0x1cf6e5('0x1270')](!![])['edit'](_0x5df899);}},'rename':{'_disabled':_0x5df899[_0x4cb95e('0x1734')]==='#','label':_0x406951[_0x4cb95e('0x1b11')](_0x4cb95e('0xc0')),'action':function(){const _0x513635=_0x4cb95e;_0xf3488b[_0x513635('0x1a49')][_0x513635('0x1270')](!![])['edit'](_0x5df899);}}}),_0xf3488b['crudPermissions'][_0x4cb95e('0x98b')]&&_0x283545()[_0x4cb95e('0x2462')](_0x1c2472,{'remove':{'_disabled':_0x5df899[_0x4cb95e('0x1734')]==='#','label':_0x406951[_0x4cb95e('0x1b11')](_0x4cb95e('0x27d')),'action':function(){const _0x13e7fa=_0x4cb95e,_0x25e825=_0x4669b4[_0x13e7fa('0x112e')]()[_0x13e7fa('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?')['htmlContent'](_0x13e7fa('0x1670')+(_0x5df899[_0x13e7fa('0x16db')]?_0x5df899['text']:'Node')+_0x13e7fa('0x229e')+_0x13e7fa('0xce5'))['ariaLabel'](_0x13e7fa('0xb79'))['ok']('OK')['cancel'](_0x13e7fa('0x1d8d'));_0x4669b4[_0x13e7fa('0x2fa')](_0x25e825)[_0x13e7fa('0x2788')](function(){const _0x4722b7=_0x13e7fa;let _0x5a61cd=_0xf3488b[_0x4722b7('0x1a49')][_0x4722b7('0x1270')](!![])[_0x4722b7('0x1de0')](_0x5df899);_0x5a61cd=_0xf3488b['treeCustomInstance'][_0x4722b7('0x1270')](!![])[_0x4722b7('0x473')](_0x5a61cd),_0xf3488b[_0x4722b7('0x1a49')][_0x4722b7('0x1270')](!![])[_0x4722b7('0x13d8')](_0x5df899),_0x26e8a8([_0x5df899['id']][_0x4722b7('0x1282')](_0x5df899[_0x4722b7('0x2267')]||[])),_0xf3488b[_0x4722b7('0x1a49')][_0x4722b7('0x1270')](!![])['select_node'](_0x5a61cd);});}}}),_0x1c2472;}}};}function _0x26e8a8(_0x17bfe7){const _0x1de5d9=_0x54c994;return _0x5ed96f[_0x1de5d9('0x193d')][_0x1de5d9('0x1335')]({'parent':_0x17bfe7[_0x1de5d9('0x185f')](','),'fields':_0x1de5d9('0x1338')})['$promise'][_0x1de5d9('0x2788')](function(_0x4225ea){_0x4225ea&&_0x4225ea['rows']&&_0x4225ea['rows']['forEach'](function(_0x30383b){_0x1465a2(_0x30383b);});})[_0x1de5d9('0x1cb5')](function(_0x120440){const _0x5f4d66=_0x1de5d9;_0x46b3bc[_0x5f4d66('0x5e8')]({'title':_0x120440[_0x5f4d66('0x1b51')]?_0x5f4d66('0x15d1')+_0x120440['status']+'\x20-\x20'+_0x120440[_0x5f4d66('0x22ce')]:_0x5f4d66('0x23bc'),'msg':_0x120440['data']?JSON['stringify'](_0x120440[_0x5f4d66('0x11fc')]):_0x120440['toString']()});});}function _0x2e7a80(_0x4a701b){return _0x4a701b?{'create_node':_0x41d31c,'rename_node':_0x41d31c,'move_node':_0x41d31c,'delete_node':_0x41d31c,'select_node':_0x2eab50}:{'select_node':_0x5bbe31};}}const _0x511f11=_0x25df60,_0x51014f=_0x18dd13['p']+'src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html';_0xf966b2[_0x34e79e('0x2d9')]=[_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),'report',_0x34e79e('0x519'),_0x34e79e('0x2204'),_0x34e79e('0x1580'),_0x34e79e('0x1cce')];function _0xf966b2(_0x4cb878,_0x20fe4d,_0x327dad,_0x21ebe9,_0x1e5d2e,_0x3038bd,_0x3dc04e,_0x13a215){const _0xa51ffc=_0x34e79e,_0xabd80b=this;_0xabd80b[_0xa51ffc('0x25be')]=[],_0xabd80b['report']=angular['copy'](_0x21ebe9),_0xabd80b[_0xa51ffc('0xa5f')]={},_0xabd80b[_0xa51ffc('0x15d8')]=_0x427b21,_0xabd80b[_0xa51ffc('0xca7')]=_0x179afb,_0xabd80b[_0xa51ffc('0x11f8')]=_0x5c2ebe,_0x5c2ebe();function _0x5c2ebe(){const _0x5b95fe=_0xa51ffc;_0xabd80b[_0x5b95fe('0xa5f')]={'id':_0xabd80b['report']['id'],'name':_0xabd80b['report'][_0x5b95fe('0x1a8d')],'startDate':new Date(_0x59f37a()()[_0x5b95fe('0x13e4')](_0x5b95fe('0xf'))),'endDate':new Date(_0x59f37a()()[_0x5b95fe('0x142e')](_0x5b95fe('0xf'))),'output':_0x5b95fe('0x1b48'),'fullPath':_0x13a215?_0x13a215+'/'+_0xabd80b['report'][_0x5b95fe('0x1a8d')]:_0xabd80b[_0x5b95fe('0x148b')][_0x5b95fe('0x1a8d')]};}function _0x427b21(_0x17e83c){const _0x5a52f7=_0xa51ffc;_0xabd80b['errors']=[],_0xabd80b[_0x5a52f7('0x26e6')]=_0x283545()['assign']({},_0xabd80b[_0x5a52f7('0xa5f')],{'startDate':_0x59f37a()(_0xabd80b['export'][_0x5a52f7('0x26ff')])[_0x5a52f7('0x22b4')](_0x5a52f7('0xe8e')),'endDate':_0x59f37a()(_0xabd80b['export'][_0x5a52f7('0xfb7')])[_0x5a52f7('0x22b4')](_0x5a52f7('0xe8e'))}),_0x1e5d2e[_0x3038bd][_0x5a52f7('0xc2b')](_0xabd80b[_0x5a52f7('0x26e6')])[_0x5a52f7('0x1714')][_0x5a52f7('0x2788')](function(_0x26836c){const _0x44a488=_0x5a52f7;_0xabd80b[_0x44a488('0xa5f')][_0x44a488('0x1749')]===_0x44a488('0xb16')?_0x20fe4d[_0x44a488('0x2fa')]({'controller':_0x44a488('0x15e9'),'controllerAs':'vm','templateUrl':_0x51014f,'parent':angular[_0x44a488('0x16b1')](_0x3dc04e['body']),'targetEvent':_0x17e83c,'skipHide':!![],'locals':{'apiName':_0x3038bd,'exportDate':_0xabd80b['exportDate'],'results':_0x26836c},'resolve':{'columns':[_0x44a488('0x1318'),function(_0x367346){const _0x55f7a6=_0x44a488,_0x59cbab={'fields':_0x55f7a6('0xb08'),'nolimit':!![]};return _0x59cbab[_0x3038bd===_0x55f7a6('0x193d')?'CustomReportId':_0x55f7a6('0x1a36')]=_0xabd80b[_0x55f7a6('0x148b')]['id'],_0x367346[_0x55f7a6('0x2322')]('analyticFieldReport@get',_0x59cbab);}]}}):(_0x327dad['success']({'title':_0x44a488('0x230c'),'msg':_0xabd80b[_0x44a488('0x148b')]['name']?_0xabd80b[_0x44a488('0x148b')][_0x44a488('0x1a8d')]+_0x44a488('0x1edc'):''}),_0x179afb());})[_0x5a52f7('0x1cb5')](function(_0x41ce18){const _0x1d1cb2=_0x5a52f7;_0x327dad['error']({'title':_0x41ce18[_0x1d1cb2('0x1b51')]?_0x1d1cb2('0x15d1')+_0x41ce18[_0x1d1cb2('0x1b51')]+'\x20-\x20'+_0x41ce18[_0x1d1cb2('0x22ce')]:'SYSTEM:DESCRIBE','msg':_0x41ce18[_0x1d1cb2('0x11fc')]?JSON['stringify'](_0x41ce18['data'][_0x1d1cb2('0x15e2')]):_0x41ce18[_0x1d1cb2('0x17df')]()});});}function _0x179afb(){const _0x55f283=_0xa51ffc;_0x20fe4d[_0x55f283('0x19d')]();}}const _0x361258=_0xf966b2;_0x409145[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),'api','columns','results',_0x34e79e('0x2204'),_0x34e79e('0x26e6')];function _0x409145(_0x2eec6e,_0x2c80db,_0x2b13fa,_0x319d05,_0x212738,_0x3c261c,_0x5ee4ce){const _0x104194=_0x34e79e,_0x716cca=this;_0x716cca[_0x104194('0x25be')]=[],_0x716cca[_0x104194('0x1fd0')]=_0x319d05?_0x319d05[_0x104194('0x25df')]:[],_0x716cca['results']=_0x212738||{'rows':[],'count':0x0},_0x716cca[_0x104194('0x135a')]={'limit':0xa,'page':0x1},_0x716cca['closeDialog']=_0x4d0b2b,_0x716cca[_0x104194('0x2122')]=_0x493080,_0x716cca['valueReplacer']=_0x38a6c5;function _0x493080(){const _0x4b6307=_0x104194;_0x5ee4ce[_0x4b6307('0x19e')]=(_0x716cca['query'][_0x4b6307('0x23f5')]-0x1)*_0x716cca[_0x4b6307('0x135a')]['limit'],_0x5ee4ce[_0x4b6307('0x68e')]=_0x716cca['query']['limit'],_0x716cca['promise']=_0x2b13fa[_0x3c261c][_0x4b6307('0xc2b')](_0x5ee4ce,_0x32f662)[_0x4b6307('0x1714')];}function _0x38a6c5(_0x376ef0,_0x32f4ac){const _0x18fe01=_0x104194;return _0x59f37a()(_0x32f4ac,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x18fe01('0x68d')]()&&(_0x32f4ac=_0x59f37a()(_0x32f4ac,'')[_0x18fe01('0x22b4')](_0x18fe01('0xe8e'))),_0x32f4ac;}function _0x32f662(_0x30517b){const _0x5acb5f=_0x104194;_0x716cca[_0x5acb5f('0xc64')]=_0x30517b||{'count':0x0,'rows':[]};}function _0x4d0b2b(){_0x2eec6e['hide']();}}const _0x21cf4a=_0x409145;_0x3f1c1a['$inject']=[_0x34e79e('0xf2d')];function _0x3f1c1a(_0x2fb683){const _0x31c18=_0x34e79e;_0x2fb683[_0x31c18('0x249b')]('app.analytics.reports',{'url':'/reports','views':{'content@app':{'templateUrl':_0x30746a,'controller':_0x31c18('0x207d')}},'resolve':{'treeReports':['apiResolver',function(_0x209cda){const _0x38a657=_0x31c18;return _0x209cda[_0x38a657('0x2322')]('analyticTreeReport@get',{'fields':_0x38a657('0xae9'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x31c18('0x1b04'),function(_0x244880,_0x1a633c){const _0x26ddb4=_0x31c18;return _0x244880[_0x26ddb4('0x2322')](_0x26ddb4('0x231d'),{'fields':_0x26ddb4('0x3f0'),'id':_0x1a633c[_0x26ddb4('0x24cc')]()[_0x26ddb4('0x237f')]});}],'userProfileSection':[_0x31c18('0x1318'),_0x31c18('0x1b04'),function(_0x2916fb,_0x236be4){const _0x2eb981=_0x31c18;return _0x2916fb[_0x2eb981('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x236be4[_0x2eb981('0x24cc')]()[_0x2eb981('0x237f')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x31c18('0x1ce4')})[_0x31c18('0x249b')](_0x31c18('0x25a0'),{'url':_0x31c18('0x206b'),'views':{'content@app':{'templateUrl':_0x179d15,'controller':_0x31c18('0x1ec5')}},'resolve':{'report':[_0x31c18('0x1318'),_0x31c18('0xad0'),'$q',_0x31c18('0x1104'),function(_0x473c04,_0x348af5,_0x56b993,_0x5e43a5){const _0x2c2559=_0x31c18;let _0x3139c1;return _0x473c04[_0x2c2559('0x2322')]('analyticCustomReport@get',{'fields':'createdAt,updatedAt,id,name,description,table,conditions,joins','id':_0x348af5['id']})['then'](function(_0x204f5b){const _0x3b62c2=_0x2c2559,_0x158f93=[];_0x3139c1=_0x204f5b;if(_0x3139c1[_0x3b62c2('0x235c')])try{_0x3139c1[_0x3b62c2('0x235c')]=JSON[_0x3b62c2('0xe0b')](_0x3139c1[_0x3b62c2('0x235c')]);for(let _0x328cd0=0x0;_0x328cd0<_0x3139c1[_0x3b62c2('0x235c')][_0x3b62c2('0x2566')];_0x328cd0+=0x1){_0x158f93['push'](_0x5e43a5['getColumns'](_0x3139c1[_0x3b62c2('0x235c')][_0x328cd0][_0x3b62c2('0x38f')]));}}catch(_0x1054db){console[_0x3b62c2('0x10df')](_0x1054db);}return _0x56b993[_0x3b62c2('0x1def')](_0x158f93);})[_0x2c2559('0x2788')](function(_0x4bab94){const _0x570728=_0x2c2559;for(let _0x178b57=0x0;_0x178b57<_0x4bab94['length'];_0x178b57+=0x1){_0x3139c1[_0x570728('0x235c')][_0x178b57][_0x570728('0x251f')]=_0x283545()['difference'](_0x283545()[_0x570728('0x2163')](_0x4bab94[_0x178b57]),[_0x570728('0x1714'),_0x570728('0x187a')]);}return _0x3139c1;});}],'userProfileSection':['apiResolver',_0x31c18('0x1b04'),function(_0x2c084f,_0x379bf7){const _0x59df80=_0x31c18;return _0x2c084f[_0x59df80('0x2322')](_0x59df80('0x22ca'),{'fields':_0x59df80('0xe2c'),'userProfileId':_0x379bf7['getCurrentUser']()[_0x59df80('0x237f')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':'analytics'});}angular['module'](_0x34e79e('0xf59'),[_0x34e79e('0x193e')])[_0x34e79e('0x1a22')](_0x3f1c1a)[_0x34e79e('0xb44')](_0x34e79e('0x46b'),_0x10fffe)[_0x34e79e('0xb44')](_0x34e79e('0x717'),_0x2cb7a7)[_0x34e79e('0xb44')](_0x34e79e('0x1b57'),_0x3c6645)[_0x34e79e('0x227e')](_0x34e79e('0x1104'),_0x39a11f)[_0x34e79e('0xb44')]('CreateOrEditReportFieldDialogController',_0x42f7e9)['controller']('ReportFieldsController',_0x49595b)[_0x34e79e('0x227e')](_0x34e79e('0x1301'),_0x299b52)[_0x34e79e('0xb44')](_0x34e79e('0x28e'),_0x4fc3aa)[_0x34e79e('0xb44')](_0x34e79e('0x340'),_0x403ac8)[_0x34e79e('0xb44')](_0x34e79e('0xb17'),_0x511f11)['controller'](_0x34e79e('0x6ad'),_0x361258)['controller'](_0x34e79e('0x15e9'),_0x21cf4a),_0x172fc9[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0xf7d'),_0x34e79e('0x2d0'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x172fc9(_0x4a2bd3,_0x17208d,_0x36d309,_0x5e1346,_0x340a28,_0x4fcafe,_0x48da8c,_0x472452,_0x2c54f8,_0x3ff9cb,_0x2bb9c8,_0x1ef880,_0x256940,_0x36b9b0){const _0x449fcb=_0x34e79e,_0x487c8a=this;_0x487c8a['currentUser']=_0x2bb9c8['getCurrentUser'](),_0x487c8a[_0x449fcb('0x25be')]=[],_0x487c8a[_0x449fcb('0x1af0')]=_0x256940,_0x487c8a['license']=_0x1ef880,_0x487c8a[_0x449fcb('0xe28')]=_0x36b9b0,_0x487c8a['hasModulePermissions']={},_0x487c8a[_0x449fcb('0x18ad')]=_0x487c8a[_0x449fcb('0x1af0')]&&_0x487c8a['setting'][_0x449fcb('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x487c8a['title']=_0x449fcb('0x233b'),_0x487c8a[_0x449fcb('0x2d0')]=angular['copy'](_0x2c54f8),_0x487c8a[_0x449fcb('0xf7d')]=_0x472452,_0x487c8a[_0x449fcb('0x244a')]=![];!_0x487c8a[_0x449fcb('0x2d0')]&&(_0x487c8a['extractedReport']={},_0x487c8a[_0x449fcb('0x14e4')]=_0x449fcb('0xfa4'),_0x487c8a[_0x449fcb('0x244a')]=!![]);_0x487c8a[_0x449fcb('0x4a5')]=_0x3af8fd,_0x487c8a[_0x449fcb('0x1645')]=_0x37e90b,_0x487c8a[_0x449fcb('0x2103')]=_0x33ba84,_0x487c8a[_0x449fcb('0x2601')]=_0x4f0dce,_0x487c8a[_0x449fcb('0xca7')]=_0x15a947;function _0x3af8fd(){const _0x8cdd49=_0x449fcb;_0x487c8a[_0x8cdd49('0x25be')]=[],_0x3ff9cb[_0x8cdd49('0x1cf4')][_0x8cdd49('0xbd0')](_0x487c8a['extractedReport'])[_0x8cdd49('0x1714')][_0x8cdd49('0x2788')](function(_0x28ebda){const _0x48a3d6=_0x8cdd49;_0x487c8a['extractedReports']['unshift'](_0x28ebda[_0x48a3d6('0x1cbf')]()),_0x48da8c[_0x48a3d6('0x173b')]({'title':'ExtractedReport\x20properly\x20created','msg':_0x487c8a['extractedReport'][_0x48a3d6('0x1a8d')]?_0x487c8a[_0x48a3d6('0x2d0')][_0x48a3d6('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x15a947(_0x28ebda);})['catch'](function(_0x14a031){const _0x4f38a6=_0x8cdd49;if(_0x14a031[_0x4f38a6('0x11fc')]&&_0x14a031[_0x4f38a6('0x11fc')][_0x4f38a6('0x25be')]&&_0x14a031[_0x4f38a6('0x11fc')]['errors'][_0x4f38a6('0x2566')]){_0x487c8a['errors']=_0x14a031['data']['errors']||[{'message':_0x14a031[_0x4f38a6('0x17df')](),'type':_0x4f38a6('0x1e0b')}];for(let _0x410a3a=0x0;_0x410a3a<_0x14a031[_0x4f38a6('0x11fc')][_0x4f38a6('0x25be')]['length'];_0x410a3a+=0x1){_0x48da8c[_0x4f38a6('0x5e8')]({'title':_0x14a031['data'][_0x4f38a6('0x25be')][_0x410a3a][_0x4f38a6('0x1d7')],'msg':_0x14a031[_0x4f38a6('0x11fc')][_0x4f38a6('0x25be')][_0x410a3a]['message']});}}else _0x48da8c[_0x4f38a6('0x5e8')]({'title':_0x14a031[_0x4f38a6('0x1b51')]?_0x4f38a6('0x15d1')+_0x14a031[_0x4f38a6('0x1b51')]+'\x20-\x20'+_0x14a031[_0x4f38a6('0x22ce')]:_0x4f38a6('0x1e0b'),'msg':_0x14a031[_0x4f38a6('0x11fc')]?JSON[_0x4f38a6('0x1be0')](_0x14a031[_0x4f38a6('0x11fc')][_0x4f38a6('0x15e2')]):_0x14a031[_0x4f38a6('0x17df')]()});});}function _0x37e90b(){const _0x166988=_0x449fcb;_0x487c8a[_0x166988('0x25be')]=[],_0x3ff9cb['analyticExtractedReport'][_0x166988('0x2740')]({'id':_0x487c8a[_0x166988('0x2d0')]['id']},_0x487c8a[_0x166988('0x2d0')])[_0x166988('0x1714')]['then'](function(_0x3ec264){const _0x356a19=_0x166988,_0x33742e=_0x283545()[_0x356a19('0x20e8')](_0x487c8a[_0x356a19('0xf7d')],{'id':_0x3ec264['id']});_0x33742e&&_0x283545()['merge'](_0x33742e,_0x283545()['pick'](_0x3ec264[_0x356a19('0x1cbf')](),_0x283545()[_0x356a19('0x2163')](_0x33742e))),_0x48da8c[_0x356a19('0x173b')]({'title':'ExtractedReport\x20properly\x20saved!','msg':_0x487c8a[_0x356a19('0x2d0')]['name']?_0x487c8a[_0x356a19('0x2d0')][_0x356a19('0x1a8d')]+_0x356a19('0x24cf'):''}),_0x15a947(_0x3ec264);})['catch'](function(_0x1f21fb){const _0x426ccb=_0x166988;if(_0x1f21fb['data']&&_0x1f21fb[_0x426ccb('0x11fc')]['errors']&&_0x1f21fb[_0x426ccb('0x11fc')]['errors']['length']){_0x487c8a[_0x426ccb('0x25be')]=_0x1f21fb[_0x426ccb('0x11fc')][_0x426ccb('0x25be')]||[{'message':_0x1f21fb[_0x426ccb('0x17df')](),'type':_0x426ccb('0x966')}];for(let _0x2b3812=0x0;_0x2b3812<_0x1f21fb[_0x426ccb('0x11fc')]['errors'][_0x426ccb('0x2566')];_0x2b3812++){_0x48da8c[_0x426ccb('0x5e8')]({'title':_0x1f21fb['data']['errors'][_0x2b3812][_0x426ccb('0x1d7')],'msg':_0x1f21fb[_0x426ccb('0x11fc')][_0x426ccb('0x25be')][_0x2b3812]['message']});}}else _0x48da8c[_0x426ccb('0x5e8')]({'title':_0x1f21fb[_0x426ccb('0x1b51')]?_0x426ccb('0x15d1')+_0x1f21fb[_0x426ccb('0x1b51')]+_0x426ccb('0x1b0b')+_0x1f21fb[_0x426ccb('0x22ce')]:_0x426ccb('0x966'),'msg':_0x1f21fb[_0x426ccb('0x11fc')]?JSON[_0x426ccb('0x1be0')](_0x1f21fb[_0x426ccb('0x11fc')][_0x426ccb('0x15e2')]):_0x1f21fb[_0x426ccb('0x17df')]()});});}function _0x33ba84(_0xf5c6ed){const _0x5ba482=_0x449fcb;_0x487c8a[_0x5ba482('0x25be')]=[];const _0x4b4abd=_0x5e1346['confirm']()[_0x5ba482('0x14e4')]('Are\x20you\x20sure?')[_0x5ba482('0x1c98')](_0x5ba482('0x1666'))['ariaLabel'](_0x5ba482('0x11e6'))['ok'](_0x5ba482('0x2786'))[_0x5ba482('0x1801')](_0x5ba482('0x1481'))['targetEvent'](_0xf5c6ed);_0x5e1346[_0x5ba482('0x2fa')](_0x4b4abd)[_0x5ba482('0x2788')](function(){const _0x3307e6=_0x5ba482;_0x3ff9cb[_0x3307e6('0x1cf4')][_0x3307e6('0x17c4')]({'id':_0x487c8a[_0x3307e6('0x2d0')]['id']})['$promise']['then'](function(){const _0x415080=_0x3307e6;_0x283545()[_0x415080('0x1a90')](_0x487c8a[_0x415080('0xf7d')],{'id':_0x487c8a[_0x415080('0x2d0')]['id']}),_0x48da8c[_0x415080('0x173b')]({'title':_0x415080('0xbc0'),'msg':(_0x487c8a['extractedReport'][_0x415080('0x1a8d')]||'extractedReport')+'\x20has\x20been\x20deleted!'}),_0x15a947(_0x487c8a[_0x415080('0x2d0')]);})['catch'](function(_0x4e3b51){const _0x569f63=_0x3307e6;if(_0x4e3b51[_0x569f63('0x11fc')]&&_0x4e3b51[_0x569f63('0x11fc')]['errors']&&_0x4e3b51[_0x569f63('0x11fc')][_0x569f63('0x25be')][_0x569f63('0x2566')]){_0x487c8a[_0x569f63('0x25be')]=_0x4e3b51[_0x569f63('0x11fc')][_0x569f63('0x25be')]||[{'message':_0x4e3b51['toString'](),'type':_0x569f63('0xd17')}];for(let _0x558f60=0x0;_0x558f60<_0x4e3b51[_0x569f63('0x11fc')][_0x569f63('0x25be')][_0x569f63('0x2566')];_0x558f60++){_0x48da8c[_0x569f63('0x5e8')]({'title':_0x4e3b51[_0x569f63('0x11fc')][_0x569f63('0x25be')][_0x558f60][_0x569f63('0x1d7')],'msg':_0x4e3b51['data'][_0x569f63('0x25be')][_0x558f60][_0x569f63('0x15e2')]});}}else _0x48da8c[_0x569f63('0x5e8')]({'title':_0x4e3b51[_0x569f63('0x1b51')]?'API:'+_0x4e3b51[_0x569f63('0x1b51')]+_0x569f63('0x1b0b')+_0x4e3b51['statusText']:_0x569f63('0xd17'),'msg':_0x4e3b51[_0x569f63('0x11fc')]?JSON[_0x569f63('0x1be0')](_0x4e3b51[_0x569f63('0x11fc')][_0x569f63('0x15e2')]):_0x4e3b51[_0x569f63('0x15e2')]||_0x4e3b51[_0x569f63('0x17df')]()});});},function(){});}function _0x4f0dce(_0x69bea){return _0x69bea===null?undefined:new Date(_0x69bea);}function _0x15a947(_0x27141e){const _0x197975=_0x449fcb;_0x5e1346[_0x197975('0x19d')](_0x27141e);}}const _0x4875e1=_0x172fc9,_0x4a96ad=_0x18dd13['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html';_0x50f87f['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0xf7d'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x50f87f(_0x4c231e,_0x50f840,_0x346318,_0x395a9b,_0x5ef2ae,_0x3d87ef,_0x1f4532,_0x3b6845,_0x2a4868,_0x5a45fd,_0x250cb8,_0x34a8a4,_0x3638f2,_0x195200,_0x3d38e1,_0x4c1ef1,_0x38635b){const _0x4acb06=_0x34e79e,_0x5c4bcf=this;_0x5c4bcf[_0x4acb06('0x130d')]=_0x4c1ef1,_0x5c4bcf[_0x4acb06('0x1af0')]=_0x38635b,_0x5c4bcf['currentUser']=_0x3d38e1[_0x4acb06('0x24cc')](),_0x5c4bcf[_0x4acb06('0xf7d')]=_0x2a4868||{'count':0x0,'rows':[]},_0x5c4bcf['userProfile']=_0x5a45fd,_0x5c4bcf[_0x4acb06('0xec9')]=_0x250cb8&&_0x250cb8[_0x4acb06('0x338')]==0x1?_0x250cb8[_0x4acb06('0x25df')][0x0]:null,_0x5c4bcf[_0x4acb06('0xe28')]=_0x3d38e1['parseCrudPermissions'](_0x5c4bcf['userProfileSection']?_0x5c4bcf['userProfileSection']['crudPermissions']:null),_0x5c4bcf['table']=_0x4acb06('0xf7d'),_0x5c4bcf['listOrder']='',_0x5c4bcf[_0x4acb06('0x25e2')]=null,_0x5c4bcf[_0x4acb06('0x233')]=[],_0x5c4bcf['query']={'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':_0x4acb06('0x1cee'),'limit':0xa,'page':0x1},_0x5c4bcf[_0x4acb06('0x23af')]=_0x559dc2,_0x5c4bcf[_0x4acb06('0x17f5')]=_0x321e5d,_0x5c4bcf[_0x4acb06('0x1e5')]=_0x59a6b9,_0x5c4bcf[_0x4acb06('0x173b')]=_0xe24615,_0x5c4bcf[_0x4acb06('0x27e4')]=_0x2c78aa,_0x5c4bcf[_0x4acb06('0x1b89')]=_0x37b6e7,_0x5c4bcf[_0x4acb06('0x2103')]=_0x68db2c,_0x5c4bcf[_0x4acb06('0x182c')]=_0x10fbee,_0x5c4bcf[_0x4acb06('0x164c')]=_0x5cd2c7,_0x5c4bcf[_0x4acb06('0x542')]=_0x13912e,_0x5c4bcf['selectAllExtractedReports']=_0x48961a;function _0x559dc2(_0x554eac,_0x312eec){const _0x2325c7=_0x4acb06;_0x5ef2ae[_0x2325c7('0x2fa')]({'controller':_0x2325c7('0x5d3'),'controllerAs':'vm','templateUrl':_0x4a96ad,'parent':angular[_0x2325c7('0x16b1')](_0x3d87ef['body']),'targetEvent':_0x312eec,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x554eac,'extractedReports':_0x5c4bcf[_0x2325c7('0xf7d')][_0x2325c7('0x25df')],'license':_0x5c4bcf['license'],'setting':null,'crudPermissions':_0x5c4bcf[_0x2325c7('0xe28')]}});}function _0x321e5d(_0x7fdc76){const _0x30050e=_0x4acb06;return _0x34a8a4[_0x30050e('0x1cf4')][_0x30050e('0x1486')]({'id':_0x7fdc76['id']})[_0x30050e('0x1714')][_0x30050e('0x2788')](function(_0x1f8837){const _0x2054b1=_0x30050e,_0x42ff9e=[_0x1f8837[_0x2054b1('0x3f1')]];let _0x114cd6='download';const _0x20aebe=new Blob(_0x42ff9e,{'type':_0x1f8837[_0x2054b1('0x1d7')]});_0x114cd6=_0x7fdc76[_0x2054b1('0x112c')];const _0x4c2525=window[_0x2054b1('0x11c4')][_0x2054b1('0x1ae6')]('a');_0x4c2525['setAttribute']('href',URL[_0x2054b1('0x1b0d')](_0x20aebe)),_0x4c2525[_0x2054b1('0x1c6b')]('download',_0x114cd6),document['body'][_0x2054b1('0xcbf')](_0x4c2525),_0x4c2525[_0x2054b1('0x132a')]();})[_0x30050e('0x1cb5')](function(_0x3f21df){const _0x2304d5=_0x30050e;if(_0x3f21df['data']&&_0x3f21df[_0x2304d5('0x11fc')]['errors']&&_0x3f21df[_0x2304d5('0x11fc')][_0x2304d5('0x25be')]['length'])for(let _0x517297=0x0;_0x517297<_0x3f21df['data']['errors']['length'];_0x517297++){_0x195200[_0x2304d5('0x5e8')]({'title':_0x3f21df[_0x2304d5('0x11fc')][_0x2304d5('0x25be')][_0x517297]['type'],'msg':_0x3f21df[_0x2304d5('0x11fc')][_0x2304d5('0x25be')][_0x517297][_0x2304d5('0x15e2')]});}else _0x195200[_0x2304d5('0x5e8')]({'title':_0x3f21df[_0x2304d5('0x1b51')]?_0x2304d5('0x15d1')+_0x3f21df[_0x2304d5('0x1b51')]+_0x2304d5('0x1b0b')+_0x3f21df[_0x2304d5('0x22ce')]:_0x2304d5('0x1e0b'),'msg':_0x3f21df['data']?JSON[_0x2304d5('0x1be0')](_0x3f21df[_0x2304d5('0x11fc')][_0x2304d5('0x15e2')]):_0x3f21df[_0x2304d5('0x17df')]()});});}function _0x59a6b9(_0x2a40e6,_0x2d1bd2){const _0x17e7af=_0x4acb06,_0x194592=_0x5ef2ae[_0x17e7af('0x112e')]()[_0x17e7af('0x14e4')](_0x17e7af('0x2114')+_0x283545()['startCase'](_0x17e7af('0x2d0'))+'?')[_0x17e7af('0x93e')](''+(_0x2a40e6['name']||_0x17e7af('0x2d0'))+_0x17e7af('0x229e')+_0x17e7af('0x27c7'))['ariaLabel'](_0x17e7af('0x1f06'))['targetEvent'](_0x2d1bd2)['ok']('OK')[_0x17e7af('0x1801')]('CANCEL');_0x5ef2ae['show'](_0x194592)[_0x17e7af('0x2788')](function(){_0x68db2c(_0x2a40e6);},function(){const _0x92dcbe=_0x17e7af;console[_0x92dcbe('0x10df')]('CANCEL');});}let _0x28ba45=!![],_0x1ea36e=0x1;_0x4c231e['$watch'](_0x4acb06('0x1569'),function(_0x10887b,_0x64657b){const _0x287893=_0x4acb06;_0x28ba45?_0x1f4532(function(){_0x28ba45=![];}):(!_0x64657b&&(_0x1ea36e=_0x5c4bcf['query']['page']),_0x10887b!==_0x64657b&&(_0x5c4bcf[_0x287893('0x135a')][_0x287893('0x23f5')]=0x1),!_0x10887b&&(_0x5c4bcf[_0x287893('0x135a')][_0x287893('0x23f5')]=_0x1ea36e),_0x5c4bcf[_0x287893('0x27e4')]());});function _0xe24615(_0xb9380d){const _0x5acde1=_0x4acb06;_0x5c4bcf[_0x5acde1('0xf7d')]=_0xb9380d||{'count':0x0,'rows':[]};}function _0x2c78aa(){const _0x25336f=_0x4acb06;_0x5c4bcf['query']['offset']=(_0x5c4bcf[_0x25336f('0x135a')]['page']-0x1)*_0x5c4bcf['query'][_0x25336f('0x68e')],_0x3d38e1[_0x25336f('0x1516')]('admin')?_0x5c4bcf[_0x25336f('0x1808')]=_0x34a8a4['analyticExtractedReport'][_0x25336f('0x1335')](_0x5c4bcf[_0x25336f('0x135a')],_0xe24615)[_0x25336f('0x1714')]:(_0x5c4bcf[_0x25336f('0x135a')]['id']=_0x5c4bcf[_0x25336f('0x63c')]['id'],_0x5c4bcf[_0x25336f('0x135a')][_0x25336f('0xb13')]='ExtractedReports',_0x5c4bcf[_0x25336f('0x1808')]=_0x34a8a4['userProfile'][_0x25336f('0xa1')](_0x5c4bcf[_0x25336f('0x135a')],_0xe24615)[_0x25336f('0x1714')]);}function _0x37b6e7(_0x109773,_0x473280){const _0x21fa41=_0x4acb06;_0x5ef2ae['show']({'controller':_0x21fa41('0x5d3'),'controllerAs':'vm','templateUrl':_0x4a96ad,'parent':angular[_0x21fa41('0x16b1')](_0x3d87ef['body']),'targetEvent':_0x109773,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x473280,'extractedReports':_0x5c4bcf[_0x21fa41('0xf7d')][_0x21fa41('0x25df')],'license':_0x5c4bcf[_0x21fa41('0x130d')],'setting':_0x5c4bcf[_0x21fa41('0x1af0')],'crudPermissions':_0x5c4bcf[_0x21fa41('0xe28')]}});}function _0x68db2c(_0x3eba4a){const _0x1b8e02=_0x4acb06;_0x34a8a4[_0x1b8e02('0x1cf4')]['delete']({'id':_0x3eba4a['id']})[_0x1b8e02('0x1714')]['then'](function(){const _0x3358be=_0x1b8e02;_0x283545()[_0x3358be('0x1a90')](_0x5c4bcf[_0x3358be('0xf7d')][_0x3358be('0x25df')],{'id':_0x3eba4a['id']}),_0x5c4bcf[_0x3358be('0xf7d')][_0x3358be('0x338')]-=0x1,!_0x5c4bcf[_0x3358be('0xf7d')][_0x3358be('0x25df')][_0x3358be('0x2566')]&&_0x5c4bcf[_0x3358be('0x27e4')](),_0x195200[_0x3358be('0x173b')]({'title':_0x283545()['startCase']('ExtractedReport')+_0x3358be('0x20db'),'msg':_0x3eba4a[_0x3358be('0x1a8d')]?_0x3eba4a[_0x3358be('0x1a8d')]+_0x3358be('0x14d4'):''});})[_0x1b8e02('0x1cb5')](function(_0x3474a4){const _0x161fca=_0x1b8e02;if(_0x3474a4[_0x161fca('0x11fc')]&&_0x3474a4[_0x161fca('0x11fc')][_0x161fca('0x25be')]&&_0x3474a4['data'][_0x161fca('0x25be')]['length']){_0x5c4bcf[_0x161fca('0x25be')]=_0x3474a4['data'][_0x161fca('0x25be')]||[{'message':_0x3474a4['toString'](),'type':_0x161fca('0x2501')}];for(let _0x1ce645=0x0;_0x1ce645<_0x3474a4[_0x161fca('0x11fc')][_0x161fca('0x25be')][_0x161fca('0x2566')];_0x1ce645++){_0x195200[_0x161fca('0x5e8')]({'title':_0x3474a4['data'][_0x161fca('0x25be')][_0x1ce645][_0x161fca('0x1d7')],'msg':_0x3474a4[_0x161fca('0x11fc')][_0x161fca('0x25be')][_0x1ce645][_0x161fca('0x15e2')]});}}else _0x195200[_0x161fca('0x5e8')]({'title':_0x3474a4[_0x161fca('0x1b51')]?_0x161fca('0x15d1')+_0x3474a4[_0x161fca('0x1b51')]+_0x161fca('0x1b0b')+_0x3474a4['statusText']:'SYSTEM:DELETEanalyticExtractedReport','msg':_0x3474a4[_0x161fca('0x11fc')]?JSON['stringify'](_0x3474a4[_0x161fca('0x11fc')][_0x161fca('0x15e2')]):_0x3474a4[_0x161fca('0x15e2')]||_0x3474a4[_0x161fca('0x17df')]()});});}function _0x10fbee(){const _0x844732=_0x4acb06,_0x5eb00f=angular[_0x844732('0x2669')](_0x5c4bcf[_0x844732('0x233')]);return _0x5c4bcf['selectedExtractedReports']=[],_0x5eb00f;}function _0x5cd2c7(_0x52d991){const _0x101aee=_0x4acb06,_0x32810d=_0x5ef2ae[_0x101aee('0x112e')]()[_0x101aee('0x14e4')](_0x101aee('0x1055'))[_0x101aee('0x93e')](_0x101aee('0x1670')+_0x5c4bcf[_0x101aee('0x233')]['length']+_0x101aee('0xbd')+_0x101aee('0x27c7'))[_0x101aee('0x10bc')]('delete\x20ExtractedReports')['targetEvent'](_0x52d991)['ok']('OK')[_0x101aee('0x1801')](_0x101aee('0x1d8d'));_0x5ef2ae[_0x101aee('0x2fa')](_0x32810d)[_0x101aee('0x2788')](function(){const _0x35473f=_0x101aee;_0x5c4bcf[_0x35473f('0x233')][_0x35473f('0x1534')](function(_0x22cd8f){_0x68db2c(_0x22cd8f);}),_0x5c4bcf['selectedExtractedReports']=[];});}function _0x13912e(){const _0x4462c9=_0x4acb06;_0x5c4bcf[_0x4462c9('0x233')]=[];}function _0x48961a(){const _0x52d2bf=_0x4acb06;_0x5c4bcf[_0x52d2bf('0x233')]=_0x5c4bcf[_0x52d2bf('0xf7d')]['rows'];}}const _0x59f429=_0x50f87f;_0x4beb41[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'metrics',_0x34e79e('0x22dc'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x4beb41(_0x4376ef,_0x37ca87,_0x37dbe4,_0x3b7876,_0xed3337,_0x1a1251,_0x40c8ab,_0x3818fd,_0x162482,_0x2c911c,_0x36e609,_0x59c237,_0x59b4b5,_0x3b4bca){const _0x4178d0=_0x34e79e,_0x539f48=this;_0x539f48[_0x4178d0('0x9cb')]=_0x36e609[_0x4178d0('0x24cc')](),_0x539f48[_0x4178d0('0x25be')]=[],_0x539f48[_0x4178d0('0x1af0')]=_0x59b4b5,_0x539f48[_0x4178d0('0x130d')]=_0x59c237,_0x539f48['crudPermissions']=_0x3b4bca,_0x539f48['hasModulePermissions']={},_0x539f48[_0x4178d0('0x18ad')]=_0x539f48[_0x4178d0('0x1af0')]&&_0x539f48[_0x4178d0('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x539f48[_0x4178d0('0x14e4')]='ANALYTICS.EDIT_METRIC',_0x539f48['metric']=angular['copy'](_0x162482),_0x539f48[_0x4178d0('0xd3d')]=_0x3818fd,_0x539f48['newMetric']=![];!_0x539f48[_0x4178d0('0x22dc')]&&(_0x539f48[_0x4178d0('0x22dc')]={'table':_0x4178d0('0x14bf')},_0x539f48['title']=_0x4178d0('0x2539'),_0x539f48['newMetric']=!![]);_0x539f48[_0x4178d0('0x16ab')]=_0x15e030,_0x539f48[_0x4178d0('0x1bbb')]=_0x25e2ab,_0x539f48[_0x4178d0('0x197a')]=_0x2fddf1,_0x539f48['getDateFromString']=_0x33f532,_0x539f48['closeDialog']=_0xf0303e;function _0x15e030(){const _0xa21a0e=_0x4178d0;_0x539f48[_0xa21a0e('0x25be')]=[],_0x2c911c[_0xa21a0e('0x1dd0')][_0xa21a0e('0xbd0')](_0x539f48[_0xa21a0e('0x22dc')])[_0xa21a0e('0x1714')][_0xa21a0e('0x2788')](function(_0x5a1bb2){const _0xc6c956=_0xa21a0e;_0x539f48[_0xc6c956('0xd3d')][_0xc6c956('0xc51')](_0x5a1bb2[_0xc6c956('0x1cbf')]()),_0x40c8ab[_0xc6c956('0x173b')]({'title':_0xc6c956('0x2236'),'msg':_0x539f48[_0xc6c956('0x22dc')][_0xc6c956('0x1a8d')]?_0x539f48['metric'][_0xc6c956('0x1a8d')]+_0xc6c956('0x1e4a'):''}),_0xf0303e(_0x5a1bb2);})[_0xa21a0e('0x1cb5')](function(_0x444b6d){const _0x19c3c8=_0xa21a0e;if(_0x444b6d['data']&&_0x444b6d[_0x19c3c8('0x11fc')][_0x19c3c8('0x25be')]&&_0x444b6d['data']['errors'][_0x19c3c8('0x2566')]){_0x539f48['errors']=_0x444b6d[_0x19c3c8('0x11fc')][_0x19c3c8('0x25be')]||[{'message':_0x444b6d[_0x19c3c8('0x17df')](),'type':_0x19c3c8('0x1f0b')}];for(let _0x7142b9=0x0;_0x7142b9<_0x444b6d[_0x19c3c8('0x11fc')]['errors'][_0x19c3c8('0x2566')];_0x7142b9+=0x1){_0x40c8ab[_0x19c3c8('0x5e8')]({'title':_0x444b6d[_0x19c3c8('0x11fc')][_0x19c3c8('0x25be')][_0x7142b9]['type'],'msg':_0x444b6d['data'][_0x19c3c8('0x25be')][_0x7142b9]['message']});}}else _0x40c8ab[_0x19c3c8('0x5e8')]({'title':_0x444b6d[_0x19c3c8('0x1b51')]?_0x19c3c8('0x15d1')+_0x444b6d['status']+'\x20-\x20'+_0x444b6d[_0x19c3c8('0x22ce')]:_0x19c3c8('0x1f0b'),'msg':_0x444b6d[_0x19c3c8('0x11fc')]?JSON[_0x19c3c8('0x1be0')](_0x444b6d[_0x19c3c8('0x11fc')]['message']):_0x444b6d['toString']()});});}function _0x25e2ab(){const _0x280d7d=_0x4178d0;_0x539f48[_0x280d7d('0x25be')]=[],_0x2c911c[_0x280d7d('0x1dd0')]['update']({'id':_0x539f48[_0x280d7d('0x22dc')]['id']},_0x539f48[_0x280d7d('0x22dc')])[_0x280d7d('0x1714')][_0x280d7d('0x2788')](function(_0x5bfa12){const _0x4b72ea=_0x280d7d,_0x5ae35c=_0x283545()['find'](_0x539f48['metrics'],{'id':_0x5bfa12['id']});_0x5ae35c&&_0x283545()[_0x4b72ea('0x2503')](_0x5ae35c,_0x283545()['pick'](_0x5bfa12[_0x4b72ea('0x1cbf')](),_0x283545()[_0x4b72ea('0x2163')](_0x5ae35c))),_0x40c8ab[_0x4b72ea('0x173b')]({'title':_0x4b72ea('0x16c6'),'msg':_0x539f48[_0x4b72ea('0x22dc')]['name']?_0x539f48[_0x4b72ea('0x22dc')][_0x4b72ea('0x1a8d')]+_0x4b72ea('0x24cf'):''}),_0xf0303e(_0x5bfa12);})[_0x280d7d('0x1cb5')](function(_0xafe7f4){const _0x6daf63=_0x280d7d;if(_0xafe7f4[_0x6daf63('0x11fc')]&&_0xafe7f4[_0x6daf63('0x11fc')][_0x6daf63('0x25be')]&&_0xafe7f4['data'][_0x6daf63('0x25be')][_0x6daf63('0x2566')]){_0x539f48[_0x6daf63('0x25be')]=_0xafe7f4[_0x6daf63('0x11fc')][_0x6daf63('0x25be')]||[{'message':_0xafe7f4[_0x6daf63('0x17df')](),'type':'api.analyticMetric.update'}];for(let _0x1d402a=0x0;_0x1d402a<_0xafe7f4[_0x6daf63('0x11fc')][_0x6daf63('0x25be')][_0x6daf63('0x2566')];_0x1d402a++){_0x40c8ab[_0x6daf63('0x5e8')]({'title':_0xafe7f4[_0x6daf63('0x11fc')][_0x6daf63('0x25be')][_0x1d402a]['type'],'msg':_0xafe7f4[_0x6daf63('0x11fc')]['errors'][_0x1d402a]['message']});}}else _0x40c8ab[_0x6daf63('0x5e8')]({'title':_0xafe7f4[_0x6daf63('0x1b51')]?'API:'+_0xafe7f4[_0x6daf63('0x1b51')]+'\x20-\x20'+_0xafe7f4[_0x6daf63('0x22ce')]:'api.analyticMetric.update','msg':_0xafe7f4[_0x6daf63('0x11fc')]?JSON[_0x6daf63('0x1be0')](_0xafe7f4[_0x6daf63('0x11fc')]['message']):_0xafe7f4[_0x6daf63('0x17df')]()});});}function _0x2fddf1(_0x6b4a17){const _0x12ddf2=_0x4178d0;_0x539f48['errors']=[];const _0x5c6cb9=_0x3b7876[_0x12ddf2('0x112e')]()[_0x12ddf2('0x14e4')](_0x12ddf2('0x458'))[_0x12ddf2('0x1c98')](_0x12ddf2('0x1477'))['ariaLabel']('Delete\x20Metric')['ok'](_0x12ddf2('0x2786'))[_0x12ddf2('0x1801')](_0x12ddf2('0x1481'))[_0x12ddf2('0x24d0')](_0x6b4a17);_0x3b7876[_0x12ddf2('0x2fa')](_0x5c6cb9)['then'](function(){const _0xbab900=_0x12ddf2;_0x2c911c['analyticMetric'][_0xbab900('0x17c4')]({'id':_0x539f48['metric']['id']})[_0xbab900('0x1714')][_0xbab900('0x2788')](function(){const _0x45a2ca=_0xbab900;_0x283545()[_0x45a2ca('0x1a90')](_0x539f48[_0x45a2ca('0xd3d')],{'id':_0x539f48[_0x45a2ca('0x22dc')]['id']}),_0x40c8ab['success']({'title':_0x45a2ca('0x2152'),'msg':(_0x539f48[_0x45a2ca('0x22dc')][_0x45a2ca('0x1a8d')]||_0x45a2ca('0x22dc'))+_0x45a2ca('0x14d4')}),_0xf0303e(_0x539f48[_0x45a2ca('0x22dc')]);})[_0xbab900('0x1cb5')](function(_0xb60f53){const _0x3e9a5c=_0xbab900;if(_0xb60f53['data']&&_0xb60f53['data'][_0x3e9a5c('0x25be')]&&_0xb60f53[_0x3e9a5c('0x11fc')][_0x3e9a5c('0x25be')][_0x3e9a5c('0x2566')]){_0x539f48[_0x3e9a5c('0x25be')]=_0xb60f53[_0x3e9a5c('0x11fc')][_0x3e9a5c('0x25be')]||[{'message':_0xb60f53[_0x3e9a5c('0x17df')](),'type':'api.analyticMetric.delete'}];for(let _0x306ba7=0x0;_0x306ba7<_0xb60f53[_0x3e9a5c('0x11fc')][_0x3e9a5c('0x25be')][_0x3e9a5c('0x2566')];_0x306ba7++){_0x40c8ab[_0x3e9a5c('0x5e8')]({'title':_0xb60f53['data'][_0x3e9a5c('0x25be')][_0x306ba7][_0x3e9a5c('0x1d7')],'msg':_0xb60f53['data'][_0x3e9a5c('0x25be')][_0x306ba7][_0x3e9a5c('0x15e2')]});}}else _0x40c8ab[_0x3e9a5c('0x5e8')]({'title':_0xb60f53[_0x3e9a5c('0x1b51')]?_0x3e9a5c('0x15d1')+_0xb60f53[_0x3e9a5c('0x1b51')]+'\x20-\x20'+_0xb60f53[_0x3e9a5c('0x22ce')]:'api.analyticMetric.delete','msg':_0xb60f53[_0x3e9a5c('0x11fc')]?JSON[_0x3e9a5c('0x1be0')](_0xb60f53['data'][_0x3e9a5c('0x15e2')]):_0xb60f53[_0x3e9a5c('0x15e2')]||_0xb60f53['toString']()});});},function(){});}function _0x33f532(_0x135676){return _0x135676===null?undefined:new Date(_0x135676);}function _0xf0303e(_0x45d547){const _0x465d35=_0x4178d0;_0x3b7876[_0x465d35('0x19d')](_0x45d547);}}const _0x12f593=_0x4beb41,_0x2c37c1=_0x18dd13['p']+'src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html';_0x1eeba4[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate','metrics',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x1eeba4(_0x175e9b,_0x39508d,_0x1cc20a,_0x359277,_0x19c37b,_0x313051,_0x54ea7d,_0x50ea24,_0x25a364,_0x16c900,_0x4225ae,_0x3f0df0,_0x5d73d7,_0x25410f,_0x999b8c,_0x55d2d6,_0x4b2433){const _0x68dd13=_0x34e79e,_0x519211=this;_0x519211[_0x68dd13('0x130d')]=_0x55d2d6,_0x519211[_0x68dd13('0x1af0')]=_0x4b2433,_0x519211[_0x68dd13('0x9cb')]=_0x999b8c[_0x68dd13('0x24cc')](),_0x519211['metrics']=_0x25a364||{'count':0x0,'rows':[]},_0x519211[_0x68dd13('0x63c')]=_0x16c900,_0x519211['userProfileSection']=_0x4225ae&&_0x4225ae['count']==0x1?_0x4225ae[_0x68dd13('0x25df')][0x0]:null,_0x519211[_0x68dd13('0xe28')]=_0x999b8c[_0x68dd13('0x157e')](_0x519211[_0x68dd13('0xec9')]?_0x519211['userProfileSection'][_0x68dd13('0xe28')]:null),_0x519211[_0x68dd13('0x26a9')]=_0x68dd13('0xd3d'),_0x519211['listOrder']='',_0x519211['listOrderAsc']=null,_0x519211[_0x68dd13('0x1698')]=[],_0x519211[_0x68dd13('0x135a')]={'fields':_0x68dd13('0x22af'),'sort':_0x68dd13('0x1cee'),'limit':0xa,'page':0x1},_0x519211[_0x68dd13('0x1dfe')]=_0x283545()[_0x68dd13('0x13cf')]([{'option':_0x68dd13('0x269d'),'value':_0x68dd13('0x2397')},{'option':'Call\x20Report','value':'\x27report_call\x27'},{'option':_0x68dd13('0x1a6c'),'value':_0x68dd13('0xb9e')},{'option':'Chat\x20Website','value':_0x68dd13('0xbf9')},{'option':_0x68dd13('0xa15'),'value':_0x68dd13('0xad')},{'option':'Chat\x20Messages','value':_0x68dd13('0x516')},{'option':_0x68dd13('0x1c95'),'value':_0x68dd13('0x1682')},{'option':_0x68dd13('0x686'),'value':_0x68dd13('0x147f')},{'option':_0x68dd13('0x1a5d'),'value':_0x68dd13('0x143b')},{'option':'Chat\x20Report\x20Transfer','value':'\x27report_chat_transfer\x27'},{'option':_0x68dd13('0xbc9'),'value':'\x27cm_companies\x27'},{'option':_0x68dd13('0x52d'),'value':'\x27cm_contacts\x27'},{'option':'CSquare\x20Report','value':_0x68dd13('0x22d')},{'option':_0x68dd13('0x10d6'),'value':_0x68dd13('0xdca')},{'option':_0x68dd13('0x47e'),'value':'\x27report_dial\x27'},{'option':_0x68dd13('0x1c5c'),'value':_0x68dd13('0xdaa')},{'option':_0x68dd13('0x11d5'),'value':_0x68dd13('0x8b6')},{'option':_0x68dd13('0x1f49'),'value':_0x68dd13('0x27ca')},{'option':_0x68dd13('0x2819'),'value':_0x68dd13('0x1778')},{'option':'Email\x20Interaction','value':_0x68dd13('0x222d')},{'option':_0x68dd13('0xd40'),'value':_0x68dd13('0x382')},{'option':_0x68dd13('0x17c6'),'value':_0x68dd13('0x200')},{'option':_0x68dd13('0x718'),'value':'\x27report_mail_queue\x27'},{'option':_0x68dd13('0xb4d'),'value':'\x27report_mail_transfer\x27'},{'option':_0x68dd13('0x2037'),'value':_0x68dd13('0xbdf')},{'option':_0x68dd13('0x1220'),'value':_0x68dd13('0x1372')},{'option':'Fax\x20Messages','value':_0x68dd13('0x2019')},{'option':_0x68dd13('0xf7'),'value':_0x68dd13('0xfd3')},{'option':_0x68dd13('0x21d9'),'value':_0x68dd13('0x6a7')},{'option':_0x68dd13('0x2095'),'value':'\x27report_fax_transfer\x27'},{'option':_0x68dd13('0x13ab'),'value':_0x68dd13('0x1f26')},{'option':'Jscripty\x20Questions','value':_0x68dd13('0x249d')},{'option':_0x68dd13('0x12c'),'value':_0x68dd13('0x16')},{'option':_0x68dd13('0x12f2'),'value':_0x68dd13('0x2197')},{'option':_0x68dd13('0x939'),'value':_0x68dd13('0x5d2')},{'option':_0x68dd13('0x176'),'value':'\x27openchannel_accounts\x27'},{'option':'Openchannel\x20Interaction','value':_0x68dd13('0x62')},{'option':_0x68dd13('0x1010'),'value':'\x27openchannel_messages\x27'},{'option':'Openchannel\x20Queues','value':_0x68dd13('0xbca')},{'option':_0x68dd13('0x1c26'),'value':'\x27report_openchannel_queue\x27'},{'option':_0x68dd13('0x1c1e'),'value':_0x68dd13('0x105e')},{'option':_0x68dd13('0xb46'),'value':_0x68dd13('0x1704')},{'option':_0x68dd13('0x1543'),'value':_0x68dd13('0xd4a')},{'option':_0x68dd13('0x2224'),'value':_0x68dd13('0x850')},{'option':'SMS\x20Messages','value':'\x27sms_messages\x27'},{'option':_0x68dd13('0x235a'),'value':_0x68dd13('0x2452')},{'option':_0x68dd13('0x1ce7'),'value':'\x27report_sms_queue\x27'},{'option':_0x68dd13('0x16c1'),'value':_0x68dd13('0x100')},{'option':_0x68dd13('0x23f4'),'value':_0x68dd13('0x164a')},{'option':_0x68dd13('0x16ff'),'value':_0x68dd13('0x88c')},{'option':_0x68dd13('0x51f'),'value':_0x68dd13('0x16d0')},{'option':'Whatsapp\x20Interaction','value':_0x68dd13('0x3f2')},{'option':'Whatsapp\x20Messages','value':_0x68dd13('0xac8')},{'option':_0x68dd13('0x8bd'),'value':'\x27whatsapp_queues\x27'},{'option':_0x68dd13('0x2782'),'value':_0x68dd13('0x106d')},{'option':_0x68dd13('0x93f'),'value':_0x68dd13('0x2b1')}],function(_0x253a15){const _0x3fc28f=_0x68dd13;return _0x283545()['replace'](_0x253a15[_0x3fc28f('0x49')],new RegExp('\x27','g'),'');}),_0x519211[_0x68dd13('0x23af')]=_0x39d3c5,_0x519211[_0x68dd13('0x1e5')]=_0x15b3fa,_0x519211[_0x68dd13('0x173b')]=_0x2212ed,_0x519211[_0x68dd13('0x12de')]=_0x1ff2ff,_0x519211[_0x68dd13('0x2318')]=_0x2cee50,_0x519211[_0x68dd13('0x197a')]=_0x11fb35,_0x519211[_0x68dd13('0xfcb')]=_0x3ba8be,_0x519211[_0x68dd13('0x9d2')]=_0x4991e5,_0x519211[_0x68dd13('0xf4a')]=_0x18691e,_0x519211[_0x68dd13('0x577')]=_0xb89c2e;function _0x39d3c5(_0x126cde,_0x56c47c){const _0x320a42=_0x68dd13;_0x19c37b[_0x320a42('0x2fa')]({'controller':'CreateOrEditMetricDialogController','controllerAs':'vm','templateUrl':_0x2c37c1,'parent':angular['element'](_0x313051[_0x320a42('0x945')]),'targetEvent':_0x56c47c,'clickOutsideToClose':!![],'locals':{'metric':_0x126cde,'metrics':_0x519211[_0x320a42('0xd3d')][_0x320a42('0x25df')],'license':_0x519211[_0x320a42('0x130d')],'setting':null,'crudPermissions':_0x519211[_0x320a42('0xe28')]}});}function _0x15b3fa(_0x8e6906,_0x3046d7){const _0x31e3aa=_0x68dd13,_0x33ef8d=_0x19c37b[_0x31e3aa('0x112e')]()[_0x31e3aa('0x14e4')](_0x31e3aa('0x2114')+_0x283545()[_0x31e3aa('0x114')]('metric')+'?')[_0x31e3aa('0x93e')](_0x31e3aa('0x1670')+(_0x8e6906[_0x31e3aa('0x1a8d')]||'metric')+_0x31e3aa('0x229e')+_0x31e3aa('0x27c7'))[_0x31e3aa('0x10bc')](_0x31e3aa('0x2147'))[_0x31e3aa('0x24d0')](_0x3046d7)['ok']('OK')[_0x31e3aa('0x1801')](_0x31e3aa('0x1d8d'));_0x19c37b[_0x31e3aa('0x2fa')](_0x33ef8d)[_0x31e3aa('0x2788')](function(){_0x11fb35(_0x8e6906);},function(){const _0x195086=_0x31e3aa;console[_0x195086('0x10df')]('CANCEL');});}let _0x5c0133=!![],_0x240930=0x1;_0x175e9b[_0x68dd13('0x1662')]('vm.query.filter',function(_0xa46bc4,_0x25c7ab){const _0x9a0bfe=_0x68dd13;_0x5c0133?_0x54ea7d(function(){_0x5c0133=![];}):(!_0x25c7ab&&(_0x240930=_0x519211[_0x9a0bfe('0x135a')][_0x9a0bfe('0x23f5')]),_0xa46bc4!==_0x25c7ab&&(_0x519211[_0x9a0bfe('0x135a')][_0x9a0bfe('0x23f5')]=0x1),!_0xa46bc4&&(_0x519211['query']['page']=_0x240930),_0x519211[_0x9a0bfe('0x12de')]());});function _0x2212ed(_0x5a30b1){_0x519211['metrics']=_0x5a30b1||{'count':0x0,'rows':[]};}function _0x1ff2ff(){const _0x11a885=_0x68dd13;_0x519211['query']['offset']=(_0x519211[_0x11a885('0x135a')][_0x11a885('0x23f5')]-0x1)*_0x519211[_0x11a885('0x135a')][_0x11a885('0x68e')],_0x999b8c['hasRole']('admin')?_0x519211[_0x11a885('0x1808')]=_0x3f0df0[_0x11a885('0x1dd0')][_0x11a885('0x1335')](_0x519211['query'],_0x2212ed)[_0x11a885('0x1714')]:(_0x519211['query']['id']=_0x519211[_0x11a885('0x63c')]['id'],_0x519211[_0x11a885('0x135a')][_0x11a885('0xb13')]=_0x11a885('0x162f'),_0x519211[_0x11a885('0x1808')]=_0x3f0df0['userProfile'][_0x11a885('0xa1')](_0x519211[_0x11a885('0x135a')],_0x2212ed)[_0x11a885('0x1714')]);}function _0x2cee50(_0xb5347d,_0x14f233){const _0xee9013=_0x68dd13;_0x19c37b['show']({'controller':_0xee9013('0x1763'),'controllerAs':'vm','templateUrl':_0x2c37c1,'parent':angular[_0xee9013('0x16b1')](_0x313051[_0xee9013('0x945')]),'targetEvent':_0xb5347d,'clickOutsideToClose':!![],'locals':{'metric':_0x14f233,'metrics':_0x519211[_0xee9013('0xd3d')][_0xee9013('0x25df')],'license':_0x519211['license'],'setting':_0x519211[_0xee9013('0x1af0')],'crudPermissions':_0x519211[_0xee9013('0xe28')]}});}function _0x11fb35(_0x3613d8){const _0x376668=_0x68dd13;_0x3f0df0['analyticMetric'][_0x376668('0x17c4')]({'id':_0x3613d8['id']})[_0x376668('0x1714')][_0x376668('0x2788')](function(){const _0x535533=_0x376668;_0x283545()[_0x535533('0x1a90')](_0x519211[_0x535533('0xd3d')]['rows'],{'id':_0x3613d8['id']}),_0x519211['metrics']['count']-=0x1,!_0x519211[_0x535533('0xd3d')][_0x535533('0x25df')][_0x535533('0x2566')]&&_0x519211[_0x535533('0x12de')](),_0x25410f['success']({'title':_0x283545()[_0x535533('0x114')](_0x535533('0x245'))+'\x20deleted!','msg':_0x3613d8[_0x535533('0x1a8d')]?_0x3613d8[_0x535533('0x1a8d')]+_0x535533('0x14d4'):''});})[_0x376668('0x1cb5')](function(_0x229fe9){const _0x53a532=_0x376668;if(_0x229fe9['data']&&_0x229fe9[_0x53a532('0x11fc')][_0x53a532('0x25be')]&&_0x229fe9[_0x53a532('0x11fc')]['errors'][_0x53a532('0x2566')]){_0x519211[_0x53a532('0x25be')]=_0x229fe9[_0x53a532('0x11fc')][_0x53a532('0x25be')]||[{'message':_0x229fe9[_0x53a532('0x17df')](),'type':_0x53a532('0x25bc')}];for(let _0xa0fef5=0x0;_0xa0fef5<_0x229fe9[_0x53a532('0x11fc')]['errors'][_0x53a532('0x2566')];_0xa0fef5++){_0x25410f[_0x53a532('0x5e8')]({'title':_0x229fe9[_0x53a532('0x11fc')][_0x53a532('0x25be')][_0xa0fef5]['type'],'msg':_0x229fe9['data'][_0x53a532('0x25be')][_0xa0fef5][_0x53a532('0x15e2')]});}}else _0x25410f[_0x53a532('0x5e8')]({'title':_0x229fe9['status']?_0x53a532('0x15d1')+_0x229fe9[_0x53a532('0x1b51')]+_0x53a532('0x1b0b')+_0x229fe9[_0x53a532('0x22ce')]:_0x53a532('0x25bc'),'msg':_0x229fe9['data']?JSON[_0x53a532('0x1be0')](_0x229fe9[_0x53a532('0x11fc')][_0x53a532('0x15e2')]):_0x229fe9[_0x53a532('0x15e2')]||_0x229fe9[_0x53a532('0x17df')]()});});}function _0x3ba8be(){const _0x34d74f=_0x68dd13,_0x3e7864=angular[_0x34d74f('0x2669')](_0x519211[_0x34d74f('0x1698')]);return _0x519211[_0x34d74f('0x1698')]=[],_0x3e7864;}function _0x4991e5(_0x599915){const _0x127c54=_0x68dd13,_0x4c5647=_0x19c37b[_0x127c54('0x112e')]()[_0x127c54('0x14e4')](_0x127c54('0xd58'))[_0x127c54('0x93e')](_0x127c54('0x1670')+_0x519211[_0x127c54('0x1698')][_0x127c54('0x2566')]+_0x127c54('0xbd')+_0x127c54('0x27c7'))['ariaLabel'](_0x127c54('0x877'))[_0x127c54('0x24d0')](_0x599915)['ok']('OK')['cancel']('CANCEL');_0x19c37b[_0x127c54('0x2fa')](_0x4c5647)['then'](function(){const _0xf7c76c=_0x127c54;_0x519211[_0xf7c76c('0x1698')][_0xf7c76c('0x1534')](function(_0x54c84d){_0x11fb35(_0x54c84d);}),_0x519211[_0xf7c76c('0x1698')]=[];});}function _0x18691e(){_0x519211['selectedMetrics']=[];}function _0xb89c2e(){const _0x4a8a8a=_0x68dd13;_0x519211[_0x4a8a8a('0x1698')]=_0x519211[_0x4a8a8a('0xd3d')][_0x4a8a8a('0x25df')];}}const _0x3a5c82=_0x1eeba4;_0x37a419[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0x37a419(_0x557845,_0x29f574){const _0x2f36af=_0x34e79e;_0x557845[_0x2f36af('0x249b')](_0x2f36af('0x69b'),{'abstract':!![],'url':_0x2f36af('0x20b9')})[_0x2f36af('0x249b')](_0x2f36af('0x5f1'),{'url':_0x2f36af('0x1731'),'views':{'content@app':{'templateUrl':_0x11da31,'controller':_0x2f36af('0x2155')}},'resolve':{'metrics':['apiResolver',_0x2f36af('0x1b04'),function(_0x424794,_0x4ff20c){const _0x47838a=_0x2f36af;return _0x4ff20c[_0x47838a('0x1516')](_0x47838a('0xe23'))?_0x424794[_0x47838a('0x2322')]('analyticMetric@get',{'fields':_0x47838a('0x22af'),'sort':_0x47838a('0x1cee'),'limit':0xa,'offset':0x0}):_0x424794['resolve'](_0x47838a('0x27c5'),{'id':_0x4ff20c[_0x47838a('0x24cc')]()[_0x47838a('0x237f')],'section':'Metrics','fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x47838a('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2f36af('0x1318'),_0x2f36af('0x1b04'),function(_0x34a4c9,_0x3b788c){const _0x49b832=_0x2f36af;return _0x3b788c[_0x49b832('0x1516')]('admin')?null:_0x34a4c9[_0x49b832('0x2322')](_0x49b832('0x231d'),{'fields':'id,name,crudPermissions','id':_0x3b788c[_0x49b832('0x24cc')]()[_0x49b832('0x237f')]});}],'userProfileSection':['apiResolver','Auth',function(_0xe5ac96,_0x57519e){const _0x40ba79=_0x2f36af;return _0x57519e[_0x40ba79('0x1516')](_0x40ba79('0xe23'))?null:_0xe5ac96[_0x40ba79('0x2322')](_0x40ba79('0x22ca'),{'fields':_0x40ba79('0xe2c'),'userProfileId':_0x57519e[_0x40ba79('0x24cc')]()[_0x40ba79('0x237f')],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':'analytics'})[_0x2f36af('0x249b')](_0x2f36af('0x22e5'),{'url':_0x2f36af('0x1475'),'views':{'content@app':{'templateUrl':_0x3778f1,'controller':'ExtractedReportsController\x20as\x20vm'}},'resolve':{'extractedReports':[_0x2f36af('0x1318'),_0x2f36af('0x1b04'),function(_0x5823f9,_0xe0ee22){const _0x400405=_0x2f36af;return _0xe0ee22[_0x400405('0x1516')](_0x400405('0xe23'))?_0x5823f9['resolve'](_0x400405('0x8e6'),{'fields':_0x400405('0x8a7'),'sort':_0x400405('0x1cee'),'limit':0xa,'offset':0x0}):_0x5823f9[_0x400405('0x2322')]('userProfile@getResources',{'id':_0xe0ee22['getCurrentUser']()[_0x400405('0x237f')],'section':_0x400405('0x2ab'),'fields':_0x400405('0x8a7'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x26601a,_0x58ea04){const _0x9141c=_0x2f36af;return _0x58ea04[_0x9141c('0x1516')](_0x9141c('0xe23'))?null:_0x26601a[_0x9141c('0x2322')](_0x9141c('0x231d'),{'fields':_0x9141c('0x3f0'),'id':_0x58ea04[_0x9141c('0x24cc')]()[_0x9141c('0x237f')]});}],'userProfileSection':[_0x2f36af('0x1318'),'Auth',function(_0x572399,_0x2a5c36){const _0x53014d=_0x2f36af;return _0x2a5c36[_0x53014d('0x1516')](_0x53014d('0xe23'))?null:_0x572399[_0x53014d('0x2322')]('userProfileSection@get',{'fields':_0x53014d('0xe2c'),'userProfileId':_0x2a5c36[_0x53014d('0x24cc')]()[_0x53014d('0x237f')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':_0x2f36af('0x1ce4')}),_0x29f574[_0x2f36af('0x15ae')]('app/main/apps/analytics');}angular[_0x34e79e('0x16e2')](_0x34e79e('0x69b'),[_0x34e79e('0x1837'),'ngPassword','md.data.table',_0x34e79e('0x8a4'),'mdColorPicker','ckeditor',_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),_0x34e79e('0xe0f'),'ngclipboard',_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),'material.components.expansionPanels',_0x34e79e('0x429'),_0x34e79e('0xe82'),'app.analytics.reports'])['config'](_0x37a419)['controller'](_0x34e79e('0x5d3'),_0x4875e1)[_0x34e79e('0xb44')](_0x34e79e('0x10fa'),_0x59f429)[_0x34e79e('0xb44')]('CreateOrEditMetricDialogController',_0x12f593)[_0x34e79e('0xb44')](_0x34e79e('0x2625'),_0x3a5c82);const _0x264edd=_0x18dd13['p']+_0x34e79e('0x1c52'),_0x342048=_0x18dd13['p']+_0x34e79e('0x16b0'),_0x440ae5=_0x18dd13['p']+_0x34e79e('0x25f'),_0x4b942d=_0x18dd13['p']+_0x34e79e('0xc1d'),_0x3c77c5=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html',_0x42d44f=_0x18dd13['p']+_0x34e79e('0x5df'),_0x1d464d=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html',_0x2b2ca2=_0x18dd13['p']+_0x34e79e('0x1948'),_0x478319=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html',_0x5bff05=_0x18dd13['p']+_0x34e79e('0x26e1'),_0x4db594=_0x18dd13['p']+_0x34e79e('0x10'),_0x294209=_0x18dd13['p']+_0x34e79e('0x279c'),_0x363fc4=_0x18dd13['p']+_0x34e79e('0x8e4'),_0x412bcf=_0x18dd13['p']+_0x34e79e('0x1b72'),_0x22a46e=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html',_0x451908=_0x18dd13['p']+_0x34e79e('0x195c'),_0x1124ef=_0x18dd13['p']+_0x34e79e('0x1de7'),_0x3e0272=_0x18dd13['p']+_0x34e79e('0xb54'),_0x3f598a=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts.html',_0x165fa0=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html';_0x29c9ea[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0xa6a'),'deskAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x29c9ea(_0x5d322,_0x30f7be,_0x553f19,_0x411dcb,_0x31ad20,_0x26d508,_0xfea191,_0x463374,_0x6f33c2,_0x3f56ce,_0x2c2356,_0x1c65fe,_0x3d0c76,_0x1120f1){const _0x3615cd=_0x34e79e,_0x3447c4=this;_0x3447c4[_0x3615cd('0x9cb')]=_0x2c2356[_0x3615cd('0x24cc')](),_0x3447c4[_0x3615cd('0x25be')]=[],_0x3447c4['setting']=_0x3d0c76,_0x3447c4[_0x3615cd('0x130d')]=_0x1c65fe,_0x3447c4['crudPermissions']=_0x1120f1,_0x3447c4[_0x3615cd('0x1193')]={},_0x3447c4['passwordPattern']=_0x3447c4[_0x3615cd('0x1af0')]&&_0x3447c4[_0x3615cd('0x1af0')][_0x3615cd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3447c4['title']=_0x3615cd('0xad9'),_0x3447c4[_0x3615cd('0x15c')]=angular[_0x3615cd('0x2669')](_0x6f33c2),_0x3447c4[_0x3615cd('0xa6a')]=_0x463374,_0x3447c4[_0x3615cd('0x1f5')]=![];!_0x3447c4[_0x3615cd('0x15c')]&&(_0x3447c4[_0x3615cd('0x15c')]={'type':'integrationTab','authType':'basic','serverUrl':_0x553f19[_0x3615cd('0x170c')]()+_0x3615cd('0x726')+_0x553f19[_0x3615cd('0x1c6a')]()+(_0x553f19[_0x3615cd('0x1fee')]()?':'+_0x553f19['port']():'')},_0x3447c4[_0x3615cd('0x14e4')]='INTEGRATIONS.NEW_DESKACCOUNT',_0x3447c4[_0x3615cd('0x1f5')]=!![]);_0x3447c4[_0x3615cd('0x761')]=_0x4d2eea,_0x3447c4[_0x3615cd('0x220d')]=_0x426f93,_0x3447c4[_0x3615cd('0x133d')]=_0x3e40a9,_0x3447c4[_0x3615cd('0x2601')]=_0x3433e9,_0x3447c4[_0x3615cd('0xca7')]=_0x5c7751;function _0x4d2eea(){const _0x2a2636=_0x3615cd;_0x3447c4['errors']=[],_0x3f56ce[_0x2a2636('0x6fb')]['save'](_0x3447c4[_0x2a2636('0x15c')])['$promise'][_0x2a2636('0x2788')](function(_0x5a509e){const _0xb38fde=_0x2a2636;_0x3447c4[_0xb38fde('0xa6a')][_0xb38fde('0xc51')](_0x5a509e[_0xb38fde('0x1cbf')]()),_0xfea191[_0xb38fde('0x173b')]({'title':'DeskAccount\x20properly\x20created','msg':_0x3447c4[_0xb38fde('0x15c')]['name']?_0x3447c4[_0xb38fde('0x15c')]['name']+_0xb38fde('0x1e4a'):''}),_0x5c7751(_0x5a509e);})[_0x2a2636('0x1cb5')](function(_0x2c5dc9){const _0x50920d=_0x2a2636;if(_0x2c5dc9[_0x50920d('0x11fc')]&&_0x2c5dc9[_0x50920d('0x11fc')][_0x50920d('0x25be')]&&_0x2c5dc9[_0x50920d('0x11fc')]['errors'][_0x50920d('0x2566')]){_0x3447c4[_0x50920d('0x25be')]=_0x2c5dc9[_0x50920d('0x11fc')][_0x50920d('0x25be')]||[{'message':_0x2c5dc9['toString'](),'type':_0x50920d('0x1b35')}];for(let _0x3c10d6=0x0;_0x3c10d6<_0x2c5dc9[_0x50920d('0x11fc')]['errors']['length'];_0x3c10d6+=0x1){_0xfea191[_0x50920d('0x5e8')]({'title':_0x2c5dc9[_0x50920d('0x11fc')][_0x50920d('0x25be')][_0x3c10d6][_0x50920d('0x1d7')],'msg':_0x2c5dc9[_0x50920d('0x11fc')][_0x50920d('0x25be')][_0x3c10d6][_0x50920d('0x15e2')]});}}else _0xfea191['error']({'title':_0x2c5dc9[_0x50920d('0x1b51')]?'API:'+_0x2c5dc9[_0x50920d('0x1b51')]+_0x50920d('0x1b0b')+_0x2c5dc9[_0x50920d('0x22ce')]:_0x50920d('0x1b35'),'msg':_0x2c5dc9[_0x50920d('0x11fc')]?JSON[_0x50920d('0x1be0')](_0x2c5dc9[_0x50920d('0x11fc')][_0x50920d('0x15e2')]):_0x2c5dc9[_0x50920d('0x17df')]()});});}function _0x426f93(){const _0xee90e5=_0x3615cd;_0x3447c4[_0xee90e5('0x25be')]=[],_0x3f56ce[_0xee90e5('0x6fb')][_0xee90e5('0x2740')]({'id':_0x3447c4[_0xee90e5('0x15c')]['id']},_0x3447c4[_0xee90e5('0x15c')])['$promise'][_0xee90e5('0x2788')](function(_0x316107){const _0x306d80=_0xee90e5,_0xfdae57=_0x283545()['find'](_0x3447c4[_0x306d80('0xa6a')],{'id':_0x316107['id']});_0xfdae57&&_0x283545()[_0x306d80('0x2503')](_0xfdae57,_0x283545()[_0x306d80('0x41b')](_0x316107[_0x306d80('0x1cbf')](),_0x283545()[_0x306d80('0x2163')](_0xfdae57))),_0xfea191[_0x306d80('0x173b')]({'title':_0x306d80('0x1a4d'),'msg':_0x3447c4[_0x306d80('0x15c')]['name']?_0x3447c4[_0x306d80('0x15c')][_0x306d80('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x5c7751(_0x316107);})[_0xee90e5('0x1cb5')](function(_0x1933f1){const _0x1cbd5b=_0xee90e5;if(_0x1933f1[_0x1cbd5b('0x11fc')]&&_0x1933f1[_0x1cbd5b('0x11fc')][_0x1cbd5b('0x25be')]&&_0x1933f1[_0x1cbd5b('0x11fc')]['errors'][_0x1cbd5b('0x2566')]){_0x3447c4[_0x1cbd5b('0x25be')]=_0x1933f1[_0x1cbd5b('0x11fc')][_0x1cbd5b('0x25be')]||[{'message':_0x1933f1[_0x1cbd5b('0x17df')](),'type':_0x1cbd5b('0xbe3')}];for(let _0x112cc4=0x0;_0x112cc4<_0x1933f1['data'][_0x1cbd5b('0x25be')][_0x1cbd5b('0x2566')];_0x112cc4++){_0xfea191[_0x1cbd5b('0x5e8')]({'title':_0x1933f1[_0x1cbd5b('0x11fc')][_0x1cbd5b('0x25be')][_0x112cc4][_0x1cbd5b('0x1d7')],'msg':_0x1933f1[_0x1cbd5b('0x11fc')][_0x1cbd5b('0x25be')][_0x112cc4]['message']});}}else _0xfea191['error']({'title':_0x1933f1['status']?'API:'+_0x1933f1[_0x1cbd5b('0x1b51')]+_0x1cbd5b('0x1b0b')+_0x1933f1[_0x1cbd5b('0x22ce')]:'api.intDeskAccount.update','msg':_0x1933f1[_0x1cbd5b('0x11fc')]?JSON[_0x1cbd5b('0x1be0')](_0x1933f1[_0x1cbd5b('0x11fc')]['message']):_0x1933f1[_0x1cbd5b('0x17df')]()});});}function _0x3e40a9(_0x33b792){const _0x39916a=_0x3615cd;_0x3447c4[_0x39916a('0x25be')]=[];const _0x20861d=_0x411dcb[_0x39916a('0x112e')]()[_0x39916a('0x14e4')]('Are\x20you\x20sure?')[_0x39916a('0x1c98')](_0x39916a('0x1971'))[_0x39916a('0x10bc')](_0x39916a('0x186c'))['ok'](_0x39916a('0x2786'))[_0x39916a('0x1801')](_0x39916a('0x1481'))[_0x39916a('0x24d0')](_0x33b792);_0x411dcb['show'](_0x20861d)[_0x39916a('0x2788')](function(){const _0x440860=_0x39916a;_0x3f56ce[_0x440860('0x6fb')][_0x440860('0x17c4')]({'id':_0x3447c4[_0x440860('0x15c')]['id']})[_0x440860('0x1714')][_0x440860('0x2788')](function(){const _0x3178f5=_0x440860;_0x283545()[_0x3178f5('0x1a90')](_0x3447c4[_0x3178f5('0xa6a')],{'id':_0x3447c4[_0x3178f5('0x15c')]['id']}),_0xfea191['success']({'title':_0x3178f5('0x2b9'),'msg':(_0x3447c4[_0x3178f5('0x15c')][_0x3178f5('0x1a8d')]||_0x3178f5('0x15c'))+_0x3178f5('0x14d4')}),_0x5c7751(_0x3447c4['deskAccount']);})[_0x440860('0x1cb5')](function(_0x48c049){const _0xe86db1=_0x440860;if(_0x48c049[_0xe86db1('0x11fc')]&&_0x48c049['data'][_0xe86db1('0x25be')]&&_0x48c049[_0xe86db1('0x11fc')][_0xe86db1('0x25be')][_0xe86db1('0x2566')]){_0x3447c4[_0xe86db1('0x25be')]=_0x48c049[_0xe86db1('0x11fc')][_0xe86db1('0x25be')]||[{'message':_0x48c049[_0xe86db1('0x17df')](),'type':'api.intDeskAccount.delete'}];for(let _0xf24997=0x0;_0xf24997<_0x48c049['data'][_0xe86db1('0x25be')][_0xe86db1('0x2566')];_0xf24997++){_0xfea191['error']({'title':_0x48c049[_0xe86db1('0x11fc')][_0xe86db1('0x25be')][_0xf24997][_0xe86db1('0x1d7')],'msg':_0x48c049['data'][_0xe86db1('0x25be')][_0xf24997][_0xe86db1('0x15e2')]});}}else _0xfea191[_0xe86db1('0x5e8')]({'title':_0x48c049[_0xe86db1('0x1b51')]?'API:'+_0x48c049[_0xe86db1('0x1b51')]+_0xe86db1('0x1b0b')+_0x48c049[_0xe86db1('0x22ce')]:_0xe86db1('0x107d'),'msg':_0x48c049[_0xe86db1('0x11fc')]?JSON[_0xe86db1('0x1be0')](_0x48c049[_0xe86db1('0x11fc')][_0xe86db1('0x15e2')]):_0x48c049[_0xe86db1('0x15e2')]||_0x48c049[_0xe86db1('0x17df')]()});});},function(){});}function _0x3433e9(_0x56e0ae){return _0x56e0ae===null?undefined:new Date(_0x56e0ae);}function _0x5c7751(_0x5af8bd){const _0x42c1d4=_0x3615cd;_0x411dcb[_0x42c1d4('0x19d')](_0x5af8bd);}}const _0x3ac52b=_0x29c9ea,_0x4e3df6=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog.html';_0xe23633[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0xa6a'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),'setting'];function _0xe23633(_0x531fa5,_0x17f903,_0x26e4e9,_0x4e631a,_0x218bf1,_0x51ad88,_0x1830ee,_0x358979,_0x2c5e42,_0x5bf516,_0x4cff13,_0x5d1373,_0x31a05e,_0xa0d72c,_0x2581f9,_0x55ecad,_0x4108a6){const _0x330753=_0x34e79e,_0x2a1013=this;_0x2a1013[_0x330753('0x130d')]=_0x55ecad,_0x2a1013[_0x330753('0x1af0')]=_0x4108a6,_0x2a1013['currentUser']=_0x2581f9['getCurrentUser'](),_0x2a1013[_0x330753('0xa6a')]=_0x2c5e42||{'count':0x0,'rows':[]},_0x2a1013[_0x330753('0x63c')]=_0x5bf516,_0x2a1013[_0x330753('0xec9')]=_0x4cff13&&_0x4cff13['count']==0x1?_0x4cff13[_0x330753('0x25df')][0x0]:null,_0x2a1013['crudPermissions']=_0x2581f9[_0x330753('0x157e')](_0x2a1013['userProfileSection']?_0x2a1013[_0x330753('0xec9')][_0x330753('0xe28')]:null),_0x2a1013[_0x330753('0x26a9')]=_0x330753('0xa6a'),_0x2a1013[_0x330753('0x2278')]='',_0x2a1013[_0x330753('0x25e2')]=null,_0x2a1013[_0x330753('0x4c4')]=[],_0x2a1013['query']={'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'page':0x1},_0x2a1013[_0x330753('0x1221')]=_0x283545()['keyBy']([{'option':_0x330753('0x8c5'),'value':'\x27integrationTab\x27'},{'option':_0x330753('0x113c'),'value':_0x330753('0x1b59')}],function(_0x44cf49){const _0xedf424=_0x330753;return _0x283545()['replace'](_0x44cf49[_0xedf424('0x49')],new RegExp('\x27','g'),'');}),_0x2a1013['arrayauthType']=_0x283545()[_0x330753('0x13cf')]([{'option':'Basic','value':_0x330753('0x255f')}],function(_0x2c0339){const _0x34fe8a=_0x330753;return _0x283545()[_0x34fe8a('0x10a4')](_0x2c0339[_0x34fe8a('0x49')],new RegExp('\x27','g'),'');}),_0x2a1013[_0x330753('0x1f7e')]=_0x2769b7,_0x2a1013[_0x330753('0x1f2f')]=_0x5f1947,_0x2a1013['deleteconfirm']=_0x371b06,_0x2a1013[_0x330753('0x173b')]=_0x2bfe1c,_0x2a1013[_0x330753('0x1e79')]=_0x1dd082,_0x2a1013[_0x330753('0xe2d')]=_0x476296,_0x2a1013['deleteDeskAccount']=_0x35c567,_0x2a1013[_0x330753('0x1518')]=_0x1e681e,_0x2a1013[_0x330753('0x4ae')]=_0x27dc8d,_0x2a1013['deselectDeskAccounts']=_0x355e0c,_0x2a1013[_0x330753('0x1833')]=_0x4e7979;function _0x2769b7(_0x1b9cbe){const _0x3d9ebc=_0x330753;_0x26e4e9['go']('app.integrations.deskAccounts.edit',{'id':_0x1b9cbe['id'],'deskAccount':_0x1b9cbe,'crudPermissions':_0x2a1013[_0x3d9ebc('0xe28')]});}function _0x5f1947(_0x1f28a6){const _0x226b10=_0x330753;return _0x5d1373[_0x226b10('0x6fb')][_0x226b10('0x24')]({'id':_0x1f28a6['id'],'test':!![]})['$promise'][_0x226b10('0x2788')](function(){const _0x157660=_0x226b10;_0xa0d72c[_0x157660('0x173b')]({'title':_0x157660('0x2579'),'msg':'Connection\x20succeded!'});})[_0x226b10('0x1cb5')](function(_0x2fc286){const _0x5064c7=_0x226b10;_0xa0d72c['error']({'title':'DeskAccount\x20properly\x20tested','msg':_0x2fc286[_0x5064c7('0x11fc')]?_0x2fc286['data'][_0x5064c7('0x15e2')]?_0x2fc286['data']['message']:JSON[_0x5064c7('0x1be0')](_0x2fc286['data']):_0x2fc286[_0x5064c7('0x17df')]()});});}function _0x371b06(_0x216cf3,_0x43cc1b){const _0x1a54c2=_0x330753,_0x2abb1b=_0x218bf1[_0x1a54c2('0x112e')]()['title'](_0x1a54c2('0x2114')+_0x283545()[_0x1a54c2('0x114')]('deskAccount')+'?')['htmlContent'](_0x1a54c2('0x1670')+(_0x216cf3[_0x1a54c2('0x1a8d')]||_0x1a54c2('0x15c'))+_0x1a54c2('0x229e')+_0x1a54c2('0x27c7'))[_0x1a54c2('0x10bc')](_0x1a54c2('0xc08'))[_0x1a54c2('0x24d0')](_0x43cc1b)['ok']('OK')['cancel']('CANCEL');_0x218bf1[_0x1a54c2('0x2fa')](_0x2abb1b)[_0x1a54c2('0x2788')](function(){_0x35c567(_0x216cf3);},function(){console['log']('CANCEL');});}let _0x2b99dd=!![],_0x2886cf=0x1;_0x531fa5[_0x330753('0x1662')](_0x330753('0x1569'),function(_0x566d0e,_0x314529){const _0x1f63e0=_0x330753;_0x2b99dd?_0x1830ee(function(){_0x2b99dd=![];}):(!_0x314529&&(_0x2886cf=_0x2a1013[_0x1f63e0('0x135a')][_0x1f63e0('0x23f5')]),_0x566d0e!==_0x314529&&(_0x2a1013[_0x1f63e0('0x135a')][_0x1f63e0('0x23f5')]=0x1),!_0x566d0e&&(_0x2a1013[_0x1f63e0('0x135a')][_0x1f63e0('0x23f5')]=_0x2886cf),_0x2a1013[_0x1f63e0('0x1e79')]());});function _0x2bfe1c(_0x3f9dc2){_0x2a1013['deskAccounts']=_0x3f9dc2||{'count':0x0,'rows':[]};}function _0x1dd082(){const _0x1a6750=_0x330753;_0x2a1013[_0x1a6750('0x135a')][_0x1a6750('0x19e')]=(_0x2a1013[_0x1a6750('0x135a')]['page']-0x1)*_0x2a1013[_0x1a6750('0x135a')][_0x1a6750('0x68e')],_0x2581f9[_0x1a6750('0x1516')](_0x1a6750('0xe23'))?_0x2a1013[_0x1a6750('0x1808')]=_0x5d1373[_0x1a6750('0x6fb')][_0x1a6750('0x1335')](_0x2a1013[_0x1a6750('0x135a')],_0x2bfe1c)[_0x1a6750('0x1714')]:(_0x2a1013[_0x1a6750('0x135a')]['id']=_0x2a1013[_0x1a6750('0x63c')]['id'],_0x2a1013['query']['section']='DeskAccounts',_0x2a1013['promise']=_0x5d1373[_0x1a6750('0x63c')][_0x1a6750('0xa1')](_0x2a1013[_0x1a6750('0x135a')],_0x2bfe1c)[_0x1a6750('0x1714')]);}function _0x476296(_0x5e0382,_0xb08e99){const _0x45d407=_0x330753;_0x218bf1['show']({'controller':_0x45d407('0x1fe3'),'controllerAs':'vm','templateUrl':_0x4e3df6,'parent':angular[_0x45d407('0x16b1')](_0x51ad88[_0x45d407('0x945')]),'targetEvent':_0x5e0382,'clickOutsideToClose':!![],'locals':{'deskAccount':_0xb08e99,'deskAccounts':_0x2a1013['deskAccounts'][_0x45d407('0x25df')],'license':_0x2a1013[_0x45d407('0x130d')],'setting':_0x2a1013[_0x45d407('0x1af0')],'crudPermissions':_0x2a1013['crudPermissions']}});}function _0x35c567(_0x273120){const _0x5b4532=_0x330753;_0x5d1373[_0x5b4532('0x6fb')][_0x5b4532('0x17c4')]({'id':_0x273120['id']})[_0x5b4532('0x1714')]['then'](function(){const _0x55bf82=_0x5b4532;_0x283545()[_0x55bf82('0x1a90')](_0x2a1013['deskAccounts'][_0x55bf82('0x25df')],{'id':_0x273120['id']}),_0x2a1013[_0x55bf82('0xa6a')][_0x55bf82('0x338')]-=0x1,!_0x2a1013['deskAccounts'][_0x55bf82('0x25df')][_0x55bf82('0x2566')]&&_0x2a1013['getDeskAccounts'](),_0xa0d72c[_0x55bf82('0x173b')]({'title':_0x283545()[_0x55bf82('0x114')](_0x55bf82('0x14b1'))+_0x55bf82('0x20db'),'msg':_0x273120[_0x55bf82('0x1a8d')]?_0x273120[_0x55bf82('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x8c8912){const _0x3a999a=_0x5b4532;if(_0x8c8912[_0x3a999a('0x11fc')]&&_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x25be')]&&_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x25be')][_0x3a999a('0x2566')]){_0x2a1013[_0x3a999a('0x25be')]=_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x25be')]||[{'message':_0x8c8912['toString'](),'type':_0x3a999a('0x1038')}];for(let _0x5dddc4=0x0;_0x5dddc4<_0x8c8912[_0x3a999a('0x11fc')]['errors'][_0x3a999a('0x2566')];_0x5dddc4++){_0xa0d72c[_0x3a999a('0x5e8')]({'title':_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x25be')][_0x5dddc4][_0x3a999a('0x1d7')],'msg':_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x25be')][_0x5dddc4][_0x3a999a('0x15e2')]});}}else _0xa0d72c[_0x3a999a('0x5e8')]({'title':_0x8c8912[_0x3a999a('0x1b51')]?_0x3a999a('0x15d1')+_0x8c8912[_0x3a999a('0x1b51')]+_0x3a999a('0x1b0b')+_0x8c8912[_0x3a999a('0x22ce')]:'SYSTEM:DELETEintDeskAccount','msg':_0x8c8912[_0x3a999a('0x11fc')]?JSON[_0x3a999a('0x1be0')](_0x8c8912[_0x3a999a('0x11fc')][_0x3a999a('0x15e2')]):_0x8c8912[_0x3a999a('0x15e2')]||_0x8c8912[_0x3a999a('0x17df')]()});});}function _0x1e681e(){const _0x33f0d6=_0x330753,_0x47d1d0=angular[_0x33f0d6('0x2669')](_0x2a1013[_0x33f0d6('0x4c4')]);return _0x2a1013[_0x33f0d6('0x4c4')]=[],_0x47d1d0;}function _0x27dc8d(_0x2c8671){const _0x393b41=_0x330753,_0x86a032=_0x218bf1['confirm']()[_0x393b41('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?')[_0x393b41('0x93e')](_0x393b41('0x1670')+_0x2a1013['selectedDeskAccounts'][_0x393b41('0x2566')]+_0x393b41('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x393b41('0x17bd'))[_0x393b41('0x24d0')](_0x2c8671)['ok']('OK')[_0x393b41('0x1801')](_0x393b41('0x1d8d'));_0x218bf1[_0x393b41('0x2fa')](_0x86a032)['then'](function(){const _0x493b60=_0x393b41;_0x2a1013[_0x493b60('0x4c4')]['forEach'](function(_0xc160d3){_0x35c567(_0xc160d3);}),_0x2a1013[_0x493b60('0x4c4')]=[];});}function _0x355e0c(){_0x2a1013['selectedDeskAccounts']=[];}function _0x4e7979(){const _0x306eca=_0x330753;_0x2a1013['selectedDeskAccounts']=_0x2a1013[_0x306eca('0xa6a')]['rows'];}}const _0x436cdc=_0xe23633,_0x4b1c89=_0x18dd13['p']+_0x34e79e('0x1ace'),_0x265db2=_0x18dd13['p']+_0x34e79e('0x17ca');_0x492f12[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth'];function _0x492f12(_0x19cd27,_0x7fc999,_0x505f99,_0x46e4b1,_0x58c248){const _0x3ae560=_0x34e79e,_0x39199a=this;_0x39199a['currentUser']=_0x58c248[_0x3ae560('0x24cc')](),_0x39199a[_0x3ae560('0x15c')]={},_0x39199a[_0x3ae560('0xdd4')]={},_0x39199a[_0x3ae560('0x1b77')]=[],_0x39199a[_0x3ae560('0x1071')]=-0x1,_0x39199a['crudPermissions'],_0x39199a[_0x3ae560('0x24eb')]=_0x290ad0,_0x39199a['getDeskConfiguration']=_0x495d19,_0x39199a[_0x3ae560('0xcc7')]=_0x44ab4b,_0x39199a[_0x3ae560('0x1463')]=_0x2812a5,_0x39199a[_0x3ae560('0xf6c')]=[],_0x39199a[_0x3ae560('0x1815')]=_0x15a17e,_0x505f99[_0x3ae560('0x1764')]['get']({'nolimit':!![],'sort':'name'})[_0x3ae560('0x1714')]['then'](function(_0x29077a){const _0x53d380=_0x3ae560;_0x39199a[_0x53d380('0xe45')]=_0x29077a['rows']?_0x29077a['rows']:[];})[_0x3ae560('0x1cb5')](function(_0x3516e5){const _0x5836aa=_0x3ae560;_0x46e4b1[_0x5836aa('0x5e8')]({'title':_0x3516e5[_0x5836aa('0x1b51')]?_0x5836aa('0x15d1')+_0x3516e5[_0x5836aa('0x1b51')]+_0x5836aa('0x1b0b')+_0x3516e5[_0x5836aa('0x22ce')]:'SYSTEM:GETTAGS','msg':_0x3516e5[_0x5836aa('0x11fc')]?JSON[_0x5836aa('0x1be0')](_0x3516e5[_0x5836aa('0x11fc')]):_0x3516e5[_0x5836aa('0x17df')]()});});function _0x15a17e(){const _0x4da431=_0x3ae560;_0x505f99['intDeskConfiguration'][_0x4da431('0x53a')]({'id':_0x39199a[_0x4da431('0xdd4')]['id'],'ids':_0x39199a[_0x4da431('0xf6c')]})[_0x4da431('0x1714')][_0x4da431('0x2788')](function(){const _0x4e1b6a=_0x4da431;_0x46e4b1[_0x4e1b6a('0x173b')]({'title':_0x4e1b6a('0xc53'),'msg':_0x4e1b6a('0x765')});})[_0x4da431('0x1cb5')](function(_0x202ed0){const _0x324a11=_0x4da431;_0x46e4b1['error']({'title':_0x202ed0[_0x324a11('0x1b51')]?_0x324a11('0x15d1')+_0x202ed0[_0x324a11('0x1b51')]+'\x20-\x20'+_0x202ed0[_0x324a11('0x22ce')]:_0x324a11('0x271d'),'msg':_0x202ed0[_0x324a11('0x11fc')]?JSON[_0x324a11('0x1be0')](_0x202ed0[_0x324a11('0x11fc')]):_0x202ed0[_0x324a11('0x17df')]()});});}function _0x290ad0(_0x38608b,_0x2e23d9){const _0x2ab189=_0x3ae560;_0x39199a['deskAccount']=_0x38608b,_0x39199a[_0x2ab189('0xe28')]=typeof _0x2e23d9!=='undefined'?_0x2e23d9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x505f99['intDeskAccount'][_0x2ab189('0x1168')]({'id':_0x39199a[_0x2ab189('0x15c')]['id'],'sort':_0x2ab189('0x1cee')})['$promise'][_0x2ab189('0x2788')](function(_0x254106){const _0x48428a=_0x2ab189;return _0x39199a['configurations']=_0x254106[_0x48428a('0x25df')]?_0x254106[_0x48428a('0x25df')]:[],_0x39199a[_0x48428a('0x1b77')]['length']&&_0x39199a[_0x48428a('0x7e0')](0x0),_0x505f99['variable'][_0x48428a('0x1335')]({'nolimit':!![],'sort':'name'})['$promise'];})[_0x2ab189('0x2788')](function(_0x4bc2e7){const _0x2df99f=_0x2ab189;_0x39199a[_0x2df99f('0xf76')]=_0x4bc2e7[_0x2df99f('0x25df')]?_0x4bc2e7[_0x2df99f('0x25df')]:[],_0x39199a[_0x2df99f('0xdd1')]=_0x283545()[_0x2df99f('0x13cf')](_0x39199a[_0x2df99f('0xf76')],'id');})[_0x2ab189('0x1cb5')](function(_0x1c2952){const _0x590add=_0x2ab189;_0x46e4b1[_0x590add('0x5e8')]({'title':_0x1c2952[_0x590add('0x1b51')]?_0x590add('0x15d1')+_0x1c2952[_0x590add('0x1b51')]+_0x590add('0x1b0b')+_0x1c2952[_0x590add('0x22ce')]:_0x590add('0x24e'),'msg':_0x1c2952['data']?JSON[_0x590add('0x1be0')](_0x1c2952['data']):_0x1c2952[_0x590add('0x17df')]()});});}function _0x495d19(_0x469d61){const _0x3667ba=_0x3ae560;_0x39199a[_0x3667ba('0xdd4')]=_0x39199a['configurations'][_0x469d61],_0x39199a[_0x3667ba('0x1071')]=_0x469d61,_0x505f99['intDeskConfiguration'][_0x3667ba('0x12c5')]({'id':_0x39199a[_0x3667ba('0xdd4')]['id']})[_0x3667ba('0x1714')][_0x3667ba('0x2788')](function(_0x5efb22){const _0x3e276b=_0x3667ba;return _0x39199a['subjects']=_0x5efb22['rows']?_0x5efb22[_0x3e276b('0x25df')]:[],_0x505f99['intDeskConfiguration'][_0x3e276b('0x221a')]({'id':_0x39199a[_0x3e276b('0xdd4')]['id']})[_0x3e276b('0x1714')];})[_0x3667ba('0x2788')](function(_0x8a99ca){const _0x33e243=_0x3667ba;return _0x39199a[_0x33e243('0x1942')]=_0x8a99ca[_0x33e243('0x25df')]?_0x8a99ca[_0x33e243('0x25df')]:[],_0x505f99[_0x33e243('0x1f6f')][_0x33e243('0x24')]({'id':_0x39199a['deskConfiguration']['id']})[_0x33e243('0x1714')];})['then'](function(_0x4a69a6){const _0x47ede0=_0x3667ba;_0x39199a['fields']=_0x4a69a6[_0x47ede0('0x25df')]?_0x4a69a6['rows']:[];})[_0x3667ba('0x1cb5')](function(_0x31ac8e){const _0x84ad09=_0x3667ba;_0x46e4b1['error']({'title':_0x31ac8e['status']?'API:'+_0x31ac8e[_0x84ad09('0x1b51')]+_0x84ad09('0x1b0b')+_0x31ac8e['statusText']:'SYSTEM:GETConfigurations','msg':_0x31ac8e['data']?JSON['stringify'](_0x31ac8e['data']):_0x31ac8e[_0x84ad09('0x17df')]()});}),_0x505f99['intDeskConfiguration'][_0x3667ba('0x1c39')]({'id':_0x39199a['deskConfiguration']['id']})[_0x3667ba('0x1714')][_0x3667ba('0x2788')](function(_0x3561fd){const _0x3a0d1d=_0x3667ba;_0x39199a[_0x3a0d1d('0xf6c')]=_0x3561fd[_0x3a0d1d('0x25df')]?_0x283545()[_0x3a0d1d('0x155d')](_0x3561fd[_0x3a0d1d('0x25df')],'id'):[];})[_0x3667ba('0x1cb5')](function(_0x4092a6){const _0x4c303a=_0x3667ba;_0x46e4b1[_0x4c303a('0x5e8')]({'title':_0x4092a6['status']?'API:'+_0x4092a6[_0x4c303a('0x1b51')]+_0x4c303a('0x1b0b')+_0x4092a6[_0x4c303a('0x22ce')]:_0x4c303a('0x1313'),'msg':_0x4092a6[_0x4c303a('0x11fc')]?JSON['stringify'](_0x4092a6[_0x4c303a('0x11fc')]):_0x4092a6['toString']()});});}function _0x44ab4b(_0x474440,_0x1080f2){const _0x39a360=_0x3ae560;_0x19cd27[_0x39a360('0x2fa')]({'controller':_0x39a360('0x1092'),'controllerAs':'vm','templateUrl':_0x4b1c89,'parent':angular[_0x39a360('0x16b1')](_0x7fc999[_0x39a360('0x945')]),'targetEvent':_0x474440,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x1080f2,'configurations':_0x39199a['configurations'],'license':null,'setting':null,'crudPermissions':_0x39199a['crudPermissions']}})[_0x39a360('0x1ed8')](function(){_0x39199a['getDeskConfiguration'](0x0);});}function _0x2812a5(_0x70ec14,_0x1bd027){const _0x294f67=_0x3ae560,_0x48d395=_0x19cd27['confirm']()[_0x294f67('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?')[_0x294f67('0x93e')](_0x294f67('0x1670')+(_0x1bd027[_0x294f67('0x1a8d')]||_0x294f67('0xdd4'))+_0x294f67('0x229e')+_0x294f67('0x27c7'))[_0x294f67('0x10bc')](_0x294f67('0x231b'))['targetEvent'](_0x70ec14)['ok']('OK')[_0x294f67('0x1801')](_0x294f67('0x1d8d'));_0x19cd27[_0x294f67('0x2fa')](_0x48d395)[_0x294f67('0x2788')](function(){const _0x27271f=_0x294f67;_0x505f99[_0x27271f('0x1f6f')][_0x27271f('0x17c4')]({'id':_0x1bd027['id']})['$promise'][_0x27271f('0x2788')](function(){const _0x12b02a=_0x27271f;_0x283545()['remove'](_0x39199a[_0x12b02a('0x1b77')],{'id':_0x1bd027['id']}),_0x46e4b1[_0x12b02a('0x173b')]({'title':_0x12b02a('0x1d6e'),'msg':_0x1bd027[_0x12b02a('0x1a8d')]?_0x1bd027[_0x12b02a('0x1a8d')]+_0x12b02a('0x14d4'):''});})[_0x27271f('0x1cb5')](function(_0xa2414d){const _0x18e08e=_0x27271f;_0x46e4b1[_0x18e08e('0x5e8')]({'title':_0xa2414d[_0x18e08e('0x1b51')]?_0x18e08e('0x15d1')+_0xa2414d[_0x18e08e('0x1b51')]+'\x20-\x20'+_0xa2414d['statusText']:_0x18e08e('0x26b4'),'msg':_0xa2414d[_0x18e08e('0x11fc')]?JSON[_0x18e08e('0x1be0')](_0xa2414d[_0x18e08e('0x11fc')]):_0xa2414d[_0x18e08e('0x17df')]()});})[_0x27271f('0x1ed8')](function(){const _0x3bed65=_0x27271f;_0x39199a[_0x3bed65('0x7e0')](0x0);});},function(){const _0x3dfe24=_0x294f67;console[_0x3dfe24('0x10df')](_0x3dfe24('0x1d8d'));});}_0x39199a[_0x3ae560('0x2012')]=[],_0x39199a[_0x3ae560('0xe3e')]=_0xd52098,_0x39199a[_0x3ae560('0x13b')]=_0x5f3d95,_0x39199a[_0x3ae560('0x5ec')]=_0x5e4c0f;function _0xd52098(_0x43054c,_0x4d7dee){const _0x34c64e=_0x3ae560;_0x19cd27[_0x34c64e('0x2fa')]({'controller':_0x34c64e('0x72a'),'controllerAs':'vm','templateUrl':_0x265db2,'parent':angular[_0x34c64e('0x16b1')](_0x7fc999[_0x34c64e('0x945')]),'targetEvent':_0x43054c,'clickOutsideToClose':!![],'locals':{'type':_0x34c64e('0x248f'),'item':_0x4d7dee,'items':_0x39199a[_0x34c64e('0x348')],'configuration':_0x39199a[_0x34c64e('0xdd4')],'account':_0x39199a[_0x34c64e('0x15c')],'license':null,'setting':null,'crudPermissions':_0x39199a[_0x34c64e('0xe28')]}});}function _0x402d0a(_0x181e25){const _0x2ac20a=_0x3ae560;_0x505f99[_0x2ac20a('0xb6f')][_0x2ac20a('0x17c4')]({'id':_0x181e25['id']})[_0x2ac20a('0x1714')][_0x2ac20a('0x2788')](function(){const _0x3a65c3=_0x2ac20a;_0x283545()[_0x3a65c3('0x1a90')](_0x39199a[_0x3a65c3('0x348')],{'id':_0x181e25['id']}),_0x46e4b1['success']({'title':_0x3a65c3('0x306'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x2ac20a('0x1cb5')](function(_0x2850b5){const _0x36f2b6=_0x2ac20a;_0x46e4b1[_0x36f2b6('0x5e8')]({'title':_0x2850b5[_0x36f2b6('0x1b51')]?'API:'+_0x2850b5[_0x36f2b6('0x1b51')]+_0x36f2b6('0x1b0b')+_0x2850b5[_0x36f2b6('0x22ce')]:_0x36f2b6('0x2803'),'msg':_0x2850b5[_0x36f2b6('0x11fc')]?JSON[_0x36f2b6('0x1be0')](_0x2850b5['data']):_0x2850b5[_0x36f2b6('0x17df')]()});});}function _0x5f3d95(_0x164b25,_0x358a99){const _0x1969e1=_0x3ae560,_0x361ba8=_0x19cd27['confirm']()[_0x1969e1('0x14e4')](_0x1969e1('0x6dd'))['htmlContent'](_0x1969e1('0xdc')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1969e1('0x2126'))[_0x1969e1('0x24d0')](_0x164b25)['ok']('OK')[_0x1969e1('0x1801')](_0x1969e1('0x1d8d'));_0x19cd27[_0x1969e1('0x2fa')](_0x361ba8)[_0x1969e1('0x2788')](function(){_0x402d0a(_0x358a99);},function(){const _0x2b3d13=_0x1969e1;console[_0x2b3d13('0x10df')](_0x2b3d13('0x1d8d'));});}function _0x5e4c0f(_0x9b5c5c){const _0x7d629a=_0x3ae560,_0x4cf960=_0x19cd27[_0x7d629a('0x112e')]()['title'](_0x7d629a('0xa11'))[_0x7d629a('0x93e')](_0x7d629a('0x1670')+_0x39199a[_0x7d629a('0x2012')][_0x7d629a('0x2566')]+_0x7d629a('0xbd')+_0x7d629a('0x27c7'))[_0x7d629a('0x10bc')](_0x7d629a('0x19b1'))[_0x7d629a('0x24d0')](_0x9b5c5c)['ok']('OK')['cancel'](_0x7d629a('0x1d8d'));_0x19cd27[_0x7d629a('0x2fa')](_0x4cf960)[_0x7d629a('0x2788')](function(){const _0x2a7a50=_0x7d629a;_0x39199a['selectedSubjects'][_0x2a7a50('0x1534')](function(_0x3acfe2){_0x402d0a(_0x3acfe2);}),_0x39199a['selectedSubjects']=[];});}_0x39199a['selectedDescriptions']=[],_0x39199a[_0x3ae560('0x820')]=_0x1fdf88,_0x39199a['deleteDescriptionConfirm']=_0x380620,_0x39199a['deleteSelectedDescriptions']=_0x57c760;function _0x1fdf88(_0x122216,_0x125cf8){const _0x27f685=_0x3ae560;_0x19cd27[_0x27f685('0x2fa')]({'controller':_0x27f685('0x72a'),'controllerAs':'vm','templateUrl':_0x265db2,'parent':angular[_0x27f685('0x16b1')](_0x7fc999['body']),'targetEvent':_0x122216,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x125cf8,'items':_0x39199a[_0x27f685('0x1942')],'configuration':_0x39199a[_0x27f685('0xdd4')],'account':_0x39199a[_0x27f685('0x15c')],'license':null,'setting':null,'crudPermissions':_0x39199a['crudPermissions']}});}function _0x38371b(_0x2f1dac){const _0x40d963=_0x3ae560;_0x505f99['intDeskField'][_0x40d963('0x17c4')]({'id':_0x2f1dac['id']})[_0x40d963('0x1714')][_0x40d963('0x2788')](function(){const _0x72eceb=_0x40d963;_0x283545()[_0x72eceb('0x1a90')](_0x39199a[_0x72eceb('0x1942')],{'id':_0x2f1dac['id']}),_0x46e4b1[_0x72eceb('0x173b')]({'title':'Description\x20deleted!','msg':_0x72eceb('0x50')});})[_0x40d963('0x1cb5')](function(_0x34f41){const _0x2f5b2b=_0x40d963;_0x46e4b1[_0x2f5b2b('0x5e8')]({'title':_0x34f41[_0x2f5b2b('0x1b51')]?'API:'+_0x34f41[_0x2f5b2b('0x1b51')]+_0x2f5b2b('0x1b0b')+_0x34f41[_0x2f5b2b('0x22ce')]:_0x2f5b2b('0x2803'),'msg':_0x34f41[_0x2f5b2b('0x11fc')]?JSON['stringify'](_0x34f41[_0x2f5b2b('0x11fc')]):_0x34f41['toString']()});});}function _0x380620(_0x3296cd,_0x3715b5){const _0x3bde6b=_0x3ae560,_0x4b73a9=_0x19cd27[_0x3bde6b('0x112e')]()[_0x3bde6b('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent']('Description'+_0x3bde6b('0x27c7'))[_0x3bde6b('0x10bc')](_0x3bde6b('0x6b7'))[_0x3bde6b('0x24d0')](_0x3296cd)['ok']('OK')[_0x3bde6b('0x1801')](_0x3bde6b('0x1d8d'));_0x19cd27[_0x3bde6b('0x2fa')](_0x4b73a9)[_0x3bde6b('0x2788')](function(){_0x38371b(_0x3715b5);},function(){const _0x55434a=_0x3bde6b;console[_0x55434a('0x10df')](_0x55434a('0x1d8d'));});}function _0x57c760(_0x388af8){const _0x5ae070=_0x3ae560,_0x9834a6=_0x19cd27[_0x5ae070('0x112e')]()['title'](_0x5ae070('0x1476'))['htmlContent'](''+_0x39199a[_0x5ae070('0x58e')][_0x5ae070('0x2566')]+_0x5ae070('0xbd')+_0x5ae070('0x27c7'))[_0x5ae070('0x10bc')](_0x5ae070('0x1e33'))['targetEvent'](_0x388af8)['ok']('OK')[_0x5ae070('0x1801')](_0x5ae070('0x1d8d'));_0x19cd27['show'](_0x9834a6)['then'](function(){const _0x40464a=_0x5ae070;_0x39199a[_0x40464a('0x58e')][_0x40464a('0x1534')](function(_0x63124e){_0x38371b(_0x63124e);}),_0x39199a['selectedDescriptions']=[];});}_0x39199a[_0x3ae560('0xcc9')]=[],_0x39199a[_0x3ae560('0x17d4')]=_0x50e3cc,_0x39199a[_0x3ae560('0x2386')]=_0x363779,_0x39199a[_0x3ae560('0x262b')]=_0x5b1ffb;function _0x50e3cc(_0x3b3111,_0x58592f){const _0x290510=_0x3ae560;_0x19cd27[_0x290510('0x2fa')]({'controller':_0x290510('0x72a'),'controllerAs':'vm','templateUrl':_0x265db2,'parent':angular[_0x290510('0x16b1')](_0x7fc999[_0x290510('0x945')]),'targetEvent':_0x3b3111,'clickOutsideToClose':!![],'locals':{'type':_0x290510('0x18da'),'item':_0x58592f,'items':_0x39199a[_0x290510('0x1578')],'configuration':_0x39199a[_0x290510('0xdd4')],'account':_0x39199a['deskAccount'],'license':null,'setting':null,'crudPermissions':_0x39199a[_0x290510('0xe28')]}});}function _0x5c280a(_0x5342d5){const _0x1f56f9=_0x3ae560;_0x505f99[_0x1f56f9('0xb6f')][_0x1f56f9('0x17c4')]({'id':_0x5342d5['id']})[_0x1f56f9('0x1714')][_0x1f56f9('0x2788')](function(){const _0x739418=_0x1f56f9;_0x283545()[_0x739418('0x1a90')](_0x39199a[_0x739418('0x1578')],{'id':_0x5342d5['id']}),_0x46e4b1[_0x739418('0x173b')]({'title':_0x739418('0xb76'),'msg':_0x739418('0x1d92')});})[_0x1f56f9('0x1cb5')](function(_0x272762){const _0x5dddff=_0x1f56f9;_0x46e4b1[_0x5dddff('0x5e8')]({'title':_0x272762[_0x5dddff('0x1b51')]?_0x5dddff('0x15d1')+_0x272762[_0x5dddff('0x1b51')]+'\x20-\x20'+_0x272762[_0x5dddff('0x22ce')]:_0x5dddff('0x2803'),'msg':_0x272762['data']?JSON['stringify'](_0x272762[_0x5dddff('0x11fc')]):_0x272762[_0x5dddff('0x17df')]()});});}function _0x363779(_0x3882bb,_0x3cb81e){const _0x1cf4bf=_0x3ae560,_0x25759f=_0x19cd27['confirm']()[_0x1cf4bf('0x14e4')](_0x1cf4bf('0x21d'))['htmlContent'](_0x1cf4bf('0x1151')+_0x1cf4bf('0x27c7'))[_0x1cf4bf('0x10bc')](_0x1cf4bf('0xde7'))[_0x1cf4bf('0x24d0')](_0x3882bb)['ok']('OK')[_0x1cf4bf('0x1801')]('CANCEL');_0x19cd27[_0x1cf4bf('0x2fa')](_0x25759f)[_0x1cf4bf('0x2788')](function(){_0x5c280a(_0x3cb81e);},function(){const _0x28fa18=_0x1cf4bf;console[_0x28fa18('0x10df')](_0x28fa18('0x1d8d'));});}function _0x5b1ffb(_0x578559){const _0x328447=_0x3ae560,_0x3d57e0=_0x19cd27[_0x328447('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x328447('0x93e')](_0x328447('0x1670')+_0x39199a['selectedFields']['length']+_0x328447('0xbd')+_0x328447('0x27c7'))[_0x328447('0x10bc')]('delete\x20fields')[_0x328447('0x24d0')](_0x578559)['ok']('OK')[_0x328447('0x1801')](_0x328447('0x1d8d'));_0x19cd27[_0x328447('0x2fa')](_0x3d57e0)[_0x328447('0x2788')](function(){const _0x1c309b=_0x328447;_0x39199a[_0x1c309b('0xcc9')][_0x1c309b('0x1534')](function(_0x522c42){_0x5c280a(_0x522c42);}),_0x39199a[_0x1c309b('0xcc9')]=[];});}}const _0x12ed8d=_0x492f12;_0x5daf38[_0x34e79e('0x2d9')]=['$scope','$state',_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'configurations','deskConfiguration','api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x5daf38(_0x1dabe6,_0x2da502,_0x13f050,_0x1608d0,_0x138b25,_0x1e6780,_0x406238,_0x49da34,_0xab202c,_0x509870,_0x12c007,_0x437c46,_0x3e849b,_0x23faa6){const _0x4ece95=_0x34e79e,_0x19b5fc=this;_0x19b5fc[_0x4ece95('0x9cb')]=_0x12c007[_0x4ece95('0x24cc')](),_0x19b5fc[_0x4ece95('0x25be')]=[],_0x19b5fc[_0x4ece95('0x1af0')]=_0x3e849b,_0x19b5fc[_0x4ece95('0x130d')]=_0x437c46,_0x19b5fc[_0x4ece95('0xe28')]=_0x23faa6,_0x19b5fc[_0x4ece95('0x1193')]={},_0x19b5fc[_0x4ece95('0x18ad')]=_0x19b5fc[_0x4ece95('0x1af0')]&&_0x19b5fc[_0x4ece95('0x1af0')][_0x4ece95('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19b5fc['title']=_0x4ece95('0x18e'),_0x19b5fc[_0x4ece95('0xdd4')]=angular[_0x4ece95('0x2669')](_0xab202c),_0x19b5fc['configurations']=_0x49da34,_0x19b5fc[_0x4ece95('0xe93')]=![];!_0x19b5fc[_0x4ece95('0xdd4')]&&(_0x19b5fc[_0x4ece95('0xdd4')]={'channel':_0x4ece95('0x1f60'),'type':'inbound'},_0x19b5fc[_0x4ece95('0x14e4')]=_0x4ece95('0x3c8'),_0x19b5fc['newDeskConfiguration']=!![]);_0x19b5fc[_0x4ece95('0x1f2d')]=_0x14e063,_0x19b5fc['saveDeskConfiguration']=_0x42b911,_0x19b5fc[_0x4ece95('0x1463')]=_0x426e94,_0x19b5fc['getDateFromString']=_0xb61366,_0x19b5fc[_0x4ece95('0xca7')]=_0x4ddb3d;function _0x14e063(){const _0x4de3b0=_0x4ece95;_0x19b5fc[_0x4de3b0('0x25be')]=[],_0x509870['intDeskAccount'][_0x4de3b0('0x2757')]({'id':_0x2da502[_0x4de3b0('0x4b9')]['id']},_0x19b5fc['deskConfiguration'])['$promise']['then'](function(_0x539eb6){const _0x2441d0=_0x4de3b0;_0x19b5fc[_0x2441d0('0x1b77')][_0x2441d0('0xc51')](_0x539eb6[_0x2441d0('0x1cbf')]()),_0x406238[_0x2441d0('0x173b')]({'title':_0x2441d0('0x30e'),'msg':_0x19b5fc[_0x2441d0('0xdd4')][_0x2441d0('0x1a8d')]?_0x19b5fc['deskConfiguration']['name']+_0x2441d0('0x1e4a'):''}),_0x4ddb3d(_0x539eb6);})[_0x4de3b0('0x1cb5')](function(_0x1a6e72){const _0x140876=_0x4de3b0;if(_0x1a6e72['data']&&_0x1a6e72[_0x140876('0x11fc')]['errors']&&_0x1a6e72['data'][_0x140876('0x25be')][_0x140876('0x2566')]){_0x19b5fc[_0x140876('0x25be')]=_0x1a6e72[_0x140876('0x11fc')][_0x140876('0x25be')]||[{'message':_0x1a6e72[_0x140876('0x17df')](),'type':_0x140876('0x12f7')}];for(let _0x241e38=0x0;_0x241e38<_0x1a6e72[_0x140876('0x11fc')]['errors'][_0x140876('0x2566')];_0x241e38+=0x1){_0x406238[_0x140876('0x5e8')]({'title':_0x1a6e72[_0x140876('0x11fc')][_0x140876('0x25be')][_0x241e38][_0x140876('0x1d7')],'msg':_0x1a6e72[_0x140876('0x11fc')][_0x140876('0x25be')][_0x241e38][_0x140876('0x15e2')]});}}else _0x406238['error']({'title':_0x1a6e72[_0x140876('0x1b51')]?_0x140876('0x15d1')+_0x1a6e72['status']+_0x140876('0x1b0b')+_0x1a6e72[_0x140876('0x22ce')]:_0x140876('0x12f7'),'msg':_0x1a6e72[_0x140876('0x11fc')]?JSON[_0x140876('0x1be0')](_0x1a6e72[_0x140876('0x11fc')][_0x140876('0x15e2')]):_0x1a6e72[_0x140876('0x17df')]()});});}function _0x42b911(){const _0x1d81d5=_0x4ece95;_0x19b5fc[_0x1d81d5('0x25be')]=[],_0x509870[_0x1d81d5('0x1f6f')]['update']({'id':_0x19b5fc[_0x1d81d5('0xdd4')]['id']},_0x19b5fc[_0x1d81d5('0xdd4')])[_0x1d81d5('0x1714')]['then'](function(_0x14ffdf){const _0x5c22af=_0x1d81d5,_0x48e7ac=_0x283545()['find'](_0x19b5fc[_0x5c22af('0x1b77')],{'id':_0x14ffdf['id']});_0x48e7ac&&_0x283545()['merge'](_0x48e7ac,_0x283545()[_0x5c22af('0x41b')](_0x14ffdf[_0x5c22af('0x1cbf')](),_0x283545()[_0x5c22af('0x2163')](_0x48e7ac))),_0x406238[_0x5c22af('0x173b')]({'title':_0x5c22af('0x1a56'),'msg':_0x19b5fc[_0x5c22af('0xdd4')]['name']?_0x19b5fc[_0x5c22af('0xdd4')][_0x5c22af('0x1a8d')]+_0x5c22af('0x24cf'):''}),_0x4ddb3d(_0x14ffdf);})[_0x1d81d5('0x1cb5')](function(_0x1e3e64){const _0x397ebc=_0x1d81d5;if(_0x1e3e64[_0x397ebc('0x11fc')]&&_0x1e3e64[_0x397ebc('0x11fc')][_0x397ebc('0x25be')]&&_0x1e3e64[_0x397ebc('0x11fc')][_0x397ebc('0x25be')][_0x397ebc('0x2566')]){_0x19b5fc[_0x397ebc('0x25be')]=_0x1e3e64['data'][_0x397ebc('0x25be')]||[{'message':_0x1e3e64[_0x397ebc('0x17df')](),'type':_0x397ebc('0x653')}];for(let _0x5e99a4=0x0;_0x5e99a4<_0x1e3e64[_0x397ebc('0x11fc')]['errors']['length'];_0x5e99a4++){_0x406238[_0x397ebc('0x5e8')]({'title':_0x1e3e64[_0x397ebc('0x11fc')]['errors'][_0x5e99a4][_0x397ebc('0x1d7')],'msg':_0x1e3e64['data'][_0x397ebc('0x25be')][_0x5e99a4][_0x397ebc('0x15e2')]});}}else _0x406238['error']({'title':_0x1e3e64[_0x397ebc('0x1b51')]?_0x397ebc('0x15d1')+_0x1e3e64[_0x397ebc('0x1b51')]+_0x397ebc('0x1b0b')+_0x1e3e64[_0x397ebc('0x22ce')]:_0x397ebc('0x653'),'msg':_0x1e3e64[_0x397ebc('0x11fc')]?JSON['stringify'](_0x1e3e64[_0x397ebc('0x11fc')]['message']):_0x1e3e64['toString']()});});}function _0x426e94(_0x377a71){const _0x17f5b9=_0x4ece95;_0x19b5fc[_0x17f5b9('0x25be')]=[];const _0x428e47=_0x1608d0[_0x17f5b9('0x112e')]()[_0x17f5b9('0x14e4')](_0x17f5b9('0x458'))['content'](_0x17f5b9('0xb78'))[_0x17f5b9('0x10bc')](_0x17f5b9('0x2505'))['ok'](_0x17f5b9('0x2786'))[_0x17f5b9('0x1801')]('Cancel')[_0x17f5b9('0x24d0')](_0x377a71);_0x1608d0[_0x17f5b9('0x2fa')](_0x428e47)['then'](function(){const _0x2c2d14=_0x17f5b9;_0x509870[_0x2c2d14('0x1f6f')][_0x2c2d14('0x17c4')]({'id':_0x19b5fc[_0x2c2d14('0xdd4')]['id']})['$promise'][_0x2c2d14('0x2788')](function(){const _0x5f2b41=_0x2c2d14;_0x283545()[_0x5f2b41('0x1a90')](_0x19b5fc['configurations'],{'id':_0x19b5fc[_0x5f2b41('0xdd4')]['id']}),_0x406238[_0x5f2b41('0x173b')]({'title':'DeskConfiguration\x20properly\x20deleted!','msg':(_0x19b5fc[_0x5f2b41('0xdd4')][_0x5f2b41('0x1a8d')]||_0x5f2b41('0xdd4'))+_0x5f2b41('0x14d4')}),_0x4ddb3d(_0x19b5fc[_0x5f2b41('0xdd4')]);})['catch'](function(_0x34cbb9){const _0x7e5a2=_0x2c2d14;if(_0x34cbb9[_0x7e5a2('0x11fc')]&&_0x34cbb9[_0x7e5a2('0x11fc')][_0x7e5a2('0x25be')]&&_0x34cbb9[_0x7e5a2('0x11fc')][_0x7e5a2('0x25be')][_0x7e5a2('0x2566')]){_0x19b5fc[_0x7e5a2('0x25be')]=_0x34cbb9[_0x7e5a2('0x11fc')][_0x7e5a2('0x25be')]||[{'message':_0x34cbb9['toString'](),'type':_0x7e5a2('0xe96')}];for(let _0x1319c6=0x0;_0x1319c6<_0x34cbb9[_0x7e5a2('0x11fc')][_0x7e5a2('0x25be')][_0x7e5a2('0x2566')];_0x1319c6++){_0x406238[_0x7e5a2('0x5e8')]({'title':_0x34cbb9['data'][_0x7e5a2('0x25be')][_0x1319c6]['type'],'msg':_0x34cbb9[_0x7e5a2('0x11fc')][_0x7e5a2('0x25be')][_0x1319c6][_0x7e5a2('0x15e2')]});}}else _0x406238[_0x7e5a2('0x5e8')]({'title':_0x34cbb9['status']?_0x7e5a2('0x15d1')+_0x34cbb9['status']+'\x20-\x20'+_0x34cbb9[_0x7e5a2('0x22ce')]:'api.intDeskConfiguration.delete','msg':_0x34cbb9[_0x7e5a2('0x11fc')]?JSON[_0x7e5a2('0x1be0')](_0x34cbb9['data']['message']):_0x34cbb9[_0x7e5a2('0x15e2')]||_0x34cbb9[_0x7e5a2('0x17df')]()});});},function(){});}function _0xb61366(_0x3589ae){return _0x3589ae===null?undefined:new Date(_0x3589ae);}function _0x4ddb3d(_0x3faa19){_0x1608d0['hide'](_0x3faa19);}}const _0x1fbd58=_0x5daf38;_0x336afe[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x2437'),_0x34e79e('0x117b'),'item',_0x34e79e('0x82f'),_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x336afe(_0x455adf,_0xbe0534,_0x2e4d98,_0xcdd91d,_0x33732d,_0x4e91fb,_0xf00390,_0x2b9a62,_0x464f12,_0x32c39b,_0x2790b6,_0xf35e2e,_0x1b011b){const _0x51a3c3=_0x34e79e,_0x17736c=this;_0x17736c[_0x51a3c3('0x9cb')]=_0xf35e2e['getCurrentUser'](),_0x17736c[_0x51a3c3('0x25be')]=[],_0x17736c['title']=_0x51a3c3('0x1df9')+_0x283545()[_0x51a3c3('0xc87')](_0x32c39b),_0x17736c[_0x51a3c3('0xd3c')]=angular[_0x51a3c3('0x2669')](_0x2b9a62),_0x17736c['items']=_0xf00390,_0x17736c[_0x51a3c3('0x1d7')]=_0x32c39b,_0x17736c[_0x51a3c3('0xe28')]=_0x1b011b,_0x17736c[_0x51a3c3('0x63a')]=![];!_0x17736c['item']&&(_0x17736c[_0x51a3c3('0xd3c')]={'type':_0x51a3c3('0x2209')},_0x17736c[_0x51a3c3('0xd3c')][_0x283545()[_0x51a3c3('0x1df5')](_0x32c39b)+'Id']=_0x4e91fb['id'],_0x17736c[_0x51a3c3('0x14e4')]=_0x51a3c3('0x1109')+_0x283545()[_0x51a3c3('0xc87')](_0x32c39b),_0x17736c[_0x51a3c3('0x63a')]=!![]);_0x17736c[_0x51a3c3('0x1586')]=_0x36f22e,_0x17736c[_0x51a3c3('0x953')]=_0x1f1e93,_0x17736c['deleteItem']=_0x2bfc9e,_0x17736c[_0x51a3c3('0xb4f')]=_0x179ace,_0x17736c[_0x51a3c3('0xca7')]=_0x2bcd9d,_0x2790b6[_0x51a3c3('0xa72')]['get']({'nolimit':!![]})[_0x51a3c3('0x1714')][_0x51a3c3('0x2788')](function(_0xe29aed){const _0xed44f8=_0x51a3c3;return _0x17736c['variables']=_0xe29aed[_0xed44f8('0x25df')]?_0xe29aed[_0xed44f8('0x25df')]:[],_0x2790b6[_0xed44f8('0x15b7')][_0xed44f8('0x15f8')]()[_0xed44f8('0x1714')];})[_0x51a3c3('0x2788')](function(_0x476992){const _0x13cd8e=_0x51a3c3;return _0x17736c[_0x13cd8e('0x1cac')]=_0x283545()['difference'](_0x283545()[_0x13cd8e('0x2163')](_0x476992),[_0x13cd8e('0x1714'),_0x13cd8e('0x187a'),'createdAt',_0x13cd8e('0x5f'),_0x13cd8e('0x900')]),_0x17736c[_0x13cd8e('0x1cac')][_0x13cd8e('0x13e3')](_0x13cd8e('0x12da')),_0x2790b6[_0x13cd8e('0xac')][_0x13cd8e('0x15f8')]()[_0x13cd8e('0x1714')];})[_0x51a3c3('0x2788')](function(_0x1edfbe){const _0x1029de=_0x51a3c3;_0x17736c['voiceDialReportColumns']=_0x283545()['difference'](_0x283545()[_0x1029de('0x2163')](_0x1edfbe),[_0x1029de('0x1714'),'$resolved',_0x1029de('0x172'),_0x1029de('0x5f'),_0x1029de('0x900')]),_0x17736c[_0x1029de('0x226b')]['push'](_0x1029de('0x12da'));})[_0x51a3c3('0x1cb5')](function(_0x558074){const _0x3c31a8=_0x51a3c3;_0x33732d['error']({'title':_0x558074['status']?'API:'+_0x558074[_0x3c31a8('0x1b51')]+_0x3c31a8('0x1b0b')+_0x558074['statusText']:'SYSTEM:GETVARIABLES','msg':_0x558074['data']?JSON[_0x3c31a8('0x1be0')](_0x558074[_0x3c31a8('0x11fc')]):_0x558074[_0x3c31a8('0x17df')]()});}),_0x2790b6[_0x51a3c3('0x6fb')][_0x51a3c3('0x24')]({'id':_0x464f12['id'],'ticketType':_0x4e91fb[_0x51a3c3('0x3d9')]?_0x4e91fb[_0x51a3c3('0x3d9')]:undefined})[_0x51a3c3('0x1714')][_0x51a3c3('0x2788')](function(_0xc9e32c){const _0x42365b=_0x51a3c3;_0x17736c[_0x42365b('0x551')]=!![],_0x17736c[_0x42365b('0x1578')]=_0xc9e32c[_0x42365b('0x25df')]?_0xc9e32c['rows']:[],_0x17736c[_0x42365b('0xd3c')][_0x42365b('0x1ca9')]&&(_0x17736c[_0x42365b('0x1ee9')]=_0x283545()[_0x42365b('0x20e8')](_0x17736c[_0x42365b('0x1578')],{'id':_0x17736c[_0x42365b('0xd3c')][_0x42365b('0x1ca9')]}));})[_0x51a3c3('0x1cb5')](function(_0x5b6b18){const _0x2ff0ba=_0x51a3c3;_0x17736c[_0x2ff0ba('0x551')]=![],console['error'](_0x5b6b18);});function _0x36f22e(){const _0x21092e=_0x51a3c3;_0x17736c[_0x21092e('0x25be')]=[],_0x17736c['customField']&&(_0x17736c[_0x21092e('0xd3c')][_0x21092e('0x1ca9')]=_0x17736c[_0x21092e('0x1ee9')]['id'],_0x17736c[_0x21092e('0xd3c')]['nameField']=_0x17736c[_0x21092e('0x1ee9')][_0x21092e('0x1a8d')],_0x17736c[_0x21092e('0xd3c')][_0x21092e('0x1ee9')]=_0x17736c['customField'][_0x21092e('0x1d56')]),_0x2790b6[_0x21092e('0xb6f')]['save'](_0x17736c[_0x21092e('0xd3c')])[_0x21092e('0x1714')][_0x21092e('0x2788')](function(_0x1f4ba5){const _0xc029e2=_0x21092e;_0x17736c[_0xc029e2('0x117b')][_0xc029e2('0xc51')](_0x1f4ba5),_0x33732d['success']({'title':_0x283545()['capitalize'](_0x32c39b)+_0xc029e2('0x194d'),'msg':_0x283545()[_0xc029e2('0x1df5')](_0x32c39b)+_0xc029e2('0x1e4a')}),_0x2bcd9d();})[_0x21092e('0x1cb5')](function(_0x36b1c2){const _0x258f40=_0x21092e;console['error'](_0x36b1c2),_0x17736c['errors']=_0x36b1c2['data']['errors']||[{'message':_0x36b1c2[_0x258f40('0x17df')](),'type':_0x258f40('0x256f')}];});}function _0x1f1e93(){const _0x53f25d=_0x51a3c3;_0x17736c[_0x53f25d('0x25be')]=[],_0x17736c[_0x53f25d('0x1ee9')]&&(_0x17736c[_0x53f25d('0xd3c')][_0x53f25d('0x1ca9')]=_0x17736c[_0x53f25d('0x1ee9')]['id'],_0x17736c['item'][_0x53f25d('0x98')]=_0x17736c['customField']['name'],_0x17736c[_0x53f25d('0xd3c')][_0x53f25d('0x1ee9')]=_0x17736c[_0x53f25d('0x1ee9')]['custom']),_0x2790b6[_0x53f25d('0xb6f')][_0x53f25d('0x2740')]({'id':_0x17736c['item']['id']},_0x17736c['item'])[_0x53f25d('0x1714')]['then'](function(_0x22fcae){const _0x2b5792=_0x53f25d,_0x15120e=_0x283545()[_0x2b5792('0x20e8')](_0x17736c[_0x2b5792('0x117b')],{'id':_0x22fcae['id']});_0x15120e&&_0x283545()['merge'](_0x15120e,_0x22fcae),_0x33732d[_0x2b5792('0x173b')]({'title':_0x283545()[_0x2b5792('0x1df5')](_0x32c39b)+'\x20properly\x20saved!','msg':_0x283545()['capitalize'](_0x32c39b)+_0x2b5792('0x24cf')}),_0x2bcd9d();})[_0x53f25d('0x1cb5')](function(_0x542684){const _0x2c9745=_0x53f25d;console[_0x2c9745('0x5e8')](_0x542684),_0x17736c[_0x2c9745('0x25be')]=_0x542684[_0x2c9745('0x11fc')][_0x2c9745('0x25be')]||[{'message':_0x542684['toString'](),'type':_0x2c9745('0xe95')}];});}function _0x2bfc9e(_0x25247f){const _0x14c07d=_0x51a3c3;_0x17736c[_0x14c07d('0x25be')]=[];const _0x4f86a8=_0xcdd91d[_0x14c07d('0x112e')]()[_0x14c07d('0x14e4')](_0x14c07d('0x458'))[_0x14c07d('0x1c98')](_0x14c07d('0x1b10')+_0x32c39b+'\x20will\x20be\x20deleted.')[_0x14c07d('0x10bc')](_0x14c07d('0x177f')+_0x283545()['capitalize'](_0x32c39b))['ok'](_0x14c07d('0x2786'))[_0x14c07d('0x1801')](_0x14c07d('0x1481'))[_0x14c07d('0x24d0')](_0x25247f);_0xcdd91d[_0x14c07d('0x2fa')](_0x4f86a8)[_0x14c07d('0x2788')](function(){const _0x864ac3=_0x14c07d;_0x2790b6['intDeskField'][_0x864ac3('0x17c4')]({'id':_0x17736c['item']['id']})['$promise']['then'](function(){const _0x36bfec=_0x864ac3;_0x283545()[_0x36bfec('0x1a90')](_0x17736c[_0x36bfec('0x117b')],{'id':_0x17736c[_0x36bfec('0xd3c')]['id']}),_0x33732d[_0x36bfec('0x173b')]({'title':_0x283545()['capitalize'](_0x32c39b)+_0x36bfec('0x2542'),'msg':_0x283545()[_0x36bfec('0x1df5')](_0x32c39b)+_0x36bfec('0x14d4')}),_0x2bcd9d();})[_0x864ac3('0x1cb5')](function(_0x4c9a89){const _0x15c411=_0x864ac3;console['error'](_0x4c9a89),_0x17736c[_0x15c411('0x25be')]=_0x4c9a89[_0x15c411('0x11fc')][_0x15c411('0x25be')]||[{'message':_0x4c9a89['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x179ace(){const _0x434f14=_0x51a3c3;return _0x17736c[_0x434f14('0xd3c')]['variableName']!==undefined?_0x17736c[_0x434f14('0xd3c')][_0x434f14('0x1889')]:_0x434f14('0x6d1');}function _0x2bcd9d(){_0xcdd91d['hide']();}}const _0x45bb1b=_0x336afe;_0x4d7beb[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x15c'),'userProfileSection'];function _0x4d7beb(_0xda3897,_0x593ee6,_0x3bb277,_0x19bc51,_0x1b7745,_0x11c9ac,_0x4091d9,_0x2e064c,_0x2f2737,_0x44d0d1,_0x38f8f7,_0x53536d){const _0x2c534f=_0x34e79e,_0x1a286d=this;_0x1a286d[_0x2c534f('0x9cb')]=_0x44d0d1['getCurrentUser'](),_0x1a286d[_0x2c534f('0x130d')]=_0x11c9ac,_0x1a286d[_0x2c534f('0x1af0')]=_0x4091d9,_0x1a286d[_0x2c534f('0x18ad')]=_0x1a286d['setting'][_0x2c534f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a286d[_0x2c534f('0xe9')]=_0x593ee6[_0x2c534f('0x170c')]()+'://'+_0x593ee6[_0x2c534f('0x1c6a')](),_0x1a286d[_0x2c534f('0x15c')]=_0x38f8f7||_0xda3897[_0x2c534f('0x4b9')]['deskAccount']||{},_0x1a286d[_0x2c534f('0xec9')]=_0x53536d&&_0x53536d[_0x2c534f('0x338')]==0x1?_0x53536d[_0x2c534f('0x25df')][0x0]:null,_0x1a286d[_0x2c534f('0xe28')]=_0x44d0d1['parseCrudPermissions'](_0x1a286d[_0x2c534f('0xec9')]?_0x1a286d['userProfileSection']['crudPermissions']:null),_0x1a286d['hasModulePermissions']={},_0x1a286d[_0x2c534f('0xcb3')]=_0xda3897[_0x2c534f('0x4b9')]['tab']||0x0,_0x1a286d['alert']=_0x2f2737[_0x2c534f('0x2276')],_0x1a286d['gotoDeskAccounts']=_0x19974f,_0x1a286d[_0x2c534f('0x220d')]=_0x384c3c;function _0x19974f(){const _0x461c61=_0x2c534f;_0xda3897['go'](_0x461c61('0x342'),{},{'reload':_0x461c61('0x342')});}function _0x384c3c(){const _0x34c33b=_0x2c534f;_0x2e064c[_0x34c33b('0x6fb')][_0x34c33b('0x2740')]({'id':_0x1a286d[_0x34c33b('0x15c')]['id']},_0x1a286d['deskAccount'])[_0x34c33b('0x1714')][_0x34c33b('0x2788')](function(){const _0x1d047d=_0x34c33b;_0x2f2737[_0x1d047d('0x173b')]({'title':_0x1d047d('0x13d6'),'msg':_0x1a286d[_0x1d047d('0x15c')]['name']?_0x1a286d[_0x1d047d('0x15c')][_0x1d047d('0x1a8d')]+_0x1d047d('0x6f8'):''});})[_0x34c33b('0x1cb5')](function(_0x56f9c8){const _0x37e3fe=_0x34c33b;_0x2f2737[_0x37e3fe('0x5e8')]({'title':_0x56f9c8[_0x37e3fe('0x1b51')]?_0x37e3fe('0x15d1')+_0x56f9c8[_0x37e3fe('0x1b51')]+_0x37e3fe('0x1b0b')+_0x56f9c8[_0x37e3fe('0x22ce')]:_0x37e3fe('0x14b9'),'msg':_0x56f9c8[_0x37e3fe('0x11fc')]?JSON[_0x37e3fe('0x1be0')](_0x56f9c8[_0x37e3fe('0x11fc')]):_0x56f9c8[_0x37e3fe('0x17df')]()});});}}const _0x19bf4f=_0x4d7beb;_0x35b640[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x202e'),_0x34e79e('0x27a0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x35b640(_0x28c998,_0x2560f9,_0x240c5b,_0x55ebca,_0x17993b,_0x20d612,_0x5d5125,_0x14d9ec,_0x1116d8,_0x47fd0c,_0x25fe69,_0x173d20,_0x5b8eac,_0x294b00){const _0x526816=_0x34e79e,_0x3663c6=this;_0x3663c6[_0x526816('0x9cb')]=_0x25fe69[_0x526816('0x24cc')](),_0x3663c6['errors']=[],_0x3663c6[_0x526816('0x1af0')]=_0x5b8eac,_0x3663c6[_0x526816('0x130d')]=_0x173d20,_0x3663c6['crudPermissions']=_0x294b00,_0x3663c6[_0x526816('0x1193')]={},_0x3663c6[_0x526816('0x18ad')]=_0x3663c6[_0x526816('0x1af0')]&&_0x3663c6[_0x526816('0x1af0')][_0x526816('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3663c6[_0x526816('0x14e4')]='INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT',_0x3663c6[_0x526816('0x27a0')]=angular['copy'](_0x1116d8),_0x3663c6[_0x526816('0x202e')]=_0x14d9ec,_0x3663c6['newDynamics365Account']=![];!_0x3663c6[_0x526816('0x27a0')]&&(_0x3663c6[_0x526816('0x27a0')]={'serverUrl':_0x240c5b[_0x526816('0x170c')]()+_0x526816('0x726')+_0x240c5b[_0x526816('0x1c6a')]()+(_0x240c5b['port']()?':'+_0x240c5b[_0x526816('0x1fee')]():'')},_0x3663c6[_0x526816('0x14e4')]=_0x526816('0x272b'),_0x3663c6['newDynamics365Account']=!![]);_0x3663c6['addNewDynamics365Account']=_0x147bc3,_0x3663c6['saveDynamics365Account']=_0x7074a,_0x3663c6[_0x526816('0x74')]=_0x5ccb3f,_0x3663c6[_0x526816('0x2601')]=_0x4a724e,_0x3663c6[_0x526816('0xca7')]=_0x3fb658;function _0x147bc3(){const _0x3e2b84=_0x526816;_0x3663c6[_0x3e2b84('0x25be')]=[],_0x47fd0c['intDynamics365Account']['save'](_0x3663c6[_0x3e2b84('0x27a0')])['$promise']['then'](function(_0x2f8f76){const _0x29f9e3=_0x3e2b84;_0x3663c6[_0x29f9e3('0x202e')][_0x29f9e3('0xc51')](_0x2f8f76[_0x29f9e3('0x1cbf')]()),_0x5d5125['success']({'title':_0x29f9e3('0x2aa'),'msg':_0x3663c6[_0x29f9e3('0x27a0')][_0x29f9e3('0x1a8d')]?_0x3663c6[_0x29f9e3('0x27a0')][_0x29f9e3('0x1a8d')]+_0x29f9e3('0x1e4a'):''}),_0x3fb658(_0x2f8f76);})[_0x3e2b84('0x1cb5')](function(_0x279994){const _0xa10dd7=_0x3e2b84;if(_0x279994['data']&&_0x279994['data']['errors']&&_0x279994[_0xa10dd7('0x11fc')][_0xa10dd7('0x25be')][_0xa10dd7('0x2566')]){_0x3663c6[_0xa10dd7('0x25be')]=_0x279994[_0xa10dd7('0x11fc')]['errors']||[{'message':_0x279994[_0xa10dd7('0x17df')](),'type':_0xa10dd7('0x2635')}];for(let _0x3c50f0=0x0;_0x3c50f0<_0x279994[_0xa10dd7('0x11fc')][_0xa10dd7('0x25be')]['length'];_0x3c50f0+=0x1){_0x5d5125['error']({'title':_0x279994[_0xa10dd7('0x11fc')][_0xa10dd7('0x25be')][_0x3c50f0][_0xa10dd7('0x1d7')],'msg':_0x279994[_0xa10dd7('0x11fc')][_0xa10dd7('0x25be')][_0x3c50f0][_0xa10dd7('0x15e2')]});}}else _0x5d5125[_0xa10dd7('0x5e8')]({'title':_0x279994['status']?'API:'+_0x279994[_0xa10dd7('0x1b51')]+_0xa10dd7('0x1b0b')+_0x279994[_0xa10dd7('0x22ce')]:_0xa10dd7('0x2635'),'msg':_0x279994['data']?JSON[_0xa10dd7('0x1be0')](_0x279994[_0xa10dd7('0x11fc')][_0xa10dd7('0x15e2')]):_0x279994[_0xa10dd7('0x17df')]()});});}function _0x7074a(){const _0x5589d0=_0x526816;_0x3663c6[_0x5589d0('0x25be')]=[],_0x47fd0c[_0x5589d0('0x1835')][_0x5589d0('0x2740')]({'id':_0x3663c6[_0x5589d0('0x27a0')]['id']},_0x3663c6['dynamics365Account'])[_0x5589d0('0x1714')][_0x5589d0('0x2788')](function(_0xb3d13c){const _0x211021=_0x5589d0,_0x1481ba=_0x283545()['find'](_0x3663c6[_0x211021('0x202e')],{'id':_0xb3d13c['id']});_0x1481ba&&_0x283545()[_0x211021('0x2503')](_0x1481ba,_0x283545()[_0x211021('0x41b')](_0xb3d13c[_0x211021('0x1cbf')](),_0x283545()[_0x211021('0x2163')](_0x1481ba))),_0x5d5125[_0x211021('0x173b')]({'title':_0x211021('0xa63'),'msg':_0x3663c6[_0x211021('0x27a0')][_0x211021('0x1a8d')]?_0x3663c6[_0x211021('0x27a0')]['name']+_0x211021('0x24cf'):''}),_0x3fb658(_0xb3d13c);})[_0x5589d0('0x1cb5')](function(_0x581eec){const _0xbd67c5=_0x5589d0;if(_0x581eec['data']&&_0x581eec[_0xbd67c5('0x11fc')]['errors']&&_0x581eec[_0xbd67c5('0x11fc')]['errors'][_0xbd67c5('0x2566')]){_0x3663c6['errors']=_0x581eec[_0xbd67c5('0x11fc')]['errors']||[{'message':_0x581eec[_0xbd67c5('0x17df')](),'type':_0xbd67c5('0xc55')}];for(let _0x3cc043=0x0;_0x3cc043<_0x581eec[_0xbd67c5('0x11fc')]['errors'][_0xbd67c5('0x2566')];_0x3cc043++){_0x5d5125[_0xbd67c5('0x5e8')]({'title':_0x581eec[_0xbd67c5('0x11fc')][_0xbd67c5('0x25be')][_0x3cc043]['type'],'msg':_0x581eec[_0xbd67c5('0x11fc')][_0xbd67c5('0x25be')][_0x3cc043][_0xbd67c5('0x15e2')]});}}else _0x5d5125[_0xbd67c5('0x5e8')]({'title':_0x581eec['status']?_0xbd67c5('0x15d1')+_0x581eec[_0xbd67c5('0x1b51')]+_0xbd67c5('0x1b0b')+_0x581eec[_0xbd67c5('0x22ce')]:_0xbd67c5('0xc55'),'msg':_0x581eec[_0xbd67c5('0x11fc')]?JSON['stringify'](_0x581eec[_0xbd67c5('0x11fc')][_0xbd67c5('0x15e2')]):_0x581eec[_0xbd67c5('0x17df')]()});});}function _0x5ccb3f(_0x431b29){const _0x3c8226=_0x526816;_0x3663c6[_0x3c8226('0x25be')]=[];const _0x590817=_0x55ebca[_0x3c8226('0x112e')]()[_0x3c8226('0x14e4')](_0x3c8226('0x458'))[_0x3c8226('0x1c98')](_0x3c8226('0x1707'))[_0x3c8226('0x10bc')](_0x3c8226('0x1446'))['ok'](_0x3c8226('0x2786'))[_0x3c8226('0x1801')](_0x3c8226('0x1481'))[_0x3c8226('0x24d0')](_0x431b29);_0x55ebca[_0x3c8226('0x2fa')](_0x590817)[_0x3c8226('0x2788')](function(){const _0x577af9=_0x3c8226;_0x47fd0c[_0x577af9('0x1835')][_0x577af9('0x17c4')]({'id':_0x3663c6['dynamics365Account']['id']})[_0x577af9('0x1714')]['then'](function(){const _0x16e16e=_0x577af9;_0x283545()['remove'](_0x3663c6['dynamics365Accounts'],{'id':_0x3663c6['dynamics365Account']['id']}),_0x5d5125[_0x16e16e('0x173b')]({'title':_0x16e16e('0x170d'),'msg':(_0x3663c6['dynamics365Account']['name']||_0x16e16e('0x27a0'))+_0x16e16e('0x14d4')}),_0x3fb658(_0x3663c6[_0x16e16e('0x27a0')]);})[_0x577af9('0x1cb5')](function(_0x425818){const _0x5a3eab=_0x577af9;if(_0x425818[_0x5a3eab('0x11fc')]&&_0x425818[_0x5a3eab('0x11fc')][_0x5a3eab('0x25be')]&&_0x425818['data'][_0x5a3eab('0x25be')][_0x5a3eab('0x2566')]){_0x3663c6[_0x5a3eab('0x25be')]=_0x425818[_0x5a3eab('0x11fc')][_0x5a3eab('0x25be')]||[{'message':_0x425818[_0x5a3eab('0x17df')](),'type':_0x5a3eab('0x36')}];for(let _0x5e3aa8=0x0;_0x5e3aa8<_0x425818[_0x5a3eab('0x11fc')][_0x5a3eab('0x25be')][_0x5a3eab('0x2566')];_0x5e3aa8++){_0x5d5125[_0x5a3eab('0x5e8')]({'title':_0x425818['data']['errors'][_0x5e3aa8][_0x5a3eab('0x1d7')],'msg':_0x425818[_0x5a3eab('0x11fc')]['errors'][_0x5e3aa8][_0x5a3eab('0x15e2')]});}}else _0x5d5125[_0x5a3eab('0x5e8')]({'title':_0x425818['status']?'API:'+_0x425818[_0x5a3eab('0x1b51')]+_0x5a3eab('0x1b0b')+_0x425818[_0x5a3eab('0x22ce')]:_0x5a3eab('0x36'),'msg':_0x425818[_0x5a3eab('0x11fc')]?JSON[_0x5a3eab('0x1be0')](_0x425818[_0x5a3eab('0x11fc')]['message']):_0x425818['message']||_0x425818['toString']()});});},function(){});}function _0x4a724e(_0x372de8){return _0x372de8===null?undefined:new Date(_0x372de8);}function _0x3fb658(_0x528633){const _0x2ca1df=_0x526816;_0x55ebca[_0x2ca1df('0x19d')](_0x528633);}}const _0x3be5ae=_0x35b640,_0x4410cd=_0x18dd13['p']+_0x34e79e('0x12e5');_0x7c6a4b['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'dynamics365Accounts',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x7c6a4b(_0x16a721,_0x5139a1,_0x52a594,_0x3c8daf,_0x3cbecf,_0x2438eb,_0xd49a59,_0x34d009,_0x50d60e,_0x4546b6,_0x2ba934,_0x7cdcab,_0x394d61,_0x56d296,_0x914efc,_0x389984,_0x3b0f86){const _0x5c804d=_0x34e79e,_0x273c39=this;_0x273c39[_0x5c804d('0x130d')]=_0x389984,_0x273c39[_0x5c804d('0x1af0')]=_0x3b0f86,_0x273c39[_0x5c804d('0x9cb')]=_0x914efc[_0x5c804d('0x24cc')](),_0x273c39[_0x5c804d('0x202e')]=_0x50d60e||{'count':0x0,'rows':[]},_0x273c39['userProfile']=_0x4546b6,_0x273c39[_0x5c804d('0xec9')]=_0x2ba934&&_0x2ba934[_0x5c804d('0x338')]==0x1?_0x2ba934['rows'][0x0]:null,_0x273c39['crudPermissions']=_0x914efc[_0x5c804d('0x157e')](_0x273c39[_0x5c804d('0xec9')]?_0x273c39[_0x5c804d('0xec9')][_0x5c804d('0xe28')]:null),_0x273c39[_0x5c804d('0x26a9')]='dynamics365Accounts',_0x273c39['listOrder']='',_0x273c39['listOrderAsc']=null,_0x273c39['selectedDynamics365Accounts']=[],_0x273c39[_0x5c804d('0x135a')]={'fields':_0x5c804d('0xcc0'),'limit':0xa,'page':0x1},_0x273c39['editstate']=_0x4cc0d5,_0x273c39[_0x5c804d('0x1f2f')]=_0x4b416c,_0x273c39['deleteconfirm']=_0x37d56b,_0x273c39[_0x5c804d('0x173b')]=_0x436456,_0x273c39[_0x5c804d('0x1651')]=_0x32930e,_0x273c39[_0x5c804d('0xaf0')]=_0x95b9a0,_0x273c39[_0x5c804d('0x74')]=_0x562049,_0x273c39[_0x5c804d('0x27ef')]=_0x17d7f0,_0x273c39[_0x5c804d('0x1aee')]=_0x4f76af,_0x273c39[_0x5c804d('0x385')]=_0x5e0ef1,_0x273c39[_0x5c804d('0x2732')]=_0x5eace9;function _0x4cc0d5(_0x4faeba){const _0x2d938a=_0x5c804d;_0x52a594['go'](_0x2d938a('0x15e4'),{'id':_0x4faeba['id'],'dynamics365Account':_0x4faeba,'crudPermissions':_0x273c39[_0x2d938a('0xe28')]});}function _0x4b416c(_0x720313){const _0x1f8943=_0x5c804d;return _0x7cdcab[_0x1f8943('0x1835')][_0x1f8943('0x24')]({'id':_0x720313['id'],'test':!![]})['$promise'][_0x1f8943('0x2788')](function(){const _0x4664ed=_0x1f8943;_0x56d296[_0x4664ed('0x173b')]({'title':_0x4664ed('0x13ae'),'msg':'Connection\x20succeded!'});})[_0x1f8943('0x1cb5')](function(_0x3218cd){const _0x31363d=_0x1f8943;_0x56d296['error']({'title':_0x31363d('0x13ae'),'msg':_0x3218cd[_0x31363d('0x11fc')]?_0x3218cd[_0x31363d('0x11fc')][_0x31363d('0x15e2')]?_0x3218cd[_0x31363d('0x11fc')]['message']:JSON[_0x31363d('0x1be0')](_0x3218cd[_0x31363d('0x11fc')]):_0x3218cd['toString']()});});}function _0x37d56b(_0x44f493,_0x57ae59){const _0x2b6560=_0x5c804d,_0x6aff9c=_0x3cbecf[_0x2b6560('0x112e')]()[_0x2b6560('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x2b6560('0x114')](_0x2b6560('0x27a0'))+'?')[_0x2b6560('0x93e')](_0x2b6560('0x1670')+(_0x44f493[_0x2b6560('0x1a8d')]||'dynamics365Account')+_0x2b6560('0x229e')+_0x2b6560('0x27c7'))[_0x2b6560('0x10bc')](_0x2b6560('0xdb8'))[_0x2b6560('0x24d0')](_0x57ae59)['ok']('OK')[_0x2b6560('0x1801')](_0x2b6560('0x1d8d'));_0x3cbecf[_0x2b6560('0x2fa')](_0x6aff9c)[_0x2b6560('0x2788')](function(){_0x562049(_0x44f493);},function(){const _0x12c9b8=_0x2b6560;console[_0x12c9b8('0x10df')]('CANCEL');});}let _0x390d99=!![],_0xe34671=0x1;_0x16a721[_0x5c804d('0x1662')](_0x5c804d('0x1569'),function(_0xfe4fc3,_0xde56a0){const _0x51ba1d=_0x5c804d;_0x390d99?_0xd49a59(function(){_0x390d99=![];}):(!_0xde56a0&&(_0xe34671=_0x273c39['query'][_0x51ba1d('0x23f5')]),_0xfe4fc3!==_0xde56a0&&(_0x273c39[_0x51ba1d('0x135a')]['page']=0x1),!_0xfe4fc3&&(_0x273c39[_0x51ba1d('0x135a')]['page']=_0xe34671),_0x273c39[_0x51ba1d('0x1651')]());});function _0x436456(_0xe6703e){const _0x491ef0=_0x5c804d;_0x273c39[_0x491ef0('0x202e')]=_0xe6703e||{'count':0x0,'rows':[]};}function _0x32930e(){const _0x4cbe62=_0x5c804d;_0x273c39[_0x4cbe62('0x135a')][_0x4cbe62('0x19e')]=(_0x273c39[_0x4cbe62('0x135a')][_0x4cbe62('0x23f5')]-0x1)*_0x273c39[_0x4cbe62('0x135a')][_0x4cbe62('0x68e')],_0x914efc[_0x4cbe62('0x1516')](_0x4cbe62('0xe23'))?_0x273c39[_0x4cbe62('0x1808')]=_0x7cdcab[_0x4cbe62('0x1835')][_0x4cbe62('0x1335')](_0x273c39[_0x4cbe62('0x135a')],_0x436456)['$promise']:(_0x273c39[_0x4cbe62('0x135a')]['id']=_0x273c39[_0x4cbe62('0x63c')]['id'],_0x273c39['query'][_0x4cbe62('0xb13')]='Dynamics365Accounts',_0x273c39[_0x4cbe62('0x1808')]=_0x7cdcab[_0x4cbe62('0x63c')][_0x4cbe62('0xa1')](_0x273c39['query'],_0x436456)[_0x4cbe62('0x1714')]);}function _0x95b9a0(_0x2bb7b,_0x8d2874){const _0x695367=_0x5c804d;_0x3cbecf['show']({'controller':_0x695367('0x617'),'controllerAs':'vm','templateUrl':_0x4410cd,'parent':angular[_0x695367('0x16b1')](_0x2438eb[_0x695367('0x945')]),'targetEvent':_0x2bb7b,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x8d2874,'dynamics365Accounts':_0x273c39[_0x695367('0x202e')][_0x695367('0x25df')],'license':_0x273c39[_0x695367('0x130d')],'setting':_0x273c39[_0x695367('0x1af0')],'crudPermissions':_0x273c39[_0x695367('0xe28')]}});}function _0x562049(_0x2c0582){const _0x224e9f=_0x5c804d;_0x7cdcab[_0x224e9f('0x1835')][_0x224e9f('0x17c4')]({'id':_0x2c0582['id']})[_0x224e9f('0x1714')][_0x224e9f('0x2788')](function(){const _0x40ce5c=_0x224e9f;_0x283545()[_0x40ce5c('0x1a90')](_0x273c39[_0x40ce5c('0x202e')][_0x40ce5c('0x25df')],{'id':_0x2c0582['id']}),_0x273c39[_0x40ce5c('0x202e')][_0x40ce5c('0x338')]-=0x1,!_0x273c39['dynamics365Accounts'][_0x40ce5c('0x25df')][_0x40ce5c('0x2566')]&&_0x273c39[_0x40ce5c('0x1651')](),_0x56d296[_0x40ce5c('0x173b')]({'title':_0x283545()[_0x40ce5c('0x114')](_0x40ce5c('0x546'))+_0x40ce5c('0x20db'),'msg':_0x2c0582['name']?_0x2c0582[_0x40ce5c('0x1a8d')]+_0x40ce5c('0x14d4'):''});})[_0x224e9f('0x1cb5')](function(_0x15d229){const _0x3e95cc=_0x224e9f;if(_0x15d229[_0x3e95cc('0x11fc')]&&_0x15d229['data']['errors']&&_0x15d229[_0x3e95cc('0x11fc')][_0x3e95cc('0x25be')][_0x3e95cc('0x2566')]){_0x273c39[_0x3e95cc('0x25be')]=_0x15d229[_0x3e95cc('0x11fc')][_0x3e95cc('0x25be')]||[{'message':_0x15d229[_0x3e95cc('0x17df')](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(let _0x4d5406=0x0;_0x4d5406<_0x15d229[_0x3e95cc('0x11fc')][_0x3e95cc('0x25be')][_0x3e95cc('0x2566')];_0x4d5406++){_0x56d296[_0x3e95cc('0x5e8')]({'title':_0x15d229[_0x3e95cc('0x11fc')][_0x3e95cc('0x25be')][_0x4d5406]['type'],'msg':_0x15d229['data'][_0x3e95cc('0x25be')][_0x4d5406][_0x3e95cc('0x15e2')]});}}else _0x56d296[_0x3e95cc('0x5e8')]({'title':_0x15d229[_0x3e95cc('0x1b51')]?'API:'+_0x15d229[_0x3e95cc('0x1b51')]+_0x3e95cc('0x1b0b')+_0x15d229[_0x3e95cc('0x22ce')]:_0x3e95cc('0x9e7'),'msg':_0x15d229[_0x3e95cc('0x11fc')]?JSON['stringify'](_0x15d229[_0x3e95cc('0x11fc')][_0x3e95cc('0x15e2')]):_0x15d229[_0x3e95cc('0x15e2')]||_0x15d229[_0x3e95cc('0x17df')]()});});}function _0x17d7f0(){const _0x47cfa5=_0x5c804d,_0x43ab78=angular['copy'](_0x273c39[_0x47cfa5('0x2626')]);return _0x273c39['selectedDynamics365Accounts']=[],_0x43ab78;}function _0x4f76af(_0x521e7f){const _0x1ff5f9=_0x5c804d,_0x1e1072=_0x3cbecf[_0x1ff5f9('0x112e')]()[_0x1ff5f9('0x14e4')](_0x1ff5f9('0x779'))[_0x1ff5f9('0x93e')](''+_0x273c39[_0x1ff5f9('0x2626')][_0x1ff5f9('0x2566')]+_0x1ff5f9('0xbd')+'\x20will\x20be\x20deleted.')[_0x1ff5f9('0x10bc')](_0x1ff5f9('0x24c6'))[_0x1ff5f9('0x24d0')](_0x521e7f)['ok']('OK')[_0x1ff5f9('0x1801')](_0x1ff5f9('0x1d8d'));_0x3cbecf[_0x1ff5f9('0x2fa')](_0x1e1072)[_0x1ff5f9('0x2788')](function(){const _0x5c6741=_0x1ff5f9;_0x273c39[_0x5c6741('0x2626')]['forEach'](function(_0x2f15cf){_0x562049(_0x2f15cf);}),_0x273c39[_0x5c6741('0x2626')]=[];});}function _0x5e0ef1(){const _0x9fcc9a=_0x5c804d;_0x273c39[_0x9fcc9a('0x2626')]=[];}function _0x5eace9(){const _0x39fc06=_0x5c804d;_0x273c39[_0x39fc06('0x2626')]=_0x273c39['dynamics365Accounts']['rows'];}}const _0x433027=_0x7c6a4b,_0x4cfc5f=_0x18dd13['p']+_0x34e79e('0x1852'),_0x3bb0eb=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html';_0x1c3dfb[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x1c3dfb(_0x210ae1,_0x568c90,_0x18e647,_0x321716,_0x43b1ec){const _0x2b91ad=_0x34e79e,_0x439e7e=this;_0x439e7e[_0x2b91ad('0x9cb')]=_0x43b1ec[_0x2b91ad('0x24cc')](),_0x439e7e['dynamics365Account']={},_0x439e7e[_0x2b91ad('0x1210')]={},_0x439e7e[_0x2b91ad('0x1b77')]=[],_0x439e7e[_0x2b91ad('0x66f')]=-0x1,_0x439e7e[_0x2b91ad('0xe28')],_0x439e7e[_0x2b91ad('0x24eb')]=_0x1413bb,_0x439e7e[_0x2b91ad('0x9f8')]=_0x35819f,_0x439e7e['createOrEditDynamics365Configuration']=_0x1a2811,_0x439e7e['deleteDynamics365Configuration']=_0x5a4064;function _0x1413bb(_0x37cb86,_0x17090e){const _0x3e38d5=_0x2b91ad;_0x439e7e[_0x3e38d5('0x27a0')]=_0x37cb86,_0x439e7e[_0x3e38d5('0xe28')]=typeof _0x17090e!==_0x3e38d5('0xedb')?_0x17090e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x18e647[_0x3e38d5('0x1835')][_0x3e38d5('0x1168')]({'id':_0x439e7e[_0x3e38d5('0x27a0')]['id'],'sort':_0x3e38d5('0x1cee')})['$promise'][_0x3e38d5('0x2788')](function(_0x5ecb4b){const _0x2f022f=_0x3e38d5;return _0x439e7e['configurations']=_0x5ecb4b[_0x2f022f('0x25df')]?_0x5ecb4b[_0x2f022f('0x25df')]:[],_0x439e7e[_0x2f022f('0x1b77')][_0x2f022f('0x2566')]&&_0x439e7e[_0x2f022f('0x9f8')](0x0),_0x18e647['variable'][_0x2f022f('0x1335')]({'nolimit':!![],'sort':_0x2f022f('0x1a8d')})[_0x2f022f('0x1714')];})[_0x3e38d5('0x2788')](function(_0x400df5){const _0x34560a=_0x3e38d5;_0x439e7e[_0x34560a('0xf76')]=_0x400df5['rows']?_0x400df5[_0x34560a('0x25df')]:[],_0x439e7e[_0x34560a('0xdd1')]=_0x283545()[_0x34560a('0x13cf')](_0x439e7e[_0x34560a('0xf76')],'id');})[_0x3e38d5('0x1cb5')](function(_0x235d92){const _0x4d0ed8=_0x3e38d5;_0x321716[_0x4d0ed8('0x5e8')]({'title':_0x235d92['status']?_0x4d0ed8('0x15d1')+_0x235d92['status']+_0x4d0ed8('0x1b0b')+_0x235d92[_0x4d0ed8('0x22ce')]:_0x4d0ed8('0x24e'),'msg':_0x235d92[_0x4d0ed8('0x11fc')]?JSON[_0x4d0ed8('0x1be0')](_0x235d92[_0x4d0ed8('0x11fc')]):_0x235d92[_0x4d0ed8('0x17df')]()});});}function _0x35819f(_0x2b4fc7){const _0x47bc79=_0x2b91ad;_0x439e7e['dynamics365Configuration']=_0x439e7e['configurations'][_0x2b4fc7],_0x439e7e[_0x47bc79('0x66f')]=_0x2b4fc7,_0x18e647[_0x47bc79('0x6bc')][_0x47bc79('0x12c5')]({'id':_0x439e7e[_0x47bc79('0x1210')]['id']})[_0x47bc79('0x1714')]['then'](function(_0x3b8b07){const _0x24bf04=_0x47bc79;return _0x439e7e[_0x24bf04('0x348')]=_0x3b8b07['rows']?_0x3b8b07['rows']:[],_0x18e647[_0x24bf04('0x6bc')][_0x24bf04('0x221a')]({'id':_0x439e7e[_0x24bf04('0x1210')]['id']})[_0x24bf04('0x1714')];})['then'](function(_0x20094c){const _0x160261=_0x47bc79;return _0x439e7e[_0x160261('0x1942')]=_0x20094c['rows']?_0x20094c[_0x160261('0x25df')]:[],_0x18e647[_0x160261('0x6bc')][_0x160261('0x24')]({'id':_0x439e7e[_0x160261('0x1210')]['id']})['$promise'];})[_0x47bc79('0x2788')](function(_0x33f475){const _0x1e9bd4=_0x47bc79;_0x439e7e[_0x1e9bd4('0x1578')]=_0x33f475[_0x1e9bd4('0x25df')]?_0x33f475[_0x1e9bd4('0x25df')]:[];})[_0x47bc79('0x1cb5')](function(_0x42f5d0){const _0x2bca99=_0x47bc79;_0x321716[_0x2bca99('0x5e8')]({'title':_0x42f5d0[_0x2bca99('0x1b51')]?_0x2bca99('0x15d1')+_0x42f5d0[_0x2bca99('0x1b51')]+'\x20-\x20'+_0x42f5d0[_0x2bca99('0x22ce')]:_0x2bca99('0x616'),'msg':_0x42f5d0[_0x2bca99('0x11fc')]?JSON[_0x2bca99('0x1be0')](_0x42f5d0[_0x2bca99('0x11fc')]):_0x42f5d0[_0x2bca99('0x17df')]()});});}function _0x1a2811(_0x3dc55d,_0x269662){const _0x3a96fd=_0x2b91ad;_0x210ae1[_0x3a96fd('0x2fa')]({'controller':_0x3a96fd('0x229f'),'controllerAs':'vm','templateUrl':_0x4cfc5f,'parent':angular['element'](_0x568c90[_0x3a96fd('0x945')]),'targetEvent':_0x3dc55d,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x269662,'configurations':_0x439e7e[_0x3a96fd('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x439e7e[_0x3a96fd('0xe28')]}})[_0x3a96fd('0x1ed8')](function(){_0x439e7e['getDynamics365Configuration'](0x0);});}function _0x5a4064(_0x53795b,_0x29f861){const _0x467f3b=_0x2b91ad,_0x2fd605=_0x210ae1[_0x467f3b('0x112e')]()[_0x467f3b('0x14e4')](_0x467f3b('0x1409'))[_0x467f3b('0x93e')](''+(_0x29f861[_0x467f3b('0x1a8d')]||_0x467f3b('0x1210'))+_0x467f3b('0x229e')+'\x20will\x20be\x20deleted.')[_0x467f3b('0x10bc')](_0x467f3b('0xea4'))[_0x467f3b('0x24d0')](_0x53795b)['ok']('OK')[_0x467f3b('0x1801')](_0x467f3b('0x1d8d'));_0x210ae1['show'](_0x2fd605)[_0x467f3b('0x2788')](function(){const _0x13552a=_0x467f3b;_0x18e647[_0x13552a('0x6bc')][_0x13552a('0x17c4')]({'id':_0x29f861['id']})['$promise']['then'](function(){const _0x5056b8=_0x13552a;_0x283545()[_0x5056b8('0x1a90')](_0x439e7e['configurations'],{'id':_0x29f861['id']}),_0x321716['success']({'title':_0x5056b8('0x45e'),'msg':_0x29f861[_0x5056b8('0x1a8d')]?_0x29f861[_0x5056b8('0x1a8d')]+_0x5056b8('0x14d4'):''});})[_0x13552a('0x1cb5')](function(_0x3c4679){const _0x53b8c6=_0x13552a;_0x321716[_0x53b8c6('0x5e8')]({'title':_0x3c4679[_0x53b8c6('0x1b51')]?'API:'+_0x3c4679[_0x53b8c6('0x1b51')]+_0x53b8c6('0x1b0b')+_0x3c4679['statusText']:_0x53b8c6('0x26b4'),'msg':_0x3c4679['data']?JSON[_0x53b8c6('0x1be0')](_0x3c4679['data']):_0x3c4679['toString']()});})[_0x13552a('0x1ed8')](function(){const _0x5c7698=_0x13552a;_0x439e7e[_0x5c7698('0x9f8')](0x0);});},function(){const _0x34c3f5=_0x467f3b;console[_0x34c3f5('0x10df')](_0x34c3f5('0x1d8d'));});}_0x439e7e[_0x2b91ad('0x2012')]=[],_0x439e7e['createOrEditSubject']=_0x5c394e,_0x439e7e[_0x2b91ad('0x13b')]=_0x672947,_0x439e7e[_0x2b91ad('0x5ec')]=_0xf03cb4;function _0x5c394e(_0x5a893c,_0x4df5b7){const _0x30a449=_0x2b91ad;_0x210ae1['show']({'controller':_0x30a449('0xcd2'),'controllerAs':'vm','templateUrl':_0x3bb0eb,'parent':angular['element'](_0x568c90[_0x30a449('0x945')]),'targetEvent':_0x5a893c,'clickOutsideToClose':!![],'locals':{'type':_0x30a449('0x248f'),'item':_0x4df5b7,'items':_0x439e7e[_0x30a449('0x348')],'configuration':_0x439e7e[_0x30a449('0x1210')],'account':_0x439e7e[_0x30a449('0x27a0')],'license':null,'setting':null,'crudPermissions':_0x439e7e[_0x30a449('0xe28')]}});}function _0x165edd(_0x34bbde){const _0x13674f=_0x2b91ad;_0x18e647[_0x13674f('0x1637')]['delete']({'id':_0x34bbde['id']})[_0x13674f('0x1714')][_0x13674f('0x2788')](function(){const _0xde85bb=_0x13674f;_0x283545()[_0xde85bb('0x1a90')](_0x439e7e[_0xde85bb('0x348')],{'id':_0x34bbde['id']}),_0x321716[_0xde85bb('0x173b')]({'title':_0xde85bb('0x306'),'msg':_0xde85bb('0xb6c')});})[_0x13674f('0x1cb5')](function(_0x2f4bb8){const _0x5238ea=_0x13674f;_0x321716[_0x5238ea('0x5e8')]({'title':_0x2f4bb8[_0x5238ea('0x1b51')]?_0x5238ea('0x15d1')+_0x2f4bb8['status']+_0x5238ea('0x1b0b')+_0x2f4bb8[_0x5238ea('0x22ce')]:_0x5238ea('0x2803'),'msg':_0x2f4bb8[_0x5238ea('0x11fc')]?JSON[_0x5238ea('0x1be0')](_0x2f4bb8[_0x5238ea('0x11fc')]):_0x2f4bb8[_0x5238ea('0x17df')]()});});}function _0x672947(_0x35367b,_0x564e54){const _0x39bbdd=_0x2b91ad,_0x39d43d=_0x210ae1['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x39bbdd('0x93e')](_0x39bbdd('0xdc')+_0x39bbdd('0x27c7'))['ariaLabel']('delete\x20subject')['targetEvent'](_0x35367b)['ok']('OK')[_0x39bbdd('0x1801')]('CANCEL');_0x210ae1[_0x39bbdd('0x2fa')](_0x39d43d)[_0x39bbdd('0x2788')](function(){_0x165edd(_0x564e54);},function(){const _0x3062bb=_0x39bbdd;console[_0x3062bb('0x10df')](_0x3062bb('0x1d8d'));});}function _0xf03cb4(_0x4ee7d7){const _0x140c9e=_0x2b91ad,_0xd90198=_0x210ae1[_0x140c9e('0x112e')]()['title'](_0x140c9e('0xa11'))[_0x140c9e('0x93e')](_0x140c9e('0x1670')+_0x439e7e[_0x140c9e('0x2012')][_0x140c9e('0x2566')]+_0x140c9e('0xbd')+_0x140c9e('0x27c7'))['ariaLabel']('delete\x20subjects')[_0x140c9e('0x24d0')](_0x4ee7d7)['ok']('OK')['cancel']('CANCEL');_0x210ae1[_0x140c9e('0x2fa')](_0xd90198)[_0x140c9e('0x2788')](function(){const _0x246317=_0x140c9e;_0x439e7e[_0x246317('0x2012')][_0x246317('0x1534')](function(_0x48cb04){_0x165edd(_0x48cb04);}),_0x439e7e['selectedSubjects']=[];});}_0x439e7e[_0x2b91ad('0x58e')]=[],_0x439e7e['createOrEditDescription']=_0x26d040,_0x439e7e[_0x2b91ad('0x16ad')]=_0x419ab9,_0x439e7e[_0x2b91ad('0x16b5')]=_0x3d9d20;function _0x26d040(_0x29e399,_0x143a00){const _0x55ec45=_0x2b91ad;_0x210ae1[_0x55ec45('0x2fa')]({'controller':_0x55ec45('0xcd2'),'controllerAs':'vm','templateUrl':_0x3bb0eb,'parent':angular[_0x55ec45('0x16b1')](_0x568c90['body']),'targetEvent':_0x29e399,'clickOutsideToClose':!![],'locals':{'type':_0x55ec45('0x27b9'),'item':_0x143a00,'items':_0x439e7e[_0x55ec45('0x1942')],'configuration':_0x439e7e['dynamics365Configuration'],'account':_0x439e7e[_0x55ec45('0x27a0')],'license':null,'setting':null,'crudPermissions':_0x439e7e[_0x55ec45('0xe28')]}});}function _0x4b05f4(_0x419772){const _0xd3db3d=_0x2b91ad;_0x18e647['intDynamics365Field'][_0xd3db3d('0x17c4')]({'id':_0x419772['id']})[_0xd3db3d('0x1714')][_0xd3db3d('0x2788')](function(){const _0x228a1a=_0xd3db3d;_0x283545()[_0x228a1a('0x1a90')](_0x439e7e['descriptions'],{'id':_0x419772['id']}),_0x321716[_0x228a1a('0x173b')]({'title':_0x228a1a('0x2598'),'msg':_0x228a1a('0x50')});})[_0xd3db3d('0x1cb5')](function(_0xe5bdd9){const _0x3780ec=_0xd3db3d;_0x321716['error']({'title':_0xe5bdd9[_0x3780ec('0x1b51')]?'API:'+_0xe5bdd9[_0x3780ec('0x1b51')]+_0x3780ec('0x1b0b')+_0xe5bdd9[_0x3780ec('0x22ce')]:_0x3780ec('0x2803'),'msg':_0xe5bdd9['data']?JSON[_0x3780ec('0x1be0')](_0xe5bdd9['data']):_0xe5bdd9['toString']()});});}function _0x419ab9(_0x254ad7,_0x344e87){const _0x79f2a5=_0x2b91ad,_0x4f9c2a=_0x210ae1[_0x79f2a5('0x112e')]()[_0x79f2a5('0x14e4')](_0x79f2a5('0xc33'))['htmlContent'](_0x79f2a5('0x27b')+'\x20will\x20be\x20deleted.')[_0x79f2a5('0x10bc')](_0x79f2a5('0x6b7'))['targetEvent'](_0x254ad7)['ok']('OK')['cancel'](_0x79f2a5('0x1d8d'));_0x210ae1[_0x79f2a5('0x2fa')](_0x4f9c2a)[_0x79f2a5('0x2788')](function(){_0x4b05f4(_0x344e87);},function(){const _0x292869=_0x79f2a5;console[_0x292869('0x10df')](_0x292869('0x1d8d'));});}function _0x3d9d20(_0x33023c){const _0x42614b=_0x2b91ad,_0x3d879f=_0x210ae1[_0x42614b('0x112e')]()[_0x42614b('0x14e4')](_0x42614b('0x1476'))['htmlContent'](_0x42614b('0x1670')+_0x439e7e[_0x42614b('0x58e')][_0x42614b('0x2566')]+'\x20selected'+_0x42614b('0x27c7'))['ariaLabel'](_0x42614b('0x1e33'))['targetEvent'](_0x33023c)['ok']('OK')[_0x42614b('0x1801')](_0x42614b('0x1d8d'));_0x210ae1['show'](_0x3d879f)[_0x42614b('0x2788')](function(){const _0x471b2e=_0x42614b;_0x439e7e[_0x471b2e('0x58e')]['forEach'](function(_0x430450){_0x4b05f4(_0x430450);}),_0x439e7e[_0x471b2e('0x58e')]=[];});}_0x439e7e[_0x2b91ad('0xcc9')]=[],_0x439e7e[_0x2b91ad('0x17d4')]=_0x13cf4a,_0x439e7e[_0x2b91ad('0x2386')]=_0x1d025,_0x439e7e[_0x2b91ad('0x262b')]=_0x52356b;function _0x13cf4a(_0x259ac6,_0x416e5b){const _0x29ba3d=_0x2b91ad;_0x210ae1[_0x29ba3d('0x2fa')]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x3bb0eb,'parent':angular['element'](_0x568c90[_0x29ba3d('0x945')]),'targetEvent':_0x259ac6,'clickOutsideToClose':!![],'locals':{'type':_0x29ba3d('0x18da'),'item':_0x416e5b,'items':_0x439e7e['fields'],'configuration':_0x439e7e['dynamics365Configuration'],'account':_0x439e7e[_0x29ba3d('0x27a0')],'license':null,'setting':null,'crudPermissions':_0x439e7e[_0x29ba3d('0xe28')]}});}function _0x127487(_0x31a801){const _0x6f30f8=_0x2b91ad;_0x18e647['intDynamics365Field'][_0x6f30f8('0x17c4')]({'id':_0x31a801['id']})['$promise'][_0x6f30f8('0x2788')](function(){const _0x4efbf1=_0x6f30f8;_0x283545()[_0x4efbf1('0x1a90')](_0x439e7e[_0x4efbf1('0x1578')],{'id':_0x31a801['id']}),_0x321716[_0x4efbf1('0x173b')]({'title':_0x4efbf1('0xb76'),'msg':_0x4efbf1('0x1d92')});})[_0x6f30f8('0x1cb5')](function(_0x12c92b){const _0x299b38=_0x6f30f8;_0x321716[_0x299b38('0x5e8')]({'title':_0x12c92b[_0x299b38('0x1b51')]?_0x299b38('0x15d1')+_0x12c92b[_0x299b38('0x1b51')]+_0x299b38('0x1b0b')+_0x12c92b[_0x299b38('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x12c92b['data']?JSON[_0x299b38('0x1be0')](_0x12c92b[_0x299b38('0x11fc')]):_0x12c92b[_0x299b38('0x17df')]()});});}function _0x1d025(_0x4c98c5,_0x503af1){const _0x51aaaf=_0x2b91ad,_0x3fb6b0=_0x210ae1['confirm']()['title'](_0x51aaaf('0x21d'))[_0x51aaaf('0x93e')](_0x51aaaf('0x1151')+_0x51aaaf('0x27c7'))[_0x51aaaf('0x10bc')](_0x51aaaf('0xde7'))[_0x51aaaf('0x24d0')](_0x4c98c5)['ok']('OK')['cancel'](_0x51aaaf('0x1d8d'));_0x210ae1[_0x51aaaf('0x2fa')](_0x3fb6b0)['then'](function(){_0x127487(_0x503af1);},function(){const _0x5f2382=_0x51aaaf;console['log'](_0x5f2382('0x1d8d'));});}function _0x52356b(_0x50fe9d){const _0x1a58f0=_0x2b91ad,_0x617383=_0x210ae1[_0x1a58f0('0x112e')]()[_0x1a58f0('0x14e4')](_0x1a58f0('0x7'))[_0x1a58f0('0x93e')](_0x1a58f0('0x1670')+_0x439e7e[_0x1a58f0('0xcc9')][_0x1a58f0('0x2566')]+_0x1a58f0('0xbd')+_0x1a58f0('0x27c7'))['ariaLabel'](_0x1a58f0('0x736'))['targetEvent'](_0x50fe9d)['ok']('OK')[_0x1a58f0('0x1801')](_0x1a58f0('0x1d8d'));_0x210ae1['show'](_0x617383)[_0x1a58f0('0x2788')](function(){const _0x2970c3=_0x1a58f0;_0x439e7e[_0x2970c3('0xcc9')]['forEach'](function(_0x5325a2){_0x127487(_0x5325a2);}),_0x439e7e[_0x2970c3('0xcc9')]=[];});}}const _0x450902=_0x1c3dfb;_0x5a05ad[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1b77'),_0x34e79e('0x1210'),'api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x5a05ad(_0x1e168b,_0x59744d,_0x487187,_0x50847d,_0x2db597,_0x2fb08f,_0x53cc3f,_0x1daabf,_0x50ca05,_0x58fbad,_0xf9e320,_0x42181f,_0x2de090,_0x11b90b){const _0x43e81f=_0x34e79e,_0x194dfd=this;_0x194dfd['currentUser']=_0xf9e320[_0x43e81f('0x24cc')](),_0x194dfd[_0x43e81f('0x25be')]=[],_0x194dfd[_0x43e81f('0x1af0')]=_0x2de090,_0x194dfd[_0x43e81f('0x130d')]=_0x42181f,_0x194dfd[_0x43e81f('0xe28')]=_0x11b90b,_0x194dfd[_0x43e81f('0x1193')]={},_0x194dfd[_0x43e81f('0x18ad')]=_0x194dfd[_0x43e81f('0x1af0')]&&_0x194dfd[_0x43e81f('0x1af0')][_0x43e81f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x194dfd[_0x43e81f('0x14e4')]=_0x43e81f('0x23f2'),_0x194dfd['dynamics365Configuration']=angular[_0x43e81f('0x2669')](_0x50ca05),_0x194dfd[_0x43e81f('0x1b77')]=_0x1daabf,_0x194dfd[_0x43e81f('0xda')]=![];!_0x194dfd[_0x43e81f('0x1210')]&&(_0x194dfd[_0x43e81f('0x1210')]={'channel':_0x43e81f('0x1f60'),'type':_0x43e81f('0x2e4'),'ticketType':_0x43e81f('0xf94')},_0x194dfd['title']=_0x43e81f('0x610'),_0x194dfd[_0x43e81f('0xda')]=!![]);_0x194dfd['addNewDynamics365Configuration']=_0x805a6d,_0x194dfd[_0x43e81f('0xedd')]=_0x565fca,_0x194dfd[_0x43e81f('0xc07')]=_0x477ad8,_0x194dfd[_0x43e81f('0x2601')]=_0x5f111e,_0x194dfd[_0x43e81f('0xca7')]=_0x3ad060;function _0x805a6d(){const _0x58d47b=_0x43e81f;_0x194dfd['errors']=[],_0x58fbad[_0x58d47b('0x1835')]['addConfiguration']({'id':_0x59744d['params']['id']},_0x194dfd[_0x58d47b('0x1210')])[_0x58d47b('0x1714')]['then'](function(_0x2c1437){const _0x1a873e=_0x58d47b;_0x194dfd['configurations']['unshift'](_0x2c1437['toJSON']()),_0x53cc3f[_0x1a873e('0x173b')]({'title':_0x1a873e('0x1871'),'msg':_0x194dfd['dynamics365Configuration'][_0x1a873e('0x1a8d')]?_0x194dfd[_0x1a873e('0x1210')][_0x1a873e('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x3ad060(_0x2c1437);})[_0x58d47b('0x1cb5')](function(_0x3feedf){const _0x582e0f=_0x58d47b;if(_0x3feedf[_0x582e0f('0x11fc')]&&_0x3feedf['data'][_0x582e0f('0x25be')]&&_0x3feedf[_0x582e0f('0x11fc')][_0x582e0f('0x25be')][_0x582e0f('0x2566')]){_0x194dfd[_0x582e0f('0x25be')]=_0x3feedf[_0x582e0f('0x11fc')][_0x582e0f('0x25be')]||[{'message':_0x3feedf['toString'](),'type':'api.intDynamics365Configuration.save'}];for(let _0x44bb0c=0x0;_0x44bb0c<_0x3feedf[_0x582e0f('0x11fc')]['errors']['length'];_0x44bb0c+=0x1){_0x53cc3f[_0x582e0f('0x5e8')]({'title':_0x3feedf[_0x582e0f('0x11fc')][_0x582e0f('0x25be')][_0x44bb0c][_0x582e0f('0x1d7')],'msg':_0x3feedf['data'][_0x582e0f('0x25be')][_0x44bb0c][_0x582e0f('0x15e2')]});}}else _0x53cc3f[_0x582e0f('0x5e8')]({'title':_0x3feedf[_0x582e0f('0x1b51')]?'API:'+_0x3feedf[_0x582e0f('0x1b51')]+_0x582e0f('0x1b0b')+_0x3feedf[_0x582e0f('0x22ce')]:_0x582e0f('0x2361'),'msg':_0x3feedf[_0x582e0f('0x11fc')]?JSON['stringify'](_0x3feedf[_0x582e0f('0x11fc')][_0x582e0f('0x15e2')]):_0x3feedf[_0x582e0f('0x17df')]()});});}function _0x565fca(){const _0x5385ed=_0x43e81f;_0x194dfd[_0x5385ed('0x25be')]=[],_0x58fbad[_0x5385ed('0x6bc')][_0x5385ed('0x2740')]({'id':_0x194dfd[_0x5385ed('0x1210')]['id']},_0x194dfd[_0x5385ed('0x1210')])[_0x5385ed('0x1714')][_0x5385ed('0x2788')](function(_0x1e5c09){const _0x11104e=_0x5385ed,_0x112c81=_0x283545()[_0x11104e('0x20e8')](_0x194dfd[_0x11104e('0x1b77')],{'id':_0x1e5c09['id']});_0x112c81&&_0x283545()['merge'](_0x112c81,_0x283545()[_0x11104e('0x41b')](_0x1e5c09[_0x11104e('0x1cbf')](),_0x283545()[_0x11104e('0x2163')](_0x112c81))),_0x53cc3f[_0x11104e('0x173b')]({'title':_0x11104e('0x2042'),'msg':_0x194dfd[_0x11104e('0x1210')][_0x11104e('0x1a8d')]?_0x194dfd['dynamics365Configuration'][_0x11104e('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x3ad060(_0x1e5c09);})[_0x5385ed('0x1cb5')](function(_0x5058d9){const _0x2d4d35=_0x5385ed;if(_0x5058d9[_0x2d4d35('0x11fc')]&&_0x5058d9[_0x2d4d35('0x11fc')][_0x2d4d35('0x25be')]&&_0x5058d9[_0x2d4d35('0x11fc')][_0x2d4d35('0x25be')]['length']){_0x194dfd[_0x2d4d35('0x25be')]=_0x5058d9[_0x2d4d35('0x11fc')][_0x2d4d35('0x25be')]||[{'message':_0x5058d9[_0x2d4d35('0x17df')](),'type':'api.intDynamics365Configuration.update'}];for(let _0x509aeb=0x0;_0x509aeb<_0x5058d9['data'][_0x2d4d35('0x25be')][_0x2d4d35('0x2566')];_0x509aeb++){_0x53cc3f[_0x2d4d35('0x5e8')]({'title':_0x5058d9[_0x2d4d35('0x11fc')][_0x2d4d35('0x25be')][_0x509aeb][_0x2d4d35('0x1d7')],'msg':_0x5058d9['data'][_0x2d4d35('0x25be')][_0x509aeb][_0x2d4d35('0x15e2')]});}}else _0x53cc3f[_0x2d4d35('0x5e8')]({'title':_0x5058d9[_0x2d4d35('0x1b51')]?_0x2d4d35('0x15d1')+_0x5058d9[_0x2d4d35('0x1b51')]+_0x2d4d35('0x1b0b')+_0x5058d9['statusText']:_0x2d4d35('0x1c67'),'msg':_0x5058d9['data']?JSON[_0x2d4d35('0x1be0')](_0x5058d9['data'][_0x2d4d35('0x15e2')]):_0x5058d9[_0x2d4d35('0x17df')]()});});}function _0x477ad8(_0x2aa7df){const _0x3fc53a=_0x43e81f;_0x194dfd[_0x3fc53a('0x25be')]=[];const _0x36c130=_0x50847d[_0x3fc53a('0x112e')]()[_0x3fc53a('0x14e4')]('Are\x20you\x20sure?')['content']('The\x20dynamics365Configuration\x20will\x20be\x20deleted.')[_0x3fc53a('0x10bc')](_0x3fc53a('0xde'))['ok'](_0x3fc53a('0x2786'))['cancel'](_0x3fc53a('0x1481'))[_0x3fc53a('0x24d0')](_0x2aa7df);_0x50847d['show'](_0x36c130)[_0x3fc53a('0x2788')](function(){const _0x4351b2=_0x3fc53a;_0x58fbad[_0x4351b2('0x6bc')][_0x4351b2('0x17c4')]({'id':_0x194dfd[_0x4351b2('0x1210')]['id']})['$promise']['then'](function(){const _0x3df311=_0x4351b2;_0x283545()[_0x3df311('0x1a90')](_0x194dfd[_0x3df311('0x1b77')],{'id':_0x194dfd['dynamics365Configuration']['id']}),_0x53cc3f['success']({'title':_0x3df311('0x2112'),'msg':(_0x194dfd[_0x3df311('0x1210')][_0x3df311('0x1a8d')]||_0x3df311('0x1210'))+'\x20has\x20been\x20deleted!'}),_0x3ad060(_0x194dfd[_0x3df311('0x1210')]);})[_0x4351b2('0x1cb5')](function(_0x2185b1){const _0x5ad744=_0x4351b2;if(_0x2185b1[_0x5ad744('0x11fc')]&&_0x2185b1[_0x5ad744('0x11fc')]['errors']&&_0x2185b1['data']['errors']['length']){_0x194dfd['errors']=_0x2185b1[_0x5ad744('0x11fc')][_0x5ad744('0x25be')]||[{'message':_0x2185b1[_0x5ad744('0x17df')](),'type':_0x5ad744('0x14b3')}];for(let _0xa092d3=0x0;_0xa092d3<_0x2185b1[_0x5ad744('0x11fc')]['errors'][_0x5ad744('0x2566')];_0xa092d3++){_0x53cc3f['error']({'title':_0x2185b1[_0x5ad744('0x11fc')][_0x5ad744('0x25be')][_0xa092d3][_0x5ad744('0x1d7')],'msg':_0x2185b1[_0x5ad744('0x11fc')][_0x5ad744('0x25be')][_0xa092d3][_0x5ad744('0x15e2')]});}}else _0x53cc3f[_0x5ad744('0x5e8')]({'title':_0x2185b1[_0x5ad744('0x1b51')]?'API:'+_0x2185b1[_0x5ad744('0x1b51')]+'\x20-\x20'+_0x2185b1[_0x5ad744('0x22ce')]:_0x5ad744('0x14b3'),'msg':_0x2185b1[_0x5ad744('0x11fc')]?JSON[_0x5ad744('0x1be0')](_0x2185b1[_0x5ad744('0x11fc')][_0x5ad744('0x15e2')]):_0x2185b1['message']||_0x2185b1['toString']()});});},function(){});}function _0x5f111e(_0x422ac1){return _0x422ac1===null?undefined:new Date(_0x422ac1);}function _0x3ad060(_0x312dea){const _0x4fc3d6=_0x43e81f;_0x50847d[_0x4fc3d6('0x19d')](_0x312dea);}}const _0xc71955=_0x5a05ad;_0x135228['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),_0x34e79e('0x117b'),_0x34e79e('0xd3c'),'account',_0x34e79e('0x1d7'),'api','Auth','crudPermissions'];function _0x135228(_0xccef94,_0x468184,_0x351911,_0x27ac02,_0x2501a6,_0x27bbe7,_0x2158aa,_0x2959dd,_0x323e43,_0x34c622,_0x507d6d,_0x2c0c4f,_0x297242){const _0x57fe8f=_0x34e79e,_0x3a2e1e=this;_0x3a2e1e[_0x57fe8f('0x9cb')]=_0x2c0c4f[_0x57fe8f('0x24cc')](),_0x3a2e1e[_0x57fe8f('0x25be')]=[],_0x3a2e1e[_0x57fe8f('0x14e4')]=_0x57fe8f('0x1df9')+_0x283545()[_0x57fe8f('0xc87')](_0x34c622),_0x3a2e1e[_0x57fe8f('0xd3c')]=angular['copy'](_0x2959dd),_0x3a2e1e['items']=_0x2158aa,_0x3a2e1e['type']=_0x34c622,_0x3a2e1e[_0x57fe8f('0xe28')]=_0x297242,_0x3a2e1e[_0x57fe8f('0x63a')]=![];!_0x3a2e1e['item']&&(_0x3a2e1e[_0x57fe8f('0xd3c')]={'type':'string'},_0x3a2e1e[_0x57fe8f('0xd3c')][_0x283545()[_0x57fe8f('0x1df5')](_0x34c622)+'Id']=_0x27bbe7['id'],_0x3a2e1e['title']=_0x57fe8f('0x1109')+_0x283545()[_0x57fe8f('0xc87')](_0x34c622),_0x3a2e1e['newItem']=!![]);_0x3a2e1e['addNewItem']=_0x421569,_0x3a2e1e['saveItem']=_0x42540a,_0x3a2e1e['deleteItem']=_0x548b0e,_0x3a2e1e[_0x57fe8f('0xb4f')]=_0x20f99f,_0x3a2e1e[_0x57fe8f('0xca7')]=_0xe7dcf8,_0x507d6d[_0x57fe8f('0xa72')]['get']({'nolimit':!![]})[_0x57fe8f('0x1714')][_0x57fe8f('0x2788')](function(_0x30c719){const _0x6e69a4=_0x57fe8f;return _0x3a2e1e['variables']=_0x30c719[_0x6e69a4('0x25df')]?_0x30c719[_0x6e69a4('0x25df')]:[],_0x507d6d[_0x6e69a4('0x15b7')][_0x6e69a4('0x15f8')]()[_0x6e69a4('0x1714')];})[_0x57fe8f('0x2788')](function(_0x22e2b5){const _0x1abf44=_0x57fe8f;return _0x3a2e1e[_0x1abf44('0x1cac')]=_0x283545()[_0x1abf44('0xa9f')](_0x283545()[_0x1abf44('0x2163')](_0x22e2b5),['$promise',_0x1abf44('0x187a'),_0x1abf44('0x172'),'updatedAt','sourceid']),_0x3a2e1e[_0x1abf44('0x1cac')][_0x1abf44('0x13e3')](_0x1abf44('0x12da')),_0x507d6d[_0x1abf44('0xac')]['describe']()[_0x1abf44('0x1714')];})['then'](function(_0x3e69b9){const _0x3efcbb=_0x57fe8f;_0x3a2e1e[_0x3efcbb('0x226b')]=_0x283545()[_0x3efcbb('0xa9f')](_0x283545()[_0x3efcbb('0x2163')](_0x3e69b9),[_0x3efcbb('0x1714'),_0x3efcbb('0x187a'),_0x3efcbb('0x172'),_0x3efcbb('0x5f'),_0x3efcbb('0x900')]),_0x3a2e1e[_0x3efcbb('0x226b')][_0x3efcbb('0x13e3')](_0x3efcbb('0x12da'));})[_0x57fe8f('0x1cb5')](function(_0x5ba132){const _0x32b3a3=_0x57fe8f;_0x2501a6[_0x32b3a3('0x5e8')]({'title':_0x5ba132[_0x32b3a3('0x1b51')]?_0x32b3a3('0x15d1')+_0x5ba132['status']+_0x32b3a3('0x1b0b')+_0x5ba132['statusText']:_0x32b3a3('0x694'),'msg':_0x5ba132[_0x32b3a3('0x11fc')]?JSON[_0x32b3a3('0x1be0')](_0x5ba132['data']):_0x5ba132[_0x32b3a3('0x17df')]()});}),_0x507d6d['intDynamics365Account'][_0x57fe8f('0x24')]({'id':_0x323e43['id'],'ticketType':_0x27bbe7[_0x57fe8f('0x3d9')]?_0x27bbe7[_0x57fe8f('0x3d9')]:undefined})[_0x57fe8f('0x1714')][_0x57fe8f('0x2788')](function(_0x7d090d){const _0x2175c0=_0x57fe8f;_0x3a2e1e[_0x2175c0('0x551')]=!![],_0x3a2e1e[_0x2175c0('0x1578')]=_0x7d090d['rows']?_0x7d090d['rows']:[],_0x3a2e1e[_0x2175c0('0xd3c')][_0x2175c0('0x1ca9')]&&(_0x3a2e1e[_0x2175c0('0x1ee9')]=_0x283545()[_0x2175c0('0x20e8')](_0x3a2e1e[_0x2175c0('0x1578')],{'id':_0x3a2e1e[_0x2175c0('0xd3c')]['idField']}));})['catch'](function(_0x2d6a0b){_0x3a2e1e['accountConnected']=![],console['error'](_0x2d6a0b);});function _0x421569(){const _0x4653e0=_0x57fe8f;_0x3a2e1e[_0x4653e0('0x25be')]=[],_0x3a2e1e[_0x4653e0('0x1ee9')]&&(_0x3a2e1e['item']['idField']=_0x3a2e1e[_0x4653e0('0x1ee9')]['id'],_0x3a2e1e[_0x4653e0('0xd3c')][_0x4653e0('0x98')]=_0x3a2e1e['customField'][_0x4653e0('0x1a8d')],_0x3a2e1e[_0x4653e0('0xd3c')][_0x4653e0('0x1ee9')]=_0x3a2e1e[_0x4653e0('0x1ee9')][_0x4653e0('0x1d56')]),_0x507d6d[_0x4653e0('0x1637')][_0x4653e0('0xbd0')](_0x3a2e1e[_0x4653e0('0xd3c')])[_0x4653e0('0x1714')]['then'](function(_0x462604){const _0x4fdd0d=_0x4653e0;_0x3a2e1e[_0x4fdd0d('0x117b')]['unshift'](_0x462604),_0x2501a6[_0x4fdd0d('0x173b')]({'title':_0x283545()[_0x4fdd0d('0x1df5')](_0x34c622)+_0x4fdd0d('0x194d'),'msg':_0x283545()[_0x4fdd0d('0x1df5')](_0x34c622)+'\x20has\x20been\x20created!'}),_0xe7dcf8();})[_0x4653e0('0x1cb5')](function(_0x299d04){const _0x131e90=_0x4653e0;console['error'](_0x299d04),_0x3a2e1e['errors']=_0x299d04['data'][_0x131e90('0x25be')]||[{'message':_0x299d04['toString'](),'type':_0x131e90('0x256f')}];});}function _0x42540a(){const _0x5479f4=_0x57fe8f;_0x3a2e1e[_0x5479f4('0x25be')]=[],_0x3a2e1e[_0x5479f4('0x1ee9')]&&(_0x3a2e1e[_0x5479f4('0xd3c')][_0x5479f4('0x1ca9')]=_0x3a2e1e[_0x5479f4('0x1ee9')]['id'],_0x3a2e1e['item'][_0x5479f4('0x98')]=_0x3a2e1e[_0x5479f4('0x1ee9')][_0x5479f4('0x1a8d')],_0x3a2e1e[_0x5479f4('0xd3c')][_0x5479f4('0x1ee9')]=_0x3a2e1e[_0x5479f4('0x1ee9')][_0x5479f4('0x1d56')]),_0x507d6d['intDynamics365Field'][_0x5479f4('0x2740')]({'id':_0x3a2e1e['item']['id']},_0x3a2e1e['item'])[_0x5479f4('0x1714')][_0x5479f4('0x2788')](function(_0x376292){const _0x440d54=_0x5479f4,_0x28b72a=_0x283545()[_0x440d54('0x20e8')](_0x3a2e1e[_0x440d54('0x117b')],{'id':_0x376292['id']});_0x28b72a&&_0x283545()[_0x440d54('0x2503')](_0x28b72a,_0x376292),_0x2501a6['success']({'title':_0x283545()[_0x440d54('0x1df5')](_0x34c622)+_0x440d54('0x1d15'),'msg':_0x283545()[_0x440d54('0x1df5')](_0x34c622)+'\x20has\x20been\x20saved!'}),_0xe7dcf8();})['catch'](function(_0x228e8d){const _0x12fc8d=_0x5479f4;console[_0x12fc8d('0x5e8')](_0x228e8d),_0x3a2e1e['errors']=_0x228e8d[_0x12fc8d('0x11fc')][_0x12fc8d('0x25be')]||[{'message':_0x228e8d[_0x12fc8d('0x17df')](),'type':'api.intItem.update'}];});}function _0x548b0e(_0x5393bb){const _0x228afb=_0x57fe8f;_0x3a2e1e[_0x228afb('0x25be')]=[];const _0x462a59=_0x27ac02[_0x228afb('0x112e')]()[_0x228afb('0x14e4')]('Are\x20you\x20sure?')[_0x228afb('0x1c98')](_0x228afb('0x1b10')+_0x34c622+_0x228afb('0x27c7'))['ariaLabel'](_0x228afb('0x177f')+_0x283545()['capitalize'](_0x34c622))['ok'](_0x228afb('0x2786'))[_0x228afb('0x1801')](_0x228afb('0x1481'))['targetEvent'](_0x5393bb);_0x27ac02[_0x228afb('0x2fa')](_0x462a59)['then'](function(){const _0x285617=_0x228afb;_0x507d6d[_0x285617('0x1637')][_0x285617('0x17c4')]({'id':_0x3a2e1e['item']['id']})[_0x285617('0x1714')][_0x285617('0x2788')](function(){const _0x47fdeb=_0x285617;_0x283545()[_0x47fdeb('0x1a90')](_0x3a2e1e['items'],{'id':_0x3a2e1e['item']['id']}),_0x2501a6['success']({'title':_0x283545()[_0x47fdeb('0x1df5')](_0x34c622)+_0x47fdeb('0x2542'),'msg':_0x283545()['capitalize'](_0x34c622)+_0x47fdeb('0x14d4')}),_0xe7dcf8();})['catch'](function(_0x4e9517){const _0x5d59ae=_0x285617;console[_0x5d59ae('0x5e8')](_0x4e9517),_0x3a2e1e[_0x5d59ae('0x25be')]=_0x4e9517[_0x5d59ae('0x11fc')][_0x5d59ae('0x25be')]||[{'message':_0x4e9517[_0x5d59ae('0x17df')](),'type':_0x5d59ae('0x1276')}];});},function(){});}function _0x20f99f(){const _0x5b310c=_0x57fe8f;return _0x3a2e1e[_0x5b310c('0xd3c')][_0x5b310c('0x1889')]!==undefined?_0x3a2e1e[_0x5b310c('0xd3c')][_0x5b310c('0x1889')]:_0x5b310c('0x6d1');}function _0xe7dcf8(){const _0x1d4363=_0x57fe8f;_0x27ac02[_0x1d4363('0x19d')]();}}const _0x27edc8=_0x135228;_0x3d8db1[_0x34e79e('0x2d9')]=['$state','$location',_0x34e79e('0x123b'),'$document','$translate','license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x27a0'),_0x34e79e('0xec9')];function _0x3d8db1(_0x2f2628,_0x350be8,_0x19c73a,_0xb69afb,_0x48dcf4,_0x22e135,_0x269618,_0x2fee1f,_0x2e8844,_0x17098c,_0x3332c8,_0x4ade5c){const _0x4f7d4e=_0x34e79e,_0x106f9e=this;_0x106f9e[_0x4f7d4e('0x9cb')]=_0x17098c[_0x4f7d4e('0x24cc')](),_0x106f9e[_0x4f7d4e('0x130d')]=_0x22e135,_0x106f9e[_0x4f7d4e('0x1af0')]=_0x269618,_0x106f9e[_0x4f7d4e('0x18ad')]=_0x106f9e[_0x4f7d4e('0x1af0')][_0x4f7d4e('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x106f9e[_0x4f7d4e('0xe9')]=_0x350be8[_0x4f7d4e('0x170c')]()+'://'+_0x350be8[_0x4f7d4e('0x1c6a')](),_0x106f9e[_0x4f7d4e('0x27a0')]=_0x3332c8||_0x2f2628['params']['dynamics365Account']||{},_0x106f9e[_0x4f7d4e('0xec9')]=_0x4ade5c&&_0x4ade5c['count']==0x1?_0x4ade5c['rows'][0x0]:null,_0x106f9e[_0x4f7d4e('0xe28')]=_0x17098c['parseCrudPermissions'](_0x106f9e[_0x4f7d4e('0xec9')]?_0x106f9e[_0x4f7d4e('0xec9')][_0x4f7d4e('0xe28')]:null),_0x106f9e[_0x4f7d4e('0x1193')]={},_0x106f9e[_0x4f7d4e('0xcb3')]=_0x2f2628[_0x4f7d4e('0x4b9')]['tab']||0x0,_0x106f9e[_0x4f7d4e('0x204f')]=_0x2e8844['info'],_0x106f9e[_0x4f7d4e('0x20fb')]=_0x30be1a,_0x106f9e[_0x4f7d4e('0x12fa')]=_0x5931e2;function _0x30be1a(){const _0x16bc9a=_0x4f7d4e;_0x2f2628['go']('app.integrations.dynamics365Accounts',{},{'reload':_0x16bc9a('0x2564')});}function _0x5931e2(){const _0x4ca8bf=_0x4f7d4e;_0x2fee1f[_0x4ca8bf('0x1835')]['update']({'id':_0x106f9e[_0x4ca8bf('0x27a0')]['id']},_0x106f9e[_0x4ca8bf('0x27a0')])[_0x4ca8bf('0x1714')][_0x4ca8bf('0x2788')](function(){const _0x397744=_0x4ca8bf;_0x2e8844[_0x397744('0x173b')]({'title':_0x397744('0xfcd'),'msg':_0x106f9e[_0x397744('0x27a0')][_0x397744('0x1a8d')]?_0x106f9e['dynamics365Account']['name']+_0x397744('0x6f8'):''});})[_0x4ca8bf('0x1cb5')](function(_0x55bb86){const _0x1859d3=_0x4ca8bf;_0x2e8844[_0x1859d3('0x5e8')]({'title':_0x55bb86[_0x1859d3('0x1b51')]?_0x1859d3('0x15d1')+_0x55bb86[_0x1859d3('0x1b51')]+_0x1859d3('0x1b0b')+_0x55bb86[_0x1859d3('0x22ce')]:'SYSTEM:GETintDynamics365Account','msg':_0x55bb86['data']?JSON['stringify'](_0x55bb86['data']):_0x55bb86[_0x1859d3('0x17df')]()});});}}const _0xf8dd20=_0x3d8db1;_0x122db7[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x738'),_0x34e79e('0xc1'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x122db7(_0x5e4215,_0x40934c,_0xeed9de,_0x53525c,_0x129bef,_0x47965b,_0x128e37,_0x5a436a,_0xba05f4,_0x5576d9,_0x5263f2,_0x4d96db,_0x1479c6,_0x260469){const _0x646798=_0x34e79e,_0x43b849=this;_0x43b849[_0x646798('0x9cb')]=_0x5263f2['getCurrentUser'](),_0x43b849[_0x646798('0x25be')]=[],_0x43b849[_0x646798('0x1af0')]=_0x1479c6,_0x43b849[_0x646798('0x130d')]=_0x4d96db,_0x43b849[_0x646798('0xe28')]=_0x260469,_0x43b849['hasModulePermissions']={},_0x43b849[_0x646798('0x18ad')]=_0x43b849['setting']&&_0x43b849[_0x646798('0x1af0')][_0x646798('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43b849[_0x646798('0x14e4')]='INTEGRATIONS.EDIT_FRESHDESKACCOUNT',_0x43b849[_0x646798('0xc1')]=angular[_0x646798('0x2669')](_0xba05f4),_0x43b849[_0x646798('0x738')]=_0x5a436a,_0x43b849[_0x646798('0x144e')]=![];!_0x43b849[_0x646798('0xc1')]&&(_0x43b849[_0x646798('0xc1')]={'serverUrl':_0xeed9de['protocol']()+_0x646798('0x726')+_0xeed9de[_0x646798('0x1c6a')]()+(_0xeed9de[_0x646798('0x1fee')]()?':'+_0xeed9de['port']():'')},_0x43b849[_0x646798('0x14e4')]=_0x646798('0x2617'),_0x43b849[_0x646798('0x144e')]=!![]);_0x43b849[_0x646798('0x1a31')]=_0x53d6ea,_0x43b849[_0x646798('0x3a9')]=_0x26c43f,_0x43b849['deleteFreshdeskAccount']=_0x4009da,_0x43b849[_0x646798('0x2601')]=_0x3d93cf,_0x43b849['closeDialog']=_0x515cc8;function _0x53d6ea(){const _0x2d5433=_0x646798;_0x43b849[_0x2d5433('0x25be')]=[],_0x5576d9['intFreshdeskAccount']['save'](_0x43b849['freshdeskAccount'])['$promise']['then'](function(_0x821aa0){const _0x10a81d=_0x2d5433;_0x43b849['freshdeskAccounts'][_0x10a81d('0xc51')](_0x821aa0[_0x10a81d('0x1cbf')]()),_0x128e37[_0x10a81d('0x173b')]({'title':_0x10a81d('0x9f7'),'msg':_0x43b849[_0x10a81d('0xc1')]['name']?_0x43b849[_0x10a81d('0xc1')][_0x10a81d('0x1a8d')]+_0x10a81d('0x1e4a'):''}),_0x515cc8(_0x821aa0);})[_0x2d5433('0x1cb5')](function(_0x5d4778){const _0x5a57a2=_0x2d5433;if(_0x5d4778['data']&&_0x5d4778['data'][_0x5a57a2('0x25be')]&&_0x5d4778[_0x5a57a2('0x11fc')][_0x5a57a2('0x25be')][_0x5a57a2('0x2566')]){_0x43b849[_0x5a57a2('0x25be')]=_0x5d4778[_0x5a57a2('0x11fc')][_0x5a57a2('0x25be')]||[{'message':_0x5d4778[_0x5a57a2('0x17df')](),'type':_0x5a57a2('0x271b')}];for(let _0x141f8a=0x0;_0x141f8a<_0x5d4778[_0x5a57a2('0x11fc')][_0x5a57a2('0x25be')]['length'];_0x141f8a+=0x1){_0x128e37[_0x5a57a2('0x5e8')]({'title':_0x5d4778[_0x5a57a2('0x11fc')][_0x5a57a2('0x25be')][_0x141f8a][_0x5a57a2('0x1d7')],'msg':_0x5d4778[_0x5a57a2('0x11fc')]['errors'][_0x141f8a][_0x5a57a2('0x15e2')]});}}else _0x128e37[_0x5a57a2('0x5e8')]({'title':_0x5d4778[_0x5a57a2('0x1b51')]?'API:'+_0x5d4778[_0x5a57a2('0x1b51')]+_0x5a57a2('0x1b0b')+_0x5d4778[_0x5a57a2('0x22ce')]:_0x5a57a2('0x271b'),'msg':_0x5d4778[_0x5a57a2('0x11fc')]?JSON[_0x5a57a2('0x1be0')](_0x5d4778[_0x5a57a2('0x11fc')][_0x5a57a2('0x15e2')]):_0x5d4778[_0x5a57a2('0x17df')]()});});}function _0x26c43f(){const _0x1e5db8=_0x646798;_0x43b849[_0x1e5db8('0x25be')]=[],_0x5576d9[_0x1e5db8('0x207')][_0x1e5db8('0x2740')]({'id':_0x43b849[_0x1e5db8('0xc1')]['id']},_0x43b849[_0x1e5db8('0xc1')])[_0x1e5db8('0x1714')]['then'](function(_0x536a0f){const _0x3d05f9=_0x1e5db8,_0x378bbd=_0x283545()[_0x3d05f9('0x20e8')](_0x43b849['freshdeskAccounts'],{'id':_0x536a0f['id']});_0x378bbd&&_0x283545()[_0x3d05f9('0x2503')](_0x378bbd,_0x283545()['pick'](_0x536a0f[_0x3d05f9('0x1cbf')](),_0x283545()[_0x3d05f9('0x2163')](_0x378bbd))),_0x128e37[_0x3d05f9('0x173b')]({'title':_0x3d05f9('0x257f'),'msg':_0x43b849[_0x3d05f9('0xc1')][_0x3d05f9('0x1a8d')]?_0x43b849[_0x3d05f9('0xc1')][_0x3d05f9('0x1a8d')]+_0x3d05f9('0x24cf'):''}),_0x515cc8(_0x536a0f);})[_0x1e5db8('0x1cb5')](function(_0x332b7e){const _0x379dda=_0x1e5db8;if(_0x332b7e[_0x379dda('0x11fc')]&&_0x332b7e['data'][_0x379dda('0x25be')]&&_0x332b7e['data'][_0x379dda('0x25be')][_0x379dda('0x2566')]){_0x43b849[_0x379dda('0x25be')]=_0x332b7e[_0x379dda('0x11fc')][_0x379dda('0x25be')]||[{'message':_0x332b7e[_0x379dda('0x17df')](),'type':_0x379dda('0x10bd')}];for(let _0x2aed68=0x0;_0x2aed68<_0x332b7e[_0x379dda('0x11fc')][_0x379dda('0x25be')]['length'];_0x2aed68++){_0x128e37[_0x379dda('0x5e8')]({'title':_0x332b7e[_0x379dda('0x11fc')][_0x379dda('0x25be')][_0x2aed68][_0x379dda('0x1d7')],'msg':_0x332b7e['data'][_0x379dda('0x25be')][_0x2aed68][_0x379dda('0x15e2')]});}}else _0x128e37[_0x379dda('0x5e8')]({'title':_0x332b7e[_0x379dda('0x1b51')]?_0x379dda('0x15d1')+_0x332b7e[_0x379dda('0x1b51')]+'\x20-\x20'+_0x332b7e['statusText']:_0x379dda('0x10bd'),'msg':_0x332b7e['data']?JSON[_0x379dda('0x1be0')](_0x332b7e['data']['message']):_0x332b7e['toString']()});});}function _0x4009da(_0x33f790){const _0x4860bc=_0x646798;_0x43b849[_0x4860bc('0x25be')]=[];const _0x10c49e=_0x53525c[_0x4860bc('0x112e')]()['title'](_0x4860bc('0x458'))['content'](_0x4860bc('0x2434'))[_0x4860bc('0x10bc')](_0x4860bc('0x1203'))['ok']('Delete')[_0x4860bc('0x1801')](_0x4860bc('0x1481'))['targetEvent'](_0x33f790);_0x53525c[_0x4860bc('0x2fa')](_0x10c49e)['then'](function(){const _0x4a2b36=_0x4860bc;_0x5576d9[_0x4a2b36('0x207')][_0x4a2b36('0x17c4')]({'id':_0x43b849['freshdeskAccount']['id']})[_0x4a2b36('0x1714')][_0x4a2b36('0x2788')](function(){const _0x269539=_0x4a2b36;_0x283545()['remove'](_0x43b849[_0x269539('0x738')],{'id':_0x43b849[_0x269539('0xc1')]['id']}),_0x128e37[_0x269539('0x173b')]({'title':'FreshdeskAccount\x20properly\x20deleted!','msg':(_0x43b849['freshdeskAccount'][_0x269539('0x1a8d')]||_0x269539('0xc1'))+'\x20has\x20been\x20deleted!'}),_0x515cc8(_0x43b849[_0x269539('0xc1')]);})['catch'](function(_0x160104){const _0x87c11b=_0x4a2b36;if(_0x160104[_0x87c11b('0x11fc')]&&_0x160104[_0x87c11b('0x11fc')]['errors']&&_0x160104[_0x87c11b('0x11fc')][_0x87c11b('0x25be')][_0x87c11b('0x2566')]){_0x43b849['errors']=_0x160104['data']['errors']||[{'message':_0x160104[_0x87c11b('0x17df')](),'type':_0x87c11b('0x1a32')}];for(let _0x44fffc=0x0;_0x44fffc<_0x160104['data'][_0x87c11b('0x25be')][_0x87c11b('0x2566')];_0x44fffc++){_0x128e37['error']({'title':_0x160104[_0x87c11b('0x11fc')][_0x87c11b('0x25be')][_0x44fffc][_0x87c11b('0x1d7')],'msg':_0x160104['data'][_0x87c11b('0x25be')][_0x44fffc][_0x87c11b('0x15e2')]});}}else _0x128e37[_0x87c11b('0x5e8')]({'title':_0x160104[_0x87c11b('0x1b51')]?'API:'+_0x160104[_0x87c11b('0x1b51')]+'\x20-\x20'+_0x160104['statusText']:'api.intFreshdeskAccount.delete','msg':_0x160104['data']?JSON[_0x87c11b('0x1be0')](_0x160104['data'][_0x87c11b('0x15e2')]):_0x160104['message']||_0x160104['toString']()});});},function(){});}function _0x3d93cf(_0x43c7cb){return _0x43c7cb===null?undefined:new Date(_0x43c7cb);}function _0x515cc8(_0x1525f0){_0x53525c['hide'](_0x1525f0);}}const _0x4a6452=_0x122db7,_0x2914ae=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html',_0x16ca81=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html';_0x3a374b[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x3a374b(_0x5143b5,_0x214274,_0xce09d9,_0x46a0ba,_0x3d8e9d){const _0x41e552=_0x34e79e,_0x721f81=this;_0x721f81[_0x41e552('0x9cb')]=_0x3d8e9d['getCurrentUser'](),_0x721f81[_0x41e552('0xc1')]={},_0x721f81[_0x41e552('0x2123')]={},_0x721f81['configurations']=[],_0x721f81[_0x41e552('0x11d8')]=-0x1,_0x721f81[_0x41e552('0xe28')],_0x721f81[_0x41e552('0x24eb')]=_0x4b5c51,_0x721f81[_0x41e552('0x1e08')]=_0x4e75cd,_0x721f81[_0x41e552('0x274f')]=_0x52b8c3,_0x721f81[_0x41e552('0x1095')]=_0x1b90dd,_0x721f81[_0x41e552('0xf6c')]=[],_0x721f81[_0x41e552('0x1815')]=_0x3557a3,_0xce09d9[_0x41e552('0x1764')][_0x41e552('0x1335')]({'nolimit':!![],'sort':'name'})[_0x41e552('0x1714')][_0x41e552('0x2788')](function(_0x2867de){const _0xe07765=_0x41e552;_0x721f81[_0xe07765('0xe45')]=_0x2867de[_0xe07765('0x25df')]?_0x2867de[_0xe07765('0x25df')]:[];})[_0x41e552('0x1cb5')](function(_0x107429){const _0xd78a02=_0x41e552;_0x46a0ba['error']({'title':_0x107429['status']?_0xd78a02('0x15d1')+_0x107429[_0xd78a02('0x1b51')]+_0xd78a02('0x1b0b')+_0x107429[_0xd78a02('0x22ce')]:'SYSTEM:GETTAGS','msg':_0x107429[_0xd78a02('0x11fc')]?JSON[_0xd78a02('0x1be0')](_0x107429[_0xd78a02('0x11fc')]):_0x107429['toString']()});});function _0x3557a3(){const _0xc00ef=_0x41e552;_0xce09d9[_0xc00ef('0x42d')]['setTags']({'id':_0x721f81[_0xc00ef('0x2123')]['id'],'ids':_0x721f81[_0xc00ef('0xf6c')]})[_0xc00ef('0x1714')]['then'](function(){const _0x3787db=_0xc00ef;_0x46a0ba[_0x3787db('0x173b')]({'title':_0x3787db('0xc53'),'msg':_0x3787db('0x765')});})[_0xc00ef('0x1cb5')](function(_0x540c7f){const _0x596b39=_0xc00ef;_0x46a0ba[_0x596b39('0x5e8')]({'title':_0x540c7f[_0x596b39('0x1b51')]?_0x596b39('0x15d1')+_0x540c7f[_0x596b39('0x1b51')]+_0x596b39('0x1b0b')+_0x540c7f['statusText']:_0x596b39('0x271d'),'msg':_0x540c7f[_0x596b39('0x11fc')]?JSON[_0x596b39('0x1be0')](_0x540c7f['data']):_0x540c7f[_0x596b39('0x17df')]()});});}function _0x4b5c51(_0x503027,_0x3dc268){const _0x4e7da7=_0x41e552;_0x721f81[_0x4e7da7('0xc1')]=_0x503027,_0x721f81[_0x4e7da7('0xe28')]=typeof _0x3dc268!==_0x4e7da7('0xedb')?_0x3dc268:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xce09d9[_0x4e7da7('0x207')]['getConfigurations']({'id':_0x721f81[_0x4e7da7('0xc1')]['id'],'sort':_0x4e7da7('0x1cee')})[_0x4e7da7('0x1714')][_0x4e7da7('0x2788')](function(_0x1af509){const _0x26b7a1=_0x4e7da7;return _0x721f81[_0x26b7a1('0x1b77')]=_0x1af509['rows']?_0x1af509['rows']:[],_0x721f81[_0x26b7a1('0x1b77')][_0x26b7a1('0x2566')]&&_0x721f81[_0x26b7a1('0x1e08')](0x0),_0xce09d9[_0x26b7a1('0xa72')]['get']({'nolimit':!![],'sort':_0x26b7a1('0x1a8d')})['$promise'];})[_0x4e7da7('0x2788')](function(_0x11491f){const _0x4787f4=_0x4e7da7;_0x721f81[_0x4787f4('0xf76')]=_0x11491f[_0x4787f4('0x25df')]?_0x11491f[_0x4787f4('0x25df')]:[],_0x721f81[_0x4787f4('0xdd1')]=_0x283545()[_0x4787f4('0x13cf')](_0x721f81[_0x4787f4('0xf76')],'id');})[_0x4e7da7('0x1cb5')](function(_0x1be91e){const _0x23ec10=_0x4e7da7;_0x46a0ba['error']({'title':_0x1be91e[_0x23ec10('0x1b51')]?'API:'+_0x1be91e[_0x23ec10('0x1b51')]+_0x23ec10('0x1b0b')+_0x1be91e[_0x23ec10('0x22ce')]:_0x23ec10('0x24e'),'msg':_0x1be91e[_0x23ec10('0x11fc')]?JSON[_0x23ec10('0x1be0')](_0x1be91e['data']):_0x1be91e[_0x23ec10('0x17df')]()});});}function _0x4e75cd(_0x5d8f3c){const _0x222154=_0x41e552;_0x721f81[_0x222154('0x2123')]=_0x721f81[_0x222154('0x1b77')][_0x5d8f3c],_0x721f81[_0x222154('0x11d8')]=_0x5d8f3c,_0xce09d9[_0x222154('0x42d')][_0x222154('0x12c5')]({'id':_0x721f81[_0x222154('0x2123')]['id']})[_0x222154('0x1714')][_0x222154('0x2788')](function(_0x1a7b09){const _0x8fcd38=_0x222154;return _0x721f81[_0x8fcd38('0x348')]=_0x1a7b09[_0x8fcd38('0x25df')]?_0x1a7b09[_0x8fcd38('0x25df')]:[],_0xce09d9[_0x8fcd38('0x42d')][_0x8fcd38('0x221a')]({'id':_0x721f81[_0x8fcd38('0x2123')]['id']})[_0x8fcd38('0x1714')];})[_0x222154('0x2788')](function(_0x18bbb8){const _0x3e6430=_0x222154;return _0x721f81[_0x3e6430('0x1942')]=_0x18bbb8['rows']?_0x18bbb8[_0x3e6430('0x25df')]:[],_0xce09d9['intFreshdeskConfiguration'][_0x3e6430('0x24')]({'id':_0x721f81[_0x3e6430('0x2123')]['id']})['$promise'];})['then'](function(_0x5c6357){const _0x34e8c6=_0x222154;_0x721f81['fields']=_0x5c6357[_0x34e8c6('0x25df')]?_0x5c6357[_0x34e8c6('0x25df')]:[];})[_0x222154('0x1cb5')](function(_0x241fd1){const _0x527fc5=_0x222154;_0x46a0ba[_0x527fc5('0x5e8')]({'title':_0x241fd1['status']?'API:'+_0x241fd1['status']+_0x527fc5('0x1b0b')+_0x241fd1[_0x527fc5('0x22ce')]:_0x527fc5('0x616'),'msg':_0x241fd1['data']?JSON[_0x527fc5('0x1be0')](_0x241fd1[_0x527fc5('0x11fc')]):_0x241fd1['toString']()});}),_0xce09d9['intFreshdeskConfiguration'][_0x222154('0x1c39')]({'id':_0x721f81[_0x222154('0x2123')]['id']})[_0x222154('0x1714')][_0x222154('0x2788')](function(_0x12f582){const _0x1edd37=_0x222154;_0x721f81[_0x1edd37('0xf6c')]=_0x12f582[_0x1edd37('0x25df')]?_0x283545()[_0x1edd37('0x155d')](_0x12f582['rows'],'id'):[];})[_0x222154('0x1cb5')](function(_0x3227c8){const _0x4fea90=_0x222154;_0x46a0ba[_0x4fea90('0x5e8')]({'title':_0x3227c8[_0x4fea90('0x1b51')]?_0x4fea90('0x15d1')+_0x3227c8['status']+_0x4fea90('0x1b0b')+_0x3227c8[_0x4fea90('0x22ce')]:_0x4fea90('0x1313'),'msg':_0x3227c8['data']?JSON[_0x4fea90('0x1be0')](_0x3227c8[_0x4fea90('0x11fc')]):_0x3227c8[_0x4fea90('0x17df')]()});});}function _0x52b8c3(_0x56e101,_0x19bb57){const _0x2d56cb=_0x41e552;_0x5143b5[_0x2d56cb('0x2fa')]({'controller':_0x2d56cb('0x244e'),'controllerAs':'vm','templateUrl':_0x2914ae,'parent':angular[_0x2d56cb('0x16b1')](_0x214274[_0x2d56cb('0x945')]),'targetEvent':_0x56e101,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x19bb57,'configurations':_0x721f81['configurations'],'license':null,'setting':null,'crudPermissions':_0x721f81[_0x2d56cb('0xe28')]}})[_0x2d56cb('0x1ed8')](function(){_0x721f81['getFreshdeskConfiguration'](0x0);});}function _0x1b90dd(_0x3bc353,_0x5a0aab){const _0x9d7fdb=_0x41e552,_0x373e17=_0x5143b5[_0x9d7fdb('0x112e')]()[_0x9d7fdb('0x14e4')](_0x9d7fdb('0x2453'))[_0x9d7fdb('0x93e')](''+(_0x5a0aab[_0x9d7fdb('0x1a8d')]||_0x9d7fdb('0x2123'))+''+_0x9d7fdb('0x27c7'))['ariaLabel'](_0x9d7fdb('0x19f8'))[_0x9d7fdb('0x24d0')](_0x3bc353)['ok']('OK')[_0x9d7fdb('0x1801')](_0x9d7fdb('0x1d8d'));_0x5143b5[_0x9d7fdb('0x2fa')](_0x373e17)[_0x9d7fdb('0x2788')](function(){const _0x31e723=_0x9d7fdb;_0xce09d9['intFreshdeskConfiguration'][_0x31e723('0x17c4')]({'id':_0x5a0aab['id']})['$promise']['then'](function(){const _0x381a00=_0x31e723;_0x283545()[_0x381a00('0x1a90')](_0x721f81[_0x381a00('0x1b77')],{'id':_0x5a0aab['id']}),_0x46a0ba[_0x381a00('0x173b')]({'title':_0x381a00('0x13f1'),'msg':_0x5a0aab[_0x381a00('0x1a8d')]?_0x5a0aab[_0x381a00('0x1a8d')]+_0x381a00('0x14d4'):''});})[_0x31e723('0x1cb5')](function(_0x4da13a){const _0x2b80ce=_0x31e723;_0x46a0ba[_0x2b80ce('0x5e8')]({'title':_0x4da13a[_0x2b80ce('0x1b51')]?'API:'+_0x4da13a[_0x2b80ce('0x1b51')]+_0x2b80ce('0x1b0b')+_0x4da13a[_0x2b80ce('0x22ce')]:'SYSTEM:DELETECONFIGURATION','msg':_0x4da13a[_0x2b80ce('0x11fc')]?JSON['stringify'](_0x4da13a['data']):_0x4da13a[_0x2b80ce('0x17df')]()});})['finally'](function(){const _0x557641=_0x31e723;_0x721f81[_0x557641('0x1e08')](0x0);});},function(){const _0x304150=_0x9d7fdb;console[_0x304150('0x10df')](_0x304150('0x1d8d'));});}_0x721f81[_0x41e552('0x2012')]=[],_0x721f81[_0x41e552('0xe3e')]=_0x50b214,_0x721f81[_0x41e552('0x13b')]=_0x5f453e,_0x721f81[_0x41e552('0x5ec')]=_0x2dea79;function _0x50b214(_0x1553ad,_0x1709ff){const _0x51ef73=_0x41e552;_0x5143b5[_0x51ef73('0x2fa')]({'controller':'CreateOrEditFreshdeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x16ca81,'parent':angular[_0x51ef73('0x16b1')](_0x214274['body']),'targetEvent':_0x1553ad,'clickOutsideToClose':!![],'locals':{'type':_0x51ef73('0x248f'),'item':_0x1709ff,'items':_0x721f81['subjects'],'configuration':_0x721f81[_0x51ef73('0x2123')],'account':_0x721f81[_0x51ef73('0xc1')],'license':null,'setting':null,'crudPermissions':_0x721f81[_0x51ef73('0xe28')]}});}function _0x442594(_0x47479a){const _0x111de6=_0x41e552;_0xce09d9['intFreshdeskField']['delete']({'id':_0x47479a['id']})['$promise'][_0x111de6('0x2788')](function(){const _0x325015=_0x111de6;_0x283545()[_0x325015('0x1a90')](_0x721f81[_0x325015('0x348')],{'id':_0x47479a['id']}),_0x46a0ba['success']({'title':_0x325015('0x306'),'msg':_0x325015('0xb6c')});})[_0x111de6('0x1cb5')](function(_0x1cd6a7){const _0x116560=_0x111de6;_0x46a0ba[_0x116560('0x5e8')]({'title':_0x1cd6a7['status']?_0x116560('0x15d1')+_0x1cd6a7[_0x116560('0x1b51')]+_0x116560('0x1b0b')+_0x1cd6a7[_0x116560('0x22ce')]:_0x116560('0x2803'),'msg':_0x1cd6a7[_0x116560('0x11fc')]?JSON[_0x116560('0x1be0')](_0x1cd6a7[_0x116560('0x11fc')]):_0x1cd6a7[_0x116560('0x17df')]()});});}function _0x5f453e(_0x18a7cc,_0x3d9eea){const _0x5d8a3f=_0x41e552,_0x163463=_0x5143b5[_0x5d8a3f('0x112e')]()[_0x5d8a3f('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent']('Subject'+_0x5d8a3f('0x27c7'))[_0x5d8a3f('0x10bc')]('delete\x20subject')[_0x5d8a3f('0x24d0')](_0x18a7cc)['ok']('OK')[_0x5d8a3f('0x1801')](_0x5d8a3f('0x1d8d'));_0x5143b5[_0x5d8a3f('0x2fa')](_0x163463)[_0x5d8a3f('0x2788')](function(){_0x442594(_0x3d9eea);},function(){const _0xb8dbae=_0x5d8a3f;console[_0xb8dbae('0x10df')]('CANCEL');});}function _0x2dea79(_0x1e29b3){const _0x59a279=_0x41e552,_0x340b25=_0x5143b5['confirm']()['title'](_0x59a279('0xa11'))['htmlContent'](''+_0x721f81[_0x59a279('0x2012')][_0x59a279('0x2566')]+_0x59a279('0xbd')+_0x59a279('0x27c7'))[_0x59a279('0x10bc')]('delete\x20subjects')['targetEvent'](_0x1e29b3)['ok']('OK')[_0x59a279('0x1801')](_0x59a279('0x1d8d'));_0x5143b5[_0x59a279('0x2fa')](_0x340b25)['then'](function(){const _0x24f6c9=_0x59a279;_0x721f81['selectedSubjects'][_0x24f6c9('0x1534')](function(_0x1b16b6){_0x442594(_0x1b16b6);}),_0x721f81[_0x24f6c9('0x2012')]=[];});}_0x721f81[_0x41e552('0x58e')]=[],_0x721f81[_0x41e552('0x820')]=_0x3c45b9,_0x721f81[_0x41e552('0x16ad')]=_0x2b40b6,_0x721f81[_0x41e552('0x16b5')]=_0x3b9963;function _0x3c45b9(_0x139522,_0xe00a2f){const _0xece743=_0x41e552;_0x5143b5[_0xece743('0x2fa')]({'controller':_0xece743('0x6e3'),'controllerAs':'vm','templateUrl':_0x16ca81,'parent':angular[_0xece743('0x16b1')](_0x214274[_0xece743('0x945')]),'targetEvent':_0x139522,'clickOutsideToClose':!![],'locals':{'type':_0xece743('0x27b9'),'item':_0xe00a2f,'items':_0x721f81[_0xece743('0x1942')],'configuration':_0x721f81['freshdeskConfiguration'],'account':_0x721f81[_0xece743('0xc1')],'license':null,'setting':null,'crudPermissions':_0x721f81[_0xece743('0xe28')]}});}function _0xc11be3(_0x590995){const _0x36edaa=_0x41e552;_0xce09d9['intFreshdeskField'][_0x36edaa('0x17c4')]({'id':_0x590995['id']})[_0x36edaa('0x1714')]['then'](function(){const _0x25bc02=_0x36edaa;_0x283545()[_0x25bc02('0x1a90')](_0x721f81[_0x25bc02('0x1942')],{'id':_0x590995['id']}),_0x46a0ba[_0x25bc02('0x173b')]({'title':_0x25bc02('0x2598'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x36edaa('0x1cb5')](function(_0x304cb5){const _0x57aebb=_0x36edaa;_0x46a0ba[_0x57aebb('0x5e8')]({'title':_0x304cb5[_0x57aebb('0x1b51')]?_0x57aebb('0x15d1')+_0x304cb5[_0x57aebb('0x1b51')]+_0x57aebb('0x1b0b')+_0x304cb5[_0x57aebb('0x22ce')]:_0x57aebb('0x2803'),'msg':_0x304cb5[_0x57aebb('0x11fc')]?JSON[_0x57aebb('0x1be0')](_0x304cb5[_0x57aebb('0x11fc')]):_0x304cb5[_0x57aebb('0x17df')]()});});}function _0x2b40b6(_0x15bca6,_0x121a81){const _0x5aaccd=_0x41e552,_0x4a85ac=_0x5143b5[_0x5aaccd('0x112e')]()[_0x5aaccd('0x14e4')](_0x5aaccd('0xc33'))[_0x5aaccd('0x93e')](_0x5aaccd('0x27b')+_0x5aaccd('0x27c7'))['ariaLabel']('delete\x20description')['targetEvent'](_0x15bca6)['ok']('OK')[_0x5aaccd('0x1801')]('CANCEL');_0x5143b5[_0x5aaccd('0x2fa')](_0x4a85ac)[_0x5aaccd('0x2788')](function(){_0xc11be3(_0x121a81);},function(){const _0x2b627b=_0x5aaccd;console[_0x2b627b('0x10df')](_0x2b627b('0x1d8d'));});}function _0x3b9963(_0x67e4b4){const _0x2e0c4b=_0x41e552,_0x253890=_0x5143b5[_0x2e0c4b('0x112e')]()['title'](_0x2e0c4b('0x1476'))['htmlContent'](_0x2e0c4b('0x1670')+_0x721f81[_0x2e0c4b('0x58e')][_0x2e0c4b('0x2566')]+_0x2e0c4b('0xbd')+_0x2e0c4b('0x27c7'))[_0x2e0c4b('0x10bc')](_0x2e0c4b('0x1e33'))[_0x2e0c4b('0x24d0')](_0x67e4b4)['ok']('OK')['cancel']('CANCEL');_0x5143b5[_0x2e0c4b('0x2fa')](_0x253890)[_0x2e0c4b('0x2788')](function(){const _0x53301d=_0x2e0c4b;_0x721f81[_0x53301d('0x58e')][_0x53301d('0x1534')](function(_0x165fd0){_0xc11be3(_0x165fd0);}),_0x721f81[_0x53301d('0x58e')]=[];});}_0x721f81['selectedFields']=[],_0x721f81[_0x41e552('0x17d4')]=_0x5cc534,_0x721f81['deleteFieldConfirm']=_0x6f68c4,_0x721f81['deleteSelectedFields']=_0x7c93d;function _0x5cc534(_0x2824aa,_0xf5d490){const _0x5718eb=_0x41e552;_0x5143b5[_0x5718eb('0x2fa')]({'controller':_0x5718eb('0x6e3'),'controllerAs':'vm','templateUrl':_0x16ca81,'parent':angular[_0x5718eb('0x16b1')](_0x214274['body']),'targetEvent':_0x2824aa,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0xf5d490,'items':_0x721f81[_0x5718eb('0x1578')],'configuration':_0x721f81[_0x5718eb('0x2123')],'account':_0x721f81[_0x5718eb('0xc1')],'license':null,'setting':null,'crudPermissions':_0x721f81[_0x5718eb('0xe28')]}});}function _0x22e526(_0x4e88bc){const _0x516f38=_0x41e552;_0xce09d9['intFreshdeskField'][_0x516f38('0x17c4')]({'id':_0x4e88bc['id']})[_0x516f38('0x1714')]['then'](function(){const _0x5be553=_0x516f38;_0x283545()[_0x5be553('0x1a90')](_0x721f81['fields'],{'id':_0x4e88bc['id']}),_0x46a0ba[_0x5be553('0x173b')]({'title':_0x5be553('0xb76'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x516f38('0x1cb5')](function(_0x41e330){const _0x528b10=_0x516f38;_0x46a0ba[_0x528b10('0x5e8')]({'title':_0x41e330[_0x528b10('0x1b51')]?_0x528b10('0x15d1')+_0x41e330[_0x528b10('0x1b51')]+_0x528b10('0x1b0b')+_0x41e330[_0x528b10('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x41e330[_0x528b10('0x11fc')]?JSON[_0x528b10('0x1be0')](_0x41e330[_0x528b10('0x11fc')]):_0x41e330[_0x528b10('0x17df')]()});});}function _0x6f68c4(_0x340c33,_0x5d22f3){const _0x1861f9=_0x41e552,_0x5e3ebc=_0x5143b5[_0x1861f9('0x112e')]()[_0x1861f9('0x14e4')](_0x1861f9('0x21d'))[_0x1861f9('0x93e')](_0x1861f9('0x1151')+'\x20will\x20be\x20deleted.')[_0x1861f9('0x10bc')](_0x1861f9('0xde7'))[_0x1861f9('0x24d0')](_0x340c33)['ok']('OK')[_0x1861f9('0x1801')]('CANCEL');_0x5143b5[_0x1861f9('0x2fa')](_0x5e3ebc)[_0x1861f9('0x2788')](function(){_0x22e526(_0x5d22f3);},function(){const _0x31f11d=_0x1861f9;console['log'](_0x31f11d('0x1d8d'));});}function _0x7c93d(_0x1061ad){const _0x126e38=_0x41e552,_0x15957a=_0x5143b5[_0x126e38('0x112e')]()[_0x126e38('0x14e4')](_0x126e38('0x7'))[_0x126e38('0x93e')](_0x126e38('0x1670')+_0x721f81['selectedFields']['length']+_0x126e38('0xbd')+_0x126e38('0x27c7'))['ariaLabel'](_0x126e38('0x736'))[_0x126e38('0x24d0')](_0x1061ad)['ok']('OK')['cancel'](_0x126e38('0x1d8d'));_0x5143b5['show'](_0x15957a)[_0x126e38('0x2788')](function(){const _0x4210d7=_0x126e38;_0x721f81[_0x4210d7('0xcc9')][_0x4210d7('0x1534')](function(_0x39d051){_0x22e526(_0x39d051);}),_0x721f81[_0x4210d7('0xcc9')]=[];});}}const _0x2742ab=_0x3a374b;_0x38a923['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1b77'),_0x34e79e('0x2123'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting','crudPermissions'];function _0x38a923(_0x33a89d,_0x13d600,_0x25c74e,_0x9aba09,_0x28d86f,_0x411780,_0x239349,_0x142f22,_0x3fd0f5,_0x210260,_0x4fc8d6,_0x363e04,_0x13aacc,_0xe7b34){const _0x2fbbd9=_0x34e79e,_0x1bb0e3=this;_0x1bb0e3[_0x2fbbd9('0x9cb')]=_0x4fc8d6[_0x2fbbd9('0x24cc')](),_0x1bb0e3[_0x2fbbd9('0x25be')]=[],_0x1bb0e3[_0x2fbbd9('0x1af0')]=_0x13aacc,_0x1bb0e3[_0x2fbbd9('0x130d')]=_0x363e04,_0x1bb0e3['crudPermissions']=_0xe7b34,_0x1bb0e3['hasModulePermissions']={},_0x1bb0e3[_0x2fbbd9('0x18ad')]=_0x1bb0e3[_0x2fbbd9('0x1af0')]&&_0x1bb0e3[_0x2fbbd9('0x1af0')][_0x2fbbd9('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1bb0e3[_0x2fbbd9('0x14e4')]=_0x2fbbd9('0xc0a'),_0x1bb0e3[_0x2fbbd9('0x2123')]=angular['copy'](_0x3fd0f5),_0x1bb0e3[_0x2fbbd9('0x1b77')]=_0x142f22,_0x1bb0e3[_0x2fbbd9('0xb5f')]=![];!_0x1bb0e3[_0x2fbbd9('0x2123')]&&(_0x1bb0e3['freshdeskConfiguration']={'channel':_0x2fbbd9('0x1f60'),'type':_0x2fbbd9('0x2e4')},_0x1bb0e3[_0x2fbbd9('0x14e4')]=_0x2fbbd9('0x172b'),_0x1bb0e3[_0x2fbbd9('0xb5f')]=!![]);_0x1bb0e3[_0x2fbbd9('0x1b31')]=_0x32f77c,_0x1bb0e3[_0x2fbbd9('0x1b9a')]=_0xb90388,_0x1bb0e3[_0x2fbbd9('0x1095')]=_0xdf1ddc,_0x1bb0e3['getDateFromString']=_0x492179,_0x1bb0e3[_0x2fbbd9('0xca7')]=_0x155e65;function _0x32f77c(){const _0x4a090f=_0x2fbbd9;_0x1bb0e3['errors']=[],_0x210260[_0x4a090f('0x207')][_0x4a090f('0x2757')]({'id':_0x13d600[_0x4a090f('0x4b9')]['id']},_0x1bb0e3[_0x4a090f('0x2123')])[_0x4a090f('0x1714')]['then'](function(_0x595d64){const _0x539afb=_0x4a090f;_0x1bb0e3[_0x539afb('0x1b77')]['unshift'](_0x595d64[_0x539afb('0x1cbf')]()),_0x239349['success']({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x1bb0e3[_0x539afb('0x2123')][_0x539afb('0x1a8d')]?_0x1bb0e3['freshdeskConfiguration']['name']+_0x539afb('0x1e4a'):''}),_0x155e65(_0x595d64);})[_0x4a090f('0x1cb5')](function(_0x36ee2c){const _0x3389d5=_0x4a090f;if(_0x36ee2c[_0x3389d5('0x11fc')]&&_0x36ee2c[_0x3389d5('0x11fc')][_0x3389d5('0x25be')]&&_0x36ee2c['data'][_0x3389d5('0x25be')][_0x3389d5('0x2566')]){_0x1bb0e3[_0x3389d5('0x25be')]=_0x36ee2c[_0x3389d5('0x11fc')][_0x3389d5('0x25be')]||[{'message':_0x36ee2c[_0x3389d5('0x17df')](),'type':'api.intFreshdeskConfiguration.save'}];for(let _0x54cfe0=0x0;_0x54cfe0<_0x36ee2c['data'][_0x3389d5('0x25be')]['length'];_0x54cfe0+=0x1){_0x239349[_0x3389d5('0x5e8')]({'title':_0x36ee2c[_0x3389d5('0x11fc')][_0x3389d5('0x25be')][_0x54cfe0][_0x3389d5('0x1d7')],'msg':_0x36ee2c[_0x3389d5('0x11fc')][_0x3389d5('0x25be')][_0x54cfe0]['message']});}}else _0x239349['error']({'title':_0x36ee2c[_0x3389d5('0x1b51')]?_0x3389d5('0x15d1')+_0x36ee2c['status']+_0x3389d5('0x1b0b')+_0x36ee2c[_0x3389d5('0x22ce')]:_0x3389d5('0xbb5'),'msg':_0x36ee2c[_0x3389d5('0x11fc')]?JSON['stringify'](_0x36ee2c[_0x3389d5('0x11fc')][_0x3389d5('0x15e2')]):_0x36ee2c[_0x3389d5('0x17df')]()});});}function _0xb90388(){const _0x4daf56=_0x2fbbd9;_0x1bb0e3[_0x4daf56('0x25be')]=[],_0x210260[_0x4daf56('0x42d')][_0x4daf56('0x2740')]({'id':_0x1bb0e3[_0x4daf56('0x2123')]['id']},_0x1bb0e3[_0x4daf56('0x2123')])[_0x4daf56('0x1714')][_0x4daf56('0x2788')](function(_0x5ebcf0){const _0x3ec858=_0x4daf56,_0x27d2a9=_0x283545()[_0x3ec858('0x20e8')](_0x1bb0e3['configurations'],{'id':_0x5ebcf0['id']});_0x27d2a9&&_0x283545()[_0x3ec858('0x2503')](_0x27d2a9,_0x283545()['pick'](_0x5ebcf0[_0x3ec858('0x1cbf')](),_0x283545()[_0x3ec858('0x2163')](_0x27d2a9))),_0x239349[_0x3ec858('0x173b')]({'title':_0x3ec858('0x1ed2'),'msg':_0x1bb0e3['freshdeskConfiguration']['name']?_0x1bb0e3['freshdeskConfiguration'][_0x3ec858('0x1a8d')]+_0x3ec858('0x24cf'):''}),_0x155e65(_0x5ebcf0);})[_0x4daf56('0x1cb5')](function(_0x410b99){const _0x4eb5e3=_0x4daf56;if(_0x410b99[_0x4eb5e3('0x11fc')]&&_0x410b99[_0x4eb5e3('0x11fc')][_0x4eb5e3('0x25be')]&&_0x410b99[_0x4eb5e3('0x11fc')][_0x4eb5e3('0x25be')]['length']){_0x1bb0e3[_0x4eb5e3('0x25be')]=_0x410b99['data'][_0x4eb5e3('0x25be')]||[{'message':_0x410b99[_0x4eb5e3('0x17df')](),'type':_0x4eb5e3('0x2389')}];for(let _0x3a6342=0x0;_0x3a6342<_0x410b99['data']['errors'][_0x4eb5e3('0x2566')];_0x3a6342++){_0x239349[_0x4eb5e3('0x5e8')]({'title':_0x410b99['data'][_0x4eb5e3('0x25be')][_0x3a6342][_0x4eb5e3('0x1d7')],'msg':_0x410b99['data'][_0x4eb5e3('0x25be')][_0x3a6342][_0x4eb5e3('0x15e2')]});}}else _0x239349[_0x4eb5e3('0x5e8')]({'title':_0x410b99[_0x4eb5e3('0x1b51')]?_0x4eb5e3('0x15d1')+_0x410b99['status']+'\x20-\x20'+_0x410b99['statusText']:'api.intFreshdeskConfiguration.update','msg':_0x410b99[_0x4eb5e3('0x11fc')]?JSON[_0x4eb5e3('0x1be0')](_0x410b99[_0x4eb5e3('0x11fc')][_0x4eb5e3('0x15e2')]):_0x410b99[_0x4eb5e3('0x17df')]()});});}function _0xdf1ddc(_0x358f87){const _0x5ddada=_0x2fbbd9;_0x1bb0e3['errors']=[];const _0x486ad2=_0x9aba09[_0x5ddada('0x112e')]()[_0x5ddada('0x14e4')]('Are\x20you\x20sure?')[_0x5ddada('0x1c98')](_0x5ddada('0x2607'))['ariaLabel'](_0x5ddada('0x3cf'))['ok'](_0x5ddada('0x2786'))[_0x5ddada('0x1801')](_0x5ddada('0x1481'))[_0x5ddada('0x24d0')](_0x358f87);_0x9aba09['show'](_0x486ad2)['then'](function(){const _0x5e9d49=_0x5ddada;_0x210260[_0x5e9d49('0x42d')][_0x5e9d49('0x17c4')]({'id':_0x1bb0e3[_0x5e9d49('0x2123')]['id']})[_0x5e9d49('0x1714')][_0x5e9d49('0x2788')](function(){const _0xa3d0fe=_0x5e9d49;_0x283545()[_0xa3d0fe('0x1a90')](_0x1bb0e3['configurations'],{'id':_0x1bb0e3[_0xa3d0fe('0x2123')]['id']}),_0x239349['success']({'title':_0xa3d0fe('0x2521'),'msg':(_0x1bb0e3[_0xa3d0fe('0x2123')][_0xa3d0fe('0x1a8d')]||_0xa3d0fe('0x2123'))+_0xa3d0fe('0x14d4')}),_0x155e65(_0x1bb0e3[_0xa3d0fe('0x2123')]);})['catch'](function(_0x5556d0){const _0x47cbf0=_0x5e9d49;if(_0x5556d0[_0x47cbf0('0x11fc')]&&_0x5556d0['data'][_0x47cbf0('0x25be')]&&_0x5556d0['data']['errors'][_0x47cbf0('0x2566')]){_0x1bb0e3[_0x47cbf0('0x25be')]=_0x5556d0[_0x47cbf0('0x11fc')][_0x47cbf0('0x25be')]||[{'message':_0x5556d0['toString'](),'type':_0x47cbf0('0x1c14')}];for(let _0x138d43=0x0;_0x138d43<_0x5556d0[_0x47cbf0('0x11fc')][_0x47cbf0('0x25be')]['length'];_0x138d43++){_0x239349[_0x47cbf0('0x5e8')]({'title':_0x5556d0[_0x47cbf0('0x11fc')][_0x47cbf0('0x25be')][_0x138d43]['type'],'msg':_0x5556d0[_0x47cbf0('0x11fc')][_0x47cbf0('0x25be')][_0x138d43][_0x47cbf0('0x15e2')]});}}else _0x239349[_0x47cbf0('0x5e8')]({'title':_0x5556d0[_0x47cbf0('0x1b51')]?_0x47cbf0('0x15d1')+_0x5556d0[_0x47cbf0('0x1b51')]+_0x47cbf0('0x1b0b')+_0x5556d0[_0x47cbf0('0x22ce')]:'api.intFreshdeskConfiguration.delete','msg':_0x5556d0[_0x47cbf0('0x11fc')]?JSON['stringify'](_0x5556d0['data']['message']):_0x5556d0['message']||_0x5556d0['toString']()});});},function(){});}function _0x492179(_0x3bf3a){return _0x3bf3a===null?undefined:new Date(_0x3bf3a);}function _0x155e65(_0x493248){const _0x3d33bd=_0x2fbbd9;_0x9aba09[_0x3d33bd('0x19d')](_0x493248);}}const _0x506b8c=_0x38a923;_0x2b5a06[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),'items','item',_0x34e79e('0x82f'),_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0x2b5a06(_0x56e7f1,_0x121d62,_0x46612c,_0x510909,_0x19cd24,_0x1c7512,_0x124a7d,_0x2a3800,_0x3de721,_0x268662,_0x3303b0,_0x42ee08,_0x43caea){const _0x37a273=_0x34e79e,_0x24260d=this;_0x24260d['currentUser']=_0x42ee08['getCurrentUser'](),_0x24260d[_0x37a273('0x25be')]=[],_0x24260d[_0x37a273('0x14e4')]=_0x37a273('0x1df9')+_0x283545()[_0x37a273('0xc87')](_0x268662),_0x24260d[_0x37a273('0xd3c')]=angular[_0x37a273('0x2669')](_0x2a3800),_0x24260d['items']=_0x124a7d,_0x24260d[_0x37a273('0x1d7')]=_0x268662,_0x24260d['crudPermissions']=_0x43caea,_0x24260d[_0x37a273('0x63a')]=![];!_0x24260d[_0x37a273('0xd3c')]&&(_0x24260d[_0x37a273('0xd3c')]={'type':_0x37a273('0x2209')},_0x24260d['item'][_0x283545()[_0x37a273('0x1df5')](_0x268662)+'Id']=_0x1c7512['id'],_0x24260d[_0x37a273('0x14e4')]='INTEGRATIONS.NEW_'+_0x283545()[_0x37a273('0xc87')](_0x268662),_0x24260d[_0x37a273('0x63a')]=!![]);_0x24260d[_0x37a273('0x1586')]=_0x3f2248,_0x24260d[_0x37a273('0x953')]=_0x2152b3,_0x24260d[_0x37a273('0x1165')]=_0x5baec4,_0x24260d[_0x37a273('0xb4f')]=_0x5a46f3,_0x24260d[_0x37a273('0xca7')]=_0x2f8897,_0x3303b0[_0x37a273('0xa72')][_0x37a273('0x1335')]({'nolimit':!![]})[_0x37a273('0x1714')][_0x37a273('0x2788')](function(_0x109f60){const _0x2850c7=_0x37a273;return _0x24260d[_0x2850c7('0xf76')]=_0x109f60['rows']?_0x109f60[_0x2850c7('0x25df')]:[],_0x3303b0[_0x2850c7('0x15b7')][_0x2850c7('0x15f8')]()[_0x2850c7('0x1714')];})[_0x37a273('0x2788')](function(_0x453d02){const _0x3b916e=_0x37a273;return _0x24260d[_0x3b916e('0x1cac')]=_0x283545()[_0x3b916e('0xa9f')](_0x283545()['keys'](_0x453d02),['$promise',_0x3b916e('0x187a'),'createdAt',_0x3b916e('0x5f'),_0x3b916e('0x900')]),_0x24260d[_0x3b916e('0x1cac')][_0x3b916e('0x13e3')](_0x3b916e('0x12da')),_0x3303b0[_0x3b916e('0xac')][_0x3b916e('0x15f8')]()[_0x3b916e('0x1714')];})['then'](function(_0x2b1e43){const _0xeac0b7=_0x37a273;_0x24260d[_0xeac0b7('0x226b')]=_0x283545()['difference'](_0x283545()[_0xeac0b7('0x2163')](_0x2b1e43),[_0xeac0b7('0x1714'),'$resolved','createdAt',_0xeac0b7('0x5f'),_0xeac0b7('0x900')]),_0x24260d[_0xeac0b7('0x226b')]['push'](_0xeac0b7('0x12da'));})['catch'](function(_0x5e8174){const _0x1ea499=_0x37a273;_0x19cd24[_0x1ea499('0x5e8')]({'title':_0x5e8174[_0x1ea499('0x1b51')]?_0x1ea499('0x15d1')+_0x5e8174[_0x1ea499('0x1b51')]+_0x1ea499('0x1b0b')+_0x5e8174['statusText']:'SYSTEM:GETVARIABLES','msg':_0x5e8174[_0x1ea499('0x11fc')]?JSON[_0x1ea499('0x1be0')](_0x5e8174['data']):_0x5e8174[_0x1ea499('0x17df')]()});}),_0x3303b0['intFreshdeskAccount']['getFields']({'id':_0x3de721['id'],'ticketType':_0x1c7512[_0x37a273('0x3d9')]?_0x1c7512[_0x37a273('0x3d9')]:undefined})[_0x37a273('0x1714')][_0x37a273('0x2788')](function(_0x4aacf4){const _0x48df6f=_0x37a273;_0x24260d[_0x48df6f('0x551')]=!![],_0x24260d[_0x48df6f('0x1578')]=_0x4aacf4[_0x48df6f('0x25df')]?_0x4aacf4['rows']:[],_0x24260d[_0x48df6f('0xd3c')][_0x48df6f('0x1ca9')]&&(_0x24260d[_0x48df6f('0x1ee9')]=_0x283545()[_0x48df6f('0x20e8')](_0x24260d[_0x48df6f('0x1578')],{'id':_0x24260d[_0x48df6f('0xd3c')][_0x48df6f('0x1ca9')]}));})[_0x37a273('0x1cb5')](function(_0x58b6f5){const _0x2d3db1=_0x37a273;_0x24260d[_0x2d3db1('0x551')]=![],console[_0x2d3db1('0x5e8')](_0x58b6f5);});function _0x3f2248(){const _0x38ec9d=_0x37a273;_0x24260d[_0x38ec9d('0x25be')]=[],_0x24260d[_0x38ec9d('0x1ee9')]&&(_0x24260d[_0x38ec9d('0xd3c')][_0x38ec9d('0x1ca9')]=_0x24260d['customField']['id'],_0x24260d['item'][_0x38ec9d('0x98')]=_0x24260d['customField']['name'],_0x24260d['item'][_0x38ec9d('0x1ee9')]=_0x24260d[_0x38ec9d('0x1ee9')][_0x38ec9d('0x1d56')]),_0x3303b0[_0x38ec9d('0x35c')][_0x38ec9d('0xbd0')](_0x24260d[_0x38ec9d('0xd3c')])[_0x38ec9d('0x1714')]['then'](function(_0x3921c2){const _0x5d79e1=_0x38ec9d;_0x24260d[_0x5d79e1('0x117b')][_0x5d79e1('0xc51')](_0x3921c2),_0x19cd24['success']({'title':_0x283545()[_0x5d79e1('0x1df5')](_0x268662)+'\x20properly\x20created','msg':_0x283545()[_0x5d79e1('0x1df5')](_0x268662)+_0x5d79e1('0x1e4a')}),_0x2f8897();})[_0x38ec9d('0x1cb5')](function(_0x1fc33b){const _0x32d95c=_0x38ec9d;console[_0x32d95c('0x5e8')](_0x1fc33b),_0x24260d[_0x32d95c('0x25be')]=_0x1fc33b[_0x32d95c('0x11fc')][_0x32d95c('0x25be')]||[{'message':_0x1fc33b['toString'](),'type':_0x32d95c('0x256f')}];});}function _0x2152b3(){const _0x1ed21e=_0x37a273;_0x24260d[_0x1ed21e('0x25be')]=[],_0x24260d[_0x1ed21e('0x1ee9')]&&(_0x24260d[_0x1ed21e('0xd3c')][_0x1ed21e('0x1ca9')]=_0x24260d['customField']['id'],_0x24260d[_0x1ed21e('0xd3c')][_0x1ed21e('0x98')]=_0x24260d[_0x1ed21e('0x1ee9')]['name'],_0x24260d[_0x1ed21e('0xd3c')][_0x1ed21e('0x1ee9')]=_0x24260d[_0x1ed21e('0x1ee9')]['custom']),_0x3303b0['intFreshdeskField'][_0x1ed21e('0x2740')]({'id':_0x24260d[_0x1ed21e('0xd3c')]['id']},_0x24260d[_0x1ed21e('0xd3c')])[_0x1ed21e('0x1714')][_0x1ed21e('0x2788')](function(_0x4091ad){const _0x4660c4=_0x1ed21e,_0x588cbd=_0x283545()[_0x4660c4('0x20e8')](_0x24260d[_0x4660c4('0x117b')],{'id':_0x4091ad['id']});_0x588cbd&&_0x283545()[_0x4660c4('0x2503')](_0x588cbd,_0x4091ad),_0x19cd24[_0x4660c4('0x173b')]({'title':_0x283545()[_0x4660c4('0x1df5')](_0x268662)+'\x20properly\x20saved!','msg':_0x283545()[_0x4660c4('0x1df5')](_0x268662)+_0x4660c4('0x24cf')}),_0x2f8897();})[_0x1ed21e('0x1cb5')](function(_0x218e3e){const _0xdc5d20=_0x1ed21e;console[_0xdc5d20('0x5e8')](_0x218e3e),_0x24260d[_0xdc5d20('0x25be')]=_0x218e3e['data'][_0xdc5d20('0x25be')]||[{'message':_0x218e3e['toString'](),'type':_0xdc5d20('0xe95')}];});}function _0x5baec4(_0x36c76c){const _0x4634cb=_0x37a273;_0x24260d[_0x4634cb('0x25be')]=[];const _0x27eb28=_0x510909[_0x4634cb('0x112e')]()[_0x4634cb('0x14e4')](_0x4634cb('0x458'))['content'](_0x4634cb('0x1b10')+_0x268662+_0x4634cb('0x27c7'))[_0x4634cb('0x10bc')](_0x4634cb('0x177f')+_0x283545()[_0x4634cb('0x1df5')](_0x268662))['ok'](_0x4634cb('0x2786'))[_0x4634cb('0x1801')](_0x4634cb('0x1481'))[_0x4634cb('0x24d0')](_0x36c76c);_0x510909[_0x4634cb('0x2fa')](_0x27eb28)['then'](function(){const _0x1c364b=_0x4634cb;_0x3303b0[_0x1c364b('0x35c')][_0x1c364b('0x17c4')]({'id':_0x24260d['item']['id']})[_0x1c364b('0x1714')][_0x1c364b('0x2788')](function(){const _0xdf30d8=_0x1c364b;_0x283545()[_0xdf30d8('0x1a90')](_0x24260d[_0xdf30d8('0x117b')],{'id':_0x24260d[_0xdf30d8('0xd3c')]['id']}),_0x19cd24['success']({'title':_0x283545()[_0xdf30d8('0x1df5')](_0x268662)+_0xdf30d8('0x2542'),'msg':_0x283545()[_0xdf30d8('0x1df5')](_0x268662)+_0xdf30d8('0x14d4')}),_0x2f8897();})[_0x1c364b('0x1cb5')](function(_0x510968){const _0x64ab5d=_0x1c364b;console[_0x64ab5d('0x5e8')](_0x510968),_0x24260d[_0x64ab5d('0x25be')]=_0x510968[_0x64ab5d('0x11fc')][_0x64ab5d('0x25be')]||[{'message':_0x510968[_0x64ab5d('0x17df')](),'type':_0x64ab5d('0x1276')}];});},function(){});}function _0x5a46f3(){const _0x16d1a2=_0x37a273;return _0x24260d[_0x16d1a2('0xd3c')][_0x16d1a2('0x1889')]!==undefined?_0x24260d[_0x16d1a2('0xd3c')][_0x16d1a2('0x1889')]:'Please\x20select\x20a\x20variable';}function _0x2f8897(){const _0x5234f3=_0x37a273;_0x510909[_0x5234f3('0x19d')]();}}const _0x4f4e4e=_0x2b5a06;_0x421937['$inject']=['$state','$location','$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'api',_0x34e79e('0xd57'),'Auth',_0x34e79e('0xc1'),_0x34e79e('0xec9')];function _0x421937(_0x173bdb,_0x4dad6b,_0x37f0e3,_0x2eaa34,_0x251cc4,_0x28b5b1,_0x424453,_0x527dfd,_0x1fad32,_0x51e414,_0x44a30e,_0x39b35c){const _0x446ab8=_0x34e79e,_0x32d452=this;_0x32d452[_0x446ab8('0x9cb')]=_0x51e414[_0x446ab8('0x24cc')](),_0x32d452[_0x446ab8('0x130d')]=_0x28b5b1,_0x32d452['setting']=_0x424453,_0x32d452[_0x446ab8('0x18ad')]=_0x32d452['setting'][_0x446ab8('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32d452[_0x446ab8('0xe9')]=_0x4dad6b[_0x446ab8('0x170c')]()+'://'+_0x4dad6b['host'](),_0x32d452[_0x446ab8('0xc1')]=_0x44a30e||_0x173bdb[_0x446ab8('0x4b9')][_0x446ab8('0xc1')]||{},_0x32d452[_0x446ab8('0xec9')]=_0x39b35c&&_0x39b35c[_0x446ab8('0x338')]==0x1?_0x39b35c[_0x446ab8('0x25df')][0x0]:null,_0x32d452['crudPermissions']=_0x51e414[_0x446ab8('0x157e')](_0x32d452[_0x446ab8('0xec9')]?_0x32d452[_0x446ab8('0xec9')][_0x446ab8('0xe28')]:null),_0x32d452[_0x446ab8('0x1193')]={},_0x32d452['selectedTab']=_0x173bdb[_0x446ab8('0x4b9')][_0x446ab8('0x24f6')]||0x0,_0x32d452[_0x446ab8('0x204f')]=_0x1fad32[_0x446ab8('0x2276')],_0x32d452[_0x446ab8('0x5ae')]=_0x5270f7,_0x32d452['saveFreshdeskAccount']=_0x12e74;function _0x5270f7(){const _0x55905a=_0x446ab8;_0x173bdb['go'](_0x55905a('0x584'),{},{'reload':_0x55905a('0x584')});}function _0x12e74(){const _0x183d67=_0x446ab8;_0x527dfd['intFreshdeskAccount']['update']({'id':_0x32d452[_0x183d67('0xc1')]['id']},_0x32d452[_0x183d67('0xc1')])['$promise'][_0x183d67('0x2788')](function(){const _0x302da1=_0x183d67;_0x1fad32[_0x302da1('0x173b')]({'title':_0x302da1('0x1538'),'msg':_0x32d452[_0x302da1('0xc1')][_0x302da1('0x1a8d')]?_0x32d452[_0x302da1('0xc1')]['name']+_0x302da1('0x6f8'):''});})['catch'](function(_0x416f27){const _0x15c87c=_0x183d67;_0x1fad32['error']({'title':_0x416f27[_0x15c87c('0x1b51')]?_0x15c87c('0x15d1')+_0x416f27['status']+_0x15c87c('0x1b0b')+_0x416f27[_0x15c87c('0x22ce')]:'SYSTEM:GETintFreshdeskAccount','msg':_0x416f27[_0x15c87c('0x11fc')]?JSON['stringify'](_0x416f27[_0x15c87c('0x11fc')]):_0x416f27[_0x15c87c('0x17df')]()});});}}const _0x4f3b8e=_0x421937,_0x422381=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html';_0x14eaef[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'freshdeskAccounts','userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x14eaef(_0x61228b,_0x56745e,_0x50b316,_0x59b04a,_0x32c203,_0x540d1e,_0x5e7a82,_0x105d84,_0x9c8102,_0x534c59,_0x3e69eb,_0xe0f35,_0x5bc2ba,_0x11adba,_0x1ebc95,_0x575ef3,_0x143a5b){const _0x2cc7a4=_0x34e79e,_0x406af8=this;_0x406af8[_0x2cc7a4('0x130d')]=_0x575ef3,_0x406af8[_0x2cc7a4('0x1af0')]=_0x143a5b,_0x406af8[_0x2cc7a4('0x9cb')]=_0x1ebc95[_0x2cc7a4('0x24cc')](),_0x406af8[_0x2cc7a4('0x738')]=_0x9c8102||{'count':0x0,'rows':[]},_0x406af8[_0x2cc7a4('0x63c')]=_0x534c59,_0x406af8[_0x2cc7a4('0xec9')]=_0x3e69eb&&_0x3e69eb[_0x2cc7a4('0x338')]==0x1?_0x3e69eb[_0x2cc7a4('0x25df')][0x0]:null,_0x406af8[_0x2cc7a4('0xe28')]=_0x1ebc95[_0x2cc7a4('0x157e')](_0x406af8[_0x2cc7a4('0xec9')]?_0x406af8[_0x2cc7a4('0xec9')]['crudPermissions']:null),_0x406af8[_0x2cc7a4('0x26a9')]='freshdeskAccounts',_0x406af8[_0x2cc7a4('0x2278')]='',_0x406af8[_0x2cc7a4('0x25e2')]=null,_0x406af8[_0x2cc7a4('0x4cb')]=[],_0x406af8[_0x2cc7a4('0x135a')]={'fields':_0x2cc7a4('0x143c'),'limit':0xa,'page':0x1},_0x406af8[_0x2cc7a4('0x1f7e')]=_0x5ea64d,_0x406af8['testtestintegrationaccount']=_0x2f0e8f,_0x406af8[_0x2cc7a4('0x1e5')]=_0x1d632b,_0x406af8[_0x2cc7a4('0x173b')]=_0x2a6e4a,_0x406af8['getFreshdeskAccounts']=_0x101555,_0x406af8[_0x2cc7a4('0x31c')]=_0x3efd87,_0x406af8[_0x2cc7a4('0x18d3')]=_0x1d4000,_0x406af8[_0x2cc7a4('0xff1')]=_0x8ea5b8,_0x406af8[_0x2cc7a4('0x14b7')]=_0x4975d3,_0x406af8[_0x2cc7a4('0xaae')]=_0x8ce896,_0x406af8['selectAllFreshdeskAccounts']=_0x403905;function _0x5ea64d(_0xfb45e2){const _0x53deff=_0x2cc7a4;_0x50b316['go'](_0x53deff('0x3ff'),{'id':_0xfb45e2['id'],'freshdeskAccount':_0xfb45e2,'crudPermissions':_0x406af8[_0x53deff('0xe28')]});}function _0x2f0e8f(_0x3850c2){const _0x5dcaa9=_0x2cc7a4;return _0xe0f35[_0x5dcaa9('0x207')][_0x5dcaa9('0x24')]({'id':_0x3850c2['id'],'test':!![]})[_0x5dcaa9('0x1714')]['then'](function(){const _0x4025c5=_0x5dcaa9;_0x11adba['success']({'title':'FreshdeskAccount\x20properly\x20tested','msg':_0x4025c5('0x53e')});})[_0x5dcaa9('0x1cb5')](function(_0x5ec2bf){const _0x43d32e=_0x5dcaa9;_0x11adba[_0x43d32e('0x5e8')]({'title':_0x43d32e('0x15a2'),'msg':_0x5ec2bf[_0x43d32e('0x11fc')]?_0x5ec2bf[_0x43d32e('0x11fc')]['message']?_0x5ec2bf[_0x43d32e('0x11fc')]['message']:JSON[_0x43d32e('0x1be0')](_0x5ec2bf[_0x43d32e('0x11fc')]):_0x5ec2bf[_0x43d32e('0x17df')]()});});}function _0x1d632b(_0x39beb9,_0x30db31){const _0x172705=_0x2cc7a4,_0x1b62c0=_0x32c203[_0x172705('0x112e')]()[_0x172705('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x172705('0x114')](_0x172705('0xc1'))+'?')[_0x172705('0x93e')](_0x172705('0x1670')+(_0x39beb9['name']||'freshdeskAccount')+_0x172705('0x229e')+_0x172705('0x27c7'))['ariaLabel'](_0x172705('0x251a'))[_0x172705('0x24d0')](_0x30db31)['ok']('OK')[_0x172705('0x1801')]('CANCEL');_0x32c203['show'](_0x1b62c0)[_0x172705('0x2788')](function(){_0x1d4000(_0x39beb9);},function(){const _0x555c07=_0x172705;console['log'](_0x555c07('0x1d8d'));});}let _0x43e543=!![],_0x1f7d78=0x1;_0x61228b[_0x2cc7a4('0x1662')](_0x2cc7a4('0x1569'),function(_0x2dea81,_0x28a9a){const _0xcda265=_0x2cc7a4;_0x43e543?_0x5e7a82(function(){_0x43e543=![];}):(!_0x28a9a&&(_0x1f7d78=_0x406af8[_0xcda265('0x135a')][_0xcda265('0x23f5')]),_0x2dea81!==_0x28a9a&&(_0x406af8[_0xcda265('0x135a')]['page']=0x1),!_0x2dea81&&(_0x406af8[_0xcda265('0x135a')][_0xcda265('0x23f5')]=_0x1f7d78),_0x406af8[_0xcda265('0x12ec')]());});function _0x2a6e4a(_0x27ab34){const _0x2a8140=_0x2cc7a4;_0x406af8[_0x2a8140('0x738')]=_0x27ab34||{'count':0x0,'rows':[]};}function _0x101555(){const _0x5712d0=_0x2cc7a4;_0x406af8[_0x5712d0('0x135a')][_0x5712d0('0x19e')]=(_0x406af8[_0x5712d0('0x135a')][_0x5712d0('0x23f5')]-0x1)*_0x406af8[_0x5712d0('0x135a')][_0x5712d0('0x68e')],_0x1ebc95[_0x5712d0('0x1516')](_0x5712d0('0xe23'))?_0x406af8[_0x5712d0('0x1808')]=_0xe0f35[_0x5712d0('0x207')][_0x5712d0('0x1335')](_0x406af8['query'],_0x2a6e4a)['$promise']:(_0x406af8['query']['id']=_0x406af8[_0x5712d0('0x63c')]['id'],_0x406af8[_0x5712d0('0x135a')][_0x5712d0('0xb13')]=_0x5712d0('0x215a'),_0x406af8[_0x5712d0('0x1808')]=_0xe0f35[_0x5712d0('0x63c')]['getResources'](_0x406af8[_0x5712d0('0x135a')],_0x2a6e4a)[_0x5712d0('0x1714')]);}function _0x3efd87(_0x3d68d7,_0x2abd09){const _0x114477=_0x2cc7a4;_0x32c203[_0x114477('0x2fa')]({'controller':'CreateOrEditFreshdeskAccountDialogController','controllerAs':'vm','templateUrl':_0x422381,'parent':angular['element'](_0x540d1e[_0x114477('0x945')]),'targetEvent':_0x3d68d7,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x2abd09,'freshdeskAccounts':_0x406af8[_0x114477('0x738')][_0x114477('0x25df')],'license':_0x406af8[_0x114477('0x130d')],'setting':_0x406af8['setting'],'crudPermissions':_0x406af8[_0x114477('0xe28')]}});}function _0x1d4000(_0x31db19){const _0x20b727=_0x2cc7a4;_0xe0f35[_0x20b727('0x207')][_0x20b727('0x17c4')]({'id':_0x31db19['id']})['$promise'][_0x20b727('0x2788')](function(){const _0x2ecc83=_0x20b727;_0x283545()['remove'](_0x406af8[_0x2ecc83('0x738')]['rows'],{'id':_0x31db19['id']}),_0x406af8['freshdeskAccounts'][_0x2ecc83('0x338')]-=0x1,!_0x406af8[_0x2ecc83('0x738')][_0x2ecc83('0x25df')][_0x2ecc83('0x2566')]&&_0x406af8[_0x2ecc83('0x12ec')](),_0x11adba[_0x2ecc83('0x173b')]({'title':_0x283545()['startCase'](_0x2ecc83('0x42e'))+_0x2ecc83('0x20db'),'msg':_0x31db19[_0x2ecc83('0x1a8d')]?_0x31db19['name']+_0x2ecc83('0x14d4'):''});})['catch'](function(_0x432fa1){const _0xf4b4fa=_0x20b727;if(_0x432fa1[_0xf4b4fa('0x11fc')]&&_0x432fa1['data'][_0xf4b4fa('0x25be')]&&_0x432fa1[_0xf4b4fa('0x11fc')]['errors'][_0xf4b4fa('0x2566')]){_0x406af8[_0xf4b4fa('0x25be')]=_0x432fa1[_0xf4b4fa('0x11fc')][_0xf4b4fa('0x25be')]||[{'message':_0x432fa1['toString'](),'type':'SYSTEM:DELETEintFreshdeskAccount'}];for(let _0x2a9a8d=0x0;_0x2a9a8d<_0x432fa1['data'][_0xf4b4fa('0x25be')][_0xf4b4fa('0x2566')];_0x2a9a8d++){_0x11adba['error']({'title':_0x432fa1[_0xf4b4fa('0x11fc')][_0xf4b4fa('0x25be')][_0x2a9a8d]['type'],'msg':_0x432fa1[_0xf4b4fa('0x11fc')][_0xf4b4fa('0x25be')][_0x2a9a8d][_0xf4b4fa('0x15e2')]});}}else _0x11adba[_0xf4b4fa('0x5e8')]({'title':_0x432fa1[_0xf4b4fa('0x1b51')]?'API:'+_0x432fa1['status']+'\x20-\x20'+_0x432fa1[_0xf4b4fa('0x22ce')]:_0xf4b4fa('0x2be'),'msg':_0x432fa1['data']?JSON['stringify'](_0x432fa1[_0xf4b4fa('0x11fc')][_0xf4b4fa('0x15e2')]):_0x432fa1['message']||_0x432fa1['toString']()});});}function _0x8ea5b8(){const _0x35073c=_0x2cc7a4,_0x7de2a=angular[_0x35073c('0x2669')](_0x406af8[_0x35073c('0x4cb')]);return _0x406af8[_0x35073c('0x4cb')]=[],_0x7de2a;}function _0x4975d3(_0x451c04){const _0x5d5957=_0x2cc7a4,_0x48581f=_0x32c203['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?')[_0x5d5957('0x93e')](_0x5d5957('0x1670')+_0x406af8[_0x5d5957('0x4cb')][_0x5d5957('0x2566')]+_0x5d5957('0xbd')+'\x20will\x20be\x20deleted.')[_0x5d5957('0x10bc')](_0x5d5957('0x10d0'))[_0x5d5957('0x24d0')](_0x451c04)['ok']('OK')[_0x5d5957('0x1801')]('CANCEL');_0x32c203[_0x5d5957('0x2fa')](_0x48581f)['then'](function(){const _0x52ead2=_0x5d5957;_0x406af8[_0x52ead2('0x4cb')]['forEach'](function(_0x374c33){_0x1d4000(_0x374c33);}),_0x406af8['selectedFreshdeskAccounts']=[];});}function _0x8ce896(){_0x406af8['selectedFreshdeskAccounts']=[];}function _0x403905(){const _0x4c07b8=_0x2cc7a4;_0x406af8[_0x4c07b8('0x4cb')]=_0x406af8[_0x4c07b8('0x738')][_0x4c07b8('0x25df')];}}const _0x214353=_0x14eaef;_0x4f6947[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty','freshsalesAccounts',_0x34e79e('0x22c0'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x4f6947(_0x1b8fda,_0x544ee7,_0x119c27,_0x1383a0,_0x537de8,_0xd1a7ef,_0x4e8d9c,_0x381176,_0x302afc,_0x1ee205,_0x26aa8f,_0x2e39e1,_0xbbeb04,_0x5d336a){const _0x251796=_0x34e79e,_0x1efe37=this;_0x1efe37[_0x251796('0x9cb')]=_0x26aa8f['getCurrentUser'](),_0x1efe37[_0x251796('0x25be')]=[],_0x1efe37['setting']=_0xbbeb04,_0x1efe37[_0x251796('0x130d')]=_0x2e39e1,_0x1efe37[_0x251796('0xe28')]=_0x5d336a,_0x1efe37[_0x251796('0x1193')]={},_0x1efe37['passwordPattern']=_0x1efe37[_0x251796('0x1af0')]&&_0x1efe37['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1efe37[_0x251796('0x14e4')]='INTEGRATIONS.EDIT_FRESHSALESACCOUNT',_0x1efe37[_0x251796('0x22c0')]=angular[_0x251796('0x2669')](_0x302afc),_0x1efe37[_0x251796('0x11ea')]=_0x381176,_0x1efe37[_0x251796('0xec0')]=![];!_0x1efe37[_0x251796('0x22c0')]&&(_0x1efe37[_0x251796('0x22c0')]={'serverUrl':_0x119c27['protocol']()+_0x251796('0x726')+_0x119c27[_0x251796('0x1c6a')]()+(_0x119c27['port']()?':'+_0x119c27[_0x251796('0x1fee')]():'')},_0x1efe37[_0x251796('0x14e4')]=_0x251796('0x4fc'),_0x1efe37['newFreshsalesAccount']=!![]);_0x1efe37[_0x251796('0x102f')]=_0x2fcbd6,_0x1efe37[_0x251796('0x1f7d')]=_0x535406,_0x1efe37['deleteFreshsalesAccount']=_0x419dde,_0x1efe37['getDateFromString']=_0x1dadb0,_0x1efe37[_0x251796('0xca7')]=_0x5d031b;function _0x2fcbd6(){const _0x40a3fa=_0x251796;_0x1efe37['errors']=[],_0x1ee205[_0x40a3fa('0x16fd')]['save'](_0x1efe37[_0x40a3fa('0x22c0')])['$promise'][_0x40a3fa('0x2788')](function(_0x1b45a7){const _0x67b425=_0x40a3fa;_0x1efe37[_0x67b425('0x11ea')][_0x67b425('0xc51')](_0x1b45a7[_0x67b425('0x1cbf')]()),_0x4e8d9c[_0x67b425('0x173b')]({'title':_0x67b425('0x2077'),'msg':_0x1efe37[_0x67b425('0x22c0')]['name']?_0x1efe37[_0x67b425('0x22c0')][_0x67b425('0x1a8d')]+_0x67b425('0x1e4a'):''}),_0x5d031b(_0x1b45a7);})[_0x40a3fa('0x1cb5')](function(_0x164e3c){const _0x164d77=_0x40a3fa;if(_0x164e3c[_0x164d77('0x11fc')]&&_0x164e3c[_0x164d77('0x11fc')][_0x164d77('0x25be')]&&_0x164e3c[_0x164d77('0x11fc')][_0x164d77('0x25be')][_0x164d77('0x2566')]){_0x1efe37[_0x164d77('0x25be')]=_0x164e3c['data']['errors']||[{'message':_0x164e3c['toString'](),'type':_0x164d77('0xe9d')}];for(let _0x3c67f7=0x0;_0x3c67f7<_0x164e3c[_0x164d77('0x11fc')][_0x164d77('0x25be')][_0x164d77('0x2566')];_0x3c67f7+=0x1){_0x4e8d9c['error']({'title':_0x164e3c['data'][_0x164d77('0x25be')][_0x3c67f7][_0x164d77('0x1d7')],'msg':_0x164e3c['data']['errors'][_0x3c67f7]['message']});}}else _0x4e8d9c[_0x164d77('0x5e8')]({'title':_0x164e3c[_0x164d77('0x1b51')]?_0x164d77('0x15d1')+_0x164e3c[_0x164d77('0x1b51')]+_0x164d77('0x1b0b')+_0x164e3c[_0x164d77('0x22ce')]:_0x164d77('0xe9d'),'msg':_0x164e3c[_0x164d77('0x11fc')]?JSON['stringify'](_0x164e3c['data']['message']):_0x164e3c[_0x164d77('0x17df')]()});});}function _0x535406(){const _0x34d13d=_0x251796;_0x1efe37[_0x34d13d('0x25be')]=[],_0x1ee205[_0x34d13d('0x16fd')][_0x34d13d('0x2740')]({'id':_0x1efe37[_0x34d13d('0x22c0')]['id']},_0x1efe37[_0x34d13d('0x22c0')])[_0x34d13d('0x1714')][_0x34d13d('0x2788')](function(_0x14cd38){const _0x3a1a8c=_0x34d13d,_0x378454=_0x283545()['find'](_0x1efe37['freshsalesAccounts'],{'id':_0x14cd38['id']});_0x378454&&_0x283545()[_0x3a1a8c('0x2503')](_0x378454,_0x283545()['pick'](_0x14cd38[_0x3a1a8c('0x1cbf')](),_0x283545()[_0x3a1a8c('0x2163')](_0x378454))),_0x4e8d9c[_0x3a1a8c('0x173b')]({'title':_0x3a1a8c('0x12c1'),'msg':_0x1efe37['freshsalesAccount'][_0x3a1a8c('0x1a8d')]?_0x1efe37[_0x3a1a8c('0x22c0')]['name']+_0x3a1a8c('0x24cf'):''}),_0x5d031b(_0x14cd38);})[_0x34d13d('0x1cb5')](function(_0x1eb428){const _0xabe5d6=_0x34d13d;if(_0x1eb428['data']&&_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x25be')]&&_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x25be')][_0xabe5d6('0x2566')]){_0x1efe37[_0xabe5d6('0x25be')]=_0x1eb428[_0xabe5d6('0x11fc')]['errors']||[{'message':_0x1eb428['toString'](),'type':_0xabe5d6('0x1bf1')}];for(let _0x5928f6=0x0;_0x5928f6<_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x25be')]['length'];_0x5928f6++){_0x4e8d9c['error']({'title':_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x25be')][_0x5928f6][_0xabe5d6('0x1d7')],'msg':_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x25be')][_0x5928f6]['message']});}}else _0x4e8d9c['error']({'title':_0x1eb428['status']?_0xabe5d6('0x15d1')+_0x1eb428[_0xabe5d6('0x1b51')]+_0xabe5d6('0x1b0b')+_0x1eb428['statusText']:'api.intFreshsalesAccount.update','msg':_0x1eb428[_0xabe5d6('0x11fc')]?JSON[_0xabe5d6('0x1be0')](_0x1eb428[_0xabe5d6('0x11fc')][_0xabe5d6('0x15e2')]):_0x1eb428['toString']()});});}function _0x419dde(_0x2479a0){const _0x1bf32b=_0x251796;_0x1efe37[_0x1bf32b('0x25be')]=[];const _0x526cb2=_0x1383a0[_0x1bf32b('0x112e')]()[_0x1bf32b('0x14e4')](_0x1bf32b('0x458'))[_0x1bf32b('0x1c98')](_0x1bf32b('0xc18'))[_0x1bf32b('0x10bc')](_0x1bf32b('0xe89'))['ok'](_0x1bf32b('0x2786'))[_0x1bf32b('0x1801')](_0x1bf32b('0x1481'))[_0x1bf32b('0x24d0')](_0x2479a0);_0x1383a0[_0x1bf32b('0x2fa')](_0x526cb2)['then'](function(){const _0x448b7e=_0x1bf32b;_0x1ee205[_0x448b7e('0x16fd')]['delete']({'id':_0x1efe37[_0x448b7e('0x22c0')]['id']})[_0x448b7e('0x1714')][_0x448b7e('0x2788')](function(){const _0xbe9a82=_0x448b7e;_0x283545()[_0xbe9a82('0x1a90')](_0x1efe37['freshsalesAccounts'],{'id':_0x1efe37[_0xbe9a82('0x22c0')]['id']}),_0x4e8d9c['success']({'title':_0xbe9a82('0x2052'),'msg':(_0x1efe37[_0xbe9a82('0x22c0')]['name']||_0xbe9a82('0x22c0'))+'\x20has\x20been\x20deleted!'}),_0x5d031b(_0x1efe37[_0xbe9a82('0x22c0')]);})[_0x448b7e('0x1cb5')](function(_0x3f2caa){const _0x4ed74d=_0x448b7e;if(_0x3f2caa[_0x4ed74d('0x11fc')]&&_0x3f2caa[_0x4ed74d('0x11fc')]['errors']&&_0x3f2caa[_0x4ed74d('0x11fc')][_0x4ed74d('0x25be')]['length']){_0x1efe37['errors']=_0x3f2caa['data'][_0x4ed74d('0x25be')]||[{'message':_0x3f2caa[_0x4ed74d('0x17df')](),'type':_0x4ed74d('0x1fa4')}];for(let _0x1c4fff=0x0;_0x1c4fff<_0x3f2caa[_0x4ed74d('0x11fc')]['errors'][_0x4ed74d('0x2566')];_0x1c4fff++){_0x4e8d9c[_0x4ed74d('0x5e8')]({'title':_0x3f2caa['data'][_0x4ed74d('0x25be')][_0x1c4fff][_0x4ed74d('0x1d7')],'msg':_0x3f2caa[_0x4ed74d('0x11fc')][_0x4ed74d('0x25be')][_0x1c4fff]['message']});}}else _0x4e8d9c['error']({'title':_0x3f2caa[_0x4ed74d('0x1b51')]?_0x4ed74d('0x15d1')+_0x3f2caa[_0x4ed74d('0x1b51')]+_0x4ed74d('0x1b0b')+_0x3f2caa[_0x4ed74d('0x22ce')]:'api.intFreshsalesAccount.delete','msg':_0x3f2caa['data']?JSON['stringify'](_0x3f2caa[_0x4ed74d('0x11fc')][_0x4ed74d('0x15e2')]):_0x3f2caa[_0x4ed74d('0x15e2')]||_0x3f2caa[_0x4ed74d('0x17df')]()});});},function(){});}function _0x1dadb0(_0x46887b){return _0x46887b===null?undefined:new Date(_0x46887b);}function _0x5d031b(_0x2b66f3){const _0x531793=_0x251796;_0x1383a0[_0x531793('0x19d')](_0x2b66f3);}}const _0x3a6a01=_0x4f6947,_0x2c7acb=_0x18dd13['p']+_0x34e79e('0x185a'),_0x3ac6c7=_0x18dd13['p']+_0x34e79e('0x23dd');_0x851449[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth'];function _0x851449(_0x26cc3c,_0xd3a839,_0x598dcb,_0x5ddf92,_0x2d7162){const _0x5c6b87=_0x34e79e,_0x57fa55=this;_0x57fa55[_0x5c6b87('0x9cb')]=_0x2d7162['getCurrentUser'](),_0x57fa55[_0x5c6b87('0x22c0')]={},_0x57fa55[_0x5c6b87('0x1064')]={},_0x57fa55[_0x5c6b87('0x1b77')]=[],_0x57fa55[_0x5c6b87('0x1b8f')]=-0x1,_0x57fa55['crudPermissions'],_0x57fa55[_0x5c6b87('0x24eb')]=_0x14c40a,_0x57fa55[_0x5c6b87('0x1a88')]=_0x187716,_0x57fa55[_0x5c6b87('0x79f')]=_0x29ceb3,_0x57fa55['deleteFreshsalesConfiguration']=_0x384666;function _0x14c40a(_0x52b274,_0x167af2){const _0x43b755=_0x5c6b87;_0x57fa55[_0x43b755('0x22c0')]=_0x52b274,_0x57fa55[_0x43b755('0xe28')]=typeof _0x167af2!==_0x43b755('0xedb')?_0x167af2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x598dcb['intFreshsalesAccount'][_0x43b755('0x1168')]({'id':_0x57fa55['freshsalesAccount']['id'],'sort':_0x43b755('0x1cee')})[_0x43b755('0x1714')][_0x43b755('0x2788')](function(_0x175d9b){const _0xae814c=_0x43b755;return _0x57fa55[_0xae814c('0x1b77')]=_0x175d9b['rows']?_0x175d9b[_0xae814c('0x25df')]:[],_0x57fa55[_0xae814c('0x1b77')][_0xae814c('0x2566')]&&_0x57fa55[_0xae814c('0x1a88')](0x0),_0x598dcb['variable'][_0xae814c('0x1335')]({'nolimit':!![],'sort':'name'})['$promise'];})[_0x43b755('0x2788')](function(_0x68cf95){const _0x1ef1ab=_0x43b755;_0x57fa55['variables']=_0x68cf95['rows']?_0x68cf95[_0x1ef1ab('0x25df')]:[],_0x57fa55[_0x1ef1ab('0xdd1')]=_0x283545()[_0x1ef1ab('0x13cf')](_0x57fa55[_0x1ef1ab('0xf76')],'id');})[_0x43b755('0x1cb5')](function(_0x52e5b2){const _0x20fc84=_0x43b755;_0x5ddf92[_0x20fc84('0x5e8')]({'title':_0x52e5b2['status']?_0x20fc84('0x15d1')+_0x52e5b2['status']+_0x20fc84('0x1b0b')+_0x52e5b2[_0x20fc84('0x22ce')]:_0x20fc84('0x24e'),'msg':_0x52e5b2[_0x20fc84('0x11fc')]?JSON['stringify'](_0x52e5b2[_0x20fc84('0x11fc')]):_0x52e5b2['toString']()});});}function _0x187716(_0x4dfc8d){const _0x28c2b3=_0x5c6b87;_0x57fa55[_0x28c2b3('0x1064')]=_0x57fa55[_0x28c2b3('0x1b77')][_0x4dfc8d],_0x57fa55[_0x28c2b3('0x1b8f')]=_0x4dfc8d,_0x598dcb[_0x28c2b3('0x595')][_0x28c2b3('0x12c5')]({'id':_0x57fa55[_0x28c2b3('0x1064')]['id']})[_0x28c2b3('0x1714')][_0x28c2b3('0x2788')](function(_0xe584df){const _0x391779=_0x28c2b3;return _0x57fa55['subjects']=_0xe584df[_0x391779('0x25df')]?_0xe584df['rows']:[],_0x598dcb[_0x391779('0x595')]['getDescriptions']({'id':_0x57fa55[_0x391779('0x1064')]['id']})['$promise'];})[_0x28c2b3('0x2788')](function(_0x3f3425){const _0x34a851=_0x28c2b3;return _0x57fa55[_0x34a851('0x1942')]=_0x3f3425[_0x34a851('0x25df')]?_0x3f3425[_0x34a851('0x25df')]:[],_0x598dcb['intFreshsalesConfiguration'][_0x34a851('0x24')]({'id':_0x57fa55[_0x34a851('0x1064')]['id']})['$promise'];})[_0x28c2b3('0x2788')](function(_0x124e1f){const _0x51d0c3=_0x28c2b3;_0x57fa55[_0x51d0c3('0x1578')]=_0x124e1f[_0x51d0c3('0x25df')]?_0x124e1f[_0x51d0c3('0x25df')]:[];})[_0x28c2b3('0x1cb5')](function(_0xc4ef16){const _0x37dace=_0x28c2b3;_0x5ddf92[_0x37dace('0x5e8')]({'title':_0xc4ef16[_0x37dace('0x1b51')]?_0x37dace('0x15d1')+_0xc4ef16[_0x37dace('0x1b51')]+_0x37dace('0x1b0b')+_0xc4ef16[_0x37dace('0x22ce')]:_0x37dace('0x616'),'msg':_0xc4ef16[_0x37dace('0x11fc')]?JSON[_0x37dace('0x1be0')](_0xc4ef16[_0x37dace('0x11fc')]):_0xc4ef16[_0x37dace('0x17df')]()});});}function _0x29ceb3(_0x500fb5,_0xd91a43){const _0xc8cdf3=_0x5c6b87;_0x26cc3c[_0xc8cdf3('0x2fa')]({'controller':_0xc8cdf3('0x2734'),'controllerAs':'vm','templateUrl':_0x2c7acb,'parent':angular[_0xc8cdf3('0x16b1')](_0xd3a839[_0xc8cdf3('0x945')]),'targetEvent':_0x500fb5,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0xd91a43,'configurations':_0x57fa55[_0xc8cdf3('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x57fa55[_0xc8cdf3('0xe28')]}})['finally'](function(){const _0x1bb315=_0xc8cdf3;_0x57fa55[_0x1bb315('0x1a88')](0x0);});}function _0x384666(_0x33bd58,_0x54d113){const _0x278f7f=_0x5c6b87,_0x4120e8=_0x26cc3c[_0x278f7f('0x112e')]()['title'](_0x278f7f('0x712'))[_0x278f7f('0x93e')](_0x278f7f('0x1670')+(_0x54d113[_0x278f7f('0x1a8d')]||_0x278f7f('0x1064'))+''+_0x278f7f('0x27c7'))[_0x278f7f('0x10bc')](_0x278f7f('0x4fd'))[_0x278f7f('0x24d0')](_0x33bd58)['ok']('OK')['cancel'](_0x278f7f('0x1d8d'));_0x26cc3c[_0x278f7f('0x2fa')](_0x4120e8)[_0x278f7f('0x2788')](function(){const _0x445ec4=_0x278f7f;_0x598dcb['intFreshsalesConfiguration'][_0x445ec4('0x17c4')]({'id':_0x54d113['id']})[_0x445ec4('0x1714')][_0x445ec4('0x2788')](function(){const _0x13858e=_0x445ec4;_0x283545()[_0x13858e('0x1a90')](_0x57fa55[_0x13858e('0x1b77')],{'id':_0x54d113['id']}),_0x5ddf92[_0x13858e('0x173b')]({'title':_0x13858e('0x18ef'),'msg':_0x54d113[_0x13858e('0x1a8d')]?_0x54d113[_0x13858e('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x445ec4('0x1cb5')](function(_0x4aef37){const _0x14ffb5=_0x445ec4;_0x5ddf92[_0x14ffb5('0x5e8')]({'title':_0x4aef37[_0x14ffb5('0x1b51')]?'API:'+_0x4aef37[_0x14ffb5('0x1b51')]+'\x20-\x20'+_0x4aef37['statusText']:_0x14ffb5('0x26b4'),'msg':_0x4aef37['data']?JSON[_0x14ffb5('0x1be0')](_0x4aef37[_0x14ffb5('0x11fc')]):_0x4aef37[_0x14ffb5('0x17df')]()});})[_0x445ec4('0x1ed8')](function(){const _0x55d3ea=_0x445ec4;_0x57fa55[_0x55d3ea('0x1a88')](0x0);});},function(){const _0x13ffab=_0x278f7f;console[_0x13ffab('0x10df')](_0x13ffab('0x1d8d'));});}_0x57fa55[_0x5c6b87('0x2012')]=[],_0x57fa55[_0x5c6b87('0xe3e')]=_0x4bde83,_0x57fa55[_0x5c6b87('0x13b')]=_0x5dfbde,_0x57fa55['deleteSelectedSubjects']=_0x2a2772;function _0x4bde83(_0x4f447d,_0x5499e5){const _0x187b0b=_0x5c6b87;_0x26cc3c[_0x187b0b('0x2fa')]({'controller':'CreateOrEditFreshsalesAccountItemDialogController','controllerAs':'vm','templateUrl':_0x3ac6c7,'parent':angular['element'](_0xd3a839[_0x187b0b('0x945')]),'targetEvent':_0x4f447d,'clickOutsideToClose':!![],'locals':{'type':_0x187b0b('0x248f'),'item':_0x5499e5,'items':_0x57fa55[_0x187b0b('0x348')],'configuration':_0x57fa55[_0x187b0b('0x1064')],'account':_0x57fa55[_0x187b0b('0x22c0')],'license':null,'setting':null,'crudPermissions':_0x57fa55[_0x187b0b('0xe28')]}});}function _0x4687db(_0x401529){const _0x66f4f=_0x5c6b87;_0x598dcb[_0x66f4f('0x274')][_0x66f4f('0x17c4')]({'id':_0x401529['id']})[_0x66f4f('0x1714')][_0x66f4f('0x2788')](function(){const _0x27965d=_0x66f4f;_0x283545()['remove'](_0x57fa55[_0x27965d('0x348')],{'id':_0x401529['id']}),_0x5ddf92[_0x27965d('0x173b')]({'title':_0x27965d('0x306'),'msg':_0x27965d('0xb6c')});})[_0x66f4f('0x1cb5')](function(_0x454638){const _0x328c8d=_0x66f4f;_0x5ddf92[_0x328c8d('0x5e8')]({'title':_0x454638[_0x328c8d('0x1b51')]?'API:'+_0x454638['status']+'\x20-\x20'+_0x454638[_0x328c8d('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x454638['data']?JSON[_0x328c8d('0x1be0')](_0x454638[_0x328c8d('0x11fc')]):_0x454638[_0x328c8d('0x17df')]()});});}function _0x5dfbde(_0x129d83,_0x497af5){const _0x249787=_0x5c6b87,_0x5b6d6e=_0x26cc3c[_0x249787('0x112e')]()[_0x249787('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x249787('0x93e')](_0x249787('0xdc')+'\x20will\x20be\x20deleted.')[_0x249787('0x10bc')](_0x249787('0x2126'))[_0x249787('0x24d0')](_0x129d83)['ok']('OK')[_0x249787('0x1801')](_0x249787('0x1d8d'));_0x26cc3c['show'](_0x5b6d6e)['then'](function(){_0x4687db(_0x497af5);},function(){console['log']('CANCEL');});}function _0x2a2772(_0xcde91d){const _0x309896=_0x5c6b87,_0x20ec26=_0x26cc3c[_0x309896('0x112e')]()[_0x309896('0x14e4')](_0x309896('0xa11'))[_0x309896('0x93e')](''+_0x57fa55['selectedSubjects'][_0x309896('0x2566')]+_0x309896('0xbd')+_0x309896('0x27c7'))[_0x309896('0x10bc')]('delete\x20subjects')[_0x309896('0x24d0')](_0xcde91d)['ok']('OK')[_0x309896('0x1801')](_0x309896('0x1d8d'));_0x26cc3c[_0x309896('0x2fa')](_0x20ec26)[_0x309896('0x2788')](function(){const _0x1fb1d8=_0x309896;_0x57fa55['selectedSubjects'][_0x1fb1d8('0x1534')](function(_0xe43bf2){_0x4687db(_0xe43bf2);}),_0x57fa55[_0x1fb1d8('0x2012')]=[];});}_0x57fa55['selectedDescriptions']=[],_0x57fa55['createOrEditDescription']=_0x45fe86,_0x57fa55[_0x5c6b87('0x16ad')]=_0x4a18c2,_0x57fa55['deleteSelectedDescriptions']=_0x52dd22;function _0x45fe86(_0x4bcadf,_0x52a281){const _0x538871=_0x5c6b87;_0x26cc3c[_0x538871('0x2fa')]({'controller':_0x538871('0x6ab'),'controllerAs':'vm','templateUrl':_0x3ac6c7,'parent':angular['element'](_0xd3a839['body']),'targetEvent':_0x4bcadf,'clickOutsideToClose':!![],'locals':{'type':_0x538871('0x27b9'),'item':_0x52a281,'items':_0x57fa55[_0x538871('0x1942')],'configuration':_0x57fa55['freshsalesConfiguration'],'account':_0x57fa55[_0x538871('0x22c0')],'license':null,'setting':null,'crudPermissions':_0x57fa55['crudPermissions']}});}function _0xd5ea32(_0x2a8f01){const _0x5c43b8=_0x5c6b87;_0x598dcb[_0x5c43b8('0x274')][_0x5c43b8('0x17c4')]({'id':_0x2a8f01['id']})[_0x5c43b8('0x1714')]['then'](function(){const _0x1e6a3a=_0x5c43b8;_0x283545()[_0x1e6a3a('0x1a90')](_0x57fa55[_0x1e6a3a('0x1942')],{'id':_0x2a8f01['id']}),_0x5ddf92[_0x1e6a3a('0x173b')]({'title':_0x1e6a3a('0x2598'),'msg':_0x1e6a3a('0x50')});})[_0x5c43b8('0x1cb5')](function(_0x365df4){const _0x450497=_0x5c43b8;_0x5ddf92[_0x450497('0x5e8')]({'title':_0x365df4[_0x450497('0x1b51')]?_0x450497('0x15d1')+_0x365df4[_0x450497('0x1b51')]+_0x450497('0x1b0b')+_0x365df4[_0x450497('0x22ce')]:_0x450497('0x2803'),'msg':_0x365df4[_0x450497('0x11fc')]?JSON[_0x450497('0x1be0')](_0x365df4[_0x450497('0x11fc')]):_0x365df4[_0x450497('0x17df')]()});});}function _0x4a18c2(_0x471264,_0x4ff1f2){const _0x67cea6=_0x5c6b87,_0x8d4c00=_0x26cc3c[_0x67cea6('0x112e')]()['title'](_0x67cea6('0xc33'))[_0x67cea6('0x93e')](_0x67cea6('0x27b')+_0x67cea6('0x27c7'))['ariaLabel'](_0x67cea6('0x6b7'))[_0x67cea6('0x24d0')](_0x471264)['ok']('OK')[_0x67cea6('0x1801')](_0x67cea6('0x1d8d'));_0x26cc3c['show'](_0x8d4c00)['then'](function(){_0xd5ea32(_0x4ff1f2);},function(){const _0x2fda3f=_0x67cea6;console['log'](_0x2fda3f('0x1d8d'));});}function _0x52dd22(_0x31bcc5){const _0xadd2dc=_0x5c6b87,_0x31a445=_0x26cc3c[_0xadd2dc('0x112e')]()[_0xadd2dc('0x14e4')](_0xadd2dc('0x1476'))['htmlContent'](_0xadd2dc('0x1670')+_0x57fa55['selectedDescriptions'][_0xadd2dc('0x2566')]+_0xadd2dc('0xbd')+'\x20will\x20be\x20deleted.')[_0xadd2dc('0x10bc')](_0xadd2dc('0x1e33'))[_0xadd2dc('0x24d0')](_0x31bcc5)['ok']('OK')[_0xadd2dc('0x1801')]('CANCEL');_0x26cc3c[_0xadd2dc('0x2fa')](_0x31a445)[_0xadd2dc('0x2788')](function(){const _0x41d67e=_0xadd2dc;_0x57fa55['selectedDescriptions'][_0x41d67e('0x1534')](function(_0x21a6e0){_0xd5ea32(_0x21a6e0);}),_0x57fa55[_0x41d67e('0x58e')]=[];});}_0x57fa55['selectedFields']=[],_0x57fa55['createOrEditField']=_0x2bb761,_0x57fa55[_0x5c6b87('0x2386')]=_0x5a5a6d,_0x57fa55[_0x5c6b87('0x262b')]=_0x48e1d4;function _0x2bb761(_0x36785b,_0x1345fc){const _0x33183e=_0x5c6b87;_0x26cc3c['show']({'controller':_0x33183e('0x6ab'),'controllerAs':'vm','templateUrl':_0x3ac6c7,'parent':angular['element'](_0xd3a839[_0x33183e('0x945')]),'targetEvent':_0x36785b,'clickOutsideToClose':!![],'locals':{'type':_0x33183e('0x18da'),'item':_0x1345fc,'items':_0x57fa55[_0x33183e('0x1578')],'configuration':_0x57fa55[_0x33183e('0x1064')],'account':_0x57fa55[_0x33183e('0x22c0')],'license':null,'setting':null,'crudPermissions':_0x57fa55[_0x33183e('0xe28')]}});}function _0x86a638(_0x390b1c){const _0x49949e=_0x5c6b87;_0x598dcb[_0x49949e('0x274')]['delete']({'id':_0x390b1c['id']})[_0x49949e('0x1714')][_0x49949e('0x2788')](function(){const _0xdb7eba=_0x49949e;_0x283545()[_0xdb7eba('0x1a90')](_0x57fa55['fields'],{'id':_0x390b1c['id']}),_0x5ddf92[_0xdb7eba('0x173b')]({'title':'Field\x20deleted!','msg':'Field\x20has\x20been\x20deleted!'});})[_0x49949e('0x1cb5')](function(_0x3d2dec){const _0x295c1d=_0x49949e;_0x5ddf92[_0x295c1d('0x5e8')]({'title':_0x3d2dec['status']?_0x295c1d('0x15d1')+_0x3d2dec['status']+_0x295c1d('0x1b0b')+_0x3d2dec[_0x295c1d('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3d2dec[_0x295c1d('0x11fc')]?JSON[_0x295c1d('0x1be0')](_0x3d2dec[_0x295c1d('0x11fc')]):_0x3d2dec[_0x295c1d('0x17df')]()});});}function _0x5a5a6d(_0x390ac7,_0xc1f74b){const _0x35492d=_0x5c6b87,_0x440791=_0x26cc3c[_0x35492d('0x112e')]()[_0x35492d('0x14e4')](_0x35492d('0x21d'))['htmlContent'](_0x35492d('0x1151')+'\x20will\x20be\x20deleted.')[_0x35492d('0x10bc')](_0x35492d('0xde7'))['targetEvent'](_0x390ac7)['ok']('OK')[_0x35492d('0x1801')](_0x35492d('0x1d8d'));_0x26cc3c[_0x35492d('0x2fa')](_0x440791)[_0x35492d('0x2788')](function(){_0x86a638(_0xc1f74b);},function(){const _0x22921f=_0x35492d;console[_0x22921f('0x10df')](_0x22921f('0x1d8d'));});}function _0x48e1d4(_0x5cc7c0){const _0x2946a6=_0x5c6b87,_0xc66ce2=_0x26cc3c[_0x2946a6('0x112e')]()[_0x2946a6('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x2946a6('0x1670')+_0x57fa55[_0x2946a6('0xcc9')][_0x2946a6('0x2566')]+_0x2946a6('0xbd')+_0x2946a6('0x27c7'))[_0x2946a6('0x10bc')]('delete\x20fields')[_0x2946a6('0x24d0')](_0x5cc7c0)['ok']('OK')['cancel'](_0x2946a6('0x1d8d'));_0x26cc3c[_0x2946a6('0x2fa')](_0xc66ce2)['then'](function(){const _0x346399=_0x2946a6;_0x57fa55[_0x346399('0xcc9')][_0x346399('0x1534')](function(_0x45a154){_0x86a638(_0x45a154);}),_0x57fa55[_0x346399('0xcc9')]=[];});}}const _0xe0410a=_0x851449;_0x391b94[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'configurations',_0x34e79e('0x1064'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x391b94(_0x9ef169,_0x9f6738,_0x4b0e64,_0xbdf4fa,_0x337c27,_0x554c59,_0x32245c,_0x21aef6,_0x25c2c2,_0x4b1d14,_0xd62497,_0x312d3e,_0x22c445,_0x6d24d7){const _0x57a829=_0x34e79e,_0x14cdd4=this;_0x14cdd4['currentUser']=_0xd62497[_0x57a829('0x24cc')](),_0x14cdd4[_0x57a829('0x25be')]=[],_0x14cdd4[_0x57a829('0x1af0')]=_0x22c445,_0x14cdd4[_0x57a829('0x130d')]=_0x312d3e,_0x14cdd4[_0x57a829('0xe28')]=_0x6d24d7,_0x14cdd4[_0x57a829('0x1193')]={},_0x14cdd4[_0x57a829('0x18ad')]=_0x14cdd4['setting']&&_0x14cdd4['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14cdd4['title']=_0x57a829('0x1f6d'),_0x14cdd4['freshsalesConfiguration']=angular[_0x57a829('0x2669')](_0x25c2c2),_0x14cdd4[_0x57a829('0x1b77')]=_0x21aef6,_0x14cdd4['newFreshsalesConfiguration']=![];!_0x14cdd4[_0x57a829('0x1064')]&&(_0x14cdd4['freshsalesConfiguration']={'channel':'voice','type':'inbound'},_0x14cdd4[_0x57a829('0x14e4')]=_0x57a829('0x173c'),_0x14cdd4[_0x57a829('0x879')]=!![]);_0x14cdd4[_0x57a829('0x1e88')]=_0x4e2c5b,_0x14cdd4[_0x57a829('0xc56')]=_0x1b7a65,_0x14cdd4[_0x57a829('0xa37')]=_0x5f0aaf,_0x14cdd4['getDateFromString']=_0x32dccd,_0x14cdd4[_0x57a829('0xca7')]=_0x2e59df;function _0x4e2c5b(){const _0x4e9d82=_0x57a829;_0x14cdd4[_0x4e9d82('0x25be')]=[],_0x4b1d14[_0x4e9d82('0x16fd')]['addConfiguration']({'id':_0x9f6738[_0x4e9d82('0x4b9')]['id']},_0x14cdd4[_0x4e9d82('0x1064')])[_0x4e9d82('0x1714')][_0x4e9d82('0x2788')](function(_0x422a29){const _0x66d607=_0x4e9d82;_0x14cdd4[_0x66d607('0x1b77')][_0x66d607('0xc51')](_0x422a29[_0x66d607('0x1cbf')]()),_0x32245c[_0x66d607('0x173b')]({'title':'FreshsalesConfiguration\x20properly\x20created','msg':_0x14cdd4['freshsalesConfiguration'][_0x66d607('0x1a8d')]?_0x14cdd4[_0x66d607('0x1064')][_0x66d607('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x2e59df(_0x422a29);})[_0x4e9d82('0x1cb5')](function(_0x1ede86){const _0x552823=_0x4e9d82;if(_0x1ede86[_0x552823('0x11fc')]&&_0x1ede86[_0x552823('0x11fc')][_0x552823('0x25be')]&&_0x1ede86['data'][_0x552823('0x25be')][_0x552823('0x2566')]){_0x14cdd4['errors']=_0x1ede86[_0x552823('0x11fc')][_0x552823('0x25be')]||[{'message':_0x1ede86[_0x552823('0x17df')](),'type':_0x552823('0x1fb2')}];for(let _0x3fa474=0x0;_0x3fa474<_0x1ede86[_0x552823('0x11fc')][_0x552823('0x25be')][_0x552823('0x2566')];_0x3fa474+=0x1){_0x32245c[_0x552823('0x5e8')]({'title':_0x1ede86[_0x552823('0x11fc')][_0x552823('0x25be')][_0x3fa474][_0x552823('0x1d7')],'msg':_0x1ede86['data'][_0x552823('0x25be')][_0x3fa474][_0x552823('0x15e2')]});}}else _0x32245c[_0x552823('0x5e8')]({'title':_0x1ede86[_0x552823('0x1b51')]?_0x552823('0x15d1')+_0x1ede86[_0x552823('0x1b51')]+_0x552823('0x1b0b')+_0x1ede86['statusText']:_0x552823('0x1fb2'),'msg':_0x1ede86[_0x552823('0x11fc')]?JSON['stringify'](_0x1ede86['data'][_0x552823('0x15e2')]):_0x1ede86[_0x552823('0x17df')]()});});}function _0x1b7a65(){const _0x30dc2d=_0x57a829;_0x14cdd4[_0x30dc2d('0x25be')]=[],_0x4b1d14['intFreshsalesConfiguration'][_0x30dc2d('0x2740')]({'id':_0x14cdd4['freshsalesConfiguration']['id']},_0x14cdd4[_0x30dc2d('0x1064')])[_0x30dc2d('0x1714')][_0x30dc2d('0x2788')](function(_0xa6b49a){const _0x56f5d8=_0x30dc2d,_0x4e9749=_0x283545()['find'](_0x14cdd4['configurations'],{'id':_0xa6b49a['id']});_0x4e9749&&_0x283545()['merge'](_0x4e9749,_0x283545()[_0x56f5d8('0x41b')](_0xa6b49a[_0x56f5d8('0x1cbf')](),_0x283545()['keys'](_0x4e9749))),_0x32245c[_0x56f5d8('0x173b')]({'title':_0x56f5d8('0x1139'),'msg':_0x14cdd4['freshsalesConfiguration']['name']?_0x14cdd4[_0x56f5d8('0x1064')][_0x56f5d8('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x2e59df(_0xa6b49a);})['catch'](function(_0x2dbd29){const _0x36a898=_0x30dc2d;if(_0x2dbd29[_0x36a898('0x11fc')]&&_0x2dbd29['data'][_0x36a898('0x25be')]&&_0x2dbd29[_0x36a898('0x11fc')][_0x36a898('0x25be')][_0x36a898('0x2566')]){_0x14cdd4['errors']=_0x2dbd29[_0x36a898('0x11fc')][_0x36a898('0x25be')]||[{'message':_0x2dbd29[_0x36a898('0x17df')](),'type':_0x36a898('0x1967')}];for(let _0x3e85d5=0x0;_0x3e85d5<_0x2dbd29[_0x36a898('0x11fc')][_0x36a898('0x25be')][_0x36a898('0x2566')];_0x3e85d5++){_0x32245c[_0x36a898('0x5e8')]({'title':_0x2dbd29[_0x36a898('0x11fc')][_0x36a898('0x25be')][_0x3e85d5][_0x36a898('0x1d7')],'msg':_0x2dbd29[_0x36a898('0x11fc')][_0x36a898('0x25be')][_0x3e85d5]['message']});}}else _0x32245c[_0x36a898('0x5e8')]({'title':_0x2dbd29[_0x36a898('0x1b51')]?_0x36a898('0x15d1')+_0x2dbd29[_0x36a898('0x1b51')]+_0x36a898('0x1b0b')+_0x2dbd29[_0x36a898('0x22ce')]:_0x36a898('0x1967'),'msg':_0x2dbd29[_0x36a898('0x11fc')]?JSON[_0x36a898('0x1be0')](_0x2dbd29[_0x36a898('0x11fc')]['message']):_0x2dbd29[_0x36a898('0x17df')]()});});}function _0x5f0aaf(_0x1a7d9a){const _0x3578b5=_0x57a829;_0x14cdd4['errors']=[];const _0x3d778f=_0xbdf4fa[_0x3578b5('0x112e')]()['title']('Are\x20you\x20sure?')[_0x3578b5('0x1c98')](_0x3578b5('0x1c54'))['ariaLabel'](_0x3578b5('0x15e1'))['ok'](_0x3578b5('0x2786'))[_0x3578b5('0x1801')](_0x3578b5('0x1481'))[_0x3578b5('0x24d0')](_0x1a7d9a);_0xbdf4fa[_0x3578b5('0x2fa')](_0x3d778f)[_0x3578b5('0x2788')](function(){const _0x578347=_0x3578b5;_0x4b1d14[_0x578347('0x595')][_0x578347('0x17c4')]({'id':_0x14cdd4['freshsalesConfiguration']['id']})[_0x578347('0x1714')][_0x578347('0x2788')](function(){const _0x4b280a=_0x578347;_0x283545()[_0x4b280a('0x1a90')](_0x14cdd4[_0x4b280a('0x1b77')],{'id':_0x14cdd4[_0x4b280a('0x1064')]['id']}),_0x32245c[_0x4b280a('0x173b')]({'title':_0x4b280a('0x1f18'),'msg':(_0x14cdd4[_0x4b280a('0x1064')][_0x4b280a('0x1a8d')]||_0x4b280a('0x1064'))+'\x20has\x20been\x20deleted!'}),_0x2e59df(_0x14cdd4[_0x4b280a('0x1064')]);})[_0x578347('0x1cb5')](function(_0x5d80b8){const _0x33d02e=_0x578347;if(_0x5d80b8[_0x33d02e('0x11fc')]&&_0x5d80b8[_0x33d02e('0x11fc')][_0x33d02e('0x25be')]&&_0x5d80b8[_0x33d02e('0x11fc')][_0x33d02e('0x25be')]['length']){_0x14cdd4['errors']=_0x5d80b8[_0x33d02e('0x11fc')]['errors']||[{'message':_0x5d80b8[_0x33d02e('0x17df')](),'type':_0x33d02e('0x2053')}];for(let _0x150b49=0x0;_0x150b49<_0x5d80b8[_0x33d02e('0x11fc')]['errors'][_0x33d02e('0x2566')];_0x150b49++){_0x32245c['error']({'title':_0x5d80b8[_0x33d02e('0x11fc')][_0x33d02e('0x25be')][_0x150b49]['type'],'msg':_0x5d80b8[_0x33d02e('0x11fc')][_0x33d02e('0x25be')][_0x150b49][_0x33d02e('0x15e2')]});}}else _0x32245c[_0x33d02e('0x5e8')]({'title':_0x5d80b8[_0x33d02e('0x1b51')]?'API:'+_0x5d80b8[_0x33d02e('0x1b51')]+_0x33d02e('0x1b0b')+_0x5d80b8[_0x33d02e('0x22ce')]:'api.intFreshsalesConfiguration.delete','msg':_0x5d80b8['data']?JSON[_0x33d02e('0x1be0')](_0x5d80b8[_0x33d02e('0x11fc')][_0x33d02e('0x15e2')]):_0x5d80b8[_0x33d02e('0x15e2')]||_0x5d80b8[_0x33d02e('0x17df')]()});});},function(){});}function _0x32dccd(_0x32b1f2){return _0x32b1f2===null?undefined:new Date(_0x32b1f2);}function _0x2e59df(_0x279a5f){_0xbdf4fa['hide'](_0x279a5f);}}const _0x2437c9=_0x391b94;_0x31923b[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),'items',_0x34e79e('0xd3c'),'account','type','api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x31923b(_0x1467b2,_0x25dac3,_0x1e72cf,_0xcee2b7,_0x304743,_0x16fa18,_0x40e758,_0x20eae4,_0x5c3da6,_0x57abb4,_0x296601,_0x149152,_0x17e796){const _0x484232=_0x34e79e,_0x46c6aa=this;_0x46c6aa['currentUser']=_0x149152[_0x484232('0x24cc')](),_0x46c6aa[_0x484232('0x25be')]=[],_0x46c6aa['title']=_0x484232('0x1df9')+_0x283545()[_0x484232('0xc87')](_0x57abb4),_0x46c6aa[_0x484232('0xd3c')]=angular[_0x484232('0x2669')](_0x20eae4),_0x46c6aa[_0x484232('0x117b')]=_0x40e758,_0x46c6aa[_0x484232('0x1d7')]=_0x57abb4,_0x46c6aa['crudPermissions']=_0x17e796,_0x46c6aa['newItem']=![];!_0x46c6aa['item']&&(_0x46c6aa['item']={'type':_0x484232('0x2209')},_0x46c6aa[_0x484232('0xd3c')][_0x283545()[_0x484232('0x1df5')](_0x57abb4)+'Id']=_0x16fa18['id'],_0x46c6aa['title']='INTEGRATIONS.NEW_'+_0x283545()[_0x484232('0xc87')](_0x57abb4),_0x46c6aa[_0x484232('0x63a')]=!![]);_0x46c6aa[_0x484232('0x1586')]=_0x50722d,_0x46c6aa['saveItem']=_0x4cf477,_0x46c6aa['deleteItem']=_0x5ef1f1,_0x46c6aa[_0x484232('0xb4f')]=_0x1da661,_0x46c6aa[_0x484232('0xca7')]=_0x1c0c9c,_0x296601[_0x484232('0xa72')][_0x484232('0x1335')]({'nolimit':!![]})[_0x484232('0x1714')][_0x484232('0x2788')](function(_0x3d8154){const _0x20759c=_0x484232;return _0x46c6aa[_0x20759c('0xf76')]=_0x3d8154[_0x20759c('0x25df')]?_0x3d8154[_0x20759c('0x25df')]:[],_0x296601[_0x20759c('0x15b7')][_0x20759c('0x15f8')]()[_0x20759c('0x1714')];})[_0x484232('0x2788')](function(_0x1f5406){const _0x5f3c6a=_0x484232;return _0x46c6aa[_0x5f3c6a('0x1cac')]=_0x283545()['difference'](_0x283545()['keys'](_0x1f5406),[_0x5f3c6a('0x1714'),_0x5f3c6a('0x187a'),'createdAt','updatedAt',_0x5f3c6a('0x900')]),_0x46c6aa[_0x5f3c6a('0x1cac')]['push'](_0x5f3c6a('0x12da')),_0x296601[_0x5f3c6a('0xac')]['describe']()[_0x5f3c6a('0x1714')];})[_0x484232('0x2788')](function(_0x5e4e3f){const _0x23005f=_0x484232;_0x46c6aa[_0x23005f('0x226b')]=_0x283545()[_0x23005f('0xa9f')](_0x283545()['keys'](_0x5e4e3f),[_0x23005f('0x1714'),_0x23005f('0x187a'),'createdAt','updatedAt',_0x23005f('0x900')]),_0x46c6aa['voiceDialReportColumns']['push'](_0x23005f('0x12da'));})[_0x484232('0x1cb5')](function(_0x1da35c){const _0x45b723=_0x484232;_0x304743[_0x45b723('0x5e8')]({'title':_0x1da35c['status']?_0x45b723('0x15d1')+_0x1da35c[_0x45b723('0x1b51')]+_0x45b723('0x1b0b')+_0x1da35c[_0x45b723('0x22ce')]:_0x45b723('0x694'),'msg':_0x1da35c[_0x45b723('0x11fc')]?JSON['stringify'](_0x1da35c[_0x45b723('0x11fc')]):_0x1da35c['toString']()});}),_0x296601['intFreshsalesAccount'][_0x484232('0x24')]({'id':_0x5c3da6['id'],'ticketType':_0x16fa18[_0x484232('0x3d9')]?_0x16fa18[_0x484232('0x3d9')]:undefined})['$promise'][_0x484232('0x2788')](function(_0x504de0){const _0x44564e=_0x484232;_0x46c6aa[_0x44564e('0x551')]=!![],_0x46c6aa[_0x44564e('0x1578')]=_0x504de0[_0x44564e('0x25df')]?_0x504de0[_0x44564e('0x25df')]:[],_0x46c6aa[_0x44564e('0xd3c')]['idField']&&(_0x46c6aa[_0x44564e('0x1ee9')]=_0x283545()[_0x44564e('0x20e8')](_0x46c6aa[_0x44564e('0x1578')],{'id':_0x46c6aa[_0x44564e('0xd3c')][_0x44564e('0x1ca9')]}));})['catch'](function(_0x2ca323){const _0x52063a=_0x484232;_0x46c6aa[_0x52063a('0x551')]=![],console[_0x52063a('0x5e8')](_0x2ca323);});function _0x50722d(){const _0x24fd8b=_0x484232;_0x46c6aa[_0x24fd8b('0x25be')]=[],_0x46c6aa[_0x24fd8b('0x1ee9')]&&(_0x46c6aa[_0x24fd8b('0xd3c')][_0x24fd8b('0x1ca9')]=_0x46c6aa['customField']['id'],_0x46c6aa[_0x24fd8b('0xd3c')][_0x24fd8b('0x98')]=_0x46c6aa[_0x24fd8b('0x1ee9')]['name'],_0x46c6aa[_0x24fd8b('0xd3c')]['customField']=_0x46c6aa[_0x24fd8b('0x1ee9')][_0x24fd8b('0x1d56')]),_0x296601[_0x24fd8b('0x274')]['save'](_0x46c6aa['item'])[_0x24fd8b('0x1714')][_0x24fd8b('0x2788')](function(_0x29dc2c){const _0x28a57b=_0x24fd8b;_0x46c6aa['items']['unshift'](_0x29dc2c),_0x304743[_0x28a57b('0x173b')]({'title':_0x283545()[_0x28a57b('0x1df5')](_0x57abb4)+_0x28a57b('0x194d'),'msg':_0x283545()[_0x28a57b('0x1df5')](_0x57abb4)+_0x28a57b('0x1e4a')}),_0x1c0c9c();})[_0x24fd8b('0x1cb5')](function(_0x27d0cf){const _0x568105=_0x24fd8b;console[_0x568105('0x5e8')](_0x27d0cf),_0x46c6aa[_0x568105('0x25be')]=_0x27d0cf[_0x568105('0x11fc')][_0x568105('0x25be')]||[{'message':_0x27d0cf[_0x568105('0x17df')](),'type':'api.item.save'}];});}function _0x4cf477(){const _0x2ce702=_0x484232;_0x46c6aa['errors']=[],_0x46c6aa[_0x2ce702('0x1ee9')]&&(_0x46c6aa[_0x2ce702('0xd3c')][_0x2ce702('0x1ca9')]=_0x46c6aa[_0x2ce702('0x1ee9')]['id'],_0x46c6aa[_0x2ce702('0xd3c')][_0x2ce702('0x98')]=_0x46c6aa[_0x2ce702('0x1ee9')][_0x2ce702('0x1a8d')],_0x46c6aa[_0x2ce702('0xd3c')]['customField']=_0x46c6aa['customField'][_0x2ce702('0x1d56')]),_0x296601['intFreshsalesField'][_0x2ce702('0x2740')]({'id':_0x46c6aa[_0x2ce702('0xd3c')]['id']},_0x46c6aa[_0x2ce702('0xd3c')])[_0x2ce702('0x1714')]['then'](function(_0x41bbb6){const _0x167829=_0x2ce702,_0xd8ff2b=_0x283545()[_0x167829('0x20e8')](_0x46c6aa['items'],{'id':_0x41bbb6['id']});_0xd8ff2b&&_0x283545()[_0x167829('0x2503')](_0xd8ff2b,_0x41bbb6),_0x304743['success']({'title':_0x283545()[_0x167829('0x1df5')](_0x57abb4)+'\x20properly\x20saved!','msg':_0x283545()['capitalize'](_0x57abb4)+_0x167829('0x24cf')}),_0x1c0c9c();})[_0x2ce702('0x1cb5')](function(_0x1d017b){const _0x3e6321=_0x2ce702;console[_0x3e6321('0x5e8')](_0x1d017b),_0x46c6aa[_0x3e6321('0x25be')]=_0x1d017b[_0x3e6321('0x11fc')][_0x3e6321('0x25be')]||[{'message':_0x1d017b[_0x3e6321('0x17df')](),'type':_0x3e6321('0xe95')}];});}function _0x5ef1f1(_0x4f1505){const _0x4737cb=_0x484232;_0x46c6aa[_0x4737cb('0x25be')]=[];const _0x752e0d=_0xcee2b7[_0x4737cb('0x112e')]()['title']('Are\x20you\x20sure?')[_0x4737cb('0x1c98')]('The\x20'+_0x57abb4+_0x4737cb('0x27c7'))[_0x4737cb('0x10bc')]('Delete\x20'+_0x283545()[_0x4737cb('0x1df5')](_0x57abb4))['ok'](_0x4737cb('0x2786'))['cancel'](_0x4737cb('0x1481'))[_0x4737cb('0x24d0')](_0x4f1505);_0xcee2b7[_0x4737cb('0x2fa')](_0x752e0d)['then'](function(){const _0x34f10c=_0x4737cb;_0x296601[_0x34f10c('0x274')][_0x34f10c('0x17c4')]({'id':_0x46c6aa[_0x34f10c('0xd3c')]['id']})['$promise'][_0x34f10c('0x2788')](function(){const _0x57a9b6=_0x34f10c;_0x283545()[_0x57a9b6('0x1a90')](_0x46c6aa[_0x57a9b6('0x117b')],{'id':_0x46c6aa[_0x57a9b6('0xd3c')]['id']}),_0x304743[_0x57a9b6('0x173b')]({'title':_0x283545()[_0x57a9b6('0x1df5')](_0x57abb4)+_0x57a9b6('0x2542'),'msg':_0x283545()[_0x57a9b6('0x1df5')](_0x57abb4)+'\x20has\x20been\x20deleted!'}),_0x1c0c9c();})[_0x34f10c('0x1cb5')](function(_0x5a9fc6){const _0x479355=_0x34f10c;console[_0x479355('0x5e8')](_0x5a9fc6),_0x46c6aa[_0x479355('0x25be')]=_0x5a9fc6[_0x479355('0x11fc')][_0x479355('0x25be')]||[{'message':_0x5a9fc6[_0x479355('0x17df')](),'type':_0x479355('0x1276')}];});},function(){});}function _0x1da661(){const _0x5ead56=_0x484232;return _0x46c6aa[_0x5ead56('0xd3c')]['variableName']!==undefined?_0x46c6aa['item'][_0x5ead56('0x1889')]:'Please\x20select\x20a\x20variable';}function _0x1c0c9c(){_0xcee2b7['hide']();}}const _0x6540a1=_0x31923b;_0x13b0e6[_0x34e79e('0x2d9')]=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x22c0'),_0x34e79e('0xec9')];function _0x13b0e6(_0x27f3d3,_0xc5a50d,_0x693d7b,_0x2b61b7,_0x8d5cac,_0x4eae5c,_0x5300de,_0xe9032e,_0x3a54e4,_0x20ea65,_0x97889d,_0x1ff00a){const _0xff5751=_0x34e79e,_0x46fa0=this;_0x46fa0[_0xff5751('0x9cb')]=_0x20ea65[_0xff5751('0x24cc')](),_0x46fa0['license']=_0x4eae5c,_0x46fa0[_0xff5751('0x1af0')]=_0x5300de,_0x46fa0[_0xff5751('0x18ad')]=_0x46fa0[_0xff5751('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46fa0['location']=_0xc5a50d[_0xff5751('0x170c')]()+_0xff5751('0x726')+_0xc5a50d[_0xff5751('0x1c6a')](),_0x46fa0[_0xff5751('0x22c0')]=_0x97889d||_0x27f3d3[_0xff5751('0x4b9')][_0xff5751('0x22c0')]||{},_0x46fa0[_0xff5751('0xec9')]=_0x1ff00a&&_0x1ff00a[_0xff5751('0x338')]==0x1?_0x1ff00a[_0xff5751('0x25df')][0x0]:null,_0x46fa0[_0xff5751('0xe28')]=_0x20ea65[_0xff5751('0x157e')](_0x46fa0['userProfileSection']?_0x46fa0[_0xff5751('0xec9')][_0xff5751('0xe28')]:null),_0x46fa0[_0xff5751('0x1193')]={},_0x46fa0[_0xff5751('0xcb3')]=_0x27f3d3['params'][_0xff5751('0x24f6')]||0x0,_0x46fa0['alert']=_0x3a54e4[_0xff5751('0x2276')],_0x46fa0['gotoFreshsalesAccounts']=_0x4e2147,_0x46fa0['saveFreshsalesAccount']=_0x442d59;function _0x4e2147(){const _0x5a3a7d=_0xff5751;_0x27f3d3['go'](_0x5a3a7d('0xb3e'),{},{'reload':'app.integrations.freshsalesAccounts'});}function _0x442d59(){const _0x4ef426=_0xff5751;_0xe9032e[_0x4ef426('0x16fd')][_0x4ef426('0x2740')]({'id':_0x46fa0[_0x4ef426('0x22c0')]['id']},_0x46fa0[_0x4ef426('0x22c0')])[_0x4ef426('0x1714')]['then'](function(){const _0x5d8802=_0x4ef426;_0x3a54e4[_0x5d8802('0x173b')]({'title':_0x5d8802('0x410'),'msg':_0x46fa0[_0x5d8802('0x22c0')]['name']?_0x46fa0[_0x5d8802('0x22c0')]['name']+_0x5d8802('0x6f8'):''});})[_0x4ef426('0x1cb5')](function(_0x2da8c9){const _0x33c554=_0x4ef426;_0x3a54e4['error']({'title':_0x2da8c9[_0x33c554('0x1b51')]?_0x33c554('0x15d1')+_0x2da8c9[_0x33c554('0x1b51')]+_0x33c554('0x1b0b')+_0x2da8c9[_0x33c554('0x22ce')]:_0x33c554('0x282'),'msg':_0x2da8c9[_0x33c554('0x11fc')]?JSON[_0x33c554('0x1be0')](_0x2da8c9[_0x33c554('0x11fc')]):_0x2da8c9[_0x33c554('0x17df')]()});});}}const _0x41ee5e=_0x13b0e6,_0x2e0114=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html';_0x1662d9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),'$state','$mdSidenav','$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'freshsalesAccounts',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x1662d9(_0x413cc4,_0x2d765f,_0x36891c,_0x28f14e,_0x446556,_0x4da219,_0x5b7320,_0x5d4036,_0x5bc846,_0x312dc1,_0x21c63c,_0x7d4ad5,_0x4e9499,_0x151b0d,_0x28312d,_0x497fad,_0x2f07d4){const _0x3315fd=_0x34e79e,_0x474a40=this;_0x474a40[_0x3315fd('0x130d')]=_0x497fad,_0x474a40[_0x3315fd('0x1af0')]=_0x2f07d4,_0x474a40[_0x3315fd('0x9cb')]=_0x28312d[_0x3315fd('0x24cc')](),_0x474a40[_0x3315fd('0x11ea')]=_0x5bc846||{'count':0x0,'rows':[]},_0x474a40[_0x3315fd('0x63c')]=_0x312dc1,_0x474a40['userProfileSection']=_0x21c63c&&_0x21c63c[_0x3315fd('0x338')]==0x1?_0x21c63c[_0x3315fd('0x25df')][0x0]:null,_0x474a40[_0x3315fd('0xe28')]=_0x28312d[_0x3315fd('0x157e')](_0x474a40['userProfileSection']?_0x474a40[_0x3315fd('0xec9')][_0x3315fd('0xe28')]:null),_0x474a40[_0x3315fd('0x26a9')]=_0x3315fd('0x11ea'),_0x474a40[_0x3315fd('0x2278')]='',_0x474a40[_0x3315fd('0x25e2')]=null,_0x474a40[_0x3315fd('0x26fe')]=[],_0x474a40['query']={'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'page':0x1},_0x474a40[_0x3315fd('0x1f7e')]=_0x2703d6,_0x474a40[_0x3315fd('0x1f2f')]=_0x5c8a3e,_0x474a40[_0x3315fd('0x1e5')]=_0x20f61d,_0x474a40[_0x3315fd('0x173b')]=_0x4eac1c,_0x474a40[_0x3315fd('0x21c')]=_0x22de50,_0x474a40[_0x3315fd('0x1c90')]=_0x53fc94,_0x474a40[_0x3315fd('0x23e8')]=_0x39eb5c,_0x474a40[_0x3315fd('0x18c1')]=_0x4fb80f,_0x474a40['deleteSelectedFreshsalesAccounts']=_0x175171,_0x474a40['deselectFreshsalesAccounts']=_0x109946,_0x474a40[_0x3315fd('0x1cc9')]=_0x591e7b;function _0x2703d6(_0x37326b){const _0x1d05da=_0x3315fd;_0x36891c['go'](_0x1d05da('0x202f'),{'id':_0x37326b['id'],'freshsalesAccount':_0x37326b,'crudPermissions':_0x474a40['crudPermissions']});}function _0x5c8a3e(_0x17dac6){const _0xb2b611=_0x3315fd;return _0x7d4ad5['intFreshsalesAccount'][_0xb2b611('0x24')]({'id':_0x17dac6['id'],'test':!![]})[_0xb2b611('0x1714')][_0xb2b611('0x2788')](function(){const _0x473ede=_0xb2b611;_0x151b0d['success']({'title':_0x473ede('0x981'),'msg':_0x473ede('0x53e')});})[_0xb2b611('0x1cb5')](function(_0x53f6d2){const _0x2bd4de=_0xb2b611;_0x151b0d['error']({'title':_0x2bd4de('0x981'),'msg':_0x53f6d2['data']?_0x53f6d2[_0x2bd4de('0x11fc')][_0x2bd4de('0x15e2')]?_0x53f6d2[_0x2bd4de('0x11fc')]['message']:JSON[_0x2bd4de('0x1be0')](_0x53f6d2['data']):_0x53f6d2[_0x2bd4de('0x17df')]()});});}function _0x20f61d(_0x3be0aa,_0x232fb3){const _0x2c5cc4=_0x3315fd,_0x2fa4a7=_0x446556[_0x2c5cc4('0x112e')]()[_0x2c5cc4('0x14e4')](_0x2c5cc4('0x2114')+_0x283545()[_0x2c5cc4('0x114')](_0x2c5cc4('0x22c0'))+'?')[_0x2c5cc4('0x93e')](_0x2c5cc4('0x1670')+(_0x3be0aa[_0x2c5cc4('0x1a8d')]||_0x2c5cc4('0x22c0'))+_0x2c5cc4('0x229e')+_0x2c5cc4('0x27c7'))[_0x2c5cc4('0x10bc')](_0x2c5cc4('0x1d67'))[_0x2c5cc4('0x24d0')](_0x232fb3)['ok']('OK')[_0x2c5cc4('0x1801')](_0x2c5cc4('0x1d8d'));_0x446556[_0x2c5cc4('0x2fa')](_0x2fa4a7)[_0x2c5cc4('0x2788')](function(){_0x39eb5c(_0x3be0aa);},function(){const _0x524b17=_0x2c5cc4;console[_0x524b17('0x10df')](_0x524b17('0x1d8d'));});}let _0x78cda=!![],_0x11d2bc=0x1;_0x413cc4['$watch'](_0x3315fd('0x1569'),function(_0xd52abd,_0x2700eb){const _0x55715d=_0x3315fd;_0x78cda?_0x5b7320(function(){_0x78cda=![];}):(!_0x2700eb&&(_0x11d2bc=_0x474a40[_0x55715d('0x135a')][_0x55715d('0x23f5')]),_0xd52abd!==_0x2700eb&&(_0x474a40[_0x55715d('0x135a')][_0x55715d('0x23f5')]=0x1),!_0xd52abd&&(_0x474a40[_0x55715d('0x135a')][_0x55715d('0x23f5')]=_0x11d2bc),_0x474a40[_0x55715d('0x21c')]());});function _0x4eac1c(_0x44477a){const _0x5742e7=_0x3315fd;_0x474a40[_0x5742e7('0x11ea')]=_0x44477a||{'count':0x0,'rows':[]};}function _0x22de50(){const _0x51fda1=_0x3315fd;_0x474a40['query'][_0x51fda1('0x19e')]=(_0x474a40[_0x51fda1('0x135a')][_0x51fda1('0x23f5')]-0x1)*_0x474a40['query'][_0x51fda1('0x68e')],_0x28312d['hasRole'](_0x51fda1('0xe23'))?_0x474a40[_0x51fda1('0x1808')]=_0x7d4ad5[_0x51fda1('0x16fd')][_0x51fda1('0x1335')](_0x474a40[_0x51fda1('0x135a')],_0x4eac1c)[_0x51fda1('0x1714')]:(_0x474a40[_0x51fda1('0x135a')]['id']=_0x474a40[_0x51fda1('0x63c')]['id'],_0x474a40[_0x51fda1('0x135a')][_0x51fda1('0xb13')]=_0x51fda1('0x327'),_0x474a40[_0x51fda1('0x1808')]=_0x7d4ad5[_0x51fda1('0x63c')]['getResources'](_0x474a40[_0x51fda1('0x135a')],_0x4eac1c)['$promise']);}function _0x53fc94(_0x5a070d,_0x12e67d){const _0x5b46e4=_0x3315fd;_0x446556[_0x5b46e4('0x2fa')]({'controller':'CreateOrEditFreshsalesAccountDialogController','controllerAs':'vm','templateUrl':_0x2e0114,'parent':angular['element'](_0x4da219['body']),'targetEvent':_0x5a070d,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x12e67d,'freshsalesAccounts':_0x474a40[_0x5b46e4('0x11ea')][_0x5b46e4('0x25df')],'license':_0x474a40['license'],'setting':_0x474a40[_0x5b46e4('0x1af0')],'crudPermissions':_0x474a40[_0x5b46e4('0xe28')]}});}function _0x39eb5c(_0x17903f){const _0x4c31b2=_0x3315fd;_0x7d4ad5[_0x4c31b2('0x16fd')][_0x4c31b2('0x17c4')]({'id':_0x17903f['id']})[_0x4c31b2('0x1714')][_0x4c31b2('0x2788')](function(){const _0x36a702=_0x4c31b2;_0x283545()['remove'](_0x474a40['freshsalesAccounts'][_0x36a702('0x25df')],{'id':_0x17903f['id']}),_0x474a40[_0x36a702('0x11ea')][_0x36a702('0x338')]-=0x1,!_0x474a40[_0x36a702('0x11ea')]['rows'][_0x36a702('0x2566')]&&_0x474a40[_0x36a702('0x21c')](),_0x151b0d['success']({'title':_0x283545()[_0x36a702('0x114')](_0x36a702('0x14eb'))+'\x20deleted!','msg':_0x17903f[_0x36a702('0x1a8d')]?_0x17903f[_0x36a702('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x4c31b2('0x1cb5')](function(_0x32a656){const _0x57b54a=_0x4c31b2;if(_0x32a656['data']&&_0x32a656[_0x57b54a('0x11fc')][_0x57b54a('0x25be')]&&_0x32a656[_0x57b54a('0x11fc')]['errors'][_0x57b54a('0x2566')]){_0x474a40[_0x57b54a('0x25be')]=_0x32a656[_0x57b54a('0x11fc')][_0x57b54a('0x25be')]||[{'message':_0x32a656[_0x57b54a('0x17df')](),'type':_0x57b54a('0x207c')}];for(let _0x204965=0x0;_0x204965<_0x32a656['data']['errors'][_0x57b54a('0x2566')];_0x204965++){_0x151b0d[_0x57b54a('0x5e8')]({'title':_0x32a656['data'][_0x57b54a('0x25be')][_0x204965][_0x57b54a('0x1d7')],'msg':_0x32a656['data'][_0x57b54a('0x25be')][_0x204965][_0x57b54a('0x15e2')]});}}else _0x151b0d[_0x57b54a('0x5e8')]({'title':_0x32a656['status']?_0x57b54a('0x15d1')+_0x32a656['status']+_0x57b54a('0x1b0b')+_0x32a656[_0x57b54a('0x22ce')]:'SYSTEM:DELETEintFreshsalesAccount','msg':_0x32a656[_0x57b54a('0x11fc')]?JSON[_0x57b54a('0x1be0')](_0x32a656[_0x57b54a('0x11fc')][_0x57b54a('0x15e2')]):_0x32a656[_0x57b54a('0x15e2')]||_0x32a656[_0x57b54a('0x17df')]()});});}function _0x4fb80f(){const _0x44e0ae=_0x3315fd,_0x9f2b11=angular[_0x44e0ae('0x2669')](_0x474a40[_0x44e0ae('0x26fe')]);return _0x474a40['selectedFreshsalesAccounts']=[],_0x9f2b11;}function _0x175171(_0x5533c9){const _0x32b6f3=_0x3315fd,_0x34c88b=_0x446556[_0x32b6f3('0x112e')]()[_0x32b6f3('0x14e4')](_0x32b6f3('0x1999'))[_0x32b6f3('0x93e')](''+_0x474a40[_0x32b6f3('0x26fe')][_0x32b6f3('0x2566')]+'\x20selected'+_0x32b6f3('0x27c7'))[_0x32b6f3('0x10bc')]('delete\x20FreshsalesAccounts')[_0x32b6f3('0x24d0')](_0x5533c9)['ok']('OK')[_0x32b6f3('0x1801')]('CANCEL');_0x446556['show'](_0x34c88b)['then'](function(){const _0x2d3763=_0x32b6f3;_0x474a40[_0x2d3763('0x26fe')][_0x2d3763('0x1534')](function(_0xf674c){_0x39eb5c(_0xf674c);}),_0x474a40['selectedFreshsalesAccounts']=[];});}function _0x109946(){const _0x36cf44=_0x3315fd;_0x474a40[_0x36cf44('0x26fe')]=[];}function _0x591e7b(){const _0x3378fd=_0x3315fd;_0x474a40['selectedFreshsalesAccounts']=_0x474a40[_0x3378fd('0x11ea')]['rows'];}}const _0x5da094=_0x1662d9;_0x118b79[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0x258f'),_0x34e79e('0xf32'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x118b79(_0x5bcd28,_0x6786c7,_0x1b91ee,_0x3a3c2c,_0x37e121,_0x168e9c,_0x5769ff,_0x290e6e,_0x1071c7,_0x40e670,_0x7f5ad3,_0x2cdf27,_0x2cccf9,_0x3fd8ab){const _0x5a0612=_0x34e79e,_0xdd922a=this;_0xdd922a[_0x5a0612('0x9cb')]=_0x7f5ad3[_0x5a0612('0x24cc')](),_0xdd922a[_0x5a0612('0x25be')]=[],_0xdd922a[_0x5a0612('0x1af0')]=_0x2cccf9,_0xdd922a['license']=_0x2cdf27,_0xdd922a[_0x5a0612('0xe28')]=_0x3fd8ab,_0xdd922a[_0x5a0612('0x1193')]={},_0xdd922a[_0x5a0612('0x18ad')]=_0xdd922a[_0x5a0612('0x1af0')]&&_0xdd922a[_0x5a0612('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xdd922a[_0x5a0612('0x14e4')]=_0x5a0612('0xfbf'),_0xdd922a[_0x5a0612('0xf32')]=angular[_0x5a0612('0x2669')](_0x1071c7),_0xdd922a['salesforceAccounts']=_0x290e6e,_0xdd922a['newSalesforceAccount']=![];!_0xdd922a[_0x5a0612('0xf32')]&&(_0xdd922a[_0x5a0612('0xf32')]={'type':_0x5a0612('0x1c96'),'serverUrl':_0x1b91ee['protocol']()+'://'+_0x1b91ee['host']()+(_0x1b91ee[_0x5a0612('0x1fee')]()?':'+_0x1b91ee[_0x5a0612('0x1fee')]():'')},_0xdd922a[_0x5a0612('0x14e4')]=_0x5a0612('0x2c0'),_0xdd922a[_0x5a0612('0x263c')]=!![]);_0xdd922a[_0x5a0612('0xb4b')]=_0x5cbffd,_0xdd922a[_0x5a0612('0x379')]=_0x522a09,_0xdd922a[_0x5a0612('0x1ff6')]=_0x2914c7,_0xdd922a[_0x5a0612('0x2601')]=_0x25e573,_0xdd922a[_0x5a0612('0xca7')]=_0x32eda2;function _0x5cbffd(){const _0xf5ecd4=_0x5a0612;_0xdd922a['errors']=[],_0x40e670[_0xf5ecd4('0x129c')][_0xf5ecd4('0xbd0')](_0xdd922a['salesforceAccount'])[_0xf5ecd4('0x1714')][_0xf5ecd4('0x2788')](function(_0x2b029b){const _0x5aeb19=_0xf5ecd4;_0xdd922a[_0x5aeb19('0x258f')][_0x5aeb19('0xc51')](_0x2b029b[_0x5aeb19('0x1cbf')]()),_0x5769ff[_0x5aeb19('0x173b')]({'title':_0x5aeb19('0x18b0'),'msg':_0xdd922a[_0x5aeb19('0xf32')][_0x5aeb19('0x1a8d')]?_0xdd922a[_0x5aeb19('0xf32')][_0x5aeb19('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x32eda2(_0x2b029b);})[_0xf5ecd4('0x1cb5')](function(_0x5ee2ca){const _0x54ce6b=_0xf5ecd4;if(_0x5ee2ca[_0x54ce6b('0x11fc')]&&_0x5ee2ca[_0x54ce6b('0x11fc')]['errors']&&_0x5ee2ca[_0x54ce6b('0x11fc')][_0x54ce6b('0x25be')]['length']){_0xdd922a[_0x54ce6b('0x25be')]=_0x5ee2ca[_0x54ce6b('0x11fc')][_0x54ce6b('0x25be')]||[{'message':_0x5ee2ca[_0x54ce6b('0x17df')](),'type':_0x54ce6b('0x18eb')}];for(let _0x344263=0x0;_0x344263<_0x5ee2ca[_0x54ce6b('0x11fc')][_0x54ce6b('0x25be')][_0x54ce6b('0x2566')];_0x344263+=0x1){_0x5769ff[_0x54ce6b('0x5e8')]({'title':_0x5ee2ca['data']['errors'][_0x344263][_0x54ce6b('0x1d7')],'msg':_0x5ee2ca[_0x54ce6b('0x11fc')][_0x54ce6b('0x25be')][_0x344263][_0x54ce6b('0x15e2')]});}}else _0x5769ff[_0x54ce6b('0x5e8')]({'title':_0x5ee2ca[_0x54ce6b('0x1b51')]?_0x54ce6b('0x15d1')+_0x5ee2ca[_0x54ce6b('0x1b51')]+_0x54ce6b('0x1b0b')+_0x5ee2ca[_0x54ce6b('0x22ce')]:_0x54ce6b('0x18eb'),'msg':_0x5ee2ca[_0x54ce6b('0x11fc')]?JSON[_0x54ce6b('0x1be0')](_0x5ee2ca[_0x54ce6b('0x11fc')][_0x54ce6b('0x15e2')]):_0x5ee2ca[_0x54ce6b('0x17df')]()});});}function _0x522a09(){const _0x1d3941=_0x5a0612;_0xdd922a[_0x1d3941('0x25be')]=[],_0x40e670[_0x1d3941('0x129c')][_0x1d3941('0x2740')]({'id':_0xdd922a[_0x1d3941('0xf32')]['id']},_0xdd922a[_0x1d3941('0xf32')])[_0x1d3941('0x1714')][_0x1d3941('0x2788')](function(_0x330ce8){const _0xb4457e=_0x1d3941,_0x426c5c=_0x283545()['find'](_0xdd922a[_0xb4457e('0x258f')],{'id':_0x330ce8['id']});_0x426c5c&&_0x283545()[_0xb4457e('0x2503')](_0x426c5c,_0x283545()['pick'](_0x330ce8[_0xb4457e('0x1cbf')](),_0x283545()[_0xb4457e('0x2163')](_0x426c5c))),_0x5769ff[_0xb4457e('0x173b')]({'title':'SalesforceAccount\x20properly\x20saved!','msg':_0xdd922a['salesforceAccount'][_0xb4457e('0x1a8d')]?_0xdd922a[_0xb4457e('0xf32')]['name']+_0xb4457e('0x24cf'):''}),_0x32eda2(_0x330ce8);})['catch'](function(_0xe1e26f){const _0x5f5a29=_0x1d3941;if(_0xe1e26f[_0x5f5a29('0x11fc')]&&_0xe1e26f['data'][_0x5f5a29('0x25be')]&&_0xe1e26f[_0x5f5a29('0x11fc')][_0x5f5a29('0x25be')]['length']){_0xdd922a[_0x5f5a29('0x25be')]=_0xe1e26f[_0x5f5a29('0x11fc')][_0x5f5a29('0x25be')]||[{'message':_0xe1e26f[_0x5f5a29('0x17df')](),'type':_0x5f5a29('0x3e1')}];for(let _0x879568=0x0;_0x879568<_0xe1e26f[_0x5f5a29('0x11fc')][_0x5f5a29('0x25be')][_0x5f5a29('0x2566')];_0x879568++){_0x5769ff['error']({'title':_0xe1e26f[_0x5f5a29('0x11fc')]['errors'][_0x879568]['type'],'msg':_0xe1e26f[_0x5f5a29('0x11fc')][_0x5f5a29('0x25be')][_0x879568][_0x5f5a29('0x15e2')]});}}else _0x5769ff[_0x5f5a29('0x5e8')]({'title':_0xe1e26f[_0x5f5a29('0x1b51')]?'API:'+_0xe1e26f[_0x5f5a29('0x1b51')]+_0x5f5a29('0x1b0b')+_0xe1e26f[_0x5f5a29('0x22ce')]:_0x5f5a29('0x3e1'),'msg':_0xe1e26f[_0x5f5a29('0x11fc')]?JSON[_0x5f5a29('0x1be0')](_0xe1e26f[_0x5f5a29('0x11fc')][_0x5f5a29('0x15e2')]):_0xe1e26f[_0x5f5a29('0x17df')]()});});}function _0x2914c7(_0x2cb165){const _0x317202=_0x5a0612;_0xdd922a[_0x317202('0x25be')]=[];const _0x56bf5f=_0x3a3c2c[_0x317202('0x112e')]()[_0x317202('0x14e4')](_0x317202('0x458'))[_0x317202('0x1c98')](_0x317202('0x144'))[_0x317202('0x10bc')]('Delete\x20SalesforceAccount')['ok'](_0x317202('0x2786'))[_0x317202('0x1801')](_0x317202('0x1481'))[_0x317202('0x24d0')](_0x2cb165);_0x3a3c2c['show'](_0x56bf5f)['then'](function(){const _0x1da23b=_0x317202;_0x40e670[_0x1da23b('0x129c')][_0x1da23b('0x17c4')]({'id':_0xdd922a[_0x1da23b('0xf32')]['id']})['$promise']['then'](function(){const _0x58e69b=_0x1da23b;_0x283545()['remove'](_0xdd922a[_0x58e69b('0x258f')],{'id':_0xdd922a[_0x58e69b('0xf32')]['id']}),_0x5769ff['success']({'title':_0x58e69b('0xd21'),'msg':(_0xdd922a[_0x58e69b('0xf32')][_0x58e69b('0x1a8d')]||'salesforceAccount')+'\x20has\x20been\x20deleted!'}),_0x32eda2(_0xdd922a['salesforceAccount']);})['catch'](function(_0x2ae5b2){const _0xcbef84=_0x1da23b;if(_0x2ae5b2['data']&&_0x2ae5b2['data'][_0xcbef84('0x25be')]&&_0x2ae5b2[_0xcbef84('0x11fc')][_0xcbef84('0x25be')][_0xcbef84('0x2566')]){_0xdd922a['errors']=_0x2ae5b2[_0xcbef84('0x11fc')][_0xcbef84('0x25be')]||[{'message':_0x2ae5b2[_0xcbef84('0x17df')](),'type':_0xcbef84('0xe72')}];for(let _0x2e91e2=0x0;_0x2e91e2<_0x2ae5b2[_0xcbef84('0x11fc')]['errors'][_0xcbef84('0x2566')];_0x2e91e2++){_0x5769ff[_0xcbef84('0x5e8')]({'title':_0x2ae5b2[_0xcbef84('0x11fc')][_0xcbef84('0x25be')][_0x2e91e2]['type'],'msg':_0x2ae5b2[_0xcbef84('0x11fc')][_0xcbef84('0x25be')][_0x2e91e2]['message']});}}else _0x5769ff['error']({'title':_0x2ae5b2[_0xcbef84('0x1b51')]?_0xcbef84('0x15d1')+_0x2ae5b2['status']+'\x20-\x20'+_0x2ae5b2['statusText']:_0xcbef84('0xe72'),'msg':_0x2ae5b2['data']?JSON[_0xcbef84('0x1be0')](_0x2ae5b2[_0xcbef84('0x11fc')]['message']):_0x2ae5b2[_0xcbef84('0x15e2')]||_0x2ae5b2[_0xcbef84('0x17df')]()});});},function(){});}function _0x25e573(_0x5828d4){return _0x5828d4===null?undefined:new Date(_0x5828d4);}function _0x32eda2(_0x4a38ef){const _0x253848=_0x5a0612;_0x3a3c2c[_0x253848('0x19d')](_0x4a38ef);}}const _0x3b6813=_0x118b79,_0x55174e=_0x18dd13['p']+_0x34e79e('0x21fc'),_0x39ea60=_0x18dd13['p']+_0x34e79e('0x1766');_0x17a472[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$document',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x17a472(_0xaedfd6,_0x4ce110,_0x137698,_0x3e0222,_0x152091){const _0x59fc1f=_0x34e79e,_0x2e73ae=this;_0x2e73ae[_0x59fc1f('0x9cb')]=_0x152091[_0x59fc1f('0x24cc')](),_0x2e73ae[_0x59fc1f('0xf32')]={},_0x2e73ae[_0x59fc1f('0x1c40')]={},_0x2e73ae[_0x59fc1f('0x1b77')]=[],_0x2e73ae[_0x59fc1f('0xc4')]=-0x1,_0x2e73ae[_0x59fc1f('0xe28')],_0x2e73ae[_0x59fc1f('0x24eb')]=_0x2939ba,_0x2e73ae[_0x59fc1f('0x1a2f')]=_0x5a141c,_0x2e73ae['createOrEditSalesforceConfiguration']=_0xefad31,_0x2e73ae['deleteSalesforceConfiguration']=_0x1aa48c,_0x2e73ae[_0x59fc1f('0x1fc')]=_0x52134c;function _0x52134c(){const _0x1be36f=_0x59fc1f;return _0x137698[_0x1be36f('0x12d0')][_0x1be36f('0x2740')]({'id':_0x2e73ae[_0x1be36f('0x1c40')]['id']},_0x2e73ae[_0x1be36f('0x1c40')])[_0x1be36f('0x1714')]['then'](function(){const _0x4aca5b=_0x1be36f;_0x3e0222[_0x4aca5b('0x173b')]({'title':_0x4aca5b('0x177e'),'msg':_0x4aca5b('0x19a4')});})[_0x1be36f('0x1cb5')](function(_0x82b8de){const _0x191c00=_0x1be36f;_0x3e0222['error']({'title':_0x82b8de['status']?_0x191c00('0x15d1')+_0x82b8de['status']+'\x20-\x20'+_0x82b8de['statusText']:_0x191c00('0x175'),'msg':_0x82b8de[_0x191c00('0x11fc')]?JSON[_0x191c00('0x1be0')](_0x82b8de[_0x191c00('0x11fc')]):_0x82b8de[_0x191c00('0x17df')]()});});}function _0x2939ba(_0x3066af,_0x3b9ecf){const _0x2099ad=_0x59fc1f;_0x2e73ae[_0x2099ad('0xf32')]=_0x3066af,_0x2e73ae[_0x2099ad('0xe28')]=typeof _0x3b9ecf!=='undefined'?_0x3b9ecf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x137698[_0x2099ad('0x129c')][_0x2099ad('0x1168')]({'id':_0x2e73ae[_0x2099ad('0xf32')]['id'],'sort':_0x2099ad('0x1cee')})[_0x2099ad('0x1714')][_0x2099ad('0x2788')](function(_0x2c6192){const _0x3dd3ac=_0x2099ad;return _0x2e73ae['configurations']=_0x2c6192[_0x3dd3ac('0x25df')]?_0x2c6192[_0x3dd3ac('0x25df')]:[],_0x2e73ae[_0x3dd3ac('0x1b77')]['length']&&_0x2e73ae[_0x3dd3ac('0x1a2f')](0x0),_0x137698[_0x3dd3ac('0xa72')]['get']({'nolimit':!![],'sort':_0x3dd3ac('0x1a8d')})[_0x3dd3ac('0x1714')];})['then'](function(_0x3db011){const _0x384702=_0x2099ad;_0x2e73ae[_0x384702('0xf76')]=_0x3db011[_0x384702('0x25df')]?_0x3db011['rows']:[],_0x2e73ae['variablesById']=_0x283545()[_0x384702('0x13cf')](_0x2e73ae[_0x384702('0xf76')],'id');})[_0x2099ad('0x1cb5')](function(_0x1c33b5){const _0x42a57c=_0x2099ad;_0x3e0222[_0x42a57c('0x5e8')]({'title':_0x1c33b5[_0x42a57c('0x1b51')]?_0x42a57c('0x15d1')+_0x1c33b5[_0x42a57c('0x1b51')]+_0x42a57c('0x1b0b')+_0x1c33b5[_0x42a57c('0x22ce')]:_0x42a57c('0x24e'),'msg':_0x1c33b5[_0x42a57c('0x11fc')]?JSON[_0x42a57c('0x1be0')](_0x1c33b5[_0x42a57c('0x11fc')]):_0x1c33b5[_0x42a57c('0x17df')]()});});}function _0x5a141c(_0x4f806b){const _0x347092=_0x59fc1f;_0x2e73ae[_0x347092('0x1c40')]=_0x2e73ae[_0x347092('0x1b77')][_0x4f806b],_0x2e73ae[_0x347092('0xc4')]=_0x4f806b,_0x137698[_0x347092('0x12d0')][_0x347092('0x12c5')]({'id':_0x2e73ae[_0x347092('0x1c40')]['id']})[_0x347092('0x1714')]['then'](function(_0x572cea){const _0x556979=_0x347092;return _0x2e73ae[_0x556979('0x348')]=_0x572cea['rows']?_0x572cea['rows']:[],_0x137698[_0x556979('0x12d0')][_0x556979('0x221a')]({'id':_0x2e73ae[_0x556979('0x1c40')]['id']})[_0x556979('0x1714')];})[_0x347092('0x2788')](function(_0x451db7){const _0x378575=_0x347092;return _0x2e73ae[_0x378575('0x1942')]=_0x451db7[_0x378575('0x25df')]?_0x451db7['rows']:[],_0x137698['intSalesforceConfiguration'][_0x378575('0x24')]({'id':_0x2e73ae[_0x378575('0x1c40')]['id']})[_0x378575('0x1714')];})[_0x347092('0x2788')](function(_0x226821){const _0x9b4da9=_0x347092;_0x2e73ae[_0x9b4da9('0x1578')]=_0x226821[_0x9b4da9('0x25df')]?_0x226821[_0x9b4da9('0x25df')]:[];})[_0x347092('0x1cb5')](function(_0x33072c){const _0x280a8e=_0x347092;_0x3e0222['error']({'title':_0x33072c[_0x280a8e('0x1b51')]?_0x280a8e('0x15d1')+_0x33072c['status']+_0x280a8e('0x1b0b')+_0x33072c[_0x280a8e('0x22ce')]:_0x280a8e('0x616'),'msg':_0x33072c[_0x280a8e('0x11fc')]?JSON[_0x280a8e('0x1be0')](_0x33072c[_0x280a8e('0x11fc')]):_0x33072c[_0x280a8e('0x17df')]()});});}function _0xefad31(_0x30f05a,_0x46e7db){const _0x23f09d=_0x59fc1f;_0xaedfd6[_0x23f09d('0x2fa')]({'controller':'CreateOrEditSalesforceConfigurationDialogController','controllerAs':'vm','templateUrl':_0x55174e,'parent':angular[_0x23f09d('0x16b1')](_0x4ce110[_0x23f09d('0x945')]),'targetEvent':_0x30f05a,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x46e7db,'configurations':_0x2e73ae['configurations'],'license':null,'setting':null,'crudPermissions':_0x2e73ae[_0x23f09d('0xe28')]}})[_0x23f09d('0x1ed8')](function(){const _0x5de115=_0x23f09d;_0x2e73ae[_0x5de115('0x1a2f')](0x0);});}function _0x1aa48c(_0x2508c7,_0x297c8d){const _0x3e1473=_0x59fc1f,_0x25b6ef=_0xaedfd6[_0x3e1473('0x112e')]()[_0x3e1473('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20salesforceConfiguration?')[_0x3e1473('0x93e')](_0x3e1473('0x1670')+(_0x297c8d[_0x3e1473('0x1a8d')]||_0x3e1473('0x1c40'))+_0x3e1473('0x229e')+_0x3e1473('0x27c7'))[_0x3e1473('0x10bc')](_0x3e1473('0x1e60'))['targetEvent'](_0x2508c7)['ok']('OK')[_0x3e1473('0x1801')](_0x3e1473('0x1d8d'));_0xaedfd6[_0x3e1473('0x2fa')](_0x25b6ef)['then'](function(){const _0x36a111=_0x3e1473;_0x137698['intSalesforceConfiguration']['delete']({'id':_0x297c8d['id']})[_0x36a111('0x1714')][_0x36a111('0x2788')](function(){const _0x748f91=_0x36a111;_0x283545()['remove'](_0x2e73ae[_0x748f91('0x1b77')],{'id':_0x297c8d['id']}),_0x3e0222[_0x748f91('0x173b')]({'title':_0x748f91('0xe6d'),'msg':_0x297c8d['name']?_0x297c8d[_0x748f91('0x1a8d')]+_0x748f91('0x14d4'):''});})['catch'](function(_0x3838c6){const _0x5026b7=_0x36a111;_0x3e0222[_0x5026b7('0x5e8')]({'title':_0x3838c6['status']?'API:'+_0x3838c6[_0x5026b7('0x1b51')]+_0x5026b7('0x1b0b')+_0x3838c6[_0x5026b7('0x22ce')]:'SYSTEM:DELETECONFIGURATION','msg':_0x3838c6[_0x5026b7('0x11fc')]?JSON['stringify'](_0x3838c6['data']):_0x3838c6[_0x5026b7('0x17df')]()});})[_0x36a111('0x1ed8')](function(){const _0x544c72=_0x36a111;_0x2e73ae[_0x544c72('0x1a2f')](0x0);});},function(){console['log']('CANCEL');});}_0x2e73ae[_0x59fc1f('0x2012')]=[],_0x2e73ae['createOrEditSubject']=_0x52bbfd,_0x2e73ae[_0x59fc1f('0x13b')]=_0x4649d9,_0x2e73ae[_0x59fc1f('0x5ec')]=_0x1c852a;function _0x52bbfd(_0x37570f,_0x5990ff){const _0x212999=_0x59fc1f;_0xaedfd6[_0x212999('0x2fa')]({'controller':_0x212999('0x2143'),'controllerAs':'vm','templateUrl':_0x39ea60,'parent':angular[_0x212999('0x16b1')](_0x4ce110['body']),'targetEvent':_0x37570f,'clickOutsideToClose':!![],'locals':{'type':_0x212999('0x248f'),'item':_0x5990ff,'items':_0x2e73ae['subjects'],'configuration':_0x2e73ae[_0x212999('0x1c40')],'account':_0x2e73ae[_0x212999('0xf32')],'license':null,'setting':null,'crudPermissions':_0x2e73ae[_0x212999('0xe28')]}});}function _0x1db37c(_0x585bc0){const _0x27533c=_0x59fc1f;_0x137698[_0x27533c('0xb33')][_0x27533c('0x17c4')]({'id':_0x585bc0['id']})[_0x27533c('0x1714')][_0x27533c('0x2788')](function(){const _0x13f272=_0x27533c;_0x283545()[_0x13f272('0x1a90')](_0x2e73ae['subjects'],{'id':_0x585bc0['id']}),_0x3e0222[_0x13f272('0x173b')]({'title':_0x13f272('0x306'),'msg':_0x13f272('0xb6c')});})[_0x27533c('0x1cb5')](function(_0x494583){const _0x3abc1a=_0x27533c;_0x3e0222[_0x3abc1a('0x5e8')]({'title':_0x494583[_0x3abc1a('0x1b51')]?'API:'+_0x494583[_0x3abc1a('0x1b51')]+_0x3abc1a('0x1b0b')+_0x494583['statusText']:_0x3abc1a('0x2803'),'msg':_0x494583['data']?JSON[_0x3abc1a('0x1be0')](_0x494583[_0x3abc1a('0x11fc')]):_0x494583[_0x3abc1a('0x17df')]()});});}function _0x4649d9(_0x563894,_0x13c25a){const _0x5415dc=_0x59fc1f,_0x4a634c=_0xaedfd6[_0x5415dc('0x112e')]()[_0x5415dc('0x14e4')](_0x5415dc('0x6dd'))[_0x5415dc('0x93e')](_0x5415dc('0xdc')+_0x5415dc('0x27c7'))[_0x5415dc('0x10bc')](_0x5415dc('0x2126'))[_0x5415dc('0x24d0')](_0x563894)['ok']('OK')[_0x5415dc('0x1801')]('CANCEL');_0xaedfd6[_0x5415dc('0x2fa')](_0x4a634c)[_0x5415dc('0x2788')](function(){_0x1db37c(_0x13c25a);},function(){const _0x12d9fa=_0x5415dc;console['log'](_0x12d9fa('0x1d8d'));});}function _0x1c852a(_0xce0d93){const _0x340383=_0x59fc1f,_0x45c2d6=_0xaedfd6[_0x340383('0x112e')]()[_0x340383('0x14e4')](_0x340383('0xa11'))['htmlContent'](_0x340383('0x1670')+_0x2e73ae['selectedSubjects'][_0x340383('0x2566')]+'\x20selected'+_0x340383('0x27c7'))['ariaLabel'](_0x340383('0x19b1'))['targetEvent'](_0xce0d93)['ok']('OK')['cancel']('CANCEL');_0xaedfd6[_0x340383('0x2fa')](_0x45c2d6)[_0x340383('0x2788')](function(){const _0x574c20=_0x340383;_0x2e73ae['selectedSubjects']['forEach'](function(_0x3af7db){_0x1db37c(_0x3af7db);}),_0x2e73ae[_0x574c20('0x2012')]=[];});}_0x2e73ae[_0x59fc1f('0x58e')]=[],_0x2e73ae['createOrEditDescription']=_0x1ec5ff,_0x2e73ae[_0x59fc1f('0x16ad')]=_0x4fcc3e,_0x2e73ae[_0x59fc1f('0x16b5')]=_0x2eda66;function _0x1ec5ff(_0x128ee5,_0x41e16c){const _0x3d295f=_0x59fc1f;_0xaedfd6[_0x3d295f('0x2fa')]({'controller':_0x3d295f('0x2143'),'controllerAs':'vm','templateUrl':_0x39ea60,'parent':angular[_0x3d295f('0x16b1')](_0x4ce110['body']),'targetEvent':_0x128ee5,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x41e16c,'items':_0x2e73ae['descriptions'],'configuration':_0x2e73ae[_0x3d295f('0x1c40')],'account':_0x2e73ae[_0x3d295f('0xf32')],'license':null,'setting':null,'crudPermissions':_0x2e73ae['crudPermissions']}});}function _0x4c20bb(_0x48f01f){const _0x357ce7=_0x59fc1f;_0x137698[_0x357ce7('0xb33')][_0x357ce7('0x17c4')]({'id':_0x48f01f['id']})[_0x357ce7('0x1714')][_0x357ce7('0x2788')](function(){const _0x558c29=_0x357ce7;_0x283545()[_0x558c29('0x1a90')](_0x2e73ae[_0x558c29('0x1942')],{'id':_0x48f01f['id']}),_0x3e0222['success']({'title':_0x558c29('0x2598'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x357ce7('0x1cb5')](function(_0x4f37b0){const _0x316e40=_0x357ce7;_0x3e0222[_0x316e40('0x5e8')]({'title':_0x4f37b0['status']?'API:'+_0x4f37b0[_0x316e40('0x1b51')]+_0x316e40('0x1b0b')+_0x4f37b0['statusText']:_0x316e40('0x2803'),'msg':_0x4f37b0[_0x316e40('0x11fc')]?JSON['stringify'](_0x4f37b0[_0x316e40('0x11fc')]):_0x4f37b0[_0x316e40('0x17df')]()});});}function _0x4fcc3e(_0x2ca022,_0x162b5d){const _0x45a50e=_0x59fc1f,_0x351d2a=_0xaedfd6[_0x45a50e('0x112e')]()['title'](_0x45a50e('0xc33'))[_0x45a50e('0x93e')](_0x45a50e('0x27b')+'\x20will\x20be\x20deleted.')[_0x45a50e('0x10bc')](_0x45a50e('0x6b7'))[_0x45a50e('0x24d0')](_0x2ca022)['ok']('OK')[_0x45a50e('0x1801')](_0x45a50e('0x1d8d'));_0xaedfd6[_0x45a50e('0x2fa')](_0x351d2a)[_0x45a50e('0x2788')](function(){_0x4c20bb(_0x162b5d);},function(){const _0x2a2b6f=_0x45a50e;console['log'](_0x2a2b6f('0x1d8d'));});}function _0x2eda66(_0xf9bb67){const _0x2d4298=_0x59fc1f,_0x3200dc=_0xaedfd6[_0x2d4298('0x112e')]()[_0x2d4298('0x14e4')](_0x2d4298('0x1476'))[_0x2d4298('0x93e')](''+_0x2e73ae[_0x2d4298('0x58e')][_0x2d4298('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x2d4298('0x10bc')](_0x2d4298('0x1e33'))['targetEvent'](_0xf9bb67)['ok']('OK')[_0x2d4298('0x1801')]('CANCEL');_0xaedfd6[_0x2d4298('0x2fa')](_0x3200dc)[_0x2d4298('0x2788')](function(){const _0x3e0d61=_0x2d4298;_0x2e73ae[_0x3e0d61('0x58e')]['forEach'](function(_0x466591){_0x4c20bb(_0x466591);}),_0x2e73ae[_0x3e0d61('0x58e')]=[];});}_0x2e73ae[_0x59fc1f('0xcc9')]=[],_0x2e73ae[_0x59fc1f('0x17d4')]=_0x35be47,_0x2e73ae['deleteFieldConfirm']=_0x368b82,_0x2e73ae[_0x59fc1f('0x262b')]=_0x26b80e;function _0x35be47(_0x321956,_0x499ce1){const _0x6ac0f0=_0x59fc1f;_0xaedfd6[_0x6ac0f0('0x2fa')]({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0x39ea60,'parent':angular[_0x6ac0f0('0x16b1')](_0x4ce110[_0x6ac0f0('0x945')]),'targetEvent':_0x321956,'clickOutsideToClose':!![],'locals':{'type':_0x6ac0f0('0x18da'),'item':_0x499ce1,'items':_0x2e73ae[_0x6ac0f0('0x1578')],'configuration':_0x2e73ae[_0x6ac0f0('0x1c40')],'account':_0x2e73ae[_0x6ac0f0('0xf32')],'license':null,'setting':null,'crudPermissions':_0x2e73ae['crudPermissions']}});}function _0x273982(_0x3e7839){const _0x6aeeb2=_0x59fc1f;_0x137698['intSalesforceField'][_0x6aeeb2('0x17c4')]({'id':_0x3e7839['id']})[_0x6aeeb2('0x1714')]['then'](function(){const _0x2c1654=_0x6aeeb2;_0x283545()[_0x2c1654('0x1a90')](_0x2e73ae[_0x2c1654('0x1578')],{'id':_0x3e7839['id']}),_0x3e0222[_0x2c1654('0x173b')]({'title':_0x2c1654('0xb76'),'msg':_0x2c1654('0x1d92')});})[_0x6aeeb2('0x1cb5')](function(_0x41ab50){const _0x2f6fc4=_0x6aeeb2;_0x3e0222[_0x2f6fc4('0x5e8')]({'title':_0x41ab50[_0x2f6fc4('0x1b51')]?_0x2f6fc4('0x15d1')+_0x41ab50[_0x2f6fc4('0x1b51')]+_0x2f6fc4('0x1b0b')+_0x41ab50[_0x2f6fc4('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x41ab50['data']?JSON[_0x2f6fc4('0x1be0')](_0x41ab50[_0x2f6fc4('0x11fc')]):_0x41ab50[_0x2f6fc4('0x17df')]()});});}function _0x368b82(_0xd10f4d,_0x49d558){const _0x47dbac=_0x59fc1f,_0x131258=_0xaedfd6[_0x47dbac('0x112e')]()[_0x47dbac('0x14e4')](_0x47dbac('0x21d'))['htmlContent']('Field'+_0x47dbac('0x27c7'))[_0x47dbac('0x10bc')](_0x47dbac('0xde7'))[_0x47dbac('0x24d0')](_0xd10f4d)['ok']('OK')[_0x47dbac('0x1801')](_0x47dbac('0x1d8d'));_0xaedfd6[_0x47dbac('0x2fa')](_0x131258)['then'](function(){_0x273982(_0x49d558);},function(){const _0x14541e=_0x47dbac;console[_0x14541e('0x10df')]('CANCEL');});}function _0x26b80e(_0x5b9423){const _0x219f83=_0x59fc1f,_0x3e4c16=_0xaedfd6[_0x219f83('0x112e')]()[_0x219f83('0x14e4')](_0x219f83('0x7'))[_0x219f83('0x93e')](_0x219f83('0x1670')+_0x2e73ae[_0x219f83('0xcc9')][_0x219f83('0x2566')]+_0x219f83('0xbd')+_0x219f83('0x27c7'))[_0x219f83('0x10bc')](_0x219f83('0x736'))[_0x219f83('0x24d0')](_0x5b9423)['ok']('OK')[_0x219f83('0x1801')](_0x219f83('0x1d8d'));_0xaedfd6[_0x219f83('0x2fa')](_0x3e4c16)[_0x219f83('0x2788')](function(){const _0x4ce1c1=_0x219f83;_0x2e73ae['selectedFields'][_0x4ce1c1('0x1534')](function(_0x16156d){_0x273982(_0x16156d);}),_0x2e73ae['selectedFields']=[];});}}const _0xb58035=_0x17a472;_0x1e669b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1b77'),_0x34e79e('0x1c40'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x1e669b(_0x2403f4,_0x237eaa,_0x1da158,_0x53bbc3,_0xa92848,_0x35c281,_0x27b9e1,_0x4476cc,_0x241252,_0x2683e9,_0xaf1fd9,_0x1d7bc9,_0x1a1f20,_0x5f2c6d){const _0x3f7612=_0x34e79e,_0x6c175d=this;_0x6c175d[_0x3f7612('0x9cb')]=_0xaf1fd9[_0x3f7612('0x24cc')](),_0x6c175d[_0x3f7612('0x25be')]=[],_0x6c175d[_0x3f7612('0x1af0')]=_0x1a1f20,_0x6c175d['license']=_0x1d7bc9,_0x6c175d[_0x3f7612('0xe28')]=_0x5f2c6d,_0x6c175d[_0x3f7612('0x1193')]={},_0x6c175d[_0x3f7612('0x18ad')]=_0x6c175d[_0x3f7612('0x1af0')]&&_0x6c175d[_0x3f7612('0x1af0')][_0x3f7612('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x6c175d[_0x3f7612('0x14e4')]=_0x3f7612('0x21b6'),_0x6c175d[_0x3f7612('0x1c40')]=angular[_0x3f7612('0x2669')](_0x241252),_0x6c175d[_0x3f7612('0x1b77')]=_0x4476cc,_0x6c175d[_0x3f7612('0x4bf')]=![];!_0x6c175d[_0x3f7612('0x1c40')]&&(_0x6c175d[_0x3f7612('0x1c40')]={'channel':'voice','type':_0x3f7612('0x2e4'),'ticketType':_0x3f7612('0x1905')},_0x6c175d['title']='INTEGRATIONS.NEW_SALESFORCECONFIGURATION',_0x6c175d[_0x3f7612('0x4bf')]=!![]);_0x6c175d[_0x3f7612('0xddd')]=_0x121c39,_0x6c175d[_0x3f7612('0x347')]=_0x260b48,_0x6c175d[_0x3f7612('0x68c')]=_0x1ddeec,_0x6c175d[_0x3f7612('0x2601')]=_0x484cc6,_0x6c175d[_0x3f7612('0xca7')]=_0x4be9b9;function _0x121c39(){const _0x36e92e=_0x3f7612;_0x6c175d[_0x36e92e('0x25be')]=[],_0x2683e9[_0x36e92e('0x129c')][_0x36e92e('0x2757')]({'id':_0x237eaa['params']['id']},_0x6c175d[_0x36e92e('0x1c40')])[_0x36e92e('0x1714')]['then'](function(_0x563d46){const _0x2abcad=_0x36e92e;_0x6c175d['configurations'][_0x2abcad('0xc51')](_0x563d46[_0x2abcad('0x1cbf')]()),_0x27b9e1[_0x2abcad('0x173b')]({'title':_0x2abcad('0x24ed'),'msg':_0x6c175d[_0x2abcad('0x1c40')][_0x2abcad('0x1a8d')]?_0x6c175d[_0x2abcad('0x1c40')]['name']+_0x2abcad('0x1e4a'):''}),_0x4be9b9(_0x563d46);})[_0x36e92e('0x1cb5')](function(_0xa0d164){const _0x5791e8=_0x36e92e;if(_0xa0d164[_0x5791e8('0x11fc')]&&_0xa0d164[_0x5791e8('0x11fc')][_0x5791e8('0x25be')]&&_0xa0d164[_0x5791e8('0x11fc')][_0x5791e8('0x25be')][_0x5791e8('0x2566')]){_0x6c175d[_0x5791e8('0x25be')]=_0xa0d164[_0x5791e8('0x11fc')]['errors']||[{'message':_0xa0d164[_0x5791e8('0x17df')](),'type':'api.intSalesforceConfiguration.save'}];for(let _0x22b0bf=0x0;_0x22b0bf<_0xa0d164[_0x5791e8('0x11fc')][_0x5791e8('0x25be')][_0x5791e8('0x2566')];_0x22b0bf+=0x1){_0x27b9e1['error']({'title':_0xa0d164['data']['errors'][_0x22b0bf][_0x5791e8('0x1d7')],'msg':_0xa0d164['data']['errors'][_0x22b0bf][_0x5791e8('0x15e2')]});}}else _0x27b9e1[_0x5791e8('0x5e8')]({'title':_0xa0d164['status']?_0x5791e8('0x15d1')+_0xa0d164['status']+_0x5791e8('0x1b0b')+_0xa0d164[_0x5791e8('0x22ce')]:'api.intSalesforceConfiguration.save','msg':_0xa0d164[_0x5791e8('0x11fc')]?JSON[_0x5791e8('0x1be0')](_0xa0d164[_0x5791e8('0x11fc')]['message']):_0xa0d164[_0x5791e8('0x17df')]()});});}function _0x260b48(){const _0x5d84c0=_0x3f7612;_0x6c175d[_0x5d84c0('0x25be')]=[],_0x2683e9[_0x5d84c0('0x12d0')][_0x5d84c0('0x2740')]({'id':_0x6c175d[_0x5d84c0('0x1c40')]['id']},_0x6c175d[_0x5d84c0('0x1c40')])[_0x5d84c0('0x1714')][_0x5d84c0('0x2788')](function(_0x2d435a){const _0x35a01c=_0x5d84c0,_0x548c39=_0x283545()[_0x35a01c('0x20e8')](_0x6c175d[_0x35a01c('0x1b77')],{'id':_0x2d435a['id']});_0x548c39&&_0x283545()[_0x35a01c('0x2503')](_0x548c39,_0x283545()[_0x35a01c('0x41b')](_0x2d435a[_0x35a01c('0x1cbf')](),_0x283545()[_0x35a01c('0x2163')](_0x548c39))),_0x27b9e1[_0x35a01c('0x173b')]({'title':'SalesforceConfiguration\x20properly\x20saved!','msg':_0x6c175d[_0x35a01c('0x1c40')][_0x35a01c('0x1a8d')]?_0x6c175d[_0x35a01c('0x1c40')][_0x35a01c('0x1a8d')]+_0x35a01c('0x24cf'):''}),_0x4be9b9(_0x2d435a);})[_0x5d84c0('0x1cb5')](function(_0xb1f33b){const _0x5aa678=_0x5d84c0;if(_0xb1f33b['data']&&_0xb1f33b[_0x5aa678('0x11fc')][_0x5aa678('0x25be')]&&_0xb1f33b['data'][_0x5aa678('0x25be')][_0x5aa678('0x2566')]){_0x6c175d[_0x5aa678('0x25be')]=_0xb1f33b[_0x5aa678('0x11fc')][_0x5aa678('0x25be')]||[{'message':_0xb1f33b[_0x5aa678('0x17df')](),'type':_0x5aa678('0x276a')}];for(let _0x57fecd=0x0;_0x57fecd<_0xb1f33b['data']['errors']['length'];_0x57fecd++){_0x27b9e1[_0x5aa678('0x5e8')]({'title':_0xb1f33b[_0x5aa678('0x11fc')][_0x5aa678('0x25be')][_0x57fecd][_0x5aa678('0x1d7')],'msg':_0xb1f33b[_0x5aa678('0x11fc')][_0x5aa678('0x25be')][_0x57fecd][_0x5aa678('0x15e2')]});}}else _0x27b9e1[_0x5aa678('0x5e8')]({'title':_0xb1f33b['status']?'API:'+_0xb1f33b[_0x5aa678('0x1b51')]+_0x5aa678('0x1b0b')+_0xb1f33b['statusText']:_0x5aa678('0x276a'),'msg':_0xb1f33b[_0x5aa678('0x11fc')]?JSON['stringify'](_0xb1f33b[_0x5aa678('0x11fc')][_0x5aa678('0x15e2')]):_0xb1f33b[_0x5aa678('0x17df')]()});});}function _0x1ddeec(_0x16eeb1){const _0x19d9a5=_0x3f7612;_0x6c175d[_0x19d9a5('0x25be')]=[];const _0x6072dc=_0x53bbc3[_0x19d9a5('0x112e')]()['title'](_0x19d9a5('0x458'))[_0x19d9a5('0x1c98')](_0x19d9a5('0x133f'))['ariaLabel'](_0x19d9a5('0x1471'))['ok'](_0x19d9a5('0x2786'))[_0x19d9a5('0x1801')](_0x19d9a5('0x1481'))[_0x19d9a5('0x24d0')](_0x16eeb1);_0x53bbc3['show'](_0x6072dc)['then'](function(){const _0x20e6c4=_0x19d9a5;_0x2683e9[_0x20e6c4('0x12d0')][_0x20e6c4('0x17c4')]({'id':_0x6c175d['salesforceConfiguration']['id']})[_0x20e6c4('0x1714')][_0x20e6c4('0x2788')](function(){const _0x2cb628=_0x20e6c4;_0x283545()['remove'](_0x6c175d[_0x2cb628('0x1b77')],{'id':_0x6c175d[_0x2cb628('0x1c40')]['id']}),_0x27b9e1['success']({'title':_0x2cb628('0x2422'),'msg':(_0x6c175d[_0x2cb628('0x1c40')][_0x2cb628('0x1a8d')]||_0x2cb628('0x1c40'))+_0x2cb628('0x14d4')}),_0x4be9b9(_0x6c175d[_0x2cb628('0x1c40')]);})[_0x20e6c4('0x1cb5')](function(_0x4c089a){const _0x1c3a34=_0x20e6c4;if(_0x4c089a[_0x1c3a34('0x11fc')]&&_0x4c089a[_0x1c3a34('0x11fc')]['errors']&&_0x4c089a[_0x1c3a34('0x11fc')]['errors']['length']){_0x6c175d[_0x1c3a34('0x25be')]=_0x4c089a['data'][_0x1c3a34('0x25be')]||[{'message':_0x4c089a['toString'](),'type':_0x1c3a34('0x20c5')}];for(let _0x278402=0x0;_0x278402<_0x4c089a[_0x1c3a34('0x11fc')][_0x1c3a34('0x25be')][_0x1c3a34('0x2566')];_0x278402++){_0x27b9e1[_0x1c3a34('0x5e8')]({'title':_0x4c089a['data']['errors'][_0x278402][_0x1c3a34('0x1d7')],'msg':_0x4c089a[_0x1c3a34('0x11fc')][_0x1c3a34('0x25be')][_0x278402][_0x1c3a34('0x15e2')]});}}else _0x27b9e1[_0x1c3a34('0x5e8')]({'title':_0x4c089a[_0x1c3a34('0x1b51')]?'API:'+_0x4c089a['status']+'\x20-\x20'+_0x4c089a[_0x1c3a34('0x22ce')]:_0x1c3a34('0x20c5'),'msg':_0x4c089a['data']?JSON[_0x1c3a34('0x1be0')](_0x4c089a[_0x1c3a34('0x11fc')]['message']):_0x4c089a['message']||_0x4c089a[_0x1c3a34('0x17df')]()});});},function(){});}function _0x484cc6(_0x394f27){return _0x394f27===null?undefined:new Date(_0x394f27);}function _0x4be9b9(_0x9c0b8a){const _0x54659a=_0x3f7612;_0x53bbc3[_0x54659a('0x19d')](_0x9c0b8a);}}const _0x139f89=_0x1e669b;_0x23be92[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),_0x34e79e('0x117b'),_0x34e79e('0xd3c'),_0x34e79e('0x82f'),'type',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x23be92(_0x1203ac,_0x24c745,_0x160461,_0x5e9297,_0x3d155e,_0x475f0d,_0x26caed,_0x1db524,_0x1c94be,_0x429fc3,_0x464edb,_0x13422b,_0x4c74fa){const _0x311455=_0x34e79e,_0x349a9b=this;_0x349a9b[_0x311455('0x9cb')]=_0x13422b[_0x311455('0x24cc')](),_0x349a9b[_0x311455('0x25be')]=[],_0x349a9b['title']=_0x311455('0x1df9')+_0x283545()['toUpper'](_0x429fc3),_0x349a9b[_0x311455('0xd3c')]=angular[_0x311455('0x2669')](_0x1db524),_0x349a9b[_0x311455('0x117b')]=_0x26caed,_0x349a9b[_0x311455('0x1d7')]=_0x429fc3,_0x349a9b[_0x311455('0xe28')]=_0x4c74fa,_0x349a9b['newItem']=![];!_0x349a9b[_0x311455('0xd3c')]&&(_0x349a9b[_0x311455('0xd3c')]={'type':'string'},_0x349a9b[_0x311455('0xd3c')][_0x283545()[_0x311455('0x1df5')](_0x429fc3)+'Id']=_0x475f0d['id'],_0x349a9b[_0x311455('0x14e4')]=_0x311455('0x1109')+_0x283545()['toUpper'](_0x429fc3),_0x349a9b['newItem']=!![]);_0x349a9b[_0x311455('0x1586')]=_0x1e0cce,_0x349a9b['saveItem']=_0x220a9f,_0x349a9b[_0x311455('0x1165')]=_0x2c2276,_0x349a9b[_0x311455('0xb4f')]=_0x6054e5,_0x349a9b[_0x311455('0xca7')]=_0x469764,_0x464edb['variable']['get']({'nolimit':!![]})[_0x311455('0x1714')]['then'](function(_0x37cb0f){const _0x1261a9=_0x311455;return _0x349a9b['variables']=_0x37cb0f[_0x1261a9('0x25df')]?_0x37cb0f[_0x1261a9('0x25df')]:[],_0x464edb[_0x1261a9('0x15b7')][_0x1261a9('0x15f8')]()[_0x1261a9('0x1714')];})[_0x311455('0x2788')](function(_0x24e70e){const _0x3dc6f8=_0x311455;return _0x349a9b[_0x3dc6f8('0x1cac')]=_0x283545()[_0x3dc6f8('0xa9f')](_0x283545()[_0x3dc6f8('0x2163')](_0x24e70e),[_0x3dc6f8('0x1714'),_0x3dc6f8('0x187a'),_0x3dc6f8('0x172'),_0x3dc6f8('0x5f'),_0x3dc6f8('0x900')]),_0x349a9b[_0x3dc6f8('0x1cac')][_0x3dc6f8('0x13e3')](_0x3dc6f8('0x12da')),_0x464edb[_0x3dc6f8('0xac')][_0x3dc6f8('0x15f8')]()[_0x3dc6f8('0x1714')];})[_0x311455('0x2788')](function(_0x1b68e0){const _0x2a2024=_0x311455;_0x349a9b[_0x2a2024('0x226b')]=_0x283545()['difference'](_0x283545()[_0x2a2024('0x2163')](_0x1b68e0),[_0x2a2024('0x1714'),_0x2a2024('0x187a'),_0x2a2024('0x172'),_0x2a2024('0x5f'),_0x2a2024('0x900')]),_0x349a9b[_0x2a2024('0x226b')][_0x2a2024('0x13e3')](_0x2a2024('0x12da'));})[_0x311455('0x1cb5')](function(_0x34516e){const _0x590c58=_0x311455;_0x3d155e[_0x590c58('0x5e8')]({'title':_0x34516e[_0x590c58('0x1b51')]?'API:'+_0x34516e['status']+_0x590c58('0x1b0b')+_0x34516e[_0x590c58('0x22ce')]:_0x590c58('0x694'),'msg':_0x34516e[_0x590c58('0x11fc')]?JSON['stringify'](_0x34516e[_0x590c58('0x11fc')]):_0x34516e[_0x590c58('0x17df')]()});}),_0x464edb[_0x311455('0x129c')]['getFields']({'id':_0x1c94be['id'],'ticketType':_0x475f0d[_0x311455('0x3d9')]?_0x475f0d[_0x311455('0x3d9')]:undefined})['$promise'][_0x311455('0x2788')](function(_0x7e5ce8){const _0x133d9b=_0x311455;_0x349a9b[_0x133d9b('0x551')]=!![],_0x349a9b[_0x133d9b('0x1578')]=_0x7e5ce8[_0x133d9b('0x25df')]?_0x7e5ce8[_0x133d9b('0x25df')]:[],_0x349a9b[_0x133d9b('0xd3c')][_0x133d9b('0x1ca9')]&&(_0x349a9b[_0x133d9b('0x1ee9')]=_0x283545()[_0x133d9b('0x20e8')](_0x349a9b[_0x133d9b('0x1578')],{'id':_0x349a9b[_0x133d9b('0xd3c')][_0x133d9b('0x1ca9')]}));})['catch'](function(_0x563de8){const _0x2dca9b=_0x311455;_0x349a9b[_0x2dca9b('0x551')]=![],console[_0x2dca9b('0x5e8')](_0x563de8);});function _0x1e0cce(){const _0x206eca=_0x311455;_0x349a9b[_0x206eca('0x25be')]=[],_0x349a9b[_0x206eca('0x1ee9')]&&(_0x349a9b[_0x206eca('0xd3c')][_0x206eca('0x1ca9')]=_0x349a9b['customField']['id'],_0x349a9b[_0x206eca('0xd3c')][_0x206eca('0x98')]=_0x349a9b['customField'][_0x206eca('0x1a8d')],_0x349a9b[_0x206eca('0xd3c')][_0x206eca('0x1ee9')]=_0x349a9b[_0x206eca('0x1ee9')][_0x206eca('0x1d56')]),_0x464edb['intSalesforceField'][_0x206eca('0xbd0')](_0x349a9b[_0x206eca('0xd3c')])[_0x206eca('0x1714')]['then'](function(_0x499bac){const _0x425f5e=_0x206eca;_0x349a9b['items'][_0x425f5e('0xc51')](_0x499bac),_0x3d155e[_0x425f5e('0x173b')]({'title':_0x283545()[_0x425f5e('0x1df5')](_0x429fc3)+_0x425f5e('0x194d'),'msg':_0x283545()[_0x425f5e('0x1df5')](_0x429fc3)+_0x425f5e('0x1e4a')}),_0x469764();})['catch'](function(_0x6db9e){const _0x4f6a7c=_0x206eca;console['error'](_0x6db9e),_0x349a9b[_0x4f6a7c('0x25be')]=_0x6db9e['data']['errors']||[{'message':_0x6db9e[_0x4f6a7c('0x17df')](),'type':_0x4f6a7c('0x256f')}];});}function _0x220a9f(){const _0x538120=_0x311455;_0x349a9b[_0x538120('0x25be')]=[],_0x349a9b['customField']&&(_0x349a9b[_0x538120('0xd3c')][_0x538120('0x1ca9')]=_0x349a9b['customField']['id'],_0x349a9b['item'][_0x538120('0x98')]=_0x349a9b[_0x538120('0x1ee9')][_0x538120('0x1a8d')],_0x349a9b[_0x538120('0xd3c')]['customField']=_0x349a9b[_0x538120('0x1ee9')]['custom']),_0x464edb[_0x538120('0xb33')][_0x538120('0x2740')]({'id':_0x349a9b['item']['id']},_0x349a9b[_0x538120('0xd3c')])[_0x538120('0x1714')]['then'](function(_0x22195c){const _0x154fc6=_0x538120,_0x16e30c=_0x283545()['find'](_0x349a9b['items'],{'id':_0x22195c['id']});_0x16e30c&&_0x283545()[_0x154fc6('0x2503')](_0x16e30c,_0x22195c),_0x3d155e[_0x154fc6('0x173b')]({'title':_0x283545()['capitalize'](_0x429fc3)+_0x154fc6('0x1d15'),'msg':_0x283545()[_0x154fc6('0x1df5')](_0x429fc3)+'\x20has\x20been\x20saved!'}),_0x469764();})[_0x538120('0x1cb5')](function(_0x25cb28){const _0x99215d=_0x538120;console[_0x99215d('0x5e8')](_0x25cb28),_0x349a9b[_0x99215d('0x25be')]=_0x25cb28[_0x99215d('0x11fc')][_0x99215d('0x25be')]||[{'message':_0x25cb28[_0x99215d('0x17df')](),'type':_0x99215d('0xe95')}];});}function _0x2c2276(_0x28e0a6){const _0x23b8d=_0x311455;_0x349a9b['errors']=[];const _0x1ff82a=_0x5e9297['confirm']()[_0x23b8d('0x14e4')](_0x23b8d('0x458'))['content'](_0x23b8d('0x1b10')+_0x429fc3+_0x23b8d('0x27c7'))['ariaLabel']('Delete\x20'+_0x283545()[_0x23b8d('0x1df5')](_0x429fc3))['ok']('Delete')[_0x23b8d('0x1801')](_0x23b8d('0x1481'))[_0x23b8d('0x24d0')](_0x28e0a6);_0x5e9297['show'](_0x1ff82a)[_0x23b8d('0x2788')](function(){const _0x48cbe0=_0x23b8d;_0x464edb['intSalesforceField'][_0x48cbe0('0x17c4')]({'id':_0x349a9b[_0x48cbe0('0xd3c')]['id']})['$promise']['then'](function(){const _0x3bd9cd=_0x48cbe0;_0x283545()[_0x3bd9cd('0x1a90')](_0x349a9b[_0x3bd9cd('0x117b')],{'id':_0x349a9b[_0x3bd9cd('0xd3c')]['id']}),_0x3d155e[_0x3bd9cd('0x173b')]({'title':_0x283545()[_0x3bd9cd('0x1df5')](_0x429fc3)+_0x3bd9cd('0x2542'),'msg':_0x283545()[_0x3bd9cd('0x1df5')](_0x429fc3)+_0x3bd9cd('0x14d4')}),_0x469764();})['catch'](function(_0x1d9158){const _0x5f230b=_0x48cbe0;console[_0x5f230b('0x5e8')](_0x1d9158),_0x349a9b[_0x5f230b('0x25be')]=_0x1d9158['data'][_0x5f230b('0x25be')]||[{'message':_0x1d9158[_0x5f230b('0x17df')](),'type':_0x5f230b('0x1276')}];});},function(){});}function _0x6054e5(){const _0x1bf3a5=_0x311455;return _0x349a9b[_0x1bf3a5('0xd3c')][_0x1bf3a5('0x1889')]!==undefined?_0x349a9b['item']['variableName']:_0x1bf3a5('0x6d1');}function _0x469764(){const _0x204708=_0x311455;_0x5e9297[_0x204708('0x19d')]();}}const _0x15f933=_0x23be92;_0x4ac4a7[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'salesforceAccount','userProfileSection'];function _0x4ac4a7(_0x19b471,_0x3a2025,_0x361244,_0x1c2d58,_0x2bdea6,_0x48a389,_0x36a31e,_0x1fd527,_0x29f5a3,_0x3db1bf,_0x4114c3,_0x39d2af){const _0x21ce8d=_0x34e79e,_0x31c685=this;_0x31c685[_0x21ce8d('0x9cb')]=_0x3db1bf[_0x21ce8d('0x24cc')](),_0x31c685['license']=_0x48a389,_0x31c685[_0x21ce8d('0x1af0')]=_0x36a31e,_0x31c685[_0x21ce8d('0x18ad')]=_0x31c685[_0x21ce8d('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31c685['location']=_0x3a2025[_0x21ce8d('0x170c')]()+_0x21ce8d('0x726')+_0x3a2025['host'](),_0x31c685['salesforceAccount']=_0x4114c3||_0x19b471[_0x21ce8d('0x4b9')][_0x21ce8d('0xf32')]||{},_0x31c685[_0x21ce8d('0xec9')]=_0x39d2af&&_0x39d2af[_0x21ce8d('0x338')]==0x1?_0x39d2af[_0x21ce8d('0x25df')][0x0]:null,_0x31c685['crudPermissions']=_0x3db1bf[_0x21ce8d('0x157e')](_0x31c685[_0x21ce8d('0xec9')]?_0x31c685[_0x21ce8d('0xec9')][_0x21ce8d('0xe28')]:null),_0x31c685[_0x21ce8d('0x1193')]={},_0x31c685[_0x21ce8d('0xcb3')]=_0x19b471['params']['tab']||0x0,_0x31c685[_0x21ce8d('0x204f')]=_0x29f5a3[_0x21ce8d('0x2276')],_0x31c685[_0x21ce8d('0x20ca')]=_0x5d4f3e,_0x31c685[_0x21ce8d('0x379')]=_0x498f49;function _0x5d4f3e(){const _0x4e7e44=_0x21ce8d;_0x19b471['go'](_0x4e7e44('0x15ff'),{},{'reload':_0x4e7e44('0x15ff')});}function _0x498f49(){const _0x2e818b=_0x21ce8d;_0x1fd527[_0x2e818b('0x129c')][_0x2e818b('0x2740')]({'id':_0x31c685[_0x2e818b('0xf32')]['id']},_0x31c685[_0x2e818b('0xf32')])[_0x2e818b('0x1714')][_0x2e818b('0x2788')](function(){const _0x3431e8=_0x2e818b;_0x29f5a3[_0x3431e8('0x173b')]({'title':_0x3431e8('0x3a5'),'msg':_0x31c685[_0x3431e8('0xf32')][_0x3431e8('0x1a8d')]?_0x31c685[_0x3431e8('0xf32')][_0x3431e8('0x1a8d')]+_0x3431e8('0x6f8'):''});})['catch'](function(_0x46b66c){const _0x1d6646=_0x2e818b;_0x29f5a3[_0x1d6646('0x5e8')]({'title':_0x46b66c[_0x1d6646('0x1b51')]?_0x1d6646('0x15d1')+_0x46b66c[_0x1d6646('0x1b51')]+_0x1d6646('0x1b0b')+_0x46b66c[_0x1d6646('0x22ce')]:_0x1d6646('0x1836'),'msg':_0x46b66c[_0x1d6646('0x11fc')]?JSON['stringify'](_0x46b66c[_0x1d6646('0x11fc')]):_0x46b66c['toString']()});});}}const _0xad68b7=_0x4ac4a7,_0x11c264=_0x18dd13['p']+_0x34e79e('0xf27');_0x20f6b8[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x258f'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x20f6b8(_0x349e69,_0x420e6f,_0x1ba024,_0x4283f1,_0x4df95a,_0xe6b3a8,_0x22b189,_0x518a1a,_0x3d6ab6,_0x2c30ac,_0x36b09b,_0x3f2b33,_0x14270b,_0x170eb7,_0x4538c6,_0x290a14,_0x1ee38d){const _0x44d7e9=_0x34e79e,_0x363172=this;_0x363172[_0x44d7e9('0x130d')]=_0x290a14,_0x363172[_0x44d7e9('0x1af0')]=_0x1ee38d,_0x363172[_0x44d7e9('0x9cb')]=_0x4538c6[_0x44d7e9('0x24cc')](),_0x363172[_0x44d7e9('0x258f')]=_0x3d6ab6||{'count':0x0,'rows':[]},_0x363172[_0x44d7e9('0x63c')]=_0x2c30ac,_0x363172[_0x44d7e9('0xec9')]=_0x36b09b&&_0x36b09b['count']==0x1?_0x36b09b[_0x44d7e9('0x25df')][0x0]:null,_0x363172[_0x44d7e9('0xe28')]=_0x4538c6[_0x44d7e9('0x157e')](_0x363172[_0x44d7e9('0xec9')]?_0x363172[_0x44d7e9('0xec9')]['crudPermissions']:null),_0x363172[_0x44d7e9('0x26a9')]=_0x44d7e9('0x258f'),_0x363172[_0x44d7e9('0x2278')]='',_0x363172[_0x44d7e9('0x25e2')]=null,_0x363172[_0x44d7e9('0x11b5')]=[],_0x363172[_0x44d7e9('0x135a')]={'fields':_0x44d7e9('0xcd3'),'limit':0xa,'page':0x1},_0x363172[_0x44d7e9('0x1221')]=_0x283545()[_0x44d7e9('0x13cf')]([{'option':'Integration_Tab','value':_0x44d7e9('0x1f5f')},{'option':'New_Tab','value':_0x44d7e9('0x1b59')}],function(_0x2ae189){const _0xa74f1b=_0x44d7e9;return _0x283545()['replace'](_0x2ae189[_0xa74f1b('0x49')],new RegExp('\x27','g'),'');}),_0x363172[_0x44d7e9('0x1f7e')]=_0x472e6c,_0x363172[_0x44d7e9('0x1f2f')]=_0x49dba6,_0x363172[_0x44d7e9('0x1e5')]=_0x346267,_0x363172['success']=_0x4847a0,_0x363172[_0x44d7e9('0x27c3')]=_0xd2b2e4,_0x363172['createOrEditSalesforceAccount']=_0x3cbb99,_0x363172[_0x44d7e9('0x1ff6')]=_0x2239b2,_0x363172[_0x44d7e9('0x1ae1')]=_0xc0d072,_0x363172[_0x44d7e9('0x24b3')]=_0x36356a,_0x363172[_0x44d7e9('0x2486')]=_0x4a022b,_0x363172['selectAllSalesforceAccounts']=_0x2ed1a8;function _0x472e6c(_0x3eecc1){const _0x4b5f6f=_0x44d7e9;_0x1ba024['go'](_0x4b5f6f('0x1cc0'),{'id':_0x3eecc1['id'],'salesforceAccount':_0x3eecc1,'crudPermissions':_0x363172[_0x4b5f6f('0xe28')]});}function _0x49dba6(_0xf093b){const _0x2ecb08=_0x44d7e9;return _0x3f2b33[_0x2ecb08('0x129c')]['getFields']({'id':_0xf093b['id'],'test':!![]})[_0x2ecb08('0x1714')][_0x2ecb08('0x2788')](function(){const _0x19164b=_0x2ecb08;_0x170eb7[_0x19164b('0x173b')]({'title':_0x19164b('0x1421'),'msg':_0x19164b('0x53e')});})[_0x2ecb08('0x1cb5')](function(_0x38ad17){const _0x369bb3=_0x2ecb08;_0x170eb7['error']({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x38ad17[_0x369bb3('0x11fc')]?_0x38ad17[_0x369bb3('0x11fc')][_0x369bb3('0x15e2')]?_0x38ad17[_0x369bb3('0x11fc')][_0x369bb3('0x15e2')]:JSON[_0x369bb3('0x1be0')](_0x38ad17[_0x369bb3('0x11fc')]):_0x38ad17[_0x369bb3('0x17df')]()});});}function _0x346267(_0x24f986,_0xaed66b){const _0x2da2d1=_0x44d7e9,_0x7c613e=_0x4df95a[_0x2da2d1('0x112e')]()[_0x2da2d1('0x14e4')](_0x2da2d1('0x2114')+_0x283545()['startCase'](_0x2da2d1('0xf32'))+'?')[_0x2da2d1('0x93e')](''+(_0x24f986['name']||_0x2da2d1('0xf32'))+_0x2da2d1('0x229e')+_0x2da2d1('0x27c7'))[_0x2da2d1('0x10bc')](_0x2da2d1('0x1917'))[_0x2da2d1('0x24d0')](_0xaed66b)['ok']('OK')[_0x2da2d1('0x1801')](_0x2da2d1('0x1d8d'));_0x4df95a[_0x2da2d1('0x2fa')](_0x7c613e)['then'](function(){_0x2239b2(_0x24f986);},function(){const _0x20232e=_0x2da2d1;console[_0x20232e('0x10df')]('CANCEL');});}let _0x3c6980=!![],_0x3a63d6=0x1;_0x349e69['$watch'](_0x44d7e9('0x1569'),function(_0x30bdd0,_0x32980d){const _0x244b4f=_0x44d7e9;_0x3c6980?_0x22b189(function(){_0x3c6980=![];}):(!_0x32980d&&(_0x3a63d6=_0x363172[_0x244b4f('0x135a')][_0x244b4f('0x23f5')]),_0x30bdd0!==_0x32980d&&(_0x363172[_0x244b4f('0x135a')][_0x244b4f('0x23f5')]=0x1),!_0x30bdd0&&(_0x363172[_0x244b4f('0x135a')]['page']=_0x3a63d6),_0x363172[_0x244b4f('0x27c3')]());});function _0x4847a0(_0x2ede23){const _0x4c82b8=_0x44d7e9;_0x363172[_0x4c82b8('0x258f')]=_0x2ede23||{'count':0x0,'rows':[]};}function _0xd2b2e4(){const _0x543d75=_0x44d7e9;_0x363172['query'][_0x543d75('0x19e')]=(_0x363172[_0x543d75('0x135a')][_0x543d75('0x23f5')]-0x1)*_0x363172[_0x543d75('0x135a')][_0x543d75('0x68e')],_0x4538c6['hasRole']('admin')?_0x363172[_0x543d75('0x1808')]=_0x3f2b33[_0x543d75('0x129c')][_0x543d75('0x1335')](_0x363172[_0x543d75('0x135a')],_0x4847a0)['$promise']:(_0x363172[_0x543d75('0x135a')]['id']=_0x363172[_0x543d75('0x63c')]['id'],_0x363172[_0x543d75('0x135a')][_0x543d75('0xb13')]=_0x543d75('0x22a6'),_0x363172[_0x543d75('0x1808')]=_0x3f2b33[_0x543d75('0x63c')]['getResources'](_0x363172[_0x543d75('0x135a')],_0x4847a0)[_0x543d75('0x1714')]);}function _0x3cbb99(_0xfa5f35,_0x4ec67b){const _0x5e6a30=_0x44d7e9;_0x4df95a[_0x5e6a30('0x2fa')]({'controller':_0x5e6a30('0x1339'),'controllerAs':'vm','templateUrl':_0x11c264,'parent':angular[_0x5e6a30('0x16b1')](_0xe6b3a8['body']),'targetEvent':_0xfa5f35,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x4ec67b,'salesforceAccounts':_0x363172[_0x5e6a30('0x258f')][_0x5e6a30('0x25df')],'license':_0x363172[_0x5e6a30('0x130d')],'setting':_0x363172['setting'],'crudPermissions':_0x363172[_0x5e6a30('0xe28')]}});}function _0x2239b2(_0x4e76dc){const _0x4fedd0=_0x44d7e9;_0x3f2b33[_0x4fedd0('0x129c')][_0x4fedd0('0x17c4')]({'id':_0x4e76dc['id']})[_0x4fedd0('0x1714')][_0x4fedd0('0x2788')](function(){const _0x1f2f2a=_0x4fedd0;_0x283545()[_0x1f2f2a('0x1a90')](_0x363172[_0x1f2f2a('0x258f')][_0x1f2f2a('0x25df')],{'id':_0x4e76dc['id']}),_0x363172['salesforceAccounts'][_0x1f2f2a('0x338')]-=0x1,!_0x363172[_0x1f2f2a('0x258f')][_0x1f2f2a('0x25df')][_0x1f2f2a('0x2566')]&&_0x363172[_0x1f2f2a('0x27c3')](),_0x170eb7[_0x1f2f2a('0x173b')]({'title':_0x283545()[_0x1f2f2a('0x114')]('SalesforceAccount')+_0x1f2f2a('0x20db'),'msg':_0x4e76dc[_0x1f2f2a('0x1a8d')]?_0x4e76dc[_0x1f2f2a('0x1a8d')]+_0x1f2f2a('0x14d4'):''});})[_0x4fedd0('0x1cb5')](function(_0x430b8e){const _0x1d6071=_0x4fedd0;if(_0x430b8e[_0x1d6071('0x11fc')]&&_0x430b8e['data'][_0x1d6071('0x25be')]&&_0x430b8e[_0x1d6071('0x11fc')][_0x1d6071('0x25be')][_0x1d6071('0x2566')]){_0x363172[_0x1d6071('0x25be')]=_0x430b8e['data']['errors']||[{'message':_0x430b8e[_0x1d6071('0x17df')](),'type':_0x1d6071('0x2184')}];for(let _0x7e422f=0x0;_0x7e422f<_0x430b8e[_0x1d6071('0x11fc')][_0x1d6071('0x25be')][_0x1d6071('0x2566')];_0x7e422f++){_0x170eb7['error']({'title':_0x430b8e[_0x1d6071('0x11fc')][_0x1d6071('0x25be')][_0x7e422f][_0x1d6071('0x1d7')],'msg':_0x430b8e[_0x1d6071('0x11fc')][_0x1d6071('0x25be')][_0x7e422f][_0x1d6071('0x15e2')]});}}else _0x170eb7[_0x1d6071('0x5e8')]({'title':_0x430b8e[_0x1d6071('0x1b51')]?_0x1d6071('0x15d1')+_0x430b8e[_0x1d6071('0x1b51')]+'\x20-\x20'+_0x430b8e[_0x1d6071('0x22ce')]:_0x1d6071('0x2184'),'msg':_0x430b8e[_0x1d6071('0x11fc')]?JSON[_0x1d6071('0x1be0')](_0x430b8e[_0x1d6071('0x11fc')][_0x1d6071('0x15e2')]):_0x430b8e['message']||_0x430b8e[_0x1d6071('0x17df')]()});});}function _0xc0d072(){const _0x48b626=_0x44d7e9,_0x38e507=angular[_0x48b626('0x2669')](_0x363172['selectedSalesforceAccounts']);return _0x363172[_0x48b626('0x11b5')]=[],_0x38e507;}function _0x36356a(_0xf56882){const _0x283056=_0x44d7e9,_0x3cd698=_0x4df95a[_0x283056('0x112e')]()[_0x283056('0x14e4')](_0x283056('0xeb2'))[_0x283056('0x93e')](_0x283056('0x1670')+_0x363172[_0x283056('0x11b5')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x283056('0x10bc')](_0x283056('0x1d9b'))[_0x283056('0x24d0')](_0xf56882)['ok']('OK')[_0x283056('0x1801')]('CANCEL');_0x4df95a['show'](_0x3cd698)['then'](function(){const _0x886177=_0x283056;_0x363172[_0x886177('0x11b5')]['forEach'](function(_0x4ba675){_0x2239b2(_0x4ba675);}),_0x363172['selectedSalesforceAccounts']=[];});}function _0x4a022b(){const _0x48a53f=_0x44d7e9;_0x363172[_0x48a53f('0x11b5')]=[];}function _0x2ed1a8(){const _0x18ce61=_0x44d7e9;_0x363172['selectedSalesforceAccounts']=_0x363172[_0x18ce61('0x258f')][_0x18ce61('0x25df')];}}const _0x3bf3af=_0x20f6b8;_0x57adb9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1cbb'),_0x34e79e('0x27bd'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x57adb9(_0x4898ad,_0xe4523c,_0x5b5a9a,_0x3a493e,_0x165407,_0x4d0138,_0x5626b5,_0x2599f7,_0x21b9f9,_0x93b9b4,_0x53338b,_0x18ea1c,_0x127d47,_0x4215d2){const _0x4be9ad=_0x34e79e,_0x1265bd=this;_0x1265bd[_0x4be9ad('0x9cb')]=_0x53338b[_0x4be9ad('0x24cc')](),_0x1265bd['errors']=[],_0x1265bd['setting']=_0x127d47,_0x1265bd[_0x4be9ad('0x130d')]=_0x18ea1c,_0x1265bd[_0x4be9ad('0xe28')]=_0x4215d2,_0x1265bd[_0x4be9ad('0x1193')]={},_0x1265bd[_0x4be9ad('0x18ad')]=_0x1265bd[_0x4be9ad('0x1af0')]&&_0x1265bd[_0x4be9ad('0x1af0')][_0x4be9ad('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1265bd['title']='INTEGRATIONS.EDIT_SERVICENOWACCOUNT',_0x1265bd[_0x4be9ad('0x27bd')]=angular['copy'](_0x21b9f9),_0x1265bd[_0x4be9ad('0x1cbb')]=_0x2599f7,_0x1265bd[_0x4be9ad('0x1f6b')]=![];!_0x1265bd[_0x4be9ad('0x27bd')]&&(_0x1265bd[_0x4be9ad('0x27bd')]={'serverUrl':_0x5b5a9a[_0x4be9ad('0x170c')]()+_0x4be9ad('0x726')+_0x5b5a9a[_0x4be9ad('0x1c6a')]()+(_0x5b5a9a[_0x4be9ad('0x1fee')]()?':'+_0x5b5a9a[_0x4be9ad('0x1fee')]():'')},_0x1265bd['title']=_0x4be9ad('0xc7e'),_0x1265bd['newServicenowAccount']=!![]);_0x1265bd[_0x4be9ad('0x2e6')]=_0x4fe83f,_0x1265bd[_0x4be9ad('0x17bf')]=_0x212c93,_0x1265bd[_0x4be9ad('0x795')]=_0xf08e9,_0x1265bd[_0x4be9ad('0x2601')]=_0x373e3d,_0x1265bd[_0x4be9ad('0xca7')]=_0x4c3a59;function _0x4fe83f(){const _0x3130d9=_0x4be9ad;_0x1265bd['errors']=[],_0x93b9b4['intServicenowAccount'][_0x3130d9('0xbd0')](_0x1265bd['servicenowAccount'])[_0x3130d9('0x1714')][_0x3130d9('0x2788')](function(_0x55177b){const _0x3fe88d=_0x3130d9;_0x1265bd[_0x3fe88d('0x1cbb')][_0x3fe88d('0xc51')](_0x55177b['toJSON']()),_0x5626b5[_0x3fe88d('0x173b')]({'title':_0x3fe88d('0x2299'),'msg':_0x1265bd[_0x3fe88d('0x27bd')]['name']?_0x1265bd['servicenowAccount'][_0x3fe88d('0x1a8d')]+_0x3fe88d('0x1e4a'):''}),_0x4c3a59(_0x55177b);})[_0x3130d9('0x1cb5')](function(_0x1b600c){const _0x2e0cd2=_0x3130d9;if(_0x1b600c[_0x2e0cd2('0x11fc')]&&_0x1b600c[_0x2e0cd2('0x11fc')]['errors']&&_0x1b600c[_0x2e0cd2('0x11fc')]['errors']['length']){_0x1265bd[_0x2e0cd2('0x25be')]=_0x1b600c[_0x2e0cd2('0x11fc')][_0x2e0cd2('0x25be')]||[{'message':_0x1b600c[_0x2e0cd2('0x17df')](),'type':'api.intServicenowAccount.save'}];for(let _0x411b1b=0x0;_0x411b1b<_0x1b600c[_0x2e0cd2('0x11fc')]['errors'][_0x2e0cd2('0x2566')];_0x411b1b+=0x1){_0x5626b5[_0x2e0cd2('0x5e8')]({'title':_0x1b600c[_0x2e0cd2('0x11fc')][_0x2e0cd2('0x25be')][_0x411b1b]['type'],'msg':_0x1b600c[_0x2e0cd2('0x11fc')][_0x2e0cd2('0x25be')][_0x411b1b][_0x2e0cd2('0x15e2')]});}}else _0x5626b5['error']({'title':_0x1b600c[_0x2e0cd2('0x1b51')]?_0x2e0cd2('0x15d1')+_0x1b600c['status']+_0x2e0cd2('0x1b0b')+_0x1b600c[_0x2e0cd2('0x22ce')]:_0x2e0cd2('0x120c'),'msg':_0x1b600c[_0x2e0cd2('0x11fc')]?JSON[_0x2e0cd2('0x1be0')](_0x1b600c[_0x2e0cd2('0x11fc')]['message']):_0x1b600c[_0x2e0cd2('0x17df')]()});});}function _0x212c93(){const _0x4b1d66=_0x4be9ad;_0x1265bd['errors']=[],_0x93b9b4[_0x4b1d66('0xa74')][_0x4b1d66('0x2740')]({'id':_0x1265bd[_0x4b1d66('0x27bd')]['id']},_0x1265bd['servicenowAccount'])[_0x4b1d66('0x1714')][_0x4b1d66('0x2788')](function(_0x5db9a7){const _0x4629ef=_0x4b1d66,_0x10980e=_0x283545()[_0x4629ef('0x20e8')](_0x1265bd['servicenowAccounts'],{'id':_0x5db9a7['id']});_0x10980e&&_0x283545()[_0x4629ef('0x2503')](_0x10980e,_0x283545()[_0x4629ef('0x41b')](_0x5db9a7[_0x4629ef('0x1cbf')](),_0x283545()['keys'](_0x10980e))),_0x5626b5[_0x4629ef('0x173b')]({'title':_0x4629ef('0x190f'),'msg':_0x1265bd[_0x4629ef('0x27bd')][_0x4629ef('0x1a8d')]?_0x1265bd['servicenowAccount'][_0x4629ef('0x1a8d')]+_0x4629ef('0x24cf'):''}),_0x4c3a59(_0x5db9a7);})['catch'](function(_0x50d61a){const _0x3fab02=_0x4b1d66;if(_0x50d61a[_0x3fab02('0x11fc')]&&_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')]&&_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')]['length']){_0x1265bd['errors']=_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')]||[{'message':_0x50d61a['toString'](),'type':_0x3fab02('0x27f3')}];for(let _0x4ffe4b=0x0;_0x4ffe4b<_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')][_0x3fab02('0x2566')];_0x4ffe4b++){_0x5626b5[_0x3fab02('0x5e8')]({'title':_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')][_0x4ffe4b]['type'],'msg':_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x25be')][_0x4ffe4b][_0x3fab02('0x15e2')]});}}else _0x5626b5[_0x3fab02('0x5e8')]({'title':_0x50d61a['status']?_0x3fab02('0x15d1')+_0x50d61a[_0x3fab02('0x1b51')]+_0x3fab02('0x1b0b')+_0x50d61a[_0x3fab02('0x22ce')]:'api.intServicenowAccount.update','msg':_0x50d61a[_0x3fab02('0x11fc')]?JSON['stringify'](_0x50d61a[_0x3fab02('0x11fc')][_0x3fab02('0x15e2')]):_0x50d61a[_0x3fab02('0x17df')]()});});}function _0xf08e9(_0x5aa781){const _0x5d2f7d=_0x4be9ad;_0x1265bd[_0x5d2f7d('0x25be')]=[];const _0x43c68a=_0x3a493e[_0x5d2f7d('0x112e')]()[_0x5d2f7d('0x14e4')](_0x5d2f7d('0x458'))['content'](_0x5d2f7d('0x71b'))[_0x5d2f7d('0x10bc')]('Delete\x20ServicenowAccount')['ok'](_0x5d2f7d('0x2786'))['cancel']('Cancel')[_0x5d2f7d('0x24d0')](_0x5aa781);_0x3a493e[_0x5d2f7d('0x2fa')](_0x43c68a)[_0x5d2f7d('0x2788')](function(){const _0x4f185b=_0x5d2f7d;_0x93b9b4[_0x4f185b('0xa74')][_0x4f185b('0x17c4')]({'id':_0x1265bd[_0x4f185b('0x27bd')]['id']})[_0x4f185b('0x1714')]['then'](function(){const _0x51bcbf=_0x4f185b;_0x283545()[_0x51bcbf('0x1a90')](_0x1265bd['servicenowAccounts'],{'id':_0x1265bd[_0x51bcbf('0x27bd')]['id']}),_0x5626b5[_0x51bcbf('0x173b')]({'title':_0x51bcbf('0x98a'),'msg':(_0x1265bd[_0x51bcbf('0x27bd')][_0x51bcbf('0x1a8d')]||_0x51bcbf('0x27bd'))+_0x51bcbf('0x14d4')}),_0x4c3a59(_0x1265bd[_0x51bcbf('0x27bd')]);})[_0x4f185b('0x1cb5')](function(_0x2b546c){const _0x1c03a6=_0x4f185b;if(_0x2b546c[_0x1c03a6('0x11fc')]&&_0x2b546c[_0x1c03a6('0x11fc')][_0x1c03a6('0x25be')]&&_0x2b546c[_0x1c03a6('0x11fc')]['errors'][_0x1c03a6('0x2566')]){_0x1265bd[_0x1c03a6('0x25be')]=_0x2b546c[_0x1c03a6('0x11fc')][_0x1c03a6('0x25be')]||[{'message':_0x2b546c[_0x1c03a6('0x17df')](),'type':'api.intServicenowAccount.delete'}];for(let _0x50a737=0x0;_0x50a737<_0x2b546c[_0x1c03a6('0x11fc')]['errors'][_0x1c03a6('0x2566')];_0x50a737++){_0x5626b5[_0x1c03a6('0x5e8')]({'title':_0x2b546c[_0x1c03a6('0x11fc')]['errors'][_0x50a737]['type'],'msg':_0x2b546c[_0x1c03a6('0x11fc')][_0x1c03a6('0x25be')][_0x50a737]['message']});}}else _0x5626b5[_0x1c03a6('0x5e8')]({'title':_0x2b546c[_0x1c03a6('0x1b51')]?_0x1c03a6('0x15d1')+_0x2b546c[_0x1c03a6('0x1b51')]+_0x1c03a6('0x1b0b')+_0x2b546c[_0x1c03a6('0x22ce')]:_0x1c03a6('0x47d'),'msg':_0x2b546c[_0x1c03a6('0x11fc')]?JSON[_0x1c03a6('0x1be0')](_0x2b546c['data'][_0x1c03a6('0x15e2')]):_0x2b546c['message']||_0x2b546c[_0x1c03a6('0x17df')]()});});},function(){});}function _0x373e3d(_0x1ff6a5){return _0x1ff6a5===null?undefined:new Date(_0x1ff6a5);}function _0x4c3a59(_0x2f7718){const _0x2cc5c0=_0x4be9ad;_0x3a493e[_0x2cc5c0('0x19d')](_0x2f7718);}}const _0x7fbe20=_0x57adb9,_0x13805b=_0x18dd13['p']+_0x34e79e('0x1640'),_0x28912c=_0x18dd13['p']+_0x34e79e('0x15d2');_0x310762['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x310762(_0x20aa26,_0x565006,_0x210169,_0x31722c,_0x5339d6){const _0x10b17d=_0x34e79e,_0x3c08e0=this;_0x3c08e0[_0x10b17d('0x9cb')]=_0x5339d6['getCurrentUser'](),_0x3c08e0['servicenowAccount']={},_0x3c08e0[_0x10b17d('0x1099')]={},_0x3c08e0[_0x10b17d('0x1b77')]=[],_0x3c08e0['selectedServicenowConfiguration']=-0x1,_0x3c08e0['crudPermissions'],_0x3c08e0[_0x10b17d('0x24eb')]=_0x3974a0,_0x3c08e0[_0x10b17d('0x2372')]=_0x1d87af,_0x3c08e0['createOrEditServicenowConfiguration']=_0x3d8b98,_0x3c08e0[_0x10b17d('0x2581')]=_0x457a39;function _0x3974a0(_0x64825a,_0x1be1df){const _0x460c3d=_0x10b17d;_0x3c08e0[_0x460c3d('0x27bd')]=_0x64825a,_0x3c08e0[_0x460c3d('0xe28')]=typeof _0x1be1df!=='undefined'?_0x1be1df:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x210169[_0x460c3d('0xa74')][_0x460c3d('0x1168')]({'id':_0x3c08e0[_0x460c3d('0x27bd')]['id'],'sort':_0x460c3d('0x1cee')})[_0x460c3d('0x1714')][_0x460c3d('0x2788')](function(_0xc07f0d){const _0x19ab66=_0x460c3d;return _0x3c08e0[_0x19ab66('0x1b77')]=_0xc07f0d['rows']?_0xc07f0d[_0x19ab66('0x25df')]:[],_0x3c08e0[_0x19ab66('0x1b77')]['length']&&_0x3c08e0[_0x19ab66('0x2372')](0x0),_0x210169[_0x19ab66('0xa72')]['get']({'nolimit':!![],'sort':_0x19ab66('0x1a8d')})[_0x19ab66('0x1714')];})['then'](function(_0x58cd4b){const _0x4b1588=_0x460c3d;_0x3c08e0[_0x4b1588('0xf76')]=_0x58cd4b['rows']?_0x58cd4b[_0x4b1588('0x25df')]:[],_0x3c08e0['variablesById']=_0x283545()[_0x4b1588('0x13cf')](_0x3c08e0[_0x4b1588('0xf76')],'id');})[_0x460c3d('0x1cb5')](function(_0x4972ff){const _0x387671=_0x460c3d;_0x31722c[_0x387671('0x5e8')]({'title':_0x4972ff[_0x387671('0x1b51')]?_0x387671('0x15d1')+_0x4972ff[_0x387671('0x1b51')]+'\x20-\x20'+_0x4972ff[_0x387671('0x22ce')]:_0x387671('0x24e'),'msg':_0x4972ff[_0x387671('0x11fc')]?JSON[_0x387671('0x1be0')](_0x4972ff[_0x387671('0x11fc')]):_0x4972ff[_0x387671('0x17df')]()});});}function _0x1d87af(_0x663a9d){const _0x1dfee1=_0x10b17d;_0x3c08e0[_0x1dfee1('0x1099')]=_0x3c08e0['configurations'][_0x663a9d],_0x3c08e0['selectedServicenowConfiguration']=_0x663a9d,_0x210169[_0x1dfee1('0x2ca')]['getSubjects']({'id':_0x3c08e0[_0x1dfee1('0x1099')]['id']})[_0x1dfee1('0x1714')]['then'](function(_0x34bf70){const _0x49777c=_0x1dfee1;return _0x3c08e0[_0x49777c('0x348')]=_0x34bf70[_0x49777c('0x25df')]?_0x34bf70[_0x49777c('0x25df')]:[],_0x210169[_0x49777c('0x2ca')][_0x49777c('0x221a')]({'id':_0x3c08e0[_0x49777c('0x1099')]['id']})[_0x49777c('0x1714')];})[_0x1dfee1('0x2788')](function(_0x3bc792){const _0x112115=_0x1dfee1;return _0x3c08e0['descriptions']=_0x3bc792[_0x112115('0x25df')]?_0x3bc792[_0x112115('0x25df')]:[],_0x210169[_0x112115('0x2ca')][_0x112115('0x24')]({'id':_0x3c08e0[_0x112115('0x1099')]['id']})[_0x112115('0x1714')];})[_0x1dfee1('0x2788')](function(_0x26d063){const _0x1f4cc3=_0x1dfee1;_0x3c08e0[_0x1f4cc3('0x1578')]=_0x26d063[_0x1f4cc3('0x25df')]?_0x26d063[_0x1f4cc3('0x25df')]:[];})[_0x1dfee1('0x1cb5')](function(_0x403d52){const _0x56dbaf=_0x1dfee1;_0x31722c[_0x56dbaf('0x5e8')]({'title':_0x403d52['status']?_0x56dbaf('0x15d1')+_0x403d52['status']+'\x20-\x20'+_0x403d52[_0x56dbaf('0x22ce')]:_0x56dbaf('0x616'),'msg':_0x403d52['data']?JSON[_0x56dbaf('0x1be0')](_0x403d52[_0x56dbaf('0x11fc')]):_0x403d52[_0x56dbaf('0x17df')]()});});}function _0x3d8b98(_0x839fa1,_0x36e13a){const _0x18f50e=_0x10b17d;_0x20aa26[_0x18f50e('0x2fa')]({'controller':_0x18f50e('0x144c'),'controllerAs':'vm','templateUrl':_0x13805b,'parent':angular['element'](_0x565006[_0x18f50e('0x945')]),'targetEvent':_0x839fa1,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x36e13a,'configurations':_0x3c08e0[_0x18f50e('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x3c08e0[_0x18f50e('0xe28')]}})[_0x18f50e('0x1ed8')](function(){const _0x333f13=_0x18f50e;_0x3c08e0[_0x333f13('0x2372')](0x0);});}function _0x457a39(_0x466d51,_0x71aeb3){const _0x38da1d=_0x10b17d,_0x4cb62e=_0x20aa26[_0x38da1d('0x112e')]()[_0x38da1d('0x14e4')](_0x38da1d('0x141c'))[_0x38da1d('0x93e')](_0x38da1d('0x1670')+(_0x71aeb3[_0x38da1d('0x1a8d')]||_0x38da1d('0x1099'))+_0x38da1d('0x229e')+_0x38da1d('0x27c7'))['ariaLabel'](_0x38da1d('0x2059'))[_0x38da1d('0x24d0')](_0x466d51)['ok']('OK')['cancel'](_0x38da1d('0x1d8d'));_0x20aa26['show'](_0x4cb62e)[_0x38da1d('0x2788')](function(){const _0x5a307d=_0x38da1d;_0x210169[_0x5a307d('0x2ca')]['delete']({'id':_0x71aeb3['id']})[_0x5a307d('0x1714')][_0x5a307d('0x2788')](function(){const _0x516ac9=_0x5a307d;_0x283545()[_0x516ac9('0x1a90')](_0x3c08e0[_0x516ac9('0x1b77')],{'id':_0x71aeb3['id']}),_0x31722c[_0x516ac9('0x173b')]({'title':_0x516ac9('0xe8f'),'msg':_0x71aeb3[_0x516ac9('0x1a8d')]?_0x71aeb3['name']+_0x516ac9('0x14d4'):''});})[_0x5a307d('0x1cb5')](function(_0x3febe0){const _0x5469e3=_0x5a307d;_0x31722c['error']({'title':_0x3febe0[_0x5469e3('0x1b51')]?_0x5469e3('0x15d1')+_0x3febe0[_0x5469e3('0x1b51')]+_0x5469e3('0x1b0b')+_0x3febe0['statusText']:_0x5469e3('0x26b4'),'msg':_0x3febe0[_0x5469e3('0x11fc')]?JSON[_0x5469e3('0x1be0')](_0x3febe0[_0x5469e3('0x11fc')]):_0x3febe0['toString']()});})[_0x5a307d('0x1ed8')](function(){const _0xf5f37f=_0x5a307d;_0x3c08e0[_0xf5f37f('0x2372')](0x0);});},function(){console['log']('CANCEL');});}_0x3c08e0[_0x10b17d('0x2012')]=[],_0x3c08e0[_0x10b17d('0xe3e')]=_0x1b1caf,_0x3c08e0[_0x10b17d('0x13b')]=_0x21d5ba,_0x3c08e0[_0x10b17d('0x5ec')]=_0x93dc27;function _0x1b1caf(_0x520069,_0x1ae04f){const _0x36b979=_0x10b17d;_0x20aa26[_0x36b979('0x2fa')]({'controller':_0x36b979('0x7e8'),'controllerAs':'vm','templateUrl':_0x28912c,'parent':angular['element'](_0x565006[_0x36b979('0x945')]),'targetEvent':_0x520069,'clickOutsideToClose':!![],'locals':{'type':_0x36b979('0x248f'),'item':_0x1ae04f,'items':_0x3c08e0[_0x36b979('0x348')],'configuration':_0x3c08e0['servicenowConfiguration'],'account':_0x3c08e0[_0x36b979('0x27bd')],'license':null,'setting':null,'crudPermissions':_0x3c08e0[_0x36b979('0xe28')]}});}function _0x2e2ae0(_0xdf335f){const _0x4b8ced=_0x10b17d;_0x210169[_0x4b8ced('0x2401')][_0x4b8ced('0x17c4')]({'id':_0xdf335f['id']})[_0x4b8ced('0x1714')][_0x4b8ced('0x2788')](function(){const _0x4b99d6=_0x4b8ced;_0x283545()[_0x4b99d6('0x1a90')](_0x3c08e0[_0x4b99d6('0x348')],{'id':_0xdf335f['id']}),_0x31722c[_0x4b99d6('0x173b')]({'title':_0x4b99d6('0x306'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x4b8ced('0x1cb5')](function(_0x591d94){const _0x216d77=_0x4b8ced;_0x31722c['error']({'title':_0x591d94[_0x216d77('0x1b51')]?_0x216d77('0x15d1')+_0x591d94[_0x216d77('0x1b51')]+'\x20-\x20'+_0x591d94[_0x216d77('0x22ce')]:_0x216d77('0x2803'),'msg':_0x591d94[_0x216d77('0x11fc')]?JSON[_0x216d77('0x1be0')](_0x591d94[_0x216d77('0x11fc')]):_0x591d94[_0x216d77('0x17df')]()});});}function _0x21d5ba(_0x4d5e20,_0x5a90cd){const _0x117e8c=_0x10b17d,_0x12cae5=_0x20aa26[_0x117e8c('0x112e')]()[_0x117e8c('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x117e8c('0x93e')]('Subject'+_0x117e8c('0x27c7'))[_0x117e8c('0x10bc')](_0x117e8c('0x2126'))[_0x117e8c('0x24d0')](_0x4d5e20)['ok']('OK')['cancel'](_0x117e8c('0x1d8d'));_0x20aa26[_0x117e8c('0x2fa')](_0x12cae5)[_0x117e8c('0x2788')](function(){_0x2e2ae0(_0x5a90cd);},function(){const _0x32a61d=_0x117e8c;console[_0x32a61d('0x10df')](_0x32a61d('0x1d8d'));});}function _0x93dc27(_0x24bee6){const _0x3bcad6=_0x10b17d,_0x2ea284=_0x20aa26[_0x3bcad6('0x112e')]()['title'](_0x3bcad6('0xa11'))['htmlContent'](_0x3bcad6('0x1670')+_0x3c08e0['selectedSubjects']['length']+_0x3bcad6('0xbd')+_0x3bcad6('0x27c7'))[_0x3bcad6('0x10bc')](_0x3bcad6('0x19b1'))[_0x3bcad6('0x24d0')](_0x24bee6)['ok']('OK')['cancel'](_0x3bcad6('0x1d8d'));_0x20aa26['show'](_0x2ea284)[_0x3bcad6('0x2788')](function(){const _0x39bd5c=_0x3bcad6;_0x3c08e0[_0x39bd5c('0x2012')][_0x39bd5c('0x1534')](function(_0xb32f23){_0x2e2ae0(_0xb32f23);}),_0x3c08e0[_0x39bd5c('0x2012')]=[];});}_0x3c08e0[_0x10b17d('0x58e')]=[],_0x3c08e0['createOrEditDescription']=_0x126c15,_0x3c08e0[_0x10b17d('0x16ad')]=_0x5cfd8d,_0x3c08e0[_0x10b17d('0x16b5')]=_0x541964;function _0x126c15(_0x1a128a,_0x2dc676){const _0x3a9478=_0x10b17d;_0x20aa26['show']({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x28912c,'parent':angular[_0x3a9478('0x16b1')](_0x565006[_0x3a9478('0x945')]),'targetEvent':_0x1a128a,'clickOutsideToClose':!![],'locals':{'type':_0x3a9478('0x27b9'),'item':_0x2dc676,'items':_0x3c08e0[_0x3a9478('0x1942')],'configuration':_0x3c08e0[_0x3a9478('0x1099')],'account':_0x3c08e0[_0x3a9478('0x27bd')],'license':null,'setting':null,'crudPermissions':_0x3c08e0[_0x3a9478('0xe28')]}});}function _0x98bf97(_0x522940){const _0xac1c69=_0x10b17d;_0x210169[_0xac1c69('0x2401')][_0xac1c69('0x17c4')]({'id':_0x522940['id']})[_0xac1c69('0x1714')]['then'](function(){const _0x4916e6=_0xac1c69;_0x283545()['remove'](_0x3c08e0[_0x4916e6('0x1942')],{'id':_0x522940['id']}),_0x31722c[_0x4916e6('0x173b')]({'title':_0x4916e6('0x2598'),'msg':_0x4916e6('0x50')});})[_0xac1c69('0x1cb5')](function(_0xd5a916){const _0x7d80b1=_0xac1c69;_0x31722c[_0x7d80b1('0x5e8')]({'title':_0xd5a916[_0x7d80b1('0x1b51')]?_0x7d80b1('0x15d1')+_0xd5a916[_0x7d80b1('0x1b51')]+'\x20-\x20'+_0xd5a916[_0x7d80b1('0x22ce')]:_0x7d80b1('0x2803'),'msg':_0xd5a916[_0x7d80b1('0x11fc')]?JSON[_0x7d80b1('0x1be0')](_0xd5a916[_0x7d80b1('0x11fc')]):_0xd5a916[_0x7d80b1('0x17df')]()});});}function _0x5cfd8d(_0x5795bd,_0x173b69){const _0x336559=_0x10b17d,_0x503678=_0x20aa26[_0x336559('0x112e')]()[_0x336559('0x14e4')](_0x336559('0xc33'))[_0x336559('0x93e')](_0x336559('0x27b')+_0x336559('0x27c7'))[_0x336559('0x10bc')](_0x336559('0x6b7'))[_0x336559('0x24d0')](_0x5795bd)['ok']('OK')[_0x336559('0x1801')](_0x336559('0x1d8d'));_0x20aa26[_0x336559('0x2fa')](_0x503678)[_0x336559('0x2788')](function(){_0x98bf97(_0x173b69);},function(){const _0x24b1b3=_0x336559;console['log'](_0x24b1b3('0x1d8d'));});}function _0x541964(_0x586b4e){const _0x3b4739=_0x10b17d,_0x49cbdc=_0x20aa26[_0x3b4739('0x112e')]()[_0x3b4739('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x3b4739('0x93e')](_0x3b4739('0x1670')+_0x3c08e0[_0x3b4739('0x58e')][_0x3b4739('0x2566')]+_0x3b4739('0xbd')+_0x3b4739('0x27c7'))[_0x3b4739('0x10bc')](_0x3b4739('0x1e33'))[_0x3b4739('0x24d0')](_0x586b4e)['ok']('OK')['cancel'](_0x3b4739('0x1d8d'));_0x20aa26[_0x3b4739('0x2fa')](_0x49cbdc)['then'](function(){const _0x567b5f=_0x3b4739;_0x3c08e0[_0x567b5f('0x58e')][_0x567b5f('0x1534')](function(_0x1a2671){_0x98bf97(_0x1a2671);}),_0x3c08e0[_0x567b5f('0x58e')]=[];});}_0x3c08e0['selectedFields']=[],_0x3c08e0[_0x10b17d('0x17d4')]=_0x23cb7a,_0x3c08e0[_0x10b17d('0x2386')]=_0x36e7c9,_0x3c08e0[_0x10b17d('0x262b')]=_0x90a833;function _0x23cb7a(_0x31f05a,_0x19b395){const _0x146bc2=_0x10b17d;_0x20aa26[_0x146bc2('0x2fa')]({'controller':_0x146bc2('0x7e8'),'controllerAs':'vm','templateUrl':_0x28912c,'parent':angular[_0x146bc2('0x16b1')](_0x565006[_0x146bc2('0x945')]),'targetEvent':_0x31f05a,'clickOutsideToClose':!![],'locals':{'type':_0x146bc2('0x18da'),'item':_0x19b395,'items':_0x3c08e0[_0x146bc2('0x1578')],'configuration':_0x3c08e0[_0x146bc2('0x1099')],'account':_0x3c08e0[_0x146bc2('0x27bd')],'license':null,'setting':null,'crudPermissions':_0x3c08e0['crudPermissions']}});}function _0x4168a1(_0x5bc784){const _0x2b7a31=_0x10b17d;_0x210169[_0x2b7a31('0x2401')]['delete']({'id':_0x5bc784['id']})[_0x2b7a31('0x1714')][_0x2b7a31('0x2788')](function(){const _0x5eea04=_0x2b7a31;_0x283545()[_0x5eea04('0x1a90')](_0x3c08e0[_0x5eea04('0x1578')],{'id':_0x5bc784['id']}),_0x31722c[_0x5eea04('0x173b')]({'title':_0x5eea04('0xb76'),'msg':_0x5eea04('0x1d92')});})[_0x2b7a31('0x1cb5')](function(_0x5ae4a7){const _0x322654=_0x2b7a31;_0x31722c[_0x322654('0x5e8')]({'title':_0x5ae4a7[_0x322654('0x1b51')]?_0x322654('0x15d1')+_0x5ae4a7[_0x322654('0x1b51')]+_0x322654('0x1b0b')+_0x5ae4a7[_0x322654('0x22ce')]:_0x322654('0x2803'),'msg':_0x5ae4a7[_0x322654('0x11fc')]?JSON['stringify'](_0x5ae4a7[_0x322654('0x11fc')]):_0x5ae4a7[_0x322654('0x17df')]()});});}function _0x36e7c9(_0x5aceaa,_0x4677a3){const _0x1e022b=_0x10b17d,_0xcea5be=_0x20aa26[_0x1e022b('0x112e')]()[_0x1e022b('0x14e4')](_0x1e022b('0x21d'))[_0x1e022b('0x93e')](_0x1e022b('0x1151')+'\x20will\x20be\x20deleted.')[_0x1e022b('0x10bc')](_0x1e022b('0xde7'))[_0x1e022b('0x24d0')](_0x5aceaa)['ok']('OK')[_0x1e022b('0x1801')](_0x1e022b('0x1d8d'));_0x20aa26[_0x1e022b('0x2fa')](_0xcea5be)['then'](function(){_0x4168a1(_0x4677a3);},function(){const _0x534cd4=_0x1e022b;console[_0x534cd4('0x10df')]('CANCEL');});}function _0x90a833(_0x1f9262){const _0x2cc03c=_0x10b17d,_0x4117fd=_0x20aa26['confirm']()[_0x2cc03c('0x14e4')](_0x2cc03c('0x7'))[_0x2cc03c('0x93e')](''+_0x3c08e0[_0x2cc03c('0xcc9')]['length']+'\x20selected'+_0x2cc03c('0x27c7'))['ariaLabel'](_0x2cc03c('0x736'))[_0x2cc03c('0x24d0')](_0x1f9262)['ok']('OK')[_0x2cc03c('0x1801')](_0x2cc03c('0x1d8d'));_0x20aa26[_0x2cc03c('0x2fa')](_0x4117fd)[_0x2cc03c('0x2788')](function(){const _0x1de001=_0x2cc03c;_0x3c08e0[_0x1de001('0xcc9')]['forEach'](function(_0x2c04f2){_0x4168a1(_0x2c04f2);}),_0x3c08e0[_0x1de001('0xcc9')]=[];});}}const _0x5e0627=_0x310762;_0x10d8ae[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1b77'),_0x34e79e('0x1099'),'api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x10d8ae(_0x21d1a0,_0x5ce440,_0x3ed46f,_0x537ae1,_0x574520,_0x5c4361,_0x27e744,_0x62a2bc,_0x29811b,_0x46000a,_0x52f0ed,_0x4d493e,_0x223758,_0x3f467d){const _0x38783f=_0x34e79e,_0x15fd6e=this;_0x15fd6e[_0x38783f('0x9cb')]=_0x52f0ed[_0x38783f('0x24cc')](),_0x15fd6e[_0x38783f('0x25be')]=[],_0x15fd6e[_0x38783f('0x1af0')]=_0x223758,_0x15fd6e['license']=_0x4d493e,_0x15fd6e[_0x38783f('0xe28')]=_0x3f467d,_0x15fd6e['hasModulePermissions']={},_0x15fd6e['passwordPattern']=_0x15fd6e[_0x38783f('0x1af0')]&&_0x15fd6e[_0x38783f('0x1af0')][_0x38783f('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15fd6e[_0x38783f('0x14e4')]=_0x38783f('0x88b'),_0x15fd6e[_0x38783f('0x1099')]=angular[_0x38783f('0x2669')](_0x29811b),_0x15fd6e[_0x38783f('0x1b77')]=_0x62a2bc,_0x15fd6e[_0x38783f('0x1b2c')]=![];!_0x15fd6e['servicenowConfiguration']&&(_0x15fd6e[_0x38783f('0x1099')]={'channel':_0x38783f('0x1f60'),'type':'inbound'},_0x15fd6e['title']=_0x38783f('0x1160'),_0x15fd6e[_0x38783f('0x1b2c')]=!![]);_0x15fd6e[_0x38783f('0x1a45')]=_0x5e7455,_0x15fd6e[_0x38783f('0x132b')]=_0x13a325,_0x15fd6e[_0x38783f('0x2581')]=_0x3d9a6b,_0x15fd6e['getDateFromString']=_0x493b29,_0x15fd6e[_0x38783f('0xca7')]=_0x279579;function _0x5e7455(){const _0x28f68f=_0x38783f;_0x15fd6e[_0x28f68f('0x25be')]=[],_0x46000a[_0x28f68f('0xa74')][_0x28f68f('0x2757')]({'id':_0x5ce440[_0x28f68f('0x4b9')]['id']},_0x15fd6e[_0x28f68f('0x1099')])['$promise'][_0x28f68f('0x2788')](function(_0x21f08a){const _0x4af3bc=_0x28f68f;_0x15fd6e[_0x4af3bc('0x1b77')]['unshift'](_0x21f08a[_0x4af3bc('0x1cbf')]()),_0x27e744[_0x4af3bc('0x173b')]({'title':_0x4af3bc('0x187e'),'msg':_0x15fd6e[_0x4af3bc('0x1099')][_0x4af3bc('0x1a8d')]?_0x15fd6e['servicenowConfiguration'][_0x4af3bc('0x1a8d')]+_0x4af3bc('0x1e4a'):''}),_0x279579(_0x21f08a);})[_0x28f68f('0x1cb5')](function(_0x29a587){const _0x829ced=_0x28f68f;if(_0x29a587[_0x829ced('0x11fc')]&&_0x29a587[_0x829ced('0x11fc')][_0x829ced('0x25be')]&&_0x29a587['data']['errors'][_0x829ced('0x2566')]){_0x15fd6e[_0x829ced('0x25be')]=_0x29a587[_0x829ced('0x11fc')]['errors']||[{'message':_0x29a587[_0x829ced('0x17df')](),'type':_0x829ced('0x2146')}];for(let _0x2cf748=0x0;_0x2cf748<_0x29a587['data'][_0x829ced('0x25be')][_0x829ced('0x2566')];_0x2cf748+=0x1){_0x27e744[_0x829ced('0x5e8')]({'title':_0x29a587['data'][_0x829ced('0x25be')][_0x2cf748][_0x829ced('0x1d7')],'msg':_0x29a587[_0x829ced('0x11fc')][_0x829ced('0x25be')][_0x2cf748]['message']});}}else _0x27e744[_0x829ced('0x5e8')]({'title':_0x29a587['status']?_0x829ced('0x15d1')+_0x29a587['status']+_0x829ced('0x1b0b')+_0x29a587[_0x829ced('0x22ce')]:_0x829ced('0x2146'),'msg':_0x29a587[_0x829ced('0x11fc')]?JSON[_0x829ced('0x1be0')](_0x29a587[_0x829ced('0x11fc')][_0x829ced('0x15e2')]):_0x29a587[_0x829ced('0x17df')]()});});}function _0x13a325(){const _0x30a567=_0x38783f;_0x15fd6e[_0x30a567('0x25be')]=[],_0x46000a[_0x30a567('0x2ca')]['update']({'id':_0x15fd6e['servicenowConfiguration']['id']},_0x15fd6e[_0x30a567('0x1099')])[_0x30a567('0x1714')][_0x30a567('0x2788')](function(_0x530ca8){const _0x208468=_0x30a567,_0xbc55dc=_0x283545()[_0x208468('0x20e8')](_0x15fd6e[_0x208468('0x1b77')],{'id':_0x530ca8['id']});_0xbc55dc&&_0x283545()['merge'](_0xbc55dc,_0x283545()[_0x208468('0x41b')](_0x530ca8[_0x208468('0x1cbf')](),_0x283545()[_0x208468('0x2163')](_0xbc55dc))),_0x27e744[_0x208468('0x173b')]({'title':_0x208468('0x85'),'msg':_0x15fd6e[_0x208468('0x1099')][_0x208468('0x1a8d')]?_0x15fd6e[_0x208468('0x1099')]['name']+_0x208468('0x24cf'):''}),_0x279579(_0x530ca8);})[_0x30a567('0x1cb5')](function(_0x52341c){const _0x7a2471=_0x30a567;if(_0x52341c[_0x7a2471('0x11fc')]&&_0x52341c[_0x7a2471('0x11fc')][_0x7a2471('0x25be')]&&_0x52341c['data'][_0x7a2471('0x25be')][_0x7a2471('0x2566')]){_0x15fd6e[_0x7a2471('0x25be')]=_0x52341c['data'][_0x7a2471('0x25be')]||[{'message':_0x52341c[_0x7a2471('0x17df')](),'type':_0x7a2471('0x1ada')}];for(let _0x24b445=0x0;_0x24b445<_0x52341c[_0x7a2471('0x11fc')][_0x7a2471('0x25be')][_0x7a2471('0x2566')];_0x24b445++){_0x27e744[_0x7a2471('0x5e8')]({'title':_0x52341c[_0x7a2471('0x11fc')][_0x7a2471('0x25be')][_0x24b445]['type'],'msg':_0x52341c[_0x7a2471('0x11fc')][_0x7a2471('0x25be')][_0x24b445][_0x7a2471('0x15e2')]});}}else _0x27e744[_0x7a2471('0x5e8')]({'title':_0x52341c[_0x7a2471('0x1b51')]?_0x7a2471('0x15d1')+_0x52341c['status']+'\x20-\x20'+_0x52341c[_0x7a2471('0x22ce')]:_0x7a2471('0x1ada'),'msg':_0x52341c['data']?JSON[_0x7a2471('0x1be0')](_0x52341c[_0x7a2471('0x11fc')]['message']):_0x52341c['toString']()});});}function _0x3d9a6b(_0x51c524){const _0x30250a=_0x38783f;_0x15fd6e[_0x30250a('0x25be')]=[];const _0x1c49b6=_0x537ae1[_0x30250a('0x112e')]()[_0x30250a('0x14e4')](_0x30250a('0x458'))['content'](_0x30250a('0x24ec'))[_0x30250a('0x10bc')](_0x30250a('0x16b9'))['ok']('Delete')[_0x30250a('0x1801')](_0x30250a('0x1481'))['targetEvent'](_0x51c524);_0x537ae1[_0x30250a('0x2fa')](_0x1c49b6)['then'](function(){const _0x45764f=_0x30250a;_0x46000a[_0x45764f('0x2ca')][_0x45764f('0x17c4')]({'id':_0x15fd6e[_0x45764f('0x1099')]['id']})['$promise'][_0x45764f('0x2788')](function(){const _0x2247d5=_0x45764f;_0x283545()[_0x2247d5('0x1a90')](_0x15fd6e[_0x2247d5('0x1b77')],{'id':_0x15fd6e['servicenowConfiguration']['id']}),_0x27e744[_0x2247d5('0x173b')]({'title':_0x2247d5('0x274d'),'msg':(_0x15fd6e[_0x2247d5('0x1099')][_0x2247d5('0x1a8d')]||_0x2247d5('0x1099'))+_0x2247d5('0x14d4')}),_0x279579(_0x15fd6e[_0x2247d5('0x1099')]);})[_0x45764f('0x1cb5')](function(_0x3ca3ea){const _0x3140b7=_0x45764f;if(_0x3ca3ea['data']&&_0x3ca3ea['data'][_0x3140b7('0x25be')]&&_0x3ca3ea['data'][_0x3140b7('0x25be')][_0x3140b7('0x2566')]){_0x15fd6e[_0x3140b7('0x25be')]=_0x3ca3ea[_0x3140b7('0x11fc')]['errors']||[{'message':_0x3ca3ea[_0x3140b7('0x17df')](),'type':_0x3140b7('0x612')}];for(let _0x10cf65=0x0;_0x10cf65<_0x3ca3ea['data'][_0x3140b7('0x25be')][_0x3140b7('0x2566')];_0x10cf65++){_0x27e744[_0x3140b7('0x5e8')]({'title':_0x3ca3ea[_0x3140b7('0x11fc')][_0x3140b7('0x25be')][_0x10cf65][_0x3140b7('0x1d7')],'msg':_0x3ca3ea[_0x3140b7('0x11fc')][_0x3140b7('0x25be')][_0x10cf65]['message']});}}else _0x27e744[_0x3140b7('0x5e8')]({'title':_0x3ca3ea['status']?'API:'+_0x3ca3ea[_0x3140b7('0x1b51')]+'\x20-\x20'+_0x3ca3ea[_0x3140b7('0x22ce')]:_0x3140b7('0x612'),'msg':_0x3ca3ea[_0x3140b7('0x11fc')]?JSON[_0x3140b7('0x1be0')](_0x3ca3ea[_0x3140b7('0x11fc')][_0x3140b7('0x15e2')]):_0x3ca3ea['message']||_0x3ca3ea['toString']()});});},function(){});}function _0x493b29(_0x2fa196){return _0x2fa196===null?undefined:new Date(_0x2fa196);}function _0x279579(_0x2d6d90){_0x537ae1['hide'](_0x2d6d90);}}const _0x4ac705=_0x10d8ae;_0xdda641[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),'items',_0x34e79e('0xd3c'),'account',_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0xdda641(_0x9de5cd,_0x3c12db,_0x5cc488,_0x2ea129,_0x5589af,_0x28149c,_0xf44fb1,_0x25e7f8,_0x2ac065,_0x53aeeb,_0xfc9200,_0x41811e,_0x374c89){const _0x3604c4=_0x34e79e,_0x2b47bb=this;_0x2b47bb['currentUser']=_0x41811e['getCurrentUser'](),_0x2b47bb['errors']=[],_0x2b47bb[_0x3604c4('0x14e4')]=_0x3604c4('0x1df9')+_0x283545()[_0x3604c4('0xc87')](_0x53aeeb),_0x2b47bb['item']=angular['copy'](_0x25e7f8),_0x2b47bb[_0x3604c4('0x117b')]=_0xf44fb1,_0x2b47bb[_0x3604c4('0x1d7')]=_0x53aeeb,_0x2b47bb['crudPermissions']=_0x374c89,_0x2b47bb[_0x3604c4('0x63a')]=![];!_0x2b47bb[_0x3604c4('0xd3c')]&&(_0x2b47bb['item']={'type':_0x3604c4('0x2209')},_0x2b47bb[_0x3604c4('0xd3c')][_0x283545()[_0x3604c4('0x1df5')](_0x53aeeb)+'Id']=_0x28149c['id'],_0x2b47bb['title']=_0x3604c4('0x1109')+_0x283545()['toUpper'](_0x53aeeb),_0x2b47bb[_0x3604c4('0x63a')]=!![]);_0x2b47bb[_0x3604c4('0x1586')]=_0x280fb4,_0x2b47bb[_0x3604c4('0x953')]=_0x2b39ff,_0x2b47bb[_0x3604c4('0x1165')]=_0x5466c1,_0x2b47bb[_0x3604c4('0xb4f')]=_0x12a829,_0x2b47bb[_0x3604c4('0xca7')]=_0x2ee6b5,_0xfc9200[_0x3604c4('0xa72')]['get']({'nolimit':!![]})['$promise'][_0x3604c4('0x2788')](function(_0x5f3173){const _0x3c9562=_0x3604c4;return _0x2b47bb[_0x3c9562('0xf76')]=_0x5f3173[_0x3c9562('0x25df')]?_0x5f3173[_0x3c9562('0x25df')]:[],_0xfc9200[_0x3c9562('0x15b7')][_0x3c9562('0x15f8')]()[_0x3c9562('0x1714')];})[_0x3604c4('0x2788')](function(_0x51f401){const _0x30682e=_0x3604c4;return _0x2b47bb['voiceAgentReportColumns']=_0x283545()[_0x30682e('0xa9f')](_0x283545()[_0x30682e('0x2163')](_0x51f401),[_0x30682e('0x1714'),_0x30682e('0x187a'),_0x30682e('0x172'),_0x30682e('0x5f'),'sourceid']),_0x2b47bb[_0x30682e('0x1cac')][_0x30682e('0x13e3')](_0x30682e('0x12da')),_0xfc9200[_0x30682e('0xac')][_0x30682e('0x15f8')]()[_0x30682e('0x1714')];})['then'](function(_0x373dcb){const _0x2eac86=_0x3604c4;_0x2b47bb[_0x2eac86('0x226b')]=_0x283545()['difference'](_0x283545()[_0x2eac86('0x2163')](_0x373dcb),['$promise',_0x2eac86('0x187a'),_0x2eac86('0x172'),_0x2eac86('0x5f'),_0x2eac86('0x900')]),_0x2b47bb['voiceDialReportColumns']['push'](_0x2eac86('0x12da'));})[_0x3604c4('0x1cb5')](function(_0x16b4dd){const _0x3b892c=_0x3604c4;_0x5589af[_0x3b892c('0x5e8')]({'title':_0x16b4dd['status']?_0x3b892c('0x15d1')+_0x16b4dd[_0x3b892c('0x1b51')]+_0x3b892c('0x1b0b')+_0x16b4dd['statusText']:_0x3b892c('0x694'),'msg':_0x16b4dd[_0x3b892c('0x11fc')]?JSON['stringify'](_0x16b4dd[_0x3b892c('0x11fc')]):_0x16b4dd[_0x3b892c('0x17df')]()});}),_0xfc9200[_0x3604c4('0xa74')][_0x3604c4('0x24')]({'id':_0x2ac065['id'],'ticketType':_0x28149c[_0x3604c4('0x3d9')]?_0x28149c[_0x3604c4('0x3d9')]:undefined})[_0x3604c4('0x1714')]['then'](function(_0x12e21e){const _0x4af2bf=_0x3604c4;_0x2b47bb['accountConnected']=!![],_0x2b47bb[_0x4af2bf('0x1578')]=_0x12e21e[_0x4af2bf('0x25df')]?_0x12e21e[_0x4af2bf('0x25df')]:[],_0x2b47bb[_0x4af2bf('0xd3c')][_0x4af2bf('0x1ca9')]&&(_0x2b47bb[_0x4af2bf('0x1ee9')]=_0x283545()[_0x4af2bf('0x20e8')](_0x2b47bb[_0x4af2bf('0x1578')],{'id':_0x2b47bb['item'][_0x4af2bf('0x1ca9')]}));})[_0x3604c4('0x1cb5')](function(_0x13d8ec){const _0x20bb7d=_0x3604c4;_0x2b47bb[_0x20bb7d('0x551')]=![],console[_0x20bb7d('0x5e8')](_0x13d8ec);});function _0x280fb4(){const _0x315a35=_0x3604c4;_0x2b47bb[_0x315a35('0x25be')]=[],_0x2b47bb[_0x315a35('0x1ee9')]&&(_0x2b47bb[_0x315a35('0xd3c')][_0x315a35('0x1ca9')]=_0x2b47bb[_0x315a35('0x1ee9')]['id'],_0x2b47bb[_0x315a35('0xd3c')][_0x315a35('0x98')]=_0x2b47bb[_0x315a35('0x1ee9')][_0x315a35('0x1a8d')],_0x2b47bb['item'][_0x315a35('0x1ee9')]=_0x2b47bb[_0x315a35('0x1ee9')]['custom']),_0xfc9200[_0x315a35('0x2401')][_0x315a35('0xbd0')](_0x2b47bb[_0x315a35('0xd3c')])[_0x315a35('0x1714')][_0x315a35('0x2788')](function(_0x571a5f){const _0x176af3=_0x315a35;_0x2b47bb[_0x176af3('0x117b')][_0x176af3('0xc51')](_0x571a5f),_0x5589af[_0x176af3('0x173b')]({'title':_0x283545()[_0x176af3('0x1df5')](_0x53aeeb)+'\x20properly\x20created','msg':_0x283545()[_0x176af3('0x1df5')](_0x53aeeb)+_0x176af3('0x1e4a')}),_0x2ee6b5();})['catch'](function(_0x574ed2){const _0x169081=_0x315a35;console['error'](_0x574ed2),_0x2b47bb[_0x169081('0x25be')]=_0x574ed2[_0x169081('0x11fc')][_0x169081('0x25be')]||[{'message':_0x574ed2['toString'](),'type':_0x169081('0x256f')}];});}function _0x2b39ff(){const _0x3930a6=_0x3604c4;_0x2b47bb[_0x3930a6('0x25be')]=[],_0x2b47bb['customField']&&(_0x2b47bb[_0x3930a6('0xd3c')]['idField']=_0x2b47bb['customField']['id'],_0x2b47bb[_0x3930a6('0xd3c')][_0x3930a6('0x98')]=_0x2b47bb['customField'][_0x3930a6('0x1a8d')],_0x2b47bb[_0x3930a6('0xd3c')][_0x3930a6('0x1ee9')]=_0x2b47bb['customField']['custom']),_0xfc9200[_0x3930a6('0x2401')]['update']({'id':_0x2b47bb[_0x3930a6('0xd3c')]['id']},_0x2b47bb[_0x3930a6('0xd3c')])[_0x3930a6('0x1714')][_0x3930a6('0x2788')](function(_0x516a1f){const _0x542793=_0x3930a6,_0x1a9397=_0x283545()['find'](_0x2b47bb['items'],{'id':_0x516a1f['id']});_0x1a9397&&_0x283545()[_0x542793('0x2503')](_0x1a9397,_0x516a1f),_0x5589af['success']({'title':_0x283545()[_0x542793('0x1df5')](_0x53aeeb)+_0x542793('0x1d15'),'msg':_0x283545()[_0x542793('0x1df5')](_0x53aeeb)+_0x542793('0x24cf')}),_0x2ee6b5();})['catch'](function(_0x10259e){const _0x4df1bd=_0x3930a6;console[_0x4df1bd('0x5e8')](_0x10259e),_0x2b47bb[_0x4df1bd('0x25be')]=_0x10259e[_0x4df1bd('0x11fc')][_0x4df1bd('0x25be')]||[{'message':_0x10259e[_0x4df1bd('0x17df')](),'type':'api.intItem.update'}];});}function _0x5466c1(_0x4212fe){const _0x598509=_0x3604c4;_0x2b47bb[_0x598509('0x25be')]=[];const _0x5bf4c6=_0x2ea129[_0x598509('0x112e')]()[_0x598509('0x14e4')](_0x598509('0x458'))[_0x598509('0x1c98')]('The\x20'+_0x53aeeb+_0x598509('0x27c7'))[_0x598509('0x10bc')](_0x598509('0x177f')+_0x283545()[_0x598509('0x1df5')](_0x53aeeb))['ok'](_0x598509('0x2786'))[_0x598509('0x1801')]('Cancel')[_0x598509('0x24d0')](_0x4212fe);_0x2ea129['show'](_0x5bf4c6)[_0x598509('0x2788')](function(){const _0x3b8c20=_0x598509;_0xfc9200[_0x3b8c20('0x2401')][_0x3b8c20('0x17c4')]({'id':_0x2b47bb[_0x3b8c20('0xd3c')]['id']})['$promise'][_0x3b8c20('0x2788')](function(){const _0x279222=_0x3b8c20;_0x283545()[_0x279222('0x1a90')](_0x2b47bb[_0x279222('0x117b')],{'id':_0x2b47bb[_0x279222('0xd3c')]['id']}),_0x5589af[_0x279222('0x173b')]({'title':_0x283545()[_0x279222('0x1df5')](_0x53aeeb)+_0x279222('0x2542'),'msg':_0x283545()['capitalize'](_0x53aeeb)+_0x279222('0x14d4')}),_0x2ee6b5();})[_0x3b8c20('0x1cb5')](function(_0x51fd6d){const _0x433135=_0x3b8c20;console[_0x433135('0x5e8')](_0x51fd6d),_0x2b47bb[_0x433135('0x25be')]=_0x51fd6d[_0x433135('0x11fc')][_0x433135('0x25be')]||[{'message':_0x51fd6d['toString'](),'type':_0x433135('0x1276')}];});},function(){});}function _0x12a829(){const _0x577579=_0x3604c4;return _0x2b47bb['item']['variableName']!==undefined?_0x2b47bb['item']['variableName']:_0x577579('0x6d1');}function _0x2ee6b5(){_0x2ea129['hide']();}}const _0x301224=_0xdda641;_0x22727c['$inject']=[_0x34e79e('0x1382'),'$location','$mdDialog',_0x34e79e('0x1580'),'$translate','license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x27bd'),_0x34e79e('0xec9')];function _0x22727c(_0x91a9d1,_0x2bdeb4,_0x1ea0e6,_0x1f487a,_0x97720f,_0x210412,_0x6b5131,_0x23243b,_0x5db69b,_0x3166a7,_0x85ddcf,_0x60996c){const _0x1e32eb=_0x34e79e,_0x2dc9f1=this;_0x2dc9f1[_0x1e32eb('0x9cb')]=_0x3166a7[_0x1e32eb('0x24cc')](),_0x2dc9f1[_0x1e32eb('0x130d')]=_0x210412,_0x2dc9f1[_0x1e32eb('0x1af0')]=_0x6b5131,_0x2dc9f1[_0x1e32eb('0x18ad')]=_0x2dc9f1[_0x1e32eb('0x1af0')][_0x1e32eb('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2dc9f1[_0x1e32eb('0xe9')]=_0x2bdeb4[_0x1e32eb('0x170c')]()+'://'+_0x2bdeb4[_0x1e32eb('0x1c6a')](),_0x2dc9f1[_0x1e32eb('0x27bd')]=_0x85ddcf||_0x91a9d1[_0x1e32eb('0x4b9')]['servicenowAccount']||{},_0x2dc9f1[_0x1e32eb('0xec9')]=_0x60996c&&_0x60996c[_0x1e32eb('0x338')]==0x1?_0x60996c[_0x1e32eb('0x25df')][0x0]:null,_0x2dc9f1[_0x1e32eb('0xe28')]=_0x3166a7[_0x1e32eb('0x157e')](_0x2dc9f1[_0x1e32eb('0xec9')]?_0x2dc9f1[_0x1e32eb('0xec9')][_0x1e32eb('0xe28')]:null),_0x2dc9f1['hasModulePermissions']={},_0x2dc9f1[_0x1e32eb('0xcb3')]=_0x91a9d1[_0x1e32eb('0x4b9')][_0x1e32eb('0x24f6')]||0x0,_0x2dc9f1[_0x1e32eb('0x204f')]=_0x5db69b['info'],_0x2dc9f1[_0x1e32eb('0x931')]=_0x5c0630,_0x2dc9f1[_0x1e32eb('0x17bf')]=_0x28e70b;function _0x5c0630(){_0x91a9d1['go']('app.integrations.servicenowAccounts',{},{'reload':'app.integrations.servicenowAccounts'});}function _0x28e70b(){const _0x82cdac=_0x1e32eb;_0x23243b[_0x82cdac('0xa74')][_0x82cdac('0x2740')]({'id':_0x2dc9f1[_0x82cdac('0x27bd')]['id']},_0x2dc9f1[_0x82cdac('0x27bd')])[_0x82cdac('0x1714')][_0x82cdac('0x2788')](function(){const _0x59c1d0=_0x82cdac;_0x5db69b['success']({'title':'ServicenowAccount\x20updated!','msg':_0x2dc9f1['servicenowAccount']['name']?_0x2dc9f1[_0x59c1d0('0x27bd')][_0x59c1d0('0x1a8d')]+_0x59c1d0('0x6f8'):''});})[_0x82cdac('0x1cb5')](function(_0x1c3210){const _0x57878d=_0x82cdac;_0x5db69b[_0x57878d('0x5e8')]({'title':_0x1c3210[_0x57878d('0x1b51')]?_0x57878d('0x15d1')+_0x1c3210[_0x57878d('0x1b51')]+'\x20-\x20'+_0x1c3210['statusText']:'SYSTEM:GETintServicenowAccount','msg':_0x1c3210[_0x57878d('0x11fc')]?JSON[_0x57878d('0x1be0')](_0x1c3210[_0x57878d('0x11fc')]):_0x1c3210[_0x57878d('0x17df')]()});});}}const _0x2dae8d=_0x22727c,_0x534377=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html';_0xcb1055[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0x1cbb'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0xcb1055(_0xa44df8,_0x158c99,_0x210c60,_0x390c5d,_0x53da95,_0x13dcb9,_0x128322,_0xe9bf2c,_0x1138b9,_0x364415,_0x2e8ba5,_0x10b2b8,_0x260d44,_0x323557,_0x25e642,_0x6bd5e9,_0x38d860){const _0x2bfee5=_0x34e79e,_0x48f11d=this;_0x48f11d[_0x2bfee5('0x130d')]=_0x6bd5e9,_0x48f11d[_0x2bfee5('0x1af0')]=_0x38d860,_0x48f11d[_0x2bfee5('0x9cb')]=_0x25e642[_0x2bfee5('0x24cc')](),_0x48f11d['servicenowAccounts']=_0x1138b9||{'count':0x0,'rows':[]},_0x48f11d['userProfile']=_0x364415,_0x48f11d['userProfileSection']=_0x2e8ba5&&_0x2e8ba5[_0x2bfee5('0x338')]==0x1?_0x2e8ba5['rows'][0x0]:null,_0x48f11d[_0x2bfee5('0xe28')]=_0x25e642[_0x2bfee5('0x157e')](_0x48f11d[_0x2bfee5('0xec9')]?_0x48f11d['userProfileSection'][_0x2bfee5('0xe28')]:null),_0x48f11d[_0x2bfee5('0x26a9')]='servicenowAccounts',_0x48f11d[_0x2bfee5('0x2278')]='',_0x48f11d[_0x2bfee5('0x25e2')]=null,_0x48f11d[_0x2bfee5('0x1762')]=[],_0x48f11d['query']={'fields':_0x2bfee5('0x2e7'),'limit':0xa,'page':0x1},_0x48f11d['editstate']=_0x431fd9,_0x48f11d[_0x2bfee5('0x1f2f')]=_0x23dec5,_0x48f11d[_0x2bfee5('0x1e5')]=_0x56bc5b,_0x48f11d[_0x2bfee5('0x173b')]=_0x4fccb4,_0x48f11d[_0x2bfee5('0x80b')]=_0x8009ef,_0x48f11d[_0x2bfee5('0x201f')]=_0x15156c,_0x48f11d['deleteServicenowAccount']=_0x1a6afb,_0x48f11d[_0x2bfee5('0xef5')]=_0x38567a,_0x48f11d[_0x2bfee5('0xceb')]=_0x1e9c2b,_0x48f11d[_0x2bfee5('0x126a')]=_0x548da7,_0x48f11d['selectAllServicenowAccounts']=_0x3e7813;function _0x431fd9(_0x4663a3){_0x210c60['go']('app.integrations.servicenowAccounts.edit',{'id':_0x4663a3['id'],'servicenowAccount':_0x4663a3,'crudPermissions':_0x48f11d['crudPermissions']});}function _0x23dec5(_0x39903e){const _0x2acee3=_0x2bfee5;return _0x10b2b8[_0x2acee3('0xa74')][_0x2acee3('0x24')]({'id':_0x39903e['id'],'test':!![]})[_0x2acee3('0x1714')]['then'](function(){const _0x541db8=_0x2acee3;_0x323557['success']({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x541db8('0x53e')});})['catch'](function(_0x1b1b88){const _0x1ca2d4=_0x2acee3;_0x323557['error']({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x1b1b88[_0x1ca2d4('0x11fc')]?_0x1b1b88['data']['message']?_0x1b1b88[_0x1ca2d4('0x11fc')]['message']:JSON[_0x1ca2d4('0x1be0')](_0x1b1b88['data']):_0x1b1b88[_0x1ca2d4('0x17df')]()});});}function _0x56bc5b(_0x4bc16e,_0x5b4fbe){const _0x23beba=_0x2bfee5,_0x5f410d=_0x53da95[_0x23beba('0x112e')]()['title'](_0x23beba('0x2114')+_0x283545()[_0x23beba('0x114')](_0x23beba('0x27bd'))+'?')['htmlContent'](_0x23beba('0x1670')+(_0x4bc16e['name']||_0x23beba('0x27bd'))+_0x23beba('0x229e')+_0x23beba('0x27c7'))[_0x23beba('0x10bc')](_0x23beba('0x1e84'))[_0x23beba('0x24d0')](_0x5b4fbe)['ok']('OK')[_0x23beba('0x1801')](_0x23beba('0x1d8d'));_0x53da95[_0x23beba('0x2fa')](_0x5f410d)['then'](function(){_0x1a6afb(_0x4bc16e);},function(){const _0x21ee49=_0x23beba;console[_0x21ee49('0x10df')]('CANCEL');});}let _0x26f3e9=!![],_0x2746b3=0x1;_0xa44df8[_0x2bfee5('0x1662')](_0x2bfee5('0x1569'),function(_0x2eddff,_0x1a4c0b){const _0x3a06ab=_0x2bfee5;_0x26f3e9?_0x128322(function(){_0x26f3e9=![];}):(!_0x1a4c0b&&(_0x2746b3=_0x48f11d[_0x3a06ab('0x135a')][_0x3a06ab('0x23f5')]),_0x2eddff!==_0x1a4c0b&&(_0x48f11d[_0x3a06ab('0x135a')][_0x3a06ab('0x23f5')]=0x1),!_0x2eddff&&(_0x48f11d[_0x3a06ab('0x135a')]['page']=_0x2746b3),_0x48f11d[_0x3a06ab('0x80b')]());});function _0x4fccb4(_0x11296a){_0x48f11d['servicenowAccounts']=_0x11296a||{'count':0x0,'rows':[]};}function _0x8009ef(){const _0x4bc2e0=_0x2bfee5;_0x48f11d['query'][_0x4bc2e0('0x19e')]=(_0x48f11d[_0x4bc2e0('0x135a')][_0x4bc2e0('0x23f5')]-0x1)*_0x48f11d[_0x4bc2e0('0x135a')]['limit'],_0x25e642[_0x4bc2e0('0x1516')]('admin')?_0x48f11d[_0x4bc2e0('0x1808')]=_0x10b2b8[_0x4bc2e0('0xa74')][_0x4bc2e0('0x1335')](_0x48f11d[_0x4bc2e0('0x135a')],_0x4fccb4)['$promise']:(_0x48f11d[_0x4bc2e0('0x135a')]['id']=_0x48f11d['userProfile']['id'],_0x48f11d['query'][_0x4bc2e0('0xb13')]=_0x4bc2e0('0x1155'),_0x48f11d[_0x4bc2e0('0x1808')]=_0x10b2b8[_0x4bc2e0('0x63c')][_0x4bc2e0('0xa1')](_0x48f11d[_0x4bc2e0('0x135a')],_0x4fccb4)[_0x4bc2e0('0x1714')]);}function _0x15156c(_0x59b729,_0x54fa16){const _0x15ae35=_0x2bfee5;_0x53da95[_0x15ae35('0x2fa')]({'controller':_0x15ae35('0x1db1'),'controllerAs':'vm','templateUrl':_0x534377,'parent':angular[_0x15ae35('0x16b1')](_0x13dcb9['body']),'targetEvent':_0x59b729,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x54fa16,'servicenowAccounts':_0x48f11d[_0x15ae35('0x1cbb')]['rows'],'license':_0x48f11d[_0x15ae35('0x130d')],'setting':_0x48f11d[_0x15ae35('0x1af0')],'crudPermissions':_0x48f11d[_0x15ae35('0xe28')]}});}function _0x1a6afb(_0x4ef575){const _0x18ed1c=_0x2bfee5;_0x10b2b8[_0x18ed1c('0xa74')][_0x18ed1c('0x17c4')]({'id':_0x4ef575['id']})[_0x18ed1c('0x1714')][_0x18ed1c('0x2788')](function(){const _0x1d54d8=_0x18ed1c;_0x283545()[_0x1d54d8('0x1a90')](_0x48f11d[_0x1d54d8('0x1cbb')][_0x1d54d8('0x25df')],{'id':_0x4ef575['id']}),_0x48f11d[_0x1d54d8('0x1cbb')][_0x1d54d8('0x338')]-=0x1,!_0x48f11d[_0x1d54d8('0x1cbb')]['rows'][_0x1d54d8('0x2566')]&&_0x48f11d[_0x1d54d8('0x80b')](),_0x323557[_0x1d54d8('0x173b')]({'title':_0x283545()[_0x1d54d8('0x114')]('ServicenowAccount')+'\x20deleted!','msg':_0x4ef575[_0x1d54d8('0x1a8d')]?_0x4ef575['name']+_0x1d54d8('0x14d4'):''});})['catch'](function(_0x3c3131){const _0x22ac94=_0x18ed1c;if(_0x3c3131[_0x22ac94('0x11fc')]&&_0x3c3131[_0x22ac94('0x11fc')][_0x22ac94('0x25be')]&&_0x3c3131['data']['errors'][_0x22ac94('0x2566')]){_0x48f11d[_0x22ac94('0x25be')]=_0x3c3131['data']['errors']||[{'message':_0x3c3131[_0x22ac94('0x17df')](),'type':_0x22ac94('0x321')}];for(let _0x2c9c14=0x0;_0x2c9c14<_0x3c3131[_0x22ac94('0x11fc')][_0x22ac94('0x25be')][_0x22ac94('0x2566')];_0x2c9c14++){_0x323557[_0x22ac94('0x5e8')]({'title':_0x3c3131[_0x22ac94('0x11fc')][_0x22ac94('0x25be')][_0x2c9c14][_0x22ac94('0x1d7')],'msg':_0x3c3131[_0x22ac94('0x11fc')][_0x22ac94('0x25be')][_0x2c9c14][_0x22ac94('0x15e2')]});}}else _0x323557[_0x22ac94('0x5e8')]({'title':_0x3c3131['status']?_0x22ac94('0x15d1')+_0x3c3131[_0x22ac94('0x1b51')]+_0x22ac94('0x1b0b')+_0x3c3131[_0x22ac94('0x22ce')]:'SYSTEM:DELETEintServicenowAccount','msg':_0x3c3131[_0x22ac94('0x11fc')]?JSON[_0x22ac94('0x1be0')](_0x3c3131[_0x22ac94('0x11fc')]['message']):_0x3c3131[_0x22ac94('0x15e2')]||_0x3c3131[_0x22ac94('0x17df')]()});});}function _0x38567a(){const _0x42ed1d=_0x2bfee5,_0x546a36=angular['copy'](_0x48f11d['selectedServicenowAccounts']);return _0x48f11d[_0x42ed1d('0x1762')]=[],_0x546a36;}function _0x1e9c2b(_0x720d15){const _0xd5a4df=_0x2bfee5,_0x2ada20=_0x53da95[_0xd5a4df('0x112e')]()[_0xd5a4df('0x14e4')](_0xd5a4df('0xf66'))[_0xd5a4df('0x93e')](''+_0x48f11d[_0xd5a4df('0x1762')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0xd5a4df('0x10bc')](_0xd5a4df('0x2567'))['targetEvent'](_0x720d15)['ok']('OK')[_0xd5a4df('0x1801')](_0xd5a4df('0x1d8d'));_0x53da95['show'](_0x2ada20)[_0xd5a4df('0x2788')](function(){const _0x4b8f97=_0xd5a4df;_0x48f11d[_0x4b8f97('0x1762')][_0x4b8f97('0x1534')](function(_0x42ab6f){_0x1a6afb(_0x42ab6f);}),_0x48f11d[_0x4b8f97('0x1762')]=[];});}function _0x548da7(){_0x48f11d['selectedServicenowAccounts']=[];}function _0x3e7813(){const _0x15944e=_0x2bfee5;_0x48f11d['selectedServicenowAccounts']=_0x48f11d[_0x15944e('0x1cbb')]['rows'];}}const _0x36831d=_0xcb1055;_0x28e77c[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'sugarcrmAccounts',_0x34e79e('0x514'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x28e77c(_0x2e5f4b,_0x2feb12,_0x561a9d,_0x55cb47,_0x5c10aa,_0x44a01c,_0x4b2837,_0x854350,_0x30e81c,_0x40d6e6,_0x2ae91a,_0x4fcea1,_0x1b425d,_0x3fa839){const _0x1a8c9c=_0x34e79e,_0x393ed7=this;_0x393ed7[_0x1a8c9c('0x9cb')]=_0x2ae91a[_0x1a8c9c('0x24cc')](),_0x393ed7[_0x1a8c9c('0x25be')]=[],_0x393ed7[_0x1a8c9c('0x1af0')]=_0x1b425d,_0x393ed7[_0x1a8c9c('0x130d')]=_0x4fcea1,_0x393ed7[_0x1a8c9c('0xe28')]=_0x3fa839,_0x393ed7[_0x1a8c9c('0x1193')]={},_0x393ed7[_0x1a8c9c('0x18ad')]=_0x393ed7[_0x1a8c9c('0x1af0')]&&_0x393ed7[_0x1a8c9c('0x1af0')][_0x1a8c9c('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x393ed7[_0x1a8c9c('0x14e4')]=_0x1a8c9c('0x364'),_0x393ed7[_0x1a8c9c('0x514')]=angular[_0x1a8c9c('0x2669')](_0x30e81c),_0x393ed7[_0x1a8c9c('0xda4')]=_0x854350,_0x393ed7[_0x1a8c9c('0x19f')]=![];!_0x393ed7['sugarcrmAccount']&&(_0x393ed7[_0x1a8c9c('0x514')]={'serverUrl':_0x561a9d[_0x1a8c9c('0x170c')]()+_0x1a8c9c('0x726')+_0x561a9d[_0x1a8c9c('0x1c6a')]()+(_0x561a9d['port']()?':'+_0x561a9d['port']():'')},_0x393ed7[_0x1a8c9c('0x14e4')]='INTEGRATIONS.NEW_SUGARCRMACCOUNT',_0x393ed7[_0x1a8c9c('0x19f')]=!![]);_0x393ed7['addNewSugarcrmAccount']=_0x43eaea,_0x393ed7[_0x1a8c9c('0x79b')]=_0x27b74c,_0x393ed7[_0x1a8c9c('0xef8')]=_0x4942ba,_0x393ed7[_0x1a8c9c('0x2601')]=_0x6d5d67,_0x393ed7[_0x1a8c9c('0xca7')]=_0x1c492d;function _0x43eaea(){const _0x195a07=_0x1a8c9c;_0x393ed7['errors']=[],_0x40d6e6['intSugarcrmAccount'][_0x195a07('0xbd0')](_0x393ed7['sugarcrmAccount'])[_0x195a07('0x1714')][_0x195a07('0x2788')](function(_0x3479e5){const _0x1a0fb9=_0x195a07;_0x393ed7[_0x1a0fb9('0xda4')]['unshift'](_0x3479e5[_0x1a0fb9('0x1cbf')]()),_0x4b2837['success']({'title':_0x1a0fb9('0xafe'),'msg':_0x393ed7[_0x1a0fb9('0x514')]['name']?_0x393ed7['sugarcrmAccount'][_0x1a0fb9('0x1a8d')]+_0x1a0fb9('0x1e4a'):''}),_0x1c492d(_0x3479e5);})[_0x195a07('0x1cb5')](function(_0x3c5ed1){const _0x44b7ef=_0x195a07;if(_0x3c5ed1[_0x44b7ef('0x11fc')]&&_0x3c5ed1['data']['errors']&&_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x25be')][_0x44b7ef('0x2566')]){_0x393ed7[_0x44b7ef('0x25be')]=_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x25be')]||[{'message':_0x3c5ed1['toString'](),'type':'api.intSugarcrmAccount.save'}];for(let _0x3c6510=0x0;_0x3c6510<_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x25be')][_0x44b7ef('0x2566')];_0x3c6510+=0x1){_0x4b2837['error']({'title':_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x25be')][_0x3c6510]['type'],'msg':_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x25be')][_0x3c6510][_0x44b7ef('0x15e2')]});}}else _0x4b2837['error']({'title':_0x3c5ed1[_0x44b7ef('0x1b51')]?_0x44b7ef('0x15d1')+_0x3c5ed1[_0x44b7ef('0x1b51')]+_0x44b7ef('0x1b0b')+_0x3c5ed1[_0x44b7ef('0x22ce')]:_0x44b7ef('0x22ab'),'msg':_0x3c5ed1[_0x44b7ef('0x11fc')]?JSON[_0x44b7ef('0x1be0')](_0x3c5ed1[_0x44b7ef('0x11fc')][_0x44b7ef('0x15e2')]):_0x3c5ed1[_0x44b7ef('0x17df')]()});});}function _0x27b74c(){const _0x8fd55b=_0x1a8c9c;_0x393ed7['errors']=[],_0x40d6e6[_0x8fd55b('0xdc7')]['update']({'id':_0x393ed7[_0x8fd55b('0x514')]['id']},_0x393ed7['sugarcrmAccount'])['$promise'][_0x8fd55b('0x2788')](function(_0x239700){const _0x4e1997=_0x8fd55b,_0x4396fa=_0x283545()[_0x4e1997('0x20e8')](_0x393ed7[_0x4e1997('0xda4')],{'id':_0x239700['id']});_0x4396fa&&_0x283545()['merge'](_0x4396fa,_0x283545()['pick'](_0x239700[_0x4e1997('0x1cbf')](),_0x283545()[_0x4e1997('0x2163')](_0x4396fa))),_0x4b2837['success']({'title':_0x4e1997('0x14bd'),'msg':_0x393ed7['sugarcrmAccount'][_0x4e1997('0x1a8d')]?_0x393ed7['sugarcrmAccount'][_0x4e1997('0x1a8d')]+_0x4e1997('0x24cf'):''}),_0x1c492d(_0x239700);})['catch'](function(_0x3bf0af){const _0x20ff18=_0x8fd55b;if(_0x3bf0af[_0x20ff18('0x11fc')]&&_0x3bf0af[_0x20ff18('0x11fc')][_0x20ff18('0x25be')]&&_0x3bf0af[_0x20ff18('0x11fc')]['errors'][_0x20ff18('0x2566')]){_0x393ed7[_0x20ff18('0x25be')]=_0x3bf0af[_0x20ff18('0x11fc')][_0x20ff18('0x25be')]||[{'message':_0x3bf0af[_0x20ff18('0x17df')](),'type':'api.intSugarcrmAccount.update'}];for(let _0x2872d5=0x0;_0x2872d5<_0x3bf0af[_0x20ff18('0x11fc')][_0x20ff18('0x25be')][_0x20ff18('0x2566')];_0x2872d5++){_0x4b2837[_0x20ff18('0x5e8')]({'title':_0x3bf0af[_0x20ff18('0x11fc')]['errors'][_0x2872d5][_0x20ff18('0x1d7')],'msg':_0x3bf0af[_0x20ff18('0x11fc')]['errors'][_0x2872d5][_0x20ff18('0x15e2')]});}}else _0x4b2837[_0x20ff18('0x5e8')]({'title':_0x3bf0af[_0x20ff18('0x1b51')]?'API:'+_0x3bf0af['status']+'\x20-\x20'+_0x3bf0af[_0x20ff18('0x22ce')]:_0x20ff18('0x6c9'),'msg':_0x3bf0af[_0x20ff18('0x11fc')]?JSON['stringify'](_0x3bf0af[_0x20ff18('0x11fc')][_0x20ff18('0x15e2')]):_0x3bf0af[_0x20ff18('0x17df')]()});});}function _0x4942ba(_0x5511a8){const _0x14bcb0=_0x1a8c9c;_0x393ed7['errors']=[];const _0x3a1acd=_0x55cb47[_0x14bcb0('0x112e')]()[_0x14bcb0('0x14e4')](_0x14bcb0('0x458'))[_0x14bcb0('0x1c98')](_0x14bcb0('0x1fa6'))[_0x14bcb0('0x10bc')](_0x14bcb0('0x2d6'))['ok'](_0x14bcb0('0x2786'))[_0x14bcb0('0x1801')]('Cancel')['targetEvent'](_0x5511a8);_0x55cb47[_0x14bcb0('0x2fa')](_0x3a1acd)[_0x14bcb0('0x2788')](function(){const _0xc8560f=_0x14bcb0;_0x40d6e6[_0xc8560f('0xdc7')][_0xc8560f('0x17c4')]({'id':_0x393ed7[_0xc8560f('0x514')]['id']})[_0xc8560f('0x1714')][_0xc8560f('0x2788')](function(){const _0x55c671=_0xc8560f;_0x283545()[_0x55c671('0x1a90')](_0x393ed7['sugarcrmAccounts'],{'id':_0x393ed7[_0x55c671('0x514')]['id']}),_0x4b2837[_0x55c671('0x173b')]({'title':'SugarcrmAccount\x20properly\x20deleted!','msg':(_0x393ed7[_0x55c671('0x514')][_0x55c671('0x1a8d')]||_0x55c671('0x514'))+_0x55c671('0x14d4')}),_0x1c492d(_0x393ed7[_0x55c671('0x514')]);})['catch'](function(_0x4794c7){const _0x1e4191=_0xc8560f;if(_0x4794c7['data']&&_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x25be')]&&_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x25be')][_0x1e4191('0x2566')]){_0x393ed7[_0x1e4191('0x25be')]=_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x25be')]||[{'message':_0x4794c7[_0x1e4191('0x17df')](),'type':'api.intSugarcrmAccount.delete'}];for(let _0x5c5fdc=0x0;_0x5c5fdc<_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x25be')]['length'];_0x5c5fdc++){_0x4b2837['error']({'title':_0x4794c7['data'][_0x1e4191('0x25be')][_0x5c5fdc][_0x1e4191('0x1d7')],'msg':_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x25be')][_0x5c5fdc]['message']});}}else _0x4b2837['error']({'title':_0x4794c7[_0x1e4191('0x1b51')]?_0x1e4191('0x15d1')+_0x4794c7[_0x1e4191('0x1b51')]+'\x20-\x20'+_0x4794c7[_0x1e4191('0x22ce')]:'api.intSugarcrmAccount.delete','msg':_0x4794c7[_0x1e4191('0x11fc')]?JSON[_0x1e4191('0x1be0')](_0x4794c7[_0x1e4191('0x11fc')][_0x1e4191('0x15e2')]):_0x4794c7[_0x1e4191('0x15e2')]||_0x4794c7[_0x1e4191('0x17df')]()});});},function(){});}function _0x6d5d67(_0x2c3ee7){return _0x2c3ee7===null?undefined:new Date(_0x2c3ee7);}function _0x1c492d(_0x5bd525){const _0x92f685=_0x1a8c9c;_0x55cb47[_0x92f685('0x19d')](_0x5bd525);}}const _0x44a29b=_0x28e77c,_0x5d4726=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html',_0x187709=_0x18dd13['p']+_0x34e79e('0x435');_0x246657[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth'];function _0x246657(_0x4cf2b8,_0x2604f1,_0x459e94,_0x4f30d8,_0x920ecf){const _0x4d03bb=_0x34e79e,_0x4cbbbf=this;_0x4cbbbf[_0x4d03bb('0x9cb')]=_0x920ecf[_0x4d03bb('0x24cc')](),_0x4cbbbf[_0x4d03bb('0x514')]={},_0x4cbbbf['sugarcrmConfiguration']={},_0x4cbbbf['configurations']=[],_0x4cbbbf[_0x4d03bb('0xd51')]=-0x1,_0x4cbbbf[_0x4d03bb('0xe28')],_0x4cbbbf['init']=_0x2ffdef,_0x4cbbbf['getSugarcrmConfiguration']=_0x5cedb6,_0x4cbbbf[_0x4d03bb('0xe51')]=_0x32ddad,_0x4cbbbf['deleteSugarcrmConfiguration']=_0x16387e;function _0x2ffdef(_0x1efe55,_0xd29a2b){const _0x164a98=_0x4d03bb;_0x4cbbbf[_0x164a98('0x514')]=_0x1efe55,_0x4cbbbf[_0x164a98('0xe28')]=typeof _0xd29a2b!==_0x164a98('0xedb')?_0xd29a2b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x459e94[_0x164a98('0xdc7')]['getConfigurations']({'id':_0x4cbbbf['sugarcrmAccount']['id'],'sort':_0x164a98('0x1cee')})[_0x164a98('0x1714')][_0x164a98('0x2788')](function(_0x435fb0){const _0x5343e9=_0x164a98;return _0x4cbbbf[_0x5343e9('0x1b77')]=_0x435fb0[_0x5343e9('0x25df')]?_0x435fb0[_0x5343e9('0x25df')]:[],_0x4cbbbf[_0x5343e9('0x1b77')][_0x5343e9('0x2566')]&&_0x4cbbbf[_0x5343e9('0x13ce')](0x0),_0x459e94[_0x5343e9('0xa72')]['get']({'nolimit':!![],'sort':'name'})[_0x5343e9('0x1714')];})[_0x164a98('0x2788')](function(_0x4bf4b5){const _0x100835=_0x164a98;_0x4cbbbf['variables']=_0x4bf4b5[_0x100835('0x25df')]?_0x4bf4b5['rows']:[],_0x4cbbbf[_0x100835('0xdd1')]=_0x283545()[_0x100835('0x13cf')](_0x4cbbbf['variables'],'id');})[_0x164a98('0x1cb5')](function(_0x3872d3){const _0x51b068=_0x164a98;_0x4f30d8['error']({'title':_0x3872d3['status']?_0x51b068('0x15d1')+_0x3872d3['status']+_0x51b068('0x1b0b')+_0x3872d3[_0x51b068('0x22ce')]:_0x51b068('0x24e'),'msg':_0x3872d3[_0x51b068('0x11fc')]?JSON['stringify'](_0x3872d3[_0x51b068('0x11fc')]):_0x3872d3[_0x51b068('0x17df')]()});});}function _0x5cedb6(_0xdaf45b){const _0x532649=_0x4d03bb;_0x4cbbbf[_0x532649('0x51d')]=_0x4cbbbf[_0x532649('0x1b77')][_0xdaf45b],_0x4cbbbf[_0x532649('0xd51')]=_0xdaf45b,_0x459e94[_0x532649('0x1e2c')][_0x532649('0x12c5')]({'id':_0x4cbbbf[_0x532649('0x51d')]['id']})['$promise']['then'](function(_0x500a72){const _0x452575=_0x532649;return _0x4cbbbf[_0x452575('0x348')]=_0x500a72['rows']?_0x500a72[_0x452575('0x25df')]:[],_0x459e94[_0x452575('0x1e2c')][_0x452575('0x221a')]({'id':_0x4cbbbf[_0x452575('0x51d')]['id']})[_0x452575('0x1714')];})[_0x532649('0x2788')](function(_0x1169d6){const _0x4755e5=_0x532649;return _0x4cbbbf[_0x4755e5('0x1942')]=_0x1169d6[_0x4755e5('0x25df')]?_0x1169d6[_0x4755e5('0x25df')]:[],_0x459e94[_0x4755e5('0x1e2c')][_0x4755e5('0x24')]({'id':_0x4cbbbf[_0x4755e5('0x51d')]['id']})['$promise'];})[_0x532649('0x2788')](function(_0x214d6a){const _0x20bdfc=_0x532649;_0x4cbbbf[_0x20bdfc('0x1578')]=_0x214d6a[_0x20bdfc('0x25df')]?_0x214d6a[_0x20bdfc('0x25df')]:[];})[_0x532649('0x1cb5')](function(_0x32282e){const _0x17eb9a=_0x532649;_0x4f30d8[_0x17eb9a('0x5e8')]({'title':_0x32282e[_0x17eb9a('0x1b51')]?'API:'+_0x32282e[_0x17eb9a('0x1b51')]+'\x20-\x20'+_0x32282e[_0x17eb9a('0x22ce')]:_0x17eb9a('0x616'),'msg':_0x32282e[_0x17eb9a('0x11fc')]?JSON['stringify'](_0x32282e[_0x17eb9a('0x11fc')]):_0x32282e['toString']()});});}function _0x32ddad(_0x29fc4c,_0x10b24c){const _0x51dd8d=_0x4d03bb;_0x4cf2b8[_0x51dd8d('0x2fa')]({'controller':_0x51dd8d('0x358'),'controllerAs':'vm','templateUrl':_0x5d4726,'parent':angular['element'](_0x2604f1[_0x51dd8d('0x945')]),'targetEvent':_0x29fc4c,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x10b24c,'configurations':_0x4cbbbf[_0x51dd8d('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x4cbbbf['crudPermissions']}})[_0x51dd8d('0x1ed8')](function(){const _0x7f202a=_0x51dd8d;_0x4cbbbf[_0x7f202a('0x13ce')](0x0);});}function _0x16387e(_0x398499,_0x3f53e6){const _0x5dd684=_0x4d03bb,_0x28da0b=_0x4cf2b8[_0x5dd684('0x112e')]()[_0x5dd684('0x14e4')](_0x5dd684('0xc82'))[_0x5dd684('0x93e')](''+(_0x3f53e6[_0x5dd684('0x1a8d')]||_0x5dd684('0x51d'))+_0x5dd684('0x229e')+_0x5dd684('0x27c7'))['ariaLabel'](_0x5dd684('0x20a6'))['targetEvent'](_0x398499)['ok']('OK')[_0x5dd684('0x1801')](_0x5dd684('0x1d8d'));_0x4cf2b8[_0x5dd684('0x2fa')](_0x28da0b)[_0x5dd684('0x2788')](function(){const _0x15eadc=_0x5dd684;_0x459e94['intSugarcrmConfiguration'][_0x15eadc('0x17c4')]({'id':_0x3f53e6['id']})[_0x15eadc('0x1714')]['then'](function(){const _0x4b968e=_0x15eadc;_0x283545()[_0x4b968e('0x1a90')](_0x4cbbbf[_0x4b968e('0x1b77')],{'id':_0x3f53e6['id']}),_0x4f30d8[_0x4b968e('0x173b')]({'title':'SugarcrmConfiguration\x20deleted!','msg':_0x3f53e6['name']?_0x3f53e6[_0x4b968e('0x1a8d')]+_0x4b968e('0x14d4'):''});})[_0x15eadc('0x1cb5')](function(_0x454863){const _0x82658f=_0x15eadc;_0x4f30d8[_0x82658f('0x5e8')]({'title':_0x454863['status']?_0x82658f('0x15d1')+_0x454863[_0x82658f('0x1b51')]+_0x82658f('0x1b0b')+_0x454863['statusText']:'SYSTEM:DELETECONFIGURATION','msg':_0x454863[_0x82658f('0x11fc')]?JSON[_0x82658f('0x1be0')](_0x454863[_0x82658f('0x11fc')]):_0x454863[_0x82658f('0x17df')]()});})[_0x15eadc('0x1ed8')](function(){const _0x10ac20=_0x15eadc;_0x4cbbbf[_0x10ac20('0x13ce')](0x0);});},function(){const _0x29e166=_0x5dd684;console[_0x29e166('0x10df')](_0x29e166('0x1d8d'));});}_0x4cbbbf['selectedSubjects']=[],_0x4cbbbf[_0x4d03bb('0xe3e')]=_0x2e0aa6,_0x4cbbbf[_0x4d03bb('0x13b')]=_0x1f59cd,_0x4cbbbf['deleteSelectedSubjects']=_0x1cb89e;function _0x2e0aa6(_0x1a346e,_0x321504){const _0xb03469=_0x4d03bb;_0x4cf2b8[_0xb03469('0x2fa')]({'controller':_0xb03469('0x180f'),'controllerAs':'vm','templateUrl':_0x187709,'parent':angular[_0xb03469('0x16b1')](_0x2604f1[_0xb03469('0x945')]),'targetEvent':_0x1a346e,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x321504,'items':_0x4cbbbf[_0xb03469('0x348')],'configuration':_0x4cbbbf[_0xb03469('0x51d')],'account':_0x4cbbbf[_0xb03469('0x514')],'license':null,'setting':null,'crudPermissions':_0x4cbbbf[_0xb03469('0xe28')]}});}function _0x4008c5(_0x348a90){const _0x54a8ea=_0x4d03bb;_0x459e94[_0x54a8ea('0x9fe')]['delete']({'id':_0x348a90['id']})[_0x54a8ea('0x1714')]['then'](function(){const _0x268af9=_0x54a8ea;_0x283545()[_0x268af9('0x1a90')](_0x4cbbbf[_0x268af9('0x348')],{'id':_0x348a90['id']}),_0x4f30d8[_0x268af9('0x173b')]({'title':'Subject\x20deleted!','msg':_0x268af9('0xb6c')});})[_0x54a8ea('0x1cb5')](function(_0x54092d){const _0x1176eb=_0x54a8ea;_0x4f30d8[_0x1176eb('0x5e8')]({'title':_0x54092d[_0x1176eb('0x1b51')]?'API:'+_0x54092d[_0x1176eb('0x1b51')]+_0x1176eb('0x1b0b')+_0x54092d[_0x1176eb('0x22ce')]:_0x1176eb('0x2803'),'msg':_0x54092d[_0x1176eb('0x11fc')]?JSON[_0x1176eb('0x1be0')](_0x54092d['data']):_0x54092d['toString']()});});}function _0x1f59cd(_0x170e5a,_0x3ac53b){const _0xad0892=_0x4d03bb,_0x4856cf=_0x4cf2b8[_0xad0892('0x112e')]()[_0xad0892('0x14e4')](_0xad0892('0x6dd'))[_0xad0892('0x93e')](_0xad0892('0xdc')+_0xad0892('0x27c7'))['ariaLabel'](_0xad0892('0x2126'))[_0xad0892('0x24d0')](_0x170e5a)['ok']('OK')[_0xad0892('0x1801')](_0xad0892('0x1d8d'));_0x4cf2b8['show'](_0x4856cf)[_0xad0892('0x2788')](function(){_0x4008c5(_0x3ac53b);},function(){const _0x4d4185=_0xad0892;console[_0x4d4185('0x10df')](_0x4d4185('0x1d8d'));});}function _0x1cb89e(_0x15b2dc){const _0x211768=_0x4d03bb,_0x212668=_0x4cf2b8[_0x211768('0x112e')]()[_0x211768('0x14e4')](_0x211768('0xa11'))[_0x211768('0x93e')](''+_0x4cbbbf[_0x211768('0x2012')][_0x211768('0x2566')]+_0x211768('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x211768('0x19b1'))[_0x211768('0x24d0')](_0x15b2dc)['ok']('OK')[_0x211768('0x1801')](_0x211768('0x1d8d'));_0x4cf2b8[_0x211768('0x2fa')](_0x212668)[_0x211768('0x2788')](function(){const _0x45dd3c=_0x211768;_0x4cbbbf[_0x45dd3c('0x2012')][_0x45dd3c('0x1534')](function(_0x34076b){_0x4008c5(_0x34076b);}),_0x4cbbbf[_0x45dd3c('0x2012')]=[];});}_0x4cbbbf[_0x4d03bb('0x58e')]=[],_0x4cbbbf['createOrEditDescription']=_0x43e0f1,_0x4cbbbf[_0x4d03bb('0x16ad')]=_0x2cb4b4,_0x4cbbbf[_0x4d03bb('0x16b5')]=_0x11fdea;function _0x43e0f1(_0x2e3029,_0x5d6a1a){const _0x5bfda7=_0x4d03bb;_0x4cf2b8[_0x5bfda7('0x2fa')]({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x187709,'parent':angular[_0x5bfda7('0x16b1')](_0x2604f1[_0x5bfda7('0x945')]),'targetEvent':_0x2e3029,'clickOutsideToClose':!![],'locals':{'type':_0x5bfda7('0x27b9'),'item':_0x5d6a1a,'items':_0x4cbbbf['descriptions'],'configuration':_0x4cbbbf[_0x5bfda7('0x51d')],'account':_0x4cbbbf[_0x5bfda7('0x514')],'license':null,'setting':null,'crudPermissions':_0x4cbbbf[_0x5bfda7('0xe28')]}});}function _0xc86c98(_0xa0be3b){const _0x2ef722=_0x4d03bb;_0x459e94[_0x2ef722('0x9fe')][_0x2ef722('0x17c4')]({'id':_0xa0be3b['id']})['$promise'][_0x2ef722('0x2788')](function(){const _0x45649f=_0x2ef722;_0x283545()[_0x45649f('0x1a90')](_0x4cbbbf[_0x45649f('0x1942')],{'id':_0xa0be3b['id']}),_0x4f30d8[_0x45649f('0x173b')]({'title':_0x45649f('0x2598'),'msg':_0x45649f('0x50')});})[_0x2ef722('0x1cb5')](function(_0x121ce0){const _0x5671c3=_0x2ef722;_0x4f30d8[_0x5671c3('0x5e8')]({'title':_0x121ce0[_0x5671c3('0x1b51')]?_0x5671c3('0x15d1')+_0x121ce0[_0x5671c3('0x1b51')]+_0x5671c3('0x1b0b')+_0x121ce0[_0x5671c3('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x121ce0['data']?JSON[_0x5671c3('0x1be0')](_0x121ce0[_0x5671c3('0x11fc')]):_0x121ce0[_0x5671c3('0x17df')]()});});}function _0x2cb4b4(_0x320e7e,_0x554f57){const _0x3f27bf=_0x4d03bb,_0x325d14=_0x4cf2b8['confirm']()[_0x3f27bf('0x14e4')](_0x3f27bf('0xc33'))[_0x3f27bf('0x93e')](_0x3f27bf('0x27b')+_0x3f27bf('0x27c7'))['ariaLabel'](_0x3f27bf('0x6b7'))[_0x3f27bf('0x24d0')](_0x320e7e)['ok']('OK')[_0x3f27bf('0x1801')](_0x3f27bf('0x1d8d'));_0x4cf2b8[_0x3f27bf('0x2fa')](_0x325d14)[_0x3f27bf('0x2788')](function(){_0xc86c98(_0x554f57);},function(){console['log']('CANCEL');});}function _0x11fdea(_0xed1d15){const _0x6a23dd=_0x4d03bb,_0xdf8436=_0x4cf2b8['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x6a23dd('0x93e')](''+_0x4cbbbf['selectedDescriptions'][_0x6a23dd('0x2566')]+'\x20selected'+_0x6a23dd('0x27c7'))[_0x6a23dd('0x10bc')](_0x6a23dd('0x1e33'))[_0x6a23dd('0x24d0')](_0xed1d15)['ok']('OK')[_0x6a23dd('0x1801')]('CANCEL');_0x4cf2b8[_0x6a23dd('0x2fa')](_0xdf8436)[_0x6a23dd('0x2788')](function(){const _0x17c176=_0x6a23dd;_0x4cbbbf[_0x17c176('0x58e')][_0x17c176('0x1534')](function(_0x3b3119){_0xc86c98(_0x3b3119);}),_0x4cbbbf[_0x17c176('0x58e')]=[];});}_0x4cbbbf[_0x4d03bb('0xcc9')]=[],_0x4cbbbf[_0x4d03bb('0x17d4')]=_0x597409,_0x4cbbbf[_0x4d03bb('0x2386')]=_0x19ed6a,_0x4cbbbf[_0x4d03bb('0x262b')]=_0x59794a;function _0x597409(_0x1cd8fa,_0x1ef877){const _0xb9a134=_0x4d03bb;_0x4cf2b8[_0xb9a134('0x2fa')]({'controller':_0xb9a134('0x180f'),'controllerAs':'vm','templateUrl':_0x187709,'parent':angular[_0xb9a134('0x16b1')](_0x2604f1['body']),'targetEvent':_0x1cd8fa,'clickOutsideToClose':!![],'locals':{'type':_0xb9a134('0x18da'),'item':_0x1ef877,'items':_0x4cbbbf[_0xb9a134('0x1578')],'configuration':_0x4cbbbf[_0xb9a134('0x51d')],'account':_0x4cbbbf[_0xb9a134('0x514')],'license':null,'setting':null,'crudPermissions':_0x4cbbbf['crudPermissions']}});}function _0x331584(_0x34bb85){const _0x2eda50=_0x4d03bb;_0x459e94[_0x2eda50('0x9fe')]['delete']({'id':_0x34bb85['id']})[_0x2eda50('0x1714')][_0x2eda50('0x2788')](function(){const _0x24b1bd=_0x2eda50;_0x283545()[_0x24b1bd('0x1a90')](_0x4cbbbf['fields'],{'id':_0x34bb85['id']}),_0x4f30d8[_0x24b1bd('0x173b')]({'title':_0x24b1bd('0xb76'),'msg':_0x24b1bd('0x1d92')});})[_0x2eda50('0x1cb5')](function(_0x28974e){const _0x7a3bf5=_0x2eda50;_0x4f30d8[_0x7a3bf5('0x5e8')]({'title':_0x28974e[_0x7a3bf5('0x1b51')]?_0x7a3bf5('0x15d1')+_0x28974e[_0x7a3bf5('0x1b51')]+_0x7a3bf5('0x1b0b')+_0x28974e['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x28974e[_0x7a3bf5('0x11fc')]?JSON['stringify'](_0x28974e['data']):_0x28974e[_0x7a3bf5('0x17df')]()});});}function _0x19ed6a(_0x21ce34,_0x12ca01){const _0x974897=_0x4d03bb,_0x115845=_0x4cf2b8[_0x974897('0x112e')]()[_0x974897('0x14e4')](_0x974897('0x21d'))[_0x974897('0x93e')]('Field'+_0x974897('0x27c7'))[_0x974897('0x10bc')](_0x974897('0xde7'))[_0x974897('0x24d0')](_0x21ce34)['ok']('OK')[_0x974897('0x1801')](_0x974897('0x1d8d'));_0x4cf2b8[_0x974897('0x2fa')](_0x115845)['then'](function(){_0x331584(_0x12ca01);},function(){const _0x9bc75f=_0x974897;console[_0x9bc75f('0x10df')]('CANCEL');});}function _0x59794a(_0x45abc9){const _0x1d5aff=_0x4d03bb,_0x4cae0f=_0x4cf2b8['confirm']()[_0x1d5aff('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x1d5aff('0x1670')+_0x4cbbbf['selectedFields'][_0x1d5aff('0x2566')]+_0x1d5aff('0xbd')+_0x1d5aff('0x27c7'))[_0x1d5aff('0x10bc')](_0x1d5aff('0x736'))[_0x1d5aff('0x24d0')](_0x45abc9)['ok']('OK')[_0x1d5aff('0x1801')](_0x1d5aff('0x1d8d'));_0x4cf2b8[_0x1d5aff('0x2fa')](_0x4cae0f)[_0x1d5aff('0x2788')](function(){const _0x31f8cf=_0x1d5aff;_0x4cbbbf['selectedFields'][_0x31f8cf('0x1534')](function(_0x5e5c40){_0x331584(_0x5e5c40);}),_0x4cbbbf[_0x31f8cf('0xcc9')]=[];});}}const _0x2e35ee=_0x246657;_0x2c2542[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0x1b77'),_0x34e79e('0x51d'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x2c2542(_0x56742a,_0x4bb16d,_0x5542ba,_0x37166a,_0x517516,_0x1b7294,_0x196f5f,_0xc3c411,_0x5c80b2,_0xbcc57a,_0x43811d,_0x2a344d,_0x53a084,_0x3f733c){const _0x4632bc=_0x34e79e,_0x1025ce=this;_0x1025ce[_0x4632bc('0x9cb')]=_0x43811d[_0x4632bc('0x24cc')](),_0x1025ce[_0x4632bc('0x25be')]=[],_0x1025ce[_0x4632bc('0x1af0')]=_0x53a084,_0x1025ce[_0x4632bc('0x130d')]=_0x2a344d,_0x1025ce[_0x4632bc('0xe28')]=_0x3f733c,_0x1025ce['hasModulePermissions']={},_0x1025ce[_0x4632bc('0x18ad')]=_0x1025ce[_0x4632bc('0x1af0')]&&_0x1025ce[_0x4632bc('0x1af0')][_0x4632bc('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1025ce['title']='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x1025ce['sugarcrmConfiguration']=angular[_0x4632bc('0x2669')](_0x5c80b2),_0x1025ce['configurations']=_0xc3c411,_0x1025ce['newSugarcrmConfiguration']=![];!_0x1025ce['sugarcrmConfiguration']&&(_0x1025ce[_0x4632bc('0x51d')]={'channel':_0x4632bc('0x1f60'),'type':_0x4632bc('0x2e4')},_0x1025ce['title']=_0x4632bc('0x112d'),_0x1025ce[_0x4632bc('0x182a')]=!![]);_0x1025ce[_0x4632bc('0x2291')]=_0x407138,_0x1025ce[_0x4632bc('0x246a')]=_0x5e169e,_0x1025ce['deleteSugarcrmConfiguration']=_0x5a1392,_0x1025ce[_0x4632bc('0x2601')]=_0x50e844,_0x1025ce['closeDialog']=_0x17138b;function _0x407138(){const _0x47ed70=_0x4632bc;_0x1025ce[_0x47ed70('0x25be')]=[],_0xbcc57a['intSugarcrmAccount']['addConfiguration']({'id':_0x4bb16d[_0x47ed70('0x4b9')]['id']},_0x1025ce[_0x47ed70('0x51d')])[_0x47ed70('0x1714')]['then'](function(_0x409f0d){const _0x4a34b3=_0x47ed70;_0x1025ce['configurations'][_0x4a34b3('0xc51')](_0x409f0d[_0x4a34b3('0x1cbf')]()),_0x196f5f[_0x4a34b3('0x173b')]({'title':_0x4a34b3('0x2c'),'msg':_0x1025ce['sugarcrmConfiguration'][_0x4a34b3('0x1a8d')]?_0x1025ce[_0x4a34b3('0x51d')][_0x4a34b3('0x1a8d')]+_0x4a34b3('0x1e4a'):''}),_0x17138b(_0x409f0d);})[_0x47ed70('0x1cb5')](function(_0x486316){const _0x37bdd5=_0x47ed70;if(_0x486316[_0x37bdd5('0x11fc')]&&_0x486316[_0x37bdd5('0x11fc')][_0x37bdd5('0x25be')]&&_0x486316[_0x37bdd5('0x11fc')]['errors'][_0x37bdd5('0x2566')]){_0x1025ce[_0x37bdd5('0x25be')]=_0x486316[_0x37bdd5('0x11fc')][_0x37bdd5('0x25be')]||[{'message':_0x486316['toString'](),'type':_0x37bdd5('0x2840')}];for(let _0x435a4a=0x0;_0x435a4a<_0x486316[_0x37bdd5('0x11fc')][_0x37bdd5('0x25be')][_0x37bdd5('0x2566')];_0x435a4a+=0x1){_0x196f5f[_0x37bdd5('0x5e8')]({'title':_0x486316['data'][_0x37bdd5('0x25be')][_0x435a4a][_0x37bdd5('0x1d7')],'msg':_0x486316[_0x37bdd5('0x11fc')]['errors'][_0x435a4a][_0x37bdd5('0x15e2')]});}}else _0x196f5f[_0x37bdd5('0x5e8')]({'title':_0x486316[_0x37bdd5('0x1b51')]?_0x37bdd5('0x15d1')+_0x486316[_0x37bdd5('0x1b51')]+'\x20-\x20'+_0x486316['statusText']:'api.intSugarcrmConfiguration.save','msg':_0x486316[_0x37bdd5('0x11fc')]?JSON[_0x37bdd5('0x1be0')](_0x486316[_0x37bdd5('0x11fc')][_0x37bdd5('0x15e2')]):_0x486316[_0x37bdd5('0x17df')]()});});}function _0x5e169e(){const _0x4128ef=_0x4632bc;_0x1025ce[_0x4128ef('0x25be')]=[],_0xbcc57a[_0x4128ef('0x1e2c')][_0x4128ef('0x2740')]({'id':_0x1025ce[_0x4128ef('0x51d')]['id']},_0x1025ce['sugarcrmConfiguration'])[_0x4128ef('0x1714')][_0x4128ef('0x2788')](function(_0x4f0af1){const _0x36e0e9=_0x4128ef,_0x52d2e0=_0x283545()[_0x36e0e9('0x20e8')](_0x1025ce[_0x36e0e9('0x1b77')],{'id':_0x4f0af1['id']});_0x52d2e0&&_0x283545()[_0x36e0e9('0x2503')](_0x52d2e0,_0x283545()[_0x36e0e9('0x41b')](_0x4f0af1[_0x36e0e9('0x1cbf')](),_0x283545()[_0x36e0e9('0x2163')](_0x52d2e0))),_0x196f5f[_0x36e0e9('0x173b')]({'title':_0x36e0e9('0x409'),'msg':_0x1025ce['sugarcrmConfiguration'][_0x36e0e9('0x1a8d')]?_0x1025ce['sugarcrmConfiguration'][_0x36e0e9('0x1a8d')]+_0x36e0e9('0x24cf'):''}),_0x17138b(_0x4f0af1);})[_0x4128ef('0x1cb5')](function(_0xe60d5b){const _0x451f1b=_0x4128ef;if(_0xe60d5b['data']&&_0xe60d5b[_0x451f1b('0x11fc')][_0x451f1b('0x25be')]&&_0xe60d5b[_0x451f1b('0x11fc')][_0x451f1b('0x25be')][_0x451f1b('0x2566')]){_0x1025ce[_0x451f1b('0x25be')]=_0xe60d5b['data'][_0x451f1b('0x25be')]||[{'message':_0xe60d5b['toString'](),'type':_0x451f1b('0x17d7')}];for(let _0x789f73=0x0;_0x789f73<_0xe60d5b[_0x451f1b('0x11fc')]['errors'][_0x451f1b('0x2566')];_0x789f73++){_0x196f5f[_0x451f1b('0x5e8')]({'title':_0xe60d5b[_0x451f1b('0x11fc')][_0x451f1b('0x25be')][_0x789f73][_0x451f1b('0x1d7')],'msg':_0xe60d5b[_0x451f1b('0x11fc')]['errors'][_0x789f73]['message']});}}else _0x196f5f['error']({'title':_0xe60d5b[_0x451f1b('0x1b51')]?_0x451f1b('0x15d1')+_0xe60d5b[_0x451f1b('0x1b51')]+_0x451f1b('0x1b0b')+_0xe60d5b['statusText']:_0x451f1b('0x17d7'),'msg':_0xe60d5b['data']?JSON[_0x451f1b('0x1be0')](_0xe60d5b[_0x451f1b('0x11fc')][_0x451f1b('0x15e2')]):_0xe60d5b[_0x451f1b('0x17df')]()});});}function _0x5a1392(_0x7608b0){const _0x216268=_0x4632bc;_0x1025ce[_0x216268('0x25be')]=[];const _0x236b61=_0x37166a[_0x216268('0x112e')]()[_0x216268('0x14e4')](_0x216268('0x458'))[_0x216268('0x1c98')]('The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.')[_0x216268('0x10bc')](_0x216268('0x1c46'))['ok'](_0x216268('0x2786'))[_0x216268('0x1801')](_0x216268('0x1481'))[_0x216268('0x24d0')](_0x7608b0);_0x37166a[_0x216268('0x2fa')](_0x236b61)[_0x216268('0x2788')](function(){const _0xaa2223=_0x216268;_0xbcc57a[_0xaa2223('0x1e2c')]['delete']({'id':_0x1025ce[_0xaa2223('0x51d')]['id']})[_0xaa2223('0x1714')][_0xaa2223('0x2788')](function(){const _0x33126f=_0xaa2223;_0x283545()[_0x33126f('0x1a90')](_0x1025ce['configurations'],{'id':_0x1025ce[_0x33126f('0x51d')]['id']}),_0x196f5f['success']({'title':_0x33126f('0x1aca'),'msg':(_0x1025ce[_0x33126f('0x51d')][_0x33126f('0x1a8d')]||_0x33126f('0x51d'))+_0x33126f('0x14d4')}),_0x17138b(_0x1025ce[_0x33126f('0x51d')]);})[_0xaa2223('0x1cb5')](function(_0x394547){const _0x1a3658=_0xaa2223;if(_0x394547['data']&&_0x394547[_0x1a3658('0x11fc')][_0x1a3658('0x25be')]&&_0x394547[_0x1a3658('0x11fc')]['errors'][_0x1a3658('0x2566')]){_0x1025ce[_0x1a3658('0x25be')]=_0x394547['data'][_0x1a3658('0x25be')]||[{'message':_0x394547['toString'](),'type':_0x1a3658('0x18cc')}];for(let _0x587084=0x0;_0x587084<_0x394547[_0x1a3658('0x11fc')]['errors'][_0x1a3658('0x2566')];_0x587084++){_0x196f5f[_0x1a3658('0x5e8')]({'title':_0x394547[_0x1a3658('0x11fc')]['errors'][_0x587084][_0x1a3658('0x1d7')],'msg':_0x394547[_0x1a3658('0x11fc')][_0x1a3658('0x25be')][_0x587084][_0x1a3658('0x15e2')]});}}else _0x196f5f['error']({'title':_0x394547[_0x1a3658('0x1b51')]?_0x1a3658('0x15d1')+_0x394547[_0x1a3658('0x1b51')]+_0x1a3658('0x1b0b')+_0x394547[_0x1a3658('0x22ce')]:_0x1a3658('0x18cc'),'msg':_0x394547[_0x1a3658('0x11fc')]?JSON[_0x1a3658('0x1be0')](_0x394547[_0x1a3658('0x11fc')]['message']):_0x394547[_0x1a3658('0x15e2')]||_0x394547[_0x1a3658('0x17df')]()});});},function(){});}function _0x50e844(_0x323990){return _0x323990===null?undefined:new Date(_0x323990);}function _0x17138b(_0x382f7f){const _0x54dfd9=_0x4632bc;_0x37166a[_0x54dfd9('0x19d')](_0x382f7f);}}const _0x36a982=_0x2c2542;_0xe4a8a6[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0xd57'),_0x34e79e('0x2437'),_0x34e79e('0x117b'),'item',_0x34e79e('0x82f'),_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'crudPermissions'];function _0xe4a8a6(_0x57518a,_0x4f805d,_0x53a0e6,_0x558f12,_0x490ab9,_0x4279e9,_0x455d2f,_0x340362,_0x47b732,_0x5b4e9a,_0x249d82,_0x26504c,_0x13cb5a){const _0x82fea1=_0x34e79e,_0x37c3b8=this;_0x37c3b8[_0x82fea1('0x9cb')]=_0x26504c[_0x82fea1('0x24cc')](),_0x37c3b8[_0x82fea1('0x25be')]=[],_0x37c3b8[_0x82fea1('0x14e4')]=_0x82fea1('0x1df9')+_0x283545()[_0x82fea1('0xc87')](_0x5b4e9a),_0x37c3b8[_0x82fea1('0xd3c')]=angular['copy'](_0x340362),_0x37c3b8['items']=_0x455d2f,_0x37c3b8[_0x82fea1('0x1d7')]=_0x5b4e9a,_0x37c3b8[_0x82fea1('0xe28')]=_0x13cb5a,_0x37c3b8[_0x82fea1('0x63a')]=![];!_0x37c3b8[_0x82fea1('0xd3c')]&&(_0x37c3b8[_0x82fea1('0xd3c')]={'type':_0x82fea1('0x2209')},_0x37c3b8['item'][_0x283545()['capitalize'](_0x5b4e9a)+'Id']=_0x4279e9['id'],_0x37c3b8[_0x82fea1('0x14e4')]=_0x82fea1('0x1109')+_0x283545()[_0x82fea1('0xc87')](_0x5b4e9a),_0x37c3b8[_0x82fea1('0x63a')]=!![]);_0x37c3b8[_0x82fea1('0x1586')]=_0x3d387b,_0x37c3b8[_0x82fea1('0x953')]=_0x1f4698,_0x37c3b8[_0x82fea1('0x1165')]=_0x556c93,_0x37c3b8[_0x82fea1('0xb4f')]=_0xc1dfef,_0x37c3b8[_0x82fea1('0xca7')]=_0x427ad9,_0x249d82[_0x82fea1('0xa72')][_0x82fea1('0x1335')]({'nolimit':!![]})['$promise']['then'](function(_0x298f32){const _0x1551bc=_0x82fea1;return _0x37c3b8[_0x1551bc('0xf76')]=_0x298f32[_0x1551bc('0x25df')]?_0x298f32[_0x1551bc('0x25df')]:[],_0x249d82[_0x1551bc('0x15b7')]['describe']()[_0x1551bc('0x1714')];})['then'](function(_0x75dd89){const _0x1420b9=_0x82fea1;return _0x37c3b8[_0x1420b9('0x1cac')]=_0x283545()[_0x1420b9('0xa9f')](_0x283545()[_0x1420b9('0x2163')](_0x75dd89),[_0x1420b9('0x1714'),_0x1420b9('0x187a'),_0x1420b9('0x172'),_0x1420b9('0x5f'),_0x1420b9('0x900')]),_0x37c3b8[_0x1420b9('0x1cac')]['push'](_0x1420b9('0x12da')),_0x249d82['voiceDialReport'][_0x1420b9('0x15f8')]()[_0x1420b9('0x1714')];})[_0x82fea1('0x2788')](function(_0x484b62){const _0x475635=_0x82fea1;_0x37c3b8[_0x475635('0x226b')]=_0x283545()[_0x475635('0xa9f')](_0x283545()[_0x475635('0x2163')](_0x484b62),[_0x475635('0x1714'),_0x475635('0x187a'),'createdAt',_0x475635('0x5f'),'sourceid']),_0x37c3b8[_0x475635('0x226b')][_0x475635('0x13e3')](_0x475635('0x12da'));})[_0x82fea1('0x1cb5')](function(_0x38ab35){const _0x26811e=_0x82fea1;_0x490ab9[_0x26811e('0x5e8')]({'title':_0x38ab35['status']?_0x26811e('0x15d1')+_0x38ab35['status']+_0x26811e('0x1b0b')+_0x38ab35[_0x26811e('0x22ce')]:_0x26811e('0x694'),'msg':_0x38ab35[_0x26811e('0x11fc')]?JSON['stringify'](_0x38ab35[_0x26811e('0x11fc')]):_0x38ab35[_0x26811e('0x17df')]()});}),_0x249d82[_0x82fea1('0xdc7')][_0x82fea1('0x24')]({'id':_0x47b732['id'],'ticketType':_0x4279e9[_0x82fea1('0x3d9')]?_0x4279e9[_0x82fea1('0x3d9')]:undefined})[_0x82fea1('0x1714')][_0x82fea1('0x2788')](function(_0xc376b1){const _0x12599e=_0x82fea1;_0x37c3b8[_0x12599e('0x551')]=!![],_0x37c3b8[_0x12599e('0x1578')]=_0xc376b1[_0x12599e('0x25df')]?_0xc376b1['rows']:[],_0x37c3b8[_0x12599e('0xd3c')][_0x12599e('0x1ca9')]&&(_0x37c3b8['customField']=_0x283545()[_0x12599e('0x20e8')](_0x37c3b8[_0x12599e('0x1578')],{'id':_0x37c3b8[_0x12599e('0xd3c')]['idField']}));})[_0x82fea1('0x1cb5')](function(_0x5d050e){const _0x2e1b29=_0x82fea1;_0x37c3b8['accountConnected']=![],console[_0x2e1b29('0x5e8')](_0x5d050e);});function _0x3d387b(){const _0x415588=_0x82fea1;_0x37c3b8[_0x415588('0x25be')]=[],_0x37c3b8[_0x415588('0x1ee9')]&&(_0x37c3b8[_0x415588('0xd3c')][_0x415588('0x1ca9')]=_0x37c3b8[_0x415588('0x1ee9')]['id'],_0x37c3b8[_0x415588('0xd3c')][_0x415588('0x98')]=_0x37c3b8[_0x415588('0x1ee9')][_0x415588('0x1a8d')],_0x37c3b8[_0x415588('0xd3c')][_0x415588('0x1ee9')]=_0x37c3b8[_0x415588('0x1ee9')][_0x415588('0x1d56')]),_0x249d82[_0x415588('0x9fe')][_0x415588('0xbd0')](_0x37c3b8[_0x415588('0xd3c')])[_0x415588('0x1714')][_0x415588('0x2788')](function(_0x2ca63d){const _0x53fa0c=_0x415588;_0x37c3b8[_0x53fa0c('0x117b')][_0x53fa0c('0xc51')](_0x2ca63d),_0x490ab9[_0x53fa0c('0x173b')]({'title':_0x283545()[_0x53fa0c('0x1df5')](_0x5b4e9a)+_0x53fa0c('0x194d'),'msg':_0x283545()['capitalize'](_0x5b4e9a)+_0x53fa0c('0x1e4a')}),_0x427ad9();})['catch'](function(_0x3d6416){const _0x12ed7b=_0x415588;console[_0x12ed7b('0x5e8')](_0x3d6416),_0x37c3b8[_0x12ed7b('0x25be')]=_0x3d6416[_0x12ed7b('0x11fc')][_0x12ed7b('0x25be')]||[{'message':_0x3d6416[_0x12ed7b('0x17df')](),'type':'api.item.save'}];});}function _0x1f4698(){const _0x4c31fd=_0x82fea1;_0x37c3b8['errors']=[],_0x37c3b8[_0x4c31fd('0x1ee9')]&&(_0x37c3b8[_0x4c31fd('0xd3c')][_0x4c31fd('0x1ca9')]=_0x37c3b8[_0x4c31fd('0x1ee9')]['id'],_0x37c3b8[_0x4c31fd('0xd3c')]['nameField']=_0x37c3b8['customField'][_0x4c31fd('0x1a8d')],_0x37c3b8['item'][_0x4c31fd('0x1ee9')]=_0x37c3b8[_0x4c31fd('0x1ee9')][_0x4c31fd('0x1d56')]),_0x249d82[_0x4c31fd('0x9fe')][_0x4c31fd('0x2740')]({'id':_0x37c3b8['item']['id']},_0x37c3b8['item'])[_0x4c31fd('0x1714')]['then'](function(_0x1f313b){const _0x3e646b=_0x4c31fd,_0x2ade49=_0x283545()[_0x3e646b('0x20e8')](_0x37c3b8['items'],{'id':_0x1f313b['id']});_0x2ade49&&_0x283545()[_0x3e646b('0x2503')](_0x2ade49,_0x1f313b),_0x490ab9['success']({'title':_0x283545()[_0x3e646b('0x1df5')](_0x5b4e9a)+'\x20properly\x20saved!','msg':_0x283545()['capitalize'](_0x5b4e9a)+'\x20has\x20been\x20saved!'}),_0x427ad9();})['catch'](function(_0x1eaf0a){const _0x37d14f=_0x4c31fd;console['error'](_0x1eaf0a),_0x37c3b8[_0x37d14f('0x25be')]=_0x1eaf0a[_0x37d14f('0x11fc')]['errors']||[{'message':_0x1eaf0a[_0x37d14f('0x17df')](),'type':'api.intItem.update'}];});}function _0x556c93(_0xa8c55b){const _0x34ecb0=_0x82fea1;_0x37c3b8['errors']=[];const _0xef5426=_0x558f12[_0x34ecb0('0x112e')]()[_0x34ecb0('0x14e4')](_0x34ecb0('0x458'))[_0x34ecb0('0x1c98')](_0x34ecb0('0x1b10')+_0x5b4e9a+_0x34ecb0('0x27c7'))[_0x34ecb0('0x10bc')](_0x34ecb0('0x177f')+_0x283545()[_0x34ecb0('0x1df5')](_0x5b4e9a))['ok'](_0x34ecb0('0x2786'))[_0x34ecb0('0x1801')](_0x34ecb0('0x1481'))['targetEvent'](_0xa8c55b);_0x558f12['show'](_0xef5426)[_0x34ecb0('0x2788')](function(){const _0x478c57=_0x34ecb0;_0x249d82[_0x478c57('0x9fe')][_0x478c57('0x17c4')]({'id':_0x37c3b8[_0x478c57('0xd3c')]['id']})[_0x478c57('0x1714')][_0x478c57('0x2788')](function(){const _0xc230c0=_0x478c57;_0x283545()[_0xc230c0('0x1a90')](_0x37c3b8[_0xc230c0('0x117b')],{'id':_0x37c3b8[_0xc230c0('0xd3c')]['id']}),_0x490ab9[_0xc230c0('0x173b')]({'title':_0x283545()[_0xc230c0('0x1df5')](_0x5b4e9a)+_0xc230c0('0x2542'),'msg':_0x283545()[_0xc230c0('0x1df5')](_0x5b4e9a)+'\x20has\x20been\x20deleted!'}),_0x427ad9();})[_0x478c57('0x1cb5')](function(_0x55f562){const _0x469e95=_0x478c57;console[_0x469e95('0x5e8')](_0x55f562),_0x37c3b8[_0x469e95('0x25be')]=_0x55f562[_0x469e95('0x11fc')]['errors']||[{'message':_0x55f562[_0x469e95('0x17df')](),'type':_0x469e95('0x1276')}];});},function(){});}function _0xc1dfef(){const _0x17951b=_0x82fea1;return _0x37c3b8[_0x17951b('0xd3c')][_0x17951b('0x1889')]!==undefined?_0x37c3b8[_0x17951b('0xd3c')][_0x17951b('0x1889')]:_0x17951b('0x6d1');}function _0x427ad9(){const _0x2a08ed=_0x82fea1;_0x558f12[_0x2a08ed('0x19d')]();}}const _0x55a793=_0xe4a8a6;_0x34925c['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$document','$translate',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'sugarcrmAccount',_0x34e79e('0xec9')];function _0x34925c(_0x2ebd4d,_0x1052c6,_0x43ecb4,_0x86dd72,_0x14d2a9,_0x5b4d55,_0x2049d7,_0x1f5dc0,_0x513aaa,_0x2f6535,_0x312598,_0x4e5692){const _0x317c57=_0x34e79e,_0xf5f538=this;_0xf5f538[_0x317c57('0x9cb')]=_0x2f6535[_0x317c57('0x24cc')](),_0xf5f538[_0x317c57('0x130d')]=_0x5b4d55,_0xf5f538[_0x317c57('0x1af0')]=_0x2049d7,_0xf5f538[_0x317c57('0x18ad')]=_0xf5f538[_0x317c57('0x1af0')][_0x317c57('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf5f538['location']=_0x1052c6[_0x317c57('0x170c')]()+_0x317c57('0x726')+_0x1052c6[_0x317c57('0x1c6a')](),_0xf5f538['sugarcrmAccount']=_0x312598||_0x2ebd4d[_0x317c57('0x4b9')][_0x317c57('0x514')]||{},_0xf5f538[_0x317c57('0xec9')]=_0x4e5692&&_0x4e5692['count']==0x1?_0x4e5692['rows'][0x0]:null,_0xf5f538['crudPermissions']=_0x2f6535['parseCrudPermissions'](_0xf5f538['userProfileSection']?_0xf5f538[_0x317c57('0xec9')][_0x317c57('0xe28')]:null),_0xf5f538[_0x317c57('0x1193')]={},_0xf5f538['selectedTab']=_0x2ebd4d['params'][_0x317c57('0x24f6')]||0x0,_0xf5f538['alert']=_0x513aaa[_0x317c57('0x2276')],_0xf5f538['gotoSugarcrmAccounts']=_0x5521f2,_0xf5f538['saveSugarcrmAccount']=_0x55e32c;function _0x5521f2(){const _0x48e585=_0x317c57;_0x2ebd4d['go'](_0x48e585('0x19f5'),{},{'reload':'app.integrations.sugarcrmAccounts'});}function _0x55e32c(){const _0x13ef69=_0x317c57;_0x1f5dc0[_0x13ef69('0xdc7')][_0x13ef69('0x2740')]({'id':_0xf5f538['sugarcrmAccount']['id']},_0xf5f538[_0x13ef69('0x514')])[_0x13ef69('0x1714')][_0x13ef69('0x2788')](function(){const _0x415c61=_0x13ef69;_0x513aaa['success']({'title':'SugarcrmAccount\x20updated!','msg':_0xf5f538[_0x415c61('0x514')][_0x415c61('0x1a8d')]?_0xf5f538[_0x415c61('0x514')][_0x415c61('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x13ef69('0x1cb5')](function(_0x3de210){const _0x340a02=_0x13ef69;_0x513aaa[_0x340a02('0x5e8')]({'title':_0x3de210[_0x340a02('0x1b51')]?'API:'+_0x3de210['status']+_0x340a02('0x1b0b')+_0x3de210['statusText']:_0x340a02('0x153b'),'msg':_0x3de210[_0x340a02('0x11fc')]?JSON[_0x340a02('0x1be0')](_0x3de210[_0x340a02('0x11fc')]):_0x3de210[_0x340a02('0x17df')]()});});}}const _0x135bf8=_0x34925c,_0x2d091d=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html';_0x4d0bfb['$inject']=['$scope',_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0xda4'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x4d0bfb(_0x585b9c,_0xf1ad83,_0xf7240e,_0x549087,_0x4849ab,_0x47e092,_0x8ef03a,_0x140f3a,_0xcfeadc,_0x44beb9,_0x2f1167,_0x2da569,_0xf645b3,_0x55903e,_0x35692a,_0x6eb8d7,_0x3f5e69){const _0x221187=_0x34e79e,_0x5000b0=this;_0x5000b0[_0x221187('0x130d')]=_0x6eb8d7,_0x5000b0['setting']=_0x3f5e69,_0x5000b0[_0x221187('0x9cb')]=_0x35692a[_0x221187('0x24cc')](),_0x5000b0[_0x221187('0xda4')]=_0xcfeadc||{'count':0x0,'rows':[]},_0x5000b0[_0x221187('0x63c')]=_0x44beb9,_0x5000b0[_0x221187('0xec9')]=_0x2f1167&&_0x2f1167[_0x221187('0x338')]==0x1?_0x2f1167[_0x221187('0x25df')][0x0]:null,_0x5000b0[_0x221187('0xe28')]=_0x35692a['parseCrudPermissions'](_0x5000b0[_0x221187('0xec9')]?_0x5000b0[_0x221187('0xec9')][_0x221187('0xe28')]:null),_0x5000b0[_0x221187('0x26a9')]=_0x221187('0xda4'),_0x5000b0[_0x221187('0x2278')]='',_0x5000b0[_0x221187('0x25e2')]=null,_0x5000b0[_0x221187('0x1a93')]=[],_0x5000b0[_0x221187('0x135a')]={'fields':_0x221187('0xd43'),'limit':0xa,'page':0x1},_0x5000b0[_0x221187('0x1f7e')]=_0x116d7f,_0x5000b0[_0x221187('0x1f2f')]=_0xfd4c0f,_0x5000b0[_0x221187('0x1e5')]=_0x30ebe9,_0x5000b0[_0x221187('0x173b')]=_0x4663ce,_0x5000b0[_0x221187('0x352')]=_0x211e05,_0x5000b0[_0x221187('0x15ac')]=_0x320e1f,_0x5000b0[_0x221187('0xef8')]=_0x5db9b6,_0x5000b0['exportSelectedSugarcrmAccounts']=_0x1e0cbc,_0x5000b0[_0x221187('0x1a5e')]=_0x1ed0ee,_0x5000b0[_0x221187('0x1ea5')]=_0x300730,_0x5000b0[_0x221187('0x20')]=_0x2d4f6e;function _0x116d7f(_0x1681f4){const _0x534b98=_0x221187;_0xf7240e['go'](_0x534b98('0x2829'),{'id':_0x1681f4['id'],'sugarcrmAccount':_0x1681f4,'crudPermissions':_0x5000b0['crudPermissions']});}function _0xfd4c0f(_0x22aaac){const _0x287e94=_0x221187;return _0x2da569[_0x287e94('0xdc7')]['getFields']({'id':_0x22aaac['id'],'test':!![]})[_0x287e94('0x1714')][_0x287e94('0x2788')](function(){const _0xe7265e=_0x287e94;_0x55903e[_0xe7265e('0x173b')]({'title':_0xe7265e('0x11a8'),'msg':_0xe7265e('0x53e')});})[_0x287e94('0x1cb5')](function(_0x3b00bb){const _0x1f8693=_0x287e94;_0x55903e[_0x1f8693('0x5e8')]({'title':_0x1f8693('0x11a8'),'msg':_0x3b00bb[_0x1f8693('0x11fc')]?_0x3b00bb[_0x1f8693('0x11fc')][_0x1f8693('0x15e2')]?_0x3b00bb[_0x1f8693('0x11fc')][_0x1f8693('0x15e2')]:JSON[_0x1f8693('0x1be0')](_0x3b00bb[_0x1f8693('0x11fc')]):_0x3b00bb[_0x1f8693('0x17df')]()});});}function _0x30ebe9(_0x4df214,_0x37994b){const _0x3f00d3=_0x221187,_0x534be6=_0x4849ab['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()['startCase'](_0x3f00d3('0x514'))+'?')[_0x3f00d3('0x93e')](_0x3f00d3('0x1670')+(_0x4df214[_0x3f00d3('0x1a8d')]||_0x3f00d3('0x514'))+_0x3f00d3('0x229e')+_0x3f00d3('0x27c7'))[_0x3f00d3('0x10bc')](_0x3f00d3('0x2144'))[_0x3f00d3('0x24d0')](_0x37994b)['ok']('OK')['cancel'](_0x3f00d3('0x1d8d'));_0x4849ab[_0x3f00d3('0x2fa')](_0x534be6)[_0x3f00d3('0x2788')](function(){_0x5db9b6(_0x4df214);},function(){const _0x39f6ec=_0x3f00d3;console[_0x39f6ec('0x10df')]('CANCEL');});}let _0x21a054=!![],_0x110bb7=0x1;_0x585b9c[_0x221187('0x1662')](_0x221187('0x1569'),function(_0x235091,_0x20bfd6){const _0x227f3b=_0x221187;_0x21a054?_0x8ef03a(function(){_0x21a054=![];}):(!_0x20bfd6&&(_0x110bb7=_0x5000b0['query'][_0x227f3b('0x23f5')]),_0x235091!==_0x20bfd6&&(_0x5000b0[_0x227f3b('0x135a')]['page']=0x1),!_0x235091&&(_0x5000b0[_0x227f3b('0x135a')][_0x227f3b('0x23f5')]=_0x110bb7),_0x5000b0['getSugarcrmAccounts']());});function _0x4663ce(_0x424ee4){const _0x132934=_0x221187;_0x5000b0[_0x132934('0xda4')]=_0x424ee4||{'count':0x0,'rows':[]};}function _0x211e05(){const _0x556010=_0x221187;_0x5000b0['query']['offset']=(_0x5000b0[_0x556010('0x135a')][_0x556010('0x23f5')]-0x1)*_0x5000b0[_0x556010('0x135a')][_0x556010('0x68e')],_0x35692a['hasRole']('admin')?_0x5000b0[_0x556010('0x1808')]=_0x2da569[_0x556010('0xdc7')][_0x556010('0x1335')](_0x5000b0[_0x556010('0x135a')],_0x4663ce)['$promise']:(_0x5000b0[_0x556010('0x135a')]['id']=_0x5000b0[_0x556010('0x63c')]['id'],_0x5000b0['query'][_0x556010('0xb13')]=_0x556010('0x842'),_0x5000b0[_0x556010('0x1808')]=_0x2da569[_0x556010('0x63c')][_0x556010('0xa1')](_0x5000b0['query'],_0x4663ce)[_0x556010('0x1714')]);}function _0x320e1f(_0x183133,_0x1addbb){const _0x8af580=_0x221187;_0x4849ab['show']({'controller':_0x8af580('0x142b'),'controllerAs':'vm','templateUrl':_0x2d091d,'parent':angular[_0x8af580('0x16b1')](_0x47e092['body']),'targetEvent':_0x183133,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x1addbb,'sugarcrmAccounts':_0x5000b0['sugarcrmAccounts'][_0x8af580('0x25df')],'license':_0x5000b0[_0x8af580('0x130d')],'setting':_0x5000b0[_0x8af580('0x1af0')],'crudPermissions':_0x5000b0['crudPermissions']}});}function _0x5db9b6(_0x5b49fd){const _0x9364ef=_0x221187;_0x2da569[_0x9364ef('0xdc7')][_0x9364ef('0x17c4')]({'id':_0x5b49fd['id']})[_0x9364ef('0x1714')][_0x9364ef('0x2788')](function(){const _0x528ad0=_0x9364ef;_0x283545()['remove'](_0x5000b0['sugarcrmAccounts'][_0x528ad0('0x25df')],{'id':_0x5b49fd['id']}),_0x5000b0[_0x528ad0('0xda4')]['count']-=0x1,!_0x5000b0['sugarcrmAccounts']['rows'][_0x528ad0('0x2566')]&&_0x5000b0[_0x528ad0('0x352')](),_0x55903e[_0x528ad0('0x173b')]({'title':_0x283545()['startCase'](_0x528ad0('0x130e'))+_0x528ad0('0x20db'),'msg':_0x5b49fd[_0x528ad0('0x1a8d')]?_0x5b49fd[_0x528ad0('0x1a8d')]+_0x528ad0('0x14d4'):''});})['catch'](function(_0x3c0b05){const _0x138710=_0x9364ef;if(_0x3c0b05['data']&&_0x3c0b05[_0x138710('0x11fc')]['errors']&&_0x3c0b05['data'][_0x138710('0x25be')][_0x138710('0x2566')]){_0x5000b0[_0x138710('0x25be')]=_0x3c0b05[_0x138710('0x11fc')]['errors']||[{'message':_0x3c0b05['toString'](),'type':_0x138710('0x1cc6')}];for(let _0x2e1d2c=0x0;_0x2e1d2c<_0x3c0b05[_0x138710('0x11fc')]['errors'][_0x138710('0x2566')];_0x2e1d2c++){_0x55903e[_0x138710('0x5e8')]({'title':_0x3c0b05['data']['errors'][_0x2e1d2c][_0x138710('0x1d7')],'msg':_0x3c0b05[_0x138710('0x11fc')][_0x138710('0x25be')][_0x2e1d2c][_0x138710('0x15e2')]});}}else _0x55903e[_0x138710('0x5e8')]({'title':_0x3c0b05[_0x138710('0x1b51')]?'API:'+_0x3c0b05['status']+'\x20-\x20'+_0x3c0b05[_0x138710('0x22ce')]:_0x138710('0x1cc6'),'msg':_0x3c0b05['data']?JSON['stringify'](_0x3c0b05[_0x138710('0x11fc')][_0x138710('0x15e2')]):_0x3c0b05[_0x138710('0x15e2')]||_0x3c0b05[_0x138710('0x17df')]()});});}function _0x1e0cbc(){const _0x38f1c4=_0x221187,_0x13487c=angular['copy'](_0x5000b0[_0x38f1c4('0x1a93')]);return _0x5000b0['selectedSugarcrmAccounts']=[],_0x13487c;}function _0x1ed0ee(_0x4e35d8){const _0x5ea3fe=_0x221187,_0x7d6188=_0x4849ab[_0x5ea3fe('0x112e')]()[_0x5ea3fe('0x14e4')](_0x5ea3fe('0x5b2'))[_0x5ea3fe('0x93e')](''+_0x5000b0[_0x5ea3fe('0x1a93')][_0x5ea3fe('0x2566')]+_0x5ea3fe('0xbd')+'\x20will\x20be\x20deleted.')[_0x5ea3fe('0x10bc')](_0x5ea3fe('0x2294'))[_0x5ea3fe('0x24d0')](_0x4e35d8)['ok']('OK')[_0x5ea3fe('0x1801')](_0x5ea3fe('0x1d8d'));_0x4849ab['show'](_0x7d6188)[_0x5ea3fe('0x2788')](function(){_0x5000b0['selectedSugarcrmAccounts']['forEach'](function(_0x3927e1){_0x5db9b6(_0x3927e1);}),_0x5000b0['selectedSugarcrmAccounts']=[];});}function _0x300730(){const _0x392c96=_0x221187;_0x5000b0[_0x392c96('0x1a93')]=[];}function _0x2d4f6e(){const _0x3244de=_0x221187;_0x5000b0[_0x3244de('0x1a93')]=_0x5000b0['sugarcrmAccounts']['rows'];}}const _0x2c10da=_0x4d0bfb;_0x27c051[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x474'),_0x34e79e('0x274a'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x27c051(_0x424527,_0x454f44,_0x1e22c9,_0x50a4d6,_0x2502cf,_0x19ecd2,_0x2f1d40,_0x3e2510,_0x5f45a,_0x60c737,_0xb88782,_0x5518af,_0xd00062,_0x295d81){const _0x29a3ad=_0x34e79e,_0x3ebfce=this;_0x3ebfce[_0x29a3ad('0x9cb')]=_0xb88782[_0x29a3ad('0x24cc')](),_0x3ebfce[_0x29a3ad('0x25be')]=[],_0x3ebfce['setting']=_0xd00062,_0x3ebfce[_0x29a3ad('0x130d')]=_0x5518af,_0x3ebfce[_0x29a3ad('0xe28')]=_0x295d81,_0x3ebfce['hasModulePermissions']={},_0x3ebfce[_0x29a3ad('0x18ad')]=_0x3ebfce[_0x29a3ad('0x1af0')]&&_0x3ebfce[_0x29a3ad('0x1af0')][_0x29a3ad('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ebfce[_0x29a3ad('0x14e4')]=_0x29a3ad('0x7b1'),_0x3ebfce[_0x29a3ad('0x274a')]=angular[_0x29a3ad('0x2669')](_0x5f45a),_0x3ebfce[_0x29a3ad('0x474')]=_0x3e2510,_0x3ebfce[_0x29a3ad('0xd99')]=![];!_0x3ebfce[_0x29a3ad('0x274a')]&&(_0x3ebfce['vtigerAccount']={'serverUrl':_0x1e22c9[_0x29a3ad('0x170c')]()+_0x29a3ad('0x726')+_0x1e22c9[_0x29a3ad('0x1c6a')]()+(_0x1e22c9[_0x29a3ad('0x1fee')]()?':'+_0x1e22c9[_0x29a3ad('0x1fee')]():'')},_0x3ebfce['title']=_0x29a3ad('0x13b3'),_0x3ebfce[_0x29a3ad('0xd99')]=!![]);_0x3ebfce[_0x29a3ad('0xa82')]=_0x2d5c28,_0x3ebfce[_0x29a3ad('0xe0e')]=_0x51a9d7,_0x3ebfce[_0x29a3ad('0x1dd2')]=_0x3694c7,_0x3ebfce[_0x29a3ad('0x2601')]=_0xc760c9,_0x3ebfce[_0x29a3ad('0xca7')]=_0xc4217c;function _0x2d5c28(){const _0x468a54=_0x29a3ad;_0x3ebfce[_0x468a54('0x25be')]=[],_0x60c737[_0x468a54('0x1f07')]['save'](_0x3ebfce[_0x468a54('0x274a')])['$promise'][_0x468a54('0x2788')](function(_0x1262f3){const _0xa529aa=_0x468a54;_0x3ebfce['vtigerAccounts'][_0xa529aa('0xc51')](_0x1262f3[_0xa529aa('0x1cbf')]()),_0x2f1d40[_0xa529aa('0x173b')]({'title':_0xa529aa('0x2298'),'msg':_0x3ebfce[_0xa529aa('0x274a')][_0xa529aa('0x1a8d')]?_0x3ebfce[_0xa529aa('0x274a')]['name']+_0xa529aa('0x1e4a'):''}),_0xc4217c(_0x1262f3);})[_0x468a54('0x1cb5')](function(_0x182694){const _0x52258c=_0x468a54;if(_0x182694[_0x52258c('0x11fc')]&&_0x182694[_0x52258c('0x11fc')][_0x52258c('0x25be')]&&_0x182694[_0x52258c('0x11fc')][_0x52258c('0x25be')][_0x52258c('0x2566')]){_0x3ebfce[_0x52258c('0x25be')]=_0x182694[_0x52258c('0x11fc')]['errors']||[{'message':_0x182694[_0x52258c('0x17df')](),'type':'api.intVtigerAccount.save'}];for(let _0x3f482f=0x0;_0x3f482f<_0x182694[_0x52258c('0x11fc')]['errors']['length'];_0x3f482f+=0x1){_0x2f1d40['error']({'title':_0x182694[_0x52258c('0x11fc')][_0x52258c('0x25be')][_0x3f482f][_0x52258c('0x1d7')],'msg':_0x182694[_0x52258c('0x11fc')][_0x52258c('0x25be')][_0x3f482f]['message']});}}else _0x2f1d40[_0x52258c('0x5e8')]({'title':_0x182694[_0x52258c('0x1b51')]?_0x52258c('0x15d1')+_0x182694[_0x52258c('0x1b51')]+_0x52258c('0x1b0b')+_0x182694[_0x52258c('0x22ce')]:_0x52258c('0x936'),'msg':_0x182694[_0x52258c('0x11fc')]?JSON[_0x52258c('0x1be0')](_0x182694[_0x52258c('0x11fc')][_0x52258c('0x15e2')]):_0x182694['toString']()});});}function _0x51a9d7(){const _0x20a67b=_0x29a3ad;_0x3ebfce[_0x20a67b('0x25be')]=[],_0x60c737[_0x20a67b('0x1f07')][_0x20a67b('0x2740')]({'id':_0x3ebfce[_0x20a67b('0x274a')]['id']},_0x3ebfce[_0x20a67b('0x274a')])[_0x20a67b('0x1714')][_0x20a67b('0x2788')](function(_0x48848a){const _0x1b2b56=_0x20a67b,_0x52d21a=_0x283545()['find'](_0x3ebfce[_0x1b2b56('0x474')],{'id':_0x48848a['id']});_0x52d21a&&_0x283545()[_0x1b2b56('0x2503')](_0x52d21a,_0x283545()[_0x1b2b56('0x41b')](_0x48848a[_0x1b2b56('0x1cbf')](),_0x283545()[_0x1b2b56('0x2163')](_0x52d21a))),_0x2f1d40[_0x1b2b56('0x173b')]({'title':'VtigerAccount\x20properly\x20saved!','msg':_0x3ebfce[_0x1b2b56('0x274a')]['name']?_0x3ebfce[_0x1b2b56('0x274a')][_0x1b2b56('0x1a8d')]+_0x1b2b56('0x24cf'):''}),_0xc4217c(_0x48848a);})[_0x20a67b('0x1cb5')](function(_0x21a83d){const _0x4030f1=_0x20a67b;if(_0x21a83d[_0x4030f1('0x11fc')]&&_0x21a83d[_0x4030f1('0x11fc')][_0x4030f1('0x25be')]&&_0x21a83d['data'][_0x4030f1('0x25be')][_0x4030f1('0x2566')]){_0x3ebfce[_0x4030f1('0x25be')]=_0x21a83d[_0x4030f1('0x11fc')][_0x4030f1('0x25be')]||[{'message':_0x21a83d[_0x4030f1('0x17df')](),'type':'api.intVtigerAccount.update'}];for(let _0x57f180=0x0;_0x57f180<_0x21a83d['data'][_0x4030f1('0x25be')]['length'];_0x57f180++){_0x2f1d40[_0x4030f1('0x5e8')]({'title':_0x21a83d[_0x4030f1('0x11fc')]['errors'][_0x57f180]['type'],'msg':_0x21a83d[_0x4030f1('0x11fc')]['errors'][_0x57f180]['message']});}}else _0x2f1d40[_0x4030f1('0x5e8')]({'title':_0x21a83d[_0x4030f1('0x1b51')]?_0x4030f1('0x15d1')+_0x21a83d['status']+_0x4030f1('0x1b0b')+_0x21a83d[_0x4030f1('0x22ce')]:_0x4030f1('0x8e5'),'msg':_0x21a83d['data']?JSON[_0x4030f1('0x1be0')](_0x21a83d[_0x4030f1('0x11fc')][_0x4030f1('0x15e2')]):_0x21a83d[_0x4030f1('0x17df')]()});});}function _0x3694c7(_0x541525){const _0x327182=_0x29a3ad;_0x3ebfce[_0x327182('0x25be')]=[];const _0x44d26d=_0x50a4d6[_0x327182('0x112e')]()[_0x327182('0x14e4')]('Are\x20you\x20sure?')[_0x327182('0x1c98')](_0x327182('0x263e'))['ariaLabel']('Delete\x20VtigerAccount')['ok']('Delete')[_0x327182('0x1801')](_0x327182('0x1481'))[_0x327182('0x24d0')](_0x541525);_0x50a4d6['show'](_0x44d26d)['then'](function(){const _0x4b051b=_0x327182;_0x60c737[_0x4b051b('0x1f07')][_0x4b051b('0x17c4')]({'id':_0x3ebfce[_0x4b051b('0x274a')]['id']})[_0x4b051b('0x1714')][_0x4b051b('0x2788')](function(){const _0x1ea4f7=_0x4b051b;_0x283545()['remove'](_0x3ebfce[_0x1ea4f7('0x474')],{'id':_0x3ebfce[_0x1ea4f7('0x274a')]['id']}),_0x2f1d40['success']({'title':'VtigerAccount\x20properly\x20deleted!','msg':(_0x3ebfce['vtigerAccount'][_0x1ea4f7('0x1a8d')]||_0x1ea4f7('0x274a'))+_0x1ea4f7('0x14d4')}),_0xc4217c(_0x3ebfce['vtigerAccount']);})[_0x4b051b('0x1cb5')](function(_0x11cf4e){const _0x47416b=_0x4b051b;if(_0x11cf4e[_0x47416b('0x11fc')]&&_0x11cf4e['data'][_0x47416b('0x25be')]&&_0x11cf4e[_0x47416b('0x11fc')]['errors'][_0x47416b('0x2566')]){_0x3ebfce[_0x47416b('0x25be')]=_0x11cf4e[_0x47416b('0x11fc')][_0x47416b('0x25be')]||[{'message':_0x11cf4e['toString'](),'type':_0x47416b('0x700')}];for(let _0x525c15=0x0;_0x525c15<_0x11cf4e[_0x47416b('0x11fc')]['errors']['length'];_0x525c15++){_0x2f1d40[_0x47416b('0x5e8')]({'title':_0x11cf4e[_0x47416b('0x11fc')][_0x47416b('0x25be')][_0x525c15][_0x47416b('0x1d7')],'msg':_0x11cf4e['data'][_0x47416b('0x25be')][_0x525c15][_0x47416b('0x15e2')]});}}else _0x2f1d40[_0x47416b('0x5e8')]({'title':_0x11cf4e[_0x47416b('0x1b51')]?_0x47416b('0x15d1')+_0x11cf4e['status']+_0x47416b('0x1b0b')+_0x11cf4e[_0x47416b('0x22ce')]:'api.intVtigerAccount.delete','msg':_0x11cf4e[_0x47416b('0x11fc')]?JSON[_0x47416b('0x1be0')](_0x11cf4e['data'][_0x47416b('0x15e2')]):_0x11cf4e['message']||_0x11cf4e[_0x47416b('0x17df')]()});});},function(){});}function _0xc760c9(_0x1525b0){return _0x1525b0===null?undefined:new Date(_0x1525b0);}function _0xc4217c(_0x5241df){const _0x54d3ac=_0x29a3ad;_0x50a4d6[_0x54d3ac('0x19d')](_0x5241df);}}const _0xf13c57=_0x27c051,_0x533cf9=_0x18dd13['p']+_0x34e79e('0x730'),_0x1e0792=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html';_0x45a1f5[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x45a1f5(_0xb7b09d,_0x2563c4,_0x66bbd5,_0x2eceb3,_0x2229fc){const _0x229285=_0x34e79e,_0x4b315a=this;_0x4b315a[_0x229285('0x9cb')]=_0x2229fc['getCurrentUser'](),_0x4b315a['vtigerAccount']={},_0x4b315a['vtigerConfiguration']={},_0x4b315a['configurations']=[],_0x4b315a[_0x229285('0x1154')]=-0x1,_0x4b315a['crudPermissions'],_0x4b315a[_0x229285('0x24eb')]=_0x53cb43,_0x4b315a[_0x229285('0x1856')]=_0x300c35,_0x4b315a[_0x229285('0x2104')]=_0x380d04,_0x4b315a[_0x229285('0xb25')]=_0x4a51fc;function _0x53cb43(_0x5a0ed8,_0x50483d){const _0x354c1a=_0x229285;_0x4b315a[_0x354c1a('0x274a')]=_0x5a0ed8,_0x4b315a[_0x354c1a('0xe28')]=typeof _0x50483d!==_0x354c1a('0xedb')?_0x50483d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x66bbd5[_0x354c1a('0x1f07')][_0x354c1a('0x1168')]({'id':_0x4b315a['vtigerAccount']['id'],'sort':_0x354c1a('0x1cee')})[_0x354c1a('0x1714')]['then'](function(_0x43a9b3){const _0x269ec3=_0x354c1a;return _0x4b315a[_0x269ec3('0x1b77')]=_0x43a9b3[_0x269ec3('0x25df')]?_0x43a9b3[_0x269ec3('0x25df')]:[],_0x4b315a[_0x269ec3('0x1b77')]['length']&&_0x4b315a[_0x269ec3('0x1856')](0x0),_0x66bbd5[_0x269ec3('0xa72')][_0x269ec3('0x1335')]({'nolimit':!![],'sort':_0x269ec3('0x1a8d')})[_0x269ec3('0x1714')];})[_0x354c1a('0x2788')](function(_0xbbc812){const _0x4da58a=_0x354c1a;_0x4b315a[_0x4da58a('0xf76')]=_0xbbc812['rows']?_0xbbc812['rows']:[],_0x4b315a[_0x4da58a('0xdd1')]=_0x283545()[_0x4da58a('0x13cf')](_0x4b315a[_0x4da58a('0xf76')],'id');})[_0x354c1a('0x1cb5')](function(_0x432a15){const _0x3c7228=_0x354c1a;_0x2eceb3[_0x3c7228('0x5e8')]({'title':_0x432a15[_0x3c7228('0x1b51')]?_0x3c7228('0x15d1')+_0x432a15[_0x3c7228('0x1b51')]+_0x3c7228('0x1b0b')+_0x432a15[_0x3c7228('0x22ce')]:_0x3c7228('0x24e'),'msg':_0x432a15[_0x3c7228('0x11fc')]?JSON[_0x3c7228('0x1be0')](_0x432a15[_0x3c7228('0x11fc')]):_0x432a15[_0x3c7228('0x17df')]()});});}function _0x300c35(_0x4814e4){const _0x1be5b3=_0x229285;_0x4b315a[_0x1be5b3('0x25f3')]=_0x4b315a[_0x1be5b3('0x1b77')][_0x4814e4],_0x4b315a[_0x1be5b3('0x1154')]=_0x4814e4,_0x66bbd5[_0x1be5b3('0x649')]['getSubjects']({'id':_0x4b315a[_0x1be5b3('0x25f3')]['id']})[_0x1be5b3('0x1714')][_0x1be5b3('0x2788')](function(_0xbbd893){const _0x2f0814=_0x1be5b3;return _0x4b315a[_0x2f0814('0x348')]=_0xbbd893[_0x2f0814('0x25df')]?_0xbbd893[_0x2f0814('0x25df')]:[],_0x66bbd5['intVtigerConfiguration'][_0x2f0814('0x221a')]({'id':_0x4b315a[_0x2f0814('0x25f3')]['id']})[_0x2f0814('0x1714')];})[_0x1be5b3('0x2788')](function(_0x1ce750){const _0x41ee2a=_0x1be5b3;return _0x4b315a[_0x41ee2a('0x1942')]=_0x1ce750['rows']?_0x1ce750['rows']:[],_0x66bbd5[_0x41ee2a('0x649')]['getFields']({'id':_0x4b315a['vtigerConfiguration']['id']})[_0x41ee2a('0x1714')];})[_0x1be5b3('0x2788')](function(_0x48c454){const _0x2ff955=_0x1be5b3;_0x4b315a[_0x2ff955('0x1578')]=_0x48c454[_0x2ff955('0x25df')]?_0x48c454[_0x2ff955('0x25df')]:[];})[_0x1be5b3('0x1cb5')](function(_0x4be01a){const _0x5cae91=_0x1be5b3;_0x2eceb3[_0x5cae91('0x5e8')]({'title':_0x4be01a[_0x5cae91('0x1b51')]?_0x5cae91('0x15d1')+_0x4be01a['status']+_0x5cae91('0x1b0b')+_0x4be01a[_0x5cae91('0x22ce')]:'SYSTEM:GETConfigurations','msg':_0x4be01a[_0x5cae91('0x11fc')]?JSON['stringify'](_0x4be01a['data']):_0x4be01a[_0x5cae91('0x17df')]()});});}function _0x380d04(_0x3f8f9c,_0x17aa71){const _0x5f0a86=_0x229285;_0xb7b09d['show']({'controller':'CreateOrEditVtigerConfigurationDialogController','controllerAs':'vm','templateUrl':_0x533cf9,'parent':angular['element'](_0x2563c4['body']),'targetEvent':_0x3f8f9c,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x17aa71,'configurations':_0x4b315a[_0x5f0a86('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x4b315a[_0x5f0a86('0xe28')]}})[_0x5f0a86('0x1ed8')](function(){const _0x3b1609=_0x5f0a86;_0x4b315a[_0x3b1609('0x1856')](0x0);});}function _0x4a51fc(_0x5176a8,_0x1b3f5d){const _0x3e48c5=_0x229285,_0x2edfc3=_0xb7b09d[_0x3e48c5('0x112e')]()['title'](_0x3e48c5('0x2843'))[_0x3e48c5('0x93e')](_0x3e48c5('0x1670')+(_0x1b3f5d[_0x3e48c5('0x1a8d')]||_0x3e48c5('0x25f3'))+_0x3e48c5('0x229e')+_0x3e48c5('0x27c7'))[_0x3e48c5('0x10bc')](_0x3e48c5('0x4f9'))[_0x3e48c5('0x24d0')](_0x5176a8)['ok']('OK')[_0x3e48c5('0x1801')](_0x3e48c5('0x1d8d'));_0xb7b09d['show'](_0x2edfc3)[_0x3e48c5('0x2788')](function(){const _0x4418ea=_0x3e48c5;_0x66bbd5[_0x4418ea('0x649')][_0x4418ea('0x17c4')]({'id':_0x1b3f5d['id']})['$promise'][_0x4418ea('0x2788')](function(){const _0x31b14e=_0x4418ea;_0x283545()[_0x31b14e('0x1a90')](_0x4b315a[_0x31b14e('0x1b77')],{'id':_0x1b3f5d['id']}),_0x2eceb3[_0x31b14e('0x173b')]({'title':_0x31b14e('0x72b'),'msg':_0x1b3f5d[_0x31b14e('0x1a8d')]?_0x1b3f5d[_0x31b14e('0x1a8d')]+_0x31b14e('0x14d4'):''});})['catch'](function(_0x209e17){const _0x182877=_0x4418ea;_0x2eceb3[_0x182877('0x5e8')]({'title':_0x209e17[_0x182877('0x1b51')]?'API:'+_0x209e17[_0x182877('0x1b51')]+_0x182877('0x1b0b')+_0x209e17[_0x182877('0x22ce')]:_0x182877('0x26b4'),'msg':_0x209e17['data']?JSON['stringify'](_0x209e17[_0x182877('0x11fc')]):_0x209e17[_0x182877('0x17df')]()});})[_0x4418ea('0x1ed8')](function(){_0x4b315a['getVtigerConfiguration'](0x0);});},function(){console['log']('CANCEL');});}_0x4b315a[_0x229285('0x2012')]=[],_0x4b315a['createOrEditSubject']=_0x44884a,_0x4b315a['deleteSubjectConfirm']=_0x4fb3e7,_0x4b315a['deleteSelectedSubjects']=_0x2720d7;function _0x44884a(_0x5b240f,_0xa6eed3){const _0x5c5b2d=_0x229285;_0xb7b09d[_0x5c5b2d('0x2fa')]({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x1e0792,'parent':angular['element'](_0x2563c4[_0x5c5b2d('0x945')]),'targetEvent':_0x5b240f,'clickOutsideToClose':!![],'locals':{'type':_0x5c5b2d('0x248f'),'item':_0xa6eed3,'items':_0x4b315a[_0x5c5b2d('0x348')],'configuration':_0x4b315a['vtigerConfiguration'],'account':_0x4b315a[_0x5c5b2d('0x274a')],'license':null,'setting':null,'crudPermissions':_0x4b315a[_0x5c5b2d('0xe28')]}});}function _0x2c26ed(_0x22ee50){const _0x58f56=_0x229285;_0x66bbd5['intVtigerField'][_0x58f56('0x17c4')]({'id':_0x22ee50['id']})[_0x58f56('0x1714')][_0x58f56('0x2788')](function(){const _0x53c6e3=_0x58f56;_0x283545()['remove'](_0x4b315a['subjects'],{'id':_0x22ee50['id']}),_0x2eceb3['success']({'title':'Subject\x20deleted!','msg':_0x53c6e3('0xb6c')});})[_0x58f56('0x1cb5')](function(_0x173038){const _0x39ef3d=_0x58f56;_0x2eceb3[_0x39ef3d('0x5e8')]({'title':_0x173038[_0x39ef3d('0x1b51')]?_0x39ef3d('0x15d1')+_0x173038['status']+_0x39ef3d('0x1b0b')+_0x173038[_0x39ef3d('0x22ce')]:_0x39ef3d('0x2803'),'msg':_0x173038['data']?JSON['stringify'](_0x173038[_0x39ef3d('0x11fc')]):_0x173038[_0x39ef3d('0x17df')]()});});}function _0x4fb3e7(_0x9a4e97,_0x3ff9ad){const _0x31cd21=_0x229285,_0x255b24=_0xb7b09d[_0x31cd21('0x112e')]()[_0x31cd21('0x14e4')](_0x31cd21('0x6dd'))[_0x31cd21('0x93e')](_0x31cd21('0xdc')+_0x31cd21('0x27c7'))['ariaLabel'](_0x31cd21('0x2126'))['targetEvent'](_0x9a4e97)['ok']('OK')[_0x31cd21('0x1801')](_0x31cd21('0x1d8d'));_0xb7b09d['show'](_0x255b24)[_0x31cd21('0x2788')](function(){_0x2c26ed(_0x3ff9ad);},function(){const _0x39322b=_0x31cd21;console[_0x39322b('0x10df')](_0x39322b('0x1d8d'));});}function _0x2720d7(_0x4773ad){const _0x2093c8=_0x229285,_0x3c8b9f=_0xb7b09d[_0x2093c8('0x112e')]()['title'](_0x2093c8('0xa11'))[_0x2093c8('0x93e')](_0x2093c8('0x1670')+_0x4b315a[_0x2093c8('0x2012')]['length']+'\x20selected'+_0x2093c8('0x27c7'))[_0x2093c8('0x10bc')](_0x2093c8('0x19b1'))[_0x2093c8('0x24d0')](_0x4773ad)['ok']('OK')[_0x2093c8('0x1801')]('CANCEL');_0xb7b09d[_0x2093c8('0x2fa')](_0x3c8b9f)[_0x2093c8('0x2788')](function(){const _0x5d76a0=_0x2093c8;_0x4b315a['selectedSubjects']['forEach'](function(_0x26a630){_0x2c26ed(_0x26a630);}),_0x4b315a[_0x5d76a0('0x2012')]=[];});}_0x4b315a[_0x229285('0x58e')]=[],_0x4b315a[_0x229285('0x820')]=_0x415d46,_0x4b315a[_0x229285('0x16ad')]=_0x396181,_0x4b315a[_0x229285('0x16b5')]=_0x425c36;function _0x415d46(_0x23f9fb,_0x1c50bb){const _0x3d7058=_0x229285;_0xb7b09d[_0x3d7058('0x2fa')]({'controller':_0x3d7058('0x1ee6'),'controllerAs':'vm','templateUrl':_0x1e0792,'parent':angular[_0x3d7058('0x16b1')](_0x2563c4[_0x3d7058('0x945')]),'targetEvent':_0x23f9fb,'clickOutsideToClose':!![],'locals':{'type':_0x3d7058('0x27b9'),'item':_0x1c50bb,'items':_0x4b315a[_0x3d7058('0x1942')],'configuration':_0x4b315a[_0x3d7058('0x25f3')],'account':_0x4b315a[_0x3d7058('0x274a')],'license':null,'setting':null,'crudPermissions':_0x4b315a[_0x3d7058('0xe28')]}});}function _0x5d609d(_0x5a8440){const _0x33ddc1=_0x229285;_0x66bbd5[_0x33ddc1('0x81e')][_0x33ddc1('0x17c4')]({'id':_0x5a8440['id']})[_0x33ddc1('0x1714')]['then'](function(){const _0x4c5432=_0x33ddc1;_0x283545()[_0x4c5432('0x1a90')](_0x4b315a[_0x4c5432('0x1942')],{'id':_0x5a8440['id']}),_0x2eceb3['success']({'title':_0x4c5432('0x2598'),'msg':_0x4c5432('0x50')});})[_0x33ddc1('0x1cb5')](function(_0x2f5ff4){const _0x3abd0c=_0x33ddc1;_0x2eceb3[_0x3abd0c('0x5e8')]({'title':_0x2f5ff4[_0x3abd0c('0x1b51')]?_0x3abd0c('0x15d1')+_0x2f5ff4['status']+_0x3abd0c('0x1b0b')+_0x2f5ff4[_0x3abd0c('0x22ce')]:_0x3abd0c('0x2803'),'msg':_0x2f5ff4[_0x3abd0c('0x11fc')]?JSON[_0x3abd0c('0x1be0')](_0x2f5ff4[_0x3abd0c('0x11fc')]):_0x2f5ff4[_0x3abd0c('0x17df')]()});});}function _0x396181(_0x5e4bd0,_0x36f9b7){const _0x6a8bbb=_0x229285,_0x208061=_0xb7b09d['confirm']()[_0x6a8bbb('0x14e4')](_0x6a8bbb('0xc33'))['htmlContent'](_0x6a8bbb('0x27b')+_0x6a8bbb('0x27c7'))[_0x6a8bbb('0x10bc')](_0x6a8bbb('0x6b7'))['targetEvent'](_0x5e4bd0)['ok']('OK')[_0x6a8bbb('0x1801')](_0x6a8bbb('0x1d8d'));_0xb7b09d[_0x6a8bbb('0x2fa')](_0x208061)[_0x6a8bbb('0x2788')](function(){_0x5d609d(_0x36f9b7);},function(){const _0x49515b=_0x6a8bbb;console[_0x49515b('0x10df')](_0x49515b('0x1d8d'));});}function _0x425c36(_0x17fe76){const _0x587091=_0x229285,_0xaed644=_0xb7b09d[_0x587091('0x112e')]()[_0x587091('0x14e4')](_0x587091('0x1476'))[_0x587091('0x93e')](''+_0x4b315a[_0x587091('0x58e')][_0x587091('0x2566')]+_0x587091('0xbd')+_0x587091('0x27c7'))['ariaLabel'](_0x587091('0x1e33'))[_0x587091('0x24d0')](_0x17fe76)['ok']('OK')[_0x587091('0x1801')]('CANCEL');_0xb7b09d[_0x587091('0x2fa')](_0xaed644)[_0x587091('0x2788')](function(){const _0xda940e=_0x587091;_0x4b315a['selectedDescriptions']['forEach'](function(_0x19b665){_0x5d609d(_0x19b665);}),_0x4b315a[_0xda940e('0x58e')]=[];});}_0x4b315a['selectedFields']=[],_0x4b315a['createOrEditField']=_0x565c55,_0x4b315a['deleteFieldConfirm']=_0x510672,_0x4b315a[_0x229285('0x262b')]=_0x3e7e69;function _0x565c55(_0x21502e,_0x59a175){const _0x7dc06e=_0x229285;_0xb7b09d[_0x7dc06e('0x2fa')]({'controller':_0x7dc06e('0x1ee6'),'controllerAs':'vm','templateUrl':_0x1e0792,'parent':angular[_0x7dc06e('0x16b1')](_0x2563c4[_0x7dc06e('0x945')]),'targetEvent':_0x21502e,'clickOutsideToClose':!![],'locals':{'type':_0x7dc06e('0x18da'),'item':_0x59a175,'items':_0x4b315a['fields'],'configuration':_0x4b315a[_0x7dc06e('0x25f3')],'account':_0x4b315a['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x4b315a['crudPermissions']}});}function _0x45b4b5(_0x42f182){const _0x36579b=_0x229285;_0x66bbd5[_0x36579b('0x81e')][_0x36579b('0x17c4')]({'id':_0x42f182['id']})[_0x36579b('0x1714')][_0x36579b('0x2788')](function(){const _0x2d2eb9=_0x36579b;_0x283545()[_0x2d2eb9('0x1a90')](_0x4b315a[_0x2d2eb9('0x1578')],{'id':_0x42f182['id']}),_0x2eceb3[_0x2d2eb9('0x173b')]({'title':_0x2d2eb9('0xb76'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x36579b('0x1cb5')](function(_0x7970e6){const _0x50117d=_0x36579b;_0x2eceb3[_0x50117d('0x5e8')]({'title':_0x7970e6[_0x50117d('0x1b51')]?_0x50117d('0x15d1')+_0x7970e6[_0x50117d('0x1b51')]+_0x50117d('0x1b0b')+_0x7970e6['statusText']:_0x50117d('0x2803'),'msg':_0x7970e6[_0x50117d('0x11fc')]?JSON[_0x50117d('0x1be0')](_0x7970e6['data']):_0x7970e6['toString']()});});}function _0x510672(_0x1f7576,_0x5d3cbb){const _0x502578=_0x229285,_0x56c64e=_0xb7b09d['confirm']()[_0x502578('0x14e4')](_0x502578('0x21d'))[_0x502578('0x93e')]('Field'+_0x502578('0x27c7'))[_0x502578('0x10bc')](_0x502578('0xde7'))[_0x502578('0x24d0')](_0x1f7576)['ok']('OK')[_0x502578('0x1801')](_0x502578('0x1d8d'));_0xb7b09d[_0x502578('0x2fa')](_0x56c64e)[_0x502578('0x2788')](function(){_0x45b4b5(_0x5d3cbb);},function(){const _0xd73fa3=_0x502578;console[_0xd73fa3('0x10df')](_0xd73fa3('0x1d8d'));});}function _0x3e7e69(_0x12ef97){const _0x4bb8b2=_0x229285,_0xbfc842=_0xb7b09d[_0x4bb8b2('0x112e')]()[_0x4bb8b2('0x14e4')](_0x4bb8b2('0x7'))[_0x4bb8b2('0x93e')](''+_0x4b315a[_0x4bb8b2('0xcc9')][_0x4bb8b2('0x2566')]+_0x4bb8b2('0xbd')+'\x20will\x20be\x20deleted.')[_0x4bb8b2('0x10bc')](_0x4bb8b2('0x736'))[_0x4bb8b2('0x24d0')](_0x12ef97)['ok']('OK')['cancel'](_0x4bb8b2('0x1d8d'));_0xb7b09d[_0x4bb8b2('0x2fa')](_0xbfc842)[_0x4bb8b2('0x2788')](function(){const _0x553660=_0x4bb8b2;_0x4b315a[_0x553660('0xcc9')][_0x553660('0x1534')](function(_0x47d4b2){_0x45b4b5(_0x47d4b2);}),_0x4b315a['selectedFields']=[];});}}const _0x231722=_0x45a1f5;_0x3a8f2f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1b77'),_0x34e79e('0x25f3'),_0x34e79e('0x519'),'Auth','license',_0x34e79e('0x1af0'),'crudPermissions'];function _0x3a8f2f(_0x54827f,_0x12bf8c,_0x20a9f3,_0xcf7ff,_0x8e12f9,_0x1cb372,_0x58723a,_0x2bc66f,_0x32a19f,_0x594f84,_0x192263,_0x449482,_0x3fb6bf,_0x46441d){const _0x3bc9bd=_0x34e79e,_0x140c73=this;_0x140c73[_0x3bc9bd('0x9cb')]=_0x192263['getCurrentUser'](),_0x140c73[_0x3bc9bd('0x25be')]=[],_0x140c73[_0x3bc9bd('0x1af0')]=_0x3fb6bf,_0x140c73['license']=_0x449482,_0x140c73[_0x3bc9bd('0xe28')]=_0x46441d,_0x140c73[_0x3bc9bd('0x1193')]={},_0x140c73[_0x3bc9bd('0x18ad')]=_0x140c73[_0x3bc9bd('0x1af0')]&&_0x140c73[_0x3bc9bd('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x140c73[_0x3bc9bd('0x14e4')]=_0x3bc9bd('0xf36'),_0x140c73['vtigerConfiguration']=angular[_0x3bc9bd('0x2669')](_0x32a19f),_0x140c73[_0x3bc9bd('0x1b77')]=_0x2bc66f,_0x140c73[_0x3bc9bd('0x34d')]=![];!_0x140c73['vtigerConfiguration']&&(_0x140c73[_0x3bc9bd('0x25f3')]={'channel':_0x3bc9bd('0x1f60'),'type':_0x3bc9bd('0x2e4')},_0x140c73[_0x3bc9bd('0x14e4')]='INTEGRATIONS.NEW_VTIGERCONFIGURATION',_0x140c73[_0x3bc9bd('0x34d')]=!![]);_0x140c73['addNewVtigerConfiguration']=_0x2a13ee,_0x140c73['saveVtigerConfiguration']=_0x331ba3,_0x140c73[_0x3bc9bd('0xb25')]=_0x5de30f,_0x140c73[_0x3bc9bd('0x2601')]=_0x23bdc4,_0x140c73['closeDialog']=_0x3651fc;function _0x2a13ee(){const _0x49f355=_0x3bc9bd;_0x140c73[_0x49f355('0x25be')]=[],_0x594f84['intVtigerAccount'][_0x49f355('0x2757')]({'id':_0x12bf8c[_0x49f355('0x4b9')]['id']},_0x140c73[_0x49f355('0x25f3')])[_0x49f355('0x1714')][_0x49f355('0x2788')](function(_0x167428){const _0x32bde1=_0x49f355;_0x140c73[_0x32bde1('0x1b77')]['unshift'](_0x167428[_0x32bde1('0x1cbf')]()),_0x58723a[_0x32bde1('0x173b')]({'title':_0x32bde1('0x167d'),'msg':_0x140c73[_0x32bde1('0x25f3')][_0x32bde1('0x1a8d')]?_0x140c73[_0x32bde1('0x25f3')]['name']+_0x32bde1('0x1e4a'):''}),_0x3651fc(_0x167428);})[_0x49f355('0x1cb5')](function(_0x58d78d){const _0x1acda3=_0x49f355;if(_0x58d78d[_0x1acda3('0x11fc')]&&_0x58d78d[_0x1acda3('0x11fc')][_0x1acda3('0x25be')]&&_0x58d78d[_0x1acda3('0x11fc')]['errors'][_0x1acda3('0x2566')]){_0x140c73[_0x1acda3('0x25be')]=_0x58d78d[_0x1acda3('0x11fc')]['errors']||[{'message':_0x58d78d[_0x1acda3('0x17df')](),'type':_0x1acda3('0x2709')}];for(let _0x16857a=0x0;_0x16857a<_0x58d78d[_0x1acda3('0x11fc')][_0x1acda3('0x25be')][_0x1acda3('0x2566')];_0x16857a+=0x1){_0x58723a[_0x1acda3('0x5e8')]({'title':_0x58d78d[_0x1acda3('0x11fc')][_0x1acda3('0x25be')][_0x16857a]['type'],'msg':_0x58d78d['data']['errors'][_0x16857a][_0x1acda3('0x15e2')]});}}else _0x58723a[_0x1acda3('0x5e8')]({'title':_0x58d78d[_0x1acda3('0x1b51')]?'API:'+_0x58d78d[_0x1acda3('0x1b51')]+'\x20-\x20'+_0x58d78d[_0x1acda3('0x22ce')]:_0x1acda3('0x2709'),'msg':_0x58d78d[_0x1acda3('0x11fc')]?JSON[_0x1acda3('0x1be0')](_0x58d78d[_0x1acda3('0x11fc')][_0x1acda3('0x15e2')]):_0x58d78d[_0x1acda3('0x17df')]()});});}function _0x331ba3(){const _0x45535d=_0x3bc9bd;_0x140c73['errors']=[],_0x594f84['intVtigerConfiguration'][_0x45535d('0x2740')]({'id':_0x140c73[_0x45535d('0x25f3')]['id']},_0x140c73['vtigerConfiguration'])[_0x45535d('0x1714')]['then'](function(_0x3fa45b){const _0x272581=_0x45535d,_0x4ec62f=_0x283545()[_0x272581('0x20e8')](_0x140c73['configurations'],{'id':_0x3fa45b['id']});_0x4ec62f&&_0x283545()[_0x272581('0x2503')](_0x4ec62f,_0x283545()['pick'](_0x3fa45b[_0x272581('0x1cbf')](),_0x283545()[_0x272581('0x2163')](_0x4ec62f))),_0x58723a['success']({'title':_0x272581('0x2002'),'msg':_0x140c73['vtigerConfiguration'][_0x272581('0x1a8d')]?_0x140c73[_0x272581('0x25f3')][_0x272581('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x3651fc(_0x3fa45b);})[_0x45535d('0x1cb5')](function(_0x20d0fb){const _0x2cee03=_0x45535d;if(_0x20d0fb[_0x2cee03('0x11fc')]&&_0x20d0fb['data']['errors']&&_0x20d0fb[_0x2cee03('0x11fc')][_0x2cee03('0x25be')][_0x2cee03('0x2566')]){_0x140c73[_0x2cee03('0x25be')]=_0x20d0fb[_0x2cee03('0x11fc')]['errors']||[{'message':_0x20d0fb[_0x2cee03('0x17df')](),'type':_0x2cee03('0x259c')}];for(let _0x5bc221=0x0;_0x5bc221<_0x20d0fb[_0x2cee03('0x11fc')][_0x2cee03('0x25be')]['length'];_0x5bc221++){_0x58723a[_0x2cee03('0x5e8')]({'title':_0x20d0fb['data'][_0x2cee03('0x25be')][_0x5bc221][_0x2cee03('0x1d7')],'msg':_0x20d0fb[_0x2cee03('0x11fc')][_0x2cee03('0x25be')][_0x5bc221]['message']});}}else _0x58723a[_0x2cee03('0x5e8')]({'title':_0x20d0fb[_0x2cee03('0x1b51')]?_0x2cee03('0x15d1')+_0x20d0fb[_0x2cee03('0x1b51')]+_0x2cee03('0x1b0b')+_0x20d0fb[_0x2cee03('0x22ce')]:'api.intVtigerConfiguration.update','msg':_0x20d0fb['data']?JSON[_0x2cee03('0x1be0')](_0x20d0fb['data'][_0x2cee03('0x15e2')]):_0x20d0fb[_0x2cee03('0x17df')]()});});}function _0x5de30f(_0x53caf0){const _0x34b423=_0x3bc9bd;_0x140c73[_0x34b423('0x25be')]=[];const _0x142000=_0xcf7ff[_0x34b423('0x112e')]()[_0x34b423('0x14e4')](_0x34b423('0x458'))[_0x34b423('0x1c98')](_0x34b423('0x624'))['ariaLabel'](_0x34b423('0x21de'))['ok'](_0x34b423('0x2786'))[_0x34b423('0x1801')]('Cancel')['targetEvent'](_0x53caf0);_0xcf7ff['show'](_0x142000)[_0x34b423('0x2788')](function(){const _0x15b364=_0x34b423;_0x594f84[_0x15b364('0x649')][_0x15b364('0x17c4')]({'id':_0x140c73[_0x15b364('0x25f3')]['id']})[_0x15b364('0x1714')][_0x15b364('0x2788')](function(){const _0xe917f=_0x15b364;_0x283545()[_0xe917f('0x1a90')](_0x140c73['configurations'],{'id':_0x140c73[_0xe917f('0x25f3')]['id']}),_0x58723a['success']({'title':_0xe917f('0x142c'),'msg':(_0x140c73[_0xe917f('0x25f3')][_0xe917f('0x1a8d')]||_0xe917f('0x25f3'))+_0xe917f('0x14d4')}),_0x3651fc(_0x140c73['vtigerConfiguration']);})[_0x15b364('0x1cb5')](function(_0x22b8f6){const _0x41b6f5=_0x15b364;if(_0x22b8f6[_0x41b6f5('0x11fc')]&&_0x22b8f6['data'][_0x41b6f5('0x25be')]&&_0x22b8f6[_0x41b6f5('0x11fc')][_0x41b6f5('0x25be')][_0x41b6f5('0x2566')]){_0x140c73[_0x41b6f5('0x25be')]=_0x22b8f6[_0x41b6f5('0x11fc')][_0x41b6f5('0x25be')]||[{'message':_0x22b8f6[_0x41b6f5('0x17df')](),'type':'api.intVtigerConfiguration.delete'}];for(let _0x49a422=0x0;_0x49a422<_0x22b8f6['data'][_0x41b6f5('0x25be')][_0x41b6f5('0x2566')];_0x49a422++){_0x58723a[_0x41b6f5('0x5e8')]({'title':_0x22b8f6['data'][_0x41b6f5('0x25be')][_0x49a422][_0x41b6f5('0x1d7')],'msg':_0x22b8f6[_0x41b6f5('0x11fc')][_0x41b6f5('0x25be')][_0x49a422]['message']});}}else _0x58723a[_0x41b6f5('0x5e8')]({'title':_0x22b8f6['status']?'API:'+_0x22b8f6[_0x41b6f5('0x1b51')]+'\x20-\x20'+_0x22b8f6['statusText']:_0x41b6f5('0x1cb'),'msg':_0x22b8f6[_0x41b6f5('0x11fc')]?JSON[_0x41b6f5('0x1be0')](_0x22b8f6[_0x41b6f5('0x11fc')][_0x41b6f5('0x15e2')]):_0x22b8f6[_0x41b6f5('0x15e2')]||_0x22b8f6[_0x41b6f5('0x17df')]()});});},function(){});}function _0x23bdc4(_0x3518df){return _0x3518df===null?undefined:new Date(_0x3518df);}function _0x3651fc(_0xf170e1){const _0x3cabe1=_0x3bc9bd;_0xcf7ff[_0x3cabe1('0x19d')](_0xf170e1);}}const _0x4d83b6=_0x3a8f2f;_0x3c929f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x2437'),_0x34e79e('0x117b'),_0x34e79e('0xd3c'),_0x34e79e('0x82f'),'type',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3c929f(_0x14d0a4,_0x48965f,_0x298b33,_0x4ec128,_0x476c1c,_0x33211d,_0x5c7195,_0x4bd3d0,_0x419383,_0xd58d3,_0x382a4f,_0xd11568,_0x3d51f8){const _0x4cb822=_0x34e79e,_0x3309c2=this;_0x3309c2[_0x4cb822('0x9cb')]=_0xd11568[_0x4cb822('0x24cc')](),_0x3309c2['errors']=[],_0x3309c2[_0x4cb822('0x14e4')]=_0x4cb822('0x1df9')+_0x283545()[_0x4cb822('0xc87')](_0xd58d3),_0x3309c2[_0x4cb822('0xd3c')]=angular[_0x4cb822('0x2669')](_0x4bd3d0),_0x3309c2[_0x4cb822('0x117b')]=_0x5c7195,_0x3309c2['type']=_0xd58d3,_0x3309c2[_0x4cb822('0xe28')]=_0x3d51f8,_0x3309c2[_0x4cb822('0x63a')]=![];!_0x3309c2['item']&&(_0x3309c2[_0x4cb822('0xd3c')]={'type':'string'},_0x3309c2[_0x4cb822('0xd3c')][_0x283545()[_0x4cb822('0x1df5')](_0xd58d3)+'Id']=_0x33211d['id'],_0x3309c2[_0x4cb822('0x14e4')]='INTEGRATIONS.NEW_'+_0x283545()[_0x4cb822('0xc87')](_0xd58d3),_0x3309c2[_0x4cb822('0x63a')]=!![]);_0x3309c2[_0x4cb822('0x1586')]=_0x7dc15c,_0x3309c2[_0x4cb822('0x953')]=_0x231121,_0x3309c2[_0x4cb822('0x1165')]=_0x238a20,_0x3309c2[_0x4cb822('0xb4f')]=_0x56645a,_0x3309c2[_0x4cb822('0xca7')]=_0x1682b5,_0x382a4f[_0x4cb822('0xa72')][_0x4cb822('0x1335')]({'nolimit':!![]})[_0x4cb822('0x1714')][_0x4cb822('0x2788')](function(_0x22d0be){const _0x1da9ea=_0x4cb822;return _0x3309c2[_0x1da9ea('0xf76')]=_0x22d0be['rows']?_0x22d0be[_0x1da9ea('0x25df')]:[],_0x382a4f['voiceAgentReport'][_0x1da9ea('0x15f8')]()[_0x1da9ea('0x1714')];})['then'](function(_0x2601e4){const _0x5cf1b6=_0x4cb822;return _0x3309c2[_0x5cf1b6('0x1cac')]=_0x283545()[_0x5cf1b6('0xa9f')](_0x283545()[_0x5cf1b6('0x2163')](_0x2601e4),[_0x5cf1b6('0x1714'),_0x5cf1b6('0x187a'),_0x5cf1b6('0x172'),_0x5cf1b6('0x5f'),'sourceid']),_0x3309c2[_0x5cf1b6('0x1cac')][_0x5cf1b6('0x13e3')]('recordingURL'),_0x382a4f[_0x5cf1b6('0xac')][_0x5cf1b6('0x15f8')]()[_0x5cf1b6('0x1714')];})[_0x4cb822('0x2788')](function(_0x338d48){const _0x594e3f=_0x4cb822;_0x3309c2[_0x594e3f('0x226b')]=_0x283545()[_0x594e3f('0xa9f')](_0x283545()[_0x594e3f('0x2163')](_0x338d48),[_0x594e3f('0x1714'),_0x594e3f('0x187a'),_0x594e3f('0x172'),_0x594e3f('0x5f'),_0x594e3f('0x900')]),_0x3309c2[_0x594e3f('0x226b')][_0x594e3f('0x13e3')](_0x594e3f('0x12da'));})[_0x4cb822('0x1cb5')](function(_0x1a2928){const _0x2f0644=_0x4cb822;_0x476c1c[_0x2f0644('0x5e8')]({'title':_0x1a2928[_0x2f0644('0x1b51')]?'API:'+_0x1a2928[_0x2f0644('0x1b51')]+_0x2f0644('0x1b0b')+_0x1a2928[_0x2f0644('0x22ce')]:'SYSTEM:GETVARIABLES','msg':_0x1a2928[_0x2f0644('0x11fc')]?JSON[_0x2f0644('0x1be0')](_0x1a2928['data']):_0x1a2928[_0x2f0644('0x17df')]()});}),_0x382a4f[_0x4cb822('0x1f07')][_0x4cb822('0x24')]({'id':_0x419383['id'],'ticketType':_0x33211d['ticketType']?_0x33211d[_0x4cb822('0x3d9')]:undefined})['$promise'][_0x4cb822('0x2788')](function(_0x20e532){const _0x2e232d=_0x4cb822;_0x3309c2[_0x2e232d('0x551')]=!![],_0x3309c2['fields']=_0x20e532[_0x2e232d('0x25df')]?_0x20e532[_0x2e232d('0x25df')]:[],_0x3309c2[_0x2e232d('0xd3c')]['idField']&&(_0x3309c2[_0x2e232d('0x1ee9')]=_0x283545()[_0x2e232d('0x20e8')](_0x3309c2[_0x2e232d('0x1578')],{'id':_0x3309c2['item'][_0x2e232d('0x1ca9')]}));})[_0x4cb822('0x1cb5')](function(_0x3dbadf){const _0x3c16e7=_0x4cb822;_0x3309c2[_0x3c16e7('0x551')]=![],console[_0x3c16e7('0x5e8')](_0x3dbadf);});function _0x7dc15c(){const _0x54d451=_0x4cb822;_0x3309c2[_0x54d451('0x25be')]=[],_0x3309c2[_0x54d451('0x1ee9')]&&(_0x3309c2['item']['idField']=_0x3309c2[_0x54d451('0x1ee9')]['id'],_0x3309c2['item']['nameField']=_0x3309c2[_0x54d451('0x1ee9')][_0x54d451('0x1a8d')],_0x3309c2[_0x54d451('0xd3c')][_0x54d451('0x1ee9')]=_0x3309c2[_0x54d451('0x1ee9')][_0x54d451('0x1d56')]),_0x382a4f[_0x54d451('0x81e')][_0x54d451('0xbd0')](_0x3309c2[_0x54d451('0xd3c')])[_0x54d451('0x1714')][_0x54d451('0x2788')](function(_0x990c0c){const _0x195b48=_0x54d451;_0x3309c2['items'][_0x195b48('0xc51')](_0x990c0c),_0x476c1c[_0x195b48('0x173b')]({'title':_0x283545()[_0x195b48('0x1df5')](_0xd58d3)+'\x20properly\x20created','msg':_0x283545()[_0x195b48('0x1df5')](_0xd58d3)+_0x195b48('0x1e4a')}),_0x1682b5();})[_0x54d451('0x1cb5')](function(_0x333e07){const _0x377e4a=_0x54d451;console[_0x377e4a('0x5e8')](_0x333e07),_0x3309c2[_0x377e4a('0x25be')]=_0x333e07[_0x377e4a('0x11fc')]['errors']||[{'message':_0x333e07[_0x377e4a('0x17df')](),'type':_0x377e4a('0x256f')}];});}function _0x231121(){const _0x41117c=_0x4cb822;_0x3309c2[_0x41117c('0x25be')]=[],_0x3309c2[_0x41117c('0x1ee9')]&&(_0x3309c2[_0x41117c('0xd3c')][_0x41117c('0x1ca9')]=_0x3309c2[_0x41117c('0x1ee9')]['id'],_0x3309c2[_0x41117c('0xd3c')]['nameField']=_0x3309c2[_0x41117c('0x1ee9')][_0x41117c('0x1a8d')],_0x3309c2[_0x41117c('0xd3c')][_0x41117c('0x1ee9')]=_0x3309c2[_0x41117c('0x1ee9')][_0x41117c('0x1d56')]),_0x382a4f[_0x41117c('0x81e')][_0x41117c('0x2740')]({'id':_0x3309c2['item']['id']},_0x3309c2['item'])[_0x41117c('0x1714')][_0x41117c('0x2788')](function(_0x22b46d){const _0x2f7710=_0x41117c,_0x213676=_0x283545()[_0x2f7710('0x20e8')](_0x3309c2[_0x2f7710('0x117b')],{'id':_0x22b46d['id']});_0x213676&&_0x283545()[_0x2f7710('0x2503')](_0x213676,_0x22b46d),_0x476c1c[_0x2f7710('0x173b')]({'title':_0x283545()[_0x2f7710('0x1df5')](_0xd58d3)+'\x20properly\x20saved!','msg':_0x283545()[_0x2f7710('0x1df5')](_0xd58d3)+_0x2f7710('0x24cf')}),_0x1682b5();})[_0x41117c('0x1cb5')](function(_0x282306){const _0x151501=_0x41117c;console[_0x151501('0x5e8')](_0x282306),_0x3309c2[_0x151501('0x25be')]=_0x282306['data'][_0x151501('0x25be')]||[{'message':_0x282306[_0x151501('0x17df')](),'type':_0x151501('0xe95')}];});}function _0x238a20(_0xf751d9){const _0x539cdc=_0x4cb822;_0x3309c2[_0x539cdc('0x25be')]=[];const _0x4e6cb1=_0x4ec128[_0x539cdc('0x112e')]()[_0x539cdc('0x14e4')](_0x539cdc('0x458'))[_0x539cdc('0x1c98')]('The\x20'+_0xd58d3+_0x539cdc('0x27c7'))[_0x539cdc('0x10bc')]('Delete\x20'+_0x283545()[_0x539cdc('0x1df5')](_0xd58d3))['ok'](_0x539cdc('0x2786'))[_0x539cdc('0x1801')](_0x539cdc('0x1481'))['targetEvent'](_0xf751d9);_0x4ec128[_0x539cdc('0x2fa')](_0x4e6cb1)[_0x539cdc('0x2788')](function(){const _0x1ac583=_0x539cdc;_0x382a4f[_0x1ac583('0x81e')][_0x1ac583('0x17c4')]({'id':_0x3309c2[_0x1ac583('0xd3c')]['id']})[_0x1ac583('0x1714')][_0x1ac583('0x2788')](function(){const _0x2a33a1=_0x1ac583;_0x283545()[_0x2a33a1('0x1a90')](_0x3309c2[_0x2a33a1('0x117b')],{'id':_0x3309c2[_0x2a33a1('0xd3c')]['id']}),_0x476c1c[_0x2a33a1('0x173b')]({'title':_0x283545()[_0x2a33a1('0x1df5')](_0xd58d3)+_0x2a33a1('0x2542'),'msg':_0x283545()[_0x2a33a1('0x1df5')](_0xd58d3)+'\x20has\x20been\x20deleted!'}),_0x1682b5();})[_0x1ac583('0x1cb5')](function(_0x3ed798){const _0x497499=_0x1ac583;console[_0x497499('0x5e8')](_0x3ed798),_0x3309c2[_0x497499('0x25be')]=_0x3ed798[_0x497499('0x11fc')][_0x497499('0x25be')]||[{'message':_0x3ed798[_0x497499('0x17df')](),'type':_0x497499('0x1276')}];});},function(){});}function _0x56645a(){const _0x376929=_0x4cb822;return _0x3309c2[_0x376929('0xd3c')][_0x376929('0x1889')]!==undefined?_0x3309c2[_0x376929('0xd3c')]['variableName']:_0x376929('0x6d1');}function _0x1682b5(){const _0x2d9130=_0x4cb822;_0x4ec128[_0x2d9130('0x19d')]();}}const _0x5d5e95=_0x3c929f;_0x535159[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'vtigerAccount',_0x34e79e('0xec9')];function _0x535159(_0x1506fa,_0x519c06,_0x5b61c2,_0x3d862b,_0x472dc6,_0x39f27f,_0x151dc1,_0x58fc43,_0x5f5449,_0x8309a8,_0x55ca76,_0xd02323){const _0x376f91=_0x34e79e,_0x14bae2=this;_0x14bae2[_0x376f91('0x9cb')]=_0x8309a8[_0x376f91('0x24cc')](),_0x14bae2[_0x376f91('0x130d')]=_0x39f27f,_0x14bae2[_0x376f91('0x1af0')]=_0x151dc1,_0x14bae2['passwordPattern']=_0x14bae2['setting'][_0x376f91('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14bae2['location']=_0x519c06[_0x376f91('0x170c')]()+_0x376f91('0x726')+_0x519c06[_0x376f91('0x1c6a')](),_0x14bae2[_0x376f91('0x274a')]=_0x55ca76||_0x1506fa['params'][_0x376f91('0x274a')]||{},_0x14bae2[_0x376f91('0xec9')]=_0xd02323&&_0xd02323[_0x376f91('0x338')]==0x1?_0xd02323['rows'][0x0]:null,_0x14bae2[_0x376f91('0xe28')]=_0x8309a8[_0x376f91('0x157e')](_0x14bae2[_0x376f91('0xec9')]?_0x14bae2[_0x376f91('0xec9')][_0x376f91('0xe28')]:null),_0x14bae2[_0x376f91('0x1193')]={},_0x14bae2[_0x376f91('0xcb3')]=_0x1506fa[_0x376f91('0x4b9')][_0x376f91('0x24f6')]||0x0,_0x14bae2[_0x376f91('0x204f')]=_0x5f5449['info'],_0x14bae2['gotoVtigerAccounts']=_0x3f5e24,_0x14bae2['saveVtigerAccount']=_0x5a88d5;function _0x3f5e24(){const _0x3a053e=_0x376f91;_0x1506fa['go'](_0x3a053e('0xc3b'),{},{'reload':'app.integrations.vtigerAccounts'});}function _0x5a88d5(){const _0x46ab85=_0x376f91;_0x58fc43['intVtigerAccount']['update']({'id':_0x14bae2[_0x46ab85('0x274a')]['id']},_0x14bae2[_0x46ab85('0x274a')])[_0x46ab85('0x1714')]['then'](function(){const _0x26dbfa=_0x46ab85;_0x5f5449['success']({'title':'VtigerAccount\x20updated!','msg':_0x14bae2[_0x26dbfa('0x274a')][_0x26dbfa('0x1a8d')]?_0x14bae2['vtigerAccount']['name']+_0x26dbfa('0x6f8'):''});})[_0x46ab85('0x1cb5')](function(_0x56ee78){const _0x1cf749=_0x46ab85;_0x5f5449[_0x1cf749('0x5e8')]({'title':_0x56ee78[_0x1cf749('0x1b51')]?_0x1cf749('0x15d1')+_0x56ee78['status']+_0x1cf749('0x1b0b')+_0x56ee78[_0x1cf749('0x22ce')]:_0x1cf749('0x832'),'msg':_0x56ee78['data']?JSON[_0x1cf749('0x1be0')](_0x56ee78['data']):_0x56ee78[_0x1cf749('0x17df')]()});});}}const _0xd3c1ba=_0x535159,_0x54d44f=_0x18dd13['p']+_0x34e79e('0xd77');_0x505f66[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x474'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x505f66(_0x8d71e,_0x5ed8a1,_0x1df036,_0x2d447,_0xa5280,_0x7be448,_0x145e1a,_0x3efdc9,_0x1354ef,_0x1ac797,_0x5bd3d3,_0x41371b,_0x27a0a9,_0x4567d8,_0x5344f0,_0x3cbfc9,_0x59ebfb){const _0x49c552=_0x34e79e,_0x337f8e=this;_0x337f8e[_0x49c552('0x130d')]=_0x3cbfc9,_0x337f8e[_0x49c552('0x1af0')]=_0x59ebfb,_0x337f8e[_0x49c552('0x9cb')]=_0x5344f0[_0x49c552('0x24cc')](),_0x337f8e[_0x49c552('0x474')]=_0x1354ef||{'count':0x0,'rows':[]},_0x337f8e[_0x49c552('0x63c')]=_0x1ac797,_0x337f8e[_0x49c552('0xec9')]=_0x5bd3d3&&_0x5bd3d3['count']==0x1?_0x5bd3d3['rows'][0x0]:null,_0x337f8e[_0x49c552('0xe28')]=_0x5344f0[_0x49c552('0x157e')](_0x337f8e[_0x49c552('0xec9')]?_0x337f8e[_0x49c552('0xec9')]['crudPermissions']:null),_0x337f8e[_0x49c552('0x26a9')]=_0x49c552('0x474'),_0x337f8e['listOrder']='',_0x337f8e[_0x49c552('0x25e2')]=null,_0x337f8e[_0x49c552('0x5eb')]=[],_0x337f8e[_0x49c552('0x135a')]={'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'page':0x1},_0x337f8e[_0x49c552('0x1f7e')]=_0x375d2a,_0x337f8e[_0x49c552('0x1f2f')]=_0x77c49a,_0x337f8e['deleteconfirm']=_0xb00374,_0x337f8e[_0x49c552('0x173b')]=_0x4ac923,_0x337f8e[_0x49c552('0x13ac')]=_0x44a9ff,_0x337f8e[_0x49c552('0x2c9')]=_0x4055d6,_0x337f8e[_0x49c552('0x1dd2')]=_0x456996,_0x337f8e[_0x49c552('0x1820')]=_0x1f9e38,_0x337f8e[_0x49c552('0x85e')]=_0x399289,_0x337f8e[_0x49c552('0x178a')]=_0x531d71,_0x337f8e['selectAllVtigerAccounts']=_0x210c9c;function _0x375d2a(_0xfe9a7e){const _0x3d57b0=_0x49c552;_0x1df036['go'](_0x3d57b0('0xdaf'),{'id':_0xfe9a7e['id'],'vtigerAccount':_0xfe9a7e,'crudPermissions':_0x337f8e[_0x3d57b0('0xe28')]});}function _0x77c49a(_0x2b3396){const _0x530e40=_0x49c552;return _0x41371b[_0x530e40('0x1f07')][_0x530e40('0x24')]({'id':_0x2b3396['id'],'test':!![]})[_0x530e40('0x1714')][_0x530e40('0x2788')](function(){const _0x36b00f=_0x530e40;_0x4567d8['success']({'title':_0x36b00f('0xabf'),'msg':_0x36b00f('0x53e')});})[_0x530e40('0x1cb5')](function(_0x1ae239){const _0xe09a9d=_0x530e40;_0x4567d8[_0xe09a9d('0x5e8')]({'title':_0xe09a9d('0xabf'),'msg':_0x1ae239['data']?_0x1ae239[_0xe09a9d('0x11fc')][_0xe09a9d('0x15e2')]?_0x1ae239[_0xe09a9d('0x11fc')]['message']:JSON[_0xe09a9d('0x1be0')](_0x1ae239['data']):_0x1ae239[_0xe09a9d('0x17df')]()});});}function _0xb00374(_0x24f141,_0xf5be80){const _0x1f546=_0x49c552,_0x482c24=_0xa5280[_0x1f546('0x112e')]()[_0x1f546('0x14e4')](_0x1f546('0x2114')+_0x283545()[_0x1f546('0x114')](_0x1f546('0x274a'))+'?')['htmlContent'](_0x1f546('0x1670')+(_0x24f141['name']||_0x1f546('0x274a'))+_0x1f546('0x229e')+'\x20will\x20be\x20deleted.')[_0x1f546('0x10bc')](_0x1f546('0x17b8'))[_0x1f546('0x24d0')](_0xf5be80)['ok']('OK')['cancel'](_0x1f546('0x1d8d'));_0xa5280['show'](_0x482c24)['then'](function(){_0x456996(_0x24f141);},function(){const _0x460216=_0x1f546;console[_0x460216('0x10df')](_0x460216('0x1d8d'));});}let _0x16622e=!![],_0x596f5d=0x1;_0x8d71e[_0x49c552('0x1662')](_0x49c552('0x1569'),function(_0x211d5f,_0x26e631){const _0x31d8d7=_0x49c552;_0x16622e?_0x145e1a(function(){_0x16622e=![];}):(!_0x26e631&&(_0x596f5d=_0x337f8e[_0x31d8d7('0x135a')]['page']),_0x211d5f!==_0x26e631&&(_0x337f8e[_0x31d8d7('0x135a')][_0x31d8d7('0x23f5')]=0x1),!_0x211d5f&&(_0x337f8e['query'][_0x31d8d7('0x23f5')]=_0x596f5d),_0x337f8e[_0x31d8d7('0x13ac')]());});function _0x4ac923(_0x35a207){const _0x15ffe1=_0x49c552;_0x337f8e[_0x15ffe1('0x474')]=_0x35a207||{'count':0x0,'rows':[]};}function _0x44a9ff(){const _0x436764=_0x49c552;_0x337f8e['query'][_0x436764('0x19e')]=(_0x337f8e['query'][_0x436764('0x23f5')]-0x1)*_0x337f8e[_0x436764('0x135a')][_0x436764('0x68e')],_0x5344f0[_0x436764('0x1516')](_0x436764('0xe23'))?_0x337f8e[_0x436764('0x1808')]=_0x41371b['intVtigerAccount'][_0x436764('0x1335')](_0x337f8e['query'],_0x4ac923)[_0x436764('0x1714')]:(_0x337f8e[_0x436764('0x135a')]['id']=_0x337f8e[_0x436764('0x63c')]['id'],_0x337f8e[_0x436764('0x135a')]['section']=_0x436764('0x1d90'),_0x337f8e[_0x436764('0x1808')]=_0x41371b['userProfile'][_0x436764('0xa1')](_0x337f8e[_0x436764('0x135a')],_0x4ac923)['$promise']);}function _0x4055d6(_0x46fc71,_0x20c65d){const _0x5a13ae=_0x49c552;_0xa5280[_0x5a13ae('0x2fa')]({'controller':_0x5a13ae('0x1f1e'),'controllerAs':'vm','templateUrl':_0x54d44f,'parent':angular[_0x5a13ae('0x16b1')](_0x7be448[_0x5a13ae('0x945')]),'targetEvent':_0x46fc71,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x20c65d,'vtigerAccounts':_0x337f8e['vtigerAccounts'][_0x5a13ae('0x25df')],'license':_0x337f8e[_0x5a13ae('0x130d')],'setting':_0x337f8e[_0x5a13ae('0x1af0')],'crudPermissions':_0x337f8e['crudPermissions']}});}function _0x456996(_0x16ad6b){const _0x177327=_0x49c552;_0x41371b['intVtigerAccount'][_0x177327('0x17c4')]({'id':_0x16ad6b['id']})[_0x177327('0x1714')][_0x177327('0x2788')](function(){const _0x13f9af=_0x177327;_0x283545()[_0x13f9af('0x1a90')](_0x337f8e['vtigerAccounts'][_0x13f9af('0x25df')],{'id':_0x16ad6b['id']}),_0x337f8e[_0x13f9af('0x474')][_0x13f9af('0x338')]-=0x1,!_0x337f8e[_0x13f9af('0x474')]['rows'][_0x13f9af('0x2566')]&&_0x337f8e[_0x13f9af('0x13ac')](),_0x4567d8['success']({'title':_0x283545()[_0x13f9af('0x114')](_0x13f9af('0x928'))+_0x13f9af('0x20db'),'msg':_0x16ad6b[_0x13f9af('0x1a8d')]?_0x16ad6b[_0x13f9af('0x1a8d')]+_0x13f9af('0x14d4'):''});})['catch'](function(_0x231b9d){const _0x5233fe=_0x177327;if(_0x231b9d[_0x5233fe('0x11fc')]&&_0x231b9d[_0x5233fe('0x11fc')][_0x5233fe('0x25be')]&&_0x231b9d[_0x5233fe('0x11fc')][_0x5233fe('0x25be')][_0x5233fe('0x2566')]){_0x337f8e['errors']=_0x231b9d[_0x5233fe('0x11fc')][_0x5233fe('0x25be')]||[{'message':_0x231b9d[_0x5233fe('0x17df')](),'type':_0x5233fe('0x1f13')}];for(let _0x9a158b=0x0;_0x9a158b<_0x231b9d[_0x5233fe('0x11fc')]['errors'][_0x5233fe('0x2566')];_0x9a158b++){_0x4567d8[_0x5233fe('0x5e8')]({'title':_0x231b9d['data'][_0x5233fe('0x25be')][_0x9a158b][_0x5233fe('0x1d7')],'msg':_0x231b9d[_0x5233fe('0x11fc')][_0x5233fe('0x25be')][_0x9a158b][_0x5233fe('0x15e2')]});}}else _0x4567d8['error']({'title':_0x231b9d[_0x5233fe('0x1b51')]?_0x5233fe('0x15d1')+_0x231b9d[_0x5233fe('0x1b51')]+_0x5233fe('0x1b0b')+_0x231b9d[_0x5233fe('0x22ce')]:_0x5233fe('0x1f13'),'msg':_0x231b9d[_0x5233fe('0x11fc')]?JSON[_0x5233fe('0x1be0')](_0x231b9d['data'][_0x5233fe('0x15e2')]):_0x231b9d['message']||_0x231b9d[_0x5233fe('0x17df')]()});});}function _0x1f9e38(){const _0x48d9be=_0x49c552,_0x5e140c=angular[_0x48d9be('0x2669')](_0x337f8e[_0x48d9be('0x5eb')]);return _0x337f8e[_0x48d9be('0x5eb')]=[],_0x5e140c;}function _0x399289(_0x1cbaa8){const _0x36bc14=_0x49c552,_0x670221=_0xa5280['confirm']()[_0x36bc14('0x14e4')](_0x36bc14('0x1ee7'))[_0x36bc14('0x93e')](_0x36bc14('0x1670')+_0x337f8e[_0x36bc14('0x5eb')][_0x36bc14('0x2566')]+'\x20selected'+_0x36bc14('0x27c7'))[_0x36bc14('0x10bc')](_0x36bc14('0x18fb'))['targetEvent'](_0x1cbaa8)['ok']('OK')[_0x36bc14('0x1801')](_0x36bc14('0x1d8d'));_0xa5280[_0x36bc14('0x2fa')](_0x670221)[_0x36bc14('0x2788')](function(){const _0x495f69=_0x36bc14;_0x337f8e['selectedVtigerAccounts'][_0x495f69('0x1534')](function(_0x1e7314){_0x456996(_0x1e7314);}),_0x337f8e[_0x495f69('0x5eb')]=[];});}function _0x531d71(){const _0x23fc4a=_0x49c552;_0x337f8e[_0x23fc4a('0x5eb')]=[];}function _0x210c9c(){_0x337f8e['selectedVtigerAccounts']=_0x337f8e['vtigerAccounts']['rows'];}}const _0x18e8b7=_0x505f66;_0x28819e[_0x34e79e('0x2d9')]=['$scope','$state','$location','$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x21cf'),_0x34e79e('0x253f'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x28819e(_0x18f0cf,_0x58d2de,_0x5f0786,_0x385580,_0x2ecf7d,_0x45105b,_0x346e41,_0x276011,_0x592d0b,_0x5c5dad,_0x235a79,_0x14ca92,_0x28aafe,_0x164766){const _0x318fa3=_0x34e79e,_0x504461=this;_0x504461[_0x318fa3('0x9cb')]=_0x235a79[_0x318fa3('0x24cc')](),_0x504461[_0x318fa3('0x25be')]=[],_0x504461[_0x318fa3('0x1af0')]=_0x28aafe,_0x504461[_0x318fa3('0x130d')]=_0x14ca92,_0x504461[_0x318fa3('0xe28')]=_0x164766,_0x504461[_0x318fa3('0x1193')]={},_0x504461[_0x318fa3('0x18ad')]=_0x504461[_0x318fa3('0x1af0')]&&_0x504461[_0x318fa3('0x1af0')][_0x318fa3('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x504461[_0x318fa3('0x14e4')]=_0x318fa3('0x1231'),_0x504461[_0x318fa3('0x253f')]=angular['copy'](_0x592d0b),_0x504461[_0x318fa3('0x21cf')]=_0x276011,_0x504461['newZendeskAccount']=![];!_0x504461[_0x318fa3('0x253f')]&&(_0x504461[_0x318fa3('0x253f')]={'type':_0x318fa3('0x1c96'),'authType':'password','serverUrl':_0x5f0786[_0x318fa3('0x170c')]()+_0x318fa3('0x726')+_0x5f0786[_0x318fa3('0x1c6a')]()+(_0x5f0786[_0x318fa3('0x1fee')]()?':'+_0x5f0786[_0x318fa3('0x1fee')]():'')},_0x504461[_0x318fa3('0x14e4')]=_0x318fa3('0x14cd'),_0x504461[_0x318fa3('0x2528')]=!![]);_0x504461[_0x318fa3('0x1a68')]=_0x25b47a,_0x504461['saveZendeskAccount']=_0x4ae896,_0x504461[_0x318fa3('0x2683')]=_0x34ae72,_0x504461[_0x318fa3('0x2601')]=_0x553f70,_0x504461[_0x318fa3('0xca7')]=_0x492e6d;function _0x25b47a(){const _0x5c471c=_0x318fa3;_0x504461[_0x5c471c('0x25be')]=[],_0x5c5dad[_0x5c471c('0x26ef')][_0x5c471c('0xbd0')](_0x504461[_0x5c471c('0x253f')])[_0x5c471c('0x1714')][_0x5c471c('0x2788')](function(_0x5c04ad){const _0x1be8cc=_0x5c471c;_0x504461['zendeskAccounts'][_0x1be8cc('0xc51')](_0x5c04ad[_0x1be8cc('0x1cbf')]()),_0x346e41['success']({'title':'ZendeskAccount\x20properly\x20created','msg':_0x504461[_0x1be8cc('0x253f')][_0x1be8cc('0x1a8d')]?_0x504461[_0x1be8cc('0x253f')][_0x1be8cc('0x1a8d')]+_0x1be8cc('0x1e4a'):''}),_0x492e6d(_0x5c04ad);})[_0x5c471c('0x1cb5')](function(_0x6f87df){const _0x1b5851=_0x5c471c;if(_0x6f87df['data']&&_0x6f87df['data'][_0x1b5851('0x25be')]&&_0x6f87df[_0x1b5851('0x11fc')]['errors'][_0x1b5851('0x2566')]){_0x504461[_0x1b5851('0x25be')]=_0x6f87df[_0x1b5851('0x11fc')][_0x1b5851('0x25be')]||[{'message':_0x6f87df[_0x1b5851('0x17df')](),'type':_0x1b5851('0x14fb')}];for(let _0x59b1fc=0x0;_0x59b1fc<_0x6f87df[_0x1b5851('0x11fc')][_0x1b5851('0x25be')][_0x1b5851('0x2566')];_0x59b1fc+=0x1){_0x346e41[_0x1b5851('0x5e8')]({'title':_0x6f87df[_0x1b5851('0x11fc')][_0x1b5851('0x25be')][_0x59b1fc][_0x1b5851('0x1d7')],'msg':_0x6f87df[_0x1b5851('0x11fc')]['errors'][_0x59b1fc]['message']});}}else _0x346e41[_0x1b5851('0x5e8')]({'title':_0x6f87df['status']?_0x1b5851('0x15d1')+_0x6f87df['status']+'\x20-\x20'+_0x6f87df[_0x1b5851('0x22ce')]:'api.intZendeskAccount.save','msg':_0x6f87df[_0x1b5851('0x11fc')]?JSON[_0x1b5851('0x1be0')](_0x6f87df[_0x1b5851('0x11fc')][_0x1b5851('0x15e2')]):_0x6f87df[_0x1b5851('0x17df')]()});});}function _0x4ae896(){const _0x255f85=_0x318fa3;_0x504461[_0x255f85('0x25be')]=[],_0x5c5dad[_0x255f85('0x26ef')][_0x255f85('0x2740')]({'id':_0x504461[_0x255f85('0x253f')]['id']},_0x504461[_0x255f85('0x253f')])[_0x255f85('0x1714')][_0x255f85('0x2788')](function(_0x131204){const _0x25fc27=_0x255f85,_0x6c7f19=_0x283545()['find'](_0x504461['zendeskAccounts'],{'id':_0x131204['id']});_0x6c7f19&&_0x283545()[_0x25fc27('0x2503')](_0x6c7f19,_0x283545()[_0x25fc27('0x41b')](_0x131204[_0x25fc27('0x1cbf')](),_0x283545()[_0x25fc27('0x2163')](_0x6c7f19))),_0x346e41[_0x25fc27('0x173b')]({'title':_0x25fc27('0x1579'),'msg':_0x504461[_0x25fc27('0x253f')]['name']?_0x504461[_0x25fc27('0x253f')][_0x25fc27('0x1a8d')]+_0x25fc27('0x24cf'):''}),_0x492e6d(_0x131204);})[_0x255f85('0x1cb5')](function(_0x4a0928){const _0x5eea7d=_0x255f85;if(_0x4a0928['data']&&_0x4a0928['data'][_0x5eea7d('0x25be')]&&_0x4a0928[_0x5eea7d('0x11fc')]['errors'][_0x5eea7d('0x2566')]){_0x504461[_0x5eea7d('0x25be')]=_0x4a0928[_0x5eea7d('0x11fc')][_0x5eea7d('0x25be')]||[{'message':_0x4a0928['toString'](),'type':_0x5eea7d('0x2415')}];for(let _0x3d59b5=0x0;_0x3d59b5<_0x4a0928[_0x5eea7d('0x11fc')][_0x5eea7d('0x25be')][_0x5eea7d('0x2566')];_0x3d59b5++){_0x346e41['error']({'title':_0x4a0928['data'][_0x5eea7d('0x25be')][_0x3d59b5]['type'],'msg':_0x4a0928['data'][_0x5eea7d('0x25be')][_0x3d59b5][_0x5eea7d('0x15e2')]});}}else _0x346e41[_0x5eea7d('0x5e8')]({'title':_0x4a0928[_0x5eea7d('0x1b51')]?_0x5eea7d('0x15d1')+_0x4a0928[_0x5eea7d('0x1b51')]+_0x5eea7d('0x1b0b')+_0x4a0928['statusText']:'api.intZendeskAccount.update','msg':_0x4a0928['data']?JSON['stringify'](_0x4a0928[_0x5eea7d('0x11fc')][_0x5eea7d('0x15e2')]):_0x4a0928[_0x5eea7d('0x17df')]()});});}function _0x34ae72(_0x5ad3a1){const _0x443606=_0x318fa3;_0x504461[_0x443606('0x25be')]=[];const _0x5e29a7=_0x385580[_0x443606('0x112e')]()[_0x443606('0x14e4')](_0x443606('0x458'))[_0x443606('0x1c98')](_0x443606('0x482'))[_0x443606('0x10bc')](_0x443606('0x2370'))['ok'](_0x443606('0x2786'))[_0x443606('0x1801')](_0x443606('0x1481'))[_0x443606('0x24d0')](_0x5ad3a1);_0x385580[_0x443606('0x2fa')](_0x5e29a7)[_0x443606('0x2788')](function(){const _0x954a61=_0x443606;_0x5c5dad[_0x954a61('0x26ef')][_0x954a61('0x17c4')]({'id':_0x504461[_0x954a61('0x253f')]['id']})['$promise'][_0x954a61('0x2788')](function(){const _0x5e7a1c=_0x954a61;_0x283545()[_0x5e7a1c('0x1a90')](_0x504461[_0x5e7a1c('0x21cf')],{'id':_0x504461[_0x5e7a1c('0x253f')]['id']}),_0x346e41[_0x5e7a1c('0x173b')]({'title':_0x5e7a1c('0x1ef3'),'msg':(_0x504461[_0x5e7a1c('0x253f')][_0x5e7a1c('0x1a8d')]||'zendeskAccount')+_0x5e7a1c('0x14d4')}),_0x492e6d(_0x504461[_0x5e7a1c('0x253f')]);})[_0x954a61('0x1cb5')](function(_0x135a13){const _0xb5f66d=_0x954a61;if(_0x135a13[_0xb5f66d('0x11fc')]&&_0x135a13[_0xb5f66d('0x11fc')]['errors']&&_0x135a13['data'][_0xb5f66d('0x25be')][_0xb5f66d('0x2566')]){_0x504461[_0xb5f66d('0x25be')]=_0x135a13['data'][_0xb5f66d('0x25be')]||[{'message':_0x135a13[_0xb5f66d('0x17df')](),'type':_0xb5f66d('0x12f4')}];for(let _0x4cd87d=0x0;_0x4cd87d<_0x135a13[_0xb5f66d('0x11fc')][_0xb5f66d('0x25be')][_0xb5f66d('0x2566')];_0x4cd87d++){_0x346e41[_0xb5f66d('0x5e8')]({'title':_0x135a13[_0xb5f66d('0x11fc')][_0xb5f66d('0x25be')][_0x4cd87d][_0xb5f66d('0x1d7')],'msg':_0x135a13[_0xb5f66d('0x11fc')][_0xb5f66d('0x25be')][_0x4cd87d]['message']});}}else _0x346e41[_0xb5f66d('0x5e8')]({'title':_0x135a13[_0xb5f66d('0x1b51')]?'API:'+_0x135a13[_0xb5f66d('0x1b51')]+_0xb5f66d('0x1b0b')+_0x135a13['statusText']:_0xb5f66d('0x12f4'),'msg':_0x135a13['data']?JSON['stringify'](_0x135a13[_0xb5f66d('0x11fc')][_0xb5f66d('0x15e2')]):_0x135a13[_0xb5f66d('0x15e2')]||_0x135a13['toString']()});});},function(){});}function _0x553f70(_0x54ae0c){return _0x54ae0c===null?undefined:new Date(_0x54ae0c);}function _0x492e6d(_0x33111b){_0x385580['hide'](_0x33111b);}}const _0x2f2a98=_0x28819e;_0x2da036[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location',_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x2437'),_0x34e79e('0x117b'),_0x34e79e('0xd3c'),_0x34e79e('0x82f'),'type','api',_0x34e79e('0x1b04'),'crudPermissions'];function _0x2da036(_0x2c6a43,_0x4baea5,_0x45f044,_0x21bdd4,_0x5891af,_0x124823,_0x3f9018,_0x4731f3,_0x452136,_0x430670,_0x227a2d,_0x34799f,_0x37c499){const _0x1003ac=_0x34e79e,_0x17721e=this;_0x17721e[_0x1003ac('0x9cb')]=_0x34799f['getCurrentUser'](),_0x17721e['errors']=[],_0x17721e[_0x1003ac('0x14e4')]=_0x1003ac('0x1df9')+_0x283545()[_0x1003ac('0xc87')](_0x430670),_0x17721e['item']=angular[_0x1003ac('0x2669')](_0x4731f3),_0x17721e[_0x1003ac('0x117b')]=_0x3f9018,_0x17721e[_0x1003ac('0x1d7')]=_0x430670,_0x17721e[_0x1003ac('0xe28')]=_0x37c499,_0x17721e[_0x1003ac('0x63a')]=![];!_0x17721e[_0x1003ac('0xd3c')]&&(_0x17721e[_0x1003ac('0xd3c')]={'type':_0x1003ac('0x2209')},_0x17721e[_0x1003ac('0xd3c')][_0x283545()[_0x1003ac('0x1df5')](_0x430670)+'Id']=_0x124823['id'],_0x17721e[_0x1003ac('0x14e4')]=_0x1003ac('0x1109')+_0x283545()[_0x1003ac('0xc87')](_0x430670),_0x17721e[_0x1003ac('0x63a')]=!![]);_0x17721e[_0x1003ac('0x1586')]=_0x53031e,_0x17721e[_0x1003ac('0x953')]=_0x36b336,_0x17721e['deleteItem']=_0x2ce99e,_0x17721e[_0x1003ac('0xb4f')]=_0x447b8d,_0x17721e[_0x1003ac('0xca7')]=_0x4e6e57,_0x227a2d[_0x1003ac('0xa72')][_0x1003ac('0x1335')]({'nolimit':!![]})[_0x1003ac('0x1714')][_0x1003ac('0x2788')](function(_0x37b3e2){const _0x3d20d6=_0x1003ac;return _0x17721e[_0x3d20d6('0xf76')]=_0x37b3e2[_0x3d20d6('0x25df')]?_0x37b3e2[_0x3d20d6('0x25df')]:[],_0x227a2d[_0x3d20d6('0x15b7')][_0x3d20d6('0x15f8')]()[_0x3d20d6('0x1714')];})[_0x1003ac('0x2788')](function(_0x56fa90){const _0x1d6b7e=_0x1003ac;return _0x17721e['voiceAgentReportColumns']=_0x283545()[_0x1d6b7e('0xa9f')](_0x283545()[_0x1d6b7e('0x2163')](_0x56fa90),[_0x1d6b7e('0x1714'),'$resolved',_0x1d6b7e('0x172'),_0x1d6b7e('0x5f'),_0x1d6b7e('0x900')]),_0x17721e['voiceAgentReportColumns']['push']('recordingURL'),_0x227a2d[_0x1d6b7e('0xac')][_0x1d6b7e('0x15f8')]()[_0x1d6b7e('0x1714')];})[_0x1003ac('0x2788')](function(_0x3f57be){const _0x340e94=_0x1003ac;_0x17721e[_0x340e94('0x226b')]=_0x283545()['difference'](_0x283545()[_0x340e94('0x2163')](_0x3f57be),[_0x340e94('0x1714'),_0x340e94('0x187a'),_0x340e94('0x172'),'updatedAt',_0x340e94('0x900')]),_0x17721e[_0x340e94('0x226b')][_0x340e94('0x13e3')]('recordingURL');})[_0x1003ac('0x1cb5')](function(_0x507c1c){const _0x5d7191=_0x1003ac;_0x5891af[_0x5d7191('0x5e8')]({'title':_0x507c1c['status']?_0x5d7191('0x15d1')+_0x507c1c[_0x5d7191('0x1b51')]+_0x5d7191('0x1b0b')+_0x507c1c[_0x5d7191('0x22ce')]:'SYSTEM:GETVARIABLES','msg':_0x507c1c[_0x5d7191('0x11fc')]?JSON['stringify'](_0x507c1c['data']):_0x507c1c['toString']()});}),_0x227a2d[_0x1003ac('0x26ef')][_0x1003ac('0x24')]({'id':_0x452136['id'],'ticketType':_0x124823['ticketType']?_0x124823[_0x1003ac('0x3d9')]:undefined})['$promise']['then'](function(_0x134396){const _0x4f8820=_0x1003ac;_0x17721e['accountConnected']=!![],_0x17721e[_0x4f8820('0x1578')]=_0x134396[_0x4f8820('0x25df')]?_0x134396['rows']:[],_0x17721e['item'][_0x4f8820('0x1ca9')]&&(_0x17721e['customField']=_0x283545()[_0x4f8820('0x20e8')](_0x17721e[_0x4f8820('0x1578')],{'id':_0x17721e[_0x4f8820('0xd3c')][_0x4f8820('0x1ca9')]}));})[_0x1003ac('0x1cb5')](function(_0x2ffb03){const _0x1adf46=_0x1003ac;_0x17721e['accountConnected']=![],console[_0x1adf46('0x5e8')](_0x2ffb03);});function _0x53031e(){const _0xb1388f=_0x1003ac;_0x17721e[_0xb1388f('0x25be')]=[],_0x17721e[_0xb1388f('0x1ee9')]&&(_0x17721e[_0xb1388f('0xd3c')][_0xb1388f('0x1ca9')]=_0x17721e[_0xb1388f('0x1ee9')]['id'],_0x17721e[_0xb1388f('0xd3c')][_0xb1388f('0x98')]=_0x17721e[_0xb1388f('0x1ee9')]['name'],_0x17721e['item'][_0xb1388f('0x1ee9')]=_0x17721e[_0xb1388f('0x1ee9')][_0xb1388f('0x1d56')]),_0x227a2d['intZendeskField']['save'](_0x17721e['item'])['$promise'][_0xb1388f('0x2788')](function(_0x2d1b03){const _0x131bde=_0xb1388f;_0x17721e['items'][_0x131bde('0xc51')](_0x2d1b03),_0x5891af[_0x131bde('0x173b')]({'title':_0x283545()[_0x131bde('0x1df5')](_0x430670)+'\x20properly\x20created','msg':_0x283545()[_0x131bde('0x1df5')](_0x430670)+_0x131bde('0x1e4a')}),_0x4e6e57();})[_0xb1388f('0x1cb5')](function(_0x3dac25){const _0x2e3ca2=_0xb1388f;console[_0x2e3ca2('0x5e8')](_0x3dac25),_0x17721e[_0x2e3ca2('0x25be')]=_0x3dac25['data'][_0x2e3ca2('0x25be')]||[{'message':_0x3dac25[_0x2e3ca2('0x17df')](),'type':'api.item.save'}];});}function _0x36b336(){const _0x115f93=_0x1003ac;_0x17721e[_0x115f93('0x25be')]=[],_0x17721e[_0x115f93('0x1ee9')]&&(_0x17721e[_0x115f93('0xd3c')][_0x115f93('0x1ca9')]=_0x17721e[_0x115f93('0x1ee9')]['id'],_0x17721e[_0x115f93('0xd3c')][_0x115f93('0x98')]=_0x17721e[_0x115f93('0x1ee9')]['name'],_0x17721e[_0x115f93('0xd3c')][_0x115f93('0x1ee9')]=_0x17721e[_0x115f93('0x1ee9')][_0x115f93('0x1d56')]),_0x227a2d[_0x115f93('0xd59')][_0x115f93('0x2740')]({'id':_0x17721e['item']['id']},_0x17721e[_0x115f93('0xd3c')])[_0x115f93('0x1714')][_0x115f93('0x2788')](function(_0x502c90){const _0x34f142=_0x115f93,_0x1d9025=_0x283545()[_0x34f142('0x20e8')](_0x17721e[_0x34f142('0x117b')],{'id':_0x502c90['id']});_0x1d9025&&_0x283545()[_0x34f142('0x2503')](_0x1d9025,_0x502c90),_0x5891af[_0x34f142('0x173b')]({'title':_0x283545()[_0x34f142('0x1df5')](_0x430670)+_0x34f142('0x1d15'),'msg':_0x283545()[_0x34f142('0x1df5')](_0x430670)+_0x34f142('0x24cf')}),_0x4e6e57();})[_0x115f93('0x1cb5')](function(_0x2b8e7d){const _0x544653=_0x115f93;console[_0x544653('0x5e8')](_0x2b8e7d),_0x17721e[_0x544653('0x25be')]=_0x2b8e7d[_0x544653('0x11fc')][_0x544653('0x25be')]||[{'message':_0x2b8e7d['toString'](),'type':_0x544653('0xe95')}];});}function _0x2ce99e(_0x471fa2){const _0x551b4a=_0x1003ac;_0x17721e[_0x551b4a('0x25be')]=[];const _0x282405=_0x21bdd4[_0x551b4a('0x112e')]()['title']('Are\x20you\x20sure?')[_0x551b4a('0x1c98')](_0x551b4a('0x1b10')+_0x430670+'\x20will\x20be\x20deleted.')[_0x551b4a('0x10bc')](_0x551b4a('0x177f')+_0x283545()['capitalize'](_0x430670))['ok'](_0x551b4a('0x2786'))['cancel'](_0x551b4a('0x1481'))[_0x551b4a('0x24d0')](_0x471fa2);_0x21bdd4[_0x551b4a('0x2fa')](_0x282405)[_0x551b4a('0x2788')](function(){const _0x4d46da=_0x551b4a;_0x227a2d[_0x4d46da('0xd59')][_0x4d46da('0x17c4')]({'id':_0x17721e[_0x4d46da('0xd3c')]['id']})[_0x4d46da('0x1714')][_0x4d46da('0x2788')](function(){const _0x471b78=_0x4d46da;_0x283545()[_0x471b78('0x1a90')](_0x17721e[_0x471b78('0x117b')],{'id':_0x17721e[_0x471b78('0xd3c')]['id']}),_0x5891af[_0x471b78('0x173b')]({'title':_0x283545()[_0x471b78('0x1df5')](_0x430670)+_0x471b78('0x2542'),'msg':_0x283545()[_0x471b78('0x1df5')](_0x430670)+'\x20has\x20been\x20deleted!'}),_0x4e6e57();})[_0x4d46da('0x1cb5')](function(_0x38e351){const _0x3941c1=_0x4d46da;console[_0x3941c1('0x5e8')](_0x38e351),_0x17721e[_0x3941c1('0x25be')]=_0x38e351[_0x3941c1('0x11fc')]['errors']||[{'message':_0x38e351[_0x3941c1('0x17df')](),'type':'api.item.delete'}];});},function(){});}function _0x447b8d(){const _0x4e01f8=_0x1003ac;return _0x17721e[_0x4e01f8('0xd3c')][_0x4e01f8('0x1889')]!==undefined?_0x17721e[_0x4e01f8('0xd3c')][_0x4e01f8('0x1889')]:_0x4e01f8('0x6d1');}function _0x4e6e57(){const _0x3df8a2=_0x1003ac;_0x21bdd4[_0x3df8a2('0x19d')]();}}const _0x9bf530=_0x2da036;_0x1f651d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0x1580'),'$translate',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'api','toasty',_0x34e79e('0x1b04'),_0x34e79e('0x253f'),_0x34e79e('0xec9')];function _0x1f651d(_0xbb8f48,_0x21e6c9,_0x18365f,_0x332a59,_0x1cdb38,_0x52754d,_0x5f423a,_0xd17d1e,_0x5edccb,_0x588ec6,_0x274007,_0x496f3c){const _0xddc4db=_0x34e79e,_0x47cfe3=this;_0x47cfe3[_0xddc4db('0x9cb')]=_0x588ec6[_0xddc4db('0x24cc')](),_0x47cfe3[_0xddc4db('0x130d')]=_0x52754d,_0x47cfe3[_0xddc4db('0x1af0')]=_0x5f423a,_0x47cfe3[_0xddc4db('0x18ad')]=_0x47cfe3[_0xddc4db('0x1af0')][_0xddc4db('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x47cfe3['location']=_0x21e6c9[_0xddc4db('0x170c')]()+'://'+_0x21e6c9['host'](),_0x47cfe3['zendeskAccount']=_0x274007||_0xbb8f48[_0xddc4db('0x4b9')][_0xddc4db('0x253f')]||{},_0x47cfe3['userProfileSection']=_0x496f3c&&_0x496f3c['count']==0x1?_0x496f3c[_0xddc4db('0x25df')][0x0]:null,_0x47cfe3[_0xddc4db('0xe28')]=_0x588ec6[_0xddc4db('0x157e')](_0x47cfe3[_0xddc4db('0xec9')]?_0x47cfe3[_0xddc4db('0xec9')][_0xddc4db('0xe28')]:null),_0x47cfe3[_0xddc4db('0x1193')]={},_0x47cfe3[_0xddc4db('0xcb3')]=_0xbb8f48[_0xddc4db('0x4b9')][_0xddc4db('0x24f6')]||0x0,_0x47cfe3['alert']=_0x5edccb['info'],_0x47cfe3[_0xddc4db('0x2393')]=_0x23b560,_0x47cfe3[_0xddc4db('0x1f5c')]=_0x51c42f;function _0x23b560(){const _0x2b98cd=_0xddc4db;_0xbb8f48['go'](_0x2b98cd('0x97'),{},{'reload':_0x2b98cd('0x97')});}function _0x51c42f(){const _0xdda0=_0xddc4db;_0xd17d1e[_0xdda0('0x26ef')][_0xdda0('0x2740')]({'id':_0x47cfe3[_0xdda0('0x253f')]['id']},_0x47cfe3[_0xdda0('0x253f')])[_0xdda0('0x1714')][_0xdda0('0x2788')](function(){const _0x3788e5=_0xdda0;_0x5edccb['success']({'title':'ZendeskAccount\x20updated!','msg':_0x47cfe3[_0x3788e5('0x253f')]['name']?_0x47cfe3[_0x3788e5('0x253f')][_0x3788e5('0x1a8d')]+_0x3788e5('0x6f8'):''});})[_0xdda0('0x1cb5')](function(_0x4b0156){const _0x360680=_0xdda0;_0x5edccb[_0x360680('0x5e8')]({'title':_0x4b0156[_0x360680('0x1b51')]?_0x360680('0x15d1')+_0x4b0156[_0x360680('0x1b51')]+_0x360680('0x1b0b')+_0x4b0156[_0x360680('0x22ce')]:_0x360680('0x12c8'),'msg':_0x4b0156['data']?JSON[_0x360680('0x1be0')](_0x4b0156[_0x360680('0x11fc')]):_0x4b0156[_0x360680('0x17df')]()});});}}const _0x345e05=_0x1f651d,_0x16e9a9=_0x18dd13['p']+_0x34e79e('0x25ad'),_0x51ede8=_0x18dd13['p']+_0x34e79e('0x247f');_0x328877['$inject']=[_0x34e79e('0x123b'),'$document',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x328877(_0x196bc7,_0x17f2d1,_0x57949a,_0x14dc80,_0x52c256){const _0x132d31=_0x34e79e,_0x1cef14=this;_0x1cef14['currentUser']=_0x52c256[_0x132d31('0x24cc')](),_0x1cef14['zendeskAccount']={},_0x1cef14[_0x132d31('0x1ffe')]={},_0x1cef14[_0x132d31('0x1fd2')]=[],_0x1cef14[_0x132d31('0xf06')]=-0x1,_0x1cef14[_0x132d31('0xe28')],_0x1cef14[_0x132d31('0x24eb')]=_0x4e9dff,_0x1cef14[_0x132d31('0x1abd')]=_0x1ce7f1,_0x1cef14[_0x132d31('0x24f3')]=_0x164886,_0x1cef14[_0x132d31('0x16c0')]=_0x89dfb6,_0x1cef14[_0x132d31('0xf6c')]=[],_0x1cef14['selectTagsChanged']=_0xc66c81,_0x57949a[_0x132d31('0x1764')][_0x132d31('0x1335')]({'nolimit':!![],'sort':_0x132d31('0x1a8d')})['$promise']['then'](function(_0x3ea78c){const _0x325960=_0x132d31;_0x1cef14['tags']=_0x3ea78c['rows']?_0x3ea78c[_0x325960('0x25df')]:[];})[_0x132d31('0x1cb5')](function(_0xea0442){const _0x5d46d4=_0x132d31;_0x14dc80[_0x5d46d4('0x5e8')]({'title':_0xea0442[_0x5d46d4('0x1b51')]?_0x5d46d4('0x15d1')+_0xea0442['status']+'\x20-\x20'+_0xea0442['statusText']:_0x5d46d4('0x1313'),'msg':_0xea0442[_0x5d46d4('0x11fc')]?JSON[_0x5d46d4('0x1be0')](_0xea0442[_0x5d46d4('0x11fc')]):_0xea0442[_0x5d46d4('0x17df')]()});});function _0xc66c81(){const _0x2749fc=_0x132d31;_0x57949a[_0x2749fc('0x15ab')][_0x2749fc('0x53a')]({'id':_0x1cef14[_0x2749fc('0x1ffe')]['id'],'ids':_0x1cef14[_0x2749fc('0xf6c')]})[_0x2749fc('0x1714')]['then'](function(){const _0x3e7a66=_0x2749fc;_0x14dc80['success']({'title':_0x3e7a66('0xc53'),'msg':'Tags\x20has\x20been\x20set!'});})['catch'](function(_0x58ab8a){const _0x4d76a5=_0x2749fc;_0x14dc80[_0x4d76a5('0x5e8')]({'title':_0x58ab8a['status']?_0x4d76a5('0x15d1')+_0x58ab8a[_0x4d76a5('0x1b51')]+_0x4d76a5('0x1b0b')+_0x58ab8a[_0x4d76a5('0x22ce')]:_0x4d76a5('0x271d'),'msg':_0x58ab8a['data']?JSON[_0x4d76a5('0x1be0')](_0x58ab8a['data']):_0x58ab8a[_0x4d76a5('0x17df')]()});});}function _0x4e9dff(_0x3c77ad,_0x346455){const _0x5caeae=_0x132d31;_0x1cef14[_0x5caeae('0x253f')]=_0x3c77ad,_0x1cef14[_0x5caeae('0xe28')]=typeof _0x346455!==_0x5caeae('0xedb')?_0x346455:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x57949a[_0x5caeae('0x26ef')][_0x5caeae('0x1168')]({'id':_0x1cef14[_0x5caeae('0x253f')]['id'],'sort':_0x5caeae('0x1cee')})[_0x5caeae('0x1714')][_0x5caeae('0x2788')](function(_0xb76ee2){const _0x429c65=_0x5caeae;return _0x1cef14[_0x429c65('0x1fd2')]=_0xb76ee2[_0x429c65('0x25df')]?_0xb76ee2['rows']:[],_0x1cef14['zendeskConfigurations'][_0x429c65('0x2566')]&&_0x1cef14['getZendeskConfiguration'](0x0),_0x57949a['variable'][_0x429c65('0x1335')]({'nolimit':!![],'sort':_0x429c65('0x1a8d')})['$promise'];})[_0x5caeae('0x2788')](function(_0x4b2d05){const _0x2f9e2b=_0x5caeae;_0x1cef14[_0x2f9e2b('0xf76')]=_0x4b2d05[_0x2f9e2b('0x25df')]?_0x4b2d05['rows']:[],_0x1cef14[_0x2f9e2b('0xdd1')]=_0x283545()[_0x2f9e2b('0x13cf')](_0x1cef14[_0x2f9e2b('0xf76')],'id');})[_0x5caeae('0x1cb5')](function(_0x329e63){const _0x5bb254=_0x5caeae;_0x14dc80[_0x5bb254('0x5e8')]({'title':_0x329e63[_0x5bb254('0x1b51')]?'API:'+_0x329e63[_0x5bb254('0x1b51')]+_0x5bb254('0x1b0b')+_0x329e63[_0x5bb254('0x22ce')]:'SYSTEM:GETCONFIGURATION','msg':_0x329e63[_0x5bb254('0x11fc')]?JSON[_0x5bb254('0x1be0')](_0x329e63[_0x5bb254('0x11fc')]):_0x329e63[_0x5bb254('0x17df')]()});});}function _0x1ce7f1(_0x9a88c2){const _0xcd9f6b=_0x132d31;_0x1cef14[_0xcd9f6b('0x1ffe')]=_0x1cef14['zendeskConfigurations'][_0x9a88c2],_0x1cef14[_0xcd9f6b('0xf06')]=_0x9a88c2,_0x57949a[_0xcd9f6b('0x15ab')][_0xcd9f6b('0x12c5')]({'id':_0x1cef14[_0xcd9f6b('0x1ffe')]['id']})[_0xcd9f6b('0x1714')]['then'](function(_0x4df9fb){const _0x273c05=_0xcd9f6b;return _0x1cef14[_0x273c05('0x348')]=_0x4df9fb['rows']?_0x4df9fb[_0x273c05('0x25df')]:[],_0x57949a[_0x273c05('0x15ab')]['getDescriptions']({'id':_0x1cef14[_0x273c05('0x1ffe')]['id']})['$promise'];})[_0xcd9f6b('0x2788')](function(_0x2458bd){const _0x33590c=_0xcd9f6b;return _0x1cef14[_0x33590c('0x1942')]=_0x2458bd[_0x33590c('0x25df')]?_0x2458bd['rows']:[],_0x57949a[_0x33590c('0x15ab')][_0x33590c('0x24')]({'id':_0x1cef14[_0x33590c('0x1ffe')]['id']})[_0x33590c('0x1714')];})['then'](function(_0x8a7667){const _0x5e56a0=_0xcd9f6b;_0x1cef14[_0x5e56a0('0x1578')]=_0x8a7667['rows']?_0x8a7667[_0x5e56a0('0x25df')]:[];})['catch'](function(_0x4a2cd8){const _0x1bf608=_0xcd9f6b;_0x14dc80[_0x1bf608('0x5e8')]({'title':_0x4a2cd8[_0x1bf608('0x1b51')]?_0x1bf608('0x15d1')+_0x4a2cd8[_0x1bf608('0x1b51')]+_0x1bf608('0x1b0b')+_0x4a2cd8[_0x1bf608('0x22ce')]:_0x1bf608('0x616'),'msg':_0x4a2cd8[_0x1bf608('0x11fc')]?JSON[_0x1bf608('0x1be0')](_0x4a2cd8[_0x1bf608('0x11fc')]):_0x4a2cd8[_0x1bf608('0x17df')]()});}),_0x57949a[_0xcd9f6b('0x15ab')][_0xcd9f6b('0x1c39')]({'id':_0x1cef14[_0xcd9f6b('0x1ffe')]['id']})[_0xcd9f6b('0x1714')][_0xcd9f6b('0x2788')](function(_0x691317){const _0x59198c=_0xcd9f6b;_0x1cef14[_0x59198c('0xf6c')]=_0x691317[_0x59198c('0x25df')]?_0x283545()[_0x59198c('0x155d')](_0x691317[_0x59198c('0x25df')],'id'):[];})[_0xcd9f6b('0x1cb5')](function(_0x1ef6f0){const _0xceaebb=_0xcd9f6b;_0x14dc80[_0xceaebb('0x5e8')]({'title':_0x1ef6f0['status']?'API:'+_0x1ef6f0[_0xceaebb('0x1b51')]+_0xceaebb('0x1b0b')+_0x1ef6f0[_0xceaebb('0x22ce')]:_0xceaebb('0x1313'),'msg':_0x1ef6f0[_0xceaebb('0x11fc')]?JSON[_0xceaebb('0x1be0')](_0x1ef6f0[_0xceaebb('0x11fc')]):_0x1ef6f0['toString']()});});}function _0x164886(_0x558d1e,_0x17f156){const _0x17c997=_0x132d31;_0x196bc7[_0x17c997('0x2fa')]({'controller':_0x17c997('0x1a9e'),'controllerAs':'vm','templateUrl':_0x16e9a9,'parent':angular[_0x17c997('0x16b1')](_0x17f2d1[_0x17c997('0x945')]),'targetEvent':_0x558d1e,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x17f156,'zendeskConfigurations':_0x1cef14[_0x17c997('0x1fd2')],'license':null,'setting':null,'crudPermissions':_0x1cef14[_0x17c997('0xe28')]}})[_0x17c997('0x1ed8')](function(){const _0x1a043f=_0x17c997;_0x1cef14[_0x1a043f('0x1abd')](0x0);});}function _0x89dfb6(_0x4ea760,_0x1d6c53){const _0x42ab26=_0x132d31,_0x3c387d=_0x196bc7[_0x42ab26('0x112e')]()[_0x42ab26('0x14e4')](_0x42ab26('0x2698'))['htmlContent'](''+(_0x1d6c53[_0x42ab26('0x1a8d')]||_0x42ab26('0x1ffe'))+_0x42ab26('0x229e')+_0x42ab26('0x27c7'))[_0x42ab26('0x10bc')](_0x42ab26('0xa0d'))['targetEvent'](_0x4ea760)['ok']('OK')[_0x42ab26('0x1801')](_0x42ab26('0x1d8d'));_0x196bc7[_0x42ab26('0x2fa')](_0x3c387d)['then'](function(){const _0x33e097=_0x42ab26;_0x57949a['intZendeskConfiguration'][_0x33e097('0x17c4')]({'id':_0x1d6c53['id']})[_0x33e097('0x1714')]['then'](function(){const _0x33a97c=_0x33e097;_0x283545()['remove'](_0x1cef14[_0x33a97c('0x1fd2')],{'id':_0x1d6c53['id']}),_0x14dc80[_0x33a97c('0x173b')]({'title':'ZendeskConfiguration\x20deleted!','msg':_0x1d6c53[_0x33a97c('0x1a8d')]?_0x1d6c53[_0x33a97c('0x1a8d')]+_0x33a97c('0x14d4'):''});})['catch'](function(_0x201f25){const _0x3b73b9=_0x33e097;_0x14dc80[_0x3b73b9('0x5e8')]({'title':_0x201f25['status']?'API:'+_0x201f25[_0x3b73b9('0x1b51')]+_0x3b73b9('0x1b0b')+_0x201f25['statusText']:_0x3b73b9('0x26b4'),'msg':_0x201f25['data']?JSON['stringify'](_0x201f25['data']):_0x201f25[_0x3b73b9('0x17df')]()});})[_0x33e097('0x1ed8')](function(){_0x1cef14['getZendeskConfiguration'](0x0);});},function(){const _0x49ee0f=_0x42ab26;console[_0x49ee0f('0x10df')](_0x49ee0f('0x1d8d'));});}_0x1cef14[_0x132d31('0x2012')]=[],_0x1cef14[_0x132d31('0xe3e')]=_0x595f9d,_0x1cef14[_0x132d31('0x13b')]=_0x4b4cbc,_0x1cef14[_0x132d31('0x5ec')]=_0x2b9ccf;function _0x595f9d(_0x304557,_0x1b5a9c){const _0x285a13=_0x132d31;_0x196bc7[_0x285a13('0x2fa')]({'controller':_0x285a13('0x1ff5'),'controllerAs':'vm','templateUrl':_0x51ede8,'parent':angular[_0x285a13('0x16b1')](_0x17f2d1[_0x285a13('0x945')]),'targetEvent':_0x304557,'clickOutsideToClose':!![],'locals':{'type':_0x285a13('0x248f'),'item':_0x1b5a9c,'items':_0x1cef14['subjects'],'configuration':_0x1cef14[_0x285a13('0x1ffe')],'account':_0x1cef14[_0x285a13('0x253f')],'license':null,'setting':null,'crudPermissions':_0x1cef14[_0x285a13('0xe28')]}});}function _0xb814e6(_0x5e7ccc){const _0x501d9b=_0x132d31;_0x57949a[_0x501d9b('0xd59')]['delete']({'id':_0x5e7ccc['id']})[_0x501d9b('0x1714')]['then'](function(){const _0x47c710=_0x501d9b;_0x283545()[_0x47c710('0x1a90')](_0x1cef14[_0x47c710('0x348')],{'id':_0x5e7ccc['id']}),_0x14dc80['success']({'title':_0x47c710('0x306'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x501d9b('0x1cb5')](function(_0x5880d0){const _0x32ddba=_0x501d9b;_0x14dc80[_0x32ddba('0x5e8')]({'title':_0x5880d0[_0x32ddba('0x1b51')]?_0x32ddba('0x15d1')+_0x5880d0[_0x32ddba('0x1b51')]+_0x32ddba('0x1b0b')+_0x5880d0['statusText']:_0x32ddba('0x2803'),'msg':_0x5880d0[_0x32ddba('0x11fc')]?JSON['stringify'](_0x5880d0[_0x32ddba('0x11fc')]):_0x5880d0['toString']()});});}function _0x4b4cbc(_0x47a975,_0x2c182f){const _0x228ebe=_0x132d31,_0x57abc1=_0x196bc7[_0x228ebe('0x112e')]()['title'](_0x228ebe('0x6dd'))[_0x228ebe('0x93e')](_0x228ebe('0xdc')+_0x228ebe('0x27c7'))[_0x228ebe('0x10bc')]('delete\x20subject')[_0x228ebe('0x24d0')](_0x47a975)['ok']('OK')['cancel'](_0x228ebe('0x1d8d'));_0x196bc7['show'](_0x57abc1)[_0x228ebe('0x2788')](function(){_0xb814e6(_0x2c182f);},function(){const _0xd5d6f1=_0x228ebe;console['log'](_0xd5d6f1('0x1d8d'));});}function _0x2b9ccf(_0x11748){const _0x53d025=_0x132d31,_0x39ca71=_0x196bc7['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x53d025('0x93e')](_0x53d025('0x1670')+_0x1cef14[_0x53d025('0x2012')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x53d025('0x19b1'))['targetEvent'](_0x11748)['ok']('OK')['cancel'](_0x53d025('0x1d8d'));_0x196bc7[_0x53d025('0x2fa')](_0x39ca71)[_0x53d025('0x2788')](function(){const _0x403ca9=_0x53d025;_0x1cef14[_0x403ca9('0x2012')][_0x403ca9('0x1534')](function(_0x290e22){_0xb814e6(_0x290e22);}),_0x1cef14[_0x403ca9('0x2012')]=[];});}_0x1cef14['selectedDescriptions']=[],_0x1cef14[_0x132d31('0x820')]=_0x326011,_0x1cef14[_0x132d31('0x16ad')]=_0x538bd2,_0x1cef14[_0x132d31('0x16b5')]=_0x85e607;function _0x326011(_0x5cf660,_0x3e4a9c){const _0x46193a=_0x132d31;_0x196bc7['show']({'controller':_0x46193a('0x1ff5'),'controllerAs':'vm','templateUrl':_0x51ede8,'parent':angular['element'](_0x17f2d1[_0x46193a('0x945')]),'targetEvent':_0x5cf660,'clickOutsideToClose':!![],'locals':{'type':_0x46193a('0x27b9'),'item':_0x3e4a9c,'items':_0x1cef14[_0x46193a('0x1942')],'configuration':_0x1cef14[_0x46193a('0x1ffe')],'account':_0x1cef14[_0x46193a('0x253f')],'license':null,'setting':null,'crudPermissions':_0x1cef14[_0x46193a('0xe28')]}});}function _0x56061c(_0x100908){const _0x3bde23=_0x132d31;_0x57949a[_0x3bde23('0xd59')][_0x3bde23('0x17c4')]({'id':_0x100908['id']})[_0x3bde23('0x1714')][_0x3bde23('0x2788')](function(){const _0x993f68=_0x3bde23;_0x283545()[_0x993f68('0x1a90')](_0x1cef14[_0x993f68('0x1942')],{'id':_0x100908['id']}),_0x14dc80[_0x993f68('0x173b')]({'title':'Description\x20deleted!','msg':_0x993f68('0x50')});})[_0x3bde23('0x1cb5')](function(_0x2c31ce){const _0x27968=_0x3bde23;_0x14dc80[_0x27968('0x5e8')]({'title':_0x2c31ce[_0x27968('0x1b51')]?_0x27968('0x15d1')+_0x2c31ce[_0x27968('0x1b51')]+_0x27968('0x1b0b')+_0x2c31ce[_0x27968('0x22ce')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2c31ce[_0x27968('0x11fc')]?JSON[_0x27968('0x1be0')](_0x2c31ce[_0x27968('0x11fc')]):_0x2c31ce[_0x27968('0x17df')]()});});}function _0x538bd2(_0x3642a4,_0x37e7c9){const _0xdb22fa=_0x132d31,_0x47dfc4=_0x196bc7['confirm']()[_0xdb22fa('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0xdb22fa('0x93e')](_0xdb22fa('0x27b')+_0xdb22fa('0x27c7'))['ariaLabel'](_0xdb22fa('0x6b7'))['targetEvent'](_0x3642a4)['ok']('OK')['cancel'](_0xdb22fa('0x1d8d'));_0x196bc7[_0xdb22fa('0x2fa')](_0x47dfc4)[_0xdb22fa('0x2788')](function(){_0x56061c(_0x37e7c9);},function(){const _0x426402=_0xdb22fa;console[_0x426402('0x10df')](_0x426402('0x1d8d'));});}function _0x85e607(_0x1ae383){const _0x2ef0a0=_0x132d31,_0x4b03dc=_0x196bc7[_0x2ef0a0('0x112e')]()[_0x2ef0a0('0x14e4')](_0x2ef0a0('0x1476'))[_0x2ef0a0('0x93e')](''+_0x1cef14['selectedDescriptions'][_0x2ef0a0('0x2566')]+_0x2ef0a0('0xbd')+_0x2ef0a0('0x27c7'))[_0x2ef0a0('0x10bc')]('delete\x20descriptions')[_0x2ef0a0('0x24d0')](_0x1ae383)['ok']('OK')[_0x2ef0a0('0x1801')](_0x2ef0a0('0x1d8d'));_0x196bc7[_0x2ef0a0('0x2fa')](_0x4b03dc)[_0x2ef0a0('0x2788')](function(){const _0x5bd21a=_0x2ef0a0;_0x1cef14[_0x5bd21a('0x58e')]['forEach'](function(_0x48bfa5){_0x56061c(_0x48bfa5);}),_0x1cef14[_0x5bd21a('0x58e')]=[];});}_0x1cef14[_0x132d31('0xcc9')]=[],_0x1cef14[_0x132d31('0x17d4')]=_0x412695,_0x1cef14['deleteFieldConfirm']=_0xdb012e,_0x1cef14[_0x132d31('0x262b')]=_0x111048;function _0x412695(_0x3db1b8,_0x4c03b2){const _0x2decfe=_0x132d31;_0x196bc7[_0x2decfe('0x2fa')]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x51ede8,'parent':angular[_0x2decfe('0x16b1')](_0x17f2d1[_0x2decfe('0x945')]),'targetEvent':_0x3db1b8,'clickOutsideToClose':!![],'locals':{'type':_0x2decfe('0x18da'),'item':_0x4c03b2,'items':_0x1cef14['fields'],'configuration':_0x1cef14[_0x2decfe('0x1ffe')],'account':_0x1cef14[_0x2decfe('0x253f')],'license':null,'setting':null,'crudPermissions':_0x1cef14['crudPermissions']}});}function _0x4c95be(_0x482218){const _0x2bbd6b=_0x132d31;_0x57949a[_0x2bbd6b('0xd59')][_0x2bbd6b('0x17c4')]({'id':_0x482218['id']})['$promise'][_0x2bbd6b('0x2788')](function(){const _0x38c5a4=_0x2bbd6b;_0x283545()['remove'](_0x1cef14[_0x38c5a4('0x1578')],{'id':_0x482218['id']}),_0x14dc80[_0x38c5a4('0x173b')]({'title':_0x38c5a4('0xb76'),'msg':_0x38c5a4('0x1d92')});})['catch'](function(_0x565773){const _0x532dcc=_0x2bbd6b;_0x14dc80['error']({'title':_0x565773[_0x532dcc('0x1b51')]?_0x532dcc('0x15d1')+_0x565773[_0x532dcc('0x1b51')]+_0x532dcc('0x1b0b')+_0x565773['statusText']:_0x532dcc('0x2803'),'msg':_0x565773[_0x532dcc('0x11fc')]?JSON[_0x532dcc('0x1be0')](_0x565773[_0x532dcc('0x11fc')]):_0x565773[_0x532dcc('0x17df')]()});});}function _0xdb012e(_0x3f890a,_0x5525a5){const _0x37dd9d=_0x132d31,_0x483fe5=_0x196bc7[_0x37dd9d('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x37dd9d('0x93e')]('Field'+'\x20will\x20be\x20deleted.')[_0x37dd9d('0x10bc')]('delete\x20field')[_0x37dd9d('0x24d0')](_0x3f890a)['ok']('OK')[_0x37dd9d('0x1801')](_0x37dd9d('0x1d8d'));_0x196bc7['show'](_0x483fe5)['then'](function(){_0x4c95be(_0x5525a5);},function(){const _0x2c9a78=_0x37dd9d;console[_0x2c9a78('0x10df')](_0x2c9a78('0x1d8d'));});}function _0x111048(_0x2f5463){const _0x3de6ae=_0x132d31,_0x3bffd1=_0x196bc7[_0x3de6ae('0x112e')]()['title'](_0x3de6ae('0x7'))[_0x3de6ae('0x93e')](_0x3de6ae('0x1670')+_0x1cef14['selectedFields'][_0x3de6ae('0x2566')]+_0x3de6ae('0xbd')+'\x20will\x20be\x20deleted.')[_0x3de6ae('0x10bc')](_0x3de6ae('0x736'))[_0x3de6ae('0x24d0')](_0x2f5463)['ok']('OK')['cancel'](_0x3de6ae('0x1d8d'));_0x196bc7[_0x3de6ae('0x2fa')](_0x3bffd1)[_0x3de6ae('0x2788')](function(){const _0x1d2b1b=_0x3de6ae;_0x1cef14['selectedFields'][_0x1d2b1b('0x1534')](function(_0x4143e8){_0x4c95be(_0x4143e8);}),_0x1cef14[_0x1d2b1b('0xcc9')]=[];});}}const _0x3e3fc1=_0x328877;_0x435b24[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'zendeskConfigurations','zendeskConfiguration',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x435b24(_0x154e24,_0x5a1b87,_0x120513,_0x316ebd,_0x8515b6,_0x32a469,_0x1951e4,_0x18197e,_0x4fd662,_0x4013cd,_0x465952,_0x2c67dd,_0x3c39b0,_0x3c04eb){const _0x47e1c7=_0x34e79e,_0x2f3057=this;_0x2f3057[_0x47e1c7('0x9cb')]=_0x465952[_0x47e1c7('0x24cc')](),_0x2f3057[_0x47e1c7('0x25be')]=[],_0x2f3057[_0x47e1c7('0x1af0')]=_0x3c39b0,_0x2f3057['license']=_0x2c67dd,_0x2f3057[_0x47e1c7('0xe28')]=_0x3c04eb,_0x2f3057['hasModulePermissions']={},_0x2f3057[_0x47e1c7('0x18ad')]=_0x2f3057[_0x47e1c7('0x1af0')]&&_0x2f3057[_0x47e1c7('0x1af0')][_0x47e1c7('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f3057['title']=_0x47e1c7('0x2498'),_0x2f3057[_0x47e1c7('0x1ffe')]=angular[_0x47e1c7('0x2669')](_0x4fd662),_0x2f3057['zendeskConfigurations']=_0x18197e,_0x2f3057[_0x47e1c7('0x116e')]=![];!_0x2f3057[_0x47e1c7('0x1ffe')]&&(_0x2f3057[_0x47e1c7('0x1ffe')]={'channel':'voice','type':_0x47e1c7('0x2e4')},_0x2f3057[_0x47e1c7('0x14e4')]=_0x47e1c7('0xd78'),_0x2f3057[_0x47e1c7('0x116e')]=!![]);_0x2f3057['addNewZendeskConfiguration']=_0x45485e,_0x2f3057['saveZendeskConfiguration']=_0x3b31fd,_0x2f3057[_0x47e1c7('0x16c0')]=_0x1d2935,_0x2f3057[_0x47e1c7('0x2601')]=_0x24bd0f,_0x2f3057[_0x47e1c7('0xca7')]=_0x4ab4a0;function _0x45485e(){const _0x5ee96b=_0x47e1c7;_0x2f3057[_0x5ee96b('0x25be')]=[],_0x4013cd[_0x5ee96b('0x26ef')][_0x5ee96b('0x2757')]({'id':_0x5a1b87['params']['id']},_0x2f3057['zendeskConfiguration'])[_0x5ee96b('0x1714')]['then'](function(_0x1ec1e3){const _0x1b06a5=_0x5ee96b;_0x2f3057[_0x1b06a5('0x1fd2')][_0x1b06a5('0xc51')](_0x1ec1e3[_0x1b06a5('0x1cbf')]()),_0x1951e4[_0x1b06a5('0x173b')]({'title':_0x1b06a5('0x1c66'),'msg':_0x2f3057[_0x1b06a5('0x1ffe')]['name']?_0x2f3057[_0x1b06a5('0x1ffe')][_0x1b06a5('0x1a8d')]+_0x1b06a5('0x1e4a'):''}),_0x4ab4a0(_0x1ec1e3);})[_0x5ee96b('0x1cb5')](function(_0x2ac80){const _0x1b5239=_0x5ee96b;if(_0x2ac80[_0x1b5239('0x11fc')]&&_0x2ac80[_0x1b5239('0x11fc')]['errors']&&_0x2ac80[_0x1b5239('0x11fc')]['errors'][_0x1b5239('0x2566')]){_0x2f3057['errors']=_0x2ac80[_0x1b5239('0x11fc')][_0x1b5239('0x25be')]||[{'message':_0x2ac80[_0x1b5239('0x17df')](),'type':_0x1b5239('0x911')}];for(let _0x104fb3=0x0;_0x104fb3<_0x2ac80[_0x1b5239('0x11fc')]['errors'][_0x1b5239('0x2566')];_0x104fb3+=0x1){_0x1951e4[_0x1b5239('0x5e8')]({'title':_0x2ac80[_0x1b5239('0x11fc')][_0x1b5239('0x25be')][_0x104fb3][_0x1b5239('0x1d7')],'msg':_0x2ac80[_0x1b5239('0x11fc')][_0x1b5239('0x25be')][_0x104fb3][_0x1b5239('0x15e2')]});}}else _0x1951e4[_0x1b5239('0x5e8')]({'title':_0x2ac80[_0x1b5239('0x1b51')]?_0x1b5239('0x15d1')+_0x2ac80[_0x1b5239('0x1b51')]+_0x1b5239('0x1b0b')+_0x2ac80[_0x1b5239('0x22ce')]:_0x1b5239('0x911'),'msg':_0x2ac80[_0x1b5239('0x11fc')]?JSON[_0x1b5239('0x1be0')](_0x2ac80[_0x1b5239('0x11fc')][_0x1b5239('0x15e2')]):_0x2ac80[_0x1b5239('0x17df')]()});});}function _0x3b31fd(){const _0x1c9479=_0x47e1c7;_0x2f3057[_0x1c9479('0x25be')]=[],_0x4013cd['intZendeskConfiguration']['update']({'id':_0x2f3057[_0x1c9479('0x1ffe')]['id']},_0x2f3057[_0x1c9479('0x1ffe')])[_0x1c9479('0x1714')]['then'](function(_0x5d8d77){const _0x3b15d8=_0x1c9479,_0x284174=_0x283545()[_0x3b15d8('0x20e8')](_0x2f3057[_0x3b15d8('0x1fd2')],{'id':_0x5d8d77['id']});_0x284174&&_0x283545()['merge'](_0x284174,_0x283545()[_0x3b15d8('0x41b')](_0x5d8d77[_0x3b15d8('0x1cbf')](),_0x283545()['keys'](_0x284174))),_0x1951e4['success']({'title':_0x3b15d8('0x3b7'),'msg':_0x2f3057[_0x3b15d8('0x1ffe')][_0x3b15d8('0x1a8d')]?_0x2f3057[_0x3b15d8('0x1ffe')][_0x3b15d8('0x1a8d')]+_0x3b15d8('0x24cf'):''}),_0x4ab4a0(_0x5d8d77);})[_0x1c9479('0x1cb5')](function(_0x26caa1){const _0x550f91=_0x1c9479;if(_0x26caa1[_0x550f91('0x11fc')]&&_0x26caa1[_0x550f91('0x11fc')][_0x550f91('0x25be')]&&_0x26caa1['data'][_0x550f91('0x25be')][_0x550f91('0x2566')]){_0x2f3057[_0x550f91('0x25be')]=_0x26caa1[_0x550f91('0x11fc')][_0x550f91('0x25be')]||[{'message':_0x26caa1[_0x550f91('0x17df')](),'type':_0x550f91('0x3fd')}];for(let _0x8a7f88=0x0;_0x8a7f88<_0x26caa1[_0x550f91('0x11fc')][_0x550f91('0x25be')][_0x550f91('0x2566')];_0x8a7f88++){_0x1951e4[_0x550f91('0x5e8')]({'title':_0x26caa1['data'][_0x550f91('0x25be')][_0x8a7f88][_0x550f91('0x1d7')],'msg':_0x26caa1[_0x550f91('0x11fc')][_0x550f91('0x25be')][_0x8a7f88][_0x550f91('0x15e2')]});}}else _0x1951e4['error']({'title':_0x26caa1[_0x550f91('0x1b51')]?_0x550f91('0x15d1')+_0x26caa1[_0x550f91('0x1b51')]+'\x20-\x20'+_0x26caa1[_0x550f91('0x22ce')]:'api.intZendeskConfiguration.update','msg':_0x26caa1['data']?JSON[_0x550f91('0x1be0')](_0x26caa1[_0x550f91('0x11fc')]['message']):_0x26caa1[_0x550f91('0x17df')]()});});}function _0x1d2935(_0xbb89ec){const _0x269233=_0x47e1c7;_0x2f3057[_0x269233('0x25be')]=[];const _0x12ed2c=_0x316ebd[_0x269233('0x112e')]()[_0x269233('0x14e4')]('Are\x20you\x20sure?')[_0x269233('0x1c98')](_0x269233('0x86'))[_0x269233('0x10bc')]('Delete\x20ZendeskConfiguration')['ok'](_0x269233('0x2786'))[_0x269233('0x1801')](_0x269233('0x1481'))['targetEvent'](_0xbb89ec);_0x316ebd[_0x269233('0x2fa')](_0x12ed2c)['then'](function(){const _0x5a26cb=_0x269233;_0x4013cd['intZendeskConfiguration'][_0x5a26cb('0x17c4')]({'id':_0x2f3057[_0x5a26cb('0x1ffe')]['id']})['$promise'][_0x5a26cb('0x2788')](function(){const _0x129bd1=_0x5a26cb;_0x283545()['remove'](_0x2f3057[_0x129bd1('0x1fd2')],{'id':_0x2f3057['zendeskConfiguration']['id']}),_0x1951e4[_0x129bd1('0x173b')]({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0x2f3057['zendeskConfiguration'][_0x129bd1('0x1a8d')]||_0x129bd1('0x1ffe'))+_0x129bd1('0x14d4')}),_0x4ab4a0(_0x2f3057[_0x129bd1('0x1ffe')]);})[_0x5a26cb('0x1cb5')](function(_0x2d1be2){const _0x47988b=_0x5a26cb;if(_0x2d1be2[_0x47988b('0x11fc')]&&_0x2d1be2[_0x47988b('0x11fc')][_0x47988b('0x25be')]&&_0x2d1be2[_0x47988b('0x11fc')][_0x47988b('0x25be')]['length']){_0x2f3057[_0x47988b('0x25be')]=_0x2d1be2['data'][_0x47988b('0x25be')]||[{'message':_0x2d1be2['toString'](),'type':_0x47988b('0xd44')}];for(let _0x1fd721=0x0;_0x1fd721<_0x2d1be2['data']['errors'][_0x47988b('0x2566')];_0x1fd721++){_0x1951e4[_0x47988b('0x5e8')]({'title':_0x2d1be2[_0x47988b('0x11fc')][_0x47988b('0x25be')][_0x1fd721][_0x47988b('0x1d7')],'msg':_0x2d1be2[_0x47988b('0x11fc')][_0x47988b('0x25be')][_0x1fd721][_0x47988b('0x15e2')]});}}else _0x1951e4[_0x47988b('0x5e8')]({'title':_0x2d1be2[_0x47988b('0x1b51')]?_0x47988b('0x15d1')+_0x2d1be2['status']+_0x47988b('0x1b0b')+_0x2d1be2[_0x47988b('0x22ce')]:_0x47988b('0xd44'),'msg':_0x2d1be2['data']?JSON[_0x47988b('0x1be0')](_0x2d1be2[_0x47988b('0x11fc')][_0x47988b('0x15e2')]):_0x2d1be2['message']||_0x2d1be2[_0x47988b('0x17df')]()});});},function(){});}function _0x24bd0f(_0xc5d2a0){return _0xc5d2a0===null?undefined:new Date(_0xc5d2a0);}function _0x4ab4a0(_0x514801){const _0x5db7c5=_0x47e1c7;_0x316ebd[_0x5db7c5('0x19d')](_0x514801);}}const _0x204609=_0x435b24,_0x1aa550=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html';_0x3d2f74[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x21cf'),'userProfile','userProfileSection',_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x3d2f74(_0x3cef7a,_0x21919c,_0x57f2dd,_0x596f19,_0x3044e8,_0x591254,_0x4dd440,_0x2ed314,_0x480639,_0x38710c,_0x1d0317,_0x5dcc6e,_0x4004ca,_0x3a09db,_0x234d12,_0x3811ca,_0x3f9f5e){const _0x4d1155=_0x34e79e,_0x4cde0f=this;_0x4cde0f[_0x4d1155('0x130d')]=_0x3811ca,_0x4cde0f[_0x4d1155('0x1af0')]=_0x3f9f5e,_0x4cde0f[_0x4d1155('0x9cb')]=_0x234d12['getCurrentUser'](),_0x4cde0f[_0x4d1155('0x21cf')]=_0x480639||{'count':0x0,'rows':[]},_0x4cde0f[_0x4d1155('0x63c')]=_0x38710c,_0x4cde0f[_0x4d1155('0xec9')]=_0x1d0317&&_0x1d0317[_0x4d1155('0x338')]==0x1?_0x1d0317['rows'][0x0]:null,_0x4cde0f[_0x4d1155('0xe28')]=_0x234d12[_0x4d1155('0x157e')](_0x4cde0f[_0x4d1155('0xec9')]?_0x4cde0f[_0x4d1155('0xec9')][_0x4d1155('0xe28')]:null),_0x4cde0f[_0x4d1155('0x26a9')]='zendeskAccounts',_0x4cde0f[_0x4d1155('0x2278')]='',_0x4cde0f[_0x4d1155('0x25e2')]=null,_0x4cde0f['selectedZendeskAccounts']=[],_0x4cde0f['query']={'fields':_0x4d1155('0x1ec0'),'limit':0xa,'page':0x1},_0x4cde0f[_0x4d1155('0x1221')]=_0x283545()[_0x4d1155('0x13cf')]([{'option':'Integration_Tab','value':_0x4d1155('0x1f5f')},{'option':_0x4d1155('0x113c'),'value':_0x4d1155('0x1b59')}],function(_0x2924d4){const _0x361159=_0x4d1155;return _0x283545()[_0x361159('0x10a4')](_0x2924d4[_0x361159('0x49')],new RegExp('\x27','g'),'');}),_0x4cde0f[_0x4d1155('0x1ad3')]=_0x283545()['keyBy']([{'option':_0x4d1155('0xabc'),'value':_0x4d1155('0x27d9')},{'option':_0x4d1155('0x37d'),'value':_0x4d1155('0x376')}],function(_0x1dcab8){const _0x3e2e00=_0x4d1155;return _0x283545()['replace'](_0x1dcab8[_0x3e2e00('0x49')],new RegExp('\x27','g'),'');}),_0x4cde0f['editstate']=_0x3f5872,_0x4cde0f[_0x4d1155('0x1f2f')]=_0x510375,_0x4cde0f[_0x4d1155('0x1e5')]=_0x1a66b1,_0x4cde0f[_0x4d1155('0x173b')]=_0x5b4010,_0x4cde0f['getZendeskAccounts']=_0x2d14a8,_0x4cde0f[_0x4d1155('0xc8a')]=_0x180707,_0x4cde0f[_0x4d1155('0x2683')]=_0x33b602,_0x4cde0f[_0x4d1155('0x20d6')]=_0x4c8cc1,_0x4cde0f[_0x4d1155('0x4ca')]=_0x2b8581,_0x4cde0f[_0x4d1155('0x17fd')]=_0xd23d69,_0x4cde0f[_0x4d1155('0x2187')]=_0xcb7cc6;function _0x3f5872(_0x2f2580){const _0x5e9cf2=_0x4d1155;_0x57f2dd['go'](_0x5e9cf2('0x1b17'),{'id':_0x2f2580['id'],'zendeskAccount':_0x2f2580,'crudPermissions':_0x4cde0f[_0x5e9cf2('0xe28')]});}function _0x510375(_0x16d000){const _0xe6918=_0x4d1155;return _0x5dcc6e[_0xe6918('0x26ef')]['getFields']({'id':_0x16d000['id'],'test':!![]})[_0xe6918('0x1714')][_0xe6918('0x2788')](function(){const _0x42e835=_0xe6918;_0x3a09db[_0x42e835('0x173b')]({'title':_0x42e835('0x13bd'),'msg':_0x42e835('0x53e')});})[_0xe6918('0x1cb5')](function(_0x1de475){const _0x423df8=_0xe6918;_0x3a09db[_0x423df8('0x5e8')]({'title':_0x423df8('0x13bd'),'msg':_0x1de475['data']?_0x1de475['data'][_0x423df8('0x15e2')]?_0x1de475[_0x423df8('0x11fc')][_0x423df8('0x15e2')]:JSON[_0x423df8('0x1be0')](_0x1de475['data']):_0x1de475[_0x423df8('0x17df')]()});});}function _0x1a66b1(_0x3765f4,_0xf5f62c){const _0x6f13d9=_0x4d1155,_0xb8ebab=_0x3044e8['confirm']()['title'](_0x6f13d9('0x2114')+_0x283545()[_0x6f13d9('0x114')](_0x6f13d9('0x253f'))+'?')['htmlContent'](_0x6f13d9('0x1670')+(_0x3765f4[_0x6f13d9('0x1a8d')]||_0x6f13d9('0x253f'))+_0x6f13d9('0x229e')+_0x6f13d9('0x27c7'))[_0x6f13d9('0x10bc')](_0x6f13d9('0x2331'))[_0x6f13d9('0x24d0')](_0xf5f62c)['ok']('OK')[_0x6f13d9('0x1801')]('CANCEL');_0x3044e8[_0x6f13d9('0x2fa')](_0xb8ebab)['then'](function(){_0x33b602(_0x3765f4);},function(){const _0x3c87ef=_0x6f13d9;console['log'](_0x3c87ef('0x1d8d'));});}let _0xc826f3=!![],_0x53e51f=0x1;_0x3cef7a[_0x4d1155('0x1662')](_0x4d1155('0x1569'),function(_0x17fc2f,_0x1345ba){const _0x2d4707=_0x4d1155;_0xc826f3?_0x4dd440(function(){_0xc826f3=![];}):(!_0x1345ba&&(_0x53e51f=_0x4cde0f['query']['page']),_0x17fc2f!==_0x1345ba&&(_0x4cde0f['query'][_0x2d4707('0x23f5')]=0x1),!_0x17fc2f&&(_0x4cde0f[_0x2d4707('0x135a')][_0x2d4707('0x23f5')]=_0x53e51f),_0x4cde0f[_0x2d4707('0x1529')]());});function _0x5b4010(_0x56b06a){const _0x40128a=_0x4d1155;_0x4cde0f[_0x40128a('0x21cf')]=_0x56b06a||{'count':0x0,'rows':[]};}function _0x2d14a8(){const _0xd80888=_0x4d1155;_0x4cde0f[_0xd80888('0x135a')][_0xd80888('0x19e')]=(_0x4cde0f[_0xd80888('0x135a')]['page']-0x1)*_0x4cde0f[_0xd80888('0x135a')][_0xd80888('0x68e')],_0x234d12['hasRole'](_0xd80888('0xe23'))?_0x4cde0f['promise']=_0x5dcc6e['intZendeskAccount'][_0xd80888('0x1335')](_0x4cde0f[_0xd80888('0x135a')],_0x5b4010)[_0xd80888('0x1714')]:(_0x4cde0f[_0xd80888('0x135a')]['id']=_0x4cde0f[_0xd80888('0x63c')]['id'],_0x4cde0f[_0xd80888('0x135a')]['section']=_0xd80888('0x11dc'),_0x4cde0f[_0xd80888('0x1808')]=_0x5dcc6e[_0xd80888('0x63c')][_0xd80888('0xa1')](_0x4cde0f[_0xd80888('0x135a')],_0x5b4010)[_0xd80888('0x1714')]);}function _0x180707(_0x35df6f,_0x3e216d){const _0x23a7e9=_0x4d1155;_0x3044e8['show']({'controller':_0x23a7e9('0xd4b'),'controllerAs':'vm','templateUrl':_0x1aa550,'parent':angular[_0x23a7e9('0x16b1')](_0x591254['body']),'targetEvent':_0x35df6f,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x3e216d,'zendeskAccounts':_0x4cde0f[_0x23a7e9('0x21cf')][_0x23a7e9('0x25df')],'license':_0x4cde0f[_0x23a7e9('0x130d')],'setting':_0x4cde0f[_0x23a7e9('0x1af0')],'crudPermissions':_0x4cde0f['crudPermissions']}});}function _0x33b602(_0x50c1a3){const _0x7b69b1=_0x4d1155;_0x5dcc6e[_0x7b69b1('0x26ef')][_0x7b69b1('0x17c4')]({'id':_0x50c1a3['id']})[_0x7b69b1('0x1714')][_0x7b69b1('0x2788')](function(){const _0x1d0120=_0x7b69b1;_0x283545()[_0x1d0120('0x1a90')](_0x4cde0f[_0x1d0120('0x21cf')]['rows'],{'id':_0x50c1a3['id']}),_0x4cde0f[_0x1d0120('0x21cf')][_0x1d0120('0x338')]-=0x1,!_0x4cde0f['zendeskAccounts'][_0x1d0120('0x25df')]['length']&&_0x4cde0f[_0x1d0120('0x1529')](),_0x3a09db[_0x1d0120('0x173b')]({'title':_0x283545()[_0x1d0120('0x114')](_0x1d0120('0x1119'))+_0x1d0120('0x20db'),'msg':_0x50c1a3[_0x1d0120('0x1a8d')]?_0x50c1a3[_0x1d0120('0x1a8d')]+_0x1d0120('0x14d4'):''});})[_0x7b69b1('0x1cb5')](function(_0x24a24b){const _0x3ef7a2=_0x7b69b1;if(_0x24a24b['data']&&_0x24a24b[_0x3ef7a2('0x11fc')][_0x3ef7a2('0x25be')]&&_0x24a24b['data'][_0x3ef7a2('0x25be')][_0x3ef7a2('0x2566')]){_0x4cde0f['errors']=_0x24a24b['data']['errors']||[{'message':_0x24a24b[_0x3ef7a2('0x17df')](),'type':_0x3ef7a2('0x21ad')}];for(let _0x385583=0x0;_0x385583<_0x24a24b[_0x3ef7a2('0x11fc')][_0x3ef7a2('0x25be')][_0x3ef7a2('0x2566')];_0x385583++){_0x3a09db[_0x3ef7a2('0x5e8')]({'title':_0x24a24b[_0x3ef7a2('0x11fc')][_0x3ef7a2('0x25be')][_0x385583][_0x3ef7a2('0x1d7')],'msg':_0x24a24b['data']['errors'][_0x385583][_0x3ef7a2('0x15e2')]});}}else _0x3a09db[_0x3ef7a2('0x5e8')]({'title':_0x24a24b[_0x3ef7a2('0x1b51')]?_0x3ef7a2('0x15d1')+_0x24a24b['status']+_0x3ef7a2('0x1b0b')+_0x24a24b[_0x3ef7a2('0x22ce')]:_0x3ef7a2('0x21ad'),'msg':_0x24a24b[_0x3ef7a2('0x11fc')]?JSON['stringify'](_0x24a24b[_0x3ef7a2('0x11fc')][_0x3ef7a2('0x15e2')]):_0x24a24b[_0x3ef7a2('0x15e2')]||_0x24a24b[_0x3ef7a2('0x17df')]()});});}function _0x4c8cc1(){const _0x44ae57=_0x4d1155,_0x56f51a=angular[_0x44ae57('0x2669')](_0x4cde0f['selectedZendeskAccounts']);return _0x4cde0f[_0x44ae57('0x2c4')]=[],_0x56f51a;}function _0x2b8581(_0x1569d6){const _0x280266=_0x4d1155,_0x50da68=_0x3044e8[_0x280266('0x112e')]()[_0x280266('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?')[_0x280266('0x93e')](_0x280266('0x1670')+_0x4cde0f[_0x280266('0x2c4')][_0x280266('0x2566')]+_0x280266('0xbd')+_0x280266('0x27c7'))['ariaLabel'](_0x280266('0x2766'))[_0x280266('0x24d0')](_0x1569d6)['ok']('OK')['cancel']('CANCEL');_0x3044e8[_0x280266('0x2fa')](_0x50da68)[_0x280266('0x2788')](function(){const _0x3a164f=_0x280266;_0x4cde0f[_0x3a164f('0x2c4')][_0x3a164f('0x1534')](function(_0x5d5ecf){_0x33b602(_0x5d5ecf);}),_0x4cde0f['selectedZendeskAccounts']=[];});}function _0xd23d69(){const _0xd81b66=_0x4d1155;_0x4cde0f[_0xd81b66('0x2c4')]=[];}function _0xcb7cc6(){const _0x4797b9=_0x4d1155;_0x4cde0f[_0x4797b9('0x2c4')]=_0x4cde0f[_0x4797b9('0x21cf')][_0x4797b9('0x25df')];}}const _0x2965b2=_0x3d2f74;_0x22d5b9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1449'),_0x34e79e('0x830'),'api','Auth','license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x22d5b9(_0x1a596c,_0x2ade45,_0x2aeb69,_0x50cdb2,_0x24a195,_0x501295,_0x7d8175,_0x555bfe,_0x44517e,_0x32d840,_0x10936d,_0x2f4367,_0x16103d,_0x2065f4){const _0x2897c0=_0x34e79e,_0x519b96=this;_0x519b96[_0x2897c0('0x9cb')]=_0x10936d[_0x2897c0('0x24cc')](),_0x519b96[_0x2897c0('0x25be')]=[],_0x519b96[_0x2897c0('0x1af0')]=_0x16103d,_0x519b96['license']=_0x2f4367,_0x519b96['crudPermissions']=_0x2065f4,_0x519b96[_0x2897c0('0x1193')]={},_0x519b96[_0x2897c0('0x18ad')]=_0x519b96[_0x2897c0('0x1af0')]&&_0x519b96[_0x2897c0('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x519b96[_0x2897c0('0x14e4')]=_0x2897c0('0xec3'),_0x519b96['zohoAccount']=angular[_0x2897c0('0x2669')](_0x44517e),_0x519b96[_0x2897c0('0x1449')]=_0x555bfe,_0x519b96[_0x2897c0('0x226c')]=![];!_0x519b96['zohoAccount']&&(_0x519b96[_0x2897c0('0x830')]={'host':'zoho.com','zone':'EU','serverUrl':_0x2aeb69[_0x2897c0('0x170c')]()+_0x2897c0('0x726')+_0x2aeb69[_0x2897c0('0x1c6a')]()+(_0x2aeb69[_0x2897c0('0x1fee')]()?':'+_0x2aeb69[_0x2897c0('0x1fee')]():'')},_0x519b96['title']=_0x2897c0('0x6e6'),_0x519b96[_0x2897c0('0x226c')]=!![]);_0x519b96[_0x2897c0('0x52b')]=_0x3496de,_0x519b96[_0x2897c0('0x25f7')]=_0x3f4b29,_0x519b96['deleteZohoAccount']=_0x3c07e7,_0x519b96[_0x2897c0('0x2601')]=_0x32991c,_0x519b96[_0x2897c0('0xca7')]=_0x20c9b9;function _0x3496de(){const _0x101624=_0x2897c0;_0x519b96[_0x101624('0x25be')]=[],_0x32d840[_0x101624('0x271')][_0x101624('0xbd0')](_0x519b96[_0x101624('0x830')])[_0x101624('0x1714')][_0x101624('0x2788')](function(_0x38743d){const _0x2b904a=_0x101624;_0x519b96[_0x2b904a('0x1449')][_0x2b904a('0xc51')](_0x38743d[_0x2b904a('0x1cbf')]()),_0x7d8175[_0x2b904a('0x173b')]({'title':'ZohoAccount\x20properly\x20created','msg':_0x519b96[_0x2b904a('0x830')][_0x2b904a('0x1a8d')]?_0x519b96[_0x2b904a('0x830')][_0x2b904a('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x20c9b9(_0x38743d);})[_0x101624('0x1cb5')](function(_0x2462b7){const _0x5eaa4f=_0x101624;if(_0x2462b7[_0x5eaa4f('0x11fc')]&&_0x2462b7['data'][_0x5eaa4f('0x25be')]&&_0x2462b7[_0x5eaa4f('0x11fc')][_0x5eaa4f('0x25be')]['length']){_0x519b96['errors']=_0x2462b7[_0x5eaa4f('0x11fc')]['errors']||[{'message':_0x2462b7['toString'](),'type':_0x5eaa4f('0x208c')}];for(let _0x12a27b=0x0;_0x12a27b<_0x2462b7[_0x5eaa4f('0x11fc')]['errors'][_0x5eaa4f('0x2566')];_0x12a27b+=0x1){_0x7d8175[_0x5eaa4f('0x5e8')]({'title':_0x2462b7[_0x5eaa4f('0x11fc')][_0x5eaa4f('0x25be')][_0x12a27b][_0x5eaa4f('0x1d7')],'msg':_0x2462b7[_0x5eaa4f('0x11fc')][_0x5eaa4f('0x25be')][_0x12a27b][_0x5eaa4f('0x15e2')]});}}else _0x7d8175[_0x5eaa4f('0x5e8')]({'title':_0x2462b7[_0x5eaa4f('0x1b51')]?_0x5eaa4f('0x15d1')+_0x2462b7['status']+_0x5eaa4f('0x1b0b')+_0x2462b7['statusText']:_0x5eaa4f('0x208c'),'msg':_0x2462b7['data']?JSON[_0x5eaa4f('0x1be0')](_0x2462b7[_0x5eaa4f('0x11fc')][_0x5eaa4f('0x15e2')]):_0x2462b7[_0x5eaa4f('0x17df')]()});});}function _0x3f4b29(){const _0x2e24bd=_0x2897c0;_0x519b96['errors']=[],_0x32d840['intZohoAccount'][_0x2e24bd('0x2740')]({'id':_0x519b96['zohoAccount']['id']},_0x519b96[_0x2e24bd('0x830')])['$promise'][_0x2e24bd('0x2788')](function(_0x449141){const _0x3059ee=_0x2e24bd,_0x517521=_0x283545()[_0x3059ee('0x20e8')](_0x519b96['zohoAccounts'],{'id':_0x449141['id']});_0x517521&&_0x283545()[_0x3059ee('0x2503')](_0x517521,_0x283545()['pick'](_0x449141[_0x3059ee('0x1cbf')](),_0x283545()['keys'](_0x517521))),_0x7d8175[_0x3059ee('0x173b')]({'title':_0x3059ee('0x1dd9'),'msg':_0x519b96[_0x3059ee('0x830')][_0x3059ee('0x1a8d')]?_0x519b96[_0x3059ee('0x830')][_0x3059ee('0x1a8d')]+_0x3059ee('0x24cf'):''}),_0x20c9b9(_0x449141);})[_0x2e24bd('0x1cb5')](function(_0x24052a){const _0x28e13b=_0x2e24bd;if(_0x24052a[_0x28e13b('0x11fc')]&&_0x24052a[_0x28e13b('0x11fc')]['errors']&&_0x24052a[_0x28e13b('0x11fc')][_0x28e13b('0x25be')][_0x28e13b('0x2566')]){_0x519b96[_0x28e13b('0x25be')]=_0x24052a[_0x28e13b('0x11fc')][_0x28e13b('0x25be')]||[{'message':_0x24052a[_0x28e13b('0x17df')](),'type':_0x28e13b('0xa17')}];for(let _0x2a3815=0x0;_0x2a3815<_0x24052a['data'][_0x28e13b('0x25be')][_0x28e13b('0x2566')];_0x2a3815++){_0x7d8175[_0x28e13b('0x5e8')]({'title':_0x24052a[_0x28e13b('0x11fc')][_0x28e13b('0x25be')][_0x2a3815]['type'],'msg':_0x24052a['data']['errors'][_0x2a3815][_0x28e13b('0x15e2')]});}}else _0x7d8175['error']({'title':_0x24052a['status']?'API:'+_0x24052a[_0x28e13b('0x1b51')]+_0x28e13b('0x1b0b')+_0x24052a['statusText']:'api.intZohoAccount.update','msg':_0x24052a['data']?JSON[_0x28e13b('0x1be0')](_0x24052a[_0x28e13b('0x11fc')][_0x28e13b('0x15e2')]):_0x24052a[_0x28e13b('0x17df')]()});});}function _0x3c07e7(_0x1d13cd){const _0xb5f2e=_0x2897c0;_0x519b96[_0xb5f2e('0x25be')]=[];const _0x563b59=_0x50cdb2['confirm']()['title']('Are\x20you\x20sure?')['content'](_0xb5f2e('0x6ed'))[_0xb5f2e('0x10bc')]('Delete\x20ZohoAccount')['ok'](_0xb5f2e('0x2786'))[_0xb5f2e('0x1801')](_0xb5f2e('0x1481'))['targetEvent'](_0x1d13cd);_0x50cdb2[_0xb5f2e('0x2fa')](_0x563b59)[_0xb5f2e('0x2788')](function(){const _0x5ba80b=_0xb5f2e;_0x32d840[_0x5ba80b('0x271')][_0x5ba80b('0x17c4')]({'id':_0x519b96[_0x5ba80b('0x830')]['id']})['$promise'][_0x5ba80b('0x2788')](function(){const _0x385baa=_0x5ba80b;_0x283545()[_0x385baa('0x1a90')](_0x519b96['zohoAccounts'],{'id':_0x519b96['zohoAccount']['id']}),_0x7d8175[_0x385baa('0x173b')]({'title':'ZohoAccount\x20properly\x20deleted!','msg':(_0x519b96[_0x385baa('0x830')][_0x385baa('0x1a8d')]||_0x385baa('0x830'))+_0x385baa('0x14d4')}),_0x20c9b9(_0x519b96[_0x385baa('0x830')]);})[_0x5ba80b('0x1cb5')](function(_0x3c9aa2){const _0x1e6c87=_0x5ba80b;if(_0x3c9aa2[_0x1e6c87('0x11fc')]&&_0x3c9aa2[_0x1e6c87('0x11fc')][_0x1e6c87('0x25be')]&&_0x3c9aa2[_0x1e6c87('0x11fc')][_0x1e6c87('0x25be')][_0x1e6c87('0x2566')]){_0x519b96[_0x1e6c87('0x25be')]=_0x3c9aa2['data'][_0x1e6c87('0x25be')]||[{'message':_0x3c9aa2[_0x1e6c87('0x17df')](),'type':_0x1e6c87('0x29c')}];for(let _0x38091d=0x0;_0x38091d<_0x3c9aa2[_0x1e6c87('0x11fc')][_0x1e6c87('0x25be')][_0x1e6c87('0x2566')];_0x38091d++){_0x7d8175[_0x1e6c87('0x5e8')]({'title':_0x3c9aa2[_0x1e6c87('0x11fc')]['errors'][_0x38091d][_0x1e6c87('0x1d7')],'msg':_0x3c9aa2[_0x1e6c87('0x11fc')][_0x1e6c87('0x25be')][_0x38091d][_0x1e6c87('0x15e2')]});}}else _0x7d8175[_0x1e6c87('0x5e8')]({'title':_0x3c9aa2[_0x1e6c87('0x1b51')]?_0x1e6c87('0x15d1')+_0x3c9aa2[_0x1e6c87('0x1b51')]+_0x1e6c87('0x1b0b')+_0x3c9aa2['statusText']:_0x1e6c87('0x29c'),'msg':_0x3c9aa2[_0x1e6c87('0x11fc')]?JSON[_0x1e6c87('0x1be0')](_0x3c9aa2[_0x1e6c87('0x11fc')][_0x1e6c87('0x15e2')]):_0x3c9aa2[_0x1e6c87('0x15e2')]||_0x3c9aa2[_0x1e6c87('0x17df')]()});});},function(){});}function _0x32991c(_0x24176b){return _0x24176b===null?undefined:new Date(_0x24176b);}function _0x20c9b9(_0x3055e5){const _0x177ce7=_0x2897c0;_0x50cdb2[_0x177ce7('0x19d')](_0x3055e5);}}const _0x56af04=_0x22d5b9,_0x20b932=_0x18dd13['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html',_0x4b5994=_0x18dd13['p']+_0x34e79e('0xe09');_0x5ba908[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x1580'),'api','toasty',_0x34e79e('0x1b04')];function _0x5ba908(_0x554642,_0x285399,_0x1e598d,_0x227620,_0xcb022e){const _0x4d48d5=_0x34e79e,_0x231271=this;_0x231271['currentUser']=_0xcb022e['getCurrentUser'](),_0x231271[_0x4d48d5('0x830')]={},_0x231271['zohoConfiguration']={},_0x231271[_0x4d48d5('0x1b77')]=[],_0x231271[_0x4d48d5('0x688')]=-0x1,_0x231271[_0x4d48d5('0xe28')],_0x231271[_0x4d48d5('0x24eb')]=_0x1cb907,_0x231271[_0x4d48d5('0x151d')]=_0x341c0a,_0x231271[_0x4d48d5('0x207e')]=_0x4d1c38,_0x231271[_0x4d48d5('0x398')]=_0xc5fa57,_0x231271[_0x4d48d5('0x1fc')]=_0xe2440c;function _0xe2440c(){const _0x54f7e8=_0x4d48d5;return _0x1e598d['intZohoConfiguration'][_0x54f7e8('0x2740')]({'id':_0x231271[_0x54f7e8('0xd0b')]['id']},_0x231271[_0x54f7e8('0xd0b')])[_0x54f7e8('0x1714')][_0x54f7e8('0x2788')](function(){const _0x414d23=_0x54f7e8;_0x227620[_0x414d23('0x173b')]({'title':_0x414d23('0x177e'),'msg':_0x414d23('0x19a4')});})[_0x54f7e8('0x1cb5')](function(_0x38fdfb){const _0x4fb528=_0x54f7e8;_0x227620[_0x4fb528('0x5e8')]({'title':_0x38fdfb[_0x4fb528('0x1b51')]?_0x4fb528('0x15d1')+_0x38fdfb[_0x4fb528('0x1b51')]+_0x4fb528('0x1b0b')+_0x38fdfb[_0x4fb528('0x22ce')]:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0x38fdfb[_0x4fb528('0x11fc')]?JSON[_0x4fb528('0x1be0')](_0x38fdfb[_0x4fb528('0x11fc')]):_0x38fdfb[_0x4fb528('0x17df')]()});});}function _0x1cb907(_0x3249c1,_0x5e4ddc){const _0x50c150=_0x4d48d5;_0x231271[_0x50c150('0x830')]=_0x3249c1,_0x231271['crudPermissions']=typeof _0x5e4ddc!=='undefined'?_0x5e4ddc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1e598d[_0x50c150('0x271')][_0x50c150('0x1168')]({'id':_0x231271[_0x50c150('0x830')]['id'],'sort':_0x50c150('0x1cee')})[_0x50c150('0x1714')]['then'](function(_0x4ba94c){const _0x58708e=_0x50c150;return _0x231271[_0x58708e('0x1b77')]=_0x4ba94c['rows']?_0x4ba94c[_0x58708e('0x25df')]:[],_0x231271[_0x58708e('0x1b77')][_0x58708e('0x2566')]&&_0x231271[_0x58708e('0x151d')](0x0),_0x1e598d[_0x58708e('0xa72')][_0x58708e('0x1335')]({'nolimit':!![],'sort':_0x58708e('0x1a8d')})[_0x58708e('0x1714')];})[_0x50c150('0x2788')](function(_0x198319){const _0x9a75b=_0x50c150;_0x231271[_0x9a75b('0xf76')]=_0x198319[_0x9a75b('0x25df')]?_0x198319[_0x9a75b('0x25df')]:[],_0x231271[_0x9a75b('0xdd1')]=_0x283545()[_0x9a75b('0x13cf')](_0x231271[_0x9a75b('0xf76')],'id');})['catch'](function(_0x9e1409){const _0x485479=_0x50c150;_0x227620['error']({'title':_0x9e1409[_0x485479('0x1b51')]?_0x485479('0x15d1')+_0x9e1409['status']+_0x485479('0x1b0b')+_0x9e1409[_0x485479('0x22ce')]:_0x485479('0x24e'),'msg':_0x9e1409[_0x485479('0x11fc')]?JSON[_0x485479('0x1be0')](_0x9e1409[_0x485479('0x11fc')]):_0x9e1409['toString']()});});}function _0x341c0a(_0xa6519c){const _0x3b7d2c=_0x4d48d5;_0x231271[_0x3b7d2c('0xd0b')]=_0x231271[_0x3b7d2c('0x1b77')][_0xa6519c],_0x231271[_0x3b7d2c('0x688')]=_0xa6519c,_0x1e598d[_0x3b7d2c('0xe10')]['getSubjects']({'id':_0x231271[_0x3b7d2c('0xd0b')]['id']})[_0x3b7d2c('0x1714')][_0x3b7d2c('0x2788')](function(_0x3746b6){const _0x2087a1=_0x3b7d2c;return _0x231271[_0x2087a1('0x348')]=_0x3746b6[_0x2087a1('0x25df')]?_0x3746b6['rows']:[],_0x1e598d[_0x2087a1('0xe10')][_0x2087a1('0x221a')]({'id':_0x231271[_0x2087a1('0xd0b')]['id']})[_0x2087a1('0x1714')];})[_0x3b7d2c('0x2788')](function(_0x2ff738){const _0x41e285=_0x3b7d2c;return _0x231271[_0x41e285('0x1942')]=_0x2ff738[_0x41e285('0x25df')]?_0x2ff738[_0x41e285('0x25df')]:[],_0x1e598d[_0x41e285('0xe10')][_0x41e285('0x24')]({'id':_0x231271['zohoConfiguration']['id']})[_0x41e285('0x1714')];})[_0x3b7d2c('0x2788')](function(_0x31fd25){const _0x39d842=_0x3b7d2c;_0x231271[_0x39d842('0x1578')]=_0x31fd25['rows']?_0x31fd25[_0x39d842('0x25df')]:[];})[_0x3b7d2c('0x1cb5')](function(_0x5d180d){const _0x3f0b46=_0x3b7d2c;_0x227620[_0x3f0b46('0x5e8')]({'title':_0x5d180d[_0x3f0b46('0x1b51')]?_0x3f0b46('0x15d1')+_0x5d180d['status']+_0x3f0b46('0x1b0b')+_0x5d180d[_0x3f0b46('0x22ce')]:_0x3f0b46('0x616'),'msg':_0x5d180d[_0x3f0b46('0x11fc')]?JSON['stringify'](_0x5d180d['data']):_0x5d180d[_0x3f0b46('0x17df')]()});});}function _0x4d1c38(_0x32a16e,_0x23c688){const _0xad0e60=_0x4d48d5;_0x554642[_0xad0e60('0x2fa')]({'controller':'CreateOrEditZohoConfigurationDialogController','controllerAs':'vm','templateUrl':_0x20b932,'parent':angular[_0xad0e60('0x16b1')](_0x285399['body']),'targetEvent':_0x32a16e,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x23c688,'configurations':_0x231271[_0xad0e60('0x1b77')],'license':null,'setting':null,'crudPermissions':_0x231271['crudPermissions']}})[_0xad0e60('0x1ed8')](function(){const _0x250cfa=_0xad0e60;_0x231271[_0x250cfa('0x151d')](0x0);});}function _0xc5fa57(_0x1b2756,_0x48b119){const _0x21cba0=_0x4d48d5,_0x557ae5=_0x554642['confirm']()[_0x21cba0('0x14e4')](_0x21cba0('0x5e9'))[_0x21cba0('0x93e')](''+(_0x48b119[_0x21cba0('0x1a8d')]||_0x21cba0('0xd0b'))+_0x21cba0('0x229e')+_0x21cba0('0x27c7'))[_0x21cba0('0x10bc')]('delete\x20zohoConfiguration')[_0x21cba0('0x24d0')](_0x1b2756)['ok']('OK')[_0x21cba0('0x1801')](_0x21cba0('0x1d8d'));_0x554642[_0x21cba0('0x2fa')](_0x557ae5)[_0x21cba0('0x2788')](function(){const _0x2f6e8e=_0x21cba0;_0x1e598d['intZohoConfiguration'][_0x2f6e8e('0x17c4')]({'id':_0x48b119['id']})[_0x2f6e8e('0x1714')]['then'](function(){const _0x50dfa2=_0x2f6e8e;_0x283545()[_0x50dfa2('0x1a90')](_0x231271[_0x50dfa2('0x1b77')],{'id':_0x48b119['id']}),_0x227620[_0x50dfa2('0x173b')]({'title':_0x50dfa2('0x27e8'),'msg':_0x48b119['name']?_0x48b119[_0x50dfa2('0x1a8d')]+_0x50dfa2('0x14d4'):''});})[_0x2f6e8e('0x1cb5')](function(_0x5f91d){const _0x39e26b=_0x2f6e8e;_0x227620['error']({'title':_0x5f91d[_0x39e26b('0x1b51')]?_0x39e26b('0x15d1')+_0x5f91d[_0x39e26b('0x1b51')]+_0x39e26b('0x1b0b')+_0x5f91d[_0x39e26b('0x22ce')]:'SYSTEM:DELETECONFIGURATION','msg':_0x5f91d['data']?JSON[_0x39e26b('0x1be0')](_0x5f91d[_0x39e26b('0x11fc')]):_0x5f91d['toString']()});})['finally'](function(){const _0x33e484=_0x2f6e8e;_0x231271[_0x33e484('0x151d')](0x0);});},function(){const _0x28d23=_0x21cba0;console[_0x28d23('0x10df')](_0x28d23('0x1d8d'));});}_0x231271[_0x4d48d5('0x2012')]=[],_0x231271[_0x4d48d5('0xe3e')]=_0x2e8bdc,_0x231271[_0x4d48d5('0x13b')]=_0x2a5d5e,_0x231271['deleteSelectedSubjects']=_0x5555e7;function _0x2e8bdc(_0x193617,_0x146390){const _0x57fd0d=_0x4d48d5;_0x554642['show']({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4b5994,'parent':angular['element'](_0x285399['body']),'targetEvent':_0x193617,'clickOutsideToClose':!![],'locals':{'type':_0x57fd0d('0x248f'),'item':_0x146390,'items':_0x231271[_0x57fd0d('0x348')],'configuration':_0x231271[_0x57fd0d('0xd0b')],'account':_0x231271[_0x57fd0d('0x830')],'license':null,'setting':null,'crudPermissions':_0x231271['crudPermissions']}});}function _0x1682d3(_0xae4325){const _0x3dac11=_0x4d48d5;_0x1e598d[_0x3dac11('0xef7')][_0x3dac11('0x17c4')]({'id':_0xae4325['id']})[_0x3dac11('0x1714')][_0x3dac11('0x2788')](function(){const _0xa20875=_0x3dac11;_0x283545()[_0xa20875('0x1a90')](_0x231271[_0xa20875('0x348')],{'id':_0xae4325['id']}),_0x227620[_0xa20875('0x173b')]({'title':'Subject\x20deleted!','msg':_0xa20875('0xb6c')});})[_0x3dac11('0x1cb5')](function(_0x455d09){const _0x19852c=_0x3dac11;_0x227620['error']({'title':_0x455d09['status']?_0x19852c('0x15d1')+_0x455d09[_0x19852c('0x1b51')]+_0x19852c('0x1b0b')+_0x455d09[_0x19852c('0x22ce')]:_0x19852c('0x2803'),'msg':_0x455d09[_0x19852c('0x11fc')]?JSON[_0x19852c('0x1be0')](_0x455d09[_0x19852c('0x11fc')]):_0x455d09['toString']()});});}function _0x2a5d5e(_0x360c89,_0x3e2158){const _0x10d03f=_0x4d48d5,_0x5ef9d7=_0x554642[_0x10d03f('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x10d03f('0x93e')](_0x10d03f('0xdc')+_0x10d03f('0x27c7'))['ariaLabel'](_0x10d03f('0x2126'))[_0x10d03f('0x24d0')](_0x360c89)['ok']('OK')[_0x10d03f('0x1801')]('CANCEL');_0x554642['show'](_0x5ef9d7)['then'](function(){_0x1682d3(_0x3e2158);},function(){const _0x53890b=_0x10d03f;console[_0x53890b('0x10df')](_0x53890b('0x1d8d'));});}function _0x5555e7(_0x5681ef){const _0x1b0ec7=_0x4d48d5,_0x3c0d7c=_0x554642[_0x1b0ec7('0x112e')]()[_0x1b0ec7('0x14e4')](_0x1b0ec7('0xa11'))[_0x1b0ec7('0x93e')](''+_0x231271[_0x1b0ec7('0x2012')][_0x1b0ec7('0x2566')]+_0x1b0ec7('0xbd')+_0x1b0ec7('0x27c7'))[_0x1b0ec7('0x10bc')](_0x1b0ec7('0x19b1'))['targetEvent'](_0x5681ef)['ok']('OK')[_0x1b0ec7('0x1801')](_0x1b0ec7('0x1d8d'));_0x554642[_0x1b0ec7('0x2fa')](_0x3c0d7c)[_0x1b0ec7('0x2788')](function(){const _0x12966e=_0x1b0ec7;_0x231271[_0x12966e('0x2012')][_0x12966e('0x1534')](function(_0x3d23be){_0x1682d3(_0x3d23be);}),_0x231271['selectedSubjects']=[];});}_0x231271[_0x4d48d5('0x58e')]=[],_0x231271[_0x4d48d5('0x820')]=_0x5eec03,_0x231271[_0x4d48d5('0x16ad')]=_0x1a8c2a,_0x231271[_0x4d48d5('0x16b5')]=_0x1439e0;function _0x5eec03(_0x493f22,_0x3e6f2e){const _0x53900c=_0x4d48d5;_0x554642[_0x53900c('0x2fa')]({'controller':_0x53900c('0x8b2'),'controllerAs':'vm','templateUrl':_0x4b5994,'parent':angular['element'](_0x285399['body']),'targetEvent':_0x493f22,'clickOutsideToClose':!![],'locals':{'type':_0x53900c('0x27b9'),'item':_0x3e6f2e,'items':_0x231271[_0x53900c('0x1942')],'configuration':_0x231271['zohoConfiguration'],'account':_0x231271[_0x53900c('0x830')],'license':null,'setting':null,'crudPermissions':_0x231271['crudPermissions']}});}function _0x3a2ee6(_0x27feee){const _0x45f8d1=_0x4d48d5;_0x1e598d[_0x45f8d1('0xef7')][_0x45f8d1('0x17c4')]({'id':_0x27feee['id']})['$promise'][_0x45f8d1('0x2788')](function(){const _0x451310=_0x45f8d1;_0x283545()[_0x451310('0x1a90')](_0x231271[_0x451310('0x1942')],{'id':_0x27feee['id']}),_0x227620[_0x451310('0x173b')]({'title':_0x451310('0x2598'),'msg':_0x451310('0x50')});})[_0x45f8d1('0x1cb5')](function(_0x1eee6f){const _0xa7bbac=_0x45f8d1;_0x227620['error']({'title':_0x1eee6f[_0xa7bbac('0x1b51')]?'API:'+_0x1eee6f['status']+_0xa7bbac('0x1b0b')+_0x1eee6f[_0xa7bbac('0x22ce')]:_0xa7bbac('0x2803'),'msg':_0x1eee6f['data']?JSON[_0xa7bbac('0x1be0')](_0x1eee6f[_0xa7bbac('0x11fc')]):_0x1eee6f[_0xa7bbac('0x17df')]()});});}function _0x1a8c2a(_0x1412d3,_0x2021f7){const _0x3de526=_0x4d48d5,_0x3c0d9b=_0x554642[_0x3de526('0x112e')]()[_0x3de526('0x14e4')](_0x3de526('0xc33'))['htmlContent'](_0x3de526('0x27b')+'\x20will\x20be\x20deleted.')[_0x3de526('0x10bc')](_0x3de526('0x6b7'))[_0x3de526('0x24d0')](_0x1412d3)['ok']('OK')[_0x3de526('0x1801')](_0x3de526('0x1d8d'));_0x554642[_0x3de526('0x2fa')](_0x3c0d9b)[_0x3de526('0x2788')](function(){_0x3a2ee6(_0x2021f7);},function(){const _0x2d585d=_0x3de526;console[_0x2d585d('0x10df')](_0x2d585d('0x1d8d'));});}function _0x1439e0(_0x1ada16){const _0x183d68=_0x4d48d5,_0x425284=_0x554642[_0x183d68('0x112e')]()[_0x183d68('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x183d68('0x93e')](_0x183d68('0x1670')+_0x231271[_0x183d68('0x58e')][_0x183d68('0x2566')]+'\x20selected'+_0x183d68('0x27c7'))[_0x183d68('0x10bc')](_0x183d68('0x1e33'))[_0x183d68('0x24d0')](_0x1ada16)['ok']('OK')[_0x183d68('0x1801')](_0x183d68('0x1d8d'));_0x554642[_0x183d68('0x2fa')](_0x425284)[_0x183d68('0x2788')](function(){const _0x6ddfc6=_0x183d68;_0x231271[_0x6ddfc6('0x58e')]['forEach'](function(_0x2a93c7){_0x3a2ee6(_0x2a93c7);}),_0x231271[_0x6ddfc6('0x58e')]=[];});}_0x231271[_0x4d48d5('0xcc9')]=[],_0x231271[_0x4d48d5('0x17d4')]=_0x1f50a1,_0x231271[_0x4d48d5('0x2386')]=_0x9fbc14,_0x231271[_0x4d48d5('0x262b')]=_0x23fece;function _0x1f50a1(_0x8f140a,_0x4c5a91){const _0x2018a4=_0x4d48d5;_0x554642['show']({'controller':_0x2018a4('0x8b2'),'controllerAs':'vm','templateUrl':_0x4b5994,'parent':angular[_0x2018a4('0x16b1')](_0x285399[_0x2018a4('0x945')]),'targetEvent':_0x8f140a,'clickOutsideToClose':!![],'locals':{'type':_0x2018a4('0x18da'),'item':_0x4c5a91,'items':_0x231271['fields'],'configuration':_0x231271[_0x2018a4('0xd0b')],'account':_0x231271['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x231271[_0x2018a4('0xe28')]}});}function _0x2cc915(_0x2994a7){const _0x85fee5=_0x4d48d5;_0x1e598d['intZohoField']['delete']({'id':_0x2994a7['id']})[_0x85fee5('0x1714')][_0x85fee5('0x2788')](function(){const _0x5b4830=_0x85fee5;_0x283545()[_0x5b4830('0x1a90')](_0x231271[_0x5b4830('0x1578')],{'id':_0x2994a7['id']}),_0x227620[_0x5b4830('0x173b')]({'title':_0x5b4830('0xb76'),'msg':_0x5b4830('0x1d92')});})['catch'](function(_0x5a2c99){const _0x274d58=_0x85fee5;_0x227620[_0x274d58('0x5e8')]({'title':_0x5a2c99[_0x274d58('0x1b51')]?'API:'+_0x5a2c99[_0x274d58('0x1b51')]+'\x20-\x20'+_0x5a2c99[_0x274d58('0x22ce')]:_0x274d58('0x2803'),'msg':_0x5a2c99[_0x274d58('0x11fc')]?JSON['stringify'](_0x5a2c99['data']):_0x5a2c99[_0x274d58('0x17df')]()});});}function _0x9fbc14(_0x5abb7f,_0x4e406b){const _0x372ee2=_0x4d48d5,_0x5c96cd=_0x554642[_0x372ee2('0x112e')]()[_0x372ee2('0x14e4')](_0x372ee2('0x21d'))[_0x372ee2('0x93e')](_0x372ee2('0x1151')+_0x372ee2('0x27c7'))[_0x372ee2('0x10bc')](_0x372ee2('0xde7'))[_0x372ee2('0x24d0')](_0x5abb7f)['ok']('OK')['cancel'](_0x372ee2('0x1d8d'));_0x554642[_0x372ee2('0x2fa')](_0x5c96cd)[_0x372ee2('0x2788')](function(){_0x2cc915(_0x4e406b);},function(){const _0x5d01f4=_0x372ee2;console[_0x5d01f4('0x10df')](_0x5d01f4('0x1d8d'));});}function _0x23fece(_0x24b30f){const _0x9719a3=_0x4d48d5,_0x191db3=_0x554642[_0x9719a3('0x112e')]()[_0x9719a3('0x14e4')](_0x9719a3('0x7'))[_0x9719a3('0x93e')](_0x9719a3('0x1670')+_0x231271[_0x9719a3('0xcc9')][_0x9719a3('0x2566')]+_0x9719a3('0xbd')+_0x9719a3('0x27c7'))[_0x9719a3('0x10bc')]('delete\x20fields')[_0x9719a3('0x24d0')](_0x24b30f)['ok']('OK')[_0x9719a3('0x1801')](_0x9719a3('0x1d8d'));_0x554642[_0x9719a3('0x2fa')](_0x191db3)[_0x9719a3('0x2788')](function(){const _0x2e4663=_0x9719a3;_0x231271['selectedFields'][_0x2e4663('0x1534')](function(_0xc85a81){_0x2cc915(_0xc85a81);}),_0x231271['selectedFields']=[];});}}const _0x3a36aa=_0x5ba908;_0x55dc89[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x1b77'),_0x34e79e('0xd0b'),'api','Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x55dc89(_0x38d122,_0x3f160b,_0x3f4e54,_0x3e7cb7,_0x448512,_0x38b241,_0x3e98d2,_0x3f6250,_0x1a1df8,_0x47ac0b,_0x132cb7,_0x319bc9,_0x1df1de,_0x505579){const _0x24c1c3=_0x34e79e,_0x5ed80b=this;_0x5ed80b[_0x24c1c3('0x9cb')]=_0x132cb7['getCurrentUser'](),_0x5ed80b[_0x24c1c3('0x25be')]=[],_0x5ed80b[_0x24c1c3('0x1af0')]=_0x1df1de,_0x5ed80b['license']=_0x319bc9,_0x5ed80b[_0x24c1c3('0xe28')]=_0x505579,_0x5ed80b[_0x24c1c3('0x1193')]={},_0x5ed80b[_0x24c1c3('0x18ad')]=_0x5ed80b[_0x24c1c3('0x1af0')]&&_0x5ed80b['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ed80b['title']=_0x24c1c3('0xa1a'),_0x5ed80b[_0x24c1c3('0xd0b')]=angular[_0x24c1c3('0x2669')](_0x1a1df8),_0x5ed80b[_0x24c1c3('0x1b77')]=_0x3f6250,_0x5ed80b[_0x24c1c3('0x1b53')]=![];!_0x5ed80b[_0x24c1c3('0xd0b')]&&(_0x5ed80b['zohoConfiguration']={'channel':_0x24c1c3('0x1f60'),'type':_0x24c1c3('0x2e4')},_0x5ed80b[_0x24c1c3('0x14e4')]='INTEGRATIONS.NEW_ZOHOCONFIGURATION',_0x5ed80b[_0x24c1c3('0x1b53')]=!![]);_0x5ed80b[_0x24c1c3('0x1ee4')]=_0x5f78de,_0x5ed80b[_0x24c1c3('0x1bf7')]=_0x14f7b2,_0x5ed80b[_0x24c1c3('0x398')]=_0x1c47c3,_0x5ed80b[_0x24c1c3('0x2601')]=_0x21e8cd,_0x5ed80b[_0x24c1c3('0xca7')]=_0x53000a;function _0x5f78de(){const _0xac587a=_0x24c1c3;_0x5ed80b[_0xac587a('0x25be')]=[],_0x47ac0b['intZohoAccount']['addConfiguration']({'id':_0x3f160b[_0xac587a('0x4b9')]['id']},_0x5ed80b[_0xac587a('0xd0b')])['$promise'][_0xac587a('0x2788')](function(_0xa7dfa0){const _0x49596b=_0xac587a;_0x5ed80b[_0x49596b('0x1b77')]['unshift'](_0xa7dfa0['toJSON']()),_0x3e98d2['success']({'title':_0x49596b('0x19b'),'msg':_0x5ed80b[_0x49596b('0xd0b')][_0x49596b('0x1a8d')]?_0x5ed80b[_0x49596b('0xd0b')]['name']+_0x49596b('0x1e4a'):''}),_0x53000a(_0xa7dfa0);})[_0xac587a('0x1cb5')](function(_0xc68b6f){const _0x42e1f6=_0xac587a;if(_0xc68b6f['data']&&_0xc68b6f[_0x42e1f6('0x11fc')]['errors']&&_0xc68b6f[_0x42e1f6('0x11fc')][_0x42e1f6('0x25be')]['length']){_0x5ed80b[_0x42e1f6('0x25be')]=_0xc68b6f[_0x42e1f6('0x11fc')][_0x42e1f6('0x25be')]||[{'message':_0xc68b6f[_0x42e1f6('0x17df')](),'type':_0x42e1f6('0x27a4')}];for(let _0x9fc47a=0x0;_0x9fc47a<_0xc68b6f[_0x42e1f6('0x11fc')][_0x42e1f6('0x25be')][_0x42e1f6('0x2566')];_0x9fc47a+=0x1){_0x3e98d2[_0x42e1f6('0x5e8')]({'title':_0xc68b6f[_0x42e1f6('0x11fc')][_0x42e1f6('0x25be')][_0x9fc47a][_0x42e1f6('0x1d7')],'msg':_0xc68b6f[_0x42e1f6('0x11fc')]['errors'][_0x9fc47a][_0x42e1f6('0x15e2')]});}}else _0x3e98d2[_0x42e1f6('0x5e8')]({'title':_0xc68b6f[_0x42e1f6('0x1b51')]?_0x42e1f6('0x15d1')+_0xc68b6f['status']+_0x42e1f6('0x1b0b')+_0xc68b6f[_0x42e1f6('0x22ce')]:'api.intZohoConfiguration.save','msg':_0xc68b6f[_0x42e1f6('0x11fc')]?JSON[_0x42e1f6('0x1be0')](_0xc68b6f[_0x42e1f6('0x11fc')]['message']):_0xc68b6f[_0x42e1f6('0x17df')]()});});}function _0x14f7b2(){const _0x9466cd=_0x24c1c3;_0x5ed80b['errors']=[],_0x47ac0b[_0x9466cd('0xe10')][_0x9466cd('0x2740')]({'id':_0x5ed80b['zohoConfiguration']['id']},_0x5ed80b['zohoConfiguration'])[_0x9466cd('0x1714')][_0x9466cd('0x2788')](function(_0x10e073){const _0x41505c=_0x9466cd,_0x4c979b=_0x283545()[_0x41505c('0x20e8')](_0x5ed80b[_0x41505c('0x1b77')],{'id':_0x10e073['id']});_0x4c979b&&_0x283545()[_0x41505c('0x2503')](_0x4c979b,_0x283545()[_0x41505c('0x41b')](_0x10e073[_0x41505c('0x1cbf')](),_0x283545()[_0x41505c('0x2163')](_0x4c979b))),_0x3e98d2['success']({'title':_0x41505c('0x2588'),'msg':_0x5ed80b[_0x41505c('0xd0b')]['name']?_0x5ed80b[_0x41505c('0xd0b')]['name']+'\x20has\x20been\x20saved!':''}),_0x53000a(_0x10e073);})[_0x9466cd('0x1cb5')](function(_0x3d8c7a){const _0x620a78=_0x9466cd;if(_0x3d8c7a[_0x620a78('0x11fc')]&&_0x3d8c7a[_0x620a78('0x11fc')][_0x620a78('0x25be')]&&_0x3d8c7a[_0x620a78('0x11fc')]['errors'][_0x620a78('0x2566')]){_0x5ed80b['errors']=_0x3d8c7a[_0x620a78('0x11fc')][_0x620a78('0x25be')]||[{'message':_0x3d8c7a[_0x620a78('0x17df')](),'type':_0x620a78('0x2d')}];for(let _0x193a52=0x0;_0x193a52<_0x3d8c7a[_0x620a78('0x11fc')][_0x620a78('0x25be')]['length'];_0x193a52++){_0x3e98d2[_0x620a78('0x5e8')]({'title':_0x3d8c7a['data'][_0x620a78('0x25be')][_0x193a52][_0x620a78('0x1d7')],'msg':_0x3d8c7a[_0x620a78('0x11fc')][_0x620a78('0x25be')][_0x193a52][_0x620a78('0x15e2')]});}}else _0x3e98d2[_0x620a78('0x5e8')]({'title':_0x3d8c7a[_0x620a78('0x1b51')]?_0x620a78('0x15d1')+_0x3d8c7a[_0x620a78('0x1b51')]+_0x620a78('0x1b0b')+_0x3d8c7a['statusText']:'api.intZohoConfiguration.update','msg':_0x3d8c7a[_0x620a78('0x11fc')]?JSON[_0x620a78('0x1be0')](_0x3d8c7a[_0x620a78('0x11fc')][_0x620a78('0x15e2')]):_0x3d8c7a[_0x620a78('0x17df')]()});});}function _0x1c47c3(_0x5df284){const _0x5f3e56=_0x24c1c3;_0x5ed80b['errors']=[];const _0x47fdc4=_0x3e7cb7[_0x5f3e56('0x112e')]()[_0x5f3e56('0x14e4')](_0x5f3e56('0x458'))[_0x5f3e56('0x1c98')](_0x5f3e56('0x238'))[_0x5f3e56('0x10bc')]('Delete\x20ZohoConfiguration')['ok'](_0x5f3e56('0x2786'))[_0x5f3e56('0x1801')](_0x5f3e56('0x1481'))[_0x5f3e56('0x24d0')](_0x5df284);_0x3e7cb7[_0x5f3e56('0x2fa')](_0x47fdc4)[_0x5f3e56('0x2788')](function(){const _0x150a82=_0x5f3e56;_0x47ac0b[_0x150a82('0xe10')][_0x150a82('0x17c4')]({'id':_0x5ed80b[_0x150a82('0xd0b')]['id']})[_0x150a82('0x1714')][_0x150a82('0x2788')](function(){const _0xc3eda2=_0x150a82;_0x283545()['remove'](_0x5ed80b[_0xc3eda2('0x1b77')],{'id':_0x5ed80b[_0xc3eda2('0xd0b')]['id']}),_0x3e98d2[_0xc3eda2('0x173b')]({'title':'ZohoConfiguration\x20properly\x20deleted!','msg':(_0x5ed80b['zohoConfiguration'][_0xc3eda2('0x1a8d')]||_0xc3eda2('0xd0b'))+_0xc3eda2('0x14d4')}),_0x53000a(_0x5ed80b[_0xc3eda2('0xd0b')]);})['catch'](function(_0x2fb240){const _0x3449d6=_0x150a82;if(_0x2fb240[_0x3449d6('0x11fc')]&&_0x2fb240[_0x3449d6('0x11fc')][_0x3449d6('0x25be')]&&_0x2fb240[_0x3449d6('0x11fc')][_0x3449d6('0x25be')][_0x3449d6('0x2566')]){_0x5ed80b['errors']=_0x2fb240['data'][_0x3449d6('0x25be')]||[{'message':_0x2fb240[_0x3449d6('0x17df')](),'type':_0x3449d6('0x13a7')}];for(let _0x514a28=0x0;_0x514a28<_0x2fb240['data'][_0x3449d6('0x25be')][_0x3449d6('0x2566')];_0x514a28++){_0x3e98d2[_0x3449d6('0x5e8')]({'title':_0x2fb240[_0x3449d6('0x11fc')][_0x3449d6('0x25be')][_0x514a28]['type'],'msg':_0x2fb240[_0x3449d6('0x11fc')][_0x3449d6('0x25be')][_0x514a28][_0x3449d6('0x15e2')]});}}else _0x3e98d2[_0x3449d6('0x5e8')]({'title':_0x2fb240[_0x3449d6('0x1b51')]?_0x3449d6('0x15d1')+_0x2fb240['status']+'\x20-\x20'+_0x2fb240['statusText']:_0x3449d6('0x13a7'),'msg':_0x2fb240[_0x3449d6('0x11fc')]?JSON[_0x3449d6('0x1be0')](_0x2fb240[_0x3449d6('0x11fc')][_0x3449d6('0x15e2')]):_0x2fb240[_0x3449d6('0x15e2')]||_0x2fb240['toString']()});});},function(){});}function _0x21e8cd(_0x22b724){return _0x22b724===null?undefined:new Date(_0x22b724);}function _0x53000a(_0x1b31c3){const _0x119988=_0x24c1c3;_0x3e7cb7[_0x119988('0x19d')](_0x1b31c3);}}const _0xdb72dc=_0x55dc89;_0x4777d8['$inject']=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0xd57'),_0x34e79e('0x2437'),_0x34e79e('0x117b'),_0x34e79e('0xd3c'),_0x34e79e('0x82f'),_0x34e79e('0x1d7'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x4777d8(_0x52afe2,_0x1f7d82,_0x460361,_0x2e9627,_0x5a8311,_0xc60da3,_0x451ecf,_0x337cc7,_0x519320,_0x4cf8c4,_0x4db275,_0x2f118c,_0x401ea9){const _0x29107d=_0x34e79e,_0x43f27f=this;_0x43f27f[_0x29107d('0x9cb')]=_0x2f118c['getCurrentUser'](),_0x43f27f['errors']=[],_0x43f27f[_0x29107d('0x14e4')]=_0x29107d('0x1df9')+_0x283545()[_0x29107d('0xc87')](_0x4cf8c4),_0x43f27f[_0x29107d('0xd3c')]=angular[_0x29107d('0x2669')](_0x337cc7),_0x43f27f['items']=_0x451ecf,_0x43f27f[_0x29107d('0x1d7')]=_0x4cf8c4,_0x43f27f[_0x29107d('0xe28')]=_0x401ea9,_0x43f27f[_0x29107d('0x63a')]=![];!_0x43f27f[_0x29107d('0xd3c')]&&(_0x43f27f['item']={'type':_0x29107d('0x2209')},_0x43f27f[_0x29107d('0xd3c')][_0x283545()['capitalize'](_0x4cf8c4)+'Id']=_0xc60da3['id'],_0x43f27f['title']='INTEGRATIONS.NEW_'+_0x283545()[_0x29107d('0xc87')](_0x4cf8c4),_0x43f27f[_0x29107d('0x63a')]=!![]);_0x43f27f[_0x29107d('0x1586')]=_0x541e86,_0x43f27f[_0x29107d('0x953')]=_0x34a9a8,_0x43f27f[_0x29107d('0x1165')]=_0x4cbc82,_0x43f27f['getSelectedVariable']=_0x11b885,_0x43f27f[_0x29107d('0xca7')]=_0x16a12c,_0x4db275[_0x29107d('0xa72')][_0x29107d('0x1335')]({'nolimit':!![]})[_0x29107d('0x1714')][_0x29107d('0x2788')](function(_0x1f5672){const _0x4fabf6=_0x29107d;return _0x43f27f['variables']=_0x1f5672[_0x4fabf6('0x25df')]?_0x1f5672[_0x4fabf6('0x25df')]:[],_0x4db275[_0x4fabf6('0x15b7')]['describe']()['$promise'];})[_0x29107d('0x2788')](function(_0x436f8c){const _0x490b4c=_0x29107d;return _0x43f27f[_0x490b4c('0x1cac')]=_0x283545()[_0x490b4c('0xa9f')](_0x283545()['keys'](_0x436f8c),[_0x490b4c('0x1714'),_0x490b4c('0x187a'),_0x490b4c('0x172'),'updatedAt',_0x490b4c('0x900')]),_0x43f27f[_0x490b4c('0x1cac')][_0x490b4c('0x13e3')](_0x490b4c('0x12da')),_0x4db275[_0x490b4c('0xac')]['describe']()[_0x490b4c('0x1714')];})[_0x29107d('0x2788')](function(_0x5cc622){const _0x490cf2=_0x29107d;_0x43f27f['voiceDialReportColumns']=_0x283545()['difference'](_0x283545()[_0x490cf2('0x2163')](_0x5cc622),['$promise',_0x490cf2('0x187a'),_0x490cf2('0x172'),_0x490cf2('0x5f'),_0x490cf2('0x900')]),_0x43f27f[_0x490cf2('0x226b')][_0x490cf2('0x13e3')](_0x490cf2('0x12da'));})[_0x29107d('0x1cb5')](function(_0xd3010){const _0x30fc57=_0x29107d;_0x5a8311['error']({'title':_0xd3010[_0x30fc57('0x1b51')]?'API:'+_0xd3010[_0x30fc57('0x1b51')]+_0x30fc57('0x1b0b')+_0xd3010[_0x30fc57('0x22ce')]:'SYSTEM:GETVARIABLES','msg':_0xd3010[_0x30fc57('0x11fc')]?JSON['stringify'](_0xd3010[_0x30fc57('0x11fc')]):_0xd3010[_0x30fc57('0x17df')]()});}),_0x4db275[_0x29107d('0x271')][_0x29107d('0x24')]({'id':_0x519320['id'],'ticketType':_0xc60da3[_0x29107d('0x3d9')]?_0xc60da3['ticketType']:undefined})[_0x29107d('0x1714')]['then'](function(_0x2d165d){const _0x44460f=_0x29107d;_0x43f27f[_0x44460f('0x551')]=!![],_0x43f27f[_0x44460f('0x1578')]=_0x2d165d[_0x44460f('0x25df')]?_0x2d165d['rows']:[],_0x43f27f['item'][_0x44460f('0x1ca9')]&&(_0x43f27f[_0x44460f('0x1ee9')]=_0x283545()[_0x44460f('0x20e8')](_0x43f27f[_0x44460f('0x1578')],{'id':_0x43f27f[_0x44460f('0xd3c')]['idField']}));})[_0x29107d('0x1cb5')](function(_0x4553f1){const _0x416dd5=_0x29107d;_0x43f27f[_0x416dd5('0x551')]=![],console[_0x416dd5('0x5e8')](_0x4553f1);});function _0x541e86(){const _0x14b574=_0x29107d;_0x43f27f['errors']=[],_0x43f27f['customField']&&(_0x43f27f[_0x14b574('0xd3c')][_0x14b574('0x1ca9')]=_0x43f27f[_0x14b574('0x1ee9')]['id'],_0x43f27f[_0x14b574('0xd3c')][_0x14b574('0x98')]=_0x43f27f[_0x14b574('0x1ee9')][_0x14b574('0x1a8d')],_0x43f27f[_0x14b574('0xd3c')][_0x14b574('0x1ee9')]=_0x43f27f[_0x14b574('0x1ee9')][_0x14b574('0x1d56')]),_0x4db275[_0x14b574('0xef7')][_0x14b574('0xbd0')](_0x43f27f[_0x14b574('0xd3c')])['$promise'][_0x14b574('0x2788')](function(_0x454046){const _0x36a9c2=_0x14b574;_0x43f27f[_0x36a9c2('0x117b')][_0x36a9c2('0xc51')](_0x454046),_0x5a8311[_0x36a9c2('0x173b')]({'title':_0x283545()['capitalize'](_0x4cf8c4)+_0x36a9c2('0x194d'),'msg':_0x283545()[_0x36a9c2('0x1df5')](_0x4cf8c4)+_0x36a9c2('0x1e4a')}),_0x16a12c();})[_0x14b574('0x1cb5')](function(_0x3a4234){const _0x5a1dc0=_0x14b574;console[_0x5a1dc0('0x5e8')](_0x3a4234),_0x43f27f[_0x5a1dc0('0x25be')]=_0x3a4234['data'][_0x5a1dc0('0x25be')]||[{'message':_0x3a4234[_0x5a1dc0('0x17df')](),'type':'api.item.save'}];});}function _0x34a9a8(){const _0x5e640f=_0x29107d;_0x43f27f[_0x5e640f('0x25be')]=[],_0x43f27f[_0x5e640f('0x1ee9')]&&(_0x43f27f[_0x5e640f('0xd3c')]['idField']=_0x43f27f[_0x5e640f('0x1ee9')]['id'],_0x43f27f[_0x5e640f('0xd3c')][_0x5e640f('0x98')]=_0x43f27f[_0x5e640f('0x1ee9')]['name'],_0x43f27f[_0x5e640f('0xd3c')]['customField']=_0x43f27f[_0x5e640f('0x1ee9')][_0x5e640f('0x1d56')]),_0x4db275[_0x5e640f('0xef7')][_0x5e640f('0x2740')]({'id':_0x43f27f[_0x5e640f('0xd3c')]['id']},_0x43f27f['item'])['$promise']['then'](function(_0x6a0207){const _0x42ac85=_0x5e640f,_0xf9af6f=_0x283545()[_0x42ac85('0x20e8')](_0x43f27f[_0x42ac85('0x117b')],{'id':_0x6a0207['id']});_0xf9af6f&&_0x283545()[_0x42ac85('0x2503')](_0xf9af6f,_0x6a0207),_0x5a8311['success']({'title':_0x283545()[_0x42ac85('0x1df5')](_0x4cf8c4)+_0x42ac85('0x1d15'),'msg':_0x283545()[_0x42ac85('0x1df5')](_0x4cf8c4)+'\x20has\x20been\x20saved!'}),_0x16a12c();})[_0x5e640f('0x1cb5')](function(_0x5b1e8b){const _0x4a2d9b=_0x5e640f;console[_0x4a2d9b('0x5e8')](_0x5b1e8b),_0x43f27f['errors']=_0x5b1e8b['data'][_0x4a2d9b('0x25be')]||[{'message':_0x5b1e8b['toString'](),'type':_0x4a2d9b('0xe95')}];});}function _0x4cbc82(_0x33850d){const _0x3ffcee=_0x29107d;_0x43f27f[_0x3ffcee('0x25be')]=[];const _0x299b58=_0x2e9627[_0x3ffcee('0x112e')]()[_0x3ffcee('0x14e4')](_0x3ffcee('0x458'))[_0x3ffcee('0x1c98')](_0x3ffcee('0x1b10')+_0x4cf8c4+_0x3ffcee('0x27c7'))[_0x3ffcee('0x10bc')](_0x3ffcee('0x177f')+_0x283545()['capitalize'](_0x4cf8c4))['ok'](_0x3ffcee('0x2786'))['cancel'](_0x3ffcee('0x1481'))[_0x3ffcee('0x24d0')](_0x33850d);_0x2e9627[_0x3ffcee('0x2fa')](_0x299b58)[_0x3ffcee('0x2788')](function(){const _0x27e605=_0x3ffcee;_0x4db275[_0x27e605('0xef7')][_0x27e605('0x17c4')]({'id':_0x43f27f[_0x27e605('0xd3c')]['id']})[_0x27e605('0x1714')][_0x27e605('0x2788')](function(){const _0x353620=_0x27e605;_0x283545()[_0x353620('0x1a90')](_0x43f27f['items'],{'id':_0x43f27f[_0x353620('0xd3c')]['id']}),_0x5a8311[_0x353620('0x173b')]({'title':_0x283545()['capitalize'](_0x4cf8c4)+_0x353620('0x2542'),'msg':_0x283545()['capitalize'](_0x4cf8c4)+_0x353620('0x14d4')}),_0x16a12c();})[_0x27e605('0x1cb5')](function(_0x3da280){const _0x190046=_0x27e605;console[_0x190046('0x5e8')](_0x3da280),_0x43f27f[_0x190046('0x25be')]=_0x3da280[_0x190046('0x11fc')][_0x190046('0x25be')]||[{'message':_0x3da280[_0x190046('0x17df')](),'type':'api.item.delete'}];});},function(){});}function _0x11b885(){const _0x386dee=_0x29107d;return _0x43f27f['item'][_0x386dee('0x1889')]!==undefined?_0x43f27f[_0x386dee('0xd3c')]['variableName']:'Please\x20select\x20a\x20variable';}function _0x16a12c(){_0x2e9627['hide']();}}const _0x17e6b2=_0x4777d8;_0x337a40[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license','setting',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'zohoAccount',_0x34e79e('0xec9')];function _0x337a40(_0x3f8227,_0x24e168,_0x5bab77,_0x135079,_0x825fed,_0x29808d,_0x34512a,_0x526273,_0x43b3a4,_0x4eed72,_0x56881f,_0x78f05){const _0x2865e7=_0x34e79e,_0x3e8862=this;_0x3e8862[_0x2865e7('0x9cb')]=_0x4eed72[_0x2865e7('0x24cc')](),_0x3e8862['license']=_0x29808d,_0x3e8862[_0x2865e7('0x1af0')]=_0x34512a,_0x3e8862[_0x2865e7('0x18ad')]=_0x3e8862['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e8862['location']=_0x24e168[_0x2865e7('0x170c')]()+_0x2865e7('0x726')+_0x24e168[_0x2865e7('0x1c6a')](),_0x3e8862[_0x2865e7('0x830')]=_0x56881f||_0x3f8227[_0x2865e7('0x4b9')][_0x2865e7('0x830')]||{},_0x3e8862['userProfileSection']=_0x78f05&&_0x78f05[_0x2865e7('0x338')]==0x1?_0x78f05['rows'][0x0]:null,_0x3e8862[_0x2865e7('0xe28')]=_0x4eed72[_0x2865e7('0x157e')](_0x3e8862[_0x2865e7('0xec9')]?_0x3e8862[_0x2865e7('0xec9')][_0x2865e7('0xe28')]:null),_0x3e8862[_0x2865e7('0x1193')]={},_0x3e8862[_0x2865e7('0xcb3')]=_0x3f8227[_0x2865e7('0x4b9')][_0x2865e7('0x24f6')]||0x0,_0x3e8862['alert']=_0x43b3a4[_0x2865e7('0x2276')],_0x3e8862[_0x2865e7('0x39d')]=_0x4a68df,_0x3e8862[_0x2865e7('0x25f7')]=_0x183070;function _0x4a68df(){const _0xea4cb8=_0x2865e7;_0x3f8227['go'](_0xea4cb8('0x1237'),{},{'reload':_0xea4cb8('0x1237')});}function _0x183070(){const _0x470b4e=_0x2865e7;_0x526273[_0x470b4e('0x271')]['update']({'id':_0x3e8862[_0x470b4e('0x830')]['id']},_0x3e8862[_0x470b4e('0x830')])['$promise'][_0x470b4e('0x2788')](function(){const _0x11288b=_0x470b4e;_0x43b3a4['success']({'title':_0x11288b('0x25c0'),'msg':_0x3e8862[_0x11288b('0x830')][_0x11288b('0x1a8d')]?_0x3e8862[_0x11288b('0x830')][_0x11288b('0x1a8d')]+_0x11288b('0x6f8'):''});})[_0x470b4e('0x1cb5')](function(_0x288e97){const _0x49c580=_0x470b4e;_0x43b3a4[_0x49c580('0x5e8')]({'title':_0x288e97['status']?_0x49c580('0x15d1')+_0x288e97[_0x49c580('0x1b51')]+_0x49c580('0x1b0b')+_0x288e97[_0x49c580('0x22ce')]:_0x49c580('0x1b4d'),'msg':_0x288e97['data']?JSON[_0x49c580('0x1be0')](_0x288e97[_0x49c580('0x11fc')]):_0x288e97[_0x49c580('0x17df')]()});});}}const _0x53ba09=_0x337a40,_0x11b872=_0x18dd13['p']+_0x34e79e('0x205c');_0x4fef02['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$timeout',_0x34e79e('0x1a5c'),_0x34e79e('0x1449'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x4fef02(_0x8154d5,_0x1ae224,_0x5d1357,_0xf49552,_0x3b1e6e,_0x339ca9,_0x536408,_0x2cca8e,_0x217a2a,_0x513555,_0x1e6bee,_0x5005d8,_0x1785a7,_0x3edc1f,_0x357baf,_0x1f60e9,_0x2d63b5){const _0xfcd2f2=_0x34e79e,_0x1455ee=this;_0x1455ee[_0xfcd2f2('0x130d')]=_0x1f60e9,_0x1455ee[_0xfcd2f2('0x1af0')]=_0x2d63b5,_0x1455ee[_0xfcd2f2('0x9cb')]=_0x357baf[_0xfcd2f2('0x24cc')](),_0x1455ee[_0xfcd2f2('0x1449')]=_0x217a2a||{'count':0x0,'rows':[]},_0x1455ee[_0xfcd2f2('0x63c')]=_0x513555,_0x1455ee[_0xfcd2f2('0xec9')]=_0x1e6bee&&_0x1e6bee[_0xfcd2f2('0x338')]==0x1?_0x1e6bee['rows'][0x0]:null,_0x1455ee[_0xfcd2f2('0xe28')]=_0x357baf[_0xfcd2f2('0x157e')](_0x1455ee[_0xfcd2f2('0xec9')]?_0x1455ee['userProfileSection'][_0xfcd2f2('0xe28')]:null),_0x1455ee['table']='zohoAccounts',_0x1455ee[_0xfcd2f2('0x2278')]='',_0x1455ee['listOrderAsc']=null,_0x1455ee[_0xfcd2f2('0x2035')]=[],_0x1455ee['query']={'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'page':0x1},_0x1455ee[_0xfcd2f2('0x293')]=_0x283545()[_0xfcd2f2('0x13cf')]([{'option':'zoho.com','value':'\x27zoho.com\x27'},{'option':_0xfcd2f2('0x2248'),'value':_0xfcd2f2('0x16d7')}],function(_0x3e99d7){const _0x11c82d=_0xfcd2f2;return _0x283545()['replace'](_0x3e99d7[_0x11c82d('0x49')],new RegExp('\x27','g'),'');}),_0x1455ee[_0xfcd2f2('0x74f')]=_0x283545()[_0xfcd2f2('0x13cf')]([{'option':'US','value':'\x27US\x27'},{'option':'AU','value':_0xfcd2f2('0xb42')},{'option':'EU','value':_0xfcd2f2('0x88d')},{'option':'IN','value':_0xfcd2f2('0x2da')},{'option':'CN','value':'\x27CN\x27'}],function(_0x2d53d6){const _0x1c5080=_0xfcd2f2;return _0x283545()[_0x1c5080('0x10a4')](_0x2d53d6[_0x1c5080('0x49')],new RegExp('\x27','g'),'');}),_0x1455ee[_0xfcd2f2('0x1f7e')]=_0x22d0ac,_0x1455ee[_0xfcd2f2('0x1f2f')]=_0x9d75b6,_0x1455ee[_0xfcd2f2('0x1e5')]=_0x493eb2,_0x1455ee[_0xfcd2f2('0x173b')]=_0x35b3df,_0x1455ee['getZohoAccounts']=_0x3f34da,_0x1455ee[_0xfcd2f2('0xb47')]=_0x272230,_0x1455ee[_0xfcd2f2('0x23b5')]=_0x4fb2ef,_0x1455ee[_0xfcd2f2('0xc88')]=_0x31a6b0,_0x1455ee[_0xfcd2f2('0xdad')]=_0x21aed0,_0x1455ee[_0xfcd2f2('0x69c')]=_0x1a5df9,_0x1455ee[_0xfcd2f2('0xa4d')]=_0x27c788;function _0x22d0ac(_0x41c560){const _0x542ee2=_0xfcd2f2;_0x5d1357['go']('app.integrations.zohoAccounts.edit',{'id':_0x41c560['id'],'zohoAccount':_0x41c560,'crudPermissions':_0x1455ee[_0x542ee2('0xe28')]});}function _0x9d75b6(_0x55eec7){const _0x4707aa=_0xfcd2f2;return _0x5005d8['intZohoAccount'][_0x4707aa('0x24')]({'id':_0x55eec7['id'],'test':!![]})['$promise']['then'](function(){const _0x22b0a8=_0x4707aa;_0x3edc1f['success']({'title':'ZohoAccount\x20properly\x20tested','msg':_0x22b0a8('0x53e')});})[_0x4707aa('0x1cb5')](function(_0x5b206a){const _0x3e07d8=_0x4707aa;_0x3edc1f[_0x3e07d8('0x5e8')]({'title':'ZohoAccount\x20properly\x20tested','msg':_0x5b206a['data']?_0x5b206a['data'][_0x3e07d8('0x15e2')]?_0x5b206a[_0x3e07d8('0x11fc')][_0x3e07d8('0x15e2')]:JSON[_0x3e07d8('0x1be0')](_0x5b206a[_0x3e07d8('0x11fc')]):_0x5b206a[_0x3e07d8('0x17df')]()});});}function _0x493eb2(_0x4e5fe5,_0x384751){const _0x16a857=_0xfcd2f2,_0x558f2f=_0x3b1e6e['confirm']()[_0x16a857('0x14e4')](_0x16a857('0x2114')+_0x283545()[_0x16a857('0x114')](_0x16a857('0x830'))+'?')['htmlContent'](_0x16a857('0x1670')+(_0x4e5fe5['name']||_0x16a857('0x830'))+_0x16a857('0x229e')+'\x20will\x20be\x20deleted.')[_0x16a857('0x10bc')](_0x16a857('0x517'))[_0x16a857('0x24d0')](_0x384751)['ok']('OK')[_0x16a857('0x1801')](_0x16a857('0x1d8d'));_0x3b1e6e[_0x16a857('0x2fa')](_0x558f2f)[_0x16a857('0x2788')](function(){_0x4fb2ef(_0x4e5fe5);},function(){const _0x5940fe=_0x16a857;console[_0x5940fe('0x10df')]('CANCEL');});}let _0x2f8331=!![],_0x3b0db5=0x1;_0x8154d5[_0xfcd2f2('0x1662')](_0xfcd2f2('0x1569'),function(_0x50a076,_0x506e7e){const _0x446add=_0xfcd2f2;_0x2f8331?_0x536408(function(){_0x2f8331=![];}):(!_0x506e7e&&(_0x3b0db5=_0x1455ee[_0x446add('0x135a')][_0x446add('0x23f5')]),_0x50a076!==_0x506e7e&&(_0x1455ee[_0x446add('0x135a')][_0x446add('0x23f5')]=0x1),!_0x50a076&&(_0x1455ee[_0x446add('0x135a')][_0x446add('0x23f5')]=_0x3b0db5),_0x1455ee[_0x446add('0x1562')]());});function _0x35b3df(_0x4d8eca){const _0x46ce19=_0xfcd2f2;_0x1455ee[_0x46ce19('0x1449')]=_0x4d8eca||{'count':0x0,'rows':[]};}function _0x3f34da(){const _0x51bd4a=_0xfcd2f2;_0x1455ee[_0x51bd4a('0x135a')][_0x51bd4a('0x19e')]=(_0x1455ee[_0x51bd4a('0x135a')][_0x51bd4a('0x23f5')]-0x1)*_0x1455ee[_0x51bd4a('0x135a')][_0x51bd4a('0x68e')],_0x357baf[_0x51bd4a('0x1516')](_0x51bd4a('0xe23'))?_0x1455ee['promise']=_0x5005d8[_0x51bd4a('0x271')][_0x51bd4a('0x1335')](_0x1455ee[_0x51bd4a('0x135a')],_0x35b3df)[_0x51bd4a('0x1714')]:(_0x1455ee['query']['id']=_0x1455ee[_0x51bd4a('0x63c')]['id'],_0x1455ee[_0x51bd4a('0x135a')][_0x51bd4a('0xb13')]=_0x51bd4a('0xd37'),_0x1455ee[_0x51bd4a('0x1808')]=_0x5005d8['userProfile']['getResources'](_0x1455ee[_0x51bd4a('0x135a')],_0x35b3df)['$promise']);}function _0x272230(_0x3d8c30,_0x5b7c7a){const _0x5838fc=_0xfcd2f2;_0x3b1e6e['show']({'controller':_0x5838fc('0x16f2'),'controllerAs':'vm','templateUrl':_0x11b872,'parent':angular[_0x5838fc('0x16b1')](_0x339ca9[_0x5838fc('0x945')]),'targetEvent':_0x3d8c30,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x5b7c7a,'zohoAccounts':_0x1455ee['zohoAccounts'][_0x5838fc('0x25df')],'license':_0x1455ee[_0x5838fc('0x130d')],'setting':_0x1455ee[_0x5838fc('0x1af0')],'crudPermissions':_0x1455ee['crudPermissions']}});}function _0x4fb2ef(_0x409bd2){const _0x1ad435=_0xfcd2f2;_0x5005d8['intZohoAccount'][_0x1ad435('0x17c4')]({'id':_0x409bd2['id']})[_0x1ad435('0x1714')][_0x1ad435('0x2788')](function(){const _0x5ccac4=_0x1ad435;_0x283545()[_0x5ccac4('0x1a90')](_0x1455ee[_0x5ccac4('0x1449')][_0x5ccac4('0x25df')],{'id':_0x409bd2['id']}),_0x1455ee[_0x5ccac4('0x1449')][_0x5ccac4('0x338')]-=0x1,!_0x1455ee[_0x5ccac4('0x1449')][_0x5ccac4('0x25df')][_0x5ccac4('0x2566')]&&_0x1455ee[_0x5ccac4('0x1562')](),_0x3edc1f[_0x5ccac4('0x173b')]({'title':_0x283545()[_0x5ccac4('0x114')](_0x5ccac4('0x417'))+_0x5ccac4('0x20db'),'msg':_0x409bd2[_0x5ccac4('0x1a8d')]?_0x409bd2['name']+_0x5ccac4('0x14d4'):''});})[_0x1ad435('0x1cb5')](function(_0x36ab82){const _0x3da914=_0x1ad435;if(_0x36ab82[_0x3da914('0x11fc')]&&_0x36ab82['data'][_0x3da914('0x25be')]&&_0x36ab82['data'][_0x3da914('0x25be')]['length']){_0x1455ee['errors']=_0x36ab82[_0x3da914('0x11fc')][_0x3da914('0x25be')]||[{'message':_0x36ab82[_0x3da914('0x17df')](),'type':_0x3da914('0x19f1')}];for(let _0x2f6273=0x0;_0x2f6273<_0x36ab82[_0x3da914('0x11fc')]['errors'][_0x3da914('0x2566')];_0x2f6273++){_0x3edc1f[_0x3da914('0x5e8')]({'title':_0x36ab82[_0x3da914('0x11fc')][_0x3da914('0x25be')][_0x2f6273]['type'],'msg':_0x36ab82[_0x3da914('0x11fc')][_0x3da914('0x25be')][_0x2f6273][_0x3da914('0x15e2')]});}}else _0x3edc1f['error']({'title':_0x36ab82[_0x3da914('0x1b51')]?_0x3da914('0x15d1')+_0x36ab82[_0x3da914('0x1b51')]+'\x20-\x20'+_0x36ab82[_0x3da914('0x22ce')]:'SYSTEM:DELETEintZohoAccount','msg':_0x36ab82[_0x3da914('0x11fc')]?JSON[_0x3da914('0x1be0')](_0x36ab82[_0x3da914('0x11fc')]['message']):_0x36ab82['message']||_0x36ab82[_0x3da914('0x17df')]()});});}function _0x31a6b0(){const _0x41dfde=_0xfcd2f2,_0xc672ce=angular['copy'](_0x1455ee[_0x41dfde('0x2035')]);return _0x1455ee[_0x41dfde('0x2035')]=[],_0xc672ce;}function _0x21aed0(_0x3232dc){const _0x46d3de=_0xfcd2f2,_0x112081=_0x3b1e6e['confirm']()['title'](_0x46d3de('0x222'))[_0x46d3de('0x93e')](''+_0x1455ee[_0x46d3de('0x2035')][_0x46d3de('0x2566')]+_0x46d3de('0xbd')+_0x46d3de('0x27c7'))[_0x46d3de('0x10bc')]('delete\x20ZohoAccounts')[_0x46d3de('0x24d0')](_0x3232dc)['ok']('OK')[_0x46d3de('0x1801')](_0x46d3de('0x1d8d'));_0x3b1e6e[_0x46d3de('0x2fa')](_0x112081)[_0x46d3de('0x2788')](function(){_0x1455ee['selectedZohoAccounts']['forEach'](function(_0x346d58){_0x4fb2ef(_0x346d58);}),_0x1455ee['selectedZohoAccounts']=[];});}function _0x1a5df9(){const _0x539a9a=_0xfcd2f2;_0x1455ee[_0x539a9a('0x2035')]=[];}function _0x27c788(){const _0x2f600b=_0xfcd2f2;_0x1455ee[_0x2f600b('0x2035')]=_0x1455ee['zohoAccounts'][_0x2f600b('0x25df')];}}const _0x25dac9=_0x4fef02;_0x2f3c08[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0x2f3c08(_0x1719e1,_0x3b80ed){const _0x2c0e07=_0x34e79e;_0x1719e1['state'](_0x2c0e07('0xfff'),{'abstract':!![],'url':_0x2c0e07('0x22eb')})[_0x2c0e07('0x249b')](_0x2c0e07('0x97'),{'url':'/zendeskAccounts','views':{'content@app':{'templateUrl':_0x264edd,'controller':_0x2c0e07('0x3ef')}},'resolve':{'zendeskAccounts':[_0x2c0e07('0x1318'),'Auth',function(_0x2d6efd,_0x3c34d8){const _0x5590b3=_0x2c0e07;return _0x3c34d8[_0x5590b3('0x1516')]('admin')?_0x2d6efd[_0x5590b3('0x2322')](_0x5590b3('0x5d4'),{'fields':_0x5590b3('0x1ec0'),'limit':0xa,'offset':0x0}):_0x2d6efd[_0x5590b3('0x2322')](_0x5590b3('0x27c5'),{'id':_0x3c34d8[_0x5590b3('0x24cc')]()[_0x5590b3('0x237f')],'section':'ZendeskAccounts','fields':_0x5590b3('0x1ec0'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x355d67,_0x5e5dab){const _0x2302f6=_0x2c0e07;return _0x5e5dab['hasRole'](_0x2302f6('0xe23'))?null:_0x355d67[_0x2302f6('0x2322')](_0x2302f6('0x231d'),{'fields':_0x2302f6('0x3f0'),'id':_0x5e5dab[_0x2302f6('0x24cc')]()[_0x2302f6('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x50d612,_0xf7e880){const _0x561ece=_0x2c0e07;return _0xf7e880[_0x561ece('0x1516')]('admin')?null:_0x50d612[_0x561ece('0x2322')](_0x561ece('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xf7e880['getCurrentUser']()['userProfileId'],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x2c0e07('0x20e9')})['state'](_0x2c0e07('0x1b17'),{'url':_0x2c0e07('0x206b'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x342048,'controller':_0x2c0e07('0x81f')}},'resolve':{'zendeskAccount':['apiResolver',_0x2c0e07('0xad0'),function(_0xd7304,_0x49a341){const _0x2db79f=_0x2c0e07;return _0xd7304[_0x2db79f('0x2322')](_0x2db79f('0x5d4'),{'fields':_0x2db79f('0x1ec0'),'id':_0x49a341['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),'Auth',function(_0x562d32,_0x931ea6){const _0x1e4063=_0x2c0e07;return _0x562d32['resolve'](_0x1e4063('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x931ea6[_0x1e4063('0x24cc')]()['userProfileId'],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x15ff'),{'url':_0x2c0e07('0xeae'),'views':{'content@app':{'templateUrl':_0x440ae5,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':['apiResolver','Auth',function(_0x304bd8,_0x416657){const _0x53cf57=_0x2c0e07;return _0x416657[_0x53cf57('0x1516')](_0x53cf57('0xe23'))?_0x304bd8[_0x53cf57('0x2322')](_0x53cf57('0x591'),{'fields':_0x53cf57('0xcd3'),'limit':0xa,'offset':0x0}):_0x304bd8[_0x53cf57('0x2322')](_0x53cf57('0x27c5'),{'id':_0x416657['getCurrentUser']()['userProfileId'],'section':_0x53cf57('0x22a6'),'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x419497,_0x14b89a){const _0x517d8b=_0x2c0e07;return _0x14b89a[_0x517d8b('0x1516')]('admin')?null:_0x419497[_0x517d8b('0x2322')](_0x517d8b('0x231d'),{'fields':'id,name,crudPermissions','id':_0x14b89a[_0x517d8b('0x24cc')]()[_0x517d8b('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x168f1f,_0x5de3e7){const _0x1cee86=_0x2c0e07;return _0x5de3e7[_0x1cee86('0x1516')](_0x1cee86('0xe23'))?null:_0x168f1f[_0x1cee86('0x2322')](_0x1cee86('0x22ca'),{'fields':_0x1cee86('0xe2c'),'userProfileId':_0x5de3e7['getCurrentUser']()[_0x1cee86('0x237f')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x1cc0'),{'url':_0x2c0e07('0x206b'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4b942d,'controller':_0x2c0e07('0x160c')}},'resolve':{'salesforceAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x4346ef,_0x4acc1c){const _0x4b0a84=_0x2c0e07;return _0x4346ef[_0x4b0a84('0x2322')](_0x4b0a84('0x591'),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','id':_0x4acc1c['id']});}],'userProfileSection':['apiResolver',_0x2c0e07('0x1b04'),function(_0x48bca8,_0x370566){const _0x4a1123=_0x2c0e07;return _0x48bca8[_0x4a1123('0x2322')](_0x4a1123('0x22ca'),{'fields':_0x4a1123('0xe2c'),'userProfileId':_0x370566['getCurrentUser']()[_0x4a1123('0x237f')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x584'),{'url':_0x2c0e07('0x191d'),'views':{'content@app':{'templateUrl':_0x3c77c5,'controller':_0x2c0e07('0x1067')}},'resolve':{'freshdeskAccounts':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x44bb7f,_0x387a71){const _0xa161dd=_0x2c0e07;return _0x387a71[_0xa161dd('0x1516')](_0xa161dd('0xe23'))?_0x44bb7f[_0xa161dd('0x2322')](_0xa161dd('0x2a9'),{'fields':_0xa161dd('0x143c'),'limit':0xa,'offset':0x0}):_0x44bb7f['resolve'](_0xa161dd('0x27c5'),{'id':_0x387a71[_0xa161dd('0x24cc')]()[_0xa161dd('0x237f')],'section':'FreshdeskAccounts','fields':_0xa161dd('0x143c'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x34ba5a,_0x4484b7){const _0x1683bb=_0x2c0e07;return _0x4484b7['hasRole'](_0x1683bb('0xe23'))?null:_0x34ba5a[_0x1683bb('0x2322')](_0x1683bb('0x231d'),{'fields':_0x1683bb('0x3f0'),'id':_0x4484b7[_0x1683bb('0x24cc')]()[_0x1683bb('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),'Auth',function(_0x3bef43,_0x3957df){const _0x346dd8=_0x2c0e07;return _0x3957df[_0x346dd8('0x1516')](_0x346dd8('0xe23'))?null:_0x3bef43[_0x346dd8('0x2322')](_0x346dd8('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3957df[_0x346dd8('0x24cc')]()[_0x346dd8('0x237f')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':'integrations'})[_0x2c0e07('0x249b')]('app.integrations.freshdeskAccounts.edit',{'url':'/:id?tab','params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x42d44f,'controller':_0x2c0e07('0x9ae')}},'resolve':{'freshdeskAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x33c0aa,_0x4e10c2){const _0x2c2aa5=_0x2c0e07;return _0x33c0aa[_0x2c2aa5('0x2322')](_0x2c2aa5('0x2a9'),{'fields':_0x2c2aa5('0x143c'),'id':_0x4e10c2['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x531855,_0x9a2cf2){const _0x4e3586=_0x2c0e07;return _0x531855[_0x4e3586('0x2322')](_0x4e3586('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x9a2cf2[_0x4e3586('0x24cc')]()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')]('app.integrations.sugarcrmAccounts',{'url':_0x2c0e07('0xcc1'),'views':{'content@app':{'templateUrl':_0x1d464d,'controller':_0x2c0e07('0x10aa')}},'resolve':{'sugarcrmAccounts':['apiResolver',_0x2c0e07('0x1b04'),function(_0xaa24db,_0x5740bc){const _0xb6b1f0=_0x2c0e07;return _0x5740bc[_0xb6b1f0('0x1516')](_0xb6b1f0('0xe23'))?_0xaa24db[_0xb6b1f0('0x2322')](_0xb6b1f0('0xd79'),{'fields':_0xb6b1f0('0xd43'),'limit':0xa,'offset':0x0}):_0xaa24db[_0xb6b1f0('0x2322')](_0xb6b1f0('0x27c5'),{'id':_0x5740bc[_0xb6b1f0('0x24cc')]()[_0xb6b1f0('0x237f')],'section':_0xb6b1f0('0x842'),'fields':_0xb6b1f0('0xd43'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2c0e07('0x1b04'),function(_0x49b834,_0x1e3a71){const _0x1bf307=_0x2c0e07;return _0x1e3a71[_0x1bf307('0x1516')](_0x1bf307('0xe23'))?null:_0x49b834[_0x1bf307('0x2322')](_0x1bf307('0x231d'),{'fields':'id,name,crudPermissions','id':_0x1e3a71[_0x1bf307('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2c0e07('0x1b04'),function(_0x3b3bc9,_0x47f74e){const _0x3a4475=_0x2c0e07;return _0x47f74e['hasRole']('admin')?null:_0x3b3bc9[_0x3a4475('0x2322')]('userProfileSection@get',{'fields':_0x3a4475('0xe2c'),'userProfileId':_0x47f74e[_0x3a4475('0x24cc')]()[_0x3a4475('0x237f')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x2829'),{'url':_0x2c0e07('0x206b'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2b2ca2,'controller':'SugarcrmAccountController\x20as\x20vm'}},'resolve':{'sugarcrmAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x5910bd,_0x16826b){const _0x2ab5a5=_0x2c0e07;return _0x5910bd['resolve'](_0x2ab5a5('0xd79'),{'fields':_0x2ab5a5('0xd43'),'id':_0x16826b['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x38000b,_0x2497c2){const _0x4fa65a=_0x2c0e07;return _0x38000b[_0x4fa65a('0x2322')](_0x4fa65a('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2497c2[_0x4fa65a('0x24cc')]()[_0x4fa65a('0x237f')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':'integrations'})[_0x2c0e07('0x249b')](_0x2c0e07('0x342'),{'url':_0x2c0e07('0xc1a'),'views':{'content@app':{'templateUrl':_0x478319,'controller':_0x2c0e07('0x1d20')}},'resolve':{'deskAccounts':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x1bf594,_0x3af522){const _0x290b09=_0x2c0e07;return _0x3af522[_0x290b09('0x1516')](_0x290b09('0xe23'))?_0x1bf594[_0x290b09('0x2322')]('intDeskAccount@get',{'fields':_0x290b09('0x1f59'),'limit':0xa,'offset':0x0}):_0x1bf594[_0x290b09('0x2322')](_0x290b09('0x27c5'),{'id':_0x3af522[_0x290b09('0x24cc')]()[_0x290b09('0x237f')],'section':_0x290b09('0x178c'),'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x58d2f2,_0x28b6dc){const _0x3a485a=_0x2c0e07;return _0x28b6dc[_0x3a485a('0x1516')]('admin')?null:_0x58d2f2[_0x3a485a('0x2322')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x28b6dc[_0x3a485a('0x24cc')]()[_0x3a485a('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x376b85,_0x3d8191){const _0x4a9775=_0x2c0e07;return _0x3d8191[_0x4a9775('0x1516')](_0x4a9775('0xe23'))?null:_0x376b85[_0x4a9775('0x2322')]('userProfileSection@get',{'fields':_0x4a9775('0xe2c'),'userProfileId':_0x3d8191['getCurrentUser']()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':'integrations'})[_0x2c0e07('0x249b')](_0x2c0e07('0x113e'),{'url':_0x2c0e07('0x206b'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5bff05,'controller':_0x2c0e07('0x890')}},'resolve':{'deskAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x14318c,_0x41da3a){const _0x159962=_0x2c0e07;return _0x14318c[_0x159962('0x2322')](_0x159962('0x1f69'),{'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','id':_0x41da3a['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x406e81,_0x2a5621){const _0x25e564=_0x2c0e07;return _0x406e81[_0x25e564('0x2322')](_0x25e564('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2a5621[_0x25e564('0x24cc')]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x1237'),{'url':_0x2c0e07('0x8c2'),'views':{'content@app':{'templateUrl':_0x4db594,'controller':'ZohoAccountsController\x20as\x20vm'}},'resolve':{'zohoAccounts':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x424715,_0x560758){const _0x3a5455=_0x2c0e07;return _0x560758[_0x3a5455('0x1516')]('admin')?_0x424715[_0x3a5455('0x2322')](_0x3a5455('0x530'),{'fields':_0x3a5455('0x1912'),'limit':0xa,'offset':0x0}):_0x424715[_0x3a5455('0x2322')](_0x3a5455('0x27c5'),{'id':_0x560758[_0x3a5455('0x24cc')]()[_0x3a5455('0x237f')],'section':_0x3a5455('0xd37'),'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),'Auth',function(_0x1443a6,_0x5ed9d5){const _0x17d190=_0x2c0e07;return _0x5ed9d5['hasRole']('admin')?null:_0x1443a6['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x5ed9d5[_0x17d190('0x24cc')]()[_0x17d190('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),'Auth',function(_0x5d7dca,_0x5304dd){const _0x4dbf06=_0x2c0e07;return _0x5304dd['hasRole'](_0x4dbf06('0xe23'))?null:_0x5d7dca[_0x4dbf06('0x2322')](_0x4dbf06('0x22ca'),{'fields':_0x4dbf06('0xe2c'),'userProfileId':_0x5304dd[_0x4dbf06('0x24cc')]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x1f3d'),{'url':_0x2c0e07('0x206b'),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x294209,'controller':_0x2c0e07('0x18d4')}},'resolve':{'zohoAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x21204e,_0x1d81a0){const _0x58af9e=_0x2c0e07;return _0x21204e[_0x58af9e('0x2322')](_0x58af9e('0x530'),{'fields':_0x58af9e('0x1912'),'id':_0x1d81a0['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x339ea3,_0x582df7){const _0x1e0c46=_0x2c0e07;return _0x339ea3['resolve'](_0x1e0c46('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x582df7[_0x1e0c46('0x24cc')]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')]('app.integrations.vtigerAccounts',{'url':_0x2c0e07('0x194b'),'views':{'content@app':{'templateUrl':_0x363fc4,'controller':_0x2c0e07('0x1952')}},'resolve':{'vtigerAccounts':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x2777f7,_0x105515){const _0x30973d=_0x2c0e07;return _0x105515[_0x30973d('0x1516')](_0x30973d('0xe23'))?_0x2777f7[_0x30973d('0x2322')](_0x30973d('0x6a9'),{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'offset':0x0}):_0x2777f7['resolve']('userProfile@getResources',{'id':_0x105515[_0x30973d('0x24cc')]()['userProfileId'],'section':_0x30973d('0x1d90'),'fields':_0x30973d('0x1f6a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x1e9fd2,_0x491b06){const _0x1f19f7=_0x2c0e07;return _0x491b06['hasRole'](_0x1f19f7('0xe23'))?null:_0x1e9fd2[_0x1f19f7('0x2322')](_0x1f19f7('0x231d'),{'fields':_0x1f19f7('0x3f0'),'id':_0x491b06['getCurrentUser']()[_0x1f19f7('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x208e03,_0x5694fd){const _0x4944a6=_0x2c0e07;return _0x5694fd['hasRole'](_0x4944a6('0xe23'))?null:_0x208e03[_0x4944a6('0x2322')](_0x4944a6('0x22ca'),{'fields':_0x4944a6('0xe2c'),'userProfileId':_0x5694fd['getCurrentUser']()['userProfileId'],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})[_0x2c0e07('0x249b')]('app.integrations.vtigerAccounts.edit',{'url':_0x2c0e07('0x206b'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x412bcf,'controller':'VtigerAccountController\x20as\x20vm'}},'resolve':{'vtigerAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0xbea166,_0x60b356){const _0xc66036=_0x2c0e07;return _0xbea166[_0xc66036('0x2322')]('intVtigerAccount@get',{'fields':_0xc66036('0x1f6a'),'id':_0x60b356['id']});}],'userProfileSection':['apiResolver',_0x2c0e07('0x1b04'),function(_0x2484be,_0x2b9e41){const _0x2e7aac=_0x2c0e07;return _0x2484be[_0x2e7aac('0x2322')]('userProfileSection@get',{'fields':_0x2e7aac('0xe2c'),'userProfileId':_0x2b9e41[_0x2e7aac('0x24cc')]()[_0x2e7aac('0x237f')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})[_0x2c0e07('0x249b')](_0x2c0e07('0x2564'),{'url':_0x2c0e07('0x5fe'),'views':{'content@app':{'templateUrl':_0x22a46e,'controller':'Dynamics365AccountsController\x20as\x20vm'}},'resolve':{'dynamics365Accounts':[_0x2c0e07('0x1318'),'Auth',function(_0xaed25a,_0x16cc1c){const _0x81b040=_0x2c0e07;return _0x16cc1c[_0x81b040('0x1516')]('admin')?_0xaed25a[_0x81b040('0x2322')](_0x81b040('0x19b3'),{'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0}):_0xaed25a[_0x81b040('0x2322')]('userProfile@getResources',{'id':_0x16cc1c['getCurrentUser']()['userProfileId'],'section':_0x81b040('0x2540'),'fields':_0x81b040('0xcc0'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x6ca357,_0x402d3d){const _0x1419bf=_0x2c0e07;return _0x402d3d[_0x1419bf('0x1516')]('admin')?null:_0x6ca357[_0x1419bf('0x2322')](_0x1419bf('0x231d'),{'fields':'id,name,crudPermissions','id':_0x402d3d[_0x1419bf('0x24cc')]()[_0x1419bf('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x346945,_0x1092f9){const _0x65f826=_0x2c0e07;return _0x1092f9[_0x65f826('0x1516')](_0x65f826('0xe23'))?null:_0x346945[_0x65f826('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1092f9[_0x65f826('0x24cc')]()[_0x65f826('0x237f')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')]('app.integrations.dynamics365Accounts.edit',{'url':'/:id?tab','params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x451908,'controller':_0x2c0e07('0xee2')}},'resolve':{'dynamics365Account':[_0x2c0e07('0x1318'),'$stateParams',function(_0x106693,_0x20a89b){const _0x166015=_0x2c0e07;return _0x106693[_0x166015('0x2322')](_0x166015('0x19b3'),{'fields':_0x166015('0xcc0'),'id':_0x20a89b['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),'Auth',function(_0x3a8ee1,_0x30877c){const _0x22215d=_0x2c0e07;return _0x3a8ee1[_0x22215d('0x2322')]('userProfileSection@get',{'fields':_0x22215d('0xe2c'),'userProfileId':_0x30877c['getCurrentUser']()[_0x22215d('0x237f')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':'integrations'})[_0x2c0e07('0x249b')]('app.integrations.servicenowAccounts',{'url':'/servicenowAccounts','views':{'content@app':{'templateUrl':_0x1124ef,'controller':_0x2c0e07('0x2591')}},'resolve':{'servicenowAccounts':[_0x2c0e07('0x1318'),'Auth',function(_0x32dba7,_0xae601f){const _0x10173a=_0x2c0e07;return _0xae601f[_0x10173a('0x1516')](_0x10173a('0xe23'))?_0x32dba7[_0x10173a('0x2322')](_0x10173a('0x24c0'),{'fields':_0x10173a('0x2e7'),'limit':0xa,'offset':0x0}):_0x32dba7[_0x10173a('0x2322')](_0x10173a('0x27c5'),{'id':_0xae601f['getCurrentUser']()[_0x10173a('0x237f')],'section':'ServicenowAccounts','fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2c0e07('0x1b04'),function(_0x1205c3,_0x47a615){const _0x812921=_0x2c0e07;return _0x47a615[_0x812921('0x1516')](_0x812921('0xe23'))?null:_0x1205c3[_0x812921('0x2322')](_0x812921('0x231d'),{'fields':'id,name,crudPermissions','id':_0x47a615['getCurrentUser']()[_0x812921('0x237f')]});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x171fca,_0x3974f8){const _0x1ce9f5=_0x2c0e07;return _0x3974f8[_0x1ce9f5('0x1516')]('admin')?null:_0x171fca[_0x1ce9f5('0x2322')](_0x1ce9f5('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3974f8['getCurrentUser']()[_0x1ce9f5('0x237f')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x1d9f'),{'url':_0x2c0e07('0x206b'),'params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e0272,'controller':'ServicenowAccountController\x20as\x20vm'}},'resolve':{'servicenowAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x1de0f4,_0x4a929d){const _0x396041=_0x2c0e07;return _0x1de0f4[_0x396041('0x2322')](_0x396041('0x24c0'),{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','id':_0x4a929d['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x13151f,_0x41d721){const _0x2988f4=_0x2c0e07;return _0x13151f[_0x2988f4('0x2322')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x41d721[_0x2988f4('0x24cc')]()[_0x2988f4('0x237f')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0xb3e'),{'url':'/freshsalesAccounts','views':{'content@app':{'templateUrl':_0x3f598a,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':[_0x2c0e07('0x1318'),_0x2c0e07('0x1b04'),function(_0x2e95e1,_0x4ae3be){const _0x59d93f=_0x2c0e07;return _0x4ae3be[_0x59d93f('0x1516')](_0x59d93f('0xe23'))?_0x2e95e1[_0x59d93f('0x2322')](_0x59d93f('0x1a1b'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x2e95e1[_0x59d93f('0x2322')](_0x59d93f('0x27c5'),{'id':_0x4ae3be['getCurrentUser']()[_0x59d93f('0x237f')],'section':_0x59d93f('0x327'),'fields':_0x59d93f('0x143c'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2c0e07('0x1b04'),function(_0x315368,_0x326342){const _0x3f3ef5=_0x2c0e07;return _0x326342[_0x3f3ef5('0x1516')]('admin')?null:_0x315368[_0x3f3ef5('0x2322')](_0x3f3ef5('0x231d'),{'fields':_0x3f3ef5('0x3f0'),'id':_0x326342['getCurrentUser']()[_0x3f3ef5('0x237f')]});}],'userProfileSection':['apiResolver','Auth',function(_0x38917e,_0x25a776){const _0x11b4a2=_0x2c0e07;return _0x25a776['hasRole'](_0x11b4a2('0xe23'))?null:_0x38917e[_0x11b4a2('0x2322')](_0x11b4a2('0x22ca'),{'fields':_0x11b4a2('0xe2c'),'userProfileId':_0x25a776[_0x11b4a2('0x24cc')]()[_0x11b4a2('0x237f')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x2c0e07('0x20e9')})[_0x2c0e07('0x249b')](_0x2c0e07('0x202f'),{'url':_0x2c0e07('0x206b'),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x165fa0,'controller':_0x2c0e07('0xa84')}},'resolve':{'freshsalesAccount':[_0x2c0e07('0x1318'),_0x2c0e07('0xad0'),function(_0x199ffa,_0x26771e){const _0x44dcd1=_0x2c0e07;return _0x199ffa[_0x44dcd1('0x2322')](_0x44dcd1('0x1a1b'),{'fields':_0x44dcd1('0x143c'),'id':_0x26771e['id']});}],'userProfileSection':[_0x2c0e07('0x1318'),'Auth',function(_0x15677a,_0x34eea4){const _0x2a1c93=_0x2c0e07;return _0x15677a[_0x2a1c93('0x2322')]('userProfileSection@get',{'fields':_0x2a1c93('0xe2c'),'userProfileId':_0x34eea4[_0x2a1c93('0x24cc')]()[_0x2a1c93('0x237f')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x2c0e07('0x20e9')}),_0x3b80ed['addPart']('app/main/apps/integrations');}angular['module'](_0x34e79e('0xfff'),[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),'mwFormUtils','ngclipboard','angular-cron-jobs',_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),'chart.js',_0x34e79e('0xe82')])[_0x34e79e('0x1a22')](_0x2f3c08)[_0x34e79e('0xb44')](_0x34e79e('0x1fe3'),_0x3ac52b)[_0x34e79e('0xb44')](_0x34e79e('0x7f7'),_0x436cdc)[_0x34e79e('0xb44')](_0x34e79e('0x560'),_0x12ed8d)[_0x34e79e('0xb44')]('CreateOrEditDeskConfigurationDialogController',_0x1fbd58)[_0x34e79e('0xb44')](_0x34e79e('0x72a'),_0x45bb1b)[_0x34e79e('0xb44')](_0x34e79e('0x22e'),_0x19bf4f)[_0x34e79e('0xb44')](_0x34e79e('0x617'),_0x3be5ae)['controller'](_0x34e79e('0x9d9'),_0x433027)[_0x34e79e('0xb44')](_0x34e79e('0x115c'),_0x450902)[_0x34e79e('0xb44')](_0x34e79e('0x229f'),_0xc71955)[_0x34e79e('0xb44')](_0x34e79e('0xcd2'),_0x27edc8)[_0x34e79e('0xb44')](_0x34e79e('0x919'),_0xf8dd20)[_0x34e79e('0xb44')](_0x34e79e('0x22e6'),_0x4a6452)[_0x34e79e('0xb44')](_0x34e79e('0x39f'),_0x2742ab)[_0x34e79e('0xb44')](_0x34e79e('0x244e'),_0x506b8c)[_0x34e79e('0xb44')](_0x34e79e('0x6e3'),_0x4f4e4e)[_0x34e79e('0xb44')](_0x34e79e('0x219a'),_0x4f3b8e)[_0x34e79e('0xb44')](_0x34e79e('0xb01'),_0x214353)['controller'](_0x34e79e('0x17d9'),_0x3a6a01)['controller'](_0x34e79e('0xce4'),_0xe0410a)[_0x34e79e('0xb44')](_0x34e79e('0x2734'),_0x2437c9)['controller'](_0x34e79e('0x6ab'),_0x6540a1)[_0x34e79e('0xb44')]('FreshsalesAccountController',_0x41ee5e)['controller'](_0x34e79e('0x1ae3'),_0x5da094)[_0x34e79e('0xb44')](_0x34e79e('0x1339'),_0x3b6813)[_0x34e79e('0xb44')](_0x34e79e('0x7e4'),_0xb58035)[_0x34e79e('0xb44')](_0x34e79e('0x2674'),_0x139f89)['controller'](_0x34e79e('0x2143'),_0x15f933)[_0x34e79e('0xb44')](_0x34e79e('0x11cc'),_0xad68b7)[_0x34e79e('0xb44')](_0x34e79e('0x869'),_0x3bf3af)[_0x34e79e('0xb44')](_0x34e79e('0x1db1'),_0x7fbe20)[_0x34e79e('0xb44')](_0x34e79e('0x131f'),_0x5e0627)[_0x34e79e('0xb44')]('CreateOrEditServicenowConfigurationDialogController',_0x4ac705)[_0x34e79e('0xb44')](_0x34e79e('0x7e8'),_0x301224)['controller'](_0x34e79e('0x2638'),_0x2dae8d)[_0x34e79e('0xb44')](_0x34e79e('0x1af4'),_0x36831d)[_0x34e79e('0xb44')]('CreateOrEditSugarcrmAccountDialogController',_0x44a29b)[_0x34e79e('0xb44')]('SugarcrmAccountConfigurationsController',_0x2e35ee)['controller'](_0x34e79e('0x358'),_0x36a982)['controller'](_0x34e79e('0x180f'),_0x55a793)[_0x34e79e('0xb44')]('SugarcrmAccountController',_0x135bf8)[_0x34e79e('0xb44')](_0x34e79e('0x2239'),_0x2c10da)[_0x34e79e('0xb44')](_0x34e79e('0x1f1e'),_0xf13c57)[_0x34e79e('0xb44')](_0x34e79e('0x7e7'),_0x231722)['controller'](_0x34e79e('0x1686'),_0x4d83b6)['controller']('CreateOrEditVtigerAccountItemDialogController',_0x5d5e95)['controller'](_0x34e79e('0x183f'),_0xd3c1ba)[_0x34e79e('0xb44')](_0x34e79e('0x36b'),_0x18e8b7)[_0x34e79e('0xb44')](_0x34e79e('0xd4b'),_0x2f2a98)['controller'](_0x34e79e('0x1ff5'),_0x9bf530)[_0x34e79e('0xb44')](_0x34e79e('0x25cf'),_0x345e05)[_0x34e79e('0xb44')](_0x34e79e('0xcb1'),_0x3e3fc1)[_0x34e79e('0xb44')](_0x34e79e('0x1a9e'),_0x204609)[_0x34e79e('0xb44')](_0x34e79e('0x15bb'),_0x2965b2)[_0x34e79e('0xb44')]('CreateOrEditZohoAccountDialogController',_0x56af04)[_0x34e79e('0xb44')](_0x34e79e('0x1f3'),_0x3a36aa)['controller'](_0x34e79e('0x55'),_0xdb72dc)['controller'](_0x34e79e('0x8b2'),_0x17e6b2)[_0x34e79e('0xb44')]('ZohoAccountController',_0x53ba09)['controller']('ZohoAccountsController',_0x25dac9);const _0x18d4e6=_0x18dd13['p']+_0x34e79e('0x104'),_0x5c4abe=_0x18dd13['p']+'src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog.html',_0x555037=_0x18dd13['p']+_0x34e79e('0x1507');_0x29dd13[_0x34e79e('0x2d9')]=[_0x34e79e('0x1580'),'$mdDialog','$state',_0x34e79e('0x130d'),'toasty',_0x34e79e('0x519')];function _0x29dd13(_0x9c556,_0x265ae7,_0x498aa1,_0x3e5463,_0x2fced9,_0x282395){const _0x1c845d=_0x34e79e,_0x51e184=this;_0x51e184['license']=_0x3e5463||{},_0x51e184[_0x1c845d('0x1713')]=0x0,_0x51e184[_0x1c845d('0x1e42')]=0x0,_0x51e184[_0x1c845d('0x1263')]=0x0,_0x51e184['channels']=[{'name':_0x1c845d('0x1f60'),'icon':'icon-phone'},{'name':_0x1c845d('0x231'),'icon':_0x1c845d('0x1bc4')},{'name':_0x1c845d('0x2795'),'icon':_0x1c845d('0x2772')},{'name':_0x1c845d('0x180b'),'icon':_0x1c845d('0x223f')},{'name':'fax','icon':_0x1c845d('0xe77')},{'name':'openchannel','icon':'icon-google-earth'},{'name':_0x1c845d('0x195d'),'icon':_0x1c845d('0x2225')}],_0x51e184[_0x1c845d('0xfd0')]=[{'name':'cm','icon':'icon-account-circle'},{'name':_0x1c845d('0x79c'),'icon':_0x1c845d('0x33d')},{'name':'jscripty','icon':_0x1c845d('0xd')}],_0x51e184[_0x1c845d('0x9bc')]=[{'name':_0x1c845d('0x1d98'),'icon':_0x1c845d('0x113f')},{'name':_0x1c845d('0x5c4'),'icon':'icon-fish'},{'name':_0x1c845d('0x1d56'),'icon':_0x1c845d('0xc9')},{'name':'screenrecording','icon':_0x1c845d('0x22ec')},{'name':'ai','icon':_0x1c845d('0x1cf7')}],_0x51e184['sessions']=[{'name':_0x1c845d('0x512'),'icon':_0x1c845d('0x26ab'),'restart':!![],'label':'channels','enabled':'voice'},{'name':_0x1c845d('0x17f8'),'icon':_0x1c845d('0xb8a'),'restart':![],'label':_0x1c845d('0x1020'),'enabled':_0x1c845d('0x231')}],_0x51e184[_0x1c845d('0x1384')]=[{'name':_0x1c845d('0x2740'),'icon':_0x1c845d('0x9fd')}],_0x282395['user']['get']({'fields':'id','role':'agent','online':!![]})['$promise'][_0x1c845d('0x2788')](function(_0x3766a4){const _0x241ed7=_0x1c845d;return _0x51e184[_0x241ed7('0x1713')]=_0x3766a4&&_0x3766a4[_0x241ed7('0x338')]?_0x3766a4['count']:0x0,_0x282395['user']['get']({'fields':'id','role':'user,admin'})['$promise'];})['then'](function(_0x300dcd){const _0x2c279f=_0x1c845d;return _0x51e184[_0x2c279f('0x1e42')]=_0x300dcd&&_0x300dcd[_0x2c279f('0x338')]?_0x300dcd[_0x2c279f('0x338')]:0x0,_0x282395[_0x2c279f('0x1e6a')][_0x2c279f('0x1335')]({'fields':'id','role':_0x2c279f('0x23ab')})[_0x2c279f('0x1714')];})[_0x1c845d('0x2788')](function(_0x7cbb34){const _0x4b34df=_0x1c845d;_0x51e184[_0x4b34df('0x1263')]=_0x7cbb34&&_0x7cbb34[_0x4b34df('0x338')]?_0x7cbb34[_0x4b34df('0x338')]:0x0;})[_0x1c845d('0x1cb5')](function(_0x22df11){const _0x487507=_0x1c845d;console[_0x487507('0x10df')](_0x22df11);});function _0x3e668d(_0x11daa1){const _0x4bb901=_0x1c845d;_0x265ae7['show']({'controller':'UpdateLicenseDialogController','controllerAs':'vm','templateUrl':_0x5c4abe,'parent':angular[_0x4bb901('0x16b1')](_0x9c556['body']),'targetEvent':_0x11daa1,'clickOutsideToClose':!![],'locals':{'license':_0x3e5463}});}function _0xbed304(_0x152b76){const _0x5c475a=_0x1c845d;_0x265ae7[_0x5c475a('0x2fa')]({'controller':_0x5c475a('0x12ae'),'controllerAs':'vm','templateUrl':_0x555037,'parent':angular[_0x5c475a('0x16b1')](_0x9c556[_0x5c475a('0x945')]),'targetEvent':_0x152b76,'clickOutsideToClose':!![],'locals':{'license':_0x3e5463,'channels':_0x51e184['channels'],'modules':_0x51e184[_0x5c475a('0xfd0')],'addons':_0x51e184[_0x5c475a('0x9bc')],'sessions':_0x51e184[_0x5c475a('0x1020')],'others':_0x51e184['others']}});}function _0x253894(){const _0x38719f=_0x1c845d;_0x498aa1['go'](_0x38719f('0x1725'),{'tab':0x1});}_0x51e184[_0x1c845d('0x9da')]=_0xbed304,_0x51e184[_0x1c845d('0x1479')]=_0x3e668d,_0x51e184[_0x1c845d('0x5f5')]=_0x253894;}const _0x2f766a=_0x29dd13;_0x33e55d[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x130d'),_0x34e79e('0x1b62'),_0x34e79e('0xfd0'),_0x34e79e('0x9bc'),_0x34e79e('0x1020'),'others',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x1a5c')];function _0x33e55d(_0x1d273e,_0x5d8f0f,_0x9779ae,_0x3c3df8,_0x63f900,_0x3271f5,_0x3ee210,_0x4b272a,_0x52d5f4,_0x1b56a8,_0x103a39){const _0x3c7a73=_0x34e79e,_0x1156c3=this;_0x1156c3['errors']=[],_0x1156c3[_0x3c7a73('0x1e6a')]=_0x1b56a8[_0x3c7a73('0x24cc')](),_0x1156c3[_0x3c7a73('0x130d')]=angular[_0x3c7a73('0x2669')](_0x9779ae),_0x1156c3[_0x3c7a73('0x1b62')]=_0x3c3df8,_0x1156c3[_0x3c7a73('0xfd0')]=_0x63f900,_0x1156c3['addons']=_0x3271f5,_0x1156c3[_0x3c7a73('0x1020')]=_0x3ee210,_0x1156c3['others']=_0x4b272a,_0x1156c3[_0x3c7a73('0x130d')][_0x3c7a73('0x1a8d')]=_0x1156c3[_0x3c7a73('0x1e6a')][_0x3c7a73('0x2831')],_0x1156c3[_0x3c7a73('0x130d')][_0x3c7a73('0x2436')]=_0x1156c3['user']['email'],_0x1156c3[_0x3c7a73('0x1d50')]=_0x11ae9d,_0x1156c3['closeDialog']=_0x2712b6;function _0x11ae9d(){const _0x5a6584=_0x3c7a73;_0x1156c3['errors']=[],_0x1156c3['table']=_0x5a6584('0x5d');for(const _0x5d1208 in _0x1156c3[_0x5a6584('0x130d')]){typeof _0x1156c3[_0x5a6584('0x130d')][_0x5d1208]!=='undefined'&&!_0x283545()[_0x5a6584('0x1d4e')]([_0x5a6584('0x1714'),_0x5a6584('0x187a')],_0x5d1208)&&(_0x9779ae[_0x5d1208]===_0x1156c3[_0x5a6584('0x130d')][_0x5d1208]?_0x1156c3[_0x5a6584('0x26a9')]+='|'+_0x5d1208+'|'+(_0x9779ae[_0x5d1208]!==undefined?_0x9779ae[_0x5d1208]:'')+'|'+_0x1156c3[_0x5a6584('0x130d')][_0x5d1208]+'|\x0a':_0x1156c3[_0x5a6584('0x26a9')]+='|'+_0x5d1208+'|{color:red}'+(_0x9779ae[_0x5d1208]!==undefined?_0x9779ae[_0x5d1208]:'')+_0x5a6584('0x89')+_0x1156c3[_0x5a6584('0x130d')][_0x5d1208]+_0x5a6584('0x7f9'));}_0x52d5f4[_0x5a6584('0x1537')][_0x5a6584('0xbd0')]({'key':_0x5a6584('0x12f'),'summary':_0x5a6584('0x8fa'),'description':_0x1156c3['table'],'issuetype':_0x5a6584('0x2175')})[_0x5a6584('0x1714')]['then'](function(){const _0x4a5a68=_0x5a6584;_0x5d8f0f['success']({'title':_0x4a5a68('0xb1b'),'msg':_0x103a39[_0x4a5a68('0x1b11')](_0x4a5a68('0x183')),'timeout':0x3a98}),_0x2712b6();})['catch'](function(_0x18951c){const _0x19726f=_0x5a6584;console[_0x19726f('0x5e8')](_0x18951c),_0x1156c3[_0x19726f('0x25be')]=[{'message':_0x103a39['instant']('SETTINGS.JIRA_ERROR_MESSAGE'),'type':'api.jira'}];});}function _0x2712b6(){const _0x5eb309=_0x3c7a73;_0x1d273e[_0x5eb309('0x19d')]();}}const _0x38c6a1=_0x33e55d;_0x2d1dca['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x130d'),'api'];function _0x2d1dca(_0x11faa8,_0x2117ff,_0x44c73c,_0x561104){const _0x448192=_0x34e79e,_0x204717=this;_0x204717['errors']=[],_0x204717[_0x448192('0x130d')]=angular['copy'](_0x44c73c),_0x204717['licenseKey'],_0x204717[_0x448192('0x1479')]=_0x100004,_0x204717[_0x448192('0xca7')]=_0x46b2f5;function _0x100004(){const _0x5d811d=_0x448192;return _0x561104[_0x5d811d('0x130d')][_0x5d811d('0x2740')]({'id':0x1,'key':_0x204717[_0x5d811d('0x1922')]})['$promise']['then'](function(_0x2c0061){const _0x2ecf98=_0x5d811d;_0x2c0061&&(_0x2c0061[_0x2ecf98('0x23e2')]?_0x2117ff['error']({'title':_0x2ecf98('0x249'),'msg':_0x2ecf98('0x1771')}):_0x2117ff[_0x2ecf98('0x173b')]({'title':_0x2ecf98('0x762'),'msg':'The\x20license\x20has\x20been\x20updated!'}));})['catch'](function(_0x23b70b){const _0x3ee93d=_0x5d811d;_0x2117ff[_0x3ee93d('0x5e8')]({'title':_0x23b70b['status']?_0x3ee93d('0x15d1')+_0x23b70b[_0x3ee93d('0x1b51')]+_0x3ee93d('0x1b0b')+_0x23b70b[_0x3ee93d('0x22ce')]:_0x3ee93d('0x53f'),'msg':_0x23b70b[_0x3ee93d('0x11fc')]?JSON[_0x3ee93d('0x1be0')](_0x23b70b[_0x3ee93d('0x11fc')]):_0x23b70b[_0x3ee93d('0x17df')]()});});}function _0x46b2f5(){const _0x2a0f7a=_0x448192;_0x11faa8[_0x2a0f7a('0x19d')]();}}const _0x393bf1=_0x2d1dca;_0x1a2f9d[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x1a2f9d(_0x3d558e){const _0x2b2a71=_0x34e79e;_0x3d558e[_0x2b2a71('0x249b')](_0x2b2a71('0x9f'),{'url':_0x2b2a71('0x21db'),'views':{'content@app':{'templateUrl':_0x18d4e6,'controller':_0x2b2a71('0x1841')}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x2b2a71('0x21a1')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x9f'),[])[_0x34e79e('0x1a22')](_0x1a2f9d)[_0x34e79e('0xb44')](_0x34e79e('0x12e8'),_0x2f766a)['controller']('RequestLicenseDialogController',_0x38c6a1)['controller'](_0x34e79e('0x897'),_0x393bf1);const _0x14ece0=_0x18dd13['p']+_0x34e79e('0x27fc');_0x37e125['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x16e3'),'$mdDialog',_0x34e79e('0x1382'),_0x34e79e('0xe81'),_0x34e79e('0x5de'),'toasty',_0x34e79e('0x519')];function _0x37e125(_0x2187e6,_0x621a57,_0x2c745a,_0x38f51a,_0x19fda3,_0x462302,_0x31a455,_0x323ec5){const _0x360ace=_0x34e79e,_0x38f55d=this;let _0x489cd9=null;_0x38f55d[_0x360ace('0xe81')]=_0x19fda3||{},_0x38f55d[_0x360ace('0x5de')]=_0x462302?_0x462302[_0x360ace('0x25df')]:[],_0x38f55d['processLimit']=0x7,_0x38f55d[_0x360ace('0xcb3')]=_0x38f51a['params']['tab']||0x0,_0x38f55d['getInfo']=_0x7103c1,_0x38f55d[_0x360ace('0x9ec')]=_0x5ec71a,_0x38f55d['cancelInterval']=_0xcc50a,_0x38f55d[_0x360ace('0x1039')]=_0x1e6cc4;function _0xcc50a(){_0x621a57['cancel'](_0x489cd9),_0x489cd9=null;}function _0x1e6cc4(_0x4cebd8,_0x404e9b,_0xf827c7){const _0xe55657=_0x360ace,_0x4d5a1d=_0x2c745a[_0xe55657('0x112e')]()[_0xe55657('0x14e4')](_0xe55657('0x1448')+_0x404e9b+'?')[_0xe55657('0x1a95')]('The\x20status\x20will\x20be\x20changed\x20to:\x20'+_0xf827c7[_0xe55657('0x25e6')]())[_0xe55657('0x10bc')](_0xe55657('0x1e6c'))['targetEvent'](_0x4cebd8)['ok']('Ok')[_0xe55657('0x1801')](_0xe55657('0x1481'));_0x2c745a[_0xe55657('0x2fa')](_0x4d5a1d)[_0xe55657('0x2788')](function(){const _0x3e55f8=_0xe55657;return _0x323ec5[_0x3e55f8('0x88')][_0x3e55f8('0x2740')]({'id':_0x404e9b,'status':_0xf827c7});})['then'](function(){const _0x26fa4d=_0xe55657;_0x621a57(_0x38f55d[_0x26fa4d('0x9ec')],0x3e8,0x1);})['then'](function(){const _0x42ee3b=_0xe55657;_0x31a455[_0x42ee3b('0x173b')]({'title':_0x42ee3b('0x2691'),'msg':_0x42ee3b('0x1c94')+_0xf827c7});});}function _0x7103c1(){const _0x48736a=_0x360ace;return _0x323ec5['system'][_0x48736a('0x1335')]()[_0x48736a('0x1714')][_0x48736a('0x2788')](function(_0x5c4031){const _0x41ed98=_0x48736a;_0x283545()[_0x41ed98('0x2503')](_0x38f55d['system'],_0x5c4031);})[_0x48736a('0x1cb5')](_0x38f55d[_0x48736a('0x1899')]);}function _0x5ec71a(){const _0x5b579c=_0x360ace;return _0x323ec5[_0x5b579c('0x88')][_0x5b579c('0x1335')]()[_0x5b579c('0x1714')][_0x5b579c('0x2788')](function(_0x15a6ef){const _0x2b601a=_0x5b579c;_0x283545()['merge'](_0x38f55d[_0x2b601a('0x5de')],_0x15a6ef?_0x15a6ef[_0x2b601a('0x25df')]:[]);})[_0x5b579c('0x1cb5')](_0x38f55d[_0x5b579c('0x1899')]);}_0x489cd9=_0x621a57(_0x38f55d['getInfo'],0x1388),_0x2187e6[_0x360ace('0x651')](_0x360ace('0x26ac'),function(){const _0xe730a9=_0x360ace;_0x38f55d[_0xe730a9('0x1899')]();});}const _0x3376c1=_0x37e125;_0x597fa0[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x597fa0(_0x1daad0){const _0x4c882b=_0x34e79e;_0x1daad0[_0x4c882b('0x249b')]('app.settings.system',{'url':'/system?tab','views':{'content@app':{'templateUrl':_0x14ece0,'controller':_0x4c882b('0x241')}},'resolve':{'system':['apiResolver',function(_0x5c0c66){const _0xfc0099=_0x4c882b;return _0x5c0c66[_0xfc0099('0x2322')](_0xfc0099('0xb43'));}],'processes':[_0x4c882b('0x1318'),function(_0x4b638e){const _0x3de1e9=_0x4c882b;return _0x4b638e[_0x3de1e9('0x2322')](_0x3de1e9('0x1dad'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x4c882b('0x21a1')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1725'),[])[_0x34e79e('0x1a22')](_0x597fa0)[_0x34e79e('0xb44')](_0x34e79e('0x19c'),_0x3376c1);const _0x54b3be=_0x18dd13['p']+_0x34e79e('0x8d4');_0x34ec6e[_0x34e79e('0x2d9')]=['$mdDialog',_0x34e79e('0x16e3'),'$window',_0x34e79e('0x446'),_0x34e79e('0x519')];function _0x34ec6e(_0x3c2c1f,_0x57e318,_0x5639ea,_0x406243,_0x43b6b5){const _0x2a0774=_0x34e79e,_0x32d580=this;_0x32d580[_0x2a0774('0x14e4')]=_0x2a0774('0x9f0'),_0x32d580[_0x2a0774('0x15bf')]=0x0,_0x32d580[_0x2a0774('0x994')]=!![],_0x32d580[_0x2a0774('0x1749')]=_0x2a0774('0x18b6'),_0x32d580[_0x2a0774('0x173b')]=!![],_0x32d580[_0x2a0774('0x2630')]=_0x57e318(function(){const _0x324fe8=_0x2a0774;_0x32d580[_0x324fe8('0x15bf')]<0x5a&&(_0x32d580[_0x324fe8('0x15bf')]+=0x1);},0x3e8),_0x43b6b5['version'][_0x2a0774('0x191b')]()[_0x2a0774('0x1714')][_0x2a0774('0x2788')](function(_0x35725e){const _0x5ef269=_0x2a0774;return _0x32d580[_0x5ef269('0x1749')]=_0x35725e['output']+_0x5ef269('0x64a'),_0x43b6b5['version']['reset']()['$promise'];})[_0x2a0774('0x2788')](function(_0x44c024){const _0x16c3fb=_0x2a0774;return _0x32d580[_0x16c3fb('0x1749')]=_0x44c024['output']+_0x16c3fb('0x64a'),_0x43b6b5['version'][_0x16c3fb('0x24ad')]()[_0x16c3fb('0x1714')];})[_0x2a0774('0x2788')](function(_0x7a1157){const _0x10eee2=_0x2a0774;return _0x32d580[_0x10eee2('0x1749')]=_0x7a1157[_0x10eee2('0x1749')]+_0x10eee2('0x64a'),_0x43b6b5[_0x10eee2('0x1a7c')][_0x10eee2('0x905')]()[_0x10eee2('0x1714')];})[_0x2a0774('0x2788')](function(_0x3e11d2){const _0x360a91=_0x2a0774;return _0x32d580[_0x360a91('0x1749')]=_0x3e11d2['output']+'...',_0x43b6b5['version']['restart']()[_0x360a91('0x1714')];})[_0x2a0774('0x2788')](function(){const _0x159696=_0x2a0774;_0x32d580[_0x159696('0x1749')]=_0x159696('0xb04'),_0x406243(function(){_0x32d580['stopInterval']();},0x7530);})[_0x2a0774('0x1cb5')](function(_0x42bfa9){const _0x5627f8=_0x2a0774;_0x32d580['success']=![],_0x32d580[_0x5627f8('0x1988')](),_0x32d580[_0x5627f8('0x1749')]=JSON[_0x5627f8('0x1be0')](_0x42bfa9);});function _0xcc62bb(){const _0x1fd87b=_0x2a0774;angular[_0x1fd87b('0x2735')](_0x32d580[_0x1fd87b('0x2630')])&&(_0x57e318[_0x1fd87b('0x1801')](_0x32d580[_0x1fd87b('0x2630')]),_0x32d580[_0x1fd87b('0x2630')]=undefined),_0x32d580[_0x1fd87b('0x15bf')]=0x64,_0x32d580[_0x1fd87b('0x994')]=![];}function _0x51e31d(){const _0x5316dd=_0x2a0774;_0x5639ea[_0x5316dd('0xe9')][_0x5316dd('0xcf8')]();}function _0x3b656a(){const _0x5d1a97=_0x2a0774;_0x3c2c1f[_0x5d1a97('0x19d')]();}_0x32d580[_0x2a0774('0xca7')]=_0x3b656a,_0x32d580[_0x2a0774('0xcf8')]=_0x51e31d,_0x32d580[_0x2a0774('0x1988')]=_0xcc62bb;}const _0x1b8e3d=_0x34ec6e,_0xd89539=_0x18dd13['p']+_0x34e79e('0x144b');_0x336ca3['$inject']=[_0x34e79e('0x123b'),_0x34e79e('0x16e3'),_0x34e79e('0x1580'),_0x34e79e('0x1a7c')];function _0x336ca3(_0xc7a5ae,_0x14add9,_0x14edb3,_0xf4b0ec){const _0xf621d9=_0x34e79e,_0x162a34=this;_0x162a34[_0xf621d9('0x1a7c')]=_0xf4b0ec||{};function _0x411987(_0x5f5f17){const _0x36311b=_0xf621d9,_0x5ae6b9=_0xc7a5ae[_0x36311b('0x112e')]()[_0x36311b('0x14e4')]('Would\x20you\x20like\x20to\x20update\x20your\x20system?')['htmlContent'](_0x36311b('0x126c'))['ariaLabel']('')[_0x36311b('0x24d0')](_0x5f5f17)['clickOutsideToClose'](!![])[_0x36311b('0x1734')](angular[_0x36311b('0x16b1')](_0x14edb3[_0x36311b('0x945')]))['ok']('I\x20agree')[_0x36311b('0x1801')]('Disagree');_0xc7a5ae[_0x36311b('0x2fa')](_0x5ae6b9)['then'](function(){const _0x5d05c6=_0x36311b;_0xc7a5ae['show']({'controller':_0x5d05c6('0x64c'),'controllerAs':'vm','templateUrl':_0xd89539,'parent':angular[_0x5d05c6('0x16b1')](_0x14edb3[_0x5d05c6('0x945')]),'targetEvent':_0x5f5f17,'clickOutsideToClose':![]});});}_0x162a34[_0xf621d9('0x2fd')]=_0x411987;}const _0x4e2631=_0x336ca3;_0xd40936['$inject']=[_0x34e79e('0xf2d')];function _0xd40936(_0x1ef1fb){const _0x29c191=_0x34e79e;_0x1ef1fb[_0x29c191('0x249b')](_0x29c191('0x2352'),{'url':_0x29c191('0x1c83'),'views':{'content@app':{'templateUrl':_0x54b3be,'controller':_0x29c191('0x1247')}},'resolve':{'version':[_0x29c191('0x1318'),function(_0x350234){const _0x11cd4e=_0x29c191;return _0x350234[_0x11cd4e('0x2322')](_0x11cd4e('0x68a'),{'latest':!![]});}],'userProfile':[_0x29c191('0x1318'),'Auth',function(_0x3212b5,_0x3845f4){const _0xea01b1=_0x29c191;return _0x3212b5[_0xea01b1('0x2322')](_0xea01b1('0x231d'),{'fields':_0xea01b1('0x3f0'),'id':_0x3845f4[_0xea01b1('0x24cc')]()[_0xea01b1('0x237f')]});}],'userProfileSection':[_0x29c191('0x1318'),'Auth',function(_0x4ec903,_0x5d2a6e){const _0x52df9a=_0x29c191;return _0x4ec903['resolve'](_0x52df9a('0x22ca'),{'fields':_0x52df9a('0xe2c'),'userProfileId':_0x5d2a6e['getCurrentUser']()[_0x52df9a('0x237f')],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x2352'),[])[_0x34e79e('0x1a22')](_0xd40936)['controller'](_0x34e79e('0x64c'),_0x1b8e3d)[_0x34e79e('0xb44')](_0x34e79e('0x356'),_0x4e2631);const _0x58e0c2=_0x18dd13['p']+_0x34e79e('0x189d'),_0x3ead32=_0x18dd13['p']+_0x34e79e('0x2ce'),_0x10414d=_0x18dd13['p']+_0x34e79e('0x1218'),_0x3b3781=_0x18dd13['p']+'src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html',_0x3f9893=_0x18dd13['p']+'src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html',_0x280142=_0x18dd13['p']+_0x34e79e('0x486');_0x3f1588[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x17e'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x3f1588(_0xc962b4,_0x1c02ef,_0x244b63,_0x4c6641,_0x105590,_0x25762c,_0x4c9cb8,_0xc46252,_0x196b95,_0x573b3e,_0x23e733,_0x42bd6f,_0x420b87,_0x46703d,_0xb2be45){const _0x5b19d5=_0x34e79e,_0x58fb92=this;_0x58fb92[_0x5b19d5('0x130d')]=_0x46703d,_0x58fb92[_0x5b19d5('0x1af0')]=_0xb2be45,_0x58fb92[_0x5b19d5('0x9cb')]=_0x420b87[_0x5b19d5('0x24cc')](),_0x58fb92[_0x5b19d5('0x17e')]=_0x196b95||{'count':0x0,'rows':[]},_0x58fb92[_0x5b19d5('0x26a9')]=_0x5b19d5('0x17e'),_0x58fb92[_0x5b19d5('0x2278')]='',_0x58fb92[_0x5b19d5('0x25e2')]=null,_0x58fb92[_0x5b19d5('0x1b00')]=[],_0x58fb92[_0x5b19d5('0x135a')]={'fields':_0x5b19d5('0x603'),'sort':_0x5b19d5('0x1cee'),'limit':0xa,'page':0x1},_0x58fb92['arrayservice']=_0x283545()[_0x5b19d5('0x13cf')]([{'option':_0x5b19d5('0x1c5d'),'value':_0x5b19d5('0x1498')}],function(_0x4ce244){const _0x4355d5=_0x5b19d5;return _0x283545()[_0x4355d5('0x10a4')](_0x4ce244['value'],new RegExp('\x27','g'),'');}),_0x58fb92[_0x5b19d5('0x23af')]=_0x1582cb,_0x58fb92['deleteconfirm']=_0x9082c9,_0x58fb92['success']=_0x53bd6,_0x58fb92[_0x5b19d5('0xe4')]=_0x1a15c5,_0x58fb92[_0x5b19d5('0xb8f')]=_0x589a67,_0x58fb92[_0x5b19d5('0x1cd4')]=_0x2979bd,_0x58fb92[_0x5b19d5('0x10e7')]=_0x5dad20,_0x58fb92[_0x5b19d5('0x11d1')]=_0x3d311e,_0x58fb92[_0x5b19d5('0x24e6')]=_0x35fbc2,_0x58fb92[_0x5b19d5('0xe8')]=_0x9646bc;function _0x1582cb(_0x5a45ae,_0x2a0dd3){const _0x2d6d6e=_0x5b19d5;_0x105590['show']({'controller':'CreateOrEditCloudProviderDialogController','controllerAs':'vm','templateUrl':_0x280142,'parent':angular[_0x2d6d6e('0x16b1')](_0x25762c['body']),'targetEvent':_0x2a0dd3,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x5a45ae,'cloudProviders':_0x58fb92[_0x2d6d6e('0x17e')][_0x2d6d6e('0x25df')],'license':_0x58fb92[_0x2d6d6e('0x130d')],'setting':null,'crudPermissions':_0x58fb92['crudPermissions']}});}function _0x9082c9(_0x2bca5d,_0xdba038){const _0x33cf56=_0x5b19d5,_0x1b9970=_0x105590[_0x33cf56('0x112e')]()['title'](_0x33cf56('0x2114')+_0x283545()[_0x33cf56('0x114')](_0x33cf56('0x958'))+'?')[_0x33cf56('0x93e')](_0x33cf56('0x1670')+(_0x2bca5d[_0x33cf56('0x1a8d')]||_0x33cf56('0x958'))+_0x33cf56('0x229e')+_0x33cf56('0x27c7'))[_0x33cf56('0x10bc')](_0x33cf56('0x1d60'))[_0x33cf56('0x24d0')](_0xdba038)['ok']('OK')[_0x33cf56('0x1801')]('CANCEL');_0x105590[_0x33cf56('0x2fa')](_0x1b9970)[_0x33cf56('0x2788')](function(){_0x2979bd(_0x2bca5d);},function(){const _0x194c73=_0x33cf56;console[_0x194c73('0x10df')](_0x194c73('0x1d8d'));});}let _0x504894=!![],_0x54d5b2=0x1;_0xc962b4[_0x5b19d5('0x1662')](_0x5b19d5('0x1569'),function(_0x2a7277,_0x48ff38){const _0x9edd7e=_0x5b19d5;_0x504894?_0x4c9cb8(function(){_0x504894=![];}):(!_0x48ff38&&(_0x54d5b2=_0x58fb92[_0x9edd7e('0x135a')][_0x9edd7e('0x23f5')]),_0x2a7277!==_0x48ff38&&(_0x58fb92[_0x9edd7e('0x135a')][_0x9edd7e('0x23f5')]=0x1),!_0x2a7277&&(_0x58fb92[_0x9edd7e('0x135a')]['page']=_0x54d5b2),_0x58fb92[_0x9edd7e('0xe4')]());});function _0x53bd6(_0x18749b){const _0x198d45=_0x5b19d5;_0x58fb92[_0x198d45('0x17e')]=_0x18749b||{'count':0x0,'rows':[]};}function _0x1a15c5(){const _0xac1616=_0x5b19d5;_0x58fb92[_0xac1616('0x135a')][_0xac1616('0x19e')]=(_0x58fb92[_0xac1616('0x135a')][_0xac1616('0x23f5')]-0x1)*_0x58fb92[_0xac1616('0x135a')]['limit'],_0x420b87['hasRole'](_0xac1616('0xe23'))?_0x58fb92[_0xac1616('0x1808')]=_0x573b3e[_0xac1616('0x958')][_0xac1616('0x1335')](_0x58fb92[_0xac1616('0x135a')],_0x53bd6)[_0xac1616('0x1714')]:(_0x58fb92[_0xac1616('0x135a')]['id']=_0x58fb92['userProfile']['id'],_0x58fb92[_0xac1616('0x135a')]['section']=_0xac1616('0x4c9'),_0x58fb92[_0xac1616('0x1808')]=_0x573b3e[_0xac1616('0x63c')][_0xac1616('0xa1')](_0x58fb92[_0xac1616('0x135a')],_0x53bd6)['$promise']);}function _0x589a67(_0xded006,_0x2253f9){const _0x4c5516=_0x5b19d5;_0x105590['show']({'controller':_0x4c5516('0x2463'),'controllerAs':'vm','templateUrl':_0x280142,'parent':angular[_0x4c5516('0x16b1')](_0x25762c['body']),'targetEvent':_0xded006,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x2253f9,'cloudProviders':_0x58fb92[_0x4c5516('0x17e')][_0x4c5516('0x25df')],'license':_0x58fb92[_0x4c5516('0x130d')],'setting':_0x58fb92[_0x4c5516('0x1af0')],'crudPermissions':_0x58fb92[_0x4c5516('0xe28')]}});}function _0x2979bd(_0xb8cb8f){const _0x26fbed=_0x5b19d5;_0x573b3e[_0x26fbed('0x958')]['delete']({'id':_0xb8cb8f['id']})['$promise'][_0x26fbed('0x2788')](function(){const _0x34bdf4=_0x26fbed;_0x283545()[_0x34bdf4('0x1a90')](_0x58fb92['cloudProviders']['rows'],{'id':_0xb8cb8f['id']}),_0x58fb92[_0x34bdf4('0x17e')]['count']-=0x1,!_0x58fb92[_0x34bdf4('0x17e')][_0x34bdf4('0x25df')][_0x34bdf4('0x2566')]&&_0x58fb92[_0x34bdf4('0xe4')](),_0x42bd6f[_0x34bdf4('0x173b')]({'title':_0x283545()[_0x34bdf4('0x114')](_0x34bdf4('0x202c'))+_0x34bdf4('0x20db'),'msg':_0xb8cb8f[_0x34bdf4('0x1a8d')]?_0xb8cb8f[_0x34bdf4('0x1a8d')]+_0x34bdf4('0x14d4'):''});})[_0x26fbed('0x1cb5')](function(_0xdd92e8){const _0x407243=_0x26fbed;if(_0xdd92e8['data']&&_0xdd92e8[_0x407243('0x11fc')][_0x407243('0x25be')]&&_0xdd92e8['data']['errors'][_0x407243('0x2566')]){_0x58fb92['errors']=_0xdd92e8[_0x407243('0x11fc')][_0x407243('0x25be')]||[{'message':_0xdd92e8[_0x407243('0x17df')](),'type':_0x407243('0x11c5')}];for(let _0x3cd8c9=0x0;_0x3cd8c9<_0xdd92e8['data'][_0x407243('0x25be')][_0x407243('0x2566')];_0x3cd8c9++){_0x42bd6f['error']({'title':_0xdd92e8[_0x407243('0x11fc')]['errors'][_0x3cd8c9][_0x407243('0x1d7')],'msg':_0xdd92e8[_0x407243('0x11fc')][_0x407243('0x25be')][_0x3cd8c9][_0x407243('0x15e2')]});}}else _0x42bd6f[_0x407243('0x5e8')]({'title':_0xdd92e8['status']?_0x407243('0x15d1')+_0xdd92e8[_0x407243('0x1b51')]+_0x407243('0x1b0b')+_0xdd92e8['statusText']:_0x407243('0x11c5'),'msg':_0xdd92e8[_0x407243('0x11fc')]?JSON[_0x407243('0x1be0')](_0xdd92e8[_0x407243('0x11fc')][_0x407243('0x15e2')]):_0xdd92e8[_0x407243('0x15e2')]||_0xdd92e8[_0x407243('0x17df')]()});});}function _0x5dad20(){const _0x3081ea=_0x5b19d5,_0x5f03ff=angular[_0x3081ea('0x2669')](_0x58fb92[_0x3081ea('0x1b00')]);return _0x58fb92[_0x3081ea('0x1b00')]=[],_0x5f03ff;}function _0x3d311e(_0x5aab9d){const _0x50a60f=_0x5b19d5,_0x3e9251=_0x105590[_0x50a60f('0x112e')]()['title'](_0x50a60f('0x61'))[_0x50a60f('0x93e')](_0x50a60f('0x1670')+_0x58fb92[_0x50a60f('0x1b00')][_0x50a60f('0x2566')]+_0x50a60f('0xbd')+_0x50a60f('0x27c7'))[_0x50a60f('0x10bc')](_0x50a60f('0x2262'))[_0x50a60f('0x24d0')](_0x5aab9d)['ok']('OK')[_0x50a60f('0x1801')](_0x50a60f('0x1d8d'));_0x105590[_0x50a60f('0x2fa')](_0x3e9251)[_0x50a60f('0x2788')](function(){const _0x168ac2=_0x50a60f;_0x58fb92['selectedAiTools'][_0x168ac2('0x1534')](function(_0x78f512){_0x2979bd(_0x78f512);}),_0x58fb92['selectedAiTools']=[];});}function _0x35fbc2(){const _0x5c3755=_0x5b19d5;_0x58fb92[_0x5c3755('0x1b00')]=[];}function _0x9646bc(){const _0xe8570b=_0x5b19d5;_0x58fb92[_0xe8570b('0x1b00')]=_0x58fb92[_0xe8570b('0x17e')]['rows'];}}const _0x3387b8=_0x3f1588;_0x292237[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x17e'),_0x34e79e('0x958'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x292237(_0x8d6096,_0x192a97,_0x4248b4,_0x310b7b,_0x120226,_0x5ce6d7,_0x5eaa0f,_0x288598,_0x494ae2,_0x4a882e,_0x3864da,_0x3492e9,_0x20412e){const _0x2733bf=_0x34e79e,_0x3a386b=this;_0x3a386b[_0x2733bf('0x9cb')]=_0x3864da[_0x2733bf('0x24cc')](),_0x3a386b[_0x2733bf('0x25be')]=[],_0x3a386b['setting']=_0x20412e,_0x3a386b[_0x2733bf('0x130d')]=_0x3492e9,_0x3a386b['hasModulePermissions']={},_0x3a386b[_0x2733bf('0x18ad')]=_0x3a386b[_0x2733bf('0x1af0')]&&_0x3a386b[_0x2733bf('0x1af0')][_0x2733bf('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a386b['title']=_0x2733bf('0x1a06'),_0x3a386b[_0x2733bf('0x958')]=angular[_0x2733bf('0x2669')](_0x494ae2),_0x3a386b['cloudProviders']=_0x288598,_0x3a386b[_0x2733bf('0x94')]=![];!_0x3a386b[_0x2733bf('0x958')]&&(_0x3a386b[_0x2733bf('0x958')]={},_0x3a386b[_0x2733bf('0x14e4')]=_0x2733bf('0x1bc'),_0x3a386b[_0x2733bf('0x94')]=!![]);_0x3a386b['addNewCloudProvider']=_0x289ca2,_0x3a386b[_0x2733bf('0x52a')]=_0x2406bd,_0x3a386b[_0x2733bf('0x1cd4')]=_0x342c52,_0x3a386b[_0x2733bf('0x2601')]=_0x1573ff,_0x3a386b['closeDialog']=_0x287710;function _0x289ca2(){const _0x286900=_0x2733bf;_0x3a386b[_0x286900('0x25be')]=[],_0x4a882e['cloudProvider'][_0x286900('0xbd0')](_0x3a386b[_0x286900('0x958')])[_0x286900('0x1714')]['then'](function(_0x22bc16){const _0x50d005=_0x286900;_0x3a386b[_0x50d005('0x17e')][_0x50d005('0xc51')](_0x22bc16['toJSON']()),_0x5eaa0f[_0x50d005('0x173b')]({'title':'CloudProvider\x20properly\x20created','msg':_0x3a386b[_0x50d005('0x958')][_0x50d005('0x1a8d')]?_0x3a386b[_0x50d005('0x958')][_0x50d005('0x1a8d')]+'\x20has\x20been\x20created!':''}),_0x287710(_0x22bc16);})[_0x286900('0x1cb5')](function(_0x3773f4){const _0x3315ad=_0x286900;if(_0x3773f4[_0x3315ad('0x11fc')]&&_0x3773f4['data']['errors']&&_0x3773f4[_0x3315ad('0x11fc')][_0x3315ad('0x25be')][_0x3315ad('0x2566')]){_0x3a386b[_0x3315ad('0x25be')]=_0x3773f4[_0x3315ad('0x11fc')][_0x3315ad('0x25be')]||[{'message':_0x3773f4[_0x3315ad('0x17df')](),'type':'api.cloudProvider.save'}];for(let _0x10f49a=0x0;_0x10f49a<_0x3773f4[_0x3315ad('0x11fc')]['errors']['length'];_0x10f49a+=0x1){_0x5eaa0f['error']({'title':_0x3773f4[_0x3315ad('0x11fc')][_0x3315ad('0x25be')][_0x10f49a][_0x3315ad('0x1d7')],'msg':_0x3773f4[_0x3315ad('0x11fc')][_0x3315ad('0x25be')][_0x10f49a][_0x3315ad('0x15e2')]});}}else _0x5eaa0f[_0x3315ad('0x5e8')]({'title':_0x3773f4[_0x3315ad('0x1b51')]?_0x3315ad('0x15d1')+_0x3773f4['status']+_0x3315ad('0x1b0b')+_0x3773f4[_0x3315ad('0x22ce')]:_0x3315ad('0x35f'),'msg':_0x3773f4['data']?JSON[_0x3315ad('0x1be0')](_0x3773f4[_0x3315ad('0x11fc')]['message']):_0x3773f4['toString']()});});}function _0x2406bd(){const _0x4f519b=_0x2733bf;_0x3a386b[_0x4f519b('0x25be')]=[],_0x4a882e[_0x4f519b('0x958')][_0x4f519b('0x2740')]({'id':_0x3a386b[_0x4f519b('0x958')]['id']},_0x3a386b[_0x4f519b('0x958')])[_0x4f519b('0x1714')]['then'](function(_0x350d99){const _0x4c36a4=_0x4f519b,_0x714d1d=_0x283545()[_0x4c36a4('0x20e8')](_0x3a386b[_0x4c36a4('0x17e')],{'id':_0x350d99['id']});_0x714d1d&&_0x283545()[_0x4c36a4('0x2503')](_0x714d1d,_0x283545()[_0x4c36a4('0x41b')](_0x350d99['toJSON'](),_0x283545()[_0x4c36a4('0x2163')](_0x714d1d))),_0x5eaa0f[_0x4c36a4('0x173b')]({'title':'CloudProvider\x20properly\x20saved!','msg':_0x3a386b[_0x4c36a4('0x958')][_0x4c36a4('0x1a8d')]?_0x3a386b[_0x4c36a4('0x958')][_0x4c36a4('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x287710(_0x350d99);})[_0x4f519b('0x1cb5')](function(_0x122dd2){const _0x159255=_0x4f519b;if(_0x122dd2[_0x159255('0x11fc')]&&_0x122dd2[_0x159255('0x11fc')][_0x159255('0x25be')]&&_0x122dd2['data'][_0x159255('0x25be')][_0x159255('0x2566')]){_0x3a386b[_0x159255('0x25be')]=_0x122dd2['data'][_0x159255('0x25be')]||[{'message':_0x122dd2[_0x159255('0x17df')](),'type':_0x159255('0x586')}];for(let _0x1f305d=0x0;_0x1f305d<_0x122dd2[_0x159255('0x11fc')]['errors'][_0x159255('0x2566')];_0x1f305d++){_0x5eaa0f['error']({'title':_0x122dd2[_0x159255('0x11fc')][_0x159255('0x25be')][_0x1f305d][_0x159255('0x1d7')],'msg':_0x122dd2['data']['errors'][_0x1f305d][_0x159255('0x15e2')]});}}else _0x5eaa0f[_0x159255('0x5e8')]({'title':_0x122dd2[_0x159255('0x1b51')]?_0x159255('0x15d1')+_0x122dd2[_0x159255('0x1b51')]+_0x159255('0x1b0b')+_0x122dd2[_0x159255('0x22ce')]:_0x159255('0x586'),'msg':_0x122dd2[_0x159255('0x11fc')]?JSON['stringify'](_0x122dd2[_0x159255('0x11fc')][_0x159255('0x15e2')]):_0x122dd2[_0x159255('0x17df')]()});});}function _0x342c52(_0x396a14){const _0xfb7d98=_0x2733bf;_0x3a386b[_0xfb7d98('0x25be')]=[];const _0x5f3424=_0x310b7b[_0xfb7d98('0x112e')]()[_0xfb7d98('0x14e4')](_0xfb7d98('0x458'))[_0xfb7d98('0x1c98')](_0xfb7d98('0xb07'))[_0xfb7d98('0x10bc')](_0xfb7d98('0x1767'))['ok'](_0xfb7d98('0x2786'))[_0xfb7d98('0x1801')](_0xfb7d98('0x1481'))[_0xfb7d98('0x24d0')](_0x396a14);_0x310b7b[_0xfb7d98('0x2fa')](_0x5f3424)['then'](function(){const _0x25f94a=_0xfb7d98;_0x4a882e[_0x25f94a('0x958')][_0x25f94a('0x17c4')]({'id':_0x3a386b[_0x25f94a('0x958')]['id']})[_0x25f94a('0x1714')][_0x25f94a('0x2788')](function(){const _0x30be0e=_0x25f94a;_0x283545()[_0x30be0e('0x1a90')](_0x3a386b[_0x30be0e('0x17e')],{'id':_0x3a386b[_0x30be0e('0x958')]['id']}),_0x5eaa0f['success']({'title':'CloudProvider\x20properly\x20deleted!','msg':(_0x3a386b['cloudProvider']['name']||_0x30be0e('0x958'))+'\x20has\x20been\x20deleted!'}),_0x287710(_0x3a386b[_0x30be0e('0x958')]);})[_0x25f94a('0x1cb5')](function(_0x33c435){const _0x533c13=_0x25f94a;if(_0x33c435[_0x533c13('0x11fc')]&&_0x33c435[_0x533c13('0x11fc')][_0x533c13('0x25be')]&&_0x33c435[_0x533c13('0x11fc')]['errors']['length']){_0x3a386b[_0x533c13('0x25be')]=_0x33c435[_0x533c13('0x11fc')][_0x533c13('0x25be')]||[{'message':_0x33c435['toString'](),'type':_0x533c13('0x10bb')}];for(let _0x40e86a=0x0;_0x40e86a<_0x33c435[_0x533c13('0x11fc')][_0x533c13('0x25be')][_0x533c13('0x2566')];_0x40e86a++){_0x5eaa0f[_0x533c13('0x5e8')]({'title':_0x33c435[_0x533c13('0x11fc')][_0x533c13('0x25be')][_0x40e86a]['type'],'msg':_0x33c435[_0x533c13('0x11fc')]['errors'][_0x40e86a][_0x533c13('0x15e2')]});}}else _0x5eaa0f[_0x533c13('0x5e8')]({'title':_0x33c435[_0x533c13('0x1b51')]?_0x533c13('0x15d1')+_0x33c435[_0x533c13('0x1b51')]+_0x533c13('0x1b0b')+_0x33c435[_0x533c13('0x22ce')]:_0x533c13('0x10bb'),'msg':_0x33c435['data']?JSON[_0x533c13('0x1be0')](_0x33c435[_0x533c13('0x11fc')][_0x533c13('0x15e2')]):_0x33c435[_0x533c13('0x15e2')]||_0x33c435[_0x533c13('0x17df')]()});});},function(){});}function _0x1573ff(_0x4c3d9b){return _0x4c3d9b===null?undefined:new Date(_0x4c3d9b);}function _0x287710(_0xea203c){const _0x7eb9b0=_0x2733bf;_0x310b7b[_0x7eb9b0('0x19d')](_0xea203c);}}const _0x408104=_0x292237;_0x4ee957['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x12e4'),'customization',_0x34e79e('0x519'),'Auth','license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x4ee957(_0x37839e,_0x59fb53,_0x1c5fdc,_0x2b96db,_0x542886,_0x8999f,_0x4d21e3,_0x36f838,_0x42a1c3,_0x2a49e4,_0x5eae50,_0x1b03f9,_0x329d55,_0x57e0ab){const _0x3caf8d=_0x34e79e,_0x40da26=this;_0x40da26['currentUser']=_0x5eae50[_0x3caf8d('0x24cc')](),_0x40da26['errors']=[],_0x40da26[_0x3caf8d('0x1af0')]=_0x329d55,_0x40da26[_0x3caf8d('0x130d')]=_0x1b03f9,_0x40da26[_0x3caf8d('0xe28')]=_0x57e0ab,_0x40da26[_0x3caf8d('0x1193')]={},_0x40da26[_0x3caf8d('0x18ad')]=_0x40da26['setting']&&_0x40da26[_0x3caf8d('0x1af0')][_0x3caf8d('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40da26['title']='SETTINGS.EDIT_CUSTOMIZATION',_0x40da26['customization']=angular[_0x3caf8d('0x2669')](_0x42a1c3),_0x40da26['customizations']=_0x36f838,_0x40da26['newCustomization']=![];!_0x40da26['customization']&&(_0x40da26['customization']={},_0x40da26[_0x3caf8d('0x14e4')]='SETTINGS.NEW_CUSTOMIZATION',_0x40da26[_0x3caf8d('0x7b2')]=!![]);_0x40da26[_0x3caf8d('0xafb')]=_0x4c7739,_0x40da26[_0x3caf8d('0xbcb')]=_0xda305,_0x40da26['deleteCustomization']=_0x5cfaaf,_0x40da26[_0x3caf8d('0x2601')]=_0x5201bd,_0x40da26[_0x3caf8d('0xca7')]=_0x2accd5;function _0x4c7739(){const _0x3ff90e=_0x3caf8d;_0x40da26[_0x3ff90e('0x25be')]=[],_0x2a49e4[_0x3ff90e('0x1af0')][_0x3ff90e('0xbd0')](_0x40da26[_0x3ff90e('0x1fc3')])[_0x3ff90e('0x1714')][_0x3ff90e('0x2788')](function(_0x3d434f){const _0xeb1b18=_0x3ff90e;_0x40da26[_0xeb1b18('0x12e4')][_0xeb1b18('0xc51')](_0x3d434f[_0xeb1b18('0x1cbf')]()),_0x4d21e3[_0xeb1b18('0x173b')]({'title':_0xeb1b18('0x1d25'),'msg':_0x40da26['customization'][_0xeb1b18('0x1a8d')]?_0x40da26[_0xeb1b18('0x1fc3')][_0xeb1b18('0x1a8d')]+_0xeb1b18('0x1e4a'):''}),_0x2accd5(_0x3d434f);})[_0x3ff90e('0x1cb5')](function(_0x25b7f2){const _0x3ce743=_0x3ff90e;if(_0x25b7f2[_0x3ce743('0x11fc')]&&_0x25b7f2[_0x3ce743('0x11fc')][_0x3ce743('0x25be')]&&_0x25b7f2[_0x3ce743('0x11fc')]['errors'][_0x3ce743('0x2566')]){_0x40da26[_0x3ce743('0x25be')]=_0x25b7f2['data'][_0x3ce743('0x25be')]||[{'message':_0x25b7f2[_0x3ce743('0x17df')](),'type':_0x3ce743('0x75a')}];for(let _0x1594da=0x0;_0x1594da<_0x25b7f2[_0x3ce743('0x11fc')][_0x3ce743('0x25be')]['length'];_0x1594da+=0x1){_0x4d21e3[_0x3ce743('0x5e8')]({'title':_0x25b7f2[_0x3ce743('0x11fc')][_0x3ce743('0x25be')][_0x1594da][_0x3ce743('0x1d7')],'msg':_0x25b7f2['data'][_0x3ce743('0x25be')][_0x1594da][_0x3ce743('0x15e2')]});}}else _0x4d21e3[_0x3ce743('0x5e8')]({'title':_0x25b7f2['status']?'API:'+_0x25b7f2['status']+_0x3ce743('0x1b0b')+_0x25b7f2[_0x3ce743('0x22ce')]:_0x3ce743('0x75a'),'msg':_0x25b7f2[_0x3ce743('0x11fc')]?JSON[_0x3ce743('0x1be0')](_0x25b7f2['data'][_0x3ce743('0x15e2')]):_0x25b7f2[_0x3ce743('0x17df')]()});});}function _0xda305(){const _0x5a3d0b=_0x3caf8d;_0x40da26['errors']=[],_0x2a49e4['setting'][_0x5a3d0b('0x2740')]({'id':_0x40da26[_0x5a3d0b('0x1fc3')]['id']},_0x40da26[_0x5a3d0b('0x1fc3')])[_0x5a3d0b('0x1714')][_0x5a3d0b('0x2788')](function(_0x15a7ba){const _0x451968=_0x5a3d0b,_0xfa6966=_0x283545()[_0x451968('0x20e8')](_0x40da26[_0x451968('0x12e4')],{'id':_0x15a7ba['id']});_0xfa6966&&_0x283545()[_0x451968('0x2503')](_0xfa6966,_0x283545()['pick'](_0x15a7ba['toJSON'](),_0x283545()[_0x451968('0x2163')](_0xfa6966))),_0x4d21e3[_0x451968('0x173b')]({'title':_0x451968('0x1c01'),'msg':_0x40da26[_0x451968('0x1fc3')]['name']?_0x40da26['customization'][_0x451968('0x1a8d')]+_0x451968('0x24cf'):''}),_0x2accd5(_0x15a7ba);})[_0x5a3d0b('0x1cb5')](function(_0x19ca7f){const _0x20c39c=_0x5a3d0b;if(_0x19ca7f['data']&&_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x25be')]&&_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x25be')][_0x20c39c('0x2566')]){_0x40da26[_0x20c39c('0x25be')]=_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x25be')]||[{'message':_0x19ca7f[_0x20c39c('0x17df')](),'type':'api.setting.update'}];for(let _0x248904=0x0;_0x248904<_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x25be')][_0x20c39c('0x2566')];_0x248904++){_0x4d21e3[_0x20c39c('0x5e8')]({'title':_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x25be')][_0x248904]['type'],'msg':_0x19ca7f['data'][_0x20c39c('0x25be')][_0x248904][_0x20c39c('0x15e2')]});}}else _0x4d21e3['error']({'title':_0x19ca7f['status']?'API:'+_0x19ca7f[_0x20c39c('0x1b51')]+'\x20-\x20'+_0x19ca7f[_0x20c39c('0x22ce')]:'api.setting.update','msg':_0x19ca7f['data']?JSON['stringify'](_0x19ca7f[_0x20c39c('0x11fc')][_0x20c39c('0x15e2')]):_0x19ca7f[_0x20c39c('0x17df')]()});});}function _0x5cfaaf(_0x2b1d06){const _0x93548b=_0x3caf8d;_0x40da26[_0x93548b('0x25be')]=[];const _0x3858ca=_0x2b96db[_0x93548b('0x112e')]()[_0x93548b('0x14e4')]('Are\x20you\x20sure?')[_0x93548b('0x1c98')](_0x93548b('0xe01'))[_0x93548b('0x10bc')](_0x93548b('0x34'))['ok'](_0x93548b('0x2786'))[_0x93548b('0x1801')](_0x93548b('0x1481'))['targetEvent'](_0x2b1d06);_0x2b96db[_0x93548b('0x2fa')](_0x3858ca)[_0x93548b('0x2788')](function(){const _0x2e3cbf=_0x93548b;_0x2a49e4['setting']['delete']({'id':_0x40da26[_0x2e3cbf('0x1fc3')]['id']})[_0x2e3cbf('0x1714')][_0x2e3cbf('0x2788')](function(){const _0x51191c=_0x2e3cbf;_0x283545()[_0x51191c('0x1a90')](_0x40da26[_0x51191c('0x12e4')],{'id':_0x40da26['customization']['id']}),_0x4d21e3['success']({'title':_0x51191c('0x21e2'),'msg':(_0x40da26[_0x51191c('0x1fc3')][_0x51191c('0x1a8d')]||_0x51191c('0x1fc3'))+'\x20has\x20been\x20deleted!'}),_0x2accd5(_0x40da26[_0x51191c('0x1fc3')]);})[_0x2e3cbf('0x1cb5')](function(_0x5ced4b){const _0x20b99e=_0x2e3cbf;if(_0x5ced4b[_0x20b99e('0x11fc')]&&_0x5ced4b[_0x20b99e('0x11fc')][_0x20b99e('0x25be')]&&_0x5ced4b[_0x20b99e('0x11fc')][_0x20b99e('0x25be')]['length']){_0x40da26['errors']=_0x5ced4b[_0x20b99e('0x11fc')][_0x20b99e('0x25be')]||[{'message':_0x5ced4b['toString'](),'type':'api.setting.delete'}];for(let _0x2edce3=0x0;_0x2edce3<_0x5ced4b['data'][_0x20b99e('0x25be')][_0x20b99e('0x2566')];_0x2edce3++){_0x4d21e3[_0x20b99e('0x5e8')]({'title':_0x5ced4b[_0x20b99e('0x11fc')][_0x20b99e('0x25be')][_0x2edce3][_0x20b99e('0x1d7')],'msg':_0x5ced4b['data'][_0x20b99e('0x25be')][_0x2edce3][_0x20b99e('0x15e2')]});}}else _0x4d21e3['error']({'title':_0x5ced4b[_0x20b99e('0x1b51')]?_0x20b99e('0x15d1')+_0x5ced4b['status']+_0x20b99e('0x1b0b')+_0x5ced4b['statusText']:_0x20b99e('0x1cbe'),'msg':_0x5ced4b[_0x20b99e('0x11fc')]?JSON['stringify'](_0x5ced4b['data']['message']):_0x5ced4b['message']||_0x5ced4b['toString']()});});},function(){});}function _0x5201bd(_0x18d201){return _0x18d201===null?undefined:new Date(_0x18d201);}function _0x2accd5(_0x377245){const _0x17259f=_0x3caf8d;_0x2b96db[_0x17259f('0x19d')](_0x377245);}}const _0x437c28=_0x4ee957;_0x36e766[_0x34e79e('0x2d9')]=['customizations',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x130d'),'Auth'];function _0x36e766(_0x600e44,_0x4a07fe,_0x2ce665,_0x3a9305,_0x40c923){const _0x11efbe=_0x34e79e,_0x264b7a=this;_0x264b7a[_0x11efbe('0x9cb')]=_0x40c923[_0x11efbe('0x24cc')](),_0x264b7a['license']=_0x3a9305,_0x264b7a[_0x11efbe('0x12e4')]=_0x600e44,_0x264b7a[_0x11efbe('0x1fc3')]={};_0x264b7a['customizations']&&_0x264b7a['customizations']['rows']&&_0x264b7a[_0x11efbe('0x12e4')][_0x11efbe('0x25df')][_0x11efbe('0x2566')]&&(_0x264b7a[_0x11efbe('0x1fc3')]=_0x264b7a[_0x11efbe('0x12e4')][_0x11efbe('0x25df')][0x0]);_0x264b7a['saveCustomization']=_0x3a2d53;function _0x3a2d53(){const _0x12fca5=_0x11efbe;_0x264b7a[_0x12fca5('0x1fc3')]['id']?_0x4a07fe[_0x12fca5('0x1af0')][_0x12fca5('0x2740')]({'id':_0x264b7a[_0x12fca5('0x1fc3')]['id']},_0x264b7a[_0x12fca5('0x1fc3')])[_0x12fca5('0x1714')][_0x12fca5('0x2788')](function(){const _0x479214=_0x12fca5;_0x2ce665['success']({'title':'Customization\x20updated!','msg':_0x264b7a['customization'][_0x479214('0x1a8d')]?_0x264b7a['customization']['name']+_0x479214('0x6f8'):''});})[_0x12fca5('0x1cb5')](function(_0x118725){const _0xb48372=_0x12fca5;_0x2ce665[_0xb48372('0x5e8')]({'title':_0x118725['status']?_0xb48372('0x15d1')+_0x118725[_0xb48372('0x1b51')]+_0xb48372('0x1b0b')+_0x118725['statusText']:'SYSTEM:GETsetting','msg':_0x118725[_0xb48372('0x11fc')]?JSON[_0xb48372('0x1be0')](_0x118725[_0xb48372('0x11fc')]):_0x118725['toString']()});}):_0x4a07fe[_0x12fca5('0x1af0')][_0x12fca5('0xbd0')](_0x264b7a[_0x12fca5('0x1fc3')])['$promise'][_0x12fca5('0x2788')](function(_0x4159e5){const _0x2cf2d9=_0x12fca5;_0x283545()['merge'](_0x264b7a['customization'],_0x4159e5),_0x2ce665[_0x2cf2d9('0x173b')]({'title':_0x2cf2d9('0x230e'),'msg':_0x264b7a['customization']['name']?_0x264b7a[_0x2cf2d9('0x1fc3')][_0x2cf2d9('0x1a8d')]+_0x2cf2d9('0x6f8'):''});})[_0x12fca5('0x1cb5')](function(_0x44b163){const _0x24755a=_0x12fca5;_0x2ce665[_0x24755a('0x5e8')]({'title':_0x44b163[_0x24755a('0x1b51')]?'API:'+_0x44b163[_0x24755a('0x1b51')]+'\x20-\x20'+_0x44b163[_0x24755a('0x22ce')]:'SYSTEM:GETsetting','msg':_0x44b163[_0x24755a('0x11fc')]?JSON[_0x24755a('0x1be0')](_0x44b163['data']):_0x44b163[_0x24755a('0x17df')]()});});}}const _0x6997fa=_0x36e766;_0x5d8963['$inject']=[_0x34e79e('0x1bfe'),'toasty'];function _0x5d8963(_0x3e0ab0,_0x17c209){const _0x23fe8a=_0x34e79e,_0x168618=this,_0x5ed173=0x8,_0x1dda33=_0x5ed173*0x400*0x400;_0x168618[_0x23fe8a('0x1fc3')]={},_0x168618[_0x23fe8a('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1dda33,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x168618[_0x23fe8a('0x2793')]={'flow':{}},_0x168618[_0x23fe8a('0x189a')]=![],_0x168618[_0x23fe8a('0x1573')]=_0x134668,_0x168618['upload']=_0x444a92,_0x168618[_0x23fe8a('0xc41')]=_0x2a422e,_0x168618['init']=_0x4a4bee;function _0x4a4bee(_0x393f19){const _0x3e79b0=_0x23fe8a;_0x168618[_0x3e79b0('0x1fc3')]=angular[_0x3e79b0('0x2669')](_0x393f19),_0x168618[_0x3e79b0('0x1fce')][_0x3e79b0('0x159c')]=_0x3e79b0('0x99a')[_0x3e79b0('0x10a4')](':id',_0x168618['customization']['id']),_0x168618[_0x3e79b0('0x1fc3')][_0x3e79b0('0x17d5')]=[];}function _0x134668(_0x14f92b){const _0x541002=_0x23fe8a,_0x1399ef=[_0x541002('0x170a'),'jpg',_0x541002('0x23b7')];if(!_0x283545()[_0x541002('0x1d4e')](_0x1399ef,_0x14f92b[_0x541002('0xa31')]()))return _0x17c209[_0x541002('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x14f92b['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x1399ef['join']()}),![];if(_0x14f92b[_0x541002('0x634')]>_0x1dda33)return _0x17c209[_0x541002('0x5e8')]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x5ed173+'MB'}),![];const _0x614ac4={'id':_0x14f92b[_0x541002('0x7c8')],'file':_0x14f92b,'type':_0x541002('0x1c20')};return _0x168618[_0x541002('0x1fc3')][_0x541002('0x17d5')][_0x541002('0xc51')](_0x614ac4),!![];}function _0x444a92(){const _0x5d43c6=_0x23fe8a;_0x168618[_0x5d43c6('0x2793')][_0x5d43c6('0x8a4')][_0x5d43c6('0xcc6')][_0x5d43c6('0x186d')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x5d43c6('0xf2f')+_0x3e0ab0[_0x5d43c6('0x1335')](_0x5d43c6('0x2eb'))},_0x168618[_0x5d43c6('0x2793')]['flow'][_0x5d43c6('0x1b63')]();}function _0x2a422e(_0x280522){const _0x388f44=_0x23fe8a;angular['forEach'](_0x168618[_0x388f44('0x1fc3')][_0x388f44('0x17d5')],function(_0x259177){const _0x4c4ab6=_0x388f44;if(_0x259177['id']===_0x280522['uniqueIdentifier']){const _0x543976=new FileReader();_0x543976[_0x4c4ab6('0x1ccc')](_0x259177[_0x4c4ab6('0x3d5')][_0x4c4ab6('0x3d5')]),_0x543976[_0x4c4ab6('0x2468')]=function(_0x1c0c61){const _0x15c11e=_0x4c4ab6;_0x259177[_0x15c11e('0x1672')]=_0x1c0c61['target'][_0x15c11e('0xdb9')];},_0x259177[_0x4c4ab6('0x1d7')]=_0x4c4ab6('0x157f');}});}}const _0x2cc493=_0x5d8963;_0x246d06[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'toasty'];function _0x246d06(_0xf0aa9d,_0x5c6297){const _0x4a68fb=_0x34e79e,_0x427343=this,_0x1d1621=0x8,_0x547d89=_0x1d1621*0x400*0x400;_0x427343['customization']={},_0x427343[_0x4a68fb('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x547d89,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x427343[_0x4a68fb('0x2793')]={'flow':{}},_0x427343[_0x4a68fb('0x189a')]=![],_0x427343[_0x4a68fb('0x1573')]=_0xfc8dab,_0x427343[_0x4a68fb('0x1b63')]=_0x2184d4,_0x427343[_0x4a68fb('0xc41')]=_0x238bb4,_0x427343[_0x4a68fb('0x24eb')]=_0x5c0824;function _0x5c0824(_0x26485b){const _0x4c0210=_0x4a68fb;_0x427343[_0x4c0210('0x1fc3')]=angular[_0x4c0210('0x2669')](_0x26485b),_0x427343[_0x4c0210('0x1fce')][_0x4c0210('0x159c')]=_0x4c0210('0xa2b')[_0x4c0210('0x10a4')](':id',_0x427343['customization']['id']),_0x427343[_0x4c0210('0x1fc3')]['images']=[];}function _0xfc8dab(_0x33283d){const _0x23086f=_0x4a68fb,_0x29fc46=[_0x23086f('0x170a'),'jpg'];if(!_0x283545()[_0x23086f('0x1d4e')](_0x29fc46,_0x33283d[_0x23086f('0xa31')]()))return _0x5c6297['error']({'title':_0x23086f('0x425')+_0x33283d[_0x23086f('0xa31')](),'msg':'Supported\x20extension:\x20'+_0x29fc46[_0x23086f('0x185f')]()}),![];if(_0x33283d[_0x23086f('0x634')]>_0x547d89)return _0x5c6297[_0x23086f('0x5e8')]({'title':'File\x20too\x20big','msg':_0x23086f('0x232c')+_0x1d1621+'MB'}),![];const _0x43e0a1={'id':_0x33283d[_0x23086f('0x7c8')],'file':_0x33283d,'type':_0x23086f('0x1c20')};return _0x427343[_0x23086f('0x1fc3')][_0x23086f('0x17d5')][_0x23086f('0xc51')](_0x43e0a1),!![];}function _0x2184d4(){const _0x51f1bc=_0x4a68fb;_0x427343['ngFlow'][_0x51f1bc('0x8a4')][_0x51f1bc('0xcc6')][_0x51f1bc('0x186d')]={'X-Requested-With':_0x51f1bc('0xa34'),'Authorization':_0x51f1bc('0xf2f')+_0xf0aa9d[_0x51f1bc('0x1335')](_0x51f1bc('0x2eb'))},_0x427343['ngFlow']['flow'][_0x51f1bc('0x1b63')]();}function _0x238bb4(_0x28a8e2){const _0x4f4cde=_0x4a68fb;angular[_0x4f4cde('0x1534')](_0x427343[_0x4f4cde('0x1fc3')][_0x4f4cde('0x17d5')],function(_0x4d98cc){const _0x4aa4a7=_0x4f4cde;if(_0x4d98cc['id']===_0x28a8e2[_0x4aa4a7('0x7c8')]){const _0x31936c=new FileReader();_0x31936c[_0x4aa4a7('0x1ccc')](_0x4d98cc[_0x4aa4a7('0x3d5')][_0x4aa4a7('0x3d5')]),_0x31936c[_0x4aa4a7('0x2468')]=function(_0x2c60d8){const _0x2ae67a=_0x4aa4a7;_0x4d98cc[_0x2ae67a('0x1672')]=_0x2c60d8[_0x2ae67a('0x159c')][_0x2ae67a('0xdb9')];},_0x4d98cc[_0x4aa4a7('0x1d7')]=_0x4aa4a7('0x157f');}});}}const _0x44a922=_0x246d06;_0x1aa213['$inject']=[_0x34e79e('0x1bfe'),'toasty'];function _0x1aa213(_0x2bc6cc,_0x11d734){const _0x5c196c=_0x34e79e,_0x2b7a14=this,_0x47b762=0x8,_0x5364f2=_0x47b762*0x400*0x400;_0x2b7a14[_0x5c196c('0x1fc3')]={},_0x2b7a14[_0x5c196c('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5364f2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2b7a14[_0x5c196c('0x2793')]={'flow':{}},_0x2b7a14[_0x5c196c('0x189a')]=![],_0x2b7a14[_0x5c196c('0x1573')]=_0x4a74fc,_0x2b7a14[_0x5c196c('0x1b63')]=_0x38f0c6,_0x2b7a14[_0x5c196c('0xc41')]=_0xb16f1e,_0x2b7a14['init']=_0x58f90c;function _0x58f90c(_0x59be15){const _0x3eb066=_0x5c196c;_0x2b7a14[_0x3eb066('0x1fc3')]=angular[_0x3eb066('0x2669')](_0x59be15),_0x2b7a14[_0x3eb066('0x1fce')][_0x3eb066('0x159c')]='/api/settings/1/logo_login'[_0x3eb066('0x10a4')](_0x3eb066('0x1d1e'),_0x2b7a14[_0x3eb066('0x1fc3')]['id']),_0x2b7a14[_0x3eb066('0x1fc3')][_0x3eb066('0x17d5')]=[];}function _0x4a74fc(_0x1e80d0){const _0x211d8a=_0x5c196c,_0x34f0bf=['png',_0x211d8a('0xec2')];if(!_0x283545()[_0x211d8a('0x1d4e')](_0x34f0bf,_0x1e80d0[_0x211d8a('0xa31')]()))return _0x11d734[_0x211d8a('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x1e80d0['getExtension'](),'msg':_0x211d8a('0x250c')+_0x34f0bf[_0x211d8a('0x185f')]()}),![];if(_0x1e80d0[_0x211d8a('0x634')]>_0x5364f2)return _0x11d734['error']({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x47b762+'MB'}),![];const _0x310f22={'id':_0x1e80d0[_0x211d8a('0x7c8')],'file':_0x1e80d0,'type':_0x211d8a('0x1c20')};return _0x2b7a14[_0x211d8a('0x1fc3')][_0x211d8a('0x17d5')]['unshift'](_0x310f22),!![];}function _0x38f0c6(){const _0x3929d3=_0x5c196c;_0x2b7a14[_0x3929d3('0x2793')][_0x3929d3('0x8a4')][_0x3929d3('0xcc6')][_0x3929d3('0x186d')]={'X-Requested-With':_0x3929d3('0xa34'),'Authorization':_0x3929d3('0xf2f')+_0x2bc6cc[_0x3929d3('0x1335')]('motion.token')},_0x2b7a14[_0x3929d3('0x2793')][_0x3929d3('0x8a4')][_0x3929d3('0x1b63')]();}function _0xb16f1e(_0x410871){const _0x2a4361=_0x5c196c;angular['forEach'](_0x2b7a14[_0x2a4361('0x1fc3')][_0x2a4361('0x17d5')],function(_0x487d96){const _0x56079c=_0x2a4361;if(_0x487d96['id']===_0x410871[_0x56079c('0x7c8')]){const _0x3e3a3a=new FileReader();_0x3e3a3a[_0x56079c('0x1ccc')](_0x487d96[_0x56079c('0x3d5')]['file']),_0x3e3a3a[_0x56079c('0x2468')]=function(_0x33a633){const _0x52501e=_0x56079c;_0x487d96[_0x52501e('0x1672')]=_0x33a633[_0x52501e('0x159c')][_0x52501e('0xdb9')];},_0x487d96[_0x56079c('0x1d7')]='image';}});}}const _0x240698=_0x1aa213;_0x52c681[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0xd57')];function _0x52c681(_0x1184a3,_0x16cb7c){const _0x516394=_0x34e79e,_0x21a173=this,_0x25b1ce=0x8,_0x1e7414=_0x25b1ce*0x400*0x400;_0x21a173[_0x516394('0x1fc3')]={},_0x21a173[_0x516394('0x1fce')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1e7414,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x21a173[_0x516394('0x2793')]={'flow':{}},_0x21a173[_0x516394('0x189a')]=![],_0x21a173[_0x516394('0x1573')]=_0x30c5e2,_0x21a173['upload']=_0x55d074,_0x21a173[_0x516394('0xc41')]=_0x490fd8,_0x21a173[_0x516394('0x24eb')]=_0x21afa3;function _0x21afa3(_0x52888c){const _0x1d8735=_0x516394;_0x21a173['customization']=angular[_0x1d8735('0x2669')](_0x52888c),_0x21a173[_0x1d8735('0x1fce')][_0x1d8735('0x159c')]=_0x1d8735('0x1c93')[_0x1d8735('0x10a4')](_0x1d8735('0x1d1e'),_0x21a173['customization']['id']),_0x21a173['customization'][_0x1d8735('0x17d5')]=[];}function _0x30c5e2(_0x5da906){const _0x264cb5=_0x516394,_0x3460a4=[_0x264cb5('0x170a'),_0x264cb5('0xec2')];if(!_0x283545()[_0x264cb5('0x1d4e')](_0x3460a4,_0x5da906[_0x264cb5('0xa31')]()))return _0x16cb7c[_0x264cb5('0x5e8')]({'title':_0x264cb5('0x425')+_0x5da906[_0x264cb5('0xa31')](),'msg':'Supported\x20extension:\x20'+_0x3460a4[_0x264cb5('0x185f')]()}),![];if(_0x5da906[_0x264cb5('0x634')]>_0x1e7414)return _0x16cb7c['error']({'title':'File\x20too\x20big','msg':_0x264cb5('0x232c')+_0x25b1ce+'MB'}),![];const _0x592266={'id':_0x5da906[_0x264cb5('0x7c8')],'file':_0x5da906,'type':'uploading'};return _0x21a173['customization'][_0x264cb5('0x17d5')]['unshift'](_0x592266),!![];}function _0x55d074(){const _0x291194=_0x516394;_0x21a173[_0x291194('0x2793')]['flow'][_0x291194('0xcc6')][_0x291194('0x186d')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x291194('0xf2f')+_0x1184a3[_0x291194('0x1335')]('motion.token')},_0x21a173[_0x291194('0x2793')]['flow'][_0x291194('0x1b63')]();}function _0x490fd8(_0x3efba4){const _0x3f064e=_0x516394;angular[_0x3f064e('0x1534')](_0x21a173[_0x3f064e('0x1fc3')][_0x3f064e('0x17d5')],function(_0x416bc0){const _0x2d2310=_0x3f064e;if(_0x416bc0['id']===_0x3efba4[_0x2d2310('0x7c8')]){const _0xe6ff8d=new FileReader();_0xe6ff8d['readAsDataURL'](_0x416bc0[_0x2d2310('0x3d5')][_0x2d2310('0x3d5')]),_0xe6ff8d[_0x2d2310('0x2468')]=function(_0x3fc803){const _0x467264=_0x2d2310;_0x416bc0[_0x467264('0x1672')]=_0x3fc803[_0x467264('0x159c')][_0x467264('0xdb9')];},_0x416bc0[_0x2d2310('0x1d7')]=_0x2d2310('0x157f');}});}}const _0x32ba53=_0x52c681;_0x17063d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state','$location',_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),'generals',_0x34e79e('0x2419'),'api',_0x34e79e('0x1b04'),'license','setting',_0x34e79e('0xe28')];function _0x17063d(_0x362ab9,_0x192ac5,_0x2010eb,_0x124782,_0x4fbf17,_0x584e28,_0xaae908,_0x65fa87,_0x104248,_0x5b57d9,_0x3e26e8,_0x3ab615,_0x3e08b1,_0x15276){const _0x4b2380=_0x34e79e,_0x59aa22=this;_0x59aa22[_0x4b2380('0x9cb')]=_0x3e26e8['getCurrentUser'](),_0x59aa22['errors']=[],_0x59aa22[_0x4b2380('0x1af0')]=_0x3e08b1,_0x59aa22[_0x4b2380('0x130d')]=_0x3ab615,_0x59aa22[_0x4b2380('0xe28')]=_0x15276,_0x59aa22[_0x4b2380('0x1193')]={},_0x59aa22[_0x4b2380('0x18ad')]=_0x59aa22['setting']&&_0x59aa22['setting'][_0x4b2380('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59aa22[_0x4b2380('0x14e4')]='SETTINGS.EDIT_GENERAL',_0x59aa22[_0x4b2380('0x2419')]=angular[_0x4b2380('0x2669')](_0x104248),_0x59aa22[_0x4b2380('0x5a4')]=_0x65fa87,_0x59aa22[_0x4b2380('0x3f8')]=![];!_0x59aa22[_0x4b2380('0x2419')]&&(_0x59aa22[_0x4b2380('0x2419')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x4b2380('0x210b'),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x4b2380('0x176f'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x59aa22[_0x4b2380('0x14e4')]=_0x4b2380('0x2162'),_0x59aa22['newGeneral']=!![]);_0x59aa22[_0x4b2380('0x1e7')]=_0x169bb1,_0x59aa22[_0x4b2380('0x23ac')]=_0x2c7364,_0x59aa22[_0x4b2380('0x4a4')]=_0x5035c7,_0x59aa22[_0x4b2380('0x2601')]=_0x470b64,_0x59aa22[_0x4b2380('0xca7')]=_0x38ed58,_0x5b57d9[_0x4b2380('0x958')][_0x4b2380('0x1335')]({'fields':_0x4b2380('0x1338'),'sort':_0x4b2380('0x1a8d'),'nolimit':_0x4b2380('0x1001')})[_0x4b2380('0x1714')]['then'](function(_0x54d653){_0x59aa22['cloudProviders']=_0x54d653['rows']||[];})[_0x4b2380('0x1cb5')](function(_0x79905b){const _0x5d66c0=_0x4b2380;_0xaae908[_0x5d66c0('0x5e8')]({'title':_0x79905b[_0x5d66c0('0x1b51')]?_0x5d66c0('0x15d1')+_0x79905b[_0x5d66c0('0x1b51')]+_0x5d66c0('0x1b0b')+_0x79905b[_0x5d66c0('0x22ce')]:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0x79905b[_0x5d66c0('0x11fc')]?JSON[_0x5d66c0('0x1be0')](_0x79905b[_0x5d66c0('0x11fc')]):_0x79905b['toString']()});});function _0x169bb1(){const _0x7d981f=_0x4b2380;_0x59aa22[_0x7d981f('0x25be')]=[],_0x5b57d9[_0x7d981f('0x1af0')][_0x7d981f('0xbd0')](_0x59aa22[_0x7d981f('0x2419')])[_0x7d981f('0x1714')][_0x7d981f('0x2788')](function(_0x1b416a){const _0x54bd86=_0x7d981f;_0x59aa22[_0x54bd86('0x5a4')][_0x54bd86('0xc51')](_0x1b416a[_0x54bd86('0x1cbf')]()),_0xaae908['success']({'title':_0x54bd86('0x148a'),'msg':_0x59aa22['general'][_0x54bd86('0x1a8d')]?_0x59aa22[_0x54bd86('0x2419')]['name']+_0x54bd86('0x1e4a'):''}),_0x38ed58(_0x1b416a);})['catch'](function(_0x500073){const _0x389154=_0x7d981f;if(_0x500073[_0x389154('0x11fc')]&&_0x500073['data'][_0x389154('0x25be')]&&_0x500073['data'][_0x389154('0x25be')][_0x389154('0x2566')]){_0x59aa22[_0x389154('0x25be')]=_0x500073['data'][_0x389154('0x25be')]||[{'message':_0x500073[_0x389154('0x17df')](),'type':_0x389154('0x75a')}];for(let _0x1ecbcd=0x0;_0x1ecbcd<_0x500073[_0x389154('0x11fc')][_0x389154('0x25be')][_0x389154('0x2566')];_0x1ecbcd+=0x1){_0xaae908[_0x389154('0x5e8')]({'title':_0x500073[_0x389154('0x11fc')][_0x389154('0x25be')][_0x1ecbcd][_0x389154('0x1d7')],'msg':_0x500073['data']['errors'][_0x1ecbcd][_0x389154('0x15e2')]});}}else _0xaae908['error']({'title':_0x500073[_0x389154('0x1b51')]?'API:'+_0x500073['status']+'\x20-\x20'+_0x500073[_0x389154('0x22ce')]:'api.setting.save','msg':_0x500073[_0x389154('0x11fc')]?JSON[_0x389154('0x1be0')](_0x500073[_0x389154('0x11fc')][_0x389154('0x15e2')]):_0x500073[_0x389154('0x17df')]()});});}function _0x2c7364(){const _0x36fc37=_0x4b2380;_0x59aa22[_0x36fc37('0x25be')]=[],_0x5b57d9['setting'][_0x36fc37('0x2740')]({'id':_0x59aa22[_0x36fc37('0x2419')]['id']},_0x59aa22[_0x36fc37('0x2419')])['$promise']['then'](function(_0x1b6950){const _0x9fc9a7=_0x36fc37,_0x293d7d=_0x283545()[_0x9fc9a7('0x20e8')](_0x59aa22[_0x9fc9a7('0x5a4')],{'id':_0x1b6950['id']});_0x293d7d&&_0x283545()['merge'](_0x293d7d,_0x283545()[_0x9fc9a7('0x41b')](_0x1b6950[_0x9fc9a7('0x1cbf')](),_0x283545()[_0x9fc9a7('0x2163')](_0x293d7d))),_0xaae908[_0x9fc9a7('0x173b')]({'title':_0x9fc9a7('0x4e2'),'msg':_0x59aa22[_0x9fc9a7('0x2419')][_0x9fc9a7('0x1a8d')]?_0x59aa22[_0x9fc9a7('0x2419')][_0x9fc9a7('0x1a8d')]+_0x9fc9a7('0x24cf'):''}),_0x38ed58(_0x1b6950);})[_0x36fc37('0x1cb5')](function(_0x4dd5f4){const _0x1e98bf=_0x36fc37;if(_0x4dd5f4['data']&&_0x4dd5f4[_0x1e98bf('0x11fc')][_0x1e98bf('0x25be')]&&_0x4dd5f4[_0x1e98bf('0x11fc')][_0x1e98bf('0x25be')]['length']){_0x59aa22[_0x1e98bf('0x25be')]=_0x4dd5f4[_0x1e98bf('0x11fc')][_0x1e98bf('0x25be')]||[{'message':_0x4dd5f4[_0x1e98bf('0x17df')](),'type':_0x1e98bf('0x1a01')}];for(let _0xe3fa76=0x0;_0xe3fa76<_0x4dd5f4[_0x1e98bf('0x11fc')]['errors']['length'];_0xe3fa76++){_0xaae908['error']({'title':_0x4dd5f4['data'][_0x1e98bf('0x25be')][_0xe3fa76]['type'],'msg':_0x4dd5f4[_0x1e98bf('0x11fc')][_0x1e98bf('0x25be')][_0xe3fa76]['message']});}}else _0xaae908['error']({'title':_0x4dd5f4[_0x1e98bf('0x1b51')]?_0x1e98bf('0x15d1')+_0x4dd5f4['status']+'\x20-\x20'+_0x4dd5f4['statusText']:_0x1e98bf('0x1a01'),'msg':_0x4dd5f4[_0x1e98bf('0x11fc')]?JSON[_0x1e98bf('0x1be0')](_0x4dd5f4[_0x1e98bf('0x11fc')][_0x1e98bf('0x15e2')]):_0x4dd5f4[_0x1e98bf('0x17df')]()});});}function _0x5035c7(_0x31074d){const _0x307aac=_0x4b2380;_0x59aa22[_0x307aac('0x25be')]=[];const _0x50a49e=_0x124782[_0x307aac('0x112e')]()['title']('Are\x20you\x20sure?')[_0x307aac('0x1c98')](_0x307aac('0x67f'))[_0x307aac('0x10bc')]('Delete\x20General')['ok'](_0x307aac('0x2786'))[_0x307aac('0x1801')](_0x307aac('0x1481'))[_0x307aac('0x24d0')](_0x31074d);_0x124782[_0x307aac('0x2fa')](_0x50a49e)['then'](function(){const _0x1c0bad=_0x307aac;_0x5b57d9[_0x1c0bad('0x1af0')][_0x1c0bad('0x17c4')]({'id':_0x59aa22[_0x1c0bad('0x2419')]['id']})['$promise'][_0x1c0bad('0x2788')](function(){const _0x3a2e5c=_0x1c0bad;_0x283545()[_0x3a2e5c('0x1a90')](_0x59aa22['generals'],{'id':_0x59aa22[_0x3a2e5c('0x2419')]['id']}),_0xaae908[_0x3a2e5c('0x173b')]({'title':_0x3a2e5c('0x1ece'),'msg':(_0x59aa22[_0x3a2e5c('0x2419')][_0x3a2e5c('0x1a8d')]||_0x3a2e5c('0x2419'))+_0x3a2e5c('0x14d4')}),_0x38ed58(_0x59aa22[_0x3a2e5c('0x2419')]);})['catch'](function(_0x192ba4){const _0x5317b7=_0x1c0bad;if(_0x192ba4['data']&&_0x192ba4['data']['errors']&&_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x25be')][_0x5317b7('0x2566')]){_0x59aa22['errors']=_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x25be')]||[{'message':_0x192ba4['toString'](),'type':_0x5317b7('0x1cbe')}];for(let _0x46dde0=0x0;_0x46dde0<_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x25be')][_0x5317b7('0x2566')];_0x46dde0++){_0xaae908['error']({'title':_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x25be')][_0x46dde0][_0x5317b7('0x1d7')],'msg':_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x25be')][_0x46dde0][_0x5317b7('0x15e2')]});}}else _0xaae908[_0x5317b7('0x5e8')]({'title':_0x192ba4[_0x5317b7('0x1b51')]?_0x5317b7('0x15d1')+_0x192ba4['status']+_0x5317b7('0x1b0b')+_0x192ba4[_0x5317b7('0x22ce')]:_0x5317b7('0x1cbe'),'msg':_0x192ba4['data']?JSON[_0x5317b7('0x1be0')](_0x192ba4[_0x5317b7('0x11fc')][_0x5317b7('0x15e2')]):_0x192ba4[_0x5317b7('0x15e2')]||_0x192ba4[_0x5317b7('0x17df')]()});});},function(){});}function _0x470b64(_0x4a2b59){return _0x4a2b59===null?undefined:new Date(_0x4a2b59);}function _0x38ed58(_0x15ff86){const _0x1b0ebd=_0x4b2380;_0x124782[_0x1b0ebd('0x19d')](_0x15ff86);}}const _0x481607=_0x17063d;_0x531b90['$inject']=[_0x34e79e('0x5a4'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x130d'),_0x34e79e('0x1b04')];function _0x531b90(_0x5bb663,_0x14ccec,_0x50bce4,_0xcbccc,_0x29cb5b){const _0x43eaa7=_0x34e79e,_0x5a7f62=this;_0x5a7f62[_0x43eaa7('0x9cb')]=_0x29cb5b['getCurrentUser'](),_0x5a7f62[_0x43eaa7('0x130d')]=_0xcbccc,_0x5a7f62[_0x43eaa7('0x5a4')]=_0x5bb663,_0x5a7f62[_0x43eaa7('0x2419')]={};_0x5a7f62['generals']&&_0x5a7f62['generals'][_0x43eaa7('0x25df')]&&_0x5a7f62[_0x43eaa7('0x5a4')][_0x43eaa7('0x25df')][_0x43eaa7('0x2566')]&&(_0x5a7f62[_0x43eaa7('0x2419')]=_0x5a7f62[_0x43eaa7('0x5a4')][_0x43eaa7('0x25df')][0x0]);_0x14ccec['cloudProvider'][_0x43eaa7('0x1335')]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x43eaa7('0x1714')][_0x43eaa7('0x2788')](function(_0x5c3f97){const _0x51b3a0=_0x43eaa7;_0x5a7f62['cloudProviders']=_0x5c3f97[_0x51b3a0('0x25df')]||[];})[_0x43eaa7('0x1cb5')](function(_0x3eb621){const _0x3d93c3=_0x43eaa7;_0x50bce4[_0x3d93c3('0x5e8')]({'title':_0x3eb621[_0x3d93c3('0x1b51')]?_0x3d93c3('0x15d1')+_0x3eb621[_0x3d93c3('0x1b51')]+_0x3d93c3('0x1b0b')+_0x3eb621[_0x3d93c3('0x22ce')]:_0x3d93c3('0x3'),'msg':_0x3eb621[_0x3d93c3('0x11fc')]?JSON[_0x3d93c3('0x1be0')](_0x3eb621[_0x3d93c3('0x11fc')]):_0x3eb621[_0x3d93c3('0x17df')]()});}),_0x5a7f62[_0x43eaa7('0x23ac')]=_0x25cd09;function _0x25cd09(){const _0x4520f5=_0x43eaa7;_0x5a7f62[_0x4520f5('0x2419')]['id']?_0x14ccec[_0x4520f5('0x1af0')][_0x4520f5('0x2740')]({'id':_0x5a7f62['general']['id']},_0x5a7f62[_0x4520f5('0x2419')])['$promise'][_0x4520f5('0x2788')](function(){const _0x41a538=_0x4520f5;_0x50bce4[_0x41a538('0x173b')]({'title':_0x41a538('0x1941'),'msg':_0x5a7f62[_0x41a538('0x2419')][_0x41a538('0x1a8d')]?_0x5a7f62[_0x41a538('0x2419')]['name']+_0x41a538('0x6f8'):''});})[_0x4520f5('0x1cb5')](function(_0x5094e9){const _0x10ebc0=_0x4520f5;_0x50bce4[_0x10ebc0('0x5e8')]({'title':_0x5094e9[_0x10ebc0('0x1b51')]?_0x10ebc0('0x15d1')+_0x5094e9[_0x10ebc0('0x1b51')]+_0x10ebc0('0x1b0b')+_0x5094e9[_0x10ebc0('0x22ce')]:'SYSTEM:GETsetting','msg':_0x5094e9[_0x10ebc0('0x11fc')]?JSON['stringify'](_0x5094e9['data']):_0x5094e9[_0x10ebc0('0x17df')]()});}):_0x14ccec[_0x4520f5('0x1af0')]['save'](_0x5a7f62['general'])[_0x4520f5('0x1714')]['then'](function(_0x295dd9){const _0x2140df=_0x4520f5;_0x283545()['merge'](_0x5a7f62['general'],_0x295dd9),_0x50bce4['success']({'title':_0x2140df('0x1941'),'msg':_0x5a7f62['general'][_0x2140df('0x1a8d')]?_0x5a7f62['general'][_0x2140df('0x1a8d')]+_0x2140df('0x6f8'):''});})[_0x4520f5('0x1cb5')](function(_0x11dd76){const _0x58bed2=_0x4520f5;_0x50bce4[_0x58bed2('0x5e8')]({'title':_0x11dd76[_0x58bed2('0x1b51')]?_0x58bed2('0x15d1')+_0x11dd76[_0x58bed2('0x1b51')]+'\x20-\x20'+_0x11dd76[_0x58bed2('0x22ce')]:_0x58bed2('0x1ec8'),'msg':_0x11dd76[_0x58bed2('0x11fc')]?JSON['stringify'](_0x11dd76['data']):_0x11dd76[_0x58bed2('0x17df')]()});});}}const _0x250f56=_0x531b90;_0x1fdc80['$inject']=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x112f'),_0x34e79e('0x689'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x1fdc80(_0x4c853c,_0x19f5bc,_0x3948ee,_0x3cb830,_0x5e0109,_0x1b8fac,_0x15e6c5,_0x5b1bb1,_0x3dba89,_0x461f12,_0x401e17,_0x592b23,_0xa1c3e4){const _0x39b9f=_0x34e79e,_0x5ca841=this;_0x5ca841['currentUser']=_0x401e17[_0x39b9f('0x24cc')](),_0x5ca841[_0x39b9f('0x25be')]=[],_0x5ca841[_0x39b9f('0x1af0')]=_0xa1c3e4,_0x5ca841[_0x39b9f('0x130d')]=_0x592b23,_0x5ca841[_0x39b9f('0x1193')]={},_0x5ca841[_0x39b9f('0x18ad')]=_0x5ca841[_0x39b9f('0x1af0')]&&_0x5ca841[_0x39b9f('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ca841[_0x39b9f('0x14e4')]='SETTINGS.EDIT_NETWORK',_0x5ca841[_0x39b9f('0x689')]=angular[_0x39b9f('0x2669')](_0x3dba89),_0x5ca841[_0x39b9f('0x112f')]=_0x5b1bb1,_0x5ca841[_0x39b9f('0x4d6')]=![];!_0x5ca841['network']&&(_0x5ca841['network']={'type':_0x39b9f('0x268e')},_0x5ca841[_0x39b9f('0x14e4')]=_0x39b9f('0x237c'),_0x5ca841[_0x39b9f('0x4d6')]=!![]);_0x5ca841[_0x39b9f('0x1d68')]=_0x52cff0,_0x5ca841[_0x39b9f('0x1d51')]=_0x2378c5,_0x5ca841[_0x39b9f('0x24b7')]=_0x501958,_0x5ca841[_0x39b9f('0x2601')]=_0x467e03,_0x5ca841[_0x39b9f('0xca7')]=_0x3cdb85;function _0x52cff0(){const _0x4bf668=_0x39b9f;_0x5ca841[_0x4bf668('0x25be')]=[],_0x461f12[_0x4bf668('0x689')][_0x4bf668('0xbd0')](_0x5ca841[_0x4bf668('0x689')])['$promise'][_0x4bf668('0x2788')](function(_0x3c1050){const _0x5d319f=_0x4bf668;_0x5ca841['networks'][_0x5d319f('0xc51')](_0x3c1050[_0x5d319f('0x1cbf')]()),_0x15e6c5[_0x5d319f('0x173b')]({'title':'Network\x20properly\x20created','msg':_0x5ca841['network'][_0x5d319f('0x1a8d')]?_0x5ca841[_0x5d319f('0x689')]['name']+_0x5d319f('0x1e4a'):''}),_0x3cdb85(_0x3c1050);})[_0x4bf668('0x1cb5')](function(_0x13f409){const _0x1cad67=_0x4bf668;if(_0x13f409[_0x1cad67('0x11fc')]&&_0x13f409[_0x1cad67('0x11fc')][_0x1cad67('0x25be')]&&_0x13f409[_0x1cad67('0x11fc')]['errors'][_0x1cad67('0x2566')]){_0x5ca841[_0x1cad67('0x25be')]=_0x13f409['data'][_0x1cad67('0x25be')]||[{'message':_0x13f409[_0x1cad67('0x17df')](),'type':_0x1cad67('0xd65')}];for(let _0x234d17=0x0;_0x234d17<_0x13f409[_0x1cad67('0x11fc')][_0x1cad67('0x25be')][_0x1cad67('0x2566')];_0x234d17+=0x1){_0x15e6c5['error']({'title':_0x13f409[_0x1cad67('0x11fc')][_0x1cad67('0x25be')][_0x234d17][_0x1cad67('0x1d7')],'msg':_0x13f409[_0x1cad67('0x11fc')][_0x1cad67('0x25be')][_0x234d17][_0x1cad67('0x15e2')]});}}else _0x15e6c5['error']({'title':_0x13f409['status']?_0x1cad67('0x15d1')+_0x13f409[_0x1cad67('0x1b51')]+'\x20-\x20'+_0x13f409['statusText']:_0x1cad67('0xd65'),'msg':_0x13f409[_0x1cad67('0x11fc')]?JSON[_0x1cad67('0x1be0')](_0x13f409[_0x1cad67('0x11fc')]['message']):_0x13f409[_0x1cad67('0x17df')]()});});}function _0x2378c5(){const _0x327aff=_0x39b9f;_0x5ca841[_0x327aff('0x25be')]=[],_0x461f12[_0x327aff('0x689')][_0x327aff('0x2740')]({'id':_0x5ca841['network']['id']},_0x5ca841[_0x327aff('0x689')])[_0x327aff('0x1714')][_0x327aff('0x2788')](function(_0xb12d39){const _0x36d670=_0x327aff,_0x1a2103=_0x283545()[_0x36d670('0x20e8')](_0x5ca841['networks'],{'id':_0xb12d39['id']});_0x1a2103&&_0x283545()[_0x36d670('0x2503')](_0x1a2103,_0x283545()[_0x36d670('0x41b')](_0xb12d39[_0x36d670('0x1cbf')](),_0x283545()[_0x36d670('0x2163')](_0x1a2103))),_0x15e6c5[_0x36d670('0x173b')]({'title':_0x36d670('0x65c'),'msg':_0x5ca841['network'][_0x36d670('0x1a8d')]?_0x5ca841[_0x36d670('0x689')][_0x36d670('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x3cdb85(_0xb12d39);})[_0x327aff('0x1cb5')](function(_0x4e01ae){const _0x3999a5=_0x327aff;if(_0x4e01ae[_0x3999a5('0x11fc')]&&_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x25be')]&&_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x25be')][_0x3999a5('0x2566')]){_0x5ca841['errors']=_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x25be')]||[{'message':_0x4e01ae[_0x3999a5('0x17df')](),'type':_0x3999a5('0x26c6')}];for(let _0x3fedc5=0x0;_0x3fedc5<_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x25be')][_0x3999a5('0x2566')];_0x3fedc5++){_0x15e6c5[_0x3999a5('0x5e8')]({'title':_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x25be')][_0x3fedc5][_0x3999a5('0x1d7')],'msg':_0x4e01ae[_0x3999a5('0x11fc')]['errors'][_0x3fedc5][_0x3999a5('0x15e2')]});}}else _0x15e6c5[_0x3999a5('0x5e8')]({'title':_0x4e01ae['status']?_0x3999a5('0x15d1')+_0x4e01ae[_0x3999a5('0x1b51')]+'\x20-\x20'+_0x4e01ae['statusText']:_0x3999a5('0x26c6'),'msg':_0x4e01ae['data']?JSON[_0x3999a5('0x1be0')](_0x4e01ae[_0x3999a5('0x11fc')][_0x3999a5('0x15e2')]):_0x4e01ae[_0x3999a5('0x17df')]()});});}function _0x501958(_0x3f8770){const _0x2ef60c=_0x39b9f;_0x5ca841[_0x2ef60c('0x25be')]=[];const _0x4c748e=_0x3cb830[_0x2ef60c('0x112e')]()[_0x2ef60c('0x14e4')](_0x2ef60c('0x458'))['content']('The\x20network\x20will\x20be\x20deleted.')[_0x2ef60c('0x10bc')]('Delete\x20Network')['ok'](_0x2ef60c('0x2786'))[_0x2ef60c('0x1801')]('Cancel')[_0x2ef60c('0x24d0')](_0x3f8770);_0x3cb830['show'](_0x4c748e)[_0x2ef60c('0x2788')](function(){const _0x3c6144=_0x2ef60c;_0x461f12[_0x3c6144('0x689')][_0x3c6144('0x17c4')]({'id':_0x5ca841[_0x3c6144('0x689')]['id']})[_0x3c6144('0x1714')]['then'](function(){const _0x6e973c=_0x3c6144;_0x283545()['remove'](_0x5ca841[_0x6e973c('0x112f')],{'id':_0x5ca841[_0x6e973c('0x689')]['id']}),_0x15e6c5[_0x6e973c('0x173b')]({'title':'Network\x20properly\x20deleted!','msg':(_0x5ca841['network'][_0x6e973c('0x1a8d')]||_0x6e973c('0x689'))+'\x20has\x20been\x20deleted!'}),_0x3cdb85(_0x5ca841['network']);})['catch'](function(_0x60e126){const _0x5f1f4b=_0x3c6144;if(_0x60e126[_0x5f1f4b('0x11fc')]&&_0x60e126['data'][_0x5f1f4b('0x25be')]&&_0x60e126[_0x5f1f4b('0x11fc')][_0x5f1f4b('0x25be')][_0x5f1f4b('0x2566')]){_0x5ca841[_0x5f1f4b('0x25be')]=_0x60e126[_0x5f1f4b('0x11fc')][_0x5f1f4b('0x25be')]||[{'message':_0x60e126['toString'](),'type':'api.network.delete'}];for(let _0x406a09=0x0;_0x406a09<_0x60e126['data'][_0x5f1f4b('0x25be')][_0x5f1f4b('0x2566')];_0x406a09++){_0x15e6c5[_0x5f1f4b('0x5e8')]({'title':_0x60e126[_0x5f1f4b('0x11fc')][_0x5f1f4b('0x25be')][_0x406a09]['type'],'msg':_0x60e126['data']['errors'][_0x406a09][_0x5f1f4b('0x15e2')]});}}else _0x15e6c5[_0x5f1f4b('0x5e8')]({'title':_0x60e126['status']?_0x5f1f4b('0x15d1')+_0x60e126[_0x5f1f4b('0x1b51')]+'\x20-\x20'+_0x60e126[_0x5f1f4b('0x22ce')]:'api.network.delete','msg':_0x60e126[_0x5f1f4b('0x11fc')]?JSON[_0x5f1f4b('0x1be0')](_0x60e126[_0x5f1f4b('0x11fc')]['message']):_0x60e126[_0x5f1f4b('0x15e2')]||_0x60e126[_0x5f1f4b('0x17df')]()});});},function(){});}function _0x467e03(_0x3f2891){return _0x3f2891===null?undefined:new Date(_0x3f2891);}function _0x3cdb85(_0x2a5410){const _0x2625c3=_0x39b9f;_0x3cb830[_0x2625c3('0x19d')](_0x2a5410);}}const _0x3544e6=_0x1fdc80,_0x1c9e50=_0x18dd13['p']+_0x34e79e('0x1e47');_0x16bff5['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x112f'),'api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x16bff5(_0x176f9d,_0x519467,_0x16df76,_0x4af6e8,_0x292aa8,_0xe7bccf,_0x3fd528,_0x404ae9,_0x27093b,_0x25beab,_0x3df356,_0x4b84a8,_0x252323,_0xe0b6fc,_0x1c8d6c){const _0x4ba415=_0x34e79e,_0x359ca8=this;_0x359ca8['license']=_0xe0b6fc,_0x359ca8['setting']=_0x1c8d6c,_0x359ca8[_0x4ba415('0x9cb')]=_0x252323[_0x4ba415('0x24cc')](),_0x359ca8['networks']=_0x27093b||{'count':0x0,'rows':[]},_0x359ca8['table']=_0x4ba415('0x112f'),_0x359ca8['listOrder']='',_0x359ca8[_0x4ba415('0x25e2')]=null,_0x359ca8[_0x4ba415('0x18e1')]=[],_0x359ca8[_0x4ba415('0x135a')]={'fields':_0x4ba415('0xf58'),'sort':_0x4ba415('0x1cee'),'limit':0xa,'page':0x1},_0x359ca8['arraytype']=_0x283545()[_0x4ba415('0x13cf')]([{'option':'LocalNET','value':_0x4ba415('0x1616')},{'option':'ExternIP','value':_0x4ba415('0x6ac')},{'option':_0x4ba415('0x1619'),'value':_0x4ba415('0x20a4')},{'option':_0x4ba415('0x1908'),'value':_0x4ba415('0x1fca')}],function(_0x72e1a7){const _0x43c513=_0x4ba415;return _0x283545()['replace'](_0x72e1a7[_0x43c513('0x49')],new RegExp('\x27','g'),'');}),_0x359ca8[_0x4ba415('0x23af')]=_0x579640,_0x359ca8[_0x4ba415('0x1e5')]=_0x305f37,_0x359ca8[_0x4ba415('0x173b')]=_0x44e9c3,_0x359ca8[_0x4ba415('0x1512')]=_0x5e7564,_0x359ca8[_0x4ba415('0x166d')]=_0x424920,_0x359ca8[_0x4ba415('0x24b7')]=_0x5d2148,_0x359ca8[_0x4ba415('0xe33')]=_0x2a7b64,_0x359ca8[_0x4ba415('0x2473')]=_0x4d6008,_0x359ca8[_0x4ba415('0x13f5')]=_0x1a4fa7,_0x359ca8['selectAllNetworks']=_0x4fd0a3;function _0x579640(_0x5d6832,_0x4c948f){const _0x3a2310=_0x4ba415;_0x292aa8[_0x3a2310('0x2fa')]({'controller':_0x3a2310('0x93'),'controllerAs':'vm','templateUrl':_0x1c9e50,'parent':angular[_0x3a2310('0x16b1')](_0xe7bccf['body']),'targetEvent':_0x4c948f,'clickOutsideToClose':!![],'locals':{'network':_0x5d6832,'networks':_0x359ca8[_0x3a2310('0x112f')][_0x3a2310('0x25df')],'license':_0x359ca8[_0x3a2310('0x130d')],'setting':null,'crudPermissions':_0x359ca8[_0x3a2310('0xe28')]}});}function _0x305f37(_0x36c8cd,_0x3a743b){const _0x35e7c4=_0x4ba415,_0x252a82=_0x292aa8[_0x35e7c4('0x112e')]()[_0x35e7c4('0x14e4')](_0x35e7c4('0x2114')+_0x283545()['startCase']('network')+'?')[_0x35e7c4('0x93e')](_0x35e7c4('0x1670')+(_0x36c8cd['name']||_0x35e7c4('0x689'))+_0x35e7c4('0x229e')+_0x35e7c4('0x27c7'))[_0x35e7c4('0x10bc')](_0x35e7c4('0x8d7'))[_0x35e7c4('0x24d0')](_0x3a743b)['ok']('OK')[_0x35e7c4('0x1801')]('CANCEL');_0x292aa8[_0x35e7c4('0x2fa')](_0x252a82)[_0x35e7c4('0x2788')](function(){_0x5d2148(_0x36c8cd);},function(){const _0x401f62=_0x35e7c4;console[_0x401f62('0x10df')](_0x401f62('0x1d8d'));});}let _0x2ba6c3=!![],_0x287062=0x1;_0x176f9d[_0x4ba415('0x1662')](_0x4ba415('0x1569'),function(_0x16a219,_0x1df13a){const _0x28a7ae=_0x4ba415;_0x2ba6c3?_0x3fd528(function(){_0x2ba6c3=![];}):(!_0x1df13a&&(_0x287062=_0x359ca8[_0x28a7ae('0x135a')][_0x28a7ae('0x23f5')]),_0x16a219!==_0x1df13a&&(_0x359ca8['query']['page']=0x1),!_0x16a219&&(_0x359ca8[_0x28a7ae('0x135a')][_0x28a7ae('0x23f5')]=_0x287062),_0x359ca8[_0x28a7ae('0x1512')]());});function _0x44e9c3(_0x2c9b52){_0x359ca8['networks']=_0x2c9b52||{'count':0x0,'rows':[]};}function _0x5e7564(){const _0x15942c=_0x4ba415;_0x359ca8[_0x15942c('0x135a')][_0x15942c('0x19e')]=(_0x359ca8[_0x15942c('0x135a')]['page']-0x1)*_0x359ca8['query']['limit'],_0x252323[_0x15942c('0x1516')]('admin')?_0x359ca8['promise']=_0x25beab[_0x15942c('0x689')]['get'](_0x359ca8['query'],_0x44e9c3)[_0x15942c('0x1714')]:(_0x359ca8[_0x15942c('0x135a')]['id']=_0x359ca8[_0x15942c('0x63c')]['id'],_0x359ca8['query'][_0x15942c('0xb13')]=_0x15942c('0xb57'),_0x359ca8[_0x15942c('0x1808')]=_0x25beab['userProfile'][_0x15942c('0xa1')](_0x359ca8['query'],_0x44e9c3)[_0x15942c('0x1714')]);}function _0x424920(_0x33e0aa,_0x3ddd37){const _0x4c5173=_0x4ba415;_0x292aa8[_0x4c5173('0x2fa')]({'controller':_0x4c5173('0x93'),'controllerAs':'vm','templateUrl':_0x1c9e50,'parent':angular['element'](_0xe7bccf['body']),'targetEvent':_0x33e0aa,'clickOutsideToClose':!![],'locals':{'network':_0x3ddd37,'networks':_0x359ca8['networks'][_0x4c5173('0x25df')],'license':_0x359ca8[_0x4c5173('0x130d')],'setting':_0x359ca8[_0x4c5173('0x1af0')],'crudPermissions':_0x359ca8[_0x4c5173('0xe28')]}});}function _0x5d2148(_0x44750f){const _0x198b7e=_0x4ba415;_0x25beab['network'][_0x198b7e('0x17c4')]({'id':_0x44750f['id']})[_0x198b7e('0x1714')]['then'](function(){const _0xe4f32d=_0x198b7e;_0x283545()[_0xe4f32d('0x1a90')](_0x359ca8[_0xe4f32d('0x112f')][_0xe4f32d('0x25df')],{'id':_0x44750f['id']}),_0x359ca8[_0xe4f32d('0x112f')][_0xe4f32d('0x338')]-=0x1,!_0x359ca8[_0xe4f32d('0x112f')][_0xe4f32d('0x25df')]['length']&&_0x359ca8[_0xe4f32d('0x1512')](),_0x4b84a8['success']({'title':_0x283545()[_0xe4f32d('0x114')]('Network')+_0xe4f32d('0x20db'),'msg':_0x44750f[_0xe4f32d('0x1a8d')]?_0x44750f[_0xe4f32d('0x1a8d')]+_0xe4f32d('0x14d4'):''});})[_0x198b7e('0x1cb5')](function(_0x50857f){const _0x1084a5=_0x198b7e;if(_0x50857f[_0x1084a5('0x11fc')]&&_0x50857f[_0x1084a5('0x11fc')]['errors']&&_0x50857f[_0x1084a5('0x11fc')][_0x1084a5('0x25be')][_0x1084a5('0x2566')]){_0x359ca8[_0x1084a5('0x25be')]=_0x50857f['data']['errors']||[{'message':_0x50857f[_0x1084a5('0x17df')](),'type':_0x1084a5('0x639')}];for(let _0x50d87a=0x0;_0x50d87a<_0x50857f['data'][_0x1084a5('0x25be')][_0x1084a5('0x2566')];_0x50d87a++){_0x4b84a8['error']({'title':_0x50857f['data'][_0x1084a5('0x25be')][_0x50d87a][_0x1084a5('0x1d7')],'msg':_0x50857f[_0x1084a5('0x11fc')][_0x1084a5('0x25be')][_0x50d87a][_0x1084a5('0x15e2')]});}}else _0x4b84a8[_0x1084a5('0x5e8')]({'title':_0x50857f[_0x1084a5('0x1b51')]?_0x1084a5('0x15d1')+_0x50857f[_0x1084a5('0x1b51')]+_0x1084a5('0x1b0b')+_0x50857f[_0x1084a5('0x22ce')]:_0x1084a5('0x639'),'msg':_0x50857f[_0x1084a5('0x11fc')]?JSON['stringify'](_0x50857f['data']['message']):_0x50857f[_0x1084a5('0x15e2')]||_0x50857f[_0x1084a5('0x17df')]()});});}function _0x2a7b64(){const _0x17bc5e=_0x4ba415,_0x564a7c=angular[_0x17bc5e('0x2669')](_0x359ca8[_0x17bc5e('0x18e1')]);return _0x359ca8[_0x17bc5e('0x18e1')]=[],_0x564a7c;}function _0x4d6008(_0x70b7a9){const _0x3b4225=_0x4ba415,_0x4d686c=_0x292aa8['confirm']()[_0x3b4225('0x14e4')](_0x3b4225('0x1d03'))[_0x3b4225('0x93e')](_0x3b4225('0x1670')+_0x359ca8[_0x3b4225('0x18e1')][_0x3b4225('0x2566')]+_0x3b4225('0xbd')+'\x20will\x20be\x20deleted.')[_0x3b4225('0x10bc')](_0x3b4225('0x10eb'))[_0x3b4225('0x24d0')](_0x70b7a9)['ok']('OK')[_0x3b4225('0x1801')](_0x3b4225('0x1d8d'));_0x292aa8['show'](_0x4d686c)['then'](function(){const _0x7f8ebb=_0x3b4225;_0x359ca8['selectedNetworks'][_0x7f8ebb('0x1534')](function(_0x475560){_0x5d2148(_0x475560);}),_0x359ca8[_0x7f8ebb('0x18e1')]=[];});}function _0x1a4fa7(){const _0x417b12=_0x4ba415;_0x359ca8[_0x417b12('0x18e1')]=[];}function _0x4fd0a3(){const _0x1049bc=_0x4ba415;_0x359ca8[_0x1049bc('0x18e1')]=_0x359ca8['networks'][_0x1049bc('0x25df')];}}const _0x5800fe=_0x16bff5;_0x23fe48[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1531'),'smtp',_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x23fe48(_0x47f20d,_0x44857d,_0x383991,_0x58cd96,_0x49d872,_0x2c0574,_0x316709,_0x5ae104,_0x289f06,_0x18336c,_0x2428c8,_0x373bd5,_0x481915,_0xfa8423){const _0x4fca15=_0x34e79e,_0xf09371=this;_0xf09371[_0x4fca15('0x9cb')]=_0x2428c8[_0x4fca15('0x24cc')](),_0xf09371[_0x4fca15('0x25be')]=[],_0xf09371[_0x4fca15('0x1af0')]=_0x481915,_0xf09371[_0x4fca15('0x130d')]=_0x373bd5,_0xf09371['crudPermissions']=_0xfa8423,_0xf09371['hasModulePermissions']={},_0xf09371['passwordPattern']=_0xf09371[_0x4fca15('0x1af0')]&&_0xf09371[_0x4fca15('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf09371[_0x4fca15('0x14e4')]=_0x4fca15('0xa5c'),_0xf09371[_0x4fca15('0x25ca')]=angular['copy'](_0x289f06),_0xf09371[_0x4fca15('0x1531')]=_0x5ae104,_0xf09371[_0x4fca15('0x2327')]=![];!_0xf09371['smtp']&&(_0xf09371['smtp']={'service':!![]},_0xf09371[_0x4fca15('0x14e4')]=_0x4fca15('0x1c2'),_0xf09371[_0x4fca15('0x2327')]=!![]);_0xf09371[_0x4fca15('0x1ad2')]=_0x3ce0c0,_0xf09371[_0x4fca15('0x24b9')]=_0x28186f,_0xf09371[_0x4fca15('0x561')]=_0x2ea8fb,_0xf09371[_0x4fca15('0x2601')]=_0x3fd933,_0xf09371['closeDialog']=_0x598495;function _0x3ce0c0(){const _0x50c018=_0x4fca15;_0xf09371[_0x50c018('0x25be')]=[],_0x18336c[_0x50c018('0x2594')]['save'](_0xf09371['smtp'])['$promise'][_0x50c018('0x2788')](function(_0x19ee72){const _0x1cbcf1=_0x50c018;_0xf09371[_0x1cbcf1('0x1531')][_0x1cbcf1('0xc51')](_0x19ee72[_0x1cbcf1('0x1cbf')]()),_0x316709[_0x1cbcf1('0x173b')]({'title':'Smtp\x20properly\x20created','msg':_0xf09371[_0x1cbcf1('0x25ca')][_0x1cbcf1('0x1a8d')]?_0xf09371['smtp']['name']+'\x20has\x20been\x20created!':''}),_0x598495(_0x19ee72);})[_0x50c018('0x1cb5')](function(_0x2e6686){const _0x14f7b9=_0x50c018;if(_0x2e6686[_0x14f7b9('0x11fc')]&&_0x2e6686[_0x14f7b9('0x11fc')][_0x14f7b9('0x25be')]&&_0x2e6686[_0x14f7b9('0x11fc')][_0x14f7b9('0x25be')][_0x14f7b9('0x2566')]){_0xf09371[_0x14f7b9('0x25be')]=_0x2e6686[_0x14f7b9('0x11fc')][_0x14f7b9('0x25be')]||[{'message':_0x2e6686['toString'](),'type':'api.mailAccount.save'}];for(let _0x1bb455=0x0;_0x1bb455<_0x2e6686[_0x14f7b9('0x11fc')]['errors'][_0x14f7b9('0x2566')];_0x1bb455+=0x1){_0x316709[_0x14f7b9('0x5e8')]({'title':_0x2e6686[_0x14f7b9('0x11fc')][_0x14f7b9('0x25be')][_0x1bb455]['type'],'msg':_0x2e6686[_0x14f7b9('0x11fc')]['errors'][_0x1bb455][_0x14f7b9('0x15e2')]});}}else _0x316709[_0x14f7b9('0x5e8')]({'title':_0x2e6686[_0x14f7b9('0x1b51')]?'API:'+_0x2e6686[_0x14f7b9('0x1b51')]+'\x20-\x20'+_0x2e6686[_0x14f7b9('0x22ce')]:_0x14f7b9('0x200f'),'msg':_0x2e6686[_0x14f7b9('0x11fc')]?JSON[_0x14f7b9('0x1be0')](_0x2e6686[_0x14f7b9('0x11fc')][_0x14f7b9('0x15e2')]):_0x2e6686[_0x14f7b9('0x17df')]()});});}function _0x28186f(){const _0x9d6521=_0x4fca15;_0xf09371[_0x9d6521('0x25be')]=[],_0x18336c[_0x9d6521('0x2594')][_0x9d6521('0x2740')]({'id':_0xf09371[_0x9d6521('0x25ca')]['id']},_0xf09371['smtp'])[_0x9d6521('0x1714')][_0x9d6521('0x2788')](function(_0x5efbb0){const _0x279717=_0x9d6521,_0x8f86d1=_0x283545()[_0x279717('0x20e8')](_0xf09371['smtps'],{'id':_0x5efbb0['id']});_0x8f86d1&&_0x283545()[_0x279717('0x2503')](_0x8f86d1,_0x283545()[_0x279717('0x41b')](_0x5efbb0['toJSON'](),_0x283545()['keys'](_0x8f86d1))),_0x316709[_0x279717('0x173b')]({'title':'Smtp\x20properly\x20saved!','msg':_0xf09371[_0x279717('0x25ca')][_0x279717('0x1a8d')]?_0xf09371['smtp'][_0x279717('0x1a8d')]+_0x279717('0x24cf'):''}),_0x598495(_0x5efbb0);})[_0x9d6521('0x1cb5')](function(_0x36c850){const _0x29d4fe=_0x9d6521;if(_0x36c850['data']&&_0x36c850[_0x29d4fe('0x11fc')][_0x29d4fe('0x25be')]&&_0x36c850[_0x29d4fe('0x11fc')][_0x29d4fe('0x25be')]['length']){_0xf09371[_0x29d4fe('0x25be')]=_0x36c850[_0x29d4fe('0x11fc')][_0x29d4fe('0x25be')]||[{'message':_0x36c850[_0x29d4fe('0x17df')](),'type':_0x29d4fe('0x159')}];for(let _0x26af26=0x0;_0x26af26<_0x36c850['data'][_0x29d4fe('0x25be')][_0x29d4fe('0x2566')];_0x26af26++){_0x316709[_0x29d4fe('0x5e8')]({'title':_0x36c850['data'][_0x29d4fe('0x25be')][_0x26af26]['type'],'msg':_0x36c850[_0x29d4fe('0x11fc')]['errors'][_0x26af26][_0x29d4fe('0x15e2')]});}}else _0x316709[_0x29d4fe('0x5e8')]({'title':_0x36c850[_0x29d4fe('0x1b51')]?'API:'+_0x36c850['status']+_0x29d4fe('0x1b0b')+_0x36c850[_0x29d4fe('0x22ce')]:_0x29d4fe('0x159'),'msg':_0x36c850[_0x29d4fe('0x11fc')]?JSON[_0x29d4fe('0x1be0')](_0x36c850[_0x29d4fe('0x11fc')][_0x29d4fe('0x15e2')]):_0x36c850[_0x29d4fe('0x17df')]()});});}function _0x2ea8fb(_0x1701a3){const _0x3a7227=_0x4fca15;_0xf09371[_0x3a7227('0x25be')]=[];const _0x40cffe=_0x58cd96[_0x3a7227('0x112e')]()['title'](_0x3a7227('0x458'))[_0x3a7227('0x1c98')]('The\x20smtp\x20will\x20be\x20deleted.')[_0x3a7227('0x10bc')](_0x3a7227('0x280c'))['ok'](_0x3a7227('0x2786'))[_0x3a7227('0x1801')]('Cancel')['targetEvent'](_0x1701a3);_0x58cd96['show'](_0x40cffe)[_0x3a7227('0x2788')](function(){const _0x1f795b=_0x3a7227;_0x18336c[_0x1f795b('0x2594')][_0x1f795b('0x17c4')]({'id':_0xf09371[_0x1f795b('0x25ca')]['id']})[_0x1f795b('0x1714')][_0x1f795b('0x2788')](function(){const _0x3e0d59=_0x1f795b;_0x283545()[_0x3e0d59('0x1a90')](_0xf09371['smtps'],{'id':_0xf09371[_0x3e0d59('0x25ca')]['id']}),_0x316709[_0x3e0d59('0x173b')]({'title':_0x3e0d59('0x10d'),'msg':(_0xf09371[_0x3e0d59('0x25ca')][_0x3e0d59('0x1a8d')]||'smtp')+_0x3e0d59('0x14d4')}),_0x598495(_0xf09371['smtp']);})[_0x1f795b('0x1cb5')](function(_0x3388e3){const _0x1dc410=_0x1f795b;if(_0x3388e3['data']&&_0x3388e3['data'][_0x1dc410('0x25be')]&&_0x3388e3[_0x1dc410('0x11fc')]['errors']['length']){_0xf09371[_0x1dc410('0x25be')]=_0x3388e3[_0x1dc410('0x11fc')][_0x1dc410('0x25be')]||[{'message':_0x3388e3[_0x1dc410('0x17df')](),'type':_0x1dc410('0xa56')}];for(let _0x57311a=0x0;_0x57311a<_0x3388e3[_0x1dc410('0x11fc')][_0x1dc410('0x25be')][_0x1dc410('0x2566')];_0x57311a++){_0x316709['error']({'title':_0x3388e3[_0x1dc410('0x11fc')]['errors'][_0x57311a][_0x1dc410('0x1d7')],'msg':_0x3388e3[_0x1dc410('0x11fc')]['errors'][_0x57311a]['message']});}}else _0x316709[_0x1dc410('0x5e8')]({'title':_0x3388e3[_0x1dc410('0x1b51')]?'API:'+_0x3388e3[_0x1dc410('0x1b51')]+_0x1dc410('0x1b0b')+_0x3388e3[_0x1dc410('0x22ce')]:_0x1dc410('0xa56'),'msg':_0x3388e3['data']?JSON[_0x1dc410('0x1be0')](_0x3388e3[_0x1dc410('0x11fc')]['message']):_0x3388e3[_0x1dc410('0x15e2')]||_0x3388e3['toString']()});});},function(){});}function _0x3fd933(_0x559e45){return _0x559e45===null?undefined:new Date(_0x559e45);}function _0x598495(_0x2e4adf){const _0x51cfd7=_0x4fca15;_0x58cd96[_0x51cfd7('0x19d')](_0x2e4adf);}}const _0x2afc8e=_0x23fe48;_0x34ae81['$inject']=[_0x34e79e('0x1531'),'api',_0x34e79e('0xd57'),_0x34e79e('0x130d'),_0x34e79e('0x1b04')];function _0x34ae81(_0x20e098,_0x34605c,_0x1196fd,_0x39b6de,_0x5e7375){const _0x5801f2=_0x34e79e,_0x5a2255=this;_0x5a2255[_0x5801f2('0x9cb')]=_0x5e7375[_0x5801f2('0x24cc')](),_0x5a2255['license']=_0x39b6de,_0x5a2255[_0x5801f2('0x1531')]=_0x20e098,_0x5a2255['smtp']={};_0x5a2255[_0x5801f2('0x1531')]&&_0x5a2255['smtps']['rows']&&_0x5a2255[_0x5801f2('0x1531')]['rows']['length']?_0x5a2255['smtp']=_0x5a2255[_0x5801f2('0x1531')][_0x5801f2('0x25df')][0x0]:_0x5a2255[_0x5801f2('0x25ca')]={'service':!![],'Smtp':{'service':null}};_0x5a2255['saveSmtp']=_0x190f19,_0x5a2255[_0x5801f2('0xcfe')]=_0x1e73c7;function _0x1e73c7(){const _0x136818=_0x5801f2;_0x5a2255[_0x136818('0x25ca')]['id']&&_0x34605c[_0x136818('0x2594')][_0x136818('0xcfe')]({'id':_0x5a2255[_0x136818('0x25ca')]['id']})['$promise'][_0x136818('0x2788')](function(){const _0x58fa60=_0x136818;_0x1196fd[_0x58fa60('0x173b')]({'title':_0x58fa60('0xdc8'),'msg':_0x5a2255[_0x58fa60('0x25ca')]['name']?_0x5a2255[_0x58fa60('0x25ca')][_0x58fa60('0x1a8d')]+'\x20has\x20been\x20verified!':''});})[_0x136818('0x1cb5')](function(_0x306e8a){const _0x1a88c7=_0x136818;_0x1196fd[_0x1a88c7('0x5e8')]({'title':_0x1a88c7('0xe1d'),'msg':_0x306e8a[_0x1a88c7('0x11fc')]?JSON[_0x1a88c7('0x1be0')](_0x306e8a[_0x1a88c7('0x11fc')]):_0x306e8a[_0x1a88c7('0x17df')](),'timeout':0x2710});});}function _0x190f19(){const _0x416cd3=_0x5801f2;_0x5a2255[_0x416cd3('0x25ca')]['id']?_0x34605c[_0x416cd3('0x2594')][_0x416cd3('0x2740')]({'id':_0x5a2255[_0x416cd3('0x25ca')]['id']},_0x5a2255['smtp'])['$promise'][_0x416cd3('0x2788')](function(){const _0x588da6=_0x416cd3;_0x1196fd[_0x588da6('0x173b')]({'title':_0x588da6('0x213a'),'msg':_0x5a2255[_0x588da6('0x25ca')]['name']?_0x5a2255[_0x588da6('0x25ca')][_0x588da6('0x1a8d')]+_0x588da6('0x6f8'):''});})[_0x416cd3('0x1cb5')](function(_0x5e66b0){const _0x34bad5=_0x416cd3;_0x1196fd[_0x34bad5('0x5e8')]({'title':_0x5e66b0[_0x34bad5('0x1b51')]?'API:'+_0x5e66b0['status']+_0x34bad5('0x1b0b')+_0x5e66b0[_0x34bad5('0x22ce')]:_0x34bad5('0xa4b'),'msg':_0x5e66b0['data']?JSON[_0x34bad5('0x1be0')](_0x5e66b0[_0x34bad5('0x11fc')]):_0x5e66b0['toString']()});}):_0x34605c[_0x416cd3('0x2594')][_0x416cd3('0xbd0')](_0x5a2255[_0x416cd3('0x25ca')])[_0x416cd3('0x1714')][_0x416cd3('0x2788')](function(_0x4053aa){const _0x273895=_0x416cd3;_0x283545()[_0x273895('0x2503')](_0x5a2255[_0x273895('0x25ca')],_0x4053aa),_0x1196fd[_0x273895('0x173b')]({'title':_0x273895('0x213a'),'msg':_0x5a2255[_0x273895('0x25ca')][_0x273895('0x1a8d')]?_0x5a2255[_0x273895('0x25ca')][_0x273895('0x1a8d')]+_0x273895('0x6f8'):''});})[_0x416cd3('0x1cb5')](function(_0x24a45a){const _0x3d5678=_0x416cd3;_0x1196fd[_0x3d5678('0x5e8')]({'title':_0x24a45a[_0x3d5678('0x1b51')]?_0x3d5678('0x15d1')+_0x24a45a[_0x3d5678('0x1b51')]+'\x20-\x20'+_0x24a45a['statusText']:_0x3d5678('0xa4b'),'msg':_0x24a45a[_0x3d5678('0x11fc')]?JSON[_0x3d5678('0x1be0')](_0x24a45a[_0x3d5678('0x11fc')]):_0x24a45a['toString']()});});}}const _0x2580c3=_0x34ae81;_0x54b0c2[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0x54b0c2(_0x562daa,_0x37cde9){const _0x426a7a=_0x34e79e;_0x562daa[_0x426a7a('0x249b')](_0x426a7a('0xd96'),{'abstract':!![],'url':'/settings'})[_0x426a7a('0x249b')](_0x426a7a('0xf6e'),{'url':_0x426a7a('0x4d2'),'views':{'content@app':{'templateUrl':_0x58e0c2,'controller':_0x426a7a('0x74d')}},'resolve':{'generals':[_0x426a7a('0x1318'),function(_0x2453a9){const _0x1e8cbd=_0x426a7a;return _0x2453a9[_0x1e8cbd('0x2322')](_0x1e8cbd('0x2561'),{'fields':_0x1e8cbd('0x2713'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x426a7a('0x21a1')})[_0x426a7a('0x249b')]('app.settings.smtps',{'url':_0x426a7a('0x22b'),'views':{'content@app':{'templateUrl':_0x3ead32,'controller':_0x426a7a('0x6fa')}},'resolve':{'smtps':['apiResolver',function(_0x457559){const _0x24a0e1=_0x426a7a;return _0x457559[_0x24a0e1('0x2322')](_0x24a0e1('0x219f'),{'fields':_0x24a0e1('0x1858'),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x426a7a('0x21a1')})[_0x426a7a('0x249b')](_0x426a7a('0x106e'),{'url':'/networks','views':{'content@app':{'templateUrl':_0x10414d,'controller':_0x426a7a('0x203c')}},'resolve':{'networks':[_0x426a7a('0x1318'),function(_0x4e22ca){const _0x498a3f=_0x426a7a;return _0x4e22ca[_0x498a3f('0x2322')](_0x498a3f('0x17fe'),{'fields':'createdAt,updatedAt,id,type,value,username,password','sort':_0x498a3f('0x1cee'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x426a7a('0x21a1')})[_0x426a7a('0x249b')]('app.settings.customizations',{'url':_0x426a7a('0x3ac'),'views':{'content@app':{'templateUrl':_0x3b3781,'controller':'CustomizationsController\x20as\x20vm'}},'resolve':{'customizations':[_0x426a7a('0x1318'),function(_0x726344){const _0x54de9a=_0x426a7a;return _0x726344[_0x54de9a('0x2322')](_0x54de9a('0x2561'),{'fields':'createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x426a7a('0x21a1')})[_0x426a7a('0x249b')]('app.settings.cloudProviders',{'url':_0x426a7a('0x129'),'views':{'content@app':{'templateUrl':_0x3f9893,'controller':_0x426a7a('0x1527')}},'resolve':{'cloudProviders':['apiResolver',function(_0x11029c){const _0x4c166a=_0x426a7a;return _0x11029c[_0x4c166a('0x2322')]('cloudProvider@get',{'fields':_0x4c166a('0x603'),'sort':_0x4c166a('0x1cee'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'}),_0x37cde9[_0x426a7a('0x15ae')]('app/main/apps/settings');}angular[_0x34e79e('0x16e2')](_0x34e79e('0xd96'),[_0x34e79e('0x1837'),'ngPassword',_0x34e79e('0x25e5'),'flow',_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),'material.components.expansionPanels','chart.js','angular.filter',_0x34e79e('0x2352'),_0x34e79e('0x9f'),_0x34e79e('0x1725')])[_0x34e79e('0x1a22')](_0x54b0c2)['controller'](_0x34e79e('0x178b'),_0x3387b8)[_0x34e79e('0xb44')](_0x34e79e('0x2463'),_0x408104)['controller']('CreateOrEditCustomizationDialogController',_0x437c28)['controller'](_0x34e79e('0x9d7'),_0x6997fa)['controller']('CustomizationfaviconController',_0x2cc493)['controller'](_0x34e79e('0x1cbd'),_0x44a922)[_0x34e79e('0xb44')](_0x34e79e('0x20dc'),_0x240698)[_0x34e79e('0xb44')](_0x34e79e('0xcd0'),_0x32ba53)['controller'](_0x34e79e('0x108d'),_0x481607)[_0x34e79e('0xb44')](_0x34e79e('0xdc9'),_0x250f56)[_0x34e79e('0xb44')]('CreateOrEditNetworkDialogController',_0x3544e6)[_0x34e79e('0xb44')]('NetworksController',_0x5800fe)[_0x34e79e('0xb44')]('CreateOrEditSmtpDialogController',_0x2afc8e)[_0x34e79e('0xb44')](_0x34e79e('0x6'),_0x2580c3);const _0x322591=_0x18dd13['p']+'src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime.html',_0x179374=_0x18dd13['p']+_0x34e79e('0xf1b'),_0x3fc44b=_0x18dd13['p']+_0x34e79e('0x19bb'),_0xaea840=_0x18dd13['p']+_0x34e79e('0x81'),_0x3ca7cc=_0x18dd13['p']+'src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html',_0x53a891=_0x18dd13['p']+_0x34e79e('0x225'),_0x4090ba=_0x18dd13['p']+_0x34e79e('0x1739'),_0x29e2cc=_0x18dd13['p']+_0x34e79e('0x1066');_0x261797[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1bf5'),_0x34e79e('0x1a5c'),_0x34e79e('0x519'),'userProfile','userProfileSection',_0x34e79e('0x1b04'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1713'),_0x34e79e('0x818')];function _0x261797(_0x593a22,_0x2c1fe5,_0xde2083,_0x551945,_0x28a855,_0x4ad1e9,_0x4d2215,_0x13aeea,_0xa59a00,_0x260792,_0x1b8a86,_0x5d3cb9,_0x44f423,_0x18812f){const _0x19625c=_0x34e79e,_0x17879c=this;_0x17879c[_0x19625c('0x9cb')]=_0x260792[_0x19625c('0x24cc')](),_0x17879c[_0x19625c('0x1713')]=_0x44f423?_0x44f423:[],_0x17879c[_0x19625c('0x818')]=_0x18812f,_0x17879c[_0x19625c('0xd2b')]={'count':0x0,'rows':[]},_0x17879c['showTooltip']=![],_0x17879c[_0x19625c('0x9b9')]=!![],_0x17879c[_0x19625c('0x63c')]=_0x13aeea,_0x17879c['userProfileSection']=_0xa59a00&&_0xa59a00['count']==0x1?_0xa59a00[_0x19625c('0x25df')][0x0]:null,_0x17879c[_0x19625c('0xe28')]=_0x260792[_0x19625c('0x157e')](_0x17879c[_0x19625c('0xec9')]?_0x17879c['userProfileSection'][_0x19625c('0xe28')]:null),_0x17879c[_0x19625c('0x135a')]={'fields':_0x19625c('0x6e9'),'type':_0x19625c('0x1'),'queuecallerexitreason':'TIMEOUT'+','+_0x19625c('0x26a8'),'sort':_0x19625c('0x1cee'),'limit':0xa,'page':0x1},_0x17879c[_0x19625c('0x3e8')]=_0x29e77d,_0x17879c[_0x19625c('0x644')]=_0x4a2ed4,_0x17879c[_0x19625c('0x2681')]=_0x3a5584,_0x17879c['dispose']=_0x19aab0,_0x17879c['onSaveVoiceQueueReport']=_0x47c083,_0x17879c[_0x19625c('0xc9a')]=_0x215e80,_0x1b8a86['onWithoutApply'](_0x19625c('0xd9b'),_0x17879c[_0x19625c('0x44f')]),_0x1b8a86['on'](_0x19625c('0x1585'),_0x17879c['onUpdateVoiceQueueReport']),_0x5d6078();function _0x5d6078(){const _0x39aeb0=_0x19625c;let _0x2d3bc3=_0x28a855['localStorage'][_0x39aeb0('0xced')]('motion2.realtime.abandoned.bull.abandonedCalls:'+_0x17879c[_0x39aeb0('0x9cb')]['id']);if(_0x2d3bc3)_0x2d3bc3=JSON[_0x39aeb0('0xe0b')](_0x2d3bc3),_0x2d3bc3&&_0x2d3bc3[_0x39aeb0('0x135a')]&&(_0x17879c[_0x39aeb0('0x135a')]=_0x283545()[_0x39aeb0('0x2503')](_0x2d3bc3[_0x39aeb0('0x135a')],_0x283545()['omit'](_0x17879c['query'],[_0x39aeb0('0x2119'),_0x39aeb0('0x68e'),_0x39aeb0('0x23f5')])),_0x17879c[_0x39aeb0('0x135a')]=_0x283545()[_0x39aeb0('0x5a9')](_0x17879c[_0x39aeb0('0x135a')],_0x39aeb0('0x916')));else{const _0x20b6d8={'$gte':_0x59f37a()()[_0x39aeb0('0x13e4')](_0x39aeb0('0x2dc'))[_0x39aeb0('0x2827')](0x0,!![])['format'](),'$lte':_0x59f37a()()[_0x39aeb0('0x142e')]('month')['utcOffset'](0x0,!![])[_0x39aeb0('0x22b4')]()};_0x17879c[_0x39aeb0('0x135a')][_0x39aeb0('0x172')]=_0x20b6d8;}_0x260792['hasRole'](_0x39aeb0('0xe23'))?_0x4d2215['user'][_0x39aeb0('0x138a')]({'id':_0x260792['getCurrentUser']()['id'],'fields':'id,name','channel':_0x39aeb0('0x1f60'),'type':_0x39aeb0('0x1'),'nolimit':!![]})[_0x39aeb0('0x1714')][_0x39aeb0('0x2788')](function(_0x447c4b){const _0x1bd05a=_0x39aeb0;_0x17879c[_0x1bd05a('0x283e')]=_0x447c4b||{'count':0x0,'rows':[]},_0x17879c[_0x1bd05a('0xe30')]=_0x283545()[_0x1bd05a('0x2402')](_0x283545()['keyBy'](_0x17879c[_0x1bd05a('0x283e')][_0x1bd05a('0x25df')],_0x1bd05a('0x1a8d')),_0x1bd05a('0x1a8d'));})[_0x39aeb0('0x1cb5')](function(_0x1085ad){const _0x1a41c2=_0x39aeb0;console[_0x1a41c2('0x5e8')](_0x1085ad);})[_0x39aeb0('0x1ed8')](function(){const _0x4b2099=_0x39aeb0;_0x17879c[_0x4b2099('0xa28')]=_0x42651b(),_0x17879c['getAbandonedCalls']();}):_0x4d2215[_0x39aeb0('0x63c')]['getResources']({'id':_0x17879c[_0x39aeb0('0x9cb')][_0x39aeb0('0x237f')],'section':_0x39aeb0('0x1530'),'channel':_0x39aeb0('0x1f60'),'type':'outbound','sort':_0x39aeb0('0x1cee'),'nolimit':!![]})[_0x39aeb0('0x1714')][_0x39aeb0('0x2788')](function(_0x313e51){const _0x468c56=_0x39aeb0;_0x17879c[_0x468c56('0x283e')]=_0x313e51||{'count':0x0,'rows':[]},_0x17879c[_0x468c56('0xe30')]=_0x283545()['mapValues'](_0x283545()[_0x468c56('0x13cf')](_0x17879c[_0x468c56('0x283e')][_0x468c56('0x25df')],_0x468c56('0x1a8d')),_0x468c56('0x1a8d'));})[_0x39aeb0('0x1cb5')](function(_0x738ed0){const _0x556c4e=_0x39aeb0;console[_0x556c4e('0x5e8')](_0x738ed0);})[_0x39aeb0('0x1ed8')](function(){const _0xdf0380=_0x39aeb0;_0x17879c[_0xdf0380('0xa28')]=_0x42651b(),_0x17879c[_0xdf0380('0x3e8')]();});}function _0x42651b(){const _0x5e68c6=_0x19625c;return[{'name':_0x5e68c6('0x9ac'),'key':_0x5e68c6('0x172'),'type':_0x5e68c6('0x1012'),'label':_0x5e68c6('0x1664')},{'name':_0x5e68c6('0x262d'),'key':_0x5e68c6('0x14a6'),'type':'select','label':_0x5e68c6('0x2bd'),'options':_0x17879c['agents']['rows'],'customOptions':[{'value':'\x27null\x27','translate':_0x5e68c6('0xce3')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Campaign','key':_0x5e68c6('0x1ab4'),'type':_0x5e68c6('0x9a4'),'label':_0x5e68c6('0xd7b'),'options':_0x17879c[_0x5e68c6('0x283e')]['rows']}];}function _0x29e77d(){const _0x5ba3d8=_0x19625c;_0x17879c[_0x5ba3d8('0x9b9')]=![],_0x17879c[_0x5ba3d8('0x283e')][_0x5ba3d8('0x338')]>0x0?(_0x17879c[_0x5ba3d8('0x135a')][_0x5ba3d8('0x1ab4')]=_0x17879c[_0x5ba3d8('0x283e')][_0x5ba3d8('0x338')]===0x1?_0x17879c[_0x5ba3d8('0x283e')][_0x5ba3d8('0x25df')][0x0][_0x5ba3d8('0x1a8d')]:_0x17879c['query']['queue'],_0x17879c[_0x5ba3d8('0x135a')]['offset']=(_0x17879c[_0x5ba3d8('0x135a')][_0x5ba3d8('0x23f5')]-0x1)*_0x17879c[_0x5ba3d8('0x135a')][_0x5ba3d8('0x68e')],_0x28a855['localStorage'][_0x5ba3d8('0x23dc')](_0x5ba3d8('0x2507')+_0x17879c[_0x5ba3d8('0x9cb')]['id'],JSON[_0x5ba3d8('0x1be0')]({'query':_0x283545()[_0x5ba3d8('0x5a9')](_0x17879c['query'],_0x5ba3d8('0x1ab4'))})),_0x17879c['promise']=_0x4d2215['voiceQueueReport'][_0x5ba3d8('0x1147')](_0x17879c[_0x5ba3d8('0x135a')],_0x47e575)[_0x5ba3d8('0x1714')]):_0x47e575(null);}function _0x47e575(_0x32b684){const _0x264c54=_0x19625c;_0x17879c[_0x264c54('0xd2b')]=_0x32b684||{'count':0x0,'rows':[]},_0x17879c['refresh']=!![];}function _0x4a2ed4(){const _0x484772=_0x19625c;_0x17879c[_0x484772('0x15c2')]=![],_0x17879c['getAbandonedCalls']();}function _0x47c083(_0x280d13){const _0x40b38e=_0x19625c,_0x415123=_0x40b38e('0x1');_0x280d13&&_0x17879c[_0x40b38e('0xe30')]&&_0x280d13['queue'][_0x40b38e('0x1d7')]===_0x415123&&_0x17879c[_0x40b38e('0xe30')][_0x280d13[_0x40b38e('0x1ab4')]]&&(_0x17879c[_0x40b38e('0x15c2')]=!![]);}function _0x215e80(_0x69009f){const _0x5ee0a3=_0x19625c;if(_0x69009f){const _0x37e436=_0x283545()[_0x5ee0a3('0x1855')](_0x17879c[_0x5ee0a3('0xd2b')][_0x5ee0a3('0x25df')],['id',_0x69009f['id']]);_0x37e436>=0x0&&_0x283545()[_0x5ee0a3('0x2503')](_0x17879c[_0x5ee0a3('0xd2b')][_0x5ee0a3('0x25df')][_0x37e436],_0x69009f);}}function _0x3a5584(_0x38793c,_0x428acb){const _0x1a530c=_0x19625c;_0x38793c&&_0x4d2215[_0x1a530c('0x1715')][_0x1a530c('0x2740')]({'id':_0x38793c['id'],'lastAssignedTo':_0x428acb?_0x428acb[_0x1a530c('0x1a8d')]:null,'assigned':_0x428acb?!![]:![]})[_0x1a530c('0x1714')][_0x1a530c('0x1cb5')](function(_0x2dc4de){const _0x4808e9=_0x1a530c;console[_0x4808e9('0x10df')](_0x2dc4de);});}function _0x19aab0(_0xa67cf0){const _0xd3f030=_0x19625c;_0xde2083[_0xd3f030('0x2fa')]({'controller':_0xd3f030('0x93b'),'controllerAs':'vm','templateUrl':_0x29e2cc,'parent':angular['element'](_0x551945[_0xd3f030('0x945')]),'targetEvent':_0xa67cf0,'resolve':{'globalDispositions':[_0xd3f030('0x1318'),function(_0x39de03){const _0x9028ff=_0xd3f030;return _0x39de03[_0x9028ff('0x2322')](_0x9028ff('0x2cf'),{'MailAccountId':_0x9028ff('0x954'),'FaxAccountId':_0x9028ff('0x954'),'SmsAccountId':_0x9028ff('0x954'),'WhatsappAccountId':_0x9028ff('0x954'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x9028ff('0x954'),'ListId':_0x9028ff('0x954')});}]},'locals':{'dispositions':_0x17879c[_0xd3f030('0x818')],'call':_0xa67cf0}})[_0xd3f030('0x2788')](function(_0x2b6f10){const _0x4b8773=_0xd3f030;if(_0x2b6f10){const _0x3d0de0={'id':_0xa67cf0['id'],'disposition':_0x2b6f10[_0x4b8773('0x1c38')]||null,'secondDisposition':_0x2b6f10[_0x4b8773('0x1caa')]||null,'thirdDisposition':_0x2b6f10[_0x4b8773('0x1496')]||null};_0x4d2215[_0x4b8773('0x1715')][_0x4b8773('0x2740')](_0x3d0de0)[_0x4b8773('0x1714')][_0x4b8773('0x1cb5')](function(_0x33ade2){const _0x510553=_0x4b8773;console[_0x510553('0x10df')](_0x33ade2);});}});}let _0x382992=!![],_0x4477c7=0x1;_0x593a22[_0x19625c('0x1662')]('vm.query.filter',function(_0x4af7eb,_0x583605){const _0xb8e9a9=_0x19625c;_0x382992?_0x2c1fe5(function(){_0x382992=![];}):(!_0x583605&&(_0x4477c7=_0x17879c[_0xb8e9a9('0x135a')][_0xb8e9a9('0x23f5')]),_0x4af7eb!==_0x583605&&(_0x17879c[_0xb8e9a9('0x135a')][_0xb8e9a9('0x23f5')]=0x1),!_0x4af7eb&&(_0x17879c[_0xb8e9a9('0x135a')]['page']=_0x4477c7),_0x17879c[_0xb8e9a9('0x3e8')]());}),_0x593a22[_0x19625c('0x651')](_0x19625c('0x26ac'),function(){const _0x54e5fa=_0x19625c;_0x1b8a86[_0x54e5fa('0x277f')](_0x54e5fa('0xd9b')),_0x1b8a86[_0x54e5fa('0x277f')](_0x54e5fa('0x1585'));});}const _0x3f63a4=_0x261797;_0x1ae7fc['$inject']=[_0x34e79e('0x1701'),'$q',_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x135d'),'pauses',_0x34e79e('0x1713'),_0x34e79e('0x1c55'),'api','socket',_0x34e79e('0xd57'),_0x34e79e('0x1fc6'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04'),'license','$interval'];function _0x1ae7fc(_0x3402ae,_0x174e94,_0x801a39,_0x310b1e,_0x4c604a,_0x5c30d2,_0x178bbb,_0x306b44,_0x4fbfe0,_0x39b550,_0x4eb3a7,_0x5b6bfd,_0x259d5e,_0x123445,_0x580b51,_0x49ca7b,_0x2857cf,_0x37a107){const _0x8fe228=_0x34e79e,_0xb6a72b=this,_0x2643a4=[_0x8fe228('0x261d'),'online','lastLoginAt',_0x8fe228('0x233e'),_0x8fe228('0x11e9'),'lastPauseAt',_0x8fe228('0x2838'),_0x8fe228('0x32e'),_0x8fe228('0x23a5'),_0x8fe228('0x1098'),'mailPause',_0x8fe228('0xfd5'),_0x8fe228('0x924'),'faxPause','voicePause','chatCapacity',_0x8fe228('0xde1'),_0x8fe228('0x251c'),_0x8fe228('0x27b7'),_0x8fe228('0x982'),_0x8fe228('0xc8b'),_0x8fe228('0xc78'),_0x8fe228('0x7af'),_0x8fe228('0x113a'),'smsCurrentCapacity','whatsappCurrentCapacity',_0x8fe228('0x76c'),_0x8fe228('0x25d5'),_0x8fe228('0x18a3'),'mailStatus',_0x8fe228('0x698'),_0x8fe228('0x167f'),'faxStatus',_0x8fe228('0x1536'),'chatStatusTime','openchannelStatusTime',_0x8fe228('0x1831'),_0x8fe228('0x27b0'),_0x8fe228('0x1ac7'),_0x8fe228('0xbc'),'voiceStatusTime',_0x8fe228('0x1ab4'),_0x8fe228('0xdb6'),_0x8fe228('0x12b5'),'phoneBarEnableScreenRecordingByAgent',_0x8fe228('0xafd')],_0x33643b=[_0x8fe228('0x23a5'),_0x8fe228('0x1098'),_0x8fe228('0x20cd'),_0x8fe228('0xfd5'),_0x8fe228('0x924'),'faxPause',_0x8fe228('0x2a1'),'online'];_0xb6a72b['currentUser']=_0x49ca7b[_0x8fe228('0x24cc')](),_0xb6a72b[_0x8fe228('0x27be')]=['ringing','inuse',_0x8fe228('0xed9'),_0x8fe228('0x2097'),_0x8fe228('0x1af6')],_0xb6a72b[_0x8fe228('0x225d')]=_0x178bbb||{'count':0x0,'rows':[]},_0xb6a72b[_0x8fe228('0x130d')]=_0x2857cf,_0xb6a72b[_0x8fe228('0x63c')]=_0x123445,_0xb6a72b[_0x8fe228('0xec9')]=_0x580b51&&_0x580b51['count']==0x1?_0x580b51['rows'][0x0]:null,_0xb6a72b[_0x8fe228('0xe28')]=_0x49ca7b[_0x8fe228('0x157e')](_0xb6a72b[_0x8fe228('0xec9')]?_0xb6a72b[_0x8fe228('0xec9')][_0x8fe228('0xe28')]:null),_0xb6a72b[_0x8fe228('0x1713')]=_0x306b44?_0x283545()['keyBy'](_0x306b44[_0x8fe228('0x25df')]?_0x306b44[_0x8fe228('0x25df')]:[],'id'):{},_0xb6a72b[_0x8fe228('0x1c55')]=_0x4fbfe0?_0x283545()[_0x8fe228('0x13cf')](_0x4fbfe0['rows']?_0x4fbfe0[_0x8fe228('0x25df')]:[],'id'):{},_0xb6a72b['paginatedAgents']={},_0xb6a72b[_0x8fe228('0x374')]=![],_0xb6a72b[_0x8fe228('0x1dc2')]=[],_0xb6a72b[_0x8fe228('0x1564')]={};for(const _0x3d9364 in _0xb6a72b['agents']){typeof _0xb6a72b[_0x8fe228('0x1713')][_0x3d9364]!==_0x8fe228('0xedb')&&(_0xb6a72b[_0x8fe228('0x1713')][_0x3d9364][_0x8fe228('0x24eb')]=!![]);}_0xb6a72b[_0x8fe228('0x135a')]={'limit':0xa,'page':0x1,'order':_0x8fe228('0x2831'),'globalStatusFilter':'','pauseTypeFilter':''},_0xb6a72b[_0x8fe228('0x192f')]=_0x21455a,_0xb6a72b[_0x8fe228('0x2025')]=_0x577c1e,_0xb6a72b[_0x8fe228('0x619')]=_0x3fd983,_0xb6a72b[_0x8fe228('0xc00')]=_0x20ff84,_0xb6a72b['showInfo']=_0x58e951,_0xb6a72b[_0x8fe228('0xd10')]=_0x4141c9,_0xb6a72b[_0x8fe228('0xcfd')]=_0x239064,_0xb6a72b[_0x8fe228('0x192')]=_0x1cd50a,_0xb6a72b[_0x8fe228('0xaef')]=_0x140d06,_0xb6a72b[_0x8fe228('0x17f9')]=_0x293580,_0xb6a72b[_0x8fe228('0x158d')]=_0x30355e,_0xb6a72b['onUpdate']=_0x520572,_0xb6a72b[_0x8fe228('0x122e')]=_0x2bd0ee,_0xb6a72b[_0x8fe228('0x2826')]=_0x1c190d,_0xb6a72b[_0x8fe228('0xb61')]=_0x3c3189,_0xb6a72b['screenRecording']=_0x404a60,_0x4eb3a7['on'](_0x8fe228('0x71'),_0xb6a72b[_0x8fe228('0x158d')]),_0x4eb3a7['on'](_0x8fe228('0x1cb6'),_0xb6a72b[_0x8fe228('0x2409')]),_0x4eb3a7['on'](_0x8fe228('0x1958'),_0xb6a72b['onConnect']),_0x4eb3a7['on'](_0x8fe228('0x116b'),_0xb6a72b['onComplete']),_0x2bd0ee();let _0x46f3cf=_0x37a107(function(){const _0xd46779=_0x8fe228;_0xb6a72b[_0xd46779('0x374')]&&(_0xb6a72b['load']=![],_0x2bd0ee());},0x3e7);function _0x2bd0ee(){const _0x16b111=_0x8fe228;_0xb6a72b[_0x16b111('0x374')]=![];const _0x144535=_0x174e94[_0x16b111('0x2311')]();_0xb6a72b[_0x16b111('0x1808')]=_0x144535[_0x16b111('0x1808')],_0xb6a72b[_0x16b111('0xfe8')]=[],_0xb6a72b[_0x16b111('0x1dc2')]=[],_0x283545()['forIn'](_0xb6a72b[_0x16b111('0x1713')],function(_0x26add5,_0x5ec9ba){const _0x89d5e4=_0x16b111;_0xb6a72b[_0x89d5e4('0x1c55')][_0x5ec9ba]&&_0x283545()[_0x89d5e4('0x2503')](_0x26add5,_0x283545()[_0x89d5e4('0x41b')](_0x283545()[_0x89d5e4('0x5a9')](_0xb6a72b[_0x89d5e4('0x1c55')][_0x5ec9ba],_0x33643b),_0x2643a4)),_0x239064(_0x26add5),_0x26add5[_0x89d5e4('0x7c2')]?(_0xb6a72b[_0x89d5e4('0xfe8')][_0x89d5e4('0x13e3')](_0x26add5),_0xb6a72b[_0x89d5e4('0x1564')][_0x26add5[_0x89d5e4('0x2838')]]=_0x5ec9ba):_0x26add5[_0x89d5e4('0xf3b')]=_0x283545()['toNumber'](_0x59f37a()()['format']('x'));});_0xb6a72b[_0x16b111('0x135a')][_0x16b111('0x52c')]&&_0x283545()[_0x16b111('0x1a90')](_0xb6a72b[_0x16b111('0xfe8')],function(_0x5eac51){const _0x6cb81d=_0x16b111;return _0x5eac51[_0x6cb81d('0xee3')]!==_0xb6a72b[_0x6cb81d('0x135a')][_0x6cb81d('0x52c')];});_0xb6a72b['query'][_0x16b111('0xf25')]&&_0x283545()['remove'](_0xb6a72b[_0x16b111('0xfe8')],function(_0x352724){const _0x498e4d=_0x16b111;return _0x352724[_0x498e4d('0x11e9')]!==_0xb6a72b['query']['pauseTypeFilter'];});_0xb6a72b[_0x16b111('0x135a')][_0x16b111('0x916')]&&_0x283545()[_0x16b111('0x1a90')](_0xb6a72b['filteredAgents'],function(_0x22a37a){const _0xdf19ee=_0x16b111;return _0x22a37a[_0xdf19ee('0x2831')][_0xdf19ee('0xc2e')]()['indexOf'](_0xb6a72b[_0xdf19ee('0x135a')]['filter'][_0xdf19ee('0xc2e')]())<0x0;});_0xb6a72b[_0x16b111('0xfe8')]=_0x13bfd3(_0xb6a72b[_0x16b111('0xfe8')]);const _0x24d20f=(_0xb6a72b[_0x16b111('0x135a')]['page']-0x1)*_0xb6a72b[_0x16b111('0x135a')][_0x16b111('0x68e')];_0xb6a72b[_0x16b111('0x26ed')]=_0x283545()[_0x16b111('0x280')](_0xb6a72b[_0x16b111('0xfe8')],_0x24d20f)[_0x16b111('0x845')](0x0,_0xb6a72b[_0x16b111('0x135a')][_0x16b111('0x68e')]);for(let _0x486a37=0x0;_0x486a37<_0xb6a72b[_0x16b111('0x26ed')][_0x16b111('0x2566')];_0x486a37+=0x1){_0xb6a72b['order']['push'](_0xb6a72b[_0x16b111('0x26ed')][_0x486a37]['id']);}_0x144535[_0x16b111('0x2322')](),_0xb6a72b[_0x16b111('0x374')]=!![];}function _0x30355e(_0x5f2e89){const _0x20d81c=_0x8fe228;_0xb6a72b[_0x20d81c('0x1713')][_0x5f2e89['id']]&&(_0x283545()[_0x20d81c('0x2503')](_0xb6a72b['agents'][_0x5f2e89['id']],_0x283545()[_0x20d81c('0x41b')](_0x283545()[_0x20d81c('0x5a9')](_0x5f2e89,_0x33643b),_0x2643a4)),_0x283545()['merge'](_0xb6a72b[_0x20d81c('0x1c55')][_0x5f2e89['id']],_0x283545()[_0x20d81c('0x41b')](_0x283545()[_0x20d81c('0x5a9')](_0x5f2e89,_0x33643b),_0x2643a4)),_0x239064(_0xb6a72b[_0x20d81c('0x1713')][_0x5f2e89['id']]));}function _0x520572(_0x513ba6){const _0x2a0c09=_0x8fe228;_0xb6a72b[_0x2a0c09('0x1713')][_0x513ba6['id']]&&(_0x283545()[_0x2a0c09('0x2503')](_0xb6a72b[_0x2a0c09('0x1713')][_0x513ba6['id']],_0x283545()['pick'](_0x513ba6,_0x2643a4)),_0x283545()[_0x2a0c09('0x2503')](_0xb6a72b['rpcAgents'][_0x513ba6['id']],_0x283545()['pick'](_0x513ba6,_0x2643a4)),_0x513ba6[_0x2a0c09('0x233e')]&&(_0xb6a72b[_0x2a0c09('0x1713')][_0x513ba6['id']][_0x2a0c09('0xf3b')]=_0x513ba6['lastPauseAt'],_0xb6a72b[_0x2a0c09('0x1c55')][_0x513ba6['id']][_0x2a0c09('0xf3b')]=_0x513ba6[_0x2a0c09('0x233e')]),_0x239064(_0xb6a72b['agents'][_0x513ba6['id']]));}function _0x1c190d(_0x27ad4c){const _0x3addff=_0x8fe228;_0xb6a72b[_0x3addff('0x1713')][_0xb6a72b[_0x3addff('0x1564')][_0x27ad4c[_0x3addff('0x7f4')]]]&&(_0x283545()[_0x3addff('0x2503')](_0xb6a72b[_0x3addff('0x1713')][_0xb6a72b[_0x3addff('0x1564')][_0x27ad4c['destaccountcode']]],_0x283545()[_0x3addff('0x41b')](_0x27ad4c,[_0x3addff('0x1ab4'),_0x3addff('0xdb6')])),_0x283545()[_0x3addff('0x2503')](_0xb6a72b[_0x3addff('0x1c55')][_0xb6a72b[_0x3addff('0x1564')][_0x27ad4c[_0x3addff('0x7f4')]]],_0x283545()[_0x3addff('0x41b')](_0x27ad4c,['queue',_0x3addff('0xdb6')])));}function _0x3c3189(_0x4c411b){const _0x229f1f=_0x8fe228;_0xb6a72b[_0x229f1f('0x1713')][_0xb6a72b['agentInternal'][_0x4c411b[_0x229f1f('0x7f4')]]]&&(_0xb6a72b['agents'][_0xb6a72b[_0x229f1f('0x1564')][_0x4c411b[_0x229f1f('0x7f4')]]]=_0x283545()[_0x229f1f('0x5a9')](_0xb6a72b[_0x229f1f('0x1713')][_0xb6a72b['agentInternal'][_0x4c411b['destaccountcode']]],['queue',_0x229f1f('0xdb6')]),_0xb6a72b[_0x229f1f('0x1c55')][_0xb6a72b[_0x229f1f('0x1564')][_0x4c411b[_0x229f1f('0x7f4')]]]=_0x283545()[_0x229f1f('0x5a9')](_0xb6a72b[_0x229f1f('0x1c55')][_0xb6a72b[_0x229f1f('0x1564')][_0x4c411b[_0x229f1f('0x7f4')]]],[_0x229f1f('0x1ab4'),'destconnectedlinenum']));}function _0x21455a(_0x467e3e){const _0x225501=_0x8fe228;return _0x39b550[_0x225501('0x1e6a')]['logout']({'id':_0x467e3e['id'],'device':_0x225501('0x548'),'agent_id':_0x467e3e['id'],'agent_name':_0x467e3e[_0x225501('0x1a8d')]})[_0x225501('0x1714')]['then'](function(){const _0x1bbe15=_0x225501;_0x5b6bfd['success']({'title':_0x1bbe15('0x256b'),'msg':_0x467e3e[_0x1bbe15('0x2831')]+'\x20\x20properly\x20logout'}),_0xb6a72b['agents'][_0x467e3e['id']]&&(_0xb6a72b['agents'][_0x467e3e['id']][_0x1bbe15('0x7c2')]=![]),_0xb6a72b[_0x1bbe15('0x1c55')][_0x467e3e['id']]&&(_0xb6a72b[_0x1bbe15('0x1c55')][_0x467e3e['id']][_0x1bbe15('0x7c2')]=![]),_0x2bd0ee();})['catch'](function(_0x3611f0){const _0x556f45=_0x225501;_0x5b6bfd[_0x556f45('0x5e8')]({'title':_0x3611f0[_0x556f45('0x1b51')]?_0x556f45('0x15d1')+_0x3611f0[_0x556f45('0x1b51')]+'\x20-\x20'+_0x3611f0[_0x556f45('0x22ce')]:_0x556f45('0x184d'),'msg':_0x3611f0[_0x556f45('0x11fc')]?JSON['stringify'](_0x3611f0[_0x556f45('0x11fc')][_0x556f45('0x15e2')]):_0x3611f0['toString']()});});}function _0x3fd983(_0x6a2d88,_0x56e049){const _0x2b5afa=_0x8fe228;return _0x39b550[_0x2b5afa('0x1e6a')][_0x2b5afa('0x619')]({'id':_0x6a2d88['id'],'type':_0x56e049})[_0x2b5afa('0x1714')][_0x2b5afa('0x2788')](function(_0x3be3c3){const _0x33928c=_0x2b5afa;_0xb6a72b[_0x33928c('0x1713')][_0x6a2d88['id']]&&_0x283545()['merge'](_0xb6a72b[_0x33928c('0x1713')][_0x6a2d88['id']],_0x283545()[_0x33928c('0x41b')](_0x3be3c3,_0x2643a4)),_0xb6a72b[_0x33928c('0x1c55')][_0x6a2d88['id']]&&_0x283545()[_0x33928c('0x2503')](_0xb6a72b[_0x33928c('0x1c55')][_0x6a2d88['id']],_0x283545()['pick'](_0x3be3c3,_0x2643a4)),_0x239064(_0xb6a72b[_0x33928c('0x1713')][_0x6a2d88['id']]);})['catch'](function(_0x4060a5){const _0x151f82=_0x2b5afa;_0x5b6bfd[_0x151f82('0x5e8')]({'title':_0x4060a5['status']?_0x151f82('0x15d1')+_0x4060a5['status']+_0x151f82('0x1b0b')+_0x4060a5[_0x151f82('0x22ce')]:_0x151f82('0x184d'),'msg':_0x4060a5[_0x151f82('0x11fc')]?JSON['stringify'](_0x4060a5[_0x151f82('0x11fc')][_0x151f82('0x15e2')]):_0x4060a5[_0x151f82('0x17df')]()});});}function _0x20ff84(_0x42e8e4){const _0x3e53bc=_0x8fe228;return _0x39b550['user']['unpause']({'id':_0x42e8e4['id']})['$promise'][_0x3e53bc('0x2788')](function(_0x123ac2){const _0x393e84=_0x3e53bc;_0xb6a72b['agents'][_0x42e8e4['id']]&&_0x283545()[_0x393e84('0x2503')](_0xb6a72b[_0x393e84('0x1713')][_0x42e8e4['id']],_0x283545()[_0x393e84('0x41b')](_0x123ac2,_0x2643a4)),_0xb6a72b[_0x393e84('0x1c55')][_0x42e8e4['id']]&&_0x283545()[_0x393e84('0x2503')](_0xb6a72b[_0x393e84('0x1c55')][_0x42e8e4['id']],_0x283545()[_0x393e84('0x41b')](_0x123ac2,_0x2643a4)),_0x239064(_0xb6a72b['agents'][_0x42e8e4['id']]);})[_0x3e53bc('0x1cb5')](function(_0x1eb33e){const _0x447e65=_0x3e53bc;_0x5b6bfd['error']({'title':_0x1eb33e[_0x447e65('0x1b51')]?_0x447e65('0x15d1')+_0x1eb33e[_0x447e65('0x1b51')]+_0x447e65('0x1b0b')+_0x1eb33e['statusText']:_0x447e65('0x184d'),'msg':_0x1eb33e[_0x447e65('0x11fc')]?JSON[_0x447e65('0x1be0')](_0x1eb33e[_0x447e65('0x11fc')][_0x447e65('0x15e2')]):_0x1eb33e[_0x447e65('0x17df')]()});});}function _0x58e951(_0x31777a){const _0x10b2ec=_0x8fe228;_0x310b1e[_0x10b2ec('0x2fa')](_0x310b1e[_0x10b2ec('0x204f')]()[_0x10b2ec('0x1e4e')](!![])[_0x10b2ec('0x14e4')](_0x10b2ec('0xcbb'))[_0x10b2ec('0x93e')](_0x10b2ec('0x122a'))['ok']('Ok')['targetEvent'](_0x31777a));}function _0x577c1e(_0x24d140,_0x361dcf){const _0xee90e3=_0x8fe228;_0x310b1e[_0xee90e3('0x2fa')]({'controller':_0xee90e3('0x2b2'),'controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0xee90e3('0x16b1')](_0x4c604a[_0xee90e3('0x945')]),'targetEvent':_0x361dcf,'clickOutsideToClose':!![],'locals':{'agent':_0x24d140,'agents':[],'channel':_0xee90e3('0x1f60'),'direction':_0xee90e3('0x1'),'crudPermissions':_0xb6a72b[_0xee90e3('0xe28')]}});}function _0x1cd50a(_0x4f996b){const _0x228c8c=_0x8fe228;return _0x4f996b===_0x228c8c('0x619')||_0x4f996b==='*pause';}function _0x140d06(_0x2300c6){const _0x166547=_0x8fe228;return _0x2300c6===_0x166547('0x619');}function _0x293580(_0x467b9f){return _0x467b9f==='*pause';}function _0x13e9de(_0x466a3f){const _0x152675=_0x8fe228;return _0x466a3f==='idle'||_0x466a3f==='unknown'||_0x466a3f===_0x152675('0x27f0')||_0x466a3f===_0x152675('0x26f8')||_0x283545()['isNil'](_0x466a3f);}function _0x4141c9(_0x2eb6ed,_0x56b825){const _0x469495=_0x8fe228;if(_0x56b825===_0x469495('0x1f60')){if(_0x2eb6ed[_0x56b825+'Status']!=='idle')return _0x2eb6ed[_0x56b825+_0x469495('0x21d8')];if(_0x2eb6ed[_0x56b825+_0x469495('0x14f6')])return _0x2eb6ed[_0x56b825+'Status']='pause','pause';return'idle';}else{if(_0x2eb6ed[_0x56b825+_0x469495('0x14f6')])return _0x2eb6ed[_0x56b825+_0x469495('0x21d8')]=_0x469495('0x619'),_0x469495('0x619');return _0x2eb6ed[_0x56b825+_0x469495('0x21d8')];}}function _0x239064(_0x48c991){const _0x27f972=_0x8fe228;let _0xc63964='unknown';if(_0x283545()['every']([_0x4141c9(_0x48c991,_0x27f972('0x1f60')),_0x4141c9(_0x48c991,_0x27f972('0x231')),_0x4141c9(_0x48c991,_0x27f972('0x2795')),_0x4141c9(_0x48c991,_0x27f972('0x18aa')),_0x4141c9(_0x48c991,'sms'),_0x4141c9(_0x48c991,_0x27f972('0x195d')),_0x4141c9(_0x48c991,_0x27f972('0x10cf'))],_0x1cd50a))_0xc63964='pause';else{if(_0x283545()[_0x27f972('0xc5d')]([_0x4141c9(_0x48c991,_0x27f972('0x1f60')),_0x4141c9(_0x48c991,_0x27f972('0x231')),_0x4141c9(_0x48c991,_0x27f972('0x2795')),_0x4141c9(_0x48c991,'openchannel'),_0x4141c9(_0x48c991,_0x27f972('0x529')),_0x4141c9(_0x48c991,_0x27f972('0x195d')),_0x4141c9(_0x48c991,_0x27f972('0x10cf'))],_0x1cd50a))_0xc63964=_0x27f972('0x1d48');else _0x283545()[_0x27f972('0x111e')]([_0x4141c9(_0x48c991,_0x27f972('0x1f60')),_0x4141c9(_0x48c991,_0x27f972('0x231')),_0x4141c9(_0x48c991,_0x27f972('0x2795')),_0x4141c9(_0x48c991,_0x27f972('0x18aa')),_0x4141c9(_0x48c991,_0x27f972('0x529')),_0x4141c9(_0x48c991,_0x27f972('0x195d')),_0x4141c9(_0x48c991,_0x27f972('0x10cf'))],_0x13e9de)?_0xc63964=_0x27f972('0x124c'):_0xc63964='busy';}_0x48c991[_0x27f972('0xee3')]!==_0xc63964&&(_0x48c991[_0x27f972('0xee3')]=_0xc63964,_0x48c991['init']?(_0x48c991[_0x27f972('0x24eb')]=![],_0x48c991[_0x27f972('0xf3b')]=_0x1cd50a(_0xc63964)?_0x283545()[_0x27f972('0x420')](_0x59f37a()(_0x48c991[_0x27f972('0x233e')])[_0x27f972('0x22b4')]('x')):_0x283545()[_0x27f972('0xb0a')]([_0x48c991[_0x27f972('0x48b')],_0x48c991[_0x27f972('0x1eeb')],_0x48c991['mailStatusTime'],_0x48c991[_0x27f972('0x27b0')],_0x48c991['whatsappStatusTime'],_0x48c991[_0x27f972('0x320')],_0x48c991['faxStatusTime']])):_0x48c991[_0x27f972('0xf3b')]=_0x283545()[_0x27f972('0x420')](_0x59f37a()()[_0x27f972('0x22b4')]('x')));}function _0x13bfd3(_0x11d648){const _0x2dc924=_0x8fe228,_0x1ce02c=_0x283545()[_0x2dc924('0x993')](_0xb6a72b[_0x2dc924('0x135a')][_0x2dc924('0x1dc2')],'-')?_0x2dc924('0x25b5'):'asc';return _0x283545()[_0x2dc924('0xf87')](_0x11d648,[_0xb6a72b['query'][_0x2dc924('0x1dc2')][_0x2dc924('0x10a4')]('-','')],[_0x1ce02c]);}function _0x24592b(){const _0x3dc10d=_0x8fe228;_0x46f3cf&&(_0x37a107[_0x3dc10d('0x1801')](_0x46f3cf),_0x46f3cf=null);}function _0x404a60(_0x3d4115,_0x412c15){const _0x5aa072=_0x8fe228;return _0x39b550[_0x5aa072('0x1e6a')][_0x5aa072('0x2740')]({'id':_0x3d4115['id']},{'screenrecording':_0x412c15})[_0x5aa072('0x1714')][_0x5aa072('0x1cb5')](function(_0x391747){const _0x38c6ca=_0x5aa072;_0x5b6bfd['error']({'title':_0x391747[_0x38c6ca('0x1b51')]?_0x38c6ca('0x15d1')+_0x391747[_0x38c6ca('0x1b51')]+_0x38c6ca('0x1b0b')+_0x391747['statusText']:'api.user.update','msg':_0x391747[_0x38c6ca('0x11fc')]?JSON[_0x38c6ca('0x1be0')](_0x391747[_0x38c6ca('0x11fc')][_0x38c6ca('0x15e2')]):_0x391747['toString']()});});}_0x3402ae[_0x8fe228('0x651')]('$destroy',function(){const _0x12e7f7=_0x8fe228;_0x4eb3a7[_0x12e7f7('0x277f')]('user:save'),_0x4eb3a7[_0x12e7f7('0x277f')](_0x12e7f7('0x1cb6')),_0x4eb3a7[_0x12e7f7('0x277f')](_0x12e7f7('0x1958')),_0x4eb3a7['removeAllListeners']('user:agentcomplete'),_0x24592b();});}const _0x1f3142=_0x1ae7fc,_0x272898=_0x18dd13['p']+_0x34e79e('0x2141');_0x319e35[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x16e3'),'rpcCampaigns',_0x34e79e('0xac6'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x319e35(_0xb67c33,_0x2cd89f,_0x17e3f7,_0xd3c8db,_0x228565,_0x52f77b,_0x528bc8,_0x50946b,_0x338855,_0x767844,_0x495ca9,_0x377f5a){const _0x268fdb=_0x34e79e,_0x879a3b=this,_0x5c8ef6=[_0x268fdb('0x1a8d'),'active',_0x268fdb('0x15a1'),_0x268fdb('0x15e2'),_0x268fdb('0x253b'),_0x268fdb('0x20d0'),_0x268fdb('0xe64'),_0x268fdb('0x312'),_0x268fdb('0x1854'),_0x268fdb('0x1fb9'),_0x268fdb('0x1030'),_0x268fdb('0x2464'),_0x268fdb('0x27b9')];_0x879a3b[_0x268fdb('0x9cb')]=_0x377f5a[_0x268fdb('0x24cc')](),_0x879a3b[_0x268fdb('0x338')]=_0x528bc8['count'],_0x879a3b[_0x268fdb('0xac6')]=_0x528bc8?_0x283545()[_0x268fdb('0x13cf')](_0x528bc8[_0x268fdb('0x25df')]?_0x528bc8['rows']:[],'id'):{},_0x879a3b['rpcCampaigns']=_0x52f77b?_0x283545()[_0x268fdb('0x13cf')](_0x52f77b['rows']?_0x52f77b[_0x268fdb('0x25df')]:[],'id'):{},_0x879a3b[_0x268fdb('0x63c')]=_0x767844,_0x879a3b[_0x268fdb('0xec9')]=_0x495ca9&&_0x495ca9[_0x268fdb('0x338')]==0x1?_0x495ca9[_0x268fdb('0x25df')][0x0]:null,_0x879a3b[_0x268fdb('0xe28')]=_0x377f5a[_0x268fdb('0x157e')](_0x879a3b[_0x268fdb('0xec9')]?_0x879a3b[_0x268fdb('0xec9')][_0x268fdb('0xe28')]:null),_0x879a3b['query']={'sort':_0x268fdb('0x1cee'),'limit':0xa,'page':0x1},_0x879a3b[_0x268fdb('0x173b')]=_0x53dec1,_0x879a3b[_0x268fdb('0x2341')]=_0x211297,_0x879a3b[_0x268fdb('0x158d')]=_0x2985e3,_0x879a3b[_0x268fdb('0x11ad')]=_0x3dda57,_0x879a3b[_0x268fdb('0x75d')]=_0x9098a4,_0x338855[_0x268fdb('0x3e')](_0x268fdb('0x24fa'),_0x879a3b[_0x268fdb('0x158d')]),_0x879a3b['interval']=_0x228565(function(){},0x3e7);function _0x3dda57(){const _0x165e68=_0x268fdb;_0x283545()[_0x165e68('0x1b')](_0x879a3b['campaigns'],function(_0x1c2e2f,_0xc5cd0c){const _0x4fbb05=_0x165e68;_0x879a3b[_0x4fbb05('0x2374')][_0xc5cd0c]&&_0x283545()['merge'](_0x1c2e2f,_0x283545()[_0x4fbb05('0x41b')](_0x879a3b[_0x4fbb05('0x2374')][_0xc5cd0c],_0x5c8ef6));});}function _0x2985e3(_0x3aabad){const _0x2bf941=_0x268fdb;_0x879a3b[_0x2bf941('0xac6')][_0x3aabad['id']]&&(_0x283545()[_0x2bf941('0x2503')](_0x879a3b[_0x2bf941('0xac6')][_0x3aabad['id']],_0x283545()[_0x2bf941('0x41b')](_0x3aabad,_0x5c8ef6)),_0x283545()[_0x2bf941('0x2503')](_0x879a3b[_0x2bf941('0x2374')][_0x3aabad['id']],_0x283545()[_0x2bf941('0x41b')](_0x3aabad,_0x5c8ef6)));}let _0x170119=!![],_0x5aa726=0x1;_0xb67c33['$watch'](_0x268fdb('0x1569'),function(_0x1cdaaa,_0x25a821){const _0x49bbf0=_0x268fdb;_0x170119?_0x2cd89f(function(){_0x170119=![];}):(!_0x25a821&&(_0x5aa726=_0x879a3b['query'][_0x49bbf0('0x23f5')]),_0x1cdaaa!==_0x25a821&&(_0x879a3b[_0x49bbf0('0x135a')][_0x49bbf0('0x23f5')]=0x1),!_0x1cdaaa&&(_0x879a3b[_0x49bbf0('0x135a')][_0x49bbf0('0x23f5')]=_0x5aa726),_0x879a3b[_0x49bbf0('0x2341')]());});function _0x53dec1(_0x47aa9a){const _0x47a761=_0x268fdb;_0x879a3b[_0x47a761('0x338')]=_0x47aa9a[_0x47a761('0x338')],_0x879a3b[_0x47a761('0xac6')]=_0x47aa9a?_0x283545()[_0x47a761('0x13cf')](_0x47aa9a[_0x47a761('0x25df')]?_0x47aa9a[_0x47a761('0x25df')]:[],'id'):{},_0x3dda57();}function _0x211297(){const _0x1f2099=_0x268fdb;_0x879a3b[_0x1f2099('0x135a')][_0x1f2099('0x19e')]=(_0x879a3b[_0x1f2099('0x135a')][_0x1f2099('0x23f5')]-0x1)*_0x879a3b[_0x1f2099('0x135a')][_0x1f2099('0x68e')],_0x377f5a[_0x1f2099('0x1516')](_0x1f2099('0xe23'))?_0x879a3b[_0x1f2099('0x1808')]=_0x50946b['campaign'][_0x1f2099('0x1335')](_0x879a3b[_0x1f2099('0x135a')],_0x53dec1)[_0x1f2099('0x1714')]:(_0x879a3b[_0x1f2099('0x135a')]['id']=_0x879a3b[_0x1f2099('0x63c')]['id'],_0x879a3b[_0x1f2099('0x135a')]['section']=_0x1f2099('0x1c0c'),_0x879a3b['promise']=_0x50946b[_0x1f2099('0x63c')][_0x1f2099('0xa1')](_0x879a3b['query'],_0x53dec1)[_0x1f2099('0x1714')]);}function _0x9098a4(_0x4458ce,_0x5696a6){const _0x27364b=_0x268fdb;_0x17e3f7[_0x27364b('0x2fa')]({'controller':_0x27364b('0x27c4'),'controllerAs':'vm','templateUrl':_0x272898,'parent':angular[_0x27364b('0x16b1')](_0xd3c8db[_0x27364b('0x945')]),'targetEvent':_0x4458ce,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x5696a6,'ivrCampaigns':_0x283545()['values'](_0x879a3b['campaigns']),'license':null,'setting':null,'crudPermissions':_0x879a3b['crudPermissions']}});}_0xb67c33[_0x268fdb('0x651')](_0x268fdb('0x26ac'),function(){const _0x509d7c=_0x268fdb;_0x338855['removeAllListeners'](_0x509d7c('0x24fa')),_0x879a3b[_0x509d7c('0x2630')]&&_0x228565[_0x509d7c('0x1801')](_0x879a3b[_0x509d7c('0x2630')]);});}const _0x1dcd6b=_0x319e35;_0x47bd9a['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1713'),_0x34e79e('0x283e'),_0x34e79e('0x72'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x1fc6'),_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x47bd9a(_0x25568c,_0x582fc5,_0x3b3224,_0x707ede,_0x568a1f,_0x582c5e,_0x1affd7,_0x57ff83,_0x57d7a1,_0x52dcfc,_0x1ee7fb,_0x2e6531,_0xd18754){const _0x5b0fbd=_0x34e79e,_0x3e95db=this;_0x3e95db[_0x5b0fbd('0x9cb')]=_0xd18754[_0x5b0fbd('0x24cc')](),_0x3e95db[_0x5b0fbd('0x1713')]=_0x707ede||{'count':0x0,'rows':[]},_0x3e95db[_0x5b0fbd('0x283e')]=_0x568a1f?_0x283545()[_0x5b0fbd('0x13cf')](_0x568a1f[_0x5b0fbd('0x25df')]?_0x568a1f[_0x5b0fbd('0x25df')]:[],_0x5b0fbd('0x1a8d')):{},_0x3e95db[_0x5b0fbd('0x1d2b')]=_0x582c5e?_0x283545()[_0x5b0fbd('0x13cf')](_0x582c5e[_0x5b0fbd('0x25df')]?_0x283545()[_0x5b0fbd('0x916')](_0x582c5e['rows'],{'type':_0x5b0fbd('0x1')}):[],_0x5b0fbd('0x1be7')):{},_0x3e95db['rpcVoiceQueuesChannels']={},_0x3e95db['userProfile']=_0x1ee7fb,_0x3e95db[_0x5b0fbd('0xec9')]=_0x2e6531&&_0x2e6531['count']==0x1?_0x2e6531[_0x5b0fbd('0x25df')][0x0]:null,_0x3e95db[_0x5b0fbd('0xe28')]=_0xd18754[_0x5b0fbd('0x157e')](_0x3e95db['userProfileSection']?_0x3e95db[_0x5b0fbd('0xec9')][_0x5b0fbd('0xe28')]:null),_0x3e95db['queryChannels']={'limit':0xa,'page':0x1},_0x3e95db[_0x5b0fbd('0xcb9')]=_0xa5ebf0,_0x3e95db[_0x5b0fbd('0x11ad')]=_0x23959e,_0x3e95db[_0x5b0fbd('0x158d')]=_0x194adf,_0x3e95db[_0x5b0fbd('0xf2e')]=_0x455866,_0x3e95db[_0x5b0fbd('0x42c')]=_0x53e17c,_0x3e95db[_0x5b0fbd('0x1a61')]=_0x3d13f4,_0x3e95db[_0x5b0fbd('0x11e5')]=_0x53b754,_0x57ff83['on'](_0x5b0fbd('0x21fe'),_0x3e95db[_0x5b0fbd('0x158d')]),_0x57ff83['on'](_0x5b0fbd('0x1aab'),_0x3e95db[_0x5b0fbd('0xf2e')]);function _0xa5ebf0(_0x46b576){const _0x1bca70=_0x5b0fbd;return _0x283545()[_0x1bca70('0x634')](_0x46b576);}function _0x23959e(){const _0xe7805=_0x5b0fbd;_0x283545()[_0xe7805('0x1b')](_0x3e95db[_0xe7805('0x1d2b')],function(_0x1e835c,_0xcdba32){const _0x260897=_0xe7805;_0x283545()[_0x260897('0x20e8')](_0x3e95db['queues'],{'name':_0x1e835c[_0x260897('0x1a8d')]})&&(_0x3e95db[_0x260897('0x72')][_0xcdba32]=_0x1e835c);});}function _0x194adf(_0x346992){const _0x336156=_0x5b0fbd;_0x346992[_0x336156('0x1d7')]===_0x336156('0x1')&&(_0x283545()[_0x336156('0x20e8')](_0x3e95db[_0x336156('0x283e')],{'name':_0x346992[_0x336156('0x1a8d')]})&&(_0x3e95db[_0x336156('0x72')][_0x346992[_0x336156('0x1be7')]]=_0x346992));}function _0x455866(_0x511b21){const _0x1439a8=_0x5b0fbd;_0x3e95db[_0x1439a8('0x72')][_0x511b21['uniqueid']]&&delete _0x3e95db[_0x1439a8('0x72')][_0x511b21[_0x1439a8('0x1be7')]];}function _0x53e17c(_0x1fe0cc){const _0xc31684=_0x5b0fbd;return _0x1affd7[_0xc31684('0x1bfc')][_0xc31684('0x1adf')]({'uniqueid':_0x1fe0cc})['$promise']['then'](function(_0x42b876){const _0x5b9817=_0xc31684;_0x52dcfc[_0x5b9817('0x173b')]({'title':_0x5b9817('0x1487')+_0x1fe0cc+_0x5b9817('0x180a'),'msg':_0x42b876[_0x5b9817('0x15e2')]||''});})[_0xc31684('0x1cb5')](function(_0x2168fe){const _0x9b236=_0xc31684;_0x52dcfc['error']({'title':_0x2168fe[_0x9b236('0x1b51')]+_0x9b236('0x1b0b')+_0x2168fe[_0x9b236('0x22ce')],'msg':JSON[_0x9b236('0x1be0')](_0x2168fe[_0x9b236('0x11fc')])||_0x2168fe[_0x9b236('0x15e2')]['join']('\x20')});});}function _0x3d13f4(_0x2c035d,_0x4c9490,_0x42d136){const _0x67e283=_0x5b0fbd;return _0x1affd7[_0x67e283('0x1bfc')][_0x67e283('0x876')]({'uniqueid':_0x2c035d,'exten':_0x4c9490,'context':_0x42d136})[_0x67e283('0x1714')][_0x67e283('0x2788')](function(_0x63c591){const _0x47588c=_0x67e283;_0x52dcfc[_0x47588c('0x173b')]({'title':_0x47588c('0x1487')+_0x2c035d+_0x47588c('0x24d8'),'msg':_0x63c591[_0x47588c('0x15e2')]||''});})[_0x67e283('0x1cb5')](function(_0x2a12c5){const _0x237b77=_0x67e283;_0x52dcfc[_0x237b77('0x5e8')]({'title':_0x2a12c5['status']+_0x237b77('0x1b0b')+_0x2a12c5['statusText'],'msg':JSON['stringify'](_0x2a12c5[_0x237b77('0x11fc')])||_0x2a12c5[_0x237b77('0x15e2')][_0x237b77('0x185f')]('\x20')});});}function _0x53b754(_0xd7f737,_0x3d3954){const _0x2db689=_0x5b0fbd,_0x5af13e=_0x3b3224[_0x2db689('0x1d45')]()['title']('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x2db689('0xd27')](_0x2db689('0x771'))[_0x2db689('0x24d0')](_0xd7f737)['ok']('Ok')[_0x2db689('0x1801')]('Cancel');return _0x3b3224[_0x2db689('0x2fa')](_0x5af13e)[_0x2db689('0x2788')](function(_0x640713){const _0xb53ef3=_0x2db689;return _0x1affd7[_0xb53ef3('0x1bfc')][_0xb53ef3('0x876')]({'uniqueid':_0x3d3954,'exten':_0x640713})[_0xb53ef3('0x1714')];})['then'](function(_0x1d18f7){const _0x5a19a0=_0x2db689;_0x52dcfc['success']({'title':_0x5a19a0('0x1487')+_0x3d3954+'\x20properly\x20redirect!','msg':_0x1d18f7[_0x5a19a0('0x15e2')]||''});})[_0x2db689('0x1cb5')](function(_0x3c7140){const _0xc18d7e=_0x2db689;_0x52dcfc['error']({'title':_0x3c7140[_0xc18d7e('0x1b51')]+_0xc18d7e('0x1b0b')+_0x3c7140[_0xc18d7e('0x22ce')],'msg':JSON[_0xc18d7e('0x1be0')](_0x3c7140[_0xc18d7e('0x11fc')])||_0x3c7140[_0xc18d7e('0x15e2')][_0xc18d7e('0x185f')]('\x20')});});}_0x25568c['$on'](_0x5b0fbd('0x26ac'),function(){const _0x275ee4=_0x5b0fbd;_0x57ff83[_0x275ee4('0x277f')](_0x275ee4('0x21fe')),_0x57ff83['removeAllListeners'](_0x275ee4('0x1aab'));});}const _0x58f2c9=_0x47bd9a;_0x48d74f[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x16e3'),_0x34e79e('0x283e'),'rpcQueues',_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x48d74f(_0x1c87b7,_0x1871c6,_0x595f43,_0x1642d1,_0x40bbcc,_0x446bf2,_0x2412cb,_0x222d9b,_0xaaa918,_0x139cf1){const _0x5f04ec=_0x34e79e,_0x43fa21=this,_0x271efc=[_0x5f04ec('0x510'),_0x5f04ec('0xacf'),_0x5f04ec('0x1709'),_0x5f04ec('0x15d3'),'sumBillable',_0x5f04ec('0x11e'),_0x5f04ec('0x1f1a'),'outboundCongestionCallsDay','outboundNoSuchCallsDay',_0x5f04ec('0x10c4'),_0x5f04ec('0xf88'),_0x5f04ec('0x10a9'),_0x5f04ec('0x1b08'),'outboundOriginateFailureCallsDay',_0x5f04ec('0x2678'),_0x5f04ec('0x230d'),'outboundRejectCallsDay'];_0x43fa21['count']=_0x1642d1[_0x5f04ec('0x338')],_0x43fa21[_0x5f04ec('0x283e')]=_0x1642d1?_0x283545()['keyBy'](_0x1642d1[_0x5f04ec('0x25df')]?_0x1642d1[_0x5f04ec('0x25df')]:[],'id'):{},_0x43fa21[_0x5f04ec('0x274c')]=_0x40bbcc?_0x283545()[_0x5f04ec('0x13cf')](_0x40bbcc[_0x5f04ec('0x25df')]?_0x40bbcc[_0x5f04ec('0x25df')]:[],'id'):{},_0x43fa21[_0x5f04ec('0x63c')]=_0x222d9b,_0x43fa21['userProfileSection']=_0xaaa918&&_0xaaa918['count']==0x1?_0xaaa918['rows'][0x0]:null,_0x43fa21[_0x5f04ec('0xe28')]=_0x139cf1[_0x5f04ec('0x157e')](_0x43fa21[_0x5f04ec('0xec9')]?_0x43fa21[_0x5f04ec('0xec9')]['crudPermissions']:null);_0x139cf1[_0x5f04ec('0x1516')](_0x5f04ec('0xe23'))?_0x43fa21['query']={'type':_0x5f04ec('0x1'),'fields':_0x5f04ec('0x1338'),'sort':_0x5f04ec('0x1cee'),'limit':0xa,'page':0x1}:_0x43fa21[_0x5f04ec('0x135a')]={'id':_0x139cf1[_0x5f04ec('0x24cc')]()['id'],'channel':_0x5f04ec('0x1f60'),'type':_0x5f04ec('0x1'),'fields':_0x5f04ec('0x1338'),'sort':_0x5f04ec('0x1cee'),'limit':0xa,'page':0x1};_0x43fa21[_0x5f04ec('0x173b')]=_0x43ae1d,_0x43fa21[_0x5f04ec('0x138a')]=_0x5c4191,_0x43fa21[_0x5f04ec('0x158d')]=_0x19c9b7,_0x43fa21[_0x5f04ec('0x11ad')]=_0x34dd9c,_0x2412cb[_0x5f04ec('0x3e')](_0x5f04ec('0x2467'),_0x43fa21[_0x5f04ec('0x158d')]),_0x43fa21[_0x5f04ec('0x2630')]=_0x595f43(function(){},0x3e7);function _0x34dd9c(){const _0x52ff8e=_0x5f04ec;_0x283545()[_0x52ff8e('0x1b')](_0x43fa21[_0x52ff8e('0x283e')],function(_0x42013f,_0x55ab68){const _0x316f62=_0x52ff8e;_0x43fa21[_0x316f62('0x274c')][_0x55ab68]&&_0x283545()[_0x316f62('0x2503')](_0x42013f,_0x283545()[_0x316f62('0x41b')](_0x43fa21[_0x316f62('0x274c')][_0x55ab68],_0x271efc));});}function _0x19c9b7(_0x1984b7){const _0x1e0828=_0x5f04ec;_0x43fa21[_0x1e0828('0x283e')][_0x1984b7['id']]&&_0x283545()[_0x1e0828('0x2503')](_0x43fa21['queues'][_0x1984b7['id']],_0x283545()['pick'](_0x1984b7,_0x271efc));}let _0x2db509=!![],_0x1333e5=0x1;_0x1c87b7['$watch'](_0x5f04ec('0x1569'),function(_0x277863,_0x206206){const _0x481d66=_0x5f04ec;_0x2db509?_0x1871c6(function(){_0x2db509=![];}):(!_0x206206&&(_0x1333e5=_0x43fa21[_0x481d66('0x135a')][_0x481d66('0x23f5')]),_0x277863!==_0x206206&&(_0x43fa21[_0x481d66('0x135a')]['page']=0x1),!_0x277863&&(_0x43fa21[_0x481d66('0x135a')][_0x481d66('0x23f5')]=_0x1333e5),_0x43fa21[_0x481d66('0x138a')]());});function _0x43ae1d(_0x1645fc){const _0x5d8f20=_0x5f04ec;_0x43fa21[_0x5d8f20('0x338')]=_0x1645fc[_0x5d8f20('0x338')],_0x43fa21['queues']=_0x1645fc?_0x283545()[_0x5d8f20('0x13cf')](_0x1645fc[_0x5d8f20('0x25df')]?_0x1645fc[_0x5d8f20('0x25df')]:[],'id'):{},_0x34dd9c();}function _0x5c4191(){const _0x3e0c59=_0x5f04ec;_0x43fa21[_0x3e0c59('0x135a')][_0x3e0c59('0x19e')]=(_0x43fa21[_0x3e0c59('0x135a')][_0x3e0c59('0x23f5')]-0x1)*_0x43fa21[_0x3e0c59('0x135a')][_0x3e0c59('0x68e')],_0x139cf1[_0x3e0c59('0x1516')](_0x3e0c59('0xe23'))?_0x43fa21['promise']=_0x446bf2[_0x3e0c59('0x2043')][_0x3e0c59('0x1335')](_0x43fa21[_0x3e0c59('0x135a')],_0x43ae1d)[_0x3e0c59('0x1714')]:(_0x43fa21[_0x3e0c59('0x135a')]['id']=_0x43fa21['userProfile']['id'],_0x43fa21[_0x3e0c59('0x135a')][_0x3e0c59('0xb13')]=_0x3e0c59('0x1530'),_0x43fa21[_0x3e0c59('0x1808')]=_0x446bf2[_0x3e0c59('0x63c')][_0x3e0c59('0xa1')](_0x43fa21[_0x3e0c59('0x135a')],_0x43ae1d)[_0x3e0c59('0x1714')]);}_0x1c87b7[_0x5f04ec('0x651')](_0x5f04ec('0x26ac'),function(){const _0x271ce7=_0x5f04ec;_0x2412cb['removeAllListeners'](_0x271ce7('0x2467')),_0x43fa21['interval']&&_0x595f43[_0x271ce7('0x1801')](_0x43fa21[_0x271ce7('0x2630')]);});}const _0x2cfb04=_0x48d74f,_0x3f9f56=_0x18dd13['p']+_0x34e79e('0x21ae'),_0x3ecd4d=_0x18dd13['p']+_0x34e79e('0x5dc'),_0x112656=_0x18dd13['p']+_0x34e79e('0x8c8');_0x3bc43b[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$q','$document',_0x34e79e('0x16e3'),_0x34e79e('0x283e'),_0x34e79e('0x274c'),_0x34e79e('0x519'),_0x34e79e('0xd6f'),'toasty',_0x34e79e('0x63c'),_0x34e79e('0xec9'),'Auth'];function _0x3bc43b(_0x72ef1,_0x3214b5,_0x4204cf,_0x2a4aef,_0x140ead,_0x11e9d0,_0x1c9ff8,_0x136cfc,_0x1b63e1,_0x4b808b,_0x1ac7e0,_0x27e030,_0x5dd97c,_0x48e89f){const _0x4450fa=_0x34e79e,_0xcbd69f=this,_0x37c7e5=[_0x4450fa('0x477'),_0x4450fa('0x2705'),_0x4450fa('0x1eb6'),_0x4450fa('0x1e8c'),_0x4450fa('0x21c9'),'originated',_0x4450fa('0x15e2'),_0x4450fa('0x10b2'),_0x4450fa('0x1054'),_0x4450fa('0x312'),'paused','startPredictive',_0x4450fa('0x1179'),_0x4450fa('0x49c'),_0x4450fa('0x955'),_0x4450fa('0x1c9b'),_0x4450fa('0x2167'),_0x4450fa('0x100e'),_0x4450fa('0x1f0d'),_0x4450fa('0x162b'),'predictiveIntervalAvailable',_0x4450fa('0x12d4'),_0x4450fa('0x11ae'),_0x4450fa('0x1610'),_0x4450fa('0x1272'),_0x4450fa('0x7c7'),'predictiveIntervalAvgTalktime'];_0xcbd69f['currentUser']=_0x48e89f['getCurrentUser'](),_0xcbd69f['count']=_0x1c9ff8[_0x4450fa('0x338')]?_0x1c9ff8[_0x4450fa('0x338')]:0x0,_0xcbd69f['queues']=_0x1c9ff8?_0x283545()[_0x4450fa('0x13cf')](_0x1c9ff8[_0x4450fa('0x25df')]?_0x1c9ff8['rows']:[],'id'):{},_0xcbd69f[_0x4450fa('0x274c')]=_0x136cfc?_0x283545()[_0x4450fa('0x13cf')](_0x136cfc[_0x4450fa('0x25df')]?_0x136cfc[_0x4450fa('0x25df')]:[],'id'):{},_0xcbd69f[_0x4450fa('0x63c')]=_0x27e030,_0xcbd69f[_0x4450fa('0xec9')]=_0x5dd97c&&_0x5dd97c[_0x4450fa('0x338')]==0x1?_0x5dd97c[_0x4450fa('0x25df')][0x0]:null,_0xcbd69f[_0x4450fa('0xe28')]=_0x48e89f[_0x4450fa('0x157e')](_0xcbd69f[_0x4450fa('0xec9')]?_0xcbd69f[_0x4450fa('0xec9')][_0x4450fa('0xe28')]:null);_0x48e89f[_0x4450fa('0x1516')](_0x4450fa('0xe23'))?_0xcbd69f[_0x4450fa('0x135a')]={'type':_0x4450fa('0x1'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0xcbd69f[_0x4450fa('0x135a')]={'id':_0xcbd69f[_0x4450fa('0x9cb')]['id'],'channel':'voice','type':_0x4450fa('0x1'),'sort':_0x4450fa('0x1cee'),'limit':0xa,'page':0x1};_0xcbd69f[_0x4450fa('0x173b')]=_0x4c50b2,_0xcbd69f['getQueues']=_0x5f5502,_0xcbd69f[_0x4450fa('0x172a')]=_0x3c815a,_0xcbd69f[_0x4450fa('0x137b')]=_0x180ab1,_0xcbd69f[_0x4450fa('0x2510')]=_0x401768,_0xcbd69f[_0x4450fa('0x154c')]=_0x546cf0,_0xcbd69f['onSave']=_0x21f457,_0xcbd69f[_0x4450fa('0x25e9')]=_0x3a7933,_0xcbd69f[_0x4450fa('0x1768')]=_0x3d7972,_0xcbd69f['onLogin']=_0x3fbda0,_0xcbd69f[_0x4450fa('0x234')]=_0x3998d5,_0xcbd69f[_0x4450fa('0x11ad')]=_0x176778,_0xcbd69f[_0x4450fa('0x1dc2')]=[],_0x283545()[_0x4450fa('0x1b')](_0xcbd69f['queues'],function(_0x1a2660){const _0x387278=_0x4450fa;_0xcbd69f[_0x387278('0x1dc2')][_0x387278('0x13e3')](_0x1a2660['id']);}),_0x4b808b[_0x4450fa('0x3e')](_0x4450fa('0x2467'),_0xcbd69f[_0x4450fa('0x158d')]),_0xcbd69f['interval']=_0x11e9d0(function(){},0x3e7),_0x4b808b['on'](_0x4450fa('0x1a99'),_0xcbd69f['onSaveMember']),_0x4b808b['on'](_0x4450fa('0x1cb6'),_0xcbd69f[_0x4450fa('0x1768')]),_0x4b808b['on'](_0x4450fa('0x11e0'),_0xcbd69f['onLogout']),_0x4b808b['on']('userVoiceQueue:save',_0xcbd69f[_0x4450fa('0x18e3')]);function _0x176778(){const _0xa133b9=_0x4450fa,_0x39f717=[];return _0x283545()[_0xa133b9('0x1b')](_0xcbd69f[_0xa133b9('0x283e')],function(_0xd1b1b7,_0x20e1e1){const _0x2688ab=_0xa133b9;_0xd1b1b7[_0x2688ab('0x120')]=0x0,_0xd1b1b7['loggedInDb']=0x0,_0xcbd69f[_0x2688ab('0x283e')][_0x20e1e1]['agents']={},_0x39f717[_0x2688ab('0x13e3')](_0x1b63e1[_0x2688ab('0x2043')]['getMembers']({'id':_0x20e1e1})[_0x2688ab('0x1714')]),_0xcbd69f[_0x2688ab('0x274c')][_0x20e1e1]&&_0x283545()[_0x2688ab('0x2503')](_0xd1b1b7,_0x283545()[_0x2688ab('0x41b')](_0xcbd69f[_0x2688ab('0x274c')][_0x20e1e1],_0x37c7e5));}),_0x2a4aef[_0xa133b9('0x1def')](_0x39f717)[_0xa133b9('0x2788')](function(_0x20c2df){const _0xfa3580=_0xa133b9;for(let _0x4a010c=0x0;_0x4a010c<_0x20c2df[_0xfa3580('0x2566')];_0x4a010c+=0x1){for(let _0x1157da=0x0;_0x1157da<_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0xfa3580('0x2566')];_0x1157da++){_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0x1157da][_0xfa3580('0x120')]&&_0xcbd69f[_0xfa3580('0x283e')][_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0x1157da]['VoiceQueueId']][_0xfa3580('0x120')]++,_0xcbd69f[_0xfa3580('0x283e')][_0x20c2df[_0x4a010c]['rows'][_0x1157da][_0xfa3580('0xe6b')]]['loggedInDb']++,_0xcbd69f[_0xfa3580('0x283e')][_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0x1157da][_0xfa3580('0xe6b')]][_0xfa3580('0x1713')][_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0x1157da][_0xfa3580('0x3bb')]]=_0x20c2df[_0x4a010c][_0xfa3580('0x25df')][_0x1157da][_0xfa3580('0xe6b')];}}})[_0xa133b9('0x1cb5')](function(_0x49fd4f){const _0x37346e=_0xa133b9;console[_0x37346e('0x5e8')](_0x49fd4f);});}function _0x21f457(_0x141ca2){const _0xe842a=_0x4450fa;_0xcbd69f[_0xe842a('0x283e')][_0x141ca2['id']]&&(_0x283545()['merge'](_0xcbd69f[_0xe842a('0x283e')][_0x141ca2['id']],_0x283545()[_0xe842a('0x41b')](_0x141ca2,_0x37c7e5)),_0x283545()['isNil'](_0x141ca2[_0xe842a('0x406')])&&(_0xcbd69f[_0xe842a('0x283e')][_0x141ca2['id']]['startPredictive']=undefined));}function _0x3a7933(_0x3e32b6){const _0x327564=_0x4450fa;_0xcbd69f[_0x327564('0x283e')][_0x3e32b6[_0x327564('0x227f')]]&&_0xcbd69f['queues'][_0x3e32b6[_0x327564('0x227f')]]['loggedInDb']++;}function _0x3d7972(_0x554202){const _0xcc4dfd=_0x4450fa;console['log'](_0xcc4dfd('0x1768'),_0x554202);if(_0x554202['voicePause'])_0x283545()['forIn'](_0xcbd69f[_0xcc4dfd('0x283e')],function(_0x226617){const _0x2fd9aa=_0xcc4dfd;_0x226617['agents'][_0x554202['id']]&&(_0x226617['paused']+=0x1,console[_0x2fd9aa('0x10df')](_0x2fd9aa('0x619')));});else!_0x554202['voicePause']&&_0x283545()['forIn'](_0xcbd69f['queues'],function(_0x99bbe6){const _0xf8a5f3=_0xcc4dfd;_0x99bbe6['agents'][_0x554202['id']]&&(_0x99bbe6[_0xf8a5f3('0x120')]>0x0&&(_0x99bbe6[_0xf8a5f3('0x120')]-=0x1,console['log'](_0xf8a5f3('0x1826'))));});}function _0x3fbda0(_0x12d00d){const _0x29af72=_0x4450fa;console[_0x29af72('0x10df')](_0x29af72('0x388'),_0x12d00d),_0xcbd69f[_0x29af72('0x283e')][_0x12d00d[_0x29af72('0xe6b')]]&&(_0xcbd69f[_0x29af72('0x283e')][_0x12d00d[_0x29af72('0xe6b')]][_0x29af72('0xc65')]+=0x1,_0xcbd69f[_0x29af72('0x283e')][_0x12d00d['VoiceQueueId']][_0x29af72('0x1713')][_0x12d00d[_0x29af72('0x3bb')]]=_0x12d00d[_0x29af72('0xe6b')]);}function _0x3998d5(_0x38f59d){const _0x87215b=_0x4450fa;console[_0x87215b('0x10df')](_0x87215b('0x234'),_0x38f59d),_0xcbd69f[_0x87215b('0x283e')][_0x38f59d[_0x87215b('0xe6b')]]&&_0xcbd69f[_0x87215b('0x283e')][_0x38f59d['VoiceQueueId']][_0x87215b('0xc65')]>0x0&&(_0xcbd69f['queues'][_0x38f59d['VoiceQueueId']][_0x87215b('0xc65')]-=0x1,delete _0xcbd69f[_0x87215b('0x283e')][_0x38f59d[_0x87215b('0xe6b')]][_0x87215b('0x1713')][_0x38f59d[_0x87215b('0x3bb')]]);}let _0x4b55ab=!![],_0x56d196=0x1;_0x72ef1[_0x4450fa('0x1662')](_0x4450fa('0x1569'),function(_0x27cba9,_0x5c15bb){const _0x5cf225=_0x4450fa;_0x4b55ab?_0x3214b5(function(){_0x4b55ab=![];}):(!_0x5c15bb&&(_0x56d196=_0xcbd69f['query'][_0x5cf225('0x23f5')]),_0x27cba9!==_0x5c15bb&&(_0xcbd69f['query'][_0x5cf225('0x23f5')]=0x1),!_0x27cba9&&(_0xcbd69f['query'][_0x5cf225('0x23f5')]=_0x56d196),_0xcbd69f[_0x5cf225('0x138a')]());});function _0x4c50b2(_0x50b167){const _0x42e062=_0x4450fa;_0xcbd69f[_0x42e062('0x338')]=_0x50b167[_0x42e062('0x338')],_0xcbd69f[_0x42e062('0x283e')]=_0x50b167?_0x283545()[_0x42e062('0x13cf')](_0x50b167[_0x42e062('0x25df')]?_0x50b167[_0x42e062('0x25df')]:[],'id'):{};if(_0x50b167[_0x42e062('0x25df')]){_0xcbd69f[_0x42e062('0x1dc2')]=[];for(let _0x14962c=0x0;_0x14962c<_0x50b167[_0x42e062('0x25df')][_0x42e062('0x2566')];_0x14962c++){_0xcbd69f[_0x42e062('0x1dc2')]['push'](_0x50b167['rows'][_0x14962c]['id']);}}_0x176778();}function _0x5f5502(){const _0x63d2ee=_0x4450fa;_0xcbd69f[_0x63d2ee('0x135a')][_0x63d2ee('0x19e')]=(_0xcbd69f[_0x63d2ee('0x135a')][_0x63d2ee('0x23f5')]-0x1)*_0xcbd69f[_0x63d2ee('0x135a')][_0x63d2ee('0x68e')],_0x48e89f[_0x63d2ee('0x1516')](_0x63d2ee('0xe23'))?_0xcbd69f[_0x63d2ee('0x1808')]=_0x1b63e1[_0x63d2ee('0x2043')][_0x63d2ee('0x1335')](_0xcbd69f[_0x63d2ee('0x135a')],_0x4c50b2)['$promise']:(_0xcbd69f['query']['id']=_0xcbd69f['userProfile']['id'],_0xcbd69f['query'][_0x63d2ee('0xb13')]=_0x63d2ee('0x1530'),_0xcbd69f[_0x63d2ee('0x1808')]=_0x1b63e1[_0x63d2ee('0x63c')][_0x63d2ee('0xa1')](_0xcbd69f[_0x63d2ee('0x135a')],_0x4c50b2)[_0x63d2ee('0x1714')]);}function _0x3c815a(_0x326e81,_0x435cd6){const _0x5ddbac=_0x4450fa;_0x4204cf[_0x5ddbac('0x2fa')]({'controller':_0x5ddbac('0x12fe'),'controllerAs':'vm','templateUrl':_0x3f9f56,'parent':angular[_0x5ddbac('0x16b1')](_0x140ead[_0x5ddbac('0x945')]),'targetEvent':_0x326e81,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x435cd6,'queueCampaigns':_0x283545()[_0x5ddbac('0xc5')](_0xcbd69f[_0x5ddbac('0x283e')]),'license':null,'setting':null,'crudPermissions':_0xcbd69f['crudPermissions']}});}function _0x180ab1(_0x35b0e1,_0x388788){const _0x4ca27e=_0x4450fa;_0x4204cf[_0x4ca27e('0x2fa')]({'controller':'PredictiveQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0x3ecd4d,'parent':angular[_0x4ca27e('0x16b1')](_0x140ead[_0x4ca27e('0x945')]),'targetEvent':_0x35b0e1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x388788}});}function _0x401768(_0x29a36a,_0x376380){const _0x50429d=_0x4450fa;_0x4204cf[_0x50429d('0x2fa')]({'controller':_0x50429d('0x715'),'controllerAs':'vm','templateUrl':_0x112656,'parent':angular[_0x50429d('0x16b1')](_0x140ead['body']),'targetEvent':_0x29a36a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x376380,'queueCampaigns':_0xcbd69f['queues']?_0xcbd69f[_0x50429d('0x283e')][_0x50429d('0x25df')]:[],'realtime':!![],'crudPermissions':_0xcbd69f['crudPermissions']}});}function _0x546cf0(_0x2c1995){const _0x1d852b=_0x4450fa;return _0x1b63e1[_0x1d852b('0x2043')][_0x1d852b('0x2740')](_0x2c1995)[_0x1d852b('0x1714')]['then'](function(){const _0xa72ac1=_0x1d852b;_0x1ac7e0[_0xa72ac1('0x173b')]({'title':_0xa72ac1('0xc31'),'msg':_0x2c1995['name']?_0x2c1995['name']+_0xa72ac1('0x6f8'):''});})['catch'](function(_0x45f8cc){const _0x49b71b=_0x1d852b;_0x1ac7e0[_0x49b71b('0x5e8')]({'title':_0x49b71b('0xa30'),'msg':_0x45f8cc['message']});});}_0x72ef1['$on'](_0x4450fa('0x26ac'),function(){const _0x56cd55=_0x4450fa;_0x4b808b['removeAllListeners'](_0x56cd55('0x2467')),_0xcbd69f['interval']&&_0x11e9d0[_0x56cd55('0x1801')](_0xcbd69f[_0x56cd55('0x2630')]),_0x4b808b[_0x56cd55('0x277f')](_0x56cd55('0x1a99')),_0x4b808b[_0x56cd55('0x277f')](_0x56cd55('0x1cb6')),_0x4b808b[_0x56cd55('0x277f')](_0x56cd55('0x11e0')),_0x4b808b[_0x56cd55('0x277f')](_0x56cd55('0x454'));});}const _0x4a087c=_0x3bc43b;_0xe1c797[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),_0x34e79e('0x16e3'),_0x34e79e('0x1895')];function _0xe1c797(_0x37a372,_0x5e1e07,_0x2fdfde){const _0x55f6e3=_0x34e79e,_0x1302b1=this;_0x1302b1[_0x55f6e3('0x1895')]=_0x2fdfde,_0x1302b1[_0x55f6e3('0x77e')]=_0x533aec,_0x1302b1['setFormatTime']=_0x12e4b5,_0x1302b1[_0x55f6e3('0xca7')]=_0x5469da;function _0x533aec(_0xac4fcc,_0x2e0983){const _0x28e574=_0x55f6e3;return _0x59f37a()(_0xac4fcc)[_0x28e574('0x9b8')]('m',_0x2e0983)['format'](_0x28e574('0x466'));}function _0x12e4b5(_0x196bca){const _0x3f86dd=_0x55f6e3;return _0x59f37a()(_0x196bca)[_0x3f86dd('0x22b4')]('HH:mm:ss');}function _0x5469da(){const _0x5a91d9=_0x55f6e3;_0x37a372[_0x5a91d9('0x19d')]();}}const _0x3f133d=_0xe1c797;function _0xb59654(){const _0xeac55b=_0x34e79e;return{'status':{'registered':_0xeac55b('0xc38'),'unregistered':_0xeac55b('0x1ad6'),'lagged':_0xeac55b('0x1ad6'),'reachable':_0xeac55b('0xc38'),'unreachable':_0xeac55b('0x1ad6'),'unknown':_0xeac55b('0x22b7')},'state':{'unknown':_0xeac55b('0x165d'),'not_inuse':_0xeac55b('0x368'),'inuse':_0xeac55b('0x1b19'),'busy':_0xeac55b('0xf03'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0xeac55b('0x165d'),'ringing':_0xeac55b('0x18d1'),'ringinuse':_0xeac55b('0x18d1'),'onhold':_0xeac55b('0x234e')},'channelStatus':{'ring':_0xeac55b('0x18d1'),'up':_0xeac55b('0x699'),'hangup':_0xeac55b('0x393')},'channelStatusOut':{'ring':_0xeac55b('0x2223'),'up':_0xeac55b('0x699'),'hangup':_0xeac55b('0x393')}};}const _0x1a5ff5=_0xb59654;_0x33fd2a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0xd6f')];function _0x33fd2a(_0x12ceb8,_0x3f3704,_0x10ff61){const _0x32a007=_0x34e79e,_0x4809e3=this;_0x10ff61[_0x32a007('0x16a4')](),_0x10ff61['connect'](),_0x4809e3['selectedTab']=0x0;switch(_0x3f3704[_0x32a007('0x1c7f')][_0x32a007('0x1a8d')]){case'app.motiondialer.realtime.agents':_0x4809e3[_0x32a007('0xcb3')]=0x0;break;case _0x32a007('0x792'):_0x4809e3['selectedTab']=0x1;break;case _0x32a007('0x75'):_0x4809e3[_0x32a007('0xcb3')]=0x2;break;case _0x32a007('0x1243'):_0x4809e3[_0x32a007('0xcb3')]=0x3;break;case'app.motiondialer.realtime.queue_params':_0x4809e3[_0x32a007('0xcb3')]=0x4;break;case _0x32a007('0x11c1'):_0x4809e3[_0x32a007('0xcb3')]=0x5;break;default:_0x4809e3['selectedTab']=0x0,_0x3f3704['go']('app.motiondialer.realtime.agents');}_0x12ceb8[_0x32a007('0x1662')](_0x32a007('0x362'),function(_0x5c8ed9,_0x4406b4){const _0x13e8e2=_0x32a007;if(_0x5c8ed9!==_0x4406b4)switch(_0x5c8ed9){case 0x0:_0x3f3704['go'](_0x13e8e2('0xf77'));break;case 0x1:_0x3f3704['go'](_0x13e8e2('0x792'));break;case 0x2:_0x3f3704['go'](_0x13e8e2('0x75'));break;case 0x3:_0x3f3704['go'](_0x13e8e2('0x1243'));break;case 0x4:_0x3f3704['go'](_0x13e8e2('0x13c4'));break;case 0x5:_0x3f3704['go'](_0x13e8e2('0x11c1'));break;default:_0x3f3704['go'](_0x13e8e2('0xf77'));}});}const _0x124859=_0x33fd2a;_0x44eb18[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x44eb18(_0x104a9e){const _0x4aaf4a=_0x34e79e;_0x104a9e[_0x4aaf4a('0x249b')]('app.motiondialer.realtime',{'url':_0x4aaf4a('0x2090'),'views':{'content@app':{'templateUrl':_0x322591,'controller':_0x4aaf4a('0xcad')}},'resolve':{'userProfile':[_0x4aaf4a('0x1318'),'Auth',function(_0x28fe1c,_0x5155e1){const _0x8e00dc=_0x4aaf4a;return _0x5155e1[_0x8e00dc('0x1516')]('admin')?null:_0x28fe1c[_0x8e00dc('0x2322')](_0x8e00dc('0x231d'),{'fields':_0x8e00dc('0x3f0'),'id':_0x5155e1['getCurrentUser']()[_0x8e00dc('0x237f')]});}],'userProfileSection':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x97291d,_0x5367fd){const _0x6c8345=_0x4aaf4a;return _0x5367fd['hasRole']('admin')?null:_0x97291d[_0x6c8345('0x2322')](_0x6c8345('0x22ca'),{'fields':_0x6c8345('0xe2c'),'userProfileId':_0x5367fd[_0x6c8345('0x24cc')]()[_0x6c8345('0x237f')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x4aaf4a('0x249b')](_0x4aaf4a('0xf77'),{'url':_0x4aaf4a('0xa9b'),'controller':'AgentsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x179374,'resolve':{'pauses':['apiResolver',function(_0xc9041c){const _0x4b542f=_0x4aaf4a;return _0xc9041c[_0x4b542f('0x2322')](_0x4b542f('0x6c1'),{'nolimit':!![]});}],'agents':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0xd9d8e1,_0x7a4e55){const _0x3dd980=_0x4aaf4a;return _0x7a4e55[_0x3dd980('0x1516')](_0x3dd980('0xe23'))?_0xd9d8e1[_0x3dd980('0x2322')](_0x3dd980('0x144f'),{'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':_0x3dd980('0x188b'),'sort':_0x3dd980('0x2831'),'nolimit':!![]}):_0xd9d8e1[_0x3dd980('0x2322')](_0x3dd980('0x27c5'),{'id':_0x7a4e55[_0x3dd980('0x24cc')]()[_0x3dd980('0x237f')],'section':_0x3dd980('0x1f72'),'fields':_0x3dd980('0xed0'),'role':'agent','sort':_0x3dd980('0x2831'),'nolimit':!![]});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x1945f2,_0x1d93fd){const _0x2aad30=_0x4aaf4a;return _0x1d93fd[_0x2aad30('0x1516')](_0x2aad30('0xe23'))?null:_0x1945f2[_0x2aad30('0x2322')](_0x2aad30('0x231d'),{'fields':_0x2aad30('0x3f0'),'id':_0x1d93fd['getCurrentUser']()[_0x2aad30('0x237f')]});}],'userProfileSection':['apiResolver',_0x4aaf4a('0x1b04'),function(_0x5e8b44,_0x2fc56d){const _0x3c8d8e=_0x4aaf4a;return _0x2fc56d[_0x3c8d8e('0x1516')](_0x3c8d8e('0xe23'))?null:_0x5e8b44[_0x3c8d8e('0x2322')](_0x3c8d8e('0x22ca'),{'fields':_0x3c8d8e('0xe2c'),'userProfileId':_0x2fc56d[_0x3c8d8e('0x24cc')]()[_0x3c8d8e('0x237f')],'sectionId':0xca});}],'rpcAgents':[_0x4aaf4a('0x1318'),function(_0x4743ce){const _0x243031=_0x4aaf4a;return _0x4743ce[_0x243031('0x2322')](_0x243031('0x21f7'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x4aaf4a('0x249b')](_0x4aaf4a('0x792'),{'url':_0x4aaf4a('0x1c30'),'controller':_0x4aaf4a('0xc02'),'templateUrl':_0x3fc44b,'resolve':{'queues':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x3df0bc,_0x66f439){const _0x4b67cf=_0x4aaf4a;return _0x66f439[_0x4b67cf('0x1516')](_0x4b67cf('0xe23'))?_0x3df0bc[_0x4b67cf('0x2322')](_0x4b67cf('0x18df'),{'type':_0x4b67cf('0x1'),'sort':_0x4b67cf('0x1cee'),'limit':0xa,'offset':0x0}):_0x3df0bc[_0x4b67cf('0x2322')](_0x4b67cf('0x27c5'),{'id':_0x66f439[_0x4b67cf('0x24cc')]()[_0x4b67cf('0x237f')],'section':_0x4b67cf('0x1530'),'channel':_0x4b67cf('0x1f60'),'type':'outbound','sort':_0x4b67cf('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x4fbbd0,_0x41bcf1){const _0x458d2e=_0x4aaf4a;return _0x41bcf1[_0x458d2e('0x1516')](_0x458d2e('0xe23'))?null:_0x4fbbd0[_0x458d2e('0x2322')](_0x458d2e('0x231d'),{'fields':'id,name,crudPermissions','id':_0x41bcf1[_0x458d2e('0x24cc')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x4aaf4a('0x1b04'),function(_0x3043db,_0x330599){const _0x373fb8=_0x4aaf4a;return _0x330599[_0x373fb8('0x1516')]('admin')?null:_0x3043db['resolve']('userProfileSection@get',{'fields':_0x373fb8('0xe2c'),'userProfileId':_0x330599[_0x373fb8('0x24cc')]()['userProfileId'],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function(_0x4d91ce){const _0x16107f=_0x4aaf4a;return _0x4d91ce['resolve'](_0x16107f('0x5bb'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x4aaf4a('0x249b')]('app.motiondialer.realtime.queue_calls',{'url':'/queue_calls','controller':_0x4aaf4a('0x111'),'templateUrl':_0xaea840,'resolve':{'agents':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x17d25c,_0x251483){const _0x3f59ff=_0x4aaf4a;return _0x251483[_0x3f59ff('0x1516')](_0x3f59ff('0xe23'))?_0x17d25c[_0x3f59ff('0x2322')](_0x3f59ff('0x144f'),{'fields':_0x3f59ff('0x1d9a'),'role':_0x3f59ff('0x188b'),'nolimit':!![]}):_0x17d25c[_0x3f59ff('0x2322')](_0x3f59ff('0x27c5'),{'id':_0x251483[_0x3f59ff('0x24cc')]()[_0x3f59ff('0x237f')],'section':_0x3f59ff('0x1f72'),'fields':_0x3f59ff('0x1d9a'),'role':_0x3f59ff('0x188b'),'nolimit':!![]});}],'queues':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x402fda,_0x275651){const _0x497312=_0x4aaf4a;return _0x275651[_0x497312('0x1516')](_0x497312('0xe23'))?_0x402fda[_0x497312('0x2322')](_0x497312('0x18df'),{'type':_0x497312('0x1'),'sort':_0x497312('0x1cee'),'nolimit':!![]}):_0x402fda[_0x497312('0x2322')]('userProfile@getResources',{'id':_0x275651[_0x497312('0x24cc')]()['userProfileId'],'section':'QueueCampaigns','channel':'voice','type':_0x497312('0x1'),'sort':_0x497312('0x1cee'),'nolimit':!![]});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x498c4f,_0x22f73d){const _0x59f787=_0x4aaf4a;return _0x22f73d[_0x59f787('0x1516')](_0x59f787('0xe23'))?null:_0x498c4f[_0x59f787('0x2322')]('userProfile@get',{'fields':_0x59f787('0x3f0'),'id':_0x22f73d[_0x59f787('0x24cc')]()[_0x59f787('0x237f')]});}],'userProfileSection':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x162c24,_0x2c4c77){const _0x12fbb3=_0x4aaf4a;return _0x2c4c77['hasRole']('admin')?null:_0x162c24[_0x12fbb3('0x2322')](_0x12fbb3('0x22ca'),{'fields':_0x12fbb3('0xe2c'),'userProfileId':_0x2c4c77[_0x12fbb3('0x24cc')]()['userProfileId'],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x4aaf4a('0x1318'),function(_0x8c2e89){const _0x27cdbb=_0x4aaf4a;return _0x8c2e89[_0x27cdbb('0x2322')](_0x27cdbb('0x9de'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x4aaf4a('0x249b')](_0x4aaf4a('0x1243'),{'url':_0x4aaf4a('0x2006'),'controller':_0x4aaf4a('0x637'),'templateUrl':_0x3ca7cc,'resolve':{'agents':['apiResolver',_0x4aaf4a('0x1b04'),function(_0x17a098,_0x1b9c13){const _0x22f088=_0x4aaf4a;return _0x1b9c13[_0x22f088('0x1516')](_0x22f088('0xe23'))?_0x17a098['resolve'](_0x22f088('0x144f'),{'fields':_0x22f088('0x1d9a'),'role':_0x22f088('0x188b'),'nolimit':!![]}):_0x17a098[_0x22f088('0x2322')]('userProfile@getResources',{'id':_0x1b9c13[_0x22f088('0x24cc')]()[_0x22f088('0x237f')],'section':_0x22f088('0x1f72'),'fields':_0x22f088('0x1d9a'),'role':_0x22f088('0x188b'),'nolimit':!![]});}],'queues':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x5ee6ab,_0x52203d){const _0x35c0b9=_0x4aaf4a;return _0x52203d[_0x35c0b9('0x1516')](_0x35c0b9('0xe23'))?_0x5ee6ab['resolve'](_0x35c0b9('0x18df'),{'type':_0x35c0b9('0x1'),'sort':'-updatedAt','nolimit':!![]}):_0x5ee6ab[_0x35c0b9('0x2322')](_0x35c0b9('0x27c5'),{'id':_0x52203d[_0x35c0b9('0x24cc')]()[_0x35c0b9('0x237f')],'section':_0x35c0b9('0x1530'),'channel':_0x35c0b9('0x1f60'),'type':'outbound','sort':'-updatedAt','nolimit':!![]});}],'dispositions':['apiResolver',_0x4aaf4a('0x1b04'),function(_0x5350e3,_0x4c134b){const _0x19cf27=_0x4aaf4a;return _0x4c134b[_0x19cf27('0x1516')](_0x19cf27('0xe23'))?_0x5350e3[_0x19cf27('0x2322')]('disposition@get',{'fields':_0x19cf27('0x20b3'),'sort':_0x19cf27('0x1cee'),'MailAccountId':_0x19cf27('0x954'),'FaxAccountId':_0x19cf27('0x954'),'SmsAccountId':_0x19cf27('0x954'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x19cf27('0x954'),'ChatWebsiteId':_0x19cf27('0x954'),'ListId':'null','nolimit':!![]}):_0x5350e3[_0x19cf27('0x2322')](_0x19cf27('0x27c5'),{'id':_0x4c134b['getCurrentUser']()[_0x19cf27('0x237f')],'section':_0x19cf27('0xaf3'),'fields':_0x19cf27('0xbe1'),'sort':'-updatedAt','MailAccountId':'null','FaxAccountId':_0x19cf27('0x954'),'SmsAccountId':_0x19cf27('0x954'),'WhatsappAccountId':_0x19cf27('0x954'),'OpenchannelAccountId':_0x19cf27('0x954'),'ChatWebsiteId':_0x19cf27('0x954'),'ListId':'null','nolimit':!![]});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x1e5be,_0x2b090a){const _0x2c1f8c=_0x4aaf4a;return _0x2b090a[_0x2c1f8c('0x1516')](_0x2c1f8c('0xe23'))?null:_0x1e5be[_0x2c1f8c('0x2322')](_0x2c1f8c('0x231d'),{'fields':_0x2c1f8c('0x3f0'),'id':_0x2b090a[_0x2c1f8c('0x24cc')]()[_0x2c1f8c('0x237f')]});}],'userProfileSection':[_0x4aaf4a('0x1318'),'Auth',function(_0x4cc1ee,_0x38c1a4){const _0x337bf7=_0x4aaf4a;return _0x38c1a4[_0x337bf7('0x1516')]('admin')?null:_0x4cc1ee[_0x337bf7('0x2322')]('userProfileSection@get',{'fields':_0x337bf7('0xe2c'),'userProfileId':_0x38c1a4['getCurrentUser']()[_0x337bf7('0x237f')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x4aaf4a('0x13c4'),{'url':_0x4aaf4a('0x48f'),'controller':_0x4aaf4a('0x874'),'templateUrl':_0x53a891,'resolve':{'queues':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x420107,_0x19badc){const _0x283340=_0x4aaf4a;return _0x19badc[_0x283340('0x1516')](_0x283340('0xe23'))?_0x420107[_0x283340('0x2322')](_0x283340('0x18df'),{'type':'outbound','fields':_0x283340('0x1338'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x420107['resolve'](_0x283340('0x27c5'),{'id':_0x19badc[_0x283340('0x24cc')]()[_0x283340('0x237f')],'section':_0x283340('0x1530'),'channel':_0x283340('0x1f60'),'type':'outbound','sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x451410,_0x49ce77){const _0x13feae=_0x4aaf4a;return _0x49ce77['hasRole']('admin')?null:_0x451410[_0x13feae('0x2322')](_0x13feae('0x231d'),{'fields':_0x13feae('0x3f0'),'id':_0x49ce77[_0x13feae('0x24cc')]()[_0x13feae('0x237f')]});}],'userProfileSection':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x3c3c48,_0x47c4d7){const _0xe86ca5=_0x4aaf4a;return _0x47c4d7[_0xe86ca5('0x1516')](_0xe86ca5('0xe23'))?null:_0x3c3c48[_0xe86ca5('0x2322')](_0xe86ca5('0x22ca'),{'fields':_0xe86ca5('0xe2c'),'userProfileId':_0x47c4d7[_0xe86ca5('0x24cc')]()[_0xe86ca5('0x237f')],'sectionId':0x5dd});}],'rpcQueues':[_0x4aaf4a('0x1318'),function(_0x4c06a6){const _0x273ef5=_0x4aaf4a;return _0x4c06a6['resolve'](_0x273ef5('0x5bb'));}]},'authenticate':!![],'permissionId':0x5e6})['state']('app.motiondialer.realtime.ivr_campaigns',{'url':'/ivr_campaigns','controller':'IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x4090ba,'resolve':{'campaigns':['apiResolver',_0x4aaf4a('0x1b04'),function(_0x319f4c,_0x3f89ae){const _0x30695a=_0x4aaf4a;return _0x3f89ae[_0x30695a('0x1516')]('admin')?_0x319f4c[_0x30695a('0x2322')](_0x30695a('0x1c8b'),{'sort':_0x30695a('0x1cee'),'limit':0xa,'offset':0x0}):_0x319f4c[_0x30695a('0x2322')](_0x30695a('0x27c5'),{'id':_0x3f89ae[_0x30695a('0x24cc')]()[_0x30695a('0x237f')],'section':_0x30695a('0x1c0c'),'sort':_0x30695a('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x4df066,_0x18c926){const _0x3bab31=_0x4aaf4a;return _0x18c926[_0x3bab31('0x1516')]('admin')?null:_0x4df066[_0x3bab31('0x2322')](_0x3bab31('0x231d'),{'fields':_0x3bab31('0x3f0'),'id':_0x18c926['getCurrentUser']()[_0x3bab31('0x237f')]});}],'userProfileSection':[_0x4aaf4a('0x1318'),_0x4aaf4a('0x1b04'),function(_0x4eafe3,_0x5d6fc2){const _0x45006b=_0x4aaf4a;return _0x5d6fc2[_0x45006b('0x1516')](_0x45006b('0xe23'))?null:_0x4eafe3[_0x45006b('0x2322')](_0x45006b('0x22ca'),{'fields':_0x45006b('0xe2c'),'userProfileId':_0x5d6fc2[_0x45006b('0x24cc')]()[_0x45006b('0x237f')],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function(_0x2962e6){const _0x367917=_0x4aaf4a;return _0x2962e6[_0x367917('0x2322')]('rpc@getCampaigns');}]},'authenticate':!![],'permissionId':0x5e6});}angular['module'](_0x34e79e('0xd14'),[])[_0x34e79e('0x1a22')](_0x44eb18)['controller']('AbandonedCallsMotionDialerRealtimeController',_0x3f63a4)['controller'](_0x34e79e('0xeeb'),_0x1f3142)[_0x34e79e('0xb44')]('IvrCampaignsMotionDialerRealtimeController',_0x1dcd6b)[_0x34e79e('0xb44')](_0x34e79e('0x9e9'),_0x58f2c9)[_0x34e79e('0xb44')](_0x34e79e('0xf4b'),_0x2cfb04)['controller'](_0x34e79e('0x505'),_0x4a087c)['controller']('PredictiveQueueCampaignDialogController',_0x3f133d)[_0x34e79e('0x227e')](_0x34e79e('0x1fc6'),_0x1a5ff5)[_0x34e79e('0xb44')](_0x34e79e('0x984'),_0x124859);const _0x20b02c=_0x18dd13['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html',_0x1278ca=_0x18dd13['p']+_0x34e79e('0x281a'),_0x3f615f=_0x18dd13['p']+_0x34e79e('0xe06'),_0x4a944a=_0x18dd13['p']+_0x34e79e('0x194a');_0x210c0f['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0xf34'),'ivrCampaign',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),'crudPermissions'];function _0x210c0f(_0xab4c96,_0x2349ab,_0x275d23,_0x41288f,_0x276789,_0x487ff0,_0x140d53,_0x49f377,_0x59f24c,_0x3a6170,_0x52f33e,_0x176dc5,_0x78b850,_0x189382){const _0x80ae21=_0x34e79e,_0x42a490=this;_0x42a490['currentUser']=_0x52f33e[_0x80ae21('0x24cc')](),_0x42a490[_0x80ae21('0x25be')]=[],_0x42a490[_0x80ae21('0x1af0')]=_0x78b850,_0x42a490[_0x80ae21('0x130d')]=_0x176dc5,_0x42a490['crudPermissions']=_0x189382,_0x42a490['hasModulePermissions']={},_0x42a490[_0x80ae21('0x18ad')]=_0x42a490[_0x80ae21('0x1af0')]&&_0x42a490['setting'][_0x80ae21('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42a490['title']=_0x80ae21('0x964'),_0x42a490['ivrCampaign']=angular[_0x80ae21('0x2669')](_0x59f24c),_0x42a490['ivrCampaigns']=_0x49f377,_0x42a490[_0x80ae21('0xbd3')]=![];!_0x42a490[_0x80ae21('0x535')]&&(_0x42a490[_0x80ae21('0x535')]={'active':!![],'type':_0x80ae21('0x1e64'),'dialCheckDuplicateType':'always','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':_0x80ae21('0x1de8'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x42a490[_0x80ae21('0x14e4')]=_0x80ae21('0x1391'),_0x42a490[_0x80ae21('0xbd3')]=!![]);_0x42a490[_0x80ae21('0x7d3')]=_0xe97d9c,_0x42a490[_0x80ae21('0x135b')]=_0x2e51b9,_0x42a490[_0x80ae21('0x82c')]=_0x1afa55,_0x42a490[_0x80ae21('0x2601')]=_0x4a0ed5,_0x42a490['closeDialog']=_0x778292,_0x52f33e[_0x80ae21('0x1516')]('admin')?_0x3a6170[_0x80ae21('0x2549')][_0x80ae21('0x1335')]({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d'),'table':'true'})['$promise']['then'](function(_0x21627e){const _0x251c08=_0x80ae21;_0x42a490[_0x251c08('0x20f2')]=_0x21627e[_0x251c08('0x25df')]||[];})['catch'](function(_0x562486){const _0xb8959=_0x80ae21;_0x140d53[_0xb8959('0x5e8')]({'title':_0x562486[_0xb8959('0x1b51')]?_0xb8959('0x15d1')+_0x562486['status']+_0xb8959('0x1b0b')+_0x562486['statusText']:_0xb8959('0x119d'),'msg':_0x562486[_0xb8959('0x11fc')]?JSON['stringify'](_0x562486[_0xb8959('0x11fc')]):_0x562486[_0xb8959('0x17df')]()});}):_0x3a6170['trunk'][_0x80ae21('0x1335')]({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d'),'table':_0x80ae21('0x1001')})['$promise'][_0x80ae21('0x2788')](function(_0x1c549a){const _0x41f33b=_0x80ae21;_0x42a490[_0x41f33b('0x20f2')]=_0x1c549a[_0x41f33b('0x25df')]||[];})['then'](function(){const _0x3ae675=_0x80ae21;return _0x3a6170['userProfileSection']['get']({'userProfileId':_0x42a490[_0x3ae675('0x9cb')]['userProfileId'],'sectionId':0x3f3})[_0x3ae675('0x1714')];})[_0x80ae21('0x2788')](function(_0x317787){const _0x39568c=_0x80ae21,_0x580f68=_0x317787&&_0x317787[_0x39568c('0x25df')]?_0x317787[_0x39568c('0x25df')][0x0]:null;if(!_0x580f68)_0x42a490[_0x39568c('0x20f2')]=[];else{if(!_0x580f68[_0x39568c('0x1c0a')])return _0x3a6170[_0x39568c('0x1050')]['get']({'sectionId':_0x580f68['id']})[_0x39568c('0x1714')][_0x39568c('0x2788')](function(_0x67ec84){const _0xcfd8a0=_0x39568c,_0x44f602=_0x283545()['map'](_0x67ec84[_0xcfd8a0('0x25df')],function(_0x26a372){const _0x33f13b=_0xcfd8a0;return _0x283545()[_0x33f13b('0x20e8')](_0x42a490[_0x33f13b('0x20f2')],{'id':_0x26a372['resourceId']});});_0x42a490[_0xcfd8a0('0x20f2')][_0xcfd8a0('0x1534')](function(_0x59739d){const _0x4f6651=_0xcfd8a0;!_0x283545()[_0x4f6651('0xc5d')](_0x44f602,['id',_0x59739d['id']])&&(_0x59739d['canSelect']=![]),_0x44f602[_0x4f6651('0x13e3')](_0x59739d);}),_0x42a490[_0xcfd8a0('0x20f2')]=_0x44f602;});}})[_0x80ae21('0x1cb5')](function(_0x32b458){const _0x41c6d7=_0x80ae21;_0x140d53[_0x41c6d7('0x5e8')]({'title':_0x32b458['status']?_0x41c6d7('0x15d1')+_0x32b458[_0x41c6d7('0x1b51')]+'\x20-\x20'+_0x32b458[_0x41c6d7('0x22ce')]:_0x41c6d7('0xdb5'),'msg':_0x32b458[_0x41c6d7('0x11fc')]?JSON[_0x41c6d7('0x1be0')](_0x32b458['data']):_0x32b458['toString']()});}),_0x52f33e[_0x80ae21('0x1516')](_0x80ae21('0xe23'))?_0x3a6170[_0x80ae21('0x163a')][_0x80ae21('0x1335')]({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d')})[_0x80ae21('0x1714')][_0x80ae21('0x2788')](function(_0x20f37d){const _0xa6ef10=_0x80ae21;_0x42a490[_0xa6ef10('0x18f9')]=_0x20f37d['rows']||[];})[_0x80ae21('0x1cb5')](function(_0x1f7697){const _0x4b4d2f=_0x80ae21;_0x140d53['error']({'title':_0x1f7697[_0x4b4d2f('0x1b51')]?_0x4b4d2f('0x15d1')+_0x1f7697[_0x4b4d2f('0x1b51')]+'\x20-\x20'+_0x1f7697[_0x4b4d2f('0x22ce')]:_0x4b4d2f('0x123a'),'msg':_0x1f7697[_0x4b4d2f('0x11fc')]?JSON[_0x4b4d2f('0x1be0')](_0x1f7697[_0x4b4d2f('0x11fc')]):_0x1f7697[_0x4b4d2f('0x17df')]()});}):_0x3a6170['squareProject'][_0x80ae21('0x1335')]({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d')})['$promise'][_0x80ae21('0x2788')](function(_0x1fc894){const _0x2c87f3=_0x80ae21;_0x42a490['projects']=_0x1fc894[_0x2c87f3('0x25df')]||[];})[_0x80ae21('0x2788')](function(){const _0x3b29ee=_0x80ae21;return _0x3a6170[_0x3b29ee('0xec9')]['get']({'userProfileId':_0x42a490[_0x3b29ee('0x9cb')][_0x3b29ee('0x237f')],'sectionId':0x44f})[_0x3b29ee('0x1714')];})[_0x80ae21('0x2788')](function(_0x498cd0){const _0xe307ff=_0x80ae21,_0x220fe6=_0x498cd0&&_0x498cd0['rows']?_0x498cd0[_0xe307ff('0x25df')][0x0]:null;if(!_0x220fe6){const _0x264dd4=[];let _0x33684a=null;_0x42a490[_0xe307ff('0x535')]&&(_0x33684a=_0x283545()['find'](_0x42a490[_0xe307ff('0x18f9')],{'id':Number(_0x42a490[_0xe307ff('0x535')][_0xe307ff('0xe64')])}));for(let _0x46007=0x0;_0x46007<_0x42a490[_0xe307ff('0x18f9')][_0xe307ff('0x2566')];_0x46007++){_0x33684a&&_0x42a490[_0xe307ff('0x18f9')][_0x46007]['id']===_0x33684a['id']&&(_0x42a490['projects'][_0x46007]['canSelect']=![],_0x264dd4[_0xe307ff('0x13e3')](_0x42a490[_0xe307ff('0x18f9')][_0x46007]));}_0x42a490[_0xe307ff('0x18f9')]=_0x264dd4;}else{if(!_0x220fe6[_0xe307ff('0x1c0a')])return _0x3a6170[_0xe307ff('0x1050')][_0xe307ff('0x1335')]({'sectionId':_0x220fe6['id']})[_0xe307ff('0x1714')][_0xe307ff('0x2788')](function(_0x30dfd2){const _0x5de6e7=_0xe307ff,_0xddc64e=_0x283545()['map'](_0x30dfd2[_0x5de6e7('0x25df')],function(_0x164a65){const _0x5034a0=_0x5de6e7;return _0x283545()['find'](_0x42a490[_0x5034a0('0x18f9')],{'id':_0x164a65[_0x5034a0('0x2707')]});});let _0x3dfe6f=null;_0x42a490[_0x5de6e7('0x535')]&&(_0x3dfe6f=_0x283545()[_0x5de6e7('0x20e8')](_0x42a490[_0x5de6e7('0x18f9')],{'id':Number(_0x42a490[_0x5de6e7('0x535')]['SquareProjectId'])}));if(_0x3dfe6f&&!_0x283545()[_0x5de6e7('0xc5d')](_0xddc64e,['id',_0x3dfe6f['id']])){const _0x1a90e3=_0x283545()['find'](_0x42a490[_0x5de6e7('0x18f9')],{'id':_0x3dfe6f['id']});_0x1a90e3[_0x5de6e7('0x3bf')]=![],_0xddc64e[_0x5de6e7('0x13e3')](_0x1a90e3);}_0x42a490[_0x5de6e7('0x18f9')]=_0xddc64e;});}})['catch'](function(_0x4a1168){const _0x4c1fcf=_0x80ae21;_0x140d53[_0x4c1fcf('0x5e8')]({'title':_0x4a1168[_0x4c1fcf('0x1b51')]?_0x4c1fcf('0x15d1')+_0x4a1168[_0x4c1fcf('0x1b51')]+'\x20-\x20'+_0x4a1168[_0x4c1fcf('0x22ce')]:_0x4c1fcf('0x1d8c'),'msg':_0x4a1168[_0x4c1fcf('0x11fc')]?JSON[_0x4c1fcf('0x1be0')](_0x4a1168[_0x4c1fcf('0x11fc')]):_0x4a1168[_0x4c1fcf('0x17df')]()});}),_0x52f33e[_0x80ae21('0x1516')](_0x80ae21('0xe23'))?_0x3a6170['interval'][_0x80ae21('0x1335')]({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d'),'IntervalId':'null'})[_0x80ae21('0x1714')]['then'](function(_0x1f0b96){const _0x4f84bb=_0x80ae21;_0x42a490['interval']=_0x1f0b96[_0x4f84bb('0x25df')]||[];})['catch'](function(_0x48fe05){const _0x920a63=_0x80ae21;_0x140d53[_0x920a63('0x5e8')]({'title':_0x48fe05[_0x920a63('0x1b51')]?_0x920a63('0x15d1')+_0x48fe05[_0x920a63('0x1b51')]+_0x920a63('0x1b0b')+_0x48fe05[_0x920a63('0x22ce')]:_0x920a63('0x2332'),'msg':_0x48fe05[_0x920a63('0x11fc')]?JSON[_0x920a63('0x1be0')](_0x48fe05['data']):_0x48fe05[_0x920a63('0x17df')]()});}):_0x3a6170['interval']['get']({'fields':_0x80ae21('0x1338'),'sort':_0x80ae21('0x1a8d'),'IntervalId':_0x80ae21('0x954')})[_0x80ae21('0x1714')][_0x80ae21('0x2788')](function(_0x145bf5){const _0x51a2b8=_0x80ae21;_0x42a490[_0x51a2b8('0x2630')]=_0x145bf5[_0x51a2b8('0x25df')]||[];})[_0x80ae21('0x2788')](function(){const _0x352bd0=_0x80ae21;return _0x3a6170[_0x352bd0('0xec9')][_0x352bd0('0x1335')]({'userProfileId':_0x42a490[_0x352bd0('0x9cb')][_0x352bd0('0x237f')],'sectionId':0x3ec})['$promise'];})[_0x80ae21('0x2788')](function(_0x1dadaf){const _0x27f4d2=_0x80ae21,_0x24f8c3=_0x1dadaf&&_0x1dadaf['rows']?_0x1dadaf['rows'][0x0]:null;if(!_0x24f8c3){const _0x45c4e2=[];let _0x2763f1=null;_0x42a490[_0x27f4d2('0x535')]&&(_0x2763f1=_0x283545()[_0x27f4d2('0x20e8')](_0x42a490[_0x27f4d2('0x2630')],{'id':Number(_0x42a490['ivrCampaign'][_0x27f4d2('0x20d0')])}));for(let _0x5bb5f7=0x0;_0x5bb5f7<_0x42a490[_0x27f4d2('0x2630')]['length'];_0x5bb5f7++){_0x2763f1&&_0x42a490[_0x27f4d2('0x2630')][_0x5bb5f7]['id']===_0x2763f1['id']&&(_0x42a490[_0x27f4d2('0x2630')][_0x5bb5f7][_0x27f4d2('0x3bf')]=![],_0x45c4e2[_0x27f4d2('0x13e3')](_0x42a490[_0x27f4d2('0x2630')][_0x5bb5f7]));}_0x42a490[_0x27f4d2('0x2630')]=_0x45c4e2;}else{if(!_0x24f8c3[_0x27f4d2('0x1c0a')])return _0x3a6170[_0x27f4d2('0x1050')]['get']({'sectionId':_0x24f8c3['id']})['$promise'][_0x27f4d2('0x2788')](function(_0x399100){const _0x301aa8=_0x27f4d2,_0x35b912=_0x283545()[_0x301aa8('0x155d')](_0x399100[_0x301aa8('0x25df')],function(_0x4d212f){const _0x38072c=_0x301aa8;return _0x283545()[_0x38072c('0x20e8')](_0x42a490['interval'],{'id':_0x4d212f[_0x38072c('0x2707')]});});let _0x3f2c07=null;_0x42a490[_0x301aa8('0x535')]&&(_0x3f2c07=_0x283545()[_0x301aa8('0x20e8')](_0x42a490['interval'],{'id':Number(_0x42a490[_0x301aa8('0x535')]['IntervalId'])}));if(_0x3f2c07&&!_0x283545()[_0x301aa8('0xc5d')](_0x35b912,['id',_0x3f2c07['id']])){const _0x427138=_0x283545()[_0x301aa8('0x20e8')](_0x42a490[_0x301aa8('0x2630')],{'id':_0x3f2c07['id']});_0x427138[_0x301aa8('0x3bf')]=![],_0x35b912['push'](_0x427138);}_0x42a490['interval']=_0x35b912;});}})[_0x80ae21('0x1cb5')](function(_0x18db50){const _0x4681cf=_0x80ae21;_0x140d53['error']({'title':_0x18db50[_0x4681cf('0x1b51')]?_0x4681cf('0x15d1')+_0x18db50['status']+_0x4681cf('0x1b0b')+_0x18db50[_0x4681cf('0x22ce')]:_0x4681cf('0x9b6'),'msg':_0x18db50[_0x4681cf('0x11fc')]?JSON[_0x4681cf('0x1be0')](_0x18db50[_0x4681cf('0x11fc')]):_0x18db50[_0x4681cf('0x17df')]()});});function _0xe97d9c(){const _0x30c041=_0x80ae21;_0x42a490[_0x30c041('0x25be')]=[],_0x3a6170[_0x30c041('0x24c')][_0x30c041('0xbd0')](_0x42a490[_0x30c041('0x535')])[_0x30c041('0x1714')][_0x30c041('0x2788')](function(_0x153457){const _0x328cd8=_0x30c041;_0x42a490['ivrCampaigns'][_0x328cd8('0xc51')](_0x153457[_0x328cd8('0x1cbf')]()),_0x140d53[_0x328cd8('0x173b')]({'title':_0x328cd8('0x2694'),'msg':_0x42a490[_0x328cd8('0x535')][_0x328cd8('0x1a8d')]?_0x42a490[_0x328cd8('0x535')][_0x328cd8('0x1a8d')]+_0x328cd8('0x1e4a'):''}),_0x778292(_0x153457);})['catch'](function(_0x431739){const _0x454b9c=_0x30c041;if(_0x431739[_0x454b9c('0x11fc')]&&_0x431739[_0x454b9c('0x11fc')][_0x454b9c('0x25be')]&&_0x431739['data'][_0x454b9c('0x25be')]['length']){_0x42a490['errors']=_0x431739['data']['errors']||[{'message':_0x431739['toString'](),'type':_0x454b9c('0x7a9')}];for(let _0x5a283e=0x0;_0x5a283e<_0x431739['data'][_0x454b9c('0x25be')][_0x454b9c('0x2566')];_0x5a283e+=0x1){_0x140d53[_0x454b9c('0x5e8')]({'title':_0x431739[_0x454b9c('0x11fc')][_0x454b9c('0x25be')][_0x5a283e][_0x454b9c('0x1d7')],'msg':_0x431739[_0x454b9c('0x11fc')][_0x454b9c('0x25be')][_0x5a283e][_0x454b9c('0x15e2')]});}}else _0x140d53[_0x454b9c('0x5e8')]({'title':_0x431739['status']?'API:'+_0x431739[_0x454b9c('0x1b51')]+'\x20-\x20'+_0x431739[_0x454b9c('0x22ce')]:_0x454b9c('0x7a9'),'msg':_0x431739[_0x454b9c('0x11fc')]?JSON[_0x454b9c('0x1be0')](_0x431739[_0x454b9c('0x11fc')][_0x454b9c('0x15e2')]):_0x431739['toString']()});});}function _0x2e51b9(){const _0x568974=_0x80ae21;_0x42a490[_0x568974('0x25be')]=[],_0x3a6170[_0x568974('0x24c')][_0x568974('0x2740')]({'id':_0x42a490['ivrCampaign']['id']},_0x42a490['ivrCampaign'])['$promise'][_0x568974('0x2788')](function(_0x1dcdab){const _0x11a2c0=_0x568974,_0x529201=_0x283545()['find'](_0x42a490['ivrCampaigns'],{'id':_0x1dcdab['id']});_0x529201&&_0x283545()['merge'](_0x529201,_0x283545()['pick'](_0x1dcdab[_0x11a2c0('0x1cbf')](),_0x283545()[_0x11a2c0('0x2163')](_0x529201))),_0x140d53[_0x11a2c0('0x173b')]({'title':_0x11a2c0('0x5c0'),'msg':_0x42a490[_0x11a2c0('0x535')][_0x11a2c0('0x1a8d')]?_0x42a490[_0x11a2c0('0x535')]['name']+'\x20has\x20been\x20saved!':''}),_0x778292(_0x1dcdab);})[_0x568974('0x1cb5')](function(_0x571cd9){const _0x31b6be=_0x568974;if(_0x571cd9[_0x31b6be('0x11fc')]&&_0x571cd9[_0x31b6be('0x11fc')][_0x31b6be('0x25be')]&&_0x571cd9['data'][_0x31b6be('0x25be')][_0x31b6be('0x2566')]){_0x42a490['errors']=_0x571cd9[_0x31b6be('0x11fc')][_0x31b6be('0x25be')]||[{'message':_0x571cd9['toString'](),'type':_0x31b6be('0x463')}];for(let _0xe02091=0x0;_0xe02091<_0x571cd9[_0x31b6be('0x11fc')][_0x31b6be('0x25be')][_0x31b6be('0x2566')];_0xe02091++){_0x140d53['error']({'title':_0x571cd9['data']['errors'][_0xe02091][_0x31b6be('0x1d7')],'msg':_0x571cd9['data'][_0x31b6be('0x25be')][_0xe02091][_0x31b6be('0x15e2')]});}}else _0x140d53['error']({'title':_0x571cd9[_0x31b6be('0x1b51')]?'API:'+_0x571cd9[_0x31b6be('0x1b51')]+_0x31b6be('0x1b0b')+_0x571cd9[_0x31b6be('0x22ce')]:_0x31b6be('0x463'),'msg':_0x571cd9['data']?JSON['stringify'](_0x571cd9[_0x31b6be('0x11fc')][_0x31b6be('0x15e2')]):_0x571cd9['toString']()});});}function _0x1afa55(_0x5bb295){const _0x29ae0a=_0x80ae21;_0x42a490[_0x29ae0a('0x25be')]=[];const _0x30bf06=_0x41288f[_0x29ae0a('0x112e')]()[_0x29ae0a('0x14e4')](_0x29ae0a('0x458'))[_0x29ae0a('0x1c98')](_0x29ae0a('0x18ec'))['ariaLabel'](_0x29ae0a('0x1e26'))['ok']('Delete')[_0x29ae0a('0x1801')]('Cancel')[_0x29ae0a('0x24d0')](_0x5bb295);_0x41288f['show'](_0x30bf06)[_0x29ae0a('0x2788')](function(){const _0x5571ba=_0x29ae0a;_0x3a6170[_0x5571ba('0x24c')]['delete']({'id':_0x42a490[_0x5571ba('0x535')]['id']})[_0x5571ba('0x1714')]['then'](function(){const _0x42c252=_0x5571ba;_0x283545()[_0x42c252('0x1a90')](_0x42a490[_0x42c252('0xf34')],{'id':_0x42a490[_0x42c252('0x535')]['id']}),_0x140d53['success']({'title':_0x42c252('0x175f'),'msg':(_0x42a490[_0x42c252('0x535')][_0x42c252('0x1a8d')]||_0x42c252('0x535'))+'\x20has\x20been\x20deleted!'}),_0x778292(_0x42a490[_0x42c252('0x535')]);})['catch'](function(_0x1894d9){const _0x16205f=_0x5571ba;if(_0x1894d9[_0x16205f('0x11fc')]&&_0x1894d9[_0x16205f('0x11fc')][_0x16205f('0x25be')]&&_0x1894d9['data'][_0x16205f('0x25be')][_0x16205f('0x2566')]){_0x42a490[_0x16205f('0x25be')]=_0x1894d9[_0x16205f('0x11fc')][_0x16205f('0x25be')]||[{'message':_0x1894d9[_0x16205f('0x17df')](),'type':_0x16205f('0x2161')}];for(let _0x1bda62=0x0;_0x1bda62<_0x1894d9['data']['errors']['length'];_0x1bda62++){_0x140d53['error']({'title':_0x1894d9[_0x16205f('0x11fc')]['errors'][_0x1bda62]['type'],'msg':_0x1894d9['data'][_0x16205f('0x25be')][_0x1bda62]['message']});}}else _0x140d53[_0x16205f('0x5e8')]({'title':_0x1894d9[_0x16205f('0x1b51')]?_0x16205f('0x15d1')+_0x1894d9['status']+'\x20-\x20'+_0x1894d9['statusText']:_0x16205f('0x2161'),'msg':_0x1894d9[_0x16205f('0x11fc')]?JSON['stringify'](_0x1894d9[_0x16205f('0x11fc')][_0x16205f('0x15e2')]):_0x1894d9[_0x16205f('0x15e2')]||_0x1894d9[_0x16205f('0x17df')]()});});},function(){});}function _0x4a0ed5(_0x242071){return _0x242071===null?undefined:new Date(_0x242071);}function _0x778292(_0xcea669){_0x41288f['hide'](_0xcea669);}}const _0x345d84=_0x210c0f;_0x1e479a[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),'ivrCampaign','$translate',_0x34e79e('0x446'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1e479a(_0x11e573,_0x50d3dc,_0x46db1d,_0x4ea169,_0x3dd01f,_0x35d809,_0x40b50a,_0x39c2f3,_0x2e91d6){const _0x5520ef=_0x34e79e,_0x2e488a=this;_0x2e488a[_0x5520ef('0x9cb')]=_0x39c2f3[_0x5520ef('0x24cc')](),_0x2e488a[_0x5520ef('0x535')]=_0x3dd01f,_0x2e488a['crudPermissions']=_0x2e91d6,_0x2e488a[_0x5520ef('0x249f')]=_0x5520ef('0x2043'),_0x2e488a['getApi']=_0x5520ef('0x3f'),_0x2e488a[_0x5520ef('0x1655')]='addBlackLists',_0x2e488a[_0x5520ef('0xf7a')]=_0x5520ef('0x1385'),_0x2e488a[_0x5520ef('0x117b')]=[],_0x2e488a[_0x5520ef('0x73d')]=[],_0x2e488a['selectedItems']=[],_0x2e488a[_0x5520ef('0x12d9')]=[],_0x2e488a[_0x5520ef('0xd0d')]=[],_0x2e488a[_0x5520ef('0x2677')]=![],_0x2e488a[_0x5520ef('0xd98')]=![],_0x2e488a['dualMultiselectOptions']={'readOnly':!_0x2e488a[_0x5520ef('0xe28')][_0x5520ef('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x5520ef('0x1a8d'),'line1':_0x5520ef('0x1a8d'),'line2':'','line3':'','labelAll':_0x35d809[_0x5520ef('0x1b11')]('MOTIONDIALER.ALL_LISTS'),'labelSelected':_0x35d809[_0x5520ef('0x1b11')](_0x5520ef('0xf38')),'transferCallback':function(){const _0x26ec06=_0x5520ef,_0x2d2d54=_0x283545()[_0x26ec06('0x12d1')](_0x2e488a['startingSelectedItems'],_0x2e488a[_0x26ec06('0x283f')],'id');_0x2e488a[_0x26ec06('0x2677')]=_0x283545()[_0x26ec06('0x213d')](_0x2d2d54)?![]:!![];}},_0x2e488a['onInit']=_0x34132a,_0x2e488a['saveLists']=_0x45d957,_0x2e488a[_0x5520ef('0xca7')]=_0x2505f4;function _0x34132a(){const _0x3e36f3=_0x5520ef;return _0x39c2f3[_0x3e36f3('0x1516')](_0x3e36f3('0xe23'))?_0x35134f()['catch'](function(_0x49f76c){const _0x22d49a=_0x3e36f3;_0x46db1d['error']({'title':_0x49f76c['status']?_0x22d49a('0x15d1')+_0x49f76c['status']+'\x20-\x20'+_0x49f76c[_0x22d49a('0x22ce')]:'SYSTEM:GETLISTS','msg':_0x49f76c[_0x22d49a('0x1b51')]?JSON[_0x22d49a('0x1be0')](_0x49f76c[_0x22d49a('0x11fc')]):_0x49f76c[_0x22d49a('0x17df')]()});}):_0x314426()[_0x3e36f3('0x2788')](function(_0x93198a){const _0x1b299f=_0x3e36f3;return _0x2e488a[_0x1b299f('0xb13')]=_0x93198a,_0x35134f();})[_0x3e36f3('0x1cb5')](function(_0x4266d7){const _0x418908=_0x3e36f3;_0x46db1d[_0x418908('0x5e8')]({'title':_0x4266d7[_0x418908('0x1b51')]?'API:'+_0x4266d7[_0x418908('0x1b51')]+_0x418908('0x1b0b')+_0x4266d7[_0x418908('0x22ce')]:_0x418908('0x13e2'),'msg':_0x4266d7[_0x418908('0x1b51')]?JSON['stringify'](_0x4266d7[_0x418908('0x11fc')]):_0x4266d7[_0x418908('0x17df')]()});});}function _0x314426(){return _0x50d3dc(function(_0x49a03f,_0x37d850){const _0x1971db=a0_0x14e7;_0x4ea169['userProfileSection'][_0x1971db('0x1335')]({'userProfileId':_0x2e488a['currentUser'][_0x1971db('0x237f')],'name':_0x1971db('0x12f2')})[_0x1971db('0x1714')][_0x1971db('0x2788')](function(_0x5779e8){const _0x2d3780=_0x1971db,_0x38a202=_0x5779e8&&_0x5779e8['rows']?_0x5779e8[_0x2d3780('0x25df')][0x0]:null;_0x49a03f(_0x38a202);})[_0x1971db('0x1cb5')](function(_0x38c93d){_0x37d850(_0x38c93d);});});}function _0x35134f(){return _0x50d3dc(function(_0xbf0a73,_0x31beea){const _0x16ce7f=a0_0x14e7;return _0x3c1f66()[_0x16ce7f('0x2788')](function(_0x5a3913){const _0x13ab36=_0x16ce7f;return _0x2e488a['items']=_0x5a3913[_0x13ab36('0x25df')]?_0x5a3913[_0x13ab36('0x25df')]:[],_0x39c2f3['hasRole'](_0x13ab36('0xe23'))?_0x5a3913:_0x2e488a[_0x13ab36('0xb13')]?_0x2e488a[_0x13ab36('0xb13')][_0x13ab36('0x1c0a')]?_0x5a3913:_0x55473f():null;})[_0x16ce7f('0x2788')](function(_0x4de58d){const _0x33578f=_0x16ce7f,_0x158ec6=_0x4de58d&&_0x4de58d[_0x33578f('0x25df')]?_0x4de58d[_0x33578f('0x25df')]:[];return _0x2e488a[_0x33578f('0x73d')]=_0x283545()[_0x33578f('0x155d')](_0x158ec6,function(_0x52fa2d){const _0xe6cefb=_0x33578f;return _0x283545()['find'](_0x2e488a[_0xe6cefb('0x117b')],{'id':_0x39c2f3[_0xe6cefb('0x1516')](_0xe6cefb('0xe23'))||_0x2e488a[_0xe6cefb('0xb13')][_0xe6cefb('0x1c0a')]?_0x52fa2d['id']:_0x52fa2d[_0xe6cefb('0x2707')]});}),_0x2e488a['startingAllowedItems']=angular['copy'](_0x2e488a[_0x33578f('0x73d')]),_0x2e488a[_0x33578f('0x117b')][_0x33578f('0x1534')](function(_0x5e5110){const _0x2d3b16=_0x33578f,_0x517ad8=_0x283545()['find'](_0x2e488a[_0x2d3b16('0x73d')],{'id':_0x5e5110['id']});_0x2e488a['currentUser'][_0x2d3b16('0xb34')]===_0x2d3b16('0xe23')?_0x5e5110['isValid']=!![]:_0x5e5110['isValid']=typeof _0x517ad8!==_0x2d3b16('0xedb')?!![]:![];}),_0x2ef7a9();})['then'](function(_0x49f08a){const _0x8624b6=_0x16ce7f,_0x24d10a=_0x49f08a&&_0x49f08a[_0x8624b6('0x25df')]?_0x49f08a['rows']:[];_0x2e488a[_0x8624b6('0x283f')]=_0x283545()[_0x8624b6('0x155d')](_0x24d10a,function(_0x70220b){const _0x1f94c6=_0x8624b6;return _0x283545()[_0x1f94c6('0x20e8')](_0x2e488a['items'],{'id':_0x70220b['id']});}),_0x2e488a[_0x8624b6('0xd0d')]=angular[_0x8624b6('0x2669')](_0x2e488a[_0x8624b6('0x283f')]),_0x2e488a[_0x8624b6('0x121')][_0x8624b6('0x283f')]=_0x2e488a[_0x8624b6('0x283f')],_0x2e488a['dualMultiselectOptions']['items']=_0x283545()['differenceBy'](_0x2e488a[_0x8624b6('0x73d')],_0x2e488a[_0x8624b6('0x121')]['selectedItems'],'id'),_0xbf0a73();})['catch'](function(_0x183908){_0x31beea(_0x183908);});});}function _0x55473f(){return _0x50d3dc(function(_0x47c49f,_0x13589c){const _0x2dbe0a=a0_0x14e7;return _0x4ea169[_0x2dbe0a('0x1050')]['get']({'sectionId':_0x2e488a[_0x2dbe0a('0xb13')]['id'],'nolimit':!![]})[_0x2dbe0a('0x1714')]['then'](function(_0x5dbdd2){_0x47c49f(_0x5dbdd2);})['catch'](function(_0x296087){_0x13589c(_0x296087);});});}function _0x2ef7a9(){return _0x50d3dc(function(_0x1de2a7,_0x58e2dd){const _0x92c89e=a0_0x14e7,_0x36cbc9=_0x4ea169[_0x2e488a['apiRoute']];return _0x36cbc9[_0x2e488a[_0x92c89e('0x121f')]]({'id':_0x2e488a[_0x92c89e('0x535')]['id'],'fields':'id,name','nolimit':!![]})[_0x92c89e('0x1714')][_0x92c89e('0x2788')](function(_0x4c8b50){_0x1de2a7(_0x4c8b50);})[_0x92c89e('0x1cb5')](function(_0x4bd831){_0x58e2dd(_0x4bd831);});});}function _0x3c1f66(){return _0x50d3dc(function(_0xa30102,_0x4da093){const _0x38a171=a0_0x14e7;return _0x4ea169['cmList'][_0x38a171('0x1335')]({'fields':_0x38a171('0x1338'),'nolimit':!![]})[_0x38a171('0x1714')][_0x38a171('0x2788')](function(_0x20d36f){_0xa30102(_0x20d36f);})[_0x38a171('0x1cb5')](function(_0x581582){_0x4da093(_0x581582);});});}function _0x5dd5c(_0x2f410f){return _0x50d3dc(function(_0x145b9c,_0x5c45e3){const _0x5ef82a=a0_0x14e7;if(_0x283545()[_0x5ef82a('0x213d')](_0x2f410f))_0x145b9c();else{const _0x37c8ce=_0x4ea169[_0x2e488a['apiRoute']];_0x37c8ce[_0x2e488a[_0x5ef82a('0x1655')]]({'id':_0x2e488a['ivrCampaign']['id'],'ids':_0x283545()[_0x5ef82a('0x155d')](_0x2f410f,'id')})[_0x5ef82a('0x1714')][_0x5ef82a('0x2788')](function(){_0x145b9c();})[_0x5ef82a('0x1cb5')](function(_0xab8c14){_0x5c45e3(_0xab8c14);});}});}function _0x502d00(_0x1b979e){return _0x50d3dc(function(_0x46a089,_0x21a006){const _0x5d486d=a0_0x14e7;if(_0x283545()[_0x5d486d('0x213d')](_0x1b979e))_0x46a089();else{const _0x316a20=_0x4ea169[_0x2e488a[_0x5d486d('0x249f')]];_0x316a20[_0x2e488a['removeApi']]({'id':_0x2e488a[_0x5d486d('0x535')]['id'],'ids':_0x283545()['map'](_0x1b979e,'id')})[_0x5d486d('0x1714')][_0x5d486d('0x2788')](function(){_0x46a089();})[_0x5d486d('0x1cb5')](function(_0x5c14e9){_0x21a006(_0x5c14e9);});}});}function _0x45d957(){const _0x2336ba=_0x5520ef;_0x2e488a['loading']=!![];const _0x3a907b=_0x283545()[_0x2336ba('0x432')](_0x2e488a[_0x2336ba('0xd0d')],_0x2e488a['selectedItems'],'id'),_0x51266b=_0x283545()[_0x2336ba('0x432')](_0x2e488a[_0x2336ba('0x283f')],_0x2e488a[_0x2336ba('0xd0d')],'id');return _0x502d00(_0x3a907b)['then'](function(){return _0x5dd5c(_0x51266b);})[_0x2336ba('0x2788')](function(){const _0x16760c=_0x2336ba;_0x2e488a[_0x16760c('0x2677')]=![],_0x2e488a[_0x16760c('0x12d9')]=angular[_0x16760c('0x2669')](_0x2e488a[_0x16760c('0x73d')]),_0x2e488a[_0x16760c('0xd0d')]=angular[_0x16760c('0x2669')](_0x2e488a[_0x16760c('0x283f')]),_0x46db1d[_0x16760c('0x173b')]({'title':_0x16760c('0x10c8'),'msg':_0x16760c('0x123')});})[_0x2336ba('0x1cb5')](function(_0x30bf1d){const _0x404fec=_0x2336ba;_0x46db1d['error']({'title':_0x30bf1d[_0x404fec('0x1b51')]?_0x404fec('0x15d1')+_0x30bf1d[_0x404fec('0x1b51')]+'\x20-\x20'+_0x30bf1d['statusText']:_0x404fec('0x13cd'),'msg':_0x30bf1d[_0x404fec('0x1b51')]?JSON[_0x404fec('0x1be0')](_0x30bf1d['data']):_0x30bf1d['toString']()});})[_0x2336ba('0x1ed8')](function(){_0x2e488a['loading']=![];});}function _0x2505f4(){const _0x37354b=_0x5520ef;_0x11e573[_0x37354b('0x19d')]();}}const _0x2c3ac6=_0x1e479a;_0x26082a[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$state','toasty',_0x34e79e('0x519'),_0x34e79e('0x535'),_0x34e79e('0xf34'),_0x34e79e('0x1a5c')];function _0x26082a(_0x3b54d6,_0x3a50e8,_0x584e54,_0x1cd3b9,_0x51bb17,_0x4e244f,_0xfcd3ca){const _0x3a7850=_0x34e79e,_0x1a2f71=this;_0x1a2f71[_0x3a7850('0xbd3')]=!![],_0x1a2f71['ivrCampaign']=angular[_0x3a7850('0x2669')](_0x51bb17),_0x1a2f71['ivrCampaigns']=_0x4e244f,_0x1a2f71['title']=_0xfcd3ca[_0x3a7850('0x1b11')](_0x3a7850('0x4f7'));_0x51bb17&&_0x51bb17[_0x3a7850('0x1a8d')]&&(_0x1a2f71[_0x3a7850('0x14e4')]+=':\x20'+_0x51bb17[_0x3a7850('0x1a8d')]);_0x1a2f71[_0x3a7850('0x13f9')]=_0x3120f9,_0x1a2f71['closeDialog']=_0x575969;function _0x3120f9(){const _0x15a615=_0x3a7850;return _0x1cd3b9[_0x15a615('0x24c')][_0x15a615('0x1b8')]({'id':_0x51bb17['id']},_0x1a2f71[_0x15a615('0x535')])[_0x15a615('0x1714')][_0x15a615('0x2788')](function(_0x27f856){const _0x4a13f4=_0x15a615;_0x1a2f71['ivrCampaigns'][_0x4a13f4('0xc51')](_0x27f856['toJSON']()),_0x584e54[_0x4a13f4('0x173b')]({'title':_0x4a13f4('0x278d'),'msg':_0x1a2f71[_0x4a13f4('0x535')]['name']?_0x1a2f71[_0x4a13f4('0x535')][_0x4a13f4('0x1a8d')]+_0x4a13f4('0xd03'):''}),_0x3a50e8['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x27f856['id']}),_0x575969(_0x27f856);})[_0x15a615('0x1cb5')](function(_0x3427f7){const _0x2fbc4a=_0x15a615;if(_0x3427f7[_0x2fbc4a('0x11fc')]&&_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')]&&_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')]['length']){_0x1a2f71[_0x2fbc4a('0x25be')]=_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')]||[{'message':_0x3427f7[_0x2fbc4a('0x17df')](),'type':'api.campaign.clone'}];for(let _0x1621cc=0x0;_0x1621cc<_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')][_0x2fbc4a('0x2566')];_0x1621cc+=0x1){_0x584e54['error']({'title':_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')][_0x1621cc]['type'],'msg':_0x3427f7[_0x2fbc4a('0x11fc')][_0x2fbc4a('0x25be')][_0x1621cc][_0x2fbc4a('0x15e2')]});}}else _0x584e54[_0x2fbc4a('0x5e8')]({'title':_0x3427f7[_0x2fbc4a('0x1b51')]?_0x2fbc4a('0x15d1')+_0x3427f7[_0x2fbc4a('0x1b51')]+'\x20-\x20'+_0x3427f7[_0x2fbc4a('0x22ce')]:'api.campaign.clone','msg':_0x3427f7[_0x2fbc4a('0x11fc')]?JSON[_0x2fbc4a('0x1be0')](_0x3427f7['data'][_0x2fbc4a('0x15e2')]):_0x3427f7[_0x2fbc4a('0x17df')]()});});}function _0x575969(_0x3a6495){const _0x38ecd7=_0x3a7850;_0x3b54d6[_0x38ecd7('0x19d')](_0x3a6495);}}const _0x57306d=_0x26082a;_0x1e518c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x1e518c(_0x459693,_0x347d1a,_0x19231b,_0x5d3143,_0x2f5080,_0x4f84ae,_0x5dc0f0,_0x565d9d,_0x2d2601,_0x5c3d95,_0x5ddfff){const _0x105350=_0x34e79e,_0xad0944=this;_0xad0944['currentUser']=_0x5ddfff[_0x105350('0x24cc')](),_0xad0944[_0x105350('0x535')]={},_0xad0944[_0x105350('0x18e2')]={'count':0x0,'rows':[]},_0xad0944[_0x105350('0x25c8')]=[],_0xad0944['crudPermissions'],_0xad0944[_0x105350('0x135a')]={'fields':_0x105350('0x4ba'),'sort':_0x105350('0x2658'),'limit':0xa,'page':0x1},_0xad0944['init']=_0x429bcc,_0xad0944['deleteConfirm']=_0x2991db,_0xad0944[_0x105350('0x173b')]=_0x4e98df,_0xad0944['getIvrCampaignHopperBlacks']=_0x13cca7,_0xad0944[_0x105350('0x472')]=_0x13f7ce,_0xad0944[_0x105350('0x17dc')]=_0x52cb6f,_0xad0944[_0x105350('0x16ec')]=_0x5904b2;function _0x429bcc(_0x1d3c87,_0xd9142f){const _0x2c1cc8=_0x105350;_0xad0944[_0x2c1cc8('0x535')]=_0x1d3c87,_0xad0944[_0x2c1cc8('0xe28')]=typeof _0xd9142f!=='undefined'?_0xd9142f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xad0944['query'][_0x2c1cc8('0x1f8')]=_0xad0944[_0x2c1cc8('0x535')]['id'],_0xad0944['query']['id']=_0xad0944['ivrCampaign']['id'],_0x13cca7();}function _0x2991db(_0x222ae6,_0x341b66){const _0x3106b5=_0x105350,_0x96eb74=_0x5dc0f0[_0x3106b5('0x112e')]()[_0x3106b5('0x14e4')](_0x3106b5('0x2250'))[_0x3106b5('0x93e')](_0x3106b5('0x1670')+(_0x222ae6[_0x3106b5('0x1a8d')]||_0x222ae6['id']&&_0x283545()[_0x3106b5('0x2265')]('hopperBlack\x20#')+_0x222ae6['id']||_0x3106b5('0xe80'))+_0x3106b5('0x229e')+_0x3106b5('0x27c7'))[_0x3106b5('0x10bc')](_0x3106b5('0x1f20'))[_0x3106b5('0x24d0')](_0x341b66)['ok']('OK')[_0x3106b5('0x1801')](_0x3106b5('0x1d8d'));_0x5dc0f0[_0x3106b5('0x2fa')](_0x96eb74)[_0x3106b5('0x2788')](function(){_0x52cb6f(_0x222ae6);},function(){const _0x2ac17f=_0x3106b5;console[_0x2ac17f('0x10df')]('CANCEL');});}function _0x4e98df(_0x2ac372){_0xad0944['ivrCampaignHopperBlacks']=_0x2ac372||{'count':0x0,'rows':[]};}function _0x13cca7(){const _0x4a7f3b=_0x105350;_0xad0944['query'][_0x4a7f3b('0x19e')]=(_0xad0944['query'][_0x4a7f3b('0x23f5')]-0x1)*_0xad0944[_0x4a7f3b('0x135a')]['limit'],_0xad0944[_0x4a7f3b('0x1808')]=_0x5c3d95[_0x4a7f3b('0x24c')][_0x4a7f3b('0x2297')](_0xad0944[_0x4a7f3b('0x135a')],_0x4e98df)[_0x4a7f3b('0x1714')];}function _0x52cb6f(_0x58f072){const _0x309fac=_0x105350;_0x5c3d95['hopperBlack'][_0x309fac('0x17c4')]({'id':_0x58f072['id']})['$promise'][_0x309fac('0x2788')](function(){const _0x34c28a=_0x309fac;_0x283545()[_0x34c28a('0x1a90')](_0xad0944[_0x34c28a('0x18e2')][_0x34c28a('0x25df')],{'id':_0x58f072['id']}),_0xad0944['ivrCampaignHopperBlacks'][_0x34c28a('0x338')]-=0x1,!_0xad0944[_0x34c28a('0x18e2')][_0x34c28a('0x25df')]['length']&&_0x13cca7(),_0x2d2601[_0x34c28a('0x173b')]({'title':_0x34c28a('0x1d28'),'msg':_0x58f072[_0x34c28a('0x1a8d')]?_0x58f072[_0x34c28a('0x1a8d')]+_0x34c28a('0x14d4'):''});})[_0x309fac('0x1cb5')](function(_0x52c350){const _0x567b22=_0x309fac;if(_0x52c350['data']&&_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')]&&_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')][_0x567b22('0x2566')]){_0xad0944[_0x567b22('0x25be')]=_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')]||[{'message':_0x52c350[_0x567b22('0x17df')](),'type':_0x567b22('0x290')}];for(let _0x326866=0x0;_0x326866<_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')][_0x567b22('0x2566')];_0x326866++){_0x2d2601[_0x567b22('0x5e8')]({'title':_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')][_0x326866][_0x567b22('0x1d7')],'msg':_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x25be')][_0x326866][_0x567b22('0x15e2')]});}}else _0x2d2601['error']({'title':_0x52c350[_0x567b22('0x1b51')]?'API:'+_0x52c350[_0x567b22('0x1b51')]+_0x567b22('0x1b0b')+_0x52c350[_0x567b22('0x22ce')]:_0x567b22('0x290'),'msg':_0x52c350[_0x567b22('0x11fc')]?JSON['stringify'](_0x52c350[_0x567b22('0x11fc')][_0x567b22('0x15e2')]):_0x52c350[_0x567b22('0x15e2')]||_0x52c350[_0x567b22('0x17df')]()});});}function _0x13f7ce(){const _0x57257b=_0x105350,_0x92d475=angular[_0x57257b('0x2669')](_0xad0944[_0x57257b('0x25c8')]);return _0xad0944['selectedIvrCampaignHopperBlacks']=[],_0x92d475;}function _0x5904b2(_0x490c93){const _0x28b2f9=_0x105350,_0x5e7870=_0x5dc0f0[_0x28b2f9('0x112e')]()[_0x28b2f9('0x14e4')](_0x28b2f9('0x1cd9'))[_0x28b2f9('0x93e')](''+_0xad0944[_0x28b2f9('0x25c8')][_0x28b2f9('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x28b2f9('0x10bc')]('delete\x20hopperBlacks')[_0x28b2f9('0x24d0')](_0x490c93)['ok']('OK')[_0x28b2f9('0x1801')](_0x28b2f9('0x1d8d'));_0x5dc0f0[_0x28b2f9('0x2fa')](_0x5e7870)[_0x28b2f9('0x2788')](function(){const _0x28db50=_0x28b2f9;_0xad0944[_0x28db50('0x25c8')][_0x28db50('0x1534')](function(_0x267970){_0x52cb6f(_0x267970);}),_0xad0944[_0x28db50('0x25c8')]=[];});}let _0x232fd6=!![],_0x1319f1=0x1;_0x347d1a[_0x105350('0x1662')](_0x105350('0x2571'),function(_0x38c128,_0x25a307){const _0x823061=_0x105350;_0x232fd6?_0x4f84ae(function(){_0x232fd6=![];}):(!_0x25a307&&(_0x1319f1=_0xad0944[_0x823061('0x135a')][_0x823061('0x23f5')]),_0x38c128!==_0x25a307&&(_0xad0944['query'][_0x823061('0x23f5')]=0x1),!_0x38c128&&(_0xad0944[_0x823061('0x135a')][_0x823061('0x23f5')]=_0x1319f1),_0x13cca7());});}const _0x3a7bfe=_0x1e518c;_0x296ae9[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),'$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),'toasty','api',_0x34e79e('0x1b04')];function _0x296ae9(_0x458d5d,_0x421795,_0x290128,_0x2a6f0b,_0x67d7df,_0x2f82ca,_0x30d5b6,_0x4b84a4,_0x4de34f,_0x132880,_0x2316e2){const _0x49dc83=_0x34e79e,_0x56da8e=this;_0x56da8e[_0x49dc83('0x9cb')]=_0x2316e2['getCurrentUser'](),_0x56da8e['contacts']={},_0x56da8e[_0x49dc83('0x535')]={},_0x56da8e[_0x49dc83('0xd3a')]={'count':0x0,'rows':[]},_0x56da8e['selectedIvrCampaignHopperFinals']=[],_0x56da8e[_0x49dc83('0xe28')],_0x56da8e['query']={'fields':_0x49dc83('0x1d05'),'sort':_0x49dc83('0x2658'),'limit':0xa,'page':0x1},_0x56da8e['init']=_0x297352,_0x56da8e['deleteConfirm']=_0xd3bd93,_0x56da8e[_0x49dc83('0x173b')]=_0x86bece,_0x56da8e[_0x49dc83('0x21b0')]=_0x227cd2,_0x56da8e['exportSelectedIvrCampaignHopperFinals']=_0x1d6480,_0x56da8e[_0x49dc83('0x1bc5')]=_0x51a91d,_0x56da8e[_0x49dc83('0xacc')]=_0x397cb9,_0x56da8e[_0x49dc83('0x1d04')]=_0x3f263b,_0x56da8e[_0x49dc83('0xac3')]=_0x45b730,_0x56da8e[_0x49dc83('0x319')]=_0x35809e,_0x56da8e[_0x49dc83('0x91f')]=_0x9631d8,_0x56da8e[_0x49dc83('0x7fb')]=_0x21cdb6;function _0x297352(_0x153ea4,_0x561063){const _0x49e8b9=_0x49dc83;_0x56da8e[_0x49e8b9('0x535')]=_0x153ea4,_0x56da8e[_0x49e8b9('0xe28')]=typeof _0x561063!==_0x49e8b9('0xedb')?_0x561063:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x56da8e[_0x49e8b9('0x135a')][_0x49e8b9('0x1f8')]=_0x56da8e[_0x49e8b9('0x535')]['id'],_0x56da8e[_0x49e8b9('0x135a')]['id']=_0x56da8e[_0x49e8b9('0x535')]['id'],_0x227cd2();}function _0xd3bd93(_0x3eea7d,_0x2a31be){const _0x399d56=_0x49dc83,_0x19db03=_0x30d5b6[_0x399d56('0x112e')]()[_0x399d56('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?')['htmlContent'](_0x399d56('0x1670')+(_0x3eea7d[_0x399d56('0x1a8d')]||_0x3eea7d['id']&&_0x283545()[_0x399d56('0x2265')](_0x399d56('0x4ff'))+_0x3eea7d['id']||_0x399d56('0x2530'))+_0x399d56('0x229e')+_0x399d56('0x27c7'))[_0x399d56('0x10bc')]('delete\x20hopperFinal')[_0x399d56('0x24d0')](_0x2a31be)['ok']('OK')['cancel'](_0x399d56('0x1d8d'));_0x30d5b6['show'](_0x19db03)[_0x399d56('0x2788')](function(){_0x51a91d(_0x3eea7d);},function(){const _0x473599=_0x399d56;console[_0x473599('0x10df')](_0x473599('0x1d8d'));});}function _0x86bece(_0x143291){const _0x1a80cb=_0x49dc83;_0x56da8e[_0x1a80cb('0xd3a')]=_0x143291||{'count':0x0,'rows':[]};}function _0x227cd2(){const _0x4ccd98=_0x49dc83;_0x56da8e[_0x4ccd98('0x135a')][_0x4ccd98('0x19e')]=(_0x56da8e[_0x4ccd98('0x135a')]['page']-0x1)*_0x56da8e[_0x4ccd98('0x135a')][_0x4ccd98('0x68e')],_0x56da8e[_0x4ccd98('0x1808')]=_0x132880[_0x4ccd98('0x24c')]['getHopperFinals'](_0x56da8e['query'],_0x86bece)['$promise'];}function _0x51a91d(_0x4fee7b){const _0x33ffbc=_0x49dc83;_0x132880[_0x33ffbc('0x2530')][_0x33ffbc('0x17c4')]({'id':_0x4fee7b['id']})[_0x33ffbc('0x1714')][_0x33ffbc('0x2788')](function(){const _0x243e90=_0x33ffbc;_0x283545()['remove'](_0x56da8e[_0x243e90('0xd3a')][_0x243e90('0x25df')],{'id':_0x4fee7b['id']}),_0x56da8e[_0x243e90('0xd3a')][_0x243e90('0x338')]-=0x1,!_0x56da8e[_0x243e90('0xd3a')][_0x243e90('0x25df')][_0x243e90('0x2566')]&&_0x227cd2(),_0x4de34f[_0x243e90('0x173b')]({'title':_0x243e90('0xeb8'),'msg':_0x4fee7b['name']?_0x4fee7b['name']+'\x20has\x20been\x20deleted!':''});})[_0x33ffbc('0x1cb5')](function(_0x2f1f87){const _0x22c9de=_0x33ffbc;if(_0x2f1f87[_0x22c9de('0x11fc')]&&_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x25be')]&&_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x25be')][_0x22c9de('0x2566')]){_0x56da8e[_0x22c9de('0x25be')]=_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x25be')]||[{'message':_0x2f1f87[_0x22c9de('0x17df')](),'type':_0x22c9de('0x290')}];for(let _0x241610=0x0;_0x241610<_0x2f1f87[_0x22c9de('0x11fc')]['errors'][_0x22c9de('0x2566')];_0x241610++){_0x4de34f[_0x22c9de('0x5e8')]({'title':_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x25be')][_0x241610][_0x22c9de('0x1d7')],'msg':_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x25be')][_0x241610]['message']});}}else _0x4de34f[_0x22c9de('0x5e8')]({'title':_0x2f1f87['status']?_0x22c9de('0x15d1')+_0x2f1f87[_0x22c9de('0x1b51')]+_0x22c9de('0x1b0b')+_0x2f1f87[_0x22c9de('0x22ce')]:_0x22c9de('0x290'),'msg':_0x2f1f87[_0x22c9de('0x11fc')]?JSON['stringify'](_0x2f1f87[_0x22c9de('0x11fc')][_0x22c9de('0x15e2')]):_0x2f1f87['message']||_0x2f1f87[_0x22c9de('0x17df')]()});});}function _0x1d6480(){const _0x52b2a2=_0x49dc83,_0x2db0bd=angular[_0x52b2a2('0x2669')](_0x56da8e[_0x52b2a2('0xd3e')]);return _0x56da8e[_0x52b2a2('0xd3e')]=[],_0x2db0bd;}function _0x397cb9(_0x169356){const _0x1ae0c8=_0x49dc83,_0x1bc0ba=_0x30d5b6['confirm']()[_0x1ae0c8('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?')[_0x1ae0c8('0x93e')](_0x1ae0c8('0x1670')+_0x56da8e[_0x1ae0c8('0xd3e')][_0x1ae0c8('0x2566')]+'\x20selected'+_0x1ae0c8('0x27c7'))['ariaLabel'](_0x1ae0c8('0xc09'))[_0x1ae0c8('0x24d0')](_0x169356)['ok']('OK')[_0x1ae0c8('0x1801')](_0x1ae0c8('0x1d8d'));_0x30d5b6['show'](_0x1bc0ba)[_0x1ae0c8('0x2788')](function(){const _0x5cc26c=_0x1ae0c8;_0x56da8e[_0x5cc26c('0xd3e')][_0x5cc26c('0x1534')](function(_0x4790c4){_0x51a91d(_0x4790c4);}),_0x56da8e[_0x5cc26c('0xd3e')]=[];});}function _0x45b730(_0x2fb299){const _0x49f552=_0x49dc83;_0x132880['cmHopperFinal']['moveContactsIvrCampaignHopperFinal']({'id':_0x56da8e['query']['id'],'state':_0x2fb299})[_0x49f552('0x1714')][_0x49f552('0x2788')](function(_0x4ecb70){const _0x20d0fa=_0x49f552;_0x283545()[_0x20d0fa('0x1015')](_0x4ecb70)&&_0x283545()[_0x20d0fa('0x1015')](_0x4ecb70[0x0])?_0x4de34f[_0x20d0fa('0x2276')]({'title':'Restored\x20Contacts','msg':'0'}):_0x4de34f['info']({'title':_0x20d0fa('0x1ac9'),'msg':JSON[_0x20d0fa('0x1be0')](_0x4ecb70[0x0]['affectedRows'])});})[_0x49f552('0x1cb5')](function(_0x3794d7){const _0x139c17=_0x49f552;_0x4de34f[_0x139c17('0x5e8')]({'title':_0x3794d7[_0x139c17('0x1b51')]?_0x139c17('0x15d1')+_0x3794d7[_0x139c17('0x1b51')]+_0x139c17('0x1b0b')+_0x3794d7[_0x139c17('0x22ce')]:_0x139c17('0x271e'),'msg':_0x3794d7[_0x139c17('0x11fc')]?JSON[_0x139c17('0x1be0')](_0x3794d7[_0x139c17('0x11fc')]['message']):_0x3794d7[_0x139c17('0x15e2')]||_0x3794d7[_0x139c17('0x17df')]()});});}function _0x35809e(_0x2f6463){const _0x286b4d=_0x49dc83;_0x132880[_0x286b4d('0x177a')][_0x286b4d('0x319')]({'id':_0x2f6463})[_0x286b4d('0x1714')][_0x286b4d('0x2788')](function(_0x271ae8){const _0x5f47f2=_0x286b4d;_0x283545()[_0x5f47f2('0x2503')](_0x56da8e['contacts'],_0x271ae8[0x0]);})['catch'](function(_0x1aa4aa){const _0x222226=_0x286b4d;_0x4de34f[_0x222226('0x5e8')]({'title':_0x1aa4aa[_0x222226('0x1b51')]?_0x222226('0x15d1')+_0x1aa4aa[_0x222226('0x1b51')]+_0x222226('0x1b0b')+_0x1aa4aa['statusText']:'SYSTEM:GETcampaign','msg':_0x1aa4aa[_0x222226('0x11fc')]?JSON['stringify'](_0x1aa4aa[_0x222226('0x11fc')][_0x222226('0x15e2')]):_0x1aa4aa[_0x222226('0x15e2')]||_0x1aa4aa['toString']()});});}function _0x21cdb6(_0x5ea0d6){const _0x4a3ab1=_0x49dc83,_0xbe2296=_0x30d5b6['confirm']()[_0x4a3ab1('0x14e4')](_0x4a3ab1('0x2ad'))['htmlContent'](_0x4a3ab1('0x641')+_0x4a3ab1('0x4a1'))[_0x4a3ab1('0x10bc')](_0x4a3ab1('0x9b5'))[_0x4a3ab1('0x24d0')](_0x5ea0d6)['ok']('OK')[_0x4a3ab1('0x1801')](_0x4a3ab1('0x1d8d'));_0x30d5b6['show'](_0xbe2296)['then'](function(){const _0x1197b1=_0x4a3ab1;_0x56da8e[_0x1197b1('0xd3e')]['forEach'](function(_0x5000db){_0x3f263b(_0x5000db);}),_0x56da8e[_0x1197b1('0xd3e')]=[];});}function _0x9631d8(_0x534f1c,_0x1c22a3){const _0x13dc36=_0x49dc83,_0x467409=_0x30d5b6['confirm']()['title'](_0x13dc36('0xb8'))[_0x13dc36('0x93e')](_0x13dc36('0x1670')+_0x13dc36('0x1c64')+''+'\x20will\x20be\x20restored.')[_0x13dc36('0x10bc')](_0x13dc36('0x1354'))[_0x13dc36('0x24d0')](_0x1c22a3)['ok']('OK')[_0x13dc36('0x1801')]('CANCEL');_0x30d5b6['show'](_0x467409)[_0x13dc36('0x2788')](function(){_0x3f263b(_0x534f1c);},function(){console['log']('CANCEL');});}function _0x30048b(_0x1b90be){const _0x50ab97=_0x49dc83,_0x530c3a={};return _0x530c3a['phone']=_0x1b90be['calleridnum'],_0x530c3a[_0x50ab97('0x1343')]=_0x59f37a()()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x530c3a[_0x50ab97('0x89f')]=0x0,_0x530c3a[_0x50ab97('0x221b')]=0x0,_0x530c3a['countnoanswerretry']=0x0,_0x530c3a['countglobal']=0x0,_0x530c3a[_0x50ab97('0x85a')]=_0x1b90be[_0x50ab97('0x85a')],_0x530c3a[_0x50ab97('0x354')]=_0x1b90be[_0x50ab97('0x354')],_0x530c3a[_0x50ab97('0x3bb')]=_0x1b90be[_0x50ab97('0x41e')]?null:_0x1b90be['UserId'],_0x530c3a[_0x50ab97('0xe6b')]=_0x1b90be[_0x50ab97('0xe6b')],_0x530c3a[_0x50ab97('0x1f8')]=_0x1b90be['CampaignId'],_0x530c3a[_0x50ab97('0x155b')]=_0x1b90be[_0x50ab97('0x13a1')]?0x3:0x2,_0x530c3a[_0x50ab97('0x13a1')]=_0x1b90be[_0x50ab97('0x13a1')]?!![]:![],_0x530c3a;}function _0x11079d(_0x45ed8f){const _0xbd5279=_0x49dc83,_0x5b104d={};return _0x5b104d['calleridnum']=_0x45ed8f['calleridnum'],_0x5b104d[_0xbd5279('0x27cd')]=_0x45ed8f['calleridname'],_0x5b104d[_0xbd5279('0x1343')]=_0x59f37a()()[_0xbd5279('0x22b4')](_0xbd5279('0xe8e')),_0x5b104d[_0xbd5279('0x89f')]=_0x45ed8f[_0xbd5279('0x89f')],_0x5b104d[_0xbd5279('0x221b')]=_0x45ed8f['countcongestionretry'],_0x5b104d[_0xbd5279('0x2400')]=_0x45ed8f['countnoanswerretry'],_0x5b104d[_0xbd5279('0x2447')]=_0x45ed8f['countglobal'],_0x5b104d[_0xbd5279('0x85a')]=_0x45ed8f[_0xbd5279('0x85a')],_0x5b104d[_0xbd5279('0x354')]=_0x45ed8f[_0xbd5279('0x354')],_0x5b104d[_0xbd5279('0x3bb')]=_0x2316e2[_0xbd5279('0x24cc')]()['id'],_0x5b104d['VoiceQueueId']=_0x45ed8f[_0xbd5279('0xe6b')],_0x5b104d[_0xbd5279('0x1f8')]=_0x45ed8f[_0xbd5279('0x1f8')],_0x5b104d[_0xbd5279('0x1c5b')]=_0x59f37a()()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x5b104d[_0xbd5279('0x19fa')]=!![],_0x5b104d[_0xbd5279('0x249b')]=0x19,_0x5b104d['statedesc']=_0xbd5279('0x8da'),_0x5b104d[_0xbd5279('0x24c')]=_0x45ed8f[_0xbd5279('0x24c')],_0x5b104d['campaigntype']=_0x45ed8f[_0xbd5279('0xe6b')]?_0xbd5279('0x1ab4'):_0xbd5279('0x1e64'),_0x5b104d;}function _0x3f263b(_0x234be){const _0x157f6d=_0x49dc83;_0x132880[_0x157f6d('0x177a')][_0x157f6d('0xae0')](_0x234be)[_0x157f6d('0x1714')][_0x157f6d('0x2788')](function(_0x4308f3){const _0x44fdd0=_0x157f6d;_0x4de34f['info']({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':_0x44fdd0('0x19ed')+_0x4308f3[_0x44fdd0('0x85a')]});})['catch'](function(_0x479cf1){const _0x24a234=_0x157f6d;_0x479cf1['data']==='Not\x20Found'?_0x132880[_0x24a234('0x1de1')][_0x24a234('0xbd0')](_0x30048b(_0x234be))[_0x24a234('0x1714')]['then'](function(_0x3bf48a){const _0x595c81=_0x24a234;_0x4de34f['info']({'title':'Restored\x20Contact','msg':_0x595c81('0x19ed')+_0x3bf48a['ContactId']}),_0x3bf48a[_0x595c81('0x85a')]&&_0x132880[_0x595c81('0x9b')]['save'](_0x11079d(_0x234be));})[_0x24a234('0x1cb5')](function(_0x79091){const _0x1e5ba8=_0x24a234;!_0x283545()[_0x1e5ba8('0x1015')](_0x79091[_0x1e5ba8('0x11fc')])&&_0x79091['data'][_0x1e5ba8('0x15e2')]==='Validation\x20error'?_0x4de34f[_0x1e5ba8('0x2276')]({'title':_0x1e5ba8('0x7bc'),'msg':_0x1e5ba8('0x19ed')+_0x234be[_0x1e5ba8('0x85a')]}):_0x4de34f['error']({'title':_0x79091[_0x1e5ba8('0x1b51')]?_0x1e5ba8('0x15d1')+_0x79091[_0x1e5ba8('0x1b51')]+_0x1e5ba8('0x1b0b')+_0x79091['statusText']:_0x1e5ba8('0x271e'),'msg':_0x79091['data']?JSON[_0x1e5ba8('0x1be0')](_0x79091[_0x1e5ba8('0x11fc')][_0x1e5ba8('0x15e2')]):_0x79091[_0x1e5ba8('0x15e2')]||_0x79091[_0x1e5ba8('0x17df')]()});}):_0x4de34f[_0x24a234('0x5e8')]({'title':_0x479cf1[_0x24a234('0x1b51')]?'API:'+_0x479cf1[_0x24a234('0x1b51')]+_0x24a234('0x1b0b')+_0x479cf1['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x479cf1['data']?JSON[_0x24a234('0x1be0')](_0x479cf1['data'][_0x24a234('0x15e2')]):_0x479cf1[_0x24a234('0x15e2')]||_0x479cf1[_0x24a234('0x17df')]()});});}let _0x22719a=!![],_0x30809c=0x1;_0x421795['$watch'](_0x49dc83('0x2571'),function(_0x194618,_0x29dd72){const _0x41f630=_0x49dc83;_0x22719a?_0x2f82ca(function(){_0x22719a=![];}):(!_0x29dd72&&(_0x30809c=_0x56da8e['query'][_0x41f630('0x23f5')]),_0x194618!==_0x29dd72&&(_0x56da8e['query']['page']=0x1),!_0x194618&&(_0x56da8e[_0x41f630('0x135a')][_0x41f630('0x23f5')]=_0x30809c),_0x227cd2());});}const _0x14a428=_0x296ae9;_0x465281[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q','$translate',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x465281(_0x4fbb6c,_0x55e1e6,_0x597d0c,_0x3d12fd,_0x3a33f4,_0x34c23e,_0x452d89,_0x416672,_0xa66f81,_0x112236,_0x27b1ff){const _0x189b21=_0x34e79e,_0x1757b0=this;_0x1757b0[_0x189b21('0x9cb')]=_0x27b1ff[_0x189b21('0x24cc')](),_0x1757b0[_0x189b21('0x535')]={},_0x1757b0[_0x189b21('0xe85')]={'count':0x0,'rows':[]},_0x1757b0[_0x189b21('0xc75')]=[],_0x1757b0[_0x189b21('0xe28')],_0x1757b0[_0x189b21('0x135a')]={'fields':_0x189b21('0x13ba'),'sort':_0x189b21('0x2658'),'limit':0xa,'page':0x1},_0x1757b0[_0x189b21('0x24eb')]=_0xedeeeb,_0x1757b0['deleteConfirm']=_0x1e538d,_0x1757b0[_0x189b21('0x173b')]=_0x2bd4fe,_0x1757b0[_0x189b21('0x2440')]=_0x2d2cda,_0x1757b0[_0x189b21('0x490')]=_0x3af42a,_0x1757b0[_0x189b21('0xbce')]=_0x48b985,_0x1757b0['deleteSelectedIvrCampaignHopperHistories']=_0x2b1b36;function _0xedeeeb(_0x19585e,_0x5a7433){const _0x2176b5=_0x189b21;_0x1757b0[_0x2176b5('0x535')]=_0x19585e,_0x1757b0[_0x2176b5('0xe28')]=typeof _0x5a7433!=='undefined'?_0x5a7433:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1757b0[_0x2176b5('0x135a')][_0x2176b5('0x1f8')]=_0x1757b0[_0x2176b5('0x535')]['id'],_0x1757b0[_0x2176b5('0x135a')]['id']=_0x1757b0['ivrCampaign']['id'],_0x2d2cda();}function _0x1e538d(_0x2329a7,_0x584b5f){const _0x4be309=_0x189b21,_0x20c10a=_0x452d89['confirm']()[_0x4be309('0x14e4')](_0x4be309('0x868'))[_0x4be309('0x93e')](_0x4be309('0x1670')+(_0x2329a7[_0x4be309('0x1a8d')]||_0x2329a7['id']&&_0x283545()[_0x4be309('0x2265')](_0x4be309('0x2088'))+_0x2329a7['id']||'hopperHistory')+_0x4be309('0x229e')+_0x4be309('0x27c7'))[_0x4be309('0x10bc')](_0x4be309('0x1ca3'))[_0x4be309('0x24d0')](_0x584b5f)['ok']('OK')[_0x4be309('0x1801')](_0x4be309('0x1d8d'));_0x452d89[_0x4be309('0x2fa')](_0x20c10a)[_0x4be309('0x2788')](function(){_0x48b985(_0x2329a7);},function(){const _0x2e4ba4=_0x4be309;console[_0x2e4ba4('0x10df')]('CANCEL');});}function _0x2bd4fe(_0x3336bb){_0x1757b0['ivrCampaignHopperHistories']=_0x3336bb||{'count':0x0,'rows':[]};}function _0x2d2cda(){const _0x4c427c=_0x189b21;_0x1757b0[_0x4c427c('0x135a')]['offset']=(_0x1757b0[_0x4c427c('0x135a')][_0x4c427c('0x23f5')]-0x1)*_0x1757b0['query']['limit'],_0x1757b0[_0x4c427c('0x1808')]=_0x112236['campaign'][_0x4c427c('0x2557')](_0x1757b0[_0x4c427c('0x135a')],_0x2bd4fe)[_0x4c427c('0x1714')];}function _0x48b985(_0x5a1e8e){const _0x238bd3=_0x189b21;_0x112236[_0x238bd3('0x1c9')][_0x238bd3('0x17c4')]({'id':_0x5a1e8e['id']})['$promise']['then'](function(){const _0x58be13=_0x238bd3;_0x283545()['remove'](_0x1757b0['ivrCampaignHopperHistories'][_0x58be13('0x25df')],{'id':_0x5a1e8e['id']}),_0x1757b0[_0x58be13('0xe85')][_0x58be13('0x338')]-=0x1,!_0x1757b0[_0x58be13('0xe85')][_0x58be13('0x25df')]['length']&&_0x2d2cda(),_0xa66f81[_0x58be13('0x173b')]({'title':'HopperHistory\x20deleted!','msg':_0x5a1e8e[_0x58be13('0x1a8d')]?_0x5a1e8e[_0x58be13('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x238bd3('0x1cb5')](function(_0x299417){const _0x41224a=_0x238bd3;if(_0x299417[_0x41224a('0x11fc')]&&_0x299417['data']['errors']&&_0x299417['data']['errors'][_0x41224a('0x2566')]){_0x1757b0[_0x41224a('0x25be')]=_0x299417[_0x41224a('0x11fc')][_0x41224a('0x25be')]||[{'message':_0x299417[_0x41224a('0x17df')](),'type':_0x41224a('0x290')}];for(let _0xec9146=0x0;_0xec9146<_0x299417['data']['errors']['length'];_0xec9146++){_0xa66f81[_0x41224a('0x5e8')]({'title':_0x299417[_0x41224a('0x11fc')][_0x41224a('0x25be')][_0xec9146][_0x41224a('0x1d7')],'msg':_0x299417[_0x41224a('0x11fc')][_0x41224a('0x25be')][_0xec9146][_0x41224a('0x15e2')]});}}else _0xa66f81[_0x41224a('0x5e8')]({'title':_0x299417['status']?_0x41224a('0x15d1')+_0x299417['status']+_0x41224a('0x1b0b')+_0x299417['statusText']:_0x41224a('0x290'),'msg':_0x299417[_0x41224a('0x11fc')]?JSON[_0x41224a('0x1be0')](_0x299417[_0x41224a('0x11fc')][_0x41224a('0x15e2')]):_0x299417[_0x41224a('0x15e2')]||_0x299417[_0x41224a('0x17df')]()});});}function _0x3af42a(){const _0x44b60b=_0x189b21,_0x2924c9=angular[_0x44b60b('0x2669')](_0x1757b0[_0x44b60b('0xc75')]);return _0x1757b0[_0x44b60b('0xc75')]=[],_0x2924c9;}function _0x2b1b36(_0x11cbb9){const _0x127a39=_0x189b21,_0x2ad905=_0x452d89[_0x127a39('0x112e')]()[_0x127a39('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?')[_0x127a39('0x93e')](''+_0x1757b0[_0x127a39('0xc75')][_0x127a39('0x2566')]+'\x20selected'+_0x127a39('0x27c7'))[_0x127a39('0x10bc')]('delete\x20hopperHistories')['targetEvent'](_0x11cbb9)['ok']('OK')[_0x127a39('0x1801')](_0x127a39('0x1d8d'));_0x452d89[_0x127a39('0x2fa')](_0x2ad905)[_0x127a39('0x2788')](function(){const _0x247b82=_0x127a39;_0x1757b0['selectedIvrCampaignHopperHistories'][_0x247b82('0x1534')](function(_0x2a3582){_0x48b985(_0x2a3582);}),_0x1757b0[_0x247b82('0xc75')]=[];});}let _0x1fc691=!![],_0xccff50=0x1;_0x55e1e6[_0x189b21('0x1662')](_0x189b21('0x2571'),function(_0x2bfbc7,_0x4d605d){const _0x30607d=_0x189b21;_0x1fc691?_0x34c23e(function(){_0x1fc691=![];}):(!_0x4d605d&&(_0xccff50=_0x1757b0[_0x30607d('0x135a')]['page']),_0x2bfbc7!==_0x4d605d&&(_0x1757b0['query']['page']=0x1),!_0x2bfbc7&&(_0x1757b0[_0x30607d('0x135a')][_0x30607d('0x23f5')]=_0xccff50),_0x2d2cda());});}const _0x14f27e=_0x465281;_0x5cb01f[_0x34e79e('0x2d9')]=['$cookies','$scope',_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x5cb01f(_0x3252c9,_0x26361b,_0x4dc7a1,_0x2fe4c1,_0x511355,_0x207fc9,_0x207ed5,_0x4fa63a,_0x58429e,_0x3984e3,_0x389941){const _0x150651=_0x34e79e,_0x315869=this;_0x315869['currentUser']=_0x389941['getCurrentUser'](),_0x315869[_0x150651('0x535')]={},_0x315869['ivrCampaignHoppers']={'count':0x0,'rows':[]},_0x315869[_0x150651('0x606')]=[],_0x315869[_0x150651('0xe28')],_0x315869[_0x150651('0x135a')]={'fields':_0x150651('0xb68'),'sort':_0x150651('0x1cee'),'limit':0xa,'page':0x1},_0x315869[_0x150651('0x1ef0')]=_0x283545()[_0x150651('0x13cf')]([{'option':_0x150651('0x1438'),'value':_0x150651('0x304')},{'option':_0x150651('0x1653'),'value':_0x150651('0xeb3')},{'option':'Medium','value':'\x272\x27'},{'option':_0x150651('0x90e'),'value':_0x150651('0x27c2')},{'option':'Lowest','value':_0x150651('0x102e')}],function(_0x3c167d){const _0x1c931f=_0x150651;return _0x283545()[_0x1c931f('0x10a4')](_0x3c167d['value'],new RegExp('\x27','g'),'');}),_0x315869['init']=_0x369598,_0x315869[_0x150651('0x16a')]=_0x3146ce,_0x315869['success']=_0x457331,_0x315869[_0x150651('0x1c2e')]=_0x339848,_0x315869['createOrEditIvrCampaignHopper']=_0x22b933,_0x315869['exportSelectedIvrCampaignHoppers']=_0x1aada5,_0x315869[_0x150651('0x14f9')]=_0x35e88b,_0x315869['deleteSelectedIvrCampaignHoppers']=_0x4883c8,_0x389941[_0x150651('0x1516')](_0x150651('0xe23'))?_0x3984e3[_0x150651('0x1e6a')][_0x150651('0x1335')]({'fields':'id,name','role':_0x150651('0x188b'),'sort':_0x150651('0x1a8d'),'nolimit':_0x150651('0x1001')})[_0x150651('0x1714')][_0x150651('0x2788')](function(_0x2c38b8){const _0x464080=_0x150651;_0x315869[_0x464080('0x1713')]=_0x2c38b8[_0x464080('0x25df')]||[];})[_0x150651('0x1cb5')](function(_0x3c3fda){const _0x5f2b23=_0x150651;_0x58429e['error']({'title':_0x3c3fda[_0x5f2b23('0x1b51')]?'API:'+_0x3c3fda[_0x5f2b23('0x1b51')]+_0x5f2b23('0x1b0b')+_0x3c3fda[_0x5f2b23('0x22ce')]:_0x5f2b23('0xd90'),'msg':_0x3c3fda[_0x5f2b23('0x11fc')]?JSON[_0x5f2b23('0x1be0')](_0x3c3fda[_0x5f2b23('0x11fc')]):_0x3c3fda[_0x5f2b23('0x17df')]()});}):_0x3984e3[_0x150651('0x1e6a')][_0x150651('0x1335')]({'fields':'id,name','role':'agent','sort':_0x150651('0x1a8d'),'nolimit':_0x150651('0x1001')})[_0x150651('0x1714')]['then'](function(_0x3d2584){const _0x35aa1f=_0x150651;_0x315869[_0x35aa1f('0x1713')]=_0x3d2584[_0x35aa1f('0x25df')]||[];})[_0x150651('0x2788')](function(){const _0x16989c=_0x150651;return _0x3984e3[_0x16989c('0xec9')][_0x16989c('0x1335')]({'userProfileId':_0x315869['currentUser'][_0x16989c('0x237f')],'sectionId':0xca})[_0x16989c('0x1714')];})[_0x150651('0x2788')](function(_0x49eaab){const _0x27db56=_0x150651,_0x5f3e68=_0x49eaab&&_0x49eaab[_0x27db56('0x25df')]?_0x49eaab[_0x27db56('0x25df')][0x0]:null;if(!_0x5f3e68)_0x315869[_0x27db56('0x1713')]=[];else{if(!_0x5f3e68[_0x27db56('0x1c0a')])return _0x3984e3['userProfileResource'][_0x27db56('0x1335')]({'sectionId':_0x5f3e68['id']})[_0x27db56('0x1714')][_0x27db56('0x2788')](function(_0x28d17f){const _0x397668=_0x27db56,_0xba66fe=_0x283545()[_0x397668('0x155d')](_0x28d17f[_0x397668('0x25df')],function(_0x2361bd){const _0x2b7d72=_0x397668;return _0x283545()[_0x2b7d72('0x20e8')](_0x315869[_0x2b7d72('0x1713')],{'id':_0x2361bd[_0x2b7d72('0x2707')]});});_0x315869[_0x397668('0x1713')][_0x397668('0x1534')](function(_0x439572){const _0x185561=_0x397668;!_0x283545()[_0x185561('0xc5d')](_0xba66fe,['id',_0x439572['id']])&&(_0x439572[_0x185561('0x3bf')]=![]),_0xba66fe[_0x185561('0x13e3')](_0x439572);}),_0x315869[_0x397668('0x1713')]=_0xba66fe;});}})[_0x150651('0x1cb5')](function(_0x42da9c){const _0x410c56=_0x150651;_0x58429e[_0x410c56('0x5e8')]({'title':_0x42da9c[_0x410c56('0x1b51')]?_0x410c56('0x15d1')+_0x42da9c[_0x410c56('0x1b51')]+_0x410c56('0x1b0b')+_0x42da9c[_0x410c56('0x22ce')]:_0x410c56('0x1246'),'msg':_0x42da9c[_0x410c56('0x11fc')]?JSON[_0x410c56('0x1be0')](_0x42da9c['data']):_0x42da9c[_0x410c56('0x17df')]()});});function _0x369598(_0x57cb33,_0x1f83f7){const _0x119ce8=_0x150651;_0x315869[_0x119ce8('0x535')]=_0x57cb33,_0x315869[_0x119ce8('0xe28')]=typeof _0x1f83f7!==_0x119ce8('0xedb')?_0x1f83f7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x315869[_0x119ce8('0x135a')][_0x119ce8('0x1f8')]=_0x315869['ivrCampaign']['id'],_0x315869['query']['id']=_0x315869[_0x119ce8('0x535')]['id'],_0x339848();}function _0x3146ce(_0x15bcb5,_0xf6800c){const _0x18bb10=_0x150651,_0x227037=_0x207ed5[_0x18bb10('0x112e')]()[_0x18bb10('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')[_0x18bb10('0x93e')](_0x18bb10('0x1670')+(_0x15bcb5[_0x18bb10('0x1a8d')]||_0x15bcb5['id']&&_0x283545()['upperFirst'](_0x18bb10('0x13b4'))+_0x15bcb5['id']||'hopper')+_0x18bb10('0x229e')+_0x18bb10('0x27c7'))[_0x18bb10('0x10bc')]('delete\x20hopper')['targetEvent'](_0xf6800c)['ok']('OK')[_0x18bb10('0x1801')](_0x18bb10('0x1d8d'));_0x207ed5[_0x18bb10('0x2fa')](_0x227037)[_0x18bb10('0x2788')](function(){_0x35e88b(_0x15bcb5);},function(){const _0x490228=_0x18bb10;console[_0x490228('0x10df')](_0x490228('0x1d8d'));});}function _0x457331(_0x22c12a){const _0x5711e3=_0x150651;_0x315869[_0x5711e3('0xf3')]=_0x22c12a||{'count':0x0,'rows':[]};}function _0x339848(){const _0x48ccd1=_0x150651;_0x315869[_0x48ccd1('0x135a')][_0x48ccd1('0x19e')]=(_0x315869[_0x48ccd1('0x135a')][_0x48ccd1('0x23f5')]-0x1)*_0x315869[_0x48ccd1('0x135a')][_0x48ccd1('0x68e')],_0x315869[_0x48ccd1('0x1808')]=_0x3984e3['campaign'][_0x48ccd1('0x15da')](_0x315869[_0x48ccd1('0x135a')],_0x457331)[_0x48ccd1('0x1714')];}function _0x22b933(_0x47a546,_0x2ccf41){const _0x3ec8cf=_0x150651;_0x207ed5['show']({'controller':_0x3ec8cf('0x8c9'),'controllerAs':'vm','templateUrl':_0x280ecb,'parent':angular[_0x3ec8cf('0x16b1')](_0x4fa63a[_0x3ec8cf('0x945')]),'targetEvent':_0x47a546,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x315869[_0x3ec8cf('0x535')],'hopper':_0x2ccf41,'hoppers':_0x315869[_0x3ec8cf('0xf3')][_0x3ec8cf('0x25df')],'license':null,'setting':null,'crudPermissions':_0x315869['crudPermissions']}});}function _0x35e88b(_0x53d678){const _0xab3c17=_0x150651;_0x3984e3['cmHopper'][_0xab3c17('0x17c4')]({'id':_0x53d678['id']})['$promise']['then'](function(){const _0x3d3751=_0xab3c17;_0x283545()[_0x3d3751('0x1a90')](_0x315869[_0x3d3751('0xf3')][_0x3d3751('0x25df')],{'id':_0x53d678['id']}),_0x315869[_0x3d3751('0xf3')][_0x3d3751('0x338')]-=0x1,!_0x315869[_0x3d3751('0xf3')]['rows'][_0x3d3751('0x2566')]&&_0x339848(),_0x58429e[_0x3d3751('0x173b')]({'title':'Hopper\x20deleted!','msg':_0x53d678['name']?_0x53d678[_0x3d3751('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0xab3c17('0x1cb5')](function(_0x38d2cc){const _0x2af0d6=_0xab3c17;if(_0x38d2cc[_0x2af0d6('0x11fc')]&&_0x38d2cc[_0x2af0d6('0x11fc')]['errors']&&_0x38d2cc[_0x2af0d6('0x11fc')]['errors'][_0x2af0d6('0x2566')]){_0x315869[_0x2af0d6('0x25be')]=_0x38d2cc[_0x2af0d6('0x11fc')][_0x2af0d6('0x25be')]||[{'message':_0x38d2cc[_0x2af0d6('0x17df')](),'type':'SYSTEM:GETcampaign'}];for(let _0xc1be81=0x0;_0xc1be81<_0x38d2cc[_0x2af0d6('0x11fc')][_0x2af0d6('0x25be')][_0x2af0d6('0x2566')];_0xc1be81++){_0x58429e[_0x2af0d6('0x5e8')]({'title':_0x38d2cc[_0x2af0d6('0x11fc')][_0x2af0d6('0x25be')][_0xc1be81]['type'],'msg':_0x38d2cc[_0x2af0d6('0x11fc')][_0x2af0d6('0x25be')][_0xc1be81][_0x2af0d6('0x15e2')]});}}else _0x58429e[_0x2af0d6('0x5e8')]({'title':_0x38d2cc[_0x2af0d6('0x1b51')]?_0x2af0d6('0x15d1')+_0x38d2cc[_0x2af0d6('0x1b51')]+_0x2af0d6('0x1b0b')+_0x38d2cc[_0x2af0d6('0x22ce')]:_0x2af0d6('0x290'),'msg':_0x38d2cc[_0x2af0d6('0x11fc')]?JSON['stringify'](_0x38d2cc['data'][_0x2af0d6('0x15e2')]):_0x38d2cc['message']||_0x38d2cc[_0x2af0d6('0x17df')]()});});}function _0x1aada5(){const _0x5082c6=_0x150651,_0x885a95=angular[_0x5082c6('0x2669')](_0x315869[_0x5082c6('0x606')]);return _0x315869[_0x5082c6('0x606')]=[],_0x885a95;}function _0x4883c8(_0x3d0ad7){const _0xffd739=_0x150651,_0x7f3074=_0x207ed5['confirm']()[_0xffd739('0x14e4')](_0xffd739('0x3c7'))[_0xffd739('0x93e')](''+_0x315869[_0xffd739('0x606')][_0xffd739('0x2566')]+_0xffd739('0xbd')+'\x20will\x20be\x20deleted.')[_0xffd739('0x10bc')]('delete\x20hoppers')['targetEvent'](_0x3d0ad7)['ok']('OK')[_0xffd739('0x1801')](_0xffd739('0x1d8d'));_0x207ed5[_0xffd739('0x2fa')](_0x7f3074)[_0xffd739('0x2788')](function(){const _0x3d3445=_0xffd739;_0x315869['selectedIvrCampaignHoppers'][_0x3d3445('0x1534')](function(_0x187954){_0x35e88b(_0x187954);}),_0x315869[_0x3d3445('0x606')]=[];});}let _0x1ecf20=!![],_0x3c8096=0x1;_0x26361b[_0x150651('0x1662')]('vm_dc.query.filter',function(_0x1bef53,_0x4438db){const _0x31ae79=_0x150651;_0x1ecf20?_0x207fc9(function(){_0x1ecf20=![];}):(!_0x4438db&&(_0x3c8096=_0x315869['query'][_0x31ae79('0x23f5')]),_0x1bef53!==_0x4438db&&(_0x315869['query']['page']=0x1),!_0x1bef53&&(_0x315869[_0x31ae79('0x135a')][_0x31ae79('0x23f5')]=_0x3c8096),_0x339848());});}const _0x303d6c=_0x5cb01f;_0x4d0174[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q','$translate','toasty',_0x34e79e('0x2547'),'hopper',_0x34e79e('0x519'),'Auth','license','setting','crudPermissions'];function _0x4d0174(_0x5a3343,_0x3db990,_0xf5c00d,_0x5169a7,_0x588b2e,_0x45f52e,_0x9374b1,_0x39dcdf,_0x4e3698,_0x5a5107,_0x586a81,_0x31f767,_0x4a3e57,_0x2eace8){const _0x2b6dc6=_0x34e79e,_0x120125=this;_0x120125['currentUser']=_0x586a81[_0x2b6dc6('0x24cc')](),_0x120125['errors']=[],_0x120125[_0x2b6dc6('0x1af0')]=_0x4a3e57,_0x120125[_0x2b6dc6('0x130d')]=_0x31f767,_0x120125[_0x2b6dc6('0xe28')]=_0x2eace8,_0x120125[_0x2b6dc6('0x1193')]={},_0x120125[_0x2b6dc6('0x18ad')]=_0x120125[_0x2b6dc6('0x1af0')]&&_0x120125['setting'][_0x2b6dc6('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x120125[_0x2b6dc6('0x14e4')]=_0x2b6dc6('0x8'),_0x120125['hopper']=angular[_0x2b6dc6('0x2669')](_0x4e3698),_0x120125['hoppers']=_0x39dcdf,_0x120125[_0x2b6dc6('0xc2f')]=![];!_0x120125['hopper']&&(_0x120125[_0x2b6dc6('0x265c')]={},_0x120125[_0x2b6dc6('0x14e4')]=_0x2b6dc6('0x23f8'),_0x120125['newHopper']=!![]);_0x3db990['params']['id']&&(_0x120125[_0x2b6dc6('0x265c')][_0x2b6dc6('0x1f8')]=_0x3db990[_0x2b6dc6('0x4b9')]['id']);_0x120125[_0x2b6dc6('0xde8')]=_0x320c19,_0x120125[_0x2b6dc6('0x125f')]=_0x5c2c35,_0x120125[_0x2b6dc6('0x1094')]=_0x1cf911,_0x120125[_0x2b6dc6('0x2601')]=_0x4a63b6,_0x120125[_0x2b6dc6('0xca7')]=_0x24ce78,_0x586a81['hasRole'](_0x2b6dc6('0xe23'))?_0x5a5107[_0x2b6dc6('0x1e6a')][_0x2b6dc6('0x1335')]({'fields':'id,name','role':_0x2b6dc6('0x188b'),'sort':'name','nolimit':'true'})[_0x2b6dc6('0x1714')][_0x2b6dc6('0x2788')](function(_0x4df6e3){const _0x3982e2=_0x2b6dc6;_0x120125[_0x3982e2('0x1713')]=_0x4df6e3[_0x3982e2('0x25df')]||[];})[_0x2b6dc6('0x1cb5')](function(_0xa4ce69){const _0x5c2a7f=_0x2b6dc6;_0x9374b1[_0x5c2a7f('0x5e8')]({'title':_0xa4ce69[_0x5c2a7f('0x1b51')]?_0x5c2a7f('0x15d1')+_0xa4ce69['status']+_0x5c2a7f('0x1b0b')+_0xa4ce69[_0x5c2a7f('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0xa4ce69[_0x5c2a7f('0x11fc')]?JSON[_0x5c2a7f('0x1be0')](_0xa4ce69[_0x5c2a7f('0x11fc')]):_0xa4ce69[_0x5c2a7f('0x17df')]()});}):_0x5a5107[_0x2b6dc6('0x1e6a')][_0x2b6dc6('0x1335')]({'fields':_0x2b6dc6('0x1338'),'role':_0x2b6dc6('0x188b'),'sort':_0x2b6dc6('0x1a8d'),'nolimit':_0x2b6dc6('0x1001')})[_0x2b6dc6('0x1714')][_0x2b6dc6('0x2788')](function(_0x2e91c9){const _0x54ffb2=_0x2b6dc6;_0x120125[_0x54ffb2('0x1713')]=_0x2e91c9[_0x54ffb2('0x25df')]||[];})[_0x2b6dc6('0x2788')](function(){const _0x30530d=_0x2b6dc6;return _0x5a5107[_0x30530d('0xec9')][_0x30530d('0x1335')]({'userProfileId':_0x120125[_0x30530d('0x9cb')][_0x30530d('0x237f')],'sectionId':0xca})[_0x30530d('0x1714')];})['then'](function(_0x53cc16){const _0x4d8d33=_0x2b6dc6,_0x458b93=_0x53cc16&&_0x53cc16[_0x4d8d33('0x25df')]?_0x53cc16[_0x4d8d33('0x25df')][0x0]:null;if(!_0x458b93)_0x120125[_0x4d8d33('0x1713')]=[];else{if(!_0x458b93[_0x4d8d33('0x1c0a')])return _0x5a5107[_0x4d8d33('0x1050')][_0x4d8d33('0x1335')]({'sectionId':_0x458b93['id']})[_0x4d8d33('0x1714')][_0x4d8d33('0x2788')](function(_0x495781){const _0x3ebbc4=_0x4d8d33,_0x437762=_0x283545()[_0x3ebbc4('0x155d')](_0x495781[_0x3ebbc4('0x25df')],function(_0x4a9cd4){const _0x2bfc54=_0x3ebbc4;return _0x283545()[_0x2bfc54('0x20e8')](_0x120125[_0x2bfc54('0x1713')],{'id':_0x4a9cd4[_0x2bfc54('0x2707')]});});_0x120125[_0x3ebbc4('0x1713')][_0x3ebbc4('0x1534')](function(_0xf02ea9){const _0x26c218=_0x3ebbc4;!_0x283545()[_0x26c218('0xc5d')](_0x437762,['id',_0xf02ea9['id']])&&(_0xf02ea9[_0x26c218('0x3bf')]=![]),_0x437762[_0x26c218('0x13e3')](_0xf02ea9);}),_0x120125[_0x3ebbc4('0x1713')]=_0x437762;});}})['catch'](function(_0xe184e0){const _0x35399c=_0x2b6dc6;_0x9374b1[_0x35399c('0x5e8')]({'title':_0xe184e0[_0x35399c('0x1b51')]?_0x35399c('0x15d1')+_0xe184e0['status']+_0x35399c('0x1b0b')+_0xe184e0['statusText']:_0x35399c('0x1246'),'msg':_0xe184e0[_0x35399c('0x11fc')]?JSON['stringify'](_0xe184e0['data']):_0xe184e0[_0x35399c('0x17df')]()});});function _0x320c19(){const _0x1e8ada=_0x2b6dc6;_0x120125['errors']=[],_0x5a5107['cmHopper'][_0x1e8ada('0xbd0')](_0x120125[_0x1e8ada('0x265c')])[_0x1e8ada('0x1714')][_0x1e8ada('0x2788')](function(_0x5591cf){const _0x20dd15=_0x1e8ada;_0x120125['hoppers'][_0x20dd15('0xc51')](_0x5591cf[_0x20dd15('0x1cbf')]()),_0x9374b1[_0x20dd15('0x173b')]({'title':_0x20dd15('0xc23'),'msg':_0x120125[_0x20dd15('0x265c')]['name']?_0x120125[_0x20dd15('0x265c')]['name']+_0x20dd15('0x1e4a'):''}),_0x24ce78(_0x5591cf);})[_0x1e8ada('0x1cb5')](function(_0x4187c8){const _0x49c13d=_0x1e8ada;if(_0x4187c8['data']&&_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')]&&_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')][_0x49c13d('0x2566')]){_0x120125[_0x49c13d('0x25be')]=_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')]||[{'message':_0x4187c8[_0x49c13d('0x17df')](),'type':_0x49c13d('0x238c')}];for(let _0x3647ec=0x0;_0x3647ec<_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')][_0x49c13d('0x2566')];_0x3647ec+=0x1){_0x9374b1[_0x49c13d('0x5e8')]({'title':_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')][_0x3647ec][_0x49c13d('0x1d7')],'msg':_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x25be')][_0x3647ec][_0x49c13d('0x15e2')]});}}else _0x9374b1[_0x49c13d('0x5e8')]({'title':_0x4187c8['status']?_0x49c13d('0x15d1')+_0x4187c8[_0x49c13d('0x1b51')]+_0x49c13d('0x1b0b')+_0x4187c8[_0x49c13d('0x22ce')]:'api.cmHopper.save','msg':_0x4187c8[_0x49c13d('0x11fc')]?JSON[_0x49c13d('0x1be0')](_0x4187c8[_0x49c13d('0x11fc')][_0x49c13d('0x15e2')]):_0x4187c8[_0x49c13d('0x17df')]()});});}function _0x5c2c35(){const _0x203327=_0x2b6dc6;_0x120125[_0x203327('0x25be')]=[];let _0x4449ca,_0x19976c,_0x53e431,_0x1ac071;_0x120125[_0x203327('0x265c')]['UserId']=_0x120125[_0x203327('0x265c')]['recallme']?_0x120125[_0x203327('0x265c')][_0x203327('0x3bb')]:null,_0x120125[_0x203327('0x265c')]['OwnerId']=_0x586a81[_0x203327('0x24cc')]()['id'],_0x5a5107['cmHopper'][_0x203327('0x1335')]({'id':_0x120125[_0x203327('0x265c')]['id'],'attributes':[_0x203327('0x1343')]})[_0x203327('0x1714')][_0x203327('0x2788')](function(_0x4fd899){const _0x251566=_0x203327;_0x283545()[_0x251566('0x1015')](_0x4fd899)||_0x283545()[_0x251566('0x213d')](_0x4fd899)?_0x4449ca=_0x59f37a()()['format'](_0x251566('0xe8e')):_0x4449ca=_0x4fd899[_0x251566('0x1343')];})[_0x203327('0x1ed8')](function(){const _0x507901=_0x203327;_0x5a5107[_0x507901('0x1de1')][_0x507901('0x2740')]({'id':_0x120125[_0x507901('0x265c')]['id']},_0x283545()[_0x507901('0x5a9')](_0x120125[_0x507901('0x265c')],[_0x507901('0xe6b'),_0x507901('0x1f8'),'ContactId',_0x507901('0x354')]))[_0x507901('0x1714')][_0x507901('0x2788')](function(_0x27d7a2){const _0x4628ef=_0x507901;_0x19976c=_0x27d7a2,_0x5a5107['cmContact']['get']({'id':_0x19976c[_0x4628ef('0x85a')],'attributes':['firstName','lastName']})[_0x4628ef('0x1714')][_0x4628ef('0x2788')](function(_0x8188e){const _0x435e94=_0x4628ef;!_0x283545()[_0x435e94('0x1015')](_0x8188e)&&!_0x283545()['isNil'](_0x8188e['firstName'])&&(_0x53e431=_0x8188e[_0x435e94('0x26da')],!_0x283545()[_0x435e94('0x1015')](_0x8188e[_0x435e94('0x26b9')])&&(_0x53e431+='\x20'+_0x8188e[_0x435e94('0x26b9')]));})[_0x4628ef('0x1cb5')](function(){_0x53e431=undefined;})['finally'](function(){const _0x5e2087=_0x4628ef;_0x5a5107[_0x5e2087('0x24c')][_0x5e2087('0x1335')]({'raw':![],'id':_0x19976c[_0x5e2087('0x1f8')],'attributes':['name']})[_0x5e2087('0x1714')][_0x5e2087('0x2788')](function(_0x3581aa){const _0x136bb7=_0x5e2087;_0x1ac071=_0x3581aa[_0x136bb7('0x1a8d')];})['catch'](function(){_0x1ac071=undefined;})[_0x5e2087('0x1ed8')](function(){const _0x3d57e9=_0x5e2087;_0x5a5107['cmHopperHistory']['save']({'state':0x18,'statedesc':_0x3d57e9('0x756'),'scheduledat':_0x4449ca,'calleridnum':_0x19976c[_0x3d57e9('0x1224')],'calleridname':_0x53e431,'campaigntype':_0x19976c[_0x3d57e9('0xe6b')]?'queue':'ivr','campaign':_0x1ac071,'editedat':_0x59f37a()()[_0x3d57e9('0x22b4')](_0x3d57e9('0xe8e')),'edited':!![],'ListId':_0x19976c[_0x3d57e9('0x354')],'UserId':_0x586a81[_0x3d57e9('0x24cc')]()['id'],'VoiceQueueId':_0x19976c[_0x3d57e9('0xe6b')],'CampaignId':_0x19976c['CampaignId'],'ContactId':_0x19976c['ContactId'],'callback':_0x19976c[_0x3d57e9('0x1d31')],'callbackuniqueid':_0x19976c[_0x3d57e9('0x1023')],'countbusyretry':_0x19976c['countbusyretry'],'countcongestionretry':_0x19976c[_0x3d57e9('0x221b')],'countglobal':_0x19976c[_0x3d57e9('0x2447')],'countnoanswerretry':_0x19976c[_0x3d57e9('0x2400')],'followuptime':_0x19976c[_0x3d57e9('0x26b8')],'recallme':_0x19976c[_0x3d57e9('0x13a1')]});});});const _0x508cab=_0x283545()[_0x4628ef('0x20e8')](_0x120125[_0x4628ef('0x2547')],{'id':_0x27d7a2['id']});_0x508cab&&_0x283545()[_0x4628ef('0x2503')](_0x508cab,_0x283545()[_0x4628ef('0x41b')](_0x27d7a2[_0x4628ef('0x1cbf')](),_0x283545()[_0x4628ef('0x2163')](_0x508cab))),_0x9374b1[_0x4628ef('0x173b')]({'title':_0x4628ef('0x196'),'msg':_0x120125['hopper'][_0x4628ef('0x1a8d')]?_0x120125[_0x4628ef('0x265c')][_0x4628ef('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x24ce78(_0x27d7a2);})['catch'](function(_0x3724d9){const _0x4bd50d=_0x507901;if(_0x3724d9[_0x4bd50d('0x11fc')]&&_0x3724d9[_0x4bd50d('0x11fc')][_0x4bd50d('0x25be')]&&_0x3724d9['data']['errors'][_0x4bd50d('0x2566')]){_0x120125[_0x4bd50d('0x25be')]=_0x3724d9[_0x4bd50d('0x11fc')][_0x4bd50d('0x25be')]||[{'message':_0x3724d9[_0x4bd50d('0x17df')](),'type':'api.cmHopper.update'}];for(let _0x4f5780=0x0;_0x4f5780<_0x3724d9[_0x4bd50d('0x11fc')]['errors'][_0x4bd50d('0x2566')];_0x4f5780++){_0x9374b1[_0x4bd50d('0x5e8')]({'title':_0x3724d9['data'][_0x4bd50d('0x25be')][_0x4f5780][_0x4bd50d('0x1d7')],'msg':_0x3724d9[_0x4bd50d('0x11fc')][_0x4bd50d('0x25be')][_0x4f5780][_0x4bd50d('0x15e2')]});}}else _0x9374b1[_0x4bd50d('0x5e8')]({'title':_0x3724d9['status']?_0x4bd50d('0x15d1')+_0x3724d9[_0x4bd50d('0x1b51')]+_0x4bd50d('0x1b0b')+_0x3724d9[_0x4bd50d('0x22ce')]:_0x4bd50d('0x1d77'),'msg':_0x3724d9[_0x4bd50d('0x11fc')]?JSON[_0x4bd50d('0x1be0')](_0x3724d9[_0x4bd50d('0x11fc')][_0x4bd50d('0x15e2')]):_0x3724d9['toString']()});});});}function _0x1cf911(_0x15872a){const _0x132729=_0x2b6dc6;_0x120125[_0x132729('0x25be')]=[];const _0x5ee1d3=_0x5169a7[_0x132729('0x112e')]()['title'](_0x132729('0x458'))[_0x132729('0x1c98')](_0x132729('0xbc2'))[_0x132729('0x10bc')]('Delete\x20Hopper')['ok'](_0x132729('0x2786'))[_0x132729('0x1801')](_0x132729('0x1481'))[_0x132729('0x24d0')](_0x15872a);_0x5169a7[_0x132729('0x2fa')](_0x5ee1d3)[_0x132729('0x2788')](function(){const _0x3122a4=_0x132729;_0x5a5107['cmHopper']['delete']({'id':_0x120125['hopper']['id']})[_0x3122a4('0x1714')][_0x3122a4('0x2788')](function(){const _0x243f2f=_0x3122a4;_0x283545()['remove'](_0x120125[_0x243f2f('0x2547')],{'id':_0x120125[_0x243f2f('0x265c')]['id']}),_0x9374b1[_0x243f2f('0x173b')]({'title':_0x243f2f('0x583'),'msg':(_0x120125[_0x243f2f('0x265c')][_0x243f2f('0x1a8d')]||_0x243f2f('0x265c'))+_0x243f2f('0x14d4')}),_0x24ce78(_0x120125[_0x243f2f('0x265c')]);})[_0x3122a4('0x1cb5')](function(_0x5f4a4b){const _0x36e5c0=_0x3122a4;if(_0x5f4a4b['data']&&_0x5f4a4b[_0x36e5c0('0x11fc')][_0x36e5c0('0x25be')]&&_0x5f4a4b[_0x36e5c0('0x11fc')]['errors'][_0x36e5c0('0x2566')]){_0x120125['errors']=_0x5f4a4b[_0x36e5c0('0x11fc')][_0x36e5c0('0x25be')]||[{'message':_0x5f4a4b[_0x36e5c0('0x17df')](),'type':_0x36e5c0('0x12f8')}];for(let _0x55b9b4=0x0;_0x55b9b4<_0x5f4a4b[_0x36e5c0('0x11fc')][_0x36e5c0('0x25be')][_0x36e5c0('0x2566')];_0x55b9b4++){_0x9374b1['error']({'title':_0x5f4a4b[_0x36e5c0('0x11fc')][_0x36e5c0('0x25be')][_0x55b9b4][_0x36e5c0('0x1d7')],'msg':_0x5f4a4b['data'][_0x36e5c0('0x25be')][_0x55b9b4]['message']});}}else _0x9374b1[_0x36e5c0('0x5e8')]({'title':_0x5f4a4b['status']?_0x36e5c0('0x15d1')+_0x5f4a4b[_0x36e5c0('0x1b51')]+'\x20-\x20'+_0x5f4a4b[_0x36e5c0('0x22ce')]:_0x36e5c0('0x12f8'),'msg':_0x5f4a4b[_0x36e5c0('0x11fc')]?JSON[_0x36e5c0('0x1be0')](_0x5f4a4b[_0x36e5c0('0x11fc')][_0x36e5c0('0x15e2')]):_0x5f4a4b['message']||_0x5f4a4b['toString']()});});},function(){});}function _0x4a63b6(_0x207b58){return _0x207b58===null?undefined:new Date(_0x207b58);}function _0x24ce78(_0x1a09a5){_0x5169a7['hide'](_0x1a09a5);}}const _0x5ed7fd=_0x4d0174;_0x807198['$inject']=[_0x34e79e('0x519'),_0x34e79e('0xd57')];function _0x807198(_0x258aba,_0x5d58a1){const _0x1141ac=_0x34e79e,_0x1db384=this;_0x1db384[_0x1141ac('0x535')]={},_0x1db384[_0x1141ac('0x24eb')]=_0x13b0df;function _0x13b0df(_0x13587d){const _0x323342=_0x1141ac;_0x1db384['ivrCampaign']=_0x13587d,_0x258aba['cmHopper'][_0x323342('0x1335')]({'limit':0x0,'CampaignId':_0x13587d['id']})[_0x323342('0x1714')][_0x323342('0x2788')](function(_0x235180){const _0x1e32d9=_0x323342;return _0x1db384[_0x1e32d9('0x510')]=_0x235180[_0x1e32d9('0x338')]||0x0,_0x258aba[_0x1e32d9('0x1de1')][_0x1e32d9('0x1335')]({'limit':0x0,'CampaignId':_0x13587d['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})['then'](function(_0x2d5c95){const _0x42102f=_0x323342;return _0x1db384[_0x42102f('0x10a5')]=_0x2d5c95[_0x42102f('0x338')]||0x0,_0x258aba[_0x42102f('0x177a')][_0x42102f('0x1335')]({'limit':0x0,'CampaignId':_0x13587d['id']})[_0x42102f('0x1714')];})[_0x323342('0x2788')](function(_0x4303d3){const _0x1d6e2e=_0x323342;_0x1db384[_0x1d6e2e('0x215d')]=_0x4303d3[_0x1d6e2e('0x338')]||0x0;})[_0x323342('0x1cb5')](function(_0x1ad09a){const _0x17abb3=_0x323342;_0x5d58a1['error']({'title':_0x1ad09a['status']?'API:'+_0x1ad09a[_0x17abb3('0x1b51')]+'\x20-\x20'+_0x1ad09a[_0x17abb3('0x22ce')]:'SYSTEM:GETTAGS','msg':_0x1ad09a[_0x17abb3('0x11fc')]?JSON[_0x17abb3('0x1be0')](_0x1ad09a[_0x17abb3('0x11fc')]):_0x1ad09a[_0x17abb3('0x17df')]()});});}}const _0x55f087=_0x807198;_0x33b9b9[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x535'),_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x33b9b9(_0x319fb2,_0x2550a5,_0x56de30,_0x4759c1,_0x574149,_0x250153,_0x12747f,_0x29d925,_0x5923de){const _0xd80580=_0x34e79e,_0x1ec968=this;_0x1ec968[_0xd80580('0x9cb')]=_0x29d925[_0xd80580('0x24cc')](),_0x1ec968[_0xd80580('0x535')]=_0x574149,_0x1ec968['crudPermissions']=_0x5923de,_0x1ec968[_0xd80580('0x249f')]=_0xd80580('0x24c'),_0x1ec968[_0xd80580('0x121f')]=_0xd80580('0xcdd'),_0x1ec968[_0xd80580('0x1655')]=_0xd80580('0x1a9c'),_0x1ec968[_0xd80580('0xf7a')]=_0xd80580('0xd1e'),_0x1ec968[_0xd80580('0x117b')]=[],_0x1ec968['allowedItems']=[],_0x1ec968['selectedItems']=[],_0x1ec968[_0xd80580('0x12d9')]=[],_0x1ec968['startingSelectedItems']=[],_0x1ec968[_0xd80580('0x2677')]=![],_0x1ec968['loading']=![],_0x1ec968['dualMultiselectOptions']={'readOnly':!_0x1ec968[_0xd80580('0xe28')][_0xd80580('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0xd80580('0x1a8d'),'line1':_0xd80580('0x1a8d'),'line2':'','line3':'','labelAll':_0x250153[_0xd80580('0x1b11')](_0xd80580('0x145d')),'labelSelected':_0x250153[_0xd80580('0x1b11')](_0xd80580('0xf38')),'transferCallback':function(){const _0x28114a=_0xd80580,_0x454633=_0x283545()[_0x28114a('0x12d1')](_0x1ec968[_0x28114a('0xd0d')],_0x1ec968[_0x28114a('0x283f')],'id');_0x1ec968[_0x28114a('0x2677')]=_0x283545()['isEmpty'](_0x454633)?![]:!![];}},_0x1ec968['onInit']=_0x2aef0b,_0x1ec968[_0xd80580('0x15be')]=_0x51d7c4,_0x1ec968['closeDialog']=_0x498161;function _0x2aef0b(){const _0x2ef5b7=_0xd80580;return _0x29d925[_0x2ef5b7('0x1516')](_0x2ef5b7('0xe23'))?_0x261f70()[_0x2ef5b7('0x1cb5')](function(_0x1b81d7){const _0x504064=_0x2ef5b7;_0x56de30[_0x504064('0x5e8')]({'title':_0x1b81d7[_0x504064('0x1b51')]?_0x504064('0x15d1')+_0x1b81d7['status']+_0x504064('0x1b0b')+_0x1b81d7[_0x504064('0x22ce')]:_0x504064('0x13e2'),'msg':_0x1b81d7[_0x504064('0x1b51')]?JSON['stringify'](_0x1b81d7[_0x504064('0x11fc')]):_0x1b81d7[_0x504064('0x17df')]()});}):_0x56cdd9()[_0x2ef5b7('0x2788')](function(_0x3c9ecd){const _0x40f471=_0x2ef5b7;return _0x1ec968[_0x40f471('0xb13')]=_0x3c9ecd,_0x261f70();})[_0x2ef5b7('0x1cb5')](function(_0x501454){const _0x128304=_0x2ef5b7;_0x56de30[_0x128304('0x5e8')]({'title':_0x501454[_0x128304('0x1b51')]?'API:'+_0x501454['status']+_0x128304('0x1b0b')+_0x501454[_0x128304('0x22ce')]:'SYSTEM:GETLISTS','msg':_0x501454[_0x128304('0x1b51')]?JSON[_0x128304('0x1be0')](_0x501454[_0x128304('0x11fc')]):_0x501454[_0x128304('0x17df')]()});});}function _0x56cdd9(){return _0x2550a5(function(_0x53bddb,_0x225ad6){const _0x29efea=a0_0x14e7;_0x4759c1[_0x29efea('0xec9')][_0x29efea('0x1335')]({'userProfileId':_0x1ec968[_0x29efea('0x9cb')][_0x29efea('0x237f')],'name':_0x29efea('0x12f2')})[_0x29efea('0x1714')][_0x29efea('0x2788')](function(_0x4afbde){const _0x143b24=_0x29efea,_0x4a7045=_0x4afbde&&_0x4afbde[_0x143b24('0x25df')]?_0x4afbde[_0x143b24('0x25df')][0x0]:null;_0x53bddb(_0x4a7045);})[_0x29efea('0x1cb5')](function(_0x339c4e){_0x225ad6(_0x339c4e);});});}function _0x261f70(){return _0x2550a5(function(_0x855519,_0x4d12e9){const _0x2c401b=a0_0x14e7;return _0x1bad60()[_0x2c401b('0x2788')](function(_0x5498cc){const _0x37beb3=_0x2c401b;return _0x1ec968[_0x37beb3('0x117b')]=_0x5498cc[_0x37beb3('0x25df')]?_0x5498cc[_0x37beb3('0x25df')]:[],_0x29d925[_0x37beb3('0x1516')](_0x37beb3('0xe23'))?_0x5498cc:_0x1ec968[_0x37beb3('0xb13')]?_0x1ec968[_0x37beb3('0xb13')][_0x37beb3('0x1c0a')]?_0x5498cc:_0x19340b():null;})[_0x2c401b('0x2788')](function(_0x26d0c3){const _0x3081b7=_0x2c401b,_0x2cd156=_0x26d0c3&&_0x26d0c3[_0x3081b7('0x25df')]?_0x26d0c3[_0x3081b7('0x25df')]:[];return _0x1ec968['allowedItems']=_0x283545()[_0x3081b7('0x155d')](_0x2cd156,function(_0x2fe6ec){const _0x2da621=_0x3081b7;return _0x283545()['find'](_0x1ec968[_0x2da621('0x117b')],{'id':_0x29d925['hasRole'](_0x2da621('0xe23'))||_0x1ec968[_0x2da621('0xb13')]['autoAssociation']?_0x2fe6ec['id']:_0x2fe6ec[_0x2da621('0x2707')]});}),_0x1ec968[_0x3081b7('0x12d9')]=angular[_0x3081b7('0x2669')](_0x1ec968[_0x3081b7('0x73d')]),_0x1ec968[_0x3081b7('0x117b')][_0x3081b7('0x1534')](function(_0x25f0ce){const _0x32a13e=_0x3081b7,_0x135e77=_0x283545()['find'](_0x1ec968[_0x32a13e('0x73d')],{'id':_0x25f0ce['id']});_0x1ec968[_0x32a13e('0x9cb')][_0x32a13e('0xb34')]===_0x32a13e('0xe23')?_0x25f0ce['isValid']=!![]:_0x25f0ce['isValid']=typeof _0x135e77!==_0x32a13e('0xedb')?!![]:![];}),_0x4f5fbf();})['then'](function(_0x58b0cd){const _0x256667=_0x2c401b,_0x52635c=_0x58b0cd&&_0x58b0cd[_0x256667('0x25df')]?_0x58b0cd[_0x256667('0x25df')]:[];_0x1ec968[_0x256667('0x283f')]=_0x283545()[_0x256667('0x155d')](_0x52635c,function(_0x1ad973){const _0x1c1350=_0x256667;return _0x283545()[_0x1c1350('0x20e8')](_0x1ec968[_0x1c1350('0x117b')],{'id':_0x1ad973['id']});}),_0x1ec968['startingSelectedItems']=angular[_0x256667('0x2669')](_0x1ec968[_0x256667('0x283f')]),_0x1ec968['dualMultiselectOptions'][_0x256667('0x283f')]=_0x1ec968[_0x256667('0x283f')],_0x1ec968['dualMultiselectOptions']['items']=_0x283545()[_0x256667('0x432')](_0x1ec968[_0x256667('0x73d')],_0x1ec968[_0x256667('0x121')][_0x256667('0x283f')],'id'),_0x855519();})['catch'](function(_0x38e573){_0x4d12e9(_0x38e573);});});}function _0x19340b(){return _0x2550a5(function(_0x4c0d57,_0x1203f3){const _0xe14f08=a0_0x14e7;return _0x4759c1[_0xe14f08('0x1050')][_0xe14f08('0x1335')]({'sectionId':_0x1ec968['section']['id'],'nolimit':!![]})[_0xe14f08('0x1714')][_0xe14f08('0x2788')](function(_0x26d482){_0x4c0d57(_0x26d482);})['catch'](function(_0xcde7fc){_0x1203f3(_0xcde7fc);});});}function _0x4f5fbf(){return _0x2550a5(function(_0x12f2c6,_0x3a3cf3){const _0x1f072b=a0_0x14e7,_0x2c621d=_0x4759c1[_0x1ec968[_0x1f072b('0x249f')]];return _0x2c621d[_0x1ec968[_0x1f072b('0x121f')]]({'id':_0x1ec968[_0x1f072b('0x535')]['id'],'fields':_0x1f072b('0x1338'),'nolimit':!![]})['$promise'][_0x1f072b('0x2788')](function(_0x481c60){_0x12f2c6(_0x481c60);})[_0x1f072b('0x1cb5')](function(_0x2c22e0){_0x3a3cf3(_0x2c22e0);});});}function _0x1bad60(){return _0x2550a5(function(_0x1e3d13,_0xe64778){const _0x581d94=a0_0x14e7;return _0x4759c1[_0x581d94('0x1ba4')][_0x581d94('0x1335')]({'fields':_0x581d94('0x1338'),'nolimit':!![]})[_0x581d94('0x1714')][_0x581d94('0x2788')](function(_0x47e024){_0x1e3d13(_0x47e024);})['catch'](function(_0x1921c3){_0xe64778(_0x1921c3);});});}function _0x3de68a(_0x2df2ed){return _0x2550a5(function(_0x1bcc04,_0x342824){const _0x4ede81=a0_0x14e7;if(_0x283545()[_0x4ede81('0x213d')](_0x2df2ed))_0x1bcc04();else{const _0x553183=_0x4759c1[_0x1ec968['apiRoute']];_0x553183[_0x1ec968[_0x4ede81('0x1655')]]({'id':_0x1ec968[_0x4ede81('0x535')]['id'],'ids':_0x283545()[_0x4ede81('0x155d')](_0x2df2ed,'id')})['$promise'][_0x4ede81('0x2788')](function(){_0x1bcc04();})[_0x4ede81('0x1cb5')](function(_0x49d5aa){_0x342824(_0x49d5aa);});}});}function _0x4fce81(_0x445862){return _0x2550a5(function(_0x17521a,_0x552fc3){const _0x2f7484=a0_0x14e7;if(_0x283545()[_0x2f7484('0x213d')](_0x445862))_0x17521a();else{const _0x51cb8e=_0x4759c1[_0x1ec968[_0x2f7484('0x249f')]];_0x51cb8e[_0x1ec968['removeApi']]({'id':_0x1ec968['ivrCampaign']['id'],'ids':_0x283545()[_0x2f7484('0x155d')](_0x445862,'id')})[_0x2f7484('0x1714')][_0x2f7484('0x2788')](function(){_0x17521a();})['catch'](function(_0x241650){_0x552fc3(_0x241650);});}});}function _0x51d7c4(){const _0x32f8c6=_0xd80580;_0x1ec968[_0x32f8c6('0xd98')]=!![];const _0x410836=_0x283545()[_0x32f8c6('0x432')](_0x1ec968[_0x32f8c6('0xd0d')],_0x1ec968[_0x32f8c6('0x283f')],'id'),_0x376ee7=_0x283545()['differenceBy'](_0x1ec968[_0x32f8c6('0x283f')],_0x1ec968['startingSelectedItems'],'id');return _0x4fce81(_0x410836)[_0x32f8c6('0x2788')](function(){return _0x3de68a(_0x376ee7);})['then'](function(){const _0x3e5b76=_0x32f8c6;_0x1ec968[_0x3e5b76('0x2677')]=![],_0x1ec968[_0x3e5b76('0x12d9')]=angular[_0x3e5b76('0x2669')](_0x1ec968[_0x3e5b76('0x73d')]),_0x1ec968[_0x3e5b76('0xd0d')]=angular['copy'](_0x1ec968[_0x3e5b76('0x283f')]),_0x56de30[_0x3e5b76('0x173b')]({'title':'SUCCESS','msg':_0x3e5b76('0x123')});})[_0x32f8c6('0x1cb5')](function(_0x554054){const _0x169465=_0x32f8c6;_0x56de30[_0x169465('0x5e8')]({'title':_0x554054[_0x169465('0x1b51')]?'API:'+_0x554054[_0x169465('0x1b51')]+_0x169465('0x1b0b')+_0x554054[_0x169465('0x22ce')]:_0x169465('0x13cd'),'msg':_0x554054[_0x169465('0x1b51')]?JSON[_0x169465('0x1be0')](_0x554054[_0x169465('0x11fc')]):_0x554054[_0x169465('0x17df')]()});})[_0x32f8c6('0x1ed8')](function(){const _0x1fd8a9=_0x32f8c6;_0x1ec968[_0x1fd8a9('0xd98')]=![];});}function _0x498161(){const _0xc4839c=_0xd80580;_0x319fb2[_0xc4839c('0x19d')]();}}const _0x9f1a2d=_0x33b9b9;_0x6094e7[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x123b'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'ivrCampaign',_0x34e79e('0x134a'),_0x34e79e('0x1d9e'),'$q'];function _0x6094e7(_0x131ba,_0x30ec1c,_0x327498,_0x2284ba,_0x51e78c,_0x4c88fe,_0x52abf2,_0x40aef3){const _0x379f0a=_0x34e79e,_0x41a283=this;_0x41a283[_0x379f0a('0x2563')]=[],_0x41a283[_0x379f0a('0x117b')]=_0x4c88fe?_0x4c88fe:[],_0x41a283['loading']=![],_0x41a283[_0x379f0a('0xca7')]=_0x2ccc5c,_0x41a283[_0x379f0a('0x2537')]=_0x34e7ea,_0x41a283[_0x379f0a('0xe52')]=_0x41b313,_0x41a283[_0x379f0a('0x1d26')]=_0x591182,_0x41a283['isChecked']=_0x142189,_0x41a283['toggleAll']=_0x2e79b9,_0x41a283[_0x379f0a('0x17f0')]=_0x3db4d0;function _0x41b313(_0x49fef9,_0x42987d){const _0x19d9e3=_0x379f0a,_0x20f789=_0x42987d[_0x19d9e3('0x821')](_0x49fef9);_0x20f789>-0x1?_0x42987d[_0x19d9e3('0x722')](_0x20f789,0x1):_0x42987d[_0x19d9e3('0x13e3')](_0x49fef9);}function _0x34e7ea(_0x3d523f,_0x55c8f3){return _0x55c8f3['indexOf'](_0x3d523f)>-0x1;}function _0x591182(){const _0x5dccaf=_0x379f0a;return _0x41a283[_0x5dccaf('0x2563')][_0x5dccaf('0x2566')]!==0x0&&_0x41a283[_0x5dccaf('0x2563')][_0x5dccaf('0x2566')]!==_0x41a283[_0x5dccaf('0x117b')][_0x5dccaf('0x2566')];}function _0x142189(){const _0x13bc47=_0x379f0a;return _0x41a283[_0x13bc47('0x2563')][_0x13bc47('0x2566')]===_0x41a283[_0x13bc47('0x117b')]['length'];}function _0x2e79b9(){const _0x9b149a=_0x379f0a;if(_0x41a283[_0x9b149a('0x2563')][_0x9b149a('0x2566')]===_0x41a283[_0x9b149a('0x117b')]['length'])_0x41a283[_0x9b149a('0x2563')]=[];else(_0x41a283[_0x9b149a('0x2563')][_0x9b149a('0x2566')]===0x0||_0x41a283['selected'][_0x9b149a('0x2566')]>0x0)&&(_0x41a283[_0x9b149a('0x2563')]=_0x41a283['items'][_0x9b149a('0x845')](0x0));}function _0x2ccc5c(){const _0x424e24=_0x379f0a;_0x30ec1c[_0x424e24('0x19d')]();}function _0x3db4d0(){const _0x48db30=_0x379f0a;_0x41a283[_0x48db30('0xd98')]=!![];const _0x546d6d=_0x299731();_0x546d6d[_0x48db30('0x1ed8')](function(){const _0x231e27=_0x48db30;_0x41a283[_0x231e27('0xd98')]=![],_0x2ccc5c();});}function _0x299731(){return _0x40aef3(function(_0x3e3f58){const _0x41f290=a0_0x14e7;for(let _0x5a8efd=0x0;_0x5a8efd<_0x41a283[_0x41f290('0x2563')][_0x41f290('0x2566')];_0x5a8efd+=0x1){_0x38d77d(_0x51e78c['id'],_0x41a283[_0x41f290('0x2563')][_0x5a8efd]);}_0x102672(_0x3e3f58);});}function _0x38d77d(_0x2d1df5,_0x2aec6e){const _0x3d3172=_0x379f0a,_0x460338=_0x2aec6e['id'];_0x52abf2[_0x3d3172('0xa76')](function(){const _0x4da286=_0x3d3172;return _0x2284ba[_0x4da286('0x24c')][_0x4da286('0xd1e')]({'id':_0x2d1df5,'ids':_0x460338})[_0x4da286('0x1714')]['then'](function(){const _0x34394c=_0x4da286;return _0x2284ba[_0x34394c('0x24c')][_0x34394c('0x1a9c')]({'id':_0x2d1df5,'ids':_0x460338,'dialCheckDuplicateType':'never'})[_0x34394c('0x1714')];})[_0x4da286('0x2788')](function(){const _0x13b2cc=_0x4da286;_0x327498[_0x13b2cc('0x173b')]({'title':_0x13b2cc('0x1148'),'msg':_0x13b2cc('0x1b3')+_0x2aec6e[_0x13b2cc('0x1a8d')]+_0x13b2cc('0x2611')});})[_0x4da286('0x1cb5')](function(_0x431926){const _0x2e7ab1=_0x4da286;_0x327498[_0x2e7ab1('0x5e8')]({'title':_0x431926[_0x2e7ab1('0x1b51')]?_0x2e7ab1('0x15d1')+_0x431926[_0x2e7ab1('0x1b51')]+_0x2e7ab1('0x1b0b')+_0x431926['statusText']:_0x2e7ab1('0x840'),'msg':_0x431926[_0x2e7ab1('0x1b51')]?JSON[_0x2e7ab1('0x1be0')](_0x431926[_0x2e7ab1('0x11fc')]):_0x431926[_0x2e7ab1('0x17df')]()});});});}function _0x102672(_0x59862e){_0x52abf2['enqueue'](function(){return _0x59862e();});}}const _0x5d5874=_0x6094e7,_0x4dc872=_0x18dd13['p']+_0x34e79e('0x167e'),_0x3254c3=_0x18dd13['p']+_0x34e79e('0x13b1'),_0x5e61a1=_0x18dd13['p']+_0x34e79e('0xa75'),_0x5c67f5=_0x18dd13['p']+_0x34e79e('0x1ca5');_0x1469b5['$inject']=['$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x535'),'userProfileSection'];function _0x1469b5(_0x4d7d5a,_0x4084d1,_0x31deb5,_0x53c6cd,_0x49277a,_0x1cf32c,_0x3d8f4d,_0x2b0827,_0x245633,_0x2a1b37,_0x36e0df,_0x5611cc){const _0x43e548=_0x34e79e,_0x196998=this;_0x196998['currentUser']=_0x2a1b37[_0x43e548('0x24cc')](),_0x196998[_0x43e548('0x130d')]=_0x1cf32c,_0x196998['setting']=_0x3d8f4d,_0x196998[_0x43e548('0x18ad')]=_0x196998[_0x43e548('0x1af0')][_0x43e548('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x196998[_0x43e548('0xe9')]=_0x4084d1[_0x43e548('0x170c')]()+_0x43e548('0x726')+_0x4084d1[_0x43e548('0x1c6a')](),_0x196998['ivrCampaign']=_0x36e0df||_0x4d7d5a[_0x43e548('0x4b9')][_0x43e548('0x535')]||{},_0x196998[_0x43e548('0xec9')]=_0x5611cc&&_0x5611cc['count']==0x1?_0x5611cc['rows'][0x0]:null,_0x196998['crudPermissions']=_0x2a1b37[_0x43e548('0x157e')](_0x196998[_0x43e548('0xec9')]?_0x196998[_0x43e548('0xec9')]['crudPermissions']:null),_0x196998[_0x43e548('0x1193')]={},_0x196998['selectedTab']=_0x4d7d5a['params'][_0x43e548('0x24f6')]||0x0,_0x196998[_0x43e548('0x15fb')]=_0x6fae37,_0x196998['listadddialog']=_0x323da1,_0x196998[_0x43e548('0x3b8')]=_0x6655f0,_0x196998['resetlistdialog']=_0x200012,_0x196998[_0x43e548('0x1fc7')]=_0x4d2389,_0x196998[_0x43e548('0x204f')]=_0x245633[_0x43e548('0x2276')],_0x196998[_0x43e548('0x1a00')]=_0x4090e4,_0x196998[_0x43e548('0x135b')]=_0x39c4f2,_0x2a1b37[_0x43e548('0x1516')](_0x43e548('0xe23'))?_0x2b0827[_0x43e548('0x2549')]['get']({'fields':_0x43e548('0x1338'),'sort':_0x43e548('0x1a8d')})[_0x43e548('0x1714')][_0x43e548('0x2788')](function(_0x16ec23){const _0x531009=_0x43e548;_0x196998[_0x531009('0x20f2')]=_0x16ec23['rows']||[];})[_0x43e548('0x1cb5')](function(_0x253aef){const _0xccc74c=_0x43e548;_0x245633[_0xccc74c('0x5e8')]({'title':_0x253aef[_0xccc74c('0x1b51')]?_0xccc74c('0x15d1')+_0x253aef[_0xccc74c('0x1b51')]+'\x20-\x20'+_0x253aef[_0xccc74c('0x22ce')]:'SYSTEM:GET_TRUNKS','msg':_0x253aef['data']?JSON[_0xccc74c('0x1be0')](_0x253aef[_0xccc74c('0x11fc')]):_0x253aef[_0xccc74c('0x17df')]()});}):_0x2b0827[_0x43e548('0x2549')][_0x43e548('0x1335')]({'fields':_0x43e548('0x1338'),'sort':'name'})[_0x43e548('0x1714')][_0x43e548('0x2788')](function(_0x39a48c){const _0xe5d7d9=_0x43e548;_0x196998[_0xe5d7d9('0x20f2')]=_0x39a48c[_0xe5d7d9('0x25df')]||[];})[_0x43e548('0x2788')](function(){const _0x26bd81=_0x43e548;return _0x2b0827[_0x26bd81('0xec9')][_0x26bd81('0x1335')]({'userProfileId':_0x196998[_0x26bd81('0x9cb')][_0x26bd81('0x237f')],'sectionId':0x3f3})[_0x26bd81('0x1714')];})[_0x43e548('0x2788')](function(_0x33e554){const _0x574858=_0x43e548,_0x51466f=_0x33e554&&_0x33e554[_0x574858('0x25df')]?_0x33e554['rows'][0x0]:null;if(!_0x51466f)_0x196998[_0x574858('0x20f2')]=[];else{if(!_0x51466f[_0x574858('0x1c0a')])return _0x2b0827[_0x574858('0x1050')][_0x574858('0x1335')]({'sectionId':_0x51466f['id']})['$promise'][_0x574858('0x2788')](function(_0x2731a3){const _0xae7585=_0x574858,_0x1cdb72=_0x283545()['map'](_0x2731a3['rows'],function(_0x23f485){const _0x1721e0=a0_0x14e7;return _0x283545()[_0x1721e0('0x20e8')](_0x196998[_0x1721e0('0x20f2')],{'id':_0x23f485['resourceId']});});_0x196998[_0xae7585('0x20f2')]['forEach'](function(_0x40fd9e){const _0x53f7b3=_0xae7585;!_0x283545()[_0x53f7b3('0xc5d')](_0x1cdb72,['id',_0x40fd9e['id']])&&(_0x40fd9e[_0x53f7b3('0x3bf')]=![]),_0x1cdb72['push'](_0x40fd9e);}),_0x196998['trunks']=_0x1cdb72;});}})[_0x43e548('0x1cb5')](function(_0x55b87f){const _0x5b6d79=_0x43e548;_0x245633[_0x5b6d79('0x5e8')]({'title':_0x55b87f['status']?'API:'+_0x55b87f[_0x5b6d79('0x1b51')]+_0x5b6d79('0x1b0b')+_0x55b87f['statusText']:_0x5b6d79('0xdb5'),'msg':_0x55b87f[_0x5b6d79('0x11fc')]?JSON[_0x5b6d79('0x1be0')](_0x55b87f[_0x5b6d79('0x11fc')]):_0x55b87f['toString']()});}),_0x2a1b37[_0x43e548('0x1516')]('admin')?_0x2b0827[_0x43e548('0x163a')][_0x43e548('0x1335')]({'fields':_0x43e548('0x1338'),'sort':_0x43e548('0x1a8d')})[_0x43e548('0x1714')]['then'](function(_0x407c52){const _0x1c4777=_0x43e548;_0x196998['projects']=_0x407c52[_0x1c4777('0x25df')]||[];})[_0x43e548('0x1cb5')](function(_0x2e99c8){const _0x37390c=_0x43e548;_0x245633['error']({'title':_0x2e99c8[_0x37390c('0x1b51')]?'API:'+_0x2e99c8[_0x37390c('0x1b51')]+_0x37390c('0x1b0b')+_0x2e99c8[_0x37390c('0x22ce')]:_0x37390c('0x123a'),'msg':_0x2e99c8['data']?JSON[_0x37390c('0x1be0')](_0x2e99c8['data']):_0x2e99c8[_0x37390c('0x17df')]()});}):_0x2b0827[_0x43e548('0x163a')][_0x43e548('0x1335')]({'fields':_0x43e548('0x1338'),'sort':_0x43e548('0x1a8d')})[_0x43e548('0x1714')][_0x43e548('0x2788')](function(_0x4bde32){const _0x5b3113=_0x43e548;_0x196998[_0x5b3113('0x18f9')]=_0x4bde32['rows']||[];})[_0x43e548('0x2788')](function(){const _0x37fcc3=_0x43e548;return _0x2b0827[_0x37fcc3('0xec9')]['get']({'userProfileId':_0x196998[_0x37fcc3('0x9cb')][_0x37fcc3('0x237f')],'sectionId':0x44f})['$promise'];})[_0x43e548('0x2788')](function(_0x6408a9){const _0xbdd9c8=_0x43e548,_0x35f19f=_0x6408a9&&_0x6408a9[_0xbdd9c8('0x25df')]?_0x6408a9[_0xbdd9c8('0x25df')][0x0]:null;if(!_0x35f19f){const _0x19831e=[];let _0x478102=null;_0x196998[_0xbdd9c8('0x535')]&&(_0x478102=_0x283545()[_0xbdd9c8('0x20e8')](_0x196998['projects'],{'id':Number(_0x196998[_0xbdd9c8('0x535')][_0xbdd9c8('0xe64')])}));for(let _0x2347c8=0x0;_0x2347c8<_0x196998[_0xbdd9c8('0x18f9')][_0xbdd9c8('0x2566')];_0x2347c8++){_0x478102&&_0x196998[_0xbdd9c8('0x18f9')][_0x2347c8]['id']===_0x478102['id']&&(_0x196998[_0xbdd9c8('0x18f9')][_0x2347c8][_0xbdd9c8('0x3bf')]=![],_0x19831e[_0xbdd9c8('0x13e3')](_0x196998[_0xbdd9c8('0x18f9')][_0x2347c8]));}_0x196998[_0xbdd9c8('0x18f9')]=_0x19831e;}else{if(!_0x35f19f[_0xbdd9c8('0x1c0a')])return _0x2b0827[_0xbdd9c8('0x1050')][_0xbdd9c8('0x1335')]({'sectionId':_0x35f19f['id']})[_0xbdd9c8('0x1714')][_0xbdd9c8('0x2788')](function(_0x87b548){const _0x302c78=_0xbdd9c8,_0x112320=_0x283545()[_0x302c78('0x155d')](_0x87b548[_0x302c78('0x25df')],function(_0x52b1d1){const _0x4e386f=_0x302c78;return _0x283545()[_0x4e386f('0x20e8')](_0x196998[_0x4e386f('0x18f9')],{'id':_0x52b1d1['resourceId']});});let _0x5212af=null;_0x196998['ivrCampaign']&&(_0x5212af=_0x283545()[_0x302c78('0x20e8')](_0x196998[_0x302c78('0x18f9')],{'id':Number(_0x196998['ivrCampaign'][_0x302c78('0xe64')])}));if(_0x5212af&&!_0x283545()[_0x302c78('0xc5d')](_0x112320,['id',_0x5212af['id']])){const _0x1df0a1=_0x283545()[_0x302c78('0x20e8')](_0x196998[_0x302c78('0x18f9')],{'id':_0x5212af['id']});_0x1df0a1[_0x302c78('0x3bf')]=![],_0x112320[_0x302c78('0x13e3')](_0x1df0a1);}_0x196998[_0x302c78('0x18f9')]=_0x112320;});}})[_0x43e548('0x1cb5')](function(_0x1987a8){const _0x2eb339=_0x43e548;_0x245633[_0x2eb339('0x5e8')]({'title':_0x1987a8[_0x2eb339('0x1b51')]?_0x2eb339('0x15d1')+_0x1987a8[_0x2eb339('0x1b51')]+'\x20-\x20'+_0x1987a8[_0x2eb339('0x22ce')]:'SYSTEM:GETprojects','msg':_0x1987a8[_0x2eb339('0x11fc')]?JSON[_0x2eb339('0x1be0')](_0x1987a8['data']):_0x1987a8[_0x2eb339('0x17df')]()});}),_0x2a1b37['hasRole'](_0x43e548('0xe23'))?_0x2b0827['interval']['get']({'fields':_0x43e548('0x1338'),'sort':_0x43e548('0x1a8d'),'IntervalId':_0x43e548('0x954')})['$promise']['then'](function(_0x27e13c){const _0x5110c0=_0x43e548;_0x196998['interval']=_0x27e13c[_0x5110c0('0x25df')]||[];})['catch'](function(_0x29bb2f){const _0x5cb872=_0x43e548;_0x245633[_0x5cb872('0x5e8')]({'title':_0x29bb2f[_0x5cb872('0x1b51')]?_0x5cb872('0x15d1')+_0x29bb2f[_0x5cb872('0x1b51')]+_0x5cb872('0x1b0b')+_0x29bb2f['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x29bb2f['data']?JSON[_0x5cb872('0x1be0')](_0x29bb2f[_0x5cb872('0x11fc')]):_0x29bb2f[_0x5cb872('0x17df')]()});}):_0x2b0827[_0x43e548('0x2630')]['get']({'fields':_0x43e548('0x1338'),'sort':_0x43e548('0x1a8d'),'IntervalId':_0x43e548('0x954')})[_0x43e548('0x1714')]['then'](function(_0x525b89){const _0x53ca60=_0x43e548;_0x196998[_0x53ca60('0x2630')]=_0x525b89[_0x53ca60('0x25df')]||[];})[_0x43e548('0x2788')](function(){const _0x120006=_0x43e548;return _0x2b0827[_0x120006('0xec9')][_0x120006('0x1335')]({'userProfileId':_0x196998[_0x120006('0x9cb')][_0x120006('0x237f')],'sectionId':0x3ec})[_0x120006('0x1714')];})[_0x43e548('0x2788')](function(_0xa32d98){const _0x3509df=_0x43e548,_0xd0068c=_0xa32d98&&_0xa32d98['rows']?_0xa32d98['rows'][0x0]:null;if(!_0xd0068c){const _0x471d83=[];let _0x3e1855=null;_0x196998[_0x3509df('0x535')]&&(_0x3e1855=_0x283545()[_0x3509df('0x20e8')](_0x196998[_0x3509df('0x2630')],{'id':Number(_0x196998['ivrCampaign']['IntervalId'])}));for(let _0x989b5c=0x0;_0x989b5c<_0x196998['interval'][_0x3509df('0x2566')];_0x989b5c++){_0x3e1855&&_0x196998[_0x3509df('0x2630')][_0x989b5c]['id']===_0x3e1855['id']&&(_0x196998['interval'][_0x989b5c][_0x3509df('0x3bf')]=![],_0x471d83[_0x3509df('0x13e3')](_0x196998[_0x3509df('0x2630')][_0x989b5c]));}_0x196998[_0x3509df('0x2630')]=_0x471d83;}else{if(!_0xd0068c[_0x3509df('0x1c0a')])return _0x2b0827[_0x3509df('0x1050')][_0x3509df('0x1335')]({'sectionId':_0xd0068c['id']})[_0x3509df('0x1714')][_0x3509df('0x2788')](function(_0x1d4e4a){const _0x522679=_0x3509df,_0x405de8=_0x283545()[_0x522679('0x155d')](_0x1d4e4a[_0x522679('0x25df')],function(_0x136ab7){const _0x1e28f8=_0x522679;return _0x283545()[_0x1e28f8('0x20e8')](_0x196998[_0x1e28f8('0x2630')],{'id':_0x136ab7[_0x1e28f8('0x2707')]});});let _0x489922=null;_0x196998[_0x522679('0x535')]&&(_0x489922=_0x283545()['find'](_0x196998[_0x522679('0x2630')],{'id':Number(_0x196998[_0x522679('0x535')][_0x522679('0x20d0')])}));if(_0x489922&&!_0x283545()[_0x522679('0xc5d')](_0x405de8,['id',_0x489922['id']])){const _0x4a2e13=_0x283545()[_0x522679('0x20e8')](_0x196998[_0x522679('0x2630')],{'id':_0x489922['id']});_0x4a2e13[_0x522679('0x3bf')]=![],_0x405de8[_0x522679('0x13e3')](_0x4a2e13);}_0x196998[_0x522679('0x2630')]=_0x405de8;});}})[_0x43e548('0x1cb5')](function(_0x178f30){const _0x345859=_0x43e548;_0x245633[_0x345859('0x5e8')]({'title':_0x178f30['status']?'API:'+_0x178f30[_0x345859('0x1b51')]+_0x345859('0x1b0b')+_0x178f30['statusText']:_0x345859('0x9b6'),'msg':_0x178f30[_0x345859('0x11fc')]?JSON[_0x345859('0x1be0')](_0x178f30[_0x345859('0x11fc')]):_0x178f30[_0x345859('0x17df')]()});});function _0x6fae37(_0x2b0b3d,_0x102a0c){const _0x4dfa4b=_0x43e548;_0x31deb5[_0x4dfa4b('0x2fa')]({'controller':'IvrCampaigncloneController','controllerAs':'vm','templateUrl':_0x4dc872,'parent':angular[_0x4dfa4b('0x16b1')](_0x53c6cd[_0x4dfa4b('0x945')]),'targetEvent':_0x102a0c,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2b0b3d,'ivrCampaigns':_0x196998['ivrCampaigns']?_0x196998[_0x4dfa4b('0xf34')]['rows']:[],'crudPermissions':_0x196998[_0x4dfa4b('0xe28')]}});}function _0x323da1(_0x43ff45,_0x54fbbc){const _0x151ab7=_0x43e548;_0x31deb5['show']({'controller':_0x151ab7('0x8af'),'controllerAs':'vm','templateUrl':_0x3254c3,'parent':angular['element'](_0x53c6cd[_0x151ab7('0x945')]),'targetEvent':_0x54fbbc,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x43ff45,'ivrCampaigns':_0x196998[_0x151ab7('0xf34')]?_0x196998[_0x151ab7('0xf34')][_0x151ab7('0x25df')]:[],'crudPermissions':_0x196998[_0x151ab7('0xe28')]}});}function _0x6655f0(_0xe4c4f1,_0x28248f){const _0x499c17=_0x43e548;_0x31deb5[_0x499c17('0x2fa')]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x5e61a1,'parent':angular[_0x499c17('0x16b1')](_0x53c6cd[_0x499c17('0x945')]),'targetEvent':_0x28248f,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0xe4c4f1,'ivrCampaigns':_0x196998[_0x499c17('0xf34')]?_0x196998[_0x499c17('0xf34')][_0x499c17('0x25df')]:[],'crudPermissions':_0x196998['crudPermissions']}});}function _0x2a76da(_0x34adc4,_0x3017ad){const _0x1aded6=_0x43e548,_0xa24860=_0x3017ad['id'];_0x2b0827['campaign'][_0x1aded6('0xd1e')]({'id':_0x34adc4,'ids':_0xa24860})['$promise']['then'](function(){const _0x56c357=_0x1aded6;return _0x2b0827[_0x56c357('0x24c')][_0x56c357('0x1a9c')]({'id':_0x34adc4,'ids':_0xa24860,'dialCheckDuplicateType':_0x56c357('0x173d')})[_0x56c357('0x1714')];})['then'](function(){const _0x12817c=_0x1aded6;_0x245633[_0x12817c('0x173b')]({'title':'Reset\x20Succesfull','msg':_0x12817c('0x1b3')+_0x3017ad[_0x12817c('0x1a8d')]+_0x12817c('0x2611')});})[_0x1aded6('0x1cb5')](function(_0x184ca6){const _0x32979f=_0x1aded6;_0x245633[_0x32979f('0x5e8')]({'title':_0x184ca6['status']?_0x32979f('0x15d1')+_0x184ca6[_0x32979f('0x1b51')]+_0x32979f('0x1b0b')+_0x184ca6[_0x32979f('0x22ce')]:_0x32979f('0x16dc'),'msg':_0x184ca6[_0x32979f('0x1b51')]?JSON[_0x32979f('0x1be0')](_0x184ca6[_0x32979f('0x11fc')]):_0x184ca6['toString']()});});}function _0x200012(_0x440c5a,_0x54b21a){const _0x42c508=_0x43e548;_0x2b0827[_0x42c508('0x24c')][_0x42c508('0xcdd')]({'id':_0x440c5a['id'],'fields':_0x42c508('0x1338'),'nolimit':!![]})[_0x42c508('0x1714')][_0x42c508('0x2788')](function(_0x274d49){const _0x40b38b=_0x42c508;if(_0x283545()[_0x40b38b('0x1015')](_0x274d49[_0x40b38b('0x25df')])||_0x283545()['isEmpty'](_0x274d49[_0x40b38b('0x25df')]))_0x245633[_0x40b38b('0x2276')]({'title':'Campaign\x20Without\x20Lists'});else{if(_0x274d49[_0x40b38b('0x25df')][_0x40b38b('0x2566')]===0x1){const _0x10b9fb=_0x31deb5['confirm']()[_0x40b38b('0x14e4')](_0x40b38b('0x22ef')+_0x274d49[_0x40b38b('0x25df')][0x0][_0x40b38b('0x1a8d')]+'\x20?')[_0x40b38b('0x93e')](''+_0x274d49[_0x40b38b('0x25df')][0x0][_0x40b38b('0x1a8d')]+_0x40b38b('0x229e')+'\x20will\x20be\x20reset.')['ariaLabel'](_0x40b38b('0xa14'))[_0x40b38b('0x24d0')](_0x54b21a)['ok']('OK')[_0x40b38b('0x1801')](_0x40b38b('0x1d8d'));_0x31deb5[_0x40b38b('0x2fa')](_0x10b9fb)[_0x40b38b('0x2788')](function(){const _0x287ee2=_0x40b38b;_0x2a76da(_0x196998[_0x287ee2('0x535')]['id'],_0x274d49[_0x287ee2('0x25df')][0x0]);});}else _0x31deb5[_0x40b38b('0x2fa')]({'controller':_0x40b38b('0x221e'),'controllerAs':'vm','templateUrl':_0x5c67f5,'parent':angular['element'](_0x53c6cd[_0x40b38b('0x945')]),'targetEvent':_0x54b21a,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x440c5a,'listsCampaign':_0x274d49?_0x274d49[_0x40b38b('0x25df')]:[]}});}})[_0x42c508('0x1cb5')](function(_0x5883b2){const _0x40708e=_0x42c508;_0x245633[_0x40708e('0x5e8')]({'title':_0x5883b2[_0x40708e('0x1b51')]?_0x40708e('0x15d1')+_0x5883b2['status']+_0x40708e('0x1b0b')+_0x5883b2['statusText']:_0x40708e('0x1235'),'msg':_0x5883b2[_0x40708e('0x1b51')]?JSON[_0x40708e('0x1be0')](_0x5883b2['data']):_0x5883b2[_0x40708e('0x17df')]()});});}function _0x4d2389(){const _0x2984c9=_0x43e548;if(_0x2a1b37[_0x2984c9('0x1516')](_0x2984c9('0xe23')))_0x4d7d5a['go'](_0x2984c9('0x11c1'),{});else return _0x2b0827[_0x2984c9('0xec9')][_0x2984c9('0x1335')]({'userProfileId':_0x2a1b37[_0x2984c9('0x24cc')]()['userProfileId'],'sectionId':0x5e6})['$promise'][_0x2984c9('0x2788')](function(_0xfd89ce){const _0x275b71=_0x2984c9,_0xbc5ee4=_0xfd89ce&&_0xfd89ce[_0x275b71('0x25df')]?_0xfd89ce['rows'][0x0]:null;_0xbc5ee4&&_0xbc5ee4[_0x275b71('0x14f4')]?_0x4d7d5a['go'](_0x275b71('0x11c1'),{}):_0x245633['info']({'title':_0x49277a['instant'](_0x275b71('0x5be')),'msg':_0x49277a[_0x275b71('0x1b11')](_0x275b71('0x1abc'))});})[_0x2984c9('0x1cb5')](function(_0x3a2b2c){const _0x23b049=_0x2984c9;_0x245633['error']({'title':_0x3a2b2c[_0x23b049('0x1b51')]?_0x23b049('0x15d1')+_0x3a2b2c[_0x23b049('0x1b51')]+_0x23b049('0x1b0b')+_0x3a2b2c[_0x23b049('0x22ce')]:_0x23b049('0x2292'),'msg':_0x3a2b2c['status']?JSON[_0x23b049('0x1be0')](_0x3a2b2c[_0x23b049('0x11fc')]):_0x3a2b2c[_0x23b049('0x17df')]()});});}function _0x4090e4(){_0x4d7d5a['go']('app.motiondialer.ivrCampaigns',{},{'reload':'app.motiondialer.ivrCampaigns'});}function _0x39c4f2(){const _0x43c5b3=_0x43e548;_0x2b0827['campaign'][_0x43c5b3('0x2740')]({'id':_0x196998[_0x43c5b3('0x535')]['id']},_0x196998[_0x43c5b3('0x535')])['$promise'][_0x43c5b3('0x2788')](function(){const _0x274da4=_0x43c5b3;_0x245633['success']({'title':_0x274da4('0x16d3'),'msg':_0x196998[_0x274da4('0x535')]['name']?_0x196998[_0x274da4('0x535')][_0x274da4('0x1a8d')]+_0x274da4('0x6f8'):''});})[_0x43c5b3('0x1cb5')](function(_0x107432){const _0x35f4e5=_0x43c5b3;_0x245633[_0x35f4e5('0x5e8')]({'title':_0x107432['status']?_0x35f4e5('0x15d1')+_0x107432[_0x35f4e5('0x1b51')]+_0x35f4e5('0x1b0b')+_0x107432['statusText']:'SYSTEM:GETcampaign','msg':_0x107432[_0x35f4e5('0x11fc')]?JSON[_0x35f4e5('0x1be0')](_0x107432['data']):_0x107432[_0x35f4e5('0x17df')]()});});}}const _0x5ecf54=_0x1469b5;_0x28e344[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),'$mdSidenav',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),'$translate',_0x34e79e('0xf34'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x28e344(_0x4470ab,_0x30304d,_0x54e5a6,_0x3b2055,_0x5352f5,_0x7bfcde,_0x3372ba,_0x1e100b,_0x43ea30,_0x230ecc,_0x2cbf13,_0xfd148,_0x17ea3c,_0x16077c,_0x569a80,_0x46cf38,_0x10a828){const _0x5773b9=_0x34e79e,_0x2edc6d=this;_0x2edc6d['license']=_0x46cf38,_0x2edc6d['setting']=_0x10a828,_0x2edc6d[_0x5773b9('0x9cb')]=_0x569a80[_0x5773b9('0x24cc')](),_0x2edc6d[_0x5773b9('0xf34')]=_0x43ea30||{'count':0x0,'rows':[]},_0x2edc6d['userProfile']=_0x230ecc,_0x2edc6d[_0x5773b9('0xec9')]=_0x2cbf13&&_0x2cbf13[_0x5773b9('0x338')]==0x1?_0x2cbf13['rows'][0x0]:null,_0x2edc6d[_0x5773b9('0xe28')]=_0x569a80['parseCrudPermissions'](_0x2edc6d[_0x5773b9('0xec9')]?_0x2edc6d[_0x5773b9('0xec9')][_0x5773b9('0xe28')]:null),_0x2edc6d[_0x5773b9('0x26a9')]=_0x5773b9('0xf34'),_0x2edc6d['listOrder']='',_0x2edc6d[_0x5773b9('0x25e2')]=null,_0x2edc6d['selectedIvrCampaigns']=[],_0x2edc6d[_0x5773b9('0x135a')]={'fields':_0x5773b9('0x104e'),'type':_0x5773b9('0x1e64'),'sort':_0x5773b9('0x1cee'),'limit':0xa,'page':0x1},_0x2edc6d[_0x5773b9('0x18c9')]=_0x283545()[_0x5773b9('0x13cf')]([{'option':_0x5773b9('0xeec'),'value':_0x5773b9('0x1ac1')},{'option':_0x5773b9('0x13d2'),'value':_0x5773b9('0x1c4')},{'option':'ONLY_IF_OPEN','value':'\x27onlyIfOpen\x27'}],function(_0x390c34){return _0x283545()['replace'](_0x390c34['value'],new RegExp('\x27','g'),'');}),_0x2edc6d[_0x5773b9('0x1b05')]=_0x283545()[_0x5773b9('0x13cf')]([{'option':'DESC','value':_0x5773b9('0x1fda')},{'option':'ASC','value':_0x5773b9('0x1ab0')}],function(_0x314d97){const _0x2647e2=_0x5773b9;return _0x283545()[_0x2647e2('0x10a4')](_0x314d97['value'],new RegExp('\x27','g'),'');}),_0x2edc6d[_0x5773b9('0x1f7e')]=_0x17ecbf,_0x2edc6d['clonedialog']=_0x240ae4,_0x2edc6d[_0x5773b9('0x12e9')]=_0x2021ab,_0x2edc6d[_0x5773b9('0x3b8')]=_0x2fbb58,_0x2edc6d[_0x5773b9('0x1e5')]=_0x5edae0,_0x2edc6d[_0x5773b9('0x8d1')]=_0x69377e,_0x2edc6d[_0x5773b9('0x173b')]=_0x3b3099,_0x2edc6d['getIvrCampaigns']=_0x376c7f,_0x2edc6d[_0x5773b9('0x75d')]=_0x4d4d27,_0x2edc6d[_0x5773b9('0x82c')]=_0x58dabe,_0x2edc6d[_0x5773b9('0x2101')]=_0x2c11b5,_0x2edc6d[_0x5773b9('0x268')]=_0x49cb91,_0x2edc6d[_0x5773b9('0x246f')]=_0x4053e0,_0x2edc6d[_0x5773b9('0x67a')]=_0x595bf2,_0x569a80['hasRole']('admin')?_0xfd148['trunk'][_0x5773b9('0x1335')]({'fields':_0x5773b9('0x1338'),'sort':_0x5773b9('0x1a8d'),'table':'true'})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x326b7f){const _0x1883f9=_0x5773b9;_0x2edc6d[_0x1883f9('0x20f2')]=_0x326b7f[_0x1883f9('0x25df')]||[];})['catch'](function(_0x2d7388){const _0x582aee=_0x5773b9;_0x16077c[_0x582aee('0x5e8')]({'title':_0x2d7388['status']?_0x582aee('0x15d1')+_0x2d7388[_0x582aee('0x1b51')]+_0x582aee('0x1b0b')+_0x2d7388[_0x582aee('0x22ce')]:_0x582aee('0x119d'),'msg':_0x2d7388['data']?JSON[_0x582aee('0x1be0')](_0x2d7388[_0x582aee('0x11fc')]):_0x2d7388[_0x582aee('0x17df')]()});}):_0xfd148[_0x5773b9('0x2549')][_0x5773b9('0x1335')]({'fields':'id,name','sort':'name','table':'true'})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x25bea5){const _0x401778=_0x5773b9;_0x2edc6d[_0x401778('0x20f2')]=_0x25bea5[_0x401778('0x25df')]||[];})[_0x5773b9('0x2788')](function(){const _0x5d8daa=_0x5773b9;return _0xfd148[_0x5d8daa('0xec9')][_0x5d8daa('0x1335')]({'userProfileId':_0x2edc6d[_0x5d8daa('0x9cb')][_0x5d8daa('0x237f')],'sectionId':0x3f3})['$promise'];})[_0x5773b9('0x2788')](function(_0x20125a){const _0x254263=_0x5773b9,_0x1e6520=_0x20125a&&_0x20125a[_0x254263('0x25df')]?_0x20125a[_0x254263('0x25df')][0x0]:null;if(!_0x1e6520)_0x2edc6d['trunks']=[];else{if(!_0x1e6520[_0x254263('0x1c0a')])return _0xfd148['userProfileResource'][_0x254263('0x1335')]({'sectionId':_0x1e6520['id']})['$promise'][_0x254263('0x2788')](function(_0x66f6cb){const _0x187477=_0x254263,_0x3ae369=_0x283545()[_0x187477('0x155d')](_0x66f6cb[_0x187477('0x25df')],function(_0x569270){const _0x48ada0=_0x187477;return _0x283545()[_0x48ada0('0x20e8')](_0x2edc6d[_0x48ada0('0x20f2')],{'id':_0x569270['resourceId']});});_0x2edc6d[_0x187477('0x20f2')]['forEach'](function(_0x4fb5ba){const _0x15024=_0x187477;!_0x283545()[_0x15024('0xc5d')](_0x3ae369,['id',_0x4fb5ba['id']])&&(_0x4fb5ba['canSelect']=![]),_0x3ae369[_0x15024('0x13e3')](_0x4fb5ba);}),_0x2edc6d[_0x187477('0x20f2')]=_0x3ae369;});}})[_0x5773b9('0x1cb5')](function(_0xf6be65){const _0x139a52=_0x5773b9;_0x16077c[_0x139a52('0x5e8')]({'title':_0xf6be65[_0x139a52('0x1b51')]?_0x139a52('0x15d1')+_0xf6be65[_0x139a52('0x1b51')]+_0x139a52('0x1b0b')+_0xf6be65['statusText']:'SYSTEM:GETtrunks','msg':_0xf6be65[_0x139a52('0x11fc')]?JSON[_0x139a52('0x1be0')](_0xf6be65[_0x139a52('0x11fc')]):_0xf6be65[_0x139a52('0x17df')]()});}),_0x569a80['hasRole'](_0x5773b9('0xe23'))?_0xfd148[_0x5773b9('0x163a')][_0x5773b9('0x1335')]({'fields':_0x5773b9('0x1338'),'sort':_0x5773b9('0x1a8d')})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x15cc64){const _0x417073=_0x5773b9;_0x2edc6d[_0x417073('0x18f9')]=_0x15cc64[_0x417073('0x25df')]||[];})[_0x5773b9('0x1cb5')](function(_0x17063c){const _0x51dfe3=_0x5773b9;_0x16077c['error']({'title':_0x17063c[_0x51dfe3('0x1b51')]?_0x51dfe3('0x15d1')+_0x17063c['status']+_0x51dfe3('0x1b0b')+_0x17063c[_0x51dfe3('0x22ce')]:_0x51dfe3('0x123a'),'msg':_0x17063c['data']?JSON[_0x51dfe3('0x1be0')](_0x17063c['data']):_0x17063c[_0x51dfe3('0x17df')]()});}):_0xfd148[_0x5773b9('0x163a')]['get']({'fields':'id,name','sort':_0x5773b9('0x1a8d')})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x59faa0){const _0x5bec19=_0x5773b9;_0x2edc6d['projects']=_0x59faa0[_0x5bec19('0x25df')]||[];})[_0x5773b9('0x2788')](function(){const _0x4bdfde=_0x5773b9;return _0xfd148[_0x4bdfde('0xec9')][_0x4bdfde('0x1335')]({'userProfileId':_0x2edc6d[_0x4bdfde('0x9cb')]['userProfileId'],'sectionId':0x44f})['$promise'];})[_0x5773b9('0x2788')](function(_0x2a1ad7){const _0x5a8904=_0x5773b9,_0x41317a=_0x2a1ad7&&_0x2a1ad7[_0x5a8904('0x25df')]?_0x2a1ad7[_0x5a8904('0x25df')][0x0]:null;if(!_0x41317a){const _0x30258c=[],_0x79050a=[];_0x2edc6d[_0x5a8904('0xf34')]['rows'][_0x5a8904('0x1534')](function(_0x58ac1e){const _0xa1e466=_0x5a8904,_0x1bf95d=_0x283545()['find'](_0x2edc6d[_0xa1e466('0x18f9')],{'id':Number(_0x58ac1e[_0xa1e466('0xe64')])});_0x79050a[_0xa1e466('0x13e3')](_0x1bf95d);});for(let _0x15cc68=0x0;_0x15cc68<_0x2edc6d[_0x5a8904('0x18f9')]['length'];_0x15cc68++){const _0x37e3a0=_0x283545()['some'](_0x79050a,{'id':_0x2edc6d[_0x5a8904('0x18f9')][_0x15cc68]['id']});_0x37e3a0&&(_0x2edc6d[_0x5a8904('0x18f9')][_0x15cc68][_0x5a8904('0x3bf')]=![],_0x30258c['push'](_0x2edc6d['projects'][_0x15cc68]));}_0x2edc6d[_0x5a8904('0x18f9')]=_0x30258c;}else{if(!_0x41317a['autoAssociation'])return _0xfd148['userProfileResource']['get']({'sectionId':_0x41317a['id']})['$promise'][_0x5a8904('0x2788')](function(_0x57ed1e){const _0x15c71b=_0x5a8904,_0x473582=_0x283545()[_0x15c71b('0x155d')](_0x57ed1e[_0x15c71b('0x25df')],function(_0x4f6cdf){const _0x3722a5=_0x15c71b;return _0x283545()['find'](_0x2edc6d['projects'],{'id':_0x4f6cdf[_0x3722a5('0x2707')]});});let _0x5b2019=null;_0x5b2019=[],_0x2edc6d[_0x15c71b('0xf34')][_0x15c71b('0x25df')][_0x15c71b('0x1534')](function(_0x5c257d){const _0x192509=_0x15c71b,_0x54a3e5=_0x283545()['find'](_0x2edc6d['projects'],{'id':Number(_0x5c257d[_0x192509('0xe64')])});_0x5b2019[_0x192509('0x13e3')](_0x54a3e5);}),!_0x283545()[_0x15c71b('0x213d')](_0x5b2019)&&_0x5b2019[_0x15c71b('0x1534')](function(_0x3caf5e){const _0x10d2ce=_0x15c71b;if(!_0x283545()['some'](_0x473582,['id',_0x3caf5e['id']])){const _0x245a4c=_0x283545()[_0x10d2ce('0x20e8')](_0x2edc6d[_0x10d2ce('0x18f9')],{'id':_0x3caf5e['id']});_0x245a4c[_0x10d2ce('0x3bf')]=![],_0x473582['push'](_0x245a4c);}}),_0x2edc6d[_0x15c71b('0x18f9')]=_0x473582;});}})[_0x5773b9('0x1cb5')](function(_0x1fa118){const _0x49f81c=_0x5773b9;_0x16077c['error']({'title':_0x1fa118[_0x49f81c('0x1b51')]?'API:'+_0x1fa118[_0x49f81c('0x1b51')]+_0x49f81c('0x1b0b')+_0x1fa118['statusText']:'SYSTEM:GETprojects','msg':_0x1fa118[_0x49f81c('0x11fc')]?JSON[_0x49f81c('0x1be0')](_0x1fa118[_0x49f81c('0x11fc')]):_0x1fa118[_0x49f81c('0x17df')]()});}),_0x569a80[_0x5773b9('0x1516')](_0x5773b9('0xe23'))?_0xfd148[_0x5773b9('0x2630')][_0x5773b9('0x1335')]({'fields':_0x5773b9('0x1338'),'sort':_0x5773b9('0x1a8d'),'IntervalId':_0x5773b9('0x954')})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x510fd1){const _0x454fa5=_0x5773b9;_0x2edc6d[_0x454fa5('0x2630')]=_0x510fd1['rows']||[];})[_0x5773b9('0x1cb5')](function(_0x29384e){const _0x1f57a5=_0x5773b9;_0x16077c[_0x1f57a5('0x5e8')]({'title':_0x29384e[_0x1f57a5('0x1b51')]?_0x1f57a5('0x15d1')+_0x29384e['status']+'\x20-\x20'+_0x29384e[_0x1f57a5('0x22ce')]:_0x1f57a5('0x2332'),'msg':_0x29384e[_0x1f57a5('0x11fc')]?JSON[_0x1f57a5('0x1be0')](_0x29384e[_0x1f57a5('0x11fc')]):_0x29384e[_0x1f57a5('0x17df')]()});}):_0xfd148[_0x5773b9('0x2630')]['get']({'fields':'id,name','sort':_0x5773b9('0x1a8d'),'IntervalId':'null'})[_0x5773b9('0x1714')][_0x5773b9('0x2788')](function(_0x47d086){const _0x2dfd78=_0x5773b9;_0x2edc6d[_0x2dfd78('0x2630')]=_0x47d086[_0x2dfd78('0x25df')]||[];})[_0x5773b9('0x2788')](function(){const _0x3b2a11=_0x5773b9;return _0xfd148[_0x3b2a11('0xec9')]['get']({'userProfileId':_0x2edc6d['currentUser'][_0x3b2a11('0x237f')],'sectionId':0x3ec})[_0x3b2a11('0x1714')];})[_0x5773b9('0x2788')](function(_0x2f72f5){const _0x289292=_0x5773b9,_0x5c8dad=_0x2f72f5&&_0x2f72f5[_0x289292('0x25df')]?_0x2f72f5[_0x289292('0x25df')][0x0]:null;if(!_0x5c8dad){const _0x16ed9e=[];let _0x386797=null;_0x2edc6d[_0x289292('0x535')]&&(_0x386797=_0x283545()[_0x289292('0x20e8')](_0x2edc6d[_0x289292('0x2630')],{'id':Number(_0x2edc6d[_0x289292('0x535')][_0x289292('0x20d0')])}));for(let _0x2de4ac=0x0;_0x2de4ac<_0x2edc6d[_0x289292('0x2630')]['length'];_0x2de4ac++){_0x386797&&_0x2edc6d[_0x289292('0x2630')][_0x2de4ac]['id']===_0x386797['id']&&(_0x2edc6d['interval'][_0x2de4ac][_0x289292('0x3bf')]=![],_0x16ed9e[_0x289292('0x13e3')](_0x2edc6d[_0x289292('0x2630')][_0x2de4ac]));}_0x2edc6d[_0x289292('0x2630')]=_0x16ed9e;}else{if(!_0x5c8dad[_0x289292('0x1c0a')])return _0xfd148[_0x289292('0x1050')][_0x289292('0x1335')]({'sectionId':_0x5c8dad['id']})[_0x289292('0x1714')]['then'](function(_0x26bcf8){const _0x40248a=_0x289292,_0x35124b=_0x283545()[_0x40248a('0x155d')](_0x26bcf8['rows'],function(_0xd3cc9d){const _0x4b7049=_0x40248a;return _0x283545()['find'](_0x2edc6d[_0x4b7049('0x2630')],{'id':_0xd3cc9d[_0x4b7049('0x2707')]});});let _0x2aee94=null;_0x2edc6d[_0x40248a('0x535')]&&(_0x2aee94=_0x283545()['find'](_0x2edc6d[_0x40248a('0x2630')],{'id':Number(_0x2edc6d['ivrCampaign'][_0x40248a('0x20d0')])}));if(_0x2aee94&&!_0x283545()[_0x40248a('0xc5d')](_0x35124b,['id',_0x2aee94['id']])){const _0x45dd3b=_0x283545()[_0x40248a('0x20e8')](_0x2edc6d[_0x40248a('0x2630')],{'id':_0x2aee94['id']});_0x45dd3b['canSelect']=![],_0x35124b[_0x40248a('0x13e3')](_0x45dd3b);}_0x2edc6d[_0x40248a('0x2630')]=_0x35124b;});}})[_0x5773b9('0x1cb5')](function(_0x5c987a){const _0x10a3d9=_0x5773b9;_0x16077c['error']({'title':_0x5c987a[_0x10a3d9('0x1b51')]?_0x10a3d9('0x15d1')+_0x5c987a[_0x10a3d9('0x1b51')]+'\x20-\x20'+_0x5c987a['statusText']:_0x10a3d9('0x9b6'),'msg':_0x5c987a[_0x10a3d9('0x11fc')]?JSON['stringify'](_0x5c987a[_0x10a3d9('0x11fc')]):_0x5c987a[_0x10a3d9('0x17df')]()});});function _0x17ecbf(_0x227b61){const _0x4d9a77=_0x5773b9;_0x54e5a6['go'](_0x4d9a77('0x106'),{'id':_0x227b61['id'],'ivrCampaign':_0x227b61,'crudPermissions':_0x2edc6d[_0x4d9a77('0xe28')]});}function _0x240ae4(_0x323376,_0x2a0a81){const _0x2541de=_0x5773b9;_0x5352f5[_0x2541de('0x2fa')]({'controller':_0x2541de('0x1bd9'),'controllerAs':'vm','templateUrl':_0x4dc872,'parent':angular[_0x2541de('0x16b1')](_0x7bfcde[_0x2541de('0x945')]),'targetEvent':_0x2a0a81,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x323376,'ivrCampaigns':_0x2edc6d['ivrCampaigns']?_0x2edc6d[_0x2541de('0xf34')]['rows']:[],'crudPermissions':_0x2edc6d[_0x2541de('0xe28')]}});}function _0x2021ab(_0x296a68,_0x4e0239){const _0x568146=_0x5773b9;_0x5352f5[_0x568146('0x2fa')]({'controller':_0x568146('0x8af'),'controllerAs':'vm','templateUrl':_0x3254c3,'parent':angular[_0x568146('0x16b1')](_0x7bfcde[_0x568146('0x945')]),'targetEvent':_0x4e0239,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x296a68,'ivrCampaigns':_0x2edc6d['ivrCampaigns']?_0x2edc6d[_0x568146('0xf34')][_0x568146('0x25df')]:[],'crudPermissions':_0x2edc6d[_0x568146('0xe28')]}});}function _0x2fbb58(_0x42be0b,_0x385592){const _0x11dbfa=_0x5773b9;_0x5352f5[_0x11dbfa('0x2fa')]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x5e61a1,'parent':angular[_0x11dbfa('0x16b1')](_0x7bfcde[_0x11dbfa('0x945')]),'targetEvent':_0x385592,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x42be0b,'ivrCampaigns':_0x2edc6d[_0x11dbfa('0xf34')]?_0x2edc6d[_0x11dbfa('0xf34')][_0x11dbfa('0x25df')]:[],'crudPermissions':_0x2edc6d['crudPermissions']}});}function _0x5edae0(_0x3a1840,_0x5b946c){const _0x53eea3=_0x5773b9,_0x10d5c3=_0x5352f5['confirm']()[_0x53eea3('0x14e4')](_0x53eea3('0x2114')+_0x283545()['startCase']('ivrCampaign')+'?')['htmlContent'](_0x53eea3('0x1670')+(_0x3a1840['name']||'ivrCampaign')+_0x53eea3('0x229e')+_0x53eea3('0x27c7'))[_0x53eea3('0x10bc')](_0x53eea3('0x2692'))[_0x53eea3('0x24d0')](_0x5b946c)['ok']('OK')[_0x53eea3('0x1801')](_0x53eea3('0x1d8d'));_0x5352f5[_0x53eea3('0x2fa')](_0x10d5c3)[_0x53eea3('0x2788')](function(){_0x58dabe(_0x3a1840);},function(){const _0x325a74=_0x53eea3;console[_0x325a74('0x10df')](_0x325a74('0x1d8d'));});}function _0x69377e(){const _0x3fbd72=_0x5773b9;if(_0x569a80[_0x3fbd72('0x1516')](_0x3fbd72('0xe23')))_0x54e5a6['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0xfd148[_0x3fbd72('0xec9')][_0x3fbd72('0x1335')]({'userProfileId':_0x569a80[_0x3fbd72('0x24cc')]()[_0x3fbd72('0x237f')],'sectionId':0x5e6})[_0x3fbd72('0x1714')][_0x3fbd72('0x2788')](function(_0x4f33f4){const _0x4d3aeb=_0x3fbd72,_0x1c3c64=_0x4f33f4&&_0x4f33f4[_0x4d3aeb('0x25df')]?_0x4f33f4[_0x4d3aeb('0x25df')][0x0]:null;_0x1c3c64&&_0x1c3c64[_0x4d3aeb('0x14f4')]?_0x54e5a6['go'](_0x4d3aeb('0x11c1'),{}):_0x16077c['info']({'title':_0x1e100b['instant'](_0x4d3aeb('0x5be')),'msg':_0x1e100b['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x3fbd72('0x1cb5')](function(_0x2192ac){const _0x4e3cbc=_0x3fbd72;_0x16077c[_0x4e3cbc('0x5e8')]({'title':_0x2192ac[_0x4e3cbc('0x1b51')]?_0x4e3cbc('0x15d1')+_0x2192ac['status']+_0x4e3cbc('0x1b0b')+_0x2192ac['statusText']:_0x4e3cbc('0x2292'),'msg':_0x2192ac[_0x4e3cbc('0x1b51')]?JSON['stringify'](_0x2192ac[_0x4e3cbc('0x11fc')]):_0x2192ac[_0x4e3cbc('0x17df')]()});});}let _0x229ac0=!![],_0xe32299=0x1;_0x4470ab[_0x5773b9('0x1662')](_0x5773b9('0x1569'),function(_0x2f80c9,_0xeb9d01){const _0x96ead7=_0x5773b9;_0x229ac0?_0x3372ba(function(){_0x229ac0=![];}):(!_0xeb9d01&&(_0xe32299=_0x2edc6d[_0x96ead7('0x135a')][_0x96ead7('0x23f5')]),_0x2f80c9!==_0xeb9d01&&(_0x2edc6d[_0x96ead7('0x135a')][_0x96ead7('0x23f5')]=0x1),!_0x2f80c9&&(_0x2edc6d[_0x96ead7('0x135a')]['page']=_0xe32299),_0x2edc6d['getIvrCampaigns']());});function _0x3b3099(_0x19f27f){_0x2edc6d['ivrCampaigns']=_0x19f27f||{'count':0x0,'rows':[]};}function _0x376c7f(){const _0x37d29b=_0x5773b9;_0x2edc6d[_0x37d29b('0x135a')]['offset']=(_0x2edc6d[_0x37d29b('0x135a')][_0x37d29b('0x23f5')]-0x1)*_0x2edc6d[_0x37d29b('0x135a')][_0x37d29b('0x68e')],_0x569a80[_0x37d29b('0x1516')](_0x37d29b('0xe23'))?_0x2edc6d[_0x37d29b('0x1808')]=_0xfd148[_0x37d29b('0x24c')][_0x37d29b('0x1335')](_0x2edc6d[_0x37d29b('0x135a')],_0x3b3099)['$promise']:(_0x2edc6d['query']['id']=_0x2edc6d[_0x37d29b('0x63c')]['id'],_0x2edc6d[_0x37d29b('0x135a')][_0x37d29b('0xb13')]=_0x37d29b('0x1c0c'),_0x2edc6d['promise']=_0xfd148[_0x37d29b('0x63c')][_0x37d29b('0xa1')](_0x2edc6d['query'],_0x3b3099)[_0x37d29b('0x1714')]);}function _0x4d4d27(_0x1882de,_0x475d1b){const _0xbc7838=_0x5773b9;_0x5352f5[_0xbc7838('0x2fa')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x272898,'parent':angular[_0xbc7838('0x16b1')](_0x7bfcde[_0xbc7838('0x945')]),'targetEvent':_0x1882de,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x475d1b,'ivrCampaigns':_0x2edc6d[_0xbc7838('0xf34')][_0xbc7838('0x25df')],'license':_0x2edc6d[_0xbc7838('0x130d')],'setting':_0x2edc6d['setting'],'crudPermissions':_0x2edc6d['crudPermissions']}});}function _0x58dabe(_0x9338ea){const _0x36eccc=_0x5773b9;_0xfd148[_0x36eccc('0x24c')][_0x36eccc('0x17c4')]({'id':_0x9338ea['id']})['$promise'][_0x36eccc('0x2788')](function(){const _0x1bfaa3=_0x36eccc;_0x283545()[_0x1bfaa3('0x1a90')](_0x2edc6d[_0x1bfaa3('0xf34')][_0x1bfaa3('0x25df')],{'id':_0x9338ea['id']}),_0x2edc6d[_0x1bfaa3('0xf34')][_0x1bfaa3('0x338')]-=0x1,!_0x2edc6d[_0x1bfaa3('0xf34')]['rows'][_0x1bfaa3('0x2566')]&&_0x2edc6d[_0x1bfaa3('0xc3d')](),_0x16077c[_0x1bfaa3('0x173b')]({'title':_0x283545()[_0x1bfaa3('0x114')](_0x1bfaa3('0x21f'))+_0x1bfaa3('0x20db'),'msg':_0x9338ea[_0x1bfaa3('0x1a8d')]?_0x9338ea[_0x1bfaa3('0x1a8d')]+_0x1bfaa3('0x14d4'):''});})[_0x36eccc('0x1cb5')](function(_0x384df3){const _0x4b8905=_0x36eccc;if(_0x384df3['data']&&_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x25be')]&&_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x25be')][_0x4b8905('0x2566')]){_0x2edc6d[_0x4b8905('0x25be')]=_0x384df3[_0x4b8905('0x11fc')]['errors']||[{'message':_0x384df3[_0x4b8905('0x17df')](),'type':_0x4b8905('0x136c')}];for(let _0x3ec1ea=0x0;_0x3ec1ea<_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x25be')][_0x4b8905('0x2566')];_0x3ec1ea++){_0x16077c['error']({'title':_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x25be')][_0x3ec1ea][_0x4b8905('0x1d7')],'msg':_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x25be')][_0x3ec1ea]['message']});}}else _0x16077c[_0x4b8905('0x5e8')]({'title':_0x384df3[_0x4b8905('0x1b51')]?'API:'+_0x384df3[_0x4b8905('0x1b51')]+'\x20-\x20'+_0x384df3[_0x4b8905('0x22ce')]:_0x4b8905('0x136c'),'msg':_0x384df3['data']?JSON['stringify'](_0x384df3[_0x4b8905('0x11fc')][_0x4b8905('0x15e2')]):_0x384df3[_0x4b8905('0x15e2')]||_0x384df3[_0x4b8905('0x17df')]()});});}function _0x2c11b5(){const _0x1390a6=_0x5773b9,_0x34d797=angular[_0x1390a6('0x2669')](_0x2edc6d[_0x1390a6('0x14d0')]);return _0x2edc6d[_0x1390a6('0x14d0')]=[],_0x34d797;}function _0x49cb91(_0x1d6afa){const _0x136552=_0x5773b9,_0x4a66a5=_0x5352f5[_0x136552('0x112e')]()[_0x136552('0x14e4')](_0x136552('0x507'))[_0x136552('0x93e')](_0x136552('0x1670')+_0x2edc6d['selectedIvrCampaigns'][_0x136552('0x2566')]+_0x136552('0xbd')+'\x20will\x20be\x20deleted.')[_0x136552('0x10bc')]('delete\x20IvrCampaigns')['targetEvent'](_0x1d6afa)['ok']('OK')[_0x136552('0x1801')]('CANCEL');_0x5352f5[_0x136552('0x2fa')](_0x4a66a5)['then'](function(){const _0x2a3ee5=_0x136552;_0x2edc6d[_0x2a3ee5('0x14d0')][_0x2a3ee5('0x1534')](function(_0x3fb4d1){_0x58dabe(_0x3fb4d1);}),_0x2edc6d[_0x2a3ee5('0x14d0')]=[];});}function _0x4053e0(){const _0x442cfb=_0x5773b9;_0x2edc6d[_0x442cfb('0x14d0')]=[];}function _0x595bf2(){const _0x61b1a5=_0x5773b9;_0x2edc6d[_0x61b1a5('0x14d0')]=_0x2edc6d[_0x61b1a5('0xf34')][_0x61b1a5('0x25df')];}}const _0x58d3da=_0x28e344;_0x377e0c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x12c0'),_0x34e79e('0x1895'),'api',_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x377e0c(_0x3d07a1,_0xf2fc97,_0x4ea7dd,_0x429124,_0x2a002,_0x4ae5a0,_0x1fee78,_0x3b4dcc,_0x3e5673,_0x13ca32,_0x298069,_0x5c3a76,_0x3e8715,_0xd3d98f){const _0x3b3055=_0x34e79e,_0x3a8b89=this;_0x3a8b89[_0x3b3055('0x9cb')]=_0x298069[_0x3b3055('0x24cc')](),_0x3a8b89[_0x3b3055('0x25be')]=[],_0x3a8b89[_0x3b3055('0x1af0')]=_0x3e8715,_0x3a8b89['license']=_0x5c3a76,_0x3a8b89[_0x3b3055('0xe28')]=_0xd3d98f,_0x3a8b89['hasModulePermissions']={},_0x3a8b89['passwordPattern']=_0x3a8b89['setting']&&_0x3a8b89[_0x3b3055('0x1af0')][_0x3b3055('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a8b89[_0x3b3055('0x14e4')]='MOTIONDIALER.EDIT_QUEUECAMPAIGN',_0x3a8b89[_0x3b3055('0x1895')]=angular['copy'](_0x3e5673),_0x3a8b89[_0x3b3055('0x12c0')]=_0x3b4dcc,_0x3a8b89[_0x3b3055('0xe7e')]=![];!_0x3a8b89[_0x3b3055('0x1895')]&&(_0x3a8b89[_0x3b3055('0x1895')]={'dialActive':!![],'type':_0x3b3055('0x1'),'dialCheckDuplicateType':_0x3b3055('0xc8f'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x3b3055('0x1de8'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':_0x3b3055('0x1678'),'dialPowerLevel':0x1,'dialPredictiveOptimization':_0x3b3055('0x961'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x3b3055('0x280f'),'dialQueueTimeout':0x3,'strategy':'rrmemory','timeout':0x3,'retry':0x3,'weight':0x1,'dialGlobalMaxRetry':0x4,'dialCongestionMaxRetry':0x3,'dialCongestionRetryFrequency':0x96,'dialBusyMaxRetry':0x3,'dialBusyRetryFrequency':0x96,'dialNoAnswerMaxRetry':0x3,'dialNoAnswerRetryFrequency':0x96,'dialNoSuchNumberMaxRetry':0x3,'dialNoSuchNumberRetryFrequency':0x96,'dialDropMaxRetry':0x3,'dialDropRetryFrequency':0x96,'dialAbandonedMaxRetry':0x3,'dialAbandonedRetryFrequency':0x96,'dialMachineMaxRetry':0x3,'dialMachineRetryFrequency':0x96,'dialAgentRejectMaxRetry':0x3,'dialAgentRejectRetryFrequency':0x96,'dialPredictiveIntervalMaxThreshold':0x14,'dialPredictiveIntervalMinThreshold':0xa},_0x3a8b89[_0x3b3055('0x14e4')]=_0x3b3055('0x1661'),_0x3a8b89[_0x3b3055('0xe7e')]=!![]);_0x3a8b89[_0x3b3055('0x967')]=_0x2e6779,_0x3a8b89[_0x3b3055('0x1a1f')]=_0x58e447,_0x3a8b89[_0x3b3055('0x266f')]=_0x53e482,_0x3a8b89[_0x3b3055('0x2601')]=_0x1e3f6b,_0x3a8b89[_0x3b3055('0xca7')]=_0x4a2bf6,_0x298069[_0x3b3055('0x1516')]('admin')?_0x13ca32[_0x3b3055('0x2549')][_0x3b3055('0x1335')]({'fields':_0x3b3055('0x1338'),'sort':_0x3b3055('0x1a8d')})['$promise'][_0x3b3055('0x2788')](function(_0x5b6cae){const _0x591bab=_0x3b3055;_0x3a8b89[_0x591bab('0x20f2')]=_0x5b6cae['rows']||[];})[_0x3b3055('0x1cb5')](function(_0x254d55){const _0x4935bb=_0x3b3055;_0x1fee78[_0x4935bb('0x5e8')]({'title':_0x254d55[_0x4935bb('0x1b51')]?_0x4935bb('0x15d1')+_0x254d55[_0x4935bb('0x1b51')]+_0x4935bb('0x1b0b')+_0x254d55[_0x4935bb('0x22ce')]:_0x4935bb('0x119d'),'msg':_0x254d55['data']?JSON['stringify'](_0x254d55[_0x4935bb('0x11fc')]):_0x254d55[_0x4935bb('0x17df')]()});}):_0x13ca32[_0x3b3055('0x2549')]['get']({'fields':_0x3b3055('0x1338'),'sort':_0x3b3055('0x1a8d')})[_0x3b3055('0x1714')]['then'](function(_0x3f1d5b){const _0x21f125=_0x3b3055;_0x3a8b89[_0x21f125('0x20f2')]=_0x3f1d5b[_0x21f125('0x25df')]||[];})[_0x3b3055('0x2788')](function(){const _0x151595=_0x3b3055;return _0x13ca32['userProfileSection'][_0x151595('0x1335')]({'userProfileId':_0x3a8b89[_0x151595('0x9cb')]['userProfileId'],'sectionId':0x3f3})[_0x151595('0x1714')];})[_0x3b3055('0x2788')](function(_0x2f0413){const _0x221ef3=_0x3b3055,_0x5d618c=_0x2f0413&&_0x2f0413[_0x221ef3('0x25df')]?_0x2f0413[_0x221ef3('0x25df')][0x0]:null;if(!_0x5d618c){const _0x5e1009=[];let _0x497f3e=null;_0x3a8b89[_0x221ef3('0x1895')]&&(_0x497f3e=_0x283545()['find'](_0x3a8b89[_0x221ef3('0x20f2')],{'id':Number(_0x3a8b89[_0x221ef3('0x1895')][_0x221ef3('0x1854')])}));for(let _0x261028=0x0;_0x261028<_0x3a8b89[_0x221ef3('0x20f2')][_0x221ef3('0x2566')];_0x261028++){_0x497f3e&&_0x3a8b89[_0x221ef3('0x20f2')][_0x261028]['id']===_0x497f3e['id']&&(_0x3a8b89[_0x221ef3('0x20f2')][_0x261028][_0x221ef3('0x3bf')]=![],_0x5e1009[_0x221ef3('0x13e3')](_0x3a8b89[_0x221ef3('0x20f2')][_0x261028]));}_0x3a8b89[_0x221ef3('0x20f2')]=_0x5e1009;}else{if(!_0x5d618c['autoAssociation'])return _0x13ca32[_0x221ef3('0x1050')][_0x221ef3('0x1335')]({'sectionId':_0x5d618c['id']})['$promise'][_0x221ef3('0x2788')](function(_0x12e822){const _0x2f3318=_0x221ef3,_0x2c3d59=_0x283545()[_0x2f3318('0x155d')](_0x12e822[_0x2f3318('0x25df')],function(_0x3ac0b3){const _0x326cc8=_0x2f3318;return _0x283545()[_0x326cc8('0x20e8')](_0x3a8b89[_0x326cc8('0x20f2')],{'id':_0x3ac0b3[_0x326cc8('0x2707')]});});let _0x1072c4=null;_0x3a8b89[_0x2f3318('0x1895')]&&(_0x1072c4=_0x283545()['find'](_0x3a8b89[_0x2f3318('0x20f2')],{'id':Number(_0x3a8b89['queueCampaign']['TrunkId'])}));if(_0x1072c4&&!_0x283545()[_0x2f3318('0xc5d')](_0x2c3d59,['id',_0x1072c4['id']])){const _0x15169a=_0x283545()[_0x2f3318('0x20e8')](_0x3a8b89['trunks'],{'id':_0x1072c4['id']});_0x15169a[_0x2f3318('0x3bf')]=![],_0x2c3d59[_0x2f3318('0x13e3')](_0x15169a);}_0x3a8b89[_0x2f3318('0x20f2')]=_0x2c3d59;});}})[_0x3b3055('0x1cb5')](function(_0x15efa0){const _0x2838ee=_0x3b3055;_0x1fee78[_0x2838ee('0x5e8')]({'title':_0x15efa0['status']?_0x2838ee('0x15d1')+_0x15efa0['status']+_0x2838ee('0x1b0b')+_0x15efa0[_0x2838ee('0x22ce')]:'SYSTEM:GETtrunks','msg':_0x15efa0['data']?JSON[_0x2838ee('0x1be0')](_0x15efa0[_0x2838ee('0x11fc')]):_0x15efa0[_0x2838ee('0x17df')]()});}),_0x298069[_0x3b3055('0x1516')]('admin')?_0x13ca32[_0x3b3055('0x2630')]['get']({'fields':_0x3b3055('0x1338'),'sort':_0x3b3055('0x1a8d'),'IntervalId':'null'})['$promise'][_0x3b3055('0x2788')](function(_0x3f3db0){const _0x4cf3d4=_0x3b3055;_0x3a8b89[_0x4cf3d4('0x2630')]=_0x3f3db0[_0x4cf3d4('0x25df')]||[];})[_0x3b3055('0x1cb5')](function(_0x345a99){const _0x559cfc=_0x3b3055;_0x1fee78[_0x559cfc('0x5e8')]({'title':_0x345a99[_0x559cfc('0x1b51')]?_0x559cfc('0x15d1')+_0x345a99[_0x559cfc('0x1b51')]+'\x20-\x20'+_0x345a99[_0x559cfc('0x22ce')]:'SYSTEM:GET_INTERVAL','msg':_0x345a99['data']?JSON[_0x559cfc('0x1be0')](_0x345a99[_0x559cfc('0x11fc')]):_0x345a99[_0x559cfc('0x17df')]()});}):_0x13ca32[_0x3b3055('0x2630')][_0x3b3055('0x1335')]({'fields':'id,name','sort':_0x3b3055('0x1a8d'),'IntervalId':'null'})[_0x3b3055('0x1714')][_0x3b3055('0x2788')](function(_0x4d0d96){const _0x36c09c=_0x3b3055;_0x3a8b89[_0x36c09c('0x2630')]=_0x4d0d96[_0x36c09c('0x25df')]||[];})['then'](function(){const _0x100c12=_0x3b3055;return _0x13ca32[_0x100c12('0xec9')][_0x100c12('0x1335')]({'userProfileId':_0x3a8b89['currentUser'][_0x100c12('0x237f')],'sectionId':0x3ec})[_0x100c12('0x1714')];})[_0x3b3055('0x2788')](function(_0x56dd60){const _0x3cd783=_0x3b3055,_0x32042e=_0x56dd60&&_0x56dd60[_0x3cd783('0x25df')]?_0x56dd60[_0x3cd783('0x25df')][0x0]:null;if(!_0x32042e){const _0x4723e8=[];let _0x56d399=null;_0x3a8b89[_0x3cd783('0x1895')]&&(_0x56d399=_0x283545()[_0x3cd783('0x20e8')](_0x3a8b89[_0x3cd783('0x2630')],{'id':Number(_0x3a8b89[_0x3cd783('0x1895')]['IntervalId'])}));for(let _0x44d5b9=0x0;_0x44d5b9<_0x3a8b89[_0x3cd783('0x2630')][_0x3cd783('0x2566')];_0x44d5b9++){_0x56d399&&_0x3a8b89['interval'][_0x44d5b9]['id']===_0x56d399['id']&&(_0x3a8b89[_0x3cd783('0x2630')][_0x44d5b9][_0x3cd783('0x3bf')]=![],_0x4723e8[_0x3cd783('0x13e3')](_0x3a8b89['interval'][_0x44d5b9]));}_0x3a8b89['interval']=_0x4723e8;}else{if(!_0x32042e[_0x3cd783('0x1c0a')])return _0x13ca32[_0x3cd783('0x1050')]['get']({'sectionId':_0x32042e['id']})[_0x3cd783('0x1714')][_0x3cd783('0x2788')](function(_0x1c4b25){const _0x18ab36=_0x3cd783,_0x4dffaa=_0x283545()[_0x18ab36('0x155d')](_0x1c4b25[_0x18ab36('0x25df')],function(_0x224057){const _0x567ef1=_0x18ab36;return _0x283545()[_0x567ef1('0x20e8')](_0x3a8b89[_0x567ef1('0x2630')],{'id':_0x224057[_0x567ef1('0x2707')]});});let _0x4b8096=null;_0x3a8b89[_0x18ab36('0x1895')]&&(_0x4b8096=_0x283545()[_0x18ab36('0x20e8')](_0x3a8b89[_0x18ab36('0x2630')],{'id':Number(_0x3a8b89[_0x18ab36('0x1895')]['IntervalId'])}));if(_0x4b8096&&!_0x283545()['some'](_0x4dffaa,['id',_0x4b8096['id']])){const _0x35c4db=_0x283545()[_0x18ab36('0x20e8')](_0x3a8b89[_0x18ab36('0x2630')],{'id':_0x4b8096['id']});_0x35c4db[_0x18ab36('0x3bf')]=![],_0x4dffaa[_0x18ab36('0x13e3')](_0x35c4db);}_0x3a8b89[_0x18ab36('0x2630')]=_0x4dffaa;});}})[_0x3b3055('0x1cb5')](function(_0x528c69){const _0x321e24=_0x3b3055;_0x1fee78['error']({'title':_0x528c69[_0x321e24('0x1b51')]?_0x321e24('0x15d1')+_0x528c69[_0x321e24('0x1b51')]+_0x321e24('0x1b0b')+_0x528c69['statusText']:_0x321e24('0x9b6'),'msg':_0x528c69[_0x321e24('0x11fc')]?JSON[_0x321e24('0x1be0')](_0x528c69[_0x321e24('0x11fc')]):_0x528c69[_0x321e24('0x17df')]()});});function _0x2e6779(){const _0x52ee86=_0x3b3055;_0x3a8b89[_0x52ee86('0x25be')]=[],_0x13ca32[_0x52ee86('0x2043')]['save'](_0x3a8b89[_0x52ee86('0x1895')])['$promise'][_0x52ee86('0x2788')](function(_0x3a530c){const _0x40feb7=_0x52ee86;_0x3a8b89[_0x40feb7('0x12c0')]['unshift'](_0x3a530c[_0x40feb7('0x1cbf')]()),_0x1fee78[_0x40feb7('0x173b')]({'title':_0x40feb7('0x11fa'),'msg':_0x3a8b89[_0x40feb7('0x1895')]['name']?_0x3a8b89[_0x40feb7('0x1895')]['name']+'\x20has\x20been\x20created!':''}),_0x4a2bf6(_0x3a530c);})[_0x52ee86('0x1cb5')](function(_0x39de9b){const _0x8b268c=_0x52ee86;if(_0x39de9b['data']&&_0x39de9b[_0x8b268c('0x11fc')][_0x8b268c('0x25be')]&&_0x39de9b[_0x8b268c('0x11fc')]['errors'][_0x8b268c('0x2566')]){_0x3a8b89[_0x8b268c('0x25be')]=_0x39de9b[_0x8b268c('0x11fc')]['errors']||[{'message':_0x39de9b[_0x8b268c('0x17df')](),'type':_0x8b268c('0x1a42')}];for(let _0x432acb=0x0;_0x432acb<_0x39de9b['data'][_0x8b268c('0x25be')][_0x8b268c('0x2566')];_0x432acb+=0x1){_0x1fee78[_0x8b268c('0x5e8')]({'title':_0x39de9b[_0x8b268c('0x11fc')][_0x8b268c('0x25be')][_0x432acb][_0x8b268c('0x1d7')],'msg':_0x39de9b[_0x8b268c('0x11fc')]['errors'][_0x432acb][_0x8b268c('0x15e2')]});}}else _0x1fee78[_0x8b268c('0x5e8')]({'title':_0x39de9b[_0x8b268c('0x1b51')]?_0x8b268c('0x15d1')+_0x39de9b[_0x8b268c('0x1b51')]+_0x8b268c('0x1b0b')+_0x39de9b[_0x8b268c('0x22ce')]:_0x8b268c('0x1a42'),'msg':_0x39de9b[_0x8b268c('0x11fc')]?JSON['stringify'](_0x39de9b[_0x8b268c('0x11fc')][_0x8b268c('0x15e2')]):_0x39de9b[_0x8b268c('0x17df')]()});});}function _0x58e447(){const _0x372c12=_0x3b3055;_0x3a8b89[_0x372c12('0x25be')]=[],_0x13ca32[_0x372c12('0x2043')][_0x372c12('0x2740')]({'id':_0x3a8b89[_0x372c12('0x1895')]['id']},_0x3a8b89['queueCampaign'])[_0x372c12('0x1714')]['then'](function(_0x5f14d0){const _0x372498=_0x372c12,_0x43be21=_0x283545()['find'](_0x3a8b89[_0x372498('0x12c0')],{'id':_0x5f14d0['id']});_0x43be21&&_0x283545()[_0x372498('0x2503')](_0x43be21,_0x283545()['pick'](_0x5f14d0[_0x372498('0x1cbf')](),_0x283545()[_0x372498('0x2163')](_0x43be21))),_0x1fee78['success']({'title':'QueueCampaign\x20properly\x20saved!','msg':_0x3a8b89[_0x372498('0x1895')][_0x372498('0x1a8d')]?_0x3a8b89[_0x372498('0x1895')]['name']+_0x372498('0x24cf'):''}),_0x4a2bf6(_0x5f14d0);})[_0x372c12('0x1cb5')](function(_0x512bb2){const _0x1ede54=_0x372c12;if(_0x512bb2[_0x1ede54('0x11fc')]&&_0x512bb2[_0x1ede54('0x11fc')]['errors']&&_0x512bb2[_0x1ede54('0x11fc')][_0x1ede54('0x25be')][_0x1ede54('0x2566')]){_0x3a8b89[_0x1ede54('0x25be')]=_0x512bb2[_0x1ede54('0x11fc')][_0x1ede54('0x25be')]||[{'message':_0x512bb2[_0x1ede54('0x17df')](),'type':_0x1ede54('0x17ab')}];for(let _0x4f978c=0x0;_0x4f978c<_0x512bb2['data']['errors'][_0x1ede54('0x2566')];_0x4f978c++){_0x1fee78[_0x1ede54('0x5e8')]({'title':_0x512bb2[_0x1ede54('0x11fc')]['errors'][_0x4f978c][_0x1ede54('0x1d7')],'msg':_0x512bb2[_0x1ede54('0x11fc')]['errors'][_0x4f978c][_0x1ede54('0x15e2')]});}}else _0x1fee78['error']({'title':_0x512bb2['status']?_0x1ede54('0x15d1')+_0x512bb2[_0x1ede54('0x1b51')]+_0x1ede54('0x1b0b')+_0x512bb2[_0x1ede54('0x22ce')]:_0x1ede54('0x17ab'),'msg':_0x512bb2[_0x1ede54('0x11fc')]?JSON[_0x1ede54('0x1be0')](_0x512bb2['data'][_0x1ede54('0x15e2')]):_0x512bb2[_0x1ede54('0x17df')]()});});}function _0x53e482(_0x949e5f){const _0x1a43d3=_0x3b3055;_0x3a8b89['errors']=[];const _0x4c8d7e=_0x429124[_0x1a43d3('0x112e')]()['title'](_0x1a43d3('0x458'))[_0x1a43d3('0x1c98')](_0x1a43d3('0x1aa1'))[_0x1a43d3('0x10bc')](_0x1a43d3('0x1034'))['ok'](_0x1a43d3('0x2786'))['cancel'](_0x1a43d3('0x1481'))['targetEvent'](_0x949e5f);_0x429124[_0x1a43d3('0x2fa')](_0x4c8d7e)[_0x1a43d3('0x2788')](function(){const _0x511c64=_0x1a43d3;_0x13ca32[_0x511c64('0x2043')][_0x511c64('0x17c4')]({'id':_0x3a8b89[_0x511c64('0x1895')]['id']})[_0x511c64('0x1714')][_0x511c64('0x2788')](function(){const _0x2a22f5=_0x511c64;_0x283545()[_0x2a22f5('0x1a90')](_0x3a8b89[_0x2a22f5('0x12c0')],{'id':_0x3a8b89[_0x2a22f5('0x1895')]['id']}),_0x1fee78[_0x2a22f5('0x173b')]({'title':_0x2a22f5('0x915'),'msg':(_0x3a8b89[_0x2a22f5('0x1895')][_0x2a22f5('0x1a8d')]||_0x2a22f5('0x1895'))+_0x2a22f5('0x14d4')}),_0x4a2bf6(_0x3a8b89[_0x2a22f5('0x1895')]);})['catch'](function(_0xb54bf){const _0x39ea8a=_0x511c64;if(_0xb54bf[_0x39ea8a('0x11fc')]&&_0xb54bf[_0x39ea8a('0x11fc')][_0x39ea8a('0x25be')]&&_0xb54bf[_0x39ea8a('0x11fc')]['errors'][_0x39ea8a('0x2566')]){_0x3a8b89[_0x39ea8a('0x25be')]=_0xb54bf['data']['errors']||[{'message':_0xb54bf[_0x39ea8a('0x17df')](),'type':_0x39ea8a('0x27f9')}];for(let _0xfe5cce=0x0;_0xfe5cce<_0xb54bf[_0x39ea8a('0x11fc')][_0x39ea8a('0x25be')][_0x39ea8a('0x2566')];_0xfe5cce++){_0x1fee78[_0x39ea8a('0x5e8')]({'title':_0xb54bf[_0x39ea8a('0x11fc')][_0x39ea8a('0x25be')][_0xfe5cce][_0x39ea8a('0x1d7')],'msg':_0xb54bf[_0x39ea8a('0x11fc')][_0x39ea8a('0x25be')][_0xfe5cce][_0x39ea8a('0x15e2')]});}}else _0x1fee78[_0x39ea8a('0x5e8')]({'title':_0xb54bf[_0x39ea8a('0x1b51')]?'API:'+_0xb54bf[_0x39ea8a('0x1b51')]+_0x39ea8a('0x1b0b')+_0xb54bf['statusText']:'api.voiceQueue.delete','msg':_0xb54bf['data']?JSON[_0x39ea8a('0x1be0')](_0xb54bf[_0x39ea8a('0x11fc')]['message']):_0xb54bf[_0x39ea8a('0x15e2')]||_0xb54bf[_0x39ea8a('0x17df')]()});});},function(){});}function _0x1e3f6b(_0x20df41){return _0x20df41===null?undefined:new Date(_0x20df41);}function _0x4a2bf6(_0x3bfa93){const _0x17cdfd=_0x3b3055;_0x429124[_0x17cdfd('0x19d')](_0x3bfa93);}}const _0x43d086=_0x377e0c;_0x434baf['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api',_0x34e79e('0x1895'),'queueCampaigns',_0x34e79e('0x548'),'$translate',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x434baf(_0xb141ff,_0x43173b,_0x3e9a6b,_0x4997e5,_0x1dd22b,_0x421911,_0x4bbb02,_0x1f5068,_0x288028,_0x509d22){const _0x2c5276=_0x34e79e,_0x560986=this;_0x560986[_0x2c5276('0x9cb')]=_0x288028[_0x2c5276('0x24cc')](),_0x560986['queueCampaign']=_0x1dd22b,_0x560986[_0x2c5276('0xe28')]=_0x509d22,_0x560986[_0x2c5276('0x1ab')]=0x0,_0x560986['realtime']=_0x4bbb02,_0x560986['items']=[],_0x560986[_0x2c5276('0x73d')]=[],_0x560986[_0x2c5276('0x283f')]=[],_0x560986['startingAllowedItems']=[],_0x560986['startingSelectedItems']=[],_0x560986[_0x2c5276('0x2677')]=![],_0x560986[_0x2c5276('0x122e')]=_0x27398c,_0x560986[_0x2c5276('0x1f8d')]=_0x440222,_0x560986[_0x2c5276('0xca7')]=_0x4deeb0,_0x560986['dualMultiselectOptions']={'readOnly':!_0x560986['crudPermissions'][_0x2c5276('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2c5276('0x1a8d'),'line1':_0x2c5276('0x2831'),'line2':[_0x2c5276('0x1a8d'),_0x2c5276('0x2838')],'line3':_0x2c5276('0x1ab'),'labelAll':_0x1f5068[_0x2c5276('0x1b11')](_0x2c5276('0x1bb1')),'labelSelected':_0x1f5068[_0x2c5276('0x1b11')](_0x2c5276('0x2773')),'transferCallback':function(_0x1021d3,_0x2564ec){const _0x4ccf07=_0x2c5276;_0x2564ec?_0x1021d3['forEach'](function(_0x3184e6){const _0x4eea8a=a0_0x14e7;_0x3184e6[_0x4eea8a('0x1ab')]=undefined;}):_0x1021d3[_0x4ccf07('0x1534')](function(_0xb2c98d){const _0x5c683b=_0x4ccf07;_0xb2c98d[_0x5c683b('0x1ab')]=_0x5c683b('0x1b9d')+_0x560986[_0x5c683b('0x1ab')];});const _0x394e9b=_0x283545()[_0x4ccf07('0x265d')](_0x560986[_0x4ccf07('0xd0d')],_0x560986[_0x4ccf07('0x283f')],function(_0x54f098,_0x4fae8a){const _0x297233=_0x4ccf07;return _0x54f098['id']===_0x4fae8a['id']&&_0x54f098['penalty']===_0x4fae8a[_0x297233('0x1ab')];});_0x560986[_0x4ccf07('0x2677')]=_0x283545()[_0x4ccf07('0x213d')](_0x394e9b)?![]:!![];}};function _0x27398c(){const _0x4a0c37=_0x2c5276;return _0x288028[_0x4a0c37('0x1516')](_0x4a0c37('0xe23'))?_0xf0c05f()[_0x4a0c37('0x1cb5')](function(_0x5813eb){const _0x5c617f=_0x4a0c37;_0x3e9a6b[_0x5c617f('0x5e8')]({'title':_0x5813eb[_0x5c617f('0x1b51')]?_0x5c617f('0x15d1')+_0x5813eb[_0x5c617f('0x1b51')]+_0x5c617f('0x1b0b')+_0x5813eb[_0x5c617f('0x22ce')]:_0x5c617f('0xd90'),'msg':_0x5813eb[_0x5c617f('0x1b51')]?JSON['stringify'](_0x5813eb[_0x5c617f('0x11fc')]):_0x5813eb[_0x5c617f('0x17df')]()});}):_0x52c3c6()[_0x4a0c37('0x2788')](function(_0x3536f6){const _0x25769c=_0x4a0c37;return _0x560986[_0x25769c('0xb13')]=_0x3536f6,_0xf0c05f();})[_0x4a0c37('0x1cb5')](function(_0x9e949){const _0x82bb59=_0x4a0c37;_0x3e9a6b[_0x82bb59('0x5e8')]({'title':_0x9e949[_0x82bb59('0x1b51')]?_0x82bb59('0x15d1')+_0x9e949['status']+'\x20-\x20'+_0x9e949[_0x82bb59('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0x9e949[_0x82bb59('0x1b51')]?JSON[_0x82bb59('0x1be0')](_0x9e949[_0x82bb59('0x11fc')]):_0x9e949[_0x82bb59('0x17df')]()});});}function _0x52c3c6(){return _0x43173b(function(_0x28af43,_0x1cd807){const _0x463ee1=a0_0x14e7;_0x4997e5[_0x463ee1('0xec9')]['get']({'userProfileId':_0x560986[_0x463ee1('0x9cb')]['userProfileId'],'name':_0x463ee1('0x1f72')})['$promise'][_0x463ee1('0x2788')](function(_0x5975de){const _0xf6ef23=_0x463ee1,_0x2e1611=_0x5975de&&_0x5975de['rows']?_0x5975de[_0xf6ef23('0x25df')][0x0]:null;_0x28af43(_0x2e1611);})[_0x463ee1('0x1cb5')](function(_0x54c8){_0x1cd807(_0x54c8);});});}function _0xf0c05f(){return _0x43173b(function(_0x52c113,_0x1e87eb){const _0x9a0920=a0_0x14e7;return _0x1e83ca()['then'](function(_0x353d49){const _0xc3c9eb=a0_0x14e7;return _0x560986[_0xc3c9eb('0x117b')]=_0x353d49[_0xc3c9eb('0x25df')]?_0x353d49[_0xc3c9eb('0x25df')]:[],_0x288028['hasRole']('admin')?_0x353d49:_0x560986[_0xc3c9eb('0xb13')]?_0x560986[_0xc3c9eb('0xb13')]['autoAssociation']?_0x353d49:_0x41d79a():null;})[_0x9a0920('0x2788')](function(_0x5f0a8b){const _0x313f43=_0x9a0920,_0x56495b=_0x5f0a8b&&_0x5f0a8b[_0x313f43('0x25df')]?_0x5f0a8b[_0x313f43('0x25df')]:[];return _0x560986['allowedItems']=_0x283545()['map'](_0x56495b,function(_0x597ec0){const _0x29106d=_0x313f43;return _0x283545()[_0x29106d('0x20e8')](_0x560986['items'],{'id':_0x288028[_0x29106d('0x1516')]('admin')||_0x560986[_0x29106d('0xb13')][_0x29106d('0x1c0a')]?_0x597ec0['id']:_0x597ec0[_0x29106d('0x2707')]});}),_0x560986[_0x313f43('0x12d9')]=angular[_0x313f43('0x2669')](_0x560986[_0x313f43('0x73d')]),_0x560986[_0x313f43('0x117b')][_0x313f43('0x1534')](function(_0x35e707){const _0x4110a1=_0x313f43,_0x4c08b4=_0x283545()[_0x4110a1('0x20e8')](_0x560986[_0x4110a1('0x73d')],{'id':_0x35e707['id']});_0x288028[_0x4110a1('0x1516')](_0x4110a1('0xe23'))?_0x35e707[_0x4110a1('0x68d')]=!![]:_0x35e707[_0x4110a1('0x68d')]=typeof _0x4c08b4!==_0x4110a1('0xedb')?!![]:![];}),_0x34ce86();})[_0x9a0920('0x2788')](function(_0x13ccd8){const _0x316a5c=_0x9a0920,_0x725c0e=_0x13ccd8&&_0x13ccd8['rows']?_0x13ccd8[_0x316a5c('0x25df')]:[];_0x560986[_0x316a5c('0x283f')]=_0x283545()[_0x316a5c('0x155d')](_0x725c0e,function(_0x40b889){const _0x25ca44=_0x316a5c,_0x26968b=_0x283545()[_0x25ca44('0x20e8')](_0x560986[_0x25ca44('0x117b')],{'id':_0x40b889['id']});return _0x26968b[_0x25ca44('0x1ab')]=_0x40b889[_0x25ca44('0x2fe')]?_0x25ca44('0x1b9d')+_0x40b889[_0x25ca44('0x2fe')][_0x25ca44('0x1ab')]:'',_0x26968b[_0x25ca44('0x2838')]=typeof _0x40b889[_0x25ca44('0x2838')]!=='undefined'?'<'+_0x40b889[_0x25ca44('0x2838')]+'>':'',_0x26968b;}),_0x560986[_0x316a5c('0xd0d')]=angular[_0x316a5c('0x2669')](_0x560986[_0x316a5c('0x283f')]),_0x560986[_0x316a5c('0x121')]['selectedItems']=_0x560986[_0x316a5c('0x283f')],_0x560986['dualMultiselectOptions'][_0x316a5c('0x117b')]=_0x283545()[_0x316a5c('0x432')](_0x560986[_0x316a5c('0x73d')],_0x560986['dualMultiselectOptions'][_0x316a5c('0x283f')],'id'),_0x52c113();})['catch'](function(_0x2d3f3c){_0x1e87eb(_0x2d3f3c);});});}function _0x41d79a(){return _0x43173b(function(_0x506ec1,_0x1856af){const _0x434552=a0_0x14e7;return _0x4997e5[_0x434552('0x1050')][_0x434552('0x1335')]({'sectionId':_0x560986[_0x434552('0xb13')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2d137e){_0x506ec1(_0x2d137e);})[_0x434552('0x1cb5')](function(_0x29b5cd){_0x1856af(_0x29b5cd);});});}function _0x34ce86(){return _0x43173b(function(_0x122c80,_0x39b501){const _0x4575ca=a0_0x14e7;return _0x4997e5['voiceQueue'][_0x4575ca('0x19db')]({'id':_0x560986[_0x4575ca('0x1895')]['id'],'fields':_0x4575ca('0x1d32'),'nolimit':!![],'role':_0x4575ca('0x188b')})[_0x4575ca('0x1714')][_0x4575ca('0x2788')](function(_0xa9eabf){_0x122c80(_0xa9eabf);})[_0x4575ca('0x1cb5')](function(_0x2e21fe){_0x39b501(_0x2e21fe);});});}function _0x1e83ca(){return _0x43173b(function(_0xb409d9,_0x34ba17){const _0x149b28=a0_0x14e7;return _0x4997e5[_0x149b28('0x1e6a')]['get']({'fields':_0x149b28('0x1d32'),'nolimit':!![],'role':_0x149b28('0x188b')})[_0x149b28('0x1714')][_0x149b28('0x2788')](function(_0x5bf2bd){_0xb409d9(_0x5bf2bd);})['catch'](function(_0x10d7a2){_0x34ba17(_0x10d7a2);});});}function _0x17197e(_0x916703){return _0x43173b(function(_0xc956ca,_0x447f12){const _0x590a24=a0_0x14e7;if(_0x283545()[_0x590a24('0x213d')](_0x916703))_0xc956ca();else{const _0x110bcb=[],_0x2857a2=_0x283545()['groupBy'](_0x916703,'penalty');for(let _0x15b1c9=0x0;_0x15b1c9'+_0x1ec375[_0x57204f('0x201e')][_0x57204f('0x2566')]+_0x57204f('0xbd')+_0x57204f('0x27c7'))[_0x57204f('0x10bc')](_0x57204f('0x1ce3'))[_0x57204f('0x24d0')](_0x3271fd)['ok']('OK')['cancel'](_0x57204f('0x1d8d'));_0x42c8cf[_0x57204f('0x2fa')](_0x264e03)[_0x57204f('0x2788')](function(){const _0x5b5674=_0x57204f;_0x1ec375['selectedQueueCampaignHopperBlacks'][_0x5b5674('0x1534')](function(_0x471e5a){_0x297393(_0x471e5a);}),_0x1ec375[_0x5b5674('0x201e')]=[];});}let _0x2e3e8f=!![],_0x3a6680=0x1;_0x40a8e2['$watch'](_0x3d523c('0x2571'),function(_0x32ff47,_0xbb4daf){const _0x2f0ad3=_0x3d523c;_0x2e3e8f?_0x526cf6(function(){_0x2e3e8f=![];}):(!_0xbb4daf&&(_0x3a6680=_0x1ec375['query'][_0x2f0ad3('0x23f5')]),_0x32ff47!==_0xbb4daf&&(_0x1ec375[_0x2f0ad3('0x135a')]['page']=0x1),!_0x32ff47&&(_0x1ec375[_0x2f0ad3('0x135a')][_0x2f0ad3('0x23f5')]=_0x3a6680),_0x12c791());});}const _0x4fe3f0=_0xae7909;_0x310443[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),'$state','$q','$translate','$timeout',_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),'Auth'];function _0x310443(_0xf2f7d3,_0x40120a,_0x233778,_0x3ae3c4,_0xb45be1,_0x278726,_0x47336e,_0x2b1310,_0x3a5f93,_0x30e102,_0x5223fb){const _0x22c7de=_0x34e79e,_0x14dc14=this;_0x14dc14[_0x22c7de('0x9cb')]=_0x5223fb[_0x22c7de('0x24cc')](),_0x14dc14[_0x22c7de('0x14b')]={},_0x14dc14[_0x22c7de('0x1895')]={},_0x14dc14[_0x22c7de('0x18d6')]={'count':0x0,'rows':[]},_0x14dc14['selectedQueueCampaignHopperFinals']=[],_0x14dc14[_0x22c7de('0xe28')],_0x14dc14[_0x22c7de('0x135a')]={'fields':_0x22c7de('0x46f'),'sort':_0x22c7de('0x2658'),'limit':0xa,'page':0x1},_0x14dc14[_0x22c7de('0x24eb')]=_0x522375,_0x14dc14[_0x22c7de('0x16a')]=_0x5d3ce0,_0x14dc14['success']=_0x4f2415,_0x14dc14['getQueueCampaignHopperFinals']=_0x290db0,_0x14dc14[_0x22c7de('0x10f0')]=_0x2f8d42,_0x14dc14['deleteQueueCampaignHopperFinal']=_0x122f81,_0x14dc14[_0x22c7de('0x26a6')]=_0xaa56dc,_0x14dc14['moveQueueCampaignHopperFinal']=_0x405b97,_0x14dc14['moveContactsQueueCampaignHopperFinal']=_0x5fb822,_0x14dc14[_0x22c7de('0x33')]=_0x35fa21,_0x14dc14['moveConfirm']=_0x39998d,_0x14dc14[_0x22c7de('0x122b')]=_0x5b419a;function _0x522375(_0x23c91e,_0x3b524d){const _0x27f4f3=_0x22c7de;_0x14dc14[_0x27f4f3('0x1895')]=_0x23c91e,_0x14dc14[_0x27f4f3('0xe28')]=typeof _0x3b524d!==_0x27f4f3('0xedb')?_0x3b524d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x14dc14[_0x27f4f3('0x135a')][_0x27f4f3('0xe6b')]=_0x14dc14[_0x27f4f3('0x1895')]['id'],_0x14dc14[_0x27f4f3('0x135a')]['id']=_0x14dc14[_0x27f4f3('0x1895')]['id'],_0x290db0();}function _0x5d3ce0(_0x439b4e,_0x5be2ef){const _0x31c853=_0x22c7de,_0x35f710=_0x47336e[_0x31c853('0x112e')]()['title'](_0x31c853('0x17a7'))[_0x31c853('0x93e')](_0x31c853('0x1670')+(_0x439b4e[_0x31c853('0x1a8d')]||_0x439b4e['id']&&_0x283545()[_0x31c853('0x2265')](_0x31c853('0x4ff'))+_0x439b4e['id']||_0x31c853('0x2530'))+_0x31c853('0x229e')+_0x31c853('0x27c7'))[_0x31c853('0x10bc')](_0x31c853('0x1fc2'))[_0x31c853('0x24d0')](_0x5be2ef)['ok']('OK')[_0x31c853('0x1801')](_0x31c853('0x1d8d'));_0x47336e[_0x31c853('0x2fa')](_0x35f710)[_0x31c853('0x2788')](function(){_0x122f81(_0x439b4e);},function(){const _0x6e1c7c=_0x31c853;console['log'](_0x6e1c7c('0x1d8d'));});}function _0x4f2415(_0x430f8f){const _0x1354f2=_0x22c7de;_0x14dc14[_0x1354f2('0x18d6')]=_0x430f8f||{'count':0x0,'rows':[]};}function _0x290db0(){const _0x264233=_0x22c7de;_0x14dc14[_0x264233('0x135a')][_0x264233('0x19e')]=(_0x14dc14[_0x264233('0x135a')][_0x264233('0x23f5')]-0x1)*_0x14dc14['query'][_0x264233('0x68e')],_0x14dc14['promise']=_0x30e102[_0x264233('0x2043')][_0x264233('0x895')](_0x14dc14['query'],_0x4f2415)[_0x264233('0x1714')];}function _0x122f81(_0x28d6ff){const _0x65090c=_0x22c7de;_0x30e102[_0x65090c('0x2530')][_0x65090c('0x17c4')]({'id':_0x28d6ff['id']})[_0x65090c('0x1714')][_0x65090c('0x2788')](function(){const _0x4ef6d6=_0x65090c;_0x283545()[_0x4ef6d6('0x1a90')](_0x14dc14['queueCampaignHopperFinals'][_0x4ef6d6('0x25df')],{'id':_0x28d6ff['id']}),_0x14dc14['queueCampaignHopperFinals'][_0x4ef6d6('0x338')]-=0x1,!_0x14dc14[_0x4ef6d6('0x18d6')][_0x4ef6d6('0x25df')][_0x4ef6d6('0x2566')]&&_0x290db0(),_0x3a5f93[_0x4ef6d6('0x173b')]({'title':_0x4ef6d6('0xeb8'),'msg':_0x28d6ff[_0x4ef6d6('0x1a8d')]?_0x28d6ff['name']+'\x20has\x20been\x20deleted!':''});})[_0x65090c('0x1cb5')](function(_0xa26991){const _0x53ece3=_0x65090c;if(_0xa26991[_0x53ece3('0x11fc')]&&_0xa26991['data']['errors']&&_0xa26991['data'][_0x53ece3('0x25be')][_0x53ece3('0x2566')]){_0x14dc14['errors']=_0xa26991[_0x53ece3('0x11fc')][_0x53ece3('0x25be')]||[{'message':_0xa26991[_0x53ece3('0x17df')](),'type':_0x53ece3('0x271e')}];for(let _0x6189fa=0x0;_0x6189fa<_0xa26991[_0x53ece3('0x11fc')]['errors']['length'];_0x6189fa++){_0x3a5f93[_0x53ece3('0x5e8')]({'title':_0xa26991[_0x53ece3('0x11fc')]['errors'][_0x6189fa][_0x53ece3('0x1d7')],'msg':_0xa26991[_0x53ece3('0x11fc')][_0x53ece3('0x25be')][_0x6189fa][_0x53ece3('0x15e2')]});}}else _0x3a5f93[_0x53ece3('0x5e8')]({'title':_0xa26991[_0x53ece3('0x1b51')]?_0x53ece3('0x15d1')+_0xa26991[_0x53ece3('0x1b51')]+_0x53ece3('0x1b0b')+_0xa26991[_0x53ece3('0x22ce')]:_0x53ece3('0x271e'),'msg':_0xa26991[_0x53ece3('0x11fc')]?JSON[_0x53ece3('0x1be0')](_0xa26991[_0x53ece3('0x11fc')][_0x53ece3('0x15e2')]):_0xa26991[_0x53ece3('0x15e2')]||_0xa26991['toString']()});});}function _0x2f8d42(){const _0x47637e=_0x22c7de,_0xd99ba5=angular[_0x47637e('0x2669')](_0x14dc14[_0x47637e('0xebf')]);return _0x14dc14[_0x47637e('0xebf')]=[],_0xd99ba5;}function _0xaa56dc(_0xdc72e3){const _0x24e552=_0x22c7de,_0x2b6fab=_0x47336e[_0x24e552('0x112e')]()[_0x24e552('0x14e4')](_0x24e552('0x1efe'))['htmlContent'](_0x24e552('0x1670')+_0x14dc14['selectedQueueCampaignHopperFinals'][_0x24e552('0x2566')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x24e552('0x10bc')](_0x24e552('0xc09'))[_0x24e552('0x24d0')](_0xdc72e3)['ok']('OK')[_0x24e552('0x1801')](_0x24e552('0x1d8d'));_0x47336e[_0x24e552('0x2fa')](_0x2b6fab)[_0x24e552('0x2788')](function(){const _0x5e7423=_0x24e552;_0x14dc14[_0x5e7423('0xebf')][_0x5e7423('0x1534')](function(_0x93850f){_0x122f81(_0x93850f);}),_0x14dc14['selectedQueueCampaignHopperFinals']=[];});}function _0x5fb822(_0x4cc00f){const _0x5f1571=_0x22c7de;_0x30e102[_0x5f1571('0x177a')][_0x5f1571('0x58f')]({'id':_0x14dc14[_0x5f1571('0x135a')]['id'],'state':_0x4cc00f})[_0x5f1571('0x1714')][_0x5f1571('0x2788')](function(_0x49f07b){const _0x249769=_0x5f1571;_0x283545()['isNil'](_0x49f07b)&&_0x283545()['isNil'](_0x49f07b[0x0])?_0x3a5f93[_0x249769('0x2276')]({'title':'Restored\x20Contacts','msg':'0'}):_0x3a5f93['info']({'title':_0x249769('0x1ac9'),'msg':JSON[_0x249769('0x1be0')](_0x49f07b[0x0]['affectedRows'])});})[_0x5f1571('0x1cb5')](function(_0x2ae260){const _0x244b27=_0x5f1571;_0x3a5f93['error']({'title':_0x2ae260[_0x244b27('0x1b51')]?'API:'+_0x2ae260[_0x244b27('0x1b51')]+'\x20-\x20'+_0x2ae260[_0x244b27('0x22ce')]:_0x244b27('0x271e'),'msg':_0x2ae260['data']?JSON[_0x244b27('0x1be0')](_0x2ae260[_0x244b27('0x11fc')][_0x244b27('0x15e2')]):_0x2ae260[_0x244b27('0x15e2')]||_0x2ae260[_0x244b27('0x17df')]()});});}function _0x35fa21(_0x1fb618){const _0x33b48b=_0x22c7de;_0x30e102[_0x33b48b('0x177a')][_0x33b48b('0x33')]({'id':_0x1fb618})[_0x33b48b('0x1714')][_0x33b48b('0x2788')](function(_0x3e2530){const _0x14be9b=_0x33b48b;_0x283545()[_0x14be9b('0x2503')](_0x14dc14[_0x14be9b('0x14b')],_0x3e2530[0x0]);})[_0x33b48b('0x1cb5')](function(_0x4d3e92){const _0x4d7069=_0x33b48b;_0x3a5f93['error']({'title':_0x4d3e92['status']?_0x4d7069('0x15d1')+_0x4d3e92['status']+_0x4d7069('0x1b0b')+_0x4d3e92[_0x4d7069('0x22ce')]:_0x4d7069('0x271e'),'msg':_0x4d3e92['data']?JSON[_0x4d7069('0x1be0')](_0x4d3e92[_0x4d7069('0x11fc')]['message']):_0x4d3e92[_0x4d7069('0x15e2')]||_0x4d3e92[_0x4d7069('0x17df')]()});});}function _0x5b419a(_0x5c17d6){const _0x9f9ba1=_0x22c7de,_0x40805c=_0x47336e[_0x9f9ba1('0x112e')]()['title'](_0x9f9ba1('0x2ad'))[_0x9f9ba1('0x93e')](_0x9f9ba1('0x641')+'\x20will\x20be\x20restored.')[_0x9f9ba1('0x10bc')](_0x9f9ba1('0x9b5'))[_0x9f9ba1('0x24d0')](_0x5c17d6)['ok']('OK')['cancel'](_0x9f9ba1('0x1d8d'));_0x47336e['show'](_0x40805c)[_0x9f9ba1('0x2788')](function(){const _0x892ef5=_0x9f9ba1;_0x14dc14[_0x892ef5('0xebf')][_0x892ef5('0x1534')](function(_0x168829){_0x405b97(_0x168829);}),_0x14dc14[_0x892ef5('0xebf')]=[];});}function _0x39998d(_0x4d2db5,_0x38dfd7){const _0x32249e=_0x22c7de,_0x38cf9d=_0x47336e[_0x32249e('0x112e')]()[_0x32249e('0x14e4')](_0x32249e('0xb8'))[_0x32249e('0x93e')](_0x32249e('0x1670')+_0x32249e('0x1c64')+_0x32249e('0x229e')+'\x20will\x20be\x20restored.')[_0x32249e('0x10bc')](_0x32249e('0x1354'))['targetEvent'](_0x38dfd7)['ok']('OK')[_0x32249e('0x1801')](_0x32249e('0x1d8d'));_0x47336e[_0x32249e('0x2fa')](_0x38cf9d)[_0x32249e('0x2788')](function(){_0x405b97(_0x4d2db5);},function(){const _0x514b8b=_0x32249e;console[_0x514b8b('0x10df')](_0x514b8b('0x1d8d'));});}function _0x46308d(_0x157131){const _0xd1e230=_0x22c7de,_0x459c56={};return _0x459c56['phone']=_0x157131['calleridnum'],_0x459c56[_0xd1e230('0x1343')]=_0x59f37a()()['format'](_0xd1e230('0xe8e')),_0x459c56['countbusyretry']=0x0,_0x459c56[_0xd1e230('0x221b')]=0x0,_0x459c56['countnoanswerretry']=0x0,_0x459c56[_0xd1e230('0x2447')]=0x0,_0x459c56[_0xd1e230('0x85a')]=_0x157131['ContactId'],_0x459c56[_0xd1e230('0x354')]=_0x157131[_0xd1e230('0x354')],_0x459c56[_0xd1e230('0x3bb')]=_0x157131[_0xd1e230('0x41e')]?null:_0x157131[_0xd1e230('0x3bb')],_0x459c56[_0xd1e230('0xe6b')]=_0x157131[_0xd1e230('0xe6b')],_0x459c56[_0xd1e230('0x1f8')]=_0x157131[_0xd1e230('0x1f8')],_0x459c56[_0xd1e230('0x155b')]=_0x157131[_0xd1e230('0x13a1')]?0x3:0x2,_0x459c56[_0xd1e230('0x13a1')]=_0x157131['recallme']?!![]:![],_0x459c56;}function _0x5b5157(_0x384456){const _0x529ffa=_0x22c7de,_0x372ad7={};return _0x372ad7['calleridnum']=_0x384456[_0x529ffa('0x27e7')],_0x372ad7[_0x529ffa('0x27cd')]=_0x384456['calleridname'],_0x372ad7[_0x529ffa('0x1343')]=_0x59f37a()()[_0x529ffa('0x22b4')]('YYYY-MM-DD\x20HH:mm:ss'),_0x372ad7[_0x529ffa('0x89f')]=_0x384456[_0x529ffa('0x89f')],_0x372ad7[_0x529ffa('0x221b')]=_0x384456[_0x529ffa('0x221b')],_0x372ad7[_0x529ffa('0x2400')]=_0x384456[_0x529ffa('0x2400')],_0x372ad7[_0x529ffa('0x2447')]=_0x384456[_0x529ffa('0x2447')],_0x372ad7[_0x529ffa('0x85a')]=_0x384456[_0x529ffa('0x85a')],_0x372ad7[_0x529ffa('0x354')]=_0x384456[_0x529ffa('0x354')],_0x372ad7['UserId']=_0x5223fb[_0x529ffa('0x24cc')]()['id'],_0x372ad7[_0x529ffa('0xe6b')]=_0x384456[_0x529ffa('0xe6b')],_0x372ad7['CampaignId']=_0x384456['CampaignId'],_0x372ad7['editedat']=_0x59f37a()()[_0x529ffa('0x22b4')](_0x529ffa('0xe8e')),_0x372ad7[_0x529ffa('0x19fa')]=!![],_0x372ad7[_0x529ffa('0x249b')]=0x19,_0x372ad7[_0x529ffa('0x1f96')]=_0x529ffa('0x8da'),_0x372ad7[_0x529ffa('0x24c')]=_0x384456[_0x529ffa('0x24c')],_0x372ad7[_0x529ffa('0x88f')]=_0x384456[_0x529ffa('0xe6b')]?_0x529ffa('0x1ab4'):_0x529ffa('0x1e64'),_0x372ad7;}function _0x405b97(_0x26d743){const _0x38533f=_0x22c7de;_0x30e102['cmHopperFinal'][_0x38533f('0xae0')](_0x26d743)[_0x38533f('0x1714')][_0x38533f('0x2788')](function(_0x2789b2){const _0x1715f9=_0x38533f;_0x3a5f93[_0x1715f9('0x2276')]({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':_0x1715f9('0x19ed')+_0x2789b2[_0x1715f9('0x85a')]});})['catch'](function(_0x1e469d){const _0x3ebee1=_0x38533f;_0x1e469d[_0x3ebee1('0x11fc')]===_0x3ebee1('0xe6f')?_0x30e102[_0x3ebee1('0x1de1')]['save'](_0x46308d(_0x26d743))[_0x3ebee1('0x1714')]['then'](function(_0x472b3d){const _0x3da8be=_0x3ebee1;_0x3a5f93[_0x3da8be('0x2276')]({'title':'Restored\x20Contact','msg':_0x3da8be('0x19ed')+_0x472b3d[_0x3da8be('0x85a')]}),_0x472b3d[_0x3da8be('0x85a')]&&_0x30e102[_0x3da8be('0x9b')][_0x3da8be('0xbd0')](_0x5b5157(_0x26d743));})['catch'](function(_0x84ddb5){const _0x4dde32=_0x3ebee1;!_0x283545()[_0x4dde32('0x1015')](_0x84ddb5[_0x4dde32('0x11fc')])&&_0x84ddb5[_0x4dde32('0x11fc')][_0x4dde32('0x15e2')]===_0x4dde32('0x572')?_0x3a5f93['info']({'title':_0x4dde32('0x7bc'),'msg':_0x4dde32('0x19ed')+_0x26d743[_0x4dde32('0x85a')]}):_0x3a5f93[_0x4dde32('0x5e8')]({'title':_0x84ddb5[_0x4dde32('0x1b51')]?'API:'+_0x84ddb5[_0x4dde32('0x1b51')]+'\x20-\x20'+_0x84ddb5[_0x4dde32('0x22ce')]:_0x4dde32('0x271e'),'msg':_0x84ddb5[_0x4dde32('0x11fc')]?JSON[_0x4dde32('0x1be0')](_0x84ddb5['data'][_0x4dde32('0x15e2')]):_0x84ddb5[_0x4dde32('0x15e2')]||_0x84ddb5[_0x4dde32('0x17df')]()});}):_0x3a5f93[_0x3ebee1('0x5e8')]({'title':_0x1e469d[_0x3ebee1('0x1b51')]?'API:'+_0x1e469d[_0x3ebee1('0x1b51')]+_0x3ebee1('0x1b0b')+_0x1e469d[_0x3ebee1('0x22ce')]:_0x3ebee1('0x271e'),'msg':_0x1e469d['data']?JSON[_0x3ebee1('0x1be0')](_0x1e469d[_0x3ebee1('0x11fc')][_0x3ebee1('0x15e2')]):_0x1e469d[_0x3ebee1('0x15e2')]||_0x1e469d[_0x3ebee1('0x17df')]()});});}let _0x45740a=!![],_0x122513=0x1;_0x40120a[_0x22c7de('0x1662')]('vm_dc.query.filter',function(_0x502d3e,_0x5cc6f9){const _0x222dd7=_0x22c7de;_0x45740a?_0x278726(function(){_0x45740a=![];}):(!_0x5cc6f9&&(_0x122513=_0x14dc14[_0x222dd7('0x135a')][_0x222dd7('0x23f5')]),_0x502d3e!==_0x5cc6f9&&(_0x14dc14[_0x222dd7('0x135a')][_0x222dd7('0x23f5')]=0x1),!_0x502d3e&&(_0x14dc14[_0x222dd7('0x135a')]['page']=_0x122513),_0x290db0());});}const _0x4c06f7=_0x310443;_0x447ccd[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),'$state','$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x447ccd(_0x32c002,_0xa35b75,_0x49756a,_0x5740fe,_0x579fb1,_0x103254,_0x112947,_0xfe3067,_0x223e3e,_0x3c1850,_0x5932c8){const _0x47f42a=_0x34e79e,_0x5d0af2=this;_0x5d0af2['currentUser']=_0x5932c8[_0x47f42a('0x24cc')](),_0x5d0af2[_0x47f42a('0x1895')]={},_0x5d0af2[_0x47f42a('0x249a')]={'count':0x0,'rows':[]},_0x5d0af2[_0x47f42a('0x721')]=[],_0x5d0af2[_0x47f42a('0xe28')],_0x5d0af2[_0x47f42a('0x135a')]={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0x47f42a('0x2658'),'limit':0xa,'page':0x1},_0x5d0af2['init']=_0x235584,_0x5d0af2['deleteConfirm']=_0x3d98f2,_0x5d0af2['success']=_0x64f52e,_0x5d0af2[_0x47f42a('0xfd8')]=_0x367376,_0x5d0af2['exportSelectedQueueCampaignHopperHistories']=_0x3c176b,_0x5d0af2[_0x47f42a('0x201a')]=_0x25724b,_0x5d0af2[_0x47f42a('0x235d')]=_0x413d12;function _0x235584(_0x4b60a1,_0x228c86){const _0x37fd39=_0x47f42a;_0x5d0af2['queueCampaign']=_0x4b60a1,_0x5d0af2['crudPermissions']=typeof _0x228c86!=='undefined'?_0x228c86:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5d0af2[_0x37fd39('0x135a')][_0x37fd39('0xe6b')]=_0x5d0af2['queueCampaign']['id'],_0x5d0af2[_0x37fd39('0x135a')]['id']=_0x5d0af2[_0x37fd39('0x1895')]['id'],_0x367376();}function _0x3d98f2(_0x5a5208,_0x1fe700){const _0x29cd3a=_0x47f42a,_0x2d51e7=_0x112947[_0x29cd3a('0x112e')]()[_0x29cd3a('0x14e4')](_0x29cd3a('0x868'))[_0x29cd3a('0x93e')](_0x29cd3a('0x1670')+(_0x5a5208[_0x29cd3a('0x1a8d')]||_0x5a5208['id']&&_0x283545()[_0x29cd3a('0x2265')](_0x29cd3a('0x2088'))+_0x5a5208['id']||'hopperHistory')+''+'\x20will\x20be\x20deleted.')[_0x29cd3a('0x10bc')](_0x29cd3a('0x1ca3'))[_0x29cd3a('0x24d0')](_0x1fe700)['ok']('OK')['cancel'](_0x29cd3a('0x1d8d'));_0x112947['show'](_0x2d51e7)[_0x29cd3a('0x2788')](function(){_0x25724b(_0x5a5208);},function(){const _0x4e6471=_0x29cd3a;console[_0x4e6471('0x10df')](_0x4e6471('0x1d8d'));});}function _0x64f52e(_0x1d1035){const _0x2c312c=_0x47f42a;_0x5d0af2[_0x2c312c('0x249a')]=_0x1d1035||{'count':0x0,'rows':[]};}function _0x367376(){const _0xb649b6=_0x47f42a;_0x5d0af2[_0xb649b6('0x135a')][_0xb649b6('0x19e')]=(_0x5d0af2[_0xb649b6('0x135a')][_0xb649b6('0x23f5')]-0x1)*_0x5d0af2[_0xb649b6('0x135a')][_0xb649b6('0x68e')],_0x5d0af2[_0xb649b6('0x1808')]=_0x3c1850[_0xb649b6('0x2043')][_0xb649b6('0x2557')](_0x5d0af2['query'],_0x64f52e)[_0xb649b6('0x1714')];}function _0x25724b(_0x364ae3){const _0x2f79ff=_0x47f42a;_0x3c1850[_0x2f79ff('0x1c9')][_0x2f79ff('0x17c4')]({'id':_0x364ae3['id']})[_0x2f79ff('0x1714')][_0x2f79ff('0x2788')](function(){const _0x39b960=_0x2f79ff;_0x283545()[_0x39b960('0x1a90')](_0x5d0af2[_0x39b960('0x249a')]['rows'],{'id':_0x364ae3['id']}),_0x5d0af2['queueCampaignHopperHistories'][_0x39b960('0x338')]-=0x1,!_0x5d0af2[_0x39b960('0x249a')][_0x39b960('0x25df')]['length']&&_0x367376(),_0x223e3e[_0x39b960('0x173b')]({'title':_0x39b960('0x17b5'),'msg':_0x364ae3[_0x39b960('0x1a8d')]?_0x364ae3['name']+_0x39b960('0x14d4'):''});})[_0x2f79ff('0x1cb5')](function(_0x5506ca){const _0x35fa38=_0x2f79ff;if(_0x5506ca[_0x35fa38('0x11fc')]&&_0x5506ca[_0x35fa38('0x11fc')]['errors']&&_0x5506ca[_0x35fa38('0x11fc')][_0x35fa38('0x25be')][_0x35fa38('0x2566')]){_0x5d0af2[_0x35fa38('0x25be')]=_0x5506ca['data']['errors']||[{'message':_0x5506ca[_0x35fa38('0x17df')](),'type':'SYSTEM:GETvoiceQueue'}];for(let _0x17546e=0x0;_0x17546e<_0x5506ca[_0x35fa38('0x11fc')][_0x35fa38('0x25be')][_0x35fa38('0x2566')];_0x17546e++){_0x223e3e[_0x35fa38('0x5e8')]({'title':_0x5506ca[_0x35fa38('0x11fc')][_0x35fa38('0x25be')][_0x17546e][_0x35fa38('0x1d7')],'msg':_0x5506ca[_0x35fa38('0x11fc')][_0x35fa38('0x25be')][_0x17546e][_0x35fa38('0x15e2')]});}}else _0x223e3e[_0x35fa38('0x5e8')]({'title':_0x5506ca[_0x35fa38('0x1b51')]?'API:'+_0x5506ca[_0x35fa38('0x1b51')]+_0x35fa38('0x1b0b')+_0x5506ca['statusText']:_0x35fa38('0x271e'),'msg':_0x5506ca[_0x35fa38('0x11fc')]?JSON[_0x35fa38('0x1be0')](_0x5506ca[_0x35fa38('0x11fc')][_0x35fa38('0x15e2')]):_0x5506ca[_0x35fa38('0x15e2')]||_0x5506ca['toString']()});});}function _0x3c176b(){const _0x47d850=_0x47f42a,_0x456113=angular[_0x47d850('0x2669')](_0x5d0af2[_0x47d850('0x721')]);return _0x5d0af2[_0x47d850('0x721')]=[],_0x456113;}function _0x413d12(_0x6f88bf){const _0x17a8d8=_0x47f42a,_0x3bb63f=_0x112947[_0x17a8d8('0x112e')]()[_0x17a8d8('0x14e4')](_0x17a8d8('0x2808'))[_0x17a8d8('0x93e')](_0x17a8d8('0x1670')+_0x5d0af2[_0x17a8d8('0x721')][_0x17a8d8('0x2566')]+_0x17a8d8('0xbd')+_0x17a8d8('0x27c7'))[_0x17a8d8('0x10bc')](_0x17a8d8('0x250e'))[_0x17a8d8('0x24d0')](_0x6f88bf)['ok']('OK')[_0x17a8d8('0x1801')](_0x17a8d8('0x1d8d'));_0x112947[_0x17a8d8('0x2fa')](_0x3bb63f)['then'](function(){const _0x54781f=_0x17a8d8;_0x5d0af2[_0x54781f('0x721')][_0x54781f('0x1534')](function(_0x79c9e2){_0x25724b(_0x79c9e2);}),_0x5d0af2[_0x54781f('0x721')]=[];});}let _0x160d45=!![],_0x5f3b8d=0x1;_0xa35b75['$watch']('vm_dc.query.filter',function(_0x46a4c4,_0x30f5d2){const _0x5c1a86=_0x47f42a;_0x160d45?_0x103254(function(){_0x160d45=![];}):(!_0x30f5d2&&(_0x5f3b8d=_0x5d0af2['query'][_0x5c1a86('0x23f5')]),_0x46a4c4!==_0x30f5d2&&(_0x5d0af2[_0x5c1a86('0x135a')]['page']=0x1),!_0x46a4c4&&(_0x5d0af2[_0x5c1a86('0x135a')][_0x5c1a86('0x23f5')]=_0x5f3b8d),_0x367376());});}const _0x1d89a0=_0x447ccd;_0x4ca953[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q','$translate',_0x34e79e('0x446'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x4ca953(_0x565e7b,_0x52799e,_0x157dc8,_0x393d49,_0x2ba098,_0x20462a,_0x5f4203,_0x7aafad,_0x1d43ed,_0x3c67db,_0x2ea462){const _0x1c4121=_0x34e79e,_0x4791c8=this;_0x4791c8[_0x1c4121('0x9cb')]=_0x2ea462[_0x1c4121('0x24cc')](),_0x4791c8[_0x1c4121('0x1895')]={},_0x4791c8['queueCampaignHoppers']={'count':0x0,'rows':[]},_0x4791c8[_0x1c4121('0x2418')]=[],_0x4791c8['crudPermissions'],_0x4791c8[_0x1c4121('0x135a')]={'fields':_0x1c4121('0x1775'),'sort':_0x1c4121('0x1cee'),'limit':0xa,'page':0x1},_0x4791c8[_0x1c4121('0x1ef0')]=_0x283545()[_0x1c4121('0x13cf')]([{'option':_0x1c4121('0x1438'),'value':'\x274\x27'},{'option':'High','value':_0x1c4121('0xeb3')},{'option':'Medium','value':'\x272\x27'},{'option':_0x1c4121('0x90e'),'value':_0x1c4121('0x27c2')},{'option':'Lowest','value':'\x270\x27'}],function(_0x2f3fbf){const _0x2df943=_0x1c4121;return _0x283545()[_0x2df943('0x10a4')](_0x2f3fbf['value'],new RegExp('\x27','g'),'');}),_0x4791c8[_0x1c4121('0x24eb')]=_0x333441,_0x4791c8['deleteConfirm']=_0x11afb9,_0x4791c8['success']=_0x4fe552,_0x4791c8[_0x1c4121('0xfdf')]=_0x5aa58c,_0x4791c8[_0x1c4121('0x392')]=_0x24e6ac,_0x4791c8['exportSelectedQueueCampaignHoppers']=_0x72409,_0x4791c8[_0x1c4121('0x18ff')]=_0x6c4880,_0x4791c8[_0x1c4121('0x223b')]=_0x11099d,_0x2ea462['hasRole']('admin')?_0x3c67db[_0x1c4121('0x1e6a')]['get']({'fields':_0x1c4121('0x1338'),'role':_0x1c4121('0x188b'),'sort':_0x1c4121('0x1a8d'),'nolimit':_0x1c4121('0x1001')})[_0x1c4121('0x1714')][_0x1c4121('0x2788')](function(_0x299fa6){const _0x540aea=_0x1c4121;_0x4791c8[_0x540aea('0x1713')]=_0x299fa6[_0x540aea('0x25df')]||[];})[_0x1c4121('0x1cb5')](function(_0x5dbd68){const _0x98bc99=_0x1c4121;_0x1d43ed['error']({'title':_0x5dbd68['status']?_0x98bc99('0x15d1')+_0x5dbd68[_0x98bc99('0x1b51')]+_0x98bc99('0x1b0b')+_0x5dbd68[_0x98bc99('0x22ce')]:_0x98bc99('0xd90'),'msg':_0x5dbd68[_0x98bc99('0x11fc')]?JSON['stringify'](_0x5dbd68[_0x98bc99('0x11fc')]):_0x5dbd68['toString']()});}):_0x3c67db[_0x1c4121('0x1e6a')][_0x1c4121('0x1335')]({'fields':_0x1c4121('0x1338'),'role':_0x1c4121('0x188b'),'sort':'name','nolimit':_0x1c4121('0x1001')})[_0x1c4121('0x1714')][_0x1c4121('0x2788')](function(_0x5d3dd8){const _0x32117e=_0x1c4121;_0x4791c8[_0x32117e('0x1713')]=_0x5d3dd8[_0x32117e('0x25df')]||[];})[_0x1c4121('0x2788')](function(){const _0x423700=_0x1c4121;return _0x3c67db[_0x423700('0xec9')]['get']({'userProfileId':_0x4791c8[_0x423700('0x9cb')]['userProfileId'],'sectionId':0xca})[_0x423700('0x1714')];})[_0x1c4121('0x2788')](function(_0x14dd94){const _0x2a0ec8=_0x1c4121,_0xb5041c=_0x14dd94&&_0x14dd94[_0x2a0ec8('0x25df')]?_0x14dd94[_0x2a0ec8('0x25df')][0x0]:null;if(!_0xb5041c){const _0x5bf324=[];let _0x431589=null;_0x4791c8['queueCampaign']&&(_0x431589=_0x283545()['find'](_0x4791c8[_0x2a0ec8('0x1713')],{'id':Number(_0x4791c8[_0x2a0ec8('0x1895')][_0x2a0ec8('0x3bb')])}));for(let _0x3e19fa=0x0;_0x3e19fa<_0x4791c8[_0x2a0ec8('0x1713')]['length'];_0x3e19fa++){_0x431589&&_0x4791c8[_0x2a0ec8('0x1713')][_0x3e19fa]['id']===_0x431589['id']&&(_0x4791c8[_0x2a0ec8('0x1713')][_0x3e19fa][_0x2a0ec8('0x3bf')]=![],_0x5bf324[_0x2a0ec8('0x13e3')](_0x4791c8[_0x2a0ec8('0x1713')][_0x3e19fa]));}_0x4791c8[_0x2a0ec8('0x1713')]=_0x5bf324;}else{if(!_0xb5041c[_0x2a0ec8('0x1c0a')])return _0x3c67db[_0x2a0ec8('0x1050')]['get']({'sectionId':_0xb5041c['id']})[_0x2a0ec8('0x1714')][_0x2a0ec8('0x2788')](function(_0x5bf42b){const _0x177538=_0x2a0ec8,_0x241e12=_0x283545()[_0x177538('0x155d')](_0x5bf42b[_0x177538('0x25df')],function(_0x5e8ffd){const _0x593023=_0x177538;return _0x283545()[_0x593023('0x20e8')](_0x4791c8[_0x593023('0x1713')],{'id':_0x5e8ffd[_0x593023('0x2707')]});});let _0x2af6dc=null;_0x4791c8[_0x177538('0x1895')]&&(_0x2af6dc=_0x283545()[_0x177538('0x20e8')](_0x4791c8[_0x177538('0x1713')],{'id':Number(_0x4791c8[_0x177538('0x1895')][_0x177538('0x3bb')])}));if(_0x2af6dc&&!_0x283545()[_0x177538('0xc5d')](_0x241e12,['id',_0x2af6dc['id']])){const _0x1309f3=_0x283545()[_0x177538('0x20e8')](_0x4791c8[_0x177538('0x1713')],{'id':_0x2af6dc['id']});_0x1309f3[_0x177538('0x3bf')]=![],_0x241e12[_0x177538('0x13e3')](_0x1309f3);}_0x4791c8['agents']=_0x241e12;});}})['catch'](function(_0x53a454){const _0x317834=_0x1c4121;_0x1d43ed[_0x317834('0x5e8')]({'title':_0x53a454[_0x317834('0x1b51')]?_0x317834('0x15d1')+_0x53a454[_0x317834('0x1b51')]+_0x317834('0x1b0b')+_0x53a454[_0x317834('0x22ce')]:_0x317834('0x1246'),'msg':_0x53a454[_0x317834('0x11fc')]?JSON[_0x317834('0x1be0')](_0x53a454[_0x317834('0x11fc')]):_0x53a454['toString']()});});function _0x333441(_0x134428,_0x56c1df){const _0x152b9d=_0x1c4121;_0x4791c8['queueCampaign']=_0x134428,_0x4791c8[_0x152b9d('0xe28')]=typeof _0x56c1df!==_0x152b9d('0xedb')?_0x56c1df:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4791c8['query']['VoiceQueueId']=_0x4791c8[_0x152b9d('0x1895')]['id'],_0x4791c8[_0x152b9d('0x135a')]['id']=_0x4791c8['queueCampaign']['id'],_0x5aa58c();}function _0x11afb9(_0x482054,_0x449663){const _0x5b5bb6=_0x1c4121,_0x82b2e4=_0x5f4203[_0x5b5bb6('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')[_0x5b5bb6('0x93e')](_0x5b5bb6('0x1670')+(_0x482054[_0x5b5bb6('0x1a8d')]||_0x482054['id']&&_0x283545()[_0x5b5bb6('0x2265')](_0x5b5bb6('0x13b4'))+_0x482054['id']||_0x5b5bb6('0x265c'))+''+'\x20will\x20be\x20deleted.')[_0x5b5bb6('0x10bc')](_0x5b5bb6('0x21f1'))[_0x5b5bb6('0x24d0')](_0x449663)['ok']('OK')[_0x5b5bb6('0x1801')](_0x5b5bb6('0x1d8d'));_0x5f4203['show'](_0x82b2e4)['then'](function(){_0x6c4880(_0x482054);},function(){const _0x18fa6e=_0x5b5bb6;console[_0x18fa6e('0x10df')]('CANCEL');});}function _0x4fe552(_0x24a68e){const _0x31ddb5=_0x1c4121;_0x4791c8[_0x31ddb5('0x1bd5')]=_0x24a68e||{'count':0x0,'rows':[]};}function _0x5aa58c(){const _0xbf92c3=_0x1c4121;_0x4791c8[_0xbf92c3('0x135a')][_0xbf92c3('0x19e')]=(_0x4791c8[_0xbf92c3('0x135a')][_0xbf92c3('0x23f5')]-0x1)*_0x4791c8[_0xbf92c3('0x135a')][_0xbf92c3('0x68e')],_0x4791c8[_0xbf92c3('0x1808')]=_0x3c67db['voiceQueue'][_0xbf92c3('0x15da')](_0x4791c8[_0xbf92c3('0x135a')],_0x4fe552)[_0xbf92c3('0x1714')];}function _0x24e6ac(_0x166bb8,_0x5bea69){const _0x5a7275=_0x1c4121;_0x5f4203[_0x5a7275('0x2fa')]({'controller':_0x5a7275('0x1e74'),'controllerAs':'vm','templateUrl':_0x43358b,'parent':angular[_0x5a7275('0x16b1')](_0x7aafad['body']),'targetEvent':_0x166bb8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4791c8[_0x5a7275('0x1895')],'hopper':_0x5bea69,'hoppers':_0x4791c8[_0x5a7275('0x1bd5')][_0x5a7275('0x25df')],'license':null,'setting':null,'crudPermissions':_0x4791c8[_0x5a7275('0xe28')]}});}function _0x6c4880(_0x1038bf){const _0x467d6f=_0x1c4121;_0x3c67db['cmHopper']['delete']({'id':_0x1038bf['id']})[_0x467d6f('0x1714')][_0x467d6f('0x2788')](function(){const _0x365eb5=_0x467d6f;_0x283545()[_0x365eb5('0x1a90')](_0x4791c8[_0x365eb5('0x1bd5')][_0x365eb5('0x25df')],{'id':_0x1038bf['id']}),_0x4791c8['queueCampaignHoppers'][_0x365eb5('0x338')]-=0x1,!_0x4791c8[_0x365eb5('0x1bd5')][_0x365eb5('0x25df')][_0x365eb5('0x2566')]&&_0x5aa58c(),_0x1d43ed[_0x365eb5('0x173b')]({'title':_0x365eb5('0x3c'),'msg':_0x1038bf[_0x365eb5('0x1a8d')]?_0x1038bf[_0x365eb5('0x1a8d')]+_0x365eb5('0x14d4'):''});})[_0x467d6f('0x1cb5')](function(_0x13f21b){const _0x48cc4e=_0x467d6f;if(_0x13f21b['data']&&_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x25be')]&&_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x25be')]['length']){_0x4791c8[_0x48cc4e('0x25be')]=_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x25be')]||[{'message':_0x13f21b[_0x48cc4e('0x17df')](),'type':'SYSTEM:GETvoiceQueue'}];for(let _0x10fa08=0x0;_0x10fa08<_0x13f21b['data'][_0x48cc4e('0x25be')][_0x48cc4e('0x2566')];_0x10fa08++){_0x1d43ed['error']({'title':_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x25be')][_0x10fa08]['type'],'msg':_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x25be')][_0x10fa08][_0x48cc4e('0x15e2')]});}}else _0x1d43ed[_0x48cc4e('0x5e8')]({'title':_0x13f21b[_0x48cc4e('0x1b51')]?'API:'+_0x13f21b[_0x48cc4e('0x1b51')]+_0x48cc4e('0x1b0b')+_0x13f21b[_0x48cc4e('0x22ce')]:_0x48cc4e('0x271e'),'msg':_0x13f21b[_0x48cc4e('0x11fc')]?JSON[_0x48cc4e('0x1be0')](_0x13f21b[_0x48cc4e('0x11fc')][_0x48cc4e('0x15e2')]):_0x13f21b[_0x48cc4e('0x15e2')]||_0x13f21b[_0x48cc4e('0x17df')]()});});}function _0x72409(){const _0x5dde16=_0x1c4121,_0x2ce533=angular[_0x5dde16('0x2669')](_0x4791c8[_0x5dde16('0x2418')]);return _0x4791c8['selectedQueueCampaignHoppers']=[],_0x2ce533;}function _0x11099d(_0x469a53){const _0x1ed0a7=_0x1c4121,_0xc1e7e2=_0x5f4203[_0x1ed0a7('0x112e')]()[_0x1ed0a7('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?')[_0x1ed0a7('0x93e')](_0x1ed0a7('0x1670')+_0x4791c8[_0x1ed0a7('0x2418')][_0x1ed0a7('0x2566')]+_0x1ed0a7('0xbd')+_0x1ed0a7('0x27c7'))[_0x1ed0a7('0x10bc')](_0x1ed0a7('0x455'))[_0x1ed0a7('0x24d0')](_0x469a53)['ok']('OK')[_0x1ed0a7('0x1801')](_0x1ed0a7('0x1d8d'));_0x5f4203[_0x1ed0a7('0x2fa')](_0xc1e7e2)[_0x1ed0a7('0x2788')](function(){const _0x249b07=_0x1ed0a7;_0x4791c8[_0x249b07('0x2418')][_0x249b07('0x1534')](function(_0x370eeb){_0x6c4880(_0x370eeb);}),_0x4791c8[_0x249b07('0x2418')]=[];});}let _0x154843=!![],_0x684d9d=0x1;_0x52799e[_0x1c4121('0x1662')](_0x1c4121('0x2571'),function(_0xcb709e,_0x2fd749){const _0x24d7eb=_0x1c4121;_0x154843?_0x20462a(function(){_0x154843=![];}):(!_0x2fd749&&(_0x684d9d=_0x4791c8[_0x24d7eb('0x135a')][_0x24d7eb('0x23f5')]),_0xcb709e!==_0x2fd749&&(_0x4791c8[_0x24d7eb('0x135a')][_0x24d7eb('0x23f5')]=0x1),!_0xcb709e&&(_0x4791c8['query'][_0x24d7eb('0x23f5')]=_0x684d9d),_0x5aa58c());});}const _0x46e4d8=_0x4ca953;_0x464254['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x2547'),'hopper',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x464254(_0x4bef0a,_0x4b6242,_0x46ace2,_0x279404,_0x30029a,_0x50cb65,_0x2c0933,_0x25a48d,_0x468c85,_0x4bb10a,_0x29a15b,_0x3b555a,_0x3459fd,_0x5be159){const _0xae7361=_0x34e79e,_0x40a177=this;_0x40a177['currentUser']=_0x29a15b[_0xae7361('0x24cc')](),_0x40a177[_0xae7361('0x25be')]=[],_0x40a177[_0xae7361('0x1af0')]=_0x3459fd,_0x40a177['license']=_0x3b555a,_0x40a177[_0xae7361('0xe28')]=_0x5be159,_0x40a177[_0xae7361('0x1193')]={},_0x40a177[_0xae7361('0x18ad')]=_0x40a177[_0xae7361('0x1af0')]&&_0x40a177[_0xae7361('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40a177[_0xae7361('0x14e4')]='MOTIONDIALER.EDIT_HOPPER',_0x40a177['hopper']=angular[_0xae7361('0x2669')](_0x468c85),_0x40a177[_0xae7361('0x2547')]=_0x25a48d,_0x40a177[_0xae7361('0xc2f')]=![];!_0x40a177[_0xae7361('0x265c')]&&(_0x40a177[_0xae7361('0x265c')]={},_0x40a177[_0xae7361('0x14e4')]=_0xae7361('0x23f8'),_0x40a177[_0xae7361('0xc2f')]=!![]);_0x4b6242[_0xae7361('0x4b9')]['id']&&(_0x40a177[_0xae7361('0x265c')][_0xae7361('0xe6b')]=_0x4b6242[_0xae7361('0x4b9')]['id']);_0x40a177[_0xae7361('0xde8')]=_0x38b589,_0x40a177[_0xae7361('0x125f')]=_0x16abee,_0x40a177[_0xae7361('0x1094')]=_0x2ed87d,_0x40a177[_0xae7361('0x2601')]=_0x74ba34,_0x40a177[_0xae7361('0xca7')]=_0x6f34ab,_0x29a15b[_0xae7361('0x1516')](_0xae7361('0xe23'))?_0x4bb10a['user'][_0xae7361('0x1335')]({'fields':_0xae7361('0x1338'),'role':'agent','sort':_0xae7361('0x1a8d'),'nolimit':_0xae7361('0x1001')})['$promise']['then'](function(_0xe1872f){const _0x3c1216=_0xae7361;_0x40a177[_0x3c1216('0x1713')]=_0xe1872f[_0x3c1216('0x25df')]||[];})[_0xae7361('0x1cb5')](function(_0x307c49){const _0x468fc6=_0xae7361;_0x2c0933[_0x468fc6('0x5e8')]({'title':_0x307c49[_0x468fc6('0x1b51')]?_0x468fc6('0x15d1')+_0x307c49[_0x468fc6('0x1b51')]+_0x468fc6('0x1b0b')+_0x307c49['statusText']:'SYSTEM:GET_AGENTS','msg':_0x307c49['data']?JSON[_0x468fc6('0x1be0')](_0x307c49['data']):_0x307c49[_0x468fc6('0x17df')]()});}):_0x4bb10a[_0xae7361('0x1e6a')][_0xae7361('0x1335')]({'fields':'id,name','role':_0xae7361('0x188b'),'sort':_0xae7361('0x1a8d'),'nolimit':_0xae7361('0x1001')})['$promise'][_0xae7361('0x2788')](function(_0x2084f2){const _0x56eed7=_0xae7361;_0x40a177[_0x56eed7('0x1713')]=_0x2084f2[_0x56eed7('0x25df')]||[];})[_0xae7361('0x2788')](function(){const _0x256bef=_0xae7361;return _0x4bb10a[_0x256bef('0xec9')][_0x256bef('0x1335')]({'userProfileId':_0x40a177[_0x256bef('0x9cb')]['userProfileId'],'sectionId':0xca})[_0x256bef('0x1714')];})[_0xae7361('0x2788')](function(_0x21b1dc){const _0x48dfce=_0xae7361,_0x3b5c89=_0x21b1dc&&_0x21b1dc['rows']?_0x21b1dc['rows'][0x0]:null;if(!_0x3b5c89){const _0x5be9bc=[];let _0x36d7e2=null;_0x40a177[_0x48dfce('0x265c')]&&(_0x36d7e2=_0x283545()['find'](_0x40a177[_0x48dfce('0x1713')],{'id':Number(_0x40a177['hopper'][_0x48dfce('0x3bb')])}));for(let _0x5c7ae6=0x0;_0x5c7ae6<_0x40a177[_0x48dfce('0x1713')][_0x48dfce('0x2566')];_0x5c7ae6++){_0x36d7e2&&_0x40a177[_0x48dfce('0x1713')][_0x5c7ae6]['id']===_0x36d7e2['id']&&(_0x40a177['agents'][_0x5c7ae6][_0x48dfce('0x3bf')]=![],_0x5be9bc[_0x48dfce('0x13e3')](_0x40a177[_0x48dfce('0x1713')][_0x5c7ae6]));}_0x40a177[_0x48dfce('0x1713')]=_0x5be9bc;}else{if(!_0x3b5c89[_0x48dfce('0x1c0a')])return _0x4bb10a['userProfileResource'][_0x48dfce('0x1335')]({'sectionId':_0x3b5c89['id']})[_0x48dfce('0x1714')][_0x48dfce('0x2788')](function(_0x43cb83){const _0xd5325c=_0x48dfce,_0x2bada5=_0x283545()[_0xd5325c('0x155d')](_0x43cb83[_0xd5325c('0x25df')],function(_0x5e01ff){const _0x49da7e=_0xd5325c;return _0x283545()[_0x49da7e('0x20e8')](_0x40a177[_0x49da7e('0x1713')],{'id':_0x5e01ff['resourceId']});});let _0x10c20d=null;_0x40a177['hopper']&&(_0x10c20d=_0x283545()['find'](_0x40a177[_0xd5325c('0x1713')],{'id':Number(_0x40a177[_0xd5325c('0x265c')][_0xd5325c('0x3bb')])}));if(_0x10c20d&&!_0x283545()[_0xd5325c('0xc5d')](_0x2bada5,['id',_0x10c20d['id']])){const _0x189e9f=_0x283545()[_0xd5325c('0x20e8')](_0x40a177['agents'],{'id':_0x10c20d['id']});_0x189e9f[_0xd5325c('0x3bf')]=![],_0x2bada5[_0xd5325c('0x13e3')](_0x189e9f);}_0x40a177['agents']=_0x2bada5;});}})[_0xae7361('0x1cb5')](function(_0x308ccf){const _0x4b9251=_0xae7361;_0x2c0933[_0x4b9251('0x5e8')]({'title':_0x308ccf[_0x4b9251('0x1b51')]?'API:'+_0x308ccf[_0x4b9251('0x1b51')]+_0x4b9251('0x1b0b')+_0x308ccf[_0x4b9251('0x22ce')]:'SYSTEM:GETagents','msg':_0x308ccf['data']?JSON['stringify'](_0x308ccf[_0x4b9251('0x11fc')]):_0x308ccf[_0x4b9251('0x17df')]()});});function _0x38b589(){const _0x592a21=_0xae7361;_0x40a177[_0x592a21('0x25be')]=[],_0x4bb10a['cmHopper'][_0x592a21('0xbd0')](_0x40a177[_0x592a21('0x265c')])['$promise']['then'](function(_0x43ccb1){const _0x3f2b9e=_0x592a21;_0x40a177['hoppers']['unshift'](_0x43ccb1[_0x3f2b9e('0x1cbf')]()),_0x2c0933[_0x3f2b9e('0x173b')]({'title':_0x3f2b9e('0xc23'),'msg':_0x40a177['hopper'][_0x3f2b9e('0x1a8d')]?_0x40a177[_0x3f2b9e('0x265c')][_0x3f2b9e('0x1a8d')]+_0x3f2b9e('0x1e4a'):''}),_0x6f34ab(_0x43ccb1);})['catch'](function(_0x27f5b5){const _0xccecbc=_0x592a21;if(_0x27f5b5[_0xccecbc('0x11fc')]&&_0x27f5b5[_0xccecbc('0x11fc')]['errors']&&_0x27f5b5['data']['errors']['length']){_0x40a177['errors']=_0x27f5b5[_0xccecbc('0x11fc')]['errors']||[{'message':_0x27f5b5['toString'](),'type':_0xccecbc('0x238c')}];for(let _0x225504=0x0;_0x225504<_0x27f5b5['data']['errors'][_0xccecbc('0x2566')];_0x225504+=0x1){_0x2c0933[_0xccecbc('0x5e8')]({'title':_0x27f5b5[_0xccecbc('0x11fc')]['errors'][_0x225504]['type'],'msg':_0x27f5b5[_0xccecbc('0x11fc')][_0xccecbc('0x25be')][_0x225504][_0xccecbc('0x15e2')]});}}else _0x2c0933['error']({'title':_0x27f5b5['status']?'API:'+_0x27f5b5[_0xccecbc('0x1b51')]+_0xccecbc('0x1b0b')+_0x27f5b5[_0xccecbc('0x22ce')]:'api.cmHopper.save','msg':_0x27f5b5['data']?JSON[_0xccecbc('0x1be0')](_0x27f5b5[_0xccecbc('0x11fc')]['message']):_0x27f5b5['toString']()});});}function _0x16abee(){const _0x19daea=_0xae7361;_0x40a177[_0x19daea('0x25be')]=[];let _0x6c299b,_0x9761e3,_0x563c7c,_0x4a4326;_0x40a177[_0x19daea('0x265c')][_0x19daea('0x3bb')]=_0x40a177[_0x19daea('0x265c')][_0x19daea('0x13a1')]?_0x40a177['hopper']['UserId']:null,_0x40a177[_0x19daea('0x265c')]['OwnerId']=_0x29a15b[_0x19daea('0x24cc')]()['id'],_0x4bb10a['cmHopper'][_0x19daea('0x1335')]({'id':_0x40a177[_0x19daea('0x265c')]['id'],'attributes':[_0x19daea('0x1343')]})[_0x19daea('0x1714')][_0x19daea('0x2788')](function(_0x5e6d8f){const _0x5eefad=_0x19daea;_0x283545()['isNil'](_0x5e6d8f)||_0x283545()['isEmpty'](_0x5e6d8f)?_0x6c299b=_0x59f37a()()[_0x5eefad('0x22b4')](_0x5eefad('0xe8e')):_0x6c299b=_0x5e6d8f[_0x5eefad('0x1343')];})[_0x19daea('0x1ed8')](function(){const _0x298b52=_0x19daea;_0x4bb10a[_0x298b52('0x1de1')][_0x298b52('0x2740')]({'id':_0x40a177[_0x298b52('0x265c')]['id']},_0x283545()[_0x298b52('0x5a9')](_0x40a177[_0x298b52('0x265c')],['VoiceQueueId',_0x298b52('0x1f8'),_0x298b52('0x85a'),_0x298b52('0x354')]))[_0x298b52('0x1714')]['then'](function(_0x1b10f9){const _0x16c9e7=_0x298b52;_0x9761e3=_0x1b10f9,_0x4bb10a['cmContact'][_0x16c9e7('0x1335')]({'id':_0x9761e3[_0x16c9e7('0x85a')],'attributes':['firstName',_0x16c9e7('0x26b9')]})['$promise'][_0x16c9e7('0x2788')](function(_0x80fca1){const _0x47f50f=_0x16c9e7;!_0x283545()[_0x47f50f('0x1015')](_0x80fca1)&&!_0x283545()[_0x47f50f('0x1015')](_0x80fca1[_0x47f50f('0x26da')])&&(_0x563c7c=_0x80fca1[_0x47f50f('0x26da')],!_0x283545()[_0x47f50f('0x1015')](_0x80fca1[_0x47f50f('0x26b9')])&&(_0x563c7c+='\x20'+_0x80fca1['lastName']));})['catch'](function(){_0x563c7c=undefined;})[_0x16c9e7('0x1ed8')](function(){const _0x18e991=_0x16c9e7;_0x4bb10a[_0x18e991('0x2043')][_0x18e991('0x1335')]({'raw':![],'id':_0x9761e3[_0x18e991('0xe6b')],'attributes':[_0x18e991('0x1a8d')]})[_0x18e991('0x1714')][_0x18e991('0x2788')](function(_0x4c3dd5){const _0x445567=_0x18e991;_0x4a4326=_0x4c3dd5[_0x445567('0x1a8d')];})['catch'](function(){_0x4a4326=undefined;})[_0x18e991('0x1ed8')](function(){const _0x3aa3cc=_0x18e991;_0x4bb10a[_0x3aa3cc('0x9b')]['save']({'state':0x18,'statedesc':_0x3aa3cc('0x756'),'scheduledat':_0x6c299b,'calleridnum':_0x9761e3['phone'],'calleridname':_0x563c7c,'campaigntype':_0x9761e3[_0x3aa3cc('0xe6b')]?_0x3aa3cc('0x1ab4'):_0x3aa3cc('0x1e64'),'campaign':_0x4a4326,'editedat':_0x59f37a()()['format']('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x9761e3[_0x3aa3cc('0x354')],'UserId':_0x29a15b[_0x3aa3cc('0x24cc')]()['id'],'VoiceQueueId':_0x9761e3[_0x3aa3cc('0xe6b')],'CampaignId':_0x9761e3[_0x3aa3cc('0x1f8')],'ContactId':_0x9761e3[_0x3aa3cc('0x85a')],'callback':_0x9761e3[_0x3aa3cc('0x1d31')],'callbackuniqueid':_0x9761e3[_0x3aa3cc('0x1023')],'countbusyretry':_0x9761e3[_0x3aa3cc('0x89f')],'countcongestionretry':_0x9761e3[_0x3aa3cc('0x221b')],'countglobal':_0x9761e3[_0x3aa3cc('0x2447')],'countnoanswerretry':_0x9761e3[_0x3aa3cc('0x2400')],'followuptime':_0x9761e3[_0x3aa3cc('0x26b8')],'recallme':_0x9761e3[_0x3aa3cc('0x13a1')]});});});const _0x5dd2c3=_0x283545()[_0x16c9e7('0x20e8')](_0x40a177[_0x16c9e7('0x2547')],{'id':_0x1b10f9['id']});_0x5dd2c3&&_0x283545()['merge'](_0x5dd2c3,_0x283545()['pick'](_0x1b10f9[_0x16c9e7('0x1cbf')](),_0x283545()['keys'](_0x5dd2c3))),_0x2c0933[_0x16c9e7('0x173b')]({'title':'Hopper\x20properly\x20saved!','msg':_0x40a177[_0x16c9e7('0x265c')]['name']?_0x40a177['hopper'][_0x16c9e7('0x1a8d')]+'\x20has\x20been\x20saved!':''}),_0x6f34ab(_0x1b10f9);})[_0x298b52('0x1cb5')](function(_0x20d50f){const _0x3aa0c2=_0x298b52;if(_0x20d50f[_0x3aa0c2('0x11fc')]&&_0x20d50f[_0x3aa0c2('0x11fc')][_0x3aa0c2('0x25be')]&&_0x20d50f[_0x3aa0c2('0x11fc')][_0x3aa0c2('0x25be')]['length']){_0x40a177['errors']=_0x20d50f[_0x3aa0c2('0x11fc')][_0x3aa0c2('0x25be')]||[{'message':_0x20d50f[_0x3aa0c2('0x17df')](),'type':'api.cmHopper.update'}];for(let _0x1e9541=0x0;_0x1e9541<_0x20d50f['data'][_0x3aa0c2('0x25be')][_0x3aa0c2('0x2566')];_0x1e9541++){_0x2c0933['error']({'title':_0x20d50f['data'][_0x3aa0c2('0x25be')][_0x1e9541][_0x3aa0c2('0x1d7')],'msg':_0x20d50f[_0x3aa0c2('0x11fc')][_0x3aa0c2('0x25be')][_0x1e9541][_0x3aa0c2('0x15e2')]});}}else _0x2c0933['error']({'title':_0x20d50f[_0x3aa0c2('0x1b51')]?_0x3aa0c2('0x15d1')+_0x20d50f[_0x3aa0c2('0x1b51')]+_0x3aa0c2('0x1b0b')+_0x20d50f[_0x3aa0c2('0x22ce')]:_0x3aa0c2('0x1d77'),'msg':_0x20d50f[_0x3aa0c2('0x11fc')]?JSON['stringify'](_0x20d50f['data']['message']):_0x20d50f[_0x3aa0c2('0x17df')]()});});});}function _0x2ed87d(_0x303ed3){const _0x15b16b=_0xae7361;_0x40a177['errors']=[];const _0x44ec0d=_0x279404[_0x15b16b('0x112e')]()[_0x15b16b('0x14e4')](_0x15b16b('0x458'))['content'](_0x15b16b('0xbc2'))[_0x15b16b('0x10bc')]('Delete\x20Hopper')['ok'](_0x15b16b('0x2786'))[_0x15b16b('0x1801')](_0x15b16b('0x1481'))[_0x15b16b('0x24d0')](_0x303ed3);_0x279404[_0x15b16b('0x2fa')](_0x44ec0d)['then'](function(){const _0xf6a228=_0x15b16b;_0x4bb10a[_0xf6a228('0x1de1')][_0xf6a228('0x17c4')]({'id':_0x40a177[_0xf6a228('0x265c')]['id']})[_0xf6a228('0x1714')]['then'](function(){const _0x50e886=_0xf6a228;_0x283545()[_0x50e886('0x1a90')](_0x40a177[_0x50e886('0x2547')],{'id':_0x40a177[_0x50e886('0x265c')]['id']}),_0x2c0933[_0x50e886('0x173b')]({'title':_0x50e886('0x583'),'msg':(_0x40a177[_0x50e886('0x265c')][_0x50e886('0x1a8d')]||'hopper')+_0x50e886('0x14d4')}),_0x6f34ab(_0x40a177[_0x50e886('0x265c')]);})['catch'](function(_0x9c3a2a){const _0xdb13e2=_0xf6a228;if(_0x9c3a2a['data']&&_0x9c3a2a['data'][_0xdb13e2('0x25be')]&&_0x9c3a2a['data'][_0xdb13e2('0x25be')][_0xdb13e2('0x2566')]){_0x40a177[_0xdb13e2('0x25be')]=_0x9c3a2a[_0xdb13e2('0x11fc')][_0xdb13e2('0x25be')]||[{'message':_0x9c3a2a[_0xdb13e2('0x17df')](),'type':_0xdb13e2('0x12f8')}];for(let _0x84dcf6=0x0;_0x84dcf6<_0x9c3a2a['data'][_0xdb13e2('0x25be')][_0xdb13e2('0x2566')];_0x84dcf6++){_0x2c0933['error']({'title':_0x9c3a2a['data'][_0xdb13e2('0x25be')][_0x84dcf6][_0xdb13e2('0x1d7')],'msg':_0x9c3a2a[_0xdb13e2('0x11fc')][_0xdb13e2('0x25be')][_0x84dcf6][_0xdb13e2('0x15e2')]});}}else _0x2c0933[_0xdb13e2('0x5e8')]({'title':_0x9c3a2a[_0xdb13e2('0x1b51')]?_0xdb13e2('0x15d1')+_0x9c3a2a['status']+_0xdb13e2('0x1b0b')+_0x9c3a2a[_0xdb13e2('0x22ce')]:_0xdb13e2('0x12f8'),'msg':_0x9c3a2a[_0xdb13e2('0x11fc')]?JSON[_0xdb13e2('0x1be0')](_0x9c3a2a['data']['message']):_0x9c3a2a[_0xdb13e2('0x15e2')]||_0x9c3a2a[_0xdb13e2('0x17df')]()});});},function(){});}function _0x74ba34(_0x54ea67){return _0x54ea67===null?undefined:new Date(_0x54ea67);}function _0x6f34ab(_0x41c632){const _0x434323=_0xae7361;_0x279404[_0x434323('0x19d')](_0x41c632);}}const _0x3aaac8=_0x464254;_0x519c96[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),'toasty'];function _0x519c96(_0x23c18b,_0x58eba7){const _0xd8db1e=_0x34e79e,_0x162d2f=this;_0x162d2f[_0xd8db1e('0x1895')]={},_0x162d2f[_0xd8db1e('0x24eb')]=_0x2e0088;function _0x2e0088(_0x7777d6){const _0x1709ea=_0xd8db1e;_0x162d2f['queueCampaign']=_0x7777d6,_0x23c18b[_0x1709ea('0x1de1')][_0x1709ea('0x1335')]({'limit':0x0,'VoiceQueueId':_0x7777d6['id']})[_0x1709ea('0x1714')][_0x1709ea('0x2788')](function(_0x27bd95){const _0x5a8ca1=_0x1709ea;return _0x162d2f[_0x5a8ca1('0x510')]=_0x27bd95['count']||0x0,_0x23c18b[_0x5a8ca1('0x1de1')][_0x5a8ca1('0x1335')]({'limit':0x0,'VoiceQueueId':_0x7777d6['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x5a8ca1('0x1714')];})[_0x1709ea('0x2788')](function(_0x327330){const _0x5b3ccb=_0x1709ea;return _0x162d2f[_0x5b3ccb('0x10a5')]=_0x327330['count']||0x0,_0x23c18b[_0x5b3ccb('0x177a')]['get']({'limit':0x0,'VoiceQueueId':_0x7777d6['id']})[_0x5b3ccb('0x1714')];})['then'](function(_0x49d1d9){const _0x454a0f=_0x1709ea;_0x162d2f['closed']=_0x49d1d9[_0x454a0f('0x338')]||0x0;})[_0x1709ea('0x1cb5')](function(_0x1d016c){const _0x286090=_0x1709ea;_0x58eba7[_0x286090('0x5e8')]({'title':_0x1d016c['status']?_0x286090('0x15d1')+_0x1d016c[_0x286090('0x1b51')]+_0x286090('0x1b0b')+_0x1d016c[_0x286090('0x22ce')]:'SYSTEM:GETTAGS','msg':_0x1d016c[_0x286090('0x11fc')]?JSON[_0x286090('0x1be0')](_0x1d016c['data']):_0x1d016c[_0x286090('0x17df')]()});});}}const _0x991ef=_0x519c96;_0x124c6d[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api',_0x34e79e('0x1895'),_0x34e79e('0x1a5c'),'$timeout','Auth',_0x34e79e('0xe28')];function _0x124c6d(_0x3dee5a,_0x53a064,_0x5d905b,_0x341590,_0x4ee2be,_0x2c7fc6,_0x87f6ef,_0x5ac6ac,_0x3a18ba){const _0x3f598f=_0x34e79e,_0x4ea1c5=this;_0x4ea1c5['currentUser']=_0x5ac6ac[_0x3f598f('0x24cc')](),_0x4ea1c5[_0x3f598f('0x1895')]=_0x4ee2be,_0x4ea1c5[_0x3f598f('0xe28')]=_0x3a18ba,_0x4ea1c5[_0x3f598f('0x249f')]=_0x3f598f('0x2043'),_0x4ea1c5['getApi']=_0x3f598f('0xcdd'),_0x4ea1c5[_0x3f598f('0x1655')]=_0x3f598f('0x1a9c'),_0x4ea1c5['removeApi']=_0x3f598f('0xd1e'),_0x4ea1c5[_0x3f598f('0x117b')]=[],_0x4ea1c5[_0x3f598f('0x73d')]=[],_0x4ea1c5[_0x3f598f('0x283f')]=[],_0x4ea1c5['startingAllowedItems']=[],_0x4ea1c5['startingSelectedItems']=[],_0x4ea1c5[_0x3f598f('0x2677')]=![],_0x4ea1c5['loading']=![],_0x4ea1c5['dualMultiselectOptions']={'readOnly':!_0x4ea1c5['crudPermissions'][_0x3f598f('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x3f598f('0x1a8d'),'line1':_0x3f598f('0x1a8d'),'line2':'','line3':'','labelAll':_0x2c7fc6[_0x3f598f('0x1b11')]('MOTIONDIALER.ALL_LISTS'),'labelSelected':_0x2c7fc6[_0x3f598f('0x1b11')](_0x3f598f('0xf38')),'transferCallback':function(){const _0x125fe0=_0x3f598f,_0x91cfd3=_0x283545()[_0x125fe0('0x12d1')](_0x4ea1c5[_0x125fe0('0xd0d')],_0x4ea1c5[_0x125fe0('0x283f')],'id');_0x4ea1c5[_0x125fe0('0x2677')]=_0x283545()[_0x125fe0('0x213d')](_0x91cfd3)?![]:!![];}},_0x4ea1c5[_0x3f598f('0x122e')]=_0x565d23,_0x4ea1c5[_0x3f598f('0x15be')]=_0x599fa4,_0x4ea1c5[_0x3f598f('0xca7')]=_0x288fc0;function _0x565d23(){const _0x907ade=_0x3f598f;return _0x5ac6ac['hasRole'](_0x907ade('0xe23'))?_0x23b1bf()['catch'](function(_0x553e2c){const _0xe3d77b=_0x907ade;_0x5d905b['error']({'title':_0x553e2c['status']?_0xe3d77b('0x15d1')+_0x553e2c[_0xe3d77b('0x1b51')]+_0xe3d77b('0x1b0b')+_0x553e2c[_0xe3d77b('0x22ce')]:_0xe3d77b('0x13e2'),'msg':_0x553e2c[_0xe3d77b('0x1b51')]?JSON['stringify'](_0x553e2c[_0xe3d77b('0x11fc')]):_0x553e2c[_0xe3d77b('0x17df')]()});}):_0x381743()[_0x907ade('0x2788')](function(_0x549d97){const _0x531b70=_0x907ade;return _0x4ea1c5[_0x531b70('0xb13')]=_0x549d97,_0x23b1bf();})[_0x907ade('0x1cb5')](function(_0x182926){const _0x38a0d9=_0x907ade;_0x5d905b['error']({'title':_0x182926[_0x38a0d9('0x1b51')]?'API:'+_0x182926[_0x38a0d9('0x1b51')]+'\x20-\x20'+_0x182926[_0x38a0d9('0x22ce')]:'SYSTEM:GETLISTS','msg':_0x182926['status']?JSON[_0x38a0d9('0x1be0')](_0x182926[_0x38a0d9('0x11fc')]):_0x182926['toString']()});});}function _0x381743(){return _0x53a064(function(_0x438a43,_0x2848e2){const _0x3ca5b4=a0_0x14e7;_0x341590[_0x3ca5b4('0xec9')][_0x3ca5b4('0x1335')]({'userProfileId':_0x4ea1c5['currentUser'][_0x3ca5b4('0x237f')],'name':_0x3ca5b4('0x12f2')})[_0x3ca5b4('0x1714')][_0x3ca5b4('0x2788')](function(_0x5b5229){const _0x265ae9=_0x3ca5b4,_0x7a6e15=_0x5b5229&&_0x5b5229[_0x265ae9('0x25df')]?_0x5b5229[_0x265ae9('0x25df')][0x0]:null;_0x438a43(_0x7a6e15);})['catch'](function(_0x44d4ab){_0x2848e2(_0x44d4ab);});});}function _0x23b1bf(){return _0x53a064(function(_0x1355c8,_0x3bbd66){const _0x4a7404=a0_0x14e7;return _0x56aa32()[_0x4a7404('0x2788')](function(_0x3221b4){const _0x25a7f3=_0x4a7404;return _0x4ea1c5[_0x25a7f3('0x117b')]=_0x3221b4[_0x25a7f3('0x25df')]?_0x3221b4[_0x25a7f3('0x25df')]:[],_0x5ac6ac[_0x25a7f3('0x1516')](_0x25a7f3('0xe23'))?_0x3221b4:_0x4ea1c5[_0x25a7f3('0xb13')]?_0x4ea1c5[_0x25a7f3('0xb13')]['autoAssociation']?_0x3221b4:_0x39d898():null;})[_0x4a7404('0x2788')](function(_0x376d16){const _0x26e388=_0x4a7404,_0x3856a0=_0x376d16&&_0x376d16['rows']?_0x376d16[_0x26e388('0x25df')]:[];return _0x4ea1c5[_0x26e388('0x73d')]=_0x283545()[_0x26e388('0x155d')](_0x3856a0,function(_0x473a45){const _0x3aa2a7=_0x26e388;return _0x283545()['find'](_0x4ea1c5['items'],{'id':_0x5ac6ac[_0x3aa2a7('0x1516')](_0x3aa2a7('0xe23'))||_0x4ea1c5['section']['autoAssociation']?_0x473a45['id']:_0x473a45[_0x3aa2a7('0x2707')]});}),_0x4ea1c5[_0x26e388('0x12d9')]=angular[_0x26e388('0x2669')](_0x4ea1c5[_0x26e388('0x73d')]),_0x4ea1c5[_0x26e388('0x117b')]['forEach'](function(_0xd693a9){const _0xebe456=_0x26e388,_0x2258f7=_0x283545()[_0xebe456('0x20e8')](_0x4ea1c5[_0xebe456('0x73d')],{'id':_0xd693a9['id']});_0x4ea1c5[_0xebe456('0x9cb')][_0xebe456('0xb34')]==='admin'?_0xd693a9[_0xebe456('0x68d')]=!![]:_0xd693a9[_0xebe456('0x68d')]=typeof _0x2258f7!==_0xebe456('0xedb')?!![]:![];}),_0xa6d85();})[_0x4a7404('0x2788')](function(_0x4a5c18){const _0x5f0cca=_0x4a7404,_0x1a5545=_0x4a5c18&&_0x4a5c18['rows']?_0x4a5c18[_0x5f0cca('0x25df')]:[];_0x4ea1c5[_0x5f0cca('0x283f')]=_0x283545()[_0x5f0cca('0x155d')](_0x1a5545,function(_0xc6bbc4){const _0x2224b0=_0x5f0cca;return _0x283545()[_0x2224b0('0x20e8')](_0x4ea1c5[_0x2224b0('0x117b')],{'id':_0xc6bbc4['id']});}),_0x4ea1c5['startingSelectedItems']=angular[_0x5f0cca('0x2669')](_0x4ea1c5[_0x5f0cca('0x283f')]),_0x4ea1c5[_0x5f0cca('0x121')]['selectedItems']=_0x4ea1c5['selectedItems'],_0x4ea1c5[_0x5f0cca('0x121')]['items']=_0x283545()[_0x5f0cca('0x432')](_0x4ea1c5['allowedItems'],_0x4ea1c5[_0x5f0cca('0x121')][_0x5f0cca('0x283f')],'id'),_0x1355c8();})[_0x4a7404('0x1cb5')](function(_0x372070){_0x3bbd66(_0x372070);});});}function _0x39d898(){return _0x53a064(function(_0x491d1b,_0x35598a){const _0x232547=a0_0x14e7;return _0x341590[_0x232547('0x1050')][_0x232547('0x1335')]({'sectionId':_0x4ea1c5[_0x232547('0xb13')]['id'],'nolimit':!![]})['$promise'][_0x232547('0x2788')](function(_0x17bfa2){_0x491d1b(_0x17bfa2);})[_0x232547('0x1cb5')](function(_0x11c844){_0x35598a(_0x11c844);});});}function _0xa6d85(){return _0x53a064(function(_0x54c395,_0x5ee070){const _0x472820=a0_0x14e7,_0x21a51c=_0x341590[_0x4ea1c5[_0x472820('0x249f')]];return _0x21a51c[_0x4ea1c5[_0x472820('0x121f')]]({'id':_0x4ea1c5[_0x472820('0x1895')]['id'],'fields':_0x472820('0x1338'),'nolimit':!![]})[_0x472820('0x1714')][_0x472820('0x2788')](function(_0x4e9cf7){_0x54c395(_0x4e9cf7);})[_0x472820('0x1cb5')](function(_0x5cfeba){_0x5ee070(_0x5cfeba);});});}function _0x56aa32(){return _0x53a064(function(_0x3ecafc,_0xd400a6){const _0x2ffc0a=a0_0x14e7;return _0x341590['cmList']['get']({'fields':'id,name','nolimit':!![]})[_0x2ffc0a('0x1714')][_0x2ffc0a('0x2788')](function(_0x593a52){_0x3ecafc(_0x593a52);})[_0x2ffc0a('0x1cb5')](function(_0x4469a0){_0xd400a6(_0x4469a0);});});}function _0x181b04(_0x15267b){return _0x53a064(function(_0x25b90b,_0x44343a){const _0x16da11=a0_0x14e7;if(_0x283545()[_0x16da11('0x213d')](_0x15267b))_0x25b90b();else{const _0x54471c=_0x341590[_0x4ea1c5[_0x16da11('0x249f')]];_0x54471c[_0x4ea1c5[_0x16da11('0x1655')]]({'id':_0x4ea1c5[_0x16da11('0x1895')]['id'],'ids':_0x283545()[_0x16da11('0x155d')](_0x15267b,'id')})[_0x16da11('0x1714')]['then'](function(){_0x25b90b();})['catch'](function(_0x5258b6){_0x44343a(_0x5258b6);});}});}function _0x5440c2(_0x9742c6){return _0x53a064(function(_0x1a88eb,_0x1deb84){const _0x14d787=a0_0x14e7;if(_0x283545()[_0x14d787('0x213d')](_0x9742c6))_0x1a88eb();else{const _0x30a193=_0x341590[_0x4ea1c5[_0x14d787('0x249f')]];_0x30a193[_0x4ea1c5['removeApi']]({'id':_0x4ea1c5[_0x14d787('0x1895')]['id'],'ids':_0x283545()[_0x14d787('0x155d')](_0x9742c6,'id')})[_0x14d787('0x1714')][_0x14d787('0x2788')](function(){_0x1a88eb();})['catch'](function(_0x120b2b){_0x1deb84(_0x120b2b);});}});}function _0x599fa4(){const _0x2d030a=_0x3f598f;_0x4ea1c5[_0x2d030a('0xd98')]=!![];const _0xa2c2da=_0x283545()[_0x2d030a('0x432')](_0x4ea1c5[_0x2d030a('0xd0d')],_0x4ea1c5[_0x2d030a('0x283f')],'id'),_0x49baff=_0x283545()[_0x2d030a('0x432')](_0x4ea1c5['selectedItems'],_0x4ea1c5[_0x2d030a('0xd0d')],'id');return _0x5440c2(_0xa2c2da)[_0x2d030a('0x2788')](function(){return _0x181b04(_0x49baff);})[_0x2d030a('0x2788')](function(){const _0x88df13=_0x2d030a;_0x4ea1c5[_0x88df13('0x2677')]=![],_0x4ea1c5['startingAllowedItems']=angular[_0x88df13('0x2669')](_0x4ea1c5['allowedItems']),_0x4ea1c5[_0x88df13('0xd0d')]=angular[_0x88df13('0x2669')](_0x4ea1c5[_0x88df13('0x283f')]),_0x5d905b[_0x88df13('0x173b')]({'title':_0x88df13('0x10c8'),'msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x2d030a('0x1cb5')](function(_0x55a3e7){const _0xec7bdc=_0x2d030a;_0x5d905b[_0xec7bdc('0x5e8')]({'title':_0x55a3e7[_0xec7bdc('0x1b51')]?_0xec7bdc('0x15d1')+_0x55a3e7[_0xec7bdc('0x1b51')]+_0xec7bdc('0x1b0b')+_0x55a3e7[_0xec7bdc('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x55a3e7['status']?JSON[_0xec7bdc('0x1be0')](_0x55a3e7['data']):_0x55a3e7[_0xec7bdc('0x17df')]()});})[_0x2d030a('0x1ed8')](function(){const _0x5d1116=_0x2d030a;_0x4ea1c5[_0x5d1116('0xd98')]=![];});}function _0x288fc0(){const _0x376ec6=_0x3f598f;_0x3dee5a[_0x376ec6('0x19d')]();}}const _0x15f7aa=_0x124c6d;_0x5c0d35[_0x34e79e('0x2d9')]=['$scope','$mdDialog',_0x34e79e('0xd57'),'api',_0x34e79e('0x1895'),_0x34e79e('0x134a'),_0x34e79e('0x1d9e'),'$q'];function _0x5c0d35(_0x5a2c29,_0x1e4404,_0x40cc54,_0x4faf4e,_0x3e314c,_0xb28e13,_0x1bd873,_0x518df0){const _0x4163c6=_0x34e79e,_0x5880bc=this;_0x5880bc[_0x4163c6('0x2563')]=[],_0x5880bc['items']=_0xb28e13?_0xb28e13:[],_0x5880bc[_0x4163c6('0xd98')]=![],_0x5880bc[_0x4163c6('0xca7')]=_0x3d7adc,_0x5880bc[_0x4163c6('0x2537')]=_0x5b7aeb,_0x5880bc[_0x4163c6('0xe52')]=_0x5f744b,_0x5880bc[_0x4163c6('0x1d26')]=_0x538b29,_0x5880bc[_0x4163c6('0x9e')]=_0x2d4e3c,_0x5880bc[_0x4163c6('0x23d8')]=_0x12f5ad,_0x5880bc[_0x4163c6('0x17f0')]=_0x1694f8;function _0x5f744b(_0x201f2c,_0x26d46c){const _0x44c2c5=_0x4163c6,_0x418562=_0x26d46c['indexOf'](_0x201f2c);_0x418562>-0x1?_0x26d46c[_0x44c2c5('0x722')](_0x418562,0x1):_0x26d46c[_0x44c2c5('0x13e3')](_0x201f2c);}function _0x5b7aeb(_0x4a4fae,_0x2d0dbb){const _0x143d6a=_0x4163c6;return _0x2d0dbb[_0x143d6a('0x821')](_0x4a4fae)>-0x1;}function _0x538b29(){const _0x3e0e10=_0x4163c6;return _0x5880bc['selected'][_0x3e0e10('0x2566')]!==0x0&&_0x5880bc[_0x3e0e10('0x2563')][_0x3e0e10('0x2566')]!==_0x5880bc[_0x3e0e10('0x117b')][_0x3e0e10('0x2566')];}function _0x2d4e3c(){const _0x53437c=_0x4163c6;return _0x5880bc[_0x53437c('0x2563')][_0x53437c('0x2566')]===_0x5880bc[_0x53437c('0x117b')][_0x53437c('0x2566')];}function _0x12f5ad(){const _0x194b26=_0x4163c6;if(_0x5880bc[_0x194b26('0x2563')]['length']===_0x5880bc[_0x194b26('0x117b')][_0x194b26('0x2566')])_0x5880bc[_0x194b26('0x2563')]=[];else(_0x5880bc[_0x194b26('0x2563')][_0x194b26('0x2566')]===0x0||_0x5880bc[_0x194b26('0x2563')][_0x194b26('0x2566')]>0x0)&&(_0x5880bc[_0x194b26('0x2563')]=_0x5880bc[_0x194b26('0x117b')]['slice'](0x0));}function _0x3d7adc(){_0x1e4404['hide']();}function _0x1694f8(){const _0x36666c=_0x4163c6;_0x5880bc[_0x36666c('0xd98')]=!![];const _0x463924=_0xfc8873();_0x463924[_0x36666c('0x1ed8')](function(){_0x5880bc['loading']=![],_0x3d7adc();});}function _0xfc8873(){return _0x518df0(function(_0x2fa4a4){const _0x399068=a0_0x14e7;for(let _0x5751a7=0x0;_0x5751a7<_0x5880bc[_0x399068('0x2563')][_0x399068('0x2566')];_0x5751a7+=0x1){_0x3bac19(_0x3e314c['id'],_0x5880bc[_0x399068('0x2563')][_0x5751a7]);}_0xa24bbe(_0x2fa4a4);});}function _0x3bac19(_0xdc51f0,_0x53a0c6){const _0x11d258=_0x4163c6,_0x107073=_0x53a0c6['id'];_0x1bd873[_0x11d258('0xa76')](function(){const _0x581f1a=_0x11d258;return _0x4faf4e[_0x581f1a('0x2043')][_0x581f1a('0xd1e')]({'id':_0xdc51f0,'ids':_0x107073})[_0x581f1a('0x1714')][_0x581f1a('0x2788')](function(){const _0x55dc0a=_0x581f1a;return _0x4faf4e['voiceQueue']['addLists']({'id':_0xdc51f0,'ids':_0x107073,'dialCheckDuplicateType':_0x55dc0a('0x173d')})[_0x55dc0a('0x1714')];})[_0x581f1a('0x2788')](function(){const _0x1f3096=_0x581f1a;_0x40cc54[_0x1f3096('0x173b')]({'title':_0x1f3096('0x1148'),'msg':'List\x20'+_0x53a0c6[_0x1f3096('0x1a8d')]+_0x1f3096('0x2611')});})[_0x581f1a('0x1cb5')](function(_0x5cc9d0){const _0x5b3882=_0x581f1a;_0x40cc54[_0x5b3882('0x5e8')]({'title':_0x5cc9d0[_0x5b3882('0x1b51')]?_0x5b3882('0x15d1')+_0x5cc9d0[_0x5b3882('0x1b51')]+'\x20-\x20'+_0x5cc9d0[_0x5b3882('0x22ce')]:_0x5b3882('0x840'),'msg':_0x5cc9d0[_0x5b3882('0x1b51')]?JSON[_0x5b3882('0x1be0')](_0x5cc9d0[_0x5b3882('0x11fc')]):_0x5cc9d0[_0x5b3882('0x17df')]()});});});}function _0xa24bbe(_0x488087){const _0x1ad821=_0x4163c6;_0x1bd873[_0x1ad821('0xa76')](function(){return _0x488087();});}}const _0x125296=_0x5c0d35;_0x5ca1cc[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x519'),_0x34e79e('0x1895'),'$translate',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x5ca1cc(_0x4de268,_0x4aac67,_0x415c8e,_0x46e763,_0x312443,_0x2a17e7,_0xcf534b,_0x345525){const _0x5590d3=_0x34e79e,_0x4c1ab9=this;_0x4c1ab9[_0x5590d3('0x9cb')]=_0xcf534b[_0x5590d3('0x24cc')](),_0x4c1ab9[_0x5590d3('0x1895')]=_0x312443,_0x4c1ab9[_0x5590d3('0xe28')]=_0x345525,_0x4c1ab9[_0x5590d3('0x1ab')]=0x0,_0x4c1ab9[_0x5590d3('0x117b')]=[],_0x4c1ab9[_0x5590d3('0x73d')]=[],_0x4c1ab9[_0x5590d3('0x283f')]=[],_0x4c1ab9[_0x5590d3('0x12d9')]=[],_0x4c1ab9[_0x5590d3('0xd0d')]=[],_0x4c1ab9[_0x5590d3('0x2677')]=![],_0x4c1ab9[_0x5590d3('0x121')]={'readOnly':!_0x4c1ab9[_0x5590d3('0xe28')][_0x5590d3('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5590d3('0x1a8d'),'line1':_0x5590d3('0x1a8d'),'line2':'','line3':'','labelAll':_0x2a17e7[_0x5590d3('0x1b11')](_0x5590d3('0x2733')),'labelSelected':_0x2a17e7['instant']('MOTIONDIALER.SELECTED_TEAMS'),'transferCallback':function(_0x13e713,_0xd33ef0){const _0xee799d=_0x5590d3;_0xd33ef0?_0x13e713[_0xee799d('0x1534')](function(_0x3f80e3){const _0x1c6f80=_0xee799d;_0x3f80e3[_0x1c6f80('0x1ab')]=undefined;}):_0x13e713[_0xee799d('0x1534')](function(_0x4667a3){const _0x88f287=_0xee799d;_0x4667a3[_0x88f287('0x1ab')]=_0x88f287('0x1b9d')+_0x4c1ab9[_0x88f287('0x1ab')];});const _0x449473=_0x283545()[_0xee799d('0x12d1')](_0x4c1ab9[_0xee799d('0xd0d')],_0x4c1ab9['selectedItems'],'id');_0x4c1ab9[_0xee799d('0x2677')]=_0x283545()[_0xee799d('0x213d')](_0x449473)?![]:!![];}},_0x4c1ab9[_0x5590d3('0x122e')]=_0xefc5c7,_0x4c1ab9[_0x5590d3('0x1a27')]=_0x4513ed,_0x4c1ab9[_0x5590d3('0xca7')]=_0x230a09;function _0xefc5c7(){const _0x5c67b8=_0x5590d3;return _0xcf534b[_0x5c67b8('0x1516')](_0x5c67b8('0xe23'))?_0x504d5d()[_0x5c67b8('0x1cb5')](function(_0x5a45c1){const _0x483b82=_0x5c67b8;_0x415c8e['error']({'title':_0x5a45c1[_0x483b82('0x1b51')]?_0x483b82('0x15d1')+_0x5a45c1[_0x483b82('0x1b51')]+_0x483b82('0x1b0b')+_0x5a45c1[_0x483b82('0x22ce')]:_0x483b82('0x556'),'msg':_0x5a45c1['status']?JSON[_0x483b82('0x1be0')](_0x5a45c1[_0x483b82('0x11fc')]):_0x5a45c1[_0x483b82('0x17df')]()});}):_0x46fe15()['then'](function(_0xaaba53){const _0x169ad8=_0x5c67b8;return _0x4c1ab9[_0x169ad8('0xb13')]=_0xaaba53,_0x504d5d();})[_0x5c67b8('0x1cb5')](function(_0x5060d2){const _0x25c30b=_0x5c67b8;_0x415c8e[_0x25c30b('0x5e8')]({'title':_0x5060d2[_0x25c30b('0x1b51')]?_0x25c30b('0x15d1')+_0x5060d2[_0x25c30b('0x1b51')]+_0x25c30b('0x1b0b')+_0x5060d2[_0x25c30b('0x22ce')]:_0x25c30b('0x556'),'msg':_0x5060d2[_0x25c30b('0x1b51')]?JSON['stringify'](_0x5060d2[_0x25c30b('0x11fc')]):_0x5060d2[_0x25c30b('0x17df')]()});});}function _0x46fe15(){return _0x4aac67(function(_0x2e110f,_0x2bc695){const _0x25b79a=a0_0x14e7;_0x46e763['userProfileSection'][_0x25b79a('0x1335')]({'userProfileId':_0x4c1ab9[_0x25b79a('0x9cb')][_0x25b79a('0x237f')],'name':_0x25b79a('0x23e9')})['$promise']['then'](function(_0x1a8fcc){const _0x1882c1=_0x1a8fcc&&_0x1a8fcc['rows']?_0x1a8fcc['rows'][0x0]:null;_0x2e110f(_0x1882c1);})[_0x25b79a('0x1cb5')](function(_0x2d610b){_0x2bc695(_0x2d610b);});});}function _0x504d5d(){return _0x4aac67(function(_0x2da190,_0x1b35aa){const _0x7e9f95=a0_0x14e7;return _0x1398d9()[_0x7e9f95('0x2788')](function(_0x539b7d){const _0x44bacf=_0x7e9f95;return _0x4c1ab9[_0x44bacf('0x117b')]=_0x539b7d['rows']?_0x539b7d[_0x44bacf('0x25df')]:[],_0xcf534b[_0x44bacf('0x1516')](_0x44bacf('0xe23'))?_0x539b7d:_0x4c1ab9['section']?_0x4c1ab9['section'][_0x44bacf('0x1c0a')]?_0x539b7d:_0x6bf554():null;})[_0x7e9f95('0x2788')](function(_0x255fd6){const _0x4c15ef=_0x7e9f95,_0x1a0916=_0x255fd6&&_0x255fd6[_0x4c15ef('0x25df')]?_0x255fd6[_0x4c15ef('0x25df')]:[];return _0x4c1ab9['allowedItems']=_0x283545()['map'](_0x1a0916,function(_0x2893a2){const _0x122ae4=_0x4c15ef;return _0x283545()[_0x122ae4('0x20e8')](_0x4c1ab9[_0x122ae4('0x117b')],{'id':_0xcf534b[_0x122ae4('0x1516')](_0x122ae4('0xe23'))||_0x4c1ab9['section']['autoAssociation']?_0x2893a2['id']:_0x2893a2[_0x122ae4('0x2707')]});}),_0x4c1ab9[_0x4c15ef('0x117b')][_0x4c15ef('0x1534')](function(_0x54122e){const _0x1c2013=_0x4c15ef,_0x56642f=_0x283545()['find'](_0x4c1ab9['allowedItems'],{'id':_0x54122e['id']});_0xcf534b[_0x1c2013('0x1516')](_0x1c2013('0xe23'))?_0x54122e['isValid']=!![]:_0x54122e[_0x1c2013('0x68d')]=typeof _0x56642f!==_0x1c2013('0xedb')?!![]:![];}),_0x94854e();})[_0x7e9f95('0x2788')](function(_0x3251ff){const _0x250711=_0x7e9f95,_0x974eb6=_0x3251ff&&_0x3251ff[_0x250711('0x25df')]?_0x3251ff[_0x250711('0x25df')]:[];_0x4c1ab9[_0x250711('0x283f')]=_0x283545()[_0x250711('0x155d')](_0x974eb6,function(_0x5b8dd6){const _0x42b255=_0x250711;return _0x283545()[_0x42b255('0x20e8')](_0x4c1ab9[_0x42b255('0x117b')],{'id':_0x5b8dd6['id']});}),_0x4c1ab9[_0x250711('0xd0d')]=angular[_0x250711('0x2669')](_0x4c1ab9[_0x250711('0x283f')]),_0x4c1ab9['dualMultiselectOptions'][_0x250711('0x283f')]=_0x4c1ab9[_0x250711('0x283f')],_0x4c1ab9[_0x250711('0x121')][_0x250711('0x117b')]=_0x283545()['differenceBy'](_0x4c1ab9[_0x250711('0x73d')],_0x4c1ab9[_0x250711('0x121')][_0x250711('0x283f')],'id'),_0x2da190();})[_0x7e9f95('0x1cb5')](function(_0x5d07be){_0x1b35aa(_0x5d07be);});});}function _0x6bf554(){return _0x4aac67(function(_0x27daaf,_0x106029){const _0x4114d9=a0_0x14e7;return _0x46e763[_0x4114d9('0x1050')][_0x4114d9('0x1335')]({'sectionId':_0x4c1ab9[_0x4114d9('0xb13')]['id'],'nolimit':!![]})[_0x4114d9('0x1714')][_0x4114d9('0x2788')](function(_0x43ab5c){_0x27daaf(_0x43ab5c);})['catch'](function(_0x4576ed){_0x106029(_0x4576ed);});});}function _0x94854e(){return _0x4aac67(function(_0x4b4151,_0x49330e){const _0x50010c=a0_0x14e7;return _0x46e763[_0x50010c('0x2043')][_0x50010c('0x1435')]({'id':_0x4c1ab9[_0x50010c('0x1895')]['id'],'fields':_0x50010c('0x1338'),'nolimit':!![]})['$promise'][_0x50010c('0x2788')](function(_0x801e4f){_0x4b4151(_0x801e4f);})[_0x50010c('0x1cb5')](function(_0xe8f8d0){_0x49330e(_0xe8f8d0);});});}function _0x1398d9(){return _0x4aac67(function(_0x2d4203,_0x58732b){const _0x43715e=a0_0x14e7;return _0x46e763[_0x43715e('0x421')][_0x43715e('0x1335')]({'fields':'id,name','nolimit':!![]})[_0x43715e('0x1714')]['then'](function(_0x52371d){_0x2d4203(_0x52371d);})[_0x43715e('0x1cb5')](function(_0x58135e){_0x58732b(_0x58135e);});});}function _0x3f8d2f(_0x4806e5){return _0x4aac67(function(_0x4fc668,_0x5ad233){const _0x1c6ce7=a0_0x14e7;if(_0x283545()['isEmpty'](_0x4806e5))_0x4fc668();else{const _0x4c9ec1=_0x283545()[_0x1c6ce7('0x155d')](_0x4806e5,function(_0x3fa7c4){const _0x184e36=_0x1c6ce7;return{'id':_0x3fa7c4['id'],'penalty':_0x283545()[_0x184e36('0x1d7f')](_0x3fa7c4[_0x184e36('0x1ab')],_0x184e36('0x1b9d'))};});return _0x46e763['voiceQueue']['addTeams']({'id':_0x4c1ab9[_0x1c6ce7('0x1895')]['id'],'teams':_0x4c9ec1})[_0x1c6ce7('0x1714')][_0x1c6ce7('0x2788')](function(){_0x4fc668();})[_0x1c6ce7('0x1cb5')](function(_0x3ad3){_0x5ad233(_0x3ad3);});}});}function _0xa47023(_0x5ca0a6){return _0x4aac67(function(_0x2c388e,_0x3bfb49){const _0x370f13=a0_0x14e7;_0x283545()['isEmpty'](_0x5ca0a6)?_0x2c388e():_0x46e763[_0x370f13('0x2043')][_0x370f13('0xf4c')]({'id':_0x4c1ab9['queueCampaign']['id'],'ids':_0x283545()[_0x370f13('0x155d')](_0x5ca0a6,'id')})['$promise'][_0x370f13('0x2788')](function(){_0x2c388e();})[_0x370f13('0x1cb5')](function(_0x3e87ad){_0x3bfb49(_0x3e87ad);});});}function _0x4513ed(){const _0x4e5833=_0x5590d3,_0x59ed8e=_0x283545()[_0x4e5833('0x432')](_0x4c1ab9[_0x4e5833('0xd0d')],_0x4c1ab9[_0x4e5833('0x283f')],'id'),_0x1bec19=_0x283545()['differenceBy'](_0x4c1ab9[_0x4e5833('0x283f')],_0x4c1ab9[_0x4e5833('0xd0d')],'id');return _0xa47023(_0x59ed8e)[_0x4e5833('0x2788')](function(){return _0x3f8d2f(_0x1bec19);})[_0x4e5833('0x2788')](function(){const _0x382c9e=_0x4e5833;_0x4c1ab9[_0x382c9e('0x2677')]=![],_0x4c1ab9[_0x382c9e('0x12d9')]=angular[_0x382c9e('0x2669')](_0x4c1ab9['allowedItems']),_0x4c1ab9[_0x382c9e('0xd0d')]=angular[_0x382c9e('0x2669')](_0x4c1ab9[_0x382c9e('0x283f')]),_0x415c8e[_0x382c9e('0x173b')]({'title':_0x382c9e('0x10c8'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x4e5833('0x1cb5')](function(_0x7a110b){const _0x2f8def=_0x4e5833;_0x415c8e[_0x2f8def('0x5e8')]({'title':_0x7a110b['status']?_0x2f8def('0x15d1')+_0x7a110b['status']+_0x2f8def('0x1b0b')+_0x7a110b[_0x2f8def('0x22ce')]:_0x2f8def('0x13cd'),'msg':_0x7a110b[_0x2f8def('0x1b51')]?JSON[_0x2f8def('0x1be0')](_0x7a110b['data']):_0x7a110b[_0x2f8def('0x17df')]()});});}function _0x230a09(){const _0x29f7ee=_0x5590d3;_0x4de268[_0x29f7ee('0x19d')]();}}const _0xa5425b=_0x5ca1cc,_0x1ae943=_0x18dd13['p']+_0x34e79e('0x1872'),_0x313b18=_0x18dd13['p']+_0x34e79e('0x1acc'),_0x5d9f8f=_0x18dd13['p']+_0x34e79e('0x1419'),_0x3fc3db=_0x18dd13['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html',_0x1813a1=_0x18dd13['p']+_0x34e79e('0x27ab');_0x22511d[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),'$location','$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),'toasty','Auth',_0x34e79e('0x1895'),'userProfileSection'];function _0x22511d(_0xb15f9b,_0xff5ff4,_0x3179d5,_0x2a61c5,_0x548827,_0x219f08,_0x3f5218,_0xc9ce35,_0x26404c,_0x48e0bb,_0x155db1,_0x5107b9){const _0x5d4a1c=_0x34e79e,_0x4d5478=this;_0x4d5478[_0x5d4a1c('0x9cb')]=_0x48e0bb[_0x5d4a1c('0x24cc')](),_0x4d5478[_0x5d4a1c('0x130d')]=_0x219f08,_0x4d5478[_0x5d4a1c('0x1af0')]=_0x3f5218,_0x4d5478['passwordPattern']=_0x4d5478[_0x5d4a1c('0x1af0')][_0x5d4a1c('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d5478[_0x5d4a1c('0xe9')]=_0xff5ff4[_0x5d4a1c('0x170c')]()+_0x5d4a1c('0x726')+_0xff5ff4[_0x5d4a1c('0x1c6a')](),_0x4d5478[_0x5d4a1c('0x1895')]=_0x155db1||_0xb15f9b[_0x5d4a1c('0x4b9')][_0x5d4a1c('0x1895')]||{},_0x4d5478[_0x5d4a1c('0xec9')]=_0x5107b9&&_0x5107b9[_0x5d4a1c('0x338')]==0x1?_0x5107b9['rows'][0x0]:null,_0x4d5478[_0x5d4a1c('0xe28')]=_0x48e0bb['parseCrudPermissions'](_0x4d5478['userProfileSection']?_0x4d5478[_0x5d4a1c('0xec9')][_0x5d4a1c('0xe28')]:null),_0x4d5478['hasModulePermissions']={},_0x4d5478[_0x5d4a1c('0xcb3')]=_0xb15f9b[_0x5d4a1c('0x4b9')][_0x5d4a1c('0x24f6')]||0x0,_0x4d5478['clonedialog']=_0x223dd4,_0x4d5478[_0x5d4a1c('0x12e9')]=_0x100abd,_0x4d5478['blacklistadddialog']=_0x28b6d5,_0x4d5478[_0x5d4a1c('0xde3')]=_0x443bed,_0x4d5478[_0x5d4a1c('0x1113')]=_0x2e25c2,_0x4d5478[_0x5d4a1c('0x1876')]=_0x5030a7,_0x4d5478['gotogoto']=_0x53f0a9,_0x4d5478[_0x5d4a1c('0x204f')]=_0x26404c[_0x5d4a1c('0x2276')],_0x4d5478['gotoQueueCampaigns']=_0x70b3d5,_0x4d5478[_0x5d4a1c('0x1a1f')]=_0x14867a,_0x48e0bb[_0x5d4a1c('0x1516')](_0x5d4a1c('0xe23'))?_0xc9ce35[_0x5d4a1c('0xbb3')][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0x1338'),'nolimit':_0x5d4a1c('0x1001')})['$promise'][_0x5d4a1c('0x2788')](function(_0x3f485c){const _0x95b41a=_0x5d4a1c;_0x4d5478[_0x95b41a('0xc0c')]=_0x3f485c[_0x95b41a('0x25df')]||[];})[_0x5d4a1c('0x1cb5')](function(_0x2fc492){const _0x4f34fd=_0x5d4a1c;_0x26404c[_0x4f34fd('0x5e8')]({'title':_0x2fc492[_0x4f34fd('0x1b51')]?_0x4f34fd('0x15d1')+_0x2fc492[_0x4f34fd('0x1b51')]+_0x4f34fd('0x1b0b')+_0x2fc492[_0x4f34fd('0x22ce')]:_0x4f34fd('0x1827'),'msg':_0x2fc492['data']?JSON[_0x4f34fd('0x1be0')](_0x2fc492['data']):_0x2fc492['toString']()});}):_0xc9ce35[_0x5d4a1c('0xbb3')][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0x1338'),'nolimit':_0x5d4a1c('0x1001')})[_0x5d4a1c('0x1714')]['then'](function(_0x46cb70){const _0x3569a0=_0x5d4a1c;_0x4d5478[_0x3569a0('0xc0c')]=_0x46cb70['rows']||[];})[_0x5d4a1c('0x2788')](function(){const _0x50de3f=_0x5d4a1c;return _0xc9ce35['userProfileSection']['get']({'userProfileId':_0x4d5478[_0x50de3f('0x9cb')][_0x50de3f('0x237f')],'sectionId':0x197})[_0x50de3f('0x1714')];})['then'](function(_0x307593){const _0x356873=_0x5d4a1c,_0x1e70c4=_0x307593&&_0x307593[_0x356873('0x25df')]?_0x307593[_0x356873('0x25df')][0x0]:null;if(!_0x1e70c4)return _0xc9ce35[_0x356873('0xbb3')][_0x356873('0x1335')]({'fields':_0x356873('0x1338'),'nolimit':_0x356873('0x1001'),'defaultEntry':0x1})[_0x356873('0x1714')][_0x356873('0x2788')](function(_0x160527){const _0x9e563=_0x356873;_0x4d5478[_0x9e563('0xc0c')]=_0x160527['rows']||[];});else{if(!_0x1e70c4[_0x356873('0x1c0a')])return _0xc9ce35[_0x356873('0x1050')]['get']({'sectionId':_0x1e70c4['id']})[_0x356873('0x1714')][_0x356873('0x2788')](function(_0x24ee9e){const _0x341812=_0x356873,_0x271321=_0x283545()[_0x341812('0x155d')](_0x24ee9e[_0x341812('0x25df')],function(_0x893550){return _0x283545()['find'](_0x4d5478['musiconholds'],{'id':_0x893550['resourceId']});});let _0x4fd7d4=null;_0x4d5478[_0x341812('0x1895')]&&(_0x4fd7d4=_0x283545()[_0x341812('0x20e8')](_0x4d5478[_0x341812('0xc0c')],{'name':_0x4d5478[_0x341812('0x1895')][_0x341812('0xefd')]}));if(_0x4fd7d4&&!_0x283545()[_0x341812('0xc5d')](_0x271321,['id',_0x4fd7d4['id']])){const _0x11c1f3=_0x283545()[_0x341812('0x20e8')](_0x4d5478['musiconholds'],{'id':_0x4fd7d4['id']});_0x11c1f3[_0x341812('0x3bf')]=![],_0x271321['push'](_0x11c1f3);}_0x4d5478[_0x341812('0xc0c')]=_0x271321;});}})[_0x5d4a1c('0x1cb5')](function(_0x356b5e){const _0x3a97bb=_0x5d4a1c;_0x26404c['error']({'title':_0x356b5e[_0x3a97bb('0x1b51')]?_0x3a97bb('0x15d1')+_0x356b5e[_0x3a97bb('0x1b51')]+_0x3a97bb('0x1b0b')+_0x356b5e['statusText']:_0x3a97bb('0x205b'),'msg':_0x356b5e['data']?JSON[_0x3a97bb('0x1be0')](_0x356b5e[_0x3a97bb('0x11fc')]):_0x356b5e['toString']()});}),_0x48e0bb[_0x5d4a1c('0x1516')](_0x5d4a1c('0xe23'))?_0xc9ce35[_0x5d4a1c('0x2549')][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0x1338'),'sort':_0x5d4a1c('0x1a8d')})[_0x5d4a1c('0x1714')][_0x5d4a1c('0x2788')](function(_0x132213){const _0x5cdd95=_0x5d4a1c;_0x4d5478['trunks']=_0x132213[_0x5cdd95('0x25df')]||[];})['catch'](function(_0x17b181){const _0x40160c=_0x5d4a1c;_0x26404c[_0x40160c('0x5e8')]({'title':_0x17b181[_0x40160c('0x1b51')]?_0x40160c('0x15d1')+_0x17b181[_0x40160c('0x1b51')]+'\x20-\x20'+_0x17b181[_0x40160c('0x22ce')]:_0x40160c('0x119d'),'msg':_0x17b181['data']?JSON[_0x40160c('0x1be0')](_0x17b181['data']):_0x17b181[_0x40160c('0x17df')]()});}):_0xc9ce35['trunk'][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0x1338'),'sort':_0x5d4a1c('0x1a8d')})[_0x5d4a1c('0x1714')][_0x5d4a1c('0x2788')](function(_0x480d73){const _0xb674c5=_0x5d4a1c;_0x4d5478[_0xb674c5('0x20f2')]=_0x480d73[_0xb674c5('0x25df')]||[];})[_0x5d4a1c('0x2788')](function(){const _0x5816cd=_0x5d4a1c;return _0xc9ce35[_0x5816cd('0xec9')]['get']({'userProfileId':_0x4d5478[_0x5816cd('0x9cb')][_0x5816cd('0x237f')],'sectionId':0x3f3})[_0x5816cd('0x1714')];})[_0x5d4a1c('0x2788')](function(_0x26753e){const _0x260711=_0x5d4a1c,_0x2951b8=_0x26753e&&_0x26753e[_0x260711('0x25df')]?_0x26753e[_0x260711('0x25df')][0x0]:null;if(!_0x2951b8){const _0xc1a720=[];let _0xb3d5c8=null;_0x4d5478[_0x260711('0x1895')]&&(_0xb3d5c8=_0x283545()[_0x260711('0x20e8')](_0x4d5478[_0x260711('0x20f2')],{'id':Number(_0x4d5478['queueCampaign']['TrunkId'])}));for(let _0x51e442=0x0;_0x51e442<_0x4d5478[_0x260711('0x20f2')][_0x260711('0x2566')];_0x51e442++){_0xb3d5c8&&_0x4d5478[_0x260711('0x20f2')][_0x51e442]['id']===_0xb3d5c8['id']&&(_0x4d5478[_0x260711('0x20f2')][_0x51e442][_0x260711('0x3bf')]=![],_0xc1a720[_0x260711('0x13e3')](_0x4d5478['trunks'][_0x51e442]));}_0x4d5478[_0x260711('0x20f2')]=_0xc1a720;}else{if(!_0x2951b8[_0x260711('0x1c0a')])return _0xc9ce35['userProfileResource'][_0x260711('0x1335')]({'sectionId':_0x2951b8['id']})[_0x260711('0x1714')][_0x260711('0x2788')](function(_0x2c7fbb){const _0x3209e6=_0x260711,_0x57bcd8=_0x283545()[_0x3209e6('0x155d')](_0x2c7fbb[_0x3209e6('0x25df')],function(_0x772101){const _0x425307=_0x3209e6;return _0x283545()[_0x425307('0x20e8')](_0x4d5478[_0x425307('0x20f2')],{'id':_0x772101[_0x425307('0x2707')]});});let _0x23933f=null;_0x4d5478[_0x3209e6('0x1895')]&&(_0x23933f=_0x283545()[_0x3209e6('0x20e8')](_0x4d5478[_0x3209e6('0x20f2')],{'id':Number(_0x4d5478[_0x3209e6('0x1895')]['TrunkId'])}));if(_0x23933f&&!_0x283545()[_0x3209e6('0xc5d')](_0x57bcd8,['id',_0x23933f['id']])){const _0x5bd62f=_0x283545()['find'](_0x4d5478['trunks'],{'id':_0x23933f['id']});_0x5bd62f[_0x3209e6('0x3bf')]=![],_0x57bcd8['push'](_0x5bd62f);}_0x4d5478[_0x3209e6('0x20f2')]=_0x57bcd8;});}})['catch'](function(_0x3f21de){const _0x255911=_0x5d4a1c;_0x26404c[_0x255911('0x5e8')]({'title':_0x3f21de[_0x255911('0x1b51')]?_0x255911('0x15d1')+_0x3f21de[_0x255911('0x1b51')]+_0x255911('0x1b0b')+_0x3f21de[_0x255911('0x22ce')]:_0x255911('0xdb5'),'msg':_0x3f21de[_0x255911('0x11fc')]?JSON[_0x255911('0x1be0')](_0x3f21de[_0x255911('0x11fc')]):_0x3f21de[_0x255911('0x17df')]()});}),_0x48e0bb[_0x5d4a1c('0x1516')](_0x5d4a1c('0xe23'))?_0xc9ce35[_0x5d4a1c('0x163a')][_0x5d4a1c('0x1335')]({'fields':'id,name','sort':'name'})[_0x5d4a1c('0x1714')][_0x5d4a1c('0x2788')](function(_0x13bf19){const _0x27b446=_0x5d4a1c;_0x4d5478[_0x27b446('0x18f9')]=_0x13bf19[_0x27b446('0x25df')]||[];})[_0x5d4a1c('0x1cb5')](function(_0x29cbc9){const _0x2f64a8=_0x5d4a1c;_0x26404c[_0x2f64a8('0x5e8')]({'title':_0x29cbc9['status']?_0x2f64a8('0x15d1')+_0x29cbc9['status']+_0x2f64a8('0x1b0b')+_0x29cbc9[_0x2f64a8('0x22ce')]:_0x2f64a8('0x123a'),'msg':_0x29cbc9[_0x2f64a8('0x11fc')]?JSON[_0x2f64a8('0x1be0')](_0x29cbc9[_0x2f64a8('0x11fc')]):_0x29cbc9[_0x2f64a8('0x17df')]()});}):_0xc9ce35[_0x5d4a1c('0x163a')]['get']({'fields':_0x5d4a1c('0x1338'),'sort':_0x5d4a1c('0x1a8d')})['$promise'][_0x5d4a1c('0x2788')](function(_0x43020b){const _0x4189cf=_0x5d4a1c;_0x4d5478[_0x4189cf('0x18f9')]=_0x43020b[_0x4189cf('0x25df')]||[];})[_0x5d4a1c('0x2788')](function(){const _0x4906eb=_0x5d4a1c;return _0xc9ce35[_0x4906eb('0xec9')]['get']({'userProfileId':_0x4d5478[_0x4906eb('0x9cb')][_0x4906eb('0x237f')],'sectionId':0x44f})[_0x4906eb('0x1714')];})[_0x5d4a1c('0x2788')](function(_0x37e4f5){const _0x48cfbd=_0x5d4a1c,_0x488cf7=_0x37e4f5&&_0x37e4f5[_0x48cfbd('0x25df')]?_0x37e4f5[_0x48cfbd('0x25df')][0x0]:null;if(!_0x488cf7){const _0x329734=[];let _0x368207=null;_0x4d5478[_0x48cfbd('0x1895')]&&(_0x368207=_0x283545()[_0x48cfbd('0x20e8')](_0x4d5478[_0x48cfbd('0x18f9')],{'name':_0x4d5478[_0x48cfbd('0x1895')]['dialQueueProject']}));for(let _0x241a0c=0x0;_0x241a0c<_0x4d5478['projects'][_0x48cfbd('0x2566')];_0x241a0c++){_0x368207&&_0x4d5478[_0x48cfbd('0x18f9')][_0x241a0c]['id']===_0x368207['id']&&(_0x4d5478[_0x48cfbd('0x18f9')][_0x241a0c][_0x48cfbd('0x3bf')]=![],_0x329734[_0x48cfbd('0x13e3')](_0x4d5478[_0x48cfbd('0x18f9')][_0x241a0c]));}_0x4d5478[_0x48cfbd('0x18f9')]=_0x329734;}else{if(!_0x488cf7[_0x48cfbd('0x1c0a')])return _0xc9ce35[_0x48cfbd('0x1050')]['get']({'sectionId':_0x488cf7['id']})['$promise']['then'](function(_0x23d088){const _0x99045d=_0x48cfbd,_0x199a6a=_0x283545()['map'](_0x23d088['rows'],function(_0xdef457){const _0x3cfcdf=a0_0x14e7;return _0x283545()[_0x3cfcdf('0x20e8')](_0x4d5478[_0x3cfcdf('0x18f9')],{'id':_0xdef457['resourceId']});});let _0x2c2aaa=null;_0x4d5478[_0x99045d('0x1895')]&&(_0x2c2aaa=_0x283545()[_0x99045d('0x20e8')](_0x4d5478[_0x99045d('0x18f9')],{'name':_0x4d5478['queueCampaign'][_0x99045d('0x1030')]}));if(_0x2c2aaa&&!_0x283545()[_0x99045d('0xc5d')](_0x199a6a,['id',_0x2c2aaa['id']])){const _0x28cd63=_0x283545()[_0x99045d('0x20e8')](_0x4d5478[_0x99045d('0x18f9')],{'id':_0x2c2aaa['id']});_0x28cd63[_0x99045d('0x3bf')]=![],_0x199a6a[_0x99045d('0x13e3')](_0x28cd63);}_0x4d5478['projects']=_0x199a6a;});}})[_0x5d4a1c('0x1cb5')](function(_0x4580d4){const _0x3f2efc=_0x5d4a1c;_0x26404c[_0x3f2efc('0x5e8')]({'title':_0x4580d4[_0x3f2efc('0x1b51')]?_0x3f2efc('0x15d1')+_0x4580d4[_0x3f2efc('0x1b51')]+_0x3f2efc('0x1b0b')+_0x4580d4['statusText']:_0x3f2efc('0x1d8c'),'msg':_0x4580d4[_0x3f2efc('0x11fc')]?JSON['stringify'](_0x4580d4['data']):_0x4580d4[_0x3f2efc('0x17df')]()});}),_0x48e0bb[_0x5d4a1c('0x1516')]('admin')?_0xc9ce35[_0x5d4a1c('0x2630')][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0x1338'),'sort':_0x5d4a1c('0x1a8d'),'IntervalId':'null'})[_0x5d4a1c('0x1714')][_0x5d4a1c('0x2788')](function(_0x90f264){const _0x5b8574=_0x5d4a1c;_0x4d5478[_0x5b8574('0x2630')]=_0x90f264[_0x5b8574('0x25df')]||[];})['catch'](function(_0xa9cdc){const _0x1c5380=_0x5d4a1c;_0x26404c[_0x1c5380('0x5e8')]({'title':_0xa9cdc[_0x1c5380('0x1b51')]?_0x1c5380('0x15d1')+_0xa9cdc['status']+_0x1c5380('0x1b0b')+_0xa9cdc[_0x1c5380('0x22ce')]:_0x1c5380('0x2332'),'msg':_0xa9cdc[_0x1c5380('0x11fc')]?JSON[_0x1c5380('0x1be0')](_0xa9cdc[_0x1c5380('0x11fc')]):_0xa9cdc[_0x1c5380('0x17df')]()});}):_0xc9ce35[_0x5d4a1c('0x2630')]['get']({'fields':_0x5d4a1c('0x1338'),'sort':_0x5d4a1c('0x1a8d'),'IntervalId':_0x5d4a1c('0x954')})['$promise'][_0x5d4a1c('0x2788')](function(_0x140248){const _0x5e44f8=_0x5d4a1c;_0x4d5478[_0x5e44f8('0x2630')]=_0x140248[_0x5e44f8('0x25df')]||[];})['then'](function(){const _0x441ad6=_0x5d4a1c;return _0xc9ce35[_0x441ad6('0xec9')][_0x441ad6('0x1335')]({'userProfileId':_0x4d5478[_0x441ad6('0x9cb')][_0x441ad6('0x237f')],'sectionId':0x3ec})[_0x441ad6('0x1714')];})[_0x5d4a1c('0x2788')](function(_0x418a11){const _0x5995b4=_0x5d4a1c,_0x5c1479=_0x418a11&&_0x418a11[_0x5995b4('0x25df')]?_0x418a11[_0x5995b4('0x25df')][0x0]:null;if(!_0x5c1479){const _0x2cd312=[];let _0x3e69ba=null;_0x4d5478[_0x5995b4('0x1895')]&&(_0x3e69ba=_0x283545()[_0x5995b4('0x20e8')](_0x4d5478[_0x5995b4('0x2630')],{'id':Number(_0x4d5478['queueCampaign']['IntervalId'])}));for(let _0x4a1f55=0x0;_0x4a1f55<_0x4d5478[_0x5995b4('0x2630')][_0x5995b4('0x2566')];_0x4a1f55++){_0x3e69ba&&_0x4d5478[_0x5995b4('0x2630')][_0x4a1f55]['id']===_0x3e69ba['id']&&(_0x4d5478[_0x5995b4('0x2630')][_0x4a1f55][_0x5995b4('0x3bf')]=![],_0x2cd312[_0x5995b4('0x13e3')](_0x4d5478[_0x5995b4('0x2630')][_0x4a1f55]));}_0x4d5478['interval']=_0x2cd312;}else{if(!_0x5c1479['autoAssociation'])return _0xc9ce35[_0x5995b4('0x1050')][_0x5995b4('0x1335')]({'sectionId':_0x5c1479['id']})[_0x5995b4('0x1714')][_0x5995b4('0x2788')](function(_0x4c6b65){const _0x461012=_0x5995b4,_0x6fd3ef=_0x283545()[_0x461012('0x155d')](_0x4c6b65[_0x461012('0x25df')],function(_0x35d5d2){const _0x37ffab=_0x461012;return _0x283545()[_0x37ffab('0x20e8')](_0x4d5478[_0x37ffab('0x2630')],{'id':_0x35d5d2[_0x37ffab('0x2707')]});});let _0xa6443f=null;_0x4d5478[_0x461012('0x1895')]&&(_0xa6443f=_0x283545()['find'](_0x4d5478[_0x461012('0x2630')],{'id':Number(_0x4d5478['queueCampaign'][_0x461012('0x20d0')])}));if(_0xa6443f&&!_0x283545()[_0x461012('0xc5d')](_0x6fd3ef,['id',_0xa6443f['id']])){const _0x3a989b=_0x283545()[_0x461012('0x20e8')](_0x4d5478['interval'],{'id':_0xa6443f['id']});_0x3a989b['canSelect']=![],_0x6fd3ef['push'](_0x3a989b);}_0x4d5478[_0x461012('0x2630')]=_0x6fd3ef;});}})['catch'](function(_0x592475){const _0x12a4db=_0x5d4a1c;_0x26404c[_0x12a4db('0x5e8')]({'title':_0x592475[_0x12a4db('0x1b51')]?_0x12a4db('0x15d1')+_0x592475[_0x12a4db('0x1b51')]+_0x12a4db('0x1b0b')+_0x592475['statusText']:'SYSTEM:GETinterval','msg':_0x592475[_0x12a4db('0x11fc')]?JSON[_0x12a4db('0x1be0')](_0x592475[_0x12a4db('0x11fc')]):_0x592475[_0x12a4db('0x17df')]()});}),_0x48e0bb[_0x5d4a1c('0x1516')](_0x5d4a1c('0xe23'))?_0xc9ce35[_0x5d4a1c('0x619')]['get']({'fields':_0x5d4a1c('0xcfa'),'sort':_0x5d4a1c('0x1a8d'),'nolimit':_0x5d4a1c('0x1001')})[_0x5d4a1c('0x1714')]['then'](function(_0x2c1d81){const _0x475b64=_0x5d4a1c;_0x4d5478[_0x475b64('0x225d')]=_0x2c1d81[_0x475b64('0x25df')]||[];})['catch'](function(_0xd27c03){const _0x5c3169=_0x5d4a1c;_0x26404c[_0x5c3169('0x5e8')]({'title':_0xd27c03[_0x5c3169('0x1b51')]?_0x5c3169('0x15d1')+_0xd27c03[_0x5c3169('0x1b51')]+'\x20-\x20'+_0xd27c03[_0x5c3169('0x22ce')]:_0x5c3169('0x10d8'),'msg':_0xd27c03[_0x5c3169('0x11fc')]?JSON[_0x5c3169('0x1be0')](_0xd27c03[_0x5c3169('0x11fc')]):_0xd27c03[_0x5c3169('0x17df')]()});}):_0xc9ce35['pause'][_0x5d4a1c('0x1335')]({'fields':_0x5d4a1c('0xcfa'),'sort':_0x5d4a1c('0x1a8d'),'nolimit':_0x5d4a1c('0x1001')})[_0x5d4a1c('0x1714')][_0x5d4a1c('0x2788')](function(_0x55dc70){const _0x89b624=_0x5d4a1c;_0x4d5478['pauses']=_0x55dc70[_0x89b624('0x25df')]||[];})[_0x5d4a1c('0x2788')](function(){const _0x2a1a93=_0x5d4a1c;return _0xc9ce35['userProfileSection']['get']({'userProfileId':_0x4d5478[_0x2a1a93('0x9cb')]['userProfileId'],'sectionId':0x3ed})['$promise'];})[_0x5d4a1c('0x2788')](function(_0x406ad4){const _0x7a48b0=_0x5d4a1c,_0x37e115=_0x406ad4&&_0x406ad4[_0x7a48b0('0x25df')]?_0x406ad4[_0x7a48b0('0x25df')][0x0]:null;if(!_0x37e115)_0x4d5478[_0x7a48b0('0x225d')]=[];else{if(!_0x37e115[_0x7a48b0('0x1c0a')])return _0xc9ce35[_0x7a48b0('0x1050')]['get']({'sectionId':_0x37e115['id']})[_0x7a48b0('0x1714')][_0x7a48b0('0x2788')](function(_0x110b5b){const _0x44d772=_0x7a48b0,_0x34949e=_0x283545()['map'](_0x110b5b[_0x44d772('0x25df')],function(_0x17f495){const _0x3bdebb=_0x44d772;return _0x283545()[_0x3bdebb('0x20e8')](_0x4d5478[_0x3bdebb('0x225d')],{'id':_0x17f495[_0x3bdebb('0x2707')]});});_0x4d5478[_0x44d772('0x225d')]['forEach'](function(_0x2b2e88){const _0x828329=_0x44d772;!_0x283545()[_0x828329('0xc5d')](_0x34949e,['id',_0x2b2e88['id']])&&(_0x2b2e88[_0x828329('0x3bf')]=![]),_0x34949e[_0x828329('0x13e3')](_0x2b2e88);}),_0x4d5478[_0x44d772('0x225d')]=_0x34949e;});}})[_0x5d4a1c('0x1cb5')](function(_0x19a29b){const _0x10c66f=_0x5d4a1c;_0x26404c[_0x10c66f('0x5e8')]({'title':_0x19a29b['status']?_0x10c66f('0x15d1')+_0x19a29b[_0x10c66f('0x1b51')]+_0x10c66f('0x1b0b')+_0x19a29b['statusText']:'SYSTEM:GETpauses','msg':_0x19a29b[_0x10c66f('0x11fc')]?JSON['stringify'](_0x19a29b[_0x10c66f('0x11fc')]):_0x19a29b[_0x10c66f('0x17df')]()});});function _0x223dd4(_0x152f20,_0x281b99){const _0x1fe4f2=_0x5d4a1c;_0x3179d5[_0x1fe4f2('0x2fa')]({'controller':_0x1fe4f2('0x925'),'controllerAs':'vm','templateUrl':_0x1ae943,'parent':angular[_0x1fe4f2('0x16b1')](_0x2a61c5[_0x1fe4f2('0x945')]),'targetEvent':_0x281b99,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x152f20,'queueCampaigns':_0x4d5478[_0x1fe4f2('0x12c0')]?_0x4d5478[_0x1fe4f2('0x12c0')][_0x1fe4f2('0x25df')]:[],'crudPermissions':_0x4d5478[_0x1fe4f2('0xe28')]}});}function _0x100abd(_0x421e64,_0x438480){const _0x555404=_0x5d4a1c;_0x3179d5[_0x555404('0x2fa')]({'controller':_0x555404('0xcce'),'controllerAs':'vm','templateUrl':_0x313b18,'parent':angular[_0x555404('0x16b1')](_0x2a61c5['body']),'targetEvent':_0x438480,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x421e64,'queueCampaigns':_0x4d5478['queueCampaigns']?_0x4d5478[_0x555404('0x12c0')]['rows']:[],'crudPermissions':_0x4d5478[_0x555404('0xe28')]}});}function _0x28b6d5(_0x4c7570,_0x166116){const _0x15198a=_0x5d4a1c;_0x3179d5[_0x15198a('0x2fa')]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x5d9f8f,'parent':angular['element'](_0x2a61c5[_0x15198a('0x945')]),'targetEvent':_0x166116,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4c7570,'queueCampaigns':_0x4d5478['queueCampaigns']?_0x4d5478[_0x15198a('0x12c0')][_0x15198a('0x25df')]:[],'crudPermissions':_0x4d5478[_0x15198a('0xe28')]}});}function _0x443bed(_0x38e572,_0x29c0e6){const _0x3e8869=_0x5d4a1c;_0x3179d5[_0x3e8869('0x2fa')]({'controller':_0x3e8869('0x1794'),'controllerAs':'vm','templateUrl':_0x3fc3db,'parent':angular[_0x3e8869('0x16b1')](_0x2a61c5['body']),'targetEvent':_0x29c0e6,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x38e572,'queueCampaigns':_0x4d5478['queueCampaigns']?_0x4d5478[_0x3e8869('0x12c0')][_0x3e8869('0x25df')]:[],'crudPermissions':_0x4d5478[_0x3e8869('0xe28')]}});}function _0x2e25c2(_0xe7f5ba,_0x1aedef){const _0x239919=_0x5d4a1c;_0x3179d5['show']({'controller':_0x239919('0x715'),'controllerAs':'vm','templateUrl':_0x112656,'parent':angular['element'](_0x2a61c5[_0x239919('0x945')]),'targetEvent':_0x1aedef,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xe7f5ba,'queueCampaigns':_0x4d5478['queueCampaigns']?_0x4d5478[_0x239919('0x12c0')][_0x239919('0x25df')]:[],'crudPermissions':_0x4d5478[_0x239919('0xe28')],'realtime':![]}});}function _0x5a39ff(_0x374842,_0x5792c2){const _0x2eefd2=_0x5d4a1c,_0xdaaedf=_0x5792c2['id'];_0xc9ce35[_0x2eefd2('0x2043')][_0x2eefd2('0xd1e')]({'id':_0x374842,'ids':_0xdaaedf})[_0x2eefd2('0x1714')]['then'](function(){const _0x1dff49=_0x2eefd2;return _0xc9ce35[_0x1dff49('0x2043')]['addLists']({'id':_0x374842,'ids':_0xdaaedf,'dialCheckDuplicateType':_0x1dff49('0x173d')})[_0x1dff49('0x1714')];})[_0x2eefd2('0x2788')](function(){const _0xec6628=_0x2eefd2;_0x26404c[_0xec6628('0x173b')]({'title':'Reset\x20Succesfull','msg':_0xec6628('0x1b3')+_0x5792c2[_0xec6628('0x1a8d')]+_0xec6628('0x2611')});})[_0x2eefd2('0x1cb5')](function(_0x5123d9){const _0x243bc7=_0x2eefd2;_0x26404c[_0x243bc7('0x5e8')]({'title':_0x5123d9[_0x243bc7('0x1b51')]?'API:'+_0x5123d9[_0x243bc7('0x1b51')]+'\x20-\x20'+_0x5123d9[_0x243bc7('0x22ce')]:_0x243bc7('0x59a'),'msg':_0x5123d9['status']?JSON[_0x243bc7('0x1be0')](_0x5123d9[_0x243bc7('0x11fc')]):_0x5123d9[_0x243bc7('0x17df')]()});});}function _0x5030a7(_0x32b113,_0x2de63f){const _0x40cc3d=_0x5d4a1c;_0xc9ce35[_0x40cc3d('0x2043')][_0x40cc3d('0xcdd')]({'id':_0x32b113['id'],'fields':_0x40cc3d('0x1338'),'nolimit':!![]})[_0x40cc3d('0x1714')][_0x40cc3d('0x2788')](function(_0x2e0228){const _0x5796cb=_0x40cc3d;if(_0x283545()[_0x5796cb('0x1015')](_0x2e0228[_0x5796cb('0x25df')])||_0x283545()[_0x5796cb('0x213d')](_0x2e0228[_0x5796cb('0x25df')]))_0x26404c['info']({'title':'Campaign\x20Without\x20Lists'});else{if(_0x2e0228[_0x5796cb('0x25df')]['length']===0x1){const _0x561165=_0x3179d5['confirm']()[_0x5796cb('0x14e4')](_0x5796cb('0x22ef')+_0x2e0228[_0x5796cb('0x25df')][0x0][_0x5796cb('0x1a8d')]+'\x20?')[_0x5796cb('0x93e')](_0x5796cb('0x1670')+_0x2e0228[_0x5796cb('0x25df')][0x0][_0x5796cb('0x1a8d')]+_0x5796cb('0x229e')+_0x5796cb('0x917'))['ariaLabel'](_0x5796cb('0xa14'))[_0x5796cb('0x24d0')](_0x2de63f)['ok']('OK')[_0x5796cb('0x1801')]('CANCEL');_0x3179d5[_0x5796cb('0x2fa')](_0x561165)[_0x5796cb('0x2788')](function(){const _0x215594=_0x5796cb;_0x5a39ff(_0x4d5478[_0x215594('0x1895')]['id'],_0x2e0228['rows'][0x0]);});}else _0x3179d5['show']({'controller':_0x5796cb('0x682'),'controllerAs':'vm','templateUrl':_0x1813a1,'parent':angular[_0x5796cb('0x16b1')](_0x2a61c5[_0x5796cb('0x945')]),'targetEvent':_0x2de63f,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x32b113,'listsCampaign':_0x2e0228?_0x2e0228['rows']:[]}});}})[_0x40cc3d('0x1cb5')](function(_0x1196d6){const _0x50126d=_0x40cc3d;_0x26404c['error']({'title':_0x1196d6[_0x50126d('0x1b51')]?_0x50126d('0x15d1')+_0x1196d6['status']+_0x50126d('0x1b0b')+_0x1196d6[_0x50126d('0x22ce')]:_0x50126d('0x1235'),'msg':_0x1196d6['status']?JSON[_0x50126d('0x1be0')](_0x1196d6['data']):_0x1196d6[_0x50126d('0x17df')]()});});}function _0x53f0a9(){const _0x53ef48=_0x5d4a1c;if(_0x48e0bb[_0x53ef48('0x1516')](_0x53ef48('0xe23')))_0xb15f9b['go'](_0x53ef48('0x792'),{});else return _0xc9ce35[_0x53ef48('0xec9')][_0x53ef48('0x1335')]({'userProfileId':_0x48e0bb[_0x53ef48('0x24cc')]()[_0x53ef48('0x237f')],'sectionId':0x5e6})['$promise']['then'](function(_0x565e5d){const _0x12c507=_0x53ef48,_0x30c57b=_0x565e5d&&_0x565e5d['rows']?_0x565e5d[_0x12c507('0x25df')][0x0]:null;_0x30c57b&&_0x30c57b[_0x12c507('0x14f4')]?_0xb15f9b['go']('app.motiondialer.realtime.queues',{}):_0x26404c[_0x12c507('0x2276')]({'title':_0x548827[_0x12c507('0x1b11')](_0x12c507('0x5be')),'msg':_0x548827[_0x12c507('0x1b11')](_0x12c507('0x1abc'))});})[_0x53ef48('0x1cb5')](function(_0x2310f5){const _0x275520=_0x53ef48;_0x26404c['error']({'title':_0x2310f5[_0x275520('0x1b51')]?'API:'+_0x2310f5[_0x275520('0x1b51')]+'\x20-\x20'+_0x2310f5[_0x275520('0x22ce')]:_0x275520('0x2292'),'msg':_0x2310f5['status']?JSON[_0x275520('0x1be0')](_0x2310f5['data']):_0x2310f5[_0x275520('0x17df')]()});});}function _0x70b3d5(){const _0x2865a3=_0x5d4a1c;_0xb15f9b['go'](_0x2865a3('0x1175'),{},{'reload':_0x2865a3('0x1175')});}function _0x14867a(){const _0xa9e603=_0x5d4a1c;_0xc9ce35[_0xa9e603('0x2043')][_0xa9e603('0x2740')]({'id':_0x4d5478['queueCampaign']['id']},_0x4d5478[_0xa9e603('0x1895')])[_0xa9e603('0x1714')]['then'](function(){const _0x43595e=_0xa9e603;_0x26404c[_0x43595e('0x173b')]({'title':_0x43595e('0x2394'),'msg':_0x4d5478[_0x43595e('0x1895')][_0x43595e('0x1a8d')]?_0x4d5478[_0x43595e('0x1895')][_0x43595e('0x1a8d')]+_0x43595e('0x6f8'):''});})[_0xa9e603('0x1cb5')](function(_0x5d906a){const _0x3d9d84=_0xa9e603;_0x26404c['error']({'title':_0x5d906a[_0x3d9d84('0x1b51')]?_0x3d9d84('0x15d1')+_0x5d906a[_0x3d9d84('0x1b51')]+_0x3d9d84('0x1b0b')+_0x5d906a[_0x3d9d84('0x22ce')]:'SYSTEM:GETvoiceQueue','msg':_0x5d906a['data']?JSON[_0x3d9d84('0x1be0')](_0x5d906a[_0x3d9d84('0x11fc')]):_0x5d906a['toString']()});});}}const _0x2de666=_0x22511d;_0x257de0['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),'$translate',_0x34e79e('0x12c0'),'userProfile',_0x34e79e('0xec9'),_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x257de0(_0x5327a8,_0x1f1fc9,_0x2068b1,_0x5a8885,_0x34ac87,_0x26f7c3,_0x4bc365,_0xf7e03b,_0x2c3bdd,_0x23e502,_0x1af17c,_0xc2b3e,_0x3acd37,_0x51a9a2,_0x10f8b5,_0x6ed60d,_0xda4a7d){const _0x1eb36b=_0x34e79e,_0xe46d0=this;_0xe46d0[_0x1eb36b('0x130d')]=_0x6ed60d,_0xe46d0[_0x1eb36b('0x1af0')]=_0xda4a7d,_0xe46d0[_0x1eb36b('0x9cb')]=_0x10f8b5['getCurrentUser'](),_0xe46d0[_0x1eb36b('0x12c0')]=_0x2c3bdd||{'count':0x0,'rows':[]},_0xe46d0['userProfile']=_0x23e502,_0xe46d0[_0x1eb36b('0xec9')]=_0x1af17c&&_0x1af17c[_0x1eb36b('0x338')]==0x1?_0x1af17c[_0x1eb36b('0x25df')][0x0]:null,_0xe46d0['crudPermissions']=_0x10f8b5[_0x1eb36b('0x157e')](_0xe46d0[_0x1eb36b('0xec9')]?_0xe46d0[_0x1eb36b('0xec9')][_0x1eb36b('0xe28')]:null),_0xe46d0[_0x1eb36b('0x26a9')]=_0x1eb36b('0x12c0'),_0xe46d0[_0x1eb36b('0x2278')]='',_0xe46d0[_0x1eb36b('0x25e2')]=null,_0xe46d0[_0x1eb36b('0x24ca')]=[],_0xe46d0['query']={'fields':_0x1eb36b('0x7ec'),'type':'outbound','sort':_0x1eb36b('0x1cee'),'channel':_0x1eb36b('0x1f60'),'limit':0xa,'page':0x1},_0xe46d0[_0x1eb36b('0x18c9')]=_0x283545()[_0x1eb36b('0x13cf')]([{'option':_0x1eb36b('0xeec'),'value':_0x1eb36b('0x1ac1')},{'option':_0x1eb36b('0x13d2'),'value':_0x1eb36b('0x1c4')},{'option':_0x1eb36b('0x4b7'),'value':_0x1eb36b('0x2057')}],function(_0x6cd0e8){const _0x208d2c=_0x1eb36b;return _0x283545()[_0x208d2c('0x10a4')](_0x6cd0e8[_0x208d2c('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0['arrayautopause']=_0x283545()[_0x1eb36b('0x13cf')]([{'option':'Yes','value':_0x1eb36b('0x1b20')},{'option':'No','value':_0x1eb36b('0x2363')}],function(_0xd59ffd){const _0x589999=_0x1eb36b;return _0x283545()[_0x589999('0x10a4')](_0xd59ffd['value'],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x1c5f')]=_0x283545()[_0x1eb36b('0x13cf')]([{'option':_0x1eb36b('0xb23'),'value':_0x1eb36b('0x640')},{'option':'No','value':_0x1eb36b('0x2363')}],function(_0x45dc35){const _0x3a4e13=_0x1eb36b;return _0x283545()[_0x3a4e13('0x10a4')](_0x45dc35[_0x3a4e13('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x12b4')]=_0x283545()['keyBy']([{'option':_0x1eb36b('0xb23'),'value':_0x1eb36b('0x640')},{'option':'No','value':'\x27no\x27'}],function(_0xb9a3f7){const _0x24165d=_0x1eb36b;return _0x283545()[_0x24165d('0x10a4')](_0xb9a3f7[_0x24165d('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0['arraymonitor_format']=_0x283545()[_0x1eb36b('0x13cf')]([{'option':_0x1eb36b('0xeb1'),'value':'\x27\x27'},{'option':_0x1eb36b('0x1c99'),'value':_0x1eb36b('0x13f7')},{'option':_0x1eb36b('0x7d6'),'value':_0x1eb36b('0x1d78')},{'option':'gsm','value':'\x27gsm\x27'}],function(_0x108fde){const _0x34a0d5=_0x1eb36b;return _0x283545()[_0x34a0d5('0x10a4')](_0x108fde[_0x34a0d5('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x273a')]=_0x283545()['keyBy']([{'option':_0x1eb36b('0xb23'),'value':_0x1eb36b('0x640')},{'option':'No','value':_0x1eb36b('0x2363')}],function(_0x40e9bf){const _0x2bc669=_0x1eb36b;return _0x283545()['replace'](_0x40e9bf[_0x2bc669('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x15af')]=_0x283545()[_0x1eb36b('0x13cf')]([{'option':_0x1eb36b('0xb23'),'value':_0x1eb36b('0x640')},{'option':'No','value':_0x1eb36b('0x2363')}],function(_0x2ce9bd){const _0x503f87=_0x1eb36b;return _0x283545()[_0x503f87('0x10a4')](_0x2ce9bd[_0x503f87('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x35a')]=_0x283545()[_0x1eb36b('0x13cf')]([{'option':'Yes','value':_0x1eb36b('0x640')},{'option':'No','value':'\x27no\x27'}],function(_0x1eef8e){const _0x5307ee=_0x1eb36b;return _0x283545()[_0x5307ee('0x10a4')](_0x1eef8e[_0x5307ee('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0['arraydialOrderByScheduledAt']=_0x283545()['keyBy']([{'option':_0x1eb36b('0x739'),'value':_0x1eb36b('0x1fda')},{'option':_0x1eb36b('0x1de8'),'value':_0x1eb36b('0x1ab0')}],function(_0x286843){const _0x384c2e=_0x1eb36b;return _0x283545()[_0x384c2e('0x10a4')](_0x286843[_0x384c2e('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0['arraydialMethod']=_0x283545()['keyBy']([{'option':'Progressive','value':_0x1eb36b('0x15e6')},{'option':_0x1eb36b('0x1037'),'value':'\x27power\x27'},{'option':_0x1eb36b('0x1a3'),'value':'\x27predictive\x27'},{'option':_0x1eb36b('0x809'),'value':_0x1eb36b('0x19e7')},{'option':_0x1eb36b('0x18d0'),'value':_0x1eb36b('0x940')}],function(_0x1b8cc0){const _0x5ae6fb=_0x1eb36b;return _0x283545()[_0x5ae6fb('0x10a4')](_0x1b8cc0['value'],new RegExp('\x27','g'),'');}),_0xe46d0['arraydialPredictiveOptimization']=_0x283545()[_0x1eb36b('0x13cf')]([{'option':_0x1eb36b('0x32f'),'value':_0x1eb36b('0x18f4')},{'option':_0x1eb36b('0x41c'),'value':_0x1eb36b('0x27f1')}],function(_0x5053fa){const _0x3602dc=_0x1eb36b;return _0x283545()[_0x3602dc('0x10a4')](_0x5053fa[_0x3602dc('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x7b8')]=_0x283545()['keyBy']([{'option':_0x1eb36b('0x8b5'),'value':_0x1eb36b('0x228e')},{'option':_0x1eb36b('0x10a3'),'value':_0x1eb36b('0x1d01'),'ngIf':_0x1eb36b('0xd8d')},{'option':_0x1eb36b('0x201c'),'value':_0x1eb36b('0x228c'),'ngIf':_0x1eb36b('0x431')},{'option':_0x1eb36b('0x2619'),'value':_0x1eb36b('0x117'),'ngIf':_0x1eb36b('0x431')},{'option':_0x1eb36b('0x11c7'),'value':'\x27random\x27','ngIf':_0x1eb36b('0x431')},{'option':_0x1eb36b('0x1d2d'),'value':'\x27linear\x27','ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x1eb36b('0x135e'),'value':_0x1eb36b('0x25f9'),'ngIf':_0x1eb36b('0x431')}],function(_0x4ec3ce){const _0x2cf248=_0x1eb36b;return _0x283545()[_0x2cf248('0x10a4')](_0x4ec3ce[_0x2cf248('0x49')],new RegExp('\x27','g'),'');}),_0xe46d0[_0x1eb36b('0x1f7e')]=_0x22a0fc,_0xe46d0[_0x1eb36b('0x15fb')]=_0x5b2820,_0xe46d0['listadddialog']=_0x30341,_0xe46d0['blacklistadddialog']=_0x108d80,_0xe46d0[_0x1eb36b('0xde3')]=_0x3cb246,_0xe46d0['agentadddialog']=_0x353a4f,_0xe46d0[_0x1eb36b('0x1e5')]=_0x15563b,_0xe46d0['gotorealtimegoto']=_0x4893eb,_0xe46d0[_0x1eb36b('0x173b')]=_0x54fc38,_0xe46d0[_0x1eb36b('0x6f3')]=_0x5bb21a,_0xe46d0[_0x1eb36b('0x1c4e')]=_0x368d0e,_0xe46d0[_0x1eb36b('0x266f')]=_0x36d3cc,_0xe46d0['exportSelectedQueueCampaigns']=_0x5527dd,_0xe46d0[_0x1eb36b('0xa9')]=_0x50e232,_0xe46d0[_0x1eb36b('0x86d')]=_0x3eb157,_0xe46d0[_0x1eb36b('0x3f5')]=_0x321603,_0x10f8b5[_0x1eb36b('0x1516')](_0x1eb36b('0xe23'))?_0xc2b3e[_0x1eb36b('0x2549')]['get']({'fields':'id,name','sort':_0x1eb36b('0x1a8d')})['$promise'][_0x1eb36b('0x2788')](function(_0x250e1e){const _0x270305=_0x1eb36b;_0xe46d0[_0x270305('0x20f2')]=_0x250e1e[_0x270305('0x25df')]||[];})[_0x1eb36b('0x1cb5')](function(_0x20f2d5){const _0x17a8c0=_0x1eb36b;_0x51a9a2[_0x17a8c0('0x5e8')]({'title':_0x20f2d5['status']?'API:'+_0x20f2d5[_0x17a8c0('0x1b51')]+'\x20-\x20'+_0x20f2d5[_0x17a8c0('0x22ce')]:_0x17a8c0('0x119d'),'msg':_0x20f2d5['data']?JSON[_0x17a8c0('0x1be0')](_0x20f2d5[_0x17a8c0('0x11fc')]):_0x20f2d5[_0x17a8c0('0x17df')]()});}):_0xc2b3e['trunk']['get']({'fields':_0x1eb36b('0x1338'),'sort':_0x1eb36b('0x1a8d')})[_0x1eb36b('0x1714')]['then'](function(_0x17f71f){const _0x38865d=_0x1eb36b;_0xe46d0[_0x38865d('0x20f2')]=_0x17f71f[_0x38865d('0x25df')]||[];})[_0x1eb36b('0x2788')](function(){const _0x5839b2=_0x1eb36b;return _0xc2b3e['userProfileSection'][_0x5839b2('0x1335')]({'userProfileId':_0xe46d0[_0x5839b2('0x9cb')][_0x5839b2('0x237f')],'sectionId':0x3f3})[_0x5839b2('0x1714')];})['then'](function(_0x30aa00){const _0x3d290d=_0x1eb36b,_0x18b1a4=_0x30aa00&&_0x30aa00['rows']?_0x30aa00[_0x3d290d('0x25df')][0x0]:null;if(!_0x18b1a4){const _0xa96fcb=[],_0x277318=[];_0xe46d0[_0x3d290d('0x12c0')][_0x3d290d('0x25df')][_0x3d290d('0x1534')](function(_0x596329){const _0xdd1b55=_0x3d290d,_0x502437=_0x283545()[_0xdd1b55('0x20e8')](_0xe46d0[_0xdd1b55('0x20f2')],{'id':Number(_0x596329['TrunkId'])});_0x277318[_0xdd1b55('0x13e3')](_0x502437);});for(let _0x35a581=0x0;_0x35a581<_0xe46d0['trunks'][_0x3d290d('0x2566')];_0x35a581++){const _0xd4f2ab=_0x283545()[_0x3d290d('0xc5d')](_0x277318,{'id':_0xe46d0[_0x3d290d('0x20f2')][_0x35a581]['id']});_0xd4f2ab&&(_0xe46d0[_0x3d290d('0x20f2')][_0x35a581][_0x3d290d('0x3bf')]=![],_0xa96fcb[_0x3d290d('0x13e3')](_0xe46d0[_0x3d290d('0x20f2')][_0x35a581]));}_0xe46d0[_0x3d290d('0x20f2')]=_0xa96fcb;}else{if(!_0x18b1a4[_0x3d290d('0x1c0a')])return _0xc2b3e[_0x3d290d('0x1050')][_0x3d290d('0x1335')]({'sectionId':_0x18b1a4['id']})[_0x3d290d('0x1714')][_0x3d290d('0x2788')](function(_0x8f8901){const _0x4ca453=_0x3d290d,_0x5d6d08=_0x283545()[_0x4ca453('0x155d')](_0x8f8901[_0x4ca453('0x25df')],function(_0x1e0c08){const _0x235925=_0x4ca453;return _0x283545()[_0x235925('0x20e8')](_0xe46d0['trunks'],{'id':_0x1e0c08[_0x235925('0x2707')]});});let _0x1c4218=null;_0x1c4218=[],_0xe46d0[_0x4ca453('0x12c0')]['rows'][_0x4ca453('0x1534')](function(_0xd4599){const _0x271fec=_0x4ca453,_0x33b4d6=_0x283545()[_0x271fec('0x20e8')](_0xe46d0[_0x271fec('0x20f2')],{'id':Number(_0xd4599[_0x271fec('0x1854')])});_0x1c4218[_0x271fec('0x13e3')](_0x33b4d6);}),!_0x283545()[_0x4ca453('0x213d')](_0x1c4218)&&_0x1c4218[_0x4ca453('0x1534')](function(_0xcb43d3){const _0x42f4c5=_0x4ca453;if(!_0x283545()[_0x42f4c5('0xc5d')](_0x5d6d08,['id',_0xcb43d3['id']])){const _0x238882=_0x283545()[_0x42f4c5('0x20e8')](_0xe46d0[_0x42f4c5('0x20f2')],{'id':_0xcb43d3['id']});_0x238882[_0x42f4c5('0x3bf')]=![],_0x5d6d08[_0x42f4c5('0x13e3')](_0x238882);}}),_0xe46d0[_0x4ca453('0x20f2')]=_0x5d6d08;});}})[_0x1eb36b('0x1cb5')](function(_0x3c9427){const _0x34c34b=_0x1eb36b;_0x51a9a2[_0x34c34b('0x5e8')]({'title':_0x3c9427[_0x34c34b('0x1b51')]?_0x34c34b('0x15d1')+_0x3c9427[_0x34c34b('0x1b51')]+_0x34c34b('0x1b0b')+_0x3c9427['statusText']:_0x34c34b('0xdb5'),'msg':_0x3c9427[_0x34c34b('0x11fc')]?JSON[_0x34c34b('0x1be0')](_0x3c9427['data']):_0x3c9427['toString']()});}),_0x10f8b5[_0x1eb36b('0x1516')](_0x1eb36b('0xe23'))?_0xc2b3e[_0x1eb36b('0x2630')][_0x1eb36b('0x1335')]({'fields':_0x1eb36b('0x1338'),'sort':_0x1eb36b('0x1a8d'),'IntervalId':_0x1eb36b('0x954')})[_0x1eb36b('0x1714')][_0x1eb36b('0x2788')](function(_0x30041a){const _0x2678d2=_0x1eb36b;_0xe46d0[_0x2678d2('0x2630')]=_0x30041a['rows']||[];})[_0x1eb36b('0x1cb5')](function(_0x429652){const _0x5d22a2=_0x1eb36b;_0x51a9a2[_0x5d22a2('0x5e8')]({'title':_0x429652['status']?_0x5d22a2('0x15d1')+_0x429652[_0x5d22a2('0x1b51')]+_0x5d22a2('0x1b0b')+_0x429652[_0x5d22a2('0x22ce')]:_0x5d22a2('0x2332'),'msg':_0x429652[_0x5d22a2('0x11fc')]?JSON[_0x5d22a2('0x1be0')](_0x429652[_0x5d22a2('0x11fc')]):_0x429652[_0x5d22a2('0x17df')]()});}):_0xc2b3e[_0x1eb36b('0x2630')][_0x1eb36b('0x1335')]({'fields':_0x1eb36b('0x1338'),'sort':_0x1eb36b('0x1a8d'),'IntervalId':'null'})[_0x1eb36b('0x1714')][_0x1eb36b('0x2788')](function(_0x904a6c){const _0x105ae7=_0x1eb36b;_0xe46d0[_0x105ae7('0x2630')]=_0x904a6c[_0x105ae7('0x25df')]||[];})[_0x1eb36b('0x2788')](function(){const _0x55c0a5=_0x1eb36b;return _0xc2b3e[_0x55c0a5('0xec9')][_0x55c0a5('0x1335')]({'userProfileId':_0xe46d0[_0x55c0a5('0x9cb')][_0x55c0a5('0x237f')],'sectionId':0x3ec})[_0x55c0a5('0x1714')];})[_0x1eb36b('0x2788')](function(_0x5f0ab3){const _0x67e5af=_0x1eb36b,_0x23397e=_0x5f0ab3&&_0x5f0ab3[_0x67e5af('0x25df')]?_0x5f0ab3[_0x67e5af('0x25df')][0x0]:null;if(!_0x23397e){const _0x1cb465=[];let _0xadb187=null;_0xe46d0['queueCampaign']&&(_0xadb187=_0x283545()[_0x67e5af('0x20e8')](_0xe46d0['interval'],{'id':Number(_0xe46d0['queueCampaign']['IntervalId'])}));for(let _0xbd3dae=0x0;_0xbd3dae<_0xe46d0[_0x67e5af('0x2630')][_0x67e5af('0x2566')];_0xbd3dae++){_0xadb187&&_0xe46d0[_0x67e5af('0x2630')][_0xbd3dae]['id']===_0xadb187['id']&&(_0xe46d0[_0x67e5af('0x2630')][_0xbd3dae][_0x67e5af('0x3bf')]=![],_0x1cb465[_0x67e5af('0x13e3')](_0xe46d0[_0x67e5af('0x2630')][_0xbd3dae]));}_0xe46d0[_0x67e5af('0x2630')]=_0x1cb465;}else{if(!_0x23397e[_0x67e5af('0x1c0a')])return _0xc2b3e[_0x67e5af('0x1050')][_0x67e5af('0x1335')]({'sectionId':_0x23397e['id']})['$promise']['then'](function(_0x1baaf6){const _0x28e042=_0x67e5af,_0x162a65=_0x283545()[_0x28e042('0x155d')](_0x1baaf6[_0x28e042('0x25df')],function(_0x5d14fc){const _0x54e30a=_0x28e042;return _0x283545()['find'](_0xe46d0[_0x54e30a('0x2630')],{'id':_0x5d14fc[_0x54e30a('0x2707')]});});let _0x1e9d16=null;_0xe46d0['queueCampaign']&&(_0x1e9d16=_0x283545()[_0x28e042('0x20e8')](_0xe46d0[_0x28e042('0x2630')],{'id':Number(_0xe46d0[_0x28e042('0x1895')]['IntervalId'])}));if(_0x1e9d16&&!_0x283545()[_0x28e042('0xc5d')](_0x162a65,['id',_0x1e9d16['id']])){const _0x3b1c9a=_0x283545()[_0x28e042('0x20e8')](_0xe46d0['interval'],{'id':_0x1e9d16['id']});_0x3b1c9a[_0x28e042('0x3bf')]=![],_0x162a65['push'](_0x3b1c9a);}_0xe46d0['interval']=_0x162a65;});}})[_0x1eb36b('0x1cb5')](function(_0x4e7231){const _0x1f55a4=_0x1eb36b;_0x51a9a2[_0x1f55a4('0x5e8')]({'title':_0x4e7231[_0x1f55a4('0x1b51')]?'API:'+_0x4e7231['status']+_0x1f55a4('0x1b0b')+_0x4e7231['statusText']:'SYSTEM:GETinterval','msg':_0x4e7231[_0x1f55a4('0x11fc')]?JSON[_0x1f55a4('0x1be0')](_0x4e7231[_0x1f55a4('0x11fc')]):_0x4e7231[_0x1f55a4('0x17df')]()});});function _0x22a0fc(_0x184af5){const _0xf8af01=_0x1eb36b;_0x2068b1['go']('app.motiondialer.queueCampaigns.edit',{'id':_0x184af5['id'],'queueCampaign':_0x184af5,'crudPermissions':_0xe46d0[_0xf8af01('0xe28')]});}function _0x5b2820(_0x2e1505,_0x2a5052){const _0x32b7fd=_0x1eb36b;_0x34ac87[_0x32b7fd('0x2fa')]({'controller':'QueueCampaigncloneController','controllerAs':'vm','templateUrl':_0x1ae943,'parent':angular['element'](_0x26f7c3[_0x32b7fd('0x945')]),'targetEvent':_0x2a5052,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2e1505,'queueCampaigns':_0xe46d0[_0x32b7fd('0x12c0')]?_0xe46d0[_0x32b7fd('0x12c0')][_0x32b7fd('0x25df')]:[],'crudPermissions':_0xe46d0[_0x32b7fd('0xe28')]}});}function _0x30341(_0x26943e,_0x4a6d86){const _0x22ccf2=_0x1eb36b;_0x34ac87['show']({'controller':_0x22ccf2('0xcce'),'controllerAs':'vm','templateUrl':_0x313b18,'parent':angular[_0x22ccf2('0x16b1')](_0x26f7c3[_0x22ccf2('0x945')]),'targetEvent':_0x4a6d86,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x26943e,'queueCampaigns':_0xe46d0[_0x22ccf2('0x12c0')]?_0xe46d0[_0x22ccf2('0x12c0')][_0x22ccf2('0x25df')]:[],'crudPermissions':_0xe46d0[_0x22ccf2('0xe28')]}});}function _0x108d80(_0x1fd263,_0x1ca65a){const _0x5116da=_0x1eb36b;_0x34ac87[_0x5116da('0x2fa')]({'controller':_0x5116da('0x174b'),'controllerAs':'vm','templateUrl':_0x5d9f8f,'parent':angular[_0x5116da('0x16b1')](_0x26f7c3[_0x5116da('0x945')]),'targetEvent':_0x1ca65a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1fd263,'queueCampaigns':_0xe46d0[_0x5116da('0x12c0')]?_0xe46d0[_0x5116da('0x12c0')][_0x5116da('0x25df')]:[],'crudPermissions':_0xe46d0[_0x5116da('0xe28')]}});}function _0x3cb246(_0x37c11f,_0x49b663){const _0x2d047c=_0x1eb36b;_0x34ac87['show']({'controller':'QueueCampaignteamaddController','controllerAs':'vm','templateUrl':_0x3fc3db,'parent':angular['element'](_0x26f7c3['body']),'targetEvent':_0x49b663,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x37c11f,'queueCampaigns':_0xe46d0['queueCampaigns']?_0xe46d0[_0x2d047c('0x12c0')][_0x2d047c('0x25df')]:[],'crudPermissions':_0xe46d0[_0x2d047c('0xe28')]}});}function _0x353a4f(_0x5b51e3,_0x4b83d7){const _0x586b9a=_0x1eb36b;_0x34ac87[_0x586b9a('0x2fa')]({'controller':_0x586b9a('0x715'),'controllerAs':'vm','templateUrl':_0x112656,'parent':angular[_0x586b9a('0x16b1')](_0x26f7c3['body']),'targetEvent':_0x4b83d7,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5b51e3,'queueCampaigns':_0xe46d0[_0x586b9a('0x12c0')]?_0xe46d0[_0x586b9a('0x12c0')][_0x586b9a('0x25df')]:[],'crudPermissions':_0xe46d0[_0x586b9a('0xe28')],'realtime':![]}});}function _0x15563b(_0x2b20ad,_0x578301){const _0x2d723b=_0x1eb36b,_0x1308cd=_0x34ac87['confirm']()['title'](_0x2d723b('0x2114')+_0x283545()[_0x2d723b('0x114')](_0x2d723b('0x1895'))+'?')[_0x2d723b('0x93e')](_0x2d723b('0x1670')+(_0x2b20ad[_0x2d723b('0x1a8d')]||_0x2d723b('0x1895'))+_0x2d723b('0x229e')+_0x2d723b('0x27c7'))[_0x2d723b('0x10bc')]('delete\x20queueCampaign')['targetEvent'](_0x578301)['ok']('OK')['cancel'](_0x2d723b('0x1d8d'));_0x34ac87[_0x2d723b('0x2fa')](_0x1308cd)[_0x2d723b('0x2788')](function(){_0x36d3cc(_0x2b20ad);},function(){const _0xff0850=_0x2d723b;console['log'](_0xff0850('0x1d8d'));});}function _0x4893eb(){const _0x4bd8d6=_0x1eb36b;if(_0x10f8b5[_0x4bd8d6('0x1516')](_0x4bd8d6('0xe23')))_0x2068b1['go']('app.motiondialer.realtime.queues',{});else return _0xc2b3e['userProfileSection'][_0x4bd8d6('0x1335')]({'userProfileId':_0x10f8b5[_0x4bd8d6('0x24cc')]()[_0x4bd8d6('0x237f')],'sectionId':0x5e6})[_0x4bd8d6('0x1714')][_0x4bd8d6('0x2788')](function(_0xf7b8b6){const _0x159005=_0x4bd8d6,_0x4b2db9=_0xf7b8b6&&_0xf7b8b6[_0x159005('0x25df')]?_0xf7b8b6[_0x159005('0x25df')][0x0]:null;_0x4b2db9&&_0x4b2db9[_0x159005('0x14f4')]?_0x2068b1['go'](_0x159005('0x792'),{}):_0x51a9a2[_0x159005('0x2276')]({'title':_0xf7e03b['instant'](_0x159005('0x5be')),'msg':_0xf7e03b['instant'](_0x159005('0x1abc'))});})[_0x4bd8d6('0x1cb5')](function(_0x464e48){const _0x1d9c13=_0x4bd8d6;_0x51a9a2[_0x1d9c13('0x5e8')]({'title':_0x464e48[_0x1d9c13('0x1b51')]?_0x1d9c13('0x15d1')+_0x464e48['status']+_0x1d9c13('0x1b0b')+_0x464e48[_0x1d9c13('0x22ce')]:'USERPROFILE:GET_SECTION','msg':_0x464e48[_0x1d9c13('0x1b51')]?JSON['stringify'](_0x464e48[_0x1d9c13('0x11fc')]):_0x464e48[_0x1d9c13('0x17df')]()});});}let _0x23d313=!![],_0x18b665=0x1;_0x5327a8[_0x1eb36b('0x1662')](_0x1eb36b('0x1569'),function(_0x33c1ad,_0x261c3d){const _0x2dcc28=_0x1eb36b;_0x23d313?_0x4bc365(function(){_0x23d313=![];}):(!_0x261c3d&&(_0x18b665=_0xe46d0[_0x2dcc28('0x135a')][_0x2dcc28('0x23f5')]),_0x33c1ad!==_0x261c3d&&(_0xe46d0[_0x2dcc28('0x135a')][_0x2dcc28('0x23f5')]=0x1),!_0x33c1ad&&(_0xe46d0['query'][_0x2dcc28('0x23f5')]=_0x18b665),_0xe46d0[_0x2dcc28('0x6f3')]());});function _0x54fc38(_0x5d7638){const _0xe55d24=_0x1eb36b;_0xe46d0[_0xe55d24('0x12c0')]=_0x5d7638||{'count':0x0,'rows':[]};}function _0x5bb21a(){const _0x227ff7=_0x1eb36b;_0xe46d0[_0x227ff7('0x135a')][_0x227ff7('0x19e')]=(_0xe46d0['query'][_0x227ff7('0x23f5')]-0x1)*_0xe46d0[_0x227ff7('0x135a')][_0x227ff7('0x68e')],_0x10f8b5[_0x227ff7('0x1516')](_0x227ff7('0xe23'))?_0xe46d0[_0x227ff7('0x1808')]=_0xc2b3e['voiceQueue'][_0x227ff7('0x1335')](_0xe46d0['query'],_0x54fc38)[_0x227ff7('0x1714')]:(_0xe46d0[_0x227ff7('0x135a')]['id']=_0xe46d0[_0x227ff7('0x63c')]['id'],_0xe46d0[_0x227ff7('0x135a')][_0x227ff7('0xb13')]='QueueCampaigns',_0xe46d0[_0x227ff7('0x1808')]=_0xc2b3e['userProfile'][_0x227ff7('0xa1')](_0xe46d0[_0x227ff7('0x135a')],_0x54fc38)[_0x227ff7('0x1714')]);}function _0x368d0e(_0x15acb9,_0x4910f3){const _0x29674e=_0x1eb36b;_0x34ac87['show']({'controller':_0x29674e('0x12fe'),'controllerAs':'vm','templateUrl':_0x3f9f56,'parent':angular[_0x29674e('0x16b1')](_0x26f7c3[_0x29674e('0x945')]),'targetEvent':_0x15acb9,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4910f3,'queueCampaigns':_0xe46d0[_0x29674e('0x12c0')]['rows'],'license':_0xe46d0['license'],'setting':_0xe46d0[_0x29674e('0x1af0')],'crudPermissions':_0xe46d0[_0x29674e('0xe28')]}});}function _0x36d3cc(_0x511ac9){const _0x47ed6d=_0x1eb36b;_0xc2b3e[_0x47ed6d('0x2043')][_0x47ed6d('0x17c4')]({'id':_0x511ac9['id']})[_0x47ed6d('0x1714')][_0x47ed6d('0x2788')](function(){const _0x27a584=_0x47ed6d;_0x283545()[_0x27a584('0x1a90')](_0xe46d0[_0x27a584('0x12c0')][_0x27a584('0x25df')],{'id':_0x511ac9['id']}),_0xe46d0[_0x27a584('0x12c0')][_0x27a584('0x338')]-=0x1,!_0xe46d0[_0x27a584('0x12c0')]['rows'][_0x27a584('0x2566')]&&_0xe46d0[_0x27a584('0x6f3')](),_0x51a9a2['success']({'title':_0x283545()[_0x27a584('0x114')]('QueueCampaign')+_0x27a584('0x20db'),'msg':_0x511ac9[_0x27a584('0x1a8d')]?_0x511ac9[_0x27a584('0x1a8d')]+_0x27a584('0x14d4'):''});})[_0x47ed6d('0x1cb5')](function(_0x3861ba){const _0x1055c9=_0x47ed6d;if(_0x3861ba[_0x1055c9('0x11fc')]&&_0x3861ba[_0x1055c9('0x11fc')][_0x1055c9('0x25be')]&&_0x3861ba[_0x1055c9('0x11fc')][_0x1055c9('0x25be')][_0x1055c9('0x2566')]){_0xe46d0[_0x1055c9('0x25be')]=_0x3861ba[_0x1055c9('0x11fc')][_0x1055c9('0x25be')]||[{'message':_0x3861ba['toString'](),'type':'SYSTEM:DELETEvoiceQueue'}];for(let _0x5d9f24=0x0;_0x5d9f24<_0x3861ba[_0x1055c9('0x11fc')][_0x1055c9('0x25be')][_0x1055c9('0x2566')];_0x5d9f24++){_0x51a9a2[_0x1055c9('0x5e8')]({'title':_0x3861ba['data']['errors'][_0x5d9f24][_0x1055c9('0x1d7')],'msg':_0x3861ba[_0x1055c9('0x11fc')][_0x1055c9('0x25be')][_0x5d9f24][_0x1055c9('0x15e2')]});}}else _0x51a9a2[_0x1055c9('0x5e8')]({'title':_0x3861ba[_0x1055c9('0x1b51')]?_0x1055c9('0x15d1')+_0x3861ba[_0x1055c9('0x1b51')]+'\x20-\x20'+_0x3861ba['statusText']:_0x1055c9('0x14b2'),'msg':_0x3861ba['data']?JSON[_0x1055c9('0x1be0')](_0x3861ba[_0x1055c9('0x11fc')]['message']):_0x3861ba[_0x1055c9('0x15e2')]||_0x3861ba[_0x1055c9('0x17df')]()});});}function _0x5527dd(){const _0x1d4ef6=_0x1eb36b,_0x103b64=angular[_0x1d4ef6('0x2669')](_0xe46d0['selectedQueueCampaigns']);return _0xe46d0[_0x1d4ef6('0x24ca')]=[],_0x103b64;}function _0x50e232(_0x135670){const _0x57f0c0=_0x1eb36b,_0x120c55=_0x34ac87[_0x57f0c0('0x112e')]()[_0x57f0c0('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?')[_0x57f0c0('0x93e')](_0x57f0c0('0x1670')+_0xe46d0[_0x57f0c0('0x24ca')][_0x57f0c0('0x2566')]+_0x57f0c0('0xbd')+_0x57f0c0('0x27c7'))['ariaLabel'](_0x57f0c0('0x2433'))[_0x57f0c0('0x24d0')](_0x135670)['ok']('OK')[_0x57f0c0('0x1801')](_0x57f0c0('0x1d8d'));_0x34ac87[_0x57f0c0('0x2fa')](_0x120c55)[_0x57f0c0('0x2788')](function(){const _0xba61e5=_0x57f0c0;_0xe46d0[_0xba61e5('0x24ca')][_0xba61e5('0x1534')](function(_0x31a864){_0x36d3cc(_0x31a864);}),_0xe46d0[_0xba61e5('0x24ca')]=[];});}function _0x3eb157(){const _0x9fc83e=_0x1eb36b;_0xe46d0[_0x9fc83e('0x24ca')]=[];}function _0x321603(){const _0x4f1061=_0x1eb36b;_0xe46d0[_0x4f1061('0x24ca')]=_0xe46d0[_0x4f1061('0x12c0')][_0x4f1061('0x25df')];}}const _0x2a19ea=_0x257de0;_0x8ac764['$inject']=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x8ac764(_0x3a74c2,_0x302a71){const _0x2fcb88=_0x34e79e;_0x3a74c2[_0x2fcb88('0x249b')](_0x2fcb88('0xf98'),{'abstract':!![],'url':_0x2fcb88('0x1cff')})['state'](_0x2fcb88('0x1175'),{'url':'/queueCampaigns','views':{'content@app':{'templateUrl':_0x20b02c,'controller':_0x2fcb88('0x1630')}},'resolve':{'queueCampaigns':[_0x2fcb88('0x1318'),_0x2fcb88('0x1b04'),function(_0x3c2881,_0xf12344){const _0x1cceef=_0x2fcb88;return _0xf12344[_0x1cceef('0x1516')](_0x1cceef('0xe23'))?_0x3c2881['resolve'](_0x1cceef('0x18df'),{'fields':_0x1cceef('0x7ec'),'type':_0x1cceef('0x1'),'sort':_0x1cceef('0x1cee'),'channel':'voice','limit':0xa,'offset':0x0}):_0x3c2881[_0x1cceef('0x2322')](_0x1cceef('0x27c5'),{'id':_0xf12344[_0x1cceef('0x24cc')]()[_0x1cceef('0x237f')],'section':'QueueCampaigns','fields':_0x1cceef('0x7ec'),'type':_0x1cceef('0x1'),'sort':'-updatedAt','channel':_0x1cceef('0x1f60'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2fcb88('0x1318'),_0x2fcb88('0x1b04'),function(_0x1f63c5,_0x287de3){const _0x3b6b0a=_0x2fcb88;return _0x287de3[_0x3b6b0a('0x1516')](_0x3b6b0a('0xe23'))?null:_0x1f63c5[_0x3b6b0a('0x2322')](_0x3b6b0a('0x231d'),{'fields':_0x3b6b0a('0x3f0'),'id':_0x287de3['getCurrentUser']()[_0x3b6b0a('0x237f')]});}],'userProfileSection':[_0x2fcb88('0x1318'),_0x2fcb88('0x1b04'),function(_0x1f8aa6,_0x5659a1){const _0x1edb19=_0x2fcb88;return _0x5659a1[_0x1edb19('0x1516')](_0x1edb19('0xe23'))?null:_0x1f8aa6[_0x1edb19('0x2322')](_0x1edb19('0x22ca'),{'fields':_0x1edb19('0xe2c'),'userProfileId':_0x5659a1[_0x1edb19('0x24cc')]()[_0x1edb19('0x237f')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':'motiondialer'})['state']('app.motiondialer.queueCampaigns.edit',{'url':_0x2fcb88('0x206b'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1278ca,'controller':_0x2fcb88('0x280a')}},'resolve':{'queueCampaign':[_0x2fcb88('0x1318'),'$stateParams',function(_0x7e6f09,_0x6ae6dd){const _0x346507=_0x2fcb88;return _0x7e6f09['resolve']('voiceQueue@get',{'fields':_0x346507('0x7ec'),'id':_0x6ae6dd['id']});}],'userProfileSection':[_0x2fcb88('0x1318'),_0x2fcb88('0x1b04'),function(_0x127516,_0x209d11){const _0x22c273=_0x2fcb88;return _0x127516[_0x22c273('0x2322')](_0x22c273('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x209d11['getCurrentUser']()[_0x22c273('0x237f')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x2fcb88('0x1e1b')})[_0x2fcb88('0x249b')]('app.motiondialer.ivrCampaigns',{'url':_0x2fcb88('0x2514'),'views':{'content@app':{'templateUrl':_0x3f615f,'controller':_0x2fcb88('0x489')}},'resolve':{'ivrCampaigns':['apiResolver',_0x2fcb88('0x1b04'),function(_0x155d4b,_0x2cb072){const _0x30e2df=_0x2fcb88;return _0x2cb072[_0x30e2df('0x1516')](_0x30e2df('0xe23'))?_0x155d4b[_0x30e2df('0x2322')](_0x30e2df('0x1c8b'),{'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':_0x30e2df('0x1e64'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x155d4b[_0x30e2df('0x2322')]('userProfile@getResources',{'id':_0x2cb072[_0x30e2df('0x24cc')]()[_0x30e2df('0x237f')],'section':_0x30e2df('0x1c0c'),'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':_0x30e2df('0x1e64'),'sort':_0x30e2df('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2fcb88('0x1318'),'Auth',function(_0x6c9cb6,_0x3550c0){const _0x2e0703=_0x2fcb88;return _0x3550c0['hasRole'](_0x2e0703('0xe23'))?null:_0x6c9cb6[_0x2e0703('0x2322')](_0x2e0703('0x231d'),{'fields':_0x2e0703('0x3f0'),'id':_0x3550c0[_0x2e0703('0x24cc')]()[_0x2e0703('0x237f')]});}],'userProfileSection':['apiResolver',_0x2fcb88('0x1b04'),function(_0x473ae0,_0x373a22){const _0x14372c=_0x2fcb88;return _0x373a22[_0x14372c('0x1516')](_0x14372c('0xe23'))?null:_0x473ae0[_0x14372c('0x2322')](_0x14372c('0x22ca'),{'fields':_0x14372c('0xe2c'),'userProfileId':_0x373a22['getCurrentUser']()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x2fcb88('0x1e1b')})[_0x2fcb88('0x249b')](_0x2fcb88('0x106'),{'url':'/:id?tab','params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4a944a,'controller':_0x2fcb88('0xf5c')}},'resolve':{'ivrCampaign':[_0x2fcb88('0x1318'),_0x2fcb88('0xad0'),function(_0x36f764,_0x2eb69e){const _0x5cc552=_0x2fcb88;return _0x36f764[_0x5cc552('0x2322')]('campaign@get',{'fields':_0x5cc552('0x104e'),'id':_0x2eb69e['id']});}],'userProfileSection':['apiResolver',_0x2fcb88('0x1b04'),function(_0x5bf097,_0x804f4c){const _0x8804bc=_0x2fcb88;return _0x5bf097['resolve'](_0x8804bc('0x22ca'),{'fields':_0x8804bc('0xe2c'),'userProfileId':_0x804f4c[_0x8804bc('0x24cc')]()[_0x8804bc('0x237f')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x2fcb88('0x1e1b')}),_0x302a71[_0x2fcb88('0x15ae')]('app/main/apps/motiondialer');}angular[_0x34e79e('0x16e2')]('app.motiondialer',[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82'),_0x34e79e('0xd14')])[_0x34e79e('0x1a22')](_0x8ac764)[_0x34e79e('0xb44')](_0x34e79e('0x27c4'),_0x345d84)[_0x34e79e('0xb44')](_0x34e79e('0x125b'),_0x2c3ac6)[_0x34e79e('0xb44')](_0x34e79e('0x1bd9'),_0x57306d)['controller']('IvrCampaignHopperBlacksController',_0x3a7bfe)['controller']('IvrCampaignHopperFinalsController',_0x14a428)[_0x34e79e('0xb44')]('IvrCampaignHopperHistoriesController',_0x14f27e)[_0x34e79e('0xb44')]('IvrCampaignHoppersController',_0x303d6c)['controller']('CreateOrEditHopperCampaignIdDialogController',_0x5ed7fd)[_0x34e79e('0xb44')](_0x34e79e('0x1979'),_0x55f087)[_0x34e79e('0xb44')](_0x34e79e('0x8af'),_0x9f1a2d)['controller'](_0x34e79e('0x221e'),_0x5d5874)[_0x34e79e('0xb44')](_0x34e79e('0x533'),_0x5ecf54)['controller'](_0x34e79e('0x2682'),_0x58d3da)[_0x34e79e('0xb44')](_0x34e79e('0x12fe'),_0x43d086)[_0x34e79e('0xb44')](_0x34e79e('0x715'),_0x4ad600)[_0x34e79e('0xb44')](_0x34e79e('0x174b'),_0x426e06)[_0x34e79e('0xb44')](_0x34e79e('0x925'),_0x439eb7)[_0x34e79e('0xb44')](_0x34e79e('0x15ec'),_0x4fe3f0)[_0x34e79e('0xb44')](_0x34e79e('0x262'),_0x4c06f7)[_0x34e79e('0xb44')](_0x34e79e('0x2460'),_0x1d89a0)[_0x34e79e('0xb44')](_0x34e79e('0x272e'),_0x46e4d8)[_0x34e79e('0xb44')](_0x34e79e('0x1e74'),_0x3aaac8)[_0x34e79e('0xb44')](_0x34e79e('0x1334'),_0x991ef)['controller'](_0x34e79e('0xcce'),_0x15f7aa)['controller'](_0x34e79e('0x682'),_0x125296)[_0x34e79e('0xb44')](_0x34e79e('0x1794'),_0xa5425b)[_0x34e79e('0xb44')](_0x34e79e('0x1c3c'),_0x2de666)[_0x34e79e('0xb44')](_0x34e79e('0x26d3'),_0x2a19ea);const _0x44cdae=_0x18dd13['p']+'src/js/modules/main/apps/help/views/about/about.html/about.html';_0x1817c8['$inject']=[_0x34e79e('0x2276'),_0x34e79e('0x130d'),_0x34e79e('0x519')];function _0x4487c5(_0x3a0a75){const _0x188896=_0x34e79e,_0x25b531=_0x59f37a()(_0x3a0a75);return _0x25b531[_0x188896('0x68d')]()?_0x25b531['format'](_0x188896('0x3a1')):'';}function _0x1817c8(_0x1a6416,_0x4ec054,_0x364635){const _0x59e2cd=_0x34e79e,_0x28def0=this;_0x28def0[_0x59e2cd('0x946')]=_0x364635[_0x59e2cd('0x946')],_0x28def0['info']={..._0x1a6416,'buildDate':_0x4487c5(_0x1a6416[_0x59e2cd('0x16a5')]),'commitDate':_0x4487c5(_0x1a6416[_0x59e2cd('0x1da1')]),'client':{'name':_0x59e2cd('0x1e48'),'version':_0x59e2cd('0x254a'),'shortHash':_0x59e2cd('0x9e4'),'branch':_0x59e2cd('0x2841'),'tag':'','committedOn':'2020-11-11T11:08:39.000Z','buildDate':_0x59e2cd('0x1268')}},_0x28def0[_0x59e2cd('0x130d')]=_0x4ec054;}const _0x3f9b3c=_0x1817c8;_0x126bd9['$inject']=[_0x34e79e('0xf2d')];function _0x126bd9(_0x604c11){const _0xe62950=_0x34e79e;_0x604c11[_0xe62950('0x249b')]('app.help.about',{'url':_0xe62950('0x1e73'),'views':{'content@app':{'templateUrl':_0x44cdae,'controller':_0xe62950('0x253')}},'resolve':{'info':[_0xe62950('0x1318'),function(_0x38ea5d){const _0x15357c=_0xe62950;return _0x38ea5d[_0x15357c('0x2322')](_0x15357c('0x68a'));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0xe62950('0x36f')});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1252'),[])[_0x34e79e('0x1a22')](_0x126bd9)[_0x34e79e('0xb44')]('AboutController',_0x3f9b3c),_0x49f4a2[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x49f4a2(_0x9d8ce9,_0x4e8766){const _0x52ccef=_0x34e79e;_0x9d8ce9[_0x52ccef('0x249b')](_0x52ccef('0x891'),{'abstract':!![],'url':_0x52ccef('0x209')}),_0x4e8766['addPart'](_0x52ccef('0xe0c'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x891'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),'angular.filter','app.help.about'])[_0x34e79e('0x1a22')](_0x49f4a2);const _0x1c72b9=_0x18dd13['p']+_0x34e79e('0x2354'),_0x24e340=_0x18dd13['p']+_0x34e79e('0x14a5');_0x4ea41e[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location','$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x18f9'),_0x34e79e('0x1bf6'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x4ea41e(_0x2c1892,_0x302d55,_0xe4a0cd,_0x5a4341,_0x12c33c,_0x5daf0a,_0x3fd607,_0x2f653d,_0x29b9f0,_0x427c6f,_0x5d3fa3,_0x26d789,_0x20aab6,_0x5cb391){const _0x3f0b34=_0x34e79e,_0xe0974f=this;_0xe0974f[_0x3f0b34('0x9cb')]=_0x5d3fa3['getCurrentUser'](),_0xe0974f[_0x3f0b34('0x25be')]=[],_0xe0974f[_0x3f0b34('0x1af0')]=_0x20aab6,_0xe0974f['license']=_0x26d789,_0xe0974f['crudPermissions']=_0x5cb391,_0xe0974f[_0x3f0b34('0x1193')]={},_0xe0974f[_0x3f0b34('0x18ad')]=_0xe0974f[_0x3f0b34('0x1af0')]&&_0xe0974f[_0x3f0b34('0x1af0')][_0x3f0b34('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe0974f['title']=_0x3f0b34('0x86c'),_0xe0974f[_0x3f0b34('0x1bf6')]=angular[_0x3f0b34('0x2669')](_0x29b9f0),_0xe0974f[_0x3f0b34('0x18f9')]=_0x2f653d,_0xe0974f[_0x3f0b34('0x123f')]=![];!_0xe0974f[_0x3f0b34('0x1bf6')]&&(_0xe0974f[_0x3f0b34('0x1bf6')]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0xe0974f[_0x3f0b34('0x14e4')]=_0x3f0b34('0xa62'),_0xe0974f[_0x3f0b34('0x123f')]=!![]);_0xe0974f[_0x3f0b34('0x2180')]=_0x1dc3ce,_0xe0974f[_0x3f0b34('0x2243')]=_0x38e2d7,_0xe0974f[_0x3f0b34('0x151a')]=_0x55c1a2,_0xe0974f[_0x3f0b34('0x2601')]=_0x3336cd,_0xe0974f[_0x3f0b34('0xca7')]=_0xc74ad4;function _0x1dc3ce(){const _0x2b5e96=_0x3f0b34;_0xe0974f['errors']=[],_0x427c6f['jscriptyProject'][_0x2b5e96('0xbd0')](_0xe0974f['project'])[_0x2b5e96('0x1714')][_0x2b5e96('0x2788')](function(_0x4fc20f){const _0xf8661c=_0x2b5e96;_0xe0974f[_0xf8661c('0x18f9')][_0xf8661c('0xc51')](_0x4fc20f['toJSON']()),_0x3fd607['success']({'title':'Project\x20properly\x20created','msg':_0xe0974f[_0xf8661c('0x1bf6')][_0xf8661c('0x1a8d')]?_0xe0974f[_0xf8661c('0x1bf6')][_0xf8661c('0x1a8d')]+_0xf8661c('0x1e4a'):''}),_0xc74ad4(_0x4fc20f);})[_0x2b5e96('0x1cb5')](function(_0xb8a6d3){const _0x530183=_0x2b5e96;if(_0xb8a6d3[_0x530183('0x11fc')]&&_0xb8a6d3['data'][_0x530183('0x25be')]&&_0xb8a6d3['data'][_0x530183('0x25be')][_0x530183('0x2566')]){_0xe0974f[_0x530183('0x25be')]=_0xb8a6d3['data'][_0x530183('0x25be')]||[{'message':_0xb8a6d3['toString'](),'type':'api.jscriptyProject.save'}];for(let _0x1f79b9=0x0;_0x1f79b9<_0xb8a6d3[_0x530183('0x11fc')][_0x530183('0x25be')]['length'];_0x1f79b9+=0x1){_0x3fd607[_0x530183('0x5e8')]({'title':_0xb8a6d3[_0x530183('0x11fc')][_0x530183('0x25be')][_0x1f79b9][_0x530183('0x1d7')],'msg':_0xb8a6d3[_0x530183('0x11fc')]['errors'][_0x1f79b9][_0x530183('0x15e2')]});}}else _0x3fd607[_0x530183('0x5e8')]({'title':_0xb8a6d3[_0x530183('0x1b51')]?'API:'+_0xb8a6d3[_0x530183('0x1b51')]+'\x20-\x20'+_0xb8a6d3['statusText']:_0x530183('0x2535'),'msg':_0xb8a6d3[_0x530183('0x11fc')]?JSON[_0x530183('0x1be0')](_0xb8a6d3[_0x530183('0x11fc')]['message']):_0xb8a6d3[_0x530183('0x17df')]()});});}function _0x38e2d7(){const _0x343c1c=_0x3f0b34;_0xe0974f['errors']=[],_0x427c6f[_0x343c1c('0xf5b')]['update']({'id':_0xe0974f[_0x343c1c('0x1bf6')]['id']},_0xe0974f['project'])[_0x343c1c('0x1714')][_0x343c1c('0x2788')](function(_0x530aa2){const _0x759fa=_0x343c1c,_0x5297ca=_0x283545()[_0x759fa('0x20e8')](_0xe0974f[_0x759fa('0x18f9')],{'id':_0x530aa2['id']});_0x5297ca&&_0x283545()[_0x759fa('0x2503')](_0x5297ca,_0x283545()['pick'](_0x530aa2[_0x759fa('0x1cbf')](),_0x283545()['keys'](_0x5297ca))),_0x3fd607[_0x759fa('0x173b')]({'title':'Project\x20properly\x20saved!','msg':_0xe0974f['project'][_0x759fa('0x1a8d')]?_0xe0974f[_0x759fa('0x1bf6')][_0x759fa('0x1a8d')]+_0x759fa('0x24cf'):''}),_0xc74ad4(_0x530aa2);})[_0x343c1c('0x1cb5')](function(_0x3a20f1){const _0x51687b=_0x343c1c;if(_0x3a20f1[_0x51687b('0x11fc')]&&_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x25be')]&&_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x25be')][_0x51687b('0x2566')]){_0xe0974f[_0x51687b('0x25be')]=_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x25be')]||[{'message':_0x3a20f1[_0x51687b('0x17df')](),'type':_0x51687b('0x12b9')}];for(let _0x1f91f9=0x0;_0x1f91f9<_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x25be')][_0x51687b('0x2566')];_0x1f91f9++){_0x3fd607[_0x51687b('0x5e8')]({'title':_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x25be')][_0x1f91f9][_0x51687b('0x1d7')],'msg':_0x3a20f1['data'][_0x51687b('0x25be')][_0x1f91f9][_0x51687b('0x15e2')]});}}else _0x3fd607[_0x51687b('0x5e8')]({'title':_0x3a20f1[_0x51687b('0x1b51')]?_0x51687b('0x15d1')+_0x3a20f1[_0x51687b('0x1b51')]+_0x51687b('0x1b0b')+_0x3a20f1[_0x51687b('0x22ce')]:_0x51687b('0x12b9'),'msg':_0x3a20f1[_0x51687b('0x11fc')]?JSON[_0x51687b('0x1be0')](_0x3a20f1[_0x51687b('0x11fc')][_0x51687b('0x15e2')]):_0x3a20f1[_0x51687b('0x17df')]()});});}function _0x55c1a2(_0x224a85){const _0x2a598f=_0x3f0b34;_0xe0974f[_0x2a598f('0x25be')]=[];const _0x3cd8e9=_0x5a4341[_0x2a598f('0x112e')]()[_0x2a598f('0x14e4')](_0x2a598f('0x458'))[_0x2a598f('0x1c98')](_0x2a598f('0x21ed'))[_0x2a598f('0x10bc')](_0x2a598f('0xcf9'))['ok'](_0x2a598f('0x2786'))['cancel'](_0x2a598f('0x1481'))[_0x2a598f('0x24d0')](_0x224a85);_0x5a4341[_0x2a598f('0x2fa')](_0x3cd8e9)[_0x2a598f('0x2788')](function(){const _0x16529a=_0x2a598f;_0x427c6f['jscriptyProject'][_0x16529a('0x17c4')]({'id':_0xe0974f[_0x16529a('0x1bf6')]['id']})[_0x16529a('0x1714')][_0x16529a('0x2788')](function(){const _0x35bfa3=_0x16529a;_0x283545()[_0x35bfa3('0x1a90')](_0xe0974f[_0x35bfa3('0x18f9')],{'id':_0xe0974f['project']['id']}),_0x3fd607[_0x35bfa3('0x173b')]({'title':'Project\x20properly\x20deleted!','msg':(_0xe0974f[_0x35bfa3('0x1bf6')][_0x35bfa3('0x1a8d')]||_0x35bfa3('0x1bf6'))+_0x35bfa3('0x14d4')}),_0xc74ad4(_0xe0974f[_0x35bfa3('0x1bf6')]);})[_0x16529a('0x1cb5')](function(_0x3cf197){const _0x259003=_0x16529a;if(_0x3cf197['data']&&_0x3cf197[_0x259003('0x11fc')]['errors']&&_0x3cf197[_0x259003('0x11fc')]['errors'][_0x259003('0x2566')]){_0xe0974f[_0x259003('0x25be')]=_0x3cf197['data'][_0x259003('0x25be')]||[{'message':_0x3cf197['toString'](),'type':_0x259003('0xb5a')}];for(let _0x1d2225=0x0;_0x1d2225<_0x3cf197['data']['errors'][_0x259003('0x2566')];_0x1d2225++){_0x3fd607['error']({'title':_0x3cf197[_0x259003('0x11fc')][_0x259003('0x25be')][_0x1d2225][_0x259003('0x1d7')],'msg':_0x3cf197[_0x259003('0x11fc')][_0x259003('0x25be')][_0x1d2225]['message']});}}else _0x3fd607[_0x259003('0x5e8')]({'title':_0x3cf197[_0x259003('0x1b51')]?_0x259003('0x15d1')+_0x3cf197['status']+_0x259003('0x1b0b')+_0x3cf197[_0x259003('0x22ce')]:'api.jscriptyProject.delete','msg':_0x3cf197[_0x259003('0x11fc')]?JSON[_0x259003('0x1be0')](_0x3cf197[_0x259003('0x11fc')]['message']):_0x3cf197[_0x259003('0x15e2')]||_0x3cf197[_0x259003('0x17df')]()});});},function(){});}function _0x3336cd(_0x2de07e){return _0x2de07e===null?undefined:new Date(_0x2de07e);}function _0xc74ad4(_0x12e276){_0x5a4341['hide'](_0x12e276);}}const _0x1cda3a=_0x4ea41e;_0x2814f7['$inject']=[_0x34e79e('0x123b'),'$document','$window',_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x2142')];function _0x2814f7(_0x422ba1,_0x2cee66,_0x59938d,_0x3e816c,_0x2782a2,_0x16e281){const _0x50966=_0x34e79e,_0x49c620=this;_0x49c620[_0x50966('0x1bf6')]={},_0x49c620[_0x50966('0x15f3')]=_0x16e281;const _0xca183d=new Date();_0xca183d[_0x50966('0x26f3')](0x0,0x0,0x0,0x0),_0x49c620['pickerModel']={'dateStart':new Date(_0xca183d[_0x50966('0xf52')](),_0xca183d[_0x50966('0xb9c')](),0x1),'dateEnd':new Date(_0xca183d[_0x50966('0xf52')](),_0xca183d[_0x50966('0xb9c')]()+0x1,0x0),'selectedTemplate':'TM'},_0x49c620[_0x50966('0x24eb')]=_0x16c384,_0x49c620['getSummary']=_0x560bf5,_0x49c620[_0x50966('0x1077')]=_0x3cce2f;function _0x3cce2f(){const _0x5aba4d=_0x50966;return _0x49c620[_0x5aba4d('0xcde')]=![],_0x3e816c['jscriptyProject']['getAnswers']({'id':_0x49c620[_0x5aba4d('0x1bf6')]['id'],'sort':_0x5aba4d('0xe48'),'createdAt':{'$gte':_0x59f37a()(_0x49c620['pickerModel']['dateStart'])[_0x5aba4d('0x9b8')](0x0,'hours')['add'](0x0,_0x5aba4d('0xa3e'))['add'](0x0,_0x5aba4d('0x430'))['utcOffset'](0x0,!![])[_0x5aba4d('0x22b4')](),'$lte':_0x59f37a()(_0x49c620[_0x5aba4d('0x21fb')][_0x5aba4d('0x1bf9')])[_0x5aba4d('0x9b8')](0x17,_0x5aba4d('0x1ba3'))['add'](0x3b,_0x5aba4d('0xa3e'))['add'](0x3b,_0x5aba4d('0x430'))['utcOffset'](0x0,!![])[_0x5aba4d('0x22b4')]()},'nolimit':!![]})[_0x5aba4d('0x1714')][_0x5aba4d('0x2788')](function(_0x595ec5){const _0x4a40e8=_0x5aba4d;if(_0x595ec5&&_0x595ec5[_0x4a40e8('0x25df')]&&typeof _0x595ec5[_0x4a40e8('0x338')]!==_0x4a40e8('0xedb')){_0x49c620['answers']={};for(let _0xaa04be=0x0,_0x52756d=_0x595ec5['count'];_0xaa04be<_0x52756d;_0xaa04be++){_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]&&(_0x49c620[_0x4a40e8('0xcde')]=!![],typeof _0x49c620['answers'][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]]===_0x4a40e8('0xedb')&&(_0x49c620[_0x4a40e8('0x2264')][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]]={'question':_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0x22e9')],'answers':{},'sum':0x0}),_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xb1c')]===''&&(_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xb1c')]=_0x4a40e8('0x2381')),_0x49c620[_0x4a40e8('0x2264')][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]][_0x4a40e8('0x2264')][_0x595ec5['rows'][_0xaa04be][_0x4a40e8('0xb1c')]]?_0x49c620['answers'][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]]['answers'][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xb1c')]]+=0x1:_0x49c620[_0x4a40e8('0x2264')][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be]['questionId']][_0x4a40e8('0x2264')][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xb1c')]]=0x1,_0x49c620[_0x4a40e8('0x2264')][_0x595ec5[_0x4a40e8('0x25df')][_0xaa04be][_0x4a40e8('0xbf8')]][_0x4a40e8('0xb1e')]+=0x1);}}})[_0x5aba4d('0x1cb5')](function(_0x31112e){const _0x29d7b1=_0x5aba4d;_0x2782a2[_0x29d7b1('0x5e8')]({'title':_0x31112e[_0x29d7b1('0x1b51')]?_0x29d7b1('0x15d1')+_0x31112e[_0x29d7b1('0x1b51')]+_0x29d7b1('0x1b0b')+_0x31112e[_0x29d7b1('0x22ce')]:_0x29d7b1('0xd2d'),'msg':_0x31112e[_0x29d7b1('0x11fc')]?JSON[_0x29d7b1('0x1be0')](_0x31112e[_0x29d7b1('0x11fc')]):_0x31112e[_0x29d7b1('0x17df')]()});});}function _0x16c384(_0xb8fdbf){const _0x25d3cf=_0x50966;_0x49c620['project']=_0xb8fdbf,_0x49c620[_0x25d3cf('0x1077')]();}function _0x560bf5(){const _0x5be418=_0x50966;return _0x3e816c[_0x5be418('0xf5b')][_0x5be418('0x1eb3')]({'id':_0x49c620[_0x5be418('0x1bf6')]['id'],'startTime':{'$gte':_0x49c620['pickerModel'][_0x5be418('0x11f')],'$lte':_0x59f37a()(_0x49c620[_0x5be418('0x21fb')][_0x5be418('0x1bf9')])[_0x5be418('0x9b8')](0x17,_0x5be418('0x1ba3'))[_0x5be418('0x9b8')](0x3b,_0x5be418('0xa3e'))[_0x5be418('0x9b8')](0x3b,'seconds')[_0x5be418('0x22b4')]()},'nolimit':!![]})[_0x5be418('0x1714')]['then'](function(_0x1c3d3b){const _0x250c61=_0x5be418;if(typeof _0x1c3d3b[_0x250c61('0x2566')]!==_0x250c61('0xedb')){const _0x4c0fce=[_0x1c3d3b[_0x250c61('0x3f1')]],_0x5708b5=new Blob(_0x4c0fce,{'type':_0x1c3d3b[_0x250c61('0x1d7')]}),_0x57534f=window['document'][_0x250c61('0x1ae6')]('a');_0x57534f[_0x250c61('0x1c6b')](_0x250c61('0x186a'),URL[_0x250c61('0x1b0d')](_0x5708b5)),_0x57534f[_0x250c61('0x1c6b')](_0x250c61('0x1486'),'jscriptyProjectSummary_'+_0x49c620[_0x250c61('0x1bf6')]['id']+_0x250c61('0xb52')),_0x57534f[_0x250c61('0x132a')]();}else _0x2782a2[_0x250c61('0x2276')]({'title':'EXPORT','msg':_0x250c61('0x2787')});})[_0x5be418('0x1cb5')](function(_0x1521ac){const _0x1bf638=_0x5be418;_0x2782a2[_0x1bf638('0x5e8')]({'title':_0x1521ac['status']?'API:'+_0x1521ac[_0x1bf638('0x1b51')]+_0x1bf638('0x1b0b')+_0x1521ac[_0x1bf638('0x22ce')]:_0x1bf638('0x2237'),'msg':_0x1521ac[_0x1bf638('0x11fc')]?JSON[_0x1bf638('0x1be0')](_0x1521ac[_0x1bf638('0x11fc')]):_0x1521ac[_0x1bf638('0x17df')]()});});}}const _0x50c892=_0x2814f7;;function _0x2ea2ec(){const _0x411f71=_0x34e79e,_0x4736e2=this;_0x4736e2[_0x411f71('0x1bf6')]={},_0x4736e2[_0x411f71('0x1264')]={'questionTypes':[_0x411f71('0x16db'),_0x411f71('0x1215'),_0x411f71('0x245f'),_0x411f71('0x1188'),_0x411f71('0x983'),_0x411f71('0x272c'),_0x411f71('0x1012'),_0x411f71('0x26d1'),'email',_0x411f71('0x1e76'),_0x411f71('0x1672')],'elementTypes':['question',_0x411f71('0x597')]},_0x4736e2[_0x411f71('0x24eb')]=_0xa93f7e,_0x4736e2[_0x411f71('0x1a28')]=_0x52ada8;function _0x52ada8(_0x4fc9ac){const _0x263df4=_0x411f71;if(_0x283545()[_0x263df4('0x1015')](_0x4fc9ac))return![];try{JSON['parse'](_0x4fc9ac);}catch(_0x50ac71){return![];}return!![];}function _0xa93f7e(_0x14c399){const _0x6e2072=_0x411f71;_0x4736e2[_0x6e2072('0x1bf6')]=_0x14c399;if(_0x283545()['isObjectLike'](_0x14c399['formData']))_0x4736e2[_0x6e2072('0x1bf6')]['formData']=_0x14c399['formData'];else _0x4736e2['isJsonString'](_0x14c399[_0x6e2072('0x6e4')])?_0x4736e2[_0x6e2072('0x1bf6')][_0x6e2072('0x6e4')]=JSON[_0x6e2072('0xe0b')](_0x14c399['formData']):_0x4736e2['project'][_0x6e2072('0x6e4')]={};}}const _0x233553=_0x2ea2ec;_0x31faa1[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$state',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1bf6'),_0x34e79e('0x18f9'),_0x34e79e('0x1a5c')];function _0x31faa1(_0x740fcb,_0x5cf287,_0x33ca20,_0x8a4c8f,_0x104ba2,_0x42808d,_0x443a22){const _0x2ee8cc=_0x34e79e,_0x14113e=this;_0x14113e['newProject']=!![],_0x14113e[_0x2ee8cc('0x1bf6')]=angular[_0x2ee8cc('0x2669')](_0x104ba2),_0x14113e[_0x2ee8cc('0x18f9')]=_0x42808d,_0x14113e['title']=_0x443a22['instant'](_0x2ee8cc('0x1e9f'));_0x104ba2&&_0x104ba2[_0x2ee8cc('0x1a8d')]&&(_0x14113e[_0x2ee8cc('0x14e4')]+=':\x20'+_0x104ba2[_0x2ee8cc('0x1a8d')]);_0x14113e['cloneProject']=_0x58ab9b,_0x14113e[_0x2ee8cc('0xca7')]=_0xc89e93;function _0x58ab9b(){const _0x3d061e=_0x2ee8cc;return _0x8a4c8f['jscriptyProject'][_0x3d061e('0x1b8')]({'id':_0x104ba2['id']},_0x14113e[_0x3d061e('0x1bf6')])['$promise'][_0x3d061e('0x2788')](function(_0x1932b2){const _0x2dc510=_0x3d061e;_0x14113e[_0x2dc510('0x18f9')]['unshift'](_0x1932b2[_0x2dc510('0x1cbf')]()),_0x33ca20[_0x2dc510('0x173b')]({'title':'Project\x20properly\x20cloned','msg':_0x14113e[_0x2dc510('0x1bf6')]['name']?_0x14113e[_0x2dc510('0x1bf6')][_0x2dc510('0x1a8d')]+'\x20has\x20been\x20cloned!':''}),_0x5cf287['go']('app.jscripty.projects.edit',{'id':_0x1932b2['id']}),_0xc89e93(_0x1932b2);})[_0x3d061e('0x1cb5')](function(_0x356fbb){const _0x46668c=_0x3d061e;if(_0x356fbb['data']&&_0x356fbb[_0x46668c('0x11fc')][_0x46668c('0x25be')]&&_0x356fbb[_0x46668c('0x11fc')][_0x46668c('0x25be')][_0x46668c('0x2566')]){_0x14113e[_0x46668c('0x25be')]=_0x356fbb['data']['errors']||[{'message':_0x356fbb[_0x46668c('0x17df')](),'type':_0x46668c('0x2346')}];for(let _0x4c9493=0x0;_0x4c9493<_0x356fbb['data'][_0x46668c('0x25be')]['length'];_0x4c9493+=0x1){_0x33ca20[_0x46668c('0x5e8')]({'title':_0x356fbb[_0x46668c('0x11fc')][_0x46668c('0x25be')][_0x4c9493][_0x46668c('0x1d7')],'msg':_0x356fbb['data'][_0x46668c('0x25be')][_0x4c9493]['message']});}}else _0x33ca20[_0x46668c('0x5e8')]({'title':_0x356fbb['status']?_0x46668c('0x15d1')+_0x356fbb[_0x46668c('0x1b51')]+_0x46668c('0x1b0b')+_0x356fbb[_0x46668c('0x22ce')]:_0x46668c('0x2346'),'msg':_0x356fbb[_0x46668c('0x11fc')]?JSON[_0x46668c('0x1be0')](_0x356fbb['data']['message']):_0x356fbb[_0x46668c('0x17df')]()});});}function _0xc89e93(_0x58c6da){const _0x23a452=_0x2ee8cc;_0x740fcb[_0x23a452('0x19d')](_0x58c6da);}}const _0x35de3c=_0x31faa1;_0x296df5[_0x34e79e('0x2d9')]=['$q',_0x34e79e('0x123b'),_0x34e79e('0x1701')];function _0x296df5(_0x426377,_0x1a45a7,_0x10986b){const _0x50276d=_0x34e79e,_0x5948e0=this;_0x5948e0[_0x50276d('0x1bf6')]={},_0x5948e0[_0x50276d('0xc28')]={},_0x5948e0[_0x50276d('0xe21')]={},_0x5948e0['init']=_0x6a8aff,_0x5948e0[_0x50276d('0x196b')]=_0xe5051c,_0x5948e0[_0x50276d('0x1277')]=_0x4a1ab1;function _0x6a8aff(_0x1f19bc){const _0x5238fe=_0x50276d;_0x5948e0['project']=_0x1f19bc,_0x10986b[_0x5238fe('0x651')](_0x5238fe('0x26e2'),function(_0x5a63d7,_0x14f60d){const _0x30089a=_0x5238fe;if(_0x14f60d[_0x30089a('0x394')]&&_0x5948e0[_0x30089a('0x1bf6')][_0x30089a('0x6e4')]&&_0x5948e0[_0x30089a('0x1bf6')][_0x30089a('0x6e4')][_0x30089a('0x3c1')])for(let _0x5e8d5c=0x0,_0x3b6948=_0x5948e0[_0x30089a('0x1bf6')][_0x30089a('0x6e4')][_0x30089a('0x3c1')][_0x30089a('0x2566')];_0x5e8d5c<_0x3b6948;_0x5e8d5c++){if(_0x14f60d[_0x30089a('0x394')]['number']<_0x5e8d5c+0x1&&_0x5948e0[_0x30089a('0x1bf6')]['formData'][_0x30089a('0x3c1')][_0x5e8d5c]['elements'])for(let _0x444033=0x0,_0x4a0e57=_0x5948e0['project']['formData'][_0x30089a('0x3c1')][_0x5e8d5c][_0x30089a('0x82a')][_0x30089a('0x2566')];_0x444033<_0x4a0e57;_0x444033++){_0x5948e0['project']['formData']['pages'][_0x5e8d5c][_0x30089a('0x82a')][_0x444033][_0x30089a('0x1d7')]===_0x30089a('0x22e9')&&_0x5948e0[_0x30089a('0x1bf6')][_0x30089a('0x6e4')]['pages'][_0x5e8d5c][_0x30089a('0x82a')][_0x444033][_0x30089a('0x22e9')]&&delete _0x5948e0[_0x30089a('0xc28')][_0x5948e0[_0x30089a('0x1bf6')][_0x30089a('0x6e4')][_0x30089a('0x3c1')][_0x5e8d5c][_0x30089a('0x82a')][_0x444033][_0x30089a('0x22e9')]['id']];}}});}function _0xe5051c(_0x591e82){const _0x24723c=_0x50276d,_0xf252d2=_0x426377['defer'](),_0x243fbb=_0x1a45a7[_0x24723c('0x112e')]()[_0x24723c('0x14e4')](_0x24723c('0x82b'))[_0x24723c('0x1a95')]('')[_0x24723c('0x10bc')](_0x24723c('0x1068'))[_0x24723c('0x24d0')](_0x591e82)['ok'](_0x24723c('0x213f'))[_0x24723c('0x1801')](_0x24723c('0x1d8d'));return _0x1a45a7[_0x24723c('0x2fa')](_0x243fbb)['then'](function(){_0xf252d2['resolve'](!![]);},function(){_0xf252d2['reject']();}),_0xf252d2['promise'];}function _0x4a1ab1(){const _0x426707=_0x50276d;_0x5948e0['formViewer']['reset']&&_0x5948e0[_0x426707('0xe21')][_0x426707('0x186b')]();}}const _0x3b8b29=_0x296df5,_0x1cdb3d=_0x18dd13['p']+_0x34e79e('0x210');_0x4da3fa[_0x34e79e('0x2d9')]=['$cookies','$scope','$state','$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),'api','Auth'];function _0x4da3fa(_0x4a1a72,_0x5bb476,_0xc85e46,_0x30fbc7,_0xea7809,_0xaeabe0,_0x4743d0,_0x3d70a3,_0xa5ba31,_0x43407c,_0x4b814f){const _0x5be0a=_0x34e79e,_0x2cccd2=this;_0x2cccd2[_0x5be0a('0x9cb')]=_0x4b814f['getCurrentUser'](),_0x2cccd2['project']={},_0x2cccd2['projectSessions']={'count':0x0,'rows':[]},_0x2cccd2[_0x5be0a('0x9f5')]=[],_0x2cccd2[_0x5be0a('0xe28')],_0x2cccd2[_0x5be0a('0x135a')]={'fields':_0x5be0a('0x1e38'),'sort':_0x5be0a('0x4e8'),'limit':0xa,'page':0x1},_0x2cccd2[_0x5be0a('0x24eb')]=_0x2465f6,_0x2cccd2['deleteConfirm']=_0x2be1ee,_0x2cccd2[_0x5be0a('0x173b')]=_0x238304,_0x2cccd2[_0x5be0a('0x13f6')]=_0x4d4b73,_0x2cccd2[_0x5be0a('0x1c36')]=_0x1c223a,_0x2cccd2['showQuestionsProjectSession']=_0x540a88,_0x2cccd2[_0x5be0a('0x14d9')]=_0x31767a,_0x2cccd2[_0x5be0a('0x2569')]=_0x3a8df9,_0x2cccd2[_0x5be0a('0x6e5')]=_0x57674a;function _0x2465f6(_0x4d9ada,_0x331af6){const _0x2e1275=_0x5be0a;_0x2cccd2[_0x2e1275('0x1bf6')]=_0x4d9ada,_0x2cccd2[_0x2e1275('0xe28')]=typeof _0x331af6!=='undefined'?_0x331af6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2cccd2[_0x2e1275('0x135a')]['id']=_0x2cccd2[_0x2e1275('0x1bf6')]['id'],_0x4d4b73();}function _0x2be1ee(_0x2ffd21,_0x4bd2a3){const _0x45cc9d=_0x5be0a,_0x430932=_0x4743d0[_0x45cc9d('0x112e')]()[_0x45cc9d('0x14e4')](_0x45cc9d('0x150e'))[_0x45cc9d('0x93e')](_0x45cc9d('0x1670')+(_0x2ffd21[_0x45cc9d('0x1a8d')]||_0x2ffd21['id']&&_0x283545()['upperFirst']('session\x20#')+_0x2ffd21['id']||_0x45cc9d('0x1f5b'))+_0x45cc9d('0x229e')+_0x45cc9d('0x27c7'))[_0x45cc9d('0x10bc')](_0x45cc9d('0x1058'))['targetEvent'](_0x4bd2a3)['ok']('OK')[_0x45cc9d('0x1801')]('CANCEL');_0x4743d0['show'](_0x430932)[_0x45cc9d('0x2788')](function(){_0x3a8df9(_0x2ffd21);},function(){const _0x4edabc=_0x45cc9d;console['log'](_0x4edabc('0x1d8d'));});}function _0x238304(_0x10302f){_0x2cccd2['projectSessions']=_0x10302f||{'count':0x0,'rows':[]};}function _0x4d4b73(){const _0x58e0e2=_0x5be0a;_0x2cccd2['query'][_0x58e0e2('0x19e')]=(_0x2cccd2[_0x58e0e2('0x135a')]['page']-0x1)*_0x2cccd2[_0x58e0e2('0x135a')]['limit'],_0x2cccd2[_0x58e0e2('0x1808')]=_0x43407c[_0x58e0e2('0xf5b')][_0x58e0e2('0x424')](_0x2cccd2[_0x58e0e2('0x135a')],_0x238304)['$promise'];}function _0x1c223a(_0x2be89c,_0x183772){const _0x3f1405=_0x5be0a;_0x4743d0[_0x3f1405('0x2fa')]({'controller':'CreateOrEditSessionDialogController','controllerAs':'vm','templateUrl':_0x1cdb3d,'parent':angular['element'](_0x3d70a3[_0x3f1405('0x945')]),'targetEvent':_0x2be89c,'clickOutsideToClose':!![],'locals':{'project':_0x2cccd2[_0x3f1405('0x1bf6')],'session':_0x183772,'sessions':_0x2cccd2[_0x3f1405('0x15a9')][_0x3f1405('0x25df')],'license':null,'setting':null,'crudPermissions':_0x2cccd2[_0x3f1405('0xe28')]}});}function _0x540a88(_0x53c6dc,_0x44a2d9){const _0x4cdde7=_0x5be0a;_0x4743d0[_0x4cdde7('0x2fa')]({'controller':_0x4cdde7('0xc48'),'controllerAs':'vm','templateUrl':_0x1cdb3d,'parent':angular['element'](_0x3d70a3[_0x4cdde7('0x945')]),'targetEvent':_0x53c6dc,'clickOutsideToClose':!![],'resolve':{'questions':['apiResolver',function(_0x34499a){const _0x5de0db=_0x4cdde7;return _0x34499a['resolve'](_0x5de0db('0x1b23'),{'fields':_0x5de0db('0x26c3'),'sort':'id','id':_0x44a2d9['id']});}]},'locals':{'project':_0x2cccd2['project'],'session':_0x44a2d9}});}function _0x3a8df9(_0x59ed4f){const _0x3af955=_0x5be0a;_0x43407c['jscriptySessionReport']['delete']({'id':_0x59ed4f['id']})[_0x3af955('0x1714')][_0x3af955('0x2788')](function(){const _0x2087db=_0x3af955;_0x283545()[_0x2087db('0x1a90')](_0x2cccd2['projectSessions']['rows'],{'id':_0x59ed4f['id']}),_0x2cccd2['projectSessions']['count']-=0x1,!_0x2cccd2['projectSessions'][_0x2087db('0x25df')][_0x2087db('0x2566')]&&_0x4d4b73(),_0xa5ba31['success']({'title':'Session\x20deleted!','msg':_0x59ed4f[_0x2087db('0x1a8d')]?_0x59ed4f[_0x2087db('0x1a8d')]+_0x2087db('0x14d4'):''});})[_0x3af955('0x1cb5')](function(_0x41b478){const _0x31344c=_0x3af955;if(_0x41b478[_0x31344c('0x11fc')]&&_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x25be')]&&_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x25be')]['length']){_0x2cccd2[_0x31344c('0x25be')]=_0x41b478[_0x31344c('0x11fc')]['errors']||[{'message':_0x41b478[_0x31344c('0x17df')](),'type':_0x31344c('0x2131')}];for(let _0x57a052=0x0;_0x57a052<_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x25be')]['length'];_0x57a052++){_0xa5ba31[_0x31344c('0x5e8')]({'title':_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x25be')][_0x57a052][_0x31344c('0x1d7')],'msg':_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x25be')][_0x57a052][_0x31344c('0x15e2')]});}}else _0xa5ba31[_0x31344c('0x5e8')]({'title':_0x41b478[_0x31344c('0x1b51')]?_0x31344c('0x15d1')+_0x41b478[_0x31344c('0x1b51')]+_0x31344c('0x1b0b')+_0x41b478[_0x31344c('0x22ce')]:_0x31344c('0x2131'),'msg':_0x41b478[_0x31344c('0x11fc')]?JSON[_0x31344c('0x1be0')](_0x41b478[_0x31344c('0x11fc')][_0x31344c('0x15e2')]):_0x41b478[_0x31344c('0x15e2')]||_0x41b478[_0x31344c('0x17df')]()});});}function _0x31767a(){const _0x4fea20=_0x5be0a,_0x5de383=angular['copy'](_0x2cccd2[_0x4fea20('0x9f5')]);return _0x2cccd2[_0x4fea20('0x9f5')]=[],_0x5de383;}function _0x57674a(_0x4678ff){const _0x192919=_0x5be0a,_0x540399=_0x4743d0['confirm']()[_0x192919('0x14e4')](_0x192919('0x25d3'))[_0x192919('0x93e')](_0x192919('0x1670')+_0x2cccd2[_0x192919('0x9f5')]['length']+_0x192919('0xbd')+_0x192919('0x27c7'))[_0x192919('0x10bc')](_0x192919('0x239d'))[_0x192919('0x24d0')](_0x4678ff)['ok']('OK')[_0x192919('0x1801')](_0x192919('0x1d8d'));_0x4743d0[_0x192919('0x2fa')](_0x540399)[_0x192919('0x2788')](function(){const _0x5f47c9=_0x192919;_0x2cccd2[_0x5f47c9('0x9f5')]['forEach'](function(_0x19a14b){_0x3a8df9(_0x19a14b);}),_0x2cccd2[_0x5f47c9('0x9f5')]=[];});}let _0x572f6c=!![],_0x3f52d1=0x1;_0x5bb476[_0x5be0a('0x1662')](_0x5be0a('0x2571'),function(_0x4f2f3b,_0x863cf4){const _0x48f57f=_0x5be0a;_0x572f6c?_0xaeabe0(function(){_0x572f6c=![];}):(!_0x863cf4&&(_0x3f52d1=_0x2cccd2['query'][_0x48f57f('0x23f5')]),_0x4f2f3b!==_0x863cf4&&(_0x2cccd2[_0x48f57f('0x135a')][_0x48f57f('0x23f5')]=0x1),!_0x4f2f3b&&(_0x2cccd2['query'][_0x48f57f('0x23f5')]=_0x3f52d1),_0x4d4b73());});}const _0x50faf1=_0x4da3fa;_0x5abae9[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$state',_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x1f5b'),'questions',_0x34e79e('0x1bf6')];function _0x5abae9(_0x181626,_0x40aed4,_0x5c54f7,_0x4435a8,_0x4e7268,_0x5bb189,_0x4f281e,_0x201762){const _0x2856d1=_0x34e79e,_0x51930a=this;_0x51930a[_0x2856d1('0x14e4')]='JSCRIPTY.SESSION_RESULTS',_0x51930a['session']=_0x5bb189,_0x51930a[_0x2856d1('0x628')]=_0x4f281e,_0x51930a['project']=_0x201762;function _0x168db3(_0x3e92a1){const _0x535174=_0x2856d1;_0x4435a8[_0x535174('0x19d')](_0x3e92a1);}_0x51930a[_0x2856d1('0xca7')]=_0x168db3;}const _0x453928=_0x5abae9,_0x1f77c0=_0x18dd13['p']+_0x34e79e('0x191');_0x40dcf1[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'project',_0x34e79e('0xec9')];function _0x40dcf1(_0x3acf7b,_0x224583,_0x2dc06b,_0x319573,_0x1f0547,_0x2fc29f,_0x73473,_0x16929e,_0x3d37cd,_0x15a124,_0x2821b2,_0x49d4c3){const _0x1eff2e=_0x34e79e,_0xe6e81c=this;_0xe6e81c['currentUser']=_0x15a124[_0x1eff2e('0x24cc')](),_0xe6e81c[_0x1eff2e('0x130d')]=_0x2fc29f,_0xe6e81c[_0x1eff2e('0x1af0')]=_0x73473,_0xe6e81c[_0x1eff2e('0x18ad')]=_0xe6e81c[_0x1eff2e('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe6e81c[_0x1eff2e('0xe9')]=_0x224583[_0x1eff2e('0x170c')]()+'://'+_0x224583['host'](),_0xe6e81c['project']=_0x2821b2||_0x3acf7b[_0x1eff2e('0x4b9')][_0x1eff2e('0x1bf6')]||{},_0xe6e81c['userProfileSection']=_0x49d4c3&&_0x49d4c3[_0x1eff2e('0x338')]==0x1?_0x49d4c3[_0x1eff2e('0x25df')][0x0]:null,_0xe6e81c[_0x1eff2e('0xe28')]=_0x15a124[_0x1eff2e('0x157e')](_0xe6e81c[_0x1eff2e('0xec9')]?_0xe6e81c[_0x1eff2e('0xec9')][_0x1eff2e('0xe28')]:null),_0xe6e81c[_0x1eff2e('0x1193')]={},_0xe6e81c[_0x1eff2e('0xcb3')]=_0x3acf7b[_0x1eff2e('0x4b9')][_0x1eff2e('0x24f6')]||0x0,_0xe6e81c[_0x1eff2e('0x15fb')]=_0x4435bc,_0xe6e81c[_0x1eff2e('0x204f')]=_0x3d37cd[_0x1eff2e('0x2276')],_0xe6e81c[_0x1eff2e('0x1d7d')]=_0x187992,_0xe6e81c[_0x1eff2e('0x2243')]=_0x52a95c;function _0x4435bc(_0x35057e,_0x5c6c79){const _0x4973d1=_0x1eff2e;_0x2dc06b[_0x4973d1('0x2fa')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x1f77c0,'parent':angular[_0x4973d1('0x16b1')](_0x319573['body']),'targetEvent':_0x5c6c79,'clickOutsideToClose':!![],'locals':{'project':_0x35057e,'projects':_0xe6e81c[_0x4973d1('0x18f9')]?_0xe6e81c[_0x4973d1('0x18f9')][_0x4973d1('0x25df')]:[],'crudPermissions':_0xe6e81c[_0x4973d1('0xe28')]}});}function _0x187992(){const _0x1d0f27=_0x1eff2e;_0x3acf7b['go'](_0x1d0f27('0x1a14'),{},{'reload':_0x1d0f27('0x1a14')});}function _0x52a95c(){const _0xef41ef=_0x1eff2e;_0x16929e[_0xef41ef('0xf5b')][_0xef41ef('0x2740')]({'id':_0xe6e81c[_0xef41ef('0x1bf6')]['id']},_0xe6e81c['project'])['$promise'][_0xef41ef('0x2788')](function(){const _0x179706=_0xef41ef;_0x3d37cd[_0x179706('0x173b')]({'title':_0x179706('0x16f5'),'msg':_0xe6e81c[_0x179706('0x1bf6')][_0x179706('0x1a8d')]?_0xe6e81c[_0x179706('0x1bf6')][_0x179706('0x1a8d')]+_0x179706('0x6f8'):''});})[_0xef41ef('0x1cb5')](function(_0x23de30){const _0x2fe865=_0xef41ef;_0x3d37cd['error']({'title':_0x23de30['status']?_0x2fe865('0x15d1')+_0x23de30[_0x2fe865('0x1b51')]+_0x2fe865('0x1b0b')+_0x23de30[_0x2fe865('0x22ce')]:_0x2fe865('0x2131'),'msg':_0x23de30[_0x2fe865('0x11fc')]?JSON[_0x2fe865('0x1be0')](_0x23de30['data']):_0x23de30[_0x2fe865('0x17df')]()});});}}const _0x41f80f=_0x40dcf1,_0x24836b=_0x18dd13['p']+'src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog.html';_0x34336c[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x18f9'),_0x34e79e('0x63c'),'userProfileSection',_0x34e79e('0x519'),'msUtils',_0x34e79e('0xd57'),'Auth','license',_0x34e79e('0x1af0')];function _0x34336c(_0x41be02,_0x173a26,_0x5e9df7,_0x2402d9,_0x223a23,_0x52c323,_0x12b666,_0x946d74,_0x3b536a,_0x1118f4,_0x550920,_0x4d7182,_0x13b138,_0x55c542,_0x577a76,_0x976eeb,_0x28c22e){const _0x446b48=_0x34e79e,_0x2fd688=this;_0x2fd688[_0x446b48('0x130d')]=_0x976eeb,_0x2fd688[_0x446b48('0x1af0')]=_0x28c22e,_0x2fd688[_0x446b48('0x9cb')]=_0x577a76['getCurrentUser'](),_0x2fd688[_0x446b48('0x18f9')]=_0x3b536a||{'count':0x0,'rows':[]},_0x2fd688[_0x446b48('0x63c')]=_0x1118f4,_0x2fd688[_0x446b48('0xec9')]=_0x550920&&_0x550920['count']==0x1?_0x550920[_0x446b48('0x25df')][0x0]:null,_0x2fd688[_0x446b48('0xe28')]=_0x577a76[_0x446b48('0x157e')](_0x2fd688['userProfileSection']?_0x2fd688[_0x446b48('0xec9')][_0x446b48('0xe28')]:null),_0x2fd688[_0x446b48('0x26a9')]='projects',_0x2fd688[_0x446b48('0x2278')]='',_0x2fd688[_0x446b48('0x25e2')]=null,_0x2fd688[_0x446b48('0xe35')]=[],_0x2fd688[_0x446b48('0x135a')]={'fields':_0x446b48('0x1e0f'),'sort':_0x446b48('0x1cee'),'limit':0xa,'page':0x1},_0x2fd688['editstate']=_0x2c48c5,_0x2fd688[_0x446b48('0x15fb')]=_0x11468f,_0x2fd688[_0x446b48('0x2048')]=_0x33d3b2,_0x2fd688[_0x446b48('0x1e5')]=_0xb0a53d,_0x2fd688[_0x446b48('0x173b')]=_0x4d8329,_0x2fd688[_0x446b48('0x1fbe')]=_0x1b4d12,_0x2fd688[_0x446b48('0x404')]=_0x2366c2,_0x2fd688[_0x446b48('0x151a')]=_0x4faf09,_0x2fd688[_0x446b48('0x1a13')]=_0x1b8430,_0x2fd688[_0x446b48('0x1e4b')]=_0x4c3fed,_0x2fd688[_0x446b48('0x1fcb')]=_0x2c44fd,_0x2fd688[_0x446b48('0x1cdb')]=_0x5901f2;function _0x2c48c5(_0x5b3b54){const _0xb95f6=_0x446b48;_0x5e9df7['go']('app.jscripty.projects.edit',{'id':_0x5b3b54['id'],'project':_0x5b3b54,'crudPermissions':_0x2fd688[_0xb95f6('0xe28')]});}function _0x11468f(_0x27a54b,_0x15fe31){const _0xa5ddb2=_0x446b48;_0x223a23[_0xa5ddb2('0x2fa')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x1f77c0,'parent':angular['element'](_0x52c323['body']),'targetEvent':_0x15fe31,'clickOutsideToClose':!![],'locals':{'project':_0x27a54b,'projects':_0x2fd688[_0xa5ddb2('0x18f9')]?_0x2fd688['projects'][_0xa5ddb2('0x25df')]:[],'crudPermissions':_0x2fd688['crudPermissions']}});}function _0x33d3b2(_0x354bd4){const _0x1055ac=_0x446b48;_0x5e9df7['go'](_0x1055ac('0x144d'),{'id':_0x354bd4['id'],'tab':0x3});}function _0xb0a53d(_0x49db7f,_0x2553cf){const _0x4f4333=_0x446b48,_0x419a38=_0x223a23[_0x4f4333('0x112e')]()[_0x4f4333('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x283545()[_0x4f4333('0x114')](_0x4f4333('0x1bf6'))+'?')[_0x4f4333('0x93e')](_0x4f4333('0x1670')+(_0x49db7f[_0x4f4333('0x1a8d')]||_0x4f4333('0x1bf6'))+_0x4f4333('0x229e')+_0x4f4333('0x27c7'))[_0x4f4333('0x10bc')](_0x4f4333('0x1965'))[_0x4f4333('0x24d0')](_0x2553cf)['ok']('OK')[_0x4f4333('0x1801')](_0x4f4333('0x1d8d'));_0x223a23[_0x4f4333('0x2fa')](_0x419a38)[_0x4f4333('0x2788')](function(){_0x4faf09(_0x49db7f);},function(){const _0x4e3dbf=_0x4f4333;console[_0x4e3dbf('0x10df')](_0x4e3dbf('0x1d8d'));});}let _0x59e1fb=!![],_0x2ae2a4=0x1;_0x41be02[_0x446b48('0x1662')](_0x446b48('0x1569'),function(_0x5c2844,_0x445f36){const _0x5be391=_0x446b48;_0x59e1fb?_0x12b666(function(){_0x59e1fb=![];}):(!_0x445f36&&(_0x2ae2a4=_0x2fd688[_0x5be391('0x135a')]['page']),_0x5c2844!==_0x445f36&&(_0x2fd688[_0x5be391('0x135a')][_0x5be391('0x23f5')]=0x1),!_0x5c2844&&(_0x2fd688[_0x5be391('0x135a')]['page']=_0x2ae2a4),_0x2fd688['getProjects']());});function _0x4d8329(_0x5910c1){const _0x1e5e03=_0x446b48;_0x2fd688[_0x1e5e03('0x18f9')]=_0x5910c1||{'count':0x0,'rows':[]};}function _0x1b4d12(){const _0x4cd637=_0x446b48;_0x2fd688[_0x4cd637('0x135a')][_0x4cd637('0x19e')]=(_0x2fd688[_0x4cd637('0x135a')][_0x4cd637('0x23f5')]-0x1)*_0x2fd688[_0x4cd637('0x135a')][_0x4cd637('0x68e')],_0x577a76['hasRole'](_0x4cd637('0xe23'))?_0x2fd688[_0x4cd637('0x1808')]=_0x4d7182[_0x4cd637('0xf5b')]['get'](_0x2fd688['query'],_0x4d8329)[_0x4cd637('0x1714')]:(_0x2fd688[_0x4cd637('0x135a')]['id']=_0x2fd688[_0x4cd637('0x63c')]['id'],_0x2fd688[_0x4cd637('0x135a')][_0x4cd637('0xb13')]='Projects',_0x2fd688[_0x4cd637('0x1808')]=_0x4d7182[_0x4cd637('0x63c')][_0x4cd637('0xa1')](_0x2fd688['query'],_0x4d8329)['$promise']);}function _0x2366c2(_0x340527,_0x631178){const _0x438443=_0x446b48;_0x223a23[_0x438443('0x2fa')]({'controller':'CreateOrEditProjectDialogController','controllerAs':'vm','templateUrl':_0x24836b,'parent':angular[_0x438443('0x16b1')](_0x52c323[_0x438443('0x945')]),'targetEvent':_0x340527,'clickOutsideToClose':!![],'locals':{'project':_0x631178,'projects':_0x2fd688[_0x438443('0x18f9')]['rows'],'license':_0x2fd688[_0x438443('0x130d')],'setting':_0x2fd688[_0x438443('0x1af0')],'crudPermissions':_0x2fd688[_0x438443('0xe28')]}});}function _0x4faf09(_0x5ea9b1){const _0x122b70=_0x446b48;_0x4d7182[_0x122b70('0xf5b')][_0x122b70('0x17c4')]({'id':_0x5ea9b1['id']})[_0x122b70('0x1714')]['then'](function(){const _0x4dd70b=_0x122b70;_0x283545()[_0x4dd70b('0x1a90')](_0x2fd688['projects']['rows'],{'id':_0x5ea9b1['id']}),_0x2fd688[_0x4dd70b('0x18f9')][_0x4dd70b('0x338')]-=0x1,!_0x2fd688[_0x4dd70b('0x18f9')]['rows'][_0x4dd70b('0x2566')]&&_0x2fd688[_0x4dd70b('0x1fbe')](),_0x55c542[_0x4dd70b('0x173b')]({'title':_0x283545()[_0x4dd70b('0x114')](_0x4dd70b('0x5b8'))+_0x4dd70b('0x20db'),'msg':_0x5ea9b1['name']?_0x5ea9b1[_0x4dd70b('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x122b70('0x1cb5')](function(_0x3bd8bc){const _0x233f0c=_0x122b70;if(_0x3bd8bc[_0x233f0c('0x11fc')]&&_0x3bd8bc[_0x233f0c('0x11fc')][_0x233f0c('0x25be')]&&_0x3bd8bc[_0x233f0c('0x11fc')][_0x233f0c('0x25be')]['length']){_0x2fd688[_0x233f0c('0x25be')]=_0x3bd8bc[_0x233f0c('0x11fc')][_0x233f0c('0x25be')]||[{'message':_0x3bd8bc[_0x233f0c('0x17df')](),'type':_0x233f0c('0x959')}];for(let _0x3059c7=0x0;_0x3059c7<_0x3bd8bc[_0x233f0c('0x11fc')]['errors'][_0x233f0c('0x2566')];_0x3059c7++){_0x55c542[_0x233f0c('0x5e8')]({'title':_0x3bd8bc['data'][_0x233f0c('0x25be')][_0x3059c7][_0x233f0c('0x1d7')],'msg':_0x3bd8bc[_0x233f0c('0x11fc')][_0x233f0c('0x25be')][_0x3059c7][_0x233f0c('0x15e2')]});}}else _0x55c542[_0x233f0c('0x5e8')]({'title':_0x3bd8bc[_0x233f0c('0x1b51')]?_0x233f0c('0x15d1')+_0x3bd8bc[_0x233f0c('0x1b51')]+_0x233f0c('0x1b0b')+_0x3bd8bc[_0x233f0c('0x22ce')]:_0x233f0c('0x959'),'msg':_0x3bd8bc[_0x233f0c('0x11fc')]?JSON[_0x233f0c('0x1be0')](_0x3bd8bc[_0x233f0c('0x11fc')][_0x233f0c('0x15e2')]):_0x3bd8bc['message']||_0x3bd8bc[_0x233f0c('0x17df')]()});});}function _0x1b8430(){const _0x52842e=_0x446b48,_0x8f809=angular['copy'](_0x2fd688[_0x52842e('0xe35')]);return _0x2fd688['selectedProjects']=[],_0x8f809;}function _0x4c3fed(_0x510ab7){const _0x59ee36=_0x446b48,_0x4959b5=_0x223a23[_0x59ee36('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')[_0x59ee36('0x93e')](_0x59ee36('0x1670')+_0x2fd688[_0x59ee36('0xe35')][_0x59ee36('0x2566')]+_0x59ee36('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x59ee36('0x63b'))[_0x59ee36('0x24d0')](_0x510ab7)['ok']('OK')[_0x59ee36('0x1801')](_0x59ee36('0x1d8d'));_0x223a23[_0x59ee36('0x2fa')](_0x4959b5)[_0x59ee36('0x2788')](function(){const _0x4ca2a9=_0x59ee36;_0x2fd688[_0x4ca2a9('0xe35')][_0x4ca2a9('0x1534')](function(_0x432e0b){_0x4faf09(_0x432e0b);}),_0x2fd688[_0x4ca2a9('0xe35')]=[];});}function _0x2c44fd(){const _0x49e382=_0x446b48;_0x2fd688[_0x49e382('0xe35')]=[];}function _0x5901f2(){const _0x5366a5=_0x446b48;_0x2fd688[_0x5366a5('0xe35')]=_0x2fd688['projects']['rows'];}}const _0xd97cc8=_0x34336c;_0x25974d[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x25974d(_0x2bc111,_0x13d73e){const _0x8667c6=_0x34e79e;_0x2bc111[_0x8667c6('0x249b')](_0x8667c6('0x1b43'),{'abstract':!![],'url':_0x8667c6('0x2107')})[_0x8667c6('0x249b')](_0x8667c6('0x1a14'),{'url':_0x8667c6('0x745'),'views':{'content@app':{'templateUrl':_0x1c72b9,'controller':_0x8667c6('0x1eaa')}},'resolve':{'projects':[_0x8667c6('0x1318'),'Auth',function(_0x105988,_0x4579f0){const _0x137930=_0x8667c6;return _0x4579f0[_0x137930('0x1516')](_0x137930('0xe23'))?_0x105988[_0x137930('0x2322')]('jscriptyProject@get',{'fields':_0x137930('0x1e0f'),'sort':_0x137930('0x1cee'),'limit':0xa,'offset':0x0}):_0x105988[_0x137930('0x2322')](_0x137930('0x27c5'),{'id':_0x4579f0[_0x137930('0x24cc')]()[_0x137930('0x237f')],'section':'Projects','fields':_0x137930('0x1e0f'),'sort':_0x137930('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x8667c6('0x1318'),'Auth',function(_0x538ec2,_0x4079b9){const _0x43e6b4=_0x8667c6;return _0x4079b9[_0x43e6b4('0x1516')](_0x43e6b4('0xe23'))?null:_0x538ec2['resolve'](_0x43e6b4('0x231d'),{'fields':_0x43e6b4('0x3f0'),'id':_0x4079b9[_0x43e6b4('0x24cc')]()[_0x43e6b4('0x237f')]});}],'userProfileSection':[_0x8667c6('0x1318'),'Auth',function(_0x296065,_0xfb0ea5){const _0x2c185e=_0x8667c6;return _0xfb0ea5[_0x2c185e('0x1516')](_0x2c185e('0xe23'))?null:_0x296065[_0x2c185e('0x2322')](_0x2c185e('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xfb0ea5[_0x2c185e('0x24cc')]()[_0x2c185e('0x237f')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x8667c6('0x184c')})['state'](_0x8667c6('0x144d'),{'url':_0x8667c6('0x206b'),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x24e340,'controller':_0x8667c6('0x18bc')}},'resolve':{'project':['apiResolver','$stateParams',function(_0x5d9c49,_0x35e686){const _0x17a1a2=_0x8667c6;return _0x5d9c49['resolve'](_0x17a1a2('0x2529'),{'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','id':_0x35e686['id']});}],'userProfileSection':['apiResolver',_0x8667c6('0x1b04'),function(_0x49d2e9,_0x2055d2){const _0x203e35=_0x8667c6;return _0x49d2e9[_0x203e35('0x2322')]('userProfileSection@get',{'fields':_0x203e35('0xe2c'),'userProfileId':_0x2055d2['getCurrentUser']()[_0x203e35('0x237f')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x8667c6('0x184c')}),_0x13d73e[_0x8667c6('0x15ae')](_0x8667c6('0x238b'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1b43'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),'flow',_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),'ngAnimate','mdPickers',_0x34e79e('0x1bb'),_0x34e79e('0x279'),'mwFormUtils',_0x34e79e('0x250d'),'angular-cron-jobs',_0x34e79e('0x1847'),'angularMaterialFormBuilder',_0x34e79e('0x2023'),'chart.js',_0x34e79e('0xe82')])[_0x34e79e('0x1a22')](_0x25974d)['controller'](_0x34e79e('0x5b6'),_0x1cda3a)[_0x34e79e('0xb44')](_0x34e79e('0xc7a'),_0x50c892)['controller'](_0x34e79e('0x7df'),_0x233553)[_0x34e79e('0xb44')]('ProjectcloneController',_0x35de3c)['controller'](_0x34e79e('0x1456'),_0x3b8b29)[_0x34e79e('0xb44')]('ProjectSessionsController',_0x50faf1)[_0x34e79e('0xb44')](_0x34e79e('0xc48'),_0x453928)[_0x34e79e('0xb44')](_0x34e79e('0x601'),_0x41f80f)[_0x34e79e('0xb44')](_0x34e79e('0x1a7f'),_0xd97cc8);const _0x3e066d=_0x18dd13['p']+_0x34e79e('0xef6'),_0x16829e=_0x18dd13['p']+'src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html';_0x225dcd[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q','$translate',_0x34e79e('0xd57'),_0x34e79e('0x701'),'plugin',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x225dcd(_0x2a1623,_0x16fef6,_0x270bc2,_0x420fd3,_0x38f16f,_0x371ccd,_0x13ba7b,_0x3ec3ee,_0x4190b5,_0x16d836,_0x115dec,_0x5271ef,_0x2c7037,_0x1e782b){const _0x41b358=_0x34e79e,_0x10fa07=this;_0x10fa07['currentUser']=_0x115dec[_0x41b358('0x24cc')](),_0x10fa07[_0x41b358('0x25be')]=[],_0x10fa07['setting']=_0x2c7037,_0x10fa07[_0x41b358('0x130d')]=_0x5271ef,_0x10fa07[_0x41b358('0xe28')]=_0x1e782b,_0x10fa07['hasModulePermissions']={},_0x10fa07[_0x41b358('0x18ad')]=_0x10fa07[_0x41b358('0x1af0')]&&_0x10fa07[_0x41b358('0x1af0')][_0x41b358('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10fa07[_0x41b358('0x14e4')]=_0x41b358('0xa60'),_0x10fa07[_0x41b358('0x1c5')]=angular[_0x41b358('0x2669')](_0x4190b5),_0x10fa07[_0x41b358('0x701')]=_0x3ec3ee,_0x10fa07['newPlugin']=![];!_0x10fa07[_0x41b358('0x1c5')]&&(_0x10fa07[_0x41b358('0x1c5')]={},_0x10fa07[_0x41b358('0x14e4')]=_0x41b358('0x1267'),_0x10fa07[_0x41b358('0x1d74')]=!![]);_0x10fa07[_0x41b358('0x11b7')]=_0x2717e5,_0x10fa07[_0x41b358('0x1949')]=_0x4822bc,_0x10fa07[_0x41b358('0x223d')]=_0x409728,_0x10fa07[_0x41b358('0x2601')]=_0x1c7173,_0x10fa07[_0x41b358('0xca7')]=_0x4e7f65;function _0x2717e5(){const _0x55f27d=_0x41b358;_0x10fa07[_0x55f27d('0x25be')]=[],_0x16d836[_0x55f27d('0x1c5')][_0x55f27d('0xbd0')](_0x10fa07[_0x55f27d('0x1c5')])['$promise'][_0x55f27d('0x2788')](function(_0x32a44c){const _0x1accf2=_0x55f27d;_0x10fa07[_0x1accf2('0x701')][_0x1accf2('0xc51')](_0x32a44c[_0x1accf2('0x1cbf')]()),_0x13ba7b[_0x1accf2('0x173b')]({'title':_0x1accf2('0x9a0'),'msg':_0x10fa07[_0x1accf2('0x1c5')][_0x1accf2('0x1a8d')]?_0x10fa07[_0x1accf2('0x1c5')][_0x1accf2('0x1a8d')]+_0x1accf2('0x1e4a'):''}),_0x4e7f65(_0x32a44c);})[_0x55f27d('0x1cb5')](function(_0x251e18){const _0x13a31c=_0x55f27d;if(_0x251e18['data']&&_0x251e18[_0x13a31c('0x11fc')][_0x13a31c('0x25be')]&&_0x251e18['data'][_0x13a31c('0x25be')][_0x13a31c('0x2566')]){_0x10fa07['errors']=_0x251e18[_0x13a31c('0x11fc')][_0x13a31c('0x25be')]||[{'message':_0x251e18[_0x13a31c('0x17df')](),'type':_0x13a31c('0xce2')}];for(let _0x1b7d67=0x0;_0x1b7d67<_0x251e18[_0x13a31c('0x11fc')][_0x13a31c('0x25be')]['length'];_0x1b7d67+=0x1){_0x13ba7b[_0x13a31c('0x5e8')]({'title':_0x251e18[_0x13a31c('0x11fc')][_0x13a31c('0x25be')][_0x1b7d67]['type'],'msg':_0x251e18[_0x13a31c('0x11fc')]['errors'][_0x1b7d67][_0x13a31c('0x15e2')]});}}else _0x13ba7b['error']({'title':_0x251e18[_0x13a31c('0x1b51')]?'API:'+_0x251e18[_0x13a31c('0x1b51')]+_0x13a31c('0x1b0b')+_0x251e18[_0x13a31c('0x22ce')]:_0x13a31c('0xce2'),'msg':_0x251e18[_0x13a31c('0x11fc')]?JSON[_0x13a31c('0x1be0')](_0x251e18[_0x13a31c('0x11fc')][_0x13a31c('0x15e2')]):_0x251e18[_0x13a31c('0x17df')]()});});}function _0x4822bc(){const _0x4ab3ff=_0x41b358;_0x10fa07[_0x4ab3ff('0x25be')]=[],_0x16d836['plugin'][_0x4ab3ff('0x2740')]({'id':_0x10fa07[_0x4ab3ff('0x1c5')]['id']},_0x10fa07['plugin'])[_0x4ab3ff('0x1714')][_0x4ab3ff('0x2788')](function(_0x5228aa){const _0x1b110e=_0x4ab3ff,_0x260c2c=_0x283545()[_0x1b110e('0x20e8')](_0x10fa07[_0x1b110e('0x701')],{'id':_0x5228aa['id']});_0x260c2c&&_0x283545()[_0x1b110e('0x2503')](_0x260c2c,_0x283545()[_0x1b110e('0x41b')](_0x5228aa[_0x1b110e('0x1cbf')](),_0x283545()[_0x1b110e('0x2163')](_0x260c2c))),_0x13ba7b[_0x1b110e('0x173b')]({'title':'Plugin\x20properly\x20saved!','msg':_0x10fa07['plugin'][_0x1b110e('0x1a8d')]?_0x10fa07[_0x1b110e('0x1c5')][_0x1b110e('0x1a8d')]+_0x1b110e('0x24cf'):''}),_0x4e7f65(_0x5228aa);})[_0x4ab3ff('0x1cb5')](function(_0x3f4209){const _0x148ab8=_0x4ab3ff;if(_0x3f4209[_0x148ab8('0x11fc')]&&_0x3f4209[_0x148ab8('0x11fc')][_0x148ab8('0x25be')]&&_0x3f4209[_0x148ab8('0x11fc')][_0x148ab8('0x25be')][_0x148ab8('0x2566')]){_0x10fa07[_0x148ab8('0x25be')]=_0x3f4209[_0x148ab8('0x11fc')][_0x148ab8('0x25be')]||[{'message':_0x3f4209[_0x148ab8('0x17df')](),'type':'api.plugin.update'}];for(let _0x36b2c2=0x0;_0x36b2c2<_0x3f4209[_0x148ab8('0x11fc')][_0x148ab8('0x25be')][_0x148ab8('0x2566')];_0x36b2c2++){_0x13ba7b[_0x148ab8('0x5e8')]({'title':_0x3f4209[_0x148ab8('0x11fc')][_0x148ab8('0x25be')][_0x36b2c2][_0x148ab8('0x1d7')],'msg':_0x3f4209['data'][_0x148ab8('0x25be')][_0x36b2c2][_0x148ab8('0x15e2')]});}}else _0x13ba7b[_0x148ab8('0x5e8')]({'title':_0x3f4209[_0x148ab8('0x1b51')]?_0x148ab8('0x15d1')+_0x3f4209[_0x148ab8('0x1b51')]+_0x148ab8('0x1b0b')+_0x3f4209[_0x148ab8('0x22ce')]:_0x148ab8('0x2458'),'msg':_0x3f4209[_0x148ab8('0x11fc')]?JSON[_0x148ab8('0x1be0')](_0x3f4209['data']['message']):_0x3f4209['toString']()});});}function _0x409728(_0xb3a951){const _0x425969=_0x41b358;_0x10fa07[_0x425969('0x25be')]=[];const _0x37df0b=_0x420fd3[_0x425969('0x112e')]()['title'](_0x425969('0x458'))['content'](_0x425969('0x2d8'))[_0x425969('0x10bc')](_0x425969('0x1b8e'))['ok'](_0x425969('0x2786'))['cancel'](_0x425969('0x1481'))['targetEvent'](_0xb3a951);_0x420fd3[_0x425969('0x2fa')](_0x37df0b)[_0x425969('0x2788')](function(){const _0x2ca670=_0x425969;_0x16d836[_0x2ca670('0x1c5')][_0x2ca670('0x17c4')]({'id':_0x10fa07[_0x2ca670('0x1c5')]['id']})[_0x2ca670('0x1714')][_0x2ca670('0x2788')](function(){const _0x2cf36e=_0x2ca670;_0x283545()[_0x2cf36e('0x1a90')](_0x10fa07[_0x2cf36e('0x701')],{'id':_0x10fa07[_0x2cf36e('0x1c5')]['id']}),_0x13ba7b[_0x2cf36e('0x173b')]({'title':_0x2cf36e('0x253e'),'msg':(_0x10fa07[_0x2cf36e('0x1c5')][_0x2cf36e('0x1a8d')]||_0x2cf36e('0x1c5'))+_0x2cf36e('0x14d4')}),_0x4e7f65(_0x10fa07[_0x2cf36e('0x1c5')]);})[_0x2ca670('0x1cb5')](function(_0x3828a1){const _0x511921=_0x2ca670;if(_0x3828a1[_0x511921('0x11fc')]&&_0x3828a1['data'][_0x511921('0x25be')]&&_0x3828a1[_0x511921('0x11fc')][_0x511921('0x25be')][_0x511921('0x2566')]){_0x10fa07[_0x511921('0x25be')]=_0x3828a1[_0x511921('0x11fc')][_0x511921('0x25be')]||[{'message':_0x3828a1[_0x511921('0x17df')](),'type':'api.plugin.delete'}];for(let _0x14ce39=0x0;_0x14ce39<_0x3828a1[_0x511921('0x11fc')]['errors']['length'];_0x14ce39++){_0x13ba7b[_0x511921('0x5e8')]({'title':_0x3828a1[_0x511921('0x11fc')][_0x511921('0x25be')][_0x14ce39][_0x511921('0x1d7')],'msg':_0x3828a1[_0x511921('0x11fc')][_0x511921('0x25be')][_0x14ce39][_0x511921('0x15e2')]});}}else _0x13ba7b['error']({'title':_0x3828a1[_0x511921('0x1b51')]?_0x511921('0x15d1')+_0x3828a1[_0x511921('0x1b51')]+_0x511921('0x1b0b')+_0x3828a1[_0x511921('0x22ce')]:_0x511921('0x1fbc'),'msg':_0x3828a1['data']?JSON[_0x511921('0x1be0')](_0x3828a1[_0x511921('0x11fc')]['message']):_0x3828a1[_0x511921('0x15e2')]||_0x3828a1['toString']()});});},function(){});}function _0x1c7173(_0x349642){return _0x349642===null?undefined:new Date(_0x349642);}function _0x4e7f65(_0x594e12){const _0x5f1e2d=_0x41b358;_0x420fd3[_0x5f1e2d('0x19d')](_0x594e12);}}const _0x43411f=_0x225dcd;_0x153c76['$inject']=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x1a5c'),'license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x1c5'),_0x34e79e('0xec9')];function _0x153c76(_0xb949c0,_0x2e8143,_0x50a690,_0xc12a99,_0x2bdda7,_0x4b6c45,_0x577979,_0xdb05d3,_0x489c4c,_0x35d83f,_0x490b72,_0xe4c1e1){const _0x58431c=_0x34e79e,_0x37212f=this;_0x37212f[_0x58431c('0x9cb')]=_0x35d83f[_0x58431c('0x24cc')](),_0x37212f[_0x58431c('0x130d')]=_0x4b6c45,_0x37212f[_0x58431c('0x1af0')]=_0x577979,_0x37212f['passwordPattern']=_0x37212f[_0x58431c('0x1af0')][_0x58431c('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x37212f[_0x58431c('0xe9')]=_0x2e8143[_0x58431c('0x170c')]()+_0x58431c('0x726')+_0x2e8143[_0x58431c('0x1c6a')](),_0x37212f['plugin']=_0x490b72||_0xb949c0[_0x58431c('0x4b9')][_0x58431c('0x1c5')]||{},_0x37212f['userProfileSection']=_0xe4c1e1&&_0xe4c1e1['count']==0x1?_0xe4c1e1['rows'][0x0]:null,_0x37212f[_0x58431c('0xe28')]=_0x35d83f['parseCrudPermissions'](_0x37212f[_0x58431c('0xec9')]?_0x37212f['userProfileSection'][_0x58431c('0xe28')]:null),_0x37212f['hasModulePermissions']={},_0x37212f[_0x58431c('0xcb3')]=_0xb949c0[_0x58431c('0x4b9')][_0x58431c('0x24f6')]||0x0,_0x37212f[_0x58431c('0x204f')]=_0x489c4c[_0x58431c('0x2276')],_0x37212f['gotoPlugins']=_0x164e12,_0x37212f[_0x58431c('0x1949')]=_0x2765ec;function _0x164e12(){const _0x3dd4a8=_0x58431c;_0xb949c0['go'](_0x3dd4a8('0x26f5'),{},{'reload':_0x3dd4a8('0x26f5')});}function _0x2765ec(){const _0x30b530=_0x58431c;_0xdb05d3[_0x30b530('0x1c5')]['update']({'id':_0x37212f[_0x30b530('0x1c5')]['id']},_0x37212f[_0x30b530('0x1c5')])[_0x30b530('0x1714')][_0x30b530('0x2788')](function(){const _0xee48c=_0x30b530;_0x489c4c[_0xee48c('0x173b')]({'title':_0xee48c('0x15a5'),'msg':_0x37212f['plugin']['name']?_0x37212f[_0xee48c('0x1c5')][_0xee48c('0x1a8d')]+_0xee48c('0x6f8'):''});})['catch'](function(_0x287fa2){const _0x5505e6=_0x30b530;_0x489c4c[_0x5505e6('0x5e8')]({'title':_0x287fa2['status']?_0x5505e6('0x15d1')+_0x287fa2[_0x5505e6('0x1b51')]+_0x5505e6('0x1b0b')+_0x287fa2[_0x5505e6('0x22ce')]:_0x5505e6('0x2105'),'msg':_0x287fa2[_0x5505e6('0x11fc')]?JSON[_0x5505e6('0x1be0')](_0x287fa2['data']):_0x287fa2[_0x5505e6('0x17df')]()});});}}const _0x417b26=_0x153c76,_0xd535d2=_0x18dd13['p']+'src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog.html',_0x2a18e1=_0x18dd13['p']+_0x34e79e('0x21df');_0x440879[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),'$window',_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),'$translate',_0x34e79e('0x701'),_0x34e79e('0x63c'),'userProfileSection','api',_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x440879(_0x527a9c,_0x547e88,_0x493c5d,_0x8998a8,_0x566b30,_0x1de2fc,_0x371e0f,_0x592dcc,_0x2e898a,_0x3d8b62,_0x2d9163,_0x3e0559,_0x341611,_0x2f4cf2,_0x702683,_0x5f0d4b,_0x370451){const _0x5cfab3=_0x34e79e,_0x2d5be6=this;_0x2d5be6['license']=_0x5f0d4b,_0x2d5be6[_0x5cfab3('0x1af0')]=_0x370451,_0x2d5be6[_0x5cfab3('0x9cb')]=_0x702683[_0x5cfab3('0x24cc')](),_0x2d5be6[_0x5cfab3('0x701')]=_0x2e898a||{'count':0x0,'rows':[]},_0x2d5be6[_0x5cfab3('0x63c')]=_0x3d8b62,_0x2d5be6[_0x5cfab3('0xec9')]=_0x2d9163&&_0x2d9163[_0x5cfab3('0x338')]==0x1?_0x2d9163['rows'][0x0]:null,_0x2d5be6[_0x5cfab3('0xe28')]=_0x702683['parseCrudPermissions'](_0x2d5be6[_0x5cfab3('0xec9')]?_0x2d5be6[_0x5cfab3('0xec9')][_0x5cfab3('0xe28')]:null),_0x2d5be6[_0x5cfab3('0x26a9')]='plugins',_0x2d5be6['listOrder']='',_0x2d5be6[_0x5cfab3('0x25e2')]=null,_0x2d5be6[_0x5cfab3('0x1b95')]=[],_0x2d5be6['query']={'fields':_0x5cfab3('0x1cec'),'sort':_0x5cfab3('0x1a8d'),'limit':0xa,'page':0x1},_0x2d5be6[_0x5cfab3('0x1c37')]=![],_0x2d5be6['arraysidebar']=_0x283545()['keyBy']([{'option':_0x5cfab3('0x25e3'),'value':_0x5cfab3('0x1ac1')},{'option':_0x5cfab3('0x2806'),'value':_0x5cfab3('0xe6c')},{'option':_0x5cfab3('0x1d12'),'value':_0x5cfab3('0x16e9')},{'option':'Never','value':_0x5cfab3('0x1c4')}],function(_0x58f538){const _0x268ac2=_0x5cfab3;return _0x283545()[_0x268ac2('0x10a4')](_0x58f538[_0x268ac2('0x49')],new RegExp('\x27','g'),'');}),_0x2d5be6['installplugin']=_0x2928cb,_0x2d5be6[_0x5cfab3('0x1f7e')]=_0x47f761,_0x2d5be6[_0x5cfab3('0x2351')]=_0x558459,_0x2d5be6[_0x5cfab3('0x1f30')]=_0xb4e143,_0x2d5be6[_0x5cfab3('0x17f5')]=_0x4e00ca,_0x2d5be6[_0x5cfab3('0x15ef')]=_0xf3888e,_0x2d5be6['deleteconfirm']=_0x1440cd,_0x2d5be6['success']=_0x246d36,_0x2d5be6[_0x5cfab3('0x1d87')]=_0x588042,_0x2d5be6[_0x5cfab3('0x20b8')]=_0x8d215a,_0x2d5be6['deletePlugin']=_0x1f24d3,_0x2d5be6[_0x5cfab3('0x1563')]=_0x50b30a,_0x2d5be6['deleteSelectedPlugins']=_0x1e730d,_0x2d5be6[_0x5cfab3('0x1803')]=_0xe7f533,_0x2d5be6['selectAllPlugins']=_0x39717a,_0x2d5be6[_0x5cfab3('0x14c3')]=_0x3f0772;function _0x2928cb(_0x89edf8){const _0x3170fe=_0x5cfab3;if(_0x89edf8[_0x3170fe('0x1d7')]==='script')_0x2d5be6[_0x3170fe('0x1c37')]=!![],_0x3e0559[_0x3170fe('0x88')]['save']({'name':_0x89edf8['scriptName'],'script':_0x89edf8[_0x3170fe('0xd1')]+'/'+_0x89edf8[_0x3170fe('0x1121')]})['$promise']['then'](function(){const _0x3fab99=_0x3170fe;return _0x89edf8[_0x3fab99('0x131')]=!![],_0x3e0559[_0x3fab99('0x1c5')][_0x3fab99('0x2740')]({'id':_0x89edf8['id']},_0x89edf8)[_0x3fab99('0x1714')];})[_0x3170fe('0x2788')](function(){const _0x16061a=_0x3170fe;_0x2d5be6[_0x16061a('0x1c37')]=![],_0x2f4cf2[_0x16061a('0x173b')]({'title':_0x16061a('0x1cae'),'msg':_0x89edf8[_0x16061a('0x1a8d')]?_0x89edf8[_0x16061a('0x1a8d')]+'\x20has\x20been\x20installed!':''});})[_0x3170fe('0x1cb5')](function(_0x13529d){const _0xe67d90=_0x3170fe;if(_0x13529d['data']&&_0x13529d['data'][_0xe67d90('0x25be')]&&_0x13529d['data']['errors'][_0xe67d90('0x2566')]){_0x2d5be6[_0xe67d90('0x25be')]=_0x13529d[_0xe67d90('0x11fc')]['errors']||[{'message':_0x13529d['toString'](),'type':_0xe67d90('0x812')}];for(let _0x1305c8=0x0;_0x1305c8<_0x13529d[_0xe67d90('0x11fc')][_0xe67d90('0x25be')]['length'];_0x1305c8++){_0x2f4cf2['error']({'title':_0x13529d['data']['errors'][_0x1305c8][_0xe67d90('0x1d7')],'msg':_0x13529d[_0xe67d90('0x11fc')][_0xe67d90('0x25be')][_0x1305c8][_0xe67d90('0x15e2')]});}}else _0x2f4cf2['error']({'title':_0x13529d['status']?_0xe67d90('0x15d1')+_0x13529d[_0xe67d90('0x1b51')]+_0xe67d90('0x1b0b')+_0x13529d[_0xe67d90('0x22ce')]:_0xe67d90('0x812'),'msg':_0x13529d['data']?JSON['stringify'](_0x13529d[_0xe67d90('0x11fc')]['message']):_0x13529d[_0xe67d90('0x15e2')]||_0x13529d[_0xe67d90('0x17df')]()});});else return _0x89edf8[_0x3170fe('0x131')]=!![],_0x3e0559[_0x3170fe('0x1c5')][_0x3170fe('0x2740')]({'id':_0x89edf8['id']},_0x89edf8)[_0x3170fe('0x1714')]['then'](function(){const _0x2f85f1=_0x3170fe;_0x2f4cf2[_0x2f85f1('0x173b')]({'title':_0x2f85f1('0x1cae'),'msg':_0x89edf8[_0x2f85f1('0x1a8d')]?_0x89edf8[_0x2f85f1('0x1a8d')]+_0x2f85f1('0x1753'):''});})[_0x3170fe('0x1cb5')](function(_0x3457e9){const _0x2f49f4=_0x3170fe;if(_0x3457e9[_0x2f49f4('0x11fc')]&&_0x3457e9['data'][_0x2f49f4('0x25be')]&&_0x3457e9[_0x2f49f4('0x11fc')][_0x2f49f4('0x25be')][_0x2f49f4('0x2566')]){_0x2d5be6[_0x2f49f4('0x25be')]=_0x3457e9['data']['errors']||[{'message':_0x3457e9[_0x2f49f4('0x17df')](),'type':'api.plugin.update'}];for(let _0x29e76b=0x0;_0x29e76b<_0x3457e9[_0x2f49f4('0x11fc')][_0x2f49f4('0x25be')][_0x2f49f4('0x2566')];_0x29e76b++){_0x2f4cf2[_0x2f49f4('0x5e8')]({'title':_0x3457e9[_0x2f49f4('0x11fc')][_0x2f49f4('0x25be')][_0x29e76b][_0x2f49f4('0x1d7')],'msg':_0x3457e9[_0x2f49f4('0x11fc')]['errors'][_0x29e76b][_0x2f49f4('0x15e2')]});}}else _0x2f4cf2[_0x2f49f4('0x5e8')]({'title':_0x3457e9[_0x2f49f4('0x1b51')]?'API:'+_0x3457e9[_0x2f49f4('0x1b51')]+'\x20-\x20'+_0x3457e9[_0x2f49f4('0x22ce')]:_0x2f49f4('0x2458'),'msg':_0x3457e9['data']?JSON[_0x2f49f4('0x1be0')](_0x3457e9['data']['message']):_0x3457e9[_0x2f49f4('0x15e2')]||_0x3457e9['toString']()});});}function _0x47f761(_0x423f69){const _0x4e3ddd=_0x5cfab3;_0x493c5d['go'](_0x4e3ddd('0x10c9'),{'id':_0x423f69['id'],'plugin':_0x423f69,'crudPermissions':_0x2d5be6[_0x4e3ddd('0xe28')]});}function _0x558459(_0x57b3d2,_0x45de18){const _0x44b570=_0x5cfab3,_0x3875d8=_0x566b30[_0x44b570('0x112e')]()[_0x44b570('0x14e4')](_0x44b570('0x1d3'))[_0x44b570('0x93e')](_0x44b570('0x1670')+(_0x57b3d2[_0x44b570('0x1a8d')]||'plugin')+_0x44b570('0x229e')+'\x20attached\x20process\x20will\x20be\x20stoppped.')[_0x44b570('0x10bc')](_0x44b570('0x1633'))['targetEvent'](_0x45de18)['ok']('OK')[_0x44b570('0x1801')]('CANCEL');_0x566b30[_0x44b570('0x2fa')](_0x3875d8)[_0x44b570('0x2788')](function(){_0x309f98(_0x57b3d2);},function(){const _0x5d476e=_0x44b570;console['log'](_0x5d476e('0x1d8d'));});}function _0x309f98(_0x43863a){const _0x2f92bb=_0x5cfab3;_0x3e0559[_0x2f92bb('0x88')]['get']()[_0x2f92bb('0x1714')][_0x2f92bb('0x2788')](function(_0x3d9a8c){const _0x3ca4ef=_0x2f92bb;if(!_0x3d9a8c||!_0x3d9a8c['rows'])throw new Error(_0x3ca4ef('0x197f'));const _0x41a454=_0x283545()['find'](_0x3d9a8c['rows'],{'name':_0x43863a['scriptName']});if(!_0x41a454)throw new Error(_0x3ca4ef('0x25ac'));_0x3e0559['pm2'][_0x3ca4ef('0x2740')]({'id':_0x41a454['pm_id'],'status':_0x3ca4ef('0x1180')})['$promise'][_0x3ca4ef('0x2788')](function(){const _0x3b5009=_0x3ca4ef;_0x2f4cf2[_0x3b5009('0x173b')]({'title':_0x3b5009('0x2226'),'msg':_0x3b5009('0x8e2')});});})[_0x2f92bb('0x1cb5')](function(_0x15083c){const _0x431ffc=_0x2f92bb;if(_0x15083c[_0x431ffc('0x11fc')]&&_0x15083c[_0x431ffc('0x11fc')][_0x431ffc('0x25be')]&&_0x15083c['data'][_0x431ffc('0x25be')][_0x431ffc('0x2566')]){_0x2d5be6['errors']=_0x15083c[_0x431ffc('0x11fc')][_0x431ffc('0x25be')]||[{'message':_0x15083c[_0x431ffc('0x17df')](),'type':_0x431ffc('0x8dc')}];for(let _0x3ed548=0x0;_0x3ed548<_0x15083c[_0x431ffc('0x11fc')]['errors'][_0x431ffc('0x2566')];_0x3ed548++){_0x2f4cf2[_0x431ffc('0x5e8')]({'title':_0x15083c['data'][_0x431ffc('0x25be')][_0x3ed548][_0x431ffc('0x1d7')],'msg':_0x15083c['data']['errors'][_0x3ed548][_0x431ffc('0x15e2')]});}}else _0x2f4cf2[_0x431ffc('0x5e8')]({'title':_0x15083c[_0x431ffc('0x1b51')]?_0x431ffc('0x15d1')+_0x15083c['status']+_0x431ffc('0x1b0b')+_0x15083c[_0x431ffc('0x22ce')]:_0x431ffc('0x8dc'),'msg':_0x15083c[_0x431ffc('0x11fc')]?JSON[_0x431ffc('0x1be0')](_0x15083c[_0x431ffc('0x11fc')][_0x431ffc('0x15e2')]):_0x15083c['message']||_0x15083c[_0x431ffc('0x17df')]()});});}function _0xb4e143(_0x189eec,_0x3b7d04){const _0x183d3d=_0x5cfab3,_0x5ecf52=_0x566b30['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?')['htmlContent'](''+(_0x189eec[_0x183d3d('0x1a8d')]||'plugin')+_0x183d3d('0x229e')+_0x183d3d('0x1cdd'))[_0x183d3d('0x10bc')]('restart\x20plugin\x20process')[_0x183d3d('0x24d0')](_0x3b7d04)['ok']('OK')[_0x183d3d('0x1801')](_0x183d3d('0x1d8d'));_0x566b30[_0x183d3d('0x2fa')](_0x5ecf52)[_0x183d3d('0x2788')](function(){_0x205aad(_0x189eec);},function(){const _0x497520=_0x183d3d;console['log'](_0x497520('0x1d8d'));});}function _0x205aad(_0x50aa52){const _0x13870f=_0x5cfab3;_0x3e0559['pm2']['get']()[_0x13870f('0x1714')][_0x13870f('0x2788')](function(_0x12f98b){const _0x5bec2e=_0x13870f;if(!_0x12f98b||!_0x12f98b[_0x5bec2e('0x25df')])throw new Error('Failed\x20to\x20retrieve\x20pm2\x20processes');const _0x5f316d=_0x283545()['find'](_0x12f98b[_0x5bec2e('0x25df')],{'name':_0x50aa52[_0x5bec2e('0x416')]});if(!_0x5f316d)throw new Error(_0x5bec2e('0x25ac'));_0x3e0559[_0x5bec2e('0x88')][_0x5bec2e('0x2740')]({'id':_0x5f316d[_0x5bec2e('0x2739')],'status':'online'})[_0x5bec2e('0x1714')]['then'](function(){_0x2f4cf2['success']({'title':'Process\x20restarted!','msg':'Attached\x20pm2\x20process\x20successfully\x20restarted'});});})['catch'](function(_0x41ee25){const _0x52405c=_0x13870f;if(_0x41ee25['data']&&_0x41ee25[_0x52405c('0x11fc')]['errors']&&_0x41ee25[_0x52405c('0x11fc')][_0x52405c('0x25be')][_0x52405c('0x2566')]){_0x2d5be6[_0x52405c('0x25be')]=_0x41ee25['data']['errors']||[{'message':_0x41ee25[_0x52405c('0x17df')](),'type':'api.pm2.update'}];for(let _0x164ab6=0x0;_0x164ab6<_0x41ee25[_0x52405c('0x11fc')][_0x52405c('0x25be')][_0x52405c('0x2566')];_0x164ab6++){_0x2f4cf2[_0x52405c('0x5e8')]({'title':_0x41ee25[_0x52405c('0x11fc')][_0x52405c('0x25be')][_0x164ab6][_0x52405c('0x1d7')],'msg':_0x41ee25['data']['errors'][_0x164ab6][_0x52405c('0x15e2')]});}}else _0x2f4cf2['error']({'title':_0x41ee25['status']?_0x52405c('0x15d1')+_0x41ee25[_0x52405c('0x1b51')]+_0x52405c('0x1b0b')+_0x41ee25[_0x52405c('0x22ce')]:_0x52405c('0x8dc'),'msg':_0x41ee25[_0x52405c('0x11fc')]?JSON[_0x52405c('0x1be0')](_0x41ee25[_0x52405c('0x11fc')]['message']):_0x41ee25[_0x52405c('0x15e2')]||_0x41ee25['toString']()});});}function _0x4e00ca(_0x119a2){const _0x1b29d7=_0x5cfab3;return _0x3e0559[_0x1b29d7('0x1c5')][_0x1b29d7('0x1486')]({'id':_0x119a2['id']})['$promise'][_0x1b29d7('0x2788')](function(_0x196372){const _0x13d5cc=_0x1b29d7,_0xe1612c=[_0x196372[_0x13d5cc('0x3f1')]];let _0x402170=_0x13d5cc('0x1486');const _0x1e9ce2=new Blob(_0xe1612c,{'type':_0x196372['type']});_0x402170=_0x119a2['name'][_0x13d5cc('0x10a4')]('\x20','_')[_0x13d5cc('0xc2e')]()+_0x13d5cc('0xfdb');const _0x409c56=window[_0x13d5cc('0x11c4')]['createElement']('a');_0x409c56[_0x13d5cc('0x1c6b')](_0x13d5cc('0x186a'),URL[_0x13d5cc('0x1b0d')](_0x1e9ce2)),_0x409c56[_0x13d5cc('0x1c6b')](_0x13d5cc('0x1486'),_0x402170),document['body']['appendChild'](_0x409c56),_0x409c56[_0x13d5cc('0x132a')]();})[_0x1b29d7('0x1cb5')](function(_0x1b15a0){const _0xed0b5e=_0x1b29d7;if(_0x1b15a0[_0xed0b5e('0x11fc')]&&_0x1b15a0['data'][_0xed0b5e('0x25be')]&&_0x1b15a0['data'][_0xed0b5e('0x25be')][_0xed0b5e('0x2566')])for(let _0x125a5f=0x0;_0x125a5f<_0x1b15a0[_0xed0b5e('0x11fc')][_0xed0b5e('0x25be')][_0xed0b5e('0x2566')];_0x125a5f++){_0x2f4cf2['error']({'title':_0x1b15a0[_0xed0b5e('0x11fc')][_0xed0b5e('0x25be')][_0x125a5f]['type'],'msg':_0x1b15a0[_0xed0b5e('0x11fc')][_0xed0b5e('0x25be')][_0x125a5f][_0xed0b5e('0x15e2')]});}else _0x2f4cf2[_0xed0b5e('0x5e8')]({'title':_0x1b15a0['status']?'API:'+_0x1b15a0['status']+_0xed0b5e('0x1b0b')+_0x1b15a0[_0xed0b5e('0x22ce')]:_0xed0b5e('0xce2'),'msg':_0x1b15a0['data']?JSON[_0xed0b5e('0x1be0')](_0x1b15a0[_0xed0b5e('0x11fc')][_0xed0b5e('0x15e2')]):_0x1b15a0[_0xed0b5e('0x17df')]()});});}function _0xf3888e(_0x37adc6,_0x2f7d47){const _0x531da5=_0x5cfab3,_0x58327a=_0x566b30[_0x531da5('0x112e')]()[_0x531da5('0x14e4')](_0x531da5('0x1364'))[_0x531da5('0x93e')](_0x531da5('0x1670')+(_0x37adc6[_0x531da5('0x1a8d')]||_0x531da5('0x1c5'))+''+_0x531da5('0x68'))[_0x531da5('0x10bc')](_0x531da5('0x2497'))[_0x531da5('0x24d0')](_0x2f7d47)['ok']('OK')['cancel']('CANCEL');_0x566b30[_0x531da5('0x2fa')](_0x58327a)[_0x531da5('0x2788')](function(){_0x1bf120(_0x37adc6);},function(){const _0x5e04bc=_0x531da5;console[_0x5e04bc('0x10df')](_0x5e04bc('0x1d8d'));});}function _0x1bf120(_0x28bcc1){const _0x4afded=_0x5cfab3;return _0x28bcc1[_0x4afded('0x1d7')]==='script'&&_0x3e0559[_0x4afded('0x88')]['get']()['$promise'][_0x4afded('0x2788')](function(_0x1c130a){const _0x2e73d8=_0x4afded;if(!_0x1c130a||!_0x1c130a['rows'])throw new Error(_0x2e73d8('0x197f'));const _0xa94b16=_0x283545()[_0x2e73d8('0x20e8')](_0x1c130a[_0x2e73d8('0x25df')],{'name':_0x28bcc1[_0x2e73d8('0x416')]});if(!_0xa94b16)throw new Error(_0x2e73d8('0x25ac'));_0x3e0559[_0x2e73d8('0x88')][_0x2e73d8('0x17c4')]({'id':_0xa94b16[_0x2e73d8('0x2739')],'name':_0x28bcc1[_0x2e73d8('0x416')]})[_0x2e73d8('0x1714')];})['catch'](function(_0x2ebf8b){const _0x1fb3be=_0x4afded;_0x2f4cf2['error']({'title':_0x2ebf8b[_0x1fb3be('0x1b51')]?_0x1fb3be('0x15d1')+_0x2ebf8b[_0x1fb3be('0x1b51')]+_0x1fb3be('0x1b0b')+_0x2ebf8b[_0x1fb3be('0x22ce')]:_0x1fb3be('0x8f'),'msg':_0x2ebf8b[_0x1fb3be('0x11fc')]?JSON['stringify'](_0x2ebf8b[_0x1fb3be('0x11fc')]['message']):_0x2ebf8b[_0x1fb3be('0x15e2')]||_0x2ebf8b['toString']()});}),_0x28bcc1[_0x4afded('0x131')]=![],_0x3e0559[_0x4afded('0x1c5')][_0x4afded('0x2740')]({'id':_0x28bcc1['id']},_0x28bcc1)[_0x4afded('0x1714')][_0x4afded('0x2788')](function(){const _0x3618ad=_0x4afded;_0x2f4cf2['success']({'title':_0x3618ad('0x1c45'),'msg':_0x28bcc1['name']?_0x28bcc1[_0x3618ad('0x1a8d')]+_0x3618ad('0x1f83'):''});})[_0x4afded('0x1cb5')](function(_0x38e013){const _0x1aa179=_0x4afded;if(_0x38e013[_0x1aa179('0x11fc')]&&_0x38e013['data'][_0x1aa179('0x25be')]&&_0x38e013[_0x1aa179('0x11fc')]['errors'][_0x1aa179('0x2566')]){_0x2d5be6[_0x1aa179('0x25be')]=_0x38e013[_0x1aa179('0x11fc')]['errors']||[{'message':_0x38e013[_0x1aa179('0x17df')](),'type':_0x1aa179('0x2458')}];for(let _0x4ae5bd=0x0;_0x4ae5bd<_0x38e013[_0x1aa179('0x11fc')][_0x1aa179('0x25be')][_0x1aa179('0x2566')];_0x4ae5bd++){_0x2f4cf2['error']({'title':_0x38e013[_0x1aa179('0x11fc')]['errors'][_0x4ae5bd][_0x1aa179('0x1d7')],'msg':_0x38e013[_0x1aa179('0x11fc')][_0x1aa179('0x25be')][_0x4ae5bd][_0x1aa179('0x15e2')]});}}else _0x2f4cf2[_0x1aa179('0x5e8')]({'title':_0x38e013[_0x1aa179('0x1b51')]?_0x1aa179('0x15d1')+_0x38e013[_0x1aa179('0x1b51')]+_0x1aa179('0x1b0b')+_0x38e013[_0x1aa179('0x22ce')]:_0x1aa179('0x2458'),'msg':_0x38e013['data']?JSON[_0x1aa179('0x1be0')](_0x38e013['data']['message']):_0x38e013['message']||_0x38e013[_0x1aa179('0x17df')]()});});}function _0x1440cd(_0x38f7dc,_0x888c7e){const _0x28decd=_0x5cfab3,_0x1daa8b=_0x566b30[_0x28decd('0x112e')]()[_0x28decd('0x14e4')](_0x28decd('0x2114')+_0x283545()[_0x28decd('0x114')](_0x28decd('0x1c5'))+'?')['htmlContent'](_0x28decd('0x1670')+(_0x38f7dc[_0x28decd('0x1a8d')]||_0x28decd('0x1c5'))+''+_0x28decd('0x27c7'))[_0x28decd('0x10bc')](_0x28decd('0x23f0'))[_0x28decd('0x24d0')](_0x888c7e)['ok']('OK')[_0x28decd('0x1801')](_0x28decd('0x1d8d'));_0x566b30['show'](_0x1daa8b)[_0x28decd('0x2788')](function(){_0x1f24d3(_0x38f7dc);},function(){console['log']('CANCEL');});}let _0x1f9bb3=!![],_0x4ac752=0x1;_0x527a9c[_0x5cfab3('0x1662')](_0x5cfab3('0x1569'),function(_0x5631de,_0x51c388){const _0x53bff8=_0x5cfab3;_0x1f9bb3?_0x371e0f(function(){_0x1f9bb3=![];}):(!_0x51c388&&(_0x4ac752=_0x2d5be6[_0x53bff8('0x135a')][_0x53bff8('0x23f5')]),_0x5631de!==_0x51c388&&(_0x2d5be6[_0x53bff8('0x135a')][_0x53bff8('0x23f5')]=0x1),!_0x5631de&&(_0x2d5be6[_0x53bff8('0x135a')][_0x53bff8('0x23f5')]=_0x4ac752),_0x2d5be6[_0x53bff8('0x1d87')]());});function _0x246d36(_0x3e2b1a){_0x2d5be6['plugins']=_0x3e2b1a||{'count':0x0,'rows':[]};}function _0x588042(){const _0x232965=_0x5cfab3;_0x2d5be6[_0x232965('0x135a')][_0x232965('0x19e')]=(_0x2d5be6[_0x232965('0x135a')][_0x232965('0x23f5')]-0x1)*_0x2d5be6[_0x232965('0x135a')]['limit'],_0x702683[_0x232965('0x1516')](_0x232965('0xe23'))?_0x2d5be6[_0x232965('0x1808')]=_0x3e0559[_0x232965('0x1c5')]['get'](_0x2d5be6[_0x232965('0x135a')],_0x246d36)[_0x232965('0x1714')]:(_0x2d5be6[_0x232965('0x135a')]['id']=_0x2d5be6[_0x232965('0x63c')]['id'],_0x2d5be6[_0x232965('0x135a')]['section']=_0x232965('0x61c'),_0x2d5be6['promise']=_0x3e0559['userProfile'][_0x232965('0xa1')](_0x2d5be6['query'],_0x246d36)[_0x232965('0x1714')]);}function _0x8d215a(_0x54dae,_0x5d10d4){const _0x86aad2=_0x5cfab3;_0x566b30[_0x86aad2('0x2fa')]({'controller':_0x86aad2('0x2ed'),'controllerAs':'vm','templateUrl':_0xd535d2,'parent':angular[_0x86aad2('0x16b1')](_0x1de2fc['body']),'targetEvent':_0x54dae,'clickOutsideToClose':!![],'locals':{'plugin':_0x5d10d4,'plugins':_0x2d5be6['plugins'][_0x86aad2('0x25df')],'license':_0x2d5be6[_0x86aad2('0x130d')],'setting':_0x2d5be6['setting'],'crudPermissions':_0x2d5be6[_0x86aad2('0xe28')]}});}function _0x1f24d3(_0x13be33){const _0x1572ff=_0x5cfab3;_0x13be33[_0x1572ff('0x131')]&&_0x13be33['type']==_0x1572ff('0xba2')&&_0x3e0559[_0x1572ff('0x88')][_0x1572ff('0x1335')]()[_0x1572ff('0x1714')][_0x1572ff('0x2788')](function(_0x5230ed){const _0xc92531=_0x1572ff;if(!_0x5230ed||!_0x5230ed[_0xc92531('0x25df')])return _0x2f4cf2[_0xc92531('0x5e8')]({'title':_0xc92531('0x19bf'),'msg':'Failed\x20to\x20retrieve\x20pm2\x20processes'});const _0x38be88=_0x283545()[_0xc92531('0x20e8')](_0x5230ed['rows'],{'name':_0x13be33['scriptName']});if(!_0x38be88){console[_0xc92531('0x10df')](_0xc92531('0x1844'),_0x13be33['scriptName']);return;}_0x3e0559[_0xc92531('0x88')]['delete']({'id':_0x38be88['pm_id'],'name':_0x13be33[_0xc92531('0x416')]})['$promise'];})[_0x1572ff('0x1cb5')](function(){const _0x33110b=_0x1572ff;return _0x2f4cf2[_0x33110b('0x5e8')]({'title':'PM2\x20process\x20not\x20found!','msg':_0x33110b('0x23a6')});}),_0x3e0559[_0x1572ff('0x1c5')][_0x1572ff('0x17c4')]({'id':_0x13be33['id']})[_0x1572ff('0x1714')][_0x1572ff('0x2788')](function(){const _0x391e45=_0x1572ff;_0x283545()['remove'](_0x2d5be6[_0x391e45('0x701')]['rows'],{'id':_0x13be33['id']}),_0x2d5be6[_0x391e45('0x701')]['count']-=0x1,!_0x2d5be6['plugins'][_0x391e45('0x25df')][_0x391e45('0x2566')]&&_0x2d5be6[_0x391e45('0x1d87')](),_0x2f4cf2['success']({'title':_0x283545()[_0x391e45('0x114')](_0x391e45('0x1982'))+_0x391e45('0x20db'),'msg':_0x13be33['name']?_0x13be33[_0x391e45('0x1a8d')]+'\x20has\x20been\x20deleted!':''});})[_0x1572ff('0x1cb5')](function(_0x59ff7c){const _0x58d8e8=_0x1572ff;if(_0x59ff7c[_0x58d8e8('0x11fc')]&&_0x59ff7c['data'][_0x58d8e8('0x25be')]&&_0x59ff7c['data']['errors'][_0x58d8e8('0x2566')]){_0x2d5be6[_0x58d8e8('0x25be')]=_0x59ff7c[_0x58d8e8('0x11fc')][_0x58d8e8('0x25be')]||[{'message':_0x59ff7c[_0x58d8e8('0x17df')](),'type':_0x58d8e8('0x1ee5')}];for(let _0x33a520=0x0;_0x33a520<_0x59ff7c[_0x58d8e8('0x11fc')][_0x58d8e8('0x25be')][_0x58d8e8('0x2566')];_0x33a520++){_0x2f4cf2[_0x58d8e8('0x5e8')]({'title':_0x59ff7c[_0x58d8e8('0x11fc')][_0x58d8e8('0x25be')][_0x33a520][_0x58d8e8('0x1d7')],'msg':_0x59ff7c[_0x58d8e8('0x11fc')]['errors'][_0x33a520][_0x58d8e8('0x15e2')]});}}else _0x2f4cf2[_0x58d8e8('0x5e8')]({'title':_0x59ff7c[_0x58d8e8('0x1b51')]?'API:'+_0x59ff7c[_0x58d8e8('0x1b51')]+_0x58d8e8('0x1b0b')+_0x59ff7c[_0x58d8e8('0x22ce')]:_0x58d8e8('0x1ee5'),'msg':_0x59ff7c[_0x58d8e8('0x11fc')]?JSON[_0x58d8e8('0x1be0')](_0x59ff7c[_0x58d8e8('0x11fc')][_0x58d8e8('0x15e2')]):_0x59ff7c['message']||_0x59ff7c[_0x58d8e8('0x17df')]()});});}function _0x50b30a(){const _0x2e368c=_0x5cfab3,_0x1815ea=angular[_0x2e368c('0x2669')](_0x2d5be6[_0x2e368c('0x1b95')]);return _0x2d5be6['selectedPlugins']=[],_0x1815ea;}function _0x1e730d(_0x5e9a30){const _0x4c317a=_0x5cfab3,_0x11b343=_0x566b30[_0x4c317a('0x112e')]()[_0x4c317a('0x14e4')](_0x4c317a('0x3e7'))[_0x4c317a('0x93e')](_0x4c317a('0x1670')+_0x2d5be6[_0x4c317a('0x1b95')][_0x4c317a('0x2566')]+_0x4c317a('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4c317a('0x25ed'))['targetEvent'](_0x5e9a30)['ok']('OK')[_0x4c317a('0x1801')](_0x4c317a('0x1d8d'));_0x566b30[_0x4c317a('0x2fa')](_0x11b343)['then'](function(){const _0xf5659a=_0x4c317a;_0x2d5be6[_0xf5659a('0x1b95')][_0xf5659a('0x1534')](function(_0x2f4319){_0x1f24d3(_0x2f4319);}),_0x2d5be6[_0xf5659a('0x1b95')]=[];});}function _0xe7f533(){const _0x3aed5e=_0x5cfab3;_0x2d5be6[_0x3aed5e('0x1b95')]=[];}function _0x39717a(){const _0x1c252b=_0x5cfab3;_0x2d5be6[_0x1c252b('0x1b95')]=_0x2d5be6['plugins'][_0x1c252b('0x25df')];}function _0x3f0772(_0x46e682){const _0x564447=_0x5cfab3;_0x566b30[_0x564447('0x2fa')]({'controller':_0x564447('0x267c'),'controllerAs':'vm','templateUrl':_0x2a18e1,'parent':angular['element'](_0x1de2fc[_0x564447('0x945')]),'targetEvent':_0x46e682,'clickOutsideToClose':!![],'locals':{'plugins':_0x2d5be6[_0x564447('0x701')][_0x564447('0x25df')]}});}}const _0x58e2e4=_0x440879;_0x1a5073['$inject']=[_0x34e79e('0x1bfe'),_0x34e79e('0x123b'),'toasty',_0x34e79e('0x701'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x1a5073(_0x5893ba,_0x2a0763,_0x45d810,_0x149a72,_0x55eb7a,_0x18efaa){const _0x118632=_0x34e79e,_0x19dbca=this,_0xc16438=0x2,_0x409080=_0xc16438*0x400*0x400;_0x19dbca[_0x118632('0x9cb')]=_0x18efaa[_0x118632('0x24cc')](),_0x19dbca[_0x118632('0x25be')]=[],_0x19dbca['title']=_0x118632('0x1b6b'),_0x19dbca[_0x118632('0x701')]=_0x149a72,_0x19dbca[_0x118632('0x1693')]=[],_0x19dbca[_0x118632('0x2774')]=_0x118632('0x1dc'),_0x19dbca[_0x118632('0x1c5')]={},_0x19dbca[_0x118632('0x1fce')]={'maxChunkRetries':0x1,'chunkSize':_0x409080,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x118632('0x101d')},_0x19dbca[_0x118632('0x2793')]={'flow':{}},_0x19dbca[_0x118632('0x189a')]=![],_0x19dbca[_0x118632('0x1573')]=_0x4c6ecd,_0x19dbca[_0x118632('0x1b63')]=_0x46700c,_0x19dbca[_0x118632('0xc41')]=_0x570086,_0x19dbca['uploadError']=_0x56dd3f,_0x19dbca[_0x118632('0x21d1')]=_0x445aea,_0x19dbca[_0x118632('0xca7')]=_0x180de4;function _0x4c6ecd(_0x310ef9){const _0x44f8f6=_0x118632,_0x41fa9c=[_0x44f8f6('0x1c21')];if(!_0x283545()[_0x44f8f6('0x1d4e')](_0x41fa9c,_0x310ef9['getExtension']()))return _0x45d810[_0x44f8f6('0x5e8')]({'title':'Invalid\x20extension:\x20'+_0x310ef9['getExtension'](),'msg':_0x44f8f6('0x250c')+_0x41fa9c[_0x44f8f6('0x185f')]()}),![];if(_0x310ef9[_0x44f8f6('0x634')]>_0x409080)return _0x45d810['error']({'title':_0x44f8f6('0x6e8'),'msg':_0x44f8f6('0x232c')+_0xc16438+'MB'}),![];return _0x19dbca[_0x44f8f6('0x1c5')]={'id':_0x310ef9[_0x44f8f6('0x7c8')],'file':_0x310ef9},_0x19dbca['uploadPlugins'][_0x44f8f6('0xc51')](_0x19dbca[_0x44f8f6('0x1c5')]),!![];}function _0x46700c(){const _0x4b20fa=_0x118632;_0x19dbca[_0x4b20fa('0x2774')]=_0x4b20fa('0x1c20'),_0x19dbca['ngFlow']['flow']['opts'][_0x4b20fa('0x186d')]={'X-Requested-With':_0x4b20fa('0xa34'),'Authorization':_0x4b20fa('0xf2f')+_0x5893ba[_0x4b20fa('0x1335')]('motion.token')},_0x19dbca[_0x4b20fa('0x2793')][_0x4b20fa('0x8a4')]['opts'][_0x4b20fa('0x135a')]={'role':_0x19dbca[_0x4b20fa('0x9cb')]['role'],'userProfileId':_0x19dbca[_0x4b20fa('0x9cb')][_0x4b20fa('0x237f')]},_0x19dbca[_0x4b20fa('0x2793')][_0x4b20fa('0x8a4')][_0x4b20fa('0x1b63')]();}function _0x570086(_0x13aac2,_0x5a19ed){const _0x1c646e=_0x118632;_0x19dbca[_0x1c646e('0x701')][_0x1c646e('0xc51')](JSON[_0x1c646e('0xe0b')](_0x5a19ed)),angular[_0x1c646e('0x1534')](_0x19dbca[_0x1c646e('0x1693')],function(_0x4dcfc0){const _0x1768b4=_0x1c646e;if(_0x4dcfc0['id']===_0x13aac2['uniqueIdentifier']){const _0x130c22=new FileReader();_0x130c22[_0x1768b4('0x1ccc')](_0x4dcfc0[_0x1768b4('0x3d5')][_0x1768b4('0x3d5')]),_0x130c22[_0x1768b4('0x2468')]=function(_0xe13365){const _0x55caa1=_0x1768b4;_0x4dcfc0['url']=_0xe13365[_0x55caa1('0x159c')][_0x55caa1('0xdb9')];};}});}function _0x56dd3f(){const _0x405cd5=_0x118632;_0x19dbca[_0x405cd5('0x2793')]['flow']['cancel'](),_0x45d810['error']({'title':_0x405cd5('0xe32'),'msg':_0x405cd5('0x344')}),_0x19dbca[_0x405cd5('0x2774')]=_0x405cd5('0x1209');}function _0x445aea(){const _0x2082f8=_0x118632;_0x19dbca[_0x2082f8('0x2774')]!==_0x2082f8('0x1209')&&(_0x19dbca[_0x2082f8('0x2774')]=_0x2082f8('0xc96'),_0x45d810[_0x2082f8('0x173b')]({'title':_0x2082f8('0x3ec'),'msg':_0x19dbca[_0x2082f8('0x1c5')]['file'][_0x2082f8('0x1a8d')]+_0x2082f8('0x2ae')}));}function _0x180de4(){const _0x1d95dd=_0x118632;_0x2a0763[_0x1d95dd('0x19d')]();}}const _0x2f6374=_0x1a5073;_0x15e9db[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x15e9db(_0x5c682c,_0x3691ab){const _0x43707d=_0x34e79e;_0x5c682c['state'](_0x43707d('0x1a65'),{'abstract':!![],'url':_0x43707d('0xc61')})['state'](_0x43707d('0x26f5'),{'url':_0x43707d('0x1cb7'),'views':{'content@app':{'templateUrl':_0x3e066d,'controller':_0x43707d('0xc83')}},'resolve':{'plugins':[_0x43707d('0x1318'),_0x43707d('0x1b04'),function(_0x32f452,_0x553b50){const _0x34d4c9=_0x43707d;return _0x553b50[_0x34d4c9('0x1516')](_0x34d4c9('0xe23'))?_0x32f452['resolve']('plugin@get',{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':'name','limit':0xa,'offset':0x0}):_0x32f452['resolve']('userProfile@getResources',{'id':_0x553b50[_0x34d4c9('0x24cc')]()['userProfileId'],'section':'Plugins','fields':_0x34d4c9('0x1cec'),'sort':_0x34d4c9('0x1a8d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x43707d('0x1318'),'Auth',function(_0x51eac9,_0x5560e3){const _0x463105=_0x43707d;return _0x5560e3[_0x463105('0x1516')](_0x463105('0xe23'))?null:_0x51eac9[_0x463105('0x2322')](_0x463105('0x231d'),{'fields':'id,name,crudPermissions','id':_0x5560e3[_0x463105('0x24cc')]()[_0x463105('0x237f')]});}],'userProfileSection':[_0x43707d('0x1318'),_0x43707d('0x1b04'),function(_0x4a9034,_0x1114ac){const _0x41323f=_0x43707d;return _0x1114ac[_0x41323f('0x1516')](_0x41323f('0xe23'))?null:_0x4a9034[_0x41323f('0x2322')](_0x41323f('0x22ca'),{'fields':_0x41323f('0xe2c'),'userProfileId':_0x1114ac[_0x41323f('0x24cc')]()[_0x41323f('0x237f')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x43707d('0x187')})[_0x43707d('0x249b')](_0x43707d('0x10c9'),{'url':_0x43707d('0x206b'),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x16829e,'controller':_0x43707d('0x26fa')}},'resolve':{'plugin':[_0x43707d('0x1318'),_0x43707d('0xad0'),function(_0x2f50a6,_0x4f0efb){const _0x48681a=_0x43707d;return _0x2f50a6[_0x48681a('0x2322')](_0x48681a('0x11f6'),{'fields':_0x48681a('0x1cec'),'id':_0x4f0efb['id']});}],'userProfileSection':[_0x43707d('0x1318'),_0x43707d('0x1b04'),function(_0x65457f,_0x51051f){const _0x1418e8=_0x43707d;return _0x65457f[_0x1418e8('0x2322')](_0x1418e8('0x22ca'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51051f['getCurrentUser']()['userProfileId'],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x43707d('0x187')}),_0x3691ab[_0x43707d('0x15ae')](_0x43707d('0x1044'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1a65'),['ngCsv',_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),'flow','mdColorPicker','ckeditor','ng-sortable',_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder','mwFormViewer',_0x34e79e('0xe0f'),_0x34e79e('0x250d'),'angular-cron-jobs',_0x34e79e('0x1847'),'angularMaterialFormBuilder','material.components.expansionPanels','chart.js',_0x34e79e('0xe82')])['config'](_0x15e9db)[_0x34e79e('0xb44')](_0x34e79e('0x2ed'),_0x43411f)[_0x34e79e('0xb44')](_0x34e79e('0x2182'),_0x417b26)['controller'](_0x34e79e('0x54e'),_0x58e2e4)[_0x34e79e('0xb44')]('UploadPluginDialogController',_0x2f6374);const _0x2a403a=_0x18dd13['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html';_0x34d636[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x1701'),_0x34e79e('0x1750'),_0x34e79e('0x519'),'socket',_0x34e79e('0x1b04')];function _0x34d636(_0x5e7e11,_0x219c1f,_0x75e3d0,_0x230893,_0x3cef0b,_0x2134e1){const _0xb75d90=_0x34e79e,_0x14a9bd=this;_0x14a9bd[_0xb75d90('0x9cb')]=_0x2134e1['getCurrentUser'](),_0x14a9bd[_0xb75d90('0x1c5')]={},_0x14a9bd[_0xb75d90('0x14c6')]=_0x3cf991,_0x230893['plugin']['get']({'id':_0x5e7e11[_0xb75d90('0x4b9')]['id']})[_0xb75d90('0x1714')]['then'](function(_0x262324){const _0x56a9d5=_0xb75d90;if(_0x262324)return _0x14a9bd['plugin']=_0x262324,_0x230893[_0x56a9d5('0x1c5')][_0x56a9d5('0x1335')]({'id':_0x14a9bd[_0x56a9d5('0x1c5')]['id']})[_0x56a9d5('0x1714')];})[_0xb75d90('0x1cb5')](function(){const _0x5ba76f=_0xb75d90;_0x14a9bd[_0x5ba76f('0x1c5')]=undefined;});function _0x3cf991(){const _0x210c71=_0xb75d90;return _0x75e3d0[_0x210c71('0x283c')](_0x14a9bd[_0x210c71('0x1c5')][_0x210c71('0x133b')]);}}const _0x5b6852=_0x34d636;_0x53d41e[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x53d41e(_0x506a61){const _0x5e35b8=_0x34e79e;_0x506a61[_0x5e35b8('0x249b')](_0x5e35b8('0x227c'),{'url':_0x5e35b8('0x19f6'),'views':{'content@app':{'templateUrl':_0x2a403a,'controller':_0x5e35b8('0x2362')}},'resolve':{},'authenticate':!![],'bodyClass':_0x5e35b8('0x701')});}angular[_0x34e79e('0x16e2')]('app.plugins.plugin',[])[_0x34e79e('0x1a22')](_0x53d41e)[_0x34e79e('0xb44')]('PluginController',_0x5b6852),_0x5adf64[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x5adf64(_0xeb8f45,_0x406560){const _0x12af0d=_0x34e79e;_0xeb8f45[_0x12af0d('0x249b')](_0x12af0d('0x1eae'),{'abstract':!![],'url':_0x12af0d('0x1cb7')}),_0x406560[_0x12af0d('0x15ae')](_0x12af0d('0x13b6'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1eae'),[_0x34e79e('0x1837'),'ngPassword','md.data.table',_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),'ngAria',_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82'),_0x34e79e('0x227c')])[_0x34e79e('0x1a22')](_0x5adf64);const _0x254c0e=_0x18dd13['p']+_0x34e79e('0x1128');_0x13773a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),'$mdDialog','$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x3f7'),'screenRecording','api',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x13773a(_0x486296,_0x58e5a2,_0x507651,_0x502c51,_0x4bff2c,_0x4446da,_0xf9de15,_0x452ebd,_0x5f1eb3,_0x35b11d,_0x4a2536,_0x45c765,_0xca2976,_0x2944d1){const _0x2a1f9e=_0x34e79e,_0x27d85d=this;_0x27d85d[_0x2a1f9e('0x9cb')]=_0x4a2536[_0x2a1f9e('0x24cc')](),_0x27d85d[_0x2a1f9e('0x25be')]=[],_0x27d85d['setting']=_0xca2976,_0x27d85d[_0x2a1f9e('0x130d')]=_0x45c765,_0x27d85d[_0x2a1f9e('0xe28')]=_0x2944d1,_0x27d85d[_0x2a1f9e('0x1193')]={},_0x27d85d[_0x2a1f9e('0x18ad')]=_0x27d85d[_0x2a1f9e('0x1af0')]&&_0x27d85d[_0x2a1f9e('0x1af0')][_0x2a1f9e('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27d85d[_0x2a1f9e('0x14e4')]='VIDEO.EDIT_SCREENRECORDING',_0x27d85d[_0x2a1f9e('0x1e03')]=angular[_0x2a1f9e('0x2669')](_0x5f1eb3),_0x27d85d[_0x2a1f9e('0x3f7')]=_0x452ebd,_0x27d85d[_0x2a1f9e('0x766')]=![];!_0x27d85d['screenRecording']&&(_0x27d85d['screenRecording']={},_0x27d85d[_0x2a1f9e('0x14e4')]=_0x2a1f9e('0x1079'),_0x27d85d['newscreenRecording']=!![]);_0x27d85d[_0x2a1f9e('0xeaa')]=_0xdc0d87,_0x27d85d[_0x2a1f9e('0x1052')]=_0x5d3fc1,_0x27d85d['deletescreenRecording']=_0x452108,_0x27d85d[_0x2a1f9e('0x2601')]=_0x42d42a,_0x27d85d[_0x2a1f9e('0xca7')]=_0x15aa37,_0x35b11d[_0x2a1f9e('0x1e6a')][_0x2a1f9e('0x1335')]({'fields':_0x2a1f9e('0x10fe'),'sort':'name','nolimit':'true'})[_0x2a1f9e('0x1714')]['then'](function(_0x2d3b4d){const _0x10ae44=_0x2a1f9e;_0x27d85d[_0x10ae44('0x1e42')]=_0x2d3b4d[_0x10ae44('0x25df')]||[];})[_0x2a1f9e('0x1cb5')](function(_0x419be2){const _0x365f16=_0x2a1f9e;_0xf9de15[_0x365f16('0x5e8')]({'title':_0x419be2[_0x365f16('0x1b51')]?_0x365f16('0x15d1')+_0x419be2[_0x365f16('0x1b51')]+_0x365f16('0x1b0b')+_0x419be2[_0x365f16('0x22ce')]:_0x365f16('0x111a'),'msg':_0x419be2[_0x365f16('0x11fc')]?JSON[_0x365f16('0x1be0')](_0x419be2[_0x365f16('0x11fc')]):_0x419be2[_0x365f16('0x17df')]()});});function _0xdc0d87(){const _0x57696e=_0x2a1f9e;_0x27d85d[_0x57696e('0x25be')]=[],_0x35b11d[_0x57696e('0x1e03')][_0x57696e('0xbd0')](_0x27d85d[_0x57696e('0x1e03')])['$promise'][_0x57696e('0x2788')](function(_0x5c2d65){const _0x4b35ad=_0x57696e;_0x27d85d[_0x4b35ad('0x3f7')][_0x4b35ad('0xc51')](_0x5c2d65[_0x4b35ad('0x1cbf')]()),_0xf9de15[_0x4b35ad('0x173b')]({'title':_0x4b35ad('0x4f2'),'msg':_0x27d85d['screenRecording'][_0x4b35ad('0x1a8d')]?_0x27d85d[_0x4b35ad('0x1e03')][_0x4b35ad('0x1a8d')]+_0x4b35ad('0x1e4a'):''}),_0x15aa37(_0x5c2d65);})['catch'](function(_0x5f34b4){const _0x16245b=_0x57696e;if(_0x5f34b4[_0x16245b('0x11fc')]&&_0x5f34b4[_0x16245b('0x11fc')]['errors']&&_0x5f34b4[_0x16245b('0x11fc')]['errors'][_0x16245b('0x2566')]){_0x27d85d['errors']=_0x5f34b4[_0x16245b('0x11fc')][_0x16245b('0x25be')]||[{'message':_0x5f34b4[_0x16245b('0x17df')](),'type':_0x16245b('0xd29')}];for(let _0x3457b8=0x0;_0x3457b8<_0x5f34b4[_0x16245b('0x11fc')][_0x16245b('0x25be')][_0x16245b('0x2566')];_0x3457b8+=0x1){_0xf9de15['error']({'title':_0x5f34b4[_0x16245b('0x11fc')]['errors'][_0x3457b8][_0x16245b('0x1d7')],'msg':_0x5f34b4[_0x16245b('0x11fc')][_0x16245b('0x25be')][_0x3457b8][_0x16245b('0x15e2')]});}}else _0xf9de15[_0x16245b('0x5e8')]({'title':_0x5f34b4[_0x16245b('0x1b51')]?'API:'+_0x5f34b4[_0x16245b('0x1b51')]+'\x20-\x20'+_0x5f34b4['statusText']:_0x16245b('0xd29'),'msg':_0x5f34b4['data']?JSON[_0x16245b('0x1be0')](_0x5f34b4[_0x16245b('0x11fc')][_0x16245b('0x15e2')]):_0x5f34b4[_0x16245b('0x17df')]()});});}function _0x5d3fc1(){const _0x1b35f4=_0x2a1f9e;_0x27d85d['errors']=[],_0x35b11d[_0x1b35f4('0x1e03')][_0x1b35f4('0x2740')]({'id':_0x27d85d['screenRecording']['id']},_0x27d85d['screenRecording'])[_0x1b35f4('0x1714')][_0x1b35f4('0x2788')](function(_0x4d2738){const _0x59432d=_0x1b35f4,_0x283eb7=_0x283545()[_0x59432d('0x20e8')](_0x27d85d['screenRecordings'],{'id':_0x4d2738['id']});_0x283eb7&&_0x283545()[_0x59432d('0x2503')](_0x283eb7,_0x283545()[_0x59432d('0x41b')](_0x4d2738[_0x59432d('0x1cbf')](),_0x283545()[_0x59432d('0x2163')](_0x283eb7))),_0xf9de15[_0x59432d('0x173b')]({'title':'screenRecording\x20properly\x20saved!','msg':_0x27d85d[_0x59432d('0x1e03')][_0x59432d('0x1a8d')]?_0x27d85d[_0x59432d('0x1e03')][_0x59432d('0x1a8d')]+_0x59432d('0x24cf'):''}),_0x15aa37(_0x4d2738);})[_0x1b35f4('0x1cb5')](function(_0x2e6cee){const _0x6f876c=_0x1b35f4;if(_0x2e6cee[_0x6f876c('0x11fc')]&&_0x2e6cee[_0x6f876c('0x11fc')]['errors']&&_0x2e6cee[_0x6f876c('0x11fc')][_0x6f876c('0x25be')]['length']){_0x27d85d[_0x6f876c('0x25be')]=_0x2e6cee[_0x6f876c('0x11fc')][_0x6f876c('0x25be')]||[{'message':_0x2e6cee[_0x6f876c('0x17df')](),'type':_0x6f876c('0x87f')}];for(let _0x5c3e9a=0x0;_0x5c3e9a<_0x2e6cee['data'][_0x6f876c('0x25be')][_0x6f876c('0x2566')];_0x5c3e9a++){_0xf9de15['error']({'title':_0x2e6cee[_0x6f876c('0x11fc')][_0x6f876c('0x25be')][_0x5c3e9a]['type'],'msg':_0x2e6cee[_0x6f876c('0x11fc')][_0x6f876c('0x25be')][_0x5c3e9a][_0x6f876c('0x15e2')]});}}else _0xf9de15['error']({'title':_0x2e6cee[_0x6f876c('0x1b51')]?_0x6f876c('0x15d1')+_0x2e6cee[_0x6f876c('0x1b51')]+'\x20-\x20'+_0x2e6cee['statusText']:_0x6f876c('0x87f'),'msg':_0x2e6cee[_0x6f876c('0x11fc')]?JSON[_0x6f876c('0x1be0')](_0x2e6cee['data'][_0x6f876c('0x15e2')]):_0x2e6cee[_0x6f876c('0x17df')]()});});}function _0x452108(_0x178789){const _0x404dc2=_0x2a1f9e;_0x27d85d[_0x404dc2('0x25be')]=[];const _0x30b7aa=_0x502c51[_0x404dc2('0x112e')]()['title']('Are\x20you\x20sure?')['content'](_0x404dc2('0x673'))[_0x404dc2('0x10bc')](_0x404dc2('0x1357'))['ok'](_0x404dc2('0x2786'))[_0x404dc2('0x1801')](_0x404dc2('0x1481'))['targetEvent'](_0x178789);_0x502c51[_0x404dc2('0x2fa')](_0x30b7aa)['then'](function(){const _0x596228=_0x404dc2;_0x35b11d[_0x596228('0x1e03')]['delete']({'id':_0x27d85d['screenRecording']['id']})['$promise'][_0x596228('0x2788')](function(){const _0x56603b=_0x596228;_0x283545()['remove'](_0x27d85d[_0x56603b('0x3f7')],{'id':_0x27d85d[_0x56603b('0x1e03')]['id']}),_0xf9de15[_0x56603b('0x173b')]({'title':_0x56603b('0x1469'),'msg':(_0x27d85d['screenRecording']['name']||_0x56603b('0x1e03'))+_0x56603b('0x14d4')}),_0x15aa37(_0x27d85d['screenRecording']);})[_0x596228('0x1cb5')](function(_0x59fb50){const _0x307654=_0x596228;if(_0x59fb50[_0x307654('0x11fc')]&&_0x59fb50['data'][_0x307654('0x25be')]&&_0x59fb50[_0x307654('0x11fc')][_0x307654('0x25be')][_0x307654('0x2566')]){_0x27d85d[_0x307654('0x25be')]=_0x59fb50['data'][_0x307654('0x25be')]||[{'message':_0x59fb50[_0x307654('0x17df')](),'type':'api.screenRecording.delete'}];for(let _0x3d325b=0x0;_0x3d325b<_0x59fb50['data'][_0x307654('0x25be')][_0x307654('0x2566')];_0x3d325b++){_0xf9de15[_0x307654('0x5e8')]({'title':_0x59fb50['data'][_0x307654('0x25be')][_0x3d325b][_0x307654('0x1d7')],'msg':_0x59fb50[_0x307654('0x11fc')][_0x307654('0x25be')][_0x3d325b][_0x307654('0x15e2')]});}}else _0xf9de15[_0x307654('0x5e8')]({'title':_0x59fb50[_0x307654('0x1b51')]?_0x307654('0x15d1')+_0x59fb50['status']+_0x307654('0x1b0b')+_0x59fb50[_0x307654('0x22ce')]:'api.screenRecording.delete','msg':_0x59fb50[_0x307654('0x11fc')]?JSON[_0x307654('0x1be0')](_0x59fb50['data'][_0x307654('0x15e2')]):_0x59fb50['message']||_0x59fb50[_0x307654('0x17df')]()});});},function(){});}function _0x42d42a(_0x575058){return _0x575058===null?undefined:new Date(_0x575058);}function _0x15aa37(_0x3e8165){const _0x5da781=_0x2a1f9e;_0x502c51[_0x5da781('0x19d')](_0x3e8165);}}const _0x5d74a6=_0x13773a;_0x5288ab[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x123b'),'toasty',_0x34e79e('0x519'),_0x34e79e('0xbe2'),_0x34e79e('0x1212'),_0x34e79e('0x1c1b'),_0x34e79e('0x13c7'),_0x34e79e('0x1567'),'$q'];function _0x5288ab(_0x3342db,_0x25093d,_0x3767a4,_0x4bf2aa,_0x3ec453,_0x265413,_0x2df577,_0x5de776,_0x1d49ff,_0x70ddb3){const _0x1fcc11=_0x34e79e,_0x4f4987=this;_0x4f4987[_0x1fcc11('0xd98')]=![],_0x4f4987[_0x1fcc11('0xbe2')]=Object[_0x1fcc11('0x2462')]({},_0x3ec453),_0x4f4987[_0x1fcc11('0x44b')]=_0x1fcc11('0x1e03'),_0x4f4987[_0x1fcc11('0x16b1')]=_0x1d49ff,_0x4f4987[_0x1fcc11('0x1212')]=Object[_0x1fcc11('0x2462')]({},_0x265413),_0x4f4987[_0x1fcc11('0xd1')]=_0x5de776,_0x4f4987[_0x1fcc11('0x1c1b')]=_0x2df577,_0x4f4987[_0x1fcc11('0x8a5')]=_0x1fcc11('0x58b'),_0x4f4987[_0x1fcc11('0x9b0')]=_0x1fcc11('0x1e03'),console['log'](_0x1fcc11('0x199f'),_0x4f4987[_0x1fcc11('0xd1')]),console[_0x1fcc11('0x10df')](_0x1fcc11('0xbf5'),_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987[_0x1fcc11('0xd1')]]),_0x4f4987[_0x1fcc11('0x2377')]=_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987['path']]['indexOf']('/')>-0x1?_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987[_0x1fcc11('0xd1')]][_0x1fcc11('0x2dd')](_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987[_0x1fcc11('0xd1')]][_0x1fcc11('0x1dee')]('/')+0x1):_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987[_0x1fcc11('0xd1')]][_0x1fcc11('0x821')]('\x5c')>-0x1?_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987[_0x1fcc11('0xd1')]]['substring'](_0x4f4987['recording'][_0x4f4987['path']][_0x1fcc11('0x1dee')]('\x5c')+0x1):_0x4f4987[_0x1fcc11('0xbe2')][_0x4f4987['path']],_0x4f4987[_0x1fcc11('0x22b4')]=![];_0x283545()['isNil'](_0x4f4987['recording'][_0x1fcc11('0x22b4')])&&(_0x4f4987['recording']['format']=_0x4f4987[_0x1fcc11('0x2377')][_0x1fcc11('0x845')](_0x4f4987['filename'][_0x1fcc11('0x1dee')]('.')));(_0x4f4987['recording']['format']==='.wav'&&_0x4f4987['element']===_0x1fcc11('0x244d')||_0x4f4987[_0x1fcc11('0xbe2')][_0x1fcc11('0x22b4')]===_0x1fcc11('0x64f')&&_0x4f4987[_0x1fcc11('0x16b1')]===_0x1fcc11('0x58b'))&&(_0x4f4987[_0x1fcc11('0x22b4')]=!![]);_0x4f4987[_0x1fcc11('0x10dc')]=!![];_0x4f4987['format']&&_0x319c73();function _0x319c73(){const _0x330d79=_0x1fcc11,_0x1c226e=_0x70ddb3['defer']();return _0x4bf2aa[_0x330d79('0x1e03')][_0x330d79('0x1486')]({'id':_0x4f4987[_0x330d79('0xbe2')]['id'],'path':String(_0x4f4987[_0x330d79('0xd1')])})['$promise'][_0x330d79('0x2788')](function(){const _0x3330dd=_0x330d79;_0x4f4987['format']=!![],_0x4f4987[_0x3330dd('0x10dc')]=!![],_0x1c226e[_0x3330dd('0x2322')]();})[_0x330d79('0x1cb5')](function(){const _0x224d97=_0x330d79;console[_0x224d97('0x10df')](_0x224d97('0x1065')),_0x4f4987[_0x224d97('0x22b4')]=![],_0x4f4987['found']=![],_0x1c226e[_0x224d97('0x2322')]();}),_0x1c226e[_0x330d79('0x1808')];}if(!_0x283545()[_0x1fcc11('0x1015')](_0x265413['properties'])&&_0x265413[_0x1fcc11('0x23d7')]){_0x4f4987[_0x1fcc11('0x23d7')]=Object[_0x1fcc11('0x2462')]({},_0x3ec453);const _0x4c9d1f=Object[_0x1fcc11('0x2163')](_0x3ec453);_0x4c9d1f[_0x1fcc11('0x1534')](function(_0x52c8ae){const _0x14df14=_0x1fcc11;String(_0x52c8ae[0x0][_0x14df14('0x25e6')]())===String(_0x52c8ae[0x0])&&delete _0x4f4987[_0x14df14('0x23d7')][_0x52c8ae];}),_0x4f4987[_0x1fcc11('0xb80')]={};if(!_0x283545()[_0x1fcc11('0x1015')](_0x265413[_0x1fcc11('0x2128')])&&_0x265413['propertiesList'][_0x1fcc11('0x2566')]>0x0){_0x4f4987[_0x1fcc11('0xb80')]=Object[_0x1fcc11('0x2462')]({},_0x3ec453);const _0xcaa9e2=_0x265413['propertiesList'],_0x3169d8=Object['keys'](_0x3ec453);let _0x2be5e0=!![];_0x3169d8['forEach'](function(_0x3ed65a){const _0x5b81df=_0x1fcc11;_0x2be5e0=!![],_0xcaa9e2[_0x5b81df('0x1534')](function(_0x4f6810){String(_0x3ed65a)===String(_0x4f6810)&&(_0x2be5e0=![]);}),_0x2be5e0&&delete _0x4f4987[_0x5b81df('0xb80')][_0x3ed65a];}),_0x4f4987[_0x1fcc11('0x23d7')]=_0x4f4987[_0x1fcc11('0xb80')];}if(!_0x283545()['isNil'](_0x265413[_0x1fcc11('0x796')])&&_0x265413[_0x1fcc11('0x796')][_0x1fcc11('0x2566')]>0x0){_0x4f4987[_0x1fcc11('0x2775')]={};const _0x394274=_0x265413[_0x1fcc11('0x796')];for(let _0x4a5ae2=0x0;_0x4a5ae2<_0x394274[_0x1fcc11('0x2566')];_0x4a5ae2++){const _0x13e18b=_0x394274[_0x4a5ae2]['values'],_0x2b6506=_0x394274[_0x4a5ae2][_0x1fcc11('0x9b0')];for(let _0x2a2b1d=0x0;_0x2a2b1d<_0x13e18b[_0x1fcc11('0x2566')];_0x2a2b1d++){_0x4f4987['propertiesExtra'][_0x13e18b[_0x2a2b1d][_0x1fcc11('0x16db')]]=_0x3ec453[_0x2b6506][_0x13e18b[_0x2a2b1d]['key']];}}_0x4f4987[_0x1fcc11('0x23d7')]=Object['assign']({},_0x4f4987['propertiesDefault'],_0x4f4987[_0x1fcc11('0x2775')]);}}_0x4f4987[_0x1fcc11('0xca7')]=_0x3ccf39;function _0x3ccf39(){const _0x3f565a=_0x1fcc11;_0x25093d[_0x3f565a('0x19d')]();}}const _0x58e375=_0x5288ab,_0x499096=_0x18dd13['p']+'src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog.html',_0x1ebae9=_0x18dd13['p']+_0x34e79e('0x434');_0x5de028[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),'$mdDialog',_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),_0x34e79e('0x3f7'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),'Auth',_0x34e79e('0x130d'),_0x34e79e('0x1af0')];function _0x5de028(_0x4e2458,_0x500dd1,_0x105d6f,_0x37ba73,_0x287160,_0x466402,_0x537db5,_0x8baa27,_0x1facf8,_0x5b0870,_0x47d312,_0x853a94,_0x544cbc,_0x342f3c,_0x634ea7,_0x330d1c,_0x21ee92){const _0x208bc4=_0x34e79e,_0x36551f=this;_0x36551f['license']=_0x330d1c,_0x36551f[_0x208bc4('0x1af0')]=_0x21ee92,_0x36551f[_0x208bc4('0x9cb')]=_0x634ea7[_0x208bc4('0x24cc')](),_0x36551f[_0x208bc4('0x3f7')]=_0x1facf8||{'count':0x0,'rows':[]},_0x36551f[_0x208bc4('0x63c')]=_0x5b0870,_0x36551f['userProfileSection']=_0x47d312&&_0x47d312[_0x208bc4('0x338')]==0x1?_0x47d312[_0x208bc4('0x25df')][0x0]:null,_0x36551f['crudPermissions']=_0x634ea7[_0x208bc4('0x157e')](_0x36551f['userProfileSection']?_0x36551f['userProfileSection']['crudPermissions']:null),_0x36551f[_0x208bc4('0x26a9')]=_0x208bc4('0x3f7'),_0x36551f[_0x208bc4('0x2278')]='',_0x36551f[_0x208bc4('0x25e2')]=null,_0x36551f['selectedScreenRecordings']=[],_0x36551f[_0x208bc4('0x135a')]={'fields':_0x208bc4('0x19a3'),'createdAt':_0x208bc4('0x200c'),'includeAll':_0x208bc4('0x1001'),'sort':_0x208bc4('0x1cee'),'limit':0xa,'page':0x1},_0x36551f[_0x208bc4('0x135a')][_0x208bc4('0x172')]=_0x544cbc['firstLastDayMonth'](),_0x36551f[_0x208bc4('0xa28')]=_0x55d963();function _0x55d963(){const _0x4ad277=_0x208bc4;return[{'name':_0x4ad277('0x9ac'),'key':_0x4ad277('0x172'),'type':_0x4ad277('0x1012'),'label':_0x4ad277('0xf99')}];}_0x36551f['playrecording']=_0x4e7f72,_0x36551f[_0x208bc4('0x17f5')]=_0x6b4bfb,_0x36551f[_0x208bc4('0x1e5')]=_0x1dbdff,_0x36551f[_0x208bc4('0x173b')]=_0x4fe2f9,_0x36551f[_0x208bc4('0x1802')]=_0x37bcbd,_0x36551f['createOrEditscreenRecording']=_0xb87413,_0x36551f['deletescreenRecording']=_0x55cd5f,_0x36551f[_0x208bc4('0x13dd')]=_0x5e6210,_0x36551f[_0x208bc4('0x21dd')]=_0x39a77b,_0x36551f['deselectScreenRecordings']=_0xab8975,_0x36551f['selectAllScreenRecordings']=_0x1b7334,_0x36551f[_0x208bc4('0x2289')]=_0x1d5334,_0x853a94[_0x208bc4('0x1e6a')]['get']({'fields':_0x208bc4('0x10fe'),'sort':'name','nolimit':_0x208bc4('0x1001')})[_0x208bc4('0x1714')][_0x208bc4('0x2788')](function(_0x4c5618){const _0x29d0fa=_0x208bc4;_0x36551f['users']=_0x4c5618[_0x29d0fa('0x25df')]||[];})[_0x208bc4('0x1cb5')](function(_0x5c0e05){const _0x221ddc=_0x208bc4;_0x342f3c[_0x221ddc('0x5e8')]({'title':_0x5c0e05[_0x221ddc('0x1b51')]?_0x221ddc('0x15d1')+_0x5c0e05[_0x221ddc('0x1b51')]+'\x20-\x20'+_0x5c0e05[_0x221ddc('0x22ce')]:'SYSTEM:GET_USERS','msg':_0x5c0e05[_0x221ddc('0x11fc')]?JSON[_0x221ddc('0x1be0')](_0x5c0e05[_0x221ddc('0x11fc')]):_0x5c0e05[_0x221ddc('0x17df')]()});});function _0x4e7f72(_0x585d9c,_0x4c53b,_0x197734,_0x319130,_0x39de0b){const _0x3ced91=_0x208bc4,_0x28f0de={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x3ced91('0x22ec'),'propertiesList':['format',_0x3ced91('0x19f2'),'duration',_0x3ced91('0xee0'),'closedAt',_0x3ced91('0x172')],'extraData':[{'model':_0x3ced91('0x1832'),'values':[{'key':_0x3ced91('0x1a8d'),'text':_0x3ced91('0x57c')}]}]},_0x2ed2d3={};_0x2ed2d3['route']=_0x3ced91('0x1e03'),_0x2ed2d3[_0x3ced91('0x1a8d')]=_0x3ced91('0x3f7'),_0x2ed2d3[_0x3ced91('0x9b0')]=_0x3ced91('0x1e03'),_0x2ed2d3[_0x3ced91('0x426')]='screenRecording',_0x319130=String(_0x319130);const _0x51ad86=String(_0x197734);console[_0x3ced91('0x10df')](_0x3ced91('0x23a'),String(_0x197734)),_0x287160['show']({'controller':_0x3ced91('0xd9'),'controllerAs':'vm','templateUrl':_0x1ebae9,'parent':angular[_0x3ced91('0x16b1')](_0x466402[_0x3ced91('0x945')]),'targetEvent':_0x4c53b,'clickOutsideToClose':!![],'locals':{'recording':_0x585d9c,'recordings':_0x36551f[_0x3ced91('0x3f7')][_0x3ced91('0x25df')],'license':_0x36551f[_0x3ced91('0x130d')],'setting':null,'item':_0x2ed2d3,'actionOptions':_0x28f0de,'label':_0x319130,'varPath':_0x51ad86,'elementTag':String(_0x39de0b)}});}function _0x6b4bfb(_0x4c26a1){const _0x377445=_0x208bc4;let _0x56c727=![];const _0x411785=!_0x283545()[_0x377445('0x1015')](_0x4c26a1['format'])?_0x4c26a1[_0x377445('0x22b4')]:_0x4c26a1[_0x377445('0x49')][_0x377445('0x2dd')](_0x4c26a1[_0x377445('0x49')][_0x377445('0x1dee')]('.'));_0x56c727=_0x411785===_0x377445('0x64f')?!![]:![];const _0x3656c4=_0x4c26a1[_0x377445('0x49')]['lastIndexOf']('/')>-0x1?_0x4c26a1[_0x377445('0x49')][_0x377445('0x2dd')](_0x4c26a1[_0x377445('0x49')][_0x377445('0x1dee')]('/')+0x1):_0x4c26a1[_0x377445('0x49')]['lastIndexOf']('\x5c')>-0x1?_0x4c26a1[_0x377445('0x49')][_0x377445('0x2dd')](_0x4c26a1[_0x377445('0x49')][_0x377445('0x1dee')]('\x5c')+0x1):_0x4c26a1[_0x377445('0x49')];return _0x853a94[_0x377445('0x1e03')]['download']({'id':_0x4c26a1['id']})[_0x377445('0x1714')][_0x377445('0x2788')](function(_0x479919){const _0x319bb1=_0x377445,_0x1f0197=[_0x479919[_0x319bb1('0x3f1')]];let _0x242d51=_0x319bb1('0x1486');const _0x5d4ef2=new Blob(_0x1f0197,{'type':_0x479919[_0x319bb1('0x1d7')]});_0x242d51=_0x3656c4;const _0x200a8c=window[_0x319bb1('0x11c4')]['createElement']('a');_0x200a8c['setAttribute'](_0x319bb1('0x186a'),URL[_0x319bb1('0x1b0d')](_0x5d4ef2)),_0x200a8c[_0x319bb1('0x1c6b')](_0x319bb1('0x1486'),_0x242d51),document['body'][_0x319bb1('0xcbf')](_0x200a8c),_0x200a8c[_0x319bb1('0x132a')]();})[_0x377445('0x1cb5')](function(_0x115850){const _0x5b11f6=_0x377445;if(_0x115850[_0x5b11f6('0x11fc')]&&_0x115850[_0x5b11f6('0x11fc')][_0x5b11f6('0x25be')]&&_0x115850[_0x5b11f6('0x11fc')][_0x5b11f6('0x25be')]['length'])for(let _0x1a8ef2=0x0;_0x1a8ef2<_0x115850[_0x5b11f6('0x11fc')]['errors']['length'];_0x1a8ef2++){_0x342f3c[_0x5b11f6('0x5e8')]({'title':_0x115850[_0x5b11f6('0x11fc')][_0x5b11f6('0x25be')][_0x1a8ef2][_0x5b11f6('0x1d7')],'msg':_0x115850[_0x5b11f6('0x11fc')][_0x5b11f6('0x25be')][_0x1a8ef2][_0x5b11f6('0x15e2')]});}else{if(String(_0x115850['status'])==='404'&&_0x56c727===![])_0x342f3c[_0x5b11f6('0x2276')]({'title':_0x8baa27[_0x5b11f6('0x1b11')](_0x5b11f6('0x93a')),'msg':_0x8baa27[_0x5b11f6('0x1b11')](_0x5b11f6('0x77a'))});else String(_0x115850[_0x5b11f6('0x1b51')])===_0x5b11f6('0x267b')?_0x342f3c[_0x5b11f6('0x2276')]({'title':_0x8baa27[_0x5b11f6('0x1b11')](_0x5b11f6('0x93a')),'msg':_0x8baa27[_0x5b11f6('0x1b11')](_0x5b11f6('0x1136'))}):_0x342f3c[_0x5b11f6('0x5e8')]({'title':_0x115850[_0x5b11f6('0x1b51')]?'API:'+_0x115850[_0x5b11f6('0x1b51')]+_0x5b11f6('0x1b0b')+_0x115850[_0x5b11f6('0x22ce')]:_0x5b11f6('0xd29'),'msg':_0x115850['data']?JSON[_0x5b11f6('0x1be0')](_0x115850[_0x5b11f6('0x11fc')]['message']):_0x115850[_0x5b11f6('0x17df')]()});}});}function _0x1dbdff(_0x1df2f3,_0x5ea12b){const _0x87eb32=_0x208bc4,_0x5adda7=_0x287160[_0x87eb32('0x112e')]()[_0x87eb32('0x14e4')](_0x87eb32('0x2114')+_0x283545()['startCase'](_0x87eb32('0x1e03'))+'?')[_0x87eb32('0x93e')](_0x87eb32('0x1670')+(_0x1df2f3['name']||_0x87eb32('0x1e03'))+_0x87eb32('0x229e')+_0x87eb32('0x27c7'))[_0x87eb32('0x10bc')]('delete\x20screenRecording')['targetEvent'](_0x5ea12b)['ok']('OK')[_0x87eb32('0x1801')](_0x87eb32('0x1d8d'));_0x287160[_0x87eb32('0x2fa')](_0x5adda7)[_0x87eb32('0x2788')](function(){_0x55cd5f(_0x1df2f3);},function(){const _0x25eda7=_0x87eb32;console[_0x25eda7('0x10df')](_0x25eda7('0x1d8d'));});}let _0x15d08c=!![],_0x470478=0x1;_0x4e2458[_0x208bc4('0x1662')](_0x208bc4('0x1569'),function(_0x1c49a2,_0x2d8c91){const _0x5c2e7e=_0x208bc4;_0x15d08c?_0x537db5(function(){_0x15d08c=![];}):(!_0x2d8c91&&(_0x470478=_0x36551f[_0x5c2e7e('0x135a')]['page']),_0x1c49a2!==_0x2d8c91&&(_0x36551f['query'][_0x5c2e7e('0x23f5')]=0x1),!_0x1c49a2&&(_0x36551f[_0x5c2e7e('0x135a')][_0x5c2e7e('0x23f5')]=_0x470478),_0x36551f[_0x5c2e7e('0x1802')]());});function _0x1d5334(_0x4d498c){const _0x220559=_0x208bc4,_0x48e4cb=Math[_0x220559('0xe98')](_0x4d498c/0x3e8%0x3c),_0x226649=Math[_0x220559('0xe98')](_0x4d498c/(0x3e8*0x3c)%0x3c),_0x70fd7c=Math[_0x220559('0xe98')](_0x4d498c/(0x3e8*0x3c*0x3c)%0x18),_0x326fa2=_0x70fd7c<0xa?'0'+String(_0x70fd7c):String(_0x70fd7c),_0x2d6f6e=_0x226649<0xa?'0'+String(_0x226649):String(_0x226649),_0x16f834=_0x48e4cb<0xa?'0'+String(_0x48e4cb):String(_0x48e4cb);return _0x326fa2+':'+_0x2d6f6e+':'+_0x16f834;}function _0x4fe2f9(_0x28790d){const _0x38213d=_0x208bc4;_0x36551f[_0x38213d('0x3f7')]=_0x28790d||{'count':0x0,'rows':[]};}function _0x37bcbd(){const _0x400ada=_0x208bc4;_0x36551f[_0x400ada('0x135a')][_0x400ada('0x19e')]=(_0x36551f[_0x400ada('0x135a')]['page']-0x1)*_0x36551f['query'][_0x400ada('0x68e')],_0x634ea7[_0x400ada('0x1516')](_0x400ada('0xe23'))?_0x36551f[_0x400ada('0x1808')]=_0x853a94[_0x400ada('0x1e03')]['get'](_0x36551f[_0x400ada('0x135a')],_0x4fe2f9)[_0x400ada('0x1714')]:(_0x36551f['query']['id']=_0x36551f[_0x400ada('0x63c')]['id'],_0x36551f[_0x400ada('0x135a')][_0x400ada('0xb13')]=_0x400ada('0x96c'),_0x36551f[_0x400ada('0x1808')]=_0x853a94[_0x400ada('0x63c')][_0x400ada('0xa1')](_0x36551f['query'],_0x4fe2f9)[_0x400ada('0x1714')]);}function _0xb87413(_0x6487b,_0x167cb1){const _0x427fb1=_0x208bc4;_0x287160[_0x427fb1('0x2fa')]({'controller':_0x427fb1('0x16f0'),'controllerAs':'vm','templateUrl':_0x499096,'parent':angular['element'](_0x466402['body']),'targetEvent':_0x6487b,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x167cb1,'screenRecordings':_0x36551f[_0x427fb1('0x3f7')][_0x427fb1('0x25df')],'license':_0x36551f[_0x427fb1('0x130d')],'setting':_0x36551f[_0x427fb1('0x1af0')],'crudPermissions':_0x36551f[_0x427fb1('0xe28')]}});}function _0x55cd5f(_0x50a53c){const _0x4b1856=_0x208bc4;_0x853a94[_0x4b1856('0x1e03')][_0x4b1856('0x17c4')]({'id':_0x50a53c['id']})['$promise'][_0x4b1856('0x2788')](function(){const _0x40587b=_0x4b1856;_0x283545()[_0x40587b('0x1a90')](_0x36551f[_0x40587b('0x3f7')][_0x40587b('0x25df')],{'id':_0x50a53c['id']}),_0x36551f[_0x40587b('0x3f7')][_0x40587b('0x338')]-=0x1,!_0x36551f[_0x40587b('0x3f7')][_0x40587b('0x25df')][_0x40587b('0x2566')]&&_0x36551f[_0x40587b('0x1802')](),_0x342f3c[_0x40587b('0x173b')]({'title':_0x283545()[_0x40587b('0x114')](_0x40587b('0x1e03'))+_0x40587b('0x20db'),'msg':_0x50a53c[_0x40587b('0x1a8d')]?_0x50a53c[_0x40587b('0x1a8d')]+_0x40587b('0x14d4'):''});})[_0x4b1856('0x1cb5')](function(_0x3efbc8){const _0x375ca6=_0x4b1856;if(_0x3efbc8['data']&&_0x3efbc8[_0x375ca6('0x11fc')]['errors']&&_0x3efbc8[_0x375ca6('0x11fc')][_0x375ca6('0x25be')]['length']){_0x36551f[_0x375ca6('0x25be')]=_0x3efbc8['data'][_0x375ca6('0x25be')]||[{'message':_0x3efbc8[_0x375ca6('0x17df')](),'type':'SYSTEM:DELETEscreenRecording'}];for(let _0x2c1cf0=0x0;_0x2c1cf0<_0x3efbc8[_0x375ca6('0x11fc')]['errors'][_0x375ca6('0x2566')];_0x2c1cf0++){_0x342f3c[_0x375ca6('0x5e8')]({'title':_0x3efbc8[_0x375ca6('0x11fc')][_0x375ca6('0x25be')][_0x2c1cf0][_0x375ca6('0x1d7')],'msg':_0x3efbc8[_0x375ca6('0x11fc')][_0x375ca6('0x25be')][_0x2c1cf0]['message']});}}else _0x342f3c[_0x375ca6('0x5e8')]({'title':_0x3efbc8[_0x375ca6('0x1b51')]?'API:'+_0x3efbc8['status']+_0x375ca6('0x1b0b')+_0x3efbc8['statusText']:'SYSTEM:DELETEscreenRecording','msg':_0x3efbc8[_0x375ca6('0x11fc')]?JSON[_0x375ca6('0x1be0')](_0x3efbc8['data']['message']):_0x3efbc8['message']||_0x3efbc8[_0x375ca6('0x17df')]()});});}function _0x5e6210(){const _0x952fef=_0x208bc4,_0x3d8537=angular[_0x952fef('0x2669')](_0x36551f[_0x952fef('0x19de')]);return _0x36551f[_0x952fef('0x19de')]=[],_0x3d8537;}function _0x39a77b(_0x54554f){const _0xab65fa=_0x208bc4,_0x326acd=_0x287160[_0xab65fa('0x112e')]()[_0xab65fa('0x14e4')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?')['htmlContent'](_0xab65fa('0x1670')+_0x36551f[_0xab65fa('0x19de')][_0xab65fa('0x2566')]+_0xab65fa('0xbd')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xab65fa('0x9ea'))[_0xab65fa('0x24d0')](_0x54554f)['ok']('OK')[_0xab65fa('0x1801')](_0xab65fa('0x1d8d'));_0x287160['show'](_0x326acd)[_0xab65fa('0x2788')](function(){const _0x243a9e=_0xab65fa;_0x36551f[_0x243a9e('0x19de')][_0x243a9e('0x1534')](function(_0x717ebe){_0x55cd5f(_0x717ebe);}),_0x36551f[_0x243a9e('0x19de')]=[];});}function _0xab8975(){_0x36551f['selectedScreenRecordings']=[];}function _0x1b7334(){const _0x357d29=_0x208bc4;_0x36551f['selectedScreenRecordings']=_0x36551f[_0x357d29('0x3f7')][_0x357d29('0x25df')];}}const _0x108a0e=_0x5de028;_0x49d345[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0x49d345(_0x85e2b,_0x284e2f){const _0x2c13c9=_0x34e79e;_0x85e2b['state'](_0x2c13c9('0x1da3'),{'abstract':!![],'url':_0x2c13c9('0x76b')})[_0x2c13c9('0x249b')](_0x2c13c9('0x1fe1'),{'url':_0x2c13c9('0x2073'),'views':{'content@app':{'templateUrl':_0x254c0e,'controller':_0x2c13c9('0x6ef')}},'resolve':{'screenRecordings':['apiResolver',_0x2c13c9('0x1b04'),'msUtils',function(_0x5265da,_0x2bb6f0,_0x16155a){const _0x1d94ba=_0x2c13c9;return _0x2bb6f0[_0x1d94ba('0x1516')](_0x1d94ba('0xe23'))?_0x5265da[_0x1d94ba('0x2322')](_0x1d94ba('0x407'),{'fields':_0x1d94ba('0x19a3'),'createdAt':_0x16155a[_0x1d94ba('0x65a')](),'includeAll':_0x1d94ba('0x1001'),'sort':_0x1d94ba('0x1cee'),'limit':0xa,'offset':0x0}):_0x5265da[_0x1d94ba('0x2322')](_0x1d94ba('0x27c5'),{'id':_0x2bb6f0[_0x1d94ba('0x24cc')]()[_0x1d94ba('0x237f')],'section':_0x1d94ba('0x96c'),'fields':_0x1d94ba('0x19a3'),'createdAt':_0x16155a[_0x1d94ba('0x65a')](),'includeAll':_0x1d94ba('0x1001'),'sort':_0x1d94ba('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x3f7f5f,_0x3c0de9){const _0x180087=_0x2c13c9;return _0x3c0de9[_0x180087('0x1516')](_0x180087('0xe23'))?null:_0x3f7f5f['resolve'](_0x180087('0x231d'),{'fields':_0x180087('0x3f0'),'id':_0x3c0de9[_0x180087('0x24cc')]()[_0x180087('0x237f')]});}],'userProfileSection':[_0x2c13c9('0x1318'),_0x2c13c9('0x1b04'),function(_0x292179,_0x1bbfc0){const _0x153f55=_0x2c13c9;return _0x1bbfc0[_0x153f55('0x1516')](_0x153f55('0xe23'))?null:_0x292179[_0x153f55('0x2322')](_0x153f55('0x22ca'),{'fields':_0x153f55('0xe2c'),'userProfileId':_0x1bbfc0[_0x153f55('0x24cc')]()[_0x153f55('0x237f')],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':_0x2c13c9('0x58b')}),_0x284e2f['addPart']('app/main/apps/video');}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1da3'),[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),'flow','mdColorPicker',_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),'mwFormBuilder',_0x34e79e('0x279'),'mwFormUtils','ngclipboard',_0x34e79e('0x38a'),_0x34e79e('0x1847'),'angularMaterialFormBuilder',_0x34e79e('0x2023'),_0x34e79e('0x429'),_0x34e79e('0xe82')])['config'](_0x49d345)[_0x34e79e('0xb44')](_0x34e79e('0x16f0'),_0x5d74a6)['controller'](_0x34e79e('0xd9'),_0x58e375)[_0x34e79e('0xb44')](_0x34e79e('0x5ff'),_0x108a0e);const _0x4f20e6=_0x18dd13['p']+_0x34e79e('0x7ab'),_0x4cb9c6=_0x18dd13['p']+_0x34e79e('0x1cda'),_0x796544=_0x18dd13['p']+_0x34e79e('0x25f6');_0x1aa222[_0x34e79e('0x2d9')]=['$scope','$q','$timeout','$mdDialog',_0x34e79e('0x1580'),'$filter',_0x34e79e('0x225d'),_0x34e79e('0x1713'),'rpcAgents',_0x34e79e('0x519'),_0x34e79e('0xd6f'),_0x34e79e('0xd57'),_0x34e79e('0x1fc6'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'$interval'];function _0x1aa222(_0x17b977,_0x419423,_0x3e4639,_0x26904a,_0x157e9f,_0xb0a3d5,_0x474db0,_0x32d90e,_0x8b0822,_0x2e0e92,_0x5e990e,_0x2a1727,_0x1ba9c3,_0x17cf53,_0x38c3ad,_0x31a1f0,_0x52f713,_0x115374){const _0x36ed3a=_0x34e79e,_0x526f19=this,_0x1a637d=['userpic',_0x36ed3a('0x7c2'),'lastLoginAt',_0x36ed3a('0x233e'),_0x36ed3a('0x11e9'),_0x36ed3a('0x233e'),_0x36ed3a('0x2838'),_0x36ed3a('0x32e'),'chatPause','openchannelPause',_0x36ed3a('0x20cd'),_0x36ed3a('0xfd5'),'whatsappPause',_0x36ed3a('0x1891'),_0x36ed3a('0x2a1'),_0x36ed3a('0x4e0'),_0x36ed3a('0xde1'),_0x36ed3a('0x251c'),_0x36ed3a('0x27b7'),'whatsappCapacity','faxCapacity',_0x36ed3a('0xc78'),_0x36ed3a('0x7af'),_0x36ed3a('0x113a'),_0x36ed3a('0x1f88'),_0x36ed3a('0x1d37'),_0x36ed3a('0x76c'),_0x36ed3a('0x25d5'),_0x36ed3a('0x18a3'),_0x36ed3a('0x1a75'),_0x36ed3a('0x698'),_0x36ed3a('0x167f'),_0x36ed3a('0x17d6'),_0x36ed3a('0x1536'),_0x36ed3a('0x1eeb'),'openchannelStatusTime','mailStatusTime',_0x36ed3a('0x27b0'),_0x36ed3a('0x1ac7'),_0x36ed3a('0xbc'),_0x36ed3a('0x48b'),'queue','destconnectedlinenum',_0x36ed3a('0x12b5'),_0x36ed3a('0x15d7'),'phoneBarEnableAutomaticScreenRecording'],_0x4570b8=[_0x36ed3a('0x23a5'),_0x36ed3a('0x1098'),'mailPause',_0x36ed3a('0xfd5'),'whatsappPause','faxPause',_0x36ed3a('0x2a1'),_0x36ed3a('0x7c2')];_0x526f19[_0x36ed3a('0x9cb')]=_0x31a1f0['getCurrentUser'](),_0x526f19[_0x36ed3a('0x27be')]=[_0x36ed3a('0x26f8'),'inuse',_0x36ed3a('0xed9'),_0x36ed3a('0x2097'),'not_inuse'],_0x526f19[_0x36ed3a('0x225d')]=_0x474db0||{'count':0x0,'rows':[]},_0x526f19[_0x36ed3a('0x130d')]=_0x52f713,_0x526f19['userProfile']=_0x17cf53,_0x526f19[_0x36ed3a('0xec9')]=_0x38c3ad&&_0x38c3ad[_0x36ed3a('0x338')]==0x1?_0x38c3ad[_0x36ed3a('0x25df')][0x0]:null,_0x526f19[_0x36ed3a('0xe28')]=_0x31a1f0[_0x36ed3a('0x157e')](_0x526f19[_0x36ed3a('0xec9')]?_0x526f19[_0x36ed3a('0xec9')][_0x36ed3a('0xe28')]:null),_0x526f19[_0x36ed3a('0x1713')]=_0x32d90e?_0x283545()[_0x36ed3a('0x13cf')](_0x32d90e['rows']?_0x32d90e[_0x36ed3a('0x25df')]:[],'id'):{},_0x526f19['rpcAgents']=_0x8b0822?_0x283545()[_0x36ed3a('0x13cf')](_0x8b0822[_0x36ed3a('0x25df')]?_0x8b0822[_0x36ed3a('0x25df')]:[],'id'):{},_0x526f19[_0x36ed3a('0x26ed')]={},_0x526f19[_0x36ed3a('0x374')]=![],_0x526f19['order']=[],_0x526f19[_0x36ed3a('0x1564')]={};for(const _0x4d3adb in _0x526f19[_0x36ed3a('0x1713')]){typeof _0x526f19['agents'][_0x4d3adb]!==_0x36ed3a('0xedb')&&(_0x526f19[_0x36ed3a('0x1713')][_0x4d3adb][_0x36ed3a('0x24eb')]=!![]);}_0x526f19['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x526f19[_0x36ed3a('0x192f')]=_0x423950,_0x526f19[_0x36ed3a('0x2025')]=_0x4acc4f,_0x526f19[_0x36ed3a('0x619')]=_0x306c12,_0x526f19[_0x36ed3a('0xc00')]=_0x13aad5,_0x526f19[_0x36ed3a('0xa35')]=_0x1f250e,_0x526f19['getAgentStatus']=_0x10d73f,_0x526f19[_0x36ed3a('0xcfd')]=_0x4fa791,_0x526f19['isPause']=_0x46d773,_0x526f19['checkPause']=_0x3887d3,_0x526f19['isPartialPause']=_0x3a808d,_0x526f19[_0x36ed3a('0x158d')]=_0x259936,_0x526f19[_0x36ed3a('0x2409')]=_0x4bac55,_0x526f19[_0x36ed3a('0x122e')]=_0x163c83,_0x526f19[_0x36ed3a('0x2826')]=_0xc39f7c,_0x526f19[_0x36ed3a('0xb61')]=_0x821235,_0x526f19[_0x36ed3a('0x1e03')]=_0x2d6374,_0x5e990e['on']('user:save',_0x526f19[_0x36ed3a('0x158d')]),_0x5e990e['on'](_0x36ed3a('0x1cb6'),_0x526f19[_0x36ed3a('0x2409')]),_0x5e990e['on'](_0x36ed3a('0x1958'),_0x526f19[_0x36ed3a('0x2826')]),_0x5e990e['on']('user:agentcomplete',_0x526f19[_0x36ed3a('0xb61')]),_0x163c83();let _0x81754d=_0x115374(function(){const _0x4583cf=_0x36ed3a;_0x526f19[_0x4583cf('0x374')]&&(_0x526f19[_0x4583cf('0x374')]=![],_0x163c83());},0x3e7);function _0x163c83(){const _0x5f4191=_0x36ed3a;_0x526f19[_0x5f4191('0x374')]=![];const _0x5e7b3f=_0x419423[_0x5f4191('0x2311')]();_0x526f19[_0x5f4191('0x1808')]=_0x5e7b3f['promise'],_0x526f19[_0x5f4191('0xfe8')]=[],_0x526f19[_0x5f4191('0x1dc2')]=[],_0x283545()[_0x5f4191('0x1b')](_0x526f19['agents'],function(_0x54a6e6,_0x59ac5f){const _0x36ca95=_0x5f4191;_0x526f19['rpcAgents'][_0x59ac5f]&&_0x283545()['merge'](_0x54a6e6,_0x283545()[_0x36ca95('0x41b')](_0x283545()[_0x36ca95('0x5a9')](_0x526f19[_0x36ca95('0x1c55')][_0x59ac5f],_0x4570b8),_0x1a637d)),_0x4fa791(_0x54a6e6),_0x54a6e6[_0x36ca95('0x7c2')]?(_0x526f19[_0x36ca95('0xfe8')]['push'](_0x54a6e6),_0x526f19['agentInternal'][_0x54a6e6['internal']]=_0x59ac5f):_0x54a6e6[_0x36ca95('0xf3b')]=_0x283545()[_0x36ca95('0x420')](_0x59f37a()()['format']('x'));});_0x526f19[_0x5f4191('0x135a')][_0x5f4191('0x52c')]&&_0x283545()['remove'](_0x526f19['filteredAgents'],function(_0x3aa67d){const _0x404d87=_0x5f4191;return _0x3aa67d['globalStatus']!==_0x526f19[_0x404d87('0x135a')]['globalStatusFilter'];});_0x526f19[_0x5f4191('0x135a')]['pauseTypeFilter']&&_0x283545()[_0x5f4191('0x1a90')](_0x526f19[_0x5f4191('0xfe8')],function(_0x5b8f21){const _0x197fe8=_0x5f4191;return _0x5b8f21[_0x197fe8('0x11e9')]!==_0x526f19['query'][_0x197fe8('0xf25')];});_0x526f19[_0x5f4191('0x135a')][_0x5f4191('0x916')]&&_0x283545()[_0x5f4191('0x1a90')](_0x526f19[_0x5f4191('0xfe8')],function(_0x29c6ff){const _0x11773b=_0x5f4191;return _0x29c6ff[_0x11773b('0x2831')][_0x11773b('0xc2e')]()[_0x11773b('0x821')](_0x526f19[_0x11773b('0x135a')][_0x11773b('0x916')]['toLowerCase']())<0x0;});_0x526f19[_0x5f4191('0xfe8')]=_0x4882c0(_0x526f19['filteredAgents']);const _0x29f10e=(_0x526f19[_0x5f4191('0x135a')][_0x5f4191('0x23f5')]-0x1)*_0x526f19[_0x5f4191('0x135a')][_0x5f4191('0x68e')];_0x526f19[_0x5f4191('0x26ed')]=_0x283545()[_0x5f4191('0x280')](_0x526f19[_0x5f4191('0xfe8')],_0x29f10e)[_0x5f4191('0x845')](0x0,_0x526f19[_0x5f4191('0x135a')][_0x5f4191('0x68e')]);for(let _0x937a3e=0x0;_0x937a3e<_0x526f19[_0x5f4191('0x26ed')][_0x5f4191('0x2566')];_0x937a3e+=0x1){_0x526f19['order'][_0x5f4191('0x13e3')](_0x526f19['paginatedAgents'][_0x937a3e]['id']);}_0x5e7b3f[_0x5f4191('0x2322')](),_0x526f19[_0x5f4191('0x374')]=!![];}function _0x259936(_0x5e94eb){const _0x5d8e63=_0x36ed3a;_0x526f19['agents'][_0x5e94eb['id']]&&(_0x283545()[_0x5d8e63('0x2503')](_0x526f19[_0x5d8e63('0x1713')][_0x5e94eb['id']],_0x283545()['pick'](_0x283545()['omit'](_0x5e94eb,_0x4570b8),_0x1a637d)),_0x283545()[_0x5d8e63('0x2503')](_0x526f19[_0x5d8e63('0x1c55')][_0x5e94eb['id']],_0x283545()[_0x5d8e63('0x41b')](_0x283545()['omit'](_0x5e94eb,_0x4570b8),_0x1a637d)),_0x4fa791(_0x526f19[_0x5d8e63('0x1713')][_0x5e94eb['id']]));}function _0x4bac55(_0x22eff4){const _0x5985f5=_0x36ed3a;_0x526f19[_0x5985f5('0x1713')][_0x22eff4['id']]&&(_0x283545()['merge'](_0x526f19[_0x5985f5('0x1713')][_0x22eff4['id']],_0x283545()['pick'](_0x22eff4,_0x1a637d)),_0x283545()[_0x5985f5('0x2503')](_0x526f19[_0x5985f5('0x1c55')][_0x22eff4['id']],_0x283545()['pick'](_0x22eff4,_0x1a637d)),_0x22eff4['lastPauseAt']&&(_0x526f19[_0x5985f5('0x1713')][_0x22eff4['id']][_0x5985f5('0xf3b')]=_0x22eff4[_0x5985f5('0x233e')],_0x526f19['rpcAgents'][_0x22eff4['id']][_0x5985f5('0xf3b')]=_0x22eff4['lastPauseAt']),_0x4fa791(_0x526f19[_0x5985f5('0x1713')][_0x22eff4['id']]));}function _0xc39f7c(_0x17b44a){const _0x43cc91=_0x36ed3a;_0x526f19['agents'][_0x526f19['agentInternal'][_0x17b44a[_0x43cc91('0x7f4')]]]&&(_0x283545()[_0x43cc91('0x2503')](_0x526f19[_0x43cc91('0x1713')][_0x526f19[_0x43cc91('0x1564')][_0x17b44a[_0x43cc91('0x7f4')]]],_0x283545()['pick'](_0x17b44a,[_0x43cc91('0x1ab4'),_0x43cc91('0xdb6')])),_0x283545()[_0x43cc91('0x2503')](_0x526f19[_0x43cc91('0x1c55')][_0x526f19[_0x43cc91('0x1564')][_0x17b44a[_0x43cc91('0x7f4')]]],_0x283545()['pick'](_0x17b44a,[_0x43cc91('0x1ab4'),_0x43cc91('0xdb6')])));}function _0x821235(_0x168509){const _0x4eff7d=_0x36ed3a;_0x526f19[_0x4eff7d('0x1713')][_0x526f19[_0x4eff7d('0x1564')][_0x168509[_0x4eff7d('0x7f4')]]]&&(_0x526f19[_0x4eff7d('0x1713')][_0x526f19[_0x4eff7d('0x1564')][_0x168509['destaccountcode']]]=_0x283545()[_0x4eff7d('0x5a9')](_0x526f19[_0x4eff7d('0x1713')][_0x526f19[_0x4eff7d('0x1564')][_0x168509[_0x4eff7d('0x7f4')]]],[_0x4eff7d('0x1ab4'),'destconnectedlinenum']),_0x526f19['rpcAgents'][_0x526f19[_0x4eff7d('0x1564')][_0x168509[_0x4eff7d('0x7f4')]]]=_0x283545()[_0x4eff7d('0x5a9')](_0x526f19[_0x4eff7d('0x1c55')][_0x526f19[_0x4eff7d('0x1564')][_0x168509[_0x4eff7d('0x7f4')]]],['queue',_0x4eff7d('0xdb6')]));}function _0x423950(_0x19b0b4){const _0x21dab2=_0x36ed3a;return _0x2e0e92['user'][_0x21dab2('0x192f')]({'id':_0x19b0b4['id'],'device':_0x21dab2('0x548'),'agent_id':_0x19b0b4['id'],'agent_name':_0x19b0b4[_0x21dab2('0x1a8d')]})['$promise']['then'](function(){const _0xef0de1=_0x21dab2;_0x2a1727[_0xef0de1('0x173b')]({'title':_0xef0de1('0x256b'),'msg':_0x19b0b4[_0xef0de1('0x2831')]+'\x20\x20properly\x20logout'}),_0x526f19[_0xef0de1('0x1713')][_0x19b0b4['id']]&&(_0x526f19[_0xef0de1('0x1713')][_0x19b0b4['id']][_0xef0de1('0x7c2')]=![]),_0x526f19[_0xef0de1('0x1c55')][_0x19b0b4['id']]&&(_0x526f19[_0xef0de1('0x1c55')][_0x19b0b4['id']]['online']=![]),_0x163c83();})[_0x21dab2('0x1cb5')](function(_0x3e0adb){const _0x24b307=_0x21dab2;_0x2a1727[_0x24b307('0x5e8')]({'title':_0x3e0adb[_0x24b307('0x1b51')]?_0x24b307('0x15d1')+_0x3e0adb[_0x24b307('0x1b51')]+'\x20-\x20'+_0x3e0adb[_0x24b307('0x22ce')]:_0x24b307('0x184d'),'msg':_0x3e0adb[_0x24b307('0x11fc')]?JSON['stringify'](_0x3e0adb['data'][_0x24b307('0x15e2')]):_0x3e0adb[_0x24b307('0x17df')]()});});}function _0x306c12(_0x56bbef,_0xc10c9b){const _0x3ac922=_0x36ed3a;return _0x2e0e92[_0x3ac922('0x1e6a')][_0x3ac922('0x619')]({'id':_0x56bbef['id'],'type':_0xc10c9b})[_0x3ac922('0x1714')][_0x3ac922('0x2788')](function(_0x24ee40){const _0xfe0bdf=_0x3ac922;_0x526f19[_0xfe0bdf('0x1713')][_0x56bbef['id']]&&_0x283545()[_0xfe0bdf('0x2503')](_0x526f19[_0xfe0bdf('0x1713')][_0x56bbef['id']],_0x283545()[_0xfe0bdf('0x41b')](_0x24ee40,_0x1a637d)),_0x526f19[_0xfe0bdf('0x1c55')][_0x56bbef['id']]&&_0x283545()['merge'](_0x526f19[_0xfe0bdf('0x1c55')][_0x56bbef['id']],_0x283545()[_0xfe0bdf('0x41b')](_0x24ee40,_0x1a637d)),_0x4fa791(_0x526f19[_0xfe0bdf('0x1713')][_0x56bbef['id']]);})[_0x3ac922('0x1cb5')](function(_0x5da76d){const _0x485f23=_0x3ac922;_0x2a1727[_0x485f23('0x5e8')]({'title':_0x5da76d['status']?_0x485f23('0x15d1')+_0x5da76d[_0x485f23('0x1b51')]+'\x20-\x20'+_0x5da76d['statusText']:_0x485f23('0x184d'),'msg':_0x5da76d[_0x485f23('0x11fc')]?JSON[_0x485f23('0x1be0')](_0x5da76d['data']['message']):_0x5da76d[_0x485f23('0x17df')]()});});}function _0x13aad5(_0x532080){const _0x282944=_0x36ed3a;return _0x2e0e92[_0x282944('0x1e6a')][_0x282944('0x1826')]({'id':_0x532080['id']})[_0x282944('0x1714')][_0x282944('0x2788')](function(_0x279d6b){const _0x4380ab=_0x282944;_0x526f19[_0x4380ab('0x1713')][_0x532080['id']]&&_0x283545()[_0x4380ab('0x2503')](_0x526f19[_0x4380ab('0x1713')][_0x532080['id']],_0x283545()[_0x4380ab('0x41b')](_0x279d6b,_0x1a637d)),_0x526f19[_0x4380ab('0x1c55')][_0x532080['id']]&&_0x283545()[_0x4380ab('0x2503')](_0x526f19[_0x4380ab('0x1c55')][_0x532080['id']],_0x283545()[_0x4380ab('0x41b')](_0x279d6b,_0x1a637d)),_0x4fa791(_0x526f19[_0x4380ab('0x1713')][_0x532080['id']]);})[_0x282944('0x1cb5')](function(_0xd75271){const _0x19478f=_0x282944;_0x2a1727[_0x19478f('0x5e8')]({'title':_0xd75271[_0x19478f('0x1b51')]?_0x19478f('0x15d1')+_0xd75271['status']+_0x19478f('0x1b0b')+_0xd75271[_0x19478f('0x22ce')]:_0x19478f('0x184d'),'msg':_0xd75271['data']?JSON[_0x19478f('0x1be0')](_0xd75271[_0x19478f('0x11fc')][_0x19478f('0x15e2')]):_0xd75271[_0x19478f('0x17df')]()});});}function _0x1f250e(_0x40ccce){const _0x173d19=_0x36ed3a;_0x26904a[_0x173d19('0x2fa')](_0x26904a[_0x173d19('0x204f')]()[_0x173d19('0x1e4e')](!![])[_0x173d19('0x14e4')](_0x173d19('0xcbb'))['htmlContent']('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x173d19('0x24d0')](_0x40ccce));}function _0x4acc4f(_0x1bc031,_0x49a25f){const _0x7d84aa=_0x36ed3a;_0x26904a[_0x7d84aa('0x2fa')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x7d7d67,'parent':angular[_0x7d84aa('0x16b1')](_0x157e9f['body']),'targetEvent':_0x49a25f,'clickOutsideToClose':!![],'locals':{'agent':_0x1bc031,'agents':[],'channel':'whatsapp','direction':_0x7d84aa('0x2e4'),'crudPermissions':_0x526f19[_0x7d84aa('0xe28')]}});}function _0x46d773(_0x4123dd){const _0x1e0368=_0x36ed3a;return _0x4123dd===_0x1e0368('0x619')||_0x4123dd===_0x1e0368('0x1d48');}function _0x3887d3(_0x3b0930){const _0x27ee97=_0x36ed3a;return _0x3b0930===_0x27ee97('0x619');}function _0x3a808d(_0x2f7b19){const _0x280e7b=_0x36ed3a;return _0x2f7b19===_0x280e7b('0x1d48');}function _0x39edd3(_0x2df5ad){const _0x42b480=_0x36ed3a;return _0x2df5ad==='idle'||_0x2df5ad===_0x42b480('0x119')||_0x2df5ad===_0x42b480('0x27f0')||_0x2df5ad===_0x42b480('0x26f8')||_0x283545()[_0x42b480('0x1015')](_0x2df5ad);}function _0x10d73f(_0x4f4a8e,_0x393039){const _0x4ac2db=_0x36ed3a;if(_0x393039===_0x4ac2db('0x1f60')){if(_0x4f4a8e[_0x393039+_0x4ac2db('0x21d8')]!==_0x4ac2db('0x124c'))return _0x4f4a8e[_0x393039+_0x4ac2db('0x21d8')];if(_0x4f4a8e[_0x393039+_0x4ac2db('0x14f6')])return _0x4f4a8e[_0x393039+_0x4ac2db('0x21d8')]='pause','pause';return _0x4ac2db('0x124c');}else{if(_0x4f4a8e[_0x393039+_0x4ac2db('0x14f6')])return _0x4f4a8e[_0x393039+_0x4ac2db('0x21d8')]='pause',_0x4ac2db('0x619');return _0x4f4a8e[_0x393039+'Status'];}}function _0x4fa791(_0x27c04c){const _0x299fac=_0x36ed3a;let _0x4b7730=_0x299fac('0x119');if(_0x283545()[_0x299fac('0x111e')]([_0x10d73f(_0x27c04c,_0x299fac('0x1f60')),_0x10d73f(_0x27c04c,'chat'),_0x10d73f(_0x27c04c,_0x299fac('0x2795')),_0x10d73f(_0x27c04c,_0x299fac('0x18aa')),_0x10d73f(_0x27c04c,_0x299fac('0x529')),_0x10d73f(_0x27c04c,_0x299fac('0x195d')),_0x10d73f(_0x27c04c,_0x299fac('0x10cf'))],_0x46d773))_0x4b7730=_0x299fac('0x619');else{if(_0x283545()[_0x299fac('0xc5d')]([_0x10d73f(_0x27c04c,_0x299fac('0x1f60')),_0x10d73f(_0x27c04c,'chat'),_0x10d73f(_0x27c04c,'mail'),_0x10d73f(_0x27c04c,_0x299fac('0x18aa')),_0x10d73f(_0x27c04c,_0x299fac('0x529')),_0x10d73f(_0x27c04c,_0x299fac('0x195d')),_0x10d73f(_0x27c04c,'fax')],_0x46d773))_0x4b7730=_0x299fac('0x1d48');else _0x283545()[_0x299fac('0x111e')]([_0x10d73f(_0x27c04c,_0x299fac('0x1f60')),_0x10d73f(_0x27c04c,_0x299fac('0x231')),_0x10d73f(_0x27c04c,'mail'),_0x10d73f(_0x27c04c,'openchannel'),_0x10d73f(_0x27c04c,_0x299fac('0x529')),_0x10d73f(_0x27c04c,_0x299fac('0x195d')),_0x10d73f(_0x27c04c,_0x299fac('0x10cf'))],_0x39edd3)?_0x4b7730='idle':_0x4b7730=_0x299fac('0xed9');}_0x27c04c[_0x299fac('0xee3')]!==_0x4b7730&&(_0x27c04c[_0x299fac('0xee3')]=_0x4b7730,_0x27c04c[_0x299fac('0x24eb')]?(_0x27c04c[_0x299fac('0x24eb')]=![],_0x27c04c[_0x299fac('0xf3b')]=_0x46d773(_0x4b7730)?_0x283545()[_0x299fac('0x420')](_0x59f37a()(_0x27c04c['lastPauseAt'])[_0x299fac('0x22b4')]('x')):_0x283545()[_0x299fac('0xb0a')]([_0x27c04c[_0x299fac('0x48b')],_0x27c04c[_0x299fac('0x1eeb')],_0x27c04c[_0x299fac('0x1831')],_0x27c04c['smsStatusTime'],_0x27c04c[_0x299fac('0x1ac7')],_0x27c04c[_0x299fac('0x320')],_0x27c04c['faxStatusTime']])):_0x27c04c['globalStatusTime']=_0x283545()[_0x299fac('0x420')](_0x59f37a()()[_0x299fac('0x22b4')]('x')));}function _0x4882c0(_0x21a3aa){const _0x405991=_0x36ed3a,_0x16593c=_0x283545()[_0x405991('0x993')](_0x526f19['query'][_0x405991('0x1dc2')],'-')?'desc':_0x405991('0xe07');return _0x283545()[_0x405991('0xf87')](_0x21a3aa,[_0x526f19['query']['order'][_0x405991('0x10a4')]('-','')],[_0x16593c]);}function _0x208646(){const _0x532f92=_0x36ed3a;_0x81754d&&(_0x115374[_0x532f92('0x1801')](_0x81754d),_0x81754d=null);}function _0x2d6374(_0x108967,_0x2720c4){const _0x52c531=_0x36ed3a;return _0x2e0e92[_0x52c531('0x1e6a')][_0x52c531('0x2740')]({'id':_0x108967['id']},{'screenrecording':_0x2720c4})['$promise'][_0x52c531('0x1cb5')](function(_0x9473a1){const _0x52823b=_0x52c531;_0x2a1727[_0x52823b('0x5e8')]({'title':_0x9473a1[_0x52823b('0x1b51')]?_0x52823b('0x15d1')+_0x9473a1[_0x52823b('0x1b51')]+'\x20-\x20'+_0x9473a1[_0x52823b('0x22ce')]:_0x52823b('0x863'),'msg':_0x9473a1[_0x52823b('0x11fc')]?JSON[_0x52823b('0x1be0')](_0x9473a1[_0x52823b('0x11fc')]['message']):_0x9473a1[_0x52823b('0x17df')]()});});}_0x17b977[_0x36ed3a('0x651')](_0x36ed3a('0x26ac'),function(){const _0x558a45=_0x36ed3a;_0x5e990e[_0x558a45('0x277f')](_0x558a45('0x71')),_0x5e990e[_0x558a45('0x277f')](_0x558a45('0x1cb6')),_0x5e990e[_0x558a45('0x277f')](_0x558a45('0x1958')),_0x5e990e[_0x558a45('0x277f')](_0x558a45('0x116b')),_0x208646();});}const _0x5358a7=_0x1aa222,_0x2bb959=_0x18dd13['p']+_0x34e79e('0x152a'),_0x334af7=_0x18dd13['p']+_0x34e79e('0x11b4');_0x142e97['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1580'),_0x34e79e('0x16e3'),'queues',_0x34e79e('0x274c'),_0x34e79e('0x519'),'socket',_0x34e79e('0xd57'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x1b04')];function _0x142e97(_0x2c27aa,_0x2d46a6,_0x28f25e,_0xe814e4,_0x477418,_0x1ba397,_0x2ff9e4,_0xc446a0,_0x131603,_0x522d80,_0x1c4e6b,_0x18b374,_0x169112,_0x408649){const _0x412b4f=_0x34e79e,_0x4608e9=this,_0x1a47f9=[_0x412b4f('0x477'),_0x412b4f('0x2705'),'waiting',_0x412b4f('0x1e8c'),'pTalking','originated',_0x412b4f('0x15e2'),_0x412b4f('0x10b2'),_0x412b4f('0x1054'),_0x412b4f('0x312'),_0x412b4f('0x120')];_0x4608e9['currentUser']=_0x408649[_0x412b4f('0x24cc')](),_0x4608e9[_0x412b4f('0x338')]=_0x2ff9e4[_0x412b4f('0x338')]?_0x2ff9e4[_0x412b4f('0x338')]:0x0,_0x4608e9[_0x412b4f('0x283e')]=_0x2ff9e4?_0x283545()[_0x412b4f('0x13cf')](_0x2ff9e4[_0x412b4f('0x25df')]?_0x2ff9e4[_0x412b4f('0x25df')]:[],'id'):{},_0x4608e9[_0x412b4f('0x274c')]=_0xc446a0?_0x283545()['keyBy'](_0xc446a0[_0x412b4f('0x25df')]?_0xc446a0[_0x412b4f('0x25df')]:[],'id'):{},_0x4608e9['userProfile']=_0x18b374,_0x4608e9['userProfileSection']=_0x169112&&_0x169112['count']==0x1?_0x169112[_0x412b4f('0x25df')][0x0]:null,_0x4608e9['crudPermissions']=_0x408649['parseCrudPermissions'](_0x4608e9['userProfileSection']?_0x4608e9['userProfileSection']['crudPermissions']:null);_0x408649[_0x412b4f('0x1516')](_0x412b4f('0xe23'))?_0x4608e9[_0x412b4f('0x135a')]={'type':_0x412b4f('0x2e4'),'sort':_0x412b4f('0x1cee'),'limit':0xa,'page':0x1}:_0x4608e9[_0x412b4f('0x135a')]={'id':_0x4608e9[_0x412b4f('0x9cb')]['id'],'channel':_0x412b4f('0x195d'),'type':_0x412b4f('0x2e4'),'sort':_0x412b4f('0x1cee'),'limit':0xa,'page':0x1};_0x4608e9['success']=_0xcec4dd,_0x4608e9[_0x412b4f('0x138a')]=_0x372112,_0x4608e9[_0x412b4f('0x303')]=_0x4ddb68,_0x4608e9['agentAdd']=_0x2f0ec7,_0x4608e9['updateQueue']=_0x2870fc,_0x4608e9[_0x412b4f('0x158d')]=_0x47324a,_0x4608e9[_0x412b4f('0x25e9')]=_0x541f8a,_0x4608e9[_0x412b4f('0x1174')]=_0x3239d9,_0x4608e9[_0x412b4f('0x1768')]=_0x2efc3,_0x4608e9[_0x412b4f('0x18e3')]=_0x528ee1,_0x4608e9[_0x412b4f('0x234')]=_0x1daad7,_0x4608e9[_0x412b4f('0x11ad')]=_0x4816ed,_0x4608e9[_0x412b4f('0x1dc2')]=[],_0x283545()[_0x412b4f('0x1b')](_0x4608e9[_0x412b4f('0x283e')],function(_0x505bf0){const _0x24341d=_0x412b4f;_0x4608e9[_0x24341d('0x1dc2')][_0x24341d('0x13e3')](_0x505bf0['id']);}),_0x522d80['on'](_0x412b4f('0xc94'),_0x4608e9['onSave']),_0x522d80['on'](_0x412b4f('0x5cf'),_0x4608e9[_0x412b4f('0x25e9')]),_0x522d80['on'](_0x412b4f('0xa6b'),_0x4608e9[_0x412b4f('0x1174')]),_0x522d80['on'](_0x412b4f('0x1cb6'),_0x4608e9['onPause']),_0x522d80['on'](_0x412b4f('0x11e0'),_0x4608e9[_0x412b4f('0x234')]),_0x522d80['on']('userVoiceQueue:save',_0x4608e9[_0x412b4f('0x18e3')]);function _0x4816ed(){const _0x138d82=_0x412b4f,_0x29dc04=[];return _0x283545()[_0x138d82('0x1b')](_0x4608e9[_0x138d82('0x283e')],function(_0x2061cc,_0x5b4337){const _0x461df0=_0x138d82;_0x2061cc[_0x461df0('0x120')]=0x0,_0x2061cc['loggedInDb']=0x0,_0x4608e9[_0x461df0('0x283e')][_0x5b4337]['agents']={},_0x29dc04[_0x461df0('0x13e3')](_0x131603['whatsappQueue'][_0x461df0('0xe75')]({'id':_0x5b4337})['$promise']),_0x4608e9[_0x461df0('0x274c')][_0x5b4337]&&_0x283545()[_0x461df0('0x2503')](_0x2061cc,_0x283545()[_0x461df0('0x41b')](_0x4608e9['rpcQueues'][_0x5b4337],_0x1a47f9));}),_0xe814e4[_0x138d82('0x1def')](_0x29dc04)[_0x138d82('0x2788')](function(_0x18f41f){const _0x1aca1a=_0x138d82;for(let _0x15423c=0x0;_0x15423c<_0x18f41f[_0x1aca1a('0x2566')];_0x15423c+=0x1){for(let _0x1b2c58=0x0;_0x1b2c58<_0x18f41f[_0x15423c][_0x1aca1a('0x25df')]['length'];_0x1b2c58++){_0x18f41f[_0x15423c][_0x1aca1a('0x25df')][_0x1b2c58]['paused']&&_0x4608e9[_0x1aca1a('0x283e')][_0x18f41f[_0x15423c][_0x1aca1a('0x25df')][_0x1b2c58][_0x1aca1a('0xcef')]][_0x1aca1a('0x120')]++,_0x4608e9[_0x1aca1a('0x283e')][_0x18f41f[_0x15423c][_0x1aca1a('0x25df')][_0x1b2c58][_0x1aca1a('0xcef')]][_0x1aca1a('0xc65')]++,_0x4608e9[_0x1aca1a('0x283e')][_0x18f41f[_0x15423c]['rows'][_0x1b2c58][_0x1aca1a('0xcef')]][_0x1aca1a('0x1713')][_0x18f41f[_0x15423c]['rows'][_0x1b2c58][_0x1aca1a('0x3bb')]]=_0x18f41f[_0x15423c]['rows'][_0x1b2c58]['WhatsappQueueId'];}}})[_0x138d82('0x1cb5')](function(_0x4bbee2){const _0x114568=_0x138d82;console[_0x114568('0x5e8')](_0x4bbee2);});}function _0x47324a(_0x42ec4a){const _0x647b21=_0x412b4f;_0x4608e9[_0x647b21('0x283e')][_0x42ec4a['id']]&&_0x283545()[_0x647b21('0x2503')](_0x4608e9[_0x647b21('0x283e')][_0x42ec4a['id']],_0x283545()['pick'](_0x42ec4a,_0x1a47f9));}function _0x541f8a(_0x37e6d1){const _0x217b52=_0x412b4f;_0x4608e9[_0x217b52('0x283e')][_0x37e6d1[_0x217b52('0xcef')]]&&_0x4608e9[_0x217b52('0x283e')][_0x37e6d1['WhatsappQueueId']]['loggedInDb']++;}function _0x3239d9(_0x1befc6){const _0x4eca25=_0x412b4f;_0x4608e9['queues'][_0x1befc6[_0x4eca25('0xcef')]]&&_0x4608e9[_0x4eca25('0x283e')][_0x1befc6[_0x4eca25('0xcef')]]['loggedInDb']--;}function _0x2efc3(_0x480611){const _0x5b2538=_0x412b4f;console[_0x5b2538('0x10df')](_0x5b2538('0x1768'),_0x480611);if(_0x480611[_0x5b2538('0x2a1')])_0x283545()[_0x5b2538('0x1b')](_0x4608e9['queues'],function(_0x2aa8c3){const _0x1bd7c5=_0x5b2538;_0x2aa8c3[_0x1bd7c5('0x1713')][_0x480611['id']]&&(_0x2aa8c3[_0x1bd7c5('0x120')]+=0x1,console[_0x1bd7c5('0x10df')](_0x1bd7c5('0x619')));});else!_0x480611[_0x5b2538('0x2a1')]&&_0x283545()[_0x5b2538('0x1b')](_0x4608e9['queues'],function(_0xb06564){const _0x16d18f=_0x5b2538;_0xb06564[_0x16d18f('0x1713')][_0x480611['id']]&&(_0xb06564[_0x16d18f('0x120')]>0x0&&(_0xb06564[_0x16d18f('0x120')]-=0x1,console[_0x16d18f('0x10df')](_0x16d18f('0x1826'))));});}function _0x528ee1(_0x1be482){const _0x1679cd=_0x412b4f;console[_0x1679cd('0x10df')](_0x1679cd('0x388'),_0x1be482),_0x4608e9[_0x1679cd('0x283e')][_0x1be482[_0x1679cd('0xcef')]]&&(_0x4608e9[_0x1679cd('0x283e')][_0x1be482[_0x1679cd('0xcef')]][_0x1679cd('0xc65')]+=0x1,_0x4608e9[_0x1679cd('0x283e')][_0x1be482[_0x1679cd('0xcef')]]['agents'][_0x1be482['UserId']]=_0x1be482[_0x1679cd('0xcef')]);}function _0x1daad7(_0x3d873a){const _0x4006de=_0x412b4f;console['log']('onLogout',_0x3d873a),_0x4608e9[_0x4006de('0x283e')][_0x3d873a['WhatsappQueueId']]&&_0x4608e9[_0x4006de('0x283e')][_0x3d873a[_0x4006de('0xcef')]]['loggedInDb']>0x0&&(_0x4608e9[_0x4006de('0x283e')][_0x3d873a[_0x4006de('0xcef')]][_0x4006de('0xc65')]-=0x1,delete _0x4608e9['queues'][_0x3d873a[_0x4006de('0xcef')]][_0x4006de('0x1713')][_0x3d873a['UserId']]);}let _0x57777e=!![],_0x28fea9=0x1;_0x2c27aa[_0x412b4f('0x1662')](_0x412b4f('0x1569'),function(_0x1244d6,_0x1eaa24){const _0x161c38=_0x412b4f;_0x57777e?_0x2d46a6(function(){_0x57777e=![];}):(!_0x1eaa24&&(_0x28fea9=_0x4608e9['query'][_0x161c38('0x23f5')]),_0x1244d6!==_0x1eaa24&&(_0x4608e9[_0x161c38('0x135a')][_0x161c38('0x23f5')]=0x1),!_0x1244d6&&(_0x4608e9[_0x161c38('0x135a')][_0x161c38('0x23f5')]=_0x28fea9),_0x4608e9[_0x161c38('0x138a')]());});function _0xcec4dd(_0x3fc75d){const _0x49deab=_0x412b4f;_0x4608e9['count']=_0x3fc75d[_0x49deab('0x338')],_0x4608e9[_0x49deab('0x283e')]=_0x3fc75d?_0x283545()[_0x49deab('0x13cf')](_0x3fc75d['rows']?_0x3fc75d['rows']:[],'id'):{};if(_0x3fc75d[_0x49deab('0x25df')]){_0x4608e9[_0x49deab('0x1dc2')]=[];for(let _0x13106c=0x0;_0x13106c<_0x3fc75d['rows'][_0x49deab('0x2566')];_0x13106c++){_0x4608e9[_0x49deab('0x1dc2')][_0x49deab('0x13e3')](_0x3fc75d[_0x49deab('0x25df')][_0x13106c]['id']);}}_0x4816ed();}function _0x372112(){const _0x486630=_0x412b4f;_0x4608e9[_0x486630('0x135a')][_0x486630('0x19e')]=(_0x4608e9[_0x486630('0x135a')][_0x486630('0x23f5')]-0x1)*_0x4608e9[_0x486630('0x135a')][_0x486630('0x68e')],_0x408649['hasRole'](_0x486630('0xe23'))?_0x4608e9[_0x486630('0x1808')]=_0x131603[_0x486630('0x1170')][_0x486630('0x1335')](_0x4608e9[_0x486630('0x135a')],_0xcec4dd)[_0x486630('0x1714')]:(_0x4608e9[_0x486630('0x135a')]['id']=_0x4608e9[_0x486630('0x63c')]['id'],_0x4608e9['query'][_0x486630('0xb13')]=_0x486630('0x28c'),_0x4608e9[_0x486630('0x1808')]=_0x131603[_0x486630('0x63c')][_0x486630('0xa1')](_0x4608e9[_0x486630('0x135a')],_0xcec4dd)[_0x486630('0x1714')]);}function _0x4ddb68(_0x191d1c,_0xb29da5){const _0x244091=_0x412b4f;_0x28f25e['show']({'controller':_0x244091('0xe9f'),'controllerAs':'vm','templateUrl':_0x2bb959,'parent':angular[_0x244091('0x16b1')](_0x477418[_0x244091('0x945')]),'targetEvent':_0x191d1c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0xb29da5,'whatsappQueues':_0x283545()['values'](_0x4608e9[_0x244091('0x283e')]),'license':null,'setting':null,'crudPermissions':_0x4608e9[_0x244091('0xe28')]}});}function _0x2f0ec7(_0x802d03,_0x3fa20c){const _0x7bf83=_0x412b4f;_0x28f25e[_0x7bf83('0x2fa')]({'controller':_0x7bf83('0x1fa5'),'controllerAs':'vm','templateUrl':_0x334af7,'parent':angular['element'](_0x477418[_0x7bf83('0x945')]),'targetEvent':_0x802d03,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3fa20c,'whatsappQueues':_0x4608e9[_0x7bf83('0x283e')]?_0x4608e9['queues'][_0x7bf83('0x25df')]:[],'realtime':![],'crudPermissions':_0x4608e9[_0x7bf83('0xe28')]}});}function _0x2870fc(_0x111e40){const _0x455d76=_0x412b4f;return _0x131603['whatsappQueue'][_0x455d76('0x2740')](_0x111e40)[_0x455d76('0x1714')]['then'](function(){const _0x462934=_0x455d76;_0x1c4e6b[_0x462934('0x173b')]({'title':_0x462934('0xc31'),'msg':_0x111e40[_0x462934('0x1a8d')]?_0x111e40['name']+_0x462934('0x6f8'):''});})[_0x455d76('0x1cb5')](function(_0x3c4094){const _0x49fb7c=_0x455d76;_0x1c4e6b['error']({'title':_0x49fb7c('0xa30'),'msg':_0x3c4094[_0x49fb7c('0x15e2')]});});}_0x2c27aa[_0x412b4f('0x651')](_0x412b4f('0x26ac'),function(){const _0x4495b7=_0x412b4f;_0x522d80[_0x4495b7('0x277f')](_0x4495b7('0xc94')),_0x522d80[_0x4495b7('0x277f')](_0x4495b7('0xa6b')),_0x522d80[_0x4495b7('0x277f')](_0x4495b7('0x5cf')),_0x522d80[_0x4495b7('0x277f')](_0x4495b7('0x1cb6')),_0x522d80['removeAllListeners']('userVoiceQueue:remove'),_0x522d80[_0x4495b7('0x277f')]('userVoiceQueue:save');});}const _0x420ee5=_0x142e97;function _0x4d7b4a(){const _0x5d4327=_0x34e79e;return{'status':{'registered':_0x5d4327('0xc38'),'unregistered':_0x5d4327('0x1ad6'),'lagged':_0x5d4327('0x1ad6'),'reachable':_0x5d4327('0xc38'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x5d4327('0x22b7')},'state':{'unknown':_0x5d4327('0x165d'),'not_inuse':_0x5d4327('0x368'),'inuse':_0x5d4327('0x1b19'),'busy':_0x5d4327('0xf03'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x5d4327('0x165d'),'ringing':_0x5d4327('0x18d1'),'ringinuse':_0x5d4327('0x18d1'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x5d4327('0x18d1'),'up':_0x5d4327('0x699'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x5d4327('0x699'),'hangup':_0x5d4327('0x393')}};}const _0x1e8f12=_0x4d7b4a;_0x134870['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'socket'];function _0x134870(_0x1fc410,_0x54ca2c,_0x8ad4f4){const _0x3e995b=_0x34e79e,_0x4433f4=this;_0x8ad4f4['disconnect'](),_0x8ad4f4[_0x3e995b('0x26c')](),_0x4433f4[_0x3e995b('0xcb3')]=0x0;switch(_0x54ca2c[_0x3e995b('0x1c7f')][_0x3e995b('0x1a8d')]){case _0x3e995b('0x2068'):_0x4433f4['selectedTab']=0x0;break;case _0x3e995b('0x16bb'):_0x4433f4[_0x3e995b('0xcb3')]=0x1;break;default:_0x4433f4[_0x3e995b('0xcb3')]=0x0,_0x54ca2c['go'](_0x3e995b('0x2068'));}_0x1fc410['$watch']('vm.selectedTab',function(_0x3ef599,_0x30c0cb){const _0x451db6=_0x3e995b;if(_0x3ef599!==_0x30c0cb)switch(_0x3ef599){case 0x0:_0x54ca2c['go']('app.whatsapp.realtime.agents');break;case 0x1:_0x54ca2c['go']('app.whatsapp.realtime.queues');break;default:_0x54ca2c['go'](_0x451db6('0x2068'));break;}});}const _0x3164f2=_0x134870;_0x350c47[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d')];function _0x350c47(_0xe446c6){const _0x14a3a6=_0x34e79e;_0xe446c6[_0x14a3a6('0x249b')](_0x14a3a6('0x22ff'),{'url':_0x14a3a6('0x2090'),'views':{'content@app':{'templateUrl':_0x4f20e6,'controller':_0x14a3a6('0x1fe5')}},'resolve':{'userProfile':['apiResolver',_0x14a3a6('0x1b04'),function(_0x541e68,_0x17f62f){const _0x2b1c72=_0x14a3a6;return _0x17f62f['hasRole']('admin')?null:_0x541e68[_0x2b1c72('0x2322')](_0x2b1c72('0x231d'),{'fields':_0x2b1c72('0x3f0'),'id':_0x17f62f[_0x2b1c72('0x24cc')]()[_0x2b1c72('0x237f')]});}],'userProfileSection':[_0x14a3a6('0x1318'),_0x14a3a6('0x1b04'),function(_0x36cdc4,_0x47662a){const _0x2c4a62=_0x14a3a6;return _0x47662a[_0x2c4a62('0x1516')]('admin')?null:_0x36cdc4[_0x2c4a62('0x2322')]('userProfileSection@get',{'fields':_0x2c4a62('0xe2c'),'userProfileId':_0x47662a['getCurrentUser']()['userProfileId'],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x14a3a6('0x249b')](_0x14a3a6('0x2068'),{'url':_0x14a3a6('0xa9b'),'controller':'AgentsWhatsappRealtimeController\x20as\x20vm','templateUrl':_0x4cb9c6,'resolve':{'pauses':[_0x14a3a6('0x1318'),function(_0xaef880){const _0xa56edb=_0x14a3a6;return _0xaef880[_0xa56edb('0x2322')]('pause@get',{'nolimit':!![]});}],'agents':[_0x14a3a6('0x1318'),_0x14a3a6('0x1b04'),function(_0xc79db3,_0xac3c43){const _0x25964=_0x14a3a6;return _0xac3c43[_0x25964('0x1516')](_0x25964('0xe23'))?_0xc79db3[_0x25964('0x2322')](_0x25964('0x144f'),{'fields':_0x25964('0xed0'),'role':_0x25964('0x188b'),'sort':_0x25964('0x2831'),'nolimit':!![]}):_0xc79db3[_0x25964('0x2322')](_0x25964('0x27c5'),{'id':_0xac3c43[_0x25964('0x24cc')]()[_0x25964('0x237f')],'section':_0x25964('0x1f72'),'fields':_0x25964('0xed0'),'role':_0x25964('0x188b'),'sort':_0x25964('0x2831'),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function(_0x3a3ff1,_0x429336){const _0x5db2bc=_0x14a3a6;return _0x429336[_0x5db2bc('0x1516')](_0x5db2bc('0xe23'))?null:_0x3a3ff1[_0x5db2bc('0x2322')](_0x5db2bc('0x231d'),{'fields':_0x5db2bc('0x3f0'),'id':_0x429336[_0x5db2bc('0x24cc')]()['userProfileId']});}],'userProfileSection':[_0x14a3a6('0x1318'),_0x14a3a6('0x1b04'),function(_0x32385e,_0x367cd2){const _0x4fc705=_0x14a3a6;return _0x367cd2[_0x4fc705('0x1516')]('admin')?null:_0x32385e[_0x4fc705('0x2322')]('userProfileSection@get',{'fields':_0x4fc705('0xe2c'),'userProfileId':_0x367cd2[_0x4fc705('0x24cc')]()[_0x4fc705('0x237f')],'sectionId':0xca});}],'rpcAgents':[_0x14a3a6('0x1318'),function(_0x4dad3c){const _0x417a08=_0x14a3a6;return _0x4dad3c['resolve'](_0x417a08('0x21f7'));}]},'authenticate':!![],'permissionId':0x83e})['state']('app.whatsapp.realtime.queues',{'url':_0x14a3a6('0x1c30'),'controller':_0x14a3a6('0x1a7e'),'templateUrl':_0x796544,'resolve':{'queues':['apiResolver',_0x14a3a6('0x1b04'),function(_0x1e8b85,_0x32600d){const _0xf4a497=_0x14a3a6;return _0x32600d['hasRole'](_0xf4a497('0xe23'))?_0x1e8b85[_0xf4a497('0x2322')](_0xf4a497('0x1968'),{'type':'inbound','sort':_0xf4a497('0x1cee'),'limit':0xa,'offset':0x0}):_0x1e8b85[_0xf4a497('0x2322')](_0xf4a497('0x27c5'),{'id':_0x32600d[_0xf4a497('0x24cc')]()['userProfileId'],'section':_0xf4a497('0x28c'),'channel':_0xf4a497('0x195d'),'type':'inbound','sort':_0xf4a497('0x1cee'),'limit':0xa,'page':0x1});}],'userProfile':[_0x14a3a6('0x1318'),_0x14a3a6('0x1b04'),function(_0xd474fb,_0x232bc5){const _0x3f2f41=_0x14a3a6;return _0x232bc5[_0x3f2f41('0x1516')](_0x3f2f41('0xe23'))?null:_0xd474fb[_0x3f2f41('0x2322')](_0x3f2f41('0x231d'),{'fields':_0x3f2f41('0x3f0'),'id':_0x232bc5[_0x3f2f41('0x24cc')]()[_0x3f2f41('0x237f')]});}],'userProfileSection':[_0x14a3a6('0x1318'),_0x14a3a6('0x1b04'),function(_0x1b4481,_0x2cd73b){const _0x5c884c=_0x14a3a6;return _0x2cd73b[_0x5c884c('0x1516')](_0x5c884c('0xe23'))?null:_0x1b4481[_0x5c884c('0x2322')](_0x5c884c('0x22ca'),{'fields':_0x5c884c('0xe2c'),'userProfileId':_0x2cd73b[_0x5c884c('0x24cc')]()[_0x5c884c('0x237f')],'sectionId':0x835});}],'rpcQueues':['apiResolver',function(_0x285aa4){const _0x198493=_0x14a3a6;return _0x285aa4[_0x198493('0x2322')](_0x198493('0x2461'));}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x34e79e('0x16e2')](_0x34e79e('0x22ff'),[])[_0x34e79e('0x1a22')](_0x350c47)[_0x34e79e('0xb44')](_0x34e79e('0x100a'),_0x5358a7)[_0x34e79e('0xb44')](_0x34e79e('0x775'),_0x420ee5)['factory'](_0x34e79e('0x1fc6'),_0x1e8f12)[_0x34e79e('0xb44')](_0x34e79e('0x1622'),_0x3164f2);const _0x39ed83=_0x18dd13['p']+_0x34e79e('0x23'),_0x2d527a=_0x18dd13['p']+_0x34e79e('0x5ef'),_0x5c3447=_0x18dd13['p']+_0x34e79e('0x145b'),_0x35c132=_0x18dd13['p']+_0x34e79e('0x19e9');_0x5561d0['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0xa47'),_0x34e79e('0x15'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),_0x34e79e('0x1af0'),_0x34e79e('0xe28')];function _0x5561d0(_0x4699d7,_0x2c9c9a,_0x1732ae,_0x471eaf,_0x2eafb1,_0x4ded7a,_0x16e40d,_0xdc0d07,_0x3efcb9,_0x3a4da5,_0x266ea6,_0x5c1431,_0x73ab2b,_0x47f30d){const _0x3fcd81=_0x34e79e,_0x14bd0c=this;_0x14bd0c[_0x3fcd81('0x9cb')]=_0x266ea6['getCurrentUser'](),_0x14bd0c[_0x3fcd81('0x25be')]=[],_0x14bd0c[_0x3fcd81('0x1af0')]=_0x73ab2b,_0x14bd0c['license']=_0x5c1431,_0x14bd0c[_0x3fcd81('0xe28')]=_0x47f30d,_0x14bd0c['hasModulePermissions']={},_0x14bd0c[_0x3fcd81('0x18ad')]=_0x14bd0c[_0x3fcd81('0x1af0')]&&_0x14bd0c['setting'][_0x3fcd81('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14bd0c[_0x3fcd81('0x14e4')]='WHATSAPP.EDIT_WHATSAPPACCOUNT',_0x14bd0c['whatsappAccount']=angular[_0x3fcd81('0x2669')](_0x3efcb9),_0x14bd0c[_0x3fcd81('0xa47')]=_0xdc0d07,_0x14bd0c['newWhatsappAccount']=![];!_0x14bd0c[_0x3fcd81('0x15')]&&(_0x14bd0c['whatsappAccount']={'remote':_0x1732ae[_0x3fcd81('0x170c')]()+_0x3fcd81('0x726')+_0x1732ae[_0x3fcd81('0x1c6a')]()+(_0x1732ae[_0x3fcd81('0x1fee')]()?':'+_0x1732ae[_0x3fcd81('0x1fee')]():''),'type':_0x3fcd81('0x1540'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x14bd0c['title']=_0x3fcd81('0x373'),_0x14bd0c[_0x3fcd81('0x1e3c')]=!![]);_0x2c9c9a[_0x3fcd81('0x4b9')]['id']&&(_0x14bd0c['whatsappAccount'][_0x3fcd81('0x25b8')]=_0x2c9c9a[_0x3fcd81('0x4b9')]['id']);_0x14bd0c[_0x3fcd81('0xcc8')]=_0x32b0c2,_0x14bd0c[_0x3fcd81('0x170e')]=_0x1e7071,_0x14bd0c[_0x3fcd81('0x1dc7')]=_0x21b517,_0x14bd0c[_0x3fcd81('0x2601')]=_0x10e507,_0x14bd0c[_0x3fcd81('0xca7')]=_0x5a167e,_0x266ea6[_0x3fcd81('0x1516')](_0x3fcd81('0xe23'))?_0x3a4da5['cmList'][_0x3fcd81('0x1335')]({'fields':_0x3fcd81('0x1338'),'sort':_0x3fcd81('0x1a8d')})[_0x3fcd81('0x1714')][_0x3fcd81('0x2788')](function(_0x1ebcb5){const _0x1b6576=_0x3fcd81;_0x14bd0c[_0x1b6576('0x2')]=_0x1ebcb5[_0x1b6576('0x25df')]||[];})[_0x3fcd81('0x1cb5')](function(_0x1e1d69){const _0x2c2034=_0x3fcd81;_0x16e40d[_0x2c2034('0x5e8')]({'title':_0x1e1d69[_0x2c2034('0x1b51')]?_0x2c2034('0x15d1')+_0x1e1d69[_0x2c2034('0x1b51')]+_0x2c2034('0x1b0b')+_0x1e1d69[_0x2c2034('0x22ce')]:_0x2c2034('0x11da'),'msg':_0x1e1d69[_0x2c2034('0x11fc')]?JSON[_0x2c2034('0x1be0')](_0x1e1d69[_0x2c2034('0x11fc')]):_0x1e1d69[_0x2c2034('0x17df')]()});}):_0x3a4da5['cmList'][_0x3fcd81('0x1335')]({'fields':_0x3fcd81('0x1338'),'sort':'name'})[_0x3fcd81('0x1714')][_0x3fcd81('0x2788')](function(_0x50cf69){const _0x69fa3=_0x3fcd81;_0x14bd0c[_0x69fa3('0x2')]=_0x50cf69[_0x69fa3('0x25df')]||[];})['then'](function(){const _0x4cc253=_0x3fcd81;return _0x3a4da5[_0x4cc253('0xec9')][_0x4cc253('0x1335')]({'userProfileId':_0x14bd0c[_0x4cc253('0x9cb')][_0x4cc253('0x237f')],'sectionId':0x12d})[_0x4cc253('0x1714')];})[_0x3fcd81('0x2788')](function(_0x3fe7fb){const _0x3d328b=_0x3fcd81,_0x413587=_0x3fe7fb&&_0x3fe7fb[_0x3d328b('0x25df')]?_0x3fe7fb[_0x3d328b('0x25df')][0x0]:null;if(!_0x413587){const _0x364f0a=[];let _0x11468d=null;_0x14bd0c['whatsappAccount']&&(_0x11468d=_0x283545()[_0x3d328b('0x20e8')](_0x14bd0c[_0x3d328b('0x2')],{'id':Number(_0x14bd0c['whatsappAccount'][_0x3d328b('0x354')])}));for(let _0x183494=0x0;_0x183494<_0x14bd0c[_0x3d328b('0x2')][_0x3d328b('0x2566')];_0x183494++){_0x11468d&&_0x14bd0c[_0x3d328b('0x2')][_0x183494]['id']===_0x11468d['id']&&(_0x14bd0c[_0x3d328b('0x2')][_0x183494][_0x3d328b('0x3bf')]=![],_0x364f0a[_0x3d328b('0x13e3')](_0x14bd0c[_0x3d328b('0x2')][_0x183494]));}_0x14bd0c[_0x3d328b('0x2')]=_0x364f0a;}else{if(!_0x413587['autoAssociation'])return _0x3a4da5['userProfileResource']['get']({'sectionId':_0x413587['id']})[_0x3d328b('0x1714')][_0x3d328b('0x2788')](function(_0xe8f31e){const _0x361197=_0x3d328b,_0x3714ee=_0x283545()[_0x361197('0x155d')](_0xe8f31e['rows'],function(_0x147252){const _0x2081b2=_0x361197;return _0x283545()['find'](_0x14bd0c[_0x2081b2('0x2')],{'id':_0x147252['resourceId']});});let _0x202c96=null;_0x14bd0c[_0x361197('0x15')]&&(_0x202c96=_0x283545()[_0x361197('0x20e8')](_0x14bd0c['lists'],{'id':Number(_0x14bd0c['whatsappAccount'][_0x361197('0x354')])}));if(_0x202c96&&!_0x283545()[_0x361197('0xc5d')](_0x3714ee,['id',_0x202c96['id']])){const _0x1d6255=_0x283545()[_0x361197('0x20e8')](_0x14bd0c[_0x361197('0x2')],{'id':_0x202c96['id']});_0x1d6255[_0x361197('0x3bf')]=![],_0x3714ee[_0x361197('0x13e3')](_0x1d6255);}_0x14bd0c[_0x361197('0x2')]=_0x3714ee;});}})[_0x3fcd81('0x1cb5')](function(_0x48e7e0){const _0x1fe37b=_0x3fcd81;_0x16e40d['error']({'title':_0x48e7e0['status']?_0x1fe37b('0x15d1')+_0x48e7e0[_0x1fe37b('0x1b51')]+_0x1fe37b('0x1b0b')+_0x48e7e0['statusText']:_0x1fe37b('0x999'),'msg':_0x48e7e0[_0x1fe37b('0x11fc')]?JSON[_0x1fe37b('0x1be0')](_0x48e7e0[_0x1fe37b('0x11fc')]):_0x48e7e0['toString']()});}),_0x266ea6['hasRole'](_0x3fcd81('0xe23'))?_0x3a4da5[_0x3fcd81('0x619')][_0x3fcd81('0x1335')]({'fields':_0x3fcd81('0xcfa'),'sort':'name','nolimit':_0x3fcd81('0x1001')})['$promise'][_0x3fcd81('0x2788')](function(_0x287290){const _0xff5a80=_0x3fcd81;_0x14bd0c[_0xff5a80('0x225d')]=_0x287290[_0xff5a80('0x25df')]||[];})[_0x3fcd81('0x1cb5')](function(_0x1bf104){const _0x1a7c0a=_0x3fcd81;_0x16e40d[_0x1a7c0a('0x5e8')]({'title':_0x1bf104[_0x1a7c0a('0x1b51')]?_0x1a7c0a('0x15d1')+_0x1bf104[_0x1a7c0a('0x1b51')]+_0x1a7c0a('0x1b0b')+_0x1bf104['statusText']:_0x1a7c0a('0x10d8'),'msg':_0x1bf104[_0x1a7c0a('0x11fc')]?JSON[_0x1a7c0a('0x1be0')](_0x1bf104[_0x1a7c0a('0x11fc')]):_0x1bf104[_0x1a7c0a('0x17df')]()});}):_0x3a4da5[_0x3fcd81('0x619')][_0x3fcd81('0x1335')]({'fields':_0x3fcd81('0xcfa'),'sort':_0x3fcd81('0x1a8d'),'nolimit':_0x3fcd81('0x1001')})[_0x3fcd81('0x1714')]['then'](function(_0x30c8a2){const _0x1eb7eb=_0x3fcd81;_0x14bd0c['pauses']=_0x30c8a2[_0x1eb7eb('0x25df')]||[];})[_0x3fcd81('0x2788')](function(){const _0x5be288=_0x3fcd81;return _0x3a4da5['userProfileSection'][_0x5be288('0x1335')]({'userProfileId':_0x14bd0c[_0x5be288('0x9cb')]['userProfileId'],'sectionId':0x3ed})[_0x5be288('0x1714')];})[_0x3fcd81('0x2788')](function(_0x5d519f){const _0x2c69e=_0x3fcd81,_0x29a8f6=_0x5d519f&&_0x5d519f['rows']?_0x5d519f['rows'][0x0]:null;if(!_0x29a8f6)_0x14bd0c[_0x2c69e('0x225d')]=[];else{if(!_0x29a8f6[_0x2c69e('0x1c0a')])return _0x3a4da5['userProfileResource'][_0x2c69e('0x1335')]({'sectionId':_0x29a8f6['id']})[_0x2c69e('0x1714')][_0x2c69e('0x2788')](function(_0x4b6722){const _0x374413=_0x2c69e,_0x24e5aa=_0x283545()[_0x374413('0x155d')](_0x4b6722[_0x374413('0x25df')],function(_0xbfe2a8){const _0x2b9754=_0x374413;return _0x283545()[_0x2b9754('0x20e8')](_0x14bd0c[_0x2b9754('0x225d')],{'id':_0xbfe2a8['resourceId']});});_0x14bd0c[_0x374413('0x225d')][_0x374413('0x1534')](function(_0x4edd0c){const _0x2ebf8d=_0x374413;!_0x283545()['some'](_0x24e5aa,['id',_0x4edd0c['id']])&&(_0x4edd0c['canSelect']=![]),_0x24e5aa[_0x2ebf8d('0x13e3')](_0x4edd0c);}),_0x14bd0c['pauses']=_0x24e5aa;});}})[_0x3fcd81('0x1cb5')](function(_0x46f0d1){const _0xed19=_0x3fcd81;_0x16e40d[_0xed19('0x5e8')]({'title':_0x46f0d1['status']?_0xed19('0x15d1')+_0x46f0d1[_0xed19('0x1b51')]+_0xed19('0x1b0b')+_0x46f0d1[_0xed19('0x22ce')]:_0xed19('0x7d9'),'msg':_0x46f0d1[_0xed19('0x11fc')]?JSON[_0xed19('0x1be0')](_0x46f0d1[_0xed19('0x11fc')]):_0x46f0d1['toString']()});});function _0x32b0c2(){const _0x16442a=_0x3fcd81;_0x14bd0c[_0x16442a('0x25be')]=[],_0x3a4da5[_0x16442a('0x15')][_0x16442a('0xbd0')](_0x14bd0c[_0x16442a('0x15')])['$promise'][_0x16442a('0x2788')](function(_0x124fd3){const _0x75edea=_0x16442a;_0x14bd0c['whatsappAccounts'][_0x75edea('0xc51')](_0x124fd3['toJSON']()),_0x16e40d[_0x75edea('0x173b')]({'title':_0x75edea('0x1d06'),'msg':_0x14bd0c[_0x75edea('0x15')][_0x75edea('0x1a8d')]?_0x14bd0c[_0x75edea('0x15')]['name']+_0x75edea('0x1e4a'):''}),_0x5a167e(_0x124fd3);})['catch'](function(_0x2b48d9){const _0x3d9601=_0x16442a;if(_0x2b48d9['data']&&_0x2b48d9[_0x3d9601('0x11fc')][_0x3d9601('0x25be')]&&_0x2b48d9[_0x3d9601('0x11fc')][_0x3d9601('0x25be')][_0x3d9601('0x2566')]){_0x14bd0c[_0x3d9601('0x25be')]=_0x2b48d9['data']['errors']||[{'message':_0x2b48d9[_0x3d9601('0x17df')](),'type':_0x3d9601('0x1076')}];for(let _0x36f613=0x0;_0x36f613<_0x2b48d9[_0x3d9601('0x11fc')]['errors']['length'];_0x36f613+=0x1){_0x16e40d[_0x3d9601('0x5e8')]({'title':_0x2b48d9[_0x3d9601('0x11fc')][_0x3d9601('0x25be')][_0x36f613]['type'],'msg':_0x2b48d9[_0x3d9601('0x11fc')][_0x3d9601('0x25be')][_0x36f613][_0x3d9601('0x15e2')]});}}else _0x16e40d[_0x3d9601('0x5e8')]({'title':_0x2b48d9['status']?_0x3d9601('0x15d1')+_0x2b48d9[_0x3d9601('0x1b51')]+_0x3d9601('0x1b0b')+_0x2b48d9['statusText']:'api.whatsappAccount.save','msg':_0x2b48d9[_0x3d9601('0x11fc')]?JSON[_0x3d9601('0x1be0')](_0x2b48d9[_0x3d9601('0x11fc')][_0x3d9601('0x15e2')]):_0x2b48d9[_0x3d9601('0x17df')]()});});}function _0x1e7071(){const _0x2f6a9b=_0x3fcd81;_0x14bd0c['errors']=[],_0x3a4da5[_0x2f6a9b('0x15')]['update']({'id':_0x14bd0c['whatsappAccount']['id']},_0x14bd0c['whatsappAccount'])[_0x2f6a9b('0x1714')]['then'](function(_0xf42c47){const _0x2beb02=_0x2f6a9b,_0x2ebf2d=_0x283545()['find'](_0x14bd0c[_0x2beb02('0xa47')],{'id':_0xf42c47['id']});_0x2ebf2d&&_0x283545()[_0x2beb02('0x2503')](_0x2ebf2d,_0x283545()[_0x2beb02('0x41b')](_0xf42c47['toJSON'](),_0x283545()[_0x2beb02('0x2163')](_0x2ebf2d))),_0x16e40d[_0x2beb02('0x173b')]({'title':_0x2beb02('0x2319'),'msg':_0x14bd0c[_0x2beb02('0x15')][_0x2beb02('0x1a8d')]?_0x14bd0c[_0x2beb02('0x15')]['name']+_0x2beb02('0x24cf'):''}),_0x5a167e(_0xf42c47);})[_0x2f6a9b('0x1cb5')](function(_0x2e9eb3){const _0x1c40ed=_0x2f6a9b;if(_0x2e9eb3['data']&&_0x2e9eb3[_0x1c40ed('0x11fc')]['errors']&&_0x2e9eb3[_0x1c40ed('0x11fc')]['errors'][_0x1c40ed('0x2566')]){_0x14bd0c[_0x1c40ed('0x25be')]=_0x2e9eb3[_0x1c40ed('0x11fc')]['errors']||[{'message':_0x2e9eb3[_0x1c40ed('0x17df')](),'type':_0x1c40ed('0x200a')}];for(let _0x509575=0x0;_0x509575<_0x2e9eb3['data'][_0x1c40ed('0x25be')][_0x1c40ed('0x2566')];_0x509575++){_0x16e40d[_0x1c40ed('0x5e8')]({'title':_0x2e9eb3[_0x1c40ed('0x11fc')]['errors'][_0x509575][_0x1c40ed('0x1d7')],'msg':_0x2e9eb3[_0x1c40ed('0x11fc')]['errors'][_0x509575][_0x1c40ed('0x15e2')]});}}else _0x16e40d[_0x1c40ed('0x5e8')]({'title':_0x2e9eb3[_0x1c40ed('0x1b51')]?_0x1c40ed('0x15d1')+_0x2e9eb3[_0x1c40ed('0x1b51')]+_0x1c40ed('0x1b0b')+_0x2e9eb3[_0x1c40ed('0x22ce')]:_0x1c40ed('0x200a'),'msg':_0x2e9eb3[_0x1c40ed('0x11fc')]?JSON[_0x1c40ed('0x1be0')](_0x2e9eb3['data']['message']):_0x2e9eb3['toString']()});});}function _0x21b517(_0x4e0873){const _0x2cf29f=_0x3fcd81;_0x14bd0c[_0x2cf29f('0x25be')]=[];const _0x2f4ee7=_0x471eaf[_0x2cf29f('0x112e')]()[_0x2cf29f('0x14e4')](_0x2cf29f('0x458'))['content']('The\x20whatsappAccount\x20will\x20be\x20deleted.')[_0x2cf29f('0x10bc')](_0x2cf29f('0x855'))['ok'](_0x2cf29f('0x2786'))[_0x2cf29f('0x1801')](_0x2cf29f('0x1481'))['targetEvent'](_0x4e0873);_0x471eaf['show'](_0x2f4ee7)[_0x2cf29f('0x2788')](function(){const _0x58059c=_0x2cf29f;_0x3a4da5['whatsappAccount'][_0x58059c('0x17c4')]({'id':_0x14bd0c['whatsappAccount']['id']})[_0x58059c('0x1714')][_0x58059c('0x2788')](function(){const _0x1f78e1=_0x58059c;_0x283545()['remove'](_0x14bd0c['whatsappAccounts'],{'id':_0x14bd0c[_0x1f78e1('0x15')]['id']}),_0x16e40d[_0x1f78e1('0x173b')]({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x14bd0c[_0x1f78e1('0x15')][_0x1f78e1('0x1a8d')]||_0x1f78e1('0x15'))+'\x20has\x20been\x20deleted!'}),_0x5a167e(_0x14bd0c['whatsappAccount']);})[_0x58059c('0x1cb5')](function(_0x298e88){const _0x55bff2=_0x58059c;if(_0x298e88[_0x55bff2('0x11fc')]&&_0x298e88[_0x55bff2('0x11fc')][_0x55bff2('0x25be')]&&_0x298e88[_0x55bff2('0x11fc')][_0x55bff2('0x25be')][_0x55bff2('0x2566')]){_0x14bd0c['errors']=_0x298e88['data'][_0x55bff2('0x25be')]||[{'message':_0x298e88[_0x55bff2('0x17df')](),'type':_0x55bff2('0x2508')}];for(let _0x2a74be=0x0;_0x2a74be<_0x298e88['data'][_0x55bff2('0x25be')][_0x55bff2('0x2566')];_0x2a74be++){_0x16e40d['error']({'title':_0x298e88[_0x55bff2('0x11fc')][_0x55bff2('0x25be')][_0x2a74be][_0x55bff2('0x1d7')],'msg':_0x298e88[_0x55bff2('0x11fc')][_0x55bff2('0x25be')][_0x2a74be]['message']});}}else _0x16e40d[_0x55bff2('0x5e8')]({'title':_0x298e88[_0x55bff2('0x1b51')]?_0x55bff2('0x15d1')+_0x298e88['status']+_0x55bff2('0x1b0b')+_0x298e88[_0x55bff2('0x22ce')]:'api.whatsappAccount.delete','msg':_0x298e88['data']?JSON[_0x55bff2('0x1be0')](_0x298e88[_0x55bff2('0x11fc')][_0x55bff2('0x15e2')]):_0x298e88[_0x55bff2('0x15e2')]||_0x298e88['toString']()});});},function(){});}function _0x10e507(_0x322c00){return _0x322c00===null?undefined:new Date(_0x322c00);}function _0x5a167e(_0x32c9ba){_0x471eaf['hide'](_0x32c9ba);}}const _0x5672ce=_0x5561d0,_0x4da732=_0x18dd13['p']+_0x34e79e('0x36d'),_0x18a7bd=_0x18dd13['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html',_0x16d3d4=_0x18dd13['p']+_0x34e79e('0x4d8'),_0x43346a=_0x18dd13['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html',_0x377a77=_0x18dd13['p']+_0x34e79e('0x202'),_0x5b273c=_0x18dd13['p']+_0x34e79e('0x7ef'),_0x5612e1=_0x18dd13['p']+_0x34e79e('0x870'),_0x10c0a6=_0x18dd13['p']+_0x34e79e('0xae2'),_0x15e3c2=_0x18dd13['p']+_0x34e79e('0x61e'),_0x449fc0=_0x18dd13['p']+_0x34e79e('0x22fe'),_0x2e141=_0x18dd13['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html',_0x130cca=_0x18dd13['p']+_0x34e79e('0x239e');_0x384584[_0x34e79e('0x2d9')]=[_0x34e79e('0x519'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0xd57'),_0x34e79e('0x1b04')];const _0x300615={'agent':_0x4da732,'amazonlex':_0x18a7bd,'autoreply':_0x16d3d4,'close':_0x43346a,'dialogflow':_0x377a77,'gotoif':_0x5b273c,'gotop':_0x5612e1,'interval':_0x10c0a6,'noop':_0x15e3c2,'queue':_0x449fc0,'system':_0x2e141,'tag':_0x130cca};function _0x384584(_0x2a5161,_0x2afd3c,_0x5de75f,_0x104da4,_0x505f3b){const _0x65457a=_0x34e79e,_0x1df5f6=this;_0x1df5f6[_0x65457a('0x9cb')]=_0x505f3b[_0x65457a('0x24cc')](),_0x1df5f6[_0x65457a('0x15')]={},_0x1df5f6[_0x65457a('0x24d7')]={'count':0x0,'rows':[]},_0x1df5f6[_0x65457a('0x14c')]=[],_0x1df5f6[_0x65457a('0xe28')],_0x1df5f6['query']={'sort':_0x65457a('0x155b')},_0x1df5f6[_0x65457a('0x105')]=_0x283545()[_0x65457a('0x9')](_0x283545()[_0x65457a('0x8ce')]([{'app':'Interval','appType':_0x65457a('0x2630'),'types':[_0x65457a('0xc8f'),'custom','list'],'fields':[],'isApp':![]},{'app':_0x65457a('0x18dd'),'appType':_0x65457a('0x18dd'),'type':_0x65457a('0x18dd'),'icon':'icon-apps','interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x65457a('0x165a'),'name':_0x65457a('0x49'),'type':_0x65457a('0x16db'),'param':0x0}]},{'app':_0x65457a('0xe81'),'appType':'system','type':_0x65457a('0xe81'),'icon':_0x65457a('0x21ff'),'interval':_0x65457a('0x2191'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x65457a('0xf76'),'field':{'name':_0x65457a('0xa72'),'key':_0x65457a('0x1a8d')},'route':_0x65457a('0xa72'),'filters':{'fields':_0x65457a('0x1338'),'sort':_0x65457a('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x65457a('0x1677'),'name':_0x65457a('0x28d'),'type':_0x65457a('0x16db'),'required':!![],'param':0x0},{'title':_0x65457a('0x158c'),'name':'variable','type':_0x65457a('0x2519'),'values':_0x65457a('0xf76'),'value':'variable.name','option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x65457a('0x1598'),'appType':_0x65457a('0x1598'),'type':_0x65457a('0x1500'),'icon':'icon-apps','interval':_0x65457a('0x2191'),'isApp':!![],'fields':[{'title':_0x65457a('0x14ef'),'name':'priority','type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x65457a('0x1e01'),'appType':_0x65457a('0x1e01'),'type':_0x65457a('0x1e01'),'icon':'icon-apps','interval':_0x65457a('0x2191'),'isApp':!![],'fields':[{'title':_0x65457a('0x1388'),'name':'condition','type':'text','required':!![],'param':0x0},{'title':'truepriority','name':'truepriority','type':_0x65457a('0x272c'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x65457a('0x1474'),'type':_0x65457a('0x272c'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x65457a('0x1ab4'),'appType':_0x65457a('0x1ab4'),'foreignKey':_0x65457a('0xcef'),'type':_0x65457a('0x1ab4'),'icon':'icon-apps','interval':_0x65457a('0x2191'),'isApp':!![],'extraApi':[{'name':_0x65457a('0x283e'),'field':{'name':_0x65457a('0x1ab4'),'key':_0x65457a('0x1a8d')},'route':'whatsappQueue','filters':{'fields':_0x65457a('0xafa'),'sort':'name','nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':'Queue','name':_0x65457a('0x1ab4'),'type':_0x65457a('0x2519'),'values':_0x65457a('0x283e'),'value':'queue.name','option':_0x65457a('0x158'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x65457a('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x65457a('0x188b'),'appType':_0x65457a('0x188b'),'type':'agent','foreignKey':_0x65457a('0x3bb'),'icon':_0x65457a('0x21ff'),'interval':_0x65457a('0x2191'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x65457a('0x188b'),'key':_0x65457a('0x1a8d')},'route':_0x65457a('0x1e6a'),'filters':{'fields':_0x65457a('0x1338'),'sort':_0x65457a('0x1a8d'),'nolimit':!![],'role':_0x65457a('0x188b')},'permissions':{'section':0xca}}],'fields':[{'title':_0x65457a('0x262d'),'name':_0x65457a('0x188b'),'type':_0x65457a('0x2519'),'values':_0x65457a('0x1713'),'value':_0x65457a('0x156f'),'option':_0x65457a('0x156f'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x65457a('0x24e4'),'type':_0x65457a('0x272c'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x65457a('0x808'),'appType':_0x65457a('0x808'),'type':_0x65457a('0x808'),'icon':_0x65457a('0x21ff'),'interval':_0x65457a('0x2191'),'isApp':!![],'fields':[{'title':_0x65457a('0x5fd'),'name':_0x65457a('0x5fd'),'type':_0x65457a('0x983'),'defaultValue':'1','values':[{'option':_0x65457a('0xa18'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x65457a('0xc39'),'name':_0x65457a('0x16db'),'type':_0x65457a('0x1215'),'required':!![],'param':0x1}]},{'app':_0x65457a('0x69f'),'appType':_0x65457a('0x69f'),'type':_0x65457a('0x69f'),'icon':_0x65457a('0x21ff'),'interval':_0x65457a('0x2191'),'isApp':!![],'fields':[{'title':_0x65457a('0x1e89'),'name':_0x65457a('0x1db2'),'type':_0x65457a('0x16db'),'required':!![],'param':0x0}]},{'app':_0x65457a('0x1764'),'appType':_0x65457a('0x1764'),'type':_0x65457a('0x1764'),'foreignKey':'TagId','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x65457a('0xe45'),'field':{'name':_0x65457a('0x1764'),'key':'name'},'route':_0x65457a('0x1764'),'filters':{'fields':_0x65457a('0x1338'),'sort':_0x65457a('0x1a8d'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x65457a('0x251d'),'name':_0x65457a('0x1764'),'type':_0x65457a('0x2519'),'values':_0x65457a('0xe45'),'value':_0x65457a('0x282c'),'option':'tag.name','required':!![],'param':0x0}]},{'app':_0x65457a('0x5e1'),'appType':_0x65457a('0x5e1'),'type':'dialogflow','icon':_0x65457a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x65457a('0x127f'),'name':_0x65457a('0x234b'),'type':'text','required':!![],'param':0x0},{'title':'language','name':'language','type':'select','defaultValue':'\x27en\x27','values':[{'option':_0x65457a('0x42b'),'value':_0x65457a('0x1570')},{'option':'English','value':_0x65457a('0xeca')},{'option':_0x65457a('0x1072'),'value':'\x27de\x27'},{'option':'Italian','value':_0x65457a('0x26d0')},{'option':_0x65457a('0x2488'),'value':_0x65457a('0x1893')},{'option':_0x65457a('0xfd2'),'value':_0x65457a('0x33b')},{'option':_0x65457a('0x131e'),'value':_0x65457a('0x1b15')},{'option':'Japanese','value':_0x65457a('0x29')},{'option':_0x65457a('0x166c'),'value':'\x27ko\x27'},{'option':_0x65457a('0x805'),'value':_0x65457a('0x17a8')},{'option':'Norwegian','value':_0x65457a('0x2363')},{'option':_0x65457a('0x168e'),'value':'\x27pt\x27'},{'option':'Portuguese\x20(Nrazilian)','value':_0x65457a('0x7a3')},{'option':_0x65457a('0x1319'),'value':_0x65457a('0x6cb')},{'option':'Swedish','value':'\x27sv\x27'},{'option':_0x65457a('0x97b'),'value':_0x65457a('0x10d9')},{'option':'Ukrainian','value':_0x65457a('0x1961')},{'option':'Chinese\x20(Simplified)','value':'\x27zh-CN\x27'},{'option':_0x65457a('0x13e6'),'value':_0x65457a('0x553')},{'option':_0x65457a('0x1b70'),'value':_0x65457a('0x464')}],'required':!![],'param':0x1},{'title':_0x65457a('0xf50'),'name':_0x65457a('0xf50'),'type':_0x65457a('0x1215'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x65457a('0x137a'),'appType':_0x65457a('0x137a'),'type':_0x65457a('0x137a'),'icon':_0x65457a('0x21ff'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x65457a('0x27f2'),'name':_0x65457a('0x27f2'),'type':_0x65457a('0x16db'),'required':!![],'param':0x0},{'title':_0x65457a('0x1b58'),'name':_0x65457a('0x1b58'),'type':_0x65457a('0x16db'),'required':!![],'param':0x1},{'title':_0x65457a('0xb70'),'name':_0x65457a('0xb70'),'type':'select','defaultValue':'\x27us-east-1\x27','values':[{'option':_0x65457a('0x98c'),'value':'\x27us-east-1\x27'},{'option':_0x65457a('0x7cf'),'value':_0x65457a('0x2221')},{'option':'EU\x20(Ireland)','value':_0x65457a('0x150a')},{'option':_0x65457a('0x1172'),'value':_0x65457a('0xbb6')}],'required':!![],'param':0x2},{'title':_0x65457a('0x4eb'),'name':_0x65457a('0x4eb'),'type':_0x65457a('0x16db'),'required':!![],'param':0x3},{'title':_0x65457a('0xf50'),'name':_0x65457a('0xf50'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x1df5f6[_0x65457a('0x4b2')]={'group':{'name':_0x65457a('0x134b'),'pull':_0x65457a('0x1b8')},'animation':0x64,'sort':![]},_0x1df5f6[_0x65457a('0x26de')]={'group':{'name':_0x65457a('0x2268'),'put':_0x65457a('0x134b')},'animation':0x64,'onAdd':function(_0x77eef2){const _0x1207d7=_0x65457a;_0x2189e0(_0x77eef2,_0x77eef2[_0x1207d7('0x7da')]);},'onSort':function(){_0x18bee8();}},_0x1df5f6[_0x65457a('0x24eb')]=_0x4533ed,_0x1df5f6[_0x65457a('0x16a')]=_0x26ed65,_0x1df5f6[_0x65457a('0x27f8')]=_0x43d987,_0x1df5f6[_0x65457a('0x1dc4')]=_0x2189e0,_0x1df5f6[_0x65457a('0x10ce')]=_0x41100f,_0x1df5f6[_0x65457a('0x18f3')]=_0x5b7e1d,_0x1df5f6[_0x65457a('0xee9')]=_0x2de8e8,_0x1df5f6[_0x65457a('0xa9c')]=_0x18bee8,_0x1df5f6[_0x65457a('0x1963')]=_0x2b0118;function _0x4533ed(_0x8f3a00,_0x58f1e5){const _0xc7a83a=_0x65457a;_0x1df5f6[_0xc7a83a('0x15')]=_0x8f3a00,_0x1df5f6[_0xc7a83a('0xe28')]=typeof _0x58f1e5!==_0xc7a83a('0xedb')?_0x58f1e5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1df5f6[_0xc7a83a('0x26de')][_0xc7a83a('0x1112')]=!_0x1df5f6[_0xc7a83a('0xe28')]['canEdit']?!![]:![],_0x1df5f6['query']['id']=_0x8f3a00['id'],_0x1df5f6['query']['isApp']=!![],_0x1df5f6[_0xc7a83a('0x135a')][_0xc7a83a('0xd18')]=!![],_0x1df5f6[_0xc7a83a('0x27f8')](),_0x1df5f6['getIntervals']();}function _0x26ed65(_0x55396e,_0x5b31e6,_0x541889){const _0x25db26=_0x65457a,_0x41debe=_0x2afd3c[_0x25db26('0x112e')]()[_0x25db26('0x14e4')](_0x25db26('0xbe7'))[_0x25db26('0x93e')](_0x25db26('0x1670')+_0x55396e[_0x25db26('0x8a5')]+'
'+_0x25db26('0x27c7'))[_0x25db26('0x10bc')]('delete\x20application')[_0x25db26('0x24d0')](_0x541889)['ok']('OK')[_0x25db26('0x1801')]('CANCEL');_0x2afd3c[_0x25db26('0x2fa')](_0x41debe)[_0x25db26('0x2788')](function(){const _0x22daf2=_0x25db26;_0x1df5f6[_0x22daf2('0x24d7')]['rows'][_0x22daf2('0x722')](_0x5b31e6,0x1),_0x18bee8();},function(){console['log']('CANCEL');});}function _0x2189e0(_0x1b77a0,_0x23e5b7){const _0x14ed7a=_0x65457a;if(_0x1df5f6[_0x14ed7a('0x24d7')][_0x14ed7a('0x25df')][_0x14ed7a('0x2566')]){const _0x4dc366=_0x1df5f6[_0x14ed7a('0x24d7')][_0x14ed7a('0x25df')][_0x23e5b7]?_0x1df5f6[_0x14ed7a('0x24d7')]['rows'][_0x23e5b7]:_0x1df5f6[_0x14ed7a('0x24d7')]['rows'][0x0],_0x320fa0=(_0x4dc366['appType']||_0x4dc366[_0x14ed7a('0x8a5')])['toLowerCase']();_0x2afd3c['show']({'controller':'EditWhatsappAccountApp'+_0x320fa0+_0x14ed7a('0x100d'),'controllerAs':'vm','templateUrl':_0x300615[_0x320fa0],'parent':angular[_0x14ed7a('0x16b1')](_0x5de75f[_0x14ed7a('0x945')]),'targetEvent':_0x1b77a0,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x4dc366,'whatsappAccount':_0x1df5f6[_0x14ed7a('0x15')],'crudPermissions':_0x1df5f6[_0x14ed7a('0xe28')]}})[_0x14ed7a('0x2788')](function(_0x335494){const _0x3f405a=_0x14ed7a;_0x335494&&(_0x335494['id']?_0x1df5f6['whatsappAccountApps']['rows'][_0x23e5b7]=_0x335494:_0x1df5f6[_0x3f405a('0x24d7')][_0x3f405a('0x25df')][_0x3f405a('0x722')](_0x23e5b7,0x0,_0x335494),_0x18bee8());})[_0x14ed7a('0x1cb5')](function(_0x26d08d){const _0x400fa1=_0x14ed7a;_0x26d08d&&_0x104da4[_0x400fa1('0x5e8')]({'title':_0x26d08d[_0x400fa1('0x1b51')]?'API:'+_0x26d08d[_0x400fa1('0x1b51')]+'\x20-\x20'+_0x26d08d['statusText']:_0x400fa1('0x239b'),'msg':_0x26d08d['data']?JSON[_0x400fa1('0x1be0')](_0x26d08d[_0x400fa1('0x11fc')]):_0x26d08d[_0x400fa1('0x17df')]()});});}}function _0x41100f(_0x440f99,_0x260550){const _0x534161=_0x65457a;if(_0x1df5f6[_0x534161('0x24d7')][_0x534161('0x25df')][_0x534161('0x2566')]){const _0x3e7ede=_0x1df5f6[_0x534161('0x24d7')][_0x534161('0x25df')][_0x260550]?_0x1df5f6['whatsappAccountApps']['rows'][_0x260550]:_0x1df5f6['whatsappAccountApps'][_0x534161('0x25df')][0x0];_0x2afd3c[_0x534161('0x2fa')]({'controller':_0x534161('0x17a9'),'controllerAs':'vm','templateUrl':_0x10c0a6,'parent':angular['element'](_0x5de75f[_0x534161('0x945')]),'targetEvent':_0x440f99,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3e7ede[_0x534161('0x2630')],'IntervalId':_0x3e7ede[_0x534161('0x20d0')],'application':!![]},'intervals':[],'crudPermissions':_0x1df5f6['crudPermissions']}})[_0x534161('0x2788')](function(_0x49e099){const _0x2ecb01=_0x534161;_0x49e099&&(_0x3e7ede[_0x2ecb01('0x2630')]=_0x49e099[_0x2ecb01('0x2630')]||_0x2ecb01('0x2191'),_0x3e7ede[_0x2ecb01('0x20d0')]=_0x49e099['IntervalId']||null,_0x18bee8());});}}function _0x18bee8(){const _0x5dcf71=_0x65457a;let _0x1b493c=0x1,_0x559142=[];for(let _0x2ff6bd=0x0;_0x2ff6bd<_0x1df5f6[_0x5dcf71('0x24d7')][_0x5dcf71('0x25df')][_0x5dcf71('0x2566')];_0x2ff6bd++){const _0x488a4b=_0x1df5f6[_0x5dcf71('0x24d7')][_0x5dcf71('0x25df')][_0x2ff6bd],_0x8539ff=[],_0x10517c=[];_0x488a4b[_0x5dcf71('0xec5')]=_0x488a4b[_0x5dcf71('0x2630')]!==_0x5dcf71('0x2191')?[_0x488a4b[_0x5dcf71('0x2630')]]:_0x488a4b['IntervalId']?_0x283545()[_0x5dcf71('0x155d')](_0x283545()['filter'](_0x1df5f6[_0x5dcf71('0xec5')][_0x5dcf71('0x25df')],{'IntervalId':_0x488a4b[_0x5dcf71('0x20d0')]}),'interval'):[],_0x488a4b[_0x5dcf71('0x1f3b')]=_0x1df5f6[_0x5dcf71('0x15')][_0x5dcf71('0x1f3b')],_0x488a4b[_0x5dcf71('0x1d6f')]=_0x1df5f6[_0x5dcf71('0x15')][_0x5dcf71('0x1d6f')],_0x488a4b[_0x5dcf71('0x1d7')]&&(_0x488a4b['type']=_0x488a4b[_0x5dcf71('0x1d7')]['toLowerCase']()),_0x488a4b['priority']=_0x8539ff[_0x5dcf71('0x2566')]?_0x283545()['last'](_0x8539ff)[_0x5dcf71('0x155b')]+0x1:_0x1b493c,_0x1b493c=(_0x10517c[_0x5dcf71('0x2566')]?_0x283545()[_0x5dcf71('0x1d39')](_0x10517c)[_0x5dcf71('0x155b')]:_0x488a4b[_0x5dcf71('0x155b')])+0x1,_0x559142=_0x283545()[_0x5dcf71('0x1282')](_0x559142,_0x8539ff,[_0x488a4b],_0x10517c);}_0x2a5161[_0x5dcf71('0x15')]['addApplications']({'id':_0x1df5f6[_0x5dcf71('0x15')]['id']},_0x283545()[_0x5dcf71('0x8ce')](_0x559142,_0x5dcf71('0x155b')))[_0x5dcf71('0x1714')][_0x5dcf71('0x2788')](function(_0x14b77b){const _0x10e736=_0x5dcf71;_0x1df5f6['whatsappAccountApps'][_0x10e736('0x25df')]=_0x14b77b['rows'];})[_0x5dcf71('0x1cb5')](function(_0x598490){const _0x2b1af0=_0x5dcf71;console[_0x2b1af0('0x5e8')](_0x598490);});}function _0x375cb5(_0x20840c){_0x1df5f6['whatsappAccountApps']=_0x20840c||{'count':0x0,'rows':[]};}function _0x2b0118(){const _0x40585d=_0x65457a;return _0x2a5161[_0x40585d('0x2630')][_0x40585d('0x1335')]({'fields':_0x40585d('0x12c6')})['$promise'][_0x40585d('0x2788')](function(_0x5e63bb){const _0xf1c2a2=_0x40585d;_0x1df5f6[_0xf1c2a2('0xec5')]=_0x5e63bb;})[_0x40585d('0x1cb5')](function(_0x323219){const _0x5643e0=_0x40585d;console[_0x5643e0('0x5e8')](_0x323219);});}function _0x43d987(){const _0x2477ab=_0x65457a;_0x1df5f6[_0x2477ab('0x1808')]=_0x2a5161['whatsappAccount'][_0x2477ab('0x26b0')](_0x1df5f6[_0x2477ab('0x135a')],_0x375cb5)['$promise'];}function _0x5b7e1d(_0x1cb9c0){const _0xe4ea54=_0x65457a;_0x283545()[_0xe4ea54('0x1a90')](_0x1df5f6['whatsappAccountApps'][_0xe4ea54('0x25df')],{'id':_0x1cb9c0['id']}),_0x18bee8(),_0x104da4[_0xe4ea54('0x173b')]({'title':_0xe4ea54('0x170b'),'msg':_0x1cb9c0[_0xe4ea54('0x8a5')]?_0x1cb9c0[_0xe4ea54('0x8a5')]+_0xe4ea54('0x14d4'):''});}function _0x2de8e8(_0x10490c){const _0x418f0a=_0x65457a,_0x434319=_0x2afd3c[_0x418f0a('0x112e')]()[_0x418f0a('0x14e4')](_0x418f0a('0x191c'))['htmlContent'](_0x418f0a('0x1670')+_0x1df5f6[_0x418f0a('0x14c')][_0x418f0a('0x2566')]+'\x20selected
'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20applications')[_0x418f0a('0x24d0')](_0x10490c)['ok']('OK')['cancel']('CANCEL');_0x2afd3c[_0x418f0a('0x2fa')](_0x434319)[_0x418f0a('0x2788')](function(){const _0x154ce=_0x418f0a;_0x1df5f6[_0x154ce('0x14c')][_0x154ce('0x1534')](function(_0x35860d){const _0x499d48=_0x154ce;_0x283545()[_0x499d48('0x1a90')](_0x1df5f6[_0x499d48('0x24d7')][_0x499d48('0x25df')],{'id':_0x35860d['id']});}),_0x1df5f6['selectedWhatsappAccountApps']=[],_0x18bee8();});}}const _0x3d9f71=_0x384584;_0x1a5bcc[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x15'),_0x34e79e('0xa47'),_0x34e79e('0x548'),_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1a5bcc(_0x538389,_0x2bcf80,_0xc3a4a3,_0x1cfb9a,_0x40983c,_0x16f107,_0x327c2f,_0xdb3c66,_0x26269e,_0x14fec2){const _0x44c689=_0x34e79e,_0x19b4af=this;_0x19b4af[_0x44c689('0x9cb')]=_0x26269e['getCurrentUser'](),_0x19b4af['whatsappAccount']=_0x40983c,_0x19b4af[_0x44c689('0xe28')]=_0x14fec2,_0x19b4af['realtime']=_0x327c2f,_0x19b4af['items']=[],_0x19b4af[_0x44c689('0x73d')]=[],_0x19b4af['selectedItems']=[],_0x19b4af[_0x44c689('0x12d9')]=[],_0x19b4af[_0x44c689('0xd0d')]=[],_0x19b4af['pendingChanges']=![],_0x19b4af[_0x44c689('0x122e')]=_0x5464cf,_0x19b4af[_0x44c689('0x1f8d')]=_0x3d8571,_0x19b4af[_0x44c689('0xca7')]=_0x41c569,_0x19b4af[_0x44c689('0x121')]={'readOnly':!_0x19b4af[_0x44c689('0xe28')][_0x44c689('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x44c689('0x2831'),'line2':['name',_0x44c689('0x2838')],'line3':'','labelAll':_0xdb3c66[_0x44c689('0x1b11')](_0x44c689('0x7b0')),'labelSelected':_0xdb3c66[_0x44c689('0x1b11')](_0x44c689('0x1ea8')),'transferCallback':function(){const _0xa5be5d=_0x44c689,_0x2aa370=_0x283545()[_0xa5be5d('0x12d1')](_0x19b4af[_0xa5be5d('0xd0d')],_0x19b4af['selectedItems'],'id');_0x19b4af[_0xa5be5d('0x2677')]=_0x283545()[_0xa5be5d('0x213d')](_0x2aa370)?![]:!![];}};function _0x5464cf(){const _0x3d41d7=_0x44c689;return _0x26269e[_0x3d41d7('0x1516')]('admin')?_0x306628()[_0x3d41d7('0x1cb5')](function(_0x364cdb){const _0x390143=_0x3d41d7;_0xc3a4a3[_0x390143('0x5e8')]({'title':_0x364cdb[_0x390143('0x1b51')]?_0x390143('0x15d1')+_0x364cdb[_0x390143('0x1b51')]+_0x390143('0x1b0b')+_0x364cdb[_0x390143('0x22ce')]:_0x390143('0xd90'),'msg':_0x364cdb['status']?JSON[_0x390143('0x1be0')](_0x364cdb[_0x390143('0x11fc')]):_0x364cdb['toString']()});}):_0x55154e()[_0x3d41d7('0x2788')](function(_0x1478bc){const _0x527907=_0x3d41d7;return _0x19b4af[_0x527907('0xb13')]=_0x1478bc,_0x306628();})[_0x3d41d7('0x1cb5')](function(_0x44a974){const _0x12fff3=_0x3d41d7;_0xc3a4a3[_0x12fff3('0x5e8')]({'title':_0x44a974[_0x12fff3('0x1b51')]?'API:'+_0x44a974[_0x12fff3('0x1b51')]+_0x12fff3('0x1b0b')+_0x44a974[_0x12fff3('0x22ce')]:_0x12fff3('0xd90'),'msg':_0x44a974[_0x12fff3('0x1b51')]?JSON[_0x12fff3('0x1be0')](_0x44a974[_0x12fff3('0x11fc')]):_0x44a974[_0x12fff3('0x17df')]()});});}function _0x55154e(){return _0x2bcf80(function(_0x5a926b,_0x309bbb){const _0x64e214=a0_0x14e7;_0x1cfb9a[_0x64e214('0xec9')][_0x64e214('0x1335')]({'userProfileId':_0x19b4af[_0x64e214('0x9cb')]['userProfileId'],'name':'Agents'})[_0x64e214('0x1714')][_0x64e214('0x2788')](function(_0xcc222){const _0x2f6829=_0x64e214,_0x35184e=_0xcc222&&_0xcc222[_0x2f6829('0x25df')]?_0xcc222[_0x2f6829('0x25df')][0x0]:null;_0x5a926b(_0x35184e);})[_0x64e214('0x1cb5')](function(_0x1dc8f5){_0x309bbb(_0x1dc8f5);});});}function _0x306628(){return _0x2bcf80(function(_0x3fefe7,_0x5d6618){const _0x2ef51d=a0_0x14e7;return _0x59a58a()[_0x2ef51d('0x2788')](function(_0x503fc1){const _0x46acb0=_0x2ef51d;return _0x19b4af[_0x46acb0('0x117b')]=_0x503fc1[_0x46acb0('0x25df')]?_0x503fc1['rows']:[],_0x26269e[_0x46acb0('0x1516')](_0x46acb0('0xe23'))?_0x503fc1:_0x19b4af[_0x46acb0('0xb13')]?_0x19b4af[_0x46acb0('0xb13')][_0x46acb0('0x1c0a')]?_0x503fc1:_0x145be1():null;})[_0x2ef51d('0x2788')](function(_0x2adf77){const _0xbda516=_0x2ef51d,_0x1442bf=_0x2adf77&&_0x2adf77[_0xbda516('0x25df')]?_0x2adf77[_0xbda516('0x25df')]:[];return _0x19b4af[_0xbda516('0x73d')]=_0x283545()[_0xbda516('0x155d')](_0x1442bf,function(_0x185f1d){const _0x412659=_0xbda516;return _0x283545()[_0x412659('0x20e8')](_0x19b4af[_0x412659('0x117b')],{'id':_0x26269e[_0x412659('0x1516')](_0x412659('0xe23'))||_0x19b4af[_0x412659('0xb13')][_0x412659('0x1c0a')]?_0x185f1d['id']:_0x185f1d[_0x412659('0x2707')]});}),_0x19b4af[_0xbda516('0x12d9')]=angular[_0xbda516('0x2669')](_0x19b4af[_0xbda516('0x73d')]),_0x19b4af['items']['forEach'](function(_0xa4c6cc){const _0x1b7eb9=_0xbda516,_0x23b912=_0x283545()[_0x1b7eb9('0x20e8')](_0x19b4af['allowedItems'],{'id':_0xa4c6cc['id']});_0x26269e['hasRole']('admin')?_0xa4c6cc[_0x1b7eb9('0x68d')]=!![]:_0xa4c6cc[_0x1b7eb9('0x68d')]=typeof _0x23b912!=='undefined'?!![]:![];}),_0x377a7e();})[_0x2ef51d('0x2788')](function(_0x295c6a){const _0xcee4bb=_0x2ef51d,_0x168b24=_0x295c6a&&_0x295c6a['rows']?_0x295c6a[_0xcee4bb('0x25df')]:[];_0x19b4af[_0xcee4bb('0x283f')]=_0x283545()[_0xcee4bb('0x155d')](_0x168b24,function(_0x3f71b4){const _0x3005cb=_0xcee4bb,_0x31c4a7=_0x283545()['find'](_0x19b4af[_0x3005cb('0x117b')],{'id':_0x3f71b4['id']});return _0x31c4a7[_0x3005cb('0x1ab')]=_0x3f71b4[_0x3005cb('0x23b9')]?_0x3005cb('0x1b9d')+_0x3f71b4['UserWhatsappAccount'][_0x3005cb('0x1ab')]:'',_0x31c4a7[_0x3005cb('0x2838')]=typeof _0x3f71b4[_0x3005cb('0x2838')]!==_0x3005cb('0xedb')?'<'+_0x3f71b4[_0x3005cb('0x2838')]+'>':'',_0x31c4a7;}),_0x19b4af[_0xcee4bb('0xd0d')]=angular[_0xcee4bb('0x2669')](_0x19b4af[_0xcee4bb('0x283f')]),_0x19b4af['dualMultiselectOptions'][_0xcee4bb('0x283f')]=_0x19b4af[_0xcee4bb('0x283f')],_0x19b4af[_0xcee4bb('0x121')][_0xcee4bb('0x117b')]=_0x283545()[_0xcee4bb('0x432')](_0x19b4af['allowedItems'],_0x19b4af[_0xcee4bb('0x121')][_0xcee4bb('0x283f')],'id'),_0x3fefe7();})[_0x2ef51d('0x1cb5')](function(_0x215456){_0x5d6618(_0x215456);});});}function _0x145be1(){return _0x2bcf80(function(_0x58803f,_0x58805a){const _0x1c3250=a0_0x14e7;return _0x1cfb9a['userProfileResource']['get']({'sectionId':_0x19b4af[_0x1c3250('0xb13')]['id'],'nolimit':!![]})['$promise'][_0x1c3250('0x2788')](function(_0x2d73bf){_0x58803f(_0x2d73bf);})[_0x1c3250('0x1cb5')](function(_0x31b05b){_0x58805a(_0x31b05b);});});}function _0x377a7e(){return _0x2bcf80(function(_0x4b1203,_0x1b0ba4){const _0x27b434=a0_0x14e7;return _0x1cfb9a[_0x27b434('0x15')][_0x27b434('0x19db')]({'id':_0x19b4af[_0x27b434('0x15')]['id'],'fields':_0x27b434('0x1d32'),'nolimit':!![],'role':'agent'})[_0x27b434('0x1714')][_0x27b434('0x2788')](function(_0x2e15d7){_0x4b1203(_0x2e15d7);})[_0x27b434('0x1cb5')](function(_0x35ff74){_0x1b0ba4(_0x35ff74);});});}function _0x59a58a(){return _0x2bcf80(function(_0x2596b9,_0x1664ae){const _0x2d8357=a0_0x14e7;return _0x1cfb9a[_0x2d8357('0x1e6a')][_0x2d8357('0x1335')]({'fields':_0x2d8357('0x1d32'),'nolimit':!![],'role':'agent'})['$promise'][_0x2d8357('0x2788')](function(_0x538fc7){_0x2596b9(_0x538fc7);})['catch'](function(_0x139d62){_0x1664ae(_0x139d62);});});}function _0x106437(_0x147e25){return _0x2bcf80(function(_0x34166a,_0x4be30c){const _0x1808cf=a0_0x14e7;_0x283545()['isEmpty'](_0x147e25)?_0x34166a():_0x1cfb9a[_0x1808cf('0x15')][_0x1808cf('0x588')]({'id':_0x19b4af[_0x1808cf('0x15')]['id'],'ids':_0x283545()[_0x1808cf('0x155d')](_0x147e25,'id')})[_0x1808cf('0x1714')][_0x1808cf('0x2788')](function(){_0x34166a();})[_0x1808cf('0x1cb5')](function(_0x561b0a){_0x4be30c(_0x561b0a);});});}function _0x3b80cf(_0x2a5b11){return _0x2bcf80(function(_0xc8df1b,_0x30d6d8){const _0x585ebd=a0_0x14e7;_0x283545()[_0x585ebd('0x213d')](_0x2a5b11)?_0xc8df1b():_0x1cfb9a[_0x585ebd('0x15')][_0x585ebd('0x1d72')]({'id':_0x19b4af[_0x585ebd('0x15')]['id'],'ids':_0x283545()[_0x585ebd('0x155d')](_0x2a5b11,'id')})[_0x585ebd('0x1714')][_0x585ebd('0x2788')](function(){_0xc8df1b();})[_0x585ebd('0x1cb5')](function(_0x41e242){_0x30d6d8(_0x41e242);});});}function _0x3d8571(){const _0x33efab=_0x44c689,_0x4b5473=_0x283545()[_0x33efab('0x432')](_0x19b4af['startingSelectedItems'],_0x19b4af[_0x33efab('0x283f')],'id'),_0x55d92f=_0x283545()['differenceBy'](_0x19b4af[_0x33efab('0x283f')],_0x19b4af[_0x33efab('0xd0d')],'id');return _0x3b80cf(_0x4b5473)[_0x33efab('0x2788')](function(){return _0x106437(_0x55d92f);})['then'](function(){const _0x173196=_0x33efab;_0x19b4af['pendingChanges']=![],_0x19b4af[_0x173196('0x12d9')]=angular[_0x173196('0x2669')](_0x19b4af[_0x173196('0x73d')]),_0x19b4af[_0x173196('0xd0d')]=angular[_0x173196('0x2669')](_0x19b4af[_0x173196('0x283f')]),_0xc3a4a3[_0x173196('0x173b')]({'title':_0x173196('0x10c8'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0xc68e42){const _0x2cbd7a=_0x33efab;_0xc3a4a3[_0x2cbd7a('0x5e8')]({'title':_0xc68e42[_0x2cbd7a('0x1b51')]?'API:'+_0xc68e42[_0x2cbd7a('0x1b51')]+'\x20-\x20'+_0xc68e42[_0x2cbd7a('0x22ce')]:_0x2cbd7a('0x13cd'),'msg':_0xc68e42['status']?JSON[_0x2cbd7a('0x1be0')](_0xc68e42[_0x2cbd7a('0x11fc')]):_0xc68e42[_0x2cbd7a('0x17df')]()});});}function _0x41c569(){const _0x253375=_0x44c689;_0x538389[_0x253375('0x19d')]();}}const _0x3ef983=_0x1a5bcc;_0x4eae0b['$inject']=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),_0x34e79e('0x15'),'api','Auth',_0x34e79e('0xe28')];function _0x4eae0b(_0x11a4a2,_0x2205e0,_0x2aa348,_0x21548c,_0x11b972,_0x472bde,_0x57e4eb,_0xab555a){const _0xabc748=_0x34e79e,_0x302f6c=this;_0x302f6c['currentUser']=_0x57e4eb['getCurrentUser'](),_0x302f6c['errors']=[],_0x302f6c['title']=_0xabc748('0x17ef')+(_0x21548c[_0xabc748('0x167b')]||_0x21548c[_0xabc748('0x8a5')])[_0xabc748('0x25e6')](),_0x302f6c['agent']=angular[_0xabc748('0x2669')](_0x21548c),_0x302f6c[_0xabc748('0xe28')]=_0xab555a,_0x302f6c[_0xabc748('0x1193')]={};if(_0x302f6c[_0xabc748('0x188b')][_0xabc748('0xd6b')])switch(_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x167b')]?_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x167b')][_0xabc748('0xc2e')]():_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x8a5')][_0xabc748('0xc2e')]()){case _0xabc748('0x1d56'):break;case _0xabc748('0x5e1'):{const _0xa66457=_0x302f6c[_0xabc748('0x188b')]['appdata'][_0xabc748('0x1497')](',');_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x234b')]=_0xa66457[0x0],_0x302f6c['agent']['language']=_0xa66457[0x1],_0x302f6c['agent'][_0xabc748('0xf50')]=_0xa66457[_0xabc748('0x845')](0x2,_0xa66457[_0xabc748('0x2566')])[_0xabc748('0x185f')](',');}break;case _0xabc748('0x137a'):{const _0x3600d0=_0x302f6c[_0xabc748('0x188b')][_0xabc748('0xd6b')]['split'](',');_0x302f6c[_0xabc748('0x188b')]['accesskeyid']=_0x3600d0[0x0],_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x1b58')]=_0x3600d0[0x1],_0x302f6c[_0xabc748('0x188b')]['lexregion']=_0x3600d0[0x2],_0x302f6c['agent'][_0xabc748('0x4eb')]=_0x3600d0[0x3],_0x302f6c[_0xabc748('0x188b')][_0xabc748('0xf50')]=_0x3600d0['slice'](0x4,_0x3600d0[_0xabc748('0x2566')])[_0xabc748('0x185f')](',');}break;case _0xabc748('0x808'):{const _0x5dcbf2=_0x302f6c['agent'][_0xabc748('0xd6b')][_0xabc748('0x1497')](',');_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x5fd')]=isNaN(_0x5dcbf2[0x0])?_0x5dcbf2[0x0]:parseInt(_0x5dcbf2[0x0],0xa),_0x302f6c[_0xabc748('0x188b')]['text']=_0x5dcbf2[_0xabc748('0x845')](0x1,_0x5dcbf2[_0xabc748('0x2566')])['join'](',');}break;case _0xabc748('0x15e2'):_0x302f6c['agent']['text']=_0x302f6c[_0xabc748('0x188b')][_0xabc748('0xd6b')];break;case'set':_0x302f6c[_0xabc748('0x188b')]['name']=_0x302f6c[_0xabc748('0x188b')]['appdata'][_0xabc748('0x1497')]('=')[0x0],_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x49')]=_0x302f6c[_0xabc748('0x188b')][_0xabc748('0xd6b')][_0xabc748('0x1497')]('=')[0x1];break;case _0xabc748('0x2631'):_0x302f6c['agent'][_0xabc748('0x1bf6')]=_0x302f6c['agent'][_0xabc748('0xd6b')];break;default:{const _0x2d2137=_0x302f6c['agent'][_0xabc748('0xd6b')][_0xabc748('0x1497')](',');_0x302f6c['agent'][_0xabc748('0x188b')]=_0x283545()[_0xabc748('0x213d')](_0x2d2137[0x0])?_0x2d2137[0x0]:isNaN(_0x2d2137[0x0])?_0x2d2137[0x0]:parseInt(_0x2d2137[0x0],0xa),_0x302f6c[_0xabc748('0x188b')]['timeout']=_0x283545()[_0xabc748('0x213d')](_0x2d2137[0x1])?_0x2d2137[0x1]:isNaN(_0x2d2137[0x1])?_0x2d2137[0x1]:parseInt(_0x2d2137[0x1],0xa);}break;}else _0x302f6c[_0xabc748('0x188b')][_0xabc748('0x24e4')]=0x1e;_0x302f6c[_0xabc748('0x188b')]['type']&&_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x1d7')]['toLowerCase']()===_0xabc748('0x1')&&_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x167b')][_0xabc748('0xc2e')]()===_0xabc748('0x229c')&&(_0x302f6c[_0xabc748('0x188b')]['prefix']=_0x302f6c[_0xabc748('0x188b')]['phone']?_0x302f6c[_0xabc748('0x188b')][_0xabc748('0x1224')][_0xabc748('0x1497')]('$')[0x0]:undefined,_0x302f6c['agent'][_0xabc748('0x2081')]=_0x302f6c['agent'][_0xabc748('0x8de')]?_0xabc748('0x1834')+_0x302f6c[_0xabc748('0x188b')]['callerID']:undefined);_0x302f6c[_0xabc748('0xb66')]=_0x2d04e2,_0x302f6c['closeDialog']=_0x2f15b5,_0x57e4eb['hasRole']('admin')?_0x472bde[_0xabc748('0x1e6a')]['get']({'fields':'id,name','sort':'name','nolimit':_0xabc748('0x1001'),'role':_0xabc748('0x188b')})[_0xabc748('0x1714')]['then'](function(_0x34ced6){_0x302f6c['agents']=_0x34ced6['rows']||[];})[_0xabc748('0x1cb5')](function(_0xaad69b){const _0x1c1f9b=_0xabc748;_0x2aa348[_0x1c1f9b('0x5e8')]({'title':_0xaad69b['status']?_0x1c1f9b('0x15d1')+_0xaad69b[_0x1c1f9b('0x1b51')]+'\x20-\x20'+_0xaad69b[_0x1c1f9b('0x22ce')]:'SYSTEM:GET_AGENTS','msg':_0xaad69b['data']?JSON['stringify'](_0xaad69b[_0x1c1f9b('0x11fc')]):_0xaad69b[_0x1c1f9b('0x17df')]()});}):_0x472bde[_0xabc748('0x1e6a')][_0xabc748('0x1335')]({'fields':_0xabc748('0x1338'),'sort':_0xabc748('0x1a8d'),'nolimit':'true','role':'agent'})[_0xabc748('0x1714')][_0xabc748('0x2788')](function(_0x1be759){const _0x48ca2c=_0xabc748;_0x302f6c['agents']=_0x1be759[_0x48ca2c('0x25df')]||[];})['then'](function(){const _0x28e004=_0xabc748;return _0x472bde[_0x28e004('0xec9')]['get']({'userProfileId':_0x302f6c[_0x28e004('0x9cb')]['userProfileId'],'sectionId':0xca})[_0x28e004('0x1714')];})['then'](function(_0x231875){const _0x2ec9a7=_0xabc748,_0x34e79f=_0x231875&&_0x231875[_0x2ec9a7('0x25df')]?_0x231875['rows'][0x0]:null;if(!_0x34e79f){const _0x305989=[];let _0x2c2257=null;_0x302f6c[_0x2ec9a7('0x188b')]&&(_0x2c2257=_0x283545()[_0x2ec9a7('0x20e8')](_0x302f6c[_0x2ec9a7('0x1713')],{'name':_0x302f6c[_0x2ec9a7('0x188b')][_0x2ec9a7('0x188b')]}));for(let _0x4ab6b8=0x0;_0x4ab6b8<_0x302f6c[_0x2ec9a7('0x1713')][_0x2ec9a7('0x2566')];_0x4ab6b8++){_0x2c2257&&_0x302f6c[_0x2ec9a7('0x1713')][_0x4ab6b8]['id']===_0x2c2257['id']&&(_0x302f6c[_0x2ec9a7('0x1713')][_0x4ab6b8][_0x2ec9a7('0x3bf')]=![],_0x305989[_0x2ec9a7('0x13e3')](_0x302f6c[_0x2ec9a7('0x1713')][_0x4ab6b8]));}_0x302f6c[_0x2ec9a7('0x1713')]=_0x305989;}else{if(!_0x34e79f[_0x2ec9a7('0x1c0a')])return _0x472bde[_0x2ec9a7('0x1050')][_0x2ec9a7('0x1335')]({'sectionId':_0x34e79f['id']})[_0x2ec9a7('0x1714')]['then'](function(_0x9b34b9){const _0x2ca312=_0x2ec9a7,_0x23e5cf=_0x283545()[_0x2ca312('0x155d')](_0x9b34b9[_0x2ca312('0x25df')],function(_0x57487e){const _0x32a411=_0x2ca312;return _0x283545()[_0x32a411('0x20e8')](_0x302f6c['agents'],{'id':_0x57487e['resourceId']});});let _0x5edbe6=null;_0x302f6c['agent']&&(_0x5edbe6=_0x283545()[_0x2ca312('0x20e8')](_0x302f6c[_0x2ca312('0x1713')],{'name':_0x302f6c[_0x2ca312('0x188b')][_0x2ca312('0x188b')]}));if(_0x5edbe6&&!_0x283545()['some'](_0x23e5cf,['id',_0x5edbe6['id']])){const _0x256ec8=_0x283545()[_0x2ca312('0x20e8')](_0x302f6c[_0x2ca312('0x1713')],{'id':_0x5edbe6['id']});_0x256ec8[_0x2ca312('0x3bf')]=![],_0x23e5cf[_0x2ca312('0x13e3')](_0x256ec8);}_0x302f6c['agents']=_0x23e5cf;});}})['catch'](function(_0x578978){const _0x1db27c=_0xabc748;_0x2aa348[_0x1db27c('0x5e8')]({'title':_0x578978[_0x1db27c('0x1b51')]?_0x1db27c('0x15d1')+_0x578978[_0x1db27c('0x1b51')]+'\x20-\x20'+_0x578978[_0x1db27c('0x22ce')]:_0x1db27c('0x1246'),'msg':_0x578978[_0x1db27c('0x11fc')]?JSON[_0x1db27c('0x1be0')](_0x578978['data']):_0x578978[_0x1db27c('0x17df')]()});});function _0x2d04e2(){const _0x86d569=_0xabc748;_0x302f6c[_0x86d569('0x25be')]=[];const _0x321641=[];_0x302f6c[_0x86d569('0x188b')]['type']&&_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x1d7')][_0x86d569('0xc2e')]()===_0x86d569('0x1')&&_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x167b')]===_0x86d569('0x25fb')&&(_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x1224')]=_0x11b972[_0x86d569('0x277c')]?(_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x1f71')]||'')+'${EXTEN:'+_0x11b972[_0x86d569('0x277c')]+'}':(_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x1f71')]||'')+_0x86d569('0x1275'),_0x11b972[_0x86d569('0x801')]!=='none'?_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x784')][_0x86d569('0x821')](_0x86d569('0x1609'))<0x0&&(_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x784')]+='U(xcally-mixmonitor-context)'):_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x784')]=_0x302f6c[_0x86d569('0x188b')]['options'][_0x86d569('0x10a4')](_0x86d569('0x1609'),''));const _0x31e5ed=_0x283545()[_0x86d569('0x20e8')](_0x302f6c['agents'],{'name':_0x302f6c['agent'][_0x86d569('0x188b')]});_0x31e5ed&&(_0x302f6c['agent'][_0x86d569('0x3bb')]=_0x31e5ed['id']);if(_0x302f6c['agent'][_0x86d569('0x167b')]&&_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x167b')]===_0x86d569('0x1d56')){}else switch((_0x302f6c['agent'][_0x86d569('0x8a5')]||_0x302f6c['agent'][_0x86d569('0x167b')])[_0x86d569('0xc2e')]()){case _0x86d569('0x3a6'):_0x302f6c[_0x86d569('0x188b')][_0x86d569('0xd6b')]=_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x1a8d')]+'='+_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x49')];break;case'custom':break;default:_0x321641[0x0]=_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x188b')],_0x321641[0x1]=_0x302f6c[_0x86d569('0x188b')][_0x86d569('0x24e4')],_0x302f6c[_0x86d569('0x188b')][_0x86d569('0xd6b')]=_0x321641[_0x86d569('0x185f')](',');}_0x2f15b5(_0x302f6c[_0x86d569('0x188b')]);}function _0x2f15b5(_0x27eca5){_0x11a4a2['hide'](_0x27eca5);}}const _0x5ca6b0=_0x4eae0b;_0x30a487['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),_0x34e79e('0x15'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x30a487(_0x30a2ba,_0x6329cb,_0x9fbcc0,_0x687849,_0x27edc6,_0x5da7f9,_0x16e2cc,_0x54e506){const _0x464066=_0x34e79e,_0x551eb6=this;_0x551eb6['currentUser']=_0x16e2cc[_0x464066('0x24cc')](),_0x551eb6['errors']=[],_0x551eb6[_0x464066('0x14e4')]='WHATSAPP.EDIT_'+(_0x687849['appType']||_0x687849[_0x464066('0x8a5')])[_0x464066('0x25e6')](),_0x551eb6[_0x464066('0x137a')]=angular[_0x464066('0x2669')](_0x687849),_0x551eb6[_0x464066('0xe28')]=_0x54e506,_0x551eb6[_0x464066('0x1193')]={};if(_0x551eb6[_0x464066('0x137a')]['appdata'])switch(_0x551eb6[_0x464066('0x137a')][_0x464066('0x167b')]?_0x551eb6[_0x464066('0x137a')][_0x464066('0x167b')][_0x464066('0xc2e')]():_0x551eb6['amazonlex'][_0x464066('0x8a5')]['toLowerCase']()){case _0x464066('0x1d56'):break;case _0x464066('0x5e1'):{const _0x3552a9=_0x551eb6[_0x464066('0x137a')][_0x464066('0xd6b')][_0x464066('0x1497')](',');_0x551eb6[_0x464066('0x137a')]['key']=_0x3552a9[0x0],_0x551eb6['amazonlex'][_0x464066('0x175b')]=_0x3552a9[0x1],_0x551eb6[_0x464066('0x137a')][_0x464066('0xf50')]=_0x3552a9[_0x464066('0x845')](0x2,_0x3552a9['length'])[_0x464066('0x185f')](',');}break;case'amazonlex':{const _0x2856e1=_0x551eb6[_0x464066('0x137a')][_0x464066('0xd6b')][_0x464066('0x1497')](',');_0x551eb6[_0x464066('0x137a')][_0x464066('0x27f2')]=_0x2856e1[0x0],_0x551eb6['amazonlex']['secretaccesskey']=_0x2856e1[0x1],_0x551eb6[_0x464066('0x137a')][_0x464066('0xb70')]=_0x2856e1[0x2],_0x551eb6[_0x464066('0x137a')][_0x464066('0x4eb')]=_0x2856e1[0x3],_0x551eb6['amazonlex'][_0x464066('0xf50')]=_0x2856e1['slice'](0x4,_0x2856e1['length'])[_0x464066('0x185f')](',');}break;case _0x464066('0x808'):{const _0x1fa2b5=_0x551eb6['amazonlex'][_0x464066('0xd6b')]['split'](',');_0x551eb6['amazonlex']['times']=isNaN(_0x1fa2b5[0x0])?_0x1fa2b5[0x0]:parseInt(_0x1fa2b5[0x0],0xa),_0x551eb6[_0x464066('0x137a')][_0x464066('0x16db')]=_0x1fa2b5[_0x464066('0x845')](0x1,_0x1fa2b5['length'])[_0x464066('0x185f')](',');}break;case _0x464066('0x15e2'):_0x551eb6[_0x464066('0x137a')][_0x464066('0x16db')]=_0x551eb6[_0x464066('0x137a')][_0x464066('0xd6b')];break;case _0x464066('0x3a6'):_0x551eb6['amazonlex'][_0x464066('0x1a8d')]=_0x551eb6[_0x464066('0x137a')]['appdata'][_0x464066('0x1497')]('=')[0x0],_0x551eb6['amazonlex']['value']=_0x551eb6[_0x464066('0x137a')][_0x464066('0xd6b')][_0x464066('0x1497')]('=')[0x1];break;case'agi':_0x551eb6[_0x464066('0x137a')][_0x464066('0x1bf6')]=_0x551eb6[_0x464066('0x137a')][_0x464066('0xd6b')];break;default:{const _0x106792=_0x551eb6['amazonlex'][_0x464066('0xd6b')][_0x464066('0x1497')](',');_0x551eb6[_0x464066('0x137a')][_0x464066('0x27f2')]=_0x283545()[_0x464066('0x213d')](_0x106792[0x0])?_0x106792[0x0]:isNaN(_0x106792[0x0])?_0x106792[0x0]:parseInt(_0x106792[0x0],0xa),_0x551eb6[_0x464066('0x137a')][_0x464066('0x1b58')]=_0x283545()[_0x464066('0x213d')](_0x106792[0x1])?_0x106792[0x1]:isNaN(_0x106792[0x1])?_0x106792[0x1]:parseInt(_0x106792[0x1],0xa),_0x551eb6[_0x464066('0x137a')][_0x464066('0xb70')]=_0x283545()[_0x464066('0x213d')](_0x106792[0x2])?_0x106792[0x2]:isNaN(_0x106792[0x2])?_0x106792[0x2]:parseInt(_0x106792[0x2],0xa),_0x551eb6['amazonlex'][_0x464066('0x4eb')]=_0x283545()[_0x464066('0x213d')](_0x106792[0x3])?_0x106792[0x3]:isNaN(_0x106792[0x3])?_0x106792[0x3]:parseInt(_0x106792[0x3],0xa),_0x551eb6[_0x464066('0x137a')][_0x464066('0xf50')]=_0x283545()[_0x464066('0x213d')](_0x106792[0x4])?_0x106792[0x4]:isNaN(_0x106792[0x4])?_0x106792[0x4]:parseInt(_0x106792[0x4],0xa);}break;}else _0x551eb6['amazonlex']['lexregion']='us-east-1';_0x551eb6[_0x464066('0x137a')]['type']&&_0x551eb6[_0x464066('0x137a')][_0x464066('0x1d7')]['toLowerCase']()===_0x464066('0x1')&&_0x551eb6['amazonlex'][_0x464066('0x167b')][_0x464066('0xc2e')]()===_0x464066('0x229c')&&(_0x551eb6[_0x464066('0x137a')]['prefix']=_0x551eb6[_0x464066('0x137a')][_0x464066('0x1224')]?_0x551eb6[_0x464066('0x137a')][_0x464066('0x1224')][_0x464066('0x1497')]('$')[0x0]:undefined,_0x551eb6[_0x464066('0x137a')]['callerId']=_0x551eb6[_0x464066('0x137a')][_0x464066('0x8de')]?'CALLERID(all)='+_0x551eb6[_0x464066('0x137a')][_0x464066('0x8de')]:undefined);_0x551eb6[_0x464066('0xb66')]=_0x2fc5dc,_0x551eb6['closeDialog']=_0x1313f8;function _0x2fc5dc(){const _0x16b525=_0x464066;_0x551eb6[_0x16b525('0x25be')]=[];const _0x3276a5=[];_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x1d7')]&&_0x551eb6['amazonlex'][_0x16b525('0x1d7')]['toLowerCase']()==='outbound'&&_0x551eb6['amazonlex'][_0x16b525('0x167b')]===_0x16b525('0x25fb')&&(_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x1224')]=_0x27edc6[_0x16b525('0x277c')]?(_0x551eb6['amazonlex'][_0x16b525('0x1f71')]||'')+_0x16b525('0x124d')+_0x27edc6['cutdigits']+'}':(_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x1f71')]||'')+_0x16b525('0x1275'),_0x27edc6[_0x16b525('0x801')]!==_0x16b525('0x1dc')?_0x551eb6['amazonlex'][_0x16b525('0x784')][_0x16b525('0x821')](_0x16b525('0x1609'))<0x0&&(_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x784')]+=_0x16b525('0x1609')):_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x784')]=_0x551eb6['amazonlex'][_0x16b525('0x784')][_0x16b525('0x10a4')](_0x16b525('0x1609'),''));if(_0x551eb6['amazonlex'][_0x16b525('0x167b')]&&_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x167b')]===_0x16b525('0x1d56')){}else switch((_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x8a5')]||_0x551eb6[_0x16b525('0x137a')]['appType'])[_0x16b525('0xc2e')]()){case _0x16b525('0x3a6'):_0x551eb6[_0x16b525('0x137a')][_0x16b525('0xd6b')]=_0x551eb6['amazonlex'][_0x16b525('0x1a8d')]+'='+_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x49')];break;case _0x16b525('0x1d56'):break;default:_0x3276a5[0x0]=_0x551eb6[_0x16b525('0x137a')][_0x16b525('0x27f2')],_0x3276a5[0x1]=_0x551eb6[_0x16b525('0x137a')]['secretaccesskey'],_0x3276a5[0x2]=_0x551eb6[_0x16b525('0x137a')][_0x16b525('0xb70')],_0x3276a5[0x3]=_0x551eb6['amazonlex']['botname'],_0x3276a5[0x4]=_0x551eb6['amazonlex']['welcomemessage'],_0x551eb6[_0x16b525('0x137a')][_0x16b525('0xd6b')]=_0x3276a5[_0x16b525('0x185f')](',');}_0x1313f8(_0x551eb6[_0x16b525('0x137a')]);}function _0x1313f8(_0x585e7c){const _0x1e61be=_0x464066;_0x30a2ba[_0x1e61be('0x19d')](_0x585e7c);}}const _0x314d8b=_0x30a487;_0x106c5f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),'whatsappAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x106c5f(_0x3e6e7f,_0x15e9a4,_0x268a2b,_0x339f92,_0x2ec18d,_0x2abfc0,_0xfc04b8,_0x3cbae6){const _0xd99cbc=_0x34e79e,_0x2a0704=this;_0x2a0704[_0xd99cbc('0x9cb')]=_0xfc04b8[_0xd99cbc('0x24cc')](),_0x2a0704['errors']=[],_0x2a0704[_0xd99cbc('0x14e4')]=_0xd99cbc('0x17ef')+(_0x339f92[_0xd99cbc('0x167b')]||_0x339f92['app'])[_0xd99cbc('0x25e6')](),_0x2a0704['autoreply']=angular[_0xd99cbc('0x2669')](_0x339f92),_0x2a0704[_0xd99cbc('0xe28')]=_0x3cbae6,_0x2a0704['hasModulePermissions']={};if(_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')])switch(_0x2a0704[_0xd99cbc('0x808')]['appType']?_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x167b')][_0xd99cbc('0xc2e')]():_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x8a5')][_0xd99cbc('0xc2e')]()){case'custom':break;case'dialogflow':{const _0xaaec11=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')][_0xd99cbc('0x1497')](',');_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x234b')]=_0xaaec11[0x0],_0x2a0704['autoreply'][_0xd99cbc('0x175b')]=_0xaaec11[0x1],_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xf50')]=_0xaaec11[_0xd99cbc('0x845')](0x2,_0xaaec11[_0xd99cbc('0x2566')])[_0xd99cbc('0x185f')](',');}break;case _0xd99cbc('0x137a'):{const _0x4d49df=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')][_0xd99cbc('0x1497')](',');_0x2a0704['autoreply'][_0xd99cbc('0x27f2')]=_0x4d49df[0x0],_0x2a0704[_0xd99cbc('0x808')]['secretaccesskey']=_0x4d49df[0x1],_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xb70')]=_0x4d49df[0x2],_0x2a0704[_0xd99cbc('0x808')]['botname']=_0x4d49df[0x3],_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xf50')]=_0x4d49df[_0xd99cbc('0x845')](0x4,_0x4d49df[_0xd99cbc('0x2566')])['join'](',');}break;case _0xd99cbc('0x808'):{const _0x120f4b=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')][_0xd99cbc('0x1497')](',');_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x5fd')]=isNaN(_0x120f4b[0x0])?_0x120f4b[0x0]:parseInt(_0x120f4b[0x0],0xa),_0x2a0704['autoreply'][_0xd99cbc('0x16db')]=_0x120f4b[_0xd99cbc('0x845')](0x1,_0x120f4b[_0xd99cbc('0x2566')])[_0xd99cbc('0x185f')](',');}break;case _0xd99cbc('0x15e2'):_0x2a0704[_0xd99cbc('0x808')]['text']=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')];break;case'set':_0x2a0704['autoreply']['name']=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')][_0xd99cbc('0x1497')]('=')[0x0],_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x49')]=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')]['split']('=')[0x1];break;case'agi':_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x1bf6')]=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')];break;default:{const _0x1b7941=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0xd6b')][_0xd99cbc('0x1497')](',');_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x5fd')]=_0x283545()[_0xd99cbc('0x213d')](_0x1b7941[0x0])?_0x1b7941[0x0]:isNaN(_0x1b7941[0x0])?_0x1b7941[0x0]:parseInt(_0x1b7941[0x0],0xa),_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x16db')]=_0x283545()[_0xd99cbc('0x213d')](_0x1b7941[0x1])?_0x1b7941[0x1]:isNaN(_0x1b7941[0x1])?_0x1b7941[0x1]:parseInt(_0x1b7941[0x1],0xa);}break;}else _0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x5fd')]=0x1;_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x1d7')]&&_0x2a0704['autoreply'][_0xd99cbc('0x1d7')]['toLowerCase']()==='outbound'&&_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x167b')][_0xd99cbc('0xc2e')]()===_0xd99cbc('0x229c')&&(_0x2a0704[_0xd99cbc('0x808')]['prefix']=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x1224')]?_0x2a0704[_0xd99cbc('0x808')]['phone']['split']('$')[0x0]:undefined,_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x2081')]=_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x8de')]?_0xd99cbc('0x1834')+_0x2a0704[_0xd99cbc('0x808')][_0xd99cbc('0x8de')]:undefined);_0x2a0704[_0xd99cbc('0xb66')]=_0x2b2b5b,_0x2a0704['closeDialog']=_0x210c5d;function _0x2b2b5b(){const _0x3f124e=_0xd99cbc;_0x2a0704['errors']=[];const _0x54c2c3=[];_0x2a0704['autoreply']['type']&&_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0x1d7')]['toLowerCase']()===_0x3f124e('0x1')&&_0x2a0704['autoreply'][_0x3f124e('0x167b')]===_0x3f124e('0x25fb')&&(_0x2a0704[_0x3f124e('0x808')]['phone']=_0x2ec18d[_0x3f124e('0x277c')]?(_0x2a0704['autoreply'][_0x3f124e('0x1f71')]||'')+_0x3f124e('0x124d')+_0x2ec18d[_0x3f124e('0x277c')]+'}':(_0x2a0704['autoreply'][_0x3f124e('0x1f71')]||'')+_0x3f124e('0x1275'),_0x2ec18d[_0x3f124e('0x801')]!==_0x3f124e('0x1dc')?_0x2a0704['autoreply']['options']['indexOf'](_0x3f124e('0x1609'))<0x0&&(_0x2a0704[_0x3f124e('0x808')]['options']+=_0x3f124e('0x1609')):_0x2a0704['autoreply'][_0x3f124e('0x784')]=_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0x784')]['replace'](_0x3f124e('0x1609'),''));if(_0x2a0704[_0x3f124e('0x808')]['appType']&&_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0x167b')]===_0x3f124e('0x1d56')){}else switch((_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0x8a5')]||_0x2a0704['autoreply'][_0x3f124e('0x167b')])['toLowerCase']()){case _0x3f124e('0x3a6'):_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0xd6b')]=_0x2a0704[_0x3f124e('0x808')]['name']+'='+_0x2a0704['autoreply']['value'];break;case'custom':break;default:_0x54c2c3[0x0]=_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0x5fd')],_0x54c2c3[0x1]=_0x2a0704['autoreply']['text'],_0x2a0704[_0x3f124e('0x808')][_0x3f124e('0xd6b')]=_0x54c2c3[_0x3f124e('0x185f')](',');}_0x210c5d(_0x2a0704[_0x3f124e('0x808')]);}function _0x210c5d(_0x2f1754){const _0x17e7e9=_0xd99cbc;_0x3e6e7f[_0x17e7e9('0x19d')](_0x2f1754);}}const _0x1dc651=_0x106c5f;_0x531606[_0x34e79e('0x2d9')]=['$mdDialog','$q','toasty',_0x34e79e('0x1c51'),_0x34e79e('0x15'),'api','Auth',_0x34e79e('0xe28')];function _0x531606(_0x20b293,_0x219169,_0x1c7d88,_0x3a59e4,_0x3a4fe6,_0x2e7603,_0x10e6c3,_0x262dc4){const _0x5d32c3=_0x34e79e,_0x46fb89=this;_0x46fb89['currentUser']=_0x10e6c3[_0x5d32c3('0x24cc')](),_0x46fb89[_0x5d32c3('0x25be')]=[],_0x46fb89[_0x5d32c3('0x14e4')]='WHATSAPP.EDIT_'+(_0x3a59e4[_0x5d32c3('0x167b')]||_0x3a59e4[_0x5d32c3('0x8a5')])[_0x5d32c3('0x25e6')](),_0x46fb89[_0x5d32c3('0x69f')]=angular[_0x5d32c3('0x2669')](_0x3a59e4),_0x46fb89[_0x5d32c3('0xe28')]=_0x262dc4,_0x46fb89[_0x5d32c3('0x1193')]={};if(_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xd6b')])switch(_0x46fb89[_0x5d32c3('0x69f')]['appType']?_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x167b')]['toLowerCase']():_0x46fb89[_0x5d32c3('0x69f')]['app'][_0x5d32c3('0xc2e')]()){case _0x5d32c3('0x1d56'):break;case _0x5d32c3('0x5e1'):{const _0x17df40=_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xd6b')]['split'](',');_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x234b')]=_0x17df40[0x0],_0x46fb89[_0x5d32c3('0x69f')]['language']=_0x17df40[0x1],_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xf50')]=_0x17df40['slice'](0x2,_0x17df40[_0x5d32c3('0x2566')])[_0x5d32c3('0x185f')](',');}break;case _0x5d32c3('0x137a'):{const _0x40e33a=_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xd6b')][_0x5d32c3('0x1497')](',');_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x27f2')]=_0x40e33a[0x0],_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x1b58')]=_0x40e33a[0x1],_0x46fb89[_0x5d32c3('0x69f')]['lexregion']=_0x40e33a[0x2],_0x46fb89['close'][_0x5d32c3('0x4eb')]=_0x40e33a[0x3],_0x46fb89[_0x5d32c3('0x69f')]['welcomemessage']=_0x40e33a[_0x5d32c3('0x845')](0x4,_0x40e33a[_0x5d32c3('0x2566')])[_0x5d32c3('0x185f')](',');}break;case _0x5d32c3('0x808'):{const _0x4f8ddb=_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xd6b')]['split'](',');_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x5fd')]=isNaN(_0x4f8ddb[0x0])?_0x4f8ddb[0x0]:parseInt(_0x4f8ddb[0x0],0xa),_0x46fb89['close'][_0x5d32c3('0x16db')]=_0x4f8ddb['slice'](0x1,_0x4f8ddb['length'])['join'](',');}break;case'message':_0x46fb89['close'][_0x5d32c3('0x16db')]=_0x46fb89[_0x5d32c3('0x69f')]['appdata'];break;case _0x5d32c3('0x3a6'):_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x1a8d')]=_0x46fb89['close'][_0x5d32c3('0xd6b')]['split']('=')[0x0],_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x49')]=_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0xd6b')][_0x5d32c3('0x1497')]('=')[0x1];break;case _0x5d32c3('0x2631'):_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x1bf6')]=_0x46fb89['close'][_0x5d32c3('0xd6b')];break;default:{const _0x3a605f=_0x46fb89['close'][_0x5d32c3('0xd6b')]['split'](',');_0x46fb89['close'][_0x5d32c3('0x1db2')]=_0x283545()[_0x5d32c3('0x213d')](_0x3a605f[0x0])?_0x3a605f[0x0]:isNaN(_0x3a605f[0x0])?_0x3a605f[0x0]:parseInt(_0x3a605f[0x0],0xa);}break;}else{}_0x46fb89[_0x5d32c3('0x69f')]['type']&&_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x1d7')][_0x5d32c3('0xc2e')]()===_0x5d32c3('0x1')&&_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x167b')][_0x5d32c3('0xc2e')]()===_0x5d32c3('0x229c')&&(_0x46fb89['close'][_0x5d32c3('0x1f71')]=_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x1224')]?_0x46fb89[_0x5d32c3('0x69f')]['phone'][_0x5d32c3('0x1497')]('$')[0x0]:undefined,_0x46fb89['close'][_0x5d32c3('0x2081')]=_0x46fb89[_0x5d32c3('0x69f')]['callerID']?_0x5d32c3('0x1834')+_0x46fb89[_0x5d32c3('0x69f')][_0x5d32c3('0x8de')]:undefined);_0x46fb89[_0x5d32c3('0xb66')]=_0x3dba19,_0x46fb89[_0x5d32c3('0xca7')]=_0x31fa4f;function _0x3dba19(){const _0x2767d6=_0x5d32c3;_0x46fb89[_0x2767d6('0x25be')]=[];const _0x50bbf8=[];_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x1d7')]&&_0x46fb89[_0x2767d6('0x69f')]['type'][_0x2767d6('0xc2e')]()===_0x2767d6('0x1')&&_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x167b')]==='outboundDial'&&(_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x1224')]=_0x3a4fe6['cutdigits']?(_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x1f71')]||'')+_0x2767d6('0x124d')+_0x3a4fe6['cutdigits']+'}':(_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x1f71')]||'')+'${EXTEN}',_0x3a4fe6[_0x2767d6('0x801')]!==_0x2767d6('0x1dc')?_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x784')][_0x2767d6('0x821')](_0x2767d6('0x1609'))<0x0&&(_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x784')]+=_0x2767d6('0x1609')):_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x784')]=_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x784')][_0x2767d6('0x10a4')](_0x2767d6('0x1609'),''));if(_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x167b')]&&_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x167b')]===_0x2767d6('0x1d56')){}else switch((_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x8a5')]||_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x167b')])[_0x2767d6('0xc2e')]()){case'set':_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0xd6b')]=_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x1a8d')]+'='+_0x46fb89[_0x2767d6('0x69f')][_0x2767d6('0x49')];break;case'custom':break;default:_0x50bbf8[0x0]=_0x46fb89['close'][_0x2767d6('0x1db2')],_0x46fb89['close'][_0x2767d6('0xd6b')]=_0x50bbf8[_0x2767d6('0x185f')](',');}_0x31fa4f(_0x46fb89['close']);}function _0x31fa4f(_0x48ddbf){const _0x5cbd13=_0x5d32c3;_0x20b293[_0x5cbd13('0x19d')](_0x48ddbf);}}const _0x425b8c=_0x531606;_0x5732f1[_0x34e79e('0x2d9')]=['$mdDialog','$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),'whatsappAccount',_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x5732f1(_0x95903a,_0x3847cf,_0x5e4bdc,_0x358091,_0x13211c,_0x14566a,_0x2790bc,_0x5a3195){const _0x421568=_0x34e79e,_0x122ec5=this;_0x122ec5['currentUser']=_0x2790bc['getCurrentUser'](),_0x122ec5[_0x421568('0x25be')]=[],_0x122ec5[_0x421568('0x14e4')]='WHATSAPP.EDIT_'+(_0x358091[_0x421568('0x167b')]||_0x358091[_0x421568('0x8a5')])['toUpperCase'](),_0x122ec5[_0x421568('0x5e1')]=angular[_0x421568('0x2669')](_0x358091),_0x122ec5[_0x421568('0xe28')]=_0x5a3195,_0x122ec5['hasModulePermissions']={};if(_0x122ec5['dialogflow'][_0x421568('0xd6b')])switch(_0x122ec5[_0x421568('0x5e1')][_0x421568('0x167b')]?_0x122ec5[_0x421568('0x5e1')]['appType'][_0x421568('0xc2e')]():_0x122ec5[_0x421568('0x5e1')]['app'][_0x421568('0xc2e')]()){case _0x421568('0x1d56'):break;case _0x421568('0x5e1'):{const _0x283ab8=_0x122ec5[_0x421568('0x5e1')][_0x421568('0xd6b')][_0x421568('0x1497')](',');_0x122ec5[_0x421568('0x5e1')][_0x421568('0x234b')]=_0x283ab8[0x0],_0x122ec5[_0x421568('0x5e1')][_0x421568('0x175b')]=_0x283ab8[0x1],_0x122ec5[_0x421568('0x5e1')][_0x421568('0xf50')]=_0x283ab8[_0x421568('0x845')](0x2,_0x283ab8['length'])[_0x421568('0x185f')](',');}break;case _0x421568('0x137a'):{const _0x33ce12=_0x122ec5['dialogflow'][_0x421568('0xd6b')][_0x421568('0x1497')](',');_0x122ec5[_0x421568('0x5e1')][_0x421568('0x27f2')]=_0x33ce12[0x0],_0x122ec5[_0x421568('0x5e1')][_0x421568('0x1b58')]=_0x33ce12[0x1],_0x122ec5[_0x421568('0x5e1')]['lexregion']=_0x33ce12[0x2],_0x122ec5['dialogflow'][_0x421568('0x4eb')]=_0x33ce12[0x3],_0x122ec5[_0x421568('0x5e1')][_0x421568('0xf50')]=_0x33ce12[_0x421568('0x845')](0x4,_0x33ce12['length'])['join'](',');}break;case'autoreply':{const _0x315cdf=_0x122ec5[_0x421568('0x5e1')][_0x421568('0xd6b')][_0x421568('0x1497')](',');_0x122ec5['dialogflow'][_0x421568('0x5fd')]=isNaN(_0x315cdf[0x0])?_0x315cdf[0x0]:parseInt(_0x315cdf[0x0],0xa),_0x122ec5[_0x421568('0x5e1')][_0x421568('0x16db')]=_0x315cdf[_0x421568('0x845')](0x1,_0x315cdf['length'])[_0x421568('0x185f')](',');}break;case _0x421568('0x15e2'):_0x122ec5['dialogflow'][_0x421568('0x16db')]=_0x122ec5['dialogflow'][_0x421568('0xd6b')];break;case'set':_0x122ec5[_0x421568('0x5e1')][_0x421568('0x1a8d')]=_0x122ec5['dialogflow'][_0x421568('0xd6b')]['split']('=')[0x0],_0x122ec5[_0x421568('0x5e1')][_0x421568('0x49')]=_0x122ec5['dialogflow'][_0x421568('0xd6b')][_0x421568('0x1497')]('=')[0x1];break;case'agi':_0x122ec5['dialogflow'][_0x421568('0x1bf6')]=_0x122ec5[_0x421568('0x5e1')][_0x421568('0xd6b')];break;default:{const _0x1c8ea9=_0x122ec5[_0x421568('0x5e1')][_0x421568('0xd6b')][_0x421568('0x1497')](',');_0x122ec5[_0x421568('0x5e1')][_0x421568('0x234b')]=_0x283545()[_0x421568('0x213d')](_0x1c8ea9[0x0])?_0x1c8ea9[0x0]:isNaN(_0x1c8ea9[0x0])?_0x1c8ea9[0x0]:parseInt(_0x1c8ea9[0x0],0xa),_0x122ec5[_0x421568('0x5e1')][_0x421568('0x175b')]=_0x283545()['isEmpty'](_0x1c8ea9[0x1])?_0x1c8ea9[0x1]:isNaN(_0x1c8ea9[0x1])?_0x1c8ea9[0x1]:parseInt(_0x1c8ea9[0x1],0xa),_0x122ec5[_0x421568('0x5e1')][_0x421568('0xf50')]=_0x283545()['isEmpty'](_0x1c8ea9[0x2])?_0x1c8ea9[0x2]:isNaN(_0x1c8ea9[0x2])?_0x1c8ea9[0x2]:parseInt(_0x1c8ea9[0x2],0xa);}break;}else _0x122ec5[_0x421568('0x5e1')][_0x421568('0x175b')]='en';_0x122ec5[_0x421568('0x5e1')][_0x421568('0x1d7')]&&_0x122ec5[_0x421568('0x5e1')]['type'][_0x421568('0xc2e')]()===_0x421568('0x1')&&_0x122ec5[_0x421568('0x5e1')][_0x421568('0x167b')][_0x421568('0xc2e')]()===_0x421568('0x229c')&&(_0x122ec5['dialogflow']['prefix']=_0x122ec5[_0x421568('0x5e1')][_0x421568('0x1224')]?_0x122ec5['dialogflow'][_0x421568('0x1224')]['split']('$')[0x0]:undefined,_0x122ec5['dialogflow'][_0x421568('0x2081')]=_0x122ec5[_0x421568('0x5e1')][_0x421568('0x8de')]?'CALLERID(all)='+_0x122ec5[_0x421568('0x5e1')][_0x421568('0x8de')]:undefined);_0x122ec5['saveWhatsappAccountApp']=_0x1678bc,_0x122ec5['closeDialog']=_0x3cbf14;function _0x1678bc(){const _0x5015c7=_0x421568;_0x122ec5[_0x5015c7('0x25be')]=[];const _0x1c83a8=[];_0x122ec5['dialogflow']['type']&&_0x122ec5[_0x5015c7('0x5e1')]['type'][_0x5015c7('0xc2e')]()===_0x5015c7('0x1')&&_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x167b')]===_0x5015c7('0x25fb')&&(_0x122ec5[_0x5015c7('0x5e1')]['phone']=_0x13211c[_0x5015c7('0x277c')]?(_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x1f71')]||'')+'${EXTEN:'+_0x13211c[_0x5015c7('0x277c')]+'}':(_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x1f71')]||'')+_0x5015c7('0x1275'),_0x13211c[_0x5015c7('0x801')]!==_0x5015c7('0x1dc')?_0x122ec5['dialogflow']['options'][_0x5015c7('0x821')](_0x5015c7('0x1609'))<0x0&&(_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x784')]+=_0x5015c7('0x1609')):_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x784')]=_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x784')]['replace'](_0x5015c7('0x1609'),''));if(_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x167b')]&&_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x167b')]===_0x5015c7('0x1d56')){}else switch((_0x122ec5[_0x5015c7('0x5e1')]['app']||_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x167b')])['toLowerCase']()){case _0x5015c7('0x3a6'):_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0xd6b')]=_0x122ec5[_0x5015c7('0x5e1')]['name']+'='+_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x49')];break;case'custom':break;default:_0x1c83a8[0x0]=_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0x234b')],_0x1c83a8[0x1]=_0x122ec5['dialogflow'][_0x5015c7('0x175b')],_0x1c83a8[0x2]=_0x122ec5[_0x5015c7('0x5e1')][_0x5015c7('0xf50')],_0x122ec5['dialogflow'][_0x5015c7('0xd6b')]=_0x1c83a8[_0x5015c7('0x185f')](',');}_0x3cbf14(_0x122ec5[_0x5015c7('0x5e1')]);}function _0x3cbf14(_0x1068d2){const _0x471721=_0x421568;_0x95903a[_0x471721('0x19d')](_0x1068d2);}}const _0x3cc38d=_0x5732f1;_0x1c4592[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),_0x34e79e('0x15'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x1c4592(_0x39c128,_0x4d1fa1,_0x3102be,_0x1d30f7,_0x4c9b52,_0x1d1875,_0x4570fe,_0x218cd7){const _0x24f9af=_0x34e79e,_0x53443f=this;_0x53443f[_0x24f9af('0x9cb')]=_0x4570fe['getCurrentUser'](),_0x53443f[_0x24f9af('0x25be')]=[],_0x53443f[_0x24f9af('0x14e4')]=_0x24f9af('0x17ef')+(_0x1d30f7['appType']||_0x1d30f7[_0x24f9af('0x8a5')])[_0x24f9af('0x25e6')](),_0x53443f[_0x24f9af('0x1e01')]=angular['copy'](_0x1d30f7),_0x53443f[_0x24f9af('0xe28')]=_0x218cd7,_0x53443f[_0x24f9af('0x1193')]={};if(_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xd6b')])switch(_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x167b')]?_0x53443f['gotoif']['appType'][_0x24f9af('0xc2e')]():_0x53443f[_0x24f9af('0x1e01')]['app'][_0x24f9af('0xc2e')]()){case _0x24f9af('0x1d56'):break;case _0x24f9af('0x5e1'):{const _0x4a08ae=_0x53443f[_0x24f9af('0x1e01')]['appdata'][_0x24f9af('0x1497')](',');_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x234b')]=_0x4a08ae[0x0],_0x53443f['gotoif'][_0x24f9af('0x175b')]=_0x4a08ae[0x1],_0x53443f['gotoif']['welcomemessage']=_0x4a08ae['slice'](0x2,_0x4a08ae[_0x24f9af('0x2566')])[_0x24f9af('0x185f')](',');}break;case _0x24f9af('0x137a'):{const _0x921c5c=_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xd6b')][_0x24f9af('0x1497')](',');_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x27f2')]=_0x921c5c[0x0],_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x1b58')]=_0x921c5c[0x1],_0x53443f[_0x24f9af('0x1e01')]['lexregion']=_0x921c5c[0x2],_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x4eb')]=_0x921c5c[0x3],_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xf50')]=_0x921c5c[_0x24f9af('0x845')](0x4,_0x921c5c[_0x24f9af('0x2566')])[_0x24f9af('0x185f')](',');}break;case _0x24f9af('0x808'):{const _0x5d3685=_0x53443f[_0x24f9af('0x1e01')]['appdata']['split'](',');_0x53443f[_0x24f9af('0x1e01')]['times']=isNaN(_0x5d3685[0x0])?_0x5d3685[0x0]:parseInt(_0x5d3685[0x0],0xa),_0x53443f['gotoif'][_0x24f9af('0x16db')]=_0x5d3685[_0x24f9af('0x845')](0x1,_0x5d3685[_0x24f9af('0x2566')])['join'](',');}break;case _0x24f9af('0x15e2'):_0x53443f[_0x24f9af('0x1e01')]['text']=_0x53443f['gotoif'][_0x24f9af('0xd6b')];break;case'set':_0x53443f[_0x24f9af('0x1e01')]['name']=_0x53443f[_0x24f9af('0x1e01')]['appdata'][_0x24f9af('0x1497')]('=')[0x0],_0x53443f[_0x24f9af('0x1e01')]['value']=_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xd6b')][_0x24f9af('0x1497')]('=')[0x1];break;case _0x24f9af('0x2631'):_0x53443f['gotoif'][_0x24f9af('0x1bf6')]=_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xd6b')];break;default:{const _0xdc3727=_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xd6b')][_0x24f9af('0x1497')](',');_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0xf2b')]=_0x283545()[_0x24f9af('0x213d')](_0xdc3727[0x0])?_0xdc3727[0x0]:isNaN(_0xdc3727[0x0])?_0xdc3727[0x0]:parseInt(_0xdc3727[0x0],0xa),_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x86a')]=_0x283545()['isEmpty'](_0xdc3727[0x1])?_0xdc3727[0x1]:isNaN(_0xdc3727[0x1])?_0xdc3727[0x1]:parseInt(_0xdc3727[0x1],0xa),_0x53443f['gotoif'][_0x24f9af('0x1474')]=_0x283545()[_0x24f9af('0x213d')](_0xdc3727[0x2])?_0xdc3727[0x2]:isNaN(_0xdc3727[0x2])?_0xdc3727[0x2]:parseInt(_0xdc3727[0x2],0xa);}break;}else{}_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x1d7')]&&_0x53443f['gotoif'][_0x24f9af('0x1d7')][_0x24f9af('0xc2e')]()===_0x24f9af('0x1')&&_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x167b')][_0x24f9af('0xc2e')]()==='outbounddial'&&(_0x53443f['gotoif']['prefix']=_0x53443f['gotoif'][_0x24f9af('0x1224')]?_0x53443f[_0x24f9af('0x1e01')]['phone']['split']('$')[0x0]:undefined,_0x53443f[_0x24f9af('0x1e01')][_0x24f9af('0x2081')]=_0x53443f[_0x24f9af('0x1e01')]['callerID']?_0x24f9af('0x1834')+_0x53443f[_0x24f9af('0x1e01')]['callerID']:undefined);_0x53443f['saveWhatsappAccountApp']=_0x383ea4,_0x53443f[_0x24f9af('0xca7')]=_0x4cbdd9;function _0x383ea4(){const _0x1f7d54=_0x24f9af;_0x53443f[_0x1f7d54('0x25be')]=[];const _0x1eccac=[];_0x53443f[_0x1f7d54('0x1e01')]['type']&&_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x1d7')][_0x1f7d54('0xc2e')]()===_0x1f7d54('0x1')&&_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x167b')]===_0x1f7d54('0x25fb')&&(_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x1224')]=_0x4c9b52[_0x1f7d54('0x277c')]?(_0x53443f['gotoif']['prefix']||'')+_0x1f7d54('0x124d')+_0x4c9b52[_0x1f7d54('0x277c')]+'}':(_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x1f71')]||'')+_0x1f7d54('0x1275'),_0x4c9b52[_0x1f7d54('0x801')]!==_0x1f7d54('0x1dc')?_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x784')][_0x1f7d54('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x53443f['gotoif'][_0x1f7d54('0x784')]+=_0x1f7d54('0x1609')):_0x53443f[_0x1f7d54('0x1e01')]['options']=_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x784')][_0x1f7d54('0x10a4')](_0x1f7d54('0x1609'),''));if(_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x167b')]&&_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x167b')]===_0x1f7d54('0x1d56')){}else switch((_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x8a5')]||_0x53443f[_0x1f7d54('0x1e01')]['appType'])[_0x1f7d54('0xc2e')]()){case'set':_0x53443f['gotoif'][_0x1f7d54('0xd6b')]=_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x1a8d')]+'='+_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x49')];break;case _0x1f7d54('0x1d56'):break;default:_0x1eccac[0x0]=_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0xf2b')],_0x1eccac[0x1]=_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x86a')],_0x1eccac[0x2]=_0x53443f[_0x1f7d54('0x1e01')][_0x1f7d54('0x1474')],_0x53443f['gotoif']['appdata']=_0x1eccac['join'](',');}_0x4cbdd9(_0x53443f[_0x1f7d54('0x1e01')]);}function _0x4cbdd9(_0x4638de){_0x39c128['hide'](_0x4638de);}}const _0x409ac4=_0x1c4592;_0x344ef4[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),_0x34e79e('0x15'),'api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x344ef4(_0x1f7c3b,_0x548e26,_0x14f373,_0x8f43c8,_0x5f5785,_0x4c84a3,_0xfd46f8,_0x264faf){const _0x5dac41=_0x34e79e,_0x1347dd=this;_0x1347dd[_0x5dac41('0x9cb')]=_0xfd46f8[_0x5dac41('0x24cc')](),_0x1347dd[_0x5dac41('0x25be')]=[],_0x1347dd[_0x5dac41('0x14e4')]=_0x5dac41('0x17ef')+(_0x8f43c8[_0x5dac41('0x167b')]||_0x8f43c8['app'])[_0x5dac41('0x25e6')](),_0x1347dd['gotop']=angular[_0x5dac41('0x2669')](_0x8f43c8),_0x1347dd['crudPermissions']=_0x264faf,_0x1347dd[_0x5dac41('0x1193')]={};if(_0x1347dd[_0x5dac41('0x1598')]['appdata'])switch(_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x167b')]?_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x167b')][_0x5dac41('0xc2e')]():_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x8a5')][_0x5dac41('0xc2e')]()){case'custom':break;case'dialogflow':{const _0x1924bc=_0x1347dd[_0x5dac41('0x1598')]['appdata']['split'](',');_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x234b')]=_0x1924bc[0x0],_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x175b')]=_0x1924bc[0x1],_0x1347dd['gotop'][_0x5dac41('0xf50')]=_0x1924bc[_0x5dac41('0x845')](0x2,_0x1924bc['length'])[_0x5dac41('0x185f')](',');}break;case'amazonlex':{const _0x48fe50=_0x1347dd[_0x5dac41('0x1598')]['appdata'][_0x5dac41('0x1497')](',');_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x27f2')]=_0x48fe50[0x0],_0x1347dd['gotop'][_0x5dac41('0x1b58')]=_0x48fe50[0x1],_0x1347dd['gotop'][_0x5dac41('0xb70')]=_0x48fe50[0x2],_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x4eb')]=_0x48fe50[0x3],_0x1347dd[_0x5dac41('0x1598')]['welcomemessage']=_0x48fe50[_0x5dac41('0x845')](0x4,_0x48fe50[_0x5dac41('0x2566')])[_0x5dac41('0x185f')](',');}break;case _0x5dac41('0x808'):{const _0x3b2265=_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0xd6b')][_0x5dac41('0x1497')](',');_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x5fd')]=isNaN(_0x3b2265[0x0])?_0x3b2265[0x0]:parseInt(_0x3b2265[0x0],0xa),_0x1347dd['gotop'][_0x5dac41('0x16db')]=_0x3b2265['slice'](0x1,_0x3b2265[_0x5dac41('0x2566')])['join'](',');}break;case _0x5dac41('0x15e2'):_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x16db')]=_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0xd6b')];break;case'set':_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x1a8d')]=_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0xd6b')]['split']('=')[0x0],_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x49')]=_0x1347dd[_0x5dac41('0x1598')]['appdata']['split']('=')[0x1];break;case _0x5dac41('0x2631'):_0x1347dd['gotop']['project']=_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0xd6b')];break;default:{const _0xd3467b=_0x1347dd['gotop'][_0x5dac41('0xd6b')][_0x5dac41('0x1497')](',');_0x1347dd[_0x5dac41('0x1598')]['priority']=_0x283545()[_0x5dac41('0x213d')](_0xd3467b[0x0])?_0xd3467b[0x0]:isNaN(_0xd3467b[0x0])?_0xd3467b[0x0]:parseInt(_0xd3467b[0x0],0xa);}break;}else{}_0x1347dd[_0x5dac41('0x1598')]['type']&&_0x1347dd[_0x5dac41('0x1598')]['type'][_0x5dac41('0xc2e')]()===_0x5dac41('0x1')&&_0x1347dd[_0x5dac41('0x1598')]['appType'][_0x5dac41('0xc2e')]()===_0x5dac41('0x229c')&&(_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x1f71')]=_0x1347dd['gotop'][_0x5dac41('0x1224')]?_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x1224')]['split']('$')[0x0]:undefined,_0x1347dd[_0x5dac41('0x1598')]['callerId']=_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x8de')]?'CALLERID(all)='+_0x1347dd[_0x5dac41('0x1598')][_0x5dac41('0x8de')]:undefined);_0x1347dd[_0x5dac41('0xb66')]=_0x5679ad,_0x1347dd[_0x5dac41('0xca7')]=_0x5776f3;function _0x5679ad(){const _0x12dc94=_0x5dac41;_0x1347dd[_0x12dc94('0x25be')]=[];const _0x27e1d1=[];_0x1347dd['gotop'][_0x12dc94('0x1d7')]&&_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x1d7')]['toLowerCase']()===_0x12dc94('0x1')&&_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x167b')]===_0x12dc94('0x25fb')&&(_0x1347dd['gotop']['phone']=_0x5f5785[_0x12dc94('0x277c')]?(_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x1f71')]||'')+_0x12dc94('0x124d')+_0x5f5785[_0x12dc94('0x277c')]+'}':(_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x1f71')]||'')+_0x12dc94('0x1275'),_0x5f5785['recordingFormat']!==_0x12dc94('0x1dc')?_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x784')][_0x12dc94('0x821')](_0x12dc94('0x1609'))<0x0&&(_0x1347dd[_0x12dc94('0x1598')]['options']+=_0x12dc94('0x1609')):_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x784')]=_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x784')][_0x12dc94('0x10a4')]('U(xcally-mixmonitor-context)',''));if(_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x167b')]&&_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x167b')]==='custom'){}else switch((_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x8a5')]||_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x167b')])[_0x12dc94('0xc2e')]()){case'set':_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0xd6b')]=_0x1347dd['gotop']['name']+'='+_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x49')];break;case _0x12dc94('0x1d56'):break;default:_0x27e1d1[0x0]=_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0x155b')],_0x1347dd[_0x12dc94('0x1598')][_0x12dc94('0xd6b')]=_0x27e1d1[_0x12dc94('0x185f')](',');}_0x5776f3(_0x1347dd[_0x12dc94('0x1598')]);}function _0x5776f3(_0x4538d0){_0x1f7c3b['hide'](_0x4538d0);}}const _0x4a19cb=_0x344ef4;_0x5c8099[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x123b'),_0x34e79e('0x1b5e'),_0x34e79e('0x13'),_0x34e79e('0x2630'),'intervals',_0x34e79e('0xd57'),_0x34e79e('0x519'),'Auth',_0x34e79e('0xe28')];function _0x5c8099(_0x5b237c,_0x542aab,_0x1924d5,_0x4bb610,_0x2eae22,_0x13e6a5,_0x996cf8,_0x1c7dc1,_0xf98759,_0x58fbc9){const _0x4edcc3=_0x34e79e,_0x53ebe7=this;_0x53ebe7['currentUser']=_0xf98759['getCurrentUser'](),_0x53ebe7[_0x4edcc3('0x25be')]=[],_0x53ebe7[_0x4edcc3('0x14e4')]=_0x4edcc3('0x2f9'),_0x53ebe7[_0x4edcc3('0x2630')]=angular[_0x4edcc3('0x2669')](_0x2eae22),_0x53ebe7[_0x4edcc3('0xec5')]=_0x13e6a5,_0x53ebe7[_0x4edcc3('0x1f7c')]=![],_0x53ebe7['types']=[_0x4edcc3('0xc8f'),_0x4edcc3('0x1d56'),_0x4edcc3('0x4b2')],_0x53ebe7[_0x4edcc3('0xe28')]=_0x58fbc9,_0x53ebe7[_0x4edcc3('0x1eb8')]=_0x4bb610['getDaysOfWeek'](),_0x53ebe7[_0x4edcc3('0x323')]=_0x4bb610[_0x4edcc3('0x1383')](),_0x53ebe7[_0x4edcc3('0xfed')]=_0x4bb610[_0x4edcc3('0xc35')](),_0x53ebe7[_0x4edcc3('0x1d59')]=_0x4bb610['getDaysOfMonth']();if(!_0x53ebe7[_0x4edcc3('0x2630')])_0x53ebe7[_0x4edcc3('0x2630')]={'interval':_0x4edcc3('0x2191')},_0x53ebe7[_0x4edcc3('0x1d7')]=_0x4edcc3('0xc8f'),_0x53ebe7[_0x4edcc3('0x14e4')]=_0x4edcc3('0xbee'),_0x53ebe7[_0x4edcc3('0x1f7c')]=!![];else{if(_0x53ebe7[_0x4edcc3('0x2630')][_0x4edcc3('0x2630')]!==_0x4edcc3('0x2191')){_0x53ebe7[_0x4edcc3('0x1d7')]=_0x4edcc3('0x1d56');const _0x3c7022=_0x53ebe7[_0x4edcc3('0x2630')]['interval'][_0x4edcc3('0x1497')](','),_0x32a41f=_0x3c7022[0x0],_0x42137a=_0x3c7022[0x1],_0x51938e=_0x3c7022[0x2],_0x20c37a=_0x3c7022[0x3];if(_0x32a41f!=='*'){const _0x576efd=_0x32a41f['split']('-')[0x0],_0x5bfd64=_0x32a41f[_0x4edcc3('0x1497')]('-')[0x1];let _0xffc207;_0xffc207=new Date(),_0xffc207[_0x4edcc3('0x26f3')](Number(_0x576efd[_0x4edcc3('0x1497')](':')[0x0])),_0xffc207[_0x4edcc3('0x18d')](Number(_0x576efd['split'](':')[0x1])),_0x53ebe7[_0x4edcc3('0x9c0')]=_0xffc207,_0xffc207=new Date(),_0xffc207[_0x4edcc3('0x26f3')](Number(_0x5bfd64[_0x4edcc3('0x1497')](':')[0x0])),_0xffc207[_0x4edcc3('0x18d')](Number(_0x5bfd64[_0x4edcc3('0x1497')](':')[0x1])),_0x53ebe7[_0x4edcc3('0x4a7')]=_0xffc207;}_0x42137a!=='*'&&(_0x53ebe7[_0x4edcc3('0x240c')]=_0x42137a[_0x4edcc3('0x1497')]('-')[0x0],_0x53ebe7[_0x4edcc3('0x6c2')]=_0x42137a[_0x4edcc3('0x1497')]('-')[0x1]),_0x51938e!=='*'&&(_0x53ebe7[_0x4edcc3('0x1d91')]=_0x51938e['split']('-')[0x0],_0x53ebe7[_0x4edcc3('0x883')]=_0x51938e[_0x4edcc3('0x1497')]('-')[0x1]),_0x20c37a!=='*'&&(_0x53ebe7[_0x4edcc3('0x1317')]=_0x20c37a[_0x4edcc3('0x1497')]('-')[0x0],_0x53ebe7[_0x4edcc3('0x3dc')]=_0x20c37a[_0x4edcc3('0x1497')]('-')[0x1]);}else _0x53ebe7['type']=_0x4edcc3('0xc8f');}_0x5b237c[_0x4edcc3('0x4b9')]['id']&&!_0x53ebe7['interval']['application']&&(_0x53ebe7['interval'][_0x4edcc3('0x20d0')]=_0x5b237c[_0x4edcc3('0x4b9')]['id']);_0x53ebe7[_0x4edcc3('0x2630')][_0x4edcc3('0x20d0')]&&_0x53ebe7['interval'][_0x4edcc3('0x193')]&&(_0x53ebe7['type']=_0x4edcc3('0x4b2'));_0x53ebe7[_0x4edcc3('0x267f')]=_0x492872,_0x53ebe7[_0x4edcc3('0x2791')]=_0x5763e4,_0x53ebe7[_0x4edcc3('0xca7')]=_0x2b6477;_0x53ebe7[_0x4edcc3('0x2630')][_0x4edcc3('0x193')]&&(_0xf98759[_0x4edcc3('0x1516')](_0x4edcc3('0xe23'))?_0x1c7dc1[_0x4edcc3('0x2630')][_0x4edcc3('0x1335')]({'fields':_0x4edcc3('0x27dc'),'IntervalId':_0x4edcc3('0x954'),'nolimit':!![]})[_0x4edcc3('0x1714')][_0x4edcc3('0x2788')](function(_0x43fd04){const _0x5088be=_0x4edcc3;_0x53ebe7[_0x5088be('0xec5')]=_0x43fd04[_0x5088be('0x25df')]||[];})[_0x4edcc3('0x1cb5')](function(_0x2a21af){const _0x5955fc=_0x4edcc3;_0x996cf8[_0x5955fc('0x5e8')]({'title':_0x2a21af[_0x5955fc('0x1b51')]?'API:'+_0x2a21af[_0x5955fc('0x1b51')]+_0x5955fc('0x1b0b')+_0x2a21af[_0x5955fc('0x22ce')]:'SYSTEM:GET_INTERVALS','msg':_0x2a21af[_0x5955fc('0x11fc')]?JSON[_0x5955fc('0x1be0')](_0x2a21af['data']):_0x2a21af[_0x5955fc('0x17df')]()});}):_0x1c7dc1[_0x4edcc3('0x2630')][_0x4edcc3('0x1335')]({'fields':_0x4edcc3('0x27dc'),'IntervalId':'null','nolimit':!![]})[_0x4edcc3('0x1714')][_0x4edcc3('0x2788')](function(_0x41d686){const _0x328913=_0x4edcc3;_0x53ebe7[_0x328913('0xec5')]=_0x41d686[_0x328913('0x25df')]||[];})[_0x4edcc3('0x2788')](function(){const _0x541131=_0x4edcc3;return _0x1c7dc1[_0x541131('0xec9')][_0x541131('0x1335')]({'userProfileId':_0x53ebe7[_0x541131('0x9cb')][_0x541131('0x237f')],'sectionId':0x3ec})[_0x541131('0x1714')];})[_0x4edcc3('0x2788')](function(_0x55333b){const _0x397b9c=_0x4edcc3,_0x5e3d4b=_0x55333b&&_0x55333b[_0x397b9c('0x25df')]?_0x55333b[_0x397b9c('0x25df')][0x0]:null;if(!_0x5e3d4b)_0x53ebe7[_0x397b9c('0xec5')]=[];else{if(!_0x5e3d4b[_0x397b9c('0x1c0a')])return _0x1c7dc1[_0x397b9c('0x1050')]['get']({'sectionId':_0x5e3d4b['id']})[_0x397b9c('0x1714')][_0x397b9c('0x2788')](function(_0x1fef94){const _0x28dbb9=_0x397b9c,_0xa42b78=_0x1fef94&&_0x1fef94[_0x28dbb9('0x25df')]?_0x1fef94[_0x28dbb9('0x25df')]:[],_0x25fded=[];let _0x3e6d27=null;_0x53ebe7['interval']&&(_0x3e6d27=_0x283545()[_0x28dbb9('0x20e8')](_0x53ebe7['intervals'],{'name':_0x53ebe7[_0x28dbb9('0x2630')][_0x28dbb9('0x20d0')]})),_0x3e6d27&&!_0x283545()['some'](_0xa42b78,['resourceId',_0x3e6d27['id']])&&_0x53ebe7[_0x28dbb9('0xec5')][_0x28dbb9('0x1534')](function(_0x1675a1){const _0x52e330=_0x28dbb9;_0x1675a1['id']===_0x3e6d27['id']&&(_0x1675a1['canSelect']=![],_0x25fded[_0x52e330('0x13e3')](_0x1675a1));}),_0x53ebe7[_0x28dbb9('0xec5')]=_0x25fded;});}})[_0x4edcc3('0x1cb5')](function(_0x55e0eb){const _0x1ca87b=_0x4edcc3;_0x996cf8['error']({'title':_0x55e0eb[_0x1ca87b('0x1b51')]?_0x1ca87b('0x15d1')+_0x55e0eb['status']+_0x1ca87b('0x1b0b')+_0x55e0eb['statusText']:_0x1ca87b('0x2151'),'msg':_0x55e0eb['data']?JSON[_0x1ca87b('0x1be0')](_0x55e0eb[_0x1ca87b('0x11fc')]):_0x55e0eb['toString']()});}));function _0x75fd3b(){const _0x3e4280=_0x4edcc3;switch(_0x53ebe7[_0x3e4280('0x1d7')]){case _0x3e4280('0xc8f'):case _0x3e4280('0x4b2'):return _0x3e4280('0x2191');case _0x3e4280('0x1d56'):{const _0x59a525=[];if(_0x53ebe7[_0x3e4280('0x9c0')]!=='*'&&_0x53ebe7[_0x3e4280('0x9c0')]&&_0x53ebe7[_0x3e4280('0x4a7')]){const _0x10158c=(_0x53ebe7[_0x3e4280('0x9c0')][_0x3e4280('0x130a')]()<0xa?'0':'')+_0x53ebe7[_0x3e4280('0x9c0')]['getHours']()+':'+((_0x53ebe7['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x53ebe7[_0x3e4280('0x9c0')][_0x3e4280('0x2649')]()),_0x47d1c0=(_0x53ebe7['timeRangeTo'][_0x3e4280('0x130a')]()<0xa?'0':'')+_0x53ebe7['timeRangeTo']['getHours']()+':'+((_0x53ebe7['timeRangeTo'][_0x3e4280('0x2649')]()<0xa?'0':'')+_0x53ebe7[_0x3e4280('0x4a7')]['getMinutes']());_0x59a525['push'](_0x10158c+'-'+_0x47d1c0);}else _0x59a525[_0x3e4280('0x13e3')]('*');return _0x53ebe7[_0x3e4280('0x240c')]?_0x53ebe7[_0x3e4280('0x6c2')]?_0x59a525['push'](_0x53ebe7[_0x3e4280('0x240c')]+'-'+_0x53ebe7[_0x3e4280('0x6c2')]):_0x59a525['push'](_0x53ebe7[_0x3e4280('0x240c')]):_0x59a525[_0x3e4280('0x13e3')]('*'),_0x53ebe7[_0x3e4280('0x1d91')]?_0x53ebe7[_0x3e4280('0x883')]?_0x59a525[_0x3e4280('0x13e3')](_0x53ebe7[_0x3e4280('0x1d91')]+'-'+_0x53ebe7[_0x3e4280('0x883')]):_0x59a525[_0x3e4280('0x13e3')](_0x53ebe7[_0x3e4280('0x1d91')]):_0x59a525['push']('*'),_0x53ebe7['monthFrom']?_0x53ebe7[_0x3e4280('0x3dc')]?_0x59a525[_0x3e4280('0x13e3')](_0x53ebe7['monthFrom']+'-'+_0x53ebe7[_0x3e4280('0x3dc')]):_0x59a525[_0x3e4280('0x13e3')](_0x53ebe7[_0x3e4280('0x1317')]):_0x59a525['push']('*'),_0x59a525[_0x3e4280('0x185f')]();}}}function _0x492872(){const _0xb49d8d=_0x4edcc3;_0x53ebe7['errors']=[],_0x53ebe7[_0xb49d8d('0x2630')][_0xb49d8d('0x2630')]=_0x75fd3b(),_0x1c7dc1[_0xb49d8d('0x2630')][_0xb49d8d('0xbd0')](_0x53ebe7[_0xb49d8d('0x2630')])[_0xb49d8d('0x1714')][_0xb49d8d('0x2788')](function(_0x3ba0bc){const _0x3afdf1=_0xb49d8d;_0x53ebe7[_0x3afdf1('0xec5')][_0x3afdf1('0x13e3')](_0x3ba0bc),_0x996cf8[_0x3afdf1('0x173b')]({'title':_0x3afdf1('0x1146'),'msg':_0x53ebe7[_0x3afdf1('0x2630')]['name']?_0x53ebe7[_0x3afdf1('0x2630')][_0x3afdf1('0x1a8d')]+_0x3afdf1('0x1e4a'):''}),_0x2b6477();})[_0xb49d8d('0x1cb5')](function(_0x466a63){const _0x2b6884=_0xb49d8d;console[_0x2b6884('0x5e8')](_0x466a63),_0x53ebe7[_0x2b6884('0x25be')]=_0x466a63[_0x2b6884('0x11fc')][_0x2b6884('0x25be')]||[{'message':_0x466a63[_0x2b6884('0x17df')](),'type':_0x2b6884('0x94a')}];});}function _0x5763e4(){const _0x596a9a=_0x4edcc3;_0x53ebe7[_0x596a9a('0x25be')]=[],_0x53ebe7[_0x596a9a('0x2630')][_0x596a9a('0x2630')]=_0x75fd3b(),_0x53ebe7[_0x596a9a('0x2630')][_0x596a9a('0x193')]?(_0x53ebe7[_0x596a9a('0x1d7')]!==_0x596a9a('0x4b2')&&(_0x53ebe7[_0x596a9a('0x2630')][_0x596a9a('0x20d0')]=null),_0x2b6477(_0x53ebe7[_0x596a9a('0x2630')])):_0x1c7dc1['interval'][_0x596a9a('0x2740')]({'id':_0x53ebe7[_0x596a9a('0x2630')]['id']},_0x53ebe7['interval'])[_0x596a9a('0x1714')]['then'](function(_0x1c7d1f){const _0x92ad23=_0x596a9a,_0x59a039=_0x283545()[_0x92ad23('0x20e8')](_0x53ebe7[_0x92ad23('0xec5')],{'id':_0x1c7d1f['id']});_0x59a039&&_0x283545()[_0x92ad23('0x2503')](_0x59a039,_0x1c7d1f),_0x996cf8[_0x92ad23('0x173b')]({'title':_0x92ad23('0xd34'),'msg':_0x92ad23('0x14f1')}),_0x2b6477();})[_0x596a9a('0x1cb5')](function(_0x5b116d){const _0x157ccf=_0x596a9a;console[_0x157ccf('0x5e8')](_0x5b116d),_0x53ebe7[_0x157ccf('0x25be')]=_0x5b116d[_0x157ccf('0x11fc')]['errors']||[{'message':_0x5b116d[_0x157ccf('0x17df')](),'type':'api.interval.update'}];});}function _0x2b6477(_0x4baa7e){const _0x540b9a=_0x4edcc3;_0x542aab[_0x540b9a('0x19d')](_0x4baa7e);}}const _0x445c61=_0x5c8099;_0x3a2641[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),'whatsappAccount',_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3a2641(_0x1ad27c,_0x4093cd,_0x5f3f5d,_0x35a042,_0x4da66a,_0x4af7dc,_0x4d454c,_0x2b51fe){const _0x1e9aad=_0x34e79e,_0x3f6608=this;_0x3f6608['currentUser']=_0x4d454c[_0x1e9aad('0x24cc')](),_0x3f6608[_0x1e9aad('0x25be')]=[],_0x3f6608[_0x1e9aad('0x14e4')]=_0x1e9aad('0x17ef')+(_0x35a042['appType']||_0x35a042['app'])[_0x1e9aad('0x25e6')](),_0x3f6608['noop']=angular[_0x1e9aad('0x2669')](_0x35a042),_0x3f6608[_0x1e9aad('0xe28')]=_0x2b51fe,_0x3f6608[_0x1e9aad('0x1193')]={};if(_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xd6b')])switch(_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x167b')]?_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x167b')][_0x1e9aad('0xc2e')]():_0x3f6608['noop'][_0x1e9aad('0x8a5')]['toLowerCase']()){case'custom':break;case _0x1e9aad('0x5e1'):{const _0x38f77e=_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xd6b')][_0x1e9aad('0x1497')](',');_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x234b')]=_0x38f77e[0x0],_0x3f6608['noop'][_0x1e9aad('0x175b')]=_0x38f77e[0x1],_0x3f6608[_0x1e9aad('0x18dd')]['welcomemessage']=_0x38f77e['slice'](0x2,_0x38f77e[_0x1e9aad('0x2566')])[_0x1e9aad('0x185f')](',');}break;case _0x1e9aad('0x137a'):{const _0x290687=_0x3f6608['noop'][_0x1e9aad('0xd6b')][_0x1e9aad('0x1497')](',');_0x3f6608['noop'][_0x1e9aad('0x27f2')]=_0x290687[0x0],_0x3f6608['noop'][_0x1e9aad('0x1b58')]=_0x290687[0x1],_0x3f6608[_0x1e9aad('0x18dd')]['lexregion']=_0x290687[0x2],_0x3f6608['noop'][_0x1e9aad('0x4eb')]=_0x290687[0x3],_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xf50')]=_0x290687['slice'](0x4,_0x290687['length'])[_0x1e9aad('0x185f')](',');}break;case'autoreply':{const _0x953b95=_0x3f6608[_0x1e9aad('0x18dd')]['appdata'][_0x1e9aad('0x1497')](',');_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x5fd')]=isNaN(_0x953b95[0x0])?_0x953b95[0x0]:parseInt(_0x953b95[0x0],0xa),_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x16db')]=_0x953b95[_0x1e9aad('0x845')](0x1,_0x953b95['length'])[_0x1e9aad('0x185f')](',');}break;case'message':_0x3f6608['noop'][_0x1e9aad('0x16db')]=_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xd6b')];break;case _0x1e9aad('0x3a6'):_0x3f6608[_0x1e9aad('0x18dd')]['name']=_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xd6b')][_0x1e9aad('0x1497')]('=')[0x0],_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x49')]=_0x3f6608['noop']['appdata'][_0x1e9aad('0x1497')]('=')[0x1];break;case _0x1e9aad('0x2631'):_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x1bf6')]=_0x3f6608[_0x1e9aad('0x18dd')]['appdata'];break;default:{const _0x17d798=_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0xd6b')][_0x1e9aad('0x1497')](',');_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x49')]=_0x283545()[_0x1e9aad('0x213d')](_0x17d798[0x0])?_0x17d798[0x0]:isNaN(_0x17d798[0x0])?_0x17d798[0x0]:parseInt(_0x17d798[0x0],0xa);}break;}else{}_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x1d7')]&&_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x1d7')]['toLowerCase']()===_0x1e9aad('0x1')&&_0x3f6608['noop'][_0x1e9aad('0x167b')][_0x1e9aad('0xc2e')]()==='outbounddial'&&(_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x1f71')]=_0x3f6608['noop'][_0x1e9aad('0x1224')]?_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x1224')][_0x1e9aad('0x1497')]('$')[0x0]:undefined,_0x3f6608[_0x1e9aad('0x18dd')][_0x1e9aad('0x2081')]=_0x3f6608['noop'][_0x1e9aad('0x8de')]?_0x1e9aad('0x1834')+_0x3f6608['noop']['callerID']:undefined);_0x3f6608[_0x1e9aad('0xb66')]=_0x1ca0c4,_0x3f6608[_0x1e9aad('0xca7')]=_0x2e0903;function _0x1ca0c4(){const _0x7d4a81=_0x1e9aad;_0x3f6608['errors']=[];const _0x45736c=[];_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x1d7')]&&_0x3f6608['noop'][_0x7d4a81('0x1d7')][_0x7d4a81('0xc2e')]()===_0x7d4a81('0x1')&&_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x167b')]===_0x7d4a81('0x25fb')&&(_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x1224')]=_0x4da66a[_0x7d4a81('0x277c')]?(_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x1f71')]||'')+_0x7d4a81('0x124d')+_0x4da66a[_0x7d4a81('0x277c')]+'}':(_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x1f71')]||'')+'${EXTEN}',_0x4da66a[_0x7d4a81('0x801')]!==_0x7d4a81('0x1dc')?_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x784')][_0x7d4a81('0x821')](_0x7d4a81('0x1609'))<0x0&&(_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x784')]+=_0x7d4a81('0x1609')):_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x784')]=_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x784')]['replace'](_0x7d4a81('0x1609'),''));if(_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x167b')]&&_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x167b')]===_0x7d4a81('0x1d56')){}else switch((_0x3f6608['noop']['app']||_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x167b')])[_0x7d4a81('0xc2e')]()){case _0x7d4a81('0x3a6'):_0x3f6608['noop']['appdata']=_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x1a8d')]+'='+_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x49')];break;case _0x7d4a81('0x1d56'):break;default:_0x45736c[0x0]=_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0x49')],_0x3f6608[_0x7d4a81('0x18dd')][_0x7d4a81('0xd6b')]=_0x45736c[_0x7d4a81('0x185f')](',');}_0x2e0903(_0x3f6608[_0x7d4a81('0x18dd')]);}function _0x2e0903(_0x505604){const _0x28a37e=_0x1e9aad;_0x1ad27c[_0x28a37e('0x19d')](_0x505604);}}const _0x1bc801=_0x3a2641;_0x2ff2f1[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x1c51'),_0x34e79e('0x15'),'api','Auth','crudPermissions'];function _0x2ff2f1(_0x363fe9,_0x344ee4,_0x315a72,_0x2d59c5,_0x23ee0a,_0x3f4d6a,_0x28719d,_0x530bd5){const _0xa61a47=_0x34e79e,_0x44ee44=this;_0x44ee44[_0xa61a47('0x9cb')]=_0x28719d['getCurrentUser'](),_0x44ee44['errors']=[],_0x44ee44['title']=_0xa61a47('0x17ef')+(_0x2d59c5[_0xa61a47('0x167b')]||_0x2d59c5[_0xa61a47('0x8a5')])[_0xa61a47('0x25e6')](),_0x44ee44[_0xa61a47('0x1ab4')]=angular['copy'](_0x2d59c5),_0x44ee44[_0xa61a47('0xe28')]=_0x530bd5,_0x44ee44[_0xa61a47('0x1193')]={};if(_0x44ee44[_0xa61a47('0x1ab4')]['appdata'])switch(_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x167b')]?_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x167b')]['toLowerCase']():_0x44ee44['queue']['app'][_0xa61a47('0xc2e')]()){case _0xa61a47('0x1d56'):break;case _0xa61a47('0x5e1'):{const _0x5a0442=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0xd6b')][_0xa61a47('0x1497')](',');_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x234b')]=_0x5a0442[0x0],_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x175b')]=_0x5a0442[0x1],_0x44ee44['queue'][_0xa61a47('0xf50')]=_0x5a0442[_0xa61a47('0x845')](0x2,_0x5a0442['length'])[_0xa61a47('0x185f')](',');}break;case _0xa61a47('0x137a'):{const _0x1ae2c8=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0xd6b')][_0xa61a47('0x1497')](',');_0x44ee44[_0xa61a47('0x1ab4')]['accesskeyid']=_0x1ae2c8[0x0],_0x44ee44[_0xa61a47('0x1ab4')]['secretaccesskey']=_0x1ae2c8[0x1],_0x44ee44['queue']['lexregion']=_0x1ae2c8[0x2],_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x4eb')]=_0x1ae2c8[0x3],_0x44ee44[_0xa61a47('0x1ab4')]['welcomemessage']=_0x1ae2c8[_0xa61a47('0x845')](0x4,_0x1ae2c8['length'])[_0xa61a47('0x185f')](',');}break;case _0xa61a47('0x808'):{const _0x40f69d=_0x44ee44[_0xa61a47('0x1ab4')]['appdata'][_0xa61a47('0x1497')](',');_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x5fd')]=isNaN(_0x40f69d[0x0])?_0x40f69d[0x0]:parseInt(_0x40f69d[0x0],0xa),_0x44ee44[_0xa61a47('0x1ab4')]['text']=_0x40f69d['slice'](0x1,_0x40f69d[_0xa61a47('0x2566')])[_0xa61a47('0x185f')](',');}break;case _0xa61a47('0x15e2'):_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x16db')]=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0xd6b')];break;case _0xa61a47('0x3a6'):_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x1a8d')]=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0xd6b')]['split']('=')[0x0],_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x49')]=_0x44ee44['queue']['appdata'][_0xa61a47('0x1497')]('=')[0x1];break;case _0xa61a47('0x2631'):_0x44ee44['queue'][_0xa61a47('0x1bf6')]=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0xd6b')];break;default:{const _0x2e4695=_0x44ee44['queue']['appdata'][_0xa61a47('0x1497')](',');_0x44ee44['queue'][_0xa61a47('0x1ab4')]=_0x283545()[_0xa61a47('0x213d')](_0x2e4695[0x0])?_0x2e4695[0x0]:isNaN(_0x2e4695[0x0])?_0x2e4695[0x0]:parseInt(_0x2e4695[0x0],0xa),_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x24e4')]=_0x283545()[_0xa61a47('0x213d')](_0x2e4695[0x1])?_0x2e4695[0x1]:isNaN(_0x2e4695[0x1])?_0x2e4695[0x1]:parseInt(_0x2e4695[0x1],0xa);}break;}else _0x44ee44[_0xa61a47('0x1ab4')]['queue']=0x12c,_0x44ee44['queue'][_0xa61a47('0x24e4')]=0x12c;_0x44ee44['queue'][_0xa61a47('0x1d7')]&&_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x1d7')][_0xa61a47('0xc2e')]()===_0xa61a47('0x1')&&_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x167b')][_0xa61a47('0xc2e')]()===_0xa61a47('0x229c')&&(_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x1f71')]=_0x44ee44['queue'][_0xa61a47('0x1224')]?_0x44ee44['queue'][_0xa61a47('0x1224')]['split']('$')[0x0]:undefined,_0x44ee44[_0xa61a47('0x1ab4')]['callerId']=_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x8de')]?_0xa61a47('0x1834')+_0x44ee44[_0xa61a47('0x1ab4')][_0xa61a47('0x8de')]:undefined);_0x44ee44[_0xa61a47('0xb66')]=_0x2cf39e,_0x44ee44['closeDialog']=_0x25db82,_0x28719d[_0xa61a47('0x1516')]('admin')?_0x3f4d6a[_0xa61a47('0x1170')][_0xa61a47('0x1335')]({'fields':_0xa61a47('0xafa'),'sort':'name','nolimit':_0xa61a47('0x1001')})[_0xa61a47('0x1714')]['then'](function(_0x3637da){const _0x5e2ce3=_0xa61a47;_0x44ee44[_0x5e2ce3('0x283e')]=_0x3637da['rows']||[];})[_0xa61a47('0x1cb5')](function(_0x553435){const _0x1d1fbd=_0xa61a47;_0x315a72['error']({'title':_0x553435[_0x1d1fbd('0x1b51')]?_0x1d1fbd('0x15d1')+_0x553435[_0x1d1fbd('0x1b51')]+'\x20-\x20'+_0x553435[_0x1d1fbd('0x22ce')]:_0x1d1fbd('0x2763'),'msg':_0x553435[_0x1d1fbd('0x11fc')]?JSON[_0x1d1fbd('0x1be0')](_0x553435[_0x1d1fbd('0x11fc')]):_0x553435[_0x1d1fbd('0x17df')]()});}):_0x3f4d6a[_0xa61a47('0x1170')][_0xa61a47('0x1335')]({'fields':_0xa61a47('0xafa'),'sort':'name','nolimit':_0xa61a47('0x1001')})[_0xa61a47('0x1714')][_0xa61a47('0x2788')](function(_0x52bf08){_0x44ee44['queues']=_0x52bf08['rows']||[];})[_0xa61a47('0x2788')](function(){const _0x5aeb94=_0xa61a47;return _0x3f4d6a[_0x5aeb94('0xec9')][_0x5aeb94('0x1335')]({'userProfileId':_0x44ee44['currentUser'][_0x5aeb94('0x237f')],'sectionId':0x836})['$promise'];})[_0xa61a47('0x2788')](function(_0x1d8012){const _0x467992=_0xa61a47,_0x464bb9=_0x1d8012&&_0x1d8012[_0x467992('0x25df')]?_0x1d8012[_0x467992('0x25df')][0x0]:null;if(!_0x464bb9){const _0x434bc2=[];let _0x35fe8f=null;_0x44ee44[_0x467992('0x1ab4')]&&(_0x35fe8f=_0x283545()[_0x467992('0x20e8')](_0x44ee44[_0x467992('0x283e')],{'name':_0x44ee44[_0x467992('0x1ab4')][_0x467992('0x1ab4')]}));for(let _0x4f1fe6=0x0;_0x4f1fe6<_0x44ee44[_0x467992('0x283e')][_0x467992('0x2566')];_0x4f1fe6++){_0x35fe8f&&_0x44ee44['queues'][_0x4f1fe6]['id']===_0x35fe8f['id']&&(_0x44ee44[_0x467992('0x283e')][_0x4f1fe6][_0x467992('0x3bf')]=![],_0x434bc2[_0x467992('0x13e3')](_0x44ee44['queues'][_0x4f1fe6]));}_0x44ee44[_0x467992('0x283e')]=_0x434bc2;}else{if(!_0x464bb9['autoAssociation'])return _0x3f4d6a[_0x467992('0x1050')][_0x467992('0x1335')]({'sectionId':_0x464bb9['id']})[_0x467992('0x1714')]['then'](function(_0x5d95de){const _0x2fa8bb=_0x467992,_0x48b3a7=_0x283545()[_0x2fa8bb('0x155d')](_0x5d95de[_0x2fa8bb('0x25df')],function(_0xe89aab){const _0x26c0a7=_0x2fa8bb;return _0x283545()[_0x26c0a7('0x20e8')](_0x44ee44[_0x26c0a7('0x283e')],{'id':_0xe89aab[_0x26c0a7('0x2707')]});});let _0xf8b69d=null;_0x44ee44[_0x2fa8bb('0x1ab4')]&&(_0xf8b69d=_0x283545()['find'](_0x44ee44[_0x2fa8bb('0x283e')],{'name':_0x44ee44['queue'][_0x2fa8bb('0x1ab4')]}));if(_0xf8b69d&&!_0x283545()['some'](_0x48b3a7,['id',_0xf8b69d['id']])){const _0x40b195=_0x283545()['find'](_0x44ee44[_0x2fa8bb('0x283e')],{'id':_0xf8b69d['id']});_0x40b195[_0x2fa8bb('0x3bf')]=![],_0x48b3a7[_0x2fa8bb('0x13e3')](_0x40b195);}_0x44ee44[_0x2fa8bb('0x283e')]=_0x48b3a7;});}})[_0xa61a47('0x1cb5')](function(_0x434183){const _0x7962bc=_0xa61a47;_0x315a72[_0x7962bc('0x5e8')]({'title':_0x434183[_0x7962bc('0x1b51')]?'API:'+_0x434183['status']+_0x7962bc('0x1b0b')+_0x434183[_0x7962bc('0x22ce')]:'SYSTEM:GETqueues','msg':_0x434183[_0x7962bc('0x11fc')]?JSON['stringify'](_0x434183[_0x7962bc('0x11fc')]):_0x434183[_0x7962bc('0x17df')]()});});function _0x2cf39e(){const _0x4c4969=_0xa61a47;_0x44ee44['errors']=[];const _0x2ea2d9=[];_0x44ee44['queue'][_0x4c4969('0x1d7')]&&_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x1d7')][_0x4c4969('0xc2e')]()===_0x4c4969('0x1')&&_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x167b')]===_0x4c4969('0x25fb')&&(_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x1224')]=_0x23ee0a[_0x4c4969('0x277c')]?(_0x44ee44['queue'][_0x4c4969('0x1f71')]||'')+_0x4c4969('0x124d')+_0x23ee0a['cutdigits']+'}':(_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x1f71')]||'')+_0x4c4969('0x1275'),_0x23ee0a[_0x4c4969('0x801')]!==_0x4c4969('0x1dc')?_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x784')][_0x4c4969('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x784')]+=_0x4c4969('0x1609')):_0x44ee44[_0x4c4969('0x1ab4')]['options']=_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x784')][_0x4c4969('0x10a4')](_0x4c4969('0x1609'),''));const _0x458bfb=_0x283545()[_0x4c4969('0x20e8')](_0x44ee44[_0x4c4969('0x283e')],{'name':_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x1ab4')]});_0x458bfb&&(_0x44ee44[_0x4c4969('0x1ab4')][_0x283545()[_0x4c4969('0x1df5')]('whatsapp')+_0x4c4969('0xec4')]=_0x458bfb['id']);if(_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x167b')]&&_0x44ee44['queue'][_0x4c4969('0x167b')]===_0x4c4969('0x1d56')){}else switch((_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x8a5')]||_0x44ee44['queue'][_0x4c4969('0x167b')])['toLowerCase']()){case'set':_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0xd6b')]=_0x44ee44['queue'][_0x4c4969('0x1a8d')]+'='+_0x44ee44[_0x4c4969('0x1ab4')][_0x4c4969('0x49')];break;case'custom':break;default:_0x2ea2d9[0x0]=_0x44ee44[_0x4c4969('0x1ab4')]['queue'],_0x2ea2d9[0x1]=_0x44ee44[_0x4c4969('0x1ab4')]['timeout'],_0x44ee44['queue'][_0x4c4969('0xd6b')]=_0x2ea2d9[_0x4c4969('0x185f')](',');}_0x25db82(_0x44ee44[_0x4c4969('0x1ab4')]);}function _0x25db82(_0x121f74){const _0x5dd78c=_0xa61a47;_0x363fe9[_0x5dd78c('0x19d')](_0x121f74);}}const _0x3b15aa=_0x2ff2f1;_0x3a1af1['$inject']=['$mdDialog','$q','toasty',_0x34e79e('0x1c51'),'whatsappAccount','api',_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x3a1af1(_0x36d6ef,_0x3d5f8b,_0x5368c0,_0x4904e6,_0x59dcea,_0x5d328b,_0x4c8b00,_0x2ca1a5){const _0x107129=_0x34e79e,_0x5d6121=this;_0x5d6121[_0x107129('0x9cb')]=_0x4c8b00[_0x107129('0x24cc')](),_0x5d6121['errors']=[],_0x5d6121[_0x107129('0x14e4')]=_0x107129('0x17ef')+(_0x4904e6['appType']||_0x4904e6[_0x107129('0x8a5')])[_0x107129('0x25e6')](),_0x5d6121[_0x107129('0xe81')]=angular[_0x107129('0x2669')](_0x4904e6),_0x5d6121[_0x107129('0xe28')]=_0x2ca1a5,_0x5d6121[_0x107129('0x1193')]={};if(_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')])switch(_0x5d6121['system'][_0x107129('0x167b')]?_0x5d6121[_0x107129('0xe81')][_0x107129('0x167b')][_0x107129('0xc2e')]():_0x5d6121[_0x107129('0xe81')]['app']['toLowerCase']()){case'custom':break;case _0x107129('0x5e1'):{const _0x26b0ee=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')][_0x107129('0x1497')](',');_0x5d6121[_0x107129('0xe81')][_0x107129('0x234b')]=_0x26b0ee[0x0],_0x5d6121[_0x107129('0xe81')]['language']=_0x26b0ee[0x1],_0x5d6121['system']['welcomemessage']=_0x26b0ee[_0x107129('0x845')](0x2,_0x26b0ee[_0x107129('0x2566')])[_0x107129('0x185f')](',');}break;case _0x107129('0x137a'):{const _0x4cb1c7=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')][_0x107129('0x1497')](',');_0x5d6121[_0x107129('0xe81')]['accesskeyid']=_0x4cb1c7[0x0],_0x5d6121[_0x107129('0xe81')][_0x107129('0x1b58')]=_0x4cb1c7[0x1],_0x5d6121[_0x107129('0xe81')][_0x107129('0xb70')]=_0x4cb1c7[0x2],_0x5d6121[_0x107129('0xe81')][_0x107129('0x4eb')]=_0x4cb1c7[0x3],_0x5d6121[_0x107129('0xe81')]['welcomemessage']=_0x4cb1c7[_0x107129('0x845')](0x4,_0x4cb1c7[_0x107129('0x2566')])['join'](',');}break;case _0x107129('0x808'):{const _0xae48ea=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')][_0x107129('0x1497')](',');_0x5d6121[_0x107129('0xe81')]['times']=isNaN(_0xae48ea[0x0])?_0xae48ea[0x0]:parseInt(_0xae48ea[0x0],0xa),_0x5d6121[_0x107129('0xe81')][_0x107129('0x16db')]=_0xae48ea['slice'](0x1,_0xae48ea[_0x107129('0x2566')])['join'](',');}break;case'message':_0x5d6121[_0x107129('0xe81')][_0x107129('0x16db')]=_0x5d6121[_0x107129('0xe81')]['appdata'];break;case'set':_0x5d6121[_0x107129('0xe81')][_0x107129('0x1a8d')]=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')][_0x107129('0x1497')]('=')[0x0],_0x5d6121[_0x107129('0xe81')]['value']=_0x5d6121[_0x107129('0xe81')]['appdata']['split']('=')[0x1];break;case _0x107129('0x2631'):_0x5d6121[_0x107129('0xe81')][_0x107129('0x1bf6')]=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')];break;default:{const _0x5dddd6=_0x5d6121[_0x107129('0xe81')][_0x107129('0xd6b')][_0x107129('0x1497')](',');_0x5d6121[_0x107129('0xe81')][_0x107129('0x28d')]=_0x283545()[_0x107129('0x213d')](_0x5dddd6[0x0])?_0x5dddd6[0x0]:isNaN(_0x5dddd6[0x0])?_0x5dddd6[0x0]:parseInt(_0x5dddd6[0x0],0xa),_0x5d6121[_0x107129('0xe81')][_0x107129('0xa72')]=_0x283545()['isEmpty'](_0x5dddd6[0x1])?_0x5dddd6[0x1]:isNaN(_0x5dddd6[0x1])?_0x5dddd6[0x1]:parseInt(_0x5dddd6[0x1],0xa);}break;}else _0x5d6121[_0x107129('0xe81')]['variable']='';_0x5d6121['system'][_0x107129('0x1d7')]&&_0x5d6121[_0x107129('0xe81')][_0x107129('0x1d7')][_0x107129('0xc2e')]()===_0x107129('0x1')&&_0x5d6121['system'][_0x107129('0x167b')][_0x107129('0xc2e')]()===_0x107129('0x229c')&&(_0x5d6121[_0x107129('0xe81')][_0x107129('0x1f71')]=_0x5d6121[_0x107129('0xe81')][_0x107129('0x1224')]?_0x5d6121[_0x107129('0xe81')][_0x107129('0x1224')]['split']('$')[0x0]:undefined,_0x5d6121[_0x107129('0xe81')][_0x107129('0x2081')]=_0x5d6121[_0x107129('0xe81')]['callerID']?_0x107129('0x1834')+_0x5d6121[_0x107129('0xe81')][_0x107129('0x8de')]:undefined);_0x5d6121[_0x107129('0xb66')]=_0x1269c9,_0x5d6121[_0x107129('0xca7')]=_0x3edc82,_0x4c8b00[_0x107129('0x1516')](_0x107129('0xe23'))?_0x5d328b[_0x107129('0xa72')]['get']({'fields':_0x107129('0x1338'),'sort':_0x107129('0x1a8d'),'nolimit':'true'})[_0x107129('0x1714')][_0x107129('0x2788')](function(_0x5433f0){const _0x41dd36=_0x107129;_0x5d6121[_0x41dd36('0xf76')]=_0x5433f0['rows']||[];})[_0x107129('0x1cb5')](function(_0x41a10c){const _0x45ed17=_0x107129;_0x5368c0[_0x45ed17('0x5e8')]({'title':_0x41a10c[_0x45ed17('0x1b51')]?'API:'+_0x41a10c[_0x45ed17('0x1b51')]+_0x45ed17('0x1b0b')+_0x41a10c[_0x45ed17('0x22ce')]:_0x45ed17('0xe86'),'msg':_0x41a10c['data']?JSON[_0x45ed17('0x1be0')](_0x41a10c['data']):_0x41a10c[_0x45ed17('0x17df')]()});}):_0x5d328b['variable'][_0x107129('0x1335')]({'fields':_0x107129('0x1338'),'sort':_0x107129('0x1a8d'),'nolimit':'true'})[_0x107129('0x1714')][_0x107129('0x2788')](function(_0x39d878){const _0x4927c8=_0x107129;_0x5d6121['variables']=_0x39d878[_0x4927c8('0x25df')]||[];})[_0x107129('0x2788')](function(){const _0x3639e7=_0x107129;return _0x5d328b[_0x3639e7('0xec9')][_0x3639e7('0x1335')]({'userProfileId':_0x5d6121['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x3639e7('0x1714')];})[_0x107129('0x2788')](function(_0x3c067c){const _0x2b1019=_0x107129,_0x2a8eaf=_0x3c067c&&_0x3c067c['rows']?_0x3c067c[_0x2b1019('0x25df')][0x0]:null;if(!_0x2a8eaf){const _0x4bf59=[];let _0x42aaa7=null;_0x5d6121[_0x2b1019('0xe81')]&&(_0x42aaa7=_0x283545()[_0x2b1019('0x20e8')](_0x5d6121[_0x2b1019('0xf76')],{'name':_0x5d6121['system'][_0x2b1019('0xa72')]}));for(let _0x5a4f10=0x0;_0x5a4f10<_0x5d6121[_0x2b1019('0xf76')]['length'];_0x5a4f10++){_0x42aaa7&&_0x5d6121[_0x2b1019('0xf76')][_0x5a4f10]['id']===_0x42aaa7['id']&&(_0x5d6121[_0x2b1019('0xf76')][_0x5a4f10]['canSelect']=![],_0x4bf59['push'](_0x5d6121[_0x2b1019('0xf76')][_0x5a4f10]));}_0x5d6121[_0x2b1019('0xf76')]=_0x4bf59;}else{if(!_0x2a8eaf[_0x2b1019('0x1c0a')])return _0x5d328b[_0x2b1019('0x1050')][_0x2b1019('0x1335')]({'sectionId':_0x2a8eaf['id']})[_0x2b1019('0x1714')][_0x2b1019('0x2788')](function(_0x354596){const _0x5bd986=_0x2b1019,_0x201cc3=_0x283545()[_0x5bd986('0x155d')](_0x354596[_0x5bd986('0x25df')],function(_0x31dceb){const _0x43e869=_0x5bd986;return _0x283545()[_0x43e869('0x20e8')](_0x5d6121[_0x43e869('0xf76')],{'id':_0x31dceb[_0x43e869('0x2707')]});});let _0x27c8ec=null;_0x5d6121[_0x5bd986('0xe81')]&&(_0x27c8ec=_0x283545()[_0x5bd986('0x20e8')](_0x5d6121[_0x5bd986('0xf76')],{'name':_0x5d6121[_0x5bd986('0xe81')][_0x5bd986('0xa72')]}));if(_0x27c8ec&&!_0x283545()[_0x5bd986('0xc5d')](_0x201cc3,['id',_0x27c8ec['id']])){const _0x39b5e1=_0x283545()[_0x5bd986('0x20e8')](_0x5d6121[_0x5bd986('0xf76')],{'id':_0x27c8ec['id']});_0x39b5e1['canSelect']=![],_0x201cc3[_0x5bd986('0x13e3')](_0x39b5e1);}_0x5d6121[_0x5bd986('0xf76')]=_0x201cc3;});}})['catch'](function(_0x36199b){const _0x4e6c4c=_0x107129;_0x5368c0[_0x4e6c4c('0x5e8')]({'title':_0x36199b[_0x4e6c4c('0x1b51')]?_0x4e6c4c('0x15d1')+_0x36199b['status']+'\x20-\x20'+_0x36199b[_0x4e6c4c('0x22ce')]:_0x4e6c4c('0x1592'),'msg':_0x36199b['data']?JSON[_0x4e6c4c('0x1be0')](_0x36199b['data']):_0x36199b[_0x4e6c4c('0x17df')]()});});function _0x1269c9(){const _0x3c26de=_0x107129;_0x5d6121[_0x3c26de('0x25be')]=[];const _0x3808a8=[];_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x1d7')]&&_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x1d7')][_0x3c26de('0xc2e')]()===_0x3c26de('0x1')&&_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x167b')]===_0x3c26de('0x25fb')&&(_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x1224')]=_0x59dcea[_0x3c26de('0x277c')]?(_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x1f71')]||'')+'${EXTEN:'+_0x59dcea[_0x3c26de('0x277c')]+'}':(_0x5d6121['system'][_0x3c26de('0x1f71')]||'')+_0x3c26de('0x1275'),_0x59dcea[_0x3c26de('0x801')]!==_0x3c26de('0x1dc')?_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x784')][_0x3c26de('0x821')](_0x3c26de('0x1609'))<0x0&&(_0x5d6121[_0x3c26de('0xe81')]['options']+='U(xcally-mixmonitor-context)'):_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x784')]=_0x5d6121['system'][_0x3c26de('0x784')]['replace'](_0x3c26de('0x1609'),''));if(_0x5d6121['system'][_0x3c26de('0x167b')]&&_0x5d6121['system'][_0x3c26de('0x167b')]===_0x3c26de('0x1d56')){}else switch((_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x8a5')]||_0x5d6121[_0x3c26de('0xe81')]['appType'])['toLowerCase']()){case _0x3c26de('0x3a6'):_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0xd6b')]=_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0x1a8d')]+'='+_0x5d6121[_0x3c26de('0xe81')]['value'];break;case'custom':break;default:_0x3808a8[0x0]=_0x5d6121['system'][_0x3c26de('0x28d')],_0x3808a8[0x1]=_0x5d6121[_0x3c26de('0xe81')][_0x3c26de('0xa72')],_0x5d6121['system'][_0x3c26de('0xd6b')]=_0x3808a8['join'](',');}_0x3edc82(_0x5d6121[_0x3c26de('0xe81')]);}function _0x3edc82(_0x1e70ea){_0x36d6ef['hide'](_0x1e70ea);}}const _0x183b74=_0x3a1af1;_0x3c4a2f[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q','toasty',_0x34e79e('0x1c51'),'whatsappAccount',_0x34e79e('0x519'),'Auth','crudPermissions'];function _0x3c4a2f(_0x159db8,_0x3dab76,_0x59df93,_0x110ee8,_0x33c33a,_0x407a2a,_0x3409e2,_0x5447f6){const _0xaf7f50=_0x34e79e,_0x5e65fe=this;_0x5e65fe[_0xaf7f50('0x9cb')]=_0x3409e2[_0xaf7f50('0x24cc')](),_0x5e65fe[_0xaf7f50('0x25be')]=[],_0x5e65fe[_0xaf7f50('0x14e4')]=_0xaf7f50('0x17ef')+(_0x110ee8[_0xaf7f50('0x167b')]||_0x110ee8[_0xaf7f50('0x8a5')])[_0xaf7f50('0x25e6')](),_0x5e65fe['tag']=angular['copy'](_0x110ee8),_0x5e65fe[_0xaf7f50('0xe28')]=_0x5447f6,_0x5e65fe[_0xaf7f50('0x1193')]={};if(_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')])switch(_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x167b')]?_0x5e65fe['tag']['appType']['toLowerCase']():_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x8a5')][_0xaf7f50('0xc2e')]()){case _0xaf7f50('0x1d56'):break;case _0xaf7f50('0x5e1'):{const _0x4102e0=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')]['split'](',');_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x234b')]=_0x4102e0[0x0],_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x175b')]=_0x4102e0[0x1],_0x5e65fe['tag'][_0xaf7f50('0xf50')]=_0x4102e0[_0xaf7f50('0x845')](0x2,_0x4102e0[_0xaf7f50('0x2566')])[_0xaf7f50('0x185f')](',');}break;case _0xaf7f50('0x137a'):{const _0x324e3b=_0x5e65fe['tag'][_0xaf7f50('0xd6b')]['split'](',');_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x27f2')]=_0x324e3b[0x0],_0x5e65fe[_0xaf7f50('0x1764')]['secretaccesskey']=_0x324e3b[0x1],_0x5e65fe['tag'][_0xaf7f50('0xb70')]=_0x324e3b[0x2],_0x5e65fe[_0xaf7f50('0x1764')]['botname']=_0x324e3b[0x3],_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xf50')]=_0x324e3b[_0xaf7f50('0x845')](0x4,_0x324e3b[_0xaf7f50('0x2566')])[_0xaf7f50('0x185f')](',');}break;case _0xaf7f50('0x808'):{const _0x4255a6=_0x5e65fe[_0xaf7f50('0x1764')]['appdata']['split'](',');_0x5e65fe['tag']['times']=isNaN(_0x4255a6[0x0])?_0x4255a6[0x0]:parseInt(_0x4255a6[0x0],0xa),_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x16db')]=_0x4255a6[_0xaf7f50('0x845')](0x1,_0x4255a6['length'])[_0xaf7f50('0x185f')](',');}break;case _0xaf7f50('0x15e2'):_0x5e65fe[_0xaf7f50('0x1764')]['text']=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')];break;case _0xaf7f50('0x3a6'):_0x5e65fe['tag'][_0xaf7f50('0x1a8d')]=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')][_0xaf7f50('0x1497')]('=')[0x0],_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x49')]=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')]['split']('=')[0x1];break;case'agi':_0x5e65fe['tag'][_0xaf7f50('0x1bf6')]=_0x5e65fe[_0xaf7f50('0x1764')]['appdata'];break;default:{const _0x5875e7=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0xd6b')][_0xaf7f50('0x1497')](',');_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x1764')]=_0x283545()[_0xaf7f50('0x213d')](_0x5875e7[0x0])?_0x5875e7[0x0]:isNaN(_0x5875e7[0x0])?_0x5875e7[0x0]:parseInt(_0x5875e7[0x0],0xa);}break;}else{}_0x5e65fe['tag']['type']&&_0x5e65fe[_0xaf7f50('0x1764')]['type']['toLowerCase']()===_0xaf7f50('0x1')&&_0x5e65fe[_0xaf7f50('0x1764')]['appType']['toLowerCase']()===_0xaf7f50('0x229c')&&(_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x1f71')]=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x1224')]?_0x5e65fe['tag'][_0xaf7f50('0x1224')][_0xaf7f50('0x1497')]('$')[0x0]:undefined,_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x2081')]=_0x5e65fe[_0xaf7f50('0x1764')][_0xaf7f50('0x8de')]?_0xaf7f50('0x1834')+_0x5e65fe['tag'][_0xaf7f50('0x8de')]:undefined);_0x5e65fe[_0xaf7f50('0xb66')]=_0x59ef6e,_0x5e65fe[_0xaf7f50('0xca7')]=_0x3bd18d,_0x3409e2[_0xaf7f50('0x1516')](_0xaf7f50('0xe23'))?_0x407a2a[_0xaf7f50('0x1764')][_0xaf7f50('0x1335')]({'fields':'id,name','sort':_0xaf7f50('0x1a8d'),'nolimit':_0xaf7f50('0x1001')})[_0xaf7f50('0x1714')][_0xaf7f50('0x2788')](function(_0x47e17c){const _0x40eba6=_0xaf7f50;_0x5e65fe[_0x40eba6('0xe45')]=_0x47e17c[_0x40eba6('0x25df')]||[];})[_0xaf7f50('0x1cb5')](function(_0x68abba){const _0x4d5793=_0xaf7f50;_0x59df93['error']({'title':_0x68abba[_0x4d5793('0x1b51')]?_0x4d5793('0x15d1')+_0x68abba['status']+_0x4d5793('0x1b0b')+_0x68abba[_0x4d5793('0x22ce')]:_0x4d5793('0x270'),'msg':_0x68abba['data']?JSON['stringify'](_0x68abba[_0x4d5793('0x11fc')]):_0x68abba['toString']()});}):_0x407a2a[_0xaf7f50('0x1764')][_0xaf7f50('0x1335')]({'fields':_0xaf7f50('0x1338'),'sort':_0xaf7f50('0x1a8d'),'nolimit':'true'})[_0xaf7f50('0x1714')][_0xaf7f50('0x2788')](function(_0x35111e){_0x5e65fe['tags']=_0x35111e['rows']||[];})['then'](function(){const _0x178999=_0xaf7f50;return _0x407a2a[_0x178999('0xec9')][_0x178999('0x1335')]({'userProfileId':_0x5e65fe[_0x178999('0x9cb')][_0x178999('0x237f')],'sectionId':0x3f0})['$promise'];})[_0xaf7f50('0x2788')](function(_0x3ea528){const _0x326db9=_0xaf7f50,_0x18fe81=_0x3ea528&&_0x3ea528[_0x326db9('0x25df')]?_0x3ea528['rows'][0x0]:null;if(!_0x18fe81){const _0x479d10=[];let _0x2225fc=null;_0x5e65fe[_0x326db9('0x1764')]&&(_0x2225fc=_0x283545()[_0x326db9('0x20e8')](_0x5e65fe['tags'],{'name':_0x5e65fe['tag'][_0x326db9('0x1764')]}));for(let _0x1c4374=0x0;_0x1c4374<_0x5e65fe[_0x326db9('0xe45')][_0x326db9('0x2566')];_0x1c4374++){_0x2225fc&&_0x5e65fe[_0x326db9('0xe45')][_0x1c4374]['id']===_0x2225fc['id']&&(_0x5e65fe[_0x326db9('0xe45')][_0x1c4374][_0x326db9('0x3bf')]=![],_0x479d10[_0x326db9('0x13e3')](_0x5e65fe[_0x326db9('0xe45')][_0x1c4374]));}_0x5e65fe['tags']=_0x479d10;}else{if(!_0x18fe81[_0x326db9('0x1c0a')])return _0x407a2a[_0x326db9('0x1050')]['get']({'sectionId':_0x18fe81['id']})[_0x326db9('0x1714')][_0x326db9('0x2788')](function(_0x349eb2){const _0x421a5c=_0x326db9,_0x2bf23d=_0x283545()[_0x421a5c('0x155d')](_0x349eb2[_0x421a5c('0x25df')],function(_0x5ecf9b){return _0x283545()['find'](_0x5e65fe['tags'],{'id':_0x5ecf9b['resourceId']});});let _0x1299a9=null;_0x5e65fe[_0x421a5c('0x1764')]&&(_0x1299a9=_0x283545()[_0x421a5c('0x20e8')](_0x5e65fe[_0x421a5c('0xe45')],{'name':_0x5e65fe[_0x421a5c('0x1764')][_0x421a5c('0x1764')]}));if(_0x1299a9&&!_0x283545()[_0x421a5c('0xc5d')](_0x2bf23d,['id',_0x1299a9['id']])){const _0x24d29d=_0x283545()['find'](_0x5e65fe[_0x421a5c('0xe45')],{'id':_0x1299a9['id']});_0x24d29d[_0x421a5c('0x3bf')]=![],_0x2bf23d['push'](_0x24d29d);}_0x5e65fe[_0x421a5c('0xe45')]=_0x2bf23d;});}})[_0xaf7f50('0x1cb5')](function(_0x36ff00){const _0x5b223f=_0xaf7f50;_0x59df93[_0x5b223f('0x5e8')]({'title':_0x36ff00[_0x5b223f('0x1b51')]?_0x5b223f('0x15d1')+_0x36ff00['status']+_0x5b223f('0x1b0b')+_0x36ff00[_0x5b223f('0x22ce')]:_0x5b223f('0x1470'),'msg':_0x36ff00[_0x5b223f('0x11fc')]?JSON[_0x5b223f('0x1be0')](_0x36ff00['data']):_0x36ff00[_0x5b223f('0x17df')]()});});function _0x59ef6e(){const _0x4c5234=_0xaf7f50;_0x5e65fe[_0x4c5234('0x25be')]=[];const _0x28c282=[];_0x5e65fe['tag'][_0x4c5234('0x1d7')]&&_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x1d7')]['toLowerCase']()===_0x4c5234('0x1')&&_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x167b')]===_0x4c5234('0x25fb')&&(_0x5e65fe['tag'][_0x4c5234('0x1224')]=_0x33c33a['cutdigits']?(_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x1f71')]||'')+_0x4c5234('0x124d')+_0x33c33a[_0x4c5234('0x277c')]+'}':(_0x5e65fe[_0x4c5234('0x1764')]['prefix']||'')+_0x4c5234('0x1275'),_0x33c33a[_0x4c5234('0x801')]!=='none'?_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x784')][_0x4c5234('0x821')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5e65fe[_0x4c5234('0x1764')]['options']+=_0x4c5234('0x1609')):_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x784')]=_0x5e65fe['tag'][_0x4c5234('0x784')]['replace'](_0x4c5234('0x1609'),''));const _0x176131=_0x283545()['find'](_0x5e65fe[_0x4c5234('0xe45')],{'name':_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x1764')]});_0x176131&&(_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x90a')]=_0x176131['id']);if(_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x167b')]&&_0x5e65fe['tag'][_0x4c5234('0x167b')]===_0x4c5234('0x1d56')){}else switch((_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x8a5')]||_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x167b')])[_0x4c5234('0xc2e')]()){case'set':_0x5e65fe['tag'][_0x4c5234('0xd6b')]=_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x1a8d')]+'='+_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0x49')];break;case _0x4c5234('0x1d56'):break;default:_0x28c282[0x0]=_0x5e65fe[_0x4c5234('0x1764')]['tag'],_0x5e65fe[_0x4c5234('0x1764')][_0x4c5234('0xd6b')]=_0x28c282['join'](',');}_0x3bd18d(_0x5e65fe[_0x4c5234('0x1764')]);}function _0x3bd18d(_0x52282a){const _0x1c77d9=_0xaf7f50;_0x159db8[_0x1c77d9('0x19d')](_0x52282a);}}const _0x3c6dd4=_0x3c4a2f;_0x296d37[_0x34e79e('0x2d9')]=[_0x34e79e('0x1bfe'),'$scope','$state','$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),'api',_0x34e79e('0x1b04')];function _0x296d37(_0x485505,_0x2a4f6,_0x481a42,_0x4123e8,_0x2f71f7,_0x2fba16,_0x454a49,_0x24aafc,_0x39cbb3,_0x103789,_0x4ce3d6){const _0xf04db7=_0x34e79e,_0x4a80b4=this;_0x4a80b4[_0xf04db7('0x9cb')]=_0x4ce3d6[_0xf04db7('0x24cc')](),_0x4a80b4[_0xf04db7('0x15')]={},_0x4a80b4[_0xf04db7('0xf0c')]={'count':0x0,'rows':[]},_0x4a80b4[_0xf04db7('0x1676')]=[],_0x4a80b4[_0xf04db7('0xe28')],_0x4a80b4[_0xf04db7('0x135a')]={'read':_0xf04db7('0x954'),'closed':_0xf04db7('0x954'),'sort':_0xf04db7('0x34b'),'includeAll':_0xf04db7('0x1001'),'limit':0xa,'page':0x1},_0x4a80b4[_0xf04db7('0x24eb')]=_0x4bbffa,_0x4a80b4[_0xf04db7('0x16a')]=_0x90ad7e,_0x4a80b4[_0xf04db7('0x1df1')]=_0x362d1b,_0x4a80b4['success']=_0xd72e51,_0x4a80b4[_0xf04db7('0x12a0')]=_0x4db4bf,_0x4a80b4[_0xf04db7('0x1c72')]=_0x31b1d0,_0x4a80b4['openAdvancedSearch']=_0x1acba4,_0x4a80b4['exportSelectedWhatsappAccountInteractions']=_0x1f28ce,_0x4a80b4[_0xf04db7('0x13e')]=_0x355ce1,_0x4a80b4['deleteSelectedWhatsappAccountInteractions']=_0x2f2aa4;function _0x4bbffa(_0x578d3a,_0x53ef1d){const _0x20eb25=_0xf04db7;_0x4a80b4[_0x20eb25('0x15')]=_0x578d3a,_0x4a80b4[_0x20eb25('0xe28')]=typeof _0x53ef1d!==_0x20eb25('0xedb')?_0x53ef1d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a80b4[_0x20eb25('0x135a')][_0x20eb25('0x25b8')]=_0x4a80b4[_0x20eb25('0x15')]['id'],_0x4a80b4[_0x20eb25('0x1e13')]={'fields':_0x5dc027()},_0x23511e();}function _0x23511e(){const _0x2095b8=_0xf04db7;return _0x103789['tag'][_0x2095b8('0x1335')]()[_0x2095b8('0x1714')][_0x2095b8('0x2788')](function(_0x586400){const _0x76c87=_0x2095b8;_0x4a80b4[_0x76c87('0xe45')]=_0x586400||{'count':0x0,'rows':[]};})[_0x2095b8('0x2788')](function(){const _0x30985b=_0x2095b8;_0x4a80b4[_0x30985b('0xa28')]=_0x1b91f9();});}function _0x1b91f9(){const _0x15c73a=_0xf04db7;return[{'name':_0x15c73a('0x9ac'),'key':_0x15c73a('0x172'),'type':'date','label':_0x15c73a('0x1664')},{'name':'Messages','key':_0x15c73a('0x18e8'),'type':'select','label':_0x15c73a('0xb0b'),'customOptions':[{'value':0x0,'translate':_0x15c73a('0xe54')},{'value':0x1,'translate':_0x15c73a('0x204a')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x15c73a('0x21d8'),'key':_0x15c73a('0x215d'),'type':_0x15c73a('0x983'),'label':_0x15c73a('0xd0'),'customOptions':[{'value':0x0,'translate':_0x15c73a('0xd6c')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x15c73a('0xc79')}]},{'name':_0x15c73a('0x262d'),'key':'UserId','type':_0x15c73a('0x983'),'label':_0x15c73a('0x2bd'),'customOptions':[{'value':_0x15c73a('0x954'),'translate':_0x15c73a('0xce3')},{'value':undefined,'translate':_0x15c73a('0xc79')}]},{'name':_0x15c73a('0x251d'),'key':_0x15c73a('0x1764'),'type':_0x15c73a('0x9a4'),'label':_0x15c73a('0xa54'),'options':_0x4a80b4[_0x15c73a('0xe45')][_0x15c73a('0x25df')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x5dc027(){const _0x3c190b=_0xf04db7;return[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x3c190b('0x1c64'),'type':_0x3c190b('0x137e'),'options':{'searchFields':['firstName',_0x3c190b('0x26b9'),_0x3c190b('0x2436')],'route':{'model':'cmContact','action':_0x3c190b('0x1335'),'params':{'fields':_0x3c190b('0x1373'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x3c190b('0x1a77')],'excludedOperators':[_0x3c190b('0x149c')]}},{'name':_0x3c190b('0x16c9'),'column':_0x3c190b('0x248f'),'type':_0x3c190b('0x16db'),'options':{'excludedOperators':[_0x3c190b('0x1ff9'),_0x3c190b('0x149c')]}},{'name':_0x3c190b('0x1e8f'),'column':_0x3c190b('0x550'),'type':'text','options':{'excludedOperators':[_0x3c190b('0x1ff9'),_0x3c190b('0x149c')]}},{'name':'Status','column':_0x3c190b('0x215d'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':_0x3c190b('0x262d'),'column':_0x3c190b('0x1832'),'type':_0x3c190b('0x137e'),'options':{'table':'i','route':{'model':'user','action':_0x3c190b('0x1335'),'params':{'role':_0x3c190b('0x188b'),'fields':_0x3c190b('0x10fe'),'nolimit':!![]}},'searchFields':[_0x3c190b('0x2831'),_0x3c190b('0x1a8d')],'extraOperators':[_0x3c190b('0x1a77')],'excludedOperators':[_0x3c190b('0x149c')]}},{'name':'Tags','column':_0x3c190b('0x251d'),'type':_0x3c190b('0x9a4'),'options':{'route':{'model':_0x3c190b('0x1764'),'action':_0x3c190b('0x1335'),'params':{'nolimit':!![]}},'excludedOperators':[_0x3c190b('0x38b')]}},{'name':_0x3c190b('0x9ac'),'column':_0x3c190b('0x172'),'type':'date','options':{'excludedOperators':[_0x3c190b('0x149c')]}},{'name':'Read','column':_0x3c190b('0xecd'),'type':_0x3c190b('0x983'),'values':[{'id':0x1,'translate':_0x3c190b('0x204a')},{'id':0x0,'translate':_0x3c190b('0xe54')}],'options':{'excludedOperators':[_0x3c190b('0x149c')]}}];}function _0x1acba4(){const _0x5aa937=_0xf04db7;_0x454a49[_0x5aa937('0x2fa')]({'controller':_0x5aa937('0x2672'),'controllerAs':'vm','templateUrl':_0x5bb5f3,'parent':angular['element'](_0x24aafc[_0x5aa937('0x945')]),'clickOutsideToClose':![],'locals':{'fields':_0x4a80b4[_0x5aa937('0x1e13')][_0x5aa937('0x1578')],'color':undefined,'storagePath':_0x5aa937('0xaa0')},'fullscreen':!![]})['then'](function(_0xdeafff){const _0x5dce00=_0x5aa937;_0x4a80b4[_0x5dce00('0x135a')][_0x5dce00('0x470')]=_0xdeafff===![]?undefined:_0xdeafff;if(_0x4a80b4[_0x5dce00('0x135a')][_0x5dce00('0x470')])_0x4db4bf();else _0xdeafff===![]&&_0x4db4bf();})[_0x5aa937('0x1cb5')](function(_0x21daed){const _0x28b416=_0x5aa937;_0x39cbb3[_0x28b416('0x5e8')]({'title':_0x28b416('0x824'),'msg':_0x21daed['data']?JSON['stringify'](_0x21daed[_0x28b416('0x11fc')][_0x28b416('0x15e2')]):_0x21daed[_0x28b416('0x17df')]()});});}function _0x362d1b(_0x5bc5b7,_0x5a4ed5,_0x8a0927){const _0x31a6d4=_0xf04db7;return _0x103789[_0x31a6d4('0x95')][_0x31a6d4('0x1486')]({'id':_0x5bc5b7['id'],'exists':!![],'attachments':_0x8a0927})[_0x31a6d4('0x1714')][_0x31a6d4('0x2788')](function(_0x285909){const _0x3a8230=_0x31a6d4,_0x5ec892=[_0x285909[_0x3a8230('0x3f1')]];let _0x2f06c5=_0x3a8230('0xd61')+_0x5bc5b7['id'];const _0x16e918=new Blob(_0x5ec892,{'type':_0x285909[_0x3a8230('0x1d7')]});_0x2f06c5=_0x3a8230('0x2690')+_0x5bc5b7['id']+_0x3a8230('0xfdb');const _0x4e8fee=window[_0x3a8230('0x11c4')][_0x3a8230('0x1ae6')]('a');_0x4e8fee[_0x3a8230('0x1c6b')]('href',URL['createObjectURL'](_0x16e918)),_0x4e8fee[_0x3a8230('0x1c6b')](_0x3a8230('0x1486'),_0x2f06c5),document[_0x3a8230('0x945')][_0x3a8230('0xcbf')](_0x4e8fee),_0x4e8fee[_0x3a8230('0x132a')]();})[_0x31a6d4('0x1cb5')](function(_0x3f6150){const _0x272baf=_0x31a6d4;if(_0x3f6150[_0x272baf('0x11fc')]&&_0x3f6150[_0x272baf('0x11fc')][_0x272baf('0x25be')]&&_0x3f6150['data']['errors'][_0x272baf('0x2566')])for(let _0x5d254b=0x0;_0x5d254b<_0x3f6150[_0x272baf('0x11fc')][_0x272baf('0x25be')][_0x272baf('0x2566')];_0x5d254b+=0x1){_0x39cbb3[_0x272baf('0x5e8')]({'title':_0x3f6150['data'][_0x272baf('0x25be')][_0x5d254b]['type'],'msg':_0x3f6150[_0x272baf('0x11fc')][_0x272baf('0x25be')][_0x5d254b][_0x272baf('0x15e2')]});}else _0x39cbb3[_0x272baf('0x5e8')]({'title':_0x3f6150[_0x272baf('0x1b51')]?'API:'+_0x3f6150[_0x272baf('0x1b51')]+'\x20-\x20'+_0x3f6150[_0x272baf('0x22ce')]:_0x272baf('0x1076'),'msg':_0x3f6150['data']?JSON[_0x272baf('0x1be0')](_0x3f6150['data'][_0x272baf('0x15e2')]):_0x3f6150[_0x272baf('0x17df')]()});});}function _0x90ad7e(_0x1d93b3,_0x257210){const _0x48f38b=_0xf04db7,_0x545e00=_0x454a49[_0x48f38b('0x112e')]()['title'](_0x48f38b('0x20be'))[_0x48f38b('0x93e')](_0x48f38b('0x1670')+(_0x1d93b3[_0x48f38b('0x1a8d')]||_0x1d93b3['id']&&_0x283545()['upperFirst'](_0x48f38b('0xb4c'))+_0x1d93b3['id']||_0x48f38b('0xd61'))+_0x48f38b('0x229e')+_0x48f38b('0x27c7'))['ariaLabel'](_0x48f38b('0xa98'))['targetEvent'](_0x257210)['ok']('OK')[_0x48f38b('0x1801')](_0x48f38b('0x1d8d'));_0x454a49[_0x48f38b('0x2fa')](_0x545e00)[_0x48f38b('0x2788')](function(){_0x355ce1(_0x1d93b3);},function(){const _0x4bb01d=_0x48f38b;console[_0x4bb01d('0x10df')](_0x4bb01d('0x1d8d'));});}function _0xd72e51(_0x41c2b7){const _0x98e763=_0xf04db7;_0x4a80b4[_0x98e763('0xf0c')]=_0x41c2b7||{'count':0x0,'rows':[]};for(let _0x484bdb=0x0;_0x484bdb<_0x4a80b4['whatsappAccountInteractions'][_0x98e763('0x25df')][_0x98e763('0x2566')];_0x484bdb+=0x1){const _0x2d5eb7=_0x4a80b4[_0x98e763('0xf0c')][_0x98e763('0x25df')][_0x484bdb];_0x4c3e48(_0x2d5eb7),_0x2d5eb7['Owner']['name']=_0x333f8c(_0x2d5eb7);}}function _0x4db4bf(){const _0x26f700=_0xf04db7;_0x4a80b4[_0x26f700('0x135a')]['offset']=(_0x4a80b4[_0x26f700('0x135a')][_0x26f700('0x23f5')]-0x1)*_0x4a80b4['query'][_0x26f700('0x68e')],_0x4a80b4[_0x26f700('0x1808')]=_0x103789[_0x26f700('0x95')][_0x26f700('0x1335')](_0x4a80b4[_0x26f700('0x135a')],_0xd72e51)[_0x26f700('0x1714')];}function _0x31b1d0(_0x478902,_0x5612b1){const _0x360a6d=_0xf04db7;_0x454a49[_0x360a6d('0x2fa')]({'controller':_0x360a6d('0xcd'),'controllerAs':'vm','templateUrl':_0xd5f1c7,'parent':angular[_0x360a6d('0x16b1')](_0x24aafc[_0x360a6d('0x945')]),'targetEvent':_0x478902,'clickOutsideToClose':!![],'onShowing':function(_0x44295c){const _0xc953ed=_0x360a6d;_0x44295c['vm']['init']({'id':0x1,'channel':'whatsapp','interaction':_0x5612b1,'spy':!![]},_0x2a4f6[_0xc953ed('0x7d0')]['vm']['setting']);}});}function _0x355ce1(_0x16c770){const _0x321065=_0xf04db7;_0x103789[_0x321065('0x95')][_0x321065('0x17c4')]({'id':_0x16c770['id']})[_0x321065('0x1714')][_0x321065('0x2788')](function(){const _0x2dd2f2=_0x321065;_0x283545()[_0x2dd2f2('0x1a90')](_0x4a80b4[_0x2dd2f2('0xf0c')][_0x2dd2f2('0x25df')],{'id':_0x16c770['id']}),_0x4a80b4[_0x2dd2f2('0xf0c')]['count']-=0x1,!_0x4a80b4[_0x2dd2f2('0xf0c')][_0x2dd2f2('0x25df')][_0x2dd2f2('0x2566')]&&_0x4db4bf(),_0x39cbb3[_0x2dd2f2('0x173b')]({'title':_0x2dd2f2('0xb73'),'msg':_0x16c770[_0x2dd2f2('0x1a8d')]?_0x16c770['name']+_0x2dd2f2('0x14d4'):''});})[_0x321065('0x1cb5')](function(_0x1c2a68){const _0x264e1e=_0x321065;if(_0x1c2a68[_0x264e1e('0x11fc')]&&_0x1c2a68[_0x264e1e('0x11fc')]['errors']&&_0x1c2a68[_0x264e1e('0x11fc')][_0x264e1e('0x25be')][_0x264e1e('0x2566')]){_0x4a80b4[_0x264e1e('0x25be')]=_0x1c2a68[_0x264e1e('0x11fc')][_0x264e1e('0x25be')]||[{'message':_0x1c2a68[_0x264e1e('0x17df')](),'type':'SYSTEM:GETwhatsappAccount'}];for(let _0x18e724=0x0;_0x18e724<_0x1c2a68[_0x264e1e('0x11fc')][_0x264e1e('0x25be')]['length'];_0x18e724++){_0x39cbb3['error']({'title':_0x1c2a68[_0x264e1e('0x11fc')][_0x264e1e('0x25be')][_0x18e724]['type'],'msg':_0x1c2a68[_0x264e1e('0x11fc')]['errors'][_0x18e724][_0x264e1e('0x15e2')]});}}else _0x39cbb3['error']({'title':_0x1c2a68[_0x264e1e('0x1b51')]?_0x264e1e('0x15d1')+_0x1c2a68[_0x264e1e('0x1b51')]+_0x264e1e('0x1b0b')+_0x1c2a68['statusText']:'SYSTEM:GETwhatsappAccount','msg':_0x1c2a68['data']?JSON[_0x264e1e('0x1be0')](_0x1c2a68[_0x264e1e('0x11fc')]['message']):_0x1c2a68[_0x264e1e('0x15e2')]||_0x1c2a68[_0x264e1e('0x17df')]()});});}function _0x1f28ce(){const _0x4716bb=_0xf04db7,_0x54360c=angular[_0x4716bb('0x2669')](_0x4a80b4[_0x4716bb('0x1676')]);return _0x4a80b4[_0x4716bb('0x1676')]=[],_0x54360c;}function _0x2f2aa4(_0x54e5ae){const _0x359548=_0xf04db7,_0x3b40dc=_0x454a49['confirm']()[_0x359548('0x14e4')](_0x359548('0x1ff'))[_0x359548('0x93e')](_0x359548('0x1670')+_0x4a80b4[_0x359548('0x1676')]['length']+_0x359548('0xbd')+_0x359548('0x27c7'))[_0x359548('0x10bc')](_0x359548('0x970'))[_0x359548('0x24d0')](_0x54e5ae)['ok']('OK')[_0x359548('0x1801')](_0x359548('0x1d8d'));_0x454a49[_0x359548('0x2fa')](_0x3b40dc)[_0x359548('0x2788')](function(){const _0xd0872c=_0x359548;_0x4a80b4[_0xd0872c('0x1676')][_0xd0872c('0x1534')](function(_0x6da3d2){_0x355ce1(_0x6da3d2);}),_0x4a80b4['selectedWhatsappAccountInteractions']=[];});}function _0x4c3e48(_0x2bc86b){const _0x16bd10=_0xf04db7;_0x2bc86b[_0x16bd10('0x1c64')]?_0x2bc86b[_0x16bd10('0x497')]=(_0x2bc86b[_0x16bd10('0x1c64')][_0x16bd10('0x26da')]||'')+'\x20'+(_0x2bc86b[_0x16bd10('0x1c64')][_0x16bd10('0x26b9')]||''):_0x2bc86b[_0x16bd10('0x497')]=_0x2f71f7['instant'](_0x16bd10('0x2185'));}function _0x333f8c(_0x1e077c){const _0x4224bb=_0xf04db7;if(_0x1e077c['UserId'])return _0x1e077c[_0x4224bb('0x3bb')]===_0x4a80b4[_0x4224bb('0x9cb')]['id']?_0x2f71f7[_0x4224bb('0x1b11')](_0x4224bb('0x3a8')):_0x1e077c['Owner'][_0x4224bb('0x2831')]+'\x20<'+_0x1e077c['Owner'][_0x4224bb('0x2838')]+'>';return _0x2f71f7[_0x4224bb('0x1b11')](_0x4224bb('0xce3'));}let _0x3eb04a=!![],_0x1b9af6=0x1;_0x2a4f6[_0xf04db7('0x1662')](_0xf04db7('0x2571'),function(_0x318994,_0x3ce1bc){const _0x2f10ad=_0xf04db7;_0x3eb04a?_0x2fba16(function(){_0x3eb04a=![];}):(!_0x3ce1bc&&(_0x1b9af6=_0x4a80b4[_0x2f10ad('0x135a')][_0x2f10ad('0x23f5')]),_0x318994!==_0x3ce1bc&&(_0x4a80b4['query'][_0x2f10ad('0x23f5')]=0x1),!_0x318994&&(_0x4a80b4[_0x2f10ad('0x135a')][_0x2f10ad('0x23f5')]=_0x1b9af6),_0x4db4bf());});}const _0x211419=_0x296d37,_0x305105=_0x18dd13['p']+_0x34e79e('0x1328');_0x555111[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),'$translate','license',_0x34e79e('0x1af0'),_0x34e79e('0x519'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x15'),_0x34e79e('0xec9')];function _0x555111(_0x11dda3,_0x2298b4,_0x16cd37,_0x5be3ca,_0x2de4f5,_0x14a5e4,_0x4b487c,_0x3fc596,_0x3d9423,_0x48219f,_0x59d8b6,_0x44ef22){const _0x22d814=_0x34e79e,_0x111f7c=this;_0x111f7c['currentUser']=_0x48219f[_0x22d814('0x24cc')](),_0x111f7c[_0x22d814('0x130d')]=_0x14a5e4,_0x111f7c[_0x22d814('0x1af0')]=_0x4b487c,_0x111f7c[_0x22d814('0x18ad')]=_0x111f7c['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x111f7c[_0x22d814('0xe9')]=_0x2298b4[_0x22d814('0x170c')]()+_0x22d814('0x726')+_0x2298b4[_0x22d814('0x1c6a')](),_0x111f7c[_0x22d814('0x15')]=_0x59d8b6||_0x11dda3['params'][_0x22d814('0x15')]||{},_0x111f7c['userProfileSection']=_0x44ef22&&_0x44ef22[_0x22d814('0x338')]==0x1?_0x44ef22[_0x22d814('0x25df')][0x0]:null,_0x111f7c[_0x22d814('0xe28')]=_0x48219f[_0x22d814('0x157e')](_0x111f7c['userProfileSection']?_0x111f7c[_0x22d814('0xec9')]['crudPermissions']:null),_0x111f7c[_0x22d814('0x1193')]={},_0x111f7c[_0x22d814('0xcb3')]=_0x11dda3[_0x22d814('0x4b9')]['tab']||0x0,_0x111f7c[_0x22d814('0x1113')]=_0x2b7bf7,_0x111f7c[_0x22d814('0x204f')]=_0x3d9423[_0x22d814('0x2276')],_0x111f7c[_0x22d814('0xca8')]=_0x9d7409,_0x111f7c['saveWhatsappAccount']=_0x17f571,_0x48219f[_0x22d814('0x1516')](_0x22d814('0xe23'))?_0x3fc596['cmList'][_0x22d814('0x1335')]({'fields':_0x22d814('0x1338'),'sort':_0x22d814('0x1a8d')})['$promise'][_0x22d814('0x2788')](function(_0x2b2fff){const _0x227a76=_0x22d814;_0x111f7c[_0x227a76('0x2')]=_0x2b2fff[_0x227a76('0x25df')]||[];})[_0x22d814('0x1cb5')](function(_0x3d643c){const _0x336e15=_0x22d814;_0x3d9423['error']({'title':_0x3d643c[_0x336e15('0x1b51')]?'API:'+_0x3d643c[_0x336e15('0x1b51')]+_0x336e15('0x1b0b')+_0x3d643c[_0x336e15('0x22ce')]:_0x336e15('0x11da'),'msg':_0x3d643c['data']?JSON[_0x336e15('0x1be0')](_0x3d643c[_0x336e15('0x11fc')]):_0x3d643c['toString']()});}):_0x3fc596[_0x22d814('0x1ba4')][_0x22d814('0x1335')]({'fields':_0x22d814('0x1338'),'sort':_0x22d814('0x1a8d')})[_0x22d814('0x1714')][_0x22d814('0x2788')](function(_0x5b8389){const _0x2603b5=_0x22d814;_0x111f7c[_0x2603b5('0x2')]=_0x5b8389[_0x2603b5('0x25df')]||[];})[_0x22d814('0x2788')](function(){const _0x2fb460=_0x22d814;return _0x3fc596[_0x2fb460('0xec9')]['get']({'userProfileId':_0x111f7c[_0x2fb460('0x9cb')][_0x2fb460('0x237f')],'sectionId':0x12d})[_0x2fb460('0x1714')];})[_0x22d814('0x2788')](function(_0x20ba64){const _0x5bb047=_0x22d814,_0x344502=_0x20ba64&&_0x20ba64[_0x5bb047('0x25df')]?_0x20ba64['rows'][0x0]:null;if(!_0x344502){const _0x120c2e=[];let _0xa4c3bc=null;_0x111f7c[_0x5bb047('0x15')]&&(_0xa4c3bc=_0x283545()[_0x5bb047('0x20e8')](_0x111f7c[_0x5bb047('0x2')],{'id':Number(_0x111f7c[_0x5bb047('0x15')][_0x5bb047('0x354')])}));for(let _0x105248=0x0;_0x105248<_0x111f7c[_0x5bb047('0x2')][_0x5bb047('0x2566')];_0x105248++){_0xa4c3bc&&_0x111f7c[_0x5bb047('0x2')][_0x105248]['id']===_0xa4c3bc['id']&&(_0x111f7c[_0x5bb047('0x2')][_0x105248][_0x5bb047('0x3bf')]=![],_0x120c2e[_0x5bb047('0x13e3')](_0x111f7c[_0x5bb047('0x2')][_0x105248]));}_0x111f7c[_0x5bb047('0x2')]=_0x120c2e;}else{if(!_0x344502[_0x5bb047('0x1c0a')])return _0x3fc596['userProfileResource'][_0x5bb047('0x1335')]({'sectionId':_0x344502['id']})[_0x5bb047('0x1714')][_0x5bb047('0x2788')](function(_0x229e0d){const _0x52c866=_0x5bb047,_0x439b35=_0x283545()[_0x52c866('0x155d')](_0x229e0d[_0x52c866('0x25df')],function(_0x508ab4){const _0x371ca2=_0x52c866;return _0x283545()[_0x371ca2('0x20e8')](_0x111f7c[_0x371ca2('0x2')],{'id':_0x508ab4[_0x371ca2('0x2707')]});});let _0x498508=null;_0x111f7c[_0x52c866('0x15')]&&(_0x498508=_0x283545()['find'](_0x111f7c[_0x52c866('0x2')],{'id':Number(_0x111f7c[_0x52c866('0x15')]['ListId'])}));if(_0x498508&&!_0x283545()[_0x52c866('0xc5d')](_0x439b35,['id',_0x498508['id']])){const _0x4a6f23=_0x283545()[_0x52c866('0x20e8')](_0x111f7c[_0x52c866('0x2')],{'id':_0x498508['id']});_0x4a6f23['canSelect']=![],_0x439b35[_0x52c866('0x13e3')](_0x4a6f23);}_0x111f7c[_0x52c866('0x2')]=_0x439b35;});}})['catch'](function(_0x17eed8){const _0x2b08f2=_0x22d814;_0x3d9423['error']({'title':_0x17eed8['status']?_0x2b08f2('0x15d1')+_0x17eed8[_0x2b08f2('0x1b51')]+_0x2b08f2('0x1b0b')+_0x17eed8[_0x2b08f2('0x22ce')]:_0x2b08f2('0x999'),'msg':_0x17eed8[_0x2b08f2('0x11fc')]?JSON[_0x2b08f2('0x1be0')](_0x17eed8[_0x2b08f2('0x11fc')]):_0x17eed8[_0x2b08f2('0x17df')]()});}),_0x48219f[_0x22d814('0x1516')](_0x22d814('0xe23'))?_0x3fc596[_0x22d814('0x619')][_0x22d814('0x1335')]({'fields':'name,id','sort':_0x22d814('0x1a8d'),'nolimit':'true'})[_0x22d814('0x1714')][_0x22d814('0x2788')](function(_0x10c633){const _0x3fb5ef=_0x22d814;_0x111f7c[_0x3fb5ef('0x225d')]=_0x10c633[_0x3fb5ef('0x25df')]||[];})[_0x22d814('0x1cb5')](function(_0x208c1e){const _0x385c81=_0x22d814;_0x3d9423[_0x385c81('0x5e8')]({'title':_0x208c1e[_0x385c81('0x1b51')]?_0x385c81('0x15d1')+_0x208c1e['status']+'\x20-\x20'+_0x208c1e['statusText']:_0x385c81('0x10d8'),'msg':_0x208c1e['data']?JSON[_0x385c81('0x1be0')](_0x208c1e['data']):_0x208c1e[_0x385c81('0x17df')]()});}):_0x3fc596[_0x22d814('0x619')][_0x22d814('0x1335')]({'fields':_0x22d814('0xcfa'),'sort':_0x22d814('0x1a8d'),'nolimit':_0x22d814('0x1001')})[_0x22d814('0x1714')][_0x22d814('0x2788')](function(_0x4a3677){const _0x559e08=_0x22d814;_0x111f7c[_0x559e08('0x225d')]=_0x4a3677[_0x559e08('0x25df')]||[];})[_0x22d814('0x2788')](function(){const _0xaf5e8a=_0x22d814;return _0x3fc596['userProfileSection']['get']({'userProfileId':_0x111f7c[_0xaf5e8a('0x9cb')][_0xaf5e8a('0x237f')],'sectionId':0x3ed})['$promise'];})[_0x22d814('0x2788')](function(_0x5cf5db){const _0x5da80e=_0x22d814,_0xfbefdc=_0x5cf5db&&_0x5cf5db[_0x5da80e('0x25df')]?_0x5cf5db[_0x5da80e('0x25df')][0x0]:null;if(!_0xfbefdc)_0x111f7c[_0x5da80e('0x225d')]=[];else{if(!_0xfbefdc[_0x5da80e('0x1c0a')])return _0x3fc596[_0x5da80e('0x1050')]['get']({'sectionId':_0xfbefdc['id']})['$promise'][_0x5da80e('0x2788')](function(_0x18c426){const _0x5f1245=_0x5da80e,_0x3559f9=_0x283545()[_0x5f1245('0x155d')](_0x18c426[_0x5f1245('0x25df')],function(_0x37c7bf){const _0x21ca62=_0x5f1245;return _0x283545()['find'](_0x111f7c[_0x21ca62('0x225d')],{'id':_0x37c7bf[_0x21ca62('0x2707')]});});_0x111f7c[_0x5f1245('0x225d')][_0x5f1245('0x1534')](function(_0x73e0b6){const _0x309e3f=_0x5f1245;!_0x283545()[_0x309e3f('0xc5d')](_0x3559f9,['id',_0x73e0b6['id']])&&(_0x73e0b6[_0x309e3f('0x3bf')]=![]),_0x3559f9['push'](_0x73e0b6);}),_0x111f7c[_0x5f1245('0x225d')]=_0x3559f9;});}})[_0x22d814('0x1cb5')](function(_0x2e4899){const _0x44b40f=_0x22d814;_0x3d9423[_0x44b40f('0x5e8')]({'title':_0x2e4899[_0x44b40f('0x1b51')]?_0x44b40f('0x15d1')+_0x2e4899[_0x44b40f('0x1b51')]+'\x20-\x20'+_0x2e4899[_0x44b40f('0x22ce')]:'SYSTEM:GETpauses','msg':_0x2e4899[_0x44b40f('0x11fc')]?JSON['stringify'](_0x2e4899[_0x44b40f('0x11fc')]):_0x2e4899[_0x44b40f('0x17df')]()});});function _0x2b7bf7(_0x446d21,_0x16c631){const _0x2d13a4=_0x22d814;_0x16cd37[_0x2d13a4('0x2fa')]({'controller':_0x2d13a4('0x1e2a'),'controllerAs':'vm','templateUrl':_0x305105,'parent':angular[_0x2d13a4('0x16b1')](_0x5be3ca[_0x2d13a4('0x945')]),'targetEvent':_0x16c631,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x446d21,'whatsappAccounts':_0x111f7c[_0x2d13a4('0xa47')]?_0x111f7c[_0x2d13a4('0xa47')][_0x2d13a4('0x25df')]:[],'crudPermissions':_0x111f7c[_0x2d13a4('0xe28')],'realtime':![]}});}function _0x9d7409(){const _0x556c44=_0x22d814;_0x11dda3['go'](_0x556c44('0x1a94'),{},{'reload':_0x556c44('0x1a94')});}function _0x17f571(){const _0x3225aa=_0x22d814;_0x3fc596[_0x3225aa('0x15')][_0x3225aa('0x2740')]({'id':_0x111f7c['whatsappAccount']['id']},_0x111f7c[_0x3225aa('0x15')])[_0x3225aa('0x1714')][_0x3225aa('0x2788')](function(){const _0x206e10=_0x3225aa;_0x3d9423['success']({'title':_0x206e10('0x15eb'),'msg':_0x111f7c[_0x206e10('0x15')][_0x206e10('0x1a8d')]?_0x111f7c['whatsappAccount']['name']+'\x20has\x20been\x20updated!':''});})[_0x3225aa('0x1cb5')](function(_0x3f4536){const _0x5cba0d=_0x3225aa;_0x3d9423[_0x5cba0d('0x5e8')]({'title':_0x3f4536[_0x5cba0d('0x1b51')]?_0x5cba0d('0x15d1')+_0x3f4536['status']+_0x5cba0d('0x1b0b')+_0x3f4536[_0x5cba0d('0x22ce')]:'SYSTEM:GETwhatsappAccount','msg':_0x3f4536['data']?JSON[_0x5cba0d('0x1be0')](_0x3f4536[_0x5cba0d('0x11fc')]):_0x3f4536[_0x5cba0d('0x17df')]()});});}}const _0x48133d=_0x555111,_0x389381=_0x18dd13['p']+_0x34e79e('0x3b2');_0x492331[_0x34e79e('0x2d9')]=['$cookies',_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0x446'),_0x34e79e('0x123b'),'$document',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1b04')];function _0x492331(_0x52d7c2,_0x5b381e,_0x59094c,_0x2eba17,_0x5b34c6,_0x459dce,_0x638c26,_0x19a05c,_0x31790e,_0x3db218,_0x2479e0){const _0x34603d=_0x34e79e,_0x35fb34=this;_0x35fb34[_0x34603d('0x9cb')]=_0x2479e0['getCurrentUser'](),_0x35fb34[_0x34603d('0x15')]={},_0x35fb34[_0x34603d('0x22ea')]={'count':0x0,'rows':[]},_0x35fb34[_0x34603d('0x1c4c')]=[],_0x35fb34[_0x34603d('0xe28')],_0x35fb34[_0x34603d('0x135a')]={'fields':_0x34603d('0x10ad'),'limit':0xa,'page':0x1},_0x35fb34[_0x34603d('0x24eb')]=_0x1d9bdd,_0x35fb34[_0x34603d('0x16a')]=_0x551759,_0x35fb34[_0x34603d('0x173b')]=_0x2d8635,_0x35fb34['getWhatsappAccountWhatsappCannedAnswers']=_0x28a081,_0x35fb34[_0x34603d('0x4dd')]=_0x102a6d,_0x35fb34[_0x34603d('0xda6')]=_0x4f3256,_0x35fb34['deleteWhatsappAccountWhatsappCannedAnswer']=_0x1f44f2,_0x35fb34[_0x34603d('0xe8c')]=_0x1243c9;function _0x1d9bdd(_0x120a36,_0x27aeb0){const _0x386353=_0x34603d;_0x35fb34[_0x386353('0x15')]=_0x120a36,_0x35fb34[_0x386353('0xe28')]=typeof _0x27aeb0!==_0x386353('0xedb')?_0x27aeb0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x35fb34[_0x386353('0x135a')][_0x386353('0x25b8')]=_0x35fb34[_0x386353('0x15')]['id'],_0x35fb34[_0x386353('0x135a')]['id']=_0x35fb34[_0x386353('0x15')]['id'],_0x28a081();}function _0x551759(_0x3f4917,_0xf8aa12){const _0x30c76c=_0x34603d,_0xa7fb4=_0x638c26[_0x30c76c('0x112e')]()[_0x30c76c('0x14e4')](_0x30c76c('0x806'))[_0x30c76c('0x93e')](_0x30c76c('0x1670')+(_0x3f4917[_0x30c76c('0x1a8d')]||_0x3f4917['id']&&_0x283545()[_0x30c76c('0x2265')](_0x30c76c('0x9aa'))+_0x3f4917['id']||'whatsappCannedAnswer')+_0x30c76c('0x229e')+_0x30c76c('0x27c7'))[_0x30c76c('0x10bc')]('delete\x20whatsappCannedAnswer')['targetEvent'](_0xf8aa12)['ok']('OK')[_0x30c76c('0x1801')](_0x30c76c('0x1d8d'));_0x638c26[_0x30c76c('0x2fa')](_0xa7fb4)[_0x30c76c('0x2788')](function(){_0x1f44f2(_0x3f4917);},function(){const _0x184f8e=_0x30c76c;console[_0x184f8e('0x10df')](_0x184f8e('0x1d8d'));});}function _0x2d8635(_0x527331){const _0x4df847=_0x34603d;_0x35fb34[_0x4df847('0x22ea')]=_0x527331||{'count':0x0,'rows':[]};}function _0x28a081(){const _0x1d09ba=_0x34603d;_0x35fb34[_0x1d09ba('0x135a')][_0x1d09ba('0x19e')]=(_0x35fb34[_0x1d09ba('0x135a')]['page']-0x1)*_0x35fb34[_0x1d09ba('0x135a')][_0x1d09ba('0x68e')],_0x35fb34['promise']=_0x3db218[_0x1d09ba('0x15')][_0x1d09ba('0x1077')](_0x35fb34['query'],_0x2d8635)['$promise'];}function _0x102a6d(_0x432081,_0x53184c){const _0x2bd8fc=_0x34603d;_0x638c26[_0x2bd8fc('0x2fa')]({'controller':'CreateOrEditWhatsappCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x389381,'parent':angular['element'](_0x19a05c[_0x2bd8fc('0x945')]),'targetEvent':_0x432081,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x35fb34[_0x2bd8fc('0x15')],'whatsappCannedAnswer':_0x53184c,'whatsappCannedAnswers':_0x35fb34[_0x2bd8fc('0x22ea')][_0x2bd8fc('0x25df')],'license':null,'setting':null,'crudPermissions':_0x35fb34[_0x2bd8fc('0xe28')]}});}function _0x1f44f2(_0x46264b){const _0x21421a=_0x34603d;_0x3db218[_0x21421a('0x1870')][_0x21421a('0x17c4')]({'id':_0x46264b['id']})[_0x21421a('0x1714')][_0x21421a('0x2788')](function(){const _0x131daa=_0x21421a;_0x283545()[_0x131daa('0x1a90')](_0x35fb34['whatsappAccountWhatsappCannedAnswers'][_0x131daa('0x25df')],{'id':_0x46264b['id']}),_0x35fb34[_0x131daa('0x22ea')][_0x131daa('0x338')]-=0x1,!_0x35fb34[_0x131daa('0x22ea')][_0x131daa('0x25df')]['length']&&_0x28a081(),_0x31790e[_0x131daa('0x173b')]({'title':_0x131daa('0x1189'),'msg':_0x46264b[_0x131daa('0x1a8d')]?_0x46264b[_0x131daa('0x1a8d')]+_0x131daa('0x14d4'):''});})[_0x21421a('0x1cb5')](function(_0x1b2c14){const _0x2d05f5=_0x21421a;if(_0x1b2c14[_0x2d05f5('0x11fc')]&&_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')]&&_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')][_0x2d05f5('0x2566')]){_0x35fb34[_0x2d05f5('0x25be')]=_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')]||[{'message':_0x1b2c14[_0x2d05f5('0x17df')](),'type':_0x2d05f5('0x185b')}];for(let _0x47bf17=0x0;_0x47bf17<_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')]['length'];_0x47bf17++){_0x31790e[_0x2d05f5('0x5e8')]({'title':_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')][_0x47bf17][_0x2d05f5('0x1d7')],'msg':_0x1b2c14[_0x2d05f5('0x11fc')][_0x2d05f5('0x25be')][_0x47bf17][_0x2d05f5('0x15e2')]});}}else _0x31790e['error']({'title':_0x1b2c14['status']?_0x2d05f5('0x15d1')+_0x1b2c14['status']+_0x2d05f5('0x1b0b')+_0x1b2c14[_0x2d05f5('0x22ce')]:_0x2d05f5('0x185b'),'msg':_0x1b2c14['data']?JSON[_0x2d05f5('0x1be0')](_0x1b2c14['data']['message']):_0x1b2c14[_0x2d05f5('0x15e2')]||_0x1b2c14['toString']()});});}function _0x4f3256(){const _0x1f5da9=_0x34603d,_0x1559e2=angular[_0x1f5da9('0x2669')](_0x35fb34[_0x1f5da9('0x1c4c')]);return _0x35fb34[_0x1f5da9('0x1c4c')]=[],_0x1559e2;}function _0x1243c9(_0x2b3ed8){const _0x68eaf3=_0x34603d,_0x2067d7=_0x638c26[_0x68eaf3('0x112e')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?')[_0x68eaf3('0x93e')](''+_0x35fb34[_0x68eaf3('0x1c4c')][_0x68eaf3('0x2566')]+'\x20selected'+_0x68eaf3('0x27c7'))[_0x68eaf3('0x10bc')](_0x68eaf3('0x1ab7'))[_0x68eaf3('0x24d0')](_0x2b3ed8)['ok']('OK')[_0x68eaf3('0x1801')](_0x68eaf3('0x1d8d'));_0x638c26[_0x68eaf3('0x2fa')](_0x2067d7)['then'](function(){const _0x134a06=_0x68eaf3;_0x35fb34[_0x134a06('0x1c4c')][_0x134a06('0x1534')](function(_0x3b8f7c){_0x1f44f2(_0x3b8f7c);}),_0x35fb34[_0x134a06('0x1c4c')]=[];});}let _0xcebb4b=!![],_0x341c2b=0x1;_0x5b381e['$watch'](_0x34603d('0x2571'),function(_0x1c7935,_0xb3030b){const _0x53432b=_0x34603d;_0xcebb4b?_0x459dce(function(){_0xcebb4b=![];}):(!_0xb3030b&&(_0x341c2b=_0x35fb34[_0x53432b('0x135a')]['page']),_0x1c7935!==_0xb3030b&&(_0x35fb34[_0x53432b('0x135a')][_0x53432b('0x23f5')]=0x1),!_0x1c7935&&(_0x35fb34['query'][_0x53432b('0x23f5')]=_0x341c2b),_0x28a081());});}const _0x49059f=_0x492331;_0xf3404a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),'$location','$mdDialog','$q',_0x34e79e('0x1a5c'),'toasty',_0x34e79e('0x1315'),_0x34e79e('0x196a'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0xf3404a(_0x5cb7f9,_0x127310,_0x80a463,_0xcc12d4,_0x5043e1,_0x21c276,_0x13a0c4,_0x5113f1,_0x22c058,_0x5b4a79,_0x5bfb97,_0x281e56,_0x58423f,_0x2ef168){const _0x28bd72=_0x34e79e,_0x1dd5ec=this;_0x1dd5ec[_0x28bd72('0x9cb')]=_0x5bfb97[_0x28bd72('0x24cc')](),_0x1dd5ec[_0x28bd72('0x25be')]=[],_0x1dd5ec[_0x28bd72('0x1af0')]=_0x58423f,_0x1dd5ec[_0x28bd72('0x130d')]=_0x281e56,_0x1dd5ec[_0x28bd72('0xe28')]=_0x2ef168,_0x1dd5ec[_0x28bd72('0x1193')]={},_0x1dd5ec['passwordPattern']=_0x1dd5ec[_0x28bd72('0x1af0')]&&_0x1dd5ec[_0x28bd72('0x1af0')][_0x28bd72('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1dd5ec[_0x28bd72('0x14e4')]='WHATSAPP.EDIT_WHATSAPPCANNEDANSWER',_0x1dd5ec['whatsappCannedAnswer']=angular['copy'](_0x22c058),_0x1dd5ec[_0x28bd72('0x1315')]=_0x5113f1,_0x1dd5ec['newWhatsappCannedAnswer']=![];!_0x1dd5ec[_0x28bd72('0x196a')]&&(_0x1dd5ec[_0x28bd72('0x196a')]={},_0x1dd5ec[_0x28bd72('0x14e4')]=_0x28bd72('0x12c7'),_0x1dd5ec[_0x28bd72('0xa73')]=!![]);_0x127310[_0x28bd72('0x4b9')]['id']&&(_0x1dd5ec[_0x28bd72('0x196a')][_0x28bd72('0x25b8')]=_0x127310['params']['id']);_0x1dd5ec[_0x28bd72('0x1811')]=_0x2a7a2f,_0x1dd5ec[_0x28bd72('0x1505')]=_0x4b3cbc,_0x1dd5ec[_0x28bd72('0x1016')]=_0x31da5f,_0x1dd5ec[_0x28bd72('0x2601')]=_0x2efbc8,_0x1dd5ec[_0x28bd72('0xca7')]=_0x4a31f1;function _0x2a7a2f(){const _0xfd7651=_0x28bd72;_0x1dd5ec[_0xfd7651('0x25be')]=[],_0x5b4a79['cannedAnswer'][_0xfd7651('0xbd0')](_0x1dd5ec[_0xfd7651('0x196a')])['$promise'][_0xfd7651('0x2788')](function(_0x3dd845){const _0x52b43c=_0xfd7651;_0x1dd5ec[_0x52b43c('0x1315')][_0x52b43c('0xc51')](_0x3dd845[_0x52b43c('0x1cbf')]()),_0x13a0c4['success']({'title':'WhatsappCannedAnswer\x20properly\x20created','msg':_0x1dd5ec['whatsappCannedAnswer'][_0x52b43c('0x1a8d')]?_0x1dd5ec[_0x52b43c('0x196a')][_0x52b43c('0x1a8d')]+_0x52b43c('0x1e4a'):''}),_0x4a31f1(_0x3dd845);})['catch'](function(_0xe9ff77){const _0x3ff967=_0xfd7651;if(_0xe9ff77[_0x3ff967('0x11fc')]&&_0xe9ff77[_0x3ff967('0x11fc')][_0x3ff967('0x25be')]&&_0xe9ff77['data']['errors'][_0x3ff967('0x2566')]){_0x1dd5ec[_0x3ff967('0x25be')]=_0xe9ff77['data'][_0x3ff967('0x25be')]||[{'message':_0xe9ff77[_0x3ff967('0x17df')](),'type':_0x3ff967('0x11b')}];for(let _0x5a50f=0x0;_0x5a50f<_0xe9ff77[_0x3ff967('0x11fc')][_0x3ff967('0x25be')]['length'];_0x5a50f+=0x1){_0x13a0c4[_0x3ff967('0x5e8')]({'title':_0xe9ff77[_0x3ff967('0x11fc')][_0x3ff967('0x25be')][_0x5a50f][_0x3ff967('0x1d7')],'msg':_0xe9ff77[_0x3ff967('0x11fc')][_0x3ff967('0x25be')][_0x5a50f][_0x3ff967('0x15e2')]});}}else _0x13a0c4[_0x3ff967('0x5e8')]({'title':_0xe9ff77[_0x3ff967('0x1b51')]?_0x3ff967('0x15d1')+_0xe9ff77[_0x3ff967('0x1b51')]+_0x3ff967('0x1b0b')+_0xe9ff77['statusText']:_0x3ff967('0x11b'),'msg':_0xe9ff77['data']?JSON[_0x3ff967('0x1be0')](_0xe9ff77[_0x3ff967('0x11fc')][_0x3ff967('0x15e2')]):_0xe9ff77[_0x3ff967('0x17df')]()});});}function _0x4b3cbc(){const _0x4b8e05=_0x28bd72;_0x1dd5ec[_0x4b8e05('0x25be')]=[],_0x5b4a79['cannedAnswer']['update']({'id':_0x1dd5ec[_0x4b8e05('0x196a')]['id']},_0x1dd5ec[_0x4b8e05('0x196a')])[_0x4b8e05('0x1714')][_0x4b8e05('0x2788')](function(_0x24cbde){const _0x571f00=_0x4b8e05,_0x402d9d=_0x283545()[_0x571f00('0x20e8')](_0x1dd5ec[_0x571f00('0x1315')],{'id':_0x24cbde['id']});_0x402d9d&&_0x283545()[_0x571f00('0x2503')](_0x402d9d,_0x283545()[_0x571f00('0x41b')](_0x24cbde[_0x571f00('0x1cbf')](),_0x283545()[_0x571f00('0x2163')](_0x402d9d))),_0x13a0c4['success']({'title':_0x571f00('0x10f7'),'msg':_0x1dd5ec[_0x571f00('0x196a')][_0x571f00('0x1a8d')]?_0x1dd5ec[_0x571f00('0x196a')]['name']+_0x571f00('0x24cf'):''}),_0x4a31f1(_0x24cbde);})['catch'](function(_0x3bfa70){const _0x25f26f=_0x4b8e05;if(_0x3bfa70['data']&&_0x3bfa70['data'][_0x25f26f('0x25be')]&&_0x3bfa70['data'][_0x25f26f('0x25be')][_0x25f26f('0x2566')]){_0x1dd5ec['errors']=_0x3bfa70[_0x25f26f('0x11fc')][_0x25f26f('0x25be')]||[{'message':_0x3bfa70[_0x25f26f('0x17df')](),'type':_0x25f26f('0x244')}];for(let _0x22b952=0x0;_0x22b952<_0x3bfa70['data'][_0x25f26f('0x25be')][_0x25f26f('0x2566')];_0x22b952++){_0x13a0c4[_0x25f26f('0x5e8')]({'title':_0x3bfa70[_0x25f26f('0x11fc')][_0x25f26f('0x25be')][_0x22b952]['type'],'msg':_0x3bfa70[_0x25f26f('0x11fc')][_0x25f26f('0x25be')][_0x22b952][_0x25f26f('0x15e2')]});}}else _0x13a0c4[_0x25f26f('0x5e8')]({'title':_0x3bfa70[_0x25f26f('0x1b51')]?_0x25f26f('0x15d1')+_0x3bfa70[_0x25f26f('0x1b51')]+'\x20-\x20'+_0x3bfa70[_0x25f26f('0x22ce')]:_0x25f26f('0x244'),'msg':_0x3bfa70[_0x25f26f('0x11fc')]?JSON[_0x25f26f('0x1be0')](_0x3bfa70[_0x25f26f('0x11fc')]['message']):_0x3bfa70['toString']()});});}function _0x31da5f(_0x5c9d1f){const _0x2d8d40=_0x28bd72;_0x1dd5ec[_0x2d8d40('0x25be')]=[];const _0x4804c0=_0xcc12d4[_0x2d8d40('0x112e')]()[_0x2d8d40('0x14e4')](_0x2d8d40('0x458'))['content']('The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.')[_0x2d8d40('0x10bc')](_0x2d8d40('0x177d'))['ok'](_0x2d8d40('0x2786'))[_0x2d8d40('0x1801')](_0x2d8d40('0x1481'))[_0x2d8d40('0x24d0')](_0x5c9d1f);_0xcc12d4['show'](_0x4804c0)[_0x2d8d40('0x2788')](function(){const _0x51f70f=_0x2d8d40;_0x5b4a79['cannedAnswer'][_0x51f70f('0x17c4')]({'id':_0x1dd5ec[_0x51f70f('0x196a')]['id']})[_0x51f70f('0x1714')][_0x51f70f('0x2788')](function(){const _0x20d03a=_0x51f70f;_0x283545()['remove'](_0x1dd5ec[_0x20d03a('0x1315')],{'id':_0x1dd5ec[_0x20d03a('0x196a')]['id']}),_0x13a0c4[_0x20d03a('0x173b')]({'title':_0x20d03a('0x6d8'),'msg':(_0x1dd5ec[_0x20d03a('0x196a')][_0x20d03a('0x1a8d')]||_0x20d03a('0x196a'))+_0x20d03a('0x14d4')}),_0x4a31f1(_0x1dd5ec[_0x20d03a('0x196a')]);})[_0x51f70f('0x1cb5')](function(_0x185297){const _0x535fe6=_0x51f70f;if(_0x185297['data']&&_0x185297['data'][_0x535fe6('0x25be')]&&_0x185297[_0x535fe6('0x11fc')][_0x535fe6('0x25be')][_0x535fe6('0x2566')]){_0x1dd5ec[_0x535fe6('0x25be')]=_0x185297[_0x535fe6('0x11fc')]['errors']||[{'message':_0x185297[_0x535fe6('0x17df')](),'type':'api.cannedAnswer.delete'}];for(let _0x1b398f=0x0;_0x1b398f<_0x185297['data'][_0x535fe6('0x25be')][_0x535fe6('0x2566')];_0x1b398f++){_0x13a0c4['error']({'title':_0x185297[_0x535fe6('0x11fc')]['errors'][_0x1b398f][_0x535fe6('0x1d7')],'msg':_0x185297['data'][_0x535fe6('0x25be')][_0x1b398f][_0x535fe6('0x15e2')]});}}else _0x13a0c4[_0x535fe6('0x5e8')]({'title':_0x185297['status']?'API:'+_0x185297[_0x535fe6('0x1b51')]+_0x535fe6('0x1b0b')+_0x185297[_0x535fe6('0x22ce')]:_0x535fe6('0x1cad'),'msg':_0x185297[_0x535fe6('0x11fc')]?JSON[_0x535fe6('0x1be0')](_0x185297[_0x535fe6('0x11fc')][_0x535fe6('0x15e2')]):_0x185297[_0x535fe6('0x15e2')]||_0x185297[_0x535fe6('0x17df')]()});});},function(){});}function _0x2efbc8(_0x54deac){return _0x54deac===null?undefined:new Date(_0x54deac);}function _0x4a31f1(_0x3ea92e){const _0x14d657=_0x28bd72;_0xcc12d4[_0x14d657('0x19d')](_0x3ea92e);}}const _0x506b72=_0xf3404a;_0x5fbd10[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'api',_0x34e79e('0xd57'),_0x34e79e('0x1b04')];function _0x5fbd10(_0x4ca6e,_0xbdecf1,_0x101c96,_0x36af69,_0x421e38,_0x59c8c8,_0x588ce3,_0x1d8332,_0x29f96c,_0x1cefcb,_0xf4aff3){const _0x5982d7=_0x34e79e,_0x46dc27=this;_0x46dc27[_0x5982d7('0x9cb')]=_0xf4aff3[_0x5982d7('0x24cc')](),_0x46dc27[_0x5982d7('0x818')]={'count':0x0,'rows':[]},_0x46dc27[_0x5982d7('0x25d8')]=[],_0x46dc27[_0x5982d7('0xe28')],_0x46dc27[_0x5982d7('0x21c2')]={'first':'1st','second':_0x5982d7('0x1e6'),'third':_0x5982d7('0x188d')},_0x46dc27[_0x5982d7('0x135a')]={'fields':_0x5982d7('0x258b'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x46dc27[_0x5982d7('0x24eb')]=_0xa3f1bd,_0x46dc27[_0x5982d7('0x16a')]=_0x27a7eb,_0x46dc27[_0x5982d7('0x173b')]=_0x197316,_0x46dc27['getDispositions']=_0x38d70d,_0x46dc27[_0x5982d7('0x2839')]=_0x3d8013,_0x46dc27[_0x5982d7('0x25ba')]=_0x48c72c,_0x46dc27[_0x5982d7('0x1550')]=_0x2f06d9,_0x46dc27['deleteSelectedDispositions']=_0x5d5259,_0x46dc27['deselectDispositions']=_0x47465b,_0x46dc27[_0x5982d7('0xe69')]=_0x41da1e;function _0xa3f1bd(_0x2776f2,_0x56bb3a){const _0x4339d9=_0x5982d7;_0x46dc27[_0x4339d9('0x15')]=_0x2776f2||{},_0x46dc27[_0x4339d9('0xe28')]=typeof _0x56bb3a!==_0x4339d9('0xedb')?_0x56bb3a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x46dc27[_0x4339d9('0x135a')][_0x4339d9('0x25b8')]=_0x46dc27[_0x4339d9('0x15')]['id'],_0x46dc27[_0x4339d9('0x135a')]['id']=_0x46dc27[_0x4339d9('0x15')]['id'],_0x38d70d();}function _0x3d8013(_0x2885ef,_0x587e87){const _0x3cc997=_0x5982d7;_0x421e38['show']({'controller':_0x3cc997('0x1cc4'),'controllerAs':'vm','templateUrl':_0x48f3a0,'parent':angular[_0x3cc997('0x16b1')](_0x59c8c8[_0x3cc997('0x945')]),'targetEvent':_0x2885ef,'clickOutsideToClose':!![],'locals':{'disposition':_0x587e87,'dispositions':_0x46dc27[_0x3cc997('0x818')][_0x3cc997('0x25df')],'model':{'id':_0x46dc27[_0x3cc997('0x15')]['id'],'field':_0x3cc997('0x25b8')},'license':null,'setting':null,'crudPermissions':_0x46dc27[_0x3cc997('0xe28')]}})[_0x3cc997('0x2788')](function(_0x503f2f){if(_0x503f2f)_0x38d70d();});}function _0x27a7eb(_0x1820f6,_0x13a1c8){const _0x3bd88b=_0x5982d7,_0x454284=_0x283545()[_0x3bd88b('0xc5d')](_0x46dc27[_0x3bd88b('0x818')][_0x3bd88b('0x25df')],[_0x3bd88b('0x1ba'),_0x1820f6['id']]),_0x2d28e4=_0x421e38[_0x3bd88b('0x112e')]()[_0x3bd88b('0x14e4')](_0x1d8332['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x3bd88b('0x1c98')](_0x1d8332[_0x3bd88b('0x1b11')](_0x3bd88b('0x5b')+(_0x454284?_0x3bd88b('0x40a'):_0x3bd88b('0x281c')),{'name':_0x1820f6[_0x3bd88b('0x1a8d')]}))[_0x3bd88b('0x10bc')](_0x3bd88b('0x1f86'))[_0x3bd88b('0x24d0')](_0x13a1c8)['ok']('OK')[_0x3bd88b('0x1801')](_0x1d8332[_0x3bd88b('0x1b11')]('TOOLS.CANCEL'));_0x421e38['show'](_0x2d28e4)[_0x3bd88b('0x2788')](function(){_0x48c72c(_0x1820f6);});}function _0x197316(_0x50fd12){_0x46dc27['dispositions']=_0x50fd12||{'count':0x0,'rows':[]};}function _0x38d70d(){const _0x40bfa8=_0x5982d7;_0x46dc27[_0x40bfa8('0x135a')]['offset']=(_0x46dc27[_0x40bfa8('0x135a')][_0x40bfa8('0x23f5')]-0x1)*_0x46dc27[_0x40bfa8('0x135a')]['limit'],_0x46dc27[_0x40bfa8('0x1808')]=_0x29f96c[_0x40bfa8('0x15')][_0x40bfa8('0x2069')](_0x46dc27['query'],_0x197316)[_0x40bfa8('0x1714')];}function _0x48c72c(_0x4c155c){const _0x494c6d=_0x5982d7;_0x29f96c['disposition'][_0x494c6d('0x17c4')]({'id':_0x4c155c['id']})[_0x494c6d('0x1714')][_0x494c6d('0x2788')](function(){const _0x132205=_0x494c6d;_0x38d70d(),_0x1cefcb[_0x132205('0x173b')]({'title':_0x1d8332['instant'](_0x132205('0x156e'))});})[_0x494c6d('0x1cb5')](function(_0x1ced45){const _0x3cd20e=_0x494c6d;if(_0x1ced45['data']&&_0x1ced45[_0x3cd20e('0x11fc')][_0x3cd20e('0x25be')]&&_0x1ced45[_0x3cd20e('0x11fc')][_0x3cd20e('0x25be')][_0x3cd20e('0x2566')]){_0x46dc27[_0x3cd20e('0x25be')]=_0x1ced45[_0x3cd20e('0x11fc')][_0x3cd20e('0x25be')]||[{'message':_0x1ced45['toString'](),'type':_0x3cd20e('0x1410')}];for(let _0x5b3f1c=0x0;_0x5b3f1c<_0x1ced45[_0x3cd20e('0x11fc')][_0x3cd20e('0x25be')][_0x3cd20e('0x2566')];_0x5b3f1c++){_0x1cefcb['error']({'title':_0x1ced45[_0x3cd20e('0x11fc')]['errors'][_0x5b3f1c][_0x3cd20e('0x1d7')],'msg':_0x1ced45['data'][_0x3cd20e('0x25be')][_0x5b3f1c][_0x3cd20e('0x15e2')]});}}else _0x1cefcb[_0x3cd20e('0x5e8')]({'title':_0x1ced45[_0x3cd20e('0x1b51')]?_0x3cd20e('0x15d1')+_0x1ced45['status']+_0x3cd20e('0x1b0b')+_0x1ced45[_0x3cd20e('0x22ce')]:_0x3cd20e('0x1410'),'msg':_0x1ced45[_0x3cd20e('0x11fc')]?JSON[_0x3cd20e('0x1be0')](_0x1ced45[_0x3cd20e('0x11fc')][_0x3cd20e('0x15e2')]):_0x1ced45[_0x3cd20e('0x15e2')]||_0x1ced45[_0x3cd20e('0x17df')]()});});}function _0x2f06d9(){const _0x3075a9=_0x5982d7,_0x55d25e=angular[_0x3075a9('0x2669')](_0x46dc27['selectedDispositions']);return _0x46dc27['selectedDispositions']=[],_0x55d25e;}function _0x5d5259(_0x23a2f2){const _0x140943=_0x5982d7,_0x307c37=_0x421e38[_0x140943('0x112e')]()['title'](_0x1d8332[_0x140943('0x1b11')](_0x140943('0x63d')))[_0x140943('0x1c98')](_0x1d8332[_0x140943('0x1b11')](_0x140943('0x153f'),{'total':_0x46dc27[_0x140943('0x25d8')][_0x140943('0x2566')]}))[_0x140943('0x10bc')](_0x140943('0x248b'))[_0x140943('0x24d0')](_0x23a2f2)['ok']('OK')['cancel'](_0x1d8332[_0x140943('0x1b11')](_0x140943('0x1061')));_0x421e38[_0x140943('0x2fa')](_0x307c37)[_0x140943('0x2788')](function(){const _0x462946=_0x140943;_0x46dc27[_0x462946('0x25d8')][_0x462946('0x1534')](function(_0x373feb){_0x48c72c(_0x373feb);}),_0x46dc27[_0x462946('0x25d8')]=[];});}function _0x47465b(){const _0x1af005=_0x5982d7;_0x46dc27[_0x1af005('0x25d8')]=[];}function _0x41da1e(){const _0x31220f=_0x5982d7;_0x46dc27[_0x31220f('0x25d8')]=_0x46dc27[_0x31220f('0x818')]['rows'];}let _0x37cdc4=!![],_0x5abfaf=0x1;_0x4ca6e[_0x5982d7('0x1662')](_0x5982d7('0x2571'),function(_0x3f2433,_0x493a57){const _0x538847=_0x5982d7;_0x37cdc4?_0x588ce3(function(){_0x37cdc4=![];}):(!_0x493a57&&(_0x5abfaf=_0x46dc27[_0x538847('0x135a')][_0x538847('0x23f5')]),_0x3f2433!==_0x493a57&&(_0x46dc27[_0x538847('0x135a')][_0x538847('0x23f5')]=0x1),!_0x3f2433&&(_0x46dc27[_0x538847('0x135a')][_0x538847('0x23f5')]=_0x5abfaf),_0x38d70d());});}const _0x126b7b=_0x5fbd10,_0x1c871c=_0x18dd13['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html';_0x951b0[_0x34e79e('0x2d9')]=[_0x34e79e('0x1701'),_0x34e79e('0x1bf5'),_0x34e79e('0x1382'),_0x34e79e('0x2179'),_0x34e79e('0x123b'),_0x34e79e('0x1580'),_0x34e79e('0x446'),_0x34e79e('0x1a5c'),'whatsappAccounts',_0x34e79e('0x63c'),_0x34e79e('0xec9'),_0x34e79e('0x519'),_0x34e79e('0x9c4'),_0x34e79e('0xd57'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting'];function _0x951b0(_0x53bc76,_0x368bed,_0x4b6900,_0x271552,_0x337ae3,_0x40b4d2,_0x1d03c0,_0x99c8fb,_0x494aae,_0x353e85,_0x106fb7,_0x493a6f,_0xdbcb25,_0x2262e0,_0x5f0f54,_0x2f0181,_0x86ff4){const _0x1fde8f=_0x34e79e,_0x431765=this;_0x431765[_0x1fde8f('0x130d')]=_0x2f0181,_0x431765[_0x1fde8f('0x1af0')]=_0x86ff4,_0x431765[_0x1fde8f('0x9cb')]=_0x5f0f54[_0x1fde8f('0x24cc')](),_0x431765[_0x1fde8f('0xa47')]=_0x494aae||{'count':0x0,'rows':[]},_0x431765[_0x1fde8f('0x63c')]=_0x353e85,_0x431765['userProfileSection']=_0x106fb7&&_0x106fb7['count']==0x1?_0x106fb7[_0x1fde8f('0x25df')][0x0]:null,_0x431765[_0x1fde8f('0xe28')]=_0x5f0f54[_0x1fde8f('0x157e')](_0x431765['userProfileSection']?_0x431765[_0x1fde8f('0xec9')][_0x1fde8f('0xe28')]:null),_0x431765[_0x1fde8f('0x26a9')]=_0x1fde8f('0xa47'),_0x431765[_0x1fde8f('0x2278')]='',_0x431765['listOrderAsc']=null,_0x431765['selectedWhatsappAccounts']=[],_0x431765[_0x1fde8f('0x135a')]={'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':_0x1fde8f('0x1cee'),'limit':0xa,'page':0x1},_0x431765['arraytype']=_0x283545()[_0x1fde8f('0x13cf')]([{'option':'Twilio','value':_0x1fde8f('0x1621')}],function(_0x3b761b){const _0x59d5b2=_0x1fde8f;return _0x283545()['replace'](_0x3b761b[_0x59d5b2('0x49')],new RegExp('\x27','g'),'');}),_0x431765[_0x1fde8f('0x1f7e')]=_0x529162,_0x431765[_0x1fde8f('0x3aa')]=_0x4483ed,_0x431765[_0x1fde8f('0x1113')]=_0x3eca8f,_0x431765[_0x1fde8f('0x1e5')]=_0x1f1930,_0x431765[_0x1fde8f('0x173b')]=_0x391a8e,_0x431765[_0x1fde8f('0x2238')]=_0x1f816a,_0x431765[_0x1fde8f('0x1a0c')]=_0x484b2e,_0x431765[_0x1fde8f('0x1dc7')]=_0x20136d,_0x431765['exportSelectedWhatsappAccounts']=_0x12cf3d,_0x431765['deleteSelectedWhatsappAccounts']=_0x469a0f,_0x431765[_0x1fde8f('0x2424')]=_0x244970,_0x431765[_0x1fde8f('0xa07')]=_0x150fdc,_0x5f0f54[_0x1fde8f('0x1516')](_0x1fde8f('0xe23'))?_0x493a6f['cmList']['get']({'fields':_0x1fde8f('0x1338'),'sort':_0x1fde8f('0x1a8d')})[_0x1fde8f('0x1714')][_0x1fde8f('0x2788')](function(_0x5bfc9b){const _0x16870a=_0x1fde8f;_0x431765[_0x16870a('0x2')]=_0x5bfc9b[_0x16870a('0x25df')]||[];})[_0x1fde8f('0x1cb5')](function(_0x14f109){const _0x5db930=_0x1fde8f;_0x2262e0[_0x5db930('0x5e8')]({'title':_0x14f109[_0x5db930('0x1b51')]?_0x5db930('0x15d1')+_0x14f109['status']+_0x5db930('0x1b0b')+_0x14f109[_0x5db930('0x22ce')]:_0x5db930('0x11da'),'msg':_0x14f109[_0x5db930('0x11fc')]?JSON['stringify'](_0x14f109[_0x5db930('0x11fc')]):_0x14f109['toString']()});}):_0x493a6f['cmList'][_0x1fde8f('0x1335')]({'fields':_0x1fde8f('0x1338'),'sort':_0x1fde8f('0x1a8d')})[_0x1fde8f('0x1714')][_0x1fde8f('0x2788')](function(_0x439f96){const _0x3f6e69=_0x1fde8f;_0x431765[_0x3f6e69('0x2')]=_0x439f96['rows']||[];})['then'](function(){const _0x4c4ce1=_0x1fde8f;return _0x493a6f[_0x4c4ce1('0xec9')]['get']({'userProfileId':_0x431765[_0x4c4ce1('0x9cb')]['userProfileId'],'sectionId':0x12d})[_0x4c4ce1('0x1714')];})[_0x1fde8f('0x2788')](function(_0x14a7c0){const _0x134df8=_0x1fde8f,_0x2092b2=_0x14a7c0&&_0x14a7c0['rows']?_0x14a7c0[_0x134df8('0x25df')][0x0]:null;if(!_0x2092b2){const _0xcf39fa=[];let _0x8af3f=null;_0x431765[_0x134df8('0x15')]&&(_0x8af3f=_0x283545()[_0x134df8('0x20e8')](_0x431765['lists'],{'id':Number(_0x431765[_0x134df8('0x15')][_0x134df8('0x354')])}));for(let _0x19527e=0x0;_0x19527e<_0x431765['lists'][_0x134df8('0x2566')];_0x19527e++){_0x8af3f&&_0x431765[_0x134df8('0x2')][_0x19527e]['id']===_0x8af3f['id']&&(_0x431765[_0x134df8('0x2')][_0x19527e][_0x134df8('0x3bf')]=![],_0xcf39fa['push'](_0x431765[_0x134df8('0x2')][_0x19527e]));}_0x431765['lists']=_0xcf39fa;}else{if(!_0x2092b2[_0x134df8('0x1c0a')])return _0x493a6f[_0x134df8('0x1050')]['get']({'sectionId':_0x2092b2['id']})[_0x134df8('0x1714')][_0x134df8('0x2788')](function(_0x45c3c4){const _0x4a45a8=_0x134df8,_0x5801df=_0x283545()[_0x4a45a8('0x155d')](_0x45c3c4[_0x4a45a8('0x25df')],function(_0x2388ed){const _0x4e61c7=_0x4a45a8;return _0x283545()[_0x4e61c7('0x20e8')](_0x431765['lists'],{'id':_0x2388ed[_0x4e61c7('0x2707')]});});let _0x3fac91=null;_0x431765[_0x4a45a8('0x15')]&&(_0x3fac91=_0x283545()[_0x4a45a8('0x20e8')](_0x431765[_0x4a45a8('0x2')],{'id':Number(_0x431765[_0x4a45a8('0x15')][_0x4a45a8('0x354')])}));if(_0x3fac91&&!_0x283545()[_0x4a45a8('0xc5d')](_0x5801df,['id',_0x3fac91['id']])){const _0x369d9e=_0x283545()[_0x4a45a8('0x20e8')](_0x431765['lists'],{'id':_0x3fac91['id']});_0x369d9e[_0x4a45a8('0x3bf')]=![],_0x5801df[_0x4a45a8('0x13e3')](_0x369d9e);}_0x431765[_0x4a45a8('0x2')]=_0x5801df;});}})[_0x1fde8f('0x1cb5')](function(_0x4dbd6e){const _0x257688=_0x1fde8f;_0x2262e0[_0x257688('0x5e8')]({'title':_0x4dbd6e[_0x257688('0x1b51')]?_0x257688('0x15d1')+_0x4dbd6e[_0x257688('0x1b51')]+_0x257688('0x1b0b')+_0x4dbd6e[_0x257688('0x22ce')]:'SYSTEM:GETlists','msg':_0x4dbd6e[_0x257688('0x11fc')]?JSON[_0x257688('0x1be0')](_0x4dbd6e['data']):_0x4dbd6e[_0x257688('0x17df')]()});}),_0x5f0f54[_0x1fde8f('0x1516')](_0x1fde8f('0xe23'))?_0x493a6f[_0x1fde8f('0x619')]['get']({'fields':'name,id','sort':'name','nolimit':_0x1fde8f('0x1001')})['$promise']['then'](function(_0x50f449){const _0x5a3215=_0x1fde8f;_0x431765[_0x5a3215('0x225d')]=_0x50f449[_0x5a3215('0x25df')]||[];})[_0x1fde8f('0x1cb5')](function(_0x236f9a){const _0x442805=_0x1fde8f;_0x2262e0[_0x442805('0x5e8')]({'title':_0x236f9a['status']?_0x442805('0x15d1')+_0x236f9a[_0x442805('0x1b51')]+'\x20-\x20'+_0x236f9a[_0x442805('0x22ce')]:'SYSTEM:GET_PAUSES','msg':_0x236f9a[_0x442805('0x11fc')]?JSON['stringify'](_0x236f9a[_0x442805('0x11fc')]):_0x236f9a[_0x442805('0x17df')]()});}):_0x493a6f[_0x1fde8f('0x619')][_0x1fde8f('0x1335')]({'fields':_0x1fde8f('0xcfa'),'sort':_0x1fde8f('0x1a8d'),'nolimit':_0x1fde8f('0x1001')})['$promise'][_0x1fde8f('0x2788')](function(_0x3e81d6){const _0x22d715=_0x1fde8f;_0x431765[_0x22d715('0x225d')]=_0x3e81d6[_0x22d715('0x25df')]||[];})[_0x1fde8f('0x2788')](function(){const _0x306cd8=_0x1fde8f;return _0x493a6f[_0x306cd8('0xec9')][_0x306cd8('0x1335')]({'userProfileId':_0x431765['currentUser']['userProfileId'],'sectionId':0x3ed})[_0x306cd8('0x1714')];})['then'](function(_0x51c288){const _0x513fc1=_0x1fde8f,_0x1eb14a=_0x51c288&&_0x51c288[_0x513fc1('0x25df')]?_0x51c288[_0x513fc1('0x25df')][0x0]:null;if(!_0x1eb14a)_0x431765['pauses']=[];else{if(!_0x1eb14a[_0x513fc1('0x1c0a')])return _0x493a6f[_0x513fc1('0x1050')][_0x513fc1('0x1335')]({'sectionId':_0x1eb14a['id']})[_0x513fc1('0x1714')][_0x513fc1('0x2788')](function(_0x232849){const _0x2af6dd=_0x513fc1,_0x48a51b=_0x283545()[_0x2af6dd('0x155d')](_0x232849['rows'],function(_0x3385ce){const _0x4e1287=_0x2af6dd;return _0x283545()[_0x4e1287('0x20e8')](_0x431765[_0x4e1287('0x225d')],{'id':_0x3385ce[_0x4e1287('0x2707')]});});_0x431765[_0x2af6dd('0x225d')]['forEach'](function(_0x42cca3){const _0x5d0cc7=_0x2af6dd;!_0x283545()[_0x5d0cc7('0xc5d')](_0x48a51b,['id',_0x42cca3['id']])&&(_0x42cca3[_0x5d0cc7('0x3bf')]=![]),_0x48a51b[_0x5d0cc7('0x13e3')](_0x42cca3);}),_0x431765[_0x2af6dd('0x225d')]=_0x48a51b;});}})[_0x1fde8f('0x1cb5')](function(_0x1e29d0){const _0x16b46d=_0x1fde8f;_0x2262e0[_0x16b46d('0x5e8')]({'title':_0x1e29d0[_0x16b46d('0x1b51')]?_0x16b46d('0x15d1')+_0x1e29d0['status']+_0x16b46d('0x1b0b')+_0x1e29d0[_0x16b46d('0x22ce')]:'SYSTEM:GETpauses','msg':_0x1e29d0['data']?JSON['stringify'](_0x1e29d0[_0x16b46d('0x11fc')]):_0x1e29d0[_0x16b46d('0x17df')]()});});function _0x529162(_0x2fba6b){const _0x45978f=_0x1fde8f;_0x4b6900['go'](_0x45978f('0x24b5'),{'id':_0x2fba6b['id'],'whatsappAccount':_0x2fba6b,'crudPermissions':_0x431765[_0x45978f('0xe28')]});}function _0x4483ed(_0x34b2a7){const _0x93639e=_0x1fde8f;_0x4b6900['go'](_0x93639e('0x24b5'),{'id':_0x34b2a7['id'],'tab':0x5});}function _0x3eca8f(_0x19eaaf,_0x3e90ba){const _0x36628c=_0x1fde8f;_0x337ae3['show']({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x305105,'parent':angular[_0x36628c('0x16b1')](_0x40b4d2['body']),'targetEvent':_0x3e90ba,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x19eaaf,'whatsappAccounts':_0x431765[_0x36628c('0xa47')]?_0x431765[_0x36628c('0xa47')]['rows']:[],'crudPermissions':_0x431765[_0x36628c('0xe28')],'realtime':![]}});}function _0x1f1930(_0x6c98f5,_0x15eb45){const _0xd85051=_0x1fde8f,_0x213ce1=_0x337ae3['confirm']()[_0xd85051('0x14e4')](_0xd85051('0x2114')+_0x283545()[_0xd85051('0x114')](_0xd85051('0x15'))+'?')[_0xd85051('0x93e')](''+(_0x6c98f5[_0xd85051('0x1a8d')]||_0xd85051('0x15'))+''+_0xd85051('0x27c7'))[_0xd85051('0x10bc')]('delete\x20whatsappAccount')['targetEvent'](_0x15eb45)['ok']('OK')[_0xd85051('0x1801')](_0xd85051('0x1d8d'));_0x337ae3[_0xd85051('0x2fa')](_0x213ce1)[_0xd85051('0x2788')](function(){_0x20136d(_0x6c98f5);},function(){const _0x16a092=_0xd85051;console[_0x16a092('0x10df')](_0x16a092('0x1d8d'));});}let _0x2094eb=!![],_0xac1057=0x1;_0x53bc76[_0x1fde8f('0x1662')](_0x1fde8f('0x1569'),function(_0x46369d,_0x180ad9){const _0x3d0fc4=_0x1fde8f;_0x2094eb?_0x1d03c0(function(){_0x2094eb=![];}):(!_0x180ad9&&(_0xac1057=_0x431765['query'][_0x3d0fc4('0x23f5')]),_0x46369d!==_0x180ad9&&(_0x431765[_0x3d0fc4('0x135a')][_0x3d0fc4('0x23f5')]=0x1),!_0x46369d&&(_0x431765[_0x3d0fc4('0x135a')][_0x3d0fc4('0x23f5')]=_0xac1057),_0x431765['getWhatsappAccounts']());});function _0x391a8e(_0x60f99d){const _0x205fe3=_0x1fde8f;_0x431765[_0x205fe3('0xa47')]=_0x60f99d||{'count':0x0,'rows':[]};}function _0x1f816a(){const _0x3c9d39=_0x1fde8f;_0x431765[_0x3c9d39('0x135a')][_0x3c9d39('0x19e')]=(_0x431765[_0x3c9d39('0x135a')][_0x3c9d39('0x23f5')]-0x1)*_0x431765['query'][_0x3c9d39('0x68e')],_0x5f0f54[_0x3c9d39('0x1516')]('admin')?_0x431765['promise']=_0x493a6f['whatsappAccount']['get'](_0x431765[_0x3c9d39('0x135a')],_0x391a8e)[_0x3c9d39('0x1714')]:(_0x431765[_0x3c9d39('0x135a')]['id']=_0x431765[_0x3c9d39('0x63c')]['id'],_0x431765['query']['section']=_0x3c9d39('0x284b'),_0x431765[_0x3c9d39('0x1808')]=_0x493a6f['userProfile'][_0x3c9d39('0xa1')](_0x431765[_0x3c9d39('0x135a')],_0x391a8e)[_0x3c9d39('0x1714')]);}function _0x484b2e(_0x978f42,_0x40d1a7){const _0x107451=_0x1fde8f;_0x337ae3['show']({'controller':_0x107451('0x18a5'),'controllerAs':'vm','templateUrl':_0x1c871c,'parent':angular[_0x107451('0x16b1')](_0x40b4d2[_0x107451('0x945')]),'targetEvent':_0x978f42,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x40d1a7,'whatsappAccounts':_0x431765[_0x107451('0xa47')][_0x107451('0x25df')],'license':_0x431765['license'],'setting':_0x431765[_0x107451('0x1af0')],'crudPermissions':_0x431765[_0x107451('0xe28')]}});}function _0x20136d(_0xedeb9c){const _0x10b1f1=_0x1fde8f;_0x493a6f['whatsappAccount']['delete']({'id':_0xedeb9c['id']})[_0x10b1f1('0x1714')][_0x10b1f1('0x2788')](function(){const _0x356e85=_0x10b1f1;_0x283545()['remove'](_0x431765[_0x356e85('0xa47')][_0x356e85('0x25df')],{'id':_0xedeb9c['id']}),_0x431765[_0x356e85('0xa47')][_0x356e85('0x338')]-=0x1,!_0x431765[_0x356e85('0xa47')][_0x356e85('0x25df')]['length']&&_0x431765[_0x356e85('0x2238')](),_0x2262e0[_0x356e85('0x173b')]({'title':_0x283545()['startCase'](_0x356e85('0x6e0'))+_0x356e85('0x20db'),'msg':_0xedeb9c['name']?_0xedeb9c[_0x356e85('0x1a8d')]+_0x356e85('0x14d4'):''});})[_0x10b1f1('0x1cb5')](function(_0x313c92){const _0x4681f7=_0x10b1f1;if(_0x313c92[_0x4681f7('0x11fc')]&&_0x313c92['data'][_0x4681f7('0x25be')]&&_0x313c92['data'][_0x4681f7('0x25be')][_0x4681f7('0x2566')]){_0x431765[_0x4681f7('0x25be')]=_0x313c92[_0x4681f7('0x11fc')][_0x4681f7('0x25be')]||[{'message':_0x313c92[_0x4681f7('0x17df')](),'type':_0x4681f7('0x196d')}];for(let _0x773460=0x0;_0x773460<_0x313c92[_0x4681f7('0x11fc')][_0x4681f7('0x25be')][_0x4681f7('0x2566')];_0x773460++){_0x2262e0[_0x4681f7('0x5e8')]({'title':_0x313c92['data'][_0x4681f7('0x25be')][_0x773460][_0x4681f7('0x1d7')],'msg':_0x313c92['data'][_0x4681f7('0x25be')][_0x773460][_0x4681f7('0x15e2')]});}}else _0x2262e0[_0x4681f7('0x5e8')]({'title':_0x313c92['status']?_0x4681f7('0x15d1')+_0x313c92[_0x4681f7('0x1b51')]+'\x20-\x20'+_0x313c92[_0x4681f7('0x22ce')]:'SYSTEM:DELETEwhatsappAccount','msg':_0x313c92[_0x4681f7('0x11fc')]?JSON[_0x4681f7('0x1be0')](_0x313c92[_0x4681f7('0x11fc')][_0x4681f7('0x15e2')]):_0x313c92[_0x4681f7('0x15e2')]||_0x313c92['toString']()});});}function _0x12cf3d(){const _0x439d00=_0x1fde8f,_0x498824=angular[_0x439d00('0x2669')](_0x431765[_0x439d00('0x24a6')]);return _0x431765[_0x439d00('0x24a6')]=[],_0x498824;}function _0x469a0f(_0x5d8249){const _0x594a3e=_0x1fde8f,_0x119e40=_0x337ae3[_0x594a3e('0x112e')]()[_0x594a3e('0x14e4')](_0x594a3e('0xaa6'))[_0x594a3e('0x93e')](_0x594a3e('0x1670')+_0x431765['selectedWhatsappAccounts'][_0x594a3e('0x2566')]+_0x594a3e('0xbd')+_0x594a3e('0x27c7'))[_0x594a3e('0x10bc')](_0x594a3e('0x1296'))[_0x594a3e('0x24d0')](_0x5d8249)['ok']('OK')['cancel'](_0x594a3e('0x1d8d'));_0x337ae3['show'](_0x119e40)[_0x594a3e('0x2788')](function(){const _0x4d4453=_0x594a3e;_0x431765[_0x4d4453('0x24a6')]['forEach'](function(_0x58759c){_0x20136d(_0x58759c);}),_0x431765[_0x4d4453('0x24a6')]=[];});}function _0x244970(){const _0x5a0c0a=_0x1fde8f;_0x431765[_0x5a0c0a('0x24a6')]=[];}function _0x150fdc(){const _0x4349ea=_0x1fde8f;_0x431765[_0x4349ea('0x24a6')]=_0x431765[_0x4349ea('0xa47')][_0x4349ea('0x25df')];}}const _0x1b69aa=_0x951b0;_0x598eb2['$inject']=[_0x34e79e('0x1701'),_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$q',_0x34e79e('0x1a5c'),_0x34e79e('0xd57'),_0x34e79e('0x1f92'),_0x34e79e('0x1170'),_0x34e79e('0x519'),_0x34e79e('0x1b04'),_0x34e79e('0x130d'),'setting',_0x34e79e('0xe28')];function _0x598eb2(_0x13d7aa,_0x5222ea,_0x57e5fa,_0x40929d,_0x203553,_0x2dae97,_0x480479,_0x1269cb,_0x208c04,_0x4f908e,_0x261423,_0x248735,_0x695944,_0x579635){const _0x7a442e=_0x34e79e,_0x19a547=this;_0x19a547[_0x7a442e('0x9cb')]=_0x261423['getCurrentUser'](),_0x19a547[_0x7a442e('0x25be')]=[],_0x19a547[_0x7a442e('0x1af0')]=_0x695944,_0x19a547[_0x7a442e('0x130d')]=_0x248735,_0x19a547[_0x7a442e('0xe28')]=_0x579635,_0x19a547[_0x7a442e('0x1193')]={},_0x19a547['passwordPattern']=_0x19a547[_0x7a442e('0x1af0')]&&_0x19a547[_0x7a442e('0x1af0')][_0x7a442e('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19a547['title']=_0x7a442e('0x1691'),_0x19a547['whatsappQueue']=angular[_0x7a442e('0x2669')](_0x208c04),_0x19a547['whatsappQueues']=_0x1269cb,_0x19a547[_0x7a442e('0x1aad')]=![];!_0x19a547[_0x7a442e('0x1170')]&&(_0x19a547['whatsappQueue']={'strategy':'beepall','timeout':0xa},_0x19a547[_0x7a442e('0x14e4')]='WHATSAPP.NEW_WHATSAPPQUEUE',_0x19a547[_0x7a442e('0x1aad')]=!![]);_0x19a547[_0x7a442e('0x1297')]=_0x51f2e0,_0x19a547['saveWhatsappQueue']=_0x47fe8b,_0x19a547[_0x7a442e('0x1b26')]=_0x50a1b9,_0x19a547[_0x7a442e('0x2601')]=_0x3acc98,_0x19a547[_0x7a442e('0xca7')]=_0x12e87b;function _0x51f2e0(){const _0x164979=_0x7a442e;_0x19a547['errors']=[],_0x4f908e['whatsappQueue'][_0x164979('0xbd0')](_0x19a547[_0x164979('0x1170')])[_0x164979('0x1714')]['then'](function(_0xc2d27b){const _0x1796b0=_0x164979;_0x19a547['whatsappQueues'][_0x1796b0('0xc51')](_0xc2d27b[_0x1796b0('0x1cbf')]()),_0x480479[_0x1796b0('0x173b')]({'title':'WhatsappQueue\x20properly\x20created','msg':_0x19a547['whatsappQueue'][_0x1796b0('0x1a8d')]?_0x19a547[_0x1796b0('0x1170')][_0x1796b0('0x1a8d')]+_0x1796b0('0x1e4a'):''}),_0x12e87b(_0xc2d27b);})[_0x164979('0x1cb5')](function(_0xcf5da4){const _0x14a81f=_0x164979;if(_0xcf5da4[_0x14a81f('0x11fc')]&&_0xcf5da4[_0x14a81f('0x11fc')][_0x14a81f('0x25be')]&&_0xcf5da4[_0x14a81f('0x11fc')]['errors'][_0x14a81f('0x2566')]){_0x19a547[_0x14a81f('0x25be')]=_0xcf5da4[_0x14a81f('0x11fc')][_0x14a81f('0x25be')]||[{'message':_0xcf5da4['toString'](),'type':'api.whatsappQueue.save'}];for(let _0x3130aa=0x0;_0x3130aa<_0xcf5da4[_0x14a81f('0x11fc')]['errors'][_0x14a81f('0x2566')];_0x3130aa+=0x1){_0x480479['error']({'title':_0xcf5da4[_0x14a81f('0x11fc')][_0x14a81f('0x25be')][_0x3130aa][_0x14a81f('0x1d7')],'msg':_0xcf5da4['data'][_0x14a81f('0x25be')][_0x3130aa][_0x14a81f('0x15e2')]});}}else _0x480479[_0x14a81f('0x5e8')]({'title':_0xcf5da4[_0x14a81f('0x1b51')]?_0x14a81f('0x15d1')+_0xcf5da4[_0x14a81f('0x1b51')]+'\x20-\x20'+_0xcf5da4[_0x14a81f('0x22ce')]:_0x14a81f('0x1309'),'msg':_0xcf5da4[_0x14a81f('0x11fc')]?JSON['stringify'](_0xcf5da4[_0x14a81f('0x11fc')]['message']):_0xcf5da4[_0x14a81f('0x17df')]()});});}function _0x47fe8b(){const _0x5ba9d9=_0x7a442e;_0x19a547[_0x5ba9d9('0x25be')]=[],_0x4f908e[_0x5ba9d9('0x1170')][_0x5ba9d9('0x2740')]({'id':_0x19a547[_0x5ba9d9('0x1170')]['id']},_0x19a547['whatsappQueue'])[_0x5ba9d9('0x1714')][_0x5ba9d9('0x2788')](function(_0x25a15d){const _0xaf8344=_0x5ba9d9,_0x28bb59=_0x283545()[_0xaf8344('0x20e8')](_0x19a547[_0xaf8344('0x1f92')],{'id':_0x25a15d['id']});_0x28bb59&&_0x283545()['merge'](_0x28bb59,_0x283545()['pick'](_0x25a15d[_0xaf8344('0x1cbf')](),_0x283545()[_0xaf8344('0x2163')](_0x28bb59))),_0x480479[_0xaf8344('0x173b')]({'title':'WhatsappQueue\x20properly\x20saved!','msg':_0x19a547[_0xaf8344('0x1170')]['name']?_0x19a547[_0xaf8344('0x1170')]['name']+_0xaf8344('0x24cf'):''}),_0x12e87b(_0x25a15d);})['catch'](function(_0x3cbbb7){const _0x4a8ed2=_0x5ba9d9;if(_0x3cbbb7[_0x4a8ed2('0x11fc')]&&_0x3cbbb7[_0x4a8ed2('0x11fc')][_0x4a8ed2('0x25be')]&&_0x3cbbb7[_0x4a8ed2('0x11fc')]['errors']['length']){_0x19a547[_0x4a8ed2('0x25be')]=_0x3cbbb7[_0x4a8ed2('0x11fc')][_0x4a8ed2('0x25be')]||[{'message':_0x3cbbb7[_0x4a8ed2('0x17df')](),'type':_0x4a8ed2('0x2366')}];for(let _0x2e274e=0x0;_0x2e274e<_0x3cbbb7[_0x4a8ed2('0x11fc')][_0x4a8ed2('0x25be')][_0x4a8ed2('0x2566')];_0x2e274e++){_0x480479[_0x4a8ed2('0x5e8')]({'title':_0x3cbbb7[_0x4a8ed2('0x11fc')]['errors'][_0x2e274e][_0x4a8ed2('0x1d7')],'msg':_0x3cbbb7[_0x4a8ed2('0x11fc')][_0x4a8ed2('0x25be')][_0x2e274e][_0x4a8ed2('0x15e2')]});}}else _0x480479[_0x4a8ed2('0x5e8')]({'title':_0x3cbbb7[_0x4a8ed2('0x1b51')]?_0x4a8ed2('0x15d1')+_0x3cbbb7[_0x4a8ed2('0x1b51')]+_0x4a8ed2('0x1b0b')+_0x3cbbb7[_0x4a8ed2('0x22ce')]:_0x4a8ed2('0x2366'),'msg':_0x3cbbb7[_0x4a8ed2('0x11fc')]?JSON['stringify'](_0x3cbbb7[_0x4a8ed2('0x11fc')][_0x4a8ed2('0x15e2')]):_0x3cbbb7['toString']()});});}function _0x50a1b9(_0x18305e){const _0x264ae4=_0x7a442e;_0x19a547[_0x264ae4('0x25be')]=[];const _0x3ec72a=_0x40929d['confirm']()[_0x264ae4('0x14e4')](_0x264ae4('0x458'))['content'](_0x264ae4('0xe70'))[_0x264ae4('0x10bc')](_0x264ae4('0x2a2'))['ok']('Delete')[_0x264ae4('0x1801')](_0x264ae4('0x1481'))[_0x264ae4('0x24d0')](_0x18305e);_0x40929d['show'](_0x3ec72a)[_0x264ae4('0x2788')](function(){const _0x2e0b78=_0x264ae4;_0x4f908e[_0x2e0b78('0x1170')][_0x2e0b78('0x17c4')]({'id':_0x19a547[_0x2e0b78('0x1170')]['id']})[_0x2e0b78('0x1714')][_0x2e0b78('0x2788')](function(){const _0x1dfa05=_0x2e0b78;_0x283545()[_0x1dfa05('0x1a90')](_0x19a547[_0x1dfa05('0x1f92')],{'id':_0x19a547[_0x1dfa05('0x1170')]['id']}),_0x480479[_0x1dfa05('0x173b')]({'title':_0x1dfa05('0x1135'),'msg':(_0x19a547[_0x1dfa05('0x1170')]['name']||_0x1dfa05('0x1170'))+_0x1dfa05('0x14d4')}),_0x12e87b(_0x19a547['whatsappQueue']);})['catch'](function(_0x4b481f){const _0x4bc29e=_0x2e0b78;if(_0x4b481f[_0x4bc29e('0x11fc')]&&_0x4b481f[_0x4bc29e('0x11fc')][_0x4bc29e('0x25be')]&&_0x4b481f['data']['errors']['length']){_0x19a547['errors']=_0x4b481f[_0x4bc29e('0x11fc')][_0x4bc29e('0x25be')]||[{'message':_0x4b481f[_0x4bc29e('0x17df')](),'type':_0x4bc29e('0xcf')}];for(let _0x193a9d=0x0;_0x193a9d<_0x4b481f[_0x4bc29e('0x11fc')]['errors'][_0x4bc29e('0x2566')];_0x193a9d++){_0x480479[_0x4bc29e('0x5e8')]({'title':_0x4b481f['data'][_0x4bc29e('0x25be')][_0x193a9d]['type'],'msg':_0x4b481f['data'][_0x4bc29e('0x25be')][_0x193a9d][_0x4bc29e('0x15e2')]});}}else _0x480479['error']({'title':_0x4b481f[_0x4bc29e('0x1b51')]?_0x4bc29e('0x15d1')+_0x4b481f['status']+_0x4bc29e('0x1b0b')+_0x4b481f['statusText']:_0x4bc29e('0xcf'),'msg':_0x4b481f['data']?JSON[_0x4bc29e('0x1be0')](_0x4b481f['data'][_0x4bc29e('0x15e2')]):_0x4b481f[_0x4bc29e('0x15e2')]||_0x4b481f['toString']()});});},function(){});}function _0x3acc98(_0x33f388){return _0x33f388===null?undefined:new Date(_0x33f388);}function _0x12e87b(_0x54957b){const _0x244e74=_0x7a442e;_0x40929d[_0x244e74('0x19d')](_0x54957b);}}const _0x1a7e97=_0x598eb2;_0x2b33e2[_0x34e79e('0x2d9')]=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),'api',_0x34e79e('0x1170'),_0x34e79e('0x1f92'),'realtime',_0x34e79e('0x1a5c'),_0x34e79e('0x1b04'),_0x34e79e('0xe28')];function _0x2b33e2(_0x5ec49b,_0x40dcfa,_0x57c58b,_0x8f97e2,_0x2fe257,_0x27f377,_0x3daa9d,_0xcaac2f,_0x5705f3,_0x5de134){const _0x3cba5c=_0x34e79e,_0x2a66eb=this;_0x2a66eb[_0x3cba5c('0x9cb')]=_0x5705f3[_0x3cba5c('0x24cc')](),_0x2a66eb[_0x3cba5c('0x1170')]=_0x2fe257,_0x2a66eb['crudPermissions']=_0x5de134,_0x2a66eb[_0x3cba5c('0x548')]=_0x3daa9d,_0x2a66eb[_0x3cba5c('0x117b')]=[],_0x2a66eb[_0x3cba5c('0x73d')]=[],_0x2a66eb[_0x3cba5c('0x283f')]=[],_0x2a66eb['startingAllowedItems']=[],_0x2a66eb[_0x3cba5c('0xd0d')]=[],_0x2a66eb[_0x3cba5c('0x2677')]=![],_0x2a66eb[_0x3cba5c('0x122e')]=_0x20c7b6,_0x2a66eb['saveAgents']=_0x3b3da4,_0x2a66eb['closeDialog']=_0x123e8d,_0x2a66eb[_0x3cba5c('0x121')]={'readOnly':!_0x2a66eb['crudPermissions'][_0x3cba5c('0x21b7')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3cba5c('0x1a8d'),'line1':_0x3cba5c('0x2831'),'line2':[_0x3cba5c('0x1a8d'),'internal'],'line3':'','labelAll':_0xcaac2f['instant']('WHATSAPP.ALL_AGENTS'),'labelSelected':_0xcaac2f[_0x3cba5c('0x1b11')](_0x3cba5c('0x1ea8')),'transferCallback':function(){const _0x3bdefd=_0x3cba5c,_0xe458f2=_0x283545()['xorBy'](_0x2a66eb['startingSelectedItems'],_0x2a66eb[_0x3bdefd('0x283f')],'id');_0x2a66eb[_0x3bdefd('0x2677')]=_0x283545()[_0x3bdefd('0x213d')](_0xe458f2)?![]:!![];}};function _0x20c7b6(){const _0x27e05f=_0x3cba5c;return _0x5705f3[_0x27e05f('0x1516')](_0x27e05f('0xe23'))?_0x328b2a()['catch'](function(_0x1a02dd){const _0x3f76f4=_0x27e05f;_0x57c58b['error']({'title':_0x1a02dd['status']?_0x3f76f4('0x15d1')+_0x1a02dd[_0x3f76f4('0x1b51')]+'\x20-\x20'+_0x1a02dd[_0x3f76f4('0x22ce')]:_0x3f76f4('0xd90'),'msg':_0x1a02dd['status']?JSON[_0x3f76f4('0x1be0')](_0x1a02dd[_0x3f76f4('0x11fc')]):_0x1a02dd[_0x3f76f4('0x17df')]()});}):_0x4f5b5b()['then'](function(_0x569140){const _0xcbe908=_0x27e05f;return _0x2a66eb[_0xcbe908('0xb13')]=_0x569140,_0x328b2a();})[_0x27e05f('0x1cb5')](function(_0x1c33f8){const _0x1128d6=_0x27e05f;_0x57c58b[_0x1128d6('0x5e8')]({'title':_0x1c33f8[_0x1128d6('0x1b51')]?_0x1128d6('0x15d1')+_0x1c33f8[_0x1128d6('0x1b51')]+'\x20-\x20'+_0x1c33f8[_0x1128d6('0x22ce')]:_0x1128d6('0xd90'),'msg':_0x1c33f8['status']?JSON['stringify'](_0x1c33f8[_0x1128d6('0x11fc')]):_0x1c33f8[_0x1128d6('0x17df')]()});});}function _0x4f5b5b(){return _0x40dcfa(function(_0x27a372,_0x24f5e4){const _0x4b3a33=a0_0x14e7;_0x8f97e2['userProfileSection']['get']({'userProfileId':_0x2a66eb[_0x4b3a33('0x9cb')][_0x4b3a33('0x237f')],'name':_0x4b3a33('0x1f72')})['$promise'][_0x4b3a33('0x2788')](function(_0x3bed87){const _0x3c040f=_0x4b3a33,_0x3da133=_0x3bed87&&_0x3bed87[_0x3c040f('0x25df')]?_0x3bed87['rows'][0x0]:null;_0x27a372(_0x3da133);})[_0x4b3a33('0x1cb5')](function(_0x2be929){_0x24f5e4(_0x2be929);});});}function _0x328b2a(){return _0x40dcfa(function(_0x30208d,_0x40e208){const _0x2952f1=a0_0x14e7;return _0x47e8f9()['then'](function(_0xf8eddc){const _0x14b973=a0_0x14e7;return _0x2a66eb[_0x14b973('0x117b')]=_0xf8eddc[_0x14b973('0x25df')]?_0xf8eddc['rows']:[],_0x5705f3[_0x14b973('0x1516')]('admin')?_0xf8eddc:_0x2a66eb[_0x14b973('0xb13')]?_0x2a66eb[_0x14b973('0xb13')][_0x14b973('0x1c0a')]?_0xf8eddc:_0x1f1a84():null;})[_0x2952f1('0x2788')](function(_0x1834cf){const _0x2e74e6=_0x2952f1,_0x39e6e8=_0x1834cf&&_0x1834cf[_0x2e74e6('0x25df')]?_0x1834cf[_0x2e74e6('0x25df')]:[];return _0x2a66eb[_0x2e74e6('0x73d')]=_0x283545()[_0x2e74e6('0x155d')](_0x39e6e8,function(_0x30cab1){const _0x565ddd=_0x2e74e6;return _0x283545()[_0x565ddd('0x20e8')](_0x2a66eb['items'],{'id':_0x5705f3[_0x565ddd('0x1516')](_0x565ddd('0xe23'))||_0x2a66eb[_0x565ddd('0xb13')][_0x565ddd('0x1c0a')]?_0x30cab1['id']:_0x30cab1[_0x565ddd('0x2707')]});}),_0x2a66eb['startingAllowedItems']=angular[_0x2e74e6('0x2669')](_0x2a66eb[_0x2e74e6('0x73d')]),_0x2a66eb[_0x2e74e6('0x117b')]['forEach'](function(_0x339070){const _0xe31277=_0x2e74e6,_0x16723e=_0x283545()[_0xe31277('0x20e8')](_0x2a66eb[_0xe31277('0x73d')],{'id':_0x339070['id']});_0x5705f3[_0xe31277('0x1516')](_0xe31277('0xe23'))?_0x339070[_0xe31277('0x68d')]=!![]:_0x339070[_0xe31277('0x68d')]=typeof _0x16723e!==_0xe31277('0xedb')?!![]:![];}),_0x240e18();})['then'](function(_0x4c4db6){const _0x3dad41=_0x2952f1,_0x2988b2=_0x4c4db6&&_0x4c4db6[_0x3dad41('0x25df')]?_0x4c4db6['rows']:[];_0x2a66eb[_0x3dad41('0x283f')]=_0x283545()[_0x3dad41('0x155d')](_0x2988b2,function(_0x1b028e){const _0x31eca2=_0x3dad41,_0x4ca089=_0x283545()[_0x31eca2('0x20e8')](_0x2a66eb[_0x31eca2('0x117b')],{'id':_0x1b028e['id']});return _0x4ca089['penalty']=_0x1b028e[_0x31eca2('0x22cd')]?_0x31eca2('0x1b9d')+_0x1b028e[_0x31eca2('0x22cd')]['penalty']:'',_0x4ca089[_0x31eca2('0x2838')]=typeof _0x1b028e['internal']!==_0x31eca2('0xedb')?'<'+_0x1b028e[_0x31eca2('0x2838')]+'>':'',_0x4ca089;}),_0x2a66eb[_0x3dad41('0xd0d')]=angular['copy'](_0x2a66eb[_0x3dad41('0x283f')]),_0x2a66eb['dualMultiselectOptions'][_0x3dad41('0x283f')]=_0x2a66eb[_0x3dad41('0x283f')],_0x2a66eb[_0x3dad41('0x121')]['items']=_0x283545()[_0x3dad41('0x432')](_0x2a66eb[_0x3dad41('0x73d')],_0x2a66eb[_0x3dad41('0x121')][_0x3dad41('0x283f')],'id'),_0x30208d();})['catch'](function(_0x13a533){_0x40e208(_0x13a533);});});}function _0x1f1a84(){return _0x40dcfa(function(_0x84459f,_0xde7ad8){const _0x1cbf01=a0_0x14e7;return _0x8f97e2['userProfileResource']['get']({'sectionId':_0x2a66eb[_0x1cbf01('0xb13')]['id'],'nolimit':!![]})['$promise'][_0x1cbf01('0x2788')](function(_0x5847cd){_0x84459f(_0x5847cd);})[_0x1cbf01('0x1cb5')](function(_0x509050){_0xde7ad8(_0x509050);});});}function _0x240e18(){return _0x40dcfa(function(_0x525511,_0xb841ee){const _0x135ecd=a0_0x14e7;return _0x8f97e2[_0x135ecd('0x1170')]['getAgents']({'id':_0x2a66eb[_0x135ecd('0x1170')]['id'],'fields':_0x135ecd('0x1d32'),'nolimit':!![],'role':_0x135ecd('0x188b')})[_0x135ecd('0x1714')][_0x135ecd('0x2788')](function(_0x419148){_0x525511(_0x419148);})['catch'](function(_0x139c74){_0xb841ee(_0x139c74);});});}function _0x47e8f9(){return _0x40dcfa(function(_0x4cc0bd,_0x36bfa2){const _0x25fd5c=a0_0x14e7;return _0x8f97e2[_0x25fd5c('0x1e6a')][_0x25fd5c('0x1335')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x25fd5c('0x1714')][_0x25fd5c('0x2788')](function(_0x39ff4e){_0x4cc0bd(_0x39ff4e);})['catch'](function(_0x429658){_0x36bfa2(_0x429658);});});}function _0x375475(_0x5104cf){return _0x40dcfa(function(_0x1f0287,_0x11d782){const _0x1b7bfb=a0_0x14e7;_0x283545()[_0x1b7bfb('0x213d')](_0x5104cf)?_0x1f0287():_0x8f97e2['whatsappQueue']['addAgents']({'id':_0x2a66eb[_0x1b7bfb('0x1170')]['id'],'ids':_0x283545()[_0x1b7bfb('0x155d')](_0x5104cf,'id')})[_0x1b7bfb('0x1714')]['then'](function(){_0x1f0287();})[_0x1b7bfb('0x1cb5')](function(_0x2f8b95){_0x11d782(_0x2f8b95);});});}function _0x28305f(_0x5022df){return _0x40dcfa(function(_0x1a2e89,_0x44c7a9){const _0x574ef8=a0_0x14e7;_0x283545()[_0x574ef8('0x213d')](_0x5022df)?_0x1a2e89():_0x8f97e2['whatsappQueue'][_0x574ef8('0x1d72')]({'id':_0x2a66eb[_0x574ef8('0x1170')]['id'],'ids':_0x283545()['map'](_0x5022df,'id')})[_0x574ef8('0x1714')][_0x574ef8('0x2788')](function(){_0x1a2e89();})[_0x574ef8('0x1cb5')](function(_0x59b672){_0x44c7a9(_0x59b672);});});}function _0x3b3da4(){const _0x340754=_0x3cba5c,_0x602da2=_0x283545()[_0x340754('0x432')](_0x2a66eb[_0x340754('0xd0d')],_0x2a66eb[_0x340754('0x283f')],'id'),_0x513833=_0x283545()[_0x340754('0x432')](_0x2a66eb[_0x340754('0x283f')],_0x2a66eb[_0x340754('0xd0d')],'id');return _0x28305f(_0x602da2)[_0x340754('0x2788')](function(){return _0x375475(_0x513833);})['then'](function(){const _0x5ac80c=_0x340754;_0x2a66eb[_0x5ac80c('0x2677')]=![],_0x2a66eb[_0x5ac80c('0x12d9')]=angular[_0x5ac80c('0x2669')](_0x2a66eb[_0x5ac80c('0x73d')]),_0x2a66eb['startingSelectedItems']=angular['copy'](_0x2a66eb[_0x5ac80c('0x283f')]),_0x57c58b[_0x5ac80c('0x173b')]({'title':_0x5ac80c('0x10c8'),'msg':_0x5ac80c('0x1984')});})['catch'](function(_0x4735a7){const _0x21da7c=_0x340754;_0x57c58b[_0x21da7c('0x5e8')]({'title':_0x4735a7['status']?_0x21da7c('0x15d1')+_0x4735a7[_0x21da7c('0x1b51')]+_0x21da7c('0x1b0b')+_0x4735a7[_0x21da7c('0x22ce')]:_0x21da7c('0x13cd'),'msg':_0x4735a7[_0x21da7c('0x1b51')]?JSON[_0x21da7c('0x1be0')](_0x4735a7['data']):_0x4735a7[_0x21da7c('0x17df')]()});});}function _0x123e8d(){_0x5ec49b['hide']();}}const _0x472710=_0x2b33e2;_0x1c113f['$inject']=[_0x34e79e('0x123b'),'$q',_0x34e79e('0xd57'),_0x34e79e('0x519'),_0x34e79e('0x1170'),'$translate',_0x34e79e('0x1b04'),'crudPermissions'];function _0x1c113f(_0x42047d,_0x258790,_0x17ec3b,_0x46b8c8,_0x330764,_0xcc4d66,_0x2ccdd8,_0x5b4c31){const _0x2ae06b=_0x34e79e,_0x2cc168=this;_0x2cc168[_0x2ae06b('0x9cb')]=_0x2ccdd8['getCurrentUser'](),_0x2cc168['whatsappQueue']=_0x330764,_0x2cc168['crudPermissions']=_0x5b4c31,_0x2cc168['items']=[],_0x2cc168[_0x2ae06b('0x73d')]=[],_0x2cc168[_0x2ae06b('0x283f')]=[],_0x2cc168[_0x2ae06b('0x12d9')]=[],_0x2cc168[_0x2ae06b('0xd0d')]=[],_0x2cc168[_0x2ae06b('0x2677')]=![],_0x2cc168['dualMultiselectOptions']={'readOnly':!_0x2cc168[_0x2ae06b('0xe28')][_0x2ae06b('0x21b7')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2ae06b('0x1a8d'),'line1':_0x2ae06b('0x1a8d'),'line2':'','line3':'','labelAll':_0xcc4d66[_0x2ae06b('0x1b11')](_0x2ae06b('0x51b')),'labelSelected':_0xcc4d66[_0x2ae06b('0x1b11')](_0x2ae06b('0xd3')),'transferCallback':function(){const _0x43983f=_0x2ae06b,_0x1e22cc=_0x283545()['xorBy'](_0x2cc168[_0x43983f('0xd0d')],_0x2cc168[_0x43983f('0x283f')],'id');_0x2cc168['pendingChanges']=_0x283545()['isEmpty'](_0x1e22cc)?![]:!![];}},_0x2cc168[_0x2ae06b('0x122e')]=_0xc29a86,_0x2cc168['saveTeams']=_0x3abdff,_0x2cc168[_0x2ae06b('0xca7')]=_0x4db89e;function _0xc29a86(){const _0x3973b4=_0x2ae06b;return _0x2ccdd8[_0x3973b4('0x1516')]('admin')?_0x4efbcf()['catch'](function(_0x250e15){const _0xd831af=_0x3973b4;_0x17ec3b[_0xd831af('0x5e8')]({'title':_0x250e15[_0xd831af('0x1b51')]?_0xd831af('0x15d1')+_0x250e15['status']+_0xd831af('0x1b0b')+_0x250e15[_0xd831af('0x22ce')]:_0xd831af('0x556'),'msg':_0x250e15[_0xd831af('0x1b51')]?JSON[_0xd831af('0x1be0')](_0x250e15[_0xd831af('0x11fc')]):_0x250e15[_0xd831af('0x17df')]()});}):_0x4632fc()[_0x3973b4('0x2788')](function(_0x4a3202){return _0x2cc168['section']=_0x4a3202,_0x4efbcf();})[_0x3973b4('0x1cb5')](function(_0x3d804e){const _0x34e928=_0x3973b4;_0x17ec3b[_0x34e928('0x5e8')]({'title':_0x3d804e[_0x34e928('0x1b51')]?'API:'+_0x3d804e[_0x34e928('0x1b51')]+_0x34e928('0x1b0b')+_0x3d804e[_0x34e928('0x22ce')]:_0x34e928('0x556'),'msg':_0x3d804e[_0x34e928('0x1b51')]?JSON[_0x34e928('0x1be0')](_0x3d804e[_0x34e928('0x11fc')]):_0x3d804e[_0x34e928('0x17df')]()});});}function _0x4632fc(){return _0x258790(function(_0x50952c,_0x533ba4){const _0x451668=a0_0x14e7;_0x46b8c8['userProfileSection'][_0x451668('0x1335')]({'userProfileId':_0x2cc168[_0x451668('0x9cb')][_0x451668('0x237f')],'name':_0x451668('0x23e9')})[_0x451668('0x1714')]['then'](function(_0x293114){const _0x5ee9bc=_0x451668,_0x310cef=_0x293114&&_0x293114['rows']?_0x293114[_0x5ee9bc('0x25df')][0x0]:null;_0x50952c(_0x310cef);})[_0x451668('0x1cb5')](function(_0x3d6bb6){_0x533ba4(_0x3d6bb6);});});}function _0x4efbcf(){return _0x258790(function(_0x2ed5f9,_0x1dd900){const _0x3b2e0f=a0_0x14e7;return _0x67a09c()[_0x3b2e0f('0x2788')](function(_0x27d505){const _0x1bfe60=_0x3b2e0f;return _0x2cc168[_0x1bfe60('0x117b')]=_0x27d505['rows']?_0x27d505[_0x1bfe60('0x25df')]:[],_0x2ccdd8[_0x1bfe60('0x1516')]('admin')?_0x27d505:_0x2cc168[_0x1bfe60('0xb13')]?_0x2cc168[_0x1bfe60('0xb13')][_0x1bfe60('0x1c0a')]?_0x27d505:_0x1526e3():null;})['then'](function(_0x544a6c){const _0x8393eb=_0x3b2e0f,_0x185276=_0x544a6c&&_0x544a6c['rows']?_0x544a6c[_0x8393eb('0x25df')]:[];return _0x2cc168[_0x8393eb('0x73d')]=_0x283545()[_0x8393eb('0x155d')](_0x185276,function(_0x41df40){const _0x447f0a=_0x8393eb;return _0x283545()[_0x447f0a('0x20e8')](_0x2cc168[_0x447f0a('0x117b')],{'id':_0x2ccdd8[_0x447f0a('0x1516')]('admin')||_0x2cc168[_0x447f0a('0xb13')][_0x447f0a('0x1c0a')]?_0x41df40['id']:_0x41df40[_0x447f0a('0x2707')]});}),_0x2cc168['items'][_0x8393eb('0x1534')](function(_0xf53d4){const _0x2af2b0=_0x8393eb,_0x372627=_0x283545()[_0x2af2b0('0x20e8')](_0x2cc168[_0x2af2b0('0x73d')],{'id':_0xf53d4['id']});_0x2ccdd8[_0x2af2b0('0x1516')]('admin')?_0xf53d4[_0x2af2b0('0x68d')]=!![]:_0xf53d4[_0x2af2b0('0x68d')]=typeof _0x372627!=='undefined'?!![]:![];}),_0x4131ea();})['then'](function(_0x154b5c){const _0x515d5a=_0x3b2e0f,_0x1cd453=_0x154b5c&&_0x154b5c['rows']?_0x154b5c['rows']:[];_0x2cc168['selectedItems']=_0x283545()['map'](_0x1cd453,function(_0x501d35){const _0x1dfd18=a0_0x14e7;return _0x283545()[_0x1dfd18('0x20e8')](_0x2cc168[_0x1dfd18('0x117b')],{'id':_0x501d35['id']});}),_0x2cc168[_0x515d5a('0xd0d')]=angular['copy'](_0x2cc168['selectedItems']),_0x2cc168[_0x515d5a('0x121')]['selectedItems']=_0x2cc168[_0x515d5a('0x283f')],_0x2cc168['dualMultiselectOptions'][_0x515d5a('0x117b')]=_0x283545()[_0x515d5a('0x432')](_0x2cc168['allowedItems'],_0x2cc168['dualMultiselectOptions'][_0x515d5a('0x283f')],'id'),_0x2ed5f9();})[_0x3b2e0f('0x1cb5')](function(_0x4ecf69){_0x1dd900(_0x4ecf69);});});}function _0x1526e3(){return _0x258790(function(_0x3c4af8,_0x5518fe){const _0x3aedc4=a0_0x14e7;return _0x46b8c8[_0x3aedc4('0x1050')][_0x3aedc4('0x1335')]({'sectionId':_0x2cc168[_0x3aedc4('0xb13')]['id'],'nolimit':!![]})[_0x3aedc4('0x1714')]['then'](function(_0x452344){_0x3c4af8(_0x452344);})['catch'](function(_0x123b4d){_0x5518fe(_0x123b4d);});});}function _0x4131ea(){return _0x258790(function(_0x5a0619,_0xa9f187){const _0x5876aa=a0_0x14e7;return _0x46b8c8['whatsappQueue'][_0x5876aa('0x1435')]({'id':_0x2cc168['whatsappQueue']['id'],'fields':_0x5876aa('0x1338'),'nolimit':!![]})[_0x5876aa('0x1714')]['then'](function(_0x3d1257){_0x5a0619(_0x3d1257);})[_0x5876aa('0x1cb5')](function(_0x51c4b9){_0xa9f187(_0x51c4b9);});});}function _0x67a09c(){return _0x258790(function(_0x2f3e48,_0x36dd6f){const _0x3f9a34=a0_0x14e7;return _0x46b8c8[_0x3f9a34('0x421')]['get']({'fields':_0x3f9a34('0x1338'),'nolimit':!![]})[_0x3f9a34('0x1714')][_0x3f9a34('0x2788')](function(_0x3000dd){_0x2f3e48(_0x3000dd);})[_0x3f9a34('0x1cb5')](function(_0x2153ea){_0x36dd6f(_0x2153ea);});});}function _0x13cea3(_0x547101){return _0x258790(function(_0x25c3d1,_0x45d0de){const _0x140e09=a0_0x14e7;_0x283545()[_0x140e09('0x213d')](_0x547101)?_0x25c3d1():_0x46b8c8[_0x140e09('0x1170')][_0x140e09('0x3bd')]({'id':_0x2cc168[_0x140e09('0x1170')]['id'],'ids':_0x283545()[_0x140e09('0x155d')](_0x547101,'id')})['$promise']['then'](function(){_0x25c3d1();})[_0x140e09('0x1cb5')](function(_0x2e01e2){_0x45d0de(_0x2e01e2);});});}function _0x572655(_0x2736fd){return _0x258790(function(_0xdb4d18,_0x2467a4){const _0x2dacbe=a0_0x14e7;_0x283545()[_0x2dacbe('0x213d')](_0x2736fd)?_0xdb4d18():_0x46b8c8[_0x2dacbe('0x1170')]['removeTeams']({'id':_0x2cc168[_0x2dacbe('0x1170')]['id'],'ids':_0x283545()['map'](_0x2736fd,'id')})[_0x2dacbe('0x1714')][_0x2dacbe('0x2788')](function(){_0xdb4d18();})[_0x2dacbe('0x1cb5')](function(_0x693409){_0x2467a4(_0x693409);});});}function _0x3abdff(){const _0x54510c=_0x2ae06b,_0x51932d=_0x283545()['differenceBy'](_0x2cc168[_0x54510c('0xd0d')],_0x2cc168[_0x54510c('0x283f')],'id'),_0x593d22=_0x283545()[_0x54510c('0x432')](_0x2cc168['selectedItems'],_0x2cc168[_0x54510c('0xd0d')],'id');return _0x572655(_0x51932d)[_0x54510c('0x2788')](function(){return _0x13cea3(_0x593d22);})[_0x54510c('0x2788')](function(){const _0x3bfda8=_0x54510c;_0x2cc168[_0x3bfda8('0x2677')]=![],_0x2cc168['startingAllowedItems']=angular[_0x3bfda8('0x2669')](_0x2cc168[_0x3bfda8('0x73d')]),_0x2cc168[_0x3bfda8('0xd0d')]=angular['copy'](_0x2cc168[_0x3bfda8('0x283f')]),_0x17ec3b[_0x3bfda8('0x173b')]({'title':_0x3bfda8('0x10c8'),'msg':_0x3bfda8('0x7f3')});})[_0x54510c('0x1cb5')](function(_0x416d35){const _0x40100c=_0x54510c;_0x17ec3b['error']({'title':_0x416d35[_0x40100c('0x1b51')]?_0x40100c('0x15d1')+_0x416d35['status']+_0x40100c('0x1b0b')+_0x416d35[_0x40100c('0x22ce')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x416d35[_0x40100c('0x1b51')]?JSON[_0x40100c('0x1be0')](_0x416d35['data']):_0x416d35[_0x40100c('0x17df')]()});});}function _0x4db89e(){_0x42047d['hide']();}}const _0xf3602c=_0x1c113f,_0x4fd1ae=_0x18dd13['p']+_0x34e79e('0xe36');_0x5c0410[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x4cc'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x1a5c'),_0x34e79e('0x130d'),'setting','api',_0x34e79e('0xd57'),_0x34e79e('0x1b04'),'whatsappQueue',_0x34e79e('0xec9')];function _0x5c0410(_0x69da1b,_0x3e6d59,_0x4f427c,_0x5d9bcc,_0x5a73cb,_0x4f88a8,_0xed352,_0x1ad2fd,_0x962e76,_0x55490e,_0x5d9da1,_0x150e47){const _0x222531=_0x34e79e,_0x75e5d8=this;_0x75e5d8['currentUser']=_0x55490e[_0x222531('0x24cc')](),_0x75e5d8[_0x222531('0x130d')]=_0x4f88a8,_0x75e5d8['setting']=_0xed352,_0x75e5d8[_0x222531('0x18ad')]=_0x75e5d8[_0x222531('0x1af0')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x75e5d8['location']=_0x3e6d59[_0x222531('0x170c')]()+_0x222531('0x726')+_0x3e6d59[_0x222531('0x1c6a')](),_0x75e5d8[_0x222531('0x1170')]=_0x5d9da1||_0x69da1b[_0x222531('0x4b9')][_0x222531('0x1170')]||{},_0x75e5d8['userProfileSection']=_0x150e47&&_0x150e47[_0x222531('0x338')]==0x1?_0x150e47['rows'][0x0]:null,_0x75e5d8[_0x222531('0xe28')]=_0x55490e[_0x222531('0x157e')](_0x75e5d8[_0x222531('0xec9')]?_0x75e5d8['userProfileSection'][_0x222531('0xe28')]:null),_0x75e5d8[_0x222531('0x1193')]={},_0x75e5d8['selectedTab']=_0x69da1b[_0x222531('0x4b9')][_0x222531('0x24f6')]||0x0,_0x75e5d8[_0x222531('0xde3')]=_0x3f9120,_0x75e5d8['agentadddialog']=_0x2a4093,_0x75e5d8[_0x222531('0x204f')]=_0x962e76[_0x222531('0x2276')],_0x75e5d8['gotoWhatsappQueues']=_0x42955e,_0x75e5d8[_0x222531('0xb28')]=_0xa5744a;function _0x3f9120(_0x516942,_0x2c6cdf){const _0x5c589b=_0x222531;_0x4f427c[_0x5c589b('0x2fa')]({'controller':_0x5c589b('0xe34'),'controllerAs':'vm','templateUrl':_0x4fd1ae,'parent':angular['element'](_0x5d9bcc[_0x5c589b('0x945')]),'targetEvent':_0x2c6cdf,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x516942,'whatsappQueues':_0x75e5d8[_0x5c589b('0x1f92')]?_0x75e5d8[_0x5c589b('0x1f92')][_0x5c589b('0x25df')]:[],'crudPermissions':_0x75e5d8[_0x5c589b('0xe28')]}});}function _0x2a4093(_0x1fe13a,_0x569fd4){const _0xc29b14=_0x222531;_0x4f427c[_0xc29b14('0x2fa')]({'controller':_0xc29b14('0x1fa5'),'controllerAs':'vm','templateUrl':_0x334af7,'parent':angular[_0xc29b14('0x16b1')](_0x5d9bcc[_0xc29b14('0x945')]),'targetEvent':_0x569fd4,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1fe13a,'whatsappQueues':_0x75e5d8[_0xc29b14('0x1f92')]?_0x75e5d8[_0xc29b14('0x1f92')][_0xc29b14('0x25df')]:[],'crudPermissions':_0x75e5d8[_0xc29b14('0xe28')],'realtime':![]}});}function _0x42955e(){const _0x3ed857=_0x222531;_0x69da1b['go'](_0x3ed857('0x218c'),{},{'reload':_0x3ed857('0x218c')});}function _0xa5744a(){const _0x5b58c6=_0x222531;_0x1ad2fd[_0x5b58c6('0x1170')][_0x5b58c6('0x2740')]({'id':_0x75e5d8[_0x5b58c6('0x1170')]['id']},_0x75e5d8[_0x5b58c6('0x1170')])[_0x5b58c6('0x1714')][_0x5b58c6('0x2788')](function(){const _0x3d405d=_0x5b58c6;_0x962e76[_0x3d405d('0x173b')]({'title':_0x3d405d('0x195f'),'msg':_0x75e5d8['whatsappQueue']['name']?_0x75e5d8[_0x3d405d('0x1170')][_0x3d405d('0x1a8d')]+'\x20has\x20been\x20updated!':''});})[_0x5b58c6('0x1cb5')](function(_0x31e5cc){const _0x466caa=_0x5b58c6;_0x962e76[_0x466caa('0x5e8')]({'title':_0x31e5cc[_0x466caa('0x1b51')]?_0x466caa('0x15d1')+_0x31e5cc[_0x466caa('0x1b51')]+'\x20-\x20'+_0x31e5cc['statusText']:'SYSTEM:GETwhatsappQueue','msg':_0x31e5cc[_0x466caa('0x11fc')]?JSON['stringify'](_0x31e5cc[_0x466caa('0x11fc')]):_0x31e5cc['toString']()});});}}const _0x5594db=_0x5c0410;_0x16de07[_0x34e79e('0x2d9')]=['$scope',_0x34e79e('0x1bf5'),'$state',_0x34e79e('0x2179'),_0x34e79e('0x123b'),'$document',_0x34e79e('0x446'),'$translate',_0x34e79e('0x1f92'),_0x34e79e('0x63c'),_0x34e79e('0xec9'),'api',_0x34e79e('0x9c4'),'toasty',_0x34e79e('0x1b04'),'license',_0x34e79e('0x1af0')];function _0x16de07(_0x2e7181,_0x4b3ac2,_0x474e00,_0x4e3730,_0x4f3bc4,_0x2f2c8e,_0x5a8d62,_0x1bf8c1,_0x460404,_0x1d6523,_0x57d739,_0xd1fc5b,_0x299ddc,_0x35f0c3,_0x383b27,_0x477bd8,_0x5350c1){const _0x308b30=_0x34e79e,_0x58ccdc=this;_0x58ccdc[_0x308b30('0x130d')]=_0x477bd8,_0x58ccdc[_0x308b30('0x1af0')]=_0x5350c1,_0x58ccdc[_0x308b30('0x9cb')]=_0x383b27[_0x308b30('0x24cc')](),_0x58ccdc[_0x308b30('0x1f92')]=_0x460404||{'count':0x0,'rows':[]},_0x58ccdc[_0x308b30('0x63c')]=_0x1d6523,_0x58ccdc[_0x308b30('0xec9')]=_0x57d739&&_0x57d739[_0x308b30('0x338')]==0x1?_0x57d739[_0x308b30('0x25df')][0x0]:null,_0x58ccdc[_0x308b30('0xe28')]=_0x383b27['parseCrudPermissions'](_0x58ccdc[_0x308b30('0xec9')]?_0x58ccdc[_0x308b30('0xec9')][_0x308b30('0xe28')]:null),_0x58ccdc[_0x308b30('0x26a9')]=_0x308b30('0x1f92'),_0x58ccdc[_0x308b30('0x2278')]='',_0x58ccdc[_0x308b30('0x25e2')]=null,_0x58ccdc[_0x308b30('0xbfd')]=[],_0x58ccdc[_0x308b30('0x135a')]={'fields':_0x308b30('0x1a03'),'sort':_0x308b30('0x1cee'),'channel':_0x308b30('0x195d'),'limit':0xa,'page':0x1},_0x58ccdc['arraystrategy']=_0x283545()[_0x308b30('0x13cf')]([{'option':_0x308b30('0x152c'),'value':_0x308b30('0x11e4')},{'option':_0x308b30('0x37a'),'value':_0x308b30('0x228e')}],function(_0x8ce3dd){const _0xcc3b0b=_0x308b30;return _0x283545()[_0xcc3b0b('0x10a4')](_0x8ce3dd[_0xcc3b0b('0x49')],new RegExp('\x27','g'),'');}),_0x58ccdc[_0x308b30('0x1f7e')]=_0x35cb0f,_0x58ccdc['teamadddialog']=_0xba40e3,_0x58ccdc[_0x308b30('0x1113')]=_0x5c80a2,_0x58ccdc['deleteconfirm']=_0x5aefbc,_0x58ccdc['gotorealtimegoto']=_0x396400,_0x58ccdc[_0x308b30('0x173b')]=_0x3a58b8,_0x58ccdc[_0x308b30('0x21bc')]=_0x5ece15,_0x58ccdc[_0x308b30('0x303')]=_0x5be029,_0x58ccdc[_0x308b30('0x1b26')]=_0x3bcc21,_0x58ccdc[_0x308b30('0x40c')]=_0x18e779,_0x58ccdc['deleteSelectedWhatsappQueues']=_0x1adfd7,_0x58ccdc[_0x308b30('0xea0')]=_0x4e585d,_0x58ccdc['selectAllWhatsappQueues']=_0x1f722a;function _0x35cb0f(_0x964b9){const _0x157659=_0x308b30;_0x474e00['go'](_0x157659('0x1359'),{'id':_0x964b9['id'],'whatsappQueue':_0x964b9,'crudPermissions':_0x58ccdc['crudPermissions']});}function _0xba40e3(_0x1c1ee1,_0x44b88a){const _0x37dce7=_0x308b30;_0x4f3bc4[_0x37dce7('0x2fa')]({'controller':_0x37dce7('0xe34'),'controllerAs':'vm','templateUrl':_0x4fd1ae,'parent':angular[_0x37dce7('0x16b1')](_0x2f2c8e[_0x37dce7('0x945')]),'targetEvent':_0x44b88a,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1c1ee1,'whatsappQueues':_0x58ccdc[_0x37dce7('0x1f92')]?_0x58ccdc[_0x37dce7('0x1f92')][_0x37dce7('0x25df')]:[],'crudPermissions':_0x58ccdc[_0x37dce7('0xe28')]}});}function _0x5c80a2(_0x481c9f,_0xaf71d4){const _0x16fffb=_0x308b30;_0x4f3bc4['show']({'controller':_0x16fffb('0x1fa5'),'controllerAs':'vm','templateUrl':_0x334af7,'parent':angular[_0x16fffb('0x16b1')](_0x2f2c8e[_0x16fffb('0x945')]),'targetEvent':_0xaf71d4,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x481c9f,'whatsappQueues':_0x58ccdc[_0x16fffb('0x1f92')]?_0x58ccdc['whatsappQueues'][_0x16fffb('0x25df')]:[],'crudPermissions':_0x58ccdc['crudPermissions'],'realtime':![]}});}function _0x5aefbc(_0x23e455,_0x541a72){const _0x310c75=_0x308b30,_0x399ef6=_0x4f3bc4[_0x310c75('0x112e')]()[_0x310c75('0x14e4')](_0x310c75('0x2114')+_0x283545()[_0x310c75('0x114')]('whatsappQueue')+'?')[_0x310c75('0x93e')](_0x310c75('0x1670')+(_0x23e455[_0x310c75('0x1a8d')]||_0x310c75('0x1170'))+_0x310c75('0x229e')+_0x310c75('0x27c7'))[_0x310c75('0x10bc')](_0x310c75('0x1dbf'))['targetEvent'](_0x541a72)['ok']('OK')[_0x310c75('0x1801')](_0x310c75('0x1d8d'));_0x4f3bc4[_0x310c75('0x2fa')](_0x399ef6)[_0x310c75('0x2788')](function(){_0x3bcc21(_0x23e455);},function(){const _0x3d09c5=_0x310c75;console[_0x3d09c5('0x10df')](_0x3d09c5('0x1d8d'));});}function _0x396400(){const _0x444afd=_0x308b30;if(_0x383b27[_0x444afd('0x1516')]('admin'))_0x474e00['go'](_0x444afd('0x16bb'),{});else return _0xd1fc5b[_0x444afd('0xec9')]['get']({'userProfileId':_0x383b27[_0x444afd('0x24cc')]()[_0x444afd('0x237f')],'sectionId':0x83e})[_0x444afd('0x1714')][_0x444afd('0x2788')](function(_0x1853f5){const _0x47b1e0=_0x444afd,_0x3f7718=_0x1853f5&&_0x1853f5['rows']?_0x1853f5['rows'][0x0]:null;_0x3f7718&&_0x3f7718['enabled']?_0x474e00['go'](_0x47b1e0('0x16bb'),{}):_0x35f0c3[_0x47b1e0('0x2276')]({'title':_0x1bf8c1['instant'](_0x47b1e0('0x5be')),'msg':_0x1bf8c1[_0x47b1e0('0x1b11')](_0x47b1e0('0x1abc'))});})[_0x444afd('0x1cb5')](function(_0x4387e){const _0x2b461f=_0x444afd;_0x35f0c3['error']({'title':_0x4387e['status']?_0x2b461f('0x15d1')+_0x4387e[_0x2b461f('0x1b51')]+_0x2b461f('0x1b0b')+_0x4387e[_0x2b461f('0x22ce')]:_0x2b461f('0x2292'),'msg':_0x4387e[_0x2b461f('0x1b51')]?JSON[_0x2b461f('0x1be0')](_0x4387e[_0x2b461f('0x11fc')]):_0x4387e[_0x2b461f('0x17df')]()});});}let _0x151f7b=!![],_0x1ae33d=0x1;_0x2e7181['$watch'](_0x308b30('0x1569'),function(_0x321cce,_0x10ba55){const _0x45c209=_0x308b30;_0x151f7b?_0x5a8d62(function(){_0x151f7b=![];}):(!_0x10ba55&&(_0x1ae33d=_0x58ccdc[_0x45c209('0x135a')][_0x45c209('0x23f5')]),_0x321cce!==_0x10ba55&&(_0x58ccdc[_0x45c209('0x135a')][_0x45c209('0x23f5')]=0x1),!_0x321cce&&(_0x58ccdc[_0x45c209('0x135a')][_0x45c209('0x23f5')]=_0x1ae33d),_0x58ccdc['getWhatsappQueues']());});function _0x3a58b8(_0x5624c1){const _0x1d8abf=_0x308b30;_0x58ccdc[_0x1d8abf('0x1f92')]=_0x5624c1||{'count':0x0,'rows':[]};}function _0x5ece15(){const _0x2014e7=_0x308b30;_0x58ccdc['query'][_0x2014e7('0x19e')]=(_0x58ccdc[_0x2014e7('0x135a')][_0x2014e7('0x23f5')]-0x1)*_0x58ccdc[_0x2014e7('0x135a')][_0x2014e7('0x68e')],_0x383b27[_0x2014e7('0x1516')]('admin')?_0x58ccdc[_0x2014e7('0x1808')]=_0xd1fc5b['whatsappQueue'][_0x2014e7('0x1335')](_0x58ccdc[_0x2014e7('0x135a')],_0x3a58b8)[_0x2014e7('0x1714')]:(_0x58ccdc[_0x2014e7('0x135a')]['id']=_0x58ccdc[_0x2014e7('0x63c')]['id'],_0x58ccdc[_0x2014e7('0x135a')][_0x2014e7('0xb13')]=_0x2014e7('0x28c'),_0x58ccdc[_0x2014e7('0x1808')]=_0xd1fc5b['userProfile'][_0x2014e7('0xa1')](_0x58ccdc[_0x2014e7('0x135a')],_0x3a58b8)[_0x2014e7('0x1714')]);}function _0x5be029(_0xd6b18,_0x835175){const _0x407981=_0x308b30;_0x4f3bc4[_0x407981('0x2fa')]({'controller':_0x407981('0xe9f'),'controllerAs':'vm','templateUrl':_0x2bb959,'parent':angular[_0x407981('0x16b1')](_0x2f2c8e[_0x407981('0x945')]),'targetEvent':_0xd6b18,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x835175,'whatsappQueues':_0x58ccdc[_0x407981('0x1f92')]['rows'],'license':_0x58ccdc[_0x407981('0x130d')],'setting':_0x58ccdc[_0x407981('0x1af0')],'crudPermissions':_0x58ccdc['crudPermissions']}});}function _0x3bcc21(_0x25c0e1){const _0x57cfeb=_0x308b30;_0xd1fc5b[_0x57cfeb('0x1170')][_0x57cfeb('0x17c4')]({'id':_0x25c0e1['id']})[_0x57cfeb('0x1714')]['then'](function(){const _0x3afe04=_0x57cfeb;_0x283545()['remove'](_0x58ccdc[_0x3afe04('0x1f92')][_0x3afe04('0x25df')],{'id':_0x25c0e1['id']}),_0x58ccdc[_0x3afe04('0x1f92')][_0x3afe04('0x338')]-=0x1,!_0x58ccdc[_0x3afe04('0x1f92')][_0x3afe04('0x25df')]['length']&&_0x58ccdc['getWhatsappQueues'](),_0x35f0c3[_0x3afe04('0x173b')]({'title':_0x283545()[_0x3afe04('0x114')](_0x3afe04('0x56d'))+_0x3afe04('0x20db'),'msg':_0x25c0e1['name']?_0x25c0e1[_0x3afe04('0x1a8d')]+_0x3afe04('0x14d4'):''});})[_0x57cfeb('0x1cb5')](function(_0x165757){const _0x3a3592=_0x57cfeb;if(_0x165757[_0x3a3592('0x11fc')]&&_0x165757[_0x3a3592('0x11fc')][_0x3a3592('0x25be')]&&_0x165757[_0x3a3592('0x11fc')][_0x3a3592('0x25be')][_0x3a3592('0x2566')]){_0x58ccdc['errors']=_0x165757[_0x3a3592('0x11fc')][_0x3a3592('0x25be')]||[{'message':_0x165757[_0x3a3592('0x17df')](),'type':_0x3a3592('0x1ceb')}];for(let _0x584c82=0x0;_0x584c82<_0x165757['data'][_0x3a3592('0x25be')][_0x3a3592('0x2566')];_0x584c82++){_0x35f0c3[_0x3a3592('0x5e8')]({'title':_0x165757[_0x3a3592('0x11fc')][_0x3a3592('0x25be')][_0x584c82]['type'],'msg':_0x165757[_0x3a3592('0x11fc')][_0x3a3592('0x25be')][_0x584c82]['message']});}}else _0x35f0c3[_0x3a3592('0x5e8')]({'title':_0x165757[_0x3a3592('0x1b51')]?_0x3a3592('0x15d1')+_0x165757['status']+_0x3a3592('0x1b0b')+_0x165757[_0x3a3592('0x22ce')]:_0x3a3592('0x1ceb'),'msg':_0x165757['data']?JSON[_0x3a3592('0x1be0')](_0x165757[_0x3a3592('0x11fc')]['message']):_0x165757[_0x3a3592('0x15e2')]||_0x165757['toString']()});});}function _0x18e779(){const _0x18d591=_0x308b30,_0x3c9fb8=angular['copy'](_0x58ccdc[_0x18d591('0xbfd')]);return _0x58ccdc[_0x18d591('0xbfd')]=[],_0x3c9fb8;}function _0x1adfd7(_0x1a06a7){const _0x5e9f6e=_0x308b30,_0x10a710=_0x4f3bc4['confirm']()[_0x5e9f6e('0x14e4')](_0x5e9f6e('0x873'))['htmlContent'](_0x5e9f6e('0x1670')+_0x58ccdc[_0x5e9f6e('0xbfd')][_0x5e9f6e('0x2566')]+_0x5e9f6e('0xbd')+_0x5e9f6e('0x27c7'))[_0x5e9f6e('0x10bc')](_0x5e9f6e('0x1914'))[_0x5e9f6e('0x24d0')](_0x1a06a7)['ok']('OK')[_0x5e9f6e('0x1801')](_0x5e9f6e('0x1d8d'));_0x4f3bc4[_0x5e9f6e('0x2fa')](_0x10a710)['then'](function(){const _0x55e1ca=_0x5e9f6e;_0x58ccdc['selectedWhatsappQueues'][_0x55e1ca('0x1534')](function(_0x5552c9){_0x3bcc21(_0x5552c9);}),_0x58ccdc[_0x55e1ca('0xbfd')]=[];});}function _0x4e585d(){const _0xe914cc=_0x308b30;_0x58ccdc[_0xe914cc('0xbfd')]=[];}function _0x1f722a(){const _0x3e0827=_0x308b30;_0x58ccdc[_0x3e0827('0xbfd')]=_0x58ccdc[_0x3e0827('0x1f92')][_0x3e0827('0x25df')];}}const _0x424f1c=_0x16de07;_0xab56a7[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0xab56a7(_0x153da8,_0x48baf4){const _0x402c41=_0x34e79e;_0x153da8[_0x402c41('0x249b')](_0x402c41('0xbba'),{'abstract':!![],'url':_0x402c41('0x1d27')})[_0x402c41('0x249b')](_0x402c41('0x218c'),{'url':_0x402c41('0x14fe'),'views':{'content@app':{'templateUrl':_0x39ed83,'controller':_0x402c41('0x1142')}},'resolve':{'whatsappQueues':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x43af44,_0x500727){const _0x45434d=_0x402c41;return _0x500727[_0x45434d('0x1516')](_0x45434d('0xe23'))?_0x43af44['resolve'](_0x45434d('0x1968'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x45434d('0x195d'),'limit':0xa,'offset':0x0}):_0x43af44['resolve'](_0x45434d('0x27c5'),{'id':_0x500727[_0x45434d('0x24cc')]()[_0x45434d('0x237f')],'section':_0x45434d('0x28c'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x45434d('0x1cee'),'channel':_0x45434d('0x195d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x37dba0,_0x137646){const _0x14131e=_0x402c41;return _0x137646[_0x14131e('0x1516')]('admin')?null:_0x37dba0['resolve'](_0x14131e('0x231d'),{'fields':_0x14131e('0x3f0'),'id':_0x137646[_0x14131e('0x24cc')]()[_0x14131e('0x237f')]});}],'userProfileSection':[_0x402c41('0x1318'),'Auth',function(_0x2bad1e,_0x357689){const _0x529f57=_0x402c41;return _0x357689[_0x529f57('0x1516')](_0x529f57('0xe23'))?null:_0x2bad1e[_0x529f57('0x2322')](_0x529f57('0x22ca'),{'fields':_0x529f57('0xe2c'),'userProfileId':_0x357689[_0x529f57('0x24cc')]()['userProfileId'],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})['state']('app.whatsapp.whatsappQueues.edit',{'url':_0x402c41('0x206b'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2d527a,'controller':'WhatsappQueueController\x20as\x20vm'}},'resolve':{'whatsappQueue':[_0x402c41('0x1318'),_0x402c41('0xad0'),function(_0x4b631b,_0x35608a){const _0x5e7f69=_0x402c41;return _0x4b631b[_0x5e7f69('0x2322')](_0x5e7f69('0x1968'),{'fields':_0x5e7f69('0x1a03'),'id':_0x35608a['id']});}],'userProfileSection':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x5723c3,_0x1afe17){const _0x28dba5=_0x402c41;return _0x5723c3['resolve'](_0x28dba5('0x22ca'),{'fields':_0x28dba5('0xe2c'),'userProfileId':_0x1afe17[_0x28dba5('0x24cc')]()[_0x28dba5('0x237f')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x402c41('0x195d')})[_0x402c41('0x249b')]('app.whatsapp.whatsappAccounts',{'url':_0x402c41('0x5cb'),'views':{'content@app':{'templateUrl':_0x5c3447,'controller':_0x402c41('0x2301')}},'resolve':{'whatsappAccounts':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x7d3fd2,_0x1caf6a){const _0x438318=_0x402c41;return _0x1caf6a[_0x438318('0x1516')](_0x438318('0xe23'))?_0x7d3fd2['resolve'](_0x438318('0x1404'),{'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':_0x438318('0x1cee'),'limit':0xa,'offset':0x0}):_0x7d3fd2[_0x438318('0x2322')]('userProfile@getResources',{'id':_0x1caf6a[_0x438318('0x24cc')]()[_0x438318('0x237f')],'section':_0x438318('0x284b'),'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':_0x438318('0x1cee'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x53e060,_0x4a2827){const _0x2a5500=_0x402c41;return _0x4a2827[_0x2a5500('0x1516')](_0x2a5500('0xe23'))?null:_0x53e060[_0x2a5500('0x2322')](_0x2a5500('0x231d'),{'fields':_0x2a5500('0x3f0'),'id':_0x4a2827['getCurrentUser']()[_0x2a5500('0x237f')]});}],'userProfileSection':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x4efb18,_0x36073f){const _0x5ec1ed=_0x402c41;return _0x36073f[_0x5ec1ed('0x1516')]('admin')?null:_0x4efb18['resolve']('userProfileSection@get',{'fields':_0x5ec1ed('0xe2c'),'userProfileId':_0x36073f[_0x5ec1ed('0x24cc')]()[_0x5ec1ed('0x237f')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'})[_0x402c41('0x249b')](_0x402c41('0x24b5'),{'url':_0x402c41('0x206b'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x35c132,'controller':'WhatsappAccountController\x20as\x20vm'}},'resolve':{'whatsappAccount':[_0x402c41('0x1318'),_0x402c41('0xad0'),function(_0x528944,_0x514f9c){const _0xaf3298=_0x402c41;return _0x528944[_0xaf3298('0x2322')]('whatsappAccount@get',{'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':_0x514f9c['id']});}],'userProfileSection':[_0x402c41('0x1318'),_0x402c41('0x1b04'),function(_0x5b20a3,_0x399e7c){const _0x1e56b7=_0x402c41;return _0x5b20a3['resolve'](_0x1e56b7('0x22ca'),{'fields':_0x1e56b7('0xe2c'),'userProfileId':_0x399e7c[_0x1e56b7('0x24cc')]()[_0x1e56b7('0x237f')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x402c41('0x195d')}),_0x48baf4[_0x402c41('0x15ae')](_0x402c41('0x27a3'));}angular[_0x34e79e('0x16e2')]('app.whatsapp',[_0x34e79e('0x1837'),_0x34e79e('0x14e2'),_0x34e79e('0x25e5'),_0x34e79e('0x8a4'),_0x34e79e('0x2246'),_0x34e79e('0x20ba'),_0x34e79e('0x15c8'),_0x34e79e('0x80f'),_0x34e79e('0x1593'),_0x34e79e('0x2287'),_0x34e79e('0x1bb'),_0x34e79e('0x279'),_0x34e79e('0xe0f'),_0x34e79e('0x250d'),_0x34e79e('0x38a'),_0x34e79e('0x1847'),_0x34e79e('0x1ed9'),_0x34e79e('0x2023'),'chart.js',_0x34e79e('0xe82'),_0x34e79e('0x22ff')])[_0x34e79e('0x1a22')](_0xab56a7)['controller']('CreateOrEditWhatsappAccountDialogController',_0x5672ce)[_0x34e79e('0xb44')](_0x34e79e('0x1f8c'),_0x3d9f71)['controller'](_0x34e79e('0x1e2a'),_0x3ef983)[_0x34e79e('0xb44')]('EditWhatsappAccountAppagentDialogController',_0x5ca6b0)[_0x34e79e('0xb44')](_0x34e79e('0x1547'),_0x314d8b)[_0x34e79e('0xb44')](_0x34e79e('0x1c2d'),_0x1dc651)[_0x34e79e('0xb44')](_0x34e79e('0x5a5'),_0x425b8c)[_0x34e79e('0xb44')](_0x34e79e('0x19ae'),_0x3cc38d)['controller']('EditWhatsappAccountAppgotoifDialogController',_0x409ac4)[_0x34e79e('0xb44')](_0x34e79e('0x15a8'),_0x4a19cb)['controller'](_0x34e79e('0x17a9'),_0x445c61)[_0x34e79e('0xb44')](_0x34e79e('0x9a7'),_0x1bc801)[_0x34e79e('0xb44')](_0x34e79e('0x1df3'),_0x3b15aa)['controller'](_0x34e79e('0xd9f'),_0x183b74)[_0x34e79e('0xb44')](_0x34e79e('0x109e'),_0x3c6dd4)[_0x34e79e('0xb44')]('WhatsappAccountInteractionsController',_0x211419)[_0x34e79e('0xb44')]('WhatsappAccountController',_0x48133d)['controller']('WhatsappAccountWhatsappCannedAnswersController',_0x49059f)[_0x34e79e('0xb44')](_0x34e79e('0x1b64'),_0x506b72)[_0x34e79e('0xb44')]('WhatsappAccountDispositionsController',_0x126b7b)[_0x34e79e('0xb44')](_0x34e79e('0x1090'),_0x1b69aa)[_0x34e79e('0xb44')](_0x34e79e('0xe9f'),_0x1a7e97)['controller']('WhatsappQueueagentaddController',_0x472710)['controller'](_0x34e79e('0xe34'),_0xf3602c)[_0x34e79e('0xb44')](_0x34e79e('0x1628'),_0x5594db)['controller']('WhatsappQueuesController',_0x424f1c);const _0x12fde7=_0x18dd13['p']+_0x34e79e('0x538'),_0x3182a9=_0x18dd13['p']+'src/js/modules/core/layouts/content-only.html/content-only.html',_0x1a34e1=_0x18dd13['p']+_0x34e79e('0xc58'),_0x1a3716=_0x18dd13['p']+_0x34e79e('0x19fd'),_0x50d625=_0x18dd13['p']+_0x34e79e('0xc80'),_0x4f402c=_0x18dd13['p']+_0x34e79e('0xcfb'),_0x494ab9=_0x18dd13['p']+_0x34e79e('0x2592');_0x21f772[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x1bf5'),_0x34e79e('0x1bfe'),_0x34e79e('0x446'),_0x34e79e('0x519'),'Auth',_0x34e79e('0x1af0')];function _0x21f772(_0x1ace58,_0x312107,_0x53dfc5,_0x328478,_0x393609,_0x10dde1,_0x2979a4){const _0x511533=_0x34e79e,_0x21dd61=this;_0x21dd61[_0x511533('0x3c3')]=![],_0x21dd61[_0x511533('0x2568')]=![],_0x21dd61[_0x511533('0x946')]=_0x393609[_0x511533('0x946')];function _0x42fdfd(){const _0x19ad46=_0x511533;if(_0x1ace58[_0x19ad46('0x4b9')][_0x19ad46('0x2620')]&&_0x1ace58[_0x19ad46('0x4b9')]['userId'])return _0x10dde1[_0x19ad46('0x1363')](),_0x21dd61[_0x19ad46('0x3c3')]=!![],_0x53dfc5[_0x19ad46('0x27ad')](_0x19ad46('0x2eb'),_0x1ace58[_0x19ad46('0x4b9')][_0x19ad46('0x2620')]),_0x393609[_0x19ad46('0x1e6a')][_0x19ad46('0x1335')]({'id':_0x1ace58[_0x19ad46('0x4b9')][_0x19ad46('0xf70')]})[_0x19ad46('0x1714')][_0x19ad46('0x2788')](function(_0x3c609e){const _0x1c2429=_0x19ad46;_0x3c609e&&(_0x10dde1[_0x1c2429('0x242c')](_0x3c609e),_0x1ace58['go'](_0x1c2429('0x15b8')));})['finally'](function(){const _0x1b61f6=_0x19ad46;_0x21dd61[_0x1b61f6('0x3c3')]=![];});else _0x10dde1[_0x19ad46('0x1782')]()&&_0x1ace58['go']('app.dashboards.general');_0x21dd61[_0x19ad46('0x2568')]=_0x2979a4['googleSsoEnabled'];}function _0x58df0f(){const _0x24e0f1=_0x511533;return _0x21dd61['progresslogin']=!![],_0x21dd61[_0x24e0f1('0x15e2')]='',_0x10dde1[_0x24e0f1('0x17e2')](_0x21dd61[_0x24e0f1('0x1c1f')])['then'](function(){const _0x1f5c59=_0x24e0f1;return _0x1ace58['go'](_0x1f5c59('0x15b8'));})[_0x24e0f1('0x1cb5')](function(_0xb678b4){const _0x403b7a=_0x24e0f1;_0x21dd61[_0x403b7a('0x15e2')]=_0xb678b4[_0x403b7a('0x11fc')]?_0xb678b4[_0x403b7a('0x11fc')][_0x403b7a('0x15e2')]:_0xb678b4[_0x403b7a('0x15e2')];})[_0x24e0f1('0x1ed8')](function(){const _0xcf9ca5=_0x24e0f1;_0x21dd61[_0xcf9ca5('0x3c3')]=![];});}function _0x5efbaf(_0x40a8a3){const _0xae75ef=_0x511533;_0x21dd61[_0xae75ef('0x15e2')]='',_0x312107['location'][_0xae75ef('0x186a')]=_0x10dde1[_0xae75ef('0x1091')](_0x40a8a3);}_0x21dd61[_0x511533('0x17e2')]=_0x58df0f,_0x21dd61[_0x511533('0x18c0')]=_0x5efbaf,_0x21dd61[_0x511533('0x122e')]=_0x42fdfd,_0x21dd61['onInit']();}const _0x172de8=_0x21f772;_0xb54201[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0xb54201(_0x3b391d,_0x45aae9){const _0x2fbfb4=_0x34e79e;_0x3b391d[_0x2fbfb4('0x249b')](_0x2fbfb4('0x2764'),{'url':_0x2fbfb4('0x901'),'views':{'main@':{'templateUrl':_0x3182a9,'controller':'MainController\x20as\x20vm'},'content@app.login':{'templateUrl':_0x12fde7,'controller':_0x2fbfb4('0xb0c')}},'bodyClass':_0x2fbfb4('0x17e2')}),_0x45aae9[_0x2fbfb4('0x15ae')](_0x2fbfb4('0x4d'));}angular['module'](_0x34e79e('0x2764'),[])['config'](_0xb54201)[_0x34e79e('0xb44')]('LoginController',_0x172de8);const _0x10aa4b=_0x18dd13['p']+'src/js/modules/forgot/forgot.html/forgot.html';_0x49a492[_0x34e79e('0x2d9')]=['Auth',_0x34e79e('0xd57'),_0x34e79e('0x1a5c'),_0x34e79e('0x1382'),'api'];function _0x49a492(_0x34033c,_0x5195b8,_0x16de3e,_0x4fcbb8,_0x2d2655){const _0x1d9b2f=_0x34e79e,_0x343561=this;_0x343561[_0x1d9b2f('0x1c1f')]={},_0x343561[_0x1d9b2f('0x946')]=_0x2d2655[_0x1d9b2f('0x946')];function _0x3dc0d7(){const _0x39a55d=_0x1d9b2f;_0x34033c['isLoggedIn']()&&_0x4fcbb8['go'](_0x39a55d('0x15b8'));}function _0x473c4f(){const _0x2bf78c=_0x1d9b2f;return _0x2d2655['auth'][_0x2bf78c('0x1f50')](_0x343561[_0x2bf78c('0x1c1f')])[_0x2bf78c('0x1714')]['then'](function(){const _0x3e04af=_0x2bf78c;_0x5195b8[_0x3e04af('0x173b')]({'title':_0x16de3e['instant'](_0x3e04af('0x1380')),'msg':_0x16de3e[_0x3e04af('0x1b11')](_0x3e04af('0xf04'))});})['catch'](function(_0x4af42c){const _0x2eb6cb=_0x2bf78c;_0x4af42c&&_0x5195b8['error']({'title':_0x16de3e[_0x2eb6cb('0x1b11')]('FORGOTPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x4af42c[_0x2eb6cb('0x11fc')]?_0x4af42c[_0x2eb6cb('0x11fc')]['message']||_0x4af42c[_0x2eb6cb('0x15e2')]||_0x4af42c:_0x4af42c[_0x2eb6cb('0x15e2')]||_0x4af42c});});}_0x343561['forgotPassword']=_0x473c4f,_0x343561[_0x1d9b2f('0x122e')]=_0x3dc0d7;}const _0x17b28a=_0x49a492;_0x200f1a['$inject']=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x200f1a(_0x34ad50,_0xefc36d){const _0x1dce9c=_0x34e79e;_0x34ad50[_0x1dce9c('0x249b')](_0x1dce9c('0x1f1c'),{'url':_0x1dce9c('0x116d'),'views':{'main@':{'templateUrl':_0x3182a9,'controller':_0x1dce9c('0xf92')},'content@app.forgot':{'templateUrl':_0x10aa4b,'controller':_0x1dce9c('0x1bc1')}},'bodyClass':_0x1dce9c('0x1f50')}),_0xefc36d[_0x1dce9c('0x15ae')](_0x1dce9c('0x245e'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1f1c'),[])[_0x34e79e('0x1a22')](_0x200f1a)[_0x34e79e('0xb44')](_0x34e79e('0x1f35'),_0x17b28a);const _0x1014da=_0x18dd13['p']+_0x34e79e('0xafc');_0x2528df[_0x34e79e('0x2d9')]=[_0x34e79e('0x1b04'),_0x34e79e('0xd57'),_0x34e79e('0x1a5c'),_0x34e79e('0x1382'),'api',_0x34e79e('0xad0')];function _0x2528df(_0x2963e7,_0x3cdcca,_0x566ae1,_0x303803,_0x4ded72,_0x187f84){const _0x1e2322=_0x34e79e,_0x571125=this;_0x571125['form']={'token':_0x187f84[_0x1e2322('0x2620')]},_0x571125[_0x1e2322('0x1af0')]={},_0x571125[_0x1e2322('0x946')]=_0x4ded72[_0x1e2322('0x946')];function _0x47e7f9(){const _0x26d8b3=_0x1e2322;return _0x2963e7[_0x26d8b3('0x1782')]()&&_0x303803['go']('app.dashboards.general'),_0x4ded72[_0x26d8b3('0x1af0')][_0x26d8b3('0xbb2')]({'id':0x1})[_0x26d8b3('0x1714')][_0x26d8b3('0x2788')](function(_0x11a0b9){const _0x26bdfd=_0x26d8b3;_0x571125[_0x26bdfd('0x1af0')]=_0x11a0b9,_0x571125['passwordPattern']=_0x571125['setting'][_0x26bdfd('0x1c65')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x26d8b3('0x1cb5')](function(_0x3631a2){const _0xc9a50d=_0x26d8b3;_0x3631a2&&_0x3cdcca[_0xc9a50d('0x5e8')]({'title':'Error','msg':_0x3631a2[_0xc9a50d('0x11fc')]?_0x3631a2[_0xc9a50d('0x11fc')][_0xc9a50d('0x15e2')]||_0x3631a2[_0xc9a50d('0x15e2')]||_0x3631a2:_0x3631a2[_0xc9a50d('0x15e2')]||_0x3631a2});});}function _0x293a9c(){const _0x25abbc=_0x1e2322;return _0x4ded72[_0x25abbc('0x14d1')][_0x25abbc('0x186b')](_0x571125['form'])[_0x25abbc('0x1714')][_0x25abbc('0x2788')](function(){const _0xfa0bd4=_0x25abbc;_0x3cdcca['success']({'title':_0x566ae1[_0xfa0bd4('0x1b11')]('RESETPASSWORD.PASSWORD_RESET'),'msg':_0x566ae1[_0xfa0bd4('0x1b11')](_0xfa0bd4('0x1a50'))}),_0x303803['go']('app.login');})[_0x25abbc('0x1cb5')](function(_0x274aa0){const _0xe59cc3=_0x25abbc;_0x274aa0&&_0x3cdcca[_0xe59cc3('0x5e8')]({'title':_0x566ae1[_0xe59cc3('0x1b11')](_0xe59cc3('0xfa1')),'msg':_0x274aa0['data']?_0x274aa0[_0xe59cc3('0x11fc')][_0xe59cc3('0x15e2')]||_0x274aa0['message']||_0x274aa0:_0x274aa0[_0xe59cc3('0x15e2')]||_0x274aa0});});}_0x571125[_0x1e2322('0x1042')]=_0x293a9c,_0x571125[_0x1e2322('0x122e')]=_0x47e7f9;}const _0x4c4d67=_0x2528df;_0x1695f0[_0x34e79e('0x2d9')]=['$stateProvider',_0x34e79e('0x1b4b')];function _0x1695f0(_0x496cbb,_0x41f1cc){const _0x2a016b=_0x34e79e;_0x496cbb['state'](_0x2a016b('0x158e'),{'url':_0x2a016b('0x1c04'),'views':{'main@':{'templateUrl':_0x3182a9,'controller':_0x2a016b('0xf92')},'content@app.reset':{'templateUrl':_0x1014da,'controller':'ResetPasswordController\x20as\x20vm'}},'bodyClass':_0x2a016b('0x186b')}),_0x41f1cc[_0x2a016b('0x15ae')](_0x2a016b('0x263f'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x158e'),[])[_0x34e79e('0x1a22')](_0x1695f0)[_0x34e79e('0xb44')](_0x34e79e('0x268f'),_0x4c4d67);const _0x418fdb=_0x18dd13['p']+_0x34e79e('0x1cd3');_0x2015c2['$inject']=['$state','$timeout','$q','msNavigationService'];function _0x2015c2(_0x5c1422,_0x8e7efe,_0x4aaa37,_0x3a13e1){const _0x4b89b5=_0x34e79e,_0x390769=this;function _0x32eadf(_0x4a2558){const _0x80e67b=a0_0x14e7;let _0x595d87=[];const _0x5a58bd=_0x3a13e1[_0x80e67b('0xaf1')](),_0x2437d2=_0x4aaa37[_0x80e67b('0x2311')]();for(let _0xea9084=0x0;_0xea9084<_0x5a58bd[_0x80e67b('0x2566')];_0xea9084+=0x1){_0x5a58bd[_0xea9084][_0x80e67b('0x127c')]&&_0x595d87['push'](_0x5a58bd[_0xea9084]);}return _0x4a2558&&(_0x595d87=_0x595d87[_0x80e67b('0x916')](function(_0x53b22f){const _0x1dcca9=_0x80e67b;if(_0x53b22f[_0x1dcca9('0x14e4')][_0x1dcca9('0xc2e')]()[_0x1dcca9('0x1d4e')](_0x4a2558['toLowerCase']()))return!![];})),_0x8e7efe(function(){const _0xa925f3=_0x80e67b;_0x2437d2[_0xa925f3('0x2322')](_0x595d87);},0x3e8),_0x2437d2[_0x80e67b('0x1808')];}function _0x5d0a5f(_0x4a810e){const _0x2e425c=a0_0x14e7;_0x4a810e[_0x2e425c('0x127c')]&&(_0x4a810e[_0x2e425c('0x16a0')]?_0x5c1422['go'](_0x4a810e[_0x2e425c('0x249b')],_0x4a810e[_0x2e425c('0x16a0')]):_0x5c1422['go'](_0x4a810e[_0x2e425c('0x249b')]));}_0x390769['search']=_0x32eadf,_0x390769[_0x4b89b5('0xf8c')]=_0x5d0a5f;}const _0x4ac885=_0x2015c2;_0x5b57df[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x1b4b')];function _0x5b57df(_0x141b8f,_0x481049){const _0x36865b=_0x34e79e;_0x141b8f[_0x36865b('0x249b')](_0x36865b('0x222e'),{'url':_0x36865b('0x76'),'views':{'main@':{'templateUrl':_0x3182a9,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-404':{'templateUrl':_0x418fdb,'controller':_0x36865b('0x1ffb')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x36865b('0x6d0')}),_0x481049['addPart'](_0x36865b('0x118c'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x12a6'),[])[_0x34e79e('0x1a22')](_0x5b57df)[_0x34e79e('0xb44')](_0x34e79e('0x1f5e'),_0x4ac885);const _0x39c9c5=_0x18dd13['p']+_0x34e79e('0x10f2');_0x4f094a[_0x34e79e('0x2d9')]=[_0x34e79e('0x1382'),_0x34e79e('0x1b2')];function _0x4f094a(_0x17ef9e,_0x3a307b){const _0x289178=_0x34e79e,_0x31611f=this;function _0x59ccb9(){const _0x73de8f=a0_0x14e7;_0x3a307b['post'](_0x73de8f('0x179d'),_0x31611f['error'])[_0x73de8f('0x2788')](function(_0xbb0fbe){const _0x485e5e=_0x73de8f;_0x31611f[_0x485e5e('0x1fc9')]=!![],_0xbb0fbe[_0x485e5e('0x11fc')]&&(_0x31611f[_0x485e5e('0x37')]=_0xbb0fbe[_0x485e5e('0x11fc')]['id']);},function(){const _0x225b64=_0x73de8f;_0x31611f[_0x225b64('0x1fc9')]=![];});}_0x31611f[_0x289178('0x37')]='',_0x31611f[_0x289178('0x1fc9')]=![],_0x31611f[_0x289178('0x5e8')]=_0x17ef9e['params'],_0x31611f['sendReport']=_0x59ccb9;}const _0x6a1f50=_0x4f094a;_0x59fad0[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),'$translatePartialLoaderProvider'];function _0x59fad0(_0x57f4ef,_0x2c7747){const _0x17d536=_0x34e79e;_0x57f4ef[_0x17d536('0x249b')](_0x17d536('0x1fea'),{'url':_0x17d536('0x7c'),'views':{'main@':{'templateUrl':_0x3182a9,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-500':{'templateUrl':_0x39c9c5,'controller':'Error500Controller\x20as\x20vm'}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x17d536('0x27ba')}),_0x2c7747['addPart'](_0x17d536('0x2493'));}angular[_0x34e79e('0x16e2')](_0x34e79e('0x1ffa'),[])['config'](_0x59fad0)[_0x34e79e('0xb44')](_0x34e79e('0x151'),_0x6a1f50);;angular[_0x34e79e('0x16e2')]('app.errors',[_0x34e79e('0x12a6'),_0x34e79e('0x1ffa')]),_0x2fd8fe[_0x34e79e('0x2d9')]=[_0x34e79e('0x8be')];function _0x2fd8fe(_0xa569fe){const _0x56cb46=_0x34e79e,_0x53225b={};return _0x53225b[_0x56cb46('0x946')]=!![]?'api/':0x0,_0x53225b[_0x56cb46('0x14d1')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15c9'),{},{'local':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15c9')},'forgot':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x10d7')},'reset':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xcf7'),'params':{'token':_0x56cb46('0x1c42')}},'user':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14c9'),'params':{'token':'@token'}},'google':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'auth/google'}}),_0x53225b[_0x56cb46('0x1537')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'jira'),_0x53225b[_0x56cb46('0x1bfc')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1bfc'),{},{'startMonitor':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1629'),'params':{'uniqueid':'@uniqueid'}},'stopMonitor':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/voice/channels/:uniqueid/stopmixmonitor','params':{'uniqueid':'@uniqueid'}},'getVoiceChannels':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2234')},'getVoiceQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/voice/queues'},'getChatQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf6a')},'getMailQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xa5e')},'getSmsQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b1e')},'getWhatsappQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/sms/queues'},'getOpenchannelQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2235')},'getFaxQueues':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x8b8')},'getVoiceQueuesPreview':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'rpc/voice/queues/preview/:id'},'getVoiceQueuesChannels':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'rpc/voice/queues/channels'},'getVoiceQueuesChannel':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24be')},'getVoiceQueuesChannelHangup':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xaab')},'getVoiceQueuesChannelRedirect':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b49')},'getOutbound':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x141')},'getOutboundChannels':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x105c')},'getAgents':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xd84')},'setAgentCapacity':{'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/agents/:id/capacity','params':{'id':'@id'}},'getTelephones':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1892')},'getTrunks':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x568')},'getCampaigns':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14ea')},'getMailAccounts':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x87b')},'getFaxAccounts':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/fax/accounts'},'getChatQueuesWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xa69')},'getMailQueuesWaitingInteractions':{'method':'get','url':_0x53225b['baseUrl']+'rpc/mail/queues/waitinginteractions'},'getOpenchannelQueuesWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21b5')},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x192e')},'getSmsQueuesWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15b3')},'getFaxQueuesWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x274b')},'getWhatsappQueuesWaitingInteractions':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x229b')},'mailQueueNotify':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x540'),'params':{'id':_0x56cb46('0x13fb')}},'chatQueueNotify':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x11f4'),'params':{'id':'@id'}},'faxQueueNotify':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x13c2'),'params':{'id':'@id'}},'smsQueueNotify':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c41'),'params':{'id':_0x56cb46('0x13fb')}},'openchannelQueueNotify':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'rpc/openchannel/queues/:id/notify','params':{'id':_0x56cb46('0x13fb')}},'agentNotify':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21a4'),'params':{'id':_0x56cb46('0x13fb')}}}),_0x53225b[_0x56cb46('0x1a7c')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'version',{},{'fetch':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x825')},'reset':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x266')},'pull':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2632')},'restart':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'version/restart'},'migrations':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x26b7')}}),_0x53225b[_0x56cb46('0xe81')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'system',{},{'killProcess':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xd81'),'params':{'pid':_0x56cb46('0xcd7')}}}),_0x53225b[_0x56cb46('0x88')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21af'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad'),'isArray':!![]}}),_0x53225b[_0x56cb46('0x1e6a')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'users/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'users/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'bulkCreate':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a46'),'isArray':!![]},'addContacts':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x9e1')},'changePassword':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/password'},'addQueues':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'users/:id/queues'},'removeQueues':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x134c')},'addAvatar':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d0c')},'getAvatar':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1d0c')},'getContacts':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x9e1')},'getQueues':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x134c')},'getVoiceQueuesRt':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x238e')},'getGroups':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xacb')},'getRecordings':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x5bf')},'getScreenRecordings':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x166f')},'getChatInteractions':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x2429')},'getOpenchannelInteractions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x146c')},'getMailInteractions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'users/:id/mail/interactions'},'getSmsInteractions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x235')},'getFaxInteractions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'users/:id/fax/interactions'},'getWhatsappInteractions':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'users/:id/whatsapp/interactions'},'login':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d63')},'logout':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1416')},'pause':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2110')},'unpause':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x12e6')},'getTeams':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25e8')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x25e8')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25e8')},'getLists':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/lists'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ea6')},'addChatInteractions':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'users/:id/chat_interactions'},'removeChatInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x239')},'addMailInteractions':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x5e0')},'removeMailInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x5e0')},'addFaxInteractions':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'users/:id/fax_interactions'},'removeFaxInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1326')},'addSmsInteractions':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1afb')},'removeSmsInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1afb')},'addOpenchannelInteractions':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x82e')},'removeOpenchannelInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/openchannel_interactions'},'addWhatsappInteractions':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2550')},'removeWhatsappInteractions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2550')},'getVoicePrefixes':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1716')},'getFaxAccounts':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x78f')},'addFaxAccounts':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x78f')},'removeFaxAccounts':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x78f')},'getMailAccounts':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24b')},'addMailAccounts':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24b')},'removeMailAccounts':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24b')},'getOpenchannelAccounts':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'users/:id/openchannel_accounts'},'addOpenchannelAccounts':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15ee')},'removeOpenchannelAccounts':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15ee')},'getSmsAccounts':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x8f6')},'addSmsAccounts':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/sms_accounts'},'removeSmsAccounts':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+'users/:id/sms_accounts'},'getChatWebsites':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/chat_websites'},'removeChatWebsites':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2544')},'getWhatsappAccounts':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ea2')},'addWhatsappAccounts':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ea2')},'removeWhatsappAccounts':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ea2')},'getSquareProjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe57')},'addSquareProjects':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/square_projects'},'removeSquareProjects':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/square_projects'},'getScheduledCalls':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x131b')},'getApiKey':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'users/:id/api_key'},'createApiKey':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6b4')},'removeApiKey':{'isArray':![],'method':'delete','url':_0x53225b['baseUrl']+_0x56cb46('0x6b4')},'whoami':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2293')}}),_0x53225b[_0x56cb46('0x1028')]=_0xa569fe(_0x53225b['baseUrl']+'voice/chanspy/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/chanspy/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d7b'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x15cc')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'voice/contexts/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1e7a')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c77'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2636')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e56'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x102c')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x785'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc91')}}),_0x53225b[_0x56cb46('0xbb3')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xcbc'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13f2')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x134'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addSound':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/mohs/:id/sounds'},'removeSound':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24dd')},'getSounds':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb41')}}),_0x53225b['voiceQueue']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'voice/queues/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/queues/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe3d'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getHoppers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x241d')},'getHopperHistories':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/queues/:id/hopper_histories'},'getHopperFinals':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1502')},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1311')},'getTeams':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6fe')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x6fe')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x6fe')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbed')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbed')},'getAgents':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbed')},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x979')},'getLists':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c48')},'addLists':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c48')},'removeLists':{'isArray':!![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c48')},'getBlackLists':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/queues/:id/blacklists'},'addBlackLists':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c3e')},'removeBlackLists':{'isArray':!![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c3e')}}),_0x53225b[_0x56cb46('0x14ff')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'voice/recordings/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25c6')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x17b3'),'params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'voice/recordings/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x47d9ae,_0x8e9142){const _0x390b36=_0x56cb46,_0x55eb1d=_0x8e9142();return{'type':_0x55eb1d[_0x390b36('0x95a')],'length':_0x55eb1d[_0x390b36('0xce1')],'buffer':_0x47d9ae};}},'downloads':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dc6')},'runTranscribe':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'voice/recordings/:id/transcribe'},'downloadTranscribe':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20ad'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x5c165b,_0x35fa30){const _0x176687=_0x56cb46,_0x8be513=_0x35fa30();return{'type':_0x8be513['content-type'],'length':_0x8be513[_0x176687('0xce1')],'buffer':_0x5c165b};}}}),_0x53225b['screenRecording']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x13e8'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x217f')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21c4'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1779'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0xff121,_0x1066d6){const _0x8c1b93=_0x56cb46,_0x1434e7=_0x1066d6();return{'type':_0x1434e7[_0x8c1b93('0x95a')],'length':_0x1434e7[_0x8c1b93('0xce1')],'buffer':_0xff121};}}}),_0x53225b[_0x56cb46('0x1e3d')]=_0xa569fe(_0x53225b['baseUrl']+'voice/mails/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x71c')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x255a'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getMessages':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2781')}}),_0x53225b[_0x56cb46('0x1262')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1356'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x232b')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x224c'),'params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'voice/mails/messages/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x15c83c,_0x44a09e){const _0x33e6e7=_0x56cb46,_0x1f7961=_0x44a09e();return{'type':_0x1f7961[_0x33e6e7('0x95a')],'length':_0x1f7961['content-length'],'buffer':_0x15c83c};}}}),_0x53225b[_0x56cb46('0x99')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x194c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x64b')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x193f'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xac')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x110d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/dials/reports/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2325'),'params':{'includeAll':'@includeAll'}}}),_0x53225b['voiceAgentReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x165f'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15fa')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/agents/reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['voiceQueueReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1cc1'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x12f9')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x452'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x11b9')}}),_0x53225b[_0x56cb46('0x16be')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x280b'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'members/reports/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x268c'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2549')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1308'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x16a8')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13aa'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['voiceTransferReport']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xe4e'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e9')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2472'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x20dd')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc12'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/out_servers/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2071'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2594')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xcec'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x725')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'mail/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'mail/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc22')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc22')},'getImap':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x154f')},'addImap':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x154f')},'removeImap':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x154f')},'getSmtp':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c2c')},'addSmtp':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c2c')},'removeSmtp':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c2c')},'addInteraction':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ea9')},'getInteractions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1ea9')},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22a8')},'getApplications':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22a8')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/messages'},'send':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/send'},'verifySmtp':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xa58')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'mail/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf12')},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'mail/accounts/:id/users'}}),_0x53225b[_0x56cb46('0x139b')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b7a'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/queues/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xd4'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b71')},'getTeams':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x27a')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27a')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27a')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'mail/queues/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x53225b['baseUrl']+_0x56cb46('0x259f')},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x259f')}}),_0x53225b[_0x56cb46('0xf75')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x9c6'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1edb')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x5a2'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x2559')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x11fd'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1cfa')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a08'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addMessage':{'isArray':![],'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0x78')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'mail/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'mail/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x720')},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2011'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x2a6e76,_0x4600fd){const _0x3d7fe3=_0x56cb46,_0x426aab=_0x4600fd();return{'type':_0x426aab[_0x3d7fe3('0x95a')],'length':_0x426aab['content-length'],'buffer':_0x2a6e76};}}}),_0x53225b[_0x56cb46('0x125')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'mail/messages/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1523')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x206e'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2196')},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23c1')},'download':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x203d'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x32539d,_0x31b9f3){const _0x55b51b=_0x56cb46,_0x3eee1d=_0x31b9f3();return{'type':_0x3eee1d[_0x55b51b('0x95a')],'length':_0x3eee1d[_0x55b51b('0xce1')],'buffer':_0x32539d};}}}),_0x53225b['mailApplication']=_0xa569fe(_0x53225b['baseUrl']+'mail/applications/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x227d')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc43'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xae8')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x353'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1418')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15bc'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['dashboard']=_0xa569fe(_0x53225b['baseUrl']+'dashboards/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x67e')},'clone':{'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0xcb4'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addItem':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a5b')},'getItems':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a5b')}}),_0x53225b[_0x56cb46('0x215b')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'dashboards/items/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x16df')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1070'),'params':{'includeAll':'@includeAll'}}}),_0x53225b['faxAccount']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x9c7'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xdc4')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb64'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x3e6')},'getDispositions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'fax/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x3e6')},'addAnswer':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbbc')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'fax/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbbc')},'addInteraction':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1db5')},'getInteractions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1db5')},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1918')},'getApplications':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x1918')},'addAccountApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/accounts/addaccountapplications'},'updateAccountApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf1d')},'getMessages':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'fax/accounts/:id/messages'},'send':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2b8')},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x8f3')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x8f3')}}),_0x53225b['faxApplication']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x503'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x839')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c4d'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x26ca')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x656'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/interactions/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d94'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addMessage':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x51e')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x51e')},'addTags':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x271a')},'removeTags':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/interactions/:id/tags'},'download':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'fax/interactions/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x394ab0,_0x443bfb){const _0x14765b=_0x56cb46,_0x18c8d8=_0x443bfb();return{'type':_0x18c8d8[_0x14765b('0x95a')],'length':_0x18c8d8['content-length'],'buffer':_0x394ab0};}}}),_0x53225b[_0x56cb46('0x128d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x930'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1995')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e3e'),'params':{'includeAll':_0x56cb46('0x14dd')}},'accept':{'isArray':![],'method':'put','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x234d')},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b['baseUrl']+_0x56cb46('0x3ea')},'download':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13d'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x5ab154,_0x27b286){const _0x6b9da8=_0x56cb46,_0x4ae20e=_0x27b286();return{'type':_0x4ae20e[_0x6b9da8('0x95a')],'length':_0x4ae20e['content-length'],'buffer':_0x5ab154};}}}),_0x53225b[_0x56cb46('0x1cc3')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'fax/queues/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1970')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/queues/:id/clone','params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xff6')},'getTeams':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1451')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1451')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'fax/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x96b')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x96b')},'getAgents':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x96b')}}),_0x53225b[_0x56cb46('0x65f')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x2441'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x186f')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1544'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1cf0')]=_0xa569fe(_0x53225b['baseUrl']+'sms/accounts/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xfd7')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x26bc')},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x26bc')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x26bc')},'addAnswer':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf69')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'sms/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0xf69')},'notify':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb3a')},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1e67')},'getApplications':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e67')},'getInteractions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x4b')},'send':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x17b')},'status':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d02')},'statusGet':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'sms/accounts/:id/status'},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'sms/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+'sms/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2398')}}),_0x53225b[_0x56cb46('0x21f3')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'sms/applications/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x179c')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25a3'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x1990')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'sms/interactions/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x216c')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x64d'),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb1')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb1')},'addTags':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x238a')},'removeTags':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x238a')},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'sms/interactions/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x41677a,_0x35aa61){const _0x496e37=_0x56cb46,_0x368829=_0x35aa61();return{'type':_0x368829[_0x496e37('0x95a')],'length':_0x368829[_0x496e37('0xce1')],'buffer':_0x41677a};}}}),_0x53225b[_0x56cb46('0xcb5')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x148d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2bc')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b5f'),'params':{'includeAll':_0x56cb46('0x14dd')}},'accept':{'isArray':![],'method':'put','url':_0x53225b['baseUrl']+_0x56cb46('0x1ba7')},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b['baseUrl']+'sms/messages/:id/reject'},'status':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13ef')}}),_0x53225b['smsQueue']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14af'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1beb')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'sms/queues/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x847')},'getTeams':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe6a')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe6a')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe6a')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1eab')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'sms/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1eab')}}),_0x53225b[_0x56cb46('0xfba')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'openchannel/accounts/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2548')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'openchannel/accounts/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1240')},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1240')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1240')},'addAnswer':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13db')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13db')},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x13db')},'notify':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/accounts/:id/notify'},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1524')},'getApplications':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1524')},'getInteractions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'openchannel/accounts/:id/interactions'},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/accounts/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x53225b['baseUrl']+_0x56cb46('0x20a')},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20a')},'send':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x605')}}),_0x53225b[_0x56cb46('0x35d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xd39'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dd8')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/applications/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1989')]=_0xa569fe(_0x53225b['baseUrl']+'openchannel/interactions/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x169d')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/interactions/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'addMessage':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24da')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xe65')},'removeTags':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe65')},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/interactions/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x8a117b,_0x390f26){const _0xf5b24e=_0x56cb46,_0x3f35bc=_0x390f26();return{'type':_0x3f35bc['content-type'],'length':_0x3f35bc[_0xf5b24e('0xce1')],'buffer':_0x8a117b};}}}),_0x53225b[_0x56cb46('0x1e70')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21c7'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a63')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x243b'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b['baseUrl']+'openchannel/messages/:id/accept'},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22f9')}}),_0x53225b[_0x56cb46('0xb26')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc72'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb60')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23fa'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2228')},'getTeams':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1102')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1102')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1102')},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xe9e')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'openchannel/queues/:id/users'}}),_0x53225b[_0x56cb46('0x169c')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1953'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2634')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x125a'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25ec')},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25ec')},'removeDispositions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25ec')},'addAnswer':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1744')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1744')},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1744')},'addLogo':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'chat/websites/:id/logo'},'addAvatar':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1875')},'addCustomerAvatar':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d4')},'addSystemAvatar':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xc')},'getLogo':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24b1')},'getAvatar':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d4')},'getSystemAvatar':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc')},'notify':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/websites/:id/notify'},'offline':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc19')},'addInteraction':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'chat/websites/:id/interactions'},'getInteractions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x153')},'getSnippet':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x112a')},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/websites/:id/applications'},'getApplications':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x16e5')},'addProactiveActions':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xff4')},'getProactiveActions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'chat/websites/:id/proactive_actions'},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/websites/:id/fields'},'getOfflineMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x16ed')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc11')},'removeAgents':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc11')},'getAgents':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc11')}}),_0x53225b[_0x56cb46('0x27cc')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x17c7'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/reports/queue/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'openchannel/reports/queue/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x26a7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a2c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0xcea')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/applications/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['chatInteraction']=_0xa569fe(_0x53225b['baseUrl']+'chat/interactions/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20a0')},'clone':{'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0xe4b'),'params':{'includeAll':_0x56cb46('0x14dd')}},'createVidaooSession':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/interactions/:id/vidaoo'},'customUpdate':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1761')},'abandon':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x642')},'attachmentUpload':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/interactions/:id/attachment_upload'},'attachmentDownload':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x147a')},'close':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xcb7')},'addMessage':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x225c')},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x225c')},'getMyMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2b5')},'addTags':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1568')},'removeTags':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+'chat/interactions/:id/tags'},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/interactions/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function(_0xd2ec4e,_0x3af5fe){const _0x1ce190=_0x56cb46,_0xf1e310=_0x3af5fe();return{'type':_0xf1e310[_0x1ce190('0x95a')],'length':_0xf1e310[_0x1ce190('0xce1')],'buffer':_0xd2ec4e};}}}),_0x53225b[_0x56cb46('0xe1')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1846'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/messages/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe66'),'params':{'includeAll':_0x56cb46('0x14dd')}},'accept':{'isArray':![],'method':'put','url':_0x53225b[_0x56cb46('0x946')]+'chat/messages/:id/accept'},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c7d')}}),_0x53225b['chatOfflineMessage']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x90d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x231a')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23b8'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x12a8')]=_0xa569fe(_0x53225b['baseUrl']+'chat/queues/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1cfc')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2307'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getMembers':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x1f1d')},'getTeams':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x139c')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x139c')},'removeTeams':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+'chat/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23f')},'removeAgents':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23f')},'getAgents':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'chat/queues/:id/users'}}),_0x53225b[_0x56cb46('0x159a')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xd9e'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6fc')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23ca'),'params':{'includeAll':'@includeAll'}},'getUnread':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xff5')},'addMembers':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/groups/:id/members'},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'chat/groups/:id/members'},'removeMembers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x859')},'addMessage':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x203a')},'getMessages':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x203a')}}),_0x53225b['chatProactiveAction']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2135'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'chat/proactive_actions/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/proactive_actions/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x27f6')]=_0xa569fe(_0x53225b['baseUrl']+'cm/companies/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/companies/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27fa'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addContacts':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1401')},'getContacts':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1401')}}),_0x53225b[_0x56cb46('0xa83')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x278b'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x179')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x23d4'),'params':{'includeAll':_0x56cb46('0x14dd')}},'merge':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b66')},'bulkCreate':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x16c5')},'getTags':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'cm/contacts/:id/tags'},'setTags':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/contacts/:id/tags'},'getHoppers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1a70')},'getHopperHistories':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ebb')},'getHopperFinals':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c8a')},'getJscriptySessions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'cm/contacts/:id/jscripty_sessions'},'uploadCsv':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'cm/contacts/csv'},'upload':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'cm/contacts/upload'},'import':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x232e')}}),_0x53225b[_0x56cb46('0x1de1')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1805'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x440')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23da'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getPreview':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x10a8')},'getOpenContacts':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x171')}}),_0x53225b[_0x56cb46('0x6b8')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'cm/hopper_black/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/hopper_black/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e1c'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x177a')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'cm/hopper_final/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xed4')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x159d'),'params':{'includeAll':_0x56cb46('0x14dd')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1697')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'cm/hopper_final/campaign/countAttributes/:id'},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e21')},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x491')},'checkContactHopper':{'isArray':![],'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0x17ae')}}),_0x53225b[_0x56cb46('0x9b')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x199'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x346')},'clone':{'method':'post','url':_0x53225b['baseUrl']+'cm/hopper_history/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1fbd')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xdcf'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/custom_fields/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'cm/custom_fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x116c')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x14d2'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x3f9')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf72'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x9ca')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25ae'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'automations/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x19c0'),'params':{'includeAll':'@includeAll'}},'addConditions':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x7c5')},'getConditions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x7c5')},'addActions':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1921')},'getActions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'automations/:id/actions'}}),_0x53225b[_0x56cb46('0x1870')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x858'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x40e')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15e8'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1db2')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22fd'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'dispositions/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x13ed'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xf2b')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2229'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1bda')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x11b2'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x2630')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x26d9'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x108b')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2847'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addInterval':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x92c')},'getIntervals':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x92c')},'addIntervals':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1853')}}),_0x53225b[_0x56cb46('0x619')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'pauses/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x19eb')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'pauses/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1bf8')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'cdr/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1839')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x3bc'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x1408')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xb85'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x9bd')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'voiceQueuesLog/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x802')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2004'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1217')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x185c'),'params':{'includeAll':_0x56cb46('0x14dd')}},'run':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25c3')}}),_0x53225b[_0x56cb46('0x216d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'sounds/:id',{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x21aa')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1d71'),'params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x80e'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x39bd54,_0x3019d0){const _0x34cbc8=_0x56cb46,_0x350a19=_0x3019d0();return{'type':_0x350a19['content-type'],'length':_0x350a19[_0x34cbc8('0xce1')],'buffer':_0x39bd54};}},'delete':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'sounds/:id'}}),_0x53225b[_0x56cb46('0x1764')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xa3b'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x3c5')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x25fc'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x2273')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'templates/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2421')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x26ce'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x126e')]=_0xa569fe(_0x53225b['baseUrl']+'triggers/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb7a')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x926'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addAllCondition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'triggers/:id/all_conditions'},'addAnyCondition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'triggers/:id/any_conditions'},'getAllConditions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'triggers/:id/all_conditions'},'getAnyConditions':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x104a')},'addAction':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x260d')},'getActions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'triggers/:id/actions'}}),_0x53225b[_0x56cb46('0xa72')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x1bef'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x1f7f')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb29'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x9e5')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22e4'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dd4')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2132'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2005')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xda1'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c9c')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1613'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x193d')]=_0xa569fe(_0x53225b['baseUrl']+'analytics/custom_reports/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2662')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'analytics/custom_reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'preview':{'isArray':!![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0xcb2')},'run':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x81d')},'query':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2825')}}),_0x53225b['analyticDefaultReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'analytics/default_reports/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20f')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x772'),'params':{'includeAll':'@includeAll'}},'preview':{'isArray':!![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x1efa')},'run':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xaeb')},'query':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x112b')}}),_0x53225b[_0x56cb46('0x1cf4')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c16'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2834')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'analytics/extracted_reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x15f1'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x2127b8,_0x1c33d4){const _0x17259e=_0x56cb46,_0x55d47a=_0x1c33d4();return{'type':_0x55d47a[_0x17259e('0x95a')],'length':_0x55d47a['content-length'],'buffer':_0x2127b8};}}}),_0x53225b[_0x56cb46('0x1dd0')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x169a'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x68b')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'analytics/metrics/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x23ec')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x19dc'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc95')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'analytics/field_reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'bulkCreate':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d66'),'isArray':!![]},'bulkDestroy':{'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x19ba'),'isArray':!![]},'addFields':{'isArray':!![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20fa')}}),_0x53225b[_0x56cb46('0x1dbc')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2378'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x798')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'analytics/tree_reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x129c')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x415'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x8df')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1583'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d5')},'addConfiguration':{'isArray':![],'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d5')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/salesforce/accounts/:id/fields'}}),_0x53225b[_0x56cb46('0x12d0')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21b3'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'integrations/salesforce/configurations/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2bf'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1a83')},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1830')},'getDescriptions':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25fd')}}),_0x53225b[_0x56cb46('0xb33')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'integrations/salesforce/fields/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2321')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/salesforce/fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0xdc7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc85'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xd00')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'integrations/sugarcrm/accounts/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f2')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f2')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x10b0')}}),_0x53225b[_0x56cb46('0x1e2c')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0xd53'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xdef')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25ab'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x9f4')},'getSubjects':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x23f3')},'getDescriptions':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x974')}}),_0x53225b[_0x56cb46('0x9fe')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1898'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x16ee')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x248c'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x6fb')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x39c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0xe40')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xa79'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/desk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x33a')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x24a1')}}),_0x53225b[_0x56cb46('0x1f6f')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x1f7a'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x5d8')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1751'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22e1')},'getSubjects':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x5aa')},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1de')},'getTags':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/desk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a53')}}),_0x53225b[_0x56cb46('0xb6f')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22df'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x10ec')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x24f7'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x271')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x132d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x259b')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1e3f'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x24e9')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x24e9')},'getFields':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'integrations/zoho/accounts/:id/fields'}}),_0x53225b[_0x56cb46('0xe10')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc13'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/zoho/configurations/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'integrations/zoho/configurations/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x914')},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1337')},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2028')}}),_0x53225b[_0x56cb46('0xef7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dcd'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22a4')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25b2'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x26ef')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'integrations/zendesk/accounts/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b['baseUrl']+'integrations/zendesk/accounts/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2399'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x44e')},'addConfiguration':{'isArray':![],'method':'post','url':_0x53225b['baseUrl']+'integrations/zendesk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc4b')}}),_0x53225b['intZendeskConfiguration']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f5d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x4fa')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x889'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/zendesk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/zendesk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x104c')},'getTags':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/zendesk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1e7e')}}),_0x53225b[_0x56cb46('0xd59')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x5f0'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xe91')},'clone':{'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0xab4'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x207')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a57'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/freshdesk/accounts/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27e9'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14e')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x14e')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1545')}}),_0x53225b[_0x56cb46('0x42d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'integrations/freshdesk/configurations/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'integrations/freshdesk/configurations/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x861'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b85')},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2153')},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xace')},'getTags':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1668')},'setTags':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1668')}}),_0x53225b['intFreshdeskField']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ac5'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/freshdesk/fields/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x18d8'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1f07')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb15'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xf05')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'integrations/vtiger/accounts/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27e')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x27e')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x12d3')}}),_0x53225b['intVtigerConfiguration']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x2060'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x199d')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/vtiger/configurations/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2176')},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'integrations/vtiger/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/vtiger/configurations/:id/descriptions'}}),_0x53225b['intVtigerField']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a4c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x1712')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xbcd'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xa74')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x111f'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x95c')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1b74'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/servicenow/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'integrations/servicenow/accounts/:id/configurations'},'getFields':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x611')}}),_0x53225b[_0x56cb46('0x2ca')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x19e4'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x567')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/servicenow/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x12d8')},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2384')},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1436')}}),_0x53225b[_0x56cb46('0x2401')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x74c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a5f')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f94'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x1835')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'integrations/dynamics365/accounts/:id',{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xd9d')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xd2a'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1944')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1944')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'integrations/dynamics365/accounts/:id/fields'}}),_0x53225b[_0x56cb46('0x6bc')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xa7d'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'integrations/dynamics365/configurations/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x21a'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x99b')},'getSubjects':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x20c6')},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x8f2')}}),_0x53225b[_0x56cb46('0x1637')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1825'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x83d')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x944'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['intFreshsalesAccount']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2642'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'integrations/freshsales/accounts/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'integrations/freshsales/accounts/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getConfigurations':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1791')},'addConfiguration':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1791')},'getFields':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'integrations/freshsales/accounts/:id/fields'}}),_0x53225b[_0x56cb46('0x595')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1d0e'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f73')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2154'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getSubjects':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'integrations/freshsales/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2254')},'getFields':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'integrations/freshsales/configurations/:id/fields'}}),_0x53225b[_0x56cb46('0x274')]=_0xa569fe(_0x53225b['baseUrl']+'integrations/freshsales/fields/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2724')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e52'),'params':{'includeAll':'@includeAll'}}}),_0x53225b['network']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1bae'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x48e')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'networks/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2d7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x147b'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1036')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6db'),'params':{'includeAll':'@includeAll'}}}),_0x53225b[_0x56cb46('0x208e')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x120f'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x87c')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x26f1'),'params':{'includeAll':'@includeAll'}},'getUsers':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x28b')}}),_0x53225b[_0x56cb46('0x15e7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'jscripty/answers/reports/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c50')},'clone':{'method':'post','url':_0x53225b['baseUrl']+'jscripty/answers/reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['jscriptyQuestionReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25a5'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'jscripty/questions/reports/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x210f'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['jscriptySessionReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a2b'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dac')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'jscripty/sessions/reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getQuestions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6c')}}),_0x53225b[_0x56cb46('0x2382')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x1d64'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1bbe')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e86'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['squareReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbf3'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x987')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'square/reports/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1ec6')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x143'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1114')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x7d1'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xf5b')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'jscripty/projects/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x875')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xfca'),'params':{'includeAll':'@includeAll'}},'getSessions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'jscripty/projects/:id/sessions'},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb8e')},'getSummary':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x22d3'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x37417e,_0x38de39){const _0x2e787d=_0x56cb46,_0xf92a03=_0x38de39();return{'type':_0xf92a03[_0x2e787d('0x95a')],'length':_0xf92a03[_0x2e787d('0xce1')],'buffer':_0x37417e};}}}),_0x53225b[_0x56cb46('0x1af0')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'settings/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x11f3')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x5a3'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addLogo':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x937')},'addLogoLogin':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6f1')},'getLogo':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x937')},'getLogoLogin':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+'settings/:id/logo_login'},'gdpr':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x25d6')},'addPreferred':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'settings/:id/preferred'},'getPreferred':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ba1')},'addFavicon':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x217c')},'getFavicon':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x217c')}}),_0x53225b[_0x56cb46('0x487')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x1c24'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x781')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb7c'),'params':{'includeAll':_0x56cb46('0x14dd')}},'test':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x7c9')}}),_0x53225b[_0x56cb46('0x163a')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x133'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1a4a')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14e9'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addUsers':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x96')},'removeUsers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'square/projects/:id/users'},'getUsers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x96')}}),_0x53225b[_0x56cb46('0x15c1')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x1fb4'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1fed')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1325'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x220b'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x32cae6,_0xa94fc3){const _0x1b3f3d=_0x56cb46,_0x13f858=_0xa94fc3();return{'type':_0x13f858[_0x1b3f3d('0x95a')],'length':_0x13f858[_0x1b3f3d('0xce1')],'buffer':_0x32cae6};}}}),_0x53225b['squareMessage']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e75'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc5e')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'square/messages/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x421')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1132'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2427')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'teams/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}},'getQueues':{'isArray':!![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'teams/:id/queues'},'addQueues':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1111')},'removeQueues':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1111')},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0xae4')},'removeAgents':{'isArray':![],'method':'delete','url':_0x53225b['baseUrl']+_0x56cb46('0xae4')},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xae4')}}),_0x53225b[_0x56cb46('0x130d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'license/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1723')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x203b'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['campaign']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2687'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x7c0')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x27b6'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getHoppers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1c53')},'getHopperHistories':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15e')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14d7')},'getHopperBlacks':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'campaigns/:id/hopper_black'},'getLists':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2457')},'addLists':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2457')},'removeLists':{'isArray':!![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+'campaigns/:id/lists'},'getBlackLists':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x252d')},'addBlackLists':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x252d')},'removeBlackLists':{'isArray':!![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x252d')}}),_0x53225b['migration']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x15ed'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xdc1')},'clone':{'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0x1e23'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x2358')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'attachments/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'attachments/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x29d'),'params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x9a1'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x2348f2,_0x215910){const _0x19935b=_0x215910();return{'type':_0x19935b['content-type'],'length':_0x19935b['content-length'],'buffer':_0x2348f2};}}}),_0x53225b['plugin']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc30'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1587')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x211c'),'params':{'includeAll':_0x56cb46('0x14dd')}},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'plugins/:id/download','responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0xc985bb,_0x5c2337){const _0x1de187=_0x56cb46,_0x528dfc=_0x5c2337();return{'type':_0x528dfc[_0x1de187('0x95a')],'length':_0x528dfc['content-length'],'buffer':_0xc985bb};}},'upload':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1232')},'delete':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc30')},'webhookGet':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ae9')},'webhookPost':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1ae9')}}),_0x53225b['mailTransferReport']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x260e'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x205d')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+'mail/reports/transfer/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x6a8')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'chat/reports/transfer/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'chat/reports/transfer/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1e29'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['faxTransferReport']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2495'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x3fc')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x2785'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0xa1d')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1658'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1be4')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1604'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x786')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1323'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1866')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13c'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['cmList']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13b8'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+'cm/lists/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ac4'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/lists/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/lists/:id/dispositions'},'removeDispositions':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc4a')},'addContacts':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'cm/lists/:id/contacts'},'getContacts':{'isArray':!![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x13fd')},'getContactsCsv':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ac0'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0x2b83f9,_0x54613d){const _0xe4e2e9=_0x56cb46,_0x446297=_0x54613d();return{'type':_0x446297[_0xe4e2e9('0x95a')],'length':_0x446297['content-length'],'buffer':_0x2b83f9};}},'addCustomField':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20fd')},'getCustomFields':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20fd')},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/lists/:id/users'},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+'cm/lists/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cm/lists/:id/users'}}),_0x53225b[_0x56cb46('0x17ee')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x83c'),{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'voice/prefixes/describe'},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x267e'),'params':{'includeAll':'@includeAll'}},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'voice/prefixes/:id/users'},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+'voice/prefixes/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1214')}}),_0x53225b[_0x56cb46('0x63c')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x183e'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2821')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x749'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addSections':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c59')},'removeSections':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c59')},'getSections':{'isArray':!![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1c59')},'addResources':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x709')},'removeResources':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x709')},'getResources':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x709')}}),_0x53225b['userProfileSection']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'userProfile/sections/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x14f8')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x21d0'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x1050')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2085'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x280e')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x31'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x793')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1730'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'notifications/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x18e0'),'params':{'includeAll':_0x56cb46('0x14dd')}},'sendNotification':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x150')}}),_0x53225b[_0x56cb46('0x15')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'whatsapp/accounts/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1f15')},'clone':{'method':'post','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x4c2'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addDisposition':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1dc5')},'getDispositions':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dc5')},'removeDispositions':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1dc5')},'addAnswer':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1051')},'getAnswers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1051')},'removeAnswers':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1051')},'addAgents':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xc71')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+'whatsapp/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0xc71')},'addApplications':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1600')},'getApplications':{'isArray':![],'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1600')},'notify':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/accounts/:id/notify'},'send':{'isArray':![],'method':'post','url':_0x53225b['baseUrl']+'whatsapp/accounts/:id/send'}}),_0x53225b['whatsappApplication']=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x208a'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/applications/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xbb4'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x95')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'whatsapp/interactions/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2696')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x6bf'),'params':{'includeAll':_0x56cb46('0x14dd')}},'addMessage':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x11c6')},'addTags':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x20a8')},'removeTags':{'isArray':![],'method':'delete','url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/interactions/:id/tags'},'download':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x626'),'responseType':_0x56cb46('0x1962'),'cache':![],'transformResponse':function(_0xcafc2f,_0x346609){const _0x291e2b=_0x56cb46,_0xd5726b=_0x346609();return{'type':_0xd5726b['content-type'],'length':_0xd5726b[_0x291e2b('0xce1')],'buffer':_0xcafc2f};}}}),_0x53225b[_0x56cb46('0x1ef7')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2098'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x2bb')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x10c6'),'params':{'includeAll':_0x56cb46('0x14dd')}},'accept':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/messages/:id/accept'},'reject':{'isArray':![],'method':_0x56cb46('0x27ad'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1ae2')},'status':{'isArray':![],'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'whatsapp/messages/:id/status'}}),_0x53225b[_0x56cb46('0xec7')]=_0xa569fe(_0x53225b['baseUrl']+_0x56cb46('0x7db'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1aef')},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/reports/queue/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b[_0x56cb46('0x413')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2017'),{'id':_0x56cb46('0x13fb')},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':'get','url':_0x53225b['baseUrl']+'whatsapp/reports/transfer/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x2240'),'params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b['whatsappQueue']=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x13d1'),{'id':'@id'},{'update':{'method':_0x56cb46('0x27ad')},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b['baseUrl']+'whatsapp/queues/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+_0x56cb46('0x1f41'),'params':{'includeAll':_0x56cb46('0x14dd')}},'getMembers':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0xb6d')},'getTeams':{'isArray':![],'method':'get','url':_0x53225b['baseUrl']+_0x56cb46('0x87e')},'addTeams':{'isArray':!![],'method':_0x56cb46('0x2251'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x87e')},'removeTeams':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b['baseUrl']+_0x56cb46('0x87e')},'addAgents':{'isArray':!![],'method':'post','url':_0x53225b['baseUrl']+_0x56cb46('0x1867')},'removeAgents':{'isArray':![],'method':_0x56cb46('0x17c4'),'url':_0x53225b[_0x56cb46('0x946')]+_0x56cb46('0x1867')},'getAgents':{'isArray':![],'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'whatsapp/queues/:id/users'}}),_0x53225b[_0x56cb46('0x958')]=_0xa569fe(_0x53225b[_0x56cb46('0x946')]+'cloudProviders/:id',{'id':_0x56cb46('0x13fb')},{'update':{'method':'put'},'describe':{'method':_0x56cb46('0x1335'),'url':_0x53225b[_0x56cb46('0x946')]+'cloudProviders/describe'},'clone':{'method':_0x56cb46('0x2251'),'url':_0x53225b['baseUrl']+'cloudProviders/:id/clone','params':{'includeAll':_0x56cb46('0x14dd')}}}),_0x53225b;}const _0x12fbc1=_0x2fd8fe;_0x56cb65[_0x34e79e('0x2d9')]=[_0x34e79e('0x276b'),'toastyConfigProvider'];function _0x56cb65(_0x1ca4da,_0x255afe){const _0x446db6=_0x34e79e;_0x255afe['setConfig']({'position':_0x446db6('0xd28'),'sound':![],'html':!![],'theme':'material'}),_0x1ca4da[_0x446db6('0xbc7')]('$translatePartialLoader',{'urlTemplate':'{part}/i18n/{lang}.json'}),_0x1ca4da[_0x446db6('0x985')]('en'),_0x1ca4da[_0x446db6('0x22cb')](null);}const _0x470c42=_0x56cb65;_0x2e0c6c[_0x34e79e('0x2d9')]=[_0x34e79e('0x10f9'),'$translate',_0x34e79e('0x1bfe'),_0x34e79e('0x519'),_0x34e79e('0xd57')];function _0x2e0c6c(_0xae7f6a,_0x59a865,_0x1dae2b,_0x252b59,_0x4b7053){const _0x57bbc1=_0x34e79e,_0x8b81d6=this;_0x8b81d6[_0x57bbc1('0xcf6')]=_0xae7f6a[_0x57bbc1('0xcf6')],_0x8b81d6[_0x57bbc1('0x7c3')]='ltr';const _0x5c0127=['ar','fa','he'],_0x2334c2=_0x1dae2b[_0x57bbc1('0x1335')](_0x57bbc1('0xdbf'));_0x2334c2&&(_0x59a865['use'](_0x2334c2),_0x5c0127[_0x57bbc1('0x821')](_0x2334c2)>=0x0&&_0x252b59['setting'][_0x57bbc1('0x1335')]({'id':0x1})[_0x57bbc1('0x1714')][_0x57bbc1('0x2788')](function(_0x4386e5){const _0x1bbfbb=_0x57bbc1;_0x4386e5&&_0x4386e5[_0x1bbfbb('0xf26')]&&(_0x8b81d6[_0x1bbfbb('0x7c3')]=_0x1bbfbb('0x54f'));})[_0x57bbc1('0x1cb5')](function(_0xa71af6){const _0x75eb2b=_0x57bbc1;_0xa71af6&&_0x4b7053[_0x75eb2b('0x5e8')]({'title':_0x75eb2b('0x1f81'),'msg':_0xa71af6[_0x75eb2b('0x11fc')]?_0xa71af6[_0x75eb2b('0x11fc')][_0x75eb2b('0x15e2')]||_0xa71af6['message']||_0xa71af6:_0xa71af6['message']||_0xa71af6});}));}const _0xfcf278=_0x2e0c6c;_0x4982af['$inject']=[_0x34e79e('0x1a5c')],_0x3b9324[_0x34e79e('0x2d9')]=[_0x34e79e('0x135d'),_0x34e79e('0x1a5c')];function _0x3b9324(_0xb8bbf9,_0x1fd43a){return function(_0x3cb5b1){const _0x4d71f2=a0_0x14e7,_0x296a87=new Date(),_0x5bd269=new Date(_0x3cb5b1);if(_0x5bd269[_0x4d71f2('0x17f7')]()===_0x296a87[_0x4d71f2('0x17f7')]()&&_0x5bd269[_0x4d71f2('0xb9c')]()===_0x296a87[_0x4d71f2('0xb9c')]()&&_0x5bd269['getFullYear']()===_0x296a87['getFullYear']())return _0xb8bbf9(_0x4d71f2('0x1012'))(_0x5bd269['getTime'](),_0x4d71f2('0x1a0a'));if(_0x5bd269[_0x4d71f2('0x17f7')]()===_0x296a87['getDate']()-0x1&&_0x5bd269['getMonth']()===_0x296a87[_0x4d71f2('0xb9c')]()&&_0x5bd269[_0x4d71f2('0xf52')]()===_0x296a87['getFullYear']())return _0x1fd43a[_0x4d71f2('0x1b11')]('DASHBOARDS.YESTERDAY')+'\x20'+_0xb8bbf9(_0x4d71f2('0x1012'))(_0x5bd269[_0x4d71f2('0x767')](),_0x4d71f2('0x1a0a'));return _0xb8bbf9(_0x4d71f2('0x1012'))(_0x5bd269['getTime'](),_0x4d71f2('0x15e5'));};}function _0x90bd99(){return function(_0x31122d,_0x5ae835,_0x30b972){const _0x1280f6={};let _0x131b8d=0x0,_0x270872;for(_0x270872 in _0x31122d){_0x131b8d>=_0x30b972&&(_0x1280f6[_0x270872]=_0x31122d[_0x270872]);if(++_0x131b8d===_0x30b972+_0x5ae835)break;}return _0x1280f6;};}function _0x4ea3d2(){const _0x583934=_0x34e79e,_0x4f4d0d=[{'value':_0x583934('0x2455')},{'value':'feb'},{'value':_0x583934('0x3ed')},{'value':_0x583934('0x261a')},{'value':'may'},{'value':_0x583934('0x149b')},{'value':_0x583934('0x10b6')},{'value':_0x583934('0x27a6')},{'value':'sep'},{'value':'oct'},{'value':_0x583934('0x2506')},{'value':_0x583934('0x1620')}],_0x5476ca=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x35c255=[{'value':_0x583934('0x2712')},{'value':_0x583934('0xa8f')},{'value':_0x583934('0x661')},{'value':_0x583934('0x1ed3')},{'value':_0x583934('0x4c6')},{'value':_0x583934('0x1192')},{'value':_0x583934('0x14a8')}],_0x33f50d=[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 _0x4f4d0d;},'getMonthNumber':function(){return _0x5476ca;},'getDaysOfWeek':function(){return _0x35c255;},'getDaysOfMonth':function(){return _0x33f50d;}};}function _0x4982af(_0x2c37c2){const _0xac3699=_0x34e79e;return{'Today':_0x2c37c2['instant']('DASHBOARDS.TODAY'),'Yesterday':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x7ce')),'This\x20Week':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.THIS_WEEK'),'Last\x20Week':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x862')),'This\x20Month':_0x2c37c2['instant'](_0xac3699('0x2165')),'Last\x20Month':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x103')),'This\x20Year':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.THIS_YEAR'),'Last\x20Year':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x297')),'January':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0xf14')),'February':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x1228')),'March':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0xb48')),'April':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x10de')),'May':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.MAY'),'June':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.JUNE'),'July':_0x2c37c2['instant'](_0xac3699('0x2220')),'August':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.AUGUST'),'September':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x2096')),'October':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x1503')),'November':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x11db')),'December':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.DECEMBER'),'Mon':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0x1e06')),'Tue':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0xd46')),'Wed':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.WED'),'Thu':_0x2c37c2['instant'](_0xac3699('0x20f7')),'Fri':_0x2c37c2[_0xac3699('0x1b11')](_0xac3699('0xd9c')),'Sat':_0x2c37c2['instant'](_0xac3699('0xbc4')),'Sun':_0x2c37c2[_0xac3699('0x1b11')]('DASHBOARDS.SUN')};}function _0x570451(){return{'enqueue':function(_0x41e179){const _0x1ff18f=a0_0x14e7;this[_0x1ff18f('0x14c2')]=this['tail']?this[_0x1ff18f('0x14c2')][_0x1ff18f('0x1ed8')](_0x41e179):_0x41e179();}};}const _0x118165=_0x18dd13['p']+_0x34e79e('0x2094'),_0x133316=_0x18dd13['p']+_0x34e79e('0x50c'),_0x4d6d9b=_0x18dd13['p']+_0x34e79e('0x1291'),_0x41e868=_0x18dd13['p']+_0x34e79e('0x1a8b'),_0x8906b7=_0x18dd13['p']+'src/js/modules/header/layouts/vertical-navigation/header.html/header.html',_0xc001e6=_0x18dd13['p']+_0x34e79e('0x950'),_0x58f729=_0x18dd13['p']+_0x34e79e('0x18ca');_0x9c6e9[_0x34e79e('0x2d9')]=[_0x34e79e('0xf2d'),_0x34e79e('0x206'),_0x34e79e('0x18f8')];function _0x9c6e9(_0x412253,_0x4dd6e7,_0x3e2874){const _0x5e58bf=_0x34e79e;_0x3e2874[_0x5e58bf('0x52f')](!![]),_0x4dd6e7['otherwise'](_0x5e58bf('0x2449'));let _0x1a05ea;angular['injector']([_0x5e58bf('0x2805')])[_0x5e58bf('0x1b6a')]([_0x5e58bf('0x1bfe'),function(_0x4988c4){_0x1a05ea=_0x4988c4;}]);const _0x12d906=_0x1a05ea[_0x5e58bf('0x1335')](_0x5e58bf('0x1b4c'))||'verticalNavigation',_0x381e4b={'verticalNavigation':{'main':_0x494ab9,'toolbar':_0x118165,'navigation':_0x4d6d9b,'header':_0x8906b7,'footer':_0xc001e6},'verticalNavigationFullwidthToolbar':{'main':_0x4f402c,'toolbar':'','navigation':_0x4d6d9b},'verticalNavigationFullwidthToolbar2':{'main':_0x50d625,'toolbar':'','navigation':_0x41e868},'horizontalNavigation':{'main':_0x1a3716,'toolbar':'','navigation':_0x133316},'contentOnly':{'main':_0x3182a9,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x1a34e1,'toolbar':'','navigation':''}};_0x412253['state'](_0x5e58bf('0x8a5'),{'abstract':!![],'views':{'main@':{'templateUrl':_0x381e4b[_0x12d906][_0x5e58bf('0x9cc')],'controller':_0x5e58bf('0xf92')},'toolbar@app':{'templateUrl':_0x381e4b[_0x12d906][_0x5e58bf('0x24a0')],'controller':_0x5e58bf('0x311')},'navigation@app':{'templateUrl':_0x381e4b[_0x12d906]['navigation'],'controller':_0x5e58bf('0x2190')},'quickPanel@app':{'templateUrl':_0x58f729,'controller':_0x5e58bf('0x2794')},'header@app':{'templateUrl':_0x381e4b[_0x12d906][_0x5e58bf('0x8b1')],'controller':_0x5e58bf('0x1560')},'footer@app':{'templateUrl':_0x381e4b[_0x12d906][_0x5e58bf('0xffa')],'controller':_0x5e58bf('0x242e')}},'resolve':{'license':[_0x5e58bf('0x1318'),function(_0x15b009){const _0xdf1aa3=_0x5e58bf;return _0x15b009[_0xdf1aa3('0x2322')](_0xdf1aa3('0x2106'));}],'setting':[_0x5e58bf('0x1318'),function(_0x2ec0d7){const _0x1ac5d2=_0x5e58bf;return _0x2ec0d7[_0x1ac5d2('0x2322')](_0x1ac5d2('0x2561'),{'id':0x1});}]}});}const _0x2c8bb4=_0x9c6e9;_0x426f69[_0x34e79e('0x2d9')]=[_0x34e79e('0x17ea'),_0x34e79e('0x9fb')];function _0x426f69(_0x2e3872,_0x298dd9){const _0x208297=_0x34e79e;_0x2e3872[_0x208297('0x41d')]({},_0x298dd9[_0x208297('0x8cc')]),_0x2e3872['onFinish']({},_0x298dd9[_0x208297('0x3fa')]);}const _0x4f74d8=_0x426f69;var _0x3e05c1=_0x18dd13(0x1a99);_0x454533[_0x34e79e('0x2d9')]=[_0x34e79e('0x1ce0'),'Auth'];function _0x454533(_0x55d27f,_0x4405cb){let _0x2532a8;function _0x18d5e4(){const _0x3c1ffd=a0_0x14e7,_0x1c09fd=!![]?window['io']:0x0,_0x7e1e03={'query':_0x3c1ffd('0x236a')+_0x4405cb[_0x3c1ffd('0x24cc')]()['id'],'transports':[_0x3c1ffd('0x2312'),_0x3c1ffd('0x1595')]};_0x2532a8=!![]?_0x1c09fd(_0x7e1e03):0x0;}return{'connect':_0x18d5e4,'on':function(_0x1e84ae,_0x418fe2){const _0x1f1fbf=a0_0x14e7;_0x418fe2=_0x418fe2||angular[_0x1f1fbf('0x18dd')],!_0x2532a8&&_0x18d5e4(),_0x2532a8['on'](_0x1e84ae,function(){const _0x44e4b7=_0x1f1fbf,_0x1a5989=arguments;_0x55d27f[_0x44e4b7('0x439')](function(){_0x418fe2['apply'](_0x2532a8,_0x1a5989);});});},'onWithoutApply':function(_0x490ba8,_0xa17c0a){_0xa17c0a=_0xa17c0a||angular['noop'],!_0x2532a8&&_0x18d5e4(),_0x2532a8['on'](_0x490ba8,function(){const _0x5806ad=a0_0x14e7;_0xa17c0a[_0x5806ad('0xbfc')](_0x2532a8,arguments);});},'emit':function(_0x45b404,_0x830806,_0x409e23){const _0x381bbe=a0_0x14e7;_0x409e23=_0x409e23||angular['noop'],!_0x2532a8&&_0x18d5e4(),_0x2532a8[_0x381bbe('0xa55')](_0x45b404,_0x830806,function(){const _0x40ea52=_0x381bbe,_0x48295c=arguments;_0x55d27f[_0x40ea52('0x439')](function(){_0x409e23['apply'](_0x2532a8,_0x48295c);});});},'removeAllListeners':function(_0x221769){const _0x1b5a85=a0_0x14e7;!_0x2532a8&&_0x18d5e4(),_0x2532a8[_0x1b5a85('0x277f')](_0x221769);},'removeListener':function(_0x67f115,_0x57cb07){!_0x2532a8&&_0x18d5e4(),_0x2532a8['removeListener'](_0x67f115,_0x57cb07);},'disconnect':function(){const _0x3b8922=a0_0x14e7;!_0x2532a8&&_0x18d5e4(),_0x2532a8[_0x3b8922('0x16a4')]();}};}const _0x366259=_0x454533;_0x5b61b9['$inject']=[_0x34e79e('0x1701'),'$rootScope','$translate',_0x34e79e('0x337'),_0x34e79e('0x3de'),_0x34e79e('0x1b04'),'toasty',_0x34e79e('0x130d'),_0x34e79e('0x519'),_0x34e79e('0x1af0')];function _0x5b61b9(_0x7bf097,_0x48bd9c,_0x2931ac,_0x487c1a,_0x54ae3d,_0x4e9377,_0x139150,_0x59bd95,_0x5a3388,_0x584c04){const _0x573b06=_0x34e79e,_0x346089=this;_0x139150['clear']();function _0x16c97b(){const _0x1051ff=a0_0x14e7;return _0x4e9377[_0x1051ff('0x24cc')]()&&_0x4e9377[_0x1051ff('0x1516')](_0x1051ff('0x188b'));}_0x346089[_0x573b06('0x103f')]=_0x16c97b;function _0x56209e(_0x319e56,_0x5953bb){const _0x3f2814=_0x573b06;return{'id':_0x319e56,'title':_0x5953bb[_0x3f2814('0x1a8d')]||_0x3f2814('0x1822'),'state':_0x3f2814('0x494'),'stateParams':_0x5953bb,'weight':0x2,'hidden':function(){const _0x63305c=_0x3f2814;return _0x4e9377['hasRole'](_0x63305c('0x188b'))||!_0x4e9377[_0x63305c('0xdd')](_0x319e56)&&!_0x4e9377[_0x63305c('0x1516')](_0x63305c('0xe23'));}};}function _0x44f320(_0x4efd69,_0x449c82){const _0x8d869b=_0x573b06;return{'id':_0x4efd69,'title':_0x449c82[_0x8d869b('0x1a8d')]||'NONAME','state':_0x8d869b('0x227c'),'stateParams':_0x449c82,'weight':0x2,'hidden':function(){const _0x2f9541=_0x8d869b;return _0x4e9377[_0x2f9541('0x1516')](_0x2f9541('0x188b'))||!_0x4e9377[_0x2f9541('0xdd')](_0x4efd69)&&!_0x4e9377[_0x2f9541('0x1516')](_0x2f9541('0xe23'));}};}function _0xa9dcad(_0x52ce09,_0x47c8cd){const _0x613d97=_0x573b06,_0x5342bd={'user':_0x283545()[_0x613d97('0x41b')](_0x4e9377[_0x613d97('0x24cc')](),['id','name','fullname','email','role',_0x613d97('0x2838'),_0x613d97('0x180d')])};_0x47c8cd[_0x613d97('0x849')]=_0x18710c()['render'](_0x47c8cd[_0x613d97('0x849')],_0x5342bd),_0x54ae3d[_0x613d97('0x953')](_0x613d97('0x111c')+_0x52ce09,{'id':_0x52ce09,'title':_0x47c8cd[_0x613d97('0x1a8d')],'translate':_0x47c8cd[_0x613d97('0x1a8d')],'state':'plugin_'+_0x47c8cd['id'],'stateParams':_0x47c8cd,'view':_0x613d97('0x1c5'),'icon':_0x47c8cd['icon'],'weight':0xc,'hidden':function(){return!_0x4e9377['hasPermission'](_0x52ce09);}});}_0x487c1a['saveItem'](_0x573b06('0x105'),{'title':'APPS','group':!![],'weight':0x1,'hidden':function(){const _0x35e779=_0x573b06;return _0x4e9377[_0x35e779('0x1516')]('agent');}}),_0x5a3388[_0x573b06('0x1a7c')][_0x573b06('0x1335')]()[_0x573b06('0x1714')][_0x573b06('0x2788')](function(_0x323c7d){const _0x43f713=_0x573b06;_0x346089['version']=_0x323c7d&&_0x323c7d[_0x43f713('0x1c7f')]?_0x323c7d['current']:_0x43f713('0x1883');})[_0x573b06('0x1cb5')](function(){const _0x4ced42=_0x573b06;_0x346089['version']=_0x4ced42('0x1883');})[_0x573b06('0x1ed8')](function(){const _0x5d8427=_0x573b06;_0x487c1a[_0x5d8427('0x953')](_0x5d8427('0x1a7c'),{'title':_0x5d8427('0x2330')+_0x346089[_0x5d8427('0x1a7c')],'group':!![],'weight':0x2,'hidden':function(){const _0x4407af=_0x5d8427;return _0x4e9377['hasRole'](_0x4407af('0x188b'));}});});function _0xe503d6(_0x30a4fa){const _0x115929=_0x573b06;return _0x283545()[_0x115929('0x155d')](_0x30a4fa[_0x115929('0x17e1')],function(_0x3b5032){return _0x3b5032['id'];});}_0x4e9377[_0x573b06('0x1782')]()&&(_0x59bd95[_0x573b06('0x1f9')]&&_0x139150['warning']({'msg':_0x2931ac[_0x573b06('0x1b11')](_0x573b06('0x198a')),'showClose':!![],'timeout':![]}),_0x5a3388[_0x573b06('0x19f4')][_0x573b06('0x1335')]()[_0x573b06('0x1714')]['then'](function(_0x23a463){const _0x24aea3=_0x573b06;let _0xafa2a8=0x0;for(let _0x2d76d1=0x0;_0x2d76d1<_0x23a463[_0x24aea3('0x25df')]['length'];_0x2d76d1+=0x1){_0xafa2a8=0x1869f+_0x23a463['rows'][_0x2d76d1]['id'],_0x487c1a['saveItem'](_0x24aea3('0x1d2c')+_0xafa2a8,_0x56209e(_0xafa2a8,_0x23a463[_0x24aea3('0x25df')][_0x2d76d1]));}}),_0x5a3388['plugin']['get']({'active':!![]})[_0x573b06('0x1714')]['then'](function(_0x1794f0){const _0x44b474=_0x573b06;let _0x5e3b4d=0x0;if(_0x1794f0[_0x44b474('0x338')]){const _0x2cbd50=_0x283545()[_0x44b474('0x916')](_0x1794f0[_0x44b474('0x25df')],function(_0x3bab24){const _0x1a14fe=_0x44b474;return _0x3bab24[_0x1a14fe('0x7a8')]!='never'&&_0x3bab24[_0x1a14fe('0x7a8')]!='agentOnly';});if(_0x2cbd50[_0x44b474('0x2566')]>0x0){_0x487c1a['saveItem']('apps.plugins',{'id':0x76c,'title':_0x44b474('0x61c'),'translate':_0x44b474('0x1f99'),'icon':'icon-apps','permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x398f5e=_0x44b474;return _0x4e9377[_0x398f5e('0x1516')](_0x398f5e('0x188b'))||!_0x4e9377[_0x398f5e('0x60b')](_0xe503d6(this))&&!_0x4e9377['hasRole']('admin');}});for(let _0x4827a5=0x0;_0x4827a5<_0x2cbd50[_0x44b474('0x2566')];_0x4827a5+=0x1){_0x5e3b4d=0x15b38+_0x2cbd50[_0x4827a5]['id'],_0x487c1a[_0x44b474('0x953')](_0x44b474('0x1086')+_0x5e3b4d,_0x44f320(_0x5e3b4d,_0x2cbd50[_0x4827a5]));}_0x487c1a[_0x44b474('0x2119')]();}const _0x1324a7=_0x283545()[_0x44b474('0x916')](_0x1794f0[_0x44b474('0x25df')],function(_0x3cbbdf){const _0x48b4b7=_0x44b474;return _0x3cbbdf[_0x48b4b7('0x7a8')]!='never'&&_0x3cbbdf[_0x48b4b7('0x7a8')]!='adminOnly';});if(_0x1324a7[_0x44b474('0x2566')]>0x0)for(let _0x1555a0=0x0;_0x1555a0<_0x1324a7[_0x44b474('0x2566')];_0x1555a0+=0x1){_0x5e3b4d=0x15b38+_0x1324a7[_0x1555a0]['id'],_0xa9dcad(_0x5e3b4d,_0x1324a7[_0x1555a0]);}}})),_0x59bd95[_0x573b06('0x1d56')]&&!_0x584c04[_0x573b06('0x11ac')]&&_0x584c04['pageTitle']&&angular['element'](_0x573b06('0x257'))['html'](_0x584c04['pageTitle']),_0x487c1a['saveItem'](_0x573b06('0x25'),{'id':0x64,'title':_0x573b06('0xf1a'),'translate':_0x573b06('0x112'),'icon':'icon-tile-four','weight':0x2,'hidden':function(){const _0x4cb0ec=_0x573b06;return _0x4e9377[_0x4cb0ec('0x1516')]('agent')||!_0x4e9377[_0x4cb0ec('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x4cb0ec('0x1516')](_0x4cb0ec('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xc42'),{'id':0x65,'title':_0x573b06('0x6b0'),'route':'','translate':_0x573b06('0x1097'),'state':_0x573b06('0x15b8'),'weight':0x1,'hidden':function(){const _0x3624c5=_0x573b06;return _0x4e9377['hasRole'](_0x3624c5('0x188b'))||!_0x4e9377[_0x3624c5('0xdd')](0x65)&&!_0x4e9377['hasRole'](_0x3624c5('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.staff',{'id':0xc8,'title':'Staff','translate':_0x573b06('0x1c1c'),'icon':_0x573b06('0x10e6'),'weight':0x3,'hidden':function(){const _0x2fcdfe=_0x573b06;return _0x4e9377['hasRole'](_0x2fcdfe('0x188b'))||!_0x4e9377[_0x2fcdfe('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x2fcdfe('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.staff.users',{'id':0xc9,'title':_0x573b06('0x23f4'),'route':_0x573b06('0x1e6a'),'translate':_0x573b06('0x238d'),'state':_0x573b06('0x5e5'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x3ed631=_0x573b06;return _0x4e9377['hasRole'](_0x3ed631('0x188b'))||_0x4e9377['hasRole']('user')||!_0x4e9377['hasPermission'](0xc9)&&!_0x4e9377[_0x3ed631('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x21bd'),{'id':0xca,'title':_0x573b06('0x1f72'),'route':_0x573b06('0x1e6a'),'translate':_0x573b06('0x1a4f'),'state':_0x573b06('0x1e9c'),'weight':0x1,'hidden':function(){const _0x10c2d7=_0x573b06;return _0x4e9377['hasRole'](_0x10c2d7('0x188b'))||!_0x4e9377[_0x10c2d7('0xdd')](0xca)&&!_0x4e9377['hasRole'](_0x10c2d7('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xdf0'),{'id':0xcb,'title':'Telephones','route':_0x573b06('0x1e6a'),'translate':'STAFF.TELEPHONES','state':_0x573b06('0x10fc'),'weight':0x1,'hidden':function(){const _0x5e83dd=_0x573b06;return _0x4e9377[_0x5e83dd('0x1516')]('agent')||!_0x4e9377[_0x5e83dd('0xdd')](0xcb)&&!_0x4e9377['hasRole'](_0x5e83dd('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.staff.teams',{'id':0xcc,'title':_0x573b06('0x23e9'),'route':_0x573b06('0x421'),'translate':_0x573b06('0x1d3f'),'state':_0x573b06('0xaa9'),'weight':0x1,'hidden':function(){const _0x2c4f56=_0x573b06;return _0x4e9377[_0x2c4f56('0x1516')](_0x2c4f56('0x188b'))||!_0x4e9377[_0x2c4f56('0xdd')](0xcc)&&!_0x4e9377['hasRole'](_0x2c4f56('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.staff.userProfiles',{'id':0xcd,'title':'UserProfiles','route':_0x573b06('0x63c'),'translate':_0x573b06('0x8ab'),'state':_0x573b06('0x18ae'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x30216c=_0x573b06;return _0x4e9377[_0x30216c('0x1516')](_0x30216c('0x188b'))||!_0x4e9377['hasPermission'](0xcd)&&!_0x4e9377[_0x30216c('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x265'),{'id':0x12c,'title':'ContactManager','translate':_0x573b06('0x160d'),'icon':'icon-account-circle','weight':0x4,'license':'cm','hidden':function(){const _0x1b9bb7=_0x573b06;return!_0x59bd95['cm']||_0x4e9377['hasRole'](_0x1b9bb7('0x188b'))||!_0x4e9377[_0x1b9bb7('0x60b')](_0xe503d6(this))&&!_0x4e9377['hasRole'](_0x1b9bb7('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x8ee'),{'id':0x12d,'title':_0x573b06('0x12f2'),'route':_0x573b06('0x1ba4'),'translate':_0x573b06('0xa0'),'state':_0x573b06('0x1c06'),'weight':0x2,'hidden':function(){const _0x50e003=_0x573b06;return _0x4e9377['hasRole'](_0x50e003('0x188b'))||!_0x4e9377[_0x50e003('0xdd')](0x12d)&&!_0x4e9377[_0x50e003('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.contactmanager.companies',{'id':0x12e,'title':_0x573b06('0xbc9'),'route':_0x573b06('0x27f6'),'translate':_0x573b06('0xdcd'),'state':_0x573b06('0x1b67'),'weight':0x3,'hidden':function(){const _0x52ed6f=_0x573b06;return _0x4e9377['hasRole'](_0x52ed6f('0x188b'))||!_0x4e9377[_0x52ed6f('0xdd')](0x12e)&&!_0x4e9377[_0x52ed6f('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x22d0'),{'id':0x130,'title':_0x573b06('0x22c8'),'route':'cmCustomField','translate':_0x573b06('0x1445'),'state':_0x573b06('0x59e'),'weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x7b103b=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x7b103b('0xdd')](0x130)&&!_0x4e9377[_0x7b103b('0x1516')](_0x7b103b('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x16d2'),{'id':0x12f,'title':_0x573b06('0x52d'),'route':'','translate':'CONTACTMANAGER.CONTACTS','state':_0x573b06('0x21be'),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x41cabb=_0x573b06;return _0x4e9377[_0x41cabb('0x1516')]('agent')||!_0x4e9377[_0x41cabb('0xdd')](0x12f)&&!_0x4e9377[_0x41cabb('0x1516')](_0x41cabb('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x74e'),{'id':0x190,'title':'Voice','translate':'VOICE.VOICE','icon':'icon-phone','weight':0x5,'license':_0x573b06('0x1f60'),'hidden':function(){const _0x2c6900=_0x573b06;return!_0x59bd95['voice']||_0x4e9377[_0x2c6900('0x1516')](_0x2c6900('0x188b'))||!_0x4e9377[_0x2c6900('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x2c6900('0x1516')](_0x2c6900('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x99e'),{'id':0x191,'title':_0x573b06('0x182e'),'route':_0x573b06('0x2043'),'translate':_0x573b06('0x7e9'),'state':'app.voice.voiceQueues','weight':0x1,'channel':_0x573b06('0x1f60'),'hidden':function(){const _0x56aa0e=_0x573b06;return _0x4e9377[_0x56aa0e('0x1516')]('agent')||!_0x4e9377[_0x56aa0e('0xdd')](0x191)&&!_0x4e9377[_0x56aa0e('0x1516')](_0x56aa0e('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x3b'),{'id':0x192,'title':'InboundRoutes','route':_0x573b06('0x2636'),'translate':_0x573b06('0x108'),'state':_0x573b06('0x1b98'),'weight':0x1,'hidden':function(){const _0x3b949a=_0x573b06;return _0x4e9377['hasRole'](_0x3b949a('0x188b'))||!_0x4e9377[_0x3b949a('0xdd')](0x192)&&!_0x4e9377[_0x3b949a('0x1516')](_0x3b949a('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x627'),{'id':0x193,'title':_0x573b06('0x1fa1'),'route':_0x573b06('0x2636'),'translate':_0x573b06('0x21f0'),'state':_0x573b06('0xe27'),'weight':0x1,'hidden':function(){const _0x5f1153=_0x573b06;return _0x4e9377[_0x5f1153('0x1516')](_0x5f1153('0x188b'))||!_0x4e9377['hasPermission'](0x193)&&!_0x4e9377[_0x5f1153('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xf1f'),{'id':0x194,'title':_0x573b06('0x6c0'),'route':_0x573b06('0x2636'),'translate':_0x573b06('0x70c'),'state':_0x573b06('0xe68'),'weight':0x1,'hidden':function(){const _0x537f49=_0x573b06;return _0x4e9377[_0x537f49('0x1516')](_0x537f49('0x188b'))||!_0x4e9377[_0x537f49('0xdd')](0x194)&&!_0x4e9377['hasRole'](_0x537f49('0xe23'));}}),_0x487c1a['saveItem']('apps.voice.contexts',{'id':0x195,'title':_0x573b06('0x1b38'),'route':_0x573b06('0x15cc'),'translate':_0x573b06('0xeac'),'state':_0x573b06('0x218d'),'weight':0x1,'hidden':function(){const _0x3dcff6=_0x573b06;return _0x4e9377[_0x3dcff6('0x1516')]('agent')||!_0x4e9377['hasPermission'](0x195)&&!_0x4e9377[_0x3dcff6('0x1516')](_0x3dcff6('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x22a'),{'id':0x196,'title':'Voicemails','route':'voiceMail','translate':_0x573b06('0x18a0'),'state':_0x573b06('0x4f5'),'weight':0x1,'hidden':function(){const _0x3a2bc6=_0x573b06;return _0x4e9377[_0x3a2bc6('0x1516')](_0x3a2bc6('0x188b'))||!_0x4e9377[_0x3a2bc6('0xdd')](0x196)&&!_0x4e9377[_0x3a2bc6('0x1516')](_0x3a2bc6('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x22cf'),{'id':0x197,'title':'MusicOnHolds','route':_0x573b06('0xbb3'),'translate':_0x573b06('0x2284'),'state':_0x573b06('0x16f1'),'weight':0x1,'hidden':function(){const _0x2eca2d=_0x573b06;return _0x4e9377[_0x2eca2d('0x1516')]('agent')||!_0x4e9377[_0x2eca2d('0xdd')](0x197)&&!_0x4e9377[_0x2eca2d('0x1516')](_0x2eca2d('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x10fd'),{'id':0x198,'title':'VoiceRecordings','route':_0x573b06('0x14ff'),'translate':_0x573b06('0x2710'),'state':'app.voice.voiceRecordings','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1807aa=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x1807aa('0xdd')](0x198)&&!_0x4e9377['hasRole'](_0x1807aa('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x22c6'),{'id':0x199,'title':_0x573b06('0x732'),'route':_0x573b06('0x1028'),'translate':_0x573b06('0x1ff8'),'state':_0x573b06('0x24df'),'weight':0x1,'hidden':function(){const _0x2b0b5a=_0x573b06;return _0x4e9377[_0x2b0b5a('0x1516')]('agent')||!_0x4e9377[_0x2b0b5a('0xdd')](0x199)&&!_0x4e9377['hasRole'](_0x2b0b5a('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x208b'),{'id':0x19a,'title':_0x573b06('0x22d4'),'route':'voicePrefix','translate':_0x573b06('0x1b1b'),'state':_0x573b06('0x49b'),'weight':0x1,'hidden':function(){const _0x11a087=_0x573b06;return _0x4e9377[_0x11a087('0x1516')](_0x11a087('0x188b'))||!_0x4e9377[_0x11a087('0xdd')](0x19a)&&!_0x4e9377[_0x11a087('0x1516')](_0x11a087('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x216e'),{'id':0x19b,'title':'Realtime','route':'','translate':_0x573b06('0xbd1'),'state':_0x573b06('0x14cb'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x123ebe=_0x573b06;return _0x4e9377[_0x123ebe('0x1516')](_0x123ebe('0x188b'))||!_0x4e9377[_0x123ebe('0xdd')](0x19b)&&!_0x4e9377[_0x123ebe('0x1516')](_0x123ebe('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1f04'),{'id':0x1f4,'title':_0x573b06('0x25db'),'translate':_0x573b06('0xfa8'),'icon':_0x573b06('0x1bc4'),'weight':0x6,'license':'chat','hidden':function(){const _0x415a0d=_0x573b06;return!_0x59bd95[_0x415a0d('0x231')]||_0x4e9377[_0x415a0d('0x1516')](_0x415a0d('0x188b'))||!_0x4e9377[_0x415a0d('0x60b')](_0xe503d6(this))&&!_0x4e9377['hasRole'](_0x415a0d('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x264b'),{'id':0x1f5,'title':'ChatQueues','route':'chatQueue','translate':_0x573b06('0xd74'),'state':_0x573b06('0x273c'),'weight':0x1,'channel':_0x573b06('0x231'),'hidden':function(){const _0x544f9c=_0x573b06;return _0x4e9377[_0x544f9c('0x1516')]('agent')||!_0x4e9377['hasPermission'](0x1f5)&&!_0x4e9377['hasRole'](_0x544f9c('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x83f'),{'id':0x1f6,'title':_0x573b06('0x453'),'route':'chatWebsite','translate':_0x573b06('0x279f'),'state':_0x573b06('0x167'),'weight':0x1,'channel':_0x573b06('0x231'),'hidden':function(){const _0xad3a68=_0x573b06;return _0x4e9377[_0xad3a68('0x1516')](_0xad3a68('0x188b'))||!_0x4e9377[_0xad3a68('0xdd')](0x1f6)&&!_0x4e9377['hasRole'](_0xad3a68('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x129a'),{'id':0x1fe,'title':_0x573b06('0x1b91'),'route':'','translate':_0x573b06('0x3d4'),'state':_0x573b06('0x1260'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x22728d=_0x573b06;return _0x4e9377[_0x22728d('0x1516')]('agent')||!_0x4e9377[_0x22728d('0xdd')](0x1fe)&&!_0x4e9377[_0x22728d('0x1516')](_0x22728d('0xe23'));}}),_0x487c1a['saveItem']('apps.mail',{'id':0x258,'title':_0x573b06('0x19c3'),'translate':_0x573b06('0x180e'),'icon':_0x573b06('0x2772'),'weight':0x7,'license':_0x573b06('0x2795'),'hidden':function(){const _0x1b47fa=_0x573b06;return!_0x59bd95[_0x1b47fa('0x2795')]||_0x4e9377[_0x1b47fa('0x1516')]('agent')||!_0x4e9377['hasChildrenPermissions'](_0xe503d6(this))&&!_0x4e9377[_0x1b47fa('0x1516')](_0x1b47fa('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.mail.mailQueues',{'id':0x259,'title':_0x573b06('0x26fc'),'route':_0x573b06('0x139b'),'translate':'MAIL.MAILQUEUES','state':'app.mail.mailQueues','weight':0x1,'channel':_0x573b06('0x2795'),'hidden':function(){const _0x1a8fb9=_0x573b06;return _0x4e9377[_0x1a8fb9('0x1516')](_0x1a8fb9('0x188b'))||!_0x4e9377[_0x1a8fb9('0xdd')](0x259)&&!_0x4e9377[_0x1a8fb9('0x1516')]('admin');}}),_0x487c1a['saveItem'](_0x573b06('0x14df'),{'id':0x25a,'title':_0x573b06('0x1efc'),'route':_0x573b06('0x2594'),'translate':_0x573b06('0xe24'),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x573b06('0x2795'),'hidden':function(){const _0x5aaa7f=_0x573b06;return _0x4e9377['hasRole'](_0x5aaa7f('0x188b'))||!_0x4e9377[_0x5aaa7f('0xdd')](0x25a)&&!_0x4e9377[_0x5aaa7f('0x1516')](_0x5aaa7f('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x484'),{'id':0x25b,'title':_0x573b06('0x333'),'route':'mailSubstatus','translate':'MAIL.MAILSUBSTATUSES','state':_0x573b06('0x126'),'weight':0x1,'channel':'mail','permissions':{'association':![]},'hidden':function(){const _0x140927=_0x573b06;return _0x4e9377[_0x140927('0x1516')](_0x140927('0x188b'))||!_0x4e9377['hasPermission'](0x25b)&&!_0x4e9377['hasRole'](_0x140927('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.mail.realtime',{'id':0x262,'title':'Realtime','route':'','translate':_0x573b06('0x15db'),'state':_0x573b06('0xf4e'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x557d9b=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x557d9b('0xdd')](0x262)&&!_0x4e9377[_0x557d9b('0x1516')](_0x557d9b('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x4d3'),{'id':0x2bc,'title':_0x573b06('0x25a9'),'translate':'SMS.SMS','icon':_0x573b06('0x223f'),'weight':0x8,'license':_0x573b06('0x180b'),'hidden':function(){const _0x424fc6=_0x573b06;return!_0x59bd95[_0x424fc6('0x180b')]||_0x4e9377[_0x424fc6('0x1516')](_0x424fc6('0x188b'))||!_0x4e9377[_0x424fc6('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x424fc6('0x1516')](_0x424fc6('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1ee1'),{'id':0x2bd,'title':'SmsQueues','route':_0x573b06('0x23cf'),'translate':'SMS.SMSQUEUES','state':'app.sms.smsQueues','weight':0x1,'channel':_0x573b06('0x529'),'hidden':function(){const _0x1ec52e=_0x573b06;return _0x4e9377[_0x1ec52e('0x1516')](_0x1ec52e('0x188b'))||!_0x4e9377[_0x1ec52e('0xdd')](0x2bd)&&!_0x4e9377['hasRole'](_0x1ec52e('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.sms.smsAccounts',{'id':0x2be,'title':'SmsAccounts','route':_0x573b06('0x1cf0'),'translate':'SMS.SMSACCOUNTS','state':_0x573b06('0x1910'),'weight':0x1,'channel':_0x573b06('0x529'),'hidden':function(){const _0x30cef2=_0x573b06;return _0x4e9377[_0x30cef2('0x1516')](_0x30cef2('0x188b'))||!_0x4e9377['hasPermission'](0x2be)&&!_0x4e9377[_0x30cef2('0x1516')](_0x30cef2('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xe5a'),{'id':0x2c6,'title':_0x573b06('0x1b91'),'route':'','translate':_0x573b06('0x27da'),'state':_0x573b06('0x29a'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x4ec085=_0x573b06;return _0x4e9377[_0x4ec085('0x1516')](_0x4ec085('0x188b'))||!_0x4e9377[_0x4ec085('0xdd')](0x2c6)&&!_0x4e9377[_0x4ec085('0x1516')](_0x4ec085('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1cd2'),{'id':0x320,'title':_0x573b06('0xc3f'),'translate':_0x573b06('0x34a'),'icon':_0x573b06('0x2729'),'weight':0x9,'license':_0x573b06('0x18aa'),'hidden':function(){const _0x24425b=_0x573b06;return!_0x59bd95[_0x24425b('0x18aa')]||_0x4e9377[_0x24425b('0x1516')]('agent')||!_0x4e9377[_0x24425b('0x60b')](_0xe503d6(this))&&!_0x4e9377['hasRole'](_0x24425b('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x14b8'),{'id':0x321,'title':'OpenchannelQueues','route':_0x573b06('0xb26'),'translate':_0x573b06('0x60d'),'state':_0x573b06('0x1ac'),'weight':0x1,'channel':_0x573b06('0x1710'),'hidden':function(){const _0x548b30=_0x573b06;return _0x4e9377[_0x548b30('0x1516')](_0x548b30('0x188b'))||!_0x4e9377[_0x548b30('0xdd')](0x321)&&!_0x4e9377[_0x548b30('0x1516')](_0x548b30('0xe23'));}}),_0x487c1a['saveItem']('apps.openchannel.openchannelAccounts',{'id':0x322,'title':_0x573b06('0x1b13'),'route':_0x573b06('0xfba'),'translate':_0x573b06('0x1ecf'),'state':_0x573b06('0x843'),'weight':0x1,'channel':_0x573b06('0x1710'),'hidden':function(){const _0x17b3a8=_0x573b06;return _0x4e9377['hasRole'](_0x17b3a8('0x188b'))||!_0x4e9377['hasPermission'](0x322)&&!_0x4e9377[_0x17b3a8('0x1516')](_0x17b3a8('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x97f'),{'id':0x32a,'title':'Realtime','route':'','translate':_0x573b06('0x1b5a'),'state':'app.openchannel.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x281801=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377['hasPermission'](0x32a)&&!_0x4e9377['hasRole'](_0x281801('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.fax',{'id':0x384,'title':'Fax','translate':_0x573b06('0x2af'),'icon':_0x573b06('0xe77'),'weight':0xa,'license':_0x573b06('0x10cf'),'hidden':function(){const _0x1da9c4=_0x573b06;return!_0x59bd95[_0x1da9c4('0x10cf')]||_0x4e9377['hasRole']('agent')||!_0x4e9377[_0x1da9c4('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x1da9c4('0x1516')](_0x1da9c4('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1db9'),{'id':0x385,'title':_0x573b06('0x1d6d'),'route':'faxQueue','translate':_0x573b06('0x341'),'state':'app.fax.faxQueues','weight':0x1,'channel':_0x573b06('0x10cf'),'hidden':function(){const _0x55f9c1=_0x573b06;return _0x4e9377[_0x55f9c1('0x1516')](_0x55f9c1('0x188b'))||!_0x4e9377[_0x55f9c1('0xdd')](0x385)&&!_0x4e9377[_0x55f9c1('0x1516')](_0x55f9c1('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x1746'),{'id':0x386,'title':_0x573b06('0x1819'),'route':_0x573b06('0x1fb8'),'translate':_0x573b06('0xb1d'),'state':'app.fax.faxAccounts','weight':0x1,'channel':_0x573b06('0x10cf'),'hidden':function(){const _0x120b98=_0x573b06;return _0x4e9377[_0x120b98('0x1516')]('agent')||!_0x4e9377[_0x120b98('0xdd')](0x386)&&!_0x4e9377[_0x120b98('0x1516')](_0x120b98('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x468'),{'id':0x38e,'title':_0x573b06('0x1b91'),'route':'','translate':_0x573b06('0x247c'),'state':'app.fax.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x57966c=_0x573b06;return _0x4e9377[_0x57966c('0x1516')](_0x57966c('0x188b'))||!_0x4e9377[_0x57966c('0xdd')](0x38e)&&!_0x4e9377[_0x57966c('0x1516')]('admin');}}),_0x487c1a['saveItem']('apps.tools',{'id':0x3e8,'title':'Tools','translate':'TOOLS.TOOLS','icon':_0x573b06('0x27a9'),'weight':0xf,'hidden':function(){const _0x3a089f=_0x573b06;return _0x4e9377[_0x3a089f('0x1516')](_0x3a089f('0x188b'))||!_0x4e9377[_0x3a089f('0x60b')](_0xe503d6(this))&&!_0x4e9377['hasRole'](_0x3a089f('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x894'),{'id':0x3e9,'title':_0x573b06('0x252b'),'route':'cannedAnswer','translate':'TOOLS.CANNEDANSWERS','state':_0x573b06('0x1c74'),'weight':0x1,'hidden':function(){const _0x5dd3bd=_0x573b06;return _0x4e9377['hasRole'](_0x5dd3bd('0x188b'))||!_0x4e9377[_0x5dd3bd('0xdd')](0x3e9)&&!_0x4e9377[_0x5dd3bd('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.tools.customDashboards',{'id':0x3eb,'title':_0x573b06('0x780'),'route':_0x573b06('0x19f4'),'translate':_0x573b06('0x15c6'),'state':_0x573b06('0xf93'),'weight':0x3,'hidden':function(){const _0x83fe43=_0x573b06;return _0x4e9377[_0x83fe43('0x1516')]('agent')||!_0x4e9377[_0x83fe43('0xdd')](0x3eb)&&!_0x4e9377['hasRole'](_0x83fe43('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x685'),{'id':0x3ec,'title':_0x573b06('0x1fab'),'route':'interval','translate':_0x573b06('0x1522'),'state':_0x573b06('0x1da7'),'weight':0x4,'hidden':function(){const _0xd9a59d=_0x573b06;return _0x4e9377[_0xd9a59d('0x1516')]('agent')||!_0x4e9377[_0xd9a59d('0xdd')](0x3ec)&&!_0x4e9377[_0xd9a59d('0x1516')]('admin');}}),_0x487c1a['saveItem'](_0x573b06('0xe7f'),{'id':0x3ed,'title':_0x573b06('0x1ed6'),'route':'pause','translate':'TOOLS.PAUSES','state':_0x573b06('0x1810'),'weight':0x5,'hidden':function(){const _0x8125dd=_0x573b06;return _0x4e9377[_0x8125dd('0x1516')](_0x8125dd('0x188b'))||!_0x4e9377[_0x8125dd('0xdd')](0x3ed)&&!_0x4e9377[_0x8125dd('0x1516')](_0x8125dd('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x101c'),{'id':0x3ee,'title':_0x573b06('0x149'),'route':_0x573b06('0x802'),'translate':_0x573b06('0x8f9'),'state':'app.tools.schedules','weight':0x6,'hidden':function(){const _0x3d121f=_0x573b06;return _0x4e9377[_0x3d121f('0x1516')](_0x3d121f('0x188b'))||!_0x4e9377['hasPermission'](0x3ee)&&!_0x4e9377[_0x3d121f('0x1516')](_0x3d121f('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x349'),{'id':0x3ef,'title':_0x573b06('0x4c3'),'route':'sound','translate':_0x573b06('0x137d'),'state':_0x573b06('0x276e'),'weight':0x7,'hidden':function(){const _0x336cc5=_0x573b06;return _0x4e9377[_0x336cc5('0x1516')](_0x336cc5('0x188b'))||!_0x4e9377['hasPermission'](0x3ef)&&!_0x4e9377[_0x336cc5('0x1516')](_0x336cc5('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1360'),{'id':0x3f0,'title':'Tags','route':'tag','translate':_0x573b06('0x1f22'),'state':'app.tools.tags','weight':0x8,'hidden':function(){const _0x5ea9eb=_0x573b06;return _0x4e9377[_0x5ea9eb('0x1516')](_0x5ea9eb('0x188b'))||!_0x4e9377[_0x5ea9eb('0xdd')](0x3f0)&&!_0x4e9377[_0x5ea9eb('0x1516')](_0x5ea9eb('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0xfd9'),{'id':0x3f1,'title':_0x573b06('0x177c'),'route':'template','translate':_0x573b06('0x209e'),'state':_0x573b06('0x211a'),'weight':0x9,'hidden':function(){const _0x5b3e8a=_0x573b06;return _0x4e9377[_0x5b3e8a('0x1516')](_0x5b3e8a('0x188b'))||!_0x4e9377[_0x5b3e8a('0xdd')](0x3f1)&&!_0x4e9377[_0x5b3e8a('0x1516')](_0x5b3e8a('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x152d'),{'id':0x3f3,'title':_0x573b06('0xca4'),'route':_0x573b06('0x2549'),'translate':_0x573b06('0xe79'),'state':_0x573b06('0x2070'),'weight':0xb,'hidden':function(){const _0x19b77f=_0x573b06;return _0x4e9377[_0x19b77f('0x1516')](_0x19b77f('0x188b'))||!_0x4e9377[_0x19b77f('0xdd')](0x3f3)&&!_0x4e9377[_0x19b77f('0x1516')](_0x19b77f('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xc32'),{'id':0x3f4,'title':_0x573b06('0x276f'),'route':_0x573b06('0xa72'),'translate':_0x573b06('0xc9f'),'state':_0x573b06('0x13bf'),'weight':0xc,'hidden':function(){const _0x5775a3=_0x573b06;return _0x4e9377[_0x5775a3('0x1516')]('agent')||!_0x4e9377[_0x5775a3('0xdd')](0x3f4)&&!_0x4e9377[_0x5775a3('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.tools.dispositions',{'id':0x3ea,'title':'Dispositions','route':_0x573b06('0x1db2'),'translate':'TOOLS.DISPOSITIONS','state':_0x573b06('0xb32'),'weight':0x2,'hidden':function(){const _0x268dfb=_0x573b06;return _0x4e9377[_0x268dfb('0x1516')](_0x268dfb('0x188b'))||!_0x4e9377['hasPermission'](0x3ea)&&!_0x4e9377[_0x268dfb('0x1516')](_0x268dfb('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x41f'),{'id':0x3f2,'title':_0x573b06('0x12e1'),'route':'','translate':_0x573b06('0x223e'),'state':_0x573b06('0xf01'),'weight':0xa,'hidden':function(){const _0xfd0c46=_0x573b06;return _0x4e9377[_0xfd0c46('0x1516')](_0xfd0c46('0x188b'))||!_0x4e9377[_0xfd0c46('0xdd')](0x3f2)&&!_0x4e9377['hasRole'](_0xfd0c46('0xe23'));}}),_0x487c1a['saveItem']('apps.callysquare',{'id':0x44c,'title':'CallySquare','translate':'CALLYSQUARE.CALLYSQUARE','icon':_0x573b06('0x26ab'),'weight':0xd,'license':_0x573b06('0x1f60'),'hidden':function(){const _0x10e877=_0x573b06;return!_0x59bd95[_0x10e877('0x1f60')]||_0x4e9377[_0x10e877('0x1516')](_0x10e877('0x188b'))||!_0x4e9377[_0x10e877('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x10e877('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x25ce'),{'id':0x44d,'title':'ODBC','route':_0x573b06('0x487'),'translate':_0x573b06('0x1a2d'),'state':'app.callysquare.odbcs','weight':0x2,'hidden':function(){const _0x536edc=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x536edc('0xdd')](0x44d)&&!_0x4e9377['hasRole'](_0x536edc('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2219'),{'id':0x44e,'title':'SquareRecordings','route':_0x573b06('0x15c1'),'translate':_0x573b06('0xe49'),'state':_0x573b06('0x10b5'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5513fa=_0x573b06;return _0x4e9377[_0x5513fa('0x1516')](_0x5513fa('0x188b'))||!_0x4e9377[_0x5513fa('0xdd')](0x44e)&&!_0x4e9377['hasRole'](_0x5513fa('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x23e5'),{'id':0x44f,'title':'Projects','route':_0x573b06('0x163a'),'translate':'CALLYSQUARE.PROJECTS','state':_0x573b06('0x268b'),'weight':0x1,'hidden':function(){const _0x5cdba8=_0x573b06;return _0x4e9377[_0x5cdba8('0x1516')]('agent')||!_0x4e9377[_0x5cdba8('0xdd')](0x44f)&&!_0x4e9377[_0x5cdba8('0x1516')](_0x5cdba8('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x142f'),{'id':0x4b0,'title':_0x573b06('0x3e9'),'translate':_0x573b06('0xc20'),'icon':'icon-chart-line','weight':0x10,'hidden':function(){const _0x1be371=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x1be371('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x1be371('0x1516')](_0x1be371('0xe23'));}}),_0x487c1a['saveItem']('apps.analytics.metrics',{'id':0x4b1,'title':_0x573b06('0x162f'),'route':'analyticMetric','translate':'ANALYTICS.METRICS','state':'app.analytics.metrics','weight':0x3,'hidden':function(){const _0x1f8fdc=_0x573b06;return _0x4e9377[_0x1f8fdc('0x1516')](_0x1f8fdc('0x188b'))||!_0x4e9377[_0x1f8fdc('0xdd')](0x4b1)&&!_0x4e9377[_0x1f8fdc('0x1516')](_0x1f8fdc('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1163'),{'id':0x4b2,'title':_0x573b06('0x2ab'),'route':'analyticExtractedReport','translate':_0x573b06('0xb30'),'state':_0x573b06('0x22e5'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xb3e7f1=_0x573b06;return _0x4e9377['hasRole'](_0xb3e7f1('0x188b'))||!_0x4e9377['hasPermission'](0x4b2)&&!_0x4e9377[_0xb3e7f1('0x1516')](_0xb3e7f1('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x17a'),{'id':0x4b3,'title':'Reports','route':'','translate':_0x573b06('0x263a'),'state':'app.analytics.reports','weight':0x1,'hidden':function(){const _0x541c3b=_0x573b06;return _0x4e9377[_0x541c3b('0x1516')](_0x541c3b('0x188b'))||!_0x4e9377[_0x541c3b('0xdd')](0x4b3)&&!_0x4e9377[_0x541c3b('0x1516')](_0x541c3b('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.integrations',{'id':0x514,'title':'Integrations','translate':_0x573b06('0x1f68'),'icon':_0x573b06('0x997'),'weight':0x11,'hidden':function(){const _0x5b5467=_0x573b06;return _0x4e9377[_0x5b5467('0x1516')](_0x5b5467('0x188b'))||!_0x4e9377[_0x5b5467('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x5b5467('0x1516')](_0x5b5467('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.integrations.zendeskAccounts',{'id':0x515,'title':_0x573b06('0x11dc'),'route':_0x573b06('0x26ef'),'translate':_0x573b06('0x47a'),'state':'app.integrations.zendeskAccounts','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1deea7=_0x573b06;return _0x4e9377[_0x1deea7('0x1516')]('agent')||!_0x4e9377[_0x1deea7('0xdd')](0x515)&&!_0x4e9377[_0x1deea7('0x1516')](_0x1deea7('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2375'),{'id':0x516,'title':_0x573b06('0x22a6'),'route':_0x573b06('0x129c'),'translate':_0x573b06('0x6d3'),'state':_0x573b06('0x15ff'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5b64d4=_0x573b06;return _0x4e9377[_0x5b64d4('0x1516')](_0x5b64d4('0x188b'))||!_0x4e9377[_0x5b64d4('0xdd')](0x516)&&!_0x4e9377[_0x5b64d4('0x1516')](_0x5b64d4('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x22b5'),{'id':0x517,'title':_0x573b06('0x215a'),'route':_0x573b06('0x207'),'translate':_0x573b06('0x19d7'),'state':_0x573b06('0x584'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1c97d9=_0x573b06;return _0x4e9377[_0x1c97d9('0x1516')]('agent')||!_0x4e9377[_0x1c97d9('0xdd')](0x517)&&!_0x4e9377[_0x1c97d9('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.integrations.sugarcrmAccounts',{'id':0x519,'title':_0x573b06('0x842'),'route':_0x573b06('0xdc7'),'translate':'INTEGRATIONS.SUGARCRMACCOUNTS','state':_0x573b06('0x19f5'),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x34cadf=_0x573b06;return _0x4e9377[_0x34cadf('0x1516')](_0x34cadf('0x188b'))||!_0x4e9377['hasPermission'](0x519)&&!_0x4e9377[_0x34cadf('0x1516')](_0x34cadf('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x1d08'),{'id':0x51a,'title':'DeskAccounts','route':_0x573b06('0x6fb'),'translate':_0x573b06('0x2e9'),'state':_0x573b06('0x342'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xa0ec71=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0xa0ec71('0xdd')](0x51a)&&!_0x4e9377[_0xa0ec71('0x1516')](_0xa0ec71('0xe23'));}}),_0x487c1a['saveItem']('apps.integrations.zohoAccounts',{'id':0x51b,'title':_0x573b06('0xd37'),'route':_0x573b06('0x271'),'translate':'INTEGRATIONS.ZOHOACCOUNTS','state':'app.integrations.zohoAccounts','weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2fdc73=_0x573b06;return _0x4e9377[_0x2fdc73('0x1516')]('agent')||!_0x4e9377[_0x2fdc73('0xdd')](0x51b)&&!_0x4e9377['hasRole'](_0x2fdc73('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x10cb'),{'id':0x51c,'title':_0x573b06('0x1d90'),'route':'intVtigerAccount','translate':'INTEGRATIONS.VTIGERACCOUNTS','state':'app.integrations.vtigerAccounts','weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x53401c=_0x573b06;return _0x4e9377[_0x53401c('0x1516')](_0x53401c('0x188b'))||!_0x4e9377['hasPermission'](0x51c)&&!_0x4e9377['hasRole'](_0x53401c('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x9e2'),{'id':0x51d,'title':'Dynamics365Accounts','route':_0x573b06('0x1835'),'translate':_0x573b06('0x22d5'),'state':_0x573b06('0x2564'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x40d8bc=_0x573b06;return _0x4e9377[_0x40d8bc('0x1516')](_0x40d8bc('0x188b'))||!_0x4e9377[_0x40d8bc('0xdd')](0x51d)&&!_0x4e9377['hasRole']('admin');}}),_0x487c1a[_0x573b06('0x953')]('apps.integrations.servicenowAccounts',{'id':0x51e,'title':'ServicenowAccounts','route':'intServicenowAccount','translate':_0x573b06('0x16e7'),'state':'app.integrations.servicenowAccounts','weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x457dbd=_0x573b06;return _0x4e9377[_0x457dbd('0x1516')]('agent')||!_0x4e9377[_0x457dbd('0xdd')](0x51e)&&!_0x4e9377[_0x457dbd('0x1516')](_0x457dbd('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xef2'),{'id':0x518,'title':'FreshsalesAccounts','route':_0x573b06('0x16fd'),'translate':_0x573b06('0x139f'),'state':_0x573b06('0xb3e'),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2f8913=_0x573b06;return _0x4e9377[_0x2f8913('0x1516')](_0x2f8913('0x188b'))||!_0x4e9377[_0x2f8913('0xdd')](0x518)&&!_0x4e9377[_0x2f8913('0x1516')](_0x2f8913('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2391'),{'id':0x578,'title':_0x573b06('0x1e92'),'translate':'SETTINGS.SETTINGS','icon':_0x573b06('0x70a'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x2400e0=_0x573b06;return _0x4e9377[_0x2400e0('0x1516')](_0x2400e0('0x188b'))||!_0x4e9377[_0x2400e0('0xdd')](0x578)&&!_0x4e9377[_0x2400e0('0x1516')]('admin')||_0x4e9377['hasRole']('admin')&&!_0x4e9377['getCurrentUser']()['settingsEnabled'];}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2443'),{'id':0x579,'title':'General','route':_0x573b06('0x1af0'),'translate':_0x573b06('0x137f'),'state':'app.settings.generals','weight':0x1,'hidden':function(){const _0x2ad728=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377['hasPermission'](0x578)&&!_0x4e9377['hasRole'](_0x2ad728('0xe23'));}}),_0x487c1a['saveItem'](_0x573b06('0x450'),{'id':0x57a,'title':_0x573b06('0x2ba'),'route':_0x573b06('0x2594'),'translate':_0x573b06('0x15c4'),'state':'app.settings.smtps','weight':0x1,'hidden':function(){const _0x2b6c17=_0x573b06;return _0x4e9377['hasRole'](_0x2b6c17('0x188b'))||!_0x4e9377[_0x2b6c17('0xdd')](0x578)&&!_0x4e9377[_0x2b6c17('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1197'),{'id':0x57b,'title':_0x573b06('0xb57'),'route':_0x573b06('0x689'),'translate':_0x573b06('0x237'),'state':_0x573b06('0x106e'),'weight':0x1,'hidden':function(){const _0x11f051=_0x573b06;return _0x4e9377[_0x11f051('0x1516')](_0x11f051('0x188b'))||!_0x4e9377[_0x11f051('0xdd')](0x578)&&!_0x4e9377['hasRole'](_0x11f051('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x24fc'),{'id':0x57f,'title':'Customizations','route':_0x573b06('0x1af0'),'translate':_0x573b06('0x279b'),'state':_0x573b06('0x23d2'),'weight':0x1,'hidden':function(){const _0x55794a=_0x573b06;return!_0x59bd95[_0x55794a('0x1d56')]||_0x4e9377[_0x55794a('0x1516')]('agent')||!_0x4e9377[_0x55794a('0xdd')](0x578)&&!_0x4e9377[_0x55794a('0x1516')](_0x55794a('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.settings.cloudProviders',{'id':0x580,'title':_0x573b06('0x4c9'),'route':_0x573b06('0x958'),'translate':'SETTINGS.AITOOLS','state':'app.settings.cloudProviders','weight':0x1,'hidden':function(){const _0x4389c2=_0x573b06;return!_0x59bd95['ai']||_0x4e9377[_0x4389c2('0x1516')](_0x4389c2('0x188b'))||!_0x4e9377[_0x4389c2('0xdd')](0x578)&&!_0x4e9377[_0x4389c2('0x1516')](_0x4389c2('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.settings.updates',{'id':0x57c,'title':_0x573b06('0x6a6'),'route':'','translate':'SETTINGS.UPDATES','state':'app.settings.updates','weight':0x1,'hidden':function(){const _0x51a1b5=_0x573b06;return!_0x59bd95['update']||_0x4e9377['hasRole'](_0x51a1b5('0x188b'))||!_0x4e9377[_0x51a1b5('0xdd')](0x578)&&!_0x4e9377['hasRole'](_0x51a1b5('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x521'),{'id':0x57d,'title':'License','route':'','translate':_0x573b06('0xbf1'),'state':_0x573b06('0x9f'),'weight':0x1,'hidden':function(){const _0x17e297=_0x573b06;return _0x4e9377[_0x17e297('0x1516')]('agent')||!_0x4e9377['hasPermission'](0x578)&&!_0x4e9377['hasRole']('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1351'),{'id':0x57e,'title':'System','route':'','translate':_0x573b06('0x20c0'),'state':_0x573b06('0x1725'),'weight':0x1,'hidden':function(){const _0x2a139a=_0x573b06;return _0x4e9377[_0x2a139a('0x1516')]('agent')||!_0x4e9377['hasPermission'](0x578)&&!_0x4e9377['hasRole'](_0x2a139a('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.motiondialer',{'id':0x5dc,'title':_0x573b06('0x2274'),'translate':_0x573b06('0x227'),'icon':_0x573b06('0x58a'),'weight':0x5,'license':_0x573b06('0x79c'),'hidden':function(){const _0x54641f=_0x573b06;return!_0x59bd95[_0x54641f('0x79c')]||_0x4e9377[_0x54641f('0x1516')](_0x54641f('0x188b'))||!_0x4e9377['hasChildrenPermissions'](_0xe503d6(this))&&!_0x4e9377[_0x54641f('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2189'),{'id':0x5dd,'title':'QueueCampaigns','route':_0x573b06('0x2043'),'translate':'MOTIONDIALER.QUEUECAMPAIGNS','state':_0x573b06('0x1175'),'weight':0x1,'channel':'bull','hidden':function(){const _0x2a63ed=_0x573b06;return _0x4e9377[_0x2a63ed('0x1516')]('agent')||!_0x4e9377['hasPermission'](0x5dd)&&!_0x4e9377[_0x2a63ed('0x1516')](_0x2a63ed('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x23b6'),{'id':0x5de,'title':_0x573b06('0x1c0c'),'route':_0x573b06('0x24c'),'translate':_0x573b06('0x17fa'),'state':_0x573b06('0x15a'),'weight':0x1,'hidden':function(){const _0x5a98ed=_0x573b06;return _0x4e9377[_0x5a98ed('0x1516')](_0x5a98ed('0x188b'))||!_0x4e9377['hasPermission'](0x5de)&&!_0x4e9377[_0x5a98ed('0x1516')](_0x5a98ed('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.motiondialer.realtime',{'id':0x5e6,'title':'Realtime','route':'','translate':'MOTIONDIALER.REALTIME','state':_0x573b06('0xd14'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x322869=_0x573b06;return _0x4e9377[_0x322869('0x1516')]('agent')||!_0x4e9377[_0x322869('0xdd')](0x5e6)&&!_0x4e9377[_0x322869('0x1516')](_0x322869('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x520'),{'id':0x640,'title':_0x573b06('0xca2'),'translate':_0x573b06('0x2215'),'icon':_0x573b06('0x2cc'),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x30ebef=_0x573b06;return _0x4e9377[_0x30ebef('0x1516')](_0x30ebef('0x188b'))||!_0x4e9377['hasPermission'](0x640)&&!_0x4e9377['hasRole']('admin');}}),_0x487c1a['saveItem'](_0x573b06('0x15de'),{'id':0x641,'title':_0x573b06('0xe1f'),'route':'','translate':'HELP.ABOUT','state':_0x573b06('0x1252'),'weight':0x1,'hidden':function(){const _0x2baf67=_0x573b06;return _0x4e9377['hasRole']('agent')||!_0x4e9377[_0x2baf67('0xdd')](0x640)&&!_0x4e9377[_0x2baf67('0x1516')](_0x2baf67('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x268d'),{'id':0x6a4,'title':_0x573b06('0x184c'),'translate':_0x573b06('0x2688'),'icon':_0x573b06('0x1caf'),'weight':0xe,'license':'jscripty','hidden':function(){const _0xbc7273=_0x573b06;return!_0x59bd95[_0xbc7273('0x184c')]||_0x4e9377[_0xbc7273('0x1516')]('agent')||!_0x4e9377[_0xbc7273('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0xbc7273('0x1516')](_0xbc7273('0xe23'));}}),_0x487c1a[_0x573b06('0x953')]('apps.jscripty.projects',{'id':0x6a5,'title':_0x573b06('0x102d'),'route':_0x573b06('0xf5b'),'translate':_0x573b06('0x1d62'),'state':_0x573b06('0x1a14'),'weight':0x1,'hidden':function(){const _0xc8bc23=_0x573b06;return _0x4e9377[_0xc8bc23('0x1516')](_0xc8bc23('0x188b'))||!_0x4e9377[_0xc8bc23('0xdd')](0x6a5)&&!_0x4e9377[_0xc8bc23('0x1516')](_0xc8bc23('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x2784'),{'id':0x708,'title':_0x573b06('0x24ff'),'translate':_0x573b06('0xa97'),'icon':_0x573b06('0x2029'),'weight':0x12,'hidden':function(){const _0x1e8ece=_0x573b06;return _0x4e9377['hasRole'](_0x1e8ece('0x188b'))||!_0x4e9377[_0x1e8ece('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x1e8ece('0x1516')](_0x1e8ece('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1c75'),{'id':0x709,'title':_0x573b06('0x61c'),'route':_0x573b06('0x1c5'),'translate':_0x573b06('0x1ea1'),'state':'app.marketplace.plugins','weight':0x1,'hidden':function(){const _0x197492=_0x573b06;return _0x4e9377[_0x197492('0x1516')]('agent')||!_0x4e9377[_0x197492('0xdd')](0x709)&&!_0x4e9377[_0x197492('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0xa4e'),{'id':0x7d0,'title':_0x573b06('0x1468'),'translate':_0x573b06('0x24a3'),'icon':_0x573b06('0x22ec'),'weight':0xc,'license':_0x573b06('0x12b5'),'hidden':function(){const _0x3c699a=_0x573b06;return!_0x59bd95[_0x3c699a('0x12b5')]||_0x4e9377[_0x3c699a('0x1516')](_0x3c699a('0x188b'))||!_0x4e9377[_0x3c699a('0x60b')](_0xe503d6(this))&&!_0x4e9377[_0x3c699a('0x1516')]('admin');}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1557'),{'id':0x7d1,'title':'ScreenRecordings','route':'screenRecording','translate':_0x573b06('0x2046'),'state':_0x573b06('0x1fe1'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1714fa=_0x573b06;return _0x4e9377[_0x1714fa('0x1516')](_0x1714fa('0x188b'))||!_0x4e9377[_0x1714fa('0xdd')](0x7d1)&&!_0x4e9377[_0x1714fa('0x1516')](_0x1714fa('0xe23'));}}),_0x487c1a['saveItem']('apps.whatsapp',{'id':0x834,'title':_0x573b06('0x1ea'),'translate':_0x573b06('0x1d17'),'icon':_0x573b06('0x2225'),'weight':0xb,'license':_0x573b06('0x195d'),'hidden':function(){const _0x144691=_0x573b06;return!_0x59bd95[_0x144691('0x195d')]||_0x4e9377[_0x144691('0x1516')](_0x144691('0x188b'))||!_0x4e9377['hasChildrenPermissions'](_0xe503d6(this))&&!_0x4e9377[_0x144691('0x1516')](_0x144691('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x17b1'),{'id':0x835,'title':'WhatsappQueues','route':_0x573b06('0x1170'),'translate':_0x573b06('0x1599'),'state':_0x573b06('0x218c'),'weight':0x1,'channel':'whatsapp','hidden':function(){const _0x96e797=_0x573b06;return _0x4e9377[_0x96e797('0x1516')](_0x96e797('0x188b'))||!_0x4e9377['hasPermission'](0x835)&&!_0x4e9377[_0x96e797('0x1516')](_0x96e797('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x1b9f'),{'id':0x836,'title':_0x573b06('0x284b'),'route':_0x573b06('0x15'),'translate':_0x573b06('0x1f70'),'state':_0x573b06('0x1a94'),'weight':0x1,'channel':_0x573b06('0x195d'),'hidden':function(){const _0x447a90=_0x573b06;return _0x4e9377[_0x447a90('0x1516')](_0x447a90('0x188b'))||!_0x4e9377[_0x447a90('0xdd')](0x836)&&!_0x4e9377['hasRole'](_0x447a90('0xe23'));}}),_0x487c1a[_0x573b06('0x953')](_0x573b06('0x27ee'),{'id':0x83e,'title':'Realtime','route':'','translate':_0x573b06('0x32'),'state':_0x573b06('0x22ff'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x176f57=_0x573b06;return _0x4e9377['hasRole'](_0x176f57('0x188b'))||!_0x4e9377['hasPermission'](0x83e)&&!_0x4e9377[_0x176f57('0x1516')](_0x176f57('0xe23'));}}),_0x487c1a[_0x573b06('0x2119')](),_0x54ae3d[_0x573b06('0x953')]('apps',{'title':_0x573b06('0x1c62'),'group':!![],'weight':0x1}),_0x54ae3d[_0x573b06('0x953')]('apps.home',{'id':0x64,'title':_0x573b06('0x140d'),'translate':'DASHBOARDS.HOME','icon':_0x573b06('0x2051'),'weight':0x1}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0xd82'),{'id':0x65,'title':_0x573b06('0x216f'),'translate':_0x573b06('0x1dc8'),'state':_0x573b06('0x19f4'),'view':_0x573b06('0x19f4'),'icon':_0x573b06('0x1c9e'),'iconClass':'cyan-500-fg','weight':0x1,'hidden':function(){const _0x4f960e=_0x573b06;return!_0x4e9377[_0x4f960e('0xdd')](0x65);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x1e17'),{'id':0x66,'title':_0x573b06('0x52d'),'translate':_0x573b06('0x1785'),'state':_0x573b06('0x14b'),'view':'contacts','icon':'icon-account-circle','iconClass':_0x573b06('0x2541'),'weight':0x2,'hidden':function(){const _0x16bb9b=_0x573b06;return!_0x59bd95['cm']||!_0x4e9377[_0x16bb9b('0xdd')](0x66);}}),_0x54ae3d['saveItem'](_0x573b06('0x1e9e'),{'id':0x67,'title':'Contacts','translate':_0x573b06('0x13d4'),'state':_0x573b06('0x1e39'),'view':_0x573b06('0x1e39'),'icon':_0x573b06('0x10e6'),'iconClass':_0x573b06('0x2541'),'weight':0x3,'hidden':function(){const _0x56c329=_0x573b06;return!_0x59bd95['cm']||!_0x4e9377[_0x56c329('0xdd')](0x67);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x1542'),{'id':0x71,'title':_0x573b06('0x467'),'translate':'DASHBOARDS.SCHEDULED_CALLS','state':_0x573b06('0x1669'),'view':'scheduled','icon':_0x573b06('0x754'),'iconClass':_0x573b06('0x212f'),'weight':0x3,'hidden':function(){const _0x2f4051=_0x573b06;return!_0x59bd95[_0x2f4051('0x79c')]||!_0x4e9377['hasPermission'](0x71);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x1f42'),{'id':0x6e,'title':_0x573b06('0x1d5d'),'translate':_0x573b06('0x1219'),'state':_0x573b06('0x1f60'),'view':_0x573b06('0x1f60'),'icon':_0x573b06('0x2064'),'iconClass':_0x573b06('0x43c'),'weight':0x4,'hidden':function(){const _0x5c1f1f=_0x573b06;return!_0x59bd95[_0x5c1f1f('0x1f60')]||!_0x4e9377['hasPermission'](0x6e);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x149d'),{'id':0x6f,'title':_0x573b06('0x1c18'),'translate':_0x573b06('0x1f45'),'state':_0x573b06('0x2198'),'view':_0x573b06('0x2198'),'icon':_0x573b06('0x18c7'),'iconClass':_0x573b06('0xf84'),'weight':0x5,'hidden':function(){const _0x1456e9=_0x573b06;return!_0x59bd95[_0x1456e9('0x1f60')]||!_0x4e9377[_0x1456e9('0xdd')](0x6f);}}),_0x54ae3d['saveItem'](_0x573b06('0xa71'),{'id':0x68,'title':'Recordings','translate':_0x573b06('0x1506'),'state':'recordings','view':_0x573b06('0x884'),'icon':_0x573b06('0x1679'),'iconClass':_0x573b06('0x121a'),'weight':0x6,'hidden':function(){const _0x5ef056=_0x573b06;return!_0x59bd95[_0x5ef056('0x1f60')]||!_0x4e9377[_0x5ef056('0xdd')](0x68);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x684'),{'id':0x69,'title':_0x573b06('0x25db'),'translate':_0x573b06('0x27c9'),'state':_0x573b06('0x231'),'view':_0x573b06('0x231'),'icon':_0x573b06('0x1bc4'),'iconClass':_0x573b06('0x2406'),'weight':0x7,'hidden':function(){const _0x14b37a=_0x573b06;return!_0x59bd95[_0x14b37a('0x231')]||!_0x4e9377[_0x14b37a('0xdd')](0x69);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x4de'),{'id':0x6a,'title':_0x573b06('0x19c3'),'translate':_0x573b06('0x1398'),'state':_0x573b06('0x2795'),'view':'mail','icon':_0x573b06('0x2772'),'iconClass':_0x573b06('0x1f8f'),'weight':0x8,'hidden':function(){const _0x16bdde=_0x573b06;return!_0x59bd95[_0x16bdde('0x2795')]||!_0x4e9377[_0x16bdde('0xdd')](0x6a);}}),_0x54ae3d['saveItem']('apps.home.sms',{'id':0x6b,'title':_0x573b06('0x25a9'),'translate':_0x573b06('0x1f21'),'state':_0x573b06('0x529'),'view':_0x573b06('0x529'),'icon':'icon-message-text','iconClass':_0x573b06('0xff9'),'weight':0x9,'hidden':function(){const _0x58d0c4=_0x573b06;return!_0x59bd95[_0x58d0c4('0x180b')]||!_0x4e9377[_0x58d0c4('0xdd')](0x6b);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0x1b5'),{'id':0x6c,'title':_0x573b06('0xc3f'),'translate':'DASHBOARDS.OPENCHANNEL','state':_0x573b06('0x18aa'),'view':'openchannel','icon':_0x573b06('0x2729'),'iconClass':_0x573b06('0x2824'),'weight':0xa,'hidden':function(){const _0x3b7c15=_0x573b06;return!_0x59bd95[_0x3b7c15('0x18aa')]||!_0x4e9377['hasPermission'](0x6c);}}),_0x54ae3d[_0x573b06('0x953')](_0x573b06('0xa1e'),{'id':0x6d,'title':_0x573b06('0x19a9'),'translate':_0x573b06('0x1107'),'state':_0x573b06('0x10cf'),'view':_0x573b06('0x10cf'),'icon':_0x573b06('0xe77'),'iconClass':'blue-grey-A200-fg','weight':0xb,'hidden':function(){const _0x60e5d9=_0x573b06;return!_0x59bd95[_0x60e5d9('0x10cf')]||!_0x4e9377[_0x60e5d9('0xdd')](0x6d);}}),_0x54ae3d['saveItem'](_0x573b06('0x2640'),{'id':0x72,'title':_0x573b06('0x1ea'),'translate':_0x573b06('0x120d'),'state':_0x573b06('0x195d'),'view':_0x573b06('0x195d'),'icon':'icon-whatsapp','iconClass':'lime-A700-fg','weight':0xc,'hidden':function(){const _0x36eb91=_0x573b06;return!_0x59bd95[_0x36eb91('0x195d')]||!_0x4e9377[_0x36eb91('0xdd')](0x72);}}),_0x7bf097[_0x573b06('0x651')]('$viewContentAnimationEnded',function(_0x5cdff5){const _0x62d8ee=_0x573b06;_0x5cdff5[_0x62d8ee('0x5fc')]['$id']===_0x7bf097[_0x62d8ee('0xf6b')]&&_0x48bd9c[_0x62d8ee('0x2379')](_0x62d8ee('0xdea'));});}const _0x14dc01=_0x5b61b9;;const _0x36f322=['angular-toasty',_0x34e79e('0x1e1d'),_0x34e79e('0xdb4'),_0x34e79e('0x1886'),'app.toolbar',_0x34e79e('0x18cd'),_0x34e79e('0x12d5'),_0x34e79e('0x1590'),_0x34e79e('0xf53'),_0x34e79e('0x22b9'),_0x34e79e('0x36a'),_0x34e79e('0xe00'),_0x34e79e('0x1bde'),_0x34e79e('0x1bab'),_0x34e79e('0x92f'),_0x34e79e('0x1cf8'),_0x34e79e('0xd42'),_0x34e79e('0x1a79'),_0x34e79e('0x43f'),_0x34e79e('0x69b'),'app.integrations',_0x34e79e('0xd96'),'app.motiondialer',_0x34e79e('0x891'),_0x34e79e('0x1b43'),_0x34e79e('0x1a65'),_0x34e79e('0x1eae'),_0x34e79e('0x1da3'),'app.whatsapp','app.login',_0x34e79e('0x1f1c'),_0x34e79e('0x158e'),'app.errors'];angular['module']('motion',_0x36f322)[_0x34e79e('0x227e')](_0x34e79e('0x519'),_0x12fbc1)['config'](_0x470c42)['controller'](_0x34e79e('0x1274'),_0xfcf278)[_0x34e79e('0x916')](_0x34e79e('0x9d1'),_0x90bd99)['filter'](_0x34e79e('0x114b'),_0x3b9324)[_0x34e79e('0x227e')]('IndexFactory',_0x4ea3d2)[_0x34e79e('0x227e')](_0x34e79e('0x2142'),_0x4982af)[_0x34e79e('0x227e')](_0x34e79e('0x1d9e'),_0x570451)[_0x34e79e('0x1a22')](_0x2c8bb4)[_0x34e79e('0xc2b')](_0x4f74d8)[_0x34e79e('0x227e')](_0x34e79e('0xd6f'),_0x366259)['controller']('MainController',_0x14dc01);},0x1a2c:(_0x1b7d9d,_0x5e338b,_0x2e05eb)=>{const _0x4da6ed=_0x430095;var _0x1aad0c={'./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 _0x4effde(_0x5d7585){var _0x1f9482=_0x25fb1a(_0x5d7585);return _0x2e05eb(_0x1f9482);}function _0x25fb1a(_0x267ef3){const _0x416077=a0_0x14e7;if(!_0x2e05eb['o'](_0x1aad0c,_0x267ef3)){var _0x649e46=new Error(_0x416077('0xae')+_0x267ef3+'\x27');_0x649e46[_0x416077('0x37')]='MODULE_NOT_FOUND';throw _0x649e46;}return _0x1aad0c[_0x267ef3];}_0x4effde[_0x4da6ed('0x2163')]=function _0x4d9efc(){const _0x2cebac=_0x4da6ed;return Object[_0x2cebac('0x2163')](_0x1aad0c);},_0x4effde['resolve']=_0x25fb1a,_0x1b7d9d[_0x4da6ed('0x578')]=_0x4effde,_0x4effde['id']=0x1a2c;},0x1666:_0x1b8bdd=>{const _0x50c841=_0x430095;'use strict';_0x1b8bdd[_0x50c841('0x578')]=angular;},0x1a2:()=>{}},0x0,[[0x1efd,0x29a,0x12]]]); \ No newline at end of file diff --git a/public/index.html b/public/index.html index 76d66b0..7f0b947 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 bc5fe50..93a6d95 100644 --- a/public/runtime-472ac7a6568b98562237.js +++ b/public/runtime-472ac7a6568b98562237.js @@ -1 +1 @@ -var a1_0x48cc=["object","children","hasOwnProperty","apply","bind","loaded","return this","define cannot be used indirect","exports","default","amdD","slice","prototype","nmd","push","call","length","webpackChunkmotion_client","defineProperty","shift"];!function(r,e){!function(e){for(;--e;)r.push(r.shift())}(++e)}(a1_0x48cc,334);var a1_0x292f=function(r,e){return a1_0x48cc[r-=0]};(()=>{"use strict";var r,e,n,t={},x={};function a(r){var e=a1_0x292f;if(x[r])return x[r].exports;var n=x[r]={id:r,loaded:!1,exports:{}};return t[r][e("0x1")](n.exports,n,n[e("0xe")],a),n[e("0xb")]=!0,n[e("0xe")]}a.m=t,a[(n=a1_0x292f)("0x10")]=function(){throw new Error(n("0xd"))},a.n=r=>{var e=a1_0x292f,n=r&&r.__esModule?()=>r[e("0xf")]:()=>r;return a.d(n,{a:n}),n},a.d=(r,e)=>{var n=a1_0x292f;for(var t in e)a.o(e,t)&&!a.o(r,t)&&Object[n("0x4")](r,t,{enumerable:!0,get:e[t]})},a.g=function(){var r=a1_0x292f;if(typeof globalThis===r("0x6"))return globalThis;try{return this||new Function(r("0xc"))()}catch(e){if(typeof window===r("0x6"))return window}}(),e=a1_0x292f,a.o=(r,n)=>Object[e("0x12")][e("0x8")].call(r,n),a[(r=a1_0x292f)("0x13")]=e=>{var n=r;return e.paths=[],e.children||(e[n("0x7")]=[]),e},a.p="/",(()=>{var r=a1_0x292f,e={666:0},n=[],t=()=>{};function x(){for(var r,t=a1_0x292f,x=0;x{}),r}a.x=()=>{var r=a1_0x292f;a.x=()=>{},f=f[r("0x11")]();for(var e=0;e{for(var x,o,f=a1_0x292f,[c,u,l,s]=r,d=0,h=[];d{"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 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: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)})()})(); //# sourceMappingURL=service-worker.js.map \ No newline at end of file diff --git a/public/service-worker.js.map b/public/service-worker.js.map index b841838..ef0b3f4 100644 --- a/public/service-worker.js.map +++ b/public/service-worker.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://motion-client/./node_modules/workbox-core/_version.js","webpack://motion-client/./node_modules/workbox-precaching/_version.js","webpack://motion-client/webpack/bootstrap","webpack://motion-client/./node_modules/workbox-core/_private/logger.js","webpack://motion-client/./node_modules/workbox-core/models/messages/messageGenerator.js","webpack://motion-client/./node_modules/workbox-core/_private/WorkboxError.js","webpack://motion-client/./node_modules/workbox-core/_private/assert.js","webpack://motion-client/./node_modules/workbox-core/models/quotaErrorCallbacks.js","webpack://motion-client/./node_modules/workbox-core/_private/cacheNames.js","webpack://motion-client/./node_modules/workbox-core/_private/getFriendlyURL.js","webpack://motion-client/./node_modules/workbox-core/utils/pluginUtils.js","webpack://motion-client/./node_modules/workbox-core/_private/cacheWrapper.js","webpack://motion-client/./node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","webpack://motion-client/./node_modules/workbox-core/_private/canConstructReadableStream.js","webpack://motion-client/./node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","webpack://motion-client/./node_modules/workbox-core/_private/DBWrapper.js","webpack://motion-client/./node_modules/workbox-core/_private/deleteDatabase.js","webpack://motion-client/./node_modules/workbox-core/_private/fetchWrapper.js","webpack://motion-client/./node_modules/workbox-core/copyResponse.js","webpack://motion-client/./node_modules/workbox-precaching/utils/precachePlugins.js","webpack://motion-client/./node_modules/workbox-precaching/utils/createCacheKey.js","webpack://motion-client/./node_modules/workbox-precaching/PrecacheController.js","webpack://motion-client/./node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","webpack://motion-client/./node_modules/workbox-precaching/utils/getCacheKeyForURL.js","webpack://motion-client/./node_modules/workbox-precaching/utils/generateURLVariations.js","webpack://motion-client/./node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","webpack://motion-client/./node_modules/workbox-precaching/addRoute.js","webpack://motion-client/./node_modules/workbox-precaching/utils/addFetchListener.js","webpack://motion-client/./node_modules/workbox-precaching/precache.js","webpack://motion-client/./node_modules/workbox-core/skipWaiting.js","webpack://motion-client/./node_modules/workbox-core/clientsClaim.js","webpack://motion-client/./src/js/service-worker.js","webpack://motion-client/./node_modules/workbox-precaching/precacheAndRoute.js"],"names":["self","_","e","__webpack_module_cache__","__webpack_require__","moduleId","exports","module","__webpack_modules__","messageGenerator","code","args","msg","length","JSON","stringify","Error","errorCode","details","super","this","name","Set","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","userCacheName","pluginUtils","plugins","callbackName","plugin","_getEffectiveRequest","async","request","mode","cacheKeyWillBeUsedPlugins","effectiveRequest","call","Request","matchWrapper","event","matchOptions","cache","caches","open","cachedResponse","match","pluginMethod","cacheWrapper","response","url","URL","String","location","href","replace","RegExp","origin","responseToCache","pluginsUsed","status","undefined","_isResponseSafeToCache","updatePlugins","oldResponse","put","error","callback","executeQuotaErrorCallbacks","newResponse","DBWrapper","version","onupgradeneeded","onversionchange","_db","_name","_version","_onupgradeneeded","_onversionchange","close","Promise","resolve","reject","openRequestTimedOut","setTimeout","OPEN_TIMEOUT","openRequest","indexedDB","onerror","evt","transaction","abort","result","onsuccess","db","bind","storeName","query","getAllKeys","count","getAllMatching","includeKeys","map","entry","key","index","direction","txn","done","store","objectStore","target","results","openCursor","cursor","push","continue","storeNames","type","onabort","oncomplete","method","objStore","apply","prototype","methodsToWrap","readonly","readwrite","methods","Object","entries","IDBObjectStore","_call","fetchWrapper","fetchOptions","FetchEvent","preloadResponse","possiblePreloadResponse","failedFetchPlugins","originalRequest","clone","requestClone","err","thrownError","pluginFilteredRequest","fetchResponse","fetch","copyResponse","modifier","clonedResponse","responseInit","headers","Headers","statusText","modifiedResponseInit","body","testResponse","Response","canConstructResponseFromBodyStream","blob","get","newPlugins","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","set","PrecacheController","_cacheName","_urlsToCacheKeys","Map","_urlsToCacheModes","_cacheKeysToIntegrities","urlsToWarnAbout","cacheMode","has","firstEntry","secondEntry","integrity","warningMessage","console","warn","toBePrecached","alreadyPrecached","alreadyCachedRequests","keys","existingCacheKeys","precacheRequests","_addURLToCache","all","updatedURLs","item","notUpdatedURLs","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","delete","credentials","cacheWillUpdatePlugin","cacheWillUpdate","redirected","ignoreSearch","getCacheKeyForURL","fallbackToNetwork","matchPrecache","handler","createHandler","precacheController","options","urlsToCacheKeys","getURLsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","regExp","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","possibleCacheKey","listenerAdded","addRoute","addEventListener","precachedURL","responsePromise","then","respondWith","addFetchListener","installListener","waitUntil","install","catch","activateListener","activate","skipWaiting","clients","claim","sw","notification","action","matchAll","includeUncontrolled","i","data","id","postMessage","__WB_MANIFEST","addToCacheList"],"mappings":"mCAEA,IACI,KAAK,uBAAyB,IAElC,MAAO,eCHP,IACI,KAAK,6BAA+B,IAExC,MAAO,OCJH,EAA2B,GAG/B,SAAS,EAAoB,GAE5B,GAAG,EAAyB,GAC3B,OAAO,EAAyB,GAAU,QAG3C,IAAI,EAAS,EAAyB,GAAY,CAGjD,QAAS,IAOV,OAHA,EAAoB,GAAU,EAAQ,EAAO,QAAS,GAG/C,EAAO,qBCbf,MCgBa,EAdI,CAAC,KAAS,KACvB,IAAI,EAAM,EAIV,OAHI,EAAK,OAAS,IACd,GAAO,OAAO,KAAK,UAAU,IAE1B,GCIX,MAAM,UAAqB,MASvB,YAAY,EAAW,GAEnB,MADgB,EAAiB,EAAW,IAE5C,KAAK,KAAO,EACZ,KAAK,QAAU,GChBvB,MCNM,EAAsB,IAAI,ICDhC,MAAM,EAAoB,CACtB,gBAAiB,kBACjB,SAAU,cACV,OAAQ,UACR,QAAS,UACT,OAAgC,oBAAjB,aAA+B,aAAa,MAAQ,IAEjE,EAAoB,GACf,CAAC,EAAkB,OAAQ,EAAW,EAAkB,QAC1D,QAAQ,GAAU,GAAS,EAAM,OAAS,IAC1C,KAAK,KAOD,EAWS,GACP,GAAiB,EAAiB,EAAkB,UC7BnE,MCAa,EACD,CAAC,EAAS,IACP,EAAQ,QAAQ,GAAW,KAAgB,ICmBpD,EAAuB,OAAS,UAAS,OAAM,UAAU,OAC3D,MAAM,EAA4B,EAAmB,EAAS,sBAC9D,IAAI,EAAmB,EACvB,IAAK,MAAM,KAAU,EACjB,QAAyB,EAAwD,mBAAE,KAAK,EAAQ,CAAE,OAAM,QAAS,IACjF,iBAArB,IACP,EAAmB,IAAI,QAAQ,IAUvC,OAAO,GA+EL,EAAe,OAAS,YAAW,UAAS,QAAO,eAAc,UAAU,OAC7E,MAAM,QAAc,KAAK,OAAO,KAAK,GAC/B,QAAyB,EAAqB,CAChD,UAAS,UAAS,KAAM,SAE5B,IAAI,QAAuB,EAAM,MAAM,EAAkB,GASzD,IAAK,MAAM,KAAU,EACjB,GAAI,6BAAiE,EAAQ,CACzE,MAAM,EAAe,EAAoE,yBACzF,QAAuB,EAAa,KAAK,EAAQ,CAC7C,YACA,QACA,eACA,iBACA,QAAS,IAarB,OAAO,GAkFE,EA/DM,OAAS,YAAW,UAAS,WAAU,QAAO,UAAU,GAAI,mBAS3E,MAAM,QAAyB,EAAqB,CAChD,UAAS,UAAS,KAAM,UAE5B,IAAK,EAKD,MAAM,IAAI,EAAa,6BAA8B,CACjD,KF5LY,EE4LQ,EAAiB,IF3L9B,IAAI,IAAI,OAAO,GAAM,SAAS,MAG/B,KAAK,QAAQ,IAAI,OAAO,IAAI,SAAS,QAAW,OAJ3C,IAAC,EE+LpB,MAAM,OA1IqB,QAAS,UAAS,WAAU,QAAO,UAAU,OACxE,IAAI,EAAkB,EAClB,GAAc,EAClB,IAAK,MAAM,KAAU,EACjB,GAAI,oBAA6C,EAAQ,CACrD,GAAc,EACd,MAAM,EAAe,EAAgD,gBAerE,GAdA,QAAwB,EAAa,KAAK,EAAQ,CAC9C,UACA,SAAU,EACV,WAWC,EACD,MAwBZ,OApBK,IAiBD,EAAkB,GAA8C,MAA3B,EAAgB,OACjD,OAAkB,GAEnB,GAAoC,MA4Fb,CAAuB,CACjD,QACA,UACA,WACA,QAAS,IAEb,IAAK,EAKD,cAEJ,MAAM,QAAc,KAAK,OAAO,KAAK,GAC/B,EAAgB,EAAmB,EAAS,kBAC5C,EAAc,EAAc,OAAS,QACjC,EAAa,CAAE,YAAW,eAAc,QAAS,IACvD,KAKJ,UACU,EAAM,IAAI,EAAkB,GAEtC,MAAO,GAKH,KAHmB,uBAAf,EAAM,YCjNlB,iBAKI,IAAK,MAAM,KAAY,QACb,ID4MI,GAEJ,EAEV,IAAK,MAAM,KAAU,QACX,EAA8C,eAAE,KAAK,EAAQ,CAC/D,YACA,QACA,cACA,YAAa,EACb,QAAS,KErOrB,ICAI,ECOG,MAAM,EAUT,YAAY,EAAM,GAAS,gBAAE,EAAe,gBAAE,GAAqB,IAC/D,KAAK,IAAM,KACX,KAAK,MAAQ,EACb,KAAK,SAAW,EAChB,KAAK,iBAAmB,EACxB,KAAK,iBAAmB,GAAmB,KAAO,KAAK,SAQ3D,SACI,OAAO,KAAK,IAShB,aACI,IAAI,KAAK,IAmCT,OAjCA,KAAK,UAAY,IAAI,SAAQ,CAAC,EAAS,KAMnC,IAAI,GAAsB,EAC1B,YAAW,KACP,GAAsB,EACtB,EAAO,IAAI,MAAM,iDAClB,KAAK,cACR,MAAM,EAAc,UAAU,KAAK,KAAK,MAAO,KAAK,UACpD,EAAY,QAAU,IAAM,EAAO,EAAY,OAC/C,EAAY,gBAAmB,IACvB,GACA,EAAY,YAAY,QACxB,EAAY,OAAO,SAEmB,mBAA1B,KAAK,kBACjB,KAAK,iBAAiB,IAG9B,EAAY,UAAY,KACpB,MAAM,EAAK,EAAY,OACnB,EACA,EAAG,SAGH,EAAG,gBAAkB,KAAK,iBAAiB,KAAK,MAChD,EAAQ,QAIb,KAWX,aAAa,EAAW,GACpB,aAAc,KAAK,WAAW,EAAW,EAAO,IAAI,GAYxD,aAAa,EAAW,EAAO,GAC3B,aAAa,KAAK,eAAe,EAAW,CAAE,QAAO,UAYzD,iBAAiB,EAAW,EAAO,GAE/B,aADsB,KAAK,eAAe,EAAW,CAAE,QAAO,QAAO,aAAa,KACnE,KAAK,GAAU,EAAM,MAmBxC,qBAAqB,GAAW,MAAE,EAAK,MAAE,EAAQ,KAAI,UACrD,EAAY,OAAM,MAAE,EAAK,YAAE,GAAc,GAAW,IAChD,aAAa,KAAK,YAAY,CAAC,GAAY,YAAY,CAAC,EAAK,KACzD,MAAM,EAAQ,EAAI,YAAY,GACxB,EAAS,EAAQ,EAAM,MAAM,GAAS,EACtC,EAAU,GACV,EAAU,EAAO,WAAW,EAAO,GACzC,EAAQ,UAAY,KAChB,MAAM,EAAS,EAAQ,OACnB,GACA,EAAQ,KAAK,EAAc,EAAS,EAAO,OACvC,GAAS,EAAQ,QAAU,EAC3B,EAAK,GAGL,EAAO,YAIX,EAAK,OAsBrB,kBAAkB,EAAY,EAAM,GAEhC,aADM,KAAK,aACE,IAAI,SAAQ,CAAC,EAAS,KAC/B,MAAM,EAAM,KAAK,IAAI,YAAY,EAAY,GAC7C,EAAI,QAAU,IAAM,EAAO,EAAI,OAC/B,EAAI,WAAa,IAAM,IACvB,EAAS,GAAM,GAAU,EAAQ,QAazC,YAAY,EAAQ,EAAW,KAAS,GAQpC,aAAa,KAAK,YAAY,CAAC,GAAY,GAP1B,CAAC,EAAK,KACnB,MAAM,EAAW,EAAI,YAAY,GAG3B,EAAU,EAAS,GAAQ,MAAM,EAAU,GACjD,EAAQ,UAAY,IAAM,EAAK,EAAQ,WAiB/C,QACQ,KAAK,MACL,KAAK,IAAI,QACT,KAAK,IAAM,OAMvB,EAAU,UAAU,aAAe,IAEnC,MAAM,EAAgB,CAClB,SAAU,CAAC,MAAO,QAAS,SAAU,SAAU,cAC/C,UAAW,CAAC,MAAO,MAAO,QAAS,WAEvC,IAAK,MAAO,EAAM,KAAY,OAAO,QAAQ,GACzC,IAAK,MAAM,KAAU,EACb,KAAU,eAAe,YAEzB,EAAU,UAAU,GAChB,eAAgB,KAAc,GAC1B,aAAa,KAAK,MAAM,EAAQ,EAAW,KAAS,KCrOjE,MC4HD,EAjHe,OAAS,UAAS,eAAc,QAAO,UAAU,OAOlE,GANuB,iBAAZ,IACP,EAAU,IAAI,QAAQ,IAKtB,aAAiB,YAAc,EAAM,gBAAiB,CACtD,MAAM,QAAgC,EAAM,gBAC5C,GAAI,EAKA,OAAO,EAYf,MAAM,EAAqB,EAAmB,EAAS,gBAIjD,EAAkB,EAAmB,OAAS,EAChD,EAAQ,QAAU,KACtB,IACI,IAAK,MAAM,KAAU,EACjB,GAAI,qBAA+C,EAAQ,CACvD,MAAM,EAAe,EAAkD,iBACjE,EAAe,EAAQ,QAC7B,QAAgB,EAAa,KAAK,EAAQ,CACtC,QAAS,EACT,WAchB,MAAO,GACH,MAAM,IAAI,EAAa,kCAAmC,CACtD,YAAa,IAMrB,MAAM,EAAwB,EAAQ,QACtC,IACI,IAAI,EAGA,EADiB,aAAjB,EAAQ,WACc,MAAM,SAGN,MAAM,EAAS,GAOzC,IAAK,MAAM,KAAU,EACb,oBAA6C,IAC7C,QAAsB,EAAgD,gBACjE,KAAK,EAAQ,CACd,QACA,QAAS,EACT,SAAU,KAatB,OAAO,EAEX,MAAO,GACC,EAIJ,IAAK,MAAM,KAAU,QACX,EAA0C,aAAE,KAAK,EAAQ,CAC3D,QACA,QACA,gBAAiB,EAAgB,QACjC,QAAS,EAAsB,UAGvC,MAAM,ICjHd,eAAe,EAAa,EAAU,GAClC,MAAM,EAAiB,EAAS,QAE1B,EAAe,CACjB,QAAS,IAAI,QAAQ,EAAe,SACpC,OAAQ,EAAe,OACvB,WAAY,EAAe,YAGzB,EAAuB,EAAW,EAAS,GAAgB,EAI3D,EJpBV,WACI,QAAsB,IAAlB,EAA6B,CAC7B,MAAM,EAAe,IAAI,SAAS,IAClC,GAAI,SAAU,EACV,IACI,IAAI,SAAS,EAAa,MAC1B,GAAgB,EAEpB,MAAO,GACH,GAAgB,EAGxB,GAAgB,EAEpB,OAAO,EIMM,GACT,EAAe,WAAa,EAAe,OAC/C,OAAO,IAAI,SAAS,EAAM,UChC9B,MAAM,EAAU,GACH,EAAkB,CAK3B,IAAG,IACQ,EAMX,IAAI,GACA,EAAQ,QAAQ,KCFjB,SAAS,EAAe,GAC3B,IAAK,EACD,MAAM,IAAI,EAAa,oCAAqC,CAAE,UAIlE,GAAqB,iBAAV,EAAoB,CAC3B,MAAM,EAAY,IAAI,IAAI,EAAO,SAAS,MAC1C,MAAO,CACH,SAAU,EAAU,KACpB,IAAK,EAAU,MAGvB,MAAM,SAAE,EAAQ,IAAE,GAAQ,EAC1B,IAAK,EACD,MAAM,IAAI,EAAa,oCAAqC,CAAE,UAIlE,IAAK,EAAU,CACX,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,MAAO,CACH,SAAU,EAAU,KACpB,IAAK,EAAU,MAKvB,MAAM,EAAc,IAAI,IAAI,EAAK,SAAS,MACpC,EAAc,IAAI,IAAI,EAAK,SAAS,MAE1C,OADA,EAAY,aAAa,IAxCC,kBAwC0B,GAC7C,CACH,SAAU,EAAY,KACtB,IAAK,EAAY,MC9BzB,MAAM,EAOF,YAAY,GACR,KAAK,WAAa,EAA2B,GAC7C,KAAK,iBAAmB,IAAI,IAC5B,KAAK,kBAAoB,IAAI,IAC7B,KAAK,wBAA0B,IAAI,IAUvC,eAAe,GASX,MAAM,EAAkB,GACxB,IAAK,MAAM,KAAS,EAAS,CAEJ,iBAAV,EACP,EAAgB,KAAK,GAEhB,QAA4B,IAAnB,EAAM,UACpB,EAAgB,KAAK,EAAM,KAE/B,MAAM,SAAE,EAAQ,IAAE,GAAQ,EAAe,GACnC,EAA8B,iBAAV,GAAsB,EAAM,SAClD,SAAW,UACf,GAAI,KAAK,iBAAiB,IAAI,IAC1B,KAAK,iBAAiB,IAAI,KAAS,EACnC,MAAM,IAAI,EAAa,wCAAyC,CAC5D,WAAY,KAAK,iBAAiB,IAAI,GACtC,YAAa,IAGrB,GAAqB,iBAAV,GAAsB,EAAM,UAAW,CAC9C,GAAI,KAAK,wBAAwB,IAAI,IACjC,KAAK,wBAAwB,IAAI,KAAc,EAAM,UACrD,MAAM,IAAI,EAAa,4CAA6C,CAChE,QAGR,KAAK,wBAAwB,IAAI,EAAU,EAAM,WAIrD,GAFA,KAAK,iBAAiB,IAAI,EAAK,GAC/B,KAAK,kBAAkB,IAAI,EAAK,GAC5B,EAAgB,OAAS,EAAG,CAC5B,MAAM,EACF,qDAAS,EAAgB,KAAK,8EAK9B,QAAQ,KAAK,KAkB7B,eAAc,MAAE,EAAK,QAAE,GAAY,IAW/B,MAAM,EAAgB,GAChB,EAAmB,GACnB,QAAc,KAAK,OAAO,KAAK,KAAK,YACpC,QAA8B,EAAM,OACpC,EAAoB,IAAI,IAAI,EAAsB,KAAK,GAAY,EAAQ,OACjF,IAAK,MAAO,EAAK,KAAa,KAAK,iBAC3B,EAAkB,IAAI,GACtB,EAAiB,KAAK,GAGtB,EAAc,KAAK,CAAE,WAAU,QAGvC,MAAM,EAAmB,EAAc,KAAI,EAAG,WAAU,UACpD,MAAM,EAAY,KAAK,wBAAwB,IAAI,GAC7C,EAAY,KAAK,kBAAkB,IAAI,GAC7C,OAAO,KAAK,eAAe,CACvB,WACA,YACA,QACA,YACA,UACA,iBAGF,QAAQ,IAAI,GAKlB,MAAO,CACH,YALgB,EAAc,KAAK,GAAS,EAAK,MAMjD,eAAgB,GASxB,iBACI,MAAM,QAAc,KAAK,OAAO,KAAK,KAAK,YACpC,QAAgC,EAAM,OACtC,EAAoB,IAAI,IAAI,KAAK,iBAAiB,UAClD,EAAc,GACpB,IAAK,MAAM,KAAW,EACb,EAAkB,IAAI,EAAQ,aACzB,EAAM,OAAO,GACnB,EAAY,KAAK,EAAQ,MAMjC,MAAO,CAAE,eAsBb,sBAAqB,SAAE,EAAQ,IAAE,EAAG,UAAE,EAAS,MAAE,EAAK,QAAE,EAAO,UAAE,IAC7D,MAAM,EAAU,IAAI,QAAQ,EAAK,CAC7B,YACA,MAAO,EACP,YAAa,gBAEjB,IAQI,EARA,QAAiB,EAAmB,CACpC,QACA,UACA,YAMJ,IAAK,MAAM,KAAW,GAAW,GACzB,oBAAqB,IACrB,EAAwB,GAahC,KAVwB,QAId,EAAsB,gBAAgB,CAAE,QAAO,UAAS,aAG9D,EAAS,OAAS,KAIlB,MAAM,IAAI,EAAa,0BAA2B,CAC9C,MACA,OAAQ,EAAS,SAOrB,EAAS,aACT,QAAiB,EAAa,UAE5B,EAAiB,CACnB,QACA,UACA,WAEA,QAAS,IAAa,EAAM,EAAU,IAAI,QAAQ,GAClD,UAAW,KAAK,WAChB,aAAc,CACV,cAAc,KAU1B,qBACI,OAAO,KAAK,iBAQhB,gBACI,MAAO,IAAI,KAAK,iBAAiB,QAWrC,kBAAkB,GACd,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,OAAO,KAAK,iBAAiB,IAAI,EAAU,MAmB/C,oBAAoB,GAChB,MAAM,EAAM,aAAmB,QAAU,EAAQ,IAAM,EACjD,EAAW,KAAK,kBAAkB,GACxC,GAAI,EAAU,CAEV,aADoB,KAAK,OAAO,KAAK,KAAK,aAC7B,MAAM,IAiB3B,cAAc,GAAoB,GAC9B,OAAO,OAAS,cACZ,IACI,MAAM,QAAiB,KAAK,cAAc,GAC1C,GAAI,EACA,OAAO,EAIX,MAAM,IAAI,EAAa,yBAA0B,CAC7C,UAAW,KAAK,WAChB,IAAK,aAAmB,QAAU,EAAQ,IAAM,IAGxD,MAAO,GACH,GAAI,EAKA,OAAO,MAAM,GAEjB,MAAM,IAkBlB,wBAAwB,EAAK,GAAoB,GAE7C,IADiB,KAAK,kBAAkB,GAEpC,MAAM,IAAI,EAAa,oBAAqB,CAAE,QAElD,MAAM,EAAU,KAAK,cAAc,GAC7B,EAAU,IAAI,QAAQ,GAC5B,MAAO,IAAM,EAAQ,CAAE,aCvW/B,IAAI,EAKG,MAAM,EAAgC,KACpC,IACD,EAAqB,IAAI,GAEtB,GCGJ,MAAM,EAAoB,CAAC,EAAK,KACnC,MACM,EADqB,IACgB,qBAC3C,IAAK,MAAM,KCLR,UAAgC,GAAK,4BAAE,EAA2B,eAAE,EAAc,UAAE,EAAS,gBAAE,GAAqB,IACvH,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,EAAU,KAAO,SACX,EAAU,KAChB,MAAM,ECHH,SAAmC,EAAW,EAA8B,IAG/E,IAAK,MAAM,IAAa,IAAI,EAAU,aAAa,QAC3C,EAA4B,MAAM,GAAW,EAAO,KAAK,MACzD,EAAU,aAAa,OAAO,GAGtC,OAAO,EDLyB,CAA0B,EAAW,GAErE,SADM,EAAwB,KAC1B,GAAkB,EAAwB,SAAS,SAAS,KAAM,CAClE,MAAM,EAAe,IAAI,IAAI,EAAwB,MACrD,EAAa,UAAY,QACnB,EAAa,KAEvB,GAAI,EAAW,CACX,MAAM,EAAW,IAAI,IAAI,EAAwB,MACjD,EAAS,UAAY,cACf,EAAS,KAEnB,GAAI,EAAiB,CACjB,MAAM,EAAiB,EAAgB,CAAE,IAAK,IAC9C,IAAK,MAAM,KAAgB,QACjB,EAAa,MDdD,CAAsB,EAAK,GAAU,CAC3D,MAAM,EAAmB,EAAgB,IAAI,GAC7C,GAAI,EACA,OAAO,IGnBnB,IAAI,GAAgB,EAyBpB,SAAS,EAAS,GACT,ICKuB,GAAG,8BAA8B,CAAC,SAAU,iBAAiB,aAAc,aAAY,EAAM,mBAAqB,MAC9I,MAAM,EAAY,IAElB,KAAK,iBAAiB,SAAW,IAC7B,MAAM,EAAe,EAAkB,EAAM,QAAQ,IAAK,CACtD,YACA,iBACA,8BACA,oBAEJ,IAAK,EAKD,OAEJ,IAAI,EAAkB,KAAK,OAAO,KAAK,GAAW,MAAM,GAC7C,EAAM,MAAM,KACpB,MAAM,GACD,GAUG,MAAM,KAmBjB,EAAM,YAAY,ODrDlB,CAAiB,GACjB,GAAgB,GEzBxB,MAAM,EAAmB,IACrB,MAAM,EAAqB,IACrB,EAAU,QAChB,EAAM,UAAU,EAAmB,QAAQ,CAAE,QAAO,YAC/C,OAAO,IAMR,MAAM,OAGR,EAAoB,IACtB,MAAM,EAAqB,IAC3B,EAAM,UAAU,EAAmB,aCRnC,KAAK,iBAAiB,WAAW,IAAM,KAAK,gBCH5C,KAAK,iBAAiB,YAAY,IAAM,KAAK,QAAQ,UCJzD,MAAM,EAAK,KCaX,IAA0B,EAAS,EDqBnC,EAAG,iBAAiB,qBAAqB,SAAU,GACjD,MAAM,EAAe,EAAE,aACjB,EAAS,EAAE,OAEjB,OAAQ,GACN,IAAK,SACL,IAAK,SACH,EAAa,QAEb,EAAE,UACA,EAAG,QACA,SAAS,CACR,qBAAqB,EACrB,KAAM,WAEP,MAAK,SAAU,GACd,IAAK,IAAI,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAEhC,EAAa,WACmB,IAAzB,EAAa,KAAK,IAEzB,EAAQ,GAAG,YAAY,CACrB,OAAQ,EACR,GAAI,EAAa,KAAK,aC5Cd,EDwDT,s5nOAAK,cCxDa,EDwDE,CACnC,WAAW,GHlCb,SAAkB,GACa,IACR,eAAe,GAC9B,EAAQ,OAAS,IAKjB,KAAK,iBAAiB,UAAW,GACjC,KAAK,iBAAiB,WAAY,II/BtC,CAAS,GACT,EAAS","file":"service-worker.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://motion-client/./node_modules/workbox-core/_version.js","webpack://motion-client/./node_modules/workbox-precaching/_version.js","webpack://motion-client/webpack/bootstrap","webpack://motion-client/./node_modules/workbox-core/_private/logger.js","webpack://motion-client/./node_modules/workbox-core/models/messages/messageGenerator.js","webpack://motion-client/./node_modules/workbox-core/_private/WorkboxError.js","webpack://motion-client/./node_modules/workbox-core/_private/assert.js","webpack://motion-client/./node_modules/workbox-core/models/quotaErrorCallbacks.js","webpack://motion-client/./node_modules/workbox-core/_private/cacheNames.js","webpack://motion-client/./node_modules/workbox-core/_private/getFriendlyURL.js","webpack://motion-client/./node_modules/workbox-core/utils/pluginUtils.js","webpack://motion-client/./node_modules/workbox-core/_private/cacheWrapper.js","webpack://motion-client/./node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","webpack://motion-client/./node_modules/workbox-core/_private/canConstructReadableStream.js","webpack://motion-client/./node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","webpack://motion-client/./node_modules/workbox-core/_private/DBWrapper.js","webpack://motion-client/./node_modules/workbox-core/_private/deleteDatabase.js","webpack://motion-client/./node_modules/workbox-core/_private/fetchWrapper.js","webpack://motion-client/./node_modules/workbox-core/copyResponse.js","webpack://motion-client/./node_modules/workbox-precaching/utils/precachePlugins.js","webpack://motion-client/./node_modules/workbox-precaching/utils/createCacheKey.js","webpack://motion-client/./node_modules/workbox-precaching/PrecacheController.js","webpack://motion-client/./node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","webpack://motion-client/./node_modules/workbox-precaching/utils/getCacheKeyForURL.js","webpack://motion-client/./node_modules/workbox-precaching/utils/generateURLVariations.js","webpack://motion-client/./node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","webpack://motion-client/./node_modules/workbox-precaching/addRoute.js","webpack://motion-client/./node_modules/workbox-precaching/utils/addFetchListener.js","webpack://motion-client/./node_modules/workbox-precaching/precache.js","webpack://motion-client/./node_modules/workbox-core/skipWaiting.js","webpack://motion-client/./node_modules/workbox-core/clientsClaim.js","webpack://motion-client/./src/js/service-worker.js","webpack://motion-client/./node_modules/workbox-precaching/precacheAndRoute.js"],"names":["self","_","e","__webpack_module_cache__","__webpack_require__","moduleId","exports","module","__webpack_modules__","messageGenerator","code","args","msg","length","JSON","stringify","Error","errorCode","details","super","this","name","Set","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","userCacheName","pluginUtils","plugins","callbackName","plugin","_getEffectiveRequest","async","request","mode","cacheKeyWillBeUsedPlugins","effectiveRequest","call","Request","matchWrapper","event","matchOptions","cache","caches","open","cachedResponse","match","pluginMethod","cacheWrapper","response","url","URL","String","location","href","replace","RegExp","origin","responseToCache","pluginsUsed","status","undefined","_isResponseSafeToCache","updatePlugins","oldResponse","put","error","callback","executeQuotaErrorCallbacks","newResponse","DBWrapper","version","onupgradeneeded","onversionchange","_db","_name","_version","_onupgradeneeded","_onversionchange","close","Promise","resolve","reject","openRequestTimedOut","setTimeout","OPEN_TIMEOUT","openRequest","indexedDB","onerror","evt","transaction","abort","result","onsuccess","db","bind","storeName","query","getAllKeys","count","getAllMatching","includeKeys","map","entry","key","index","direction","txn","done","store","objectStore","target","results","openCursor","cursor","push","continue","storeNames","type","onabort","oncomplete","method","objStore","apply","prototype","methodsToWrap","readonly","readwrite","methods","Object","entries","IDBObjectStore","_call","fetchWrapper","fetchOptions","FetchEvent","preloadResponse","possiblePreloadResponse","failedFetchPlugins","originalRequest","clone","requestClone","err","thrownError","pluginFilteredRequest","fetchResponse","fetch","copyResponse","modifier","clonedResponse","responseInit","headers","Headers","statusText","modifiedResponseInit","body","testResponse","Response","canConstructResponseFromBodyStream","blob","get","newPlugins","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","set","PrecacheController","_cacheName","_urlsToCacheKeys","Map","_urlsToCacheModes","_cacheKeysToIntegrities","urlsToWarnAbout","cacheMode","has","firstEntry","secondEntry","integrity","warningMessage","console","warn","toBePrecached","alreadyPrecached","alreadyCachedRequests","keys","existingCacheKeys","precacheRequests","_addURLToCache","all","updatedURLs","item","notUpdatedURLs","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","delete","credentials","cacheWillUpdatePlugin","cacheWillUpdate","redirected","ignoreSearch","getCacheKeyForURL","fallbackToNetwork","matchPrecache","handler","createHandler","precacheController","options","urlsToCacheKeys","getURLsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","regExp","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","possibleCacheKey","listenerAdded","addRoute","addEventListener","precachedURL","responsePromise","then","respondWith","addFetchListener","installListener","waitUntil","install","catch","activateListener","activate","skipWaiting","clients","claim","sw","notification","action","matchAll","includeUncontrolled","i","data","id","postMessage","__WB_MANIFEST","addToCacheList"],"mappings":"mCAEA,IACI,KAAK,uBAAyB,IAElC,MAAO,eCHP,IACI,KAAK,6BAA+B,IAExC,MAAO,OCJH,EAA2B,GAG/B,SAAS,EAAoB,GAE5B,GAAG,EAAyB,GAC3B,OAAO,EAAyB,GAAU,QAG3C,IAAI,EAAS,EAAyB,GAAY,CAGjD,QAAS,IAOV,OAHA,EAAoB,GAAU,EAAQ,EAAO,QAAS,GAG/C,EAAO,qBCbf,MCgBa,EAdI,CAAC,KAAS,KACvB,IAAI,EAAM,EAIV,OAHI,EAAK,OAAS,IACd,GAAO,OAAO,KAAK,UAAU,IAE1B,GCIX,MAAM,UAAqB,MASvB,YAAY,EAAW,GAEnB,MADgB,EAAiB,EAAW,IAE5C,KAAK,KAAO,EACZ,KAAK,QAAU,GChBvB,MCNM,EAAsB,IAAI,ICDhC,MAAM,EAAoB,CACtB,gBAAiB,kBACjB,SAAU,cACV,OAAQ,UACR,QAAS,UACT,OAAgC,oBAAjB,aAA+B,aAAa,MAAQ,IAEjE,EAAoB,GACf,CAAC,EAAkB,OAAQ,EAAW,EAAkB,QAC1D,QAAQ,GAAU,GAAS,EAAM,OAAS,IAC1C,KAAK,KAOD,EAWS,GACP,GAAiB,EAAiB,EAAkB,UC7BnE,MCAa,EACD,CAAC,EAAS,IACP,EAAQ,QAAQ,GAAW,KAAgB,ICmBpD,EAAuB,OAAS,UAAS,OAAM,UAAU,OAC3D,MAAM,EAA4B,EAAmB,EAAS,sBAC9D,IAAI,EAAmB,EACvB,IAAK,MAAM,KAAU,EACjB,QAAyB,EAAwD,mBAAE,KAAK,EAAQ,CAAE,OAAM,QAAS,IACjF,iBAArB,IACP,EAAmB,IAAI,QAAQ,IAUvC,OAAO,GA+EL,EAAe,OAAS,YAAW,UAAS,QAAO,eAAc,UAAU,OAC7E,MAAM,QAAc,KAAK,OAAO,KAAK,GAC/B,QAAyB,EAAqB,CAChD,UAAS,UAAS,KAAM,SAE5B,IAAI,QAAuB,EAAM,MAAM,EAAkB,GASzD,IAAK,MAAM,KAAU,EACjB,GAAI,6BAAiE,EAAQ,CACzE,MAAM,EAAe,EAAoE,yBACzF,QAAuB,EAAa,KAAK,EAAQ,CAC7C,YACA,QACA,eACA,iBACA,QAAS,IAarB,OAAO,GAkFE,EA/DM,OAAS,YAAW,UAAS,WAAU,QAAO,UAAU,GAAI,mBAS3E,MAAM,QAAyB,EAAqB,CAChD,UAAS,UAAS,KAAM,UAE5B,IAAK,EAKD,MAAM,IAAI,EAAa,6BAA8B,CACjD,KF5LY,EE4LQ,EAAiB,IF3L9B,IAAI,IAAI,OAAO,GAAM,SAAS,MAG/B,KAAK,QAAQ,IAAI,OAAO,IAAI,SAAS,QAAW,OAJ3C,IAAC,EE+LpB,MAAM,OA1IqB,QAAS,UAAS,WAAU,QAAO,UAAU,OACxE,IAAI,EAAkB,EAClB,GAAc,EAClB,IAAK,MAAM,KAAU,EACjB,GAAI,oBAA6C,EAAQ,CACrD,GAAc,EACd,MAAM,EAAe,EAAgD,gBAerE,GAdA,QAAwB,EAAa,KAAK,EAAQ,CAC9C,UACA,SAAU,EACV,WAWC,EACD,MAwBZ,OApBK,IAiBD,EAAkB,GAA8C,MAA3B,EAAgB,OACjD,OAAkB,GAEnB,GAAoC,MA4Fb,CAAuB,CACjD,QACA,UACA,WACA,QAAS,IAEb,IAAK,EAKD,cAEJ,MAAM,QAAc,KAAK,OAAO,KAAK,GAC/B,EAAgB,EAAmB,EAAS,kBAC5C,EAAc,EAAc,OAAS,QACjC,EAAa,CAAE,YAAW,eAAc,QAAS,IACvD,KAKJ,UACU,EAAM,IAAI,EAAkB,GAEtC,MAAO,GAKH,KAHmB,uBAAf,EAAM,YCjNlB,iBAKI,IAAK,MAAM,KAAY,QACb,ID4MI,GAEJ,EAEV,IAAK,MAAM,KAAU,QACX,EAA8C,eAAE,KAAK,EAAQ,CAC/D,YACA,QACA,cACA,YAAa,EACb,QAAS,KErOrB,ICAI,ECOG,MAAM,EAUT,YAAY,EAAM,GAAS,gBAAE,EAAe,gBAAE,GAAqB,IAC/D,KAAK,IAAM,KACX,KAAK,MAAQ,EACb,KAAK,SAAW,EAChB,KAAK,iBAAmB,EACxB,KAAK,iBAAmB,GAAmB,KAAO,KAAK,SAQ3D,SACI,OAAO,KAAK,IAShB,aACI,IAAI,KAAK,IAmCT,OAjCA,KAAK,UAAY,IAAI,SAAQ,CAAC,EAAS,KAMnC,IAAI,GAAsB,EAC1B,YAAW,KACP,GAAsB,EACtB,EAAO,IAAI,MAAM,iDAClB,KAAK,cACR,MAAM,EAAc,UAAU,KAAK,KAAK,MAAO,KAAK,UACpD,EAAY,QAAU,IAAM,EAAO,EAAY,OAC/C,EAAY,gBAAmB,IACvB,GACA,EAAY,YAAY,QACxB,EAAY,OAAO,SAEmB,mBAA1B,KAAK,kBACjB,KAAK,iBAAiB,IAG9B,EAAY,UAAY,KACpB,MAAM,EAAK,EAAY,OACnB,EACA,EAAG,SAGH,EAAG,gBAAkB,KAAK,iBAAiB,KAAK,MAChD,EAAQ,QAIb,KAWX,aAAa,EAAW,GACpB,aAAc,KAAK,WAAW,EAAW,EAAO,IAAI,GAYxD,aAAa,EAAW,EAAO,GAC3B,aAAa,KAAK,eAAe,EAAW,CAAE,QAAO,UAYzD,iBAAiB,EAAW,EAAO,GAE/B,aADsB,KAAK,eAAe,EAAW,CAAE,QAAO,QAAO,aAAa,KACnE,KAAK,GAAU,EAAM,MAmBxC,qBAAqB,GAAW,MAAE,EAAK,MAAE,EAAQ,KAAI,UACrD,EAAY,OAAM,MAAE,EAAK,YAAE,GAAc,GAAW,IAChD,aAAa,KAAK,YAAY,CAAC,GAAY,YAAY,CAAC,EAAK,KACzD,MAAM,EAAQ,EAAI,YAAY,GACxB,EAAS,EAAQ,EAAM,MAAM,GAAS,EACtC,EAAU,GACV,EAAU,EAAO,WAAW,EAAO,GACzC,EAAQ,UAAY,KAChB,MAAM,EAAS,EAAQ,OACnB,GACA,EAAQ,KAAK,EAAc,EAAS,EAAO,OACvC,GAAS,EAAQ,QAAU,EAC3B,EAAK,GAGL,EAAO,YAIX,EAAK,OAsBrB,kBAAkB,EAAY,EAAM,GAEhC,aADM,KAAK,aACE,IAAI,SAAQ,CAAC,EAAS,KAC/B,MAAM,EAAM,KAAK,IAAI,YAAY,EAAY,GAC7C,EAAI,QAAU,IAAM,EAAO,EAAI,OAC/B,EAAI,WAAa,IAAM,IACvB,EAAS,GAAM,GAAU,EAAQ,QAazC,YAAY,EAAQ,EAAW,KAAS,GAQpC,aAAa,KAAK,YAAY,CAAC,GAAY,GAP1B,CAAC,EAAK,KACnB,MAAM,EAAW,EAAI,YAAY,GAG3B,EAAU,EAAS,GAAQ,MAAM,EAAU,GACjD,EAAQ,UAAY,IAAM,EAAK,EAAQ,WAiB/C,QACQ,KAAK,MACL,KAAK,IAAI,QACT,KAAK,IAAM,OAMvB,EAAU,UAAU,aAAe,IAEnC,MAAM,EAAgB,CAClB,SAAU,CAAC,MAAO,QAAS,SAAU,SAAU,cAC/C,UAAW,CAAC,MAAO,MAAO,QAAS,WAEvC,IAAK,MAAO,EAAM,KAAY,OAAO,QAAQ,GACzC,IAAK,MAAM,KAAU,EACb,KAAU,eAAe,YAEzB,EAAU,UAAU,GAChB,eAAgB,KAAc,GAC1B,aAAa,KAAK,MAAM,EAAQ,EAAW,KAAS,KCrOjE,MC4HD,EAjHe,OAAS,UAAS,eAAc,QAAO,UAAU,OAOlE,GANuB,iBAAZ,IACP,EAAU,IAAI,QAAQ,IAKtB,aAAiB,YAAc,EAAM,gBAAiB,CACtD,MAAM,QAAgC,EAAM,gBAC5C,GAAI,EAKA,OAAO,EAYf,MAAM,EAAqB,EAAmB,EAAS,gBAIjD,EAAkB,EAAmB,OAAS,EAChD,EAAQ,QAAU,KACtB,IACI,IAAK,MAAM,KAAU,EACjB,GAAI,qBAA+C,EAAQ,CACvD,MAAM,EAAe,EAAkD,iBACjE,EAAe,EAAQ,QAC7B,QAAgB,EAAa,KAAK,EAAQ,CACtC,QAAS,EACT,WAchB,MAAO,GACH,MAAM,IAAI,EAAa,kCAAmC,CACtD,YAAa,IAMrB,MAAM,EAAwB,EAAQ,QACtC,IACI,IAAI,EAGA,EADiB,aAAjB,EAAQ,WACc,MAAM,SAGN,MAAM,EAAS,GAOzC,IAAK,MAAM,KAAU,EACb,oBAA6C,IAC7C,QAAsB,EAAgD,gBACjE,KAAK,EAAQ,CACd,QACA,QAAS,EACT,SAAU,KAatB,OAAO,EAEX,MAAO,GACC,EAIJ,IAAK,MAAM,KAAU,QACX,EAA0C,aAAE,KAAK,EAAQ,CAC3D,QACA,QACA,gBAAiB,EAAgB,QACjC,QAAS,EAAsB,UAGvC,MAAM,ICjHd,eAAe,EAAa,EAAU,GAClC,MAAM,EAAiB,EAAS,QAE1B,EAAe,CACjB,QAAS,IAAI,QAAQ,EAAe,SACpC,OAAQ,EAAe,OACvB,WAAY,EAAe,YAGzB,EAAuB,EAAW,EAAS,GAAgB,EAI3D,EJpBV,WACI,QAAsB,IAAlB,EAA6B,CAC7B,MAAM,EAAe,IAAI,SAAS,IAClC,GAAI,SAAU,EACV,IACI,IAAI,SAAS,EAAa,MAC1B,GAAgB,EAEpB,MAAO,GACH,GAAgB,EAGxB,GAAgB,EAEpB,OAAO,EIMM,GACT,EAAe,WAAa,EAAe,OAC/C,OAAO,IAAI,SAAS,EAAM,UChC9B,MAAM,EAAU,GACH,EAAkB,CAK3B,IAAG,IACQ,EAMX,IAAI,GACA,EAAQ,QAAQ,KCFjB,SAAS,EAAe,GAC3B,IAAK,EACD,MAAM,IAAI,EAAa,oCAAqC,CAAE,UAIlE,GAAqB,iBAAV,EAAoB,CAC3B,MAAM,EAAY,IAAI,IAAI,EAAO,SAAS,MAC1C,MAAO,CACH,SAAU,EAAU,KACpB,IAAK,EAAU,MAGvB,MAAM,SAAE,EAAQ,IAAE,GAAQ,EAC1B,IAAK,EACD,MAAM,IAAI,EAAa,oCAAqC,CAAE,UAIlE,IAAK,EAAU,CACX,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,MAAO,CACH,SAAU,EAAU,KACpB,IAAK,EAAU,MAKvB,MAAM,EAAc,IAAI,IAAI,EAAK,SAAS,MACpC,EAAc,IAAI,IAAI,EAAK,SAAS,MAE1C,OADA,EAAY,aAAa,IAxCC,kBAwC0B,GAC7C,CACH,SAAU,EAAY,KACtB,IAAK,EAAY,MC9BzB,MAAM,EAOF,YAAY,GACR,KAAK,WAAa,EAA2B,GAC7C,KAAK,iBAAmB,IAAI,IAC5B,KAAK,kBAAoB,IAAI,IAC7B,KAAK,wBAA0B,IAAI,IAUvC,eAAe,GASX,MAAM,EAAkB,GACxB,IAAK,MAAM,KAAS,EAAS,CAEJ,iBAAV,EACP,EAAgB,KAAK,GAEhB,QAA4B,IAAnB,EAAM,UACpB,EAAgB,KAAK,EAAM,KAE/B,MAAM,SAAE,EAAQ,IAAE,GAAQ,EAAe,GACnC,EAA8B,iBAAV,GAAsB,EAAM,SAClD,SAAW,UACf,GAAI,KAAK,iBAAiB,IAAI,IAC1B,KAAK,iBAAiB,IAAI,KAAS,EACnC,MAAM,IAAI,EAAa,wCAAyC,CAC5D,WAAY,KAAK,iBAAiB,IAAI,GACtC,YAAa,IAGrB,GAAqB,iBAAV,GAAsB,EAAM,UAAW,CAC9C,GAAI,KAAK,wBAAwB,IAAI,IACjC,KAAK,wBAAwB,IAAI,KAAc,EAAM,UACrD,MAAM,IAAI,EAAa,4CAA6C,CAChE,QAGR,KAAK,wBAAwB,IAAI,EAAU,EAAM,WAIrD,GAFA,KAAK,iBAAiB,IAAI,EAAK,GAC/B,KAAK,kBAAkB,IAAI,EAAK,GAC5B,EAAgB,OAAS,EAAG,CAC5B,MAAM,EACF,qDAAS,EAAgB,KAAK,8EAK9B,QAAQ,KAAK,KAkB7B,eAAc,MAAE,EAAK,QAAE,GAAY,IAW/B,MAAM,EAAgB,GAChB,EAAmB,GACnB,QAAc,KAAK,OAAO,KAAK,KAAK,YACpC,QAA8B,EAAM,OACpC,EAAoB,IAAI,IAAI,EAAsB,KAAK,GAAY,EAAQ,OACjF,IAAK,MAAO,EAAK,KAAa,KAAK,iBAC3B,EAAkB,IAAI,GACtB,EAAiB,KAAK,GAGtB,EAAc,KAAK,CAAE,WAAU,QAGvC,MAAM,EAAmB,EAAc,KAAI,EAAG,WAAU,UACpD,MAAM,EAAY,KAAK,wBAAwB,IAAI,GAC7C,EAAY,KAAK,kBAAkB,IAAI,GAC7C,OAAO,KAAK,eAAe,CACvB,WACA,YACA,QACA,YACA,UACA,iBAGF,QAAQ,IAAI,GAKlB,MAAO,CACH,YALgB,EAAc,KAAK,GAAS,EAAK,MAMjD,eAAgB,GASxB,iBACI,MAAM,QAAc,KAAK,OAAO,KAAK,KAAK,YACpC,QAAgC,EAAM,OACtC,EAAoB,IAAI,IAAI,KAAK,iBAAiB,UAClD,EAAc,GACpB,IAAK,MAAM,KAAW,EACb,EAAkB,IAAI,EAAQ,aACzB,EAAM,OAAO,GACnB,EAAY,KAAK,EAAQ,MAMjC,MAAO,CAAE,eAsBb,sBAAqB,SAAE,EAAQ,IAAE,EAAG,UAAE,EAAS,MAAE,EAAK,QAAE,EAAO,UAAE,IAC7D,MAAM,EAAU,IAAI,QAAQ,EAAK,CAC7B,YACA,MAAO,EACP,YAAa,gBAEjB,IAQI,EARA,QAAiB,EAAmB,CACpC,QACA,UACA,YAMJ,IAAK,MAAM,KAAW,GAAW,GACzB,oBAAqB,IACrB,EAAwB,GAahC,KAVwB,QAId,EAAsB,gBAAgB,CAAE,QAAO,UAAS,aAG9D,EAAS,OAAS,KAIlB,MAAM,IAAI,EAAa,0BAA2B,CAC9C,MACA,OAAQ,EAAS,SAOrB,EAAS,aACT,QAAiB,EAAa,UAE5B,EAAiB,CACnB,QACA,UACA,WAEA,QAAS,IAAa,EAAM,EAAU,IAAI,QAAQ,GAClD,UAAW,KAAK,WAChB,aAAc,CACV,cAAc,KAU1B,qBACI,OAAO,KAAK,iBAQhB,gBACI,MAAO,IAAI,KAAK,iBAAiB,QAWrC,kBAAkB,GACd,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,OAAO,KAAK,iBAAiB,IAAI,EAAU,MAmB/C,oBAAoB,GAChB,MAAM,EAAM,aAAmB,QAAU,EAAQ,IAAM,EACjD,EAAW,KAAK,kBAAkB,GACxC,GAAI,EAAU,CAEV,aADoB,KAAK,OAAO,KAAK,KAAK,aAC7B,MAAM,IAiB3B,cAAc,GAAoB,GAC9B,OAAO,OAAS,cACZ,IACI,MAAM,QAAiB,KAAK,cAAc,GAC1C,GAAI,EACA,OAAO,EAIX,MAAM,IAAI,EAAa,yBAA0B,CAC7C,UAAW,KAAK,WAChB,IAAK,aAAmB,QAAU,EAAQ,IAAM,IAGxD,MAAO,GACH,GAAI,EAKA,OAAO,MAAM,GAEjB,MAAM,IAkBlB,wBAAwB,EAAK,GAAoB,GAE7C,IADiB,KAAK,kBAAkB,GAEpC,MAAM,IAAI,EAAa,oBAAqB,CAAE,QAElD,MAAM,EAAU,KAAK,cAAc,GAC7B,EAAU,IAAI,QAAQ,GAC5B,MAAO,IAAM,EAAQ,CAAE,aCvW/B,IAAI,EAKG,MAAM,EAAgC,KACpC,IACD,EAAqB,IAAI,GAEtB,GCGJ,MAAM,EAAoB,CAAC,EAAK,KACnC,MACM,EADqB,IACgB,qBAC3C,IAAK,MAAM,KCLR,UAAgC,GAAK,4BAAE,EAA2B,eAAE,EAAc,UAAE,EAAS,gBAAE,GAAqB,IACvH,MAAM,EAAY,IAAI,IAAI,EAAK,SAAS,MACxC,EAAU,KAAO,SACX,EAAU,KAChB,MAAM,ECHH,SAAmC,EAAW,EAA8B,IAG/E,IAAK,MAAM,IAAa,IAAI,EAAU,aAAa,QAC3C,EAA4B,MAAM,GAAW,EAAO,KAAK,MACzD,EAAU,aAAa,OAAO,GAGtC,OAAO,EDLyB,CAA0B,EAAW,GAErE,SADM,EAAwB,KAC1B,GAAkB,EAAwB,SAAS,SAAS,KAAM,CAClE,MAAM,EAAe,IAAI,IAAI,EAAwB,MACrD,EAAa,UAAY,QACnB,EAAa,KAEvB,GAAI,EAAW,CACX,MAAM,EAAW,IAAI,IAAI,EAAwB,MACjD,EAAS,UAAY,cACf,EAAS,KAEnB,GAAI,EAAiB,CACjB,MAAM,EAAiB,EAAgB,CAAE,IAAK,IAC9C,IAAK,MAAM,KAAgB,QACjB,EAAa,MDdD,CAAsB,EAAK,GAAU,CAC3D,MAAM,EAAmB,EAAgB,IAAI,GAC7C,GAAI,EACA,OAAO,IGnBnB,IAAI,GAAgB,EAyBpB,SAAS,EAAS,GACT,ICKuB,GAAG,8BAA8B,CAAC,SAAU,iBAAiB,aAAc,aAAY,EAAM,mBAAqB,MAC9I,MAAM,EAAY,IAElB,KAAK,iBAAiB,SAAW,IAC7B,MAAM,EAAe,EAAkB,EAAM,QAAQ,IAAK,CACtD,YACA,iBACA,8BACA,oBAEJ,IAAK,EAKD,OAEJ,IAAI,EAAkB,KAAK,OAAO,KAAK,GAAW,MAAM,GAC7C,EAAM,MAAM,KACpB,MAAM,GACD,GAUG,MAAM,KAmBjB,EAAM,YAAY,ODrDlB,CAAiB,GACjB,GAAgB,GEzBxB,MAAM,EAAmB,IACrB,MAAM,EAAqB,IACrB,EAAU,QAChB,EAAM,UAAU,EAAmB,QAAQ,CAAE,QAAO,YAC/C,OAAO,IAMR,MAAM,OAGR,EAAoB,IACtB,MAAM,EAAqB,IAC3B,EAAM,UAAU,EAAmB,aCRnC,KAAK,iBAAiB,WAAW,IAAM,KAAK,gBCH5C,KAAK,iBAAiB,YAAY,IAAM,KAAK,QAAQ,UCJzD,MAAM,EAAK,KCaX,IAA0B,EAAS,EDqBnC,EAAG,iBAAiB,qBAAqB,SAAU,GACjD,MAAM,EAAe,EAAE,aACjB,EAAS,EAAE,OAEjB,OAAQ,GACN,IAAK,SACL,IAAK,SACH,EAAa,QAEb,EAAE,UACA,EAAG,QACA,SAAS,CACR,qBAAqB,EACrB,KAAM,WAEP,MAAK,SAAU,GACd,IAAK,IAAI,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAEhC,EAAa,WACmB,IAAzB,EAAa,KAAK,IAEzB,EAAQ,GAAG,YAAY,CACrB,OAAQ,EACR,GAAI,EAAa,KAAK,aC5Cd,EDwDT,u5nOAAK,cCxDa,EDwDE,CACnC,WAAW,GHlCb,SAAkB,GACa,IACR,eAAe,GAC9B,EAAQ,OAAS,IAKjB,KAAK,iBAAiB,UAAW,GACjC,KAAK,iBAAiB,WAAY,II/BtC,CAAS,GACT,EAAS","file":"service-worker.js","sourceRoot":""} \ No newline at end of file diff --git a/server/api/action/action.attributes.js b/server/api/action/action.attributes.js index 2d5184d..d30bdc9 100644 --- a/server/api/action/action.attributes.js +++ b/server/api/action/action.attributes.js @@ -1 +1 @@ -const a0_0xb397=['integration','VIRTUAL','script','action','integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]','TEXT','getDataValue','motionbar[NULL,NULL,WinAppArguments]','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','contactManager','sequelize','motionbar','browser','STRING'];(function(_0x41d9f6,_0xb3971a){const _0x4a0771=function(_0x1679fd){while(--_0x1679fd){_0x41d9f6['push'](_0x41d9f6['shift']());}};_0x4a0771(++_0xb3971a);}(a0_0xb397,0x123));const a0_0x4a07=function(_0x41d9f6,_0xb3971a){_0x41d9f6=_0x41d9f6-0x0;let _0x4a0771=a0_0xb397[_0x41d9f6];return _0x4a0771;};const _0x4211bb=a0_0x4a07;'use strict';const Sequelize=require(_0x4211bb('0x5'));module['exports']={'name':{'type':Sequelize[_0x4211bb('0xa')],'get':function(){const _0x258200=_0x4211bb;return this[_0x258200('0x0')](_0x258200('0xc'));}},'action':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'isIn':{'args':[[_0x4211bb('0x4'),_0x4211bb('0x9'),_0x4211bb('0x6'),'jscripty','urlForward',_0x4211bb('0x7'),'bot',_0x4211bb('0xb')]],'msg':'Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script'}},'comment':_0x4211bb('0x3')},'data1':{'type':Sequelize[_0x4211bb('0x8')](0x1000),'comment':_0x4211bb('0x2')},'data2':{'type':Sequelize['STRING'](0x1000),'comment':_0x4211bb('0xd')},'data3':{'type':Sequelize[_0x4211bb('0x8')](0x1000),'comment':_0x4211bb('0x1')},'data4':{'type':Sequelize[_0x4211bb('0x8')](0x1000)},'data5':{'type':Sequelize[_0x4211bb('0x8')](0x1000)},'data6':{'type':Sequelize[_0x4211bb('0x8')]},'data7':{'type':Sequelize[_0x4211bb('0xe')]}}; \ No newline at end of file +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 diff --git a/server/api/action/action.controller.js b/server/api/action/action.controller.js index f995cac..46cdd80 100644 --- a/server/api/action/action.controller.js +++ b/server/api/action/action.controller.js @@ -1 +1 @@ -const a1_0x4203=['end','json','findOne','stack','then','Action','params','update','name','sendStatus','catch','status','destroy','body','../../config/logger','api'];(function(_0x262196,_0x4203fe){const _0x5ba777=function(_0x24e47b){while(--_0x24e47b){_0x262196['push'](_0x262196['shift']());}};_0x5ba777(++_0x4203fe);}(a1_0x4203,0xe6));const a1_0x5ba7=function(_0x262196,_0x4203fe){_0x262196=_0x262196-0x0;let _0x5ba777=a1_0x4203[_0x262196];return _0x5ba777;};const _0x41095d=a1_0x5ba7;'use strict';const logger=require(_0x41095d('0x8'))(_0x41095d('0x9')),db=require('../../mysqldb')['db'];function respondWithResult(_0x24e47b,_0x7a74ac){return _0x7a74ac=_0x7a74ac||0xc8,function(_0x5d0291){const _0x5e6016=a1_0x5ba7;if(_0x5d0291)return _0x24e47b[_0x5e6016('0x5')](_0x7a74ac)[_0x5e6016('0xb')](_0x5d0291);};}function saveUpdates(_0xda63a6){return function(_0x2e0cd3){if(_0x2e0cd3)return _0x2e0cd3['update'](_0xda63a6)['then'](function(_0x173d79){return _0x173d79;});return null;};}function removeEntity(_0x1668ca){return function(_0x143ed2){const _0x46e734=a1_0x5ba7;if(_0x143ed2)return _0x143ed2[_0x46e734('0x6')]()[_0x46e734('0xe')](function(){const _0x456d0a=_0x46e734;_0x1668ca[_0x456d0a('0x5')](0xcc)[_0x456d0a('0xa')]();});};}function handleEntityNotFound(_0x1c7c92){return function(_0xba45dc){const _0x398547=a1_0x5ba7;return!_0xba45dc&&_0x1c7c92[_0x398547('0x3')](0x194),_0xba45dc;};}function handleError(_0x46c7d8,_0x330fd6){return _0x330fd6=_0x330fd6||0x1f4,function(_0x1afeba){const _0x75372c=a1_0x5ba7;logger['error'](_0x1afeba[_0x75372c('0xd')]),_0x1afeba[_0x75372c('0x2')]&&delete _0x1afeba['name'],_0x46c7d8['status'](_0x330fd6)['send'](_0x1afeba);};}exports[_0x41095d('0x1')]=function(_0x47390a,_0x5cb2c0){const _0x56ca6c=_0x41095d;return _0x47390a[_0x56ca6c('0x7')]['id']&&delete _0x47390a['body']['id'],db[_0x56ca6c('0xf')][_0x56ca6c('0xc')]({'where':{'id':_0x47390a['params']['id']}})[_0x56ca6c('0xe')](handleEntityNotFound(_0x5cb2c0))['then'](saveUpdates(_0x47390a[_0x56ca6c('0x7')]))[_0x56ca6c('0xe')](respondWithResult(_0x5cb2c0,null))[_0x56ca6c('0x4')](handleError(_0x5cb2c0,null));},exports[_0x41095d('0x6')]=function(_0x180136,_0x272faf){const _0x3c9ea3=_0x41095d;return db['Action']['findOne']({'where':{'id':_0x180136[_0x3c9ea3('0x0')]['id']}})[_0x3c9ea3('0xe')](handleEntityNotFound(_0x272faf))[_0x3c9ea3('0xe')](removeEntity(_0x272faf))[_0x3c9ea3('0x4')](handleError(_0x272faf,null));}; \ No newline at end of file +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 diff --git a/server/api/action/action.model.js b/server/api/action/action.model.js index fd8dd4a..f2b4efa 100644 --- a/server/api/action/action.model.js +++ b/server/api/action/action.model.js @@ -1 +1 @@ -const a2_0x2a21=['tools_actions','exports','Action','./action.attributes'];(function(_0x40eda2,_0x2a218a){const _0x1333c8=function(_0x3649ff){while(--_0x3649ff){_0x40eda2['push'](_0x40eda2['shift']());}};_0x1333c8(++_0x2a218a);}(a2_0x2a21,0xb0));const a2_0x1333=function(_0x40eda2,_0x2a218a){_0x40eda2=_0x40eda2-0x0;let _0x1333c8=a2_0x2a21[_0x40eda2];return _0x1333c8;};const _0x469696=a2_0x1333;'use strict';const attributes=require(_0x469696('0x3'));module[_0x469696('0x1')]=function(_0x3649ff){const _0x3ef858=_0x469696,_0x501c77=_0x3649ff['define'](_0x3ef858('0x2'),attributes,{'tableName':_0x3ef858('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x501c77;}; \ No newline at end of file +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 diff --git a/server/api/action/index.js b/server/api/action/index.js index 27691f7..2c9275c 100644 --- a/server/api/action/index.js +++ b/server/api/action/index.js @@ -1 +1 @@ -const a3_0x25de=['update','./action.controller','../../components/auth/service','delete','/:id','express','isAuthenticated','Router','exports'];(function(_0x1797d9,_0x25de52){const _0x1edacf=function(_0x1be387){while(--_0x1be387){_0x1797d9['push'](_0x1797d9['shift']());}};_0x1edacf(++_0x25de52);}(a3_0x25de,0x75));const a3_0x1eda=function(_0x1797d9,_0x25de52){_0x1797d9=_0x1797d9-0x0;let _0x1edacf=a3_0x25de[_0x1797d9];return _0x1edacf;};const _0x1ddc94=a3_0x1eda;'use strict';const express=require(_0x1ddc94('0x5')),router=express[_0x1ddc94('0x7')](),auth=require(_0x1ddc94('0x2')),controller=require(_0x1ddc94('0x1'));router['put'](_0x1ddc94('0x4'),auth[_0x1ddc94('0x6')](),controller[_0x1ddc94('0x0')]),router[_0x1ddc94('0x3')]('/:id',auth[_0x1ddc94('0x6')](),controller['destroy']),module[_0x1ddc94('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticCustomReport/analyticCustomReport.attributes.js b/server/api/analyticCustomReport/analyticCustomReport.attributes.js index 83b5212..90a4977 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.attributes.js +++ b/server/api/analyticCustomReport/analyticCustomReport.attributes.js @@ -1 +1 @@ -const a4_0x450a=['exports','STRING','sequelize'];(function(_0x56c1a7,_0x450a1f){const _0x28153d=function(_0x275e9b){while(--_0x275e9b){_0x56c1a7['push'](_0x56c1a7['shift']());}};_0x28153d(++_0x450a1f);}(a4_0x450a,0x98));const a4_0x2815=function(_0x56c1a7,_0x450a1f){_0x56c1a7=_0x56c1a7-0x0;let _0x28153d=a4_0x450a[_0x56c1a7];return _0x28153d;};const _0x4610f6=a4_0x2815;'use strict';const Sequelize=require(_0x4610f6('0x0'));module[_0x4610f6('0x1')]={'name':{'type':Sequelize[_0x4610f6('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x4610f6('0x2')]},'parent':{'type':Sequelize[_0x4610f6('0x2')]},'table':{'type':Sequelize[_0x4610f6('0x2')]},'conditions':{'type':Sequelize['TEXT']},'joins':{'type':Sequelize['TEXT']}}; \ No newline at end of file +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 diff --git a/server/api/analyticCustomReport/analyticCustomReport.controller.js b/server/api/analyticCustomReport/analyticCustomReport.controller.js index 669984f..e26e2eb 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.controller.js +++ b/server/api/analyticCustomReport/analyticCustomReport.controller.js @@ -1 +1 @@ -const a5_0x4caa=['groupBy','cdr','No\x20available\x20data','select','UserProfileSection','group','filters','keyBy','COUNT(DISTINCT\x20%s)','get','includes','autoAssociation','fullPath','output','Limited\x20Query:','intersection','parentKey','nolimit','format','status','../../mysqldb','stack','SUM(%s)','keys','fork','cross_join','IS\x20NULL','model','type','metric','end','options','MAX(%s)','IS\x20NOT\x20NULL','value','web','fieldName','../../components/parsers/qs','body','then','UNIX_TIMESTAMP(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','endDate','../../components/export/','findAll','includeAll','path','UserProfileResource','send','index','rules','../../config/logger','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','replace','orderBy','offset','getFields','from','create','error','merge','foreignKey','right_join','alias','%s.%s\x20=\x20%s.%s','limit','util','destroy','join','catch','IS\x20EMPTY','clone','fields','condition','json','rows','generate','joins','count','GROUP_CONCAT(%s)','info','filter','DESC','Reports','findOne','operator','HOUR(%s)','map','VIRTUAL','parse','params','sequelize','squel','AnalyticCustomReport','debug','conditions','DATE(%s)','MetricId','QueryTypes','randomstring','rawAttributes','runReport','where','custom','SELECT','table','countTable','ROUND(%s)','run','CustomReports','order','dbH','sendStatus','COUNT(%s)','name','query','Please\x20insert\x20at\x20least\x20one\x20field','like','SEC_TO_TIME(%s)','field','user','length','lodash','sort','MIN(%s)','toString','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','left_join','Run\x20Query:','startDate','AVG(%s)','IS\x20NOT\x20EMPTY','Content-Range','include','AnalyticMetric','function','Unable\x20to\x20retrieve\x20the\x20current\x20user','foreignTable','userProfileId'];(function(_0x3e5873,_0x4caa99){const _0x300b37=function(_0x2af2d3){while(--_0x2af2d3){_0x3e5873['push'](_0x3e5873['shift']());}};_0x300b37(++_0x4caa99);}(a5_0x4caa,0x179));const a5_0x300b=function(_0x3e5873,_0x4caa99){_0x3e5873=_0x3e5873-0x0;let _0x300b37=a5_0x4caa[_0x3e5873];return _0x300b37;};const _0xd6cfa2=a5_0x300b;'use strict';const util=require(_0xd6cfa2('0x6d')),path=require(_0xd6cfa2('0x59')),_=require(_0xd6cfa2('0x19')),squel=require(_0xd6cfa2('0x87')),qs=require(_0xd6cfa2('0x50')),logger=require(_0xd6cfa2('0x5e'))('api'),db=require('../../mysqldb')['db'],dbH=require(_0xd6cfa2('0x3f'))[_0xd6cfa2('0xe')],{Op,ValidationErrorItem,QueryTypes}=require(_0xd6cfa2('0x86'));function respondWithResult(_0x2af2d3,_0x51cfca){return _0x51cfca=_0x51cfca||0xc8,function(_0x4fc731){const _0xe6b52b=a5_0x300b;if(_0x4fc731)return _0x2af2d3[_0xe6b52b('0x3e')](_0x51cfca)['json'](_0x4fc731);};}function respondWithFilteredResult(_0x57247a,_0xdce109){return function(_0x57ef52){const _0x4dd093=a5_0x300b;if(_0x57ef52){const _0x4781bf=_0x57ef52[_0x4dd093('0x79')],_0x270ae9=_0xdce109[_0x4dd093('0x62')];let _0x508392=_0xdce109[_0x4dd093('0x62')]+_0xdce109[_0x4dd093('0x6c')],_0x4c906a;return _0x508392>=_0x4781bf?(_0x508392=_0x4781bf,_0x4c906a=0xc8):_0x4c906a=0xce,_0x57247a[_0x4dd093('0x3e')](_0x4c906a),_0x57247a['set'](_0x4dd093('0x24'),_0x270ae9+'-'+_0x508392+'/'+_0x4781bf)[_0x4dd093('0x75')](_0x57ef52);}return null;};}function saveUpdates(_0x23c4ef){return function(_0x237c14){const _0xb5c78b=a5_0x300b;if(_0x237c14)return _0x237c14['update'](_0x23c4ef)[_0xb5c78b('0x52')](function(_0x953143){return _0x953143;});return null;};}function removeEntity(_0x33ecbc){return function(_0x4bef65){const _0x1c511a=a5_0x300b;if(_0x4bef65)return _0x4bef65[_0x1c511a('0x6e')]()[_0x1c511a('0x52')](function(){const _0x2f14b6=_0x1c511a,_0x1edd66=_0x4bef65[_0x2f14b6('0x34')]({'plain':!![]}),_0x5a002a=_0x2f14b6('0xc');return db[_0x2f14b6('0x5a')][_0x2f14b6('0x6e')]({'where':{'type':_0x5a002a,'resourceId':_0x1edd66['id']}})['then'](function(){return _0x4bef65;});})[_0x1c511a('0x52')](function(){const _0x59d0e8=_0x1c511a;_0x33ecbc[_0x59d0e8('0x3e')](0xcc)[_0x59d0e8('0x49')]();});};}function handleEntityNotFound(_0x53b6bc){return function(_0x182b90){const _0x142bc9=a5_0x300b;return!_0x182b90&&_0x53b6bc[_0x142bc9('0xf')](0x194),_0x182b90;};}function handleError(_0x599bef,_0x567a41){return _0x567a41=_0x567a41||0x1f4,function(_0x299503){const _0x3ea0d4=a5_0x300b;logger[_0x3ea0d4('0x66')](_0x299503[_0x3ea0d4('0x40')]),_0x299503['name']&&delete _0x299503[_0x3ea0d4('0x11')],_0x599bef[_0x3ea0d4('0x3e')](_0x567a41)[_0x3ea0d4('0x5b')](_0x299503);};}exports[_0xd6cfa2('0x5c')]=function(_0x49d301,_0x4f82a7){const _0x36d737=_0xd6cfa2;let _0xb03441={};const _0x34f583={},_0x3f3fa2={'count':0x0,'rows':[]},_0x5c2c7e=_[_0x36d737('0x82')](db[_0x36d737('0x88')][_0x36d737('0x3')],function(_0x43787e){const _0x379642=_0x36d737;return{'name':_0x43787e[_0x379642('0x4f')],'type':_0x43787e[_0x379642('0x47')]['key']};});_0x34f583[_0x36d737('0x46')]=_[_0x36d737('0x82')](_0x5c2c7e,_0x36d737('0x11')),_0x34f583[_0x36d737('0x12')]=_[_0x36d737('0x42')](_0x49d301[_0x36d737('0x12')]),_0x34f583[_0x36d737('0x31')]=_[_0x36d737('0x3a')](_0x34f583[_0x36d737('0x46')],_0x34f583['query']),_0xb03441['attributes']=_[_0x36d737('0x3a')](_0x34f583[_0x36d737('0x46')],qs[_0x36d737('0x73')](_0x49d301[_0x36d737('0x12')][_0x36d737('0x73')])),_0xb03441[_0x36d737('0x1e')]=_0xb03441['attributes'][_0x36d737('0x18')]?_0xb03441[_0x36d737('0x1e')]:_0x34f583[_0x36d737('0x46')];typeof _0x49d301[_0x36d737('0x12')][_0x36d737('0x3c')]==='undefined'&&(_0xb03441[_0x36d737('0x6c')]=qs['limit'](_0x49d301['query']['limit']),_0xb03441['offset']=qs[_0x36d737('0x62')](_0x49d301[_0x36d737('0x12')][_0x36d737('0x62')]));_0xb03441[_0x36d737('0xd')]=qs[_0x36d737('0x1a')](_0x49d301[_0x36d737('0x12')]['sort']),_0xb03441[_0x36d737('0x5')]=qs[_0x36d737('0x31')](_['pick'](_0x49d301[_0x36d737('0x12')],_0x34f583[_0x36d737('0x31')]),_0x5c2c7e);_0x49d301[_0x36d737('0x12')][_0x36d737('0x7c')]&&(_0xb03441[_0x36d737('0x5')]=_[_0x36d737('0x67')](_0xb03441[_0x36d737('0x5')],{[Op['or']]:_[_0x36d737('0x82')](_0x5c2c7e,function(_0xa854fd){const _0x1a5753=_0x36d737;if(_0xa854fd['type']!==_0x1a5753('0x83')){const _0x3405ef={};return _0x3405ef[_0xa854fd[_0x1a5753('0x11')]]={[Op[_0x1a5753('0x14')]]:'%'+_0x49d301[_0x1a5753('0x12')][_0x1a5753('0x7c')]+'%'},_0x3405ef;}})}));_0xb03441=_[_0x36d737('0x67')]({},_0xb03441,_0x49d301['options']);const _0x2fb890={'where':_0xb03441[_0x36d737('0x5')]};return db['AnalyticCustomReport'][_0x36d737('0x79')](_0x2fb890)[_0x36d737('0x52')](function(_0x83ada8){const _0x5715e2=_0x36d737;return _0x3f3fa2[_0x5715e2('0x79')]=_0x83ada8,_0x49d301[_0x5715e2('0x12')][_0x5715e2('0x58')]&&(_0xb03441[_0x5715e2('0x25')]=[{'all':!![]}]),db[_0x5715e2('0x88')][_0x5715e2('0x57')](_0xb03441);})['then'](function(_0xbd1792){const _0x3d6fec=_0x36d737;return _0x3f3fa2[_0x3d6fec('0x76')]=_0xbd1792,_0x3f3fa2;})[_0x36d737('0x52')](respondWithFilteredResult(_0x4f82a7,_0xb03441))[_0x36d737('0x70')](handleError(_0x4f82a7,null));},exports['show']=function(_0x2886e5,_0x2f65f2){const _0x21c7e3=_0xd6cfa2;let _0x110c7f={'raw':![],'where':{'id':_0x2886e5[_0x21c7e3('0x85')]['id']}};const _0x2ea7d6={};return _0x2ea7d6[_0x21c7e3('0x46')]=_[_0x21c7e3('0x42')](db[_0x21c7e3('0x88')][_0x21c7e3('0x3')]),_0x2ea7d6[_0x21c7e3('0x12')]=_[_0x21c7e3('0x42')](_0x2886e5[_0x21c7e3('0x12')]),_0x2ea7d6[_0x21c7e3('0x31')]=_[_0x21c7e3('0x3a')](_0x2ea7d6['model'],_0x2ea7d6[_0x21c7e3('0x12')]),_0x110c7f['attributes']=_[_0x21c7e3('0x3a')](_0x2ea7d6[_0x21c7e3('0x46')],qs['fields'](_0x2886e5['query'][_0x21c7e3('0x73')])),_0x110c7f[_0x21c7e3('0x1e')]=_0x110c7f['attributes'][_0x21c7e3('0x18')]?_0x110c7f['attributes']:_0x2ea7d6[_0x21c7e3('0x46')],_0x2886e5['query'][_0x21c7e3('0x58')]&&(_0x110c7f[_0x21c7e3('0x25')]=[{'all':!![]}]),_0x110c7f=_['merge']({},_0x110c7f,_0x2886e5['options']),db[_0x21c7e3('0x88')][_0x21c7e3('0x7f')](_0x110c7f)[_0x21c7e3('0x52')](handleEntityNotFound(_0x2f65f2,null))['then'](respondWithResult(_0x2f65f2,null))[_0x21c7e3('0x70')](handleError(_0x2f65f2,null));},exports[_0xd6cfa2('0x65')]=function(_0x563752,_0x140571){const _0x2454d5=_0xd6cfa2;return db[_0x2454d5('0x88')][_0x2454d5('0x65')](_0x563752['body'],{})['then'](function(_0x138ff4){const _0x152237=_0x2454d5,_0x1e2895=_0x563752[_0x152237('0x17')][_0x152237('0x34')]({'plain':!![]});if(!_0x1e2895)throw new Error(_0x152237('0x28'));if(_0x1e2895['role']===_0x152237('0x17')){const _0x3bd16b=_0x138ff4[_0x152237('0x34')]({'plain':!![]}),_0x1fd821=_0x152237('0x7e');return db[_0x152237('0x2f')][_0x152237('0x7f')]({'where':{'name':_0x1fd821,'userProfileId':_0x1e2895[_0x152237('0x2a')]},'raw':!![]})[_0x152237('0x52')](function(_0x4310eb){const _0x51f625=_0x152237;return _0x4310eb&&_0x4310eb[_0x51f625('0x36')]===0x0?db[_0x51f625('0x5a')]['create']({'name':_0x3bd16b[_0x51f625('0x11')],'resourceId':_0x3bd16b['id'],'type':'CustomReports','sectionId':_0x4310eb['id']},{})['then'](function(){return _0x138ff4;}):_0x138ff4;})['catch'](function(_0x2921bd){const _0x58754a=_0x152237;logger[_0x58754a('0x66')](_0x58754a('0x1d'),_0x2921bd);throw _0x2921bd;});}return _0x138ff4;})[_0x2454d5('0x52')](respondWithResult(_0x140571,0xc9))[_0x2454d5('0x70')](handleError(_0x140571,null));},exports['update']=function(_0x35a040,_0x513546){const _0x4eae2c=_0xd6cfa2;return _0x35a040['body']['id']&&delete _0x35a040['body']['id'],db[_0x4eae2c('0x88')][_0x4eae2c('0x7f')]({'where':{'id':_0x35a040[_0x4eae2c('0x85')]['id']}})[_0x4eae2c('0x52')](handleEntityNotFound(_0x513546,null))[_0x4eae2c('0x52')](saveUpdates(_0x35a040[_0x4eae2c('0x51')],null))[_0x4eae2c('0x52')](respondWithResult(_0x513546,null))[_0x4eae2c('0x70')](handleError(_0x513546,null));},exports['destroy']=function(_0xa6161d,_0x50358c){const _0x53e12f=_0xd6cfa2;return db[_0x53e12f('0x88')][_0x53e12f('0x7f')]({'where':{'id':_0xa6161d[_0x53e12f('0x85')]['id']}})[_0x53e12f('0x52')](handleEntityNotFound(_0x50358c,null))[_0x53e12f('0x52')](removeEntity(_0x50358c,null))[_0x53e12f('0x70')](handleError(_0x50358c,null));},exports['preview']=function(_0x702e57,_0x4a64cf){const _0x28a7f0=_0xd6cfa2,_0x4e269a=0xa,_0x5b79bc=[_0x28a7f0('0x6f'),_0x28a7f0('0x1f'),'right_join',_0x28a7f0('0x44')],_0xd3c2ef={'SUM':_0x28a7f0('0x41'),'COUNT':_0x28a7f0('0x10'),'COUNT\x20DISTINCT':_0x28a7f0('0x33'),'MAX':'MAX(%s)','MIN':_0x28a7f0('0x1b'),'AVG':_0x28a7f0('0x22'),'GROUP_CONCAT':_0x28a7f0('0x7a'),'GROUP_CONCAT\x20ASC':_0x28a7f0('0x5f'),'GROUP_CONCAT\x20DESC':_0x28a7f0('0x54')},_0x56cf5e={'SEC_TO_TIME':_0x28a7f0('0x15'),'DATE':_0x28a7f0('0x8b'),'HOUR':'HOUR(%s)','ROUND':_0x28a7f0('0xa'),'UNIX_TIMESTAMP':_0x28a7f0('0x53')},_0xd5502a=function(_0x5c38f6){const _0x3429b5=_0x28a7f0;return!_[_0x3429b5('0x35')]([_0x3429b5('0x45'),_0x3429b5('0x4c'),_0x3429b5('0x71'),_0x3429b5('0x23')],_0x5c38f6);},_0x21e56d=function(_0x299002){const _0x635965=_0x28a7f0;if(!_0x299002||!_0x299002['rules']['length'])return'';let _0x4039a5='(';for(let _0x77d3b6=0x0;_0x77d3b6<_0x299002['rules']['length'];_0x77d3b6+=0x1){_0x77d3b6>0x0&&(_0x4039a5+='\x20'+_0x299002[_0x635965('0x80')]+'\x20'),_0x4039a5+=_0x299002[_0x635965('0x5d')][_0x77d3b6]['group']?_0x21e56d(_0x299002['rules'][_0x77d3b6][_0x635965('0x30')]):_0x299002[_0x635965('0x5d')][_0x77d3b6]['field']+'\x20'+_0x299002['rules'][_0x77d3b6][_0x635965('0x74')]+(_0xd5502a(_0x299002[_0x635965('0x5d')][_0x77d3b6][_0x635965('0x74')])?'\x20'+_0x299002[_0x635965('0x5d')][_0x77d3b6][_0x635965('0x4d')]:'');}return _0x4039a5+')';};let _0x2ede73={'where':{'id':_0x702e57[_0x28a7f0('0x85')]['id']}},_0x4fefec,_0x4301c9,_0xe972d8;return _0x2ede73=_[_0x28a7f0('0x67')]({},_0x2ede73,_0x702e57['options']),db[_0x28a7f0('0x88')][_0x28a7f0('0x7f')](_0x2ede73)[_0x28a7f0('0x52')](function(_0x16dc12){if(_0x16dc12)return _0x4fefec=_0x16dc12,_0x16dc12['getFields']();return null;})[_0x28a7f0('0x52')](function(_0x32db24){const _0x264b56=_0x28a7f0;if(_0x32db24){if(!_0x32db24['length'])throw new ValidationErrorItem(_0x264b56('0x13'),0x193);return _0x4301c9=_0x32db24,db[_0x264b56('0x26')]['findAll']({'raw':!![]});}return null;})['then'](function(_0x379007){const _0x1dc4a2=_0x28a7f0;if(_0x379007){_0xe972d8=_[_0x1dc4a2('0x32')](_0x379007,'id');let _0x52fafa;const _0x57e731=squel[_0x1dc4a2('0x2e')]();_0x57e731['from'](_0x4fefec[_0x1dc4a2('0x8')]);for(let _0x17ea01=0x0;_0x17ea01<_0x4301c9[_0x1dc4a2('0x18')];_0x17ea01+=0x1){_0x52fafa=_0x4301c9[_0x17ea01]['MetricId']?_0xe972d8[_0x4301c9[_0x17ea01][_0x1dc4a2('0x0')]]['metric']:_0x4301c9[_0x17ea01][_0x1dc4a2('0x16')],_0x52fafa=_0x4301c9[_0x17ea01][_0x1dc4a2('0x27')]?_[_0x1dc4a2('0x60')](_0xd3c2ef[_0x4301c9[_0x17ea01]['function']],'%s',_0x52fafa):_0x52fafa,_0x52fafa=_0x4301c9[_0x17ea01][_0x1dc4a2('0x3d')]?_['replace'](_0x56cf5e[_0x4301c9[_0x17ea01]['format']],'%s',_0x52fafa):_0x52fafa,_0x4301c9[_0x17ea01]['groupBy']&&_0x57e731['group'](_0x52fafa),_0x4301c9[_0x17ea01][_0x1dc4a2('0x61')]&&_0x57e731[_0x1dc4a2('0xd')](_0x52fafa,_0x4301c9[_0x17ea01][_0x1dc4a2('0x61')]===_0x1dc4a2('0x7d')?![]:!![]),_0x57e731['field'](_0x52fafa,_0x4301c9[_0x17ea01]['alias']||_0x52fafa);}if(_0x4fefec[_0x1dc4a2('0x78')]){_0x4fefec[_0x1dc4a2('0x78')]=JSON[_0x1dc4a2('0x84')](_0x4fefec[_0x1dc4a2('0x78')]);for(let _0x41ff69=0x0;_0x41ff69<_0x4fefec[_0x1dc4a2('0x78')][_0x1dc4a2('0x18')];_0x41ff69+=0x1){_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x47')]&&_[_0x1dc4a2('0x35')](_0x5b79bc,_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x47')])&&_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x3b')]&&_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x29')]&&_0x4fefec['joins'][_0x41ff69][_0x1dc4a2('0x68')]&&_0x57e731[_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x47')]](_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x29')],null,util[_0x1dc4a2('0x3d')]('%s.%s\x20=\x20%s.%s',_0x4fefec[_0x1dc4a2('0x8')],_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69]['parentKey'],_0x4fefec[_0x1dc4a2('0x78')][_0x41ff69][_0x1dc4a2('0x29')],_0x4fefec['joins'][_0x41ff69][_0x1dc4a2('0x68')]));}}return _0x4fefec['conditions']&&(_0x4fefec['conditions']=JSON['parse'](_0x4fefec['conditions']),_0x57e731[_0x1dc4a2('0x5')](_0x21e56d(_0x4fefec[_0x1dc4a2('0x8a')][_0x1dc4a2('0x30')]))),_0x57e731['limit'](_0x4e269a),_0x57e731[_0x1dc4a2('0x62')](0x0),logger[_0x1dc4a2('0x89')]('Limited\x20Query:',_0x57e731[_0x1dc4a2('0x1c')]()),db['sequelize'][_0x1dc4a2('0x12')](_0x57e731[_0x1dc4a2('0x1c')](),{'type':QueryTypes[_0x1dc4a2('0x7')]});}})[_0x28a7f0('0x52')](respondWithResult(_0x4a64cf,null))['catch'](handleError(_0x4a64cf,null));};function runReport(_0x255ee1,_0xdd8a07,_0x466fe5){const _0x5b6994=_0xd6cfa2,_0xf7954b=_0xdd8a07['name'],_0x4791eb=0xa,_0x59a185=['join',_0x5b6994('0x1f'),_0x5b6994('0x69'),_0x5b6994('0x44')],_0x17c0fd={'SUM':_0x5b6994('0x41'),'COUNT':_0x5b6994('0x10'),'COUNT\x20DISTINCT':_0x5b6994('0x33'),'MAX':_0x5b6994('0x4b'),'MIN':_0x5b6994('0x1b'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x5b6994('0x7a'),'GROUP_CONCAT\x20ASC':_0x5b6994('0x5f'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x491cb0={'SEC_TO_TIME':_0x5b6994('0x15'),'DATE':_0x5b6994('0x8b'),'HOUR':_0x5b6994('0x81'),'ROUND':_0x5b6994('0xa'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x25ca4f=function(_0x266aab){const _0x5202a7=_0x5b6994;return!_[_0x5202a7('0x35')]([_0x5202a7('0x45'),_0x5202a7('0x4c'),_0x5202a7('0x71'),'IS\x20NOT\x20EMPTY'],_0x266aab);},_0x3dff77=function(_0x3c20a5){const _0x5bd9a8=_0x5b6994;if(!_0x3c20a5||!_0x3c20a5[_0x5bd9a8('0x5d')][_0x5bd9a8('0x18')])return'';let _0x360fee='(';for(let _0x53da6d=0x0;_0x53da6d<_0x3c20a5[_0x5bd9a8('0x5d')][_0x5bd9a8('0x18')];_0x53da6d+=0x1){_0x53da6d>0x0&&(_0x360fee+='\x20'+_0x3c20a5[_0x5bd9a8('0x80')]+'\x20'),_0x360fee+=_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x30')]?_0x3dff77(_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x30')]):_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x16')]+'\x20'+_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x74')]+(_0x25ca4f(_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x74')])?'\x20'+_0x3c20a5[_0x5bd9a8('0x5d')][_0x53da6d][_0x5bd9a8('0x4d')]:'');}return _0x360fee+')';};let _0x115bce={'where':{'id':_0x255ee1['id']}},_0xa1f0ff,_0x4e3209,_0x560384,_0x4b4e8e,_0x3c6cbf;return _0x115bce=_[_0x5b6994('0x67')]({},_0x115bce,_0x466fe5),db[_0x5b6994('0x88')][_0x5b6994('0x7f')](_0x115bce)[_0x5b6994('0x52')](function(_0x12e2c9){const _0x3ae0bf=_0x5b6994;if(_0x12e2c9)return _0xa1f0ff=_0x12e2c9,_0x12e2c9[_0x3ae0bf('0x63')]();return null;})['then'](function(_0x3b66b2){const _0x30d629=_0x5b6994;if(_0x3b66b2){if(!_0x3b66b2[_0x30d629('0x18')])throw new ValidationErrorItem(_0x30d629('0x13'),0x193);return _0x4e3209=_0x3b66b2,db['AnalyticMetric']['findAll']({'raw':!![]});}return null;})[_0x5b6994('0x52')](function(_0x37c690){const _0x1c5d6f=_0x5b6994;if(_0x37c690){_0x560384=_[_0x1c5d6f('0x32')](_0x37c690,'id');let _0x5cf1ff;const _0x39f398=squel[_0x1c5d6f('0x2e')]();_0x39f398['from'](_0xa1f0ff['table']);for(let _0x138d94=0x0;_0x138d94<_0x4e3209[_0x1c5d6f('0x18')];_0x138d94+=0x1){_0x5cf1ff=_0x4e3209[_0x138d94][_0x1c5d6f('0x0')]?_0x560384[_0x4e3209[_0x138d94]['MetricId']]['metric']:_0x4e3209[_0x138d94][_0x1c5d6f('0x16')],_0x5cf1ff=_0x4e3209[_0x138d94][_0x1c5d6f('0x27')]?_[_0x1c5d6f('0x60')](_0x17c0fd[_0x4e3209[_0x138d94][_0x1c5d6f('0x27')]],'%s',_0x5cf1ff):_0x5cf1ff,_0x5cf1ff=_0x4e3209[_0x138d94]['format']?_[_0x1c5d6f('0x60')](_0x491cb0[_0x4e3209[_0x138d94][_0x1c5d6f('0x3d')]],'%s',_0x5cf1ff):_0x5cf1ff,_0x4e3209[_0x138d94][_0x1c5d6f('0x2b')]&&_0x39f398[_0x1c5d6f('0x30')](_0x5cf1ff),_0x4e3209[_0x138d94][_0x1c5d6f('0x61')]&&_0x39f398['order'](_0x5cf1ff,_0x4e3209[_0x138d94]['orderBy']===_0x1c5d6f('0x7d')?![]:!![]),_0x39f398[_0x1c5d6f('0x16')](_0x5cf1ff,_0x4e3209[_0x138d94][_0x1c5d6f('0x6a')]||_0x5cf1ff);}if(_0xa1f0ff[_0x1c5d6f('0x78')]){_0xa1f0ff[_0x1c5d6f('0x78')]=JSON[_0x1c5d6f('0x84')](_0xa1f0ff[_0x1c5d6f('0x78')]);for(let _0x1c22fb=0x0;_0x1c22fb<_0xa1f0ff['joins'][_0x1c5d6f('0x18')];_0x1c22fb+=0x1){_0xa1f0ff['joins'][_0x1c22fb][_0x1c5d6f('0x47')]&&_['includes'](_0x59a185,_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x47')])&&_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x3b')]&&_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x29')]&&_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb]['foreignKey']&&_0x39f398[_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x47')]](_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x29')],null,util[_0x1c5d6f('0x3d')]('%s.%s\x20=\x20%s.%s',_0xa1f0ff[_0x1c5d6f('0x8')],_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb]['parentKey'],_0xa1f0ff['joins'][_0x1c22fb][_0x1c5d6f('0x29')],_0xa1f0ff[_0x1c5d6f('0x78')][_0x1c22fb][_0x1c5d6f('0x68')]));}}return _0xa1f0ff[_0x1c5d6f('0x8a')]&&(_0xa1f0ff['conditions']=JSON['parse'](_0xa1f0ff[_0x1c5d6f('0x8a')]),_0x39f398['where'](_0x3dff77(_0xa1f0ff[_0x1c5d6f('0x8a')][_0x1c5d6f('0x30')]))),_0x3c6cbf=_0x39f398['clone'](),_0x39f398[_0x1c5d6f('0x6c')](_0x4791eb),_0x39f398[_0x1c5d6f('0x62')](0x0),logger[_0x1c5d6f('0x89')](_0x1c5d6f('0x39'),_0x39f398['toString']()),db[_0x1c5d6f('0x86')]['query'](_0x39f398[_0x1c5d6f('0x1c')](),{'type':QueryTypes[_0x1c5d6f('0x7')]});}})[_0x5b6994('0x52')](function(_0x12c478){const _0x2648d7=_0x5b6994;if(!_0x12c478[_0x2648d7('0x18')])throw new ValidationErrorItem(_0x2648d7('0x2d'),0xcc);if(_0xdd8a07[_0x2648d7('0x38')]===_0x2648d7('0x4e'))return null;const _0x3e29f5=_[_0x2648d7('0x67')](_0xdd8a07,{'name':_0xdd8a07[_0x2648d7('0x37')]||_0xdd8a07['name']||_0xa1f0ff[_0x2648d7('0x11')],'basename':_0xf7954b,'savename':util[_0x2648d7('0x3d')]('%s-%s.%s',_0xdd8a07['name']||_0xa1f0ff['name'],require(_0x2648d7('0x2'))[_0x2648d7('0x77')](0x4),_0xdd8a07[_0x2648d7('0x38')]||'csv'),'reportId':_0xa1f0ff['id'],'reportType':_0x2648d7('0x6')});return db['AnalyticExtractedReport'][_0x2648d7('0x65')](_0x3e29f5,{'raw':!![]});})[_0x5b6994('0x52')](function(_0x24cd86){const _0x2d55fc=_0x5b6994;_0xa1f0ff[_0x2d55fc('0x8')]===_0x2d55fc('0x2c')?_0x3c6cbf[_0x2d55fc('0x5')](_0xa1f0ff[_0x2d55fc('0x8')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0xdd8a07[_0x2d55fc('0x21')],_0xdd8a07[_0x2d55fc('0x55')]):_0x3c6cbf[_0x2d55fc('0x5')](_0xa1f0ff[_0x2d55fc('0x8')]+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0xdd8a07[_0x2d55fc('0x21')],_0xdd8a07['endDate']);if(_0x24cd86)return logger[_0x2d55fc('0x7b')](_0x2d55fc('0x20'),_0x3c6cbf['toString']()),require('child_process')[_0x2d55fc('0x43')](path[_0x2d55fc('0x6f')](__dirname,_0x2d55fc('0x56'),_0x24cd86[_0x2d55fc('0x38')]),[_0x24cd86['id'],_0x3c6cbf[_0x2d55fc('0x1c')](),path[_0x2d55fc('0x6f')](__dirname,'../../files/reports',_0x24cd86['savename']),_0xf7954b]),_0x24cd86;else{const _0x5d05e2=squel[_0x2d55fc('0x2e')]();return _0x5d05e2[_0x2d55fc('0x64')]('('+_0x3c6cbf[_0x2d55fc('0x1c')]()+')',_0x2d55fc('0x9')),_0x5d05e2[_0x2d55fc('0x16')]('COUNT(*)',_0x2d55fc('0x79')),_0x3c6cbf[_0x2d55fc('0x6c')](_0xdd8a07[_0x2d55fc('0x6c')]||_0x4791eb),_0x3c6cbf['offset'](_0xdd8a07['offset']||0x0),dbH['sequelize']['query'](_0x5d05e2[_0x2d55fc('0x1c')](),{'type':dbH[_0x2d55fc('0x86')][_0x2d55fc('0x1')][_0x2d55fc('0x7')]})[_0x2d55fc('0x52')](function(_0x534865){const _0x319f26=_0x2d55fc;return!_0x534865[_0x319f26('0x18')]?_0x4b4e8e=0x0:_0x4b4e8e=_0x534865[0x0][_0x319f26('0x79')]||0x0,dbH[_0x319f26('0x86')][_0x319f26('0x12')](_0x3c6cbf[_0x319f26('0x1c')](),{'type':dbH[_0x319f26('0x86')][_0x319f26('0x1')][_0x319f26('0x7')]});})[_0x2d55fc('0x52')](function(_0x5e1de7){return{'rows':_0x5e1de7||[],'count':_0x4b4e8e};});}});}exports[_0xd6cfa2('0xb')]=function(_0x1c0811,_0x51c693){const _0x51aea1=_0xd6cfa2;return runReport(_0x1c0811[_0x51aea1('0x85')],_0x1c0811[_0x51aea1('0x12')],_0x1c0811['options'])[_0x51aea1('0x52')](respondWithResult(_0x51c693,null))['catch'](handleError(_0x51c693,null));},exports[_0xd6cfa2('0x4')]=runReport,exports[_0xd6cfa2('0x12')]=function(_0x1e0da4,_0x934097){const _0x3c3516=_0xd6cfa2,_0x1b31f5=0xa,_0x174b34=[_0x3c3516('0x6f'),'left_join',_0x3c3516('0x69'),'cross_join'],_0x14209d={'SUM':_0x3c3516('0x41'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x3c3516('0x33'),'MAX':_0x3c3516('0x4b'),'MIN':_0x3c3516('0x1b'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x3c3516('0x7a'),'GROUP_CONCAT\x20ASC':_0x3c3516('0x5f'),'GROUP_CONCAT\x20DESC':_0x3c3516('0x54')},_0x43fbcc={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x3c3516('0x8b'),'HOUR':_0x3c3516('0x81'),'ROUND':_0x3c3516('0xa'),'UNIX_TIMESTAMP':_0x3c3516('0x53')},_0x26f485=function(_0x401627){const _0x4ae661=_0x3c3516;return!_[_0x4ae661('0x35')]([_0x4ae661('0x45'),_0x4ae661('0x4c'),_0x4ae661('0x71'),_0x4ae661('0x23')],_0x401627);},_0x5e443f=function(_0x292fa7){const _0x5c4421=_0x3c3516;if(!_0x292fa7||!_0x292fa7[_0x5c4421('0x5d')][_0x5c4421('0x18')])return'';let _0x395ce8='(';for(let _0x54f70a=0x0;_0x54f70a<_0x292fa7[_0x5c4421('0x5d')][_0x5c4421('0x18')];_0x54f70a+=0x1){_0x54f70a>0x0&&(_0x395ce8+='\x20'+_0x292fa7[_0x5c4421('0x80')]+'\x20'),_0x395ce8+=_0x292fa7[_0x5c4421('0x5d')][_0x54f70a]['group']?_0x5e443f(_0x292fa7[_0x5c4421('0x5d')][_0x54f70a]['group']):_0x292fa7[_0x5c4421('0x5d')][_0x54f70a][_0x5c4421('0x16')]+'\x20'+_0x292fa7[_0x5c4421('0x5d')][_0x54f70a][_0x5c4421('0x74')]+(_0x26f485(_0x292fa7['rules'][_0x54f70a]['condition'])?'\x20'+_0x292fa7['rules'][_0x54f70a][_0x5c4421('0x4d')]:'');}return _0x395ce8+')';};let _0x550bb6={'where':{'id':_0x1e0da4[_0x3c3516('0x85')]['id']}},_0x50b0c3,_0x5b819b,_0x50d315,_0x91ef5c;return _0x550bb6=_[_0x3c3516('0x67')]({},_0x550bb6,_0x1e0da4[_0x3c3516('0x4a')]),db[_0x3c3516('0x88')][_0x3c3516('0x7f')](_0x550bb6)['then'](function(_0x3052c9){const _0x535894=_0x3c3516;if(_0x3052c9)return _0x50b0c3=_0x3052c9,_0x3052c9[_0x535894('0x63')]();return null;})[_0x3c3516('0x52')](function(_0x319a63){const _0x6e69d5=_0x3c3516;if(_0x319a63){if(!_0x319a63['length'])throw new ValidationErrorItem(_0x6e69d5('0x13'),0x193);return _0x5b819b=_0x319a63,db[_0x6e69d5('0x26')][_0x6e69d5('0x57')]({'raw':!![]});}return null;})[_0x3c3516('0x52')](function(_0x51bafa){const _0x16bac9=_0x3c3516;if(_0x51bafa){_0x50d315=_['keyBy'](_0x51bafa,'id');let _0x6285e2;const _0x461c3f=squel[_0x16bac9('0x2e')]();_0x461c3f[_0x16bac9('0x64')](_0x50b0c3[_0x16bac9('0x8')]);for(let _0x515e02=0x0;_0x515e02<_0x5b819b[_0x16bac9('0x18')];_0x515e02+=0x1){_0x6285e2=_0x5b819b[_0x515e02][_0x16bac9('0x0')]?_0x50d315[_0x5b819b[_0x515e02][_0x16bac9('0x0')]][_0x16bac9('0x48')]:_0x5b819b[_0x515e02][_0x16bac9('0x16')],_0x6285e2=_0x5b819b[_0x515e02][_0x16bac9('0x27')]?_[_0x16bac9('0x60')](_0x14209d[_0x5b819b[_0x515e02][_0x16bac9('0x27')]],'%s',_0x6285e2):_0x6285e2,_0x6285e2=_0x5b819b[_0x515e02][_0x16bac9('0x3d')]?_[_0x16bac9('0x60')](_0x43fbcc[_0x5b819b[_0x515e02][_0x16bac9('0x3d')]],'%s',_0x6285e2):_0x6285e2,_0x5b819b[_0x515e02]['groupBy']&&_0x461c3f[_0x16bac9('0x30')](_0x6285e2),_0x5b819b[_0x515e02][_0x16bac9('0x61')]&&_0x461c3f[_0x16bac9('0xd')](_0x6285e2,_0x5b819b[_0x515e02][_0x16bac9('0x61')]===_0x16bac9('0x7d')?![]:!![]),_0x461c3f['field'](_0x6285e2,_0x5b819b[_0x515e02][_0x16bac9('0x6a')]||_0x6285e2);}if(_0x50b0c3[_0x16bac9('0x78')]){_0x50b0c3[_0x16bac9('0x78')]=JSON[_0x16bac9('0x84')](_0x50b0c3[_0x16bac9('0x78')]);for(let _0x5a53ef=0x0;_0x5a53ef<_0x50b0c3[_0x16bac9('0x78')][_0x16bac9('0x18')];_0x5a53ef+=0x1){_0x50b0c3['joins'][_0x5a53ef][_0x16bac9('0x47')]&&_['includes'](_0x174b34,_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x47')])&&_0x50b0c3['joins'][_0x5a53ef]['parentKey']&&_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x29')]&&_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef]['foreignKey']&&_0x461c3f[_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef]['type']](_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x29')],null,util['format'](_0x16bac9('0x6b'),_0x50b0c3[_0x16bac9('0x8')],_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x3b')],_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x29')],_0x50b0c3[_0x16bac9('0x78')][_0x5a53ef][_0x16bac9('0x68')]));}}return _0x50b0c3[_0x16bac9('0x8a')]&&(_0x50b0c3[_0x16bac9('0x8a')]=JSON[_0x16bac9('0x84')](_0x50b0c3[_0x16bac9('0x8a')]),_0x461c3f[_0x16bac9('0x5')](_0x5e443f(_0x50b0c3[_0x16bac9('0x8a')][_0x16bac9('0x30')]))),_0x91ef5c=_0x461c3f[_0x16bac9('0x72')](),_0x461c3f[_0x16bac9('0x6c')](_0x1b31f5),_0x461c3f['offset'](0x0),logger[_0x16bac9('0x89')](_0x16bac9('0x39'),_0x461c3f[_0x16bac9('0x1c')]()),db[_0x16bac9('0x86')][_0x16bac9('0x12')](_0x461c3f[_0x16bac9('0x1c')](),{'type':QueryTypes[_0x16bac9('0x7')]});}})[_0x3c3516('0x52')](function(){const _0x46fd2b=_0x3c3516;return{'sql':_0x91ef5c[_0x46fd2b('0x1c')]()};})['then'](respondWithResult(_0x934097,null))[_0x3c3516('0x70')](handleError(_0x934097,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index d834190..5e7e255 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a6_0x4e79=['define','AnalyticCustomReport','exports','analytics_custom_reports'];(function(_0x158ec2,_0x4e79cb){const _0x4e0580=function(_0x3e0755){while(--_0x3e0755){_0x158ec2['push'](_0x158ec2['shift']());}};_0x4e0580(++_0x4e79cb);}(a6_0x4e79,0xaf));const a6_0x4e05=function(_0x158ec2,_0x4e79cb){_0x158ec2=_0x158ec2-0x0;let _0x4e0580=a6_0x4e79[_0x158ec2];return _0x4e0580;};const _0x1ff592=a6_0x4e05;'use strict';const attributes=require('./analyticCustomReport.attributes');module[_0x1ff592('0x3')]=function(_0x3e0755){const _0x474f01=_0x1ff592,_0x110b71=_0x3e0755[_0x474f01('0x1')](_0x474f01('0x2'),attributes,{'tableName':_0x474f01('0x0'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x110b71;}; \ No newline at end of file +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 diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index 3ff75f3..cc42e8e 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a7_0x2e30=['/:id/query','post','./analyticCustomReport.controller','index','exports','run','/:id/run','Router','query','isAuthenticated','get','/:id','/:id/preview','destroy','preview','express','update','show'];(function(_0x4c0de3,_0x2e30a0){const _0x19479d=function(_0x3da41a){while(--_0x3da41a){_0x4c0de3['push'](_0x4c0de3['shift']());}};_0x19479d(++_0x2e30a0);}(a7_0x2e30,0x137));const a7_0x1947=function(_0x4c0de3,_0x2e30a0){_0x4c0de3=_0x4c0de3-0x0;let _0x19479d=a7_0x2e30[_0x4c0de3];return _0x19479d;};const _0x1b148c=a7_0x1947;'use strict';const express=require(_0x1b148c('0xa')),router=express[_0x1b148c('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x1b148c('0xf'));router['get']('/',auth['isAuthenticated'](),controller[_0x1b148c('0x10')]),router[_0x1b148c('0x5')](_0x1b148c('0x6'),auth[_0x1b148c('0x4')](),controller[_0x1b148c('0xc')]),router[_0x1b148c('0x5')](_0x1b148c('0x7'),auth['isAuthenticated'](),controller[_0x1b148c('0x9')]),router[_0x1b148c('0x5')](_0x1b148c('0x1'),auth[_0x1b148c('0x4')](),controller[_0x1b148c('0x0')]),router['get'](_0x1b148c('0xd'),auth[_0x1b148c('0x4')](),controller[_0x1b148c('0x3')]),router[_0x1b148c('0xe')]('/',auth[_0x1b148c('0x4')](),controller['create']),router['put']('/:id',auth['isAuthenticated'](),controller[_0x1b148c('0xb')]),router['delete'](_0x1b148c('0x6'),auth[_0x1b148c('0x4')](),controller[_0x1b148c('0x8')]),module[_0x1b148c('0x11')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 122fb78..9cd19d0 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a8_0x328f=['STRING','exports','TEXT'];(function(_0x3e1e39,_0x328fbb){const _0x4a75c0=function(_0x5038d5){while(--_0x5038d5){_0x3e1e39['push'](_0x3e1e39['shift']());}};_0x4a75c0(++_0x328fbb);}(a8_0x328f,0x95));const a8_0x4a75=function(_0x3e1e39,_0x328fbb){_0x3e1e39=_0x3e1e39-0x0;let _0x4a75c0=a8_0x328f[_0x3e1e39];return _0x4a75c0;};const _0x39e245=a8_0x4a75;'use strict';const Sequelize=require('sequelize');module[_0x39e245('0x2')]={'name':{'type':Sequelize[_0x39e245('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x39e245('0x1')]},'parent':{'type':Sequelize[_0x39e245('0x1')]},'table':{'type':Sequelize['STRING']},'conditions':{'type':Sequelize[_0x39e245('0x0')]},'joins':{'type':Sequelize[_0x39e245('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index 204f8f1..6db9801 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a9_0x12ff=['value','pick','alias','end','SEC_TO_TIME(%s)','update','group','sendStatus','stack','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','lodash','getFields','format','../../mysqldb','MAX(%s)','VIRTUAL','attributes','COUNT(%s)','foreignKey','Limited\x20Query:','DESC','IS\x20NOT\x20NULL','cross_join','findAll','includeAll','merge','debug','filters','replace','cdr','parentKey','query','joins','MetricId','generate','startDate','where','orderBy','.calldate\x20BETWEEN\x20?\x20AND\x20?','json','%s-%s.%s','MIN(%s)','table','set','AnalyticDefaultReport','filter','index','randomstring','right_join','foreignTable','intersection','IS\x20EMPTY','keys','keyBy','type','fullPath','dbH','options','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','AVG(%s)','AnalyticExtractedReport','DefaultReports','name','catch','fieldName','Unable\x20to\x20retrieve\x20the\x20current\x20user','sequelize','limit','destroy','SUM(%s)','ROUND(%s)','GROUP_CONCAT(%s)','child_process','length','rawAttributes','then','conditions','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','show','error','.createdAt\x20BETWEEN\x20?\x20AND\x20?','map','clone','autoAssociation','toString','info','IS\x20NOT\x20EMPTY','endDate','IS\x20NULL','path','offset','AnalyticMetric','QueryTypes','rules','fields','COUNT(DISTINCT\x20%s)','findOne','sort','condition','userProfileId','count','SELECT','fork','key','model','left_join','include','create','from','get','parse','web','select','countTable','../../components/export/','field','HOUR(%s)','UNIX_TIMESTAMP(%s)','body','../../files/reports','role','preview','Please\x20insert\x20at\x20least\x20one\x20field','../../components/parsers/qs','undefined','No\x20available\x20data','squel','DATE(%s)','like','output','includes','metric','user','join','UserProfileSection','../../config/logger','runReport','groupBy','run','params','order','status','function','%s.%s\x20=\x20%s.%s','savename','operator'];(function(_0x31ae14,_0x12ff4a){const _0x58aafb=function(_0xbd6a30){while(--_0xbd6a30){_0x31ae14['push'](_0x31ae14['shift']());}};_0x58aafb(++_0x12ff4a);}(a9_0x12ff,0x186));const a9_0x58aa=function(_0x31ae14,_0x12ff4a){_0x31ae14=_0x31ae14-0x0;let _0x58aafb=a9_0x12ff[_0x31ae14];return _0x58aafb;};const _0x440b6c=a9_0x58aa;'use strict';const util=require('util'),path=require(_0x440b6c('0x89')),_=require(_0x440b6c('0x3a')),squel=require(_0x440b6c('0x1c')),qs=require(_0x440b6c('0x19')),logger=require(_0x440b6c('0x25'))('api'),db=require(_0x440b6c('0x3d'))['db'],dbH=require('../../mysqldb')[_0x440b6c('0x68')],{Op,ValidationErrorItem,QueryTypes}=require(_0x440b6c('0x72'));function respondWithResult(_0xbd6a30,_0x49a5d8){return _0x49a5d8=_0x49a5d8||0xc8,function(_0x500b03){const _0x2f6d35=a9_0x58aa;if(_0x500b03)return _0xbd6a30[_0x2f6d35('0x2b')](_0x49a5d8)[_0x2f6d35('0x57')](_0x500b03);};}function respondWithFilteredResult(_0x207e70,_0x58d89c){return function(_0x5522e8){const _0x404eb8=a9_0x58aa;if(_0x5522e8){const _0x3d481e=_0x5522e8[_0x404eb8('0x2')],_0x4b78cd=_0x58d89c['offset'];let _0x58e246=_0x58d89c['offset']+_0x58d89c[_0x404eb8('0x73')],_0x504b32;return _0x58e246>=_0x3d481e?(_0x58e246=_0x3d481e,_0x504b32=0xc8):_0x504b32=0xce,_0x207e70['status'](_0x504b32),_0x207e70[_0x404eb8('0x5b')]('Content-Range',_0x4b78cd+'-'+_0x58e246+'/'+_0x3d481e)[_0x404eb8('0x57')](_0x5522e8);}return null;};}function saveUpdates(_0x4452e8){return function(_0x398707){const _0xa5b4ef=a9_0x58aa;if(_0x398707)return _0x398707[_0xa5b4ef('0x35')](_0x4452e8)[_0xa5b4ef('0x7b')](function(_0x1657b7){return _0x1657b7;});return null;};}function removeEntity(_0x25c528){return function(_0x2ce98e){const _0x39ef2d=a9_0x58aa;if(_0x2ce98e)return _0x2ce98e[_0x39ef2d('0x74')]()[_0x39ef2d('0x7b')](function(){const _0x8045bb=_0x39ef2d,_0x588bbf=_0x2ce98e[_0x8045bb('0xb')]({'plain':!![]}),_0x430c37='DefaultReports';return db['UserProfileResource'][_0x8045bb('0x74')]({'where':{'type':_0x430c37,'resourceId':_0x588bbf['id']}})[_0x8045bb('0x7b')](function(){return _0x2ce98e;});})[_0x39ef2d('0x7b')](function(){const _0x2aed26=_0x39ef2d;_0x25c528[_0x2aed26('0x2b')](0xcc)[_0x2aed26('0x33')]();});};}function handleEntityNotFound(_0x21d879){return function(_0x2a9af0){const _0x5b928d=a9_0x58aa;return!_0x2a9af0&&_0x21d879[_0x5b928d('0x37')](0x194),_0x2a9af0;};}function handleError(_0x4398c3,_0x16f601){return _0x16f601=_0x16f601||0x1f4,function(_0x41abbe){const _0x252941=a9_0x58aa;logger['error'](_0x41abbe[_0x252941('0x38')]),_0x41abbe['name']&&delete _0x41abbe[_0x252941('0x6e')],_0x4398c3[_0x252941('0x2b')](_0x16f601)['send'](_0x41abbe);};}exports[_0x440b6c('0x5e')]=function(_0x49e76a,_0x542615){const _0x420a29=_0x440b6c;let _0x4bd643={};const _0x3f68d8={},_0x51adba={'count':0x0,'rows':[]},_0x29c087=_[_0x420a29('0x81')](db[_0x420a29('0x5c')]['rawAttributes'],function(_0x158893){const _0xb8e614=_0x420a29;return{'name':_0x158893[_0xb8e614('0x70')],'type':_0x158893[_0xb8e614('0x66')][_0xb8e614('0x5')]};});_0x3f68d8[_0x420a29('0x6')]=_[_0x420a29('0x81')](_0x29c087,_0x420a29('0x6e')),_0x3f68d8[_0x420a29('0x4f')]=_[_0x420a29('0x64')](_0x49e76a['query']),_0x3f68d8[_0x420a29('0x4b')]=_[_0x420a29('0x62')](_0x3f68d8[_0x420a29('0x6')],_0x3f68d8[_0x420a29('0x4f')]),_0x4bd643[_0x420a29('0x40')]=_[_0x420a29('0x62')](_0x3f68d8['model'],qs['fields'](_0x49e76a[_0x420a29('0x4f')][_0x420a29('0x8e')])),_0x4bd643['attributes']=_0x4bd643[_0x420a29('0x40')][_0x420a29('0x79')]?_0x4bd643[_0x420a29('0x40')]:_0x3f68d8['model'];typeof _0x49e76a[_0x420a29('0x4f')]['nolimit']===_0x420a29('0x1a')&&(_0x4bd643['limit']=qs[_0x420a29('0x73')](_0x49e76a[_0x420a29('0x4f')][_0x420a29('0x73')]),_0x4bd643[_0x420a29('0x8a')]=qs['offset'](_0x49e76a['query'][_0x420a29('0x8a')]));_0x4bd643[_0x420a29('0x2a')]=qs[_0x420a29('0x91')](_0x49e76a[_0x420a29('0x4f')]['sort']),_0x4bd643[_0x420a29('0x54')]=qs[_0x420a29('0x4b')](_[_0x420a29('0x31')](_0x49e76a[_0x420a29('0x4f')],_0x3f68d8[_0x420a29('0x4b')]),_0x29c087);_0x49e76a[_0x420a29('0x4f')][_0x420a29('0x5d')]&&(_0x4bd643[_0x420a29('0x54')]=_[_0x420a29('0x49')](_0x4bd643[_0x420a29('0x54')],{[Op['or']]:_[_0x420a29('0x81')](_0x29c087,function(_0x11417c){const _0x460270=_0x420a29;if(_0x11417c[_0x460270('0x66')]!==_0x460270('0x3f')){const _0x4da4f3={};return _0x4da4f3[_0x11417c[_0x460270('0x6e')]]={[Op[_0x460270('0x1e')]]:'%'+_0x49e76a[_0x460270('0x4f')][_0x460270('0x5d')]+'%'},_0x4da4f3;}})}));_0x4bd643=_[_0x420a29('0x49')]({},_0x4bd643,_0x49e76a['options']);const _0x1483ab={'where':_0x4bd643[_0x420a29('0x54')]};return db[_0x420a29('0x5c')]['count'](_0x1483ab)['then'](function(_0xde7def){const _0x1c6718=_0x420a29;return _0x51adba['count']=_0xde7def,_0x49e76a[_0x1c6718('0x4f')][_0x1c6718('0x48')]&&(_0x4bd643[_0x1c6718('0x8')]=[{'all':!![]}]),db[_0x1c6718('0x5c')][_0x1c6718('0x47')](_0x4bd643);})[_0x420a29('0x7b')](function(_0x4f27ec){return _0x51adba['rows']=_0x4f27ec,_0x51adba;})[_0x420a29('0x7b')](respondWithFilteredResult(_0x542615,_0x4bd643))[_0x420a29('0x6f')](handleError(_0x542615,null));},exports[_0x440b6c('0x7e')]=function(_0x541937,_0x117e47){const _0x373f5e=_0x440b6c;let _0x56a470={'raw':!![],'where':{'id':_0x541937[_0x373f5e('0x29')]['id']}};const _0x417b70={};return _0x417b70[_0x373f5e('0x6')]=_[_0x373f5e('0x64')](db[_0x373f5e('0x5c')][_0x373f5e('0x7a')]),_0x417b70['query']=_[_0x373f5e('0x64')](_0x541937[_0x373f5e('0x4f')]),_0x417b70[_0x373f5e('0x4b')]=_['intersection'](_0x417b70[_0x373f5e('0x6')],_0x417b70[_0x373f5e('0x4f')]),_0x56a470['attributes']=_[_0x373f5e('0x62')](_0x417b70[_0x373f5e('0x6')],qs[_0x373f5e('0x8e')](_0x541937[_0x373f5e('0x4f')][_0x373f5e('0x8e')])),_0x56a470[_0x373f5e('0x40')]=_0x56a470[_0x373f5e('0x40')][_0x373f5e('0x79')]?_0x56a470[_0x373f5e('0x40')]:_0x417b70[_0x373f5e('0x6')],_0x541937[_0x373f5e('0x4f')][_0x373f5e('0x48')]&&(_0x56a470[_0x373f5e('0x8')]=[{'all':!![]}]),_0x56a470=_[_0x373f5e('0x49')]({},_0x56a470,_0x541937['options']),db[_0x373f5e('0x5c')][_0x373f5e('0x90')](_0x56a470)[_0x373f5e('0x7b')](handleEntityNotFound(_0x117e47,null))['then'](respondWithResult(_0x117e47,null))[_0x373f5e('0x6f')](handleError(_0x117e47,null));},exports['create']=function(_0x5bb864,_0x25dd90){const _0x2db438=_0x440b6c;return db[_0x2db438('0x5c')][_0x2db438('0x9')](_0x5bb864[_0x2db438('0x14')],{})[_0x2db438('0x7b')](function(_0x2885a8){const _0x2e1347=_0x2db438,_0x48e586=_0x5bb864[_0x2e1347('0x22')][_0x2e1347('0xb')]({'plain':!![]});if(!_0x48e586)throw new Error(_0x2e1347('0x71'));if(_0x48e586[_0x2e1347('0x16')]===_0x2e1347('0x22')){const _0x163261=_0x2885a8[_0x2e1347('0xb')]({'plain':!![]}),_0x22e8f3='Reports';return db[_0x2e1347('0x24')][_0x2e1347('0x90')]({'where':{'name':_0x22e8f3,'userProfileId':_0x48e586[_0x2e1347('0x1')]},'raw':!![]})[_0x2e1347('0x7b')](function(_0x46766f){const _0x1e6e5c=_0x2e1347;return _0x46766f&&_0x46766f[_0x1e6e5c('0x83')]===0x0?db['UserProfileResource'][_0x1e6e5c('0x9')]({'name':_0x163261[_0x1e6e5c('0x6e')],'resourceId':_0x163261['id'],'type':_0x1e6e5c('0x6d'),'sectionId':_0x46766f['id']},{})[_0x1e6e5c('0x7b')](function(){return _0x2885a8;}):_0x2885a8;})[_0x2e1347('0x6f')](function(_0x2c929b){const _0x4fe4e5=_0x2e1347;logger[_0x4fe4e5('0x7f')](_0x4fe4e5('0x6a'),_0x2c929b);throw _0x2c929b;});}return _0x2885a8;})[_0x2db438('0x7b')](respondWithResult(_0x25dd90,0xc9))[_0x2db438('0x6f')](handleError(_0x25dd90,null));},exports[_0x440b6c('0x35')]=function(_0x4442d0,_0xab8690){const _0x1d0337=_0x440b6c;return _0x4442d0[_0x1d0337('0x14')]['id']&&delete _0x4442d0['body']['id'],db[_0x1d0337('0x5c')]['findOne']({'where':{'id':_0x4442d0['params']['id']}})['then'](handleEntityNotFound(_0xab8690,null))[_0x1d0337('0x7b')](saveUpdates(_0x4442d0[_0x1d0337('0x14')],null))['then'](respondWithResult(_0xab8690,null))[_0x1d0337('0x6f')](handleError(_0xab8690,null));},exports['destroy']=function(_0x1386c2,_0x27fd83){const _0x351828=_0x440b6c;return db['AnalyticDefaultReport'][_0x351828('0x90')]({'where':{'id':_0x1386c2[_0x351828('0x29')]['id']}})[_0x351828('0x7b')](handleEntityNotFound(_0x27fd83,null))[_0x351828('0x7b')](removeEntity(_0x27fd83,null))['catch'](handleError(_0x27fd83,null));},exports[_0x440b6c('0x17')]=function(_0x2f99a5,_0x14348a){const _0x19fbe5=_0x440b6c,_0x55167b=0xa,_0x5c47b6=[_0x19fbe5('0x23'),_0x19fbe5('0x7'),_0x19fbe5('0x60'),_0x19fbe5('0x46')],_0x306253={'SUM':_0x19fbe5('0x75'),'COUNT':_0x19fbe5('0x41'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x19fbe5('0x3e'),'MIN':_0x19fbe5('0x59'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x19fbe5('0x77'),'GROUP_CONCAT\x20ASC':_0x19fbe5('0x39'),'GROUP_CONCAT\x20DESC':_0x19fbe5('0x7d')},_0x4d2de9={'SEC_TO_TIME':_0x19fbe5('0x34'),'DATE':_0x19fbe5('0x1d'),'HOUR':_0x19fbe5('0x12'),'ROUND':_0x19fbe5('0x76'),'UNIX_TIMESTAMP':_0x19fbe5('0x13')},_0x47c0e6=function(_0x1f4133){const _0x466a7a=_0x19fbe5;return!_[_0x466a7a('0x20')]([_0x466a7a('0x88'),_0x466a7a('0x45'),_0x466a7a('0x63'),_0x466a7a('0x86')],_0x1f4133);},_0x18744d=function(_0x721086){const _0x1ec7e9=_0x19fbe5;if(!_0x721086||!_0x721086[_0x1ec7e9('0x8d')]['length'])return'';let _0x40ee7e='(';for(let _0x4d02a9=0x0;_0x4d02a9<_0x721086['rules']['length'];_0x4d02a9+=0x1){_0x4d02a9>0x0&&(_0x40ee7e+='\x20'+_0x721086[_0x1ec7e9('0x2f')]+'\x20'),_0x40ee7e+=_0x721086['rules'][_0x4d02a9][_0x1ec7e9('0x36')]?_0x18744d(_0x721086[_0x1ec7e9('0x8d')][_0x4d02a9][_0x1ec7e9('0x36')]):_0x721086[_0x1ec7e9('0x8d')][_0x4d02a9]['field']+'\x20'+_0x721086['rules'][_0x4d02a9][_0x1ec7e9('0x0')]+(_0x47c0e6(_0x721086[_0x1ec7e9('0x8d')][_0x4d02a9][_0x1ec7e9('0x0')])?'\x20'+_0x721086['rules'][_0x4d02a9][_0x1ec7e9('0x30')]:'');}return _0x40ee7e+')';};let _0x157d15={'where':{'id':_0x2f99a5[_0x19fbe5('0x29')]['id']}},_0x28cc0c,_0xb476f5,_0x207218;return _0x157d15=_[_0x19fbe5('0x49')]({},_0x157d15,_0x2f99a5[_0x19fbe5('0x69')]),db[_0x19fbe5('0x5c')][_0x19fbe5('0x90')](_0x157d15)[_0x19fbe5('0x7b')](function(_0x9f2db7){const _0x37a548=_0x19fbe5;if(_0x9f2db7)return _0x28cc0c=_0x9f2db7,_0x9f2db7[_0x37a548('0x3b')]();return null;})[_0x19fbe5('0x7b')](function(_0x3d86e4){const _0x9f6928=_0x19fbe5;if(_0x3d86e4){if(!_0x3d86e4[_0x9f6928('0x79')])throw new ValidationErrorItem(_0x9f6928('0x18'),0x193);return _0xb476f5=_0x3d86e4,db['AnalyticMetric'][_0x9f6928('0x47')]({'raw':!![]});}return null;})[_0x19fbe5('0x7b')](function(_0x31b77d){const _0x72441c=_0x19fbe5;if(_0x31b77d){_0x207218=_[_0x72441c('0x65')](_0x31b77d,'id');let _0xf6903;const _0x32f508=squel[_0x72441c('0xe')]();_0x32f508[_0x72441c('0xa')](_0x28cc0c[_0x72441c('0x5a')]);for(let _0x971a68=0x0;_0x971a68<_0xb476f5[_0x72441c('0x79')];_0x971a68+=0x1){_0xf6903=_0xb476f5[_0x971a68][_0x72441c('0x51')]?_0x207218[_0xb476f5[_0x971a68][_0x72441c('0x51')]]['metric']:_0xb476f5[_0x971a68][_0x72441c('0x11')],_0xf6903=_0xb476f5[_0x971a68]['function']?_[_0x72441c('0x4c')](_0x306253[_0xb476f5[_0x971a68]['function']],'%s',_0xf6903):_0xf6903,_0xf6903=_0xb476f5[_0x971a68][_0x72441c('0x3c')]?_[_0x72441c('0x4c')](_0x4d2de9[_0xb476f5[_0x971a68][_0x72441c('0x3c')]],'%s',_0xf6903):_0xf6903,_0xb476f5[_0x971a68][_0x72441c('0x27')]&&_0x32f508[_0x72441c('0x36')](_0xf6903),_0xb476f5[_0x971a68][_0x72441c('0x55')]&&_0x32f508[_0x72441c('0x2a')](_0xf6903,_0xb476f5[_0x971a68][_0x72441c('0x55')]===_0x72441c('0x44')?![]:!![]),_0x32f508[_0x72441c('0x11')](_0xf6903,_0xb476f5[_0x971a68]['alias']||_0xf6903);}if(_0x28cc0c[_0x72441c('0x50')]){_0x28cc0c[_0x72441c('0x50')]=JSON['parse'](_0x28cc0c[_0x72441c('0x50')]);for(let _0x2ecf5c=0x0;_0x2ecf5c<_0x28cc0c[_0x72441c('0x50')]['length'];_0x2ecf5c+=0x1){_0x28cc0c[_0x72441c('0x50')][_0x2ecf5c][_0x72441c('0x66')]&&_[_0x72441c('0x20')](_0x5c47b6,_0x28cc0c[_0x72441c('0x50')][_0x2ecf5c][_0x72441c('0x66')])&&_0x28cc0c[_0x72441c('0x50')][_0x2ecf5c][_0x72441c('0x4e')]&&_0x28cc0c['joins'][_0x2ecf5c][_0x72441c('0x61')]&&_0x28cc0c['joins'][_0x2ecf5c][_0x72441c('0x42')]&&_0x32f508[_0x28cc0c['joins'][_0x2ecf5c][_0x72441c('0x66')]](_0x28cc0c[_0x72441c('0x50')][_0x2ecf5c][_0x72441c('0x61')],null,util[_0x72441c('0x3c')](_0x72441c('0x2d'),_0x28cc0c[_0x72441c('0x5a')],_0x28cc0c['joins'][_0x2ecf5c][_0x72441c('0x4e')],_0x28cc0c['joins'][_0x2ecf5c]['foreignTable'],_0x28cc0c[_0x72441c('0x50')][_0x2ecf5c][_0x72441c('0x42')]));}}return _0x28cc0c[_0x72441c('0x7c')]&&(_0x28cc0c[_0x72441c('0x7c')]=JSON['parse'](_0x28cc0c[_0x72441c('0x7c')]),_0x32f508[_0x72441c('0x54')](_0x18744d(_0x28cc0c['conditions']['group']))),_0x32f508['limit'](_0x55167b),_0x32f508[_0x72441c('0x8a')](0x0),logger[_0x72441c('0x4a')]('Limited\x20Query:',_0x32f508['toString']()),db[_0x72441c('0x72')][_0x72441c('0x4f')](_0x32f508[_0x72441c('0x84')](),{'type':QueryTypes[_0x72441c('0x3')]});}})['then'](respondWithResult(_0x14348a,null))[_0x19fbe5('0x6f')](handleError(_0x14348a,null));};function runReport(_0x225750,_0x429598,_0x367a8f){const _0x50d4f4=_0x440b6c,_0x7fb503=_0x429598[_0x50d4f4('0x6e')],_0x421fef=0xa,_0x39df22=[_0x50d4f4('0x23'),'left_join','right_join','cross_join'],_0xdbc9e5={'SUM':_0x50d4f4('0x75'),'COUNT':_0x50d4f4('0x41'),'COUNT\x20DISTINCT':_0x50d4f4('0x8f'),'MAX':_0x50d4f4('0x3e'),'MIN':_0x50d4f4('0x59'),'AVG':_0x50d4f4('0x6b'),'GROUP_CONCAT':_0x50d4f4('0x77'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x50d4f4('0x7d')},_0x5dc27a={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x50d4f4('0x1d'),'HOUR':_0x50d4f4('0x12'),'ROUND':_0x50d4f4('0x76'),'UNIX_TIMESTAMP':_0x50d4f4('0x13')},_0x531aa8=function(_0x1d75c4){const _0x17b21b=_0x50d4f4;return!_[_0x17b21b('0x20')](['IS\x20NULL',_0x17b21b('0x45'),'IS\x20EMPTY',_0x17b21b('0x86')],_0x1d75c4);},_0x4202ea=function(_0x2ae19c){const _0xc8647e=_0x50d4f4;if(!_0x2ae19c||!_0x2ae19c[_0xc8647e('0x8d')][_0xc8647e('0x79')])return'';let _0x44cdfb='(';for(let _0xb1b007=0x0;_0xb1b007<_0x2ae19c[_0xc8647e('0x8d')][_0xc8647e('0x79')];_0xb1b007+=0x1){_0xb1b007>0x0&&(_0x44cdfb+='\x20'+_0x2ae19c[_0xc8647e('0x2f')]+'\x20'),_0x44cdfb+=_0x2ae19c[_0xc8647e('0x8d')][_0xb1b007]['group']?_0x4202ea(_0x2ae19c[_0xc8647e('0x8d')][_0xb1b007]['group']):_0x2ae19c['rules'][_0xb1b007][_0xc8647e('0x11')]+'\x20'+_0x2ae19c[_0xc8647e('0x8d')][_0xb1b007][_0xc8647e('0x0')]+(_0x531aa8(_0x2ae19c[_0xc8647e('0x8d')][_0xb1b007][_0xc8647e('0x0')])?'\x20'+_0x2ae19c[_0xc8647e('0x8d')][_0xb1b007][_0xc8647e('0x30')]:'');}return _0x44cdfb+')';};let _0x4976ff={'where':{'id':_0x225750['id']}},_0x9a0842,_0x360f00,_0x38025f,_0x197e2d,_0x50c06b;return _0x4976ff=_[_0x50d4f4('0x49')]({},_0x4976ff,_0x367a8f),db[_0x50d4f4('0x5c')][_0x50d4f4('0x90')](_0x4976ff)[_0x50d4f4('0x7b')](function(_0x4dfa7c){const _0xd4cf81=_0x50d4f4;if(_0x4dfa7c)return _0x9a0842=_0x4dfa7c,_0x4dfa7c[_0xd4cf81('0x3b')]();return null;})[_0x50d4f4('0x7b')](function(_0x44d5ec){const _0x2421e7=_0x50d4f4;if(_0x44d5ec){if(!_0x44d5ec[_0x2421e7('0x79')])throw new ValidationErrorItem(_0x2421e7('0x18'),0x193);return _0x360f00=_0x44d5ec,db[_0x2421e7('0x8b')]['findAll']({'raw':!![]});}return null;})[_0x50d4f4('0x7b')](function(_0x3f854c){const _0x299796=_0x50d4f4;if(_0x3f854c){_0x38025f=_[_0x299796('0x65')](_0x3f854c,'id');let _0x1ef349;const _0x6d3705=squel['select']();_0x6d3705[_0x299796('0xa')](_0x9a0842[_0x299796('0x5a')]);for(let _0x574fa2=0x0;_0x574fa2<_0x360f00['length'];_0x574fa2+=0x1){_0x1ef349=_0x360f00[_0x574fa2][_0x299796('0x51')]?_0x38025f[_0x360f00[_0x574fa2][_0x299796('0x51')]][_0x299796('0x21')]:_0x360f00[_0x574fa2]['field'],_0x1ef349=_0x360f00[_0x574fa2]['function']?_[_0x299796('0x4c')](_0xdbc9e5[_0x360f00[_0x574fa2][_0x299796('0x2c')]],'%s',_0x1ef349):_0x1ef349,_0x1ef349=_0x360f00[_0x574fa2]['format']?_[_0x299796('0x4c')](_0x5dc27a[_0x360f00[_0x574fa2]['format']],'%s',_0x1ef349):_0x1ef349,_0x360f00[_0x574fa2]['groupBy']&&_0x6d3705[_0x299796('0x36')](_0x1ef349),_0x360f00[_0x574fa2][_0x299796('0x55')]&&_0x6d3705['order'](_0x1ef349,_0x360f00[_0x574fa2][_0x299796('0x55')]===_0x299796('0x44')?![]:!![]),_0x6d3705['field'](_0x1ef349,_0x360f00[_0x574fa2][_0x299796('0x32')]||_0x1ef349);}if(_0x9a0842[_0x299796('0x50')]){_0x9a0842[_0x299796('0x50')]=JSON[_0x299796('0xc')](_0x9a0842['joins']);for(let _0x3b3776=0x0;_0x3b3776<_0x9a0842['joins'][_0x299796('0x79')];_0x3b3776+=0x1){_0x9a0842['joins'][_0x3b3776]['type']&&_[_0x299796('0x20')](_0x39df22,_0x9a0842[_0x299796('0x50')][_0x3b3776]['type'])&&_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x4e')]&&_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x61')]&&_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x42')]&&_0x6d3705[_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x66')]](_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x61')],null,util[_0x299796('0x3c')](_0x299796('0x2d'),_0x9a0842['table'],_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x4e')],_0x9a0842[_0x299796('0x50')][_0x3b3776]['foreignTable'],_0x9a0842[_0x299796('0x50')][_0x3b3776][_0x299796('0x42')]));}}return _0x9a0842[_0x299796('0x7c')]&&(_0x9a0842['conditions']=JSON[_0x299796('0xc')](_0x9a0842[_0x299796('0x7c')]),_0x6d3705[_0x299796('0x54')](_0x4202ea(_0x9a0842['conditions']['group']))),_0x50c06b=_0x6d3705[_0x299796('0x82')](),_0x6d3705['limit'](_0x421fef),_0x6d3705[_0x299796('0x8a')](0x0),logger['debug']('Limited\x20Query:',_0x6d3705[_0x299796('0x84')]()),db[_0x299796('0x72')][_0x299796('0x4f')](_0x6d3705[_0x299796('0x84')](),{'type':QueryTypes['SELECT']});}})[_0x50d4f4('0x7b')](function(_0x44eb70){const _0x1122c5=_0x50d4f4;if(!_0x44eb70[_0x1122c5('0x79')])throw new ValidationErrorItem(_0x1122c5('0x1b'),0xcc);if(_0x429598[_0x1122c5('0x1f')]===_0x1122c5('0xd'))return null;const _0x303f83=_[_0x1122c5('0x49')](_0x429598,{'name':_0x429598[_0x1122c5('0x67')]||_0x429598[_0x1122c5('0x6e')]||_0x9a0842[_0x1122c5('0x6e')],'basename':_0x7fb503,'savename':util[_0x1122c5('0x3c')](_0x1122c5('0x58'),_0x429598[_0x1122c5('0x6e')]||_0x9a0842[_0x1122c5('0x6e')],require(_0x1122c5('0x5f'))[_0x1122c5('0x52')](0x4),_0x429598[_0x1122c5('0x1f')]||'csv'),'reportId':_0x9a0842['id'],'reportType':'default'});return db[_0x1122c5('0x6c')]['create'](_0x303f83,{'raw':!![]});})[_0x50d4f4('0x7b')](function(_0x571758){const _0x14e493=_0x50d4f4;_0x9a0842[_0x14e493('0x5a')]===_0x14e493('0x4d')?_0x50c06b[_0x14e493('0x54')](_0x9a0842[_0x14e493('0x5a')]+_0x14e493('0x56'),_0x429598[_0x14e493('0x53')],_0x429598[_0x14e493('0x87')]):_0x50c06b['where'](_0x9a0842[_0x14e493('0x5a')]+_0x14e493('0x80'),_0x429598[_0x14e493('0x53')],_0x429598[_0x14e493('0x87')]);if(_0x571758)return logger[_0x14e493('0x85')]('Run\x20Query:',_0x50c06b[_0x14e493('0x84')]()),require(_0x14e493('0x78'))[_0x14e493('0x4')](path[_0x14e493('0x23')](__dirname,_0x14e493('0x10'),_0x571758[_0x14e493('0x1f')]),[_0x571758['id'],_0x50c06b[_0x14e493('0x84')](),path['join'](__dirname,_0x14e493('0x15'),_0x571758[_0x14e493('0x2e')]),_0x7fb503]),_0x571758;else{const _0x5da984=squel[_0x14e493('0xe')]();return _0x5da984['from']('('+_0x50c06b[_0x14e493('0x84')]()+')',_0x14e493('0xf')),_0x5da984['field']('COUNT(*)',_0x14e493('0x2')),_0x50c06b['limit'](_0x429598[_0x14e493('0x73')]||_0x421fef),_0x50c06b[_0x14e493('0x8a')](_0x429598[_0x14e493('0x8a')]||0x0),dbH[_0x14e493('0x72')][_0x14e493('0x4f')](_0x5da984[_0x14e493('0x84')](),{'type':dbH[_0x14e493('0x72')][_0x14e493('0x8c')][_0x14e493('0x3')]})[_0x14e493('0x7b')](function(_0x174185){const _0x3eb7dc=_0x14e493;return!_0x174185[_0x3eb7dc('0x79')]?_0x197e2d=0x0:_0x197e2d=_0x174185[0x0][_0x3eb7dc('0x2')]||0x0,dbH[_0x3eb7dc('0x72')][_0x3eb7dc('0x4f')](_0x50c06b['toString'](),{'type':dbH[_0x3eb7dc('0x72')][_0x3eb7dc('0x8c')]['SELECT']});})[_0x14e493('0x7b')](function(_0x46e634){return{'rows':_0x46e634||[],'count':_0x197e2d};});}});}exports[_0x440b6c('0x28')]=function(_0x23ab10,_0x161400){const _0x23e079=_0x440b6c;return runReport(_0x23ab10['params'],_0x23ab10[_0x23e079('0x4f')],_0x23ab10[_0x23e079('0x69')])['then'](respondWithResult(_0x161400,null))[_0x23e079('0x6f')](handleError(_0x161400,null));},exports[_0x440b6c('0x26')]=runReport,exports[_0x440b6c('0x4f')]=function(_0x4a3d48,_0x137267){const _0x8bfa5b=_0x440b6c,_0x14b3fd=0xa,_0x4c6ee3=[_0x8bfa5b('0x23'),_0x8bfa5b('0x7'),_0x8bfa5b('0x60'),_0x8bfa5b('0x46')],_0x3b6bf5={'SUM':'SUM(%s)','COUNT':_0x8bfa5b('0x41'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':'MAX(%s)','MIN':_0x8bfa5b('0x59'),'AVG':_0x8bfa5b('0x6b'),'GROUP_CONCAT':_0x8bfa5b('0x77'),'GROUP_CONCAT\x20ASC':_0x8bfa5b('0x39'),'GROUP_CONCAT\x20DESC':_0x8bfa5b('0x7d')},_0x256bbb={'SEC_TO_TIME':_0x8bfa5b('0x34'),'DATE':_0x8bfa5b('0x1d'),'HOUR':_0x8bfa5b('0x12'),'ROUND':_0x8bfa5b('0x76'),'UNIX_TIMESTAMP':_0x8bfa5b('0x13')},_0x11cab5=function(_0x2fe456){const _0x487945=_0x8bfa5b;return!_[_0x487945('0x20')]([_0x487945('0x88'),'IS\x20NOT\x20NULL','IS\x20EMPTY',_0x487945('0x86')],_0x2fe456);},_0xfcc4a0=function(_0x48c9c6){const _0x12e7ee=_0x8bfa5b;if(!_0x48c9c6||!_0x48c9c6['rules']['length'])return'';let _0x47f704='(';for(let _0x593a8f=0x0;_0x593a8f<_0x48c9c6[_0x12e7ee('0x8d')][_0x12e7ee('0x79')];_0x593a8f+=0x1){_0x593a8f>0x0&&(_0x47f704+='\x20'+_0x48c9c6[_0x12e7ee('0x2f')]+'\x20'),_0x47f704+=_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f]['group']?_0xfcc4a0(_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f]['group']):_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f]['field']+'\x20'+_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f][_0x12e7ee('0x0')]+(_0x11cab5(_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f][_0x12e7ee('0x0')])?'\x20'+_0x48c9c6[_0x12e7ee('0x8d')][_0x593a8f]['value']:'');}return _0x47f704+')';};let _0x29e48d={'where':{'id':_0x4a3d48[_0x8bfa5b('0x29')]['id']}},_0x50c88a,_0x249ca7,_0x448c6a,_0xc57be0;return _0x29e48d=_['merge']({},_0x29e48d,_0x4a3d48[_0x8bfa5b('0x69')]),db[_0x8bfa5b('0x5c')][_0x8bfa5b('0x90')](_0x29e48d)['then'](function(_0x42c5d9){const _0x5d44b9=_0x8bfa5b;if(_0x42c5d9)return _0x50c88a=_0x42c5d9,_0x42c5d9[_0x5d44b9('0x3b')]();return null;})['then'](function(_0x55f96d){const _0x24f593=_0x8bfa5b;if(_0x55f96d){if(!_0x55f96d[_0x24f593('0x79')])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x249ca7=_0x55f96d,db[_0x24f593('0x8b')][_0x24f593('0x47')]({'raw':!![]});}return null;})['then'](function(_0x16b04c){const _0x2ead2d=_0x8bfa5b;if(_0x16b04c){_0x448c6a=_['keyBy'](_0x16b04c,'id');let _0x5d2f3d;const _0x28deb9=squel['select']();_0x28deb9[_0x2ead2d('0xa')](_0x50c88a[_0x2ead2d('0x5a')]);for(let _0xed080c=0x0;_0xed080c<_0x249ca7['length'];_0xed080c+=0x1){_0x5d2f3d=_0x249ca7[_0xed080c][_0x2ead2d('0x51')]?_0x448c6a[_0x249ca7[_0xed080c]['MetricId']][_0x2ead2d('0x21')]:_0x249ca7[_0xed080c]['field'],_0x5d2f3d=_0x249ca7[_0xed080c]['function']?_['replace'](_0x3b6bf5[_0x249ca7[_0xed080c][_0x2ead2d('0x2c')]],'%s',_0x5d2f3d):_0x5d2f3d,_0x5d2f3d=_0x249ca7[_0xed080c][_0x2ead2d('0x3c')]?_[_0x2ead2d('0x4c')](_0x256bbb[_0x249ca7[_0xed080c][_0x2ead2d('0x3c')]],'%s',_0x5d2f3d):_0x5d2f3d,_0x249ca7[_0xed080c]['groupBy']&&_0x28deb9[_0x2ead2d('0x36')](_0x5d2f3d),_0x249ca7[_0xed080c][_0x2ead2d('0x55')]&&_0x28deb9[_0x2ead2d('0x2a')](_0x5d2f3d,_0x249ca7[_0xed080c]['orderBy']===_0x2ead2d('0x44')?![]:!![]),_0x28deb9[_0x2ead2d('0x11')](_0x5d2f3d,_0x249ca7[_0xed080c][_0x2ead2d('0x32')]||_0x5d2f3d);}if(_0x50c88a['joins']){_0x50c88a['joins']=JSON[_0x2ead2d('0xc')](_0x50c88a['joins']);for(let _0x4a257b=0x0;_0x4a257b<_0x50c88a['joins'][_0x2ead2d('0x79')];_0x4a257b+=0x1){_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x66')]&&_['includes'](_0x4c6ee3,_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x66')])&&_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x4e')]&&_0x50c88a['joins'][_0x4a257b][_0x2ead2d('0x61')]&&_0x50c88a[_0x2ead2d('0x50')][_0x4a257b]['foreignKey']&&_0x28deb9[_0x50c88a['joins'][_0x4a257b][_0x2ead2d('0x66')]](_0x50c88a['joins'][_0x4a257b][_0x2ead2d('0x61')],null,util[_0x2ead2d('0x3c')]('%s.%s\x20=\x20%s.%s',_0x50c88a['table'],_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x4e')],_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x61')],_0x50c88a[_0x2ead2d('0x50')][_0x4a257b][_0x2ead2d('0x42')]));}}return _0x50c88a['conditions']&&(_0x50c88a['conditions']=JSON[_0x2ead2d('0xc')](_0x50c88a[_0x2ead2d('0x7c')]),_0x28deb9['where'](_0xfcc4a0(_0x50c88a[_0x2ead2d('0x7c')]['group']))),_0xc57be0=_0x28deb9[_0x2ead2d('0x82')](),_0x28deb9[_0x2ead2d('0x73')](_0x14b3fd),_0x28deb9[_0x2ead2d('0x8a')](0x0),logger[_0x2ead2d('0x4a')](_0x2ead2d('0x43'),_0x28deb9[_0x2ead2d('0x84')]()),db[_0x2ead2d('0x72')][_0x2ead2d('0x4f')](_0x28deb9[_0x2ead2d('0x84')](),{'type':QueryTypes[_0x2ead2d('0x3')]});}})[_0x8bfa5b('0x7b')](function(){const _0x805b51=_0x8bfa5b;return{'sql':_0xc57be0[_0x805b51('0x84')]()};})['then'](respondWithResult(_0x137267,null))[_0x8bfa5b('0x6f')](handleError(_0x137267,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 81c6e31..6056d8b 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a10_0x441e=['exports','./analyticDefaultReport.attributes','define','AnalyticDefaultReport'];(function(_0xe77d60,_0x441e31){const _0x489dbb=function(_0x1bcaf0){while(--_0x1bcaf0){_0xe77d60['push'](_0xe77d60['shift']());}};_0x489dbb(++_0x441e31);}(a10_0x441e,0x134));const a10_0x489d=function(_0xe77d60,_0x441e31){_0xe77d60=_0xe77d60-0x0;let _0x489dbb=a10_0x441e[_0xe77d60];return _0x489dbb;};const _0x32047a=a10_0x489d;'use strict';const attributes=require(_0x32047a('0x1'));module[_0x32047a('0x0')]=function(_0x1bcaf0){const _0x3303ce=_0x32047a,_0x139e44=_0x1bcaf0[_0x3303ce('0x2')](_0x3303ce('0x3'),attributes,{'tableName':'analytics_default_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x139e44;}; \ No newline at end of file +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 diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index ceb4dde..4ff743c 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a11_0x3e9e=['exports','delete','/:id/run','./analyticDefaultReport.controller','run','create','express','preview','/:id/query','get','/:id','isAuthenticated','destroy','Router'];(function(_0x148c48,_0x3e9eff){const _0xb1add0=function(_0x3dd73d){while(--_0x3dd73d){_0x148c48['push'](_0x148c48['shift']());}};_0xb1add0(++_0x3e9eff);}(a11_0x3e9e,0x149));const a11_0xb1ad=function(_0x148c48,_0x3e9eff){_0x148c48=_0x148c48-0x0;let _0xb1add0=a11_0x3e9e[_0x148c48];return _0xb1add0;};const _0xa45d19=a11_0xb1ad;'use strict';const express=require(_0xa45d19('0xd')),router=express[_0xa45d19('0x6')](),auth=require('../../components/auth/service'),controller=require(_0xa45d19('0xa'));router['get']('/',auth[_0xa45d19('0x4')](),controller['index']),router[_0xa45d19('0x2')](_0xa45d19('0x3'),auth[_0xa45d19('0x4')](),controller['show']),router['get']('/:id/preview',auth[_0xa45d19('0x4')](),controller[_0xa45d19('0x0')]),router[_0xa45d19('0x2')](_0xa45d19('0x9'),auth[_0xa45d19('0x4')](),controller[_0xa45d19('0xb')]),router[_0xa45d19('0x2')](_0xa45d19('0x1'),auth[_0xa45d19('0x4')](),controller['query']),router['post']('/',auth[_0xa45d19('0x4')](),controller[_0xa45d19('0xc')]),router['put'](_0xa45d19('0x3'),auth['isAuthenticated'](),controller['update']),router[_0xa45d19('0x8')](_0xa45d19('0x3'),auth[_0xa45d19('0x4')](),controller[_0xa45d19('0x5')]),module[_0xa45d19('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index c4b88aa..5845156 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a12_0x24e0=['manual','INTEGER','DATE','exports','xlsx','sequelize','pdf','ENUM','UNSIGNED','STRING','Loading','scheduled','csv'];(function(_0x451237,_0x24e0f0){const _0xa1b700=function(_0x3e8ec1){while(--_0x3e8ec1){_0x451237['push'](_0x451237['shift']());}};_0xa1b700(++_0x24e0f0);}(a12_0x24e0,0xf8));const a12_0xa1b7=function(_0x451237,_0x24e0f0){_0x451237=_0x451237-0x0;let _0xa1b700=a12_0x24e0[_0x451237];return _0xa1b700;};const _0x1d7d1f=a12_0xa1b7;'use strict';const Sequelize=require(_0x1d7d1f('0x4'));module[_0x1d7d1f('0x2')]={'name':{'type':Sequelize[_0x1d7d1f('0x8')],'allowNull':![]},'basename':{'type':Sequelize[_0x1d7d1f('0x8')],'allowNull':![]},'output':{'type':Sequelize[_0x1d7d1f('0x6')](_0x1d7d1f('0xb'),_0x1d7d1f('0x5'),_0x1d7d1f('0x3')),'allowNull':![],'defaultValue':_0x1d7d1f('0xb')},'savename':{'type':Sequelize[_0x1d7d1f('0x8')],'allowNull':![]},'startDate':{'type':Sequelize[_0x1d7d1f('0x1')]},'endDate':{'type':Sequelize['DATE']},'status':{'type':Sequelize[_0x1d7d1f('0x8')],'defaultValue':_0x1d7d1f('0x9')},'type':{'type':Sequelize[_0x1d7d1f('0x6')](_0x1d7d1f('0xc'),_0x1d7d1f('0xa')),'allowNull':![],'defaultValue':'manual'},'reportId':{'type':Sequelize[_0x1d7d1f('0x0')](0xb)[_0x1d7d1f('0x7')]},'reportType':{'type':Sequelize[_0x1d7d1f('0x8')]}}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index 89ac3dc..6bec390 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a13_0x1ee0=['then','create','json','send','order','get','output','destroy','query','body','files/reports','AnalyticExtractedReport','api','map','fields','filter','ExtractedReports','basename','../../config/environment','where','limit','lodash','filters','sendStatus','offset','type','join','model','sequelize','update','show','findOne','download','count','role','toLowerCase','savename','util','UserProfileResource','merge','index','intersection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','stack','options','exists','Content-Range','status','VIRTUAL','include','keys','catch','includeAll','userProfileId','undefined','Report\x20not\x20found\x20or\x20empty','like','../../components/parsers/qs','%s.%s','nolimit','length','name','findAll','attributes','error','../../mysqldb'];(function(_0x2e3dda,_0x1ee0dd){const _0x455a1e=function(_0x40ee4a){while(--_0x40ee4a){_0x2e3dda['push'](_0x2e3dda['shift']());}};_0x455a1e(++_0x1ee0dd);}(a13_0x1ee0,0x1c8));const a13_0x455a=function(_0x2e3dda,_0x1ee0dd){_0x2e3dda=_0x2e3dda-0x0;let _0x455a1e=a13_0x1ee0[_0x2e3dda];return _0x455a1e;};const _0xdfe2df=a13_0x455a;'use strict';const util=require(_0xdfe2df('0x32')),path=require('path'),fs=require('fs'),_=require(_0xdfe2df('0x22')),qs=require(_0xdfe2df('0x4')),logger=require('../../config/logger')(_0xdfe2df('0x19')),config=require(_0xdfe2df('0x1f')),db=require(_0xdfe2df('0xc'))['db'],{Op,ValidationError}=require(_0xdfe2df('0x29'));function respondWithResult(_0x40ee4a,_0x1734b9){return _0x1734b9=_0x1734b9||0xc8,function(_0x5542d8){const _0x2d15ba=a13_0x455a;if(_0x5542d8)return _0x40ee4a[_0x2d15ba('0x3d')](_0x1734b9)[_0x2d15ba('0xf')](_0x5542d8);};}function respondWithFilteredResult(_0x5df7a2,_0x58efba){return function(_0x9dbc54){const _0x574066=a13_0x455a;if(_0x9dbc54){const _0x514272=_0x9dbc54[_0x574066('0x2e')],_0x3175cf=_0x58efba[_0x574066('0x25')];let _0x45f69e=_0x58efba[_0x574066('0x25')]+_0x58efba[_0x574066('0x21')],_0x1ef3d0;return _0x45f69e>=_0x514272?(_0x45f69e=_0x514272,_0x1ef3d0=0xc8):_0x1ef3d0=0xce,_0x5df7a2['status'](_0x1ef3d0),_0x5df7a2['set'](_0x574066('0x3c'),_0x3175cf+'-'+_0x45f69e+'/'+_0x514272)[_0x574066('0xf')](_0x9dbc54);}return null;};}function saveUpdates(_0x239d81){return function(_0xa5b4f3){const _0x53a286=a13_0x455a;if(_0xa5b4f3)return _0xa5b4f3[_0x53a286('0x2a')](_0x239d81)[_0x53a286('0xd')](function(_0x2d7953){return _0x2d7953;});return null;};}function removeEntity(_0x505b8c){return function(_0x461dce){const _0x3ccedc=a13_0x455a;if(_0x461dce)return _0x461dce[_0x3ccedc('0x14')]()[_0x3ccedc('0xd')](function(){const _0x3202d2=_0x3ccedc,_0x34f781=_0x461dce[_0x3202d2('0x12')]({'plain':!![]}),_0xdc849d=_0x3202d2('0x1d');return db[_0x3202d2('0x33')][_0x3202d2('0x14')]({'where':{'type':_0xdc849d,'resourceId':_0x34f781['id']}})[_0x3202d2('0xd')](function(){return _0x461dce;});})['then'](function(){const _0x52479b=_0x3ccedc;_0x505b8c[_0x52479b('0x3d')](0xcc)['end']();});};}function handleEntityNotFound(_0x2acd67){return function(_0x11c123){return!_0x11c123&&_0x2acd67['sendStatus'](0x194),_0x11c123;};}function handleError(_0x5b3a41,_0x3623bb){return _0x3623bb=_0x3623bb||0x1f4,function(_0x44a9e1){const _0x4c461e=a13_0x455a;logger[_0x4c461e('0xb')](_0x44a9e1[_0x4c461e('0x39')]),_0x44a9e1['name']&&delete _0x44a9e1[_0x4c461e('0x8')],_0x5b3a41['status'](_0x3623bb)[_0x4c461e('0x10')](_0x44a9e1);};}exports[_0xdfe2df('0x35')]=function(_0x2ce338,_0x86c629){const _0x51ceca=_0xdfe2df;let _0x3eb102={};const _0x2273e6={},_0x3a4d90={'count':0x0,'rows':[]},_0x6c4a53=_['map'](db[_0x51ceca('0x18')]['rawAttributes'],function(_0x1d61ea){const _0x5e1bea=_0x51ceca;return{'name':_0x1d61ea['fieldName'],'type':_0x1d61ea[_0x5e1bea('0x26')]['key']};});_0x2273e6[_0x51ceca('0x28')]=_[_0x51ceca('0x1a')](_0x6c4a53,_0x51ceca('0x8')),_0x2273e6['query']=_[_0x51ceca('0x40')](_0x2ce338[_0x51ceca('0x15')]),_0x2273e6[_0x51ceca('0x23')]=_[_0x51ceca('0x36')](_0x2273e6['model'],_0x2273e6[_0x51ceca('0x15')]),_0x3eb102[_0x51ceca('0xa')]=_[_0x51ceca('0x36')](_0x2273e6[_0x51ceca('0x28')],qs['fields'](_0x2ce338[_0x51ceca('0x15')][_0x51ceca('0x1b')])),_0x3eb102[_0x51ceca('0xa')]=_0x3eb102[_0x51ceca('0xa')][_0x51ceca('0x7')]?_0x3eb102['attributes']:_0x2273e6['model'];typeof _0x2ce338[_0x51ceca('0x15')][_0x51ceca('0x6')]===_0x51ceca('0x1')&&(_0x3eb102['limit']=qs[_0x51ceca('0x21')](_0x2ce338[_0x51ceca('0x15')][_0x51ceca('0x21')]),_0x3eb102[_0x51ceca('0x25')]=qs['offset'](_0x2ce338[_0x51ceca('0x15')][_0x51ceca('0x25')]));_0x3eb102[_0x51ceca('0x11')]=qs['sort'](_0x2ce338[_0x51ceca('0x15')]['sort']),_0x3eb102[_0x51ceca('0x20')]=qs['filters'](_['pick'](_0x2ce338[_0x51ceca('0x15')],_0x2273e6['filters']),_0x6c4a53);_0x2ce338[_0x51ceca('0x15')][_0x51ceca('0x1c')]&&(_0x3eb102[_0x51ceca('0x20')]=_[_0x51ceca('0x34')](_0x3eb102[_0x51ceca('0x20')],{[Op['or']]:_['map'](_0x6c4a53,function(_0x3a874e){const _0x161b75=_0x51ceca;if(_0x3a874e[_0x161b75('0x26')]!==_0x161b75('0x3e')){const _0x36685c={};return _0x36685c[_0x3a874e[_0x161b75('0x8')]]={[Op[_0x161b75('0x3')]]:'%'+_0x2ce338[_0x161b75('0x15')][_0x161b75('0x1c')]+'%'},_0x36685c;}})}));_0x3eb102=_[_0x51ceca('0x34')]({},_0x3eb102,_0x2ce338[_0x51ceca('0x3a')]);const _0x9df406={'where':_0x3eb102[_0x51ceca('0x20')]};return db[_0x51ceca('0x18')][_0x51ceca('0x2e')](_0x9df406)[_0x51ceca('0xd')](function(_0x499b34){const _0x412c4a=_0x51ceca;return _0x3a4d90[_0x412c4a('0x2e')]=_0x499b34,_0x2ce338['query'][_0x412c4a('0x42')]&&(_0x3eb102[_0x412c4a('0x3f')]=[{'all':!![]}]),db['AnalyticExtractedReport'][_0x412c4a('0x9')](_0x3eb102);})[_0x51ceca('0xd')](function(_0x447d2b){return _0x3a4d90['rows']=_0x447d2b,_0x3a4d90;})[_0x51ceca('0xd')](respondWithFilteredResult(_0x86c629,_0x3eb102))[_0x51ceca('0x41')](handleError(_0x86c629,null));},exports[_0xdfe2df('0x2b')]=function(_0x2b779b,_0x591151){const _0x22cf46=_0xdfe2df;let _0x24ae48={'raw':!![],'where':{'id':_0x2b779b['params']['id']}};const _0x5c44f3={};return _0x5c44f3[_0x22cf46('0x28')]=_['keys'](db[_0x22cf46('0x18')]['rawAttributes']),_0x5c44f3['query']=_[_0x22cf46('0x40')](_0x2b779b[_0x22cf46('0x15')]),_0x5c44f3['filters']=_[_0x22cf46('0x36')](_0x5c44f3[_0x22cf46('0x28')],_0x5c44f3[_0x22cf46('0x15')]),_0x24ae48[_0x22cf46('0xa')]=_['intersection'](_0x5c44f3[_0x22cf46('0x28')],qs[_0x22cf46('0x1b')](_0x2b779b['query'][_0x22cf46('0x1b')])),_0x24ae48['attributes']=_0x24ae48[_0x22cf46('0xa')]['length']?_0x24ae48['attributes']:_0x5c44f3[_0x22cf46('0x28')],_0x2b779b['query']['includeAll']&&(_0x24ae48['include']=[{'all':!![]}]),_0x24ae48=_['merge']({},_0x24ae48,_0x2b779b[_0x22cf46('0x3a')]),db['AnalyticExtractedReport'][_0x22cf46('0x2c')](_0x24ae48)['then'](handleEntityNotFound(_0x591151,null))['then'](respondWithResult(_0x591151,null))['catch'](handleError(_0x591151,null));},exports[_0xdfe2df('0xe')]=function(_0x1aa881,_0x38b010){const _0x264954=_0xdfe2df;return db['AnalyticExtractedReport'][_0x264954('0xe')](_0x1aa881[_0x264954('0x16')],{})[_0x264954('0xd')](function(_0x444138){const _0x5cfbf1=_0x264954,_0x51835c=_0x1aa881[_0x5cfbf1('0x38')][_0x5cfbf1('0x12')]({'plain':!![]});if(!_0x51835c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x51835c[_0x5cfbf1('0x2f')]===_0x5cfbf1('0x38')){const _0x1be410=_0x444138[_0x5cfbf1('0x12')]({'plain':!![]}),_0x1fe79a=_0x5cfbf1('0x1d');return db['UserProfileSection'][_0x5cfbf1('0x2c')]({'where':{'name':_0x1fe79a,'userProfileId':_0x51835c[_0x5cfbf1('0x0')]},'raw':!![]})[_0x5cfbf1('0xd')](function(_0x239238){const _0x3fa04b=_0x5cfbf1;return _0x239238&&_0x239238['autoAssociation']===0x0?db['UserProfileResource'][_0x3fa04b('0xe')]({'name':_0x1be410['name'],'resourceId':_0x1be410['id'],'type':_0x239238[_0x3fa04b('0x8')],'sectionId':_0x239238['id']},{})['then'](function(){return _0x444138;}):_0x444138;})[_0x5cfbf1('0x41')](function(_0x4bc0be){const _0xf90950=_0x5cfbf1;logger[_0xf90950('0xb')](_0xf90950('0x37'),_0x4bc0be);throw _0x4bc0be;});}return _0x444138;})['then'](respondWithResult(_0x38b010,0xc9))[_0x264954('0x41')](handleError(_0x38b010,null));},exports[_0xdfe2df('0x2a')]=function(_0x37985b,_0x8a5075){const _0x5750d4=_0xdfe2df;return _0x37985b['body']['id']&&delete _0x37985b[_0x5750d4('0x16')]['id'],db[_0x5750d4('0x18')][_0x5750d4('0x2c')]({'where':{'id':_0x37985b['params']['id']}})[_0x5750d4('0xd')](handleEntityNotFound(_0x8a5075,null))[_0x5750d4('0xd')](saveUpdates(_0x37985b[_0x5750d4('0x16')],null))[_0x5750d4('0xd')](respondWithResult(_0x8a5075,null))[_0x5750d4('0x41')](handleError(_0x8a5075,null));},exports[_0xdfe2df('0x14')]=function(_0x5bddc2,_0x394be7){const _0x21a304=_0xdfe2df;return db['AnalyticExtractedReport'][_0x21a304('0x2c')]({'where':{'id':_0x5bddc2['params']['id']}})[_0x21a304('0xd')](handleEntityNotFound(_0x394be7,null))[_0x21a304('0xd')](removeEntity(_0x394be7,null))[_0x21a304('0x41')](handleError(_0x394be7,null));},exports[_0xdfe2df('0x2d')]=function(_0x40e7ea,_0x5c3917){const _0x499319=_0xdfe2df;return db['AnalyticExtractedReport']['findOne']({'where':{'id':_0x40e7ea['params']['id']},'attributes':[_0x499319('0x8'),'basename',_0x499319('0x31'),_0x499319('0x13')],'raw':!![]})[_0x499319('0xd')](handleEntityNotFound(_0x5c3917,null))[_0x499319('0xd')](function(_0x13afe1){const _0x14279e=_0x499319;if(_0x13afe1){if(!fs['existsSync'](path[_0x14279e('0x27')](config['root'],_0x14279e('0x17'),_0x13afe1['savename'])))throw new ValidationError(_0x14279e('0x2'));if(_0x40e7ea[_0x14279e('0x15')][_0x14279e('0x3b')])return _0x5c3917[_0x14279e('0x24')](0xc8);return _0x5c3917[_0x14279e('0x2d')](path[_0x14279e('0x27')](config['root'],_0x14279e('0x17'),_0x13afe1[_0x14279e('0x31')]),util['format'](_0x14279e('0x5'),_0x13afe1[_0x14279e('0x1e')]||_0x13afe1[_0x14279e('0x8')],_0x13afe1[_0x14279e('0x13')][_0x14279e('0x30')]()));}})['catch'](handleError(_0x5c3917,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index c6b48ea..fee85c3 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a14_0x124d=['./analyticExtractedReport.attributes','define','exports','AnalyticExtractedReport'];(function(_0x3d16cd,_0x124d80){const _0x4b5503=function(_0x1668ed){while(--_0x1668ed){_0x3d16cd['push'](_0x3d16cd['shift']());}};_0x4b5503(++_0x124d80);}(a14_0x124d,0x143));const a14_0x4b55=function(_0x3d16cd,_0x124d80){_0x3d16cd=_0x3d16cd-0x0;let _0x4b5503=a14_0x124d[_0x3d16cd];return _0x4b5503;};const _0x58f2e4=a14_0x4b55;'use strict';const attributes=require(_0x58f2e4('0x1'));module[_0x58f2e4('0x3')]=function(_0x1668ed){const _0xa78c37=_0x58f2e4,_0x17304b=_0x1668ed[_0xa78c37('0x2')](_0xa78c37('0x0'),attributes,{'tableName':'analytics_extracted_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x17304b;}; \ No newline at end of file +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 diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index 1af5fff..c46e594 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a15_0x2a05=['index','show','create','delete','update','get','exports','express','/:id/download','download','/:id','./analyticExtractedReport.controller','isAuthenticated','Router','destroy','post'];(function(_0x5e187f,_0x2a057e){const _0x567da5=function(_0x268c1f){while(--_0x268c1f){_0x5e187f['push'](_0x5e187f['shift']());}};_0x567da5(++_0x2a057e);}(a15_0x2a05,0x19b));const a15_0x567d=function(_0x5e187f,_0x2a057e){_0x5e187f=_0x5e187f-0x0;let _0x567da5=a15_0x2a05[_0x5e187f];return _0x567da5;};const _0x4daed3=a15_0x567d;'use strict';const express=require(_0x4daed3('0xc')),router=express[_0x4daed3('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x4daed3('0x0'));router[_0x4daed3('0xa')]('/',auth[_0x4daed3('0x1')](),controller[_0x4daed3('0x5')]),router[_0x4daed3('0xa')](_0x4daed3('0xf'),auth[_0x4daed3('0x1')](),controller[_0x4daed3('0x6')]),router[_0x4daed3('0xa')](_0x4daed3('0xd'),auth[_0x4daed3('0x1')](),controller[_0x4daed3('0xe')]),router[_0x4daed3('0x4')]('/',auth[_0x4daed3('0x1')](),controller[_0x4daed3('0x7')]),router['put'](_0x4daed3('0xf'),auth[_0x4daed3('0x1')](),controller[_0x4daed3('0x9')]),router[_0x4daed3('0x8')](_0x4daed3('0xf'),auth[_0x4daed3('0x1')](),controller[_0x4daed3('0x3')]),module[_0x4daed3('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index cf168bb..cc90250 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a16_0x1ae7=['BOOLEAN','sequelize','STRING','TEXT'];(function(_0x17c93d,_0x1ae785){const _0x142927=function(_0xb6b670){while(--_0xb6b670){_0x17c93d['push'](_0x17c93d['shift']());}};_0x142927(++_0x1ae785);}(a16_0x1ae7,0xf7));const a16_0x1429=function(_0x17c93d,_0x1ae785){_0x17c93d=_0x17c93d-0x0;let _0x142927=a16_0x1ae7[_0x17c93d];return _0x142927;};const _0x115fed=a16_0x1429;'use strict';const Sequelize=require(_0x115fed('0x2'));module['exports']={'field':{'type':Sequelize[_0x115fed('0x0')]},'alias':{'type':Sequelize[_0x115fed('0x3')]},'function':{'type':Sequelize['STRING']},'format':{'type':Sequelize[_0x115fed('0x3')]},'groupBy':{'type':Sequelize[_0x115fed('0x1')],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x115fed('0x3')]},'custom':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index db5be3d..87fe8de 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a17_0x31b2=['then','pick','options','body','type','update','attributes','where','like','set','findOne','sequelize','fields','bulkDestroy','filters','stack','limit','transaction','include','api','rows','json','show','count','create','key','send','CustomReportId','params','destroy','sendStatus','findAll','nolimit','lodash','error','Content-Range','ids','end','map','offset','fieldName','index','addFields','filter','catch','includeAll','merge','undefined','rawAttributes','status','keys','bulkCreate','model','VIRTUAL','AnalyticFieldReport','intersection','../../components/parsers/qs','query','name','AnalyticCustomReport'];(function(_0x211394,_0x31b280){const _0x5964da=function(_0x30241c){while(--_0x30241c){_0x211394['push'](_0x211394['shift']());}};_0x5964da(++_0x31b280);}(a17_0x31b2,0x1d1));const a17_0x5964=function(_0x211394,_0x31b280){_0x211394=_0x211394-0x0;let _0x5964da=a17_0x31b2[_0x211394];return _0x5964da;};const _0x2898c5=a17_0x5964;'use strict';const _=require(_0x2898c5('0x30')),qs=require(_0x2898c5('0xb')),logger=require('../../config/logger')(_0x2898c5('0x22')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x30241c,_0x39c511){return _0x39c511=_0x39c511||0xc8,function(_0x39e48f){const _0x35e5d9=a17_0x5964;if(_0x39e48f)return _0x30241c['status'](_0x39c511)[_0x35e5d9('0x24')](_0x39e48f);};}function respondWithFilteredResult(_0x4650d3,_0x10d314){return function(_0x9685c8){const _0x2f9542=a17_0x5964;if(_0x9685c8){const _0x429ee9=_0x9685c8[_0x2f9542('0x26')],_0x43b06a=_0x10d314['offset'];let _0x38358a=_0x10d314[_0x2f9542('0x36')]+_0x10d314[_0x2f9542('0x1f')],_0x24d8ac;return _0x38358a>=_0x429ee9?(_0x38358a=_0x429ee9,_0x24d8ac=0xc8):_0x24d8ac=0xce,_0x4650d3[_0x2f9542('0x4')](_0x24d8ac),_0x4650d3[_0x2f9542('0x18')](_0x2f9542('0x32'),_0x43b06a+'-'+_0x38358a+'/'+_0x429ee9)[_0x2f9542('0x24')](_0x9685c8);}return null;};}function saveUpdates(_0x317a41){return function(_0x5e0ede){const _0x404bb3=a17_0x5964;if(_0x5e0ede)return _0x5e0ede[_0x404bb3('0x14')](_0x317a41)[_0x404bb3('0xf')](function(_0x2718b4){return _0x2718b4;});return null;};}function removeEntity(_0x27d4a5){return function(_0x3dd7c7){const _0x3206c4=a17_0x5964;if(_0x3dd7c7)return _0x3dd7c7[_0x3206c4('0x2c')]()[_0x3206c4('0xf')](function(){const _0x2f6294=_0x3206c4;_0x27d4a5[_0x2f6294('0x4')](0xcc)[_0x2f6294('0x34')]();});};}function handleEntityNotFound(_0x13dcaa){return function(_0x593a47){const _0x5525cd=a17_0x5964;return!_0x593a47&&_0x13dcaa[_0x5525cd('0x2d')](0x194),_0x593a47;};}function handleError(_0x4e7467,_0x42f415){return _0x42f415=_0x42f415||0x1f4,function(_0x8954ff){const _0x317ba3=a17_0x5964;logger[_0x317ba3('0x31')](_0x8954ff[_0x317ba3('0x1e')]),_0x8954ff[_0x317ba3('0xd')]&&delete _0x8954ff[_0x317ba3('0xd')],_0x4e7467[_0x317ba3('0x4')](_0x42f415)[_0x317ba3('0x29')](_0x8954ff);};}exports[_0x2898c5('0x38')]=function(_0x2d4618,_0x800fc6){const _0x1bfe22=_0x2898c5;let _0x4da82c={};const _0x417770={},_0x513c49={'count':0x0,'rows':[]},_0x3c51d4=_[_0x1bfe22('0x35')](db[_0x1bfe22('0x9')][_0x1bfe22('0x3')],function(_0x23b255){const _0x4fe102=_0x1bfe22;return{'name':_0x23b255[_0x4fe102('0x37')],'type':_0x23b255[_0x4fe102('0x13')][_0x4fe102('0x28')]};});_0x417770[_0x1bfe22('0x7')]=_['map'](_0x3c51d4,_0x1bfe22('0xd')),_0x417770[_0x1bfe22('0xc')]=_[_0x1bfe22('0x5')](_0x2d4618['query']),_0x417770[_0x1bfe22('0x1d')]=_[_0x1bfe22('0xa')](_0x417770[_0x1bfe22('0x7')],_0x417770[_0x1bfe22('0xc')]),_0x4da82c[_0x1bfe22('0x15')]=_['intersection'](_0x417770[_0x1bfe22('0x7')],qs[_0x1bfe22('0x1b')](_0x2d4618[_0x1bfe22('0xc')][_0x1bfe22('0x1b')])),_0x4da82c['attributes']=_0x4da82c[_0x1bfe22('0x15')]['length']?_0x4da82c[_0x1bfe22('0x15')]:_0x417770[_0x1bfe22('0x7')];typeof _0x2d4618[_0x1bfe22('0xc')][_0x1bfe22('0x2f')]===_0x1bfe22('0x2')&&(_0x4da82c[_0x1bfe22('0x1f')]=qs[_0x1bfe22('0x1f')](_0x2d4618[_0x1bfe22('0xc')]['limit']),_0x4da82c[_0x1bfe22('0x36')]=qs[_0x1bfe22('0x36')](_0x2d4618[_0x1bfe22('0xc')][_0x1bfe22('0x36')]));_0x4da82c['order']=qs['sort'](_0x2d4618['query']['sort']),_0x4da82c['where']=qs[_0x1bfe22('0x1d')](_[_0x1bfe22('0x10')](_0x2d4618['query'],_0x417770[_0x1bfe22('0x1d')]),_0x3c51d4);_0x2d4618['query'][_0x1bfe22('0x3a')]&&(_0x4da82c[_0x1bfe22('0x16')]=_[_0x1bfe22('0x1')](_0x4da82c[_0x1bfe22('0x16')],{[Op['or']]:_[_0x1bfe22('0x35')](_0x3c51d4,function(_0x52f0da){const _0x47f28b=_0x1bfe22;if(_0x52f0da['type']!==_0x47f28b('0x8')){const _0x351dcb={};return _0x351dcb[_0x52f0da[_0x47f28b('0xd')]]={[Op[_0x47f28b('0x17')]]:'%'+_0x2d4618[_0x47f28b('0xc')][_0x47f28b('0x3a')]+'%'},_0x351dcb;}})}));_0x4da82c=_[_0x1bfe22('0x1')]({},_0x4da82c,_0x2d4618[_0x1bfe22('0x11')]);const _0x4ae21d={'where':_0x4da82c['where']};return db[_0x1bfe22('0x9')][_0x1bfe22('0x26')](_0x4ae21d)[_0x1bfe22('0xf')](function(_0x3a88f6){const _0x232142=_0x1bfe22;return _0x513c49[_0x232142('0x26')]=_0x3a88f6,_0x2d4618[_0x232142('0xc')][_0x232142('0x0')]&&(_0x4da82c[_0x232142('0x21')]=[{'all':!![]}]),db[_0x232142('0x9')][_0x232142('0x2e')](_0x4da82c);})[_0x1bfe22('0xf')](function(_0x5d7448){const _0x250d09=_0x1bfe22;return _0x513c49[_0x250d09('0x23')]=_0x5d7448,_0x513c49;})[_0x1bfe22('0xf')](respondWithFilteredResult(_0x800fc6,_0x4da82c))['catch'](handleError(_0x800fc6,null));},exports[_0x2898c5('0x25')]=function(_0xdf3381,_0x2989c8){const _0x877a1a=_0x2898c5;let _0x5091b7={'raw':![],'where':{'id':_0xdf3381[_0x877a1a('0x2b')]['id']}};const _0x1f3f5b={};return _0x1f3f5b[_0x877a1a('0x7')]=_['keys'](db[_0x877a1a('0x9')]['rawAttributes']),_0x1f3f5b[_0x877a1a('0xc')]=_[_0x877a1a('0x5')](_0xdf3381[_0x877a1a('0xc')]),_0x1f3f5b[_0x877a1a('0x1d')]=_['intersection'](_0x1f3f5b[_0x877a1a('0x7')],_0x1f3f5b['query']),_0x5091b7[_0x877a1a('0x15')]=_[_0x877a1a('0xa')](_0x1f3f5b['model'],qs[_0x877a1a('0x1b')](_0xdf3381[_0x877a1a('0xc')][_0x877a1a('0x1b')])),_0x5091b7[_0x877a1a('0x15')]=_0x5091b7[_0x877a1a('0x15')]['length']?_0x5091b7['attributes']:_0x1f3f5b['model'],_0xdf3381[_0x877a1a('0xc')][_0x877a1a('0x0')]&&(_0x5091b7[_0x877a1a('0x21')]=[{'all':!![]}]),_0x5091b7=_[_0x877a1a('0x1')]({},_0x5091b7,_0xdf3381[_0x877a1a('0x11')]),db[_0x877a1a('0x9')]['findOne'](_0x5091b7)['then'](handleEntityNotFound(_0x2989c8,null))[_0x877a1a('0xf')](respondWithResult(_0x2989c8,null))[_0x877a1a('0x3b')](handleError(_0x2989c8,null));},exports['create']=function(_0x4377eb,_0x905ff0){const _0x3b846b=_0x2898c5;return db['AnalyticFieldReport'][_0x3b846b('0x27')](_0x4377eb[_0x3b846b('0x12')],{})[_0x3b846b('0xf')](respondWithResult(_0x905ff0,0xc9))[_0x3b846b('0x3b')](handleError(_0x905ff0,null));},exports[_0x2898c5('0x6')]=function(_0x233519,_0x45c37c){const _0x5a0996=_0x2898c5;return db[_0x5a0996('0x9')]['bulkCreate'](_0x233519[_0x5a0996('0x12')],{'raw':![],'individualHooks':!![]})[_0x5a0996('0xf')](respondWithResult(_0x45c37c,0xc9))[_0x5a0996('0x3b')](handleError(_0x45c37c,null));},exports[_0x2898c5('0x14')]=function(_0x274e43,_0x5d41fd){const _0x432fa2=_0x2898c5;return _0x274e43['body']['id']&&delete _0x274e43[_0x432fa2('0x12')]['id'],db['AnalyticFieldReport'][_0x432fa2('0x19')]({'where':{'id':_0x274e43[_0x432fa2('0x2b')]['id']}})[_0x432fa2('0xf')](handleEntityNotFound(_0x5d41fd,null))[_0x432fa2('0xf')](saveUpdates(_0x274e43[_0x432fa2('0x12')],null))[_0x432fa2('0xf')](respondWithResult(_0x5d41fd,null))[_0x432fa2('0x3b')](handleError(_0x5d41fd,null));},exports['destroy']=function(_0x9b64ba,_0x47aa92){const _0x542fd0=_0x2898c5;return db['AnalyticFieldReport'][_0x542fd0('0x19')]({'where':{'id':_0x9b64ba['params']['id']}})[_0x542fd0('0xf')](handleEntityNotFound(_0x47aa92,null))[_0x542fd0('0xf')](removeEntity(_0x47aa92,null))[_0x542fd0('0x3b')](handleError(_0x47aa92,null));},exports[_0x2898c5('0x1c')]=function(_0x3e2d30,_0x51a673){const _0x154cef=_0x2898c5;return db[_0x154cef('0x9')][_0x154cef('0x2c')]({'where':{'id':_0x3e2d30['query'][_0x154cef('0x33')]||[]},'raw':![],'individualHooks':!![]})[_0x154cef('0xf')](respondWithResult(_0x51a673,0xcc))[_0x154cef('0x3b')](handleError(_0x51a673,null));},exports[_0x2898c5('0x39')]=function(_0x1db38d,_0x281b41){const _0x47395b=_0x2898c5;return db[_0x47395b('0xe')][_0x47395b('0x19')]({'where':{'id':_0x1db38d['params']['id']}})[_0x47395b('0xf')](handleEntityNotFound(_0x281b41,null))[_0x47395b('0xf')](function(_0x2e2390){const _0x531d9d=_0x47395b;if(_0x2e2390)return db[_0x531d9d('0x1a')][_0x531d9d('0x20')](function(_0x3dea7b){const _0x5a0858=_0x531d9d;return db[_0x5a0858('0x9')][_0x5a0858('0x2c')]({'where':{'CustomReportId':_0x1db38d[_0x5a0858('0x2b')]['id']},'transaction':_0x3dea7b})[_0x5a0858('0xf')](function(){const _0x3e276b=_0x5a0858,_0x19ded0=_['map'](_0x1db38d[_0x3e276b('0x12')],function(_0x123a0f){const _0x43b102=_0x3e276b;return delete _0x123a0f['id'],_0x123a0f[_0x43b102('0x2a')]=_0x1db38d[_0x43b102('0x2b')]['id'],_0x123a0f;});return db[_0x3e276b('0x9')][_0x3e276b('0x6')](_0x19ded0,{'transaction':_0x3dea7b});});})['then'](function(){const _0x29bfbf=_0x531d9d;return db[_0x29bfbf('0x9')][_0x29bfbf('0x2e')]({'where':{'CustomReportId':_0x1db38d[_0x29bfbf('0x2b')]['id']}});});})[_0x47395b('0xf')](respondWithResult(_0x281b41,null))[_0x47395b('0x3b')](handleError(_0x281b41,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index f1917a7..d69f23f 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a18_0x3fc4=['./analyticFieldReport.attributes','define','AnalyticFieldReport','analytics_report_fields','exports'];(function(_0x5e849a,_0x3fc4ab){const _0x553bce=function(_0x72cb9c){while(--_0x72cb9c){_0x5e849a['push'](_0x5e849a['shift']());}};_0x553bce(++_0x3fc4ab);}(a18_0x3fc4,0x116));const a18_0x553b=function(_0x5e849a,_0x3fc4ab){_0x5e849a=_0x5e849a-0x0;let _0x553bce=a18_0x3fc4[_0x5e849a];return _0x553bce;};const _0x3ab24c=a18_0x553b;'use strict';const attributes=require(_0x3ab24c('0x2'));module[_0x3ab24c('0x1')]=function(_0x72cb9c){const _0x514568=_0x3ab24c,_0x28815f=_0x72cb9c[_0x514568('0x3')](_0x514568('0x4'),attributes,{'tableName':_0x514568('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x28815f;}; \ No newline at end of file +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 diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index 967bf5e..bae1ce1 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a19_0x25cd=['get','bulkCreate','exports','destroy','index','/destroy_many','isAuthenticated','./analyticFieldReport.controller','bulkDestroy','/:id','../../components/auth/service','/create_many','update','delete','post','express','Router'];(function(_0x28d71d,_0x25cdf0){const _0x39f597=function(_0x3903cd){while(--_0x3903cd){_0x28d71d['push'](_0x28d71d['shift']());}};_0x39f597(++_0x25cdf0);}(a19_0x25cd,0x162));const a19_0x39f5=function(_0x28d71d,_0x25cdf0){_0x28d71d=_0x28d71d-0x0;let _0x39f597=a19_0x25cd[_0x28d71d];return _0x39f597;};const _0x5b95de=a19_0x39f5;'use strict';const express=require(_0x5b95de('0x1')),router=express[_0x5b95de('0x2')](),auth=require(_0x5b95de('0xd')),controller=require(_0x5b95de('0xa'));router[_0x5b95de('0x3')]('/',auth[_0x5b95de('0x9')](),controller[_0x5b95de('0x7')]),router['get'](_0x5b95de('0xc'),auth['isAuthenticated'](),controller['show']),router[_0x5b95de('0x0')]('/',auth['isAuthenticated'](),controller['create']),router[_0x5b95de('0x0')](_0x5b95de('0xe'),auth['isAuthenticated'](),controller[_0x5b95de('0x4')]),router[_0x5b95de('0x0')]('/:id/create_many',auth[_0x5b95de('0x9')](),controller['addFields']),router['put'](_0x5b95de('0xc'),auth[_0x5b95de('0x9')](),controller[_0x5b95de('0xf')]),router['delete'](_0x5b95de('0x8'),auth[_0x5b95de('0x9')](),controller[_0x5b95de('0xb')]),router[_0x5b95de('0x10')](_0x5b95de('0xc'),auth['isAuthenticated'](),controller[_0x5b95de('0x6')]),module[_0x5b95de('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js index 079ae33..ba991cd 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a20_0x175f=['name','exports','STRING','TEXT'];(function(_0x43098c,_0x175fe2){const _0x247c23=function(_0x5e750f){while(--_0x5e750f){_0x43098c['push'](_0x43098c['shift']());}};_0x247c23(++_0x175fe2);}(a20_0x175f,0x19b));const a20_0x247c=function(_0x43098c,_0x175fe2){_0x43098c=_0x43098c-0x0;let _0x247c23=a20_0x175f[_0x43098c];return _0x247c23;};const _0x2bd616=a20_0x247c;'use strict';const Sequelize=require('sequelize');module[_0x2bd616('0x2')]={'name':{'type':Sequelize[_0x2bd616('0x3')],'allowNull':![],'unique':_0x2bd616('0x1')},'table':{'type':Sequelize[_0x2bd616('0x3')]},'metric':{'type':Sequelize[_0x2bd616('0x0')]},'description':{'type':Sequelize[_0x2bd616('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index d812a9f..d6c116f 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a21_0x2fd6=['filters','status','name','Metrics','include','index','where','keys','end','pick','fieldName','create','UserProfileSection','map','findOne','intersection','VIRTUAL','attributes','show','params','sequelize','get','api','nolimit','fields','filter','rawAttributes','error','undefined','catch','count','autoAssociation','then','options','../../mysqldb','AnalyticMetric','offset','body','update','role','json','../../components/parsers/qs','includeAll','merge','type','length','UserProfileResource','query','model','destroy','set','key','limit'];(function(_0x23a5c7,_0x2fd684){const _0x471545=function(_0x3a811f){while(--_0x3a811f){_0x23a5c7['push'](_0x23a5c7['shift']());}};_0x471545(++_0x2fd684);}(a21_0x2fd6,0xbd));const a21_0x4715=function(_0x23a5c7,_0x2fd684){_0x23a5c7=_0x23a5c7-0x0;let _0x471545=a21_0x2fd6[_0x23a5c7];return _0x471545;};const _0x4dfc92=a21_0x4715;'use strict';const _=require('lodash'),qs=require(_0x4dfc92('0xb')),logger=require('../../config/logger')(_0x4dfc92('0x2d')),db=require(_0x4dfc92('0x4'))['db'],{Op}=require(_0x4dfc92('0x2b'));function respondWithResult(_0x3a811f,_0x406371){return _0x406371=_0x406371||0xc8,function(_0x2234d3){const _0x51128d=a21_0x4715;if(_0x2234d3)return _0x3a811f[_0x51128d('0x18')](_0x406371)['json'](_0x2234d3);};}function respondWithFilteredResult(_0x17179b,_0x10bd24){return function(_0x169647){const _0x3baebb=a21_0x4715;if(_0x169647){const _0x5110e3=_0x169647[_0x3baebb('0x0')],_0xe55489=_0x10bd24[_0x3baebb('0x6')];let _0x4e73f6=_0x10bd24[_0x3baebb('0x6')]+_0x10bd24[_0x3baebb('0x16')],_0x1752ec;return _0x4e73f6>=_0x5110e3?(_0x4e73f6=_0x5110e3,_0x1752ec=0xc8):_0x1752ec=0xce,_0x17179b[_0x3baebb('0x18')](_0x1752ec),_0x17179b[_0x3baebb('0x14')]('Content-Range',_0xe55489+'-'+_0x4e73f6+'/'+_0x5110e3)[_0x3baebb('0xa')](_0x169647);}return null;};}function saveUpdates(_0x3cb283){return function(_0x582ae5){const _0x13d4ef=a21_0x4715;if(_0x582ae5)return _0x582ae5[_0x13d4ef('0x8')](_0x3cb283)[_0x13d4ef('0x2')](function(_0x18757f){return _0x18757f;});return null;};}function removeEntity(_0xcc4456){return function(_0xc300d0){const _0x23a388=a21_0x4715;if(_0xc300d0)return _0xc300d0[_0x23a388('0x13')]()['then'](function(){const _0x383776=_0x23a388,_0x49fe92=_0xc300d0[_0x383776('0x2c')]({'plain':!![]}),_0xc5a2f1=_0x383776('0x1a');return db[_0x383776('0x10')][_0x383776('0x13')]({'where':{'type':_0xc5a2f1,'resourceId':_0x49fe92['id']}})[_0x383776('0x2')](function(){return _0xc300d0;});})[_0x23a388('0x2')](function(){const _0x5ea472=_0x23a388;_0xcc4456[_0x5ea472('0x18')](0xcc)[_0x5ea472('0x1f')]();});};}function handleEntityNotFound(_0x7d9930){return function(_0x1d60f7){return!_0x1d60f7&&_0x7d9930['sendStatus'](0x194),_0x1d60f7;};}function handleError(_0x1b743d,_0x42678a){return _0x42678a=_0x42678a||0x1f4,function(_0x378f51){const _0x5f4ad0=a21_0x4715;logger[_0x5f4ad0('0x32')](_0x378f51['stack']),_0x378f51['name']&&delete _0x378f51[_0x5f4ad0('0x19')],_0x1b743d[_0x5f4ad0('0x18')](_0x42678a)['send'](_0x378f51);};}exports[_0x4dfc92('0x1c')]=function(_0x2bd91f,_0x32151c){const _0x2c2f04=_0x4dfc92;let _0x3d8199={};const _0x158696={},_0x18c878={'count':0x0,'rows':[]},_0x5a431f=_[_0x2c2f04('0x24')](db[_0x2c2f04('0x5')][_0x2c2f04('0x31')],function(_0x4c0c44){const _0x49ebb1=_0x2c2f04;return{'name':_0x4c0c44[_0x49ebb1('0x21')],'type':_0x4c0c44[_0x49ebb1('0xe')][_0x49ebb1('0x15')]};});_0x158696[_0x2c2f04('0x12')]=_[_0x2c2f04('0x24')](_0x5a431f,'name'),_0x158696['query']=_[_0x2c2f04('0x1e')](_0x2bd91f[_0x2c2f04('0x11')]),_0x158696['filters']=_[_0x2c2f04('0x26')](_0x158696[_0x2c2f04('0x12')],_0x158696['query']),_0x3d8199[_0x2c2f04('0x28')]=_[_0x2c2f04('0x26')](_0x158696[_0x2c2f04('0x12')],qs[_0x2c2f04('0x2f')](_0x2bd91f['query'][_0x2c2f04('0x2f')])),_0x3d8199[_0x2c2f04('0x28')]=_0x3d8199[_0x2c2f04('0x28')][_0x2c2f04('0xf')]?_0x3d8199['attributes']:_0x158696[_0x2c2f04('0x12')];typeof _0x2bd91f[_0x2c2f04('0x11')][_0x2c2f04('0x2e')]===_0x2c2f04('0x33')&&(_0x3d8199[_0x2c2f04('0x16')]=qs[_0x2c2f04('0x16')](_0x2bd91f[_0x2c2f04('0x11')][_0x2c2f04('0x16')]),_0x3d8199[_0x2c2f04('0x6')]=qs[_0x2c2f04('0x6')](_0x2bd91f[_0x2c2f04('0x11')][_0x2c2f04('0x6')]));_0x3d8199['order']=qs['sort'](_0x2bd91f[_0x2c2f04('0x11')]['sort']),_0x3d8199[_0x2c2f04('0x1d')]=qs[_0x2c2f04('0x17')](_[_0x2c2f04('0x20')](_0x2bd91f['query'],_0x158696['filters']),_0x5a431f);_0x2bd91f[_0x2c2f04('0x11')]['filter']&&(_0x3d8199[_0x2c2f04('0x1d')]=_[_0x2c2f04('0xd')](_0x3d8199[_0x2c2f04('0x1d')],{[Op['or']]:_[_0x2c2f04('0x24')](_0x5a431f,function(_0x236ddb){const _0x20fad6=_0x2c2f04;if(_0x236ddb[_0x20fad6('0xe')]!==_0x20fad6('0x27')){const _0x3f64bd={};return _0x3f64bd[_0x236ddb[_0x20fad6('0x19')]]={[Op['like']]:'%'+_0x2bd91f[_0x20fad6('0x11')][_0x20fad6('0x30')]+'%'},_0x3f64bd;}})}));_0x3d8199=_['merge']({},_0x3d8199,_0x2bd91f[_0x2c2f04('0x3')]);const _0xec7235={'where':_0x3d8199[_0x2c2f04('0x1d')]};return db['AnalyticMetric'][_0x2c2f04('0x0')](_0xec7235)[_0x2c2f04('0x2')](function(_0xad03fd){const _0x5861a7=_0x2c2f04;return _0x18c878[_0x5861a7('0x0')]=_0xad03fd,_0x2bd91f[_0x5861a7('0x11')][_0x5861a7('0xc')]&&(_0x3d8199[_0x5861a7('0x1b')]=[{'all':!![]}]),db[_0x5861a7('0x5')]['findAll'](_0x3d8199);})[_0x2c2f04('0x2')](function(_0x457aa0){return _0x18c878['rows']=_0x457aa0,_0x18c878;})['then'](respondWithFilteredResult(_0x32151c,_0x3d8199))[_0x2c2f04('0x34')](handleError(_0x32151c,null));},exports[_0x4dfc92('0x29')]=function(_0x5c7cb0,_0x91dffa){const _0x52bf34=_0x4dfc92;let _0x3e101d={'raw':!![],'where':{'id':_0x5c7cb0[_0x52bf34('0x2a')]['id']}};const _0x2d1158={};return _0x2d1158[_0x52bf34('0x12')]=_[_0x52bf34('0x1e')](db[_0x52bf34('0x5')][_0x52bf34('0x31')]),_0x2d1158['query']=_[_0x52bf34('0x1e')](_0x5c7cb0[_0x52bf34('0x11')]),_0x2d1158[_0x52bf34('0x17')]=_[_0x52bf34('0x26')](_0x2d1158[_0x52bf34('0x12')],_0x2d1158[_0x52bf34('0x11')]),_0x3e101d[_0x52bf34('0x28')]=_[_0x52bf34('0x26')](_0x2d1158[_0x52bf34('0x12')],qs[_0x52bf34('0x2f')](_0x5c7cb0[_0x52bf34('0x11')]['fields'])),_0x3e101d[_0x52bf34('0x28')]=_0x3e101d['attributes'][_0x52bf34('0xf')]?_0x3e101d['attributes']:_0x2d1158[_0x52bf34('0x12')],_0x5c7cb0['query']['includeAll']&&(_0x3e101d[_0x52bf34('0x1b')]=[{'all':!![]}]),_0x3e101d=_[_0x52bf34('0xd')]({},_0x3e101d,_0x5c7cb0[_0x52bf34('0x3')]),db[_0x52bf34('0x5')][_0x52bf34('0x25')](_0x3e101d)[_0x52bf34('0x2')](handleEntityNotFound(_0x91dffa,null))['then'](respondWithResult(_0x91dffa,null))[_0x52bf34('0x34')](handleError(_0x91dffa,null));},exports[_0x4dfc92('0x22')]=function(_0x58dc8f,_0x3776f6){const _0x2e27eb=_0x4dfc92;return db[_0x2e27eb('0x5')][_0x2e27eb('0x22')](_0x58dc8f[_0x2e27eb('0x7')],{})[_0x2e27eb('0x2')](function(_0x803625){const _0x2a89cb=_0x2e27eb,_0x41fd4e=_0x58dc8f['user'][_0x2a89cb('0x2c')]({'plain':!![]});if(!_0x41fd4e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x41fd4e[_0x2a89cb('0x9')]==='user'){const _0x3634c2=_0x803625[_0x2a89cb('0x2c')]({'plain':!![]}),_0x8109ad=_0x2a89cb('0x1a');return db[_0x2a89cb('0x23')][_0x2a89cb('0x25')]({'where':{'name':_0x8109ad,'userProfileId':_0x41fd4e['userProfileId']},'raw':!![]})[_0x2a89cb('0x2')](function(_0x4163c1){const _0x293e87=_0x2a89cb;return _0x4163c1&&_0x4163c1[_0x293e87('0x1')]===0x0?db[_0x293e87('0x10')][_0x293e87('0x22')]({'name':_0x3634c2[_0x293e87('0x19')],'resourceId':_0x3634c2['id'],'type':_0x4163c1['name'],'sectionId':_0x4163c1['id']},{})[_0x293e87('0x2')](function(){return _0x803625;}):_0x803625;})['catch'](function(_0x4e096a){const _0x1eeea4=_0x2a89cb;logger[_0x1eeea4('0x32')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4e096a);throw _0x4e096a;});}return _0x803625;})[_0x2e27eb('0x2')](respondWithResult(_0x3776f6,0xc9))[_0x2e27eb('0x34')](handleError(_0x3776f6,null));},exports[_0x4dfc92('0x8')]=function(_0x32ef31,_0x2775a3){const _0x3b0d9c=_0x4dfc92;return _0x32ef31[_0x3b0d9c('0x7')]['id']&&delete _0x32ef31[_0x3b0d9c('0x7')]['id'],db[_0x3b0d9c('0x5')][_0x3b0d9c('0x25')]({'where':{'id':_0x32ef31[_0x3b0d9c('0x2a')]['id']}})[_0x3b0d9c('0x2')](handleEntityNotFound(_0x2775a3,null))['then'](saveUpdates(_0x32ef31['body'],null))[_0x3b0d9c('0x2')](respondWithResult(_0x2775a3,null))[_0x3b0d9c('0x34')](handleError(_0x2775a3,null));},exports[_0x4dfc92('0x13')]=function(_0x18c223,_0x41815d){const _0x1afdc6=_0x4dfc92;return db[_0x1afdc6('0x5')][_0x1afdc6('0x25')]({'where':{'id':_0x18c223[_0x1afdc6('0x2a')]['id']}})[_0x1afdc6('0x2')](handleEntityNotFound(_0x41815d,null))[_0x1afdc6('0x2')](removeEntity(_0x41815d,null))[_0x1afdc6('0x34')](handleError(_0x41815d,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index 831d0f8..cd8eb64 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a22_0x51cd=['analytics_metrics','define','AnalyticMetric','./analyticMetric.attributes'];(function(_0x21bcd1,_0x51cdae){const _0x30e4ce=function(_0x433840){while(--_0x433840){_0x21bcd1['push'](_0x21bcd1['shift']());}};_0x30e4ce(++_0x51cdae);}(a22_0x51cd,0x14b));const a22_0x30e4=function(_0x21bcd1,_0x51cdae){_0x21bcd1=_0x21bcd1-0x0;let _0x30e4ce=a22_0x51cd[_0x21bcd1];return _0x30e4ce;};const _0x49a204=a22_0x30e4;'use strict';const attributes=require(_0x49a204('0x0'));module['exports']=function(_0x433840){const _0x5ab0e0=_0x49a204,_0x551484=_0x433840[_0x5ab0e0('0x2')](_0x5ab0e0('0x3'),attributes,{'tableName':_0x5ab0e0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x551484;}; \ No newline at end of file +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 diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index 6cff466..6ae4db9 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a23_0x251f=['get','destroy','isAuthenticated','update','show','exports','/:id','../../components/auth/service','create','./analyticMetric.controller','Router'];(function(_0xf2d3cf,_0x251fe6){const _0x2f5526=function(_0x5c4ad6){while(--_0x5c4ad6){_0xf2d3cf['push'](_0xf2d3cf['shift']());}};_0x2f5526(++_0x251fe6);}(a23_0x251f,0x1a2));const a23_0x2f55=function(_0xf2d3cf,_0x251fe6){_0xf2d3cf=_0xf2d3cf-0x0;let _0x2f5526=a23_0x251f[_0xf2d3cf];return _0x2f5526;};const _0x45d87f=a23_0x2f55;'use strict';const express=require('express'),router=express[_0x45d87f('0xa')](),auth=require(_0x45d87f('0x7')),controller=require(_0x45d87f('0x9'));router[_0x45d87f('0x0')]('/',auth[_0x45d87f('0x2')](),controller['index']),router[_0x45d87f('0x0')](_0x45d87f('0x6'),auth[_0x45d87f('0x2')](),controller[_0x45d87f('0x4')]),router['post']('/',auth['isAuthenticated'](),controller[_0x45d87f('0x8')]),router['put'](_0x45d87f('0x6'),auth[_0x45d87f('0x2')](),controller[_0x45d87f('0x3')]),router['delete'](_0x45d87f('0x6'),auth[_0x45d87f('0x2')](),controller[_0x45d87f('0x1')]),module[_0x45d87f('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index 517ce27..5dd8fa2 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a24_0x4078=['exports','sequelize'];(function(_0x30c427,_0x4078ef){const _0xbf3b59=function(_0x318912){while(--_0x318912){_0x30c427['push'](_0x30c427['shift']());}};_0xbf3b59(++_0x4078ef);}(a24_0x4078,0x11a));const a24_0xbf3b=function(_0x30c427,_0x4078ef){_0x30c427=_0x30c427-0x0;let _0xbf3b59=a24_0x4078[_0x30c427];return _0xbf3b59;};const _0x201493=a24_0xbf3b;'use strict';const Sequelize=require(_0x201493('0x1'));module[_0x201493('0x0')]={'tree':{'type':Sequelize['TEXT'],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index ff7d3a6..95693ab 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a25_0x1e76=['index','keys','api','VIRTUAL','count','sequelize','query','json','set','send','filters','name','merge','fields','undefined','include','sendStatus','fieldName','where','stack','limit','rawAttributes','map','AnalyticTreeReport','body','catch','model','end','then','includeAll','findOne','show','offset','attributes','../../mysqldb','like','update','filter','sort','status','create','params','../../components/parsers/qs','options','lodash','type','../../config/logger','intersection','findAll','error','pick'];(function(_0xe8fbe4,_0x1e76c2){const _0x25b1a9=function(_0x252cc4){while(--_0x252cc4){_0xe8fbe4['push'](_0xe8fbe4['shift']());}};_0x25b1a9(++_0x1e76c2);}(a25_0x1e76,0x173));const a25_0x25b1=function(_0xe8fbe4,_0x1e76c2){_0xe8fbe4=_0xe8fbe4-0x0;let _0x25b1a9=a25_0x1e76[_0xe8fbe4];return _0x25b1a9;};const _0x18ee28=a25_0x25b1;'use strict';const _=require(_0x18ee28('0x1e')),qs=require(_0x18ee28('0x1c')),logger=require(_0x18ee28('0x20'))(_0x18ee28('0x27')),db=require(_0x18ee28('0x14'))['db'],{Op}=require(_0x18ee28('0x2a'));function respondWithResult(_0x252cc4,_0x556613){return _0x556613=_0x556613||0xc8,function(_0x17047c){const _0x9ab7fc=a25_0x25b1;if(_0x17047c)return _0x252cc4[_0x9ab7fc('0x19')](_0x556613)[_0x9ab7fc('0x2c')](_0x17047c);};}function respondWithFilteredResult(_0x551501,_0x57a318){return function(_0x22e430){const _0x24b5b7=a25_0x25b1;if(_0x22e430){const _0x344faa=_0x22e430[_0x24b5b7('0x29')],_0x5ddde3=_0x57a318[_0x24b5b7('0x12')];let _0x95c34b=_0x57a318[_0x24b5b7('0x12')]+_0x57a318[_0x24b5b7('0x6')],_0x2cfe29;return _0x95c34b>=_0x344faa?(_0x95c34b=_0x344faa,_0x2cfe29=0xc8):_0x2cfe29=0xce,_0x551501[_0x24b5b7('0x19')](_0x2cfe29),_0x551501[_0x24b5b7('0x2d')]('Content-Range',_0x5ddde3+'-'+_0x95c34b+'/'+_0x344faa)['json'](_0x22e430);}return null;};}function saveUpdates(_0x2fd873){return function(_0x3d6394){const _0x4df578=a25_0x25b1;if(_0x3d6394)return _0x3d6394[_0x4df578('0x16')](_0x2fd873)[_0x4df578('0xe')](function(_0x4be1d2){return _0x4be1d2;});return null;};}function removeEntity(_0x1fac1d){return function(_0x2ed45f){const _0x292374=a25_0x25b1;if(_0x2ed45f)return _0x2ed45f['destroy']()[_0x292374('0xe')](function(){const _0x811aea=_0x292374;_0x1fac1d[_0x811aea('0x19')](0xcc)[_0x811aea('0xd')]();});};}function handleEntityNotFound(_0x5e77ba){return function(_0x5af1da){const _0x431b69=a25_0x25b1;return!_0x5af1da&&_0x5e77ba[_0x431b69('0x2')](0x194),_0x5af1da;};}function handleError(_0x231753,_0x458892){return _0x458892=_0x458892||0x1f4,function(_0x4267e4){const _0x20412a=a25_0x25b1;logger[_0x20412a('0x23')](_0x4267e4[_0x20412a('0x5')]),_0x4267e4['name']&&delete _0x4267e4[_0x20412a('0x30')],_0x231753[_0x20412a('0x19')](_0x458892)[_0x20412a('0x2e')](_0x4267e4);};}exports[_0x18ee28('0x25')]=function(_0xf23549,_0x3599c5){const _0x51cc56=_0x18ee28;let _0x378935={};const _0x1935f9={},_0x212d9f={'count':0x0,'rows':[]},_0x465074=_[_0x51cc56('0x8')](db[_0x51cc56('0x9')]['rawAttributes'],function(_0x57bf4f){const _0x46777a=_0x51cc56;return{'name':_0x57bf4f[_0x46777a('0x3')],'type':_0x57bf4f[_0x46777a('0x1f')]['key']};});_0x1935f9['model']=_[_0x51cc56('0x8')](_0x465074,_0x51cc56('0x30')),_0x1935f9['query']=_[_0x51cc56('0x26')](_0xf23549[_0x51cc56('0x2b')]),_0x1935f9[_0x51cc56('0x2f')]=_[_0x51cc56('0x21')](_0x1935f9['model'],_0x1935f9['query']),_0x378935[_0x51cc56('0x13')]=_['intersection'](_0x1935f9[_0x51cc56('0xc')],qs[_0x51cc56('0x32')](_0xf23549[_0x51cc56('0x2b')][_0x51cc56('0x32')])),_0x378935[_0x51cc56('0x13')]=_0x378935[_0x51cc56('0x13')]['length']?_0x378935[_0x51cc56('0x13')]:_0x1935f9['model'];typeof _0xf23549['query']['nolimit']===_0x51cc56('0x0')&&(_0x378935[_0x51cc56('0x6')]=qs['limit'](_0xf23549[_0x51cc56('0x2b')][_0x51cc56('0x6')]),_0x378935[_0x51cc56('0x12')]=qs['offset'](_0xf23549[_0x51cc56('0x2b')][_0x51cc56('0x12')]));_0x378935['order']=qs['sort'](_0xf23549[_0x51cc56('0x2b')][_0x51cc56('0x18')]),_0x378935['where']=qs[_0x51cc56('0x2f')](_[_0x51cc56('0x24')](_0xf23549[_0x51cc56('0x2b')],_0x1935f9['filters']),_0x465074);_0xf23549[_0x51cc56('0x2b')][_0x51cc56('0x17')]&&(_0x378935[_0x51cc56('0x4')]=_[_0x51cc56('0x31')](_0x378935[_0x51cc56('0x4')],{[Op['or']]:_[_0x51cc56('0x8')](_0x465074,function(_0x3c464e){const _0x4502ed=_0x51cc56;if(_0x3c464e[_0x4502ed('0x1f')]!==_0x4502ed('0x28')){const _0x5a379b={};return _0x5a379b[_0x3c464e['name']]={[Op[_0x4502ed('0x15')]]:'%'+_0xf23549[_0x4502ed('0x2b')]['filter']+'%'},_0x5a379b;}})}));_0x378935=_['merge']({},_0x378935,_0xf23549[_0x51cc56('0x1d')]);const _0x136314={'where':_0x378935[_0x51cc56('0x4')]};return db['AnalyticTreeReport']['count'](_0x136314)[_0x51cc56('0xe')](function(_0x550f5f){const _0x67b098=_0x51cc56;return _0x212d9f['count']=_0x550f5f,_0xf23549[_0x67b098('0x2b')]['includeAll']&&(_0x378935['include']=[{'all':!![]}]),db[_0x67b098('0x9')][_0x67b098('0x22')](_0x378935);})[_0x51cc56('0xe')](function(_0x541459){return _0x212d9f['rows']=_0x541459,_0x212d9f;})['then'](respondWithFilteredResult(_0x3599c5,_0x378935))[_0x51cc56('0xb')](handleError(_0x3599c5,null));},exports[_0x18ee28('0x11')]=function(_0x3c529e,_0x332b0f){const _0x3b8a02=_0x18ee28;let _0x3cd24a={'raw':!![],'where':{'id':_0x3c529e[_0x3b8a02('0x1b')]['id']}};const _0x513b4c={};return _0x513b4c[_0x3b8a02('0xc')]=_[_0x3b8a02('0x26')](db[_0x3b8a02('0x9')][_0x3b8a02('0x7')]),_0x513b4c[_0x3b8a02('0x2b')]=_[_0x3b8a02('0x26')](_0x3c529e[_0x3b8a02('0x2b')]),_0x513b4c['filters']=_['intersection'](_0x513b4c[_0x3b8a02('0xc')],_0x513b4c[_0x3b8a02('0x2b')]),_0x3cd24a[_0x3b8a02('0x13')]=_[_0x3b8a02('0x21')](_0x513b4c[_0x3b8a02('0xc')],qs[_0x3b8a02('0x32')](_0x3c529e[_0x3b8a02('0x2b')][_0x3b8a02('0x32')])),_0x3cd24a[_0x3b8a02('0x13')]=_0x3cd24a[_0x3b8a02('0x13')]['length']?_0x3cd24a[_0x3b8a02('0x13')]:_0x513b4c[_0x3b8a02('0xc')],_0x3c529e[_0x3b8a02('0x2b')][_0x3b8a02('0xf')]&&(_0x3cd24a[_0x3b8a02('0x1')]=[{'all':!![]}]),_0x3cd24a=_[_0x3b8a02('0x31')]({},_0x3cd24a,_0x3c529e[_0x3b8a02('0x1d')]),db[_0x3b8a02('0x9')][_0x3b8a02('0x10')](_0x3cd24a)['then'](handleEntityNotFound(_0x332b0f,null))[_0x3b8a02('0xe')](respondWithResult(_0x332b0f,null))[_0x3b8a02('0xb')](handleError(_0x332b0f,null));},exports['create']=function(_0x5f33f4,_0x42e604){const _0x206105=_0x18ee28;return db['AnalyticTreeReport'][_0x206105('0x1a')](_0x5f33f4[_0x206105('0xa')],{})[_0x206105('0xe')](respondWithResult(_0x42e604,0xc9))[_0x206105('0xb')](handleError(_0x42e604,null));},exports['update']=function(_0x129962,_0xf89ec0){const _0x1bcc20=_0x18ee28;return _0x129962[_0x1bcc20('0xa')]['id']&&delete _0x129962['body']['id'],db[_0x1bcc20('0x9')][_0x1bcc20('0x10')]({'where':{'id':_0x129962[_0x1bcc20('0x1b')]['id']}})[_0x1bcc20('0xe')](handleEntityNotFound(_0xf89ec0,null))[_0x1bcc20('0xe')](saveUpdates(_0x129962[_0x1bcc20('0xa')],null))[_0x1bcc20('0xe')](respondWithResult(_0xf89ec0,null))['catch'](handleError(_0xf89ec0,null));},exports['destroy']=function(_0x475efe,_0x233024){const _0x43b502=_0x18ee28;return db['AnalyticTreeReport']['findOne']({'where':{'id':_0x475efe[_0x43b502('0x1b')]['id']}})[_0x43b502('0xe')](handleEntityNotFound(_0x233024,null))[_0x43b502('0xe')](removeEntity(_0x233024,null))['catch'](handleError(_0x233024,null));}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index 9feafa7..f2bc94e 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a26_0x464d=['define','./analyticTreeReport.attributes','analytics_report_trees'];(function(_0x26e330,_0x464d6c){const _0x533e32=function(_0xa3a99c){while(--_0xa3a99c){_0x26e330['push'](_0x26e330['shift']());}};_0x533e32(++_0x464d6c);}(a26_0x464d,0x11e));const a26_0x533e=function(_0x26e330,_0x464d6c){_0x26e330=_0x26e330-0x0;let _0x533e32=a26_0x464d[_0x26e330];return _0x533e32;};const _0x2ce299=a26_0x533e;'use strict';const attributes=require(_0x2ce299('0x0'));module['exports']=function(_0xa3a99c){const _0x4cfc1d=_0x2ce299,_0x553857=_0xa3a99c[_0x4cfc1d('0x2')]('AnalyticTreeReport',attributes,{'tableName':_0x4cfc1d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x553857;}; \ No newline at end of file +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 diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index 031ed20..9cd42cd 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a27_0xd1b9=['post','./analyticTreeReport.controller','show','delete','express','destroy','/:id','create','get','index','isAuthenticated','update','put','../../components/auth/service','Router','exports'];(function(_0x59c146,_0xd1b9a9){const _0xf89cec=function(_0x3fbfa8){while(--_0x3fbfa8){_0x59c146['push'](_0x59c146['shift']());}};_0xf89cec(++_0xd1b9a9);}(a27_0xd1b9,0x6d));const a27_0xf89c=function(_0x59c146,_0xd1b9a9){_0x59c146=_0x59c146-0x0;let _0xf89cec=a27_0xd1b9[_0x59c146];return _0xf89cec;};const _0x2ab771=a27_0xf89c;'use strict';const express=require(_0x2ab771('0x7')),router=express[_0x2ab771('0x1')](),auth=require(_0x2ab771('0x0')),controller=require(_0x2ab771('0x4'));router['get']('/',auth[_0x2ab771('0xd')](),controller[_0x2ab771('0xc')]),router[_0x2ab771('0xb')](_0x2ab771('0x9'),auth['isAuthenticated'](),controller[_0x2ab771('0x5')]),router[_0x2ab771('0x3')]('/',auth[_0x2ab771('0xd')](),controller[_0x2ab771('0xa')]),router[_0x2ab771('0xf')](_0x2ab771('0x9'),auth['isAuthenticated'](),controller[_0x2ab771('0xe')]),router[_0x2ab771('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x2ab771('0x8')]),module[_0x2ab771('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index b466963..42cfd18 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a28_0x1925=['exports','STRING'];(function(_0xb13280,_0x1925e8){const _0xb10a63=function(_0x4ba9c8){while(--_0x4ba9c8){_0xb13280['push'](_0xb13280['shift']());}};_0xb10a63(++_0x1925e8);}(a28_0x1925,0x150));const a28_0xb10a=function(_0xb13280,_0x1925e8){_0xb13280=_0xb13280-0x0;let _0xb10a63=a28_0x1925[_0xb13280];return _0xb10a63;};const _0x3cfdd9=a28_0xb10a;'use strict';const Sequelize=require('sequelize');module[_0x3cfdd9('0x0')]={'name':{'type':Sequelize[_0x3cfdd9('0x1')]},'basename':{'type':Sequelize[_0x3cfdd9('0x1')]},'type':{'type':Sequelize[_0x3cfdd9('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js index 59e4399..983cbf9 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a29_0x573b=['set','include','filter','Content-Range','error','sort','omit','attributes','root','stack','destroy','nolimit','end','pick','update','api','findOne','params','file','../../config/environment','fieldName','fields','sendStatus','options','where','query','findAll','type','show','rows','catch','merge','lodash','status','length','limit','count','VIRTUAL','join','files/attachments/','clone','../../mysqldb','keys','name','like','intersection','../../config/logger','basename','filename','create','download','Attachment','then','json','filters','body','key','offset','originalname','../../components/parsers/qs','model','rawAttributes','map','updatedAt','includeAll'];(function(_0x54d11c,_0x573b54){const _0x2667df=function(_0x41eaa2){while(--_0x41eaa2){_0x54d11c['push'](_0x54d11c['shift']());}};_0x2667df(++_0x573b54);}(a29_0x573b,0x105));const a29_0x2667=function(_0x54d11c,_0x573b54){_0x54d11c=_0x54d11c-0x0;let _0x2667df=a29_0x573b[_0x54d11c];return _0x2667df;};const _0x53cc06=a29_0x2667;'use strict';const path=require('path'),_=require(_0x53cc06('0x1f')),qs=require(_0x53cc06('0x3a')),logger=require(_0x53cc06('0x2d'))(_0x53cc06('0xe')),config=require(_0x53cc06('0x12')),db=require(_0x53cc06('0x28'))['db'],{Op}=require('sequelize');function respondWithResult(_0x41eaa2,_0xcad538){return _0xcad538=_0xcad538||0xc8,function(_0x44889b){const _0x4b2181=a29_0x2667;if(_0x44889b)return _0x41eaa2[_0x4b2181('0x20')](_0xcad538)[_0x4b2181('0x34')](_0x44889b);};}function respondWithFilteredResult(_0x4eb2a8,_0x15cc39){return function(_0x22ff29){const _0x11bfbf=a29_0x2667;if(_0x22ff29){const _0x42fadd=_0x22ff29['count'],_0x498dd7=_0x15cc39['offset'];let _0xe8f74c=_0x15cc39[_0x11bfbf('0x38')]+_0x15cc39[_0x11bfbf('0x22')],_0x4a263d;return _0xe8f74c>=_0x42fadd?(_0xe8f74c=_0x42fadd,_0x4a263d=0xc8):_0x4a263d=0xce,_0x4eb2a8['status'](_0x4a263d),_0x4eb2a8[_0x11bfbf('0x40')](_0x11bfbf('0x2'),_0x498dd7+'-'+_0xe8f74c+'/'+_0x42fadd)[_0x11bfbf('0x34')](_0x22ff29);}return null;};}function saveUpdates(_0x437c23){return function(_0x40945d){const _0x59dc05=a29_0x2667;if(_0x40945d)return _0x40945d['update'](_0x437c23)[_0x59dc05('0x33')](function(_0x3501d1){return _0x3501d1;});return null;};}function removeEntity(_0x496fca){return function(_0x262f5f){const _0x1abd77=a29_0x2667;if(_0x262f5f)return _0x262f5f[_0x1abd77('0x9')]()[_0x1abd77('0x33')](function(){const _0x31a7dc=_0x1abd77;_0x496fca[_0x31a7dc('0x20')](0xcc)[_0x31a7dc('0xb')]();});};}function handleEntityNotFound(_0x5cc5db){return function(_0x57681d){const _0x55b388=a29_0x2667;return!_0x57681d&&_0x5cc5db[_0x55b388('0x15')](0x194),_0x57681d;};}function handleError(_0x31acff,_0x59c5d1){return _0x59c5d1=_0x59c5d1||0x1f4,function(_0xaa42d){const _0x3f0be3=a29_0x2667;logger[_0x3f0be3('0x3')](_0xaa42d[_0x3f0be3('0x8')]),_0xaa42d[_0x3f0be3('0x2a')]&&delete _0xaa42d['name'],_0x31acff[_0x3f0be3('0x20')](_0x59c5d1)['send'](_0xaa42d);};}exports['index']=function(_0x48f9c9,_0x722cc){const _0x3a0428=_0x53cc06;let _0x11a5ad={};const _0x18cba7={},_0x18d803={'count':0x0,'rows':[]},_0x42328a=_['map'](db[_0x3a0428('0x32')][_0x3a0428('0x3c')],function(_0x4c3d78){const _0x221cbf=_0x3a0428;return{'name':_0x4c3d78[_0x221cbf('0x13')],'type':_0x4c3d78['type'][_0x221cbf('0x37')]};});_0x18cba7[_0x3a0428('0x3b')]=_['map'](_0x42328a,_0x3a0428('0x2a')),_0x18cba7['query']=_[_0x3a0428('0x29')](_0x48f9c9['query']),_0x18cba7[_0x3a0428('0x35')]=_[_0x3a0428('0x2c')](_0x18cba7[_0x3a0428('0x3b')],_0x18cba7[_0x3a0428('0x18')]),_0x11a5ad[_0x3a0428('0x6')]=_[_0x3a0428('0x2c')](_0x18cba7[_0x3a0428('0x3b')],qs['fields'](_0x48f9c9[_0x3a0428('0x18')]['fields'])),_0x11a5ad[_0x3a0428('0x6')]=_0x11a5ad[_0x3a0428('0x6')][_0x3a0428('0x21')]?_0x11a5ad['attributes']:_0x18cba7[_0x3a0428('0x3b')];typeof _0x48f9c9['query'][_0x3a0428('0xa')]==='undefined'&&(_0x11a5ad[_0x3a0428('0x22')]=qs[_0x3a0428('0x22')](_0x48f9c9[_0x3a0428('0x18')][_0x3a0428('0x22')]),_0x11a5ad['offset']=qs[_0x3a0428('0x38')](_0x48f9c9['query'][_0x3a0428('0x38')]));_0x11a5ad['order']=qs[_0x3a0428('0x4')](_0x48f9c9[_0x3a0428('0x18')][_0x3a0428('0x4')]),_0x11a5ad[_0x3a0428('0x17')]=qs[_0x3a0428('0x35')](_[_0x3a0428('0xc')](_0x48f9c9['query'],_0x18cba7[_0x3a0428('0x35')]),_0x42328a);_0x48f9c9['query'][_0x3a0428('0x1')]&&(_0x11a5ad[_0x3a0428('0x17')]=_[_0x3a0428('0x1e')](_0x11a5ad[_0x3a0428('0x17')],{[Op['or']]:_[_0x3a0428('0x3d')](_0x42328a,function(_0x1342f9){const _0x3c7b52=_0x3a0428;if(_0x1342f9['type']!==_0x3c7b52('0x24')){const _0x203185={};return _0x203185[_0x1342f9[_0x3c7b52('0x2a')]]={[Op[_0x3c7b52('0x2b')]]:'%'+_0x48f9c9['query']['filter']+'%'},_0x203185;}})}));_0x11a5ad=_[_0x3a0428('0x1e')]({},_0x11a5ad,_0x48f9c9[_0x3a0428('0x16')]);const _0x318e15={'where':_0x11a5ad[_0x3a0428('0x17')]};return db[_0x3a0428('0x32')][_0x3a0428('0x23')](_0x318e15)[_0x3a0428('0x33')](function(_0x2121c8){const _0x592613=_0x3a0428;return _0x18d803[_0x592613('0x23')]=_0x2121c8,_0x48f9c9[_0x592613('0x18')]['includeAll']&&(_0x11a5ad[_0x592613('0x0')]=[{'all':!![]}]),db[_0x592613('0x32')][_0x592613('0x19')](_0x11a5ad);})[_0x3a0428('0x33')](function(_0x327b6d){const _0x4a5bd0=_0x3a0428;return _0x18d803[_0x4a5bd0('0x1c')]=_0x327b6d,_0x18d803;})[_0x3a0428('0x33')](respondWithFilteredResult(_0x722cc,_0x11a5ad))['catch'](handleError(_0x722cc,null));},exports[_0x53cc06('0x1b')]=function(_0x3b314e,_0x452ffc){const _0x328cd2=_0x53cc06;let _0x4dd888={'raw':!![],'where':{'id':_0x3b314e[_0x328cd2('0x10')]['id']}};const _0x21ca45={};return _0x21ca45['model']=_[_0x328cd2('0x29')](db[_0x328cd2('0x32')][_0x328cd2('0x3c')]),_0x21ca45[_0x328cd2('0x18')]=_[_0x328cd2('0x29')](_0x3b314e['query']),_0x21ca45['filters']=_[_0x328cd2('0x2c')](_0x21ca45[_0x328cd2('0x3b')],_0x21ca45[_0x328cd2('0x18')]),_0x4dd888[_0x328cd2('0x6')]=_['intersection'](_0x21ca45[_0x328cd2('0x3b')],qs[_0x328cd2('0x14')](_0x3b314e[_0x328cd2('0x18')][_0x328cd2('0x14')])),_0x4dd888['attributes']=_0x4dd888[_0x328cd2('0x6')]['length']?_0x4dd888['attributes']:_0x21ca45['model'],_0x3b314e[_0x328cd2('0x18')][_0x328cd2('0x3f')]&&(_0x4dd888[_0x328cd2('0x0')]=[{'all':!![]}]),_0x4dd888=_[_0x328cd2('0x1e')]({},_0x4dd888,_0x3b314e['options']),db[_0x328cd2('0x32')][_0x328cd2('0xf')](_0x4dd888)[_0x328cd2('0x33')](handleEntityNotFound(_0x452ffc,null))['then'](respondWithResult(_0x452ffc,null))['catch'](handleError(_0x452ffc,null));},exports[_0x53cc06('0x27')]=function(_0x124866,_0x12b3a3){const _0x22db46=_0x53cc06;let _0x5b3a44={'where':{'id':_0x124866[_0x22db46('0x10')]['id']}};const _0x42fb38={};return _0x42fb38[_0x22db46('0x3b')]=_[_0x22db46('0x29')](db[_0x22db46('0x32')]['rawAttributes']),_0x5b3a44[_0x22db46('0x6')]=_[_0x22db46('0x2c')](_0x42fb38['model'],qs[_0x22db46('0x14')](_0x124866[_0x22db46('0x18')][_0x22db46('0x14')])),_0x5b3a44[_0x22db46('0x6')]=_0x5b3a44['attributes'][_0x22db46('0x21')]?_0x5b3a44['attributes']:_0x42fb38[_0x22db46('0x3b')],_0x124866['query'][_0x22db46('0x3f')]&&(_0x5b3a44[_0x22db46('0x0')]=[{'all':!![]}]),_0x5b3a44=_[_0x22db46('0x1e')]({},_0x5b3a44,_0x124866['options']),db[_0x22db46('0x32')][_0x22db46('0xf')](_0x5b3a44)[_0x22db46('0x33')](handleEntityNotFound(_0x12b3a3,null))[_0x22db46('0x33')](function(_0x46e2a5){const _0x2dd63e=_0x22db46;if(_0x46e2a5){let _0x4827f9=_0x46e2a5['get']({'plain':!![]});return _0x4827f9=qs[_0x2dd63e('0x5')](_0x4827f9,['id','createdAt',_0x2dd63e('0x3e')]),_0x124866[_0x2dd63e('0x36')]=_[_0x2dd63e('0x5')](_0x124866['body'],['id','createdAt','updatedAt']),db[_0x2dd63e('0x32')]['create'](_[_0x2dd63e('0x1e')](_0x4827f9,_0x124866['body']),{'include':_0x124866[_0x2dd63e('0x18')]['includeAll']?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0x12b3a3,0xc9))[_0x22db46('0x1d')](handleError(_0x12b3a3,null));},exports[_0x53cc06('0xd')]=function(_0x425387,_0xd5291f){const _0x543232=_0x53cc06;return _0x425387['body']['id']&&delete _0x425387['body']['id'],db[_0x543232('0x32')][_0x543232('0xf')]({'where':{'id':_0x425387['params']['id']}})[_0x543232('0x33')](handleEntityNotFound(_0xd5291f,null))['then'](saveUpdates(_0x425387[_0x543232('0x36')],null))[_0x543232('0x33')](respondWithResult(_0xd5291f,null))['catch'](handleError(_0xd5291f,null));},exports[_0x53cc06('0x9')]=function(_0x8aa8e,_0x4abe7d){const _0x4d1a0a=_0x53cc06;return db[_0x4d1a0a('0x32')][_0x4d1a0a('0xf')]({'where':{'id':_0x8aa8e['params']['id']}})[_0x4d1a0a('0x33')](handleEntityNotFound(_0x4abe7d,null))['then'](removeEntity(_0x4abe7d,null))[_0x4d1a0a('0x1d')](handleError(_0x4abe7d,null));},exports[_0x53cc06('0x30')]=function(_0x382f4d,_0x37a0fa){const _0x217c87=_0x53cc06;return _0x382f4d[_0x217c87('0x36')]['name']=_0x382f4d[_0x217c87('0x11')][_0x217c87('0x39')],_0x382f4d[_0x217c87('0x36')][_0x217c87('0x2e')]=_0x382f4d[_0x217c87('0x11')][_0x217c87('0x2f')],_0x382f4d[_0x217c87('0x36')][_0x217c87('0x1a')]=_0x382f4d[_0x217c87('0x11')]['mimetype'],db['Attachment']['create'](_0x382f4d[_0x217c87('0x36')])[_0x217c87('0x33')](respondWithResult(_0x37a0fa,0xc9))['catch'](handleError(_0x37a0fa,null));},exports[_0x53cc06('0x31')]=function(_0x56cf30,_0x3a5f76){const _0x19486f=_0x53cc06;return db[_0x19486f('0x32')][_0x19486f('0xf')]({'where':{'id':_0x56cf30[_0x19486f('0x10')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x3a5f76,null))['then'](function(_0x430126){const _0x5e41f2=_0x19486f;if(_0x430126)return _0x3a5f76[_0x5e41f2('0x31')](path[_0x5e41f2('0x25')](config[_0x5e41f2('0x7')],_0x5e41f2('0x26'),_0x430126[_0x5e41f2('0x2e')]));})[_0x19486f('0x1d')](handleError(_0x3a5f76,null));}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index 0699a3b..d327e54 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a30_0x75cd=['Attachment','exports','define','attachments'];(function(_0x5c7f2a,_0x75cdde){const _0x1b58a7=function(_0x35e88b){while(--_0x35e88b){_0x5c7f2a['push'](_0x5c7f2a['shift']());}};_0x1b58a7(++_0x75cdde);}(a30_0x75cd,0x1ef));const a30_0x1b58=function(_0x5c7f2a,_0x75cdde){_0x5c7f2a=_0x5c7f2a-0x0;let _0x1b58a7=a30_0x75cd[_0x5c7f2a];return _0x1b58a7;};const _0x57cde9=a30_0x1b58;'use strict';const attributes=require('./attachment.attributes');module[_0x57cde9('0x2')]=function(_0x35e88b){const _0x29917a=_0x57cde9,_0x1616d1=_0x35e88b[_0x29917a('0x3')](_0x29917a('0x1'),attributes,{'tableName':_0x29917a('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1616d1;}; \ No newline at end of file +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 diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index 2045431..017741c 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a31_0x44f5=['options','raw','catch','create','debug','Attachment','error','body','CreateAttachment','info','message','stringify','../../mysqldb'];(function(_0x3b9654,_0x44f530){const _0x44ad89=function(_0x43e26b){while(--_0x43e26b){_0x3b9654['push'](_0x3b9654['shift']());}};_0x44ad89(++_0x44f530);}(a31_0x44f5,0x10d));const a31_0x44ad=function(_0x3b9654,_0x44f530){_0x3b9654=_0x3b9654-0x0;let _0x44ad89=a31_0x44f5[_0x3b9654];return _0x44ad89;};const _0x57cbf6=a31_0x44ad;'use strict';const db=require(_0x57cbf6('0x3'))['db'],logger=require('../../config/logger')('rpc');exports['CreateAttachment']=function(_0x43e26b){const _0x51a200=this;return new Promise(function(_0x59768d,_0x47267d){const _0x503c88=a31_0x44ad;return db[_0x503c88('0x9')][_0x503c88('0x7')](_0x43e26b[_0x503c88('0xb')],{'raw':_0x43e26b['options']?_0x43e26b[_0x503c88('0x4')][_0x503c88('0x5')]===undefined?!![]:![]:!![]})['then'](function(_0x17e385){const _0x36e670=_0x503c88;logger[_0x36e670('0x0')]('CreateAttachment',_0x43e26b),logger[_0x36e670('0x8')](_0x36e670('0xc'),_0x43e26b,JSON[_0x36e670('0x2')](_0x17e385)),_0x59768d(_0x17e385);})[_0x503c88('0x6')](function(_0x1b50bc){const _0x179a45=_0x503c88;logger[_0x179a45('0xa')]('CreateAttachment',_0x1b50bc[_0x179a45('0x1')],_0x43e26b),_0x47267d(_0x51a200['error'](0x1f4,_0x1b50bc[_0x179a45('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index 886543f..89d3d82 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a32_0x4b09=['file','isAuthenticated','download','diskStorage','files/attachments/','/:id','path','../../config/environment','now','originalname','exports','single','index','multer','util','clone','update','post','Router','format','./attachment.controller','get','/:id/download','create','put','%s-%s','destroy','express'];(function(_0x61a3be,_0x4b0943){const _0x49db78=function(_0x18aa7c){while(--_0x18aa7c){_0x61a3be['push'](_0x61a3be['shift']());}};_0x49db78(++_0x4b0943);}(a32_0x4b09,0x1e5));const a32_0x49db=function(_0x61a3be,_0x4b0943){_0x61a3be=_0x61a3be-0x0;let _0x49db78=a32_0x4b09[_0x61a3be];return _0x49db78;};const _0x1c810d=a32_0x49db;'use strict';const multer=require(_0x1c810d('0x4')),util=require(_0x1c810d('0x5')),path=require(_0x1c810d('0x19')),express=require(_0x1c810d('0x12')),router=express[_0x1c810d('0x9')](),auth=require('../../components/auth/service'),config=require(_0x1c810d('0x1a')),controller=require(_0x1c810d('0xb'));router['get']('/',auth[_0x1c810d('0x14')](),controller[_0x1c810d('0x3')]),router['get']('/:id',auth[_0x1c810d('0x14')](),controller['show']),router[_0x1c810d('0xc')](_0x1c810d('0xd'),auth[_0x1c810d('0x14')](),controller[_0x1c810d('0x15')]),router[_0x1c810d('0x8')]('/:id/clone',auth[_0x1c810d('0x14')](),controller[_0x1c810d('0x6')]);const upload=multer({'storage':multer[_0x1c810d('0x16')]({'destination':function(_0x18aa7c,_0x29bba6,_0x2a5c64){const _0x5cf699=_0x1c810d;_0x2a5c64(null,path['join'](config['root'],_0x5cf699('0x17')));},'filename':function(_0x143311,_0x5ef44c,_0x309421){const _0x4da7de=_0x1c810d;_0x309421(null,util[_0x4da7de('0xa')](_0x4da7de('0x10'),Date[_0x4da7de('0x1b')](),_0x5ef44c[_0x4da7de('0x0')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x1c810d('0x8')]('/',upload[_0x1c810d('0x2')](_0x1c810d('0x13')),controller[_0x1c810d('0xe')]),router[_0x1c810d('0xf')](_0x1c810d('0x18'),auth[_0x1c810d('0x14')](),controller[_0x1c810d('0x7')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x1c810d('0x11')]),module[_0x1c810d('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index e459ac6..c98135e 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a33_0x3c0e=['lodash','../../config/environment','sequelize','passport','profile','disabled','findOne','blockedAt','authenticate','admin','agent','Strategy','catch','blocked','use','blockDuration','minutes','emails','clientID','add','then','google','getLicense','/login','../../mysqldb','Setting','allowedLoginAttempts','moment','value','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','map','user','../../config/utils'];(function(_0x5cfaed,_0x3c0ea0){const _0x5d0950=function(_0x9e3aa8){while(--_0x9e3aa8){_0x5cfaed['push'](_0x5cfaed['shift']());}};_0x5d0950(++_0x3c0ea0);}(a33_0x3c0e,0x12c));const a33_0x5d09=function(_0x5cfaed,_0x3c0ea0){_0x5cfaed=_0x5cfaed-0x0;let _0x5d0950=a33_0x3c0e[_0x5cfaed];return _0x5d0950;};const _0x4979e8=a33_0x5d09;'use strict';const _=require(_0x4979e8('0x1e')),passport=require(_0x4979e8('0x0')),GoogleStrategy=require('passport-google-oauth20')[_0x4979e8('0x8')],moment=require(_0x4979e8('0x18')),db=require(_0x4979e8('0x15'))['db'],config=require(_0x4979e8('0x1f')),utils=require(_0x4979e8('0x1d')),{Op}=require(_0x4979e8('0x20'));exports['login']=passport[_0x4979e8('0x5')]('google',{'failureRedirect':_0x4979e8('0x14'),'scope':[_0x4979e8('0x1'),'email'],'session':![]}),exports['callback']=passport[_0x4979e8('0x5')](_0x4979e8('0x12'),{'failureRedirect':_0x4979e8('0x14'),'session':![]}),passport[_0x4979e8('0xb')](new GoogleStrategy({'clientID':config[_0x4979e8('0x12')]?config[_0x4979e8('0x12')][_0x4979e8('0xf')]:'id','clientSecret':config[_0x4979e8('0x12')]?config['google']['clientSecret']:'secret','callbackURL':config[_0x4979e8('0x12')]?config[_0x4979e8('0x12')]['callbackURL']:''},function(_0x9e3aa8,_0x32d42d,_0x11866a,_0x1f5cf0){const _0xac1807=_0x4979e8;let _0x54b5e2,_0x571634;return db[_0xac1807('0x16')][_0xac1807('0x3')]({'where':{'id':0x1},'attributes':[_0xac1807('0x17'),_0xac1807('0xc')],'raw':!![]})[_0xac1807('0x11')](function(_0x5ba03f){const _0x303402=_0xac1807;return _0x54b5e2=_0x5ba03f,db['Use'][_0x303402('0x3')]({'where':{'email':_[_0x303402('0x1b')](_0x11866a[_0x303402('0xe')],_0x303402('0x19')),'role':{[Op['or']]:[_0x303402('0x6'),_0x303402('0x1c'),_0x303402('0x7')]}}});})[_0xac1807('0x11')](function(_0x5790b5){const _0x32c21a=_0xac1807;_0x571634=_0x5790b5;if(_0x571634){if(_0x571634[_0x32c21a('0x2')])return _0x1f5cf0('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x54b5e2[_0x32c21a('0xc')]>0x0?_0x571634[_0x32c21a('0xa')]?moment(_0x571634[_0x32c21a('0x4')])[_0x32c21a('0x10')](_0x54b5e2[_0x32c21a('0xc')],_0x32c21a('0xd'))>moment()?_0x1f5cf0(_0x32c21a('0x1a')):utils['clearBlockUser'](_0x571634,0x0,![],null)['then'](function(){const _0xd5d061=_0x32c21a;return utils[_0xd5d061('0x13')](_0x571634);})[_0x32c21a('0x11')](function(){return _0x1f5cf0(null,_0x571634);}):utils['getLicense'](_0x571634)[_0x32c21a('0x11')](function(){return _0x1f5cf0(null,_0x571634);}):utils[_0x32c21a('0x13')](_0x571634)[_0x32c21a('0x11')](function(){return _0x1f5cf0(null,_0x571634);});}return _0x1f5cf0(_0x32c21a('0x1a'));})[_0xac1807('0x9')](function(_0x1f6a59){_0x1f5cf0(_0x1f6a59);});})); \ No newline at end of file +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 diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index 9d41079..199da35 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a34_0x4790=['../../components/auth/service','get','setTokenCookie'];(function(_0x141e09,_0x479075){const _0x376de3=function(_0x5e2d13){while(--_0x5e2d13){_0x141e09['push'](_0x141e09['shift']());}};_0x376de3(++_0x479075);}(a34_0x4790,0x94));const a34_0x376d=function(_0x141e09,_0x479075){_0x141e09=_0x141e09-0x0;let _0x376de3=a34_0x4790[_0x141e09];return _0x376de3;};const _0x471bbd=a34_0x376d;'use strict';const express=require('express'),router=express['Router'](),controller=require('./authGoogle.controller'),userController=require('../user/user.controller.js'),authService=require(_0x471bbd('0x2'));router[_0x471bbd('0x0')]('/',controller['login']),router[_0x471bbd('0x0')]('/callback',controller['callback'],authService['isMiddleware'],userController['login'],authService[_0x471bbd('0x1')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index 43c5340..3732449 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a35_0xf115=['http://','enforcePasswordHistory','local','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','admin','name','Password\x20reset!','MailAccount','client','disabled','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','xCally\x20Motion\x20Password\x20Reset','previousPasswords','error','moment','Use','generate','authentication','trim','login','minutes','securePassword','blockDuration','authenticate','stringify','then','passport-local','format','catch','blockedAt','request','online','/reset/','passport','headers','save','validatePasswordHistory','reset','body','salt','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','Setting','use','SendMail','secure','User','passwordHistoryLimit','lodash','MailServerOut','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','merge','../../mysqldb','Something\x20went\x20wrong,\x20please\x20try\x20again.','status','toLowerCase','auth','loginAttempts','Reset\x20Email\x20sent!','findOne','pass','../../config/utils','This\x20email\x20is\x20not\x20registered.','host','message','send','Strategy','getLicense','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','resetPasswordToken','forgot','resetPasswordExpires','sequelize','clearBlockUser','validatePasswordPattern','user','password','port','util','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','add','Smtp','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','role','service','agent','signToken','blocked','email','now','allowedLoginAttempts','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'];(function(_0xa1027a,_0xf11531){const _0x4e9286=function(_0x20c688){while(--_0x20c688){_0xa1027a['push'](_0xa1027a['shift']());}};_0x4e9286(++_0xf11531);}(a35_0xf115,0x11b));const a35_0x4e92=function(_0xa1027a,_0xf11531){_0xa1027a=_0xa1027a-0x0;let _0x4e9286=a35_0xf115[_0xa1027a];return _0x4e9286;};const _0x4ff907=a35_0x4e92;'use strict';const util=require(_0x4ff907('0x47')),passport=require(_0x4ff907('0x1b')),LocalStrategy=require(_0x4ff907('0x14'))[_0x4ff907('0x3b')],jayson=require('jayson/promise'),_=require(_0x4ff907('0x29')),rs=require('randomstring'),moment=require(_0x4ff907('0x8')),db=require(_0x4ff907('0x2d'))['db'],{Op}=require(_0x4ff907('0x41')),authService=require('../../components/auth/service'),utils=require(_0x4ff907('0x36')),client=jayson[_0x4ff907('0x2')]['http']({'port':0x232b});function localAuthenticate(_0x20c688,_0x581ce4,_0x2c41e2,_0x543689){const _0x3b8ba4=_0x4ff907;let _0x3ab767,_0x1de826;return db[_0x3b8ba4('0x23')][_0x3b8ba4('0x34')]({'where':{'id':0x1},'attributes':[_0x3b8ba4('0x53'),_0x3b8ba4('0x10')],'raw':!![]})['then'](function(_0x5b3551){const _0x206785=_0x3b8ba4;return _0x3ab767=_0x5b3551,_0x20c688[_0x206785('0x34')]({'attributes':['id',_0x206785('0x5b'),_0x206785('0x45'),_0x206785('0x21'),_0x206785('0x4c'),_0x206785('0x3'),_0x206785('0x50'),_0x206785('0x17'),_0x206785('0x32')],'where':{'name':_0x581ce4,'role':{[Op['or']]:[_0x206785('0x5a'),'user',_0x206785('0x4e')]}}});})[_0x3b8ba4('0x13')](function(_0x2c7256){const _0x38da5c=_0x3b8ba4;if(!_0x2c7256||_0x2c7256&&_0x2c7256[_0x38da5c('0x5b')]!==_0x581ce4)throw new Error(_0x38da5c('0x54'));else return _0x1de826=_0x2c7256,_0x1de826;})[_0x3b8ba4('0x13')](function(){const _0x3e9ad8=_0x3b8ba4;_0x1de826[_0x3e9ad8('0x11')](_0x2c41e2,function(_0x5ceff2,_0x4ddb45){const _0x23b095=_0x3e9ad8,_0x2794c5=_0x1de826[_0x23b095('0x32')]+0x1;if(_0x5ceff2)return _0x543689(_0x5ceff2);else{if(!_0x4ddb45){if(_0x1de826[_0x23b095('0x3')])return _0x543689(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});else return _0x3ab767[_0x23b095('0x53')]>0x0?_0x1de826[_0x23b095('0x50')]?_0x3ab767['blockDuration']>0x0?moment(_0x1de826[_0x23b095('0x17')])['add'](_0x3ab767['blockDuration'],_0x23b095('0xe'))>moment()?_0x543689(null,![],{'message':_0x23b095('0x54')}):utils['clearBlockUser'](_0x1de826,_0x2794c5,![],null)[_0x23b095('0x13')](function(){const _0x12121b=_0x23b095;return _0x543689(null,![],{'message':_0x12121b('0x54')});}):_0x543689(null,![],{'message':_0x23b095('0x54')}):_0x2794c5>=_0x3ab767[_0x23b095('0x53')]?utils[_0x23b095('0x42')](_0x1de826,0x0,!![],moment())[_0x23b095('0x13')](function(){const _0x5eeb98=_0x23b095;return _0x543689(null,![],{'message':_0x5eeb98('0x54')});}):utils[_0x23b095('0x42')](_0x1de826,_0x2794c5,![],null)[_0x23b095('0x13')](function(){const _0x30b8dc=_0x23b095;return _0x543689(null,![],{'message':_0x30b8dc('0x54')});}):_0x543689(null,![],{'message':_0x23b095('0x54')});}else{if(_0x1de826['disabled'])return _0x543689(null,![],{'message':_0x23b095('0x54')});else return _0x3ab767[_0x23b095('0x53')]>0x0?_0x1de826[_0x23b095('0x50')]?_0x3ab767[_0x23b095('0x10')]>0x0?moment(_0x1de826[_0x23b095('0x17')])[_0x23b095('0x49')](_0x3ab767[_0x23b095('0x10')],_0x23b095('0xe'))>moment()?_0x543689(null,![],{'message':_0x23b095('0x54')}):utils[_0x23b095('0x42')](_0x1de826,0x0,![],null)[_0x23b095('0x13')](function(){const _0x3be05c=_0x23b095;return utils[_0x3be05c('0x3c')](_0x1de826);})[_0x23b095('0x13')](function(){return _0x543689(null,_0x1de826);}):_0x543689(null,![],{'message':_0x23b095('0x54')}):utils[_0x23b095('0x42')](_0x1de826,0x0,![],null)[_0x23b095('0x13')](function(){const _0x3ad756=_0x23b095;return utils[_0x3ad756('0x3c')](_0x1de826);})[_0x23b095('0x13')](function(){return _0x543689(null,_0x1de826);})['catch'](function(_0x5baaf3){return _0x543689(null,![],_0x5baaf3);}):_0x1de826['blocked']?_0x543689(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x23b095('0x3c')](_0x1de826)[_0x23b095('0x13')](function(){return _0x543689(null,_0x1de826);});}}});})[_0x3b8ba4('0x16')](function(_0x21ac53){return _0x543689(null,![],_0x21ac53);});}function sendServiceMail(_0x9e271){const _0x3589f0=_0x4ff907;return db[_0x3589f0('0x1')][_0x3589f0('0x34')]({'where':{'service':!![]},'attributes':['id','name',_0x3589f0('0x51')],'include':[{'model':db[_0x3589f0('0x2a')],'as':'Smtp'}]})[_0x3589f0('0x13')](function(_0x100ba4){const _0x1e77d6=_0x3589f0;if(!_0x100ba4)throw new Error(_0x1e77d6('0x59'));const _0x5b2504={'tls':{'rejectUnauthorized':![]}};_0x100ba4['Smtp'][_0x1e77d6('0x4d')]?_0x5b2504[_0x1e77d6('0x4d')]=_0x100ba4[_0x1e77d6('0x4a')][_0x1e77d6('0x4d')]:(_0x5b2504[_0x1e77d6('0x38')]=_0x100ba4[_0x1e77d6('0x4a')]['host'],_0x5b2504[_0x1e77d6('0x46')]=_0x100ba4[_0x1e77d6('0x4a')][_0x1e77d6('0x46')],_0x5b2504['secure']=_0x100ba4[_0x1e77d6('0x4a')][_0x1e77d6('0x26')]);_0x100ba4['Smtp'][_0x1e77d6('0xb')]&&(_0x5b2504[_0x1e77d6('0x31')]={'user':_0x100ba4['Smtp'][_0x1e77d6('0x44')],'pass':_0x100ba4[_0x1e77d6('0x4a')][_0x1e77d6('0x35')]});const _0x35a5f4={'account':_0x5b2504,'message':_[_0x1e77d6('0x2c')]({'from':util[_0x1e77d6('0x15')]('\x22%s\x22\x20<%s>',_0x100ba4[_0x1e77d6('0x5b')],_0x100ba4[_0x1e77d6('0x51')]||_0x100ba4[_0x1e77d6('0x4a')]['user'])},_0x9e271)};return client[_0x1e77d6('0x18')](_0x1e77d6('0x25'),_0x35a5f4);})[_0x3589f0('0x13')](function(_0x4da547){const _0x310e5f=_0x3589f0;if(_0x4da547[_0x310e5f('0x7')])throw new Error(util[_0x310e5f('0x15')](_0x310e5f('0x3d'),_0x4da547[_0x310e5f('0x7')][_0x310e5f('0x39')]||JSON[_0x310e5f('0x12')](_0x4da547[_0x310e5f('0x7')])));return!![];});}function handleError(_0x5f3502,_0x576b22,_0x498185){const _0x27a63f=_0x4ff907;return _0x5f3502[_0x27a63f('0x2f')](_0x576b22||0x1f4)[_0x27a63f('0x3a')]({'message':_0x498185?_0x498185[_0x27a63f('0x39')]||_0x498185:''});}exports[_0x4ff907('0xd')]=function(_0x4265c3,_0x56da1c,_0xc302b4){const _0x539b0a=_0x4ff907;passport[_0x539b0a('0x11')](_0x539b0a('0x57'),function(_0x225fd9,_0x13087d,_0x5b1685){const _0x2518ac=_0x539b0a,_0x28b57b=_0x225fd9||_0x5b1685;if(_0x28b57b)return handleError(_0x56da1c,0x191,_0x28b57b);if(!_0x13087d)return handleError(_0x56da1c,0x194,{'message':_0x2518ac('0x2e')});else{const _0x430fc2={'payload':{'id':_0x13087d['id'],'role':_0x13087d[_0x2518ac('0x4c')]},'options':{'expiresIn':0x15180}};return authService[_0x2518ac('0x4f')](_0x430fc2)[_0x2518ac('0x13')](function(_0x12f885){const _0x13e498=_0x2518ac;_0x56da1c['json']({'id':_0x13087d['id'],'token':_0x12f885,'statusCall':'','isAlreadyLogged':_0x13087d[_0x13e498('0x19')]});});}})(_0x4265c3,_0x56da1c,_0xc302b4);},exports[_0x4ff907('0x3f')]=function(_0x1a16c4,_0x459a2c){const _0x6aceda=_0x4ff907;if(!_0x1a16c4[_0x6aceda('0x20')][_0x6aceda('0x51')])return handleError(_0x459a2c,0x1f4,{'message':'Email\x20parameter\x20is\x20missing'});const _0x466be0=rs[_0x6aceda('0xa')]();_0x1a16c4[_0x6aceda('0x20')][_0x6aceda('0x51')]=_0x1a16c4['body'][_0x6aceda('0x51')][_0x6aceda('0xc')]()[_0x6aceda('0x30')]();let _0x2e866a;return db[_0x6aceda('0x23')][_0x6aceda('0x34')]({'where':{'id':0x1},'attributes':[_0x6aceda('0x53'),_0x6aceda('0x10')],'raw':!![]})['then'](function(_0x4c6b21){const _0x593b3d=_0x6aceda;return _0x2e866a=_0x4c6b21,db[_0x593b3d('0x9')][_0x593b3d('0x34')]({'where':{'email':_0x1a16c4[_0x593b3d('0x20')]['email']}});})[_0x6aceda('0x13')](function(_0x2c990a){const _0x5c68ee=_0x6aceda;if(!_0x2c990a)throw new Error(_0x5c68ee('0x37'));if(_0x2c990a[_0x5c68ee('0x3')])throw new Error(_0x5c68ee('0x4'));if(_0x2c990a[_0x5c68ee('0x50')]){if(moment(_0x2c990a[_0x5c68ee('0x17')])[_0x5c68ee('0x49')](_0x2e866a[_0x5c68ee('0x10')],'minutes')>moment())throw new Error(_0x5c68ee('0x4b'));else _0x2c990a['blocked']=![],_0x2c990a['blockedAt']=null;}return _0x2c990a[_0x5c68ee('0x3e')]=_0x466be0,_0x2c990a[_0x5c68ee('0x40')]=Date[_0x5c68ee('0x52')]()+0x36ee80,_0x2c990a['save']();})['then'](function(){const _0xb25965=_0x6aceda;return sendServiceMail({'to':_0x1a16c4['body'][_0xb25965('0x51')],'subject':_0xb25965('0x5'),'text':_0xb25965('0x58')+_0xb25965('0x2b')+_0xb25965('0x55')+_0x1a16c4[_0xb25965('0x1c')][_0xb25965('0x38')]+_0xb25965('0x1a')+_0x466be0+'\x0a\x0a'+_0xb25965('0x22')});})[_0x6aceda('0x13')](function(){const _0x3673ff=_0x6aceda;_0x459a2c[_0x3673ff('0x2f')](0xc8)[_0x3673ff('0x3a')]({'message':_0x3673ff('0x33')});})[_0x6aceda('0x16')](function(_0x4b08fb){return handleError(_0x459a2c,0x1f4,_0x4b08fb);});},exports[_0x4ff907('0x1f')]=function(_0x36ef6f,_0x111802){const _0x426f43=_0x4ff907;return db[_0x426f43('0x27')][_0x426f43('0x34')]({'where':{'resetPasswordToken':_0x36ef6f['params']['token'],'resetPasswordExpires':{[Op['gt']]:Date[_0x426f43('0x52')]()}}})[_0x426f43('0x13')](function(_0x793631){const _0x5b990e=_0x426f43;if(!_0x793631)throw new Error(_0x5b990e('0x48'));return db[_0x5b990e('0x23')][_0x5b990e('0x34')]({'attributes':['id',_0x5b990e('0xf'),'enforcePasswordHistory',_0x5b990e('0x28')]})[_0x5b990e('0x13')](function(_0x3b7f0a){const _0x3be96a=_0x5b990e;if(_0x3b7f0a[_0x3be96a('0xf')])authService[_0x3be96a('0x43')](_0x36ef6f[_0x3be96a('0x20')][_0x3be96a('0x45')]);if(!_0x3b7f0a[_0x3be96a('0x56')]||!_0x793631[_0x3be96a('0x6')])return _0x793631;return authService[_0x3be96a('0x1e')](_0x36ef6f['body'][_0x3be96a('0x45')],_0x793631[_0x3be96a('0x6')],_0x3b7f0a[_0x3be96a('0x28')]),_0x793631;})[_0x5b990e('0x13')](function(){const _0x2de335=_0x5b990e;return _0x793631[_0x2de335('0x45')]=_0x36ef6f[_0x2de335('0x20')][_0x2de335('0x45')],_0x793631[_0x2de335('0x3e')]=null,_0x793631[_0x2de335('0x40')]=null,_0x793631[_0x2de335('0x1d')]();});})[_0x426f43('0x13')](function(){const _0xedccdd=_0x426f43;_0x111802[_0xedccdd('0x2f')](0xc8)['send']({'message':_0xedccdd('0x0')});})['catch'](function(_0x959bea){return handleError(_0x111802,0x1f4,_0x959bea);});},passport[_0x4ff907('0x24')](new LocalStrategy({'usernameField':_0x4ff907('0x5b'),'passwordField':_0x4ff907('0x45')},function(_0x2c4423,_0x385a63,_0x1caffd){const _0x2fee62=_0x4ff907;return localAuthenticate(db[_0x2fee62('0x27')],_0x2c4423,_0x385a63,_0x1caffd);})); \ No newline at end of file +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 diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index fd3e6bf..a676f01 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a36_0x5ba5=['forgot','login','reset','Router','post','/reset/:token','/forgot','exports','./authLocal.controller'];(function(_0x5edd76,_0x5ba56b){const _0x48f37c=function(_0x484f56){while(--_0x484f56){_0x5edd76['push'](_0x5edd76['shift']());}};_0x48f37c(++_0x5ba56b);}(a36_0x5ba5,0x9f));const a36_0x48f3=function(_0x5edd76,_0x5ba56b){_0x5edd76=_0x5edd76-0x0;let _0x48f37c=a36_0x5ba5[_0x5edd76];return _0x48f37c;};const _0x25bbba=a36_0x48f3;'use strict';const express=require('express'),router=express[_0x25bbba('0x6')](),controller=require(_0x25bbba('0x2'));router['post']('/',controller[_0x25bbba('0x4')]),router[_0x25bbba('0x7')](_0x25bbba('0x0'),controller[_0x25bbba('0x3')]),router[_0x25bbba('0x7')](_0x25bbba('0x8'),controller[_0x25bbba('0x5')]),module[_0x25bbba('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js index b1c8875..1763fea 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a37_0x47e7=['sequelize','STRING','BOOLEAN','exports','INTEGER'];(function(_0x220ff8,_0x47e73e){const _0xcc0e50=function(_0x14becb){while(--_0x14becb){_0x220ff8['push'](_0x220ff8['shift']());}};_0xcc0e50(++_0x47e73e);}(a37_0x47e7,0x93));const a37_0xcc0e=function(_0x220ff8,_0x47e73e){_0x220ff8=_0x220ff8-0x0;let _0xcc0e50=a37_0x47e7[_0x220ff8];return _0xcc0e50;};const _0x5a3521=a37_0xcc0e;'use strict';const Sequelize=require(_0x5a3521('0x3'));module[_0x5a3521('0x1')]={'name':{'type':Sequelize[_0x5a3521('0x4')],'allowNull':![]},'channel':{'type':Sequelize[_0x5a3521('0x4')]},'description':{'type':Sequelize['STRING']},'status':{'type':Sequelize[_0x5a3521('0x0')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x5a3521('0x2')],'defaultValue':0xa}}; \ No newline at end of file +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 diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js index bc3452c..e4c0830 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a38_0x3ea6=['fields','../../components/parsers/qs','show','sequelize','filter','offset','order','addConditions','then','include','attributes','nolimit','json','Automation','limit','intersection','merge','filters','../../config/logger','where','destroy','map','omit','keys','index','options','sendStatus','api','set','undefined','update','sort','pick','lodash','findAll','send','rows','query','findOne','model','addActions','Action','includeAll','fieldName','body','getActions','rawAttributes','like','catch','params','Condition','getConditions','length','type','count','end','status','name','ids','key'];(function(_0x5dd9d,_0x3ea6cd){const _0xeb30b8=function(_0x40b96d){while(--_0x40b96d){_0x5dd9d['push'](_0x5dd9d['shift']());}};_0xeb30b8(++_0x3ea6cd);}(a38_0x3ea6,0xe4));const a38_0xeb30=function(_0x5dd9d,_0x3ea6cd){_0x5dd9d=_0x5dd9d-0x0;let _0xeb30b8=a38_0x3ea6[_0x5dd9d];return _0xeb30b8;};const _0x25594b=a38_0xeb30;'use strict';const _=require(_0x25594b('0x2d')),qs=require(_0x25594b('0xd')),logger=require(_0x25594b('0x1e'))(_0x25594b('0x27')),db=require('../../mysqldb')['db'],{Op}=require(_0x25594b('0xf'));function respondWithResult(_0x40b96d,_0x121db9){return _0x121db9=_0x121db9||0xc8,function(_0x22ff8f){if(_0x22ff8f)return _0x40b96d['status'](_0x121db9)['json'](_0x22ff8f);};}function respondWithFilteredResult(_0x3aca96,_0x5d1003){return function(_0x10e91b){const _0x2f46db=a38_0xeb30;if(_0x10e91b){const _0x22f6df=_0x10e91b[_0x2f46db('0x6')],_0xc28c6a=_0x5d1003[_0x2f46db('0x11')];let _0x4afdd6=_0x5d1003[_0x2f46db('0x11')]+_0x5d1003[_0x2f46db('0x1a')],_0x4acb80;return _0x4afdd6>=_0x22f6df?(_0x4afdd6=_0x22f6df,_0x4acb80=0xc8):_0x4acb80=0xce,_0x3aca96[_0x2f46db('0x8')](_0x4acb80),_0x3aca96[_0x2f46db('0x28')]('Content-Range',_0xc28c6a+'-'+_0x4afdd6+'/'+_0x22f6df)[_0x2f46db('0x18')](_0x10e91b);}return null;};}function saveUpdates(_0x49e3b4){return function(_0x16e238){const _0x57104c=a38_0xeb30;if(_0x16e238)return _0x16e238[_0x57104c('0x2a')](_0x49e3b4)[_0x57104c('0x14')](function(_0x21db13){return _0x21db13;});return null;};}function removeEntity(_0x24eb5a){return function(_0x42f2c7){const _0x2b93ed=a38_0xeb30;if(_0x42f2c7)return _0x42f2c7[_0x2b93ed('0x20')]()[_0x2b93ed('0x14')](function(){const _0x1d1110=_0x2b93ed;_0x24eb5a[_0x1d1110('0x8')](0xcc)[_0x1d1110('0x7')]();});};}function handleEntityNotFound(_0x56b209){return function(_0x163d2c){const _0x73d4a2=a38_0xeb30;return!_0x163d2c&&_0x56b209[_0x73d4a2('0x26')](0x194),_0x163d2c;};}function handleError(_0x5b8f37,_0x543fdd){return _0x543fdd=_0x543fdd||0x1f4,function(_0x50ff48){const _0x1127ef=a38_0xeb30;logger['error'](_0x50ff48['stack']),_0x50ff48[_0x1127ef('0x9')]&&delete _0x50ff48[_0x1127ef('0x9')],_0x5b8f37['status'](_0x543fdd)[_0x1127ef('0x2f')](_0x50ff48);};}exports[_0x25594b('0x24')]=function(_0x36ce05,_0x4219cf){const _0x290ed1=_0x25594b;let _0x588a15={};const _0x1c54a1={},_0x49ffda={'count':0x0,'rows':[]},_0x1dfecd=_[_0x290ed1('0x21')](db[_0x290ed1('0x19')][_0x290ed1('0x3a')],function(_0x56c18c){const _0x1d498d=_0x290ed1;return{'name':_0x56c18c[_0x1d498d('0x37')],'type':_0x56c18c[_0x1d498d('0x5')][_0x1d498d('0xb')]};});_0x1c54a1[_0x290ed1('0x33')]=_['map'](_0x1dfecd,'name'),_0x1c54a1[_0x290ed1('0x31')]=_['keys'](_0x36ce05[_0x290ed1('0x31')]),_0x1c54a1['filters']=_[_0x290ed1('0x1b')](_0x1c54a1['model'],_0x1c54a1[_0x290ed1('0x31')]),_0x588a15[_0x290ed1('0x16')]=_[_0x290ed1('0x1b')](_0x1c54a1[_0x290ed1('0x33')],qs[_0x290ed1('0xc')](_0x36ce05[_0x290ed1('0x31')]['fields'])),_0x588a15[_0x290ed1('0x16')]=_0x588a15['attributes']['length']?_0x588a15[_0x290ed1('0x16')]:_0x1c54a1[_0x290ed1('0x33')];typeof _0x36ce05[_0x290ed1('0x31')][_0x290ed1('0x17')]==='undefined'&&(_0x588a15[_0x290ed1('0x1a')]=qs[_0x290ed1('0x1a')](_0x36ce05[_0x290ed1('0x31')][_0x290ed1('0x1a')]),_0x588a15[_0x290ed1('0x11')]=qs[_0x290ed1('0x11')](_0x36ce05[_0x290ed1('0x31')][_0x290ed1('0x11')]));_0x588a15[_0x290ed1('0x12')]=qs[_0x290ed1('0x2b')](_0x36ce05[_0x290ed1('0x31')][_0x290ed1('0x2b')]),_0x588a15[_0x290ed1('0x1f')]=qs[_0x290ed1('0x1d')](_[_0x290ed1('0x2c')](_0x36ce05[_0x290ed1('0x31')],_0x1c54a1[_0x290ed1('0x1d')]),_0x1dfecd);_0x36ce05[_0x290ed1('0x31')][_0x290ed1('0x10')]&&(_0x588a15[_0x290ed1('0x1f')]=_['merge'](_0x588a15[_0x290ed1('0x1f')],{[Op['or']]:_[_0x290ed1('0x21')](_0x1dfecd,function(_0x2200e6){const _0x1fa00b=_0x290ed1;if(_0x2200e6[_0x1fa00b('0x5')]!=='VIRTUAL'){const _0x5b9ac1={};return _0x5b9ac1[_0x2200e6[_0x1fa00b('0x9')]]={[Op[_0x1fa00b('0x3b')]]:'%'+_0x36ce05[_0x1fa00b('0x31')][_0x1fa00b('0x10')]+'%'},_0x5b9ac1;}})}));_0x588a15=_[_0x290ed1('0x1c')]({},_0x588a15,_0x36ce05[_0x290ed1('0x25')]);const _0x3699e4={'where':_0x588a15[_0x290ed1('0x1f')]};return db[_0x290ed1('0x19')]['count'](_0x3699e4)[_0x290ed1('0x14')](function(_0x2f166e){const _0xed9c9f=_0x290ed1;return _0x49ffda[_0xed9c9f('0x6')]=_0x2f166e,_0x36ce05[_0xed9c9f('0x31')][_0xed9c9f('0x36')]&&(_0x588a15[_0xed9c9f('0x15')]=[{'all':!![]}]),db[_0xed9c9f('0x19')][_0xed9c9f('0x2e')](_0x588a15);})[_0x290ed1('0x14')](function(_0x48ad7c){const _0xed1548=_0x290ed1;return _0x49ffda[_0xed1548('0x30')]=_0x48ad7c,_0x49ffda;})[_0x290ed1('0x14')](respondWithFilteredResult(_0x4219cf,_0x588a15))[_0x290ed1('0x0')](handleError(_0x4219cf,null));},exports[_0x25594b('0xe')]=function(_0x17754a,_0x563de0){const _0x2af003=_0x25594b;let _0x4ca490={'raw':![],'where':{'id':_0x17754a[_0x2af003('0x1')]['id']}};const _0x455505={};return _0x455505[_0x2af003('0x33')]=_[_0x2af003('0x23')](db[_0x2af003('0x19')][_0x2af003('0x3a')]),_0x455505[_0x2af003('0x31')]=_[_0x2af003('0x23')](_0x17754a[_0x2af003('0x31')]),_0x455505[_0x2af003('0x1d')]=_[_0x2af003('0x1b')](_0x455505[_0x2af003('0x33')],_0x455505[_0x2af003('0x31')]),_0x4ca490[_0x2af003('0x16')]=_[_0x2af003('0x1b')](_0x455505[_0x2af003('0x33')],qs[_0x2af003('0xc')](_0x17754a[_0x2af003('0x31')][_0x2af003('0xc')])),_0x4ca490['attributes']=_0x4ca490[_0x2af003('0x16')][_0x2af003('0x4')]?_0x4ca490[_0x2af003('0x16')]:_0x455505[_0x2af003('0x33')],_0x17754a[_0x2af003('0x31')][_0x2af003('0x36')]&&(_0x4ca490[_0x2af003('0x15')]=[{'all':!![]}]),_0x4ca490=_[_0x2af003('0x1c')]({},_0x4ca490,_0x17754a[_0x2af003('0x25')]),db[_0x2af003('0x19')]['findOne'](_0x4ca490)[_0x2af003('0x14')](handleEntityNotFound(_0x563de0,null))[_0x2af003('0x14')](respondWithResult(_0x563de0,null))[_0x2af003('0x0')](handleError(_0x563de0,null));},exports['create']=function(_0x12eaad,_0x2fae92){const _0x3b59be=_0x25594b;return db[_0x3b59be('0x19')]['create'](_0x12eaad[_0x3b59be('0x38')],{})[_0x3b59be('0x14')](respondWithResult(_0x2fae92,0xc9))[_0x3b59be('0x0')](handleError(_0x2fae92,null));},exports[_0x25594b('0x2a')]=function(_0x4e29e9,_0x17989e){const _0x7629c1=_0x25594b;return _0x4e29e9['body']['id']&&delete _0x4e29e9['body']['id'],db[_0x7629c1('0x19')]['findOne']({'where':{'id':_0x4e29e9['params']['id']}})[_0x7629c1('0x14')](handleEntityNotFound(_0x17989e,null))[_0x7629c1('0x14')](saveUpdates(_0x4e29e9[_0x7629c1('0x38')],null))['then'](respondWithResult(_0x17989e,null))[_0x7629c1('0x0')](handleError(_0x17989e,null));},exports['destroy']=function(_0x5a4b52,_0x5206f9){const _0x303766=_0x25594b;return db[_0x303766('0x19')][_0x303766('0x32')]({'where':{'id':_0x5a4b52[_0x303766('0x1')]['id']}})['then'](handleEntityNotFound(_0x5206f9,null))[_0x303766('0x14')](removeEntity(_0x5206f9,null))[_0x303766('0x0')](handleError(_0x5206f9,null));},exports[_0x25594b('0x13')]=function(_0x169859,_0x1ccb3e){const _0x36ee73=_0x25594b;return db[_0x36ee73('0x2')]['findOne']({'where':{'id':_0x169859['params']['id']}})[_0x36ee73('0x14')](function(_0x2621cc){const _0x575b25=_0x36ee73;if(_0x2621cc)return _0x2621cc['addConditions'](_0x169859[_0x575b25('0x38')][_0x575b25('0xa')],{'through':_[_0x575b25('0x22')](_0x169859[_0x575b25('0x38')],[_0x575b25('0xa'),'id'])});})[_0x36ee73('0x14')](respondWithResult(_0x1ccb3e,null))[_0x36ee73('0x0')](handleError(_0x1ccb3e,null));},exports[_0x25594b('0x3')]=function(_0x1b759c,_0x994ad5){const _0x1d26c4=_0x25594b;let _0x55823b={};const _0x5ba9ab={};let _0x5894ab,_0x33416a;return db[_0x1d26c4('0x19')][_0x1d26c4('0x32')]({'where':{'id':_0x1b759c[_0x1d26c4('0x1')]['id']}})['then'](handleEntityNotFound(_0x994ad5,null))[_0x1d26c4('0x14')](function(_0x3b0844){const _0x4e5605=_0x1d26c4;if(_0x3b0844)return _0x5894ab=_0x3b0844,_0x5ba9ab[_0x4e5605('0x33')]=_[_0x4e5605('0x23')](db[_0x4e5605('0x2')][_0x4e5605('0x3a')]),_0x5ba9ab[_0x4e5605('0x31')]=_[_0x4e5605('0x23')](_0x1b759c[_0x4e5605('0x31')]),_0x5ba9ab[_0x4e5605('0x1d')]=_[_0x4e5605('0x1b')](_0x5ba9ab['model'],_0x5ba9ab['query']),_0x55823b[_0x4e5605('0x16')]=_[_0x4e5605('0x1b')](_0x5ba9ab['model'],qs[_0x4e5605('0xc')](_0x1b759c[_0x4e5605('0x31')][_0x4e5605('0xc')])),_0x55823b[_0x4e5605('0x16')]=_0x55823b[_0x4e5605('0x16')][_0x4e5605('0x4')]?_0x55823b['attributes']:_0x5ba9ab[_0x4e5605('0x33')],_0x55823b['order']=qs[_0x4e5605('0x2b')](_0x1b759c['query'][_0x4e5605('0x2b')]),_0x55823b[_0x4e5605('0x1f')]=qs[_0x4e5605('0x1d')](_[_0x4e5605('0x2c')](_0x1b759c[_0x4e5605('0x31')],_0x5ba9ab[_0x4e5605('0x1d')])),_0x1b759c[_0x4e5605('0x31')][_0x4e5605('0x10')]&&(_0x55823b[_0x4e5605('0x1f')]=_[_0x4e5605('0x1c')](_0x55823b[_0x4e5605('0x1f')],{[Op['or']]:_[_0x4e5605('0x21')](_0x55823b[_0x4e5605('0x16')],function(_0x11a242){const _0x1e383d=_0x4e5605,_0x2aa39d={};return _0x2aa39d[_0x11a242]={[Op['like']]:'%'+_0x1b759c[_0x1e383d('0x31')][_0x1e383d('0x10')]+'%'},_0x2aa39d;})})),_0x55823b=_[_0x4e5605('0x1c')]({},_0x55823b,_0x1b759c[_0x4e5605('0x25')]),_0x5894ab[_0x4e5605('0x3')](_0x55823b);})[_0x1d26c4('0x14')](function(_0x6c1a3e){const _0x443145=_0x1d26c4;if(_0x6c1a3e)return _0x33416a=_0x6c1a3e[_0x443145('0x4')],typeof _0x1b759c['query'][_0x443145('0x17')]===_0x443145('0x29')&&(_0x55823b[_0x443145('0x1a')]=qs[_0x443145('0x1a')](_0x1b759c[_0x443145('0x31')][_0x443145('0x1a')]),_0x55823b[_0x443145('0x11')]=qs[_0x443145('0x11')](_0x1b759c[_0x443145('0x31')][_0x443145('0x11')])),_0x5894ab[_0x443145('0x3')](_0x55823b);})['then'](function(_0x2ab87e){if(_0x2ab87e)return _0x2ab87e?{'count':_0x33416a,'rows':_0x2ab87e}:null;})[_0x1d26c4('0x14')](respondWithResult(_0x994ad5,null))[_0x1d26c4('0x0')](handleError(_0x994ad5,null));},exports[_0x25594b('0x34')]=function(_0x4cb2d6,_0x46f5c9){const _0x53aa09=_0x25594b;return db[_0x53aa09('0x35')][_0x53aa09('0x32')]({'where':{'id':_0x4cb2d6[_0x53aa09('0x1')]['id']}})[_0x53aa09('0x14')](function(_0x5a5843){const _0xa43c39=_0x53aa09;if(_0x5a5843)return _0x5a5843[_0xa43c39('0x34')](_0x4cb2d6[_0xa43c39('0x38')][_0xa43c39('0xa')],{'through':_['omit'](_0x4cb2d6[_0xa43c39('0x38')],[_0xa43c39('0xa'),'id'])});})[_0x53aa09('0x14')](respondWithResult(_0x46f5c9,null))[_0x53aa09('0x0')](handleError(_0x46f5c9,null));},exports[_0x25594b('0x39')]=function(_0x111b36,_0x3f2b66){const _0x28dedc=_0x25594b;let _0x31f1ef={};const _0xfef7ad={};let _0x2a05a0,_0x23e2b8;return db[_0x28dedc('0x19')][_0x28dedc('0x32')]({'where':{'id':_0x111b36[_0x28dedc('0x1')]['id']}})[_0x28dedc('0x14')](handleEntityNotFound(_0x3f2b66,null))[_0x28dedc('0x14')](function(_0x53e4bd){const _0x5367dc=_0x28dedc;if(_0x53e4bd)return _0x2a05a0=_0x53e4bd,_0xfef7ad[_0x5367dc('0x33')]=_[_0x5367dc('0x23')](db[_0x5367dc('0x35')][_0x5367dc('0x3a')]),_0xfef7ad[_0x5367dc('0x31')]=_[_0x5367dc('0x23')](_0x111b36[_0x5367dc('0x31')]),_0xfef7ad['filters']=_[_0x5367dc('0x1b')](_0xfef7ad[_0x5367dc('0x33')],_0xfef7ad[_0x5367dc('0x31')]),_0x31f1ef['attributes']=_[_0x5367dc('0x1b')](_0xfef7ad[_0x5367dc('0x33')],qs['fields'](_0x111b36[_0x5367dc('0x31')][_0x5367dc('0xc')])),_0x31f1ef[_0x5367dc('0x16')]=_0x31f1ef[_0x5367dc('0x16')]['length']?_0x31f1ef[_0x5367dc('0x16')]:_0xfef7ad[_0x5367dc('0x33')],_0x31f1ef[_0x5367dc('0x12')]=qs[_0x5367dc('0x2b')](_0x111b36[_0x5367dc('0x31')]['sort']),_0x31f1ef['where']=qs[_0x5367dc('0x1d')](_[_0x5367dc('0x2c')](_0x111b36[_0x5367dc('0x31')],_0xfef7ad[_0x5367dc('0x1d')])),_0x111b36[_0x5367dc('0x31')]['filter']&&(_0x31f1ef['where']=_['merge'](_0x31f1ef['where'],{[Op['or']]:_[_0x5367dc('0x21')](_0x31f1ef[_0x5367dc('0x16')],function(_0x213844){const _0x12cc5b=_0x5367dc,_0x1dd54d={};return _0x1dd54d[_0x213844]={[Op[_0x12cc5b('0x3b')]]:'%'+_0x111b36['query'][_0x12cc5b('0x10')]+'%'},_0x1dd54d;})})),_0x31f1ef=_[_0x5367dc('0x1c')]({},_0x31f1ef,_0x111b36[_0x5367dc('0x25')]),_0x2a05a0[_0x5367dc('0x39')](_0x31f1ef);})[_0x28dedc('0x14')](function(_0x5f0ab8){const _0x49841b=_0x28dedc;if(_0x5f0ab8)return _0x23e2b8=_0x5f0ab8['length'],typeof _0x111b36[_0x49841b('0x31')][_0x49841b('0x17')]===_0x49841b('0x29')&&(_0x31f1ef[_0x49841b('0x1a')]=qs[_0x49841b('0x1a')](_0x111b36['query'][_0x49841b('0x1a')]),_0x31f1ef['offset']=qs['offset'](_0x111b36[_0x49841b('0x31')][_0x49841b('0x11')])),_0x2a05a0['getActions'](_0x31f1ef);})[_0x28dedc('0x14')](function(_0xd50beb){if(_0xd50beb)return _0xd50beb?{'count':_0x23e2b8,'rows':_0xd50beb}:null;})[_0x28dedc('0x14')](respondWithResult(_0x3f2b66,null))['catch'](handleError(_0x3f2b66,null));}; \ No newline at end of file +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 diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 0c56caa..3bf9816 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a39_0x1fcb=['Automation','define','tools_automations','exports','./automation.attributes'];(function(_0x3e115d,_0x1fcbfe){const _0x1641e9=function(_0x2e0849){while(--_0x2e0849){_0x3e115d['push'](_0x3e115d['shift']());}};_0x1641e9(++_0x1fcbfe);}(a39_0x1fcb,0x148));const a39_0x1641=function(_0x3e115d,_0x1fcbfe){_0x3e115d=_0x3e115d-0x0;let _0x1641e9=a39_0x1fcb[_0x3e115d];return _0x1641e9;};const _0x554726=a39_0x1641;'use strict';const attributes=require(_0x554726('0x1'));module[_0x554726('0x0')]=function(_0x2e0849){const _0xaeea1e=_0x554726,_0x137c75=_0x2e0849[_0xaeea1e('0x3')](_0xaeea1e('0x2'),attributes,{'tableName':_0xaeea1e('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x137c75;}; \ No newline at end of file +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 diff --git a/server/api/automation/index.js b/server/api/automation/index.js index 59edabe..1231223 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a40_0x3758=['destroy','isAuthenticated','/:id/actions','put','/:id/conditions','show','get','getConditions','/:id','index','Router','../../components/auth/service','post','./automation.controller','getActions','addActions','exports','express','create','addConditions'];(function(_0x22381b,_0x3758e0){const _0x51e9ae=function(_0x27d632){while(--_0x27d632){_0x22381b['push'](_0x22381b['shift']());}};_0x51e9ae(++_0x3758e0);}(a40_0x3758,0x17c));const a40_0x51e9=function(_0x22381b,_0x3758e0){_0x22381b=_0x22381b-0x0;let _0x51e9ae=a40_0x3758[_0x22381b];return _0x51e9ae;};const _0x52e6fb=a40_0x51e9;'use strict';const express=require(_0x52e6fb('0x11')),router=express[_0x52e6fb('0xa')](),auth=require(_0x52e6fb('0xb')),controller=require(_0x52e6fb('0xd'));router[_0x52e6fb('0x6')]('/',auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0x9')]),router[_0x52e6fb('0x6')](_0x52e6fb('0x8'),auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0x5')]),router[_0x52e6fb('0x6')](_0x52e6fb('0x4'),auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0x7')]),router['get']('/:id/actions',auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0xe')]),router[_0x52e6fb('0xc')]('/',auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0x12')]),router['post'](_0x52e6fb('0x4'),auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0x13')]),router[_0x52e6fb('0xc')](_0x52e6fb('0x2'),auth[_0x52e6fb('0x1')](),controller[_0x52e6fb('0xf')]),router[_0x52e6fb('0x3')]('/:id',auth['isAuthenticated'](),controller['update']),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x52e6fb('0x0')]),module[_0x52e6fb('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index 3990fb0..3149ed6 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a41_0x45a2=['STRING','ivr','#AMD\x20Greeting','onlyIfOpen','always','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','BOOLEAN','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Min\x20Word\x20Length','name','#AgentReject\x20Retry\x20(min:1,\x20max:999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','DESC','UNSIGNED','#Busy\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','07:00-22:00,*,*,*','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','Active/Disactive\x20Campaign','sequelize','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','INTEGER','never','Active/Disactive\x20AMD','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','ENUM','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','exports','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Maximum\x20Word\x20Length'];(function(_0x3c4d0c,_0x45a28c){const _0x4323c4=function(_0x26f29f){while(--_0x26f29f){_0x3c4d0c['push'](_0x3c4d0c['shift']());}};_0x4323c4(++_0x45a28c);}(a41_0x45a2,0x75));const a41_0x4323=function(_0x3c4d0c,_0x45a28c){_0x3c4d0c=_0x3c4d0c-0x0;let _0x4323c4=a41_0x45a2[_0x3c4d0c];return _0x4323c4;};const _0x30d05f=a41_0x4323;'use strict';const Sequelize=require(_0x30d05f('0x7'));module[_0x30d05f('0x10')]={'name':{'type':Sequelize['STRING'],'unique':_0x30d05f('0x1e'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x30d05f('0xe')](_0x30d05f('0x14')),'allowNull':![],'defaultValue':'ivr'},'description':{'type':Sequelize[_0x30d05f('0x13')]},'active':{'type':Sequelize[_0x30d05f('0x1a')],'defaultValue':0x0,'comment':_0x30d05f('0x6')},'limitCalls':{'type':Sequelize[_0x30d05f('0xa')](0x4)[_0x30d05f('0x1')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':'Max\x20200\x20calls.'},'dialOriginateCallerIdName':{'type':Sequelize['STRING']},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x30d05f('0x13')]},'dialOriginateTimeout':{'type':Sequelize[_0x30d05f('0xa')](0x3)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0x5')},'dialCongestionMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0x21')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x3')},'dialBusyMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0x2')},'dialBusyRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'comment':_0x30d05f('0x1c')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x1b')},'dialGlobalMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0x30d05f('0x13')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0x30d05f('0x4')},'dialCheckDuplicateType':{'type':Sequelize[_0x30d05f('0xe')](_0x30d05f('0x17'),_0x30d05f('0xb'),_0x30d05f('0x16')),'defaultValue':'always'},'dialAMDActive':{'type':Sequelize[_0x30d05f('0x1a')],'defaultValue':0x0,'comment':_0x30d05f('0xc')},'dialAMDInitialSilence':{'type':Sequelize[_0x30d05f('0xa')](0x9)[_0x30d05f('0x1')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x30d05f('0xa')](0x9)[_0x30d05f('0x1')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x30d05f('0x15')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x30d05f('0xa')](0x9)[_0x30d05f('0x1')],'defaultValue':0x320,'validate':{'min':0x0},'comment':'#AMD\x20After\x20Greeting\x20Silence'},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0x30d05f('0x1')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0x30d05f('0xa')](0x9)[_0x30d05f('0x1')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x30d05f('0x1d')},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)[_0x30d05f('0x1')],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize['INTEGER'](0x9)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x30d05f('0xa')](0x5)[_0x30d05f('0x1')],'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':_0x30d05f('0x12')},'dialOrderByScheduledAt':{'type':Sequelize[_0x30d05f('0xe')]('DESC','ASC'),'defaultValue':_0x30d05f('0x0')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize['INTEGER'](0x3)[_0x30d05f('0x1')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x30d05f('0x18')},'dialCutDigit':{'type':Sequelize[_0x30d05f('0xa')](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0xf')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0xd')},'dialDropMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x9')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0x20')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)[_0x30d05f('0x1')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x19')},'dialMachineMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x8')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x30d05f('0xa')](0x3)[_0x30d05f('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x30d05f('0x1f')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x30d05f('0xa')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x30d05f('0x11')}}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js index 4f6aee2..80e1a4e 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a42_0x2e0e=['undefined','intersection','field','keys','userProfileId','count','destroy','limit','index','VIRTUAL','getHopperHistories','addBlackLists','push','getHoppers','filter','Campaign','createdAt','dialCheckDuplicateType','sort','CampaignId','clone','getLists','status','COALESCE(phone,\x27\x27)','map','../../config/logger','phone\x20IS\x20NOT\x20NULL','Unable\x20to\x20retrieve\x20the\x20current\x20user','COALESCE(calleridnum,\x27\x27)','findOne','stack','IvrCampaigns','offset','squel','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','like','includeAll','where','ContactId','include','CmHopperHistory','../../mysqldb','end','getHopperBlacks','insert','rows','ListId','type','user','cm_contacts','updatedAt','set','findAll','CampaignId\x20=\x20?','attributes','error','CmHopperFinal','CmHopperBlack','options','then','cm_hopper','key','body','model','onlyIfOpen','omit','nolimit','get','query','always','ListId\x20=\x20?','CmList','filters','ids','Content-Range','json','cm_hopper_black','sendStatus','update','rawAttributes','sequelize','getHopperFinals','UserProfileResource','toString','phone','params','fields','CmListId','phone\x20NOT\x20IN\x20(?)','removeLists','fieldName','create','catch','CmHopper','merge','getBlackLists','length','all','NOW()','fromQuery','show','removeBlackLists','select','name','deletedAt\x20IS\x20NULL','into','pick','UserProfileSection','autoAssociation','scheduledAt','order','from'];(function(_0x39d131,_0x2e0e22){const _0x1e25cc=function(_0x127279){while(--_0x127279){_0x39d131['push'](_0x39d131['shift']());}};_0x1e25cc(++_0x2e0e22);}(a42_0x2e0e,0x96));const a42_0x1e25=function(_0x39d131,_0x2e0e22){_0x39d131=_0x39d131-0x0;let _0x1e25cc=a42_0x2e0e[_0x39d131];return _0x1e25cc;};const _0xf775c=a42_0x1e25;'use strict';const _=require('lodash'),squel=require(_0xf775c('0x6b')),qs=require('../../components/parsers/qs'),logger=require(_0xf775c('0x63'))('api'),db=require(_0xf775c('0x3'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x127279,_0x38a54c){return _0x38a54c=_0x38a54c||0xcc,function(_0x5d74c4){const _0x1fa76a=a42_0x1e25;if(_0x5d74c4)return _0x127279[_0x1fa76a('0x27')](_0x38a54c);return _0x127279['status'](_0x38a54c)[_0x1fa76a('0x4')]();};}function respondWithResult(_0xeffd60,_0x4ef71a){return _0x4ef71a=_0x4ef71a||0xc8,function(_0x5b93d9){const _0x328964=a42_0x1e25;if(_0x5b93d9)return _0xeffd60['status'](_0x4ef71a)[_0x328964('0x25')](_0x5b93d9);};}function respondWithFilteredResult(_0x107562,_0xeff09f){return function(_0x3bafbd){const _0x2d4df8=a42_0x1e25;if(_0x3bafbd){const _0x353b91=_0x3bafbd[_0x2d4df8('0x4f')],_0x3cd652=_0xeff09f[_0x2d4df8('0x6a')];let _0x329266=_0xeff09f['offset']+_0xeff09f[_0x2d4df8('0x51')],_0x2e832c;return _0x329266>=_0x353b91?(_0x329266=_0x353b91,_0x2e832c=0xc8):_0x2e832c=0xce,_0x107562['status'](_0x2e832c),_0x107562[_0x2d4df8('0xd')](_0x2d4df8('0x24'),_0x3cd652+'-'+_0x329266+'/'+_0x353b91)[_0x2d4df8('0x25')](_0x3bafbd);}return null;};}function saveUpdates(_0x708f28){return function(_0x528016){const _0x242403=a42_0x1e25;if(_0x528016)return _0x528016[_0x242403('0x28')](_0x708f28)['then'](function(_0x1ecc5f){return _0x1ecc5f;});return null;};}function removeEntity(_0x133763){return function(_0x4cbbc1){const _0x4a834b=a42_0x1e25;if(_0x4cbbc1)return _0x4cbbc1[_0x4a834b('0x50')]()['then'](function(){const _0x3a1a5b=_0x4a834b,_0x2e9e92=_0x4cbbc1['get']({'plain':!![]}),_0x2d00b6=_0x3a1a5b('0x69');return db[_0x3a1a5b('0x2c')]['destroy']({'where':{'type':_0x2d00b6,'resourceId':_0x2e9e92['id']}})['then'](function(){return _0x4cbbc1;});})[_0x4a834b('0x15')](function(){const _0x30bccf=_0x4a834b;_0x133763['status'](0xcc)[_0x30bccf('0x4')]();});};}function handleEntityNotFound(_0x3b7956){return function(_0x2d540d){const _0x9e67af=a42_0x1e25;return!_0x2d540d&&_0x3b7956[_0x9e67af('0x27')](0x194),_0x2d540d;};}function handleError(_0x220e35,_0x49d9b3){return _0x49d9b3=_0x49d9b3||0x1f4,function(_0x2dc6d7){const _0x5c73e4=a42_0x1e25;logger[_0x5c73e4('0x11')](_0x2dc6d7[_0x5c73e4('0x68')]),_0x2dc6d7[_0x5c73e4('0x41')]&&delete _0x2dc6d7[_0x5c73e4('0x41')],_0x220e35[_0x5c73e4('0x60')](_0x49d9b3)['send'](_0x2dc6d7);};}exports[_0xf775c('0x52')]=function(_0x4a5494,_0x29611f){const _0x2c7437=_0xf775c;let _0x331e28={};const _0x41688d={},_0x4f50fb={'count':0x0,'rows':[]},_0x5a184a=_[_0x2c7437('0x62')](db[_0x2c7437('0x59')][_0x2c7437('0x29')],function(_0x12d083){const _0x24bb24=_0x2c7437;return{'name':_0x12d083[_0x24bb24('0x34')],'type':_0x12d083[_0x24bb24('0x9')][_0x24bb24('0x17')]};});_0x41688d[_0x2c7437('0x19')]=_[_0x2c7437('0x62')](_0x5a184a,_0x2c7437('0x41')),_0x41688d['query']=_['keys'](_0x4a5494[_0x2c7437('0x1e')]),_0x41688d['filters']=_['intersection'](_0x41688d[_0x2c7437('0x19')],_0x41688d[_0x2c7437('0x1e')]),_0x331e28[_0x2c7437('0x10')]=_['intersection'](_0x41688d['model'],qs[_0x2c7437('0x30')](_0x4a5494['query'][_0x2c7437('0x30')])),_0x331e28[_0x2c7437('0x10')]=_0x331e28[_0x2c7437('0x10')][_0x2c7437('0x3a')]?_0x331e28[_0x2c7437('0x10')]:_0x41688d['model'];typeof _0x4a5494['query'][_0x2c7437('0x1c')]===_0x2c7437('0x4a')&&(_0x331e28[_0x2c7437('0x51')]=qs[_0x2c7437('0x51')](_0x4a5494[_0x2c7437('0x1e')][_0x2c7437('0x51')]),_0x331e28['offset']=qs[_0x2c7437('0x6a')](_0x4a5494[_0x2c7437('0x1e')][_0x2c7437('0x6a')]));_0x331e28[_0x2c7437('0x48')]=qs[_0x2c7437('0x5c')](_0x4a5494[_0x2c7437('0x1e')][_0x2c7437('0x5c')]),_0x331e28[_0x2c7437('0x6f')]=qs['filters'](_['pick'](_0x4a5494[_0x2c7437('0x1e')],_0x41688d[_0x2c7437('0x22')]),_0x5a184a);_0x4a5494[_0x2c7437('0x1e')]['filter']&&(_0x331e28[_0x2c7437('0x6f')]=_['merge'](_0x331e28[_0x2c7437('0x6f')],{[Op['or']]:_[_0x2c7437('0x62')](_0x5a184a,function(_0x4dc414){const _0x2ba198=_0x2c7437;if(_0x4dc414['type']!==_0x2ba198('0x53')){const _0x1c084b={};return _0x1c084b[_0x4dc414['name']]={[Op['like']]:'%'+_0x4a5494['query'][_0x2ba198('0x58')]+'%'},_0x1c084b;}})}));_0x331e28=_[_0x2c7437('0x38')]({},_0x331e28,_0x4a5494[_0x2c7437('0x14')]);const _0x17865d={'where':_0x331e28['where']};return db[_0x2c7437('0x59')][_0x2c7437('0x4f')](_0x17865d)['then'](function(_0x134f80){const _0x35f45b=_0x2c7437;return _0x4f50fb[_0x35f45b('0x4f')]=_0x134f80,_0x4a5494[_0x35f45b('0x1e')]['includeAll']&&(_0x331e28[_0x35f45b('0x1')]=[{'all':!![]}]),db['Campaign'][_0x35f45b('0xe')](_0x331e28);})['then'](function(_0xc5811f){const _0x322493=_0x2c7437;return _0x4f50fb[_0x322493('0x7')]=_0xc5811f,_0x4f50fb;})[_0x2c7437('0x15')](respondWithFilteredResult(_0x29611f,_0x331e28))[_0x2c7437('0x36')](handleError(_0x29611f,null));},exports[_0xf775c('0x3e')]=function(_0x437979,_0xff04d4){const _0x3b97cc=_0xf775c;let _0x510123={'raw':![],'where':{'id':_0x437979[_0x3b97cc('0x2f')]['id']}};const _0x6e92d9={};return _0x6e92d9[_0x3b97cc('0x19')]=_['keys'](db[_0x3b97cc('0x59')][_0x3b97cc('0x29')]),_0x6e92d9['query']=_[_0x3b97cc('0x4d')](_0x437979[_0x3b97cc('0x1e')]),_0x6e92d9[_0x3b97cc('0x22')]=_[_0x3b97cc('0x4b')](_0x6e92d9['model'],_0x6e92d9[_0x3b97cc('0x1e')]),_0x510123[_0x3b97cc('0x10')]=_[_0x3b97cc('0x4b')](_0x6e92d9[_0x3b97cc('0x19')],qs[_0x3b97cc('0x30')](_0x437979['query']['fields'])),_0x510123[_0x3b97cc('0x10')]=_0x510123['attributes'][_0x3b97cc('0x3a')]?_0x510123['attributes']:_0x6e92d9[_0x3b97cc('0x19')],_0x437979['query'][_0x3b97cc('0x6e')]&&(_0x510123[_0x3b97cc('0x1')]=[{'all':!![]}]),_0x510123=_['merge']({},_0x510123,_0x437979['options']),db[_0x3b97cc('0x59')]['findOne'](_0x510123)[_0x3b97cc('0x15')](handleEntityNotFound(_0xff04d4,null))[_0x3b97cc('0x15')](respondWithResult(_0xff04d4,null))[_0x3b97cc('0x36')](handleError(_0xff04d4,null));},exports[_0xf775c('0x35')]=function(_0x3d4eb2,_0x5070bd){const _0x5937d6=_0xf775c;return db[_0x5937d6('0x59')][_0x5937d6('0x35')](_0x3d4eb2[_0x5937d6('0x18')],{})[_0x5937d6('0x15')](function(_0x4cb8bb){const _0x3bb93c=_0x5937d6,_0x39a3fd=_0x3d4eb2[_0x3bb93c('0xa')][_0x3bb93c('0x1d')]({'plain':!![]});if(!_0x39a3fd)throw new Error(_0x3bb93c('0x65'));if(_0x39a3fd['role']===_0x3bb93c('0xa')){const _0xbc042e=_0x4cb8bb[_0x3bb93c('0x1d')]({'plain':!![]}),_0x1ca350='IvrCampaigns';return db['UserProfileSection']['findOne']({'where':{'name':_0x1ca350,'userProfileId':_0x39a3fd[_0x3bb93c('0x4e')]},'raw':!![]})[_0x3bb93c('0x15')](function(_0xfdd7d2){const _0x849861=_0x3bb93c;return _0xfdd7d2&&_0xfdd7d2[_0x849861('0x46')]===0x0?db[_0x849861('0x2c')][_0x849861('0x35')]({'name':_0xbc042e[_0x849861('0x41')],'resourceId':_0xbc042e['id'],'type':_0xfdd7d2[_0x849861('0x41')],'sectionId':_0xfdd7d2['id']},{})['then'](function(){return _0x4cb8bb;}):_0x4cb8bb;})[_0x3bb93c('0x36')](function(_0x34aa9f){const _0x51d688=_0x3bb93c;logger[_0x51d688('0x11')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x34aa9f);throw _0x34aa9f;});}return _0x4cb8bb;})['then'](respondWithResult(_0x5070bd,0xc9))[_0x5937d6('0x36')](handleError(_0x5070bd,null));},exports[_0xf775c('0x5e')]=function(_0x196810,_0x172e1c){const _0x5d55d6=_0xf775c;let _0x127994={'where':{'id':_0x196810[_0x5d55d6('0x2f')]['id']}};const _0x263cca={};return _0x263cca[_0x5d55d6('0x19')]=_[_0x5d55d6('0x4d')](db[_0x5d55d6('0x59')][_0x5d55d6('0x29')]),_0x127994['attributes']=_[_0x5d55d6('0x4b')](_0x263cca[_0x5d55d6('0x19')],qs[_0x5d55d6('0x30')](_0x196810[_0x5d55d6('0x1e')][_0x5d55d6('0x30')])),_0x127994[_0x5d55d6('0x10')]=_0x127994['attributes'][_0x5d55d6('0x3a')]?_0x127994[_0x5d55d6('0x10')]:_0x263cca[_0x5d55d6('0x19')],_0x196810[_0x5d55d6('0x1e')][_0x5d55d6('0x6e')]&&(_0x127994[_0x5d55d6('0x1')]=[{'all':!![]}]),_0x127994=_[_0x5d55d6('0x38')]({},_0x127994,_0x196810[_0x5d55d6('0x14')]),db['Campaign']['findOne'](_0x127994)['then'](handleEntityNotFound(_0x172e1c,null))[_0x5d55d6('0x15')](function(_0x4488cb){const _0x3a493d=_0x5d55d6;if(_0x4488cb){let _0x2ea38f=_0x4488cb[_0x3a493d('0x1d')]({'plain':!![]});return _0x2ea38f=qs[_0x3a493d('0x1b')](_0x2ea38f,['id',_0x3a493d('0x5a'),_0x3a493d('0xc')]),_0x196810[_0x3a493d('0x18')]=_[_0x3a493d('0x1b')](_0x196810[_0x3a493d('0x18')],['id',_0x3a493d('0x5a'),'updatedAt']),db['Campaign'][_0x3a493d('0x35')](_['merge'](_0x2ea38f,_0x196810['body']),{'include':_0x196810[_0x3a493d('0x1e')]['includeAll']?[{'all':!![]}]:undefined})[_0x3a493d('0x15')](function(_0x347d79){const _0x4bb632=_0x3a493d,_0x3f9bb2=_0x196810[_0x4bb632('0xa')][_0x4bb632('0x1d')]({'plain':!![]});if(!_0x3f9bb2)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3f9bb2['role']===_0x4bb632('0xa')){const _0x357465=_0x347d79[_0x4bb632('0x1d')]({'plain':!![]}),_0x2d038e=_0x4bb632('0x69');return db[_0x4bb632('0x45')][_0x4bb632('0x67')]({'where':{'name':_0x2d038e,'userProfileId':_0x3f9bb2[_0x4bb632('0x4e')]},'raw':!![]})[_0x4bb632('0x15')](function(_0x51ea9e){const _0x2ac03=_0x4bb632;return _0x51ea9e&&_0x51ea9e['autoAssociation']===0x0?db[_0x2ac03('0x2c')]['create']({'name':_0x357465[_0x2ac03('0x41')],'resourceId':_0x357465['id'],'type':_0x51ea9e[_0x2ac03('0x41')],'sectionId':_0x51ea9e['id']},{})[_0x2ac03('0x15')](function(){return _0x347d79;}):_0x347d79;})[_0x4bb632('0x36')](function(_0x448f43){const _0xa52782=_0x4bb632;logger[_0xa52782('0x11')](_0xa52782('0x6c'),_0x448f43);throw _0x448f43;});}return _0x347d79;});}})[_0x5d55d6('0x15')](respondWithResult(_0x172e1c,0xc9))['catch'](handleError(_0x172e1c,null));},exports[_0xf775c('0x28')]=function(_0x88fb4c,_0x467527){const _0x32b07d=_0xf775c;return _0x88fb4c[_0x32b07d('0x18')]['id']&&delete _0x88fb4c['body']['id'],db[_0x32b07d('0x59')][_0x32b07d('0x67')]({'where':{'id':_0x88fb4c[_0x32b07d('0x2f')]['id']}})[_0x32b07d('0x15')](handleEntityNotFound(_0x467527,null))[_0x32b07d('0x15')](saveUpdates(_0x88fb4c[_0x32b07d('0x18')],null))[_0x32b07d('0x15')](respondWithResult(_0x467527,null))['catch'](handleError(_0x467527,null));},exports[_0xf775c('0x50')]=function(_0x16d248,_0x519f60){const _0x51a0fc=_0xf775c;return db[_0x51a0fc('0x59')][_0x51a0fc('0x67')]({'where':{'id':_0x16d248[_0x51a0fc('0x2f')]['id']}})[_0x51a0fc('0x15')](handleEntityNotFound(_0x519f60,null))[_0x51a0fc('0x15')](removeEntity(_0x519f60,null))[_0x51a0fc('0x36')](handleError(_0x519f60,null));},exports[_0xf775c('0x57')]=function(_0x32f46a,_0x350780){const _0x159e02=_0xf775c;let _0x5a1a07={'raw':!![],'where':{}};const _0x27efdc={},_0x23cb75={'count':0x0,'rows':[]};return db[_0x159e02('0x59')]['findOne']({'where':{'id':_0x32f46a[_0x159e02('0x2f')]['id']}})[_0x159e02('0x15')](handleEntityNotFound(_0x350780,null))['then'](function(_0x1e5258){const _0x56680b=_0x159e02;if(_0x1e5258)return _0x27efdc[_0x56680b('0x19')]=_['keys'](db[_0x56680b('0x37')][_0x56680b('0x29')]),_0x27efdc['query']=_[_0x56680b('0x4d')](_0x32f46a[_0x56680b('0x1e')]),_0x27efdc[_0x56680b('0x22')]=_[_0x56680b('0x4b')](_0x27efdc[_0x56680b('0x19')],_0x27efdc['query']),_0x5a1a07[_0x56680b('0x10')]=_[_0x56680b('0x4b')](_0x27efdc[_0x56680b('0x19')],qs[_0x56680b('0x30')](_0x32f46a[_0x56680b('0x1e')][_0x56680b('0x30')])),_0x5a1a07[_0x56680b('0x10')]=_0x5a1a07[_0x56680b('0x10')][_0x56680b('0x3a')]?_0x5a1a07[_0x56680b('0x10')]:_0x27efdc['model'],typeof _0x32f46a[_0x56680b('0x1e')][_0x56680b('0x1c')]===_0x56680b('0x4a')&&(_0x5a1a07[_0x56680b('0x51')]=qs[_0x56680b('0x51')](_0x32f46a['query']['limit']),_0x5a1a07[_0x56680b('0x6a')]=qs['offset'](_0x32f46a[_0x56680b('0x1e')][_0x56680b('0x6a')])),_0x5a1a07[_0x56680b('0x48')]=qs[_0x56680b('0x5c')](_0x32f46a[_0x56680b('0x1e')][_0x56680b('0x5c')]),_0x5a1a07['where']=qs[_0x56680b('0x22')](_['pick'](_0x32f46a[_0x56680b('0x1e')],_0x27efdc[_0x56680b('0x22')])),_0x5a1a07[_0x56680b('0x6f')][_0x56680b('0x5d')]=_0x1e5258['id'],_0x32f46a[_0x56680b('0x1e')][_0x56680b('0x58')]&&(_0x5a1a07['where']=_[_0x56680b('0x38')](_0x5a1a07[_0x56680b('0x6f')],{[Op['or']]:_[_0x56680b('0x62')](_0x5a1a07[_0x56680b('0x10')],function(_0x331eef){const _0x242326=_0x56680b,_0x254b52={};return _0x254b52[_0x331eef]={[Op[_0x242326('0x6d')]]:'%'+_0x32f46a[_0x242326('0x1e')][_0x242326('0x58')]+'%'},_0x254b52;})})),_0x5a1a07=_['merge']({},_0x5a1a07,_0x32f46a[_0x56680b('0x14')]),db[_0x56680b('0x37')][_0x56680b('0x4f')]({'where':_0x5a1a07[_0x56680b('0x6f')]})[_0x56680b('0x15')](function(_0x1d3bba){const _0x4f8054=_0x56680b;return _0x23cb75[_0x4f8054('0x4f')]=_0x1d3bba,_0x32f46a[_0x4f8054('0x1e')][_0x4f8054('0x6e')]&&(_0x5a1a07[_0x4f8054('0x1')]=[{'all':!![]}]),db[_0x4f8054('0x37')]['findAll'](_0x5a1a07);})[_0x56680b('0x15')](function(_0x2df8ec){const _0x3a1d12=_0x56680b;return _0x23cb75[_0x3a1d12('0x7')]=_0x2df8ec,_0x23cb75;});})[_0x159e02('0x15')](respondWithFilteredResult(_0x350780,_0x5a1a07))[_0x159e02('0x36')](handleError(_0x350780,null));},exports[_0xf775c('0x54')]=function(_0x3e7e23,_0x55382b){const _0x5823a1=_0xf775c;let _0xeaadb7={'raw':!![],'where':{}};const _0x34c3c4={},_0xd1732b={'count':0x0,'rows':[]};return db[_0x5823a1('0x59')][_0x5823a1('0x67')]({'where':{'id':_0x3e7e23[_0x5823a1('0x2f')]['id']}})[_0x5823a1('0x15')](handleEntityNotFound(_0x55382b,null))[_0x5823a1('0x15')](function(_0xa2cf6a){const _0x5dcb1b=_0x5823a1;if(_0xa2cf6a)return _0x34c3c4[_0x5dcb1b('0x19')]=_['keys'](db['CmHopperHistory']['rawAttributes']),_0x34c3c4['query']=_['keys'](_0x3e7e23[_0x5dcb1b('0x1e')]),_0x34c3c4[_0x5dcb1b('0x22')]=_[_0x5dcb1b('0x4b')](_0x34c3c4[_0x5dcb1b('0x19')],_0x34c3c4[_0x5dcb1b('0x1e')]),_0xeaadb7[_0x5dcb1b('0x10')]=_['intersection'](_0x34c3c4['model'],qs[_0x5dcb1b('0x30')](_0x3e7e23[_0x5dcb1b('0x1e')][_0x5dcb1b('0x30')])),_0xeaadb7[_0x5dcb1b('0x10')]=_0xeaadb7[_0x5dcb1b('0x10')][_0x5dcb1b('0x3a')]?_0xeaadb7[_0x5dcb1b('0x10')]:_0x34c3c4[_0x5dcb1b('0x19')],typeof _0x3e7e23[_0x5dcb1b('0x1e')][_0x5dcb1b('0x1c')]===_0x5dcb1b('0x4a')&&(_0xeaadb7[_0x5dcb1b('0x51')]=qs[_0x5dcb1b('0x51')](_0x3e7e23[_0x5dcb1b('0x1e')][_0x5dcb1b('0x51')]),_0xeaadb7[_0x5dcb1b('0x6a')]=qs['offset'](_0x3e7e23[_0x5dcb1b('0x1e')][_0x5dcb1b('0x6a')])),_0xeaadb7['order']=qs[_0x5dcb1b('0x5c')](_0x3e7e23[_0x5dcb1b('0x1e')]['sort']),_0xeaadb7[_0x5dcb1b('0x6f')]=qs[_0x5dcb1b('0x22')](_[_0x5dcb1b('0x44')](_0x3e7e23['query'],_0x34c3c4[_0x5dcb1b('0x22')])),_0xeaadb7[_0x5dcb1b('0x6f')][_0x5dcb1b('0x5d')]=_0xa2cf6a['id'],_0x3e7e23[_0x5dcb1b('0x1e')][_0x5dcb1b('0x58')]&&(_0xeaadb7[_0x5dcb1b('0x6f')]=_[_0x5dcb1b('0x38')](_0xeaadb7[_0x5dcb1b('0x6f')],{[Op['or']]:_[_0x5dcb1b('0x62')](_0xeaadb7[_0x5dcb1b('0x10')],function(_0x3006a8){const _0xc3c9af=_0x5dcb1b,_0x3d86e3={};return _0x3d86e3[_0x3006a8]={[Op[_0xc3c9af('0x6d')]]:'%'+_0x3e7e23[_0xc3c9af('0x1e')]['filter']+'%'},_0x3d86e3;})})),_0xeaadb7=_[_0x5dcb1b('0x38')]({},_0xeaadb7,_0x3e7e23[_0x5dcb1b('0x14')]),db[_0x5dcb1b('0x2')]['count']({'where':_0xeaadb7['where']})[_0x5dcb1b('0x15')](function(_0x348d31){const _0x4fb8dc=_0x5dcb1b;return _0xd1732b['count']=_0x348d31,_0x3e7e23[_0x4fb8dc('0x1e')][_0x4fb8dc('0x6e')]&&(_0xeaadb7[_0x4fb8dc('0x1')]=[{'all':!![]}]),db[_0x4fb8dc('0x2')]['findAll'](_0xeaadb7);})['then'](function(_0xa0d69a){const _0x433dc8=_0x5dcb1b;return _0xd1732b[_0x433dc8('0x7')]=_0xa0d69a,_0xd1732b;});})['then'](respondWithFilteredResult(_0x55382b,_0xeaadb7))[_0x5823a1('0x36')](handleError(_0x55382b,null));},exports[_0xf775c('0x2b')]=function(_0x29e003,_0x49f4ca){const _0x59ba58=_0xf775c;let _0x103533={'raw':!![],'where':{}};const _0x365ec2={},_0xf3044b={'count':0x0,'rows':[]};return db[_0x59ba58('0x59')][_0x59ba58('0x67')]({'where':{'id':_0x29e003['params']['id']}})[_0x59ba58('0x15')](handleEntityNotFound(_0x49f4ca,null))[_0x59ba58('0x15')](function(_0x341abc){const _0x405241=_0x59ba58;if(_0x341abc)return _0x365ec2[_0x405241('0x19')]=_[_0x405241('0x4d')](db[_0x405241('0x12')]['rawAttributes']),_0x365ec2[_0x405241('0x1e')]=_[_0x405241('0x4d')](_0x29e003['query']),_0x365ec2['filters']=_['intersection'](_0x365ec2['model'],_0x365ec2[_0x405241('0x1e')]),_0x103533['attributes']=_[_0x405241('0x4b')](_0x365ec2[_0x405241('0x19')],qs[_0x405241('0x30')](_0x29e003[_0x405241('0x1e')]['fields'])),_0x103533[_0x405241('0x10')]=_0x103533[_0x405241('0x10')][_0x405241('0x3a')]?_0x103533['attributes']:_0x365ec2[_0x405241('0x19')],typeof _0x29e003[_0x405241('0x1e')]['nolimit']===_0x405241('0x4a')&&(_0x103533[_0x405241('0x51')]=qs['limit'](_0x29e003[_0x405241('0x1e')][_0x405241('0x51')]),_0x103533[_0x405241('0x6a')]=qs[_0x405241('0x6a')](_0x29e003[_0x405241('0x1e')]['offset'])),_0x103533[_0x405241('0x48')]=qs[_0x405241('0x5c')](_0x29e003['query'][_0x405241('0x5c')]),_0x103533['where']=qs[_0x405241('0x22')](_['pick'](_0x29e003[_0x405241('0x1e')],_0x365ec2['filters'])),_0x103533[_0x405241('0x6f')][_0x405241('0x5d')]=_0x341abc['id'],_0x29e003[_0x405241('0x1e')][_0x405241('0x58')]&&(_0x103533['where']=_[_0x405241('0x38')](_0x103533[_0x405241('0x6f')],{[Op['or']]:_[_0x405241('0x62')](_0x103533[_0x405241('0x10')],function(_0x208979){const _0x9bee37=_0x405241,_0x407e7f={};return _0x407e7f[_0x208979]={[Op[_0x9bee37('0x6d')]]:'%'+_0x29e003['query'][_0x9bee37('0x58')]+'%'},_0x407e7f;})})),_0x103533=_[_0x405241('0x38')]({},_0x103533,_0x29e003['options']),db[_0x405241('0x12')][_0x405241('0x4f')]({'where':_0x103533[_0x405241('0x6f')]})[_0x405241('0x15')](function(_0xf010bb){const _0x517907=_0x405241;return _0xf3044b['count']=_0xf010bb,_0x29e003[_0x517907('0x1e')][_0x517907('0x6e')]&&(_0x103533[_0x517907('0x1')]=[{'all':!![]}]),db['CmHopperFinal'][_0x517907('0xe')](_0x103533);})['then'](function(_0x5b0cc5){return _0xf3044b['rows']=_0x5b0cc5,_0xf3044b;});})['then'](respondWithFilteredResult(_0x49f4ca,_0x103533))['catch'](handleError(_0x49f4ca,null));},exports[_0xf775c('0x5')]=function(_0x1e646b,_0x487633){const _0x142886=_0xf775c;let _0x8b4bda={'raw':!![],'where':{}};const _0x114061={},_0x4d0c2e={'count':0x0,'rows':[]};return db[_0x142886('0x59')]['findOne']({'where':{'id':_0x1e646b[_0x142886('0x2f')]['id']}})[_0x142886('0x15')](handleEntityNotFound(_0x487633,null))[_0x142886('0x15')](function(_0x750545){const _0x1b682f=_0x142886;if(_0x750545)return _0x114061['model']=_[_0x1b682f('0x4d')](db[_0x1b682f('0x13')]['rawAttributes']),_0x114061['query']=_['keys'](_0x1e646b[_0x1b682f('0x1e')]),_0x114061[_0x1b682f('0x22')]=_[_0x1b682f('0x4b')](_0x114061['model'],_0x114061['query']),_0x8b4bda[_0x1b682f('0x10')]=_[_0x1b682f('0x4b')](_0x114061[_0x1b682f('0x19')],qs[_0x1b682f('0x30')](_0x1e646b[_0x1b682f('0x1e')][_0x1b682f('0x30')])),_0x8b4bda[_0x1b682f('0x10')]=_0x8b4bda[_0x1b682f('0x10')]['length']?_0x8b4bda[_0x1b682f('0x10')]:_0x114061[_0x1b682f('0x19')],typeof _0x1e646b[_0x1b682f('0x1e')][_0x1b682f('0x1c')]===_0x1b682f('0x4a')&&(_0x8b4bda[_0x1b682f('0x51')]=qs[_0x1b682f('0x51')](_0x1e646b[_0x1b682f('0x1e')][_0x1b682f('0x51')]),_0x8b4bda[_0x1b682f('0x6a')]=qs[_0x1b682f('0x6a')](_0x1e646b[_0x1b682f('0x1e')][_0x1b682f('0x6a')])),_0x8b4bda[_0x1b682f('0x48')]=qs[_0x1b682f('0x5c')](_0x1e646b[_0x1b682f('0x1e')]['sort']),_0x8b4bda[_0x1b682f('0x6f')]=qs['filters'](_[_0x1b682f('0x44')](_0x1e646b[_0x1b682f('0x1e')],_0x114061[_0x1b682f('0x22')])),_0x8b4bda[_0x1b682f('0x6f')][_0x1b682f('0x5d')]=_0x750545['id'],_0x1e646b[_0x1b682f('0x1e')][_0x1b682f('0x58')]&&(_0x8b4bda[_0x1b682f('0x6f')]=_[_0x1b682f('0x38')](_0x8b4bda[_0x1b682f('0x6f')],{[Op['or']]:_[_0x1b682f('0x62')](_0x8b4bda['attributes'],function(_0x13ef6b){const _0x56c294=_0x1b682f,_0x46034b={};return _0x46034b[_0x13ef6b]={[Op[_0x56c294('0x6d')]]:'%'+_0x1e646b[_0x56c294('0x1e')][_0x56c294('0x58')]+'%'},_0x46034b;})})),_0x8b4bda=_[_0x1b682f('0x38')]({},_0x8b4bda,_0x1e646b[_0x1b682f('0x14')]),db[_0x1b682f('0x13')][_0x1b682f('0x4f')]({'where':_0x8b4bda[_0x1b682f('0x6f')]})[_0x1b682f('0x15')](function(_0x3f9475){const _0x3346cd=_0x1b682f;return _0x4d0c2e[_0x3346cd('0x4f')]=_0x3f9475,_0x1e646b[_0x3346cd('0x1e')][_0x3346cd('0x6e')]&&(_0x8b4bda[_0x3346cd('0x1')]=[{'all':!![]}]),db[_0x3346cd('0x13')][_0x3346cd('0xe')](_0x8b4bda);})[_0x1b682f('0x15')](function(_0x37be34){return _0x4d0c2e['rows']=_0x37be34,_0x4d0c2e;});})[_0x142886('0x15')](respondWithFilteredResult(_0x487633,_0x8b4bda))[_0x142886('0x36')](handleError(_0x487633,null));},exports[_0xf775c('0x5f')]=function(_0x4b2348,_0x4bed5d){const _0x164109=_0xf775c;let _0x4fc79c={};const _0x569238={};let _0x2a7b01,_0x30709d;return db[_0x164109('0x59')][_0x164109('0x67')]({'where':{'id':_0x4b2348['params']['id']}})[_0x164109('0x15')](handleEntityNotFound(_0x4bed5d,null))[_0x164109('0x15')](function(_0x58d3a8){const _0x81a1ac=_0x164109;if(_0x58d3a8)return _0x2a7b01=_0x58d3a8,_0x569238['model']=_['keys'](db[_0x81a1ac('0x21')][_0x81a1ac('0x29')]),_0x569238[_0x81a1ac('0x1e')]=_[_0x81a1ac('0x4d')](_0x4b2348['query']),_0x569238['filters']=_['intersection'](_0x569238['model'],_0x569238[_0x81a1ac('0x1e')]),_0x4fc79c[_0x81a1ac('0x10')]=_[_0x81a1ac('0x4b')](_0x569238[_0x81a1ac('0x19')],qs[_0x81a1ac('0x30')](_0x4b2348['query'][_0x81a1ac('0x30')])),_0x4fc79c[_0x81a1ac('0x10')]=_0x4fc79c[_0x81a1ac('0x10')][_0x81a1ac('0x3a')]?_0x4fc79c[_0x81a1ac('0x10')]:_0x569238[_0x81a1ac('0x19')],_0x4fc79c[_0x81a1ac('0x48')]=qs[_0x81a1ac('0x5c')](_0x4b2348['query']['sort']),_0x4fc79c['where']=qs[_0x81a1ac('0x22')](_[_0x81a1ac('0x44')](_0x4b2348[_0x81a1ac('0x1e')],_0x569238[_0x81a1ac('0x22')])),_0x4b2348[_0x81a1ac('0x1e')]['filter']&&(_0x4fc79c['where']=_[_0x81a1ac('0x38')](_0x4fc79c['where'],{[Op['or']]:_['map'](_0x4fc79c['attributes'],function(_0x5568b3){const _0x3df4ee=_0x81a1ac,_0x4fdac9={};return _0x4fdac9[_0x5568b3]={[Op[_0x3df4ee('0x6d')]]:'%'+_0x4b2348[_0x3df4ee('0x1e')][_0x3df4ee('0x58')]+'%'},_0x4fdac9;})})),_0x4fc79c=_[_0x81a1ac('0x38')]({},_0x4fc79c,_0x4b2348[_0x81a1ac('0x14')]),_0x2a7b01[_0x81a1ac('0x5f')](_0x4fc79c);})[_0x164109('0x15')](function(_0x10e90a){const _0x4efed7=_0x164109;if(_0x10e90a)return _0x30709d=_0x10e90a[_0x4efed7('0x3a')],typeof _0x4b2348[_0x4efed7('0x1e')][_0x4efed7('0x1c')]===_0x4efed7('0x4a')&&(_0x4fc79c['limit']=qs[_0x4efed7('0x51')](_0x4b2348[_0x4efed7('0x1e')]['limit']),_0x4fc79c[_0x4efed7('0x6a')]=qs[_0x4efed7('0x6a')](_0x4b2348[_0x4efed7('0x1e')][_0x4efed7('0x6a')])),_0x2a7b01[_0x4efed7('0x5f')](_0x4fc79c);})[_0x164109('0x15')](function(_0x1738d6){if(_0x1738d6)return _0x1738d6?{'count':_0x30709d,'rows':_0x1738d6}:null;})[_0x164109('0x15')](respondWithResult(_0x4bed5d,null))[_0x164109('0x36')](handleError(_0x4bed5d,null));},exports['addLists']=function(_0x1dcb82,_0x8a8ccd){const _0x5be7a6=_0xf775c;let _0x15aa28,_0x58223b;return db['Campaign']['findOne']({'where':{'id':_0x1dcb82['params']['id']}})[_0x5be7a6('0x15')](handleEntityNotFound(_0x8a8ccd,null))[_0x5be7a6('0x15')](function(_0x1175bc){const _0x3732ee=_0x5be7a6;if(_0x1175bc)return _0x58223b=_0x1175bc,_0x1175bc['addLists'](_0x1dcb82['body'][_0x3732ee('0x23')],{'through':_[_0x3732ee('0x1b')](_0x1dcb82[_0x3732ee('0x18')],[_0x3732ee('0x23'),'id'])});return null;})[_0x5be7a6('0x15')](function(_0x6e32ef){const _0x495dad=_0x5be7a6;let _0x5c78cc;_0x15aa28=_0x6e32ef||[];const _0x1b888c=[];if(_0x6e32ef){for(let _0x43f6ac=0x0;_0x43f6ac<_0x6e32ef['length'];_0x43f6ac+=0x1){const _0x1e63cb=_0x6e32ef[_0x43f6ac][_0x495dad('0x1d')]({'plain':!![]});_0x58223b[_0x495dad('0x5b')]=_0x1dcb82[_0x495dad('0x18')][_0x495dad('0x5b')]?_0x1dcb82[_0x495dad('0x18')][_0x495dad('0x5b')]:_0x58223b[_0x495dad('0x5b')];switch(_0x58223b[_0x495dad('0x5b')]){case _0x495dad('0x1f'):_0x5c78cc=squel['insert']()[_0x495dad('0x43')](_0x495dad('0x16'))['fromQuery'](['phone',_0x495dad('0x47'),_0x495dad('0x0'),_0x495dad('0x8'),'CampaignId',_0x495dad('0x5a'),'updatedAt'],squel[_0x495dad('0x40')]()[_0x495dad('0x4c')](_0x495dad('0x2e'),'phone')[_0x495dad('0x4c')](_0x495dad('0x3c'),'scheduledAt')[_0x495dad('0x4c')]('id',_0x495dad('0x0'))[_0x495dad('0x4c')](_0x1e63cb[_0x495dad('0x31')][_0x495dad('0x2d')](),'ListId')[_0x495dad('0x4c')](_0x1dcb82[_0x495dad('0x2f')]['id'][_0x495dad('0x2d')](),_0x495dad('0x5d'))[_0x495dad('0x4c')](_0x495dad('0x3c'),_0x495dad('0x5a'))['field'](_0x495dad('0x3c'),'updatedAt')[_0x495dad('0x49')]('cm_contacts')[_0x495dad('0x6f')](_0x495dad('0x42'))[_0x495dad('0x6f')](_0x495dad('0x20'),_0x1e63cb[_0x495dad('0x31')][_0x495dad('0x2d')]())[_0x495dad('0x6f')](_0x495dad('0x64'))['where'](_0x495dad('0x32'),squel[_0x495dad('0x40')]()[_0x495dad('0x4c')](_0x495dad('0x66'))['from']('cm_hopper_final')[_0x495dad('0x6f')](_0x495dad('0xf'),_0x1dcb82['params']['id']['toString']()))[_0x495dad('0x6f')](_0x495dad('0x32'),squel['select']()[_0x495dad('0x4c')](_0x495dad('0x61'))[_0x495dad('0x49')](_0x495dad('0x16'))[_0x495dad('0x6f')](_0x495dad('0xf'),_0x1dcb82['params']['id']['toString']())))[_0x495dad('0x2d')]();break;case _0x495dad('0x1a'):_0x5c78cc=squel[_0x495dad('0x6')]()[_0x495dad('0x43')](_0x495dad('0x16'))['fromQuery']([_0x495dad('0x2e'),'scheduledAt',_0x495dad('0x0'),'ListId','CampaignId',_0x495dad('0x5a'),_0x495dad('0xc')],squel[_0x495dad('0x40')]()[_0x495dad('0x4c')](_0x495dad('0x2e'),'phone')[_0x495dad('0x4c')](_0x495dad('0x3c'),_0x495dad('0x47'))[_0x495dad('0x4c')]('id',_0x495dad('0x0'))[_0x495dad('0x4c')](_0x1e63cb['CmListId']['toString'](),'ListId')['field'](_0x1dcb82['params']['id'][_0x495dad('0x2d')](),'CampaignId')['field']('NOW()','createdAt')[_0x495dad('0x4c')]('NOW()','updatedAt')[_0x495dad('0x49')](_0x495dad('0xb'))[_0x495dad('0x6f')](_0x495dad('0x42'))['where'](_0x495dad('0x20'),_0x1e63cb[_0x495dad('0x31')]['toString']())[_0x495dad('0x6f')](_0x495dad('0x64'))[_0x495dad('0x6f')](_0x495dad('0x32'),squel[_0x495dad('0x40')]()[_0x495dad('0x4c')](_0x495dad('0x61'))[_0x495dad('0x49')](_0x495dad('0x16'))['where'](_0x495dad('0xf'),_0x1dcb82[_0x495dad('0x2f')]['id'][_0x495dad('0x2d')]())))[_0x495dad('0x2d')]();break;default:_0x5c78cc=squel[_0x495dad('0x6')]()[_0x495dad('0x43')](_0x495dad('0x16'))[_0x495dad('0x3d')]([_0x495dad('0x2e'),'scheduledAt',_0x495dad('0x0'),'ListId','CampaignId',_0x495dad('0x5a'),_0x495dad('0xc')],squel[_0x495dad('0x40')]()[_0x495dad('0x4c')](_0x495dad('0x2e'),'phone')[_0x495dad('0x4c')]('NOW()','scheduledAt')[_0x495dad('0x4c')]('id','ContactId')[_0x495dad('0x4c')](_0x1e63cb[_0x495dad('0x31')][_0x495dad('0x2d')](),'ListId')[_0x495dad('0x4c')](_0x1dcb82['params']['id'][_0x495dad('0x2d')](),_0x495dad('0x5d'))[_0x495dad('0x4c')](_0x495dad('0x3c'),_0x495dad('0x5a'))['field'](_0x495dad('0x3c'),_0x495dad('0xc'))[_0x495dad('0x49')]('cm_contacts')[_0x495dad('0x6f')](_0x495dad('0x42'))[_0x495dad('0x6f')](_0x495dad('0x20'),_0x1e63cb[_0x495dad('0x31')][_0x495dad('0x2d')]())[_0x495dad('0x6f')](_0x495dad('0x64')))[_0x495dad('0x2d')]();}_0x1b888c[_0x495dad('0x56')](db[_0x495dad('0x2a')][_0x495dad('0x1e')](_0x5c78cc));}return Promise[_0x495dad('0x3b')](_0x1b888c);}})[_0x5be7a6('0x15')](function(){return _0x15aa28;})[_0x5be7a6('0x15')](respondWithResult(_0x8a8ccd,null))[_0x5be7a6('0x36')](handleError(_0x8a8ccd,null));},exports[_0xf775c('0x33')]=function(_0x580cbd,_0x2c9052){const _0x545fd3=_0xf775c;return db[_0x545fd3('0x59')][_0x545fd3('0x67')]({'where':{'id':_0x580cbd[_0x545fd3('0x2f')]['id']}})[_0x545fd3('0x15')](handleEntityNotFound(_0x2c9052,null))[_0x545fd3('0x15')](function(_0x3dcf63){const _0x14973b=_0x545fd3;if(_0x3dcf63)return _0x3dcf63[_0x14973b('0x33')](_0x580cbd[_0x14973b('0x1e')][_0x14973b('0x23')]);})[_0x545fd3('0x15')](function(_0x24fc36){const _0x19922=_0x545fd3;if(_0x24fc36)return db[_0x19922('0x37')][_0x19922('0x50')]({'where':{'ListId':_0x580cbd['query'][_0x19922('0x23')],'CampaignId':_0x580cbd[_0x19922('0x2f')]['id']}})[_0x19922('0x15')](function(){return _0x24fc36;});})[_0x545fd3('0x15')](respondWithStatusCode(_0x2c9052,null))[_0x545fd3('0x36')](handleError(_0x2c9052,null));},exports[_0xf775c('0x39')]=function(_0x5590e2,_0x115002){const _0x576f89=_0xf775c;let _0x2b2109={'raw':!![],'where':{}};const _0x4698f5={},_0x2f6d88={'count':0x0,'rows':[]};return db['Campaign'][_0x576f89('0x67')]({'where':{'id':_0x5590e2['params']['id']}})[_0x576f89('0x15')](handleEntityNotFound(_0x115002,null))[_0x576f89('0x15')](function(_0x1f847a){const _0x501fc9=_0x576f89;if(_0x1f847a)return _0x4698f5[_0x501fc9('0x19')]=_[_0x501fc9('0x4d')](db[_0x501fc9('0x21')][_0x501fc9('0x29')]),_0x4698f5[_0x501fc9('0x1e')]=_[_0x501fc9('0x4d')](_0x5590e2[_0x501fc9('0x1e')]),_0x4698f5[_0x501fc9('0x22')]=_[_0x501fc9('0x4b')](_0x4698f5[_0x501fc9('0x19')],_0x4698f5[_0x501fc9('0x1e')]),_0x2b2109[_0x501fc9('0x10')]=_[_0x501fc9('0x4b')](_0x4698f5[_0x501fc9('0x19')],qs['fields'](_0x5590e2[_0x501fc9('0x1e')]['fields'])),_0x2b2109[_0x501fc9('0x10')]=_0x2b2109[_0x501fc9('0x10')][_0x501fc9('0x3a')]?_0x2b2109[_0x501fc9('0x10')]:_0x4698f5[_0x501fc9('0x19')],typeof _0x5590e2[_0x501fc9('0x1e')][_0x501fc9('0x1c')]==='undefined'&&(_0x2b2109[_0x501fc9('0x51')]=qs[_0x501fc9('0x51')](_0x5590e2[_0x501fc9('0x1e')]['limit']),_0x2b2109[_0x501fc9('0x6a')]=qs[_0x501fc9('0x6a')](_0x5590e2[_0x501fc9('0x1e')]['offset'])),_0x2b2109[_0x501fc9('0x48')]=qs[_0x501fc9('0x5c')](_0x5590e2['query'][_0x501fc9('0x5c')]),_0x2b2109[_0x501fc9('0x6f')]=qs[_0x501fc9('0x22')](_['pick'](_0x5590e2[_0x501fc9('0x1e')],_0x4698f5[_0x501fc9('0x22')])),_0x2b2109[_0x501fc9('0x6f')]['CampaignId']=_0x1f847a['id'],_0x5590e2[_0x501fc9('0x1e')][_0x501fc9('0x58')]&&(_0x2b2109[_0x501fc9('0x6f')]=_[_0x501fc9('0x38')](_0x2b2109[_0x501fc9('0x6f')],{[Op['or']]:_['map'](_0x2b2109[_0x501fc9('0x10')],function(_0x58ee6e){const _0x4508c2=_0x501fc9,_0x547c61={};return _0x547c61[_0x58ee6e]={[Op['like']]:'%'+_0x5590e2[_0x4508c2('0x1e')][_0x4508c2('0x58')]+'%'},_0x547c61;})})),_0x2b2109=_[_0x501fc9('0x38')]({},_0x2b2109,_0x5590e2[_0x501fc9('0x14')]),db[_0x501fc9('0x21')][_0x501fc9('0x4f')]({'where':_0x2b2109[_0x501fc9('0x6f')]})['then'](function(_0x4fa0bd){const _0x2dd2c6=_0x501fc9;return _0x2f6d88[_0x2dd2c6('0x4f')]=_0x4fa0bd,_0x5590e2[_0x2dd2c6('0x1e')]['includeAll']&&(_0x2b2109['include']=[{'all':!![]}]),db['CmList']['findAll'](_0x2b2109);})[_0x501fc9('0x15')](function(_0xd844dc){return _0x2f6d88['rows']=_0xd844dc,_0x2f6d88;});})[_0x576f89('0x15')](respondWithFilteredResult(_0x115002,_0x2b2109))[_0x576f89('0x36')](handleError(_0x115002,null));},exports['addBlackLists']=function(_0x32376d,_0x5e88f6){const _0x73f119=_0xf775c;let _0x48b738;return db[_0x73f119('0x59')]['findOne']({'where':{'id':_0x32376d[_0x73f119('0x2f')]['id']}})[_0x73f119('0x15')](handleEntityNotFound(_0x5e88f6,null))[_0x73f119('0x15')](function(_0x1a5848){const _0x385dee=_0x73f119;if(_0x1a5848)return _0x1a5848[_0x385dee('0x55')](_0x32376d['body']['ids'],{'through':_[_0x385dee('0x1b')](_0x32376d[_0x385dee('0x18')],[_0x385dee('0x23'),'id'])});return null;})[_0x73f119('0x15')](function(_0x4cf8ce){const _0xe6be78=_0x73f119;let _0x50fc7f;_0x48b738=_0x4cf8ce||[];const _0x12b107=[];if(_0x4cf8ce){for(let _0x1a5ea2=0x0;_0x1a5ea2<_0x4cf8ce['length'];_0x1a5ea2+=0x1){const _0x5428b0=_0x4cf8ce[_0x1a5ea2][_0xe6be78('0x1d')]({'plain':!![]});_0x50fc7f=squel['insert']()['into'](_0xe6be78('0x26'))[_0xe6be78('0x3d')]([_0xe6be78('0x2e'),_0xe6be78('0x0'),'ListId',_0xe6be78('0x5d'),_0xe6be78('0x5a'),_0xe6be78('0xc')],squel[_0xe6be78('0x40')]()['field'](_0xe6be78('0x2e'),_0xe6be78('0x2e'))[_0xe6be78('0x4c')]('id',_0xe6be78('0x0'))['field'](_0x5428b0[_0xe6be78('0x31')][_0xe6be78('0x2d')](),_0xe6be78('0x8'))['field'](_0x32376d[_0xe6be78('0x2f')]['id'][_0xe6be78('0x2d')](),'CampaignId')[_0xe6be78('0x4c')](_0xe6be78('0x3c'),'createdAt')['field'](_0xe6be78('0x3c'),_0xe6be78('0xc'))[_0xe6be78('0x49')](_0xe6be78('0xb'))[_0xe6be78('0x6f')](_0xe6be78('0x42'))['where'](_0xe6be78('0x20'),_0x5428b0[_0xe6be78('0x31')][_0xe6be78('0x2d')]())[_0xe6be78('0x6f')](_0xe6be78('0x64')))['toString'](),_0x12b107[_0xe6be78('0x56')](db[_0xe6be78('0x2a')][_0xe6be78('0x1e')](_0x50fc7f));}return Promise[_0xe6be78('0x3b')](_0x12b107);}})['then'](function(){return _0x48b738;})['then'](respondWithResult(_0x5e88f6,null))[_0x73f119('0x36')](handleError(_0x5e88f6,null));},exports[_0xf775c('0x3f')]=function(_0x2359e2,_0x129b03){const _0x4b2764=_0xf775c;return db['Campaign'][_0x4b2764('0x67')]({'where':{'id':_0x2359e2[_0x4b2764('0x2f')]['id']}})[_0x4b2764('0x15')](handleEntityNotFound(_0x129b03,null))['then'](function(_0x5d5476){const _0x59e963=_0x4b2764;if(_0x5d5476)return _0x5d5476['removeBlackLists'](_0x2359e2[_0x59e963('0x1e')][_0x59e963('0x23')]);})[_0x4b2764('0x15')](function(_0x167b25){const _0x45124f=_0x4b2764;if(_0x167b25)return db[_0x45124f('0x13')][_0x45124f('0x50')]({'where':{'ListId':_0x2359e2[_0x45124f('0x1e')][_0x45124f('0x23')],'CampaignId':_0x2359e2[_0x45124f('0x2f')]['id']}})[_0x45124f('0x15')](function(){return _0x167b25;});})[_0x4b2764('0x15')](respondWithStatusCode(_0x129b03,null))['catch'](handleError(_0x129b03,null));}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index 6a65394..db4b197 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a43_0x1843=['./campaign.attributes','Campaign','exports','define'];(function(_0x5d66b3,_0x184365){const _0x120b03=function(_0xdaa30){while(--_0xdaa30){_0x5d66b3['push'](_0x5d66b3['shift']());}};_0x120b03(++_0x184365);}(a43_0x1843,0x68));const a43_0x120b=function(_0x5d66b3,_0x184365){_0x5d66b3=_0x5d66b3-0x0;let _0x120b03=a43_0x1843[_0x5d66b3];return _0x120b03;};const _0x5e81a1=a43_0x120b;'use strict';const attributes=require(_0x5e81a1('0x0'));module[_0x5e81a1('0x2')]=function(_0xdaa30){const _0x7d429c=_0x5e81a1,_0x1e6455=_0xdaa30[_0x7d429c('0x3')](_0x7d429c('0x1'),attributes,{'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e6455;}; \ No newline at end of file +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 diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index 15c1fb5..0dd382d 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a44_0x3be0=['options','where','message','rpc','debug','stringify','model','info','limit','map','attributes','GetCampaign','include','error','../../mysqldb','../../config/logger','findAll','then','catch','lodash'];(function(_0x9c2939,_0x3be00a){const _0x451327=function(_0x58d897){while(--_0x58d897){_0x9c2939['push'](_0x9c2939['shift']());}};_0x451327(++_0x3be00a);}(a44_0x3be0,0x162));const a44_0x4513=function(_0x9c2939,_0x3be00a){_0x9c2939=_0x9c2939-0x0;let _0x451327=a44_0x3be0[_0x9c2939];return _0x451327;};const _0x123727=a44_0x4513;'use strict';const _=require(_0x123727('0x5')),db=require(_0x123727('0x0'))['db'],logger=require(_0x123727('0x1'))(_0x123727('0x9'));exports[_0x123727('0x11')]=function(_0x58d897){const _0x58c0b1=this;return new Promise(function(_0x462616,_0x21f53e){const _0x3df636=a44_0x4513;return db['Campaign'][_0x3df636('0x2')]({'raw':_0x58d897[_0x3df636('0x6')]?_0x58d897['options']['raw']===undefined?!![]:![]:!![],'where':_0x58d897['options']?_0x58d897[_0x3df636('0x6')][_0x3df636('0x7')]||null:null,'attributes':_0x58d897[_0x3df636('0x6')]?_0x58d897[_0x3df636('0x6')][_0x3df636('0x10')]||null:null,'limit':_0x58d897[_0x3df636('0x6')]?_0x58d897[_0x3df636('0x6')][_0x3df636('0xe')]||null:null,'include':_0x58d897[_0x3df636('0x6')]?_0x58d897[_0x3df636('0x6')][_0x3df636('0x12')]?_['map'](_0x58d897[_0x3df636('0x6')][_0x3df636('0x12')],function(_0x2d133d){const _0xad3ffc=_0x3df636;return{'model':db[_0x2d133d[_0xad3ffc('0xc')]],'as':_0x2d133d['as'],'attributes':_0x2d133d[_0xad3ffc('0x10')],'include':_0x2d133d[_0xad3ffc('0x12')]?_[_0xad3ffc('0xf')](_0x2d133d[_0xad3ffc('0x12')],function(_0x2b6fb7){const _0xa315b3=_0xad3ffc;return{'model':db[_0x2b6fb7[_0xa315b3('0xc')]],'as':_0x2b6fb7['as'],'attributes':_0x2b6fb7['attributes'],'include':_0x2b6fb7[_0xa315b3('0x12')]?_[_0xa315b3('0xf')](_0x2b6fb7['include'],function(_0x518377){const _0x44b679=_0xa315b3;return{'model':db[_0x518377[_0x44b679('0xc')]],'as':_0x518377['as'],'attributes':_0x518377[_0x44b679('0x10')]};}):[]};}):[]};}):[]:[]})[_0x3df636('0x3')](function(_0x55d61b){const _0x16c096=_0x3df636;logger[_0x16c096('0xd')]('GetCampaign',_0x58d897),logger[_0x16c096('0xa')](_0x16c096('0x11'),_0x58d897,JSON[_0x16c096('0xb')](_0x55d61b)),_0x462616(_0x55d61b);})[_0x3df636('0x4')](function(_0x1b3108){const _0x4b0f81=_0x3df636;logger[_0x4b0f81('0x13')]('GetCampaign',_0x1b3108['message'],_0x58d897),_0x21f53e(_0x58c0b1['error'](0x1f4,_0x1b3108[_0x4b0f81('0x8')]));});});}; \ No newline at end of file +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 diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index 836f1a3..0ea3d1b 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a45_0x17a6=['get','./campaign.controller','/:id/lists','clone','show','/:id/hopper_finals','isAuthenticated','getLists','delete','removeBlackLists','destroy','addBlackLists','/:id/hopper_black','/:id','../../components/auth/service','/:id/clone','getBlackLists','getHopperHistories','/:id/blacklists','post','index','addLists','getHoppers','/:id/hopper_histories','express','exports','put','update','getHopperFinals','getHopperBlacks'];(function(_0x1c2778,_0x17a652){const _0x4f1a82=function(_0x10ac52){while(--_0x10ac52){_0x1c2778['push'](_0x1c2778['shift']());}};_0x4f1a82(++_0x17a652);}(a45_0x17a6,0x83));const a45_0x4f1a=function(_0x1c2778,_0x17a652){_0x1c2778=_0x1c2778-0x0;let _0x4f1a82=a45_0x17a6[_0x1c2778];return _0x4f1a82;};const _0x479362=a45_0x4f1a;'use strict';const express=require(_0x479362('0xd')),router=express['Router'](),auth=require(_0x479362('0x3')),controller=require(_0x479362('0x14'));router['get']('/',auth['isAuthenticated'](),controller[_0x479362('0x9')]),router[_0x479362('0x13')]('/:id',auth[_0x479362('0x19')](),controller[_0x479362('0x17')]),router[_0x479362('0x13')]('/:id/hoppers',auth[_0x479362('0x19')](),controller[_0x479362('0xb')]),router[_0x479362('0x13')](_0x479362('0xc'),auth['isAuthenticated'](),controller[_0x479362('0x6')]),router[_0x479362('0x13')](_0x479362('0x18'),auth[_0x479362('0x19')](),controller[_0x479362('0x11')]),router['get'](_0x479362('0x1'),auth[_0x479362('0x19')](),controller[_0x479362('0x12')]),router['get'](_0x479362('0x15'),auth[_0x479362('0x19')](),controller[_0x479362('0x1a')]),router['get']('/:id/blacklists',auth['isAuthenticated'](),controller[_0x479362('0x5')]),router['post']('/',auth[_0x479362('0x19')](),controller['create']),router['post'](_0x479362('0x4'),auth[_0x479362('0x19')](),controller[_0x479362('0x16')]),router['post'](_0x479362('0x15'),auth[_0x479362('0x19')](),controller[_0x479362('0xa')]),router[_0x479362('0x8')](_0x479362('0x7'),auth[_0x479362('0x19')](),controller[_0x479362('0x0')]),router[_0x479362('0xf')](_0x479362('0x2'),auth[_0x479362('0x19')](),controller[_0x479362('0x10')]),router[_0x479362('0x1b')](_0x479362('0x2'),auth[_0x479362('0x19')](),controller[_0x479362('0x1d')]),router[_0x479362('0x1b')](_0x479362('0x15'),auth['isAuthenticated'](),controller['removeLists']),router[_0x479362('0x1b')](_0x479362('0x7'),auth[_0x479362('0x19')](),controller[_0x479362('0x1c')]),module[_0x479362('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index c76422b..d0dcc0c 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a46_0x342a=['exports','STRING','getDataValue','VIRTUAL','key','sequelize'];(function(_0x56a3b4,_0x342a09){const _0x33be26=function(_0x464c98){while(--_0x464c98){_0x56a3b4['push'](_0x56a3b4['shift']());}};_0x33be26(++_0x342a09);}(a46_0x342a,0x194));const a46_0x33be=function(_0x56a3b4,_0x342a09){_0x56a3b4=_0x56a3b4-0x0;let _0x33be26=a46_0x342a[_0x56a3b4];return _0x33be26;};const _0x1808ae=a46_0x33be;'use strict';const Sequelize=require(_0x1808ae('0x3'));module[_0x1808ae('0x4')]={'key':{'type':Sequelize[_0x1808ae('0x5')],'allowNull':![]},'value':{'type':Sequelize['TEXT'],'allowNull':![]},'description':{'type':Sequelize[_0x1808ae('0x5')]},'name':{'type':Sequelize[_0x1808ae('0x1')],'get':function(){const _0x49cd35=_0x1808ae;return this[_0x49cd35('0x0')](_0x49cd35('0x2'));}}}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index 3a11fec..dede33c 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a47_0x3065=['ChatWebsiteId','sort','update','filter','index','attributes','count','user','MailAccountId','includeAll','lodash','length','filters','like','pick','keys','send','json','include','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','fields','sequelize','query','autoAssociation','CannedAnswers','merge','error','model','offset','intersection','../../components/parsers/qs','../../config/logger','name','catch','Content-Range','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','The\x20inserted\x20key\x20already\x20exists.','show','status','CannedAnswer','SmsAccountId','then','end','options','OpenchannelAccountId','type','sendStatus','fieldName','findOne','undefined','get','create','where','key','nolimit','body','map','api','UserProfileResource','stack','destroy'];(function(_0x4c4c4f,_0x306588){const _0x24f506=function(_0x17cbf2){while(--_0x17cbf2){_0x4c4c4f['push'](_0x4c4c4f['shift']());}};_0x24f506(++_0x306588);}(a47_0x3065,0x1e2));const a47_0x24f5=function(_0x4c4c4f,_0x306588){_0x4c4c4f=_0x4c4c4f-0x0;let _0x24f506=a47_0x3065[_0x4c4c4f];return _0x24f506;};const _0x15247e=a47_0x24f5;'use strict';const _=require(_0x15247e('0x18')),qs=require(_0x15247e('0x2d')),logger=require(_0x15247e('0x2e'))(_0x15247e('0xa')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x15247e('0x24'));function respondWithResult(_0x17cbf2,_0x34eb46){return _0x34eb46=_0x34eb46||0xc8,function(_0x1aa4c3){const _0x17c217=a47_0x24f5;if(_0x1aa4c3)return _0x17cbf2[_0x17c217('0x35')](_0x34eb46)[_0x17c217('0x1f')](_0x1aa4c3);};}function respondWithFilteredResult(_0x441a51,_0x2bdd3e){return function(_0x5790d3){const _0x446d40=a47_0x24f5;if(_0x5790d3){const _0x43874e=_0x5790d3[_0x446d40('0x14')],_0x436664=_0x2bdd3e[_0x446d40('0x2b')];let _0x3da105=_0x2bdd3e[_0x446d40('0x2b')]+_0x2bdd3e['limit'],_0x3df83e;return _0x3da105>=_0x43874e?(_0x3da105=_0x43874e,_0x3df83e=0xc8):_0x3df83e=0xce,_0x441a51['status'](_0x3df83e),_0x441a51['set'](_0x446d40('0x31'),_0x436664+'-'+_0x3da105+'/'+_0x43874e)[_0x446d40('0x1f')](_0x5790d3);}return null;};}function saveUpdates(_0x48a027){return function(_0x573c21){const _0x12bc2b=a47_0x24f5;if(_0x573c21)return _0x573c21['update'](_0x48a027)[_0x12bc2b('0x38')](function(_0x5b03e1){return _0x5b03e1;});return null;};}function removeEntity(_0x2b623d){return function(_0x56fb21){const _0x3c0e10=a47_0x24f5;if(_0x56fb21)return _0x56fb21[_0x3c0e10('0xd')]()[_0x3c0e10('0x38')](function(){const _0x458629=_0x3c0e10,_0x24f877=_0x56fb21[_0x458629('0x3')]({'plain':!![]}),_0x534aa6='CannedAnswers';return db[_0x458629('0xb')][_0x458629('0xd')]({'where':{'type':_0x534aa6,'resourceId':_0x24f877['id']}})[_0x458629('0x38')](function(){return _0x56fb21;});})[_0x3c0e10('0x38')](function(){const _0x30f135=_0x3c0e10;_0x2b623d[_0x30f135('0x35')](0xcc)[_0x30f135('0x39')]();});};}function handleEntityNotFound(_0x36a971){return function(_0x5eca2e){const _0x211a5b=a47_0x24f5;return!_0x5eca2e&&_0x36a971[_0x211a5b('0x3d')](0x194),_0x5eca2e;};}function handleError(_0x393241,_0x168429){return _0x168429=_0x168429||0x1f4,function(_0x4af61d){const _0x59cd0e=a47_0x24f5;logger[_0x59cd0e('0x29')](_0x4af61d[_0x59cd0e('0xc')]),_0x4af61d[_0x59cd0e('0x2f')]&&delete _0x4af61d[_0x59cd0e('0x2f')],_0x393241['status'](_0x168429)[_0x59cd0e('0x1e')](_0x4af61d);};}exports[_0x15247e('0x12')]=function(_0x5297d2,_0x5f3529){const _0x48a5c3=_0x15247e;let _0x3ee847={};const _0x2abe8a={},_0x10c794={'count':0x0,'rows':[]},_0x51489f=_[_0x48a5c3('0x9')](db[_0x48a5c3('0x36')]['rawAttributes'],function(_0xc401ee){const _0xa3c0bc=_0x48a5c3;return{'name':_0xc401ee[_0xa3c0bc('0x0')],'type':_0xc401ee[_0xa3c0bc('0x3c')][_0xa3c0bc('0x6')]};});_0x2abe8a[_0x48a5c3('0x2a')]=_['map'](_0x51489f,_0x48a5c3('0x2f')),_0x2abe8a[_0x48a5c3('0x25')]=_[_0x48a5c3('0x1d')](_0x5297d2['query']),_0x2abe8a[_0x48a5c3('0x1a')]=_[_0x48a5c3('0x2c')](_0x2abe8a[_0x48a5c3('0x2a')],_0x2abe8a[_0x48a5c3('0x25')]),_0x3ee847['attributes']=_[_0x48a5c3('0x2c')](_0x2abe8a[_0x48a5c3('0x2a')],qs[_0x48a5c3('0x23')](_0x5297d2[_0x48a5c3('0x25')][_0x48a5c3('0x23')])),_0x3ee847[_0x48a5c3('0x13')]=_0x3ee847['attributes']['length']?_0x3ee847[_0x48a5c3('0x13')]:_0x2abe8a[_0x48a5c3('0x2a')];typeof _0x5297d2['query'][_0x48a5c3('0x7')]===_0x48a5c3('0x2')&&(_0x3ee847[_0x48a5c3('0x21')]=qs[_0x48a5c3('0x21')](_0x5297d2[_0x48a5c3('0x25')][_0x48a5c3('0x21')]),_0x3ee847[_0x48a5c3('0x2b')]=qs[_0x48a5c3('0x2b')](_0x5297d2[_0x48a5c3('0x25')]['offset']));_0x3ee847['order']=qs[_0x48a5c3('0xf')](_0x5297d2[_0x48a5c3('0x25')]['sort']),_0x3ee847['where']=qs['filters'](_[_0x48a5c3('0x1c')](_0x5297d2[_0x48a5c3('0x25')],_0x2abe8a['filters']),_0x51489f);_0x5297d2['query'][_0x48a5c3('0x11')]&&(_0x3ee847[_0x48a5c3('0x5')]=_[_0x48a5c3('0x28')](_0x3ee847[_0x48a5c3('0x5')],{[Op['or']]:_['map'](_0x51489f,function(_0x3e6186){const _0x9754f0=_0x48a5c3;if(_0x3e6186[_0x9754f0('0x3c')]!=='VIRTUAL'){const _0x563ece={};return _0x563ece[_0x3e6186[_0x9754f0('0x2f')]]={[Op[_0x9754f0('0x1b')]]:'%'+_0x5297d2[_0x9754f0('0x25')][_0x9754f0('0x11')]+'%'},_0x563ece;}})}));_0x3ee847=_[_0x48a5c3('0x28')]({},_0x3ee847,_0x5297d2[_0x48a5c3('0x3a')]);const _0x3ccd27={'where':_0x3ee847[_0x48a5c3('0x5')]};return db[_0x48a5c3('0x36')]['count'](_0x3ccd27)['then'](function(_0x3530fe){const _0x4e9905=_0x48a5c3;return _0x10c794['count']=_0x3530fe,_0x5297d2[_0x4e9905('0x25')][_0x4e9905('0x17')]&&(_0x3ee847[_0x4e9905('0x20')]=[{'all':!![]}]),db[_0x4e9905('0x36')]['findAll'](_0x3ee847);})[_0x48a5c3('0x38')](function(_0x241d28){return _0x10c794['rows']=_0x241d28,_0x10c794;})['then'](respondWithFilteredResult(_0x5f3529,_0x3ee847))[_0x48a5c3('0x30')](handleError(_0x5f3529,null));},exports[_0x15247e('0x34')]=function(_0x329863,_0x555387){const _0x5ae5a4=_0x15247e;let _0xde5587={'raw':!![],'where':{'id':_0x329863['params']['id']}};const _0x434256={};return _0x434256[_0x5ae5a4('0x2a')]=_[_0x5ae5a4('0x1d')](db[_0x5ae5a4('0x36')]['rawAttributes']),_0x434256[_0x5ae5a4('0x25')]=_[_0x5ae5a4('0x1d')](_0x329863[_0x5ae5a4('0x25')]),_0x434256[_0x5ae5a4('0x1a')]=_[_0x5ae5a4('0x2c')](_0x434256[_0x5ae5a4('0x2a')],_0x434256[_0x5ae5a4('0x25')]),_0xde5587['attributes']=_[_0x5ae5a4('0x2c')](_0x434256[_0x5ae5a4('0x2a')],qs['fields'](_0x329863[_0x5ae5a4('0x25')][_0x5ae5a4('0x23')])),_0xde5587[_0x5ae5a4('0x13')]=_0xde5587[_0x5ae5a4('0x13')][_0x5ae5a4('0x19')]?_0xde5587['attributes']:_0x434256[_0x5ae5a4('0x2a')],_0x329863[_0x5ae5a4('0x25')][_0x5ae5a4('0x17')]&&(_0xde5587[_0x5ae5a4('0x20')]=[{'all':!![]}]),_0xde5587=_[_0x5ae5a4('0x28')]({},_0xde5587,_0x329863[_0x5ae5a4('0x3a')]),db[_0x5ae5a4('0x36')][_0x5ae5a4('0x1')](_0xde5587)[_0x5ae5a4('0x38')](handleEntityNotFound(_0x555387,null))[_0x5ae5a4('0x38')](respondWithResult(_0x555387,null))[_0x5ae5a4('0x30')](handleError(_0x555387,null));},exports[_0x15247e('0x10')]=function(_0x2ac85f,_0x538f16){const _0x538987=_0x15247e;return _0x2ac85f[_0x538987('0x8')]['id']&&delete _0x2ac85f[_0x538987('0x8')]['id'],db[_0x538987('0x36')][_0x538987('0x1')]({'where':{'id':_0x2ac85f['params']['id']}})[_0x538987('0x38')](handleEntityNotFound(_0x538f16,null))[_0x538987('0x38')](saveUpdates(_0x2ac85f[_0x538987('0x8')],null))['then'](respondWithResult(_0x538f16,null))[_0x538987('0x30')](handleError(_0x538f16,null));},exports[_0x15247e('0xd')]=function(_0x20e2a1,_0x30b551){const _0x29dbd4=_0x15247e;return db['CannedAnswer']['findOne']({'where':{'id':_0x20e2a1['params']['id']}})[_0x29dbd4('0x38')](handleEntityNotFound(_0x30b551,null))['then'](removeEntity(_0x30b551,null))[_0x29dbd4('0x30')](handleError(_0x30b551,null));},exports[_0x15247e('0x4')]=function(_0x4cf613,_0x39e42d){const _0x31ba29=_0x15247e,_0x5d95f7={'key':_0x4cf613['body'][_0x31ba29('0x6')]};if(_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x16')])_0x5d95f7['MailAccountId']=_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x16')];else{if(_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x37')])_0x5d95f7[_0x31ba29('0x37')]=_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x37')];else{if(_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x3b')])_0x5d95f7['OpenchannelAccountId']=_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0x3b')];else _0x4cf613['body'][_0x31ba29('0xe')]&&(_0x5d95f7[_0x31ba29('0xe')]=_0x4cf613[_0x31ba29('0x8')][_0x31ba29('0xe')]);}}return db[_0x31ba29('0x36')]['findOne']({'where':_0x5d95f7})['then'](function(_0xf342e){const _0x228a51=_0x31ba29;if(_0xf342e)throw new ValidationError(_0x228a51('0x33'));return db[_0x228a51('0x36')][_0x228a51('0x4')](_0x4cf613[_0x228a51('0x8')]);})[_0x31ba29('0x38')](function(_0x2ae7e6){const _0x3255ad=_0x31ba29,_0xe405e3=_0x4cf613[_0x3255ad('0x15')][_0x3255ad('0x3')]({'plain':!![]});if(!_0xe405e3)throw new Error(_0x3255ad('0x22'));if(_0xe405e3['role']===_0x3255ad('0x15')){const _0xdaba37=_0x2ae7e6[_0x3255ad('0x3')]({'plain':!![]});return db['UserProfileSection']['findOne']({'where':{'name':_0x3255ad('0x27'),'userProfileId':_0xe405e3['userProfileId']},'raw':!![]})[_0x3255ad('0x38')](function(_0x560317){const _0x312f2f=_0x3255ad;return _0x560317&&_0x560317[_0x312f2f('0x26')]===0x0?db['UserProfileResource'][_0x312f2f('0x4')]({'name':_0xdaba37['name'],'resourceId':_0xdaba37['id'],'type':_0x560317[_0x312f2f('0x2f')],'sectionId':_0x560317['id']},{})[_0x312f2f('0x38')](function(){return _0x2ae7e6;}):_0x2ae7e6;})[_0x3255ad('0x30')](function(_0x363d8e){const _0x4bee1f=_0x3255ad;logger[_0x4bee1f('0x29')](_0x4bee1f('0x32'),_0x363d8e);throw _0x363d8e;});}return _0x2ae7e6;})['then'](respondWithResult(_0x39e42d,0xc9))[_0x31ba29('0x30')](handleError(_0x39e42d,null));}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index 823efbe..386f731 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a48_0x42e7=['utf8mb4','tools_canned_answers','exports','CannedAnswer','utf8mb4_unicode_ci'];(function(_0x2bd4a3,_0x42e7ca){const _0x2fc058=function(_0x358fc3){while(--_0x358fc3){_0x2bd4a3['push'](_0x2bd4a3['shift']());}};_0x2fc058(++_0x42e7ca);}(a48_0x42e7,0xbd));const a48_0x2fc0=function(_0x2bd4a3,_0x42e7ca){_0x2bd4a3=_0x2bd4a3-0x0;let _0x2fc058=a48_0x42e7[_0x2bd4a3];return _0x2fc058;};const _0x17a8c4=a48_0x2fc0;'use strict';const attributes=require('./cannedAnswer.attributes');module[_0x17a8c4('0x3')]=function(_0x358fc3){const _0x4726e4=_0x17a8c4,_0x4dd9eb=_0x358fc3['define'](_0x4726e4('0x4'),attributes,{'tableName':_0x4726e4('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4726e4('0x1'),'collate':_0x4726e4('0x0')});return _0x4dd9eb;}; \ No newline at end of file +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 diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 5f9e57d..8ca0dda 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a49_0x7339=['delete','destroy','post','/:id','./cannedAnswer.controller','get','../../components/auth/service','Router','exports','isAuthenticated','put','index'];(function(_0x35a935,_0x7339e9){const _0x21e754=function(_0x4937ed){while(--_0x4937ed){_0x35a935['push'](_0x35a935['shift']());}};_0x21e754(++_0x7339e9);}(a49_0x7339,0x19f));const a49_0x21e7=function(_0x35a935,_0x7339e9){_0x35a935=_0x35a935-0x0;let _0x21e754=a49_0x7339[_0x35a935];return _0x21e754;};const _0x35216d=a49_0x21e7;'use strict';const express=require('express'),router=express[_0x35216d('0x0')](),auth=require(_0x35216d('0xb')),controller=require(_0x35216d('0x9'));router[_0x35216d('0xa')]('/',auth[_0x35216d('0x2')](),controller[_0x35216d('0x4')]),router['get'](_0x35216d('0x8'),auth[_0x35216d('0x2')](),controller['show']),router[_0x35216d('0x7')]('/',auth[_0x35216d('0x2')](),controller['create']),router[_0x35216d('0x3')](_0x35216d('0x8'),auth[_0x35216d('0x2')](),controller['update']),router[_0x35216d('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x35216d('0x6')]),module[_0x35216d('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index 0563ce3..95f0dcc 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a50_0xaf52=['sequelize','DATE','INTEGER','STRING'];(function(_0x3565f5,_0xaf528c){const _0x10a6c2=function(_0x1dd56e){while(--_0x1dd56e){_0x3565f5['push'](_0x3565f5['shift']());}};_0x10a6c2(++_0xaf528c);}(a50_0xaf52,0xd2));const a50_0x10a6=function(_0x3565f5,_0xaf528c){_0x3565f5=_0x3565f5-0x0;let _0x10a6c2=a50_0xaf52[_0x3565f5];return _0x10a6c2;};const _0x2129d4=a50_0x10a6;'use strict';const Sequelize=require(_0x2129d4('0x2'));module['exports']={'calldate':{'type':Sequelize[_0x2129d4('0x3')],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':Sequelize['STRING']},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize['STRING']},'dcontext':{'type':Sequelize[_0x2129d4('0x1')]},'channel':{'type':Sequelize['STRING']},'dstchannel':{'type':Sequelize[_0x2129d4('0x1')]},'lastapp':{'type':Sequelize[_0x2129d4('0x1')]},'lastdata':{'type':Sequelize[_0x2129d4('0x1')]},'duration':{'type':Sequelize[_0x2129d4('0x0')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0x2129d4('0x0')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x2129d4('0x1')]},'amaflags':{'type':Sequelize[_0x2129d4('0x0')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize['STRING']},'userfield':{'type':Sequelize[_0x2129d4('0x1')]},'uniqueid':{'type':Sequelize[_0x2129d4('0x1')]},'linkedid':{'type':Sequelize[_0x2129d4('0x1')]},'sequence':{'type':Sequelize[_0x2129d4('0x1')]},'peeraccount':{'type':Sequelize[_0x2129d4('0x1')]},'type':{'type':Sequelize[_0x2129d4('0x1')]},'tag':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index 99d33dc..a37b864 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a51_0x5a78=['fieldName','name','sequelize','stack','limit','set','filter','model','status','type','rawAttributes','offset','findAll','options','pick','params','intersection','findOne','undefined','where','nolimit','body','like','include','Cdr','sort','update','error','send','key','merge','../../config/logger','api','rows','catch','index','then','map','fields','query','../../components/parsers/qs','keys','attributes','describe','count','length','lodash','create','filters'];(function(_0x1579f8,_0x5a78d7){const _0x7bf54b=function(_0x4c1262){while(--_0x4c1262){_0x1579f8['push'](_0x1579f8['shift']());}};_0x7bf54b(++_0x5a78d7);}(a51_0x5a78,0xde));const a51_0x7bf5=function(_0x1579f8,_0x5a78d7){_0x1579f8=_0x1579f8-0x0;let _0x7bf54b=a51_0x5a78[_0x1579f8];return _0x7bf54b;};const _0x113146=a51_0x7bf5;'use strict';const _=require(_0x113146('0x14')),qs=require(_0x113146('0xe')),logger=require(_0x113146('0x5'))(_0x113146('0x6')),db=require('../../mysqldb')['db'],{Op}=require(_0x113146('0x19'));function respondWithResult(_0x4c1262,_0x301ab9){return _0x301ab9=_0x301ab9||0xc8,function(_0x33f1c0){const _0x4f538a=a51_0x7bf5;if(_0x33f1c0)return _0x4c1262[_0x4f538a('0x1f')](_0x301ab9)['json'](_0x33f1c0);};}function respondWithFilteredResult(_0x3b3039,_0x1ff838){return function(_0x3dfa34){const _0x3282e8=a51_0x7bf5;if(_0x3dfa34){const _0xd6658d=_0x3dfa34['count'],_0x21aeb1=_0x1ff838[_0x3282e8('0x22')];let _0x27bb8a=_0x1ff838[_0x3282e8('0x22')]+_0x1ff838['limit'],_0x12e9b1;return _0x27bb8a>=_0xd6658d?(_0x27bb8a=_0xd6658d,_0x12e9b1=0xc8):_0x12e9b1=0xce,_0x3b3039[_0x3282e8('0x1f')](_0x12e9b1),_0x3b3039[_0x3282e8('0x1c')]('Content-Range',_0x21aeb1+'-'+_0x27bb8a+'/'+_0xd6658d)['json'](_0x3dfa34);}return null;};}function saveUpdates(_0x54e055){return function(_0x2e42dd){const _0x4adbe0=a51_0x7bf5;if(_0x2e42dd)return _0x2e42dd[_0x4adbe0('0x0')](_0x54e055)[_0x4adbe0('0xa')](function(_0x5c558f){return _0x5c558f;});return null;};}function removeEntity(_0x47d708){return function(_0x33e067){const _0x3f47e3=a51_0x7bf5;if(_0x33e067)return _0x33e067['destroy']()[_0x3f47e3('0xa')](function(){_0x47d708['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3917f6){return function(_0x18176a){return!_0x18176a&&_0x3917f6['sendStatus'](0x194),_0x18176a;};}function handleError(_0x49fcac,_0x514ee7){return _0x514ee7=_0x514ee7||0x1f4,function(_0x5cb3c1){const _0x4e4cdd=a51_0x7bf5;logger[_0x4e4cdd('0x1')](_0x5cb3c1[_0x4e4cdd('0x1a')]),_0x5cb3c1[_0x4e4cdd('0x18')]&&delete _0x5cb3c1['name'],_0x49fcac[_0x4e4cdd('0x1f')](_0x514ee7)[_0x4e4cdd('0x2')](_0x5cb3c1);};}exports[_0x113146('0x9')]=function(_0x2f9dee,_0x47853a){const _0x220cae=_0x113146;let _0x340bfa={};const _0x2ae18a={},_0x5c5094={'count':0x0,'rows':[]},_0x2d3dbf=_['map'](db[_0x220cae('0x2f')][_0x220cae('0x21')],function(_0x2a39d5){const _0x20dcbf=_0x220cae;return{'name':_0x2a39d5[_0x20dcbf('0x17')],'type':_0x2a39d5[_0x20dcbf('0x20')][_0x20dcbf('0x3')]};});_0x2ae18a['model']=_[_0x220cae('0xb')](_0x2d3dbf,_0x220cae('0x18')),_0x2ae18a['query']=_[_0x220cae('0xf')](_0x2f9dee[_0x220cae('0xd')]),_0x2ae18a[_0x220cae('0x16')]=_['intersection'](_0x2ae18a['model'],_0x2ae18a[_0x220cae('0xd')]),_0x340bfa[_0x220cae('0x10')]=_['intersection'](_0x2ae18a[_0x220cae('0x1e')],qs[_0x220cae('0xc')](_0x2f9dee[_0x220cae('0xd')][_0x220cae('0xc')])),_0x340bfa[_0x220cae('0x10')]=_0x340bfa[_0x220cae('0x10')][_0x220cae('0x13')]?_0x340bfa['attributes']:_0x2ae18a[_0x220cae('0x1e')];typeof _0x2f9dee['query'][_0x220cae('0x2b')]===_0x220cae('0x29')&&(_0x340bfa[_0x220cae('0x1b')]=qs['limit'](_0x2f9dee[_0x220cae('0xd')][_0x220cae('0x1b')]),_0x340bfa[_0x220cae('0x22')]=qs[_0x220cae('0x22')](_0x2f9dee[_0x220cae('0xd')][_0x220cae('0x22')]));_0x340bfa['order']=qs[_0x220cae('0x30')](_0x2f9dee[_0x220cae('0xd')][_0x220cae('0x30')]),_0x340bfa[_0x220cae('0x2a')]=qs[_0x220cae('0x16')](_[_0x220cae('0x25')](_0x2f9dee[_0x220cae('0xd')],_0x2ae18a[_0x220cae('0x16')]),_0x2d3dbf);_0x2f9dee[_0x220cae('0xd')][_0x220cae('0x1d')]&&(_0x340bfa[_0x220cae('0x2a')]=_[_0x220cae('0x4')](_0x340bfa[_0x220cae('0x2a')],{[Op['or']]:_['map'](_0x2d3dbf,function(_0x4b6c6e){const _0x530347=_0x220cae;if(_0x4b6c6e[_0x530347('0x20')]!=='VIRTUAL'){const _0x268dbc={};return _0x268dbc[_0x4b6c6e[_0x530347('0x18')]]={[Op[_0x530347('0x2d')]]:'%'+_0x2f9dee[_0x530347('0xd')][_0x530347('0x1d')]+'%'},_0x268dbc;}})}));_0x340bfa=_[_0x220cae('0x4')]({},_0x340bfa,_0x2f9dee['options']);const _0x4259ef={'where':_0x340bfa[_0x220cae('0x2a')]};return db[_0x220cae('0x2f')][_0x220cae('0x12')](_0x4259ef)['then'](function(_0x1269d8){const _0x5b0a42=_0x220cae;return _0x5c5094[_0x5b0a42('0x12')]=_0x1269d8,_0x2f9dee[_0x5b0a42('0xd')]['includeAll']&&(_0x340bfa[_0x5b0a42('0x2e')]=[{'all':!![]}]),db[_0x5b0a42('0x2f')][_0x5b0a42('0x23')](_0x340bfa);})['then'](function(_0x5b7fc4){const _0x1f7c57=_0x220cae;return _0x5c5094[_0x1f7c57('0x7')]=_0x5b7fc4,_0x5c5094;})[_0x220cae('0xa')](respondWithFilteredResult(_0x47853a,_0x340bfa))[_0x220cae('0x8')](handleError(_0x47853a,null));},exports['show']=function(_0x2e2446,_0x3573ba){const _0xaa2b2b=_0x113146;let _0x18445e={'raw':!![],'where':{'id':_0x2e2446[_0xaa2b2b('0x26')]['id']}};const _0x1d04a1={};return _0x1d04a1['model']=_['keys'](db['Cdr'][_0xaa2b2b('0x21')]),_0x1d04a1[_0xaa2b2b('0xd')]=_[_0xaa2b2b('0xf')](_0x2e2446['query']),_0x1d04a1[_0xaa2b2b('0x16')]=_[_0xaa2b2b('0x27')](_0x1d04a1[_0xaa2b2b('0x1e')],_0x1d04a1['query']),_0x18445e[_0xaa2b2b('0x10')]=_['intersection'](_0x1d04a1[_0xaa2b2b('0x1e')],qs['fields'](_0x2e2446[_0xaa2b2b('0xd')][_0xaa2b2b('0xc')])),_0x18445e[_0xaa2b2b('0x10')]=_0x18445e[_0xaa2b2b('0x10')]['length']?_0x18445e[_0xaa2b2b('0x10')]:_0x1d04a1[_0xaa2b2b('0x1e')],_0x2e2446['query']['includeAll']&&(_0x18445e['include']=[{'all':!![]}]),_0x18445e=_[_0xaa2b2b('0x4')]({},_0x18445e,_0x2e2446[_0xaa2b2b('0x24')]),db['Cdr'][_0xaa2b2b('0x28')](_0x18445e)[_0xaa2b2b('0xa')](handleEntityNotFound(_0x3573ba,null))[_0xaa2b2b('0xa')](respondWithResult(_0x3573ba,null))[_0xaa2b2b('0x8')](handleError(_0x3573ba,null));},exports['create']=function(_0x56145,_0xfd68dd){const _0x48090b=_0x113146;return db[_0x48090b('0x2f')][_0x48090b('0x15')](_0x56145['body'],{})[_0x48090b('0xa')](respondWithResult(_0xfd68dd,0xc9))[_0x48090b('0x8')](handleError(_0xfd68dd,null));},exports[_0x113146('0x0')]=function(_0x3d92dd,_0x4287e7){const _0x8e82db=_0x113146;return _0x3d92dd[_0x8e82db('0x2c')]['id']&&delete _0x3d92dd[_0x8e82db('0x2c')]['id'],db['Cdr']['findOne']({'where':{'id':_0x3d92dd[_0x8e82db('0x26')]['id']}})[_0x8e82db('0xa')](handleEntityNotFound(_0x4287e7,null))[_0x8e82db('0xa')](saveUpdates(_0x3d92dd['body'],null))[_0x8e82db('0xa')](respondWithResult(_0x4287e7,null))[_0x8e82db('0x8')](handleError(_0x4287e7,null));},exports['destroy']=function(_0x27e4f9,_0x16a540){const _0x41f304=_0x113146;return db[_0x41f304('0x2f')]['findOne']({'where':{'id':_0x27e4f9['params']['id']}})['then'](handleEntityNotFound(_0x16a540,null))[_0x41f304('0xa')](removeEntity(_0x16a540,null))[_0x41f304('0x8')](handleError(_0x16a540,null));},exports[_0x113146('0x11')]=function(_0x44dd06,_0x18aa53){const _0x5b0599=_0x113146;return db['Cdr']['describe']()[_0x5b0599('0xa')](respondWithResult(_0x18aa53,null))[_0x5b0599('0x8')](handleError(_0x18aa53,null));}; \ No newline at end of file +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 diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index 252e7a2..087d771 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a52_0x10d7=['dst','define','exports','src','disposition','./cdr.attributes','cdr','calldate','accountcode','uniqueid'];(function(_0xf01c49,_0x10d78e){const _0x86133f=function(_0x1565a6){while(--_0x1565a6){_0xf01c49['push'](_0xf01c49['shift']());}};_0x86133f(++_0x10d78e);}(a52_0x10d7,0x168));const a52_0x8613=function(_0xf01c49,_0x10d78e){_0xf01c49=_0xf01c49-0x0;let _0x86133f=a52_0x10d7[_0xf01c49];return _0x86133f;};const _0x5b151d=a52_0x8613;'use strict';const attributes=require(_0x5b151d('0x5'));module[_0x5b151d('0x2')]=function(_0x1565a6){const _0x394e08=_0x5b151d,_0x23b704=_0x1565a6[_0x394e08('0x1')]('Cdr',attributes,{'tableName':_0x394e08('0x6'),'paranoid':![],'indexes':[{'name':_0x394e08('0x8'),'fields':[_0x394e08('0x8')]},{'name':_0x394e08('0x7'),'fields':['calldate']},{'name':'disposition','fields':[_0x394e08('0x4')]},{'name':_0x394e08('0x0'),'fields':[_0x394e08('0x0')]},{'name':'src','fields':[_0x394e08('0x3')]},{'name':_0x394e08('0x9'),'fields':['uniqueid']}],'timestamps':![]});return _0x23b704;}; \ No newline at end of file +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 diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index 55aa3f9..0c51b92 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a53_0xa891=['put','update','delete','Router','get','express','/:id','/describe','exports','index','../../components/auth/service','destroy','post','isAuthenticated','./cdr.controller'];(function(_0x54f412,_0xa8915c){const _0xdcdec8=function(_0x45f177){while(--_0x45f177){_0x54f412['push'](_0x54f412['shift']());}};_0xdcdec8(++_0xa8915c);}(a53_0xa891,0x8b));const a53_0xdcde=function(_0x54f412,_0xa8915c){_0x54f412=_0x54f412-0x0;let _0xdcdec8=a53_0xa891[_0x54f412];return _0xdcdec8;};const _0x1a0356=a53_0xdcde;'use strict';const express=require(_0x1a0356('0x1')),router=express[_0x1a0356('0xe')](),auth=require(_0x1a0356('0x6')),controller=require(_0x1a0356('0xa'));router[_0x1a0356('0x0')]('/',auth[_0x1a0356('0x9')](),controller[_0x1a0356('0x5')]),router['get'](_0x1a0356('0x3'),auth[_0x1a0356('0x9')](),controller['describe']),router['get']('/:id',auth[_0x1a0356('0x9')](),controller['show']),router[_0x1a0356('0x8')]('/',auth[_0x1a0356('0x9')](),controller['create']),router[_0x1a0356('0xb')]('/:id',auth[_0x1a0356('0x9')](),controller[_0x1a0356('0xc')]),router[_0x1a0356('0xd')](_0x1a0356('0x2'),auth[_0x1a0356('0x9')](),controller[_0x1a0356('0x7')]),module[_0x1a0356('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index 9cdda4d..447a67c 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a54_0x1855=['INTEGER','exports','noop','sequelize','STRING'];(function(_0x38c298,_0x185533){const _0x765b4d=function(_0x1d2d80){while(--_0x1d2d80){_0x38c298['push'](_0x38c298['shift']());}};_0x765b4d(++_0x185533);}(a54_0x1855,0xa9));const a54_0x765b=function(_0x38c298,_0x185533){_0x38c298=_0x38c298-0x0;let _0x765b4d=a54_0x1855[_0x38c298];return _0x765b4d;};const _0x2506d1=a54_0x765b;'use strict';const Sequelize=require(_0x2506d1('0x4'));module[_0x2506d1('0x2')]={'priority':{'type':Sequelize[_0x2506d1('0x1')],'allowNull':![]},'app':{'type':Sequelize[_0x2506d1('0x0')],'allowNull':![],'defaultValue':_0x2506d1('0x3')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x2506d1('0x0')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js index 3e583f7..335ce9a 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a55_0x3340=['name','params','filters','stack','ChatApplication','catch','attributes','merge','lodash','../../config/logger','intersection','../../mysqldb','findOne','send','show','fields','api','../../components/parsers/qs','model','update','keys','destroy','sendStatus','then','status','include','query','length','body'];(function(_0x2cfae1,_0x33401f){const _0x71f40e=function(_0x25613e){while(--_0x25613e){_0x2cfae1['push'](_0x2cfae1['shift']());}};_0x71f40e(++_0x33401f);}(a55_0x3340,0x87));const a55_0x71f4=function(_0x2cfae1,_0x33401f){_0x2cfae1=_0x2cfae1-0x0;let _0x71f40e=a55_0x3340[_0x2cfae1];return _0x71f40e;};const _0xb820e5=a55_0x71f4;'use strict';const _=require(_0xb820e5('0x12')),qs=require(_0xb820e5('0x1b')),logger=require(_0xb820e5('0x13'))(_0xb820e5('0x1a')),db=require(_0xb820e5('0x15'))['db'];function respondWithResult(_0x25613e,_0x467485){return _0x467485=_0x467485||0xc8,function(_0x2ba46e){const _0x48908c=a55_0x71f4;if(_0x2ba46e)return _0x25613e[_0x48908c('0x5')](_0x467485)['json'](_0x2ba46e);};}function saveUpdates(_0x12d5a3){return function(_0x5ca8f6){const _0x26047a=a55_0x71f4;if(_0x5ca8f6)return _0x5ca8f6[_0x26047a('0x0')](_0x12d5a3)['then'](function(_0x5519ab){return _0x5519ab;});return null;};}function removeEntity(_0x387839){return function(_0x158101){const _0x5c3a96=a55_0x71f4;if(_0x158101)return _0x158101['destroy']()[_0x5c3a96('0x4')](function(){const _0x37f6a2=_0x5c3a96;_0x387839[_0x37f6a2('0x5')](0xcc)['end']();});};}function handleEntityNotFound(_0x5407e5){return function(_0x40faf7){const _0xecac8e=a55_0x71f4;return!_0x40faf7&&_0x5407e5[_0xecac8e('0x3')](0x194),_0x40faf7;};}function handleError(_0x4442fc,_0x31b9cc){return _0x31b9cc=_0x31b9cc||0x1f4,function(_0x5c4e71){const _0x235cbd=a55_0x71f4;logger['error'](_0x5c4e71[_0x235cbd('0xd')]),_0x5c4e71[_0x235cbd('0xa')]&&delete _0x5c4e71[_0x235cbd('0xa')],_0x4442fc[_0x235cbd('0x5')](_0x31b9cc)[_0x235cbd('0x17')](_0x5c4e71);};}exports[_0xb820e5('0x18')]=function(_0x657e1b,_0x3bddc8){const _0x315440=_0xb820e5;let _0x488e6a={'raw':!![],'where':{'id':_0x657e1b[_0x315440('0xb')]['id']}};const _0x55cca1={};return _0x55cca1[_0x315440('0x1c')]=_[_0x315440('0x1')](db[_0x315440('0xe')]['rawAttributes']),_0x55cca1[_0x315440('0x7')]=_[_0x315440('0x1')](_0x657e1b[_0x315440('0x7')]),_0x55cca1[_0x315440('0xc')]=_[_0x315440('0x14')](_0x55cca1['model'],_0x55cca1['query']),_0x488e6a[_0x315440('0x10')]=_[_0x315440('0x14')](_0x55cca1['model'],qs[_0x315440('0x19')](_0x657e1b[_0x315440('0x7')][_0x315440('0x19')])),_0x488e6a[_0x315440('0x10')]=_0x488e6a['attributes'][_0x315440('0x8')]?_0x488e6a[_0x315440('0x10')]:_0x55cca1[_0x315440('0x1c')],_0x657e1b[_0x315440('0x7')]['includeAll']&&(_0x488e6a[_0x315440('0x6')]=[{'all':!![]}]),_0x488e6a=_[_0x315440('0x11')]({},_0x488e6a,_0x657e1b['options']),db[_0x315440('0xe')]['findOne'](_0x488e6a)[_0x315440('0x4')](handleEntityNotFound(_0x3bddc8,null))['then'](respondWithResult(_0x3bddc8,null))[_0x315440('0xf')](handleError(_0x3bddc8,null));},exports[_0xb820e5('0x0')]=function(_0x44e3c3,_0x25f39f){const _0x2b6d4d=_0xb820e5;return _0x44e3c3[_0x2b6d4d('0x9')]['id']&&delete _0x44e3c3['body']['id'],db[_0x2b6d4d('0xe')][_0x2b6d4d('0x16')]({'where':{'id':_0x44e3c3['params']['id']}})['then'](handleEntityNotFound(_0x25f39f,null))[_0x2b6d4d('0x4')](saveUpdates(_0x44e3c3[_0x2b6d4d('0x9')],null))[_0x2b6d4d('0x4')](respondWithResult(_0x25f39f,null))[_0x2b6d4d('0xf')](handleError(_0x25f39f,null));},exports[_0xb820e5('0x2')]=function(_0x2920ff,_0x37488d){const _0x52a04e=_0xb820e5;return db['ChatApplication'][_0x52a04e('0x16')]({'where':{'id':_0x2920ff[_0x52a04e('0xb')]['id']}})['then'](handleEntityNotFound(_0x37488d,null))[_0x52a04e('0x4')](removeEntity(_0x37488d,null))['catch'](handleError(_0x37488d,null));}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index e1f3801..1a75f21 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a56_0x2e5e=['ChatApplication','exports','./chatApplication.attributes','utf8mb4','chat_applications'];(function(_0x3ff5c0,_0x2e5ed0){const _0xdcec48=function(_0x3b7ac9){while(--_0x3b7ac9){_0x3ff5c0['push'](_0x3ff5c0['shift']());}};_0xdcec48(++_0x2e5ed0);}(a56_0x2e5e,0x17f));const a56_0xdcec=function(_0x3ff5c0,_0x2e5ed0){_0x3ff5c0=_0x3ff5c0-0x0;let _0xdcec48=a56_0x2e5e[_0x3ff5c0];return _0xdcec48;};const _0xaec5aa=a56_0xdcec;'use strict';const attributes=require(_0xaec5aa('0x4'));module[_0xaec5aa('0x3')]=function(_0x3b7ac9){const _0xf1de1c=_0xaec5aa,_0x3cb1f6=_0x3b7ac9['define'](_0xf1de1c('0x2'),attributes,{'tableName':_0xf1de1c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf1de1c('0x0'),'collate':'utf8mb4_unicode_ci'});return _0x3cb1f6;}; \ No newline at end of file +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 diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index e9db101..0ccff21 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a57_0x2886=['show','/:id','get','isAuthenticated','../../components/auth/service','express','destroy'];(function(_0x31927b,_0x288662){const _0x1bf636=function(_0x3755e4){while(--_0x3755e4){_0x31927b['push'](_0x31927b['shift']());}};_0x1bf636(++_0x288662);}(a57_0x2886,0x1b3));const a57_0x1bf6=function(_0x31927b,_0x288662){_0x31927b=_0x31927b-0x0;let _0x1bf636=a57_0x2886[_0x31927b];return _0x1bf636;};const _0x1c123e=a57_0x1bf6;'use strict';const express=require(_0x1c123e('0x4')),router=express['Router'](),auth=require(_0x1c123e('0x3')),controller=require('./chatApplication.controller');router[_0x1c123e('0x1')](_0x1c123e('0x0'),auth[_0x1c123e('0x2')](),controller[_0x1c123e('0x6')]),router['put']('/:id',auth[_0x1c123e('0x2')](),controller['update']),router['delete'](_0x1c123e('0x0'),auth['isAuthenticated'](),controller[_0x1c123e('0x5')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js index 494a24e..e6afae7 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a58_0x240d=['BOOLEAN','STRING','sequelize','exports'];(function(_0x393525,_0x240d5e){const _0xc5edd0=function(_0x651e9d){while(--_0x651e9d){_0x393525['push'](_0x393525['shift']());}};_0xc5edd0(++_0x240d5e);}(a58_0x240d,0x17d));const a58_0xc5ed=function(_0x393525,_0x240d5e){_0x393525=_0x393525-0x0;let _0xc5edd0=a58_0x240d[_0x393525];return _0xc5edd0;};const _0x4b33e=a58_0xc5ed;'use strict';const Sequelize=require(_0x4b33e('0x1'));module[_0x4b33e('0x2')]={'name':{'type':Sequelize[_0x4b33e('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x4b33e('0x0')]},'write':{'type':Sequelize[_0x4b33e('0x3')],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js index 6c91299..232dadc 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a59_0x36f5=['rows','format','offset','$gte','type','map','body','api','like','getUnread','lodash','undefined','model','attributes','ChatGroup','describe','options','sequelize','length','where','catch','then','rawAttributes','ChatInternalMessage','pick','error','key','show','user','../../mysqldb','findAll','filters','merge','getMessages','addMembers','../../components/parsers/qs','findOne','stack','include','VIRTUAL','query','params','moment','send','destroy','order','getMembers','keys','sendStatus','removeMembers','status','User','../../rediscache','limit','ids','index','update','sort','intersection','gte','includeAll','create','filter','split','Content-Range','../../config/logger','fieldName','name','end','count','fields'];(function(_0xb35e84,_0x36f5b8){const _0x2eedb7=function(_0x271199){while(--_0x271199){_0xb35e84['push'](_0xb35e84['shift']());}};_0x2eedb7(++_0x36f5b8);}(a59_0x36f5,0x181));const a59_0x2eed=function(_0xb35e84,_0x36f5b8){_0xb35e84=_0xb35e84-0x0;let _0x2eedb7=a59_0x36f5[_0xb35e84];return _0x2eedb7;};const _0x49075d=a59_0x2eed;'use strict';const moment=require(_0x49075d('0xc')),_=require(_0x49075d('0x33')),{getSocket}=require(_0x49075d('0x16')),qs=require(_0x49075d('0x5')),logger=require(_0x49075d('0x23'))(_0x49075d('0x30')),db=require(_0x49075d('0x46'))['db'],{Op}=require(_0x49075d('0x3a')),socket=getSocket();require('./chatGroup.socket')['register'](socket);function respondWithStatusCode(_0x271199,_0x36a584){return _0x36a584=_0x36a584||0xcc,function(_0x192ab2){const _0x4dfe45=a59_0x2eed;if(_0x192ab2)return _0x271199[_0x4dfe45('0x12')](_0x36a584);return _0x271199['status'](_0x36a584)[_0x4dfe45('0x26')]();};}function respondWithResult(_0x50b583,_0x458e93){return _0x458e93=_0x458e93||0xc8,function(_0x10132d){if(_0x10132d)return _0x50b583['status'](_0x458e93)['json'](_0x10132d);};}function respondWithFilteredResult(_0x5bcaf0,_0x50163b){return function(_0xfea1df){const _0x51de24=a59_0x2eed;if(_0xfea1df){const _0x3bf1ad=_0xfea1df[_0x51de24('0x27')],_0x6c4cf6=_0x50163b[_0x51de24('0x2b')];let _0x8ceaa0=_0x50163b[_0x51de24('0x2b')]+_0x50163b[_0x51de24('0x17')],_0x3ff4d5;return _0x8ceaa0>=_0x3bf1ad?(_0x8ceaa0=_0x3bf1ad,_0x3ff4d5=0xc8):_0x3ff4d5=0xce,_0x5bcaf0[_0x51de24('0x14')](_0x3ff4d5),_0x5bcaf0['set'](_0x51de24('0x22'),_0x6c4cf6+'-'+_0x8ceaa0+'/'+_0x3bf1ad)['json'](_0xfea1df);}return null;};}function saveUpdates(_0x24b909){return function(_0x5444e1){const _0x46f716=a59_0x2eed;if(_0x5444e1)return _0x5444e1[_0x46f716('0x1a')](_0x24b909)['then'](function(_0xa2001e){return _0xa2001e;});return null;};}function removeEntity(_0x5e99f5){return function(_0xd318f7){const _0x1b6f14=a59_0x2eed;if(_0xd318f7)return _0xd318f7[_0x1b6f14('0xe')]()[_0x1b6f14('0x3e')](function(){const _0x5e2fe4=_0x1b6f14;_0x5e99f5[_0x5e2fe4('0x14')](0xcc)[_0x5e2fe4('0x26')]();});};}function handleEntityNotFound(_0x2f7fec){return function(_0x594305){const _0x5dd2d7=a59_0x2eed;return!_0x594305&&_0x2f7fec[_0x5dd2d7('0x12')](0x194),_0x594305;};}function handleError(_0xf3f4ba,_0x54a685){return _0x54a685=_0x54a685||0x1f4,function(_0x55e43f){const _0x1d67ea=a59_0x2eed;logger[_0x1d67ea('0x42')](_0x55e43f[_0x1d67ea('0x7')]),_0x55e43f[_0x1d67ea('0x25')]&&delete _0x55e43f[_0x1d67ea('0x25')],_0xf3f4ba['status'](_0x54a685)[_0x1d67ea('0xd')](_0x55e43f);};}exports[_0x49075d('0x19')]=function(_0x761660,_0x59bf93){const _0x178717=_0x49075d;let _0x311389={};const _0x39293b={},_0x5e2686={'count':0x0,'rows':[]},_0x63d704=_[_0x178717('0x2e')](db[_0x178717('0x37')][_0x178717('0x3f')],function(_0x2f40d8){const _0x83b1b6=_0x178717;return{'name':_0x2f40d8[_0x83b1b6('0x24')],'type':_0x2f40d8[_0x83b1b6('0x2d')][_0x83b1b6('0x43')]};});_0x39293b['model']=_[_0x178717('0x2e')](_0x63d704,'name'),_0x39293b[_0x178717('0xa')]=_[_0x178717('0x11')](_0x761660['query']),_0x39293b['filters']=_[_0x178717('0x1c')](_0x39293b[_0x178717('0x35')],_0x39293b[_0x178717('0xa')]),_0x311389[_0x178717('0x36')]=_[_0x178717('0x1c')](_0x39293b[_0x178717('0x35')],qs[_0x178717('0x28')](_0x761660[_0x178717('0xa')][_0x178717('0x28')])),_0x311389['attributes']=_0x311389[_0x178717('0x36')]['length']?_0x311389['attributes']:_0x39293b[_0x178717('0x35')];typeof _0x761660[_0x178717('0xa')]['nolimit']===_0x178717('0x34')&&(_0x311389[_0x178717('0x17')]=qs[_0x178717('0x17')](_0x761660['query'][_0x178717('0x17')]),_0x311389[_0x178717('0x2b')]=qs['offset'](_0x761660[_0x178717('0xa')][_0x178717('0x2b')]));_0x311389[_0x178717('0xf')]=qs[_0x178717('0x1b')](_0x761660[_0x178717('0xa')][_0x178717('0x1b')]),_0x311389[_0x178717('0x3c')]=qs[_0x178717('0x1')](_[_0x178717('0x41')](_0x761660[_0x178717('0xa')],_0x39293b[_0x178717('0x1')]),_0x63d704);_0x761660[_0x178717('0xa')][_0x178717('0x20')]&&(_0x311389[_0x178717('0x3c')]=_['merge'](_0x311389[_0x178717('0x3c')],{[Op['or']]:_[_0x178717('0x2e')](_0x63d704,function(_0x5c323c){const _0x3d1d0a=_0x178717;if(_0x5c323c[_0x3d1d0a('0x2d')]!==_0x3d1d0a('0x9')){const _0x3e9b82={};return _0x3e9b82[_0x5c323c[_0x3d1d0a('0x25')]]={[Op[_0x3d1d0a('0x31')]]:'%'+_0x761660[_0x3d1d0a('0xa')][_0x3d1d0a('0x20')]+'%'},_0x3e9b82;}})}));_0x311389=_[_0x178717('0x2')]({},_0x311389,_0x761660[_0x178717('0x39')]);const _0x4a5c49={'where':_0x311389['where']};return db[_0x178717('0x37')][_0x178717('0x27')](_0x4a5c49)[_0x178717('0x3e')](function(_0x35cefb){const _0x3e12e1=_0x178717;return _0x5e2686[_0x3e12e1('0x27')]=_0x35cefb,_0x761660[_0x3e12e1('0xa')][_0x3e12e1('0x1e')]&&(_0x311389[_0x3e12e1('0x8')]=[{'all':!![]}]),db['ChatGroup'][_0x3e12e1('0x0')](_0x311389);})[_0x178717('0x3e')](function(_0x2fd924){const _0x7e20dc=_0x178717;return _0x5e2686[_0x7e20dc('0x29')]=_0x2fd924,_0x5e2686;})[_0x178717('0x3e')](respondWithFilteredResult(_0x59bf93,_0x311389))['catch'](handleError(_0x59bf93,null));},exports[_0x49075d('0x44')]=function(_0x14a2e7,_0xd79c04){const _0x317c74=_0x49075d;let _0x562008={'raw':!![],'where':{'id':_0x14a2e7[_0x317c74('0xb')]['id']}};const _0x51f82f={};return _0x51f82f[_0x317c74('0x35')]=_[_0x317c74('0x11')](db[_0x317c74('0x37')][_0x317c74('0x3f')]),_0x51f82f[_0x317c74('0xa')]=_[_0x317c74('0x11')](_0x14a2e7[_0x317c74('0xa')]),_0x51f82f[_0x317c74('0x1')]=_['intersection'](_0x51f82f[_0x317c74('0x35')],_0x51f82f[_0x317c74('0xa')]),_0x562008[_0x317c74('0x36')]=_[_0x317c74('0x1c')](_0x51f82f[_0x317c74('0x35')],qs[_0x317c74('0x28')](_0x14a2e7['query'][_0x317c74('0x28')])),_0x562008[_0x317c74('0x36')]=_0x562008[_0x317c74('0x36')][_0x317c74('0x3b')]?_0x562008['attributes']:_0x51f82f['model'],_0x14a2e7[_0x317c74('0xa')][_0x317c74('0x1e')]&&(_0x562008[_0x317c74('0x8')]=[{'all':!![]}]),_0x562008=_[_0x317c74('0x2')]({},_0x562008,_0x14a2e7[_0x317c74('0x39')]),db[_0x317c74('0x37')][_0x317c74('0x6')](_0x562008)[_0x317c74('0x3e')](handleEntityNotFound(_0xd79c04,null))[_0x317c74('0x3e')](respondWithResult(_0xd79c04,null))[_0x317c74('0x3d')](handleError(_0xd79c04,null));},exports[_0x49075d('0x1f')]=function(_0x10cc93,_0x437f13){const _0x39948b=_0x49075d;return db[_0x39948b('0x37')]['create'](_0x10cc93[_0x39948b('0x2f')],{})[_0x39948b('0x3e')](respondWithResult(_0x437f13,0xc9))[_0x39948b('0x3d')](handleError(_0x437f13,null));},exports[_0x49075d('0x1a')]=function(_0x36c236,_0xcc215b){const _0x329b74=_0x49075d;return _0x36c236[_0x329b74('0x2f')]['id']&&delete _0x36c236[_0x329b74('0x2f')]['id'],db['ChatGroup'][_0x329b74('0x6')]({'where':{'id':_0x36c236[_0x329b74('0xb')]['id']}})[_0x329b74('0x3e')](handleEntityNotFound(_0xcc215b,null))[_0x329b74('0x3e')](saveUpdates(_0x36c236[_0x329b74('0x2f')],null))[_0x329b74('0x3e')](respondWithResult(_0xcc215b,null))[_0x329b74('0x3d')](handleError(_0xcc215b,null));},exports[_0x49075d('0xe')]=function(_0x4cacf1,_0x1478fe){const _0x1c485e=_0x49075d;return db[_0x1c485e('0x37')][_0x1c485e('0x6')]({'where':{'id':_0x4cacf1['params']['id']}})[_0x1c485e('0x3e')](handleEntityNotFound(_0x1478fe,null))[_0x1c485e('0x3e')](removeEntity(_0x1478fe,null))[_0x1c485e('0x3d')](handleError(_0x1478fe,null));},exports[_0x49075d('0x38')]=function(_0x53b8ac,_0x14888e){const _0x1ec5fd=_0x49075d;return db['ChatGroup'][_0x1ec5fd('0x38')]()[_0x1ec5fd('0x3e')](respondWithResult(_0x14888e,null))[_0x1ec5fd('0x3d')](handleError(_0x14888e,null));},exports[_0x49075d('0x32')]=function(_0x27f149,_0x181667){const _0x38759d=_0x49075d;return db[_0x38759d('0x40')][_0x38759d('0x27')]({'where':{'ChatGroupId':_0x27f149['params']['id'],'ToId':_0x27f149[_0x38759d('0x45')]['id'],'read':![]}})[_0x38759d('0x3e')](function(_0x2b6509){const _0x13448c=_0x38759d;return{'id':_['toInteger'](_0x27f149[_0x13448c('0xb')]['id']),'count':_0x2b6509};})[_0x38759d('0x3e')](respondWithResult(_0x181667,null))['catch'](handleError(_0x181667,null));},exports[_0x49075d('0x4')]=function(_0x3277c5,_0x1d4f48){const _0x59f68a=_0x49075d;return db[_0x59f68a('0x37')]['findOne']({'where':{'id':_0x3277c5[_0x59f68a('0xb')]['id']}})['then'](function(_0x2cacad){const _0x3a15b3=_0x59f68a;if(_0x2cacad)return _0x2cacad[_0x3a15b3('0x4')](_0x3277c5[_0x3a15b3('0x2f')][_0x3a15b3('0x18')],{'through':_['omit'](_0x3277c5[_0x3a15b3('0x2f')],[_0x3a15b3('0x18'),'id'])});})[_0x59f68a('0x3e')](respondWithResult(_0x1d4f48,null))[_0x59f68a('0x3d')](handleError(_0x1d4f48,null));},exports[_0x49075d('0x10')]=function(_0x2677ef,_0x43c442){const _0x48299c=_0x49075d;let _0x126179={};const _0x24a6a8={};let _0x5abe24,_0x301a22;return db[_0x48299c('0x37')]['findOne']({'where':{'id':_0x2677ef[_0x48299c('0xb')]['id']}})[_0x48299c('0x3e')](handleEntityNotFound(_0x43c442,null))[_0x48299c('0x3e')](function(_0x125d0b){const _0x3568b8=_0x48299c;if(_0x125d0b)return _0x5abe24=_0x125d0b,_0x24a6a8[_0x3568b8('0x35')]=_[_0x3568b8('0x11')](db[_0x3568b8('0x15')][_0x3568b8('0x3f')]),_0x24a6a8[_0x3568b8('0xa')]=_[_0x3568b8('0x11')](_0x2677ef[_0x3568b8('0xa')]),_0x24a6a8[_0x3568b8('0x1')]=_[_0x3568b8('0x1c')](_0x24a6a8[_0x3568b8('0x35')],_0x24a6a8['query']),_0x126179[_0x3568b8('0x36')]=_['intersection'](_0x24a6a8[_0x3568b8('0x35')],qs[_0x3568b8('0x28')](_0x2677ef[_0x3568b8('0xa')]['fields'])),_0x126179[_0x3568b8('0x36')]=_0x126179[_0x3568b8('0x36')]['length']?_0x126179[_0x3568b8('0x36')]:_0x24a6a8[_0x3568b8('0x35')],_0x126179['order']=qs[_0x3568b8('0x1b')](_0x2677ef['query'][_0x3568b8('0x1b')]),_0x126179[_0x3568b8('0x3c')]=qs[_0x3568b8('0x1')](_[_0x3568b8('0x41')](_0x2677ef['query'],_0x24a6a8[_0x3568b8('0x1')])),_0x2677ef[_0x3568b8('0xa')][_0x3568b8('0x20')]&&(_0x126179['where']=_['merge'](_0x126179[_0x3568b8('0x3c')],{[Op['or']]:_[_0x3568b8('0x2e')](_0x126179[_0x3568b8('0x36')],function(_0x3b92ce){const _0x5a9b26=_0x3568b8,_0x150596={};return _0x150596[_0x3b92ce]={[Op[_0x5a9b26('0x31')]]:'%'+_0x2677ef[_0x5a9b26('0xa')][_0x5a9b26('0x20')]+'%'},_0x150596;})})),_0x126179=_[_0x3568b8('0x2')]({},_0x126179,_0x2677ef[_0x3568b8('0x39')]),_0x5abe24[_0x3568b8('0x10')](_0x126179);})[_0x48299c('0x3e')](function(_0x3f7a1a){const _0x85201d=_0x48299c;if(_0x3f7a1a)return _0x301a22=_0x3f7a1a[_0x85201d('0x3b')],typeof _0x2677ef[_0x85201d('0xa')]['nolimit']===_0x85201d('0x34')&&(_0x126179['limit']=qs[_0x85201d('0x17')](_0x2677ef[_0x85201d('0xa')][_0x85201d('0x17')]),_0x126179[_0x85201d('0x2b')]=qs['offset'](_0x2677ef['query']['offset'])),_0x5abe24[_0x85201d('0x10')](_0x126179);})['then'](function(_0x4c7d22){if(_0x4c7d22)return _0x4c7d22?{'count':_0x301a22,'rows':_0x4c7d22}:null;})[_0x48299c('0x3e')](respondWithResult(_0x43c442,null))[_0x48299c('0x3d')](handleError(_0x43c442,null));},exports[_0x49075d('0x13')]=function(_0x458ef9,_0x5a238b){const _0x323576=_0x49075d;return db[_0x323576('0x37')][_0x323576('0x6')]({'where':{'id':_0x458ef9[_0x323576('0xb')]['id']}})[_0x323576('0x3e')](handleEntityNotFound(_0x5a238b,null))[_0x323576('0x3e')](function(_0x13fc80){const _0x17e189=_0x323576;if(_0x13fc80)return _0x13fc80[_0x17e189('0x13')](_0x458ef9['query'][_0x17e189('0x18')]);})['then'](respondWithStatusCode(_0x5a238b,null))[_0x323576('0x3d')](handleError(_0x5a238b,null));},exports['addMessage']=function(_0x30d703,_0x15eb31){const _0x386ef6=_0x49075d;return _0x30d703['body']['id']&&delete _0x30d703['body']['id'],db[_0x386ef6('0x37')][_0x386ef6('0x6')]({'where':{'id':_0x30d703[_0x386ef6('0xb')]['id']}})[_0x386ef6('0x3e')](handleEntityNotFound(_0x15eb31,null))[_0x386ef6('0x3e')](function(_0xfd3744){const _0x52b05e=_0x386ef6;if(_0xfd3744)return _0x30d703['body']['ChatGroupId']=_0xfd3744['id'],db[_0x52b05e('0x40')][_0x52b05e('0x1f')](_0x30d703['body']);})[_0x386ef6('0x3e')](respondWithResult(_0x15eb31,null))[_0x386ef6('0x3d')](handleError(_0x15eb31,null));},exports[_0x49075d('0x3')]=function(_0x3d4305,_0x37af96){const _0x4c578e=_0x49075d;let _0x44a4a8={};const _0x4c7dc3={};let _0x316ef5,_0x1020b5;return db[_0x4c578e('0x37')][_0x4c578e('0x6')]({'where':{'id':_0x3d4305[_0x4c578e('0xb')]['id']}})[_0x4c578e('0x3e')](handleEntityNotFound(_0x37af96,null))['then'](function(_0x2eeb2f){const _0x69738c=_0x4c578e;if(_0x2eeb2f){_0x316ef5=_0x2eeb2f,_0x4c7dc3[_0x69738c('0x35')]=_[_0x69738c('0x11')](db[_0x69738c('0x40')]['rawAttributes']),_0x4c7dc3[_0x69738c('0xa')]=_[_0x69738c('0x11')](_0x3d4305['query']),_0x4c7dc3['filters']=_['intersection'](_0x4c7dc3['model'],_0x4c7dc3[_0x69738c('0xa')]),_0x44a4a8[_0x69738c('0x36')]=_[_0x69738c('0x1c')](_0x4c7dc3[_0x69738c('0x35')],qs[_0x69738c('0x28')](_0x3d4305[_0x69738c('0xa')][_0x69738c('0x28')])),_0x44a4a8[_0x69738c('0x36')]=_0x44a4a8['attributes'][_0x69738c('0x3b')]?_0x44a4a8[_0x69738c('0x36')]:_0x4c7dc3[_0x69738c('0x35')],_0x44a4a8['order']=qs[_0x69738c('0x1b')](_0x3d4305[_0x69738c('0xa')][_0x69738c('0x1b')]),_0x44a4a8[_0x69738c('0x3c')]=qs['filters'](_[_0x69738c('0x41')](_0x3d4305[_0x69738c('0xa')],_0x4c7dc3[_0x69738c('0x1')]));_0x3d4305['query'][_0x69738c('0x20')]&&(_0x44a4a8[_0x69738c('0x3c')]=_[_0x69738c('0x2')](_0x44a4a8['where'],{[Op['or']]:_[_0x69738c('0x2e')](_0x44a4a8[_0x69738c('0x36')],function(_0x1c3df5){const _0x3784c9=_0x69738c,_0x46d3f0={};return _0x46d3f0[_0x1c3df5]={[Op[_0x3784c9('0x31')]]:'%'+_0x3d4305[_0x3784c9('0xa')][_0x3784c9('0x20')]+'%'},_0x46d3f0;})}));if(_0x3d4305[_0x69738c('0xa')][_0x69738c('0x2c')]){const _0x39b422=_0x3d4305['query'][_0x69738c('0x2c')][_0x69738c('0x21')](','),_0x403f9d={};_0x403f9d[_0x39b422[0x0]]={[Op[_0x69738c('0x1d')]]:moment(_0x39b422[0x1])[_0x69738c('0x2a')]('YYYY-MM-DD\x20HH:mm:ss')},_0x44a4a8[_0x69738c('0x3c')]=_[_0x69738c('0x2')](_0x44a4a8[_0x69738c('0x3c')],_0x403f9d);}return _0x44a4a8=_[_0x69738c('0x2')]({},_0x44a4a8,_0x3d4305[_0x69738c('0x39')]),_0x316ef5[_0x69738c('0x3')](_0x44a4a8);}})['then'](function(_0x2c9d6a){const _0x31e34f=_0x4c578e;if(_0x2c9d6a)return _0x1020b5=_0x2c9d6a[_0x31e34f('0x3b')],typeof _0x3d4305[_0x31e34f('0xa')]['nolimit']===_0x31e34f('0x34')&&(_0x44a4a8[_0x31e34f('0x17')]=qs['limit'](_0x3d4305[_0x31e34f('0xa')][_0x31e34f('0x17')]),_0x44a4a8[_0x31e34f('0x2b')]=qs[_0x31e34f('0x2b')](_0x3d4305['query'][_0x31e34f('0x2b')])),_0x316ef5[_0x31e34f('0x3')](_0x44a4a8);})['then'](function(_0xc4827b){if(_0xc4827b)return _0xc4827b?{'count':_0x1020b5,'rows':_0xc4827b}:null;})[_0x4c578e('0x3e')](respondWithResult(_0x37af96,null))[_0x4c578e('0x3d')](handleError(_0x37af96,null));}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index 9221cc1..27f756f 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a60_0x1f9e=['setMaxListeners','../../mysqldb','update','emit','addHook','undefined','events','save'];(function(_0x171417,_0x1f9ef0){const _0x3ead22=function(_0x166cc3){while(--_0x166cc3){_0x171417['push'](_0x171417['shift']());}};_0x3ead22(++_0x1f9ef0);}(a60_0x1f9e,0x1e3));const a60_0x3ead=function(_0x171417,_0x1f9ef0){_0x171417=_0x171417-0x0;let _0x3ead22=a60_0x1f9e[_0x171417];return _0x3ead22;};const _0x27c309=a60_0x3ead;'use strict';const EventEmitter=require(_0x27c309('0x3')),ChatGroup=require(_0x27c309('0x6'))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x27c309('0x5')](0x0);const events={'afterCreate':_0x27c309('0x4'),'afterUpdate':_0x27c309('0x7'),'afterDestroy':'remove'};function emitEvent(_0x166cc3){return function(_0x36cc10){const _0x57f8ad=a60_0x3ead;ChatGroupEvents['emit'](_0x166cc3+':'+_0x36cc10['id'],_0x36cc10),ChatGroupEvents[_0x57f8ad('0x0')](_0x166cc3,_0x36cc10);};}for(const e in events){if(typeof events[e]!==_0x27c309('0x2')){const event=events[e];ChatGroup[_0x27c309('0x1')](e,emitEvent(event));}}module['exports']=ChatGroupEvents; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js index a110756..021a45a 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a61_0x5bee=['define','exports'];(function(_0x307bf8,_0x5bee16){const _0x777b5a=function(_0x342f52){while(--_0x342f52){_0x307bf8['push'](_0x307bf8['shift']());}};_0x777b5a(++_0x5bee16);}(a61_0x5bee,0x108));const a61_0x777b=function(_0x307bf8,_0x5bee16){_0x307bf8=_0x307bf8-0x0;let _0x777b5a=a61_0x5bee[_0x307bf8];return _0x777b5a;};const _0x3bdf1f=a61_0x777b;'use strict';const attributes=require('./chatGroup.attributes');module[_0x3bdf1f('0x1')]=function(_0x342f52){const _0x274120=_0x3bdf1f,_0x1bd0e0=_0x342f52[_0x274120('0x0')]('ChatGroup',attributes,{'tableName':'chat_groups','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1bd0e0;}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index 4ea12ce..66c8c9d 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a62_0x4e80=['register','../../rediscache'];(function(_0xa8316b,_0x4e8034){const _0x526372=function(_0x3db0af){while(--_0x3db0af){_0xa8316b['push'](_0xa8316b['shift']());}};_0x526372(++_0x4e8034);}(a62_0x4e80,0x126));const a62_0x5263=function(_0xa8316b,_0x4e8034){_0xa8316b=_0xa8316b-0x0;let _0x526372=a62_0x4e80[_0xa8316b];return _0x526372;};const _0x33aa5a=a62_0x5263;'use strict';const {getSocket}=require(_0x33aa5a('0x1')),socket=getSocket();require('./chatGroup.socket')[_0x33aa5a('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index ad6d727..c5e163b 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a63_0x33fa=['remove','emit','./chatGroup.events','register','chatGroup:'];(function(_0x59a27f,_0x33fa43){const _0xc53b39=function(_0x56dfbc){while(--_0x56dfbc){_0x59a27f['push'](_0x59a27f['shift']());}};_0xc53b39(++_0x33fa43);}(a63_0x33fa,0x1cf));const a63_0xc53b=function(_0x59a27f,_0x33fa43){_0x59a27f=_0x59a27f-0x0;let _0xc53b39=a63_0x33fa[_0x59a27f];return _0xc53b39;};const _0x5e185d=a63_0xc53b;'use strict';const ChatGroupEvents=require(_0x5e185d('0x4')),events=['save',_0x5e185d('0x2'),'update'];function createListener(_0x56dfbc,_0x486882){return function(_0x18017a){const _0x5ce594=a63_0xc53b;_0x486882[_0x5ce594('0x3')](_0x56dfbc,_0x18017a);};}exports[_0x5e185d('0x0')]=function(_0x3de9ca){const _0x1eb0e9=_0x5e185d;for(let _0x3d5e74=0x0,_0x1e1e00=events['length'];_0x3d5e74<_0x1e1e00;_0x3d5e74++){const _0x5b654e=events[_0x3d5e74],_0x2826a4=createListener(_0x1eb0e9('0x1')+_0x5b654e,_0x3de9ca);ChatGroupEvents['on'](_0x5b654e,_0x2826a4);}}; \ No newline at end of file +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 diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index f0363fd..a2b078e 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a64_0x3814=['isAuthenticated','show','/:id','create','express','get','post','update','/:id/unread','getUnread','Router','/:id/members','delete','/:id/messages','index'];(function(_0x3443b2,_0x38142e){const _0x3cdad0=function(_0x368309){while(--_0x368309){_0x3443b2['push'](_0x3443b2['shift']());}};_0x3cdad0(++_0x38142e);}(a64_0x3814,0x195));const a64_0x3cda=function(_0x3443b2,_0x38142e){_0x3443b2=_0x3443b2-0x0;let _0x3cdad0=a64_0x3814[_0x3443b2];return _0x3cdad0;};const _0x53e0c7=a64_0x3cda;'use strict';const express=require(_0x53e0c7('0x4')),router=express[_0x53e0c7('0xa')](),auth=require('../../components/auth/service'),controller=require('./chatGroup.controller');router[_0x53e0c7('0x5')]('/',auth['isAuthenticated'](),controller[_0x53e0c7('0xe')]),router[_0x53e0c7('0x5')]('/describe',auth[_0x53e0c7('0x0')](),controller['describe']),router[_0x53e0c7('0x5')](_0x53e0c7('0x2'),auth[_0x53e0c7('0x0')](),controller[_0x53e0c7('0x1')]),router['get'](_0x53e0c7('0x8'),auth[_0x53e0c7('0x0')](),controller[_0x53e0c7('0x9')]),router[_0x53e0c7('0x5')](_0x53e0c7('0xb'),auth[_0x53e0c7('0x0')](),controller['getMembers']),router['get'](_0x53e0c7('0xd'),auth[_0x53e0c7('0x0')](),controller['getMessages']),router['post']('/',auth[_0x53e0c7('0x0')](),controller[_0x53e0c7('0x3')]),router[_0x53e0c7('0x6')]('/:id/members',auth['isAuthenticated'](),controller['addMembers']),router[_0x53e0c7('0x6')](_0x53e0c7('0xd'),auth['isAuthenticated'](),controller['addMessage']),router['put'](_0x53e0c7('0x2'),auth['isAuthenticated'](),controller[_0x53e0c7('0x7')]),router['delete'](_0x53e0c7('0x2'),auth[_0x53e0c7('0x0')](),controller['destroy']),router[_0x53e0c7('0xc')](_0x53e0c7('0xb'),auth['isAuthenticated'](),controller['removeMembers']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index 10b91cb..996154f 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a65_0x5886=['star','sequelize','thumb','long','INTEGER','exports','TEXT','ENUM','STRING','DATE'];(function(_0x42d549,_0x588673){const _0x72f156=function(_0x392974){while(--_0x392974){_0x42d549['push'](_0x42d549['shift']());}};_0x72f156(++_0x588673);}(a65_0x5886,0x1be));const a65_0x72f1=function(_0x42d549,_0x588673){_0x42d549=_0x42d549-0x0;let _0x72f156=a65_0x5886[_0x42d549];return _0x72f156;};const _0x122f2a=a65_0x72f1;'use strict';const Sequelize=require(_0x122f2a('0x5'));module[_0x122f2a('0x9')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x122f2a('0x8')]},'ratingType':{'type':Sequelize[_0x122f2a('0x1')](_0x122f2a('0x4'),_0x122f2a('0x6')),'defaultValue':'star'},'ratingMessage':{'type':Sequelize[_0x122f2a('0x0')]},'pathTranscript':{'type':Sequelize['TEXT']},'mailTranscript':{'type':Sequelize[_0x122f2a('0x2')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x122f2a('0x3')]},'disposition':{'type':Sequelize[_0x122f2a('0x2')]},'secondDisposition':{'type':Sequelize[_0x122f2a('0x2')]},'thirdDisposition':{'type':Sequelize[_0x122f2a('0x2')]},'note':{'type':Sequelize['STRING']},'browserName':{'type':Sequelize['STRING']},'browserVersion':{'type':Sequelize[_0x122f2a('0x2')]},'osName':{'type':Sequelize[_0x122f2a('0x2')]},'osVersion':{'type':Sequelize[_0x122f2a('0x2')]},'deviceModel':{'type':Sequelize[_0x122f2a('0x2')]},'deviceVendor':{'type':Sequelize[_0x122f2a('0x2')]},'deviceType':{'type':Sequelize['STRING']},'referer':{'type':Sequelize[_0x122f2a('0x0')]},'customerIp':{'type':Sequelize[_0x122f2a('0x2')]},'formData':{'type':Sequelize['TEXT'](_0x122f2a('0x7'))},'read1stAt':{'type':Sequelize['DATE']},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize['ENUM']('in','out'),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize['STRING']},'customerPort':{'type':Sequelize[_0x122f2a('0x2')]},'vidaooSessionId':{'type':Sequelize['TEXT']}}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index 4855141..e1ba2fe 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a66_0x49f3=['intersection','like','follow','Account','transcript-%d-%s.zip','path','having','value','https://api-vidaoo.xcally.com/api/v1/sessions','filters','Contact.firstName','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','c.mobile','N.A.','\x20IS\x20NULL','attributes','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','split','index','map','sqlOperator','./chatInteraction.socket','undefined','rawAttributes','message','a.mandatoryDisposition','isArray','Contact.fax','info','chatInteractionTags:save','c.lastName','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','closedAt','agent_alias','destroy','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','error','t.id\x20IN\x20?','request-promise-native','conditions','key','user','pathTranscript','catch','ChatInteraction,\x20%s,\x20%s','Tag','unix','Account.key','Error\x20in\x20Vidaoo\x20configuration','color','attachments','omit','Owner.fullname','out','name','toFile','files','`unreadMessages`\x20=\x200','code','find','Unable\x20to\x20create\x20Vidaoo\x20session','createVidaooSession','Visitor','a.key','\x0a\x20\x20\x20\x20\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','null','describe','fields','disposition','http','params','ChatMessage','create','send','closed','30px','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','abandonInteraction,\x20%s,\x20%s,\x20%s','then','rows','osName','u.id','GROUP_CONCAT(DISTINCT\x20t.id)','result','i.id','agentIdentifier','err','Contact.mobile','jayson/promise','merge','moment','server/files/chat/upload/','secure','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','System','chat_interactions','getMyMessages','api','text','POST','resolve','../../components/parsers/qs','emit','../../rediscache','u.id\x20=\x20ui.UserId','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','customer','stack','Mail\x20Transcript','json','Account.mandatoryDisposition','pass','select','unlinkSync','push','attachmentDownload','setTags','createdAt','renderFile','request\x20sent','ui.ChatInteractionId','customerPort','compact','keys','ChatInteractionId','getMessages','auth','i.ChatWebsiteId\x20IS\x20NULL','search','journey','YYYY-MM-DD\x20HH:mm:ss','end','options','left_join','now','expr','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','ids','buildExpression','start','ChatWebsiteId','ChatInteraction,\x20%s,\x20%s,\x20%s','`unreadMessages`\x20>\x200','gte','log','limit','all','UserId','DESC','tag','fieldName','../../config/environment','length','`\x20=\x200','Messages','body','nolimit','group','where','fullname','../../components/parsers/advancedSearch','MM/DD/YYYY\x20HH:mm:ss','AbandonInteraction','host','findAll','file','$lte','read','chat_messages','existsSync','appendFileSync','toString','Smtp','getFullTextValue','originalname','mailTranscript','\x27\x27\x27\x27','join','agent_fullname','service','addMessage','%s%d','CmContact','client','isEmpty','Chat','i.ChatWebsiteId\x20IN\x20?','vidaooEscalation','tools_tags','../../config/logger','download','join_url','type','stringify','it.ChatInteractionId\x20=\x20i.id','i.id\x20LIKE\x20?','Users','../../mysqldb','ChatWebsite','alias','`\x20>\x200','i.*','me.ChatInteractionId\x20=\x20i.id','count','c.fax','website_alias','\x22%s\x22\x20<%s>','tmp','operator','abandon','html-pdf','a.id\x20=\x20i.ChatWebsiteId','ContactId','40px','filename','ui.ChatInteractionId\x20IN\x20?','customUpdate','field','users','forEach','format','model','TagIds','parseSearch','keyBy','squel','replace','sendMail','findOne','Tags','filter','register','clone','User','Attachment','Contact.phone','Contact','sendStatus','sequelize','attachId','Unauthorized','lastName','sort','$substring','parse','offset','order','mkdirSync','direction','SendMail','createWriteStream','port','lodash','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','.pdf','10px','include','cm_contacts','referer','Owner.internal','basename','update','chat_interaction_has_tags','from','query','ejs','removeTags','pick','status','YYYY-MM-DD','transcript-','server','close','agentAlias','MailAccount','o.fullname','root','ChatInteraction','Contact.lastName','includeAll','MailServerOut','secret','Owner','views','$gte','unreadMessages'];(function(_0x17f310,_0x49f341){const _0x403cfe=function(_0x478295){while(--_0x478295){_0x17f310['push'](_0x17f310['shift']());}};_0x403cfe(++_0x49f341);}(a66_0x49f3,0x14b));const a66_0x403c=function(_0x17f310,_0x49f341){_0x17f310=_0x17f310-0x0;let _0x403cfe=a66_0x49f3[_0x17f310];return _0x403cfe;};const _0x420e3b=a66_0x403c;'use strict';const pdf=require(_0x420e3b('0xa5')),rimraf=require('rimraf'),zipdir=require('zip-dir'),rp=require(_0x420e3b('0x117')),moment=require(_0x420e3b('0x2d')),util=require('util'),path=require(_0x420e3b('0xf6')),ejs=require(_0x420e3b('0xdc')),fs=require('fs'),_=require(_0x420e3b('0xcf')),squel=require(_0x420e3b('0xb4')),{getSocket}=require(_0x420e3b('0x3a')),qs=require(_0x420e3b('0x38')),as=require(_0x420e3b('0x73')),logger=require(_0x420e3b('0x90'))(_0x420e3b('0x34')),config=require(_0x420e3b('0x6a')),db=require(_0x420e3b('0x98'))['db'],{Op,ValidationError,QueryTypes}=require(_0x420e3b('0xc1')),socket=getSocket();require(_0x420e3b('0x106'))[_0x420e3b('0xba')](socket);const jayson=require(_0x420e3b('0x2b')),client=jayson[_0x420e3b('0x8a')][_0x420e3b('0x18')]({'port':0x232b}),client9004=jayson['client']['http']({'port':0x232c});function respondWithRpcPromise(_0x478295,_0x6be31b,_0x289d58,_0xffe4ba){return new Promise(function(_0x584782,_0x4a51fb){const _0x35360c=a66_0x403c,_0x2a5acf=_0xffe4ba||client;return _0x2a5acf['request'](_0x478295,_0x289d58)[_0x35360c('0x21')](function(_0x567bac){const _0x34c0e5=_0x35360c;logger[_0x34c0e5('0x10d')](_0x34c0e5('0x11d'),_0x6be31b,_0x34c0e5('0x4a')),logger['debug'](_0x34c0e5('0x60'),_0x6be31b,_0x34c0e5('0x4a'),JSON[_0x34c0e5('0x94')](_0x567bac));if(_0x567bac[_0x34c0e5('0x115')]){if(_0x567bac[_0x34c0e5('0x115')][_0x34c0e5('0xd')]===0x1f4)return logger[_0x34c0e5('0x115')](_0x34c0e5('0x11d'),_0x6be31b,_0x567bac[_0x34c0e5('0x115')][_0x34c0e5('0x109')]),_0x4a51fb(_0x567bac[_0x34c0e5('0x115')][_0x34c0e5('0x109')]);return logger[_0x34c0e5('0x115')](_0x34c0e5('0x11d'),_0x6be31b,_0x567bac[_0x34c0e5('0x115')][_0x34c0e5('0x109')]),_0x584782(_0x567bac[_0x34c0e5('0x115')]['message']);}else logger[_0x34c0e5('0x10d')](_0x34c0e5('0x11d'),_0x6be31b,_0x34c0e5('0x4a')),_0x584782(_0x567bac[_0x34c0e5('0x26')][_0x34c0e5('0x109')]);})[_0x35360c('0x11c')](function(_0x1c2520){const _0x47f40d=_0x35360c;logger[_0x47f40d('0x115')]('ChatInteraction,\x20%s,\x20%s',_0x6be31b,_0x1c2520),_0x4a51fb(_0x1c2520);});});}function respondWithStatusCode(_0x489731,_0x2f7588){return _0x2f7588=_0x2f7588||0xcc,function(_0x5d11e0){const _0x59a538=a66_0x403c;if(_0x5d11e0)return _0x489731[_0x59a538('0xc0')](_0x2f7588);return _0x489731[_0x59a538('0xdf')](_0x2f7588)['end']();};}function respondWithResult(_0x15fd0d,_0x4eea7c){return _0x4eea7c=_0x4eea7c||0xc8,function(_0x59da23){const _0x175447=a66_0x403c;if(_0x59da23)return _0x15fd0d[_0x175447('0xdf')](_0x4eea7c)[_0x175447('0x40')](_0x59da23);};}function respondWithFilteredResult(_0x395a8d,_0x4ad0b3){return function(_0x1ba7e2){const _0x3be9b3=a66_0x403c;if(_0x1ba7e2){const _0x48f432=_0x1ba7e2[_0x3be9b3('0x9e')],_0xbcc693=_0x4ad0b3[_0x3be9b3('0xc8')];let _0x39eb8a=_0x4ad0b3[_0x3be9b3('0xc8')]+_0x4ad0b3[_0x3be9b3('0x64')],_0x5acebb;return _0x39eb8a>=_0x48f432?(_0x39eb8a=_0x48f432,_0x5acebb=0xc8):_0x5acebb=0xce,_0x395a8d[_0x3be9b3('0xdf')](_0x5acebb),_0x395a8d['set']('Content-Range',_0xbcc693+'-'+_0x39eb8a+'/'+_0x48f432)[_0x3be9b3('0x40')](_0x1ba7e2);}return null;};}function saveUpdates(_0xf78a89){return function(_0x2088ae){const _0x161eae=a66_0x403c;if(_0x2088ae)return _0x2088ae[_0x161eae('0xd8')](_0xf78a89)[_0x161eae('0x21')](function(_0x241ac2){return _0x241ac2;});return null;};}function removeEntity(_0x1aae32){return function(_0x1ee0a0){const _0x5f8dfe=a66_0x403c;if(_0x1ee0a0)return _0x1ee0a0['destroy']()[_0x5f8dfe('0x21')](function(){const _0x319f8c=_0x5f8dfe;_0x1aae32[_0x319f8c('0xdf')](0xcc)[_0x319f8c('0x56')]();});};}function handleEntityNotFound(_0x182f72){return function(_0x257af9){const _0x226cef=a66_0x403c;return!_0x257af9&&_0x182f72[_0x226cef('0xc0')](0x194),_0x257af9;};}function handleError(_0x3e9263,_0x51e59d){return _0x51e59d=_0x51e59d||0x1f4,function(_0x230100){const _0x4c131e=a66_0x403c;logger[_0x4c131e('0x115')](_0x230100[_0x4c131e('0x3e')]),_0x230100[_0x4c131e('0x9')]&&delete _0x230100[_0x4c131e('0x9')],_0x3e9263['status'](_0x51e59d)[_0x4c131e('0x1c')](_0x230100);};}function getInteractionUsers(_0x4314ef,_0x550e7c){return new Promise(function(_0x11be8a,_0x111562){const _0xd4cbe9=a66_0x403c;try{_0x550e7c[_0x4314ef['id']]&&(_0x4314ef[_0xd4cbe9('0x97')]=_[_0xd4cbe9('0x104')](_0x550e7c[_0x4314ef['id']],function(_0xdfbd14){const _0x252306=_0xd4cbe9;return{'id':_0xdfbd14['id'],'fullname':_0xdfbd14[_0x252306('0x72')]};}));}catch(_0x215b8d){_0x111562(_0x215b8d);}_0x11be8a(_0x4314ef);});}function getInteractionTags(_0x319743,_0x1e834c){return new Promise(function(_0x552ecf,_0x2aa0db){const _0x52400c=a66_0x403c;try{_0x319743[_0x52400c('0xb1')]&&(_0x319743[_0x52400c('0xb8')]=[],_0x319743[_0x52400c('0xb1')][_0x52400c('0x102')](',')[_0x52400c('0xae')](function(_0xad012b){const _0x2c5aba=_0x52400c;_0x319743[_0x2c5aba('0xb8')][_0x2c5aba('0x45')](_0x1e834c[_0xad012b]);})),delete _0x319743['TagIds'];}catch(_0x58bd4c){_0x2aa0db(_0x58bd4c);}_0x552ecf(_0x319743);});}function updateChatInteraction(_0x4f5f9d,_0x316fd3,_0x216cb9){return new Promise(function(_0x1e284d,_0x1fe294){const _0x43e6e1=a66_0x403c;return getInteractionUsers(_0x4f5f9d,_0x216cb9)['then'](function(_0x4e0e40){return getInteractionTags(_0x4e0e40,_0x316fd3);})['then'](function(_0x278711){_0x1e284d(_0x278711);})[_0x43e6e1('0x11c')](function(_0x157c1b){_0x1fe294(_0x157c1b);});});}exports[_0x420e3b('0x103')]=function(_0x3c8709,_0x1a05e5){const _0x38356c=_0x420e3b,_0x22f975={},_0x18dba9={},_0x3b08fc={'count':0x0,'rows':[]},_0x3e70bf=_['map'](db['ChatInteraction'][_0x38356c('0x108')],function(_0x4b09c4){const _0x199440=_0x38356c;return{'name':_0x4b09c4[_0x199440('0x69')],'type':_0x4b09c4['type'][_0x199440('0x119')]};});_0x18dba9[_0x38356c('0xb0')]=_[_0x38356c('0x104')](_0x3e70bf,_0x38356c('0x9')),_0x18dba9['query']=_['keys'](_0x3c8709['query']),_0x18dba9[_0x38356c('0xfa')]=_['intersection'](_0x18dba9[_0x38356c('0xb0')],_0x18dba9[_0x38356c('0xdb')]),_0x22f975[_0x38356c('0x100')]=_[_0x38356c('0xf1')](_0x18dba9[_0x38356c('0xb0')],qs[_0x38356c('0x16')](_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x16')])),_0x22f975[_0x38356c('0x100')]=_0x22f975['attributes']['length']?_0x22f975['attributes']:_0x18dba9[_0x38356c('0xb0')];typeof _0x3c8709[_0x38356c('0xdb')][_0x38356c('0x6f')]===_0x38356c('0x107')&&(_0x22f975[_0x38356c('0x64')]=qs['limit'](_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x64')]),_0x22f975[_0x38356c('0xc8')]=qs[_0x38356c('0xc8')](_0x3c8709[_0x38356c('0xdb')][_0x38356c('0xc8')]));_0x22f975[_0x38356c('0xc9')]=qs[_0x38356c('0xc5')](_0x3c8709[_0x38356c('0xdb')]['sort']),_0x22f975[_0x38356c('0x71')]=qs[_0x38356c('0xfa')](_[_0x38356c('0xde')](_0x3c8709[_0x38356c('0xdb')],_0x18dba9[_0x38356c('0xfa')]),_0x3e70bf);let _0x34897b=[];const _0x2199a4=squel[_0x38356c('0x43')]()[_0x38356c('0xac')]('id')[_0x38356c('0xac')](_0x38356c('0x9'))[_0x38356c('0xac')](_0x38356c('0x4'))[_0x38356c('0xda')](_0x38356c('0x8f')),_0x297dfc=squel[_0x38356c('0x43')]()[_0x38356c('0xac')](_0x38356c('0x24'))['field']('u.fullname')['field'](_0x38356c('0x4b'))[_0x38356c('0xda')]('user_has_chat_interactions','ui')[_0x38356c('0x58')]('users','u',_0x38356c('0x3b')),_0x42240b=squel[_0x38356c('0x43')]()['from'](_0x38356c('0x32'),'i')[_0x38356c('0x58')](_0x38356c('0xd4'),'c',_0x38356c('0x101'))[_0x38356c('0x58')](_0x38356c('0xad'),'o','o.id\x20=\x20i.UserId')['left_join']('chat_websites','a',_0x38356c('0xa6'))['left_join'](_0x38356c('0x7b'),'me',_0x38356c('0x9d'))[_0x38356c('0x58')](_0x38356c('0xd9'),'it',_0x38356c('0x95'))['left_join'](_0x38356c('0x8f'),'t','t.id\x20=\x20it.TagId'),_0x396755=squel[_0x38356c('0x5a')]();let _0x5b6c61=[];const _0x406f1e=squel[_0x38356c('0x5a')]();let _0x50a2e3;if(_0x3c8709['query'][_0x38356c('0x53')]){_0x50a2e3=as[_0x38356c('0xb2')](_0x3c8709['query'][_0x38356c('0x53')]);const _0x33fc6b=_0x50a2e3[_0x38356c('0x105')];for(let _0x2fcf86=0x0;_0x2fcf86<_0x50a2e3[_0x38356c('0x118')][_0x38356c('0x6b')];_0x2fcf86++){const _0x65d5af=_0x50a2e3['conditions'][_0x2fcf86],_0xfd612='i';let _0x36431b,_0x2b59a6=_[_0x38356c('0xe')](_0x3e70bf,[_0x38356c('0x9'),_0x65d5af[_0x38356c('0xac')]]);if(!_0x2b59a6)switch(_0x65d5af[_0x38356c('0xac')]){case _0x38356c('0xf0'):_0x65d5af[_0x38356c('0xf8')]==0x1?_0x42240b[_0x38356c('0xf7')]('`'+_0x65d5af[_0x38356c('0xac')]+_0x38356c('0x6c')):_0x42240b['having']('`'+_0x65d5af['field']+_0x38356c('0x9b'));break;case _0x38356c('0xbf'):if(_0x65d5af[_0x38356c('0xa3')]===_0x38356c('0xc6')){if(_0x65d5af[_0x38356c('0xf8')][_0x38356c('0x102')]('\x20')[_0x38356c('0x6b')]>0x1)_0x396755[_0x33fc6b](_0x38356c('0x1f'),qs[_0x38356c('0x80')](_0x65d5af[_0x38356c('0xf8')]),null);else{const _0x2810b0='%'+_0x65d5af[_0x38356c('0xf8')]+'%';_0x396755[_0x33fc6b](_0x38356c('0x110'),_0x2810b0,_0x2810b0,_0x2810b0);}}else _0x2b59a6=_[_0x38356c('0xe')](_0x3e70bf,[_0x38356c('0x9'),_0x38356c('0xa7')]),_0x65d5af['field']=_0x38356c('0xa7'),_0x36431b=as[_0x38356c('0x5d')](_0xfd612,_0x2b59a6[_0x38356c('0x93')],_0x65d5af),_0x396755[_0x33fc6b](_0x36431b[_0x38356c('0x35')],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x5e')],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x56')]);break;case _0x38356c('0x0'):{const _0x491b65=_0x65d5af[_0x38356c('0xf8')]['split'](',')['map'](function(_0x55aae2){return Number(_0x55aae2);});_0x491b65[_0x38356c('0xae')](function(_0x3d3c40){const _0x58a937=_0x38356c;_0x406f1e['or'](_0x58a937('0x30'),'%,'+_0x3d3c40+',%');}),_0x5b6c61=_['union'](_0x5b6c61,_0x491b65);}break;case _0x38356c('0xbc'):_0x65d5af[_0x38356c('0xa3')]===_0x38356c('0xc6')?_0x396755[_0x33fc6b]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x65d5af['value']+'%',null):(_0x2b59a6=_[_0x38356c('0xe')](_0x3e70bf,[_0x38356c('0x9'),_0x38356c('0x66')]),_0x65d5af[_0x38356c('0xac')]=_0x38356c('0x66'),_0x36431b=as[_0x38356c('0x5d')](_0xfd612,_0x2b59a6[_0x38356c('0x93')],_0x65d5af),_0x396755[_0x33fc6b](_0x36431b['text'],_0x36431b['value'][_0x38356c('0x5e')],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x56')]));break;case _0x38356c('0x6e'):_0x36431b=as[_0x38356c('0x5d')]('me',null,_0x65d5af),_0x396755[_0x33fc6b](_0x36431b[_0x38356c('0x35')],_0x36431b[_0x38356c('0xf8')]['start'],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x56')]);break;}else _0x36431b=as[_0x38356c('0x5d')](_0xfd612,_0x2b59a6[_0x38356c('0x93')],_0x65d5af),_0x396755[_0x33fc6b](_0x36431b[_0x38356c('0x35')],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x5e')],_0x36431b[_0x38356c('0xf8')][_0x38356c('0x56')]);}}else{const _0x14b12a=_(_0x3c8709[_0x38356c('0xdb')])[_0x38356c('0x4e')]()['map'](function(_0x34ce31){const _0x3e570b=_0x38356c;return _['some'](_0x3e70bf,[_0x3e570b('0x9'),_0x34ce31])?_0x34ce31:undefined;})[_0x38356c('0x4d')]()[_0x38356c('0xf8')]();!_[_0x38356c('0x8b')](_0x14b12a)&&_0x14b12a['forEach'](function(_0x2fc286){const _0xff5c52=_0x38356c;if(_0x2fc286===_0xff5c52('0x5f'))_0x42240b[_0xff5c52('0x71')](_0xff5c52('0x8d'),[]['concat'](_0x3c8709[_0xff5c52('0xdb')][_0x2fc286]));else{if(_0x2fc286==='createdAt'){const _0x5d309f=JSON[_0xff5c52('0xc7')](_0x3c8709[_0xff5c52('0xdb')][_0x2fc286])[_0xff5c52('0xef')],_0x219f7d=JSON[_0xff5c52('0xc7')](_0x3c8709['query'][_0x2fc286])[_0xff5c52('0x79')];_0x42240b[_0xff5c52('0x71')](_0xff5c52('0xfc'),_0x5d309f,_0x219f7d);}else _0x3c8709[_0xff5c52('0xdb')][_0x2fc286]===_0xff5c52('0x14')?_0x42240b[_0xff5c52('0x71')]('i.'+_0x2fc286+_0xff5c52('0xff')):_0x42240b[_0xff5c52('0x71')]('i.'+_0x2fc286+'\x20=\x20?',_0x3c8709[_0xff5c52('0xdb')][_0x2fc286]);}});_0x3c8709[_0x38356c('0xdb')]['read']&&(_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x7a')]==0x1?_0x42240b[_0x38356c('0xf7')](_0x38356c('0xc')):_0x42240b[_0x38356c('0xf7')](_0x38356c('0x61')));_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x68')]&&(_0x5b6c61=_[_0x38356c('0x10b')](_0x3c8709[_0x38356c('0xdb')]['tag'])?_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x68')]:new Array(_0x3c8709[_0x38356c('0xdb')][_0x38356c('0x68')]),_0x5b6c61[_0x38356c('0xae')](function(_0x363c11){const _0xc89c9=_0x38356c;_0x406f1e['or'](_0xc89c9('0x30'),'%,'+_0x363c11+',%');}));if(_0x3c8709['query']['filter']){const _0x542179=_0x3c8709[_0x38356c('0xdb')]['filter']['replace']('\x5c','\x5c\x5c')[_0x38356c('0xb5')]('\x27\x27',_0x38356c('0x83'));qs['isNumeric'](_0x542179)?_0x396755['or'](_0x38356c('0x96'),_0x542179+'%'):_0x396755['or'](_0x38356c('0x5b'),qs[_0x38356c('0x80')](_0x542179))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x542179+'%');}}_0x42240b['where'](_0x396755),_0x42240b[_0x38356c('0x70')]('i.id');let _0x565252={'type':QueryTypes['SELECT'],'raw':!![]};const _0x3a1204=_0x42240b[_0x38356c('0xbb')]();_0x3a1204['field'](_0x38356c('0x27')),_0x3a1204[_0x38356c('0xac')](_0x38356c('0x114'),_0x38356c('0xf0')),_0x22f975[_0x38356c('0xc9')]&&_0x22f975[_0x38356c('0xc9')][_0x38356c('0xae')](function(_0x3d3dc4){const _0x4ee0cf=_0x38356c;_0x42240b[_0x4ee0cf('0xc9')]('i.'+_0x3d3dc4[0x0],_0x3d3dc4[0x1]===_0x4ee0cf('0x67')?![]:!![]);}),!_[_0x38356c('0x8b')](_0x5b6c61)&&(_0x42240b['having'](_0x406f1e),_0x3a1204[_0x38356c('0x71')](_0x38356c('0x116'),_0x5b6c61)),Promise[_0x38356c('0x37')]()[_0x38356c('0x21')](function(){const _0x720175=_0x38356c;if(!_0x50a2e3){if(_0x3c8709[_0x720175('0xdb')][_0x720175('0x5f')]||_0x3c8709['query'][_0x720175('0x54')])return;_0x3a1204[_0x720175('0x71')](_0x720175('0xd0')),_0x42240b['where'](_0x720175('0xd0'));return;}return _0x3c8709[_0x720175('0x11a')]['getChatWebsites']({'attributes':['id'],'raw':!![]})[_0x720175('0x21')](function(_0x593606){const _0x2f543d=_0x720175;_['isEmpty'](_0x593606)?(_0x3a1204[_0x2f543d('0x71')](_0x2f543d('0x52')),_0x42240b['where']('i.ChatWebsiteId\x20IS\x20NULL')):(_0x3a1204[_0x2f543d('0x71')](_0x2f543d('0x8d'),_[_0x2f543d('0x104')](_0x593606,'id')),_0x42240b[_0x2f543d('0x71')](_0x2f543d('0x8d'),_[_0x2f543d('0x104')](_0x593606,'id')));});})[_0x38356c('0x21')](function(){const _0x5e0a2e=_0x38356c;db['sequelize'][_0x5e0a2e('0xdb')](_0x3a1204[_0x5e0a2e('0x7e')](),_0x565252)[_0x5e0a2e('0x21')](function(_0x2ce28d){const _0x4c32ff=_0x5e0a2e;_0x3b08fc[_0x4c32ff('0x9e')]=_0x2ce28d[_0x4c32ff('0x6b')];if(_0x3b08fc[_0x4c32ff('0x9e')]===0x0)return[];return db[_0x4c32ff('0xc1')][_0x4c32ff('0xdb')](_0x2199a4[_0x4c32ff('0x7e')](),_0x565252)['then'](function(_0x5dcd7b){const _0x5e8b45=_0x4c32ff;_0x34897b=_[_0x5e8b45('0xb3')](_0x5dcd7b,'id'),_0x565252=_[_0x5e8b45('0x2c')](_0x565252,{'model':db[_0x5e8b45('0xe8')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x3c8709['query'][_0x5e8b45('0x16')]?_0x22f975['attributes'][_0x5e8b45('0xae')](function(_0x2ce37b){const _0x43c6a5=_0x5e8b45;_0x42240b[_0x43c6a5('0xac')]('i.'+_0x2ce37b);}):(_0x42240b['field'](_0x5e8b45('0x114'),_0x5e8b45('0xf0')),_0x42240b['field'](_0x5e8b45('0x12'),_0x5e8b45('0x2')),_0x42240b[_0x5e8b45('0xac')](_0x5e8b45('0x10a'),_0x5e8b45('0x41')),_0x42240b['field'](_0x5e8b45('0x9c')),_0x42240b[_0x5e8b45('0xac')]('c.firstName',_0x5e8b45('0xfb')),_0x42240b[_0x5e8b45('0xac')](_0x5e8b45('0x10f'),_0x5e8b45('0xe9')),_0x42240b[_0x5e8b45('0xac')]('c.email','Contact.email'),_0x42240b['field']('c.phone',_0x5e8b45('0xbe')),_0x42240b[_0x5e8b45('0xac')](_0x5e8b45('0xfd'),_0x5e8b45('0x2a')),_0x42240b['field'](_0x5e8b45('0x9f'),_0x5e8b45('0x10c')),_0x42240b[_0x5e8b45('0xac')](_0x5e8b45('0xe6'),_0x5e8b45('0x7')),_0x42240b[_0x5e8b45('0xac')]('o.internal',_0x5e8b45('0xd6')),_0x42240b[_0x5e8b45('0xac')](_0x5e8b45('0x25'),_0x5e8b45('0xb1')));if(_0x22f975[_0x5e8b45('0x64')])_0x42240b[_0x5e8b45('0x64')](_0x22f975[_0x5e8b45('0x64')]);if(_0x22f975[_0x5e8b45('0xc8')])_0x42240b[_0x5e8b45('0xc8')](_0x22f975[_0x5e8b45('0xc8')]);return db[_0x5e8b45('0xc1')][_0x5e8b45('0xdb')](_0x42240b[_0x5e8b45('0x7e')](),_0x565252);})[_0x4c32ff('0x21')](function(_0x44384d){const _0x182ed3=_0x4c32ff;return _0x297dfc[_0x182ed3('0x71')](_0x182ed3('0xaa'),_[_0x182ed3('0x104')](_0x44384d,'id')),db[_0x182ed3('0xc1')]['query'](_0x297dfc[_0x182ed3('0x7e')](),_0x565252)[_0x182ed3('0x21')](function(_0x5ae6b6){const _0x1d02a4=_0x182ed3,_0x56dcca=_['groupBy'](_0x5ae6b6,_0x1d02a4('0x4f')),_0x1995bb=[];return _0x44384d[_0x1d02a4('0xae')](function(_0x25b583){const _0x3434ea=_0x1d02a4;_0x1995bb[_0x3434ea('0x45')](updateChatInteraction(_0x25b583,_0x34897b,_0x56dcca));}),Promise[_0x1d02a4('0x65')](_0x1995bb);});});})[_0x5e0a2e('0x21')](function(_0x234813){const _0x19e5a8=_0x5e0a2e;return _0x3b08fc[_0x19e5a8('0x22')]=_0x234813,_0x3b08fc;})[_0x5e0a2e('0x21')](respondWithFilteredResult(_0x1a05e5,_0x22f975));})[_0x38356c('0x11c')](handleError(_0x1a05e5,null));},exports['show']=function(_0x46c78a,_0xfd6ad9){const _0x2d61aa=_0x420e3b;let _0x45f21f={'raw':![],'where':{'id':_0x46c78a[_0x2d61aa('0x19')]['id']}};const _0x34616a={};return _0x34616a[_0x2d61aa('0xb0')]=_[_0x2d61aa('0x4e')](db['ChatInteraction'][_0x2d61aa('0x108')]),_0x34616a['query']=_[_0x2d61aa('0x4e')](_0x46c78a[_0x2d61aa('0xdb')]),_0x34616a[_0x2d61aa('0xfa')]=_[_0x2d61aa('0xf1')](_0x34616a[_0x2d61aa('0xb0')],_0x34616a[_0x2d61aa('0xdb')]),_0x45f21f['attributes']=_[_0x2d61aa('0xf1')](_0x34616a['model'],qs[_0x2d61aa('0x16')](_0x46c78a[_0x2d61aa('0xdb')][_0x2d61aa('0x16')])),_0x45f21f['attributes']=_0x45f21f['attributes'][_0x2d61aa('0x6b')]?_0x45f21f[_0x2d61aa('0x100')]:_0x34616a['model'],_0x46c78a[_0x2d61aa('0xdb')][_0x2d61aa('0xea')]&&(_0x45f21f[_0x2d61aa('0xd3')]=[{'all':!![]}]),_0x45f21f=_[_0x2d61aa('0x2c')]({},_0x45f21f,_0x46c78a[_0x2d61aa('0x57')]),db[_0x2d61aa('0xe8')][_0x2d61aa('0xb7')](_0x45f21f)[_0x2d61aa('0x21')](handleEntityNotFound(_0xfd6ad9,null))[_0x2d61aa('0x21')](respondWithResult(_0xfd6ad9,null))[_0x2d61aa('0x11c')](handleError(_0xfd6ad9,null));},exports[_0x420e3b('0x1b')]=function(_0x428d2a,_0x28906e){const _0x4cd34b=_0x420e3b;return db[_0x4cd34b('0xe8')][_0x4cd34b('0x1b')](_0x428d2a[_0x4cd34b('0x6e')],{})[_0x4cd34b('0x21')](respondWithResult(_0x28906e,0xc9))[_0x4cd34b('0x11c')](handleError(_0x28906e,null));},exports[_0x420e3b('0xd8')]=function(_0x5a0ebc,_0x2c6368){const _0x4d0916=_0x420e3b;return _0x5a0ebc[_0x4d0916('0x6e')]['id']&&delete _0x5a0ebc[_0x4d0916('0x6e')]['id'],db[_0x4d0916('0xe8')][_0x4d0916('0xb7')]({'where':{'id':_0x5a0ebc[_0x4d0916('0x19')]['id']}})[_0x4d0916('0x21')](handleEntityNotFound(_0x2c6368,null))[_0x4d0916('0x21')](saveUpdates(_0x5a0ebc['body'],null))[_0x4d0916('0x21')](respondWithResult(_0x2c6368,null))['catch'](handleError(_0x2c6368,null));},exports[_0x420e3b('0x113')]=function(_0x54130d,_0x2d4525){const _0x457285=_0x420e3b;return db['ChatInteraction'][_0x457285('0xb7')]({'where':{'id':_0x54130d[_0x457285('0x19')]['id']}})[_0x457285('0x21')](handleEntityNotFound(_0x2d4525,null))['then'](removeEntity(_0x2d4525,null))['catch'](handleError(_0x2d4525,null));},exports[_0x420e3b('0x15')]=function(_0xeab032,_0x19d022){const _0x3b9bbf=_0x420e3b;return db[_0x3b9bbf('0xe8')][_0x3b9bbf('0x15')]()[_0x3b9bbf('0x21')](respondWithResult(_0x19d022,null))[_0x3b9bbf('0x11c')](handleError(_0x19d022,null));},exports[_0x420e3b('0x10')]=function(_0x506ea4,_0x3d3ef2){const _0x4a1f67=_0x420e3b,_0x4f97e4=_0x506ea4[_0x4a1f67('0x19')]['id'];let _0x15cf55,_0x2493d3,_0x4eba43;return db['ChatInteraction'][_0x4a1f67('0xb7')]({'where':{'id':_0x4f97e4}})[_0x4a1f67('0x21')](function(_0x124338){const _0x40b353=_0x4a1f67;return _0x15cf55=_0x124338,db['ChatWebsite']['findOne']({'where':{'id':_0x124338[_0x40b353('0x5f')]},'attributes':['id','vidaooApiKey',_0x40b353('0x8e')],'raw':!![]});})[_0x4a1f67('0x21')](function(_0x5c95c3){const _0xe33abf=_0x4a1f67;if(_0x5c95c3&&_0x5c95c3['vidaooApiKey']&&_0x5c95c3[_0xe33abf('0x8e')]){_0x2493d3=_0x5c95c3;const _0x22812d={'rejectUnauthorized':![],'method':_0xe33abf('0x36'),'uri':_0xe33abf('0xf9'),'headers':{'X-APIKEY':_0x5c95c3['vidaooApiKey']},'body':{'name':'MotionCWB:'+_0x4f97e4},'redirect':_0xe33abf('0xf3'),'json':!![]};return rp(_0x22812d);}else throw new ValidationError(_0xe33abf('0x3'));})[_0x4a1f67('0x21')](function(_0x5b6e59){const _0x3dc04f=_0x4a1f67;_0x4eba43=_0x5b6e59;if(_0x4eba43['id']){const _0x58b6a6={'body':_0x4eba43[_0x3dc04f('0x92')],'ChatWebsiteId':_0x2493d3['id'],'ChatInteractionId':_0x15cf55['id'],'direction':'out','UserId':_0x506ea4[_0x3dc04f('0x11a')]['id']};return db['ChatMessage'][_0x3dc04f('0x1b')](_0x58b6a6,{});}else throw new ValidationError(_0x3dc04f('0xf'));})[_0x4a1f67('0x21')](function(){const _0x206898=_0x4a1f67;return _0x15cf55[_0x206898('0xd8')]({'vidaooSessionId':_0x4eba43['id']});})[_0x4a1f67('0x21')](respondWithResult(_0x3d3ef2,null))[_0x4a1f67('0x11c')](handleError(_0x3d3ef2,null));},exports[_0x420e3b('0xab')]=function(_0x1b20ec,_0x58fb13){const _0x38833c=_0x420e3b;return _0x1b20ec[_0x38833c('0x6e')]['id']&&delete _0x1b20ec['body']['id'],db[_0x38833c('0xe8')][_0x38833c('0xb7')]({'where':{'id':_0x1b20ec[_0x38833c('0x19')]['id']}})[_0x38833c('0x21')](handleEntityNotFound(_0x58fb13,null))[_0x38833c('0x21')](saveUpdates(_0x1b20ec['body'],null))['then'](respondWithResult(_0x58fb13,null))['catch'](handleError(_0x58fb13,null));},exports[_0x420e3b('0xa4')]=function(_0x3d014a,_0x4a5963){const _0x21dfb1=_0x420e3b;return _0x3d014a[_0x21dfb1('0x6e')]['id']&&delete _0x3d014a[_0x21dfb1('0x6e')]['id'],db[_0x21dfb1('0xe8')][_0x21dfb1('0xb7')]({'where':{'id':_0x3d014a[_0x21dfb1('0x19')]['id']}})['then'](function(_0x12f134){const _0x5a4f3f=_0x21dfb1;if(!_0x12f134)logger['error'](_0x5a4f3f('0x20'),_0x5a4f3f('0xa4'),0x194,'entity\x20not\x20found'),_0x4a5963['sendStatus'](0x194);else{if(_0x12f134[_0x5a4f3f('0x66')])throw new ValidationError('Interaction\x20already\x20assigned');}return _0x12f134;})[_0x21dfb1('0x21')](function(_0x58fd23){const _0x2ca0db=_0x21dfb1;if(_0x58fd23)return _0x58fd23[_0x2ca0db('0xd8')]({'closed':_0x3d014a['body'][_0x2ca0db('0x1d')],'disposition':_0x3d014a[_0x2ca0db('0x6e')][_0x2ca0db('0x17')]})['then'](function(_0x473a59){return _0x473a59;});})[_0x21dfb1('0x21')](function(){const _0x47e42e=_0x21dfb1;return respondWithRpcPromise(_0x47e42e('0x75'),_0x47e42e('0xa4'),_0x3d014a[_0x47e42e('0x6e')],client9004);})[_0x21dfb1('0x21')](respondWithResult(_0x4a5963,null))[_0x21dfb1('0x11c')](handleError(_0x4a5963,null));},exports['attachmentUpload']=function(_0x5259a6,_0x1abbfc){const _0x492108=_0x420e3b;return _0x5259a6[_0x492108('0x6e')][_0x492108('0x9')]=_0x5259a6[_0x492108('0x78')][_0x492108('0x81')],_0x5259a6['body'][_0x492108('0xd7')]=_0x5259a6['file'][_0x492108('0xa9')],_0x5259a6[_0x492108('0x6e')][_0x492108('0x93')]=_0x5259a6[_0x492108('0x78')]['mimetype'],db[_0x492108('0xbd')][_0x492108('0x1b')](_0x5259a6[_0x492108('0x6e')])[_0x492108('0x21')](respondWithResult(_0x1abbfc,0xc9))['catch'](handleError(_0x1abbfc,null));},exports[_0x420e3b('0x46')]=function(_0x1e2b3a,_0x2ba4b9){const _0xf32ce3=_0x420e3b;return db[_0xf32ce3('0xe8')][_0xf32ce3('0xb7')]({'where':{'id':_0x1e2b3a['params']['id']},'raw':!![]})['then'](handleEntityNotFound(_0x2ba4b9,null))['then'](function(_0x1264ed){const _0x3a634f=_0xf32ce3;if(_0x1264ed){if(_0x1264ed[_0x3a634f('0x1d')])return _0x2ba4b9[_0x3a634f('0xdf')](0x193)[_0x3a634f('0x40')]({'status':0x193,'message':_0x3a634f('0xc3')});return db[_0x3a634f('0xbd')][_0x3a634f('0xb7')]({'where':{'id':_0x1e2b3a[_0x3a634f('0xdb')][_0x3a634f('0xc2')]},'raw':!![]})[_0x3a634f('0x21')](handleEntityNotFound(_0x2ba4b9,null));}})['then'](function(_0x25e723){const _0x536883=_0xf32ce3;if(_0x25e723)return _0x2ba4b9['download'](path[_0x536883('0x84')](config[_0x536883('0xe7')],'files/attachments/',_0x25e723[_0x536883('0xd7')]));})[_0xf32ce3('0x11c')](handleError(_0x2ba4b9,null));},exports[_0x420e3b('0xe3')]=function(_0x39e911,_0xb7df26){const _0xe7a74e=_0x420e3b;let _0x5c318e=null,_0x4b4b96=null,_0x581e67=null;return _0x39e911[_0xe7a74e('0x6e')]['id']&&delete _0x39e911['body']['id'],_0x39e911['body'][_0xe7a74e('0x82')]&&(_0x581e67=path[_0xe7a74e('0x84')](config[_0xe7a74e('0xe7')],_0xe7a74e('0x2e'),util['format']('transcript-%s.txt',Date[_0xe7a74e('0x59')]())),_0x39e911[_0xe7a74e('0x6e')][_0xe7a74e('0x11b')]=_0x581e67),db[_0xe7a74e('0xe8')][_0xe7a74e('0xb7')]({'where':{'id':_0x39e911[_0xe7a74e('0x19')]['id']},'include':[{'model':db[_0xe7a74e('0x1a')],'as':_0xe7a74e('0x6d'),'include':[{'model':db[_0xe7a74e('0xbc')],'as':_0xe7a74e('0xbc')}]}]})[_0xe7a74e('0x21')](handleEntityNotFound(_0xb7df26,null))[_0xe7a74e('0x21')](saveUpdates(_0x39e911[_0xe7a74e('0x6e')],null))[_0xe7a74e('0x21')](function(_0x5d9af1){const _0x26caa0=_0xe7a74e;if(_0x5d9af1)return _0x5c318e=_0x5d9af1,db['ChatWebsite'][_0x26caa0('0xb7')]({'where':{'id':_0x5c318e[_0x26caa0('0x5f')]}});})['then'](function(_0x2ca6ed){const _0x46e63d=_0xe7a74e;if(_0x2ca6ed)return _0x4b4b96=_0x2ca6ed,db[_0x46e63d('0x89')][_0x46e63d('0xb7')]({'where':{'id':_0x5c318e[_0x46e63d('0xa7')]}});})[_0xe7a74e('0x21')](function(_0x4eed5c){const _0x37d7ad=_0xe7a74e;if(_0x4eed5c){if(_0x581e67){let _0xa94aca=null;for(let _0x36cb07=0x1;_0x36cb07<_0x5c318e[_0x37d7ad('0x6d')][_0x37d7ad('0x6b')];++_0x36cb07){_0xa94aca=_0x5c318e[_0x37d7ad('0x6d')][_0x36cb07];let _0x1540a9=_0xa94aca[_0x37d7ad('0x66')]?util['format'](_0x37d7ad('0x88'),_0x4b4b96[_0x37d7ad('0xe4')],_0xa94aca[_0x37d7ad('0x66')]):_0x37d7ad('0x31');const _0x2cd5a0=_0x39e911[_0x37d7ad('0x6e')][_0x37d7ad('0x3d')]||util[_0x37d7ad('0xaf')](_0x37d7ad('0x88'),_0x37d7ad('0x11'),_0xa94aca[_0x37d7ad('0xa7')]);switch(_0x4b4b96[_0x37d7ad('0x28')]){case _0x37d7ad('0xa0'):_0x1540a9=_0xa94aca[_0x37d7ad('0x66')]?util[_0x37d7ad('0xaf')](_0x37d7ad('0x88'),_0x4b4b96['agentAlias'],_0xa94aca[_0x37d7ad('0x66')]):'System';break;case _0x37d7ad('0x112'):_0x1540a9=_0xa94aca['UserId']?_0xa94aca[_0x37d7ad('0xbc')][_0x37d7ad('0x9a')]||_0xa94aca['User'][_0x37d7ad('0x72')]:'System';break;case _0x37d7ad('0x85'):_0x1540a9=_0xa94aca[_0x37d7ad('0x66')]?_0xa94aca[_0x37d7ad('0xbc')][_0x37d7ad('0x72')]:_0x37d7ad('0x31');break;default:_0x1540a9=_0xa94aca[_0x37d7ad('0x66')]?util[_0x37d7ad('0xaf')](_0x37d7ad('0x88'),_0x4b4b96['agentAlias'],_0xa94aca['UserId']):_0x37d7ad('0x31');}const _0x22d785=util[_0x37d7ad('0xaf')]('[%s]\x20%s:\x20%s\x0a',moment(_0xa94aca['createdAt'])[_0x37d7ad('0xaf')](_0x37d7ad('0x74')),_0xa94aca[_0x37d7ad('0xcb')]==='in'?_0x2cd5a0:_0x1540a9,_0xa94aca[_0x37d7ad('0x6e')]);!_0xa94aca[_0x37d7ad('0xec')]&&fs[_0x37d7ad('0x7d')](_0x581e67,_0x22d785);}return db[_0x37d7ad('0xe5')]['findOne']({'where':{'service':!![]},'include':[{'model':db[_0x37d7ad('0xeb')],'as':_0x37d7ad('0x7f'),'raw':!![]}]});}}})['then'](function(_0x47a29e){const _0x12ff30=_0xe7a74e;if(_0x47a29e&&_0x47a29e[_0x12ff30('0x7f')]&&_0x39e911[_0x12ff30('0x6e')]){const _0x50f279={'tls':{'rejectUnauthorized':![]}};return _0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x86')]?_0x50f279[_0x12ff30('0x86')]=_0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x86')]:(_0x50f279['host']=_0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x76')],_0x50f279[_0x12ff30('0xce')]=_0x47a29e[_0x12ff30('0x7f')]['port'],_0x50f279[_0x12ff30('0x2f')]=_0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x2f')]),_0x47a29e['Smtp']['authentication']&&(_0x50f279[_0x12ff30('0x51')]={'user':_0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x11a')],'pass':_0x47a29e[_0x12ff30('0x7f')][_0x12ff30('0x42')]}),respondWithRpcPromise(_0x12ff30('0xcc'),_0x12ff30('0xb6'),{'account':_0x50f279,'message':{'from':util[_0x12ff30('0xaf')](_0x12ff30('0xa1'),_0x47a29e[_0x12ff30('0x9')],_0x47a29e['email']||_0x47a29e[_0x12ff30('0x7f')]['user']),'to':_0x39e911['body']['mailTranscript'],'subject':_0x12ff30('0x3f'),'text':util[_0x12ff30('0xaf')](_0x12ff30('0x3c'),_0x39e911[_0x12ff30('0x6e')][_0x12ff30('0x82')]),'attachments':[{'path':_0x581e67}]}})[_0x12ff30('0x21')](function(){return _0x5c318e;})[_0x12ff30('0x11c')](function(_0x59e236){console['error'](_0x59e236);});}else return _0x5c318e;})['then'](respondWithStatusCode(_0xb7df26,0xc8))[_0xe7a74e('0x11c')](handleError(_0xb7df26,null));},exports[_0x420e3b('0x87')]=function(_0x2a70ea,_0x52f807){const _0xe28866=_0x420e3b;return db[_0xe28866('0x1a')][_0xe28866('0xb7')]({'where':{'id':_0x2a70ea['params']['id']}})['then'](function(_0x15aee0){const _0x465d40=_0xe28866;if(_0x15aee0)return _0x15aee0[_0x465d40('0x87')](_0x2a70ea[_0x465d40('0x6e')][_0x465d40('0x5c')],{'through':_[_0x465d40('0x6')](_0x2a70ea[_0x465d40('0x6e')],[_0x465d40('0x5c'),'id'])});})['then'](respondWithResult(_0x52f807,null))['catch'](handleError(_0x52f807,null));},exports[_0x420e3b('0x50')]=function(_0x5ba7d7,_0x285e79){const _0x2e6d2f=_0x420e3b;let _0xabf6e4={'raw':![],'where':{}};const _0xde19b6={},_0x3c6e24={'count':0x0,'rows':[]};return db[_0x2e6d2f('0xe8')]['findOne']({'where':{'id':_0x5ba7d7[_0x2e6d2f('0x19')]['id']}})[_0x2e6d2f('0x21')](handleEntityNotFound(_0x285e79,null))[_0x2e6d2f('0x21')](function(_0x464765){const _0xffaa93=_0x2e6d2f;if(_0x464765){_0xde19b6['model']=_['keys'](db[_0xffaa93('0x1a')]['rawAttributes']),_0xde19b6['query']=_['keys'](_0x5ba7d7[_0xffaa93('0xdb')]),_0xde19b6[_0xffaa93('0xfa')]=_[_0xffaa93('0xf1')](_0xde19b6[_0xffaa93('0xb0')],_0xde19b6[_0xffaa93('0xdb')]),_0xabf6e4[_0xffaa93('0x100')]=_['intersection'](_0xde19b6[_0xffaa93('0xb0')],qs[_0xffaa93('0x16')](_0x5ba7d7['query']['fields'])),_0xabf6e4[_0xffaa93('0x100')]=_0xabf6e4[_0xffaa93('0x100')][_0xffaa93('0x6b')]?_0xabf6e4[_0xffaa93('0x100')]:_0xde19b6[_0xffaa93('0xb0')];typeof _0x5ba7d7[_0xffaa93('0xdb')][_0xffaa93('0x6f')]===_0xffaa93('0x107')&&(_0xabf6e4[_0xffaa93('0x64')]=qs[_0xffaa93('0x64')](_0x5ba7d7[_0xffaa93('0xdb')][_0xffaa93('0x64')]),_0xabf6e4[_0xffaa93('0xc8')]=qs[_0xffaa93('0xc8')](_0x5ba7d7['query'][_0xffaa93('0xc8')]));_0xabf6e4[_0xffaa93('0xc9')]=qs[_0xffaa93('0xc5')](_0x5ba7d7['query'][_0xffaa93('0xc5')]),_0xabf6e4[_0xffaa93('0x71')]=qs[_0xffaa93('0xfa')](_[_0xffaa93('0xde')](_0x5ba7d7[_0xffaa93('0xdb')],_0xde19b6[_0xffaa93('0xfa')])),_0xabf6e4['where']['ChatInteractionId']=_0x464765['id'];_0x5ba7d7[_0xffaa93('0xdb')]['filter']&&(_0xabf6e4[_0xffaa93('0x71')]=_[_0xffaa93('0x2c')](_0xabf6e4[_0xffaa93('0x71')],{[Op['or']]:_[_0xffaa93('0x104')](_0xabf6e4[_0xffaa93('0x100')],function(_0x1a859b){const _0x1370e5=_0xffaa93,_0x5e9785={};return _0x5e9785[_0x1a859b]={[Op[_0x1370e5('0xf2')]]:'%'+_0x5ba7d7[_0x1370e5('0xdb')][_0x1370e5('0xb9')]+'%'},_0x5e9785;})}));if(_0x5ba7d7[_0xffaa93('0xdb')][_0xffaa93('0xef')]){const _0x2b40f5=_0x5ba7d7[_0xffaa93('0xdb')]['$gte']['split'](','),_0xd5fc90={};_0xd5fc90[_0x2b40f5[0x0]]={[Op[_0xffaa93('0x62')]]:moment(_0x2b40f5[0x1])[_0xffaa93('0xaf')](_0xffaa93('0x55'))},_0xabf6e4[_0xffaa93('0x71')]=_[_0xffaa93('0x2c')](_0xabf6e4[_0xffaa93('0x71')],_0xd5fc90);}return _0xabf6e4=_[_0xffaa93('0x2c')]({},_0xabf6e4,_0x5ba7d7[_0xffaa93('0x57')]),db[_0xffaa93('0x1a')][_0xffaa93('0x9e')]({'where':_0xabf6e4[_0xffaa93('0x71')]})[_0xffaa93('0x21')](function(_0x289174){const _0xf792df=_0xffaa93;return _0x3c6e24[_0xf792df('0x9e')]=_0x289174,_0x5ba7d7[_0xf792df('0xdb')]['includeAll']&&(_0xabf6e4[_0xf792df('0xd3')]=[{'all':!![]}]),db[_0xf792df('0x1a')][_0xf792df('0x77')](_0xabf6e4);})[_0xffaa93('0x21')](function(_0x3960ca){const _0x2d7e21=_0xffaa93;return _0x3c6e24[_0x2d7e21('0x22')]=_0x3960ca,_0x3c6e24;});}})[_0x2e6d2f('0x21')](respondWithFilteredResult(_0x285e79,_0xabf6e4))[_0x2e6d2f('0x11c')](handleError(_0x285e79,null));},exports[_0x420e3b('0x33')]=function(_0x57b6e4,_0x8cab5e){const _0x1d76bf=_0x420e3b;let _0x26a655={'where':{}};const _0x24105c={},_0x1a42c4={'count':0x0,'rows':[]};return db[_0x1d76bf('0xe8')][_0x1d76bf('0xb7')]({'where':{'id':_0x57b6e4[_0x1d76bf('0x19')]['id']}})[_0x1d76bf('0x21')](handleEntityNotFound(_0x8cab5e,null))[_0x1d76bf('0x21')](function(_0x39cd95){const _0x3b1012=_0x1d76bf;if(_0x39cd95)return _0x24105c[_0x3b1012('0xb0')]=_[_0x3b1012('0x4e')](db[_0x3b1012('0x1a')][_0x3b1012('0x108')]),_0x24105c['query']=_[_0x3b1012('0x4e')](_0x57b6e4['query']),_0x24105c[_0x3b1012('0xfa')]=_[_0x3b1012('0xf1')](_0x24105c[_0x3b1012('0xb0')],_0x24105c['query']),_0x26a655['attributes']=_['intersection'](_0x24105c[_0x3b1012('0xb0')],qs[_0x3b1012('0x16')](_0x57b6e4['query'][_0x3b1012('0x16')])),_0x26a655[_0x3b1012('0x100')]=_0x26a655[_0x3b1012('0x100')]['length']?_0x26a655[_0x3b1012('0x100')]:_0x24105c[_0x3b1012('0xb0')],typeof _0x57b6e4[_0x3b1012('0xdb')][_0x3b1012('0x6f')]===_0x3b1012('0x107')&&(_0x26a655['limit']=qs[_0x3b1012('0x64')](_0x57b6e4[_0x3b1012('0xdb')][_0x3b1012('0x64')]),_0x26a655[_0x3b1012('0xc8')]=qs['offset'](_0x57b6e4['query'][_0x3b1012('0xc8')])),_0x26a655['order']=qs['sort'](_0x57b6e4[_0x3b1012('0xdb')]['sort']),_0x26a655[_0x3b1012('0x71')]=qs[_0x3b1012('0xfa')](_[_0x3b1012('0xde')](_0x57b6e4[_0x3b1012('0xdb')],_0x24105c['filters'])),_0x26a655['where'][_0x3b1012('0x4f')]=_0x39cd95['id'],_0x57b6e4['query'][_0x3b1012('0xb9')]&&(_0x26a655[_0x3b1012('0x71')]=_[_0x3b1012('0x2c')](_0x26a655['where'],{[Op['or']]:_[_0x3b1012('0x104')](_0x26a655['attributes'],function(_0x34121a){const _0x47636d=_0x3b1012,_0x540ef2={};return _0x540ef2[_0x34121a]={[Op[_0x47636d('0xf2')]]:'%'+_0x57b6e4[_0x47636d('0xdb')]['filter']+'%'},_0x540ef2;})})),_0x26a655[_0x3b1012('0x71')]['secret']=![],_0x57b6e4[_0x3b1012('0xdb')]['id']&&(_0x26a655[_0x3b1012('0x71')]['id']={[Op['gt']]:_0x57b6e4[_0x3b1012('0xdb')]['id']}),_0x26a655=_[_0x3b1012('0x2c')]({},_0x26a655,_0x57b6e4['options']),db[_0x3b1012('0x1a')][_0x3b1012('0x9e')]({'where':_0x26a655[_0x3b1012('0x71')]})[_0x3b1012('0x21')](function(_0x4d9894){const _0x3e57eb=_0x3b1012;return _0x1a42c4[_0x3e57eb('0x9e')]=_0x4d9894,_0x26a655['include']=[],_0x57b6e4[_0x3e57eb('0xdb')]['includeAgent']&&_0x26a655[_0x3e57eb('0xd3')]['push']({'model':db['User'],'as':_0x3e57eb('0xbc'),'attributes':['id','fullname',_0x3e57eb('0x9a')]}),_0x57b6e4[_0x3e57eb('0xdb')][_0x3e57eb('0xea')]&&(_0x26a655[_0x3e57eb('0xd3')]=[{'all':!![]}]),db[_0x3e57eb('0x1a')][_0x3e57eb('0x77')](_0x26a655);})['then'](function(_0x318f04){const _0x1e3dba=_0x3b1012;return _0x1a42c4[_0x1e3dba('0x22')]=_0x318f04,_0x1a42c4;});})[_0x1d76bf('0x21')](respondWithFilteredResult(_0x8cab5e,_0x26a655))['catch'](handleError(_0x8cab5e,null));},exports['addTags']=function(_0x165ee8,_0x2e930e){const _0x54f779=_0x420e3b;return db[_0x54f779('0xe8')][_0x54f779('0xb7')]({'where':{'id':_0x165ee8['params']['id']}})[_0x54f779('0x21')](function(_0x4eac5f){const _0x30557e=_0x54f779;if(_0x4eac5f)return _0x4eac5f[_0x30557e('0x47')](_0x165ee8[_0x30557e('0x6e')][_0x30557e('0x5c')],{'through':_[_0x30557e('0x6')](_0x165ee8[_0x30557e('0x6e')],['ids','id'])})[_0x30557e('0x21')](function(){const _0x44997c=_0x30557e;return db[_0x44997c('0x0')]['findAll']({'attributes':['id','name','color'],'where':{'id':_0x165ee8[_0x44997c('0x6e')]['ids']}});})[_0x30557e('0x21')](function(_0x54923d){const _0x276631=_0x30557e;return socket[_0x276631('0x39')](_0x276631('0x10e'),{'id':Number(_0x165ee8[_0x276631('0x19')]['id']),'tags':_0x54923d||[]}),{'id':Number(_0x165ee8[_0x276631('0x19')]['id']),'tags':_0x54923d||[]};});})['then'](respondWithResult(_0x2e930e,null))[_0x54f779('0x11c')](handleError(_0x2e930e,null));},exports[_0x420e3b('0xdd')]=function(_0x140b01,_0x5c8eec){const _0x3a70f9=_0x420e3b;return db[_0x3a70f9('0xe8')]['findOne']({'where':{'id':_0x140b01[_0x3a70f9('0x19')]['id']}})[_0x3a70f9('0x21')](handleEntityNotFound(_0x5c8eec,null))[_0x3a70f9('0x21')](function(_0x2200d2){const _0x25421b=_0x3a70f9;if(_0x2200d2)return _0x2200d2[_0x25421b('0xdd')](_0x140b01['query'][_0x25421b('0x5c')]);})[_0x3a70f9('0x21')](respondWithStatusCode(_0x5c8eec,null))['catch'](handleError(_0x5c8eec,null));},exports[_0x420e3b('0x91')]=function(_0x1bb8ba,_0x239725){const _0x2a166e=_0x420e3b,_0x1bd104=moment()[_0x2a166e('0x1')]()[_0x2a166e('0x7e')](),_0x230911=path[_0x2a166e('0x84')](config[_0x2a166e('0xe7')],_0x2a166e('0xb'),_0x2a166e('0xa2')),_0x2543eb=path[_0x2a166e('0x84')](config[_0x2a166e('0xe7')],_0x2a166e('0xe2'),_0x2a166e('0xb'),_0x2a166e('0x5')),_0x59cc40=path[_0x2a166e('0x84')](_0x230911,_0x1bd104),_0x301ad6=util['format'](_0x2a166e('0xf5'),_0x1bb8ba['params']['id'],_0x1bd104),_0x2619e5=path[_0x2a166e('0x84')](_0x230911,_0x301ad6),_0x295b5a=[];_0x295b5a[_0x2a166e('0x45')]({'model':db[_0x2a166e('0xbc')],'as':_0x2a166e('0xbc'),'attributes':['id',_0x2a166e('0x72')],'raw':!![]}),_0x295b5a[_0x2a166e('0x45')]({'model':db['CmContact'],'as':_0x2a166e('0xbf'),'attributes':['id','firstName',_0x2a166e('0xc4')],'raw':!![]});_0x1bb8ba[_0x2a166e('0xdb')][_0x2a166e('0x5')]&&_0x295b5a[_0x2a166e('0x45')]({'model':db['Attachment'],'as':_0x2a166e('0xbd'),'raw':!![]});const _0x120e5c=[{'model':db[_0x2a166e('0x1a')],'as':_0x2a166e('0x6d'),'attributes':['id','body','createdAt',_0x2a166e('0xcb'),_0x2a166e('0xec'),_0x2a166e('0x7a')],'include':_0x295b5a}];return _0x120e5c['push']({'model':db[_0x2a166e('0x99')],'as':_0x2a166e('0xf4'),'attributes':['id',_0x2a166e('0x9')]}),_0x120e5c[_0x2a166e('0x45')]({'model':db[_0x2a166e('0xbc')],'as':'Owner','attributes':['id',_0x2a166e('0x72')]}),db[_0x2a166e('0xe8')][_0x2a166e('0xb7')]({'where':{'id':_0x1bb8ba[_0x2a166e('0x19')]['id']},'include':_0x120e5c})['then'](handleEntityNotFound(_0x239725,null))[_0x2a166e('0x21')](function(_0x1b08fd){const _0x254bcd=_0x2a166e;if(_0x1b08fd){const _0x517b44=_0x1b08fd['get']({'plain':!![]});fs[_0x254bcd('0xca')](_0x59cc40);const _0x15c715={'format':'A4','border':_0x254bcd('0xd2'),'header':{'height':_0x254bcd('0xa8'),'contents':{'first':_0x254bcd('0x13')}},'footer':{'height':_0x254bcd('0x1e'),'contents':{'default':util[_0x254bcd('0xaf')]('\x0a\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[_0x254bcd('0xaf')]('%s\x20#%d',_0x254bcd('0x8c'),_0x517b44['id']),moment()['format'](_0x254bcd('0xe0'))[_0x254bcd('0x7e')]())}}},_0x257c26={'channel':'Chat','account':_0x517b44[_0x254bcd('0xf4')]['name'],'agent':_0x517b44[_0x254bcd('0xed')]?_0x517b44['Owner'][_0x254bcd('0x72')]:_0x254bcd('0xfe'),'createdAt':moment(_0x517b44[_0x254bcd('0x48')])['format'](_0x254bcd('0x55'))[_0x254bcd('0x7e')](),'closedAt':_0x517b44[_0x254bcd('0x1d')]?moment(_0x517b44[_0x254bcd('0x111')])[_0x254bcd('0xaf')](_0x254bcd('0x55'))[_0x254bcd('0x7e')]():'','disposition':_0x517b44[_0x254bcd('0x17')],'chatInfo':{'browser':_0x517b44['browserName'],'os':_0x517b44[_0x254bcd('0x23')],'referer':_0x517b44[_0x254bcd('0xd5')],'customerIp':_0x517b44['customerIp'],'customerPort':_0x517b44[_0x254bcd('0x4c')]?_0x517b44[_0x254bcd('0x4c')]:_0x254bcd('0xfe')},'messages':_(_0x517b44[_0x254bcd('0x6d')])['tail']()[_0x254bcd('0xb9')]({'secret':![]})[_0x254bcd('0x104')](function(_0x1c26a1){const _0x47c9a4=_0x254bcd;if(_0x1c26a1[_0x47c9a4('0xbd')]){const _0x3811db=path[_0x47c9a4('0x84')](_0x2543eb,_0x1c26a1['Attachment']['basename']);fs[_0x47c9a4('0x7c')](_0x3811db)&&fs['createReadStream'](_0x3811db)['pipe'](fs[_0x47c9a4('0xcd')](path[_0x47c9a4('0x84')](_0x59cc40,_0x1c26a1[_0x47c9a4('0xbd')][_0x47c9a4('0xd7')])));}return{'date':moment(_0x1c26a1[_0x47c9a4('0x48')])[_0x47c9a4('0xaf')](_0x47c9a4('0x55'))['toString'](),'sender':_0x1c26a1[_0x47c9a4('0xcb')]===_0x47c9a4('0x8')?_0x1c26a1[_0x47c9a4('0xbc')]?_0x1c26a1[_0x47c9a4('0xbc')][_0x47c9a4('0x72')]:_0x47c9a4('0x31'):_0x1c26a1[_0x47c9a4('0xbf')]['firstName']+(_0x1c26a1[_0x47c9a4('0xbf')][_0x47c9a4('0xc4')]?'\x20'+_0x1c26a1[_0x47c9a4('0xbf')][_0x47c9a4('0xc4')]:''),'body':_0x1c26a1[_0x47c9a4('0xbd')]?_0x1c26a1[_0x47c9a4('0xbd')][_0x47c9a4('0xd7')]:_0x1c26a1[_0x47c9a4('0x6e')],'direction':_0x1c26a1[_0x47c9a4('0xcb')]===_0x47c9a4('0x8')?'A':'C','secret':_0x1c26a1[_0x47c9a4('0xec')],'read':_0x1c26a1[_0x47c9a4('0x7a')],'attachment':_0x1c26a1[_0x47c9a4('0xbd')]};})[_0x254bcd('0xf8')]()};return ejs[_0x254bcd('0x49')](path['join'](config['root'],'server',_0x254bcd('0xee'),'downloadInteraction.html'),{'interaction':_0x257c26})['then'](function(_0x46100a){return new Promise(function(_0x54e234,_0x26ca69){const _0x4817a3=a66_0x403c;pdf[_0x4817a3('0x1b')](_0x46100a,_0x15c715)[_0x4817a3('0xa')](path[_0x4817a3('0x84')](_0x59cc40,_0x4817a3('0xe1')+_0x517b44['id']+'-'+_0x1bd104+_0x4817a3('0xd1')),function(_0x172c9f,_0x3b1d8a){if(_0x172c9f)return _0x26ca69(_0x172c9f);_0x54e234(_0x3b1d8a);});});})[_0x254bcd('0x21')](function(){return new Promise(function(_0x5ae4d6,_0x35247a){zipdir(_0x59cc40,{'saveTo':_0x2619e5},function(_0x35f3b1,_0x20ed1b){if(_0x35f3b1)return _0x35247a(_0x35f3b1);return _0x5ae4d6(_0x20ed1b);});})['then'](function(){return new Promise(function(_0x263d91,_0x593d63){rimraf(_0x59cc40,function(_0x544735){if(_0x544735)_0x593d63(_0x544735);return _0x263d91();});});})['then'](function(){const _0x1a576a=a66_0x403c;return _0x239725[_0x1a576a('0x91')](_0x2619e5,_0x301ad6,function(_0x5c357b){const _0x390c3d=_0x1a576a;_0x5c357b?console[_0x390c3d('0x63')](_0x390c3d('0x29'),_0x5c357b):fs[_0x390c3d('0x44')](_0x2619e5);});});});}else return _0x239725[_0x254bcd('0xc0')](0xc8);})[_0x2a166e('0x11c')](handleError(_0x239725,null));}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index a81d7fd..19ffde0 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a67_0x3894=['addHook','remove','undefined','emit','update','unreadMessages','ChatInteraction','events','setMaxListeners','then','setDataValue','../../mysqldb','save','length','ChatMessage','findAll','catch'];(function(_0x44f9f3,_0x3894c7){const _0x4e3357=function(_0x24443d){while(--_0x24443d){_0x44f9f3['push'](_0x44f9f3['shift']());}};_0x4e3357(++_0x3894c7);}(a67_0x3894,0x1ea));const a67_0x4e33=function(_0x44f9f3,_0x3894c7){_0x44f9f3=_0x44f9f3-0x0;let _0x4e3357=a67_0x3894[_0x44f9f3];return _0x4e3357;};const _0x1b388f=a67_0x4e33;'use strict';const EventEmitter=require(_0x1b388f('0xa')),ChatInteraction=require(_0x1b388f('0xe'))['db'][_0x1b388f('0x9')],ChatMessage=require(_0x1b388f('0xe'))['db'][_0x1b388f('0x0')],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x1b388f('0xb')](0x0);const events={'afterCreate':_0x1b388f('0xf'),'afterUpdate':_0x1b388f('0x7'),'afterDestroy':_0x1b388f('0x4')};function emitEvent(_0x24443d){return function(_0x152305){const _0x2d4e20=a67_0x4e33;_0x152305['getUsers']({'attributes':['id'],'raw':!![]})[_0x2d4e20('0xc')](function(_0x128bbe){const _0x1d789c=_0x2d4e20;return _0x152305[_0x1d789c('0xd')]('Users',_0x128bbe['map'](function(_0x42da1f){return{'id':_0x42da1f['id']};})),ChatMessage[_0x1d789c('0x1')]({'where':{'ChatInteractionId':_0x152305['id'],'direction':'in','read':![]},'raw':!![]});})[_0x2d4e20('0xc')](function(_0x191326){const _0x3aa7db=_0x2d4e20;_0x152305[_0x3aa7db('0xd')](_0x3aa7db('0x8'),_0x191326[_0x3aa7db('0x10')]),ChatInteractionEvents[_0x3aa7db('0x6')](_0x24443d+':'+_0x152305['id'],_0x152305),ChatInteractionEvents[_0x3aa7db('0x6')](_0x24443d,_0x152305);})[_0x2d4e20('0x2')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x1b388f('0x5')){const event=events[e];ChatInteraction[_0x1b388f('0x3')](e,emitEvent(event));}}module['exports']=ChatInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index 51cb415..92905eb 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a68_0x4b73=['utf8mb4','utf8mb4_unicode_ci','YYYY-MM-DD\x20HH:mm:ss','format','closed','./chatInteraction.attributes','chat_interactions','moment','ChatInteraction','changed','exports'];(function(_0x575e30,_0x4b73ff){const _0x22a84b=function(_0x20f345){while(--_0x20f345){_0x575e30['push'](_0x575e30['shift']());}};_0x22a84b(++_0x4b73ff);}(a68_0x4b73,0xce));const a68_0x22a8=function(_0x575e30,_0x4b73ff){_0x575e30=_0x575e30-0x0;let _0x22a84b=a68_0x4b73[_0x575e30];return _0x22a84b;};const _0x495367=a68_0x22a8;'use strict';const moment=require(_0x495367('0xa')),attributes=require(_0x495367('0x8'));module[_0x495367('0x2')]=function(_0x20f345){const _0xa9bc9a=_0x495367,_0x6bdc2b=_0x20f345['define'](_0xa9bc9a('0x0'),attributes,{'tableName':_0xa9bc9a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x136c00){const _0x42783e=_0xa9bc9a;_0x136c00[_0x42783e('0x1')](_0x42783e('0x7'))&&(_0x136c00['closedAt']=moment()[_0x42783e('0x6')](_0x42783e('0x5')));}},'charset':_0xa9bc9a('0x3'),'collate':_0xa9bc9a('0x4')});return _0x6bdc2b;}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index 0769fe5..2f439bf 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a69_0x3f0a=['options','UpdateChatInteraction','../../config/logger','rpc','stringify','body','debug','attributes','lodash','AddTagsToChatInteraction','error','where','./chatInteraction.socket','ChatInteraction','info','then','AddTags','findOne','catch','addTags','update','message','../../mysqldb','ids'];(function(_0x3eb48f,_0x3f0aae){const _0x5c3313=function(_0x59bb3f){while(--_0x59bb3f){_0x3eb48f['push'](_0x3eb48f['shift']());}};_0x5c3313(++_0x3f0aae);}(a69_0x3f0a,0x152));const a69_0x5c33=function(_0x3eb48f,_0x3f0aae){_0x3eb48f=_0x3eb48f-0x0;let _0x5c3313=a69_0x3f0a[_0x3eb48f];return _0x5c3313;};const _0x24cda3=a69_0x5c33;'use strict';const _=require(_0x24cda3('0x6')),db=require(_0x24cda3('0x14'))['db'],logger=require(_0x24cda3('0x0'))(_0x24cda3('0x1')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x24cda3('0xa'))['register'](socket),exports[_0x24cda3('0x17')]=function(_0x59bb3f){const _0x35f637=this;return new Promise(function(_0x1b7f0f,_0xc206f){const _0x20efd0=a69_0x5c33;return db[_0x20efd0('0xb')][_0x20efd0('0x12')](_0x59bb3f[_0x20efd0('0x3')],{'raw':_0x59bb3f[_0x20efd0('0x16')]?_0x59bb3f[_0x20efd0('0x16')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x59bb3f['options']?_0x59bb3f[_0x20efd0('0x16')][_0x20efd0('0x9')]||null:null,'attributes':_0x59bb3f[_0x20efd0('0x16')]?_0x59bb3f[_0x20efd0('0x16')][_0x20efd0('0x5')]||null:null,'limit':_0x59bb3f[_0x20efd0('0x16')]?_0x59bb3f['options']['limit']||null:null})[_0x20efd0('0xd')](function(_0x3d7707){const _0x339918=_0x20efd0;logger[_0x339918('0xc')](_0x339918('0x17'),_0x59bb3f),logger[_0x339918('0x4')](_0x339918('0x17'),_0x59bb3f,JSON[_0x339918('0x2')](_0x3d7707)),_0x1b7f0f(_0x3d7707);})[_0x20efd0('0x10')](function(_0x4eca9f){const _0x550e6e=_0x20efd0;logger[_0x550e6e('0x8')]('UpdateChatInteraction',_0x4eca9f[_0x550e6e('0x13')],_0x59bb3f),_0xc206f(_0x35f637[_0x550e6e('0x8')](0x1f4,_0x4eca9f['message']));});});},exports[_0x24cda3('0x7')]=function(_0x5da259){const _0x52050d=this;return new Promise(function(_0x3ae5ed,_0x3d9e53){const _0x255a32=a69_0x5c33;return db['ChatInteraction'][_0x255a32('0xf')]({'where':_0x5da259[_0x255a32('0x16')]?_0x5da259[_0x255a32('0x16')][_0x255a32('0x9')]||null:null})['then'](function(_0x516566){const _0x11049b=_0x255a32;if(_0x516566)return _0x516566[_0x11049b('0x11')](_0x5da259[_0x11049b('0x3')][_0x11049b('0x15')],{'through':_['omit'](_0x5da259[_0x11049b('0x3')],[_0x11049b('0x15'),'id'])});})[_0x255a32('0xd')](function([_0x4da3cc]){const _0x3cc779=_0x255a32;logger['info'](_0x3cc779('0xe'),_0x5da259),logger['debug'](_0x3cc779('0xe'),_0x5da259,JSON[_0x3cc779('0x2')](_0x4da3cc)),_0x3ae5ed(_0x4da3cc);})[_0x255a32('0x10')](function(_0x432a64){const _0x1b0fec=_0x255a32;logger[_0x1b0fec('0x8')](_0x1b0fec('0xe'),_0x432a64[_0x1b0fec('0x13')],_0x5da259),_0x3d9e53(_0x52050d['error'](0x1f4,_0x432a64['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index 74e0ddd..c397915 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a70_0x4cf2=['register','./chatInteraction.events','length','chatInteraction:','emit'];(function(_0x59b993,_0x4cf210){const _0x40437e=function(_0x6fd2f0){while(--_0x6fd2f0){_0x59b993['push'](_0x59b993['shift']());}};_0x40437e(++_0x4cf210);}(a70_0x4cf2,0x1e2));const a70_0x4043=function(_0x59b993,_0x4cf210){_0x59b993=_0x59b993-0x0;let _0x40437e=a70_0x4cf2[_0x59b993];return _0x40437e;};const _0x3bca95=a70_0x4043;'use strict';const ChatInteractionEvents=require(_0x3bca95('0x4')),events=['save','remove','update'];function createListener(_0x6fd2f0,_0x2302c9){return function(_0x240647){const _0x12ce2c=a70_0x4043;_0x2302c9[_0x12ce2c('0x2')](_0x6fd2f0,_0x240647);};}exports[_0x3bca95('0x3')]=function(_0x3d4e6d){const _0x6b3b28=_0x3bca95;for(let _0x46d705=0x0,_0x282d70=events[_0x6b3b28('0x0')];_0x46d705<_0x282d70;_0x46d705++){const _0x46db5a=events[_0x46d705],_0x1aca12=createListener(_0x6b3b28('0x1')+_0x46db5a,_0x3d4e6d);ChatInteractionEvents['on'](_0x46db5a,_0x1aca12);}}; \ No newline at end of file +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 diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index 713c4c6..aff247f 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a71_0x256d=['/:id/vidaoo','root','multer','tracked','download','customUpdate','chat','./chatInteraction.controller','/:id/abandon','getMyMessages','/:id/tags','getMessages','abandon','post','/:id/download','Router','/:id/attachment_upload','originalname','put','createVidaooSession','addMessage','/:id/close','isChatInteractionAuthorized','path','/:id','diskStorage','create','../../config/environment','isAuthenticated','index','express','files/attachments/','addTags','chatinteraction:destroy','/:id/custom_update','join','get','delete','chatinteraction:addtags','removeTags','../../components/auth/service','/:id/my_messages','/:id/messages','replace','destroy','attachmentUpload','chatinteraction:update'];(function(_0x5f10c7,_0x256d19){const _0x151312=function(_0x273299){while(--_0x273299){_0x5f10c7['push'](_0x5f10c7['shift']());}};_0x151312(++_0x256d19);}(a71_0x256d,0x144));const a71_0x1513=function(_0x5f10c7,_0x256d19){_0x5f10c7=_0x5f10c7-0x0;let _0x151312=a71_0x256d[_0x5f10c7];return _0x151312;};const _0x47f82a=a71_0x1513;'use strict';const multer=require(_0x47f82a('0x7')),util=require('util'),path=require(_0x47f82a('0x1c')),express=require(_0x47f82a('0x23')),router=express[_0x47f82a('0x14')](),auth=require(_0x47f82a('0x2d')),interaction=require('../../components/interaction/service'),config=require(_0x47f82a('0x20')),controller=require(_0x47f82a('0xc'));router[_0x47f82a('0x29')]('/',auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x22')]),router['get']('/describe',auth[_0x47f82a('0x21')](),controller['describe']),router[_0x47f82a('0x29')](_0x47f82a('0x1d'),auth[_0x47f82a('0x1b')](),controller['show']),router[_0x47f82a('0x29')]('/:id/attachment_download',auth[_0x47f82a('0x1b')](),controller['attachmentDownload']),router[_0x47f82a('0x29')]('/:id/messages',auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x10')]),router['get'](_0x47f82a('0x2e'),auth[_0x47f82a('0x1b')](),controller[_0x47f82a('0xe')]),router[_0x47f82a('0x29')](_0x47f82a('0x13'),auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x9')]),router[_0x47f82a('0x12')]('/',auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x1f')]),router[_0x47f82a('0x12')](_0x47f82a('0x5'),auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x18')]);const upload=multer({'storage':multer[_0x47f82a('0x1e')]({'destination':function(_0x273299,_0x3f043d,_0x4836ac){const _0x5b92d1=_0x47f82a;_0x4836ac(null,path[_0x5b92d1('0x28')](config[_0x5b92d1('0x6')],_0x5b92d1('0x24')));},'filename':function(_0x496767,_0x9987a4,_0x557d9a){const _0x1eeae3=_0x47f82a;_0x557d9a(null,util['format']('%s-%s',Date['now'](),_0x9987a4[_0x1eeae3('0x16')][_0x1eeae3('0x1')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x47f82a('0x15'),upload['single']('file'),controller[_0x47f82a('0x3')]),router[_0x47f82a('0x12')](_0x47f82a('0x0'),auth[_0x47f82a('0x1b')](),controller[_0x47f82a('0x19')]),router['post'](_0x47f82a('0xf'),auth[_0x47f82a('0x21')](),interaction[_0x47f82a('0x8')](_0x47f82a('0xb'),_0x47f82a('0x2b')),controller[_0x47f82a('0x25')]),router[_0x47f82a('0x17')]('/:id',auth[_0x47f82a('0x21')](),interaction[_0x47f82a('0x8')]('chat',_0x47f82a('0x4')),controller['update']),router[_0x47f82a('0x17')](_0x47f82a('0x27'),controller[_0x47f82a('0xa')]),router[_0x47f82a('0x17')](_0x47f82a('0xd'),auth[_0x47f82a('0x1b')](),controller[_0x47f82a('0x11')]),router[_0x47f82a('0x17')](_0x47f82a('0x1a'),controller['close']),router['delete'](_0x47f82a('0x1d'),auth[_0x47f82a('0x21')](),interaction['tracked']('chat',_0x47f82a('0x26')),controller[_0x47f82a('0x2')]),router[_0x47f82a('0x2a')](_0x47f82a('0xf'),auth[_0x47f82a('0x21')](),controller[_0x47f82a('0x2c')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index b7b3e02..0d849ac 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a72_0xad74=['BOOLEAN','sequelize','medium','exports'];(function(_0x15715d,_0xad7491){const _0x157197=function(_0x2b9026){while(--_0x2b9026){_0x15715d['push'](_0x15715d['shift']());}};_0x157197(++_0xad7491);}(a72_0xad74,0x79));const a72_0x1571=function(_0x15715d,_0xad7491){_0x15715d=_0x15715d-0x0;let _0x157197=a72_0xad74[_0x15715d];return _0x157197;};const _0x43f872=a72_0x1571;'use strict';const Sequelize=require(_0x43f872('0x0'));module[_0x43f872('0x2')]={'body':{'type':Sequelize['TEXT'](_0x43f872('0x1')),'allowNull':![]},'read':{'type':Sequelize[_0x43f872('0x3')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 7c18fab..95b643f 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a73_0x402a=['set','moment','admin','update','allowmessenger','findOne','agent','pick','createdAt','count','../../components/parsers/qs','lastMessage','type','fields','includeAll','../../rediscache','user','json','get','nolimit','VoiceQueues','sequelize','showWebBar','userpic','isEmpty','userProfileId','resourceId','intersection','name','filters','YYYY-MM-DD\x20HH:mm:ss','sort','merge','describe','api','VIRTUAL','findAll','filter','-createdAt','messages','include','length','ChatInternalMessage','-online','index','undefined','then','ToId','attributes','destroy','params','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileSection','lodash','UserProfileResource','all','model','order','./chatInternalMessage.socket','Content-Range','catch','end','Agents','key','create','FromId','stack','query','rows','options','read','online','push','status','where','offset','body','show','sendStatus','format','limit','role','lastLoginAt','error','map','lastMessageAt'];(function(_0x30068c,_0x402a2c){const _0x19d950=function(_0x42b485){while(--_0x42b485){_0x30068c['push'](_0x30068c['shift']());}};_0x19d950(++_0x402a2c);}(a73_0x402a,0x15c));const a73_0x19d9=function(_0x30068c,_0x402a2c){_0x30068c=_0x30068c-0x0;let _0x19d950=a73_0x402a[_0x30068c];return _0x19d950;};const _0x26c863=a73_0x19d9;'use strict';const moment=require(_0x26c863('0x53')),_=require(_0x26c863('0x31')),qs=require(_0x26c863('0x6')),logger=require('../../config/logger')(_0x26c863('0x1e')),{getSocket}=require(_0x26c863('0xb')),db=require('../../mysqldb')['db'],{Op}=require(_0x26c863('0x11')),socket=getSocket();require(_0x26c863('0x36'))['register'](socket);function respondWithResult(_0x42b485,_0x95b611){return _0x95b611=_0x95b611||0xc8,function(_0x1b711){const _0x523365=a73_0x19d9;if(_0x1b711)return _0x42b485[_0x523365('0x45')](_0x95b611)[_0x523365('0xd')](_0x1b711);};}function respondWithFilteredResult(_0x55e071,_0x4c9355){return function(_0x5de07d){const _0xa55c4f=a73_0x19d9;if(_0x5de07d){const _0x3da136=_0x5de07d[_0xa55c4f('0x5')],_0x34913e=_0x4c9355[_0xa55c4f('0x47')];let _0xf2e922=_0x4c9355[_0xa55c4f('0x47')]+_0x4c9355[_0xa55c4f('0x4c')],_0x4406af;return _0xf2e922>=_0x3da136?(_0xf2e922=_0x3da136,_0x4406af=0xc8):_0x4406af=0xce,_0x55e071[_0xa55c4f('0x45')](_0x4406af),_0x55e071[_0xa55c4f('0x52')](_0xa55c4f('0x37'),_0x34913e+'-'+_0xf2e922+'/'+_0x3da136)[_0xa55c4f('0xd')](_0x5de07d);}return null;};}function saveUpdates(_0x3e4336){return function(_0x1d7d87){const _0x4286e6=a73_0x19d9;if(_0x1d7d87)return _0x1d7d87[_0x4286e6('0x55')](_0x3e4336)[_0x4286e6('0x2a')](function(_0x2194a2){return _0x2194a2;});return null;};}function removeEntity(_0x22c1f1){return function(_0x5c41df){const _0x1ae55c=a73_0x19d9;if(_0x5c41df)return _0x5c41df[_0x1ae55c('0x2d')]()[_0x1ae55c('0x2a')](function(){const _0x3a8da1=_0x1ae55c;_0x22c1f1[_0x3a8da1('0x45')](0xcc)[_0x3a8da1('0x39')]();});};}function handleEntityNotFound(_0x24d75f){return function(_0x3fd394){const _0x338452=a73_0x19d9;return!_0x3fd394&&_0x24d75f[_0x338452('0x4a')](0x194),_0x3fd394;};}function handleError(_0x36315e,_0x1cce4b){return _0x1cce4b=_0x1cce4b||0x1f4,function(_0x29aa19){const _0x5c4e5a=a73_0x19d9;logger[_0x5c4e5a('0x4f')](_0x29aa19[_0x5c4e5a('0x3e')]),_0x29aa19[_0x5c4e5a('0x18')]&&delete _0x29aa19[_0x5c4e5a('0x18')],_0x36315e[_0x5c4e5a('0x45')](_0x1cce4b)['send'](_0x29aa19);};}exports[_0x26c863('0x28')]=function(_0x224cba,_0xad978a){const _0x5d596f=_0x26c863;let _0x481112={};const _0x5c7553={},_0x32262d={'count':0x0,'rows':[]},_0x1cba69=_['map'](db[_0x5d596f('0x26')]['rawAttributes'],function(_0x287ac6){const _0x52da32=_0x5d596f;return{'name':_0x287ac6['fieldName'],'type':_0x287ac6['type'][_0x52da32('0x3b')]};});_0x5c7553['model']=_[_0x5d596f('0x50')](_0x1cba69,'name'),_0x5c7553[_0x5d596f('0x3f')]=_['keys'](_0x224cba[_0x5d596f('0x3f')]),_0x5c7553[_0x5d596f('0x19')]=_[_0x5d596f('0x17')](_0x5c7553[_0x5d596f('0x34')],_0x5c7553[_0x5d596f('0x3f')]),_0x481112[_0x5d596f('0x2c')]=_[_0x5d596f('0x17')](_0x5c7553[_0x5d596f('0x34')],qs['fields'](_0x224cba['query']['fields'])),_0x481112[_0x5d596f('0x2c')]=_0x481112[_0x5d596f('0x2c')][_0x5d596f('0x25')]?_0x481112[_0x5d596f('0x2c')]:_0x5c7553[_0x5d596f('0x34')];typeof _0x224cba['query'][_0x5d596f('0xf')]===_0x5d596f('0x29')&&(_0x481112['limit']=qs['limit'](_0x224cba['query'][_0x5d596f('0x4c')]),_0x481112[_0x5d596f('0x47')]=qs[_0x5d596f('0x47')](_0x224cba[_0x5d596f('0x3f')]['offset']));_0x481112[_0x5d596f('0x35')]=qs[_0x5d596f('0x1b')](_0x224cba[_0x5d596f('0x3f')][_0x5d596f('0x1b')]),_0x481112[_0x5d596f('0x46')]=qs['filters'](_[_0x5d596f('0x3')](_0x224cba[_0x5d596f('0x3f')],_0x5c7553[_0x5d596f('0x19')]),_0x1cba69);_0x224cba['query'][_0x5d596f('0x21')]&&(_0x481112[_0x5d596f('0x46')]=_[_0x5d596f('0x1c')](_0x481112[_0x5d596f('0x46')],{[Op['or']]:_[_0x5d596f('0x50')](_0x1cba69,function(_0x3f4c5b){const _0x3c924e=_0x5d596f;if(_0x3f4c5b[_0x3c924e('0x8')]!==_0x3c924e('0x1f')){const _0x5aa7fa={};return _0x5aa7fa[_0x3f4c5b['name']]={[Op['like']]:'%'+_0x224cba[_0x3c924e('0x3f')][_0x3c924e('0x21')]+'%'},_0x5aa7fa;}})}));_0x481112=_[_0x5d596f('0x1c')]({},_0x481112,_0x224cba[_0x5d596f('0x41')]);const _0x56d9a2={'where':_0x481112[_0x5d596f('0x46')]};return db[_0x5d596f('0x26')][_0x5d596f('0x5')](_0x56d9a2)['then'](function(_0x16196e){const _0x3502cf=_0x5d596f;return _0x32262d[_0x3502cf('0x5')]=_0x16196e,_0x224cba[_0x3502cf('0x3f')][_0x3502cf('0xa')]&&(_0x481112[_0x3502cf('0x24')]=[{'all':!![]}]),db[_0x3502cf('0x26')][_0x3502cf('0x20')](_0x481112);})[_0x5d596f('0x2a')](function(_0x507979){const _0x5c2eb4=_0x5d596f;return _0x32262d[_0x5c2eb4('0x40')]=_0x507979,_0x32262d;})[_0x5d596f('0x2a')](respondWithFilteredResult(_0xad978a,_0x481112))[_0x5d596f('0x38')](handleError(_0xad978a,null));},exports[_0x26c863('0x49')]=function(_0xcf9e3d,_0x178c86){const _0x495081=_0x26c863;let _0x514290={'raw':!![],'where':{'id':_0xcf9e3d[_0x495081('0x2e')]['id']}};const _0x5f594a={};return _0x5f594a['model']=_['keys'](db[_0x495081('0x26')]['rawAttributes']),_0x5f594a[_0x495081('0x3f')]=_['keys'](_0xcf9e3d[_0x495081('0x3f')]),_0x5f594a[_0x495081('0x19')]=_[_0x495081('0x17')](_0x5f594a[_0x495081('0x34')],_0x5f594a[_0x495081('0x3f')]),_0x514290[_0x495081('0x2c')]=_[_0x495081('0x17')](_0x5f594a[_0x495081('0x34')],qs[_0x495081('0x9')](_0xcf9e3d['query'][_0x495081('0x9')])),_0x514290[_0x495081('0x2c')]=_0x514290[_0x495081('0x2c')][_0x495081('0x25')]?_0x514290[_0x495081('0x2c')]:_0x5f594a['model'],_0xcf9e3d[_0x495081('0x3f')][_0x495081('0xa')]&&(_0x514290[_0x495081('0x24')]=[{'all':!![]}]),_0x514290=_[_0x495081('0x1c')]({},_0x514290,_0xcf9e3d['options']),db[_0x495081('0x26')]['findOne'](_0x514290)[_0x495081('0x2a')](handleEntityNotFound(_0x178c86,null))['then'](respondWithResult(_0x178c86,null))['catch'](handleError(_0x178c86,null));},exports[_0x26c863('0x3c')]=function(_0x21051d,_0x9550df){const _0x2dc098=_0x26c863;return db['ChatInternalMessage'][_0x2dc098('0x3c')](_0x21051d[_0x2dc098('0x48')],{})[_0x2dc098('0x2a')](respondWithResult(_0x9550df,0xc9))['catch'](handleError(_0x9550df,null));},exports['update']=function(_0x52cf4a,_0xcdd2bc){const _0xf2d534=_0x26c863;return _0x52cf4a[_0xf2d534('0x48')]['id']&&delete _0x52cf4a[_0xf2d534('0x48')]['id'],db['ChatInternalMessage'][_0xf2d534('0x1')]({'where':{'id':_0x52cf4a['params']['id']}})[_0xf2d534('0x2a')](handleEntityNotFound(_0xcdd2bc,null))[_0xf2d534('0x2a')](saveUpdates(_0x52cf4a['body'],null))[_0xf2d534('0x2a')](respondWithResult(_0xcdd2bc,null))['catch'](handleError(_0xcdd2bc,null));},exports['destroy']=function(_0x3fefef,_0xafbedc){const _0x5c23f2=_0x26c863;return db[_0x5c23f2('0x26')][_0x5c23f2('0x1')]({'where':{'id':_0x3fefef[_0x5c23f2('0x2e')]['id']}})[_0x5c23f2('0x2a')](handleEntityNotFound(_0xafbedc,null))[_0x5c23f2('0x2a')](removeEntity(_0xafbedc,null))[_0x5c23f2('0x38')](handleError(_0xafbedc,null));},exports[_0x26c863('0x1d')]=function(_0x30651e,_0xe7dcfb){const _0x4c98e6=_0x26c863;return db[_0x4c98e6('0x26')]['describe']()[_0x4c98e6('0x2a')](respondWithResult(_0xe7dcfb,null))[_0x4c98e6('0x38')](handleError(_0xe7dcfb,null));};function wrapUser(_0x4297bc){return function(_0x26ef96){const _0x450031=a73_0x19d9,_0x4bae3f=_0x4297bc[_0x450031('0xe')]({'plain':!![]});return _0x4bae3f[_0x450031('0x23')]=[],_0x26ef96?(_0x4bae3f[_0x450031('0x51')]=_0x26ef96[_0x450031('0x4')],_0x4bae3f[_0x450031('0x7')]=_0x26ef96):(_0x4bae3f[_0x450031('0x51')]=moment(0x0)[_0x450031('0x4b')](_0x450031('0x1a')),_0x4bae3f['lastMessage']={}),_0x4bae3f;};}exports['getUsers']=function(_0x466ed2,_0x530e7e){const _0x4789f8=_0x26c863;let _0x56e10e=[];return db['User'][_0x4789f8('0x20')]({'where':{'role':['agent',_0x4789f8('0x54'),_0x4789f8('0xc')]},'attributes':['id','fullname',_0x4789f8('0x18'),_0x4789f8('0x4d'),_0x4789f8('0x13'),'internal',_0x4789f8('0x43'),_0x4789f8('0x4e'),_0x4789f8('0x0'),_0x4789f8('0x12')],'order':qs[_0x4789f8('0x1b')](_0x4789f8('0x27')),'include':[{'model':db['VoiceQueue'],'as':_0x4789f8('0x10'),'attributes':['id',_0x4789f8('0x18'),_0x4789f8('0x8')],'through':{'attributes':[]}}]})[_0x4789f8('0x2a')](function(_0x1bc02d){const _0x4a1087=_0x4789f8;if(_0x1bc02d){const _0x799300=_0x466ed2[_0x4a1087('0xc')][_0x4a1087('0xe')]({'plain':!![]});if(!_0x799300)throw new Error(_0x4a1087('0x2f'));return _0x799300[_0x4a1087('0x4d')]===_0x4a1087('0xc')?db[_0x4a1087('0x30')][_0x4a1087('0x1')]({'where':{'name':_0x4a1087('0x3a'),'userProfileId':_0x799300[_0x4a1087('0x15')]},'raw':!![]})[_0x4a1087('0x2a')](function(_0x1cb70f){const _0xc82939=_0x4a1087;if(_0x1cb70f)return _0x1cb70f['autoAssociation']===0x0?db[_0xc82939('0x32')][_0xc82939('0x20')]({'where':{'sectionId':_0x1cb70f['id']},'raw':!![]})[_0xc82939('0x2a')](function(_0x391eb5){const _0x907942=_0xc82939;let _0x5a4638=[];if(_[_0x907942('0x14')](_0x391eb5))return _0x5a4638=_[_0x907942('0x21')](_0x1bc02d,function(_0x35ceff){const _0x4c632e=_0x907942;if(_0x35ceff[_0x4c632e('0x4d')]!==_0x4c632e('0x2'))return _0x35ceff;}),_0x5a4638;else{for(let _0x303898=0x0;_0x303898<_0x1bc02d['length'];_0x303898++){const _0x29a47a=_0x1bc02d[_0x303898];if(_0x29a47a[_0x907942('0x4d')]===_0x907942('0x2')){const _0x6c5d25=_['find'](_0x391eb5,function(_0x5ea984){const _0x3fd6ae=_0x907942;return _0x5ea984[_0x3fd6ae('0x16')]===_0x29a47a['id'];});if(_0x6c5d25)_0x5a4638[_0x907942('0x44')](_0x29a47a);}else _0x5a4638[_0x907942('0x44')](_0x29a47a);}return _0x5a4638;}}):_0x1bc02d;else{const _0x3b875a=_[_0xc82939('0x21')](_0x1bc02d,function(_0x3c87ad){const _0xb732f=_0xc82939;if(_0x3c87ad[_0xb732f('0x4d')]!==_0xb732f('0x2'))return _0x3c87ad;});return _0x3b875a;}}):_0x1bc02d;}})[_0x4789f8('0x2a')](function(_0x5be53e){const _0x3a5968=_0x4789f8,_0x52140e=[];if(_0x5be53e){_0x56e10e=_0x5be53e;for(let _0x11e0e4=0x0;_0x11e0e4<_0x5be53e['length'];_0x11e0e4+=0x1){_0x56e10e[_0x11e0e4]['messages']=[],_0x52140e[_0x3a5968('0x44')](db[_0x3a5968('0x26')]['findOne']({'where':{'FromId':[_0x466ed2[_0x3a5968('0xc')]['id'],_0x5be53e[_0x11e0e4]['id']],'ToId':[_0x466ed2[_0x3a5968('0xc')]['id'],_0x5be53e[_0x11e0e4]['id']],'ChatGroupId':null},'attributes':['id',_0x3a5968('0x4'),_0x3a5968('0x3d'),_0x3a5968('0x2b'),_0x3a5968('0x42'),'body'],'order':qs[_0x3a5968('0x1b')](_0x3a5968('0x22')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x3a5968('0x2a')](wrapUser(_0x5be53e[_0x11e0e4])));}return Promise[_0x3a5968('0x33')](_0x52140e);}return[];})[_0x4789f8('0x2a')](function(_0x625a25){const _0x3ac3ef=_0x4789f8;return{'rows':_0x625a25,'count':_0x625a25[_0x3ac3ef('0x25')]};})['then'](respondWithResult(_0x530e7e,null))[_0x4789f8('0x38')](handleError(_0x530e7e,null));}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index f20f7f6..f089010 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a74_0x52c4=['emit','events','undefined','../../mysqldb','addHook','setMaxListeners','update','remove'];(function(_0x1b5881,_0x52c4f7){const _0xd7dee7=function(_0xd03275){while(--_0xd03275){_0x1b5881['push'](_0x1b5881['shift']());}};_0xd7dee7(++_0x52c4f7);}(a74_0x52c4,0xb4));const a74_0xd7de=function(_0x1b5881,_0x52c4f7){_0x1b5881=_0x1b5881-0x0;let _0xd7dee7=a74_0x52c4[_0x1b5881];return _0xd7dee7;};const _0x3946b1=a74_0xd7de;'use strict';const EventEmitter=require(_0x3946b1('0x5')),ChatInternalMessage=require(_0x3946b1('0x7'))['db']['ChatInternalMessage'],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x3946b1('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3946b1('0x2'),'afterDestroy':_0x3946b1('0x3')};function emitEvent(_0xd03275){return function(_0x2776a0){const _0x326f58=a74_0xd7de;ChatInternalMessageEvents['emit'](_0xd03275+':'+_0x2776a0['id'],_0x2776a0),ChatInternalMessageEvents[_0x326f58('0x4')](_0xd03275,_0x2776a0);};}for(const e in events){if(typeof events[e]!==_0x3946b1('0x6')){const event=events[e];ChatInternalMessage[_0x3946b1('0x0')](e,emitEvent(event));}}module['exports']=ChatInternalMessageEvents; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index ed820ed..b1dca68 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a75_0x224c=['chat_internal_messages','utf8mb4','exports'];(function(_0xd4ca65,_0x224cf3){const _0x4b48f7=function(_0x3a1213){while(--_0x3a1213){_0xd4ca65['push'](_0xd4ca65['shift']());}};_0x4b48f7(++_0x224cf3);}(a75_0x224c,0x13c));const a75_0x4b48=function(_0xd4ca65,_0x224cf3){_0xd4ca65=_0xd4ca65-0x0;let _0x4b48f7=a75_0x224c[_0xd4ca65];return _0x4b48f7;};const _0x23ad52=a75_0x4b48;'use strict';const attributes=require('./chatInternalMessage.attributes');module[_0x23ad52('0x1')]=function(_0x3a1213){const _0x477cf5=_0x23ad52,_0x46c1fe=_0x3a1213['define']('ChatInternalMessage',attributes,{'tableName':_0x477cf5('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x477cf5('0x0'),'collate':'utf8mb4_unicode_ci'});return _0x46c1fe;}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index 55a9f5d..921e53b 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a76_0x4627=['./chatInternalMessage.socket','../../rediscache','register'];(function(_0x34cc75,_0x46272d){const _0x29efff=function(_0x95a0cc){while(--_0x95a0cc){_0x34cc75['push'](_0x34cc75['shift']());}};_0x29efff(++_0x46272d);}(a76_0x4627,0x152));const a76_0x29ef=function(_0x34cc75,_0x46272d){_0x34cc75=_0x34cc75-0x0;let _0x29efff=a76_0x4627[_0x34cc75];return _0x29efff;};const _0x4f5720=a76_0x29ef;'use strict';const {getSocket}=require(_0x4f5720('0x2')),socket=getSocket();require(_0x4f5720('0x1'))[_0x4f5720('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index 1eba462..cb6063e 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a77_0x2315=['register','chatInternalMessage:','length','update','save','emit','./chatInternalMessage.events'];(function(_0x498091,_0x23151b){const _0x207b86=function(_0x45f6ff){while(--_0x45f6ff){_0x498091['push'](_0x498091['shift']());}};_0x207b86(++_0x23151b);}(a77_0x2315,0x1d2));const a77_0x207b=function(_0x498091,_0x23151b){_0x498091=_0x498091-0x0;let _0x207b86=a77_0x2315[_0x498091];return _0x207b86;};const _0x32149c=a77_0x207b;'use strict';const ChatInternalMessageEvents=require(_0x32149c('0x2')),events=[_0x32149c('0x0'),'remove',_0x32149c('0x6')];function createListener(_0x45f6ff,_0x144d50){return function(_0x2f6911){const _0x8eebdc=a77_0x207b;_0x144d50[_0x8eebdc('0x1')](_0x45f6ff,_0x2f6911);};}exports[_0x32149c('0x3')]=function(_0x11c380){const _0x19ec12=_0x32149c;for(let _0x2a3149=0x0,_0x2a9596=events[_0x19ec12('0x5')];_0x2a3149<_0x2a9596;_0x2a3149++){const _0x43db39=events[_0x2a3149],_0xb1f5e9=createListener(_0x19ec12('0x4')+_0x43db39,_0x11c380);ChatInternalMessageEvents['on'](_0x43db39,_0xb1f5e9);}}; \ No newline at end of file +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 diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index 3b139dd..065e22b 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a78_0x339d=['destroy','Router','describe','delete','get','/:id','show','index','./chatInternalMessage.controller','express','exports','getUsers','../../components/auth/service','isAuthenticated','/users','put'];(function(_0x153386,_0x339d08){const _0x5437b1=function(_0x461856){while(--_0x461856){_0x153386['push'](_0x153386['shift']());}};_0x5437b1(++_0x339d08);}(a78_0x339d,0xf8));const a78_0x5437=function(_0x153386,_0x339d08){_0x153386=_0x153386-0x0;let _0x5437b1=a78_0x339d[_0x153386];return _0x5437b1;};const _0x35d247=a78_0x5437;'use strict';const express=require(_0x35d247('0x1')),router=express[_0x35d247('0x9')](),auth=require(_0x35d247('0x4')),controller=require(_0x35d247('0x0'));router['get']('/',auth[_0x35d247('0x5')](),controller[_0x35d247('0xf')]),router[_0x35d247('0xc')]('/describe',auth['isAuthenticated'](),controller[_0x35d247('0xa')]),router[_0x35d247('0xc')](_0x35d247('0x6'),auth[_0x35d247('0x5')](),controller[_0x35d247('0x3')]),router['get'](_0x35d247('0xd'),auth['isAuthenticated'](),controller[_0x35d247('0xe')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x35d247('0x7')](_0x35d247('0xd'),controller['update']),router[_0x35d247('0xb')](_0x35d247('0xd'),auth['isAuthenticated'](),controller[_0x35d247('0x8')]),module[_0x35d247('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index 7c8b40e..842c48b 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a79_0x5292=['exports','out','TEXT','medium','ENUM','BOOLEAN'];(function(_0x1e9cb9,_0x52926f){const _0x3a0a31=function(_0x55ca6f){while(--_0x55ca6f){_0x1e9cb9['push'](_0x1e9cb9['shift']());}};_0x3a0a31(++_0x52926f);}(a79_0x5292,0x9e));const a79_0x3a0a=function(_0x1e9cb9,_0x52926f){_0x1e9cb9=_0x1e9cb9-0x0;let _0x3a0a31=a79_0x5292[_0x1e9cb9];return _0x3a0a31;};const _0x3f6520=a79_0x3a0a;'use strict';const Sequelize=require('sequelize');module[_0x3f6520('0x4')]={'body':{'type':Sequelize[_0x3f6520('0x0')](_0x3f6520('0x1')),'allowNull':![]},'read':{'type':Sequelize[_0x3f6520('0x3')],'defaultValue':![]},'secret':{'type':Sequelize[_0x3f6520('0x3')],'defaultValue':![]},'direction':{'type':Sequelize[_0x3f6520('0x2')]('in','out'),'defaultValue':_0x3f6520('0x5'),'allowNull':![]},'readAt':{'type':Sequelize['DATE']}}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index 7fc0b06..be5b738 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a80_0x54d7=['client','readAt','filter','rejectmessage','request\x20sent','request','./chatMessage.socket','rejectMessage','body','manual','attributes','filters','format','result','role','fieldName','chat','Contact','CmContact','order','YYYY-MM-DD\x20HH:mm:ss','acceptmessage','set','register','read1stAt','name','catch','findAll','update','info','create','show','AcceptMessage','SIP/%s','like','ChatMessage,\x20%s,\x20%s','sendStatus','stringify','../../mysqldb','get','count','jayson/promise','offset','params','status','agent','ChatInteraction','where','message','nolimit','merge','end','VIRTUAL','channel','sequelize','error','rawAttributes','pick','fields','map','api','then','sort','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../config/logger','accept','event','interaction','rows','findOne','ChatMessage','options','Content-Range','include','ChatInteractionId','http','UserId','user','length','RejectMessage','undefined','EventManager','isNil','key','formData','send','query','reject','acceptMessage','null','describe','parse','read','lodash','chat-interactions','limit','index','util','keys','intersection','model','includeAll','code','moment','destroy','interface'];(function(_0x866f9b,_0x54d7c4){const _0x221d0a=function(_0x316e88){while(--_0x316e88){_0x866f9b['push'](_0x866f9b['shift']());}};_0x221d0a(++_0x54d7c4);}(a80_0x54d7,0xc2));const a80_0x221d=function(_0x866f9b,_0x54d7c4){_0x866f9b=_0x866f9b-0x0;let _0x221d0a=a80_0x54d7[_0x866f9b];return _0x221d0a;};const _0x3dd9b1=a80_0x221d;'use strict';const moment=require(_0x3dd9b1('0xf')),util=require(_0x3dd9b1('0x9')),_=require(_0x3dd9b1('0x5')),qs=require('../../components/parsers/qs'),logger=require(_0x3dd9b1('0x52'))(_0x3dd9b1('0x4e')),{getSocket}=require('../../rediscache'),db=require(_0x3dd9b1('0x38'))['db'],{Op}=require(_0x3dd9b1('0x48')),interaction_log=require(_0x3dd9b1('0x52'))(_0x3dd9b1('0x6')),socket=getSocket();require(_0x3dd9b1('0x18'))[_0x3dd9b1('0x29')](socket);const jayson=require(_0x3dd9b1('0x3b')),client=jayson[_0x3dd9b1('0x12')][_0x3dd9b1('0x5d')]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x316e88,_0x5ca1a0,_0x3e4d90,_0x2cad8d){return new Promise(function(_0x1fbfbd,_0x503e93){const _0x483361=a80_0x221d,_0xa64fd6=_0x2cad8d||client;return _0xa64fd6[_0x483361('0x17')](_0x316e88,_0x3e4d90)[_0x483361('0x4f')](function(_0x3b1f11){const _0xe2bde5=_0x483361;logger[_0xe2bde5('0x2f')]('ChatMessage,\x20%s,\x20%s',_0x5ca1a0,_0xe2bde5('0x16')),logger['debug']('ChatMessage,\x20%s,\x20%s,\x20%s',_0x5ca1a0,_0xe2bde5('0x16'),JSON['stringify'](_0x3b1f11));if(_0x3b1f11['error']){if(_0x3b1f11[_0xe2bde5('0x49')][_0xe2bde5('0xe')]===0x1f4)return logger['error'](_0xe2bde5('0x35'),_0x5ca1a0,_0x3b1f11[_0xe2bde5('0x49')]['message']),_0x503e93(_0x3b1f11[_0xe2bde5('0x49')]['message']);return logger[_0xe2bde5('0x49')](_0xe2bde5('0x35'),_0x5ca1a0,_0x3b1f11[_0xe2bde5('0x49')]['message']),_0x1fbfbd(_0x3b1f11[_0xe2bde5('0x49')][_0xe2bde5('0x42')]);}else logger['info'](_0xe2bde5('0x35'),_0x5ca1a0,_0xe2bde5('0x16')),_0x1fbfbd(_0x3b1f11[_0xe2bde5('0x1f')][_0xe2bde5('0x42')]);})[_0x483361('0x2c')](function(_0x18b791){logger['error']('ChatMessage,\x20%s,\x20%s',_0x5ca1a0,_0x18b791),_0x503e93(_0x18b791);});});}function respondWithResult(_0x384cc7,_0x5f51f2){return _0x5f51f2=_0x5f51f2||0xc8,function(_0x540be6){const _0xe3ba41=a80_0x221d;if(_0x540be6)return _0x384cc7[_0xe3ba41('0x3e')](_0x5f51f2)['json'](_0x540be6);};}function respondWithFilteredResult(_0x211ca6,_0x35a839){return function(_0x491c0f){const _0x2c4161=a80_0x221d;if(_0x491c0f){const _0x3e607c=_0x491c0f[_0x2c4161('0x3a')],_0x187edc=_0x35a839[_0x2c4161('0x3c')];let _0x612277=_0x35a839[_0x2c4161('0x3c')]+_0x35a839['limit'],_0x413059;return _0x612277>=_0x3e607c?(_0x612277=_0x3e607c,_0x413059=0xc8):_0x413059=0xce,_0x211ca6[_0x2c4161('0x3e')](_0x413059),_0x211ca6[_0x2c4161('0x28')](_0x2c4161('0x5a'),_0x187edc+'-'+_0x612277+'/'+_0x3e607c)['json'](_0x491c0f);}return null;};}function saveUpdates(_0x31c983){return function(_0x292508){if(_0x292508)return _0x292508['update'](_0x31c983)['then'](function(_0x52f9c3){return _0x52f9c3;});return null;};}function removeEntity(_0xb8f124){return function(_0x298ed7){const _0x3e976c=a80_0x221d;if(_0x298ed7)return _0x298ed7[_0x3e976c('0x10')]()[_0x3e976c('0x4f')](function(){const _0x30c3df=_0x3e976c;_0xb8f124[_0x30c3df('0x3e')](0xcc)[_0x30c3df('0x45')]();});};}function handleEntityNotFound(_0x5c96b2){return function(_0x5ac190){const _0x324513=a80_0x221d;return!_0x5ac190&&_0x5c96b2[_0x324513('0x36')](0x194),_0x5ac190;};}function handleError(_0x1aacd7,_0x5c875d){return _0x5c875d=_0x5c875d||0x1f4,function(_0x320f75){const _0x2c3793=a80_0x221d;logger[_0x2c3793('0x49')](_0x320f75['stack']),_0x320f75['name']&&delete _0x320f75[_0x2c3793('0x2b')],_0x1aacd7['status'](_0x5c875d)[_0x2c3793('0x67')](_0x320f75);};}exports[_0x3dd9b1('0x8')]=function(_0x375f51,_0x3e0aae){const _0x3cb49f=_0x3dd9b1;let _0x1bcef5={};const _0x40f6a2={},_0x6e0a4e={'count':0x0,'rows':[]},_0x2f38f0=_[_0x3cb49f('0x4d')](db['ChatMessage'][_0x3cb49f('0x4a')],function(_0x46f66b){const _0x1b045c=_0x3cb49f;return{'name':_0x46f66b[_0x1b045c('0x21')],'type':_0x46f66b['type'][_0x1b045c('0x65')]};});_0x40f6a2[_0x3cb49f('0xc')]=_[_0x3cb49f('0x4d')](_0x2f38f0,_0x3cb49f('0x2b')),_0x40f6a2['query']=_[_0x3cb49f('0xa')](_0x375f51[_0x3cb49f('0x68')]),_0x40f6a2[_0x3cb49f('0x1d')]=_[_0x3cb49f('0xb')](_0x40f6a2[_0x3cb49f('0xc')],_0x40f6a2[_0x3cb49f('0x68')]),_0x1bcef5['attributes']=_[_0x3cb49f('0xb')](_0x40f6a2['model'],qs[_0x3cb49f('0x4c')](_0x375f51['query'][_0x3cb49f('0x4c')])),_0x1bcef5[_0x3cb49f('0x1c')]=_0x1bcef5[_0x3cb49f('0x1c')][_0x3cb49f('0x60')]?_0x1bcef5['attributes']:_0x40f6a2['model'];typeof _0x375f51[_0x3cb49f('0x68')][_0x3cb49f('0x43')]===_0x3cb49f('0x62')&&(_0x1bcef5[_0x3cb49f('0x7')]=qs[_0x3cb49f('0x7')](_0x375f51[_0x3cb49f('0x68')]['limit']),_0x1bcef5[_0x3cb49f('0x3c')]=qs[_0x3cb49f('0x3c')](_0x375f51[_0x3cb49f('0x68')][_0x3cb49f('0x3c')]));_0x1bcef5[_0x3cb49f('0x25')]=qs['sort'](_0x375f51[_0x3cb49f('0x68')][_0x3cb49f('0x50')]),_0x1bcef5[_0x3cb49f('0x41')]=qs[_0x3cb49f('0x1d')](_[_0x3cb49f('0x4b')](_0x375f51[_0x3cb49f('0x68')],_0x40f6a2[_0x3cb49f('0x1d')]),_0x2f38f0);_0x375f51[_0x3cb49f('0x68')][_0x3cb49f('0x14')]&&(_0x1bcef5[_0x3cb49f('0x41')]=_[_0x3cb49f('0x44')](_0x1bcef5[_0x3cb49f('0x41')],{[Op['or']]:_[_0x3cb49f('0x4d')](_0x2f38f0,function(_0x29b218){const _0x560281=_0x3cb49f;if(_0x29b218['type']!==_0x560281('0x46')){const _0x497809={};return _0x497809[_0x29b218[_0x560281('0x2b')]]={[Op[_0x560281('0x34')]]:'%'+_0x375f51['query'][_0x560281('0x14')]+'%'},_0x497809;}})}));_0x1bcef5=_[_0x3cb49f('0x44')]({},_0x1bcef5,_0x375f51['options']);const _0x903a5b={'where':_0x1bcef5['where']};return db[_0x3cb49f('0x58')]['count'](_0x903a5b)[_0x3cb49f('0x4f')](function(_0xe9158){const _0x200ed=_0x3cb49f;return _0x6e0a4e[_0x200ed('0x3a')]=_0xe9158,_0x375f51['query'][_0x200ed('0xd')]&&(_0x1bcef5['include']=[{'all':!![]}]),db['ChatMessage'][_0x200ed('0x2d')](_0x1bcef5);})[_0x3cb49f('0x4f')](function(_0x22ee4d){const _0x10ff55=_0x3cb49f;return _0x6e0a4e[_0x10ff55('0x56')]=_0x22ee4d,_0x6e0a4e;})[_0x3cb49f('0x4f')](respondWithFilteredResult(_0x3e0aae,_0x1bcef5))[_0x3cb49f('0x2c')](handleError(_0x3e0aae,null));},exports[_0x3dd9b1('0x31')]=function(_0x6bb0e8,_0x22df8c){const _0x157fe4=_0x3dd9b1;let _0x4832da={'raw':!![],'where':{'id':_0x6bb0e8[_0x157fe4('0x3d')]['id']}};const _0x27b195={};return _0x27b195[_0x157fe4('0xc')]=_[_0x157fe4('0xa')](db[_0x157fe4('0x58')][_0x157fe4('0x4a')]),_0x27b195[_0x157fe4('0x68')]=_[_0x157fe4('0xa')](_0x6bb0e8[_0x157fe4('0x68')]),_0x27b195['filters']=_[_0x157fe4('0xb')](_0x27b195[_0x157fe4('0xc')],_0x27b195[_0x157fe4('0x68')]),_0x4832da[_0x157fe4('0x1c')]=_[_0x157fe4('0xb')](_0x27b195[_0x157fe4('0xc')],qs[_0x157fe4('0x4c')](_0x6bb0e8[_0x157fe4('0x68')][_0x157fe4('0x4c')])),_0x4832da[_0x157fe4('0x1c')]=_0x4832da[_0x157fe4('0x1c')][_0x157fe4('0x60')]?_0x4832da[_0x157fe4('0x1c')]:_0x27b195['model'],_0x6bb0e8[_0x157fe4('0x68')][_0x157fe4('0xd')]&&(_0x4832da[_0x157fe4('0x5b')]=[{'all':!![]}]),_0x4832da=_['merge']({},_0x4832da,_0x6bb0e8[_0x157fe4('0x59')]),db[_0x157fe4('0x58')][_0x157fe4('0x57')](_0x4832da)[_0x157fe4('0x4f')](handleEntityNotFound(_0x22df8c,null))['then'](respondWithResult(_0x22df8c,null))[_0x157fe4('0x2c')](handleError(_0x22df8c,null));},exports[_0x3dd9b1('0x30')]=function(_0x12b7c2,_0x534655){const _0x2e114a=_0x3dd9b1;return db['ChatMessage'][_0x2e114a('0x30')](_0x12b7c2[_0x2e114a('0x1a')],{})[_0x2e114a('0x4f')](respondWithResult(_0x534655,0xc9))['catch'](handleError(_0x534655,null));},exports[_0x3dd9b1('0x2e')]=function(_0x51aca7,_0x3d7445){const _0x307d2b=_0x3dd9b1;return _0x51aca7[_0x307d2b('0x1a')]['id']&&delete _0x51aca7[_0x307d2b('0x1a')]['id'],db[_0x307d2b('0x58')][_0x307d2b('0x57')]({'where':{'id':_0x51aca7[_0x307d2b('0x3d')]['id']}})[_0x307d2b('0x4f')](handleEntityNotFound(_0x3d7445,null))[_0x307d2b('0x4f')](saveUpdates(_0x51aca7[_0x307d2b('0x1a')],null))[_0x307d2b('0x4f')](respondWithResult(_0x3d7445,null))[_0x307d2b('0x2c')](handleError(_0x3d7445,null));},exports[_0x3dd9b1('0x10')]=function(_0x215b83,_0x44bd6f){const _0x45b538=_0x3dd9b1;return db[_0x45b538('0x58')][_0x45b538('0x57')]({'where':{'id':_0x215b83['params']['id']}})[_0x45b538('0x4f')](handleEntityNotFound(_0x44bd6f,null))[_0x45b538('0x4f')](removeEntity(_0x44bd6f,null))[_0x45b538('0x2c')](handleError(_0x44bd6f,null));},exports[_0x3dd9b1('0x2')]=function(_0x11e673,_0x20945c){const _0x2615ed=_0x3dd9b1;return db[_0x2615ed('0x58')]['describe']()['then'](respondWithResult(_0x20945c,null))['catch'](handleError(_0x20945c,null));},exports[_0x3dd9b1('0x53')]=function(_0x34d54b,_0x2066c8){const _0x2240ed=_0x3dd9b1,_0x4a1616={'channel':_0x2240ed('0x22')};return _0x34d54b['body']['id']&&delete _0x34d54b['body']['id'],_0x34d54b[_0x2240ed('0x1a')][_0x2240ed('0x4')]=!![],_0x34d54b[_0x2240ed('0x1a')][_0x2240ed('0x13')]=moment()[_0x2240ed('0x1e')](_0x2240ed('0x26')),_0x34d54b[_0x2240ed('0x1a')][_0x2240ed('0x5e')]=_0x34d54b[_0x2240ed('0x1a')][_0x2240ed('0x5e')]||_0x34d54b['user']['id'],db[_0x2240ed('0x58')]['findOne']({'where':{'id':_0x34d54b[_0x2240ed('0x3d')]['id'],'UserId':null},'include':[{'model':db[_0x2240ed('0x24')],'as':_0x2240ed('0x23')}]})[_0x2240ed('0x4f')](handleEntityNotFound(_0x2066c8,null))[_0x2240ed('0x4f')](saveUpdates(_0x34d54b[_0x2240ed('0x1a')],null))['then'](function(_0x16c27e){const _0x1a8bb0=_0x2240ed;if(_0x16c27e)return _0x4a1616[_0x1a8bb0('0x42')]=_0x16c27e[_0x1a8bb0('0x39')]({'plain':!![]}),db['ChatInteraction'][_0x1a8bb0('0x57')]({'where':{'id':_0x16c27e['ChatInteractionId']}});return null;})['then'](handleEntityNotFound(_0x2066c8,null))[_0x2240ed('0x4f')](function(_0x3976fb){const _0x42b089=_0x2240ed;if(_0x3976fb)return _0x3976fb[_0x42b089('0x2e')]({'UserId':_0x34d54b[_0x42b089('0x1a')][_0x42b089('0x5e')],'read1stAt':_[_0x42b089('0x64')](_0x3976fb[_0x42b089('0x2a')])?moment()[_0x42b089('0x1e')](_0x42b089('0x26')):undefined});return null;})[_0x2240ed('0x4f')](function(_0x48438a){const _0xceda04=_0x2240ed;if(_0x48438a)return _0x4a1616['interaction']=_0x48438a[_0xceda04('0x39')]({'plain':!![]}),interaction_log['info']('[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x34d54b['user']['id'],_0x34d54b[_0xceda04('0x5f')]['name'],_0x34d54b['user']['role'],_0x4a1616[_0xceda04('0x55')]['id'],_0x34d54b[_0xceda04('0x1a')]?JSON[_0xceda04('0x37')](_0x34d54b[_0xceda04('0x1a')]):_0xceda04('0x1')),respondWithRpcPromise(_0xceda04('0x32'),_0xceda04('0x0'),_0x4a1616);return null;})[_0x2240ed('0x4f')](function(_0x5363e6){const _0x12ea5f=_0x2240ed;if(_0x5363e6){if(_0x34d54b[_0x12ea5f('0x1a')][_0x12ea5f('0x1b')])return _0x4a1616[_0x12ea5f('0x42')][_0x12ea5f('0x11')]=util[_0x12ea5f('0x1e')](_0x12ea5f('0x33'),_0x34d54b['user'][_0x12ea5f('0x2b')]),_0x4a1616[_0x12ea5f('0x42')]['channel']=_0x4a1616[_0x12ea5f('0x47')],_0x4a1616['message'][_0x12ea5f('0x54')]=_0x12ea5f('0x53'),respondWithRpcPromise(_0x12ea5f('0x63'),_0x12ea5f('0x63'),{'event':_0x12ea5f('0x27'),'message':_[_0x12ea5f('0x44')](_0x4a1616[_0x12ea5f('0x42')],JSON[_0x12ea5f('0x3')](_0x4a1616[_0x12ea5f('0x55')][_0x12ea5f('0x66')]))},client9002)[_0x12ea5f('0x4f')](function(){return _0x4a1616;});return _0x4a1616;}return null;})[_0x2240ed('0x4f')](respondWithResult(_0x2066c8,null))[_0x2240ed('0x2c')](handleError(_0x2066c8,null));},exports['reject']=function(_0x1736bb,_0x4cbfa1){const _0x2fd128=_0x3dd9b1,_0x3aee58={'agent':{},'channel':_0x2fd128('0x22')};return _0x1736bb[_0x2fd128('0x1a')]['id']&&delete _0x1736bb[_0x2fd128('0x1a')]['id'],_0x1736bb[_0x2fd128('0x1a')]['UserId']=_0x1736bb[_0x2fd128('0x1a')][_0x2fd128('0x5e')]||_0x1736bb[_0x2fd128('0x5f')]['id'],_0x3aee58[_0x2fd128('0x3f')]['id']=_0x1736bb['body'][_0x2fd128('0x5e')],db[_0x2fd128('0x58')][_0x2fd128('0x57')]({'where':{'id':_0x1736bb[_0x2fd128('0x3d')]['id'],'UserId':null}})[_0x2fd128('0x4f')](handleEntityNotFound(_0x4cbfa1,null))[_0x2fd128('0x4f')](function(_0x180582){const _0x6ca3b6=_0x2fd128;if(_0x180582)return _0x3aee58[_0x6ca3b6('0x42')]=_0x180582[_0x6ca3b6('0x39')]({'plain':!![]}),db[_0x6ca3b6('0x40')]['findOne']({'where':{'id':_0x180582[_0x6ca3b6('0x5c')]}});return null;})[_0x2fd128('0x4f')](handleEntityNotFound(_0x4cbfa1,null))[_0x2fd128('0x4f')](function(_0xa6fc26){const _0x4032be=_0x2fd128;if(_0xa6fc26)return _0x3aee58[_0x4032be('0x55')]=_0xa6fc26[_0x4032be('0x39')]({'plain':!![]}),interaction_log['info'](_0x4032be('0x51'),_0x1736bb[_0x4032be('0x5f')]['id'],_0x1736bb[_0x4032be('0x5f')][_0x4032be('0x2b')],_0x1736bb['user'][_0x4032be('0x20')],_0x3aee58[_0x4032be('0x55')]['id'],_0x1736bb['body']?JSON[_0x4032be('0x37')](_0x1736bb[_0x4032be('0x1a')]):_0x4032be('0x1')),respondWithRpcPromise(_0x4032be('0x61'),_0x4032be('0x19'),_0x3aee58);return null;})[_0x2fd128('0x4f')](function(_0x33f444){const _0x5aafbf=_0x2fd128;if(_0x33f444)return _0x33f444[_0x5aafbf('0x42')][_0x5aafbf('0x11')]=util[_0x5aafbf('0x1e')]('SIP/%s',_0x1736bb['user'][_0x5aafbf('0x2b')]),_0x33f444[_0x5aafbf('0x42')][_0x5aafbf('0x47')]=_0x3aee58['channel'],_0x33f444[_0x5aafbf('0x42')][_0x5aafbf('0x54')]=_0x5aafbf('0x69'),respondWithRpcPromise(_0x5aafbf('0x63'),'EventManager',{'event':_0x5aafbf('0x15'),'message':_0x33f444[_0x5aafbf('0x42')]},client9002),_0x3aee58;return null;})[_0x2fd128('0x4f')](respondWithResult(_0x4cbfa1,null))[_0x2fd128('0x2c')](handleError(_0x4cbfa1,null));}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index 7146355..22e2c7f 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a81_0x1006=['save','exports','emit','../../mysqldb','setMaxListeners','ChatMessage','remove'];(function(_0x27362b,_0x10066b){const _0x75c74e=function(_0x4b7b28){while(--_0x4b7b28){_0x27362b['push'](_0x27362b['shift']());}};_0x75c74e(++_0x10066b);}(a81_0x1006,0x1dc));const a81_0x75c7=function(_0x27362b,_0x10066b){_0x27362b=_0x27362b-0x0;let _0x75c74e=a81_0x1006[_0x27362b];return _0x75c74e;};const _0x9a90ce=a81_0x75c7;'use strict';const EventEmitter=require('events'),ChatMessage=require(_0x9a90ce('0x3'))['db'][_0x9a90ce('0x5')],ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x9a90ce('0x4')](0x0);const events={'afterCreate':_0x9a90ce('0x0'),'afterUpdate':'update','afterDestroy':_0x9a90ce('0x6')};function emitEvent(_0x4b7b28){return function(_0x20d3f7){const _0x511e3e=a81_0x75c7;ChatMessageEvents[_0x511e3e('0x2')](_0x4b7b28+':'+_0x20d3f7['id'],_0x20d3f7),ChatMessageEvents[_0x511e3e('0x2')](_0x4b7b28,_0x20d3f7);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatMessage['addHook'](e,emitEvent(event));}}module[_0x9a90ce('0x1')]=ChatMessageEvents; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.model.js b/server/api/chatMessage/chatMessage.model.js index f9a1e37..7a49e9c 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a82_0x2097=['createdAt','catch','body','toLowerCase','out','chat_messages','direction','ChatInteractionId','error','ChatInteraction','update','exports','fti_chat_messages','utf8mb4','define','models','then','findOne'];(function(_0x4b3fbd,_0x2097d7){const _0x54b004=function(_0x3bb10c){while(--_0x3bb10c){_0x4b3fbd['push'](_0x4b3fbd['shift']());}};_0x54b004(++_0x2097d7);}(a82_0x2097,0xf6));const a82_0x54b0=function(_0x4b3fbd,_0x2097d7){_0x4b3fbd=_0x4b3fbd-0x0;let _0x54b004=a82_0x2097[_0x4b3fbd];return _0x54b004;};const _0x50e930=a82_0x54b0;'use strict';const _=require('lodash'),attributes=require('./chatMessage.attributes');module[_0x50e930('0x11')]=function(_0x3bb10c){const _0x357c35=_0x50e930,_0x11d81b=_0x3bb10c[_0x357c35('0x3')],_0x1fb97f=_0x3bb10c[_0x357c35('0x2')]('ChatMessage',attributes,{'tableName':_0x357c35('0xb'),'paranoid':![],'indexes':[{'name':_0x357c35('0x0'),'fields':[_0x357c35('0x8')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4fcea8){const _0x2319cc=_0x357c35,_0x6212e4=_0x4fcea8['get']({'plain':!![]});(_0x6212e4['direction'][_0x2319cc('0x9')]()==='in'||_0x6212e4[_0x2319cc('0xc')]['toLowerCase']()===_0x2319cc('0xa')&&!_0x6212e4['secret']&&!_['isNil'](_0x6212e4['UserId']))&&_0x11d81b[_0x2319cc('0xf')][_0x2319cc('0x5')]({'where':{'id':_0x6212e4[_0x2319cc('0xd')]}})[_0x2319cc('0x4')](function(_0x5169e2){const _0x4ba6db=_0x2319cc;_0x5169e2&&_0x5169e2[_0x4ba6db('0x10')]({'lastMsgAt':_0x6212e4[_0x4ba6db('0x6')],'lastMsgDirection':_0x6212e4['direction'][_0x4ba6db('0x9')]()});})[_0x2319cc('0x7')](function(_0x222b05){const _0x30a526=_0x2319cc;console[_0x30a526('0xe')](_0x222b05);});}},'charset':_0x357c35('0x1'),'collate':'utf8mb4_unicode_ci'});return _0x1fb97f;}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index e81cb7a..0f858cf 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a83_0x1d0a=['./chatMessage.socket','../../config/logger','catch','rpc','stringify','ChatMessage','body','../../mysqldb','message','options','error','../../rediscache','create','info','debug','CreateChatMessage','then'];(function(_0x394055,_0x1d0a05){const _0x15757d=function(_0x58b802){while(--_0x58b802){_0x394055['push'](_0x394055['shift']());}};_0x15757d(++_0x1d0a05);}(a83_0x1d0a,0x1c6));const a83_0x1575=function(_0x394055,_0x1d0a05){_0x394055=_0x394055-0x0;let _0x15757d=a83_0x1d0a[_0x394055];return _0x15757d;};const _0x453130=a83_0x1575;'use strict';const db=require(_0x453130('0xc'))['db'],logger=require(_0x453130('0x6'))(_0x453130('0x8')),{getSocket}=require(_0x453130('0x10')),socket=getSocket();require(_0x453130('0x5'))['register'](socket),exports['CreateChatMessage']=function(_0x58b802){const _0x95b928=this;return new Promise(function(_0x4d19ba,_0x70f0a8){const _0x1aac66=a83_0x1575;return db[_0x1aac66('0xa')][_0x1aac66('0x0')](_0x58b802[_0x1aac66('0xb')],{'raw':_0x58b802[_0x1aac66('0xe')]?_0x58b802[_0x1aac66('0xe')]['raw']===undefined?!![]:![]:!![]})[_0x1aac66('0x4')](function(_0x16c2f1){const _0x2144d7=_0x1aac66;logger[_0x2144d7('0x1')]('CreateChatMessage',_0x58b802),logger[_0x2144d7('0x2')]('CreateChatMessage',_0x58b802,JSON[_0x2144d7('0x9')](_0x16c2f1)),_0x4d19ba(_0x16c2f1);})[_0x1aac66('0x7')](function(_0x233634){const _0x5b2feb=_0x1aac66;logger[_0x5b2feb('0xf')](_0x5b2feb('0x3'),_0x233634[_0x5b2feb('0xd')],_0x58b802),_0x70f0a8(_0x95b928[_0x5b2feb('0xf')](0x1f4,_0x233634[_0x5b2feb('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index 121bcbf..cb40fb2 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a84_0x2a03=['emit','length','update','chatMessage:','register','./chatMessage.events','remove'];(function(_0x535c7b,_0x2a0313){const _0x32073d=function(_0x299af7){while(--_0x299af7){_0x535c7b['push'](_0x535c7b['shift']());}};_0x32073d(++_0x2a0313);}(a84_0x2a03,0x1b4));const a84_0x3207=function(_0x535c7b,_0x2a0313){_0x535c7b=_0x535c7b-0x0;let _0x32073d=a84_0x2a03[_0x535c7b];return _0x32073d;};const _0x2e2e7e=a84_0x3207;'use strict';const ChatMessageEvents=require(_0x2e2e7e('0x3')),events=['save',_0x2e2e7e('0x4'),_0x2e2e7e('0x0')];function createListener(_0x299af7,_0x397cb7){return function(_0x575d19){const _0x5e7cc9=a84_0x3207;_0x397cb7[_0x5e7cc9('0x5')](_0x299af7,_0x575d19);};}exports[_0x2e2e7e('0x2')]=function(_0x583f67){const _0xefd6ad=_0x2e2e7e;for(let _0x1f3c7a=0x0,_0x181afb=events[_0xefd6ad('0x6')];_0x1f3c7a<_0x181afb;_0x1f3c7a++){const _0x25ce94=events[_0x1f3c7a],_0x10281a=createListener(_0xefd6ad('0x1')+_0x25ce94,_0x583f67);ChatMessageEvents['on'](_0x25ce94,_0x10281a);}}; \ No newline at end of file +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 diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index b7b51c4..965f0ff 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a85_0x2d69=['describe','express','/describe','put','get','exports','Router','delete','show','reject','../../components/auth/service','/:id','./chatMessage.controller','isAuthenticated','update','post','create'];(function(_0x2a7cbb,_0x2d6977){const _0xfa0687=function(_0x1ccaa2){while(--_0x1ccaa2){_0x2a7cbb['push'](_0x2a7cbb['shift']());}};_0xfa0687(++_0x2d6977);}(a85_0x2d69,0xf8));const a85_0xfa06=function(_0x2a7cbb,_0x2d6977){_0x2a7cbb=_0x2a7cbb-0x0;let _0xfa0687=a85_0x2d69[_0x2a7cbb];return _0xfa0687;};const _0x83ae91=a85_0xfa06;'use strict';const express=require(_0x83ae91('0x8')),router=express[_0x83ae91('0xd')](),auth=require(_0x83ae91('0x0')),interaction=require('../../components/interaction/service'),controller=require(_0x83ae91('0x2'));router[_0x83ae91('0xb')]('/',auth[_0x83ae91('0x3')](),controller['index']),router[_0x83ae91('0xb')](_0x83ae91('0x9'),auth[_0x83ae91('0x3')](),controller[_0x83ae91('0x7')]),router[_0x83ae91('0xb')](_0x83ae91('0x1'),auth[_0x83ae91('0x3')](),controller[_0x83ae91('0xf')]),router[_0x83ae91('0x5')]('/',auth[_0x83ae91('0x3')](),interaction['tracked']('chat','chatmessage:create'),controller[_0x83ae91('0x6')]),router[_0x83ae91('0xa')]('/:id',controller[_0x83ae91('0x4')]),router[_0x83ae91('0xa')]('/:id/accept',auth['isAuthenticated'](),controller['accept']),router[_0x83ae91('0xa')]('/:id/reject',auth[_0x83ae91('0x3')](),controller[_0x83ae91('0x10')]),router[_0x83ae91('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x83ae91('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index 8f50e26..bf5a380 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a86_0x28da=['sequelize','exports'];(function(_0x45d41f,_0x28daa0){const _0x3170fa=function(_0xe958f5){while(--_0xe958f5){_0x45d41f['push'](_0x45d41f['shift']());}};_0x3170fa(++_0x28daa0);}(a86_0x28da,0xae));const a86_0x3170=function(_0x45d41f,_0x28daa0){_0x45d41f=_0x45d41f-0x0;let _0x3170fa=a86_0x28da[_0x45d41f];return _0x3170fa;};const _0x4ca677=a86_0x3170;'use strict';const Sequelize=require(_0x4ca677('0x0'));module[_0x4ca677('0x1')]={'body':{'type':Sequelize['TEXT']('medium'),'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js index f5319ba..9f04860 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a87_0x29e8=['rows','keys','../../mysqldb','sequelize','status','fieldName','describe','like','Content-Range','rawAttributes','set','where','attributes','name','json','error','sendStatus','model','pick','include','../../components/parsers/qs','key','options','limit','update','api','../../config/logger','filter','offset','length','nolimit','index','findOne','filters','create','undefined','merge','type','includeAll','fields','ChatOfflineMessage','send','catch','VIRTUAL','map','intersection','query','body','count','params','destroy','then'];(function(_0x3a01df,_0x29e8d5){const _0x3c7170=function(_0x206a6a){while(--_0x206a6a){_0x3a01df['push'](_0x3a01df['shift']());}};_0x3c7170(++_0x29e8d5);}(a87_0x29e8,0x1e3));const a87_0x3c71=function(_0x3a01df,_0x29e8d5){_0x3a01df=_0x3a01df-0x0;let _0x3c7170=a87_0x29e8[_0x3a01df];return _0x3c7170;};const _0x186aa3=a87_0x3c71;'use strict';const _=require('lodash'),qs=require(_0x186aa3('0x5')),logger=require(_0x186aa3('0xb'))(_0x186aa3('0xa')),db=require(_0x186aa3('0x27'))['db'],{Op}=require(_0x186aa3('0x28'));function respondWithResult(_0x206a6a,_0x440872){return _0x440872=_0x440872||0xc8,function(_0x424e24){const _0x2a9bd7=a87_0x3c71;if(_0x424e24)return _0x206a6a[_0x2a9bd7('0x29')](_0x440872)['json'](_0x424e24);};}function respondWithFilteredResult(_0x2eda1a,_0x3f5d03){return function(_0x456958){const _0x5a6128=a87_0x3c71;if(_0x456958){const _0x13d1b6=_0x456958[_0x5a6128('0x21')],_0x4a8b07=_0x3f5d03['offset'];let _0x4afb6a=_0x3f5d03[_0x5a6128('0xd')]+_0x3f5d03[_0x5a6128('0x8')],_0x1f44a6;return _0x4afb6a>=_0x13d1b6?(_0x4afb6a=_0x13d1b6,_0x1f44a6=0xc8):_0x1f44a6=0xce,_0x2eda1a[_0x5a6128('0x29')](_0x1f44a6),_0x2eda1a[_0x5a6128('0x2f')](_0x5a6128('0x2d'),_0x4a8b07+'-'+_0x4afb6a+'/'+_0x13d1b6)[_0x5a6128('0x33')](_0x456958);}return null;};}function saveUpdates(_0xfeb6){return function(_0x907f12){const _0x1901de=a87_0x3c71;if(_0x907f12)return _0x907f12[_0x1901de('0x9')](_0xfeb6)[_0x1901de('0x24')](function(_0x2eed65){return _0x2eed65;});return null;};}function removeEntity(_0x6328af){return function(_0x49566e){const _0x57a7d2=a87_0x3c71;if(_0x49566e)return _0x49566e[_0x57a7d2('0x23')]()[_0x57a7d2('0x24')](function(){const _0x48c288=_0x57a7d2;_0x6328af[_0x48c288('0x29')](0xcc)['end']();});};}function handleEntityNotFound(_0x3202da){return function(_0x4ae160){const _0x5e6bad=a87_0x3c71;return!_0x4ae160&&_0x3202da[_0x5e6bad('0x1')](0x194),_0x4ae160;};}function handleError(_0x106f8d,_0x2345db){return _0x2345db=_0x2345db||0x1f4,function(_0x5924a4){const _0xc25686=a87_0x3c71;logger[_0xc25686('0x0')](_0x5924a4['stack']),_0x5924a4[_0xc25686('0x32')]&&delete _0x5924a4[_0xc25686('0x32')],_0x106f8d['status'](_0x2345db)[_0xc25686('0x1a')](_0x5924a4);};}exports[_0x186aa3('0x10')]=function(_0x291764,_0x3511d9){const _0x3105bb=_0x186aa3;let _0xb7e525={};const _0x1623bd={},_0xa383ff={'count':0x0,'rows':[]},_0x11738c=_['map'](db[_0x3105bb('0x19')][_0x3105bb('0x2e')],function(_0x378385){const _0x21b9c1=_0x3105bb;return{'name':_0x378385[_0x21b9c1('0x2a')],'type':_0x378385[_0x21b9c1('0x16')][_0x21b9c1('0x6')]};});_0x1623bd[_0x3105bb('0x2')]=_['map'](_0x11738c,'name'),_0x1623bd[_0x3105bb('0x1f')]=_[_0x3105bb('0x26')](_0x291764['query']),_0x1623bd[_0x3105bb('0x12')]=_['intersection'](_0x1623bd[_0x3105bb('0x2')],_0x1623bd[_0x3105bb('0x1f')]),_0xb7e525[_0x3105bb('0x31')]=_[_0x3105bb('0x1e')](_0x1623bd[_0x3105bb('0x2')],qs[_0x3105bb('0x18')](_0x291764[_0x3105bb('0x1f')][_0x3105bb('0x18')])),_0xb7e525[_0x3105bb('0x31')]=_0xb7e525[_0x3105bb('0x31')][_0x3105bb('0xe')]?_0xb7e525[_0x3105bb('0x31')]:_0x1623bd[_0x3105bb('0x2')];typeof _0x291764[_0x3105bb('0x1f')][_0x3105bb('0xf')]===_0x3105bb('0x14')&&(_0xb7e525[_0x3105bb('0x8')]=qs[_0x3105bb('0x8')](_0x291764[_0x3105bb('0x1f')][_0x3105bb('0x8')]),_0xb7e525[_0x3105bb('0xd')]=qs[_0x3105bb('0xd')](_0x291764[_0x3105bb('0x1f')][_0x3105bb('0xd')]));_0xb7e525['order']=qs['sort'](_0x291764[_0x3105bb('0x1f')]['sort']),_0xb7e525[_0x3105bb('0x30')]=qs[_0x3105bb('0x12')](_[_0x3105bb('0x3')](_0x291764['query'],_0x1623bd[_0x3105bb('0x12')]),_0x11738c);_0x291764[_0x3105bb('0x1f')][_0x3105bb('0xc')]&&(_0xb7e525['where']=_[_0x3105bb('0x15')](_0xb7e525['where'],{[Op['or']]:_[_0x3105bb('0x1d')](_0x11738c,function(_0x4bbe7f){const _0x5f1b2f=_0x3105bb;if(_0x4bbe7f[_0x5f1b2f('0x16')]!==_0x5f1b2f('0x1c')){const _0x588a45={};return _0x588a45[_0x4bbe7f[_0x5f1b2f('0x32')]]={[Op[_0x5f1b2f('0x2c')]]:'%'+_0x291764[_0x5f1b2f('0x1f')][_0x5f1b2f('0xc')]+'%'},_0x588a45;}})}));_0xb7e525=_[_0x3105bb('0x15')]({},_0xb7e525,_0x291764[_0x3105bb('0x7')]);const _0x23a8c5={'where':_0xb7e525[_0x3105bb('0x30')]};return db['ChatOfflineMessage'][_0x3105bb('0x21')](_0x23a8c5)[_0x3105bb('0x24')](function(_0xe88ff3){const _0x4762b9=_0x3105bb;return _0xa383ff[_0x4762b9('0x21')]=_0xe88ff3,_0x291764[_0x4762b9('0x1f')]['includeAll']&&(_0xb7e525[_0x4762b9('0x4')]=[{'all':!![]}]),db['ChatOfflineMessage']['findAll'](_0xb7e525);})[_0x3105bb('0x24')](function(_0x5df113){const _0xfb9974=_0x3105bb;return _0xa383ff[_0xfb9974('0x25')]=_0x5df113,_0xa383ff;})[_0x3105bb('0x24')](respondWithFilteredResult(_0x3511d9,_0xb7e525))[_0x3105bb('0x1b')](handleError(_0x3511d9,null));},exports['show']=function(_0x379c04,_0x5a548d){const _0x13468f=_0x186aa3;let _0x384a17={'raw':!![],'where':{'id':_0x379c04[_0x13468f('0x22')]['id']}};const _0x3166d5={};return _0x3166d5[_0x13468f('0x2')]=_[_0x13468f('0x26')](db[_0x13468f('0x19')]['rawAttributes']),_0x3166d5[_0x13468f('0x1f')]=_['keys'](_0x379c04[_0x13468f('0x1f')]),_0x3166d5['filters']=_[_0x13468f('0x1e')](_0x3166d5[_0x13468f('0x2')],_0x3166d5['query']),_0x384a17[_0x13468f('0x31')]=_[_0x13468f('0x1e')](_0x3166d5[_0x13468f('0x2')],qs[_0x13468f('0x18')](_0x379c04[_0x13468f('0x1f')]['fields'])),_0x384a17['attributes']=_0x384a17['attributes'][_0x13468f('0xe')]?_0x384a17[_0x13468f('0x31')]:_0x3166d5[_0x13468f('0x2')],_0x379c04[_0x13468f('0x1f')][_0x13468f('0x17')]&&(_0x384a17[_0x13468f('0x4')]=[{'all':!![]}]),_0x384a17=_['merge']({},_0x384a17,_0x379c04[_0x13468f('0x7')]),db['ChatOfflineMessage'][_0x13468f('0x11')](_0x384a17)[_0x13468f('0x24')](handleEntityNotFound(_0x5a548d,null))['then'](respondWithResult(_0x5a548d,null))[_0x13468f('0x1b')](handleError(_0x5a548d,null));},exports[_0x186aa3('0x13')]=function(_0xd6c0c9,_0xb5fa3c){const _0x44ec82=_0x186aa3;return db[_0x44ec82('0x19')]['create'](_0xd6c0c9[_0x44ec82('0x20')],{})[_0x44ec82('0x24')](respondWithResult(_0xb5fa3c,0xc9))[_0x44ec82('0x1b')](handleError(_0xb5fa3c,null));},exports[_0x186aa3('0x9')]=function(_0x5d775b,_0x547152){const _0x5bae0c=_0x186aa3;return _0x5d775b['body']['id']&&delete _0x5d775b[_0x5bae0c('0x20')]['id'],db['ChatOfflineMessage'][_0x5bae0c('0x11')]({'where':{'id':_0x5d775b['params']['id']}})[_0x5bae0c('0x24')](handleEntityNotFound(_0x547152,null))[_0x5bae0c('0x24')](saveUpdates(_0x5d775b[_0x5bae0c('0x20')],null))['then'](respondWithResult(_0x547152,null))['catch'](handleError(_0x547152,null));},exports[_0x186aa3('0x23')]=function(_0x223265,_0x5bf5e5){const _0x50b102=_0x186aa3;return db['ChatOfflineMessage'][_0x50b102('0x11')]({'where':{'id':_0x223265[_0x50b102('0x22')]['id']}})[_0x50b102('0x24')](handleEntityNotFound(_0x5bf5e5,null))[_0x50b102('0x24')](removeEntity(_0x5bf5e5,null))['catch'](handleError(_0x5bf5e5,null));},exports['describe']=function(_0x3d42c5,_0xd78b95){const _0x4f7fa2=_0x186aa3;return db[_0x4f7fa2('0x19')][_0x4f7fa2('0x2b')]()[_0x4f7fa2('0x24')](respondWithResult(_0xd78b95,null))[_0x4f7fa2('0x1b')](handleError(_0xd78b95,null));}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index 1dbb6e5..6eb50ed 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a88_0xf5f0=['utf8mb4','ChatOfflineMessage','chat_offline_messages'];(function(_0x42ca2c,_0xf5f0de){const _0x251d6a=function(_0x3fb871){while(--_0x3fb871){_0x42ca2c['push'](_0x42ca2c['shift']());}};_0x251d6a(++_0xf5f0de);}(a88_0xf5f0,0x130));const a88_0x251d=function(_0x42ca2c,_0xf5f0de){_0x42ca2c=_0x42ca2c-0x0;let _0x251d6a=a88_0xf5f0[_0x42ca2c];return _0x251d6a;};'use strict';const attributes=require('./chatOfflineMessage.attributes');module['exports']=function(_0x3fb871){const _0x1e8cd4=a88_0x251d,_0x2d91e7=_0x3fb871['define'](_0x1e8cd4('0x0'),attributes,{'tableName':_0x1e8cd4('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1e8cd4('0x2'),'collate':'utf8mb4_unicode_ci'});return _0x2d91e7;}; \ No newline at end of file +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 diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index 66d4878..98ac626 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a89_0x17eb=['../../components/auth/service','Router','destroy','update','index','put','show','describe','get','create','isAuthenticated','post','/:id','/describe'];(function(_0x526e58,_0x17eb66){const _0x458507=function(_0x54ea6d){while(--_0x54ea6d){_0x526e58['push'](_0x526e58['shift']());}};_0x458507(++_0x17eb66);}(a89_0x17eb,0x1f2));const a89_0x4585=function(_0x526e58,_0x17eb66){_0x526e58=_0x526e58-0x0;let _0x458507=a89_0x17eb[_0x526e58];return _0x458507;};const _0x14c9a6=a89_0x4585;'use strict';const express=require('express'),router=express[_0x14c9a6('0x7')](),auth=require(_0x14c9a6('0x6')),controller=require('./chatOfflineMessage.controller');router[_0x14c9a6('0x0')]('/',auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0xa')]),router['get'](_0x14c9a6('0x5'),auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0xd')]),router[_0x14c9a6('0x0')](_0x14c9a6('0x4'),auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0xc')]),router[_0x14c9a6('0x3')]('/',auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0x1')]),router[_0x14c9a6('0xb')](_0x14c9a6('0x4'),auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0x9')]),router['delete']('/:id',auth[_0x14c9a6('0x2')](),controller[_0x14c9a6('0x8')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 9c4e2ca..0f83663 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a90_0x4abd=['exports','STRING','sequelize','timeout','ENUM'];(function(_0x2b0724,_0x4abd21){const _0x591301=function(_0x861c3){while(--_0x861c3){_0x2b0724['push'](_0x2b0724['shift']());}};_0x591301(++_0x4abd21);}(a90_0x4abd,0x15a));const a90_0x5913=function(_0x2b0724,_0x4abd21){_0x2b0724=_0x2b0724-0x0;let _0x591301=a90_0x4abd[_0x2b0724];return _0x591301;};const _0x2ee50d=a90_0x5913;'use strict';const Sequelize=require(_0x2ee50d('0x1'));module[_0x2ee50d('0x4')]={'name':{'type':Sequelize[_0x2ee50d('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0x2ee50d('0x3')]('mouseOver',_0x2ee50d('0x2')),'defaultValue':'mouseOver'},'selector':{'type':Sequelize[_0x2ee50d('0x0')]},'timeout':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index e974af5..d7be57e 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a91_0x48fb=['keys','ChatProactiveAction','update','error','body','query','length','catch','lodash','destroy','merge','status','fields','intersection','json','api','../../mysqldb','end','attributes','params','model','options','then','create','stack','include','findOne','name','rawAttributes','filters'];(function(_0x3a4f19,_0x48fbff){const _0x244193=function(_0x339c2b){while(--_0x339c2b){_0x3a4f19['push'](_0x3a4f19['shift']());}};_0x244193(++_0x48fbff);}(a91_0x48fb,0x119));const a91_0x2441=function(_0x3a4f19,_0x48fbff){_0x3a4f19=_0x3a4f19-0x0;let _0x244193=a91_0x48fb[_0x3a4f19];return _0x244193;};const _0x26d614=a91_0x2441;'use strict';const _=require(_0x26d614('0x1b')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x26d614('0x4')),db=require(_0x26d614('0x5'))['db'];function respondWithResult(_0x339c2b,_0x53612){return _0x53612=_0x53612||0xc8,function(_0x1f799b){const _0x27e2d3=a91_0x2441;if(_0x1f799b)return _0x339c2b['status'](_0x53612)[_0x27e2d3('0x3')](_0x1f799b);};}function saveUpdates(_0x51dcdf){return function(_0x4fcc7c){const _0x2a00b8=a91_0x2441;if(_0x4fcc7c)return _0x4fcc7c[_0x2a00b8('0x15')](_0x51dcdf)['then'](function(_0x2c94e6){return _0x2c94e6;});return null;};}function removeEntity(_0x31b9b3){return function(_0x527f8e){const _0xf8e8b3=a91_0x2441;if(_0x527f8e)return _0x527f8e[_0xf8e8b3('0x1c')]()[_0xf8e8b3('0xb')](function(){const _0x465a78=_0xf8e8b3;_0x31b9b3['status'](0xcc)[_0x465a78('0x6')]();});};}function handleEntityNotFound(_0x31dfdb){return function(_0x6eaf0a){return!_0x6eaf0a&&_0x31dfdb['sendStatus'](0x194),_0x6eaf0a;};}function handleError(_0x2aa1a2,_0x327461){return _0x327461=_0x327461||0x1f4,function(_0x4e70e0){const _0x15982e=a91_0x2441;logger[_0x15982e('0x16')](_0x4e70e0[_0x15982e('0xd')]),_0x4e70e0[_0x15982e('0x10')]&&delete _0x4e70e0[_0x15982e('0x10')],_0x2aa1a2[_0x15982e('0x0')](_0x327461)['send'](_0x4e70e0);};}exports['show']=function(_0x494b24,_0x229b70){const _0x4b9ff8=_0x26d614;let _0x372107={'raw':!![],'where':{'id':_0x494b24['params']['id']}};const _0x3d1c22={};return _0x3d1c22['model']=_[_0x4b9ff8('0x13')](db[_0x4b9ff8('0x14')][_0x4b9ff8('0x11')]),_0x3d1c22[_0x4b9ff8('0x18')]=_['keys'](_0x494b24[_0x4b9ff8('0x18')]),_0x3d1c22[_0x4b9ff8('0x12')]=_[_0x4b9ff8('0x2')](_0x3d1c22[_0x4b9ff8('0x9')],_0x3d1c22[_0x4b9ff8('0x18')]),_0x372107['attributes']=_[_0x4b9ff8('0x2')](_0x3d1c22[_0x4b9ff8('0x9')],qs[_0x4b9ff8('0x1')](_0x494b24[_0x4b9ff8('0x18')][_0x4b9ff8('0x1')])),_0x372107[_0x4b9ff8('0x7')]=_0x372107['attributes'][_0x4b9ff8('0x19')]?_0x372107[_0x4b9ff8('0x7')]:_0x3d1c22[_0x4b9ff8('0x9')],_0x494b24['query']['includeAll']&&(_0x372107[_0x4b9ff8('0xe')]=[{'all':!![]}]),_0x372107=_[_0x4b9ff8('0x1d')]({},_0x372107,_0x494b24[_0x4b9ff8('0xa')]),db[_0x4b9ff8('0x14')]['findOne'](_0x372107)['then'](handleEntityNotFound(_0x229b70,null))[_0x4b9ff8('0xb')](respondWithResult(_0x229b70,null))['catch'](handleError(_0x229b70,null));},exports[_0x26d614('0xc')]=function(_0x43e22f,_0x12e38e){const _0x2d10f3=_0x26d614;return db[_0x2d10f3('0x14')]['create'](_0x43e22f[_0x2d10f3('0x17')],{})[_0x2d10f3('0xb')](respondWithResult(_0x12e38e,0xc9))[_0x2d10f3('0x1a')](handleError(_0x12e38e,null));},exports['update']=function(_0x550031,_0x23faf6){const _0x42cfca=_0x26d614;return _0x550031['body']['id']&&delete _0x550031[_0x42cfca('0x17')]['id'],db[_0x42cfca('0x14')][_0x42cfca('0xf')]({'where':{'id':_0x550031[_0x42cfca('0x8')]['id']}})[_0x42cfca('0xb')](handleEntityNotFound(_0x23faf6,null))['then'](saveUpdates(_0x550031[_0x42cfca('0x17')],null))[_0x42cfca('0xb')](respondWithResult(_0x23faf6,null))['catch'](handleError(_0x23faf6,null));},exports['destroy']=function(_0x174bd0,_0x425e05){const _0x5e2730=_0x26d614;return db[_0x5e2730('0x14')][_0x5e2730('0xf')]({'where':{'id':_0x174bd0[_0x5e2730('0x8')]['id']}})[_0x5e2730('0xb')](handleEntityNotFound(_0x425e05,null))['then'](removeEntity(_0x425e05,null))[_0x5e2730('0x1a')](handleError(_0x425e05,null));}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index d4576bd..98e0232 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a92_0xb268=['exports','ChatProactiveAction','./chatProactiveAction.attributes'];(function(_0x521f71,_0xb26854){const _0xeccb0b=function(_0x131073){while(--_0x131073){_0x521f71['push'](_0x521f71['shift']());}};_0xeccb0b(++_0xb26854);}(a92_0xb268,0x87));const a92_0xeccb=function(_0x521f71,_0xb26854){_0x521f71=_0x521f71-0x0;let _0xeccb0b=a92_0xb268[_0x521f71];return _0xeccb0b;};const _0x25e747=a92_0xeccb;'use strict';const attributes=require(_0x25e747('0x2'));module[_0x25e747('0x0')]=function(_0x131073){const _0x566ffc=_0x25e747,_0x3c4a6e=_0x131073['define'](_0x566ffc('0x1'),attributes,{'tableName':'chat_proactive_actions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c4a6e;}; \ No newline at end of file +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 diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index a3c7159..38ce0e9 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a93_0x2555=['/:id','./chatProactiveAction.controller','show','exports','post','../../components/auth/service','destroy','put','isAuthenticated','update'];(function(_0xba8510,_0x255572){const _0x10d827=function(_0x57c2b2){while(--_0x57c2b2){_0xba8510['push'](_0xba8510['shift']());}};_0x10d827(++_0x255572);}(a93_0x2555,0x12b));const a93_0x10d8=function(_0xba8510,_0x255572){_0xba8510=_0xba8510-0x0;let _0x10d827=a93_0x2555[_0xba8510];return _0x10d827;};const _0x5df5f0=a93_0x10d8;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5df5f0('0x6')),controller=require(_0x5df5f0('0x2'));router['get']('/:id',auth[_0x5df5f0('0x9')](),controller[_0x5df5f0('0x3')]),router[_0x5df5f0('0x5')]('/',auth[_0x5df5f0('0x9')](),controller['create']),router[_0x5df5f0('0x8')](_0x5df5f0('0x1'),auth[_0x5df5f0('0x9')](),controller[_0x5df5f0('0x0')]),router['delete']('/:id',auth[_0x5df5f0('0x9')](),controller[_0x5df5f0('0x7')]),module[_0x5df5f0('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index 9b63f90..7716043 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a94_0xf268=['ENUM','STRING','beepall','exports','roundrobin','sequelize','INTEGER','rrmemory'];(function(_0x413379,_0xf26862){const _0x275f52=function(_0x9a1d9a){while(--_0x9a1d9a){_0x413379['push'](_0x413379['shift']());}};_0x275f52(++_0xf26862);}(a94_0xf268,0xf6));const a94_0x275f=function(_0x413379,_0xf26862){_0x413379=_0x413379-0x0;let _0x275f52=a94_0xf268[_0x413379];return _0x275f52;};const _0x375c2e=a94_0x275f;'use strict';const Sequelize=require(_0x375c2e('0x7'));module[_0x375c2e('0x5')]={'name':{'type':Sequelize[_0x375c2e('0x3')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x375c2e('0x0')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x375c2e('0x2')](_0x375c2e('0x1'),_0x375c2e('0x4'),_0x375c2e('0x6'))}}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index b284fc4..6ae340c 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a95_0x48a4=['transaction','intersection','lodash','UserChatQueue','api','ChatQueueId\x20=\x20?','body','userChatQueue:save','options','user_has_teams','userChatQueue:remove','includes','rawAttributes','length','userProfileId','UserProfileResource','undefined','SELECT','then','getTeams','order','include','forEach','findAll','addTeams','team_has_chat_queues','register','catch','destroy','ChatQueue','online','format','addAgents','User','role','removeTeams','like','agent','ids','findOne','../../mysqldb','value','pick','query','isArray','nolimit','update','emit','json','chatPause','compact','end','ut.TeamId\x20=\x20tq.TeamId','all','get','name','../../rediscache','omit','flatMap','SIP','describe','create','key','sendStatus','includeAll','model','findAndCountAll','Team','type','index','UserProfileSection','Content-Range','status','user','VIRTUAL','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','%s/%s','ChatQueues','filter','attributes','offset','rows','fields','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','set','removeAgents','each','error','filters','keys','Agents','getAgents','voicePause','sort','merge','params','sequelize','clone','where','updatedAt','autoAssociation','../../components/parsers/qs','fieldName','ChatQueueId','map','createdAt','join','push','ut.UserId\x20=\x20?'];(function(_0x4c7e40,_0x48a487){const _0x2eb13c=function(_0x3cf006){while(--_0x3cf006){_0x4c7e40['push'](_0x4c7e40['shift']());}};_0x2eb13c(++_0x48a487);}(a95_0x48a4,0x1d0));const a95_0x2eb1=function(_0x4c7e40,_0x48a487){_0x4c7e40=_0x4c7e40-0x0;let _0x2eb13c=a95_0x48a4[_0x4c7e40];return _0x2eb13c;};const _0x1bd819=a95_0x2eb1;'use strict';const util=require('util'),_=require(_0x1bd819('0x58')),squel=require('squel'),qs=require(_0x1bd819('0x4e')),logger=require('../../config/logger')(_0x1bd819('0x5a')),{getSocket}=require(_0x1bd819('0x20')),db=require(_0x1bd819('0x10'))['db'],{Op,QueryTypes}=require(_0x1bd819('0x49')),socket=getSocket();require('./chatQueue.socket')[_0x1bd819('0x2')](socket);function respondWithStatusCode(_0x3cf006,_0x485460){return _0x485460=_0x485460||0xcc,function(_0x48f262){const _0x4da1e7=a95_0x2eb1;if(_0x48f262)return _0x3cf006[_0x4da1e7('0x27')](_0x485460);return _0x3cf006[_0x4da1e7('0x30')](_0x485460)[_0x4da1e7('0x1b')]();};}function respondWithResult(_0x4b71c8,_0x81a469){return _0x81a469=_0x81a469||0xc8,function(_0xc87eb7){const _0x167986=a95_0x2eb1;if(_0xc87eb7)return _0x4b71c8[_0x167986('0x30')](_0x81a469)[_0x167986('0x18')](_0xc87eb7);};}function respondWithFilteredResult(_0x55584f,_0x1d337c){return function(_0xac2d44){const _0x4fd7d4=a95_0x2eb1;if(_0xac2d44){const _0x1bf9e5=_0xac2d44['count'],_0x55d2c9=_0x1d337c[_0x4fd7d4('0x38')];let _0x46cbbb=_0x1d337c[_0x4fd7d4('0x38')]+_0x1d337c['limit'],_0x210c26;return _0x46cbbb>=_0x1bf9e5?(_0x46cbbb=_0x1bf9e5,_0x210c26=0xc8):_0x210c26=0xce,_0x55584f[_0x4fd7d4('0x30')](_0x210c26),_0x55584f[_0x4fd7d4('0x3d')](_0x4fd7d4('0x2f'),_0x55d2c9+'-'+_0x46cbbb+'/'+_0x1bf9e5)[_0x4fd7d4('0x18')](_0xac2d44);}return null;};}function saveUpdates(_0x3c86d1){return function(_0x29ecc9){const _0x47fb49=a95_0x2eb1;if(_0x29ecc9)return _0x29ecc9[_0x47fb49('0x16')](_0x3c86d1)[_0x47fb49('0x68')](function(_0x3bd4a0){return _0x3bd4a0;});return null;};}function removeEntity(_0x57e0fb){return function(_0x3159d0){const _0x1a19d7=a95_0x2eb1;if(_0x3159d0)return _0x3159d0[_0x1a19d7('0x4')]()[_0x1a19d7('0x68')](function(){const _0x408471=_0x1a19d7,_0x2dd479=_0x3159d0['get']({'plain':!![]}),_0x3c6a37='ChatQueues';return db[_0x408471('0x65')]['destroy']({'where':{'type':_0x3c6a37,'resourceId':_0x2dd479['id']}})[_0x408471('0x68')](function(){return _0x3159d0;});})[_0x1a19d7('0x68')](function(){const _0x2297d7=_0x1a19d7;_0x57e0fb['status'](0xcc)[_0x2297d7('0x1b')]();});};}function handleEntityNotFound(_0x506cfa){return function(_0x5b6023){return!_0x5b6023&&_0x506cfa['sendStatus'](0x194),_0x5b6023;};}function handleError(_0x234c64,_0x28093e){return _0x28093e=_0x28093e||0x1f4,function(_0x3e4053){const _0xe25dfb=a95_0x2eb1;logger['error'](_0x3e4053['stack']),_0x3e4053[_0xe25dfb('0x1f')]&&delete _0x3e4053[_0xe25dfb('0x1f')],_0x234c64[_0xe25dfb('0x30')](_0x28093e)['send'](_0x3e4053);};}exports[_0x1bd819('0x2d')]=function(_0x5267b3,_0x149fb0){const _0x51721c=_0x1bd819;let _0x5313ed={};const _0x51e39c={},_0x2a2542={'count':0x0,'rows':[]},_0x335978=_['map'](db[_0x51721c('0x5')][_0x51721c('0x62')],function(_0xce760a){const _0x39a969=_0x51721c;return{'name':_0xce760a[_0x39a969('0x4f')],'type':_0xce760a['type'][_0x39a969('0x26')]};});_0x51e39c[_0x51721c('0x29')]=_[_0x51721c('0x51')](_0x335978,_0x51721c('0x1f')),_0x51e39c[_0x51721c('0x13')]=_[_0x51721c('0x42')](_0x5267b3[_0x51721c('0x13')]),_0x51e39c[_0x51721c('0x41')]=_[_0x51721c('0x57')](_0x51e39c[_0x51721c('0x29')],_0x51e39c[_0x51721c('0x13')]),_0x5313ed[_0x51721c('0x37')]=_[_0x51721c('0x57')](_0x51e39c['model'],qs['fields'](_0x5267b3[_0x51721c('0x13')][_0x51721c('0x3a')])),_0x5313ed[_0x51721c('0x37')]=_0x5313ed[_0x51721c('0x37')][_0x51721c('0x63')]?_0x5313ed[_0x51721c('0x37')]:_0x51e39c[_0x51721c('0x29')];typeof _0x5267b3[_0x51721c('0x13')][_0x51721c('0x15')]===_0x51721c('0x66')&&(_0x5313ed['limit']=qs[_0x51721c('0x3b')](_0x5267b3['query']['limit']),_0x5313ed[_0x51721c('0x38')]=qs[_0x51721c('0x38')](_0x5267b3[_0x51721c('0x13')][_0x51721c('0x38')]));_0x5313ed[_0x51721c('0x6a')]=qs['sort'](_0x5267b3[_0x51721c('0x13')][_0x51721c('0x46')]),_0x5313ed['where']=qs[_0x51721c('0x41')](_['pick'](_0x5267b3[_0x51721c('0x13')],_0x51e39c[_0x51721c('0x41')]),_0x335978);_0x5267b3[_0x51721c('0x13')][_0x51721c('0x36')]&&(_0x5313ed['where']=_[_0x51721c('0x47')](_0x5313ed['where'],{[Op['or']]:_['map'](_0x335978,function(_0x5bee5a){const _0x2f1272=_0x51721c;if(_0x5bee5a[_0x2f1272('0x2c')]!==_0x2f1272('0x32')){const _0x12d810={};return _0x12d810[_0x5bee5a[_0x2f1272('0x1f')]]={[Op[_0x2f1272('0xc')]]:'%'+_0x5267b3[_0x2f1272('0x13')][_0x2f1272('0x36')]+'%'},_0x12d810;}})}));_0x5313ed=_['merge']({},_0x5313ed,_0x5267b3['options']);const _0x2aee2d={'where':_0x5313ed[_0x51721c('0x4b')]};return db['ChatQueue']['count'](_0x2aee2d)[_0x51721c('0x68')](function(_0x3c58c3){const _0xb4eca3=_0x51721c;return _0x2a2542['count']=_0x3c58c3,_0x5267b3['query'][_0xb4eca3('0x28')]&&(_0x5313ed[_0xb4eca3('0x6b')]=[{'all':!![]}]),db['ChatQueue'][_0xb4eca3('0x6d')](_0x5313ed);})[_0x51721c('0x68')](function(_0x574fc7){const _0x1ada27=_0x51721c;return _0x2a2542[_0x1ada27('0x39')]=_0x574fc7,_0x2a2542;})[_0x51721c('0x68')](respondWithFilteredResult(_0x149fb0,_0x5313ed))[_0x51721c('0x3')](handleError(_0x149fb0,null));},exports['show']=function(_0x43c04e,_0x5d0511){const _0x5ecc46=_0x1bd819;let _0x2fe056={'raw':!![],'where':{'id':_0x43c04e[_0x5ecc46('0x48')]['id']}};const _0x1090ca={};return _0x1090ca['model']=_[_0x5ecc46('0x42')](db['ChatQueue']['rawAttributes']),_0x1090ca[_0x5ecc46('0x13')]=_[_0x5ecc46('0x42')](_0x43c04e[_0x5ecc46('0x13')]),_0x1090ca[_0x5ecc46('0x41')]=_[_0x5ecc46('0x57')](_0x1090ca['model'],_0x1090ca[_0x5ecc46('0x13')]),_0x2fe056[_0x5ecc46('0x37')]=_[_0x5ecc46('0x57')](_0x1090ca['model'],qs[_0x5ecc46('0x3a')](_0x43c04e['query']['fields'])),_0x2fe056[_0x5ecc46('0x37')]=_0x2fe056[_0x5ecc46('0x37')][_0x5ecc46('0x63')]?_0x2fe056['attributes']:_0x1090ca['model'],_0x43c04e[_0x5ecc46('0x13')][_0x5ecc46('0x28')]&&(_0x2fe056[_0x5ecc46('0x6b')]=[{'all':!![]}]),_0x2fe056=_[_0x5ecc46('0x47')]({},_0x2fe056,_0x43c04e[_0x5ecc46('0x5e')]),db[_0x5ecc46('0x5')][_0x5ecc46('0xf')](_0x2fe056)[_0x5ecc46('0x68')](handleEntityNotFound(_0x5d0511,null))[_0x5ecc46('0x68')](respondWithResult(_0x5d0511,null))[_0x5ecc46('0x3')](handleError(_0x5d0511,null));},exports[_0x1bd819('0x25')]=function(_0x1ccc90,_0x5c6a32){const _0x2b8238=_0x1bd819;return db['ChatQueue'][_0x2b8238('0x25')](_0x1ccc90[_0x2b8238('0x5c')],{})[_0x2b8238('0x68')](function(_0x59e032){const _0x59ab5b=_0x2b8238,_0x144898=_0x1ccc90[_0x59ab5b('0x31')][_0x59ab5b('0x1e')]({'plain':!![]});if(!_0x144898)throw new Error(_0x59ab5b('0x3c'));if(_0x144898[_0x59ab5b('0xa')]===_0x59ab5b('0x31')){const _0x23d775=_0x59e032[_0x59ab5b('0x1e')]({'plain':!![]}),_0x13c625=_0x59ab5b('0x35');return db[_0x59ab5b('0x2e')][_0x59ab5b('0xf')]({'where':{'name':_0x13c625,'userProfileId':_0x144898[_0x59ab5b('0x64')]},'raw':!![]})[_0x59ab5b('0x68')](function(_0x545980){const _0x2eba1a=_0x59ab5b;return _0x545980&&_0x545980[_0x2eba1a('0x4d')]===0x0?db[_0x2eba1a('0x65')][_0x2eba1a('0x25')]({'name':_0x23d775[_0x2eba1a('0x1f')],'resourceId':_0x23d775['id'],'type':_0x545980[_0x2eba1a('0x1f')],'sectionId':_0x545980['id']},{})[_0x2eba1a('0x68')](function(){return _0x59e032;}):_0x59e032;})['catch'](function(_0x29718c){const _0x141f7a=_0x59ab5b;logger[_0x141f7a('0x40')](_0x141f7a('0x33'),_0x29718c);throw _0x29718c;});}return _0x59e032;})[_0x2b8238('0x68')](respondWithResult(_0x5c6a32,0xc9))[_0x2b8238('0x3')](handleError(_0x5c6a32,null));},exports['update']=function(_0x5d31ec,_0x33f170){const _0x25bd63=_0x1bd819;return _0x5d31ec['body']['id']&&delete _0x5d31ec[_0x25bd63('0x5c')]['id'],db[_0x25bd63('0x5')][_0x25bd63('0xf')]({'where':{'id':_0x5d31ec['params']['id']}})[_0x25bd63('0x68')](handleEntityNotFound(_0x33f170,null))['then'](saveUpdates(_0x5d31ec[_0x25bd63('0x5c')],null))[_0x25bd63('0x68')](respondWithResult(_0x33f170,null))[_0x25bd63('0x3')](handleError(_0x33f170,null));},exports[_0x1bd819('0x4')]=function(_0xfaf16e,_0x47dcdd){const _0x24380e=_0x1bd819;return db[_0x24380e('0x5')][_0x24380e('0xf')]({'where':{'id':_0xfaf16e['params']['id']}})[_0x24380e('0x68')](handleEntityNotFound(_0x47dcdd,null))['then'](removeEntity(_0x47dcdd,null))[_0x24380e('0x3')](handleError(_0x47dcdd,null));},exports['describe']=function(_0x32a018,_0x24e39e){const _0x3819e7=_0x1bd819;return db[_0x3819e7('0x5')][_0x3819e7('0x24')]()[_0x3819e7('0x68')](respondWithResult(_0x24e39e,null))['catch'](handleError(_0x24e39e,null));},exports['getMembers']=function(_0xafb8ec,_0x5bdff7){const _0x1c5cfd=_0x1bd819;let _0x31f7b7={'raw':!![],'where':{}};const _0x3f273e={};let _0x272acf;return db['ChatQueue'][_0x1c5cfd('0xf')]({'where':{'id':_0xafb8ec[_0x1c5cfd('0x48')]['id']}})[_0x1c5cfd('0x68')](handleEntityNotFound(_0x5bdff7,null))[_0x1c5cfd('0x68')](function(_0x5bf969){const _0x338b03=_0x1c5cfd;if(_0x5bf969)return _0x272acf=_0x5bf969[_0x338b03('0x1e')]({'plain':!![]}),_0x3f273e['model']=_[_0x338b03('0x42')](db['UserChatQueue'][_0x338b03('0x62')]),_0x3f273e[_0x338b03('0x13')]=_[_0x338b03('0x42')](_0xafb8ec['query']),_0x3f273e[_0x338b03('0x41')]=_[_0x338b03('0x57')](_0x3f273e[_0x338b03('0x29')],_0x3f273e[_0x338b03('0x13')]),_0x31f7b7[_0x338b03('0x37')]=_['intersection'](_0x3f273e[_0x338b03('0x29')],qs['fields'](_0xafb8ec[_0x338b03('0x13')][_0x338b03('0x3a')])),_0x31f7b7[_0x338b03('0x37')]=_0x31f7b7[_0x338b03('0x37')][_0x338b03('0x63')]?_0x31f7b7[_0x338b03('0x37')]:_0x3f273e[_0x338b03('0x29')],typeof _0xafb8ec[_0x338b03('0x13')][_0x338b03('0x15')]==='undefined'&&(_0x31f7b7[_0x338b03('0x3b')]=qs[_0x338b03('0x3b')](_0xafb8ec[_0x338b03('0x13')]['limit']),_0x31f7b7['offset']=qs[_0x338b03('0x38')](_0xafb8ec[_0x338b03('0x13')]['offset'])),_0x31f7b7[_0x338b03('0x6a')]=qs[_0x338b03('0x46')](_0xafb8ec[_0x338b03('0x13')][_0x338b03('0x46')]),_0x31f7b7[_0x338b03('0x4b')]=qs[_0x338b03('0x41')](_[_0x338b03('0x12')](_0xafb8ec[_0x338b03('0x13')],_0x3f273e[_0x338b03('0x41')])),_0x31f7b7[_0x338b03('0x4b')][_0x338b03('0x50')]=_0x5bf969['id'],_0xafb8ec['query']['filter']&&(_0x31f7b7['where']=_[_0x338b03('0x47')](_0x31f7b7['where'],{[Op['or']]:_[_0x338b03('0x51')](_0x31f7b7['attributes'],function(_0x1ef2f2){const _0x17412c=_0x338b03,_0x9f09={};return _0x9f09[_0x1ef2f2]={[Op[_0x17412c('0xc')]]:'%'+_0xafb8ec[_0x17412c('0x13')]['filter']+'%'},_0x9f09;})})),_0x31f7b7=_['merge']({},_0x31f7b7,_0xafb8ec[_0x338b03('0x5e')]),db[_0x338b03('0x59')][_0x338b03('0x6d')](_0x31f7b7);})[_0x1c5cfd('0x68')](function(_0x21723a){const _0x28453a=_0x1c5cfd;if(_0x21723a)return db[_0x28453a('0x9')][_0x28453a('0x2a')]({'where':{'id':_[_0x28453a('0x51')](_0x21723a,'UserId'),'role':_0x28453a('0xd')},'attributes':['id',_0x28453a('0x1f'),_0x28453a('0x19'),_0x28453a('0x4c'),_0x28453a('0x52')]});})[_0x1c5cfd('0x68')](function(_0x673c2b){const _0x2957ed=_0x1c5cfd;return _0x673c2b?{'count':_0x673c2b['count'],'rows':_[_0x2957ed('0x51')](_0x673c2b[_0x2957ed('0x39')],function(_0x282424){const _0x14e064=_0x2957ed;return{'membername':_0x282424[_0x14e064('0x1f')],'UserId':_0x282424['id'],'queue_name':_0x272acf['name'],'ChatQueueId':_0x272acf['id'],'interface':util[_0x14e064('0x7')](_0x14e064('0x34'),_0x14e064('0x23'),_0x282424[_0x14e064('0x1f')]),'penalty':0x0,'paused':_0x282424['chatPause'],'createdAt':_0x282424[_0x14e064('0x52')],'updatedAt':_0x282424['updatedAt']};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x5bdff7,_0x31f7b7))[_0x1c5cfd('0x3')](handleError(_0x5bdff7,null));},exports['getTeams']=function(_0x3ed5d1,_0x26f03a){const _0x3cfacd=_0x1bd819;let _0x16f44d={};const _0x27cf95={};let _0x529c15,_0x469c61;return db[_0x3cfacd('0x5')][_0x3cfacd('0xf')]({'where':{'id':_0x3ed5d1['params']['id']}})[_0x3cfacd('0x68')](handleEntityNotFound(_0x26f03a,null))['then'](function(_0x535843){const _0xf2f19f=_0x3cfacd;if(_0x535843)return _0x529c15=_0x535843,_0x27cf95['model']=_[_0xf2f19f('0x42')](db['Team'][_0xf2f19f('0x62')]),_0x27cf95[_0xf2f19f('0x13')]=_[_0xf2f19f('0x42')](_0x3ed5d1[_0xf2f19f('0x13')]),_0x27cf95[_0xf2f19f('0x41')]=_['intersection'](_0x27cf95['model'],_0x27cf95[_0xf2f19f('0x13')]),_0x16f44d['attributes']=_[_0xf2f19f('0x57')](_0x27cf95[_0xf2f19f('0x29')],qs[_0xf2f19f('0x3a')](_0x3ed5d1[_0xf2f19f('0x13')][_0xf2f19f('0x3a')])),_0x16f44d['attributes']=_0x16f44d['attributes']['length']?_0x16f44d['attributes']:_0x27cf95[_0xf2f19f('0x29')],_0x16f44d['order']=qs['sort'](_0x3ed5d1['query']['sort']),_0x16f44d['where']=qs[_0xf2f19f('0x41')](_['pick'](_0x3ed5d1[_0xf2f19f('0x13')],_0x27cf95[_0xf2f19f('0x41')])),_0x3ed5d1['query'][_0xf2f19f('0x36')]&&(_0x16f44d[_0xf2f19f('0x4b')]=_[_0xf2f19f('0x47')](_0x16f44d['where'],{[Op['or']]:_[_0xf2f19f('0x51')](_0x16f44d[_0xf2f19f('0x37')],function(_0x50dd95){const _0x3c4355=_0xf2f19f,_0x2a8173={};return _0x2a8173[_0x50dd95]={[Op[_0x3c4355('0xc')]]:'%'+_0x3ed5d1[_0x3c4355('0x13')][_0x3c4355('0x36')]+'%'},_0x2a8173;})})),_0x16f44d=_['merge']({},_0x16f44d,_0x3ed5d1[_0xf2f19f('0x5e')]),_0x529c15[_0xf2f19f('0x69')](_0x16f44d);})[_0x3cfacd('0x68')](function(_0x3f9d92){const _0x451a62=_0x3cfacd;if(_0x3f9d92)return _0x469c61=_0x3f9d92[_0x451a62('0x63')],typeof _0x3ed5d1[_0x451a62('0x13')]['nolimit']===_0x451a62('0x66')&&(_0x16f44d[_0x451a62('0x3b')]=qs[_0x451a62('0x3b')](_0x3ed5d1[_0x451a62('0x13')]['limit']),_0x16f44d['offset']=qs[_0x451a62('0x38')](_0x3ed5d1[_0x451a62('0x13')]['offset'])),_0x529c15['getTeams'](_0x16f44d);})[_0x3cfacd('0x68')](function(_0x260353){if(_0x260353)return _0x260353?{'count':_0x469c61,'rows':_0x260353}:null;})[_0x3cfacd('0x68')](respondWithResult(_0x26f03a,null))[_0x3cfacd('0x3')](handleError(_0x26f03a,null));},exports[_0x1bd819('0x0')]=function(_0x1b58f3,_0x59d65e){const _0x11342c=_0x1bd819,_0x42d026=_0x1b58f3['body']['ids'];return db[_0x11342c('0x2b')][_0x11342c('0x6d')]({'where':{'id':_0x42d026},'attributes':['id'],'include':[{'model':db[_0x11342c('0x9')],'as':_0x11342c('0x43'),'attributes':['id','name',_0x11342c('0x6'),_0x11342c('0x45'),'interface'],'raw':!![]}]})[_0x11342c('0x68')](function(_0x266141){const _0x2e0892=_0x11342c;if(_0x266141){const _0x3e7ecb=_[_0x2e0892('0x22')](_0x266141,function(_0x48f961){const _0x543739=_0x2e0892,_0x4644af=_0x48f961[_0x543739('0x1e')]({'plain':!![]});return _0x4644af[_0x543739('0x43')];});return db[_0x2e0892('0x5')][_0x2e0892('0xf')]({'where':{'id':_0x1b58f3['params']['id']}})[_0x2e0892('0x68')](function(_0x1e8019){const _0x137682=_0x2e0892;return db[_0x137682('0x49')][_0x137682('0x56')](function(_0x27974c){const _0x3ccc16=_0x137682;return _0x1e8019[_0x3ccc16('0x0')](_0x42d026,{'transaction':_0x27974c})[_0x3ccc16('0x68')](function(){const _0x138f03=_0x3ccc16;return Promise[_0x138f03('0x3f')](_0x3e7ecb,function(_0x21caa4){const _0xf030f0=_0x138f03;return db[_0xf030f0('0x59')]['findOrCreate']({'where':{'UserId':_0x21caa4['id'],'ChatQueueId':_0x1b58f3[_0xf030f0('0x48')]['id']},'transaction':_0x27974c});});})[_0x3ccc16('0x68')](function(){const _0x2f21a3=_0x3ccc16;_0x3e7ecb[_0x2f21a3('0x6c')](function(_0x2b4885){const _0x15582b=_0x2f21a3;socket[_0x15582b('0x17')](_0x15582b('0x5d'),{'UserId':_0x2b4885['id'],'ChatQueueId':_0x1e8019['id']});});});});});}})['then'](respondWithStatusCode(_0x59d65e,null))[_0x11342c('0x3')](handleError(_0x59d65e,null));},exports[_0x1bd819('0xb')]=function(_0x410f4b,_0x5946bb){const _0x203663=_0x1bd819;return db[_0x203663('0x2b')]['findAll']({'where':{'id':_0x410f4b['query'][_0x203663('0xe')]},'attributes':['id'],'include':[{'model':db[_0x203663('0x9')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x203663('0x68')](handleEntityNotFound(_0x5946bb,null))[_0x203663('0x68')](function(_0x1f08f0){const _0x48f5fb=_0x203663,_0x16a956=_['map'](_0x1f08f0,'id');let _0x45f30c=[];const _0x307ab0=[],_0xa5e9df=squel['select']();_0xa5e9df['field']('tq.TeamId')['from'](_0x48f5fb('0x1'),'tq')[_0x48f5fb('0x53')](_0x48f5fb('0x5f'),'ut',_0x48f5fb('0x1c'))[_0x48f5fb('0x4b')](_0x48f5fb('0x5b'),_0x410f4b[_0x48f5fb('0x48')]['id']);for(let _0x313d5c=0x0;_0x313d5c<_0x1f08f0[_0x48f5fb('0x63')];_0x313d5c+=0x1){const _0x109ebb=_0x1f08f0[_0x313d5c];for(let _0x3f5416=0x0;_0x3f5416<_0x109ebb[_0x48f5fb('0x43')][_0x48f5fb('0x63')];_0x3f5416+=0x1){const _0x11cb81=_0x109ebb['Agents'][_0x3f5416],_0x3790da=_0xa5e9df[_0x48f5fb('0x4a')]();_0x3790da[_0x48f5fb('0x4b')](_0x48f5fb('0x55'),_0x11cb81['id']),_0x307ab0[_0x48f5fb('0x54')](db[_0x48f5fb('0x49')]['query'](_0x3790da['toString'](),{'type':QueryTypes[_0x48f5fb('0x67')]})[_0x48f5fb('0x68')](function(_0x582bfc){const _0x5cbcc5=_0x48f5fb;if(_0x582bfc['length']===0x1)return _0x11cb81['id'];else{const _0xe5e6ac=_['every'](_[_0x5cbcc5('0x51')](_0x582bfc,'TeamId'),function(_0x578a4d){const _0x1972d5=_0x5cbcc5;return _[_0x1972d5('0x61')](_0x16a956,_0x578a4d);});if(_0xe5e6ac)return _0x11cb81['id'];}}));}}return Promise[_0x48f5fb('0x1d')](_0x307ab0)[_0x48f5fb('0x68')](function(_0xa6dfaa){const _0x53ed1a=_0x48f5fb;return _0x45f30c=_(_0x45f30c)['union'](_0xa6dfaa)[_0x53ed1a('0x1a')]()[_0x53ed1a('0x11')](),db['ChatQueue']['findOne']({'where':{'id':_0x410f4b[_0x53ed1a('0x48')]['id']}})[_0x53ed1a('0x68')](function(_0x288333){const _0x379ba7=_0x53ed1a;return db[_0x379ba7('0x49')][_0x379ba7('0x56')](function(_0x129f11){const _0x2f2776=_0x379ba7;return _0x288333[_0x2f2776('0xb')](_0x410f4b[_0x2f2776('0x13')]['ids'],{'transaction':_0x129f11})['then'](function(){const _0x5576d4=_0x2f2776;if(!_['isEmpty'](_0x45f30c))return _0x288333[_0x5576d4('0x3e')](_0x45f30c,{'transaction':_0x129f11});})[_0x2f2776('0x68')](function(){const _0x7d5da3=_0x2f2776;_0x45f30c[_0x7d5da3('0x6c')](function(_0x2a645e){const _0x31ed84=_0x7d5da3;socket[_0x31ed84('0x17')](_0x31ed84('0x60'),{'UserId':_0x2a645e,'ChatQueueId':_0x288333['id']});});});});});});})[_0x203663('0x68')](respondWithStatusCode(_0x5946bb,null))[_0x203663('0x3')](handleError(_0x5946bb,null));},exports[_0x1bd819('0x8')]=function(_0x82ab91,_0x4a6203){const _0x397630=_0x1bd819;return db[_0x397630('0x5')][_0x397630('0xf')]({'where':{'id':_0x82ab91[_0x397630('0x48')]['id']}})[_0x397630('0x68')](function(_0xe60a49){const _0x4d6034=_0x397630;if(_0xe60a49)return _0xe60a49[_0x4d6034('0x8')](_0x82ab91[_0x4d6034('0x5c')][_0x4d6034('0xe')],{'through':_[_0x4d6034('0x21')](_0x82ab91[_0x4d6034('0x5c')],[_0x4d6034('0xe'),'id'])})['then'](function(_0xd72a8a){const _0x4f1701=_0x4d6034;for(let _0x1b6386=0x0;_0x1b6386<_0x82ab91['body'][_0x4f1701('0xe')][_0x4f1701('0x63')];_0x1b6386+=0x1){socket[_0x4f1701('0x17')](_0x4f1701('0x5d'),{'UserId':_0x82ab91[_0x4f1701('0x5c')]['ids'][_0x1b6386],'ChatQueueId':_0x82ab91[_0x4f1701('0x48')]['id']});}return _0xd72a8a;});})[_0x397630('0x68')](respondWithResult(_0x4a6203,null))[_0x397630('0x3')](handleError(_0x4a6203,null));},exports['removeAgents']=function(_0x28a6ec,_0x4372cd){const _0x52cdc3=_0x1bd819;return db['ChatQueue'][_0x52cdc3('0xf')]({'where':{'id':_0x28a6ec['params']['id']}})[_0x52cdc3('0x68')](handleEntityNotFound(_0x4372cd,null))[_0x52cdc3('0x68')](function(_0x536a1e){const _0x4e770c=_0x52cdc3;if(_0x536a1e)return _0x536a1e[_0x4e770c('0x3e')](_0x28a6ec['query'][_0x4e770c('0xe')])[_0x4e770c('0x68')](function(){const _0x5df0c7=_0x4e770c;if(_[_0x5df0c7('0x14')](_0x28a6ec[_0x5df0c7('0x13')][_0x5df0c7('0xe')]))for(let _0x47d8f8=0x0;_0x47d8f8<_0x28a6ec[_0x5df0c7('0x13')][_0x5df0c7('0xe')][_0x5df0c7('0x63')];_0x47d8f8+=0x1){socket['emit']('userChatQueue:remove',{'UserId':Number(_0x28a6ec['query']['ids'][_0x47d8f8]),'ChatQueueId':Number(_0x28a6ec[_0x5df0c7('0x48')]['id'])});}else socket[_0x5df0c7('0x17')]('userChatQueue:remove',{'UserId':Number(_0x28a6ec['query'][_0x5df0c7('0xe')]),'ChatQueueId':Number(_0x28a6ec[_0x5df0c7('0x48')]['id'])});});})['then'](respondWithStatusCode(_0x4372cd,null))[_0x52cdc3('0x3')](handleError(_0x4372cd,null));},exports['getAgents']=function(_0x6b46a8,_0x49c082){const _0x4c3ced=_0x1bd819;let _0xbafd6c={};const _0x540b47={};let _0x4a63c0,_0x19dcce;return db['ChatQueue'][_0x4c3ced('0xf')]({'where':{'id':_0x6b46a8[_0x4c3ced('0x48')]['id']}})[_0x4c3ced('0x68')](handleEntityNotFound(_0x49c082,null))[_0x4c3ced('0x68')](function(_0x3463f3){const _0x53efea=_0x4c3ced;if(_0x3463f3)return _0x4a63c0=_0x3463f3,_0x540b47[_0x53efea('0x29')]=_[_0x53efea('0x42')](db[_0x53efea('0x9')][_0x53efea('0x62')]),_0x540b47[_0x53efea('0x13')]=_['keys'](_0x6b46a8[_0x53efea('0x13')]),_0x540b47[_0x53efea('0x41')]=_[_0x53efea('0x57')](_0x540b47['model'],_0x540b47[_0x53efea('0x13')]),_0xbafd6c['attributes']=_['intersection'](_0x540b47[_0x53efea('0x29')],qs[_0x53efea('0x3a')](_0x6b46a8[_0x53efea('0x13')]['fields'])),_0xbafd6c[_0x53efea('0x37')]=_0xbafd6c[_0x53efea('0x37')]['length']?_0xbafd6c['attributes']:_0x540b47[_0x53efea('0x29')],_0xbafd6c[_0x53efea('0x6a')]=qs[_0x53efea('0x46')](_0x6b46a8[_0x53efea('0x13')]['sort']),_0xbafd6c[_0x53efea('0x4b')]=qs[_0x53efea('0x41')](_['pick'](_0x6b46a8[_0x53efea('0x13')],_0x540b47[_0x53efea('0x41')])),_0x6b46a8[_0x53efea('0x13')]['filter']&&(_0xbafd6c['where']=_[_0x53efea('0x47')](_0xbafd6c['where'],{[Op['or']]:_[_0x53efea('0x51')](_0xbafd6c['attributes'],function(_0x5df1de){const _0xf92ba0=_0x53efea,_0x186705={};return _0x186705[_0x5df1de]={[Op[_0xf92ba0('0xc')]]:'%'+_0x6b46a8[_0xf92ba0('0x13')][_0xf92ba0('0x36')]+'%'},_0x186705;})})),_0xbafd6c=_['merge']({},_0xbafd6c,_0x6b46a8[_0x53efea('0x5e')]),_0x4a63c0[_0x53efea('0x44')](_0xbafd6c);})[_0x4c3ced('0x68')](function(_0x147e8b){const _0x312970=_0x4c3ced;if(_0x147e8b)return _0x19dcce=_0x147e8b['length'],typeof _0x6b46a8['query'][_0x312970('0x15')]===_0x312970('0x66')&&(_0xbafd6c['limit']=qs[_0x312970('0x3b')](_0x6b46a8['query'][_0x312970('0x3b')]),_0xbafd6c[_0x312970('0x38')]=qs[_0x312970('0x38')](_0x6b46a8['query'][_0x312970('0x38')])),_0x4a63c0[_0x312970('0x44')](_0xbafd6c);})['then'](function(_0x78fae8){if(_0x78fae8)return _0x78fae8?{'count':_0x19dcce,'rows':_0x78fae8}:null;})['then'](respondWithResult(_0x49c082,null))[_0x4c3ced('0x3')](handleError(_0x49c082,null));}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index a085ee8..95c4eb2 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a96_0x12d7=['ChatQueue','update','addHook','emit','setMaxListeners','save','remove','events'];(function(_0x3d63ac,_0x12d7ba){const _0x3a0efb=function(_0x1a0a57){while(--_0x1a0a57){_0x3d63ac['push'](_0x3d63ac['shift']());}};_0x3a0efb(++_0x12d7ba);}(a96_0x12d7,0xb7));const a96_0x3a0e=function(_0x3d63ac,_0x12d7ba){_0x3d63ac=_0x3d63ac-0x0;let _0x3a0efb=a96_0x12d7[_0x3d63ac];return _0x3a0efb;};const _0x5a59cb=a96_0x3a0e;'use strict';const EventEmitter=require(_0x5a59cb('0x0')),ChatQueue=require('../../mysqldb')['db'][_0x5a59cb('0x1')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x5a59cb('0x5')](0x0);const events={'afterCreate':_0x5a59cb('0x6'),'afterUpdate':_0x5a59cb('0x2'),'afterDestroy':_0x5a59cb('0x7')};function emitEvent(_0x1a0a57){return function(_0x3610f4){const _0x4e80c2=a96_0x3a0e;ChatQueueEvents[_0x4e80c2('0x4')](_0x1a0a57+':'+_0x3610f4['id'],_0x3610f4),ChatQueueEvents[_0x4e80c2('0x4')](_0x1a0a57,_0x3610f4);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue[_0x5a59cb('0x3')](e,emitEvent(event));}}module['exports']=ChatQueueEvents; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index efd37f0..d97965c 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a97_0x2929=['./chatQueue.attributes','define','chat_queues','ChatQueue','exports'];(function(_0x3907b6,_0x2929ed){const _0xdcf1b5=function(_0xbd56ee){while(--_0xbd56ee){_0x3907b6['push'](_0x3907b6['shift']());}};_0xdcf1b5(++_0x2929ed);}(a97_0x2929,0x143));const a97_0xdcf1=function(_0x3907b6,_0x2929ed){_0x3907b6=_0x3907b6-0x0;let _0xdcf1b5=a97_0x2929[_0x3907b6];return _0xdcf1b5;};const _0xc090bf=a97_0xdcf1;'use strict';const attributes=require(_0xc090bf('0x2'));module[_0xc090bf('0x1')]=function(_0xbd56ee){const _0x5592e3=_0xc090bf,_0x125624=_0xbd56ee[_0x5592e3('0x3')](_0x5592e3('0x0'),attributes,{'tableName':_0x5592e3('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x125624;}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index 3745493..055d3c8 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a98_0x5a66=['ShowChatQueue','map','include','debug','ChatQueue','message','../../rediscache','error','catch','options','./chatQueue.socket','../../config/logger','stringify','then','where','findOne','model','GetChatQueue','lodash','attributes','raw','../../mysqldb','info'];(function(_0x2f2c4c,_0x5a669d){const _0x3deed8=function(_0x34ae2c){while(--_0x34ae2c){_0x2f2c4c['push'](_0x2f2c4c['shift']());}};_0x3deed8(++_0x5a669d);}(a98_0x5a66,0xd2));const a98_0x3dee=function(_0x2f2c4c,_0x5a669d){_0x2f2c4c=_0x2f2c4c-0x0;let _0x3deed8=a98_0x5a66[_0x2f2c4c];return _0x3deed8;};const _0x38f8af=a98_0x3dee;'use strict';const _=require(_0x38f8af('0xf')),db=require(_0x38f8af('0x12'))['db'],logger=require(_0x38f8af('0x8'))('rpc'),{getSocket}=require(_0x38f8af('0x3')),socket=getSocket();require(_0x38f8af('0x7'))['register'](socket),exports[_0x38f8af('0xe')]=function(_0x34ae2c){const _0x485def=this;return new Promise(function(_0x45512d,_0x4160d4){const _0x31d51a=a98_0x3dee;return db[_0x31d51a('0x1')]['findAll']({'raw':_0x34ae2c[_0x31d51a('0x6')]?_0x34ae2c[_0x31d51a('0x6')][_0x31d51a('0x11')]===undefined?!![]:![]:!![],'where':_0x34ae2c[_0x31d51a('0x6')]?_0x34ae2c[_0x31d51a('0x6')][_0x31d51a('0xb')]||null:null,'attributes':_0x34ae2c[_0x31d51a('0x6')]?_0x34ae2c[_0x31d51a('0x6')][_0x31d51a('0x10')]||null:null,'limit':_0x34ae2c[_0x31d51a('0x6')]?_0x34ae2c[_0x31d51a('0x6')]['limit']||null:null,'include':_0x34ae2c[_0x31d51a('0x6')]?_0x34ae2c['options']['include']?_[_0x31d51a('0x15')](_0x34ae2c[_0x31d51a('0x6')][_0x31d51a('0x16')],function(_0x2df8a9){const _0x4af93b=_0x31d51a;return{'model':db[_0x2df8a9[_0x4af93b('0xd')]],'as':_0x2df8a9['as'],'attributes':_0x2df8a9['attributes'],'include':_0x2df8a9[_0x4af93b('0x16')]?_['map'](_0x2df8a9[_0x4af93b('0x16')],function(_0x4c9902){const _0x15d9fa=_0x4af93b;return{'model':db[_0x4c9902['model']],'as':_0x4c9902['as'],'attributes':_0x4c9902[_0x15d9fa('0x10')],'include':_0x4c9902[_0x15d9fa('0x16')]?_['map'](_0x4c9902['include'],function(_0x53b317){const _0x538c6c=_0x15d9fa;return{'model':db[_0x53b317[_0x538c6c('0xd')]],'as':_0x53b317['as'],'attributes':_0x53b317[_0x538c6c('0x10')]};}):[]};}):[]};}):[]:[]})[_0x31d51a('0xa')](function(_0x31881a){const _0x2b5194=_0x31d51a;logger[_0x2b5194('0x13')](_0x2b5194('0xe'),_0x34ae2c),logger[_0x2b5194('0x0')](_0x2b5194('0xe'),_0x34ae2c,JSON['stringify'](_0x31881a)),_0x45512d(_0x31881a);})[_0x31d51a('0x5')](function(_0x510fab){const _0x4d83ca=_0x31d51a;logger[_0x4d83ca('0x4')](_0x4d83ca('0xe'),_0x510fab[_0x4d83ca('0x2')],_0x34ae2c),_0x4160d4(_0x485def[_0x4d83ca('0x4')](0x1f4,_0x510fab['message']));});});},exports['ShowChatQueue']=function(_0x5f5965){const _0x4ca601=this;return new Promise(function(_0x3ef28e,_0x45e49b){const _0x3cbccb=a98_0x3dee;return db[_0x3cbccb('0x1')][_0x3cbccb('0xc')]({'raw':_0x5f5965['options']?_0x5f5965[_0x3cbccb('0x6')][_0x3cbccb('0x11')]===undefined?!![]:![]:!![],'where':_0x5f5965[_0x3cbccb('0x6')]?_0x5f5965[_0x3cbccb('0x6')]['where']||null:null,'attributes':_0x5f5965[_0x3cbccb('0x6')]?_0x5f5965[_0x3cbccb('0x6')][_0x3cbccb('0x10')]||null:null,'include':_0x5f5965['options']?_0x5f5965['options']['include']?_[_0x3cbccb('0x15')](_0x5f5965[_0x3cbccb('0x6')][_0x3cbccb('0x16')],function(_0x1ca6c9){const _0x5b01f6=_0x3cbccb;return{'model':db[_0x1ca6c9[_0x5b01f6('0xd')]],'as':_0x1ca6c9['as'],'attributes':_0x1ca6c9['attributes'],'include':_0x1ca6c9[_0x5b01f6('0x16')]?_['map'](_0x1ca6c9['include'],function(_0x348c00){const _0x4d9286=_0x5b01f6;return{'model':db[_0x348c00[_0x4d9286('0xd')]],'as':_0x348c00['as'],'attributes':_0x348c00[_0x4d9286('0x10')],'include':_0x348c00[_0x4d9286('0x16')]?_[_0x4d9286('0x15')](_0x348c00[_0x4d9286('0x16')],function(_0x401755){const _0x19887c=_0x4d9286;return{'model':db[_0x401755[_0x19887c('0xd')]],'as':_0x401755['as'],'attributes':_0x401755[_0x19887c('0x10')]};}):[]};}):[]};}):[]:[]})[_0x3cbccb('0xa')](function(_0x3e90cb){const _0x37b484=_0x3cbccb;logger['info'](_0x37b484('0x14'),_0x5f5965),logger[_0x37b484('0x0')](_0x37b484('0x14'),_0x5f5965,JSON[_0x37b484('0x9')](_0x3e90cb)),_0x3ef28e(_0x3e90cb);})['catch'](function(_0x5d853c){const _0x9d08d2=_0x3cbccb;logger[_0x9d08d2('0x4')]('ShowChatQueue',_0x5d853c[_0x9d08d2('0x2')],_0x5f5965),_0x45e49b(_0x4ca601[_0x9d08d2('0x4')](0x1f4,_0x5d853c[_0x9d08d2('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index 7bec148..b7f4a01 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a99_0xf645=['chatQueue:','register','emit','save','update','./chatQueue.events','remove'];(function(_0x3b11e1,_0xf645c5){const _0x215595=function(_0x32c48e){while(--_0x32c48e){_0x3b11e1['push'](_0x3b11e1['shift']());}};_0x215595(++_0xf645c5);}(a99_0xf645,0x1ec));const a99_0x2155=function(_0x3b11e1,_0xf645c5){_0x3b11e1=_0x3b11e1-0x0;let _0x215595=a99_0xf645[_0x3b11e1];return _0x215595;};const _0x28c32e=a99_0x2155;'use strict';const ChatQueueEvents=require(_0x28c32e('0x3')),events=[_0x28c32e('0x1'),_0x28c32e('0x4'),_0x28c32e('0x2')];function createListener(_0x32c48e,_0x184353){return function(_0x5af726){const _0x52f799=a99_0x2155;_0x184353[_0x52f799('0x0')](_0x32c48e,_0x5af726);};}exports[_0x28c32e('0x6')]=function(_0x1507ce){const _0x102c74=_0x28c32e;for(let _0x5248e6=0x0,_0x268093=events['length'];_0x5248e6<_0x268093;_0x5248e6++){const _0x41ef34=events[_0x5248e6],_0x45f44f=createListener(_0x102c74('0x5')+_0x41ef34,_0x1507ce);ChatQueueEvents['on'](_0x41ef34,_0x45f44f);}}; \ No newline at end of file +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 diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index 2302167..c5e4d8b 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a100_0x1b25=['removeTeams','/describe','post','delete','describe','getAgents','get','put','exports','getTeams','addAgents','removeAgents','/:id/teams','/:id/members','/:id','update','getMembers','express','index','/:id/users','../../components/auth/service','./chatQueue.controller','isAuthenticated'];(function(_0x4bfe63,_0x1b2585){const _0x18ad7a=function(_0x18576d){while(--_0x18576d){_0x4bfe63['push'](_0x4bfe63['shift']());}};_0x18ad7a(++_0x1b2585);}(a100_0x1b25,0xbe));const a100_0x18ad=function(_0x4bfe63,_0x1b2585){_0x4bfe63=_0x4bfe63-0x0;let _0x18ad7a=a100_0x1b25[_0x4bfe63];return _0x18ad7a;};const _0x3c792f=a100_0x18ad;'use strict';const express=require(_0x3c792f('0xb')),router=express['Router'](),auth=require(_0x3c792f('0xe')),controller=require(_0x3c792f('0xf'));router['get']('/',auth[_0x3c792f('0x10')](),controller[_0x3c792f('0xc')]),router['get'](_0x3c792f('0x12'),auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x15')]),router[_0x3c792f('0x0')](_0x3c792f('0x8'),auth['isAuthenticated'](),controller['show']),router['get'](_0x3c792f('0x7'),auth['isAuthenticated'](),controller[_0x3c792f('0xa')]),router['get'](_0x3c792f('0x6'),auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x3')]),router['get'](_0x3c792f('0xd'),auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x16')]),router['post']('/',auth[_0x3c792f('0x10')](),controller['create']),router['post'](_0x3c792f('0x6'),auth[_0x3c792f('0x10')](),controller['addTeams']),router[_0x3c792f('0x13')](_0x3c792f('0xd'),auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x4')]),router[_0x3c792f('0x1')](_0x3c792f('0x8'),auth['isAuthenticated'](),controller[_0x3c792f('0x9')]),router[_0x3c792f('0x14')]('/:id',auth[_0x3c792f('0x10')](),controller['destroy']),router[_0x3c792f('0x14')]('/:id/teams',auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x11')]),router['delete'](_0x3c792f('0xd'),auth[_0x3c792f('0x10')](),controller[_0x3c792f('0x5')]),module[_0x3c792f('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index 5ddd389..2ed4e35 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a101_0x3b43=['STRING','DATE','exports','sequelize'];(function(_0x3bc417,_0x3b433e){const _0x282ed1=function(_0x1a1911){while(--_0x1a1911){_0x3bc417['push'](_0x3bc417['shift']());}};_0x282ed1(++_0x3b433e);}(a101_0x3b43,0x7a));const a101_0x282e=function(_0x3bc417,_0x3b433e){_0x3bc417=_0x3bc417-0x0;let _0x282ed1=a101_0x3b43[_0x3bc417];return _0x282ed1;};const _0x103c58=a101_0x282e;'use strict';const Sequelize=require(_0x103c58('0x1'));module[_0x103c58('0x0')]={'uniqueid':{'type':Sequelize[_0x103c58('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0x103c58('0x2')]},'joinAt':{'type':Sequelize[_0x103c58('0x3')]},'leaveAt':{'type':Sequelize[_0x103c58('0x3')]},'acceptAt':{'type':Sequelize[_0x103c58('0x3')]},'exitAt':{'type':Sequelize[_0x103c58('0x3')]},'reason':{'type':Sequelize[_0x103c58('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index b1829d0..84928e3 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a102_0x1750=['index','stack','destroy','merge','undefined','key','rawAttributes','findAll','sort','VIRTUAL','status','count','model','keys','fields','pick','intersection','include','json','send','nolimit','ChatQueueReport','lodash','describe','then','attributes','create','length','like','catch','map','../../config/logger','sequelize','name','show','options','Content-Range','includeAll','set','offset','filters','findOne','limit','params','where','filter','type','../../components/parsers/qs','sendStatus','body','fieldName','query'];(function(_0x30d700,_0x17505c){const _0x509624=function(_0x2dbeef){while(--_0x2dbeef){_0x30d700['push'](_0x30d700['shift']());}};_0x509624(++_0x17505c);}(a102_0x1750,0xb8));const a102_0x5096=function(_0x30d700,_0x17505c){_0x30d700=_0x30d700-0x0;let _0x509624=a102_0x1750[_0x30d700];return _0x509624;};const _0x498d7d=a102_0x5096;'use strict';const _=require(_0x498d7d('0x2e')),qs=require(_0x498d7d('0x13')),logger=require(_0x498d7d('0x3'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x498d7d('0x4'));function respondWithResult(_0x2dbeef,_0x12b7ee){return _0x12b7ee=_0x12b7ee||0xc8,function(_0x360b8f){const _0x49b894=a102_0x5096;if(_0x360b8f)return _0x2dbeef['status'](_0x12b7ee)[_0x49b894('0x2a')](_0x360b8f);};}function respondWithFilteredResult(_0x2f38f2,_0x3790b9){return function(_0x1e048a){const _0x162691=a102_0x5096;if(_0x1e048a){const _0x15b282=_0x1e048a[_0x162691('0x23')],_0xb22ded=_0x3790b9['offset'];let _0x286ed0=_0x3790b9['offset']+_0x3790b9[_0x162691('0xe')],_0x5a8d0c;return _0x286ed0>=_0x15b282?(_0x286ed0=_0x15b282,_0x5a8d0c=0xc8):_0x5a8d0c=0xce,_0x2f38f2[_0x162691('0x22')](_0x5a8d0c),_0x2f38f2[_0x162691('0xa')](_0x162691('0x8'),_0xb22ded+'-'+_0x286ed0+'/'+_0x15b282)[_0x162691('0x2a')](_0x1e048a);}return null;};}function saveUpdates(_0x204bc){return function(_0x2eb8d4){const _0x6cd0e8=a102_0x5096;if(_0x2eb8d4)return _0x2eb8d4['update'](_0x204bc)[_0x6cd0e8('0x30')](function(_0x1ce37b){return _0x1ce37b;});return null;};}function removeEntity(_0xbb4073){return function(_0x1b5e50){const _0x169acb=a102_0x5096;if(_0x1b5e50)return _0x1b5e50[_0x169acb('0x1a')]()[_0x169acb('0x30')](function(){_0xbb4073['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x13e379){return function(_0x1dbe9a){const _0xb6d492=a102_0x5096;return!_0x1dbe9a&&_0x13e379[_0xb6d492('0x14')](0x194),_0x1dbe9a;};}function handleError(_0x4b42e,_0x50c6a2){return _0x50c6a2=_0x50c6a2||0x1f4,function(_0x443cf7){const _0x2a0fc4=a102_0x5096;logger['error'](_0x443cf7[_0x2a0fc4('0x19')]),_0x443cf7[_0x2a0fc4('0x5')]&&delete _0x443cf7['name'],_0x4b42e['status'](_0x50c6a2)[_0x2a0fc4('0x2b')](_0x443cf7);};}exports[_0x498d7d('0x18')]=function(_0x581d6d,_0x50d1e9){const _0x32bdcd=_0x498d7d;let _0x3986ed={};const _0x4b8236={},_0x4b5931={'count':0x0,'rows':[]},_0x4b51c2=_[_0x32bdcd('0x2')](db[_0x32bdcd('0x2d')]['rawAttributes'],function(_0x3915bb){const _0x215d22=_0x32bdcd;return{'name':_0x3915bb[_0x215d22('0x16')],'type':_0x3915bb[_0x215d22('0x12')][_0x215d22('0x1d')]};});_0x4b8236[_0x32bdcd('0x24')]=_[_0x32bdcd('0x2')](_0x4b51c2,'name'),_0x4b8236['query']=_[_0x32bdcd('0x25')](_0x581d6d['query']),_0x4b8236['filters']=_[_0x32bdcd('0x28')](_0x4b8236[_0x32bdcd('0x24')],_0x4b8236[_0x32bdcd('0x17')]),_0x3986ed[_0x32bdcd('0x31')]=_['intersection'](_0x4b8236[_0x32bdcd('0x24')],qs[_0x32bdcd('0x26')](_0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0x26')])),_0x3986ed['attributes']=_0x3986ed[_0x32bdcd('0x31')][_0x32bdcd('0x33')]?_0x3986ed[_0x32bdcd('0x31')]:_0x4b8236[_0x32bdcd('0x24')];typeof _0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0x2c')]===_0x32bdcd('0x1c')&&(_0x3986ed['limit']=qs[_0x32bdcd('0xe')](_0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0xe')]),_0x3986ed[_0x32bdcd('0xb')]=qs[_0x32bdcd('0xb')](_0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0xb')]));_0x3986ed['order']=qs[_0x32bdcd('0x20')](_0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0x20')]),_0x3986ed[_0x32bdcd('0x10')]=qs[_0x32bdcd('0xc')](_[_0x32bdcd('0x27')](_0x581d6d[_0x32bdcd('0x17')],_0x4b8236['filters']),_0x4b51c2);_0x581d6d[_0x32bdcd('0x17')][_0x32bdcd('0x11')]&&(_0x3986ed[_0x32bdcd('0x10')]=_[_0x32bdcd('0x1b')](_0x3986ed[_0x32bdcd('0x10')],{[Op['or']]:_[_0x32bdcd('0x2')](_0x4b51c2,function(_0xfbc324){const _0x2286f8=_0x32bdcd;if(_0xfbc324[_0x2286f8('0x12')]!==_0x2286f8('0x21')){const _0x53b8f6={};return _0x53b8f6[_0xfbc324[_0x2286f8('0x5')]]={[Op[_0x2286f8('0x0')]]:'%'+_0x581d6d[_0x2286f8('0x17')][_0x2286f8('0x11')]+'%'},_0x53b8f6;}})}));_0x3986ed=_['merge']({},_0x3986ed,_0x581d6d[_0x32bdcd('0x7')]);const _0x27d8a6={'where':_0x3986ed[_0x32bdcd('0x10')]};return db['ChatQueueReport'][_0x32bdcd('0x23')](_0x27d8a6)[_0x32bdcd('0x30')](function(_0x32fc79){const _0x4f073b=_0x32bdcd;return _0x4b5931[_0x4f073b('0x23')]=_0x32fc79,_0x581d6d[_0x4f073b('0x17')]['includeAll']&&(_0x3986ed[_0x4f073b('0x29')]=[{'all':!![]}]),db[_0x4f073b('0x2d')][_0x4f073b('0x1f')](_0x3986ed);})[_0x32bdcd('0x30')](function(_0x10a703){return _0x4b5931['rows']=_0x10a703,_0x4b5931;})[_0x32bdcd('0x30')](respondWithFilteredResult(_0x50d1e9,_0x3986ed))[_0x32bdcd('0x1')](handleError(_0x50d1e9,null));},exports[_0x498d7d('0x6')]=function(_0xc42ceb,_0x493c45){const _0x565379=_0x498d7d;let _0x5413ca={'raw':!![],'where':{'id':_0xc42ceb[_0x565379('0xf')]['id']}};const _0x36a077={};return _0x36a077[_0x565379('0x24')]=_[_0x565379('0x25')](db[_0x565379('0x2d')][_0x565379('0x1e')]),_0x36a077[_0x565379('0x17')]=_['keys'](_0xc42ceb[_0x565379('0x17')]),_0x36a077[_0x565379('0xc')]=_[_0x565379('0x28')](_0x36a077[_0x565379('0x24')],_0x36a077[_0x565379('0x17')]),_0x5413ca[_0x565379('0x31')]=_[_0x565379('0x28')](_0x36a077[_0x565379('0x24')],qs['fields'](_0xc42ceb[_0x565379('0x17')][_0x565379('0x26')])),_0x5413ca[_0x565379('0x31')]=_0x5413ca[_0x565379('0x31')]['length']?_0x5413ca['attributes']:_0x36a077[_0x565379('0x24')],_0xc42ceb[_0x565379('0x17')][_0x565379('0x9')]&&(_0x5413ca[_0x565379('0x29')]=[{'all':!![]}]),_0x5413ca=_[_0x565379('0x1b')]({},_0x5413ca,_0xc42ceb[_0x565379('0x7')]),db['ChatQueueReport'][_0x565379('0xd')](_0x5413ca)[_0x565379('0x30')](handleEntityNotFound(_0x493c45,null))[_0x565379('0x30')](respondWithResult(_0x493c45,null))[_0x565379('0x1')](handleError(_0x493c45,null));},exports[_0x498d7d('0x32')]=function(_0x48eb66,_0x3b62f9){const _0x3b4aba=_0x498d7d;return db['ChatQueueReport'][_0x3b4aba('0x32')](_0x48eb66[_0x3b4aba('0x15')],{})['then'](respondWithResult(_0x3b62f9,0xc9))['catch'](handleError(_0x3b62f9,null));},exports['update']=function(_0x23c169,_0x255c2b){const _0x340aeb=_0x498d7d;return _0x23c169[_0x340aeb('0x15')]['id']&&delete _0x23c169[_0x340aeb('0x15')]['id'],db[_0x340aeb('0x2d')][_0x340aeb('0xd')]({'where':{'id':_0x23c169['params']['id']}})[_0x340aeb('0x30')](handleEntityNotFound(_0x255c2b,null))[_0x340aeb('0x30')](saveUpdates(_0x23c169['body'],null))['then'](respondWithResult(_0x255c2b,null))[_0x340aeb('0x1')](handleError(_0x255c2b,null));},exports[_0x498d7d('0x1a')]=function(_0x3c5643,_0x132e79){const _0x937c64=_0x498d7d;return db[_0x937c64('0x2d')][_0x937c64('0xd')]({'where':{'id':_0x3c5643[_0x937c64('0xf')]['id']}})[_0x937c64('0x30')](handleEntityNotFound(_0x132e79,null))[_0x937c64('0x30')](removeEntity(_0x132e79,null))[_0x937c64('0x1')](handleError(_0x132e79,null));},exports['describe']=function(_0x167834,_0x20e3bc){const _0xcdcd6=_0x498d7d;return db['ChatQueueReport'][_0xcdcd6('0x2f')]()[_0xcdcd6('0x30')](respondWithResult(_0x20e3bc,null))[_0xcdcd6('0x1')](handleError(_0x20e3bc,null));}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index f4d40b5..a10748c 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a103_0x1e97=['uniqueid','./chatQueueReport.attributes'];(function(_0x33cff1,_0x1e9768){const _0x236483=function(_0x23f2c4){while(--_0x23f2c4){_0x33cff1['push'](_0x33cff1['shift']());}};_0x236483(++_0x1e9768);}(a103_0x1e97,0x1ec));const a103_0x2364=function(_0x33cff1,_0x1e9768){_0x33cff1=_0x33cff1-0x0;let _0x236483=a103_0x1e97[_0x33cff1];return _0x236483;};const _0x17c96c=a103_0x2364;'use strict';const attributes=require(_0x17c96c('0x1'));module['exports']=function(_0x23f2c4){const _0x5bb77d=_0x17c96c,_0x1e9a01=_0x23f2c4['define']('ChatQueueReport',attributes,{'tableName':'report_chat_queue','paranoid':![],'indexes':[{'name':_0x5bb77d('0x0'),'fields':[_0x5bb77d('0x0')]}],'timestamps':!![]});return _0x1e9a01;}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index db73dca..6e5f9e1 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a104_0x3930=['CreateChatQueueReport','catch','../../config/logger','body','raw','UpdateChatQueueReport','debug','ChatQueueReport','create','message','error','../../mysqldb','attributes','then','where','options','stringify','info'];(function(_0xbf607d,_0x39303e){const _0x87df4a=function(_0x1f8233){while(--_0x1f8233){_0xbf607d['push'](_0xbf607d['shift']());}};_0x87df4a(++_0x39303e);}(a104_0x3930,0x1f2));const a104_0x87df=function(_0xbf607d,_0x39303e){_0xbf607d=_0xbf607d-0x0;let _0x87df4a=a104_0x3930[_0xbf607d];return _0x87df4a;};const _0x3dfa51=a104_0x87df;'use strict';const db=require(_0x3dfa51('0x11'))['db'],logger=require(_0x3dfa51('0x8'))('rpc');exports[_0x3dfa51('0x6')]=function(_0x1f8233){const _0x3e77a9=this;return new Promise(function(_0x23f7b5,_0xf3ecec){const _0x508da5=a104_0x87df;return db[_0x508da5('0xd')][_0x508da5('0xe')](_0x1f8233['body'],{'raw':_0x1f8233['options']?_0x1f8233['options'][_0x508da5('0xa')]===undefined?!![]:![]:!![]})[_0x508da5('0x1')](function(_0x5a97c8){const _0x221639=_0x508da5;logger[_0x221639('0x5')](_0x221639('0x6'),_0x1f8233),logger[_0x221639('0xc')](_0x221639('0x6'),_0x1f8233,JSON[_0x221639('0x4')](_0x5a97c8)),_0x23f7b5(_0x5a97c8);})[_0x508da5('0x7')](function(_0x8575c3){const _0x96cde2=_0x508da5;logger[_0x96cde2('0x10')]('CreateChatQueueReport',_0x8575c3[_0x96cde2('0xf')],_0x1f8233),_0xf3ecec(_0x3e77a9[_0x96cde2('0x10')](0x1f4,_0x8575c3[_0x96cde2('0xf')]));});});},exports[_0x3dfa51('0xb')]=function(_0x3f08f6){const _0x7d21d6=this;return new Promise(function(_0x3b80db,_0xa74eb2){const _0x29b928=a104_0x87df;return db[_0x29b928('0xd')]['update'](_0x3f08f6[_0x29b928('0x9')],{'raw':_0x3f08f6[_0x29b928('0x3')]?_0x3f08f6[_0x29b928('0x3')][_0x29b928('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f08f6[_0x29b928('0x3')]?_0x3f08f6[_0x29b928('0x3')][_0x29b928('0x2')]||null:null,'attributes':_0x3f08f6[_0x29b928('0x3')]?_0x3f08f6['options'][_0x29b928('0x0')]||null:null,'limit':_0x3f08f6[_0x29b928('0x3')]?_0x3f08f6[_0x29b928('0x3')]['limit']||null:null})[_0x29b928('0x1')](function(_0x2353f3){const _0x39ef23=_0x29b928;logger[_0x39ef23('0x5')](_0x39ef23('0xb'),_0x3f08f6),logger[_0x39ef23('0xc')]('UpdateChatQueueReport',_0x3f08f6,JSON[_0x39ef23('0x4')](_0x2353f3)),_0x3b80db(_0x2353f3);})[_0x29b928('0x7')](function(_0x354b0f){const _0x591c70=_0x29b928;logger['error'](_0x591c70('0xb'),_0x354b0f[_0x591c70('0xf')],_0x3f08f6),_0xa74eb2(_0x7d21d6['error'](0x1f4,_0x354b0f[_0x591c70('0xf')]));});});}; \ No newline at end of file +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 diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index b08ae36..54e7dfd 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a105_0x38d0=['put','destroy','/:id','Router','exports','create','../../components/auth/service','describe','isAuthenticated','./chatQueueReport.controller','get','express'];(function(_0x225637,_0x38d0e4){const _0x288533=function(_0x37ca4c){while(--_0x37ca4c){_0x225637['push'](_0x225637['shift']());}};_0x288533(++_0x38d0e4);}(a105_0x38d0,0x1d6));const a105_0x2885=function(_0x225637,_0x38d0e4){_0x225637=_0x225637-0x0;let _0x288533=a105_0x38d0[_0x225637];return _0x288533;};const _0x480558=a105_0x2885;'use strict';const express=require(_0x480558('0x9')),router=express[_0x480558('0x1')](),auth=require(_0x480558('0x4')),controller=require(_0x480558('0x7'));router[_0x480558('0x8')]('/',auth[_0x480558('0x6')](),controller['index']),router[_0x480558('0x8')]('/describe',auth[_0x480558('0x6')](),controller[_0x480558('0x5')]),router[_0x480558('0x8')](_0x480558('0x0'),auth[_0x480558('0x6')](),controller['show']),router['post']('/',auth[_0x480558('0x6')](),controller[_0x480558('0x3')]),router[_0x480558('0xa')]('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x480558('0x0'),auth[_0x480558('0x6')](),controller[_0x480558('0xb')]),module[_0x480558('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index 2318be2..76ad450 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a106_0x5a61=['DATE','NOW','sequelize','agent','ENUM','STRING','account','queue'];(function(_0x499bea,_0x5a61a7){const _0x33f7f2=function(_0x205f85){while(--_0x205f85){_0x499bea['push'](_0x499bea['shift']());}};_0x33f7f2(++_0x5a61a7);}(a106_0x5a61,0x95));const a106_0x33f7=function(_0x499bea,_0x5a61a7){_0x499bea=_0x499bea-0x0;let _0x33f7f2=a106_0x5a61[_0x499bea];return _0x33f7f2;};const _0xbcf43e=a106_0x33f7;'use strict';const Sequelize=require(_0xbcf43e('0x5'));module['exports']={'uniqueid':{'type':Sequelize[_0xbcf43e('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0xbcf43e('0x7')](_0xbcf43e('0x1'),_0xbcf43e('0x6'),_0xbcf43e('0x2')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0xbcf43e('0x3')],'allowNull':![],'defaultValue':Sequelize[_0xbcf43e('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js index c1adf6c..7514070 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a107_0x19eb=['findOne','intersection','length','fields','keys','count','merge','../../mysqldb','map','end','create','filter','offset','lodash','fieldName','like','show','../../config/logger','error','then','options','where','sort','findAll','query','send','update','name','sendStatus','json','attributes','destroy','status','key','describe','filters','stack','nolimit','includeAll','catch','limit','rawAttributes','../../components/parsers/qs','ChatTransferReport','type','order','include','pick','model','body'];(function(_0x316054,_0x19eba8){const _0x1d4e26=function(_0x3ace75){while(--_0x3ace75){_0x316054['push'](_0x316054['shift']());}};_0x1d4e26(++_0x19eba8);}(a107_0x19eb,0x14f));const a107_0x1d4e=function(_0x316054,_0x19eba8){_0x316054=_0x316054-0x0;let _0x1d4e26=a107_0x19eb[_0x316054];return _0x1d4e26;};const _0x30b8f3=a107_0x1d4e;'use strict';const _=require(_0x30b8f3('0x1c')),qs=require(_0x30b8f3('0x7')),logger=require(_0x30b8f3('0x20'))('api'),db=require(_0x30b8f3('0x16'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3ace75,_0x19a376){return _0x19a376=_0x19a376||0xc8,function(_0x35b2ea){const _0x402637=a107_0x1d4e;if(_0x35b2ea)return _0x3ace75[_0x402637('0x2f')](_0x19a376)[_0x402637('0x2c')](_0x35b2ea);};}function respondWithFilteredResult(_0x3e3119,_0x50c73d){return function(_0x3cd436){const _0x380829=a107_0x1d4e;if(_0x3cd436){const _0x2403ee=_0x3cd436[_0x380829('0x14')],_0x2bd79a=_0x50c73d[_0x380829('0x1b')];let _0xd7cb9e=_0x50c73d[_0x380829('0x1b')]+_0x50c73d['limit'],_0x197184;return _0xd7cb9e>=_0x2403ee?(_0xd7cb9e=_0x2403ee,_0x197184=0xc8):_0x197184=0xce,_0x3e3119['status'](_0x197184),_0x3e3119['set']('Content-Range',_0x2bd79a+'-'+_0xd7cb9e+'/'+_0x2403ee)[_0x380829('0x2c')](_0x3cd436);}return null;};}function saveUpdates(_0x3685e0){return function(_0x4bf9e2){const _0x39a8dc=a107_0x1d4e;if(_0x4bf9e2)return _0x4bf9e2[_0x39a8dc('0x29')](_0x3685e0)[_0x39a8dc('0x22')](function(_0x3130d6){return _0x3130d6;});return null;};}function removeEntity(_0x336287){return function(_0x4cfde0){const _0x5fd2c3=a107_0x1d4e;if(_0x4cfde0)return _0x4cfde0[_0x5fd2c3('0x2e')]()['then'](function(){const _0x4f0493=_0x5fd2c3;_0x336287[_0x4f0493('0x2f')](0xcc)[_0x4f0493('0x18')]();});};}function handleEntityNotFound(_0x297778){return function(_0x2db84a){const _0x33cf29=a107_0x1d4e;return!_0x2db84a&&_0x297778[_0x33cf29('0x2b')](0x194),_0x2db84a;};}function handleError(_0x1a50a0,_0x5221d2){return _0x5221d2=_0x5221d2||0x1f4,function(_0x4e7e45){const _0x49663e=a107_0x1d4e;logger[_0x49663e('0x21')](_0x4e7e45[_0x49663e('0x1')]),_0x4e7e45[_0x49663e('0x2a')]&&delete _0x4e7e45[_0x49663e('0x2a')],_0x1a50a0[_0x49663e('0x2f')](_0x5221d2)[_0x49663e('0x28')](_0x4e7e45);};}exports['index']=function(_0x4e1281,_0x4109c2){const _0x3a43f9=_0x30b8f3;let _0xc520df={};const _0x1ac9da={},_0x5f3bca={'count':0x0,'rows':[]},_0x4f371f=_[_0x3a43f9('0x17')](db[_0x3a43f9('0x8')][_0x3a43f9('0x6')],function(_0x1a32e4){const _0x7f0b97=_0x3a43f9;return{'name':_0x1a32e4[_0x7f0b97('0x1d')],'type':_0x1a32e4[_0x7f0b97('0x9')][_0x7f0b97('0x30')]};});_0x1ac9da[_0x3a43f9('0xd')]=_[_0x3a43f9('0x17')](_0x4f371f,_0x3a43f9('0x2a')),_0x1ac9da[_0x3a43f9('0x27')]=_[_0x3a43f9('0x13')](_0x4e1281[_0x3a43f9('0x27')]),_0x1ac9da[_0x3a43f9('0x0')]=_[_0x3a43f9('0x10')](_0x1ac9da[_0x3a43f9('0xd')],_0x1ac9da[_0x3a43f9('0x27')]),_0xc520df[_0x3a43f9('0x2d')]=_['intersection'](_0x1ac9da[_0x3a43f9('0xd')],qs[_0x3a43f9('0x12')](_0x4e1281['query'][_0x3a43f9('0x12')])),_0xc520df['attributes']=_0xc520df[_0x3a43f9('0x2d')]['length']?_0xc520df[_0x3a43f9('0x2d')]:_0x1ac9da[_0x3a43f9('0xd')];typeof _0x4e1281[_0x3a43f9('0x27')][_0x3a43f9('0x2')]==='undefined'&&(_0xc520df[_0x3a43f9('0x5')]=qs['limit'](_0x4e1281['query']['limit']),_0xc520df[_0x3a43f9('0x1b')]=qs[_0x3a43f9('0x1b')](_0x4e1281['query'][_0x3a43f9('0x1b')]));_0xc520df[_0x3a43f9('0xa')]=qs[_0x3a43f9('0x25')](_0x4e1281['query'][_0x3a43f9('0x25')]),_0xc520df[_0x3a43f9('0x24')]=qs['filters'](_[_0x3a43f9('0xc')](_0x4e1281['query'],_0x1ac9da['filters']),_0x4f371f);_0x4e1281[_0x3a43f9('0x27')][_0x3a43f9('0x1a')]&&(_0xc520df[_0x3a43f9('0x24')]=_['merge'](_0xc520df[_0x3a43f9('0x24')],{[Op['or']]:_[_0x3a43f9('0x17')](_0x4f371f,function(_0x42dbbd){const _0x56cb5a=_0x3a43f9;if(_0x42dbbd[_0x56cb5a('0x9')]!=='VIRTUAL'){const _0x3290e5={};return _0x3290e5[_0x42dbbd[_0x56cb5a('0x2a')]]={[Op[_0x56cb5a('0x1e')]]:'%'+_0x4e1281[_0x56cb5a('0x27')]['filter']+'%'},_0x3290e5;}})}));_0xc520df=_[_0x3a43f9('0x15')]({},_0xc520df,_0x4e1281[_0x3a43f9('0x23')]);const _0x1e5bf9={'where':_0xc520df['where']};return db[_0x3a43f9('0x8')][_0x3a43f9('0x14')](_0x1e5bf9)['then'](function(_0x1c8cc6){const _0x33c6a0=_0x3a43f9;return _0x5f3bca[_0x33c6a0('0x14')]=_0x1c8cc6,_0x4e1281[_0x33c6a0('0x27')]['includeAll']&&(_0xc520df[_0x33c6a0('0xb')]=[{'all':!![]}]),db[_0x33c6a0('0x8')][_0x33c6a0('0x26')](_0xc520df);})['then'](function(_0x59ff6b){return _0x5f3bca['rows']=_0x59ff6b,_0x5f3bca;})['then'](respondWithFilteredResult(_0x4109c2,_0xc520df))[_0x3a43f9('0x4')](handleError(_0x4109c2,null));},exports[_0x30b8f3('0x1f')]=function(_0x5e67d0,_0x18424a){const _0x497a0d=_0x30b8f3;let _0x46c802={'raw':!![],'where':{'id':_0x5e67d0['params']['id']}};const _0x92dc84={};return _0x92dc84[_0x497a0d('0xd')]=_[_0x497a0d('0x13')](db[_0x497a0d('0x8')][_0x497a0d('0x6')]),_0x92dc84['query']=_['keys'](_0x5e67d0[_0x497a0d('0x27')]),_0x92dc84[_0x497a0d('0x0')]=_[_0x497a0d('0x10')](_0x92dc84[_0x497a0d('0xd')],_0x92dc84['query']),_0x46c802[_0x497a0d('0x2d')]=_[_0x497a0d('0x10')](_0x92dc84[_0x497a0d('0xd')],qs[_0x497a0d('0x12')](_0x5e67d0['query'][_0x497a0d('0x12')])),_0x46c802[_0x497a0d('0x2d')]=_0x46c802[_0x497a0d('0x2d')][_0x497a0d('0x11')]?_0x46c802[_0x497a0d('0x2d')]:_0x92dc84['model'],_0x5e67d0[_0x497a0d('0x27')][_0x497a0d('0x3')]&&(_0x46c802[_0x497a0d('0xb')]=[{'all':!![]}]),_0x46c802=_['merge']({},_0x46c802,_0x5e67d0['options']),db['ChatTransferReport'][_0x497a0d('0xf')](_0x46c802)[_0x497a0d('0x22')](handleEntityNotFound(_0x18424a,null))['then'](respondWithResult(_0x18424a,null))[_0x497a0d('0x4')](handleError(_0x18424a,null));},exports['create']=function(_0x5513d3,_0x48b3ae){const _0x2fdfb4=_0x30b8f3;return db['ChatTransferReport'][_0x2fdfb4('0x19')](_0x5513d3['body'],{})[_0x2fdfb4('0x22')](respondWithResult(_0x48b3ae,0xc9))['catch'](handleError(_0x48b3ae,null));},exports[_0x30b8f3('0x29')]=function(_0x8f0b9b,_0x4a70d2){const _0x17b971=_0x30b8f3;return _0x8f0b9b[_0x17b971('0xe')]['id']&&delete _0x8f0b9b['body']['id'],db[_0x17b971('0x8')][_0x17b971('0xf')]({'where':{'id':_0x8f0b9b['params']['id']}})['then'](handleEntityNotFound(_0x4a70d2,null))[_0x17b971('0x22')](saveUpdates(_0x8f0b9b[_0x17b971('0xe')],null))[_0x17b971('0x22')](respondWithResult(_0x4a70d2,null))['catch'](handleError(_0x4a70d2,null));},exports[_0x30b8f3('0x2e')]=function(_0x2c3b99,_0x272e5f){const _0xf9b8d4=_0x30b8f3;return db[_0xf9b8d4('0x8')]['findOne']({'where':{'id':_0x2c3b99['params']['id']}})[_0xf9b8d4('0x22')](handleEntityNotFound(_0x272e5f,null))[_0xf9b8d4('0x22')](removeEntity(_0x272e5f,null))[_0xf9b8d4('0x4')](handleError(_0x272e5f,null));},exports[_0x30b8f3('0x31')]=function(_0x5bb603,_0xe86a03){const _0x5f15c4=_0x30b8f3;return db[_0x5f15c4('0x8')]['describe']()[_0x5f15c4('0x22')](respondWithResult(_0xe86a03,null))['catch'](handleError(_0xe86a03,null));}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index 180e4b4..8565c73 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a108_0xf287=['exports','report_chat_transfer','define','./chatTransferReport.attributes','uniqueid'];(function(_0x128762,_0xf287c8){const _0x2aa839=function(_0x4f758b){while(--_0x4f758b){_0x128762['push'](_0x128762['shift']());}};_0x2aa839(++_0xf287c8);}(a108_0xf287,0xeb));const a108_0x2aa8=function(_0x128762,_0xf287c8){_0x128762=_0x128762-0x0;let _0x2aa839=a108_0xf287[_0x128762];return _0x2aa839;};const _0x211c3d=a108_0x2aa8;'use strict';const attributes=require(_0x211c3d('0x3'));module[_0x211c3d('0x0')]=function(_0x4f758b){const _0x1c89c8=_0x211c3d,_0x5aed36=_0x4f758b[_0x1c89c8('0x2')]('ChatTransferReport',attributes,{'tableName':_0x1c89c8('0x1'),'paranoid':![],'indexes':[{'name':_0x1c89c8('0x4'),'fields':[_0x1c89c8('0x4')]}],'timestamps':!![]});return _0x5aed36;}; \ No newline at end of file +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 diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index 9939638..c9f55a4 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a109_0x1bd7=['isAuthenticated','show','Router','exports','get','../../components/auth/service','create','/describe','put','index','describe','update','/:id','destroy','delete'];(function(_0x490846,_0x1bd744){const _0x131087=function(_0x4b3b74){while(--_0x4b3b74){_0x490846['push'](_0x490846['shift']());}};_0x131087(++_0x1bd744);}(a109_0x1bd7,0x169));const a109_0x1310=function(_0x490846,_0x1bd744){_0x490846=_0x490846-0x0;let _0x131087=a109_0x1bd7[_0x490846];return _0x131087;};const _0x142dd6=a109_0x1310;'use strict';const express=require('express'),router=express[_0x142dd6('0x1')](),auth=require(_0x142dd6('0x4')),controller=require('./chatTransferReport.controller');router[_0x142dd6('0x3')]('/',auth[_0x142dd6('0xe')](),controller[_0x142dd6('0x8')]),router[_0x142dd6('0x3')](_0x142dd6('0x6'),auth['isAuthenticated'](),controller[_0x142dd6('0x9')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x142dd6('0x0')]),router['post']('/',auth['isAuthenticated'](),controller[_0x142dd6('0x5')]),router[_0x142dd6('0x7')](_0x142dd6('0xb'),auth[_0x142dd6('0xe')](),controller[_0x142dd6('0xa')]),router[_0x142dd6('0xd')]('/:id',auth[_0x142dd6('0xe')](),controller[_0x142dd6('0xc')]),module[_0x142dd6('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js index e6a7042..363e366 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a110_0x425d=['All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','#ffffff','Feedback','Comments','parse','Contact\x20us','Type\x20a\x20message','rounded','onlineForm','#011F6A','website_alias','Powered\x20by\x20xCALLY','bottom_right','email','name','ENUM','TEXT','sequelize','Send','star','exports','getDataValue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDisposition','Chat','setDataValue','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','mandatoryDispositionPauseId','offlineForm','System','input','STRING','Thanks\x20you\x20for\x20your\x20time!','generate','Form\x20submission\x20error','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','alternate','textarea','INTEGER','Form\x20properly\x20submitted','thumb','#fafafa','Leave\x20your\x20comments','stringify','Skip','Agent','BOOLEAN'];(function(_0x395c1b,_0x425db3){const _0x53fa9c=function(_0x57c301){while(--_0x57c301){_0x395c1b['push'](_0x395c1b['shift']());}};_0x53fa9c(++_0x425db3);}(a110_0x425d,0x6e));const a110_0x53fa=function(_0x395c1b,_0x425db3){_0x395c1b=_0x395c1b-0x0;let _0x53fa9c=a110_0x425d[_0x395c1b];return _0x53fa9c;};const _0x5258fa=a110_0x53fa;'use strict';const Sequelize=require(_0x5258fa('0x1')),rs=require('randomstring');module[_0x5258fa('0x4')]={'name':{'type':Sequelize[_0x5258fa('0xf')],'allowNull':![]},'address':{'type':Sequelize[_0x5258fa('0xf')],'allowNull':![],'unique':'address'},'description':{'type':Sequelize[_0x5258fa('0xf')]},'mapKey':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x2c')},'mapKeyOffline':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x2c')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x1d')},'customerAlias':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5258fa('0x28'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x5258fa('0xf')],'allowNull':![],'defaultValue':_0x5258fa('0x28'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x5258fa('0xf')],'allowNull':![],'defaultValue':_0x5258fa('0x20'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x5258fa('0x16')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x5258fa('0xf')]},'animation':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':!![]},'header_shape':{'type':Sequelize['ENUM'](_0x5258fa('0x26'),'squared'),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x8')},'offline_chat_button':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Send'},'header_offline':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x24')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x5258fa('0x16')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x2a')},'defaultWhiteLabel':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':!![]},'sitepic':{'type':Sequelize['TEXT']},'closingQuestion':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'},'formSubmitSuccessMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x17')},'formSubmitFailureMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x12')},'noteTitle':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x25')},'closingMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x10')},'closingMessageButton':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x2')},'skipMessageButton':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x1c')},'conditionAgreement':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize['STRING'],'defaultValue':_0x5258fa('0x21')},'ratingType':{'type':Sequelize[_0x5258fa('0x2e')](_0x5258fa('0x3'),_0x5258fa('0x18')),'defaultValue':'star'},'ratingStarsNumber':{'type':Sequelize[_0x5258fa('0x16')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x5258fa('0x0')],'defaultValue':function(){const _0x539279=_0x5258fa;return JSON[_0x539279('0x1b')]({'items':[{'type':_0x539279('0xe'),'variable':null,'config':{'placeholder':_0x539279('0x2d'),'type':'text','required':!![]},'props':{'title':_0x539279('0x2d'),'helpText':''}},{'type':_0x539279('0xe'),'props':{'title':_0x539279('0x2c'),'helpText':''},'config':{'required':!![],'placeholder':_0x539279('0x2c'),'type':_0x539279('0x2c')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x50faff=_0x5258fa;return this[_0x50faff('0x5')]('onlineForm')?JSON['parse'](this['getDataValue'](_0x50faff('0x27'))):{};},'set':function(_0x57c301){const _0x46bacb=_0x5258fa;return this['setDataValue']('onlineForm',JSON[_0x46bacb('0x1b')](_0x57c301));}},'offlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x3e026a=_0x5258fa;return JSON[_0x3e026a('0x1b')]({'items':[{'type':_0x3e026a('0xe'),'props':{'title':_0x3e026a('0x2c'),'helpText':''},'config':{'required':!![],'placeholder':_0x3e026a('0x2c'),'type':'email'},'variable':null},{'type':_0x3e026a('0x15'),'config':{'placeholder':_0x3e026a('0x22')},'props':{'title':_0x3e026a('0x22'),'helpText':_0x3e026a('0x1a')}}],'fromKey':0x0});},'get':function(){const _0x584787=_0x5258fa;return this[_0x584787('0x5')](_0x584787('0xc'))?JSON[_0x584787('0x23')](this[_0x584787('0x5')](_0x584787('0xc'))):{};},'set':function(_0x5a884b){const _0xbf48e6=_0x5258fa;return this['setDataValue'](_0xbf48e6('0xc'),JSON[_0xbf48e6('0x1b')](_0x5a884b));}},'token':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':function(){const _0x207305=_0x5258fa;return rs[_0x207305('0x11')]();}},'autoclose':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x5258fa('0xf')]},'forwardOffline':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize['STRING']},'waitingTitle':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x1f')},'waitingMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x13')},'offlineMessageSubject':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'},'offlineMessageBody':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0xa')},'enableUnmanagedNote':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x1c')},'sendUnmanaged':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x5258fa('0x0')]},'showAgentAvatar':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x5258fa('0xf')]},'notificationTemplate':{'type':Sequelize[_0x5258fa('0x0')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x29')},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x2b')},'verticalAlignment':{'type':Sequelize[_0x5258fa('0x16')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0x14')},'defaultTitle':{'type':Sequelize[_0x5258fa('0xf')]},'customerAvatar':{'type':Sequelize[_0x5258fa('0x0')]},'showCustomerAvatar':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x5258fa('0x16')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x5258fa('0xf')],'allowNull':![],'defaultValue':_0x5258fa('0x19'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x5258fa('0x16')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5258fa('0x16')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x5258fa('0xf')],'defaultValue':_0x5258fa('0xd')},'systemAvatar':{'type':Sequelize[_0x5258fa('0x0')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5258fa('0x16')],'comment':_0x5258fa('0x6')},'mandatoryDisposition':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x5a53c2){const _0xf840a0=_0x5258fa;if(!_0x5a53c2)this[_0xf840a0('0x9')](_0xf840a0('0xb'),null);this['setDataValue'](_0xf840a0('0x7'),_0x5a53c2);}},'vidaooEscalation':{'type':Sequelize[_0x5258fa('0x1e')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize['STRING'],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js index 359521f..64406e9 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a111_0x3c61=['addInteraction','findOne','MailServerOut','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','pass','querystring','authentication','ChatWebsiteId','addProactiveActions','addAnswer','auth','List','request\x20sent','timezone','iftime\x20%s,%s','close','emit','ChatApplication','join','agent','getApplications','Contact','../../components/parsers/qs','map','../../config/environment','onlineForm','debug','addSystemAvatar','json','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','created','file','x-real-port','unshift','getLicense','No\x20timezone','isNil','messageId','lastName','show','UserProfileResource','../../rediscache','getProactiveActions','interaction','stringify','offset','offlineMessageBody','body','code','some','sort','firstName','priority','Pause','findAll','removeDispositions','error','mustache','no\x20available\x20attributes','sitepic','externalUrl','type','rows','offline','unmanaged','%s\x20%s','createdAt','request','userChatWebsite:remove','notify','indexOf','ejs','removeAgents','ChatInteraction','order','getDispositions','headers','push','app','addAgents','server/files/images/avatars/customer_avatar.png','rawAttributes','chatLicenseExceeded','body\x20is\x20mandatory\x20and\x20not\x20empty','utf8','get','download','send','update','internal','device','fieldName','server/files/images/logos/default_logo.svg','getAnswers','\x22%s\x22\x20<%s>','util','getCustomerAvatar','addAvatar','../../mysqldb','CannedAnswer','from','server/files/images/avatars/','findAndCountAll','server/files/images/logos/','catch','remote','browser','online','getSnippet','User','isArray','filters','getFields','Smtp','virtual','Intervals','first','false','autoclose','path','sequelize','register','mapKey','email','forwardOfflineAddress','params','autoAssociation','all','custom','role','x-forwarded-for','Tag','keys','updatedAt','./chatWebsite.socket','pick','sendStatus','MailAccount','list','x-real-ip','user','waitForTheAssignedAgent','agentAvatar','asc','unknown','nolimit','showCustomerAvatar','http','host','ids','items','then','filter','interval','describe','addLogo','port','where','Contacts','referer','addApplications','License','CompanyId','getAvatar','message','client','remoteAddress','query','OFFLINE','getAgents','like','defaults','systemAvatar','server/files/templates/chatOfflineMessage.ejs','CmContact','version','tag','getLogo','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','mapKeyOffline','split','destroy','Unable\x20to\x20retrieve\x20the\x20current\x20user','alignment','customerIp','chatVersion','fields','filename','Applications','vendor','difference','getSystemAvatar','account','userChatWebsite:save','Command','*,*,*,*','format','end','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','undefined','attributes','getOfflineMessages','limit','startRouting','ChatMessage','Owner','ChatWebsite','server/files/images/avatars/system_avatar.png','stack','render','count','Content-Range','jayson/promise','merge','setUA','ListId','../../config/license/util','status','include','bulkCreate','applications','AttachmentId','textColor','from\x20is\x20mandatory','removeAnswers','cf-connecting-ip','name','offlineForm','existsSync','create','includes','contact','options','Interval','CmList','customerAvatar','length','omit','ChatOfflineMessage','service','model','getResult','../../config/logger','iftime\x20%s','threadId','mandatoryDispositionPause','ChatWebsite,\x20%s,\x20%s','Disposition','color','UserId','secure','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','intersection','forcedOwnership','root','info','getInteractions','Start','increment','includeAll'];(function(_0x7d1aaa,_0x3c61be){const _0xef2847=function(_0x4ffbca){while(--_0x4ffbca){_0x7d1aaa['push'](_0x7d1aaa['shift']());}};_0xef2847(++_0x3c61be);}(a111_0x3c61,0x12b));const a111_0xef28=function(_0x7d1aaa,_0x3c61be){_0x7d1aaa=_0x7d1aaa-0x0;let _0xef2847=a111_0x3c61[_0x7d1aaa];return _0xef2847;};const _0x3ad545=a111_0xef28;'use strict';const Mustache=require(_0x3ad545('0x12')),util=require(_0x3ad545('0x38')),path=require(_0x3ad545('0x50')),ejs=require(_0x3ad545('0x20')),fs=require('fs'),_=require('lodash'),querystring=require(_0x3ad545('0xe2')),qs=require(_0x3ad545('0xf3')),logger=require(_0x3ad545('0xcb'))('api'),config=require(_0x3ad545('0xf5')),db=require(_0x3ad545('0x3b'))['db'],{Op,ValidationError}=require(_0x3ad545('0x51')),{getSocket}=require(_0x3ad545('0x2')),socket=getSocket();require(_0x3ad545('0x5f'))[_0x3ad545('0x52')](socket);const jayson=require(_0x3ad545('0xad')),client=jayson[_0x3ad545('0x7e')][_0x3ad545('0x6c')]({'port':0x232c}),client9002=jayson[_0x3ad545('0x7e')]['http']({'port':0x232a}),client9003=jayson[_0x3ad545('0x7e')][_0x3ad545('0x6c')]({'port':0x232b});function respondWithRpcPromise(_0x4ffbca,_0x2ca7f8,_0xabc46e,_0x3b85cd){return new Promise(function(_0x137d55,_0x35a7cc){const _0x2156da=a111_0xef28,_0x1ee943=_0x3b85cd||client;return _0x1ee943[_0x2156da('0x1c')](_0x4ffbca,_0xabc46e)[_0x2156da('0x70')](function(_0x3d4d74){const _0x19236c=_0x2156da;logger['info'](_0x19236c('0xcf'),_0x2ca7f8,'request\x20sent'),logger[_0x19236c('0xf7')]('ChatWebsite,\x20%s,\x20%s,\x20%s',_0x2ca7f8,'request\x20sent',JSON[_0x19236c('0x5')](_0x3d4d74));if(_0x3d4d74[_0x19236c('0x11')]){if(_0x3d4d74['error'][_0x19236c('0x9')]===0x1f4)return logger[_0x19236c('0x11')]('ChatWebsite,\x20%s,\x20%s',_0x2ca7f8,_0x3d4d74[_0x19236c('0x11')]['message']),_0x35a7cc(_0x3d4d74[_0x19236c('0x11')][_0x19236c('0x7d')]);return logger[_0x19236c('0x11')](_0x19236c('0xcf'),_0x2ca7f8,_0x3d4d74[_0x19236c('0x11')]['message']),_0x137d55(_0x3d4d74[_0x19236c('0x11')][_0x19236c('0x7d')]);}else logger[_0x19236c('0xd8')](_0x19236c('0xcf'),_0x2ca7f8,_0x19236c('0xe9')),_0x137d55(_0x3d4d74['result']['message']);})[_0x2156da('0x41')](function(_0x304414){const _0x61becd=_0x2156da;logger[_0x61becd('0x11')](_0x61becd('0xcf'),_0x2ca7f8,_0x304414),_0x35a7cc(_0x304414);});});}function respondWithStatusCode(_0x1164ff,_0x48d1f3){return _0x48d1f3=_0x48d1f3||0xcc,function(_0xfc77a2){const _0x565669=a111_0xef28;if(_0xfc77a2)return _0x1164ff[_0x565669('0x61')](_0x48d1f3);return _0x1164ff['status'](_0x48d1f3)[_0x565669('0x9e')]();};}function respondWithResult(_0x3bb217,_0x46cb9e){return _0x46cb9e=_0x46cb9e||0xc8,function(_0x4dc985){const _0x4ab835=a111_0xef28;if(_0x4dc985)return _0x3bb217[_0x4ab835('0xb2')](_0x46cb9e)[_0x4ab835('0xf9')](_0x4dc985);};}function respondWithFilteredResult(_0x33b6a9,_0x460ac2){return function(_0x408c7b){const _0x4e4823=a111_0xef28;if(_0x408c7b){const _0x5b2028=_0x408c7b[_0x4e4823('0xab')],_0x5be877=_0x460ac2[_0x4e4823('0x6')];let _0x2112ad=_0x460ac2[_0x4e4823('0x6')]+_0x460ac2['limit'],_0x547588;return _0x2112ad>=_0x5b2028?(_0x2112ad=_0x5b2028,_0x547588=0xc8):_0x547588=0xce,_0x33b6a9[_0x4e4823('0xb2')](_0x547588),_0x33b6a9['set'](_0x4e4823('0xac'),_0x5be877+'-'+_0x2112ad+'/'+_0x5b2028)[_0x4e4823('0xf9')](_0x408c7b);}return null;};}function saveUpdates(_0x785fca){return function(_0x36e22a){const _0xdaf5a=a111_0xef28;if(_0x36e22a)return _0x36e22a[_0xdaf5a('0x31')](_0x785fca)[_0xdaf5a('0x70')](function(_0x8d6cdb){return _0x8d6cdb;});return null;};}function removeEntity(_0x452ccc){return function(_0x2fc437){const _0x84e389=a111_0xef28;if(_0x2fc437)return _0x2fc437[_0x84e389('0x8e')]()['then'](function(){const _0x1a141c=_0x84e389,_0x1a76df=_0x2fc437['get']({'plain':!![]}),_0xa5fab4='ChatWebsites';return db[_0x1a141c('0x1')]['destroy']({'where':{'type':_0xa5fab4,'resourceId':_0x1a76df['id']}})[_0x1a141c('0x70')](function(){return _0x2fc437;});})[_0x84e389('0x70')](function(){const _0x2d5dce=_0x84e389;_0x452ccc[_0x2d5dce('0xb2')](0xcc)['end']();});};}function handleEntityNotFound(_0x420fd8){return function(_0xc5f810){const _0x5f373e=a111_0xef28;return!_0xc5f810&&_0x420fd8[_0x5f373e('0x61')](0x194),_0xc5f810;};}function handleError(_0x575d0e,_0x100f3d){return _0x100f3d=_0x100f3d||0x1f4,function(_0x43640a){const _0x285c23=a111_0xef28;logger[_0x285c23('0x11')](_0x43640a[_0x285c23('0xa9')]),_0x43640a[_0x285c23('0xbb')]&&delete _0x43640a['name'],_0x575d0e[_0x285c23('0xb2')](_0x100f3d)[_0x285c23('0x30')](_0x43640a);};}exports['index']=function(_0x1e89f6,_0x99a769){const _0x4f3f62=_0x3ad545;let _0x221151={'include':[{'model':db['Pause'],'as':_0x4f3f62('0xce')}]};const _0x2cdd04={},_0x5835c0={'count':0x0,'rows':[]},_0xc5ff72=_[_0x4f3f62('0xf4')](db[_0x4f3f62('0xa7')][_0x4f3f62('0x2a')],function(_0x3fa079){const _0x4f5774=_0x4f3f62;return{'name':_0x3fa079[_0x4f5774('0x34')],'type':_0x3fa079[_0x4f5774('0x16')]['key']};});_0x2cdd04[_0x4f3f62('0xc9')]=_[_0x4f3f62('0xf4')](_0xc5ff72,'name'),_0x2cdd04[_0x4f3f62('0x80')]=_[_0x4f3f62('0x5d')](_0x1e89f6['query']),_0x2cdd04[_0x4f3f62('0x48')]=_[_0x4f3f62('0xd5')](_0x2cdd04[_0x4f3f62('0xc9')],_0x2cdd04[_0x4f3f62('0x80')]),_0x221151[_0x4f3f62('0xa1')]=_[_0x4f3f62('0xd5')](_0x2cdd04['model'],qs['fields'](_0x1e89f6[_0x4f3f62('0x80')][_0x4f3f62('0x93')])),_0x221151[_0x4f3f62('0xa1')]=_0x221151[_0x4f3f62('0xa1')][_0x4f3f62('0xc5')]?_0x221151['attributes']:_0x2cdd04[_0x4f3f62('0xc9')];typeof _0x1e89f6['query'][_0x4f3f62('0x6a')]==='undefined'&&(_0x221151['limit']=qs[_0x4f3f62('0xa3')](_0x1e89f6[_0x4f3f62('0x80')][_0x4f3f62('0xa3')]),_0x221151[_0x4f3f62('0x6')]=qs[_0x4f3f62('0x6')](_0x1e89f6[_0x4f3f62('0x80')][_0x4f3f62('0x6')]));_0x221151[_0x4f3f62('0x23')]=qs[_0x4f3f62('0xb')](_0x1e89f6[_0x4f3f62('0x80')][_0x4f3f62('0xb')]),_0x221151[_0x4f3f62('0x76')]=qs[_0x4f3f62('0x48')](_[_0x4f3f62('0x60')](_0x1e89f6[_0x4f3f62('0x80')],_0x2cdd04[_0x4f3f62('0x48')]),_0xc5ff72);_0x1e89f6['query'][_0x4f3f62('0x71')]&&(_0x221151[_0x4f3f62('0x76')]=_[_0x4f3f62('0xae')](_0x221151[_0x4f3f62('0x76')],{[Op['or']]:_[_0x4f3f62('0xf4')](_0xc5ff72,function(_0x5bcad7){const _0x734d59=_0x4f3f62;if(_0x5bcad7[_0x734d59('0x16')]!=='VIRTUAL'){const _0x407140={};return _0x407140[_0x5bcad7[_0x734d59('0xbb')]]={[Op[_0x734d59('0x83')]]:'%'+_0x1e89f6[_0x734d59('0x80')][_0x734d59('0x71')]+'%'},_0x407140;}})}));_0x221151=_[_0x4f3f62('0xae')]({},_0x221151,_0x1e89f6[_0x4f3f62('0xc1')]);const _0x56ea21={'where':_0x221151['where']};return db[_0x4f3f62('0xa7')][_0x4f3f62('0xab')](_0x56ea21)['then'](function(_0x4ad2ed){const _0x550553=_0x4f3f62;return _0x5835c0['count']=_0x4ad2ed,_0x1e89f6[_0x550553('0x80')][_0x550553('0xdc')]&&(_0x221151[_0x550553('0xb3')]=[{'all':!![]}]),db['ChatWebsite'][_0x550553('0xf')](_0x221151);})[_0x4f3f62('0x70')](function(_0x168f03){return _0x5835c0['rows']=_0x168f03,_0x5835c0;})[_0x4f3f62('0x70')](respondWithFilteredResult(_0x99a769,_0x221151))[_0x4f3f62('0x41')](handleError(_0x99a769,null));},exports[_0x3ad545('0x0')]=function(_0xd4619f,_0x51b056){const _0x51f966=_0x3ad545;let _0x58827e={'raw':![],'where':{'id':_0xd4619f['params']['id']},'include':[{'model':db['Pause'],'as':_0x51f966('0xce')}]};const _0x219bc0={};return _0x219bc0[_0x51f966('0xc9')]=_[_0x51f966('0x5d')](db[_0x51f966('0xa7')][_0x51f966('0x2a')]),_0x219bc0[_0x51f966('0x80')]=_[_0x51f966('0x5d')](_0xd4619f['query']),_0x219bc0[_0x51f966('0x48')]=_[_0x51f966('0xd5')](_0x219bc0[_0x51f966('0xc9')],_0x219bc0[_0x51f966('0x80')]),_0x58827e[_0x51f966('0xa1')]=_[_0x51f966('0xd5')](_0x219bc0[_0x51f966('0xc9')],qs[_0x51f966('0x93')](_0xd4619f[_0x51f966('0x80')]['fields'])),_0x58827e[_0x51f966('0xa1')]=_0x58827e[_0x51f966('0xa1')][_0x51f966('0xc5')]?_0x58827e['attributes']:_0x219bc0[_0x51f966('0xc9')],_0xd4619f['query'][_0x51f966('0xdc')]&&(_0x58827e['include']=[{'all':!![]}]),_0x58827e=_[_0x51f966('0xae')]({},_0x58827e,_0xd4619f[_0x51f966('0xc1')]),db[_0x51f966('0xa7')][_0x51f966('0xde')](_0x58827e)[_0x51f966('0x70')](handleEntityNotFound(_0x51b056,null))['then'](respondWithResult(_0x51b056,null))['catch'](handleError(_0x51b056,null));},exports['create']=function(_0x489c41,_0x1d1cae){const _0x1e5c10=_0x3ad545;return db[_0x1e5c10('0xa7')][_0x1e5c10('0xbe')](_0x489c41[_0x1e5c10('0x8')],{})[_0x1e5c10('0x70')](function(_0x28d11a){const _0x448800=_0x1e5c10,_0x439bce=_0x489c41['user']['get']({'plain':!![]});if(!_0x439bce)throw new Error(_0x448800('0x8f'));if(_0x439bce[_0x448800('0x5a')]===_0x448800('0x65')){const _0x2226e9=_0x28d11a[_0x448800('0x2e')]({'plain':!![]}),_0x2709dd='ChatWebsites';return db['UserProfileSection'][_0x448800('0xde')]({'where':{'name':_0x2709dd,'userProfileId':_0x439bce['userProfileId']},'raw':!![]})[_0x448800('0x70')](function(_0x10a423){const _0x37baa2=_0x448800;return _0x10a423&&_0x10a423[_0x37baa2('0x57')]===0x0?db[_0x37baa2('0x1')][_0x37baa2('0xbe')]({'name':_0x2226e9[_0x37baa2('0xbb')],'resourceId':_0x2226e9['id'],'type':_0x10a423[_0x37baa2('0xbb')],'sectionId':_0x10a423['id']},{})[_0x37baa2('0x70')](function(){return _0x28d11a;}):_0x28d11a;})[_0x448800('0x41')](function(_0x4737b4){const _0x4e1168=_0x448800;logger['error'](_0x4e1168('0xfa'),_0x4737b4);throw _0x4737b4;});}return _0x28d11a;})[_0x1e5c10('0x70')](respondWithResult(_0x1d1cae,0xc9))[_0x1e5c10('0x41')](handleError(_0x1d1cae,null));},exports[_0x3ad545('0x31')]=function(_0x22ded2,_0x8d3294){const _0x1474a1=_0x3ad545;return _0x22ded2[_0x1474a1('0x8')]['id']&&delete _0x22ded2[_0x1474a1('0x8')]['id'],db['ChatWebsite']['findOne']({'where':{'id':_0x22ded2[_0x1474a1('0x56')]['id']},'include':[{'model':db[_0x1474a1('0xe')],'as':'mandatoryDispositionPause'}]})[_0x1474a1('0x70')](handleEntityNotFound(_0x8d3294,null))[_0x1474a1('0x70')](saveUpdates(_0x22ded2[_0x1474a1('0x8')],null))['then'](respondWithResult(_0x8d3294,null))['catch'](handleError(_0x8d3294,null));},exports[_0x3ad545('0x8e')]=function(_0x5c391d,_0x146cce){const _0x5e0756=_0x3ad545;return db[_0x5e0756('0xa7')][_0x5e0756('0xde')]({'where':{'id':_0x5c391d['params']['id']}})['then'](handleEntityNotFound(_0x146cce,null))[_0x5e0756('0x70')](removeEntity(_0x146cce,null))[_0x5e0756('0x41')](handleError(_0x146cce,null));},exports[_0x3ad545('0x73')]=function(_0x2f3536,_0x207c2d){const _0x10dc25=_0x3ad545;return db[_0x10dc25('0xa7')]['describe']()[_0x10dc25('0x70')](respondWithResult(_0x207c2d,null))[_0x10dc25('0x41')](handleError(_0x207c2d,null));},exports['addDisposition']=function(_0x50a922,_0x4e8e96){const _0x29ef39=_0x3ad545;return _0x50a922['body']['id']&&delete _0x50a922[_0x29ef39('0x8')]['id'],db['ChatWebsite']['findOne']({'where':{'id':_0x50a922[_0x29ef39('0x56')]['id']}})[_0x29ef39('0x70')](handleEntityNotFound(_0x4e8e96,null))[_0x29ef39('0x70')](function(_0x3c4b8b){const _0x159af7=_0x29ef39;if(_0x3c4b8b)return _0x50a922[_0x159af7('0x8')][_0x159af7('0xe4')]=_0x3c4b8b['id'],db[_0x159af7('0xd0')][_0x159af7('0xbe')](_0x50a922[_0x159af7('0x8')]);})[_0x29ef39('0x70')](respondWithResult(_0x4e8e96,null))[_0x29ef39('0x41')](handleError(_0x4e8e96,null));},exports[_0x3ad545('0x24')]=function(_0x8ae1d8,_0x55415b){const _0x11982b=_0x3ad545;let _0x58d151={'raw':![],'where':{}};const _0x2b0eea={},_0x1ab2c5={'count':0x0,'rows':[]};return db[_0x11982b('0xa7')]['findOne']({'where':{'id':_0x8ae1d8[_0x11982b('0x56')]['id']}})[_0x11982b('0x70')](handleEntityNotFound(_0x55415b,null))['then'](function(_0x38e0bc){const _0x1e80e8=_0x11982b;if(_0x38e0bc)return _0x2b0eea[_0x1e80e8('0xc9')]=_[_0x1e80e8('0x5d')](db[_0x1e80e8('0xd0')]['rawAttributes']),_0x2b0eea[_0x1e80e8('0x80')]=_[_0x1e80e8('0x5d')](_0x8ae1d8[_0x1e80e8('0x80')]),_0x2b0eea[_0x1e80e8('0x48')]=_['intersection'](_0x2b0eea[_0x1e80e8('0xc9')],_0x2b0eea['query']),_0x58d151[_0x1e80e8('0xa1')]=_['intersection'](_0x2b0eea[_0x1e80e8('0xc9')],qs[_0x1e80e8('0x93')](_0x8ae1d8['query'][_0x1e80e8('0x93')])),_0x58d151[_0x1e80e8('0xa1')]=_0x58d151['attributes'][_0x1e80e8('0xc5')]?_0x58d151[_0x1e80e8('0xa1')]:_0x2b0eea['model'],typeof _0x8ae1d8[_0x1e80e8('0x80')][_0x1e80e8('0x6a')]===_0x1e80e8('0xa0')&&(_0x58d151[_0x1e80e8('0xa3')]=qs['limit'](_0x8ae1d8['query'][_0x1e80e8('0xa3')]),_0x58d151['offset']=qs[_0x1e80e8('0x6')](_0x8ae1d8[_0x1e80e8('0x80')][_0x1e80e8('0x6')])),_0x58d151[_0x1e80e8('0x23')]=qs['sort'](_0x8ae1d8[_0x1e80e8('0x80')][_0x1e80e8('0xb')]),_0x58d151[_0x1e80e8('0x76')]=qs['filters'](_[_0x1e80e8('0x60')](_0x8ae1d8[_0x1e80e8('0x80')],_0x2b0eea[_0x1e80e8('0x48')])),_0x58d151[_0x1e80e8('0x76')][_0x1e80e8('0xe4')]=_0x38e0bc['id'],_0x8ae1d8['query'][_0x1e80e8('0x71')]&&(_0x58d151[_0x1e80e8('0x76')]=_[_0x1e80e8('0xae')](_0x58d151[_0x1e80e8('0x76')],{[Op['or']]:_[_0x1e80e8('0xf4')](_0x58d151[_0x1e80e8('0xa1')],function(_0xe756){const _0x1e38ca=_0x1e80e8,_0x603f5b={};return _0x603f5b[_0xe756]={[Op['like']]:'%'+_0x8ae1d8['query'][_0x1e38ca('0x71')]+'%'},_0x603f5b;})})),_0x58d151=_[_0x1e80e8('0xae')]({},_0x58d151,_0x8ae1d8['options']),db[_0x1e80e8('0xd0')][_0x1e80e8('0xab')]({'where':_0x58d151['where']})[_0x1e80e8('0x70')](function(_0xf08ccb){const _0x1abd91=_0x1e80e8;return _0x1ab2c5[_0x1abd91('0xab')]=_0xf08ccb,_0x8ae1d8[_0x1abd91('0x80')][_0x1abd91('0xdc')]&&(_0x58d151[_0x1abd91('0xb3')]=[{'all':!![]}]),db['Disposition'][_0x1abd91('0xf')](_0x58d151);})[_0x1e80e8('0x70')](function(_0xe80b4){return _0x1ab2c5['rows']=_0xe80b4,_0x1ab2c5;});})[_0x11982b('0x70')](respondWithFilteredResult(_0x55415b,_0x58d151))[_0x11982b('0x41')](handleError(_0x55415b,null));},exports['removeDispositions']=function(_0x6bb08a,_0x5b4f9f){const _0xf41c11=_0x3ad545;return db['ChatWebsite'][_0xf41c11('0xde')]({'where':{'id':_0x6bb08a['params']['id']}})[_0xf41c11('0x70')](handleEntityNotFound(_0x5b4f9f,null))[_0xf41c11('0x70')](function(_0x4cdd41){const _0x1b82bf=_0xf41c11;if(_0x4cdd41)return _0x4cdd41[_0x1b82bf('0x10')](_0x6bb08a[_0x1b82bf('0x80')]['ids']);})[_0xf41c11('0x70')](respondWithStatusCode(_0x5b4f9f,null))['catch'](handleError(_0x5b4f9f,null));},exports[_0x3ad545('0xe6')]=function(_0x4237e0,_0x5033dc){const _0x3b67ae=_0x3ad545;return _0x4237e0[_0x3b67ae('0x8')]['id']&&delete _0x4237e0[_0x3b67ae('0x8')]['id'],db['ChatWebsite']['findOne']({'where':{'id':_0x4237e0['params']['id']}})[_0x3b67ae('0x70')](handleEntityNotFound(_0x5033dc,null))[_0x3b67ae('0x70')](function(_0x193229){const _0x21d92f=_0x3b67ae;if(_0x193229)return _0x4237e0[_0x21d92f('0x8')][_0x21d92f('0xe4')]=_0x193229['id'],db[_0x21d92f('0x3c')][_0x21d92f('0xbe')](_0x4237e0[_0x21d92f('0x8')]);})[_0x3b67ae('0x70')](respondWithResult(_0x5033dc,null))[_0x3b67ae('0x41')](handleError(_0x5033dc,null));},exports[_0x3ad545('0x36')]=function(_0x2abe34,_0x460db3){const _0x398f09=_0x3ad545;let _0x19cdb5={'raw':![],'where':{}};const _0x444658={},_0x3fe772={'count':0x0,'rows':[]};return db[_0x398f09('0xa7')][_0x398f09('0xde')]({'where':{'id':_0x2abe34[_0x398f09('0x56')]['id']}})['then'](handleEntityNotFound(_0x460db3,null))[_0x398f09('0x70')](function(_0x2cbe88){const _0x21fa4a=_0x398f09;if(_0x2cbe88)return _0x444658['model']=_['keys'](db['CannedAnswer'][_0x21fa4a('0x2a')]),_0x444658[_0x21fa4a('0x80')]=_[_0x21fa4a('0x5d')](_0x2abe34['query']),_0x444658[_0x21fa4a('0x48')]=_['intersection'](_0x444658[_0x21fa4a('0xc9')],_0x444658[_0x21fa4a('0x80')]),_0x19cdb5[_0x21fa4a('0xa1')]=_[_0x21fa4a('0xd5')](_0x444658[_0x21fa4a('0xc9')],qs['fields'](_0x2abe34[_0x21fa4a('0x80')][_0x21fa4a('0x93')])),_0x19cdb5[_0x21fa4a('0xa1')]=_0x19cdb5[_0x21fa4a('0xa1')][_0x21fa4a('0xc5')]?_0x19cdb5[_0x21fa4a('0xa1')]:_0x444658[_0x21fa4a('0xc9')],typeof _0x2abe34[_0x21fa4a('0x80')]['nolimit']===_0x21fa4a('0xa0')&&(_0x19cdb5[_0x21fa4a('0xa3')]=qs[_0x21fa4a('0xa3')](_0x2abe34['query']['limit']),_0x19cdb5[_0x21fa4a('0x6')]=qs[_0x21fa4a('0x6')](_0x2abe34[_0x21fa4a('0x80')][_0x21fa4a('0x6')])),_0x19cdb5[_0x21fa4a('0x23')]=qs[_0x21fa4a('0xb')](_0x2abe34['query'][_0x21fa4a('0xb')]),_0x19cdb5[_0x21fa4a('0x76')]=qs[_0x21fa4a('0x48')](_[_0x21fa4a('0x60')](_0x2abe34[_0x21fa4a('0x80')],_0x444658[_0x21fa4a('0x48')])),_0x19cdb5['where'][_0x21fa4a('0xe4')]=_0x2cbe88['id'],_0x2abe34['query'][_0x21fa4a('0x71')]&&(_0x19cdb5[_0x21fa4a('0x76')]=_[_0x21fa4a('0xae')](_0x19cdb5[_0x21fa4a('0x76')],{[Op['or']]:_[_0x21fa4a('0xf4')](_0x19cdb5['attributes'],function(_0x2796f0){const _0x4a277c=_0x21fa4a,_0x27ddc9={};return _0x27ddc9[_0x2796f0]={[Op['like']]:'%'+_0x2abe34[_0x4a277c('0x80')]['filter']+'%'},_0x27ddc9;})})),_0x19cdb5=_[_0x21fa4a('0xae')]({},_0x19cdb5,_0x2abe34['options']),db[_0x21fa4a('0x3c')]['count']({'where':_0x19cdb5[_0x21fa4a('0x76')]})['then'](function(_0x312fcf){const _0x437637=_0x21fa4a;return _0x3fe772[_0x437637('0xab')]=_0x312fcf,_0x2abe34[_0x437637('0x80')][_0x437637('0xdc')]&&(_0x19cdb5[_0x437637('0xb3')]=[{'all':!![]}]),db['CannedAnswer'][_0x437637('0xf')](_0x19cdb5);})[_0x21fa4a('0x70')](function(_0x257a42){return _0x3fe772['rows']=_0x257a42,_0x3fe772;});})['then'](respondWithFilteredResult(_0x460db3,_0x19cdb5))[_0x398f09('0x41')](handleError(_0x460db3,null));},exports[_0x3ad545('0xb9')]=function(_0x525880,_0x1be996){const _0x1b4617=_0x3ad545;return db['ChatWebsite']['findOne']({'where':{'id':_0x525880[_0x1b4617('0x56')]['id']}})[_0x1b4617('0x70')](handleEntityNotFound(_0x1be996,null))[_0x1b4617('0x70')](function(_0x126a07){const _0xc26d87=_0x1b4617;if(_0x126a07)return _0x126a07[_0xc26d87('0xb9')](_0x525880['query'][_0xc26d87('0x6e')]);})[_0x1b4617('0x70')](respondWithStatusCode(_0x1be996,null))[_0x1b4617('0x41')](handleError(_0x1be996,null));},exports[_0x3ad545('0x74')]=function(_0x3b8f29,_0x2f60cb){const _0xe95cfd=_0x3ad545;return _0x3b8f29[_0xe95cfd('0x8')][_0xe95cfd('0x14')]=_0x3b8f29[_0xe95cfd('0xfc')][_0xe95cfd('0x94')],db['ChatWebsite'][_0xe95cfd('0xde')]({'where':{'id':_0x3b8f29['params']['id']}})['then'](handleEntityNotFound(_0x2f60cb,null))[_0xe95cfd('0x70')](saveUpdates(_0x3b8f29[_0xe95cfd('0x8')],null))[_0xe95cfd('0x70')](respondWithResult(_0x2f60cb,null))['catch'](handleError(_0x2f60cb,null));},exports[_0x3ad545('0x3a')]=function(_0x54c091,_0xdd62b3){const _0x4e2c98=_0x3ad545;return _0x54c091[_0x4e2c98('0x8')][_0x4e2c98('0x67')]=_0x54c091[_0x4e2c98('0xfc')][_0x4e2c98('0x94')],db[_0x4e2c98('0xa7')][_0x4e2c98('0xde')]({'where':{'id':_0x54c091['params']['id']}})[_0x4e2c98('0x70')](handleEntityNotFound(_0xdd62b3,null))['then'](saveUpdates(_0x54c091[_0x4e2c98('0x8')],null))[_0x4e2c98('0x70')](respondWithResult(_0xdd62b3,null))[_0x4e2c98('0x41')](handleError(_0xdd62b3,null));},exports['addCustomerAvatar']=function(_0x243173,_0x25fb0d){const _0x174c51=_0x3ad545;return _0x243173['body']['customerAvatar']=_0x243173[_0x174c51('0xfc')][_0x174c51('0x94')],db['ChatWebsite'][_0x174c51('0xde')]({'where':{'id':_0x243173[_0x174c51('0x56')]['id']}})[_0x174c51('0x70')](handleEntityNotFound(_0x25fb0d,null))[_0x174c51('0x70')](saveUpdates(_0x243173['body'],null))[_0x174c51('0x70')](respondWithResult(_0x25fb0d,null))[_0x174c51('0x41')](handleError(_0x25fb0d,null));},exports[_0x3ad545('0xf8')]=function(_0x47f8a4,_0x1e3de5){const _0x4899e2=_0x3ad545;return _0x47f8a4[_0x4899e2('0x8')][_0x4899e2('0x85')]=_0x47f8a4[_0x4899e2('0xfc')][_0x4899e2('0x94')],db['ChatWebsite'][_0x4899e2('0xde')]({'where':{'id':_0x47f8a4[_0x4899e2('0x56')]['id']}})[_0x4899e2('0x70')](handleEntityNotFound(_0x1e3de5,null))[_0x4899e2('0x70')](saveUpdates(_0x47f8a4['body'],null))['then'](respondWithResult(_0x1e3de5,null))[_0x4899e2('0x41')](handleError(_0x1e3de5,null));},exports[_0x3ad545('0x8a')]=function(_0x4ca5a5,_0x10bd31){const _0x3088ac=_0x3ad545;let _0x451aa0=path[_0x3088ac('0xef')](config[_0x3088ac('0xd7')],_0x3088ac('0x35'));const _0x4784ba={'where':{'id':_0x4ca5a5['params']['id']},'attributes':['id',_0x3088ac('0x14')],'raw':!![]};let _0x30daf8=![];return require('../../config/license/util')[_0x3088ac('0xff')]()[_0x3088ac('0x70')](function(_0x3ceb49){_0x3ceb49&&(_0x30daf8=_0x3ceb49['custom']);})[_0x3088ac('0x70')](function(){const _0x323863=_0x3088ac;return db['ChatWebsite'][_0x323863('0xde')](_0x4784ba);})[_0x3088ac('0x70')](handleEntityNotFound(_0x10bd31,null))[_0x3088ac('0x70')](function(_0xe613c1){const _0x534352=_0x3088ac;if(_0xe613c1)return!_[_0x534352('0x101')](_0xe613c1['sitepic'])&&(fs[_0x534352('0xbd')](path['join'](config[_0x534352('0xd7')],_0x534352('0x40'),_0xe613c1['sitepic']))&&_0x30daf8&&(_0x451aa0=path[_0x534352('0xef')](config['root'],_0x534352('0x40'),_0xe613c1[_0x534352('0x14')]))),_0x10bd31[_0x534352('0x2f')](_0x451aa0);})[_0x3088ac('0x41')](handleError(_0x10bd31,null));},exports[_0x3ad545('0x7c')]=function(_0x1b951,_0x3f1817){const _0x28f4f4=_0x3ad545;let _0x52e582=path[_0x28f4f4('0xef')](config[_0x28f4f4('0xd7')],'server/files/images/avatars/default_avatar.png');const _0x3e8744={'where':{'id':_0x1b951[_0x28f4f4('0x56')]['id']},'attributes':['id',_0x28f4f4('0x67')],'raw':!![]};return db[_0x28f4f4('0xa7')][_0x28f4f4('0xde')](_0x3e8744)[_0x28f4f4('0x70')](handleEntityNotFound(_0x3f1817,null))[_0x28f4f4('0x70')](function(_0x5d39c9){const _0x4121ac=_0x28f4f4;if(_0x5d39c9)return!_[_0x4121ac('0x101')](_0x5d39c9[_0x4121ac('0x67')])&&(fs['existsSync'](path[_0x4121ac('0xef')](config[_0x4121ac('0xd7')],_0x4121ac('0x3e'),_0x5d39c9[_0x4121ac('0x67')]))&&(_0x52e582=path[_0x4121ac('0xef')](config[_0x4121ac('0xd7')],_0x4121ac('0x3e'),_0x5d39c9[_0x4121ac('0x67')]))),_0x3f1817[_0x4121ac('0x2f')](_0x52e582);})['catch'](handleError(_0x3f1817,null));},exports[_0x3ad545('0x39')]=function(_0x72058c,_0x528b33){const _0x5665ce=_0x3ad545;let _0x1f63d6=path[_0x5665ce('0xef')](config['root'],_0x5665ce('0x29'));const _0x2dcd62={'where':{'id':_0x72058c[_0x5665ce('0x56')]['id']},'attributes':['id','customerAvatar','showCustomerAvatar'],'raw':!![]};return db[_0x5665ce('0xa7')][_0x5665ce('0xde')](_0x2dcd62)['then'](handleEntityNotFound(_0x528b33,null))[_0x5665ce('0x70')](function(_0x3fd730){const _0x296f52=_0x5665ce;if(_0x3fd730)return!_[_0x296f52('0x101')](_0x3fd730[_0x296f52('0xc4')])&&(fs['existsSync'](path['join'](config[_0x296f52('0xd7')],_0x296f52('0x3e'),_0x3fd730['customerAvatar']))&&_0x3fd730[_0x296f52('0x6b')]&&(_0x1f63d6=path['join'](config['root'],'server/files/images/avatars/',_0x3fd730[_0x296f52('0xc4')]))),_0x528b33[_0x296f52('0x2f')](_0x1f63d6);})[_0x5665ce('0x41')](handleError(_0x528b33,null));},exports[_0x3ad545('0x98')]=function(_0x1654ca,_0x5a148b){const _0x50b552=_0x3ad545;let _0x5c37a6=path[_0x50b552('0xef')](config[_0x50b552('0xd7')],_0x50b552('0xa8'));const _0x3af1c4={'where':{'id':_0x1654ca[_0x50b552('0x56')]['id']},'attributes':['id',_0x50b552('0x85')],'raw':!![]};return db[_0x50b552('0xa7')][_0x50b552('0xde')](_0x3af1c4)['then'](handleEntityNotFound(_0x5a148b,null))[_0x50b552('0x70')](function(_0x4bc217){const _0x3b2a11=_0x50b552;if(_0x4bc217)return!_['isNil'](_0x4bc217[_0x3b2a11('0x85')])&&(fs[_0x3b2a11('0xbd')](path[_0x3b2a11('0xef')](config[_0x3b2a11('0xd7')],_0x3b2a11('0x3e'),_0x4bc217[_0x3b2a11('0x85')]))&&(_0x5c37a6=path[_0x3b2a11('0xef')](config[_0x3b2a11('0xd7')],'server/files/images/avatars/',_0x4bc217['systemAvatar']))),_0x5a148b['download'](_0x5c37a6);})['catch'](handleError(_0x5a148b,null));},exports[_0x3ad545('0x1e')]=function(_0x837984,_0x403c94){const _0x2d7b11=_0x3ad545,_0x133bca=require('user-agent-parser'),_0x474d9d=new _0x133bca(),_0x3ef5c6=_0x474d9d[_0x2d7b11('0xaf')](_0x837984['headers']['user-agent'])[_0x2d7b11('0xca')](),_0x107d69={'body':_0x837984[_0x2d7b11('0x8')],'channel':'chat'};let _0x40d513=[],_0x5957ab=[];const _0x26d45d={};let _0x3c9785=![];return db[_0x2d7b11('0x87')][_0x2d7b11('0x73')]()[_0x2d7b11('0x70')](function(_0x43229e){const _0x44aa42=_0x2d7b11;if(!_0x43229e)throw new ValidationError(_0x44aa42('0x13'));_0x40d513=_['difference'](_[_0x44aa42('0x5d')](_0x43229e),[_0x44aa42('0x1b'),_0x44aa42('0x5e')]),_0x5957ab=_[_0x44aa42('0x97')](_['keys'](_0x43229e),[_0x44aa42('0x1b'),_0x44aa42('0x5e'),_0x44aa42('0x7b'),'ListId']);_0x837984[_0x44aa42('0x8')]['id']&&delete _0x837984[_0x44aa42('0x8')]['id'];if(_[_0x44aa42('0x101')](_0x837984[_0x44aa42('0x8')][_0x44aa42('0x3d')]))throw new ValidationError('from\x20is\x20mandatory');if(_[_0x44aa42('0x101')](_0x837984[_0x44aa42('0x8')][_0x44aa42('0x8')])||_0x837984[_0x44aa42('0x8')][_0x44aa42('0x8')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_['isNil'](_0x837984['body'][_0x44aa42('0x53')]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5957ab);if(!_[_0x44aa42('0xbf')](_0x5957ab,_0x837984[_0x44aa42('0x8')][_0x44aa42('0x53')]))throw new ValidationError(_0x44aa42('0x9f')+_0x5957ab);_0x26d45d[_0x837984[_0x44aa42('0x8')][_0x44aa42('0x53')]]=_0x837984['body']['from'];})['then'](function(){const _0x1c2b5a=_0x2d7b11;return db[_0x1c2b5a('0xa7')][_0x1c2b5a('0xde')]({'where':{'id':_0x837984[_0x1c2b5a('0x56')]['id']},'include':[{'model':db[_0x1c2b5a('0xc3')],'as':_0x1c2b5a('0xe8'),'include':[{'model':db[_0x1c2b5a('0x87')],'as':_0x1c2b5a('0x77'),'where':_0x26d45d,'limit':0x1,'order':[[_0x1c2b5a('0x5e'),'DESC']]}]},{'model':db[_0x1c2b5a('0xee')],'as':'Applications'}]});})['then'](handleEntityNotFound(_0x403c94,null))[_0x2d7b11('0x70')](function(_0x3d26f2){const _0xf64c2b=_0x2d7b11;if(_0x3d26f2&&_0x3d26f2[_0xf64c2b('0xe8')]){_0x107d69[_0xf64c2b('0x99')]=_0x3d26f2,_0x107d69[_0xf64c2b('0xb5')]=_0x3d26f2[_0xf64c2b('0x95')],_0x107d69[_0xf64c2b('0x63')]=_0x3d26f2[_0xf64c2b('0xe8')],_0x107d69[_0xf64c2b('0xb5')]=_['orderBy'](_0x107d69[_0xf64c2b('0xb5')],[_0xf64c2b('0xd')],[_0xf64c2b('0x68')]);_0x107d69['account'][_0xf64c2b('0x95')]&&delete _0x107d69[_0xf64c2b('0x99')]['Applications'];if(_0x107d69[_0xf64c2b('0x99')][_0xf64c2b('0xe8')]&&_0x107d69[_0xf64c2b('0x99')][_0xf64c2b('0xe8')][_0xf64c2b('0x77')]['length'])return _0x107d69[_0xf64c2b('0x99')][_0xf64c2b('0xe8')][_0xf64c2b('0x77')][0x0];const _0x3950af=_[_0xf64c2b('0x84')](_0x837984[_0xf64c2b('0x8')],{'firstName':_0x837984[_0xf64c2b('0x8')][_0xf64c2b('0x3d')],'ListId':_0x3d26f2['ListId']});return _0x3950af[_0x837984[_0xf64c2b('0x8')][_0xf64c2b('0x53')]]=_0x837984[_0xf64c2b('0x8')]['from'],db[_0xf64c2b('0x87')][_0xf64c2b('0xbe')](_0x3950af,{'fields':_0x40d513,'raw':!![]});}})['then'](handleEntityNotFound(_0x403c94,null))[_0x2d7b11('0x70')](function(_0x54e3a4){const _0x11d24e=_0x2d7b11;_0x107d69[_0x11d24e('0xc0')]=_0x54e3a4;let _0x58c11b=_0x837984[_0x11d24e('0x8')][_0x11d24e('0x91')];if(_0x837984[_0x11d24e('0x25')][_0x11d24e('0xba')])_0x58c11b=_0x837984[_0x11d24e('0x25')][_0x11d24e('0xba')];else _0x837984[_0x11d24e('0x25')][_0x11d24e('0x5b')]&&(_0x58c11b=_[_0x11d24e('0x4d')](_0x837984[_0x11d24e('0x25')][_0x11d24e('0x5b')][_0x11d24e('0x8d')](',')));if(_0x54e3a4){const _0x313061={'ContactId':_0x54e3a4['id'],'ChatWebsiteId':_0x837984['params']['id'],'from':(_0x54e3a4[_0x11d24e('0xc')]||'')+'\x20'+(_0x54e3a4[_0x11d24e('0x103')]||''),'customerIp':_0x58c11b,'customerPort':_0x837984['headers'][_0x11d24e('0xfd')]?_0x837984[_0x11d24e('0x25')][_0x11d24e('0xfd')]:null,'referer':_0x837984[_0x11d24e('0x8')][_0x11d24e('0x78')],'browserName':_0x3ef5c6[_0x11d24e('0x43')]['name']&&_0x3ef5c6[_0x11d24e('0x43')][_0x11d24e('0x88')]?util[_0x11d24e('0x9d')](_0x11d24e('0x1a'),_0x3ef5c6[_0x11d24e('0x43')][_0x11d24e('0xbb')],_0x3ef5c6[_0x11d24e('0x43')][_0x11d24e('0x88')]):_0x11d24e('0x69'),'browserVersion':_0x3ef5c6[_0x11d24e('0x43')][_0x11d24e('0x88')]||_0x11d24e('0x69'),'osName':util[_0x11d24e('0x9d')](_0x11d24e('0x1a'),_0x3ef5c6['os'][_0x11d24e('0xbb')],_0x3ef5c6['os']['version']),'osVersion':_0x3ef5c6['os'][_0x11d24e('0x88')],'deviceModel':_0x3ef5c6[_0x11d24e('0x33')]['model']&&_0x3ef5c6[_0x11d24e('0x33')]['vendor']?util[_0x11d24e('0x9d')]('%s\x20%s\x20%s',_0x3ef5c6['device'][_0x11d24e('0xc9')],_0x3ef5c6[_0x11d24e('0x33')][_0x11d24e('0x96')],_0x3ef5c6[_0x11d24e('0x33')][_0x11d24e('0x16')]):null,'deviceVendor':_0x3ef5c6[_0x11d24e('0x33')][_0x11d24e('0x96')],'deviceType':_0x3ef5c6[_0x11d24e('0x33')][_0x11d24e('0x16')],'formData':JSON['stringify'](_0x837984[_0x11d24e('0x8')])},_0x221463={'ChatWebsiteId':_0x837984[_0x11d24e('0x56')]['id'],'closed':![]};if(_0x837984[_0x11d24e('0x8')][_0x11d24e('0xcd')])return _0x221463[_0x11d24e('0xcd')]=_0x837984[_0x11d24e('0x8')][_0x11d24e('0xcd')],db[_0x11d24e('0x22')][_0x11d24e('0xde')]({'where':_0x221463})['then'](function(_0x2434de){const _0x4de427=_0x11d24e;if(_0x2434de)return[_0x2434de,![]];return _0x313061['threadId']=_0x837984[_0x4de427('0x8')][_0x4de427('0xcd')],_0x313061[_0x4de427('0x15')]=_0x837984['body'][_0x4de427('0x15')],db[_0x4de427('0x22')]['create'](_0x313061)[_0x4de427('0x70')](function(_0x589d84){return[_0x589d84,!![]];});});_0x221463['ContactId']=_0x54e3a4['id'];if(_0x837984[_0x11d24e('0x8')][_0x11d24e('0x4')]&&_0x837984[_0x11d24e('0x8')][_0x11d24e('0x4')]['id'])return _0x221463['id']=_0x837984['body'][_0x11d24e('0x4')]['id'],db['ChatInteraction']['findOne']({'where':_0x221463})[_0x11d24e('0x70')](function(_0x2184be){const _0x468807=_0x11d24e;if(_0x2184be)return[_0x2184be,![]];return db['ChatInteraction'][_0x468807('0xbe')](_0x313061)[_0x468807('0x70')](function(_0xd860ea){return[_0xd860ea,!![]];});});return db[_0x11d24e('0x22')]['create'](_0x313061)['then'](function(_0x5bbc4a){return[_0x5bbc4a,!![]];});}})[_0x2d7b11('0x70')](function([_0x56fb67,_0x4ae96c]){const _0x2d68bf=_0x2d7b11;if(_0x56fb67){_0x3c9785=_0x4ae96c;if(!_0x4ae96c){const _0x36c31c={'from':(_0x107d69[_0x2d68bf('0xc0')]['firstName']||'')+'\x20'+(_0x107d69['contact'][_0x2d68bf('0x103')]||'')};return _0x837984[_0x2d68bf('0x8')]['threadId']&&_0x837984['body'][_0x2d68bf('0x102')]&&_0x837984[_0x2d68bf('0x8')][_0x2d68bf('0xcd')]!=_0x837984['body'][_0x2d68bf('0x102')]&&(_0x36c31c[_0x2d68bf('0xcd')]=_0x837984[_0x2d68bf('0x8')][_0x2d68bf('0x102')]),_0x56fb67[_0x2d68bf('0x31')](_0x36c31c);}else return _0x56fb67;}})['then'](function(_0x545076){const _0x5d2bec=_0x2d7b11;return _0x107d69['interaction']=_0x545076[_0x5d2bec('0x2e')]({'plain':!![]}),_0x107d69[_0x5d2bec('0x4')][_0x5d2bec('0xfb')]=_0x3c9785,_0x107d69[_0x5d2bec('0x4')][_0x5d2bec('0xfb')]&&(_0x107d69[_0x5d2bec('0x99')][_0x5d2bec('0x4f')]&&_0x107d69[_0x5d2bec('0xb5')][_0x5d2bec('0x26')]({'id':0x0,'priority':_0x107d69[_0x5d2bec('0xb5')]['length']+0x1,'app':_0x5d2bec('0xec'),'appdata':_0x5d2bec('0x19'),'interval':_0x5d2bec('0x9c')})),db[_0x5d2bec('0xa5')][_0x5d2bec('0xbe')]({'body':_0x837984[_0x5d2bec('0x8')][_0x5d2bec('0x8')],'ChatWebsiteId':_0x837984[_0x5d2bec('0x56')]['id'],'ChatInteractionId':_0x545076['id'],'direction':'in','ContactId':_0x107d69[_0x5d2bec('0xc0')]['id'],'AttachmentId':_0x837984[_0x5d2bec('0x8')][_0x5d2bec('0xb6')]});})[_0x2d7b11('0x70')](function(_0x12244e){const _0x47be5b=_0x2d7b11;_0x107d69[_0x47be5b('0x7d')]=_0x12244e;if(_0x107d69[_0x47be5b('0x4')][_0x47be5b('0xd2')])return db['User'][_0x47be5b('0xde')]({'attributes':['id',_0x47be5b('0xbb')],'where':{'id':_0x107d69[_0x47be5b('0x4')][_0x47be5b('0xd2')]}})[_0x47be5b('0x70')](function(_0x4fb8a3){const _0x284afa=_0x47be5b;return _0x4fb8a3&&(_0x107d69[_0x284afa('0xb5')][_0x284afa('0xfe')]({'id':0x0,'priority':0x0,'app':_0x284afa('0xf0'),'appdata':_0x4fb8a3[_0x284afa('0xbb')]+','+(_0x107d69[_0x284afa('0x99')][_0x284afa('0x66')]||0xa),'interval':_0x284afa('0x9c')}),_0x107d69[_0x284afa('0xd6')]=!![]),respondWithRpcPromise('Start',_0x284afa('0xa4'),_0x107d69);});return respondWithRpcPromise(_0x47be5b('0xda'),_0x47be5b('0xa4'),_0x107d69);})[_0x2d7b11('0x70')](function(_0x90cc8){const _0x3b374c=_0x2d7b11;return respondWithRpcPromise('EventManager','EventManager',{'event':_0x3b374c('0x1e'),'message':_0x90cc8},client9002),_0x90cc8;})[_0x2d7b11('0x70')](respondWithResult(_0x403c94,null))[_0x2d7b11('0x41')](handleError(_0x403c94,null));},exports[_0x3ad545('0x18')]=function(_0x5a4c0f,_0x3e377d){const _0x62719a=_0x3ad545;let _0xc587a8,_0x49bc00,_0xe7965d=[];const _0xdcc29={};return db[_0x62719a('0x87')][_0x62719a('0x73')]()[_0x62719a('0x70')](function(_0x55a97b){const _0x55680e=_0x62719a;if(!_0x55a97b)throw new ValidationError(_0x55680e('0x13'));_0xe7965d=_[_0x55680e('0x97')](_['keys'](_0x55a97b),[_0x55680e('0x1b'),_0x55680e('0x5e'),_0x55680e('0x7b'),_0x55680e('0xb0')]);_0x5a4c0f[_0x55680e('0x8')]['id']&&delete _0x5a4c0f['body']['id'];if(_[_0x55680e('0x101')](_0x5a4c0f[_0x55680e('0x8')][_0x55680e('0x3d')]))throw _0x3e377d['status'](0x1f4)['send'](new ValidationError(_0x55680e('0xb8')));if(_[_0x55680e('0x101')](_0x5a4c0f[_0x55680e('0x8')][_0x55680e('0x8')])||_0x5a4c0f[_0x55680e('0x8')][_0x55680e('0x8')]==='')throw _0x3e377d[_0x55680e('0xb2')](0x1f4)[_0x55680e('0x30')](new ValidationError(_0x55680e('0x2c')));if(_[_0x55680e('0x101')](_0x5a4c0f[_0x55680e('0x8')]['mapKeyOffline']))throw _0x3e377d[_0x55680e('0xb2')](0x1f4)['send'](new ValidationError(_0x55680e('0x8b')+_0xe7965d));if(!_['includes'](_0xe7965d,_0x5a4c0f[_0x55680e('0x8')][_0x55680e('0x8c')]))throw _0x3e377d[_0x55680e('0xb2')](0x1f4)[_0x55680e('0x30')](new ValidationError(_0x55680e('0xe0')+_0xe7965d));_0xdcc29[_0x5a4c0f[_0x55680e('0x8')]['mapKeyOffline']]=_0x5a4c0f['body'][_0x55680e('0x3d')];})[_0x62719a('0x70')](function(){const _0x4a6214=_0x62719a;return db[_0x4a6214('0xa7')][_0x4a6214('0xde')]({'where':{'id':_0x5a4c0f[_0x4a6214('0x56')]['id']},'include':[{'model':db[_0x4a6214('0xc3')],'as':'List'}]});})[_0x62719a('0x70')](handleEntityNotFound(_0x3e377d,null))[_0x62719a('0x70')](function(_0x1d74b5){const _0x4cb783=_0x62719a;if(_0x1d74b5&&_0x1d74b5[_0x4cb783('0xe8')]){_0x49bc00=_0x1d74b5;const _0x5d7d49=_[_0x4cb783('0x84')](_0x5a4c0f[_0x4cb783('0x8')],{'firstName':_0x5a4c0f['body']['from'],'phone':_0x5a4c0f[_0x4cb783('0x8')][_0x4cb783('0x3d')],'ListId':_0x1d74b5[_0x4cb783('0xb0')]});return _0x5d7d49[_0x5a4c0f[_0x4cb783('0x8')]['mapKeyOffline']]=_0x5a4c0f[_0x4cb783('0x8')]['from'],db[_0x4cb783('0x87')]['findOrCreate']({'where':_0xdcc29,'defaults':_0x5d7d49});}})[_0x62719a('0x70')](function([_0x271772]){const _0x538ee3=_0x62719a;if(_0x271772){const _0xebc8ab=fs['readFileSync'](path[_0x538ee3('0xef')](config[_0x538ee3('0xd7')],_0x538ee3('0x86')),_0x538ee3('0x2d')),_0x5d95d3=ejs[_0x538ee3('0xaa')](_0xebc8ab,{'body':_['toPairs'](_0x5a4c0f['body'][_0x538ee3('0x8')]),'bodyTitle':_0x49bc00[_0x538ee3('0x7')]});return db[_0x538ee3('0xc7')][_0x538ee3('0xbe')]({'body':_0x5d95d3,'ContactId':_0x271772['id'],'ChatWebsiteId':_0x49bc00['id']});}})[_0x62719a('0x70')](function(_0x4526dc){const _0x1b6b47=_0x62719a;if(_0x4526dc)return _0xc587a8=_0x4526dc,db[_0x1b6b47('0x62')][_0x1b6b47('0xde')]({'where':{'service':!![]},'include':[{'model':db[_0x1b6b47('0xdf')],'as':_0x1b6b47('0x4a'),'raw':!![]}]});})['then'](function(_0x2ba40c){const _0x15d8d8=_0x62719a;if(_0x2ba40c&&_0x2ba40c['Smtp']&&_0x49bc00[_0x15d8d8('0x55')]){const _0x5d1881={'tls':{'rejectUnauthorized':![]}};return _0x2ba40c[_0x15d8d8('0x4a')][_0x15d8d8('0xc8')]?_0x5d1881[_0x15d8d8('0xc8')]=_0x2ba40c[_0x15d8d8('0x4a')][_0x15d8d8('0xc8')]:(_0x5d1881[_0x15d8d8('0x6d')]=_0x2ba40c['Smtp'][_0x15d8d8('0x6d')],_0x5d1881[_0x15d8d8('0x75')]=_0x2ba40c[_0x15d8d8('0x4a')]['port'],_0x5d1881['secure']=_0x2ba40c[_0x15d8d8('0x4a')][_0x15d8d8('0xd3')]),_0x2ba40c['Smtp'][_0x15d8d8('0xe3')]&&(_0x5d1881[_0x15d8d8('0xe7')]={'user':_0x2ba40c[_0x15d8d8('0x4a')][_0x15d8d8('0x65')],'pass':_0x2ba40c[_0x15d8d8('0x4a')][_0x15d8d8('0xe1')]}),respondWithRpcPromise('SendMail','sendMail',{'account':_0x5d1881,'message':{'from':util[_0x15d8d8('0x9d')](_0x15d8d8('0x37'),_0x2ba40c[_0x15d8d8('0xbb')],_0x2ba40c[_0x15d8d8('0x54')]||_0x2ba40c['Smtp'][_0x15d8d8('0x65')]),'to':_0x49bc00[_0x15d8d8('0x55')],'subject':_0x49bc00['offlineMessageSubject'],'text':_0xc587a8['body']}},client9003)['then'](function(){return _0xc587a8;})[_0x15d8d8('0x41')](function(_0x481d39){const _0x34b96e=_0x15d8d8;console[_0x34b96e('0x11')](_0x481d39);});}})[_0x62719a('0x70')](function(){if(_0xc587a8)return _0xc587a8;})[_0x62719a('0x70')](respondWithResult(_0x3e377d,null))[_0x62719a('0x41')](handleError(_0x3e377d,null));},exports[_0x3ad545('0xdd')]=function(_0x26eefa,_0x578eae){const _0xee1f05=_0x3ad545;return db[_0xee1f05('0x22')]['findOne']({'where':{'id':_0x26eefa[_0xee1f05('0x56')]['id']}})[_0xee1f05('0x70')](function(_0x282e59){const _0x2451e0=_0xee1f05;if(_0x282e59)return _0x282e59['addInteraction'](_0x26eefa[_0x2451e0('0x8')][_0x2451e0('0x6e')],{'through':_[_0x2451e0('0xc6')](_0x26eefa[_0x2451e0('0x8')],[_0x2451e0('0x6e'),'id'])});})[_0xee1f05('0x70')](respondWithResult(_0x578eae,null))[_0xee1f05('0x41')](handleError(_0x578eae,null));},exports[_0x3ad545('0xd9')]=function(_0x29502a,_0x990976){const _0xe7c32e=_0x3ad545;let _0x92b96e={'raw':![],'where':{}};const _0x45c1c9={},_0x5a0271={'count':0x0,'rows':[]};return db[_0xe7c32e('0xa7')][_0xe7c32e('0xde')]({'where':{'id':_0x29502a[_0xe7c32e('0x56')]['id']}})['then'](handleEntityNotFound(_0x990976,null))[_0xe7c32e('0x70')](function(_0x4d2816){const _0x3d04a7=_0xe7c32e;if(_0x4d2816)return _0x45c1c9[_0x3d04a7('0xc9')]=_[_0x3d04a7('0x5d')](db[_0x3d04a7('0x22')]['rawAttributes']),_0x45c1c9[_0x3d04a7('0x80')]=_['keys'](_0x29502a['query']),_0x45c1c9[_0x3d04a7('0x48')]=_[_0x3d04a7('0xd5')](_0x45c1c9[_0x3d04a7('0xc9')],_0x45c1c9[_0x3d04a7('0x80')]),_0x92b96e[_0x3d04a7('0xa1')]=_[_0x3d04a7('0xd5')](_0x45c1c9[_0x3d04a7('0xc9')],qs[_0x3d04a7('0x93')](_0x29502a['query'][_0x3d04a7('0x93')])),_0x92b96e[_0x3d04a7('0xa1')]=_0x92b96e[_0x3d04a7('0xa1')]['length']?_0x92b96e[_0x3d04a7('0xa1')]:_0x45c1c9['model'],typeof _0x29502a['query']['nolimit']===_0x3d04a7('0xa0')&&(_0x92b96e['limit']=qs[_0x3d04a7('0xa3')](_0x29502a['query']['limit']),_0x92b96e['offset']=qs[_0x3d04a7('0x6')](_0x29502a[_0x3d04a7('0x80')][_0x3d04a7('0x6')])),_0x92b96e[_0x3d04a7('0x23')]=qs[_0x3d04a7('0xb')](_0x29502a[_0x3d04a7('0x80')][_0x3d04a7('0xb')]),_0x92b96e[_0x3d04a7('0x76')]=qs['filters'](_[_0x3d04a7('0x60')](_0x29502a[_0x3d04a7('0x80')],_0x45c1c9['filters'])),_0x92b96e[_0x3d04a7('0x76')][_0x3d04a7('0xe4')]=_0x4d2816['id'],_0x29502a[_0x3d04a7('0x80')][_0x3d04a7('0x71')]&&(_0x92b96e[_0x3d04a7('0x76')]=_['merge'](_0x92b96e[_0x3d04a7('0x76')],{[Op['or']]:_[_0x3d04a7('0xf4')](_0x92b96e['attributes'],function(_0x1b11bf){const _0x264d17=_0x3d04a7,_0x2fc09d={};return _0x2fc09d[_0x1b11bf]={[Op[_0x264d17('0x83')]]:'%'+_0x29502a['query'][_0x264d17('0x71')]+'%'},_0x2fc09d;})})),_0x92b96e=_[_0x3d04a7('0xae')]({},_0x92b96e,_0x29502a[_0x3d04a7('0xc1')]),db[_0x3d04a7('0x22')][_0x3d04a7('0xab')]({'where':_0x92b96e[_0x3d04a7('0x76')]})[_0x3d04a7('0x70')](function(_0x321b49){const _0x5dabcd=_0x3d04a7;return _0x5a0271[_0x5dabcd('0xab')]=_0x321b49,_0x29502a[_0x5dabcd('0x80')][_0x5dabcd('0xdc')]&&(_0x92b96e[_0x5dabcd('0xb3')]=[{'model':db[_0x5dabcd('0x87')],'as':_0x5dabcd('0xf2'),'required':![]},{'model':db[_0x5dabcd('0x46')],'as':_0x5dabcd('0xa6'),'attributes':[_0x5dabcd('0xbb'),'fullname',_0x5dabcd('0x32')],'required':![]},{'model':db[_0x5dabcd('0x5c')],'as':'Tags','attributes':['id',_0x5dabcd('0xbb'),_0x5dabcd('0xd1')],'where':_0x29502a[_0x5dabcd('0x80')][_0x5dabcd('0x89')]?{'id':_0x29502a['query']['tag']}:undefined,'required':_0x29502a[_0x5dabcd('0x80')][_0x5dabcd('0x89')]?!![]:![]}]),db[_0x5dabcd('0x22')][_0x5dabcd('0xf')](_0x92b96e);})['then'](function(_0x445271){const _0x1d90b6=_0x3d04a7;return _0x5a0271[_0x1d90b6('0x17')]=_0x445271,_0x5a0271;});})['then'](respondWithFilteredResult(_0x990976,_0x92b96e))[_0xe7c32e('0x41')](handleError(_0x990976,null));};function iftimePromise(_0x4581a5,_0x85bc17){const _0x117d69=_0x3ad545;return respondWithRpcPromise(_0x117d69('0x9b'),_0x117d69('0x45'),{'command':_0x85bc17[_0x117d69('0xea')]?util[_0x117d69('0x9d')](_0x117d69('0xeb'),_0x4581a5['interval'],_0x85bc17[_0x117d69('0xea')]):util['format'](_0x117d69('0xcc'),_0x4581a5['interval'])},client9002)['then'](function(_0x23f237){const _0x3b1163=_0x117d69,_0x23662a=_0x23f237&&_0x23f237[_0x3b1163('0x1f')]('true')>=0x0?!![]:![];return logger[_0x3b1163('0xd8')](_0x3b1163('0xd4'),_0x85bc17['id'],_0x4581a5['id'],_0x4581a5['interval'],_0x23662a?'ONLINE':_0x3b1163('0x81'),_0x85bc17[_0x3b1163('0xea')]?_0x85bc17['timezone']:_0x3b1163('0x100')),_0x23662a;})[_0x117d69('0x41')](function(_0x3dd184){const _0x59dbf7=_0x117d69;return logger[_0x59dbf7('0x11')](_0x59dbf7('0xd4'),_0x85bc17['id'],_0x4581a5['id'],_0x4581a5[_0x59dbf7('0x72')],util['inspect'](_0x3dd184,{'showHidden':![],'depth':null}),_0x85bc17[_0x59dbf7('0xea')]?_0x85bc17[_0x59dbf7('0xea')]:_0x59dbf7('0x100')),![];});}exports['getSnippet']=function(_0x5e0cfb,_0x172e19){const _0x45d4c2=_0x3ad545;let _0x2e5d98=0x0,_0x43e688=0x0,_0x3356a6=![],_0x1b4451,_0x159f01;return db[_0x45d4c2('0xa7')]['findOne']({'where':{'id':_0x5e0cfb[_0x45d4c2('0x56')]['id']},'include':[{'model':db['Interval'],'as':_0x45d4c2('0xc2'),'include':[{'model':db['Interval'],'as':'Intervals','attributes':['id','interval'],'raw':!![]}]}]})[_0x45d4c2('0x70')](handleEntityNotFound(_0x172e19,null))['then'](function(_0x16bd61){const _0x322ac8=_0x45d4c2;if(_0x16bd61)return _0x1b4451=_0x16bd61,_0x16bd61[_0x322ac8('0x3')]({'raw':!![]});})[_0x45d4c2('0x70')](function(_0x35502d){const _0x32f4a8=_0x45d4c2;return _0x1b4451&&(_0x35502d&&(_0x159f01=_0x35502d)),require(_0x32f4a8('0xb1'))[_0x32f4a8('0xff')]();})[_0x45d4c2('0x70')](function(_0x365679){const _0xb0edfc=_0x45d4c2;_0x365679&&(_0x43e688=_0x365679[_0xb0edfc('0x4b')],_0x3356a6=_0x365679[_0xb0edfc('0x59')]);})[_0x45d4c2('0x70')](function(){const _0x5f2cb3=_0x45d4c2;return db[_0x5f2cb3('0x22')]['count']({'where':{'closed':![]}});})[_0x45d4c2('0x70')](function(_0x12407e){const _0x40fa53=_0x45d4c2;_0x2e5d98=_0x12407e;if(_0x43e688&&_0x12407e>_0x43e688)return db[_0x40fa53('0x7a')][_0x40fa53('0xde')]({'where':{'id':0x1}})['then'](function(_0x283b6f){const _0x202f7c=_0x40fa53;_0x283b6f&&_0x283b6f[_0x202f7c('0xdb')](_0x202f7c('0x2b'));});})[_0x45d4c2('0x70')](function(){const _0x74bbea=_0x45d4c2;if(_0x1b4451[_0x74bbea('0xc2')]&&_0x1b4451['Interval'][_0x74bbea('0x4c')]){const _0x66dd6f=[];for(let _0x489f5e=0x0;_0x489f5e<_0x1b4451[_0x74bbea('0xc2')][_0x74bbea('0x4c')][_0x74bbea('0xc5')];_0x489f5e++){const _0x38550a=_0x1b4451['Interval']['Intervals'][_0x489f5e][_0x74bbea('0x2e')]({'plain':!![]});_0x66dd6f[_0x74bbea('0x26')](iftimePromise(_0x38550a,_0x1b4451));}return Promise[_0x74bbea('0x58')](_0x66dd6f)[_0x74bbea('0x70')](function(_0xeea695){const _0x113ec6=_0x74bbea;return _[_0x113ec6('0xa')](_0xeea695);});}else return!![];})[_0x45d4c2('0x70')](function(_0x29c578){const _0x3c55c6=_0x45d4c2,_0x3bc510=_0x5e0cfb[_0x3c55c6('0x27')][_0x3c55c6('0x2e')](_0x3c55c6('0x92')),_0x8c2329=fs['readFileSync'](path['join'](config[_0x3c55c6('0xd7')],'files/chat/iframe.js'),_0x3c55c6('0x2d')),_0x169296={'chatVersion':_0x3bc510,'remote':_0x1b4451[_0x3c55c6('0x42')],'query':querystring['stringify'](_[_0x3c55c6('0xae')](_0x1b4451[_0x3c55c6('0x2e')]({'plain':!![]}),{'customerIp':_0x5e0cfb[_0x3c55c6('0x25')][_0x3c55c6('0x5b')]||_0x5e0cfb['headers'][_0x3c55c6('0x64')]||_0x5e0cfb['connection'][_0x3c55c6('0x7f')]||_0x5e0cfb['ip'],'referer':_0x5e0cfb[_0x3c55c6('0x25')]['referer'],'openedInteractions':_0x2e5d98,'maxInteractions':_0x43e688,'virtual':_0x3356a6[_0x3c55c6('0x4b')],'online':_0x29c578,'custom':_0x3356a6}))['replace'](/'/g,'\x5c\x27')};_0x172e19[_0x3c55c6('0x30')](ejs['render'](Mustache[_0x3c55c6('0xaa')](_0x8c2329,_0x169296),{'proactiveActions':_0x159f01,'alignment':_0x1b4451[_0x3c55c6('0x90')],'verticalAlignment':_0x1b4451['verticalAlignment'],'div_color':_0x1b4451[_0x3c55c6('0xd1')],'text_color':_0x1b4451[_0x3c55c6('0xb7')]}));})['catch'](handleError(_0x172e19,null));},exports[_0x3ad545('0x79')]=function(_0xb8313b,_0x18ce0f){const _0x145aae=_0x3ad545;return db[_0x145aae('0xa7')][_0x145aae('0xde')]({'where':{'id':_0xb8313b[_0x145aae('0x56')]['id']}})[_0x145aae('0x70')](handleEntityNotFound(_0x18ce0f,null))[_0x145aae('0x70')](function(_0x6f3c31){const _0x30cb88=_0x145aae;if(_0x6f3c31)return db[_0x30cb88('0x51')]['transaction'](function(_0x230b83){const _0x1f0657=_0x30cb88;return db['ChatApplication'][_0x1f0657('0x8e')]({'where':{'ChatWebsiteId':_0xb8313b[_0x1f0657('0x56')]['id']},'transaction':_0x230b83})['then'](function(){const _0xfb9d64=_0x1f0657,_0x127a94=_[_0xfb9d64('0xf4')](_0xb8313b[_0xfb9d64('0x8')],function(_0x37bf8e){const _0x4d8291=_0xfb9d64;return _0x37bf8e[_0x4d8291('0xe4')]=_0xb8313b['params']['id'],_0x37bf8e;});return db[_0xfb9d64('0xee')][_0xfb9d64('0xb4')](_0x127a94,{'transaction':_0x230b83});});})[_0x30cb88('0x70')](function(){const _0x5e6826=_0x30cb88;return db['ChatApplication'][_0x5e6826('0x3f')]({'where':{'ChatWebsiteId':_0xb8313b['params']['id']},'order':_0x5e6826('0xd')});});})[_0x145aae('0x70')](respondWithResult(_0x18ce0f,null))[_0x145aae('0x41')](handleError(_0x18ce0f,null));},exports[_0x3ad545('0xf1')]=function(_0x395706,_0x981a0b){const _0x56ea9e=_0x3ad545;let _0x531a6e={};const _0x49f463={};let _0x5094dd,_0x113e6e;return db[_0x56ea9e('0xa7')][_0x56ea9e('0xde')]({'where':{'id':_0x395706['params']['id']}})[_0x56ea9e('0x70')](handleEntityNotFound(_0x981a0b,null))[_0x56ea9e('0x70')](function(_0x2c5c49){const _0x129dde=_0x56ea9e;if(_0x2c5c49)return _0x5094dd=_0x2c5c49,_0x49f463[_0x129dde('0xc9')]=_[_0x129dde('0x5d')](db['ChatApplication'][_0x129dde('0x2a')]),_0x49f463[_0x129dde('0x80')]=_['keys'](_0x395706[_0x129dde('0x80')]),_0x49f463[_0x129dde('0x48')]=_['intersection'](_0x49f463[_0x129dde('0xc9')],_0x49f463[_0x129dde('0x80')]),_0x531a6e[_0x129dde('0xa1')]=_[_0x129dde('0xd5')](_0x49f463['model'],qs[_0x129dde('0x93')](_0x395706[_0x129dde('0x80')]['fields'])),_0x531a6e[_0x129dde('0xa1')]=_0x531a6e[_0x129dde('0xa1')][_0x129dde('0xc5')]?_0x531a6e['attributes']:_0x49f463['model'],_0x531a6e[_0x129dde('0x23')]=qs['sort'](_0x395706[_0x129dde('0x80')][_0x129dde('0xb')]),_0x531a6e[_0x129dde('0x76')]=qs[_0x129dde('0x48')](_['pick'](_0x395706[_0x129dde('0x80')],_0x49f463[_0x129dde('0x48')])),_0x395706[_0x129dde('0x80')][_0x129dde('0x71')]&&(_0x531a6e[_0x129dde('0x76')]=_[_0x129dde('0xae')](_0x531a6e['where'],{[Op['or']]:_[_0x129dde('0xf4')](_0x531a6e[_0x129dde('0xa1')],function(_0x252b3b){const _0x1fc3b0=_0x129dde,_0x32f63c={};return _0x32f63c[_0x252b3b]={[Op['like']]:'%'+_0x395706[_0x1fc3b0('0x80')][_0x1fc3b0('0x71')]+'%'},_0x32f63c;})})),_0x531a6e=_['merge']({},_0x531a6e,_0x395706[_0x129dde('0xc1')]),_0x5094dd[_0x129dde('0xf1')](_0x531a6e);})['then'](function(_0x29b3f6){const _0xf5a269=_0x56ea9e;if(_0x29b3f6)return _0x113e6e=_0x29b3f6[_0xf5a269('0xc5')],typeof _0x395706[_0xf5a269('0x80')][_0xf5a269('0x6a')]===_0xf5a269('0xa0')&&(_0x531a6e[_0xf5a269('0xa3')]=qs[_0xf5a269('0xa3')](_0x395706[_0xf5a269('0x80')][_0xf5a269('0xa3')]),_0x531a6e[_0xf5a269('0x6')]=qs[_0xf5a269('0x6')](_0x395706['query'][_0xf5a269('0x6')])),_0x5094dd['getApplications'](_0x531a6e);})['then'](function(_0x3b0368){if(_0x3b0368)return _0x3b0368?{'count':_0x113e6e,'rows':_0x3b0368}:null;})[_0x56ea9e('0x70')](respondWithResult(_0x981a0b,null))[_0x56ea9e('0x41')](handleError(_0x981a0b,null));},exports['addProactiveActions']=function(_0x56d24a,_0x21b337){const _0x3efa17=_0x3ad545;return db['chatProactiveAction']['findOne']({'where':{'id':_0x56d24a[_0x3efa17('0x56')]['id']}})['then'](function(_0xc0213f){const _0xcc93f7=_0x3efa17;if(_0xc0213f)return _0xc0213f[_0xcc93f7('0xe5')](_0x56d24a[_0xcc93f7('0x8')][_0xcc93f7('0x6e')],{'through':_[_0xcc93f7('0xc6')](_0x56d24a[_0xcc93f7('0x8')],[_0xcc93f7('0x6e'),'id'])});})['then'](respondWithResult(_0x21b337,null))['catch'](handleError(_0x21b337,null));},exports[_0x3ad545('0x3')]=function(_0xe5f8db,_0x41af86){const _0x56780e=_0x3ad545;let _0x42a269={};const _0x57d6eb={};let _0x241f44,_0x300730;return db[_0x56780e('0xa7')][_0x56780e('0xde')]({'where':{'id':_0xe5f8db['params']['id']}})[_0x56780e('0x70')](handleEntityNotFound(_0x41af86,null))[_0x56780e('0x70')](function(_0x2d68ee){const _0x556918=_0x56780e;if(_0x2d68ee)return _0x241f44=_0x2d68ee,_0x57d6eb[_0x556918('0xc9')]=_[_0x556918('0x5d')](db['ChatProactiveAction'][_0x556918('0x2a')]),_0x57d6eb[_0x556918('0x80')]=_[_0x556918('0x5d')](_0xe5f8db[_0x556918('0x80')]),_0x57d6eb[_0x556918('0x48')]=_[_0x556918('0xd5')](_0x57d6eb['model'],_0x57d6eb[_0x556918('0x80')]),_0x42a269[_0x556918('0xa1')]=_['intersection'](_0x57d6eb[_0x556918('0xc9')],qs[_0x556918('0x93')](_0xe5f8db[_0x556918('0x80')][_0x556918('0x93')])),_0x42a269[_0x556918('0xa1')]=_0x42a269[_0x556918('0xa1')][_0x556918('0xc5')]?_0x42a269['attributes']:_0x57d6eb[_0x556918('0xc9')],_0x42a269['order']=qs[_0x556918('0xb')](_0xe5f8db[_0x556918('0x80')][_0x556918('0xb')]),_0x42a269['where']=qs[_0x556918('0x48')](_[_0x556918('0x60')](_0xe5f8db[_0x556918('0x80')],_0x57d6eb[_0x556918('0x48')])),_0xe5f8db[_0x556918('0x80')][_0x556918('0x71')]&&(_0x42a269['where']=_[_0x556918('0xae')](_0x42a269[_0x556918('0x76')],{[Op['or']]:_['map'](_0x42a269[_0x556918('0xa1')],function(_0x47daa3){const _0x169d53=_0x556918,_0xfeb032={};return _0xfeb032[_0x47daa3]={[Op[_0x169d53('0x83')]]:'%'+_0xe5f8db[_0x169d53('0x80')][_0x169d53('0x71')]+'%'},_0xfeb032;})})),_0x42a269=_[_0x556918('0xae')]({},_0x42a269,_0xe5f8db[_0x556918('0xc1')]),_0x241f44['getProactiveActions'](_0x42a269);})[_0x56780e('0x70')](function(_0x5d5f5b){const _0x2177fd=_0x56780e;if(_0x5d5f5b)return _0x300730=_0x5d5f5b[_0x2177fd('0xc5')],typeof _0xe5f8db[_0x2177fd('0x80')][_0x2177fd('0x6a')]==='undefined'&&(_0x42a269['limit']=qs[_0x2177fd('0xa3')](_0xe5f8db['query'][_0x2177fd('0xa3')]),_0x42a269[_0x2177fd('0x6')]=qs[_0x2177fd('0x6')](_0xe5f8db[_0x2177fd('0x80')][_0x2177fd('0x6')])),_0x241f44['getProactiveActions'](_0x42a269);})['then'](function(_0x20c634){if(_0x20c634)return _0x20c634?{'count':_0x300730,'rows':_0x20c634}:null;})[_0x56780e('0x70')](respondWithResult(_0x41af86,null))[_0x56780e('0x41')](handleError(_0x41af86,null));},exports[_0x3ad545('0x49')]=function(_0x180f07,_0xcb58f7){const _0x1541f4=_0x3ad545,_0xca505d=_0x180f07[_0x1541f4('0x80')][_0x1541f4('0x44')]===_0x1541f4('0x4e')?_0x1541f4('0xbc'):_0x1541f4('0xf6');return db[_0x1541f4('0xa7')][_0x1541f4('0xde')]({'attributes':['id',_0xca505d],'where':{'id':_0x180f07[_0x1541f4('0x56')]['id']}})[_0x1541f4('0x70')](handleEntityNotFound(_0xcb58f7,null))['then'](function(_0x11d3ed){const _0x4fb017=_0x1541f4;if(_0x11d3ed){const _0x491417=_0x11d3ed[_0xca505d],_0x3defb2=_0x491417&&_0x491417['items']?_0x491417[_0x4fb017('0x6f')]:[];_0xcb58f7[_0x4fb017('0x30')]({'fromKey':_[_0x4fb017('0x101')](_0x491417['fromKey'])?undefined:_0x491417['fromKey'],'count':_0x3defb2[_0x4fb017('0xc5')],'rows':_0x3defb2});}})[_0x1541f4('0x41')](handleError(_0xcb58f7,null));},exports[_0x3ad545('0xa2')]=function(_0x28de94,_0x3603d7){const _0x1df1bf=_0x3ad545;let _0x3dd26e={'raw':![],'where':{}};const _0x12fe48={},_0x26aaa6={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x1df1bf('0xde')]({'where':{'id':_0x28de94[_0x1df1bf('0x56')]['id']}})[_0x1df1bf('0x70')](handleEntityNotFound(_0x3603d7,null))[_0x1df1bf('0x70')](function(_0x3d0887){const _0x550137=_0x1df1bf;if(_0x3d0887)return _0x12fe48[_0x550137('0xc9')]=_[_0x550137('0x5d')](db[_0x550137('0xc7')][_0x550137('0x2a')]),_0x12fe48['query']=_['keys'](_0x28de94[_0x550137('0x80')]),_0x12fe48[_0x550137('0x48')]=_[_0x550137('0xd5')](_0x12fe48[_0x550137('0xc9')],_0x12fe48[_0x550137('0x80')]),_0x3dd26e[_0x550137('0xa1')]=_[_0x550137('0xd5')](_0x12fe48[_0x550137('0xc9')],qs[_0x550137('0x93')](_0x28de94[_0x550137('0x80')][_0x550137('0x93')])),_0x3dd26e[_0x550137('0xa1')]=_0x3dd26e[_0x550137('0xa1')]['length']?_0x3dd26e[_0x550137('0xa1')]:_0x12fe48[_0x550137('0xc9')],typeof _0x28de94[_0x550137('0x80')][_0x550137('0x6a')]===_0x550137('0xa0')&&(_0x3dd26e['limit']=qs[_0x550137('0xa3')](_0x28de94[_0x550137('0x80')][_0x550137('0xa3')]),_0x3dd26e[_0x550137('0x6')]=qs[_0x550137('0x6')](_0x28de94[_0x550137('0x80')]['offset'])),_0x3dd26e[_0x550137('0x23')]=qs['sort'](_0x28de94[_0x550137('0x80')][_0x550137('0xb')]),_0x3dd26e[_0x550137('0x76')]=qs['filters'](_[_0x550137('0x60')](_0x28de94[_0x550137('0x80')],_0x12fe48[_0x550137('0x48')])),_0x3dd26e['where'][_0x550137('0xe4')]=_0x3d0887['id'],_0x28de94['query']['filter']&&(_0x3dd26e[_0x550137('0x76')]=_[_0x550137('0xae')](_0x3dd26e[_0x550137('0x76')],{[Op['or']]:_[_0x550137('0xf4')](_0x3dd26e[_0x550137('0xa1')],function(_0x2e3d63){const _0x560f1d=_0x550137,_0xecb2f4={};return _0xecb2f4[_0x2e3d63]={[Op[_0x560f1d('0x83')]]:'%'+_0x28de94[_0x560f1d('0x80')][_0x560f1d('0x71')]+'%'},_0xecb2f4;})})),_0x3dd26e=_[_0x550137('0xae')]({},_0x3dd26e,_0x28de94[_0x550137('0xc1')]),db[_0x550137('0xc7')][_0x550137('0xab')]({'where':_0x3dd26e[_0x550137('0x76')]})[_0x550137('0x70')](function(_0x55782c){const _0x1daafd=_0x550137;return _0x26aaa6[_0x1daafd('0xab')]=_0x55782c,_0x28de94[_0x1daafd('0x80')][_0x1daafd('0xdc')]?_0x3dd26e['include']=[{'all':!![]}]:_0x3dd26e[_0x1daafd('0xb3')]=[{'model':db['CmContact'],'as':'Contact','required':![]}],db[_0x1daafd('0xc7')][_0x1daafd('0xf')](_0x3dd26e);})[_0x550137('0x70')](function(_0x4fd811){const _0x4c070e=_0x550137;return _0x26aaa6[_0x4c070e('0x17')]=_0x4fd811,_0x26aaa6;});})[_0x1df1bf('0x70')](respondWithFilteredResult(_0x3603d7,_0x3dd26e))[_0x1df1bf('0x41')](handleError(_0x3603d7,null));},exports['addAgents']=function(_0x2dad1f,_0x208a2a){const _0x2821a6=_0x3ad545;return db[_0x2821a6('0xa7')][_0x2821a6('0xde')]({'where':{'id':_0x2dad1f['params']['id']}})[_0x2821a6('0x70')](function(_0x2a58dd){const _0x48b22f=_0x2821a6;if(_0x2a58dd)return _0x2a58dd[_0x48b22f('0x28')](_0x2dad1f[_0x48b22f('0x8')][_0x48b22f('0x6e')],{'through':_[_0x48b22f('0xc6')](_0x2dad1f[_0x48b22f('0x8')],[_0x48b22f('0x6e'),'id'])})[_0x48b22f('0x70')](function(_0x38a61f){const _0xa9e2c=_0x48b22f;for(let _0x3571f2=0x0;_0x3571f2<_0x2dad1f[_0xa9e2c('0x8')]['ids'][_0xa9e2c('0xc5')];_0x3571f2+=0x1){socket[_0xa9e2c('0xed')](_0xa9e2c('0x9a'),{'UserId':_0x2dad1f[_0xa9e2c('0x8')][_0xa9e2c('0x6e')][_0x3571f2],'ChatWebsiteId':_0x2dad1f['params']['id']});}return _0x38a61f;});})[_0x2821a6('0x70')](respondWithResult(_0x208a2a,null))[_0x2821a6('0x41')](handleError(_0x208a2a,null));},exports['removeAgents']=function(_0x4021a0,_0x520a10){const _0x4f6d02=_0x3ad545;return db[_0x4f6d02('0xa7')]['findOne']({'where':{'id':_0x4021a0[_0x4f6d02('0x56')]['id']}})['then'](handleEntityNotFound(_0x520a10,null))['then'](function(_0x6f6515){const _0x3ea0bf=_0x4f6d02;if(_0x6f6515)return _0x6f6515[_0x3ea0bf('0x21')](_0x4021a0[_0x3ea0bf('0x80')][_0x3ea0bf('0x6e')])[_0x3ea0bf('0x70')](function(){const _0x5ceef4=_0x3ea0bf;if(_[_0x5ceef4('0x47')](_0x4021a0[_0x5ceef4('0x80')]['ids']))for(let _0x5af686=0x0;_0x5af686<_0x4021a0[_0x5ceef4('0x80')]['ids'][_0x5ceef4('0xc5')];_0x5af686+=0x1){socket[_0x5ceef4('0xed')]('userChatWebsite:remove',{'UserId':Number(_0x4021a0['query'][_0x5ceef4('0x6e')][_0x5af686]),'ChatWebsiteId':Number(_0x4021a0[_0x5ceef4('0x56')]['id'])});}else socket[_0x5ceef4('0xed')](_0x5ceef4('0x1d'),{'UserId':Number(_0x4021a0['query'][_0x5ceef4('0x6e')]),'ChatWebsiteId':Number(_0x4021a0['params']['id'])});});})['then'](respondWithStatusCode(_0x520a10,null))['catch'](handleError(_0x520a10,null));},exports[_0x3ad545('0x82')]=function(_0x567616,_0x1a54bf){const _0x25a1a3=_0x3ad545;let _0x38534f={};const _0x5734a1={};let _0x457ddb,_0x25de4a;return db[_0x25a1a3('0xa7')][_0x25a1a3('0xde')]({'where':{'id':_0x567616['params']['id']}})['then'](handleEntityNotFound(_0x1a54bf,null))[_0x25a1a3('0x70')](function(_0x3b7491){const _0x1f2b7e=_0x25a1a3;if(_0x3b7491)return _0x457ddb=_0x3b7491,_0x5734a1[_0x1f2b7e('0xc9')]=_[_0x1f2b7e('0x5d')](db[_0x1f2b7e('0x46')]['rawAttributes']),_0x5734a1[_0x1f2b7e('0x80')]=_[_0x1f2b7e('0x5d')](_0x567616['query']),_0x5734a1['filters']=_['intersection'](_0x5734a1['model'],_0x5734a1[_0x1f2b7e('0x80')]),_0x38534f[_0x1f2b7e('0xa1')]=_[_0x1f2b7e('0xd5')](_0x5734a1[_0x1f2b7e('0xc9')],qs[_0x1f2b7e('0x93')](_0x567616[_0x1f2b7e('0x80')]['fields'])),_0x38534f[_0x1f2b7e('0xa1')]=_0x38534f[_0x1f2b7e('0xa1')][_0x1f2b7e('0xc5')]?_0x38534f[_0x1f2b7e('0xa1')]:_0x5734a1['model'],_0x38534f['order']=qs[_0x1f2b7e('0xb')](_0x567616[_0x1f2b7e('0x80')]['sort']),_0x38534f[_0x1f2b7e('0x76')]=qs[_0x1f2b7e('0x48')](_['pick'](_0x567616['query'],_0x5734a1[_0x1f2b7e('0x48')])),_0x567616[_0x1f2b7e('0x80')][_0x1f2b7e('0x71')]&&(_0x38534f['where']=_['merge'](_0x38534f[_0x1f2b7e('0x76')],{[Op['or']]:_[_0x1f2b7e('0xf4')](_0x38534f['attributes'],function(_0x199a9b){const _0x184a35=_0x1f2b7e,_0x4dc372={};return _0x4dc372[_0x199a9b]={[Op['like']]:'%'+_0x567616['query'][_0x184a35('0x71')]+'%'},_0x4dc372;})})),_0x38534f=_[_0x1f2b7e('0xae')]({},_0x38534f,_0x567616[_0x1f2b7e('0xc1')]),_0x457ddb[_0x1f2b7e('0x82')](_0x38534f);})['then'](function(_0x3f3428){const _0x2886fc=_0x25a1a3;if(_0x3f3428)return _0x25de4a=_0x3f3428[_0x2886fc('0xc5')],typeof _0x567616[_0x2886fc('0x80')][_0x2886fc('0x6a')]==='undefined'&&(_0x38534f['limit']=qs[_0x2886fc('0xa3')](_0x567616[_0x2886fc('0x80')][_0x2886fc('0xa3')]),_0x38534f[_0x2886fc('0x6')]=qs['offset'](_0x567616['query']['offset'])),_0x457ddb[_0x2886fc('0x82')](_0x38534f);})[_0x25a1a3('0x70')](function(_0x5001b6){if(_0x5001b6)return _0x5001b6?{'count':_0x25de4a,'rows':_0x5001b6}:null;})['then'](respondWithResult(_0x1a54bf,null))[_0x25a1a3('0x41')](handleError(_0x1a54bf,null));}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index 7ecd718..eca616d 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a112_0x4043=['save','ChatWebsite','exports','remove','undefined','emit','events','addHook','setMaxListeners','../../mysqldb'];(function(_0x2d0ae9,_0x404348){const _0xe0957b=function(_0x9ee00e){while(--_0x9ee00e){_0x2d0ae9['push'](_0x2d0ae9['shift']());}};_0xe0957b(++_0x404348);}(a112_0x4043,0xb7));const a112_0xe095=function(_0x2d0ae9,_0x404348){_0x2d0ae9=_0x2d0ae9-0x0;let _0xe0957b=a112_0x4043[_0x2d0ae9];return _0xe0957b;};const _0x24be82=a112_0xe095;'use strict';const EventEmitter=require(_0x24be82('0x3')),ChatWebsite=require(_0x24be82('0x6'))['db'][_0x24be82('0x8')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x24be82('0x5')](0x0);const events={'afterCreate':_0x24be82('0x7'),'afterUpdate':'update','afterDestroy':_0x24be82('0x0')};function emitEvent(_0x9ee00e){return function(_0xf4fdd0){const _0x50dbed=a112_0xe095;ChatWebsiteEvents[_0x50dbed('0x2')](_0x9ee00e+':'+_0xf4fdd0['id'],_0xf4fdd0),ChatWebsiteEvents[_0x50dbed('0x2')](_0x9ee00e,_0xf4fdd0);};}for(const e in events){if(typeof events[e]!==_0x24be82('0x1')){const event=events[e];ChatWebsite[_0x24be82('0x4')](e,emitEvent(event));}}module[_0x24be82('0x9')]=ChatWebsiteEvents; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index 6bf33b9..d9dbc60 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a113_0x1a9b=['chat_websites','exports','define'];(function(_0x565ee9,_0x1a9bd6){const _0x2e2fcd=function(_0x3bf21d){while(--_0x3bf21d){_0x565ee9['push'](_0x565ee9['shift']());}};_0x2e2fcd(++_0x1a9bd6);}(a113_0x1a9b,0x1e4));const a113_0x2e2f=function(_0x565ee9,_0x1a9bd6){_0x565ee9=_0x565ee9-0x0;let _0x2e2fcd=a113_0x1a9b[_0x565ee9];return _0x2e2fcd;};const _0x404e59=a113_0x2e2f;'use strict';const attributes=require('./chatWebsite.attributes');module[_0x404e59('0x0')]=function(_0x3bf21d){const _0xc60cec=_0x404e59,_0x493301=_0x3bf21d[_0xc60cec('0x1')]('ChatWebsite',attributes,{'tableName':_0xc60cec('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x493301;}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index 0f29652..24ac110 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a114_0x710e=['./chatWebsite.socket','../../rediscache'];(function(_0x34ccf2,_0x710e8c){const _0x4dbdfc=function(_0x3facb2){while(--_0x3facb2){_0x34ccf2['push'](_0x34ccf2['shift']());}};_0x4dbdfc(++_0x710e8c);}(a114_0x710e,0x79));const a114_0x4dbd=function(_0x34ccf2,_0x710e8c){_0x34ccf2=_0x34ccf2-0x0;let _0x4dbdfc=a114_0x710e[_0x34ccf2];return _0x4dbdfc;};const _0x10710b=a114_0x4dbd;'use strict';const {getSocket}=require(_0x10710b('0x0')),socket=getSocket();require(_0x10710b('0x1'))['register'](socket); \ No newline at end of file +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 diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index a2c52af..4ea4fee 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a115_0x3a3a=['emit','update','register','chatWebsite:','./chatWebsite.events','save','length'];(function(_0xac3e4a,_0x3a3a41){const _0x3c4ff3=function(_0x247b2f){while(--_0x247b2f){_0xac3e4a['push'](_0xac3e4a['shift']());}};_0x3c4ff3(++_0x3a3a41);}(a115_0x3a3a,0x81));const a115_0x3c4f=function(_0xac3e4a,_0x3a3a41){_0xac3e4a=_0xac3e4a-0x0;let _0x3c4ff3=a115_0x3a3a[_0xac3e4a];return _0x3c4ff3;};const _0x12e3ad=a115_0x3c4f;'use strict';const ChatWebsiteEvents=require(_0x12e3ad('0x1')),events=[_0x12e3ad('0x2'),'remove',_0x12e3ad('0x5')];function createListener(_0x247b2f,_0x559018){return function(_0x153df2){const _0x394813=a115_0x3c4f;_0x559018[_0x394813('0x4')](_0x247b2f,_0x153df2);};}exports[_0x12e3ad('0x6')]=function(_0x57ec74){const _0x1e7047=_0x12e3ad;for(let _0x106cf7=0x0,_0xa0d87f=events[_0x1e7047('0x3')];_0x106cf7<_0xa0d87f;_0x106cf7++){const _0x4045db=events[_0x106cf7],_0x3b1177=createListener(_0x1e7047('0x0')+_0x4045db,_0x57ec74);ChatWebsiteEvents['on'](_0x4045db,_0x3b1177);}}; \ No newline at end of file +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 diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index 3237cd3..0466dbf 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a116_0x4d23=['join','offline','index','getInteractions','/:id/dispositions','show','getLogo','express','/:id/offline_messages','addInteraction','get','destroy','/:id/applications','root','isAuthenticated','addApplications','getAvatar','multer','addAvatar','/:id/snippet','format','/:id/fields','/:id/canned_answers','addAgents','files/images/','post','/:id/interactions','/:id','removeAnswers','/:id/customer_avatar','./chatWebsite.controller','/describe','avatars','getAnswers','Router','getFields','/:id/logo','describe','path','/:id/users','logos','util','update','getSnippet','addSystemAvatar','getSystemAvatar','notify','delete','removeDispositions','now','removeAgents','getOfflineMessages','/:id/offline','/:id/system_avatar','addDisposition','single','addAnswer','addProactiveActions','create','file','/:id/proactive_actions','getDispositions','addLogo','diskStorage'];(function(_0x23640f,_0x4d237a){const _0x4d2ebd=function(_0x7338f8){while(--_0x7338f8){_0x23640f['push'](_0x23640f['shift']());}};_0x4d2ebd(++_0x4d237a);}(a116_0x4d23,0x142));const a116_0x4d2e=function(_0x23640f,_0x4d237a){_0x23640f=_0x23640f-0x0;let _0x4d2ebd=a116_0x4d23[_0x23640f];return _0x4d2ebd;};const _0x1782a3=a116_0x4d2e;'use strict';const multer=require(_0x1782a3('0xf')),util=require(_0x1782a3('0x27')),path=require(_0x1782a3('0x24')),express=require(_0x1782a3('0x5')),router=express[_0x1782a3('0x20')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0x1782a3('0x1c')),upload=_0x7338f8=>multer({'storage':multer[_0x1782a3('0x3d')]({'destination':function(_0x245109,_0x3a1921,_0x1e7bf6){const _0x11f98b=_0x1782a3;_0x1e7bf6(null,path[_0x11f98b('0x3e')](config[_0x11f98b('0xb')],_0x11f98b('0x16'),_0x7338f8));},'filename':function(_0x54f50c,_0x4f5980,_0x4429b9){const _0x1e1e41=_0x1782a3;_0x4429b9(null,util[_0x1e1e41('0x12')]('%s-%s',Date[_0x1e1e41('0x2f')](),_0x4f5980['originalname']));}})});router[_0x1782a3('0x8')]('/',auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x0')]),router[_0x1782a3('0x8')](_0x1782a3('0x1d'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x23')]),router[_0x1782a3('0x8')](_0x1782a3('0x19'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x3')]),router[_0x1782a3('0x8')](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x3b')]),router[_0x1782a3('0x8')](_0x1782a3('0x14'),auth['isAuthenticated'](),controller[_0x1782a3('0x1f')]),router['get']('/:id/logo',controller[_0x1782a3('0x4')]),router[_0x1782a3('0x8')]('/:id/avatar',controller[_0x1782a3('0xe')]),router[_0x1782a3('0x8')](_0x1782a3('0x1b'),controller['getCustomerAvatar']),router[_0x1782a3('0x8')](_0x1782a3('0x33'),controller[_0x1782a3('0x2b')]),router[_0x1782a3('0x8')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x1782a3('0x1')]),router[_0x1782a3('0x8')](_0x1782a3('0x11'),controller[_0x1782a3('0x29')]),router[_0x1782a3('0x8')]('/:id/applications',auth['isAuthenticated'](),controller['getApplications']),router[_0x1782a3('0x8')](_0x1782a3('0x3a'),auth[_0x1782a3('0xc')](),controller['getProactiveActions']),router[_0x1782a3('0x8')](_0x1782a3('0x13'),controller[_0x1782a3('0x21')]),router[_0x1782a3('0x8')](_0x1782a3('0x6'),auth['isAuthenticated'](),controller[_0x1782a3('0x31')]),router[_0x1782a3('0x8')]('/:id/users',auth[_0x1782a3('0xc')](),controller['getAgents']),router[_0x1782a3('0x17')]('/',auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x38')]),router[_0x1782a3('0x17')](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x34')]),router[_0x1782a3('0x17')](_0x1782a3('0x14'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x36')]),router['post'](_0x1782a3('0x22'),upload(_0x1782a3('0x26'))[_0x1782a3('0x35')](_0x1782a3('0x39')),controller[_0x1782a3('0x3c')]),router[_0x1782a3('0x17')]('/:id/avatar',upload(_0x1782a3('0x1e'))['single'](_0x1782a3('0x39')),controller[_0x1782a3('0x10')]),router[_0x1782a3('0x17')]('/:id/customer_avatar',upload(_0x1782a3('0x1e'))[_0x1782a3('0x35')]('file'),controller['addCustomerAvatar']),router[_0x1782a3('0x17')](_0x1782a3('0x33'),upload(_0x1782a3('0x1e'))[_0x1782a3('0x35')](_0x1782a3('0x39')),controller[_0x1782a3('0x2a')]),router['post']('/:id/notify',controller[_0x1782a3('0x2c')]),router[_0x1782a3('0x17')](_0x1782a3('0x32'),controller[_0x1782a3('0x3f')]),router[_0x1782a3('0x17')](_0x1782a3('0x18'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x7')]),router['post'](_0x1782a3('0xa'),auth['isAuthenticated'](),controller[_0x1782a3('0xd')]),router[_0x1782a3('0x17')]('/:id/proactive_actions',auth['isAuthenticated'](),controller[_0x1782a3('0x37')]),router[_0x1782a3('0x17')](_0x1782a3('0x25'),auth['isAuthenticated'](),controller[_0x1782a3('0x15')]),router['put'](_0x1782a3('0x19'),auth['isAuthenticated'](),controller[_0x1782a3('0x28')]),router[_0x1782a3('0x2d')](_0x1782a3('0x19'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x9')]),router['delete'](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x2e')]),router['delete'](_0x1782a3('0x14'),auth['isAuthenticated'](),controller[_0x1782a3('0x1a')]),router['delete'](_0x1782a3('0x25'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x30')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index dc9550a..4a43c10 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a117_0x5356=['STRING','ENUM','exports','AmazonAWS'];(function(_0x4d378c,_0x535605){const _0x4a1ba6=function(_0x58f0fa){while(--_0x58f0fa){_0x4d378c['push'](_0x4d378c['shift']());}};_0x4a1ba6(++_0x535605);}(a117_0x5356,0x105));const a117_0x4a1b=function(_0x4d378c,_0x535605){_0x4d378c=_0x4d378c-0x0;let _0x4a1ba6=a117_0x5356[_0x4d378c];return _0x4a1ba6;};const _0x1bdb93=a117_0x4a1b;'use strict';const Sequelize=require('sequelize');module[_0x1bdb93('0x1')]={'name':{'type':Sequelize[_0x1bdb93('0x3')],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x1bdb93('0x0')](_0x1bdb93('0x2'),'Google'),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x1bdb93('0x3')]},'data2':{'type':Sequelize[_0x1bdb93('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.controller.js b/server/api/cloudProvider/cloudProvider.controller.js index 2c930b9..fbca120 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a118_0x1343=['../../components/parsers/qs','catch','status','rows','update','index','stack','model','sequelize','filters','type','CloudProvider','query','merge','includeAll','Content-Range','../../mysqldb','offset','body','api','destroy','sendStatus','params','fields','name','include','intersection','then','length','findAll','like','options','count','findOne','fieldName','attributes','json','end','keys','create','limit','filter','where','rawAttributes','show','map'];(function(_0x32f019,_0x13438b){const _0x5cce9b=function(_0x109a9b){while(--_0x109a9b){_0x32f019['push'](_0x32f019['shift']());}};_0x5cce9b(++_0x13438b);}(a118_0x1343,0x81));const a118_0x5cce=function(_0x32f019,_0x13438b){_0x32f019=_0x32f019-0x0;let _0x5cce9b=a118_0x1343[_0x32f019];return _0x5cce9b;};const _0x5623e9=a118_0x5cce;'use strict';const _=require('lodash'),qs=require(_0x5623e9('0x9')),logger=require('../../config/logger')(_0x5623e9('0x1c')),db=require(_0x5623e9('0x19'))['db'],{Op}=require(_0x5623e9('0x11'));function respondWithResult(_0x109a9b,_0x12db05){return _0x12db05=_0x12db05||0xc8,function(_0x31801c){const _0x3cf53a=a118_0x5cce;if(_0x31801c)return _0x109a9b[_0x3cf53a('0xb')](_0x12db05)[_0x3cf53a('0x2d')](_0x31801c);};}function respondWithFilteredResult(_0x578116,_0x28d24b){return function(_0x4a4f38){const _0x1212b9=a118_0x5cce;if(_0x4a4f38){const _0x2c56d7=_0x4a4f38[_0x1212b9('0x29')],_0x32168a=_0x28d24b[_0x1212b9('0x1a')];let _0x987e59=_0x28d24b['offset']+_0x28d24b['limit'],_0x438a86;return _0x987e59>=_0x2c56d7?(_0x987e59=_0x2c56d7,_0x438a86=0xc8):_0x438a86=0xce,_0x578116[_0x1212b9('0xb')](_0x438a86),_0x578116['set'](_0x1212b9('0x18'),_0x32168a+'-'+_0x987e59+'/'+_0x2c56d7)['json'](_0x4a4f38);}return null;};}function saveUpdates(_0x17fddc){return function(_0x1ed686){const _0x1b8775=a118_0x5cce;if(_0x1ed686)return _0x1ed686['update'](_0x17fddc)[_0x1b8775('0x24')](function(_0x2fafee){return _0x2fafee;});return null;};}function removeEntity(_0x112602){return function(_0x285269){const _0x5b4bc2=a118_0x5cce;if(_0x285269)return _0x285269[_0x5b4bc2('0x1d')]()[_0x5b4bc2('0x24')](function(){const _0x577c95=_0x5b4bc2;_0x112602[_0x577c95('0xb')](0xcc)[_0x577c95('0x0')]();});};}function handleEntityNotFound(_0x50921f){return function(_0x49aef9){const _0x178e99=a118_0x5cce;return!_0x49aef9&&_0x50921f[_0x178e99('0x1e')](0x194),_0x49aef9;};}function handleError(_0x20d68c,_0x45e51c){return _0x45e51c=_0x45e51c||0x1f4,function(_0x264f8c){const _0xbf4beb=a118_0x5cce;logger['error'](_0x264f8c[_0xbf4beb('0xf')]),_0x264f8c['name']&&delete _0x264f8c[_0xbf4beb('0x21')],_0x20d68c[_0xbf4beb('0xb')](_0x45e51c)['send'](_0x264f8c);};}exports[_0x5623e9('0xe')]=function(_0x8eda56,_0x4e3866){const _0x4a8bfa=_0x5623e9;let _0x40c82b={};const _0x5470e6={},_0x2aec02={'count':0x0,'rows':[]},_0x373fa4=_[_0x4a8bfa('0x8')](db[_0x4a8bfa('0x14')][_0x4a8bfa('0x6')],function(_0x2c905c){const _0x32826c=_0x4a8bfa;return{'name':_0x2c905c[_0x32826c('0x2b')],'type':_0x2c905c[_0x32826c('0x13')]['key']};});_0x5470e6[_0x4a8bfa('0x10')]=_['map'](_0x373fa4,_0x4a8bfa('0x21')),_0x5470e6[_0x4a8bfa('0x15')]=_['keys'](_0x8eda56['query']),_0x5470e6['filters']=_['intersection'](_0x5470e6[_0x4a8bfa('0x10')],_0x5470e6[_0x4a8bfa('0x15')]),_0x40c82b['attributes']=_['intersection'](_0x5470e6[_0x4a8bfa('0x10')],qs['fields'](_0x8eda56['query'][_0x4a8bfa('0x20')])),_0x40c82b[_0x4a8bfa('0x2c')]=_0x40c82b[_0x4a8bfa('0x2c')][_0x4a8bfa('0x25')]?_0x40c82b[_0x4a8bfa('0x2c')]:_0x5470e6[_0x4a8bfa('0x10')];typeof _0x8eda56['query']['nolimit']==='undefined'&&(_0x40c82b['limit']=qs[_0x4a8bfa('0x3')](_0x8eda56['query'][_0x4a8bfa('0x3')]),_0x40c82b[_0x4a8bfa('0x1a')]=qs[_0x4a8bfa('0x1a')](_0x8eda56[_0x4a8bfa('0x15')][_0x4a8bfa('0x1a')]));_0x40c82b['order']=qs['sort'](_0x8eda56['query']['sort']),_0x40c82b[_0x4a8bfa('0x5')]=qs['filters'](_['pick'](_0x8eda56[_0x4a8bfa('0x15')],_0x5470e6[_0x4a8bfa('0x12')]),_0x373fa4);_0x8eda56[_0x4a8bfa('0x15')][_0x4a8bfa('0x4')]&&(_0x40c82b[_0x4a8bfa('0x5')]=_[_0x4a8bfa('0x16')](_0x40c82b['where'],{[Op['or']]:_[_0x4a8bfa('0x8')](_0x373fa4,function(_0x53d2d5){const _0x239f56=_0x4a8bfa;if(_0x53d2d5['type']!=='VIRTUAL'){const _0x252d5c={};return _0x252d5c[_0x53d2d5[_0x239f56('0x21')]]={[Op[_0x239f56('0x27')]]:'%'+_0x8eda56[_0x239f56('0x15')][_0x239f56('0x4')]+'%'},_0x252d5c;}})}));_0x40c82b=_[_0x4a8bfa('0x16')]({},_0x40c82b,_0x8eda56[_0x4a8bfa('0x28')]);const _0x2fa945={'where':_0x40c82b[_0x4a8bfa('0x5')]};return db['CloudProvider']['count'](_0x2fa945)[_0x4a8bfa('0x24')](function(_0x3dc93f){const _0x2f0921=_0x4a8bfa;return _0x2aec02['count']=_0x3dc93f,_0x8eda56[_0x2f0921('0x15')][_0x2f0921('0x17')]&&(_0x40c82b[_0x2f0921('0x22')]=[{'all':!![]}]),db[_0x2f0921('0x14')][_0x2f0921('0x26')](_0x40c82b);})['then'](function(_0x1960c3){const _0x2a45fb=_0x4a8bfa;return _0x2aec02[_0x2a45fb('0xc')]=_0x1960c3,_0x2aec02;})[_0x4a8bfa('0x24')](respondWithFilteredResult(_0x4e3866,_0x40c82b))[_0x4a8bfa('0xa')](handleError(_0x4e3866,null));},exports[_0x5623e9('0x7')]=function(_0x47f8e6,_0x53b387){const _0x40ceaf=_0x5623e9;let _0x5a7585={'raw':!![],'where':{'id':_0x47f8e6[_0x40ceaf('0x1f')]['id']}};const _0x1f049a={};return _0x1f049a[_0x40ceaf('0x10')]=_[_0x40ceaf('0x1')](db['CloudProvider']['rawAttributes']),_0x1f049a[_0x40ceaf('0x15')]=_['keys'](_0x47f8e6[_0x40ceaf('0x15')]),_0x1f049a[_0x40ceaf('0x12')]=_[_0x40ceaf('0x23')](_0x1f049a[_0x40ceaf('0x10')],_0x1f049a[_0x40ceaf('0x15')]),_0x5a7585[_0x40ceaf('0x2c')]=_[_0x40ceaf('0x23')](_0x1f049a[_0x40ceaf('0x10')],qs[_0x40ceaf('0x20')](_0x47f8e6[_0x40ceaf('0x15')][_0x40ceaf('0x20')])),_0x5a7585[_0x40ceaf('0x2c')]=_0x5a7585['attributes'][_0x40ceaf('0x25')]?_0x5a7585['attributes']:_0x1f049a[_0x40ceaf('0x10')],_0x47f8e6[_0x40ceaf('0x15')][_0x40ceaf('0x17')]&&(_0x5a7585['include']=[{'all':!![]}]),_0x5a7585=_[_0x40ceaf('0x16')]({},_0x5a7585,_0x47f8e6[_0x40ceaf('0x28')]),db[_0x40ceaf('0x14')][_0x40ceaf('0x2a')](_0x5a7585)[_0x40ceaf('0x24')](handleEntityNotFound(_0x53b387,null))[_0x40ceaf('0x24')](respondWithResult(_0x53b387,null))[_0x40ceaf('0xa')](handleError(_0x53b387,null));},exports[_0x5623e9('0x2')]=function(_0x43d639,_0x49ab32){const _0x4f5d4d=_0x5623e9;return db[_0x4f5d4d('0x14')][_0x4f5d4d('0x2')](_0x43d639[_0x4f5d4d('0x1b')],{})[_0x4f5d4d('0x24')](respondWithResult(_0x49ab32,0xc9))['catch'](handleError(_0x49ab32,null));},exports[_0x5623e9('0xd')]=function(_0x266298,_0x3f9cc0){const _0x4c71f8=_0x5623e9;return _0x266298[_0x4c71f8('0x1b')]['id']&&delete _0x266298['body']['id'],db['CloudProvider'][_0x4c71f8('0x2a')]({'where':{'id':_0x266298[_0x4c71f8('0x1f')]['id']}})[_0x4c71f8('0x24')](handleEntityNotFound(_0x3f9cc0,null))[_0x4c71f8('0x24')](saveUpdates(_0x266298[_0x4c71f8('0x1b')],null))['then'](respondWithResult(_0x3f9cc0,null))[_0x4c71f8('0xa')](handleError(_0x3f9cc0,null));},exports[_0x5623e9('0x1d')]=function(_0x595394,_0x2d13c0){const _0x2d0280=_0x5623e9;return db[_0x2d0280('0x14')][_0x2d0280('0x2a')]({'where':{'id':_0x595394[_0x2d0280('0x1f')]['id']}})[_0x2d0280('0x24')](handleEntityNotFound(_0x2d13c0,null))['then'](removeEntity(_0x2d13c0,null))[_0x2d0280('0xa')](handleError(_0x2d13c0,null));}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index 06da63f..79dc199 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a119_0x7e7c=['./cloudProvider.attributes','exports','CloudProvider'];(function(_0x93c4f8,_0x7e7ce1){const _0x4f4ef8=function(_0x718db1){while(--_0x718db1){_0x93c4f8['push'](_0x93c4f8['shift']());}};_0x4f4ef8(++_0x7e7ce1);}(a119_0x7e7c,0x1e2));const a119_0x4f4e=function(_0x93c4f8,_0x7e7ce1){_0x93c4f8=_0x93c4f8-0x0;let _0x4f4ef8=a119_0x7e7c[_0x93c4f8];return _0x4f4ef8;};const _0x2f30ee=a119_0x4f4e;'use strict';const attributes=require(_0x2f30ee('0x1'));module[_0x2f30ee('0x2')]=function(_0x718db1){const _0x4e3059=_0x2f30ee,_0x4c2ac3=_0x718db1['define'](_0x4e3059('0x0'),attributes,{'tableName':'cloud_providers','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c2ac3;}; \ No newline at end of file +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 diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index 31f5a13..a6093c8 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a120_0x25b2=['show','exports','create','post','destroy','isAuthenticated','/:id','../../components/auth/service','express','index','get','./cloudProvider.controller','delete'];(function(_0x7a4f11,_0x25b28f){const _0x3cedd7=function(_0x2dc88d){while(--_0x2dc88d){_0x7a4f11['push'](_0x7a4f11['shift']());}};_0x3cedd7(++_0x25b28f);}(a120_0x25b2,0x111));const a120_0x3ced=function(_0x7a4f11,_0x25b28f){_0x7a4f11=_0x7a4f11-0x0;let _0x3cedd7=a120_0x25b2[_0x7a4f11];return _0x3cedd7;};const _0x412e66=a120_0x3ced;'use strict';const express=require(_0x412e66('0x8')),router=express['Router'](),auth=require(_0x412e66('0x7')),controller=require(_0x412e66('0xb'));router[_0x412e66('0xa')]('/',auth[_0x412e66('0x5')](),controller[_0x412e66('0x9')]),router[_0x412e66('0xa')](_0x412e66('0x6'),auth[_0x412e66('0x5')](),controller[_0x412e66('0x0')]),router[_0x412e66('0x3')]('/',auth['isAuthenticated'](),controller[_0x412e66('0x2')]),router['put'](_0x412e66('0x6'),auth[_0x412e66('0x5')](),controller['update']),router[_0x412e66('0xc')]('/:id',auth[_0x412e66('0x5')](),controller[_0x412e66('0x4')]),module[_0x412e66('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index 4ea43fd..54c00eb 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a121_0x2576=['name','sequelize','STRING','exports'];(function(_0x4ba702,_0x25763d){const _0x842f1f=function(_0x105d1c){while(--_0x105d1c){_0x4ba702['push'](_0x4ba702['shift']());}};_0x842f1f(++_0x25763d);}(a121_0x2576,0xf9));const a121_0x842f=function(_0x4ba702,_0x25763d){_0x4ba702=_0x4ba702-0x0;let _0x842f1f=a121_0x2576[_0x4ba702];return _0x842f1f;};const _0x859fdd=a121_0x842f;'use strict';const Sequelize=require(_0x859fdd('0x0'));module[_0x859fdd('0x2')]={'name':{'type':Sequelize[_0x859fdd('0x1')],'unique':_0x859fdd('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0x859fdd('0x1')]},'website':{'type':Sequelize[_0x859fdd('0x1')]},'phone':{'type':Sequelize[_0x859fdd('0x1')]},'fax':{'type':Sequelize[_0x859fdd('0x1')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x859fdd('0x1')]},'postalCode':{'type':Sequelize[_0x859fdd('0x1')]},'city':{'type':Sequelize[_0x859fdd('0x1')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x859fdd('0x1')]},'sStreet':{'type':Sequelize[_0x859fdd('0x1')]},'sPostalCode':{'type':Sequelize[_0x859fdd('0x1')]},'sCity':{'type':Sequelize[_0x859fdd('0x1')]},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x859fdd('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index 58a187d..c31ae84 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a122_0x1ca7=['omit','length','set','rows','getContacts','order','intersection','name','Companies','userProfileId','query','stack','fields','sort','role','model','offset','pick','CmCompany','then','get','sendStatus','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','catch','map','options','findAll','api','create','UserProfileSection','describe','user','UserProfileResource','destroy','like','autoAssociation','body','json','filters','attributes','limit','update','includeAll','keys','nolimit','params','../../components/parsers/qs','CmContact','include','end','merge','filter','error','show','addContacts','Content-Range','index','lodash','../../config/logger','findOne','where','undefined','status','ids','rawAttributes'];(function(_0x556025,_0x1ca79a){const _0x23661b=function(_0x62e1bc){while(--_0x62e1bc){_0x556025['push'](_0x556025['shift']());}};_0x23661b(++_0x1ca79a);}(a122_0x1ca7,0x178));const a122_0x2366=function(_0x556025,_0x1ca79a){_0x556025=_0x556025-0x0;let _0x23661b=a122_0x1ca7[_0x556025];return _0x23661b;};const _0x5ba7f9=a122_0x2366;'use strict';const _=require(_0x5ba7f9('0x6')),qs=require(_0x5ba7f9('0x3c')),logger=require(_0x5ba7f9('0x7'))(_0x5ba7f9('0x29')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x62e1bc,_0x1f9144){return _0x1f9144=_0x1f9144||0xc8,function(_0x4a22a6){const _0x5316ef=a122_0x2366;if(_0x4a22a6)return _0x62e1bc[_0x5316ef('0xb')](_0x1f9144)[_0x5316ef('0x33')](_0x4a22a6);};}function respondWithFilteredResult(_0x3da510,_0x52ec3f){return function(_0x23572f){const _0x5cc5c1=a122_0x2366;if(_0x23572f){const _0x3a7496=_0x23572f['count'],_0x5dcdaa=_0x52ec3f[_0x5cc5c1('0x1e')];let _0x28030e=_0x52ec3f[_0x5cc5c1('0x1e')]+_0x52ec3f['limit'],_0x218dbd;return _0x28030e>=_0x3a7496?(_0x28030e=_0x3a7496,_0x218dbd=0xc8):_0x218dbd=0xce,_0x3da510[_0x5cc5c1('0xb')](_0x218dbd),_0x3da510[_0x5cc5c1('0x10')](_0x5cc5c1('0x4'),_0x5dcdaa+'-'+_0x28030e+'/'+_0x3a7496)['json'](_0x23572f);}return null;};}function saveUpdates(_0x2e213e){return function(_0x1da0c4){const _0x15653c=a122_0x2366;if(_0x1da0c4)return _0x1da0c4[_0x15653c('0x37')](_0x2e213e)['then'](function(_0x142fbb){return _0x142fbb;});return null;};}function removeEntity(_0x238b33){return function(_0xadb7d1){const _0x237a40=a122_0x2366;if(_0xadb7d1)return _0xadb7d1[_0x237a40('0x2f')]()[_0x237a40('0x21')](function(){const _0x11b18a=_0x237a40,_0x24351d=_0xadb7d1['get']({'plain':!![]}),_0x362716=_0x11b18a('0x16');return db[_0x11b18a('0x2e')][_0x11b18a('0x2f')]({'where':{'type':_0x362716,'resourceId':_0x24351d['id']}})[_0x11b18a('0x21')](function(){return _0xadb7d1;});})[_0x237a40('0x21')](function(){const _0x59c2dd=_0x237a40;_0x238b33[_0x59c2dd('0xb')](0xcc)[_0x59c2dd('0x3f')]();});};}function handleEntityNotFound(_0x4fabec){return function(_0x4f2403){const _0x252fa2=a122_0x2366;return!_0x4f2403&&_0x4fabec[_0x252fa2('0x23')](0x194),_0x4f2403;};}function handleError(_0x3602e1,_0x1ac214){return _0x1ac214=_0x1ac214||0x1f4,function(_0x36d8d6){const _0x4f7702=a122_0x2366;logger['error'](_0x36d8d6[_0x4f7702('0x19')]),_0x36d8d6['name']&&delete _0x36d8d6[_0x4f7702('0x15')],_0x3602e1[_0x4f7702('0xb')](_0x1ac214)['send'](_0x36d8d6);};}exports[_0x5ba7f9('0x5')]=function(_0x35befd,_0x5b9388){const _0x478dec=_0x5ba7f9;let _0x4c2f42={};const _0x5dbedb={},_0x359cea={'count':0x0,'rows':[]};return db[_0x478dec('0x20')][_0x478dec('0x2c')]()[_0x478dec('0x21')](function(_0x41bab0){const _0x4acd80=_0x478dec;_0x5dbedb[_0x4acd80('0x1d')]=_[_0x4acd80('0x39')](_0x41bab0),_0x5dbedb[_0x4acd80('0x18')]=_[_0x4acd80('0x39')](_0x35befd[_0x4acd80('0x18')]),_0x5dbedb[_0x4acd80('0x34')]=_['intersection'](_0x5dbedb[_0x4acd80('0x1d')],_0x5dbedb[_0x4acd80('0x18')]),_0x4c2f42[_0x4acd80('0x35')]=_[_0x4acd80('0x14')](_0x5dbedb[_0x4acd80('0x1d')],qs[_0x4acd80('0x1a')](_0x35befd[_0x4acd80('0x18')][_0x4acd80('0x1a')])),_0x4c2f42[_0x4acd80('0x35')]=_0x4c2f42[_0x4acd80('0x35')][_0x4acd80('0xf')]?_0x4c2f42['attributes']:_0x5dbedb['model'];typeof _0x35befd[_0x4acd80('0x18')][_0x4acd80('0x3a')]==='undefined'&&(_0x4c2f42[_0x4acd80('0x36')]=qs[_0x4acd80('0x36')](_0x35befd[_0x4acd80('0x18')][_0x4acd80('0x36')]),_0x4c2f42[_0x4acd80('0x1e')]=qs['offset'](_0x35befd[_0x4acd80('0x18')][_0x4acd80('0x1e')]));_0x4c2f42[_0x4acd80('0x13')]=qs[_0x4acd80('0x1b')](_0x35befd[_0x4acd80('0x18')][_0x4acd80('0x1b')]),_0x4c2f42['where']=qs[_0x4acd80('0x34')](_[_0x4acd80('0x1f')](_0x35befd[_0x4acd80('0x18')],_0x5dbedb[_0x4acd80('0x34')]),_0x41bab0);_0x35befd[_0x4acd80('0x18')][_0x4acd80('0x0')]&&(_0x4c2f42[_0x4acd80('0x9')]=_[_0x4acd80('0x40')](_0x4c2f42[_0x4acd80('0x9')],{[Op['or']]:_['map'](_0x4c2f42['attributes'],function(_0x3e1768){const _0x44a3be=_0x4acd80,_0xd313ff={};return _0xd313ff[_0x3e1768]={[Op[_0x44a3be('0x30')]]:'%'+_0x35befd['query'][_0x44a3be('0x0')]+'%'},_0xd313ff;})}));_0x4c2f42=_[_0x4acd80('0x40')]({},_0x4c2f42,_0x35befd[_0x4acd80('0x27')]);const _0x48bac3={'where':_0x4c2f42[_0x4acd80('0x9')]};return db[_0x4acd80('0x20')]['count'](_0x48bac3)[_0x4acd80('0x21')](function(_0x45900d){const _0x1718d2=_0x4acd80;return _0x359cea['count']=_0x45900d,_0x35befd[_0x1718d2('0x18')][_0x1718d2('0x38')]&&(_0x4c2f42[_0x1718d2('0x3e')]=[{'all':!![]}]),db['CmCompany'][_0x1718d2('0x28')](_0x4c2f42);})[_0x4acd80('0x21')](function(_0x3d4a5c){const _0x54733a=_0x4acd80;return _0x359cea[_0x54733a('0x11')]=_0x3d4a5c,_0x359cea;})[_0x4acd80('0x21')](respondWithFilteredResult(_0x5b9388,_0x4c2f42))[_0x4acd80('0x25')](handleError(_0x5b9388,null));})[_0x478dec('0x25')](handleError(_0x5b9388,null));},exports[_0x5ba7f9('0x2')]=function(_0x4a8f37,_0x18f637){const _0x8eea9c=_0x5ba7f9;let _0x5a4a4e={'raw':![],'where':{'id':_0x4a8f37[_0x8eea9c('0x3b')]['id']}};const _0x5c91ad={};return _0x5c91ad[_0x8eea9c('0x1d')]=_['keys'](db[_0x8eea9c('0x20')][_0x8eea9c('0xd')]),_0x5c91ad[_0x8eea9c('0x18')]=_[_0x8eea9c('0x39')](_0x4a8f37[_0x8eea9c('0x18')]),_0x5c91ad['filters']=_[_0x8eea9c('0x14')](_0x5c91ad['model'],_0x5c91ad['query']),_0x5a4a4e[_0x8eea9c('0x35')]=_['intersection'](_0x5c91ad[_0x8eea9c('0x1d')],qs[_0x8eea9c('0x1a')](_0x4a8f37[_0x8eea9c('0x18')][_0x8eea9c('0x1a')])),_0x5a4a4e['attributes']=_0x5a4a4e['attributes'][_0x8eea9c('0xf')]?_0x5a4a4e[_0x8eea9c('0x35')]:_0x5c91ad['model'],_0x4a8f37[_0x8eea9c('0x18')][_0x8eea9c('0x38')]&&(_0x5a4a4e[_0x8eea9c('0x3e')]=[{'all':!![]}]),_0x5a4a4e=_[_0x8eea9c('0x40')]({},_0x5a4a4e,_0x4a8f37['options']),db['CmCompany'][_0x8eea9c('0x8')](_0x5a4a4e)[_0x8eea9c('0x21')](handleEntityNotFound(_0x18f637,null))[_0x8eea9c('0x21')](respondWithResult(_0x18f637,null))[_0x8eea9c('0x25')](handleError(_0x18f637,null));},exports['create']=function(_0x5b4a0a,_0x3eadbd){const _0x48e941=_0x5ba7f9;return db[_0x48e941('0x20')][_0x48e941('0x2a')](_0x5b4a0a[_0x48e941('0x32')],{})[_0x48e941('0x21')](function(_0x2ba62d){const _0xed7ef6=_0x48e941,_0x161867=_0x5b4a0a[_0xed7ef6('0x2d')]['get']({'plain':!![]});if(!_0x161867)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x161867[_0xed7ef6('0x1c')]==='user'){const _0x1be0af=_0x2ba62d[_0xed7ef6('0x22')]({'plain':!![]}),_0x155db2='Companies';return db[_0xed7ef6('0x2b')][_0xed7ef6('0x8')]({'where':{'name':_0x155db2,'userProfileId':_0x161867[_0xed7ef6('0x17')]},'raw':!![]})[_0xed7ef6('0x21')](function(_0x587da0){const _0x2181ca=_0xed7ef6;return _0x587da0&&_0x587da0[_0x2181ca('0x31')]===0x0?db['UserProfileResource']['create']({'name':_0x1be0af[_0x2181ca('0x15')],'resourceId':_0x1be0af['id'],'type':_0x587da0[_0x2181ca('0x15')],'sectionId':_0x587da0['id']},{})['then'](function(){return _0x2ba62d;}):_0x2ba62d;})['catch'](function(_0x117f7b){const _0x50a8ea=_0xed7ef6;logger[_0x50a8ea('0x1')](_0x50a8ea('0x24'),_0x117f7b);throw _0x117f7b;});}return _0x2ba62d;})['then'](respondWithResult(_0x3eadbd,0xc9))[_0x48e941('0x25')](handleError(_0x3eadbd,null));},exports[_0x5ba7f9('0x37')]=function(_0x77e8fb,_0x1d1ebd){const _0x5628ee=_0x5ba7f9;return _0x77e8fb['body']['id']&&delete _0x77e8fb[_0x5628ee('0x32')]['id'],db[_0x5628ee('0x20')][_0x5628ee('0x8')]({'where':{'id':_0x77e8fb[_0x5628ee('0x3b')]['id']}})[_0x5628ee('0x21')](handleEntityNotFound(_0x1d1ebd,null))[_0x5628ee('0x21')](saveUpdates(_0x77e8fb[_0x5628ee('0x32')],null))[_0x5628ee('0x21')](respondWithResult(_0x1d1ebd,null))[_0x5628ee('0x25')](handleError(_0x1d1ebd,null));},exports[_0x5ba7f9('0x2f')]=function(_0x5a89ab,_0x515d8a){const _0x36e5c7=_0x5ba7f9;return db[_0x36e5c7('0x20')][_0x36e5c7('0x8')]({'where':{'id':_0x5a89ab['params']['id']}})[_0x36e5c7('0x21')](handleEntityNotFound(_0x515d8a,null))[_0x36e5c7('0x21')](removeEntity(_0x515d8a,null))['catch'](handleError(_0x515d8a,null));},exports[_0x5ba7f9('0x2c')]=function(_0x50e4cb,_0x998c6d){const _0x305b55=_0x5ba7f9;return db[_0x305b55('0x20')][_0x305b55('0x2c')]()[_0x305b55('0x21')](respondWithResult(_0x998c6d,null))[_0x305b55('0x25')](handleError(_0x998c6d,null));},exports[_0x5ba7f9('0x3')]=function(_0x7680e8,_0x13496e){const _0x566a5b=_0x5ba7f9;return db['CmContact'][_0x566a5b('0x8')]({'where':{'id':_0x7680e8[_0x566a5b('0x3b')]['id']}})[_0x566a5b('0x21')](function(_0x4bdf75){const _0x5a1b16=_0x566a5b;if(_0x4bdf75)return _0x4bdf75[_0x5a1b16('0x3')](_0x7680e8[_0x5a1b16('0x32')][_0x5a1b16('0xc')],{'through':_[_0x5a1b16('0xe')](_0x7680e8[_0x5a1b16('0x32')],['ids','id'])});})[_0x566a5b('0x21')](respondWithResult(_0x13496e,null))['catch'](handleError(_0x13496e,null));},exports[_0x5ba7f9('0x12')]=function(_0x1c3ae3,_0x3e637f){const _0x398ba1=_0x5ba7f9;let _0x465dc6={};const _0x7d32af={};let _0x7abbec,_0x31bf4b;return db[_0x398ba1('0x20')]['findOne']({'where':{'id':_0x1c3ae3[_0x398ba1('0x3b')]['id']}})[_0x398ba1('0x21')](handleEntityNotFound(_0x3e637f,null))[_0x398ba1('0x21')](function(_0x3c2f80){const _0x338f11=_0x398ba1;if(_0x3c2f80)return _0x7abbec=_0x3c2f80,_0x7d32af['model']=_['keys'](db[_0x338f11('0x3d')][_0x338f11('0xd')]),_0x7d32af[_0x338f11('0x18')]=_['keys'](_0x1c3ae3[_0x338f11('0x18')]),_0x7d32af['filters']=_[_0x338f11('0x14')](_0x7d32af['model'],_0x7d32af[_0x338f11('0x18')]),_0x465dc6[_0x338f11('0x35')]=_[_0x338f11('0x14')](_0x7d32af[_0x338f11('0x1d')],qs[_0x338f11('0x1a')](_0x1c3ae3['query'][_0x338f11('0x1a')])),_0x465dc6[_0x338f11('0x35')]=_0x465dc6[_0x338f11('0x35')]['length']?_0x465dc6[_0x338f11('0x35')]:_0x7d32af[_0x338f11('0x1d')],_0x465dc6[_0x338f11('0x13')]=qs[_0x338f11('0x1b')](_0x1c3ae3[_0x338f11('0x18')][_0x338f11('0x1b')]),_0x465dc6['where']=qs['filters'](_[_0x338f11('0x1f')](_0x1c3ae3[_0x338f11('0x18')],_0x7d32af[_0x338f11('0x34')])),_0x1c3ae3[_0x338f11('0x18')][_0x338f11('0x0')]&&(_0x465dc6[_0x338f11('0x9')]=_['merge'](_0x465dc6[_0x338f11('0x9')],{[Op['or']]:_[_0x338f11('0x26')](_0x465dc6['attributes'],function(_0x4e9710){const _0x34576b=_0x338f11,_0x28a7fb={};return _0x28a7fb[_0x4e9710]={[Op[_0x34576b('0x30')]]:'%'+_0x1c3ae3['query'][_0x34576b('0x0')]+'%'},_0x28a7fb;})})),_0x465dc6=_['merge']({},_0x465dc6,_0x1c3ae3['options']),_0x7abbec[_0x338f11('0x12')](_0x465dc6);})[_0x398ba1('0x21')](function(_0x5ba5cd){const _0x57232a=_0x398ba1;if(_0x5ba5cd)return _0x31bf4b=_0x5ba5cd[_0x57232a('0xf')],typeof _0x1c3ae3[_0x57232a('0x18')]['nolimit']===_0x57232a('0xa')&&(_0x465dc6['limit']=qs[_0x57232a('0x36')](_0x1c3ae3[_0x57232a('0x18')]['limit']),_0x465dc6[_0x57232a('0x1e')]=qs[_0x57232a('0x1e')](_0x1c3ae3[_0x57232a('0x18')][_0x57232a('0x1e')])),_0x7abbec[_0x57232a('0x12')](_0x465dc6);})['then'](function(_0x1e1229){if(_0x1e1229)return _0x1e1229?{'count':_0x31bf4b,'rows':_0x1e1229}:null;})[_0x398ba1('0x21')](respondWithResult(_0x3e637f,null))['catch'](handleError(_0x3e637f,null));}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index 2da9d85..5ff74e4 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a123_0x4391=['CmCompany','exports','define'];(function(_0x35aac6,_0x439138){const _0x347c1c=function(_0x42732d){while(--_0x42732d){_0x35aac6['push'](_0x35aac6['shift']());}};_0x347c1c(++_0x439138);}(a123_0x4391,0xdb));const a123_0x347c=function(_0x35aac6,_0x439138){_0x35aac6=_0x35aac6-0x0;let _0x347c1c=a123_0x4391[_0x35aac6];return _0x347c1c;};const _0x587c36=a123_0x347c;'use strict';const attributes=require('./cmCompany.attributes');module[_0x587c36('0x1')]=function(_0x42732d){const _0x2b3bcc=_0x587c36,_0x2ba559=_0x42732d[_0x2b3bcc('0x2')](_0x2b3bcc('0x0'),attributes,{'tableName':'cm_companies','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2ba559;}; \ No newline at end of file +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 diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index 246be0d..2143320 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a124_0x1202=['post','/:id','create','index','addContacts','/describe','show','getContacts','describe','/:id/contacts','../../components/auth/service','exports','Router','destroy','put','isAuthenticated','get','express'];(function(_0x16a57a,_0x1202c9){const _0x4ed127=function(_0x205ca7){while(--_0x205ca7){_0x16a57a['push'](_0x16a57a['shift']());}};_0x4ed127(++_0x1202c9);}(a124_0x1202,0x130));const a124_0x4ed1=function(_0x16a57a,_0x1202c9){_0x16a57a=_0x16a57a-0x0;let _0x4ed127=a124_0x1202[_0x16a57a];return _0x4ed127;};const _0x567670=a124_0x4ed1;'use strict';const express=require(_0x567670('0x1')),router=express[_0x567670('0xe')](),auth=require(_0x567670('0xc')),controller=require('./cmCompany.controller');router[_0x567670('0x0')]('/',auth[_0x567670('0x11')](),controller[_0x567670('0x5')]),router[_0x567670('0x0')](_0x567670('0x7'),auth[_0x567670('0x11')](),controller[_0x567670('0xa')]),router[_0x567670('0x0')](_0x567670('0x3'),auth[_0x567670('0x11')](),controller[_0x567670('0x8')]),router[_0x567670('0x0')](_0x567670('0xb'),auth[_0x567670('0x11')](),controller[_0x567670('0x9')]),router[_0x567670('0x2')]('/',auth[_0x567670('0x11')](),controller[_0x567670('0x4')]),router[_0x567670('0x2')]('/:id/contacts',auth[_0x567670('0x11')](),controller[_0x567670('0x6')]),router[_0x567670('0x10')](_0x567670('0x3'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x567670('0x3'),auth[_0x567670('0x11')](),controller[_0x567670('0xf')]),module[_0x567670('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index 19347c7..4313247 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a125_0x55f4=['TEXT','DATE','sequelize','NOW','UNSIGNED','STRING','INTEGER'];(function(_0x11e920,_0x55f4c3){const _0x3053c5=function(_0x4ee89c){while(--_0x4ee89c){_0x11e920['push'](_0x11e920['shift']());}};_0x3053c5(++_0x55f4c3);}(a125_0x55f4,0xa9));const a125_0x3053=function(_0x11e920,_0x55f4c3){_0x11e920=_0x11e920-0x0;let _0x3053c5=a125_0x55f4[_0x11e920];return _0x3053c5;};const _0x25e285=a125_0x3053;'use strict';const Sequelize=require(_0x25e285('0x1'));module['exports']={'firstName':{'type':Sequelize[_0x25e285('0x4')],'allowNull':![]},'lastName':{'type':Sequelize['STRING']},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x25e285('0x4')]},'dateOfBirth':{'type':Sequelize[_0x25e285('0x4')]},'description':{'type':Sequelize[_0x25e285('0x6')]},'phone':{'type':Sequelize['STRING']},'mobile':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x25e285('0x4')]},'email':{'type':Sequelize[_0x25e285('0x4')]},'url':{'type':Sequelize[_0x25e285('0x4')]},'facebook':{'type':Sequelize['STRING']},'fb_data':{'type':Sequelize[_0x25e285('0x4')]},'twitter':{'type':Sequelize[_0x25e285('0x4')]},'skype':{'type':Sequelize[_0x25e285('0x4')]},'teams':{'type':Sequelize[_0x25e285('0x4')]},'viber':{'type':Sequelize[_0x25e285('0x4')]},'line':{'type':Sequelize[_0x25e285('0x4')]},'wechat':{'type':Sequelize[_0x25e285('0x4')]},'telegram':{'type':Sequelize[_0x25e285('0x4')]},'UserId':{'type':Sequelize[_0x25e285('0x5')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x25e285('0x3')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x25e285('0x0')],'defaultValue':Sequelize[_0x25e285('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js index 9dedc51..7147f49 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a126_0x4ee1=['params','field','then','body','c.firstName\x20LIKE\x20?','Content-Range','No\x20association\x20values\x20specified!','CmContact','name','model','isEmpty','start\x20child\x20process\x20correctly!','c.mobile\x20LIKE\x20?','CmCustomField','offset','zipObject','toParam','cf_','where','cm_user_has_contacts','each','send','lodash','meta','ChatMessage','agent','parse','join','papaparse','exit','tools_tags','id\x20=\x20?','user','keyBy','getHopperFinals','setTags','clone','$and','includeAll','left_join','set','c.ListId\x20IN\x20?','binding_keys','color','select','bulkCreate','search','No\x20ListId\x20specified','getJscriptySessions','uc.CmContactId\x20=\x20c.id','mergeWith','chmodSync','ct.CmContactId\x20=\x20c.id','dateOfBirth','t.id\x20=\x20ct.TagId','SmsInteraction','../../mysqldb','query','info','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','update','castTo','FaxInteraction','pick','destroy','getFullTextValue','QueryTypes','omit','import','MailInteraction','error','phone','[CmContact][merge][destroy][CmHopper],\x20%s','from','fields','end','filename','[CmContact][merge]\x20to\x20%s\x20from\x20%s','User','some','attributes','union','json','options','map','binding','having','SELECT','rows','type','tags','CompanyId','DESC','forEach','count','FaxMessage','\x27\x27\x27\x27','api','ChatInteraction','Incorrect\x20binding\x20parameters\x20passed!','\x20=\x20?','filter','cm_contacts','MailQueueReport','isNumeric','catch','duplicates','merge','No\x20phone\x20column\x20specified','TagIds','./cmContact.socket','nolimit','register','parseSearch','push','value','all','Tags','c.id','CmHopperFinal','isArray','file','c.phone\x20LIKE\x20?','c.email','CmHopper','message','getHoppers','include','0777','findOrCreate','File\x20uploaded\x20correctly!','findAll','order','GROUP_CONCAT(DISTINCT\x20t.id)','sqlOperator','c.fax','server/files/tmp','findOne','intersection','c.ListId\x20IS\x20NULL','concat','alias','split','status','values','trimStart','rawAttributes','c.deletedAt\x20IS\x20NULL','error\x20child\x20process','ListId','binding_values','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','resolve','create','pickBy','keys','format','socket_timestamp','c.deletedAt','t.id\x20IN\x20?','OpenchannelInteraction','columnName','displayName','filters','stack','createReadStream','sequelize','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','../../components/import/cm/csv2','c.lastName','MailMessage','CmHopperBlack','firstName','limit','root','index','OpenchannelQueueReport','cf_%d','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','c.ListId','length','SmsMessage','and','text','OpenchannelMessage','pid','table','child_process','path','toString','stringify','get','getTags','ids','Tag','No\x20firstName\x20column\x20specified','ContactId','fieldType','sort','group','conditions','c.mobile','describe','show','Contact','[CmContact][merge][destroy][CmHopperBlack],\x20%s','like','getHopperHistories','fork','CmHopperHistory','custom','setFields','undefined','find','JscriptySessionReport','expr','tag','Sequelize'];(function(_0x194b37,_0x4ee1c6){const _0x4bb539=function(_0x4fe136){while(--_0x4fe136){_0x194b37['push'](_0x194b37['shift']());}};_0x4bb539(++_0x4ee1c6);}(a126_0x4ee1,0x148));const a126_0x4bb5=function(_0x194b37,_0x4ee1c6){_0x194b37=_0x194b37-0x0;let _0x4bb539=a126_0x4ee1[_0x194b37];return _0x4bb539;};const _0x23e729=a126_0x4bb5;'use strict';const util=require('util'),path=require(_0x23e729('0x4e')),fs=require('fs'),_=require(_0x23e729('0x82')),squel=require('squel'),Papa=require(_0x23e729('0x88')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require('../../components/parsers/advancedSearch'),logger=require('../../config/logger')(_0x23e729('0xcd')),config=require('../../config/environment'),db=require(_0x23e729('0xa4'))['db'],{Op}=require(_0x23e729('0x38'));require(_0x23e729('0x0'))[_0x23e729('0x2')](socket);function respondWithResult(_0x4fe136,_0x519160){return _0x519160=_0x519160||0xc8,function(_0x4ed04b){const _0x198b6d=a126_0x4bb5;if(_0x4ed04b)return _0x4fe136[_0x198b6d('0x21')](_0x519160)['json'](_0x4ed04b);};}function respondWithFilteredResult(_0x2c37ea,_0x48d97a){return function(_0x45f5e2){const _0xa1bdb2=a126_0x4bb5;if(_0x45f5e2){const _0x2b1f0f=_0x45f5e2[_0xa1bdb2('0xca')],_0x4bf825=_0x48d97a[_0xa1bdb2('0x7a')];let _0x45251e=_0x48d97a['offset']+_0x48d97a[_0xa1bdb2('0x3f')],_0x2e07df;return _0x45251e>=_0x2b1f0f?(_0x45251e=_0x2b1f0f,_0x2e07df=0xc8):_0x2e07df=0xce,_0x2c37ea[_0xa1bdb2('0x21')](_0x2e07df),_0x2c37ea[_0xa1bdb2('0x94')](_0xa1bdb2('0x71'),_0x4bf825+'-'+_0x45251e+'/'+_0x2b1f0f)[_0xa1bdb2('0xbe')](_0x45f5e2);}return null;};}function saveUpdates(_0xf8dec){return function(_0x30706e){const _0x6eb0b0=a126_0x4bb5;if(_0x30706e)return _0x30706e[_0x6eb0b0('0xa8')](_0xf8dec)[_0x6eb0b0('0x6e')](function(_0x88e644){return _0x88e644;});return null;};}function removeEntity(_0x29cb45){return function(_0x3f49a5){const _0xac4b29=a126_0x4bb5;if(_0x3f49a5)return _0x3f49a5[_0xac4b29('0xac')]()['then'](function(){const _0x653c01=_0xac4b29;_0x29cb45[_0x653c01('0x21')](0xcc)['end']();});};}function handleEntityNotFound(_0x105547){return function(_0x94b8a3){return!_0x94b8a3&&_0x105547['sendStatus'](0x194),_0x94b8a3;};}function handleError(_0x523284,_0x2728d0){return _0x2728d0=_0x2728d0||0x1f4,function(_0x4e45db){const _0xe85579=a126_0x4bb5;logger[_0xe85579('0xb2')](_0x4e45db[_0xe85579('0x36')]),_0x4e45db[_0xe85579('0x74')]&&delete _0x4e45db[_0xe85579('0x74')],_0x523284[_0xe85579('0x21')](_0x2728d0)['send'](_0x4e45db);};}exports[_0x23e729('0x41')]=function(_0x176d64,_0x43436e){const _0x24db29=_0x23e729,_0x389d61={},_0x1ce2ef={},_0x2c4a32={'count':0x0,'rows':[]};return db[_0x24db29('0x73')][_0x24db29('0x5c')]()['then'](function(_0x4c5152){const _0x5a33bf=_0x24db29,_0x50ea12=[];for(let _0x3d3818=0x0;_0x3d38180x1)_0x26245b['or'](_0xfb9f19('0x44'),qs[_0xfb9f19('0xad')](_0x28d8c1),null);else{if(qs[_0xfb9f19('0xd4')](_0x28d8c1))_0x26245b['or']('c.id\x20LIKE\x20?',_0x28d8c1+'%'),_0x26245b['or'](_0xfb9f19('0xc'),_0x28d8c1+'%'),_0x26245b['or'](_0xfb9f19('0x78'),_0x28d8c1+'%'),_0x26245b['or']('c.fax\x20LIKE\x20?',_0x28d8c1+'%');else qs['isEmail'](_0x28d8c1)?_0x26245b['or']('c.email\x20LIKE\x20?',_0x28d8c1+'%'):(_0x26245b['or'](_0xfb9f19('0x70'),'%'+_0x28d8c1+'%'),_0x26245b['or']('c.lastName\x20LIKE\x20?','%'+_0x28d8c1+'%'),_0x26245b['or']('c.email\x20LIKE\x20?','%'+_0x28d8c1+'%'));}}}_0x2f3869[_0xfb9f19('0x7e')](_0x26245b),_0x2f3869[_0xfb9f19('0x59')](_0xfb9f19('0x8'));let _0xe382e={'type':db[_0xfb9f19('0x6b')][_0xfb9f19('0xae')][_0xfb9f19('0xc3')],'raw':!![]};const _0x51a3de=_0x2f3869[_0xfb9f19('0x90')]()[_0xfb9f19('0x6d')](_0xfb9f19('0x8'));_0x389d61[_0xfb9f19('0x16')]&&_0x389d61[_0xfb9f19('0x16')][_0xfb9f19('0xc9')](function(_0x4e0d02){const _0x29d0cb=_0xfb9f19;_0x2f3869[_0x29d0cb('0x16')]('c.'+_0x4e0d02[0x0],_0x4e0d02[0x1]===_0x29d0cb('0xc8')?![]:!![]);}),!_['isEmpty'](_0x225273)&&(_0x2f3869[_0xfb9f19('0xc2')](_0x2c3f54),_0x51a3de['where'](_0xfb9f19('0x31'),_0x225273)),Promise[_0xfb9f19('0x2a')]()[_0xfb9f19('0x6e')](function(){const _0x41cf22=_0xfb9f19;if(_0x7c7d29&&!_[_0x41cf22('0xbb')](_0x7c7d29[_0x41cf22('0x5a')],['field','User']))return _0x176d64[_0x41cf22('0x8c')]['getLists']({'attributes':['id'],'raw':!![]})[_0x41cf22('0x6e')](function(_0x37f8df){const _0x33f6f8=_0x41cf22;_[_0x33f6f8('0x76')](_0x37f8df)?(_0x51a3de[_0x33f6f8('0x7e')](_0x33f6f8('0x1d')),_0x2f3869['where'](_0x33f6f8('0x1d'))):(_0x51a3de['where'](_0x33f6f8('0x95'),_['map'](_0x37f8df,'id')),_0x2f3869[_0x33f6f8('0x7e')](_0x33f6f8('0x95'),_[_0x33f6f8('0xc0')](_0x37f8df,'id')));});else return;})[_0xfb9f19('0x6e')](function(){const _0x4e4221=_0xfb9f19;db[_0x4e4221('0x38')][_0x4e4221('0xa5')](_0x51a3de[_0x4e4221('0x4f')](),_0xe382e)[_0x4e4221('0x6e')](function(_0x4a3e50){const _0x8e511b=_0x4e4221;_0x2c4a32[_0x8e511b('0xca')]=_0x4a3e50['length'];if(_0x2c4a32[_0x8e511b('0xca')]===0x0)return[];return db[_0x8e511b('0x38')][_0x8e511b('0xa5')](_0x39319b[_0x8e511b('0x4f')](),_0xe382e);})[_0x4e4221('0x6e')](function(_0x550e86){const _0x4c5767=_0x4e4221;_0x1897a6=_[_0x4c5767('0x8d')](_0x550e86,'id'),_0xe382e=_[_0x4c5767('0xd7')](_0xe382e,{'model':db[_0x4c5767('0x73')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x176d64[_0x4c5767('0xa5')][_0x4c5767('0xb6')]?_0x389d61[_0x4c5767('0xbc')][_0x4c5767('0xc9')](function(_0x4acde5){const _0x432d68=_0x4c5767;_0x2f3869[_0x432d68('0x6d')]('c.'+_0x4acde5);}):(_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x8')),_0x2f3869['field']('c.firstName'),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x3b')),_0x2f3869[_0x4c5767('0x6d')]('c.phone'),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x5b')),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x19')),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0xd')),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x45')),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x30')),_0x2f3869[_0x4c5767('0x6d')](_0x4c5767('0x17'),'TagIds'));if(_0x389d61[_0x4c5767('0x3f')])_0x2f3869[_0x4c5767('0x3f')](_0x389d61[_0x4c5767('0x3f')]);if(_0x389d61[_0x4c5767('0x7a')])_0x2f3869['offset'](_0x389d61['offset']);return db[_0x4c5767('0x38')][_0x4c5767('0xa5')](_0x2f3869['toString'](),_0xe382e);})[_0x4e4221('0x6e')](function(_0x2b44ee){const _0x34c294=_0x4e4221;return _0x2b44ee[_0x34c294('0xc9')](function(_0x599a30){const _0x483be4=_0x34c294;_0x599a30[_0x483be4('0xd9')]&&(_0x599a30[_0x483be4('0x7')]=[],_0x599a30['TagIds'][_0x483be4('0x20')](',')[_0x483be4('0xc9')](function(_0x3b22de){const _0x587736=_0x483be4;_0x599a30[_0x587736('0x7')][_0x587736('0x4')](_0x1897a6[_0x3b22de]);})),delete _0x599a30[_0x483be4('0xd9')];}),_0x2c4a32[_0x34c294('0xc4')]=_0x2b44ee,_0x2c4a32;})[_0x4e4221('0x6e')](respondWithFilteredResult(_0x43436e,_0x389d61));});})[_0x24db29('0xd5')](handleError(_0x43436e,null));},exports[_0x23e729('0xac')]=function(_0x395c9b,_0x32a3f2){const _0x264939=_0x23e729;return db[_0x264939('0x73')][_0x264939('0x1b')]({'where':{'id':_0x395c9b['params']['id']}})[_0x264939('0x6e')](handleEntityNotFound(_0x32a3f2,null))[_0x264939('0x6e')](removeEntity(_0x32a3f2,null))[_0x264939('0xd5')](handleError(_0x32a3f2,null));},exports[_0x23e729('0x5c')]=function(_0x58f090,_0x1768ca){const _0x32e0b3=_0x23e729;return db[_0x32e0b3('0x73')][_0x32e0b3('0x5c')]()[_0x32e0b3('0x6e')](function(_0x1b9819){const _0x16a4bf=_0x32e0b3;delete _0x1b9819[_0x16a4bf('0xc6')];for(let _0x598f1b=0x0;_0x598f1b=_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{}\s\\|]/g,'-'),_0x40c6e9(null,util[_0x4c70b7('0x1')](_0x4c70b7('0x1e'),path['basename'](_0x1a0693['originalname'],path[_0x4c70b7('0x4')](_0x1a0693[_0x4c70b7('0xb')])),Date[_0x4c70b7('0x9')](),path[_0x4c70b7('0x4')](_0x1a0693[_0x4c70b7('0xb')])));}})});router[_0x489979('0x1b')]('/',auth[_0x489979('0x2d')](),controller[_0x489979('0x1f')]),router[_0x489979('0x1b')](_0x489979('0xe'),auth[_0x489979('0x2d')](),controller['describe']),router[_0x489979('0x1b')]('/:id',auth[_0x489979('0x2d')](),controller[_0x489979('0x12')]),router['get'](_0x489979('0x21'),auth[_0x489979('0x2d')](),controller[_0x489979('0x23')]),router[_0x489979('0x1b')]('/:id/hoppers',auth[_0x489979('0x2d')](),controller[_0x489979('0x10')]),router[_0x489979('0x1b')]('/:id/hopper_histories',auth[_0x489979('0x2d')](),controller[_0x489979('0x16')]),router[_0x489979('0x1b')](_0x489979('0x1a'),auth[_0x489979('0x2d')](),controller[_0x489979('0x3')]),router[_0x489979('0x1b')](_0x489979('0x29'),auth[_0x489979('0x2d')](),controller[_0x489979('0x1d')]),router[_0x489979('0x2c')](_0x489979('0x11'),auth[_0x489979('0x2d')](),controller[_0x489979('0x13')]),router['post']('/',auth[_0x489979('0x2d')](),controller['create']),router[_0x489979('0x2c')](_0x489979('0x25'),auth[_0x489979('0x2d')](),controller[_0x489979('0x18')]),router[_0x489979('0x2c')](_0x489979('0x21'),auth['isAuthenticated'](),controller['setTags']),router['post'](_0x489979('0x6'),upload[_0x489979('0x7')](_0x489979('0x22')),controller['uploadCsv']),router[_0x489979('0x2c')](_0x489979('0x17'),upload[_0x489979('0x7')](_0x489979('0x22')),controller[_0x489979('0x26')]),router[_0x489979('0x2c')](_0x489979('0xa'),auth[_0x489979('0x2d')](),controller['import']),router[_0x489979('0x24')](_0x489979('0x8'),auth[_0x489979('0x2d')](),controller['update']),router[_0x489979('0x5')](_0x489979('0x8'),auth[_0x489979('0x2d')](),controller[_0x489979('0x20')]),module[_0x489979('0x27')]=router; \ No newline at end of file +const a131_0xe437=['file','/upload/:id','basename','getHoppers','util','originalname','getTags','extname','/:id','/:id/jscripty_sessions','create','diskStorage','get','merge','/:id/tags','destroy','show','express','Router','/upload','put','getHopperFinals','/describe','upload','delete','single','update','join','/merge','/create_many','post','/:id/hopper_finals','import','format','now','setTags','files/tmp','path','%s-%s%s','/csv','isAuthenticated','getJscriptySessions','root','describe','multer','../../components/auth/service','/:id/hopper_histories'];(function(_0x185315,_0xe4379){const _0x7f6c23=function(_0x21f910){while(--_0x21f910){_0x185315['push'](_0x185315['shift']());}};_0x7f6c23(++_0xe4379);}(a131_0xe437,0x19b));const a131_0x7f6c=function(_0x185315,_0xe4379){_0x185315=_0x185315-0x0;let _0x7f6c23=a131_0xe437[_0x185315];return _0x7f6c23;};const _0x3ac972=a131_0x7f6c;'use strict';const multer=require(_0x3ac972('0x9')),util=require(_0x3ac972('0x10')),path=require(_0x3ac972('0x2')),express=require(_0x3ac972('0x1d')),router=express[_0x3ac972('0x1e')](),auth=require(_0x3ac972('0xa')),config=require('../../config/environment'),controller=require('./cmContact.controller'),upload=multer({'storage':multer[_0x3ac972('0x17')]({'destination':function(_0x21f910,_0x45c5e9,_0xf54122){const _0x14d2ed=_0x3ac972;_0xf54122(null,path[_0x14d2ed('0x27')](config[_0x14d2ed('0x7')],_0x14d2ed('0x1')));},'filename':function(_0x1f890d,_0x412fac,_0x1af1aa){const _0x3e0039=_0x3ac972;_0x412fac[_0x3e0039('0x11')]=_0x412fac[_0x3e0039('0x11')]['replace'](/[+@&-/\\#,+()$~%'":*?<>{}\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 diff --git a/server/api/cmCustomField/cmCustomField.attributes.js b/server/api/cmCustomField/cmCustomField.attributes.js index ab02400..1c71895 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a132_0x3418=['BOOLEAN','sequelize','name','stringify','values','long','select','getDataValue','alias','setDataValue','parse','STRING','TEXT','exports','VIRTUAL'];(function(_0x20505e,_0x3418eb){const _0x46a8b9=function(_0x9847ab){while(--_0x9847ab){_0x20505e['push'](_0x20505e['shift']());}};_0x46a8b9(++_0x3418eb);}(a132_0x3418,0x102));const a132_0x46a8=function(_0x20505e,_0x3418eb){_0x20505e=_0x20505e-0x0;let _0x46a8b9=a132_0x3418[_0x20505e];return _0x46a8b9;};const _0x3921eb=a132_0x46a8;'use strict';const Sequelize=require(_0x3921eb('0xd'));module[_0x3921eb('0xa')]={'name':{'type':Sequelize[_0x3921eb('0xb')],'get':function(){const _0x5bc5d8=_0x3921eb;return this['getDataValue'](_0x5bc5d8('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x9847ab){const _0x478740=_0x3921eb;this[_0x478740('0x6')](_0x478740('0x5'),_0x9847ab?_0x9847ab:this[_0x478740('0x4')](_0x478740('0xe')));}},'type':{'type':Sequelize[_0x3921eb('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x3921eb('0x9')](_0x3921eb('0x2')),'get':function(){const _0x33dc45=_0x3921eb;return this[_0x33dc45('0x4')]('type')===_0x33dc45('0x3')?JSON[_0x33dc45('0x7')](this[_0x33dc45('0x4')]('values')):this['getDataValue'](_0x33dc45('0x1'));},'set':function(_0xa06b05){const _0x117ae0=_0x3921eb;Array['isArray'](_0xa06b05)?this[_0x117ae0('0x6')]('values',JSON[_0x117ae0('0x0')](_0xa06b05)):this[_0x117ae0('0x6')](_0x117ae0('0x1'),_0xa06b05);}},'required':{'type':Sequelize[_0x3921eb('0xc')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x3921eb('0xc')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM']('voice')}}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index c9ff525..5febac6 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a133_0x1ad4=['TEXT','findAll','limit','rawAttributes','pick','like','util','options','Sequelize','include','error','catch','INTEGER','count','json','sort','queryInterface','type','cm_contacts','fields','query','../../config/logger','defaultValue','cf_%d','offset','Content-Range','switch','index','addColumn','fieldName','set','order','stack','name','params','key','sendStatus','VIRTUAL','BOOLEAN','update','show','keys','model','attributes','status','create','map','differenceBy','../../mysqldb','lodash','api','nolimit','where','../../components/parsers/qs','CmCustomField','format','text','body','length','includeAll','destroy','findOne','filters','transaction','filter','merge','sequelize','then'];(function(_0x56e300,_0x1ad421){const _0x3f86c5=function(_0x278b55){while(--_0x278b55){_0x56e300['push'](_0x56e300['shift']());}};_0x3f86c5(++_0x1ad421);}(a133_0x1ad4,0xda));const a133_0x3f86=function(_0x56e300,_0x1ad421){_0x56e300=_0x56e300-0x0;let _0x3f86c5=a133_0x1ad4[_0x56e300];return _0x3f86c5;};const _0x4a7e57=a133_0x3f86;'use strict';const util=require(_0x4a7e57('0x3c')),_=require(_0x4a7e57('0x23')),qs=require(_0x4a7e57('0x27')),logger=require(_0x4a7e57('0x7'))(_0x4a7e57('0x24')),db=require(_0x4a7e57('0x22'))['db'],{Op}=require(_0x4a7e57('0x34'));function respondWithResult(_0x278b55,_0xbc5ffa){return _0xbc5ffa=_0xbc5ffa||0xc8,function(_0x3af1e5){if(_0x3af1e5)return _0x278b55['status'](_0xbc5ffa)['json'](_0x3af1e5);};}function respondWithFilteredResult(_0x10ae76,_0xad605e){return function(_0x165c7d){const _0xe618ae=a133_0x3f86;if(_0x165c7d){const _0x1e57f9=_0x165c7d[_0xe618ae('0x43')],_0xb3dfc1=_0xad605e[_0xe618ae('0xa')];let _0x218e8c=_0xad605e[_0xe618ae('0xa')]+_0xad605e[_0xe618ae('0x38')],_0x39cc7a;return _0x218e8c>=_0x1e57f9?(_0x218e8c=_0x1e57f9,_0x39cc7a=0xc8):_0x39cc7a=0xce,_0x10ae76['status'](_0x39cc7a),_0x10ae76[_0xe618ae('0x10')](_0xe618ae('0xb'),_0xb3dfc1+'-'+_0x218e8c+'/'+_0x1e57f9)[_0xe618ae('0x0')](_0x165c7d);}return null;};}function saveUpdates(_0x5510d0){return function(_0xa86694){const _0x5545f8=a133_0x3f86;if(_0xa86694)return _0xa86694[_0x5545f8('0x19')](_0x5510d0)[_0x5545f8('0x35')](function(_0x43dd16){return _0x43dd16;});return null;};}function removeEntity(_0x2ea4c4){return function(_0x40ddc2){const _0x40474e=a133_0x3f86;if(_0x40ddc2)return _0x40ddc2[_0x40474e('0x2e')]()['then'](function(){const _0x4a7dd8=_0x40474e;_0x2ea4c4[_0x4a7dd8('0x1e')](0xcc)['end']();});};}function handleEntityNotFound(_0x4f62cd){return function(_0x59d836){const _0x21b2d0=a133_0x3f86;return!_0x59d836&&_0x4f62cd[_0x21b2d0('0x16')](0x194),_0x59d836;};}function handleError(_0x2e84e0,_0x344bc5){return _0x344bc5=_0x344bc5||0x1f4,function(_0x1d14cc){const _0x306ba5=a133_0x3f86;logger[_0x306ba5('0x40')](_0x1d14cc[_0x306ba5('0x12')]),_0x1d14cc[_0x306ba5('0x13')]&&delete _0x1d14cc['name'],_0x2e84e0[_0x306ba5('0x1e')](_0x344bc5)['send'](_0x1d14cc);};}exports[_0x4a7e57('0xd')]=function(_0x1c3f87,_0x32cfe3){const _0x8260bc=_0x4a7e57;let _0x437cbe={};const _0x20311b={},_0x42650c={'count':0x0,'rows':[]},_0x4818c5=_[_0x8260bc('0x20')](db[_0x8260bc('0x28')][_0x8260bc('0x39')],function(_0xf4a2af){const _0x756b91=_0x8260bc;return{'name':_0xf4a2af[_0x756b91('0xf')],'type':_0xf4a2af['type'][_0x756b91('0x15')]};});_0x20311b['model']=_[_0x8260bc('0x21')](_[_0x8260bc('0x20')](_0x4818c5,_0x8260bc('0x13')),[_0x8260bc('0x13')]),_0x20311b[_0x8260bc('0x6')]=_['keys'](_0x1c3f87[_0x8260bc('0x6')]),_0x20311b[_0x8260bc('0x30')]=_['intersection'](_0x20311b['model'],_0x20311b[_0x8260bc('0x6')]),_0x437cbe[_0x8260bc('0x1d')]=_['intersection'](_0x20311b[_0x8260bc('0x1c')],qs[_0x8260bc('0x5')](_0x1c3f87[_0x8260bc('0x6')]['fields'])),_0x437cbe[_0x8260bc('0x1d')]=_0x437cbe[_0x8260bc('0x1d')][_0x8260bc('0x2c')]?_0x437cbe[_0x8260bc('0x1d')]:_0x20311b[_0x8260bc('0x1c')];typeof _0x1c3f87[_0x8260bc('0x6')][_0x8260bc('0x25')]==='undefined'&&(_0x437cbe[_0x8260bc('0x38')]=qs['limit'](_0x1c3f87[_0x8260bc('0x6')][_0x8260bc('0x38')]),_0x437cbe[_0x8260bc('0xa')]=qs[_0x8260bc('0xa')](_0x1c3f87[_0x8260bc('0x6')][_0x8260bc('0xa')]));_0x437cbe[_0x8260bc('0x11')]=qs[_0x8260bc('0x1')](_0x1c3f87[_0x8260bc('0x6')][_0x8260bc('0x1')]),_0x437cbe['where']=qs[_0x8260bc('0x30')](_[_0x8260bc('0x3a')](_0x1c3f87[_0x8260bc('0x6')],_0x20311b[_0x8260bc('0x30')]),_0x4818c5);_0x1c3f87[_0x8260bc('0x6')][_0x8260bc('0x32')]&&(_0x437cbe['where']=_[_0x8260bc('0x33')](_0x437cbe[_0x8260bc('0x26')],{[Op['or']]:_[_0x8260bc('0x20')](_0x4818c5,function(_0x2da9cc){const _0x5830b8=_0x8260bc;if(_0x2da9cc['type']!==_0x5830b8('0x17')){const _0x35290c={};return _0x35290c[_0x2da9cc['name']]={[Op[_0x5830b8('0x3b')]]:'%'+_0x1c3f87[_0x5830b8('0x6')][_0x5830b8('0x32')]+'%'},_0x35290c;}})}));_0x437cbe=_[_0x8260bc('0x33')]({},_0x437cbe,_0x1c3f87['options']);const _0x27b87a={'where':_0x437cbe[_0x8260bc('0x26')]};return db['CmCustomField'][_0x8260bc('0x43')](_0x27b87a)[_0x8260bc('0x35')](function(_0x3befcb){const _0x3ff6da=_0x8260bc;return _0x42650c[_0x3ff6da('0x43')]=_0x3befcb,_0x1c3f87['query'][_0x3ff6da('0x2d')]&&(_0x437cbe[_0x3ff6da('0x3f')]=[{'all':!![]}]),db['CmCustomField'][_0x3ff6da('0x37')](_0x437cbe);})[_0x8260bc('0x35')](function(_0x297656){return _0x42650c['rows']=_0x297656,_0x42650c;})[_0x8260bc('0x35')](respondWithFilteredResult(_0x32cfe3,_0x437cbe))[_0x8260bc('0x41')](handleError(_0x32cfe3,null));},exports[_0x4a7e57('0x1a')]=function(_0x52afa7,_0x17101f){const _0x435544=_0x4a7e57;let _0x486440={'raw':!![],'where':{'id':_0x52afa7[_0x435544('0x14')]['id']}};const _0x364119={};return _0x364119[_0x435544('0x1c')]=_[_0x435544('0x1b')](db[_0x435544('0x28')][_0x435544('0x39')]),_0x364119['query']=_[_0x435544('0x1b')](_0x52afa7[_0x435544('0x6')]),_0x364119['filters']=_['intersection'](_0x364119[_0x435544('0x1c')],_0x364119['query']),_0x486440[_0x435544('0x1d')]=_['intersection'](_0x364119[_0x435544('0x1c')],qs[_0x435544('0x5')](_0x52afa7['query']['fields'])),_0x486440[_0x435544('0x1d')]=_0x486440[_0x435544('0x1d')][_0x435544('0x2c')]?_0x486440[_0x435544('0x1d')]:_0x364119[_0x435544('0x1c')],_0x52afa7[_0x435544('0x6')][_0x435544('0x2d')]&&(_0x486440[_0x435544('0x3f')]=[{'all':!![]}]),_0x486440=_['merge']({},_0x486440,_0x52afa7[_0x435544('0x3d')]),db[_0x435544('0x28')][_0x435544('0x2f')](_0x486440)['then'](handleEntityNotFound(_0x17101f,null))['then'](respondWithResult(_0x17101f,null))[_0x435544('0x41')](handleError(_0x17101f,null));},exports['update']=function(_0x549fa9,_0x37c38e){const _0x126639=_0x4a7e57;return _0x549fa9[_0x126639('0x2b')]['id']&&delete _0x549fa9[_0x126639('0x2b')]['id'],db[_0x126639('0x28')][_0x126639('0x2f')]({'where':{'id':_0x549fa9['params']['id']}})[_0x126639('0x35')](handleEntityNotFound(_0x37c38e,null))[_0x126639('0x35')](saveUpdates(_0x549fa9[_0x126639('0x2b')],null))[_0x126639('0x35')](respondWithResult(_0x37c38e,null))[_0x126639('0x41')](handleError(_0x37c38e,null));},exports[_0x4a7e57('0x2e')]=function(_0x40f17d,_0x131cca){const _0x98ff75=_0x4a7e57;return db[_0x98ff75('0x28')]['findOne']({'where':{'id':_0x40f17d[_0x98ff75('0x14')]['id']}})[_0x98ff75('0x35')](handleEntityNotFound(_0x131cca,null))[_0x98ff75('0x35')](removeEntity(_0x131cca,null))['catch'](handleError(_0x131cca,null));},exports[_0x4a7e57('0x1f')]=function(_0x2fb8fa,_0x4031d6){const _0x929afa=_0x4a7e57;let _0x57bfc2;return db[_0x929afa('0x34')][_0x929afa('0x31')](function(_0x49f273){const _0x2c54b7=_0x929afa;return db['CmCustomField'][_0x2c54b7('0x1f')](_0x2fb8fa['body'],{'transaction':_0x49f273})[_0x2c54b7('0x35')](function(_0x5c8ec0){const _0x22b987=_0x2c54b7;_0x57bfc2=_0x5c8ec0;const _0x3c46c9={'type':db[_0x22b987('0x3e')][_0x22b987('0x36')],'transaction':_0x49f273};switch(_0x2fb8fa[_0x22b987('0x2b')]['type']){case _0x22b987('0x2a'):_0x3c46c9['type']=db[_0x22b987('0x3e')]['TEXT'];break;case'number':_0x3c46c9[_0x22b987('0x3')]=db['Sequelize'][_0x22b987('0x42')];break;case _0x22b987('0xc'):_0x3c46c9[_0x22b987('0x3')]=db[_0x22b987('0x3e')][_0x22b987('0x18')],_0x3c46c9[_0x22b987('0x8')]=![];break;default:}return db[_0x22b987('0x34')][_0x22b987('0x2')][_0x22b987('0xe')](_0x22b987('0x4'),util[_0x22b987('0x29')](_0x22b987('0x9'),_0x57bfc2['id']),_0x3c46c9);})[_0x2c54b7('0x35')](function(){return _0x57bfc2;});})[_0x929afa('0x35')](respondWithResult(_0x4031d6,0xc9))[_0x929afa('0x41')](handleError(_0x4031d6,null));}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index 51ba94a..f9ad277 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a134_0x3bb2=['CmCustomField','./cmCustomField.attributes','define','exports'];(function(_0x26eecd,_0x3bb2e7){const _0x1f75e0=function(_0x3c7f57){while(--_0x3c7f57){_0x26eecd['push'](_0x26eecd['shift']());}};_0x1f75e0(++_0x3bb2e7);}(a134_0x3bb2,0xb5));const a134_0x1f75=function(_0x26eecd,_0x3bb2e7){_0x26eecd=_0x26eecd-0x0;let _0x1f75e0=a134_0x3bb2[_0x26eecd];return _0x1f75e0;};const _0x1aee2c=a134_0x1f75;'use strict';const attributes=require(_0x1aee2c('0x0'));module[_0x1aee2c('0x2')]=function(_0x3c7f57){const _0x555d51=_0x1aee2c,_0x429ba1=_0x3c7f57[_0x555d51('0x1')](_0x555d51('0x3'),attributes,{'tableName':'cm_custom_fields','paranoid':!![],'indexes':[],'timestamps':!![]});return _0x429ba1;}; \ No newline at end of file +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 diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index 31d6f39..d742cec 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a135_0x5146=['create','index','put','delete','isAuthenticated','/:id','./cmCustomField.controller','post','express','exports','update','get','destroy'];(function(_0x480792,_0x5146ec){const _0x47f9a0=function(_0x214efc){while(--_0x214efc){_0x480792['push'](_0x480792['shift']());}};_0x47f9a0(++_0x5146ec);}(a135_0x5146,0xf5));const a135_0x47f9=function(_0x480792,_0x5146ec){_0x480792=_0x480792-0x0;let _0x47f9a0=a135_0x5146[_0x480792];return _0x47f9a0;};const _0x15cf9f=a135_0x47f9;'use strict';const express=require(_0x15cf9f('0xa')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x15cf9f('0x8'));router['get']('/',auth[_0x15cf9f('0x6')](),controller[_0x15cf9f('0x3')]),router[_0x15cf9f('0x0')](_0x15cf9f('0x7'),auth['isAuthenticated'](),controller['show']),router[_0x15cf9f('0x9')]('/',auth['isAuthenticated'](),controller[_0x15cf9f('0x2')]),router[_0x15cf9f('0x4')](_0x15cf9f('0x7'),auth[_0x15cf9f('0x6')](),controller[_0x15cf9f('0xc')]),router[_0x15cf9f('0x5')](_0x15cf9f('0x7'),auth[_0x15cf9f('0x6')](),controller[_0x15cf9f('0x1')]),module[_0x15cf9f('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index dce6ce6..d9e4a1d 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a136_0x240c=['BOOLEAN','INTEGER','moment','YYYY-MM-DD\x20HH:mm:ss','contactListQueue','format','UNSIGNED','sequelize','STRING'];(function(_0x478560,_0x240ca1){const _0x3b2767=function(_0x3193e9){while(--_0x3193e9){_0x478560['push'](_0x478560['shift']());}};_0x3b2767(++_0x240ca1);}(a136_0x240c,0x11f));const a136_0x3b27=function(_0x478560,_0x240ca1){_0x478560=_0x478560-0x0;let _0x3b2767=a136_0x240c[_0x478560];return _0x3b2767;};const _0x4900f7=a136_0x3b27;'use strict';const moment=require(_0x4900f7('0x3')),Sequelize=require(_0x4900f7('0x8'));module['exports']={'phone':{'type':Sequelize[_0x4900f7('0x0')],'allowNull':![]},'active':{'type':Sequelize[_0x4900f7('0x1')],'defaultValue':![]},'scheduledat':{'type':Sequelize['DATE'],'defaultValue':moment()[_0x4900f7('0x6')](_0x4900f7('0x4'))},'countbusyretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'callback':{'type':Sequelize[_0x4900f7('0x1')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x4900f7('0x0')],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'priority':{'type':Sequelize[_0x4900f7('0x2')](0x2)[_0x4900f7('0x7')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x4900f7('0x1')],'defaultValue':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':_0x4900f7('0x5')},'ListId':{'type':Sequelize[_0x4900f7('0x2')],'unique':_0x4900f7('0x5')},'UserId':{'type':Sequelize['INTEGER']},'VoiceQueueId':{'type':Sequelize[_0x4900f7('0x2')],'unique':'contactListQueue'},'CampaignId':{'type':Sequelize[_0x4900f7('0x2')]},'countnosuchnumberretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x4900f7('0x2')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.controller.js b/server/api/cmHopper/cmHopper.controller.js index 7588aef..1e2363f 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a137_0x5599=['nolimit','../../config/logger','describe','lte','length','isEmpty','create','$contained','VoiceQueueId','membername','$and','$or','count','json','queue','merge','CmHopper,\x20%s,\x20%s,\x20%s','UserId','where','format','VIRTUAL','status','hopperIds','deleted','$notBetween','$in','params','send','COALESCE(CmHopper.UserId,\x200)\x20DESC','fields','finally','CmContac','$gte','ASC','concat','user','$ne','LOCK','campaigntype','pick','sequelize','intersection','omit','findOne','getVoiceQueues','model','limit','$lte','rows','YYYY-MM-DD\x20HH:mm:ss','outbound','show','firstName','prev','then','$notILike','order','catch','isNil','sort','calleridnum','CmList','offset','attributes','index','$overlap','Campaign','VoiceQueue','Content-Range','keys','$lt','CmCompany','Queue','DESC','getOpenContacts','map','dialActive','statedesc','Company','lastName','$not','preview','$iLike','filters','$between','like','$gt','calleridname','updatedAt','ContactId','body','filter','scheduledAt','priority','name','UPDATE','$like','CmContact','options','scheduledat','moment','include','direction','CmHopperFinal','CampaignId','isNumber','end','type','update','sendStatus','undefined','rawAttributes','Contact','campaign','$any','CmHopper','fieldName','../../components/parsers/qs','query'];(function(_0x2999b2,_0x559969){const _0x3ad610=function(_0x473d21){while(--_0x473d21){_0x2999b2['push'](_0x2999b2['shift']());}};_0x3ad610(++_0x559969);}(a137_0x5599,0xa7));const a137_0x3ad6=function(_0x2999b2,_0x559969){_0x2999b2=_0x2999b2-0x0;let _0x3ad610=a137_0x5599[_0x2999b2];return _0x3ad610;};const _0x16a616=a137_0x3ad6;'use strict';const moment=require(_0x16a616('0x34')),_=require('lodash'),qs=require(_0x16a616('0x45')),logger=require(_0x16a616('0x48'))('api'),db=require('../../mysqldb')['db'],{Op,literal}=require(_0x16a616('0x6f'));function respondWithResult(_0x473d21,_0x15e010){return _0x15e010=_0x15e010||0xc8,function(_0x1a3051){const _0xce3987=a137_0x3ad6;if(_0x1a3051)return _0x473d21[_0xce3987('0x5c')](_0x15e010)[_0xce3987('0x54')](_0x1a3051);};}function respondWithFilteredResult(_0x291b30,_0x39d6db){return function(_0x52d5f1){const _0x4a98ad=a137_0x3ad6;if(_0x52d5f1){const _0x199acf=_0x52d5f1[_0x4a98ad('0x53')],_0x385171=_0x39d6db[_0x4a98ad('0xe')];let _0x284d6a=_0x39d6db['offset']+_0x39d6db[_0x4a98ad('0x75')],_0x8dabdc;return _0x284d6a>=_0x199acf?(_0x284d6a=_0x199acf,_0x8dabdc=0xc8):_0x8dabdc=0xce,_0x291b30[_0x4a98ad('0x5c')](_0x8dabdc),_0x291b30['set'](_0x4a98ad('0x14'),_0x385171+'-'+_0x284d6a+'/'+_0x199acf)[_0x4a98ad('0x54')](_0x52d5f1);}return null;};}function saveUpdates(_0x3e10b1){return function(_0x41692a){const _0x46739f=a137_0x3ad6;if(_0x41692a)return _0x41692a[_0x46739f('0x3c')](_0x3e10b1)[_0x46739f('0x6')](function(_0x17caba){return _0x17caba;});return null;};}function handleEntityNotFound(_0x3b96dc){return function(_0x180b08){const _0x86f611=a137_0x3ad6;return!_0x180b08&&_0x3b96dc[_0x86f611('0x3d')](0x194),_0x180b08;};}function handleError(_0x309e39,_0x471d59){return _0x471d59=_0x471d59||0x1f4,function(_0x13f17b){const _0x4faa3c=a137_0x3ad6;logger['error'](_0x13f17b['stack']),_0x13f17b['name']&&delete _0x13f17b[_0x4faa3c('0x2e')],_0x309e39[_0x4faa3c('0x5c')](_0x471d59)[_0x4faa3c('0x62')](_0x13f17b);};}exports[_0x16a616('0x10')]=function(_0x53d0b3,_0x2e2c9b){const _0x459c2a=_0x16a616;let _0x21d1c3={};const _0x33fca1={},_0x3a3503={'count':0x0,'rows':[]},_0x5ca55f=_[_0x459c2a('0x1b')](db[_0x459c2a('0x43')][_0x459c2a('0x3f')],function(_0x13c871){const _0x2ce76e=_0x459c2a;return{'name':_0x13c871[_0x2ce76e('0x44')],'type':_0x13c871[_0x2ce76e('0x3b')]['key']};});_0x33fca1[_0x459c2a('0x74')]=_[_0x459c2a('0x1b')](_0x5ca55f,_0x459c2a('0x2e')),_0x33fca1['query']=_[_0x459c2a('0x15')](_0x53d0b3['query']),_0x33fca1['filters']=_[_0x459c2a('0x70')](_0x33fca1[_0x459c2a('0x74')],_0x33fca1['query']),_0x33fca1[_0x459c2a('0x23')]=_[_0x459c2a('0x69')](_0x33fca1[_0x459c2a('0x23')],[_0x459c2a('0x51'),_0x459c2a('0x52'),_0x459c2a('0x26'),_0x459c2a('0x67'),_0x459c2a('0x16'),_0x459c2a('0x76'),_0x459c2a('0x6b'),'$eq',_0x459c2a('0x20'),_0x459c2a('0x24'),_0x459c2a('0x5f'),_0x459c2a('0x60'),'$notIn','$like','$notLike',_0x459c2a('0x22'),_0x459c2a('0x7'),_0x459c2a('0x30'),_0x459c2a('0x11'),'$contains',_0x459c2a('0x4e'),_0x459c2a('0x42')]),_0x21d1c3[_0x459c2a('0xf')]=_['intersection'](_0x33fca1[_0x459c2a('0x74')],qs[_0x459c2a('0x64')](_0x53d0b3[_0x459c2a('0x46')][_0x459c2a('0x64')])),_0x21d1c3[_0x459c2a('0xf')]=_0x21d1c3[_0x459c2a('0xf')][_0x459c2a('0x4b')]?_0x21d1c3[_0x459c2a('0xf')]:_0x33fca1[_0x459c2a('0x74')];typeof _0x53d0b3[_0x459c2a('0x46')][_0x459c2a('0x47')]===_0x459c2a('0x3e')&&(_0x21d1c3[_0x459c2a('0x75')]=qs[_0x459c2a('0x75')](_0x53d0b3[_0x459c2a('0x46')][_0x459c2a('0x75')]),_0x21d1c3[_0x459c2a('0xe')]=qs[_0x459c2a('0xe')](_0x53d0b3[_0x459c2a('0x46')][_0x459c2a('0xe')]));_0x21d1c3[_0x459c2a('0x8')]=qs['sort'](_0x53d0b3[_0x459c2a('0x46')][_0x459c2a('0xb')]),_0x21d1c3[_0x459c2a('0x59')]=qs[_0x459c2a('0x23')](_[_0x459c2a('0x6e')](_0x53d0b3['query'],_0x33fca1['filters']),_0x5ca55f);_0x53d0b3['query'][_0x459c2a('0x2b')]&&(_0x21d1c3[_0x459c2a('0x59')]=_[_0x459c2a('0x56')](_0x21d1c3[_0x459c2a('0x59')],{[Op['or']]:_[_0x459c2a('0x1b')](_0x5ca55f,function(_0x50125f){const _0x4ac863=_0x459c2a;if(_0x50125f[_0x4ac863('0x3b')]!==_0x4ac863('0x5b')){const _0xa3b912={};return _0xa3b912[_0x50125f[_0x4ac863('0x2e')]]={[Op[_0x4ac863('0x25')]]:'%'+_0x53d0b3[_0x4ac863('0x46')][_0x4ac863('0x2b')]+'%'},_0xa3b912;}})}));_0x21d1c3=_[_0x459c2a('0x56')]({},_0x21d1c3,_0x53d0b3['options']);const _0x329d88={'where':_0x21d1c3['where']};return db[_0x459c2a('0x43')][_0x459c2a('0x53')](_0x329d88)[_0x459c2a('0x6')](function(_0x28af47){const _0x573402=_0x459c2a;return _0x3a3503[_0x573402('0x53')]=_0x28af47,_0x53d0b3['query']['includeAll']&&(_0x21d1c3['include']=[{'all':!![]}]),db[_0x573402('0x43')]['findAll'](_0x21d1c3);})['then'](function(_0x425753){const _0x5efc3=_0x459c2a;return _0x3a3503[_0x5efc3('0x0')]=_0x425753,_0x3a3503;})['then'](respondWithFilteredResult(_0x2e2c9b,_0x21d1c3))[_0x459c2a('0x9')](handleError(_0x2e2c9b,null));},exports[_0x16a616('0x3')]=function(_0x164c9c,_0x9959d){const _0x1f933e=_0x16a616;let _0x173dfe={'raw':!![],'where':{'id':_0x164c9c[_0x1f933e('0x61')]['id']}};const _0x295d2f={};return _0x295d2f[_0x1f933e('0x74')]=_[_0x1f933e('0x15')](db['CmHopper'][_0x1f933e('0x3f')]),_0x295d2f[_0x1f933e('0x46')]=_[_0x1f933e('0x15')](_0x164c9c[_0x1f933e('0x46')]),_0x295d2f[_0x1f933e('0x23')]=_[_0x1f933e('0x70')](_0x295d2f[_0x1f933e('0x74')],_0x295d2f[_0x1f933e('0x46')]),_0x173dfe[_0x1f933e('0xf')]=_['intersection'](_0x295d2f[_0x1f933e('0x74')],qs['fields'](_0x164c9c['query'][_0x1f933e('0x64')])),_0x173dfe[_0x1f933e('0xf')]=_0x173dfe[_0x1f933e('0xf')][_0x1f933e('0x4b')]?_0x173dfe[_0x1f933e('0xf')]:_0x295d2f[_0x1f933e('0x74')],_0x164c9c['query']['includeAll']&&(_0x173dfe[_0x1f933e('0x35')]=[{'all':!![]}]),_0x173dfe=_[_0x1f933e('0x56')]({},_0x173dfe,_0x164c9c[_0x1f933e('0x32')]),db[_0x1f933e('0x43')][_0x1f933e('0x72')](_0x173dfe)[_0x1f933e('0x6')](handleEntityNotFound(_0x9959d,null))[_0x1f933e('0x6')](respondWithResult(_0x9959d,null))[_0x1f933e('0x9')](handleError(_0x9959d,null));},exports['create']=function(_0x55578a,_0x589c29){const _0x34342c=_0x16a616;return db[_0x34342c('0x43')][_0x34342c('0x4d')](_0x55578a[_0x34342c('0x2a')],{})[_0x34342c('0x6')](respondWithResult(_0x589c29,0xc9))['catch'](handleError(_0x589c29,null));},exports[_0x16a616('0x3c')]=function(_0x54efca,_0x3a230d){const _0x3576e5=_0x16a616;return _0x54efca[_0x3576e5('0x2a')]['id']&&delete _0x54efca[_0x3576e5('0x2a')]['id'],db[_0x3576e5('0x43')][_0x3576e5('0x72')]({'where':{'id':_0x54efca[_0x3576e5('0x61')]['id']}})[_0x3576e5('0x6')](handleEntityNotFound(_0x3a230d,null))[_0x3576e5('0x6')](saveUpdates(_0x54efca[_0x3576e5('0x2a')],null))['then'](respondWithResult(_0x3a230d,null))[_0x3576e5('0x9')](handleError(_0x3a230d,null));},exports['describe']=function(_0x4c98f9,_0x32251c){const _0x861ef3=_0x16a616;return db[_0x861ef3('0x43')][_0x861ef3('0x49')]()['then'](respondWithResult(_0x32251c,null))[_0x861ef3('0x9')](handleError(_0x32251c,null));},exports['destroy']=function(_0x15bde9,_0x58a8c3){const _0x4146ff=_0x16a616;let _0x37d8ee;return db[_0x4146ff('0x43')]['findOne']({'where':{'id':_0x15bde9[_0x4146ff('0x61')]['id']}})[_0x4146ff('0x6')](handleEntityNotFound(_0x58a8c3,null))[_0x4146ff('0x6')](function(_0x15543f){const _0x1c723d=_0x4146ff;if(_0x15543f)return _0x15543f['destroy']()[_0x1c723d('0x6')](function(_0x3d6ee6){return _0x3d6ee6;});})[_0x4146ff('0x6')](function(_0x534f89){const _0x31f062=_0x4146ff;_0x37d8ee=_0x534f89;if(_0x534f89){if(_0x534f89['VoiceQueueId']||_0x534f89['CampaignId'])return db[_0x534f89[_0x31f062('0x4f')]?_0x31f062('0x13'):_0x31f062('0x12')][_0x31f062('0x72')]({'where':{'id':_0x534f89[_0x31f062('0x4f')]?_0x534f89[_0x31f062('0x4f')]:_0x534f89[_0x31f062('0x38')]},'attributes':['id','name'],'raw':!![]});}})[_0x4146ff('0x6')](function(_0x1a5fe5){const _0x122f04=_0x4146ff,_0x3d8969={};if(_0x1a5fe5)return _['merge'](_0x3d8969,_[_0x122f04('0x71')](_0x37d8ee['dataValues'],['createdAt',_0x122f04('0x28'),'id'])),_0x3d8969['state']=0x15,_0x3d8969[_0x122f04('0x1d')]='deleted',_0x3d8969[_0x122f04('0x41')]=_0x1a5fe5[_0x122f04('0x2e')],_0x3d8969[_0x122f04('0x50')]=_0x15bde9[_0x122f04('0x6a')][_0x122f04('0x2e')],_0x3d8969[_0x122f04('0x58')]=_0x15bde9[_0x122f04('0x6a')]['id'],_0x3d8969[_0x122f04('0x5e')]=!![],_0x3d8969['deletedat']=moment()[_0x122f04('0x5a')](_0x122f04('0x1')),_0x3d8969[_0x122f04('0xc')]=_0x37d8ee['phone'],_0x3d8969[_0x122f04('0x6d')]=_0x37d8ee['VoiceQueueId']?_0x122f04('0x55'):'ivr',db[_0x122f04('0x66')][_0x122f04('0x72')]({'where':{'id':_0x3d8969[_0x122f04('0x29')]},'attributes':[_0x122f04('0x4'),_0x122f04('0x1f')]})[_0x122f04('0x6')](function(_0x41fd8e){const _0x25d41f=_0x122f04;!_[_0x25d41f('0xa')](_0x58a8c3)&&!_[_0x25d41f('0xa')](_0x41fd8e[_0x25d41f('0x4')])&&(_0x3d8969['calleridname']=_0x41fd8e[_0x25d41f('0x4')],!_['isNil'](_0x41fd8e['lastName'])&&(_0x3d8969[_0x25d41f('0x27')]+='\x20'+_0x41fd8e[_0x25d41f('0x1f')]));})[_0x122f04('0x65')](function(){const _0xefc64f=_0x122f04;return db[_0xefc64f('0x37')]['create'](_0x3d8969);});})[_0x4146ff('0x6')](function(){const _0x138a3b=_0x4146ff;return _0x58a8c3['status'](0xcc)[_0x138a3b('0x3a')]();})[_0x4146ff('0x9')](handleError(_0x58a8c3,null));},exports['getPreview']=function(_0x37d7d8,_0x36533e){const _0x57fb79=_0x16a616;let _0x2c5d04=[];return db['CmContact'][_0x57fb79('0x49')]()['then'](function(_0xe72f71){const _0xbc2022=_0x57fb79;return _0x2c5d04=_[_0xbc2022('0x15')](_0xe72f71),_0x37d7d8[_0xbc2022('0x6a')][_0xbc2022('0x73')]({'where':{'type':_0xbc2022('0x2'),'dialActive':!![],'dialMethod':_0xbc2022('0x21')},'attributes':['id','dialOrderByScheduledAt'],'raw':!![]});})['then'](function(_0x5afddc){const _0x41da87=_0x57fb79;if(_0x5afddc&&_0x5afddc[_0x41da87('0x4b')])return db[_0x41da87('0x6f')]['transaction'](function(_0x418d80){const _0x139529=_0x41da87,_0x181b2f={'active':![],'recallme':![],'scheduledAt':{[Op[_0x139529('0x4a')]]:moment()[_0x139529('0x5a')](_0x139529('0x1'))},'VoiceQueueId':{[Op['in']]:_['map'](_0x5afddc,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x37d7d8['user']['id']}]};let _0x51aa1c=[];return _0x37d7d8['body']['direction']&&_0x37d7d8[_0x139529('0x2a')][_0x139529('0x36')]===_0x139529('0x5')?(!_[_0x139529('0x4c')](_0x37d7d8[_0x139529('0x2a')][_0x139529('0x5d')])&&(_0x181b2f['id']={'$in':_0x37d7d8[_0x139529('0x2a')][_0x139529('0x5d')]}),_0x51aa1c=[[_0x139529('0x2d'),_0x139529('0x68')],['scheduledAt',_0x5afddc[0x0]['dialOrderByScheduledAt']===_0x139529('0x68')?_0x139529('0x19'):_0x139529('0x68')],literal('COALESCE(CmHopper.UserId,\x200)\x20ASC'),['id',_0x139529('0x19')]]):(!_['isEmpty'](_0x37d7d8[_0x139529('0x2a')][_0x139529('0x5d')])&&(_0x181b2f['id']={'$notIn':_0x37d7d8['body'][_0x139529('0x5d')]}),_0x51aa1c=[['priority',_0x139529('0x19')],[_0x139529('0x2c'),_0x5afddc[0x0]['dialOrderByScheduledAt']],literal(_0x139529('0x63')),['id',_0x139529('0x68')]]),db[_0x139529('0x43')]['findOne']({'attributes':['id',_0x139529('0x33')],'where':_0x181b2f,'order':_0x51aa1c,'transaction':_0x418d80,'lock':_0x418d80[_0x139529('0x6c')][_0x139529('0x2f')],'include':[{'model':db[_0x139529('0x31')],'as':_0x139529('0x40'),'attributes':_0x2c5d04,'include':[{'model':db[_0x139529('0x17')],'as':_0x139529('0x1e'),'attributes':['id',_0x139529('0x2e')]}]},{'model':db[_0x139529('0xd')],'as':'List','attributes':['id','name']},{'model':db[_0x139529('0x13')],'as':_0x139529('0x18'),'attributes':['id','name',_0x139529('0x1c')]}]})['then'](function(_0x35c48){const _0x1a7bca=_0x139529;if(_0x35c48)return _0x35c48[_0x1a7bca('0x3c')]({'UserId':_0x37d7d8[_0x1a7bca('0x6a')]['id']},{'transaction':_0x418d80});});});})['then'](handleEntityNotFound(_0x36533e,null))[_0x57fb79('0x6')](respondWithResult(_0x36533e,null))['catch'](handleError(_0x36533e,null));},exports[_0x16a616('0x1a')]=function(_0x107498,_0x7c1936){const _0x507c34=_0x16a616;return _0x107498[_0x507c34('0x6a')][_0x507c34('0x73')]({'where':{'type':'outbound','dialActive':!![],'dialMethod':'preview'},'attributes':['id'],'raw':!![]})['then'](function(_0x24f5a1){const _0x333095=_0x507c34;if(_0x24f5a1&&_0x24f5a1[_0x333095('0x4b')])return db[_0x333095('0x43')][_0x333095('0x53')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x333095('0x4a')]]:moment()[_0x333095('0x5a')](_0x333095('0x1'))},'VoiceQueueId':{[Op['in']]:_[_0x333095('0x1b')](_0x24f5a1,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x107498[_0x333095('0x6a')]['id']}]}});return 0x0;})[_0x507c34('0x6')](function(_0x877127){const _0xcdc403=_0x507c34;if(!_[_0xcdc403('0xa')](_0x877127)&&_[_0xcdc403('0x39')](_0x877127))return _0x7c1936['status'](0xc8)[_0xcdc403('0x54')]({'contacts':_0x877127});else logger['error'](_0xcdc403('0x57'),_0xcdc403('0x1a'),0x194,'entity\x20not\x20found'),_0x7c1936[_0xcdc403('0x3d')](0x194);})['catch'](handleError(_0x7c1936,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index c63de83..fda6685 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a138_0x3747=['phone','scheduledat','./cmHopper.attributes','define','priority','cm_hopper','CmHopper'];(function(_0x162a31,_0x374775){const _0xdb24c1=function(_0x28b9e4){while(--_0x28b9e4){_0x162a31['push'](_0x162a31['shift']());}};_0xdb24c1(++_0x374775);}(a138_0x3747,0x13c));const a138_0xdb24=function(_0x162a31,_0x374775){_0x162a31=_0x162a31-0x0;let _0xdb24c1=a138_0x3747[_0x162a31];return _0xdb24c1;};const _0x460f58=a138_0xdb24;'use strict';const attributes=require(_0x460f58('0x1'));module['exports']=function(_0x28b9e4){const _0x59c01b=_0x460f58,_0x44a198=_0x28b9e4[_0x59c01b('0x2')](_0x59c01b('0x5'),attributes,{'tableName':_0x59c01b('0x4'),'paranoid':![],'indexes':[{'name':_0x59c01b('0x0'),'fields':[_0x59c01b('0x0')]},{'name':'phone','fields':[_0x59c01b('0x6')]},{'name':_0x59c01b('0x3'),'fields':[_0x59c01b('0x3')]}],'timestamps':!![]});return _0x44a198;}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/cmHopper.rpc.js b/server/api/cmHopper/cmHopper.rpc.js index 1ed68e1..8700a35 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a139_0x27fb=['info','contactsRescheduled','describe','map','Contact','length','../../mysqldb','UpdateCmHopper','UPDATE','\x22%s\x22','all','include','name','GetCmHopperPreview','options','where','YYYY-MM-DD\x20HH:mm:ss','stringify','raw','rpc','CreateCmHopper','keys','findAll','model','push','moment','CmHopper','CountReScheduled','GetContactDialer','../../config/logger','catch','ShowCmHopper','includes','MoveContactManagedDialer','CmHopperFinal','UserId','create','CmContact','findOne','User','voicePause','order','attributes','LOCK','DestroyCmHopper','GetContactRecallMe','GetCmHopper','debug','transaction','lodash','then','`scheduledat`\x20>=\x20','message','body','sequelize','format','update','limit','error','destroy'];(function(_0x4e5c62,_0x27fbbe){const _0x57677e=function(_0x4257b0){while(--_0x4257b0){_0x4e5c62['push'](_0x4e5c62['shift']());}};_0x57677e(++_0x27fbbe);}(a139_0x27fb,0x1a7));const a139_0x5767=function(_0x4e5c62,_0x27fbbe){_0x4e5c62=_0x4e5c62-0x0;let _0x57677e=a139_0x27fb[_0x4e5c62];return _0x57677e;};const _0x44edc9=a139_0x5767;'use strict';const _=require(_0x44edc9('0x2e')),util=require('util'),moment=require(_0x44edc9('0x16')),db=require(_0x44edc9('0x3'))['db'],logger=require(_0x44edc9('0x1a'))(_0x44edc9('0x10')),{literal,fn}=require('sequelize');exports[_0x44edc9('0x2b')]=function(_0x4257b0){const _0x515f8c=this;return new Promise(function(_0x10abf6,_0x1c619e){const _0x5353c7=a139_0x5767;return db[_0x5353c7('0x17')][_0x5353c7('0x13')]({'raw':_0x4257b0[_0x5353c7('0xb')]?_0x4257b0[_0x5353c7('0xb')][_0x5353c7('0xf')]===undefined?!![]:![]:!![],'where':_0x4257b0['options']?_0x4257b0[_0x5353c7('0xb')][_0x5353c7('0xc')]||null:null,'attributes':_0x4257b0['options']?_0x4257b0[_0x5353c7('0xb')]['attributes']||null:null,'limit':_0x4257b0[_0x5353c7('0xb')]?_0x4257b0['options'][_0x5353c7('0x36')]||null:null,'include':_0x4257b0[_0x5353c7('0xb')]?_0x4257b0[_0x5353c7('0xb')][_0x5353c7('0x8')]?_[_0x5353c7('0x0')](_0x4257b0[_0x5353c7('0xb')]['include'],function(_0x481f4c){const _0x5173a5=_0x5353c7;return{'model':db[_0x481f4c[_0x5173a5('0x14')]],'as':_0x481f4c['as'],'attributes':_0x481f4c[_0x5173a5('0x27')],'include':_0x481f4c['include']?_[_0x5173a5('0x0')](_0x481f4c['include'],function(_0x4b7549){const _0x553c4e=_0x5173a5;return{'model':db[_0x4b7549[_0x553c4e('0x14')]],'as':_0x4b7549['as'],'attributes':_0x4b7549['attributes'],'include':_0x4b7549[_0x553c4e('0x8')]?_[_0x553c4e('0x0')](_0x4b7549['include'],function(_0x3a6efb){return{'model':db[_0x3a6efb['model']],'as':_0x3a6efb['as'],'attributes':_0x3a6efb['attributes']};}):[]};}):[]};}):[]:[]})[_0x5353c7('0x2f')](function(_0x1c2997){const _0x5854db=_0x5353c7;logger[_0x5854db('0x39')]('GetCmHopper',_0x4257b0),logger[_0x5854db('0x2c')]('GetCmHopper',_0x4257b0,JSON[_0x5854db('0xe')](_0x1c2997)),_0x10abf6(_0x1c2997);})[_0x5353c7('0x1b')](function(_0xc287ed){const _0x1376b7=_0x5353c7;logger[_0x1376b7('0x37')]('GetCmHopper',_0xc287ed[_0x1376b7('0x31')],_0x4257b0),_0x1c619e(_0x515f8c[_0x1376b7('0x37')](0x1f4,_0xc287ed[_0x1376b7('0x31')]));});});},exports[_0x44edc9('0x1c')]=function(_0x2a2586){const _0x5e506b=this;return new Promise(function(_0x160dd5,_0x1c9d18){const _0x48facc=a139_0x5767;return db[_0x48facc('0x17')][_0x48facc('0x23')]({'raw':_0x2a2586[_0x48facc('0xb')]?_0x2a2586[_0x48facc('0xb')][_0x48facc('0xf')]===undefined?!![]:![]:!![],'where':_0x2a2586[_0x48facc('0xb')]?_0x2a2586[_0x48facc('0xb')][_0x48facc('0xc')]||null:null,'attributes':_0x2a2586['options']?_0x2a2586[_0x48facc('0xb')][_0x48facc('0x27')]||null:null,'include':_0x2a2586['options']?_0x2a2586[_0x48facc('0xb')]['include']?_['map'](_0x2a2586[_0x48facc('0xb')][_0x48facc('0x8')],function(_0x469ecb){const _0x7d354b=_0x48facc;return{'model':db[_0x469ecb['model']],'as':_0x469ecb['as'],'attributes':_0x469ecb[_0x7d354b('0x27')],'include':_0x469ecb['include']?_[_0x7d354b('0x0')](_0x469ecb['include'],function(_0x2ee88f){const _0x597291=_0x7d354b;return{'model':db[_0x2ee88f['model']],'as':_0x2ee88f['as'],'attributes':_0x2ee88f[_0x597291('0x27')],'include':_0x2ee88f[_0x597291('0x8')]?_['map'](_0x2ee88f[_0x597291('0x8')],function(_0x356e0d){const _0x3d890b=_0x597291;return{'model':db[_0x356e0d['model']],'as':_0x356e0d['as'],'attributes':_0x356e0d[_0x3d890b('0x27')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1fd2ba){const _0x61aa3e=_0x48facc;logger[_0x61aa3e('0x39')](_0x61aa3e('0x1c'),_0x2a2586),logger[_0x61aa3e('0x2c')](_0x61aa3e('0x1c'),_0x2a2586,JSON['stringify'](_0x1fd2ba)),_0x160dd5(_0x1fd2ba);})[_0x48facc('0x1b')](function(_0x218f1f){const _0x37e9fa=_0x48facc;logger['error'](_0x37e9fa('0x1c'),_0x218f1f[_0x37e9fa('0x31')],_0x2a2586),_0x1c9d18(_0x5e506b[_0x37e9fa('0x37')](0x1f4,_0x218f1f[_0x37e9fa('0x31')]));});});},exports[_0x44edc9('0x11')]=function(_0x146edb){const _0x462965=this;return new Promise(function(_0x30a1f0,_0x1bdb9a){const _0x295d3a=a139_0x5767;return db[_0x295d3a('0x17')][_0x295d3a('0x21')](_0x146edb[_0x295d3a('0x32')],{'raw':_0x146edb['options']?_0x146edb[_0x295d3a('0xb')][_0x295d3a('0xf')]===undefined?!![]:![]:!![]})['then'](function(_0x4885cf){const _0x670607=_0x295d3a;logger[_0x670607('0x39')](_0x670607('0x11'),_0x146edb),logger['debug'](_0x670607('0x11'),_0x146edb,JSON[_0x670607('0xe')](_0x4885cf)),_0x30a1f0(_0x4885cf);})[_0x295d3a('0x1b')](function(_0x78176e){const _0x345d0a=_0x295d3a;logger[_0x345d0a('0x37')]('CreateCmHopper',_0x78176e['message'],_0x146edb),_0x1bdb9a(_0x462965[_0x345d0a('0x37')](0x1f4,_0x78176e[_0x345d0a('0x31')]));});});},exports['UpdateCmHopper']=function(_0x4041f4){const _0x38ab2a=this;return new Promise(function(_0x1a53a8,_0x2f7e7d){const _0x359d43=a139_0x5767;return db[_0x359d43('0x17')][_0x359d43('0x35')](_0x4041f4[_0x359d43('0x32')],{'raw':_0x4041f4[_0x359d43('0xb')]?_0x4041f4[_0x359d43('0xb')][_0x359d43('0xf')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4041f4[_0x359d43('0xb')]?_0x4041f4[_0x359d43('0xb')]['where']||null:null,'attributes':_0x4041f4[_0x359d43('0xb')]?_0x4041f4[_0x359d43('0xb')][_0x359d43('0x27')]||null:null,'limit':_0x4041f4[_0x359d43('0xb')]?_0x4041f4['options'][_0x359d43('0x36')]||null:null})['then'](function(_0x48ab18){const _0x59aee0=_0x359d43;logger[_0x59aee0('0x39')](_0x59aee0('0x4'),_0x4041f4),logger[_0x59aee0('0x2c')](_0x59aee0('0x4'),_0x4041f4,JSON[_0x59aee0('0xe')](_0x48ab18)),_0x1a53a8(_0x48ab18);})[_0x359d43('0x1b')](function(_0x259478){const _0x1baf19=_0x359d43;logger[_0x1baf19('0x37')]('UpdateCmHopper',_0x259478['message'],_0x4041f4),_0x2f7e7d(_0x38ab2a[_0x1baf19('0x37')](0x1f4,_0x259478[_0x1baf19('0x31')]));});});},exports[_0x44edc9('0x29')]=function(_0x4d2704){const _0x10b84e=this;return new Promise(function(_0xcb9dc2,_0x490c7a){const _0xa158ae=a139_0x5767;return db[_0xa158ae('0x17')][_0xa158ae('0x38')]({'where':_0x4d2704[_0xa158ae('0xb')]?_0x4d2704[_0xa158ae('0xb')][_0xa158ae('0xc')]||null:null})['then'](function(_0x36d75c){const _0x4668b3=_0xa158ae;logger[_0x4668b3('0x39')](_0x4668b3('0x29'),_0x4d2704),logger[_0x4668b3('0x2c')](_0x4668b3('0x29'),_0x4d2704,JSON[_0x4668b3('0xe')](_0x36d75c)),_0xcb9dc2(_0x36d75c);})[_0xa158ae('0x1b')](function(_0x582fe2){const _0x147f69=_0xa158ae;logger[_0x147f69('0x37')](_0x147f69('0x29'),_0x582fe2[_0x147f69('0x31')],_0x4d2704),_0x490c7a(_0x10b84e[_0x147f69('0x37')](0x1f4,_0x582fe2[_0x147f69('0x31')]));});});},exports[_0x44edc9('0x19')]=function(_0x577655){const _0x77c90a=this;return new Promise(function(_0x138974,_0x56b2d3){const _0x39fd8a=a139_0x5767;return db['CmContact'][_0x39fd8a('0x3b')]()[_0x39fd8a('0x2f')](function(_0x3e135e){const _0x4da6fa=_0x39fd8a;return db['sequelize']['transaction'](function(_0x5e85b7){const _0x92ec55=a139_0x5767;return db[_0x92ec55('0x17')]['findAll']({'where':_0x577655[_0x92ec55('0xb')]?_0x577655[_0x92ec55('0xb')][_0x92ec55('0xc')]||null:null,'attributes':_0x577655[_0x92ec55('0xb')]?_0x577655[_0x92ec55('0xb')][_0x92ec55('0x27')]||null:null,'limit':_0x577655[_0x92ec55('0xb')]?_0x577655[_0x92ec55('0xb')][_0x92ec55('0x36')]||null:null,'order':_0x577655['options']?_0x577655[_0x92ec55('0xb')][_0x92ec55('0x26')]||null:null,'transaction':_0x5e85b7,'lock':_0x5e85b7[_0x92ec55('0x28')][_0x92ec55('0x5')],'include':[{'model':db['CmContact'],'as':_0x92ec55('0x1'),'attributes':_[_0x92ec55('0x12')](_0x3e135e)},{'model':db[_0x92ec55('0x24')],'as':'Agent','attributes':['id',_0x92ec55('0x9'),_0x92ec55('0x25')]}]})[_0x92ec55('0x2f')](function(_0x3d475b){const _0x17eb50=_0x92ec55,_0x255a1b=[],_0x25bd6c=[];for(let _0x28d4e4=0x0;_0x28d4e4<_0x3d475b[_0x17eb50('0x2')];_0x28d4e4+=0x1){!_0x25bd6c[_0x17eb50('0x1d')](_0x3d475b[_0x28d4e4][_0x17eb50('0x20')])&&(_0x25bd6c[_0x17eb50('0x15')](_0x3d475b[_0x28d4e4]['UserId']),_0x255a1b[_0x17eb50('0x15')](_0x3d475b[_0x28d4e4]['update'](_0x577655[_0x17eb50('0x32')],{'transaction':_0x5e85b7})));}return Promise[_0x17eb50('0x7')](_0x255a1b);});})[_0x4da6fa('0x2f')](function(_0x155e8f){const _0x4e257a=_0x4da6fa;logger[_0x4e257a('0x39')](_0x4e257a('0x19'),_0x577655),logger[_0x4e257a('0x2c')](_0x4e257a('0x19'),_0x577655,JSON[_0x4e257a('0xe')](_0x155e8f)),_0x138974(_0x155e8f);})[_0x4da6fa('0x1b')](function(_0xc52e73){const _0x8fee69=_0x4da6fa;logger['error'](_0x8fee69('0x19'),_0xc52e73['message'],_0x577655),_0x56b2d3(_0x77c90a[_0x8fee69('0x37')](0x1f4,_0xc52e73[_0x8fee69('0x31')]));});});});},exports[_0x44edc9('0x1e')]=function(_0x510fc2){const _0x4df1de=this;return new Promise(function(_0xf651d4,_0x22b22d){const _0x295532=a139_0x5767;return db[_0x295532('0x33')][_0x295532('0x2d')](function(_0x410406){const _0x6385d2=_0x295532;return db[_0x6385d2('0x1f')]['create'](_0x510fc2[_0x6385d2('0x32')],{'raw':_0x510fc2[_0x6385d2('0xb')]?_0x510fc2['options']['raw']===undefined?!![]:![]:!![],'transaction':_0x410406})[_0x6385d2('0x2f')](function(){const _0x4388c6=_0x6385d2;return db[_0x4388c6('0x17')][_0x4388c6('0x38')]({'where':_0x510fc2['options']?_0x510fc2[_0x4388c6('0xb')][_0x4388c6('0xc')]||null:null,'transaction':_0x410406});});})[_0x295532('0x2f')](function(_0x26c0ee){const _0x8f1ef9=_0x295532;logger[_0x8f1ef9('0x39')](_0x8f1ef9('0x1e'),_0x510fc2),logger['debug'](_0x8f1ef9('0x1e'),_0x510fc2,JSON[_0x8f1ef9('0xe')](_0x26c0ee)),_0xf651d4(_0x26c0ee);})[_0x295532('0x1b')](function(_0x4df3e2){const _0x3c69c8=_0x295532;logger[_0x3c69c8('0x37')]('MoveContactManagedDialer',_0x4df3e2['message'],_0x510fc2),_0x22b22d(_0x4df1de['error'](0x1f4,_0x4df3e2[_0x3c69c8('0x31')]));});});},exports[_0x44edc9('0x18')]=function(_0xe1821f){const _0x14e47a=this;return new Promise(function(_0x4e6790,_0xac5e20){const _0x5b915a=a139_0x5767;return db['CmHopper'][_0x5b915a('0x13')]({'raw':_0xe1821f[_0x5b915a('0xb')]?_0xe1821f[_0x5b915a('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0xe1821f[_0x5b915a('0xb')]?_0xe1821f[_0x5b915a('0xb')]['where']||null:null,'attributes':[[fn('COUNT',fn('IF',literal(_0x5b915a('0x30')+util['format'](_0x5b915a('0x6'),moment()[_0x5b915a('0x34')](_0x5b915a('0xd')))+'\x20,\x201,\x20null'))),_0x5b915a('0x3a')]]})[_0x5b915a('0x2f')](function(_0x59e48f){const _0x4c2738=_0x5b915a;logger[_0x4c2738('0x39')](_0x4c2738('0x18'),_0xe1821f),logger[_0x4c2738('0x2c')]('CountReScheduled',_0xe1821f,JSON[_0x4c2738('0xe')](_0x59e48f)),_0x4e6790(_0x59e48f);})[_0x5b915a('0x1b')](function(_0x18229c){const _0x5a7af6=_0x5b915a;logger[_0x5a7af6('0x37')](_0x5a7af6('0x18'),_0x18229c[_0x5a7af6('0x31')],_0xe1821f),_0xac5e20(_0x14e47a['error'](0x1f4,_0x18229c[_0x5a7af6('0x31')]));});});},exports[_0x44edc9('0x2a')]=function(_0x961d8b){const _0x32a43e=this;return new Promise(function(_0x515a15,_0x133870){const _0x91fd0=a139_0x5767;return db[_0x91fd0('0x22')][_0x91fd0('0x3b')]()['then'](function(){const _0x4fbe6f=_0x91fd0;return db[_0x4fbe6f('0x33')][_0x4fbe6f('0x2d')](function(_0x317658){const _0x72964f=_0x4fbe6f;return db[_0x72964f('0x17')]['findAll']({'where':_0x961d8b[_0x72964f('0xb')]?_0x961d8b['options']['where']||null:null,'attributes':_0x961d8b[_0x72964f('0xb')]?_0x961d8b[_0x72964f('0xb')][_0x72964f('0x27')]||null:null,'limit':0x1,'order':_0x961d8b['options']?_0x961d8b[_0x72964f('0xb')]['order']||null:null,'group':db[_0x72964f('0x17')][_0x72964f('0x20')],'transaction':_0x317658,'lock':_0x317658[_0x72964f('0x28')][_0x72964f('0x5')],'include':_0x961d8b[_0x72964f('0xb')]?_0x961d8b[_0x72964f('0xb')][_0x72964f('0x8')]?_['map'](_0x961d8b[_0x72964f('0xb')][_0x72964f('0x8')],function(_0x10dbd3){const _0x11c90c=_0x72964f;return{'model':db[_0x10dbd3['model']],'as':_0x10dbd3['as'],'attributes':_0x10dbd3[_0x11c90c('0x27')],'include':_0x10dbd3[_0x11c90c('0x8')]?_[_0x11c90c('0x0')](_0x10dbd3[_0x11c90c('0x8')],function(_0x4e38ea){const _0x1d0b69=_0x11c90c;return{'model':db[_0x4e38ea['model']],'as':_0x4e38ea['as'],'attributes':_0x4e38ea[_0x1d0b69('0x27')],'include':_0x4e38ea[_0x1d0b69('0x8')]?_['map'](_0x4e38ea[_0x1d0b69('0x8')],function(_0x2fa7e7){const _0x2cd489=_0x1d0b69;return{'model':db[_0x2fa7e7[_0x2cd489('0x14')]],'as':_0x2fa7e7['as'],'attributes':_0x2fa7e7[_0x2cd489('0x27')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1e3b8c){const _0x2f6de9=_0x72964f,_0x241476=[];for(let _0x50bdd4=0x0;_0x50bdd4<_0x1e3b8c['length'];_0x50bdd4+=0x1){_0x241476[_0x2f6de9('0x15')](_0x1e3b8c[_0x50bdd4]['update'](_0x961d8b[_0x2f6de9('0x32')],{'transaction':_0x317658}));}return Promise[_0x2f6de9('0x7')](_0x241476);});})[_0x4fbe6f('0x2f')](function(_0x5670ae){const _0x18d630=_0x4fbe6f;logger[_0x18d630('0x39')]('GetContactRecallMe',_0x961d8b),logger[_0x18d630('0x2c')](_0x18d630('0x2a'),_0x961d8b,JSON[_0x18d630('0xe')](_0x5670ae)),_0x515a15(_0x5670ae);})[_0x4fbe6f('0x1b')](function(_0x336116){const _0x4e6942=_0x4fbe6f;logger[_0x4e6942('0x37')]('GetContactRecallMe',_0x336116[_0x4e6942('0x31')],_0x961d8b),_0x133870(_0x32a43e[_0x4e6942('0x37')](0x1f4,_0x336116[_0x4e6942('0x31')]));});});});},exports[_0x44edc9('0xa')]=function(_0x3ec8cc){const _0x175ae6=this;return new Promise(function(_0x2f0004,_0x13bf92){const _0x3cf46d=a139_0x5767;db[_0x3cf46d('0x22')][_0x3cf46d('0x3b')]()[_0x3cf46d('0x2f')](function(_0x393277){const _0x6547ba=_0x3cf46d;return db[_0x6547ba('0x17')]['findAll']({'raw':_0x3ec8cc[_0x6547ba('0xb')]?_0x3ec8cc[_0x6547ba('0xb')][_0x6547ba('0xf')]===undefined?!![]:![]:!![],'where':_0x3ec8cc[_0x6547ba('0xb')]?_0x3ec8cc[_0x6547ba('0xb')][_0x6547ba('0xc')]||null:null,'attributes':_0x3ec8cc['options']?_0x3ec8cc[_0x6547ba('0xb')]['attributes']||null:null,'limit':_0x3ec8cc[_0x6547ba('0xb')]?_0x3ec8cc[_0x6547ba('0xb')]['limit']||null:null,'include':_0x3ec8cc[_0x6547ba('0xb')]?_0x3ec8cc[_0x6547ba('0xb')][_0x6547ba('0x8')]?_[_0x6547ba('0x0')](_0x3ec8cc['options'][_0x6547ba('0x8')],function(_0x5051e7){const _0xdb9691=_0x6547ba;return{'model':db[_0x5051e7[_0xdb9691('0x14')]],'as':_0x5051e7['as'],'attributes':_0x5051e7['as']===_0xdb9691('0x1')?_[_0xdb9691('0x12')](_0x393277):_0x5051e7[_0xdb9691('0x27')],'include':_0x5051e7['include']?_['map'](_0x5051e7[_0xdb9691('0x8')],function(_0x1952c2){const _0x479280=_0xdb9691;return{'model':db[_0x1952c2[_0x479280('0x14')]],'as':_0x1952c2['as'],'attributes':_0x1952c2[_0x479280('0x27')],'include':_0x1952c2[_0x479280('0x8')]?_['map'](_0x1952c2[_0x479280('0x8')],function(_0x3258b2){const _0x1e2027=_0x479280;return{'model':db[_0x3258b2['model']],'as':_0x3258b2['as'],'attributes':_0x3258b2[_0x1e2027('0x27')]};}):[]};}):[]};}):[]:[]})[_0x6547ba('0x2f')](function(_0x15fa93){const _0x3c84e4=_0x6547ba;logger[_0x3c84e4('0x39')](_0x3c84e4('0x2b'),_0x3ec8cc),logger[_0x3c84e4('0x2c')]('GetCmHopper',_0x3ec8cc,JSON[_0x3c84e4('0xe')](_0x15fa93)),_0x2f0004(_0x15fa93);})['catch'](function(_0x24a75b){const _0xd7db50=_0x6547ba;logger[_0xd7db50('0x37')]('GetCmHopper',_0x24a75b['message'],_0x3ec8cc),_0x13bf92(_0x175ae6[_0xd7db50('0x37')](0x1f4,_0x24a75b[_0xd7db50('0x31')]));});});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index bb5f8f3..f1c2d79 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a140_0x36a0=['/opencontacts','/preview','/describe','get','/:id','index','post','delete','isAuthenticated','put','exports','create','./cmHopper.controller','getPreview','update','../../components/auth/service','express','show'];(function(_0x35ee60,_0x36a03a){const _0x59277d=function(_0x43ffa0){while(--_0x43ffa0){_0x35ee60['push'](_0x35ee60['shift']());}};_0x59277d(++_0x36a03a);}(a140_0x36a0,0xa6));const a140_0x5927=function(_0x35ee60,_0x36a03a){_0x35ee60=_0x35ee60-0x0;let _0x59277d=a140_0x36a0[_0x35ee60];return _0x59277d;};const _0x3bfbee=a140_0x5927;'use strict';const express=require(_0x3bfbee('0xc')),router=express['Router'](),auth=require(_0x3bfbee('0xb')),controller=require(_0x3bfbee('0x8'));router[_0x3bfbee('0x11')]('/',auth[_0x3bfbee('0x4')](),controller[_0x3bfbee('0x1')]),router[_0x3bfbee('0x11')](_0x3bfbee('0x10'),auth[_0x3bfbee('0x4')](),controller['describe']),router[_0x3bfbee('0x11')](_0x3bfbee('0xe'),auth[_0x3bfbee('0x4')](),controller['getOpenContacts']),router['get'](_0x3bfbee('0x0'),auth[_0x3bfbee('0x4')](),controller[_0x3bfbee('0xd')]),router[_0x3bfbee('0x2')]('/',auth[_0x3bfbee('0x4')](),controller[_0x3bfbee('0x7')]),router[_0x3bfbee('0x2')](_0x3bfbee('0xf'),auth['isAuthenticated'](),controller[_0x3bfbee('0x9')]),router[_0x3bfbee('0x5')](_0x3bfbee('0x0'),auth[_0x3bfbee('0x4')](),controller[_0x3bfbee('0xa')]),router[_0x3bfbee('0x3')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x3bfbee('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index e123dda..4e028a2 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a141_0x5290=['contactListQueue','sequelize','INTEGER','exports'];(function(_0x4dfef6,_0x52903d){const _0x24d215=function(_0x3fac52){while(--_0x3fac52){_0x4dfef6['push'](_0x4dfef6['shift']());}};_0x24d215(++_0x52903d);}(a141_0x5290,0xc9));const a141_0x24d2=function(_0x4dfef6,_0x52903d){_0x4dfef6=_0x4dfef6-0x0;let _0x24d215=a141_0x5290[_0x4dfef6];return _0x24d215;};const _0xd40a1d=a141_0x24d2;'use strict';const Sequelize=require(_0xd40a1d('0x0'));module[_0xd40a1d('0x2')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'ContactId':{'type':Sequelize[_0xd40a1d('0x1')],'unique':'contactListQueue'},'ListId':{'type':Sequelize[_0xd40a1d('0x1')],'unique':'contactListQueue'},'VoiceQueueId':{'type':Sequelize[_0xd40a1d('0x1')],'unique':_0xd40a1d('0x3')}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index 7b2334a..2a2c455 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a142_0x1fbf=['index','VIRTUAL','where','findAll','rows','order','sort','../../config/logger','../../mysqldb','catch','undefined','limit','sendStatus','describe','merge','type','key','pick','rawAttributes','like','error','CmHopperBlack','attributes','model','lodash','count','filters','findOne','destroy','end','nolimit','length','../../components/parsers/qs','includeAll','offset','filter','options','query','Content-Range','status','update','include','map','intersection','keys','then','api','params','name','json','fields','send','body','fieldName'];(function(_0x4d5c37,_0x1fbf14){const _0x390f37=function(_0x354ff9){while(--_0x354ff9){_0x4d5c37['push'](_0x4d5c37['shift']());}};_0x390f37(++_0x1fbf14);}(a142_0x1fbf,0x13e));const a142_0x390f=function(_0x4d5c37,_0x1fbf14){_0x4d5c37=_0x4d5c37-0x0;let _0x390f37=a142_0x1fbf[_0x4d5c37];return _0x390f37;};const _0x345825=a142_0x390f;'use strict';const _=require(_0x345825('0x1e')),qs=require(_0x345825('0x26')),logger=require(_0x345825('0xd'))(_0x345825('0x34')),db=require(_0x345825('0xe'))['db'],{Op}=require('sequelize');function respondWithResult(_0x354ff9,_0xcd68d4){return _0xcd68d4=_0xcd68d4||0xc8,function(_0x415b34){const _0x461ace=a142_0x390f;if(_0x415b34)return _0x354ff9[_0x461ace('0x2d')](_0xcd68d4)['json'](_0x415b34);};}function respondWithFilteredResult(_0x4864ca,_0x1aa0f3){return function(_0x539719){const _0x26e7c1=a142_0x390f;if(_0x539719){const _0x61f4c4=_0x539719['count'],_0x41ce6a=_0x1aa0f3[_0x26e7c1('0x28')];let _0x20441e=_0x1aa0f3['offset']+_0x1aa0f3[_0x26e7c1('0x11')],_0x34dd2b;return _0x20441e>=_0x61f4c4?(_0x20441e=_0x61f4c4,_0x34dd2b=0xc8):_0x34dd2b=0xce,_0x4864ca['status'](_0x34dd2b),_0x4864ca['set'](_0x26e7c1('0x2c'),_0x41ce6a+'-'+_0x20441e+'/'+_0x61f4c4)[_0x26e7c1('0x1')](_0x539719);}return null;};}function saveUpdates(_0x5b0b91){return function(_0x1f512b){const _0x8d543d=a142_0x390f;if(_0x1f512b)return _0x1f512b[_0x8d543d('0x2e')](_0x5b0b91)[_0x8d543d('0x33')](function(_0x58790c){return _0x58790c;});return null;};}function removeEntity(_0x56ad05){return function(_0xf461a4){const _0xefc733=a142_0x390f;if(_0xf461a4)return _0xf461a4[_0xefc733('0x22')]()[_0xefc733('0x33')](function(){const _0x320a4a=_0xefc733;_0x56ad05[_0x320a4a('0x2d')](0xcc)[_0x320a4a('0x23')]();});};}function handleEntityNotFound(_0xbbdf8e){return function(_0x5ba2ea){const _0x4edd79=a142_0x390f;return!_0x5ba2ea&&_0xbbdf8e[_0x4edd79('0x12')](0x194),_0x5ba2ea;};}function handleError(_0x3a6633,_0x499627){return _0x499627=_0x499627||0x1f4,function(_0x6ac61d){const _0x103a98=a142_0x390f;logger[_0x103a98('0x1a')](_0x6ac61d['stack']),_0x6ac61d['name']&&delete _0x6ac61d[_0x103a98('0x0')],_0x3a6633[_0x103a98('0x2d')](_0x499627)[_0x103a98('0x3')](_0x6ac61d);};}exports[_0x345825('0x6')]=function(_0x1a5351,_0x3f3bff){const _0x2dbb46=_0x345825;let _0x1c06f1={};const _0x1e4166={},_0x2a67fb={'count':0x0,'rows':[]},_0x32229b=_[_0x2dbb46('0x30')](db[_0x2dbb46('0x1b')][_0x2dbb46('0x18')],function(_0x34bf93){const _0x2caf2e=_0x2dbb46;return{'name':_0x34bf93[_0x2caf2e('0x5')],'type':_0x34bf93[_0x2caf2e('0x15')][_0x2caf2e('0x16')]};});_0x1e4166[_0x2dbb46('0x1d')]=_[_0x2dbb46('0x30')](_0x32229b,_0x2dbb46('0x0')),_0x1e4166[_0x2dbb46('0x2b')]=_['keys'](_0x1a5351[_0x2dbb46('0x2b')]),_0x1e4166[_0x2dbb46('0x20')]=_[_0x2dbb46('0x31')](_0x1e4166['model'],_0x1e4166[_0x2dbb46('0x2b')]),_0x1c06f1[_0x2dbb46('0x1c')]=_[_0x2dbb46('0x31')](_0x1e4166['model'],qs[_0x2dbb46('0x2')](_0x1a5351[_0x2dbb46('0x2b')][_0x2dbb46('0x2')])),_0x1c06f1['attributes']=_0x1c06f1[_0x2dbb46('0x1c')][_0x2dbb46('0x25')]?_0x1c06f1[_0x2dbb46('0x1c')]:_0x1e4166[_0x2dbb46('0x1d')];typeof _0x1a5351['query'][_0x2dbb46('0x24')]===_0x2dbb46('0x10')&&(_0x1c06f1[_0x2dbb46('0x11')]=qs[_0x2dbb46('0x11')](_0x1a5351[_0x2dbb46('0x2b')][_0x2dbb46('0x11')]),_0x1c06f1[_0x2dbb46('0x28')]=qs[_0x2dbb46('0x28')](_0x1a5351[_0x2dbb46('0x2b')][_0x2dbb46('0x28')]));_0x1c06f1[_0x2dbb46('0xb')]=qs[_0x2dbb46('0xc')](_0x1a5351['query']['sort']),_0x1c06f1['where']=qs['filters'](_[_0x2dbb46('0x17')](_0x1a5351[_0x2dbb46('0x2b')],_0x1e4166[_0x2dbb46('0x20')]),_0x32229b);_0x1a5351[_0x2dbb46('0x2b')][_0x2dbb46('0x29')]&&(_0x1c06f1[_0x2dbb46('0x8')]=_[_0x2dbb46('0x14')](_0x1c06f1['where'],{[Op['or']]:_[_0x2dbb46('0x30')](_0x32229b,function(_0x4f2c9f){const _0xdfe5e=_0x2dbb46;if(_0x4f2c9f[_0xdfe5e('0x15')]!==_0xdfe5e('0x7')){const _0x340c73={};return _0x340c73[_0x4f2c9f['name']]={[Op[_0xdfe5e('0x19')]]:'%'+_0x1a5351[_0xdfe5e('0x2b')][_0xdfe5e('0x29')]+'%'},_0x340c73;}})}));_0x1c06f1=_[_0x2dbb46('0x14')]({},_0x1c06f1,_0x1a5351[_0x2dbb46('0x2a')]);const _0x50fb11={'where':_0x1c06f1[_0x2dbb46('0x8')]};return db['CmHopperBlack'][_0x2dbb46('0x1f')](_0x50fb11)[_0x2dbb46('0x33')](function(_0x2db297){const _0xae7ca5=_0x2dbb46;return _0x2a67fb[_0xae7ca5('0x1f')]=_0x2db297,_0x1a5351[_0xae7ca5('0x2b')][_0xae7ca5('0x27')]&&(_0x1c06f1[_0xae7ca5('0x2f')]=[{'all':!![]}]),db['CmHopperBlack'][_0xae7ca5('0x9')](_0x1c06f1);})[_0x2dbb46('0x33')](function(_0x39e838){const _0x334761=_0x2dbb46;return _0x2a67fb[_0x334761('0xa')]=_0x39e838,_0x2a67fb;})[_0x2dbb46('0x33')](respondWithFilteredResult(_0x3f3bff,_0x1c06f1))['catch'](handleError(_0x3f3bff,null));},exports['show']=function(_0x2f492e,_0x511f38){const _0x610d78=_0x345825;let _0x15136c={'raw':!![],'where':{'id':_0x2f492e[_0x610d78('0x35')]['id']}};const _0x473474={};return _0x473474[_0x610d78('0x1d')]=_[_0x610d78('0x32')](db['CmHopperBlack'][_0x610d78('0x18')]),_0x473474[_0x610d78('0x2b')]=_['keys'](_0x2f492e['query']),_0x473474[_0x610d78('0x20')]=_[_0x610d78('0x31')](_0x473474[_0x610d78('0x1d')],_0x473474[_0x610d78('0x2b')]),_0x15136c[_0x610d78('0x1c')]=_[_0x610d78('0x31')](_0x473474['model'],qs[_0x610d78('0x2')](_0x2f492e['query'][_0x610d78('0x2')])),_0x15136c[_0x610d78('0x1c')]=_0x15136c[_0x610d78('0x1c')][_0x610d78('0x25')]?_0x15136c['attributes']:_0x473474[_0x610d78('0x1d')],_0x2f492e[_0x610d78('0x2b')]['includeAll']&&(_0x15136c['include']=[{'all':!![]}]),_0x15136c=_[_0x610d78('0x14')]({},_0x15136c,_0x2f492e[_0x610d78('0x2a')]),db[_0x610d78('0x1b')][_0x610d78('0x21')](_0x15136c)[_0x610d78('0x33')](handleEntityNotFound(_0x511f38,null))['then'](respondWithResult(_0x511f38,null))[_0x610d78('0xf')](handleError(_0x511f38,null));},exports[_0x345825('0x2e')]=function(_0x344ff8,_0x4918e3){const _0x1569dc=_0x345825;return _0x344ff8[_0x1569dc('0x4')]['id']&&delete _0x344ff8[_0x1569dc('0x4')]['id'],db[_0x1569dc('0x1b')][_0x1569dc('0x21')]({'where':{'id':_0x344ff8['params']['id']}})['then'](handleEntityNotFound(_0x4918e3,null))[_0x1569dc('0x33')](saveUpdates(_0x344ff8['body'],null))[_0x1569dc('0x33')](respondWithResult(_0x4918e3,null))[_0x1569dc('0xf')](handleError(_0x4918e3,null));},exports['destroy']=function(_0x41093c,_0x8b7179){const _0x5d09b0=_0x345825;return db['CmHopperBlack']['findOne']({'where':{'id':_0x41093c[_0x5d09b0('0x35')]['id']}})[_0x5d09b0('0x33')](handleEntityNotFound(_0x8b7179,null))[_0x5d09b0('0x33')](removeEntity(_0x8b7179,null))['catch'](handleError(_0x8b7179,null));},exports[_0x345825('0x13')]=function(_0x4af32c,_0xeb36c8){const _0x5a50f3=_0x345825;return db['CmHopperBlack'][_0x5a50f3('0x13')]()['then'](respondWithResult(_0xeb36c8,null))['catch'](handleError(_0xeb36c8,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 435385f..8807781 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a143_0x4826=['exports','./cmHopperBlack.attributes','CmHopperBlack'];(function(_0x587fad,_0x48262d){const _0x27f307=function(_0x19eb7a){while(--_0x19eb7a){_0x587fad['push'](_0x587fad['shift']());}};_0x27f307(++_0x48262d);}(a143_0x4826,0x1af));const a143_0x27f3=function(_0x587fad,_0x48262d){_0x587fad=_0x587fad-0x0;let _0x27f307=a143_0x4826[_0x587fad];return _0x27f307;};const _0xc88b1c=a143_0x27f3;'use strict';const attributes=require(_0xc88b1c('0x2'));module[_0xc88b1c('0x1')]=function(_0x19eb7a){const _0x1e8142=_0xc88b1c,_0x1ed557=_0x19eb7a['define'](_0x1e8142('0x0'),attributes,{'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1ed557;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index 068965f..a2a5d8a 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a144_0x4b63=['options','raw','include','findAll','UpdateCmHopperBlack','error','catch','GetCmHopperBlack','debug','info','message','body','map','then','where','lodash','stringify','CmHopperBlack','attributes','limit','rpc','destroy','DestroyCmHopperBlack','../../mysqldb','model'];(function(_0x35a0a1,_0x4b63f7){const _0x51a904=function(_0x21772f){while(--_0x21772f){_0x35a0a1['push'](_0x35a0a1['shift']());}};_0x51a904(++_0x4b63f7);}(a144_0x4b63,0x1ea));const a144_0x51a9=function(_0x35a0a1,_0x4b63f7){_0x35a0a1=_0x35a0a1-0x0;let _0x51a904=a144_0x4b63[_0x35a0a1];return _0x51a904;};const _0x1530e4=a144_0x51a9;'use strict';const _=require(_0x1530e4('0x0')),db=require(_0x1530e4('0x8'))['db'],logger=require('../../config/logger')(_0x1530e4('0x5'));exports[_0x1530e4('0x11')]=function(_0x21772f){const _0x97db7a=this;return new Promise(function(_0x334423,_0x1ab7b4){const _0x3391e9=a144_0x51a9;return db['CmHopperBlack'][_0x3391e9('0xd')]({'raw':_0x21772f[_0x3391e9('0xa')]?_0x21772f[_0x3391e9('0xa')][_0x3391e9('0xb')]===undefined?!![]:![]:!![],'where':_0x21772f[_0x3391e9('0xa')]?_0x21772f[_0x3391e9('0xa')][_0x3391e9('0x18')]||null:null,'attributes':_0x21772f['options']?_0x21772f[_0x3391e9('0xa')][_0x3391e9('0x3')]||null:null,'limit':_0x21772f[_0x3391e9('0xa')]?_0x21772f[_0x3391e9('0xa')][_0x3391e9('0x4')]||null:null,'include':_0x21772f['options']?_0x21772f[_0x3391e9('0xa')][_0x3391e9('0xc')]?_[_0x3391e9('0x16')](_0x21772f[_0x3391e9('0xa')][_0x3391e9('0xc')],function(_0x37061a){const _0x117e0a=_0x3391e9;return{'model':db[_0x37061a['model']],'as':_0x37061a['as'],'attributes':_0x37061a[_0x117e0a('0x3')],'include':_0x37061a[_0x117e0a('0xc')]?_[_0x117e0a('0x16')](_0x37061a['include'],function(_0x4fa4f2){const _0x1b020c=_0x117e0a;return{'model':db[_0x4fa4f2[_0x1b020c('0x9')]],'as':_0x4fa4f2['as'],'attributes':_0x4fa4f2[_0x1b020c('0x3')],'include':_0x4fa4f2[_0x1b020c('0xc')]?_[_0x1b020c('0x16')](_0x4fa4f2[_0x1b020c('0xc')],function(_0x41a0df){const _0x3ba4d5=_0x1b020c;return{'model':db[_0x41a0df[_0x3ba4d5('0x9')]],'as':_0x41a0df['as'],'attributes':_0x41a0df['attributes']};}):[]};}):[]};}):[]:[]})[_0x3391e9('0x17')](function(_0x46f3f8){const _0x47251c=_0x3391e9;logger[_0x47251c('0x13')](_0x47251c('0x11'),_0x21772f),logger[_0x47251c('0x12')](_0x47251c('0x11'),_0x21772f,JSON['stringify'](_0x46f3f8)),_0x334423(_0x46f3f8);})[_0x3391e9('0x10')](function(_0x5e55c7){const _0x208420=_0x3391e9;logger['error'](_0x208420('0x11'),_0x5e55c7[_0x208420('0x14')],_0x21772f),_0x1ab7b4(_0x97db7a[_0x208420('0xf')](0x1f4,_0x5e55c7[_0x208420('0x14')]));});});},exports['UpdateCmHopperBlack']=function(_0x54f871){const _0x535331=this;return new Promise(function(_0x54f2b9,_0x101f9c){const _0x1a41e0=a144_0x51a9;return db[_0x1a41e0('0x2')]['update'](_0x54f871[_0x1a41e0('0x15')],{'raw':_0x54f871[_0x1a41e0('0xa')]?_0x54f871[_0x1a41e0('0xa')][_0x1a41e0('0xb')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x54f871[_0x1a41e0('0xa')]?_0x54f871[_0x1a41e0('0xa')]['where']||null:null,'attributes':_0x54f871[_0x1a41e0('0xa')]?_0x54f871[_0x1a41e0('0xa')][_0x1a41e0('0x3')]||null:null,'limit':_0x54f871['options']?_0x54f871[_0x1a41e0('0xa')][_0x1a41e0('0x4')]||null:null})[_0x1a41e0('0x17')](function(_0x23e9c6){const _0x243cdc=_0x1a41e0;logger[_0x243cdc('0x13')](_0x243cdc('0xe'),_0x54f871),logger[_0x243cdc('0x12')](_0x243cdc('0xe'),_0x54f871,JSON[_0x243cdc('0x1')](_0x23e9c6)),_0x54f2b9(_0x23e9c6);})['catch'](function(_0x1eff77){const _0x4fc148=_0x1a41e0;logger[_0x4fc148('0xf')]('UpdateCmHopperBlack',_0x1eff77[_0x4fc148('0x14')],_0x54f871),_0x101f9c(_0x535331[_0x4fc148('0xf')](0x1f4,_0x1eff77['message']));});});},exports[_0x1530e4('0x7')]=function(_0x1c4541){const _0x397c3d=this;return new Promise(function(_0x2fd7dc,_0x11149c){const _0x3ccabe=a144_0x51a9;return db[_0x3ccabe('0x2')][_0x3ccabe('0x6')]({'where':_0x1c4541[_0x3ccabe('0xa')]?_0x1c4541[_0x3ccabe('0xa')]['where']||null:null})[_0x3ccabe('0x17')](function(_0x594d7b){const _0x31aa53=_0x3ccabe;logger['info']('DestroyCmHopperBlack',_0x1c4541),logger[_0x31aa53('0x12')](_0x31aa53('0x7'),_0x1c4541,JSON[_0x31aa53('0x1')](_0x594d7b)),_0x2fd7dc(_0x594d7b);})[_0x3ccabe('0x10')](function(_0x2325d6){const _0x5738c0=_0x3ccabe;logger[_0x5738c0('0xf')](_0x5738c0('0x7'),_0x2325d6[_0x5738c0('0x14')],_0x1c4541),_0x11149c(_0x397c3d[_0x5738c0('0xf')](0x1f4,_0x2325d6[_0x5738c0('0x14')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index f1b66d0..3584c28 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a145_0xe576=['Router','/:id','isAuthenticated','exports','get','./cmHopperBlack.controller','../../components/auth/service','delete','/describe','update','show','put','express'];(function(_0x45170b,_0xe576f4){const _0x174a30=function(_0x1e990c){while(--_0x1e990c){_0x45170b['push'](_0x45170b['shift']());}};_0x174a30(++_0xe576f4);}(a145_0xe576,0x162));const a145_0x174a=function(_0x45170b,_0xe576f4){_0x45170b=_0x45170b-0x0;let _0x174a30=a145_0xe576[_0x45170b];return _0x174a30;};const _0x3389ea=a145_0x174a;'use strict';const express=require(_0x3389ea('0x9')),router=express[_0x3389ea('0xa')](),auth=require(_0x3389ea('0x3')),controller=require(_0x3389ea('0x2'));router[_0x3389ea('0x1')]('/',auth[_0x3389ea('0xc')](),controller['index']),router[_0x3389ea('0x1')](_0x3389ea('0x5'),auth[_0x3389ea('0xc')](),controller['describe']),router[_0x3389ea('0x1')](_0x3389ea('0xb'),auth[_0x3389ea('0xc')](),controller[_0x3389ea('0x7')]),router[_0x3389ea('0x8')](_0x3389ea('0xb'),auth[_0x3389ea('0xc')](),controller[_0x3389ea('0x6')]),router[_0x3389ea('0x4')](_0x3389ea('0xb'),auth[_0x3389ea('0xc')](),controller['destroy']),module[_0x3389ea('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index e580d0d..790fee5 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a146_0x365d=['setDataValue','endtime','exports','seconds','STRING','BOOLEAN','DATE','followuptime','moment','getDataValue','INTEGER','sequelize','dispositionat'];(function(_0x4b03e0,_0x365dba){const _0x5e2faf=function(_0x7dd82c){while(--_0x7dd82c){_0x4b03e0['push'](_0x4b03e0['shift']());}};_0x5e2faf(++_0x365dba);}(a146_0x365d,0x168));const a146_0x5e2f=function(_0x4b03e0,_0x365dba){_0x4b03e0=_0x4b03e0-0x0;let _0x5e2faf=a146_0x365d[_0x4b03e0];return _0x5e2faf;};const _0xc61757=a146_0x5e2f;'use strict';const Sequelize=require(_0xc61757('0x2')),moment=require(_0xc61757('0xc'));module[_0xc61757('0x6')]={'state':{'type':Sequelize[_0xc61757('0x1')](0x2)},'statedesc':{'type':Sequelize[_0xc61757('0x8')]},'scheduledat':{'type':Sequelize[_0xc61757('0xa')]},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize['STRING']},'originatecalleridname':{'type':Sequelize[_0xc61757('0x8')]},'calleridnum':{'type':Sequelize[_0xc61757('0x8')]},'calleridname':{'type':Sequelize[_0xc61757('0x8')]},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize[_0xc61757('0xa')]},'answertime':{'type':Sequelize['DATE']},'droptime':{'type':Sequelize[_0xc61757('0xa')]},'endtime':{'type':Sequelize[_0xc61757('0xa')]},'ringtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'talktime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'dropreason':{'type':Sequelize['STRING']},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xc61757('0x8')]},'reason':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize[_0xc61757('0x8')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0xc61757('0x8')]},'dispositionat':{'type':Sequelize[_0xc61757('0xa')],'set':function(_0x7dd82c){const _0x291a29=_0xc61757,_0xa0b014=this[_0x291a29('0x0')](_0x291a29('0x5'));return _0xa0b014&&_0x7dd82c&&this[_0x291a29('0x4')](_0x291a29('0xb'),moment(_0x7dd82c)['diff'](moment(_0xa0b014),_0x291a29('0x7'))),this[_0x291a29('0x4')](_0x291a29('0x3'),_0x7dd82c);}},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'blacklist':{'type':Sequelize[_0xc61757('0x9')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0xc61757('0x9')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0xc61757('0xa')]},'callback':{'type':Sequelize[_0xc61757('0x9')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0xc61757('0x8')],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'deleted':{'type':Sequelize[_0xc61757('0x8')],'defaultValue':null},'deletedat':{'type':Sequelize[_0xc61757('0xa')]},'recallme':{'type':Sequelize[_0xc61757('0x9')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0xc61757('0xa')]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0xc61757('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.controller.js b/server/api/cmHopperFinal/cmHopperFinal.controller.js index 5d770a0..9830095 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a147_0x2f6b=['Content-Range','state\x20=\x20?','`state`\x20=\x200,\x201,\x20null','COUNT','moveContactsIvrCampaignHopperFinal','ListId','sequelize','noSuchContacts','ContactId','state\x20=\x204','group','fieldName','VoiceQueueId\x20=\x20?','CmHopper','field','CmHopperFinal','createdAt','filter','`state`\x20=\x203,\x201,\x20null','update','nolimit','show','include','cm_hopper','type','calleridnum','describe','sendStatus','where','`state`\x20=\x2022,\x201,\x20null','select','`state`\x20=\x205,\x201,\x20null','length','`state`\x20=\x208,\x201,\x20null','reCallContacts','Campaign','../../config/logger','options','countContactsQueueCampaignHopperFinal','attributes','limit','fields','CampaignId\x20=\x20?','body','map','noAnswerContacts','model','sort','stack','insert','checkContactHopper','merge','answeringMachine','countContactsIvrCampaignHopperFinal','ANY_VALUE(ListId)','findAll','includeAll','index','state','name','congestionContacts','then','order','into','json','ANY_VALUE(ContactId)','toString','status','lodash','NOW()','ANY_VALUE(calleridnum)','set','params','findOne','../../components/parsers/qs','VoiceQueueId','uniqueid','`state`\x20=\x2010\x20,\x201,\x20null','filters','CampaignId','fromQuery','dropContacts','offset','calleridnum\x20NOT\x20IN\x20(?)','../../mysqldb','`state`\x20=\x2011\x20,\x201,\x20null','query','count','VoiceQueue','catch','from','cm_hopper_final','phone','keys','`state`\x20=\x2019,\x201,\x20null','undefined','scheduledAt','intersection','api','rawAttributes','updatedAt'];(function(_0xf89c08,_0x2f6be1){const _0xda56b0=function(_0x5e70b3){while(--_0x5e70b3){_0xf89c08['push'](_0xf89c08['shift']());}};_0xda56b0(++_0x2f6be1);}(a147_0x2f6b,0x1af));const a147_0xda56=function(_0xf89c08,_0x2f6be1){_0xf89c08=_0xf89c08-0x0;let _0xda56b0=a147_0x2f6b[_0xf89c08];return _0xda56b0;};const _0xb9c15c=a147_0xda56;'use strict';const _=require(_0xb9c15c('0x29')),squel=require('squel'),qs=require(_0xb9c15c('0x2f')),logger=require(_0xb9c15c('0x9'))(_0xb9c15c('0x47')),db=require(_0xb9c15c('0x39'))['db'],{Op,fn,literal}=require(_0xb9c15c('0x50'));function respondWithResult(_0x5e70b3,_0x3d67cb){return _0x3d67cb=_0x3d67cb||0xc8,function(_0x89c0a5){const _0x411f34=a147_0xda56;if(_0x89c0a5)return _0x5e70b3[_0x411f34('0x28')](_0x3d67cb)['json'](_0x89c0a5);};}function respondWithFilteredResult(_0x12592d,_0xee83d1){return function(_0x2f6b10){const _0x3d3ded=a147_0xda56;if(_0x2f6b10){const _0x564226=_0x2f6b10[_0x3d3ded('0x3c')],_0x2a683e=_0xee83d1[_0x3d3ded('0x37')];let _0x77423a=_0xee83d1[_0x3d3ded('0x37')]+_0xee83d1[_0x3d3ded('0xd')],_0x3f7f1e;return _0x77423a>=_0x564226?(_0x77423a=_0x564226,_0x3f7f1e=0xc8):_0x3f7f1e=0xce,_0x12592d[_0x3d3ded('0x28')](_0x3f7f1e),_0x12592d[_0x3d3ded('0x2c')](_0x3d3ded('0x4a'),_0x2a683e+'-'+_0x77423a+'/'+_0x564226)[_0x3d3ded('0x25')](_0x2f6b10);}return null;};}function saveUpdates(_0x5229d4){return function(_0x38ad2a){const _0x47857e=a147_0xda56;if(_0x38ad2a)return _0x38ad2a['update'](_0x5229d4)[_0x47857e('0x22')](function(_0x14c99c){return _0x14c99c;});return null;};}function handleEntityNotFound(_0x555e86){return function(_0x3eff5d){const _0xfe74bb=a147_0xda56;return!_0x3eff5d&&_0x555e86[_0xfe74bb('0x0')](0x194),_0x3eff5d;};}function handleError(_0x542cb9,_0x523220){return _0x523220=_0x523220||0x1f4,function(_0x23ba71){const _0x431e9e=a147_0xda56;logger['error'](_0x23ba71[_0x431e9e('0x15')]),_0x23ba71[_0x431e9e('0x20')]&&delete _0x23ba71[_0x431e9e('0x20')],_0x542cb9['status'](_0x523220)['send'](_0x23ba71);};}exports[_0xb9c15c('0x1e')]=function(_0x2570aa,_0x594623){const _0x9f56b2=_0xb9c15c;let _0x103ac6={};const _0x3d1308={},_0x55197e={'count':0x0,'rows':[]},_0x3ac227=_[_0x9f56b2('0x11')](db[_0x9f56b2('0x59')][_0x9f56b2('0x48')],function(_0x4ef3e6){const _0x26f9a9=_0x9f56b2;return{'name':_0x4ef3e6[_0x26f9a9('0x55')],'type':_0x4ef3e6[_0x26f9a9('0x62')]['key']};});_0x3d1308[_0x9f56b2('0x13')]=_[_0x9f56b2('0x11')](_0x3ac227,'name'),_0x3d1308[_0x9f56b2('0x3b')]=_['keys'](_0x2570aa[_0x9f56b2('0x3b')]),_0x3d1308['filters']=_[_0x9f56b2('0x46')](_0x3d1308[_0x9f56b2('0x13')],_0x3d1308['query']),_0x103ac6[_0x9f56b2('0xc')]=_['intersection'](_0x3d1308[_0x9f56b2('0x13')],qs[_0x9f56b2('0xe')](_0x2570aa[_0x9f56b2('0x3b')][_0x9f56b2('0xe')])),_0x103ac6[_0x9f56b2('0xc')]=_0x103ac6[_0x9f56b2('0xc')][_0x9f56b2('0x5')]?_0x103ac6[_0x9f56b2('0xc')]:_0x3d1308[_0x9f56b2('0x13')];typeof _0x2570aa[_0x9f56b2('0x3b')][_0x9f56b2('0x5e')]===_0x9f56b2('0x44')&&(_0x103ac6['limit']=qs[_0x9f56b2('0xd')](_0x2570aa['query'][_0x9f56b2('0xd')]),_0x103ac6['offset']=qs[_0x9f56b2('0x37')](_0x2570aa[_0x9f56b2('0x3b')]['offset']));_0x103ac6[_0x9f56b2('0x23')]=qs[_0x9f56b2('0x14')](_0x2570aa[_0x9f56b2('0x3b')][_0x9f56b2('0x14')]),_0x103ac6['where']=qs[_0x9f56b2('0x33')](_['pick'](_0x2570aa[_0x9f56b2('0x3b')],_0x3d1308[_0x9f56b2('0x33')]),_0x3ac227);_0x2570aa[_0x9f56b2('0x3b')]['filter']&&(_0x103ac6[_0x9f56b2('0x1')]=_[_0x9f56b2('0x18')](_0x103ac6['where'],{[Op['or']]:_[_0x9f56b2('0x11')](_0x3ac227,function(_0x42630b){const _0x3f107c=_0x9f56b2;if(_0x42630b['type']!=='VIRTUAL'){const _0x12a420={};return _0x12a420[_0x42630b[_0x3f107c('0x20')]]={[Op['like']]:'%'+_0x2570aa[_0x3f107c('0x3b')][_0x3f107c('0x5b')]+'%'},_0x12a420;}})}));_0x103ac6=_['merge']({},_0x103ac6,_0x2570aa[_0x9f56b2('0xa')]);const _0x1234a7={'where':_0x103ac6[_0x9f56b2('0x1')]};return db[_0x9f56b2('0x59')]['count'](_0x1234a7)[_0x9f56b2('0x22')](function(_0x104f86){const _0x486d8a=_0x9f56b2;return _0x55197e['count']=_0x104f86,_0x2570aa[_0x486d8a('0x3b')][_0x486d8a('0x1d')]&&(_0x103ac6['include']=[{'all':!![]}]),db[_0x486d8a('0x59')][_0x486d8a('0x1c')](_0x103ac6);})[_0x9f56b2('0x22')](function(_0x22caf8){return _0x55197e['rows']=_0x22caf8,_0x55197e;})[_0x9f56b2('0x22')](respondWithFilteredResult(_0x594623,_0x103ac6))[_0x9f56b2('0x3e')](handleError(_0x594623,null));},exports[_0xb9c15c('0x5f')]=function(_0x4233e6,_0x3e837c){const _0x2024e9=_0xb9c15c;let _0x5701f5={'raw':!![],'where':{'id':_0x4233e6[_0x2024e9('0x2d')]['id']}};const _0x546802={};return _0x546802[_0x2024e9('0x13')]=_[_0x2024e9('0x42')](db['CmHopperFinal'][_0x2024e9('0x48')]),_0x546802[_0x2024e9('0x3b')]=_[_0x2024e9('0x42')](_0x4233e6['query']),_0x546802[_0x2024e9('0x33')]=_['intersection'](_0x546802[_0x2024e9('0x13')],_0x546802['query']),_0x5701f5[_0x2024e9('0xc')]=_['intersection'](_0x546802['model'],qs['fields'](_0x4233e6[_0x2024e9('0x3b')]['fields'])),_0x5701f5[_0x2024e9('0xc')]=_0x5701f5[_0x2024e9('0xc')]['length']?_0x5701f5[_0x2024e9('0xc')]:_0x546802[_0x2024e9('0x13')],_0x4233e6[_0x2024e9('0x3b')][_0x2024e9('0x1d')]&&(_0x5701f5[_0x2024e9('0x60')]=[{'all':!![]}]),_0x5701f5=_['merge']({},_0x5701f5,_0x4233e6[_0x2024e9('0xa')]),db[_0x2024e9('0x59')][_0x2024e9('0x2e')](_0x5701f5)[_0x2024e9('0x22')](handleEntityNotFound(_0x3e837c,null))['then'](respondWithResult(_0x3e837c,null))['catch'](handleError(_0x3e837c,null));},exports[_0xb9c15c('0x64')]=function(_0x4a1eb5,_0xe54b3f){const _0x4a798f=_0xb9c15c;return db[_0x4a798f('0x59')][_0x4a798f('0x64')]()['then'](respondWithResult(_0xe54b3f,null))['catch'](handleError(_0xe54b3f,null));},exports[_0xb9c15c('0x5d')]=function(_0x1de6ac,_0x1ed56d){const _0x31790a=_0xb9c15c;return _0x1de6ac[_0x31790a('0x10')][_0x31790a('0x31')]&&delete _0x1de6ac[_0x31790a('0x10')]['uniqueid'],db[_0x31790a('0x59')][_0x31790a('0x2e')]({'where':{'uniqueid':_0x1de6ac[_0x31790a('0x2d')]['id']}})[_0x31790a('0x22')](handleEntityNotFound(_0x1ed56d,null))['then'](saveUpdates(_0x1de6ac[_0x31790a('0x10')],null))[_0x31790a('0x22')](respondWithResult(_0x1ed56d,null))[_0x31790a('0x3e')](handleError(_0x1ed56d,null));},exports[_0xb9c15c('0xb')]=function(_0x16b65f,_0x486945){const _0x1e8ee8=_0xb9c15c;return db[_0x1e8ee8('0x59')][_0x1e8ee8('0x1c')]({'raw':![],'where':{'VoiceQueueId':_0x16b65f['params']['id']},'attributes':[[fn(_0x1e8ee8('0x4d'),fn('IF',literal(_0x1e8ee8('0x4c')))),'noSuchContacts'],[fn('COUNT',fn('IF',literal(_0x1e8ee8('0x5c')))),_0x1e8ee8('0x12')],[fn(_0x1e8ee8('0x4d'),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),'busyContacts'],[fn(_0x1e8ee8('0x4d'),fn('IF',literal(_0x1e8ee8('0x6')))),'congestionContacts'],[fn(_0x1e8ee8('0x4d'),fn('IF',literal(_0x1e8ee8('0x32')))),_0x1e8ee8('0x36')],[fn('COUNT',fn('IF',literal(_0x1e8ee8('0x3a')))),'abandonedContacts'],[fn('COUNT',fn('IF',literal(_0x1e8ee8('0x2')))),'reCallContacts'],[fn(_0x1e8ee8('0x4d'),fn('IF',literal(_0x1e8ee8('0x43')))),_0x1e8ee8('0x19')]]})[_0x1e8ee8('0x22')](handleEntityNotFound(_0x486945,null))['then'](respondWithResult(_0x486945,null))[_0x1e8ee8('0x3e')](handleError(_0x486945,null));},exports[_0xb9c15c('0x1a')]=function(_0x13795e,_0x526b29){const _0x145f99=_0xb9c15c;return db[_0x145f99('0x59')][_0x145f99('0x1c')]({'raw':![],'where':{'CampaignId':_0x13795e[_0x145f99('0x2d')]['id']},'attributes':[[fn(_0x145f99('0x4d'),fn('IF',literal(_0x145f99('0x4c')))),_0x145f99('0x51')],[fn(_0x145f99('0x4d'),fn('IF',literal(_0x145f99('0x5c')))),_0x145f99('0x12')],[fn('COUNT',fn('IF',literal(_0x145f99('0x4')))),'busyContacts'],[fn(_0x145f99('0x4d'),fn('IF',literal(_0x145f99('0x6')))),_0x145f99('0x21')],[fn(_0x145f99('0x4d'),fn('IF',literal('`state`\x20=\x2010\x20,\x201,\x20null'))),'dropContacts'],[fn(_0x145f99('0x4d'),fn('IF',literal('`state`\x20=\x2011\x20,\x201,\x20null'))),'abandonedContacts'],[fn(_0x145f99('0x4d'),fn('IF',literal(_0x145f99('0x2')))),_0x145f99('0x7')],[fn('COUNT',fn('IF',literal(_0x145f99('0x43')))),_0x145f99('0x19')]]})[_0x145f99('0x22')](handleEntityNotFound(_0x526b29,null))['then'](respondWithResult(_0x526b29,null))['catch'](handleError(_0x526b29,null));},exports['moveContactsQueueCampaignHopperFinal']=function(_0x4880f0,_0x49d330){const _0x386016=_0xb9c15c;return db[_0x386016('0x3d')][_0x386016('0x2e')]({'where':{'id':_0x4880f0[_0x386016('0x2d')]['id']}})[_0x386016('0x22')](handleEntityNotFound(_0x49d330,null))[_0x386016('0x22')](function(_0x331b8e){const _0x3ca295=_0x386016;let _0x52da53;if(_0x331b8e)return _0x52da53=squel[_0x3ca295('0x16')]()[_0x3ca295('0x24')](_0x3ca295('0x61'))[_0x3ca295('0x35')]([_0x3ca295('0x41'),_0x3ca295('0x45'),_0x3ca295('0x52'),_0x3ca295('0x4f'),_0x3ca295('0x30'),'createdAt','updatedAt'],squel[_0x3ca295('0x3')]()['field'](_0x3ca295('0x2b'),_0x3ca295('0x41'))['field'](_0x3ca295('0x2a'),_0x3ca295('0x45'))['field'](_0x3ca295('0x26'),_0x3ca295('0x52'))[_0x3ca295('0x58')](_0x3ca295('0x1b'),_0x3ca295('0x4f'))[_0x3ca295('0x58')]('ANY_VALUE(VoiceQueueId)','VoiceQueueId')[_0x3ca295('0x58')](_0x3ca295('0x2a'),_0x3ca295('0x5a'))['field']('NOW()','updatedAt')[_0x3ca295('0x3f')]('cm_hopper_final')[_0x3ca295('0x1')]('VoiceQueueId\x20=\x20?',_0x4880f0[_0x3ca295('0x2d')]['id'][_0x3ca295('0x27')]())['where']('state\x20=\x20?',_0x4880f0['body'][_0x3ca295('0x1f')]['toString']())[_0x3ca295('0x1')]('calleridnum\x20IS\x20NOT\x20NULL')[_0x3ca295('0x1')]('calleridnum\x20NOT\x20IN\x20(?)',squel['select']()[_0x3ca295('0x58')](_0x3ca295('0x41'))[_0x3ca295('0x3f')]('cm_hopper')[_0x3ca295('0x1')]('VoiceQueueId\x20=\x20?',_0x4880f0['params']['id'][_0x3ca295('0x27')]()))['where']('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x3ca295('0x3')]()[_0x3ca295('0x58')](_0x3ca295('0x63'))[_0x3ca295('0x3f')](_0x3ca295('0x40'))['where'](_0x3ca295('0x56'),_0x4880f0[_0x3ca295('0x2d')]['id']['toString']())[_0x3ca295('0x1')](_0x3ca295('0x53')))[_0x3ca295('0x54')](_0x3ca295('0x52')))['toString'](),db['sequelize'][_0x3ca295('0x3b')](_0x52da53);return[];})[_0x386016('0x22')](respondWithResult(_0x49d330,null))[_0x386016('0x3e')](handleError(_0x49d330,null));},exports[_0xb9c15c('0x4e')]=function(_0x424760,_0x733dd6){const _0x144fdd=_0xb9c15c;return db[_0x144fdd('0x8')][_0x144fdd('0x2e')]({'where':{'id':_0x424760[_0x144fdd('0x2d')]['id']}})['then'](handleEntityNotFound(_0x733dd6,null))[_0x144fdd('0x22')](function(_0x3eeb5b){const _0x539e9c=_0x144fdd;let _0x5878ba;if(_0x3eeb5b)return _0x5878ba=squel[_0x539e9c('0x16')]()[_0x539e9c('0x24')](_0x539e9c('0x61'))['fromQuery']([_0x539e9c('0x41'),_0x539e9c('0x45'),_0x539e9c('0x52'),'ListId',_0x539e9c('0x34'),'createdAt',_0x539e9c('0x49')],squel['select']()[_0x539e9c('0x58')](_0x539e9c('0x2b'),_0x539e9c('0x41'))[_0x539e9c('0x58')](_0x539e9c('0x2a'),_0x539e9c('0x45'))[_0x539e9c('0x58')](_0x539e9c('0x26'),_0x539e9c('0x52'))[_0x539e9c('0x58')]('ANY_VALUE(ListId)',_0x539e9c('0x4f'))[_0x539e9c('0x58')]('ANY_VALUE(CampaignId)',_0x539e9c('0x34'))['field']('NOW()','createdAt')['field'](_0x539e9c('0x2a'),'updatedAt')[_0x539e9c('0x3f')](_0x539e9c('0x40'))[_0x539e9c('0x1')](_0x539e9c('0xf'),_0x424760[_0x539e9c('0x2d')]['id'][_0x539e9c('0x27')]())[_0x539e9c('0x1')](_0x539e9c('0x4b'),_0x424760['body']['state']['toString']())['where']('calleridnum\x20IS\x20NOT\x20NULL')[_0x539e9c('0x1')](_0x539e9c('0x38'),squel[_0x539e9c('0x3')]()['field'](_0x539e9c('0x41'))[_0x539e9c('0x3f')](_0x539e9c('0x61'))[_0x539e9c('0x1')](_0x539e9c('0xf'),_0x424760[_0x539e9c('0x2d')]['id'][_0x539e9c('0x27')]()))[_0x539e9c('0x1')](_0x539e9c('0x38'),squel[_0x539e9c('0x3')]()[_0x539e9c('0x58')](_0x539e9c('0x63'))['from'](_0x539e9c('0x40'))[_0x539e9c('0x1')]('CampaignId\x20=\x20?',_0x424760[_0x539e9c('0x2d')]['id'][_0x539e9c('0x27')]())[_0x539e9c('0x1')](_0x539e9c('0x53')))['group'](_0x539e9c('0x52')))[_0x539e9c('0x27')](),db[_0x539e9c('0x50')][_0x539e9c('0x3b')](_0x5878ba);return[];})['then'](respondWithResult(_0x733dd6,null))[_0x144fdd('0x3e')](handleError(_0x733dd6,null));},exports[_0xb9c15c('0x17')]=function(_0x2fd2cf,_0x28f8d3){const _0x45ffd2=_0xb9c15c;return db[_0x45ffd2('0x57')]['findOne']({'where':{'VoiceQueueId':_0x2fd2cf[_0x45ffd2('0x10')]['VoiceQueueId'],'CampaignId':_0x2fd2cf['body'][_0x45ffd2('0x34')],'ContactId':_0x2fd2cf[_0x45ffd2('0x10')]['ContactId']}})[_0x45ffd2('0x22')](handleEntityNotFound(_0x28f8d3,null))[_0x45ffd2('0x22')](function(_0x412056){if(_0x412056)return _0x412056;return null;})[_0x45ffd2('0x22')](respondWithResult(_0x28f8d3,null))[_0x45ffd2('0x3e')](handleError(_0x28f8d3,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index 53c2622..d563a74 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a148_0x47c5=['exports','./cmHopperFinal.attributes','calleridnum','CmHopperFinal','uniqueid'];(function(_0x41b71d,_0x47c513){const _0x546fd9=function(_0x27b8ba){while(--_0x27b8ba){_0x41b71d['push'](_0x41b71d['shift']());}};_0x546fd9(++_0x47c513);}(a148_0x47c5,0xb1));const a148_0x546f=function(_0x41b71d,_0x47c513){_0x41b71d=_0x41b71d-0x0;let _0x546fd9=a148_0x47c5[_0x41b71d];return _0x546fd9;};const _0x2d04ab=a148_0x546f;'use strict';const attributes=require(_0x2d04ab('0x4'));module[_0x2d04ab('0x3')]=function(_0x27b8ba){const _0x2c9f60=_0x2d04ab,_0x2cf3bf=_0x27b8ba['define'](_0x2c9f60('0x1'),attributes,{'tableName':'cm_hopper_final','paranoid':![],'indexes':[{'name':'calleridnum','fields':[_0x2c9f60('0x0')]},{'name':'uniqueid','fields':[_0x2c9f60('0x2')]}],'timestamps':!![]});return _0x2cf3bf;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index 83fb36b..f04074e 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a149_0x15a9=['message','../../config/logger','options','body','then','raw','../../mysqldb','debug','CmHopperFinal','info','error','catch','CreateCmHopperFinal','rpc'];(function(_0x31053d,_0x15a949){const _0x39b4c7=function(_0x510a5e){while(--_0x510a5e){_0x31053d['push'](_0x31053d['shift']());}};_0x39b4c7(++_0x15a949);}(a149_0x15a9,0x15d));const a149_0x39b4=function(_0x31053d,_0x15a949){_0x31053d=_0x31053d-0x0;let _0x39b4c7=a149_0x15a9[_0x31053d];return _0x39b4c7;};const _0x1955b3=a149_0x39b4;'use strict';const db=require(_0x1955b3('0x7'))['db'],logger=require(_0x1955b3('0x2'))(_0x1955b3('0x0'));exports[_0x1955b3('0xd')]=function(_0x510a5e){const _0x7f272a=this;return new Promise(function(_0x5d6d87,_0x20568b){const _0x64ebe4=a149_0x39b4;return db[_0x64ebe4('0x9')]['create'](_0x510a5e[_0x64ebe4('0x4')],{'raw':_0x510a5e[_0x64ebe4('0x3')]?_0x510a5e[_0x64ebe4('0x3')][_0x64ebe4('0x6')]===undefined?!![]:![]:!![]})[_0x64ebe4('0x5')](function(_0x5ce623){const _0x1a7f6c=_0x64ebe4;logger[_0x1a7f6c('0xa')](_0x1a7f6c('0xd'),_0x510a5e),logger[_0x1a7f6c('0x8')](_0x1a7f6c('0xd'),_0x510a5e,JSON['stringify'](_0x5ce623)),_0x5d6d87(_0x5ce623);})[_0x64ebe4('0xc')](function(_0x197bba){const _0x9c10d5=_0x64ebe4;logger['error']('CreateCmHopperFinal',_0x197bba[_0x9c10d5('0x1')],_0x510a5e),_0x20568b(_0x7f272a[_0x9c10d5('0xb')](0x1f4,_0x197bba[_0x9c10d5('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index bc5db46..c398844 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a150_0x4288=['./cmHopperFinal.controller','/:id','moveContactsQueueCampaignHopperFinal','checkContactHopper','/voice/queue/moveContacts/:id','/checkContactHopper','show','exports','isAuthenticated','index','countContactsQueueCampaignHopperFinal','/voice/queue/countAttributes/:id','get','post','describe','../../components/auth/service','update','/campaign/countAttributes/:id','express','countContactsIvrCampaignHopperFinal','moveContactsIvrCampaignHopperFinal'];(function(_0x772b76,_0x4288eb){const _0xf37cf2=function(_0x4061dc){while(--_0x4061dc){_0x772b76['push'](_0x772b76['shift']());}};_0xf37cf2(++_0x4288eb);}(a150_0x4288,0xf6));const a150_0xf37c=function(_0x772b76,_0x4288eb){_0x772b76=_0x772b76-0x0;let _0xf37cf2=a150_0x4288[_0x772b76];return _0xf37cf2;};const _0x1c8d37=a150_0xf37c;'use strict';const express=require(_0x1c8d37('0x3')),router=express['Router'](),auth=require(_0x1c8d37('0x0')),controller=require(_0x1c8d37('0x6'));router[_0x1c8d37('0x12')]('/',auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0xf')]),router[_0x1c8d37('0x12')]('/describe',auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x14')]),router[_0x1c8d37('0x12')]('/:id',auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0xc')]),router[_0x1c8d37('0x12')](_0x1c8d37('0x11'),auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x10')]),router[_0x1c8d37('0x12')](_0x1c8d37('0x2'),auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x4')]),router[_0x1c8d37('0x13')](_0x1c8d37('0xa'),auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x8')]),router[_0x1c8d37('0x13')]('/voice/campaign/moveContacts/:id',auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x5')]),router[_0x1c8d37('0x13')](_0x1c8d37('0xb'),auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x9')]),router['put'](_0x1c8d37('0x7'),auth[_0x1c8d37('0xe')](),controller[_0x1c8d37('0x1')]),module[_0x1c8d37('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index a17b78b..b88b5ad 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a151_0x3bf2=['exports','STRING','INTEGER','DATE','BOOLEAN'];(function(_0x241224,_0x3bf2ee){const _0x138131=function(_0x5a0ec2){while(--_0x5a0ec2){_0x241224['push'](_0x241224['shift']());}};_0x138131(++_0x3bf2ee);}(a151_0x3bf2,0xea));const a151_0x1381=function(_0x241224,_0x3bf2ee){_0x241224=_0x241224-0x0;let _0x138131=a151_0x3bf2[_0x241224];return _0x138131;};const _0x5ec557=a151_0x1381;'use strict';const Sequelize=require('sequelize');module[_0x5ec557('0x1')]={'state':{'type':Sequelize[_0x5ec557('0x3')](0x2)},'statedesc':{'type':Sequelize[_0x5ec557('0x2')]},'scheduledat':{'type':Sequelize[_0x5ec557('0x4')]},'countbusyretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x5ec557('0x2')]},'originatecalleridnum':{'type':Sequelize[_0x5ec557('0x2')]},'originatecalleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x5ec557('0x2')]},'calleridname':{'type':Sequelize[_0x5ec557('0x2')]},'starttime':{'type':Sequelize[_0x5ec557('0x4')]},'responsetime':{'type':Sequelize[_0x5ec557('0x4')]},'answertime':{'type':Sequelize['DATE']},'droptime':{'type':Sequelize[_0x5ec557('0x4')]},'endtime':{'type':Sequelize['DATE']},'ringtime':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x5ec557('0x2')]},'campaign':{'type':Sequelize[_0x5ec557('0x2')]},'campaigntype':{'type':Sequelize[_0x5ec557('0x2')]},'membername':{'type':Sequelize[_0x5ec557('0x2')]},'reason':{'type':Sequelize[_0x5ec557('0x2')]},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize[_0x5ec557('0x0')],'defaultValue':![]},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize[_0x5ec557('0x4')]},'recallme':{'type':Sequelize[_0x5ec557('0x0')],'defaultValue':![]},'editedat':{'type':Sequelize[_0x5ec557('0x4')]},'edited':{'type':Sequelize[_0x5ec557('0x0')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x5ec557('0x3')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.controller.js b/server/api/cmHopperHistory/cmHopperHistory.controller.js index 0840b03..f877e52 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a152_0x3d0d=['attributes','send','query','merge','where','show','limit','name','sendStatus','then','uniqueid','filters','body','../../components/parsers/qs','map','order','keys','length','offset','describe','type','catch','index','findAll','options','count','CmHopperHistory','api','pick','json','filter','rows','../../mysqldb','fields','include','status','rawAttributes','nolimit','intersection','VIRTUAL','key','sequelize','includeAll','sort','like','Content-Range','update','model','params','set'];(function(_0x778ffc,_0x3d0d6e){const _0x220736=function(_0x12eb52){while(--_0x12eb52){_0x778ffc['push'](_0x778ffc['shift']());}};_0x220736(++_0x3d0d6e);}(a152_0x3d0d,0x6b));const a152_0x2207=function(_0x778ffc,_0x3d0d6e){_0x778ffc=_0x778ffc-0x0;let _0x220736=a152_0x3d0d[_0x778ffc];return _0x220736;};const _0x3bae4d=a152_0x2207;'use strict';const _=require('lodash'),qs=require(_0x3bae4d('0x6')),logger=require('../../config/logger')(_0x3bae4d('0x14')),db=require(_0x3bae4d('0x19'))['db'],{Op}=require(_0x3bae4d('0x22'));function respondWithResult(_0x12eb52,_0x359501){return _0x359501=_0x359501||0xc8,function(_0x21f54d){if(_0x21f54d)return _0x12eb52['status'](_0x359501)['json'](_0x21f54d);};}function respondWithFilteredResult(_0x1daddf,_0x3ab7b5){return function(_0xae35c0){const _0x156b62=a152_0x2207;if(_0xae35c0){const _0x8479de=_0xae35c0[_0x156b62('0x12')],_0x68a7d2=_0x3ab7b5[_0x156b62('0xb')];let _0x5dbe9e=_0x3ab7b5[_0x156b62('0xb')]+_0x3ab7b5[_0x156b62('0x31')],_0x2bb67b;return _0x5dbe9e>=_0x8479de?(_0x5dbe9e=_0x8479de,_0x2bb67b=0xc8):_0x2bb67b=0xce,_0x1daddf[_0x156b62('0x1c')](_0x2bb67b),_0x1daddf[_0x156b62('0x2a')](_0x156b62('0x26'),_0x68a7d2+'-'+_0x5dbe9e+'/'+_0x8479de)[_0x156b62('0x16')](_0xae35c0);}return null;};}function saveUpdates(_0x46406b){return function(_0x3576ec){const _0x37b4ce=a152_0x2207;if(_0x3576ec)return _0x3576ec['update'](_0x46406b)[_0x37b4ce('0x2')](function(_0x441e10){return _0x441e10;});return null;};}function handleEntityNotFound(_0x242207){return function(_0x3c1e76){const _0x13ebfa=a152_0x2207;return!_0x3c1e76&&_0x242207[_0x13ebfa('0x1')](0x194),_0x3c1e76;};}function handleError(_0x2dd462,_0x43ebe9){return _0x43ebe9=_0x43ebe9||0x1f4,function(_0x3bfbf6){const _0x538a11=a152_0x2207;logger['error'](_0x3bfbf6['stack']),_0x3bfbf6['name']&&delete _0x3bfbf6[_0x538a11('0x0')],_0x2dd462[_0x538a11('0x1c')](_0x43ebe9)[_0x538a11('0x2c')](_0x3bfbf6);};}exports[_0x3bae4d('0xf')]=function(_0x5dfcdb,_0x5a9aff){const _0x101633=_0x3bae4d;let _0x388244={};const _0x42d30d={},_0xa29693={'count':0x0,'rows':[]},_0x11a49c=_[_0x101633('0x7')](db[_0x101633('0x13')][_0x101633('0x1d')],function(_0x1e0020){const _0x16d2e6=_0x101633;return{'name':_0x1e0020['fieldName'],'type':_0x1e0020[_0x16d2e6('0xd')][_0x16d2e6('0x21')]};});_0x42d30d[_0x101633('0x28')]=_[_0x101633('0x7')](_0x11a49c,_0x101633('0x0')),_0x42d30d[_0x101633('0x2d')]=_[_0x101633('0x9')](_0x5dfcdb[_0x101633('0x2d')]),_0x42d30d[_0x101633('0x4')]=_[_0x101633('0x1f')](_0x42d30d['model'],_0x42d30d['query']),_0x388244['attributes']=_[_0x101633('0x1f')](_0x42d30d[_0x101633('0x28')],qs['fields'](_0x5dfcdb[_0x101633('0x2d')][_0x101633('0x1a')])),_0x388244[_0x101633('0x2b')]=_0x388244['attributes']['length']?_0x388244['attributes']:_0x42d30d[_0x101633('0x28')];typeof _0x5dfcdb[_0x101633('0x2d')][_0x101633('0x1e')]==='undefined'&&(_0x388244[_0x101633('0x31')]=qs['limit'](_0x5dfcdb['query'][_0x101633('0x31')]),_0x388244[_0x101633('0xb')]=qs['offset'](_0x5dfcdb[_0x101633('0x2d')][_0x101633('0xb')]));_0x388244[_0x101633('0x8')]=qs[_0x101633('0x24')](_0x5dfcdb[_0x101633('0x2d')][_0x101633('0x24')]),_0x388244[_0x101633('0x2f')]=qs[_0x101633('0x4')](_[_0x101633('0x15')](_0x5dfcdb[_0x101633('0x2d')],_0x42d30d[_0x101633('0x4')]),_0x11a49c);_0x5dfcdb['query'][_0x101633('0x17')]&&(_0x388244[_0x101633('0x2f')]=_[_0x101633('0x2e')](_0x388244[_0x101633('0x2f')],{[Op['or']]:_[_0x101633('0x7')](_0x11a49c,function(_0x35784e){const _0x37d6b1=_0x101633;if(_0x35784e[_0x37d6b1('0xd')]!==_0x37d6b1('0x20')){const _0x138683={};return _0x138683[_0x35784e['name']]={[Op[_0x37d6b1('0x25')]]:'%'+_0x5dfcdb['query'][_0x37d6b1('0x17')]+'%'},_0x138683;}})}));_0x388244=_[_0x101633('0x2e')]({},_0x388244,_0x5dfcdb[_0x101633('0x11')]);const _0x1fd2e2={'where':_0x388244[_0x101633('0x2f')]};return db[_0x101633('0x13')][_0x101633('0x12')](_0x1fd2e2)[_0x101633('0x2')](function(_0x1d423f){const _0x5a42c4=_0x101633;return _0xa29693[_0x5a42c4('0x12')]=_0x1d423f,_0x5dfcdb[_0x5a42c4('0x2d')]['includeAll']&&(_0x388244[_0x5a42c4('0x1b')]=[{'all':!![]}]),db[_0x5a42c4('0x13')][_0x5a42c4('0x10')](_0x388244);})[_0x101633('0x2')](function(_0x1b0e1b){const _0x5b529b=_0x101633;return _0xa29693[_0x5b529b('0x18')]=_0x1b0e1b,_0xa29693;})[_0x101633('0x2')](respondWithFilteredResult(_0x5a9aff,_0x388244))[_0x101633('0xe')](handleError(_0x5a9aff,null));},exports[_0x3bae4d('0x30')]=function(_0x3cfdfb,_0x1f919b){const _0x308b2c=_0x3bae4d;let _0x198300={'raw':!![],'where':{'id':_0x3cfdfb['params']['id']}};const _0x1f5bbc={};return _0x1f5bbc['model']=_['keys'](db[_0x308b2c('0x13')][_0x308b2c('0x1d')]),_0x1f5bbc[_0x308b2c('0x2d')]=_['keys'](_0x3cfdfb['query']),_0x1f5bbc[_0x308b2c('0x4')]=_[_0x308b2c('0x1f')](_0x1f5bbc[_0x308b2c('0x28')],_0x1f5bbc['query']),_0x198300[_0x308b2c('0x2b')]=_[_0x308b2c('0x1f')](_0x1f5bbc[_0x308b2c('0x28')],qs[_0x308b2c('0x1a')](_0x3cfdfb[_0x308b2c('0x2d')][_0x308b2c('0x1a')])),_0x198300['attributes']=_0x198300[_0x308b2c('0x2b')][_0x308b2c('0xa')]?_0x198300[_0x308b2c('0x2b')]:_0x1f5bbc[_0x308b2c('0x28')],_0x3cfdfb[_0x308b2c('0x2d')][_0x308b2c('0x23')]&&(_0x198300[_0x308b2c('0x1b')]=[{'all':!![]}]),_0x198300=_[_0x308b2c('0x2e')]({},_0x198300,_0x3cfdfb[_0x308b2c('0x11')]),db['CmHopperHistory']['findOne'](_0x198300)[_0x308b2c('0x2')](handleEntityNotFound(_0x1f919b,null))[_0x308b2c('0x2')](respondWithResult(_0x1f919b,null))[_0x308b2c('0xe')](handleError(_0x1f919b,null));},exports['create']=function(_0x447fb5,_0x296d0c){const _0x41a7fa=_0x3bae4d;return db[_0x41a7fa('0x13')]['create'](_0x447fb5[_0x41a7fa('0x5')],{})['then'](respondWithResult(_0x296d0c,0xc9))[_0x41a7fa('0xe')](handleError(_0x296d0c,null));},exports[_0x3bae4d('0xc')]=function(_0x4cdcc7,_0x110de2){const _0x2b0ebb=_0x3bae4d;return db[_0x2b0ebb('0x13')][_0x2b0ebb('0xc')]()[_0x2b0ebb('0x2')](respondWithResult(_0x110de2,null))[_0x2b0ebb('0xe')](handleError(_0x110de2,null));},exports[_0x3bae4d('0x27')]=function(_0x296703,_0x51741b){const _0x2c1f56=_0x3bae4d;return _0x296703[_0x2c1f56('0x5')][_0x2c1f56('0x3')]&&delete _0x296703['body'][_0x2c1f56('0x3')],db['CmHopperHistory']['findOne']({'where':{'uniqueid':_0x296703[_0x2c1f56('0x29')]['id']}})[_0x2c1f56('0x2')](handleEntityNotFound(_0x51741b,null))['then'](saveUpdates(_0x296703[_0x2c1f56('0x5')],null))[_0x2c1f56('0x2')](respondWithResult(_0x51741b,null))['catch'](handleError(_0x51741b,null));}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index d396e59..bb03163 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a153_0x189f=['./cmHopperHistory.attributes','uniqueid','cm_hopper_history','endtime','exports'];(function(_0x94f567,_0x189f7e){const _0x50740a=function(_0x2060ee){while(--_0x2060ee){_0x94f567['push'](_0x94f567['shift']());}};_0x50740a(++_0x189f7e);}(a153_0x189f,0x198));const a153_0x5074=function(_0x94f567,_0x189f7e){_0x94f567=_0x94f567-0x0;let _0x50740a=a153_0x189f[_0x94f567];return _0x50740a;};const _0x460dd9=a153_0x5074;'use strict';const attributes=require(_0x460dd9('0x2'));module[_0x460dd9('0x1')]=function(_0x2060ee){const _0xd82647=_0x460dd9,_0x26c26b=_0x2060ee['define']('CmHopperHistory',attributes,{'tableName':_0xd82647('0x4'),'paranoid':![],'indexes':[{'name':_0xd82647('0x0'),'fields':['endtime']},{'name':_0xd82647('0x3'),'fields':[_0xd82647('0x3')]}],'timestamps':!![]});return _0x26c26b;}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index 1c66300..feef87f 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a154_0x2a03=['catch','where','`state`\x20=\x2013,\x201,\x20null','`state`\x20=\x204,\x201,\x20null','`state`\x20=\x204,\x20`holdtime`,\x20null','`state`\x20=\x2010,\x201,\x20null','name','debug','`state`\x20=\x2012,\x201,\x20null','../../config/logger','sequelize','outboundBlacklistCallsDay','GetCampaignHopperHistory','CreateCmHopperHistory','outboundAnswerCallsDay','options','../../mysqldb','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x204,\x20`talktime`,\x20null','predictiveIntervalDroppedCallsCallersExit','`state`\x20=\x2016,\x201,\x20null','outboundUnknownCallsDay','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','then','AvgHandleTime','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','`state`\x20=\x2011,\x201,\x20null','`state`\x20=\x203,\x201,\x20null','message','CmHopperHistory','error','outboundRejectCallsDay','`state`\x20=\x2014,\x201,\x20null','rpc','body','outboundDropCallsDayCallersExit','predictiveIntervalAvgTalktime','GetVoiceQueueHopperHistory','campaign','outboundCongestionCallsDay','info','outboundDropCallsDayTimeout','findAll','`state`\x20=\x2011\x20,\x201,\x20null','`state`\x20=\x2018,\x201,\x20null','predictiveIntervalAvgHoldtime','AVG','raw','COUNT','`state`\x20=\x208,\x201,\x20null','`state`\x20=\x2010\x20,\x201,\x20null','predictiveIntervalAnsweredCalls','stringify'];(function(_0x399174,_0x2a03d5){const _0x3c6f50=function(_0x526bae){while(--_0x526bae){_0x399174['push'](_0x399174['shift']());}};_0x3c6f50(++_0x2a03d5);}(a154_0x2a03,0x1a3));const a154_0x3c6f=function(_0x399174,_0x2a03d5){_0x399174=_0x399174-0x0;let _0x3c6f50=a154_0x2a03[_0x399174];return _0x3c6f50;};const _0x3f9492=a154_0x3c6f;'use strict';const db=require(_0x3f9492('0x1d'))['db'],{fn,literal,col}=require(_0x3f9492('0x17')),logger=require(_0x3f9492('0x16'))(_0x3f9492('0x2f'));exports[_0x3f9492('0x1a')]=function(_0x526bae){const _0x4cd1a2=this;return new Promise(function(_0x2c11ee,_0x380103){const _0x52626f=a154_0x3c6f;return db[_0x52626f('0x2b')]['create'](_0x526bae[_0x52626f('0x30')],{'raw':_0x526bae[_0x52626f('0x1c')]?_0x526bae['options'][_0x52626f('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0x4f432d){const _0x749aea=_0x52626f;logger['info']('CreateCmHopperHistory',_0x526bae),logger[_0x749aea('0x14')](_0x749aea('0x1a'),_0x526bae,JSON[_0x749aea('0xc')](_0x4f432d)),_0x2c11ee(_0x4f432d);})[_0x52626f('0xd')](function(_0x361b5d){const _0xe25cbf=_0x52626f;logger[_0xe25cbf('0x2c')](_0xe25cbf('0x1a'),_0x361b5d[_0xe25cbf('0x2a')],_0x526bae),_0x380103(_0x4cd1a2[_0xe25cbf('0x2c')](0x1f4,_0x361b5d['message']));});});},exports[_0x3f9492('0x26')]=function(_0x351488){const _0x2d10da=this;return new Promise(function(_0x866cb,_0xb09d51){const _0x9e4436=a154_0x3c6f;return db[_0x9e4436('0x2b')][_0x9e4436('0x2')]({'raw':_0x351488[_0x9e4436('0x1c')]?_0x351488[_0x9e4436('0x1c')]['raw']===undefined?!![]:![]:!![],'where':_0x351488['options']?_0x351488[_0x9e4436('0x1c')][_0x9e4436('0xe')]||null:null,'attributes':[[fn(_0x9e4436('0x8'),col('id')),'predictiveIntervalTotalCalls'],[fn(_0x9e4436('0x8'),fn('IF',literal(_0x9e4436('0x10')))),_0x9e4436('0xb')],[fn('COUNT',fn('IF',literal(_0x9e4436('0x12')))),_0x9e4436('0x1e')],[fn(_0x9e4436('0x8'),fn('IF',literal(_0x9e4436('0x28')))),_0x9e4436('0x20')],[fn('AVG',fn('IF',literal(_0x9e4436('0x11')))),_0x9e4436('0x5')],[fn(_0x9e4436('0x6'),fn('IF',literal(_0x9e4436('0x1f')))),_0x9e4436('0x32')]]})[_0x9e4436('0x25')](function(_0x4df447){const _0x4f4389=_0x9e4436;logger[_0x4f4389('0x0')]('AvgHandleTime',_0x351488),logger[_0x4f4389('0x14')]('AvgHandleTime',_0x351488,JSON[_0x4f4389('0xc')](_0x4df447)),_0x866cb(_0x4df447);})['catch'](function(_0x4ee4ba){const _0x1a1da6=_0x9e4436;logger[_0x1a1da6('0x2c')](_0x1a1da6('0x26'),_0x4ee4ba['message'],_0x351488),_0xb09d51(_0x2d10da[_0x1a1da6('0x2c')](0x1f4,_0x4ee4ba[_0x1a1da6('0x2a')]));});});},exports['GetVoiceQueueHopperHistory']=function(_0x1dd393){const _0x4966d4=this;return new Promise(function(_0x4a342f,_0x5f5a43){const _0x338b26=a154_0x3c6f;return db['CmHopperHistory']['findAll']({'raw':_0x1dd393['options']?_0x1dd393[_0x338b26('0x1c')][_0x338b26('0x7')]===undefined?!![]:![]:!![],'where':_0x1dd393[_0x338b26('0x1c')]?_0x1dd393['options'][_0x338b26('0xe')]||null:null,'attributes':[[_0x338b26('0x34'),_0x338b26('0x13')],[fn(_0x338b26('0x8'),fn('IF',literal('`state`\x20=\x200,\x201,\x20null'))),'outboundNoSuchCallsDay'],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x29')))),_0x338b26('0x23')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x10')))),_0x338b26('0x1b')],[fn('COUNT',fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),'outboundBusyCallsDay'],[fn('COUNT',fn('IF',literal(_0x338b26('0x9')))),_0x338b26('0x35')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0xa')))),_0x338b26('0x1')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x3')))),_0x338b26('0x31')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x15')))),_0x338b26('0x22')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0xf')))),_0x338b26('0x18')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x2e')))),_0x338b26('0x24')],[fn('COUNT',fn('IF',literal(_0x338b26('0x4')))),_0x338b26('0x2d')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x21')))),'outboundAnswerAgiCallsDay'],[fn('COUNT',fn('IF',literal('`state`\x20=\x2020,\x201,\x20null'))),_0x338b26('0x2d')],[fn(_0x338b26('0x8'),fn('IF',literal(_0x338b26('0x27')))),'outboundReCallsDay']],'group':[_0x338b26('0x34')]})[_0x338b26('0x25')](function(_0x5928e9){const _0x4b7e25=_0x338b26;logger[_0x4b7e25('0x0')]('GetVoiceQueueHopperHistory',_0x1dd393),logger['debug']('GetVoiceQueueHopperHistory',_0x1dd393,JSON[_0x4b7e25('0xc')](_0x5928e9)),_0x4a342f(_0x5928e9);})[_0x338b26('0xd')](function(_0x19cbcc){const _0x2e867d=_0x338b26;logger['error'](_0x2e867d('0x33'),_0x19cbcc[_0x2e867d('0x2a')],_0x1dd393),_0x5f5a43(_0x4966d4['error'](0x1f4,_0x19cbcc[_0x2e867d('0x2a')]));});});},exports[_0x3f9492('0x19')]=function(_0x5ab8ef){const _0x34194f=this;return new Promise(function(_0x23a6c5,_0x3caa71){const _0x5a231f=a154_0x3c6f;return db[_0x5a231f('0x2b')][_0x5a231f('0x2')]({'raw':_0x5ab8ef['options']?_0x5ab8ef[_0x5a231f('0x1c')]['raw']===undefined?!![]:![]:!![],'where':_0x5ab8ef['options']?_0x5ab8ef[_0x5a231f('0x1c')]['where']||null:null,'attributes':[[_0x5a231f('0x34'),_0x5a231f('0x13')],[fn(_0x5a231f('0x8'),col('id')),'ivrTotalCallsDays'],[fn('COUNT',fn('IF',literal(_0x5a231f('0x10')))),'ivrAnswerCallsDay']],'group':[_0x5a231f('0x34')]})['then'](function(_0x33bf7e){const _0x3f5ac2=_0x5a231f;logger[_0x3f5ac2('0x0')](_0x3f5ac2('0x19'),_0x5ab8ef),logger['debug'](_0x3f5ac2('0x19'),_0x5ab8ef,JSON[_0x3f5ac2('0xc')](_0x33bf7e)),_0x23a6c5(_0x33bf7e);})['catch'](function(_0x31c44a){const _0x48bbcd=_0x5a231f;logger['error']('GetCampaignHopperHistory',_0x31c44a[_0x48bbcd('0x2a')],_0x5ab8ef),_0x3caa71(_0x34194f[_0x48bbcd('0x2c')](0x1f4,_0x31c44a[_0x48bbcd('0x2a')]));});});}; \ No newline at end of file +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 diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index f299891..2d3d708 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a155_0x20fc=['../../components/auth/service','post','show','isAuthenticated','create','Router','put','update','./cmHopperHistory.controller','get','/describe','/:id','describe','exports'];(function(_0x24c7e8,_0x20fca3){const _0x8a53d2=function(_0x559d44){while(--_0x559d44){_0x24c7e8['push'](_0x24c7e8['shift']());}};_0x8a53d2(++_0x20fca3);}(a155_0x20fc,0x1d2));const a155_0x8a53=function(_0x24c7e8,_0x20fca3){_0x24c7e8=_0x24c7e8-0x0;let _0x8a53d2=a155_0x20fc[_0x24c7e8];return _0x8a53d2;};const _0x376305=a155_0x8a53;'use strict';const express=require('express'),router=express[_0x376305('0x1')](),auth=require(_0x376305('0xa')),controller=require(_0x376305('0x4'));router['get']('/',auth[_0x376305('0xd')](),controller['index']),router[_0x376305('0x5')](_0x376305('0x6'),auth['isAuthenticated'](),controller[_0x376305('0x8')]),router['get'](_0x376305('0x7'),auth[_0x376305('0xd')](),controller[_0x376305('0xc')]),router[_0x376305('0xb')]('/',auth[_0x376305('0xd')](),controller[_0x376305('0x0')]),router[_0x376305('0x2')](_0x376305('0x7'),auth['isAuthenticated'](),controller[_0x376305('0x3')]),module[_0x376305('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index 835b982..7a601aa 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a156_0xf7c0=['name','sequelize','STRING'];(function(_0x1d546f,_0xf7c0c5){const _0x150021=function(_0xd99c05){while(--_0xd99c05){_0x1d546f['push'](_0x1d546f['shift']());}};_0x150021(++_0xf7c0c5);}(a156_0xf7c0,0x1e0));const a156_0x1500=function(_0x1d546f,_0xf7c0c5){_0x1d546f=_0x1d546f-0x0;let _0x150021=a156_0xf7c0[_0x1d546f];return _0x150021;};const _0x24f518=a156_0x1500;'use strict';const Sequelize=require(_0x24f518('0x1'));module['exports']={'name':{'type':Sequelize[_0x24f518('0x2')],'unique':_0x24f518('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x24f518('0x2')]},'dialPrefix':{'type':Sequelize[_0x24f518('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index c633ea1..ac5dfca 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a157_0x5ee1=['isArray','now','index','join','Lists','../../components/parsers/qs','getContacts','sort','text','undefined','/tmp/list_%d_%s.csv','findOne','create','fields','errors','list_%d_%s.csv','catch','describe','raw','model','sendStatus','set','Disposition','sequelize','api','defaultValue','attachment;\x20filename=','update','tags','ListId','findAll','register','UserProfileSection','nolimit','include','autoAssociation','dataValues','fieldName','queryInterface','switch','ids','util','CmList','concat','stack','message','BOOLEAN','key','Sequelize','./cmList.socket','writeFileSync','UserProfileResource','length','VIRTUAL','cf_%s','json','send','attributes','limit','isEmpty','count','status','filter','keys','User','where','push','query','merge','number','addColumn','removeAgents','INTEGER','rows','getDispositions','userProfileId','addCustomFields','destroy','text/csv','addDisposition','name','format','omit','cm_contacts','../../mysqldb','order','then','addAgents','map','type','options','userCmList:save','body','getCustomFields','pick','like','removeDispositions','show','Malformed\x20request\x20syntax','params','intersection','cf_%d','userCmList:remove','setHeader','to-csv','../../rediscache','CmCustomField','user','get','CmContact','getContactsCsv','offset','TEXT','filters','addContacts','includeAll','getAgents','rawAttributes','../../config/logger','CustomFields','Content-type','emit','addCustomField','end','error'];(function(_0x507c12,_0x5ee1ca){const _0x1dde04=function(_0x28ee1d){while(--_0x28ee1d){_0x507c12['push'](_0x507c12['shift']());}};_0x1dde04(++_0x5ee1ca);}(a157_0x5ee1,0xa3));const a157_0x1dde=function(_0x507c12,_0x5ee1ca){_0x507c12=_0x507c12-0x0;let _0x1dde04=a157_0x5ee1[_0x507c12];return _0x1dde04;};const _0x4677ff=a157_0x1dde;'use strict';const util=require(_0x4677ff('0x3')),fs=require('fs'),_=require('lodash'),toCsv=require(_0x4677ff('0x42')),{getSocket}=require(_0x4677ff('0x43')),socket=getSocket(),qs=require(_0x4677ff('0x5c')),logger=require(_0x4677ff('0x50'))(_0x4677ff('0x6f')),db=require(_0x4677ff('0x2e'))['db'],{Op}=require('sequelize');require(_0x4677ff('0xb'))[_0x4677ff('0x76')](socket);function respondWithStatusCode(_0x28ee1d,_0x4bbbd5){return _0x4bbbd5=_0x4bbbd5||0xcc,function(_0x5c6e7a){if(_0x5c6e7a)return _0x28ee1d['sendStatus'](_0x4bbbd5);return _0x28ee1d['status'](_0x4bbbd5)['end']();};}function respondWithResult(_0x5c6b1a,_0x1502c4){return _0x1502c4=_0x1502c4||0xc8,function(_0x5a6c9e){const _0x36e10a=a157_0x1dde;if(_0x5a6c9e)return _0x5c6b1a[_0x36e10a('0x17')](_0x1502c4)[_0x36e10a('0x11')](_0x5a6c9e);};}function respondWithFilteredResult(_0x1d032c,_0x48181){return function(_0x2691f9){const _0x50b743=a157_0x1dde;if(_0x2691f9){const _0x4ff630=_0x2691f9[_0x50b743('0x16')],_0x44f54f=_0x48181[_0x50b743('0x49')];let _0x5b910f=_0x48181[_0x50b743('0x49')]+_0x48181[_0x50b743('0x14')],_0x3864e3;return _0x5b910f>=_0x4ff630?(_0x5b910f=_0x4ff630,_0x3864e3=0xc8):_0x3864e3=0xce,_0x1d032c['status'](_0x3864e3),_0x1d032c[_0x50b743('0x6c')]('Content-Range',_0x44f54f+'-'+_0x5b910f+'/'+_0x4ff630)[_0x50b743('0x11')](_0x2691f9);}return null;};}function saveUpdates(_0x17f52f){return function(_0xfb5980){if(_0xfb5980)return _0xfb5980['update'](_0x17f52f)['then'](function(_0x2c8e56){return _0x2c8e56;});return null;};}function removeEntity(_0x3e12bb){return function(_0x4af021){const _0x1b16b2=a157_0x1dde;if(_0x4af021)return _0x4af021[_0x1b16b2('0x27')]()[_0x1b16b2('0x30')](function(){const _0x4c0030=_0x1b16b2,_0x540e5d=_0x4af021['get']({'plain':!![]}),_0x32f527=_0x4c0030('0x5b');return db[_0x4c0030('0xd')][_0x4c0030('0x27')]({'where':{'type':_0x32f527,'resourceId':_0x540e5d['id']}})[_0x4c0030('0x30')](function(){return _0x4af021;});})[_0x1b16b2('0x30')](function(){const _0x315700=_0x1b16b2;_0x3e12bb[_0x315700('0x17')](0xcc)[_0x315700('0x55')]();});};}function handleEntityNotFound(_0x262f74){return function(_0x4543d3){const _0xa18eed=a157_0x1dde;return!_0x4543d3&&_0x262f74[_0xa18eed('0x6b')](0x194),_0x4543d3;};}function handleError(_0x39f368,_0x4379d7){return _0x4379d7=_0x4379d7||0x1f4,function(_0x372bc4){const _0x1146ad=a157_0x1dde;logger[_0x1146ad('0x56')](_0x372bc4[_0x1146ad('0x6')]),_0x372bc4[_0x1146ad('0x2a')]&&delete _0x372bc4[_0x1146ad('0x2a')],_0x39f368['status'](_0x4379d7)[_0x1146ad('0x12')](_0x372bc4);};}exports[_0x4677ff('0x59')]=function(_0x23c68d,_0x2b09d7){const _0x39e8a7=_0x4677ff;let _0x4d6175={};const _0x4514f8={},_0xdcc1c6={'count':0x0,'rows':[]},_0x282a4d=_['map'](db[_0x39e8a7('0x4')][_0x39e8a7('0x4f')],function(_0x19b857){const _0x143f9f=_0x39e8a7;return{'name':_0x19b857[_0x143f9f('0x7c')],'type':_0x19b857[_0x143f9f('0x33')][_0x143f9f('0x9')]};});_0x4514f8['model']=_[_0x39e8a7('0x32')](_0x282a4d,_0x39e8a7('0x2a')),_0x4514f8[_0x39e8a7('0x1d')]=_[_0x39e8a7('0x19')](_0x23c68d[_0x39e8a7('0x1d')]),_0x4514f8[_0x39e8a7('0x4b')]=_[_0x39e8a7('0x3e')](_0x4514f8['model'],_0x4514f8[_0x39e8a7('0x1d')]),_0x4d6175[_0x39e8a7('0x13')]=_[_0x39e8a7('0x3e')](_0x4514f8[_0x39e8a7('0x6a')],qs['fields'](_0x23c68d[_0x39e8a7('0x1d')][_0x39e8a7('0x64')])),_0x4d6175[_0x39e8a7('0x13')]=_0x4d6175[_0x39e8a7('0x13')][_0x39e8a7('0xe')]?_0x4d6175[_0x39e8a7('0x13')]:_0x4514f8[_0x39e8a7('0x6a')];typeof _0x23c68d[_0x39e8a7('0x1d')][_0x39e8a7('0x78')]===_0x39e8a7('0x60')&&(_0x4d6175[_0x39e8a7('0x14')]=qs[_0x39e8a7('0x14')](_0x23c68d[_0x39e8a7('0x1d')]['limit']),_0x4d6175[_0x39e8a7('0x49')]=qs['offset'](_0x23c68d[_0x39e8a7('0x1d')]['offset']));_0x4d6175['order']=qs['sort'](_0x23c68d[_0x39e8a7('0x1d')]['sort']),_0x4d6175['where']=qs[_0x39e8a7('0x4b')](_[_0x39e8a7('0x38')](_0x23c68d['query'],_0x4514f8[_0x39e8a7('0x4b')]),_0x282a4d);_0x23c68d['query'][_0x39e8a7('0x18')]&&(_0x4d6175[_0x39e8a7('0x1b')]=_[_0x39e8a7('0x1e')](_0x4d6175[_0x39e8a7('0x1b')],{[Op['or']]:_['map'](_0x282a4d,function(_0x2ee576){const _0x3f7cdc=_0x39e8a7;if(_0x2ee576[_0x3f7cdc('0x33')]!==_0x3f7cdc('0xf')){const _0x23d9f4={};return _0x23d9f4[_0x2ee576[_0x3f7cdc('0x2a')]]={[Op['like']]:'%'+_0x23c68d['query'][_0x3f7cdc('0x18')]+'%'},_0x23d9f4;}})}));_0x4d6175=_[_0x39e8a7('0x1e')]({},_0x4d6175,_0x23c68d[_0x39e8a7('0x34')]);const _0x5af833={'where':_0x4d6175['where']};return db[_0x39e8a7('0x4')][_0x39e8a7('0x16')](_0x5af833)['then'](function(_0x589577){const _0x4d5b0d=_0x39e8a7;return _0xdcc1c6['count']=_0x589577,_0x23c68d[_0x4d5b0d('0x1d')]['includeAll']&&(_0x4d6175[_0x4d5b0d('0x79')]=[{'all':!![]}]),db[_0x4d5b0d('0x4')][_0x4d5b0d('0x75')](_0x4d6175);})[_0x39e8a7('0x30')](function(_0x1a627a){const _0x384145=_0x39e8a7;return _0xdcc1c6[_0x384145('0x23')]=_0x1a627a,_0xdcc1c6;})[_0x39e8a7('0x30')](respondWithFilteredResult(_0x2b09d7,_0x4d6175))[_0x39e8a7('0x67')](handleError(_0x2b09d7,null));},exports[_0x4677ff('0x3b')]=function(_0x29a5f5,_0x13caec){const _0x4f46de=_0x4677ff;let _0x1a5218={'raw':![],'where':{'id':_0x29a5f5[_0x4f46de('0x3d')]['id']}};const _0x225b90={};return _0x225b90[_0x4f46de('0x6a')]=_['keys'](db[_0x4f46de('0x4')][_0x4f46de('0x4f')]),_0x225b90[_0x4f46de('0x1d')]=_['keys'](_0x29a5f5[_0x4f46de('0x1d')]),_0x225b90[_0x4f46de('0x4b')]=_[_0x4f46de('0x3e')](_0x225b90[_0x4f46de('0x6a')],_0x225b90[_0x4f46de('0x1d')]),_0x1a5218['attributes']=_[_0x4f46de('0x3e')](_0x225b90[_0x4f46de('0x6a')],qs[_0x4f46de('0x64')](_0x29a5f5[_0x4f46de('0x1d')]['fields'])),_0x1a5218[_0x4f46de('0x13')]=_0x1a5218[_0x4f46de('0x13')]['length']?_0x1a5218[_0x4f46de('0x13')]:_0x225b90[_0x4f46de('0x6a')],_0x29a5f5['query'][_0x4f46de('0x4d')]&&(_0x1a5218[_0x4f46de('0x79')]=[{'all':!![]}]),_0x1a5218=_[_0x4f46de('0x1e')]({},_0x1a5218,_0x29a5f5[_0x4f46de('0x34')]),db[_0x4f46de('0x4')][_0x4f46de('0x62')](_0x1a5218)['then'](handleEntityNotFound(_0x13caec,null))[_0x4f46de('0x30')](respondWithResult(_0x13caec,null))[_0x4f46de('0x67')](handleError(_0x13caec,null));},exports[_0x4677ff('0x63')]=function(_0x31d83a,_0xbcdf75){const _0x12f5a4=_0x4677ff;return db['CmList'][_0x12f5a4('0x63')](_0x31d83a[_0x12f5a4('0x36')],{})[_0x12f5a4('0x30')](function(_0x5b97d5){const _0x4a3790=_0x12f5a4,_0x59ec3b=_0x31d83a['user'][_0x4a3790('0x46')]({'plain':!![]});if(!_0x59ec3b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x59ec3b['role']===_0x4a3790('0x45')){const _0x37402e=_0x5b97d5['get']({'plain':!![]}),_0x317294='Lists';return db[_0x4a3790('0x77')][_0x4a3790('0x62')]({'where':{'name':_0x317294,'userProfileId':_0x59ec3b[_0x4a3790('0x25')]},'raw':!![]})[_0x4a3790('0x30')](function(_0x1e0bee){const _0x2875ec=_0x4a3790;return _0x1e0bee&&_0x1e0bee[_0x2875ec('0x7a')]===0x0?db[_0x2875ec('0xd')][_0x2875ec('0x63')]({'name':_0x37402e[_0x2875ec('0x2a')],'resourceId':_0x37402e['id'],'type':_0x1e0bee[_0x2875ec('0x2a')],'sectionId':_0x1e0bee['id']},{})[_0x2875ec('0x30')](function(){return _0x5b97d5;}):_0x5b97d5;})[_0x4a3790('0x67')](function(_0x56ac2b){const _0x3c81a4=_0x4a3790;logger[_0x3c81a4('0x56')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x56ac2b);throw _0x56ac2b;});}return _0x5b97d5;})[_0x12f5a4('0x30')](respondWithResult(_0xbcdf75,0xc9))['catch'](handleError(_0xbcdf75,null));},exports[_0x4677ff('0x72')]=function(_0x467408,_0x4b7ef4){const _0x48ea5d=_0x4677ff;return _0x467408[_0x48ea5d('0x36')]['id']&&delete _0x467408['body']['id'],db[_0x48ea5d('0x4')][_0x48ea5d('0x62')]({'where':{'id':_0x467408[_0x48ea5d('0x3d')]['id']}})[_0x48ea5d('0x30')](handleEntityNotFound(_0x4b7ef4,null))[_0x48ea5d('0x30')](saveUpdates(_0x467408['body'],null))[_0x48ea5d('0x30')](respondWithResult(_0x4b7ef4,null))[_0x48ea5d('0x67')](handleError(_0x4b7ef4,null));},exports[_0x4677ff('0x27')]=function(_0x40459d,_0xa826df){const _0x16385f=_0x4677ff;return db['CmList'][_0x16385f('0x62')]({'where':{'id':_0x40459d[_0x16385f('0x3d')]['id']}})['then'](handleEntityNotFound(_0xa826df,null))[_0x16385f('0x30')](removeEntity(_0xa826df,null))[_0x16385f('0x67')](handleError(_0xa826df,null));},exports[_0x4677ff('0x68')]=function(_0xd074db,_0x4cbbc9){const _0x91543f=_0x4677ff;return db[_0x91543f('0x4')][_0x91543f('0x68')]()[_0x91543f('0x30')](respondWithResult(_0x4cbbc9,null))[_0x91543f('0x67')](handleError(_0x4cbbc9,null));},exports[_0x4677ff('0x29')]=function(_0x3d36ab,_0x547f4e){const _0x2405fa=_0x4677ff;return _0x3d36ab[_0x2405fa('0x36')]['id']&&delete _0x3d36ab[_0x2405fa('0x36')]['id'],db[_0x2405fa('0x4')][_0x2405fa('0x62')]({'where':{'id':_0x3d36ab[_0x2405fa('0x3d')]['id']}})['then'](handleEntityNotFound(_0x547f4e,null))['then'](function(_0x4552c1){const _0x4feb27=_0x2405fa;if(_0x4552c1)return _0x3d36ab['body'][_0x4feb27('0x74')]=_0x4552c1['id'],db[_0x4feb27('0x6d')][_0x4feb27('0x63')](_0x3d36ab['body']);})[_0x2405fa('0x30')](respondWithResult(_0x547f4e,null))[_0x2405fa('0x67')](handleError(_0x547f4e,null));},exports[_0x4677ff('0x24')]=function(_0x2c65b3,_0x26871c){const _0x73911a=_0x4677ff;let _0xdc9313={'raw':![],'where':{}};const _0x5c1cf0={},_0x314b8e={'count':0x0,'rows':[]};return db[_0x73911a('0x4')]['findOne']({'where':{'id':_0x2c65b3[_0x73911a('0x3d')]['id']}})[_0x73911a('0x30')](handleEntityNotFound(_0x26871c,null))[_0x73911a('0x30')](function(_0x9e4b1a){const _0x3f50ed=_0x73911a;if(_0x9e4b1a)return _0x5c1cf0[_0x3f50ed('0x6a')]=_[_0x3f50ed('0x19')](db[_0x3f50ed('0x6d')][_0x3f50ed('0x4f')]),_0x5c1cf0[_0x3f50ed('0x1d')]=_[_0x3f50ed('0x19')](_0x2c65b3['query']),_0x5c1cf0[_0x3f50ed('0x4b')]=_[_0x3f50ed('0x3e')](_0x5c1cf0[_0x3f50ed('0x6a')],_0x5c1cf0[_0x3f50ed('0x1d')]),_0xdc9313[_0x3f50ed('0x13')]=_[_0x3f50ed('0x3e')](_0x5c1cf0[_0x3f50ed('0x6a')],qs['fields'](_0x2c65b3[_0x3f50ed('0x1d')]['fields'])),_0xdc9313['attributes']=_0xdc9313[_0x3f50ed('0x13')][_0x3f50ed('0xe')]?_0xdc9313[_0x3f50ed('0x13')]:_0x5c1cf0[_0x3f50ed('0x6a')],typeof _0x2c65b3[_0x3f50ed('0x1d')][_0x3f50ed('0x78')]===_0x3f50ed('0x60')&&(_0xdc9313[_0x3f50ed('0x14')]=qs[_0x3f50ed('0x14')](_0x2c65b3[_0x3f50ed('0x1d')][_0x3f50ed('0x14')]),_0xdc9313['offset']=qs[_0x3f50ed('0x49')](_0x2c65b3[_0x3f50ed('0x1d')][_0x3f50ed('0x49')])),_0xdc9313[_0x3f50ed('0x2f')]=qs['sort'](_0x2c65b3[_0x3f50ed('0x1d')]['sort']),_0xdc9313[_0x3f50ed('0x1b')]=qs[_0x3f50ed('0x4b')](_[_0x3f50ed('0x38')](_0x2c65b3[_0x3f50ed('0x1d')],_0x5c1cf0[_0x3f50ed('0x4b')])),_0xdc9313[_0x3f50ed('0x1b')][_0x3f50ed('0x74')]=_0x9e4b1a['id'],_0x2c65b3[_0x3f50ed('0x1d')][_0x3f50ed('0x18')]&&(_0xdc9313[_0x3f50ed('0x1b')]=_[_0x3f50ed('0x1e')](_0xdc9313[_0x3f50ed('0x1b')],{[Op['or']]:_[_0x3f50ed('0x32')](_0xdc9313[_0x3f50ed('0x13')],function(_0x4fb131){const _0x5d6f0f=_0x3f50ed,_0x4795c6={};return _0x4795c6[_0x4fb131]={[Op[_0x5d6f0f('0x39')]]:'%'+_0x2c65b3['query'][_0x5d6f0f('0x18')]+'%'},_0x4795c6;})})),_0xdc9313=_[_0x3f50ed('0x1e')]({},_0xdc9313,_0x2c65b3['options']),db['Disposition'][_0x3f50ed('0x16')]({'where':_0xdc9313[_0x3f50ed('0x1b')]})[_0x3f50ed('0x30')](function(_0x475c5f){const _0x497ad5=_0x3f50ed;return _0x314b8e[_0x497ad5('0x16')]=_0x475c5f,_0x2c65b3[_0x497ad5('0x1d')][_0x497ad5('0x4d')]&&(_0xdc9313[_0x497ad5('0x79')]=[{'all':!![]}]),db['Disposition'][_0x497ad5('0x75')](_0xdc9313);})[_0x3f50ed('0x30')](function(_0x1be888){const _0x2c1101=_0x3f50ed;return _0x314b8e[_0x2c1101('0x23')]=_0x1be888,_0x314b8e;});})[_0x73911a('0x30')](respondWithFilteredResult(_0x26871c,_0xdc9313))[_0x73911a('0x67')](handleError(_0x26871c,null));},exports[_0x4677ff('0x3a')]=function(_0x274a15,_0x505c2d){const _0x3f6570=_0x4677ff;return db[_0x3f6570('0x4')][_0x3f6570('0x62')]({'where':{'id':_0x274a15[_0x3f6570('0x3d')]['id']}})[_0x3f6570('0x30')](handleEntityNotFound(_0x505c2d,null))[_0x3f6570('0x30')](function(_0x13aeb2){const _0x361344=_0x3f6570;if(_0x13aeb2)return _0x13aeb2[_0x361344('0x3a')](_0x274a15[_0x361344('0x1d')][_0x361344('0x2')]);})[_0x3f6570('0x30')](respondWithStatusCode(_0x505c2d,null))['catch'](handleError(_0x505c2d,null));},exports[_0x4677ff('0x4c')]=function(_0x3facb9,_0x20ff3c){const _0x519b90=_0x4677ff;return db[_0x519b90('0x4')][_0x519b90('0x62')]({'where':{'id':_0x3facb9[_0x519b90('0x3d')]['id']}})[_0x519b90('0x30')](handleEntityNotFound(_0x20ff3c,null))[_0x519b90('0x30')](function(_0x2011ab){const _0x3c37fb=_0x519b90;if(_0x2011ab){const _0x306c75=[],_0x1c294f={'success':[],'errors':[]};return db[_0x3c37fb('0x47')][_0x3c37fb('0x68')]()[_0x3c37fb('0x30')](function(_0x5d21ea){const _0x49c8be=_0x3c37fb;_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')]&&_[_0x49c8be('0x57')](_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')])?_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')][_0x49c8be('0xe')]?_0x3facb9[_0x49c8be('0x36')]['tags']=_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')][_0x49c8be('0x5a')](';')+';':_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')]=null:_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0x73')]=null;if(_0x3facb9[_0x49c8be('0x36')]&&_[_0x49c8be('0x57')](_0x3facb9[_0x49c8be('0x36')])){for(let _0x13dbdd=0x0;_0x13dbdd<_0x3facb9[_0x49c8be('0x36')][_0x49c8be('0xe')];_0x13dbdd+=0x1){_0x3facb9[_0x49c8be('0x36')][_0x13dbdd]['ListId']=_0x3facb9[_0x49c8be('0x3d')]['id'],_0x306c75[_0x49c8be('0x1c')](_0x3facb9[_0x49c8be('0x36')][_0x13dbdd]);}return Promise['each'](_0x306c75,function(_0x189f66){const _0x5cbc43=_0x49c8be;return db[_0x5cbc43('0x47')][_0x5cbc43('0x63')](_[_0x5cbc43('0x2c')](_0x189f66,[_0x5cbc43('0x2'),'id'])||{},{'fields':_[_0x5cbc43('0x19')](_0x5d21ea),'raw':!![]})[_0x5cbc43('0x30')](function(_0x5b5cd7){const _0x29ff0a=_0x5cbc43;_0x1c294f['success'][_0x29ff0a('0x1c')](_0x5b5cd7[_0x29ff0a('0x7b')]);})[_0x5cbc43('0x67')](function(_0x130af3){const _0x27831b=_0x5cbc43;_0x1c294f[_0x27831b('0x65')]['push']({'data':_0x189f66,'error':_0x130af3[_0x27831b('0x7')]});});})[_0x49c8be('0x30')](function(){return _0x1c294f;})['catch'](function(_0x750ddd){return _0x750ddd;});}else _0x20ff3c[_0x49c8be('0x17')](0x190)[_0x49c8be('0x11')]({'message':_0x49c8be('0x3c')});});}})[_0x519b90('0x30')](respondWithResult(_0x20ff3c,null))[_0x519b90('0x67')](handleError(_0x20ff3c,null));},exports[_0x4677ff('0x5d')]=function(_0x4e251b,_0x120ad7){const _0x247a16=_0x4677ff;let _0x567aac;return db['CmList'][_0x247a16('0x62')]({'where':{'id':_0x4e251b['params']['id']},'include':[{'model':db[_0x247a16('0x44')],'as':_0x247a16('0x51')}]})['then'](handleEntityNotFound(_0x120ad7,null))[_0x247a16('0x30')](function(_0x264f0f){const _0x13f92d=_0x247a16;if(_0x264f0f)return _0x567aac=_0x264f0f,db['CmContact'][_0x13f92d('0x4f')];})[_0x247a16('0x30')](function(_0x1369c8){const _0x41c857=_0x247a16;if(_0x1369c8){let _0x4f9812={};const _0x156e1c={};return _0x156e1c[_0x41c857('0x6a')]=_['concat'](_[_0x41c857('0x19')](_0x1369c8),_[_0x41c857('0x32')](_0x567aac['CustomFields'],function(_0x322073){const _0x290218=_0x41c857;return util['format'](_0x290218('0x3f'),_0x322073['id']);})),_0x156e1c[_0x41c857('0x1d')]=_['keys'](_0x4e251b['query']),_0x156e1c[_0x41c857('0x4b')]=_[_0x41c857('0x3e')](_0x156e1c[_0x41c857('0x6a')],_0x156e1c[_0x41c857('0x1d')]),_0x4f9812[_0x41c857('0x13')]=_[_0x41c857('0x3e')](_0x156e1c[_0x41c857('0x6a')],qs[_0x41c857('0x64')](_0x4e251b[_0x41c857('0x1d')][_0x41c857('0x64')])),_0x4f9812[_0x41c857('0x13')]=_0x4f9812[_0x41c857('0x13')][_0x41c857('0xe')]?_0x4f9812[_0x41c857('0x13')]:_0x156e1c[_0x41c857('0x6a')],typeof _0x4e251b[_0x41c857('0x1d')][_0x41c857('0x78')]==='undefined'&&(_0x4f9812['limit']=qs[_0x41c857('0x14')](_0x4e251b[_0x41c857('0x1d')][_0x41c857('0x14')]),_0x4f9812[_0x41c857('0x49')]=qs[_0x41c857('0x49')](_0x4e251b[_0x41c857('0x1d')][_0x41c857('0x49')])),_0x4f9812[_0x41c857('0x2f')]=qs[_0x41c857('0x5e')](_0x4e251b[_0x41c857('0x1d')][_0x41c857('0x5e')]),_0x4f9812[_0x41c857('0x1b')]=qs['filters'](_['pick'](_0x4e251b[_0x41c857('0x1d')],_0x156e1c[_0x41c857('0x4b')])),_0x4f9812[_0x41c857('0x69')]=!![],_0x4e251b[_0x41c857('0x1d')]['filter']&&(_0x4f9812[_0x41c857('0x1b')]=_[_0x41c857('0x1e')](_0x4f9812[_0x41c857('0x1b')],{[Op['or']]:_[_0x41c857('0x32')](_0x4f9812[_0x41c857('0x13')],function(_0x31da0c){const _0x598e08=_0x41c857,_0x44c4be={};return _0x44c4be[_0x31da0c]={[Op[_0x598e08('0x39')]]:'%'+_0x4e251b[_0x598e08('0x1d')][_0x598e08('0x18')]+'%'},_0x44c4be;})})),_0x4f9812=_[_0x41c857('0x1e')]({},_0x4f9812,_0x4e251b['options']),_0x567aac['getContacts'](_0x4f9812);}})['then'](respondWithResult(_0x120ad7,null))[_0x247a16('0x67')](handleError(_0x120ad7,null));},exports[_0x4677ff('0x48')]=function(_0x584f3d,_0x416cac){const _0x481cdb=_0x4677ff;let _0x5806e9;return db[_0x481cdb('0x4')][_0x481cdb('0x62')]({'where':{'id':_0x584f3d['params']['id']},'include':[{'model':db[_0x481cdb('0x44')],'as':_0x481cdb('0x51')}]})['then'](handleEntityNotFound(_0x416cac,null))[_0x481cdb('0x30')](function(_0x2cc8d7){if(_0x2cc8d7)return _0x5806e9=_0x2cc8d7,db['CmContact']['rawAttributes'];})[_0x481cdb('0x30')](function(_0x26951e){const _0x33107f=_0x481cdb;if(_0x26951e){let _0x3f8c90={};const _0x2c82b4={};return _0x2c82b4[_0x33107f('0x6a')]=_[_0x33107f('0x5')](_['keys'](_0x26951e),_[_0x33107f('0x32')](_0x5806e9[_0x33107f('0x51')],function(_0x1fb923){const _0x45cc31=_0x33107f;return util[_0x45cc31('0x2b')](_0x45cc31('0x3f'),_0x1fb923['id']);})),_0x2c82b4['query']=_[_0x33107f('0x19')](_0x584f3d[_0x33107f('0x1d')]),_0x2c82b4['filters']=_['intersection'](_0x2c82b4['model'],_0x2c82b4[_0x33107f('0x1d')]),_0x3f8c90['attributes']=_[_0x33107f('0x3e')](_0x2c82b4[_0x33107f('0x6a')],qs[_0x33107f('0x64')](_0x584f3d['query'][_0x33107f('0x64')])),_0x3f8c90['attributes']=_0x3f8c90[_0x33107f('0x13')][_0x33107f('0xe')]?_0x3f8c90[_0x33107f('0x13')]:_0x2c82b4[_0x33107f('0x6a')],typeof _0x584f3d[_0x33107f('0x1d')]['nolimit']===_0x33107f('0x60')&&(_0x3f8c90['limit']=qs[_0x33107f('0x14')](_0x584f3d[_0x33107f('0x1d')]['limit']),_0x3f8c90[_0x33107f('0x49')]=qs[_0x33107f('0x49')](_0x584f3d[_0x33107f('0x1d')]['offset'])),_0x3f8c90[_0x33107f('0x2f')]=qs[_0x33107f('0x5e')](_0x584f3d[_0x33107f('0x1d')][_0x33107f('0x5e')]),_0x3f8c90[_0x33107f('0x1b')]=qs[_0x33107f('0x4b')](_[_0x33107f('0x38')](_0x584f3d['query'],_0x2c82b4['filters'])),_0x3f8c90[_0x33107f('0x69')]=!![],_0x584f3d[_0x33107f('0x1d')][_0x33107f('0x18')]&&(_0x3f8c90[_0x33107f('0x1b')]=_[_0x33107f('0x1e')](_0x3f8c90[_0x33107f('0x1b')],{[Op['or']]:_[_0x33107f('0x32')](_0x3f8c90['attributes'],function(_0x3cd291){const _0x1dd3e5=_0x33107f,_0x11a698={};return _0x11a698[_0x3cd291]={[Op[_0x1dd3e5('0x39')]]:'%'+_0x584f3d['query'][_0x1dd3e5('0x18')]+'%'},_0x11a698;})})),_0x3f8c90=_[_0x33107f('0x1e')]({},_0x3f8c90,_0x584f3d[_0x33107f('0x34')]),_0x5806e9['getContacts'](_0x3f8c90);}})['then'](function(_0x5d057a){const _0x45d248=_0x481cdb;if(!_[_0x45d248('0x15')](_0x5d057a)){const _0x1500ce=toCsv(_0x5d057a),_0x3f0921=Date[_0x45d248('0x58')]();return fs[_0x45d248('0xc')](util[_0x45d248('0x2b')](_0x45d248('0x61'),_0x5806e9['id'],_0x3f0921),_0x1500ce),_0x416cac['setHeader']('Content-disposition',_0x45d248('0x71')+util[_0x45d248('0x2b')](_0x45d248('0x66'),_0x5806e9['id'],_0x3f0921)),_0x416cac[_0x45d248('0x41')](_0x45d248('0x52'),_0x45d248('0x28')),_0x416cac['download'](util['format'](_0x45d248('0x61'),_0x5806e9['id'],_0x3f0921));}else return _0x416cac[_0x45d248('0x6b')](0xcc);})['catch'](handleError(_0x416cac,null));},exports[_0x4677ff('0x54')]=function(_0x5d4d6c,_0x3ff343){const _0x1d2c46=_0x4677ff;let _0x14aa69;return delete _0x5d4d6c['body']['id'],db['CmList'][_0x1d2c46('0x62')]({'where':{'id':_0x5d4d6c[_0x1d2c46('0x3d')]['id']}})['then'](handleEntityNotFound(_0x3ff343,null))[_0x1d2c46('0x30')](function(_0x922093){const _0x179428=_0x1d2c46;if(_0x922093)return db[_0x179428('0x6e')]['transaction'](function(_0x29bee0){const _0x503048=_0x179428;return db[_0x503048('0x44')]['create'](_0x5d4d6c['body'],{'transaction':_0x29bee0})[_0x503048('0x30')](function(_0x4545a9){const _0xdd1cc6=_0x503048;return _0x14aa69=_0x4545a9,_0x922093[_0xdd1cc6('0x26')](_0x4545a9,{'transaction':_0x29bee0});})[_0x503048('0x30')](function(){const _0x300a4b=_0x503048,_0x2cb3e0={'type':db[_0x300a4b('0xa')][_0x300a4b('0x4a')],'transaction':_0x29bee0};switch(_0x5d4d6c[_0x300a4b('0x36')][_0x300a4b('0x33')]){case _0x300a4b('0x5f'):_0x2cb3e0['type']=db[_0x300a4b('0xa')][_0x300a4b('0x4a')];break;case _0x300a4b('0x1f'):_0x2cb3e0['type']=db[_0x300a4b('0xa')][_0x300a4b('0x22')];break;case _0x300a4b('0x1'):_0x2cb3e0[_0x300a4b('0x33')]=db[_0x300a4b('0xa')][_0x300a4b('0x8')],_0x2cb3e0[_0x300a4b('0x70')]=![];break;default:}return db[_0x300a4b('0x6e')][_0x300a4b('0x0')][_0x300a4b('0x20')](_0x300a4b('0x2d'),util[_0x300a4b('0x2b')](_0x300a4b('0x10'),_0x14aa69['id']),_0x2cb3e0);})['then'](function(){return _0x14aa69;});});})[_0x1d2c46('0x30')](respondWithResult(_0x3ff343,null))[_0x1d2c46('0x67')](handleError(_0x3ff343,null));},exports[_0x4677ff('0x37')]=function(_0x2d304d,_0x211a4e){const _0x5836d7=_0x4677ff;let _0x45a343={};const _0x48826a={};return db[_0x5836d7('0x4')][_0x5836d7('0x62')]({'where':{'id':_0x2d304d['params']['id']}})[_0x5836d7('0x30')](handleEntityNotFound(_0x211a4e,null))[_0x5836d7('0x30')](function(_0x42e56){const _0x28c981=_0x5836d7;if(_0x42e56)return _0x48826a[_0x28c981('0x6a')]=_[_0x28c981('0x19')](db['CmCustomField']['rawAttributes']),_0x48826a[_0x28c981('0x1d')]=_[_0x28c981('0x19')](_0x2d304d[_0x28c981('0x1d')]),_0x48826a[_0x28c981('0x4b')]=_['intersection'](_0x48826a[_0x28c981('0x6a')],_0x48826a[_0x28c981('0x1d')]),_0x45a343[_0x28c981('0x13')]=_[_0x28c981('0x3e')](_0x48826a['model'],qs[_0x28c981('0x64')](_0x2d304d['query'][_0x28c981('0x64')])),_0x45a343[_0x28c981('0x13')]=_0x45a343[_0x28c981('0x13')]['length']?_0x45a343[_0x28c981('0x13')]:_0x48826a[_0x28c981('0x6a')],_0x45a343['order']=qs[_0x28c981('0x5e')](_0x2d304d[_0x28c981('0x1d')][_0x28c981('0x5e')]),_0x45a343[_0x28c981('0x1b')]=qs[_0x28c981('0x4b')](_[_0x28c981('0x38')](_0x2d304d['query'],_0x48826a[_0x28c981('0x4b')])),_0x45a343[_0x28c981('0x1b')]=_['merge'](_0x45a343[_0x28c981('0x1b')],{[Op['or']]:[{'ListId':_0x42e56['id']},{'ListId':null}]}),_0x2d304d['query'][_0x28c981('0x18')]&&(_0x45a343['where']=_[_0x28c981('0x1e')](_0x45a343[_0x28c981('0x1b')],{[Op['or']]:_[_0x28c981('0x32')](_0x45a343['attributes'],function(_0x5031c5){const _0x59b5d1=_0x28c981,_0x73ec0f={};return _0x73ec0f[_0x5031c5]={[Op['like']]:'%'+_0x2d304d[_0x59b5d1('0x1d')][_0x59b5d1('0x18')]+'%'},_0x73ec0f;})})),_0x45a343=_['merge']({},_0x45a343,_0x2d304d[_0x28c981('0x34')]),db[_0x28c981('0x44')]['findAndCountAll'](_0x45a343);})[_0x5836d7('0x30')](respondWithResult(_0x211a4e,null))[_0x5836d7('0x67')](handleError(_0x211a4e,null));},exports[_0x4677ff('0x31')]=function(_0x21481d,_0x96d828){const _0x337d75=_0x4677ff;return db[_0x337d75('0x4')]['findOne']({'where':{'id':_0x21481d['params']['id']}})[_0x337d75('0x30')](function(_0x2f2ee4){const _0x332eac=_0x337d75;if(_0x2f2ee4)return _0x2f2ee4[_0x332eac('0x31')](_0x21481d[_0x332eac('0x36')][_0x332eac('0x2')],{'through':_['omit'](_0x21481d[_0x332eac('0x36')],[_0x332eac('0x2'),'id'])})[_0x332eac('0x30')](function(_0x110308){const _0x15952d=_0x332eac;for(let _0x4492d7=0x0;_0x4492d7<_0x21481d[_0x15952d('0x36')][_0x15952d('0x2')][_0x15952d('0xe')];_0x4492d7+=0x1){socket[_0x15952d('0x53')](_0x15952d('0x35'),{'UserId':_0x21481d[_0x15952d('0x36')]['ids'][_0x4492d7],'CmListId':_0x21481d[_0x15952d('0x3d')]['id']});}return _0x110308;});})[_0x337d75('0x30')](respondWithResult(_0x96d828,null))[_0x337d75('0x67')](handleError(_0x96d828,null));},exports[_0x4677ff('0x21')]=function(_0x272691,_0x3b4c4b){const _0x34204c=_0x4677ff;return db[_0x34204c('0x4')][_0x34204c('0x62')]({'where':{'id':_0x272691[_0x34204c('0x3d')]['id']}})[_0x34204c('0x30')](handleEntityNotFound(_0x3b4c4b,null))[_0x34204c('0x30')](function(_0x450084){const _0x127bfe=_0x34204c;if(_0x450084)return _0x450084[_0x127bfe('0x21')](_0x272691[_0x127bfe('0x1d')][_0x127bfe('0x2')])['then'](function(){const _0x343421=_0x127bfe;if(_['isArray'](_0x272691[_0x343421('0x1d')][_0x343421('0x2')]))for(let _0x2c015b=0x0;_0x2c015b<_0x272691['query'][_0x343421('0x2')]['length'];_0x2c015b+=0x1){socket['emit'](_0x343421('0x40'),{'UserId':Number(_0x272691[_0x343421('0x1d')]['ids'][_0x2c015b]),'CmListId':Number(_0x272691[_0x343421('0x3d')]['id'])});}else socket[_0x343421('0x53')](_0x343421('0x40'),{'UserId':Number(_0x272691[_0x343421('0x1d')][_0x343421('0x2')]),'CmListId':Number(_0x272691['params']['id'])});});})[_0x34204c('0x30')](respondWithStatusCode(_0x3b4c4b,null))[_0x34204c('0x67')](handleError(_0x3b4c4b,null));},exports[_0x4677ff('0x4e')]=function(_0x54abdc,_0x1467ab){const _0x5efa48=_0x4677ff;let _0x2a03bc={};const _0x445eed={};let _0x3e85eb,_0x1a5018;return db[_0x5efa48('0x4')][_0x5efa48('0x62')]({'where':{'id':_0x54abdc[_0x5efa48('0x3d')]['id']}})[_0x5efa48('0x30')](handleEntityNotFound(_0x1467ab,null))[_0x5efa48('0x30')](function(_0x429f9d){const _0x5214b6=_0x5efa48;if(_0x429f9d)return _0x3e85eb=_0x429f9d,_0x445eed['model']=_[_0x5214b6('0x19')](db[_0x5214b6('0x1a')][_0x5214b6('0x4f')]),_0x445eed[_0x5214b6('0x1d')]=_['keys'](_0x54abdc[_0x5214b6('0x1d')]),_0x445eed[_0x5214b6('0x4b')]=_[_0x5214b6('0x3e')](_0x445eed[_0x5214b6('0x6a')],_0x445eed['query']),_0x2a03bc[_0x5214b6('0x13')]=_[_0x5214b6('0x3e')](_0x445eed[_0x5214b6('0x6a')],qs[_0x5214b6('0x64')](_0x54abdc['query'][_0x5214b6('0x64')])),_0x2a03bc[_0x5214b6('0x13')]=_0x2a03bc[_0x5214b6('0x13')][_0x5214b6('0xe')]?_0x2a03bc[_0x5214b6('0x13')]:_0x445eed[_0x5214b6('0x6a')],_0x2a03bc[_0x5214b6('0x2f')]=qs['sort'](_0x54abdc[_0x5214b6('0x1d')][_0x5214b6('0x5e')]),_0x2a03bc[_0x5214b6('0x1b')]=qs[_0x5214b6('0x4b')](_[_0x5214b6('0x38')](_0x54abdc[_0x5214b6('0x1d')],_0x445eed[_0x5214b6('0x4b')])),_0x54abdc['query']['filter']&&(_0x2a03bc[_0x5214b6('0x1b')]=_[_0x5214b6('0x1e')](_0x2a03bc[_0x5214b6('0x1b')],{[Op['or']]:_[_0x5214b6('0x32')](_0x2a03bc[_0x5214b6('0x13')],function(_0x20d1fa){const _0x188615=_0x5214b6,_0x29ba3c={};return _0x29ba3c[_0x20d1fa]={[Op[_0x188615('0x39')]]:'%'+_0x54abdc['query']['filter']+'%'},_0x29ba3c;})})),_0x2a03bc=_[_0x5214b6('0x1e')]({},_0x2a03bc,_0x54abdc[_0x5214b6('0x34')]),_0x3e85eb[_0x5214b6('0x4e')](_0x2a03bc);})[_0x5efa48('0x30')](function(_0x55f632){const _0x56f853=_0x5efa48;if(_0x55f632)return _0x1a5018=_0x55f632[_0x56f853('0xe')],typeof _0x54abdc[_0x56f853('0x1d')][_0x56f853('0x78')]===_0x56f853('0x60')&&(_0x2a03bc[_0x56f853('0x14')]=qs[_0x56f853('0x14')](_0x54abdc[_0x56f853('0x1d')][_0x56f853('0x14')]),_0x2a03bc[_0x56f853('0x49')]=qs[_0x56f853('0x49')](_0x54abdc[_0x56f853('0x1d')][_0x56f853('0x49')])),_0x3e85eb[_0x56f853('0x4e')](_0x2a03bc);})[_0x5efa48('0x30')](function(_0x1a84ae){if(_0x1a84ae)return _0x1a84ae?{'count':_0x1a5018,'rows':_0x1a84ae}:null;})[_0x5efa48('0x30')](respondWithResult(_0x1467ab,null))[_0x5efa48('0x67')](handleError(_0x1467ab,null));}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index 3f36358..7684f34 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a158_0x1066=['addHook','emit','setMaxListeners','update','CmList','exports','undefined','remove','../../mysqldb','events'];(function(_0x198279,_0x1066af){const _0x1740fd=function(_0x1f45be){while(--_0x1f45be){_0x198279['push'](_0x198279['shift']());}};_0x1740fd(++_0x1066af);}(a158_0x1066,0x112));const a158_0x1740=function(_0x198279,_0x1066af){_0x198279=_0x198279-0x0;let _0x1740fd=a158_0x1066[_0x198279];return _0x1740fd;};const _0x5f36a9=a158_0x1740;'use strict';const EventEmitter=require(_0x5f36a9('0x5')),CmList=require(_0x5f36a9('0x4'))['db'][_0x5f36a9('0x0')],CmListEvents=new EventEmitter();CmListEvents[_0x5f36a9('0x8')](0x0);const events={'afterCreate':'save','afterUpdate':_0x5f36a9('0x9'),'afterDestroy':_0x5f36a9('0x3')};function emitEvent(_0x1f45be){return function(_0x31b8a0){const _0x1d136b=a158_0x1740;CmListEvents['emit'](_0x1f45be+':'+_0x31b8a0['id'],_0x31b8a0),CmListEvents[_0x1d136b('0x7')](_0x1f45be,_0x31b8a0);};}for(const e in events){if(typeof events[e]!==_0x5f36a9('0x2')){const event=events[e];CmList[_0x5f36a9('0x6')](e,emitEvent(event));}}module[_0x5f36a9('0x1')]=CmListEvents; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index 62f45f8..e75620e 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a159_0x4a26=['cm_lists','exports','CmList','./cmList.attributes','define'];(function(_0x257885,_0x4a26fd){const _0x590eaf=function(_0xd8c9bf){while(--_0xd8c9bf){_0x257885['push'](_0x257885['shift']());}};_0x590eaf(++_0x4a26fd);}(a159_0x4a26,0xc0));const a159_0x590e=function(_0x257885,_0x4a26fd){_0x257885=_0x257885-0x0;let _0x590eaf=a159_0x4a26[_0x257885];return _0x590eaf;};const _0x499316=a159_0x590e;'use strict';const attributes=require(_0x499316('0x1'));module[_0x499316('0x4')]=function(_0xd8c9bf){const _0x17e9d4=_0x499316,_0x2e2e7c=_0xd8c9bf[_0x17e9d4('0x2')](_0x17e9d4('0x0'),attributes,{'tableName':_0x17e9d4('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2e2e7c;}; \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index a63b868..939b85c 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a160_0x679c=['../../rediscache','register','./cmList.socket'];(function(_0x5c7283,_0x679ca9){const _0x37e8ef=function(_0x622b2a){while(--_0x622b2a){_0x5c7283['push'](_0x5c7283['shift']());}};_0x37e8ef(++_0x679ca9);}(a160_0x679c,0x166));const a160_0x37e8=function(_0x5c7283,_0x679ca9){_0x5c7283=_0x5c7283-0x0;let _0x37e8ef=a160_0x679c[_0x5c7283];return _0x37e8ef;};const _0x29622e=a160_0x37e8;'use strict';const {getSocket}=require(_0x29622e('0x2')),socket=getSocket();require(_0x29622e('0x1'))[_0x29622e('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index e748174..339d748 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a161_0x1a7f=['emit','save','cmList:','length','update','register','./cmList.events'];(function(_0x3024cc,_0x1a7fac){const _0x613686=function(_0x49b1b4){while(--_0x49b1b4){_0x3024cc['push'](_0x3024cc['shift']());}};_0x613686(++_0x1a7fac);}(a161_0x1a7f,0xc1));const a161_0x6136=function(_0x3024cc,_0x1a7fac){_0x3024cc=_0x3024cc-0x0;let _0x613686=a161_0x1a7f[_0x3024cc];return _0x613686;};const _0x5c60a8=a161_0x6136;'use strict';const CmListEvents=require(_0x5c60a8('0x2')),events=[_0x5c60a8('0x4'),'remove',_0x5c60a8('0x0')];function createListener(_0x49b1b4,_0x2dcc4f){return function(_0x89f4d5){const _0x5cb765=a161_0x6136;_0x2dcc4f[_0x5cb765('0x3')](_0x49b1b4,_0x89f4d5);};}exports[_0x5c60a8('0x1')]=function(_0x26ca33){const _0x575cec=_0x5c60a8;for(let _0x830a0a=0x0,_0x208080=events[_0x575cec('0x6')];_0x830a0a<_0x208080;_0x830a0a++){const _0x5654af=events[_0x830a0a],_0x107a53=createListener(_0x575cec('0x5')+_0x5654af,_0x26ca33);CmListEvents['on'](_0x5654af,_0x107a53);}}; \ No newline at end of file +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 diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index 911b988..c302b87 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a162_0x4037=['put','/:id/users','getContactsCsv','show','getContacts','/:id/fields','/:id','update','addAgents','express','../../components/auth/service','/describe','addDisposition','Router','getDispositions','post','./cmList.controller','delete','addContacts','getCustomFields','index','/:id/dispositions','isAuthenticated','get','destroy','/:id/contacts/csv','describe','/:id/contacts','exports','addCustomField'];(function(_0xfbf2d7,_0x4037e2){const _0x3b4915=function(_0xc36cef){while(--_0xc36cef){_0xfbf2d7['push'](_0xfbf2d7['shift']());}};_0x3b4915(++_0x4037e2);}(a162_0x4037,0x14e));const a162_0x3b49=function(_0xfbf2d7,_0x4037e2){_0xfbf2d7=_0xfbf2d7-0x0;let _0x3b4915=a162_0x4037[_0xfbf2d7];return _0x3b4915;};const _0x30f5b0=a162_0x3b49;'use strict';const express=require(_0x30f5b0('0x5')),router=express[_0x30f5b0('0x9')](),auth=require(_0x30f5b0('0x6')),controller=require(_0x30f5b0('0xc'));router[_0x30f5b0('0x13')]('/',auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x10')]),router[_0x30f5b0('0x13')](_0x30f5b0('0x7'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x16')]),router['get'](_0x30f5b0('0x2'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x1d')]),router['get'](_0x30f5b0('0x11'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0xa')]),router['get']('/:id/contacts',auth['isAuthenticated'](),controller[_0x30f5b0('0x0')]),router[_0x30f5b0('0x13')](_0x30f5b0('0x15'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x1c')]),router['get']('/:id/fields',auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0xf')]),router[_0x30f5b0('0x13')]('/:id/users',auth[_0x30f5b0('0x12')](),controller['getAgents']),router['post']('/',auth[_0x30f5b0('0x12')](),controller['create']),router[_0x30f5b0('0xb')](_0x30f5b0('0x11'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x8')]),router['post'](_0x30f5b0('0x17'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0xe')]),router[_0x30f5b0('0xb')](_0x30f5b0('0x1'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x19')]),router[_0x30f5b0('0xb')](_0x30f5b0('0x1b'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x4')]),router[_0x30f5b0('0x1a')](_0x30f5b0('0x2'),auth['isAuthenticated'](),controller[_0x30f5b0('0x3')]),router[_0x30f5b0('0xd')](_0x30f5b0('0x2'),auth[_0x30f5b0('0x12')](),controller[_0x30f5b0('0x14')]),router['delete'](_0x30f5b0('0x11'),auth[_0x30f5b0('0x12')](),controller['removeDispositions']),router[_0x30f5b0('0xd')](_0x30f5b0('0x1b'),auth[_0x30f5b0('0x12')](),controller['removeAgents']),module[_0x30f5b0('0x18')]=router; \ No newline at end of file +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 diff --git a/server/api/condition/condition.attributes.js b/server/api/condition/condition.attributes.js index 12a7e30..34085cb 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a163_0x4ecf=['STRING','sequelize'];(function(_0x38526c,_0x4ecf0e){const _0x3f896f=function(_0x15f437){while(--_0x15f437){_0x38526c['push'](_0x38526c['shift']());}};_0x3f896f(++_0x4ecf0e);}(a163_0x4ecf,0x100));const a163_0x3f89=function(_0x38526c,_0x4ecf0e){_0x38526c=_0x38526c-0x0;let _0x3f896f=a163_0x4ecf[_0x38526c];return _0x3f896f;};const _0x162fed=a163_0x3f89;'use strict';const Sequelize=require(_0x162fed('0x1'));module['exports']={'name':{'type':Sequelize['VIRTUAL'],'get':function(){return this['getDataValue']('field');}},'field':{'type':Sequelize[_0x162fed('0x0')],'allowNull':![]},'operator':{'type':Sequelize[_0x162fed('0x0')],'allowNull':![]},'value':{'type':Sequelize['STRING'],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index 0c8b229..b0abc0f 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a164_0x53ec=['findOne','error','name','sendStatus','status','destroy','then','json','Condition','body','../../config/logger','catch','update','params','api'];(function(_0x339015,_0x53ec46){const _0x4ee958=function(_0xeac8d4){while(--_0xeac8d4){_0x339015['push'](_0x339015['shift']());}};_0x4ee958(++_0x53ec46);}(a164_0x53ec,0x76));const a164_0x4ee9=function(_0x339015,_0x53ec46){_0x339015=_0x339015-0x0;let _0x4ee958=a164_0x53ec[_0x339015];return _0x4ee958;};const _0x4624f5=a164_0x4ee9;'use strict';const logger=require(_0x4624f5('0xc'))(_0x4624f5('0x1')),db=require('../../mysqldb')['db'];function respondWithResult(_0xeac8d4,_0x170d5d){return _0x170d5d=_0x170d5d||0xc8,function(_0x14885f){const _0x54045b=a164_0x4ee9;if(_0x14885f)return _0xeac8d4[_0x54045b('0x6')](_0x170d5d)[_0x54045b('0x9')](_0x14885f);};}function saveUpdates(_0x226240){return function(_0x1d4ad7){const _0x4faa88=a164_0x4ee9;if(_0x1d4ad7)return _0x1d4ad7[_0x4faa88('0xe')](_0x226240)[_0x4faa88('0x8')](function(_0x1c598f){return _0x1c598f;});return null;};}function removeEntity(_0x5738fd){return function(_0x25d27c){const _0x160956=a164_0x4ee9;if(_0x25d27c)return _0x25d27c[_0x160956('0x7')]()[_0x160956('0x8')](function(){_0x5738fd['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x2df003){return function(_0x4d2672){const _0x60c693=a164_0x4ee9;return!_0x4d2672&&_0x2df003[_0x60c693('0x5')](0x194),_0x4d2672;};}function handleError(_0x398c57,_0x43c8e1){return _0x43c8e1=_0x43c8e1||0x1f4,function(_0x427e69){const _0x568282=a164_0x4ee9;logger[_0x568282('0x3')](_0x427e69['stack']),_0x427e69[_0x568282('0x4')]&&delete _0x427e69[_0x568282('0x4')],_0x398c57[_0x568282('0x6')](_0x43c8e1)['send'](_0x427e69);};}exports['update']=function(_0x495ccb,_0x2a36e3){const _0xb53e01=_0x4624f5;return _0x495ccb[_0xb53e01('0xb')]['id']&&delete _0x495ccb[_0xb53e01('0xb')]['id'],db[_0xb53e01('0xa')][_0xb53e01('0x2')]({'where':{'id':_0x495ccb[_0xb53e01('0x0')]['id']}})[_0xb53e01('0x8')](handleEntityNotFound(_0x2a36e3,null))[_0xb53e01('0x8')](saveUpdates(_0x495ccb[_0xb53e01('0xb')],null))[_0xb53e01('0x8')](respondWithResult(_0x2a36e3,null))['catch'](handleError(_0x2a36e3,null));},exports[_0x4624f5('0x7')]=function(_0x40e9ce,_0x18ae66){const _0x197bc6=_0x4624f5;return db[_0x197bc6('0xa')][_0x197bc6('0x2')]({'where':{'id':_0x40e9ce[_0x197bc6('0x0')]['id']}})[_0x197bc6('0x8')](handleEntityNotFound(_0x18ae66,null))[_0x197bc6('0x8')](removeEntity(_0x18ae66,null))[_0x197bc6('0xd')](handleError(_0x18ae66,null));}; \ No newline at end of file +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 diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index c48e240..4e24ef7 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a165_0x2b4b=['Condition','tools_conditions','./condition.attributes','define'];(function(_0x4ee28c,_0x2b4bda){const _0x307b3e=function(_0xf11601){while(--_0xf11601){_0x4ee28c['push'](_0x4ee28c['shift']());}};_0x307b3e(++_0x2b4bda);}(a165_0x2b4b,0x1b3));const a165_0x307b=function(_0x4ee28c,_0x2b4bda){_0x4ee28c=_0x4ee28c-0x0;let _0x307b3e=a165_0x2b4b[_0x4ee28c];return _0x307b3e;};const _0x4b921e=a165_0x307b;'use strict';const attributes=require(_0x4b921e('0x3'));module['exports']=function(_0xf11601){const _0x178800=_0x4b921e,_0x2999cd=_0xf11601[_0x178800('0x0')](_0x178800('0x1'),attributes,{'tableName':_0x178800('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2999cd;}; \ No newline at end of file +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 diff --git a/server/api/condition/index.js b/server/api/condition/index.js index f079f55..b805a42 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a166_0x4ad2=['/:id','delete','put','express','./condition.controller','destroy','exports','update','isAuthenticated'];(function(_0x5334cb,_0x4ad2b8){const _0x544a99=function(_0x939293){while(--_0x939293){_0x5334cb['push'](_0x5334cb['shift']());}};_0x544a99(++_0x4ad2b8);}(a166_0x4ad2,0x15c));const a166_0x544a=function(_0x5334cb,_0x4ad2b8){_0x5334cb=_0x5334cb-0x0;let _0x544a99=a166_0x4ad2[_0x5334cb];return _0x544a99;};const _0x476fc2=a166_0x544a;'use strict';const express=require(_0x476fc2('0x6')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x476fc2('0x7'));router[_0x476fc2('0x5')](_0x476fc2('0x3'),auth['isAuthenticated'](),controller[_0x476fc2('0x1')]),router[_0x476fc2('0x4')]('/:id',auth[_0x476fc2('0x2')](),controller[_0x476fc2('0x8')]),module[_0x476fc2('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index 0e847d4..1df0765 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a167_0x28bb=['sequelize','name','STRING','exports'];(function(_0xff12d5,_0x28bbc5){const _0xb64ffc=function(_0x40c3a3){while(--_0x40c3a3){_0xff12d5['push'](_0xff12d5['shift']());}};_0xb64ffc(++_0x28bbc5);}(a167_0x28bb,0x17b));const a167_0xb64f=function(_0xff12d5,_0x28bbc5){_0xff12d5=_0xff12d5-0x0;let _0xb64ffc=a167_0x28bb[_0xff12d5];return _0xb64ffc;};const _0x1ee45a=a167_0xb64f;'use strict';const Sequelize=require(_0x1ee45a('0x1'));module[_0x1ee45a('0x0')]={'name':{'type':Sequelize[_0x1ee45a('0x3')],'allowNull':![],'unique':_0x1ee45a('0x2')},'description':{'type':Sequelize[_0x1ee45a('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index 2813cfa..1f84e0d 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a168_0x205c=['attrPath','fields','HH:mm:ss','undefined','show','attrSerie2','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','attrSerie3','destroy','reportType','like','json','./dashboard.socket','then','attrs','Dashboard','CustomDashboards','filters','findAll','sequelize','addItem','query','body','attrRefresh','merge','userProfileId','status','create','limit','custom','key','index','attrMetric','map','sort','DashboardId','multibar-chart','lodash','omit','updatedAt','rawAttributes','attrReport','attrVoiceQueues','type','includeAll','rows','intersection','model','count','VIRTUAL','getItems','attrTimezone','pie-chart','attrFontSize','Unable\x20to\x20retrieve\x20the\x20current\x20user','user','update','keys','options','include','params','sendStatus','value','clock','catch','api','UserProfileSection','error','UserProfileResource','offset','createdAt','widgetAttributes:\x20%s','set','attrSerie1','attrUrl','../../components/parsers/qs','findOne','end','get','autoAssociation','where','filter','Content-Range','length','../../rediscache','pick','attrHourFormat','web-report','DashboardItem','name','role','order','0.00','stringify','stack','send','total','https://'];(function(_0x2ae546,_0x205c78){const _0x1bac2d=function(_0x17c22d){while(--_0x17c22d){_0x2ae546['push'](_0x2ae546['shift']());}};_0x1bac2d(++_0x205c78);}(a168_0x205c,0x1f3));const a168_0x1bac=function(_0x2ae546,_0x205c78){_0x2ae546=_0x2ae546-0x0;let _0x1bac2d=a168_0x205c[_0x2ae546];return _0x1bac2d;};const _0x2ba2e1=a168_0x1bac;'use strict';const _=require(_0x2ba2e1('0x22')),qs=require(_0x2ba2e1('0x48')),logger=require('../../config/logger')(_0x2ba2e1('0x3e')),{getSocket}=require(_0x2ba2e1('0x51')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x2ba2e1('0x10'));require(_0x2ba2e1('0x9'))['register'](socket);function respondWithResult(_0x17c22d,_0x5b8f21){return _0x5b8f21=_0x5b8f21||0xc8,function(_0x4756c6){const _0x2f252a=a168_0x1bac;if(_0x4756c6)return _0x17c22d[_0x2f252a('0x17')](_0x5b8f21)[_0x2f252a('0x8')](_0x4756c6);};}function respondWithFilteredResult(_0x237d67,_0x9ac19){return function(_0x4272c5){const _0x173390=a168_0x1bac;if(_0x4272c5){const _0x4c661f=_0x4272c5['count'],_0x3ff287=_0x9ac19[_0x173390('0x42')];let _0x521988=_0x9ac19[_0x173390('0x42')]+_0x9ac19[_0x173390('0x19')],_0x1c6959;return _0x521988>=_0x4c661f?(_0x521988=_0x4c661f,_0x1c6959=0xc8):_0x1c6959=0xce,_0x237d67[_0x173390('0x17')](_0x1c6959),_0x237d67[_0x173390('0x45')](_0x173390('0x4f'),_0x3ff287+'-'+_0x521988+'/'+_0x4c661f)[_0x173390('0x8')](_0x4272c5);}return null;};}function saveUpdates(_0x21099c){return function(_0x4fb4c9){const _0x1130d5=a168_0x1bac;if(_0x4fb4c9)return _0x4fb4c9[_0x1130d5('0x35')](_0x21099c)[_0x1130d5('0xa')](function(_0x1b239d){return _0x1b239d;});return null;};}function removeEntity(_0x35c583){return function(_0x40217b){const _0x54e943=a168_0x1bac;if(_0x40217b)return _0x40217b[_0x54e943('0x5')]()[_0x54e943('0xa')](function(){const _0x4999aa=_0x54e943,_0x1ad79=_0x40217b[_0x4999aa('0x4b')]({'plain':!![]}),_0xb56754=_0x4999aa('0xd');return db[_0x4999aa('0x41')][_0x4999aa('0x5')]({'where':{'type':_0xb56754,'resourceId':_0x1ad79['id']}})['then'](function(){return _0x40217b;});})['then'](function(){const _0x1a41db=_0x54e943;_0x35c583[_0x1a41db('0x17')](0xcc)[_0x1a41db('0x4a')]();});};}function handleEntityNotFound(_0x24f6ca){return function(_0x2f5093){const _0x2275fe=a168_0x1bac;return!_0x2f5093&&_0x24f6ca[_0x2275fe('0x3a')](0x194),_0x2f5093;};}function handleError(_0x3cc69c,_0x21f6a3){return _0x21f6a3=_0x21f6a3||0x1f4,function(_0x5c132d){const _0x2b8773=a168_0x1bac;logger[_0x2b8773('0x40')](_0x5c132d[_0x2b8773('0x5b')]),_0x5c132d[_0x2b8773('0x56')]&&delete _0x5c132d[_0x2b8773('0x56')],_0x3cc69c[_0x2b8773('0x17')](_0x21f6a3)[_0x2b8773('0x5c')](_0x5c132d);};}exports[_0x2ba2e1('0x1c')]=function(_0x28802f,_0x41c696){const _0x231b88=_0x2ba2e1;let _0x4b05be={};const _0x1f3ece={},_0x4e7233={'count':0x0,'rows':[]},_0xe5f07d=_[_0x231b88('0x1e')](db[_0x231b88('0xc')]['rawAttributes'],function(_0x25b984){const _0x35e361=_0x231b88;return{'name':_0x25b984['fieldName'],'type':_0x25b984[_0x35e361('0x28')][_0x35e361('0x1b')]};});_0x1f3ece['model']=_[_0x231b88('0x1e')](_0xe5f07d,_0x231b88('0x56')),_0x1f3ece[_0x231b88('0x12')]=_['keys'](_0x28802f[_0x231b88('0x12')]),_0x1f3ece['filters']=_['intersection'](_0x1f3ece[_0x231b88('0x2c')],_0x1f3ece[_0x231b88('0x12')]),_0x4b05be[_0x231b88('0x3')]=_[_0x231b88('0x2b')](_0x1f3ece[_0x231b88('0x2c')],qs[_0x231b88('0x60')](_0x28802f['query'][_0x231b88('0x60')])),_0x4b05be['attributes']=_0x4b05be[_0x231b88('0x3')][_0x231b88('0x50')]?_0x4b05be[_0x231b88('0x3')]:_0x1f3ece[_0x231b88('0x2c')];typeof _0x28802f['query']['nolimit']===_0x231b88('0x62')&&(_0x4b05be[_0x231b88('0x19')]=qs['limit'](_0x28802f[_0x231b88('0x12')][_0x231b88('0x19')]),_0x4b05be[_0x231b88('0x42')]=qs['offset'](_0x28802f[_0x231b88('0x12')][_0x231b88('0x42')]));_0x4b05be['order']=qs[_0x231b88('0x1f')](_0x28802f['query'][_0x231b88('0x1f')]),_0x4b05be[_0x231b88('0x4d')]=qs[_0x231b88('0xe')](_[_0x231b88('0x52')](_0x28802f['query'],_0x1f3ece['filters']),_0xe5f07d);_0x28802f['query'][_0x231b88('0x4e')]&&(_0x4b05be[_0x231b88('0x4d')]=_['merge'](_0x4b05be['where'],{[Op['or']]:_[_0x231b88('0x1e')](_0xe5f07d,function(_0x2e98f1){const _0x3532bd=_0x231b88;if(_0x2e98f1['type']!==_0x3532bd('0x2e')){const _0x3fc899={};return _0x3fc899[_0x2e98f1['name']]={[Op['like']]:'%'+_0x28802f['query'][_0x3532bd('0x4e')]+'%'},_0x3fc899;}})}));_0x4b05be=_[_0x231b88('0x15')]({},_0x4b05be,_0x28802f[_0x231b88('0x37')]);const _0x35f53c={'where':_0x4b05be[_0x231b88('0x4d')]};return db[_0x231b88('0xc')]['count'](_0x35f53c)[_0x231b88('0xa')](function(_0xb4150f){const _0x109ff8=_0x231b88;return _0x4e7233[_0x109ff8('0x2d')]=_0xb4150f,_0x28802f[_0x109ff8('0x12')]['includeAll']&&(_0x4b05be[_0x109ff8('0x38')]=[{'all':!![]}]),db[_0x109ff8('0xc')][_0x109ff8('0xf')](_0x4b05be);})[_0x231b88('0xa')](function(_0x1c14d2){const _0x4d4660=_0x231b88;return _0x4e7233[_0x4d4660('0x2a')]=_0x1c14d2,_0x4e7233;})[_0x231b88('0xa')](respondWithFilteredResult(_0x41c696,_0x4b05be))['catch'](handleError(_0x41c696,null));},exports[_0x2ba2e1('0x0')]=function(_0x4fbbf8,_0x3bae1e){const _0x70bd36=_0x2ba2e1;let _0x5cea17={'raw':![],'where':{'id':_0x4fbbf8[_0x70bd36('0x39')]['id']}};const _0x44df5a={};return _0x44df5a['model']=_[_0x70bd36('0x36')](db[_0x70bd36('0xc')][_0x70bd36('0x25')]),_0x44df5a['query']=_[_0x70bd36('0x36')](_0x4fbbf8[_0x70bd36('0x12')]),_0x44df5a[_0x70bd36('0xe')]=_[_0x70bd36('0x2b')](_0x44df5a[_0x70bd36('0x2c')],_0x44df5a['query']),_0x5cea17['attributes']=_['intersection'](_0x44df5a[_0x70bd36('0x2c')],qs[_0x70bd36('0x60')](_0x4fbbf8[_0x70bd36('0x12')][_0x70bd36('0x60')])),_0x5cea17[_0x70bd36('0x3')]=_0x5cea17['attributes'][_0x70bd36('0x50')]?_0x5cea17[_0x70bd36('0x3')]:_0x44df5a[_0x70bd36('0x2c')],_0x4fbbf8[_0x70bd36('0x12')][_0x70bd36('0x29')]&&(_0x5cea17[_0x70bd36('0x38')]=[{'all':!![]}]),_0x5cea17=_[_0x70bd36('0x15')]({},_0x5cea17,_0x4fbbf8[_0x70bd36('0x37')]),db[_0x70bd36('0xc')][_0x70bd36('0x49')](_0x5cea17)[_0x70bd36('0xa')](handleEntityNotFound(_0x3bae1e,null))['then'](respondWithResult(_0x3bae1e,null))[_0x70bd36('0x3d')](handleError(_0x3bae1e,null));},exports[_0x2ba2e1('0x18')]=function(_0x548900,_0x45ccee){const _0x16eeda=_0x2ba2e1;return db[_0x16eeda('0xc')][_0x16eeda('0x18')](_0x548900['body'],{})['then'](function(_0x2f3cc){const _0x1a2f3b=_0x16eeda,_0x486bdc=_0x548900[_0x1a2f3b('0x34')][_0x1a2f3b('0x4b')]({'plain':!![]});if(!_0x486bdc)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x486bdc[_0x1a2f3b('0x57')]===_0x1a2f3b('0x34')){const _0x4ef33c=_0x2f3cc[_0x1a2f3b('0x4b')]({'plain':!![]}),_0x5058e6=_0x1a2f3b('0xd');return db[_0x1a2f3b('0x3f')][_0x1a2f3b('0x49')]({'where':{'name':_0x5058e6,'userProfileId':_0x486bdc[_0x1a2f3b('0x16')]},'raw':!![]})['then'](function(_0x15f617){const _0x3f143f=_0x1a2f3b;return _0x15f617&&_0x15f617[_0x3f143f('0x4c')]===0x0?db[_0x3f143f('0x41')]['create']({'name':_0x4ef33c[_0x3f143f('0x56')],'resourceId':_0x4ef33c['id'],'type':_0x15f617[_0x3f143f('0x56')],'sectionId':_0x15f617['id']},{})[_0x3f143f('0xa')](function(){return _0x2f3cc;}):_0x2f3cc;})[_0x1a2f3b('0x3d')](function(_0x6a5489){const _0x38f825=_0x1a2f3b;logger[_0x38f825('0x40')](_0x38f825('0x2'),_0x6a5489);throw _0x6a5489;});}return _0x2f3cc;})['then'](respondWithResult(_0x45ccee,0xc9))[_0x16eeda('0x3d')](handleError(_0x45ccee,null));},exports['clone']=function(_0x593a8b,_0x422b2a){const _0x5158c7=_0x2ba2e1;let _0x5c090d={'where':{'id':_0x593a8b[_0x5158c7('0x39')]['id']}};const _0x53a6f0={};return _0x53a6f0[_0x5158c7('0x2c')]=_['keys'](db[_0x5158c7('0xc')][_0x5158c7('0x25')]),_0x5c090d[_0x5158c7('0x3')]=_['intersection'](_0x53a6f0[_0x5158c7('0x2c')],qs[_0x5158c7('0x60')](_0x593a8b['query'][_0x5158c7('0x60')])),_0x5c090d[_0x5158c7('0x3')]=_0x5c090d[_0x5158c7('0x3')][_0x5158c7('0x50')]?_0x5c090d['attributes']:_0x53a6f0[_0x5158c7('0x2c')],_0x593a8b[_0x5158c7('0x12')][_0x5158c7('0x29')]&&(_0x5c090d[_0x5158c7('0x38')]=[{'all':!![]}]),_0x5c090d=_[_0x5158c7('0x15')]({},_0x5c090d,_0x593a8b[_0x5158c7('0x37')]),db[_0x5158c7('0xc')][_0x5158c7('0x49')](_0x5c090d)[_0x5158c7('0xa')](handleEntityNotFound(_0x422b2a,null))['then'](function(_0x15e47b){const _0x48c96f=_0x5158c7;if(_0x15e47b){let _0x18f3c4=_0x15e47b[_0x48c96f('0x4b')]({'plain':!![]});return _0x18f3c4=qs[_0x48c96f('0x23')](_0x18f3c4,['id',_0x48c96f('0x43'),_0x48c96f('0x24')]),_0x593a8b['body']=_[_0x48c96f('0x23')](_0x593a8b[_0x48c96f('0x13')],['id',_0x48c96f('0x43'),_0x48c96f('0x24')]),db[_0x48c96f('0xc')][_0x48c96f('0x18')](_[_0x48c96f('0x15')](_0x18f3c4,_0x593a8b['body']),{'include':_0x593a8b[_0x48c96f('0x12')][_0x48c96f('0x29')]?[{'all':!![]}]:undefined})[_0x48c96f('0xa')](function(_0x23cfd6){const _0x56f3ad=_0x48c96f,_0x6e7038=_0x593a8b[_0x56f3ad('0x34')]['get']({'plain':!![]});if(!_0x6e7038)throw new Error(_0x56f3ad('0x33'));if(_0x6e7038[_0x56f3ad('0x57')]===_0x56f3ad('0x34')){const _0xc8e701=_0x23cfd6['get']({'plain':!![]}),_0x2773c7='CustomDashboards';return db[_0x56f3ad('0x3f')][_0x56f3ad('0x49')]({'where':{'name':_0x2773c7,'userProfileId':_0x6e7038[_0x56f3ad('0x16')]},'raw':!![]})[_0x56f3ad('0xa')](function(_0x61c50){const _0x543406=_0x56f3ad;return _0x61c50&&_0x61c50[_0x543406('0x4c')]===0x0?db[_0x543406('0x41')][_0x543406('0x18')]({'name':_0xc8e701['name'],'resourceId':_0xc8e701['id'],'type':_0x61c50[_0x543406('0x56')],'sectionId':_0x61c50['id']},{})[_0x543406('0xa')](function(){return _0x23cfd6;}):_0x23cfd6;})[_0x56f3ad('0x3d')](function(_0xf8238c){const _0x2a4ac4=_0x56f3ad;logger[_0x2a4ac4('0x40')](_0x2a4ac4('0x2'),_0xf8238c);throw _0xf8238c;});}return _0x23cfd6;});}})['then'](respondWithResult(_0x422b2a,0xc9))[_0x5158c7('0x3d')](handleError(_0x422b2a,null));},exports['update']=function(_0x549f14,_0x4e8a0a){const _0x24a261=_0x2ba2e1;return _0x549f14['body']['id']&&delete _0x549f14['body']['id'],db[_0x24a261('0xc')][_0x24a261('0x49')]({'where':{'id':_0x549f14[_0x24a261('0x39')]['id']}})[_0x24a261('0xa')](handleEntityNotFound(_0x4e8a0a,null))['then'](saveUpdates(_0x549f14['body'],null))[_0x24a261('0xa')](respondWithResult(_0x4e8a0a,null))[_0x24a261('0x3d')](handleError(_0x4e8a0a,null));},exports[_0x2ba2e1('0x5')]=function(_0xb94a14,_0x4cc651){const _0x1d3007=_0x2ba2e1;return db['Dashboard'][_0x1d3007('0x49')]({'where':{'id':_0xb94a14[_0x1d3007('0x39')]['id']}})[_0x1d3007('0xa')](handleEntityNotFound(_0x4cc651,null))[_0x1d3007('0xa')](removeEntity(_0x4cc651,null))[_0x1d3007('0x3d')](handleError(_0x4cc651,null));};function widgetAttributes(_0x524996){const _0x3c2302=_0x2ba2e1;try{switch(_0x524996[_0x3c2302('0x28')]){case'iframe':return[{'name':_0x3c2302('0x47'),'value':_0x524996[_0x3c2302('0x47')]||(_0x524996['attrs']&&_0x524996[_0x3c2302('0xb')][0x0]?_0x524996[_0x3c2302('0xb')][0x0]['value']:undefined)||_0x3c2302('0x5e')}];case _0x3c2302('0x1a'):return[{'name':_0x3c2302('0x5f'),'value':_0x524996[_0x3c2302('0x5f')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x0]?_0x524996[_0x3c2302('0xb')][0x0]['value']:undefined)||''}];case _0x3c2302('0x3c'):return[{'name':'attrHourFormat','value':_0x524996[_0x3c2302('0x53')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x0]?_0x524996['attrs'][0x0][_0x3c2302('0x3b')]:undefined)||_0x3c2302('0x61')},{'name':_0x3c2302('0x30'),'value':_0x524996['attrTimezone']||(_0x524996[_0x3c2302('0xb')]&&_0x524996['attrs'][0x1]?_0x524996[_0x3c2302('0xb')][0x1]['value']:undefined)||_0x3c2302('0x59')},{'name':_0x3c2302('0x32'),'value':_0x524996[_0x3c2302('0x32')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x2]?_0x524996[_0x3c2302('0xb')][0x2][_0x3c2302('0x3b')]:undefined)||0xc}];case'counter':return[{'name':_0x3c2302('0x1d'),'value':_0x524996[_0x3c2302('0x1d')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x0]?_0x524996[_0x3c2302('0xb')][0x0]['value']:undefined)||_0x3c2302('0x5d')},{'name':_0x3c2302('0x27'),'value':_0x524996[_0x3c2302('0x27')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x1]?_0x524996[_0x3c2302('0xb')][0x1][_0x3c2302('0x3b')]:undefined)||[]},{'name':_0x3c2302('0x32'),'value':_0x524996['attrFontSize']||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x2]?_0x524996[_0x3c2302('0xb')][0x2]['value']:undefined)||0x14}];case _0x3c2302('0x21'):case _0x3c2302('0x31'):return[{'name':'attrSerie1','value':_0x524996[_0x3c2302('0x46')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996['attrs'][0x0]?_0x524996[_0x3c2302('0xb')][0x0][_0x3c2302('0x3b')]:undefined)||_0x3c2302('0x5d')},{'name':_0x3c2302('0x1'),'value':_0x524996['attrSerie2']||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x1]?_0x524996[_0x3c2302('0xb')][0x1]['value']:undefined)||null},{'name':_0x3c2302('0x4'),'value':_0x524996[_0x3c2302('0x4')]||(_0x524996['attrs']&&_0x524996[_0x3c2302('0xb')][0x2]?_0x524996['attrs'][0x2][_0x3c2302('0x3b')]:undefined)||null},{'name':_0x3c2302('0x27'),'value':_0x524996[_0x3c2302('0x27')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x3]?_0x524996['attrs'][0x3][_0x3c2302('0x3b')]:undefined)||[]}];case _0x3c2302('0x54'):return[{'name':_0x3c2302('0x26'),'type':_0x524996[_0x3c2302('0x6')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996['attrs'][0x0]?_0x524996[_0x3c2302('0xb')][0x0][_0x3c2302('0x28')]:undefined)||null,'value':_0x524996['attrReport']||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x0]?_0x524996['attrs'][0x0]['value']:undefined)||null},{'name':_0x3c2302('0x14'),'value':_0x524996[_0x3c2302('0x14')]||(_0x524996[_0x3c2302('0xb')]&&_0x524996[_0x3c2302('0xb')][0x1]?_0x524996[_0x3c2302('0xb')][0x1][_0x3c2302('0x3b')]:undefined)||0x0}];default:return[];}}catch(_0x1b60c6){return logger[_0x3c2302('0x40')](_0x3c2302('0x44'),JSON[_0x3c2302('0x5a')](_0x1b60c6)),[];}}exports[_0x2ba2e1('0x11')]=function(_0x9b86d6,_0xfb4dfa){const _0x16f661=_0x2ba2e1;return _0x9b86d6[_0x16f661('0x13')]['id']&&delete _0x9b86d6[_0x16f661('0x13')]['id'],db[_0x16f661('0xc')]['findOne']({'where':{'id':_0x9b86d6[_0x16f661('0x39')]['id']}})[_0x16f661('0xa')](handleEntityNotFound(_0xfb4dfa,null))['then'](function(_0x108667){const _0x445220=_0x16f661;if(_0x108667)return _0x9b86d6['body'][_0x445220('0x20')]=_0x108667['id'],_0x9b86d6['body'][_0x445220('0xb')]=widgetAttributes(_0x9b86d6[_0x445220('0x13')]),db[_0x445220('0x55')][_0x445220('0x18')](_0x9b86d6[_0x445220('0x13')]);})[_0x16f661('0xa')](respondWithResult(_0xfb4dfa,null))[_0x16f661('0x3d')](handleError(_0xfb4dfa,null));},exports[_0x2ba2e1('0x2f')]=function(_0x9c44a3,_0x547ce7){const _0x1c8eed=_0x2ba2e1;let _0x3c9d24={};const _0x4e4638={};let _0x3c46e6,_0x437f28;return db[_0x1c8eed('0xc')][_0x1c8eed('0x49')]({'where':{'id':_0x9c44a3[_0x1c8eed('0x39')]['id']}})[_0x1c8eed('0xa')](handleEntityNotFound(_0x547ce7,null))[_0x1c8eed('0xa')](function(_0x1f9d99){const _0x40f0ba=_0x1c8eed;if(_0x1f9d99)return _0x3c46e6=_0x1f9d99,_0x4e4638['model']=_[_0x40f0ba('0x36')](db[_0x40f0ba('0x55')][_0x40f0ba('0x25')]),_0x4e4638[_0x40f0ba('0x12')]=_[_0x40f0ba('0x36')](_0x9c44a3[_0x40f0ba('0x12')]),_0x4e4638[_0x40f0ba('0xe')]=_[_0x40f0ba('0x2b')](_0x4e4638[_0x40f0ba('0x2c')],_0x4e4638[_0x40f0ba('0x12')]),_0x3c9d24[_0x40f0ba('0x3')]=_[_0x40f0ba('0x2b')](_0x4e4638[_0x40f0ba('0x2c')],qs[_0x40f0ba('0x60')](_0x9c44a3[_0x40f0ba('0x12')]['fields'])),_0x3c9d24[_0x40f0ba('0x3')]=_0x3c9d24[_0x40f0ba('0x3')][_0x40f0ba('0x50')]?_0x3c9d24[_0x40f0ba('0x3')]:_0x4e4638[_0x40f0ba('0x2c')],_0x3c9d24[_0x40f0ba('0x58')]=qs['sort'](_0x9c44a3['query']['sort']),_0x3c9d24['where']=qs['filters'](_['pick'](_0x9c44a3['query'],_0x4e4638[_0x40f0ba('0xe')])),_0x9c44a3['query'][_0x40f0ba('0x4e')]&&(_0x3c9d24[_0x40f0ba('0x4d')]=_[_0x40f0ba('0x15')](_0x3c9d24[_0x40f0ba('0x4d')],{[Op['or']]:_[_0x40f0ba('0x1e')](_0x3c9d24[_0x40f0ba('0x3')],function(_0x403db8){const _0x4a0607=_0x40f0ba,_0x9ccdf4={};return _0x9ccdf4[_0x403db8]={[Op[_0x4a0607('0x7')]]:'%'+_0x9c44a3[_0x4a0607('0x12')][_0x4a0607('0x4e')]+'%'},_0x9ccdf4;})})),_0x3c9d24=_[_0x40f0ba('0x15')]({},_0x3c9d24,_0x9c44a3['options']),_0x3c46e6[_0x40f0ba('0x2f')](_0x3c9d24);})[_0x1c8eed('0xa')](function(_0xd2914b){const _0x2bbe21=_0x1c8eed;if(_0xd2914b)return _0x437f28=_0xd2914b[_0x2bbe21('0x50')],typeof _0x9c44a3[_0x2bbe21('0x12')]['nolimit']===_0x2bbe21('0x62')&&(_0x3c9d24[_0x2bbe21('0x19')]=qs[_0x2bbe21('0x19')](_0x9c44a3[_0x2bbe21('0x12')][_0x2bbe21('0x19')]),_0x3c9d24[_0x2bbe21('0x42')]=qs[_0x2bbe21('0x42')](_0x9c44a3[_0x2bbe21('0x12')][_0x2bbe21('0x42')])),_0x3c46e6[_0x2bbe21('0x2f')](_0x3c9d24);})[_0x1c8eed('0xa')](function(_0x95d8eb){if(_0x95d8eb)return _0x95d8eb?{'count':_0x437f28,'rows':_0x95d8eb}:null;})[_0x1c8eed('0xa')](respondWithResult(_0x547ce7,null))[_0x1c8eed('0x3d')](handleError(_0x547ce7,null));}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index 887ba6b..0ccc7be 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a169_0x1826=['exports','save','emit','Dashboard','undefined','events','setMaxListeners','update'];(function(_0x3d6c45,_0x1826af){const _0x4766a8=function(_0x40805b){while(--_0x40805b){_0x3d6c45['push'](_0x3d6c45['shift']());}};_0x4766a8(++_0x1826af);}(a169_0x1826,0x102));const a169_0x4766=function(_0x3d6c45,_0x1826af){_0x3d6c45=_0x3d6c45-0x0;let _0x4766a8=a169_0x1826[_0x3d6c45];return _0x4766a8;};const _0x27d159=a169_0x4766;'use strict';const EventEmitter=require(_0x27d159('0x3')),Dashboard=require('../../mysqldb')['db'][_0x27d159('0x1')],DashboardEvents=new EventEmitter();DashboardEvents[_0x27d159('0x4')](0x0);const events={'afterCreate':_0x27d159('0x7'),'afterUpdate':_0x27d159('0x5'),'afterDestroy':'remove'};function emitEvent(_0x40805b){return function(_0x341b75){const _0x45ecc5=a169_0x4766;DashboardEvents['emit'](_0x40805b+':'+_0x341b75['id'],_0x341b75),DashboardEvents[_0x45ecc5('0x0')](_0x40805b,_0x341b75);};}for(const e in events){if(typeof events[e]!==_0x27d159('0x2')){const event=events[e];Dashboard['addHook'](e,emitEvent(event));}}module[_0x27d159('0x6')]=DashboardEvents; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index 773a851..773f748 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a170_0x1978=['Dashboard','dashboards','./dashboard.attributes','define'];(function(_0x2fe3fd,_0x197884){const _0x5a37e6=function(_0xffca21){while(--_0xffca21){_0x2fe3fd['push'](_0x2fe3fd['shift']());}};_0x5a37e6(++_0x197884);}(a170_0x1978,0x1a3));const a170_0x5a37=function(_0x2fe3fd,_0x197884){_0x2fe3fd=_0x2fe3fd-0x0;let _0x5a37e6=a170_0x1978[_0x2fe3fd];return _0x5a37e6;};const _0x66e2fb=a170_0x5a37;'use strict';const attributes=require(_0x66e2fb('0x3'));module['exports']=function(_0xffca21){const _0x2c065b=_0x66e2fb,_0x8e1d7=_0xffca21[_0x2c065b('0x0')](_0x2c065b('0x1'),attributes,{'tableName':_0x2c065b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x8e1d7;}; \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index a05919d..af467b9 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a171_0x2ddb=['./dashboard.socket','../../rediscache','register'];(function(_0x4fc7cc,_0x2ddb8b){const _0xcbfa6a=function(_0x2b2e90){while(--_0x2b2e90){_0x4fc7cc['push'](_0x4fc7cc['shift']());}};_0xcbfa6a(++_0x2ddb8b);}(a171_0x2ddb,0x15e));const a171_0xcbfa=function(_0x4fc7cc,_0x2ddb8b){_0x4fc7cc=_0x4fc7cc-0x0;let _0xcbfa6a=a171_0x2ddb[_0x4fc7cc];return _0xcbfa6a;};const _0x379b38=a171_0xcbfa;'use strict';const {getSocket}=require(_0x379b38('0x2')),socket=getSocket();require(_0x379b38('0x1'))[_0x379b38('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index 5d5ee8a..67f03ab 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a172_0x2373=['remove','dashboard:','length','register'];(function(_0x3ac951,_0x2373ca){const _0x35135e=function(_0x74ffc7){while(--_0x74ffc7){_0x3ac951['push'](_0x3ac951['shift']());}};_0x35135e(++_0x2373ca);}(a172_0x2373,0x1ae));const a172_0x3513=function(_0x3ac951,_0x2373ca){_0x3ac951=_0x3ac951-0x0;let _0x35135e=a172_0x2373[_0x3ac951];return _0x35135e;};const _0x32753c=a172_0x3513;'use strict';const DashboardEvents=require('./dashboard.events'),events=['save',_0x32753c('0x2'),'update'];function createListener(_0x74ffc7,_0x36abd0){return function(_0x5a8313){_0x36abd0['emit'](_0x74ffc7,_0x5a8313);};}exports[_0x32753c('0x1')]=function(_0x125b9e){const _0x3e2772=_0x32753c;for(let _0x4b437e=0x0,_0x396e9e=events[_0x3e2772('0x0')];_0x4b437e<_0x396e9e;_0x4b437e++){const _0x3e7064=events[_0x4b437e],_0x4b048b=createListener(_0x3e2772('0x3')+_0x3e7064,_0x125b9e);DashboardEvents['on'](_0x3e7064,_0x4b048b);}}; \ No newline at end of file +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 diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index 29382d8..d937624 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a173_0x302f=['../../components/auth/service','delete','getItems','show','create','index','put','Router','express','./dashboard.controller','/:id/clone','clone','isAuthenticated','destroy','/:id','get','exports','/:id/items','post'];(function(_0xd19e0b,_0x302f75){const _0x20a0c0=function(_0x3498b4){while(--_0x3498b4){_0xd19e0b['push'](_0xd19e0b['shift']());}};_0x20a0c0(++_0x302f75);}(a173_0x302f,0xd7));const a173_0x20a0=function(_0xd19e0b,_0x302f75){_0xd19e0b=_0xd19e0b-0x0;let _0x20a0c0=a173_0x302f[_0xd19e0b];return _0x20a0c0;};const _0x18e0e5=a173_0x20a0;'use strict';const express=require(_0x18e0e5('0x2')),router=express[_0x18e0e5('0x1')](),auth=require(_0x18e0e5('0xd')),controller=require(_0x18e0e5('0x3'));router[_0x18e0e5('0x9')]('/',auth[_0x18e0e5('0x6')](),controller[_0x18e0e5('0x12')]),router[_0x18e0e5('0x9')]('/:id',auth[_0x18e0e5('0x6')](),controller[_0x18e0e5('0x10')]),router[_0x18e0e5('0x9')](_0x18e0e5('0xb'),auth['isAuthenticated'](),controller[_0x18e0e5('0xf')]),router[_0x18e0e5('0xc')]('/',auth['isAuthenticated'](),controller[_0x18e0e5('0x11')]),router[_0x18e0e5('0xc')](_0x18e0e5('0x4'),auth['isAuthenticated'](),controller[_0x18e0e5('0x5')]),router[_0x18e0e5('0xc')](_0x18e0e5('0xb'),auth['isAuthenticated'](),controller['addItem']),router[_0x18e0e5('0x0')](_0x18e0e5('0x8'),auth[_0x18e0e5('0x6')](),controller['update']),router[_0x18e0e5('0xe')]('/:id',auth[_0x18e0e5('0x6')](),controller[_0x18e0e5('0x7')]),module[_0x18e0e5('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 47816a0..07a272a 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a174_0x1ab3=['parse','TEXT','INTEGER','stringify','attrs','sequelize','setDataValue','STRING'];(function(_0x444101,_0x1ab3dd){const _0x576397=function(_0x14676f){while(--_0x14676f){_0x444101['push'](_0x444101['shift']());}};_0x576397(++_0x1ab3dd);}(a174_0x1ab3,0x70));const a174_0x5763=function(_0x444101,_0x1ab3dd){_0x444101=_0x444101-0x0;let _0x576397=a174_0x1ab3[_0x444101];return _0x576397;};const _0x39fd34=a174_0x5763;'use strict';const Sequelize=require(_0x39fd34('0x5'));module['exports']={'title':{'type':Sequelize[_0x39fd34('0x7')],'allowNull':![]},'type':{'type':Sequelize['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x39fd34('0x1')]('long'),'get':function(){const _0x2e6b7f=_0x39fd34;try{return JSON[_0x2e6b7f('0x0')](this['getDataValue']('attrs'));}catch(_0x14676f){return[];}},'set':function(_0x565e34){const _0x18626b=_0x39fd34;try{this[_0x18626b('0x6')](_0x18626b('0x4'),JSON['stringify'](_0x565e34));}catch(_0x4c30f6){this[_0x18626b('0x6')](_0x18626b('0x4'),JSON[_0x18626b('0x3')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x39fd34('0x2')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x39fd34('0x2')]},'col':{'type':Sequelize['INTEGER']},'background':{'type':Sequelize[_0x39fd34('0x7')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x39fd34('0x7')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x39fd34('0x7')]}}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index a0419e9..3c16874 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a175_0x2b4a=['iframe','custom','../../mysqldb','include','value','stack','DashboardItem','filters','params','end','findOne','type','name','error','../../rediscache','json','attrMetric','stringify','status','HH:mm:ss','multibar-chart','intersection','../../components/parsers/qs','fields','attrRefresh','body','counter','show','attrTimezone','query','widgetAttributes:\x20%s','attrUrl','attrFontSize','destroy','lodash','attrVoiceQueues','update','catch','options','create','attrPath','register','attrHourFormat','total','attrSerie2','web-report','../../config/logger','model','attrs','merge','attributes','then','reportType','keys','rawAttributes'];(function(_0x3db615,_0x2b4ae8){const _0xe4c771=function(_0x6c3b94){while(--_0x6c3b94){_0x3db615['push'](_0x3db615['shift']());}};_0xe4c771(++_0x2b4ae8);}(a175_0x2b4a,0x6e));const a175_0xe4c7=function(_0x3db615,_0x2b4ae8){_0x3db615=_0x3db615-0x0;let _0xe4c771=a175_0x2b4a[_0x3db615];return _0xe4c771;};const _0x3fedb3=a175_0xe4c7;'use strict';const _=require(_0x3fedb3('0x22')),qs=require(_0x3fedb3('0x16')),logger=require(_0x3fedb3('0x2e'))('api'),{getSocket}=require(_0x3fedb3('0xe')),socket=getSocket(),db=require(_0x3fedb3('0x2'))['db'];require('./dashboardItem.socket')[_0x3fedb3('0x29')](socket);function respondWithResult(_0x6c3b94,_0x195a29){return _0x195a29=_0x195a29||0xc8,function(_0x9365e9){const _0x11fdf4=a175_0xe4c7;if(_0x9365e9)return _0x6c3b94[_0x11fdf4('0x12')](_0x195a29)[_0x11fdf4('0xf')](_0x9365e9);};}function saveUpdates(_0x15bf10){return function(_0x81bef8){const _0x17cc26=a175_0xe4c7;if(_0x81bef8)return _0x81bef8['update'](_0x15bf10)[_0x17cc26('0x33')](function(_0x3f1595){return _0x3f1595;});return null;};}function removeEntity(_0xaae8c7){return function(_0xba2d79){const _0x57437e=a175_0xe4c7;if(_0xba2d79)return _0xba2d79[_0x57437e('0x21')]()[_0x57437e('0x33')](function(){const _0x39a167=_0x57437e;_0xaae8c7['status'](0xcc)[_0x39a167('0x9')]();});};}function handleEntityNotFound(_0x4d426d){return function(_0x4dcc72){return!_0x4dcc72&&_0x4d426d['sendStatus'](0x194),_0x4dcc72;};}function handleError(_0x283520,_0x3743f8){return _0x3743f8=_0x3743f8||0x1f4,function(_0x2bbed8){const _0x4ebb2a=a175_0xe4c7;logger[_0x4ebb2a('0xd')](_0x2bbed8[_0x4ebb2a('0x5')]),_0x2bbed8[_0x4ebb2a('0xc')]&&delete _0x2bbed8['name'],_0x283520[_0x4ebb2a('0x12')](_0x3743f8)['send'](_0x2bbed8);};}exports[_0x3fedb3('0x1b')]=function(_0x59a8c7,_0x26baff){const _0x15d611=_0x3fedb3;let _0x21a588={'raw':![],'where':{'id':_0x59a8c7[_0x15d611('0x8')]['id']}};const _0x3dfa86={};return _0x3dfa86[_0x15d611('0x2f')]=_[_0x15d611('0x35')](db['DashboardItem'][_0x15d611('0x36')]),_0x3dfa86[_0x15d611('0x1d')]=_['keys'](_0x59a8c7[_0x15d611('0x1d')]),_0x3dfa86[_0x15d611('0x7')]=_[_0x15d611('0x15')](_0x3dfa86['model'],_0x3dfa86['query']),_0x21a588[_0x15d611('0x32')]=_['intersection'](_0x3dfa86[_0x15d611('0x2f')],qs[_0x15d611('0x17')](_0x59a8c7[_0x15d611('0x1d')]['fields'])),_0x21a588['attributes']=_0x21a588[_0x15d611('0x32')]['length']?_0x21a588[_0x15d611('0x32')]:_0x3dfa86[_0x15d611('0x2f')],_0x59a8c7[_0x15d611('0x1d')]['includeAll']&&(_0x21a588[_0x15d611('0x3')]=[{'all':!![]}]),_0x21a588=_[_0x15d611('0x31')]({},_0x21a588,_0x59a8c7[_0x15d611('0x26')]),db[_0x15d611('0x6')][_0x15d611('0xa')](_0x21a588)['then'](handleEntityNotFound(_0x26baff,null))['then'](respondWithResult(_0x26baff,null))[_0x15d611('0x25')](handleError(_0x26baff,null));},exports[_0x3fedb3('0x21')]=function(_0x1aea88,_0x8603fb){const _0x10243a=_0x3fedb3;return db[_0x10243a('0x6')][_0x10243a('0xa')]({'where':{'id':_0x1aea88[_0x10243a('0x8')]['id']}})[_0x10243a('0x33')](handleEntityNotFound(_0x8603fb,null))['then'](removeEntity(_0x8603fb,null))[_0x10243a('0x25')](handleError(_0x8603fb,null));};function widgetAttributes(_0x5f47fe){const _0x4947ff=_0x3fedb3;try{switch(_0x5f47fe[_0x4947ff('0xb')]){case _0x4947ff('0x0'):return[{'name':_0x4947ff('0x1f'),'value':_0x5f47fe['attrUrl']||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0][_0x4947ff('0x4')]:undefined)||'https://'}];case _0x4947ff('0x1'):return[{'name':_0x4947ff('0x28'),'value':_0x5f47fe[_0x4947ff('0x28')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe['attrs'][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0][_0x4947ff('0x4')]:undefined)||''}];case'clock':return[{'name':'attrHourFormat','value':_0x5f47fe[_0x4947ff('0x2a')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0][_0x4947ff('0x4')]:undefined)||_0x4947ff('0x13')},{'name':_0x4947ff('0x1c'),'value':_0x5f47fe[_0x4947ff('0x1c')]||(_0x5f47fe['attrs']&&_0x5f47fe[_0x4947ff('0x30')][0x1]?_0x5f47fe[_0x4947ff('0x30')][0x1][_0x4947ff('0x4')]:undefined)||'0.00'},{'name':_0x4947ff('0x20'),'value':_0x5f47fe['attrFontSize']||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x2]?_0x5f47fe['attrs'][0x2][_0x4947ff('0x4')]:undefined)||0xc}];case _0x4947ff('0x1a'):return[{'name':_0x4947ff('0x10'),'value':_0x5f47fe[_0x4947ff('0x10')]||(_0x5f47fe['attrs']&&_0x5f47fe['attrs'][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0]['value']:undefined)||'total'},{'name':_0x4947ff('0x23'),'value':_0x5f47fe[_0x4947ff('0x23')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x1]?_0x5f47fe[_0x4947ff('0x30')][0x1][_0x4947ff('0x4')]:undefined)||[]},{'name':_0x4947ff('0x20'),'value':_0x5f47fe['attrFontSize']||(_0x5f47fe['attrs']&&_0x5f47fe[_0x4947ff('0x30')][0x2]?_0x5f47fe[_0x4947ff('0x30')][0x2][_0x4947ff('0x4')]:undefined)||0x14}];case _0x4947ff('0x14'):case'pie-chart':return[{'name':'attrSerie1','value':_0x5f47fe['attrSerie1']||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0]['value']:undefined)||_0x4947ff('0x2b')},{'name':_0x4947ff('0x2c'),'value':_0x5f47fe['attrSerie2']||(_0x5f47fe['attrs']&&_0x5f47fe[_0x4947ff('0x30')][0x1]?_0x5f47fe[_0x4947ff('0x30')][0x1]['value']:undefined)||null},{'name':'attrSerie3','value':_0x5f47fe['attrSerie3']||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x2]?_0x5f47fe[_0x4947ff('0x30')][0x2][_0x4947ff('0x4')]:undefined)||null},{'name':'attrVoiceQueues','value':_0x5f47fe[_0x4947ff('0x23')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x3]?_0x5f47fe[_0x4947ff('0x30')][0x3][_0x4947ff('0x4')]:undefined)||[]}];case _0x4947ff('0x2d'):return[{'name':'attrReport','type':_0x5f47fe[_0x4947ff('0x34')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0][_0x4947ff('0xb')]:undefined)||null,'value':_0x5f47fe['attrReport']||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe[_0x4947ff('0x30')][0x0]?_0x5f47fe[_0x4947ff('0x30')][0x0]['value']:undefined)||null},{'name':_0x4947ff('0x18'),'value':_0x5f47fe[_0x4947ff('0x18')]||(_0x5f47fe[_0x4947ff('0x30')]&&_0x5f47fe['attrs'][0x1]?_0x5f47fe[_0x4947ff('0x30')][0x1][_0x4947ff('0x4')]:undefined)||0x0}];default:return[];}}catch(_0x57d931){return logger[_0x4947ff('0xd')](_0x4947ff('0x1e'),JSON[_0x4947ff('0x11')](_0x57d931)),[];}}exports[_0x3fedb3('0x27')]=function(_0x37fba0,_0x4406b8){const _0x23322e=_0x3fedb3;return _0x37fba0['body']&&(_0x37fba0['body'][_0x23322e('0x30')]=widgetAttributes(_0x37fba0[_0x23322e('0x19')])),db[_0x23322e('0x6')][_0x23322e('0x27')](_0x37fba0[_0x23322e('0x19')],{})[_0x23322e('0x33')](respondWithResult(_0x4406b8,0xc9))[_0x23322e('0x25')](handleError(_0x4406b8,null));},exports[_0x3fedb3('0x24')]=function(_0x24016d,_0x18738d){const _0x81b0ae=_0x3fedb3;return _0x24016d[_0x81b0ae('0x19')]['id']&&delete _0x24016d[_0x81b0ae('0x19')]['id'],_0x24016d[_0x81b0ae('0x19')]['attrs']=widgetAttributes(_0x24016d[_0x81b0ae('0x19')]),db[_0x81b0ae('0x6')][_0x81b0ae('0xa')]({'where':{'id':_0x24016d[_0x81b0ae('0x8')]['id']}})['then'](handleEntityNotFound(_0x18738d,null))[_0x81b0ae('0x33')](saveUpdates(_0x24016d[_0x81b0ae('0x19')],null))[_0x81b0ae('0x33')](respondWithResult(_0x18738d,null))['catch'](handleError(_0x18738d,null));}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index afc445c..c9531a8 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a176_0x1290=['setMaxListeners','events','undefined','DashboardItem','exports','../../mysqldb','update'];(function(_0x1f2b52,_0x1290ae){const _0x2d97ba=function(_0x5ce24a){while(--_0x5ce24a){_0x1f2b52['push'](_0x1f2b52['shift']());}};_0x2d97ba(++_0x1290ae);}(a176_0x1290,0x80));const a176_0x2d97=function(_0x1f2b52,_0x1290ae){_0x1f2b52=_0x1f2b52-0x0;let _0x2d97ba=a176_0x1290[_0x1f2b52];return _0x2d97ba;};const _0x2841cb=a176_0x2d97;'use strict';const EventEmitter=require(_0x2841cb('0x6')),DashboardItem=require(_0x2841cb('0x3'))['db'][_0x2841cb('0x1')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x2841cb('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x2841cb('0x4'),'afterDestroy':'remove'};function emitEvent(_0x5ce24a){return function(_0x493c1d){DashboardItemEvents['emit'](_0x5ce24a+':'+_0x493c1d['id'],_0x493c1d),DashboardItemEvents['emit'](_0x5ce24a,_0x493c1d);};}for(const e in events){if(typeof events[e]!==_0x2841cb('0x0')){const event=events[e];DashboardItem['addHook'](e,emitEvent(event));}}module[_0x2841cb('0x2')]=DashboardItemEvents; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index 33ca6e7..cec8d70 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a177_0x25c0=['DashboardItem','exports','dashboard_items','./dashboardItem.attributes'];(function(_0xbae14,_0x25c0ed){const _0x3d03c9=function(_0x219f09){while(--_0x219f09){_0xbae14['push'](_0xbae14['shift']());}};_0x3d03c9(++_0x25c0ed);}(a177_0x25c0,0xd1));const a177_0x3d03=function(_0xbae14,_0x25c0ed){_0xbae14=_0xbae14-0x0;let _0x3d03c9=a177_0x25c0[_0xbae14];return _0x3d03c9;};const _0x5bc447=a177_0x3d03;'use strict';const attributes=require(_0x5bc447('0x2'));module[_0x5bc447('0x0')]=function(_0x219f09){const _0x1ef542=_0x5bc447,_0x49ebe5=_0x219f09['define'](_0x1ef542('0x3'),attributes,{'tableName':_0x1ef542('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x49ebe5;}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index 300ae3a..f60f0a2 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a178_0xf03f=['./dashboardItem.socket','../../rediscache'];(function(_0x21e619,_0xf03fee){const _0xd470cf=function(_0x3caaa4){while(--_0x3caaa4){_0x21e619['push'](_0x21e619['shift']());}};_0xd470cf(++_0xf03fee);}(a178_0xf03f,0xfa));const a178_0xd470=function(_0x21e619,_0xf03fee){_0x21e619=_0x21e619-0x0;let _0xd470cf=a178_0xf03f[_0x21e619];return _0xd470cf;};const _0x1b237b=a178_0xd470;'use strict';const {getSocket}=require(_0x1b237b('0x1')),socket=getSocket();require(_0x1b237b('0x0'))['register'](socket); \ No newline at end of file +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 diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index 58e59d0..dc130bf 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a179_0x3b04=['dashboardItem:','./dashboardItem.events','update','save','remove'];(function(_0x1dc35e,_0x3b04df){const _0x2cc412=function(_0x3a06ef){while(--_0x3a06ef){_0x1dc35e['push'](_0x1dc35e['shift']());}};_0x2cc412(++_0x3b04df);}(a179_0x3b04,0x95));const a179_0x2cc4=function(_0x1dc35e,_0x3b04df){_0x1dc35e=_0x1dc35e-0x0;let _0x2cc412=a179_0x3b04[_0x1dc35e];return _0x2cc412;};const _0x8b60c1=a179_0x2cc4;'use strict';const DashboardItemEvents=require(_0x8b60c1('0x2')),events=[_0x8b60c1('0x4'),_0x8b60c1('0x0'),_0x8b60c1('0x3')];function createListener(_0x3a06ef,_0x20339e){return function(_0x45549a){_0x20339e['emit'](_0x3a06ef,_0x45549a);};}exports['register']=function(_0x1fb2bf){const _0x53780a=_0x8b60c1;for(let _0x2d6723=0x0,_0x36b396=events['length'];_0x2d6723<_0x36b396;_0x2d6723++){const _0x22bf39=events[_0x2d6723],_0x469c21=createListener(_0x53780a('0x1')+_0x22bf39,_0x1fb2bf);DashboardItemEvents['on'](_0x22bf39,_0x469c21);}}; \ No newline at end of file +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 diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index 8b8e373..8135f2a 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a180_0x880a=['post','update','express','./dashboardItem.controller','show','get','/:id','exports','Router','destroy','isAuthenticated','put'];(function(_0x1b5994,_0x880a6f){const _0x538c77=function(_0x4506ec){while(--_0x4506ec){_0x1b5994['push'](_0x1b5994['shift']());}};_0x538c77(++_0x880a6f);}(a180_0x880a,0x6b));const a180_0x538c=function(_0x1b5994,_0x880a6f){_0x1b5994=_0x1b5994-0x0;let _0x538c77=a180_0x880a[_0x1b5994];return _0x538c77;};const _0x1599ef=a180_0x538c;'use strict';const express=require(_0x1599ef('0x3')),router=express[_0x1599ef('0x9')](),auth=require('../../components/auth/service'),controller=require(_0x1599ef('0x4'));router[_0x1599ef('0x6')](_0x1599ef('0x7'),auth[_0x1599ef('0xb')](),controller[_0x1599ef('0x5')]),router[_0x1599ef('0x1')]('/',auth[_0x1599ef('0xb')](),controller['create']),router[_0x1599ef('0x0')]('/:id',auth[_0x1599ef('0xb')](),controller[_0x1599ef('0x2')]),router['delete'](_0x1599ef('0x7'),auth[_0x1599ef('0xb')](),controller[_0x1599ef('0xa')]),module[_0x1599ef('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index 0b2d16e..c64c161 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a181_0x97f9=['sequelize','first','ENUM','STRING'];(function(_0x3cc9b4,_0x97f9fb){const _0x5aa34e=function(_0x4f9dbd){while(--_0x4f9dbd){_0x3cc9b4['push'](_0x3cc9b4['shift']());}};_0x5aa34e(++_0x97f9fb);}(a181_0x97f9,0x152));const a181_0x5aa3=function(_0x3cc9b4,_0x97f9fb){_0x3cc9b4=_0x3cc9b4-0x0;let _0x5aa34e=a181_0x97f9[_0x3cc9b4];return _0x5aa34e;};const _0x3462fc=a181_0x5aa3;'use strict';const Sequelize=require(_0x3462fc('0x2'));module['exports']={'name':{'type':Sequelize[_0x3462fc('0x1')],'allowNull':![]},'level':{'type':Sequelize[_0x3462fc('0x0')]('first','second','third'),'allowNull':![],'defaultValue':_0x3462fc('0x3')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index 9e25b29..7085faa 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a182_0x23ad=['rows','offset','Disposition','nolimit','keys','length','show','name','where','userProfileId','limit','destroy','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','get','pick','merge','Dispositions','like','sort','create','api','count','key','order','findOne','autoAssociation','undefined','set','VIRTUAL','catch','type','Content-Range','rawAttributes','fieldName','body','../../config/logger','findAll','stack','UserProfileResource','error','user','then','../../components/parsers/qs','attributes','index','sendStatus','sequelize','intersection','map','update','filter','fields','status','query','options','filters','params','model','json'];(function(_0xbb09d1,_0x23adbe){const _0x326e42=function(_0x529f63){while(--_0x529f63){_0xbb09d1['push'](_0xbb09d1['shift']());}};_0x326e42(++_0x23adbe);}(a182_0x23ad,0xf2));const a182_0x326e=function(_0xbb09d1,_0x23adbe){_0xbb09d1=_0xbb09d1-0x0;let _0x326e42=a182_0x23ad[_0xbb09d1];return _0x326e42;};const _0x1528d8=a182_0x326e;'use strict';const _=require('lodash'),qs=require(_0x1528d8('0x24')),logger=require(_0x1528d8('0x1d'))(_0x1528d8('0xe')),db=require('../../mysqldb')['db'],{Op}=require(_0x1528d8('0x28'));function respondWithResult(_0x529f63,_0x16a5ed){return _0x16a5ed=_0x16a5ed||0xc8,function(_0x11bd5d){if(_0x11bd5d)return _0x529f63['status'](_0x16a5ed)['json'](_0x11bd5d);};}function respondWithFilteredResult(_0x251708,_0x5190ce){return function(_0x1463b){const _0x2ca2f6=a182_0x326e;if(_0x1463b){const _0x1e4c0b=_0x1463b['count'],_0xf76284=_0x5190ce[_0x2ca2f6('0x36')];let _0x524d43=_0x5190ce[_0x2ca2f6('0x36')]+_0x5190ce[_0x2ca2f6('0x4')],_0x4d94f9;return _0x524d43>=_0x1e4c0b?(_0x524d43=_0x1e4c0b,_0x4d94f9=0xc8):_0x4d94f9=0xce,_0x251708['status'](_0x4d94f9),_0x251708[_0x2ca2f6('0x15')](_0x2ca2f6('0x19'),_0xf76284+'-'+_0x524d43+'/'+_0x1e4c0b)[_0x2ca2f6('0x34')](_0x1463b);}return null;};}function saveUpdates(_0x20a3fc){return function(_0x8df27d){const _0x4ae1d0=a182_0x326e;if(_0x8df27d)return _0x8df27d[_0x4ae1d0('0x2b')](_0x20a3fc)['then'](function(_0x8ef67d){return _0x8ef67d;});return null;};}function removeEntity(_0xff1c2a){return function(_0x342d8d){const _0x2b4f26=a182_0x326e;if(_0x342d8d)return _0x342d8d[_0x2b4f26('0x5')]()[_0x2b4f26('0x23')](function(){const _0x386a18=_0x2b4f26,_0x48d1ee=_0x342d8d[_0x386a18('0x7')]({'plain':!![]}),_0x56910c=_0x386a18('0xa');return db['UserProfileResource'][_0x386a18('0x5')]({'where':{'type':_0x56910c,'resourceId':_0x48d1ee['id']}})[_0x386a18('0x23')](function(){return _0x342d8d;});})[_0x2b4f26('0x23')](function(){const _0x1b521a=_0x2b4f26;_0xff1c2a[_0x1b521a('0x2e')](0xcc)['end']();});};}function handleEntityNotFound(_0x353fec){return function(_0x1e8aa1){const _0x1400c9=a182_0x326e;return!_0x1e8aa1&&_0x353fec[_0x1400c9('0x27')](0x194),_0x1e8aa1;};}function handleError(_0x4fdd5f,_0x1399ad){return _0x1399ad=_0x1399ad||0x1f4,function(_0x4d9bf6){const _0xd17c2f=a182_0x326e;logger[_0xd17c2f('0x21')](_0x4d9bf6[_0xd17c2f('0x1f')]),_0x4d9bf6[_0xd17c2f('0x1')]&&delete _0x4d9bf6[_0xd17c2f('0x1')],_0x4fdd5f[_0xd17c2f('0x2e')](_0x1399ad)['send'](_0x4d9bf6);};}exports[_0x1528d8('0x26')]=function(_0x229064,_0x4b8a2b){const _0x4b412a=_0x1528d8;let _0x1c4e94={};const _0x136662={},_0x26db4c={'count':0x0,'rows':[]},_0x8736e9=_[_0x4b412a('0x2a')](db[_0x4b412a('0x37')][_0x4b412a('0x1a')],function(_0x10fab4){const _0x4aee18=_0x4b412a;return{'name':_0x10fab4[_0x4aee18('0x1b')],'type':_0x10fab4[_0x4aee18('0x18')][_0x4aee18('0x10')]};});_0x136662[_0x4b412a('0x33')]=_[_0x4b412a('0x2a')](_0x8736e9,'name'),_0x136662[_0x4b412a('0x2f')]=_[_0x4b412a('0x39')](_0x229064[_0x4b412a('0x2f')]),_0x136662['filters']=_['intersection'](_0x136662[_0x4b412a('0x33')],_0x136662['query']),_0x1c4e94[_0x4b412a('0x25')]=_[_0x4b412a('0x29')](_0x136662['model'],qs[_0x4b412a('0x2d')](_0x229064[_0x4b412a('0x2f')][_0x4b412a('0x2d')])),_0x1c4e94['attributes']=_0x1c4e94[_0x4b412a('0x25')][_0x4b412a('0x3a')]?_0x1c4e94[_0x4b412a('0x25')]:_0x136662['model'];typeof _0x229064['query'][_0x4b412a('0x38')]===_0x4b412a('0x14')&&(_0x1c4e94[_0x4b412a('0x4')]=qs[_0x4b412a('0x4')](_0x229064['query'][_0x4b412a('0x4')]),_0x1c4e94[_0x4b412a('0x36')]=qs[_0x4b412a('0x36')](_0x229064[_0x4b412a('0x2f')][_0x4b412a('0x36')]));_0x1c4e94[_0x4b412a('0x11')]=qs[_0x4b412a('0xc')](_0x229064[_0x4b412a('0x2f')][_0x4b412a('0xc')]),_0x1c4e94[_0x4b412a('0x2')]=qs[_0x4b412a('0x31')](_[_0x4b412a('0x8')](_0x229064[_0x4b412a('0x2f')],_0x136662[_0x4b412a('0x31')]),_0x8736e9);_0x229064['query'][_0x4b412a('0x2c')]&&(_0x1c4e94[_0x4b412a('0x2')]=_[_0x4b412a('0x9')](_0x1c4e94[_0x4b412a('0x2')],{[Op['or']]:_['map'](_0x8736e9,function(_0x2713d0){const _0x41dd27=_0x4b412a;if(_0x2713d0[_0x41dd27('0x18')]!==_0x41dd27('0x16')){const _0x4c7dd6={};return _0x4c7dd6[_0x2713d0['name']]={[Op[_0x41dd27('0xb')]]:'%'+_0x229064[_0x41dd27('0x2f')][_0x41dd27('0x2c')]+'%'},_0x4c7dd6;}})}));_0x1c4e94=_[_0x4b412a('0x9')]({},_0x1c4e94,_0x229064[_0x4b412a('0x30')]);const _0x228b4f={'where':_0x1c4e94[_0x4b412a('0x2')]};return db[_0x4b412a('0x37')][_0x4b412a('0xf')](_0x228b4f)['then'](function(_0x35f9af){const _0x1472d7=_0x4b412a;return _0x26db4c['count']=_0x35f9af,_0x229064[_0x1472d7('0x2f')]['includeAll']&&(_0x1c4e94['include']=[{'all':!![]}]),db[_0x1472d7('0x37')][_0x1472d7('0x1e')](_0x1c4e94);})[_0x4b412a('0x23')](function(_0x5d5ab7){const _0xdb3d27=_0x4b412a;return _0x26db4c[_0xdb3d27('0x35')]=_0x5d5ab7,_0x26db4c;})['then'](respondWithFilteredResult(_0x4b8a2b,_0x1c4e94))[_0x4b412a('0x17')](handleError(_0x4b8a2b,null));},exports[_0x1528d8('0x0')]=function(_0x5bc7c1,_0x290591){const _0x708bd9=_0x1528d8;let _0xb30d34={'raw':!![],'where':{'id':_0x5bc7c1[_0x708bd9('0x32')]['id']}};const _0x4d2320={};return _0x4d2320['model']=_[_0x708bd9('0x39')](db[_0x708bd9('0x37')]['rawAttributes']),_0x4d2320[_0x708bd9('0x2f')]=_[_0x708bd9('0x39')](_0x5bc7c1[_0x708bd9('0x2f')]),_0x4d2320[_0x708bd9('0x31')]=_[_0x708bd9('0x29')](_0x4d2320[_0x708bd9('0x33')],_0x4d2320[_0x708bd9('0x2f')]),_0xb30d34['attributes']=_['intersection'](_0x4d2320[_0x708bd9('0x33')],qs[_0x708bd9('0x2d')](_0x5bc7c1[_0x708bd9('0x2f')]['fields'])),_0xb30d34[_0x708bd9('0x25')]=_0xb30d34[_0x708bd9('0x25')]['length']?_0xb30d34[_0x708bd9('0x25')]:_0x4d2320[_0x708bd9('0x33')],_0x5bc7c1['query']['includeAll']&&(_0xb30d34['include']=[{'all':!![]}]),_0xb30d34=_['merge']({},_0xb30d34,_0x5bc7c1['options']),db[_0x708bd9('0x37')]['findOne'](_0xb30d34)[_0x708bd9('0x23')](handleEntityNotFound(_0x290591,null))[_0x708bd9('0x23')](respondWithResult(_0x290591,null))['catch'](handleError(_0x290591,null));},exports[_0x1528d8('0xd')]=function(_0x2b2f5a,_0x3b6f17){const _0x5c76b6=_0x1528d8;return db[_0x5c76b6('0x37')]['create'](_0x2b2f5a['body'],{})['then'](function(_0x4abf4d){const _0x2d3861=_0x5c76b6,_0x34d0f3=_0x2b2f5a[_0x2d3861('0x22')]['get']({'plain':!![]});if(!_0x34d0f3)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x34d0f3['role']===_0x2d3861('0x22')){const _0x3519b4=_0x4abf4d[_0x2d3861('0x7')]({'plain':!![]}),_0x1ecb88=_0x2d3861('0xa');return db['UserProfileSection'][_0x2d3861('0x12')]({'where':{'name':_0x1ecb88,'userProfileId':_0x34d0f3[_0x2d3861('0x3')]},'raw':!![]})[_0x2d3861('0x23')](function(_0x4d4377){const _0x13bee1=_0x2d3861;return _0x4d4377&&_0x4d4377[_0x13bee1('0x13')]===0x0?db[_0x13bee1('0x20')][_0x13bee1('0xd')]({'name':_0x3519b4[_0x13bee1('0x1')],'resourceId':_0x3519b4['id'],'type':_0x4d4377['name'],'sectionId':_0x4d4377['id']},{})['then'](function(){return _0x4abf4d;}):_0x4abf4d;})[_0x2d3861('0x17')](function(_0x2ae483){const _0x56ecbe=_0x2d3861;logger[_0x56ecbe('0x21')](_0x56ecbe('0x6'),_0x2ae483);throw _0x2ae483;});}return _0x4abf4d;})['then'](respondWithResult(_0x3b6f17,0xc9))[_0x5c76b6('0x17')](handleError(_0x3b6f17,null));},exports[_0x1528d8('0x2b')]=function(_0xc48176,_0x50abfc){const _0x2337f9=_0x1528d8;return _0xc48176['body']['id']&&delete _0xc48176[_0x2337f9('0x1c')]['id'],db[_0x2337f9('0x37')][_0x2337f9('0x12')]({'where':{'id':_0xc48176[_0x2337f9('0x32')]['id']}})[_0x2337f9('0x23')](handleEntityNotFound(_0x50abfc,null))['then'](saveUpdates(_0xc48176[_0x2337f9('0x1c')],null))['then'](respondWithResult(_0x50abfc,null))[_0x2337f9('0x17')](handleError(_0x50abfc,null));},exports['destroy']=function(_0x3d9795,_0x4c4aa4){const _0x869f48=_0x1528d8;return db[_0x869f48('0x37')][_0x869f48('0x12')]({'where':{'id':_0x3d9795[_0x869f48('0x32')]['id']}})[_0x869f48('0x23')](handleEntityNotFound(_0x4c4aa4,null))[_0x869f48('0x23')](removeEntity(_0x4c4aa4,null))['catch'](handleError(_0x4c4aa4,null));}; \ No newline at end of file +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 diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index 2fd14f7..1bb897d 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a183_0x360d=['ListId','ChatWebsiteId','name_chat','name','name_mail','./disposition.attributes','name_openchannel','Disposition','define','OpenchannelAccountId','MailAccountId','name_sms','exports','name_fax','FaxAccountId'];(function(_0x423683,_0x360dd7){const _0xfb9dfc=function(_0x193c73){while(--_0x193c73){_0x423683['push'](_0x423683['shift']());}};_0xfb9dfc(++_0x360dd7);}(a183_0x360d,0x157));const a183_0xfb9d=function(_0x423683,_0x360dd7){_0x423683=_0x423683-0x0;let _0xfb9dfc=a183_0x360d[_0x423683];return _0xfb9dfc;};const _0x4be8f7=a183_0xfb9d;'use strict';const attributes=require(_0x4be8f7('0x7'));module[_0x4be8f7('0xe')]=function(_0x193c73){const _0x7b3832=_0x4be8f7,_0xcd0899=_0x193c73[_0x7b3832('0xa')](_0x7b3832('0x9'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0x7b3832('0x2')]},{'unique':!![],'name':_0x7b3832('0x4'),'fields':[_0x7b3832('0x5'),_0x7b3832('0x3')]},{'unique':!![],'name':_0x7b3832('0x6'),'fields':[_0x7b3832('0x5'),_0x7b3832('0xc')]},{'unique':!![],'name':_0x7b3832('0xd'),'fields':[_0x7b3832('0x5'),'SmsAccountId']},{'unique':!![],'name':_0x7b3832('0x0'),'fields':['name',_0x7b3832('0x1')]},{'unique':!![],'name':_0x7b3832('0x8'),'fields':[_0x7b3832('0x5'),_0x7b3832('0xb')]},{'unique':!![],'name':'name_whatsapp','fields':['name','WhatsappAccountId']}],'timestamps':!![]});return _0xcd0899;}; \ No newline at end of file +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 diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index d359911..dadd520 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a184_0x36e0=['get','Router','isAuthenticated','put','delete','express','index','/:id','./disposition.controller','update','create','../../components/auth/service'];(function(_0x4b7028,_0x36e012){const _0x371fd2=function(_0xd4a6b6){while(--_0xd4a6b6){_0x4b7028['push'](_0x4b7028['shift']());}};_0x371fd2(++_0x36e012);}(a184_0x36e0,0x136));const a184_0x371f=function(_0x4b7028,_0x36e012){_0x4b7028=_0x4b7028-0x0;let _0x371fd2=a184_0x36e0[_0x4b7028];return _0x371fd2;};const _0x58c955=a184_0x371f;'use strict';const express=require(_0x58c955('0x7')),router=express[_0x58c955('0x3')](),auth=require(_0x58c955('0x1')),controller=require(_0x58c955('0xa'));router['get']('/',auth[_0x58c955('0x4')](),controller[_0x58c955('0x8')]),router[_0x58c955('0x2')](_0x58c955('0x9'),auth['isAuthenticated'](),controller['show']),router['post']('/',auth[_0x58c955('0x4')](),controller[_0x58c955('0x0')]),router[_0x58c955('0x5')](_0x58c955('0x9'),auth[_0x58c955('0x4')](),controller[_0x58c955('0xb')]),router[_0x58c955('0x6')](_0x58c955('0x9'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index a430032..c2d27a2 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a185_0x35ee=['sequelize','SIP','14400','v17,v27,v29','mandatoryDispositionPauseId','exports','INTEGER','localstationid','2400','BOOLEAN','9600','TEXT','setDataValue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDisposition','yes','STRING','12000','ENUM','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','DADHI','4800','IAX','7200','xCALLY\x20Motion\x20Fax'];(function(_0xf8facb,_0x35ee02){const _0x2fada7=function(_0xba252b){while(--_0xba252b){_0xf8facb['push'](_0xf8facb['shift']());}};_0x2fada7(++_0x35ee02);}(a185_0x35ee,0xcd));const a185_0x2fad=function(_0xf8facb,_0x35ee02){_0xf8facb=_0xf8facb-0x0;let _0x2fada7=a185_0x35ee[_0xf8facb];return _0x2fada7;};const _0x227140=a185_0x2fad;'use strict';const Sequelize=require(_0x227140('0x14'));module[_0x227140('0x0')]={'name':{'type':Sequelize[_0x227140('0xb')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x227140('0xb')]},'ecm':{'type':Sequelize['ENUM'](_0x227140('0xa'),'no'),'defaultValue':_0x227140('0xa')},'headerinfo':{'type':Sequelize['STRING'],'defaultValue':_0x227140('0x13')},'localstationid':{'type':Sequelize[_0x227140('0xb')],'unique':_0x227140('0x2')},'minrate':{'type':Sequelize[_0x227140('0xd')](_0x227140('0x3'),_0x227140('0x10'),_0x227140('0x12'),'9600',_0x227140('0xc'),_0x227140('0x16')),'defaultValue':_0x227140('0x10')},'maxrate':{'type':Sequelize[_0x227140('0xd')](_0x227140('0x3'),'4800','7200',_0x227140('0x5'),_0x227140('0xc'),_0x227140('0x16')),'defaultValue':'14400'},'modem':{'type':Sequelize[_0x227140('0xb')],'defaultValue':_0x227140('0x17')},'gateway':{'type':Sequelize[_0x227140('0xb')],'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['INTEGER'],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize['ENUM'](_0x227140('0x15'),_0x227140('0x11'),_0x227140('0xf'),'KHOMP'),'defaultValue':_0x227140('0x15')},'key':{'type':Sequelize[_0x227140('0xb')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x227140('0x6')],'defaultValue':function(){const _0x1f1b87=_0x227140;return _0x1f1b87('0xe');}},'notificationSound':{'type':Sequelize[_0x227140('0x4')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x227140('0x4')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x227140('0x1')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x227140('0x4')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x227140('0x1')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':_0x227140('0x8')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0xba252b){const _0x1a7b78=_0x227140;if(!_0xba252b)this[_0x1a7b78('0x7')](_0x1a7b78('0x18'),null);this[_0x1a7b78('0x7')](_0x1a7b78('0x9'),_0xba252b);}}}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index 5eea83d..e3402b4 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a186_0x2c25=['./faxAccount.socket','userFaxAccount:remove','limit','TrunkId','client','info','internal','priority','SendFaxRpc,\x20%s','query','getInteractions','CmList','List','where','message','removeAnswers','FAXOPT(','localstationid','sendStatus','userFaxAccount:save','createdAt','omit','emit','request\x20sent','findOne','isArray','key','sequelize','order','Unable\x20to\x20retrieve\x20the\x20current\x20user','SendFax','mandatoryDispositionPause','create','../../config/logger','filters','rows','undefined','fullname','sort','count','autoAssociation','path','user','Disposition','FaxAccount','updateAccountApplications','request','Messages','Send\x20Fax\x20failed','gte','ListId','join','catch','get','Set','filename','fax','set','describe','maxrate','jayson/promise','addAgents','ecm','nolimit','removeDispositions','FaxMessage','attachments','Pause','debug','addInteraction','basename','VIRTUAL','addAnswer','app','type','moment','body','http','index','options','../../rediscache','YYYY-MM-DD\x20HH:mm:ss','addAccountApplications','pick','map','split','error','fields','update','dataValues','merge','UserProfileResource','code','FaxAccounts','FaxAccount,\x20%s,\x20%s','CmContact','CannedAnswer','\x22%s\x22\x20<%s>','Contact\x20not\x20found','includeAll','FaxAccountId','defaults','length','modem','model','filter','stringify','out','destroy','Tag','findAndCountAll','ids','Contact','Wait','then','findByPk','ReceiveFax','offset','getAgents','color','Content-Range','server/files/attachments','CheckAfterSend','json','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','bulkCreate','t38timeout','end','findAll','format','Owner','VoiceExtension','isNil','include','/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','faxdetect','Fax\x20Extension','params','rawAttributes','userProfileId','show','attributes','stack','transaction','result','removeAgents','exten','tag','fieldName','addApplications','send','UserProfileSection','from','getDispositions','gateway','FaxInteraction','name','push','like','Contacts','User','keys','FaxApplication','getAnswers','role','addDisposition','minrate','$gte','intersection','description','getApplications','status'];(function(_0x1d05f6,_0x2c2592){const _0x2e63f7=function(_0x5028fb){while(--_0x5028fb){_0x1d05f6['push'](_0x1d05f6['shift']());}};_0x2e63f7(++_0x2c2592);}(a186_0x2c25,0xd9));const a186_0x2e63=function(_0x1d05f6,_0x2c2592){_0x1d05f6=_0x1d05f6-0x0;let _0x2e63f7=a186_0x2c25[_0x1d05f6];return _0x2e63f7;};const _0xcc9955=a186_0x2e63;'use strict';const moment=require(_0xcc9955('0x1e')),util=require('util'),path=require(_0xcc9955('0xa8')),_=require('lodash'),{getSocket}=require(_0xcc9955('0x23')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0xcc9955('0xa0'))('api'),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0xcc9955('0x7f'))['register'](socket);const jayson=require(_0xcc9955('0xf')),client=jayson[_0xcc9955('0x83')][_0xcc9955('0x20')]({'port':0x232c}),client9002=jayson[_0xcc9955('0x83')]['http']({'port':0x232a});function respondWithRpcPromise(_0x5028fb,_0x3efb36,_0x37f917,_0x1194ec){return new Promise(function(_0x3e2b31,_0x524e5c){const _0x3e9a7f=a186_0x2e63,_0x74f515=_0x1194ec||client;return _0x74f515[_0x3e9a7f('0x1')](_0x5028fb,_0x37f917)[_0x3e9a7f('0x45')](function(_0x10cad4){const _0x2551c9=_0x3e9a7f;logger[_0x2551c9('0x84')](_0x2551c9('0x31'),_0x3efb36,'request\x20sent'),logger[_0x2551c9('0x17')]('FaxAccount,\x20%s,\x20%s,\x20%s',_0x3efb36,_0x2551c9('0x96'),JSON[_0x2551c9('0x3d')](_0x10cad4));if(_0x10cad4[_0x2551c9('0x29')]){if(_0x10cad4[_0x2551c9('0x29')][_0x2551c9('0x2f')]===0x1f4)return logger[_0x2551c9('0x29')](_0x2551c9('0x31'),_0x3efb36,_0x10cad4[_0x2551c9('0x29')]['message']),_0x524e5c(_0x10cad4['error'][_0x2551c9('0x8d')]);return logger['error'](_0x2551c9('0x31'),_0x3efb36,_0x10cad4[_0x2551c9('0x29')][_0x2551c9('0x8d')]),_0x3e2b31(_0x10cad4[_0x2551c9('0x29')][_0x2551c9('0x8d')]);}else logger[_0x2551c9('0x84')](_0x2551c9('0x31'),_0x3efb36,_0x2551c9('0x96')),_0x3e2b31(_0x10cad4[_0x2551c9('0x63')][_0x2551c9('0x8d')]);})[_0x3e9a7f('0x7')](function(_0x4dd632){const _0x3634cf=_0x3e9a7f;logger[_0x3634cf('0x29')](_0x3634cf('0x31'),_0x3efb36,_0x4dd632),_0x524e5c(_0x4dd632);});});}function respondWithStatusCode(_0x47e355,_0x4473b7){return _0x4473b7=_0x4473b7||0xcc,function(_0x7581b){const _0x3e7cd8=a186_0x2e63;if(_0x7581b)return _0x47e355[_0x3e7cd8('0x91')](_0x4473b7);return _0x47e355[_0x3e7cd8('0x7e')](_0x4473b7)[_0x3e7cd8('0x52')]();};}function respondWithResult(_0xbc0bc,_0x981438){return _0x981438=_0x981438||0xc8,function(_0x2a560d){if(_0x2a560d)return _0xbc0bc['status'](_0x981438)['json'](_0x2a560d);};}function respondWithFilteredResult(_0x4989ae,_0x2f0b32){return function(_0x2a36cf){const _0x2e5c18=a186_0x2e63;if(_0x2a36cf){const _0x4e01d8=_0x2a36cf[_0x2e5c18('0xa6')],_0x52ad1d=_0x2f0b32[_0x2e5c18('0x48')];let _0xf3c47=_0x2f0b32[_0x2e5c18('0x48')]+_0x2f0b32[_0x2e5c18('0x81')],_0x4330d4;return _0xf3c47>=_0x4e01d8?(_0xf3c47=_0x4e01d8,_0x4330d4=0xc8):_0x4330d4=0xce,_0x4989ae['status'](_0x4330d4),_0x4989ae[_0x2e5c18('0xc')](_0x2e5c18('0x4b'),_0x52ad1d+'-'+_0xf3c47+'/'+_0x4e01d8)[_0x2e5c18('0x4e')](_0x2a36cf);}return null;};}function saveUpdates(_0x75c553){return function(_0x2ab880){const _0x4a2eda=a186_0x2e63;if(_0x2ab880)return _0x2ab880[_0x4a2eda('0x2b')](_0x75c553)['then'](function(_0x3fc942){return _0x3fc942;});return null;};}function removeEntity(_0x17b89d){return function(_0x58a362){const _0xb3e05b=a186_0x2e63;if(_0x58a362)return _0x58a362[_0xb3e05b('0x3f')]()['then'](function(){const _0xce81ec=_0xb3e05b,_0x4f9963=_0x58a362[_0xce81ec('0x8')]({'plain':!![]}),_0x21ef99=_0xce81ec('0x30');return db[_0xce81ec('0x2e')][_0xce81ec('0x3f')]({'where':{'type':_0x21ef99,'resourceId':_0x4f9963['id']}})['then'](function(){return _0x58a362;});})[_0xb3e05b('0x45')](function(){const _0x30dde2=_0xb3e05b;_0x17b89d['status'](0xcc)[_0x30dde2('0x52')]();});};}function handleEntityNotFound(_0x31dfae){return function(_0x355c81){return!_0x355c81&&_0x31dfae['sendStatus'](0x194),_0x355c81;};}function handleError(_0x48cdd8,_0x128b91){return _0x128b91=_0x128b91||0x1f4,function(_0x95694b){const _0x3f8775=a186_0x2e63;logger[_0x3f8775('0x29')](_0x95694b[_0x3f8775('0x61')]),_0x95694b[_0x3f8775('0x6f')]&&delete _0x95694b[_0x3f8775('0x6f')],_0x48cdd8[_0x3f8775('0x7e')](_0x128b91)[_0x3f8775('0x69')](_0x95694b);};}exports[_0xcc9955('0x21')]=function(_0xea6fe7,_0x28917e){const _0x164387=_0xcc9955;let _0x352f97={'include':[{'model':db[_0x164387('0x16')],'as':_0x164387('0x9e')}]};const _0x2edff8={},_0x410226={'count':0x0,'rows':[]},_0x3f1fdb=_[_0x164387('0x27')](db[_0x164387('0xab')][_0x164387('0x5d')],function(_0x1c32e6){const _0x482cf8=_0x164387;return{'name':_0x1c32e6[_0x482cf8('0x67')],'type':_0x1c32e6[_0x482cf8('0x1d')][_0x482cf8('0x99')]};});_0x2edff8['model']=_[_0x164387('0x27')](_0x3f1fdb,_0x164387('0x6f')),_0x2edff8[_0x164387('0x88')]=_['keys'](_0xea6fe7[_0x164387('0x88')]),_0x2edff8[_0x164387('0xa1')]=_[_0x164387('0x7b')](_0x2edff8[_0x164387('0x3b')],_0x2edff8[_0x164387('0x88')]),_0x352f97['attributes']=_[_0x164387('0x7b')](_0x2edff8[_0x164387('0x3b')],qs[_0x164387('0x2a')](_0xea6fe7['query']['fields'])),_0x352f97[_0x164387('0x60')]=_0x352f97['attributes'][_0x164387('0x39')]?_0x352f97[_0x164387('0x60')]:_0x2edff8[_0x164387('0x3b')];typeof _0xea6fe7[_0x164387('0x88')][_0x164387('0x12')]===_0x164387('0xa3')&&(_0x352f97[_0x164387('0x81')]=qs['limit'](_0xea6fe7[_0x164387('0x88')][_0x164387('0x81')]),_0x352f97[_0x164387('0x48')]=qs['offset'](_0xea6fe7['query'][_0x164387('0x48')]));_0x352f97['order']=qs[_0x164387('0xa5')](_0xea6fe7[_0x164387('0x88')][_0x164387('0xa5')]),_0x352f97['where']=qs[_0x164387('0xa1')](_[_0x164387('0x26')](_0xea6fe7['query'],_0x2edff8[_0x164387('0xa1')]),_0x3f1fdb);_0xea6fe7['query'][_0x164387('0x3c')]&&(_0x352f97[_0x164387('0x8c')]=_[_0x164387('0x2d')](_0x352f97[_0x164387('0x8c')],{[Op['or']]:_[_0x164387('0x27')](_0x3f1fdb,function(_0x5c4f36){const _0x5dc310=_0x164387;if(_0x5c4f36[_0x5dc310('0x1d')]!==_0x5dc310('0x1a')){const _0x362744={};return _0x362744[_0x5c4f36[_0x5dc310('0x6f')]]={[Op[_0x5dc310('0x71')]]:'%'+_0xea6fe7['query'][_0x5dc310('0x3c')]+'%'},_0x362744;}})}));_0x352f97=_[_0x164387('0x2d')]({},_0x352f97,_0xea6fe7['options']);const _0x34d0bd={'where':_0x352f97[_0x164387('0x8c')]};return db['FaxAccount'][_0x164387('0xa6')](_0x34d0bd)[_0x164387('0x45')](function(_0x43d590){const _0x25f2b3=_0x164387;return _0x410226[_0x25f2b3('0xa6')]=_0x43d590,_0xea6fe7[_0x25f2b3('0x88')][_0x25f2b3('0x36')]&&(_0x352f97['include']=[{'all':!![]}]),db[_0x25f2b3('0xab')]['findAll'](_0x352f97);})[_0x164387('0x45')](function(_0xb3ecd3){return _0x410226['rows']=_0xb3ecd3,_0x410226;})['then'](respondWithFilteredResult(_0x28917e,_0x352f97))['catch'](handleError(_0x28917e,null));},exports[_0xcc9955('0x5f')]=function(_0x4a9719,_0x3d520b){const _0x5bec25=_0xcc9955;let _0x5cf3b5={'raw':![],'where':{'id':_0x4a9719[_0x5bec25('0x5c')]['id']},'include':[{'model':db[_0x5bec25('0x16')],'as':_0x5bec25('0x9e')}]};const _0x210330={};return _0x210330['model']=_[_0x5bec25('0x74')](db[_0x5bec25('0xab')][_0x5bec25('0x5d')]),_0x210330[_0x5bec25('0x88')]=_[_0x5bec25('0x74')](_0x4a9719[_0x5bec25('0x88')]),_0x210330[_0x5bec25('0xa1')]=_[_0x5bec25('0x7b')](_0x210330[_0x5bec25('0x3b')],_0x210330[_0x5bec25('0x88')]),_0x5cf3b5[_0x5bec25('0x60')]=_[_0x5bec25('0x7b')](_0x210330['model'],qs['fields'](_0x4a9719[_0x5bec25('0x88')][_0x5bec25('0x2a')])),_0x5cf3b5[_0x5bec25('0x60')]=_0x5cf3b5[_0x5bec25('0x60')][_0x5bec25('0x39')]?_0x5cf3b5['attributes']:_0x210330['model'],_0x4a9719[_0x5bec25('0x88')][_0x5bec25('0x36')]&&(_0x5cf3b5['include']=[{'all':!![]}]),_0x5cf3b5=_[_0x5bec25('0x2d')]({},_0x5cf3b5,_0x4a9719[_0x5bec25('0x22')]),db[_0x5bec25('0xab')][_0x5bec25('0x97')](_0x5cf3b5)[_0x5bec25('0x45')](handleEntityNotFound(_0x3d520b,null))['then'](respondWithResult(_0x3d520b,null))[_0x5bec25('0x7')](handleError(_0x3d520b,null));},exports[_0xcc9955('0x9f')]=function(_0x231c37,_0x60ba5){const _0x4359bc=_0xcc9955;return db[_0x4359bc('0xab')]['create'](_0x231c37[_0x4359bc('0x1f')],{})[_0x4359bc('0x45')](function(_0x234e7a){const _0x31e0c2=_0x4359bc,_0x593862=_0x231c37[_0x31e0c2('0xa9')]['get']({'plain':!![]});if(!_0x593862)throw new Error(_0x31e0c2('0x9c'));if(_0x593862[_0x31e0c2('0x77')]===_0x31e0c2('0xa9')){const _0x107320=_0x234e7a['get']({'plain':!![]}),_0x161410=_0x31e0c2('0x30');return db[_0x31e0c2('0x6a')][_0x31e0c2('0x97')]({'where':{'name':_0x161410,'userProfileId':_0x593862[_0x31e0c2('0x5e')]},'raw':!![]})[_0x31e0c2('0x45')](function(_0x252bdd){const _0x13b016=_0x31e0c2;return _0x252bdd&&_0x252bdd[_0x13b016('0xa7')]===0x0?db[_0x13b016('0x2e')][_0x13b016('0x9f')]({'name':_0x107320[_0x13b016('0x6f')],'resourceId':_0x107320['id'],'type':_0x252bdd['name'],'sectionId':_0x252bdd['id']},{})[_0x13b016('0x45')](function(){return _0x234e7a;}):_0x234e7a;})['catch'](function(_0x5c5c5a){const _0x13c090=_0x31e0c2;logger[_0x13c090('0x29')](_0x13c090('0x4f'),_0x5c5c5a);throw _0x5c5c5a;});}return _0x234e7a;})[_0x4359bc('0x45')](respondWithResult(_0x60ba5,0xc9))[_0x4359bc('0x7')](handleError(_0x60ba5,null));},exports[_0xcc9955('0x2b')]=function(_0x111158,_0x2805d0){const _0x481f07=_0xcc9955;return _0x111158[_0x481f07('0x1f')]['id']&&delete _0x111158['body']['id'],db[_0x481f07('0xab')][_0x481f07('0x97')]({'where':{'id':_0x111158[_0x481f07('0x5c')]['id']},'include':[{'model':db[_0x481f07('0x16')],'as':_0x481f07('0x9e')}]})['then'](handleEntityNotFound(_0x2805d0,null))[_0x481f07('0x45')](saveUpdates(_0x111158[_0x481f07('0x1f')],null))[_0x481f07('0x45')](respondWithResult(_0x2805d0,null))['catch'](handleError(_0x2805d0,null));},exports[_0xcc9955('0x3f')]=function(_0x4f0dc5,_0x49158b){const _0x2fa1fd=_0xcc9955;return db[_0x2fa1fd('0xab')]['findOne']({'where':{'id':_0x4f0dc5[_0x2fa1fd('0x5c')]['id']}})[_0x2fa1fd('0x45')](handleEntityNotFound(_0x49158b,null))['then'](removeEntity(_0x49158b,null))[_0x2fa1fd('0x7')](handleError(_0x49158b,null));},exports[_0xcc9955('0xd')]=function(_0x5d332c,_0x32d924){const _0x2ada94=_0xcc9955;return db[_0x2ada94('0xab')][_0x2ada94('0xd')]()[_0x2ada94('0x45')](respondWithResult(_0x32d924,null))[_0x2ada94('0x7')](handleError(_0x32d924,null));},exports[_0xcc9955('0x78')]=function(_0x205c87,_0x14c306){const _0xefc208=_0xcc9955;return _0x205c87['body']['id']&&delete _0x205c87[_0xefc208('0x1f')]['id'],db['FaxAccount'][_0xefc208('0x97')]({'where':{'id':_0x205c87[_0xefc208('0x5c')]['id']}})[_0xefc208('0x45')](handleEntityNotFound(_0x14c306,null))[_0xefc208('0x45')](function(_0x30ce93){const _0x1d6d1c=_0xefc208;if(_0x30ce93)return _0x205c87['body'][_0x1d6d1c('0x37')]=_0x30ce93['id'],db[_0x1d6d1c('0xaa')][_0x1d6d1c('0x9f')](_0x205c87[_0x1d6d1c('0x1f')]);})['then'](respondWithResult(_0x14c306,null))[_0xefc208('0x7')](handleError(_0x14c306,null));},exports[_0xcc9955('0x6c')]=function(_0x3f5a60,_0xcfe8ee){const _0x3c7265=_0xcc9955;let _0x32f500={'raw':![],'where':{}};const _0x10fd81={},_0x341d26={'count':0x0,'rows':[]};return db['FaxAccount'][_0x3c7265('0x97')]({'where':{'id':_0x3f5a60[_0x3c7265('0x5c')]['id']}})['then'](handleEntityNotFound(_0xcfe8ee,null))['then'](function(_0x2fa339){const _0x2d142b=_0x3c7265;if(_0x2fa339)return _0x10fd81[_0x2d142b('0x3b')]=_['keys'](db['Disposition'][_0x2d142b('0x5d')]),_0x10fd81[_0x2d142b('0x88')]=_[_0x2d142b('0x74')](_0x3f5a60[_0x2d142b('0x88')]),_0x10fd81[_0x2d142b('0xa1')]=_[_0x2d142b('0x7b')](_0x10fd81[_0x2d142b('0x3b')],_0x10fd81['query']),_0x32f500[_0x2d142b('0x60')]=_[_0x2d142b('0x7b')](_0x10fd81[_0x2d142b('0x3b')],qs['fields'](_0x3f5a60[_0x2d142b('0x88')]['fields'])),_0x32f500[_0x2d142b('0x60')]=_0x32f500[_0x2d142b('0x60')]['length']?_0x32f500[_0x2d142b('0x60')]:_0x10fd81[_0x2d142b('0x3b')],typeof _0x3f5a60[_0x2d142b('0x88')][_0x2d142b('0x12')]===_0x2d142b('0xa3')&&(_0x32f500[_0x2d142b('0x81')]=qs['limit'](_0x3f5a60[_0x2d142b('0x88')][_0x2d142b('0x81')]),_0x32f500[_0x2d142b('0x48')]=qs['offset'](_0x3f5a60[_0x2d142b('0x88')][_0x2d142b('0x48')])),_0x32f500[_0x2d142b('0x9b')]=qs[_0x2d142b('0xa5')](_0x3f5a60[_0x2d142b('0x88')][_0x2d142b('0xa5')]),_0x32f500[_0x2d142b('0x8c')]=qs[_0x2d142b('0xa1')](_['pick'](_0x3f5a60[_0x2d142b('0x88')],_0x10fd81[_0x2d142b('0xa1')])),_0x32f500[_0x2d142b('0x8c')][_0x2d142b('0x37')]=_0x2fa339['id'],_0x3f5a60['query'][_0x2d142b('0x3c')]&&(_0x32f500[_0x2d142b('0x8c')]=_[_0x2d142b('0x2d')](_0x32f500[_0x2d142b('0x8c')],{[Op['or']]:_[_0x2d142b('0x27')](_0x32f500[_0x2d142b('0x60')],function(_0x446c8a){const _0x354292=_0x2d142b,_0x26e56d={};return _0x26e56d[_0x446c8a]={[Op[_0x354292('0x71')]]:'%'+_0x3f5a60[_0x354292('0x88')][_0x354292('0x3c')]+'%'},_0x26e56d;})})),_0x32f500=_[_0x2d142b('0x2d')]({},_0x32f500,_0x3f5a60[_0x2d142b('0x22')]),db[_0x2d142b('0xaa')][_0x2d142b('0xa6')]({'where':_0x32f500[_0x2d142b('0x8c')]})[_0x2d142b('0x45')](function(_0x54c0a1){const _0xdf9e2e=_0x2d142b;return _0x341d26[_0xdf9e2e('0xa6')]=_0x54c0a1,_0x3f5a60[_0xdf9e2e('0x88')][_0xdf9e2e('0x36')]&&(_0x32f500[_0xdf9e2e('0x58')]=[{'all':!![]}]),db[_0xdf9e2e('0xaa')][_0xdf9e2e('0x53')](_0x32f500);})['then'](function(_0x1e184a){const _0x5613bd=_0x2d142b;return _0x341d26[_0x5613bd('0xa2')]=_0x1e184a,_0x341d26;});})[_0x3c7265('0x45')](respondWithFilteredResult(_0xcfe8ee,_0x32f500))[_0x3c7265('0x7')](handleError(_0xcfe8ee,null));},exports[_0xcc9955('0x13')]=function(_0x4d4902,_0x18e280){const _0x164635=_0xcc9955;return db['FaxAccount'][_0x164635('0x97')]({'where':{'id':_0x4d4902[_0x164635('0x5c')]['id']}})[_0x164635('0x45')](handleEntityNotFound(_0x18e280,null))['then'](function(_0x442ac2){const _0x5c56d9=_0x164635;if(_0x442ac2)return _0x442ac2['removeDispositions'](_0x4d4902[_0x5c56d9('0x88')][_0x5c56d9('0x42')]);})[_0x164635('0x45')](respondWithStatusCode(_0x18e280,null))[_0x164635('0x7')](handleError(_0x18e280,null));},exports[_0xcc9955('0x1b')]=function(_0x252e61,_0x260188){const _0x224fd6=_0xcc9955;return _0x252e61[_0x224fd6('0x1f')]['id']&&delete _0x252e61['body']['id'],db[_0x224fd6('0xab')][_0x224fd6('0x97')]({'where':{'id':_0x252e61[_0x224fd6('0x5c')]['id']}})[_0x224fd6('0x45')](handleEntityNotFound(_0x260188,null))[_0x224fd6('0x45')](function(_0x4eeba0){const _0x8776f6=_0x224fd6;if(_0x4eeba0)return _0x252e61[_0x8776f6('0x1f')][_0x8776f6('0x37')]=_0x4eeba0['id'],db['CannedAnswer']['create'](_0x252e61[_0x8776f6('0x1f')]);})['then'](respondWithResult(_0x260188,null))[_0x224fd6('0x7')](handleError(_0x260188,null));},exports[_0xcc9955('0x76')]=function(_0x313b7f,_0x24e7b0){const _0x4242d6=_0xcc9955;let _0x2acd00={'raw':![],'where':{}};const _0x46f55a={},_0x3d2c2c={'count':0x0,'rows':[]};return db['FaxAccount']['findOne']({'where':{'id':_0x313b7f[_0x4242d6('0x5c')]['id']}})[_0x4242d6('0x45')](handleEntityNotFound(_0x24e7b0,null))[_0x4242d6('0x45')](function(_0x3deb5b){const _0x1c7117=_0x4242d6;if(_0x3deb5b)return _0x46f55a[_0x1c7117('0x3b')]=_[_0x1c7117('0x74')](db['CannedAnswer']['rawAttributes']),_0x46f55a['query']=_['keys'](_0x313b7f[_0x1c7117('0x88')]),_0x46f55a['filters']=_[_0x1c7117('0x7b')](_0x46f55a['model'],_0x46f55a['query']),_0x2acd00[_0x1c7117('0x60')]=_[_0x1c7117('0x7b')](_0x46f55a[_0x1c7117('0x3b')],qs[_0x1c7117('0x2a')](_0x313b7f[_0x1c7117('0x88')][_0x1c7117('0x2a')])),_0x2acd00[_0x1c7117('0x60')]=_0x2acd00[_0x1c7117('0x60')]['length']?_0x2acd00[_0x1c7117('0x60')]:_0x46f55a['model'],typeof _0x313b7f['query'][_0x1c7117('0x12')]===_0x1c7117('0xa3')&&(_0x2acd00[_0x1c7117('0x81')]=qs[_0x1c7117('0x81')](_0x313b7f[_0x1c7117('0x88')]['limit']),_0x2acd00[_0x1c7117('0x48')]=qs[_0x1c7117('0x48')](_0x313b7f[_0x1c7117('0x88')]['offset'])),_0x2acd00['order']=qs[_0x1c7117('0xa5')](_0x313b7f['query']['sort']),_0x2acd00[_0x1c7117('0x8c')]=qs[_0x1c7117('0xa1')](_['pick'](_0x313b7f[_0x1c7117('0x88')],_0x46f55a[_0x1c7117('0xa1')])),_0x2acd00[_0x1c7117('0x8c')][_0x1c7117('0x37')]=_0x3deb5b['id'],_0x313b7f[_0x1c7117('0x88')][_0x1c7117('0x3c')]&&(_0x2acd00['where']=_[_0x1c7117('0x2d')](_0x2acd00[_0x1c7117('0x8c')],{[Op['or']]:_[_0x1c7117('0x27')](_0x2acd00[_0x1c7117('0x60')],function(_0x4949fa){const _0x231700=_0x1c7117,_0x36e3be={};return _0x36e3be[_0x4949fa]={[Op[_0x231700('0x71')]]:'%'+_0x313b7f[_0x231700('0x88')][_0x231700('0x3c')]+'%'},_0x36e3be;})})),_0x2acd00=_[_0x1c7117('0x2d')]({},_0x2acd00,_0x313b7f[_0x1c7117('0x22')]),db[_0x1c7117('0x33')]['count']({'where':_0x2acd00[_0x1c7117('0x8c')]})[_0x1c7117('0x45')](function(_0x1106c5){const _0x1d083d=_0x1c7117;return _0x3d2c2c[_0x1d083d('0xa6')]=_0x1106c5,_0x313b7f['query'][_0x1d083d('0x36')]&&(_0x2acd00[_0x1d083d('0x58')]=[{'all':!![]}]),db['CannedAnswer'][_0x1d083d('0x53')](_0x2acd00);})[_0x1c7117('0x45')](function(_0x198eeb){const _0x28c75c=_0x1c7117;return _0x3d2c2c[_0x28c75c('0xa2')]=_0x198eeb,_0x3d2c2c;});})[_0x4242d6('0x45')](respondWithFilteredResult(_0x24e7b0,_0x2acd00))[_0x4242d6('0x7')](handleError(_0x24e7b0,null));},exports[_0xcc9955('0x8e')]=function(_0x47af7d,_0x3cc8d1){const _0x1220c5=_0xcc9955;return db[_0x1220c5('0xab')][_0x1220c5('0x97')]({'where':{'id':_0x47af7d[_0x1220c5('0x5c')]['id']}})[_0x1220c5('0x45')](handleEntityNotFound(_0x3cc8d1,null))[_0x1220c5('0x45')](function(_0x5725b7){const _0x52c49a=_0x1220c5;if(_0x5725b7)return _0x5725b7[_0x52c49a('0x8e')](_0x47af7d[_0x52c49a('0x88')][_0x52c49a('0x42')]);})[_0x1220c5('0x45')](respondWithStatusCode(_0x3cc8d1,null))[_0x1220c5('0x7')](handleError(_0x3cc8d1,null));},exports[_0xcc9955('0x18')]=function(_0x102d02,_0x5e1080){const _0x3fe448=_0xcc9955;return db[_0x3fe448('0x6e')][_0x3fe448('0x97')]({'where':{'id':_0x102d02['params']['id']}})[_0x3fe448('0x45')](function(_0x55a0a6){const _0x12cc40=_0x3fe448;if(_0x55a0a6)return _0x55a0a6[_0x12cc40('0x18')](_0x102d02[_0x12cc40('0x1f')][_0x12cc40('0x42')],{'through':_[_0x12cc40('0x94')](_0x102d02['body'],[_0x12cc40('0x42'),'id'])});})['then'](respondWithResult(_0x5e1080,null))['catch'](handleError(_0x5e1080,null));},exports[_0xcc9955('0x89')]=function(_0x15ada0,_0x22751d){const _0x2698c5=_0xcc9955;let _0x3956ec={'raw':![],'where':{}};const _0x22b690={},_0x40ff49={'count':0x0,'rows':[]};return db[_0x2698c5('0xab')][_0x2698c5('0x97')]({'where':{'id':_0x15ada0[_0x2698c5('0x5c')]['id']}})[_0x2698c5('0x45')](handleEntityNotFound(_0x22751d,null))['then'](function(_0x3dc2d5){const _0xa9e108=_0x2698c5;if(_0x3dc2d5)return _0x22b690[_0xa9e108('0x3b')]=_[_0xa9e108('0x74')](db[_0xa9e108('0x6e')][_0xa9e108('0x5d')]),_0x22b690['query']=_['keys'](_0x15ada0[_0xa9e108('0x88')]),_0x22b690[_0xa9e108('0xa1')]=_[_0xa9e108('0x7b')](_0x22b690[_0xa9e108('0x3b')],_0x22b690[_0xa9e108('0x88')]),_0x3956ec[_0xa9e108('0x60')]=_[_0xa9e108('0x7b')](_0x22b690[_0xa9e108('0x3b')],qs['fields'](_0x15ada0[_0xa9e108('0x88')][_0xa9e108('0x2a')])),_0x3956ec[_0xa9e108('0x60')]=_0x3956ec[_0xa9e108('0x60')]['length']?_0x3956ec[_0xa9e108('0x60')]:_0x22b690[_0xa9e108('0x3b')],typeof _0x15ada0[_0xa9e108('0x88')]['nolimit']===_0xa9e108('0xa3')&&(_0x3956ec['limit']=qs[_0xa9e108('0x81')](_0x15ada0[_0xa9e108('0x88')][_0xa9e108('0x81')]),_0x3956ec['offset']=qs[_0xa9e108('0x48')](_0x15ada0[_0xa9e108('0x88')][_0xa9e108('0x48')])),_0x3956ec[_0xa9e108('0x9b')]=qs[_0xa9e108('0xa5')](_0x15ada0[_0xa9e108('0x88')][_0xa9e108('0xa5')]),_0x3956ec[_0xa9e108('0x8c')]=qs[_0xa9e108('0xa1')](_[_0xa9e108('0x26')](_0x15ada0['query'],_0x22b690[_0xa9e108('0xa1')])),_0x3956ec['where'][_0xa9e108('0x37')]=_0x3dc2d5['id'],_0x15ada0[_0xa9e108('0x88')]['filter']&&(_0x3956ec[_0xa9e108('0x8c')]=_[_0xa9e108('0x2d')](_0x3956ec[_0xa9e108('0x8c')],{[Op['or']]:_[_0xa9e108('0x27')](_0x3956ec[_0xa9e108('0x60')],function(_0x459497){const _0x5c3e17=_0xa9e108,_0x1eae27={};return _0x1eae27[_0x459497]={[Op[_0x5c3e17('0x71')]]:'%'+_0x15ada0[_0x5c3e17('0x88')][_0x5c3e17('0x3c')]+'%'},_0x1eae27;})})),_0x3956ec=_[_0xa9e108('0x2d')]({},_0x3956ec,_0x15ada0[_0xa9e108('0x22')]),db[_0xa9e108('0x6e')][_0xa9e108('0xa6')]({'where':_0x3956ec[_0xa9e108('0x8c')]})[_0xa9e108('0x45')](function(_0x5a4a37){const _0x83296f=_0xa9e108;return _0x40ff49[_0x83296f('0xa6')]=_0x5a4a37,_0x15ada0[_0x83296f('0x88')][_0x83296f('0x36')]&&(_0x3956ec[_0x83296f('0x58')]=[{'model':db[_0x83296f('0x32')],'as':_0x83296f('0x43'),'required':![]},{'model':db[_0x83296f('0x73')],'as':_0x83296f('0x55'),'attributes':[_0x83296f('0x6f'),_0x83296f('0xa4'),_0x83296f('0x85')],'required':![]},{'model':db[_0x83296f('0x40')],'as':'Tags','attributes':['id',_0x83296f('0x6f'),_0x83296f('0x4a')],'where':_0x15ada0[_0x83296f('0x88')][_0x83296f('0x66')]?{'id':_0x15ada0['query'][_0x83296f('0x66')]}:undefined,'required':_0x15ada0[_0x83296f('0x88')][_0x83296f('0x66')]?!![]:![]}]),db[_0x83296f('0x6e')]['findAll'](_0x3956ec);})[_0xa9e108('0x45')](function(_0x20aed9){return _0x40ff49['rows']=_0x20aed9,_0x40ff49;});})['then'](respondWithFilteredResult(_0x22751d,_0x3956ec))[_0x2698c5('0x7')](handleError(_0x22751d,null));},exports[_0xcc9955('0x68')]=function(_0x27365e,_0x3f22ee){const _0x444934=_0xcc9955;return db[_0x444934('0xab')][_0x444934('0x97')]({'where':{'id':_0x27365e['params']['id']}})[_0x444934('0x45')](handleEntityNotFound(_0x3f22ee,null))['then'](function(_0x3ee92e){const _0x4df9bc=_0x444934;if(_0x3ee92e)return db[_0x4df9bc('0x9a')][_0x4df9bc('0x62')](function(_0x30a22a){const _0x28ec34=_0x4df9bc;return db[_0x28ec34('0x75')][_0x28ec34('0x3f')]({'where':{'FaxAccountId':_0x27365e['params']['id']},'transaction':_0x30a22a})['then'](function(){const _0x5138dd=_0x28ec34,_0x5142a2=_['map'](_0x27365e[_0x5138dd('0x1f')],function(_0x5e1696){const _0x483887=_0x5138dd;return _0x5e1696[_0x483887('0x37')]=_0x27365e[_0x483887('0x5c')]['id'],_0x5e1696;});return db[_0x5138dd('0x75')][_0x5138dd('0x50')](_0x5142a2,{'transaction':_0x30a22a});});})[_0x4df9bc('0x45')](function(){const _0x3fc062=_0x4df9bc;return db[_0x3fc062('0x75')][_0x3fc062('0x41')]({'where':{'FaxAccountId':_0x27365e[_0x3fc062('0x5c')]['id']},'order':_0x3fc062('0x86')});});})[_0x444934('0x45')](respondWithResult(_0x3f22ee,null))[_0x444934('0x7')](handleError(_0x3f22ee,null));},exports[_0xcc9955('0x7d')]=function(_0x278f5b,_0x1f7fb1){const _0x2f2f13=_0xcc9955;let _0x55e0a3={};const _0x25f56f={};let _0x233608,_0x5ce9ed;return db['FaxAccount']['findOne']({'where':{'id':_0x278f5b[_0x2f2f13('0x5c')]['id']}})[_0x2f2f13('0x45')](handleEntityNotFound(_0x1f7fb1,null))[_0x2f2f13('0x45')](function(_0x5434d7){const _0x748bcf=_0x2f2f13;if(_0x5434d7)return _0x233608=_0x5434d7,_0x25f56f['model']=_[_0x748bcf('0x74')](db['FaxApplication'][_0x748bcf('0x5d')]),_0x25f56f['query']=_['keys'](_0x278f5b[_0x748bcf('0x88')]),_0x25f56f[_0x748bcf('0xa1')]=_[_0x748bcf('0x7b')](_0x25f56f[_0x748bcf('0x3b')],_0x25f56f[_0x748bcf('0x88')]),_0x55e0a3[_0x748bcf('0x60')]=_['intersection'](_0x25f56f[_0x748bcf('0x3b')],qs[_0x748bcf('0x2a')](_0x278f5b[_0x748bcf('0x88')]['fields'])),_0x55e0a3[_0x748bcf('0x60')]=_0x55e0a3[_0x748bcf('0x60')][_0x748bcf('0x39')]?_0x55e0a3[_0x748bcf('0x60')]:_0x25f56f['model'],_0x55e0a3[_0x748bcf('0x9b')]=qs['sort'](_0x278f5b['query'][_0x748bcf('0xa5')]),_0x55e0a3[_0x748bcf('0x8c')]=qs[_0x748bcf('0xa1')](_[_0x748bcf('0x26')](_0x278f5b[_0x748bcf('0x88')],_0x25f56f[_0x748bcf('0xa1')])),_0x278f5b['query']['filter']&&(_0x55e0a3[_0x748bcf('0x8c')]=_['merge'](_0x55e0a3[_0x748bcf('0x8c')],{[Op['or']]:_[_0x748bcf('0x27')](_0x55e0a3[_0x748bcf('0x60')],function(_0x42d2ab){const _0x504c27=_0x748bcf,_0x1be8b9={};return _0x1be8b9[_0x42d2ab]={[Op[_0x504c27('0x71')]]:'%'+_0x278f5b[_0x504c27('0x88')][_0x504c27('0x3c')]+'%'},_0x1be8b9;})})),_0x55e0a3=_[_0x748bcf('0x2d')]({},_0x55e0a3,_0x278f5b['options']),_0x233608[_0x748bcf('0x7d')](_0x55e0a3);})['then'](function(_0x1aeddb){const _0x227323=_0x2f2f13;if(_0x1aeddb)return _0x5ce9ed=_0x1aeddb[_0x227323('0x39')],typeof _0x278f5b[_0x227323('0x88')][_0x227323('0x12')]===_0x227323('0xa3')&&(_0x55e0a3[_0x227323('0x81')]=qs['limit'](_0x278f5b[_0x227323('0x88')]['limit']),_0x55e0a3[_0x227323('0x48')]=qs['offset'](_0x278f5b['query'][_0x227323('0x48')])),_0x233608['getApplications'](_0x55e0a3);})['then'](function(_0xabd26e){if(_0xabd26e)return _0xabd26e?{'count':_0x5ce9ed,'rows':_0xabd26e}:null;})[_0x2f2f13('0x45')](respondWithResult(_0x1f7fb1,null))[_0x2f2f13('0x7')](handleError(_0x1f7fb1,null));};function Extension(_0x254430,_0x31868c,_0x3a06f5,_0x579722){const _0x1cd978=_0xcc9955;this['context']='from-voip-provider',this[_0x1cd978('0x65')]=_0x254430[_0x1cd978('0x90')],this[_0x1cd978('0x1c')]=_0x579722,this['type']='system',this[_0x1cd978('0x7c')]=_0x1cd978('0x5b'),this[_0x1cd978('0x37')]=_0x254430['id'],this[_0x1cd978('0x86')]=_0x31868c,this['appdata']=_0x3a06f5;}function createExtensionsReciveFax(_0x31f76a){const _0x15e32f=_0xcc9955;let _0x533cf6=0x1;const _0x42b48c=[];_0x42b48c[_0x15e32f('0x70')](new Extension(_0x31f76a,_0x533cf6,'','Answer')),_0x533cf6+=0x1,_0x42b48c[_0x15e32f('0x70')](new Extension(_0x31f76a,_0x533cf6,'CDR(type)=inbound-fax','Set')),_0x533cf6+=0x1;for(const _0x5378fe in _0x31f76a){typeof _0x31f76a[_0x5378fe]!=='undefined'&&(_0x5378fe===_0x15e32f('0x11')||_0x5378fe==='localstationid'||_0x5378fe===_0x15e32f('0x6d')||_0x5378fe===_0x15e32f('0x5a')||_0x5378fe==='headerinfo'||_0x5378fe===_0x15e32f('0xe')||_0x5378fe===_0x15e32f('0x79')||_0x5378fe===_0x15e32f('0x3a')||_0x5378fe===_0x15e32f('0x51'))&&(_0x42b48c[_0x15e32f('0x70')](new Extension(_0x31f76a,_0x533cf6,_0x15e32f('0x8f')+_0x5378fe+')='+_0x31f76a[_0x5378fe],_0x15e32f('0x9'))),_0x533cf6+=0x1);}return _0x42b48c[_0x15e32f('0x70')](new Extension(_0x31f76a,_0x533cf6,'6',_0x15e32f('0x44'))),_0x533cf6+=0x1,_0x42b48c[_0x15e32f('0x70')](new Extension(_0x31f76a,_0x533cf6,_0x15e32f('0x59'),_0x15e32f('0x47'))),_0x533cf6=0x0,_0x42b48c;}exports[_0xcc9955('0x25')]=function(_0x575650,_0x2bc7ed){const _0x19c881=_0xcc9955;let _0x14a5a5;return db[_0x19c881('0x9a')][_0x19c881('0x62')](function(_0x3652ef){const _0x221127=_0x19c881;return db[_0x221127('0xab')]['create'](_0x575650['body'],{'transaction':_0x3652ef})[_0x221127('0x45')](function(_0x3edea0){const _0x119fea=_0x221127;return _0x14a5a5=_0x3edea0['get']({'plain':!![]}),db[_0x119fea('0x56')]['bulkCreate'](createExtensionsReciveFax(_0x14a5a5),{'transaction':_0x3652ef});});})[_0x19c881('0x45')](function(){return _0x14a5a5;})[_0x19c881('0x45')](respondWithResult(_0x2bc7ed,null))[_0x19c881('0x7')](handleError(_0x2bc7ed,null));},exports[_0xcc9955('0x0')]=function(_0x3bd2e2,_0x4383ed){const _0x434587=_0xcc9955;return db['sequelize'][_0x434587('0x62')](function(_0x28b22b){const _0x2fce29=_0x434587;return db[_0x2fce29('0xab')]['update'](_0x3bd2e2[_0x2fce29('0x1f')],{'where':{'id':_0x3bd2e2[_0x2fce29('0x1f')]['id']},'transaction':_0x28b22b})[_0x2fce29('0x45')](function(){const _0x4372d6=_0x2fce29;return db[_0x4372d6('0x56')][_0x4372d6('0x3f')]({'where':{'FaxAccountId':_0x3bd2e2[_0x4372d6('0x1f')]['id']},'transaction':_0x28b22b})[_0x4372d6('0x45')](function(){const _0x5f217a=_0x4372d6;return db[_0x5f217a('0x56')]['bulkCreate'](createExtensionsReciveFax(_[_0x5f217a('0x94')](_0x3bd2e2[_0x5f217a('0x1f')],['tech',_0x5f217a('0x99'),_0x5f217a('0x93'),'updatedAt',_0x5f217a('0x82'),_0x5f217a('0x5')])),{'transaction':_0x28b22b});});});})[_0x434587('0x45')](function(){const _0x5f25a9=_0x434587;return db[_0x5f25a9('0xab')][_0x5f25a9('0x46')](_0x3bd2e2[_0x5f25a9('0x1f')]['id']);})[_0x434587('0x45')](respondWithResult(_0x4383ed,null))[_0x434587('0x7')](handleError(_0x4383ed,null));},exports['getMessages']=function(_0x25f1b2,_0x428fcb){const _0x2430bd=_0xcc9955;let _0x54797d={'raw':!![],'where':{}};const _0x20f571={},_0x29a626={'count':0x0,'rows':[]};return db[_0x2430bd('0xab')]['findOne']({'where':{'id':_0x25f1b2[_0x2430bd('0x5c')]['id']}})['then'](handleEntityNotFound(_0x428fcb,null))['then'](function(_0x47ff3b){const _0x469ac1=_0x2430bd;if(_0x47ff3b){_0x20f571[_0x469ac1('0x3b')]=_['keys'](db[_0x469ac1('0x14')][_0x469ac1('0x5d')]),_0x20f571['query']=_[_0x469ac1('0x74')](_0x25f1b2[_0x469ac1('0x88')]),_0x20f571[_0x469ac1('0xa1')]=_[_0x469ac1('0x7b')](_0x20f571[_0x469ac1('0x3b')],_0x20f571[_0x469ac1('0x88')]),_0x54797d['attributes']=_[_0x469ac1('0x7b')](_0x20f571[_0x469ac1('0x3b')],qs[_0x469ac1('0x2a')](_0x25f1b2[_0x469ac1('0x88')][_0x469ac1('0x2a')])),_0x54797d[_0x469ac1('0x60')]=_0x54797d[_0x469ac1('0x60')]['length']?_0x54797d[_0x469ac1('0x60')]:_0x20f571['model'];typeof _0x25f1b2['query'][_0x469ac1('0x12')]===_0x469ac1('0xa3')&&(_0x54797d[_0x469ac1('0x81')]=qs[_0x469ac1('0x81')](_0x25f1b2[_0x469ac1('0x88')][_0x469ac1('0x81')]),_0x54797d[_0x469ac1('0x48')]=qs[_0x469ac1('0x48')](_0x25f1b2[_0x469ac1('0x88')]['offset']));_0x54797d[_0x469ac1('0x9b')]=qs[_0x469ac1('0xa5')](_0x25f1b2['query']['sort']),_0x54797d[_0x469ac1('0x8c')]=qs[_0x469ac1('0xa1')](_['pick'](_0x25f1b2[_0x469ac1('0x88')],_0x20f571[_0x469ac1('0xa1')])),_0x54797d[_0x469ac1('0x8c')][_0x469ac1('0x37')]=_0x47ff3b['id'];_0x25f1b2[_0x469ac1('0x88')]['filter']&&(_0x54797d[_0x469ac1('0x8c')]=_[_0x469ac1('0x2d')](_0x54797d[_0x469ac1('0x8c')],{[Op['or']]:_[_0x469ac1('0x27')](_0x54797d[_0x469ac1('0x60')],function(_0x352f41){const _0x47e6ff=_0x469ac1,_0x40e05c={};return _0x40e05c[_0x352f41]={[Op[_0x47e6ff('0x71')]]:'%'+_0x25f1b2['query'][_0x47e6ff('0x3c')]+'%'},_0x40e05c;})}));if(_0x25f1b2[_0x469ac1('0x88')][_0x469ac1('0x7a')]){const _0x11161b=_0x25f1b2[_0x469ac1('0x88')][_0x469ac1('0x7a')][_0x469ac1('0x28')](','),_0x33f7b3={};_0x33f7b3[_0x11161b[0x0]]={[Op[_0x469ac1('0x4')]]:moment(_0x11161b[0x1])['format'](_0x469ac1('0x24'))},_0x54797d[_0x469ac1('0x8c')]=_[_0x469ac1('0x2d')](_0x54797d[_0x469ac1('0x8c')],_0x33f7b3);}return _0x54797d=_[_0x469ac1('0x2d')]({},_0x54797d,_0x25f1b2[_0x469ac1('0x22')]),db['FaxMessage'][_0x469ac1('0xa6')]({'where':_0x54797d[_0x469ac1('0x8c')]})[_0x469ac1('0x45')](function(_0x181240){const _0x5c7cdb=_0x469ac1;return _0x29a626[_0x5c7cdb('0xa6')]=_0x181240,_0x25f1b2[_0x5c7cdb('0x88')][_0x5c7cdb('0x36')]&&(_0x54797d[_0x5c7cdb('0x58')]=[{'all':!![]}]),db[_0x5c7cdb('0x14')]['findAll'](_0x54797d);})[_0x469ac1('0x45')](function(_0x2f79e4){const _0x38ee79=_0x469ac1;return _0x29a626[_0x38ee79('0xa2')]=_0x2f79e4,_0x29a626;});}})[_0x2430bd('0x45')](respondWithFilteredResult(_0x428fcb,_0x54797d))[_0x2430bd('0x7')](handleError(_0x428fcb,null));},exports[_0xcc9955('0x69')]=function(_0x515f10,_0x3f5971){const _0x2c8d3f=_0xcc9955;let _0x4e897b,_0x11d3f5;return _0x515f10[_0x2c8d3f('0x1f')]['to']&&(_0x11d3f5=_0x515f10[_0x2c8d3f('0x1f')]['to'][0x0]),db[_0x2c8d3f('0xab')][_0x2c8d3f('0x97')]({'where':{'id':_0x515f10[_0x2c8d3f('0x5c')]['id']},'include':[{'model':db[_0x2c8d3f('0x8a')],'as':_0x2c8d3f('0x8b'),'include':[{'model':db['CmContact'],'as':_0x2c8d3f('0x72'),'where':{'fax':_0x11d3f5},'limit':0x1,'order':[['updatedAt','DESC']]}]}]})['then'](handleEntityNotFound(_0x3f5971,null))[_0x2c8d3f('0x45')](function(_0x28e6a9){const _0x2544fc=_0x2c8d3f;_0x4e897b=_0x28e6a9;if(_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')]&&_0x515f10[_0x2544fc('0x1f')]['attachments'][_0x2544fc('0x39')])for(let _0x365a74=0x0;_0x365a74<_0x515f10['body'][_0x2544fc('0x15')]['length'];_0x365a74+=0x1){_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')][_0x365a74]={'filename':_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')][_0x365a74][_0x2544fc('0x6f')],'id':_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')][_0x365a74]['id'],'path':path[_0x2544fc('0x6')](config['root'],_0x2544fc('0x4c'),_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')][_0x365a74][_0x2544fc('0x19')])};}return respondWithRpcPromise('CheckAfterSend',_0x2544fc('0x4d'),{'FaxAccountId':_[_0x2544fc('0x57')](_0x515f10[_0x2544fc('0x5c')]['id'])?undefined:_0x515f10[_0x2544fc('0x5c')]['id'],'path':_[_0x2544fc('0x57')](_0x515f10['body']['attachments'][0x0][_0x2544fc('0xa8')])?undefined:_0x515f10[_0x2544fc('0x1f')][_0x2544fc('0x15')][0x0][_0x2544fc('0xa8')],'fax':_['isNil'](_0x515f10[_0x2544fc('0x1f')]['to'][0x0])?undefined:_0x515f10[_0x2544fc('0x1f')]['to'][0x0]},client9002);})[_0x2c8d3f('0x45')](function(){const _0x1c20fd=_0x2c8d3f;if(_0x4e897b){_[_0x1c20fd('0x57')](_0x515f10[_0x1c20fd('0x1f')][_0x1c20fd('0x6b')])&&(_0x515f10['body'][_0x1c20fd('0x6b')]=util[_0x1c20fd('0x54')](_0x1c20fd('0x34'),_0x4e897b[_0x1c20fd('0x6f')],_0x4e897b[_0x1c20fd('0xb')]));if(_0x4e897b[_0x1c20fd('0x8b')])return _0x4e897b[_0x1c20fd('0x8b')][_0x1c20fd('0x72')][_0x1c20fd('0x39')]?_0x4e897b[_0x1c20fd('0x8b')][_0x1c20fd('0x72')][0x0]:db[_0x1c20fd('0x32')][_0x1c20fd('0x9f')](_[_0x1c20fd('0x38')](_0x515f10[_0x1c20fd('0x1f')],{'firstName':_0x515f10[_0x1c20fd('0x1f')]['to'][0x0],'phone':_0x515f10[_0x1c20fd('0x1f')]['to'][0x0],'fax':_0x515f10[_0x1c20fd('0x1f')]['to'][0x0],'ListId':_0x4e897b['ListId']}));else throw new Error('List\x20not\x20found');}else throw new Error(_0x1c20fd('0x3'));})[_0x2c8d3f('0x45')](function(_0x3e5b9a){const _0x30a89d=_0x2c8d3f;if(_0x3e5b9a)return db[_0x30a89d('0x6e')]['findOne']({'where':{'ContactId':_0x3e5b9a['id'],'closed':![],'FaxAccountId':_0x4e897b['id']}})[_0x30a89d('0x45')](function(_0x2098f4){const _0x5c2e24=_0x30a89d;if(_0x2098f4)return[_0x2098f4,![]];return db['FaxInteraction'][_0x5c2e24('0x9f')]({'UserId':_0x515f10[_0x5c2e24('0xa9')]['id'],'ContactId':_0x3e5b9a['id'],'FaxAccountId':_0x4e897b['id'],'fax':_0x515f10[_0x5c2e24('0x1f')]['to'][0x0],'firstMsgDirection':_0x5c2e24('0x3e'),'Messages':[_[_0x5c2e24('0x2d')](_0x515f10[_0x5c2e24('0x1f')],{'read':![],'body':_0x515f10[_0x5c2e24('0x1f')][_0x5c2e24('0x15')][0x0][_0x5c2e24('0xa')],'FaxAccountId':_0x4e897b['id'],'UserId':_0x515f10[_0x5c2e24('0xa9')]['id'],'ContactId':_0x3e5b9a['id'],'AttachmentId':_0x515f10['body'][_0x5c2e24('0x15')][0x0]['id']})]},{'include':[{'model':db['FaxMessage'],'as':_0x5c2e24('0x2')}]})['then'](function(_0x48a59e){return[_0x48a59e,!![]];});});else throw new Error(_0x30a89d('0x35'));})['then'](function([_0x1377a6,_0x526704]){const _0xfc1fd2=_0x2c8d3f;if(_0x526704)return _0x1377a6;return db[_0xfc1fd2('0x14')][_0xfc1fd2('0x9f')]({'direction':_0xfc1fd2('0x3e'),'read':![],'body':_0x515f10['body']['attachments'][0x0][_0xfc1fd2('0xa')],'FaxAccountId':_0x4e897b['id'],'FaxInteractionId':_0x1377a6['id'],'UserId':_0x515f10[_0xfc1fd2('0xa9')]['id'],'ContactId':_0x1377a6['ContactId'],'AttachmentId':_0x515f10[_0xfc1fd2('0x1f')][_0xfc1fd2('0x15')][0x0]['id']})[_0xfc1fd2('0x45')](function(_0xafdaea){const _0xec41d6=_0xfc1fd2;return _0x1377a6[_0xec41d6('0x2c')][_0xec41d6('0x2')]=[],_0x1377a6[_0xec41d6('0x2c')]['Messages'][_0xec41d6('0x70')](_0xafdaea[_0xec41d6('0x2c')]),_0x1377a6;});})['then'](function(_0x151ac5){const _0x576f39=_0x2c8d3f;return respondWithRpcPromise(_0x576f39('0x9d'),_0x576f39('0x9d'),{'FaxAccountId':_[_0x576f39('0x57')](_0x515f10['params']['id'])?undefined:_0x515f10[_0x576f39('0x5c')]['id'],'path':_['isNil'](_0x515f10[_0x576f39('0x1f')][_0x576f39('0x15')][0x0][_0x576f39('0xa8')])?undefined:_0x515f10[_0x576f39('0x1f')]['attachments'][0x0][_0x576f39('0xa8')],'fax':_[_0x576f39('0x57')](_0x515f10[_0x576f39('0x1f')]['to'][0x0])?undefined:_0x515f10[_0x576f39('0x1f')]['to'][0x0],'AttachmentId':_0x515f10[_0x576f39('0x1f')][_0x576f39('0x15')][0x0]['id']},client9002)[_0x576f39('0x45')](function(_0x75ee18){const _0x21b13c=_0x576f39;logger[_0x21b13c('0x84')]('SendFaxRpc,\x20%s',_0x75ee18);})[_0x576f39('0x7')](function(_0x45b4fa){const _0x2d66e2=_0x576f39;logger[_0x2d66e2('0x84')](_0x2d66e2('0x87'),_0x45b4fa);}),_0x151ac5;})[_0x2c8d3f('0x45')](respondWithResult(_0x3f5971,null))[_0x2c8d3f('0x7')](handleError(_0x3f5971,null));},exports[_0xcc9955('0x10')]=function(_0x3a4a7b,_0x3f3213){const _0x343517=_0xcc9955;return db['FaxAccount']['findOne']({'where':{'id':_0x3a4a7b[_0x343517('0x5c')]['id']}})[_0x343517('0x45')](function(_0x338236){const _0x14c592=_0x343517;if(_0x338236)return _0x338236[_0x14c592('0x10')](_0x3a4a7b[_0x14c592('0x1f')]['ids'],{'through':_[_0x14c592('0x94')](_0x3a4a7b[_0x14c592('0x1f')],[_0x14c592('0x42'),'id'])})[_0x14c592('0x45')](function(_0x295cf6){const _0x469f6a=_0x14c592;for(let _0x1af1de=0x0;_0x1af1de<_0x3a4a7b[_0x469f6a('0x1f')][_0x469f6a('0x42')][_0x469f6a('0x39')];_0x1af1de+=0x1){socket[_0x469f6a('0x95')](_0x469f6a('0x92'),{'UserId':_0x3a4a7b[_0x469f6a('0x1f')][_0x469f6a('0x42')][_0x1af1de],'FaxAccountId':_0x3a4a7b[_0x469f6a('0x5c')]['id']});}return _0x295cf6;});})['then'](respondWithResult(_0x3f3213,null))[_0x343517('0x7')](handleError(_0x3f3213,null));},exports['removeAgents']=function(_0xf6eaef,_0xf6a64a){const _0x4eb40b=_0xcc9955;return db[_0x4eb40b('0xab')][_0x4eb40b('0x97')]({'where':{'id':_0xf6eaef['params']['id']}})[_0x4eb40b('0x45')](handleEntityNotFound(_0xf6a64a,null))[_0x4eb40b('0x45')](function(_0x4939f7){const _0x34c295=_0x4eb40b;if(_0x4939f7)return _0x4939f7[_0x34c295('0x64')](_0xf6eaef[_0x34c295('0x88')]['ids'])['then'](function(){const _0x57f336=_0x34c295;if(_[_0x57f336('0x98')](_0xf6eaef['query'][_0x57f336('0x42')]))for(let _0x426c52=0x0;_0x426c52<_0xf6eaef[_0x57f336('0x88')][_0x57f336('0x42')]['length'];_0x426c52+=0x1){socket[_0x57f336('0x95')](_0x57f336('0x80'),{'UserId':Number(_0xf6eaef[_0x57f336('0x88')]['ids'][_0x426c52]),'FaxAccountId':Number(_0xf6eaef[_0x57f336('0x5c')]['id'])});}else socket[_0x57f336('0x95')]('userFaxAccount:remove',{'UserId':Number(_0xf6eaef[_0x57f336('0x88')][_0x57f336('0x42')]),'FaxAccountId':Number(_0xf6eaef[_0x57f336('0x5c')]['id'])});});})['then'](respondWithStatusCode(_0xf6a64a,null))['catch'](handleError(_0xf6a64a,null));},exports[_0xcc9955('0x49')]=function(_0x93a442,_0x3d7066){const _0x13a974=_0xcc9955;let _0x5633d5={};const _0x38ec79={};let _0x13dd4c,_0x47be68;return db['FaxAccount'][_0x13a974('0x97')]({'where':{'id':_0x93a442['params']['id']}})[_0x13a974('0x45')](handleEntityNotFound(_0x3d7066,null))['then'](function(_0x4b3c09){const _0x3c06d7=_0x13a974;if(_0x4b3c09)return _0x13dd4c=_0x4b3c09,_0x38ec79[_0x3c06d7('0x3b')]=_[_0x3c06d7('0x74')](db[_0x3c06d7('0x73')][_0x3c06d7('0x5d')]),_0x38ec79['query']=_[_0x3c06d7('0x74')](_0x93a442['query']),_0x38ec79['filters']=_[_0x3c06d7('0x7b')](_0x38ec79[_0x3c06d7('0x3b')],_0x38ec79[_0x3c06d7('0x88')]),_0x5633d5[_0x3c06d7('0x60')]=_[_0x3c06d7('0x7b')](_0x38ec79[_0x3c06d7('0x3b')],qs[_0x3c06d7('0x2a')](_0x93a442[_0x3c06d7('0x88')][_0x3c06d7('0x2a')])),_0x5633d5[_0x3c06d7('0x60')]=_0x5633d5[_0x3c06d7('0x60')][_0x3c06d7('0x39')]?_0x5633d5[_0x3c06d7('0x60')]:_0x38ec79[_0x3c06d7('0x3b')],_0x5633d5['order']=qs[_0x3c06d7('0xa5')](_0x93a442[_0x3c06d7('0x88')]['sort']),_0x5633d5['where']=qs['filters'](_['pick'](_0x93a442[_0x3c06d7('0x88')],_0x38ec79['filters'])),_0x93a442[_0x3c06d7('0x88')]['filter']&&(_0x5633d5[_0x3c06d7('0x8c')]=_[_0x3c06d7('0x2d')](_0x5633d5['where'],{[Op['or']]:_[_0x3c06d7('0x27')](_0x5633d5[_0x3c06d7('0x60')],function(_0x389e91){const _0x57bb65=_0x3c06d7,_0x565a61={};return _0x565a61[_0x389e91]={[Op[_0x57bb65('0x71')]]:'%'+_0x93a442[_0x57bb65('0x88')]['filter']+'%'},_0x565a61;})})),_0x5633d5=_['merge']({},_0x5633d5,_0x93a442[_0x3c06d7('0x22')]),_0x13dd4c[_0x3c06d7('0x49')](_0x5633d5);})[_0x13a974('0x45')](function(_0x26f4f6){const _0x2879ed=_0x13a974;if(_0x26f4f6)return _0x47be68=_0x26f4f6[_0x2879ed('0x39')],typeof _0x93a442['query']['nolimit']===_0x2879ed('0xa3')&&(_0x5633d5[_0x2879ed('0x81')]=qs['limit'](_0x93a442[_0x2879ed('0x88')][_0x2879ed('0x81')]),_0x5633d5['offset']=qs['offset'](_0x93a442[_0x2879ed('0x88')][_0x2879ed('0x48')])),_0x13dd4c[_0x2879ed('0x49')](_0x5633d5);})[_0x13a974('0x45')](function(_0x57b09e){if(_0x57b09e)return _0x57b09e?{'count':_0x47be68,'rows':_0x57b09e}:null;})[_0x13a974('0x45')](respondWithResult(_0x3d7066,null))[_0x13a974('0x7')](handleError(_0x3d7066,null));}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index 75c9fba..b027335 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a187_0x5126=['save','setMaxListeners','exports','update','undefined','FaxAccount','events','emit','addHook','remove'];(function(_0x49b0fc,_0x512694){const _0x43b998=function(_0x5b4bc7){while(--_0x5b4bc7){_0x49b0fc['push'](_0x49b0fc['shift']());}};_0x43b998(++_0x512694);}(a187_0x5126,0x1c2));const a187_0x43b9=function(_0x49b0fc,_0x512694){_0x49b0fc=_0x49b0fc-0x0;let _0x43b998=a187_0x5126[_0x49b0fc];return _0x43b998;};const _0x50ef1a=a187_0x43b9;'use strict';const EventEmitter=require(_0x50ef1a('0x6')),FaxAccount=require('../../mysqldb')['db'][_0x50ef1a('0x5')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x50ef1a('0x1')](0x0);const events={'afterCreate':_0x50ef1a('0x0'),'afterUpdate':_0x50ef1a('0x3'),'afterDestroy':_0x50ef1a('0x9')};function emitEvent(_0x5b4bc7){return function(_0x487a82){const _0x156c04=a187_0x43b9;FaxAccountEvents[_0x156c04('0x7')](_0x5b4bc7+':'+_0x487a82['id'],_0x487a82),FaxAccountEvents['emit'](_0x5b4bc7,_0x487a82);};}for(const e in events){if(typeof events[e]!==_0x50ef1a('0x4')){const event=events[e];FaxAccount[_0x50ef1a('0x8')](e,emitEvent(event));}}module[_0x50ef1a('0x2')]=FaxAccountEvents; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index c2783ff..424ad39 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a188_0x630c=['define','FaxAccount','fax_accounts','./faxAccount.attributes','exports'];(function(_0x47d001,_0x630c14){const _0x58b4c6=function(_0x152690){while(--_0x152690){_0x47d001['push'](_0x47d001['shift']());}};_0x58b4c6(++_0x630c14);}(a188_0x630c,0x15e));const a188_0x58b4=function(_0x47d001,_0x630c14){_0x47d001=_0x47d001-0x0;let _0x58b4c6=a188_0x630c[_0x47d001];return _0x58b4c6;};const _0x2cbabe=a188_0x58b4;'use strict';const attributes=require(_0x2cbabe('0x3'));module[_0x2cbabe('0x4')]=function(_0x152690){const _0x49a547=_0x2cbabe,_0x171c35=_0x152690[_0x49a547('0x0')](_0x49a547('0x1'),attributes,{'tableName':_0x49a547('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x171c35;}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index b85e98e..4f7fb7f 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a189_0x2486=['error','ContactId','../../mysqldb','stringify','agent','close','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','ListId','includes','difference','defaults','NotifyFaxAccount','contact','list','raw','name','mapKey','findAll','FaxInteraction','CmList','map','get','limit','no\x20available\x20attributes','createdAt','CmContact','startRouting','User','CompanyId','body\x20is\x20mandatory\x20and\x20not\x20empty','attributes','GetFaxAccount','from\x20is\x20mandatory','model','include','register','code','updatedAt','client','where','Start','catch','Applications','FaxAccount','create','jayson/promise','List','UserId','Contacts','then','findOne','info','debug','./faxAccount.socket','orderBy','*,*,*,*','length','body','interaction','unshift','FaxAccount,\x20%s,\x20%s','result','../../config/logger','applications','isNil','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','DESC','options','lodash','sequelize','rpc','request\x20sent','../../rediscache','from','asc','FaxApplication','waitForTheAssignedAgent','keys','account','Contact\x20not\x20found','message'];(function(_0x3ca4cd,_0x24869c){const _0x43f7bf=function(_0x359086){while(--_0x359086){_0x3ca4cd['push'](_0x3ca4cd['shift']());}};_0x43f7bf(++_0x24869c);}(a189_0x2486,0x72));const a189_0x43f7=function(_0x3ca4cd,_0x24869c){_0x3ca4cd=_0x3ca4cd-0x0;let _0x43f7bf=a189_0x2486[_0x3ca4cd];return _0x43f7bf;};const _0x5482b3=a189_0x43f7;'use strict';const _=require(_0x5482b3('0x23')),db=require(_0x5482b3('0x32'))['db'],{ValidationError}=require(_0x5482b3('0x24')),logger=require(_0x5482b3('0x1d'))(_0x5482b3('0x25')),{getSocket}=require(_0x5482b3('0x27')),socket=getSocket(),jayson=require(_0x5482b3('0xc')),client=jayson[_0x5482b3('0x5')]['http']({'port':0x232c});require(_0x5482b3('0x14'))[_0x5482b3('0x2')](socket);function respondWithRpcPromise(_0x359086,_0x3ed3dd,_0x387378){return new Promise(function(_0x123fe4,_0xdeb695){return client['request'](_0x359086,_0x387378)['then'](function(_0x3675de){const _0x3b45b2=a189_0x43f7;logger[_0x3b45b2('0x12')]('FaxAccount,\x20%s,\x20%s',_0x3ed3dd,_0x3b45b2('0x26')),logger[_0x3b45b2('0x13')]('FaxAccount,\x20%s,\x20%s,\x20%s',_0x3ed3dd,_0x3b45b2('0x26'),JSON[_0x3b45b2('0x33')](_0x3675de));if(_0x3675de['error']){if(_0x3675de['error'][_0x3b45b2('0x3')]===0x1f4)return logger[_0x3b45b2('0x30')]('FaxAccount,\x20%s,\x20%s',_0x3ed3dd,_0x3675de[_0x3b45b2('0x30')][_0x3b45b2('0x2f')]),_0xdeb695(_0x3675de[_0x3b45b2('0x30')][_0x3b45b2('0x2f')]);return logger[_0x3b45b2('0x30')]('FaxAccount,\x20%s,\x20%s',_0x3ed3dd,_0x3675de[_0x3b45b2('0x30')][_0x3b45b2('0x2f')]),_0x123fe4(_0x3675de[_0x3b45b2('0x30')]['message']);}else logger[_0x3b45b2('0x12')]('FaxAccount,\x20%s,\x20%s',_0x3ed3dd,_0x3b45b2('0x26')),_0x123fe4(_0x3675de[_0x3b45b2('0x1c')][_0x3b45b2('0x2f')]);})['catch'](function(_0x5ba1e9){const _0x2a0490=a189_0x43f7;logger[_0x2a0490('0x30')](_0x2a0490('0x1b'),_0x3ed3dd,_0x5ba1e9),_0xdeb695(_0x5ba1e9);});});}exports['GetFaxAccount']=function(_0x10b53d){const _0x4af7c7=this;return new Promise(function(_0x3d4412,_0x3822b7){const _0x16c5c1=a189_0x43f7;return db[_0x16c5c1('0xa')][_0x16c5c1('0x41')]({'raw':_0x10b53d[_0x16c5c1('0x22')]?_0x10b53d['options'][_0x16c5c1('0x3e')]===undefined?!![]:![]:!![],'where':_0x10b53d[_0x16c5c1('0x22')]?_0x10b53d['options'][_0x16c5c1('0x6')]||null:null,'attributes':_0x10b53d[_0x16c5c1('0x22')]?_0x10b53d['options'][_0x16c5c1('0x4e')]||null:null,'limit':_0x10b53d[_0x16c5c1('0x22')]?_0x10b53d['options'][_0x16c5c1('0x46')]||null:null,'include':_0x10b53d[_0x16c5c1('0x22')]?_0x10b53d['options'][_0x16c5c1('0x1')]?_['map'](_0x10b53d[_0x16c5c1('0x22')][_0x16c5c1('0x1')],function(_0x3997b5){const _0x4509fd=_0x16c5c1;return{'model':db[_0x3997b5[_0x4509fd('0x0')]],'as':_0x3997b5['as'],'attributes':_0x3997b5[_0x4509fd('0x4e')],'include':_0x3997b5['include']?_['map'](_0x3997b5['include'],function(_0x4126be){const _0x4293b5=_0x4509fd;return{'model':db[_0x4126be[_0x4293b5('0x0')]],'as':_0x4126be['as'],'attributes':_0x4126be['attributes'],'include':_0x4126be['include']?_[_0x4293b5('0x44')](_0x4126be[_0x4293b5('0x1')],function(_0x998fff){const _0x379fd6=_0x4293b5;return{'model':db[_0x998fff[_0x379fd6('0x0')]],'as':_0x998fff['as'],'attributes':_0x998fff[_0x379fd6('0x4e')]};}):[]};}):[]};}):[]:[]})[_0x16c5c1('0x10')](function(_0x3cbe21){const _0x4b1980=_0x16c5c1;logger[_0x4b1980('0x12')]('GetFaxAccount',_0x10b53d),logger[_0x4b1980('0x13')](_0x4b1980('0x4f'),_0x10b53d,JSON[_0x4b1980('0x33')](_0x3cbe21)),_0x3d4412(_0x3cbe21);})[_0x16c5c1('0x8')](function(_0x50b85e){const _0x3af2cb=_0x16c5c1;logger[_0x3af2cb('0x30')](_0x3af2cb('0x4f'),_0x50b85e[_0x3af2cb('0x2f')],_0x10b53d),_0x3822b7(_0x4af7c7[_0x3af2cb('0x30')](0x1f4,_0x50b85e[_0x3af2cb('0x2f')]));});});},exports[_0x5482b3('0x3b')]=function(_0x23b8ae){const _0x3f9a17=this;return new Promise(function(_0xe21d0f,_0x3ec440){const _0x220679=a189_0x43f7,_0x55e5f0={'body':_0x23b8ae['body'],'channel':'fax'};let _0x38d455=[],_0x229be4=[];const _0x11e109={};return db[_0x220679('0x49')]['describe']()['then'](function(_0x3c4b64){const _0x2b176d=_0x220679;if(!_0x3c4b64)throw new ValidationError(_0x2b176d('0x47'));_0x38d455=_[_0x2b176d('0x39')](_['keys'](_0x3c4b64),[_0x2b176d('0x48'),'updatedAt']),_0x229be4=_[_0x2b176d('0x39')](_[_0x2b176d('0x2c')](_0x3c4b64),[_0x2b176d('0x48'),_0x2b176d('0x4'),_0x2b176d('0x4c'),_0x2b176d('0x37')]);_0x23b8ae['body']['id']&&delete _0x23b8ae['body']['id'];if(_[_0x2b176d('0x1f')](_0x23b8ae['body'][_0x2b176d('0x28')]))throw new ValidationError(_0x2b176d('0x50'));if(_[_0x2b176d('0x1f')](_0x23b8ae[_0x2b176d('0x18')][_0x2b176d('0x18')])||_0x23b8ae['body'][_0x2b176d('0x18')]==='')throw new ValidationError(_0x2b176d('0x4d'));if(_[_0x2b176d('0x1f')](_0x23b8ae['body'][_0x2b176d('0x40')]))throw new ValidationError(_0x2b176d('0x36')+_0x229be4);if(!_[_0x2b176d('0x38')](_0x229be4,_0x23b8ae[_0x2b176d('0x18')][_0x2b176d('0x40')]))throw new ValidationError(_0x2b176d('0x20')+_0x229be4);_0x11e109[_0x23b8ae['body'][_0x2b176d('0x40')]]=_0x23b8ae[_0x2b176d('0x18')][_0x2b176d('0x28')];})['then'](function(){const _0x4f1874=_0x220679;return db[_0x4f1874('0xa')][_0x4f1874('0x11')]({'where':{'id':_0x23b8ae['account']['id']},'include':[{'model':db[_0x4f1874('0x43')],'as':_0x4f1874('0xd'),'include':[{'model':db[_0x4f1874('0x49')],'as':_0x4f1874('0xf'),'where':_0x11e109,'limit':0x1,'order':[[_0x4f1874('0x4'),_0x4f1874('0x21')]]}]},{'model':db[_0x4f1874('0x2a')],'as':_0x4f1874('0x9')}]});})[_0x220679('0x10')](function(_0x34b65d){const _0x1ae9b0=_0x220679;if(_0x34b65d&&_0x34b65d[_0x1ae9b0('0xd')]){const _0x11d686=_0x34b65d[_0x1ae9b0('0x45')]({'plain':!![]});_0x55e5f0[_0x1ae9b0('0x2d')]=_0x11d686,_0x55e5f0[_0x1ae9b0('0x1e')]=_0x11d686[_0x1ae9b0('0x9')],_0x55e5f0[_0x1ae9b0('0x3d')]=_0x11d686[_0x1ae9b0('0xd')],_0x55e5f0[_0x1ae9b0('0x1e')]=_[_0x1ae9b0('0x15')](_0x55e5f0[_0x1ae9b0('0x1e')],['priority'],[_0x1ae9b0('0x29')]);_0x55e5f0[_0x1ae9b0('0x2d')][_0x1ae9b0('0x9')]&&delete _0x55e5f0['account'][_0x1ae9b0('0x9')];if(_0x55e5f0[_0x1ae9b0('0x2d')]['List']&&_0x55e5f0['account'][_0x1ae9b0('0xd')][_0x1ae9b0('0xf')][_0x1ae9b0('0x17')])return _0x55e5f0[_0x1ae9b0('0x2d')]['List'][_0x1ae9b0('0xf')][0x0];const _0x32d187=_[_0x1ae9b0('0x3a')](_0x23b8ae[_0x1ae9b0('0x18')],{'firstName':_0x23b8ae['body']['from'],'ListId':_0x11d686[_0x1ae9b0('0x37')]});return _0x32d187[_0x23b8ae[_0x1ae9b0('0x18')][_0x1ae9b0('0x40')]]=_0x23b8ae[_0x1ae9b0('0x18')][_0x1ae9b0('0x28')],db['CmContact'][_0x1ae9b0('0xb')](_0x32d187,{'fields':_0x38d455,'raw':!![]});}})['then'](function(_0x1cc832){const _0x180721=_0x220679;_0x55e5f0[_0x180721('0x3c')]=_0x1cc832;if(_0x1cc832){const _0x58ecf6={'ContactId':_0x1cc832['id'],'FaxAccountId':_0x23b8ae[_0x180721('0x2d')]['id'],'fax':_0x1cc832['fax']};return db[_0x180721('0x42')][_0x180721('0x11')]({'where':{'ContactId':_0x1cc832['id'],'closed':![],'FaxAccountId':_0x23b8ae['account']['id']}})[_0x180721('0x10')](function(_0xf2ecce){const _0x3282d5=_0x180721;if(_0xf2ecce)return[_0xf2ecce,![]];return db[_0x3282d5('0x42')][_0x3282d5('0xb')](_0x58ecf6)[_0x3282d5('0x10')](function(_0x5dadbb){return[_0x5dadbb,!![]];});});}else throw new Error(_0x180721('0x2e'));})[_0x220679('0x10')](function([_0x18c931,_0xd0e0cb]){const _0x5d985a=_0x220679,_0x2d47a8=_0x18c931[_0x5d985a('0x45')]({'plain':!![]});return _0xd0e0cb?(_0x55e5f0['account']['autoclose']&&_0x55e5f0[_0x5d985a('0x1e')]['push']({'id':0x0,'priority':_0x55e5f0[_0x5d985a('0x1e')]['length']+0x1,'app':_0x5d985a('0x35'),'appdata':'unmanaged','interval':_0x5d985a('0x16')}),_0x2d47a8['created']=!![]):_0x2d47a8['created']=![],_0x55e5f0[_0x5d985a('0x19')]=_0x2d47a8,db['FaxMessage']['create']({'body':_0x23b8ae['body'][_0x5d985a('0x18')],'FaxAccountId':_0x23b8ae[_0x5d985a('0x2d')]['id'],'FaxInteractionId':_0x18c931['id'],'direction':'in','ContactId':_0x18c931[_0x5d985a('0x31')],'AttachmentId':_0x23b8ae[_0x5d985a('0x18')]['AttachmentId']});})[_0x220679('0x10')](function(_0x3b8b2f){const _0x2dad90=_0x220679;_0x55e5f0['message']=_0x3b8b2f;if(_0x55e5f0['interaction'][_0x2dad90('0xe')])return db[_0x2dad90('0x4b')][_0x2dad90('0x11')]({'attributes':['id',_0x2dad90('0x3f')],'where':{'id':_0x55e5f0['interaction'][_0x2dad90('0xe')]}})[_0x2dad90('0x10')](function(_0x35e746){const _0x1b3b1a=_0x2dad90;return _0x35e746&&_0x55e5f0[_0x1b3b1a('0x1e')][_0x1b3b1a('0x1a')]({'id':0x0,'priority':0x0,'app':_0x1b3b1a('0x34'),'appdata':_0x35e746[_0x1b3b1a('0x3f')]+','+(_0x55e5f0[_0x1b3b1a('0x2d')][_0x1b3b1a('0x2b')]||0xa),'interval':_0x1b3b1a('0x16')}),respondWithRpcPromise(_0x1b3b1a('0x7'),_0x1b3b1a('0x4a'),_0x55e5f0);});return respondWithRpcPromise(_0x2dad90('0x7'),'startRouting',_0x55e5f0);})['then'](function(_0x372a70){_0xe21d0f(_0x372a70);})['catch'](function(_0x2d665d){const _0x19f5b1=_0x220679;_0x3ec440(_0x3f9a17[_0x19f5b1('0x30')](0x1f4,_0x2d665d[_0x19f5b1('0x2f')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index bb7fda8..5a11a59 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a190_0x307b=['remove','emit','update','save','faxAccount:','./faxAccount.events'];(function(_0x22cd34,_0x307be4){const _0x46dcd5=function(_0x3cfe07){while(--_0x3cfe07){_0x22cd34['push'](_0x22cd34['shift']());}};_0x46dcd5(++_0x307be4);}(a190_0x307b,0x161));const a190_0x46dc=function(_0x22cd34,_0x307be4){_0x22cd34=_0x22cd34-0x0;let _0x46dcd5=a190_0x307b[_0x22cd34];return _0x46dcd5;};const _0xce234e=a190_0x46dc;'use strict';const FaxAccountEvents=require(_0xce234e('0x0')),events=[_0xce234e('0x4'),_0xce234e('0x1'),_0xce234e('0x3')];function createListener(_0x3cfe07,_0x47f38f){return function(_0x18a5f2){const _0x502afe=a190_0x46dc;_0x47f38f[_0x502afe('0x2')](_0x3cfe07,_0x18a5f2);};}exports['register']=function(_0x247a9c){const _0x37b534=_0xce234e;for(let _0x433600=0x0,_0x322bb5=events['length'];_0x433600<_0x322bb5;_0x433600++){const _0x388c8e=events[_0x433600],_0x4b8f98=createListener(_0x37b534('0x5')+_0x388c8e,_0x247a9c);FaxAccountEvents['on'](_0x388c8e,_0x4b8f98);}}; \ No newline at end of file +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 diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index 4ec5c5f..9662eef 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a191_0x5be6=['/:id/applications','getMessages','addAgents','updateAccountApplications','delete','/:id','getApplications','addDisposition','removeAnswers','/:id/messages','removeDispositions','isAuthenticated','/:id/interactions','getInteractions','/addaccountapplications','getAnswers','express','Router','show','/:id/dispositions','update','index','./faxAccount.controller','create','send','getAgents','removeAgents','/:id/send','/:id/canned_answers','addAnswer','post','addInteraction','../../components/auth/service','destroy','/:id/users','addAccountApplications','exports','get'];(function(_0x2cfd22,_0x5be6f2){const _0x489244=function(_0x31439c){while(--_0x31439c){_0x2cfd22['push'](_0x2cfd22['shift']());}};_0x489244(++_0x5be6f2);}(a191_0x5be6,0x19c));const a191_0x4892=function(_0x2cfd22,_0x5be6f2){_0x2cfd22=_0x2cfd22-0x0;let _0x489244=a191_0x5be6[_0x2cfd22];return _0x489244;};const _0x548b66=a191_0x4892;'use strict';const express=require(_0x548b66('0x16')),router=express[_0x548b66('0x17')](),auth=require(_0x548b66('0x0')),controller=require(_0x548b66('0x1c'));router['get']('/',auth[_0x548b66('0x11')](),controller[_0x548b66('0x1b')]),router[_0x548b66('0x5')]('/describe',auth[_0x548b66('0x11')](),controller['describe']),router[_0x548b66('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x548b66('0x18')]),router[_0x548b66('0x5')]('/:id/dispositions',auth['isAuthenticated'](),controller['getDispositions']),router[_0x548b66('0x5')]('/:id/canned_answers',auth[_0x548b66('0x11')](),controller[_0x548b66('0x15')]),router[_0x548b66('0x5')](_0x548b66('0x12'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x13')]),router['get']('/:id/applications',auth[_0x548b66('0x11')](),controller[_0x548b66('0xc')]),router[_0x548b66('0x5')](_0x548b66('0xf'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x7')]),router[_0x548b66('0x5')](_0x548b66('0x2'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x1f')]),router[_0x548b66('0x24')]('/',auth['isAuthenticated'](),controller[_0x548b66('0x1d')]),router[_0x548b66('0x24')](_0x548b66('0x19'),auth['isAuthenticated'](),controller[_0x548b66('0xd')]),router[_0x548b66('0x24')](_0x548b66('0x22'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x23')]),router[_0x548b66('0x24')]('/:id/interactions',auth[_0x548b66('0x11')](),controller[_0x548b66('0x25')]),router['post'](_0x548b66('0x6'),auth[_0x548b66('0x11')](),controller['addApplications']),router['post'](_0x548b66('0x14'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x3')]),router[_0x548b66('0x24')]('/updateaccountapplications',auth[_0x548b66('0x11')](),controller[_0x548b66('0x9')]),router['post'](_0x548b66('0x21'),auth['isAuthenticated'](),controller[_0x548b66('0x1e')]),router[_0x548b66('0x24')](_0x548b66('0x2'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x8')]),router['put']('/:id',auth[_0x548b66('0x11')](),controller[_0x548b66('0x1a')]),router['delete'](_0x548b66('0xb'),auth['isAuthenticated'](),controller[_0x548b66('0x1')]),router[_0x548b66('0xa')](_0x548b66('0x19'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x10')]),router[_0x548b66('0xa')](_0x548b66('0x22'),auth[_0x548b66('0x11')](),controller[_0x548b66('0xe')]),router['delete'](_0x548b66('0x2'),auth[_0x548b66('0x11')](),controller[_0x548b66('0x20')]),module[_0x548b66('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index bd66787..30faa76 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a192_0x72de=['sequelize','STRING','INTEGER','*,*,*,*'];(function(_0x1a34c8,_0x72defa){const _0xaebd7d=function(_0x3a1be6){while(--_0x3a1be6){_0x1a34c8['push'](_0x1a34c8['shift']());}};_0xaebd7d(++_0x72defa);}(a192_0x72de,0xc2));const a192_0xaebd=function(_0x1a34c8,_0x72defa){_0x1a34c8=_0x1a34c8-0x0;let _0xaebd7d=a192_0x72de[_0x1a34c8];return _0xaebd7d;};const _0x358fbc=a192_0xaebd;'use strict';const Sequelize=require(_0x358fbc('0x2'));module['exports']={'priority':{'type':Sequelize[_0x358fbc('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x358fbc('0x3')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x358fbc('0x3')]},'interval':{'type':Sequelize[_0x358fbc('0x3')],'defaultValue':_0x358fbc('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index 8fc9831..1f29dc0 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a193_0x4f17=['findAll','pick','include','filter','includeAll','findOne','limit','fields','order','end','attributes','filters','show','where','../../components/parsers/qs','error','like','VIRTUAL','rows','length','json','model','merge','send','query','offset','create','sort','count','sequelize','then','stack','undefined','index','catch','update','api','lodash','../../config/logger','options','params','rawAttributes','body','map','status','FaxApplication','type','name','sendStatus','Content-Range','intersection','../../mysqldb','key','destroy','keys'];(function(_0x1b080b,_0x4f1751){const _0x1d8a2d=function(_0x36908f){while(--_0x36908f){_0x1b080b['push'](_0x1b080b['shift']());}};_0x1d8a2d(++_0x4f1751);}(a193_0x4f17,0x12b));const a193_0x1d8a=function(_0x1b080b,_0x4f1751){_0x1b080b=_0x1b080b-0x0;let _0x1d8a2d=a193_0x4f17[_0x1b080b];return _0x1d8a2d;};const _0x32fbe6=a193_0x1d8a;'use strict';const _=require(_0x32fbe6('0xd')),qs=require(_0x32fbe6('0x2d')),logger=require(_0x32fbe6('0xe'))(_0x32fbe6('0xc')),db=require(_0x32fbe6('0x1b'))['db'],{Op}=require(_0x32fbe6('0x5'));function respondWithResult(_0x36908f,_0x5a7827){return _0x5a7827=_0x5a7827||0xc8,function(_0x1e7c24){const _0xcadb48=a193_0x1d8a;if(_0x1e7c24)return _0x36908f[_0xcadb48('0x14')](_0x5a7827)[_0xcadb48('0x33')](_0x1e7c24);};}function respondWithFilteredResult(_0x1a2a32,_0xd5e435){return function(_0x1c884f){const _0x4df922=a193_0x1d8a;if(_0x1c884f){const _0x29cf09=_0x1c884f[_0x4df922('0x4')],_0x44ebe0=_0xd5e435[_0x4df922('0x1')];let _0x1b558b=_0xd5e435[_0x4df922('0x1')]+_0xd5e435[_0x4df922('0x25')],_0x2e7426;return _0x1b558b>=_0x29cf09?(_0x1b558b=_0x29cf09,_0x2e7426=0xc8):_0x2e7426=0xce,_0x1a2a32[_0x4df922('0x14')](_0x2e7426),_0x1a2a32['set'](_0x4df922('0x19'),_0x44ebe0+'-'+_0x1b558b+'/'+_0x29cf09)[_0x4df922('0x33')](_0x1c884f);}return null;};}function saveUpdates(_0x208700){return function(_0x4f89a9){if(_0x4f89a9)return _0x4f89a9['update'](_0x208700)['then'](function(_0x407258){return _0x407258;});return null;};}function removeEntity(_0x331cd6){return function(_0x408a34){const _0x209069=a193_0x1d8a;if(_0x408a34)return _0x408a34[_0x209069('0x1d')]()[_0x209069('0x6')](function(){const _0x533133=_0x209069;_0x331cd6[_0x533133('0x14')](0xcc)[_0x533133('0x28')]();});};}function handleEntityNotFound(_0xd1c029){return function(_0x43bb63){const _0x5378fc=a193_0x1d8a;return!_0x43bb63&&_0xd1c029[_0x5378fc('0x18')](0x194),_0x43bb63;};}function handleError(_0x13cd0a,_0x1c7d57){return _0x1c7d57=_0x1c7d57||0x1f4,function(_0x10a41b){const _0x5a299f=a193_0x1d8a;logger[_0x5a299f('0x2e')](_0x10a41b[_0x5a299f('0x7')]),_0x10a41b[_0x5a299f('0x17')]&&delete _0x10a41b[_0x5a299f('0x17')],_0x13cd0a[_0x5a299f('0x14')](_0x1c7d57)[_0x5a299f('0x36')](_0x10a41b);};}exports[_0x32fbe6('0x9')]=function(_0x3abf8d,_0x15143c){const _0x8b18bd=_0x32fbe6;let _0x13d244={};const _0x29d00d={},_0x3e1dcf={'count':0x0,'rows':[]},_0x4addda=_[_0x8b18bd('0x13')](db[_0x8b18bd('0x15')][_0x8b18bd('0x11')],function(_0x4503b3){const _0x2d5da8=_0x8b18bd;return{'name':_0x4503b3['fieldName'],'type':_0x4503b3[_0x2d5da8('0x16')][_0x2d5da8('0x1c')]};});_0x29d00d['model']=_[_0x8b18bd('0x13')](_0x4addda,_0x8b18bd('0x17')),_0x29d00d[_0x8b18bd('0x0')]=_['keys'](_0x3abf8d[_0x8b18bd('0x0')]),_0x29d00d[_0x8b18bd('0x2a')]=_['intersection'](_0x29d00d[_0x8b18bd('0x34')],_0x29d00d[_0x8b18bd('0x0')]),_0x13d244[_0x8b18bd('0x29')]=_[_0x8b18bd('0x1a')](_0x29d00d[_0x8b18bd('0x34')],qs[_0x8b18bd('0x26')](_0x3abf8d['query'][_0x8b18bd('0x26')])),_0x13d244[_0x8b18bd('0x29')]=_0x13d244[_0x8b18bd('0x29')][_0x8b18bd('0x32')]?_0x13d244['attributes']:_0x29d00d['model'];typeof _0x3abf8d[_0x8b18bd('0x0')]['nolimit']===_0x8b18bd('0x8')&&(_0x13d244[_0x8b18bd('0x25')]=qs[_0x8b18bd('0x25')](_0x3abf8d['query']['limit']),_0x13d244['offset']=qs['offset'](_0x3abf8d[_0x8b18bd('0x0')][_0x8b18bd('0x1')]));_0x13d244[_0x8b18bd('0x27')]=qs['sort'](_0x3abf8d[_0x8b18bd('0x0')][_0x8b18bd('0x3')]),_0x13d244[_0x8b18bd('0x2c')]=qs[_0x8b18bd('0x2a')](_[_0x8b18bd('0x20')](_0x3abf8d[_0x8b18bd('0x0')],_0x29d00d[_0x8b18bd('0x2a')]),_0x4addda);_0x3abf8d[_0x8b18bd('0x0')][_0x8b18bd('0x22')]&&(_0x13d244[_0x8b18bd('0x2c')]=_[_0x8b18bd('0x35')](_0x13d244[_0x8b18bd('0x2c')],{[Op['or']]:_[_0x8b18bd('0x13')](_0x4addda,function(_0x5136b2){const _0x5d6923=_0x8b18bd;if(_0x5136b2['type']!==_0x5d6923('0x30')){const _0x4ef633={};return _0x4ef633[_0x5136b2[_0x5d6923('0x17')]]={[Op[_0x5d6923('0x2f')]]:'%'+_0x3abf8d[_0x5d6923('0x0')][_0x5d6923('0x22')]+'%'},_0x4ef633;}})}));_0x13d244=_[_0x8b18bd('0x35')]({},_0x13d244,_0x3abf8d[_0x8b18bd('0xf')]);const _0x401288={'where':_0x13d244[_0x8b18bd('0x2c')]};return db[_0x8b18bd('0x15')][_0x8b18bd('0x4')](_0x401288)[_0x8b18bd('0x6')](function(_0xe976b5){const _0x2d3fd3=_0x8b18bd;return _0x3e1dcf[_0x2d3fd3('0x4')]=_0xe976b5,_0x3abf8d['query'][_0x2d3fd3('0x23')]&&(_0x13d244[_0x2d3fd3('0x21')]=[{'all':!![]}]),db[_0x2d3fd3('0x15')][_0x2d3fd3('0x1f')](_0x13d244);})[_0x8b18bd('0x6')](function(_0x436fdd){const _0x125309=_0x8b18bd;return _0x3e1dcf[_0x125309('0x31')]=_0x436fdd,_0x3e1dcf;})[_0x8b18bd('0x6')](respondWithFilteredResult(_0x15143c,_0x13d244))[_0x8b18bd('0xa')](handleError(_0x15143c,null));},exports[_0x32fbe6('0x2b')]=function(_0x4cec72,_0x10ee10){const _0x2b7ed3=_0x32fbe6;let _0x2f7e2a={'raw':!![],'where':{'id':_0x4cec72['params']['id']}};const _0x509542={};return _0x509542[_0x2b7ed3('0x34')]=_['keys'](db[_0x2b7ed3('0x15')][_0x2b7ed3('0x11')]),_0x509542[_0x2b7ed3('0x0')]=_[_0x2b7ed3('0x1e')](_0x4cec72[_0x2b7ed3('0x0')]),_0x509542[_0x2b7ed3('0x2a')]=_[_0x2b7ed3('0x1a')](_0x509542[_0x2b7ed3('0x34')],_0x509542['query']),_0x2f7e2a[_0x2b7ed3('0x29')]=_['intersection'](_0x509542[_0x2b7ed3('0x34')],qs[_0x2b7ed3('0x26')](_0x4cec72['query'][_0x2b7ed3('0x26')])),_0x2f7e2a[_0x2b7ed3('0x29')]=_0x2f7e2a[_0x2b7ed3('0x29')][_0x2b7ed3('0x32')]?_0x2f7e2a[_0x2b7ed3('0x29')]:_0x509542['model'],_0x4cec72['query']['includeAll']&&(_0x2f7e2a[_0x2b7ed3('0x21')]=[{'all':!![]}]),_0x2f7e2a=_['merge']({},_0x2f7e2a,_0x4cec72[_0x2b7ed3('0xf')]),db['FaxApplication']['findOne'](_0x2f7e2a)[_0x2b7ed3('0x6')](handleEntityNotFound(_0x10ee10,null))[_0x2b7ed3('0x6')](respondWithResult(_0x10ee10,null))['catch'](handleError(_0x10ee10,null));},exports[_0x32fbe6('0x2')]=function(_0x48dc67,_0x45fec0){const _0x488b52=_0x32fbe6;return db[_0x488b52('0x15')][_0x488b52('0x2')](_0x48dc67[_0x488b52('0x12')],{})[_0x488b52('0x6')](respondWithResult(_0x45fec0,0xc9))[_0x488b52('0xa')](handleError(_0x45fec0,null));},exports[_0x32fbe6('0xb')]=function(_0x33d8c9,_0x39f0c9){const _0xa6e373=_0x32fbe6;return _0x33d8c9[_0xa6e373('0x12')]['id']&&delete _0x33d8c9[_0xa6e373('0x12')]['id'],db[_0xa6e373('0x15')][_0xa6e373('0x24')]({'where':{'id':_0x33d8c9[_0xa6e373('0x10')]['id']}})[_0xa6e373('0x6')](handleEntityNotFound(_0x39f0c9,null))['then'](saveUpdates(_0x33d8c9['body'],null))[_0xa6e373('0x6')](respondWithResult(_0x39f0c9,null))[_0xa6e373('0xa')](handleError(_0x39f0c9,null));},exports[_0x32fbe6('0x1d')]=function(_0x143afb,_0x2a26e0){const _0x5e1061=_0x32fbe6;return db[_0x5e1061('0x15')][_0x5e1061('0x24')]({'where':{'id':_0x143afb['params']['id']}})[_0x5e1061('0x6')](handleEntityNotFound(_0x2a26e0,null))[_0x5e1061('0x6')](removeEntity(_0x2a26e0,null))['catch'](handleError(_0x2a26e0,null));}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index 9551aef..b18ad8c 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a194_0x3937=['./faxApplication.attributes','define','utf8mb4_unicode_ci','fax_applications','exports'];(function(_0x31b6e5,_0x393748){const _0x4da81d=function(_0x3bd6af){while(--_0x3bd6af){_0x31b6e5['push'](_0x31b6e5['shift']());}};_0x4da81d(++_0x393748);}(a194_0x3937,0xa3));const a194_0x4da8=function(_0x31b6e5,_0x393748){_0x31b6e5=_0x31b6e5-0x0;let _0x4da81d=a194_0x3937[_0x31b6e5];return _0x4da81d;};const _0x1cd5b1=a194_0x4da8;'use strict';const attributes=require(_0x1cd5b1('0x2'));module[_0x1cd5b1('0x1')]=function(_0x3bd6af){const _0x15bb8c=_0x1cd5b1,_0x3757a3=_0x3bd6af[_0x15bb8c('0x3')]('FaxApplication',attributes,{'tableName':_0x15bb8c('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x15bb8c('0x4')});return _0x3757a3;}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index d2a69ec..a93d31b 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a195_0x2df1=['error','rpc','options','update','attributes','catch','FaxApplication','limit','where','then','stringify','body','UpdateFaxApplication','message','../../mysqldb'];(function(_0x564fa4,_0x2df1fd){const _0x318325=function(_0x40cbdb){while(--_0x40cbdb){_0x564fa4['push'](_0x564fa4['shift']());}};_0x318325(++_0x2df1fd);}(a195_0x2df1,0x129));const a195_0x3183=function(_0x564fa4,_0x2df1fd){_0x564fa4=_0x564fa4-0x0;let _0x318325=a195_0x2df1[_0x564fa4];return _0x318325;};const _0x125cc4=a195_0x3183;'use strict';const db=require(_0x125cc4('0x2'))['db'],logger=require('../../config/logger')(_0x125cc4('0x4'));exports[_0x125cc4('0x0')]=function(_0x40cbdb){const _0x2bd186=this;return new Promise(function(_0x475fc7,_0x56ecda){const _0x2fb64d=a195_0x3183;return db[_0x2fb64d('0x9')][_0x2fb64d('0x6')](_0x40cbdb[_0x2fb64d('0xe')],{'raw':_0x40cbdb[_0x2fb64d('0x5')]?_0x40cbdb['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x40cbdb[_0x2fb64d('0x5')]?_0x40cbdb['options'][_0x2fb64d('0xb')]||null:null,'attributes':_0x40cbdb[_0x2fb64d('0x5')]?_0x40cbdb[_0x2fb64d('0x5')][_0x2fb64d('0x7')]||null:null,'limit':_0x40cbdb['options']?_0x40cbdb[_0x2fb64d('0x5')][_0x2fb64d('0xa')]||null:null})[_0x2fb64d('0xc')](function(_0x592104){const _0x111a64=_0x2fb64d;logger['info'](_0x111a64('0x0'),_0x40cbdb),logger['debug'](_0x111a64('0x0'),_0x40cbdb,JSON[_0x111a64('0xd')](_0x592104)),_0x475fc7(_0x592104);})[_0x2fb64d('0x8')](function(_0x47cab0){const _0x37c9f8=_0x2fb64d;logger['error'](_0x37c9f8('0x0'),_0x47cab0[_0x37c9f8('0x1')],_0x40cbdb),_0x56ecda(_0x2bd186[_0x37c9f8('0x3')](0x1f4,_0x47cab0[_0x37c9f8('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index cd5d37a..fce49c8 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a196_0x54e3=['create','destroy','./faxApplication.controller','post','show','delete','../../components/auth/service','update','put','express','/:id','isAuthenticated','get','exports'];(function(_0xbcb1fa,_0x54e394){const _0x1c662d=function(_0x44b5f2){while(--_0x44b5f2){_0xbcb1fa['push'](_0xbcb1fa['shift']());}};_0x1c662d(++_0x54e394);}(a196_0x54e3,0x94));const a196_0x1c66=function(_0xbcb1fa,_0x54e394){_0xbcb1fa=_0xbcb1fa-0x0;let _0x1c662d=a196_0x54e3[_0xbcb1fa];return _0x1c662d;};const _0x2ae9b3=a196_0x1c66;'use strict';const express=require(_0x2ae9b3('0x1')),router=express['Router'](),auth=require(_0x2ae9b3('0xc')),controller=require(_0x2ae9b3('0x8'));router[_0x2ae9b3('0x4')]('/',auth[_0x2ae9b3('0x3')](),controller['index']),router['get'](_0x2ae9b3('0x2'),auth[_0x2ae9b3('0x3')](),controller[_0x2ae9b3('0xa')]),router[_0x2ae9b3('0x9')]('/',auth[_0x2ae9b3('0x3')](),controller[_0x2ae9b3('0x6')]),router[_0x2ae9b3('0x0')](_0x2ae9b3('0x2'),auth[_0x2ae9b3('0x3')](),controller[_0x2ae9b3('0xd')]),router[_0x2ae9b3('0xb')](_0x2ae9b3('0x2'),auth[_0x2ae9b3('0x3')](),controller[_0x2ae9b3('0x7')]),module[_0x2ae9b3('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index d3ab744..71bc4f6 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a197_0x4708=['sequelize','out','DATE','BOOLEAN','ENUM','STRING'];(function(_0x87dc1f,_0x4708f4){const _0x58ab62=function(_0x63e1ea){while(--_0x63e1ea){_0x87dc1f['push'](_0x87dc1f['shift']());}};_0x58ab62(++_0x4708f4);}(a197_0x4708,0x77));const a197_0x58ab=function(_0x87dc1f,_0x4708f4){_0x87dc1f=_0x87dc1f-0x0;let _0x58ab62=a197_0x4708[_0x87dc1f];return _0x58ab62;};const _0x8108ef=a197_0x58ab;'use strict';const Sequelize=require(_0x8108ef('0x1'));module['exports']={'closed':{'type':Sequelize[_0x8108ef('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x8108ef('0x3')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x8108ef('0x0')]},'thirdDisposition':{'type':Sequelize[_0x8108ef('0x0')]},'note':{'type':Sequelize[_0x8108ef('0x0')]},'read1stAt':{'type':Sequelize[_0x8108ef('0x3')]},'fax':{'type':Sequelize[_0x8108ef('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x8108ef('0x5')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x8108ef('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x8108ef('0x5')]('in',_0x8108ef('0x2')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.controller.js b/server/api/faxInteraction/faxInteraction.controller.js index 1d420d1..9f0645e 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a198_0x4d38=['Account.key','split','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','catch','i.fax\x20LIKE\x20?','compact','groupBy','../../components/parsers/qs','setTags','sequelize','conditions','nolimit','`\x20>\x200','order','gte','users','api','$lte','length','limit','isNumeric','where','i.FaxAccountId\x20IS\x20NULL','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','resolve','end','GROUP_CONCAT(DISTINCT\x20t.id)','squel','include','Content-Range','fax_messages','forEach','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','operator','keys','findOne','i.FaxAccountId\x20IN\x20?','sendStatus','destroy','Attachment','ui.FaxInteractionId\x20IN\x20?','undefined','attachments','i.id\x20LIKE\x20?','u.id','addMessage','err','ui.FaxInteractionId','findAll','json','\x27\x27\x27\x27','user_has_fax_interactions','createWriteStream','zip-dir','send','count','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','FaxInteraction','name','t.id\x20IN\x20?','download','from','having','status','u.id\x20=\x20ui.UserId','create','user','../../config/environment','Contact.phone','like','fax_accounts','a.mandatoryDisposition','sqlOperator','getFullTextValue','union','o.fullname','params','tmp','then','attributes','toString','path','ids','options','left_join','index','buildExpression','text','YYYY-MM-DD\x20HH:mm:ss','Messages','./faxInteraction.socket','o.internal','QueryTypes','filter','merge','../../mysqldb','../../components/parsers/advancedSearch','register','getMessages','c.fax','query','parseSearch','update','fax_interactions','tag','all','isEmpty','../../config/logger','mkdirSync','fields','Contact.firstName','unix','tools_tags','root','intersection','offset','t.id\x20=\x20it.TagId','Account.mandatoryDisposition','start','sort','rawAttributes','field','c.mobile','get','keyBy','replace','SELECT','o.id\x20=\x20i.UserId','parse','FaxInteractionId','DESC','FaxAccountId','pick','rimraf','Owner.fullname','filters','$gte','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','format','includeAll','`\x20=\x200','omit','color','type','read','model','group','Tag','lodash','UserId','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','createdAt','Contact','User','search','TagIds','rows','push','server','basename','value','a.key','$substring','i.FaxAccountId\x20IS\x20NOT\x20NULL','util','join','Users','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','c.firstName','select','find','addTags','a.id\x20=\x20i.FaxAccountId','body','isArray','unreadMessages','log','fullname','removeTags','map','faxInteractionTags:save','Contact.lastName','describe','pipe','Contact.mobile','Contact.fax','files','\x20=\x20?','FaxMessage','fax_interaction_has_tags','expr','some','fieldName'];(function(_0xc726d1,_0x4d38a3){const _0x1b5152=function(_0x447e9e){while(--_0x447e9e){_0xc726d1['push'](_0xc726d1['shift']());}};_0x1b5152(++_0x4d38a3);}(a198_0x4d38,0x92));const a198_0x1b51=function(_0xc726d1,_0x4d38a3){_0xc726d1=_0xc726d1-0x0;let _0x1b5152=a198_0x4d38[_0xc726d1];return _0x1b5152;};const _0x10dbaa=a198_0x1b51;'use strict';const rimraf=require(_0x10dbaa('0xb4')),zipdir=require(_0x10dbaa('0x64')),moment=require('moment'),util=require(_0x10dbaa('0x12')),path=require(_0x10dbaa('0x80')),fs=require('fs'),_=require(_0x10dbaa('0x2')),squel=require(_0x10dbaa('0x4a')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x10dbaa('0x36')),as=require(_0x10dbaa('0x8f')),logger=require(_0x10dbaa('0x9a'))(_0x10dbaa('0x3f')),config=require(_0x10dbaa('0x72')),db=require(_0x10dbaa('0x8e'))['db'],{Op}=require(_0x10dbaa('0x38'));require(_0x10dbaa('0x89'))[_0x10dbaa('0x90')](socket);function respondWithStatusCode(_0x447e9e,_0x248cb5){return _0x248cb5=_0x248cb5||0xcc,function(_0x31f9ad){const _0x25db1e=a198_0x1b51;if(_0x31f9ad)return _0x447e9e[_0x25db1e('0x54')](_0x248cb5);return _0x447e9e[_0x25db1e('0x6e')](_0x248cb5)[_0x25db1e('0x48')]();};}function respondWithResult(_0x4f0c24,_0x3a4024){return _0x3a4024=_0x3a4024||0xc8,function(_0x1ebe3a){const _0x10ca17=a198_0x1b51;if(_0x1ebe3a)return _0x4f0c24[_0x10ca17('0x6e')](_0x3a4024)[_0x10ca17('0x60')](_0x1ebe3a);};}function respondWithFilteredResult(_0x43d8b2,_0x11a6f4){return function(_0x395d22){const _0x390742=a198_0x1b51;if(_0x395d22){const _0x4e078a=_0x395d22[_0x390742('0x66')],_0x2419f5=_0x11a6f4[_0x390742('0xa2')];let _0x36912a=_0x11a6f4[_0x390742('0xa2')]+_0x11a6f4[_0x390742('0x42')],_0x27d679;return _0x36912a>=_0x4e078a?(_0x36912a=_0x4e078a,_0x27d679=0xc8):_0x27d679=0xce,_0x43d8b2[_0x390742('0x6e')](_0x27d679),_0x43d8b2['set'](_0x390742('0x4c'),_0x2419f5+'-'+_0x36912a+'/'+_0x4e078a)[_0x390742('0x60')](_0x395d22);}return null;};}function saveUpdates(_0x39547c){return function(_0x8a8f7c){const _0x3c2341=a198_0x1b51;if(_0x8a8f7c)return _0x8a8f7c[_0x3c2341('0x95')](_0x39547c)['then'](function(_0x5cf7f9){return _0x5cf7f9;});return null;};}function removeEntity(_0x4d7865){return function(_0x86306c){const _0x526ab5=a198_0x1b51;if(_0x86306c)return _0x86306c[_0x526ab5('0x55')]()[_0x526ab5('0x7d')](function(){const _0x36f921=_0x526ab5;_0x4d7865[_0x36f921('0x6e')](0xcc)['end']();});};}function handleEntityNotFound(_0xa17b8){return function(_0x426368){const _0x5ccbed=a198_0x1b51;return!_0x426368&&_0xa17b8[_0x5ccbed('0x54')](0x194),_0x426368;};}function handleError(_0x5af2cd,_0x5067c6){return _0x5067c6=_0x5067c6||0x1f4,function(_0x353f8c){const _0x55ff5f=a198_0x1b51;logger['error'](_0x353f8c['stack']),_0x353f8c[_0x55ff5f('0x69')]&&delete _0x353f8c[_0x55ff5f('0x69')],_0x5af2cd[_0x55ff5f('0x6e')](_0x5067c6)[_0x55ff5f('0x65')](_0x353f8c);};}function getInteractionUsers(_0x1007cd,_0x802097){return new Promise(function(_0x45ef8e,_0x59c493){const _0x5ecc5f=a198_0x1b51;try{_0x802097[_0x1007cd['id']]&&(_0x1007cd[_0x5ecc5f('0x14')]=_[_0x5ecc5f('0x21')](_0x802097[_0x1007cd['id']],function(_0x4f67fd){const _0x1a58de=_0x5ecc5f;return{'id':_0x4f67fd['id'],'fullname':_0x4f67fd[_0x1a58de('0x1f')]};}));}catch(_0x21dea2){_0x59c493(_0x21dea2);}_0x45ef8e(_0x1007cd);});}function getInteractionTags(_0x5486fb,_0x5d318a){return new Promise(function(_0x30c7d4,_0x452d0f){const _0x14c403=a198_0x1b51;try{_0x5486fb[_0x14c403('0x9')]&&(_0x5486fb['Tags']=[],_0x5486fb[_0x14c403('0x9')]['split'](',')['forEach'](function(_0x2c4a9c){const _0x4e8256=_0x14c403;_0x5486fb['Tags'][_0x4e8256('0xb')](_0x5d318a[_0x2c4a9c]);})),delete _0x5486fb[_0x14c403('0x9')];}catch(_0x2c11a2){_0x452d0f(_0x2c11a2);}_0x30c7d4(_0x5486fb);});}function updateFaxInteraction(_0x3850d4,_0x191603,_0x573940){return new Promise(function(_0x26af4e,_0x4453ca){const _0x3896ca=a198_0x1b51;return getInteractionUsers(_0x3850d4,_0x573940)[_0x3896ca('0x7d')](function(_0x94a23d){return getInteractionTags(_0x94a23d,_0x191603);})[_0x3896ca('0x7d')](function(_0x2149d2){_0x26af4e(_0x2149d2);})[_0x3896ca('0x32')](function(_0x2aaf82){_0x4453ca(_0x2aaf82);});});}exports[_0x10dbaa('0x84')]=function(_0xc821d5,_0x4bc130){const _0x3a80a3=_0x10dbaa,_0x11545b={},_0x2495c7={},_0xdf5283={'count':0x0,'rows':[]},_0x5df23d=_[_0x3a80a3('0x21')](db[_0x3a80a3('0x68')]['rawAttributes'],function(_0x438eb0){const _0x26a123=_0x3a80a3;return{'name':_0x438eb0[_0x26a123('0x2e')],'type':_0x438eb0['type']['key']};});_0x2495c7[_0x3a80a3('0xc0')]=_[_0x3a80a3('0x21')](_0x5df23d,_0x3a80a3('0x69')),_0x2495c7['query']=_[_0x3a80a3('0x51')](_0xc821d5[_0x3a80a3('0x93')]),_0x2495c7[_0x3a80a3('0xb6')]=_[_0x3a80a3('0xa1')](_0x2495c7[_0x3a80a3('0xc0')],_0x2495c7['query']),_0x11545b[_0x3a80a3('0x7e')]=_[_0x3a80a3('0xa1')](_0x2495c7[_0x3a80a3('0xc0')],qs[_0x3a80a3('0x9c')](_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x9c')])),_0x11545b[_0x3a80a3('0x7e')]=_0x11545b[_0x3a80a3('0x7e')][_0x3a80a3('0x41')]?_0x11545b[_0x3a80a3('0x7e')]:_0x2495c7['model'];typeof _0xc821d5['query'][_0x3a80a3('0x3a')]===_0x3a80a3('0x58')&&(_0x11545b[_0x3a80a3('0x42')]=qs[_0x3a80a3('0x42')](_0xc821d5['query'][_0x3a80a3('0x42')]),_0x11545b['offset']=qs['offset'](_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0xa2')]));_0x11545b[_0x3a80a3('0x3c')]=qs[_0x3a80a3('0xa6')](_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0xa6')]),_0x11545b['where']=qs[_0x3a80a3('0xb6')](_[_0x3a80a3('0xb3')](_0xc821d5['query'],_0x2495c7[_0x3a80a3('0xb6')]),_0x5df23d);let _0x4d5cf8=[];const _0x13d388=squel[_0x3a80a3('0x17')]()[_0x3a80a3('0xa8')]('id')[_0x3a80a3('0xa8')](_0x3a80a3('0x69'))[_0x3a80a3('0xa8')]('color')[_0x3a80a3('0x6c')](_0x3a80a3('0x9f')),_0x82ce38=squel[_0x3a80a3('0x17')]()[_0x3a80a3('0xa8')](_0x3a80a3('0x5b'))[_0x3a80a3('0xa8')]('u.fullname')[_0x3a80a3('0xa8')](_0x3a80a3('0x5e'))['from'](_0x3a80a3('0x62'),'ui')[_0x3a80a3('0x83')]('users','u',_0x3a80a3('0x6f')),_0xbef07a=squel['select']()[_0x3a80a3('0x6c')](_0x3a80a3('0x96'),'i')[_0x3a80a3('0x83')]('cm_contacts','c',_0x3a80a3('0x46'))['left_join'](_0x3a80a3('0x3e'),'o',_0x3a80a3('0xae'))[_0x3a80a3('0x83')](_0x3a80a3('0x75'),'a',_0x3a80a3('0x1a'))[_0x3a80a3('0x83')](_0x3a80a3('0x4d'),'me','me.FaxInteractionId\x20=\x20i.id')['left_join'](_0x3a80a3('0x2b'),'it','it.FaxInteractionId\x20=\x20i.id')[_0x3a80a3('0x83')](_0x3a80a3('0x9f'),'t',_0x3a80a3('0xa3')),_0x119051=squel[_0x3a80a3('0x2c')]();let _0x311e12=[];const _0x2d14cd=squel[_0x3a80a3('0x2c')]();let _0x1737d0;if(_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x8')]){_0x1737d0=as[_0x3a80a3('0x94')](_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x8')]);const _0x424243=_0x1737d0[_0x3a80a3('0x77')];for(let _0x52d9a6=0x0;_0x52d9a6<_0x1737d0[_0x3a80a3('0x39')][_0x3a80a3('0x41')];_0x52d9a6++){const _0x26eeb7=_0x1737d0['conditions'][_0x52d9a6],_0x2f91be='i';let _0xad75ac,_0xeff2b5=_[_0x3a80a3('0x18')](_0x5df23d,[_0x3a80a3('0x69'),_0x26eeb7[_0x3a80a3('0xa8')]]);if(!_0xeff2b5)switch(_0x26eeb7['field']){case _0x3a80a3('0x1d'):_0x26eeb7[_0x3a80a3('0xe')]==0x1?_0xbef07a['having']('`'+_0x26eeb7[_0x3a80a3('0xa8')]+_0x3a80a3('0xbb')):_0xbef07a[_0x3a80a3('0x6d')]('`'+_0x26eeb7[_0x3a80a3('0xa8')]+_0x3a80a3('0x3b'));break;case _0x3a80a3('0x6'):if(_0x26eeb7['operator']===_0x3a80a3('0x10')){if(_0x26eeb7['value']['split']('\x20')[_0x3a80a3('0x41')]>0x1)_0x119051[_0x424243](_0x3a80a3('0x4'),qs[_0x3a80a3('0x78')](_0x26eeb7[_0x3a80a3('0xe')]),null);else{const _0x78de8d='%'+_0x26eeb7['value']+'%';_0x119051[_0x424243]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x78de8d,_0x78de8d,_0x78de8d);}}else _0xeff2b5=_[_0x3a80a3('0x18')](_0x5df23d,[_0x3a80a3('0x69'),'ContactId']),_0x26eeb7[_0x3a80a3('0xa8')]='ContactId',_0xad75ac=as['buildExpression'](_0x2f91be,_0xeff2b5[_0x3a80a3('0xbe')],_0x26eeb7),_0x119051[_0x424243](_0xad75ac[_0x3a80a3('0x86')],_0xad75ac['value'][_0x3a80a3('0xa5')],_0xad75ac[_0x3a80a3('0xe')][_0x3a80a3('0x48')]);break;case _0x3a80a3('0x1'):{const _0x2019ce=_0x26eeb7[_0x3a80a3('0xe')]['split'](',')['map'](function(_0x4cb6c5){return Number(_0x4cb6c5);});_0x2019ce[_0x3a80a3('0x4e')](function(_0x612b64){const _0x4fd6d0=_0x3a80a3;_0x2d14cd['or'](_0x4fd6d0('0x31'),'%,'+_0x612b64+',%');}),_0x311e12=_[_0x3a80a3('0x79')](_0x311e12,_0x2019ce);}break;case _0x3a80a3('0x7'):_0x26eeb7[_0x3a80a3('0x50')]===_0x3a80a3('0x10')?_0x119051[_0x424243](_0x3a80a3('0x4f'),'%'+_0x26eeb7[_0x3a80a3('0xe')]+'%',null):(_0xeff2b5=_['find'](_0x5df23d,[_0x3a80a3('0x69'),_0x3a80a3('0x3')]),_0x26eeb7[_0x3a80a3('0xa8')]=_0x3a80a3('0x3'),_0xad75ac=as['buildExpression'](_0x2f91be,_0xeff2b5[_0x3a80a3('0xbe')],_0x26eeb7),_0x119051[_0x424243](_0xad75ac[_0x3a80a3('0x86')],_0xad75ac['value']['start'],_0xad75ac[_0x3a80a3('0xe')][_0x3a80a3('0x48')]));break;case _0x3a80a3('0x1b'):_0xad75ac=as[_0x3a80a3('0x85')]('me',null,_0x26eeb7),_0x119051[_0x424243](_0xad75ac[_0x3a80a3('0x86')],_0xad75ac[_0x3a80a3('0xe')][_0x3a80a3('0xa5')],_0xad75ac[_0x3a80a3('0xe')][_0x3a80a3('0x48')]);break;}else _0xad75ac=as[_0x3a80a3('0x85')](_0x2f91be,_0xeff2b5['type'],_0x26eeb7),_0x119051[_0x424243](_0xad75ac[_0x3a80a3('0x86')],_0xad75ac[_0x3a80a3('0xe')][_0x3a80a3('0xa5')],_0xad75ac[_0x3a80a3('0xe')]['end']);}}else{const _0x1ca719=_(_0xc821d5[_0x3a80a3('0x93')])[_0x3a80a3('0x51')]()[_0x3a80a3('0x21')](function(_0x87ad61){const _0x4d1c9b=_0x3a80a3;return _[_0x4d1c9b('0x2d')](_0x5df23d,[_0x4d1c9b('0x69'),_0x87ad61])?_0x87ad61:undefined;})[_0x3a80a3('0x34')]()[_0x3a80a3('0xe')]();!_[_0x3a80a3('0x99')](_0x1ca719)&&_0x1ca719['forEach'](function(_0x3f8085){const _0xd78a38=_0x3a80a3;if(_0x3f8085===_0xd78a38('0xb2'))_0xbef07a[_0xd78a38('0x44')](_0xd78a38('0x53'),[]['concat'](_0xc821d5[_0xd78a38('0x93')][_0x3f8085]));else{if(_0x3f8085===_0xd78a38('0x5')){const _0x59456e=JSON['parse'](_0xc821d5[_0xd78a38('0x93')][_0x3f8085])['$gte'],_0x38d935=JSON[_0xd78a38('0xaf')](_0xc821d5[_0xd78a38('0x93')][_0x3f8085])[_0xd78a38('0x40')];_0xbef07a['where'](_0xd78a38('0x67'),_0x59456e,_0x38d935);}else _0xc821d5[_0xd78a38('0x93')][_0x3f8085]==='null'?_0xbef07a[_0xd78a38('0x44')]('i.'+_0x3f8085+'\x20IS\x20NULL'):_0xbef07a[_0xd78a38('0x44')]('i.'+_0x3f8085+_0xd78a38('0x29'),_0xc821d5['query'][_0x3f8085]);}});_0xc821d5['query']['read']&&(_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0xbf')]==0x1?_0xbef07a['having']('`unreadMessages`\x20=\x200'):_0xbef07a[_0x3a80a3('0x6d')]('`unreadMessages`\x20>\x200'));_0xc821d5['query']['tag']&&(_0x311e12=_[_0x3a80a3('0x1c')](_0xc821d5[_0x3a80a3('0x93')]['tag'])?_0xc821d5['query'][_0x3a80a3('0x97')]:new Array(_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x97')]),_0x311e12[_0x3a80a3('0x4e')](function(_0xc82266){const _0x55ae40=_0x3a80a3;_0x2d14cd['or'](_0x55ae40('0x31'),'%,'+_0xc82266+',%');}));if(_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x8c')]){const _0x34df9f=_0xc821d5[_0x3a80a3('0x93')][_0x3a80a3('0x8c')][_0x3a80a3('0xac')]('\x5c','\x5c\x5c')[_0x3a80a3('0xac')]('\x27\x27',_0x3a80a3('0x61'));qs[_0x3a80a3('0x43')](_0x34df9f)&&_0x119051['or'](_0x3a80a3('0x5a'),_0x34df9f+'%')['or'](_0x3a80a3('0x33'),_0x34df9f+'%'),_0x119051['or'](_0x3a80a3('0x15'),_0x34df9f+'%');}}_0xbef07a[_0x3a80a3('0x44')](_0x119051),_0xbef07a[_0x3a80a3('0x0')]('i.id');let _0x54104b={'type':db['Sequelize'][_0x3a80a3('0x8b')][_0x3a80a3('0xad')],'raw':!![]};const _0x3a1ddd=_0xbef07a['clone']();_0x3a1ddd[_0x3a80a3('0xa8')]('i.id'),_0x3a1ddd[_0x3a80a3('0xa8')](_0x3a80a3('0xb8'),_0x3a80a3('0x1d')),_0x11545b[_0x3a80a3('0x3c')]&&_0x11545b[_0x3a80a3('0x3c')][_0x3a80a3('0x4e')](function(_0x4fa0f9){const _0x41ab84=_0x3a80a3;_0xbef07a['order']('i.'+_0x4fa0f9[0x0],_0x4fa0f9[0x1]===_0x41ab84('0xb1')?![]:!![]);}),!_['isEmpty'](_0x311e12)&&(_0xbef07a[_0x3a80a3('0x6d')](_0x2d14cd),_0x3a1ddd[_0x3a80a3('0x44')](_0x3a80a3('0x6a'),_0x311e12)),Promise['resolve']()[_0x3a80a3('0x7d')](function(){const _0x5dea30=_0x3a80a3;if(!_0x1737d0){if(_0xc821d5['query']['FaxAccountId']||_0xc821d5[_0x5dea30('0x93')]['journey'])return;_0x3a1ddd['where'](_0x5dea30('0x11')),_0xbef07a[_0x5dea30('0x44')](_0x5dea30('0x11'));return;}return _0xc821d5[_0x5dea30('0x71')]['getFaxAccounts']({'attributes':['id'],'raw':!![]})[_0x5dea30('0x7d')](function(_0x5bc939){const _0x57952d=_0x5dea30;_['isEmpty'](_0x5bc939)?(_0x3a1ddd[_0x57952d('0x44')](_0x57952d('0x45')),_0xbef07a['where'](_0x57952d('0x45'))):(_0x3a1ddd[_0x57952d('0x44')](_0x57952d('0x53'),_['map'](_0x5bc939,'id')),_0xbef07a[_0x57952d('0x44')](_0x57952d('0x53'),_[_0x57952d('0x21')](_0x5bc939,'id')));});})[_0x3a80a3('0x7d')](function(){const _0x3a8f58=_0x3a80a3;db[_0x3a8f58('0x38')][_0x3a8f58('0x93')](_0x3a1ddd[_0x3a8f58('0x7f')](),_0x54104b)['then'](function(_0x24be1a){const _0x47f53d=_0x3a8f58;_0xdf5283['count']=_0x24be1a['length'];if(_0xdf5283[_0x47f53d('0x66')]===0x0)return[];return db[_0x47f53d('0x38')][_0x47f53d('0x93')](_0x13d388[_0x47f53d('0x7f')](),_0x54104b)[_0x47f53d('0x7d')](function(_0x108a04){const _0x377e0c=_0x47f53d;_0x4d5cf8=_[_0x377e0c('0xab')](_0x108a04,'id'),_0x54104b=_['merge'](_0x54104b,{'model':db[_0x377e0c('0x68')],'mapToModel':!![],'raw':!![],'nest':!![]});_0xc821d5[_0x377e0c('0x93')]['fields']?_0x11545b['attributes'][_0x377e0c('0x4e')](function(_0x1f34ea){const _0x237d3b=_0x377e0c;_0xbef07a[_0x237d3b('0xa8')]('i.'+_0x1f34ea);}):(_0xbef07a['field'](_0x377e0c('0xb8'),_0x377e0c('0x1d')),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0xf'),_0x377e0c('0x2f')),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0x76'),_0x377e0c('0xa4')),_0xbef07a[_0x377e0c('0xa8')]('i.*'),_0xbef07a['field'](_0x377e0c('0x16'),_0x377e0c('0x9d')),_0xbef07a['field']('c.lastName',_0x377e0c('0x23')),_0xbef07a['field']('c.email','Contact.email'),_0xbef07a['field']('c.phone',_0x377e0c('0x73')),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0xa9'),_0x377e0c('0x26')),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0x92'),_0x377e0c('0x27')),_0xbef07a['field'](_0x377e0c('0x7a'),_0x377e0c('0xb5')),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0x8a'),'Owner.internal'),_0xbef07a[_0x377e0c('0xa8')](_0x377e0c('0x49'),_0x377e0c('0x9')));if(_0x11545b[_0x377e0c('0x42')])_0xbef07a[_0x377e0c('0x42')](_0x11545b[_0x377e0c('0x42')]);if(_0x11545b['offset'])_0xbef07a[_0x377e0c('0xa2')](_0x11545b[_0x377e0c('0xa2')]);return db[_0x377e0c('0x38')][_0x377e0c('0x93')](_0xbef07a['toString'](),_0x54104b);})[_0x47f53d('0x7d')](function(_0xad6bb0){const _0x150bb1=_0x47f53d;return _0x82ce38[_0x150bb1('0x44')](_0x150bb1('0x57'),_['map'](_0xad6bb0,'id')),db['sequelize'][_0x150bb1('0x93')](_0x82ce38['toString'](),_0x54104b)[_0x150bb1('0x7d')](function(_0x4f26c2){const _0x5395a4=_0x150bb1,_0x3b1714=_[_0x5395a4('0x35')](_0x4f26c2,_0x5395a4('0xb0')),_0x2810fe=[];return _0xad6bb0[_0x5395a4('0x4e')](function(_0x58f9ba){_0x2810fe['push'](updateFaxInteraction(_0x58f9ba,_0x4d5cf8,_0x3b1714));}),Promise[_0x5395a4('0x98')](_0x2810fe);});});})[_0x3a8f58('0x7d')](function(_0x2b5d89){const _0x3bca03=_0x3a8f58;return _0xdf5283[_0x3bca03('0xa')]=_0x2b5d89,_0xdf5283;})[_0x3a8f58('0x7d')](respondWithFilteredResult(_0x4bc130,_0x11545b));})[_0x3a80a3('0x32')](handleError(_0x4bc130,null));},exports['show']=function(_0x8797d0,_0x5a1e7f){const _0x360dd3=_0x10dbaa;let _0x2c3914={'raw':![],'where':{'id':_0x8797d0[_0x360dd3('0x7b')]['id']}};const _0x369515={};return _0x369515['model']=_[_0x360dd3('0x51')](db[_0x360dd3('0x68')][_0x360dd3('0xa7')]),_0x369515[_0x360dd3('0x93')]=_[_0x360dd3('0x51')](_0x8797d0['query']),_0x369515[_0x360dd3('0xb6')]=_[_0x360dd3('0xa1')](_0x369515[_0x360dd3('0xc0')],_0x369515[_0x360dd3('0x93')]),_0x2c3914[_0x360dd3('0x7e')]=_['intersection'](_0x369515[_0x360dd3('0xc0')],qs[_0x360dd3('0x9c')](_0x8797d0[_0x360dd3('0x93')]['fields'])),_0x2c3914[_0x360dd3('0x7e')]=_0x2c3914[_0x360dd3('0x7e')][_0x360dd3('0x41')]?_0x2c3914[_0x360dd3('0x7e')]:_0x369515[_0x360dd3('0xc0')],_0x8797d0[_0x360dd3('0x93')][_0x360dd3('0xba')]&&(_0x2c3914[_0x360dd3('0x4b')]=[{'all':!![]}]),_0x2c3914=_[_0x360dd3('0x8d')]({},_0x2c3914,_0x8797d0[_0x360dd3('0x82')]),db['FaxInteraction'][_0x360dd3('0x52')](_0x2c3914)['then'](handleEntityNotFound(_0x5a1e7f,null))[_0x360dd3('0x7d')](respondWithResult(_0x5a1e7f,null))[_0x360dd3('0x32')](handleError(_0x5a1e7f,null));},exports[_0x10dbaa('0x70')]=function(_0x36166e,_0x40acc2){const _0x341f11=_0x10dbaa;return db['FaxInteraction'][_0x341f11('0x70')](_0x36166e[_0x341f11('0x1b')],{})[_0x341f11('0x7d')](respondWithResult(_0x40acc2,0xc9))[_0x341f11('0x32')](handleError(_0x40acc2,null));},exports[_0x10dbaa('0x95')]=function(_0x35d530,_0x10921b){const _0x5a1141=_0x10dbaa;return _0x35d530['body']['id']&&delete _0x35d530[_0x5a1141('0x1b')]['id'],db[_0x5a1141('0x68')][_0x5a1141('0x52')]({'where':{'id':_0x35d530[_0x5a1141('0x7b')]['id']}})['then'](handleEntityNotFound(_0x10921b,null))[_0x5a1141('0x7d')](saveUpdates(_0x35d530['body'],null))['then'](respondWithResult(_0x10921b,null))[_0x5a1141('0x32')](handleError(_0x10921b,null));},exports['destroy']=function(_0x1a8712,_0x5c1eef){const _0x10965a=_0x10dbaa;return db[_0x10965a('0x68')][_0x10965a('0x52')]({'where':{'id':_0x1a8712[_0x10965a('0x7b')]['id']}})[_0x10965a('0x7d')](handleEntityNotFound(_0x5c1eef,null))[_0x10965a('0x7d')](removeEntity(_0x5c1eef,null))['catch'](handleError(_0x5c1eef,null));},exports[_0x10dbaa('0x24')]=function(_0x1f79db,_0xf54ae2){const _0x185795=_0x10dbaa;return db[_0x185795('0x68')]['describe']()['then'](respondWithResult(_0xf54ae2,null))[_0x185795('0x32')](handleError(_0xf54ae2,null));},exports['addMessage']=function(_0x26d8ad,_0x30618d){const _0x5ef136=_0x10dbaa;return db[_0x5ef136('0x2a')]['findOne']({'where':{'id':_0x26d8ad['params']['id']}})[_0x5ef136('0x7d')](function(_0x31d995){const _0x2fa410=_0x5ef136;if(_0x31d995)return _0x31d995[_0x2fa410('0x5c')](_0x26d8ad[_0x2fa410('0x1b')][_0x2fa410('0x81')],{'through':_[_0x2fa410('0xbc')](_0x26d8ad[_0x2fa410('0x1b')],[_0x2fa410('0x81'),'id'])});})['then'](respondWithResult(_0x30618d,null))[_0x5ef136('0x32')](handleError(_0x30618d,null));},exports[_0x10dbaa('0x91')]=function(_0x2f71e5,_0x3ef37a){const _0x2cca8b=_0x10dbaa;let _0x44f3bf={'raw':![],'where':{}};const _0x204a79={},_0xf75b0b={'count':0x0,'rows':[]};return db[_0x2cca8b('0x68')][_0x2cca8b('0x52')]({'where':{'id':_0x2f71e5[_0x2cca8b('0x7b')]['id']}})['then'](handleEntityNotFound(_0x3ef37a,null))[_0x2cca8b('0x7d')](function(_0x582579){const _0x34e61a=_0x2cca8b;if(_0x582579){_0x204a79[_0x34e61a('0xc0')]=_[_0x34e61a('0x51')](db['FaxMessage'][_0x34e61a('0xa7')]),_0x204a79[_0x34e61a('0x93')]=_[_0x34e61a('0x51')](_0x2f71e5[_0x34e61a('0x93')]),_0x204a79['filters']=_[_0x34e61a('0xa1')](_0x204a79[_0x34e61a('0xc0')],_0x204a79[_0x34e61a('0x93')]),_0x44f3bf[_0x34e61a('0x7e')]=_[_0x34e61a('0xa1')](_0x204a79['model'],qs['fields'](_0x2f71e5[_0x34e61a('0x93')][_0x34e61a('0x9c')])),_0x44f3bf['attributes']=_0x44f3bf[_0x34e61a('0x7e')][_0x34e61a('0x41')]?_0x44f3bf[_0x34e61a('0x7e')]:_0x204a79[_0x34e61a('0xc0')];typeof _0x2f71e5[_0x34e61a('0x93')][_0x34e61a('0x3a')]===_0x34e61a('0x58')&&(_0x44f3bf[_0x34e61a('0x42')]=qs[_0x34e61a('0x42')](_0x2f71e5['query'][_0x34e61a('0x42')]),_0x44f3bf[_0x34e61a('0xa2')]=qs[_0x34e61a('0xa2')](_0x2f71e5[_0x34e61a('0x93')]['offset']));_0x44f3bf['order']=qs[_0x34e61a('0xa6')](_0x2f71e5[_0x34e61a('0x93')][_0x34e61a('0xa6')]),_0x44f3bf[_0x34e61a('0x44')]=qs['filters'](_[_0x34e61a('0xb3')](_0x2f71e5[_0x34e61a('0x93')],_0x204a79[_0x34e61a('0xb6')])),_0x44f3bf[_0x34e61a('0x44')][_0x34e61a('0xb0')]=_0x582579['id'];_0x2f71e5['query'][_0x34e61a('0x8c')]&&(_0x44f3bf[_0x34e61a('0x44')]=_[_0x34e61a('0x8d')](_0x44f3bf[_0x34e61a('0x44')],{[Op['or']]:_['map'](_0x44f3bf['attributes'],function(_0x543024){const _0x375a7a=_0x34e61a,_0x252280={};return _0x252280[_0x543024]={[Op[_0x375a7a('0x74')]]:'%'+_0x2f71e5['query']['filter']+'%'},_0x252280;})}));if(_0x2f71e5[_0x34e61a('0x93')][_0x34e61a('0xb7')]){const _0x18e423=_0x2f71e5[_0x34e61a('0x93')][_0x34e61a('0xb7')][_0x34e61a('0x30')](','),_0x1540e5={};_0x1540e5[_0x18e423[0x0]]={[Op[_0x34e61a('0x3d')]]:moment(_0x18e423[0x1])['format'](_0x34e61a('0x87'))},_0x44f3bf['where']=_[_0x34e61a('0x8d')](_0x44f3bf[_0x34e61a('0x44')],_0x1540e5);}return _0x44f3bf=_['merge']({},_0x44f3bf,_0x2f71e5[_0x34e61a('0x82')]),db[_0x34e61a('0x2a')][_0x34e61a('0x66')]({'where':_0x44f3bf[_0x34e61a('0x44')]})[_0x34e61a('0x7d')](function(_0x286010){const _0x3ba9dc=_0x34e61a;return _0xf75b0b[_0x3ba9dc('0x66')]=_0x286010,_0x2f71e5['query'][_0x3ba9dc('0xba')]&&(_0x44f3bf[_0x3ba9dc('0x4b')]=[{'all':!![]}]),db[_0x3ba9dc('0x2a')][_0x3ba9dc('0x5f')](_0x44f3bf);})[_0x34e61a('0x7d')](function(_0x3994f4){return _0xf75b0b['rows']=_0x3994f4,_0xf75b0b;});}})[_0x2cca8b('0x7d')](respondWithFilteredResult(_0x3ef37a,_0x44f3bf))['catch'](handleError(_0x3ef37a,null));},exports[_0x10dbaa('0x19')]=function(_0x3685fe,_0x3df1bb){const _0x3b6af0=_0x10dbaa;return db[_0x3b6af0('0x68')][_0x3b6af0('0x52')]({'where':{'id':_0x3685fe['params']['id']}})[_0x3b6af0('0x7d')](function(_0x46cd90){const _0x492859=_0x3b6af0;if(_0x46cd90)return _0x46cd90[_0x492859('0x37')](_0x3685fe[_0x492859('0x1b')]['ids'],{'through':_[_0x492859('0xbc')](_0x3685fe[_0x492859('0x1b')],['ids','id'])})[_0x492859('0x7d')](function(){const _0x299c6e=_0x492859;return db[_0x299c6e('0x1')][_0x299c6e('0x5f')]({'attributes':['id','name',_0x299c6e('0xbd')],'where':{'id':_0x3685fe[_0x299c6e('0x1b')]['ids']}});})[_0x492859('0x7d')](function(_0x909ba0){const _0x1ce9ed=_0x492859;return socket['emit'](_0x1ce9ed('0x22'),{'id':Number(_0x3685fe['params']['id']),'tags':_0x909ba0||[]}),{'id':Number(_0x3685fe[_0x1ce9ed('0x7b')]['id']),'tags':_0x909ba0||[]};});})[_0x3b6af0('0x7d')](respondWithResult(_0x3df1bb,null))['catch'](handleError(_0x3df1bb,null));},exports[_0x10dbaa('0x20')]=function(_0x10874b,_0x48b4db){const _0x447428=_0x10dbaa;return db[_0x447428('0x68')]['findOne']({'where':{'id':_0x10874b[_0x447428('0x7b')]['id']}})[_0x447428('0x7d')](handleEntityNotFound(_0x48b4db,null))[_0x447428('0x7d')](function(_0x3f9b56){const _0x8d42c0=_0x447428;if(_0x3f9b56)return _0x3f9b56['removeTags'](_0x10874b[_0x8d42c0('0x93')][_0x8d42c0('0x81')]);})[_0x447428('0x7d')](respondWithStatusCode(_0x48b4db,null))[_0x447428('0x32')](handleError(_0x48b4db,null));},exports[_0x10dbaa('0x6b')]=function(_0x56ce15,_0x836ad0){const _0x408296=_0x10dbaa,_0x49670e=moment()[_0x408296('0x9e')]()[_0x408296('0x7f')](),_0xef356a=path[_0x408296('0x13')](config[_0x408296('0xa0')],_0x408296('0x28'),_0x408296('0x7c')),_0x3054d8=path[_0x408296('0x13')](config[_0x408296('0xa0')],_0x408296('0xc'),'files',_0x408296('0x59')),_0x5c3c35=path[_0x408296('0x13')](_0xef356a,_0x49670e),_0x24f2fa=util[_0x408296('0xb9')]('transcript-%d-%s.zip',_0x56ce15['params']['id'],_0x49670e),_0x7e1b7a=path[_0x408296('0x13')](_0xef356a,_0x24f2fa),_0x360edc=[];_0x360edc[_0x408296('0xb')]({'model':db[_0x408296('0x56')],'as':_0x408296('0x56'),'raw':!![]});const _0x1ed338=[{'model':db[_0x408296('0x2a')],'as':'Messages','attributes':['id','body',_0x408296('0x5')],'include':_0x360edc}];return db[_0x408296('0x68')][_0x408296('0x52')]({'where':{'id':_0x56ce15[_0x408296('0x7b')]['id']},'include':_0x1ed338})[_0x408296('0x7d')](handleEntityNotFound(_0x836ad0,null))[_0x408296('0x7d')](function(_0x4a0144){const _0x219a9d=_0x408296;if(_0x4a0144&&_0x4a0144['Messages']){const _0x513695=_0x4a0144[_0x219a9d('0xaa')]({'plain':!![]});fs[_0x219a9d('0x9b')](_0x5c3c35);for(let _0x4baea8=0x0;_0x4baea8<_0x513695[_0x219a9d('0x88')][_0x219a9d('0x41')];_0x4baea8++){const _0x35718a=_0x513695[_0x219a9d('0x88')][_0x4baea8]['Attachment'];if(_0x35718a){const _0x498cf2=path[_0x219a9d('0x13')](_0x3054d8,_0x35718a[_0x219a9d('0xd')]);fs['existsSync'](_0x498cf2)&&fs['createReadStream'](_0x498cf2)[_0x219a9d('0x25')](fs[_0x219a9d('0x63')](path[_0x219a9d('0x13')](_0x5c3c35,_0x35718a[_0x219a9d('0xd')])));}}return Promise[_0x219a9d('0x47')]()['then'](function(){const _0x255cc1=_0x219a9d;return new Promise(function(_0x479727,_0x253173){zipdir(_0x5c3c35,{'saveTo':_0x7e1b7a},function(_0x41b5fe,_0x1fe091){if(_0x41b5fe)return _0x253173(_0x41b5fe);return _0x479727(_0x1fe091);});})['then'](function(){return new Promise(function(_0x20363a,_0x16be41){rimraf(_0x5c3c35,function(_0x190860){if(_0x190860)_0x16be41(_0x190860);return _0x20363a();});});})[_0x255cc1('0x7d')](function(){const _0x56c800=_0x255cc1;return _0x836ad0[_0x56c800('0x6b')](_0x7e1b7a,_0x24f2fa,function(_0x3652de){const _0xed92d7=_0x56c800;_0x3652de?console[_0xed92d7('0x1e')](_0xed92d7('0x5d'),_0x3652de):fs['unlinkSync'](_0x7e1b7a);});});});}else return _0x836ad0[_0x219a9d('0x54')](0xc8);})['catch'](handleError(_0x836ad0,null));}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index 7b0cb6c..ff90fc8 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a199_0x5639=['findAll','setMaxListeners','events','FaxInteraction','catch','save','getUsers','addHook','length','../../mysqldb','update','undefined','then','setDataValue','FaxMessage','exports','emit'];(function(_0x2cc0ec,_0x563953){const _0x159975=function(_0x469179){while(--_0x469179){_0x2cc0ec['push'](_0x2cc0ec['shift']());}};_0x159975(++_0x563953);}(a199_0x5639,0x1b8));const a199_0x1599=function(_0x2cc0ec,_0x563953){_0x2cc0ec=_0x2cc0ec-0x0;let _0x159975=a199_0x5639[_0x2cc0ec];return _0x159975;};const _0x4189ce=a199_0x1599;'use strict';const EventEmitter=require(_0x4189ce('0x4')),FaxInteraction=require(_0x4189ce('0xb'))['db'][_0x4189ce('0x5')],FaxMessage=require(_0x4189ce('0xb'))['db'][_0x4189ce('0x10')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[_0x4189ce('0x3')](0x0);const events={'afterCreate':_0x4189ce('0x7'),'afterUpdate':_0x4189ce('0xc'),'afterDestroy':'remove'};function emitEvent(_0x469179){return function(_0x14dca5){const _0x382e4c=a199_0x1599;_0x14dca5[_0x382e4c('0x8')]({'attributes':['id'],'raw':!![]})[_0x382e4c('0xe')](function(_0x2e73c3){const _0x535e27=_0x382e4c;return _0x14dca5['setDataValue']('Users',_0x2e73c3['map'](function(_0x31f945){return{'id':_0x31f945['id']};})),FaxMessage[_0x535e27('0x2')]({'where':{'FaxInteractionId':_0x14dca5['id'],'direction':'in','read':![]},'raw':!![]});})[_0x382e4c('0xe')](function(_0x38dfe2){const _0x2afdde=_0x382e4c;_0x14dca5[_0x2afdde('0xf')]('unreadMessages',_0x38dfe2[_0x2afdde('0xa')]),FaxInteractionEvents[_0x2afdde('0x1')](_0x469179+':'+_0x14dca5['id'],_0x14dca5),FaxInteractionEvents[_0x2afdde('0x1')](_0x469179,_0x14dca5);})[_0x382e4c('0x6')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x4189ce('0xd')){const event=events[e];FaxInteraction[_0x4189ce('0x9')](e,emitEvent(event));}}module[_0x4189ce('0x0')]=FaxInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index 6c2d3d7..c0c8de4 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a200_0x562c=['moment','fax_interactions','./faxInteraction.attributes','closedAt','define','format','FaxInteraction'];(function(_0x40c84c,_0x562c3a){const _0x19738a=function(_0x1cc411){while(--_0x1cc411){_0x40c84c['push'](_0x40c84c['shift']());}};_0x19738a(++_0x562c3a);}(a200_0x562c,0xf7));const a200_0x1973=function(_0x40c84c,_0x562c3a){_0x40c84c=_0x40c84c-0x0;let _0x19738a=a200_0x562c[_0x40c84c];return _0x19738a;};const _0x13e622=a200_0x1973;'use strict';const moment=require(_0x13e622('0x5')),attributes=require(_0x13e622('0x0'));module['exports']=function(_0x1cc411){const _0x56a162=_0x13e622,_0x1c1446=_0x1cc411[_0x56a162('0x2')](_0x56a162('0x4'),attributes,{'tableName':_0x56a162('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x220831){const _0x2a9bcb=_0x56a162;_0x220831['changed']('closed')&&(_0x220831[_0x2a9bcb('0x1')]=moment()[_0x2a9bcb('0x3')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x1c1446;}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index ead9f40..94747b5 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a201_0x6143=['register','raw','attributes','where','message','../../rediscache','debug','AddTags','options','limit','update','./faxInteraction.socket','body','then','error','../../mysqldb','stringify','FaxInteraction','addTags','omit','catch','ids','lodash','UpdateFaxInteraction'];(function(_0x29ff85,_0x61436d){const _0x4c0b33=function(_0x359e69){while(--_0x359e69){_0x29ff85['push'](_0x29ff85['shift']());}};_0x4c0b33(++_0x61436d);}(a201_0x6143,0x126));const a201_0x4c0b=function(_0x29ff85,_0x61436d){_0x29ff85=_0x29ff85-0x0;let _0x4c0b33=a201_0x6143[_0x29ff85];return _0x4c0b33;};const _0x1dfd81=a201_0x4c0b;'use strict';const _=require(_0x1dfd81('0x10')),db=require(_0x1dfd81('0x9'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x1dfd81('0x17')),socket=getSocket();require(_0x1dfd81('0x5'))[_0x1dfd81('0x12')](socket),exports['UpdateFaxInteraction']=function(_0x359e69){const _0x36f07f=this;return new Promise(function(_0x57d6fc,_0x40b944){const _0x2a9864=a201_0x4c0b;return db[_0x2a9864('0xb')][_0x2a9864('0x4')](_0x359e69[_0x2a9864('0x6')],{'raw':_0x359e69['options']?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x13')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x359e69[_0x2a9864('0x2')]?_0x359e69['options'][_0x2a9864('0x15')]||null:null,'attributes':_0x359e69[_0x2a9864('0x2')]?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x14')]||null:null,'limit':_0x359e69['options']?_0x359e69[_0x2a9864('0x2')][_0x2a9864('0x3')]||null:null})[_0x2a9864('0x7')](function(_0x282981){const _0x15f110=_0x2a9864;logger['info']('UpdateFaxInteraction',_0x359e69),logger[_0x15f110('0x0')]('UpdateFaxInteraction',_0x359e69,JSON[_0x15f110('0xa')](_0x282981)),_0x57d6fc(_0x282981);})[_0x2a9864('0xe')](function(_0x1a1ecd){const _0xd51f64=_0x2a9864;logger[_0xd51f64('0x8')](_0xd51f64('0x11'),_0x1a1ecd['message'],_0x359e69),_0x40b944(_0x36f07f[_0xd51f64('0x8')](0x1f4,_0x1a1ecd[_0xd51f64('0x16')]));});});},exports['AddTagsToFaxInteraction']=function(_0x2fde66){const _0x42b3a7=this;return new Promise(function(_0x163711,_0x4952e8){const _0x452193=a201_0x4c0b;return db[_0x452193('0xb')]['findOne']({'where':_0x2fde66[_0x452193('0x2')]?_0x2fde66[_0x452193('0x2')][_0x452193('0x15')]||null:null})[_0x452193('0x7')](function(_0x26eec4){const _0x2fa8c5=_0x452193;if(_0x26eec4)return _0x26eec4[_0x2fa8c5('0xc')](_0x2fde66[_0x2fa8c5('0x6')][_0x2fa8c5('0xf')],{'through':_[_0x2fa8c5('0xd')](_0x2fde66['body'],['ids','id'])});})['then'](function([_0x172190]){const _0x5d2d61=_0x452193;logger['info']('AddTags',_0x2fde66),logger['debug'](_0x5d2d61('0x1'),_0x2fde66,JSON[_0x5d2d61('0xa')](_0x172190)),_0x163711(_0x172190);})[_0x452193('0xe')](function(_0x217964){const _0x3503d8=_0x452193;logger['error'](_0x3503d8('0x1'),_0x217964[_0x3503d8('0x16')],_0x2fde66),_0x4952e8(_0x42b3a7[_0x3503d8('0x8')](0x1f4,_0x217964['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index 7c1ad52..73911c9 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a202_0x3ee3=['emit','save','remove','./faxInteraction.events'];(function(_0x5981ba,_0x3ee341){const _0x20f5d1=function(_0x2398dc){while(--_0x2398dc){_0x5981ba['push'](_0x5981ba['shift']());}};_0x20f5d1(++_0x3ee341);}(a202_0x3ee3,0x169));const a202_0x20f5=function(_0x5981ba,_0x3ee341){_0x5981ba=_0x5981ba-0x0;let _0x20f5d1=a202_0x3ee3[_0x5981ba];return _0x20f5d1;};const _0x5e0a82=a202_0x20f5;'use strict';const FaxInteractionEvents=require(_0x5e0a82('0x2')),events=[_0x5e0a82('0x0'),_0x5e0a82('0x1'),'update'];function createListener(_0x2398dc,_0x7b142b){return function(_0x2fe1ed){const _0x25407e=a202_0x20f5;_0x7b142b[_0x25407e('0x3')](_0x2398dc,_0x2fe1ed);};}exports['register']=function(_0x106fda){for(let _0x14e7be=0x0,_0x1ea37d=events['length'];_0x14e7be<_0x1ea37d;_0x14e7be++){const _0x230977=events[_0x14e7be],_0x45b332=createListener('faxInteraction:'+_0x230977,_0x106fda);FaxInteractionEvents['on'](_0x230977,_0x45b332);}}; \ No newline at end of file +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 diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index 47c2d27..539086e 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a203_0x351d=['/:id/download','post','getMessages','isAuthenticated','express','describe','fax','removeTags','/:id/tags','tracked','addMessage','faxinteraction:destroy','/:id','update','destroy','index','exports','../../components/interaction/service','Router','delete','faxinteraction:addtags','download','get','/:id/messages'];(function(_0x19187b,_0x351dde){const _0x501959=function(_0x305f71){while(--_0x305f71){_0x19187b['push'](_0x19187b['shift']());}};_0x501959(++_0x351dde);}(a203_0x351d,0x1d8));const a203_0x5019=function(_0x19187b,_0x351dde){_0x19187b=_0x19187b-0x0;let _0x501959=a203_0x351d[_0x19187b];return _0x501959;};const _0x53ffea=a203_0x5019;'use strict';const express=require(_0x53ffea('0xc')),router=express[_0x53ffea('0x2')](),auth=require('../../components/auth/service'),interaction=require(_0x53ffea('0x1')),controller=require('./faxInteraction.controller');router[_0x53ffea('0x6')]('/',auth[_0x53ffea('0xb')](),controller[_0x53ffea('0x17')]),router[_0x53ffea('0x6')]('/describe',auth[_0x53ffea('0xb')](),controller[_0x53ffea('0xd')]),router[_0x53ffea('0x6')](_0x53ffea('0x14'),auth['isAuthenticated'](),controller['show']),router['get'](_0x53ffea('0x7'),auth[_0x53ffea('0xb')](),controller[_0x53ffea('0xa')]),router['get'](_0x53ffea('0x8'),auth[_0x53ffea('0xb')](),controller[_0x53ffea('0x5')]),router[_0x53ffea('0x9')]('/',auth[_0x53ffea('0xb')](),controller['create']),router[_0x53ffea('0x9')](_0x53ffea('0x7'),auth[_0x53ffea('0xb')](),controller[_0x53ffea('0x12')]),router[_0x53ffea('0x9')](_0x53ffea('0x10'),auth['isAuthenticated'](),interaction[_0x53ffea('0x11')](_0x53ffea('0xe'),_0x53ffea('0x4')),controller['addTags']),router['put'](_0x53ffea('0x14'),auth[_0x53ffea('0xb')](),interaction[_0x53ffea('0x11')](_0x53ffea('0xe'),'faxinteraction:update'),controller[_0x53ffea('0x15')]),router['delete'](_0x53ffea('0x14'),auth[_0x53ffea('0xb')](),interaction['tracked']('fax',_0x53ffea('0x13')),controller[_0x53ffea('0x16')]),router[_0x53ffea('0x3')](_0x53ffea('0x10'),auth[_0x53ffea('0xb')](),controller[_0x53ffea('0xf')]),module[_0x53ffea('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index c82f68a..acf3d08 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a204_0x4899=['BOOLEAN','out','sequelize','exports','DATE','TEXT'];(function(_0x410e23,_0x489965){const _0x1bfa34=function(_0x74448d){while(--_0x74448d){_0x410e23['push'](_0x410e23['shift']());}};_0x1bfa34(++_0x489965);}(a204_0x4899,0x191));const a204_0x1bfa=function(_0x410e23,_0x489965){_0x410e23=_0x410e23-0x0;let _0x1bfa34=a204_0x4899[_0x410e23];return _0x1bfa34;};const _0x2cd6ab=a204_0x1bfa;'use strict';const Sequelize=require(_0x2cd6ab('0x3'));module[_0x2cd6ab('0x4')]={'body':{'type':Sequelize[_0x2cd6ab('0x0')]('medium'),'allowNull':![]},'read':{'type':Sequelize[_0x2cd6ab('0x1')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x2cd6ab('0x2')),'defaultValue':'out','allowNull':![]},'failMessage':{'type':Sequelize[_0x2cd6ab('0x0')],'defaultValue':null},'readAt':{'type':Sequelize[_0x2cd6ab('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index ddf3cff..254ee54 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a205_0x1525=['[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','fields','message','event','channel','VIRTUAL','fax-interactions','FaxAccountId','type','FaxMessage','ContactId','interface','FaxInteraction','catch','/var/opt/motion2/server/files/attachments/%s','FaxMessage,\x20%s,\x20%s,\x20%s','basename','../../config/logger','body','includeAll','rawAttributes','key','stack','offset','moment','Content-Range','register','undefined','util','then','SIP/%s','keys','create','path','error','intersection','get','merge','../../mysqldb','root','model','YYYY-MM-DD\x20HH:mm:ss','filters','download','send','client','sequelize','include','params','reject','result','CmContact','limit','role','sort','update','attributes','Attachment','map','status','read','Contact','server','user','rejectmessage','fieldName','fax','code','debug','interaction','attachments','where','findOne','AttachmentId','nolimit','./faxMessage.socket','request\x20sent','count','accept','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','format','like','UserId','options','rows','files','end','findAll','http','manual','stringify','FaxInteractionId','sendStatus','info','request','FaxMessage,\x20%s,\x20%s','query','lodash','isNil','acceptmessage','destroy','AcceptMessage','join','SendFax','name','length','null','EventManager','order','describe','json'];(function(_0x50d6d,_0x1525ae){const _0x14066c=function(_0x489f60){while(--_0x489f60){_0x50d6d['push'](_0x50d6d['shift']());}};_0x14066c(++_0x1525ae);}(a205_0x1525,0x15c));const a205_0x1406=function(_0x50d6d,_0x1525ae){_0x50d6d=_0x50d6d-0x0;let _0x14066c=a205_0x1525[_0x50d6d];return _0x14066c;};const _0x13b4d4=a205_0x1406;'use strict';const moment=require(_0x13b4d4('0x9')),util=require(_0x13b4d4('0xd')),path=require(_0x13b4d4('0x12')),_=require(_0x13b4d4('0x52')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x13b4d4('0x2'))('api'),config=require('../../config/environment'),interaction_log=require('../../config/logger')(_0x13b4d4('0x66')),db=require(_0x13b4d4('0x17'))['db'],{Op}=require(_0x13b4d4('0x1f'));require(_0x13b4d4('0x3c'))[_0x13b4d4('0xb')](socket);const jayson=require('jayson/promise'),client=jayson[_0x13b4d4('0x1e')][_0x13b4d4('0x49')]({'port':0x232c}),client9002=jayson[_0x13b4d4('0x1e')]['http']({'port':0x232a});function respondWithRpcPromise(_0x489f60,_0x2ed453,_0x2c6aac,_0x55dbab){return new Promise(function(_0x1b0c87,_0x2a4f8f){const _0x3486a7=a205_0x1406,_0x1b38f7=_0x55dbab||client;return _0x1b38f7[_0x3486a7('0x4f')](_0x489f60,_0x2c6aac)[_0x3486a7('0xe')](function(_0x38a8f4){const _0x4600cf=_0x3486a7;logger['info'](_0x4600cf('0x50'),_0x2ed453,_0x4600cf('0x3d')),logger[_0x4600cf('0x35')](_0x4600cf('0x0'),_0x2ed453,'request\x20sent',JSON[_0x4600cf('0x4b')](_0x38a8f4));if(_0x38a8f4[_0x4600cf('0x13')]){if(_0x38a8f4[_0x4600cf('0x13')][_0x4600cf('0x34')]===0x1f4)return logger[_0x4600cf('0x13')](_0x4600cf('0x50'),_0x2ed453,_0x38a8f4[_0x4600cf('0x13')][_0x4600cf('0x62')]),_0x2a4f8f(_0x38a8f4[_0x4600cf('0x13')][_0x4600cf('0x62')]);return logger['error']('FaxMessage,\x20%s,\x20%s',_0x2ed453,_0x38a8f4[_0x4600cf('0x13')][_0x4600cf('0x62')]),_0x1b0c87(_0x38a8f4[_0x4600cf('0x13')][_0x4600cf('0x62')]);}else logger[_0x4600cf('0x4e')](_0x4600cf('0x50'),_0x2ed453,_0x4600cf('0x3d')),_0x1b0c87(_0x38a8f4[_0x4600cf('0x23')]['message']);})[_0x3486a7('0x6d')](function(_0x5ef23a){const _0x52a252=_0x3486a7;logger[_0x52a252('0x13')]('FaxMessage,\x20%s,\x20%s',_0x2ed453,_0x5ef23a),_0x2a4f8f(_0x5ef23a);});});}function respondWithResult(_0x54a106,_0xfeddaa){return _0xfeddaa=_0xfeddaa||0xc8,function(_0x4f5dc0){const _0x2db554=a205_0x1406;if(_0x4f5dc0)return _0x54a106[_0x2db554('0x2c')](_0xfeddaa)['json'](_0x4f5dc0);};}function respondWithFilteredResult(_0x165ecd,_0x3038f2){return function(_0x4293bb){const _0x29c401=a205_0x1406;if(_0x4293bb){const _0x1e3d40=_0x4293bb['count'],_0x574bb1=_0x3038f2[_0x29c401('0x8')];let _0x3bcf21=_0x3038f2[_0x29c401('0x8')]+_0x3038f2[_0x29c401('0x25')],_0x195a12;return _0x3bcf21>=_0x1e3d40?(_0x3bcf21=_0x1e3d40,_0x195a12=0xc8):_0x195a12=0xce,_0x165ecd[_0x29c401('0x2c')](_0x195a12),_0x165ecd['set'](_0x29c401('0xa'),_0x574bb1+'-'+_0x3bcf21+'/'+_0x1e3d40)[_0x29c401('0x5f')](_0x4293bb);}return null;};}function saveUpdates(_0x5d1265){return function(_0x292322){const _0xfd2f2c=a205_0x1406;if(_0x292322)return _0x292322[_0xfd2f2c('0x28')](_0x5d1265)[_0xfd2f2c('0xe')](function(_0x58e665){return _0x58e665;});return null;};}function removeEntity(_0x1a406d){return function(_0x50525f){const _0x7c817f=a205_0x1406;if(_0x50525f)return _0x50525f[_0x7c817f('0x55')]()[_0x7c817f('0xe')](function(){const _0x3af509=_0x7c817f;_0x1a406d[_0x3af509('0x2c')](0xcc)[_0x3af509('0x47')]();});};}function handleEntityNotFound(_0x26b0bf){return function(_0x395721){const _0x1031a3=a205_0x1406;return!_0x395721&&_0x26b0bf[_0x1031a3('0x4d')](0x194),_0x395721;};}function handleError(_0x494fbf,_0x519ff7){return _0x519ff7=_0x519ff7||0x1f4,function(_0x1828c6){const _0x16cebc=a205_0x1406;logger['error'](_0x1828c6[_0x16cebc('0x7')]),_0x1828c6[_0x16cebc('0x59')]&&delete _0x1828c6[_0x16cebc('0x59')],_0x494fbf[_0x16cebc('0x2c')](_0x519ff7)[_0x16cebc('0x1d')](_0x1828c6);};}exports['index']=function(_0x3ea635,_0x353933){const _0x7b2103=_0x13b4d4;let _0x4a269d={};const _0xd7289c={},_0x496a2f={'count':0x0,'rows':[]},_0x1b1bda=_[_0x7b2103('0x2b')](db[_0x7b2103('0x69')][_0x7b2103('0x5')],function(_0x2bb60d){const _0x2a07fd=_0x7b2103;return{'name':_0x2bb60d[_0x2a07fd('0x32')],'type':_0x2bb60d[_0x2a07fd('0x68')][_0x2a07fd('0x6')]};});_0xd7289c[_0x7b2103('0x19')]=_[_0x7b2103('0x2b')](_0x1b1bda,_0x7b2103('0x59')),_0xd7289c[_0x7b2103('0x51')]=_[_0x7b2103('0x10')](_0x3ea635['query']),_0xd7289c['filters']=_['intersection'](_0xd7289c[_0x7b2103('0x19')],_0xd7289c['query']),_0x4a269d['attributes']=_['intersection'](_0xd7289c[_0x7b2103('0x19')],qs[_0x7b2103('0x61')](_0x3ea635[_0x7b2103('0x51')][_0x7b2103('0x61')])),_0x4a269d[_0x7b2103('0x29')]=_0x4a269d[_0x7b2103('0x29')][_0x7b2103('0x5a')]?_0x4a269d[_0x7b2103('0x29')]:_0xd7289c[_0x7b2103('0x19')];typeof _0x3ea635['query'][_0x7b2103('0x3b')]===_0x7b2103('0xc')&&(_0x4a269d[_0x7b2103('0x25')]=qs[_0x7b2103('0x25')](_0x3ea635[_0x7b2103('0x51')][_0x7b2103('0x25')]),_0x4a269d[_0x7b2103('0x8')]=qs[_0x7b2103('0x8')](_0x3ea635[_0x7b2103('0x51')][_0x7b2103('0x8')]));_0x4a269d[_0x7b2103('0x5d')]=qs[_0x7b2103('0x27')](_0x3ea635[_0x7b2103('0x51')]['sort']),_0x4a269d['where']=qs[_0x7b2103('0x1b')](_['pick'](_0x3ea635[_0x7b2103('0x51')],_0xd7289c['filters']),_0x1b1bda);_0x3ea635[_0x7b2103('0x51')]['filter']&&(_0x4a269d[_0x7b2103('0x38')]=_['merge'](_0x4a269d[_0x7b2103('0x38')],{[Op['or']]:_[_0x7b2103('0x2b')](_0x1b1bda,function(_0x5edeeb){const _0x53f440=_0x7b2103;if(_0x5edeeb[_0x53f440('0x68')]!==_0x53f440('0x65')){const _0x2e2167={};return _0x2e2167[_0x5edeeb[_0x53f440('0x59')]]={[Op[_0x53f440('0x42')]]:'%'+_0x3ea635[_0x53f440('0x51')]['filter']+'%'},_0x2e2167;}})}));_0x4a269d=_[_0x7b2103('0x16')]({},_0x4a269d,_0x3ea635[_0x7b2103('0x44')]);const _0x4ac42c={'where':_0x4a269d[_0x7b2103('0x38')]};return db[_0x7b2103('0x69')][_0x7b2103('0x3e')](_0x4ac42c)[_0x7b2103('0xe')](function(_0x594c64){const _0x170bf8=_0x7b2103;return _0x496a2f[_0x170bf8('0x3e')]=_0x594c64,_0x3ea635[_0x170bf8('0x51')][_0x170bf8('0x4')]&&(_0x4a269d[_0x170bf8('0x20')]=[{'all':!![]}]),db['FaxMessage'][_0x170bf8('0x48')](_0x4a269d);})[_0x7b2103('0xe')](function(_0x564692){const _0x381184=_0x7b2103;return _0x496a2f[_0x381184('0x45')]=_0x564692,_0x496a2f;})[_0x7b2103('0xe')](respondWithFilteredResult(_0x353933,_0x4a269d))['catch'](handleError(_0x353933,null));},exports['show']=function(_0xb715b3,_0x29fe56){const _0x4566e3=_0x13b4d4;let _0x1bbd58={'raw':!![],'where':{'id':_0xb715b3[_0x4566e3('0x21')]['id']}};const _0x41b864={};return _0x41b864[_0x4566e3('0x19')]=_[_0x4566e3('0x10')](db[_0x4566e3('0x69')][_0x4566e3('0x5')]),_0x41b864[_0x4566e3('0x51')]=_[_0x4566e3('0x10')](_0xb715b3[_0x4566e3('0x51')]),_0x41b864[_0x4566e3('0x1b')]=_[_0x4566e3('0x14')](_0x41b864[_0x4566e3('0x19')],_0x41b864[_0x4566e3('0x51')]),_0x1bbd58['attributes']=_[_0x4566e3('0x14')](_0x41b864['model'],qs['fields'](_0xb715b3[_0x4566e3('0x51')][_0x4566e3('0x61')])),_0x1bbd58['attributes']=_0x1bbd58[_0x4566e3('0x29')][_0x4566e3('0x5a')]?_0x1bbd58[_0x4566e3('0x29')]:_0x41b864[_0x4566e3('0x19')],_0xb715b3[_0x4566e3('0x51')][_0x4566e3('0x4')]&&(_0x1bbd58[_0x4566e3('0x20')]=[{'all':!![]}]),_0x1bbd58=_[_0x4566e3('0x16')]({},_0x1bbd58,_0xb715b3['options']),db[_0x4566e3('0x69')][_0x4566e3('0x39')](_0x1bbd58)['then'](handleEntityNotFound(_0x29fe56,null))[_0x4566e3('0xe')](respondWithResult(_0x29fe56,null))['catch'](handleError(_0x29fe56,null));},exports['update']=function(_0x29d57c,_0xf4385a){const _0x2b25a2=_0x13b4d4;return _0x29d57c[_0x2b25a2('0x3')]['id']&&delete _0x29d57c[_0x2b25a2('0x3')]['id'],db[_0x2b25a2('0x69')]['findOne']({'where':{'id':_0x29d57c[_0x2b25a2('0x21')]['id']}})[_0x2b25a2('0xe')](handleEntityNotFound(_0xf4385a,null))[_0x2b25a2('0xe')](saveUpdates(_0x29d57c['body'],null))[_0x2b25a2('0xe')](respondWithResult(_0xf4385a,null))[_0x2b25a2('0x6d')](handleError(_0xf4385a,null));},exports[_0x13b4d4('0x55')]=function(_0x21a364,_0x4e7b7b){const _0x380799=_0x13b4d4;return db[_0x380799('0x69')]['findOne']({'where':{'id':_0x21a364['params']['id']}})[_0x380799('0xe')](handleEntityNotFound(_0x4e7b7b,null))[_0x380799('0xe')](removeEntity(_0x4e7b7b,null))['catch'](handleError(_0x4e7b7b,null));},exports[_0x13b4d4('0x5e')]=function(_0x8e89e1,_0x4044ad){const _0x46c8d2=_0x13b4d4;return db[_0x46c8d2('0x69')][_0x46c8d2('0x5e')]()[_0x46c8d2('0xe')](respondWithResult(_0x4044ad,null))[_0x46c8d2('0x6d')](handleError(_0x4044ad,null));},exports[_0x13b4d4('0x3f')]=function(_0x5b471a,_0x501be1){const _0x41f87d=_0x13b4d4,_0x44deb7={'channel':_0x41f87d('0x33')};return _0x5b471a['body']['id']&&delete _0x5b471a[_0x41f87d('0x3')]['id'],_0x5b471a[_0x41f87d('0x3')][_0x41f87d('0x2d')]=!![],_0x5b471a[_0x41f87d('0x3')]['readAt']=moment()[_0x41f87d('0x41')]('YYYY-MM-DD\x20HH:mm:ss'),_0x5b471a[_0x41f87d('0x3')]['UserId']=_0x5b471a[_0x41f87d('0x3')]['UserId']||_0x5b471a[_0x41f87d('0x30')]['id'],db['FaxMessage'][_0x41f87d('0x39')]({'where':{'id':_0x5b471a['params']['id'],'UserId':null},'include':[{'model':db[_0x41f87d('0x24')],'as':_0x41f87d('0x2e')}]})[_0x41f87d('0xe')](handleEntityNotFound(_0x501be1,null))[_0x41f87d('0xe')](saveUpdates(_0x5b471a[_0x41f87d('0x3')],null))['then'](function(_0xe8f840){const _0x13a222=_0x41f87d;if(_0xe8f840)return _0x44deb7[_0x13a222('0x62')]=_0xe8f840[_0x13a222('0x15')]({'plain':!![]}),db[_0x13a222('0x6c')][_0x13a222('0x39')]({'where':{'id':_0xe8f840[_0x13a222('0x4c')]}});return null;})[_0x41f87d('0xe')](handleEntityNotFound(_0x501be1,null))[_0x41f87d('0xe')](function(_0x4076e8){const _0x48b0aa=_0x41f87d;if(_0x4076e8)return _0x4076e8['update']({'UserId':_0x5b471a[_0x48b0aa('0x3')][_0x48b0aa('0x43')],'read1stAt':_['isNil'](_0x4076e8['read1stAt'])?moment()[_0x48b0aa('0x41')](_0x48b0aa('0x1a')):undefined});return null;})['then'](function(_0x3aa554){const _0x20b94e=_0x41f87d;if(_0x3aa554)return _0x44deb7['interaction']=_0x3aa554[_0x20b94e('0x15')]({'plain':!![]}),interaction_log['info'](_0x20b94e('0x40'),_0x5b471a[_0x20b94e('0x30')]['id'],_0x5b471a[_0x20b94e('0x30')][_0x20b94e('0x59')],_0x5b471a[_0x20b94e('0x30')][_0x20b94e('0x26')],_0x44deb7[_0x20b94e('0x36')]['id'],_0x5b471a['body']?JSON[_0x20b94e('0x4b')](_0x5b471a[_0x20b94e('0x3')]):_0x20b94e('0x5b')),respondWithRpcPromise(_0x20b94e('0x56'),'acceptMessage',_0x44deb7);return null;})[_0x41f87d('0xe')](function(_0x4fe0d4){const _0x3338c2=_0x41f87d;if(_0x4fe0d4){if(_0x5b471a[_0x3338c2('0x3')][_0x3338c2('0x4a')])return _0x44deb7[_0x3338c2('0x62')][_0x3338c2('0x6b')]=util['format'](_0x3338c2('0xf'),_0x5b471a[_0x3338c2('0x30')][_0x3338c2('0x59')]),_0x44deb7[_0x3338c2('0x62')][_0x3338c2('0x64')]=_0x44deb7[_0x3338c2('0x64')],_0x44deb7[_0x3338c2('0x62')][_0x3338c2('0x63')]=_0x3338c2('0x3f'),respondWithRpcPromise('EventManager',_0x3338c2('0x5c'),{'event':_0x3338c2('0x54'),'message':_0x44deb7[_0x3338c2('0x62')]},client9002)[_0x3338c2('0xe')](function(){return _0x44deb7;});return _0x44deb7;}return null;})[_0x41f87d('0xe')](respondWithResult(_0x501be1,null))['catch'](handleError(_0x501be1,null));},exports['reject']=function(_0x25a1c5,_0x9b3b64){const _0x1e2c5f=_0x13b4d4,_0x676bcd={'agent':{},'channel':'fax'};return _0x25a1c5['body']['id']&&delete _0x25a1c5[_0x1e2c5f('0x3')]['id'],_0x25a1c5['body'][_0x1e2c5f('0x43')]=_0x25a1c5[_0x1e2c5f('0x3')][_0x1e2c5f('0x43')]||_0x25a1c5[_0x1e2c5f('0x30')]['id'],_0x676bcd['agent']['id']=_0x25a1c5['body'][_0x1e2c5f('0x43')],db[_0x1e2c5f('0x69')][_0x1e2c5f('0x39')]({'where':{'id':_0x25a1c5[_0x1e2c5f('0x21')]['id'],'UserId':null}})[_0x1e2c5f('0xe')](handleEntityNotFound(_0x9b3b64,null))[_0x1e2c5f('0xe')](function(_0x28d075){const _0x269a29=_0x1e2c5f;if(_0x28d075)return _0x676bcd[_0x269a29('0x62')]=_0x28d075[_0x269a29('0x15')]({'plain':!![]}),db[_0x269a29('0x6c')][_0x269a29('0x39')]({'where':{'id':_0x28d075[_0x269a29('0x4c')]}});return null;})[_0x1e2c5f('0xe')](handleEntityNotFound(_0x9b3b64,null))[_0x1e2c5f('0xe')](function(_0x12bdb6){const _0x2760b7=_0x1e2c5f;if(_0x12bdb6)return _0x676bcd[_0x2760b7('0x36')]=_0x12bdb6[_0x2760b7('0x15')]({'plain':!![]}),interaction_log[_0x2760b7('0x4e')](_0x2760b7('0x60'),_0x25a1c5[_0x2760b7('0x30')]['id'],_0x25a1c5['user']['name'],_0x25a1c5[_0x2760b7('0x30')][_0x2760b7('0x26')],_0x676bcd[_0x2760b7('0x36')]['id'],_0x25a1c5[_0x2760b7('0x3')]?JSON['stringify'](_0x25a1c5[_0x2760b7('0x3')]):_0x2760b7('0x5b')),respondWithRpcPromise('RejectMessage','rejectMessage',_0x676bcd);return null;})['then'](function(_0x59f3a3){const _0x846206=_0x1e2c5f;if(_0x59f3a3)return _0x59f3a3[_0x846206('0x62')]['interface']=util[_0x846206('0x41')](_0x846206('0xf'),_0x25a1c5[_0x846206('0x30')][_0x846206('0x59')]),_0x59f3a3['message'][_0x846206('0x64')]=_0x676bcd['channel'],_0x59f3a3['message'][_0x846206('0x63')]=_0x846206('0x22'),respondWithRpcPromise(_0x846206('0x5c'),'EventManager',{'event':_0x846206('0x31'),'message':_0x59f3a3[_0x846206('0x62')]},client9002),_0x676bcd;return null;})['then'](respondWithResult(_0x9b3b64,null))[_0x1e2c5f('0x6d')](handleError(_0x9b3b64,null));},exports[_0x13b4d4('0x11')]=function(_0x3aac24,_0x39ca18){const _0x233897=_0x13b4d4;let _0x1a1a07;return db[_0x233897('0x69')][_0x233897('0x11')](_0x3aac24[_0x233897('0x3')],{})[_0x233897('0xe')](function(_0x3b5b9e){const _0x3c5a8b=_0x233897;return _0x1a1a07=_0x3b5b9e,db[_0x3c5a8b('0x24')][_0x3c5a8b('0x39')]({'where':{'id':_0x1a1a07[_0x3c5a8b('0x6a')]}});})[_0x233897('0xe')](function(_0xae901){const _0x107566=_0x233897;if(_['isNil'](_0xae901))return;else return _0x1a1a07[_0x107566('0x33')]=_0xae901[_0x107566('0x33')],db[_0x107566('0x2a')][_0x107566('0x39')]({'where':{'id':_0x1a1a07[_0x107566('0x3a')]}});})[_0x233897('0xe')](function(_0x34b249){const _0x531ca5=_0x233897;return respondWithRpcPromise(_0x531ca5('0x58'),_0x531ca5('0x58'),{'FaxAccountId':_[_0x531ca5('0x53')](_0x3aac24[_0x531ca5('0x3')])?undefined:_0x3aac24[_0x531ca5('0x3')][_0x531ca5('0x67')],'path':_['isNil'](_0x34b249)?undefined:util['format'](_0x531ca5('0x6e'),_0x34b249['basename']),'fax':_[_0x531ca5('0x53')](_0x1a1a07[_0x531ca5('0x33')])?undefined:_0x1a1a07[_0x531ca5('0x33')],'AttachmentId':_0x1a1a07['AttachmentId']},client9002);})[_0x233897('0xe')](respondWithResult(_0x39ca18,0xc9))[_0x233897('0x6d')](handleError(_0x39ca18,null));},exports[_0x13b4d4('0x1c')]=function(_0x348045,_0x461b9f){const _0x314a92=_0x13b4d4,_0x5b33a3=path[_0x314a92('0x57')](config[_0x314a92('0x18')],_0x314a92('0x2f'),_0x314a92('0x46'),_0x314a92('0x37'));return db[_0x314a92('0x69')][_0x314a92('0x39')]({'where':{'id':_0x348045['params']['id']},'include':[{'model':db[_0x314a92('0x2a')],'as':_0x314a92('0x2a')}]})[_0x314a92('0xe')](handleEntityNotFound(_0x461b9f,null))['then'](function(_0x213000){const _0x925fcb=_0x314a92;if(_0x213000)return _0x461b9f[_0x925fcb('0x1c')](path[_0x925fcb('0x57')](_0x5b33a3,_0x213000[_0x925fcb('0x2a')][_0x925fcb('0x1')]));})[_0x314a92('0x6d')](handleError(_0x461b9f,null));}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index 5b23638..f92ab5c 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a206_0xadf7=['FaxMessage','addHook','events','exports','remove','emit','save'];(function(_0x55f025,_0xadf766){const _0x5a55b6=function(_0x3261c7){while(--_0x3261c7){_0x55f025['push'](_0x55f025['shift']());}};_0x5a55b6(++_0xadf766);}(a206_0xadf7,0x11f));const a206_0x5a55=function(_0x55f025,_0xadf766){_0x55f025=_0x55f025-0x0;let _0x5a55b6=a206_0xadf7[_0x55f025];return _0x5a55b6;};const _0x1d3f3b=a206_0x5a55;'use strict';const EventEmitter=require(_0x1d3f3b('0x2')),FaxMessage=require('../../mysqldb')['db'][_0x1d3f3b('0x0')],FaxMessageEvents=new EventEmitter();FaxMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x1d3f3b('0x6'),'afterUpdate':'update','afterDestroy':_0x1d3f3b('0x4')};function emitEvent(_0x3261c7){return function(_0x219abc){const _0x47e35b=a206_0x5a55;FaxMessageEvents[_0x47e35b('0x5')](_0x3261c7+':'+_0x219abc['id'],_0x219abc),FaxMessageEvents['emit'](_0x3261c7,_0x219abc);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxMessage[_0x1d3f3b('0x1')](e,emitEvent(event));}}module[_0x1d3f3b('0x3')]=FaxMessageEvents; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.model.js b/server/api/faxMessage/faxMessage.model.js index 48bf2af..85f9b35 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a207_0x55eb=['fax_messages','FaxMessage','FaxInteractionId','FULLTEXT','exports','define','toLowerCase','lodash','fti_fax_messages','models','direction','UserId','./faxMessage.attributes','update','body','secret','out'];(function(_0x44b97e,_0x55eb70){const _0x41a9b4=function(_0x3c6a75){while(--_0x3c6a75){_0x44b97e['push'](_0x44b97e['shift']());}};_0x41a9b4(++_0x55eb70);}(a207_0x55eb,0x190));const a207_0x41a9=function(_0x44b97e,_0x55eb70){_0x44b97e=_0x44b97e-0x0;let _0x41a9b4=a207_0x55eb[_0x44b97e];return _0x41a9b4;};const _0x13fa1f=a207_0x41a9;'use strict';const _=require(_0x13fa1f('0xf')),attributes=require(_0x13fa1f('0x3'));module[_0x13fa1f('0xc')]=function(_0x3c6a75){const _0x547cb5=_0x13fa1f,_0x4781fa=_0x3c6a75[_0x547cb5('0x0')],_0x588886=_0x3c6a75[_0x547cb5('0xd')](_0x547cb5('0x9'),attributes,{'tableName':_0x547cb5('0x8'),'paranoid':![],'indexes':[{'name':_0x547cb5('0x10'),'fields':[_0x547cb5('0x5')],'type':_0x547cb5('0xb')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5bb77d){const _0x3c14ae=_0x547cb5,_0x286924=_0x5bb77d['get']({'plain':!![]});(_0x286924[_0x3c14ae('0x1')][_0x3c14ae('0xe')]()==='in'||_0x286924['direction'][_0x3c14ae('0xe')]()===_0x3c14ae('0x7')&&!_0x286924[_0x3c14ae('0x6')]&&!_['isNil'](_0x286924[_0x3c14ae('0x2')]))&&_0x4781fa['FaxInteraction']['findOne']({'where':{'id':_0x286924[_0x3c14ae('0xa')]}})['then'](function(_0x10bd6a){const _0x3034cc=_0x3c14ae;_0x10bd6a&&_0x10bd6a[_0x3034cc('0x4')]({'lastMsgAt':_0x286924['createdAt'],'lastMsgDirection':_0x286924[_0x3034cc('0x1')][_0x3034cc('0xe')]()});})['catch'](function(_0x596ddc){console['error'](_0x596ddc);});}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x588886;}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index 44e02f3..ac0c275 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a208_0x5547=['create','attributes','stringify','message','error','../../config/logger','../../mysqldb','info','debug','CreateFaxMessage','catch','body','UpdateFaxMessage','register','options','limit','../../rediscache','raw','FaxMessage','then','./faxMessage.socket'];(function(_0x388054,_0x5547f7){const _0x2c5ce9=function(_0x5e01e0){while(--_0x5e01e0){_0x388054['push'](_0x388054['shift']());}};_0x2c5ce9(++_0x5547f7);}(a208_0x5547,0xa2));const a208_0x2c5c=function(_0x388054,_0x5547f7){_0x388054=_0x388054-0x0;let _0x2c5ce9=a208_0x5547[_0x388054];return _0x2c5ce9;};const _0x5bbb48=a208_0x2c5c;'use strict';const db=require(_0x5bbb48('0xc'))['db'],logger=require(_0x5bbb48('0xb'))('rpc'),{getSocket}=require(_0x5bbb48('0x1')),socket=getSocket();require(_0x5bbb48('0x5'))[_0x5bbb48('0x13')](socket),exports[_0x5bbb48('0xf')]=function(_0x5e01e0){const _0x5dd2c1=this;return new Promise(function(_0x13b6b2,_0x374f88){const _0x4fb789=a208_0x2c5c;return db[_0x4fb789('0x3')][_0x4fb789('0x6')](_0x5e01e0[_0x4fb789('0x11')],{'raw':_0x5e01e0[_0x4fb789('0x14')]?_0x5e01e0[_0x4fb789('0x14')][_0x4fb789('0x2')]===undefined?!![]:![]:!![]})[_0x4fb789('0x4')](function(_0x5e6c92){const _0x5dacc3=_0x4fb789;logger['info'](_0x5dacc3('0xf'),_0x5e01e0),logger['debug'](_0x5dacc3('0xf'),_0x5e01e0,JSON['stringify'](_0x5e6c92)),_0x13b6b2(_0x5e6c92);})['catch'](function(_0x4e2c1c){const _0xf7dcb9=_0x4fb789;logger[_0xf7dcb9('0xa')](_0xf7dcb9('0xf'),_0x4e2c1c[_0xf7dcb9('0x9')],_0x5e01e0),_0x374f88(_0x5dd2c1[_0xf7dcb9('0xa')](0x1f4,_0x4e2c1c[_0xf7dcb9('0x9')]));});});},exports[_0x5bbb48('0x12')]=function(_0x5ef20c){const _0x42087b=this;return new Promise(function(_0x4f6193,_0x5247fc){const _0x3f2df8=a208_0x2c5c;return db[_0x3f2df8('0x3')]['update'](_0x5ef20c[_0x3f2df8('0x11')],{'raw':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5ef20c['options']?_0x5ef20c[_0x3f2df8('0x14')]['where']||null:null,'attributes':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x7')]||null:null,'limit':_0x5ef20c[_0x3f2df8('0x14')]?_0x5ef20c[_0x3f2df8('0x14')][_0x3f2df8('0x0')]||null:null})[_0x3f2df8('0x4')](function(_0x5c4187){const _0x1e3e33=_0x3f2df8;logger[_0x1e3e33('0xd')](_0x1e3e33('0x12'),_0x5ef20c),logger[_0x1e3e33('0xe')](_0x1e3e33('0x12'),_0x5ef20c,JSON[_0x1e3e33('0x8')](_0x5c4187)),_0x4f6193(_0x5c4187);})[_0x3f2df8('0x10')](function(_0x217b8a){const _0x17d913=_0x3f2df8;logger[_0x17d913('0xa')](_0x17d913('0x12'),_0x217b8a[_0x17d913('0x9')],_0x5ef20c),_0x5247fc(_0x42087b[_0x17d913('0xa')](0x1f4,_0x217b8a[_0x17d913('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 6df4734..962b49b 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a209_0x383b=['./faxMessage.events','save','faxMessage:','emit','length','register'];(function(_0x21f50e,_0x383b85){const _0x2ca267=function(_0x2311fc){while(--_0x2311fc){_0x21f50e['push'](_0x21f50e['shift']());}};_0x2ca267(++_0x383b85);}(a209_0x383b,0x139));const a209_0x2ca2=function(_0x21f50e,_0x383b85){_0x21f50e=_0x21f50e-0x0;let _0x2ca267=a209_0x383b[_0x21f50e];return _0x2ca267;};const _0xe1b973=a209_0x2ca2;'use strict';const FaxMessageEvents=require(_0xe1b973('0x5')),events=[_0xe1b973('0x0'),'remove','update'];function createListener(_0x2311fc,_0x4fde76){return function(_0x591eed){const _0x5b6f04=a209_0x2ca2;_0x4fde76[_0x5b6f04('0x2')](_0x2311fc,_0x591eed);};}exports[_0xe1b973('0x4')]=function(_0xc5cf22){const _0x211473=_0xe1b973;for(let _0x1a0729=0x0,_0x589329=events[_0x211473('0x3')];_0x1a0729<_0x589329;_0x1a0729++){const _0x4a236e=events[_0x1a0729],_0x3d3e41=createListener(_0x211473('0x1')+_0x4a236e,_0xc5cf22);FaxMessageEvents['on'](_0x4a236e,_0x3d3e41);}}; \ No newline at end of file +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 diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index 553465b..0900753 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a210_0x38cd=['destroy','index','express','create','faxmessage:create','accept','reject','./faxMessage.controller','fax','/:id/accept','download','isAuthenticated','get','../../components/interaction/service','tracked','describe','update','put','delete','/:id','/describe'];(function(_0x189580,_0x38cd67){const _0x4e83a0=function(_0x2082e4){while(--_0x2082e4){_0x189580['push'](_0x189580['shift']());}};_0x4e83a0(++_0x38cd67);}(a210_0x38cd,0x83));const a210_0x4e83=function(_0x189580,_0x38cd67){_0x189580=_0x189580-0x0;let _0x4e83a0=a210_0x38cd[_0x189580];return _0x4e83a0;};const _0x1c85fa=a210_0x4e83;'use strict';const express=require(_0x1c85fa('0x12')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x1c85fa('0x8')),controller=require(_0x1c85fa('0x2'));router['get']('/',auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0x11')]),router[_0x1c85fa('0x7')](_0x1c85fa('0xf'),auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0xa')]),router[_0x1c85fa('0x7')](_0x1c85fa('0xe'),auth[_0x1c85fa('0x6')](),controller['show']),router[_0x1c85fa('0x7')]('/:id/download',auth['isAuthenticated'](),controller[_0x1c85fa('0x5')]),router['post']('/',auth['isAuthenticated'](),interaction[_0x1c85fa('0x9')](_0x1c85fa('0x3'),_0x1c85fa('0x14')),controller[_0x1c85fa('0x13')]),router[_0x1c85fa('0xc')]('/:id',auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0xb')]),router[_0x1c85fa('0xc')](_0x1c85fa('0x4'),auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0x0')]),router['put']('/:id/reject',auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0x1')]),router[_0x1c85fa('0xd')]('/:id',auth[_0x1c85fa('0x6')](),controller[_0x1c85fa('0x10')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.attributes.js b/server/api/faxQueue/faxQueue.attributes.js index 840b6ed..c66094b 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a211_0x1a9e=['exports','INTEGER','name','beepall','roundrobin','rrmemory','ENUM','sequelize'];(function(_0x17630e,_0x1a9e48){const _0x281972=function(_0x1420d3){while(--_0x1420d3){_0x17630e['push'](_0x17630e['shift']());}};_0x281972(++_0x1a9e48);}(a211_0x1a9e,0xad));const a211_0x2819=function(_0x17630e,_0x1a9e48){_0x17630e=_0x17630e-0x0;let _0x281972=a211_0x1a9e[_0x17630e];return _0x281972;};const _0x4b2887=a211_0x2819;'use strict';const Sequelize=require(_0x4b2887('0x2'));module[_0x4b2887('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x4b2887('0x5'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x4b2887('0x4')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x4b2887('0x1')](_0x4b2887('0x0'),_0x4b2887('0x6'),_0x4b2887('0x7')),'allowNull':![]},'lastAgent':{'type':Sequelize[_0x4b2887('0x4')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.controller.js b/server/api/faxQueue/faxQueue.controller.js index 7932ed1..748d7ac 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a212_0x1e88=['getTeams','forEach','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ut.UserId\x20=\x20?','nolimit','FaxQueueId','filters','findAndCountAll','get','addTeams','params','FaxQueues','team_has_fax_queues','userFaxQueue:save','all','send','catch','agent','UserProfileSection','SELECT','status','Agents','create','index','../../rediscache','util','createdAt','voicePause','user_has_teams','model','Team','lodash','transaction','type','includes','value','rows','user','removeAgents','ids','../../components/parsers/qs','limit','like','from','select','fields','Content-Range','join','tq.TeamId','%s/%s','sort','where','userFaxQueue:remove','UserFaxQueue','then','../../mysqldb','show','sequelize','SIP','query','rawAttributes','destroy','User','field','userProfileId','options','intersection','FaxQueue','keys','end','undefined','TeamId','name','describe','union','isEmpty','order','key','length','push','each','format','removeTeams','fieldName','pick','isArray','includeAll','every','getAgents','findOne','toString','register','addAgents','offset','attributes','sendStatus','filter','merge','faxPause','./faxQueue.socket','findAll','flatMap','getMembers','count','updatedAt','map','emit','ut.TeamId\x20=\x20tq.TeamId','update','findOrCreate','body','role','json'];(function(_0x594008,_0x1e88e8){const _0x434d3b=function(_0x2d9e08){while(--_0x2d9e08){_0x594008['push'](_0x594008['shift']());}};_0x434d3b(++_0x1e88e8);}(a212_0x1e88,0x8d));const a212_0x434d=function(_0x594008,_0x1e88e8){_0x594008=_0x594008-0x0;let _0x434d3b=a212_0x1e88[_0x594008];return _0x434d3b;};const _0x3ed893=a212_0x434d;'use strict';const util=require(_0x3ed893('0x6e')),_=require(_0x3ed893('0x3')),squel=require('squel'),qs=require(_0x3ed893('0xc')),logger=require('../../config/logger')('api'),{getSocket}=require(_0x3ed893('0x6d')),socket=getSocket(),db=require(_0x3ed893('0x1b'))['db'],{Op,QueryTypes}=require(_0x3ed893('0x1d'));require(_0x3ed893('0x47'))[_0x3ed893('0x3f')](socket);function respondWithStatusCode(_0x2d9e08,_0x40d6a5){return _0x40d6a5=_0x40d6a5||0xcc,function(_0x16e90f){const _0x34ae9b=a212_0x434d;if(_0x16e90f)return _0x2d9e08[_0x34ae9b('0x43')](_0x40d6a5);return _0x2d9e08[_0x34ae9b('0x69')](_0x40d6a5)[_0x34ae9b('0x29')]();};}function respondWithResult(_0x21afc0,_0x3c8d79){return _0x3c8d79=_0x3c8d79||0xc8,function(_0x20a058){const _0x416589=a212_0x434d;if(_0x20a058)return _0x21afc0[_0x416589('0x69')](_0x3c8d79)[_0x416589('0x54')](_0x20a058);};}function respondWithFilteredResult(_0x1c15bd,_0x46becc){return function(_0x5c1d7a){const _0x481fbc=a212_0x434d;if(_0x5c1d7a){const _0x44d1b2=_0x5c1d7a[_0x481fbc('0x4b')],_0x2bea25=_0x46becc[_0x481fbc('0x41')];let _0x12dab6=_0x46becc['offset']+_0x46becc[_0x481fbc('0xd')],_0x5bc47e;return _0x12dab6>=_0x44d1b2?(_0x12dab6=_0x44d1b2,_0x5bc47e=0xc8):_0x5bc47e=0xce,_0x1c15bd[_0x481fbc('0x69')](_0x5bc47e),_0x1c15bd['set'](_0x481fbc('0x12'),_0x2bea25+'-'+_0x12dab6+'/'+_0x44d1b2)[_0x481fbc('0x54')](_0x5c1d7a);}return null;};}function saveUpdates(_0x3e5bf8){return function(_0x3b748c){const _0x16294f=a212_0x434d;if(_0x3b748c)return _0x3b748c[_0x16294f('0x50')](_0x3e5bf8)[_0x16294f('0x1a')](function(_0x18e4c8){return _0x18e4c8;});return null;};}function removeEntity(_0x5d2486){return function(_0x25f9ae){const _0x30035a=a212_0x434d;if(_0x25f9ae)return _0x25f9ae[_0x30035a('0x21')]()['then'](function(){const _0xddb8bd=_0x30035a,_0x580886=_0x25f9ae[_0xddb8bd('0x5d')]({'plain':!![]}),_0x365fb8='FaxQueues';return db['UserProfileResource'][_0xddb8bd('0x21')]({'where':{'type':_0x365fb8,'resourceId':_0x580886['id']}})['then'](function(){return _0x25f9ae;});})[_0x30035a('0x1a')](function(){_0x5d2486['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x582152){return function(_0x3e81f7){return!_0x3e81f7&&_0x582152['sendStatus'](0x194),_0x3e81f7;};}function handleError(_0x1a72ef,_0x1a67c6){return _0x1a67c6=_0x1a67c6||0x1f4,function(_0x1afad2){const _0x424f30=a212_0x434d;logger['error'](_0x1afad2['stack']),_0x1afad2[_0x424f30('0x2c')]&&delete _0x1afad2[_0x424f30('0x2c')],_0x1a72ef[_0x424f30('0x69')](_0x1a67c6)[_0x424f30('0x64')](_0x1afad2);};}exports[_0x3ed893('0x6c')]=function(_0x578765,_0x2ef16a){const _0x45c14e=_0x3ed893;let _0x5aaba2={};const _0x3f8e0b={},_0x5e7138={'count':0x0,'rows':[]},_0x507a58=_[_0x45c14e('0x4d')](db['FaxQueue'][_0x45c14e('0x20')],function(_0x39cf1d){const _0x4f49c8=_0x45c14e;return{'name':_0x39cf1d[_0x4f49c8('0x37')],'type':_0x39cf1d[_0x4f49c8('0x5')][_0x4f49c8('0x31')]};});_0x3f8e0b[_0x45c14e('0x1')]=_['map'](_0x507a58,_0x45c14e('0x2c')),_0x3f8e0b[_0x45c14e('0x1f')]=_[_0x45c14e('0x28')](_0x578765[_0x45c14e('0x1f')]),_0x3f8e0b[_0x45c14e('0x5b')]=_[_0x45c14e('0x26')](_0x3f8e0b['model'],_0x3f8e0b[_0x45c14e('0x1f')]),_0x5aaba2[_0x45c14e('0x42')]=_['intersection'](_0x3f8e0b[_0x45c14e('0x1')],qs[_0x45c14e('0x11')](_0x578765[_0x45c14e('0x1f')][_0x45c14e('0x11')])),_0x5aaba2[_0x45c14e('0x42')]=_0x5aaba2[_0x45c14e('0x42')][_0x45c14e('0x32')]?_0x5aaba2[_0x45c14e('0x42')]:_0x3f8e0b[_0x45c14e('0x1')];typeof _0x578765[_0x45c14e('0x1f')][_0x45c14e('0x59')]===_0x45c14e('0x2a')&&(_0x5aaba2['limit']=qs['limit'](_0x578765['query'][_0x45c14e('0xd')]),_0x5aaba2[_0x45c14e('0x41')]=qs[_0x45c14e('0x41')](_0x578765[_0x45c14e('0x1f')][_0x45c14e('0x41')]));_0x5aaba2[_0x45c14e('0x30')]=qs[_0x45c14e('0x16')](_0x578765[_0x45c14e('0x1f')][_0x45c14e('0x16')]),_0x5aaba2[_0x45c14e('0x17')]=qs[_0x45c14e('0x5b')](_[_0x45c14e('0x38')](_0x578765['query'],_0x3f8e0b[_0x45c14e('0x5b')]),_0x507a58);_0x578765[_0x45c14e('0x1f')][_0x45c14e('0x44')]&&(_0x5aaba2[_0x45c14e('0x17')]=_[_0x45c14e('0x45')](_0x5aaba2['where'],{[Op['or']]:_[_0x45c14e('0x4d')](_0x507a58,function(_0xf42323){const _0x182e95=_0x45c14e;if(_0xf42323[_0x182e95('0x5')]!=='VIRTUAL'){const _0x5ca313={};return _0x5ca313[_0xf42323['name']]={[Op['like']]:'%'+_0x578765[_0x182e95('0x1f')][_0x182e95('0x44')]+'%'},_0x5ca313;}})}));_0x5aaba2=_['merge']({},_0x5aaba2,_0x578765[_0x45c14e('0x25')]);const _0x481e63={'where':_0x5aaba2[_0x45c14e('0x17')]};return db[_0x45c14e('0x27')][_0x45c14e('0x4b')](_0x481e63)[_0x45c14e('0x1a')](function(_0xcbf80c){const _0x5dbc6f=_0x45c14e;return _0x5e7138[_0x5dbc6f('0x4b')]=_0xcbf80c,_0x578765['query'][_0x5dbc6f('0x3a')]&&(_0x5aaba2['include']=[{'all':!![]}]),db[_0x5dbc6f('0x27')][_0x5dbc6f('0x48')](_0x5aaba2);})[_0x45c14e('0x1a')](function(_0x2b71de){return _0x5e7138['rows']=_0x2b71de,_0x5e7138;})['then'](respondWithFilteredResult(_0x2ef16a,_0x5aaba2))['catch'](handleError(_0x2ef16a,null));},exports[_0x3ed893('0x1c')]=function(_0x2272e7,_0x49fd16){const _0x1a0593=_0x3ed893;let _0x22d54f={'raw':!![],'where':{'id':_0x2272e7[_0x1a0593('0x5f')]['id']}};const _0x20963f={};return _0x20963f[_0x1a0593('0x1')]=_[_0x1a0593('0x28')](db['FaxQueue'][_0x1a0593('0x20')]),_0x20963f[_0x1a0593('0x1f')]=_['keys'](_0x2272e7[_0x1a0593('0x1f')]),_0x20963f[_0x1a0593('0x5b')]=_[_0x1a0593('0x26')](_0x20963f[_0x1a0593('0x1')],_0x20963f['query']),_0x22d54f[_0x1a0593('0x42')]=_[_0x1a0593('0x26')](_0x20963f[_0x1a0593('0x1')],qs['fields'](_0x2272e7[_0x1a0593('0x1f')][_0x1a0593('0x11')])),_0x22d54f[_0x1a0593('0x42')]=_0x22d54f['attributes'][_0x1a0593('0x32')]?_0x22d54f['attributes']:_0x20963f[_0x1a0593('0x1')],_0x2272e7['query']['includeAll']&&(_0x22d54f['include']=[{'all':!![]}]),_0x22d54f=_[_0x1a0593('0x45')]({},_0x22d54f,_0x2272e7[_0x1a0593('0x25')]),db[_0x1a0593('0x27')][_0x1a0593('0x3d')](_0x22d54f)[_0x1a0593('0x1a')](handleEntityNotFound(_0x49fd16,null))[_0x1a0593('0x1a')](respondWithResult(_0x49fd16,null))[_0x1a0593('0x65')](handleError(_0x49fd16,null));},exports[_0x3ed893('0x6b')]=function(_0x46b1c6,_0x584f64){const _0x581b0a=_0x3ed893;return db['FaxQueue'][_0x581b0a('0x6b')](_0x46b1c6[_0x581b0a('0x52')],{})[_0x581b0a('0x1a')](function(_0x1785b3){const _0x311d28=_0x581b0a,_0x429f78=_0x46b1c6[_0x311d28('0x9')][_0x311d28('0x5d')]({'plain':!![]});if(!_0x429f78)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x429f78[_0x311d28('0x53')]==='user'){const _0x2f7cef=_0x1785b3[_0x311d28('0x5d')]({'plain':!![]}),_0x49e92f=_0x311d28('0x60');return db[_0x311d28('0x67')][_0x311d28('0x3d')]({'where':{'name':_0x49e92f,'userProfileId':_0x429f78[_0x311d28('0x24')]},'raw':!![]})['then'](function(_0x4a2ce1){const _0x4beef7=_0x311d28;return _0x4a2ce1&&_0x4a2ce1['autoAssociation']===0x0?db['UserProfileResource'][_0x4beef7('0x6b')]({'name':_0x2f7cef[_0x4beef7('0x2c')],'resourceId':_0x2f7cef['id'],'type':_0x4a2ce1[_0x4beef7('0x2c')],'sectionId':_0x4a2ce1['id']},{})[_0x4beef7('0x1a')](function(){return _0x1785b3;}):_0x1785b3;})[_0x311d28('0x65')](function(_0x1acc71){const _0x197b72=_0x311d28;logger['error'](_0x197b72('0x57'),_0x1acc71);throw _0x1acc71;});}return _0x1785b3;})[_0x581b0a('0x1a')](respondWithResult(_0x584f64,0xc9))['catch'](handleError(_0x584f64,null));},exports[_0x3ed893('0x50')]=function(_0x39377e,_0x41c376){const _0xc85dff=_0x3ed893;return _0x39377e['body']['id']&&delete _0x39377e[_0xc85dff('0x52')]['id'],db[_0xc85dff('0x27')]['findOne']({'where':{'id':_0x39377e[_0xc85dff('0x5f')]['id']}})[_0xc85dff('0x1a')](handleEntityNotFound(_0x41c376,null))[_0xc85dff('0x1a')](saveUpdates(_0x39377e[_0xc85dff('0x52')],null))[_0xc85dff('0x1a')](respondWithResult(_0x41c376,null))['catch'](handleError(_0x41c376,null));},exports['destroy']=function(_0x5a1387,_0x39dd6c){const _0x577f96=_0x3ed893;return db['FaxQueue'][_0x577f96('0x3d')]({'where':{'id':_0x5a1387[_0x577f96('0x5f')]['id']}})['then'](handleEntityNotFound(_0x39dd6c,null))[_0x577f96('0x1a')](removeEntity(_0x39dd6c,null))[_0x577f96('0x65')](handleError(_0x39dd6c,null));},exports['describe']=function(_0x26ecba,_0x96e2b){const _0x508e10=_0x3ed893;return db['FaxQueue'][_0x508e10('0x2d')]()[_0x508e10('0x1a')](respondWithResult(_0x96e2b,null))['catch'](handleError(_0x96e2b,null));},exports[_0x3ed893('0x4a')]=function(_0x360aae,_0x5cf422){const _0xbb1ea6=_0x3ed893;let _0x19ed45={'raw':!![],'where':{}};const _0xea525e={};let _0x285f9e;return db[_0xbb1ea6('0x27')][_0xbb1ea6('0x3d')]({'where':{'id':_0x360aae[_0xbb1ea6('0x5f')]['id']}})['then'](handleEntityNotFound(_0x5cf422,null))['then'](function(_0xc374a2){const _0x43c899=_0xbb1ea6;if(_0xc374a2)return _0x285f9e=_0xc374a2['get']({'plain':!![]}),_0xea525e[_0x43c899('0x1')]=_[_0x43c899('0x28')](db['UserFaxQueue'][_0x43c899('0x20')]),_0xea525e[_0x43c899('0x1f')]=_[_0x43c899('0x28')](_0x360aae['query']),_0xea525e['filters']=_[_0x43c899('0x26')](_0xea525e['model'],_0xea525e['query']),_0x19ed45[_0x43c899('0x42')]=_[_0x43c899('0x26')](_0xea525e[_0x43c899('0x1')],qs['fields'](_0x360aae[_0x43c899('0x1f')][_0x43c899('0x11')])),_0x19ed45[_0x43c899('0x42')]=_0x19ed45[_0x43c899('0x42')][_0x43c899('0x32')]?_0x19ed45[_0x43c899('0x42')]:_0xea525e['model'],typeof _0x360aae[_0x43c899('0x1f')]['nolimit']===_0x43c899('0x2a')&&(_0x19ed45[_0x43c899('0xd')]=qs[_0x43c899('0xd')](_0x360aae[_0x43c899('0x1f')][_0x43c899('0xd')]),_0x19ed45[_0x43c899('0x41')]=qs['offset'](_0x360aae['query']['offset'])),_0x19ed45['order']=qs[_0x43c899('0x16')](_0x360aae[_0x43c899('0x1f')]['sort']),_0x19ed45[_0x43c899('0x17')]=qs['filters'](_['pick'](_0x360aae[_0x43c899('0x1f')],_0xea525e['filters'])),_0x19ed45[_0x43c899('0x17')][_0x43c899('0x5a')]=_0xc374a2['id'],_0x360aae[_0x43c899('0x1f')]['filter']&&(_0x19ed45[_0x43c899('0x17')]=_[_0x43c899('0x45')](_0x19ed45[_0x43c899('0x17')],{[Op['or']]:_['map'](_0x19ed45[_0x43c899('0x42')],function(_0x4edfef){const _0x4d734d=_0x43c899,_0x418b46={};return _0x418b46[_0x4edfef]={[Op[_0x4d734d('0xe')]]:'%'+_0x360aae['query'][_0x4d734d('0x44')]+'%'},_0x418b46;})})),_0x19ed45=_['merge']({},_0x19ed45,_0x360aae[_0x43c899('0x25')]),db['UserFaxQueue'][_0x43c899('0x48')](_0x19ed45);})[_0xbb1ea6('0x1a')](function(_0x53763c){const _0x5a3c96=_0xbb1ea6;if(_0x53763c)return db['User'][_0x5a3c96('0x5c')]({'where':{'id':_['map'](_0x53763c,'UserId'),'role':_0x5a3c96('0x66')},'attributes':['id','name',_0x5a3c96('0x46'),_0x5a3c96('0x4c'),_0x5a3c96('0x6f')]});})['then'](function(_0x25e42b){const _0x27496b=_0xbb1ea6;return _0x25e42b?{'count':_0x25e42b[_0x27496b('0x4b')],'rows':_[_0x27496b('0x4d')](_0x25e42b[_0x27496b('0x8')],function(_0x44daa8){const _0x5a4951=_0x27496b;return{'membername':_0x44daa8[_0x5a4951('0x2c')],'UserId':_0x44daa8['id'],'queue_name':_0x285f9e[_0x5a4951('0x2c')],'FaxQueueId':_0x285f9e['id'],'interface':util[_0x5a4951('0x35')](_0x5a4951('0x15'),_0x5a4951('0x1e'),_0x44daa8[_0x5a4951('0x2c')]),'penalty':0x0,'paused':_0x44daa8[_0x5a4951('0x46')],'createdAt':_0x44daa8['createdAt'],'updatedAt':_0x44daa8[_0x5a4951('0x4c')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x5cf422,_0x19ed45))['catch'](handleError(_0x5cf422,null));},exports[_0x3ed893('0x55')]=function(_0x567e8b,_0x2e4471){const _0x476080=_0x3ed893;let _0x5ab1a3={};const _0x337def={};let _0x56b19f,_0x5d275d;return db[_0x476080('0x27')][_0x476080('0x3d')]({'where':{'id':_0x567e8b[_0x476080('0x5f')]['id']}})[_0x476080('0x1a')](handleEntityNotFound(_0x2e4471,null))[_0x476080('0x1a')](function(_0x3e6941){const _0x2eb1f5=_0x476080;if(_0x3e6941)return _0x56b19f=_0x3e6941,_0x337def[_0x2eb1f5('0x1')]=_[_0x2eb1f5('0x28')](db['Team'][_0x2eb1f5('0x20')]),_0x337def[_0x2eb1f5('0x1f')]=_[_0x2eb1f5('0x28')](_0x567e8b[_0x2eb1f5('0x1f')]),_0x337def[_0x2eb1f5('0x5b')]=_[_0x2eb1f5('0x26')](_0x337def[_0x2eb1f5('0x1')],_0x337def[_0x2eb1f5('0x1f')]),_0x5ab1a3[_0x2eb1f5('0x42')]=_[_0x2eb1f5('0x26')](_0x337def[_0x2eb1f5('0x1')],qs[_0x2eb1f5('0x11')](_0x567e8b[_0x2eb1f5('0x1f')][_0x2eb1f5('0x11')])),_0x5ab1a3['attributes']=_0x5ab1a3[_0x2eb1f5('0x42')][_0x2eb1f5('0x32')]?_0x5ab1a3[_0x2eb1f5('0x42')]:_0x337def[_0x2eb1f5('0x1')],_0x5ab1a3[_0x2eb1f5('0x30')]=qs[_0x2eb1f5('0x16')](_0x567e8b[_0x2eb1f5('0x1f')][_0x2eb1f5('0x16')]),_0x5ab1a3['where']=qs['filters'](_[_0x2eb1f5('0x38')](_0x567e8b['query'],_0x337def[_0x2eb1f5('0x5b')])),_0x567e8b[_0x2eb1f5('0x1f')]['filter']&&(_0x5ab1a3[_0x2eb1f5('0x17')]=_['merge'](_0x5ab1a3['where'],{[Op['or']]:_[_0x2eb1f5('0x4d')](_0x5ab1a3['attributes'],function(_0x4744b5){const _0x53fbcf=_0x2eb1f5,_0x4bad84={};return _0x4bad84[_0x4744b5]={[Op['like']]:'%'+_0x567e8b[_0x53fbcf('0x1f')][_0x53fbcf('0x44')]+'%'},_0x4bad84;})})),_0x5ab1a3=_['merge']({},_0x5ab1a3,_0x567e8b[_0x2eb1f5('0x25')]),_0x56b19f[_0x2eb1f5('0x55')](_0x5ab1a3);})['then'](function(_0x2ecd71){const _0x1cd4a4=_0x476080;if(_0x2ecd71)return _0x5d275d=_0x2ecd71[_0x1cd4a4('0x32')],typeof _0x567e8b[_0x1cd4a4('0x1f')][_0x1cd4a4('0x59')]===_0x1cd4a4('0x2a')&&(_0x5ab1a3[_0x1cd4a4('0xd')]=qs['limit'](_0x567e8b[_0x1cd4a4('0x1f')][_0x1cd4a4('0xd')]),_0x5ab1a3['offset']=qs[_0x1cd4a4('0x41')](_0x567e8b['query'][_0x1cd4a4('0x41')])),_0x56b19f[_0x1cd4a4('0x55')](_0x5ab1a3);})[_0x476080('0x1a')](function(_0x4626e5){if(_0x4626e5)return _0x4626e5?{'count':_0x5d275d,'rows':_0x4626e5}:null;})[_0x476080('0x1a')](respondWithResult(_0x2e4471,null))[_0x476080('0x65')](handleError(_0x2e4471,null));},exports['addTeams']=function(_0x56c4a5,_0x1191dc){const _0x2f35cc=_0x3ed893,_0x15da1a=_0x56c4a5['body'][_0x2f35cc('0xb')];return db['Team']['findAll']({'where':{'id':_0x15da1a},'attributes':['id'],'include':[{'model':db[_0x2f35cc('0x22')],'as':_0x2f35cc('0x6a'),'attributes':['id',_0x2f35cc('0x2c'),'online',_0x2f35cc('0x70'),'interface'],'raw':!![]}]})[_0x2f35cc('0x1a')](function(_0x4e0020){const _0x51170e=_0x2f35cc;if(_0x4e0020){const _0x17895d=_[_0x51170e('0x49')](_0x4e0020,function(_0x508add){const _0x3bb48d=_0x51170e,_0x45344a=_0x508add[_0x3bb48d('0x5d')]({'plain':!![]});return _0x45344a['Agents'];});return db[_0x51170e('0x27')][_0x51170e('0x3d')]({'where':{'id':_0x56c4a5[_0x51170e('0x5f')]['id']}})[_0x51170e('0x1a')](function(_0x43ed63){const _0x1cf928=_0x51170e;return db[_0x1cf928('0x1d')][_0x1cf928('0x4')](function(_0x3dea89){const _0x3096a6=_0x1cf928;return _0x43ed63[_0x3096a6('0x5e')](_0x15da1a,{'transaction':_0x3dea89})[_0x3096a6('0x1a')](function(){const _0x1f1dc5=_0x3096a6;return Promise[_0x1f1dc5('0x34')](_0x17895d,function(_0x356f88){const _0x1a278b=_0x1f1dc5;return db[_0x1a278b('0x19')][_0x1a278b('0x51')]({'where':{'UserId':_0x356f88['id'],'FaxQueueId':_0x56c4a5[_0x1a278b('0x5f')]['id']},'transaction':_0x3dea89});});})[_0x3096a6('0x1a')](function(){const _0x3f1ea0=_0x3096a6;_0x17895d[_0x3f1ea0('0x56')](function(_0x429df5){const _0x50d729=_0x3f1ea0;socket[_0x50d729('0x4e')]('userFaxQueue:save',{'UserId':_0x429df5['id'],'FaxQueueId':_0x43ed63['id']});});});});});}})[_0x2f35cc('0x1a')](respondWithStatusCode(_0x1191dc,null))['catch'](handleError(_0x1191dc,null));},exports[_0x3ed893('0x36')]=function(_0x1c7509,_0x33f074){const _0x3bbdbd=_0x3ed893;return db[_0x3bbdbd('0x2')]['findAll']({'where':{'id':_0x1c7509[_0x3bbdbd('0x1f')][_0x3bbdbd('0xb')]},'attributes':['id'],'include':[{'model':db[_0x3bbdbd('0x22')],'as':_0x3bbdbd('0x6a'),'attributes':['id'],'raw':!![]}]})[_0x3bbdbd('0x1a')](handleEntityNotFound(_0x33f074,null))[_0x3bbdbd('0x1a')](function(_0x2cbbd2){const _0x5b4185=_0x3bbdbd,_0xc5bbf8=_[_0x5b4185('0x4d')](_0x2cbbd2,'id');let _0x218118=[];const _0x21fb5b=[],_0x48be7f=squel[_0x5b4185('0x10')]();_0x48be7f[_0x5b4185('0x23')](_0x5b4185('0x14'))[_0x5b4185('0xf')](_0x5b4185('0x61'),'tq')[_0x5b4185('0x13')](_0x5b4185('0x0'),'ut',_0x5b4185('0x4f'))['where']('FaxQueueId\x20=\x20?',_0x1c7509[_0x5b4185('0x5f')]['id']);for(let _0x456845=0x0;_0x456845<_0x2cbbd2[_0x5b4185('0x32')];_0x456845+=0x1){const _0x574355=_0x2cbbd2[_0x456845];for(let _0xa1ea9e=0x0;_0xa1ea9e<_0x574355[_0x5b4185('0x6a')][_0x5b4185('0x32')];_0xa1ea9e+=0x1){const _0x23bf69=_0x574355[_0x5b4185('0x6a')][_0xa1ea9e],_0x3888a8=_0x48be7f['clone']();_0x3888a8['where'](_0x5b4185('0x58'),_0x23bf69['id']),_0x21fb5b[_0x5b4185('0x33')](db['sequelize'][_0x5b4185('0x1f')](_0x3888a8[_0x5b4185('0x3e')](),{'type':QueryTypes[_0x5b4185('0x68')]})[_0x5b4185('0x1a')](function(_0x49fc81){const _0x4119b2=_0x5b4185;if(_0x49fc81[_0x4119b2('0x32')]===0x1)return _0x23bf69['id'];else{const _0x1ac9db=_[_0x4119b2('0x3b')](_[_0x4119b2('0x4d')](_0x49fc81,_0x4119b2('0x2b')),function(_0x33119d){const _0xd27398=_0x4119b2;return _[_0xd27398('0x6')](_0xc5bbf8,_0x33119d);});if(_0x1ac9db)return _0x23bf69['id'];}}));}}return Promise[_0x5b4185('0x63')](_0x21fb5b)[_0x5b4185('0x1a')](function(_0x361fa0){const _0x2e2fe3=_0x5b4185;return _0x218118=_(_0x218118)[_0x2e2fe3('0x2e')](_0x361fa0)['compact']()[_0x2e2fe3('0x7')](),db['FaxQueue'][_0x2e2fe3('0x3d')]({'where':{'id':_0x1c7509[_0x2e2fe3('0x5f')]['id']}})['then'](function(_0x5cf8b3){const _0x56cba8=_0x2e2fe3;return db[_0x56cba8('0x1d')]['transaction'](function(_0x57fc42){const _0x5dd5c9=_0x56cba8;return _0x5cf8b3['removeTeams'](_0x1c7509[_0x5dd5c9('0x1f')][_0x5dd5c9('0xb')],{'transaction':_0x57fc42})[_0x5dd5c9('0x1a')](function(){const _0x658fef=_0x5dd5c9;if(!_[_0x658fef('0x2f')](_0x218118))return _0x5cf8b3['removeAgents'](_0x218118,{'transaction':_0x57fc42});})[_0x5dd5c9('0x1a')](function(){const _0x5f7a1b=_0x5dd5c9;_0x218118[_0x5f7a1b('0x56')](function(_0x66c998){const _0x82821a=_0x5f7a1b;socket[_0x82821a('0x4e')](_0x82821a('0x18'),{'UserId':_0x66c998,'FaxQueueId':_0x5cf8b3['id']});});});});});});})['then'](respondWithStatusCode(_0x33f074,null))[_0x3bbdbd('0x65')](handleError(_0x33f074,null));},exports[_0x3ed893('0x40')]=function(_0x561063,_0x40191a){const _0x2bc86c=_0x3ed893;return db[_0x2bc86c('0x27')][_0x2bc86c('0x3d')]({'where':{'id':_0x561063[_0x2bc86c('0x5f')]['id']}})[_0x2bc86c('0x1a')](function(_0x4c5205){const _0x404294=_0x2bc86c;if(_0x4c5205)return _0x4c5205['addAgents'](_0x561063[_0x404294('0x52')][_0x404294('0xb')],{'through':_['omit'](_0x561063[_0x404294('0x52')],[_0x404294('0xb'),'id'])})['then'](function(_0x257527){const _0x55cf7d=_0x404294;for(let _0x325918=0x0;_0x325918<_0x561063[_0x55cf7d('0x52')][_0x55cf7d('0xb')][_0x55cf7d('0x32')];_0x325918+=0x1){socket[_0x55cf7d('0x4e')](_0x55cf7d('0x62'),{'UserId':_0x561063[_0x55cf7d('0x52')][_0x55cf7d('0xb')][_0x325918],'FaxQueueId':_0x561063['params']['id']});}return _0x257527;});})[_0x2bc86c('0x1a')](respondWithResult(_0x40191a,null))[_0x2bc86c('0x65')](handleError(_0x40191a,null));},exports[_0x3ed893('0xa')]=function(_0x30fd86,_0x356147){const _0x44b05d=_0x3ed893;return db[_0x44b05d('0x27')]['findOne']({'where':{'id':_0x30fd86[_0x44b05d('0x5f')]['id']}})['then'](handleEntityNotFound(_0x356147,null))['then'](function(_0x1db6f3){const _0x588b3f=_0x44b05d;if(_0x1db6f3)return _0x1db6f3['removeAgents'](_0x30fd86[_0x588b3f('0x1f')][_0x588b3f('0xb')])[_0x588b3f('0x1a')](function(){const _0x415e78=_0x588b3f;if(_[_0x415e78('0x39')](_0x30fd86[_0x415e78('0x1f')][_0x415e78('0xb')]))for(let _0x4a0372=0x0;_0x4a0372<_0x30fd86[_0x415e78('0x1f')][_0x415e78('0xb')][_0x415e78('0x32')];_0x4a0372+=0x1){socket[_0x415e78('0x4e')](_0x415e78('0x18'),{'UserId':Number(_0x30fd86[_0x415e78('0x1f')][_0x415e78('0xb')][_0x4a0372]),'FaxQueueId':Number(_0x30fd86[_0x415e78('0x5f')]['id'])});}else socket['emit']('userFaxQueue:remove',{'UserId':Number(_0x30fd86[_0x415e78('0x1f')]['ids']),'FaxQueueId':Number(_0x30fd86[_0x415e78('0x5f')]['id'])});});})[_0x44b05d('0x1a')](respondWithStatusCode(_0x356147,null))[_0x44b05d('0x65')](handleError(_0x356147,null));},exports['getAgents']=function(_0x2617d0,_0x43280f){const _0xc6a3f4=_0x3ed893;let _0x500f8c={};const _0x50551c={};let _0x501b14,_0x9c2444;return db['FaxQueue']['findOne']({'where':{'id':_0x2617d0[_0xc6a3f4('0x5f')]['id']}})[_0xc6a3f4('0x1a')](handleEntityNotFound(_0x43280f,null))[_0xc6a3f4('0x1a')](function(_0x310262){const _0x4d4e39=_0xc6a3f4;if(_0x310262)return _0x501b14=_0x310262,_0x50551c[_0x4d4e39('0x1')]=_[_0x4d4e39('0x28')](db[_0x4d4e39('0x22')][_0x4d4e39('0x20')]),_0x50551c[_0x4d4e39('0x1f')]=_[_0x4d4e39('0x28')](_0x2617d0[_0x4d4e39('0x1f')]),_0x50551c[_0x4d4e39('0x5b')]=_[_0x4d4e39('0x26')](_0x50551c[_0x4d4e39('0x1')],_0x50551c['query']),_0x500f8c[_0x4d4e39('0x42')]=_['intersection'](_0x50551c[_0x4d4e39('0x1')],qs['fields'](_0x2617d0[_0x4d4e39('0x1f')][_0x4d4e39('0x11')])),_0x500f8c[_0x4d4e39('0x42')]=_0x500f8c[_0x4d4e39('0x42')][_0x4d4e39('0x32')]?_0x500f8c[_0x4d4e39('0x42')]:_0x50551c['model'],_0x500f8c[_0x4d4e39('0x30')]=qs[_0x4d4e39('0x16')](_0x2617d0[_0x4d4e39('0x1f')][_0x4d4e39('0x16')]),_0x500f8c[_0x4d4e39('0x17')]=qs['filters'](_[_0x4d4e39('0x38')](_0x2617d0[_0x4d4e39('0x1f')],_0x50551c[_0x4d4e39('0x5b')])),_0x2617d0[_0x4d4e39('0x1f')][_0x4d4e39('0x44')]&&(_0x500f8c[_0x4d4e39('0x17')]=_[_0x4d4e39('0x45')](_0x500f8c[_0x4d4e39('0x17')],{[Op['or']]:_[_0x4d4e39('0x4d')](_0x500f8c[_0x4d4e39('0x42')],function(_0x59afff){const _0x3281e4=_0x4d4e39,_0x345138={};return _0x345138[_0x59afff]={[Op[_0x3281e4('0xe')]]:'%'+_0x2617d0['query'][_0x3281e4('0x44')]+'%'},_0x345138;})})),_0x500f8c=_[_0x4d4e39('0x45')]({},_0x500f8c,_0x2617d0[_0x4d4e39('0x25')]),_0x501b14[_0x4d4e39('0x3c')](_0x500f8c);})[_0xc6a3f4('0x1a')](function(_0x288a71){const _0x127a9b=_0xc6a3f4;if(_0x288a71)return _0x9c2444=_0x288a71[_0x127a9b('0x32')],typeof _0x2617d0['query'][_0x127a9b('0x59')]==='undefined'&&(_0x500f8c[_0x127a9b('0xd')]=qs['limit'](_0x2617d0[_0x127a9b('0x1f')][_0x127a9b('0xd')]),_0x500f8c[_0x127a9b('0x41')]=qs[_0x127a9b('0x41')](_0x2617d0[_0x127a9b('0x1f')][_0x127a9b('0x41')])),_0x501b14[_0x127a9b('0x3c')](_0x500f8c);})[_0xc6a3f4('0x1a')](function(_0x3963ee){if(_0x3963ee)return _0x3963ee?{'count':_0x9c2444,'rows':_0x3963ee}:null;})[_0xc6a3f4('0x1a')](respondWithResult(_0x43280f,null))['catch'](handleError(_0x43280f,null));}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index 3269008..9fc21f5 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a213_0x2edb=['undefined','events','update','addHook','emit','remove','../../mysqldb','setMaxListeners'];(function(_0x2ff9b7,_0x2edb36){const _0x237093=function(_0x3ad857){while(--_0x3ad857){_0x2ff9b7['push'](_0x2ff9b7['shift']());}};_0x237093(++_0x2edb36);}(a213_0x2edb,0xf9));const a213_0x2370=function(_0x2ff9b7,_0x2edb36){_0x2ff9b7=_0x2ff9b7-0x0;let _0x237093=a213_0x2edb[_0x2ff9b7];return _0x237093;};const _0x4bbe2f=a213_0x2370;'use strict';const EventEmitter=require(_0x4bbe2f('0x0')),FaxQueue=require(_0x4bbe2f('0x5'))['db']['FaxQueue'],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x4bbe2f('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4bbe2f('0x1'),'afterDestroy':_0x4bbe2f('0x4')};function emitEvent(_0x3ad857){return function(_0x549c11){const _0x4ef1a3=a213_0x2370;FaxQueueEvents[_0x4ef1a3('0x3')](_0x3ad857+':'+_0x549c11['id'],_0x549c11),FaxQueueEvents[_0x4ef1a3('0x3')](_0x3ad857,_0x549c11);};}for(const e in events){if(typeof events[e]!==_0x4bbe2f('0x7')){const event=events[e];FaxQueue[_0x4bbe2f('0x2')](e,emitEvent(event));}}module['exports']=FaxQueueEvents; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.model.js b/server/api/faxQueue/faxQueue.model.js index 798a0bf..7ff640a 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a214_0x5e7c=['./faxQueue.attributes','exports','define','fax_queues'];(function(_0x42e5c9,_0x5e7c30){const _0x2a1fa6=function(_0x411a36){while(--_0x411a36){_0x42e5c9['push'](_0x42e5c9['shift']());}};_0x2a1fa6(++_0x5e7c30);}(a214_0x5e7c,0x144));const a214_0x2a1f=function(_0x42e5c9,_0x5e7c30){_0x42e5c9=_0x42e5c9-0x0;let _0x2a1fa6=a214_0x5e7c[_0x42e5c9];return _0x2a1fa6;};const _0x2539df=a214_0x2a1f;'use strict';const attributes=require(_0x2539df('0x0'));module[_0x2539df('0x1')]=function(_0x411a36){const _0x30418b=_0x2539df,_0x3a8d1c=_0x411a36[_0x30418b('0x2')]('FaxQueue',attributes,{'tableName':_0x30418b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a8d1c;}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index 082a0fd..34ca098 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a215_0x39d9=['options','findOne','./faxQueue.socket','attributes','info','error','include','GetFaxQueue','../../rediscache','debug','register','model','then','where','findAll','map','message','catch','raw','stringify','ShowFaxQueue','limit','lodash','FaxQueue','rpc'];(function(_0x4ebab9,_0x39d9d5){const _0x3aca7a=function(_0x85dda4){while(--_0x85dda4){_0x4ebab9['push'](_0x4ebab9['shift']());}};_0x3aca7a(++_0x39d9d5);}(a215_0x39d9,0xbc));const a215_0x3aca=function(_0x4ebab9,_0x39d9d5){_0x4ebab9=_0x4ebab9-0x0;let _0x3aca7a=a215_0x39d9[_0x4ebab9];return _0x3aca7a;};const _0x480f06=a215_0x3aca;'use strict';const _=require(_0x480f06('0x9')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x480f06('0xb')),{getSocket}=require(_0x480f06('0x14')),socket=getSocket();require(_0x480f06('0xe'))[_0x480f06('0x16')](socket),exports[_0x480f06('0x13')]=function(_0x85dda4){const _0x322ede=this;return new Promise(function(_0x309058,_0x316ea3){const _0x48354a=a215_0x3aca;return db[_0x48354a('0xa')][_0x48354a('0x1')]({'raw':_0x85dda4[_0x48354a('0xc')]?_0x85dda4[_0x48354a('0xc')]['raw']===undefined?!![]:![]:!![],'where':_0x85dda4['options']?_0x85dda4[_0x48354a('0xc')][_0x48354a('0x0')]||null:null,'attributes':_0x85dda4[_0x48354a('0xc')]?_0x85dda4[_0x48354a('0xc')][_0x48354a('0xf')]||null:null,'limit':_0x85dda4['options']?_0x85dda4[_0x48354a('0xc')][_0x48354a('0x8')]||null:null,'include':_0x85dda4['options']?_0x85dda4[_0x48354a('0xc')][_0x48354a('0x12')]?_[_0x48354a('0x2')](_0x85dda4[_0x48354a('0xc')][_0x48354a('0x12')],function(_0x4b8b9d){const _0x447638=_0x48354a;return{'model':db[_0x4b8b9d[_0x447638('0x17')]],'as':_0x4b8b9d['as'],'attributes':_0x4b8b9d['attributes'],'include':_0x4b8b9d[_0x447638('0x12')]?_[_0x447638('0x2')](_0x4b8b9d[_0x447638('0x12')],function(_0x38660d){const _0x45d6c4=_0x447638;return{'model':db[_0x38660d[_0x45d6c4('0x17')]],'as':_0x38660d['as'],'attributes':_0x38660d[_0x45d6c4('0xf')],'include':_0x38660d[_0x45d6c4('0x12')]?_[_0x45d6c4('0x2')](_0x38660d['include'],function(_0x25cace){const _0x15507a=_0x45d6c4;return{'model':db[_0x25cace[_0x15507a('0x17')]],'as':_0x25cace['as'],'attributes':_0x25cace['attributes']};}):[]};}):[]};}):[]:[]})[_0x48354a('0x18')](function(_0x2cc2bb){const _0x3392b9=_0x48354a;logger['info'](_0x3392b9('0x13'),_0x85dda4),logger[_0x3392b9('0x15')](_0x3392b9('0x13'),_0x85dda4,JSON[_0x3392b9('0x6')](_0x2cc2bb)),_0x309058(_0x2cc2bb);})[_0x48354a('0x4')](function(_0x217337){const _0x121969=_0x48354a;logger[_0x121969('0x11')]('GetFaxQueue',_0x217337['message'],_0x85dda4),_0x316ea3(_0x322ede[_0x121969('0x11')](0x1f4,_0x217337['message']));});});},exports[_0x480f06('0x7')]=function(_0x1a4a8c){const _0x175a74=this;return new Promise(function(_0x411ef5,_0x58199e){const _0x13737d=a215_0x3aca;return db[_0x13737d('0xa')][_0x13737d('0xd')]({'raw':_0x1a4a8c[_0x13737d('0xc')]?_0x1a4a8c['options'][_0x13737d('0x5')]===undefined?!![]:![]:!![],'where':_0x1a4a8c[_0x13737d('0xc')]?_0x1a4a8c[_0x13737d('0xc')]['where']||null:null,'attributes':_0x1a4a8c['options']?_0x1a4a8c['options'][_0x13737d('0xf')]||null:null,'include':_0x1a4a8c[_0x13737d('0xc')]?_0x1a4a8c[_0x13737d('0xc')]['include']?_[_0x13737d('0x2')](_0x1a4a8c['options']['include'],function(_0x36387f){const _0x285660=_0x13737d;return{'model':db[_0x36387f['model']],'as':_0x36387f['as'],'attributes':_0x36387f[_0x285660('0xf')],'include':_0x36387f['include']?_[_0x285660('0x2')](_0x36387f[_0x285660('0x12')],function(_0x235a59){const _0x3a7e51=_0x285660;return{'model':db[_0x235a59['model']],'as':_0x235a59['as'],'attributes':_0x235a59[_0x3a7e51('0xf')],'include':_0x235a59[_0x3a7e51('0x12')]?_[_0x3a7e51('0x2')](_0x235a59['include'],function(_0x396b1e){const _0x4d0ca3=_0x3a7e51;return{'model':db[_0x396b1e[_0x4d0ca3('0x17')]],'as':_0x396b1e['as'],'attributes':_0x396b1e[_0x4d0ca3('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1c53fa){const _0x5f5411=_0x13737d;logger[_0x5f5411('0x10')]('ShowFaxQueue',_0x1a4a8c),logger[_0x5f5411('0x15')]('ShowFaxQueue',_0x1a4a8c,JSON[_0x5f5411('0x6')](_0x1c53fa)),_0x411ef5(_0x1c53fa);})[_0x13737d('0x4')](function(_0x10a7b2){const _0x4e3fd5=_0x13737d;logger[_0x4e3fd5('0x11')](_0x4e3fd5('0x7'),_0x10a7b2[_0x4e3fd5('0x3')],_0x1a4a8c),_0x58199e(_0x175a74[_0x4e3fd5('0x11')](0x1f4,_0x10a7b2[_0x4e3fd5('0x3')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index bbc1b27..a87a8da 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a216_0x2a5b=['update','save','length','faxQueue:','remove','./faxQueue.events','emit'];(function(_0x1655dc,_0x2a5bbf){const _0x5b6965=function(_0x1e2ff8){while(--_0x1e2ff8){_0x1655dc['push'](_0x1655dc['shift']());}};_0x5b6965(++_0x2a5bbf);}(a216_0x2a5b,0xe4));const a216_0x5b69=function(_0x1655dc,_0x2a5bbf){_0x1655dc=_0x1655dc-0x0;let _0x5b6965=a216_0x2a5b[_0x1655dc];return _0x5b6965;};const _0x4d6041=a216_0x5b69;'use strict';const FaxQueueEvents=require(_0x4d6041('0x1')),events=[_0x4d6041('0x4'),_0x4d6041('0x0'),_0x4d6041('0x3')];function createListener(_0x1e2ff8,_0x1be69c){return function(_0x23a57e){const _0x646874=a216_0x5b69;_0x1be69c[_0x646874('0x2')](_0x1e2ff8,_0x23a57e);};}exports['register']=function(_0x255391){const _0x5a79e6=_0x4d6041;for(let _0x8633e0=0x0,_0x2ee9af=events[_0x5a79e6('0x5')];_0x8633e0<_0x2ee9af;_0x8633e0++){const _0xdc8390=events[_0x8633e0],_0x18fcec=createListener(_0x5a79e6('0x6')+_0xdc8390,_0x255391);FaxQueueEvents['on'](_0xdc8390,_0x18fcec);}}; \ No newline at end of file +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 diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index d69ae52..246cecd 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a217_0x1998=['/:id/teams','post','removeAgents','delete','isAuthenticated','Router','addTeams','exports','describe','express','update','create','show','/:id/users','removeTeams','get','destroy','/describe','getMembers','../../components/auth/service','addAgents','/:id','/:id/members','index'];(function(_0x5d5d70,_0x19982e){const _0x544776=function(_0xa23aeb){while(--_0xa23aeb){_0x5d5d70['push'](_0x5d5d70['shift']());}};_0x544776(++_0x19982e);}(a217_0x1998,0x8e));const a217_0x5447=function(_0x5d5d70,_0x19982e){_0x5d5d70=_0x5d5d70-0x0;let _0x544776=a217_0x1998[_0x5d5d70];return _0x544776;};const _0x5572f5=a217_0x5447;'use strict';const express=require(_0x5572f5('0xb')),router=express[_0x5572f5('0x7')](),auth=require(_0x5572f5('0x15')),controller=require('./faxQueue.controller');router[_0x5572f5('0x11')]('/',auth['isAuthenticated'](),controller[_0x5572f5('0x1')]),router[_0x5572f5('0x11')](_0x5572f5('0x13'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0xa')]),router['get'](_0x5572f5('0x17'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0xe')]),router[_0x5572f5('0x11')](_0x5572f5('0x0'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0x14')]),router['get'](_0x5572f5('0x2'),auth[_0x5572f5('0x6')](),controller['getTeams']),router['get'](_0x5572f5('0xf'),auth[_0x5572f5('0x6')](),controller['getAgents']),router[_0x5572f5('0x3')]('/',auth[_0x5572f5('0x6')](),controller[_0x5572f5('0xd')]),router[_0x5572f5('0x3')]('/:id/teams',auth['isAuthenticated'](),controller[_0x5572f5('0x8')]),router[_0x5572f5('0x3')]('/:id/users',auth['isAuthenticated'](),controller[_0x5572f5('0x16')]),router['put'](_0x5572f5('0x17'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0xc')]),router[_0x5572f5('0x5')](_0x5572f5('0x17'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0x12')]),router[_0x5572f5('0x5')](_0x5572f5('0x2'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0x10')]),router['delete'](_0x5572f5('0xf'),auth[_0x5572f5('0x6')](),controller[_0x5572f5('0x4')]),module[_0x5572f5('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index fe3a7e7..c32df45 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a218_0x2dd4=['DATE','sequelize','STRING'];(function(_0x55ed8d,_0x2dd414){const _0x289448=function(_0x2fb588){while(--_0x2fb588){_0x55ed8d['push'](_0x55ed8d['shift']());}};_0x289448(++_0x2dd414);}(a218_0x2dd4,0xd9));const a218_0x2894=function(_0x55ed8d,_0x2dd414){_0x55ed8d=_0x55ed8d-0x0;let _0x289448=a218_0x2dd4[_0x55ed8d];return _0x289448;};const _0x3479a5=a218_0x2894;'use strict';const Sequelize=require(_0x3479a5('0x0'));module['exports']={'uniqueid':{'type':Sequelize[_0x3479a5('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0x3479a5('0x1')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x3479a5('0x2')]},'exitAt':{'type':Sequelize[_0x3479a5('0x2')]},'reason':{'type':Sequelize[_0x3479a5('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index e838a0c..6f9e026 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a219_0x149c=['FaxQueueReport','sequelize','Content-Range','status','offset','where','model','sendStatus','include','create','error','rawAttributes','describe','nolimit','VIRTUAL','keys','intersection','query','../../mysqldb','sort','rows','fieldName','merge','lodash','filters','name','count','includeAll','length','attributes','key','send','set','limit','params','then','options','body','catch','api','order','show','type','findAll','update','like','../../components/parsers/qs','fields','findOne','map','stack','undefined','filter','end'];(function(_0x3ff2ce,_0x149c20){const _0x2643c4=function(_0x24b988){while(--_0x24b988){_0x3ff2ce['push'](_0x3ff2ce['shift']());}};_0x2643c4(++_0x149c20);}(a219_0x149c,0x101));const a219_0x2643=function(_0x3ff2ce,_0x149c20){_0x3ff2ce=_0x3ff2ce-0x0;let _0x2643c4=a219_0x149c[_0x3ff2ce];return _0x2643c4;};const _0x2dbec4=a219_0x2643;'use strict';const _=require(_0x2dbec4('0x24')),qs=require(_0x2dbec4('0x5')),logger=require('../../config/logger')(_0x2dbec4('0x34')),db=require(_0x2dbec4('0x1f'))['db'],{Op}=require(_0x2dbec4('0xe'));function respondWithResult(_0x24b988,_0x4a676c){return _0x4a676c=_0x4a676c||0xc8,function(_0x4ed1e7){const _0x4ec171=a219_0x2643;if(_0x4ed1e7)return _0x24b988[_0x4ec171('0x10')](_0x4a676c)['json'](_0x4ed1e7);};}function respondWithFilteredResult(_0x5784b3,_0x5844ed){return function(_0x3f9e46){const _0x4f33b3=a219_0x2643;if(_0x3f9e46){const _0x4ac402=_0x3f9e46[_0x4f33b3('0x27')],_0x30fb22=_0x5844ed[_0x4f33b3('0x11')];let _0x5808eb=_0x5844ed['offset']+_0x5844ed[_0x4f33b3('0x2e')],_0x28d8bd;return _0x5808eb>=_0x4ac402?(_0x5808eb=_0x4ac402,_0x28d8bd=0xc8):_0x28d8bd=0xce,_0x5784b3['status'](_0x28d8bd),_0x5784b3[_0x4f33b3('0x2d')](_0x4f33b3('0xf'),_0x30fb22+'-'+_0x5808eb+'/'+_0x4ac402)['json'](_0x3f9e46);}return null;};}function saveUpdates(_0x39e008){return function(_0x3aeb40){const _0x61f53a=a219_0x2643;if(_0x3aeb40)return _0x3aeb40[_0x61f53a('0x3')](_0x39e008)[_0x61f53a('0x30')](function(_0x4faf79){return _0x4faf79;});return null;};}function removeEntity(_0x52a90f){return function(_0x2bc3be){const _0x23883a=a219_0x2643;if(_0x2bc3be)return _0x2bc3be['destroy']()[_0x23883a('0x30')](function(){const _0x2779e8=_0x23883a;_0x52a90f[_0x2779e8('0x10')](0xcc)[_0x2779e8('0xc')]();});};}function handleEntityNotFound(_0x445d7b){return function(_0x360923){const _0x1256d8=a219_0x2643;return!_0x360923&&_0x445d7b[_0x1256d8('0x14')](0x194),_0x360923;};}function handleError(_0x4200f2,_0x2ae95b){return _0x2ae95b=_0x2ae95b||0x1f4,function(_0x376994){const _0x19ce7f=a219_0x2643;logger[_0x19ce7f('0x17')](_0x376994[_0x19ce7f('0x9')]),_0x376994[_0x19ce7f('0x26')]&&delete _0x376994[_0x19ce7f('0x26')],_0x4200f2['status'](_0x2ae95b)[_0x19ce7f('0x2c')](_0x376994);};}exports['index']=function(_0x29cff8,_0x3dea0e){const _0x237f7c=_0x2dbec4;let _0x588033={};const _0x578eda={},_0x395d05={'count':0x0,'rows':[]},_0x4c634a=_['map'](db['FaxQueueReport'][_0x237f7c('0x18')],function(_0x3eabd9){const _0x9caaa6=_0x237f7c;return{'name':_0x3eabd9[_0x9caaa6('0x22')],'type':_0x3eabd9['type'][_0x9caaa6('0x2b')]};});_0x578eda[_0x237f7c('0x13')]=_[_0x237f7c('0x8')](_0x4c634a,_0x237f7c('0x26')),_0x578eda[_0x237f7c('0x1e')]=_[_0x237f7c('0x1c')](_0x29cff8[_0x237f7c('0x1e')]),_0x578eda[_0x237f7c('0x25')]=_[_0x237f7c('0x1d')](_0x578eda[_0x237f7c('0x13')],_0x578eda[_0x237f7c('0x1e')]),_0x588033['attributes']=_[_0x237f7c('0x1d')](_0x578eda[_0x237f7c('0x13')],qs[_0x237f7c('0x6')](_0x29cff8[_0x237f7c('0x1e')][_0x237f7c('0x6')])),_0x588033['attributes']=_0x588033[_0x237f7c('0x2a')][_0x237f7c('0x29')]?_0x588033['attributes']:_0x578eda[_0x237f7c('0x13')];typeof _0x29cff8['query'][_0x237f7c('0x1a')]===_0x237f7c('0xa')&&(_0x588033[_0x237f7c('0x2e')]=qs['limit'](_0x29cff8[_0x237f7c('0x1e')][_0x237f7c('0x2e')]),_0x588033[_0x237f7c('0x11')]=qs['offset'](_0x29cff8[_0x237f7c('0x1e')]['offset']));_0x588033[_0x237f7c('0x35')]=qs[_0x237f7c('0x20')](_0x29cff8[_0x237f7c('0x1e')][_0x237f7c('0x20')]),_0x588033[_0x237f7c('0x12')]=qs['filters'](_['pick'](_0x29cff8[_0x237f7c('0x1e')],_0x578eda[_0x237f7c('0x25')]),_0x4c634a);_0x29cff8[_0x237f7c('0x1e')][_0x237f7c('0xb')]&&(_0x588033[_0x237f7c('0x12')]=_[_0x237f7c('0x23')](_0x588033[_0x237f7c('0x12')],{[Op['or']]:_[_0x237f7c('0x8')](_0x4c634a,function(_0xc58bf9){const _0x1f84e6=_0x237f7c;if(_0xc58bf9[_0x1f84e6('0x1')]!==_0x1f84e6('0x1b')){const _0x10940e={};return _0x10940e[_0xc58bf9[_0x1f84e6('0x26')]]={[Op[_0x1f84e6('0x4')]]:'%'+_0x29cff8['query'][_0x1f84e6('0xb')]+'%'},_0x10940e;}})}));_0x588033=_[_0x237f7c('0x23')]({},_0x588033,_0x29cff8[_0x237f7c('0x31')]);const _0x4e3210={'where':_0x588033[_0x237f7c('0x12')]};return db['FaxQueueReport'][_0x237f7c('0x27')](_0x4e3210)['then'](function(_0xdcb716){const _0xc91be8=_0x237f7c;return _0x395d05['count']=_0xdcb716,_0x29cff8[_0xc91be8('0x1e')][_0xc91be8('0x28')]&&(_0x588033[_0xc91be8('0x15')]=[{'all':!![]}]),db['FaxQueueReport'][_0xc91be8('0x2')](_0x588033);})['then'](function(_0x59f4ba){const _0x282138=_0x237f7c;return _0x395d05[_0x282138('0x21')]=_0x59f4ba,_0x395d05;})[_0x237f7c('0x30')](respondWithFilteredResult(_0x3dea0e,_0x588033))[_0x237f7c('0x33')](handleError(_0x3dea0e,null));},exports[_0x2dbec4('0x0')]=function(_0x184692,_0xa4307e){const _0x37b028=_0x2dbec4;let _0x40ea6a={'raw':!![],'where':{'id':_0x184692[_0x37b028('0x2f')]['id']}};const _0x35e517={};return _0x35e517[_0x37b028('0x13')]=_[_0x37b028('0x1c')](db[_0x37b028('0xd')]['rawAttributes']),_0x35e517[_0x37b028('0x1e')]=_[_0x37b028('0x1c')](_0x184692['query']),_0x35e517[_0x37b028('0x25')]=_[_0x37b028('0x1d')](_0x35e517[_0x37b028('0x13')],_0x35e517[_0x37b028('0x1e')]),_0x40ea6a[_0x37b028('0x2a')]=_[_0x37b028('0x1d')](_0x35e517[_0x37b028('0x13')],qs[_0x37b028('0x6')](_0x184692['query'][_0x37b028('0x6')])),_0x40ea6a[_0x37b028('0x2a')]=_0x40ea6a['attributes'][_0x37b028('0x29')]?_0x40ea6a[_0x37b028('0x2a')]:_0x35e517[_0x37b028('0x13')],_0x184692[_0x37b028('0x1e')][_0x37b028('0x28')]&&(_0x40ea6a['include']=[{'all':!![]}]),_0x40ea6a=_['merge']({},_0x40ea6a,_0x184692['options']),db['FaxQueueReport'][_0x37b028('0x7')](_0x40ea6a)['then'](handleEntityNotFound(_0xa4307e,null))[_0x37b028('0x30')](respondWithResult(_0xa4307e,null))[_0x37b028('0x33')](handleError(_0xa4307e,null));},exports[_0x2dbec4('0x16')]=function(_0x33e0e0,_0x23934a){const _0x1ac5b6=_0x2dbec4;return db[_0x1ac5b6('0xd')][_0x1ac5b6('0x16')](_0x33e0e0['body'],{})['then'](respondWithResult(_0x23934a,0xc9))[_0x1ac5b6('0x33')](handleError(_0x23934a,null));},exports['update']=function(_0x3a25b7,_0x3935c3){const _0x1c8ba1=_0x2dbec4;return _0x3a25b7['body']['id']&&delete _0x3a25b7['body']['id'],db[_0x1c8ba1('0xd')][_0x1c8ba1('0x7')]({'where':{'id':_0x3a25b7['params']['id']}})[_0x1c8ba1('0x30')](handleEntityNotFound(_0x3935c3,null))[_0x1c8ba1('0x30')](saveUpdates(_0x3a25b7[_0x1c8ba1('0x32')],null))[_0x1c8ba1('0x30')](respondWithResult(_0x3935c3,null))['catch'](handleError(_0x3935c3,null));},exports['destroy']=function(_0x320594,_0x51393f){const _0x11a525=_0x2dbec4;return db['FaxQueueReport'][_0x11a525('0x7')]({'where':{'id':_0x320594[_0x11a525('0x2f')]['id']}})[_0x11a525('0x30')](handleEntityNotFound(_0x51393f,null))[_0x11a525('0x30')](removeEntity(_0x51393f,null))[_0x11a525('0x33')](handleError(_0x51393f,null));},exports[_0x2dbec4('0x19')]=function(_0x539102,_0x8f6347){const _0x39af22=_0x2dbec4;return db[_0x39af22('0xd')][_0x39af22('0x19')]()[_0x39af22('0x30')](respondWithResult(_0x8f6347,null))[_0x39af22('0x33')](handleError(_0x8f6347,null));}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index 6d02df6..7dca2ae 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a220_0x5edb=['uniqueid','FaxQueueReport','./faxQueueReport.attributes','define'];(function(_0xb67624,_0x5edb11){const _0x26db4d=function(_0x16443a){while(--_0x16443a){_0xb67624['push'](_0xb67624['shift']());}};_0x26db4d(++_0x5edb11);}(a220_0x5edb,0x136));const a220_0x26db=function(_0xb67624,_0x5edb11){_0xb67624=_0xb67624-0x0;let _0x26db4d=a220_0x5edb[_0xb67624];return _0x26db4d;};const _0x11921d=a220_0x26db;'use strict';const attributes=require(_0x11921d('0x0'));module['exports']=function(_0x16443a){const _0x4ceb6b=_0x11921d,_0x594d07=_0x16443a[_0x4ceb6b('0x1')](_0x4ceb6b('0x3'),attributes,{'tableName':'report_fax_queue','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x4ceb6b('0x2')]}],'timestamps':!![]});return _0x594d07;}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index ad976b6..f03f51e 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a221_0x560f=['FaxQueueReport','../../config/logger','limit','attributes','then','stringify','UpdateFaxQueueReport','error','options','update','CreateFaxQueueReport','info','create','catch','raw','message','debug'];(function(_0x921b74,_0x560f55){const _0x3eb03a=function(_0x3d8941){while(--_0x3d8941){_0x921b74['push'](_0x921b74['shift']());}};_0x3eb03a(++_0x560f55);}(a221_0x560f,0x112));const a221_0x3eb0=function(_0x921b74,_0x560f55){_0x921b74=_0x921b74-0x0;let _0x3eb03a=a221_0x560f[_0x921b74];return _0x3eb03a;};const _0x2f371d=a221_0x3eb0;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2f371d('0x10'))('rpc');exports[_0x2f371d('0x8')]=function(_0x3d8941){const _0x37a42d=this;return new Promise(function(_0x1d1d71,_0x490af4){const _0x4d510c=a221_0x3eb0;return db[_0x4d510c('0xf')][_0x4d510c('0xa')](_0x3d8941['body'],{'raw':_0x3d8941[_0x4d510c('0x6')]?_0x3d8941[_0x4d510c('0x6')][_0x4d510c('0xc')]===undefined?!![]:![]:!![]})[_0x4d510c('0x2')](function(_0x5396b2){const _0x6a735e=_0x4d510c;logger[_0x6a735e('0x9')]('CreateFaxQueueReport',_0x3d8941),logger[_0x6a735e('0xe')](_0x6a735e('0x8'),_0x3d8941,JSON[_0x6a735e('0x3')](_0x5396b2)),_0x1d1d71(_0x5396b2);})['catch'](function(_0x312742){const _0x651286=_0x4d510c;logger['error'](_0x651286('0x8'),_0x312742['message'],_0x3d8941),_0x490af4(_0x37a42d[_0x651286('0x5')](0x1f4,_0x312742[_0x651286('0xd')]));});});},exports[_0x2f371d('0x4')]=function(_0x187338){const _0x501877=this;return new Promise(function(_0x5ef9ef,_0x415b6d){const _0x57495d=a221_0x3eb0;return db['FaxQueueReport'][_0x57495d('0x7')](_0x187338['body'],{'raw':_0x187338[_0x57495d('0x6')]?_0x187338['options'][_0x57495d('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x187338[_0x57495d('0x6')]?_0x187338[_0x57495d('0x6')]['where']||null:null,'attributes':_0x187338[_0x57495d('0x6')]?_0x187338['options'][_0x57495d('0x1')]||null:null,'limit':_0x187338['options']?_0x187338[_0x57495d('0x6')][_0x57495d('0x0')]||null:null})[_0x57495d('0x2')](function(_0x42c01b){const _0x3f4788=_0x57495d;logger[_0x3f4788('0x9')](_0x3f4788('0x4'),_0x187338),logger[_0x3f4788('0xe')](_0x3f4788('0x4'),_0x187338,JSON[_0x3f4788('0x3')](_0x42c01b)),_0x5ef9ef(_0x42c01b);})[_0x57495d('0xb')](function(_0xd6823e){const _0x2bacfd=_0x57495d;logger[_0x2bacfd('0x5')](_0x2bacfd('0x4'),_0xd6823e['message'],_0x187338),_0x415b6d(_0x501877[_0x2bacfd('0x5')](0x1f4,_0xd6823e[_0x2bacfd('0xd')]));});});}; \ No newline at end of file +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 diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index 7b1aeac..e608c48 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a222_0x4738=['delete','../../components/auth/service','get','create','show','Router','exports','/:id','express','isAuthenticated','/describe','describe'];(function(_0xf62426,_0x473826){const _0x325c23=function(_0x32679a){while(--_0x32679a){_0xf62426['push'](_0xf62426['shift']());}};_0x325c23(++_0x473826);}(a222_0x4738,0x122));const a222_0x325c=function(_0xf62426,_0x473826){_0xf62426=_0xf62426-0x0;let _0x325c23=a222_0x4738[_0xf62426];return _0x325c23;};const _0x36ca5b=a222_0x325c;'use strict';const express=require(_0x36ca5b('0x6')),router=express[_0x36ca5b('0x3')](),auth=require(_0x36ca5b('0xb')),controller=require('./faxQueueReport.controller');router['get']('/',auth[_0x36ca5b('0x7')](),controller['index']),router[_0x36ca5b('0x0')](_0x36ca5b('0x8'),auth['isAuthenticated'](),controller[_0x36ca5b('0x9')]),router[_0x36ca5b('0x0')]('/:id',auth[_0x36ca5b('0x7')](),controller[_0x36ca5b('0x2')]),router['post']('/',auth[_0x36ca5b('0x7')](),controller[_0x36ca5b('0x1')]),router['put'](_0x36ca5b('0x5'),auth[_0x36ca5b('0x7')](),controller['update']),router[_0x36ca5b('0xa')](_0x36ca5b('0x5'),auth[_0x36ca5b('0x7')](),controller['destroy']),module[_0x36ca5b('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index 6b94b5e..2a2fe3e 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a223_0x13de=['queue','agent','STRING','NOW','exports','sequelize','ENUM','DATE'];(function(_0x3805a8,_0x13ded6){const _0x52b1c6=function(_0x468d50){while(--_0x468d50){_0x3805a8['push'](_0x3805a8['shift']());}};_0x52b1c6(++_0x13ded6);}(a223_0x13de,0x1a8));const a223_0x52b1=function(_0x3805a8,_0x13ded6){_0x3805a8=_0x3805a8-0x0;let _0x52b1c6=a223_0x13de[_0x3805a8];return _0x52b1c6;};const _0x4ef97c=a223_0x52b1;'use strict';const Sequelize=require(_0x4ef97c('0x5'));module[_0x4ef97c('0x4')]={'uniqueid':{'type':Sequelize[_0x4ef97c('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x4ef97c('0x6')]('account',_0x4ef97c('0x1'),_0x4ef97c('0x0')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0x4ef97c('0x7')],'allowNull':![],'defaultValue':Sequelize[_0x4ef97c('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index c0b77c2..b4ea224 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a224_0x9844=['rawAttributes','keys','key','length','fieldName','query','show','rows','where','error','FaxTransferReport','merge','model','destroy','include','catch','api','set','intersection','findOne','create','attributes','options','VIRTUAL','describe','fields','filter','Content-Range','end','filters','offset','update','sequelize','findAll','order','params','name','like','type','count','undefined','includeAll','sort','sendStatus','pick','limit','status','then','body','lodash','json','index','map','stack'];(function(_0x19f49f,_0x9844d5){const _0x5dede8=function(_0x306ee9){while(--_0x306ee9){_0x19f49f['push'](_0x19f49f['shift']());}};_0x5dede8(++_0x9844d5);}(a224_0x9844,0x170));const a224_0x5ded=function(_0x19f49f,_0x9844d5){_0x19f49f=_0x19f49f-0x0;let _0x5dede8=a224_0x9844[_0x19f49f];return _0x5dede8;};const _0x4b8a14=a224_0x5ded;'use strict';const _=require(_0x4b8a14('0x5')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x4b8a14('0x1a')),db=require('../../mysqldb')['db'],{Op}=require(_0x4b8a14('0x2a'));function respondWithResult(_0x306ee9,_0x162b82){return _0x162b82=_0x162b82||0xc8,function(_0x23be01){if(_0x23be01)return _0x306ee9['status'](_0x162b82)['json'](_0x23be01);};}function respondWithFilteredResult(_0x114e18,_0x102316){return function(_0x8696ec){const _0x35bfe4=a224_0x5ded;if(_0x8696ec){const _0x365adb=_0x8696ec[_0x35bfe4('0x31')],_0x3cd5f0=_0x102316[_0x35bfe4('0x28')];let _0x2cd323=_0x102316[_0x35bfe4('0x28')]+_0x102316[_0x35bfe4('0x1')],_0x3baa05;return _0x2cd323>=_0x365adb?(_0x2cd323=_0x365adb,_0x3baa05=0xc8):_0x3baa05=0xce,_0x114e18[_0x35bfe4('0x2')](_0x3baa05),_0x114e18[_0x35bfe4('0x1b')](_0x35bfe4('0x25'),_0x3cd5f0+'-'+_0x2cd323+'/'+_0x365adb)[_0x35bfe4('0x6')](_0x8696ec);}return null;};}function saveUpdates(_0xfe9a87){return function(_0x3d6811){const _0x1cabef=a224_0x5ded;if(_0x3d6811)return _0x3d6811[_0x1cabef('0x29')](_0xfe9a87)[_0x1cabef('0x3')](function(_0x346bd7){return _0x346bd7;});return null;};}function removeEntity(_0x5199fa){return function(_0x250fca){const _0x395995=a224_0x5ded;if(_0x250fca)return _0x250fca[_0x395995('0x17')]()['then'](function(){const _0x4d8e97=_0x395995;_0x5199fa[_0x4d8e97('0x2')](0xcc)[_0x4d8e97('0x26')]();});};}function handleEntityNotFound(_0x4cdaa9){return function(_0x1388d4){const _0x1b1134=a224_0x5ded;return!_0x1388d4&&_0x4cdaa9[_0x1b1134('0x35')](0x194),_0x1388d4;};}function handleError(_0x4fb785,_0x1ff182){return _0x1ff182=_0x1ff182||0x1f4,function(_0x879554){const _0x752c6=a224_0x5ded;logger[_0x752c6('0x13')](_0x879554[_0x752c6('0x9')]),_0x879554['name']&&delete _0x879554['name'],_0x4fb785[_0x752c6('0x2')](_0x1ff182)['send'](_0x879554);};}exports[_0x4b8a14('0x7')]=function(_0x5cab34,_0x24067f){const _0x4c4608=_0x4b8a14;let _0x3ffab5={};const _0x55b8fd={},_0x6bd970={'count':0x0,'rows':[]},_0x2dc126=_[_0x4c4608('0x8')](db[_0x4c4608('0x14')]['rawAttributes'],function(_0xb8aac){const _0x4e7f03=_0x4c4608;return{'name':_0xb8aac[_0x4e7f03('0xe')],'type':_0xb8aac['type'][_0x4e7f03('0xc')]};});_0x55b8fd[_0x4c4608('0x16')]=_['map'](_0x2dc126,_0x4c4608('0x2e')),_0x55b8fd[_0x4c4608('0xf')]=_[_0x4c4608('0xb')](_0x5cab34[_0x4c4608('0xf')]),_0x55b8fd[_0x4c4608('0x27')]=_[_0x4c4608('0x1c')](_0x55b8fd['model'],_0x55b8fd[_0x4c4608('0xf')]),_0x3ffab5[_0x4c4608('0x1f')]=_['intersection'](_0x55b8fd[_0x4c4608('0x16')],qs[_0x4c4608('0x23')](_0x5cab34[_0x4c4608('0xf')][_0x4c4608('0x23')])),_0x3ffab5['attributes']=_0x3ffab5[_0x4c4608('0x1f')][_0x4c4608('0xd')]?_0x3ffab5[_0x4c4608('0x1f')]:_0x55b8fd[_0x4c4608('0x16')];typeof _0x5cab34['query']['nolimit']===_0x4c4608('0x32')&&(_0x3ffab5[_0x4c4608('0x1')]=qs['limit'](_0x5cab34[_0x4c4608('0xf')][_0x4c4608('0x1')]),_0x3ffab5['offset']=qs[_0x4c4608('0x28')](_0x5cab34['query'][_0x4c4608('0x28')]));_0x3ffab5[_0x4c4608('0x2c')]=qs[_0x4c4608('0x34')](_0x5cab34[_0x4c4608('0xf')][_0x4c4608('0x34')]),_0x3ffab5[_0x4c4608('0x12')]=qs[_0x4c4608('0x27')](_[_0x4c4608('0x0')](_0x5cab34[_0x4c4608('0xf')],_0x55b8fd[_0x4c4608('0x27')]),_0x2dc126);_0x5cab34[_0x4c4608('0xf')][_0x4c4608('0x24')]&&(_0x3ffab5['where']=_[_0x4c4608('0x15')](_0x3ffab5[_0x4c4608('0x12')],{[Op['or']]:_[_0x4c4608('0x8')](_0x2dc126,function(_0x4c7149){const _0xb7ea36=_0x4c4608;if(_0x4c7149[_0xb7ea36('0x30')]!==_0xb7ea36('0x21')){const _0x4dcf0e={};return _0x4dcf0e[_0x4c7149[_0xb7ea36('0x2e')]]={[Op[_0xb7ea36('0x2f')]]:'%'+_0x5cab34[_0xb7ea36('0xf')][_0xb7ea36('0x24')]+'%'},_0x4dcf0e;}})}));_0x3ffab5=_[_0x4c4608('0x15')]({},_0x3ffab5,_0x5cab34[_0x4c4608('0x20')]);const _0x53fc7d={'where':_0x3ffab5['where']};return db['FaxTransferReport'][_0x4c4608('0x31')](_0x53fc7d)[_0x4c4608('0x3')](function(_0x415546){const _0x144c50=_0x4c4608;return _0x6bd970['count']=_0x415546,_0x5cab34['query'][_0x144c50('0x33')]&&(_0x3ffab5[_0x144c50('0x18')]=[{'all':!![]}]),db[_0x144c50('0x14')][_0x144c50('0x2b')](_0x3ffab5);})[_0x4c4608('0x3')](function(_0x5a9ec4){const _0x49b21e=_0x4c4608;return _0x6bd970[_0x49b21e('0x11')]=_0x5a9ec4,_0x6bd970;})['then'](respondWithFilteredResult(_0x24067f,_0x3ffab5))['catch'](handleError(_0x24067f,null));},exports[_0x4b8a14('0x10')]=function(_0xdfdf26,_0x5cd5e8){const _0x39fdee=_0x4b8a14;let _0x421da0={'raw':!![],'where':{'id':_0xdfdf26['params']['id']}};const _0x38f286={};return _0x38f286[_0x39fdee('0x16')]=_['keys'](db[_0x39fdee('0x14')][_0x39fdee('0xa')]),_0x38f286[_0x39fdee('0xf')]=_[_0x39fdee('0xb')](_0xdfdf26['query']),_0x38f286['filters']=_['intersection'](_0x38f286[_0x39fdee('0x16')],_0x38f286['query']),_0x421da0[_0x39fdee('0x1f')]=_[_0x39fdee('0x1c')](_0x38f286[_0x39fdee('0x16')],qs[_0x39fdee('0x23')](_0xdfdf26[_0x39fdee('0xf')]['fields'])),_0x421da0[_0x39fdee('0x1f')]=_0x421da0['attributes'][_0x39fdee('0xd')]?_0x421da0[_0x39fdee('0x1f')]:_0x38f286[_0x39fdee('0x16')],_0xdfdf26[_0x39fdee('0xf')]['includeAll']&&(_0x421da0[_0x39fdee('0x18')]=[{'all':!![]}]),_0x421da0=_['merge']({},_0x421da0,_0xdfdf26[_0x39fdee('0x20')]),db['FaxTransferReport'][_0x39fdee('0x1d')](_0x421da0)[_0x39fdee('0x3')](handleEntityNotFound(_0x5cd5e8,null))[_0x39fdee('0x3')](respondWithResult(_0x5cd5e8,null))[_0x39fdee('0x19')](handleError(_0x5cd5e8,null));},exports[_0x4b8a14('0x1e')]=function(_0x16822d,_0xe1ad45){const _0x180c59=_0x4b8a14;return db[_0x180c59('0x14')][_0x180c59('0x1e')](_0x16822d['body'],{})[_0x180c59('0x3')](respondWithResult(_0xe1ad45,0xc9))['catch'](handleError(_0xe1ad45,null));},exports['update']=function(_0x56a91a,_0x4f86cc){const _0x1c46f1=_0x4b8a14;return _0x56a91a[_0x1c46f1('0x4')]['id']&&delete _0x56a91a[_0x1c46f1('0x4')]['id'],db[_0x1c46f1('0x14')][_0x1c46f1('0x1d')]({'where':{'id':_0x56a91a[_0x1c46f1('0x2d')]['id']}})[_0x1c46f1('0x3')](handleEntityNotFound(_0x4f86cc,null))[_0x1c46f1('0x3')](saveUpdates(_0x56a91a[_0x1c46f1('0x4')],null))['then'](respondWithResult(_0x4f86cc,null))['catch'](handleError(_0x4f86cc,null));},exports['destroy']=function(_0x1bded8,_0xde8562){const _0x10dfb4=_0x4b8a14;return db[_0x10dfb4('0x14')][_0x10dfb4('0x1d')]({'where':{'id':_0x1bded8['params']['id']}})[_0x10dfb4('0x3')](handleEntityNotFound(_0xde8562,null))[_0x10dfb4('0x3')](removeEntity(_0xde8562,null))[_0x10dfb4('0x19')](handleError(_0xde8562,null));},exports[_0x4b8a14('0x22')]=function(_0x21e78d,_0x49c67e){const _0xda8f4d=_0x4b8a14;return db[_0xda8f4d('0x14')][_0xda8f4d('0x22')]()[_0xda8f4d('0x3')](respondWithResult(_0x49c67e,null))[_0xda8f4d('0x19')](handleError(_0x49c67e,null));}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index 7dfb4e7..24f72ef 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a225_0x3f80=['FaxTransferReport','uniqueid','exports'];(function(_0x1f28ec,_0x3f80ba){const _0x24e769=function(_0x451f17){while(--_0x451f17){_0x1f28ec['push'](_0x1f28ec['shift']());}};_0x24e769(++_0x3f80ba);}(a225_0x3f80,0x18e));const a225_0x24e7=function(_0x1f28ec,_0x3f80ba){_0x1f28ec=_0x1f28ec-0x0;let _0x24e769=a225_0x3f80[_0x1f28ec];return _0x24e769;};const _0x5f1576=a225_0x24e7;'use strict';const attributes=require('./faxTransferReport.attributes');module[_0x5f1576('0x0')]=function(_0x451f17){const _0x606b72=_0x5f1576,_0x3b07db=_0x451f17['define'](_0x606b72('0x1'),attributes,{'tableName':'report_fax_transfer','paranoid':![],'indexes':[{'name':_0x606b72('0x2'),'fields':['uniqueid']}],'timestamps':!![]});return _0x3b07db;}; \ No newline at end of file +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 diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index a61ae96..0c69eb6 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a226_0x6a99=['isAuthenticated','/describe','express','./faxTransferReport.controller','delete','get','/:id','exports','../../components/auth/service'];(function(_0x1e00f6,_0x6a9945){const _0xaddbc3=function(_0xf67db4){while(--_0xf67db4){_0x1e00f6['push'](_0x1e00f6['shift']());}};_0xaddbc3(++_0x6a9945);}(a226_0x6a99,0xbb));const a226_0xaddb=function(_0x1e00f6,_0x6a9945){_0x1e00f6=_0x1e00f6-0x0;let _0xaddbc3=a226_0x6a99[_0x1e00f6];return _0xaddbc3;};const _0x3f9eea=a226_0xaddb;'use strict';const express=require(_0x3f9eea('0x4')),router=express['Router'](),auth=require(_0x3f9eea('0x1')),controller=require(_0x3f9eea('0x5'));router[_0x3f9eea('0x7')]('/',auth[_0x3f9eea('0x2')](),controller['index']),router[_0x3f9eea('0x7')](_0x3f9eea('0x3'),auth[_0x3f9eea('0x2')](),controller['describe']),router[_0x3f9eea('0x7')](_0x3f9eea('0x8'),auth[_0x3f9eea('0x2')](),controller['show']),router['post']('/',auth[_0x3f9eea('0x2')](),controller['create']),router['put']('/:id',auth[_0x3f9eea('0x2')](),controller['update']),router[_0x3f9eea('0x6')](_0x3f9eea('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x3f9eea('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index a50dc28..846d1bf 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a227_0xe9cd=['isAuthenticated','getConfigurations','/:id','index','express','get','addConfiguration','put','/:id/fields','./intDeskAccount.controller','show','../../components/auth/service','create','post','delete','/:id/configurations','update','Router'];(function(_0x29ac66,_0xe9cd7d){const _0x22a852=function(_0x1785c6){while(--_0x1785c6){_0x29ac66['push'](_0x29ac66['shift']());}};_0x22a852(++_0xe9cd7d);}(a227_0xe9cd,0x1f1));const a227_0x22a8=function(_0x29ac66,_0xe9cd7d){_0x29ac66=_0x29ac66-0x0;let _0x22a852=a227_0xe9cd[_0x29ac66];return _0x22a852;};const _0x1c5a4c=a227_0x22a8;'use strict';const express=require(_0x1c5a4c('0xb')),router=express[_0x1c5a4c('0x6')](),auth=require(_0x1c5a4c('0x0')),controller=require(_0x1c5a4c('0x10'));router['get']('/',auth[_0x1c5a4c('0x7')](),controller[_0x1c5a4c('0xa')]),router['get'](_0x1c5a4c('0x9'),auth[_0x1c5a4c('0x7')](),controller[_0x1c5a4c('0x11')]),router[_0x1c5a4c('0xc')](_0x1c5a4c('0x4'),auth[_0x1c5a4c('0x7')](),controller[_0x1c5a4c('0x8')]),router[_0x1c5a4c('0xc')](_0x1c5a4c('0xf'),auth['isAuthenticated'](),controller['getFields']),router['post']('/',auth['isAuthenticated'](),controller[_0x1c5a4c('0x1')]),router[_0x1c5a4c('0x2')](_0x1c5a4c('0x4'),auth['isAuthenticated'](),controller[_0x1c5a4c('0xd')]),router[_0x1c5a4c('0xe')](_0x1c5a4c('0x9'),auth[_0x1c5a4c('0x7')](),controller[_0x1c5a4c('0x5')]),router[_0x1c5a4c('0x3')](_0x1c5a4c('0x9'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index e5e0ac4..51c93c0 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a228_0x19f8=['basic','exports','STRING','integrationTab','sequelize','ENUM','newTab'];(function(_0x1e8a66,_0x19f8a0){const _0x2ee657=function(_0x3dd3b8){while(--_0x3dd3b8){_0x1e8a66['push'](_0x1e8a66['shift']());}};_0x2ee657(++_0x19f8a0);}(a228_0x19f8,0x1f3));const a228_0x2ee6=function(_0x1e8a66,_0x19f8a0){_0x1e8a66=_0x1e8a66-0x0;let _0x2ee657=a228_0x19f8[_0x1e8a66];return _0x2ee657;};const _0x6f0dfc=a228_0x2ee6;'use strict';const Sequelize=require(_0x6f0dfc('0x2'));module[_0x6f0dfc('0x6')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x6f0dfc('0x0')]},'username':{'type':Sequelize[_0x6f0dfc('0x0')]},'remoteUri':{'type':Sequelize['STRING']},'authType':{'type':Sequelize[_0x6f0dfc('0x3')](_0x6f0dfc('0x5')),'defaultValue':'basic'},'password':{'type':Sequelize[_0x6f0dfc('0x0')]},'consumerKey':{'type':Sequelize['STRING']},'consumerSecret':{'type':Sequelize[_0x6f0dfc('0x0')]},'token':{'type':Sequelize[_0x6f0dfc('0x0')]},'tokenSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x6f0dfc('0x1'),_0x6f0dfc('0x4')),'defaultValue':'integrationTab'}}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index 9baaf69..d47f5ab 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a229_0x1f67=['undefined','offset','active','Subjects','model','sendStatus','getSubjects','rawAttributes','type','Content-Range','keys','end','api','fields','lastIndexOf','where','like','../../mysqldb','Basic\x20%s','catch','update','pick','send','create','DeskAccount','priority','../../components/integrations/configuration','filter','addConfiguration','password','order','key','../../config/logger','statusCode','rows','basic','lodash','token','set','sequelize','query','substring','body','DeskField','json','then','username','count','VIRTUAL','consumerKey','includeAll','channel','concat','authType','options','from','remoteUri','GET','getConfigurations','request-promise-native','Descriptions','%s:%s','include','length','format','name','show','Authorization','application/json','tokenSecret','../../components/parsers/qs','limit','index','fieldName','getDescriptions','DeskConfiguration','destroy','merge','_embedded','test','error','intersection','attributes','nolimit','status','label','map','sort','findOne','getFields,\x20%s,\x20%s,\x20%s','filters','entries','getFields','params'];(function(_0x8af575,_0x1f6720){const _0x54e9d0=function(_0x489aac){while(--_0x489aac){_0x8af575['push'](_0x8af575['shift']());}};_0x54e9d0(++_0x1f6720);}(a229_0x1f67,0x15a));const a229_0x54e9=function(_0x8af575,_0x1f6720){_0x8af575=_0x8af575-0x0;let _0x54e9d0=a229_0x1f67[_0x8af575];return _0x54e9d0;};const _0x36453a=a229_0x54e9;'use strict';const rp=require(_0x36453a('0x59')),util=require('util'),_=require(_0x36453a('0x42')),qs=require(_0x36453a('0x6')),logger=require(_0x36453a('0x3e'))(_0x36453a('0x2a')),db=require(_0x36453a('0x2f'))['db'],{Op}=require(_0x36453a('0x45')),integrations=require(_0x36453a('0x38'));function respondWithResult(_0x489aac,_0x269a51){return _0x269a51=_0x269a51||0xc8,function(_0x52c49f){const _0x43ac87=a229_0x54e9;if(_0x52c49f)return _0x489aac[_0x43ac87('0x14')](_0x269a51)[_0x43ac87('0x4a')](_0x52c49f);};}function respondWithFilteredResult(_0x28312b,_0x5b611d){return function(_0x514385){const _0x5d7740=a229_0x54e9;if(_0x514385){const _0x15361a=_0x514385[_0x5d7740('0x4d')],_0x3ed7ca=_0x5b611d['offset'];let _0x11d26c=_0x5b611d['offset']+_0x5b611d[_0x5d7740('0x7')],_0x22579e;return _0x11d26c>=_0x15361a?(_0x11d26c=_0x15361a,_0x22579e=0xc8):_0x22579e=0xce,_0x28312b[_0x5d7740('0x14')](_0x22579e),_0x28312b[_0x5d7740('0x44')](_0x5d7740('0x27'),_0x3ed7ca+'-'+_0x11d26c+'/'+_0x15361a)[_0x5d7740('0x4a')](_0x514385);}return null;};}function saveUpdates(_0x4a2459){return function(_0x33f5fe){const _0x1858c3=a229_0x54e9;if(_0x33f5fe)return _0x33f5fe[_0x1858c3('0x32')](_0x4a2459)['then'](function(_0xde0e68){return _0xde0e68;});return null;};}function removeEntity(_0x48b148){return function(_0x7f8db5){const _0x143783=a229_0x54e9;if(_0x7f8db5)return _0x7f8db5[_0x143783('0xc')]()['then'](function(){const _0x44900d=_0x143783;_0x48b148[_0x44900d('0x14')](0xcc)[_0x44900d('0x29')]();});};}function handleEntityNotFound(_0x1181da){return function(_0x463203){const _0xbfb1ce=a229_0x54e9;return!_0x463203&&_0x1181da[_0xbfb1ce('0x23')](0x194),_0x463203;};}function handleError(_0x3c1cae,_0x549261){return _0x549261=_0x549261||0x1f4,function(_0x59c557){const _0x20a31a=a229_0x54e9;logger[_0x20a31a('0x10')](_0x59c557['stack']),_0x59c557[_0x20a31a('0x1')]&&delete _0x59c557['name'],_0x3c1cae['status'](_0x549261)[_0x20a31a('0x34')](_0x59c557);};}exports[_0x36453a('0x8')]=function(_0x2bc615,_0x28c5fb){const _0xc54042=_0x36453a;let _0x727dfe={};const _0x47a679={},_0x454181={'count':0x0,'rows':[]},_0x962775=_[_0xc54042('0x16')](db['DeskAccount'][_0xc54042('0x25')],function(_0x56ddbe){const _0x317849=_0xc54042;return{'name':_0x56ddbe[_0x317849('0x9')],'type':_0x56ddbe[_0x317849('0x26')][_0x317849('0x3d')]};});_0x47a679[_0xc54042('0x22')]=_[_0xc54042('0x16')](_0x962775,_0xc54042('0x1')),_0x47a679[_0xc54042('0x46')]=_[_0xc54042('0x28')](_0x2bc615[_0xc54042('0x46')]),_0x47a679[_0xc54042('0x1a')]=_[_0xc54042('0x11')](_0x47a679['model'],_0x47a679[_0xc54042('0x46')]),_0x727dfe[_0xc54042('0x12')]=_['intersection'](_0x47a679['model'],qs[_0xc54042('0x2b')](_0x2bc615[_0xc54042('0x46')][_0xc54042('0x2b')])),_0x727dfe['attributes']=_0x727dfe[_0xc54042('0x12')][_0xc54042('0x5d')]?_0x727dfe['attributes']:_0x47a679[_0xc54042('0x22')];typeof _0x2bc615[_0xc54042('0x46')][_0xc54042('0x13')]===_0xc54042('0x1e')&&(_0x727dfe['limit']=qs[_0xc54042('0x7')](_0x2bc615[_0xc54042('0x46')]['limit']),_0x727dfe[_0xc54042('0x1f')]=qs[_0xc54042('0x1f')](_0x2bc615[_0xc54042('0x46')]['offset']));_0x727dfe['order']=qs[_0xc54042('0x17')](_0x2bc615[_0xc54042('0x46')][_0xc54042('0x17')]),_0x727dfe[_0xc54042('0x2d')]=qs[_0xc54042('0x1a')](_['pick'](_0x2bc615[_0xc54042('0x46')],_0x47a679[_0xc54042('0x1a')]),_0x962775);_0x2bc615[_0xc54042('0x46')][_0xc54042('0x39')]&&(_0x727dfe[_0xc54042('0x2d')]=_['merge'](_0x727dfe[_0xc54042('0x2d')],{[Op['or']]:_[_0xc54042('0x16')](_0x962775,function(_0x41d98f){const _0x55b16e=_0xc54042;if(_0x41d98f[_0x55b16e('0x26')]!==_0x55b16e('0x4e')){const _0x1e9459={};return _0x1e9459[_0x41d98f[_0x55b16e('0x1')]]={[Op[_0x55b16e('0x2e')]]:'%'+_0x2bc615[_0x55b16e('0x46')][_0x55b16e('0x39')]+'%'},_0x1e9459;}})}));_0x727dfe=_[_0xc54042('0xd')]({},_0x727dfe,_0x2bc615[_0xc54042('0x54')]);const _0x5e4d89={'where':_0x727dfe[_0xc54042('0x2d')]};return db[_0xc54042('0x36')][_0xc54042('0x4d')](_0x5e4d89)['then'](function(_0x321b28){const _0x3bc700=_0xc54042;return _0x454181[_0x3bc700('0x4d')]=_0x321b28,_0x2bc615[_0x3bc700('0x46')][_0x3bc700('0x50')]&&(_0x727dfe[_0x3bc700('0x5c')]=[{'all':!![]}]),db[_0x3bc700('0x36')]['findAll'](_0x727dfe);})[_0xc54042('0x4b')](function(_0x5d1720){const _0x5b943a=_0xc54042;return _0x454181[_0x5b943a('0x40')]=_0x5d1720,_0x454181;})[_0xc54042('0x4b')](respondWithFilteredResult(_0x28c5fb,_0x727dfe))[_0xc54042('0x31')](handleError(_0x28c5fb,null));},exports[_0x36453a('0x2')]=function(_0x55646b,_0x3a5117){const _0x1ccb9f=_0x36453a;let _0x424463={'raw':![],'where':{'id':_0x55646b[_0x1ccb9f('0x1d')]['id']}};const _0x4d55e0={};return _0x4d55e0[_0x1ccb9f('0x22')]=_[_0x1ccb9f('0x28')](db['DeskAccount'][_0x1ccb9f('0x25')]),_0x4d55e0[_0x1ccb9f('0x46')]=_[_0x1ccb9f('0x28')](_0x55646b['query']),_0x4d55e0[_0x1ccb9f('0x1a')]=_[_0x1ccb9f('0x11')](_0x4d55e0[_0x1ccb9f('0x22')],_0x4d55e0[_0x1ccb9f('0x46')]),_0x424463[_0x1ccb9f('0x12')]=_[_0x1ccb9f('0x11')](_0x4d55e0[_0x1ccb9f('0x22')],qs['fields'](_0x55646b[_0x1ccb9f('0x46')]['fields'])),_0x424463[_0x1ccb9f('0x12')]=_0x424463[_0x1ccb9f('0x12')][_0x1ccb9f('0x5d')]?_0x424463[_0x1ccb9f('0x12')]:_0x4d55e0[_0x1ccb9f('0x22')],_0x55646b[_0x1ccb9f('0x46')]['includeAll']&&(_0x424463[_0x1ccb9f('0x5c')]=[{'all':!![]}]),_0x424463=_[_0x1ccb9f('0xd')]({},_0x424463,_0x55646b['options']),db['DeskAccount'][_0x1ccb9f('0x18')](_0x424463)[_0x1ccb9f('0x4b')](handleEntityNotFound(_0x3a5117,null))['then'](respondWithResult(_0x3a5117,null))[_0x1ccb9f('0x31')](handleError(_0x3a5117,null));},exports[_0x36453a('0x35')]=function(_0x5d6a73,_0x553abf){const _0x79d261=_0x36453a;return db['DeskAccount'][_0x79d261('0x35')](_0x5d6a73['body'],{})['then'](respondWithResult(_0x553abf,0xc9))[_0x79d261('0x31')](handleError(_0x553abf,null));},exports[_0x36453a('0x32')]=function(_0x55245f,_0x2555bc){const _0x8afff3=_0x36453a;return _0x55245f['body']['id']&&delete _0x55245f[_0x8afff3('0x48')]['id'],db[_0x8afff3('0x36')][_0x8afff3('0x18')]({'where':{'id':_0x55245f[_0x8afff3('0x1d')]['id']}})[_0x8afff3('0x4b')](handleEntityNotFound(_0x2555bc,null))[_0x8afff3('0x4b')](saveUpdates(_0x55245f['body'],null))[_0x8afff3('0x4b')](respondWithResult(_0x2555bc,null))[_0x8afff3('0x31')](handleError(_0x2555bc,null));},exports[_0x36453a('0xc')]=function(_0x49da2f,_0x440ad5){const _0x191840=_0x36453a;return db[_0x191840('0x36')][_0x191840('0x18')]({'where':{'id':_0x49da2f['params']['id']}})[_0x191840('0x4b')](handleEntityNotFound(_0x440ad5,null))['then'](removeEntity(_0x440ad5,null))['catch'](handleError(_0x440ad5,null));},exports[_0x36453a('0x58')]=function(_0x16bba7,_0x394056){const _0x1c09ec=_0x36453a;let _0x17525c={};const _0x3e011c={};let _0x1be5de,_0x37861e;return db[_0x1c09ec('0x36')][_0x1c09ec('0x18')]({'where':{'id':_0x16bba7[_0x1c09ec('0x1d')]['id']}})[_0x1c09ec('0x4b')](handleEntityNotFound(_0x394056,null))[_0x1c09ec('0x4b')](function(_0x56dc85){const _0x3464cc=_0x1c09ec;if(_0x56dc85)return _0x1be5de=_0x56dc85,_0x3e011c[_0x3464cc('0x22')]=_[_0x3464cc('0x28')](db[_0x3464cc('0xb')][_0x3464cc('0x25')]),_0x3e011c['query']=_['keys'](_0x16bba7['query']),_0x3e011c['filters']=_[_0x3464cc('0x11')](_0x3e011c[_0x3464cc('0x22')],_0x3e011c['query']),_0x17525c[_0x3464cc('0x12')]=_[_0x3464cc('0x11')](_0x3e011c['model'],qs['fields'](_0x16bba7[_0x3464cc('0x46')][_0x3464cc('0x2b')])),_0x17525c[_0x3464cc('0x12')]=_0x17525c['attributes'][_0x3464cc('0x5d')]?_0x17525c[_0x3464cc('0x12')]:_0x3e011c[_0x3464cc('0x22')],_0x17525c[_0x3464cc('0x3c')]=qs['sort'](_0x16bba7[_0x3464cc('0x46')]['sort']),_0x17525c[_0x3464cc('0x2d')]=qs[_0x3464cc('0x1a')](_[_0x3464cc('0x33')](_0x16bba7[_0x3464cc('0x46')],_0x3e011c['filters'])),_0x16bba7[_0x3464cc('0x46')][_0x3464cc('0x39')]&&(_0x17525c[_0x3464cc('0x2d')]=_[_0x3464cc('0xd')](_0x17525c['where'],{[Op['or']]:_[_0x3464cc('0x16')](_0x17525c[_0x3464cc('0x12')],function(_0x5b6cb9){const _0x4604e9=_0x3464cc,_0x51305e={};return _0x51305e[_0x5b6cb9]={[Op[_0x4604e9('0x2e')]]:'%'+_0x16bba7[_0x4604e9('0x46')][_0x4604e9('0x39')]+'%'},_0x51305e;})})),_0x17525c=_[_0x3464cc('0xd')]({},_0x17525c,_0x16bba7['options']),_0x1be5de[_0x3464cc('0x58')](_0x17525c);})[_0x1c09ec('0x4b')](function(_0x401f66){const _0x4b832d=_0x1c09ec;if(_0x401f66)return _0x37861e=_0x401f66[_0x4b832d('0x5d')],typeof _0x16bba7[_0x4b832d('0x46')][_0x4b832d('0x13')]===_0x4b832d('0x1e')&&(_0x17525c[_0x4b832d('0x7')]=qs['limit'](_0x16bba7[_0x4b832d('0x46')][_0x4b832d('0x7')]),_0x17525c[_0x4b832d('0x1f')]=qs[_0x4b832d('0x1f')](_0x16bba7[_0x4b832d('0x46')][_0x4b832d('0x1f')])),_0x1be5de[_0x4b832d('0x58')](_0x17525c);})[_0x1c09ec('0x4b')](function(_0xd34f99){if(_0xd34f99)return _0xd34f99?{'count':_0x37861e,'rows':_0xd34f99}:null;})['then'](respondWithResult(_0x394056,null))[_0x1c09ec('0x31')](handleError(_0x394056,null));},exports[_0x36453a('0x3a')]=function(_0x36effa,_0x19a954){const _0x37be04=_0x36453a;return _0x36effa[_0x37be04('0x48')]['id']&&delete _0x36effa[_0x37be04('0x48')]['id'],db[_0x37be04('0x36')]['findOne']({'where':{'id':_0x36effa[_0x37be04('0x1d')]['id']}})['then'](handleEntityNotFound(_0x19a954,null))['then'](function(_0x588f7d){const _0x3423bb=_0x37be04;if(_0x588f7d)return _0x36effa[_0x3423bb('0x48')]['AccountId']=_0x588f7d['id'],_0x36effa[_0x3423bb('0x48')][_0x3423bb('0x21')]=integrations[_0x3423bb('0x24')](_0x36effa[_0x3423bb('0x48')][_0x3423bb('0x51')],_0x36effa[_0x3423bb('0x48')][_0x3423bb('0x26')]),_0x36effa[_0x3423bb('0x48')][_0x3423bb('0x5a')]=integrations[_0x3423bb('0xa')](_0x36effa['body']['channel'],_0x36effa[_0x3423bb('0x48')][_0x3423bb('0x26')]),db[_0x3423bb('0xb')]['create'](_0x36effa[_0x3423bb('0x48')],{'include':[{'model':db[_0x3423bb('0x49')],'as':_0x3423bb('0x21')},{'model':db[_0x3423bb('0x49')],'as':_0x3423bb('0x5a')}]});return null;})['then'](respondWithResult(_0x19a954,null))[_0x37be04('0x31')](handleError(_0x19a954,null));},exports[_0x36453a('0x1c')]=function(_0x8f4064,_0x4adc3c){const _0x203bb9=_0x36453a,_0xec9cbf=[{'name':_0x203bb9('0x37'),'label':_0x203bb9('0x37'),'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 _0x3b774='';return db[_0x203bb9('0x36')][_0x203bb9('0x18')]({'where':{'id':_0x8f4064[_0x203bb9('0x1d')]['id']},'attributes':['id','remoteUri',_0x203bb9('0x53'),_0x203bb9('0x4c'),_0x203bb9('0x3b'),_0x203bb9('0x4f'),'consumerSecret',_0x203bb9('0x43'),_0x203bb9('0x5')]})[_0x203bb9('0x4b')](handleEntityNotFound(_0x4adc3c,null))[_0x203bb9('0x4b')](function(_0x4e8845){const _0x20736d=_0x203bb9;if(_0x4e8845){_0x3b774=_0x4e8845[_0x20736d('0x56')];const _0x50d412=_0x3b774['slice'](-0x1);_0x50d412==='/'&&(_0x3b774=_0x3b774[_0x20736d('0x47')](0x0,_0x3b774[_0x20736d('0x2c')](_0x50d412)));const _0x4db173={'method':_0x20736d('0x57'),'uri':util[_0x20736d('0x0')]('%s/custom_fields',_0x3b774),'headers':{'Content-Type':_0x20736d('0x4'),'Accept':_0x20736d('0x4')},'json':!![]};return _0x4e8845[_0x20736d('0x53')]===_0x20736d('0x41')&&(_0x4db173['headers'][_0x20736d('0x3')]=util[_0x20736d('0x0')](_0x20736d('0x30'),Buffer[_0x20736d('0x55')](util[_0x20736d('0x0')](_0x20736d('0x5b'),_0x4e8845[_0x20736d('0x4c')],_0x4e8845[_0x20736d('0x3b')]))['toString']('base64'))),rp(_0x4db173)[_0x20736d('0x4b')](function(_0x378fe6){const _0x238212=_0x20736d;return _0xec9cbf[_0x238212('0x52')](_[_0x238212('0x16')](_0x378fe6[_0x238212('0xe')][_0x238212('0x1b')],function(_0x4ddee0){const _0x1c24e5=_0x238212;return{'id':_0x4ddee0[_0x1c24e5('0x1')],'name':_0x4ddee0[_0x1c24e5('0x1')],'type':_0x4ddee0[_0x1c24e5('0x26')],'active':_0x4ddee0[_0x1c24e5('0x20')],'label':_0x4ddee0[_0x1c24e5('0x15')],'custom':!![]};}));});}})['then'](function(_0x441981){const _0x9a9ceb=_0x203bb9;return{'count':_0x441981[_0x9a9ceb('0x5d')],'rows':_0x441981};})['then'](respondWithResult(_0x4adc3c,null))[_0x203bb9('0x31')](function(_0x214c70){const _0xe5ed53=_0x203bb9;let _0x58c841=_0x8f4064['query'][_0xe5ed53('0xf')]?0x1f4:_0x214c70['statusCode']||0x1f4;logger['error'](_0xe5ed53('0x19'),_0xe5ed53('0x1c'),_0x58c841,JSON['stringify'](_0x214c70)),delete _0x214c70[_0xe5ed53('0x1')],_0x58c841===0x191&&(_0x58c841=0x190),_0x4adc3c['status'](_0x58c841)[_0xe5ed53('0x34')](_0x8f4064[_0xe5ed53('0x46')][_0xe5ed53('0xf')]?{'message':'Wrong\x20credentials','statusCode':_0x214c70[_0xe5ed53('0x3f')]}:_0x214c70);});}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index ff2d50d..7a6f991 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a230_0x9a29=['DeskAccount','define','int_desk_accounts','./intDeskAccount.attributes'];(function(_0x1ad8b3,_0x9a291e){const _0x2f26a3=function(_0x3aa9f1){while(--_0x3aa9f1){_0x1ad8b3['push'](_0x1ad8b3['shift']());}};_0x2f26a3(++_0x9a291e);}(a230_0x9a29,0xbe));const a230_0x2f26=function(_0x1ad8b3,_0x9a291e){_0x1ad8b3=_0x1ad8b3-0x0;let _0x2f26a3=a230_0x9a29[_0x1ad8b3];return _0x2f26a3;};const _0xca99bd=a230_0x2f26;'use strict';const attributes=require(_0xca99bd('0x1'));module['exports']=function(_0x3aa9f1){const _0x207df9=_0xca99bd,_0x2a1a83=_0x3aa9f1[_0x207df9('0x3')](_0x207df9('0x2'),attributes,{'tableName':_0x207df9('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a1a83;}; \ No newline at end of file +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 diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index e7bae72..c72bfd0 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a231_0x469e=['error','model','message','debug','where','catch','then','GetDeskAccount','lodash','findAll','raw','../../mysqldb','options','rpc','attributes','ShowDeskAccount','info','map','include','DeskAccount'];(function(_0x193a03,_0x469ef3){const _0x3e9149=function(_0x19ecec){while(--_0x19ecec){_0x193a03['push'](_0x193a03['shift']());}};_0x3e9149(++_0x469ef3);}(a231_0x469e,0x1c6));const a231_0x3e91=function(_0x193a03,_0x469ef3){_0x193a03=_0x193a03-0x0;let _0x3e9149=a231_0x469e[_0x193a03];return _0x3e9149;};const _0x1d4d9f=a231_0x3e91;'use strict';const _=require(_0x1d4d9f('0xe')),db=require(_0x1d4d9f('0x11'))['db'],logger=require('../../config/logger')(_0x1d4d9f('0x13'));exports[_0x1d4d9f('0xd')]=function(_0x19ecec){const _0x5ef689=this;return new Promise(function(_0x3a206e,_0x1ad464){const _0x4bae2a=a231_0x3e91;return db[_0x4bae2a('0x5')][_0x4bae2a('0xf')]({'raw':_0x19ecec[_0x4bae2a('0x12')]?_0x19ecec[_0x4bae2a('0x12')][_0x4bae2a('0x10')]===undefined?!![]:![]:!![],'where':_0x19ecec[_0x4bae2a('0x12')]?_0x19ecec[_0x4bae2a('0x12')][_0x4bae2a('0xa')]||null:null,'attributes':_0x19ecec[_0x4bae2a('0x12')]?_0x19ecec[_0x4bae2a('0x12')][_0x4bae2a('0x0')]||null:null,'limit':_0x19ecec['options']?_0x19ecec[_0x4bae2a('0x12')]['limit']||null:null,'include':_0x19ecec[_0x4bae2a('0x12')]?_0x19ecec[_0x4bae2a('0x12')][_0x4bae2a('0x4')]?_[_0x4bae2a('0x3')](_0x19ecec[_0x4bae2a('0x12')][_0x4bae2a('0x4')],function(_0x2e2447){const _0x206f4c=_0x4bae2a;return{'model':db[_0x2e2447['model']],'as':_0x2e2447['as'],'attributes':_0x2e2447[_0x206f4c('0x0')],'include':_0x2e2447['include']?_[_0x206f4c('0x3')](_0x2e2447['include'],function(_0x473d28){const _0x514163=_0x206f4c;return{'model':db[_0x473d28['model']],'as':_0x473d28['as'],'attributes':_0x473d28['attributes'],'include':_0x473d28[_0x514163('0x4')]?_['map'](_0x473d28[_0x514163('0x4')],function(_0x37319c){const _0x3742c9=_0x514163;return{'model':db[_0x37319c[_0x3742c9('0x7')]],'as':_0x37319c['as'],'attributes':_0x37319c['attributes']};}):[]};}):[]};}):[]:[]})[_0x4bae2a('0xc')](function(_0x1d9401){const _0x2b2358=_0x4bae2a;logger[_0x2b2358('0x2')]('GetDeskAccount',_0x19ecec),logger['debug'](_0x2b2358('0xd'),_0x19ecec,JSON['stringify'](_0x1d9401)),_0x3a206e(_0x1d9401);})['catch'](function(_0x542007){const _0x58d08c=_0x4bae2a;logger[_0x58d08c('0x6')](_0x58d08c('0xd'),_0x542007[_0x58d08c('0x8')],_0x19ecec),_0x1ad464(_0x5ef689[_0x58d08c('0x6')](0x1f4,_0x542007[_0x58d08c('0x8')]));});});},exports['ShowDeskAccount']=function(_0x1d1b39){const _0x27e0c2=this;return new Promise(function(_0x11ad62,_0xb5022d){const _0x4c2b22=a231_0x3e91;return db['DeskAccount']['findOne']({'raw':_0x1d1b39[_0x4c2b22('0x12')]?_0x1d1b39[_0x4c2b22('0x12')][_0x4c2b22('0x10')]===undefined?!![]:![]:!![],'where':_0x1d1b39['options']?_0x1d1b39[_0x4c2b22('0x12')][_0x4c2b22('0xa')]||null:null,'attributes':_0x1d1b39[_0x4c2b22('0x12')]?_0x1d1b39[_0x4c2b22('0x12')][_0x4c2b22('0x0')]||null:null,'include':_0x1d1b39[_0x4c2b22('0x12')]?_0x1d1b39[_0x4c2b22('0x12')][_0x4c2b22('0x4')]?_[_0x4c2b22('0x3')](_0x1d1b39[_0x4c2b22('0x12')]['include'],function(_0x45dcbf){const _0x405950=_0x4c2b22;return{'model':db[_0x45dcbf['model']],'as':_0x45dcbf['as'],'attributes':_0x45dcbf[_0x405950('0x0')],'include':_0x45dcbf[_0x405950('0x4')]?_['map'](_0x45dcbf[_0x405950('0x4')],function(_0x572172){const _0x4bc528=_0x405950;return{'model':db[_0x572172[_0x4bc528('0x7')]],'as':_0x572172['as'],'attributes':_0x572172[_0x4bc528('0x0')],'include':_0x572172[_0x4bc528('0x4')]?_[_0x4bc528('0x3')](_0x572172[_0x4bc528('0x4')],function(_0x110692){const _0x3556d9=_0x4bc528;return{'model':db[_0x110692[_0x3556d9('0x7')]],'as':_0x110692['as'],'attributes':_0x110692[_0x3556d9('0x0')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x13ab17){const _0x25715c=_0x4c2b22;logger[_0x25715c('0x2')]('ShowDeskAccount',_0x1d1b39),logger[_0x25715c('0x9')](_0x25715c('0x1'),_0x1d1b39,JSON['stringify'](_0x13ab17)),_0x11ad62(_0x13ab17);})[_0x4c2b22('0xb')](function(_0x2d2fbd){const _0xbd5952=_0x4c2b22;logger[_0xbd5952('0x6')](_0xbd5952('0x1'),_0x2d2fbd[_0xbd5952('0x8')],_0x1d1b39),_0xb5022d(_0x27e0c2[_0xbd5952('0x6')](0x1f4,_0x2d2fbd[_0xbd5952('0x8')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index 35c5f64..8c85158 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a232_0x1529=['/:id/descriptions','/:id/tags','getFields','destroy','isAuthenticated','delete','/:id','put','setTags','getTags','getDescriptions','/:id/subjects','post','express','./intDeskConfiguration.controller','show','getSubjects','get'];(function(_0x3e271f,_0x1529cf){const _0x1adf5f=function(_0xdd51cb){while(--_0xdd51cb){_0x3e271f['push'](_0x3e271f['shift']());}};_0x1adf5f(++_0x1529cf);}(a232_0x1529,0x188));const a232_0x1adf=function(_0x3e271f,_0x1529cf){_0x3e271f=_0x3e271f-0x0;let _0x1adf5f=a232_0x1529[_0x3e271f];return _0x1adf5f;};const _0x5c3b53=a232_0x1adf;'use strict';const express=require(_0x5c3b53('0x11')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x5c3b53('0x0'));router[_0x5c3b53('0x3')]('/',auth['isAuthenticated'](),controller['index']),router['get']('/:id',auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0x1')]),router['get']('/:id/fields',auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0x6')]),router['get'](_0x5c3b53('0xf'),auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0x2')]),router[_0x5c3b53('0x3')](_0x5c3b53('0x4'),auth['isAuthenticated'](),controller[_0x5c3b53('0xe')]),router[_0x5c3b53('0x3')](_0x5c3b53('0x5'),auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0xd')]),router['post']('/',auth[_0x5c3b53('0x8')](),controller['create']),router[_0x5c3b53('0x10')]('/:id/tags',auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0xc')]),router[_0x5c3b53('0xb')](_0x5c3b53('0xa'),auth[_0x5c3b53('0x8')](),controller['update']),router[_0x5c3b53('0x9')](_0x5c3b53('0xa'),auth[_0x5c3b53('0x8')](),controller[_0x5c3b53('0x7')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index 953b41e..d612e22 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a233_0x29e6=['exports','sequelize','STRING'];(function(_0x5dcfb0,_0x29e6ac){const _0x2daab3=function(_0x1d12e4){while(--_0x1d12e4){_0x5dcfb0['push'](_0x5dcfb0['shift']());}};_0x2daab3(++_0x29e6ac);}(a233_0x29e6,0x96));const a233_0x2daa=function(_0x5dcfb0,_0x29e6ac){_0x5dcfb0=_0x5dcfb0-0x0;let _0x2daab3=a233_0x29e6[_0x5dcfb0];return _0x2daab3;};const _0x204cc1=a233_0x2daa;'use strict';const Sequelize=require(_0x204cc1('0x1'));module[_0x204cc1('0x0')]={'name':{'type':Sequelize[_0x204cc1('0x2')]},'description':{'type':Sequelize[_0x204cc1('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index 4a7f217..af95c5c 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a234_0x1a26=['attributes','filters','params','offset','pick','findOne','filter','Tag','Content-Range','error','getSubjects','model','show','update','getFields','name','DeskConfiguration','findAll','count','rawAttributes','merge','setTags','then','intersection','send','fields','sendStatus','../../components/parsers/qs','catch','keys','sort','DeskField','limit','include','map','order','ids','lodash','api','rows','nolimit','options','status','getTags','stack','undefined','where','getDescriptions','../../mysqldb','create','includeAll','body','query','../../config/logger','like','length','key','index','fieldName','json','VIRTUAL','sequelize','destroy'];(function(_0x342275,_0x1a26c4){const _0x434405=function(_0x75a482){while(--_0x75a482){_0x342275['push'](_0x342275['shift']());}};_0x434405(++_0x1a26c4);}(a234_0x1a26,0x15b));const a234_0x4344=function(_0x342275,_0x1a26c4){_0x342275=_0x342275-0x0;let _0x434405=a234_0x1a26[_0x342275];return _0x434405;};const _0x39ad35=a234_0x4344;'use strict';const _=require(_0x39ad35('0x5')),qs=require(_0x39ad35('0x3a')),logger=require(_0x39ad35('0x15'))(_0x39ad35('0x6')),db=require(_0x39ad35('0x10'))['db'],{Op}=require(_0x39ad35('0x1d'));function respondWithResult(_0x75a482,_0x364772){return _0x364772=_0x364772||0xc8,function(_0x5f4b44){const _0x2e422b=a234_0x4344;if(_0x5f4b44)return _0x75a482['status'](_0x364772)[_0x2e422b('0x1b')](_0x5f4b44);};}function respondWithFilteredResult(_0x3b4c10,_0x3f665a){return function(_0x34278a){const _0x1ba9dd=a234_0x4344;if(_0x34278a){const _0x26287d=_0x34278a[_0x1ba9dd('0x31')],_0x2c0f63=_0x3f665a[_0x1ba9dd('0x22')];let _0x39d08b=_0x3f665a['offset']+_0x3f665a[_0x1ba9dd('0x0')],_0x5e3fa6;return _0x39d08b>=_0x26287d?(_0x39d08b=_0x26287d,_0x5e3fa6=0xc8):_0x5e3fa6=0xce,_0x3b4c10[_0x1ba9dd('0xa')](_0x5e3fa6),_0x3b4c10['set'](_0x1ba9dd('0x27'),_0x2c0f63+'-'+_0x39d08b+'/'+_0x26287d)[_0x1ba9dd('0x1b')](_0x34278a);}return null;};}function saveUpdates(_0x524eae){return function(_0xb7be53){const _0x18a40d=a234_0x4344;if(_0xb7be53)return _0xb7be53[_0x18a40d('0x2c')](_0x524eae)['then'](function(_0x4b5883){return _0x4b5883;});return null;};}function removeEntity(_0x150c83){return function(_0x1455c8){const _0x2a8f55=a234_0x4344;if(_0x1455c8)return _0x1455c8[_0x2a8f55('0x1e')]()[_0x2a8f55('0x35')](function(){const _0x37a256=_0x2a8f55;_0x150c83[_0x37a256('0xa')](0xcc)['end']();});};}function handleEntityNotFound(_0xdd219e){return function(_0x84af96){const _0x5a423a=a234_0x4344;return!_0x84af96&&_0xdd219e[_0x5a423a('0x39')](0x194),_0x84af96;};}function handleError(_0x538f99,_0x8fa3a1){return _0x8fa3a1=_0x8fa3a1||0x1f4,function(_0x4cbf4a){const _0x4bcff8=a234_0x4344;logger[_0x4bcff8('0x28')](_0x4cbf4a[_0x4bcff8('0xc')]),_0x4cbf4a[_0x4bcff8('0x2e')]&&delete _0x4cbf4a[_0x4bcff8('0x2e')],_0x538f99[_0x4bcff8('0xa')](_0x8fa3a1)[_0x4bcff8('0x37')](_0x4cbf4a);};}exports[_0x39ad35('0x19')]=function(_0x41bc1e,_0x7ee972){const _0x3ff029=_0x39ad35;let _0x51f0f4={};const _0x187a56={},_0x23fdc9={'count':0x0,'rows':[]},_0x303bf3=_[_0x3ff029('0x2')](db[_0x3ff029('0x2f')]['rawAttributes'],function(_0x56fcfe){const _0x45c4f2=_0x3ff029;return{'name':_0x56fcfe[_0x45c4f2('0x1a')],'type':_0x56fcfe['type'][_0x45c4f2('0x18')]};});_0x187a56[_0x3ff029('0x2a')]=_[_0x3ff029('0x2')](_0x303bf3,_0x3ff029('0x2e')),_0x187a56[_0x3ff029('0x14')]=_[_0x3ff029('0x3c')](_0x41bc1e[_0x3ff029('0x14')]),_0x187a56['filters']=_[_0x3ff029('0x36')](_0x187a56[_0x3ff029('0x2a')],_0x187a56[_0x3ff029('0x14')]),_0x51f0f4[_0x3ff029('0x1f')]=_['intersection'](_0x187a56['model'],qs[_0x3ff029('0x38')](_0x41bc1e[_0x3ff029('0x14')][_0x3ff029('0x38')])),_0x51f0f4['attributes']=_0x51f0f4['attributes'][_0x3ff029('0x17')]?_0x51f0f4['attributes']:_0x187a56[_0x3ff029('0x2a')];typeof _0x41bc1e['query'][_0x3ff029('0x8')]===_0x3ff029('0xd')&&(_0x51f0f4[_0x3ff029('0x0')]=qs['limit'](_0x41bc1e['query']['limit']),_0x51f0f4[_0x3ff029('0x22')]=qs[_0x3ff029('0x22')](_0x41bc1e['query'][_0x3ff029('0x22')]));_0x51f0f4[_0x3ff029('0x3')]=qs['sort'](_0x41bc1e[_0x3ff029('0x14')]['sort']),_0x51f0f4['where']=qs['filters'](_[_0x3ff029('0x23')](_0x41bc1e[_0x3ff029('0x14')],_0x187a56[_0x3ff029('0x20')]),_0x303bf3);_0x41bc1e[_0x3ff029('0x14')]['filter']&&(_0x51f0f4[_0x3ff029('0xe')]=_[_0x3ff029('0x33')](_0x51f0f4[_0x3ff029('0xe')],{[Op['or']]:_['map'](_0x303bf3,function(_0x1cf0e1){const _0x4668f1=_0x3ff029;if(_0x1cf0e1['type']!==_0x4668f1('0x1c')){const _0x3fc6e3={};return _0x3fc6e3[_0x1cf0e1[_0x4668f1('0x2e')]]={[Op['like']]:'%'+_0x41bc1e[_0x4668f1('0x14')][_0x4668f1('0x25')]+'%'},_0x3fc6e3;}})}));_0x51f0f4=_[_0x3ff029('0x33')]({},_0x51f0f4,_0x41bc1e[_0x3ff029('0x9')]);const _0x4cf4c4={'where':_0x51f0f4['where']};return db[_0x3ff029('0x2f')]['count'](_0x4cf4c4)[_0x3ff029('0x35')](function(_0x24d748){const _0x3d6487=_0x3ff029;return _0x23fdc9[_0x3d6487('0x31')]=_0x24d748,_0x41bc1e[_0x3d6487('0x14')][_0x3d6487('0x12')]&&(_0x51f0f4[_0x3d6487('0x1')]=[{'all':!![]}]),db[_0x3d6487('0x2f')][_0x3d6487('0x30')](_0x51f0f4);})[_0x3ff029('0x35')](function(_0xc8d481){const _0x4cd453=_0x3ff029;return _0x23fdc9[_0x4cd453('0x7')]=_0xc8d481,_0x23fdc9;})[_0x3ff029('0x35')](respondWithFilteredResult(_0x7ee972,_0x51f0f4))[_0x3ff029('0x3b')](handleError(_0x7ee972,null));},exports[_0x39ad35('0x2b')]=function(_0x8b7052,_0x16154f){const _0x33725c=_0x39ad35;let _0x2626f1={'raw':![],'where':{'id':_0x8b7052[_0x33725c('0x21')]['id']}};const _0x3f646e={};return _0x3f646e[_0x33725c('0x2a')]=_[_0x33725c('0x3c')](db[_0x33725c('0x2f')][_0x33725c('0x32')]),_0x3f646e['query']=_['keys'](_0x8b7052[_0x33725c('0x14')]),_0x3f646e[_0x33725c('0x20')]=_[_0x33725c('0x36')](_0x3f646e[_0x33725c('0x2a')],_0x3f646e['query']),_0x2626f1['attributes']=_['intersection'](_0x3f646e[_0x33725c('0x2a')],qs[_0x33725c('0x38')](_0x8b7052['query'][_0x33725c('0x38')])),_0x2626f1[_0x33725c('0x1f')]=_0x2626f1[_0x33725c('0x1f')][_0x33725c('0x17')]?_0x2626f1['attributes']:_0x3f646e[_0x33725c('0x2a')],_0x8b7052[_0x33725c('0x14')]['includeAll']&&(_0x2626f1[_0x33725c('0x1')]=[{'all':!![]}]),_0x2626f1=_['merge']({},_0x2626f1,_0x8b7052['options']),db[_0x33725c('0x2f')][_0x33725c('0x24')](_0x2626f1)[_0x33725c('0x35')](handleEntityNotFound(_0x16154f,null))['then'](respondWithResult(_0x16154f,null))[_0x33725c('0x3b')](handleError(_0x16154f,null));},exports[_0x39ad35('0x11')]=function(_0xa3981a,_0x1f31bd){const _0x248b81=_0x39ad35;return db[_0x248b81('0x2f')][_0x248b81('0x11')](_0xa3981a[_0x248b81('0x13')],{})[_0x248b81('0x35')](respondWithResult(_0x1f31bd,0xc9))['catch'](handleError(_0x1f31bd,null));},exports[_0x39ad35('0x2c')]=function(_0x2677af,_0x5ebf8b){const _0x54c3db=_0x39ad35;return _0x2677af[_0x54c3db('0x13')]['id']&&delete _0x2677af[_0x54c3db('0x13')]['id'],db[_0x54c3db('0x2f')][_0x54c3db('0x24')]({'where':{'id':_0x2677af[_0x54c3db('0x21')]['id']}})['then'](handleEntityNotFound(_0x5ebf8b,null))[_0x54c3db('0x35')](saveUpdates(_0x2677af[_0x54c3db('0x13')],null))[_0x54c3db('0x35')](respondWithResult(_0x5ebf8b,null))[_0x54c3db('0x3b')](handleError(_0x5ebf8b,null));},exports[_0x39ad35('0x1e')]=function(_0x3bf309,_0x2c6b8d){const _0x9f8f10=_0x39ad35;return db[_0x9f8f10('0x2f')][_0x9f8f10('0x24')]({'where':{'id':_0x3bf309[_0x9f8f10('0x21')]['id']}})['then'](handleEntityNotFound(_0x2c6b8d,null))[_0x9f8f10('0x35')](removeEntity(_0x2c6b8d,null))[_0x9f8f10('0x3b')](handleError(_0x2c6b8d,null));},exports['getFields']=function(_0x11a5d7,_0x13a1e3){const _0x365241=_0x39ad35;let _0x2d60bd={};const _0x5cffbb={};let _0x5ef54a,_0x1b7cb1;return db['DeskConfiguration'][_0x365241('0x24')]({'where':{'id':_0x11a5d7[_0x365241('0x21')]['id']}})[_0x365241('0x35')](handleEntityNotFound(_0x13a1e3,null))[_0x365241('0x35')](function(_0xf87b79){const _0x144ecf=_0x365241;if(_0xf87b79)return _0x5ef54a=_0xf87b79,_0x5cffbb[_0x144ecf('0x2a')]=_['keys'](db[_0x144ecf('0x3e')][_0x144ecf('0x32')]),_0x5cffbb[_0x144ecf('0x14')]=_[_0x144ecf('0x3c')](_0x11a5d7[_0x144ecf('0x14')]),_0x5cffbb[_0x144ecf('0x20')]=_[_0x144ecf('0x36')](_0x5cffbb['model'],_0x5cffbb[_0x144ecf('0x14')]),_0x2d60bd[_0x144ecf('0x1f')]=_['intersection'](_0x5cffbb[_0x144ecf('0x2a')],qs[_0x144ecf('0x38')](_0x11a5d7[_0x144ecf('0x14')][_0x144ecf('0x38')])),_0x2d60bd[_0x144ecf('0x1f')]=_0x2d60bd['attributes'][_0x144ecf('0x17')]?_0x2d60bd[_0x144ecf('0x1f')]:_0x5cffbb['model'],_0x2d60bd[_0x144ecf('0x3')]=qs[_0x144ecf('0x3d')](_0x11a5d7['query'][_0x144ecf('0x3d')]),_0x2d60bd[_0x144ecf('0xe')]=qs[_0x144ecf('0x20')](_['pick'](_0x11a5d7['query'],_0x5cffbb[_0x144ecf('0x20')])),_0x11a5d7['query'][_0x144ecf('0x25')]&&(_0x2d60bd[_0x144ecf('0xe')]=_[_0x144ecf('0x33')](_0x2d60bd[_0x144ecf('0xe')],{[Op['or']]:_[_0x144ecf('0x2')](_0x2d60bd[_0x144ecf('0x1f')],function(_0x301116){const _0x57be73=_0x144ecf,_0x2ead40={};return _0x2ead40[_0x301116]={[Op[_0x57be73('0x16')]]:'%'+_0x11a5d7[_0x57be73('0x14')]['filter']+'%'},_0x2ead40;})})),_0x2d60bd=_['merge']({},_0x2d60bd,_0x11a5d7[_0x144ecf('0x9')]),_0x5ef54a[_0x144ecf('0x2d')](_0x2d60bd);})[_0x365241('0x35')](function(_0x164bbd){const _0x16b0e2=_0x365241;if(_0x164bbd)return _0x1b7cb1=_0x164bbd[_0x16b0e2('0x17')],typeof _0x11a5d7[_0x16b0e2('0x14')][_0x16b0e2('0x8')]===_0x16b0e2('0xd')&&(_0x2d60bd[_0x16b0e2('0x0')]=qs[_0x16b0e2('0x0')](_0x11a5d7[_0x16b0e2('0x14')][_0x16b0e2('0x0')]),_0x2d60bd[_0x16b0e2('0x22')]=qs['offset'](_0x11a5d7['query'][_0x16b0e2('0x22')])),_0x5ef54a[_0x16b0e2('0x2d')](_0x2d60bd);})[_0x365241('0x35')](function(_0x1060ef){if(_0x1060ef)return _0x1060ef?{'count':_0x1b7cb1,'rows':_0x1060ef}:null;})[_0x365241('0x35')](respondWithResult(_0x13a1e3,null))[_0x365241('0x3b')](handleError(_0x13a1e3,null));},exports[_0x39ad35('0x29')]=function(_0x2cc7ce,_0x1c9071){const _0x463bd6=_0x39ad35;let _0xbb931d={};const _0x43060c={};let _0x4f64fb,_0x150024;return db[_0x463bd6('0x2f')][_0x463bd6('0x24')]({'where':{'id':_0x2cc7ce[_0x463bd6('0x21')]['id']}})['then'](handleEntityNotFound(_0x1c9071,null))[_0x463bd6('0x35')](function(_0x3fae39){const _0x35a89f=_0x463bd6;if(_0x3fae39)return _0x4f64fb=_0x3fae39,_0x43060c['model']=_[_0x35a89f('0x3c')](db[_0x35a89f('0x3e')]['rawAttributes']),_0x43060c[_0x35a89f('0x14')]=_[_0x35a89f('0x3c')](_0x2cc7ce['query']),_0x43060c[_0x35a89f('0x20')]=_[_0x35a89f('0x36')](_0x43060c[_0x35a89f('0x2a')],_0x43060c[_0x35a89f('0x14')]),_0xbb931d[_0x35a89f('0x1f')]=_[_0x35a89f('0x36')](_0x43060c[_0x35a89f('0x2a')],qs[_0x35a89f('0x38')](_0x2cc7ce['query'][_0x35a89f('0x38')])),_0xbb931d['attributes']=_0xbb931d['attributes'][_0x35a89f('0x17')]?_0xbb931d[_0x35a89f('0x1f')]:_0x43060c[_0x35a89f('0x2a')],_0xbb931d[_0x35a89f('0x3')]=qs[_0x35a89f('0x3d')](_0x2cc7ce[_0x35a89f('0x14')][_0x35a89f('0x3d')]),_0xbb931d[_0x35a89f('0xe')]=qs[_0x35a89f('0x20')](_[_0x35a89f('0x23')](_0x2cc7ce[_0x35a89f('0x14')],_0x43060c[_0x35a89f('0x20')])),_0x2cc7ce['query'][_0x35a89f('0x25')]&&(_0xbb931d[_0x35a89f('0xe')]=_['merge'](_0xbb931d['where'],{[Op['or']]:_[_0x35a89f('0x2')](_0xbb931d[_0x35a89f('0x1f')],function(_0x258eae){const _0x99fc49=_0x35a89f,_0xc4a252={};return _0xc4a252[_0x258eae]={[Op[_0x99fc49('0x16')]]:'%'+_0x2cc7ce[_0x99fc49('0x14')][_0x99fc49('0x25')]+'%'},_0xc4a252;})})),_0xbb931d=_[_0x35a89f('0x33')]({},_0xbb931d,_0x2cc7ce[_0x35a89f('0x9')]),_0x4f64fb[_0x35a89f('0x29')](_0xbb931d);})[_0x463bd6('0x35')](function(_0x6ec015){const _0x38faec=_0x463bd6;if(_0x6ec015)return _0x150024=_0x6ec015['length'],typeof _0x2cc7ce[_0x38faec('0x14')]['nolimit']===_0x38faec('0xd')&&(_0xbb931d[_0x38faec('0x0')]=qs[_0x38faec('0x0')](_0x2cc7ce[_0x38faec('0x14')][_0x38faec('0x0')]),_0xbb931d[_0x38faec('0x22')]=qs[_0x38faec('0x22')](_0x2cc7ce[_0x38faec('0x14')][_0x38faec('0x22')])),_0x4f64fb[_0x38faec('0x29')](_0xbb931d);})[_0x463bd6('0x35')](function(_0x5a37a9){if(_0x5a37a9)return _0x5a37a9?{'count':_0x150024,'rows':_0x5a37a9}:null;})[_0x463bd6('0x35')](respondWithResult(_0x1c9071,null))[_0x463bd6('0x3b')](handleError(_0x1c9071,null));},exports[_0x39ad35('0xf')]=function(_0x12a3ce,_0x17b7ee){const _0x27e1fc=_0x39ad35;let _0x294ba6={};const _0x29507d={};let _0x565a57,_0x275042;return db['DeskConfiguration'][_0x27e1fc('0x24')]({'where':{'id':_0x12a3ce[_0x27e1fc('0x21')]['id']}})[_0x27e1fc('0x35')](handleEntityNotFound(_0x17b7ee,null))['then'](function(_0x172563){const _0x1acf9b=_0x27e1fc;if(_0x172563)return _0x565a57=_0x172563,_0x29507d['model']=_[_0x1acf9b('0x3c')](db[_0x1acf9b('0x3e')][_0x1acf9b('0x32')]),_0x29507d[_0x1acf9b('0x14')]=_[_0x1acf9b('0x3c')](_0x12a3ce['query']),_0x29507d[_0x1acf9b('0x20')]=_['intersection'](_0x29507d[_0x1acf9b('0x2a')],_0x29507d[_0x1acf9b('0x14')]),_0x294ba6[_0x1acf9b('0x1f')]=_['intersection'](_0x29507d[_0x1acf9b('0x2a')],qs['fields'](_0x12a3ce[_0x1acf9b('0x14')][_0x1acf9b('0x38')])),_0x294ba6[_0x1acf9b('0x1f')]=_0x294ba6[_0x1acf9b('0x1f')][_0x1acf9b('0x17')]?_0x294ba6[_0x1acf9b('0x1f')]:_0x29507d['model'],_0x294ba6[_0x1acf9b('0x3')]=qs['sort'](_0x12a3ce['query'][_0x1acf9b('0x3d')]),_0x294ba6['where']=qs['filters'](_[_0x1acf9b('0x23')](_0x12a3ce[_0x1acf9b('0x14')],_0x29507d[_0x1acf9b('0x20')])),_0x12a3ce[_0x1acf9b('0x14')][_0x1acf9b('0x25')]&&(_0x294ba6[_0x1acf9b('0xe')]=_[_0x1acf9b('0x33')](_0x294ba6[_0x1acf9b('0xe')],{[Op['or']]:_[_0x1acf9b('0x2')](_0x294ba6['attributes'],function(_0x31b8b5){const _0x3524d9=_0x1acf9b,_0x2686e0={};return _0x2686e0[_0x31b8b5]={[Op[_0x3524d9('0x16')]]:'%'+_0x12a3ce[_0x3524d9('0x14')]['filter']+'%'},_0x2686e0;})})),_0x294ba6=_['merge']({},_0x294ba6,_0x12a3ce[_0x1acf9b('0x9')]),_0x565a57[_0x1acf9b('0xf')](_0x294ba6);})[_0x27e1fc('0x35')](function(_0x42fa5c){const _0x316ff6=_0x27e1fc;if(_0x42fa5c)return _0x275042=_0x42fa5c[_0x316ff6('0x17')],typeof _0x12a3ce[_0x316ff6('0x14')][_0x316ff6('0x8')]===_0x316ff6('0xd')&&(_0x294ba6[_0x316ff6('0x0')]=qs[_0x316ff6('0x0')](_0x12a3ce[_0x316ff6('0x14')]['limit']),_0x294ba6['offset']=qs['offset'](_0x12a3ce[_0x316ff6('0x14')][_0x316ff6('0x22')])),_0x565a57[_0x316ff6('0xf')](_0x294ba6);})[_0x27e1fc('0x35')](function(_0x38bc44){if(_0x38bc44)return _0x38bc44?{'count':_0x275042,'rows':_0x38bc44}:null;})['then'](respondWithResult(_0x17b7ee,null))[_0x27e1fc('0x3b')](handleError(_0x17b7ee,null));},exports['getTags']=function(_0x1fe83c,_0x2ea5f5){const _0x334fff=_0x39ad35;let _0x3018c8={};const _0x2e742f={};let _0x910e5d,_0x5d082e;return db[_0x334fff('0x2f')][_0x334fff('0x24')]({'where':{'id':_0x1fe83c[_0x334fff('0x21')]['id']}})[_0x334fff('0x35')](handleEntityNotFound(_0x2ea5f5,null))[_0x334fff('0x35')](function(_0x44becc){const _0x54da25=_0x334fff;if(_0x44becc)return _0x910e5d=_0x44becc,_0x2e742f['model']=_[_0x54da25('0x3c')](db[_0x54da25('0x26')]['rawAttributes']),_0x2e742f['query']=_['keys'](_0x1fe83c[_0x54da25('0x14')]),_0x2e742f['filters']=_[_0x54da25('0x36')](_0x2e742f[_0x54da25('0x2a')],_0x2e742f['query']),_0x3018c8['attributes']=_[_0x54da25('0x36')](_0x2e742f[_0x54da25('0x2a')],qs[_0x54da25('0x38')](_0x1fe83c['query']['fields'])),_0x3018c8[_0x54da25('0x1f')]=_0x3018c8[_0x54da25('0x1f')][_0x54da25('0x17')]?_0x3018c8['attributes']:_0x2e742f[_0x54da25('0x2a')],_0x3018c8['order']=qs[_0x54da25('0x3d')](_0x1fe83c[_0x54da25('0x14')][_0x54da25('0x3d')]),_0x3018c8[_0x54da25('0xe')]=qs['filters'](_[_0x54da25('0x23')](_0x1fe83c[_0x54da25('0x14')],_0x2e742f[_0x54da25('0x20')])),_0x1fe83c[_0x54da25('0x14')]['filter']&&(_0x3018c8['where']=_[_0x54da25('0x33')](_0x3018c8[_0x54da25('0xe')],{[Op['or']]:_[_0x54da25('0x2')](_0x3018c8[_0x54da25('0x1f')],function(_0x42928d){const _0x59ffcb=_0x54da25,_0xc75dc9={};return _0xc75dc9[_0x42928d]={[Op['like']]:'%'+_0x1fe83c['query'][_0x59ffcb('0x25')]+'%'},_0xc75dc9;})})),_0x3018c8=_['merge']({},_0x3018c8,_0x1fe83c['options']),_0x910e5d[_0x54da25('0xb')](_0x3018c8);})[_0x334fff('0x35')](function(_0x107386){const _0x671926=_0x334fff;if(_0x107386)return _0x5d082e=_0x107386[_0x671926('0x17')],typeof _0x1fe83c[_0x671926('0x14')][_0x671926('0x8')]===_0x671926('0xd')&&(_0x3018c8['limit']=qs[_0x671926('0x0')](_0x1fe83c[_0x671926('0x14')][_0x671926('0x0')]),_0x3018c8['offset']=qs['offset'](_0x1fe83c[_0x671926('0x14')][_0x671926('0x22')])),_0x910e5d[_0x671926('0xb')](_0x3018c8);})[_0x334fff('0x35')](function(_0x1e882c){if(_0x1e882c)return _0x1e882c?{'count':_0x5d082e,'rows':_0x1e882c}:null;})[_0x334fff('0x35')](respondWithResult(_0x2ea5f5,null))[_0x334fff('0x3b')](handleError(_0x2ea5f5,null));},exports[_0x39ad35('0x34')]=function(_0x5790ad,_0x4f3738){const _0x529a34=_0x39ad35;return _0x5790ad['body']['id']&&delete _0x5790ad[_0x529a34('0x13')]['id'],db[_0x529a34('0x2f')][_0x529a34('0x24')]({'where':{'id':_0x5790ad[_0x529a34('0x21')]['id']}})[_0x529a34('0x35')](handleEntityNotFound(_0x4f3738,null))[_0x529a34('0x35')](function(_0x2dae35){const _0x52d04f=_0x529a34;if(_0x2dae35)return _0x2dae35[_0x52d04f('0x34')](_0x5790ad[_0x52d04f('0x13')][_0x52d04f('0x4')]||[]);return null;})['then'](respondWithResult(_0x4f3738,null))['catch'](handleError(_0x4f3738,null));}; \ No newline at end of file +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 diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index 25e98e2..fc68227 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a235_0x2529=['DeskConfiguration','define','exports','int_desk_configurations'];(function(_0x1de620,_0x2529fd){const _0x89f3fe=function(_0x430b56){while(--_0x430b56){_0x1de620['push'](_0x1de620['shift']());}};_0x89f3fe(++_0x2529fd);}(a235_0x2529,0xb0));const a235_0x89f3=function(_0x1de620,_0x2529fd){_0x1de620=_0x1de620-0x0;let _0x89f3fe=a235_0x2529[_0x1de620];return _0x89f3fe;};const _0x2f7196=a235_0x89f3;'use strict';const attributes=require('./intDeskConfiguration.attributes');module[_0x2f7196('0x2')]=function(_0x430b56){const _0x500c2c=_0x2f7196,_0x526ef8=_0x430b56[_0x500c2c('0x1')](_0x500c2c('0x0'),attributes,{'tableName':_0x500c2c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x526ef8;}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index 401ebeb..7f711c0 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a236_0x2e3c=['update','show','get','index','express','./intDeskField.controller','put','../../components/auth/service','/:id','destroy','isAuthenticated','create'];(function(_0xee7a85,_0x2e3c57){const _0x16d2a5=function(_0x8460b){while(--_0x8460b){_0xee7a85['push'](_0xee7a85['shift']());}};_0x16d2a5(++_0x2e3c57);}(a236_0x2e3c,0x182));const a236_0x16d2=function(_0xee7a85,_0x2e3c57){_0xee7a85=_0xee7a85-0x0;let _0x16d2a5=a236_0x2e3c[_0xee7a85];return _0x16d2a5;};const _0x4cdbeb=a236_0x16d2;'use strict';const express=require(_0x4cdbeb('0x2')),router=express['Router'](),auth=require(_0x4cdbeb('0x5')),controller=require(_0x4cdbeb('0x3'));router[_0x4cdbeb('0x0')]('/',auth[_0x4cdbeb('0x8')](),controller[_0x4cdbeb('0x1')]),router[_0x4cdbeb('0x0')](_0x4cdbeb('0x6'),auth[_0x4cdbeb('0x8')](),controller[_0x4cdbeb('0xb')]),router['post']('/',auth[_0x4cdbeb('0x8')](),controller[_0x4cdbeb('0x9')]),router[_0x4cdbeb('0x4')](_0x4cdbeb('0x6'),auth['isAuthenticated'](),controller[_0x4cdbeb('0xa')]),router['delete'](_0x4cdbeb('0x6'),auth[_0x4cdbeb('0x8')](),controller[_0x4cdbeb('0x7')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index bc5ce04..098fa1b 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a237_0x123a=['BOOLEAN','ENUM','customVariable','variable','string','STRING'];(function(_0x2116c9,_0x123a56){const _0x24ddad=function(_0x49e8d7){while(--_0x49e8d7){_0x2116c9['push'](_0x2116c9['shift']());}};_0x24ddad(++_0x123a56);}(a237_0x123a,0x1cf));const a237_0x24dd=function(_0x2116c9,_0x123a56){_0x2116c9=_0x2116c9-0x0;let _0x24ddad=a237_0x123a[_0x2116c9];return _0x24ddad;};const _0x3f2074=a237_0x24dd;'use strict';const Sequelize=require('sequelize');module['exports']={'type':{'type':Sequelize[_0x3f2074('0x0')](_0x3f2074('0x3'),_0x3f2074('0x2'),'customVariable','keyValue'),'defaultValue':_0x3f2074('0x3')},'content':{'type':Sequelize[_0x3f2074('0x4')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize['ENUM'](_0x3f2074('0x3'),_0x3f2074('0x2'),_0x3f2074('0x1'))},'keyContent':{'type':Sequelize[_0x3f2074('0x4')]},'idField':{'type':Sequelize[_0x3f2074('0x4')]},'nameField':{'type':Sequelize[_0x3f2074('0x4')]},'customField':{'type':Sequelize[_0x3f2074('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x3f2074('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index 08cf49f..b6c25e5 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a238_0x3ad9=['offset','rawAttributes','nolimit','count','status','params','fields','intersection','undefined','where','json','include','DeskField','sendStatus','send','filter','merge','findOne','show','model','end','create','error','findAll','limit','set','sort','length','includeAll','keys','Content-Range','sequelize','options','then','update','key','attributes','body','../../config/logger','fieldName','query','type','name','catch','../../mysqldb','map'];(function(_0x5cac8a,_0x3ad924){const _0x5513dc=function(_0x2f305d){while(--_0x2f305d){_0x5cac8a['push'](_0x5cac8a['shift']());}};_0x5513dc(++_0x3ad924);}(a238_0x3ad9,0x99));const a238_0x5513=function(_0x5cac8a,_0x3ad924){_0x5cac8a=_0x5cac8a-0x0;let _0x5513dc=a238_0x3ad9[_0x5cac8a];return _0x5513dc;};const _0x1a3ae3=a238_0x5513;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1a3ae3('0x17'))('api'),db=require(_0x1a3ae3('0x1d'))['db'],{Op}=require(_0x1a3ae3('0x10'));function respondWithResult(_0x2f305d,_0x371df1){return _0x371df1=_0x371df1||0xc8,function(_0x51a9ff){const _0x4049b0=a238_0x5513;if(_0x51a9ff)return _0x2f305d['status'](_0x371df1)[_0x4049b0('0x29')](_0x51a9ff);};}function respondWithFilteredResult(_0x4aa12f,_0x9048b0){return function(_0x4504bf){const _0x3d6f2e=a238_0x5513;if(_0x4504bf){const _0x4559e7=_0x4504bf['count'],_0x41bde1=_0x9048b0[_0x3d6f2e('0x1f')];let _0x67461a=_0x9048b0['offset']+_0x9048b0['limit'],_0x1057e6;return _0x67461a>=_0x4559e7?(_0x67461a=_0x4559e7,_0x1057e6=0xc8):_0x1057e6=0xce,_0x4aa12f[_0x3d6f2e('0x23')](_0x1057e6),_0x4aa12f[_0x3d6f2e('0xa')](_0x3d6f2e('0xf'),_0x41bde1+'-'+_0x67461a+'/'+_0x4559e7)[_0x3d6f2e('0x29')](_0x4504bf);}return null;};}function saveUpdates(_0x27a14d){return function(_0x39e0c6){const _0x307956=a238_0x5513;if(_0x39e0c6)return _0x39e0c6[_0x307956('0x13')](_0x27a14d)['then'](function(_0x5ede26){return _0x5ede26;});return null;};}function removeEntity(_0x273242){return function(_0x2148c0){const _0x1857cd=a238_0x5513;if(_0x2148c0)return _0x2148c0['destroy']()[_0x1857cd('0x12')](function(){const _0xce1e4d=_0x1857cd;_0x273242[_0xce1e4d('0x23')](0xcc)[_0xce1e4d('0x5')]();});};}function handleEntityNotFound(_0x243b5a){return function(_0x4312b6){const _0xdd8323=a238_0x5513;return!_0x4312b6&&_0x243b5a[_0xdd8323('0x2c')](0x194),_0x4312b6;};}function handleError(_0x22a76c,_0x15bfde){return _0x15bfde=_0x15bfde||0x1f4,function(_0x1636f5){const _0x307346=a238_0x5513;logger[_0x307346('0x7')](_0x1636f5['stack']),_0x1636f5[_0x307346('0x1b')]&&delete _0x1636f5['name'],_0x22a76c['status'](_0x15bfde)[_0x307346('0x2d')](_0x1636f5);};}exports['index']=function(_0x3bcaaf,_0x515fb1){const _0x57be05=_0x1a3ae3;let _0x4becc7={};const _0x5a0eb={},_0x3ff00b={'count':0x0,'rows':[]},_0x40dc98=_[_0x57be05('0x1e')](db['DeskField'][_0x57be05('0x20')],function(_0x45002d){const _0x1638be=_0x57be05;return{'name':_0x45002d[_0x1638be('0x18')],'type':_0x45002d[_0x1638be('0x1a')][_0x1638be('0x14')]};});_0x5a0eb[_0x57be05('0x4')]=_[_0x57be05('0x1e')](_0x40dc98,_0x57be05('0x1b')),_0x5a0eb['query']=_[_0x57be05('0xe')](_0x3bcaaf[_0x57be05('0x19')]),_0x5a0eb['filters']=_[_0x57be05('0x26')](_0x5a0eb[_0x57be05('0x4')],_0x5a0eb[_0x57be05('0x19')]),_0x4becc7['attributes']=_[_0x57be05('0x26')](_0x5a0eb[_0x57be05('0x4')],qs[_0x57be05('0x25')](_0x3bcaaf[_0x57be05('0x19')][_0x57be05('0x25')])),_0x4becc7[_0x57be05('0x15')]=_0x4becc7[_0x57be05('0x15')][_0x57be05('0xc')]?_0x4becc7['attributes']:_0x5a0eb[_0x57be05('0x4')];typeof _0x3bcaaf[_0x57be05('0x19')][_0x57be05('0x21')]===_0x57be05('0x27')&&(_0x4becc7[_0x57be05('0x9')]=qs[_0x57be05('0x9')](_0x3bcaaf[_0x57be05('0x19')][_0x57be05('0x9')]),_0x4becc7[_0x57be05('0x1f')]=qs['offset'](_0x3bcaaf[_0x57be05('0x19')][_0x57be05('0x1f')]));_0x4becc7['order']=qs[_0x57be05('0xb')](_0x3bcaaf[_0x57be05('0x19')]['sort']),_0x4becc7[_0x57be05('0x28')]=qs['filters'](_['pick'](_0x3bcaaf[_0x57be05('0x19')],_0x5a0eb['filters']),_0x40dc98);_0x3bcaaf[_0x57be05('0x19')][_0x57be05('0x0')]&&(_0x4becc7['where']=_[_0x57be05('0x1')](_0x4becc7[_0x57be05('0x28')],{[Op['or']]:_['map'](_0x40dc98,function(_0x416ee6){const _0x2c6729=_0x57be05;if(_0x416ee6['type']!=='VIRTUAL'){const _0x4fcd5a={};return _0x4fcd5a[_0x416ee6[_0x2c6729('0x1b')]]={[Op['like']]:'%'+_0x3bcaaf[_0x2c6729('0x19')][_0x2c6729('0x0')]+'%'},_0x4fcd5a;}})}));_0x4becc7=_[_0x57be05('0x1')]({},_0x4becc7,_0x3bcaaf['options']);const _0x8a6edd={'where':_0x4becc7[_0x57be05('0x28')]};return db['DeskField']['count'](_0x8a6edd)[_0x57be05('0x12')](function(_0x48dba4){const _0x3b8b83=_0x57be05;return _0x3ff00b[_0x3b8b83('0x22')]=_0x48dba4,_0x3bcaaf[_0x3b8b83('0x19')]['includeAll']&&(_0x4becc7['include']=[{'all':!![]}]),db[_0x3b8b83('0x2b')][_0x3b8b83('0x8')](_0x4becc7);})[_0x57be05('0x12')](function(_0x1e868e){return _0x3ff00b['rows']=_0x1e868e,_0x3ff00b;})[_0x57be05('0x12')](respondWithFilteredResult(_0x515fb1,_0x4becc7))['catch'](handleError(_0x515fb1,null));},exports[_0x1a3ae3('0x3')]=function(_0x4c8c8e,_0x3f8943){const _0x105adb=_0x1a3ae3;let _0x6781aa={'raw':!![],'where':{'id':_0x4c8c8e[_0x105adb('0x24')]['id']}};const _0x1cfc04={};return _0x1cfc04[_0x105adb('0x4')]=_['keys'](db[_0x105adb('0x2b')]['rawAttributes']),_0x1cfc04[_0x105adb('0x19')]=_['keys'](_0x4c8c8e[_0x105adb('0x19')]),_0x1cfc04['filters']=_[_0x105adb('0x26')](_0x1cfc04[_0x105adb('0x4')],_0x1cfc04['query']),_0x6781aa[_0x105adb('0x15')]=_['intersection'](_0x1cfc04[_0x105adb('0x4')],qs[_0x105adb('0x25')](_0x4c8c8e['query'][_0x105adb('0x25')])),_0x6781aa[_0x105adb('0x15')]=_0x6781aa['attributes'][_0x105adb('0xc')]?_0x6781aa['attributes']:_0x1cfc04[_0x105adb('0x4')],_0x4c8c8e[_0x105adb('0x19')][_0x105adb('0xd')]&&(_0x6781aa[_0x105adb('0x2a')]=[{'all':!![]}]),_0x6781aa=_[_0x105adb('0x1')]({},_0x6781aa,_0x4c8c8e[_0x105adb('0x11')]),db[_0x105adb('0x2b')][_0x105adb('0x2')](_0x6781aa)[_0x105adb('0x12')](handleEntityNotFound(_0x3f8943,null))[_0x105adb('0x12')](respondWithResult(_0x3f8943,null))['catch'](handleError(_0x3f8943,null));},exports['create']=function(_0xd52619,_0x5978fd){const _0x20ffaf=_0x1a3ae3;return db[_0x20ffaf('0x2b')][_0x20ffaf('0x6')](_0xd52619[_0x20ffaf('0x16')],{})['then'](respondWithResult(_0x5978fd,0xc9))[_0x20ffaf('0x1c')](handleError(_0x5978fd,null));},exports['update']=function(_0x59b341,_0x5e571d){const _0x35f8df=_0x1a3ae3;return _0x59b341['body']['id']&&delete _0x59b341[_0x35f8df('0x16')]['id'],db[_0x35f8df('0x2b')][_0x35f8df('0x2')]({'where':{'id':_0x59b341['params']['id']}})[_0x35f8df('0x12')](handleEntityNotFound(_0x5e571d,null))[_0x35f8df('0x12')](saveUpdates(_0x59b341[_0x35f8df('0x16')],null))[_0x35f8df('0x12')](respondWithResult(_0x5e571d,null))[_0x35f8df('0x1c')](handleError(_0x5e571d,null));},exports['destroy']=function(_0x48652b,_0x4e7291){const _0x3f6df3=_0x1a3ae3;return db[_0x3f6df3('0x2b')]['findOne']({'where':{'id':_0x48652b[_0x3f6df3('0x24')]['id']}})[_0x3f6df3('0x12')](handleEntityNotFound(_0x4e7291,null))[_0x3f6df3('0x12')](removeEntity(_0x4e7291,null))[_0x3f6df3('0x1c')](handleError(_0x4e7291,null));}; \ No newline at end of file +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 diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index a94e853..032338f 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a239_0x8b8a=['exports','desk_unique_index','idField','DeskField','int_desk_fields','FieldId'];(function(_0x3f552b,_0x8b8a32){const _0x267cae=function(_0x4449da){while(--_0x4449da){_0x3f552b['push'](_0x3f552b['shift']());}};_0x267cae(++_0x8b8a32);}(a239_0x8b8a,0x1de));const a239_0x267c=function(_0x3f552b,_0x8b8a32){_0x3f552b=_0x3f552b-0x0;let _0x267cae=a239_0x8b8a[_0x3f552b];return _0x267cae;};const _0x159e64=a239_0x267c;'use strict';const attributes=require('./intDeskField.attributes');module[_0x159e64('0x2')]=function(_0x4449da){const _0x185f60=_0x159e64,_0x105d2b=_0x4449da['define'](_0x185f60('0x5'),attributes,{'tableName':_0x185f60('0x0'),'paranoid':![],'indexes':[{'name':_0x185f60('0x3'),'fields':[_0x185f60('0x4'),_0x185f60('0x1')],'unique':!![]}],'timestamps':!![]});return _0x105d2b;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index 9109945..95842a9 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a240_0x49c0=['put','post','../../components/auth/service','destroy','get','Router','create','delete','/:id/fields','addConfiguration','/:id','getFields','/:id/configurations','isAuthenticated','./intDynamics365Account.controller'];(function(_0x2362f9,_0x49c04d){const _0x525aae=function(_0x5b85bc){while(--_0x5b85bc){_0x2362f9['push'](_0x2362f9['shift']());}};_0x525aae(++_0x49c04d);}(a240_0x49c0,0x18f));const a240_0x525a=function(_0x2362f9,_0x49c04d){_0x2362f9=_0x2362f9-0x0;let _0x525aae=a240_0x49c0[_0x2362f9];return _0x525aae;};const _0x55d3db=a240_0x525a;'use strict';const express=require('express'),router=express[_0x55d3db('0xb')](),auth=require(_0x55d3db('0x8')),controller=require(_0x55d3db('0x5'));router[_0x55d3db('0xa')]('/',auth[_0x55d3db('0x4')](),controller['index']),router[_0x55d3db('0xa')](_0x55d3db('0x1'),auth[_0x55d3db('0x4')](),controller['show']),router['get'](_0x55d3db('0x3'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x55d3db('0xa')](_0x55d3db('0xe'),auth[_0x55d3db('0x4')](),controller[_0x55d3db('0x2')]),router[_0x55d3db('0x7')]('/',auth[_0x55d3db('0x4')](),controller[_0x55d3db('0xc')]),router[_0x55d3db('0x7')](_0x55d3db('0x3'),auth[_0x55d3db('0x4')](),controller[_0x55d3db('0x0')]),router[_0x55d3db('0x6')]('/:id',auth[_0x55d3db('0x4')](),controller['update']),router[_0x55d3db('0xd')](_0x55d3db('0x1'),auth['isAuthenticated'](),controller[_0x55d3db('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 663ba74..7d759f7 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a241_0x4c1d=['sequelize','STRING'];(function(_0x45f629,_0x4c1d3a){const _0x2cea56=function(_0x110841){while(--_0x110841){_0x45f629['push'](_0x45f629['shift']());}};_0x2cea56(++_0x4c1d3a);}(a241_0x4c1d,0x1b4));const a241_0x2cea=function(_0x45f629,_0x4c1d3a){_0x45f629=_0x45f629-0x0;let _0x2cea56=a241_0x4c1d[_0x45f629];return _0x2cea56;};const _0x47142e=a241_0x2cea;'use strict';const Sequelize=require(_0x47142e('0x0'));module['exports']={'name':{'type':Sequelize[_0x47142e('0x1')]},'username':{'type':Sequelize[_0x47142e('0x1')]},'password':{'type':Sequelize[_0x47142e('0x1')]},'remoteUri':{'type':Sequelize[_0x47142e('0x1')]},'tenantId':{'type':Sequelize['STRING']},'clientId':{'type':Sequelize[_0x47142e('0x1')]},'clientSecret':{'type':Sequelize[_0x47142e('0x1')]},'serverUrl':{'type':Sequelize[_0x47142e('0x1')]},'description':{'type':Sequelize[_0x47142e('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index aa86c8e..3d36768 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a242_0x3337=['productidname','slaname','Value','Dynamics365Account','utcconversiontimezonecode','remoteUri','EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27','emailaddress','slice','BigIntAttributeMetadata','MetadataId','fieldName','username','Dynamics365Field','description','contractdetailidname',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','concat','getDescriptions','OptionSet','onholdtime','status','filter','Wrong\x20credentials','lastIndexOf','modifiedonbehalfbyyominame','modifiedbyname','BooleanAttributeMetadata','includeAll','masteridname','format','where','entityimage_url','password','customeridyominame','traversedpath','lodash','isNil','intersection','substring','modifiedbyexternalpartyyominame','https://login.microsoftonline.com/','channel','then','socialprofileidname','getSubjects','customeridname','contactidyominame','offset','numberofchildincidents','prioritycodename','rows','primarycontactidname','createdon','like','filters','tenantId','index','responsiblecontactidname','DisplayName','clientId','regardingobjectid','StringAttributeMetadata','incident','catch','name','StateAttributeMetadata','customerid','sequelize','order','modifiedbyexternalpartyname','modifiedon','count','FalseOption','sendStatus','test','request-promise-native','include','VIRTUAL','map','Attributes','customeridtype','PicklistAttributeMetadata','versionnumber','LogicalName','remove','subjectidname','owneridtype','destroy','DateTimeAttributeMetadata','caseorigincode','directioncode','pick','@odata.type','merge','modifiedbyyominame','undefined','Subjects','forEach','show','billedserviceunits','rawAttributes','contractidname','params','DecimalAttributeMetadata','modifiedonbehalfbyname','UserLocalizedLabel','EntityNameAttributeMetadata','limit','resolvebykpiidname','key','clientSecret','keys','entityimage_timestamp','send','sentimentvalue','util','createdbyexternalpartyyominame','overriddencreatedon','findAll','query','ticketType','Dynamics365Configuration','json','owneridname','GET','createdbyexternalpartyname','sort','followupby','attributes','subject','getFields','msdyn_iotalertname',')/Attributes(','Descriptions','responsiblecontactidyominame','../../mysqldb','create','nolimit','accountidyominame','transactioncurrencyidname','slainvokedidname','type','options','/oauth2/token','model','AccountId','findOne','true','createdbyyominame','productserialnumber','set','4.0','error','fields','all','phonenumber','../../config/logger','body','title','end',')/Microsoft.Dynamics.CRM.','Incident','value','statuscode','Bearer\x20','push','escalatedon','Content-Range','length','primarycontactidyominame','stack','update','influencescore','msdyn_incidenttypename','%s/api/data/v9.0/','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','PhoneCall','EntityDefinitions(','access_token',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','phonecall_activity_parties','false','getConfigurations','TrueOption','Label'];(function(_0x14f317,_0x333770){const _0x344731=function(_0x2ffaeb){while(--_0x2ffaeb){_0x14f317['push'](_0x14f317['shift']());}};_0x344731(++_0x333770);}(a242_0x3337,0xe1));const a242_0x3447=function(_0x14f317,_0x333770){_0x14f317=_0x14f317-0x0;let _0x344731=a242_0x3337[_0x14f317];return _0x344731;};const _0xdb8b68=a242_0x3447;'use strict';const rp=require(_0xdb8b68('0x25')),util=require(_0xdb8b68('0x4d')),_=require(_0xdb8b68('0xb7')),qs=require('../../components/parsers/qs'),logger=require(_0xdb8b68('0x76'))('api'),db=require(_0xdb8b68('0x61'))['db'],{Op}=require(_0xdb8b68('0x1d')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x2ffaeb,_0x1e29ce){return _0x1e29ce=_0x1e29ce||0xc8,function(_0x437a54){const _0x36d4c8=a242_0x3447;if(_0x437a54)return _0x2ffaeb[_0x36d4c8('0xa8')](_0x1e29ce)[_0x36d4c8('0x54')](_0x437a54);};}function respondWithFilteredResult(_0x38b155,_0xf2fff9){return function(_0x68cdb0){const _0x57bcf2=a242_0x3447;if(_0x68cdb0){const _0x4763f0=_0x68cdb0['count'],_0x8a939a=_0xf2fff9[_0x57bcf2('0x9')];let _0x3ab2df=_0xf2fff9[_0x57bcf2('0x9')]+_0xf2fff9['limit'],_0x32eab6;return _0x3ab2df>=_0x4763f0?(_0x3ab2df=_0x4763f0,_0x32eab6=0xc8):_0x32eab6=0xce,_0x38b155[_0x57bcf2('0xa8')](_0x32eab6),_0x38b155[_0x57bcf2('0x70')](_0x57bcf2('0x81'),_0x8a939a+'-'+_0x3ab2df+'/'+_0x4763f0)[_0x57bcf2('0x54')](_0x68cdb0);}return null;};}function saveUpdates(_0x15cc43){return function(_0x143532){const _0x507f7a=a242_0x3447;if(_0x143532)return _0x143532[_0x507f7a('0x85')](_0x15cc43)[_0x507f7a('0x4')](function(_0x3af648){return _0x3af648;});return null;};}function removeEntity(_0x436e77){return function(_0x3c55aa){if(_0x3c55aa)return _0x3c55aa['destroy']()['then'](function(){const _0x5ab1d0=a242_0x3447;_0x436e77[_0x5ab1d0('0xa8')](0xcc)[_0x5ab1d0('0x79')]();});};}function handleEntityNotFound(_0x2f0b24){return function(_0x529dcb){const _0x36c20c=a242_0x3447;return!_0x529dcb&&_0x2f0b24[_0x36c20c('0x23')](0x194),_0x529dcb;};}function handleError(_0x3116eb,_0x6dd5c7){return _0x6dd5c7=_0x6dd5c7||0x1f4,function(_0x582741){const _0x2838ef=a242_0x3447;logger[_0x2838ef('0x72')](_0x582741[_0x2838ef('0x84')]),_0x582741[_0x2838ef('0x1a')]&&delete _0x582741[_0x2838ef('0x1a')],_0x3116eb[_0x2838ef('0xa8')](_0x6dd5c7)['send'](_0x582741);};}exports[_0xdb8b68('0x12')]=function(_0x3c13c1,_0x53ba47){const _0x41bfde=_0xdb8b68;let _0x5cd4fd={};const _0x3f9967={},_0x4ce3cd={'count':0x0,'rows':[]},_0x45f445=_[_0x41bfde('0x28')](db['Dynamics365Account'][_0x41bfde('0x3e')],function(_0x53dbb4){const _0x5c3e14=_0x41bfde;return{'name':_0x53dbb4[_0x5c3e14('0x9e')],'type':_0x53dbb4[_0x5c3e14('0x67')][_0x5c3e14('0x47')]};});_0x3f9967[_0x41bfde('0x6a')]=_[_0x41bfde('0x28')](_0x45f445,_0x41bfde('0x1a')),_0x3f9967[_0x41bfde('0x51')]=_['keys'](_0x3c13c1['query']),_0x3f9967[_0x41bfde('0x10')]=_[_0x41bfde('0xb9')](_0x3f9967[_0x41bfde('0x6a')],_0x3f9967[_0x41bfde('0x51')]),_0x5cd4fd[_0x41bfde('0x5a')]=_[_0x41bfde('0xb9')](_0x3f9967[_0x41bfde('0x6a')],qs['fields'](_0x3c13c1['query'][_0x41bfde('0x73')])),_0x5cd4fd[_0x41bfde('0x5a')]=_0x5cd4fd[_0x41bfde('0x5a')][_0x41bfde('0x82')]?_0x5cd4fd[_0x41bfde('0x5a')]:_0x3f9967[_0x41bfde('0x6a')];typeof _0x3c13c1['query'][_0x41bfde('0x63')]===_0x41bfde('0x39')&&(_0x5cd4fd[_0x41bfde('0x45')]=qs[_0x41bfde('0x45')](_0x3c13c1[_0x41bfde('0x51')][_0x41bfde('0x45')]),_0x5cd4fd['offset']=qs[_0x41bfde('0x9')](_0x3c13c1[_0x41bfde('0x51')][_0x41bfde('0x9')]));_0x5cd4fd[_0x41bfde('0x1e')]=qs[_0x41bfde('0x58')](_0x3c13c1[_0x41bfde('0x51')][_0x41bfde('0x58')]),_0x5cd4fd[_0x41bfde('0xb2')]=qs[_0x41bfde('0x10')](_[_0x41bfde('0x35')](_0x3c13c1[_0x41bfde('0x51')],_0x3f9967[_0x41bfde('0x10')]),_0x45f445);_0x3c13c1[_0x41bfde('0x51')][_0x41bfde('0xa9')]&&(_0x5cd4fd[_0x41bfde('0xb2')]=_[_0x41bfde('0x37')](_0x5cd4fd[_0x41bfde('0xb2')],{[Op['or']]:_['map'](_0x45f445,function(_0x80b0f7){const _0xe58e74=_0x41bfde;if(_0x80b0f7[_0xe58e74('0x67')]!==_0xe58e74('0x27')){const _0x18fbc1={};return _0x18fbc1[_0x80b0f7['name']]={[Op[_0xe58e74('0xf')]]:'%'+_0x3c13c1['query'][_0xe58e74('0xa9')]+'%'},_0x18fbc1;}})}));_0x5cd4fd=_['merge']({},_0x5cd4fd,_0x3c13c1[_0x41bfde('0x68')]);const _0x537659={'where':_0x5cd4fd['where']};return db['Dynamics365Account'][_0x41bfde('0x21')](_0x537659)[_0x41bfde('0x4')](function(_0x539cc6){const _0x24bbbf=_0x41bfde;return _0x4ce3cd[_0x24bbbf('0x21')]=_0x539cc6,_0x3c13c1['query']['includeAll']&&(_0x5cd4fd[_0x24bbbf('0x26')]=[{'all':!![]}]),db['Dynamics365Account'][_0x24bbbf('0x50')](_0x5cd4fd);})[_0x41bfde('0x4')](function(_0x4ff993){const _0x4bb0d7=_0x41bfde;return _0x4ce3cd[_0x4bb0d7('0xc')]=_0x4ff993,_0x4ce3cd;})[_0x41bfde('0x4')](respondWithFilteredResult(_0x53ba47,_0x5cd4fd))['catch'](handleError(_0x53ba47,null));},exports[_0xdb8b68('0x3c')]=function(_0xa8f118,_0x3445a1){const _0x33608b=_0xdb8b68;let _0x224fb3={'raw':![],'where':{'id':_0xa8f118[_0x33608b('0x40')]['id']}};const _0x4814a9={};return _0x4814a9[_0x33608b('0x6a')]=_[_0x33608b('0x49')](db[_0x33608b('0x96')][_0x33608b('0x3e')]),_0x4814a9['query']=_[_0x33608b('0x49')](_0xa8f118[_0x33608b('0x51')]),_0x4814a9['filters']=_['intersection'](_0x4814a9[_0x33608b('0x6a')],_0x4814a9[_0x33608b('0x51')]),_0x224fb3[_0x33608b('0x5a')]=_['intersection'](_0x4814a9[_0x33608b('0x6a')],qs[_0x33608b('0x73')](_0xa8f118[_0x33608b('0x51')][_0x33608b('0x73')])),_0x224fb3[_0x33608b('0x5a')]=_0x224fb3[_0x33608b('0x5a')][_0x33608b('0x82')]?_0x224fb3[_0x33608b('0x5a')]:_0x4814a9[_0x33608b('0x6a')],_0xa8f118[_0x33608b('0x51')][_0x33608b('0xaf')]&&(_0x224fb3[_0x33608b('0x26')]=[{'all':!![]}]),_0x224fb3=_[_0x33608b('0x37')]({},_0x224fb3,_0xa8f118['options']),db[_0x33608b('0x96')]['findOne'](_0x224fb3)[_0x33608b('0x4')](handleEntityNotFound(_0x3445a1,null))[_0x33608b('0x4')](respondWithResult(_0x3445a1,null))['catch'](handleError(_0x3445a1,null));},exports[_0xdb8b68('0x62')]=function(_0x5c4bc9,_0x335f6e){const _0x2ce623=_0xdb8b68;return db['Dynamics365Account'][_0x2ce623('0x62')](_0x5c4bc9[_0x2ce623('0x77')],{})[_0x2ce623('0x4')](respondWithResult(_0x335f6e,0xc9))[_0x2ce623('0x19')](handleError(_0x335f6e,null));},exports['update']=function(_0x992f99,_0x1579fd){const _0x4fe3a9=_0xdb8b68;return _0x992f99[_0x4fe3a9('0x77')]['id']&&delete _0x992f99['body']['id'],db[_0x4fe3a9('0x96')][_0x4fe3a9('0x6c')]({'where':{'id':_0x992f99[_0x4fe3a9('0x40')]['id']}})[_0x4fe3a9('0x4')](handleEntityNotFound(_0x1579fd,null))['then'](saveUpdates(_0x992f99['body'],null))['then'](respondWithResult(_0x1579fd,null))[_0x4fe3a9('0x19')](handleError(_0x1579fd,null));},exports[_0xdb8b68('0x31')]=function(_0x5b9df8,_0x77939f){const _0x313159=_0xdb8b68;return db['Dynamics365Account'][_0x313159('0x6c')]({'where':{'id':_0x5b9df8[_0x313159('0x40')]['id']}})[_0x313159('0x4')](handleEntityNotFound(_0x77939f,null))[_0x313159('0x4')](removeEntity(_0x77939f,null))[_0x313159('0x19')](handleError(_0x77939f,null));},exports[_0xdb8b68('0x90')]=function(_0x45e643,_0x4cc87e){const _0x2014e9=_0xdb8b68;let _0x44dd7a={};const _0x4ae365={};let _0x28e295,_0x57ee2f;return db[_0x2014e9('0x96')][_0x2014e9('0x6c')]({'where':{'id':_0x45e643[_0x2014e9('0x40')]['id']}})[_0x2014e9('0x4')](handleEntityNotFound(_0x4cc87e,null))['then'](function(_0x1c6f98){const _0x43d2e8=_0x2014e9;if(_0x1c6f98)return _0x28e295=_0x1c6f98,_0x4ae365['model']=_[_0x43d2e8('0x49')](db[_0x43d2e8('0x53')][_0x43d2e8('0x3e')]),_0x4ae365[_0x43d2e8('0x51')]=_[_0x43d2e8('0x49')](_0x45e643['query']),_0x4ae365['filters']=_[_0x43d2e8('0xb9')](_0x4ae365[_0x43d2e8('0x6a')],_0x4ae365[_0x43d2e8('0x51')]),_0x44dd7a[_0x43d2e8('0x5a')]=_[_0x43d2e8('0xb9')](_0x4ae365[_0x43d2e8('0x6a')],qs['fields'](_0x45e643[_0x43d2e8('0x51')][_0x43d2e8('0x73')])),_0x44dd7a['attributes']=_0x44dd7a[_0x43d2e8('0x5a')]['length']?_0x44dd7a[_0x43d2e8('0x5a')]:_0x4ae365['model'],_0x44dd7a['order']=qs[_0x43d2e8('0x58')](_0x45e643['query']['sort']),_0x44dd7a[_0x43d2e8('0xb2')]=qs[_0x43d2e8('0x10')](_['pick'](_0x45e643[_0x43d2e8('0x51')],_0x4ae365[_0x43d2e8('0x10')])),_0x45e643[_0x43d2e8('0x51')][_0x43d2e8('0xa9')]&&(_0x44dd7a[_0x43d2e8('0xb2')]=_['merge'](_0x44dd7a[_0x43d2e8('0xb2')],{[Op['or']]:_[_0x43d2e8('0x28')](_0x44dd7a['attributes'],function(_0xf3534a){const _0xbe0530=_0x43d2e8,_0x3c01c4={};return _0x3c01c4[_0xf3534a]={[Op['like']]:'%'+_0x45e643[_0xbe0530('0x51')][_0xbe0530('0xa9')]+'%'},_0x3c01c4;})})),_0x44dd7a=_[_0x43d2e8('0x37')]({},_0x44dd7a,_0x45e643[_0x43d2e8('0x68')]),_0x28e295[_0x43d2e8('0x90')](_0x44dd7a);})['then'](function(_0x351ac8){const _0x4ad2de=_0x2014e9;if(_0x351ac8)return _0x57ee2f=_0x351ac8['length'],typeof _0x45e643['query']['nolimit']===_0x4ad2de('0x39')&&(_0x44dd7a[_0x4ad2de('0x45')]=qs[_0x4ad2de('0x45')](_0x45e643['query'][_0x4ad2de('0x45')]),_0x44dd7a[_0x4ad2de('0x9')]=qs[_0x4ad2de('0x9')](_0x45e643[_0x4ad2de('0x51')][_0x4ad2de('0x9')])),_0x28e295[_0x4ad2de('0x90')](_0x44dd7a);})[_0x2014e9('0x4')](function(_0x33243e){if(_0x33243e)return _0x33243e?{'count':_0x57ee2f,'rows':_0x33243e}:null;})[_0x2014e9('0x4')](respondWithResult(_0x4cc87e,null))[_0x2014e9('0x19')](handleError(_0x4cc87e,null));},exports['addConfiguration']=function(_0x38d589,_0x4660ac){const _0x2de49=_0xdb8b68;return _0x38d589['body']['id']&&delete _0x38d589[_0x2de49('0x77')]['id'],db[_0x2de49('0x96')][_0x2de49('0x6c')]({'where':{'id':_0x38d589[_0x2de49('0x40')]['id']}})[_0x2de49('0x4')](handleEntityNotFound(_0x4660ac,null))['then'](function(_0x15a3d8){const _0x17fd2f=_0x2de49;if(_0x15a3d8)return _0x38d589[_0x17fd2f('0x77')][_0x17fd2f('0x6b')]=_0x15a3d8['id'],_0x38d589[_0x17fd2f('0x77')][_0x17fd2f('0x3a')]=integrations[_0x17fd2f('0x6')](_0x38d589[_0x17fd2f('0x77')][_0x17fd2f('0x3')],_0x38d589[_0x17fd2f('0x77')]['type']),_0x38d589[_0x17fd2f('0x77')][_0x17fd2f('0x5f')]=integrations[_0x17fd2f('0xa5')](_0x38d589[_0x17fd2f('0x77')][_0x17fd2f('0x3')],_0x38d589['body']['type']),db[_0x17fd2f('0x53')][_0x17fd2f('0x62')](_0x38d589[_0x17fd2f('0x77')],{'include':[{'model':db['Dynamics365Field'],'as':_0x17fd2f('0x3a')},{'model':db[_0x17fd2f('0xa0')],'as':_0x17fd2f('0x5f')}]});return null;})['then'](respondWithResult(_0x4660ac,null))[_0x2de49('0x19')](handleError(_0x4660ac,null));},exports[_0xdb8b68('0x5c')]=function(_0x2815a6,_0x4057b4){const _0x5b03dc=_0xdb8b68,_0x5b3d23=_0x2815a6[_0x5b03dc('0x51')][_0x5b03dc('0x52')],_0xaa5b42=_0x5b3d23===_0x5b03dc('0x18')?_0x5b03dc('0x7b'):_0x5b03dc('0x8a');let _0x4f0af7='',_0x3b206d='',_0x401616='',_0x57ffca='',_0x5f251d='',_0x45411e='',_0x537407='',_0x5dbff0='';const _0x5c0b88=[_0x5b03dc('0x78'),_0x5b03dc('0xa1'),_0x5b03dc('0x1c'),'ownerid',_0x5b03dc('0x33'),_0x5b03dc('0x5b'),_0x5b03dc('0x75'),_0x5b03dc('0x16'),_0x5b03dc('0x34'),_0x5b03dc('0x8e')],_0x4cb9c6=['accountidname',_0x5b03dc('0x64'),'actualserviceunits',_0x5b03dc('0x3d'),'contactidname',_0x5b03dc('0x8'),_0x5b03dc('0xa2'),_0x5b03dc('0x3f'),_0x5b03dc('0x57'),_0x5b03dc('0x4e'),'createdbyname',_0x5b03dc('0x6e'),_0x5b03dc('0xe'),'createdonbehalfbyname','createdonbehalfbyyominame',_0x5b03dc('0x7'),_0x5b03dc('0x2a'),_0x5b03dc('0xb5'),_0x5b03dc('0x9a'),'entitlementidname',_0x5b03dc('0x4a'),_0x5b03dc('0xb3'),_0x5b03dc('0x80'),'exchangerate','firstresponsebykpiidname',_0x5b03dc('0x59'),'importsequencenumber',_0x5b03dc('0x86'),'kbarticleidname','lastonholdtime',_0x5b03dc('0xb0'),_0x5b03dc('0x1f'),_0x5b03dc('0x1'),_0x5b03dc('0xad'),_0x5b03dc('0x38'),_0x5b03dc('0x20'),_0x5b03dc('0x42'),_0x5b03dc('0xac'),_0x5b03dc('0x87'),_0x5b03dc('0x5d'),_0x5b03dc('0xa'),_0x5b03dc('0xa7'),_0x5b03dc('0x4f'),_0x5b03dc('0x55'),_0x5b03dc('0x30'),'owneridyominame','parentcaseidname',_0x5b03dc('0xd'),_0x5b03dc('0x83'),_0x5b03dc('0xb'),_0x5b03dc('0x93'),_0x5b03dc('0x6f'),'resolveby',_0x5b03dc('0x46'),'responseby',_0x5b03dc('0x13'),_0x5b03dc('0x60'),_0x5b03dc('0x4c'),_0x5b03dc('0x66'),_0x5b03dc('0x94'),_0x5b03dc('0x5'),'statecode',_0x5b03dc('0x7d'),_0x5b03dc('0x2f'),'ticketnumber','timezoneruleversionnumber',_0x5b03dc('0x65'),_0x5b03dc('0xb6'),_0x5b03dc('0x97'),_0x5b03dc('0x2c')],_0xefd8f1=_0x5c0b88[_0x5b03dc('0xa4')](_0x4cb9c6);return db['Dynamics365Account'][_0x5b03dc('0x6c')]({'where':{'id':_0x2815a6[_0x5b03dc('0x40')]['id']},'attributes':['id',_0x5b03dc('0x9f'),_0x5b03dc('0xb4'),_0x5b03dc('0x98'),_0x5b03dc('0x11'),'clientId',_0x5b03dc('0x48')]})['then'](handleEntityNotFound(_0x4057b4,null))['then'](function(_0x39674c){const _0xcbbdd5=_0x5b03dc;if(_0x39674c){_0x5dbff0=_0x39674c[_0xcbbdd5('0x98')];const _0x5ddeb5=_0x5dbff0[_0xcbbdd5('0x9b')](-0x1);_0x5ddeb5==='/'&&(_0x5dbff0=_0x5dbff0[_0xcbbdd5('0x0')](0x0,_0x5dbff0[_0xcbbdd5('0xab')](_0x5ddeb5)));_0x537407=util[_0xcbbdd5('0xb1')](_0xcbbdd5('0x88'),_0x5dbff0);const _0x3fe644={'method':'POST','uri':_0xcbbdd5('0x2')+_0x39674c[_0xcbbdd5('0x11')]+_0xcbbdd5('0x69'),'form':{'client_id':_0x39674c[_0xcbbdd5('0x15')],'resource':_0x5dbff0,'username':_0x39674c[_0xcbbdd5('0x9f')],'password':_0x39674c[_0xcbbdd5('0xb4')],'grant_type':_0xcbbdd5('0xb4'),'client_secret':_0x39674c['clientSecret']},'json':!![]};return rp(_0x3fe644);}})['then'](function(_0x1bd3bf){const _0x231075=_0x5b03dc;_0x45411e=_0x1bd3bf[_0x231075('0x8c')];const _0x4ca2c9={'method':_0x231075('0x56'),'uri':encodeURI(_0x537407+_0x231075('0x99')+_0xaa5b42+'\x27'),'headers':{'Authorization':_0x231075('0x7e')+_0x45411e,'If-None-Match':null,'OData-Version':_0x231075('0x71')},'json':!![]};return rp(_0x4ca2c9);})[_0x5b03dc('0x4')](function(_0x3df41d){const _0x3e60b7=_0x5b03dc,_0x28313d=_0x3df41d[_0x3e60b7('0x7c')][0x0],_0x264aef=_0x28313d[_0x3e60b7('0x9d')],_0x291a1b={'method':'GET','uri':_0x537407+_0x3e60b7('0x8b')+_0x264aef+_0x3e60b7('0xa3'),'headers':{'Authorization':'Bearer\x20'+_0x45411e,'If-None-Match':null,'OData-Version':_0x3e60b7('0x71')},'json':!![]};return rp(_0x291a1b);})[_0x5b03dc('0x4')](function(_0x584748){const _0x4b7dde=_0x5b03dc;_0x4f0af7=_0x584748,_0x3b206d=_0x4f0af7[_0x4b7dde('0x29')],_0x3b206d=_[_0x4b7dde('0x2e')](_0x3b206d,function(_0x211d52){const _0x39b849=_0x4b7dde;return!_0xefd8f1['includes'](_0x211d52[_0x39b849('0x2d')]);});const _0x4931be=[],_0x29fa65=[];return _0x3b206d['forEach'](function(_0x21ec8d){const _0x522796=_0x4b7dde;if(_0x21ec8d[_0x522796('0x36')]){const _0x3df534=_0x21ec8d[_0x522796('0x36')][_0x522796('0x0')](_0x21ec8d[_0x522796('0x36')]['lastIndexOf']('.')+0x1);_0x3df534===_0x522796('0x2b')&&_0x4931be[_0x522796('0x7f')](getSelectList(_0x537407,_0x5b3d23,_0x29fa65,_0x4f0af7[_0x522796('0x9d')],_0x21ec8d['MetadataId'],_0x45411e));}}),Promise['all'](_0x4931be);})[_0x5b03dc('0x4')](function(_0x493738){const _0x414963=_0x5b03dc;_0x401616=_0x493738[0x0];const _0xa65af=[],_0x3ebcb6=[];return _0x3b206d[_0x414963('0x3b')](function(_0x349f01){const _0x123bf8=_0x414963;if(!_[_0x123bf8('0xb8')](_0x349f01[_0x123bf8('0x36')])){const _0x777448=_0x349f01['@odata.type'][_0x123bf8('0x0')](_0x349f01['@odata.type'][_0x123bf8('0xab')]('.')+0x1);_0x777448===_0x123bf8('0xae')&&_0xa65af[_0x123bf8('0x7f')](getBooleanList(_0x537407,_0x5b3d23,_0x3ebcb6,_0x4f0af7[_0x123bf8('0x9d')],_0x349f01[_0x123bf8('0x9d')],_0x45411e));}}),Promise[_0x414963('0x74')](_0xa65af);})['then'](function(_0x560702){const _0x236941=_0x5b03dc;_0x57ffca=_0x560702[0x0];const _0x24f95b=[],_0xa32958=[];return _0x3b206d[_0x236941('0x3b')](function(_0x2965d7){const _0x4db51c=_0x236941;if(_0x2965d7[_0x4db51c('0x36')]){const _0x1122ad=_0x2965d7['@odata.type'][_0x4db51c('0x0')](_0x2965d7[_0x4db51c('0x36')][_0x4db51c('0xab')]('.')+0x1);(_0x1122ad===_0x4db51c('0x17')||_0x1122ad==='DoubleAttributeMetadata'||_0x1122ad===_0x4db51c('0x9c')||_0x1122ad==='IntegerAttributeMetadata'||_0x1122ad==='MemoAttributeMetadata'||_0x1122ad===_0x4db51c('0x32')||_0x1122ad==='StatusAttributeMetadata'||_0x1122ad===_0x4db51c('0x44')||_0x1122ad===_0x4db51c('0x1b')||_0x1122ad===_0x4db51c('0x41'))&&_0x24f95b[_0x4db51c('0x7f')](getInputList(_0x537407,_0x5b3d23,_0x1122ad,_0xa32958,_0x4f0af7['MetadataId'],_0x2965d7[_0x4db51c('0x9d')],_0x45411e));}}),Promise[_0x236941('0x74')](_0x24f95b);})[_0x5b03dc('0x4')](function(_0x378dbe){const _0x3045f6=_0x5b03dc;_0x5f251d=_0x378dbe[0x0];const _0x11e3d5=_0x401616['concat'](_0x57ffca)['concat'](_0x5f251d),_0x2d37d6={'count':_0x11e3d5[_0x3045f6('0x82')],'rows':_0x11e3d5};return _0x2d37d6;})[_0x5b03dc('0x4')](respondWithResult(_0x4057b4,null))[_0x5b03dc('0x19')](function(_0x46084f){const _0x4a0ce4=_0x5b03dc;let _0x1db32d=_0x2815a6[_0x4a0ce4('0x51')]['test']?0x1f4:_0x46084f['statusCode']||0x1f4;logger[_0x4a0ce4('0x72')](_0x46084f['stack']),delete _0x46084f[_0x4a0ce4('0x1a')],_0x1db32d===0x191&&(_0x1db32d=0x190),_0x4057b4[_0x4a0ce4('0xa8')](_0x1db32d)[_0x4a0ce4('0x4b')](_0x2815a6[_0x4a0ce4('0x51')][_0x4a0ce4('0x24')]?{'message':_0x4a0ce4('0xaa'),'statusCode':_0x46084f['statusCode']}:_0x46084f);});};function getSelectList(_0x357648,_0x8187c,_0x114645,_0x122f8a,_0x945cd3,_0x5db22d){const _0x174cbc=_0xdb8b68,_0x4a3047={'method':'GET','uri':_0x357648+_0x174cbc('0x8b')+_0x122f8a+_0x174cbc('0x5e')+_0x945cd3+_0x174cbc('0x8d')+_0x174cbc('0x89'),'headers':{'Authorization':_0x174cbc('0x7e')+_0x5db22d,'If-None-Match':null,'OData-Version':_0x174cbc('0x71')},'json':!![]};return rp(_0x4a3047)[_0x174cbc('0x4')](function(_0x50aa4f){const _0x50be39=_0x174cbc,_0x389b0d=[],_0x3dbea2=_0x50aa4f[_0x50be39('0xa6')]['Options'];_0x3dbea2['forEach'](function(_0x16ff29){const _0x17d1d5=_0x50be39;_0x389b0d[_0x17d1d5('0x7f')]({'name':_0x16ff29[_0x17d1d5('0x92')][_0x17d1d5('0x43')]['Label'],'value':String(_0x16ff29[_0x17d1d5('0x95')])});});const _0x4edf7b={'id':_0x8187c+'_'+_0x50aa4f[_0x50be39('0x2d')],'name':_0x50aa4f[_0x50be39('0x14')][_0x50be39('0x43')][_0x50be39('0x92')],'custom':![],'options':_0x389b0d};return _0x114645[_0x50be39('0x7f')](_0x4edf7b),_0x114645;});}function getBooleanList(_0x58f00a,_0x273064,_0x4246e5,_0x58bc97,_0x482a57,_0x36b5ce){const _0x5e9481=_0xdb8b68,_0x3e73ba={'method':'GET','uri':_0x58f00a+'EntityDefinitions('+_0x58bc97+_0x5e9481('0x5e')+_0x482a57+')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','headers':{'Authorization':'Bearer\x20'+_0x36b5ce,'If-None-Match':null,'OData-Version':_0x5e9481('0x71')},'json':!![]};return rp(_0x3e73ba)['then'](function(_0x404d92){const _0x6939bd=_0x5e9481,_0x3d94ee=[];_0x3d94ee[_0x6939bd('0x7f')]({'name':_0x404d92[_0x6939bd('0xa6')][_0x6939bd('0x91')][_0x6939bd('0x92')][_0x6939bd('0x43')]['Label'],'value':_0x6939bd('0x6d')},{'name':_0x404d92[_0x6939bd('0xa6')][_0x6939bd('0x22')][_0x6939bd('0x92')][_0x6939bd('0x43')]['Label'],'value':_0x6939bd('0x8f')});const _0x3d3760={'id':_0x273064+'_'+_0x404d92['LogicalName'],'name':_0x404d92[_0x6939bd('0x14')]['UserLocalizedLabel']['Label'],'custom':![],'options':_0x3d94ee};return _0x4246e5['push'](_0x3d3760),_0x4246e5;});}function getInputList(_0x3589a5,_0x19b4fb,_0x2c4538,_0x552160,_0x4e051c,_0x8b0c15,_0x3086ff){const _0x228648=_0xdb8b68,_0x8b9bd1={'method':'GET','uri':_0x3589a5+_0x228648('0x8b')+_0x4e051c+_0x228648('0x5e')+_0x8b0c15+_0x228648('0x7a')+_0x2c4538+'?$select=DisplayName,LogicalName','headers':{'Authorization':_0x228648('0x7e')+_0x3086ff,'If-None-Match':null,'OData-Version':_0x228648('0x71')},'json':!![]};return rp(_0x8b9bd1)[_0x228648('0x4')](function(_0x6bebb2){const _0x5db3c2=_0x228648,_0xcfc464={'id':_0x19b4fb+'_'+_0x6bebb2[_0x5db3c2('0x2d')],'name':_0x6bebb2[_0x5db3c2('0x14')][_0x5db3c2('0x43')]?_0x6bebb2[_0x5db3c2('0x14')][_0x5db3c2('0x43')][_0x5db3c2('0x92')]:_0x6bebb2[_0x5db3c2('0x2d')],'custom':![],'options':[]};return _0x552160['push'](_0xcfc464),_0x552160;});} \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index b4c62b9..9b7f369 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a243_0x54a3=['define','./intDynamics365Account.attributes','int_dynamics365_accounts','Dynamics365Account'];(function(_0x5c9780,_0x54a34b){const _0x34163b=function(_0x252f41){while(--_0x252f41){_0x5c9780['push'](_0x5c9780['shift']());}};_0x34163b(++_0x54a34b);}(a243_0x54a3,0xb9));const a243_0x3416=function(_0x5c9780,_0x54a34b){_0x5c9780=_0x5c9780-0x0;let _0x34163b=a243_0x54a3[_0x5c9780];return _0x34163b;};const _0x4ccaf4=a243_0x3416;'use strict';const attributes=require(_0x4ccaf4('0x0'));module['exports']=function(_0x252f41){const _0x36eca2=_0x4ccaf4,_0x3d4337=_0x252f41[_0x36eca2('0x3')](_0x36eca2('0x2'),attributes,{'tableName':_0x36eca2('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3d4337;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index 9571ac7..2aa669e 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a244_0x29b7=['Dynamics365Account','GetDynamics365Account','error','../../mysqldb','model','debug','include','lodash','map','ShowDynamics365Account','message','stringify','limit','attributes','then','../../config/logger','raw','catch','rpc','findAll','options','findOne','where'];(function(_0x43a008,_0x29b739){const _0x1e2332=function(_0x38c236){while(--_0x38c236){_0x43a008['push'](_0x43a008['shift']());}};_0x1e2332(++_0x29b739);}(a244_0x29b7,0x13a));const a244_0x1e23=function(_0x43a008,_0x29b739){_0x43a008=_0x43a008-0x0;let _0x1e2332=a244_0x29b7[_0x43a008];return _0x1e2332;};const _0x16042b=a244_0x1e23;'use strict';const _=require(_0x16042b('0xf')),db=require(_0x16042b('0xb'))['db'],logger=require(_0x16042b('0x0'))(_0x16042b('0x3'));exports[_0x16042b('0x9')]=function(_0x38c236){const _0x8c62cf=this;return new Promise(function(_0x5a55aa,_0x5bd722){const _0x4ab1bd=a244_0x1e23;return db[_0x4ab1bd('0x8')][_0x4ab1bd('0x4')]({'raw':_0x38c236[_0x4ab1bd('0x5')]?_0x38c236[_0x4ab1bd('0x5')][_0x4ab1bd('0x1')]===undefined?!![]:![]:!![],'where':_0x38c236[_0x4ab1bd('0x5')]?_0x38c236[_0x4ab1bd('0x5')][_0x4ab1bd('0x7')]||null:null,'attributes':_0x38c236[_0x4ab1bd('0x5')]?_0x38c236[_0x4ab1bd('0x5')][_0x4ab1bd('0x15')]||null:null,'limit':_0x38c236[_0x4ab1bd('0x5')]?_0x38c236[_0x4ab1bd('0x5')][_0x4ab1bd('0x14')]||null:null,'include':_0x38c236[_0x4ab1bd('0x5')]?_0x38c236[_0x4ab1bd('0x5')][_0x4ab1bd('0xe')]?_['map'](_0x38c236['options'][_0x4ab1bd('0xe')],function(_0x3fe556){const _0x11fc45=_0x4ab1bd;return{'model':db[_0x3fe556[_0x11fc45('0xc')]],'as':_0x3fe556['as'],'attributes':_0x3fe556[_0x11fc45('0x15')],'include':_0x3fe556['include']?_[_0x11fc45('0x10')](_0x3fe556[_0x11fc45('0xe')],function(_0x3f089e){const _0x133cdb=_0x11fc45;return{'model':db[_0x3f089e[_0x133cdb('0xc')]],'as':_0x3f089e['as'],'attributes':_0x3f089e['attributes'],'include':_0x3f089e[_0x133cdb('0xe')]?_[_0x133cdb('0x10')](_0x3f089e[_0x133cdb('0xe')],function(_0x37e2d2){const _0x1de927=_0x133cdb;return{'model':db[_0x37e2d2[_0x1de927('0xc')]],'as':_0x37e2d2['as'],'attributes':_0x37e2d2[_0x1de927('0x15')]};}):[]};}):[]};}):[]:[]})[_0x4ab1bd('0x16')](function(_0x149f3a){const _0x334290=_0x4ab1bd;logger['info'](_0x334290('0x9'),_0x38c236),logger[_0x334290('0xd')](_0x334290('0x9'),_0x38c236,JSON[_0x334290('0x13')](_0x149f3a)),_0x5a55aa(_0x149f3a);})[_0x4ab1bd('0x2')](function(_0x40147e){const _0x4b6981=_0x4ab1bd;logger[_0x4b6981('0xa')]('GetDynamics365Account',_0x40147e[_0x4b6981('0x12')],_0x38c236),_0x5bd722(_0x8c62cf[_0x4b6981('0xa')](0x1f4,_0x40147e[_0x4b6981('0x12')]));});});},exports[_0x16042b('0x11')]=function(_0xe59360){const _0x33ff45=this;return new Promise(function(_0x55f066,_0x84a044){const _0x110179=a244_0x1e23;return db[_0x110179('0x8')][_0x110179('0x6')]({'raw':_0xe59360[_0x110179('0x5')]?_0xe59360[_0x110179('0x5')][_0x110179('0x1')]===undefined?!![]:![]:!![],'where':_0xe59360[_0x110179('0x5')]?_0xe59360[_0x110179('0x5')][_0x110179('0x7')]||null:null,'attributes':_0xe59360[_0x110179('0x5')]?_0xe59360[_0x110179('0x5')]['attributes']||null:null,'include':_0xe59360[_0x110179('0x5')]?_0xe59360[_0x110179('0x5')][_0x110179('0xe')]?_[_0x110179('0x10')](_0xe59360['options'][_0x110179('0xe')],function(_0x23d046){const _0x11882e=_0x110179;return{'model':db[_0x23d046[_0x11882e('0xc')]],'as':_0x23d046['as'],'attributes':_0x23d046[_0x11882e('0x15')],'include':_0x23d046[_0x11882e('0xe')]?_[_0x11882e('0x10')](_0x23d046[_0x11882e('0xe')],function(_0x14fe0d){const _0xbfbb7d=_0x11882e;return{'model':db[_0x14fe0d[_0xbfbb7d('0xc')]],'as':_0x14fe0d['as'],'attributes':_0x14fe0d[_0xbfbb7d('0x15')],'include':_0x14fe0d['include']?_[_0xbfbb7d('0x10')](_0x14fe0d[_0xbfbb7d('0xe')],function(_0x2e096a){const _0x4a7250=_0xbfbb7d;return{'model':db[_0x2e096a[_0x4a7250('0xc')]],'as':_0x2e096a['as'],'attributes':_0x2e096a[_0x4a7250('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x513a63){const _0x265d82=_0x110179;logger['info'](_0x265d82('0x11'),_0xe59360),logger[_0x265d82('0xd')]('ShowDynamics365Account',_0xe59360,JSON[_0x265d82('0x13')](_0x513a63)),_0x55f066(_0x513a63);})['catch'](function(_0x39ecc7){const _0x3e357d=_0x110179;logger[_0x3e357d('0xa')]('ShowDynamics365Account',_0x39ecc7[_0x3e357d('0x12')],_0xe59360),_0x84a044(_0x33ff45[_0x3e357d('0xa')](0x1f4,_0x39ecc7[_0x3e357d('0x12')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index 87887c1..a1b4f6b 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a245_0x3b96=['/:id','Router','put','post','express','/:id/fields','delete','isAuthenticated','index','show','getSubjects','update','getDescriptions','get','../../components/auth/service'];(function(_0x27566b,_0x3b9605){const _0x1a4f9c=function(_0x3c202f){while(--_0x3c202f){_0x27566b['push'](_0x27566b['shift']());}};_0x1a4f9c(++_0x3b9605);}(a245_0x3b96,0x8f));const a245_0x1a4f=function(_0x27566b,_0x3b9605){_0x27566b=_0x27566b-0x0;let _0x1a4f9c=a245_0x3b96[_0x27566b];return _0x1a4f9c;};const _0x1045fb=a245_0x1a4f;'use strict';const express=require(_0x1045fb('0xb')),router=express[_0x1045fb('0x8')](),auth=require(_0x1045fb('0x6')),controller=require('./intDynamics365Configuration.controller');router[_0x1045fb('0x5')]('/',auth[_0x1045fb('0xe')](),controller[_0x1045fb('0x0')]),router[_0x1045fb('0x5')](_0x1045fb('0x7'),auth[_0x1045fb('0xe')](),controller[_0x1045fb('0x1')]),router['get'](_0x1045fb('0xc'),auth[_0x1045fb('0xe')](),controller['getFields']),router[_0x1045fb('0x5')]('/:id/subjects',auth[_0x1045fb('0xe')](),controller[_0x1045fb('0x2')]),router[_0x1045fb('0x5')]('/:id/descriptions',auth['isAuthenticated'](),controller[_0x1045fb('0x4')]),router[_0x1045fb('0xa')]('/',auth[_0x1045fb('0xe')](),controller['create']),router[_0x1045fb('0x9')]('/:id',auth[_0x1045fb('0xe')](),controller[_0x1045fb('0x3')]),router[_0x1045fb('0xd')](_0x1045fb('0x7'),auth[_0x1045fb('0xe')](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js index 88ef38e..2efdc19 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a246_0x772d=['ENUM','incident','phonecall','STRING'];(function(_0x28a2ad,_0x772d75){const _0x38d055=function(_0x49791e){while(--_0x49791e){_0x28a2ad['push'](_0x28a2ad['shift']());}};_0x38d055(++_0x772d75);}(a246_0x772d,0xa7));const a246_0x38d0=function(_0x28a2ad,_0x772d75){_0x28a2ad=_0x28a2ad-0x0;let _0x38d055=a246_0x772d[_0x28a2ad];return _0x38d055;};const _0x5d2bb3=a246_0x38d0;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x5d2bb3('0x0')]},'description':{'type':Sequelize[_0x5d2bb3('0x0')]},'ticketType':{'type':Sequelize[_0x5d2bb3('0x1')](_0x5d2bb3('0x2'),_0x5d2bb3('0x3')),'defaultValue':_0x5d2bb3('0x2')}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index 3d47d9d..b00144d 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a247_0x848b=['sort','attributes','../../mysqldb','send','nolimit','create','query','fieldName','rows','update','findOne','limit','then','like','../../components/parsers/qs','count','../../config/logger','intersection','type','body','sendStatus','params','index','show','set','status','model','getSubjects','Dynamics365Configuration','pick','keys','undefined','filter','name','order','Dynamics365Field','merge','getFields','filters','getDescriptions','options','length','destroy','offset','sequelize','include','end','rawAttributes','fields','catch','map','Content-Range','key','json','where','api'];(function(_0x5e7873,_0x848b71){const _0x253e03=function(_0x4a4b26){while(--_0x4a4b26){_0x5e7873['push'](_0x5e7873['shift']());}};_0x253e03(++_0x848b71);}(a247_0x848b,0x1a0));const a247_0x253e=function(_0x5e7873,_0x848b71){_0x5e7873=_0x5e7873-0x0;let _0x253e03=a247_0x848b[_0x5e7873];return _0x253e03;};const _0x241304=a247_0x253e;'use strict';const _=require('lodash'),qs=require(_0x241304('0x2e')),logger=require(_0x241304('0x30'))(_0x241304('0x1f')),db=require(_0x241304('0x22'))['db'],{Op}=require(_0x241304('0x14'));function respondWithResult(_0x4a4b26,_0x505942){return _0x505942=_0x505942||0xc8,function(_0x406412){const _0x530d0c=a247_0x253e;if(_0x406412)return _0x4a4b26[_0x530d0c('0x1')](_0x505942)[_0x530d0c('0x1d')](_0x406412);};}function respondWithFilteredResult(_0x37bce1,_0x3d0177){return function(_0x40b19f){const _0x443fec=a247_0x253e;if(_0x40b19f){const _0x10aeeb=_0x40b19f[_0x443fec('0x2f')],_0x520e56=_0x3d0177[_0x443fec('0x13')];let _0x150ab6=_0x3d0177['offset']+_0x3d0177[_0x443fec('0x2b')],_0x5a8230;return _0x150ab6>=_0x10aeeb?(_0x150ab6=_0x10aeeb,_0x5a8230=0xc8):_0x5a8230=0xce,_0x37bce1['status'](_0x5a8230),_0x37bce1[_0x443fec('0x0')](_0x443fec('0x1b'),_0x520e56+'-'+_0x150ab6+'/'+_0x10aeeb)['json'](_0x40b19f);}return null;};}function saveUpdates(_0x1a739e){return function(_0x2ea32d){const _0x3fc7b1=a247_0x253e;if(_0x2ea32d)return _0x2ea32d[_0x3fc7b1('0x29')](_0x1a739e)[_0x3fc7b1('0x2c')](function(_0x5641dd){return _0x5641dd;});return null;};}function removeEntity(_0x10b807){return function(_0x1c1366){const _0x3e046c=a247_0x253e;if(_0x1c1366)return _0x1c1366[_0x3e046c('0x12')]()['then'](function(){const _0x33f570=_0x3e046c;_0x10b807[_0x33f570('0x1')](0xcc)[_0x33f570('0x16')]();});};}function handleEntityNotFound(_0x5ba8cf){return function(_0x86673f){const _0x253f49=a247_0x253e;return!_0x86673f&&_0x5ba8cf[_0x253f49('0x34')](0x194),_0x86673f;};}function handleError(_0x558008,_0x10ff91){return _0x10ff91=_0x10ff91||0x1f4,function(_0x5bb2b8){const _0xe1e44c=a247_0x253e;logger['error'](_0x5bb2b8['stack']),_0x5bb2b8['name']&&delete _0x5bb2b8['name'],_0x558008['status'](_0x10ff91)[_0xe1e44c('0x23')](_0x5bb2b8);};}exports[_0x241304('0x36')]=function(_0x10dbeb,_0x4b4d7e){const _0x203330=_0x241304;let _0xe61954={};const _0x3eb720={},_0x6e8677={'count':0x0,'rows':[]},_0x3cdb76=_[_0x203330('0x1a')](db[_0x203330('0x4')]['rawAttributes'],function(_0x2962de){const _0x3a6619=_0x203330;return{'name':_0x2962de[_0x3a6619('0x27')],'type':_0x2962de[_0x3a6619('0x32')][_0x3a6619('0x1c')]};});_0x3eb720[_0x203330('0x2')]=_[_0x203330('0x1a')](_0x3cdb76,_0x203330('0x9')),_0x3eb720[_0x203330('0x26')]=_[_0x203330('0x6')](_0x10dbeb[_0x203330('0x26')]),_0x3eb720[_0x203330('0xe')]=_[_0x203330('0x31')](_0x3eb720[_0x203330('0x2')],_0x3eb720[_0x203330('0x26')]),_0xe61954[_0x203330('0x21')]=_[_0x203330('0x31')](_0x3eb720[_0x203330('0x2')],qs[_0x203330('0x18')](_0x10dbeb['query'][_0x203330('0x18')])),_0xe61954[_0x203330('0x21')]=_0xe61954[_0x203330('0x21')]['length']?_0xe61954[_0x203330('0x21')]:_0x3eb720[_0x203330('0x2')];typeof _0x10dbeb[_0x203330('0x26')][_0x203330('0x24')]===_0x203330('0x7')&&(_0xe61954['limit']=qs[_0x203330('0x2b')](_0x10dbeb[_0x203330('0x26')]['limit']),_0xe61954[_0x203330('0x13')]=qs['offset'](_0x10dbeb[_0x203330('0x26')][_0x203330('0x13')]));_0xe61954[_0x203330('0xa')]=qs[_0x203330('0x20')](_0x10dbeb[_0x203330('0x26')][_0x203330('0x20')]),_0xe61954[_0x203330('0x1e')]=qs[_0x203330('0xe')](_[_0x203330('0x5')](_0x10dbeb[_0x203330('0x26')],_0x3eb720['filters']),_0x3cdb76);_0x10dbeb[_0x203330('0x26')]['filter']&&(_0xe61954['where']=_[_0x203330('0xc')](_0xe61954[_0x203330('0x1e')],{[Op['or']]:_[_0x203330('0x1a')](_0x3cdb76,function(_0xc697a5){const _0x57d666=_0x203330;if(_0xc697a5['type']!=='VIRTUAL'){const _0x1eb492={};return _0x1eb492[_0xc697a5[_0x57d666('0x9')]]={[Op[_0x57d666('0x2d')]]:'%'+_0x10dbeb[_0x57d666('0x26')][_0x57d666('0x8')]+'%'},_0x1eb492;}})}));_0xe61954=_[_0x203330('0xc')]({},_0xe61954,_0x10dbeb['options']);const _0x170413={'where':_0xe61954[_0x203330('0x1e')]};return db[_0x203330('0x4')][_0x203330('0x2f')](_0x170413)[_0x203330('0x2c')](function(_0x4b2a7a){const _0x10665a=_0x203330;return _0x6e8677['count']=_0x4b2a7a,_0x10dbeb[_0x10665a('0x26')]['includeAll']&&(_0xe61954[_0x10665a('0x15')]=[{'all':!![]}]),db[_0x10665a('0x4')]['findAll'](_0xe61954);})[_0x203330('0x2c')](function(_0x4084d4){const _0x35a4e3=_0x203330;return _0x6e8677[_0x35a4e3('0x28')]=_0x4084d4,_0x6e8677;})['then'](respondWithFilteredResult(_0x4b4d7e,_0xe61954))[_0x203330('0x19')](handleError(_0x4b4d7e,null));},exports[_0x241304('0x37')]=function(_0x958ce4,_0x2d5ad5){const _0x515371=_0x241304;let _0x2b304c={'raw':![],'where':{'id':_0x958ce4[_0x515371('0x35')]['id']}};const _0x1735b6={};return _0x1735b6[_0x515371('0x2')]=_['keys'](db[_0x515371('0x4')][_0x515371('0x17')]),_0x1735b6[_0x515371('0x26')]=_[_0x515371('0x6')](_0x958ce4['query']),_0x1735b6[_0x515371('0xe')]=_[_0x515371('0x31')](_0x1735b6['model'],_0x1735b6[_0x515371('0x26')]),_0x2b304c[_0x515371('0x21')]=_[_0x515371('0x31')](_0x1735b6[_0x515371('0x2')],qs[_0x515371('0x18')](_0x958ce4['query'][_0x515371('0x18')])),_0x2b304c[_0x515371('0x21')]=_0x2b304c[_0x515371('0x21')][_0x515371('0x11')]?_0x2b304c['attributes']:_0x1735b6[_0x515371('0x2')],_0x958ce4[_0x515371('0x26')]['includeAll']&&(_0x2b304c['include']=[{'all':!![]}]),_0x2b304c=_[_0x515371('0xc')]({},_0x2b304c,_0x958ce4['options']),db[_0x515371('0x4')]['findOne'](_0x2b304c)[_0x515371('0x2c')](handleEntityNotFound(_0x2d5ad5,null))[_0x515371('0x2c')](respondWithResult(_0x2d5ad5,null))['catch'](handleError(_0x2d5ad5,null));},exports[_0x241304('0x25')]=function(_0x56224a,_0x431122){const _0x4e73d8=_0x241304;return db[_0x4e73d8('0x4')]['create'](_0x56224a[_0x4e73d8('0x33')],{})['then'](respondWithResult(_0x431122,0xc9))[_0x4e73d8('0x19')](handleError(_0x431122,null));},exports[_0x241304('0x29')]=function(_0x332103,_0x29a14e){const _0x358bb0=_0x241304;return _0x332103[_0x358bb0('0x33')]['id']&&delete _0x332103[_0x358bb0('0x33')]['id'],db[_0x358bb0('0x4')]['findOne']({'where':{'id':_0x332103[_0x358bb0('0x35')]['id']}})['then'](handleEntityNotFound(_0x29a14e,null))[_0x358bb0('0x2c')](saveUpdates(_0x332103[_0x358bb0('0x33')],null))[_0x358bb0('0x2c')](respondWithResult(_0x29a14e,null))[_0x358bb0('0x19')](handleError(_0x29a14e,null));},exports[_0x241304('0x12')]=function(_0x17cc04,_0x398afb){const _0x56d963=_0x241304;return db[_0x56d963('0x4')][_0x56d963('0x2a')]({'where':{'id':_0x17cc04['params']['id']}})[_0x56d963('0x2c')](handleEntityNotFound(_0x398afb,null))['then'](removeEntity(_0x398afb,null))[_0x56d963('0x19')](handleError(_0x398afb,null));},exports[_0x241304('0xd')]=function(_0xac8ff0,_0x2618d5){const _0x259abb=_0x241304;let _0x5c8b5c={};const _0x579c40={};let _0x4da35a,_0x1d611b;return db[_0x259abb('0x4')][_0x259abb('0x2a')]({'where':{'id':_0xac8ff0[_0x259abb('0x35')]['id']}})[_0x259abb('0x2c')](handleEntityNotFound(_0x2618d5,null))['then'](function(_0x51bf46){const _0xd35a2b=_0x259abb;if(_0x51bf46)return _0x4da35a=_0x51bf46,_0x579c40[_0xd35a2b('0x2')]=_['keys'](db[_0xd35a2b('0xb')][_0xd35a2b('0x17')]),_0x579c40['query']=_['keys'](_0xac8ff0[_0xd35a2b('0x26')]),_0x579c40[_0xd35a2b('0xe')]=_[_0xd35a2b('0x31')](_0x579c40[_0xd35a2b('0x2')],_0x579c40[_0xd35a2b('0x26')]),_0x5c8b5c[_0xd35a2b('0x21')]=_[_0xd35a2b('0x31')](_0x579c40['model'],qs['fields'](_0xac8ff0[_0xd35a2b('0x26')][_0xd35a2b('0x18')])),_0x5c8b5c[_0xd35a2b('0x21')]=_0x5c8b5c['attributes'][_0xd35a2b('0x11')]?_0x5c8b5c[_0xd35a2b('0x21')]:_0x579c40['model'],_0x5c8b5c[_0xd35a2b('0xa')]=qs['sort'](_0xac8ff0[_0xd35a2b('0x26')][_0xd35a2b('0x20')]),_0x5c8b5c[_0xd35a2b('0x1e')]=qs[_0xd35a2b('0xe')](_[_0xd35a2b('0x5')](_0xac8ff0[_0xd35a2b('0x26')],_0x579c40[_0xd35a2b('0xe')])),_0xac8ff0['query'][_0xd35a2b('0x8')]&&(_0x5c8b5c[_0xd35a2b('0x1e')]=_[_0xd35a2b('0xc')](_0x5c8b5c[_0xd35a2b('0x1e')],{[Op['or']]:_[_0xd35a2b('0x1a')](_0x5c8b5c[_0xd35a2b('0x21')],function(_0x4f3af3){const _0xdff010=_0xd35a2b,_0x8d9c1b={};return _0x8d9c1b[_0x4f3af3]={[Op[_0xdff010('0x2d')]]:'%'+_0xac8ff0['query'][_0xdff010('0x8')]+'%'},_0x8d9c1b;})})),_0x5c8b5c=_['merge']({},_0x5c8b5c,_0xac8ff0[_0xd35a2b('0x10')]),_0x4da35a[_0xd35a2b('0xd')](_0x5c8b5c);})[_0x259abb('0x2c')](function(_0x589d08){const _0x3af7ac=_0x259abb;if(_0x589d08)return _0x1d611b=_0x589d08[_0x3af7ac('0x11')],typeof _0xac8ff0['query'][_0x3af7ac('0x24')]===_0x3af7ac('0x7')&&(_0x5c8b5c['limit']=qs[_0x3af7ac('0x2b')](_0xac8ff0[_0x3af7ac('0x26')]['limit']),_0x5c8b5c[_0x3af7ac('0x13')]=qs[_0x3af7ac('0x13')](_0xac8ff0['query']['offset'])),_0x4da35a[_0x3af7ac('0xd')](_0x5c8b5c);})[_0x259abb('0x2c')](function(_0x5ccab4){if(_0x5ccab4)return _0x5ccab4?{'count':_0x1d611b,'rows':_0x5ccab4}:null;})[_0x259abb('0x2c')](respondWithResult(_0x2618d5,null))[_0x259abb('0x19')](handleError(_0x2618d5,null));},exports['getSubjects']=function(_0x28ce18,_0x4b0ee7){const _0xfdc8fe=_0x241304;let _0x3a8029={};const _0x1f6a62={};let _0x443813,_0x6664c4;return db['Dynamics365Configuration'][_0xfdc8fe('0x2a')]({'where':{'id':_0x28ce18[_0xfdc8fe('0x35')]['id']}})[_0xfdc8fe('0x2c')](handleEntityNotFound(_0x4b0ee7,null))['then'](function(_0x5c4488){const _0x11d4d5=_0xfdc8fe;if(_0x5c4488)return _0x443813=_0x5c4488,_0x1f6a62[_0x11d4d5('0x2')]=_[_0x11d4d5('0x6')](db[_0x11d4d5('0xb')][_0x11d4d5('0x17')]),_0x1f6a62[_0x11d4d5('0x26')]=_[_0x11d4d5('0x6')](_0x28ce18[_0x11d4d5('0x26')]),_0x1f6a62['filters']=_[_0x11d4d5('0x31')](_0x1f6a62[_0x11d4d5('0x2')],_0x1f6a62[_0x11d4d5('0x26')]),_0x3a8029['attributes']=_['intersection'](_0x1f6a62[_0x11d4d5('0x2')],qs['fields'](_0x28ce18[_0x11d4d5('0x26')][_0x11d4d5('0x18')])),_0x3a8029[_0x11d4d5('0x21')]=_0x3a8029[_0x11d4d5('0x21')][_0x11d4d5('0x11')]?_0x3a8029[_0x11d4d5('0x21')]:_0x1f6a62['model'],_0x3a8029[_0x11d4d5('0xa')]=qs[_0x11d4d5('0x20')](_0x28ce18[_0x11d4d5('0x26')][_0x11d4d5('0x20')]),_0x3a8029[_0x11d4d5('0x1e')]=qs[_0x11d4d5('0xe')](_['pick'](_0x28ce18[_0x11d4d5('0x26')],_0x1f6a62[_0x11d4d5('0xe')])),_0x28ce18[_0x11d4d5('0x26')][_0x11d4d5('0x8')]&&(_0x3a8029[_0x11d4d5('0x1e')]=_[_0x11d4d5('0xc')](_0x3a8029[_0x11d4d5('0x1e')],{[Op['or']]:_[_0x11d4d5('0x1a')](_0x3a8029[_0x11d4d5('0x21')],function(_0x7d9cc8){const _0xa7a350=_0x11d4d5,_0x4112cc={};return _0x4112cc[_0x7d9cc8]={[Op[_0xa7a350('0x2d')]]:'%'+_0x28ce18[_0xa7a350('0x26')][_0xa7a350('0x8')]+'%'},_0x4112cc;})})),_0x3a8029=_[_0x11d4d5('0xc')]({},_0x3a8029,_0x28ce18[_0x11d4d5('0x10')]),_0x443813[_0x11d4d5('0x3')](_0x3a8029);})['then'](function(_0x963730){const _0x1bdafd=_0xfdc8fe;if(_0x963730)return _0x6664c4=_0x963730[_0x1bdafd('0x11')],typeof _0x28ce18['query'][_0x1bdafd('0x24')]===_0x1bdafd('0x7')&&(_0x3a8029[_0x1bdafd('0x2b')]=qs[_0x1bdafd('0x2b')](_0x28ce18[_0x1bdafd('0x26')][_0x1bdafd('0x2b')]),_0x3a8029[_0x1bdafd('0x13')]=qs[_0x1bdafd('0x13')](_0x28ce18[_0x1bdafd('0x26')]['offset'])),_0x443813[_0x1bdafd('0x3')](_0x3a8029);})[_0xfdc8fe('0x2c')](function(_0x3df348){if(_0x3df348)return _0x3df348?{'count':_0x6664c4,'rows':_0x3df348}:null;})[_0xfdc8fe('0x2c')](respondWithResult(_0x4b0ee7,null))[_0xfdc8fe('0x19')](handleError(_0x4b0ee7,null));},exports[_0x241304('0xf')]=function(_0x3305d0,_0xaa2b74){const _0x2dfdba=_0x241304;let _0x55bb39={};const _0xb71c06={};let _0x264057,_0x5ef88b;return db[_0x2dfdba('0x4')][_0x2dfdba('0x2a')]({'where':{'id':_0x3305d0[_0x2dfdba('0x35')]['id']}})[_0x2dfdba('0x2c')](handleEntityNotFound(_0xaa2b74,null))[_0x2dfdba('0x2c')](function(_0x32d94f){const _0x198004=_0x2dfdba;if(_0x32d94f)return _0x264057=_0x32d94f,_0xb71c06['model']=_[_0x198004('0x6')](db[_0x198004('0xb')][_0x198004('0x17')]),_0xb71c06[_0x198004('0x26')]=_['keys'](_0x3305d0[_0x198004('0x26')]),_0xb71c06['filters']=_[_0x198004('0x31')](_0xb71c06[_0x198004('0x2')],_0xb71c06[_0x198004('0x26')]),_0x55bb39[_0x198004('0x21')]=_[_0x198004('0x31')](_0xb71c06[_0x198004('0x2')],qs[_0x198004('0x18')](_0x3305d0[_0x198004('0x26')][_0x198004('0x18')])),_0x55bb39[_0x198004('0x21')]=_0x55bb39['attributes'][_0x198004('0x11')]?_0x55bb39['attributes']:_0xb71c06[_0x198004('0x2')],_0x55bb39[_0x198004('0xa')]=qs[_0x198004('0x20')](_0x3305d0['query'][_0x198004('0x20')]),_0x55bb39[_0x198004('0x1e')]=qs[_0x198004('0xe')](_['pick'](_0x3305d0[_0x198004('0x26')],_0xb71c06[_0x198004('0xe')])),_0x3305d0[_0x198004('0x26')][_0x198004('0x8')]&&(_0x55bb39[_0x198004('0x1e')]=_[_0x198004('0xc')](_0x55bb39[_0x198004('0x1e')],{[Op['or']]:_[_0x198004('0x1a')](_0x55bb39[_0x198004('0x21')],function(_0xf3eb55){const _0x5cd4b2=_0x198004,_0xb8b50a={};return _0xb8b50a[_0xf3eb55]={[Op[_0x5cd4b2('0x2d')]]:'%'+_0x3305d0[_0x5cd4b2('0x26')][_0x5cd4b2('0x8')]+'%'},_0xb8b50a;})})),_0x55bb39=_[_0x198004('0xc')]({},_0x55bb39,_0x3305d0[_0x198004('0x10')]),_0x264057[_0x198004('0xf')](_0x55bb39);})[_0x2dfdba('0x2c')](function(_0x4046e0){const _0x2f3669=_0x2dfdba;if(_0x4046e0)return _0x5ef88b=_0x4046e0['length'],typeof _0x3305d0[_0x2f3669('0x26')]['nolimit']==='undefined'&&(_0x55bb39['limit']=qs[_0x2f3669('0x2b')](_0x3305d0['query'][_0x2f3669('0x2b')]),_0x55bb39[_0x2f3669('0x13')]=qs[_0x2f3669('0x13')](_0x3305d0[_0x2f3669('0x26')][_0x2f3669('0x13')])),_0x264057[_0x2f3669('0xf')](_0x55bb39);})[_0x2dfdba('0x2c')](function(_0x5973a1){if(_0x5973a1)return _0x5973a1?{'count':_0x5ef88b,'rows':_0x5973a1}:null;})[_0x2dfdba('0x2c')](respondWithResult(_0xaa2b74,null))['catch'](handleError(_0xaa2b74,null));}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index c9ee780..df6b606 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a248_0x2a9f=['int_dynamics365_configurations','./intDynamics365Configuration.attributes','define','exports','Dynamics365Configuration'];(function(_0x1618f8,_0x2a9f56){const _0x2ce123=function(_0x12e068){while(--_0x12e068){_0x1618f8['push'](_0x1618f8['shift']());}};_0x2ce123(++_0x2a9f56);}(a248_0x2a9f,0x174));const a248_0x2ce1=function(_0x1618f8,_0x2a9f56){_0x1618f8=_0x1618f8-0x0;let _0x2ce123=a248_0x2a9f[_0x1618f8];return _0x2ce123;};const _0x12141d=a248_0x2ce1;'use strict';const attributes=require(_0x12141d('0x4'));module[_0x12141d('0x1')]=function(_0x12e068){const _0x4f6e1e=_0x12141d,_0x14497a=_0x12e068[_0x4f6e1e('0x0')](_0x4f6e1e('0x2'),attributes,{'tableName':_0x4f6e1e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x14497a;}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index 27bcf49..979dc5e 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a249_0x43ec=['destroy','./intDynamics365Field.controller','create','put','show','update','isAuthenticated','get','/:id','delete','../../components/auth/service','post'];(function(_0x38e5c0,_0x43ec2f){const _0x1bbea1=function(_0x59f14b){while(--_0x59f14b){_0x38e5c0['push'](_0x38e5c0['shift']());}};_0x1bbea1(++_0x43ec2f);}(a249_0x43ec,0xc6));const a249_0x1bbe=function(_0x38e5c0,_0x43ec2f){_0x38e5c0=_0x38e5c0-0x0;let _0x1bbea1=a249_0x43ec[_0x38e5c0];return _0x1bbea1;};const _0x542c9a=a249_0x1bbe;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x542c9a('0x4')),controller=require(_0x542c9a('0x7'));router[_0x542c9a('0x1')]('/',auth['isAuthenticated'](),controller['index']),router[_0x542c9a('0x1')](_0x542c9a('0x2'),auth[_0x542c9a('0x0')](),controller[_0x542c9a('0xa')]),router[_0x542c9a('0x5')]('/',auth[_0x542c9a('0x0')](),controller[_0x542c9a('0x8')]),router[_0x542c9a('0x9')](_0x542c9a('0x2'),auth[_0x542c9a('0x0')](),controller[_0x542c9a('0xb')]),router[_0x542c9a('0x3')](_0x542c9a('0x2'),auth[_0x542c9a('0x0')](),controller[_0x542c9a('0x6')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.attributes.js b/server/api/intDynamics365Field/intDynamics365Field.attributes.js index 1504744..fe7757a 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a250_0x562b=['variable','customVariable','string','exports','keyValue','ENUM','STRING','sequelize','BOOLEAN'];(function(_0x234815,_0x562bcb){const _0x3586b3=function(_0x2fac86){while(--_0x2fac86){_0x234815['push'](_0x234815['shift']());}};_0x3586b3(++_0x562bcb);}(a250_0x562b,0x98));const a250_0x3586=function(_0x234815,_0x562bcb){_0x234815=_0x234815-0x0;let _0x3586b3=a250_0x562b[_0x234815];return _0x3586b3;};const _0x2aa324=a250_0x3586;'use strict';const Sequelize=require(_0x2aa324('0x8'));module[_0x2aa324('0x4')]={'type':{'type':Sequelize[_0x2aa324('0x6')](_0x2aa324('0x3'),'variable','customVariable',_0x2aa324('0x5')),'defaultValue':_0x2aa324('0x3')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x2aa324('0x7')]},'keyType':{'type':Sequelize[_0x2aa324('0x6')](_0x2aa324('0x3'),_0x2aa324('0x1'),_0x2aa324('0x2'))},'keyContent':{'type':Sequelize[_0x2aa324('0x7')]},'idField':{'type':Sequelize[_0x2aa324('0x7')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x2aa324('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x2aa324('0x7')]}}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index 92edd3b..3f7101e 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a251_0x39b3=['name','model','offset','params','limit','intersection','like','filter','options','../../components/parsers/qs','keys','Dynamics365Field','error','type','stack','count','VIRTUAL','set','sort','end','destroy','nolimit','fieldName','rows','merge','show','order','then','send','undefined','index','attributes','../../config/logger','json','fields','status','lodash','findAll','api','includeAll','map','findOne','include','rawAttributes','pick','catch','query','body','where','create','length','filters'];(function(_0x55c042,_0x39b3a3){const _0x9fc81e=function(_0x133452){while(--_0x133452){_0x55c042['push'](_0x55c042['shift']());}};_0x9fc81e(++_0x39b3a3);}(a251_0x39b3,0x1a4));const a251_0x9fc8=function(_0x55c042,_0x39b3a3){_0x55c042=_0x55c042-0x0;let _0x9fc81e=a251_0x39b3[_0x55c042];return _0x9fc81e;};const _0x383e1b=a251_0x9fc8;'use strict';const _=require(_0x383e1b('0x20')),qs=require(_0x383e1b('0x5')),logger=require(_0x383e1b('0x1c'))(_0x383e1b('0x22')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x133452,_0x5062f2){return _0x5062f2=_0x5062f2||0xc8,function(_0x251d39){const _0x3cdee4=a251_0x9fc8;if(_0x251d39)return _0x133452['status'](_0x5062f2)[_0x3cdee4('0x1d')](_0x251d39);};}function respondWithFilteredResult(_0x2962aa,_0x648268){return function(_0x24cecd){const _0x2ca2a5=a251_0x9fc8;if(_0x24cecd){const _0x1d4eaf=_0x24cecd[_0x2ca2a5('0xb')],_0x1da6a1=_0x648268[_0x2ca2a5('0x32')];let _0x392016=_0x648268[_0x2ca2a5('0x32')]+_0x648268[_0x2ca2a5('0x0')],_0x196cda;return _0x392016>=_0x1d4eaf?(_0x392016=_0x1d4eaf,_0x196cda=0xc8):_0x196cda=0xce,_0x2962aa['status'](_0x196cda),_0x2962aa[_0x2ca2a5('0xd')]('Content-Range',_0x1da6a1+'-'+_0x392016+'/'+_0x1d4eaf)[_0x2ca2a5('0x1d')](_0x24cecd);}return null;};}function saveUpdates(_0x1970e2){return function(_0x2ab15f){const _0x75f745=a251_0x9fc8;if(_0x2ab15f)return _0x2ab15f['update'](_0x1970e2)[_0x75f745('0x17')](function(_0x22ddf8){return _0x22ddf8;});return null;};}function removeEntity(_0x50585d){return function(_0x5bde8b){if(_0x5bde8b)return _0x5bde8b['destroy']()['then'](function(){const _0x16e6e8=a251_0x9fc8;_0x50585d[_0x16e6e8('0x1f')](0xcc)[_0x16e6e8('0xf')]();});};}function handleEntityNotFound(_0xedfa3a){return function(_0x2fa3c2){return!_0x2fa3c2&&_0xedfa3a['sendStatus'](0x194),_0x2fa3c2;};}function handleError(_0x356a63,_0x41c7e3){return _0x41c7e3=_0x41c7e3||0x1f4,function(_0x2460f9){const _0x310c6d=a251_0x9fc8;logger[_0x310c6d('0x8')](_0x2460f9[_0x310c6d('0xa')]),_0x2460f9[_0x310c6d('0x30')]&&delete _0x2460f9['name'],_0x356a63[_0x310c6d('0x1f')](_0x41c7e3)[_0x310c6d('0x18')](_0x2460f9);};}exports[_0x383e1b('0x1a')]=function(_0x3bb8fc,_0x4fc4bc){const _0x53730a=_0x383e1b;let _0x1c6809={};const _0x301733={},_0x30f49d={'count':0x0,'rows':[]},_0x1a0d3a=_[_0x53730a('0x24')](db[_0x53730a('0x7')][_0x53730a('0x27')],function(_0xdd78d6){const _0x304389=_0x53730a;return{'name':_0xdd78d6[_0x304389('0x12')],'type':_0xdd78d6[_0x304389('0x9')]['key']};});_0x301733[_0x53730a('0x31')]=_[_0x53730a('0x24')](_0x1a0d3a,_0x53730a('0x30')),_0x301733[_0x53730a('0x2a')]=_['keys'](_0x3bb8fc[_0x53730a('0x2a')]),_0x301733['filters']=_['intersection'](_0x301733['model'],_0x301733['query']),_0x1c6809[_0x53730a('0x1b')]=_[_0x53730a('0x1')](_0x301733['model'],qs[_0x53730a('0x1e')](_0x3bb8fc[_0x53730a('0x2a')][_0x53730a('0x1e')])),_0x1c6809[_0x53730a('0x1b')]=_0x1c6809[_0x53730a('0x1b')][_0x53730a('0x2e')]?_0x1c6809[_0x53730a('0x1b')]:_0x301733[_0x53730a('0x31')];typeof _0x3bb8fc[_0x53730a('0x2a')][_0x53730a('0x11')]===_0x53730a('0x19')&&(_0x1c6809['limit']=qs[_0x53730a('0x0')](_0x3bb8fc['query'][_0x53730a('0x0')]),_0x1c6809[_0x53730a('0x32')]=qs[_0x53730a('0x32')](_0x3bb8fc[_0x53730a('0x2a')]['offset']));_0x1c6809[_0x53730a('0x16')]=qs['sort'](_0x3bb8fc['query'][_0x53730a('0xe')]),_0x1c6809['where']=qs[_0x53730a('0x2f')](_[_0x53730a('0x28')](_0x3bb8fc[_0x53730a('0x2a')],_0x301733[_0x53730a('0x2f')]),_0x1a0d3a);_0x3bb8fc[_0x53730a('0x2a')][_0x53730a('0x3')]&&(_0x1c6809['where']=_[_0x53730a('0x14')](_0x1c6809[_0x53730a('0x2c')],{[Op['or']]:_[_0x53730a('0x24')](_0x1a0d3a,function(_0x2cf442){const _0x4cbb3c=_0x53730a;if(_0x2cf442[_0x4cbb3c('0x9')]!==_0x4cbb3c('0xc')){const _0x100e0a={};return _0x100e0a[_0x2cf442['name']]={[Op[_0x4cbb3c('0x2')]]:'%'+_0x3bb8fc['query']['filter']+'%'},_0x100e0a;}})}));_0x1c6809=_[_0x53730a('0x14')]({},_0x1c6809,_0x3bb8fc[_0x53730a('0x4')]);const _0x5f2ee9={'where':_0x1c6809['where']};return db['Dynamics365Field'][_0x53730a('0xb')](_0x5f2ee9)[_0x53730a('0x17')](function(_0x54d72a){const _0x8e2a2c=_0x53730a;return _0x30f49d['count']=_0x54d72a,_0x3bb8fc[_0x8e2a2c('0x2a')][_0x8e2a2c('0x23')]&&(_0x1c6809[_0x8e2a2c('0x26')]=[{'all':!![]}]),db[_0x8e2a2c('0x7')][_0x8e2a2c('0x21')](_0x1c6809);})[_0x53730a('0x17')](function(_0xb92295){const _0x724de2=_0x53730a;return _0x30f49d[_0x724de2('0x13')]=_0xb92295,_0x30f49d;})['then'](respondWithFilteredResult(_0x4fc4bc,_0x1c6809))['catch'](handleError(_0x4fc4bc,null));},exports[_0x383e1b('0x15')]=function(_0x48aaa5,_0x4e8182){const _0x325bfa=_0x383e1b;let _0x46a3c5={'raw':!![],'where':{'id':_0x48aaa5[_0x325bfa('0x33')]['id']}};const _0x48085f={};return _0x48085f[_0x325bfa('0x31')]=_['keys'](db[_0x325bfa('0x7')][_0x325bfa('0x27')]),_0x48085f[_0x325bfa('0x2a')]=_[_0x325bfa('0x6')](_0x48aaa5[_0x325bfa('0x2a')]),_0x48085f[_0x325bfa('0x2f')]=_[_0x325bfa('0x1')](_0x48085f[_0x325bfa('0x31')],_0x48085f['query']),_0x46a3c5['attributes']=_[_0x325bfa('0x1')](_0x48085f['model'],qs['fields'](_0x48aaa5[_0x325bfa('0x2a')]['fields'])),_0x46a3c5[_0x325bfa('0x1b')]=_0x46a3c5[_0x325bfa('0x1b')][_0x325bfa('0x2e')]?_0x46a3c5[_0x325bfa('0x1b')]:_0x48085f['model'],_0x48aaa5[_0x325bfa('0x2a')][_0x325bfa('0x23')]&&(_0x46a3c5[_0x325bfa('0x26')]=[{'all':!![]}]),_0x46a3c5=_[_0x325bfa('0x14')]({},_0x46a3c5,_0x48aaa5[_0x325bfa('0x4')]),db[_0x325bfa('0x7')][_0x325bfa('0x25')](_0x46a3c5)['then'](handleEntityNotFound(_0x4e8182,null))[_0x325bfa('0x17')](respondWithResult(_0x4e8182,null))['catch'](handleError(_0x4e8182,null));},exports[_0x383e1b('0x2d')]=function(_0x311d64,_0x4d8dec){const _0x3ff479=_0x383e1b;return db[_0x3ff479('0x7')]['create'](_0x311d64[_0x3ff479('0x2b')],{})[_0x3ff479('0x17')](respondWithResult(_0x4d8dec,0xc9))[_0x3ff479('0x29')](handleError(_0x4d8dec,null));},exports['update']=function(_0x17fa92,_0x2e8ccd){const _0x171a30=_0x383e1b;return _0x17fa92[_0x171a30('0x2b')]['id']&&delete _0x17fa92[_0x171a30('0x2b')]['id'],db['Dynamics365Field']['findOne']({'where':{'id':_0x17fa92[_0x171a30('0x33')]['id']}})[_0x171a30('0x17')](handleEntityNotFound(_0x2e8ccd,null))[_0x171a30('0x17')](saveUpdates(_0x17fa92[_0x171a30('0x2b')],null))['then'](respondWithResult(_0x2e8ccd,null))[_0x171a30('0x29')](handleError(_0x2e8ccd,null));},exports[_0x383e1b('0x10')]=function(_0x1b4e8a,_0x4ad657){const _0x5d89c7=_0x383e1b;return db['Dynamics365Field'][_0x5d89c7('0x25')]({'where':{'id':_0x1b4e8a[_0x5d89c7('0x33')]['id']}})['then'](handleEntityNotFound(_0x4ad657,null))[_0x5d89c7('0x17')](removeEntity(_0x4ad657,null))[_0x5d89c7('0x29')](handleError(_0x4ad657,null));}; \ No newline at end of file +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 diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index 636ab19..6ff79a4 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a252_0x418e=['dynamics365_unique_index','FieldId','exports','Dynamics365Field','define','int_dynamics365_fields','./intDynamics365Field.attributes'];(function(_0x1ef37a,_0x418e4b){const _0x45a25b=function(_0x2da725){while(--_0x2da725){_0x1ef37a['push'](_0x1ef37a['shift']());}};_0x45a25b(++_0x418e4b);}(a252_0x418e,0x134));const a252_0x45a2=function(_0x1ef37a,_0x418e4b){_0x1ef37a=_0x1ef37a-0x0;let _0x45a25b=a252_0x418e[_0x1ef37a];return _0x45a25b;};const _0x4f77c9=a252_0x45a2;'use strict';const attributes=require(_0x4f77c9('0x6'));module[_0x4f77c9('0x2')]=function(_0x2da725){const _0x1dbee0=_0x4f77c9,_0x2038cd=_0x2da725[_0x1dbee0('0x4')](_0x1dbee0('0x3'),attributes,{'tableName':_0x1dbee0('0x5'),'paranoid':![],'indexes':[{'name':_0x1dbee0('0x0'),'fields':['idField',_0x1dbee0('0x1')],'unique':!![]}],'timestamps':!![]});return _0x2038cd;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index 3063482..1b22605 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a253_0x4082=['getConfigurations','getFields','exports','destroy','show','./intFreshdeskAccount.controller','/:id','/:id/configurations','update','index','isAuthenticated','get','express','Router','/:id/fields','../../components/auth/service','post','put','delete'];(function(_0x1dbecd,_0x4082e2){const _0x8dac31=function(_0x2e46d9){while(--_0x2e46d9){_0x1dbecd['push'](_0x1dbecd['shift']());}};_0x8dac31(++_0x4082e2);}(a253_0x4082,0x9a));const a253_0x8dac=function(_0x1dbecd,_0x4082e2){_0x1dbecd=_0x1dbecd-0x0;let _0x8dac31=a253_0x4082[_0x1dbecd];return _0x8dac31;};const _0x3b859e=a253_0x8dac;'use strict';const express=require(_0x3b859e('0xa')),router=express[_0x3b859e('0xb')](),auth=require(_0x3b859e('0xd')),controller=require(_0x3b859e('0x3'));router[_0x3b859e('0x9')]('/',auth[_0x3b859e('0x8')](),controller[_0x3b859e('0x7')]),router[_0x3b859e('0x9')](_0x3b859e('0x4'),auth[_0x3b859e('0x8')](),controller[_0x3b859e('0x2')]),router['get'](_0x3b859e('0x5'),auth['isAuthenticated'](),controller[_0x3b859e('0x11')]),router[_0x3b859e('0x9')](_0x3b859e('0xc'),auth[_0x3b859e('0x8')](),controller[_0x3b859e('0x12')]),router['post']('/',auth[_0x3b859e('0x8')](),controller['create']),router[_0x3b859e('0xe')](_0x3b859e('0x5'),auth['isAuthenticated'](),controller['addConfiguration']),router[_0x3b859e('0xf')](_0x3b859e('0x4'),auth[_0x3b859e('0x8')](),controller[_0x3b859e('0x6')]),router[_0x3b859e('0x10')](_0x3b859e('0x4'),auth[_0x3b859e('0x8')](),controller[_0x3b859e('0x1')]),module[_0x3b859e('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index 705b113..3dcd56a 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a254_0x4796=['username','sequelize','remoteUri','STRING'];(function(_0x3f2486,_0x4796fb){const _0x38c5d3=function(_0x274f43){while(--_0x274f43){_0x3f2486['push'](_0x3f2486['shift']());}};_0x38c5d3(++_0x4796fb);}(a254_0x4796,0x1eb));const a254_0x38c5=function(_0x3f2486,_0x4796fb){_0x3f2486=_0x3f2486-0x0;let _0x38c5d3=a254_0x4796[_0x3f2486];return _0x38c5d3;};const _0x4c53e5=a254_0x38c5;'use strict';const Sequelize=require(_0x4c53e5('0x2'));module['exports']={'name':{'type':Sequelize[_0x4c53e5('0x0')]},'description':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0x4c53e5('0x0')],'unique':_0x4c53e5('0x1')},'apiKey':{'type':Sequelize[_0x4c53e5('0x0')]},'remoteUri':{'type':Sequelize[_0x4c53e5('0x0')],'unique':_0x4c53e5('0x3')},'serverUrl':{'type':Sequelize[_0x4c53e5('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index a489483..4d3f99a 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a255_0x3592=['apiKey','%s:X','Subjects','body','json','toString','filter','query','getFields','choices','rawAttributes','api/v2/ticket_fields','from','../../mysqldb','findOne','then','key','type','base64','limit','Descriptions','requester','nolimit','source','findAll','model','count','getFields,\x20%s,\x20%s,\x20%s','params','Basic\x20%s','pick','lastIndexOf','ticket_type','update','Content-Range','keys','sequelize','end','options','offset','getSubjects','fields','intersection','getDescriptions','FreshdeskField','name','error','channel','GET','length','format','like','substring','description','send','sort','FreshdeskConfiguration','order','where','stack','api','create','status','slice','remoteUri','group','FreshdeskAccount','filters','show','capitalize','subject','fieldName','map','agent','util','getConfigurations','includeAll','attributes','catch','AccountId','statusCode','VIRTUAL','custom_dropdown','test','merge','include','label','%s/%s','../../config/logger','undefined','custom_text','default'];(function(_0x5bcf34,_0x359245){const _0x23bddb=function(_0x34d43c){while(--_0x34d43c){_0x5bcf34['push'](_0x5bcf34['shift']());}};_0x23bddb(++_0x359245);}(a255_0x3592,0x159));const a255_0x23bd=function(_0x5bcf34,_0x359245){_0x5bcf34=_0x5bcf34-0x0;let _0x23bddb=a255_0x3592[_0x5bcf34];return _0x23bddb;};const _0x82943c=a255_0x23bd;'use strict';const rp=require('request-promise-native'),util=require(_0x82943c('0x5')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x82943c('0x13'))(_0x82943c('0x53')),db=require(_0x82943c('0x24'))['db'],{Op}=require(_0x82943c('0x3b')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x34d43c,_0x5130d2){return _0x5130d2=_0x5130d2||0xc8,function(_0x5d0570){if(_0x5d0570)return _0x34d43c['status'](_0x5130d2)['json'](_0x5d0570);};}function respondWithFilteredResult(_0x502af1,_0x2e5081){return function(_0x1d0e03){const _0x518cac=a255_0x23bd;if(_0x1d0e03){const _0x2d3eb0=_0x1d0e03[_0x518cac('0x31')],_0x144872=_0x2e5081['offset'];let _0x5d35fe=_0x2e5081[_0x518cac('0x3e')]+_0x2e5081[_0x518cac('0x2a')],_0x2c05d1;return _0x5d35fe>=_0x2d3eb0?(_0x5d35fe=_0x2d3eb0,_0x2c05d1=0xc8):_0x2c05d1=0xce,_0x502af1['status'](_0x2c05d1),_0x502af1['set'](_0x518cac('0x39'),_0x144872+'-'+_0x5d35fe+'/'+_0x2d3eb0)[_0x518cac('0x1b')](_0x1d0e03);}return null;};}function saveUpdates(_0xd9e0a4){return function(_0x2dab17){const _0x4c9d41=a255_0x23bd;if(_0x2dab17)return _0x2dab17[_0x4c9d41('0x38')](_0xd9e0a4)[_0x4c9d41('0x26')](function(_0x1ad7b7){return _0x1ad7b7;});return null;};}function removeEntity(_0x4af7e3){return function(_0x19dd60){const _0x13dacd=a255_0x23bd;if(_0x19dd60)return _0x19dd60['destroy']()[_0x13dacd('0x26')](function(){const _0x7350f6=_0x13dacd;_0x4af7e3[_0x7350f6('0x55')](0xcc)[_0x7350f6('0x3c')]();});};}function handleEntityNotFound(_0x124225){return function(_0x21596c){return!_0x21596c&&_0x124225['sendStatus'](0x194),_0x21596c;};}function handleError(_0x1aa890,_0x434e8b){return _0x434e8b=_0x434e8b||0x1f4,function(_0x5e2d95){const _0x3b4396=a255_0x23bd;logger[_0x3b4396('0x45')](_0x5e2d95[_0x3b4396('0x52')]),_0x5e2d95[_0x3b4396('0x44')]&&delete _0x5e2d95[_0x3b4396('0x44')],_0x1aa890[_0x3b4396('0x55')](_0x434e8b)['send'](_0x5e2d95);};}exports['index']=function(_0x30e3cd,_0x37862c){const _0x35867e=_0x82943c;let _0x1f1ed9={};const _0x398873={},_0x162898={'count':0x0,'rows':[]},_0x460196=_[_0x35867e('0x3')](db[_0x35867e('0x59')][_0x35867e('0x21')],function(_0x3138fc){const _0x4afafa=_0x35867e;return{'name':_0x3138fc[_0x4afafa('0x2')],'type':_0x3138fc[_0x4afafa('0x28')][_0x4afafa('0x27')]};});_0x398873[_0x35867e('0x30')]=_[_0x35867e('0x3')](_0x460196,_0x35867e('0x44')),_0x398873[_0x35867e('0x1e')]=_[_0x35867e('0x3a')](_0x30e3cd[_0x35867e('0x1e')]),_0x398873[_0x35867e('0x5a')]=_['intersection'](_0x398873['model'],_0x398873[_0x35867e('0x1e')]),_0x1f1ed9[_0x35867e('0x8')]=_[_0x35867e('0x41')](_0x398873[_0x35867e('0x30')],qs['fields'](_0x30e3cd[_0x35867e('0x1e')]['fields'])),_0x1f1ed9[_0x35867e('0x8')]=_0x1f1ed9['attributes']['length']?_0x1f1ed9['attributes']:_0x398873[_0x35867e('0x30')];typeof _0x30e3cd[_0x35867e('0x1e')][_0x35867e('0x2d')]==='undefined'&&(_0x1f1ed9[_0x35867e('0x2a')]=qs[_0x35867e('0x2a')](_0x30e3cd[_0x35867e('0x1e')]['limit']),_0x1f1ed9[_0x35867e('0x3e')]=qs['offset'](_0x30e3cd['query'][_0x35867e('0x3e')]));_0x1f1ed9[_0x35867e('0x50')]=qs['sort'](_0x30e3cd[_0x35867e('0x1e')][_0x35867e('0x4e')]),_0x1f1ed9[_0x35867e('0x51')]=qs[_0x35867e('0x5a')](_[_0x35867e('0x35')](_0x30e3cd['query'],_0x398873[_0x35867e('0x5a')]),_0x460196);_0x30e3cd[_0x35867e('0x1e')][_0x35867e('0x1d')]&&(_0x1f1ed9['where']=_[_0x35867e('0xf')](_0x1f1ed9[_0x35867e('0x51')],{[Op['or']]:_[_0x35867e('0x3')](_0x460196,function(_0x5116a4){const _0x492e52=_0x35867e;if(_0x5116a4[_0x492e52('0x28')]!==_0x492e52('0xc')){const _0x368687={};return _0x368687[_0x5116a4[_0x492e52('0x44')]]={[Op[_0x492e52('0x4a')]]:'%'+_0x30e3cd[_0x492e52('0x1e')][_0x492e52('0x1d')]+'%'},_0x368687;}})}));_0x1f1ed9=_[_0x35867e('0xf')]({},_0x1f1ed9,_0x30e3cd['options']);const _0xed61={'where':_0x1f1ed9[_0x35867e('0x51')]};return db[_0x35867e('0x59')]['count'](_0xed61)[_0x35867e('0x26')](function(_0x4e9103){const _0x190bd3=_0x35867e;return _0x162898[_0x190bd3('0x31')]=_0x4e9103,_0x30e3cd[_0x190bd3('0x1e')][_0x190bd3('0x7')]&&(_0x1f1ed9[_0x190bd3('0x10')]=[{'all':!![]}]),db['FreshdeskAccount'][_0x190bd3('0x2f')](_0x1f1ed9);})[_0x35867e('0x26')](function(_0x2e696c){return _0x162898['rows']=_0x2e696c,_0x162898;})['then'](respondWithFilteredResult(_0x37862c,_0x1f1ed9))['catch'](handleError(_0x37862c,null));},exports[_0x82943c('0x5b')]=function(_0x3c66ea,_0x2610cb){const _0x149563=_0x82943c;let _0x2ddd6d={'raw':![],'where':{'id':_0x3c66ea[_0x149563('0x33')]['id']}};const _0x54feed={};return _0x54feed[_0x149563('0x30')]=_[_0x149563('0x3a')](db['FreshdeskAccount'][_0x149563('0x21')]),_0x54feed['query']=_[_0x149563('0x3a')](_0x3c66ea['query']),_0x54feed[_0x149563('0x5a')]=_['intersection'](_0x54feed[_0x149563('0x30')],_0x54feed[_0x149563('0x1e')]),_0x2ddd6d[_0x149563('0x8')]=_['intersection'](_0x54feed[_0x149563('0x30')],qs[_0x149563('0x40')](_0x3c66ea['query'][_0x149563('0x40')])),_0x2ddd6d['attributes']=_0x2ddd6d[_0x149563('0x8')][_0x149563('0x48')]?_0x2ddd6d[_0x149563('0x8')]:_0x54feed[_0x149563('0x30')],_0x3c66ea['query'][_0x149563('0x7')]&&(_0x2ddd6d[_0x149563('0x10')]=[{'all':!![]}]),_0x2ddd6d=_[_0x149563('0xf')]({},_0x2ddd6d,_0x3c66ea['options']),db[_0x149563('0x59')][_0x149563('0x25')](_0x2ddd6d)[_0x149563('0x26')](handleEntityNotFound(_0x2610cb,null))[_0x149563('0x26')](respondWithResult(_0x2610cb,null))['catch'](handleError(_0x2610cb,null));},exports['create']=function(_0x36df1f,_0x33ce20){const _0x366ecf=_0x82943c;return db['FreshdeskAccount']['create'](_0x36df1f[_0x366ecf('0x1a')],{})['then'](respondWithResult(_0x33ce20,0xc9))[_0x366ecf('0x9')](handleError(_0x33ce20,null));},exports['update']=function(_0x4dd9f1,_0x3907b0){const _0x4b03ca=_0x82943c;return _0x4dd9f1['body']['id']&&delete _0x4dd9f1[_0x4b03ca('0x1a')]['id'],db[_0x4b03ca('0x59')]['findOne']({'where':{'id':_0x4dd9f1['params']['id']}})[_0x4b03ca('0x26')](handleEntityNotFound(_0x3907b0,null))['then'](saveUpdates(_0x4dd9f1['body'],null))[_0x4b03ca('0x26')](respondWithResult(_0x3907b0,null))[_0x4b03ca('0x9')](handleError(_0x3907b0,null));},exports['destroy']=function(_0xa50f91,_0x5da9d9){const _0x3afd1b=_0x82943c;return db[_0x3afd1b('0x59')]['findOne']({'where':{'id':_0xa50f91[_0x3afd1b('0x33')]['id']}})['then'](handleEntityNotFound(_0x5da9d9,null))[_0x3afd1b('0x26')](removeEntity(_0x5da9d9,null))[_0x3afd1b('0x9')](handleError(_0x5da9d9,null));},exports[_0x82943c('0x6')]=function(_0x422964,_0x512551){const _0x11d673=_0x82943c;let _0x599565={};const _0x48327d={};let _0x17dd7c,_0xb3f32f;return db[_0x11d673('0x59')][_0x11d673('0x25')]({'where':{'id':_0x422964[_0x11d673('0x33')]['id']}})[_0x11d673('0x26')](handleEntityNotFound(_0x512551,null))[_0x11d673('0x26')](function(_0xf5507a){const _0x3ae918=_0x11d673;if(_0xf5507a)return _0x17dd7c=_0xf5507a,_0x48327d[_0x3ae918('0x30')]=_[_0x3ae918('0x3a')](db[_0x3ae918('0x4f')][_0x3ae918('0x21')]),_0x48327d[_0x3ae918('0x1e')]=_[_0x3ae918('0x3a')](_0x422964[_0x3ae918('0x1e')]),_0x48327d['filters']=_[_0x3ae918('0x41')](_0x48327d[_0x3ae918('0x30')],_0x48327d['query']),_0x599565[_0x3ae918('0x8')]=_['intersection'](_0x48327d[_0x3ae918('0x30')],qs[_0x3ae918('0x40')](_0x422964[_0x3ae918('0x1e')]['fields'])),_0x599565['attributes']=_0x599565[_0x3ae918('0x8')]['length']?_0x599565[_0x3ae918('0x8')]:_0x48327d['model'],_0x599565[_0x3ae918('0x50')]=qs['sort'](_0x422964[_0x3ae918('0x1e')][_0x3ae918('0x4e')]),_0x599565['where']=qs[_0x3ae918('0x5a')](_[_0x3ae918('0x35')](_0x422964['query'],_0x48327d[_0x3ae918('0x5a')])),_0x422964[_0x3ae918('0x1e')][_0x3ae918('0x1d')]&&(_0x599565['where']=_[_0x3ae918('0xf')](_0x599565['where'],{[Op['or']]:_['map'](_0x599565[_0x3ae918('0x8')],function(_0x5166fb){const _0x4288dd=_0x3ae918,_0x1e2d80={};return _0x1e2d80[_0x5166fb]={[Op[_0x4288dd('0x4a')]]:'%'+_0x422964[_0x4288dd('0x1e')][_0x4288dd('0x1d')]+'%'},_0x1e2d80;})})),_0x599565=_['merge']({},_0x599565,_0x422964[_0x3ae918('0x3d')]),_0x17dd7c[_0x3ae918('0x6')](_0x599565);})[_0x11d673('0x26')](function(_0x59457a){const _0x1469eb=_0x11d673;if(_0x59457a)return _0xb3f32f=_0x59457a[_0x1469eb('0x48')],typeof _0x422964[_0x1469eb('0x1e')][_0x1469eb('0x2d')]===_0x1469eb('0x14')&&(_0x599565[_0x1469eb('0x2a')]=qs[_0x1469eb('0x2a')](_0x422964[_0x1469eb('0x1e')][_0x1469eb('0x2a')]),_0x599565[_0x1469eb('0x3e')]=qs[_0x1469eb('0x3e')](_0x422964[_0x1469eb('0x1e')][_0x1469eb('0x3e')])),_0x17dd7c[_0x1469eb('0x6')](_0x599565);})[_0x11d673('0x26')](function(_0x440d99){if(_0x440d99)return _0x440d99?{'count':_0xb3f32f,'rows':_0x440d99}:null;})[_0x11d673('0x26')](respondWithResult(_0x512551,null))[_0x11d673('0x9')](handleError(_0x512551,null));},exports['addConfiguration']=function(_0x354e52,_0x148a95){const _0x37fb91=_0x82943c;return _0x354e52['body']['id']&&delete _0x354e52[_0x37fb91('0x1a')]['id'],db[_0x37fb91('0x59')]['findOne']({'where':{'id':_0x354e52[_0x37fb91('0x33')]['id']}})[_0x37fb91('0x26')](handleEntityNotFound(_0x148a95,null))[_0x37fb91('0x26')](function(_0x31d6f6){const _0x4d924c=_0x37fb91;if(_0x31d6f6)return _0x354e52[_0x4d924c('0x1a')][_0x4d924c('0xa')]=_0x31d6f6['id'],_0x354e52[_0x4d924c('0x1a')][_0x4d924c('0x19')]=integrations[_0x4d924c('0x3f')](_0x354e52[_0x4d924c('0x1a')][_0x4d924c('0x46')],_0x354e52['body']['type']),_0x354e52['body'][_0x4d924c('0x2b')]=integrations[_0x4d924c('0x42')](_0x354e52[_0x4d924c('0x1a')][_0x4d924c('0x46')],_0x354e52['body'][_0x4d924c('0x28')]),db['FreshdeskConfiguration'][_0x4d924c('0x54')](_0x354e52['body'],{'include':[{'model':db[_0x4d924c('0x43')],'as':_0x4d924c('0x19')},{'model':db['FreshdeskField'],'as':_0x4d924c('0x2b')}]});return null;})[_0x37fb91('0x26')](respondWithResult(_0x148a95,null))[_0x37fb91('0x9')](handleError(_0x148a95,null));},exports[_0x82943c('0x1f')]=function(_0x5e2211,_0x495ef7){const _0x4a75b4=_0x82943c;let _0x344261='';return db['FreshdeskAccount']['findOne']({'where':{'id':_0x5e2211[_0x4a75b4('0x33')]['id']},'attributes':['id',_0x4a75b4('0x57'),_0x4a75b4('0x17')]})['then'](handleEntityNotFound(_0x495ef7,null))[_0x4a75b4('0x26')](function(_0x3d7408){const _0x1b163c=_0x4a75b4;if(_0x3d7408){_0x344261=_0x3d7408[_0x1b163c('0x57')];const _0x395918=_0x344261[_0x1b163c('0x56')](-0x1);return _0x395918==='/'&&(_0x344261=_0x344261[_0x1b163c('0x4b')](0x0,_0x344261[_0x1b163c('0x36')](_0x395918))),rp({'method':_0x1b163c('0x47'),'uri':util[_0x1b163c('0x49')](_0x1b163c('0x12'),_0x344261,_0x1b163c('0x22')),'headers':{'Authorization':util[_0x1b163c('0x49')](_0x1b163c('0x34'),Buffer[_0x1b163c('0x23')](util[_0x1b163c('0x49')](_0x1b163c('0x18'),_0x3d7408[_0x1b163c('0x17')]))[_0x1b163c('0x1c')](_0x1b163c('0x29')))},'json':!![]});}})['then'](function(_0x3751db){const _0x19c8e8=_0x4a75b4;if(_0x3751db){const _0x4689fe=[_0x19c8e8('0x2c'),_0x19c8e8('0x1'),_0x19c8e8('0x4'),_0x19c8e8('0x4c'),_0x19c8e8('0x55'),'priority',_0x19c8e8('0x58'),_0x19c8e8('0x2e'),_0x19c8e8('0x37'),_0x19c8e8('0x58'),'company'];return _['remove'](_0x3751db,function(_0x3f0273){const _0x34bc48=_0x19c8e8;return _0x4689fe['includes'](_0x3f0273[_0x34bc48('0x44')])||!_0x3f0273[_0x34bc48('0x16')]&&_0x3f0273[_0x34bc48('0x28')]!==_0x34bc48('0x15')&&_0x3f0273[_0x34bc48('0x28')]!==_0x34bc48('0xd');}),{'count':_0x3751db[_0x19c8e8('0x48')],'rows':_[_0x19c8e8('0x3')](_0x3751db,function(_0x45ec51){const _0x45ffb5=_0x19c8e8;return{'id':_0x45ec51[_0x45ffb5('0x44')],'name':_0x45ec51[_0x45ffb5('0x11')],'custom':!_0x45ec51[_0x45ffb5('0x16')],'options':_0x45ec51[_0x45ffb5('0x20')]?_[_0x45ffb5('0x3')](_0x45ec51[_0x45ffb5('0x20')],function(_0x11565a){const _0x23edec=_0x45ffb5;return{'name':_[_0x23edec('0x0')](_0x11565a),'value':_0x11565a};}):[]};})};}})[_0x4a75b4('0x26')](respondWithResult(_0x495ef7,null))[_0x4a75b4('0x9')](function(_0x1ec94b){const _0xe7cdd9=_0x4a75b4;let _0x46378b=_0x5e2211['query']['test']?0x1f4:_0x1ec94b['statusCode']||0x1f4;logger[_0xe7cdd9('0x45')](_0xe7cdd9('0x32'),_0xe7cdd9('0x1f'),_0x46378b,JSON['stringify'](_0x1ec94b)),delete _0x1ec94b[_0xe7cdd9('0x44')],_0x46378b===0x191&&(_0x46378b=0x190),_0x495ef7[_0xe7cdd9('0x55')](_0x46378b)[_0xe7cdd9('0x4d')](_0x5e2211[_0xe7cdd9('0x1e')][_0xe7cdd9('0xe')]?{'message':'Wrong\x20credentials','statusCode':_0x1ec94b[_0xe7cdd9('0xb')]}:_0x1ec94b);});}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index fbc4ad8..8a54fa6 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a256_0x400f=['int_freshdesk_accounts','define','./intFreshdeskAccount.attributes','FreshdeskAccount','exports'];(function(_0x3bcc94,_0x400f9f){const _0x452efc=function(_0x3baf69){while(--_0x3baf69){_0x3bcc94['push'](_0x3bcc94['shift']());}};_0x452efc(++_0x400f9f);}(a256_0x400f,0x119));const a256_0x452e=function(_0x3bcc94,_0x400f9f){_0x3bcc94=_0x3bcc94-0x0;let _0x452efc=a256_0x400f[_0x3bcc94];return _0x452efc;};const _0x5bdb22=a256_0x452e;'use strict';const attributes=require(_0x5bdb22('0x1'));module[_0x5bdb22('0x3')]=function(_0x3baf69){const _0x5f37b9=_0x5bdb22,_0x3ffc49=_0x3baf69[_0x5f37b9('0x0')](_0x5f37b9('0x2'),attributes,{'tableName':_0x5f37b9('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3ffc49;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index d105b1d..2c30d80 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a257_0x1163=['debug','error','where','raw','findAll','model','then','attributes','message','stringify','info','findOne','GetFreshdeskAccount','ShowFreshdeskAccount','options','limit','map','FreshdeskAccount','../../config/logger','../../mysqldb','catch','include','rpc','lodash'];(function(_0x522cdc,_0x1163c6){const _0x143e8e=function(_0x823015){while(--_0x823015){_0x522cdc['push'](_0x522cdc['shift']());}};_0x143e8e(++_0x1163c6);}(a257_0x1163,0x100));const a257_0x143e=function(_0x522cdc,_0x1163c6){_0x522cdc=_0x522cdc-0x0;let _0x143e8e=a257_0x1163[_0x522cdc];return _0x143e8e;};const _0x146927=a257_0x143e;'use strict';const _=require(_0x146927('0x7')),db=require(_0x146927('0x3'))['db'],logger=require(_0x146927('0x2'))(_0x146927('0x6'));exports[_0x146927('0x14')]=function(_0x823015){const _0x599bc1=this;return new Promise(function(_0x1c2165,_0x10e36b){const _0x124521=a257_0x143e;return db[_0x124521('0x1')][_0x124521('0xc')]({'raw':_0x823015['options']?_0x823015[_0x124521('0x16')][_0x124521('0xb')]===undefined?!![]:![]:!![],'where':_0x823015['options']?_0x823015[_0x124521('0x16')][_0x124521('0xa')]||null:null,'attributes':_0x823015[_0x124521('0x16')]?_0x823015[_0x124521('0x16')][_0x124521('0xf')]||null:null,'limit':_0x823015[_0x124521('0x16')]?_0x823015[_0x124521('0x16')][_0x124521('0x17')]||null:null,'include':_0x823015[_0x124521('0x16')]?_0x823015[_0x124521('0x16')][_0x124521('0x5')]?_[_0x124521('0x0')](_0x823015[_0x124521('0x16')]['include'],function(_0x95659e){const _0x296833=_0x124521;return{'model':db[_0x95659e[_0x296833('0xd')]],'as':_0x95659e['as'],'attributes':_0x95659e[_0x296833('0xf')],'include':_0x95659e[_0x296833('0x5')]?_[_0x296833('0x0')](_0x95659e[_0x296833('0x5')],function(_0x8f7771){const _0x234914=_0x296833;return{'model':db[_0x8f7771[_0x234914('0xd')]],'as':_0x8f7771['as'],'attributes':_0x8f7771[_0x234914('0xf')],'include':_0x8f7771['include']?_[_0x234914('0x0')](_0x8f7771[_0x234914('0x5')],function(_0x500adc){return{'model':db[_0x500adc['model']],'as':_0x500adc['as'],'attributes':_0x500adc['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x11635d){const _0x4b8395=_0x124521;logger[_0x4b8395('0x12')](_0x4b8395('0x14'),_0x823015),logger['debug']('GetFreshdeskAccount',_0x823015,JSON[_0x4b8395('0x11')](_0x11635d)),_0x1c2165(_0x11635d);})[_0x124521('0x4')](function(_0x4286e7){const _0x57d808=_0x124521;logger['error'](_0x57d808('0x14'),_0x4286e7['message'],_0x823015),_0x10e36b(_0x599bc1['error'](0x1f4,_0x4286e7['message']));});});},exports[_0x146927('0x15')]=function(_0x366a49){const _0x3a118f=this;return new Promise(function(_0x5c1cbf,_0x570d61){const _0x374b46=a257_0x143e;return db[_0x374b46('0x1')][_0x374b46('0x13')]({'raw':_0x366a49[_0x374b46('0x16')]?_0x366a49[_0x374b46('0x16')][_0x374b46('0xb')]===undefined?!![]:![]:!![],'where':_0x366a49[_0x374b46('0x16')]?_0x366a49[_0x374b46('0x16')][_0x374b46('0xa')]||null:null,'attributes':_0x366a49[_0x374b46('0x16')]?_0x366a49['options']['attributes']||null:null,'include':_0x366a49[_0x374b46('0x16')]?_0x366a49['options'][_0x374b46('0x5')]?_[_0x374b46('0x0')](_0x366a49[_0x374b46('0x16')]['include'],function(_0x5b1589){const _0x9199e6=_0x374b46;return{'model':db[_0x5b1589[_0x9199e6('0xd')]],'as':_0x5b1589['as'],'attributes':_0x5b1589[_0x9199e6('0xf')],'include':_0x5b1589[_0x9199e6('0x5')]?_[_0x9199e6('0x0')](_0x5b1589[_0x9199e6('0x5')],function(_0x1d0a32){const _0x495b1c=_0x9199e6;return{'model':db[_0x1d0a32[_0x495b1c('0xd')]],'as':_0x1d0a32['as'],'attributes':_0x1d0a32['attributes'],'include':_0x1d0a32[_0x495b1c('0x5')]?_[_0x495b1c('0x0')](_0x1d0a32['include'],function(_0x11598b){const _0x325ce1=_0x495b1c;return{'model':db[_0x11598b[_0x325ce1('0xd')]],'as':_0x11598b['as'],'attributes':_0x11598b['attributes']};}):[]};}):[]};}):[]:[]})[_0x374b46('0xe')](function(_0x234cbf){const _0x30e196=_0x374b46;logger[_0x30e196('0x12')]('ShowFreshdeskAccount',_0x366a49),logger[_0x30e196('0x8')](_0x30e196('0x15'),_0x366a49,JSON[_0x30e196('0x11')](_0x234cbf)),_0x5c1cbf(_0x234cbf);})['catch'](function(_0x3d078c){const _0x2c6a33=_0x374b46;logger[_0x2c6a33('0x9')](_0x2c6a33('0x15'),_0x3d078c[_0x2c6a33('0x10')],_0x366a49),_0x570d61(_0x3a118f[_0x2c6a33('0x9')](0x1f4,_0x3d078c['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index 0a06720..69500cf 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a258_0x2861=['/:id/descriptions','put','getTags','exports','create','/:id/fields','show','update','../../components/auth/service','getFields','./intFreshdeskConfiguration.controller','delete','get','/:id/subjects','getSubjects','setTags','express','destroy','/:id','Router','post','isAuthenticated'];(function(_0x3db8ea,_0x286197){const _0x38e571=function(_0xd1511e){while(--_0xd1511e){_0x3db8ea['push'](_0x3db8ea['shift']());}};_0x38e571(++_0x286197);}(a258_0x2861,0x191));const a258_0x38e5=function(_0x3db8ea,_0x286197){_0x3db8ea=_0x3db8ea-0x0;let _0x38e571=a258_0x2861[_0x3db8ea];return _0x38e571;};const _0x4b55d9=a258_0x38e5;'use strict';const express=require(_0x4b55d9('0xb')),router=express[_0x4b55d9('0xe')](),auth=require(_0x4b55d9('0x3')),controller=require(_0x4b55d9('0x5'));router[_0x4b55d9('0x7')]('/',auth[_0x4b55d9('0x10')](),controller['index']),router[_0x4b55d9('0x7')]('/:id',auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0x1')]),router['get'](_0x4b55d9('0x0'),auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0x4')]),router[_0x4b55d9('0x7')](_0x4b55d9('0x8'),auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0x9')]),router['get'](_0x4b55d9('0x11'),auth[_0x4b55d9('0x10')](),controller['getDescriptions']),router[_0x4b55d9('0x7')]('/:id/tags',auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0x13')]),router[_0x4b55d9('0xf')]('/',auth['isAuthenticated'](),controller[_0x4b55d9('0x15')]),router[_0x4b55d9('0xf')]('/:id/tags',auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0xa')]),router[_0x4b55d9('0x12')](_0x4b55d9('0xd'),auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0x2')]),router[_0x4b55d9('0x6')](_0x4b55d9('0xd'),auth[_0x4b55d9('0x10')](),controller[_0x4b55d9('0xc')]),module[_0x4b55d9('0x14')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index 725ed4b..890d8c6 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a259_0x3573=['STRING','sequelize'];(function(_0x12f3a6,_0x35738a){const _0x557549=function(_0x300767){while(--_0x300767){_0x12f3a6['push'](_0x12f3a6['shift']());}};_0x557549(++_0x35738a);}(a259_0x3573,0x1c9));const a259_0x5575=function(_0x12f3a6,_0x35738a){_0x12f3a6=_0x12f3a6-0x0;let _0x557549=a259_0x3573[_0x12f3a6];return _0x557549;};const _0x1e93b8=a259_0x5575;'use strict';const Sequelize=require(_0x1e93b8('0x0'));module['exports']={'name':{'type':Sequelize[_0x1e93b8('0x1')]},'description':{'type':Sequelize[_0x1e93b8('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index 48fe66b..5bff885 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a260_0x1f93=['FreshdeskField','order','map','nolimit','sendStatus','type','destroy','model','then','getSubjects','undefined','includeAll','pick','query','length','index','Content-Range','params','setTags','status','name','getFields','set','filters','key','create','findOne','update','merge','like','fields','ids','include','stack','rawAttributes','FreshdeskConfiguration','attributes','fieldName','keys','lodash','catch','offset','limit','findAll','filter','getTags','sort','sequelize','body','getDescriptions','intersection','../../config/logger','options','show','end','rows','where','count','Tag'];(function(_0x4e6f3f,_0x1f9320){const _0x1ee32b=function(_0x3bef78){while(--_0x3bef78){_0x4e6f3f['push'](_0x4e6f3f['shift']());}};_0x1ee32b(++_0x1f9320);}(a260_0x1f93,0xa9));const a260_0x1ee3=function(_0x4e6f3f,_0x1f9320){_0x4e6f3f=_0x4e6f3f-0x0;let _0x1ee32b=a260_0x1f93[_0x4e6f3f];return _0x1ee32b;};const _0x42e6ee=a260_0x1ee3;'use strict';const _=require(_0x42e6ee('0x2f')),qs=require('../../components/parsers/qs'),logger=require(_0x42e6ee('0x0'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x42e6ee('0x37'));function respondWithResult(_0x3bef78,_0x3ffcec){return _0x3ffcec=_0x3ffcec||0xc8,function(_0xaba5c){if(_0xaba5c)return _0x3bef78['status'](_0x3ffcec)['json'](_0xaba5c);};}function respondWithFilteredResult(_0x1f0f34,_0x590c79){return function(_0x47a887){const _0x45a7bb=a260_0x1ee3;if(_0x47a887){const _0x440567=_0x47a887[_0x45a7bb('0x6')],_0x22fa6d=_0x590c79[_0x45a7bb('0x31')];let _0x108fbd=_0x590c79[_0x45a7bb('0x31')]+_0x590c79['limit'],_0x56e63e;return _0x108fbd>=_0x440567?(_0x108fbd=_0x440567,_0x56e63e=0xc8):_0x56e63e=0xce,_0x1f0f34[_0x45a7bb('0x1b')](_0x56e63e),_0x1f0f34[_0x45a7bb('0x1e')](_0x45a7bb('0x18'),_0x22fa6d+'-'+_0x108fbd+'/'+_0x440567)['json'](_0x47a887);}return null;};}function saveUpdates(_0x5eb5bb){return function(_0x22eb74){const _0x4f5fe5=a260_0x1ee3;if(_0x22eb74)return _0x22eb74[_0x4f5fe5('0x23')](_0x5eb5bb)[_0x4f5fe5('0x10')](function(_0x59b205){return _0x59b205;});return null;};}function removeEntity(_0x26b93f){return function(_0x254d6f){const _0x160740=a260_0x1ee3;if(_0x254d6f)return _0x254d6f[_0x160740('0xe')]()['then'](function(){const _0xfeb0e8=_0x160740;_0x26b93f[_0xfeb0e8('0x1b')](0xcc)[_0xfeb0e8('0x3')]();});};}function handleEntityNotFound(_0xdb3011){return function(_0x2a4a18){const _0x214e34=a260_0x1ee3;return!_0x2a4a18&&_0xdb3011[_0x214e34('0xc')](0x194),_0x2a4a18;};}function handleError(_0x585320,_0x1d3795){return _0x1d3795=_0x1d3795||0x1f4,function(_0x5eead1){const _0x58937d=a260_0x1ee3;logger['error'](_0x5eead1[_0x58937d('0x29')]),_0x5eead1[_0x58937d('0x1c')]&&delete _0x5eead1['name'],_0x585320['status'](_0x1d3795)['send'](_0x5eead1);};}exports[_0x42e6ee('0x17')]=function(_0x488064,_0x1ed958){const _0x3d17c1=_0x42e6ee;let _0x53edd9={};const _0x5e94a4={},_0x5ed93b={'count':0x0,'rows':[]},_0x3c02ee=_[_0x3d17c1('0xa')](db['FreshdeskConfiguration'][_0x3d17c1('0x2a')],function(_0x5808a2){const _0x44bc0e=_0x3d17c1;return{'name':_0x5808a2[_0x44bc0e('0x2d')],'type':_0x5808a2[_0x44bc0e('0xd')][_0x44bc0e('0x20')]};});_0x5e94a4[_0x3d17c1('0xf')]=_[_0x3d17c1('0xa')](_0x3c02ee,_0x3d17c1('0x1c')),_0x5e94a4[_0x3d17c1('0x15')]=_[_0x3d17c1('0x2e')](_0x488064[_0x3d17c1('0x15')]),_0x5e94a4[_0x3d17c1('0x1f')]=_[_0x3d17c1('0x3a')](_0x5e94a4['model'],_0x5e94a4[_0x3d17c1('0x15')]),_0x53edd9[_0x3d17c1('0x2c')]=_[_0x3d17c1('0x3a')](_0x5e94a4[_0x3d17c1('0xf')],qs['fields'](_0x488064[_0x3d17c1('0x15')][_0x3d17c1('0x26')])),_0x53edd9[_0x3d17c1('0x2c')]=_0x53edd9['attributes']['length']?_0x53edd9['attributes']:_0x5e94a4['model'];typeof _0x488064[_0x3d17c1('0x15')][_0x3d17c1('0xb')]==='undefined'&&(_0x53edd9[_0x3d17c1('0x32')]=qs[_0x3d17c1('0x32')](_0x488064['query'][_0x3d17c1('0x32')]),_0x53edd9[_0x3d17c1('0x31')]=qs[_0x3d17c1('0x31')](_0x488064['query'][_0x3d17c1('0x31')]));_0x53edd9[_0x3d17c1('0x9')]=qs[_0x3d17c1('0x36')](_0x488064[_0x3d17c1('0x15')]['sort']),_0x53edd9[_0x3d17c1('0x5')]=qs['filters'](_[_0x3d17c1('0x14')](_0x488064[_0x3d17c1('0x15')],_0x5e94a4[_0x3d17c1('0x1f')]),_0x3c02ee);_0x488064[_0x3d17c1('0x15')]['filter']&&(_0x53edd9['where']=_['merge'](_0x53edd9[_0x3d17c1('0x5')],{[Op['or']]:_[_0x3d17c1('0xa')](_0x3c02ee,function(_0x34ca1d){const _0xb2e744=_0x3d17c1;if(_0x34ca1d['type']!=='VIRTUAL'){const _0x16f731={};return _0x16f731[_0x34ca1d[_0xb2e744('0x1c')]]={[Op[_0xb2e744('0x25')]]:'%'+_0x488064[_0xb2e744('0x15')][_0xb2e744('0x34')]+'%'},_0x16f731;}})}));_0x53edd9=_[_0x3d17c1('0x24')]({},_0x53edd9,_0x488064[_0x3d17c1('0x1')]);const _0x538410={'where':_0x53edd9[_0x3d17c1('0x5')]};return db[_0x3d17c1('0x2b')]['count'](_0x538410)[_0x3d17c1('0x10')](function(_0xde9198){const _0x4c1a2e=_0x3d17c1;return _0x5ed93b[_0x4c1a2e('0x6')]=_0xde9198,_0x488064[_0x4c1a2e('0x15')]['includeAll']&&(_0x53edd9[_0x4c1a2e('0x28')]=[{'all':!![]}]),db['FreshdeskConfiguration'][_0x4c1a2e('0x33')](_0x53edd9);})['then'](function(_0x4d0727){const _0x37585e=_0x3d17c1;return _0x5ed93b[_0x37585e('0x4')]=_0x4d0727,_0x5ed93b;})[_0x3d17c1('0x10')](respondWithFilteredResult(_0x1ed958,_0x53edd9))['catch'](handleError(_0x1ed958,null));},exports[_0x42e6ee('0x2')]=function(_0x5346de,_0x53c877){const _0x245ab4=_0x42e6ee;let _0x1706cf={'raw':![],'where':{'id':_0x5346de['params']['id']}};const _0x4cdb71={};return _0x4cdb71['model']=_['keys'](db[_0x245ab4('0x2b')][_0x245ab4('0x2a')]),_0x4cdb71[_0x245ab4('0x15')]=_[_0x245ab4('0x2e')](_0x5346de[_0x245ab4('0x15')]),_0x4cdb71[_0x245ab4('0x1f')]=_['intersection'](_0x4cdb71[_0x245ab4('0xf')],_0x4cdb71[_0x245ab4('0x15')]),_0x1706cf['attributes']=_[_0x245ab4('0x3a')](_0x4cdb71[_0x245ab4('0xf')],qs[_0x245ab4('0x26')](_0x5346de[_0x245ab4('0x15')][_0x245ab4('0x26')])),_0x1706cf[_0x245ab4('0x2c')]=_0x1706cf[_0x245ab4('0x2c')][_0x245ab4('0x16')]?_0x1706cf[_0x245ab4('0x2c')]:_0x4cdb71[_0x245ab4('0xf')],_0x5346de[_0x245ab4('0x15')][_0x245ab4('0x13')]&&(_0x1706cf[_0x245ab4('0x28')]=[{'all':!![]}]),_0x1706cf=_[_0x245ab4('0x24')]({},_0x1706cf,_0x5346de[_0x245ab4('0x1')]),db['FreshdeskConfiguration'][_0x245ab4('0x22')](_0x1706cf)[_0x245ab4('0x10')](handleEntityNotFound(_0x53c877,null))[_0x245ab4('0x10')](respondWithResult(_0x53c877,null))[_0x245ab4('0x30')](handleError(_0x53c877,null));},exports[_0x42e6ee('0x21')]=function(_0x9e4ee6,_0xc8958a){const _0x55c276=_0x42e6ee;return db[_0x55c276('0x2b')]['create'](_0x9e4ee6[_0x55c276('0x38')],{})[_0x55c276('0x10')](respondWithResult(_0xc8958a,0xc9))[_0x55c276('0x30')](handleError(_0xc8958a,null));},exports[_0x42e6ee('0x23')]=function(_0x2a5942,_0x20866a){const _0x424c85=_0x42e6ee;return _0x2a5942[_0x424c85('0x38')]['id']&&delete _0x2a5942[_0x424c85('0x38')]['id'],db['FreshdeskConfiguration'][_0x424c85('0x22')]({'where':{'id':_0x2a5942[_0x424c85('0x19')]['id']}})['then'](handleEntityNotFound(_0x20866a,null))['then'](saveUpdates(_0x2a5942['body'],null))[_0x424c85('0x10')](respondWithResult(_0x20866a,null))[_0x424c85('0x30')](handleError(_0x20866a,null));},exports['destroy']=function(_0x17ca05,_0x512946){const _0x2b3255=_0x42e6ee;return db[_0x2b3255('0x2b')][_0x2b3255('0x22')]({'where':{'id':_0x17ca05[_0x2b3255('0x19')]['id']}})[_0x2b3255('0x10')](handleEntityNotFound(_0x512946,null))[_0x2b3255('0x10')](removeEntity(_0x512946,null))[_0x2b3255('0x30')](handleError(_0x512946,null));},exports['getFields']=function(_0x293d0e,_0x7bff3b){const _0x50f593=_0x42e6ee;let _0x598c56={};const _0xf86e51={};let _0xfc1162,_0x3051c4;return db[_0x50f593('0x2b')]['findOne']({'where':{'id':_0x293d0e[_0x50f593('0x19')]['id']}})[_0x50f593('0x10')](handleEntityNotFound(_0x7bff3b,null))[_0x50f593('0x10')](function(_0x123bf){const _0x56bd88=_0x50f593;if(_0x123bf)return _0xfc1162=_0x123bf,_0xf86e51[_0x56bd88('0xf')]=_[_0x56bd88('0x2e')](db[_0x56bd88('0x8')][_0x56bd88('0x2a')]),_0xf86e51[_0x56bd88('0x15')]=_['keys'](_0x293d0e[_0x56bd88('0x15')]),_0xf86e51[_0x56bd88('0x1f')]=_['intersection'](_0xf86e51['model'],_0xf86e51['query']),_0x598c56[_0x56bd88('0x2c')]=_[_0x56bd88('0x3a')](_0xf86e51['model'],qs[_0x56bd88('0x26')](_0x293d0e[_0x56bd88('0x15')][_0x56bd88('0x26')])),_0x598c56[_0x56bd88('0x2c')]=_0x598c56[_0x56bd88('0x2c')][_0x56bd88('0x16')]?_0x598c56[_0x56bd88('0x2c')]:_0xf86e51[_0x56bd88('0xf')],_0x598c56['order']=qs[_0x56bd88('0x36')](_0x293d0e[_0x56bd88('0x15')][_0x56bd88('0x36')]),_0x598c56['where']=qs['filters'](_[_0x56bd88('0x14')](_0x293d0e[_0x56bd88('0x15')],_0xf86e51[_0x56bd88('0x1f')])),_0x293d0e[_0x56bd88('0x15')]['filter']&&(_0x598c56[_0x56bd88('0x5')]=_['merge'](_0x598c56[_0x56bd88('0x5')],{[Op['or']]:_['map'](_0x598c56['attributes'],function(_0x5670cf){const _0x40c05b=_0x56bd88,_0x275781={};return _0x275781[_0x5670cf]={[Op[_0x40c05b('0x25')]]:'%'+_0x293d0e[_0x40c05b('0x15')][_0x40c05b('0x34')]+'%'},_0x275781;})})),_0x598c56=_['merge']({},_0x598c56,_0x293d0e[_0x56bd88('0x1')]),_0xfc1162[_0x56bd88('0x1d')](_0x598c56);})['then'](function(_0x34bd32){const _0x1a2570=_0x50f593;if(_0x34bd32)return _0x3051c4=_0x34bd32[_0x1a2570('0x16')],typeof _0x293d0e[_0x1a2570('0x15')]['nolimit']==='undefined'&&(_0x598c56['limit']=qs[_0x1a2570('0x32')](_0x293d0e[_0x1a2570('0x15')]['limit']),_0x598c56['offset']=qs[_0x1a2570('0x31')](_0x293d0e['query'][_0x1a2570('0x31')])),_0xfc1162[_0x1a2570('0x1d')](_0x598c56);})[_0x50f593('0x10')](function(_0x4009bc){if(_0x4009bc)return _0x4009bc?{'count':_0x3051c4,'rows':_0x4009bc}:null;})[_0x50f593('0x10')](respondWithResult(_0x7bff3b,null))[_0x50f593('0x30')](handleError(_0x7bff3b,null));},exports['getSubjects']=function(_0x3b8641,_0x53cdf9){const _0x1e5888=_0x42e6ee;let _0x459254={};const _0x1dc570={};let _0x47d795,_0x3abd91;return db[_0x1e5888('0x2b')]['findOne']({'where':{'id':_0x3b8641['params']['id']}})[_0x1e5888('0x10')](handleEntityNotFound(_0x53cdf9,null))[_0x1e5888('0x10')](function(_0x2fd77f){const _0x28187b=_0x1e5888;if(_0x2fd77f)return _0x47d795=_0x2fd77f,_0x1dc570[_0x28187b('0xf')]=_[_0x28187b('0x2e')](db[_0x28187b('0x8')][_0x28187b('0x2a')]),_0x1dc570[_0x28187b('0x15')]=_[_0x28187b('0x2e')](_0x3b8641['query']),_0x1dc570[_0x28187b('0x1f')]=_[_0x28187b('0x3a')](_0x1dc570[_0x28187b('0xf')],_0x1dc570[_0x28187b('0x15')]),_0x459254['attributes']=_[_0x28187b('0x3a')](_0x1dc570[_0x28187b('0xf')],qs['fields'](_0x3b8641[_0x28187b('0x15')][_0x28187b('0x26')])),_0x459254['attributes']=_0x459254[_0x28187b('0x2c')][_0x28187b('0x16')]?_0x459254['attributes']:_0x1dc570[_0x28187b('0xf')],_0x459254[_0x28187b('0x9')]=qs[_0x28187b('0x36')](_0x3b8641[_0x28187b('0x15')][_0x28187b('0x36')]),_0x459254['where']=qs[_0x28187b('0x1f')](_[_0x28187b('0x14')](_0x3b8641['query'],_0x1dc570[_0x28187b('0x1f')])),_0x3b8641[_0x28187b('0x15')]['filter']&&(_0x459254[_0x28187b('0x5')]=_[_0x28187b('0x24')](_0x459254[_0x28187b('0x5')],{[Op['or']]:_['map'](_0x459254['attributes'],function(_0x4594b8){const _0xccdc74=_0x28187b,_0x20198a={};return _0x20198a[_0x4594b8]={[Op[_0xccdc74('0x25')]]:'%'+_0x3b8641[_0xccdc74('0x15')][_0xccdc74('0x34')]+'%'},_0x20198a;})})),_0x459254=_[_0x28187b('0x24')]({},_0x459254,_0x3b8641[_0x28187b('0x1')]),_0x47d795[_0x28187b('0x11')](_0x459254);})['then'](function(_0x2d407a){const _0x157cd6=_0x1e5888;if(_0x2d407a)return _0x3abd91=_0x2d407a['length'],typeof _0x3b8641[_0x157cd6('0x15')][_0x157cd6('0xb')]===_0x157cd6('0x12')&&(_0x459254[_0x157cd6('0x32')]=qs[_0x157cd6('0x32')](_0x3b8641[_0x157cd6('0x15')]['limit']),_0x459254[_0x157cd6('0x31')]=qs[_0x157cd6('0x31')](_0x3b8641[_0x157cd6('0x15')][_0x157cd6('0x31')])),_0x47d795['getSubjects'](_0x459254);})['then'](function(_0x4815be){if(_0x4815be)return _0x4815be?{'count':_0x3abd91,'rows':_0x4815be}:null;})[_0x1e5888('0x10')](respondWithResult(_0x53cdf9,null))[_0x1e5888('0x30')](handleError(_0x53cdf9,null));},exports[_0x42e6ee('0x39')]=function(_0x1f9992,_0x18a8b5){const _0x377602=_0x42e6ee;let _0x58c1d3={};const _0x314071={};let _0x28649a,_0x97aa3f;return db['FreshdeskConfiguration'][_0x377602('0x22')]({'where':{'id':_0x1f9992[_0x377602('0x19')]['id']}})[_0x377602('0x10')](handleEntityNotFound(_0x18a8b5,null))['then'](function(_0x592bfe){const _0x1328d2=_0x377602;if(_0x592bfe)return _0x28649a=_0x592bfe,_0x314071[_0x1328d2('0xf')]=_[_0x1328d2('0x2e')](db[_0x1328d2('0x8')][_0x1328d2('0x2a')]),_0x314071[_0x1328d2('0x15')]=_['keys'](_0x1f9992['query']),_0x314071['filters']=_[_0x1328d2('0x3a')](_0x314071[_0x1328d2('0xf')],_0x314071['query']),_0x58c1d3[_0x1328d2('0x2c')]=_[_0x1328d2('0x3a')](_0x314071[_0x1328d2('0xf')],qs[_0x1328d2('0x26')](_0x1f9992[_0x1328d2('0x15')]['fields'])),_0x58c1d3[_0x1328d2('0x2c')]=_0x58c1d3[_0x1328d2('0x2c')][_0x1328d2('0x16')]?_0x58c1d3[_0x1328d2('0x2c')]:_0x314071[_0x1328d2('0xf')],_0x58c1d3[_0x1328d2('0x9')]=qs[_0x1328d2('0x36')](_0x1f9992[_0x1328d2('0x15')][_0x1328d2('0x36')]),_0x58c1d3[_0x1328d2('0x5')]=qs[_0x1328d2('0x1f')](_[_0x1328d2('0x14')](_0x1f9992[_0x1328d2('0x15')],_0x314071[_0x1328d2('0x1f')])),_0x1f9992[_0x1328d2('0x15')][_0x1328d2('0x34')]&&(_0x58c1d3[_0x1328d2('0x5')]=_[_0x1328d2('0x24')](_0x58c1d3[_0x1328d2('0x5')],{[Op['or']]:_[_0x1328d2('0xa')](_0x58c1d3['attributes'],function(_0x5af697){const _0x173250=_0x1328d2,_0x5f519c={};return _0x5f519c[_0x5af697]={[Op['like']]:'%'+_0x1f9992[_0x173250('0x15')][_0x173250('0x34')]+'%'},_0x5f519c;})})),_0x58c1d3=_[_0x1328d2('0x24')]({},_0x58c1d3,_0x1f9992['options']),_0x28649a[_0x1328d2('0x39')](_0x58c1d3);})[_0x377602('0x10')](function(_0x553b05){const _0x34b330=_0x377602;if(_0x553b05)return _0x97aa3f=_0x553b05[_0x34b330('0x16')],typeof _0x1f9992['query'][_0x34b330('0xb')]===_0x34b330('0x12')&&(_0x58c1d3[_0x34b330('0x32')]=qs['limit'](_0x1f9992['query'][_0x34b330('0x32')]),_0x58c1d3[_0x34b330('0x31')]=qs[_0x34b330('0x31')](_0x1f9992['query'][_0x34b330('0x31')])),_0x28649a['getDescriptions'](_0x58c1d3);})[_0x377602('0x10')](function(_0x2629ac){if(_0x2629ac)return _0x2629ac?{'count':_0x97aa3f,'rows':_0x2629ac}:null;})[_0x377602('0x10')](respondWithResult(_0x18a8b5,null))['catch'](handleError(_0x18a8b5,null));},exports[_0x42e6ee('0x35')]=function(_0x708cc,_0x35572f){const _0x4ec434=_0x42e6ee;let _0x2839ea={};const _0x37069a={};let _0x5531f1,_0x2c86e4;return db['FreshdeskConfiguration'][_0x4ec434('0x22')]({'where':{'id':_0x708cc[_0x4ec434('0x19')]['id']}})[_0x4ec434('0x10')](handleEntityNotFound(_0x35572f,null))[_0x4ec434('0x10')](function(_0x5d54a5){const _0x27aace=_0x4ec434;if(_0x5d54a5)return _0x5531f1=_0x5d54a5,_0x37069a[_0x27aace('0xf')]=_[_0x27aace('0x2e')](db[_0x27aace('0x7')]['rawAttributes']),_0x37069a[_0x27aace('0x15')]=_['keys'](_0x708cc[_0x27aace('0x15')]),_0x37069a[_0x27aace('0x1f')]=_[_0x27aace('0x3a')](_0x37069a['model'],_0x37069a['query']),_0x2839ea[_0x27aace('0x2c')]=_['intersection'](_0x37069a[_0x27aace('0xf')],qs['fields'](_0x708cc[_0x27aace('0x15')][_0x27aace('0x26')])),_0x2839ea[_0x27aace('0x2c')]=_0x2839ea[_0x27aace('0x2c')][_0x27aace('0x16')]?_0x2839ea[_0x27aace('0x2c')]:_0x37069a['model'],_0x2839ea[_0x27aace('0x9')]=qs[_0x27aace('0x36')](_0x708cc[_0x27aace('0x15')]['sort']),_0x2839ea[_0x27aace('0x5')]=qs[_0x27aace('0x1f')](_[_0x27aace('0x14')](_0x708cc['query'],_0x37069a[_0x27aace('0x1f')])),_0x708cc[_0x27aace('0x15')][_0x27aace('0x34')]&&(_0x2839ea[_0x27aace('0x5')]=_[_0x27aace('0x24')](_0x2839ea['where'],{[Op['or']]:_[_0x27aace('0xa')](_0x2839ea[_0x27aace('0x2c')],function(_0x47e364){const _0x1f6ea0=_0x27aace,_0x57371c={};return _0x57371c[_0x47e364]={[Op[_0x1f6ea0('0x25')]]:'%'+_0x708cc[_0x1f6ea0('0x15')][_0x1f6ea0('0x34')]+'%'},_0x57371c;})})),_0x2839ea=_['merge']({},_0x2839ea,_0x708cc[_0x27aace('0x1')]),_0x5531f1[_0x27aace('0x35')](_0x2839ea);})[_0x4ec434('0x10')](function(_0x3abd5b){const _0x35cd9b=_0x4ec434;if(_0x3abd5b)return _0x2c86e4=_0x3abd5b[_0x35cd9b('0x16')],typeof _0x708cc['query'][_0x35cd9b('0xb')]==='undefined'&&(_0x2839ea[_0x35cd9b('0x32')]=qs['limit'](_0x708cc['query'][_0x35cd9b('0x32')]),_0x2839ea[_0x35cd9b('0x31')]=qs[_0x35cd9b('0x31')](_0x708cc[_0x35cd9b('0x15')]['offset'])),_0x5531f1['getTags'](_0x2839ea);})[_0x4ec434('0x10')](function(_0x2aa33d){if(_0x2aa33d)return _0x2aa33d?{'count':_0x2c86e4,'rows':_0x2aa33d}:null;})[_0x4ec434('0x10')](respondWithResult(_0x35572f,null))[_0x4ec434('0x30')](handleError(_0x35572f,null));},exports[_0x42e6ee('0x1a')]=function(_0x3e480d,_0x23fc93){const _0x240b3f=_0x42e6ee;return _0x3e480d[_0x240b3f('0x38')]['id']&&delete _0x3e480d['body']['id'],db[_0x240b3f('0x2b')][_0x240b3f('0x22')]({'where':{'id':_0x3e480d[_0x240b3f('0x19')]['id']}})['then'](handleEntityNotFound(_0x23fc93,null))[_0x240b3f('0x10')](function(_0x51231a){const _0x286c1c=_0x240b3f;if(_0x51231a)return _0x51231a[_0x286c1c('0x1a')](_0x3e480d[_0x286c1c('0x38')][_0x286c1c('0x27')]||[]);return null;})[_0x240b3f('0x10')](respondWithResult(_0x23fc93,null))[_0x240b3f('0x30')](handleError(_0x23fc93,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index 751f665..6b7ed32 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a261_0x4ea5=['./intFreshdeskConfiguration.attributes','exports','int_freshdesk_configurations','FreshdeskConfiguration'];(function(_0x1f7aa7,_0x4ea52e){const _0x277b45=function(_0x31db6b){while(--_0x31db6b){_0x1f7aa7['push'](_0x1f7aa7['shift']());}};_0x277b45(++_0x4ea52e);}(a261_0x4ea5,0xaf));const a261_0x277b=function(_0x1f7aa7,_0x4ea52e){_0x1f7aa7=_0x1f7aa7-0x0;let _0x277b45=a261_0x4ea5[_0x1f7aa7];return _0x277b45;};const _0x30c82c=a261_0x277b;'use strict';const attributes=require(_0x30c82c('0x1'));module[_0x30c82c('0x2')]=function(_0x31db6b){const _0x2daf11=_0x30c82c,_0x34db8d=_0x31db6b['define'](_0x2daf11('0x0'),attributes,{'tableName':_0x2daf11('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x34db8d;}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index 6224bbd..72ebdab 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a262_0x35ff=['destroy','/:id','exports','isAuthenticated','create','Router','delete','get','post','index','update','express','show'];(function(_0x11f2a5,_0x35ff10){const _0x24fe9a=function(_0xfbe701){while(--_0xfbe701){_0x11f2a5['push'](_0x11f2a5['shift']());}};_0x24fe9a(++_0x35ff10);}(a262_0x35ff,0x87));const a262_0x24fe=function(_0x11f2a5,_0x35ff10){_0x11f2a5=_0x11f2a5-0x0;let _0x24fe9a=a262_0x35ff[_0x11f2a5];return _0x24fe9a;};const _0x1bbb5e=a262_0x24fe;'use strict';const express=require(_0x1bbb5e('0x6')),router=express[_0x1bbb5e('0x0')](),auth=require('../../components/auth/service'),controller=require('./intFreshdeskField.controller');router[_0x1bbb5e('0x2')]('/',auth[_0x1bbb5e('0xb')](),controller[_0x1bbb5e('0x4')]),router['get']('/:id',auth[_0x1bbb5e('0xb')](),controller[_0x1bbb5e('0x7')]),router[_0x1bbb5e('0x3')]('/',auth[_0x1bbb5e('0xb')](),controller[_0x1bbb5e('0xc')]),router['put'](_0x1bbb5e('0x9'),auth[_0x1bbb5e('0xb')](),controller[_0x1bbb5e('0x5')]),router[_0x1bbb5e('0x1')](_0x1bbb5e('0x9'),auth[_0x1bbb5e('0xb')](),controller[_0x1bbb5e('0x8')]),module[_0x1bbb5e('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 9a6b5a7..187cc26 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a263_0x3d01=['sequelize','ENUM','keyValue','STRING','variable','exports','string','customVariable'];(function(_0x549515,_0x3d010a){const _0x440f98=function(_0x2395e3){while(--_0x2395e3){_0x549515['push'](_0x549515['shift']());}};_0x440f98(++_0x3d010a);}(a263_0x3d01,0x93));const a263_0x440f=function(_0x549515,_0x3d010a){_0x549515=_0x549515-0x0;let _0x440f98=a263_0x3d01[_0x549515];return _0x440f98;};const _0x59ea0d=a263_0x440f;'use strict';const Sequelize=require(_0x59ea0d('0x5'));module[_0x59ea0d('0x2')]={'type':{'type':Sequelize[_0x59ea0d('0x6')](_0x59ea0d('0x3'),_0x59ea0d('0x1'),_0x59ea0d('0x4'),_0x59ea0d('0x7')),'defaultValue':_0x59ea0d('0x3')},'content':{'type':Sequelize[_0x59ea0d('0x0')]},'key':{'type':Sequelize[_0x59ea0d('0x0')]},'keyType':{'type':Sequelize[_0x59ea0d('0x6')](_0x59ea0d('0x3'),_0x59ea0d('0x1'),_0x59ea0d('0x4'))},'keyContent':{'type':Sequelize[_0x59ea0d('0x0')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x59ea0d('0x0')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x59ea0d('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index dbd56ab..2a261e4 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a264_0x138b=['error','FreshdeskField','json','order','attributes','model','sendStatus','sort','../../components/parsers/qs','update','nolimit','query','options','pick','set','../../config/logger','create','limit','merge','index','rawAttributes','params','length','count','map','sequelize','catch','offset','keys','../../mysqldb','stack','findOne','name','where','end','destroy','show','filter','includeAll','VIRTUAL','lodash','rows','then','undefined','body','status','key','fields','send','type','fieldName','api','intersection','include','Content-Range','findAll','filters'];(function(_0x3776e9,_0x138b1a){const _0x321af0=function(_0x280823){while(--_0x280823){_0x3776e9['push'](_0x3776e9['shift']());}};_0x321af0(++_0x138b1a);}(a264_0x138b,0x151));const a264_0x321a=function(_0x3776e9,_0x138b1a){_0x3776e9=_0x3776e9-0x0;let _0x321af0=a264_0x138b[_0x3776e9];return _0x321af0;};const _0x49bbf0=a264_0x321a;'use strict';const _=require(_0x49bbf0('0x2d')),qs=require(_0x49bbf0('0xd')),logger=require(_0x49bbf0('0x14'))(_0x49bbf0('0x38')),db=require(_0x49bbf0('0x22'))['db'],{Op}=require(_0x49bbf0('0x1e'));function respondWithResult(_0x280823,_0x2ab073){return _0x2ab073=_0x2ab073||0xc8,function(_0x5c78b2){const _0x3af9bd=a264_0x321a;if(_0x5c78b2)return _0x280823[_0x3af9bd('0x32')](_0x2ab073)[_0x3af9bd('0x7')](_0x5c78b2);};}function respondWithFilteredResult(_0x144503,_0x4173d0){return function(_0x44f3ae){const _0x165add=a264_0x321a;if(_0x44f3ae){const _0xb1920=_0x44f3ae[_0x165add('0x1c')],_0x1edf92=_0x4173d0['offset'];let _0x442aff=_0x4173d0[_0x165add('0x20')]+_0x4173d0[_0x165add('0x16')],_0x197d6f;return _0x442aff>=_0xb1920?(_0x442aff=_0xb1920,_0x197d6f=0xc8):_0x197d6f=0xce,_0x144503['status'](_0x197d6f),_0x144503[_0x165add('0x13')](_0x165add('0x2'),_0x1edf92+'-'+_0x442aff+'/'+_0xb1920)[_0x165add('0x7')](_0x44f3ae);}return null;};}function saveUpdates(_0x41a4b8){return function(_0x3f00ed){const _0x47ed87=a264_0x321a;if(_0x3f00ed)return _0x3f00ed[_0x47ed87('0xe')](_0x41a4b8)[_0x47ed87('0x2f')](function(_0x2cb5b1){return _0x2cb5b1;});return null;};}function removeEntity(_0x37ef41){return function(_0x2e159f){const _0x38e1b4=a264_0x321a;if(_0x2e159f)return _0x2e159f['destroy']()[_0x38e1b4('0x2f')](function(){const _0x27c1c7=_0x38e1b4;_0x37ef41['status'](0xcc)[_0x27c1c7('0x27')]();});};}function handleEntityNotFound(_0x652165){return function(_0x5003d1){const _0x10283a=a264_0x321a;return!_0x5003d1&&_0x652165[_0x10283a('0xb')](0x194),_0x5003d1;};}function handleError(_0x49d069,_0x571b30){return _0x571b30=_0x571b30||0x1f4,function(_0x109788){const _0x15551f=a264_0x321a;logger[_0x15551f('0x5')](_0x109788[_0x15551f('0x23')]),_0x109788[_0x15551f('0x25')]&&delete _0x109788[_0x15551f('0x25')],_0x49d069['status'](_0x571b30)[_0x15551f('0x35')](_0x109788);};}exports[_0x49bbf0('0x18')]=function(_0x3002cf,_0x18ae79){const _0x5e4c20=_0x49bbf0;let _0x5de01c={};const _0x164968={},_0x37e306={'count':0x0,'rows':[]},_0x154ed6=_[_0x5e4c20('0x1d')](db[_0x5e4c20('0x6')]['rawAttributes'],function(_0x4d6bb3){const _0x471111=_0x5e4c20;return{'name':_0x4d6bb3[_0x471111('0x37')],'type':_0x4d6bb3[_0x471111('0x36')][_0x471111('0x33')]};});_0x164968[_0x5e4c20('0xa')]=_[_0x5e4c20('0x1d')](_0x154ed6,_0x5e4c20('0x25')),_0x164968[_0x5e4c20('0x10')]=_[_0x5e4c20('0x21')](_0x3002cf[_0x5e4c20('0x10')]),_0x164968[_0x5e4c20('0x4')]=_['intersection'](_0x164968[_0x5e4c20('0xa')],_0x164968['query']),_0x5de01c[_0x5e4c20('0x9')]=_[_0x5e4c20('0x0')](_0x164968[_0x5e4c20('0xa')],qs[_0x5e4c20('0x34')](_0x3002cf[_0x5e4c20('0x10')][_0x5e4c20('0x34')])),_0x5de01c[_0x5e4c20('0x9')]=_0x5de01c[_0x5e4c20('0x9')]['length']?_0x5de01c[_0x5e4c20('0x9')]:_0x164968[_0x5e4c20('0xa')];typeof _0x3002cf[_0x5e4c20('0x10')][_0x5e4c20('0xf')]===_0x5e4c20('0x30')&&(_0x5de01c[_0x5e4c20('0x16')]=qs[_0x5e4c20('0x16')](_0x3002cf[_0x5e4c20('0x10')]['limit']),_0x5de01c[_0x5e4c20('0x20')]=qs[_0x5e4c20('0x20')](_0x3002cf[_0x5e4c20('0x10')][_0x5e4c20('0x20')]));_0x5de01c[_0x5e4c20('0x8')]=qs[_0x5e4c20('0xc')](_0x3002cf[_0x5e4c20('0x10')]['sort']),_0x5de01c[_0x5e4c20('0x26')]=qs[_0x5e4c20('0x4')](_[_0x5e4c20('0x12')](_0x3002cf['query'],_0x164968['filters']),_0x154ed6);_0x3002cf[_0x5e4c20('0x10')][_0x5e4c20('0x2a')]&&(_0x5de01c[_0x5e4c20('0x26')]=_[_0x5e4c20('0x17')](_0x5de01c['where'],{[Op['or']]:_[_0x5e4c20('0x1d')](_0x154ed6,function(_0x23f73a){const _0x284ec5=_0x5e4c20;if(_0x23f73a[_0x284ec5('0x36')]!==_0x284ec5('0x2c')){const _0x42fd73={};return _0x42fd73[_0x23f73a[_0x284ec5('0x25')]]={[Op['like']]:'%'+_0x3002cf['query'][_0x284ec5('0x2a')]+'%'},_0x42fd73;}})}));_0x5de01c=_[_0x5e4c20('0x17')]({},_0x5de01c,_0x3002cf['options']);const _0x7698ca={'where':_0x5de01c[_0x5e4c20('0x26')]};return db[_0x5e4c20('0x6')][_0x5e4c20('0x1c')](_0x7698ca)['then'](function(_0x55170b){const _0x499c00=_0x5e4c20;return _0x37e306['count']=_0x55170b,_0x3002cf[_0x499c00('0x10')][_0x499c00('0x2b')]&&(_0x5de01c[_0x499c00('0x1')]=[{'all':!![]}]),db['FreshdeskField'][_0x499c00('0x3')](_0x5de01c);})['then'](function(_0xf4b089){const _0x59c35f=_0x5e4c20;return _0x37e306[_0x59c35f('0x2e')]=_0xf4b089,_0x37e306;})[_0x5e4c20('0x2f')](respondWithFilteredResult(_0x18ae79,_0x5de01c))[_0x5e4c20('0x1f')](handleError(_0x18ae79,null));},exports[_0x49bbf0('0x29')]=function(_0x2c6a65,_0x16b8c9){const _0x405bd4=_0x49bbf0;let _0x4c8507={'raw':!![],'where':{'id':_0x2c6a65[_0x405bd4('0x1a')]['id']}};const _0x1e6faf={};return _0x1e6faf[_0x405bd4('0xa')]=_[_0x405bd4('0x21')](db[_0x405bd4('0x6')][_0x405bd4('0x19')]),_0x1e6faf['query']=_[_0x405bd4('0x21')](_0x2c6a65[_0x405bd4('0x10')]),_0x1e6faf[_0x405bd4('0x4')]=_['intersection'](_0x1e6faf[_0x405bd4('0xa')],_0x1e6faf[_0x405bd4('0x10')]),_0x4c8507[_0x405bd4('0x9')]=_[_0x405bd4('0x0')](_0x1e6faf['model'],qs['fields'](_0x2c6a65['query'][_0x405bd4('0x34')])),_0x4c8507[_0x405bd4('0x9')]=_0x4c8507[_0x405bd4('0x9')][_0x405bd4('0x1b')]?_0x4c8507[_0x405bd4('0x9')]:_0x1e6faf[_0x405bd4('0xa')],_0x2c6a65[_0x405bd4('0x10')]['includeAll']&&(_0x4c8507[_0x405bd4('0x1')]=[{'all':!![]}]),_0x4c8507=_[_0x405bd4('0x17')]({},_0x4c8507,_0x2c6a65[_0x405bd4('0x11')]),db['FreshdeskField']['findOne'](_0x4c8507)[_0x405bd4('0x2f')](handleEntityNotFound(_0x16b8c9,null))['then'](respondWithResult(_0x16b8c9,null))[_0x405bd4('0x1f')](handleError(_0x16b8c9,null));},exports[_0x49bbf0('0x15')]=function(_0x3b4860,_0x37bc73){const _0x3dce30=_0x49bbf0;return db[_0x3dce30('0x6')][_0x3dce30('0x15')](_0x3b4860[_0x3dce30('0x31')],{})[_0x3dce30('0x2f')](respondWithResult(_0x37bc73,0xc9))['catch'](handleError(_0x37bc73,null));},exports['update']=function(_0x381603,_0x1ea33b){const _0x4790e6=_0x49bbf0;return _0x381603[_0x4790e6('0x31')]['id']&&delete _0x381603['body']['id'],db[_0x4790e6('0x6')]['findOne']({'where':{'id':_0x381603['params']['id']}})[_0x4790e6('0x2f')](handleEntityNotFound(_0x1ea33b,null))[_0x4790e6('0x2f')](saveUpdates(_0x381603['body'],null))['then'](respondWithResult(_0x1ea33b,null))['catch'](handleError(_0x1ea33b,null));},exports[_0x49bbf0('0x28')]=function(_0x41ca90,_0x1fffee){const _0x20efc1=_0x49bbf0;return db['FreshdeskField'][_0x20efc1('0x24')]({'where':{'id':_0x41ca90[_0x20efc1('0x1a')]['id']}})['then'](handleEntityNotFound(_0x1fffee,null))['then'](removeEntity(_0x1fffee,null))['catch'](handleError(_0x1fffee,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index e806e6f..d097112 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a265_0x2298=['FreshdeskField','./intFreshdeskField.attributes','idField','freshdesk_unique_index','FieldId'];(function(_0x5a104c,_0x2298a6){const _0x291f82=function(_0xec8edf){while(--_0xec8edf){_0x5a104c['push'](_0x5a104c['shift']());}};_0x291f82(++_0x2298a6);}(a265_0x2298,0x96));const a265_0x291f=function(_0x5a104c,_0x2298a6){_0x5a104c=_0x5a104c-0x0;let _0x291f82=a265_0x2298[_0x5a104c];return _0x291f82;};const _0x5e2ba4=a265_0x291f;'use strict';const attributes=require(_0x5e2ba4('0x1'));module['exports']=function(_0xec8edf){const _0x25454f=_0x5e2ba4,_0x4c1dad=_0xec8edf['define'](_0x25454f('0x0'),attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0x25454f('0x3'),'fields':[_0x25454f('0x2'),_0x25454f('0x4')],'unique':!![]}],'timestamps':!![]});return _0x4c1dad;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index 81bb194..03fc992 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a266_0x28f3=['/:id/configurations','getFields','update','/:id','put','show','isAuthenticated','delete','exports','post','get','express','Router','./intFreshsalesAccount.controller','create','addConfiguration','/:id/fields','index','destroy','../../components/auth/service'];(function(_0x44d0f6,_0x28f389){const _0x2607a1=function(_0x2eb67a){while(--_0x2eb67a){_0x44d0f6['push'](_0x44d0f6['shift']());}};_0x2607a1(++_0x28f389);}(a266_0x28f3,0x109));const a266_0x2607=function(_0x44d0f6,_0x28f389){_0x44d0f6=_0x44d0f6-0x0;let _0x2607a1=a266_0x28f3[_0x44d0f6];return _0x2607a1;};const _0x58ac0b=a266_0x2607;'use strict';const express=require(_0x58ac0b('0x6')),router=express[_0x58ac0b('0x7')](),auth=require(_0x58ac0b('0xe')),controller=require(_0x58ac0b('0x8'));router['get']('/',auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0xc')]),router[_0x58ac0b('0x5')](_0x58ac0b('0x12'),auth['isAuthenticated'](),controller[_0x58ac0b('0x0')]),router[_0x58ac0b('0x5')](_0x58ac0b('0xf'),auth[_0x58ac0b('0x1')](),controller['getConfigurations']),router['get'](_0x58ac0b('0xb'),auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0x10')]),router[_0x58ac0b('0x4')]('/',auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0x9')]),router[_0x58ac0b('0x4')](_0x58ac0b('0xf'),auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0xa')]),router[_0x58ac0b('0x13')](_0x58ac0b('0x12'),auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0x11')]),router[_0x58ac0b('0x2')](_0x58ac0b('0x12'),auth[_0x58ac0b('0x1')](),controller[_0x58ac0b('0xd')]),module[_0x58ac0b('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js index 824ede7..92631ce 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a267_0x3bbc=['exports','remoteUri','sequelize','STRING'];(function(_0x33527a,_0x3bbc95){const _0x18df66=function(_0x1c03cd){while(--_0x1c03cd){_0x33527a['push'](_0x33527a['shift']());}};_0x18df66(++_0x3bbc95);}(a267_0x3bbc,0x12d));const a267_0x18df=function(_0x33527a,_0x3bbc95){_0x33527a=_0x33527a-0x0;let _0x18df66=a267_0x3bbc[_0x33527a];return _0x18df66;};const _0x2b004f=a267_0x18df;'use strict';const Sequelize=require(_0x2b004f('0x1'));module[_0x2b004f('0x3')]={'name':{'type':Sequelize[_0x2b004f('0x2')]},'description':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0x2b004f('0x2')],'unique':'username'},'apiKey':{'type':Sequelize[_0x2b004f('0x2')]},'remoteUri':{'type':Sequelize[_0x2b004f('0x2')],'unique':_0x2b004f('0x0')},'serverUrl':{'type':Sequelize[_0x2b004f('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index ccda603..1437e6e 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a268_0x1261=['getConfigurations','Descriptions','query','body','../../mysqldb','Token\x20token=','rows','../../components/parsers/qs','update','filters','util','keys','status','AccountId','VIRTUAL','../../config/logger','getFields,\x20%s,\x20%s,\x20%s','params','limit','remoteUri','like','then','channel','fieldName','%s%s','count','addConfiguration','lastIndexOf','show','findOne','includeAll','pick','Content-Range','users','offset','substring','Subjects','model','sendStatus','catch','fields','attributes','email','FreshsalesAccount','filter','map','Wrong\x20credentials','undefined','create','Requested\x20Resource\x20not\x20Found','error','stack','order','type','format','apiKey','getDescriptions','test','json','include','length','request-promise-native','key','rawAttributes','getFields','options','nolimit','sequelize','intersection','FreshsalesField','statusCode','where','FreshsalesConfiguration','name','username','merge','slice','stringify','sort'];(function(_0xdb2730,_0x1261dc){const _0x108d9d=function(_0x31d707){while(--_0x31d707){_0xdb2730['push'](_0xdb2730['shift']());}};_0x108d9d(++_0x1261dc);}(a268_0x1261,0x159));const a268_0x108d=function(_0xdb2730,_0x1261dc){_0xdb2730=_0xdb2730-0x0;let _0x108d9d=a268_0x1261[_0xdb2730];return _0x108d9d;};const _0x94871a=a268_0x108d;'use strict';const rp=require(_0x94871a('0x20')),util=require(_0x94871a('0x3c')),_=require('lodash'),qs=require(_0x94871a('0x39')),logger=require(_0x94871a('0x41'))('api'),db=require(_0x94871a('0x36'))['db'],{Op}=require(_0x94871a('0x26')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x31d707,_0x314ed0){return _0x314ed0=_0x314ed0||0xc8,function(_0x16dedd){const _0x184ed6=a268_0x108d;if(_0x16dedd)return _0x31d707[_0x184ed6('0x3e')](_0x314ed0)['json'](_0x16dedd);};}function respondWithFilteredResult(_0x304469,_0x3e74f8){return function(_0x31dce0){const _0x52246b=a268_0x108d;if(_0x31dce0){const _0x465a2d=_0x31dce0[_0x52246b('0x4b')],_0x193f4e=_0x3e74f8['offset'];let _0x3fe62c=_0x3e74f8[_0x52246b('0x5')]+_0x3e74f8[_0x52246b('0x44')],_0x36b791;return _0x3fe62c>=_0x465a2d?(_0x3fe62c=_0x465a2d,_0x36b791=0xc8):_0x36b791=0xce,_0x304469['status'](_0x36b791),_0x304469['set'](_0x52246b('0x3'),_0x193f4e+'-'+_0x3fe62c+'/'+_0x465a2d)[_0x52246b('0x1d')](_0x31dce0);}return null;};}function saveUpdates(_0x1e8764){return function(_0x222afc){const _0x45cae3=a268_0x108d;if(_0x222afc)return _0x222afc[_0x45cae3('0x3a')](_0x1e8764)[_0x45cae3('0x47')](function(_0x1819e5){return _0x1819e5;});return null;};}function removeEntity(_0x269952){return function(_0x2b2184){if(_0x2b2184)return _0x2b2184['destroy']()['then'](function(){const _0x2512aa=a268_0x108d;_0x269952[_0x2512aa('0x3e')](0xcc)['end']();});};}function handleEntityNotFound(_0x289c53){return function(_0xb71358){const _0x3dec5f=a268_0x108d;return!_0xb71358&&_0x289c53[_0x3dec5f('0x9')](0x194),_0xb71358;};}function handleError(_0x1e9248,_0x5865a4){return _0x5865a4=_0x5865a4||0x1f4,function(_0x66b2bf){const _0x3df140=a268_0x108d;logger[_0x3df140('0x15')](_0x66b2bf[_0x3df140('0x16')]),_0x66b2bf[_0x3df140('0x2c')]&&delete _0x66b2bf[_0x3df140('0x2c')],_0x1e9248[_0x3df140('0x3e')](_0x5865a4)['send'](_0x66b2bf);};}exports['index']=function(_0x3a26bc,_0xb25e41){const _0x1bf952=_0x94871a;let _0x478fc1={};const _0x1a0c64={},_0xd4d47f={'count':0x0,'rows':[]},_0x46bc8b=_[_0x1bf952('0x10')](db[_0x1bf952('0xe')][_0x1bf952('0x22')],function(_0x30d2a8){const _0x57665a=_0x1bf952;return{'name':_0x30d2a8[_0x57665a('0x49')],'type':_0x30d2a8['type'][_0x57665a('0x21')]};});_0x1a0c64[_0x1bf952('0x8')]=_[_0x1bf952('0x10')](_0x46bc8b,'name'),_0x1a0c64[_0x1bf952('0x34')]=_[_0x1bf952('0x3d')](_0x3a26bc['query']),_0x1a0c64[_0x1bf952('0x3b')]=_['intersection'](_0x1a0c64[_0x1bf952('0x8')],_0x1a0c64['query']),_0x478fc1[_0x1bf952('0xc')]=_[_0x1bf952('0x27')](_0x1a0c64[_0x1bf952('0x8')],qs[_0x1bf952('0xb')](_0x3a26bc[_0x1bf952('0x34')]['fields'])),_0x478fc1['attributes']=_0x478fc1['attributes'][_0x1bf952('0x1f')]?_0x478fc1['attributes']:_0x1a0c64[_0x1bf952('0x8')];typeof _0x3a26bc['query'][_0x1bf952('0x25')]===_0x1bf952('0x12')&&(_0x478fc1[_0x1bf952('0x44')]=qs[_0x1bf952('0x44')](_0x3a26bc[_0x1bf952('0x34')][_0x1bf952('0x44')]),_0x478fc1[_0x1bf952('0x5')]=qs[_0x1bf952('0x5')](_0x3a26bc[_0x1bf952('0x34')][_0x1bf952('0x5')]));_0x478fc1['order']=qs['sort'](_0x3a26bc['query'][_0x1bf952('0x31')]),_0x478fc1[_0x1bf952('0x2a')]=qs[_0x1bf952('0x3b')](_[_0x1bf952('0x2')](_0x3a26bc[_0x1bf952('0x34')],_0x1a0c64[_0x1bf952('0x3b')]),_0x46bc8b);_0x3a26bc['query'][_0x1bf952('0xf')]&&(_0x478fc1[_0x1bf952('0x2a')]=_[_0x1bf952('0x2e')](_0x478fc1[_0x1bf952('0x2a')],{[Op['or']]:_[_0x1bf952('0x10')](_0x46bc8b,function(_0x5c76e9){const _0x281d7c=_0x1bf952;if(_0x5c76e9['type']!==_0x281d7c('0x40')){const _0x42436f={};return _0x42436f[_0x5c76e9['name']]={[Op['like']]:'%'+_0x3a26bc[_0x281d7c('0x34')][_0x281d7c('0xf')]+'%'},_0x42436f;}})}));_0x478fc1=_['merge']({},_0x478fc1,_0x3a26bc[_0x1bf952('0x24')]);const _0x9cb7be={'where':_0x478fc1['where']};return db[_0x1bf952('0xe')][_0x1bf952('0x4b')](_0x9cb7be)['then'](function(_0x2fed3b){const _0x53e4a1=_0x1bf952;return _0xd4d47f[_0x53e4a1('0x4b')]=_0x2fed3b,_0x3a26bc[_0x53e4a1('0x34')][_0x53e4a1('0x1')]&&(_0x478fc1[_0x53e4a1('0x1e')]=[{'all':!![]}]),db[_0x53e4a1('0xe')]['findAll'](_0x478fc1);})[_0x1bf952('0x47')](function(_0x32ad79){const _0x2a711b=_0x1bf952;return _0xd4d47f[_0x2a711b('0x38')]=_0x32ad79,_0xd4d47f;})['then'](respondWithFilteredResult(_0xb25e41,_0x478fc1))[_0x1bf952('0xa')](handleError(_0xb25e41,null));},exports[_0x94871a('0x4e')]=function(_0x4013f4,_0x46a88a){const _0x2c0f8a=_0x94871a;let _0x120978={'raw':![],'where':{'id':_0x4013f4[_0x2c0f8a('0x43')]['id']}};const _0x4c2fc8={};return _0x4c2fc8[_0x2c0f8a('0x8')]=_[_0x2c0f8a('0x3d')](db[_0x2c0f8a('0xe')]['rawAttributes']),_0x4c2fc8['query']=_['keys'](_0x4013f4[_0x2c0f8a('0x34')]),_0x4c2fc8[_0x2c0f8a('0x3b')]=_[_0x2c0f8a('0x27')](_0x4c2fc8['model'],_0x4c2fc8[_0x2c0f8a('0x34')]),_0x120978[_0x2c0f8a('0xc')]=_[_0x2c0f8a('0x27')](_0x4c2fc8[_0x2c0f8a('0x8')],qs['fields'](_0x4013f4[_0x2c0f8a('0x34')][_0x2c0f8a('0xb')])),_0x120978[_0x2c0f8a('0xc')]=_0x120978['attributes']['length']?_0x120978[_0x2c0f8a('0xc')]:_0x4c2fc8['model'],_0x4013f4[_0x2c0f8a('0x34')][_0x2c0f8a('0x1')]&&(_0x120978['include']=[{'all':!![]}]),_0x120978=_[_0x2c0f8a('0x2e')]({},_0x120978,_0x4013f4[_0x2c0f8a('0x24')]),db[_0x2c0f8a('0xe')][_0x2c0f8a('0x0')](_0x120978)[_0x2c0f8a('0x47')](handleEntityNotFound(_0x46a88a,null))[_0x2c0f8a('0x47')](respondWithResult(_0x46a88a,null))[_0x2c0f8a('0xa')](handleError(_0x46a88a,null));},exports[_0x94871a('0x13')]=function(_0x39e49c,_0x59e56b){const _0x5e876a=_0x94871a;return db[_0x5e876a('0xe')]['create'](_0x39e49c[_0x5e876a('0x35')],{})['then'](respondWithResult(_0x59e56b,0xc9))[_0x5e876a('0xa')](handleError(_0x59e56b,null));},exports['update']=function(_0x343df3,_0x119f7f){const _0x3c793d=_0x94871a;return _0x343df3[_0x3c793d('0x35')]['id']&&delete _0x343df3[_0x3c793d('0x35')]['id'],db[_0x3c793d('0xe')][_0x3c793d('0x0')]({'where':{'id':_0x343df3[_0x3c793d('0x43')]['id']}})[_0x3c793d('0x47')](handleEntityNotFound(_0x119f7f,null))[_0x3c793d('0x47')](saveUpdates(_0x343df3[_0x3c793d('0x35')],null))[_0x3c793d('0x47')](respondWithResult(_0x119f7f,null))[_0x3c793d('0xa')](handleError(_0x119f7f,null));},exports['destroy']=function(_0xe024,_0x18d4b7){const _0x620bd1=_0x94871a;return db[_0x620bd1('0xe')][_0x620bd1('0x0')]({'where':{'id':_0xe024[_0x620bd1('0x43')]['id']}})[_0x620bd1('0x47')](handleEntityNotFound(_0x18d4b7,null))[_0x620bd1('0x47')](removeEntity(_0x18d4b7,null))['catch'](handleError(_0x18d4b7,null));},exports[_0x94871a('0x32')]=function(_0xc37c07,_0x18c818){const _0x4c7a9d=_0x94871a;let _0x5370c7={};const _0x28233c={};let _0x7f0e1c,_0x6e01f7;return db[_0x4c7a9d('0xe')][_0x4c7a9d('0x0')]({'where':{'id':_0xc37c07[_0x4c7a9d('0x43')]['id']}})[_0x4c7a9d('0x47')](handleEntityNotFound(_0x18c818,null))[_0x4c7a9d('0x47')](function(_0x2c15b0){const _0x7b9dea=_0x4c7a9d;if(_0x2c15b0)return _0x7f0e1c=_0x2c15b0,_0x28233c[_0x7b9dea('0x8')]=_[_0x7b9dea('0x3d')](db[_0x7b9dea('0x2b')][_0x7b9dea('0x22')]),_0x28233c[_0x7b9dea('0x34')]=_[_0x7b9dea('0x3d')](_0xc37c07[_0x7b9dea('0x34')]),_0x28233c[_0x7b9dea('0x3b')]=_[_0x7b9dea('0x27')](_0x28233c[_0x7b9dea('0x8')],_0x28233c[_0x7b9dea('0x34')]),_0x5370c7[_0x7b9dea('0xc')]=_[_0x7b9dea('0x27')](_0x28233c['model'],qs[_0x7b9dea('0xb')](_0xc37c07[_0x7b9dea('0x34')][_0x7b9dea('0xb')])),_0x5370c7[_0x7b9dea('0xc')]=_0x5370c7[_0x7b9dea('0xc')][_0x7b9dea('0x1f')]?_0x5370c7[_0x7b9dea('0xc')]:_0x28233c['model'],_0x5370c7[_0x7b9dea('0x17')]=qs[_0x7b9dea('0x31')](_0xc37c07[_0x7b9dea('0x34')][_0x7b9dea('0x31')]),_0x5370c7['where']=qs[_0x7b9dea('0x3b')](_[_0x7b9dea('0x2')](_0xc37c07[_0x7b9dea('0x34')],_0x28233c[_0x7b9dea('0x3b')])),_0xc37c07['query']['filter']&&(_0x5370c7[_0x7b9dea('0x2a')]=_[_0x7b9dea('0x2e')](_0x5370c7['where'],{[Op['or']]:_[_0x7b9dea('0x10')](_0x5370c7[_0x7b9dea('0xc')],function(_0x47cfee){const _0x2be757=_0x7b9dea,_0x43e4f3={};return _0x43e4f3[_0x47cfee]={[Op[_0x2be757('0x46')]]:'%'+_0xc37c07[_0x2be757('0x34')][_0x2be757('0xf')]+'%'},_0x43e4f3;})})),_0x5370c7=_[_0x7b9dea('0x2e')]({},_0x5370c7,_0xc37c07[_0x7b9dea('0x24')]),_0x7f0e1c[_0x7b9dea('0x32')](_0x5370c7);})[_0x4c7a9d('0x47')](function(_0xb7e5df){const _0x15dc6a=_0x4c7a9d;if(_0xb7e5df)return _0x6e01f7=_0xb7e5df[_0x15dc6a('0x1f')],typeof _0xc37c07[_0x15dc6a('0x34')]['nolimit']==='undefined'&&(_0x5370c7[_0x15dc6a('0x44')]=qs[_0x15dc6a('0x44')](_0xc37c07['query']['limit']),_0x5370c7[_0x15dc6a('0x5')]=qs['offset'](_0xc37c07[_0x15dc6a('0x34')][_0x15dc6a('0x5')])),_0x7f0e1c[_0x15dc6a('0x32')](_0x5370c7);})['then'](function(_0x2b1636){if(_0x2b1636)return _0x2b1636?{'count':_0x6e01f7,'rows':_0x2b1636}:null;})[_0x4c7a9d('0x47')](respondWithResult(_0x18c818,null))['catch'](handleError(_0x18c818,null));},exports[_0x94871a('0x4c')]=function(_0x1d1733,_0x5e39ae){const _0x555522=_0x94871a;return _0x1d1733[_0x555522('0x35')]['id']&&delete _0x1d1733['body']['id'],db[_0x555522('0xe')][_0x555522('0x0')]({'where':{'id':_0x1d1733[_0x555522('0x43')]['id']}})[_0x555522('0x47')](handleEntityNotFound(_0x5e39ae,null))[_0x555522('0x47')](function(_0x495e73){const _0xec51fe=_0x555522;if(_0x495e73)return _0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x3f')]=_0x495e73['id'],_0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x7')]=integrations['getSubjects'](_0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x48')],_0x1d1733['body'][_0xec51fe('0x18')]),_0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x33')]=integrations[_0xec51fe('0x1b')](_0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x48')],_0x1d1733[_0xec51fe('0x35')][_0xec51fe('0x18')]),db[_0xec51fe('0x2b')]['create'](_0x1d1733[_0xec51fe('0x35')],{'include':[{'model':db[_0xec51fe('0x28')],'as':_0xec51fe('0x7')},{'model':db[_0xec51fe('0x28')],'as':_0xec51fe('0x33')}]});return null;})['then'](respondWithResult(_0x5e39ae,null))['catch'](handleError(_0x5e39ae,null));},exports[_0x94871a('0x23')]=function(_0xf0b353,_0x31ab5e){const _0x1f8621=_0x94871a;let _0x1ea4dd='',_0x2a3cd5='';return db[_0x1f8621('0xe')][_0x1f8621('0x0')]({'where':{'id':_0xf0b353['params']['id']},'attributes':['id',_0x1f8621('0x2d'),_0x1f8621('0x45'),_0x1f8621('0x1a')]})[_0x1f8621('0x47')](handleEntityNotFound(_0x31ab5e,null))[_0x1f8621('0x47')](function(_0x27b262){const _0x420cb5=_0x1f8621;if(_0x27b262){_0x2a3cd5=_0x27b262['username'],_0x1ea4dd=_0x27b262[_0x420cb5('0x45')];const _0x30a1b7=_0x27b262[_0x420cb5('0x45')][_0x420cb5('0x2f')](-0x1);return _0x30a1b7==='/'&&(_0x1ea4dd=_0x1ea4dd[_0x420cb5('0x6')](0x0,_0x1ea4dd[_0x420cb5('0x4d')](_0x30a1b7))),rp({'method':'GET','uri':util[_0x420cb5('0x19')](_0x420cb5('0x4a'),_0x1ea4dd,'/api/selector/owners'),'headers':{'Authorization':_0x420cb5('0x37')+_0x27b262[_0x420cb5('0x1a')]},'json':!![]});}})['then'](function(_0x362dc4){const _0x188dd2=_0x1f8621;if(_0x362dc4){const _0x53cdc5=_0x362dc4[_0x188dd2('0x4')];let _0x453c24=![],_0x39beea=null;for(_0x39beea=0x0;_0x39beea<_0x53cdc5['length'];_0x39beea++){_0x53cdc5[_0x39beea][_0x188dd2('0xd')]===_0x2a3cd5&&(_0x453c24=!![]);}if(_0x453c24)return!![];else throw new Error({'statusCode':0x194,'message':_0x188dd2('0x14')});}})['then'](respondWithResult(_0x31ab5e,null))[_0x1f8621('0xa')](function(_0x185367){const _0x1c7887=_0x1f8621;let _0x56b7cd=_0xf0b353[_0x1c7887('0x34')][_0x1c7887('0x1c')]?0x1f4:_0x185367[_0x1c7887('0x29')]||0x1f4;logger[_0x1c7887('0x15')](_0x1c7887('0x42'),'getFields',_0x56b7cd,JSON[_0x1c7887('0x30')](_0x185367)),delete _0x185367[_0x1c7887('0x2c')],_0x56b7cd===0x191&&(_0x56b7cd=0x190),_0x31ab5e[_0x1c7887('0x3e')](_0x56b7cd)['send'](_0xf0b353['query'][_0x1c7887('0x1c')]?{'message':_0x1c7887('0x11'),'statusCode':_0x185367[_0x1c7887('0x29')]}:_0x185367);});}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index 03b169f..7ae4d26 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a269_0x36a9=['./intFreshsalesAccount.attributes','int_freshsales_accounts','define'];(function(_0xb8bd88,_0x36a9e5){const _0x46bdc6=function(_0x34020d){while(--_0x34020d){_0xb8bd88['push'](_0xb8bd88['shift']());}};_0x46bdc6(++_0x36a9e5);}(a269_0x36a9,0x93));const a269_0x46bd=function(_0xb8bd88,_0x36a9e5){_0xb8bd88=_0xb8bd88-0x0;let _0x46bdc6=a269_0x36a9[_0xb8bd88];return _0x46bdc6;};const _0x50e966=a269_0x46bd;'use strict';const attributes=require(_0x50e966('0x0'));module['exports']=function(_0x34020d){const _0x1562d4=_0x50e966,_0x422e58=_0x34020d[_0x1562d4('0x2')]('FreshsalesAccount',attributes,{'tableName':_0x1562d4('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x422e58;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 75118ef..393c650 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a270_0x41cd=['catch','GetFreshsalesAccount','error','FreshsalesAccount','rpc','attributes','message','then','raw','lodash','map','include','debug','info','options','limit','ShowFreshsalesAccount','../../config/logger','model','findAll','stringify','../../mysqldb'];(function(_0x301c1e,_0x41cdd7){const _0x89b3f1=function(_0x2b4e3d){while(--_0x2b4e3d){_0x301c1e['push'](_0x301c1e['shift']());}};_0x89b3f1(++_0x41cdd7);}(a270_0x41cd,0xcc));const a270_0x89b3=function(_0x301c1e,_0x41cdd7){_0x301c1e=_0x301c1e-0x0;let _0x89b3f1=a270_0x41cd[_0x301c1e];return _0x89b3f1;};const _0x3477c5=a270_0x89b3;'use strict';const _=require(_0x3477c5('0x3')),db=require(_0x3477c5('0xf'))['db'],logger=require(_0x3477c5('0xb'))(_0x3477c5('0x14'));exports[_0x3477c5('0x11')]=function(_0x2b4e3d){const _0x401f72=this;return new Promise(function(_0x1b8c5f,_0x42939d){const _0x264656=a270_0x89b3;return db[_0x264656('0x13')][_0x264656('0xd')]({'raw':_0x2b4e3d[_0x264656('0x8')]?_0x2b4e3d[_0x264656('0x8')][_0x264656('0x2')]===undefined?!![]:![]:!![],'where':_0x2b4e3d[_0x264656('0x8')]?_0x2b4e3d[_0x264656('0x8')]['where']||null:null,'attributes':_0x2b4e3d[_0x264656('0x8')]?_0x2b4e3d[_0x264656('0x8')]['attributes']||null:null,'limit':_0x2b4e3d[_0x264656('0x8')]?_0x2b4e3d[_0x264656('0x8')][_0x264656('0x9')]||null:null,'include':_0x2b4e3d['options']?_0x2b4e3d[_0x264656('0x8')][_0x264656('0x5')]?_[_0x264656('0x4')](_0x2b4e3d[_0x264656('0x8')][_0x264656('0x5')],function(_0x3969d7){const _0x5bf3ab=_0x264656;return{'model':db[_0x3969d7['model']],'as':_0x3969d7['as'],'attributes':_0x3969d7[_0x5bf3ab('0x15')],'include':_0x3969d7['include']?_[_0x5bf3ab('0x4')](_0x3969d7[_0x5bf3ab('0x5')],function(_0x1af5d1){const _0x4a3366=_0x5bf3ab;return{'model':db[_0x1af5d1['model']],'as':_0x1af5d1['as'],'attributes':_0x1af5d1[_0x4a3366('0x15')],'include':_0x1af5d1[_0x4a3366('0x5')]?_[_0x4a3366('0x4')](_0x1af5d1[_0x4a3366('0x5')],function(_0x4955d1){const _0x4f3df7=_0x4a3366;return{'model':db[_0x4955d1['model']],'as':_0x4955d1['as'],'attributes':_0x4955d1[_0x4f3df7('0x15')]};}):[]};}):[]};}):[]:[]})[_0x264656('0x1')](function(_0x106f36){const _0x49c3f3=_0x264656;logger[_0x49c3f3('0x7')](_0x49c3f3('0x11'),_0x2b4e3d),logger['debug'](_0x49c3f3('0x11'),_0x2b4e3d,JSON[_0x49c3f3('0xe')](_0x106f36)),_0x1b8c5f(_0x106f36);})['catch'](function(_0x2252d4){const _0x218b5c=_0x264656;logger['error'](_0x218b5c('0x11'),_0x2252d4['message'],_0x2b4e3d),_0x42939d(_0x401f72['error'](0x1f4,_0x2252d4[_0x218b5c('0x0')]));});});},exports[_0x3477c5('0xa')]=function(_0x18240e){const _0x1242a1=this;return new Promise(function(_0x3776f8,_0x12b61c){const _0x2e40ad=a270_0x89b3;return db['FreshsalesAccount']['findOne']({'raw':_0x18240e[_0x2e40ad('0x8')]?_0x18240e[_0x2e40ad('0x8')][_0x2e40ad('0x2')]===undefined?!![]:![]:!![],'where':_0x18240e[_0x2e40ad('0x8')]?_0x18240e[_0x2e40ad('0x8')]['where']||null:null,'attributes':_0x18240e[_0x2e40ad('0x8')]?_0x18240e[_0x2e40ad('0x8')][_0x2e40ad('0x15')]||null:null,'include':_0x18240e[_0x2e40ad('0x8')]?_0x18240e[_0x2e40ad('0x8')]['include']?_['map'](_0x18240e[_0x2e40ad('0x8')][_0x2e40ad('0x5')],function(_0x3a70ea){const _0x13cd3f=_0x2e40ad;return{'model':db[_0x3a70ea[_0x13cd3f('0xc')]],'as':_0x3a70ea['as'],'attributes':_0x3a70ea[_0x13cd3f('0x15')],'include':_0x3a70ea['include']?_['map'](_0x3a70ea['include'],function(_0x500653){const _0x357a72=_0x13cd3f;return{'model':db[_0x500653['model']],'as':_0x500653['as'],'attributes':_0x500653[_0x357a72('0x15')],'include':_0x500653['include']?_[_0x357a72('0x4')](_0x500653[_0x357a72('0x5')],function(_0x5dd945){const _0x1aa2c4=_0x357a72;return{'model':db[_0x5dd945[_0x1aa2c4('0xc')]],'as':_0x5dd945['as'],'attributes':_0x5dd945[_0x1aa2c4('0x15')]};}):[]};}):[]};}):[]:[]})[_0x2e40ad('0x1')](function(_0x36ba79){const _0x495b2d=_0x2e40ad;logger[_0x495b2d('0x7')]('ShowFreshsalesAccount',_0x18240e),logger[_0x495b2d('0x6')](_0x495b2d('0xa'),_0x18240e,JSON['stringify'](_0x36ba79)),_0x3776f8(_0x36ba79);})[_0x2e40ad('0x10')](function(_0x57d206){const _0x56450e=_0x2e40ad;logger[_0x56450e('0x12')](_0x56450e('0xa'),_0x57d206['message'],_0x18240e),_0x12b61c(_0x1242a1['error'](0x1f4,_0x57d206[_0x56450e('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index 011c85e..7b8f26a 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a271_0x2a53=['delete','index','put','getDescriptions','post','isAuthenticated','show','Router','get','/:id/descriptions','/:id','destroy','getSubjects','../../components/auth/service','update','getFields','./intFreshsalesConfiguration.controller','create','exports'];(function(_0x232d1f,_0x2a53b4){const _0x24d3f6=function(_0x5209f6){while(--_0x5209f6){_0x232d1f['push'](_0x232d1f['shift']());}};_0x24d3f6(++_0x2a53b4);}(a271_0x2a53,0x12a));const a271_0x24d3=function(_0x232d1f,_0x2a53b4){_0x232d1f=_0x232d1f-0x0;let _0x24d3f6=a271_0x2a53[_0x232d1f];return _0x24d3f6;};const _0x1308ae=a271_0x24d3;'use strict';const express=require('express'),router=express[_0x1308ae('0xd')](),auth=require(_0x1308ae('0x0')),controller=require(_0x1308ae('0x3'));router[_0x1308ae('0xe')]('/',auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x7')]),router[_0x1308ae('0xe')](_0x1308ae('0x10'),auth[_0x1308ae('0xb')](),controller[_0x1308ae('0xc')]),router[_0x1308ae('0xe')]('/:id/subjects',auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x12')]),router[_0x1308ae('0xe')](_0x1308ae('0xf'),auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x9')]),router[_0x1308ae('0xe')]('/:id/fields',auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x2')]),router[_0x1308ae('0xa')]('/',auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x4')]),router[_0x1308ae('0x8')](_0x1308ae('0x10'),auth['isAuthenticated'](),controller[_0x1308ae('0x1')]),router[_0x1308ae('0x6')](_0x1308ae('0x10'),auth[_0x1308ae('0xb')](),controller[_0x1308ae('0x11')]),module[_0x1308ae('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index e3c1b36..5320172 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a272_0x1464=['STRING','exports'];(function(_0x38d5b7,_0x146465){const _0xf79f8f=function(_0x5c8e9d){while(--_0x5c8e9d){_0x38d5b7['push'](_0x38d5b7['shift']());}};_0xf79f8f(++_0x146465);}(a272_0x1464,0xc7));const a272_0xf79f=function(_0x38d5b7,_0x146465){_0x38d5b7=_0x38d5b7-0x0;let _0xf79f8f=a272_0x1464[_0x38d5b7];return _0xf79f8f;};const _0x5b5289=a272_0xf79f;'use strict';const Sequelize=require('sequelize');module[_0x5b5289('0x0')]={'name':{'type':Sequelize[_0x5b5289('0x1')]},'description':{'type':Sequelize[_0x5b5289('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js index 8948c87..6238581 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a273_0x4333=['pick','status','model','nolimit','filters','filter','key','merge','includeAll','lodash','body','getDescriptions','FreshsalesField','length','findOne','intersection','getSubjects','count','../../components/parsers/qs','undefined','include','Content-Range','FreshsalesConfiguration','sendStatus','where','index','api','rows','end','update','json','destroy','getFields','then','fields','catch','params','order','map','../../mysqldb','show','findAll','keys','like','sort','attributes','rawAttributes','VIRTUAL','../../config/logger','query','type','limit','options','offset','create','name','send','error'];(function(_0x1c241,_0x43332d){const _0x28db84=function(_0x3bc310){while(--_0x3bc310){_0x1c241['push'](_0x1c241['shift']());}};_0x28db84(++_0x43332d);}(a273_0x4333,0x191));const a273_0x28db=function(_0x1c241,_0x43332d){_0x1c241=_0x1c241-0x0;let _0x28db84=a273_0x4333[_0x1c241];return _0x28db84;};const _0x5d2c3a=a273_0x28db;'use strict';const _=require(_0x5d2c3a('0xe')),qs=require(_0x5d2c3a('0x17')),logger=require(_0x5d2c3a('0x35'))(_0x5d2c3a('0x1f')),db=require(_0x5d2c3a('0x2c'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3bc310,_0x53600a){return _0x53600a=_0x53600a||0xc8,function(_0x3949ac){const _0x2ee7eb=a273_0x28db;if(_0x3949ac)return _0x3bc310[_0x2ee7eb('0x6')](_0x53600a)[_0x2ee7eb('0x23')](_0x3949ac);};}function respondWithFilteredResult(_0x28c28b,_0x56ddd8){return function(_0x34ee92){const _0x9c7b31=a273_0x28db;if(_0x34ee92){const _0x407e5d=_0x34ee92['count'],_0x2f80a0=_0x56ddd8['offset'];let _0x108a4a=_0x56ddd8[_0x9c7b31('0x0')]+_0x56ddd8[_0x9c7b31('0x38')],_0x94ca7c;return _0x108a4a>=_0x407e5d?(_0x108a4a=_0x407e5d,_0x94ca7c=0xc8):_0x94ca7c=0xce,_0x28c28b['status'](_0x94ca7c),_0x28c28b['set'](_0x9c7b31('0x1a'),_0x2f80a0+'-'+_0x108a4a+'/'+_0x407e5d)[_0x9c7b31('0x23')](_0x34ee92);}return null;};}function saveUpdates(_0x332691){return function(_0x292a6e){const _0x11c725=a273_0x28db;if(_0x292a6e)return _0x292a6e[_0x11c725('0x22')](_0x332691)[_0x11c725('0x26')](function(_0x1b7f13){return _0x1b7f13;});return null;};}function removeEntity(_0x29f4aa){return function(_0x2d617a){const _0x5f3d23=a273_0x28db;if(_0x2d617a)return _0x2d617a[_0x5f3d23('0x24')]()[_0x5f3d23('0x26')](function(){const _0x5d50f6=_0x5f3d23;_0x29f4aa[_0x5d50f6('0x6')](0xcc)[_0x5d50f6('0x21')]();});};}function handleEntityNotFound(_0xf69a84){return function(_0x1a4278){const _0x550c4f=a273_0x28db;return!_0x1a4278&&_0xf69a84[_0x550c4f('0x1c')](0x194),_0x1a4278;};}function handleError(_0x3e11d0,_0x3c63e2){return _0x3c63e2=_0x3c63e2||0x1f4,function(_0x773035){const _0x44f034=a273_0x28db;logger[_0x44f034('0x4')](_0x773035['stack']),_0x773035[_0x44f034('0x2')]&&delete _0x773035[_0x44f034('0x2')],_0x3e11d0[_0x44f034('0x6')](_0x3c63e2)[_0x44f034('0x3')](_0x773035);};}exports[_0x5d2c3a('0x1e')]=function(_0x445cec,_0x106856){const _0x27f81f=_0x5d2c3a;let _0x1f5eae={};const _0x5994c7={},_0x7f435a={'count':0x0,'rows':[]},_0x17e5bd=_[_0x27f81f('0x2b')](db[_0x27f81f('0x1b')][_0x27f81f('0x33')],function(_0xe57048){const _0x1bd3ee=_0x27f81f;return{'name':_0xe57048['fieldName'],'type':_0xe57048['type'][_0x1bd3ee('0xb')]};});_0x5994c7[_0x27f81f('0x7')]=_[_0x27f81f('0x2b')](_0x17e5bd,_0x27f81f('0x2')),_0x5994c7[_0x27f81f('0x36')]=_[_0x27f81f('0x2f')](_0x445cec['query']),_0x5994c7[_0x27f81f('0x9')]=_[_0x27f81f('0x14')](_0x5994c7[_0x27f81f('0x7')],_0x5994c7[_0x27f81f('0x36')]),_0x1f5eae[_0x27f81f('0x32')]=_[_0x27f81f('0x14')](_0x5994c7[_0x27f81f('0x7')],qs['fields'](_0x445cec[_0x27f81f('0x36')][_0x27f81f('0x27')])),_0x1f5eae['attributes']=_0x1f5eae[_0x27f81f('0x32')][_0x27f81f('0x12')]?_0x1f5eae[_0x27f81f('0x32')]:_0x5994c7[_0x27f81f('0x7')];typeof _0x445cec[_0x27f81f('0x36')][_0x27f81f('0x8')]===_0x27f81f('0x18')&&(_0x1f5eae[_0x27f81f('0x38')]=qs['limit'](_0x445cec[_0x27f81f('0x36')]['limit']),_0x1f5eae[_0x27f81f('0x0')]=qs['offset'](_0x445cec['query'][_0x27f81f('0x0')]));_0x1f5eae[_0x27f81f('0x2a')]=qs['sort'](_0x445cec['query']['sort']),_0x1f5eae['where']=qs['filters'](_[_0x27f81f('0x5')](_0x445cec[_0x27f81f('0x36')],_0x5994c7[_0x27f81f('0x9')]),_0x17e5bd);_0x445cec[_0x27f81f('0x36')]['filter']&&(_0x1f5eae['where']=_['merge'](_0x1f5eae[_0x27f81f('0x1d')],{[Op['or']]:_[_0x27f81f('0x2b')](_0x17e5bd,function(_0x7447c9){const _0x327bed=_0x27f81f;if(_0x7447c9[_0x327bed('0x37')]!==_0x327bed('0x34')){const _0x37e653={};return _0x37e653[_0x7447c9[_0x327bed('0x2')]]={[Op[_0x327bed('0x30')]]:'%'+_0x445cec[_0x327bed('0x36')]['filter']+'%'},_0x37e653;}})}));_0x1f5eae=_[_0x27f81f('0xc')]({},_0x1f5eae,_0x445cec[_0x27f81f('0x39')]);const _0x22a6d1={'where':_0x1f5eae[_0x27f81f('0x1d')]};return db[_0x27f81f('0x1b')][_0x27f81f('0x16')](_0x22a6d1)[_0x27f81f('0x26')](function(_0x382d30){const _0xd386c9=_0x27f81f;return _0x7f435a[_0xd386c9('0x16')]=_0x382d30,_0x445cec['query'][_0xd386c9('0xd')]&&(_0x1f5eae['include']=[{'all':!![]}]),db[_0xd386c9('0x1b')][_0xd386c9('0x2e')](_0x1f5eae);})[_0x27f81f('0x26')](function(_0x3e8664){const _0xad7162=_0x27f81f;return _0x7f435a[_0xad7162('0x20')]=_0x3e8664,_0x7f435a;})[_0x27f81f('0x26')](respondWithFilteredResult(_0x106856,_0x1f5eae))[_0x27f81f('0x28')](handleError(_0x106856,null));},exports[_0x5d2c3a('0x2d')]=function(_0x4e8cca,_0x382f11){const _0x24768b=_0x5d2c3a;let _0x4629f0={'raw':![],'where':{'id':_0x4e8cca[_0x24768b('0x29')]['id']}};const _0x355a78={};return _0x355a78[_0x24768b('0x7')]=_[_0x24768b('0x2f')](db[_0x24768b('0x1b')][_0x24768b('0x33')]),_0x355a78[_0x24768b('0x36')]=_[_0x24768b('0x2f')](_0x4e8cca[_0x24768b('0x36')]),_0x355a78[_0x24768b('0x9')]=_['intersection'](_0x355a78[_0x24768b('0x7')],_0x355a78['query']),_0x4629f0[_0x24768b('0x32')]=_['intersection'](_0x355a78[_0x24768b('0x7')],qs[_0x24768b('0x27')](_0x4e8cca[_0x24768b('0x36')]['fields'])),_0x4629f0[_0x24768b('0x32')]=_0x4629f0[_0x24768b('0x32')][_0x24768b('0x12')]?_0x4629f0['attributes']:_0x355a78['model'],_0x4e8cca[_0x24768b('0x36')][_0x24768b('0xd')]&&(_0x4629f0[_0x24768b('0x19')]=[{'all':!![]}]),_0x4629f0=_['merge']({},_0x4629f0,_0x4e8cca[_0x24768b('0x39')]),db[_0x24768b('0x1b')]['findOne'](_0x4629f0)[_0x24768b('0x26')](handleEntityNotFound(_0x382f11,null))[_0x24768b('0x26')](respondWithResult(_0x382f11,null))[_0x24768b('0x28')](handleError(_0x382f11,null));},exports[_0x5d2c3a('0x1')]=function(_0x3d0014,_0x29427b){const _0x472f53=_0x5d2c3a;return db['FreshsalesConfiguration'][_0x472f53('0x1')](_0x3d0014[_0x472f53('0xf')],{})[_0x472f53('0x26')](respondWithResult(_0x29427b,0xc9))['catch'](handleError(_0x29427b,null));},exports[_0x5d2c3a('0x22')]=function(_0x20ab42,_0x2fea72){const _0x23a73b=_0x5d2c3a;return _0x20ab42['body']['id']&&delete _0x20ab42[_0x23a73b('0xf')]['id'],db[_0x23a73b('0x1b')][_0x23a73b('0x13')]({'where':{'id':_0x20ab42[_0x23a73b('0x29')]['id']}})[_0x23a73b('0x26')](handleEntityNotFound(_0x2fea72,null))['then'](saveUpdates(_0x20ab42[_0x23a73b('0xf')],null))[_0x23a73b('0x26')](respondWithResult(_0x2fea72,null))[_0x23a73b('0x28')](handleError(_0x2fea72,null));},exports[_0x5d2c3a('0x24')]=function(_0x2cd38a,_0x5a7e8b){const _0x12fd32=_0x5d2c3a;return db[_0x12fd32('0x1b')]['findOne']({'where':{'id':_0x2cd38a[_0x12fd32('0x29')]['id']}})['then'](handleEntityNotFound(_0x5a7e8b,null))[_0x12fd32('0x26')](removeEntity(_0x5a7e8b,null))['catch'](handleError(_0x5a7e8b,null));},exports[_0x5d2c3a('0x15')]=function(_0x4a1577,_0x48d9cd){const _0x2e6bf6=_0x5d2c3a;let _0xe8430e={};const _0x47ad57={};let _0x4256f8,_0x2d5afe;return db[_0x2e6bf6('0x1b')]['findOne']({'where':{'id':_0x4a1577[_0x2e6bf6('0x29')]['id']}})[_0x2e6bf6('0x26')](handleEntityNotFound(_0x48d9cd,null))[_0x2e6bf6('0x26')](function(_0x2a014b){const _0x30d26e=_0x2e6bf6;if(_0x2a014b)return _0x4256f8=_0x2a014b,_0x47ad57[_0x30d26e('0x7')]=_[_0x30d26e('0x2f')](db[_0x30d26e('0x11')][_0x30d26e('0x33')]),_0x47ad57[_0x30d26e('0x36')]=_['keys'](_0x4a1577['query']),_0x47ad57[_0x30d26e('0x9')]=_[_0x30d26e('0x14')](_0x47ad57[_0x30d26e('0x7')],_0x47ad57[_0x30d26e('0x36')]),_0xe8430e[_0x30d26e('0x32')]=_['intersection'](_0x47ad57[_0x30d26e('0x7')],qs[_0x30d26e('0x27')](_0x4a1577[_0x30d26e('0x36')]['fields'])),_0xe8430e['attributes']=_0xe8430e[_0x30d26e('0x32')]['length']?_0xe8430e[_0x30d26e('0x32')]:_0x47ad57['model'],_0xe8430e[_0x30d26e('0x2a')]=qs[_0x30d26e('0x31')](_0x4a1577[_0x30d26e('0x36')][_0x30d26e('0x31')]),_0xe8430e['where']=qs['filters'](_[_0x30d26e('0x5')](_0x4a1577[_0x30d26e('0x36')],_0x47ad57[_0x30d26e('0x9')])),_0x4a1577[_0x30d26e('0x36')][_0x30d26e('0xa')]&&(_0xe8430e[_0x30d26e('0x1d')]=_[_0x30d26e('0xc')](_0xe8430e['where'],{[Op['or']]:_[_0x30d26e('0x2b')](_0xe8430e['attributes'],function(_0x2403f5){const _0x4a6e74=_0x30d26e,_0x4dc33f={};return _0x4dc33f[_0x2403f5]={[Op[_0x4a6e74('0x30')]]:'%'+_0x4a1577[_0x4a6e74('0x36')][_0x4a6e74('0xa')]+'%'},_0x4dc33f;})})),_0xe8430e=_[_0x30d26e('0xc')]({},_0xe8430e,_0x4a1577[_0x30d26e('0x39')]),_0x4256f8['getSubjects'](_0xe8430e);})[_0x2e6bf6('0x26')](function(_0x546da4){const _0x9e1316=_0x2e6bf6;if(_0x546da4)return _0x2d5afe=_0x546da4[_0x9e1316('0x12')],typeof _0x4a1577[_0x9e1316('0x36')][_0x9e1316('0x8')]===_0x9e1316('0x18')&&(_0xe8430e[_0x9e1316('0x38')]=qs['limit'](_0x4a1577['query'][_0x9e1316('0x38')]),_0xe8430e[_0x9e1316('0x0')]=qs[_0x9e1316('0x0')](_0x4a1577[_0x9e1316('0x36')][_0x9e1316('0x0')])),_0x4256f8['getSubjects'](_0xe8430e);})[_0x2e6bf6('0x26')](function(_0x5c974e){if(_0x5c974e)return _0x5c974e?{'count':_0x2d5afe,'rows':_0x5c974e}:null;})['then'](respondWithResult(_0x48d9cd,null))['catch'](handleError(_0x48d9cd,null));},exports['getDescriptions']=function(_0x4c65e9,_0x4aa519){const _0x5ebbbc=_0x5d2c3a;let _0x329570={};const _0x488db3={};let _0x333baa,_0x1f8178;return db['FreshsalesConfiguration'][_0x5ebbbc('0x13')]({'where':{'id':_0x4c65e9[_0x5ebbbc('0x29')]['id']}})[_0x5ebbbc('0x26')](handleEntityNotFound(_0x4aa519,null))[_0x5ebbbc('0x26')](function(_0xeb2338){const _0x252ef0=_0x5ebbbc;if(_0xeb2338)return _0x333baa=_0xeb2338,_0x488db3['model']=_[_0x252ef0('0x2f')](db[_0x252ef0('0x11')]['rawAttributes']),_0x488db3[_0x252ef0('0x36')]=_[_0x252ef0('0x2f')](_0x4c65e9[_0x252ef0('0x36')]),_0x488db3['filters']=_[_0x252ef0('0x14')](_0x488db3[_0x252ef0('0x7')],_0x488db3[_0x252ef0('0x36')]),_0x329570[_0x252ef0('0x32')]=_[_0x252ef0('0x14')](_0x488db3[_0x252ef0('0x7')],qs[_0x252ef0('0x27')](_0x4c65e9[_0x252ef0('0x36')][_0x252ef0('0x27')])),_0x329570[_0x252ef0('0x32')]=_0x329570[_0x252ef0('0x32')][_0x252ef0('0x12')]?_0x329570[_0x252ef0('0x32')]:_0x488db3[_0x252ef0('0x7')],_0x329570[_0x252ef0('0x2a')]=qs[_0x252ef0('0x31')](_0x4c65e9['query'][_0x252ef0('0x31')]),_0x329570['where']=qs[_0x252ef0('0x9')](_[_0x252ef0('0x5')](_0x4c65e9[_0x252ef0('0x36')],_0x488db3[_0x252ef0('0x9')])),_0x4c65e9['query']['filter']&&(_0x329570[_0x252ef0('0x1d')]=_['merge'](_0x329570[_0x252ef0('0x1d')],{[Op['or']]:_['map'](_0x329570[_0x252ef0('0x32')],function(_0x429c3b){const _0x4eee77=_0x252ef0,_0x208a7b={};return _0x208a7b[_0x429c3b]={[Op[_0x4eee77('0x30')]]:'%'+_0x4c65e9[_0x4eee77('0x36')]['filter']+'%'},_0x208a7b;})})),_0x329570=_[_0x252ef0('0xc')]({},_0x329570,_0x4c65e9[_0x252ef0('0x39')]),_0x333baa[_0x252ef0('0x10')](_0x329570);})[_0x5ebbbc('0x26')](function(_0x346b65){const _0x154610=_0x5ebbbc;if(_0x346b65)return _0x1f8178=_0x346b65['length'],typeof _0x4c65e9[_0x154610('0x36')]['nolimit']===_0x154610('0x18')&&(_0x329570[_0x154610('0x38')]=qs[_0x154610('0x38')](_0x4c65e9[_0x154610('0x36')][_0x154610('0x38')]),_0x329570['offset']=qs[_0x154610('0x0')](_0x4c65e9[_0x154610('0x36')][_0x154610('0x0')])),_0x333baa['getDescriptions'](_0x329570);})[_0x5ebbbc('0x26')](function(_0x2de1ba){if(_0x2de1ba)return _0x2de1ba?{'count':_0x1f8178,'rows':_0x2de1ba}:null;})[_0x5ebbbc('0x26')](respondWithResult(_0x4aa519,null))[_0x5ebbbc('0x28')](handleError(_0x4aa519,null));},exports[_0x5d2c3a('0x25')]=function(_0x4fa8cc,_0x423790){const _0x29b147=_0x5d2c3a;let _0x6a99b1={};const _0x30ca10={};let _0x57c4bf,_0x1135cf;return db[_0x29b147('0x1b')][_0x29b147('0x13')]({'where':{'id':_0x4fa8cc['params']['id']}})[_0x29b147('0x26')](handleEntityNotFound(_0x423790,null))[_0x29b147('0x26')](function(_0x15a209){const _0x156457=_0x29b147;if(_0x15a209)return _0x57c4bf=_0x15a209,_0x30ca10[_0x156457('0x7')]=_[_0x156457('0x2f')](db[_0x156457('0x11')][_0x156457('0x33')]),_0x30ca10[_0x156457('0x36')]=_['keys'](_0x4fa8cc['query']),_0x30ca10[_0x156457('0x9')]=_[_0x156457('0x14')](_0x30ca10[_0x156457('0x7')],_0x30ca10['query']),_0x6a99b1[_0x156457('0x32')]=_[_0x156457('0x14')](_0x30ca10[_0x156457('0x7')],qs[_0x156457('0x27')](_0x4fa8cc[_0x156457('0x36')]['fields'])),_0x6a99b1['attributes']=_0x6a99b1['attributes'][_0x156457('0x12')]?_0x6a99b1['attributes']:_0x30ca10['model'],_0x6a99b1['order']=qs[_0x156457('0x31')](_0x4fa8cc['query'][_0x156457('0x31')]),_0x6a99b1[_0x156457('0x1d')]=qs[_0x156457('0x9')](_[_0x156457('0x5')](_0x4fa8cc[_0x156457('0x36')],_0x30ca10[_0x156457('0x9')])),_0x4fa8cc['query']['filter']&&(_0x6a99b1[_0x156457('0x1d')]=_[_0x156457('0xc')](_0x6a99b1['where'],{[Op['or']]:_[_0x156457('0x2b')](_0x6a99b1[_0x156457('0x32')],function(_0x4c16f8){const _0x4ec38b=_0x156457,_0x248323={};return _0x248323[_0x4c16f8]={[Op[_0x4ec38b('0x30')]]:'%'+_0x4fa8cc[_0x4ec38b('0x36')][_0x4ec38b('0xa')]+'%'},_0x248323;})})),_0x6a99b1=_[_0x156457('0xc')]({},_0x6a99b1,_0x4fa8cc[_0x156457('0x39')]),_0x57c4bf[_0x156457('0x25')](_0x6a99b1);})[_0x29b147('0x26')](function(_0x14ab51){const _0x4c4969=_0x29b147;if(_0x14ab51)return _0x1135cf=_0x14ab51['length'],typeof _0x4fa8cc[_0x4c4969('0x36')]['nolimit']===_0x4c4969('0x18')&&(_0x6a99b1['limit']=qs[_0x4c4969('0x38')](_0x4fa8cc['query'][_0x4c4969('0x38')]),_0x6a99b1[_0x4c4969('0x0')]=qs['offset'](_0x4fa8cc[_0x4c4969('0x36')][_0x4c4969('0x0')])),_0x57c4bf['getFields'](_0x6a99b1);})[_0x29b147('0x26')](function(_0x5c490d){if(_0x5c490d)return _0x5c490d?{'count':_0x1135cf,'rows':_0x5c490d}:null;})[_0x29b147('0x26')](respondWithResult(_0x423790,null))[_0x29b147('0x28')](handleError(_0x423790,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index b8790bf..32c2a0b 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a274_0x47bf=['./intFreshsalesConfiguration.attributes','define','FreshsalesConfiguration','exports'];(function(_0x574b95,_0x47bf41){const _0x284fd6=function(_0x4cad2d){while(--_0x4cad2d){_0x574b95['push'](_0x574b95['shift']());}};_0x284fd6(++_0x47bf41);}(a274_0x47bf,0xb9));const a274_0x284f=function(_0x574b95,_0x47bf41){_0x574b95=_0x574b95-0x0;let _0x284fd6=a274_0x47bf[_0x574b95];return _0x284fd6;};const _0x41662d=a274_0x284f;'use strict';const attributes=require(_0x41662d('0x3'));module[_0x41662d('0x2')]=function(_0x4cad2d){const _0x472c61=_0x41662d,_0xdd6f4b=_0x4cad2d[_0x472c61('0x0')](_0x472c61('0x1'),attributes,{'tableName':'int_freshsales_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0xdd6f4b;}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index 35eba46..fa7b7a2 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a275_0x27a6=['../../components/auth/service','put','show','isAuthenticated','get','express','/:id','delete','exports','update','./intFreshsalesField.controller','index','destroy'];(function(_0x4d5a86,_0x27a63e){const _0x4139f6=function(_0xf20a23){while(--_0xf20a23){_0x4d5a86['push'](_0x4d5a86['shift']());}};_0x4139f6(++_0x27a63e);}(a275_0x27a6,0x152));const a275_0x4139=function(_0x4d5a86,_0x27a63e){_0x4d5a86=_0x4d5a86-0x0;let _0x4139f6=a275_0x27a6[_0x4d5a86];return _0x4139f6;};const _0x145227=a275_0x4139;'use strict';const express=require(_0x145227('0x5')),router=express['Router'](),auth=require(_0x145227('0x0')),controller=require(_0x145227('0xa'));router[_0x145227('0x4')]('/',auth['isAuthenticated'](),controller[_0x145227('0xb')]),router[_0x145227('0x4')](_0x145227('0x6'),auth[_0x145227('0x3')](),controller[_0x145227('0x2')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x145227('0x1')](_0x145227('0x6'),auth['isAuthenticated'](),controller[_0x145227('0x9')]),router[_0x145227('0x7')](_0x145227('0x6'),auth['isAuthenticated'](),controller[_0x145227('0xc')]),module[_0x145227('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index 4cbd7f7..4ad7a47 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a276_0x401e=['STRING','customVariable','BOOLEAN','exports','variable','ENUM','string'];(function(_0x1eaa7a,_0x401e91){const _0x51de58=function(_0x5c23e2){while(--_0x5c23e2){_0x1eaa7a['push'](_0x1eaa7a['shift']());}};_0x51de58(++_0x401e91);}(a276_0x401e,0xcd));const a276_0x51de=function(_0x1eaa7a,_0x401e91){_0x1eaa7a=_0x1eaa7a-0x0;let _0x51de58=a276_0x401e[_0x1eaa7a];return _0x51de58;};const _0x350011=a276_0x51de;'use strict';const Sequelize=require('sequelize');module[_0x350011('0x1')]={'type':{'type':Sequelize[_0x350011('0x3')](_0x350011('0x4'),'variable','customVariable','keyValue'),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x350011('0x5')]},'keyType':{'type':Sequelize[_0x350011('0x3')](_0x350011('0x4'),_0x350011('0x2'),_0x350011('0x6'))},'keyContent':{'type':Sequelize[_0x350011('0x5')]},'idField':{'type':Sequelize[_0x350011('0x5')]},'nameField':{'type':Sequelize[_0x350011('0x5')]},'customField':{'type':Sequelize[_0x350011('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x350011('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 20126ef..86fb916 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a277_0x3331=['name','includeAll','offset','intersection','model','body','merge','create','fields','status','order','like','limit','options','destroy','where','sort','params','end','length','../../mysqldb','nolimit','fieldName','key','pick','catch','rows','map','show','then','index','keys','send','rawAttributes','set','findAll','api','lodash','undefined','../../components/parsers/qs','filter','findOne','filters','FreshsalesField','query','attributes','sequelize','count','update'];(function(_0x64e8eb,_0x3331ad){const _0x2c81a5=function(_0x3d7305){while(--_0x3d7305){_0x64e8eb['push'](_0x64e8eb['shift']());}};_0x2c81a5(++_0x3331ad);}(a277_0x3331,0xc2));const a277_0x2c81=function(_0x64e8eb,_0x3331ad){_0x64e8eb=_0x64e8eb-0x0;let _0x2c81a5=a277_0x3331[_0x64e8eb];return _0x2c81a5;};const _0xd423a2=a277_0x2c81;'use strict';const _=require(_0xd423a2('0x27')),qs=require(_0xd423a2('0x29')),logger=require('../../config/logger')(_0xd423a2('0x26')),db=require(_0xd423a2('0x16'))['db'],{Op}=require(_0xd423a2('0x30'));function respondWithResult(_0x3d7305,_0x51e7d5){return _0x51e7d5=_0x51e7d5||0xc8,function(_0x23d856){const _0x5f5ac3=a277_0x2c81;if(_0x23d856)return _0x3d7305[_0x5f5ac3('0xb')](_0x51e7d5)['json'](_0x23d856);};}function respondWithFilteredResult(_0x45fc9d,_0x544548){return function(_0x2f8487){const _0x25d248=a277_0x2c81;if(_0x2f8487){const _0x4a424c=_0x2f8487['count'],_0x509744=_0x544548['offset'];let _0x4acc2e=_0x544548[_0x25d248('0x4')]+_0x544548[_0x25d248('0xe')],_0x2178cb;return _0x4acc2e>=_0x4a424c?(_0x4acc2e=_0x4a424c,_0x2178cb=0xc8):_0x2178cb=0xce,_0x45fc9d[_0x25d248('0xb')](_0x2178cb),_0x45fc9d[_0x25d248('0x24')]('Content-Range',_0x509744+'-'+_0x4acc2e+'/'+_0x4a424c)['json'](_0x2f8487);}return null;};}function saveUpdates(_0x1a5ace){return function(_0x3b1356){const _0x5e4c58=a277_0x2c81;if(_0x3b1356)return _0x3b1356[_0x5e4c58('0x1')](_0x1a5ace)[_0x5e4c58('0x1f')](function(_0x53d5d1){return _0x53d5d1;});return null;};}function removeEntity(_0x451a6d){return function(_0x583b1d){const _0x6ed168=a277_0x2c81;if(_0x583b1d)return _0x583b1d[_0x6ed168('0x10')]()[_0x6ed168('0x1f')](function(){const _0x3e90f8=_0x6ed168;_0x451a6d[_0x3e90f8('0xb')](0xcc)[_0x3e90f8('0x14')]();});};}function handleEntityNotFound(_0x571383){return function(_0x352162){return!_0x352162&&_0x571383['sendStatus'](0x194),_0x352162;};}function handleError(_0x4b1022,_0x534ce7){return _0x534ce7=_0x534ce7||0x1f4,function(_0x15448f){const _0x58737a=a277_0x2c81;logger['error'](_0x15448f['stack']),_0x15448f['name']&&delete _0x15448f[_0x58737a('0x2')],_0x4b1022[_0x58737a('0xb')](_0x534ce7)[_0x58737a('0x22')](_0x15448f);};}exports[_0xd423a2('0x20')]=function(_0x2d2e8b,_0x524817){const _0x4b4401=_0xd423a2;let _0x4ea7e8={};const _0x20e9e7={},_0xcb24f5={'count':0x0,'rows':[]},_0x13e60b=_[_0x4b4401('0x1d')](db[_0x4b4401('0x2d')][_0x4b4401('0x23')],function(_0x4ed911){const _0x215b68=_0x4b4401;return{'name':_0x4ed911[_0x215b68('0x18')],'type':_0x4ed911['type'][_0x215b68('0x19')]};});_0x20e9e7[_0x4b4401('0x6')]=_[_0x4b4401('0x1d')](_0x13e60b,_0x4b4401('0x2')),_0x20e9e7['query']=_[_0x4b4401('0x21')](_0x2d2e8b[_0x4b4401('0x2e')]),_0x20e9e7[_0x4b4401('0x2c')]=_['intersection'](_0x20e9e7[_0x4b4401('0x6')],_0x20e9e7[_0x4b4401('0x2e')]),_0x4ea7e8[_0x4b4401('0x2f')]=_['intersection'](_0x20e9e7[_0x4b4401('0x6')],qs['fields'](_0x2d2e8b[_0x4b4401('0x2e')]['fields'])),_0x4ea7e8[_0x4b4401('0x2f')]=_0x4ea7e8[_0x4b4401('0x2f')][_0x4b4401('0x15')]?_0x4ea7e8[_0x4b4401('0x2f')]:_0x20e9e7[_0x4b4401('0x6')];typeof _0x2d2e8b[_0x4b4401('0x2e')][_0x4b4401('0x17')]===_0x4b4401('0x28')&&(_0x4ea7e8[_0x4b4401('0xe')]=qs[_0x4b4401('0xe')](_0x2d2e8b[_0x4b4401('0x2e')][_0x4b4401('0xe')]),_0x4ea7e8[_0x4b4401('0x4')]=qs[_0x4b4401('0x4')](_0x2d2e8b[_0x4b4401('0x2e')][_0x4b4401('0x4')]));_0x4ea7e8[_0x4b4401('0xc')]=qs[_0x4b4401('0x12')](_0x2d2e8b[_0x4b4401('0x2e')]['sort']),_0x4ea7e8[_0x4b4401('0x11')]=qs[_0x4b4401('0x2c')](_[_0x4b4401('0x1a')](_0x2d2e8b[_0x4b4401('0x2e')],_0x20e9e7[_0x4b4401('0x2c')]),_0x13e60b);_0x2d2e8b[_0x4b4401('0x2e')][_0x4b4401('0x2a')]&&(_0x4ea7e8[_0x4b4401('0x11')]=_['merge'](_0x4ea7e8['where'],{[Op['or']]:_[_0x4b4401('0x1d')](_0x13e60b,function(_0x54b5a6){const _0x5a1b70=_0x4b4401;if(_0x54b5a6['type']!=='VIRTUAL'){const _0xe6b88b={};return _0xe6b88b[_0x54b5a6[_0x5a1b70('0x2')]]={[Op[_0x5a1b70('0xd')]]:'%'+_0x2d2e8b[_0x5a1b70('0x2e')][_0x5a1b70('0x2a')]+'%'},_0xe6b88b;}})}));_0x4ea7e8=_[_0x4b4401('0x8')]({},_0x4ea7e8,_0x2d2e8b['options']);const _0x1e66dc={'where':_0x4ea7e8[_0x4b4401('0x11')]};return db[_0x4b4401('0x2d')][_0x4b4401('0x0')](_0x1e66dc)[_0x4b4401('0x1f')](function(_0x508fae){const _0x418644=_0x4b4401;return _0xcb24f5[_0x418644('0x0')]=_0x508fae,_0x2d2e8b['query']['includeAll']&&(_0x4ea7e8['include']=[{'all':!![]}]),db[_0x418644('0x2d')][_0x418644('0x25')](_0x4ea7e8);})[_0x4b4401('0x1f')](function(_0x5bdf7c){const _0xe573ea=_0x4b4401;return _0xcb24f5[_0xe573ea('0x1c')]=_0x5bdf7c,_0xcb24f5;})[_0x4b4401('0x1f')](respondWithFilteredResult(_0x524817,_0x4ea7e8))['catch'](handleError(_0x524817,null));},exports[_0xd423a2('0x1e')]=function(_0x2e4e7d,_0xf89ab2){const _0x1b2055=_0xd423a2;let _0x3de87a={'raw':!![],'where':{'id':_0x2e4e7d['params']['id']}};const _0x519878={};return _0x519878[_0x1b2055('0x6')]=_['keys'](db['FreshsalesField'][_0x1b2055('0x23')]),_0x519878[_0x1b2055('0x2e')]=_['keys'](_0x2e4e7d[_0x1b2055('0x2e')]),_0x519878[_0x1b2055('0x2c')]=_[_0x1b2055('0x5')](_0x519878[_0x1b2055('0x6')],_0x519878['query']),_0x3de87a[_0x1b2055('0x2f')]=_[_0x1b2055('0x5')](_0x519878[_0x1b2055('0x6')],qs[_0x1b2055('0xa')](_0x2e4e7d[_0x1b2055('0x2e')]['fields'])),_0x3de87a['attributes']=_0x3de87a[_0x1b2055('0x2f')][_0x1b2055('0x15')]?_0x3de87a[_0x1b2055('0x2f')]:_0x519878[_0x1b2055('0x6')],_0x2e4e7d['query'][_0x1b2055('0x3')]&&(_0x3de87a['include']=[{'all':!![]}]),_0x3de87a=_['merge']({},_0x3de87a,_0x2e4e7d[_0x1b2055('0xf')]),db[_0x1b2055('0x2d')][_0x1b2055('0x2b')](_0x3de87a)['then'](handleEntityNotFound(_0xf89ab2,null))['then'](respondWithResult(_0xf89ab2,null))[_0x1b2055('0x1b')](handleError(_0xf89ab2,null));},exports[_0xd423a2('0x9')]=function(_0x2862f9,_0x1a1956){const _0x1991f6=_0xd423a2;return db['FreshsalesField'][_0x1991f6('0x9')](_0x2862f9['body'],{})[_0x1991f6('0x1f')](respondWithResult(_0x1a1956,0xc9))[_0x1991f6('0x1b')](handleError(_0x1a1956,null));},exports[_0xd423a2('0x1')]=function(_0x42496b,_0x5932f4){const _0x1251c=_0xd423a2;return _0x42496b[_0x1251c('0x7')]['id']&&delete _0x42496b[_0x1251c('0x7')]['id'],db[_0x1251c('0x2d')][_0x1251c('0x2b')]({'where':{'id':_0x42496b[_0x1251c('0x13')]['id']}})[_0x1251c('0x1f')](handleEntityNotFound(_0x5932f4,null))['then'](saveUpdates(_0x42496b[_0x1251c('0x7')],null))[_0x1251c('0x1f')](respondWithResult(_0x5932f4,null))[_0x1251c('0x1b')](handleError(_0x5932f4,null));},exports['destroy']=function(_0x22950e,_0x125e0b){const _0x590b85=_0xd423a2;return db[_0x590b85('0x2d')][_0x590b85('0x2b')]({'where':{'id':_0x22950e[_0x590b85('0x13')]['id']}})[_0x590b85('0x1f')](handleEntityNotFound(_0x125e0b,null))['then'](removeEntity(_0x125e0b,null))[_0x590b85('0x1b')](handleError(_0x125e0b,null));}; \ No newline at end of file +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 diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index b302383..3572f8d 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a278_0x409f=['idField','FieldId','define','FreshsalesField','exports','./intFreshsalesField.attributes','int_freshsales_fields'];(function(_0x544273,_0x409fc0){const _0x51cddf=function(_0x27405b){while(--_0x27405b){_0x544273['push'](_0x544273['shift']());}};_0x51cddf(++_0x409fc0);}(a278_0x409f,0x111));const a278_0x51cd=function(_0x544273,_0x409fc0){_0x544273=_0x544273-0x0;let _0x51cddf=a278_0x409f[_0x544273];return _0x51cddf;};const _0x19688c=a278_0x51cd;'use strict';const attributes=require(_0x19688c('0x5'));module[_0x19688c('0x4')]=function(_0x27405b){const _0xd2795=_0x19688c,_0x442fc7=_0x27405b[_0xd2795('0x2')](_0xd2795('0x3'),attributes,{'tableName':_0xd2795('0x6'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xd2795('0x0'),_0xd2795('0x1')],'unique':!![]}],'timestamps':!![]});return _0x442fc7;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index 0150189..d470e9e 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a279_0x5b7b=['../../components/auth/service','get','isAuthenticated','destroy','Router','show','getConfigurations','./intSalesforceAccount.controller','getFields','/:id/configurations','/:id','delete','create','post','addConfiguration','exports'];(function(_0x1cb5cd,_0x5b7bc2){const _0x114c1c=function(_0x4babcd){while(--_0x4babcd){_0x1cb5cd['push'](_0x1cb5cd['shift']());}};_0x114c1c(++_0x5b7bc2);}(a279_0x5b7b,0xea));const a279_0x114c=function(_0x1cb5cd,_0x5b7bc2){_0x1cb5cd=_0x1cb5cd-0x0;let _0x114c1c=a279_0x5b7b[_0x1cb5cd];return _0x114c1c;};const _0x528b06=a279_0x114c;'use strict';const express=require('express'),router=express[_0x528b06('0xa')](),auth=require(_0x528b06('0x6')),controller=require(_0x528b06('0xd'));router[_0x528b06('0x7')]('/',auth[_0x528b06('0x8')](),controller['index']),router[_0x528b06('0x7')](_0x528b06('0x0'),auth[_0x528b06('0x8')](),controller[_0x528b06('0xb')]),router[_0x528b06('0x7')](_0x528b06('0xf'),auth[_0x528b06('0x8')](),controller[_0x528b06('0xc')]),router[_0x528b06('0x7')]('/:id/fields',auth['isAuthenticated'](),controller[_0x528b06('0xe')]),router[_0x528b06('0x3')]('/',auth[_0x528b06('0x8')](),controller[_0x528b06('0x2')]),router[_0x528b06('0x3')]('/:id/configurations',auth[_0x528b06('0x8')](),controller[_0x528b06('0x4')]),router['put'](_0x528b06('0x0'),auth[_0x528b06('0x8')](),controller['update']),router[_0x528b06('0x1')](_0x528b06('0x0'),auth[_0x528b06('0x8')](),controller[_0x528b06('0x9')]),module[_0x528b06('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index abe7f9d..199323e 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a280_0x5574=['newTab','integrationTab','sequelize','STRING','username'];(function(_0x5554c4,_0x5574bd){const _0xd51ed8=function(_0x379757){while(--_0x379757){_0x5554c4['push'](_0x5554c4['shift']());}};_0xd51ed8(++_0x5574bd);}(a280_0x5574,0x11f));const a280_0xd51e=function(_0x5554c4,_0x5574bd){_0x5554c4=_0x5554c4-0x0;let _0xd51ed8=a280_0x5574[_0x5554c4];return _0xd51ed8;};const _0x18896c=a280_0xd51e;'use strict';const Sequelize=require(_0x18896c('0x0'));module['exports']={'name':{'type':Sequelize[_0x18896c('0x1')]},'description':{'type':Sequelize[_0x18896c('0x1')]},'username':{'type':Sequelize[_0x18896c('0x1')],'unique':_0x18896c('0x2')},'remoteUri':{'type':Sequelize[_0x18896c('0x1')]},'password':{'type':Sequelize[_0x18896c('0x1')]},'clientId':{'type':Sequelize[_0x18896c('0x1')]},'clientSecret':{'type':Sequelize[_0x18896c('0x1')]},'securityToken':{'type':Sequelize[_0x18896c('0x1')]},'serverUrl':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x18896c('0x4'),_0x18896c('0x3')),'defaultValue':_0x18896c('0x4')}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index 81407c1..1a928ac 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a281_0x4c8a=['getSubjects','rawAttributes','attributes','map','sequelize','intersection','show','update','lodash','undefined','../../config/logger','set','pick','fieldName','statusCode','clientId','findOne','SuppliedName','status','length','create','substring','Case','describe','Wrong\x20credentials','include','options','Connection','Priority','model','CallObject','SalesforceConfiguration','value','SuppliedCompany','IsArchived','picklistValues','securityToken','test','findAll','fields','count','remove','label','sort','getFields,\x20%s,\x20%s,\x20%s','query','Type','getFields','custom','IsEscalated','slice','ticketType','false','filters','filter','body','where','then','limit','send','json','getConfigurations','sendStatus','clientSecret','password','lastIndexOf','Task','destroy','channel','like','merge','../../components/parsers/qs','username','sobject','params','error','CallType','includes','VIRTUAL','../../components/integrations/configuration','true','login','CallDurationInSeconds','offset','Reason','SalesforceField','getDescriptions','api','False','nolimit','addConfiguration','key','CallDisposition','stringify','catch','Status','name','../../mysqldb','includeAll','keys','type','remoteUri','isNil','SalesforceAccount','order'];(function(_0x2316ec,_0x4c8ab9){const _0x1a31c5=function(_0x11b957){while(--_0x11b957){_0x2316ec['push'](_0x2316ec['shift']());}};_0x1a31c5(++_0x4c8ab9);}(a281_0x4c8a,0x13c));const a281_0x1a31=function(_0x2316ec,_0x4c8ab9){_0x2316ec=_0x2316ec-0x0;let _0x1a31c5=a281_0x4c8a[_0x2316ec];return _0x1a31c5;};const _0x70d0e1=a281_0x1a31;'use strict';const _=require(_0x70d0e1('0x7')),jsforce=require('jsforce'),qs=require(_0x70d0e1('0x46')),logger=require(_0x70d0e1('0x9'))(_0x70d0e1('0x56')),db=require(_0x70d0e1('0x60'))['db'],{Op}=require(_0x70d0e1('0x3')),integrations=require(_0x70d0e1('0x4e'));function respondWithResult(_0x11b957,_0x1d6e31){return _0x1d6e31=_0x1d6e31||0xc8,function(_0x216669){const _0x4518a2=a281_0x1a31;if(_0x216669)return _0x11b957[_0x4518a2('0x11')](_0x1d6e31)[_0x4518a2('0x3b')](_0x216669);};}function respondWithFilteredResult(_0x1c8e51,_0x55f17e){return function(_0x1f3fe2){const _0xca315d=a281_0x1a31;if(_0x1f3fe2){const _0x2dfc8c=_0x1f3fe2['count'],_0x2e77f6=_0x55f17e['offset'];let _0x428bbe=_0x55f17e[_0xca315d('0x52')]+_0x55f17e['limit'],_0x5745be;return _0x428bbe>=_0x2dfc8c?(_0x428bbe=_0x2dfc8c,_0x5745be=0xc8):_0x5745be=0xce,_0x1c8e51[_0xca315d('0x11')](_0x5745be),_0x1c8e51[_0xca315d('0xa')]('Content-Range',_0x2e77f6+'-'+_0x428bbe+'/'+_0x2dfc8c)['json'](_0x1f3fe2);}return null;};}function saveUpdates(_0x410265){return function(_0x41920e){const _0x8e744f=a281_0x1a31;if(_0x41920e)return _0x41920e[_0x8e744f('0x6')](_0x410265)[_0x8e744f('0x38')](function(_0x22db6f){return _0x22db6f;});return null;};}function removeEntity(_0x540bf8){return function(_0x47d8e9){const _0x497d31=a281_0x1a31;if(_0x47d8e9)return _0x47d8e9[_0x497d31('0x42')]()[_0x497d31('0x38')](function(){const _0x1d739e=_0x497d31;_0x540bf8[_0x1d739e('0x11')](0xcc)['end']();});};}function handleEntityNotFound(_0x2508bc){return function(_0x4ebcae){const _0x23eb15=a281_0x1a31;return!_0x4ebcae&&_0x2508bc[_0x23eb15('0x3d')](0x194),_0x4ebcae;};}function handleError(_0x546155,_0x13bcd6){return _0x13bcd6=_0x13bcd6||0x1f4,function(_0x254c10){const _0x3fb828=a281_0x1a31;logger[_0x3fb828('0x4a')](_0x254c10['stack']),_0x254c10[_0x3fb828('0x5f')]&&delete _0x254c10['name'],_0x546155[_0x3fb828('0x11')](_0x13bcd6)['send'](_0x254c10);};}exports['index']=function(_0x3c921d,_0xfadc8e){const _0x3330e0=_0x70d0e1;let _0x48581f={};const _0x35d537={},_0x325e4c={'count':0x0,'rows':[]},_0x517ca6=_[_0x3330e0('0x2')](db[_0x3330e0('0x66')][_0x3330e0('0x0')],function(_0x1a67fc){const _0x1f6940=_0x3330e0;return{'name':_0x1a67fc[_0x1f6940('0xc')],'type':_0x1a67fc['type'][_0x1f6940('0x5a')]};});_0x35d537[_0x3330e0('0x1c')]=_[_0x3330e0('0x2')](_0x517ca6,'name'),_0x35d537[_0x3330e0('0x2c')]=_[_0x3330e0('0x62')](_0x3c921d[_0x3330e0('0x2c')]),_0x35d537['filters']=_['intersection'](_0x35d537[_0x3330e0('0x1c')],_0x35d537[_0x3330e0('0x2c')]),_0x48581f[_0x3330e0('0x1')]=_[_0x3330e0('0x4')](_0x35d537[_0x3330e0('0x1c')],qs[_0x3330e0('0x26')](_0x3c921d[_0x3330e0('0x2c')]['fields'])),_0x48581f[_0x3330e0('0x1')]=_0x48581f[_0x3330e0('0x1')]['length']?_0x48581f[_0x3330e0('0x1')]:_0x35d537[_0x3330e0('0x1c')];typeof _0x3c921d[_0x3330e0('0x2c')][_0x3330e0('0x58')]==='undefined'&&(_0x48581f[_0x3330e0('0x39')]=qs[_0x3330e0('0x39')](_0x3c921d[_0x3330e0('0x2c')]['limit']),_0x48581f[_0x3330e0('0x52')]=qs[_0x3330e0('0x52')](_0x3c921d['query'][_0x3330e0('0x52')]));_0x48581f[_0x3330e0('0x67')]=qs['sort'](_0x3c921d[_0x3330e0('0x2c')][_0x3330e0('0x2a')]),_0x48581f['where']=qs['filters'](_[_0x3330e0('0xb')](_0x3c921d['query'],_0x35d537[_0x3330e0('0x34')]),_0x517ca6);_0x3c921d[_0x3330e0('0x2c')]['filter']&&(_0x48581f[_0x3330e0('0x37')]=_[_0x3330e0('0x45')](_0x48581f[_0x3330e0('0x37')],{[Op['or']]:_[_0x3330e0('0x2')](_0x517ca6,function(_0x53f1db){const _0x3decdc=_0x3330e0;if(_0x53f1db[_0x3decdc('0x63')]!==_0x3decdc('0x4d')){const _0x344b3d={};return _0x344b3d[_0x53f1db['name']]={[Op[_0x3decdc('0x44')]]:'%'+_0x3c921d['query'][_0x3decdc('0x35')]+'%'},_0x344b3d;}})}));_0x48581f=_['merge']({},_0x48581f,_0x3c921d[_0x3330e0('0x19')]);const _0x1f3da8={'where':_0x48581f['where']};return db[_0x3330e0('0x66')][_0x3330e0('0x27')](_0x1f3da8)[_0x3330e0('0x38')](function(_0x1709fe){const _0x3b1a24=_0x3330e0;return _0x325e4c[_0x3b1a24('0x27')]=_0x1709fe,_0x3c921d['query'][_0x3b1a24('0x61')]&&(_0x48581f[_0x3b1a24('0x18')]=[{'all':!![]}]),db[_0x3b1a24('0x66')][_0x3b1a24('0x25')](_0x48581f);})[_0x3330e0('0x38')](function(_0x2e109e){return _0x325e4c['rows']=_0x2e109e,_0x325e4c;})[_0x3330e0('0x38')](respondWithFilteredResult(_0xfadc8e,_0x48581f))[_0x3330e0('0x5d')](handleError(_0xfadc8e,null));},exports[_0x70d0e1('0x5')]=function(_0x2a33d2,_0x3a492a){const _0xe59416=_0x70d0e1;let _0x486cff={'raw':![],'where':{'id':_0x2a33d2['params']['id']}};const _0x1fadb2={};return _0x1fadb2[_0xe59416('0x1c')]=_[_0xe59416('0x62')](db['SalesforceAccount'][_0xe59416('0x0')]),_0x1fadb2[_0xe59416('0x2c')]=_[_0xe59416('0x62')](_0x2a33d2['query']),_0x1fadb2['filters']=_[_0xe59416('0x4')](_0x1fadb2[_0xe59416('0x1c')],_0x1fadb2[_0xe59416('0x2c')]),_0x486cff['attributes']=_[_0xe59416('0x4')](_0x1fadb2[_0xe59416('0x1c')],qs['fields'](_0x2a33d2[_0xe59416('0x2c')][_0xe59416('0x26')])),_0x486cff[_0xe59416('0x1')]=_0x486cff[_0xe59416('0x1')][_0xe59416('0x12')]?_0x486cff[_0xe59416('0x1')]:_0x1fadb2['model'],_0x2a33d2[_0xe59416('0x2c')][_0xe59416('0x61')]&&(_0x486cff['include']=[{'all':!![]}]),_0x486cff=_[_0xe59416('0x45')]({},_0x486cff,_0x2a33d2['options']),db[_0xe59416('0x66')][_0xe59416('0xf')](_0x486cff)[_0xe59416('0x38')](handleEntityNotFound(_0x3a492a,null))[_0xe59416('0x38')](respondWithResult(_0x3a492a,null))[_0xe59416('0x5d')](handleError(_0x3a492a,null));},exports[_0x70d0e1('0x13')]=function(_0x4d9abf,_0x54f5be){const _0x39a75b=_0x70d0e1;return db['SalesforceAccount']['create'](_0x4d9abf[_0x39a75b('0x36')],{})['then'](respondWithResult(_0x54f5be,0xc9))[_0x39a75b('0x5d')](handleError(_0x54f5be,null));},exports[_0x70d0e1('0x6')]=function(_0x5b52df,_0x350fcb){const _0x1ebdea=_0x70d0e1;return _0x5b52df[_0x1ebdea('0x36')]['id']&&delete _0x5b52df[_0x1ebdea('0x36')]['id'],db[_0x1ebdea('0x66')][_0x1ebdea('0xf')]({'where':{'id':_0x5b52df['params']['id']}})[_0x1ebdea('0x38')](handleEntityNotFound(_0x350fcb,null))[_0x1ebdea('0x38')](saveUpdates(_0x5b52df['body'],null))[_0x1ebdea('0x38')](respondWithResult(_0x350fcb,null))[_0x1ebdea('0x5d')](handleError(_0x350fcb,null));},exports['destroy']=function(_0x3e7266,_0x4991b6){const _0x450fcd=_0x70d0e1;return db['SalesforceAccount'][_0x450fcd('0xf')]({'where':{'id':_0x3e7266[_0x450fcd('0x49')]['id']}})[_0x450fcd('0x38')](handleEntityNotFound(_0x4991b6,null))['then'](removeEntity(_0x4991b6,null))[_0x450fcd('0x5d')](handleError(_0x4991b6,null));},exports[_0x70d0e1('0x3c')]=function(_0x241a7f,_0x1a6f15){const _0x40f0a1=_0x70d0e1;let _0x2b514c={};const _0x1ef936={};let _0x275431,_0x3134c7;return db[_0x40f0a1('0x66')][_0x40f0a1('0xf')]({'where':{'id':_0x241a7f[_0x40f0a1('0x49')]['id']}})[_0x40f0a1('0x38')](handleEntityNotFound(_0x1a6f15,null))[_0x40f0a1('0x38')](function(_0x52fdda){const _0x430271=_0x40f0a1;if(_0x52fdda)return _0x275431=_0x52fdda,_0x1ef936[_0x430271('0x1c')]=_[_0x430271('0x62')](db[_0x430271('0x1e')][_0x430271('0x0')]),_0x1ef936[_0x430271('0x2c')]=_[_0x430271('0x62')](_0x241a7f[_0x430271('0x2c')]),_0x1ef936[_0x430271('0x34')]=_[_0x430271('0x4')](_0x1ef936['model'],_0x1ef936['query']),_0x2b514c['attributes']=_[_0x430271('0x4')](_0x1ef936[_0x430271('0x1c')],qs[_0x430271('0x26')](_0x241a7f['query'][_0x430271('0x26')])),_0x2b514c[_0x430271('0x1')]=_0x2b514c[_0x430271('0x1')][_0x430271('0x12')]?_0x2b514c[_0x430271('0x1')]:_0x1ef936['model'],_0x2b514c[_0x430271('0x67')]=qs[_0x430271('0x2a')](_0x241a7f[_0x430271('0x2c')]['sort']),_0x2b514c[_0x430271('0x37')]=qs['filters'](_[_0x430271('0xb')](_0x241a7f[_0x430271('0x2c')],_0x1ef936[_0x430271('0x34')])),_0x241a7f[_0x430271('0x2c')]['filter']&&(_0x2b514c[_0x430271('0x37')]=_[_0x430271('0x45')](_0x2b514c[_0x430271('0x37')],{[Op['or']]:_['map'](_0x2b514c['attributes'],function(_0x17e55b){const _0x259641=_0x430271,_0x549e06={};return _0x549e06[_0x17e55b]={[Op['like']]:'%'+_0x241a7f[_0x259641('0x2c')][_0x259641('0x35')]+'%'},_0x549e06;})})),_0x2b514c=_[_0x430271('0x45')]({},_0x2b514c,_0x241a7f['options']),_0x275431[_0x430271('0x3c')](_0x2b514c);})[_0x40f0a1('0x38')](function(_0x13d73d){const _0x353abf=_0x40f0a1;if(_0x13d73d)return _0x3134c7=_0x13d73d[_0x353abf('0x12')],typeof _0x241a7f['query'][_0x353abf('0x58')]===_0x353abf('0x8')&&(_0x2b514c[_0x353abf('0x39')]=qs[_0x353abf('0x39')](_0x241a7f[_0x353abf('0x2c')][_0x353abf('0x39')]),_0x2b514c[_0x353abf('0x52')]=qs['offset'](_0x241a7f['query'][_0x353abf('0x52')])),_0x275431[_0x353abf('0x3c')](_0x2b514c);})['then'](function(_0x313b8d){if(_0x313b8d)return _0x313b8d?{'count':_0x3134c7,'rows':_0x313b8d}:null;})['then'](respondWithResult(_0x1a6f15,null))[_0x40f0a1('0x5d')](handleError(_0x1a6f15,null));},exports[_0x70d0e1('0x59')]=function(_0x5d0935,_0x5ee5c7){const _0x311077=_0x70d0e1;return _0x5d0935[_0x311077('0x36')]['id']&&delete _0x5d0935[_0x311077('0x36')]['id'],db['SalesforceAccount']['findOne']({'where':{'id':_0x5d0935['params']['id']}})[_0x311077('0x38')](handleEntityNotFound(_0x5ee5c7,null))[_0x311077('0x38')](function(_0x3b4b15){const _0x1f2df8=_0x311077;if(_0x3b4b15)return _0x5d0935['body']['AccountId']=_0x3b4b15['id'],_0x5d0935[_0x1f2df8('0x36')]['Subjects']=integrations[_0x1f2df8('0x68')](_0x5d0935[_0x1f2df8('0x36')][_0x1f2df8('0x43')],_0x5d0935[_0x1f2df8('0x36')][_0x1f2df8('0x63')]),_0x5d0935[_0x1f2df8('0x36')]['Descriptions']=integrations[_0x1f2df8('0x55')](_0x5d0935[_0x1f2df8('0x36')]['channel'],_0x5d0935[_0x1f2df8('0x36')][_0x1f2df8('0x63')]),db['SalesforceConfiguration'][_0x1f2df8('0x13')](_0x5d0935[_0x1f2df8('0x36')],{'include':[{'model':db[_0x1f2df8('0x54')],'as':'Subjects'},{'model':db[_0x1f2df8('0x54')],'as':'Descriptions'}]});return null;})[_0x311077('0x38')](respondWithResult(_0x5ee5c7,null))[_0x311077('0x5d')](handleError(_0x5ee5c7,null));},exports[_0x70d0e1('0x2e')]=function(_0x4a4587,_0x1e34be){const _0x1573db=_0x70d0e1;let _0x5a5bb7,_0x57dbda='',_0x5595a3=_0x1573db('0x41');return db[_0x1573db('0x66')][_0x1573db('0xf')]({'where':{'id':_0x4a4587[_0x1573db('0x49')]['id']},'attributes':['id','remoteUri','clientId',_0x1573db('0x3e'),_0x1573db('0x47'),_0x1573db('0x3f'),_0x1573db('0x23')]})[_0x1573db('0x38')](handleEntityNotFound(_0x1e34be,null))[_0x1573db('0x38')](function(_0x4a960c){const _0x58687f=_0x1573db;if(_0x4a960c){_0x57dbda=_0x4a960c[_0x58687f('0x64')];const _0x32ae89=_0x57dbda[_0x58687f('0x31')](-0x1);return _0x32ae89==='/'&&(_0x57dbda=_0x57dbda[_0x58687f('0x14')](0x0,_0x57dbda[_0x58687f('0x40')](_0x32ae89))),_0x5a5bb7=new jsforce[(_0x58687f('0x1a'))]({'oauth2':{'loginUrl':_0x57dbda,'clientId':_0x4a960c[_0x58687f('0xe')],'clientSecret':_0x4a960c[_0x58687f('0x3e')]}}),_0x5a5bb7[_0x58687f('0x50')](_0x4a960c[_0x58687f('0x47')],_0x4a960c[_0x58687f('0x3f')]['concat'](_0x4a960c['securityToken']));}})[_0x1573db('0x38')](function(_0x40a1d7){const _0x2a629e=_0x1573db;if(_0x40a1d7)return!_[_0x2a629e('0x65')](_0x4a4587['query'][_0x2a629e('0x32')])&&(_0x5595a3=_0x4a4587[_0x2a629e('0x2c')][_0x2a629e('0x32')]),_0x5a5bb7[_0x2a629e('0x48')](_0x5595a3)[_0x2a629e('0x16')]();})[_0x1573db('0x38')](function(_0x10a7fe){const _0x434590=_0x1573db;let _0x28d028=[_0x434590('0x5b'),_0x434590('0x51'),_0x434590('0x1d'),_0x434590('0x4b'),_0x434590('0x21'),_0x434590('0x1b'),'Status','Type'];!_[_0x434590('0x65')](_0x4a4587[_0x434590('0x2c')][_0x434590('0x32')])&&_0x4a4587[_0x434590('0x2c')]['ticketType']===_0x434590('0x15')&&(_0x28d028=[_0x434590('0x2d'),'Origin',_0x434590('0x53'),_0x434590('0x5e'),_0x434590('0x1b'),_0x434590('0x30'),_0x434590('0x10'),_0x434590('0x20')]);if(_0x10a7fe)return _[_0x434590('0x28')](_0x10a7fe[_0x434590('0x26')],function(_0x311635){const _0x299db1=_0x434590;return _0x311635[_0x299db1('0x2f')]===![]&&!_0x28d028[_0x299db1('0x4c')](_0x311635[_0x299db1('0x5f')]);}),{'count':_0x10a7fe['fields']['length'],'rows':_['map'](_0x10a7fe['fields'],function(_0x47eee5){const _0x594d54=_0x434590;return{'id':_0x47eee5[_0x594d54('0x5f')],'name':_0x47eee5['label'],'custom':_0x47eee5[_0x594d54('0x2f')],'options':_0x47eee5['picklistValues'][_0x594d54('0x12')]>0x0?_[_0x594d54('0x2')](_0x47eee5[_0x594d54('0x22')],function(_0x17752a){const _0x1568e3=_0x594d54;return{'name':_0x17752a[_0x1568e3('0x29')],'value':_0x17752a[_0x1568e3('0x1f')]};}):_0x47eee5[_0x594d54('0x63')]=='boolean'?[{'name':'True','value':_0x594d54('0x4f')},{'name':_0x594d54('0x57'),'value':_0x594d54('0x33')}]:[]};})};})['then'](respondWithResult(_0x1e34be,null))['catch'](function(_0x115d95){const _0x2cd603=_0x1573db;let _0x1884c1=_0x4a4587[_0x2cd603('0x2c')][_0x2cd603('0x24')]?0x1f4:_0x115d95[_0x2cd603('0xd')]||0x1f4;logger[_0x2cd603('0x4a')](_0x2cd603('0x2b'),'getFields',_0x1884c1,JSON[_0x2cd603('0x5c')](_0x115d95)),delete _0x115d95[_0x2cd603('0x5f')],_0x1884c1===0x191&&(_0x1884c1=0x190),_0x1e34be[_0x2cd603('0x11')](_0x1884c1)[_0x2cd603('0x3a')](_0x4a4587[_0x2cd603('0x2c')][_0x2cd603('0x24')]?{'message':_0x2cd603('0x17'),'statusCode':_0x115d95[_0x2cd603('0xd')]}:_0x115d95);});}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index f453d98..22bb4e5 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a282_0x5d2d=['define','./intSalesforceAccount.attributes'];(function(_0x1b988a,_0x5d2ddf){const _0x48de21=function(_0x2dd1b7){while(--_0x2dd1b7){_0x1b988a['push'](_0x1b988a['shift']());}};_0x48de21(++_0x5d2ddf);}(a282_0x5d2d,0xb9));const a282_0x48de=function(_0x1b988a,_0x5d2ddf){_0x1b988a=_0x1b988a-0x0;let _0x48de21=a282_0x5d2d[_0x1b988a];return _0x48de21;};const _0x3bab7f=a282_0x48de;'use strict';const attributes=require(_0x3bab7f('0x0'));module['exports']=function(_0x2dd1b7){const _0x3c46b7=_0x3bab7f,_0x5e399b=_0x2dd1b7[_0x3c46b7('0x1')]('SalesforceAccount',attributes,{'tableName':'int_salesforce_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e399b;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index ea1b0e5..b1eea34 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a283_0x9f6d=['debug','include','info','catch','../../config/logger','then','findOne','limit','options','raw','message','ShowSalesforceAccount','model','attributes','../../mysqldb','where','map','error','GetSalesforceAccount','lodash','stringify','SalesforceAccount'];(function(_0x1d86b6,_0x9f6d8c){const _0x8cfb8b=function(_0x35b5a3){while(--_0x35b5a3){_0x1d86b6['push'](_0x1d86b6['shift']());}};_0x8cfb8b(++_0x9f6d8c);}(a283_0x9f6d,0x1d1));const a283_0x8cfb=function(_0x1d86b6,_0x9f6d8c){_0x1d86b6=_0x1d86b6-0x0;let _0x8cfb8b=a283_0x9f6d[_0x1d86b6];return _0x8cfb8b;};const _0x2ecac7=a283_0x8cfb;'use strict';const _=require(_0x2ecac7('0x10')),db=require(_0x2ecac7('0xb'))['db'],logger=require(_0x2ecac7('0x1'))('rpc');exports[_0x2ecac7('0xf')]=function(_0x35b5a3){const _0x5aaf80=this;return new Promise(function(_0x5be5d4,_0xb87a28){const _0x460949=a283_0x8cfb;return db['SalesforceAccount']['findAll']({'raw':_0x35b5a3[_0x460949('0x5')]?_0x35b5a3['options'][_0x460949('0x6')]===undefined?!![]:![]:!![],'where':_0x35b5a3['options']?_0x35b5a3[_0x460949('0x5')][_0x460949('0xc')]||null:null,'attributes':_0x35b5a3[_0x460949('0x5')]?_0x35b5a3[_0x460949('0x5')][_0x460949('0xa')]||null:null,'limit':_0x35b5a3['options']?_0x35b5a3[_0x460949('0x5')][_0x460949('0x4')]||null:null,'include':_0x35b5a3[_0x460949('0x5')]?_0x35b5a3[_0x460949('0x5')][_0x460949('0x14')]?_[_0x460949('0xd')](_0x35b5a3[_0x460949('0x5')]['include'],function(_0xee8632){const _0x108473=_0x460949;return{'model':db[_0xee8632[_0x108473('0x9')]],'as':_0xee8632['as'],'attributes':_0xee8632['attributes'],'include':_0xee8632[_0x108473('0x14')]?_['map'](_0xee8632[_0x108473('0x14')],function(_0x5e76bd){const _0x289628=_0x108473;return{'model':db[_0x5e76bd[_0x289628('0x9')]],'as':_0x5e76bd['as'],'attributes':_0x5e76bd[_0x289628('0xa')],'include':_0x5e76bd['include']?_[_0x289628('0xd')](_0x5e76bd[_0x289628('0x14')],function(_0x1e4a86){const _0x5c594c=_0x289628;return{'model':db[_0x1e4a86['model']],'as':_0x1e4a86['as'],'attributes':_0x1e4a86[_0x5c594c('0xa')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x320ad3){const _0x23348a=_0x460949;logger[_0x23348a('0x15')](_0x23348a('0xf'),_0x35b5a3),logger[_0x23348a('0x13')](_0x23348a('0xf'),_0x35b5a3,JSON[_0x23348a('0x11')](_0x320ad3)),_0x5be5d4(_0x320ad3);})[_0x460949('0x0')](function(_0x3c35ca){const _0x258f66=_0x460949;logger[_0x258f66('0xe')](_0x258f66('0xf'),_0x3c35ca[_0x258f66('0x7')],_0x35b5a3),_0xb87a28(_0x5aaf80[_0x258f66('0xe')](0x1f4,_0x3c35ca[_0x258f66('0x7')]));});});},exports[_0x2ecac7('0x8')]=function(_0x48e08d){const _0x523547=this;return new Promise(function(_0x431721,_0x3c01a3){const _0x2bb1ff=a283_0x8cfb;return db[_0x2bb1ff('0x12')][_0x2bb1ff('0x3')]({'raw':_0x48e08d[_0x2bb1ff('0x5')]?_0x48e08d[_0x2bb1ff('0x5')][_0x2bb1ff('0x6')]===undefined?!![]:![]:!![],'where':_0x48e08d['options']?_0x48e08d[_0x2bb1ff('0x5')][_0x2bb1ff('0xc')]||null:null,'attributes':_0x48e08d['options']?_0x48e08d[_0x2bb1ff('0x5')][_0x2bb1ff('0xa')]||null:null,'include':_0x48e08d[_0x2bb1ff('0x5')]?_0x48e08d[_0x2bb1ff('0x5')]['include']?_[_0x2bb1ff('0xd')](_0x48e08d[_0x2bb1ff('0x5')][_0x2bb1ff('0x14')],function(_0xe7d3e0){const _0x284559=_0x2bb1ff;return{'model':db[_0xe7d3e0[_0x284559('0x9')]],'as':_0xe7d3e0['as'],'attributes':_0xe7d3e0['attributes'],'include':_0xe7d3e0['include']?_[_0x284559('0xd')](_0xe7d3e0[_0x284559('0x14')],function(_0x13b2bd){const _0x56b7b0=_0x284559;return{'model':db[_0x13b2bd[_0x56b7b0('0x9')]],'as':_0x13b2bd['as'],'attributes':_0x13b2bd[_0x56b7b0('0xa')],'include':_0x13b2bd[_0x56b7b0('0x14')]?_[_0x56b7b0('0xd')](_0x13b2bd[_0x56b7b0('0x14')],function(_0x218103){const _0x336031=_0x56b7b0;return{'model':db[_0x218103[_0x336031('0x9')]],'as':_0x218103['as'],'attributes':_0x218103[_0x336031('0xa')]};}):[]};}):[]};}):[]:[]})[_0x2bb1ff('0x2')](function(_0x3ad7e0){const _0x253a92=_0x2bb1ff;logger['info']('ShowSalesforceAccount',_0x48e08d),logger[_0x253a92('0x13')](_0x253a92('0x8'),_0x48e08d,JSON[_0x253a92('0x11')](_0x3ad7e0)),_0x431721(_0x3ad7e0);})['catch'](function(_0x55eb03){const _0x1c1f6e=_0x2bb1ff;logger[_0x1c1f6e('0xe')]('ShowSalesforceAccount',_0x55eb03[_0x1c1f6e('0x7')],_0x48e08d),_0x3c01a3(_0x523547['error'](0x1f4,_0x55eb03[_0x1c1f6e('0x7')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index 1e242e3..e1a5581 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a284_0xcf27=['update','./intSalesforceConfiguration.controller','get','getDescriptions','Router','/:id','show','index','getSubjects','create','put','getFields','isAuthenticated','express','destroy'];(function(_0x123e76,_0xcf271a){const _0x526eae=function(_0x3f3a76){while(--_0x3f3a76){_0x123e76['push'](_0x123e76['shift']());}};_0x526eae(++_0xcf271a);}(a284_0xcf27,0x1c1));const a284_0x526e=function(_0x123e76,_0xcf271a){_0x123e76=_0x123e76-0x0;let _0x526eae=a284_0xcf27[_0x123e76];return _0x526eae;};const _0x1b2f5b=a284_0x526e;'use strict';const express=require(_0x1b2f5b('0xe')),router=express[_0x1b2f5b('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x1b2f5b('0x2'));router[_0x1b2f5b('0x3')]('/',auth['isAuthenticated'](),controller[_0x1b2f5b('0x8')]),router['get'](_0x1b2f5b('0x6'),auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0x7')]),router[_0x1b2f5b('0x3')]('/:id/fields',auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0xc')]),router[_0x1b2f5b('0x3')]('/:id/subjects',auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0x9')]),router['get']('/:id/descriptions',auth['isAuthenticated'](),controller[_0x1b2f5b('0x4')]),router['post']('/',auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0xa')]),router[_0x1b2f5b('0xb')](_0x1b2f5b('0x6'),auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0x1')]),router['delete'](_0x1b2f5b('0x6'),auth[_0x1b2f5b('0xd')](),controller[_0x1b2f5b('0x0')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index df457a8..853712b 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a285_0xcebb=['contact_lead','Case','ENUM','STRING','Task','lead','nothing','exports'];(function(_0x3fe790,_0xcebbb1){const _0x3d278e=function(_0x4ffdc4){while(--_0x4ffdc4){_0x3fe790['push'](_0x3fe790['shift']());}};_0x3d278e(++_0xcebbb1);}(a285_0xcebb,0x1b9));const a285_0x3d27=function(_0x3fe790,_0xcebbb1){_0x3fe790=_0x3fe790-0x0;let _0x3d278e=a285_0xcebb[_0x3fe790];return _0x3d278e;};const _0x51d1b1=a285_0x3d27;'use strict';const Sequelize=require('sequelize');module[_0x51d1b1('0x6')]={'name':{'type':Sequelize[_0x51d1b1('0x2')]},'description':{'type':Sequelize[_0x51d1b1('0x2')]},'ticketType':{'type':Sequelize[_0x51d1b1('0x1')](_0x51d1b1('0x3'),_0x51d1b1('0x0')),'defaultValue':_0x51d1b1('0x3')},'moduleSearch':{'type':Sequelize[_0x51d1b1('0x1')](_0x51d1b1('0x7'),'contact',_0x51d1b1('0x4')),'defaultValue':_0x51d1b1('0x7')},'moduleCreate':{'type':Sequelize['ENUM'](_0x51d1b1('0x5'),'contact',_0x51d1b1('0x4')),'defaultValue':_0x51d1b1('0x4')}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index 7ef4816..0d114c0 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a286_0x4180=['includeAll','key','limit','SalesforceField','status','Content-Range','intersection','sequelize','rawAttributes','send','catch','attributes','update','model','getSubjects','type','end','lodash','like','undefined','where','VIRTUAL','body','SalesforceConfiguration','keys','getDescriptions','findAll','rows','nolimit','merge','filter','../../mysqldb','sendStatus','include','create','then','findOne','stack','query','filters','offset','getFields','../../components/parsers/qs','options','json','length','set','fields','count','params','destroy','name','error','order','sort','map','pick'];(function(_0x439e90,_0x4180f4){const _0x25e8d5=function(_0x53df4a){while(--_0x53df4a){_0x439e90['push'](_0x439e90['shift']());}};_0x25e8d5(++_0x4180f4);}(a286_0x4180,0xd2));const a286_0x25e8=function(_0x439e90,_0x4180f4){_0x439e90=_0x439e90-0x0;let _0x25e8d5=a286_0x4180[_0x439e90];return _0x25e8d5;};const _0x4abf4a=a286_0x25e8;'use strict';const _=require(_0x4abf4a('0x23')),qs=require(_0x4abf4a('0x3')),logger=require('../../config/logger')('api'),db=require(_0x4abf4a('0x31'))['db'],{Op}=require(_0x4abf4a('0x19'));function respondWithResult(_0x53df4a,_0x1dacef){return _0x1dacef=_0x1dacef||0xc8,function(_0x457040){if(_0x457040)return _0x53df4a['status'](_0x1dacef)['json'](_0x457040);};}function respondWithFilteredResult(_0x442a77,_0x4102fe){return function(_0x4082e9){const _0x50e872=a286_0x25e8;if(_0x4082e9){const _0x362277=_0x4082e9['count'],_0x3d3f1f=_0x4102fe[_0x50e872('0x1')];let _0x18b4f3=_0x4102fe[_0x50e872('0x1')]+_0x4102fe[_0x50e872('0x14')],_0x1976bc;return _0x18b4f3>=_0x362277?(_0x18b4f3=_0x362277,_0x1976bc=0xc8):_0x1976bc=0xce,_0x442a77[_0x50e872('0x16')](_0x1976bc),_0x442a77[_0x50e872('0x7')](_0x50e872('0x17'),_0x3d3f1f+'-'+_0x18b4f3+'/'+_0x362277)[_0x50e872('0x5')](_0x4082e9);}return null;};}function saveUpdates(_0x5d6e61){return function(_0x3e63bd){const _0xcc18cd=a286_0x25e8;if(_0x3e63bd)return _0x3e63bd[_0xcc18cd('0x1e')](_0x5d6e61)['then'](function(_0x1ca696){return _0x1ca696;});return null;};}function removeEntity(_0x51e704){return function(_0x38c61f){const _0xd5ed0f=a286_0x25e8;if(_0x38c61f)return _0x38c61f[_0xd5ed0f('0xb')]()[_0xd5ed0f('0x35')](function(){const _0x1bd30c=_0xd5ed0f;_0x51e704[_0x1bd30c('0x16')](0xcc)[_0x1bd30c('0x22')]();});};}function handleEntityNotFound(_0x4de7aa){return function(_0x4d5c06){const _0xe5b002=a286_0x25e8;return!_0x4d5c06&&_0x4de7aa[_0xe5b002('0x32')](0x194),_0x4d5c06;};}function handleError(_0x2ce2f4,_0x382671){return _0x382671=_0x382671||0x1f4,function(_0x51e6b6){const _0x2735f6=a286_0x25e8;logger[_0x2735f6('0xd')](_0x51e6b6[_0x2735f6('0x37')]),_0x51e6b6[_0x2735f6('0xc')]&&delete _0x51e6b6[_0x2735f6('0xc')],_0x2ce2f4[_0x2735f6('0x16')](_0x382671)[_0x2735f6('0x1b')](_0x51e6b6);};}exports['index']=function(_0x40f7a4,_0x290d96){const _0x3392c1=_0x4abf4a;let _0x1d9574={};const _0xe5dee9={},_0x2a474c={'count':0x0,'rows':[]},_0x5abc00=_[_0x3392c1('0x10')](db[_0x3392c1('0x29')][_0x3392c1('0x1a')],function(_0x592ef5){const _0x3c26f8=_0x3392c1;return{'name':_0x592ef5['fieldName'],'type':_0x592ef5[_0x3c26f8('0x21')][_0x3c26f8('0x13')]};});_0xe5dee9[_0x3392c1('0x1f')]=_[_0x3392c1('0x10')](_0x5abc00,'name'),_0xe5dee9[_0x3392c1('0x38')]=_['keys'](_0x40f7a4[_0x3392c1('0x38')]),_0xe5dee9['filters']=_[_0x3392c1('0x18')](_0xe5dee9['model'],_0xe5dee9['query']),_0x1d9574[_0x3392c1('0x1d')]=_[_0x3392c1('0x18')](_0xe5dee9[_0x3392c1('0x1f')],qs[_0x3392c1('0x8')](_0x40f7a4[_0x3392c1('0x38')][_0x3392c1('0x8')])),_0x1d9574[_0x3392c1('0x1d')]=_0x1d9574['attributes']['length']?_0x1d9574['attributes']:_0xe5dee9['model'];typeof _0x40f7a4[_0x3392c1('0x38')][_0x3392c1('0x2e')]==='undefined'&&(_0x1d9574[_0x3392c1('0x14')]=qs[_0x3392c1('0x14')](_0x40f7a4['query'][_0x3392c1('0x14')]),_0x1d9574[_0x3392c1('0x1')]=qs[_0x3392c1('0x1')](_0x40f7a4[_0x3392c1('0x38')]['offset']));_0x1d9574[_0x3392c1('0xe')]=qs[_0x3392c1('0xf')](_0x40f7a4[_0x3392c1('0x38')]['sort']),_0x1d9574[_0x3392c1('0x26')]=qs['filters'](_[_0x3392c1('0x11')](_0x40f7a4['query'],_0xe5dee9[_0x3392c1('0x0')]),_0x5abc00);_0x40f7a4[_0x3392c1('0x38')][_0x3392c1('0x30')]&&(_0x1d9574[_0x3392c1('0x26')]=_[_0x3392c1('0x2f')](_0x1d9574['where'],{[Op['or']]:_[_0x3392c1('0x10')](_0x5abc00,function(_0x18b66d){const _0x2146c7=_0x3392c1;if(_0x18b66d[_0x2146c7('0x21')]!==_0x2146c7('0x27')){const _0x3e9c77={};return _0x3e9c77[_0x18b66d[_0x2146c7('0xc')]]={[Op[_0x2146c7('0x24')]]:'%'+_0x40f7a4['query'][_0x2146c7('0x30')]+'%'},_0x3e9c77;}})}));_0x1d9574=_['merge']({},_0x1d9574,_0x40f7a4['options']);const _0x383dff={'where':_0x1d9574[_0x3392c1('0x26')]};return db[_0x3392c1('0x29')][_0x3392c1('0x9')](_0x383dff)[_0x3392c1('0x35')](function(_0x363721){const _0x125b8a=_0x3392c1;return _0x2a474c[_0x125b8a('0x9')]=_0x363721,_0x40f7a4[_0x125b8a('0x38')][_0x125b8a('0x12')]&&(_0x1d9574['include']=[{'all':!![]}]),db[_0x125b8a('0x29')][_0x125b8a('0x2c')](_0x1d9574);})[_0x3392c1('0x35')](function(_0x11bbbd){const _0x453649=_0x3392c1;return _0x2a474c[_0x453649('0x2d')]=_0x11bbbd,_0x2a474c;})[_0x3392c1('0x35')](respondWithFilteredResult(_0x290d96,_0x1d9574))[_0x3392c1('0x1c')](handleError(_0x290d96,null));},exports['show']=function(_0x111bef,_0x48c1b6){const _0x15bf35=_0x4abf4a;let _0xa0260b={'raw':![],'where':{'id':_0x111bef['params']['id']}};const _0x5564eb={};return _0x5564eb[_0x15bf35('0x1f')]=_[_0x15bf35('0x2a')](db['SalesforceConfiguration']['rawAttributes']),_0x5564eb['query']=_[_0x15bf35('0x2a')](_0x111bef[_0x15bf35('0x38')]),_0x5564eb[_0x15bf35('0x0')]=_[_0x15bf35('0x18')](_0x5564eb['model'],_0x5564eb[_0x15bf35('0x38')]),_0xa0260b[_0x15bf35('0x1d')]=_[_0x15bf35('0x18')](_0x5564eb[_0x15bf35('0x1f')],qs[_0x15bf35('0x8')](_0x111bef['query']['fields'])),_0xa0260b['attributes']=_0xa0260b['attributes'][_0x15bf35('0x6')]?_0xa0260b[_0x15bf35('0x1d')]:_0x5564eb[_0x15bf35('0x1f')],_0x111bef[_0x15bf35('0x38')][_0x15bf35('0x12')]&&(_0xa0260b[_0x15bf35('0x33')]=[{'all':!![]}]),_0xa0260b=_['merge']({},_0xa0260b,_0x111bef[_0x15bf35('0x4')]),db[_0x15bf35('0x29')]['findOne'](_0xa0260b)[_0x15bf35('0x35')](handleEntityNotFound(_0x48c1b6,null))[_0x15bf35('0x35')](respondWithResult(_0x48c1b6,null))[_0x15bf35('0x1c')](handleError(_0x48c1b6,null));},exports[_0x4abf4a('0x34')]=function(_0xe2e011,_0x4b0603){const _0x1e9c6f=_0x4abf4a;return db[_0x1e9c6f('0x29')][_0x1e9c6f('0x34')](_0xe2e011['body'],{})['then'](respondWithResult(_0x4b0603,0xc9))[_0x1e9c6f('0x1c')](handleError(_0x4b0603,null));},exports[_0x4abf4a('0x1e')]=function(_0x32ca77,_0x12e8c2){const _0x126012=_0x4abf4a;return _0x32ca77[_0x126012('0x28')]['id']&&delete _0x32ca77[_0x126012('0x28')]['id'],db[_0x126012('0x29')]['findOne']({'where':{'id':_0x32ca77['params']['id']}})['then'](handleEntityNotFound(_0x12e8c2,null))[_0x126012('0x35')](saveUpdates(_0x32ca77[_0x126012('0x28')],null))['then'](respondWithResult(_0x12e8c2,null))[_0x126012('0x1c')](handleError(_0x12e8c2,null));},exports[_0x4abf4a('0xb')]=function(_0x226d5e,_0x38c66c){const _0x697ce7=_0x4abf4a;return db['SalesforceConfiguration'][_0x697ce7('0x36')]({'where':{'id':_0x226d5e[_0x697ce7('0xa')]['id']}})[_0x697ce7('0x35')](handleEntityNotFound(_0x38c66c,null))[_0x697ce7('0x35')](removeEntity(_0x38c66c,null))['catch'](handleError(_0x38c66c,null));},exports[_0x4abf4a('0x2')]=function(_0x376739,_0x44aa70){const _0x29b213=_0x4abf4a;let _0xdaf913={};const _0x5b19ca={};let _0x3c29e2,_0x18d9a6;return db[_0x29b213('0x29')][_0x29b213('0x36')]({'where':{'id':_0x376739[_0x29b213('0xa')]['id']}})[_0x29b213('0x35')](handleEntityNotFound(_0x44aa70,null))[_0x29b213('0x35')](function(_0xb071a7){const _0x3170bb=_0x29b213;if(_0xb071a7)return _0x3c29e2=_0xb071a7,_0x5b19ca[_0x3170bb('0x1f')]=_[_0x3170bb('0x2a')](db['SalesforceField'][_0x3170bb('0x1a')]),_0x5b19ca['query']=_[_0x3170bb('0x2a')](_0x376739[_0x3170bb('0x38')]),_0x5b19ca[_0x3170bb('0x0')]=_[_0x3170bb('0x18')](_0x5b19ca['model'],_0x5b19ca[_0x3170bb('0x38')]),_0xdaf913[_0x3170bb('0x1d')]=_[_0x3170bb('0x18')](_0x5b19ca[_0x3170bb('0x1f')],qs[_0x3170bb('0x8')](_0x376739['query']['fields'])),_0xdaf913[_0x3170bb('0x1d')]=_0xdaf913[_0x3170bb('0x1d')][_0x3170bb('0x6')]?_0xdaf913[_0x3170bb('0x1d')]:_0x5b19ca[_0x3170bb('0x1f')],_0xdaf913['order']=qs[_0x3170bb('0xf')](_0x376739['query'][_0x3170bb('0xf')]),_0xdaf913[_0x3170bb('0x26')]=qs[_0x3170bb('0x0')](_['pick'](_0x376739[_0x3170bb('0x38')],_0x5b19ca['filters'])),_0x376739['query'][_0x3170bb('0x30')]&&(_0xdaf913[_0x3170bb('0x26')]=_[_0x3170bb('0x2f')](_0xdaf913[_0x3170bb('0x26')],{[Op['or']]:_[_0x3170bb('0x10')](_0xdaf913[_0x3170bb('0x1d')],function(_0x1904d2){const _0x346ca3=_0x3170bb,_0x5ae852={};return _0x5ae852[_0x1904d2]={[Op['like']]:'%'+_0x376739[_0x346ca3('0x38')][_0x346ca3('0x30')]+'%'},_0x5ae852;})})),_0xdaf913=_['merge']({},_0xdaf913,_0x376739[_0x3170bb('0x4')]),_0x3c29e2[_0x3170bb('0x2')](_0xdaf913);})[_0x29b213('0x35')](function(_0x654958){const _0x149a13=_0x29b213;if(_0x654958)return _0x18d9a6=_0x654958[_0x149a13('0x6')],typeof _0x376739[_0x149a13('0x38')]['nolimit']===_0x149a13('0x25')&&(_0xdaf913[_0x149a13('0x14')]=qs[_0x149a13('0x14')](_0x376739[_0x149a13('0x38')]['limit']),_0xdaf913['offset']=qs[_0x149a13('0x1')](_0x376739[_0x149a13('0x38')][_0x149a13('0x1')])),_0x3c29e2['getFields'](_0xdaf913);})[_0x29b213('0x35')](function(_0x1e0470){if(_0x1e0470)return _0x1e0470?{'count':_0x18d9a6,'rows':_0x1e0470}:null;})[_0x29b213('0x35')](respondWithResult(_0x44aa70,null))[_0x29b213('0x1c')](handleError(_0x44aa70,null));},exports['getSubjects']=function(_0x180a73,_0x810274){const _0x1c07ba=_0x4abf4a;let _0xdd73fa={};const _0x54da18={};let _0x2451bf,_0x51d5dc;return db[_0x1c07ba('0x29')][_0x1c07ba('0x36')]({'where':{'id':_0x180a73[_0x1c07ba('0xa')]['id']}})['then'](handleEntityNotFound(_0x810274,null))[_0x1c07ba('0x35')](function(_0x3fdbaf){const _0x20e34f=_0x1c07ba;if(_0x3fdbaf)return _0x2451bf=_0x3fdbaf,_0x54da18['model']=_[_0x20e34f('0x2a')](db[_0x20e34f('0x15')][_0x20e34f('0x1a')]),_0x54da18[_0x20e34f('0x38')]=_[_0x20e34f('0x2a')](_0x180a73[_0x20e34f('0x38')]),_0x54da18[_0x20e34f('0x0')]=_['intersection'](_0x54da18[_0x20e34f('0x1f')],_0x54da18['query']),_0xdd73fa[_0x20e34f('0x1d')]=_['intersection'](_0x54da18['model'],qs[_0x20e34f('0x8')](_0x180a73[_0x20e34f('0x38')][_0x20e34f('0x8')])),_0xdd73fa[_0x20e34f('0x1d')]=_0xdd73fa[_0x20e34f('0x1d')]['length']?_0xdd73fa['attributes']:_0x54da18['model'],_0xdd73fa[_0x20e34f('0xe')]=qs[_0x20e34f('0xf')](_0x180a73['query'][_0x20e34f('0xf')]),_0xdd73fa[_0x20e34f('0x26')]=qs[_0x20e34f('0x0')](_[_0x20e34f('0x11')](_0x180a73['query'],_0x54da18['filters'])),_0x180a73['query'][_0x20e34f('0x30')]&&(_0xdd73fa['where']=_[_0x20e34f('0x2f')](_0xdd73fa[_0x20e34f('0x26')],{[Op['or']]:_[_0x20e34f('0x10')](_0xdd73fa[_0x20e34f('0x1d')],function(_0x16a385){const _0x44812a=_0x20e34f,_0x315823={};return _0x315823[_0x16a385]={[Op['like']]:'%'+_0x180a73[_0x44812a('0x38')]['filter']+'%'},_0x315823;})})),_0xdd73fa=_[_0x20e34f('0x2f')]({},_0xdd73fa,_0x180a73[_0x20e34f('0x4')]),_0x2451bf[_0x20e34f('0x20')](_0xdd73fa);})[_0x1c07ba('0x35')](function(_0x578c78){const _0x23f9d5=_0x1c07ba;if(_0x578c78)return _0x51d5dc=_0x578c78[_0x23f9d5('0x6')],typeof _0x180a73[_0x23f9d5('0x38')]['nolimit']===_0x23f9d5('0x25')&&(_0xdd73fa[_0x23f9d5('0x14')]=qs[_0x23f9d5('0x14')](_0x180a73['query'][_0x23f9d5('0x14')]),_0xdd73fa['offset']=qs['offset'](_0x180a73[_0x23f9d5('0x38')][_0x23f9d5('0x1')])),_0x2451bf[_0x23f9d5('0x20')](_0xdd73fa);})[_0x1c07ba('0x35')](function(_0x1625f8){if(_0x1625f8)return _0x1625f8?{'count':_0x51d5dc,'rows':_0x1625f8}:null;})[_0x1c07ba('0x35')](respondWithResult(_0x810274,null))[_0x1c07ba('0x1c')](handleError(_0x810274,null));},exports[_0x4abf4a('0x2b')]=function(_0x2d38ca,_0x4ccb2c){const _0x4978f4=_0x4abf4a;let _0x559085={};const _0x18e0be={};let _0x2cb566,_0x444162;return db[_0x4978f4('0x29')][_0x4978f4('0x36')]({'where':{'id':_0x2d38ca[_0x4978f4('0xa')]['id']}})[_0x4978f4('0x35')](handleEntityNotFound(_0x4ccb2c,null))[_0x4978f4('0x35')](function(_0x37aad2){const _0x333853=_0x4978f4;if(_0x37aad2)return _0x2cb566=_0x37aad2,_0x18e0be[_0x333853('0x1f')]=_[_0x333853('0x2a')](db[_0x333853('0x15')]['rawAttributes']),_0x18e0be[_0x333853('0x38')]=_[_0x333853('0x2a')](_0x2d38ca[_0x333853('0x38')]),_0x18e0be[_0x333853('0x0')]=_[_0x333853('0x18')](_0x18e0be[_0x333853('0x1f')],_0x18e0be[_0x333853('0x38')]),_0x559085[_0x333853('0x1d')]=_[_0x333853('0x18')](_0x18e0be[_0x333853('0x1f')],qs[_0x333853('0x8')](_0x2d38ca[_0x333853('0x38')]['fields'])),_0x559085['attributes']=_0x559085['attributes']['length']?_0x559085['attributes']:_0x18e0be['model'],_0x559085[_0x333853('0xe')]=qs[_0x333853('0xf')](_0x2d38ca[_0x333853('0x38')][_0x333853('0xf')]),_0x559085[_0x333853('0x26')]=qs['filters'](_[_0x333853('0x11')](_0x2d38ca['query'],_0x18e0be[_0x333853('0x0')])),_0x2d38ca['query'][_0x333853('0x30')]&&(_0x559085[_0x333853('0x26')]=_[_0x333853('0x2f')](_0x559085[_0x333853('0x26')],{[Op['or']]:_['map'](_0x559085[_0x333853('0x1d')],function(_0x26f04b){const _0x250621=_0x333853,_0x31b91c={};return _0x31b91c[_0x26f04b]={[Op[_0x250621('0x24')]]:'%'+_0x2d38ca[_0x250621('0x38')][_0x250621('0x30')]+'%'},_0x31b91c;})})),_0x559085=_[_0x333853('0x2f')]({},_0x559085,_0x2d38ca['options']),_0x2cb566[_0x333853('0x2b')](_0x559085);})[_0x4978f4('0x35')](function(_0x4db6b9){const _0x551a07=_0x4978f4;if(_0x4db6b9)return _0x444162=_0x4db6b9[_0x551a07('0x6')],typeof _0x2d38ca[_0x551a07('0x38')][_0x551a07('0x2e')]===_0x551a07('0x25')&&(_0x559085[_0x551a07('0x14')]=qs[_0x551a07('0x14')](_0x2d38ca[_0x551a07('0x38')]['limit']),_0x559085['offset']=qs[_0x551a07('0x1')](_0x2d38ca['query'][_0x551a07('0x1')])),_0x2cb566['getDescriptions'](_0x559085);})['then'](function(_0x499944){if(_0x499944)return _0x499944?{'count':_0x444162,'rows':_0x499944}:null;})[_0x4978f4('0x35')](respondWithResult(_0x4ccb2c,null))[_0x4978f4('0x1c')](handleError(_0x4ccb2c,null));}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index 9a9bd38..0b7774b 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a287_0x47e9=['define','SalesforceConfiguration','exports','./intSalesforceConfiguration.attributes','int_salesforce_configurations'];(function(_0x43a028,_0x47e9c2){const _0x49f26b=function(_0x450b38){while(--_0x450b38){_0x43a028['push'](_0x43a028['shift']());}};_0x49f26b(++_0x47e9c2);}(a287_0x47e9,0x15b));const a287_0x49f2=function(_0x43a028,_0x47e9c2){_0x43a028=_0x43a028-0x0;let _0x49f26b=a287_0x47e9[_0x43a028];return _0x49f26b;};const _0x3017e1=a287_0x49f2;'use strict';const attributes=require(_0x3017e1('0x1'));module[_0x3017e1('0x0')]=function(_0x450b38){const _0xd24f5f=_0x3017e1,_0x5400a7=_0x450b38[_0xd24f5f('0x3')](_0xd24f5f('0x4'),attributes,{'tableName':_0xd24f5f('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5400a7;}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index ab3d957..29d08a3 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a288_0x481e=['update','../../components/auth/service','get','create','/:id','delete','destroy','post','./intSalesforceField.controller','index','Router','isAuthenticated'];(function(_0x7d9b15,_0x481ed7){const _0x423064=function(_0x510da5){while(--_0x510da5){_0x7d9b15['push'](_0x7d9b15['shift']());}};_0x423064(++_0x481ed7);}(a288_0x481e,0xe4));const a288_0x4230=function(_0x7d9b15,_0x481ed7){_0x7d9b15=_0x7d9b15-0x0;let _0x423064=a288_0x481e[_0x7d9b15];return _0x423064;};const _0x4a22d2=a288_0x4230;'use strict';const express=require('express'),router=express[_0x4a22d2('0xa')](),auth=require(_0x4a22d2('0x1')),controller=require(_0x4a22d2('0x8'));router[_0x4a22d2('0x2')]('/',auth['isAuthenticated'](),controller[_0x4a22d2('0x9')]),router[_0x4a22d2('0x2')](_0x4a22d2('0x4'),auth[_0x4a22d2('0xb')](),controller['show']),router[_0x4a22d2('0x7')]('/',auth[_0x4a22d2('0xb')](),controller[_0x4a22d2('0x3')]),router['put'](_0x4a22d2('0x4'),auth[_0x4a22d2('0xb')](),controller[_0x4a22d2('0x0')]),router[_0x4a22d2('0x5')]('/:id',auth[_0x4a22d2('0xb')](),controller[_0x4a22d2('0x6')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index be5b2d8..d8e4782 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a289_0x33fe=['string','sequelize','ENUM','STRING','customVariable','keyValue','variable'];(function(_0x4221e1,_0x33fe82){const _0x53f45a=function(_0x3b8add){while(--_0x3b8add){_0x4221e1['push'](_0x4221e1['shift']());}};_0x53f45a(++_0x33fe82);}(a289_0x33fe,0x117));const a289_0x53f4=function(_0x4221e1,_0x33fe82){_0x4221e1=_0x4221e1-0x0;let _0x53f45a=a289_0x33fe[_0x4221e1];return _0x53f45a;};const _0x417f13=a289_0x53f4;'use strict';const Sequelize=require(_0x417f13('0x2'));module['exports']={'type':{'type':Sequelize[_0x417f13('0x3')]('string',_0x417f13('0x0'),_0x417f13('0x5'),_0x417f13('0x6')),'defaultValue':_0x417f13('0x1')},'content':{'type':Sequelize[_0x417f13('0x4')]},'key':{'type':Sequelize[_0x417f13('0x4')]},'keyType':{'type':Sequelize[_0x417f13('0x3')](_0x417f13('0x1'),_0x417f13('0x0'),_0x417f13('0x5'))},'keyContent':{'type':Sequelize[_0x417f13('0x4')]},'idField':{'type':Sequelize['STRING']},'variableName':{'type':Sequelize[_0x417f13('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index b33615e..2214da1 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a290_0x52d4=['then','lodash','nolimit','rawAttributes','error','destroy','merge','map','where','rows','options','count','filter','stack','length','status','include','body','query','VIRTUAL','end','like','keys','update','name','key','api','SalesforceField','findAll','type','offset','json','model','show','send','create','../../config/logger','intersection','fields','sort','catch','findOne','sequelize','filters','limit','attributes','fieldName','../../mysqldb'];(function(_0x59da9d,_0x52d4a3){const _0x5c619a=function(_0x3c7dba){while(--_0x3c7dba){_0x59da9d['push'](_0x59da9d['shift']());}};_0x5c619a(++_0x52d4a3);}(a290_0x52d4,0x89));const a290_0x5c61=function(_0x59da9d,_0x52d4a3){_0x59da9d=_0x59da9d-0x0;let _0x5c619a=a290_0x52d4[_0x59da9d];return _0x5c619a;};const _0x24f02c=a290_0x5c61;'use strict';const _=require(_0x24f02c('0x8')),qs=require('../../components/parsers/qs'),logger=require(_0x24f02c('0x2b'))(_0x24f02c('0x21')),db=require(_0x24f02c('0x6'))['db'],{Op}=require(_0x24f02c('0x1'));function respondWithResult(_0x3c7dba,_0x32c589){return _0x32c589=_0x32c589||0xc8,function(_0x87c598){const _0x14e8cc=a290_0x5c61;if(_0x87c598)return _0x3c7dba[_0x14e8cc('0x16')](_0x32c589)[_0x14e8cc('0x26')](_0x87c598);};}function respondWithFilteredResult(_0x16a191,_0x557e28){return function(_0xe8ecdd){const _0x42c526=a290_0x5c61;if(_0xe8ecdd){const _0x5ecc22=_0xe8ecdd[_0x42c526('0x12')],_0x46d304=_0x557e28[_0x42c526('0x25')];let _0x248610=_0x557e28[_0x42c526('0x25')]+_0x557e28[_0x42c526('0x3')],_0xb012ca;return _0x248610>=_0x5ecc22?(_0x248610=_0x5ecc22,_0xb012ca=0xc8):_0xb012ca=0xce,_0x16a191['status'](_0xb012ca),_0x16a191['set']('Content-Range',_0x46d304+'-'+_0x248610+'/'+_0x5ecc22)[_0x42c526('0x26')](_0xe8ecdd);}return null;};}function saveUpdates(_0x4c3433){return function(_0x3fb92f){if(_0x3fb92f)return _0x3fb92f['update'](_0x4c3433)['then'](function(_0x533f90){return _0x533f90;});return null;};}function removeEntity(_0x55f45d){return function(_0x548cda){const _0x665ab8=a290_0x5c61;if(_0x548cda)return _0x548cda[_0x665ab8('0xc')]()[_0x665ab8('0x7')](function(){const _0x317827=_0x665ab8;_0x55f45d[_0x317827('0x16')](0xcc)[_0x317827('0x1b')]();});};}function handleEntityNotFound(_0x13959f){return function(_0x4d93ce){return!_0x4d93ce&&_0x13959f['sendStatus'](0x194),_0x4d93ce;};}function handleError(_0x2ac080,_0xca4d6){return _0xca4d6=_0xca4d6||0x1f4,function(_0x1acb08){const _0x1cde43=a290_0x5c61;logger[_0x1cde43('0xb')](_0x1acb08[_0x1cde43('0x14')]),_0x1acb08['name']&&delete _0x1acb08[_0x1cde43('0x1f')],_0x2ac080[_0x1cde43('0x16')](_0xca4d6)[_0x1cde43('0x29')](_0x1acb08);};}exports['index']=function(_0x4e2e5b,_0x14d2f4){const _0x2a3f85=_0x24f02c;let _0x16020c={};const _0xc25aa6={},_0x10066d={'count':0x0,'rows':[]},_0x4ff28a=_[_0x2a3f85('0xe')](db[_0x2a3f85('0x22')][_0x2a3f85('0xa')],function(_0x696e6f){const _0x426a42=_0x2a3f85;return{'name':_0x696e6f[_0x426a42('0x5')],'type':_0x696e6f[_0x426a42('0x24')][_0x426a42('0x20')]};});_0xc25aa6[_0x2a3f85('0x27')]=_['map'](_0x4ff28a,_0x2a3f85('0x1f')),_0xc25aa6['query']=_[_0x2a3f85('0x1d')](_0x4e2e5b[_0x2a3f85('0x19')]),_0xc25aa6[_0x2a3f85('0x2')]=_[_0x2a3f85('0x2c')](_0xc25aa6[_0x2a3f85('0x27')],_0xc25aa6[_0x2a3f85('0x19')]),_0x16020c[_0x2a3f85('0x4')]=_[_0x2a3f85('0x2c')](_0xc25aa6[_0x2a3f85('0x27')],qs[_0x2a3f85('0x2d')](_0x4e2e5b['query'][_0x2a3f85('0x2d')])),_0x16020c[_0x2a3f85('0x4')]=_0x16020c[_0x2a3f85('0x4')]['length']?_0x16020c[_0x2a3f85('0x4')]:_0xc25aa6['model'];typeof _0x4e2e5b[_0x2a3f85('0x19')][_0x2a3f85('0x9')]==='undefined'&&(_0x16020c[_0x2a3f85('0x3')]=qs[_0x2a3f85('0x3')](_0x4e2e5b[_0x2a3f85('0x19')][_0x2a3f85('0x3')]),_0x16020c[_0x2a3f85('0x25')]=qs['offset'](_0x4e2e5b[_0x2a3f85('0x19')][_0x2a3f85('0x25')]));_0x16020c['order']=qs[_0x2a3f85('0x2e')](_0x4e2e5b[_0x2a3f85('0x19')][_0x2a3f85('0x2e')]),_0x16020c['where']=qs[_0x2a3f85('0x2')](_['pick'](_0x4e2e5b[_0x2a3f85('0x19')],_0xc25aa6[_0x2a3f85('0x2')]),_0x4ff28a);_0x4e2e5b[_0x2a3f85('0x19')][_0x2a3f85('0x13')]&&(_0x16020c[_0x2a3f85('0xf')]=_['merge'](_0x16020c['where'],{[Op['or']]:_['map'](_0x4ff28a,function(_0x522464){const _0x2790a0=_0x2a3f85;if(_0x522464['type']!==_0x2790a0('0x1a')){const _0x12ae30={};return _0x12ae30[_0x522464['name']]={[Op[_0x2790a0('0x1c')]]:'%'+_0x4e2e5b['query'][_0x2790a0('0x13')]+'%'},_0x12ae30;}})}));_0x16020c=_['merge']({},_0x16020c,_0x4e2e5b[_0x2a3f85('0x11')]);const _0x198e25={'where':_0x16020c['where']};return db['SalesforceField'][_0x2a3f85('0x12')](_0x198e25)['then'](function(_0x45b32b){const _0x1d4385=_0x2a3f85;return _0x10066d[_0x1d4385('0x12')]=_0x45b32b,_0x4e2e5b[_0x1d4385('0x19')]['includeAll']&&(_0x16020c[_0x1d4385('0x17')]=[{'all':!![]}]),db[_0x1d4385('0x22')][_0x1d4385('0x23')](_0x16020c);})[_0x2a3f85('0x7')](function(_0x4fd781){const _0x874ce7=_0x2a3f85;return _0x10066d[_0x874ce7('0x10')]=_0x4fd781,_0x10066d;})['then'](respondWithFilteredResult(_0x14d2f4,_0x16020c))[_0x2a3f85('0x2f')](handleError(_0x14d2f4,null));},exports[_0x24f02c('0x28')]=function(_0x5eac64,_0x452093){const _0x596815=_0x24f02c;let _0x4c726a={'raw':!![],'where':{'id':_0x5eac64['params']['id']}};const _0x594d23={};return _0x594d23[_0x596815('0x27')]=_[_0x596815('0x1d')](db[_0x596815('0x22')][_0x596815('0xa')]),_0x594d23['query']=_[_0x596815('0x1d')](_0x5eac64['query']),_0x594d23[_0x596815('0x2')]=_['intersection'](_0x594d23['model'],_0x594d23[_0x596815('0x19')]),_0x4c726a[_0x596815('0x4')]=_[_0x596815('0x2c')](_0x594d23[_0x596815('0x27')],qs[_0x596815('0x2d')](_0x5eac64['query'][_0x596815('0x2d')])),_0x4c726a[_0x596815('0x4')]=_0x4c726a[_0x596815('0x4')][_0x596815('0x15')]?_0x4c726a[_0x596815('0x4')]:_0x594d23[_0x596815('0x27')],_0x5eac64[_0x596815('0x19')]['includeAll']&&(_0x4c726a[_0x596815('0x17')]=[{'all':!![]}]),_0x4c726a=_[_0x596815('0xd')]({},_0x4c726a,_0x5eac64[_0x596815('0x11')]),db[_0x596815('0x22')][_0x596815('0x0')](_0x4c726a)[_0x596815('0x7')](handleEntityNotFound(_0x452093,null))[_0x596815('0x7')](respondWithResult(_0x452093,null))[_0x596815('0x2f')](handleError(_0x452093,null));},exports[_0x24f02c('0x2a')]=function(_0x254cd0,_0x5a891c){const _0x9ce219=_0x24f02c;return db[_0x9ce219('0x22')][_0x9ce219('0x2a')](_0x254cd0['body'],{})[_0x9ce219('0x7')](respondWithResult(_0x5a891c,0xc9))[_0x9ce219('0x2f')](handleError(_0x5a891c,null));},exports[_0x24f02c('0x1e')]=function(_0x11eb00,_0x4f53c1){const _0x596d4d=_0x24f02c;return _0x11eb00['body']['id']&&delete _0x11eb00[_0x596d4d('0x18')]['id'],db[_0x596d4d('0x22')][_0x596d4d('0x0')]({'where':{'id':_0x11eb00['params']['id']}})[_0x596d4d('0x7')](handleEntityNotFound(_0x4f53c1,null))[_0x596d4d('0x7')](saveUpdates(_0x11eb00['body'],null))[_0x596d4d('0x7')](respondWithResult(_0x4f53c1,null))[_0x596d4d('0x2f')](handleError(_0x4f53c1,null));},exports[_0x24f02c('0xc')]=function(_0x37eb0c,_0x1e2516){const _0x519184=_0x24f02c;return db[_0x519184('0x22')][_0x519184('0x0')]({'where':{'id':_0x37eb0c['params']['id']}})[_0x519184('0x7')](handleEntityNotFound(_0x1e2516,null))[_0x519184('0x7')](removeEntity(_0x1e2516,null))[_0x519184('0x2f')](handleError(_0x1e2516,null));}; \ No newline at end of file +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 diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index 840f453..d922d62 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a291_0x17df=['int_salesforce_fields','idField','FieldId','salesforce_unique_index','SalesforceField'];(function(_0x39ac79,_0x17dfe0){const _0x52e7ca=function(_0x2f33e8){while(--_0x2f33e8){_0x39ac79['push'](_0x39ac79['shift']());}};_0x52e7ca(++_0x17dfe0);}(a291_0x17df,0x8b));const a291_0x52e7=function(_0x39ac79,_0x17dfe0){_0x39ac79=_0x39ac79-0x0;let _0x52e7ca=a291_0x17df[_0x39ac79];return _0x52e7ca;};'use strict';const attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x2f33e8){const _0x1825e9=a291_0x52e7,_0x2c8a26=_0x2f33e8['define'](_0x1825e9('0x0'),attributes,{'tableName':_0x1825e9('0x1'),'paranoid':![],'indexes':[{'name':_0x1825e9('0x4'),'fields':[_0x1825e9('0x2'),_0x1825e9('0x3')],'unique':!![]}],'timestamps':!![]});return _0x2c8a26;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index c37b23f..65d32e6 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a292_0x8725=['Router','isAuthenticated','express','index','show','exports','create','/:id/fields','post','./intServicenowAccount.controller','delete','/:id','addConfiguration','put','get','/:id/configurations','update','getFields'];(function(_0x3a89d8,_0x87256f){const _0x46a450=function(_0x205920){while(--_0x205920){_0x3a89d8['push'](_0x3a89d8['shift']());}};_0x46a450(++_0x87256f);}(a292_0x8725,0xbf));const a292_0x46a4=function(_0x3a89d8,_0x87256f){_0x3a89d8=_0x3a89d8-0x0;let _0x46a450=a292_0x8725[_0x3a89d8];return _0x46a450;};const _0x37fa33=a292_0x46a4;'use strict';const express=require(_0x37fa33('0x9')),router=express[_0x37fa33('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x37fa33('0x10'));router[_0x37fa33('0x3')]('/',auth[_0x37fa33('0x8')](),controller[_0x37fa33('0xa')]),router[_0x37fa33('0x3')]('/:id',auth[_0x37fa33('0x8')](),controller[_0x37fa33('0xb')]),router[_0x37fa33('0x3')](_0x37fa33('0x4'),auth[_0x37fa33('0x8')](),controller['getConfigurations']),router['get'](_0x37fa33('0xe'),auth[_0x37fa33('0x8')](),controller[_0x37fa33('0x6')]),router[_0x37fa33('0xf')]('/',auth[_0x37fa33('0x8')](),controller[_0x37fa33('0xd')]),router[_0x37fa33('0xf')]('/:id/configurations',auth[_0x37fa33('0x8')](),controller[_0x37fa33('0x1')]),router[_0x37fa33('0x2')](_0x37fa33('0x0'),auth[_0x37fa33('0x8')](),controller[_0x37fa33('0x5')]),router[_0x37fa33('0x11')](_0x37fa33('0x0'),auth['isAuthenticated'](),controller['destroy']),module[_0x37fa33('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index 802185c..388ae10 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a293_0x479a=['sequelize','remoteUri','STRING'];(function(_0x567ba6,_0x479a5c){const _0x3cfd2e=function(_0x18ea1a){while(--_0x18ea1a){_0x567ba6['push'](_0x567ba6['shift']());}};_0x3cfd2e(++_0x479a5c);}(a293_0x479a,0x1bb));const a293_0x3cfd=function(_0x567ba6,_0x479a5c){_0x567ba6=_0x567ba6-0x0;let _0x3cfd2e=a293_0x479a[_0x567ba6];return _0x3cfd2e;};const _0x3587bb=a293_0x3cfd;'use strict';const Sequelize=require(_0x3587bb('0x1'));module['exports']={'name':{'type':Sequelize[_0x3587bb('0x0')]},'description':{'type':Sequelize[_0x3587bb('0x0')]},'username':{'type':Sequelize['STRING'],'unique':'username'},'password':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x3587bb('0x0')],'unique':_0x3587bb('0x2')},'serverUrl':{'type':Sequelize[_0x3587bb('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index 7c8b009..8ebdbf9 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a294_0x1607=['close_notes','ServicenowField','../../config/logger','False','ServiceNow\x20error:\x20','offset','business_service','include','options','TCL:\x20_object','boolean','addConfiguration','Wrong\x20credentials','urgency','upon_approval','length','result','reopened_by','ServicenowAccount','impact','end','count','name','channel','getDescriptions','work_notes','closed_at','hold_reason','Content-Range','getSubjects','assign','format','Descriptions','where','rows','expected_start','category','update','findOne','filter','push','status','user_input','Subjects','work_notes_list','sys_created_on','assigned_to','time_worked','../../components/parsers/qs','delivery_task','remoteUri','password','%s/api/now/doc/table/schema/','../../components/integrations/configuration','log','error','value','map','attributes','label','includes','location','index','additional_assignee_list','short_description','activity_due','follow_up','knowledge','type','findAll','model','escalation','parent_incident','includeAll','problem_id','resolved_by','cmdb_ci','correlation_id','number','api','watch_list','nolimit','true','email','child_incidents','sequelize','sys_tags','order','sort','fieldName','ServicenowConfiguration','business_stc','body','keys','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','rfc','delivery_plan','resolved_at','reopened_time','destroy','key','sys_updated_on','pick','rawAttributes','correlation_display','inactive','close_code','statusCode','made_sla','notify','sys_choice?sysparm_query=name=incident^element=','forEach','slice','like','caused_by','reassignment_count','sla_due','limit','create','fields','comments','query','set','stack','filters','calendar_duration','util','True','request-promise-native','merge','company','description','sys_mod_count','sys_domain_path','username','subcategory','approval_history','intersection','lastIndexOf','state','caller_id','getConfigurations','incident_state','severity','then','calendar_stc','test','GET','catch','assignment_group','json','show','all','params','reopen_count','substring','send','parent','due_date','group_list','internalType'];(function(_0x1aa52f,_0x1607da){const _0x508c3c=function(_0x549baf){while(--_0x549baf){_0x1aa52f['push'](_0x1aa52f['shift']());}};_0x508c3c(++_0x1607da);}(a294_0x1607,0xb5));const a294_0x508c=function(_0x1aa52f,_0x1607da){_0x1aa52f=_0x1aa52f-0x0;let _0x508c3c=a294_0x1607[_0x1aa52f];return _0x508c3c;};const _0x3f640f=a294_0x508c;'use strict';const rp=require(_0x3f640f('0x6c')),util=require(_0x3f640f('0x6a')),_=require('lodash'),qs=require(_0x3f640f('0x1c')),logger=require(_0x3f640f('0x8f'))(_0x3f640f('0x3b')),db=require('../../mysqldb')['db'],{Op}=require(_0x3f640f('0x41')),integrations=require(_0x3f640f('0x21'));function respondWithResult(_0x549baf,_0x3005c2){return _0x3005c2=_0x3005c2||0xc8,function(_0x7472c7){const _0x15f832=a294_0x508c;if(_0x7472c7)return _0x549baf[_0x15f832('0x15')](_0x3005c2)[_0x15f832('0x82')](_0x7472c7);};}function respondWithFilteredResult(_0x2954ec,_0x21ea2e){return function(_0x274831){const _0x491fe3=a294_0x508c;if(_0x274831){const _0x13c213=_0x274831[_0x491fe3('0x1')],_0xad947=_0x21ea2e[_0x491fe3('0x92')];let _0x4dfd56=_0x21ea2e[_0x491fe3('0x92')]+_0x21ea2e[_0x491fe3('0x61')],_0x18b409;return _0x4dfd56>=_0x13c213?(_0x4dfd56=_0x13c213,_0x18b409=0xc8):_0x18b409=0xce,_0x2954ec[_0x491fe3('0x15')](_0x18b409),_0x2954ec[_0x491fe3('0x66')](_0x491fe3('0x8'),_0xad947+'-'+_0x4dfd56+'/'+_0x13c213)['json'](_0x274831);}return null;};}function saveUpdates(_0x2e513c){return function(_0x4efc5f){const _0x465dfb=a294_0x508c;if(_0x4efc5f)return _0x4efc5f[_0x465dfb('0x11')](_0x2e513c)[_0x465dfb('0x7c')](function(_0xd4a655){return _0xd4a655;});return null;};}function removeEntity(_0x5202f9){return function(_0x5afb28){const _0x28286f=a294_0x508c;if(_0x5afb28)return _0x5afb28[_0x28286f('0x4f')]()[_0x28286f('0x7c')](function(){const _0x542671=_0x28286f;_0x5202f9[_0x542671('0x15')](0xcc)[_0x542671('0x0')]();});};}function handleEntityNotFound(_0x5a5bb1){return function(_0x384042){return!_0x384042&&_0x5a5bb1['sendStatus'](0x194),_0x384042;};}function handleError(_0x5748b9,_0x587162){return _0x587162=_0x587162||0x1f4,function(_0x4653f7){const _0x3350a3=a294_0x508c;logger[_0x3350a3('0x23')](_0x4653f7[_0x3350a3('0x67')]),_0x4653f7[_0x3350a3('0x2')]&&delete _0x4653f7['name'],_0x5748b9[_0x3350a3('0x15')](_0x587162)[_0x3350a3('0x88')](_0x4653f7);};}exports[_0x3f640f('0x2a')]=function(_0x565462,_0x582a9c){const _0x4f59c8=_0x3f640f;let _0x5839e0={};const _0x23c8a5={},_0x241613={'count':0x0,'rows':[]},_0x1776ad=_[_0x4f59c8('0x25')](db[_0x4f59c8('0x9f')][_0x4f59c8('0x53')],function(_0xa16d2f){const _0x296b74=_0x4f59c8;return{'name':_0xa16d2f[_0x296b74('0x45')],'type':_0xa16d2f[_0x296b74('0x30')][_0x296b74('0x50')]};});_0x23c8a5[_0x4f59c8('0x32')]=_[_0x4f59c8('0x25')](_0x1776ad,_0x4f59c8('0x2')),_0x23c8a5[_0x4f59c8('0x65')]=_[_0x4f59c8('0x49')](_0x565462['query']),_0x23c8a5[_0x4f59c8('0x68')]=_['intersection'](_0x23c8a5['model'],_0x23c8a5[_0x4f59c8('0x65')]),_0x5839e0[_0x4f59c8('0x26')]=_[_0x4f59c8('0x75')](_0x23c8a5[_0x4f59c8('0x32')],qs['fields'](_0x565462[_0x4f59c8('0x65')]['fields'])),_0x5839e0[_0x4f59c8('0x26')]=_0x5839e0[_0x4f59c8('0x26')][_0x4f59c8('0x9c')]?_0x5839e0[_0x4f59c8('0x26')]:_0x23c8a5[_0x4f59c8('0x32')];typeof _0x565462[_0x4f59c8('0x65')][_0x4f59c8('0x3d')]==='undefined'&&(_0x5839e0[_0x4f59c8('0x61')]=qs['limit'](_0x565462[_0x4f59c8('0x65')][_0x4f59c8('0x61')]),_0x5839e0[_0x4f59c8('0x92')]=qs[_0x4f59c8('0x92')](_0x565462[_0x4f59c8('0x65')][_0x4f59c8('0x92')]));_0x5839e0[_0x4f59c8('0x43')]=qs[_0x4f59c8('0x44')](_0x565462[_0x4f59c8('0x65')][_0x4f59c8('0x44')]),_0x5839e0[_0x4f59c8('0xd')]=qs[_0x4f59c8('0x68')](_[_0x4f59c8('0x52')](_0x565462['query'],_0x23c8a5['filters']),_0x1776ad);_0x565462[_0x4f59c8('0x65')][_0x4f59c8('0x13')]&&(_0x5839e0['where']=_[_0x4f59c8('0x6d')](_0x5839e0['where'],{[Op['or']]:_[_0x4f59c8('0x25')](_0x1776ad,function(_0x179d27){const _0x3767c6=_0x4f59c8;if(_0x179d27[_0x3767c6('0x30')]!=='VIRTUAL'){const _0x4f700d={};return _0x4f700d[_0x179d27[_0x3767c6('0x2')]]={[Op[_0x3767c6('0x5d')]]:'%'+_0x565462['query']['filter']+'%'},_0x4f700d;}})}));_0x5839e0=_['merge']({},_0x5839e0,_0x565462[_0x4f59c8('0x95')]);const _0x15a72b={'where':_0x5839e0['where']};return db[_0x4f59c8('0x9f')]['count'](_0x15a72b)['then'](function(_0x4b8da4){const _0x2dad47=_0x4f59c8;return _0x241613[_0x2dad47('0x1')]=_0x4b8da4,_0x565462[_0x2dad47('0x65')][_0x2dad47('0x35')]&&(_0x5839e0[_0x2dad47('0x94')]=[{'all':!![]}]),db['ServicenowAccount'][_0x2dad47('0x31')](_0x5839e0);})['then'](function(_0x194089){const _0x3b9a8c=_0x4f59c8;return _0x241613[_0x3b9a8c('0xe')]=_0x194089,_0x241613;})['then'](respondWithFilteredResult(_0x582a9c,_0x5839e0))[_0x4f59c8('0x80')](handleError(_0x582a9c,null));},exports[_0x3f640f('0x83')]=function(_0x1ef058,_0x15376a){const _0x5218ce=_0x3f640f;let _0x4ce4d2={'raw':![],'where':{'id':_0x1ef058[_0x5218ce('0x85')]['id']}};const _0x446aff={};return _0x446aff[_0x5218ce('0x32')]=_[_0x5218ce('0x49')](db['ServicenowAccount'][_0x5218ce('0x53')]),_0x446aff['query']=_[_0x5218ce('0x49')](_0x1ef058[_0x5218ce('0x65')]),_0x446aff[_0x5218ce('0x68')]=_[_0x5218ce('0x75')](_0x446aff['model'],_0x446aff[_0x5218ce('0x65')]),_0x4ce4d2[_0x5218ce('0x26')]=_[_0x5218ce('0x75')](_0x446aff[_0x5218ce('0x32')],qs[_0x5218ce('0x63')](_0x1ef058['query'][_0x5218ce('0x63')])),_0x4ce4d2[_0x5218ce('0x26')]=_0x4ce4d2[_0x5218ce('0x26')][_0x5218ce('0x9c')]?_0x4ce4d2[_0x5218ce('0x26')]:_0x446aff[_0x5218ce('0x32')],_0x1ef058[_0x5218ce('0x65')]['includeAll']&&(_0x4ce4d2[_0x5218ce('0x94')]=[{'all':!![]}]),_0x4ce4d2=_[_0x5218ce('0x6d')]({},_0x4ce4d2,_0x1ef058[_0x5218ce('0x95')]),db[_0x5218ce('0x9f')][_0x5218ce('0x12')](_0x4ce4d2)['then'](handleEntityNotFound(_0x15376a,null))[_0x5218ce('0x7c')](respondWithResult(_0x15376a,null))[_0x5218ce('0x80')](handleError(_0x15376a,null));},exports[_0x3f640f('0x62')]=function(_0x4cc64d,_0x5ca720){const _0x5827cd=_0x3f640f;return db['ServicenowAccount'][_0x5827cd('0x62')](_0x4cc64d[_0x5827cd('0x48')],{})['then'](respondWithResult(_0x5ca720,0xc9))[_0x5827cd('0x80')](handleError(_0x5ca720,null));},exports[_0x3f640f('0x11')]=function(_0x1d71be,_0xc64d86){const _0x6d39aa=_0x3f640f;return _0x1d71be[_0x6d39aa('0x48')]['id']&&delete _0x1d71be['body']['id'],db[_0x6d39aa('0x9f')]['findOne']({'where':{'id':_0x1d71be[_0x6d39aa('0x85')]['id']}})[_0x6d39aa('0x7c')](handleEntityNotFound(_0xc64d86,null))['then'](saveUpdates(_0x1d71be[_0x6d39aa('0x48')],null))[_0x6d39aa('0x7c')](respondWithResult(_0xc64d86,null))[_0x6d39aa('0x80')](handleError(_0xc64d86,null));},exports[_0x3f640f('0x4f')]=function(_0x38d2df,_0x4b4b54){const _0x36e70f=_0x3f640f;return db[_0x36e70f('0x9f')]['findOne']({'where':{'id':_0x38d2df[_0x36e70f('0x85')]['id']}})[_0x36e70f('0x7c')](handleEntityNotFound(_0x4b4b54,null))[_0x36e70f('0x7c')](removeEntity(_0x4b4b54,null))[_0x36e70f('0x80')](handleError(_0x4b4b54,null));},exports[_0x3f640f('0x79')]=function(_0x3093fe,_0x2b1384){const _0x55d115=_0x3f640f;let _0x1c39a8={};const _0x22822a={};let _0x10a804,_0x3b0568;return db[_0x55d115('0x9f')][_0x55d115('0x12')]({'where':{'id':_0x3093fe['params']['id']}})[_0x55d115('0x7c')](handleEntityNotFound(_0x2b1384,null))[_0x55d115('0x7c')](function(_0x49cd3c){const _0x2684eb=_0x55d115;if(_0x49cd3c)return _0x10a804=_0x49cd3c,_0x22822a['model']=_[_0x2684eb('0x49')](db[_0x2684eb('0x46')][_0x2684eb('0x53')]),_0x22822a[_0x2684eb('0x65')]=_[_0x2684eb('0x49')](_0x3093fe['query']),_0x22822a['filters']=_[_0x2684eb('0x75')](_0x22822a['model'],_0x22822a['query']),_0x1c39a8[_0x2684eb('0x26')]=_[_0x2684eb('0x75')](_0x22822a[_0x2684eb('0x32')],qs[_0x2684eb('0x63')](_0x3093fe[_0x2684eb('0x65')][_0x2684eb('0x63')])),_0x1c39a8[_0x2684eb('0x26')]=_0x1c39a8[_0x2684eb('0x26')][_0x2684eb('0x9c')]?_0x1c39a8[_0x2684eb('0x26')]:_0x22822a['model'],_0x1c39a8[_0x2684eb('0x43')]=qs[_0x2684eb('0x44')](_0x3093fe[_0x2684eb('0x65')][_0x2684eb('0x44')]),_0x1c39a8['where']=qs[_0x2684eb('0x68')](_[_0x2684eb('0x52')](_0x3093fe[_0x2684eb('0x65')],_0x22822a[_0x2684eb('0x68')])),_0x3093fe[_0x2684eb('0x65')][_0x2684eb('0x13')]&&(_0x1c39a8['where']=_[_0x2684eb('0x6d')](_0x1c39a8['where'],{[Op['or']]:_[_0x2684eb('0x25')](_0x1c39a8['attributes'],function(_0x285405){const _0x3354ed=_0x2684eb,_0x1f2baf={};return _0x1f2baf[_0x285405]={[Op['like']]:'%'+_0x3093fe[_0x3354ed('0x65')][_0x3354ed('0x13')]+'%'},_0x1f2baf;})})),_0x1c39a8=_[_0x2684eb('0x6d')]({},_0x1c39a8,_0x3093fe[_0x2684eb('0x95')]),_0x10a804['getConfigurations'](_0x1c39a8);})['then'](function(_0x2300c0){const _0x486d43=_0x55d115;if(_0x2300c0)return _0x3b0568=_0x2300c0[_0x486d43('0x9c')],typeof _0x3093fe[_0x486d43('0x65')][_0x486d43('0x3d')]==='undefined'&&(_0x1c39a8[_0x486d43('0x61')]=qs[_0x486d43('0x61')](_0x3093fe[_0x486d43('0x65')]['limit']),_0x1c39a8[_0x486d43('0x92')]=qs[_0x486d43('0x92')](_0x3093fe[_0x486d43('0x65')][_0x486d43('0x92')])),_0x10a804[_0x486d43('0x79')](_0x1c39a8);})[_0x55d115('0x7c')](function(_0x1b55cd){if(_0x1b55cd)return _0x1b55cd?{'count':_0x3b0568,'rows':_0x1b55cd}:null;})[_0x55d115('0x7c')](respondWithResult(_0x2b1384,null))[_0x55d115('0x80')](handleError(_0x2b1384,null));},exports[_0x3f640f('0x98')]=function(_0x2b2763,_0x5396ea){const _0x2aa127=_0x3f640f;return _0x2b2763[_0x2aa127('0x48')]['id']&&delete _0x2b2763[_0x2aa127('0x48')]['id'],db[_0x2aa127('0x9f')][_0x2aa127('0x12')]({'where':{'id':_0x2b2763[_0x2aa127('0x85')]['id']}})[_0x2aa127('0x7c')](handleEntityNotFound(_0x5396ea,null))[_0x2aa127('0x7c')](function(_0x2605ab){const _0x4f9037=_0x2aa127;if(_0x2605ab)return _0x2b2763[_0x4f9037('0x48')]['AccountId']=_0x2605ab['id'],_0x2b2763[_0x4f9037('0x48')][_0x4f9037('0x17')]=integrations[_0x4f9037('0x9')](_0x2b2763[_0x4f9037('0x48')][_0x4f9037('0x3')],_0x2b2763[_0x4f9037('0x48')][_0x4f9037('0x30')]),_0x2b2763[_0x4f9037('0x48')][_0x4f9037('0xc')]=integrations[_0x4f9037('0x4')](_0x2b2763[_0x4f9037('0x48')]['channel'],_0x2b2763[_0x4f9037('0x48')][_0x4f9037('0x30')]),db[_0x4f9037('0x46')][_0x4f9037('0x62')](_0x2b2763[_0x4f9037('0x48')],{'include':[{'model':db[_0x4f9037('0x8e')],'as':_0x4f9037('0x17')},{'model':db['ServicenowField'],'as':_0x4f9037('0xc')}]});return null;})[_0x2aa127('0x7c')](respondWithResult(_0x5396ea,null))[_0x2aa127('0x80')](handleError(_0x5396ea,null));},exports['getFields']=function(_0x5de508,_0x26c6b6){const _0x1a1866=_0x3f640f,_0x188791=[_0x1a1866('0x58'),_0x1a1866('0x7'),_0x1a1866('0x2f'),_0x1a1866('0x73'),_0x1a1866('0x56'),'notify',_0x1a1866('0x7a'),'severity',_0x1a1866('0x10')],_0x21f241=[_0x1a1866('0x89'),'made_sla',_0x1a1866('0x5e'),_0x1a1866('0x3c'),'upon_reject',_0x1a1866('0x51'),_0x1a1866('0x40'),_0x1a1866('0x7'),_0x1a1866('0x74'),_0x1a1866('0x3a'),_0x1a1866('0x37'),'sys_updated_by','opened_by',_0x1a1866('0x16'),_0x1a1866('0x19'),'sys_domain',_0x1a1866('0x77'),'sys_created_by',_0x1a1866('0x2f'),_0x1a1866('0x43'),_0x1a1866('0x7d'),_0x1a1866('0x6'),_0x1a1866('0x38'),_0x1a1866('0x4c'),_0x1a1866('0xa0'),'active',_0x1a1866('0x18'),_0x1a1866('0x93'),'priority',_0x1a1866('0x71'),_0x1a1866('0x4b'),_0x1a1866('0x1b'),_0x1a1866('0xf'),'opened_at','business_duration',_0x1a1866('0x8b'),'work_end',_0x1a1866('0x4e'),_0x1a1866('0x4d'),_0x1a1866('0x78'),'approval_set','subcategory',_0x1a1866('0x5'),_0x1a1866('0x2c'),_0x1a1866('0x56'),_0x1a1866('0x54'),_0x1a1866('0x1d'),'work_start',_0x1a1866('0x81'),_0x1a1866('0x47'),_0x1a1866('0x2b'),_0x1a1866('0x6f'),_0x1a1866('0x69'),_0x1a1866('0x59'),'sys_class_name',_0x1a1866('0x8d'),'closed_by',_0x1a1866('0x2e'),_0x1a1866('0x34'),'sys_id','contact_type',_0x1a1866('0x9e'),'incident_state',_0x1a1866('0x9a'),_0x1a1866('0x36'),_0x1a1866('0x6e'),_0x1a1866('0x5f'),_0x1a1866('0x2d'),_0x1a1866('0x1a'),_0x1a1866('0x7b'),_0x1a1866('0x64'),_0x1a1866('0x60'),'approval','comments_and_work_notes',_0x1a1866('0x8a'),_0x1a1866('0x70'),_0x1a1866('0x86'),_0x1a1866('0x42'),_0x1a1866('0x33'),_0x1a1866('0x9b'),_0x1a1866('0x39'),_0x1a1866('0x29'),_0x1a1866('0x10')];let _0x24748b='',_0x1f06f6='',_0x4aafcd=[],_0x13ae8e='',_0x31a097='',_0x155e36=[],_0x58e3ce='',_0x340e1a='',_0xed60b2={},_0x540034='';return db['ServicenowAccount'][_0x1a1866('0x12')]({'where':{'id':_0x5de508[_0x1a1866('0x85')]['id']},'attributes':['id',_0x1a1866('0x72'),'password',_0x1a1866('0x3f'),'remoteUri','serverUrl']})[_0x1a1866('0x7c')](handleEntityNotFound(_0x26c6b6,null))[_0x1a1866('0x7c')](function(_0x5357ab){const _0x437d69=_0x1a1866;if(_0x5357ab){_0x540034=_0x5357ab[_0x437d69('0x1e')];const _0x3dc471=_0x540034[_0x437d69('0x5c')](-0x1);_0x3dc471==='/'&&(_0x540034=_0x540034[_0x437d69('0x87')](0x0,_0x540034[_0x437d69('0x76')](_0x3dc471)));_0x340e1a=util[_0x437d69('0xb')](_0x437d69('0x20'),_0x540034),_0x58e3ce=util[_0x437d69('0xb')]('%s/api/now/table/',_0x540034),_0xed60b2={'user':_0x5357ab[_0x437d69('0x72')],'pass':_0x5357ab[_0x437d69('0x1f')]};const _0x516ef7={'method':_0x437d69('0x7f'),'uri':_0x340e1a+'incident?sysparm_display_value=all','auth':_0xed60b2,'json':!![]};return rp(_0x516ef7);}})[_0x1a1866('0x7c')](function(_0x5737d7){const _0x177674=_0x1a1866;return _0x5737d7['result'][_0x177674('0x9c')]>0x0&&(_0x24748b=_0x5737d7[_0x177674('0x9d')]),console[_0x177674('0x22')]('incident\x20table\x20objects',_0x24748b),_0x155e36=[],_0x1f06f6=Object[_0x177674('0xa')]([],_0x24748b),_['remove'](_0x1f06f6,function(_0x4b8698){return!_0x188791['includes'](_0x4b8698['name']);}),_0x1f06f6[_0x177674('0x5b')](function(_0x1b69f4){const _0x7f1b70=_0x177674,_0x41da0b=createFieldObject(_0x58e3ce,_0xed60b2,_0x1b69f4[_0x7f1b70('0x8c')],_0x1b69f4[_0x7f1b70('0x2')],_0x1b69f4[_0x7f1b70('0x27')],![]);_0x155e36[_0x7f1b70('0x14')](_0x41da0b);}),Promise[_0x177674('0x84')](_0x155e36);})[_0x1a1866('0x7c')](function(_0x543f97){const _0x42e188=_0x1a1866;return _0x4aafcd=_0x543f97,_0x13ae8e=Object[_0x42e188('0xa')]([],_0x24748b),console[_0x42e188('0x22')](_0x42e188('0x96'),_0x24748b),_['remove'](_0x13ae8e,function(_0x3ec0b5){const _0x5b382e=_0x42e188;return _0x21f241[_0x5b382e('0x28')](_0x3ec0b5['name']);}),console['log'](_0x42e188('0x4a'),_0x13ae8e),_0x155e36=[],_0x13ae8e[_0x42e188('0x5b')](function(_0x1901c8){const _0x5ba57f=_0x42e188,_0x4d3c65=createFieldObject(_0x58e3ce,_0xed60b2,_0x1901c8[_0x5ba57f('0x8c')],_0x1901c8['name'],_0x1901c8['label'],!![]);_0x155e36[_0x5ba57f('0x14')](_0x4d3c65);}),Promise[_0x42e188('0x84')](_0x155e36);})[_0x1a1866('0x7c')](function(_0x35e94e){const _0x3820fe=_0x1a1866;_0x31a097=_0x35e94e;const _0x21afc4=_0x4aafcd['concat'](_0x31a097);return{'count':_0x21afc4[_0x3820fe('0x9c')],'rows':_0x21afc4};})['then'](respondWithResult(_0x26c6b6,null))['catch'](function(_0x453201){const _0x1c5518=_0x1a1866;console[_0x1c5518('0x22')](_0x1c5518('0x91')+_0x453201);let _0x382abb=_0x5de508[_0x1c5518('0x65')][_0x1c5518('0x7e')]?0x1f4:_0x453201[_0x1c5518('0x57')]||0x1f4;logger[_0x1c5518('0x23')](_0x453201[_0x1c5518('0x67')]),delete _0x453201[_0x1c5518('0x2')],_0x382abb===0x191&&(_0x382abb=0x190),_0x26c6b6[_0x1c5518('0x15')](_0x382abb)[_0x1c5518('0x88')](_0x5de508['query'][_0x1c5518('0x7e')]?{'message':_0x1c5518('0x99'),'statusCode':_0x453201[_0x1c5518('0x57')]}:_0x453201);});};function createFieldObject(_0x24d04f,_0x2a8b00,_0x1cd619,_0x48a136,_0x46c0ce,_0x5d877b){return new Promise(function(_0x558b05){const _0x197d43=a294_0x508c,_0xdc5ceb={'id':_0x48a136,'name':_0x46c0ce,'custom':_0x5d877b};if(_0x1cd619===_0x197d43('0x97'))_0xdc5ceb['options']=[{'name':_0x197d43('0x6b'),'value':_0x197d43('0x3e')},{'name':_0x197d43('0x90'),'value':'false'}],_0x558b05(_0xdc5ceb);else{const _0x2076d7={'method':_0x197d43('0x7f'),'uri':_0x24d04f+_0x197d43('0x5a')+_0x48a136,'auth':_0x2a8b00,'json':!![]};return rp(_0x2076d7)[_0x197d43('0x7c')](function(_0x9e132d){const _0x46bab1=_0x197d43,_0x1664a7=[];_0x9e132d[_0x46bab1('0x9d')][_0x46bab1('0x9c')]>0x0&&_0x9e132d[_0x46bab1('0x9d')][_0x46bab1('0x5b')](function(_0x115161){const _0xb2cb1=_0x46bab1;if(_0x115161[_0xb2cb1('0x55')]==='false'){const _0x46d186={'name':_0x115161[_0xb2cb1('0x27')],'value':_0x115161[_0xb2cb1('0x24')]};_0x1664a7[_0xb2cb1('0x14')](_0x46d186);}}),_0xdc5ceb[_0x46bab1('0x95')]=_0x1664a7,_0xdc5ceb[_0x46bab1('0x95')]['length']>0x0?_0x558b05(_0xdc5ceb):_0x5d877b==![]?_0x558b05():_0x558b05(_0xdc5ceb);});}});} \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index 8569f6e..2fa59d0 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a295_0x56a3=['ServicenowAccount','exports','./intServicenowAccount.attributes'];(function(_0x1da521,_0x56a3bc){const _0x13215c=function(_0x166adf){while(--_0x166adf){_0x1da521['push'](_0x1da521['shift']());}};_0x13215c(++_0x56a3bc);}(a295_0x56a3,0x17e));const a295_0x1321=function(_0x1da521,_0x56a3bc){_0x1da521=_0x1da521-0x0;let _0x13215c=a295_0x56a3[_0x1da521];return _0x13215c;};const _0x587a5c=a295_0x1321;'use strict';const attributes=require(_0x587a5c('0x1'));module[_0x587a5c('0x0')]=function(_0x166adf){const _0x3c0a8e=_0x587a5c,_0x3075fc=_0x166adf['define'](_0x3c0a8e('0x2'),attributes,{'tableName':'int_servicenow_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3075fc;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index 37ce762..8a4f80a 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a296_0x57e8=['then','../../config/logger','where','error','raw','stringify','options','model','attributes','rpc','map','findAll','ShowServicenowAccount','info','ServicenowAccount','catch','limit','message','GetServicenowAccount','debug','include','lodash'];(function(_0x5e61c1,_0x57e8cb){const _0x47c48d=function(_0x467d81){while(--_0x467d81){_0x5e61c1['push'](_0x5e61c1['shift']());}};_0x47c48d(++_0x57e8cb);}(a296_0x57e8,0xd8));const a296_0x47c4=function(_0x5e61c1,_0x57e8cb){_0x5e61c1=_0x5e61c1-0x0;let _0x47c48d=a296_0x57e8[_0x5e61c1];return _0x47c48d;};const _0x6e5716=a296_0x47c4;'use strict';const _=require(_0x6e5716('0x3')),db=require('../../mysqldb')['db'],logger=require(_0x6e5716('0x5'))(_0x6e5716('0xd'));exports['GetServicenowAccount']=function(_0x467d81){const _0x2ec596=this;return new Promise(function(_0x596e66,_0xc148c4){const _0x30dcb0=a296_0x47c4;return db['ServicenowAccount'][_0x30dcb0('0xf')]({'raw':_0x467d81[_0x30dcb0('0xa')]?_0x467d81[_0x30dcb0('0xa')][_0x30dcb0('0x8')]===undefined?!![]:![]:!![],'where':_0x467d81[_0x30dcb0('0xa')]?_0x467d81[_0x30dcb0('0xa')][_0x30dcb0('0x6')]||null:null,'attributes':_0x467d81['options']?_0x467d81[_0x30dcb0('0xa')][_0x30dcb0('0xc')]||null:null,'limit':_0x467d81[_0x30dcb0('0xa')]?_0x467d81[_0x30dcb0('0xa')][_0x30dcb0('0x14')]||null:null,'include':_0x467d81[_0x30dcb0('0xa')]?_0x467d81['options']['include']?_['map'](_0x467d81['options']['include'],function(_0x46c626){const _0x48951f=_0x30dcb0;return{'model':db[_0x46c626['model']],'as':_0x46c626['as'],'attributes':_0x46c626[_0x48951f('0xc')],'include':_0x46c626[_0x48951f('0x2')]?_[_0x48951f('0xe')](_0x46c626[_0x48951f('0x2')],function(_0x5873ef){const _0x3a5b3d=_0x48951f;return{'model':db[_0x5873ef['model']],'as':_0x5873ef['as'],'attributes':_0x5873ef[_0x3a5b3d('0xc')],'include':_0x5873ef[_0x3a5b3d('0x2')]?_[_0x3a5b3d('0xe')](_0x5873ef[_0x3a5b3d('0x2')],function(_0x1d58b6){const _0x34ab55=_0x3a5b3d;return{'model':db[_0x1d58b6[_0x34ab55('0xb')]],'as':_0x1d58b6['as'],'attributes':_0x1d58b6[_0x34ab55('0xc')]};}):[]};}):[]};}):[]:[]})[_0x30dcb0('0x4')](function(_0x1b646c){const _0x2abe6a=_0x30dcb0;logger[_0x2abe6a('0x11')](_0x2abe6a('0x0'),_0x467d81),logger[_0x2abe6a('0x1')](_0x2abe6a('0x0'),_0x467d81,JSON[_0x2abe6a('0x9')](_0x1b646c)),_0x596e66(_0x1b646c);})[_0x30dcb0('0x13')](function(_0x29906b){const _0x533d78=_0x30dcb0;logger[_0x533d78('0x7')](_0x533d78('0x0'),_0x29906b['message'],_0x467d81),_0xc148c4(_0x2ec596[_0x533d78('0x7')](0x1f4,_0x29906b[_0x533d78('0x15')]));});});},exports[_0x6e5716('0x10')]=function(_0x12994b){const _0x5bddca=this;return new Promise(function(_0x1fe40a,_0x2a4f6d){const _0xe0674d=a296_0x47c4;return db[_0xe0674d('0x12')]['findOne']({'raw':_0x12994b[_0xe0674d('0xa')]?_0x12994b[_0xe0674d('0xa')][_0xe0674d('0x8')]===undefined?!![]:![]:!![],'where':_0x12994b[_0xe0674d('0xa')]?_0x12994b[_0xe0674d('0xa')][_0xe0674d('0x6')]||null:null,'attributes':_0x12994b[_0xe0674d('0xa')]?_0x12994b[_0xe0674d('0xa')][_0xe0674d('0xc')]||null:null,'include':_0x12994b[_0xe0674d('0xa')]?_0x12994b[_0xe0674d('0xa')][_0xe0674d('0x2')]?_[_0xe0674d('0xe')](_0x12994b[_0xe0674d('0xa')][_0xe0674d('0x2')],function(_0x415cb5){const _0x475935=_0xe0674d;return{'model':db[_0x415cb5[_0x475935('0xb')]],'as':_0x415cb5['as'],'attributes':_0x415cb5['attributes'],'include':_0x415cb5[_0x475935('0x2')]?_[_0x475935('0xe')](_0x415cb5[_0x475935('0x2')],function(_0x4bd8a8){const _0x32a31c=_0x475935;return{'model':db[_0x4bd8a8[_0x32a31c('0xb')]],'as':_0x4bd8a8['as'],'attributes':_0x4bd8a8[_0x32a31c('0xc')],'include':_0x4bd8a8[_0x32a31c('0x2')]?_['map'](_0x4bd8a8['include'],function(_0x397f14){const _0x3485da=_0x32a31c;return{'model':db[_0x397f14[_0x3485da('0xb')]],'as':_0x397f14['as'],'attributes':_0x397f14[_0x3485da('0xc')]};}):[]};}):[]};}):[]:[]})[_0xe0674d('0x4')](function(_0x15d2b3){const _0x47a348=_0xe0674d;logger[_0x47a348('0x11')](_0x47a348('0x10'),_0x12994b),logger['debug'](_0x47a348('0x10'),_0x12994b,JSON[_0x47a348('0x9')](_0x15d2b3)),_0x1fe40a(_0x15d2b3);})['catch'](function(_0x5ddeb1){const _0xba4589=_0xe0674d;logger['error'](_0xba4589('0x10'),_0x5ddeb1[_0xba4589('0x15')],_0x12994b),_0x2a4f6d(_0x5bddca[_0xba4589('0x7')](0x1f4,_0x5ddeb1[_0xba4589('0x15')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index a65fcae..e15f98e 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a297_0x5982=['../../components/auth/service','./intServicenowConfiguration.controller','/:id/subjects','get','delete','/:id/descriptions','isAuthenticated','destroy','getDescriptions','getFields','express','getSubjects','show','index','post','/:id','/:id/fields'];(function(_0xe7c3c3,_0x5982d3){const _0x132275=function(_0x2bb240){while(--_0x2bb240){_0xe7c3c3['push'](_0xe7c3c3['shift']());}};_0x132275(++_0x5982d3);}(a297_0x5982,0xdb));const a297_0x1322=function(_0xe7c3c3,_0x5982d3){_0xe7c3c3=_0xe7c3c3-0x0;let _0x132275=a297_0x5982[_0xe7c3c3];return _0x132275;};const _0x1fa65b=a297_0x1322;'use strict';const express=require(_0x1fa65b('0xc')),router=express['Router'](),auth=require(_0x1fa65b('0x2')),controller=require(_0x1fa65b('0x3'));router['get']('/',auth['isAuthenticated'](),controller[_0x1fa65b('0xf')]),router['get']('/:id',auth[_0x1fa65b('0x8')](),controller[_0x1fa65b('0xe')]),router[_0x1fa65b('0x5')](_0x1fa65b('0x1'),auth[_0x1fa65b('0x8')](),controller[_0x1fa65b('0xb')]),router[_0x1fa65b('0x5')](_0x1fa65b('0x4'),auth['isAuthenticated'](),controller[_0x1fa65b('0xd')]),router['get'](_0x1fa65b('0x7'),auth[_0x1fa65b('0x8')](),controller[_0x1fa65b('0xa')]),router[_0x1fa65b('0x10')]('/',auth[_0x1fa65b('0x8')](),controller['create']),router['put']('/:id',auth[_0x1fa65b('0x8')](),controller['update']),router[_0x1fa65b('0x6')](_0x1fa65b('0x0'),auth['isAuthenticated'](),controller[_0x1fa65b('0x9')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index e643701..acde6a1 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a298_0x50c0=['sequelize','STRING'];(function(_0xe6f960,_0x50c049){const _0x33ecc5=function(_0x32191f){while(--_0x32191f){_0xe6f960['push'](_0xe6f960['shift']());}};_0x33ecc5(++_0x50c049);}(a298_0x50c0,0x1c0));const a298_0x33ec=function(_0xe6f960,_0x50c049){_0xe6f960=_0xe6f960-0x0;let _0x33ecc5=a298_0x50c0[_0xe6f960];return _0x33ecc5;};const _0xf24ada=a298_0x33ec;'use strict';const Sequelize=require(_0xf24ada('0x0'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xf24ada('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index 80d4a36..b81f415 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a299_0x1b77=['../../config/logger','then','json','filter','send','sort','includeAll','create','length','fields','like','findOne','../../mysqldb','limit','attributes','rawAttributes','destroy','findAll','../../components/parsers/qs','show','end','status','map','keys','intersection','update','VIRTUAL','body','getSubjects','set','sendStatus','undefined','nolimit','where','ServicenowConfiguration','lodash','getFields','options','query','catch','type','pick','index','offset','rows','filters','include','merge','count','params','name','order','ServicenowField','model','getDescriptions'];(function(_0x4090fa,_0x1b77f7){const _0x450f8e=function(_0x56dfd4){while(--_0x56dfd4){_0x4090fa['push'](_0x4090fa['shift']());}};_0x450f8e(++_0x1b77f7);}(a299_0x1b77,0xcd));const a299_0x450f=function(_0x4090fa,_0x1b77f7){_0x4090fa=_0x4090fa-0x0;let _0x450f8e=a299_0x1b77[_0x4090fa];return _0x450f8e;};const _0x72723c=a299_0x450f;'use strict';const _=require(_0x72723c('0x32')),qs=require(_0x72723c('0x21')),logger=require(_0x72723c('0xf'))('api'),db=require(_0x72723c('0x1b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x56dfd4,_0x300610){return _0x300610=_0x300610||0xc8,function(_0x1c4cc8){const _0x522875=a299_0x450f;if(_0x1c4cc8)return _0x56dfd4[_0x522875('0x24')](_0x300610)[_0x522875('0x11')](_0x1c4cc8);};}function respondWithFilteredResult(_0x2fee09,_0x284ff7){return function(_0x5961c9){const _0x49dd0e=a299_0x450f;if(_0x5961c9){const _0x408c6d=_0x5961c9[_0x49dd0e('0x8')],_0x50c5ff=_0x284ff7[_0x49dd0e('0x3')];let _0x4ff743=_0x284ff7['offset']+_0x284ff7[_0x49dd0e('0x1c')],_0x389e51;return _0x4ff743>=_0x408c6d?(_0x4ff743=_0x408c6d,_0x389e51=0xc8):_0x389e51=0xce,_0x2fee09[_0x49dd0e('0x24')](_0x389e51),_0x2fee09[_0x49dd0e('0x2c')]('Content-Range',_0x50c5ff+'-'+_0x4ff743+'/'+_0x408c6d)[_0x49dd0e('0x11')](_0x5961c9);}return null;};}function saveUpdates(_0x44838f){return function(_0x477915){const _0x30704b=a299_0x450f;if(_0x477915)return _0x477915[_0x30704b('0x28')](_0x44838f)[_0x30704b('0x10')](function(_0x2e434e){return _0x2e434e;});return null;};}function removeEntity(_0x5e8524){return function(_0x3562f9){const _0x1310e3=a299_0x450f;if(_0x3562f9)return _0x3562f9[_0x1310e3('0x1f')]()['then'](function(){const _0x29acf9=_0x1310e3;_0x5e8524[_0x29acf9('0x24')](0xcc)[_0x29acf9('0x23')]();});};}function handleEntityNotFound(_0x1b76e4){return function(_0x51da13){const _0x12f832=a299_0x450f;return!_0x51da13&&_0x1b76e4[_0x12f832('0x2d')](0x194),_0x51da13;};}function handleError(_0x54456a,_0x3a0ba6){return _0x3a0ba6=_0x3a0ba6||0x1f4,function(_0xe34626){const _0x3fe950=a299_0x450f;logger['error'](_0xe34626['stack']),_0xe34626['name']&&delete _0xe34626[_0x3fe950('0xa')],_0x54456a[_0x3fe950('0x24')](_0x3a0ba6)[_0x3fe950('0x13')](_0xe34626);};}exports[_0x72723c('0x2')]=function(_0x4e672b,_0x59099f){const _0x1db542=_0x72723c;let _0x5d8304={};const _0x5e4b6e={},_0x265c63={'count':0x0,'rows':[]},_0x2b991d=_[_0x1db542('0x25')](db['ServicenowConfiguration'][_0x1db542('0x1e')],function(_0x3f973d){const _0x8c857a=_0x1db542;return{'name':_0x3f973d['fieldName'],'type':_0x3f973d[_0x8c857a('0x0')]['key']};});_0x5e4b6e[_0x1db542('0xd')]=_['map'](_0x2b991d,'name'),_0x5e4b6e[_0x1db542('0x35')]=_[_0x1db542('0x26')](_0x4e672b[_0x1db542('0x35')]),_0x5e4b6e[_0x1db542('0x5')]=_[_0x1db542('0x27')](_0x5e4b6e['model'],_0x5e4b6e[_0x1db542('0x35')]),_0x5d8304[_0x1db542('0x1d')]=_['intersection'](_0x5e4b6e[_0x1db542('0xd')],qs['fields'](_0x4e672b[_0x1db542('0x35')]['fields'])),_0x5d8304[_0x1db542('0x1d')]=_0x5d8304[_0x1db542('0x1d')][_0x1db542('0x17')]?_0x5d8304[_0x1db542('0x1d')]:_0x5e4b6e['model'];typeof _0x4e672b['query']['nolimit']==='undefined'&&(_0x5d8304[_0x1db542('0x1c')]=qs[_0x1db542('0x1c')](_0x4e672b['query'][_0x1db542('0x1c')]),_0x5d8304[_0x1db542('0x3')]=qs[_0x1db542('0x3')](_0x4e672b[_0x1db542('0x35')][_0x1db542('0x3')]));_0x5d8304[_0x1db542('0xb')]=qs[_0x1db542('0x14')](_0x4e672b[_0x1db542('0x35')][_0x1db542('0x14')]),_0x5d8304[_0x1db542('0x30')]=qs[_0x1db542('0x5')](_[_0x1db542('0x1')](_0x4e672b[_0x1db542('0x35')],_0x5e4b6e[_0x1db542('0x5')]),_0x2b991d);_0x4e672b[_0x1db542('0x35')][_0x1db542('0x12')]&&(_0x5d8304[_0x1db542('0x30')]=_['merge'](_0x5d8304[_0x1db542('0x30')],{[Op['or']]:_[_0x1db542('0x25')](_0x2b991d,function(_0x4f36dd){const _0x835f58=_0x1db542;if(_0x4f36dd['type']!==_0x835f58('0x29')){const _0x511d96={};return _0x511d96[_0x4f36dd[_0x835f58('0xa')]]={[Op[_0x835f58('0x19')]]:'%'+_0x4e672b['query'][_0x835f58('0x12')]+'%'},_0x511d96;}})}));_0x5d8304=_[_0x1db542('0x7')]({},_0x5d8304,_0x4e672b['options']);const _0x56a03b={'where':_0x5d8304['where']};return db[_0x1db542('0x31')][_0x1db542('0x8')](_0x56a03b)[_0x1db542('0x10')](function(_0x36dabe){const _0x368bd9=_0x1db542;return _0x265c63[_0x368bd9('0x8')]=_0x36dabe,_0x4e672b[_0x368bd9('0x35')][_0x368bd9('0x15')]&&(_0x5d8304['include']=[{'all':!![]}]),db[_0x368bd9('0x31')][_0x368bd9('0x20')](_0x5d8304);})['then'](function(_0x2bfab3){const _0x19a918=_0x1db542;return _0x265c63[_0x19a918('0x4')]=_0x2bfab3,_0x265c63;})[_0x1db542('0x10')](respondWithFilteredResult(_0x59099f,_0x5d8304))[_0x1db542('0x36')](handleError(_0x59099f,null));},exports[_0x72723c('0x22')]=function(_0x104994,_0x480113){const _0x57a11f=_0x72723c;let _0x33a840={'raw':![],'where':{'id':_0x104994[_0x57a11f('0x9')]['id']}};const _0x8bf90e={};return _0x8bf90e[_0x57a11f('0xd')]=_['keys'](db[_0x57a11f('0x31')][_0x57a11f('0x1e')]),_0x8bf90e[_0x57a11f('0x35')]=_[_0x57a11f('0x26')](_0x104994[_0x57a11f('0x35')]),_0x8bf90e[_0x57a11f('0x5')]=_['intersection'](_0x8bf90e[_0x57a11f('0xd')],_0x8bf90e[_0x57a11f('0x35')]),_0x33a840[_0x57a11f('0x1d')]=_[_0x57a11f('0x27')](_0x8bf90e[_0x57a11f('0xd')],qs[_0x57a11f('0x18')](_0x104994[_0x57a11f('0x35')][_0x57a11f('0x18')])),_0x33a840[_0x57a11f('0x1d')]=_0x33a840[_0x57a11f('0x1d')][_0x57a11f('0x17')]?_0x33a840['attributes']:_0x8bf90e[_0x57a11f('0xd')],_0x104994[_0x57a11f('0x35')][_0x57a11f('0x15')]&&(_0x33a840[_0x57a11f('0x6')]=[{'all':!![]}]),_0x33a840=_['merge']({},_0x33a840,_0x104994['options']),db[_0x57a11f('0x31')][_0x57a11f('0x1a')](_0x33a840)[_0x57a11f('0x10')](handleEntityNotFound(_0x480113,null))[_0x57a11f('0x10')](respondWithResult(_0x480113,null))['catch'](handleError(_0x480113,null));},exports[_0x72723c('0x16')]=function(_0x54a568,_0x2d5c42){const _0x3a389f=_0x72723c;return db[_0x3a389f('0x31')]['create'](_0x54a568[_0x3a389f('0x2a')],{})['then'](respondWithResult(_0x2d5c42,0xc9))[_0x3a389f('0x36')](handleError(_0x2d5c42,null));},exports[_0x72723c('0x28')]=function(_0x1b0338,_0x13ed00){const _0x4dc4b1=_0x72723c;return _0x1b0338[_0x4dc4b1('0x2a')]['id']&&delete _0x1b0338[_0x4dc4b1('0x2a')]['id'],db[_0x4dc4b1('0x31')][_0x4dc4b1('0x1a')]({'where':{'id':_0x1b0338[_0x4dc4b1('0x9')]['id']}})[_0x4dc4b1('0x10')](handleEntityNotFound(_0x13ed00,null))[_0x4dc4b1('0x10')](saveUpdates(_0x1b0338[_0x4dc4b1('0x2a')],null))[_0x4dc4b1('0x10')](respondWithResult(_0x13ed00,null))['catch'](handleError(_0x13ed00,null));},exports[_0x72723c('0x1f')]=function(_0x116406,_0x1a0ab0){const _0x581668=_0x72723c;return db[_0x581668('0x31')][_0x581668('0x1a')]({'where':{'id':_0x116406[_0x581668('0x9')]['id']}})[_0x581668('0x10')](handleEntityNotFound(_0x1a0ab0,null))[_0x581668('0x10')](removeEntity(_0x1a0ab0,null))[_0x581668('0x36')](handleError(_0x1a0ab0,null));},exports[_0x72723c('0x33')]=function(_0x137889,_0x16666a){const _0x2b54a6=_0x72723c;let _0xc063da={};const _0x4517eb={};let _0x5c309d,_0xb53501;return db[_0x2b54a6('0x31')][_0x2b54a6('0x1a')]({'where':{'id':_0x137889[_0x2b54a6('0x9')]['id']}})['then'](handleEntityNotFound(_0x16666a,null))[_0x2b54a6('0x10')](function(_0x4ef1fc){const _0x2be74e=_0x2b54a6;if(_0x4ef1fc)return _0x5c309d=_0x4ef1fc,_0x4517eb['model']=_[_0x2be74e('0x26')](db[_0x2be74e('0xc')][_0x2be74e('0x1e')]),_0x4517eb[_0x2be74e('0x35')]=_[_0x2be74e('0x26')](_0x137889[_0x2be74e('0x35')]),_0x4517eb[_0x2be74e('0x5')]=_['intersection'](_0x4517eb[_0x2be74e('0xd')],_0x4517eb['query']),_0xc063da[_0x2be74e('0x1d')]=_[_0x2be74e('0x27')](_0x4517eb[_0x2be74e('0xd')],qs[_0x2be74e('0x18')](_0x137889[_0x2be74e('0x35')][_0x2be74e('0x18')])),_0xc063da['attributes']=_0xc063da['attributes']['length']?_0xc063da[_0x2be74e('0x1d')]:_0x4517eb[_0x2be74e('0xd')],_0xc063da[_0x2be74e('0xb')]=qs[_0x2be74e('0x14')](_0x137889['query'][_0x2be74e('0x14')]),_0xc063da[_0x2be74e('0x30')]=qs[_0x2be74e('0x5')](_[_0x2be74e('0x1')](_0x137889[_0x2be74e('0x35')],_0x4517eb[_0x2be74e('0x5')])),_0x137889[_0x2be74e('0x35')][_0x2be74e('0x12')]&&(_0xc063da['where']=_[_0x2be74e('0x7')](_0xc063da[_0x2be74e('0x30')],{[Op['or']]:_['map'](_0xc063da[_0x2be74e('0x1d')],function(_0x3e20ef){const _0x5b07f5=_0x2be74e,_0x137420={};return _0x137420[_0x3e20ef]={[Op[_0x5b07f5('0x19')]]:'%'+_0x137889[_0x5b07f5('0x35')][_0x5b07f5('0x12')]+'%'},_0x137420;})})),_0xc063da=_['merge']({},_0xc063da,_0x137889['options']),_0x5c309d[_0x2be74e('0x33')](_0xc063da);})[_0x2b54a6('0x10')](function(_0xf7a7e7){const _0x2c76b5=_0x2b54a6;if(_0xf7a7e7)return _0xb53501=_0xf7a7e7[_0x2c76b5('0x17')],typeof _0x137889[_0x2c76b5('0x35')][_0x2c76b5('0x2f')]===_0x2c76b5('0x2e')&&(_0xc063da[_0x2c76b5('0x1c')]=qs['limit'](_0x137889[_0x2c76b5('0x35')][_0x2c76b5('0x1c')]),_0xc063da[_0x2c76b5('0x3')]=qs[_0x2c76b5('0x3')](_0x137889[_0x2c76b5('0x35')][_0x2c76b5('0x3')])),_0x5c309d[_0x2c76b5('0x33')](_0xc063da);})[_0x2b54a6('0x10')](function(_0x5afa2f){if(_0x5afa2f)return _0x5afa2f?{'count':_0xb53501,'rows':_0x5afa2f}:null;})[_0x2b54a6('0x10')](respondWithResult(_0x16666a,null))[_0x2b54a6('0x36')](handleError(_0x16666a,null));},exports[_0x72723c('0x2b')]=function(_0x5cb916,_0x1455a7){const _0x2dcf6b=_0x72723c;let _0x4f61c4={};const _0x5b4d42={};let _0x947698,_0x19d7ff;return db[_0x2dcf6b('0x31')][_0x2dcf6b('0x1a')]({'where':{'id':_0x5cb916[_0x2dcf6b('0x9')]['id']}})[_0x2dcf6b('0x10')](handleEntityNotFound(_0x1455a7,null))[_0x2dcf6b('0x10')](function(_0x33dc90){const _0x1e1835=_0x2dcf6b;if(_0x33dc90)return _0x947698=_0x33dc90,_0x5b4d42[_0x1e1835('0xd')]=_['keys'](db['ServicenowField']['rawAttributes']),_0x5b4d42[_0x1e1835('0x35')]=_[_0x1e1835('0x26')](_0x5cb916['query']),_0x5b4d42['filters']=_[_0x1e1835('0x27')](_0x5b4d42[_0x1e1835('0xd')],_0x5b4d42[_0x1e1835('0x35')]),_0x4f61c4[_0x1e1835('0x1d')]=_[_0x1e1835('0x27')](_0x5b4d42[_0x1e1835('0xd')],qs[_0x1e1835('0x18')](_0x5cb916[_0x1e1835('0x35')][_0x1e1835('0x18')])),_0x4f61c4[_0x1e1835('0x1d')]=_0x4f61c4[_0x1e1835('0x1d')][_0x1e1835('0x17')]?_0x4f61c4['attributes']:_0x5b4d42[_0x1e1835('0xd')],_0x4f61c4[_0x1e1835('0xb')]=qs[_0x1e1835('0x14')](_0x5cb916['query'][_0x1e1835('0x14')]),_0x4f61c4['where']=qs[_0x1e1835('0x5')](_[_0x1e1835('0x1')](_0x5cb916['query'],_0x5b4d42[_0x1e1835('0x5')])),_0x5cb916[_0x1e1835('0x35')]['filter']&&(_0x4f61c4[_0x1e1835('0x30')]=_[_0x1e1835('0x7')](_0x4f61c4[_0x1e1835('0x30')],{[Op['or']]:_['map'](_0x4f61c4[_0x1e1835('0x1d')],function(_0x38b1b9){const _0x90835f=_0x1e1835,_0x488982={};return _0x488982[_0x38b1b9]={[Op[_0x90835f('0x19')]]:'%'+_0x5cb916[_0x90835f('0x35')][_0x90835f('0x12')]+'%'},_0x488982;})})),_0x4f61c4=_[_0x1e1835('0x7')]({},_0x4f61c4,_0x5cb916[_0x1e1835('0x34')]),_0x947698[_0x1e1835('0x2b')](_0x4f61c4);})[_0x2dcf6b('0x10')](function(_0x3cf640){const _0x33ec8e=_0x2dcf6b;if(_0x3cf640)return _0x19d7ff=_0x3cf640[_0x33ec8e('0x17')],typeof _0x5cb916[_0x33ec8e('0x35')][_0x33ec8e('0x2f')]==='undefined'&&(_0x4f61c4[_0x33ec8e('0x1c')]=qs['limit'](_0x5cb916[_0x33ec8e('0x35')][_0x33ec8e('0x1c')]),_0x4f61c4[_0x33ec8e('0x3')]=qs['offset'](_0x5cb916[_0x33ec8e('0x35')][_0x33ec8e('0x3')])),_0x947698[_0x33ec8e('0x2b')](_0x4f61c4);})['then'](function(_0x421ca9){if(_0x421ca9)return _0x421ca9?{'count':_0x19d7ff,'rows':_0x421ca9}:null;})[_0x2dcf6b('0x10')](respondWithResult(_0x1455a7,null))[_0x2dcf6b('0x36')](handleError(_0x1455a7,null));},exports[_0x72723c('0xe')]=function(_0x38b80d,_0x398fdc){const _0x454bb5=_0x72723c;let _0x4cf845={};const _0x501cff={};let _0x7956c2,_0x658b83;return db['ServicenowConfiguration'][_0x454bb5('0x1a')]({'where':{'id':_0x38b80d[_0x454bb5('0x9')]['id']}})[_0x454bb5('0x10')](handleEntityNotFound(_0x398fdc,null))[_0x454bb5('0x10')](function(_0x5989af){const _0x5d0b1d=_0x454bb5;if(_0x5989af)return _0x7956c2=_0x5989af,_0x501cff['model']=_[_0x5d0b1d('0x26')](db[_0x5d0b1d('0xc')][_0x5d0b1d('0x1e')]),_0x501cff[_0x5d0b1d('0x35')]=_['keys'](_0x38b80d[_0x5d0b1d('0x35')]),_0x501cff[_0x5d0b1d('0x5')]=_['intersection'](_0x501cff[_0x5d0b1d('0xd')],_0x501cff[_0x5d0b1d('0x35')]),_0x4cf845['attributes']=_[_0x5d0b1d('0x27')](_0x501cff[_0x5d0b1d('0xd')],qs[_0x5d0b1d('0x18')](_0x38b80d[_0x5d0b1d('0x35')]['fields'])),_0x4cf845['attributes']=_0x4cf845[_0x5d0b1d('0x1d')][_0x5d0b1d('0x17')]?_0x4cf845['attributes']:_0x501cff['model'],_0x4cf845[_0x5d0b1d('0xb')]=qs[_0x5d0b1d('0x14')](_0x38b80d[_0x5d0b1d('0x35')]['sort']),_0x4cf845[_0x5d0b1d('0x30')]=qs[_0x5d0b1d('0x5')](_[_0x5d0b1d('0x1')](_0x38b80d['query'],_0x501cff['filters'])),_0x38b80d['query']['filter']&&(_0x4cf845[_0x5d0b1d('0x30')]=_[_0x5d0b1d('0x7')](_0x4cf845[_0x5d0b1d('0x30')],{[Op['or']]:_[_0x5d0b1d('0x25')](_0x4cf845[_0x5d0b1d('0x1d')],function(_0xf10528){const _0x2f66f9=_0x5d0b1d,_0x1a5807={};return _0x1a5807[_0xf10528]={[Op['like']]:'%'+_0x38b80d[_0x2f66f9('0x35')][_0x2f66f9('0x12')]+'%'},_0x1a5807;})})),_0x4cf845=_[_0x5d0b1d('0x7')]({},_0x4cf845,_0x38b80d[_0x5d0b1d('0x34')]),_0x7956c2[_0x5d0b1d('0xe')](_0x4cf845);})[_0x454bb5('0x10')](function(_0x24f628){const _0x3d1d09=_0x454bb5;if(_0x24f628)return _0x658b83=_0x24f628[_0x3d1d09('0x17')],typeof _0x38b80d[_0x3d1d09('0x35')][_0x3d1d09('0x2f')]===_0x3d1d09('0x2e')&&(_0x4cf845[_0x3d1d09('0x1c')]=qs['limit'](_0x38b80d[_0x3d1d09('0x35')][_0x3d1d09('0x1c')]),_0x4cf845[_0x3d1d09('0x3')]=qs[_0x3d1d09('0x3')](_0x38b80d[_0x3d1d09('0x35')]['offset'])),_0x7956c2[_0x3d1d09('0xe')](_0x4cf845);})[_0x454bb5('0x10')](function(_0x15de26){if(_0x15de26)return _0x15de26?{'count':_0x658b83,'rows':_0x15de26}:null;})[_0x454bb5('0x10')](respondWithResult(_0x398fdc,null))[_0x454bb5('0x36')](handleError(_0x398fdc,null));}; \ No newline at end of file +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 diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index e6e73b3..8808b26 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a300_0x21cd=['./intServicenowConfiguration.attributes','define','ServicenowConfiguration','int_servicenow_configurations'];(function(_0x17dde8,_0x21cdda){const _0x1f123d=function(_0x156032){while(--_0x156032){_0x17dde8['push'](_0x17dde8['shift']());}};_0x1f123d(++_0x21cdda);}(a300_0x21cd,0x137));const a300_0x1f12=function(_0x17dde8,_0x21cdda){_0x17dde8=_0x17dde8-0x0;let _0x1f123d=a300_0x21cd[_0x17dde8];return _0x1f123d;};const _0x47def2=a300_0x1f12;'use strict';const attributes=require(_0x47def2('0x1'));module['exports']=function(_0x156032){const _0x17c993=_0x47def2,_0x7df3f5=_0x156032[_0x17c993('0x2')](_0x17c993('0x3'),attributes,{'tableName':_0x17c993('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x7df3f5;}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index a05321d..e5939f8 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a301_0x3333=['update','put','isAuthenticated','/:id','exports','delete','get','Router','index','show','../../components/auth/service'];(function(_0x15f4cd,_0x333383){const _0x4acffa=function(_0x5359c4){while(--_0x5359c4){_0x15f4cd['push'](_0x15f4cd['shift']());}};_0x4acffa(++_0x333383);}(a301_0x3333,0x174));const a301_0x4acf=function(_0x15f4cd,_0x333383){_0x15f4cd=_0x15f4cd-0x0;let _0x4acffa=a301_0x3333[_0x15f4cd];return _0x4acffa;};const _0x52d871=a301_0x4acf;'use strict';const express=require('express'),router=express[_0x52d871('0x9')](),auth=require(_0x52d871('0x1')),controller=require('./intServicenowField.controller');router[_0x52d871('0x8')]('/',auth['isAuthenticated'](),controller[_0x52d871('0xa')]),router['get'](_0x52d871('0x5'),auth[_0x52d871('0x4')](),controller[_0x52d871('0x0')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x52d871('0x3')](_0x52d871('0x5'),auth[_0x52d871('0x4')](),controller[_0x52d871('0x2')]),router[_0x52d871('0x7')](_0x52d871('0x5'),auth['isAuthenticated'](),controller['destroy']),module[_0x52d871('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.attributes.js b/server/api/intServicenowField/intServicenowField.attributes.js index 9f21e8a..56f9442 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a302_0x21b1=['ENUM','exports','STRING','variable','sequelize','customVariable','BOOLEAN','keyValue','string'];(function(_0x55b1bf,_0x21b1c9){const _0x37e041=function(_0x153659){while(--_0x153659){_0x55b1bf['push'](_0x55b1bf['shift']());}};_0x37e041(++_0x21b1c9);}(a302_0x21b1,0x135));const a302_0x37e0=function(_0x55b1bf,_0x21b1c9){_0x55b1bf=_0x55b1bf-0x0;let _0x37e041=a302_0x21b1[_0x55b1bf];return _0x37e041;};const _0x54ac85=a302_0x37e0;'use strict';const Sequelize=require(_0x54ac85('0x1'));module[_0x54ac85('0x7')]={'type':{'type':Sequelize[_0x54ac85('0x6')](_0x54ac85('0x5'),'variable','customVariable',_0x54ac85('0x4')),'defaultValue':_0x54ac85('0x5')},'content':{'type':Sequelize[_0x54ac85('0x8')]},'key':{'type':Sequelize[_0x54ac85('0x8')]},'keyType':{'type':Sequelize[_0x54ac85('0x6')]('string',_0x54ac85('0x0'),_0x54ac85('0x2'))},'keyContent':{'type':Sequelize[_0x54ac85('0x8')]},'idField':{'type':Sequelize[_0x54ac85('0x8')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x54ac85('0x3')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x54ac85('0x8')]}}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index 37e301c..a9f6aa7 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a303_0x14d4=['undefined','length','Content-Range','create','json','offset','../../mysqldb','where','then','VIRTUAL','options','merge','params','index','send','attributes','include','ServicenowField','limit','destroy','error','filters','nolimit','name','sendStatus','like','update','keys','fields','model','count','query','end','rows','body','includeAll','findAll','intersection','status','fieldName','map','catch','filter','api','findOne','sort','lodash','../../config/logger','rawAttributes','stack'];(function(_0x2a5cb9,_0x14d46f){const _0x526ef7=function(_0x3d4436){while(--_0x3d4436){_0x2a5cb9['push'](_0x2a5cb9['shift']());}};_0x526ef7(++_0x14d46f);}(a303_0x14d4,0xb8));const a303_0x526e=function(_0x2a5cb9,_0x14d46f){_0x2a5cb9=_0x2a5cb9-0x0;let _0x526ef7=a303_0x14d4[_0x2a5cb9];return _0x526ef7;};const _0x37526f=a303_0x526e;'use strict';const _=require(_0x37526f('0xc')),qs=require('../../components/parsers/qs'),logger=require(_0x37526f('0xd'))(_0x37526f('0x9')),db=require(_0x37526f('0x16'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3d4436,_0x391999){return _0x391999=_0x391999||0xc8,function(_0x1a0baf){const _0x42c501=a303_0x526e;if(_0x1a0baf)return _0x3d4436[_0x42c501('0x4')](_0x391999)[_0x42c501('0x14')](_0x1a0baf);};}function respondWithFilteredResult(_0xb263e1,_0x410cad){return function(_0x406441){const _0x1e9294=a303_0x526e;if(_0x406441){const _0xb2361e=_0x406441['count'],_0x5e1ae9=_0x410cad[_0x1e9294('0x15')];let _0x24dcf8=_0x410cad[_0x1e9294('0x15')]+_0x410cad[_0x1e9294('0x22')],_0x134417;return _0x24dcf8>=_0xb2361e?(_0x24dcf8=_0xb2361e,_0x134417=0xc8):_0x134417=0xce,_0xb263e1['status'](_0x134417),_0xb263e1['set'](_0x1e9294('0x12'),_0x5e1ae9+'-'+_0x24dcf8+'/'+_0xb2361e)[_0x1e9294('0x14')](_0x406441);}return null;};}function saveUpdates(_0x3a4462){return function(_0x1083b4){const _0x1f61d0=a303_0x526e;if(_0x1083b4)return _0x1083b4[_0x1f61d0('0x2a')](_0x3a4462)[_0x1f61d0('0x18')](function(_0x4f60bf){return _0x4f60bf;});return null;};}function removeEntity(_0xc4e047){return function(_0x166b37){const _0x58691a=a303_0x526e;if(_0x166b37)return _0x166b37[_0x58691a('0x23')]()[_0x58691a('0x18')](function(){const _0x303ac8=_0x58691a;_0xc4e047['status'](0xcc)[_0x303ac8('0x30')]();});};}function handleEntityNotFound(_0xcd4f92){return function(_0x50d46c){const _0x537589=a303_0x526e;return!_0x50d46c&&_0xcd4f92[_0x537589('0x28')](0x194),_0x50d46c;};}function handleError(_0x4d7452,_0x79ba3c){return _0x79ba3c=_0x79ba3c||0x1f4,function(_0x3e4670){const _0x390010=a303_0x526e;logger[_0x390010('0x24')](_0x3e4670[_0x390010('0xf')]),_0x3e4670[_0x390010('0x27')]&&delete _0x3e4670['name'],_0x4d7452['status'](_0x79ba3c)[_0x390010('0x1e')](_0x3e4670);};}exports[_0x37526f('0x1d')]=function(_0x13342d,_0x466dbb){const _0x448fb8=_0x37526f;let _0x32206f={};const _0x4ef04c={},_0x1bf514={'count':0x0,'rows':[]},_0xf306a=_['map'](db[_0x448fb8('0x21')][_0x448fb8('0xe')],function(_0x30db92){const _0x30f87a=_0x448fb8;return{'name':_0x30db92[_0x30f87a('0x5')],'type':_0x30db92['type']['key']};});_0x4ef04c[_0x448fb8('0x2d')]=_[_0x448fb8('0x6')](_0xf306a,_0x448fb8('0x27')),_0x4ef04c[_0x448fb8('0x2f')]=_[_0x448fb8('0x2b')](_0x13342d[_0x448fb8('0x2f')]),_0x4ef04c[_0x448fb8('0x25')]=_[_0x448fb8('0x3')](_0x4ef04c[_0x448fb8('0x2d')],_0x4ef04c[_0x448fb8('0x2f')]),_0x32206f[_0x448fb8('0x1f')]=_['intersection'](_0x4ef04c['model'],qs['fields'](_0x13342d[_0x448fb8('0x2f')][_0x448fb8('0x2c')])),_0x32206f[_0x448fb8('0x1f')]=_0x32206f[_0x448fb8('0x1f')]['length']?_0x32206f[_0x448fb8('0x1f')]:_0x4ef04c[_0x448fb8('0x2d')];typeof _0x13342d['query'][_0x448fb8('0x26')]===_0x448fb8('0x10')&&(_0x32206f[_0x448fb8('0x22')]=qs[_0x448fb8('0x22')](_0x13342d['query'][_0x448fb8('0x22')]),_0x32206f[_0x448fb8('0x15')]=qs['offset'](_0x13342d[_0x448fb8('0x2f')][_0x448fb8('0x15')]));_0x32206f['order']=qs[_0x448fb8('0xb')](_0x13342d['query']['sort']),_0x32206f['where']=qs['filters'](_['pick'](_0x13342d[_0x448fb8('0x2f')],_0x4ef04c[_0x448fb8('0x25')]),_0xf306a);_0x13342d[_0x448fb8('0x2f')][_0x448fb8('0x8')]&&(_0x32206f[_0x448fb8('0x17')]=_[_0x448fb8('0x1b')](_0x32206f[_0x448fb8('0x17')],{[Op['or']]:_[_0x448fb8('0x6')](_0xf306a,function(_0x2ae881){const _0x58d85c=_0x448fb8;if(_0x2ae881['type']!==_0x58d85c('0x19')){const _0x5d5535={};return _0x5d5535[_0x2ae881['name']]={[Op[_0x58d85c('0x29')]]:'%'+_0x13342d[_0x58d85c('0x2f')][_0x58d85c('0x8')]+'%'},_0x5d5535;}})}));_0x32206f=_[_0x448fb8('0x1b')]({},_0x32206f,_0x13342d[_0x448fb8('0x1a')]);const _0x5860a8={'where':_0x32206f[_0x448fb8('0x17')]};return db[_0x448fb8('0x21')][_0x448fb8('0x2e')](_0x5860a8)[_0x448fb8('0x18')](function(_0x5ab30b){const _0x5a4863=_0x448fb8;return _0x1bf514[_0x5a4863('0x2e')]=_0x5ab30b,_0x13342d['query']['includeAll']&&(_0x32206f[_0x5a4863('0x20')]=[{'all':!![]}]),db[_0x5a4863('0x21')][_0x5a4863('0x2')](_0x32206f);})[_0x448fb8('0x18')](function(_0x56ee96){const _0x196070=_0x448fb8;return _0x1bf514[_0x196070('0x31')]=_0x56ee96,_0x1bf514;})[_0x448fb8('0x18')](respondWithFilteredResult(_0x466dbb,_0x32206f))['catch'](handleError(_0x466dbb,null));},exports['show']=function(_0x4aae21,_0x19f1e0){const _0x315242=_0x37526f;let _0x154a38={'raw':!![],'where':{'id':_0x4aae21[_0x315242('0x1c')]['id']}};const _0x56ace5={};return _0x56ace5['model']=_[_0x315242('0x2b')](db[_0x315242('0x21')][_0x315242('0xe')]),_0x56ace5[_0x315242('0x2f')]=_[_0x315242('0x2b')](_0x4aae21[_0x315242('0x2f')]),_0x56ace5[_0x315242('0x25')]=_[_0x315242('0x3')](_0x56ace5['model'],_0x56ace5[_0x315242('0x2f')]),_0x154a38[_0x315242('0x1f')]=_[_0x315242('0x3')](_0x56ace5['model'],qs['fields'](_0x4aae21[_0x315242('0x2f')]['fields'])),_0x154a38[_0x315242('0x1f')]=_0x154a38[_0x315242('0x1f')][_0x315242('0x11')]?_0x154a38[_0x315242('0x1f')]:_0x56ace5[_0x315242('0x2d')],_0x4aae21['query'][_0x315242('0x1')]&&(_0x154a38['include']=[{'all':!![]}]),_0x154a38=_['merge']({},_0x154a38,_0x4aae21['options']),db[_0x315242('0x21')][_0x315242('0xa')](_0x154a38)[_0x315242('0x18')](handleEntityNotFound(_0x19f1e0,null))[_0x315242('0x18')](respondWithResult(_0x19f1e0,null))[_0x315242('0x7')](handleError(_0x19f1e0,null));},exports[_0x37526f('0x13')]=function(_0x35617c,_0x5158c7){const _0x104d9d=_0x37526f;return db[_0x104d9d('0x21')][_0x104d9d('0x13')](_0x35617c[_0x104d9d('0x0')],{})['then'](respondWithResult(_0x5158c7,0xc9))[_0x104d9d('0x7')](handleError(_0x5158c7,null));},exports[_0x37526f('0x2a')]=function(_0x2e4cb1,_0x3b3b5e){const _0x2bd487=_0x37526f;return _0x2e4cb1[_0x2bd487('0x0')]['id']&&delete _0x2e4cb1['body']['id'],db[_0x2bd487('0x21')]['findOne']({'where':{'id':_0x2e4cb1[_0x2bd487('0x1c')]['id']}})[_0x2bd487('0x18')](handleEntityNotFound(_0x3b3b5e,null))[_0x2bd487('0x18')](saveUpdates(_0x2e4cb1[_0x2bd487('0x0')],null))[_0x2bd487('0x18')](respondWithResult(_0x3b3b5e,null))[_0x2bd487('0x7')](handleError(_0x3b3b5e,null));},exports[_0x37526f('0x23')]=function(_0x2f7064,_0x475fdc){const _0xa5ecce=_0x37526f;return db[_0xa5ecce('0x21')]['findOne']({'where':{'id':_0x2f7064[_0xa5ecce('0x1c')]['id']}})['then'](handleEntityNotFound(_0x475fdc,null))[_0xa5ecce('0x18')](removeEntity(_0x475fdc,null))[_0xa5ecce('0x7')](handleError(_0x475fdc,null));}; \ No newline at end of file +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 diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index 9373d16..370addc 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a304_0x4267=['FieldId','int_servicenow_fields','define','ServicenowField','idField','exports','servicenow_unique_index','./intServicenowField.attributes'];(function(_0x283b47,_0x426784){const _0x2f39ee=function(_0x46c9f7){while(--_0x46c9f7){_0x283b47['push'](_0x283b47['shift']());}};_0x2f39ee(++_0x426784);}(a304_0x4267,0x11a));const a304_0x2f39=function(_0x283b47,_0x426784){_0x283b47=_0x283b47-0x0;let _0x2f39ee=a304_0x4267[_0x283b47];return _0x2f39ee;};const _0x5cc10c=a304_0x2f39;'use strict';const attributes=require(_0x5cc10c('0x5'));module[_0x5cc10c('0x3')]=function(_0x46c9f7){const _0x3fb58b=_0x5cc10c,_0x32438e=_0x46c9f7[_0x3fb58b('0x0')](_0x3fb58b('0x1'),attributes,{'tableName':_0x3fb58b('0x7'),'paranoid':![],'indexes':[{'name':_0x3fb58b('0x4'),'fields':[_0x3fb58b('0x2'),_0x3fb58b('0x6')],'unique':!![]}],'timestamps':!![]});return _0x32438e;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index 7c95fe9..3aa0a14 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a305_0x1b49=['./intSugarcrmAccount.controller','isAuthenticated','/:id/configurations','Router','exports','../../components/auth/service','get','express','getFields','post','index','update','show','addConfiguration','create','delete','/:id'];(function(_0x3d870c,_0x1b494a){const _0x64f2ac=function(_0x11a7a4){while(--_0x11a7a4){_0x3d870c['push'](_0x3d870c['shift']());}};_0x64f2ac(++_0x1b494a);}(a305_0x1b49,0xde));const a305_0x64f2=function(_0x3d870c,_0x1b494a){_0x3d870c=_0x3d870c-0x0;let _0x64f2ac=a305_0x1b49[_0x3d870c];return _0x64f2ac;};const _0x5ba04b=a305_0x64f2;'use strict';const express=require(_0x5ba04b('0x6')),router=express[_0x5ba04b('0x2')](),auth=require(_0x5ba04b('0x4')),controller=require(_0x5ba04b('0x10'));router[_0x5ba04b('0x5')]('/',auth[_0x5ba04b('0x0')](),controller[_0x5ba04b('0x9')]),router[_0x5ba04b('0x5')](_0x5ba04b('0xf'),auth[_0x5ba04b('0x0')](),controller[_0x5ba04b('0xb')]),router['get'](_0x5ba04b('0x1'),auth[_0x5ba04b('0x0')](),controller['getConfigurations']),router[_0x5ba04b('0x5')]('/:id/fields',auth[_0x5ba04b('0x0')](),controller[_0x5ba04b('0x7')]),router[_0x5ba04b('0x8')]('/',auth[_0x5ba04b('0x0')](),controller[_0x5ba04b('0xd')]),router[_0x5ba04b('0x8')](_0x5ba04b('0x1'),auth['isAuthenticated'](),controller[_0x5ba04b('0xc')]),router['put'](_0x5ba04b('0xf'),auth[_0x5ba04b('0x0')](),controller[_0x5ba04b('0xa')]),router[_0x5ba04b('0xe')](_0x5ba04b('0xf'),auth[_0x5ba04b('0x0')](),controller['destroy']),module[_0x5ba04b('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index fa31bb8..68ccc98 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a306_0x44f2=['username','STRING','sequelize','exports','remoteUri'];(function(_0x4e4472,_0x44f247){const _0x3c32ac=function(_0xef2809){while(--_0xef2809){_0x4e4472['push'](_0x4e4472['shift']());}};_0x3c32ac(++_0x44f247);}(a306_0x44f2,0x142));const a306_0x3c32=function(_0x4e4472,_0x44f247){_0x4e4472=_0x4e4472-0x0;let _0x3c32ac=a306_0x44f2[_0x4e4472];return _0x3c32ac;};const _0xd297f=a306_0x3c32;'use strict';const Sequelize=require(_0xd297f('0x0'));module[_0xd297f('0x1')]={'name':{'type':Sequelize[_0xd297f('0x4')]},'description':{'type':Sequelize[_0xd297f('0x4')]},'username':{'type':Sequelize[_0xd297f('0x4')],'unique':_0xd297f('0x3')},'password':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0xd297f('0x4')],'unique':_0xd297f('0x2')},'serverUrl':{'type':Sequelize[_0xd297f('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index e9f2d3a..a91b478 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a307_0x58cc=['sort','fieldName','catch','direction','params','parent_id','map','statusCode','key','error','findOne','destroy','index','getFields','stack','duration_minutes','username','endsWith','includes','getFields,\x20%s,\x20%s,\x20%s','PLAIN','lastIndexOf','keys','nolimit','like','format','get_module_fields','SugarcrmField','stringify','label','create','value','parent_type','rawAttributes','includeAll','filters','../../config/logger','password','query','then','send','Content-Range','date_start','../../components/integrations/configuration','getConfigurations','Descriptions','login','end','getDescriptions','Calls','where','module_fields','limit','test','util','addConfiguration','SugarcrmConfiguration','remoteUri','api','include','parent_name','name','options','assigned_user_id','Wrong\x20credentials','status','remove','POST','fields','substring','count','/service/v4_1/rest.php','Subjects','%s%s','model','values','json','pick','getSubjects','channel','created_by','order','body','intersection','../../components/parsers/qs','type','duration_hours','offset','VIRTUAL','SugarcrmAccount','filter','request-promise-native','attributes','update','merge','length','JSON'];(function(_0x58378b,_0x58ccbb){const _0x51b8ec=function(_0x39e7f2){while(--_0x39e7f2){_0x58378b['push'](_0x58378b['shift']());}};_0x51b8ec(++_0x58ccbb);}(a307_0x58cc,0x1b7));const a307_0x51b8=function(_0x58378b,_0x58ccbb){_0x58378b=_0x58378b-0x0;let _0x51b8ec=a307_0x58cc[_0x58378b];return _0x51b8ec;};const _0x1971ac=a307_0x51b8;'use strict';const rp=require(_0x1971ac('0x28')),util=require(_0x1971ac('0x3')),_=require('lodash'),qs=require(_0x1971ac('0x21')),logger=require(_0x1971ac('0x52'))(_0x1971ac('0x7')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),integrations=require(_0x1971ac('0x59'));function respondWithResult(_0x39e7f2,_0x3171c2){return _0x3171c2=_0x3171c2||0xc8,function(_0x565f19){const _0x5bda56=a307_0x51b8;if(_0x565f19)return _0x39e7f2[_0x5bda56('0xe')](_0x3171c2)[_0x5bda56('0x19')](_0x565f19);};}function respondWithFilteredResult(_0x2d0fc3,_0xb5bef6){return function(_0x1ed25a){const _0x56d169=a307_0x51b8;if(_0x1ed25a){const _0x313d29=_0x1ed25a[_0x56d169('0x13')],_0x6c2991=_0xb5bef6[_0x56d169('0x24')];let _0xf14c8=_0xb5bef6['offset']+_0xb5bef6[_0x56d169('0x1')],_0x3eb33a;return _0xf14c8>=_0x313d29?(_0xf14c8=_0x313d29,_0x3eb33a=0xc8):_0x3eb33a=0xce,_0x2d0fc3['status'](_0x3eb33a),_0x2d0fc3['set'](_0x56d169('0x57'),_0x6c2991+'-'+_0xf14c8+'/'+_0x313d29)[_0x56d169('0x19')](_0x1ed25a);}return null;};}function saveUpdates(_0x1c68c8){return function(_0x44eb10){const _0x47579a=a307_0x51b8;if(_0x44eb10)return _0x44eb10[_0x47579a('0x2a')](_0x1c68c8)['then'](function(_0x1c2126){return _0x1c2126;});return null;};}function removeEntity(_0x379ab9){return function(_0xcb64ec){const _0x331741=a307_0x51b8;if(_0xcb64ec)return _0xcb64ec[_0x331741('0x39')]()['then'](function(){const _0x1f8752=_0x331741;_0x379ab9[_0x1f8752('0xe')](0xcc)[_0x1f8752('0x5d')]();});};}function handleEntityNotFound(_0x1021ed){return function(_0x143bba){return!_0x143bba&&_0x1021ed['sendStatus'](0x194),_0x143bba;};}function handleError(_0x4b4867,_0x2cb0cb){return _0x2cb0cb=_0x2cb0cb||0x1f4,function(_0x4ad920){const _0xbeedda=a307_0x51b8;logger[_0xbeedda('0x37')](_0x4ad920[_0xbeedda('0x3c')]),_0x4ad920['name']&&delete _0x4ad920[_0xbeedda('0xa')],_0x4b4867[_0xbeedda('0xe')](_0x2cb0cb)['send'](_0x4ad920);};}exports[_0x1971ac('0x3a')]=function(_0x2c844b,_0x2a1a66){const _0x7cbda4=_0x1971ac;let _0xc8c8d6={};const _0x27c5db={},_0x104dc0={'count':0x0,'rows':[]},_0x3ae4d6=_[_0x7cbda4('0x34')](db['SugarcrmAccount'][_0x7cbda4('0x4f')],function(_0x1fbfe0){const _0x59f852=_0x7cbda4;return{'name':_0x1fbfe0[_0x59f852('0x2f')],'type':_0x1fbfe0['type'][_0x59f852('0x36')]};});_0x27c5db['model']=_[_0x7cbda4('0x34')](_0x3ae4d6,'name'),_0x27c5db[_0x7cbda4('0x54')]=_[_0x7cbda4('0x44')](_0x2c844b['query']),_0x27c5db['filters']=_[_0x7cbda4('0x20')](_0x27c5db[_0x7cbda4('0x17')],_0x27c5db[_0x7cbda4('0x54')]),_0xc8c8d6['attributes']=_[_0x7cbda4('0x20')](_0x27c5db['model'],qs[_0x7cbda4('0x11')](_0x2c844b['query'][_0x7cbda4('0x11')])),_0xc8c8d6[_0x7cbda4('0x29')]=_0xc8c8d6['attributes'][_0x7cbda4('0x2c')]?_0xc8c8d6[_0x7cbda4('0x29')]:_0x27c5db[_0x7cbda4('0x17')];typeof _0x2c844b['query'][_0x7cbda4('0x45')]==='undefined'&&(_0xc8c8d6[_0x7cbda4('0x1')]=qs[_0x7cbda4('0x1')](_0x2c844b[_0x7cbda4('0x54')][_0x7cbda4('0x1')]),_0xc8c8d6[_0x7cbda4('0x24')]=qs[_0x7cbda4('0x24')](_0x2c844b[_0x7cbda4('0x54')][_0x7cbda4('0x24')]));_0xc8c8d6[_0x7cbda4('0x1e')]=qs['sort'](_0x2c844b[_0x7cbda4('0x54')]['sort']),_0xc8c8d6['where']=qs[_0x7cbda4('0x51')](_[_0x7cbda4('0x1a')](_0x2c844b[_0x7cbda4('0x54')],_0x27c5db[_0x7cbda4('0x51')]),_0x3ae4d6);_0x2c844b[_0x7cbda4('0x54')][_0x7cbda4('0x27')]&&(_0xc8c8d6[_0x7cbda4('0x60')]=_[_0x7cbda4('0x2b')](_0xc8c8d6[_0x7cbda4('0x60')],{[Op['or']]:_['map'](_0x3ae4d6,function(_0x14d6d0){const _0x411b4e=_0x7cbda4;if(_0x14d6d0[_0x411b4e('0x22')]!==_0x411b4e('0x25')){const _0xa6cb22={};return _0xa6cb22[_0x14d6d0[_0x411b4e('0xa')]]={[Op[_0x411b4e('0x46')]]:'%'+_0x2c844b['query'][_0x411b4e('0x27')]+'%'},_0xa6cb22;}})}));_0xc8c8d6=_[_0x7cbda4('0x2b')]({},_0xc8c8d6,_0x2c844b['options']);const _0x49d733={'where':_0xc8c8d6['where']};return db[_0x7cbda4('0x26')][_0x7cbda4('0x13')](_0x49d733)[_0x7cbda4('0x55')](function(_0x4fc384){const _0x1b7121=_0x7cbda4;return _0x104dc0['count']=_0x4fc384,_0x2c844b[_0x1b7121('0x54')][_0x1b7121('0x50')]&&(_0xc8c8d6[_0x1b7121('0x8')]=[{'all':!![]}]),db['SugarcrmAccount']['findAll'](_0xc8c8d6);})[_0x7cbda4('0x55')](function(_0x25d922){return _0x104dc0['rows']=_0x25d922,_0x104dc0;})[_0x7cbda4('0x55')](respondWithFilteredResult(_0x2a1a66,_0xc8c8d6))[_0x7cbda4('0x30')](handleError(_0x2a1a66,null));},exports['show']=function(_0x348837,_0x273fa8){const _0x45b77a=_0x1971ac;let _0x2647ae={'raw':![],'where':{'id':_0x348837[_0x45b77a('0x32')]['id']}};const _0x1e0099={};return _0x1e0099[_0x45b77a('0x17')]=_['keys'](db[_0x45b77a('0x26')][_0x45b77a('0x4f')]),_0x1e0099[_0x45b77a('0x54')]=_[_0x45b77a('0x44')](_0x348837[_0x45b77a('0x54')]),_0x1e0099[_0x45b77a('0x51')]=_['intersection'](_0x1e0099[_0x45b77a('0x17')],_0x1e0099['query']),_0x2647ae[_0x45b77a('0x29')]=_[_0x45b77a('0x20')](_0x1e0099[_0x45b77a('0x17')],qs[_0x45b77a('0x11')](_0x348837[_0x45b77a('0x54')][_0x45b77a('0x11')])),_0x2647ae[_0x45b77a('0x29')]=_0x2647ae[_0x45b77a('0x29')][_0x45b77a('0x2c')]?_0x2647ae['attributes']:_0x1e0099['model'],_0x348837['query']['includeAll']&&(_0x2647ae[_0x45b77a('0x8')]=[{'all':!![]}]),_0x2647ae=_[_0x45b77a('0x2b')]({},_0x2647ae,_0x348837['options']),db['SugarcrmAccount'][_0x45b77a('0x38')](_0x2647ae)[_0x45b77a('0x55')](handleEntityNotFound(_0x273fa8,null))[_0x45b77a('0x55')](respondWithResult(_0x273fa8,null))[_0x45b77a('0x30')](handleError(_0x273fa8,null));},exports[_0x1971ac('0x4c')]=function(_0x4603ac,_0x1d0652){const _0xd4dd82=_0x1971ac;return db[_0xd4dd82('0x26')][_0xd4dd82('0x4c')](_0x4603ac[_0xd4dd82('0x1f')],{})[_0xd4dd82('0x55')](respondWithResult(_0x1d0652,0xc9))[_0xd4dd82('0x30')](handleError(_0x1d0652,null));},exports[_0x1971ac('0x2a')]=function(_0x2cf6dd,_0x76a5a3){const _0xc4abff=_0x1971ac;return _0x2cf6dd['body']['id']&&delete _0x2cf6dd['body']['id'],db['SugarcrmAccount'][_0xc4abff('0x38')]({'where':{'id':_0x2cf6dd[_0xc4abff('0x32')]['id']}})['then'](handleEntityNotFound(_0x76a5a3,null))[_0xc4abff('0x55')](saveUpdates(_0x2cf6dd[_0xc4abff('0x1f')],null))['then'](respondWithResult(_0x76a5a3,null))['catch'](handleError(_0x76a5a3,null));},exports[_0x1971ac('0x39')]=function(_0x2053eb,_0x3938ec){const _0x6cb62f=_0x1971ac;return db[_0x6cb62f('0x26')][_0x6cb62f('0x38')]({'where':{'id':_0x2053eb[_0x6cb62f('0x32')]['id']}})[_0x6cb62f('0x55')](handleEntityNotFound(_0x3938ec,null))[_0x6cb62f('0x55')](removeEntity(_0x3938ec,null))['catch'](handleError(_0x3938ec,null));},exports[_0x1971ac('0x5a')]=function(_0x4d6fd5,_0x4a4fcf){const _0x4fa837=_0x1971ac;let _0xc6e4d4={};const _0x438edb={};let _0x4bca26,_0x992a7d;return db['SugarcrmAccount'][_0x4fa837('0x38')]({'where':{'id':_0x4d6fd5[_0x4fa837('0x32')]['id']}})[_0x4fa837('0x55')](handleEntityNotFound(_0x4a4fcf,null))[_0x4fa837('0x55')](function(_0x4dc62c){const _0x202d7f=_0x4fa837;if(_0x4dc62c)return _0x4bca26=_0x4dc62c,_0x438edb[_0x202d7f('0x17')]=_[_0x202d7f('0x44')](db[_0x202d7f('0x5')][_0x202d7f('0x4f')]),_0x438edb[_0x202d7f('0x54')]=_[_0x202d7f('0x44')](_0x4d6fd5[_0x202d7f('0x54')]),_0x438edb[_0x202d7f('0x51')]=_['intersection'](_0x438edb[_0x202d7f('0x17')],_0x438edb[_0x202d7f('0x54')]),_0xc6e4d4[_0x202d7f('0x29')]=_[_0x202d7f('0x20')](_0x438edb[_0x202d7f('0x17')],qs[_0x202d7f('0x11')](_0x4d6fd5[_0x202d7f('0x54')]['fields'])),_0xc6e4d4[_0x202d7f('0x29')]=_0xc6e4d4[_0x202d7f('0x29')][_0x202d7f('0x2c')]?_0xc6e4d4['attributes']:_0x438edb['model'],_0xc6e4d4[_0x202d7f('0x1e')]=qs[_0x202d7f('0x2e')](_0x4d6fd5[_0x202d7f('0x54')][_0x202d7f('0x2e')]),_0xc6e4d4[_0x202d7f('0x60')]=qs[_0x202d7f('0x51')](_[_0x202d7f('0x1a')](_0x4d6fd5[_0x202d7f('0x54')],_0x438edb[_0x202d7f('0x51')])),_0x4d6fd5[_0x202d7f('0x54')][_0x202d7f('0x27')]&&(_0xc6e4d4[_0x202d7f('0x60')]=_[_0x202d7f('0x2b')](_0xc6e4d4['where'],{[Op['or']]:_[_0x202d7f('0x34')](_0xc6e4d4[_0x202d7f('0x29')],function(_0x14ce13){const _0x5b249d=_0x202d7f,_0x2ea6e7={};return _0x2ea6e7[_0x14ce13]={[Op[_0x5b249d('0x46')]]:'%'+_0x4d6fd5[_0x5b249d('0x54')][_0x5b249d('0x27')]+'%'},_0x2ea6e7;})})),_0xc6e4d4=_[_0x202d7f('0x2b')]({},_0xc6e4d4,_0x4d6fd5['options']),_0x4bca26[_0x202d7f('0x5a')](_0xc6e4d4);})[_0x4fa837('0x55')](function(_0x5a0cfb){const _0x39568c=_0x4fa837;if(_0x5a0cfb)return _0x992a7d=_0x5a0cfb[_0x39568c('0x2c')],typeof _0x4d6fd5[_0x39568c('0x54')]['nolimit']==='undefined'&&(_0xc6e4d4['limit']=qs[_0x39568c('0x1')](_0x4d6fd5[_0x39568c('0x54')][_0x39568c('0x1')]),_0xc6e4d4[_0x39568c('0x24')]=qs[_0x39568c('0x24')](_0x4d6fd5[_0x39568c('0x54')][_0x39568c('0x24')])),_0x4bca26[_0x39568c('0x5a')](_0xc6e4d4);})['then'](function(_0x59cfd4){if(_0x59cfd4)return _0x59cfd4?{'count':_0x992a7d,'rows':_0x59cfd4}:null;})[_0x4fa837('0x55')](respondWithResult(_0x4a4fcf,null))[_0x4fa837('0x30')](handleError(_0x4a4fcf,null));},exports[_0x1971ac('0x4')]=function(_0x1ff149,_0x4e03a9){const _0x3a29ad=_0x1971ac;return _0x1ff149[_0x3a29ad('0x1f')]['id']&&delete _0x1ff149[_0x3a29ad('0x1f')]['id'],db[_0x3a29ad('0x26')][_0x3a29ad('0x38')]({'where':{'id':_0x1ff149[_0x3a29ad('0x32')]['id']}})[_0x3a29ad('0x55')](handleEntityNotFound(_0x4e03a9,null))[_0x3a29ad('0x55')](function(_0x5455f5){const _0x4f477a=_0x3a29ad;if(_0x5455f5)return _0x1ff149[_0x4f477a('0x1f')]['AccountId']=_0x5455f5['id'],_0x1ff149[_0x4f477a('0x1f')]['Subjects']=integrations[_0x4f477a('0x1b')](_0x1ff149[_0x4f477a('0x1f')]['channel'],_0x1ff149[_0x4f477a('0x1f')][_0x4f477a('0x22')]),_0x1ff149[_0x4f477a('0x1f')][_0x4f477a('0x5b')]=integrations[_0x4f477a('0x5e')](_0x1ff149['body'][_0x4f477a('0x1c')],_0x1ff149[_0x4f477a('0x1f')]['type']),db[_0x4f477a('0x5')][_0x4f477a('0x4c')](_0x1ff149['body'],{'include':[{'model':db['SugarcrmField'],'as':_0x4f477a('0x15')},{'model':db[_0x4f477a('0x49')],'as':_0x4f477a('0x5b')}]});return null;})['then'](respondWithResult(_0x4e03a9,null))[_0x3a29ad('0x30')](handleError(_0x4e03a9,null));},exports[_0x1971ac('0x3b')]=function(_0x2a5f66,_0x1864a1){const _0x326c83=_0x1971ac;let _0x3f4b70='';const _0x25ddb0=['id',_0x326c83('0xa'),_0x326c83('0xc'),_0x326c83('0x1d'),'description',_0x326c83('0x58'),_0x326c83('0x23'),_0x326c83('0x3d'),_0x326c83('0x33'),_0x326c83('0x4e'),_0x326c83('0x9'),_0x326c83('0x31')];return db['SugarcrmAccount'][_0x326c83('0x38')]({'where':{'id':_0x2a5f66[_0x326c83('0x32')]['id']},'attributes':['id','username','password',_0x326c83('0x6')]})[_0x326c83('0x55')](handleEntityNotFound(_0x1864a1,null))[_0x326c83('0x55')](function(_0x9132f4){const _0x179d2a=_0x326c83;if(_0x9132f4){_0x3f4b70=_0x9132f4[_0x179d2a('0x6')];const _0x3f41c6=_0x3f4b70['slice'](-0x1);return _0x3f41c6==='/'&&(_0x3f4b70=_0x3f4b70[_0x179d2a('0x12')](0x0,_0x3f4b70[_0x179d2a('0x43')](_0x3f41c6))),rp({'method':'POST','uri':util['format'](_0x179d2a('0x16'),_0x3f4b70,_0x179d2a('0x14')),'json':!![],'form':{'method':_0x179d2a('0x5c'),'input_type':_0x179d2a('0x2d'),'response_type':_0x179d2a('0x2d'),'rest_data':JSON['stringify']({'user_auth':{'user_name':_0x9132f4[_0x179d2a('0x3e')],'password':_0x9132f4[_0x179d2a('0x53')],'encryption':_0x179d2a('0x42')},'application':'xCALLY\x20Motion\x20Integration'})}});}})[_0x326c83('0x55')](function(_0x4b6a2c){const _0x5553c4=_0x326c83;if(_0x4b6a2c&&_0x4b6a2c[_0x5553c4('0xa')]!=='Invalid\x20Login'&&_0x4b6a2c[_0x5553c4('0xa')]!=='Password\x20Expired')return rp({'method':_0x5553c4('0x10'),'uri':util[_0x5553c4('0x47')](_0x5553c4('0x16'),_0x3f4b70,_0x5553c4('0x14')),'json':!![],'form':{'method':_0x5553c4('0x48'),'input_type':_0x5553c4('0x2d'),'response_type':_0x5553c4('0x2d'),'rest_data':JSON[_0x5553c4('0x4a')]({'session':_0x4b6a2c['id'],'module_name':_0x5553c4('0x5f')})}})[_0x5553c4('0x55')](function(_0x1bd470){const _0x29ea1a=_0x5553c4;if(_0x1bd470){const _0xda0b91=_[_0x29ea1a('0x18')](_0x1bd470[_0x29ea1a('0x0')]);return _[_0x29ea1a('0xf')](_0xda0b91,function(_0x2cdf37){const _0x3e6864=_0x29ea1a;return _0x25ddb0[_0x3e6864('0x40')](_0x2cdf37[_0x3e6864('0xa')]);}),{'count':_0xda0b91[_0x29ea1a('0x2c')],'rows':_['map'](_0xda0b91,function(_0x214826){const _0x22ed29=_0x29ea1a;return{'id':_0x214826['name'],'name':_0x214826[_0x22ed29('0x4b')],'custom':_[_0x22ed29('0x3f')](_0x214826['name'],'_c')?!![]:![],'options':_0x214826[_0x22ed29('0xb')]?_[_0x22ed29('0x34')](_[_0x22ed29('0x18')](_0x214826[_0x22ed29('0xb')]),function(_0x36d2de){const _0x8adfe5=_0x22ed29;return{'name':_0x36d2de[_0x8adfe5('0x4d')],'value':_0x36d2de['name']};}):[]};})};}})[_0x5553c4('0x55')](respondWithResult(_0x1864a1,null))['catch'](function(_0x3fe08d){const _0x93bd7d=_0x5553c4;let _0x3db3af=_0x2a5f66['query']['test']?0x1f4:_0x3fe08d[_0x93bd7d('0x35')]||0x1f4;logger[_0x93bd7d('0x37')](_0x93bd7d('0x41'),'getFields',_0x3db3af,JSON[_0x93bd7d('0x4a')](_0x3fe08d)),delete _0x3fe08d[_0x93bd7d('0xa')],_0x3db3af===0x191&&(_0x3db3af=0x190),_0x1864a1['status'](_0x3db3af)[_0x93bd7d('0x56')](_0x2a5f66['query'][_0x93bd7d('0x2')]?{'message':_0x93bd7d('0xd'),'statusCode':_0x3fe08d['statusCode']}:_0x3fe08d);});else{const _0x32b233=0x1f4;_0x1864a1[_0x5553c4('0xe')](_0x32b233)[_0x5553c4('0x56')]({'message':_0x5553c4('0xd'),'statusCode':0x190});}});}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js index 0e90087..fe45ad1 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a308_0x47df=['./intSugarcrmAccount.attributes','define','exports','SugarcrmAccount'];(function(_0x1e8b1e,_0x47df55){const _0x189207=function(_0x16b98c){while(--_0x16b98c){_0x1e8b1e['push'](_0x1e8b1e['shift']());}};_0x189207(++_0x47df55);}(a308_0x47df,0x85));const a308_0x1892=function(_0x1e8b1e,_0x47df55){_0x1e8b1e=_0x1e8b1e-0x0;let _0x189207=a308_0x47df[_0x1e8b1e];return _0x189207;};const _0x4e83cb=a308_0x1892;'use strict';const attributes=require(_0x4e83cb('0x3'));module[_0x4e83cb('0x1')]=function(_0x16b98c){const _0x99dc22=_0x4e83cb,_0xd6c780=_0x16b98c[_0x99dc22('0x0')](_0x99dc22('0x2'),attributes,{'tableName':'int_sugarcrm_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0xd6c780;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index f0d5b31..1fdb3b4 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a309_0x26a9=['map','findOne','SugarcrmAccount','../../config/logger','../../mysqldb','ShowSugarcrmAccount','GetSugarcrmAccount','model','findAll','raw','error','info','limit','catch','stringify','then','where','lodash','include','attributes','message','options','debug'];(function(_0x434737,_0x26a9ee){const _0x2be059=function(_0x10e5c2){while(--_0x10e5c2){_0x434737['push'](_0x434737['shift']());}};_0x2be059(++_0x26a9ee);}(a309_0x26a9,0xf0));const a309_0x2be0=function(_0x434737,_0x26a9ee){_0x434737=_0x434737-0x0;let _0x2be059=a309_0x26a9[_0x434737];return _0x2be059;};const _0x4e6c03=a309_0x2be0;'use strict';const _=require(_0x4e6c03('0x7')),db=require(_0x4e6c03('0x11'))['db'],logger=require(_0x4e6c03('0x10'))('rpc');exports['GetSugarcrmAccount']=function(_0x10e5c2){const _0x1183ad=this;return new Promise(function(_0x515245,_0x4bab37){const _0xcefedb=a309_0x2be0;return db['SugarcrmAccount'][_0xcefedb('0x15')]({'raw':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x16')]===undefined?!![]:![]:!![],'where':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x6')]||null:null,'attributes':_0x10e5c2['options']?_0x10e5c2[_0xcefedb('0xb')][_0xcefedb('0x9')]||null:null,'limit':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2['options'][_0xcefedb('0x2')]||null:null,'include':_0x10e5c2[_0xcefedb('0xb')]?_0x10e5c2['options'][_0xcefedb('0x8')]?_['map'](_0x10e5c2['options'][_0xcefedb('0x8')],function(_0x491b66){const _0x3a29d0=_0xcefedb;return{'model':db[_0x491b66['model']],'as':_0x491b66['as'],'attributes':_0x491b66['attributes'],'include':_0x491b66[_0x3a29d0('0x8')]?_['map'](_0x491b66['include'],function(_0x1de243){const _0x35043e=_0x3a29d0;return{'model':db[_0x1de243[_0x35043e('0x14')]],'as':_0x1de243['as'],'attributes':_0x1de243[_0x35043e('0x9')],'include':_0x1de243[_0x35043e('0x8')]?_['map'](_0x1de243[_0x35043e('0x8')],function(_0x39d207){const _0x4a70f4=_0x35043e;return{'model':db[_0x39d207['model']],'as':_0x39d207['as'],'attributes':_0x39d207[_0x4a70f4('0x9')]};}):[]};}):[]};}):[]:[]})[_0xcefedb('0x5')](function(_0x5d67c1){const _0x38b146=_0xcefedb;logger[_0x38b146('0x1')](_0x38b146('0x13'),_0x10e5c2),logger[_0x38b146('0xc')](_0x38b146('0x13'),_0x10e5c2,JSON['stringify'](_0x5d67c1)),_0x515245(_0x5d67c1);})[_0xcefedb('0x3')](function(_0x3e2435){const _0x107088=_0xcefedb;logger[_0x107088('0x0')]('GetSugarcrmAccount',_0x3e2435[_0x107088('0xa')],_0x10e5c2),_0x4bab37(_0x1183ad[_0x107088('0x0')](0x1f4,_0x3e2435['message']));});});},exports[_0x4e6c03('0x12')]=function(_0x3713b8){const _0x290c66=this;return new Promise(function(_0x2a330a,_0x3527f7){const _0x6170d3=a309_0x2be0;return db[_0x6170d3('0xf')][_0x6170d3('0xe')]({'raw':_0x3713b8['options']?_0x3713b8[_0x6170d3('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x3713b8[_0x6170d3('0xb')]?_0x3713b8[_0x6170d3('0xb')]['where']||null:null,'attributes':_0x3713b8[_0x6170d3('0xb')]?_0x3713b8[_0x6170d3('0xb')][_0x6170d3('0x9')]||null:null,'include':_0x3713b8['options']?_0x3713b8['options']['include']?_[_0x6170d3('0xd')](_0x3713b8['options']['include'],function(_0x3e0612){const _0x4deebf=_0x6170d3;return{'model':db[_0x3e0612[_0x4deebf('0x14')]],'as':_0x3e0612['as'],'attributes':_0x3e0612[_0x4deebf('0x9')],'include':_0x3e0612[_0x4deebf('0x8')]?_[_0x4deebf('0xd')](_0x3e0612[_0x4deebf('0x8')],function(_0x2695dd){const _0x1a188f=_0x4deebf;return{'model':db[_0x2695dd[_0x1a188f('0x14')]],'as':_0x2695dd['as'],'attributes':_0x2695dd[_0x1a188f('0x9')],'include':_0x2695dd[_0x1a188f('0x8')]?_[_0x1a188f('0xd')](_0x2695dd[_0x1a188f('0x8')],function(_0x1d28fd){const _0x533fae=_0x1a188f;return{'model':db[_0x1d28fd[_0x533fae('0x14')]],'as':_0x1d28fd['as'],'attributes':_0x1d28fd[_0x533fae('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x490adc){const _0x1d57a2=_0x6170d3;logger['info'](_0x1d57a2('0x12'),_0x3713b8),logger[_0x1d57a2('0xc')]('ShowSugarcrmAccount',_0x3713b8,JSON[_0x1d57a2('0x4')](_0x490adc)),_0x2a330a(_0x490adc);})[_0x6170d3('0x3')](function(_0x402a09){const _0x3eec82=_0x6170d3;logger[_0x3eec82('0x0')](_0x3eec82('0x12'),_0x402a09[_0x3eec82('0xa')],_0x3713b8),_0x3527f7(_0x290c66[_0x3eec82('0x0')](0x1f4,_0x402a09[_0x3eec82('0xa')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index 01cf25d..ac9b8b3 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a310_0xb1f3=['get','post','express','exports','./intSugarcrmConfiguration.controller','../../components/auth/service','isAuthenticated','update','index','/:id/descriptions','Router','put','create','delete','getDescriptions','/:id/subjects','/:id','/:id/fields'];(function(_0x29267c,_0xb1f3e9){const _0x2b05a8=function(_0x1c0825){while(--_0x1c0825){_0x29267c['push'](_0x29267c['shift']());}};_0x2b05a8(++_0xb1f3e9);}(a310_0xb1f3,0x102));const a310_0x2b05=function(_0x29267c,_0xb1f3e9){_0x29267c=_0x29267c-0x0;let _0x2b05a8=a310_0xb1f3[_0x29267c];return _0x2b05a8;};const _0x311738=a310_0x2b05;'use strict';const express=require(_0x311738('0xe')),router=express[_0x311738('0x4')](),auth=require(_0x311738('0x11')),controller=require(_0x311738('0x10'));router['get']('/',auth[_0x311738('0x0')](),controller[_0x311738('0x2')]),router['get'](_0x311738('0xa'),auth['isAuthenticated'](),controller['show']),router[_0x311738('0xc')](_0x311738('0xb'),auth[_0x311738('0x0')](),controller['getFields']),router[_0x311738('0xc')](_0x311738('0x9'),auth[_0x311738('0x0')](),controller['getSubjects']),router[_0x311738('0xc')](_0x311738('0x3'),auth[_0x311738('0x0')](),controller[_0x311738('0x8')]),router[_0x311738('0xd')]('/',auth[_0x311738('0x0')](),controller[_0x311738('0x6')]),router[_0x311738('0x5')]('/:id',auth[_0x311738('0x0')](),controller[_0x311738('0x1')]),router[_0x311738('0x7')](_0x311738('0xa'),auth[_0x311738('0x0')](),controller['destroy']),module[_0x311738('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index d5bf212..78e28f9 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a311_0x1c4a=['STRING','exports'];(function(_0x5c2719,_0x1c4a22){const _0xbc0491=function(_0x4b62b9){while(--_0x4b62b9){_0x5c2719['push'](_0x5c2719['shift']());}};_0xbc0491(++_0x1c4a22);}(a311_0x1c4a,0x1e7));const a311_0xbc04=function(_0x5c2719,_0x1c4a22){_0x5c2719=_0x5c2719-0x0;let _0xbc0491=a311_0x1c4a[_0x5c2719];return _0xbc0491;};const _0x2a9ec7=a311_0xbc04;'use strict';const Sequelize=require('sequelize');module[_0x2a9ec7('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x2a9ec7('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js index 9a4f4b5..15b6554 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a312_0x2fb0=['error','body','catch','lodash','options','set','sendStatus','getFields','pick','order','like','show','map','rows','update','create','Content-Range','sequelize','../../mysqldb','query','merge','fieldName','api','name','../../config/logger','offset','then','getDescriptions','rawAttributes','stack','intersection','filters','SugarcrmField','filter','../../components/parsers/qs','SugarcrmConfiguration','sort','includeAll','findOne','json','params','key','count','limit','undefined','type','where','findAll','destroy','nolimit','status','index','end','fields','include','attributes','keys','model','length'];(function(_0x22ad90,_0x2fb0bc){const _0x5068b0=function(_0x18c7cd){while(--_0x18c7cd){_0x22ad90['push'](_0x22ad90['shift']());}};_0x5068b0(++_0x2fb0bc);}(a312_0x2fb0,0xc5));const a312_0x5068=function(_0x22ad90,_0x2fb0bc){_0x22ad90=_0x22ad90-0x0;let _0x5068b0=a312_0x2fb0[_0x22ad90];return _0x5068b0;};const _0x4872a7=a312_0x5068;'use strict';const _=require(_0x4872a7('0x2a')),qs=require(_0x4872a7('0xe')),logger=require(_0x4872a7('0x4'))(_0x4872a7('0x2')),db=require(_0x4872a7('0x39'))['db'],{Op}=require(_0x4872a7('0x38'));function respondWithResult(_0x18c7cd,_0x131d72){return _0x131d72=_0x131d72||0xc8,function(_0x4a6f26){const _0x3c9909=a312_0x5068;if(_0x4a6f26)return _0x18c7cd[_0x3c9909('0x1e')](_0x131d72)[_0x3c9909('0x13')](_0x4a6f26);};}function respondWithFilteredResult(_0x347b55,_0x20d8dc){return function(_0x1d2b9a){const _0x51b4c0=a312_0x5068;if(_0x1d2b9a){const _0x21f204=_0x1d2b9a['count'],_0x407031=_0x20d8dc[_0x51b4c0('0x5')];let _0x47eb5f=_0x20d8dc['offset']+_0x20d8dc[_0x51b4c0('0x17')],_0x1acb6d;return _0x47eb5f>=_0x21f204?(_0x47eb5f=_0x21f204,_0x1acb6d=0xc8):_0x1acb6d=0xce,_0x347b55[_0x51b4c0('0x1e')](_0x1acb6d),_0x347b55[_0x51b4c0('0x2c')](_0x51b4c0('0x37'),_0x407031+'-'+_0x47eb5f+'/'+_0x21f204)['json'](_0x1d2b9a);}return null;};}function saveUpdates(_0x599b28){return function(_0x1cf586){const _0x363941=a312_0x5068;if(_0x1cf586)return _0x1cf586[_0x363941('0x35')](_0x599b28)['then'](function(_0x638477){return _0x638477;});return null;};}function removeEntity(_0x54c351){return function(_0x2e36e5){const _0x16e72f=a312_0x5068;if(_0x2e36e5)return _0x2e36e5['destroy']()[_0x16e72f('0x6')](function(){const _0x28f4b8=_0x16e72f;_0x54c351[_0x28f4b8('0x1e')](0xcc)[_0x28f4b8('0x20')]();});};}function handleEntityNotFound(_0x81177b){return function(_0x52ea8e){const _0xc093ef=a312_0x5068;return!_0x52ea8e&&_0x81177b[_0xc093ef('0x2d')](0x194),_0x52ea8e;};}function handleError(_0x119a11,_0x3ce278){return _0x3ce278=_0x3ce278||0x1f4,function(_0x213077){const _0x1c4583=a312_0x5068;logger[_0x1c4583('0x27')](_0x213077[_0x1c4583('0x9')]),_0x213077[_0x1c4583('0x3')]&&delete _0x213077['name'],_0x119a11['status'](_0x3ce278)['send'](_0x213077);};}exports[_0x4872a7('0x1f')]=function(_0x56d377,_0x8a5856){const _0x4f875a=_0x4872a7;let _0x45f0c4={};const _0x40fab2={},_0x5eed21={'count':0x0,'rows':[]},_0x136bab=_[_0x4f875a('0x33')](db['SugarcrmConfiguration']['rawAttributes'],function(_0x293e3f){const _0x328bc2=_0x4f875a;return{'name':_0x293e3f[_0x328bc2('0x1')],'type':_0x293e3f[_0x328bc2('0x19')][_0x328bc2('0x15')]};});_0x40fab2[_0x4f875a('0x25')]=_[_0x4f875a('0x33')](_0x136bab,_0x4f875a('0x3')),_0x40fab2[_0x4f875a('0x3a')]=_[_0x4f875a('0x24')](_0x56d377[_0x4f875a('0x3a')]),_0x40fab2[_0x4f875a('0xb')]=_[_0x4f875a('0xa')](_0x40fab2[_0x4f875a('0x25')],_0x40fab2[_0x4f875a('0x3a')]),_0x45f0c4[_0x4f875a('0x23')]=_[_0x4f875a('0xa')](_0x40fab2[_0x4f875a('0x25')],qs['fields'](_0x56d377[_0x4f875a('0x3a')]['fields'])),_0x45f0c4['attributes']=_0x45f0c4[_0x4f875a('0x23')]['length']?_0x45f0c4[_0x4f875a('0x23')]:_0x40fab2['model'];typeof _0x56d377[_0x4f875a('0x3a')][_0x4f875a('0x1d')]===_0x4f875a('0x18')&&(_0x45f0c4[_0x4f875a('0x17')]=qs[_0x4f875a('0x17')](_0x56d377[_0x4f875a('0x3a')][_0x4f875a('0x17')]),_0x45f0c4[_0x4f875a('0x5')]=qs[_0x4f875a('0x5')](_0x56d377['query'][_0x4f875a('0x5')]));_0x45f0c4['order']=qs[_0x4f875a('0x10')](_0x56d377[_0x4f875a('0x3a')][_0x4f875a('0x10')]),_0x45f0c4[_0x4f875a('0x1a')]=qs[_0x4f875a('0xb')](_[_0x4f875a('0x2f')](_0x56d377[_0x4f875a('0x3a')],_0x40fab2[_0x4f875a('0xb')]),_0x136bab);_0x56d377[_0x4f875a('0x3a')][_0x4f875a('0xd')]&&(_0x45f0c4[_0x4f875a('0x1a')]=_[_0x4f875a('0x0')](_0x45f0c4[_0x4f875a('0x1a')],{[Op['or']]:_[_0x4f875a('0x33')](_0x136bab,function(_0x369ae1){const _0x1ef86a=_0x4f875a;if(_0x369ae1[_0x1ef86a('0x19')]!=='VIRTUAL'){const _0x1fb4e5={};return _0x1fb4e5[_0x369ae1['name']]={[Op['like']]:'%'+_0x56d377[_0x1ef86a('0x3a')][_0x1ef86a('0xd')]+'%'},_0x1fb4e5;}})}));_0x45f0c4=_[_0x4f875a('0x0')]({},_0x45f0c4,_0x56d377[_0x4f875a('0x2b')]);const _0x298318={'where':_0x45f0c4[_0x4f875a('0x1a')]};return db['SugarcrmConfiguration'][_0x4f875a('0x16')](_0x298318)[_0x4f875a('0x6')](function(_0x14d91e){const _0x105b15=_0x4f875a;return _0x5eed21['count']=_0x14d91e,_0x56d377[_0x105b15('0x3a')]['includeAll']&&(_0x45f0c4[_0x105b15('0x22')]=[{'all':!![]}]),db['SugarcrmConfiguration'][_0x105b15('0x1b')](_0x45f0c4);})['then'](function(_0x34e838){const _0x3124e6=_0x4f875a;return _0x5eed21[_0x3124e6('0x34')]=_0x34e838,_0x5eed21;})[_0x4f875a('0x6')](respondWithFilteredResult(_0x8a5856,_0x45f0c4))[_0x4f875a('0x29')](handleError(_0x8a5856,null));},exports[_0x4872a7('0x32')]=function(_0x182155,_0x33ddf6){const _0x29ef70=_0x4872a7;let _0x4f5e0a={'raw':![],'where':{'id':_0x182155[_0x29ef70('0x14')]['id']}};const _0x5f0114={};return _0x5f0114[_0x29ef70('0x25')]=_['keys'](db[_0x29ef70('0xf')]['rawAttributes']),_0x5f0114['query']=_[_0x29ef70('0x24')](_0x182155[_0x29ef70('0x3a')]),_0x5f0114[_0x29ef70('0xb')]=_['intersection'](_0x5f0114[_0x29ef70('0x25')],_0x5f0114['query']),_0x4f5e0a[_0x29ef70('0x23')]=_['intersection'](_0x5f0114['model'],qs[_0x29ef70('0x21')](_0x182155[_0x29ef70('0x3a')][_0x29ef70('0x21')])),_0x4f5e0a['attributes']=_0x4f5e0a['attributes'][_0x29ef70('0x26')]?_0x4f5e0a['attributes']:_0x5f0114['model'],_0x182155[_0x29ef70('0x3a')][_0x29ef70('0x11')]&&(_0x4f5e0a[_0x29ef70('0x22')]=[{'all':!![]}]),_0x4f5e0a=_[_0x29ef70('0x0')]({},_0x4f5e0a,_0x182155[_0x29ef70('0x2b')]),db[_0x29ef70('0xf')][_0x29ef70('0x12')](_0x4f5e0a)['then'](handleEntityNotFound(_0x33ddf6,null))[_0x29ef70('0x6')](respondWithResult(_0x33ddf6,null))[_0x29ef70('0x29')](handleError(_0x33ddf6,null));},exports[_0x4872a7('0x36')]=function(_0x30dea1,_0x3eda94){const _0x5553b6=_0x4872a7;return db[_0x5553b6('0xf')][_0x5553b6('0x36')](_0x30dea1['body'],{})[_0x5553b6('0x6')](respondWithResult(_0x3eda94,0xc9))[_0x5553b6('0x29')](handleError(_0x3eda94,null));},exports[_0x4872a7('0x35')]=function(_0x4ba8a0,_0xd1ccd6){const _0x3ad927=_0x4872a7;return _0x4ba8a0[_0x3ad927('0x28')]['id']&&delete _0x4ba8a0[_0x3ad927('0x28')]['id'],db[_0x3ad927('0xf')][_0x3ad927('0x12')]({'where':{'id':_0x4ba8a0[_0x3ad927('0x14')]['id']}})[_0x3ad927('0x6')](handleEntityNotFound(_0xd1ccd6,null))[_0x3ad927('0x6')](saveUpdates(_0x4ba8a0[_0x3ad927('0x28')],null))[_0x3ad927('0x6')](respondWithResult(_0xd1ccd6,null))['catch'](handleError(_0xd1ccd6,null));},exports[_0x4872a7('0x1c')]=function(_0x3d58ef,_0x234de6){const _0x42f17f=_0x4872a7;return db[_0x42f17f('0xf')][_0x42f17f('0x12')]({'where':{'id':_0x3d58ef[_0x42f17f('0x14')]['id']}})['then'](handleEntityNotFound(_0x234de6,null))[_0x42f17f('0x6')](removeEntity(_0x234de6,null))[_0x42f17f('0x29')](handleError(_0x234de6,null));},exports[_0x4872a7('0x2e')]=function(_0x355259,_0x50b206){const _0x1a8d65=_0x4872a7;let _0x258017={};const _0x178be3={};let _0xd40725,_0x19956d;return db[_0x1a8d65('0xf')]['findOne']({'where':{'id':_0x355259[_0x1a8d65('0x14')]['id']}})['then'](handleEntityNotFound(_0x50b206,null))[_0x1a8d65('0x6')](function(_0x3cf7ed){const _0x21e3ab=_0x1a8d65;if(_0x3cf7ed)return _0xd40725=_0x3cf7ed,_0x178be3[_0x21e3ab('0x25')]=_['keys'](db[_0x21e3ab('0xc')][_0x21e3ab('0x8')]),_0x178be3[_0x21e3ab('0x3a')]=_[_0x21e3ab('0x24')](_0x355259['query']),_0x178be3[_0x21e3ab('0xb')]=_[_0x21e3ab('0xa')](_0x178be3[_0x21e3ab('0x25')],_0x178be3[_0x21e3ab('0x3a')]),_0x258017[_0x21e3ab('0x23')]=_['intersection'](_0x178be3[_0x21e3ab('0x25')],qs['fields'](_0x355259[_0x21e3ab('0x3a')]['fields'])),_0x258017[_0x21e3ab('0x23')]=_0x258017['attributes'][_0x21e3ab('0x26')]?_0x258017[_0x21e3ab('0x23')]:_0x178be3[_0x21e3ab('0x25')],_0x258017[_0x21e3ab('0x30')]=qs[_0x21e3ab('0x10')](_0x355259[_0x21e3ab('0x3a')][_0x21e3ab('0x10')]),_0x258017[_0x21e3ab('0x1a')]=qs[_0x21e3ab('0xb')](_[_0x21e3ab('0x2f')](_0x355259[_0x21e3ab('0x3a')],_0x178be3[_0x21e3ab('0xb')])),_0x355259[_0x21e3ab('0x3a')]['filter']&&(_0x258017['where']=_[_0x21e3ab('0x0')](_0x258017[_0x21e3ab('0x1a')],{[Op['or']]:_['map'](_0x258017[_0x21e3ab('0x23')],function(_0x17e466){const _0x1dc54a=_0x21e3ab,_0x3007d2={};return _0x3007d2[_0x17e466]={[Op[_0x1dc54a('0x31')]]:'%'+_0x355259[_0x1dc54a('0x3a')]['filter']+'%'},_0x3007d2;})})),_0x258017=_[_0x21e3ab('0x0')]({},_0x258017,_0x355259[_0x21e3ab('0x2b')]),_0xd40725[_0x21e3ab('0x2e')](_0x258017);})[_0x1a8d65('0x6')](function(_0x45f67b){const _0x354cae=_0x1a8d65;if(_0x45f67b)return _0x19956d=_0x45f67b[_0x354cae('0x26')],typeof _0x355259[_0x354cae('0x3a')][_0x354cae('0x1d')]==='undefined'&&(_0x258017[_0x354cae('0x17')]=qs[_0x354cae('0x17')](_0x355259['query'][_0x354cae('0x17')]),_0x258017[_0x354cae('0x5')]=qs[_0x354cae('0x5')](_0x355259[_0x354cae('0x3a')][_0x354cae('0x5')])),_0xd40725[_0x354cae('0x2e')](_0x258017);})['then'](function(_0x1f219d){if(_0x1f219d)return _0x1f219d?{'count':_0x19956d,'rows':_0x1f219d}:null;})[_0x1a8d65('0x6')](respondWithResult(_0x50b206,null))[_0x1a8d65('0x29')](handleError(_0x50b206,null));},exports['getSubjects']=function(_0x2a5eb3,_0x50e7fb){const _0x461e8e=_0x4872a7;let _0x5f1e2e={};const _0x4328cc={};let _0xed31c2,_0x5a917e;return db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x2a5eb3[_0x461e8e('0x14')]['id']}})[_0x461e8e('0x6')](handleEntityNotFound(_0x50e7fb,null))[_0x461e8e('0x6')](function(_0x572e8f){const _0x5abe1e=_0x461e8e;if(_0x572e8f)return _0xed31c2=_0x572e8f,_0x4328cc[_0x5abe1e('0x25')]=_[_0x5abe1e('0x24')](db[_0x5abe1e('0xc')][_0x5abe1e('0x8')]),_0x4328cc['query']=_[_0x5abe1e('0x24')](_0x2a5eb3[_0x5abe1e('0x3a')]),_0x4328cc[_0x5abe1e('0xb')]=_[_0x5abe1e('0xa')](_0x4328cc[_0x5abe1e('0x25')],_0x4328cc[_0x5abe1e('0x3a')]),_0x5f1e2e[_0x5abe1e('0x23')]=_[_0x5abe1e('0xa')](_0x4328cc[_0x5abe1e('0x25')],qs[_0x5abe1e('0x21')](_0x2a5eb3[_0x5abe1e('0x3a')][_0x5abe1e('0x21')])),_0x5f1e2e[_0x5abe1e('0x23')]=_0x5f1e2e['attributes']['length']?_0x5f1e2e['attributes']:_0x4328cc[_0x5abe1e('0x25')],_0x5f1e2e[_0x5abe1e('0x30')]=qs[_0x5abe1e('0x10')](_0x2a5eb3[_0x5abe1e('0x3a')][_0x5abe1e('0x10')]),_0x5f1e2e['where']=qs[_0x5abe1e('0xb')](_[_0x5abe1e('0x2f')](_0x2a5eb3[_0x5abe1e('0x3a')],_0x4328cc[_0x5abe1e('0xb')])),_0x2a5eb3[_0x5abe1e('0x3a')][_0x5abe1e('0xd')]&&(_0x5f1e2e[_0x5abe1e('0x1a')]=_['merge'](_0x5f1e2e[_0x5abe1e('0x1a')],{[Op['or']]:_['map'](_0x5f1e2e[_0x5abe1e('0x23')],function(_0x39a8f9){const _0xe5cfea=_0x5abe1e,_0x3a5bfc={};return _0x3a5bfc[_0x39a8f9]={[Op['like']]:'%'+_0x2a5eb3[_0xe5cfea('0x3a')][_0xe5cfea('0xd')]+'%'},_0x3a5bfc;})})),_0x5f1e2e=_[_0x5abe1e('0x0')]({},_0x5f1e2e,_0x2a5eb3[_0x5abe1e('0x2b')]),_0xed31c2['getSubjects'](_0x5f1e2e);})[_0x461e8e('0x6')](function(_0x104f59){const _0x572779=_0x461e8e;if(_0x104f59)return _0x5a917e=_0x104f59[_0x572779('0x26')],typeof _0x2a5eb3[_0x572779('0x3a')]['nolimit']===_0x572779('0x18')&&(_0x5f1e2e[_0x572779('0x17')]=qs[_0x572779('0x17')](_0x2a5eb3[_0x572779('0x3a')][_0x572779('0x17')]),_0x5f1e2e[_0x572779('0x5')]=qs['offset'](_0x2a5eb3[_0x572779('0x3a')][_0x572779('0x5')])),_0xed31c2['getSubjects'](_0x5f1e2e);})['then'](function(_0x2b5ee2){if(_0x2b5ee2)return _0x2b5ee2?{'count':_0x5a917e,'rows':_0x2b5ee2}:null;})['then'](respondWithResult(_0x50e7fb,null))[_0x461e8e('0x29')](handleError(_0x50e7fb,null));},exports[_0x4872a7('0x7')]=function(_0x4291a5,_0x3eb24c){const _0x4e6cac=_0x4872a7;let _0x2c79e0={};const _0x577ac6={};let _0x214002,_0xbdb7ae;return db['SugarcrmConfiguration'][_0x4e6cac('0x12')]({'where':{'id':_0x4291a5[_0x4e6cac('0x14')]['id']}})[_0x4e6cac('0x6')](handleEntityNotFound(_0x3eb24c,null))[_0x4e6cac('0x6')](function(_0x4bbf11){const _0x394aad=_0x4e6cac;if(_0x4bbf11)return _0x214002=_0x4bbf11,_0x577ac6[_0x394aad('0x25')]=_[_0x394aad('0x24')](db['SugarcrmField'][_0x394aad('0x8')]),_0x577ac6['query']=_[_0x394aad('0x24')](_0x4291a5[_0x394aad('0x3a')]),_0x577ac6[_0x394aad('0xb')]=_[_0x394aad('0xa')](_0x577ac6[_0x394aad('0x25')],_0x577ac6['query']),_0x2c79e0[_0x394aad('0x23')]=_[_0x394aad('0xa')](_0x577ac6['model'],qs[_0x394aad('0x21')](_0x4291a5[_0x394aad('0x3a')][_0x394aad('0x21')])),_0x2c79e0['attributes']=_0x2c79e0[_0x394aad('0x23')]['length']?_0x2c79e0[_0x394aad('0x23')]:_0x577ac6['model'],_0x2c79e0[_0x394aad('0x30')]=qs[_0x394aad('0x10')](_0x4291a5[_0x394aad('0x3a')][_0x394aad('0x10')]),_0x2c79e0[_0x394aad('0x1a')]=qs[_0x394aad('0xb')](_[_0x394aad('0x2f')](_0x4291a5[_0x394aad('0x3a')],_0x577ac6[_0x394aad('0xb')])),_0x4291a5['query'][_0x394aad('0xd')]&&(_0x2c79e0[_0x394aad('0x1a')]=_[_0x394aad('0x0')](_0x2c79e0[_0x394aad('0x1a')],{[Op['or']]:_[_0x394aad('0x33')](_0x2c79e0[_0x394aad('0x23')],function(_0x102d35){const _0x308dfc=_0x394aad,_0x42a6e3={};return _0x42a6e3[_0x102d35]={[Op['like']]:'%'+_0x4291a5[_0x308dfc('0x3a')][_0x308dfc('0xd')]+'%'},_0x42a6e3;})})),_0x2c79e0=_['merge']({},_0x2c79e0,_0x4291a5['options']),_0x214002[_0x394aad('0x7')](_0x2c79e0);})[_0x4e6cac('0x6')](function(_0x5937bb){const _0x4a438a=_0x4e6cac;if(_0x5937bb)return _0xbdb7ae=_0x5937bb[_0x4a438a('0x26')],typeof _0x4291a5[_0x4a438a('0x3a')][_0x4a438a('0x1d')]===_0x4a438a('0x18')&&(_0x2c79e0['limit']=qs[_0x4a438a('0x17')](_0x4291a5[_0x4a438a('0x3a')]['limit']),_0x2c79e0[_0x4a438a('0x5')]=qs[_0x4a438a('0x5')](_0x4291a5[_0x4a438a('0x3a')][_0x4a438a('0x5')])),_0x214002[_0x4a438a('0x7')](_0x2c79e0);})[_0x4e6cac('0x6')](function(_0x5428cf){if(_0x5428cf)return _0x5428cf?{'count':_0xbdb7ae,'rows':_0x5428cf}:null;})[_0x4e6cac('0x6')](respondWithResult(_0x3eb24c,null))['catch'](handleError(_0x3eb24c,null));}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 887c99f..197ec2c 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a313_0x33e9=['int_sugarcrm_configurations','exports','define','./intSugarcrmConfiguration.attributes'];(function(_0x4e9922,_0x33e992){const _0x36ce74=function(_0xadea93){while(--_0xadea93){_0x4e9922['push'](_0x4e9922['shift']());}};_0x36ce74(++_0x33e992);}(a313_0x33e9,0xbc));const a313_0x36ce=function(_0x4e9922,_0x33e992){_0x4e9922=_0x4e9922-0x0;let _0x36ce74=a313_0x33e9[_0x4e9922];return _0x36ce74;};const _0x1ab2e4=a313_0x36ce;'use strict';const attributes=require(_0x1ab2e4('0x3'));module[_0x1ab2e4('0x1')]=function(_0xadea93){const _0xea4ddf=_0x1ab2e4,_0x27edf6=_0xadea93[_0xea4ddf('0x2')]('SugarcrmConfiguration',attributes,{'tableName':_0xea4ddf('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x27edf6;}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index abe546f..c8f8e0e 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a314_0x3694=['delete','/:id','destroy','Router','create','express','../../components/auth/service','post','get','put','exports','isAuthenticated','update'];(function(_0x29df56,_0x36948c){const _0x32d483=function(_0x3345f4){while(--_0x3345f4){_0x29df56['push'](_0x29df56['shift']());}};_0x32d483(++_0x36948c);}(a314_0x3694,0xcd));const a314_0x32d4=function(_0x29df56,_0x36948c){_0x29df56=_0x29df56-0x0;let _0x32d483=a314_0x3694[_0x29df56];return _0x32d483;};const _0x251c3c=a314_0x32d4;'use strict';const express=require(_0x251c3c('0x8')),router=express[_0x251c3c('0x6')](),auth=require(_0x251c3c('0x9')),controller=require('./intSugarcrmField.controller');router[_0x251c3c('0xb')]('/',auth[_0x251c3c('0x1')](),controller['index']),router[_0x251c3c('0xb')](_0x251c3c('0x4'),auth[_0x251c3c('0x1')](),controller['show']),router[_0x251c3c('0xa')]('/',auth[_0x251c3c('0x1')](),controller[_0x251c3c('0x7')]),router[_0x251c3c('0xc')](_0x251c3c('0x4'),auth[_0x251c3c('0x1')](),controller[_0x251c3c('0x2')]),router[_0x251c3c('0x3')](_0x251c3c('0x4'),auth['isAuthenticated'](),controller[_0x251c3c('0x5')]),module[_0x251c3c('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index 674fceb..3a44b8f 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a315_0x4023=['ENUM','variable','STRING','BOOLEAN','sequelize','exports','customVariable','string'];(function(_0x576146,_0x4023dc){const _0x26428b=function(_0x45c9b0){while(--_0x45c9b0){_0x576146['push'](_0x576146['shift']());}};_0x26428b(++_0x4023dc);}(a315_0x4023,0x134));const a315_0x2642=function(_0x576146,_0x4023dc){_0x576146=_0x576146-0x0;let _0x26428b=a315_0x4023[_0x576146];return _0x26428b;};const _0x3d9db7=a315_0x2642;'use strict';const Sequelize=require(_0x3d9db7('0x0'));module[_0x3d9db7('0x1')]={'type':{'type':Sequelize['ENUM'](_0x3d9db7('0x3'),_0x3d9db7('0x5'),_0x3d9db7('0x2'),'keyValue'),'defaultValue':_0x3d9db7('0x3')},'content':{'type':Sequelize[_0x3d9db7('0x6')]},'key':{'type':Sequelize[_0x3d9db7('0x6')]},'keyType':{'type':Sequelize[_0x3d9db7('0x4')](_0x3d9db7('0x3'),_0x3d9db7('0x5'),'customVariable')},'keyContent':{'type':Sequelize[_0x3d9db7('0x6')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x3d9db7('0x6')]},'customField':{'type':Sequelize[_0x3d9db7('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.controller.js b/server/api/intSugarcrmField/intSugarcrmField.controller.js index a53c3f8..4894d22 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a316_0xe963=['SugarcrmField','attributes','name','key','query','body','status','update','show','undefined','filters','limit','stack','destroy','type','json','merge','api','include','fieldName','end','send','model','../../components/parsers/qs','order','map','params','filter','includeAll','catch','sendStatus','sort','fields','../../mysqldb','then','rawAttributes','lodash','length','../../config/logger','offset','error','keys','options','count','where','create','nolimit','findOne'];(function(_0x2311ae,_0xe9638e){const _0x4dd124=function(_0x2495ad){while(--_0x2495ad){_0x2311ae['push'](_0x2311ae['shift']());}};_0x4dd124(++_0xe9638e);}(a316_0xe963,0x157));const a316_0x4dd1=function(_0x2311ae,_0xe9638e){_0x2311ae=_0x2311ae-0x0;let _0x4dd124=a316_0xe963[_0x2311ae];return _0x4dd124;};const _0x158eb9=a316_0x4dd1;'use strict';const _=require(_0x158eb9('0x1d')),qs=require(_0x158eb9('0x10')),logger=require(_0x158eb9('0x1f'))(_0x158eb9('0xa')),db=require(_0x158eb9('0x1a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2495ad,_0x4a94be){return _0x4a94be=_0x4a94be||0xc8,function(_0x37680a){if(_0x37680a)return _0x2495ad['status'](_0x4a94be)['json'](_0x37680a);};}function respondWithFilteredResult(_0x1544ad,_0x1626e6){return function(_0x42838c){const _0x7973c0=a316_0x4dd1;if(_0x42838c){const _0x3dc22e=_0x42838c[_0x7973c0('0x24')],_0x2450fe=_0x1626e6[_0x7973c0('0x20')];let _0x2fa54b=_0x1626e6[_0x7973c0('0x20')]+_0x1626e6[_0x7973c0('0x4')],_0x25db98;return _0x2fa54b>=_0x3dc22e?(_0x2fa54b=_0x3dc22e,_0x25db98=0xc8):_0x25db98=0xce,_0x1544ad[_0x7973c0('0x2f')](_0x25db98),_0x1544ad['set']('Content-Range',_0x2450fe+'-'+_0x2fa54b+'/'+_0x3dc22e)[_0x7973c0('0x8')](_0x42838c);}return null;};}function saveUpdates(_0x1e5651){return function(_0x5bcce5){const _0x30561d=a316_0x4dd1;if(_0x5bcce5)return _0x5bcce5[_0x30561d('0x0')](_0x1e5651)[_0x30561d('0x1b')](function(_0x343992){return _0x343992;});return null;};}function removeEntity(_0x3b0442){return function(_0x1695c7){const _0x251d53=a316_0x4dd1;if(_0x1695c7)return _0x1695c7[_0x251d53('0x6')]()[_0x251d53('0x1b')](function(){const _0x4a0cba=_0x251d53;_0x3b0442[_0x4a0cba('0x2f')](0xcc)[_0x4a0cba('0xd')]();});};}function handleEntityNotFound(_0xdb33e){return function(_0x5d8a79){const _0x351342=a316_0x4dd1;return!_0x5d8a79&&_0xdb33e[_0x351342('0x17')](0x194),_0x5d8a79;};}function handleError(_0x51b134,_0x31d2eb){return _0x31d2eb=_0x31d2eb||0x1f4,function(_0xde477b){const _0x7af15c=a316_0x4dd1;logger[_0x7af15c('0x21')](_0xde477b[_0x7af15c('0x5')]),_0xde477b[_0x7af15c('0x2b')]&&delete _0xde477b[_0x7af15c('0x2b')],_0x51b134['status'](_0x31d2eb)[_0x7af15c('0xe')](_0xde477b);};}exports['index']=function(_0x24e647,_0x468dcd){const _0x5207f3=_0x158eb9;let _0x3defb2={};const _0x409893={},_0x357be4={'count':0x0,'rows':[]},_0x59d2b0=_['map'](db['SugarcrmField']['rawAttributes'],function(_0x286240){const _0x154d44=a316_0x4dd1;return{'name':_0x286240[_0x154d44('0xc')],'type':_0x286240[_0x154d44('0x7')][_0x154d44('0x2c')]};});_0x409893['model']=_['map'](_0x59d2b0,_0x5207f3('0x2b')),_0x409893[_0x5207f3('0x2d')]=_[_0x5207f3('0x22')](_0x24e647[_0x5207f3('0x2d')]),_0x409893[_0x5207f3('0x3')]=_['intersection'](_0x409893[_0x5207f3('0xf')],_0x409893[_0x5207f3('0x2d')]),_0x3defb2[_0x5207f3('0x2a')]=_['intersection'](_0x409893[_0x5207f3('0xf')],qs['fields'](_0x24e647[_0x5207f3('0x2d')][_0x5207f3('0x19')])),_0x3defb2['attributes']=_0x3defb2[_0x5207f3('0x2a')][_0x5207f3('0x1e')]?_0x3defb2[_0x5207f3('0x2a')]:_0x409893[_0x5207f3('0xf')];typeof _0x24e647[_0x5207f3('0x2d')][_0x5207f3('0x27')]===_0x5207f3('0x2')&&(_0x3defb2[_0x5207f3('0x4')]=qs['limit'](_0x24e647[_0x5207f3('0x2d')][_0x5207f3('0x4')]),_0x3defb2[_0x5207f3('0x20')]=qs[_0x5207f3('0x20')](_0x24e647[_0x5207f3('0x2d')][_0x5207f3('0x20')]));_0x3defb2[_0x5207f3('0x11')]=qs[_0x5207f3('0x18')](_0x24e647['query'][_0x5207f3('0x18')]),_0x3defb2[_0x5207f3('0x25')]=qs['filters'](_['pick'](_0x24e647[_0x5207f3('0x2d')],_0x409893[_0x5207f3('0x3')]),_0x59d2b0);_0x24e647[_0x5207f3('0x2d')][_0x5207f3('0x14')]&&(_0x3defb2[_0x5207f3('0x25')]=_[_0x5207f3('0x9')](_0x3defb2[_0x5207f3('0x25')],{[Op['or']]:_[_0x5207f3('0x12')](_0x59d2b0,function(_0x2e5b40){const _0x1e5544=_0x5207f3;if(_0x2e5b40['type']!=='VIRTUAL'){const _0x1aaa12={};return _0x1aaa12[_0x2e5b40[_0x1e5544('0x2b')]]={[Op['like']]:'%'+_0x24e647[_0x1e5544('0x2d')][_0x1e5544('0x14')]+'%'},_0x1aaa12;}})}));_0x3defb2=_[_0x5207f3('0x9')]({},_0x3defb2,_0x24e647[_0x5207f3('0x23')]);const _0x17619a={'where':_0x3defb2[_0x5207f3('0x25')]};return db[_0x5207f3('0x29')][_0x5207f3('0x24')](_0x17619a)[_0x5207f3('0x1b')](function(_0x1f58fe){const _0x38ca56=_0x5207f3;return _0x357be4[_0x38ca56('0x24')]=_0x1f58fe,_0x24e647[_0x38ca56('0x2d')]['includeAll']&&(_0x3defb2[_0x38ca56('0xb')]=[{'all':!![]}]),db['SugarcrmField']['findAll'](_0x3defb2);})[_0x5207f3('0x1b')](function(_0x4b207d){return _0x357be4['rows']=_0x4b207d,_0x357be4;})['then'](respondWithFilteredResult(_0x468dcd,_0x3defb2))[_0x5207f3('0x16')](handleError(_0x468dcd,null));},exports[_0x158eb9('0x1')]=function(_0x42fb27,_0x4c0185){const _0x2c5e19=_0x158eb9;let _0x5aede9={'raw':!![],'where':{'id':_0x42fb27[_0x2c5e19('0x13')]['id']}};const _0x41f3c6={};return _0x41f3c6[_0x2c5e19('0xf')]=_[_0x2c5e19('0x22')](db['SugarcrmField'][_0x2c5e19('0x1c')]),_0x41f3c6[_0x2c5e19('0x2d')]=_['keys'](_0x42fb27[_0x2c5e19('0x2d')]),_0x41f3c6['filters']=_['intersection'](_0x41f3c6[_0x2c5e19('0xf')],_0x41f3c6[_0x2c5e19('0x2d')]),_0x5aede9[_0x2c5e19('0x2a')]=_['intersection'](_0x41f3c6[_0x2c5e19('0xf')],qs['fields'](_0x42fb27[_0x2c5e19('0x2d')][_0x2c5e19('0x19')])),_0x5aede9[_0x2c5e19('0x2a')]=_0x5aede9['attributes']['length']?_0x5aede9[_0x2c5e19('0x2a')]:_0x41f3c6[_0x2c5e19('0xf')],_0x42fb27[_0x2c5e19('0x2d')][_0x2c5e19('0x15')]&&(_0x5aede9['include']=[{'all':!![]}]),_0x5aede9=_[_0x2c5e19('0x9')]({},_0x5aede9,_0x42fb27[_0x2c5e19('0x23')]),db[_0x2c5e19('0x29')]['findOne'](_0x5aede9)[_0x2c5e19('0x1b')](handleEntityNotFound(_0x4c0185,null))[_0x2c5e19('0x1b')](respondWithResult(_0x4c0185,null))[_0x2c5e19('0x16')](handleError(_0x4c0185,null));},exports[_0x158eb9('0x26')]=function(_0x2f4201,_0x292ad8){const _0x214691=_0x158eb9;return db[_0x214691('0x29')][_0x214691('0x26')](_0x2f4201[_0x214691('0x2e')],{})[_0x214691('0x1b')](respondWithResult(_0x292ad8,0xc9))[_0x214691('0x16')](handleError(_0x292ad8,null));},exports['update']=function(_0x4b3a65,_0x41a5a2){const _0x6bd24b=_0x158eb9;return _0x4b3a65[_0x6bd24b('0x2e')]['id']&&delete _0x4b3a65[_0x6bd24b('0x2e')]['id'],db[_0x6bd24b('0x29')][_0x6bd24b('0x28')]({'where':{'id':_0x4b3a65['params']['id']}})[_0x6bd24b('0x1b')](handleEntityNotFound(_0x41a5a2,null))[_0x6bd24b('0x1b')](saveUpdates(_0x4b3a65[_0x6bd24b('0x2e')],null))['then'](respondWithResult(_0x41a5a2,null))[_0x6bd24b('0x16')](handleError(_0x41a5a2,null));},exports[_0x158eb9('0x6')]=function(_0x514ee3,_0x2f8e83){const _0x437588=_0x158eb9;return db[_0x437588('0x29')]['findOne']({'where':{'id':_0x514ee3[_0x437588('0x13')]['id']}})[_0x437588('0x1b')](handleEntityNotFound(_0x2f8e83,null))[_0x437588('0x1b')](removeEntity(_0x2f8e83,null))[_0x437588('0x16')](handleError(_0x2f8e83,null));}; \ No newline at end of file +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 diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index 077ea46..a3da7a7 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a317_0x2d9b=['define','int_sugarcrm_fields','idField','./intSugarcrmField.attributes','SugarcrmField'];(function(_0x8777b,_0x2d9b31){const _0x65f3d5=function(_0x552978){while(--_0x552978){_0x8777b['push'](_0x8777b['shift']());}};_0x65f3d5(++_0x2d9b31);}(a317_0x2d9b,0xbe));const a317_0x65f3=function(_0x8777b,_0x2d9b31){_0x8777b=_0x8777b-0x0;let _0x65f3d5=a317_0x2d9b[_0x8777b];return _0x65f3d5;};const _0x528b18=a317_0x65f3;'use strict';const attributes=require(_0x528b18('0x3'));module['exports']=function(_0x552978){const _0x561078=_0x528b18,_0x59e2b5=_0x552978[_0x561078('0x0')](_0x561078('0x4'),attributes,{'tableName':_0x561078('0x1'),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x561078('0x2'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x59e2b5;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index 4740cf2..460ad39 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a318_0x3d87=['destroy','addConfiguration','/:id','get','/:id/configurations','index','Router','getConfigurations','./intVtigerAccount.controller','getFields','isAuthenticated','post','/:id/fields','show','express','delete'];(function(_0x5c3040,_0x3d8704){const _0x547cbd=function(_0x3d04ed){while(--_0x3d04ed){_0x5c3040['push'](_0x5c3040['shift']());}};_0x547cbd(++_0x3d8704);}(a318_0x3d87,0x1f0));const a318_0x547c=function(_0x5c3040,_0x3d8704){_0x5c3040=_0x5c3040-0x0;let _0x547cbd=a318_0x3d87[_0x5c3040];return _0x547cbd;};const _0x501c8a=a318_0x547c;'use strict';const express=require(_0x501c8a('0xe')),router=express[_0x501c8a('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x501c8a('0x8'));router['get']('/',auth[_0x501c8a('0xa')](),controller[_0x501c8a('0x5')]),router[_0x501c8a('0x3')](_0x501c8a('0x2'),auth[_0x501c8a('0xa')](),controller[_0x501c8a('0xd')]),router['get'](_0x501c8a('0x4'),auth['isAuthenticated'](),controller[_0x501c8a('0x7')]),router['get'](_0x501c8a('0xc'),auth[_0x501c8a('0xa')](),controller[_0x501c8a('0x9')]),router[_0x501c8a('0xb')]('/',auth[_0x501c8a('0xa')](),controller['create']),router[_0x501c8a('0xb')](_0x501c8a('0x4'),auth[_0x501c8a('0xa')](),controller[_0x501c8a('0x1')]),router['put']('/:id',auth[_0x501c8a('0xa')](),controller['update']),router[_0x501c8a('0xf')](_0x501c8a('0x2'),auth[_0x501c8a('0xa')](),controller[_0x501c8a('0x0')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index a327919..fce702e 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a319_0x395f=['exports','HelpDesk','STRING'];(function(_0x4f5cf0,_0x395f14){const _0x309661=function(_0x4d3151){while(--_0x4d3151){_0x4f5cf0['push'](_0x4f5cf0['shift']());}};_0x309661(++_0x395f14);}(a319_0x395f,0x12d));const a319_0x3096=function(_0x4f5cf0,_0x395f14){_0x4f5cf0=_0x4f5cf0-0x0;let _0x309661=a319_0x395f[_0x4f5cf0];return _0x309661;};const _0x5858c5=a319_0x3096;'use strict';const Sequelize=require('sequelize');module[_0x5858c5('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x5858c5('0x1')]},'username':{'type':Sequelize[_0x5858c5('0x1')],'allowNull':![]},'moduleName':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x5858c5('0x0')},'remoteUri':{'type':Sequelize[_0x5858c5('0x1')],'allowNull':![]},'serverUrl':{'type':Sequelize[_0x5858c5('0x1')]},'accessKey':{'type':Sequelize['STRING'],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index 530d961..c4244ab 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a320_0x2ef6=['includes','statusCode','request-promise-native','update','intersection','where','params','destroy','limit','show','VtigerField','Content-Range','vTiger\x20error:\x20','include','result','login','getSubjects','findAll','options','remoteUri','query','merge','username','getConfigurations','addConfiguration','offset','api','description','label','map','length','remove','Descriptions','owner','slice','cf_','false','filter','VtigerConfiguration','keys','getFields','channel','editable','Wrong\x20credentials','test','then','stack','order','moduleName','AccountId','Subjects','token','lastIndexOf','sendStatus','attributes','error','../../mysqldb','picklistValues','format','count','POST','describe','%s/webservice.php','fields','pick','nolimit','model','body','status','sort','success','type','sequelize','../../components/integrations/configuration','VIRTUAL','../../config/logger','value','undefined','catch','stringify','rawAttributes','set','lodash','includeAll','findOne','filters','substring','accessKey','end','create','name','VtigerAccount','picklist','fieldName','key','../../components/parsers/qs'];(function(_0x580625,_0x2ef604){const _0x31a1ad=function(_0x3db038){while(--_0x3db038){_0x580625['push'](_0x580625['shift']());}};_0x31a1ad(++_0x2ef604);}(a320_0x2ef6,0x199));const a320_0x31a1=function(_0x580625,_0x2ef604){_0x580625=_0x580625-0x0;let _0x31a1ad=a320_0x2ef6[_0x580625];return _0x31a1ad;};const _0x1654aa=a320_0x31a1;'use strict';const rp=require(_0x1654aa('0x49')),util=require('util'),_=require(_0x1654aa('0x39')),qs=require(_0x1654aa('0x46')),logger=require(_0x1654aa('0x32'))(_0x1654aa('0x1')),db=require(_0x1654aa('0x1f'))['db'],{Op}=require(_0x1654aa('0x2f')),integrations=require(_0x1654aa('0x30'));function respondWithResult(_0x3db038,_0x1cf1c3){return _0x1cf1c3=_0x1cf1c3||0xc8,function(_0x120628){const _0x3bd9ab=a320_0x31a1;if(_0x120628)return _0x3db038[_0x3bd9ab('0x2b')](_0x1cf1c3)['json'](_0x120628);};}function respondWithFilteredResult(_0x3e56ff,_0x3f9bb6){return function(_0x29643b){const _0x239de9=a320_0x31a1;if(_0x29643b){const _0x363a00=_0x29643b[_0x239de9('0x22')],_0x559e2f=_0x3f9bb6[_0x239de9('0x0')];let _0x3cf3b1=_0x3f9bb6[_0x239de9('0x0')]+_0x3f9bb6['limit'],_0x4953e1;return _0x3cf3b1>=_0x363a00?(_0x3cf3b1=_0x363a00,_0x4953e1=0xc8):_0x4953e1=0xce,_0x3e56ff[_0x239de9('0x2b')](_0x4953e1),_0x3e56ff[_0x239de9('0x38')](_0x239de9('0x52'),_0x559e2f+'-'+_0x3cf3b1+'/'+_0x363a00)['json'](_0x29643b);}return null;};}function saveUpdates(_0x449a93){return function(_0x61938a){const _0x4f0409=a320_0x31a1;if(_0x61938a)return _0x61938a[_0x4f0409('0x4a')](_0x449a93)[_0x4f0409('0x14')](function(_0x164705){return _0x164705;});return null;};}function removeEntity(_0x50cdd4){return function(_0x4f5d9c){const _0x31ee9c=a320_0x31a1;if(_0x4f5d9c)return _0x4f5d9c['destroy']()[_0x31ee9c('0x14')](function(){const _0x5834e0=_0x31ee9c;_0x50cdd4[_0x5834e0('0x2b')](0xcc)[_0x5834e0('0x3f')]();});};}function handleEntityNotFound(_0x4529fa){return function(_0x5aa01f){const _0x84cd2f=a320_0x31a1;return!_0x5aa01f&&_0x4529fa[_0x84cd2f('0x1c')](0x194),_0x5aa01f;};}function handleError(_0x292182,_0x361b99){return _0x361b99=_0x361b99||0x1f4,function(_0x290b1f){const _0xc50245=a320_0x31a1;logger[_0xc50245('0x1e')](_0x290b1f[_0xc50245('0x15')]),_0x290b1f[_0xc50245('0x41')]&&delete _0x290b1f[_0xc50245('0x41')],_0x292182[_0xc50245('0x2b')](_0x361b99)['send'](_0x290b1f);};}exports['index']=function(_0xd4128c,_0x403c7d){const _0x1b641a=_0x1654aa;let _0x22968f={};const _0x20656e={},_0x5a3a48={'count':0x0,'rows':[]},_0xa61559=_[_0x1b641a('0x4')](db['VtigerAccount']['rawAttributes'],function(_0x23d4eb){const _0x234c12=_0x1b641a;return{'name':_0x23d4eb[_0x234c12('0x44')],'type':_0x23d4eb['type'][_0x234c12('0x45')]};});_0x20656e[_0x1b641a('0x29')]=_[_0x1b641a('0x4')](_0xa61559,_0x1b641a('0x41')),_0x20656e[_0x1b641a('0x5b')]=_[_0x1b641a('0xe')](_0xd4128c[_0x1b641a('0x5b')]),_0x20656e[_0x1b641a('0x3c')]=_[_0x1b641a('0x4b')](_0x20656e[_0x1b641a('0x29')],_0x20656e[_0x1b641a('0x5b')]),_0x22968f['attributes']=_[_0x1b641a('0x4b')](_0x20656e['model'],qs[_0x1b641a('0x26')](_0xd4128c[_0x1b641a('0x5b')][_0x1b641a('0x26')])),_0x22968f[_0x1b641a('0x1d')]=_0x22968f[_0x1b641a('0x1d')][_0x1b641a('0x5')]?_0x22968f['attributes']:_0x20656e[_0x1b641a('0x29')];typeof _0xd4128c['query']['nolimit']===_0x1b641a('0x34')&&(_0x22968f[_0x1b641a('0x4f')]=qs[_0x1b641a('0x4f')](_0xd4128c[_0x1b641a('0x5b')]['limit']),_0x22968f['offset']=qs['offset'](_0xd4128c[_0x1b641a('0x5b')][_0x1b641a('0x0')]));_0x22968f[_0x1b641a('0x16')]=qs[_0x1b641a('0x2c')](_0xd4128c['query'][_0x1b641a('0x2c')]),_0x22968f['where']=qs[_0x1b641a('0x3c')](_[_0x1b641a('0x27')](_0xd4128c[_0x1b641a('0x5b')],_0x20656e[_0x1b641a('0x3c')]),_0xa61559);_0xd4128c[_0x1b641a('0x5b')][_0x1b641a('0xc')]&&(_0x22968f[_0x1b641a('0x4c')]=_['merge'](_0x22968f[_0x1b641a('0x4c')],{[Op['or']]:_['map'](_0xa61559,function(_0x88e361){const _0x21f892=_0x1b641a;if(_0x88e361['type']!==_0x21f892('0x31')){const _0x5474c3={};return _0x5474c3[_0x88e361[_0x21f892('0x41')]]={[Op['like']]:'%'+_0xd4128c[_0x21f892('0x5b')]['filter']+'%'},_0x5474c3;}})}));_0x22968f=_[_0x1b641a('0x5c')]({},_0x22968f,_0xd4128c[_0x1b641a('0x59')]);const _0x588266={'where':_0x22968f[_0x1b641a('0x4c')]};return db['VtigerAccount']['count'](_0x588266)[_0x1b641a('0x14')](function(_0x59cb1f){const _0x33e82f=_0x1b641a;return _0x5a3a48[_0x33e82f('0x22')]=_0x59cb1f,_0xd4128c[_0x33e82f('0x5b')][_0x33e82f('0x3a')]&&(_0x22968f[_0x33e82f('0x54')]=[{'all':!![]}]),db['VtigerAccount'][_0x33e82f('0x58')](_0x22968f);})[_0x1b641a('0x14')](function(_0x27983c){return _0x5a3a48['rows']=_0x27983c,_0x5a3a48;})[_0x1b641a('0x14')](respondWithFilteredResult(_0x403c7d,_0x22968f))[_0x1b641a('0x35')](handleError(_0x403c7d,null));},exports[_0x1654aa('0x50')]=function(_0x6e370e,_0x57338f){const _0x428fe1=_0x1654aa;let _0x1a34c9={'raw':![],'where':{'id':_0x6e370e[_0x428fe1('0x4d')]['id']}};const _0x343405={};return _0x343405[_0x428fe1('0x29')]=_['keys'](db[_0x428fe1('0x42')][_0x428fe1('0x37')]),_0x343405[_0x428fe1('0x5b')]=_[_0x428fe1('0xe')](_0x6e370e[_0x428fe1('0x5b')]),_0x343405['filters']=_[_0x428fe1('0x4b')](_0x343405[_0x428fe1('0x29')],_0x343405['query']),_0x1a34c9['attributes']=_[_0x428fe1('0x4b')](_0x343405[_0x428fe1('0x29')],qs[_0x428fe1('0x26')](_0x6e370e['query'][_0x428fe1('0x26')])),_0x1a34c9[_0x428fe1('0x1d')]=_0x1a34c9[_0x428fe1('0x1d')][_0x428fe1('0x5')]?_0x1a34c9[_0x428fe1('0x1d')]:_0x343405['model'],_0x6e370e[_0x428fe1('0x5b')][_0x428fe1('0x3a')]&&(_0x1a34c9['include']=[{'all':!![]}]),_0x1a34c9=_[_0x428fe1('0x5c')]({},_0x1a34c9,_0x6e370e['options']),db['VtigerAccount']['findOne'](_0x1a34c9)[_0x428fe1('0x14')](handleEntityNotFound(_0x57338f,null))['then'](respondWithResult(_0x57338f,null))[_0x428fe1('0x35')](handleError(_0x57338f,null));},exports[_0x1654aa('0x40')]=function(_0x50e6b9,_0x2948cf){const _0x1744ce=_0x1654aa;return db['VtigerAccount'][_0x1744ce('0x40')](_0x50e6b9[_0x1744ce('0x2a')],{})[_0x1744ce('0x14')](respondWithResult(_0x2948cf,0xc9))[_0x1744ce('0x35')](handleError(_0x2948cf,null));},exports[_0x1654aa('0x4a')]=function(_0x271d43,_0x5dff64){const _0x10b529=_0x1654aa;return _0x271d43[_0x10b529('0x2a')]['id']&&delete _0x271d43[_0x10b529('0x2a')]['id'],db[_0x10b529('0x42')][_0x10b529('0x3b')]({'where':{'id':_0x271d43[_0x10b529('0x4d')]['id']}})[_0x10b529('0x14')](handleEntityNotFound(_0x5dff64,null))[_0x10b529('0x14')](saveUpdates(_0x271d43[_0x10b529('0x2a')],null))['then'](respondWithResult(_0x5dff64,null))[_0x10b529('0x35')](handleError(_0x5dff64,null));},exports[_0x1654aa('0x4e')]=function(_0x1fad45,_0xf987e9){const _0x1f092c=_0x1654aa;return db[_0x1f092c('0x42')]['findOne']({'where':{'id':_0x1fad45[_0x1f092c('0x4d')]['id']}})[_0x1f092c('0x14')](handleEntityNotFound(_0xf987e9,null))[_0x1f092c('0x14')](removeEntity(_0xf987e9,null))[_0x1f092c('0x35')](handleError(_0xf987e9,null));},exports['getConfigurations']=function(_0x4ed170,_0x5c3422){const _0x32c081=_0x1654aa;let _0x17fc2d={};const _0x26e45a={};let _0x1b926b,_0x8cb8a2;return db[_0x32c081('0x42')]['findOne']({'where':{'id':_0x4ed170[_0x32c081('0x4d')]['id']}})[_0x32c081('0x14')](handleEntityNotFound(_0x5c3422,null))[_0x32c081('0x14')](function(_0x15c103){const _0xe8fe18=_0x32c081;if(_0x15c103)return _0x1b926b=_0x15c103,_0x26e45a['model']=_[_0xe8fe18('0xe')](db[_0xe8fe18('0xd')][_0xe8fe18('0x37')]),_0x26e45a['query']=_[_0xe8fe18('0xe')](_0x4ed170[_0xe8fe18('0x5b')]),_0x26e45a[_0xe8fe18('0x3c')]=_['intersection'](_0x26e45a['model'],_0x26e45a[_0xe8fe18('0x5b')]),_0x17fc2d['attributes']=_[_0xe8fe18('0x4b')](_0x26e45a[_0xe8fe18('0x29')],qs[_0xe8fe18('0x26')](_0x4ed170['query'][_0xe8fe18('0x26')])),_0x17fc2d['attributes']=_0x17fc2d[_0xe8fe18('0x1d')][_0xe8fe18('0x5')]?_0x17fc2d[_0xe8fe18('0x1d')]:_0x26e45a[_0xe8fe18('0x29')],_0x17fc2d['order']=qs[_0xe8fe18('0x2c')](_0x4ed170[_0xe8fe18('0x5b')][_0xe8fe18('0x2c')]),_0x17fc2d[_0xe8fe18('0x4c')]=qs[_0xe8fe18('0x3c')](_[_0xe8fe18('0x27')](_0x4ed170['query'],_0x26e45a[_0xe8fe18('0x3c')])),_0x4ed170['query']['filter']&&(_0x17fc2d[_0xe8fe18('0x4c')]=_['merge'](_0x17fc2d[_0xe8fe18('0x4c')],{[Op['or']]:_[_0xe8fe18('0x4')](_0x17fc2d['attributes'],function(_0x2242b2){const _0x504f1d=_0xe8fe18,_0x497f6d={};return _0x497f6d[_0x2242b2]={[Op['like']]:'%'+_0x4ed170[_0x504f1d('0x5b')][_0x504f1d('0xc')]+'%'},_0x497f6d;})})),_0x17fc2d=_[_0xe8fe18('0x5c')]({},_0x17fc2d,_0x4ed170['options']),_0x1b926b[_0xe8fe18('0x5e')](_0x17fc2d);})[_0x32c081('0x14')](function(_0x30138a){const _0x579b70=_0x32c081;if(_0x30138a)return _0x8cb8a2=_0x30138a[_0x579b70('0x5')],typeof _0x4ed170[_0x579b70('0x5b')][_0x579b70('0x28')]===_0x579b70('0x34')&&(_0x17fc2d['limit']=qs[_0x579b70('0x4f')](_0x4ed170[_0x579b70('0x5b')]['limit']),_0x17fc2d[_0x579b70('0x0')]=qs['offset'](_0x4ed170[_0x579b70('0x5b')][_0x579b70('0x0')])),_0x1b926b[_0x579b70('0x5e')](_0x17fc2d);})[_0x32c081('0x14')](function(_0x47db05){if(_0x47db05)return _0x47db05?{'count':_0x8cb8a2,'rows':_0x47db05}:null;})[_0x32c081('0x14')](respondWithResult(_0x5c3422,null))[_0x32c081('0x35')](handleError(_0x5c3422,null));},exports[_0x1654aa('0x5f')]=function(_0x56440c,_0x4c51d7){const _0x4dc880=_0x1654aa;return _0x56440c[_0x4dc880('0x2a')]['id']&&delete _0x56440c[_0x4dc880('0x2a')]['id'],db[_0x4dc880('0x42')][_0x4dc880('0x3b')]({'where':{'id':_0x56440c['params']['id']}})[_0x4dc880('0x14')](handleEntityNotFound(_0x4c51d7,null))[_0x4dc880('0x14')](function(_0x15fd0d){const _0xb12c25=_0x4dc880;if(_0x15fd0d)return _0x56440c[_0xb12c25('0x2a')][_0xb12c25('0x18')]=_0x15fd0d['id'],_0x56440c[_0xb12c25('0x2a')]['Subjects']=integrations[_0xb12c25('0x57')](_0x56440c['body'][_0xb12c25('0x10')],_0x56440c[_0xb12c25('0x2a')][_0xb12c25('0x2e')]),_0x56440c[_0xb12c25('0x2a')][_0xb12c25('0x7')]=integrations['getDescriptions'](_0x56440c[_0xb12c25('0x2a')][_0xb12c25('0x10')],_0x56440c['body'][_0xb12c25('0x2e')]),db[_0xb12c25('0xd')][_0xb12c25('0x40')](_0x56440c[_0xb12c25('0x2a')],{'include':[{'model':db[_0xb12c25('0x51')],'as':_0xb12c25('0x19')},{'model':db[_0xb12c25('0x51')],'as':_0xb12c25('0x7')}]});return null;})[_0x4dc880('0x14')](respondWithResult(_0x4c51d7,null))[_0x4dc880('0x35')](handleError(_0x4c51d7,null));};const md5=require('md5');exports[_0x1654aa('0xf')]=function(_0x538e3a,_0x2481d2){const _0x62c4b=_0x1654aa;let _0x1d4464=null,_0x1877be=null,_0x375523=null,_0x2c7d7d=null,_0x1ca1c2='';return db[_0x62c4b('0x42')][_0x62c4b('0x3b')]({'where':{'id':_0x538e3a[_0x62c4b('0x4d')]['id']},'attributes':['id',_0x62c4b('0x41'),_0x62c4b('0x5d'),_0x62c4b('0x2'),_0x62c4b('0x17'),_0x62c4b('0x5a'),'serverUrl',_0x62c4b('0x3e')]})[_0x62c4b('0x14')](handleEntityNotFound(_0x2481d2,null))[_0x62c4b('0x14')](function(_0x18a795){const _0xe23bd7=_0x62c4b;if(_0x18a795){_0x1d4464=_0x18a795[_0xe23bd7('0x5d')],_0x1877be=_0x18a795[_0xe23bd7('0x3e')],_0x375523=_0x18a795['moduleName'],_0x1ca1c2=_0x18a795[_0xe23bd7('0x5a')];const _0x224609=_0x1ca1c2[_0xe23bd7('0x9')](-0x1);_0x224609==='/'&&(_0x1ca1c2=_0x1ca1c2[_0xe23bd7('0x3d')](0x0,_0x1ca1c2[_0xe23bd7('0x1b')](_0x224609)));_0x2c7d7d=util[_0xe23bd7('0x21')](_0xe23bd7('0x25'),_0x1ca1c2);const _0x277dce={'method':'GET','uri':_0x2c7d7d,'qs':{'operation':'getchallenge','username':_0x18a795[_0xe23bd7('0x5d')]},'json':!![]};return rp(_0x277dce);}})['then'](function(_0x5c0227){const _0x4fc82b=_0x62c4b;if(_0x5c0227[_0x4fc82b('0x2d')]){const _0x13ad87={'method':_0x4fc82b('0x23'),'uri':_0x2c7d7d,'form':{'operation':_0x4fc82b('0x56'),'username':_0x1d4464,'accessKey':md5(_0x5c0227[_0x4fc82b('0x55')][_0x4fc82b('0x1a')]+_0x1877be)},'json':!![]};return rp(_0x13ad87);}})[_0x62c4b('0x14')](function(_0x2e0411){const _0x57e421=_0x62c4b;if(_0x2e0411['success']){const _0x1ae930={'method':'GET','uri':_0x2c7d7d,'qs':{'operation':_0x57e421('0x24'),'username':_0x1d4464,'sessionName':_0x2e0411[_0x57e421('0x55')]['sessionName'],'elementType':_0x375523},'json':!![]};return rp(_0x1ae930);}})[_0x62c4b('0x14')](function(_0x2aea9a){const _0x1f08ca=_0x62c4b;if(_0x2aea9a[_0x1f08ca('0x2d')]){const _0x3ea2c0=['autogenerated','reference',_0x1f08ca('0x8')];return _[_0x1f08ca('0x6')](_0x2aea9a[_0x1f08ca('0x55')]['fields'],function(_0x2e0b9b){const _0x54b5ce=_0x1f08ca;return _0x3ea2c0[_0x54b5ce('0x47')](_0x2e0b9b[_0x54b5ce('0x2e')][_0x54b5ce('0x41')]);}),_[_0x1f08ca('0x6')](_0x2aea9a['result']['fields'],function(_0x2205dd){const _0x4f7747=_0x1f08ca;return _0x2205dd[_0x4f7747('0x11')]===_0x4f7747('0xb');}),{'count':_0x2aea9a[_0x1f08ca('0x55')][_0x1f08ca('0x26')]['length'],'rows':_[_0x1f08ca('0x4')](_0x2aea9a[_0x1f08ca('0x55')][_0x1f08ca('0x26')],function(_0x3d81b2){const _0x6bfd6f=_0x1f08ca;return{'id':_0x3d81b2[_0x6bfd6f('0x41')],'name':_0x3d81b2[_0x6bfd6f('0x3')],'custom':_['startsWith'](_0x3d81b2[_0x6bfd6f('0x41')],_0x6bfd6f('0xa'))?!![]:![],'options':_0x3d81b2[_0x6bfd6f('0x2e')][_0x6bfd6f('0x41')]===_0x6bfd6f('0x43')&&_0x3d81b2['type']['picklistValues'][_0x6bfd6f('0x5')]>0x0?_[_0x6bfd6f('0x4')](_0x3d81b2['type'][_0x6bfd6f('0x20')],function(_0x4ba2d4){const _0xbd0732=_0x6bfd6f;return{'name':_0x4ba2d4['label'],'value':_0x4ba2d4[_0xbd0732('0x33')]};}):[]};})};}})[_0x62c4b('0x14')](respondWithResult(_0x2481d2,null))[_0x62c4b('0x35')](function(_0x2e296f){const _0x13eed1=_0x62c4b;console['log'](_0x13eed1('0x53')+_0x2e296f);let _0x3995b0=_0x538e3a['query'][_0x13eed1('0x13')]?0x1f4:_0x2e296f[_0x13eed1('0x48')]||0x1f4;logger[_0x13eed1('0x1e')]('getFields,\x20%s,\x20%s,\x20%s',_0x13eed1('0xf'),_0x3995b0,JSON[_0x13eed1('0x36')](_0x2e296f)),delete _0x2e296f[_0x13eed1('0x41')],_0x3995b0===0x191&&(_0x3995b0=0x190),_0x2481d2[_0x13eed1('0x2b')](_0x3995b0)['send'](_0x538e3a['query'][_0x13eed1('0x13')]?{'message':_0x13eed1('0x12'),'statusCode':_0x2e296f[_0x13eed1('0x48')]}:_0x2e296f);});}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 939a5b3..7fa2581 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a321_0x506d=['int_vtiger_accounts','VtigerAccount','exports','define'];(function(_0x491ff0,_0x506d67){const _0x302a21=function(_0x5453eb){while(--_0x5453eb){_0x491ff0['push'](_0x491ff0['shift']());}};_0x302a21(++_0x506d67);}(a321_0x506d,0xf1));const a321_0x302a=function(_0x491ff0,_0x506d67){_0x491ff0=_0x491ff0-0x0;let _0x302a21=a321_0x506d[_0x491ff0];return _0x302a21;};const _0x271639=a321_0x302a;'use strict';const attributes=require('./intVtigerAccount.attributes');module[_0x271639('0x1')]=function(_0x5453eb){const _0x278803=_0x271639,_0x4fbd7a=_0x5453eb[_0x278803('0x2')](_0x278803('0x0'),attributes,{'tableName':_0x278803('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4fbd7a;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index def9e22..e022765 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a322_0x5e7f=['message','error','catch','../../mysqldb','VtigerAccount','where','raw','debug','GetVtigerAccount','stringify','attributes','then','limit','ShowVtigerAccount','map','findAll','options','lodash','info','include','../../config/logger','model'];(function(_0x27b7d0,_0x5e7fa5){const _0x29157e=function(_0x141368){while(--_0x141368){_0x27b7d0['push'](_0x27b7d0['shift']());}};_0x29157e(++_0x5e7fa5);}(a322_0x5e7f,0x16b));const a322_0x2915=function(_0x27b7d0,_0x5e7fa5){_0x27b7d0=_0x27b7d0-0x0;let _0x29157e=a322_0x5e7f[_0x27b7d0];return _0x29157e;};const _0x4bc984=a322_0x2915;'use strict';const _=require(_0x4bc984('0x6')),db=require(_0x4bc984('0xe'))['db'],logger=require(_0x4bc984('0x9'))('rpc');exports[_0x4bc984('0x13')]=function(_0x141368){const _0x134000=this;return new Promise(function(_0x69b1c1,_0x56f51d){const _0x5c263f=a322_0x2915;return db[_0x5c263f('0xf')][_0x5c263f('0x4')]({'raw':_0x141368['options']?_0x141368[_0x5c263f('0x5')]['raw']===undefined?!![]:![]:!![],'where':_0x141368['options']?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x10')]||null:null,'attributes':_0x141368['options']?_0x141368[_0x5c263f('0x5')]['attributes']||null:null,'limit':_0x141368[_0x5c263f('0x5')]?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x1')]||null:null,'include':_0x141368[_0x5c263f('0x5')]?_0x141368[_0x5c263f('0x5')][_0x5c263f('0x8')]?_[_0x5c263f('0x3')](_0x141368[_0x5c263f('0x5')]['include'],function(_0x10a9e8){const _0x488525=_0x5c263f;return{'model':db[_0x10a9e8[_0x488525('0xa')]],'as':_0x10a9e8['as'],'attributes':_0x10a9e8['attributes'],'include':_0x10a9e8[_0x488525('0x8')]?_[_0x488525('0x3')](_0x10a9e8['include'],function(_0x35c352){const _0x4dd8f5=_0x488525;return{'model':db[_0x35c352['model']],'as':_0x35c352['as'],'attributes':_0x35c352[_0x4dd8f5('0x15')],'include':_0x35c352[_0x4dd8f5('0x8')]?_['map'](_0x35c352['include'],function(_0x8d1511){const _0x216052=_0x4dd8f5;return{'model':db[_0x8d1511[_0x216052('0xa')]],'as':_0x8d1511['as'],'attributes':_0x8d1511['attributes']};}):[]};}):[]};}):[]:[]})[_0x5c263f('0x0')](function(_0x5f4a51){const _0x3e13bf=_0x5c263f;logger[_0x3e13bf('0x7')]('GetVtigerAccount',_0x141368),logger[_0x3e13bf('0x12')](_0x3e13bf('0x13'),_0x141368,JSON[_0x3e13bf('0x14')](_0x5f4a51)),_0x69b1c1(_0x5f4a51);})[_0x5c263f('0xd')](function(_0xa6125){const _0x1ac668=_0x5c263f;logger['error'](_0x1ac668('0x13'),_0xa6125['message'],_0x141368),_0x56f51d(_0x134000[_0x1ac668('0xc')](0x1f4,_0xa6125[_0x1ac668('0xb')]));});});},exports[_0x4bc984('0x2')]=function(_0xcbb161){const _0x561ad9=this;return new Promise(function(_0x3fd943,_0x1634e6){const _0x3d5e51=a322_0x2915;return db['VtigerAccount']['findOne']({'raw':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161['options'][_0x3d5e51('0x11')]===undefined?!![]:![]:!![],'where':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x10')]||null:null,'attributes':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161['options'][_0x3d5e51('0x15')]||null:null,'include':_0xcbb161[_0x3d5e51('0x5')]?_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x8')]?_[_0x3d5e51('0x3')](_0xcbb161[_0x3d5e51('0x5')][_0x3d5e51('0x8')],function(_0x3dc964){const _0x2c2c76=_0x3d5e51;return{'model':db[_0x3dc964[_0x2c2c76('0xa')]],'as':_0x3dc964['as'],'attributes':_0x3dc964['attributes'],'include':_0x3dc964['include']?_[_0x2c2c76('0x3')](_0x3dc964['include'],function(_0x3e8021){const _0x2588dc=_0x2c2c76;return{'model':db[_0x3e8021['model']],'as':_0x3e8021['as'],'attributes':_0x3e8021[_0x2588dc('0x15')],'include':_0x3e8021[_0x2588dc('0x8')]?_[_0x2588dc('0x3')](_0x3e8021['include'],function(_0x477086){const _0x11e01c=_0x2588dc;return{'model':db[_0x477086['model']],'as':_0x477086['as'],'attributes':_0x477086[_0x11e01c('0x15')]};}):[]};}):[]};}):[]:[]})[_0x3d5e51('0x0')](function(_0x485f18){const _0x39bafb=_0x3d5e51;logger['info'](_0x39bafb('0x2'),_0xcbb161),logger[_0x39bafb('0x12')]('ShowVtigerAccount',_0xcbb161,JSON[_0x39bafb('0x14')](_0x485f18)),_0x3fd943(_0x485f18);})[_0x3d5e51('0xd')](function(_0x2517df){const _0x5aa880=_0x3d5e51;logger[_0x5aa880('0xc')](_0x5aa880('0x2'),_0x2517df['message'],_0xcbb161),_0x1634e6(_0x561ad9[_0x5aa880('0xc')](0x1f4,_0x2517df['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index de5d2db..03b4814 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a323_0x1d18=['getFields','exports','isAuthenticated','create','index','get','getDescriptions','post','/:id','/:id/subjects','update','delete','/:id/descriptions','/:id/fields','put','../../components/auth/service','express','getSubjects','destroy','show'];(function(_0x4d2bb6,_0x1d1830){const _0x5d586a=function(_0x6a4e11){while(--_0x6a4e11){_0x4d2bb6['push'](_0x4d2bb6['shift']());}};_0x5d586a(++_0x1d1830);}(a323_0x1d18,0x1dd));const a323_0x5d58=function(_0x4d2bb6,_0x1d1830){_0x4d2bb6=_0x4d2bb6-0x0;let _0x5d586a=a323_0x1d18[_0x4d2bb6];return _0x5d586a;};const _0x500f4f=a323_0x5d58;'use strict';const express=require(_0x500f4f('0x13')),router=express['Router'](),auth=require(_0x500f4f('0x12')),controller=require('./intVtigerConfiguration.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x500f4f('0x7')]),router['get'](_0x500f4f('0xb'),auth[_0x500f4f('0x5')](),controller[_0x500f4f('0x2')]),router['get'](_0x500f4f('0x10'),auth[_0x500f4f('0x5')](),controller[_0x500f4f('0x3')]),router['get'](_0x500f4f('0xc'),auth[_0x500f4f('0x5')](),controller[_0x500f4f('0x0')]),router[_0x500f4f('0x8')](_0x500f4f('0xf'),auth['isAuthenticated'](),controller[_0x500f4f('0x9')]),router[_0x500f4f('0xa')]('/',auth['isAuthenticated'](),controller[_0x500f4f('0x6')]),router[_0x500f4f('0x11')](_0x500f4f('0xb'),auth[_0x500f4f('0x5')](),controller[_0x500f4f('0xd')]),router[_0x500f4f('0xe')](_0x500f4f('0xb'),auth[_0x500f4f('0x5')](),controller[_0x500f4f('0x1')]),module[_0x500f4f('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index d86df08..8788997 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a324_0xbb12=['STRING','sequelize','exports'];(function(_0x3e00b7,_0xbb1274){const _0x1313a3=function(_0x17c339){while(--_0x17c339){_0x3e00b7['push'](_0x3e00b7['shift']());}};_0x1313a3(++_0xbb1274);}(a324_0xbb12,0x1f1));const a324_0x1313=function(_0x3e00b7,_0xbb1274){_0x3e00b7=_0x3e00b7-0x0;let _0x1313a3=a324_0xbb12[_0x3e00b7];return _0x1313a3;};const _0xe27342=a324_0x1313;'use strict';const Sequelize=require(_0xe27342('0x2'));module[_0xe27342('0x0')]={'name':{'type':Sequelize[_0xe27342('0x1')]},'description':{'type':Sequelize[_0xe27342('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index ce63a07..3cfd578 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a325_0x3185=['catch','VtigerField','VtigerConfiguration','body','send','findAll','include','sort','destroy','nolimit','type','order','status','merge','filters','json','stack','count','limit','fields','filter','name','attributes','pick','set','map','params','getSubjects','like','lodash','options','update','then','length','findOne','getFields','end','keys','create','key','undefined','query','api','sendStatus','Content-Range','intersection','../../mysqldb','offset','rawAttributes','rows','index','where','show','getDescriptions','includeAll','model'];(function(_0x886c52,_0x31850d){const _0x80ba1=function(_0x2a046f){while(--_0x2a046f){_0x886c52['push'](_0x886c52['shift']());}};_0x80ba1(++_0x31850d);}(a325_0x3185,0x194));const a325_0x80ba=function(_0x886c52,_0x31850d){_0x886c52=_0x886c52-0x0;let _0x80ba1=a325_0x3185[_0x886c52];return _0x80ba1;};const _0x1db65b=a325_0x80ba;'use strict';const _=require(_0x1db65b('0x11')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1db65b('0x1e')),db=require(_0x1db65b('0x22'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2a046f,_0x44415c){return _0x44415c=_0x44415c||0xc8,function(_0x411d2e){const _0x43d4ea=a325_0x80ba;if(_0x411d2e)return _0x2a046f[_0x43d4ea('0x0')](_0x44415c)[_0x43d4ea('0x3')](_0x411d2e);};}function respondWithFilteredResult(_0x1dfcd9,_0x43cbfa){return function(_0x36ba19){const _0x36d192=a325_0x80ba;if(_0x36ba19){const _0x381fc5=_0x36ba19[_0x36d192('0x5')],_0x4c2413=_0x43cbfa['offset'];let _0x5b825e=_0x43cbfa[_0x36d192('0x23')]+_0x43cbfa['limit'],_0x394db4;return _0x5b825e>=_0x381fc5?(_0x5b825e=_0x381fc5,_0x394db4=0xc8):_0x394db4=0xce,_0x1dfcd9['status'](_0x394db4),_0x1dfcd9[_0x36d192('0xc')](_0x36d192('0x20'),_0x4c2413+'-'+_0x5b825e+'/'+_0x381fc5)['json'](_0x36ba19);}return null;};}function saveUpdates(_0x487ea6){return function(_0x3c387d){const _0xa509b3=a325_0x80ba;if(_0x3c387d)return _0x3c387d[_0xa509b3('0x13')](_0x487ea6)[_0xa509b3('0x14')](function(_0xb9314d){return _0xb9314d;});return null;};}function removeEntity(_0x282235){return function(_0xa836a5){const _0xc2c5ee=a325_0x80ba;if(_0xa836a5)return _0xa836a5[_0xc2c5ee('0x34')]()[_0xc2c5ee('0x14')](function(){const _0x5b9f3a=_0xc2c5ee;_0x282235['status'](0xcc)[_0x5b9f3a('0x18')]();});};}function handleEntityNotFound(_0x4baf0b){return function(_0x12a842){const _0x35d247=a325_0x80ba;return!_0x12a842&&_0x4baf0b[_0x35d247('0x1f')](0x194),_0x12a842;};}function handleError(_0x28747c,_0x34132f){return _0x34132f=_0x34132f||0x1f4,function(_0x509282){const _0x55f491=a325_0x80ba;logger['error'](_0x509282[_0x55f491('0x4')]),_0x509282['name']&&delete _0x509282[_0x55f491('0x9')],_0x28747c[_0x55f491('0x0')](_0x34132f)[_0x55f491('0x30')](_0x509282);};}exports[_0x1db65b('0x26')]=function(_0x1e6b38,_0x24f6e3){const _0x550f09=_0x1db65b;let _0xea753a={};const _0x10f812={},_0x57b22={'count':0x0,'rows':[]},_0x136c67=_[_0x550f09('0xd')](db[_0x550f09('0x2e')][_0x550f09('0x24')],function(_0x14bd7f){const _0x161d4a=_0x550f09;return{'name':_0x14bd7f['fieldName'],'type':_0x14bd7f[_0x161d4a('0x36')][_0x161d4a('0x1b')]};});_0x10f812[_0x550f09('0x2b')]=_[_0x550f09('0xd')](_0x136c67,_0x550f09('0x9')),_0x10f812[_0x550f09('0x1d')]=_['keys'](_0x1e6b38[_0x550f09('0x1d')]),_0x10f812[_0x550f09('0x2')]=_[_0x550f09('0x21')](_0x10f812[_0x550f09('0x2b')],_0x10f812[_0x550f09('0x1d')]),_0xea753a[_0x550f09('0xa')]=_[_0x550f09('0x21')](_0x10f812[_0x550f09('0x2b')],qs[_0x550f09('0x7')](_0x1e6b38[_0x550f09('0x1d')][_0x550f09('0x7')])),_0xea753a[_0x550f09('0xa')]=_0xea753a[_0x550f09('0xa')][_0x550f09('0x15')]?_0xea753a[_0x550f09('0xa')]:_0x10f812['model'];typeof _0x1e6b38[_0x550f09('0x1d')]['nolimit']===_0x550f09('0x1c')&&(_0xea753a['limit']=qs[_0x550f09('0x6')](_0x1e6b38['query']['limit']),_0xea753a[_0x550f09('0x23')]=qs[_0x550f09('0x23')](_0x1e6b38[_0x550f09('0x1d')]['offset']));_0xea753a[_0x550f09('0x37')]=qs[_0x550f09('0x33')](_0x1e6b38[_0x550f09('0x1d')][_0x550f09('0x33')]),_0xea753a[_0x550f09('0x27')]=qs[_0x550f09('0x2')](_[_0x550f09('0xb')](_0x1e6b38[_0x550f09('0x1d')],_0x10f812[_0x550f09('0x2')]),_0x136c67);_0x1e6b38[_0x550f09('0x1d')][_0x550f09('0x8')]&&(_0xea753a[_0x550f09('0x27')]=_[_0x550f09('0x1')](_0xea753a['where'],{[Op['or']]:_[_0x550f09('0xd')](_0x136c67,function(_0x1adf14){const _0x1482b2=_0x550f09;if(_0x1adf14['type']!=='VIRTUAL'){const _0x2d36f8={};return _0x2d36f8[_0x1adf14[_0x1482b2('0x9')]]={[Op[_0x1482b2('0x10')]]:'%'+_0x1e6b38['query']['filter']+'%'},_0x2d36f8;}})}));_0xea753a=_[_0x550f09('0x1')]({},_0xea753a,_0x1e6b38[_0x550f09('0x12')]);const _0x18af44={'where':_0xea753a[_0x550f09('0x27')]};return db['VtigerConfiguration'][_0x550f09('0x5')](_0x18af44)[_0x550f09('0x14')](function(_0x304ebf){const _0x51748c=_0x550f09;return _0x57b22[_0x51748c('0x5')]=_0x304ebf,_0x1e6b38[_0x51748c('0x1d')]['includeAll']&&(_0xea753a['include']=[{'all':!![]}]),db[_0x51748c('0x2e')][_0x51748c('0x31')](_0xea753a);})[_0x550f09('0x14')](function(_0xe5847e){const _0x31f635=_0x550f09;return _0x57b22[_0x31f635('0x25')]=_0xe5847e,_0x57b22;})['then'](respondWithFilteredResult(_0x24f6e3,_0xea753a))[_0x550f09('0x2c')](handleError(_0x24f6e3,null));},exports[_0x1db65b('0x28')]=function(_0x52ab9e,_0x3ff631){const _0x30e1d3=_0x1db65b;let _0x13eb1f={'raw':![],'where':{'id':_0x52ab9e[_0x30e1d3('0xe')]['id']}};const _0xbf24c3={};return _0xbf24c3[_0x30e1d3('0x2b')]=_['keys'](db[_0x30e1d3('0x2e')]['rawAttributes']),_0xbf24c3[_0x30e1d3('0x1d')]=_[_0x30e1d3('0x19')](_0x52ab9e['query']),_0xbf24c3[_0x30e1d3('0x2')]=_[_0x30e1d3('0x21')](_0xbf24c3[_0x30e1d3('0x2b')],_0xbf24c3['query']),_0x13eb1f[_0x30e1d3('0xa')]=_[_0x30e1d3('0x21')](_0xbf24c3[_0x30e1d3('0x2b')],qs[_0x30e1d3('0x7')](_0x52ab9e[_0x30e1d3('0x1d')][_0x30e1d3('0x7')])),_0x13eb1f[_0x30e1d3('0xa')]=_0x13eb1f['attributes'][_0x30e1d3('0x15')]?_0x13eb1f[_0x30e1d3('0xa')]:_0xbf24c3[_0x30e1d3('0x2b')],_0x52ab9e[_0x30e1d3('0x1d')][_0x30e1d3('0x2a')]&&(_0x13eb1f[_0x30e1d3('0x32')]=[{'all':!![]}]),_0x13eb1f=_['merge']({},_0x13eb1f,_0x52ab9e[_0x30e1d3('0x12')]),db[_0x30e1d3('0x2e')][_0x30e1d3('0x16')](_0x13eb1f)[_0x30e1d3('0x14')](handleEntityNotFound(_0x3ff631,null))[_0x30e1d3('0x14')](respondWithResult(_0x3ff631,null))[_0x30e1d3('0x2c')](handleError(_0x3ff631,null));},exports[_0x1db65b('0x1a')]=function(_0x4ba4dd,_0x12bb0f){const _0x412b93=_0x1db65b;return db['VtigerConfiguration'][_0x412b93('0x1a')](_0x4ba4dd[_0x412b93('0x2f')],{})[_0x412b93('0x14')](respondWithResult(_0x12bb0f,0xc9))[_0x412b93('0x2c')](handleError(_0x12bb0f,null));},exports[_0x1db65b('0x13')]=function(_0x3555c8,_0x4f64e0){const _0x1586e2=_0x1db65b;return _0x3555c8[_0x1586e2('0x2f')]['id']&&delete _0x3555c8['body']['id'],db[_0x1586e2('0x2e')][_0x1586e2('0x16')]({'where':{'id':_0x3555c8[_0x1586e2('0xe')]['id']}})[_0x1586e2('0x14')](handleEntityNotFound(_0x4f64e0,null))['then'](saveUpdates(_0x3555c8['body'],null))[_0x1586e2('0x14')](respondWithResult(_0x4f64e0,null))[_0x1586e2('0x2c')](handleError(_0x4f64e0,null));},exports['destroy']=function(_0x178d30,_0x3a550a){const _0x360e88=_0x1db65b;return db[_0x360e88('0x2e')][_0x360e88('0x16')]({'where':{'id':_0x178d30[_0x360e88('0xe')]['id']}})[_0x360e88('0x14')](handleEntityNotFound(_0x3a550a,null))[_0x360e88('0x14')](removeEntity(_0x3a550a,null))[_0x360e88('0x2c')](handleError(_0x3a550a,null));},exports['getFields']=function(_0x515ff1,_0x19547b){const _0x5a1f08=_0x1db65b;let _0x4f6950={};const _0x31ef0d={};let _0x2f5d56,_0x5e03d0;return db[_0x5a1f08('0x2e')]['findOne']({'where':{'id':_0x515ff1[_0x5a1f08('0xe')]['id']}})['then'](handleEntityNotFound(_0x19547b,null))[_0x5a1f08('0x14')](function(_0x521568){const _0x5b91e4=_0x5a1f08;if(_0x521568)return _0x2f5d56=_0x521568,_0x31ef0d['model']=_['keys'](db[_0x5b91e4('0x2d')][_0x5b91e4('0x24')]),_0x31ef0d[_0x5b91e4('0x1d')]=_[_0x5b91e4('0x19')](_0x515ff1[_0x5b91e4('0x1d')]),_0x31ef0d[_0x5b91e4('0x2')]=_['intersection'](_0x31ef0d['model'],_0x31ef0d[_0x5b91e4('0x1d')]),_0x4f6950[_0x5b91e4('0xa')]=_['intersection'](_0x31ef0d[_0x5b91e4('0x2b')],qs[_0x5b91e4('0x7')](_0x515ff1[_0x5b91e4('0x1d')][_0x5b91e4('0x7')])),_0x4f6950[_0x5b91e4('0xa')]=_0x4f6950[_0x5b91e4('0xa')]['length']?_0x4f6950[_0x5b91e4('0xa')]:_0x31ef0d[_0x5b91e4('0x2b')],_0x4f6950[_0x5b91e4('0x37')]=qs['sort'](_0x515ff1['query'][_0x5b91e4('0x33')]),_0x4f6950[_0x5b91e4('0x27')]=qs[_0x5b91e4('0x2')](_['pick'](_0x515ff1[_0x5b91e4('0x1d')],_0x31ef0d[_0x5b91e4('0x2')])),_0x515ff1[_0x5b91e4('0x1d')][_0x5b91e4('0x8')]&&(_0x4f6950[_0x5b91e4('0x27')]=_[_0x5b91e4('0x1')](_0x4f6950['where'],{[Op['or']]:_['map'](_0x4f6950[_0x5b91e4('0xa')],function(_0x464eb8){const _0x35aeb0=_0x5b91e4,_0x381947={};return _0x381947[_0x464eb8]={[Op[_0x35aeb0('0x10')]]:'%'+_0x515ff1['query'][_0x35aeb0('0x8')]+'%'},_0x381947;})})),_0x4f6950=_[_0x5b91e4('0x1')]({},_0x4f6950,_0x515ff1[_0x5b91e4('0x12')]),_0x2f5d56[_0x5b91e4('0x17')](_0x4f6950);})[_0x5a1f08('0x14')](function(_0x301c6e){const _0x4dc9c5=_0x5a1f08;if(_0x301c6e)return _0x5e03d0=_0x301c6e[_0x4dc9c5('0x15')],typeof _0x515ff1[_0x4dc9c5('0x1d')]['nolimit']===_0x4dc9c5('0x1c')&&(_0x4f6950['limit']=qs[_0x4dc9c5('0x6')](_0x515ff1[_0x4dc9c5('0x1d')][_0x4dc9c5('0x6')]),_0x4f6950[_0x4dc9c5('0x23')]=qs[_0x4dc9c5('0x23')](_0x515ff1['query'][_0x4dc9c5('0x23')])),_0x2f5d56[_0x4dc9c5('0x17')](_0x4f6950);})['then'](function(_0xc6d20a){if(_0xc6d20a)return _0xc6d20a?{'count':_0x5e03d0,'rows':_0xc6d20a}:null;})[_0x5a1f08('0x14')](respondWithResult(_0x19547b,null))[_0x5a1f08('0x2c')](handleError(_0x19547b,null));},exports[_0x1db65b('0xf')]=function(_0x2ef24b,_0x8d6097){const _0x1955ad=_0x1db65b;let _0x5e130b={};const _0x2e72a8={};let _0x1b51cf,_0x1eb687;return db[_0x1955ad('0x2e')][_0x1955ad('0x16')]({'where':{'id':_0x2ef24b[_0x1955ad('0xe')]['id']}})[_0x1955ad('0x14')](handleEntityNotFound(_0x8d6097,null))[_0x1955ad('0x14')](function(_0x52e995){const _0x592529=_0x1955ad;if(_0x52e995)return _0x1b51cf=_0x52e995,_0x2e72a8[_0x592529('0x2b')]=_[_0x592529('0x19')](db['VtigerField']['rawAttributes']),_0x2e72a8[_0x592529('0x1d')]=_[_0x592529('0x19')](_0x2ef24b[_0x592529('0x1d')]),_0x2e72a8[_0x592529('0x2')]=_[_0x592529('0x21')](_0x2e72a8[_0x592529('0x2b')],_0x2e72a8[_0x592529('0x1d')]),_0x5e130b['attributes']=_['intersection'](_0x2e72a8[_0x592529('0x2b')],qs[_0x592529('0x7')](_0x2ef24b['query'][_0x592529('0x7')])),_0x5e130b[_0x592529('0xa')]=_0x5e130b[_0x592529('0xa')]['length']?_0x5e130b['attributes']:_0x2e72a8[_0x592529('0x2b')],_0x5e130b[_0x592529('0x37')]=qs[_0x592529('0x33')](_0x2ef24b[_0x592529('0x1d')][_0x592529('0x33')]),_0x5e130b[_0x592529('0x27')]=qs['filters'](_['pick'](_0x2ef24b[_0x592529('0x1d')],_0x2e72a8[_0x592529('0x2')])),_0x2ef24b['query']['filter']&&(_0x5e130b[_0x592529('0x27')]=_[_0x592529('0x1')](_0x5e130b[_0x592529('0x27')],{[Op['or']]:_[_0x592529('0xd')](_0x5e130b[_0x592529('0xa')],function(_0x102713){const _0x3886b9=_0x592529,_0xa63d49={};return _0xa63d49[_0x102713]={[Op[_0x3886b9('0x10')]]:'%'+_0x2ef24b[_0x3886b9('0x1d')]['filter']+'%'},_0xa63d49;})})),_0x5e130b=_[_0x592529('0x1')]({},_0x5e130b,_0x2ef24b['options']),_0x1b51cf[_0x592529('0xf')](_0x5e130b);})[_0x1955ad('0x14')](function(_0x177769){const _0x12903c=_0x1955ad;if(_0x177769)return _0x1eb687=_0x177769[_0x12903c('0x15')],typeof _0x2ef24b['query'][_0x12903c('0x35')]==='undefined'&&(_0x5e130b['limit']=qs[_0x12903c('0x6')](_0x2ef24b['query'][_0x12903c('0x6')]),_0x5e130b['offset']=qs['offset'](_0x2ef24b['query']['offset'])),_0x1b51cf[_0x12903c('0xf')](_0x5e130b);})['then'](function(_0x24723e){if(_0x24723e)return _0x24723e?{'count':_0x1eb687,'rows':_0x24723e}:null;})[_0x1955ad('0x14')](respondWithResult(_0x8d6097,null))['catch'](handleError(_0x8d6097,null));},exports[_0x1db65b('0x29')]=function(_0xf9ea2c,_0x1e87ba){const _0x3182d8=_0x1db65b;let _0x316ed5={};const _0xf04819={};let _0x52a18e,_0x19edf4;return db[_0x3182d8('0x2e')]['findOne']({'where':{'id':_0xf9ea2c['params']['id']}})[_0x3182d8('0x14')](handleEntityNotFound(_0x1e87ba,null))['then'](function(_0x1765e7){const _0x32b89c=_0x3182d8;if(_0x1765e7)return _0x52a18e=_0x1765e7,_0xf04819['model']=_['keys'](db[_0x32b89c('0x2d')][_0x32b89c('0x24')]),_0xf04819[_0x32b89c('0x1d')]=_[_0x32b89c('0x19')](_0xf9ea2c['query']),_0xf04819[_0x32b89c('0x2')]=_[_0x32b89c('0x21')](_0xf04819[_0x32b89c('0x2b')],_0xf04819['query']),_0x316ed5[_0x32b89c('0xa')]=_[_0x32b89c('0x21')](_0xf04819[_0x32b89c('0x2b')],qs[_0x32b89c('0x7')](_0xf9ea2c[_0x32b89c('0x1d')][_0x32b89c('0x7')])),_0x316ed5['attributes']=_0x316ed5[_0x32b89c('0xa')][_0x32b89c('0x15')]?_0x316ed5[_0x32b89c('0xa')]:_0xf04819[_0x32b89c('0x2b')],_0x316ed5[_0x32b89c('0x37')]=qs[_0x32b89c('0x33')](_0xf9ea2c[_0x32b89c('0x1d')][_0x32b89c('0x33')]),_0x316ed5['where']=qs[_0x32b89c('0x2')](_[_0x32b89c('0xb')](_0xf9ea2c['query'],_0xf04819[_0x32b89c('0x2')])),_0xf9ea2c[_0x32b89c('0x1d')]['filter']&&(_0x316ed5['where']=_[_0x32b89c('0x1')](_0x316ed5[_0x32b89c('0x27')],{[Op['or']]:_[_0x32b89c('0xd')](_0x316ed5[_0x32b89c('0xa')],function(_0x468dc7){const _0x19c75f=_0x32b89c,_0x3fe8af={};return _0x3fe8af[_0x468dc7]={[Op[_0x19c75f('0x10')]]:'%'+_0xf9ea2c[_0x19c75f('0x1d')]['filter']+'%'},_0x3fe8af;})})),_0x316ed5=_[_0x32b89c('0x1')]({},_0x316ed5,_0xf9ea2c['options']),_0x52a18e['getDescriptions'](_0x316ed5);})[_0x3182d8('0x14')](function(_0x1b5f12){const _0x565e6b=_0x3182d8;if(_0x1b5f12)return _0x19edf4=_0x1b5f12[_0x565e6b('0x15')],typeof _0xf9ea2c['query']['nolimit']===_0x565e6b('0x1c')&&(_0x316ed5[_0x565e6b('0x6')]=qs[_0x565e6b('0x6')](_0xf9ea2c[_0x565e6b('0x1d')][_0x565e6b('0x6')]),_0x316ed5[_0x565e6b('0x23')]=qs[_0x565e6b('0x23')](_0xf9ea2c[_0x565e6b('0x1d')][_0x565e6b('0x23')])),_0x52a18e[_0x565e6b('0x29')](_0x316ed5);})[_0x3182d8('0x14')](function(_0x523377){if(_0x523377)return _0x523377?{'count':_0x19edf4,'rows':_0x523377}:null;})[_0x3182d8('0x14')](respondWithResult(_0x1e87ba,null))[_0x3182d8('0x2c')](handleError(_0x1e87ba,null));}; \ No newline at end of file +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 diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index 6fbb78b..6fa5bb9 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a326_0x5e7b=['define','int_vtiger_configurations','./intVtigerConfiguration.attributes','exports'];(function(_0x1f941b,_0x5e7b90){const _0x5849f2=function(_0x2a7d4a){while(--_0x2a7d4a){_0x1f941b['push'](_0x1f941b['shift']());}};_0x5849f2(++_0x5e7b90);}(a326_0x5e7b,0xcc));const a326_0x5849=function(_0x1f941b,_0x5e7b90){_0x1f941b=_0x1f941b-0x0;let _0x5849f2=a326_0x5e7b[_0x1f941b];return _0x5849f2;};const _0x12cd64=a326_0x5849;'use strict';const attributes=require(_0x12cd64('0x2'));module[_0x12cd64('0x3')]=function(_0x2a7d4a){const _0x4faac6=_0x12cd64,_0x5daaa9=_0x2a7d4a[_0x4faac6('0x0')]('VtigerConfiguration',attributes,{'tableName':_0x4faac6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5daaa9;}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index 0bd4396..93dfbd2 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a327_0x9b70=['express','index','show','/:id','create','./intVtigerField.controller','get','destroy','delete','update','isAuthenticated','post','../../components/auth/service'];(function(_0x592b56,_0x9b709e){const _0x2d6abf=function(_0x3e7a71){while(--_0x3e7a71){_0x592b56['push'](_0x592b56['shift']());}};_0x2d6abf(++_0x9b709e);}(a327_0x9b70,0xfc));const a327_0x2d6a=function(_0x592b56,_0x9b709e){_0x592b56=_0x592b56-0x0;let _0x2d6abf=a327_0x9b70[_0x592b56];return _0x2d6abf;};const _0x16dc39=a327_0x2d6a;'use strict';const express=require(_0x16dc39('0x8')),router=express['Router'](),auth=require(_0x16dc39('0x7')),controller=require(_0x16dc39('0x0'));router['get']('/',auth[_0x16dc39('0x5')](),controller[_0x16dc39('0x9')]),router[_0x16dc39('0x1')]('/:id',auth[_0x16dc39('0x5')](),controller[_0x16dc39('0xa')]),router[_0x16dc39('0x6')]('/',auth[_0x16dc39('0x5')](),controller[_0x16dc39('0xc')]),router['put'](_0x16dc39('0xb'),auth[_0x16dc39('0x5')](),controller[_0x16dc39('0x4')]),router[_0x16dc39('0x3')](_0x16dc39('0xb'),auth[_0x16dc39('0x5')](),controller[_0x16dc39('0x2')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.attributes.js b/server/api/intVtigerField/intVtigerField.attributes.js index a457949..cce62b6 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a328_0x1053=['string','variable','STRING','keyValue','customVariable','exports','ENUM'];(function(_0x327408,_0x105317){const _0x55e3cb=function(_0x56105d){while(--_0x56105d){_0x327408['push'](_0x327408['shift']());}};_0x55e3cb(++_0x105317);}(a328_0x1053,0x1a6));const a328_0x55e3=function(_0x327408,_0x105317){_0x327408=_0x327408-0x0;let _0x55e3cb=a328_0x1053[_0x327408];return _0x55e3cb;};const _0x3735ca=a328_0x55e3;'use strict';const Sequelize=require('sequelize');module[_0x3735ca('0x3')]={'type':{'type':Sequelize[_0x3735ca('0x4')](_0x3735ca('0x5'),_0x3735ca('0x6'),_0x3735ca('0x2'),_0x3735ca('0x1')),'defaultValue':'string'},'content':{'type':Sequelize[_0x3735ca('0x0')]},'key':{'type':Sequelize[_0x3735ca('0x0')]},'keyType':{'type':Sequelize['ENUM'](_0x3735ca('0x5'),_0x3735ca('0x6'),_0x3735ca('0x2'))},'keyContent':{'type':Sequelize[_0x3735ca('0x0')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x3735ca('0x0')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x3735ca('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index 63b1666..e33b104 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a329_0x3ccc=['limit','params','status','type','key','intersection','findOne','../../mysqldb','map','destroy','body','filter','../../components/parsers/qs','count','json','options','VtigerField','keys','sendStatus','offset','where','Content-Range','end','send','fieldName','include','then','pick','stack','update','catch','../../config/logger','merge','rawAttributes','rows','set','index','undefined','includeAll','show','length','nolimit','fields','query','attributes','VIRTUAL','api','error','name','lodash','model','sort','sequelize','create','filters'];(function(_0x355f9b,_0x3cccec){const _0x22ebb4=function(_0x2a416d){while(--_0x2a416d){_0x355f9b['push'](_0x355f9b['shift']());}};_0x22ebb4(++_0x3cccec);}(a329_0x3ccc,0x133));const a329_0x22eb=function(_0x355f9b,_0x3cccec){_0x355f9b=_0x355f9b-0x0;let _0x22ebb4=a329_0x3ccc[_0x355f9b];return _0x22ebb4;};const _0x267abe=a329_0x22eb;'use strict';const _=require(_0x267abe('0x11')),qs=require(_0x267abe('0x23')),logger=require(_0x267abe('0x36'))(_0x267abe('0xe')),db=require(_0x267abe('0x1e'))['db'],{Op}=require(_0x267abe('0x14'));function respondWithResult(_0x2a416d,_0x268731){return _0x268731=_0x268731||0xc8,function(_0x28b3ea){const _0x33f0d3=a329_0x22eb;if(_0x28b3ea)return _0x2a416d['status'](_0x268731)[_0x33f0d3('0x25')](_0x28b3ea);};}function respondWithFilteredResult(_0x18d0fa,_0x1d4492){return function(_0x20685e){const _0x3e990c=a329_0x22eb;if(_0x20685e){const _0x4a834e=_0x20685e[_0x3e990c('0x24')],_0x7edfa8=_0x1d4492[_0x3e990c('0x2a')];let _0x26b2f2=_0x1d4492[_0x3e990c('0x2a')]+_0x1d4492['limit'],_0xc86a86;return _0x26b2f2>=_0x4a834e?(_0x26b2f2=_0x4a834e,_0xc86a86=0xc8):_0xc86a86=0xce,_0x18d0fa[_0x3e990c('0x19')](_0xc86a86),_0x18d0fa[_0x3e990c('0x3')](_0x3e990c('0x2c'),_0x7edfa8+'-'+_0x26b2f2+'/'+_0x4a834e)[_0x3e990c('0x25')](_0x20685e);}return null;};}function saveUpdates(_0x2aa528){return function(_0x26cf06){if(_0x26cf06)return _0x26cf06['update'](_0x2aa528)['then'](function(_0x49ef43){return _0x49ef43;});return null;};}function removeEntity(_0xd98fa7){return function(_0x1a0103){const _0xdf8c69=a329_0x22eb;if(_0x1a0103)return _0x1a0103[_0xdf8c69('0x20')]()[_0xdf8c69('0x31')](function(){const _0xdcb69c=_0xdf8c69;_0xd98fa7[_0xdcb69c('0x19')](0xcc)[_0xdcb69c('0x2d')]();});};}function handleEntityNotFound(_0x5bf1a4){return function(_0x2f4025){const _0x8e01f1=a329_0x22eb;return!_0x2f4025&&_0x5bf1a4[_0x8e01f1('0x29')](0x194),_0x2f4025;};}function handleError(_0x18fcfa,_0x2dd40c){return _0x2dd40c=_0x2dd40c||0x1f4,function(_0xea0965){const _0x15f406=a329_0x22eb;logger[_0x15f406('0xf')](_0xea0965[_0x15f406('0x33')]),_0xea0965[_0x15f406('0x10')]&&delete _0xea0965['name'],_0x18fcfa['status'](_0x2dd40c)[_0x15f406('0x2e')](_0xea0965);};}exports[_0x267abe('0x4')]=function(_0xfc6df3,_0x2f5d51){const _0x481c9d=_0x267abe;let _0x5d422b={};const _0x1fc4f={},_0x4d3260={'count':0x0,'rows':[]},_0x4e9cd4=_[_0x481c9d('0x1f')](db[_0x481c9d('0x27')][_0x481c9d('0x1')],function(_0x33d924){const _0x1d49a4=_0x481c9d;return{'name':_0x33d924[_0x1d49a4('0x2f')],'type':_0x33d924['type'][_0x1d49a4('0x1b')]};});_0x1fc4f[_0x481c9d('0x12')]=_[_0x481c9d('0x1f')](_0x4e9cd4,_0x481c9d('0x10')),_0x1fc4f[_0x481c9d('0xb')]=_[_0x481c9d('0x28')](_0xfc6df3['query']),_0x1fc4f['filters']=_['intersection'](_0x1fc4f[_0x481c9d('0x12')],_0x1fc4f[_0x481c9d('0xb')]),_0x5d422b['attributes']=_['intersection'](_0x1fc4f[_0x481c9d('0x12')],qs['fields'](_0xfc6df3[_0x481c9d('0xb')][_0x481c9d('0xa')])),_0x5d422b[_0x481c9d('0xc')]=_0x5d422b[_0x481c9d('0xc')][_0x481c9d('0x8')]?_0x5d422b[_0x481c9d('0xc')]:_0x1fc4f['model'];typeof _0xfc6df3[_0x481c9d('0xb')][_0x481c9d('0x9')]===_0x481c9d('0x5')&&(_0x5d422b[_0x481c9d('0x17')]=qs['limit'](_0xfc6df3[_0x481c9d('0xb')][_0x481c9d('0x17')]),_0x5d422b[_0x481c9d('0x2a')]=qs[_0x481c9d('0x2a')](_0xfc6df3[_0x481c9d('0xb')][_0x481c9d('0x2a')]));_0x5d422b['order']=qs[_0x481c9d('0x13')](_0xfc6df3[_0x481c9d('0xb')]['sort']),_0x5d422b['where']=qs['filters'](_[_0x481c9d('0x32')](_0xfc6df3[_0x481c9d('0xb')],_0x1fc4f['filters']),_0x4e9cd4);_0xfc6df3[_0x481c9d('0xb')][_0x481c9d('0x22')]&&(_0x5d422b[_0x481c9d('0x2b')]=_[_0x481c9d('0x0')](_0x5d422b[_0x481c9d('0x2b')],{[Op['or']]:_[_0x481c9d('0x1f')](_0x4e9cd4,function(_0x43cedb){const _0x41e702=_0x481c9d;if(_0x43cedb[_0x41e702('0x1a')]!==_0x41e702('0xd')){const _0xf814e7={};return _0xf814e7[_0x43cedb['name']]={[Op['like']]:'%'+_0xfc6df3[_0x41e702('0xb')]['filter']+'%'},_0xf814e7;}})}));_0x5d422b=_['merge']({},_0x5d422b,_0xfc6df3['options']);const _0x4d9220={'where':_0x5d422b[_0x481c9d('0x2b')]};return db['VtigerField'][_0x481c9d('0x24')](_0x4d9220)['then'](function(_0x15bac4){const _0x2b53a2=_0x481c9d;return _0x4d3260[_0x2b53a2('0x24')]=_0x15bac4,_0xfc6df3[_0x2b53a2('0xb')][_0x2b53a2('0x6')]&&(_0x5d422b[_0x2b53a2('0x30')]=[{'all':!![]}]),db[_0x2b53a2('0x27')]['findAll'](_0x5d422b);})[_0x481c9d('0x31')](function(_0x18201b){const _0x45703e=_0x481c9d;return _0x4d3260[_0x45703e('0x2')]=_0x18201b,_0x4d3260;})[_0x481c9d('0x31')](respondWithFilteredResult(_0x2f5d51,_0x5d422b))['catch'](handleError(_0x2f5d51,null));},exports[_0x267abe('0x7')]=function(_0x2dc024,_0x179172){const _0x35f201=_0x267abe;let _0x344dfe={'raw':!![],'where':{'id':_0x2dc024[_0x35f201('0x18')]['id']}};const _0x4c61e5={};return _0x4c61e5[_0x35f201('0x12')]=_[_0x35f201('0x28')](db[_0x35f201('0x27')][_0x35f201('0x1')]),_0x4c61e5[_0x35f201('0xb')]=_[_0x35f201('0x28')](_0x2dc024[_0x35f201('0xb')]),_0x4c61e5[_0x35f201('0x16')]=_[_0x35f201('0x1c')](_0x4c61e5['model'],_0x4c61e5['query']),_0x344dfe[_0x35f201('0xc')]=_['intersection'](_0x4c61e5[_0x35f201('0x12')],qs[_0x35f201('0xa')](_0x2dc024[_0x35f201('0xb')][_0x35f201('0xa')])),_0x344dfe[_0x35f201('0xc')]=_0x344dfe[_0x35f201('0xc')][_0x35f201('0x8')]?_0x344dfe[_0x35f201('0xc')]:_0x4c61e5[_0x35f201('0x12')],_0x2dc024[_0x35f201('0xb')][_0x35f201('0x6')]&&(_0x344dfe['include']=[{'all':!![]}]),_0x344dfe=_[_0x35f201('0x0')]({},_0x344dfe,_0x2dc024[_0x35f201('0x26')]),db[_0x35f201('0x27')][_0x35f201('0x1d')](_0x344dfe)[_0x35f201('0x31')](handleEntityNotFound(_0x179172,null))[_0x35f201('0x31')](respondWithResult(_0x179172,null))[_0x35f201('0x35')](handleError(_0x179172,null));},exports['create']=function(_0x40bddc,_0x80093d){const _0x2b07c4=_0x267abe;return db[_0x2b07c4('0x27')][_0x2b07c4('0x15')](_0x40bddc[_0x2b07c4('0x21')],{})[_0x2b07c4('0x31')](respondWithResult(_0x80093d,0xc9))[_0x2b07c4('0x35')](handleError(_0x80093d,null));},exports[_0x267abe('0x34')]=function(_0x5b827a,_0x4d5f26){const _0x101f84=_0x267abe;return _0x5b827a['body']['id']&&delete _0x5b827a[_0x101f84('0x21')]['id'],db[_0x101f84('0x27')][_0x101f84('0x1d')]({'where':{'id':_0x5b827a[_0x101f84('0x18')]['id']}})[_0x101f84('0x31')](handleEntityNotFound(_0x4d5f26,null))['then'](saveUpdates(_0x5b827a[_0x101f84('0x21')],null))[_0x101f84('0x31')](respondWithResult(_0x4d5f26,null))[_0x101f84('0x35')](handleError(_0x4d5f26,null));},exports[_0x267abe('0x20')]=function(_0x34cef8,_0x521bfb){const _0x284611=_0x267abe;return db[_0x284611('0x27')]['findOne']({'where':{'id':_0x34cef8['params']['id']}})[_0x284611('0x31')](handleEntityNotFound(_0x521bfb,null))[_0x284611('0x31')](removeEntity(_0x521bfb,null))[_0x284611('0x35')](handleError(_0x521bfb,null));}; \ No newline at end of file +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 diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index dcee1ec..c3712a5 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a330_0x1bf6=['idField','vtiger_unique_index','define','FieldId','int_vtiger_fields','VtigerField'];(function(_0x16ab0f,_0x1bf630){const _0x1fb767=function(_0x3ff67e){while(--_0x3ff67e){_0x16ab0f['push'](_0x16ab0f['shift']());}};_0x1fb767(++_0x1bf630);}(a330_0x1bf6,0xd3));const a330_0x1fb7=function(_0x16ab0f,_0x1bf630){_0x16ab0f=_0x16ab0f-0x0;let _0x1fb767=a330_0x1bf6[_0x16ab0f];return _0x1fb767;};'use strict';const attributes=require('./intVtigerField.attributes');module['exports']=function(_0x3ff67e){const _0x2d73f9=a330_0x1fb7,_0xf00c67=_0x3ff67e[_0x2d73f9('0x1')](_0x2d73f9('0x4'),attributes,{'tableName':_0x2d73f9('0x3'),'paranoid':![],'indexes':[{'name':_0x2d73f9('0x0'),'fields':[_0x2d73f9('0x5'),_0x2d73f9('0x2')],'unique':!![]}],'timestamps':!![]});return _0xf00c67;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index afedf8a..1aa6527 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a331_0xec12=['isAuthenticated','getFields','index','update','post','get','/:id/fields','/:id/configurations','getConfigurations','destroy','./intZendeskAccount.controller','addConfiguration','put','exports','/:id','Router','delete'];(function(_0x2fe1b7,_0xec1201){const _0x1a24d7=function(_0x52b3c3){while(--_0x52b3c3){_0x2fe1b7['push'](_0x2fe1b7['shift']());}};_0x1a24d7(++_0xec1201);}(a331_0xec12,0x1c3));const a331_0x1a24=function(_0x2fe1b7,_0xec1201){_0x2fe1b7=_0x2fe1b7-0x0;let _0x1a24d7=a331_0xec12[_0x2fe1b7];return _0x1a24d7;};const _0x43d506=a331_0x1a24;'use strict';const express=require('express'),router=express[_0x43d506('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x43d506('0x1'));router['get']('/',auth['isAuthenticated'](),controller[_0x43d506('0xa')]),router[_0x43d506('0xd')](_0x43d506('0x5'),auth['isAuthenticated'](),controller['show']),router[_0x43d506('0xd')](_0x43d506('0xf'),auth[_0x43d506('0x8')](),controller[_0x43d506('0x10')]),router[_0x43d506('0xd')](_0x43d506('0xe'),auth[_0x43d506('0x8')](),controller[_0x43d506('0x9')]),router[_0x43d506('0xc')]('/',auth[_0x43d506('0x8')](),controller['create']),router[_0x43d506('0xc')](_0x43d506('0xf'),auth[_0x43d506('0x8')](),controller[_0x43d506('0x2')]),router[_0x43d506('0x3')](_0x43d506('0x5'),auth['isAuthenticated'](),controller[_0x43d506('0xb')]),router[_0x43d506('0x7')](_0x43d506('0x5'),auth[_0x43d506('0x8')](),controller[_0x43d506('0x0')]),module[_0x43d506('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index 926fb1c..8c174d2 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a332_0xc1cd=['newTab','STRING','sequelize','ENUM','exports','username','password','integrationTab'];(function(_0x4a29d5,_0xc1cd69){const _0x170532=function(_0x29e7ec){while(--_0x29e7ec){_0x4a29d5['push'](_0x4a29d5['shift']());}};_0x170532(++_0xc1cd69);}(a332_0xc1cd,0x15a));const a332_0x1705=function(_0x4a29d5,_0xc1cd69){_0x4a29d5=_0x4a29d5-0x0;let _0x170532=a332_0xc1cd[_0x4a29d5];return _0x170532;};const _0x1510ad=a332_0x1705;'use strict';const Sequelize=require(_0x1510ad('0x0'));module[_0x1510ad('0x2')]={'name':{'type':Sequelize[_0x1510ad('0x7')]},'description':{'type':Sequelize[_0x1510ad('0x7')]},'username':{'type':Sequelize[_0x1510ad('0x7')],'unique':_0x1510ad('0x3')},'password':{'type':Sequelize[_0x1510ad('0x7')]},'token':{'type':Sequelize[_0x1510ad('0x7')]},'remoteUri':{'type':Sequelize[_0x1510ad('0x7')],'unique':'remoteUri'},'authType':{'type':Sequelize[_0x1510ad('0x1')]('password','token'),'defaultValue':_0x1510ad('0x4')},'serverUrl':{'type':Sequelize[_0x1510ad('0x7')]},'type':{'type':Sequelize[_0x1510ad('0x1')](_0x1510ad('0x5'),_0x1510ad('0x6')),'defaultValue':_0x1510ad('0x5')}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index 2c920e4..3899cad 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a333_0x8b39=['nolimit','api','end','remove','base64','findOne','includeAll','Basic\x20%s','lodash','ticket_fields','format','model','substring','addConfiguration','then','lastIndexOf','attributes','../../config/logger','sequelize','findAll','toString','token','error','test','intersection','update','ZendeskAccount','stringify','include','subject','set','options','show','index','password','key','keys','undefined','like','length','name','send','limit','merge','channel','catch','Content-Range','where','sendStatus','getConfigurations','pick','authType','%s/token:%s','statusCode','custom_field_options','from','filter','../../components/parsers/qs','type','username','json','fieldName','getFields,\x20%s,\x20%s,\x20%s','rawAttributes','rows','status','params','getFields','destroy','Subjects','position','map','offset','Unknown\x20authentication\x20type','body','assignee','query','sort','util','getDescriptions','filters','create','VIRTUAL','includes','fields','headers','slice'];(function(_0x181e85,_0x8b39fd){const _0x369822=function(_0x1f4a57){while(--_0x1f4a57){_0x181e85['push'](_0x181e85['shift']());}};_0x369822(++_0x8b39fd);}(a333_0x8b39,0x91));const a333_0x3698=function(_0x181e85,_0x8b39fd){_0x181e85=_0x181e85-0x0;let _0x369822=a333_0x8b39[_0x181e85];return _0x369822;};const _0x3521c9=a333_0x3698;'use strict';const rp=require('request-promise-native'),util=require(_0x3521c9('0x14')),_=require(_0x3521c9('0x25')),qs=require(_0x3521c9('0x56')),logger=require(_0x3521c9('0x2e'))(_0x3521c9('0x1e')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x3521c9('0x2f')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x1f4a57,_0x5c5740){return _0x5c5740=_0x5c5740||0xc8,function(_0x2a6e17){const _0x559672=a333_0x3698;if(_0x2a6e17)return _0x1f4a57[_0x559672('0x7')](_0x5c5740)[_0x559672('0x2')](_0x2a6e17);};}function respondWithFilteredResult(_0x5d03a1,_0xdbc4c4){return function(_0x44a1e2){const _0x1ec6e2=a333_0x3698;if(_0x44a1e2){const _0x2888bd=_0x44a1e2['count'],_0xcf9e32=_0xdbc4c4['offset'];let _0x291cba=_0xdbc4c4[_0x1ec6e2('0xe')]+_0xdbc4c4[_0x1ec6e2('0x47')],_0x4b9844;return _0x291cba>=_0x2888bd?(_0x291cba=_0x2888bd,_0x4b9844=0xc8):_0x4b9844=0xce,_0x5d03a1[_0x1ec6e2('0x7')](_0x4b9844),_0x5d03a1[_0x1ec6e2('0x3b')](_0x1ec6e2('0x4b'),_0xcf9e32+'-'+_0x291cba+'/'+_0x2888bd)[_0x1ec6e2('0x2')](_0x44a1e2);}return null;};}function saveUpdates(_0x5c4320){return function(_0x53e1a9){if(_0x53e1a9)return _0x53e1a9['update'](_0x5c4320)['then'](function(_0x21d230){return _0x21d230;});return null;};}function removeEntity(_0x190824){return function(_0x11a795){const _0x2a5b44=a333_0x3698;if(_0x11a795)return _0x11a795['destroy']()[_0x2a5b44('0x2b')](function(){const _0x10d49b=_0x2a5b44;_0x190824[_0x10d49b('0x7')](0xcc)[_0x10d49b('0x1f')]();});};}function handleEntityNotFound(_0x4def9e){return function(_0x5160bc){const _0x2f3a03=a333_0x3698;return!_0x5160bc&&_0x4def9e[_0x2f3a03('0x4d')](0x194),_0x5160bc;};}function handleError(_0x456618,_0x313ac9){return _0x313ac9=_0x313ac9||0x1f4,function(_0x4c03d4){const _0x42298a=a333_0x3698;logger[_0x42298a('0x33')](_0x4c03d4['stack']),_0x4c03d4[_0x42298a('0x45')]&&delete _0x4c03d4[_0x42298a('0x45')],_0x456618[_0x42298a('0x7')](_0x313ac9)[_0x42298a('0x46')](_0x4c03d4);};}exports[_0x3521c9('0x3e')]=function(_0x4b365e,_0xa28260){const _0x45703c=_0x3521c9;let _0x32b5b7={};const _0x281408={},_0x4cfcc0={'count':0x0,'rows':[]},_0x3c9d97=_[_0x45703c('0xd')](db[_0x45703c('0x37')][_0x45703c('0x5')],function(_0x5151da){const _0x3dbc87=_0x45703c;return{'name':_0x5151da[_0x3dbc87('0x3')],'type':_0x5151da[_0x3dbc87('0x0')][_0x3dbc87('0x40')]};});_0x281408[_0x45703c('0x28')]=_[_0x45703c('0xd')](_0x3c9d97,_0x45703c('0x45')),_0x281408[_0x45703c('0x12')]=_[_0x45703c('0x41')](_0x4b365e['query']),_0x281408[_0x45703c('0x16')]=_[_0x45703c('0x35')](_0x281408[_0x45703c('0x28')],_0x281408['query']),_0x32b5b7[_0x45703c('0x2d')]=_['intersection'](_0x281408['model'],qs[_0x45703c('0x1a')](_0x4b365e[_0x45703c('0x12')][_0x45703c('0x1a')])),_0x32b5b7['attributes']=_0x32b5b7[_0x45703c('0x2d')][_0x45703c('0x44')]?_0x32b5b7[_0x45703c('0x2d')]:_0x281408[_0x45703c('0x28')];typeof _0x4b365e[_0x45703c('0x12')]['nolimit']===_0x45703c('0x42')&&(_0x32b5b7['limit']=qs[_0x45703c('0x47')](_0x4b365e[_0x45703c('0x12')][_0x45703c('0x47')]),_0x32b5b7[_0x45703c('0xe')]=qs[_0x45703c('0xe')](_0x4b365e[_0x45703c('0x12')]['offset']));_0x32b5b7['order']=qs['sort'](_0x4b365e[_0x45703c('0x12')][_0x45703c('0x13')]),_0x32b5b7[_0x45703c('0x4c')]=qs['filters'](_[_0x45703c('0x4f')](_0x4b365e[_0x45703c('0x12')],_0x281408['filters']),_0x3c9d97);_0x4b365e['query'][_0x45703c('0x55')]&&(_0x32b5b7['where']=_[_0x45703c('0x48')](_0x32b5b7[_0x45703c('0x4c')],{[Op['or']]:_[_0x45703c('0xd')](_0x3c9d97,function(_0x2920d3){const _0x45f239=_0x45703c;if(_0x2920d3[_0x45f239('0x0')]!==_0x45f239('0x18')){const _0x5f1023={};return _0x5f1023[_0x2920d3['name']]={[Op['like']]:'%'+_0x4b365e[_0x45f239('0x12')]['filter']+'%'},_0x5f1023;}})}));_0x32b5b7=_[_0x45703c('0x48')]({},_0x32b5b7,_0x4b365e[_0x45703c('0x3c')]);const _0x146ecf={'where':_0x32b5b7[_0x45703c('0x4c')]};return db[_0x45703c('0x37')]['count'](_0x146ecf)[_0x45703c('0x2b')](function(_0x426176){const _0x528ce1=_0x45703c;return _0x4cfcc0['count']=_0x426176,_0x4b365e['query'][_0x528ce1('0x23')]&&(_0x32b5b7[_0x528ce1('0x39')]=[{'all':!![]}]),db['ZendeskAccount'][_0x528ce1('0x30')](_0x32b5b7);})[_0x45703c('0x2b')](function(_0x2636fb){const _0x254115=_0x45703c;return _0x4cfcc0[_0x254115('0x6')]=_0x2636fb,_0x4cfcc0;})[_0x45703c('0x2b')](respondWithFilteredResult(_0xa28260,_0x32b5b7))[_0x45703c('0x4a')](handleError(_0xa28260,null));},exports[_0x3521c9('0x3d')]=function(_0x3168c5,_0x5a2c68){const _0x537b9f=_0x3521c9;let _0x4f1eb9={'raw':![],'where':{'id':_0x3168c5['params']['id']}};const _0xca45b7={};return _0xca45b7['model']=_['keys'](db[_0x537b9f('0x37')][_0x537b9f('0x5')]),_0xca45b7[_0x537b9f('0x12')]=_[_0x537b9f('0x41')](_0x3168c5[_0x537b9f('0x12')]),_0xca45b7[_0x537b9f('0x16')]=_[_0x537b9f('0x35')](_0xca45b7['model'],_0xca45b7[_0x537b9f('0x12')]),_0x4f1eb9['attributes']=_['intersection'](_0xca45b7[_0x537b9f('0x28')],qs[_0x537b9f('0x1a')](_0x3168c5['query'][_0x537b9f('0x1a')])),_0x4f1eb9[_0x537b9f('0x2d')]=_0x4f1eb9['attributes'][_0x537b9f('0x44')]?_0x4f1eb9[_0x537b9f('0x2d')]:_0xca45b7[_0x537b9f('0x28')],_0x3168c5[_0x537b9f('0x12')][_0x537b9f('0x23')]&&(_0x4f1eb9[_0x537b9f('0x39')]=[{'all':!![]}]),_0x4f1eb9=_['merge']({},_0x4f1eb9,_0x3168c5[_0x537b9f('0x3c')]),db[_0x537b9f('0x37')][_0x537b9f('0x22')](_0x4f1eb9)['then'](handleEntityNotFound(_0x5a2c68,null))['then'](respondWithResult(_0x5a2c68,null))['catch'](handleError(_0x5a2c68,null));},exports[_0x3521c9('0x17')]=function(_0x1870d3,_0x3fa94a){const _0x2635cc=_0x3521c9;return db[_0x2635cc('0x37')][_0x2635cc('0x17')](_0x1870d3[_0x2635cc('0x10')],{})[_0x2635cc('0x2b')](respondWithResult(_0x3fa94a,0xc9))['catch'](handleError(_0x3fa94a,null));},exports[_0x3521c9('0x36')]=function(_0x4d1f90,_0x3a9591){const _0x26b7d8=_0x3521c9;return _0x4d1f90[_0x26b7d8('0x10')]['id']&&delete _0x4d1f90[_0x26b7d8('0x10')]['id'],db[_0x26b7d8('0x37')]['findOne']({'where':{'id':_0x4d1f90[_0x26b7d8('0x8')]['id']}})[_0x26b7d8('0x2b')](handleEntityNotFound(_0x3a9591,null))[_0x26b7d8('0x2b')](saveUpdates(_0x4d1f90['body'],null))[_0x26b7d8('0x2b')](respondWithResult(_0x3a9591,null))[_0x26b7d8('0x4a')](handleError(_0x3a9591,null));},exports[_0x3521c9('0xa')]=function(_0x194cd6,_0x49f89c){const _0x289856=_0x3521c9;return db[_0x289856('0x37')][_0x289856('0x22')]({'where':{'id':_0x194cd6[_0x289856('0x8')]['id']}})[_0x289856('0x2b')](handleEntityNotFound(_0x49f89c,null))[_0x289856('0x2b')](removeEntity(_0x49f89c,null))[_0x289856('0x4a')](handleError(_0x49f89c,null));},exports[_0x3521c9('0x4e')]=function(_0x161b1a,_0x5625df){const _0x2b1b79=_0x3521c9;let _0x279af7={};const _0x3f35e8={};let _0x211a74,_0x2b0eed;return db[_0x2b1b79('0x37')][_0x2b1b79('0x22')]({'where':{'id':_0x161b1a['params']['id']}})[_0x2b1b79('0x2b')](handleEntityNotFound(_0x5625df,null))[_0x2b1b79('0x2b')](function(_0x5dfaeb){const _0x34f205=_0x2b1b79;if(_0x5dfaeb)return _0x211a74=_0x5dfaeb,_0x3f35e8['model']=_[_0x34f205('0x41')](db['ZendeskConfiguration'][_0x34f205('0x5')]),_0x3f35e8[_0x34f205('0x12')]=_[_0x34f205('0x41')](_0x161b1a['query']),_0x3f35e8[_0x34f205('0x16')]=_[_0x34f205('0x35')](_0x3f35e8[_0x34f205('0x28')],_0x3f35e8[_0x34f205('0x12')]),_0x279af7[_0x34f205('0x2d')]=_[_0x34f205('0x35')](_0x3f35e8[_0x34f205('0x28')],qs[_0x34f205('0x1a')](_0x161b1a[_0x34f205('0x12')][_0x34f205('0x1a')])),_0x279af7[_0x34f205('0x2d')]=_0x279af7[_0x34f205('0x2d')][_0x34f205('0x44')]?_0x279af7['attributes']:_0x3f35e8[_0x34f205('0x28')],_0x279af7['order']=qs[_0x34f205('0x13')](_0x161b1a[_0x34f205('0x12')][_0x34f205('0x13')]),_0x279af7[_0x34f205('0x4c')]=qs[_0x34f205('0x16')](_[_0x34f205('0x4f')](_0x161b1a['query'],_0x3f35e8[_0x34f205('0x16')])),_0x161b1a[_0x34f205('0x12')][_0x34f205('0x55')]&&(_0x279af7['where']=_[_0x34f205('0x48')](_0x279af7[_0x34f205('0x4c')],{[Op['or']]:_['map'](_0x279af7['attributes'],function(_0x11d16a){const _0xb77d32=_0x34f205,_0x2d6f2c={};return _0x2d6f2c[_0x11d16a]={[Op[_0xb77d32('0x43')]]:'%'+_0x161b1a[_0xb77d32('0x12')][_0xb77d32('0x55')]+'%'},_0x2d6f2c;})})),_0x279af7=_[_0x34f205('0x48')]({},_0x279af7,_0x161b1a[_0x34f205('0x3c')]),_0x211a74['getConfigurations'](_0x279af7);})[_0x2b1b79('0x2b')](function(_0x819f2f){const _0x253d02=_0x2b1b79;if(_0x819f2f)return _0x2b0eed=_0x819f2f['length'],typeof _0x161b1a['query'][_0x253d02('0x1d')]===_0x253d02('0x42')&&(_0x279af7[_0x253d02('0x47')]=qs[_0x253d02('0x47')](_0x161b1a[_0x253d02('0x12')][_0x253d02('0x47')]),_0x279af7['offset']=qs[_0x253d02('0xe')](_0x161b1a[_0x253d02('0x12')][_0x253d02('0xe')])),_0x211a74['getConfigurations'](_0x279af7);})[_0x2b1b79('0x2b')](function(_0x52ce8e){if(_0x52ce8e)return _0x52ce8e?{'count':_0x2b0eed,'rows':_0x52ce8e}:null;})[_0x2b1b79('0x2b')](respondWithResult(_0x5625df,null))[_0x2b1b79('0x4a')](handleError(_0x5625df,null));},exports[_0x3521c9('0x2a')]=function(_0x2f4262,_0x2cc2e5){const _0x42a92c=_0x3521c9;return _0x2f4262[_0x42a92c('0x10')]['id']&&delete _0x2f4262[_0x42a92c('0x10')]['id'],db[_0x42a92c('0x37')][_0x42a92c('0x22')]({'where':{'id':_0x2f4262[_0x42a92c('0x8')]['id']}})['then'](handleEntityNotFound(_0x2cc2e5,null))[_0x42a92c('0x2b')](function(_0x1fbaaf){const _0x46f89c=_0x42a92c;if(_0x1fbaaf)return _0x2f4262[_0x46f89c('0x10')]['AccountId']=_0x1fbaaf['id'],_0x2f4262[_0x46f89c('0x10')][_0x46f89c('0xb')]=integrations['getSubjects'](_0x2f4262[_0x46f89c('0x10')][_0x46f89c('0x49')],_0x2f4262['body'][_0x46f89c('0x0')]),_0x2f4262[_0x46f89c('0x10')]['Descriptions']=integrations[_0x46f89c('0x15')](_0x2f4262[_0x46f89c('0x10')][_0x46f89c('0x49')],_0x2f4262[_0x46f89c('0x10')]['type']),db['ZendeskConfiguration'][_0x46f89c('0x17')](_0x2f4262[_0x46f89c('0x10')],{'include':[{'model':db['ZendeskField'],'as':'Subjects'},{'model':db['ZendeskField'],'as':'Descriptions'}]});return null;})[_0x42a92c('0x2b')](respondWithResult(_0x2cc2e5,null))[_0x42a92c('0x4a')](handleError(_0x2cc2e5,null));},exports[_0x3521c9('0x9')]=function(_0x114b5c,_0x470e4b){const _0x54212d=_0x3521c9;let _0x48c0b4='';return db[_0x54212d('0x37')]['findOne']({'where':{'id':_0x114b5c['params']['id']},'attributes':['id','username','password',_0x54212d('0x32'),'authType','remoteUri']})[_0x54212d('0x2b')](handleEntityNotFound(_0x470e4b,null))[_0x54212d('0x2b')](function(_0x18c9a2){const _0x49e2dc=_0x54212d;if(_0x18c9a2){_0x48c0b4=_0x18c9a2['remoteUri'];const _0x29b8fb=_0x48c0b4[_0x49e2dc('0x1c')](-0x1);_0x29b8fb==='/'&&(_0x48c0b4=_0x48c0b4[_0x49e2dc('0x29')](0x0,_0x48c0b4[_0x49e2dc('0x2c')](_0x29b8fb)));const _0x4bf42c={'method':'GET','uri':util[_0x49e2dc('0x27')]('%s/%s',_0x48c0b4,'ticket_fields'),'json':!![]};switch(_0x18c9a2[_0x49e2dc('0x50')]){case'password':_0x4bf42c[_0x49e2dc('0x1b')]={'Authorization':util[_0x49e2dc('0x27')](_0x49e2dc('0x24'),Buffer[_0x49e2dc('0x54')](util[_0x49e2dc('0x27')]('%s:%s',_0x18c9a2[_0x49e2dc('0x1')],_0x18c9a2[_0x49e2dc('0x3f')]))[_0x49e2dc('0x31')](_0x49e2dc('0x21')))};break;case _0x49e2dc('0x32'):_0x4bf42c['headers']={'Authorization':util[_0x49e2dc('0x27')]('Basic\x20%s',Buffer[_0x49e2dc('0x54')](util[_0x49e2dc('0x27')](_0x49e2dc('0x51'),_0x18c9a2['username'],_0x18c9a2[_0x49e2dc('0x32')]))['toString'](_0x49e2dc('0x21')))};break;default:throw new ValidationError(_0x49e2dc('0xf'));}return rp(_0x4bf42c);}})[_0x54212d('0x2b')](function(_0x45025d){const _0x164389=_0x54212d;if(_0x45025d){const _0x4a260e=[_0x164389('0x3a'),'description','group',_0x164389('0x11')];return _[_0x164389('0x20')](_0x45025d['ticket_fields'],function(_0x5e4698){const _0x3d64e4=_0x164389;return _0x4a260e[_0x3d64e4('0x19')](_0x5e4698[_0x3d64e4('0x0')]);}),{'count':_0x45025d[_0x164389('0x26')][_0x164389('0x44')],'rows':_[_0x164389('0xd')](_0x45025d[_0x164389('0x26')],function(_0x294b46){const _0x2b36b1=_0x164389;return{'id':_0x294b46['id'],'name':_0x294b46[_0x2b36b1('0xc')]>0x7?_0x294b46['title']:_0x294b46['type'],'custom':_0x294b46[_0x2b36b1('0xc')]>0x7?!![]:![],'options':_0x294b46['system_field_options']?_0x294b46['system_field_options']:_0x294b46['custom_field_options']?_0x294b46[_0x2b36b1('0x53')]:[]};})};}})[_0x54212d('0x2b')](respondWithResult(_0x470e4b,null))[_0x54212d('0x4a')](function(_0x5cfb1b){const _0x5ef90d=_0x54212d;let _0x211553=_0x114b5c[_0x5ef90d('0x12')][_0x5ef90d('0x34')]?0x1f4:_0x5cfb1b[_0x5ef90d('0x52')]||0x1f4;logger[_0x5ef90d('0x33')](_0x5ef90d('0x4'),'getFields',_0x211553,JSON[_0x5ef90d('0x38')](_0x5cfb1b)),delete _0x5cfb1b[_0x5ef90d('0x45')],_0x211553===0x191&&(_0x211553=0x190),_0x470e4b['status'](_0x211553)[_0x5ef90d('0x46')](_0x114b5c[_0x5ef90d('0x12')][_0x5ef90d('0x34')]?{'message':'Wrong\x20credentials','statusCode':_0x5cfb1b[_0x5ef90d('0x52')]}:_0x5cfb1b);});}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index 50acef1..70a0d1e 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a334_0x186c=['./intZendeskAccount.attributes','exports','define','int_zendesk_accounts','ZendeskAccount'];(function(_0x14255b,_0x186c53){const _0x5d4c05=function(_0x1284f0){while(--_0x1284f0){_0x14255b['push'](_0x14255b['shift']());}};_0x5d4c05(++_0x186c53);}(a334_0x186c,0x16a));const a334_0x5d4c=function(_0x14255b,_0x186c53){_0x14255b=_0x14255b-0x0;let _0x5d4c05=a334_0x186c[_0x14255b];return _0x5d4c05;};const _0x275578=a334_0x5d4c;'use strict';const attributes=require(_0x275578('0x3'));module[_0x275578('0x4')]=function(_0x1284f0){const _0x22cf23=_0x275578,_0x2620a9=_0x1284f0[_0x22cf23('0x0')](_0x22cf23('0x2'),attributes,{'tableName':_0x22cf23('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2620a9;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index 553c281..f10772a 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a335_0x283a=['where','raw','../../config/logger','rpc','map','attributes','findOne','include','then','options','../../mysqldb','ZendeskAccount','findAll','debug','model','info','GetZendeskAccount','ShowZendeskAccount','message','catch','error','stringify'];(function(_0x4af794,_0x283a56){const _0x5e1076=function(_0x537a3c){while(--_0x537a3c){_0x4af794['push'](_0x4af794['shift']());}};_0x5e1076(++_0x283a56);}(a335_0x283a,0x10f));const a335_0x5e10=function(_0x4af794,_0x283a56){_0x4af794=_0x4af794-0x0;let _0x5e1076=a335_0x283a[_0x4af794];return _0x5e1076;};const _0x1f2dfd=a335_0x5e10;'use strict';const _=require('lodash'),db=require(_0x1f2dfd('0x3'))['db'],logger=require(_0x1f2dfd('0x11'))(_0x1f2dfd('0x12'));exports[_0x1f2dfd('0x9')]=function(_0x537a3c){const _0x342ff4=this;return new Promise(function(_0x368098,_0x316488){const _0x41e1cc=a335_0x5e10;return db[_0x41e1cc('0x4')][_0x41e1cc('0x5')]({'raw':_0x537a3c[_0x41e1cc('0x2')]?_0x537a3c[_0x41e1cc('0x2')][_0x41e1cc('0x10')]===undefined?!![]:![]:!![],'where':_0x537a3c[_0x41e1cc('0x2')]?_0x537a3c[_0x41e1cc('0x2')][_0x41e1cc('0xf')]||null:null,'attributes':_0x537a3c[_0x41e1cc('0x2')]?_0x537a3c[_0x41e1cc('0x2')]['attributes']||null:null,'limit':_0x537a3c['options']?_0x537a3c['options']['limit']||null:null,'include':_0x537a3c[_0x41e1cc('0x2')]?_0x537a3c[_0x41e1cc('0x2')]['include']?_['map'](_0x537a3c[_0x41e1cc('0x2')]['include'],function(_0x17faa8){const _0xd74d7d=_0x41e1cc;return{'model':db[_0x17faa8['model']],'as':_0x17faa8['as'],'attributes':_0x17faa8[_0xd74d7d('0x14')],'include':_0x17faa8['include']?_[_0xd74d7d('0x13')](_0x17faa8[_0xd74d7d('0x0')],function(_0x2e7b38){const _0x243ec1=_0xd74d7d;return{'model':db[_0x2e7b38['model']],'as':_0x2e7b38['as'],'attributes':_0x2e7b38[_0x243ec1('0x14')],'include':_0x2e7b38[_0x243ec1('0x0')]?_[_0x243ec1('0x13')](_0x2e7b38['include'],function(_0x3a4c8f){const _0x5cbf92=_0x243ec1;return{'model':db[_0x3a4c8f[_0x5cbf92('0x7')]],'as':_0x3a4c8f['as'],'attributes':_0x3a4c8f[_0x5cbf92('0x14')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x15a5c4){const _0x5a5a6c=_0x41e1cc;logger[_0x5a5a6c('0x8')](_0x5a5a6c('0x9'),_0x537a3c),logger[_0x5a5a6c('0x6')](_0x5a5a6c('0x9'),_0x537a3c,JSON[_0x5a5a6c('0xe')](_0x15a5c4)),_0x368098(_0x15a5c4);})['catch'](function(_0x50a85d){const _0x193042=_0x41e1cc;logger[_0x193042('0xd')](_0x193042('0x9'),_0x50a85d[_0x193042('0xb')],_0x537a3c),_0x316488(_0x342ff4[_0x193042('0xd')](0x1f4,_0x50a85d['message']));});});},exports['ShowZendeskAccount']=function(_0x2ae68c){const _0x799164=this;return new Promise(function(_0x297398,_0x2f34b9){const _0x4aba20=a335_0x5e10;return db[_0x4aba20('0x4')][_0x4aba20('0x15')]({'raw':_0x2ae68c['options']?_0x2ae68c[_0x4aba20('0x2')][_0x4aba20('0x10')]===undefined?!![]:![]:!![],'where':_0x2ae68c[_0x4aba20('0x2')]?_0x2ae68c[_0x4aba20('0x2')][_0x4aba20('0xf')]||null:null,'attributes':_0x2ae68c[_0x4aba20('0x2')]?_0x2ae68c[_0x4aba20('0x2')][_0x4aba20('0x14')]||null:null,'include':_0x2ae68c['options']?_0x2ae68c[_0x4aba20('0x2')][_0x4aba20('0x0')]?_[_0x4aba20('0x13')](_0x2ae68c['options'][_0x4aba20('0x0')],function(_0x588ea8){const _0x43a84e=_0x4aba20;return{'model':db[_0x588ea8['model']],'as':_0x588ea8['as'],'attributes':_0x588ea8['attributes'],'include':_0x588ea8[_0x43a84e('0x0')]?_['map'](_0x588ea8[_0x43a84e('0x0')],function(_0x77b166){const _0x1e3752=_0x43a84e;return{'model':db[_0x77b166[_0x1e3752('0x7')]],'as':_0x77b166['as'],'attributes':_0x77b166[_0x1e3752('0x14')],'include':_0x77b166['include']?_[_0x1e3752('0x13')](_0x77b166[_0x1e3752('0x0')],function(_0x1c6b39){const _0x216283=_0x1e3752;return{'model':db[_0x1c6b39[_0x216283('0x7')]],'as':_0x1c6b39['as'],'attributes':_0x1c6b39['attributes']};}):[]};}):[]};}):[]:[]})[_0x4aba20('0x1')](function(_0x3549b3){const _0x53c22f=_0x4aba20;logger[_0x53c22f('0x8')](_0x53c22f('0xa'),_0x2ae68c),logger['debug'](_0x53c22f('0xa'),_0x2ae68c,JSON[_0x53c22f('0xe')](_0x3549b3)),_0x297398(_0x3549b3);})[_0x4aba20('0xc')](function(_0x26c294){const _0x357ef0=_0x4aba20;logger[_0x357ef0('0xd')](_0x357ef0('0xa'),_0x26c294['message'],_0x2ae68c),_0x2f34b9(_0x799164[_0x357ef0('0xd')](0x1f4,_0x26c294[_0x357ef0('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index 3fc7dad..c6d54fa 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a336_0x2b8f=['post','Router','express','update','exports','/:id/tags','isAuthenticated','setTags','getTags','delete','put','get','/:id/descriptions','getDescriptions','/:id/fields','destroy','/:id/subjects','/:id','getFields'];(function(_0x12a0bb,_0x2b8fa6){const _0x1bf38d=function(_0x399690){while(--_0x399690){_0x12a0bb['push'](_0x12a0bb['shift']());}};_0x1bf38d(++_0x2b8fa6);}(a336_0x2b8f,0xb5));const a336_0x1bf3=function(_0x12a0bb,_0x2b8fa6){_0x12a0bb=_0x12a0bb-0x0;let _0x1bf38d=a336_0x2b8f[_0x12a0bb];return _0x1bf38d;};const _0x5d9edb=a336_0x1bf3;'use strict';const express=require(_0x5d9edb('0xb')),router=express[_0x5d9edb('0xa')](),auth=require('../../components/auth/service'),controller=require('./intZendeskConfiguration.controller');router['get']('/',auth[_0x5d9edb('0xf')](),controller['index']),router['get']('/:id',auth[_0x5d9edb('0xf')](),controller['show']),router[_0x5d9edb('0x1')](_0x5d9edb('0x4'),auth[_0x5d9edb('0xf')](),controller[_0x5d9edb('0x8')]),router[_0x5d9edb('0x1')](_0x5d9edb('0x6'),auth[_0x5d9edb('0xf')](),controller['getSubjects']),router['get'](_0x5d9edb('0x2'),auth[_0x5d9edb('0xf')](),controller[_0x5d9edb('0x3')]),router['get']('/:id/tags',auth[_0x5d9edb('0xf')](),controller[_0x5d9edb('0x11')]),router[_0x5d9edb('0x9')]('/',auth[_0x5d9edb('0xf')](),controller['create']),router[_0x5d9edb('0x9')](_0x5d9edb('0xe'),auth['isAuthenticated'](),controller[_0x5d9edb('0x10')]),router[_0x5d9edb('0x0')](_0x5d9edb('0x7'),auth[_0x5d9edb('0xf')](),controller[_0x5d9edb('0xc')]),router[_0x5d9edb('0x12')](_0x5d9edb('0x7'),auth[_0x5d9edb('0xf')](),controller[_0x5d9edb('0x5')]),module[_0x5d9edb('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index 39a109b..f53d025 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a337_0x4567=['sequelize','STRING','exports'];(function(_0x5aa694,_0x456761){const _0x304690=function(_0x45088b){while(--_0x45088b){_0x5aa694['push'](_0x5aa694['shift']());}};_0x304690(++_0x456761);}(a337_0x4567,0x186));const a337_0x3046=function(_0x5aa694,_0x456761){_0x5aa694=_0x5aa694-0x0;let _0x304690=a337_0x4567[_0x5aa694];return _0x304690;};const _0x214d3b=a337_0x3046;'use strict';const Sequelize=require(_0x214d3b('0x0'));module[_0x214d3b('0x2')]={'name':{'type':Sequelize[_0x214d3b('0x1')]},'description':{'type':Sequelize[_0x214d3b('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index e3668cf..0ac1c00 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a338_0x33aa=['../../mysqldb','setTags','getDescriptions','undefined','name','findAll','merge','end','stack','update','Tag','then','filters','include','limit','query','create','body','sequelize','like','intersection','nolimit','model','send','VIRTUAL','fieldName','set','destroy','findOne','includeAll','order','sort','where','rows','params','ZendeskConfiguration','sendStatus','type','count','map','index','getTags','options','filter','rawAttributes','pick','catch','status','offset','getFields','key','getSubjects','lodash','ZendeskField','api','fields','error','json','length','attributes','keys'];(function(_0x3ce9d7,_0x33aa0f){const _0x599812=function(_0x35bb9c){while(--_0x35bb9c){_0x3ce9d7['push'](_0x3ce9d7['shift']());}};_0x599812(++_0x33aa0f);}(a338_0x33aa,0x1af));const a338_0x5998=function(_0x3ce9d7,_0x33aa0f){_0x3ce9d7=_0x3ce9d7-0x0;let _0x599812=a338_0x33aa[_0x3ce9d7];return _0x599812;};const _0x1c5062=a338_0x5998;'use strict';const _=require(_0x1c5062('0x30')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1c5062('0x32')),db=require(_0x1c5062('0x39'))['db'],{Op}=require(_0x1c5062('0xe'));function respondWithResult(_0x35bb9c,_0x26294b){return _0x26294b=_0x26294b||0xc8,function(_0xe06a86){const _0x39bd74=a338_0x5998;if(_0xe06a86)return _0x35bb9c['status'](_0x26294b)[_0x39bd74('0x35')](_0xe06a86);};}function respondWithFilteredResult(_0x13fd6b,_0x3d2951){return function(_0x45cfb0){const _0x2a3961=a338_0x5998;if(_0x45cfb0){const _0x229642=_0x45cfb0[_0x2a3961('0x22')],_0x395a57=_0x3d2951['offset'];let _0x5266db=_0x3d2951[_0x2a3961('0x2c')]+_0x3d2951['limit'],_0x3b6136;return _0x5266db>=_0x229642?(_0x5266db=_0x229642,_0x3b6136=0xc8):_0x3b6136=0xce,_0x13fd6b['status'](_0x3b6136),_0x13fd6b[_0x2a3961('0x16')]('Content-Range',_0x395a57+'-'+_0x5266db+'/'+_0x229642)[_0x2a3961('0x35')](_0x45cfb0);}return null;};}function saveUpdates(_0x4d8ae7){return function(_0x1e9253){const _0x2934e9=a338_0x5998;if(_0x1e9253)return _0x1e9253[_0x2934e9('0x5')](_0x4d8ae7)['then'](function(_0xf27726){return _0xf27726;});return null;};}function removeEntity(_0x4b39e1){return function(_0x343363){const _0x1cb36d=a338_0x5998;if(_0x343363)return _0x343363[_0x1cb36d('0x17')]()[_0x1cb36d('0x7')](function(){const _0x5e8aea=_0x1cb36d;_0x4b39e1['status'](0xcc)[_0x5e8aea('0x3')]();});};}function handleEntityNotFound(_0x1406e4){return function(_0x3c643b){const _0x50614b=a338_0x5998;return!_0x3c643b&&_0x1406e4[_0x50614b('0x20')](0x194),_0x3c643b;};}function handleError(_0x28a533,_0x53f763){return _0x53f763=_0x53f763||0x1f4,function(_0x2eff18){const _0x1de6a8=a338_0x5998;logger[_0x1de6a8('0x34')](_0x2eff18[_0x1de6a8('0x4')]),_0x2eff18[_0x1de6a8('0x0')]&&delete _0x2eff18[_0x1de6a8('0x0')],_0x28a533[_0x1de6a8('0x2b')](_0x53f763)[_0x1de6a8('0x13')](_0x2eff18);};}exports[_0x1c5062('0x24')]=function(_0x6032bb,_0xf9efcd){const _0x3d60b8=_0x1c5062;let _0x4e8d45={};const _0x499260={},_0x383d7d={'count':0x0,'rows':[]},_0x46054d=_[_0x3d60b8('0x23')](db[_0x3d60b8('0x1f')][_0x3d60b8('0x28')],function(_0x3549e0){const _0xd1cee5=_0x3d60b8;return{'name':_0x3549e0[_0xd1cee5('0x15')],'type':_0x3549e0[_0xd1cee5('0x21')][_0xd1cee5('0x2e')]};});_0x499260['model']=_[_0x3d60b8('0x23')](_0x46054d,_0x3d60b8('0x0')),_0x499260['query']=_[_0x3d60b8('0x38')](_0x6032bb['query']),_0x499260['filters']=_[_0x3d60b8('0x10')](_0x499260['model'],_0x499260[_0x3d60b8('0xb')]),_0x4e8d45[_0x3d60b8('0x37')]=_[_0x3d60b8('0x10')](_0x499260[_0x3d60b8('0x12')],qs[_0x3d60b8('0x33')](_0x6032bb[_0x3d60b8('0xb')]['fields'])),_0x4e8d45['attributes']=_0x4e8d45[_0x3d60b8('0x37')][_0x3d60b8('0x36')]?_0x4e8d45[_0x3d60b8('0x37')]:_0x499260[_0x3d60b8('0x12')];typeof _0x6032bb[_0x3d60b8('0xb')][_0x3d60b8('0x11')]===_0x3d60b8('0x3c')&&(_0x4e8d45[_0x3d60b8('0xa')]=qs[_0x3d60b8('0xa')](_0x6032bb[_0x3d60b8('0xb')][_0x3d60b8('0xa')]),_0x4e8d45[_0x3d60b8('0x2c')]=qs[_0x3d60b8('0x2c')](_0x6032bb[_0x3d60b8('0xb')][_0x3d60b8('0x2c')]));_0x4e8d45[_0x3d60b8('0x1a')]=qs['sort'](_0x6032bb[_0x3d60b8('0xb')]['sort']),_0x4e8d45[_0x3d60b8('0x1c')]=qs[_0x3d60b8('0x8')](_[_0x3d60b8('0x29')](_0x6032bb['query'],_0x499260[_0x3d60b8('0x8')]),_0x46054d);_0x6032bb[_0x3d60b8('0xb')][_0x3d60b8('0x27')]&&(_0x4e8d45[_0x3d60b8('0x1c')]=_[_0x3d60b8('0x2')](_0x4e8d45[_0x3d60b8('0x1c')],{[Op['or']]:_[_0x3d60b8('0x23')](_0x46054d,function(_0x588ffe){const _0x53d74f=_0x3d60b8;if(_0x588ffe[_0x53d74f('0x21')]!==_0x53d74f('0x14')){const _0x2646e9={};return _0x2646e9[_0x588ffe[_0x53d74f('0x0')]]={[Op[_0x53d74f('0xf')]]:'%'+_0x6032bb[_0x53d74f('0xb')][_0x53d74f('0x27')]+'%'},_0x2646e9;}})}));_0x4e8d45=_[_0x3d60b8('0x2')]({},_0x4e8d45,_0x6032bb[_0x3d60b8('0x26')]);const _0x3b1a9a={'where':_0x4e8d45[_0x3d60b8('0x1c')]};return db['ZendeskConfiguration'][_0x3d60b8('0x22')](_0x3b1a9a)['then'](function(_0x5b6a09){const _0x3bb2b8=_0x3d60b8;return _0x383d7d[_0x3bb2b8('0x22')]=_0x5b6a09,_0x6032bb['query']['includeAll']&&(_0x4e8d45[_0x3bb2b8('0x9')]=[{'all':!![]}]),db[_0x3bb2b8('0x1f')][_0x3bb2b8('0x1')](_0x4e8d45);})[_0x3d60b8('0x7')](function(_0x3442c7){const _0x2f14b7=_0x3d60b8;return _0x383d7d[_0x2f14b7('0x1d')]=_0x3442c7,_0x383d7d;})['then'](respondWithFilteredResult(_0xf9efcd,_0x4e8d45))[_0x3d60b8('0x2a')](handleError(_0xf9efcd,null));},exports['show']=function(_0x29fbf6,_0x3e4956){const _0x29274b=_0x1c5062;let _0x47c054={'raw':![],'where':{'id':_0x29fbf6[_0x29274b('0x1e')]['id']}};const _0x42094c={};return _0x42094c['model']=_[_0x29274b('0x38')](db[_0x29274b('0x1f')][_0x29274b('0x28')]),_0x42094c[_0x29274b('0xb')]=_[_0x29274b('0x38')](_0x29fbf6['query']),_0x42094c[_0x29274b('0x8')]=_[_0x29274b('0x10')](_0x42094c[_0x29274b('0x12')],_0x42094c[_0x29274b('0xb')]),_0x47c054[_0x29274b('0x37')]=_['intersection'](_0x42094c[_0x29274b('0x12')],qs[_0x29274b('0x33')](_0x29fbf6['query']['fields'])),_0x47c054[_0x29274b('0x37')]=_0x47c054[_0x29274b('0x37')][_0x29274b('0x36')]?_0x47c054[_0x29274b('0x37')]:_0x42094c[_0x29274b('0x12')],_0x29fbf6[_0x29274b('0xb')][_0x29274b('0x19')]&&(_0x47c054['include']=[{'all':!![]}]),_0x47c054=_[_0x29274b('0x2')]({},_0x47c054,_0x29fbf6[_0x29274b('0x26')]),db[_0x29274b('0x1f')][_0x29274b('0x18')](_0x47c054)[_0x29274b('0x7')](handleEntityNotFound(_0x3e4956,null))[_0x29274b('0x7')](respondWithResult(_0x3e4956,null))[_0x29274b('0x2a')](handleError(_0x3e4956,null));},exports[_0x1c5062('0xc')]=function(_0x17d366,_0x554031){const _0x10af37=_0x1c5062;return db['ZendeskConfiguration'][_0x10af37('0xc')](_0x17d366[_0x10af37('0xd')],{})[_0x10af37('0x7')](respondWithResult(_0x554031,0xc9))['catch'](handleError(_0x554031,null));},exports[_0x1c5062('0x5')]=function(_0xf51997,_0x3aeae2){const _0x4a907e=_0x1c5062;return _0xf51997[_0x4a907e('0xd')]['id']&&delete _0xf51997[_0x4a907e('0xd')]['id'],db[_0x4a907e('0x1f')]['findOne']({'where':{'id':_0xf51997['params']['id']}})['then'](handleEntityNotFound(_0x3aeae2,null))['then'](saveUpdates(_0xf51997[_0x4a907e('0xd')],null))[_0x4a907e('0x7')](respondWithResult(_0x3aeae2,null))[_0x4a907e('0x2a')](handleError(_0x3aeae2,null));},exports[_0x1c5062('0x17')]=function(_0x51d69e,_0x4b95c4){const _0x447681=_0x1c5062;return db[_0x447681('0x1f')][_0x447681('0x18')]({'where':{'id':_0x51d69e[_0x447681('0x1e')]['id']}})[_0x447681('0x7')](handleEntityNotFound(_0x4b95c4,null))['then'](removeEntity(_0x4b95c4,null))[_0x447681('0x2a')](handleError(_0x4b95c4,null));},exports[_0x1c5062('0x2d')]=function(_0x476385,_0x1fadb5){const _0x285365=_0x1c5062;let _0x17b8cf={};const _0x45fdbe={};let _0x1a17bc,_0x40506a;return db[_0x285365('0x1f')][_0x285365('0x18')]({'where':{'id':_0x476385['params']['id']}})[_0x285365('0x7')](handleEntityNotFound(_0x1fadb5,null))[_0x285365('0x7')](function(_0x3766ef){const _0x35c4f4=_0x285365;if(_0x3766ef)return _0x1a17bc=_0x3766ef,_0x45fdbe['model']=_['keys'](db['ZendeskField'][_0x35c4f4('0x28')]),_0x45fdbe[_0x35c4f4('0xb')]=_[_0x35c4f4('0x38')](_0x476385[_0x35c4f4('0xb')]),_0x45fdbe['filters']=_[_0x35c4f4('0x10')](_0x45fdbe[_0x35c4f4('0x12')],_0x45fdbe['query']),_0x17b8cf[_0x35c4f4('0x37')]=_[_0x35c4f4('0x10')](_0x45fdbe[_0x35c4f4('0x12')],qs['fields'](_0x476385['query'][_0x35c4f4('0x33')])),_0x17b8cf[_0x35c4f4('0x37')]=_0x17b8cf[_0x35c4f4('0x37')][_0x35c4f4('0x36')]?_0x17b8cf['attributes']:_0x45fdbe[_0x35c4f4('0x12')],_0x17b8cf[_0x35c4f4('0x1a')]=qs['sort'](_0x476385[_0x35c4f4('0xb')]['sort']),_0x17b8cf[_0x35c4f4('0x1c')]=qs[_0x35c4f4('0x8')](_['pick'](_0x476385['query'],_0x45fdbe[_0x35c4f4('0x8')])),_0x476385[_0x35c4f4('0xb')][_0x35c4f4('0x27')]&&(_0x17b8cf[_0x35c4f4('0x1c')]=_[_0x35c4f4('0x2')](_0x17b8cf['where'],{[Op['or']]:_[_0x35c4f4('0x23')](_0x17b8cf['attributes'],function(_0x6330be){const _0x211370=_0x35c4f4,_0x204079={};return _0x204079[_0x6330be]={[Op[_0x211370('0xf')]]:'%'+_0x476385['query'][_0x211370('0x27')]+'%'},_0x204079;})})),_0x17b8cf=_[_0x35c4f4('0x2')]({},_0x17b8cf,_0x476385[_0x35c4f4('0x26')]),_0x1a17bc['getFields'](_0x17b8cf);})[_0x285365('0x7')](function(_0x5332a7){const _0x4e2378=_0x285365;if(_0x5332a7)return _0x40506a=_0x5332a7[_0x4e2378('0x36')],typeof _0x476385[_0x4e2378('0xb')][_0x4e2378('0x11')]==='undefined'&&(_0x17b8cf[_0x4e2378('0xa')]=qs['limit'](_0x476385[_0x4e2378('0xb')][_0x4e2378('0xa')]),_0x17b8cf['offset']=qs[_0x4e2378('0x2c')](_0x476385[_0x4e2378('0xb')][_0x4e2378('0x2c')])),_0x1a17bc[_0x4e2378('0x2d')](_0x17b8cf);})[_0x285365('0x7')](function(_0x427c63){if(_0x427c63)return _0x427c63?{'count':_0x40506a,'rows':_0x427c63}:null;})[_0x285365('0x7')](respondWithResult(_0x1fadb5,null))[_0x285365('0x2a')](handleError(_0x1fadb5,null));},exports[_0x1c5062('0x2f')]=function(_0xfeab8c,_0x47bd43){const _0x45416a=_0x1c5062;let _0x251d77={};const _0xd2d0b0={};let _0x2e9f71,_0x23e345;return db[_0x45416a('0x1f')][_0x45416a('0x18')]({'where':{'id':_0xfeab8c['params']['id']}})[_0x45416a('0x7')](handleEntityNotFound(_0x47bd43,null))[_0x45416a('0x7')](function(_0xe89117){const _0x56a8d0=_0x45416a;if(_0xe89117)return _0x2e9f71=_0xe89117,_0xd2d0b0[_0x56a8d0('0x12')]=_['keys'](db[_0x56a8d0('0x31')]['rawAttributes']),_0xd2d0b0[_0x56a8d0('0xb')]=_[_0x56a8d0('0x38')](_0xfeab8c[_0x56a8d0('0xb')]),_0xd2d0b0[_0x56a8d0('0x8')]=_[_0x56a8d0('0x10')](_0xd2d0b0['model'],_0xd2d0b0[_0x56a8d0('0xb')]),_0x251d77['attributes']=_[_0x56a8d0('0x10')](_0xd2d0b0[_0x56a8d0('0x12')],qs[_0x56a8d0('0x33')](_0xfeab8c[_0x56a8d0('0xb')][_0x56a8d0('0x33')])),_0x251d77[_0x56a8d0('0x37')]=_0x251d77[_0x56a8d0('0x37')][_0x56a8d0('0x36')]?_0x251d77['attributes']:_0xd2d0b0['model'],_0x251d77[_0x56a8d0('0x1a')]=qs['sort'](_0xfeab8c[_0x56a8d0('0xb')][_0x56a8d0('0x1b')]),_0x251d77['where']=qs[_0x56a8d0('0x8')](_['pick'](_0xfeab8c[_0x56a8d0('0xb')],_0xd2d0b0[_0x56a8d0('0x8')])),_0xfeab8c[_0x56a8d0('0xb')][_0x56a8d0('0x27')]&&(_0x251d77[_0x56a8d0('0x1c')]=_[_0x56a8d0('0x2')](_0x251d77[_0x56a8d0('0x1c')],{[Op['or']]:_['map'](_0x251d77[_0x56a8d0('0x37')],function(_0xac8ccd){const _0x2b25bd=_0x56a8d0,_0x169568={};return _0x169568[_0xac8ccd]={[Op[_0x2b25bd('0xf')]]:'%'+_0xfeab8c[_0x2b25bd('0xb')][_0x2b25bd('0x27')]+'%'},_0x169568;})})),_0x251d77=_[_0x56a8d0('0x2')]({},_0x251d77,_0xfeab8c[_0x56a8d0('0x26')]),_0x2e9f71[_0x56a8d0('0x2f')](_0x251d77);})[_0x45416a('0x7')](function(_0x1cec40){const _0x56f5e9=_0x45416a;if(_0x1cec40)return _0x23e345=_0x1cec40[_0x56f5e9('0x36')],typeof _0xfeab8c[_0x56f5e9('0xb')]['nolimit']===_0x56f5e9('0x3c')&&(_0x251d77[_0x56f5e9('0xa')]=qs[_0x56f5e9('0xa')](_0xfeab8c['query'][_0x56f5e9('0xa')]),_0x251d77[_0x56f5e9('0x2c')]=qs['offset'](_0xfeab8c[_0x56f5e9('0xb')][_0x56f5e9('0x2c')])),_0x2e9f71['getSubjects'](_0x251d77);})[_0x45416a('0x7')](function(_0xf49a6c){if(_0xf49a6c)return _0xf49a6c?{'count':_0x23e345,'rows':_0xf49a6c}:null;})['then'](respondWithResult(_0x47bd43,null))[_0x45416a('0x2a')](handleError(_0x47bd43,null));},exports[_0x1c5062('0x3b')]=function(_0x26ce05,_0x58249c){const _0x360f9c=_0x1c5062;let _0x2f29a1={};const _0x596410={};let _0x1919c5,_0x2796d8;return db[_0x360f9c('0x1f')]['findOne']({'where':{'id':_0x26ce05['params']['id']}})[_0x360f9c('0x7')](handleEntityNotFound(_0x58249c,null))[_0x360f9c('0x7')](function(_0x233f05){const _0x369be3=_0x360f9c;if(_0x233f05)return _0x1919c5=_0x233f05,_0x596410[_0x369be3('0x12')]=_[_0x369be3('0x38')](db[_0x369be3('0x31')][_0x369be3('0x28')]),_0x596410[_0x369be3('0xb')]=_[_0x369be3('0x38')](_0x26ce05[_0x369be3('0xb')]),_0x596410[_0x369be3('0x8')]=_[_0x369be3('0x10')](_0x596410['model'],_0x596410['query']),_0x2f29a1[_0x369be3('0x37')]=_[_0x369be3('0x10')](_0x596410[_0x369be3('0x12')],qs[_0x369be3('0x33')](_0x26ce05['query'][_0x369be3('0x33')])),_0x2f29a1[_0x369be3('0x37')]=_0x2f29a1[_0x369be3('0x37')][_0x369be3('0x36')]?_0x2f29a1[_0x369be3('0x37')]:_0x596410[_0x369be3('0x12')],_0x2f29a1[_0x369be3('0x1a')]=qs[_0x369be3('0x1b')](_0x26ce05[_0x369be3('0xb')]['sort']),_0x2f29a1[_0x369be3('0x1c')]=qs[_0x369be3('0x8')](_['pick'](_0x26ce05[_0x369be3('0xb')],_0x596410['filters'])),_0x26ce05['query'][_0x369be3('0x27')]&&(_0x2f29a1[_0x369be3('0x1c')]=_[_0x369be3('0x2')](_0x2f29a1[_0x369be3('0x1c')],{[Op['or']]:_[_0x369be3('0x23')](_0x2f29a1[_0x369be3('0x37')],function(_0x3c1ba9){const _0xddab7f=_0x369be3,_0x13ca7f={};return _0x13ca7f[_0x3c1ba9]={[Op[_0xddab7f('0xf')]]:'%'+_0x26ce05[_0xddab7f('0xb')]['filter']+'%'},_0x13ca7f;})})),_0x2f29a1=_[_0x369be3('0x2')]({},_0x2f29a1,_0x26ce05[_0x369be3('0x26')]),_0x1919c5['getDescriptions'](_0x2f29a1);})[_0x360f9c('0x7')](function(_0x4c1588){const _0x4536ad=_0x360f9c;if(_0x4c1588)return _0x2796d8=_0x4c1588[_0x4536ad('0x36')],typeof _0x26ce05[_0x4536ad('0xb')][_0x4536ad('0x11')]===_0x4536ad('0x3c')&&(_0x2f29a1['limit']=qs[_0x4536ad('0xa')](_0x26ce05['query'][_0x4536ad('0xa')]),_0x2f29a1['offset']=qs[_0x4536ad('0x2c')](_0x26ce05[_0x4536ad('0xb')]['offset'])),_0x1919c5[_0x4536ad('0x3b')](_0x2f29a1);})['then'](function(_0x21bff7){if(_0x21bff7)return _0x21bff7?{'count':_0x2796d8,'rows':_0x21bff7}:null;})[_0x360f9c('0x7')](respondWithResult(_0x58249c,null))['catch'](handleError(_0x58249c,null));},exports[_0x1c5062('0x25')]=function(_0x51b76c,_0x11f6b8){const _0xbddb44=_0x1c5062;let _0x63d779={};const _0x2fed04={};let _0x51dfee,_0x144b58;return db[_0xbddb44('0x1f')]['findOne']({'where':{'id':_0x51b76c[_0xbddb44('0x1e')]['id']}})[_0xbddb44('0x7')](handleEntityNotFound(_0x11f6b8,null))[_0xbddb44('0x7')](function(_0x5dc3f9){const _0x2e741f=_0xbddb44;if(_0x5dc3f9)return _0x51dfee=_0x5dc3f9,_0x2fed04[_0x2e741f('0x12')]=_['keys'](db[_0x2e741f('0x6')][_0x2e741f('0x28')]),_0x2fed04[_0x2e741f('0xb')]=_[_0x2e741f('0x38')](_0x51b76c[_0x2e741f('0xb')]),_0x2fed04[_0x2e741f('0x8')]=_[_0x2e741f('0x10')](_0x2fed04['model'],_0x2fed04['query']),_0x63d779[_0x2e741f('0x37')]=_[_0x2e741f('0x10')](_0x2fed04[_0x2e741f('0x12')],qs[_0x2e741f('0x33')](_0x51b76c[_0x2e741f('0xb')][_0x2e741f('0x33')])),_0x63d779[_0x2e741f('0x37')]=_0x63d779[_0x2e741f('0x37')][_0x2e741f('0x36')]?_0x63d779[_0x2e741f('0x37')]:_0x2fed04['model'],_0x63d779[_0x2e741f('0x1a')]=qs[_0x2e741f('0x1b')](_0x51b76c['query'][_0x2e741f('0x1b')]),_0x63d779[_0x2e741f('0x1c')]=qs[_0x2e741f('0x8')](_[_0x2e741f('0x29')](_0x51b76c[_0x2e741f('0xb')],_0x2fed04[_0x2e741f('0x8')])),_0x51b76c[_0x2e741f('0xb')][_0x2e741f('0x27')]&&(_0x63d779['where']=_[_0x2e741f('0x2')](_0x63d779[_0x2e741f('0x1c')],{[Op['or']]:_[_0x2e741f('0x23')](_0x63d779['attributes'],function(_0x1bc7d4){const _0x294dac=_0x2e741f,_0x5837ad={};return _0x5837ad[_0x1bc7d4]={[Op[_0x294dac('0xf')]]:'%'+_0x51b76c[_0x294dac('0xb')][_0x294dac('0x27')]+'%'},_0x5837ad;})})),_0x63d779=_[_0x2e741f('0x2')]({},_0x63d779,_0x51b76c['options']),_0x51dfee[_0x2e741f('0x25')](_0x63d779);})[_0xbddb44('0x7')](function(_0x4b6a23){const _0x8e9cfe=_0xbddb44;if(_0x4b6a23)return _0x144b58=_0x4b6a23['length'],typeof _0x51b76c[_0x8e9cfe('0xb')]['nolimit']===_0x8e9cfe('0x3c')&&(_0x63d779['limit']=qs['limit'](_0x51b76c['query'][_0x8e9cfe('0xa')]),_0x63d779[_0x8e9cfe('0x2c')]=qs[_0x8e9cfe('0x2c')](_0x51b76c['query'][_0x8e9cfe('0x2c')])),_0x51dfee[_0x8e9cfe('0x25')](_0x63d779);})[_0xbddb44('0x7')](function(_0x2e4788){if(_0x2e4788)return _0x2e4788?{'count':_0x144b58,'rows':_0x2e4788}:null;})[_0xbddb44('0x7')](respondWithResult(_0x11f6b8,null))[_0xbddb44('0x2a')](handleError(_0x11f6b8,null));},exports[_0x1c5062('0x3a')]=function(_0x170a7f,_0x227254){const _0x4577e2=_0x1c5062;return _0x170a7f[_0x4577e2('0xd')]['id']&&delete _0x170a7f[_0x4577e2('0xd')]['id'],db[_0x4577e2('0x1f')]['findOne']({'where':{'id':_0x170a7f[_0x4577e2('0x1e')]['id']}})[_0x4577e2('0x7')](handleEntityNotFound(_0x227254,null))['then'](function(_0x478b60){const _0x6c9446=_0x4577e2;if(_0x478b60)return _0x478b60[_0x6c9446('0x3a')](_0x170a7f[_0x6c9446('0xd')]['ids']||[]);return null;})[_0x4577e2('0x7')](respondWithResult(_0x227254,null))[_0x4577e2('0x2a')](handleError(_0x227254,null));}; \ No newline at end of file +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 diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index 569a022..b32ea60 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a339_0x3130=['./intZendeskConfiguration.attributes','exports','ZendeskConfiguration','define','int_zendesk_configurations'];(function(_0x19117b,_0x3130bf){const _0x3b43de=function(_0x3c2636){while(--_0x3c2636){_0x19117b['push'](_0x19117b['shift']());}};_0x3b43de(++_0x3130bf);}(a339_0x3130,0x9c));const a339_0x3b43=function(_0x19117b,_0x3130bf){_0x19117b=_0x19117b-0x0;let _0x3b43de=a339_0x3130[_0x19117b];return _0x3b43de;};const _0x5a7251=a339_0x3b43;'use strict';const attributes=require(_0x5a7251('0x4'));module[_0x5a7251('0x0')]=function(_0x3c2636){const _0x51b580=_0x5a7251,_0x46b8=_0x3c2636[_0x51b580('0x2')](_0x51b580('0x1'),attributes,{'tableName':_0x51b580('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x46b8;}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index c840952..731db88 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a340_0x223a=['show','/:id','post','delete','exports','Router','create','index','update','express','../../components/auth/service','put','./intZendeskField.controller','isAuthenticated','get'];(function(_0x1e1401,_0x223a3d){const _0x36ed61=function(_0x31983e){while(--_0x31983e){_0x1e1401['push'](_0x1e1401['shift']());}};_0x36ed61(++_0x223a3d);}(a340_0x223a,0x1a9));const a340_0x36ed=function(_0x1e1401,_0x223a3d){_0x1e1401=_0x1e1401-0x0;let _0x36ed61=a340_0x223a[_0x1e1401];return _0x36ed61;};const _0x4fd86b=a340_0x36ed;'use strict';const express=require(_0x4fd86b('0x4')),router=express[_0x4fd86b('0x0')](),auth=require(_0x4fd86b('0x5')),controller=require(_0x4fd86b('0x7'));router[_0x4fd86b('0x9')]('/',auth['isAuthenticated'](),controller[_0x4fd86b('0x2')]),router[_0x4fd86b('0x9')](_0x4fd86b('0xb'),auth['isAuthenticated'](),controller[_0x4fd86b('0xa')]),router[_0x4fd86b('0xc')]('/',auth[_0x4fd86b('0x8')](),controller[_0x4fd86b('0x1')]),router[_0x4fd86b('0x6')](_0x4fd86b('0xb'),auth['isAuthenticated'](),controller[_0x4fd86b('0x3')]),router[_0x4fd86b('0xd')]('/:id',auth[_0x4fd86b('0x8')](),controller['destroy']),module[_0x4fd86b('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index e8e34d4..f0c5606 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a341_0x5a8e=['STRING','string','exports','variable','sequelize','BOOLEAN','customVariable','ENUM'];(function(_0x3bfa60,_0x5a8ef4){const _0x2ee769=function(_0x5a1ba9){while(--_0x5a1ba9){_0x3bfa60['push'](_0x3bfa60['shift']());}};_0x2ee769(++_0x5a8ef4);}(a341_0x5a8e,0x143));const a341_0x2ee7=function(_0x3bfa60,_0x5a8ef4){_0x3bfa60=_0x3bfa60-0x0;let _0x2ee769=a341_0x5a8e[_0x3bfa60];return _0x2ee769;};const _0x50dc99=a341_0x2ee7;'use strict';const Sequelize=require(_0x50dc99('0x1'));module[_0x50dc99('0x7')]={'type':{'type':Sequelize[_0x50dc99('0x4')]('string',_0x50dc99('0x0'),_0x50dc99('0x3'),'keyValue'),'defaultValue':_0x50dc99('0x6')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x50dc99('0x5')]},'keyType':{'type':Sequelize[_0x50dc99('0x4')](_0x50dc99('0x6'),_0x50dc99('0x0'),_0x50dc99('0x3'))},'keyContent':{'type':Sequelize[_0x50dc99('0x5')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x50dc99('0x5')]},'customField':{'type':Sequelize[_0x50dc99('0x2')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x50dc99('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index f71f85a..32eb84a 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a342_0xe112=['rows','catch','undefined','like','key','options','filters','filter','api','findOne','fields','set','send','keys','params','status','stack','../../config/logger','error','model','findAll','ZendeskField','length','../../mysqldb','fieldName','query','sequelize','where','create','name','lodash','update','map','sort','../../components/parsers/qs','order','then','Content-Range','nolimit','count','includeAll','limit','body','end','merge','rawAttributes','index','attributes','include','intersection','show','type','offset'];(function(_0x979966,_0xe112fd){const _0x57bd10=function(_0x1f1b1f){while(--_0x1f1b1f){_0x979966['push'](_0x979966['shift']());}};_0x57bd10(++_0xe112fd);}(a342_0xe112,0x1f3));const a342_0x57bd=function(_0x979966,_0xe112fd){_0x979966=_0x979966-0x0;let _0x57bd10=a342_0xe112[_0x979966];return _0x57bd10;};const _0x4cbf72=a342_0x57bd;'use strict';const _=require(_0x4cbf72('0x8')),qs=require(_0x4cbf72('0xc')),logger=require(_0x4cbf72('0x30'))(_0x4cbf72('0x27')),db=require(_0x4cbf72('0x1'))['db'],{Op}=require(_0x4cbf72('0x4'));function respondWithResult(_0x1f1b1f,_0x395575){return _0x395575=_0x395575||0xc8,function(_0x562342){if(_0x562342)return _0x1f1b1f['status'](_0x395575)['json'](_0x562342);};}function respondWithFilteredResult(_0xdef47d,_0x5c9beb){return function(_0x4edcf6){const _0x26cabb=a342_0x57bd;if(_0x4edcf6){const _0x3a80b9=_0x4edcf6[_0x26cabb('0x11')],_0x5911d3=_0x5c9beb[_0x26cabb('0x1e')];let _0x18c558=_0x5c9beb[_0x26cabb('0x1e')]+_0x5c9beb[_0x26cabb('0x13')],_0x5894cb;return _0x18c558>=_0x3a80b9?(_0x18c558=_0x3a80b9,_0x5894cb=0xc8):_0x5894cb=0xce,_0xdef47d[_0x26cabb('0x2e')](_0x5894cb),_0xdef47d[_0x26cabb('0x2a')](_0x26cabb('0xf'),_0x5911d3+'-'+_0x18c558+'/'+_0x3a80b9)['json'](_0x4edcf6);}return null;};}function saveUpdates(_0x304301){return function(_0x5bfd7d){const _0x272645=a342_0x57bd;if(_0x5bfd7d)return _0x5bfd7d[_0x272645('0x9')](_0x304301)[_0x272645('0xe')](function(_0x3b39a0){return _0x3b39a0;});return null;};}function removeEntity(_0x49a6c1){return function(_0x890a7e){const _0x525e9c=a342_0x57bd;if(_0x890a7e)return _0x890a7e['destroy']()[_0x525e9c('0xe')](function(){const _0x348c13=_0x525e9c;_0x49a6c1[_0x348c13('0x2e')](0xcc)[_0x348c13('0x15')]();});};}function handleEntityNotFound(_0x2a800b){return function(_0x228740){return!_0x228740&&_0x2a800b['sendStatus'](0x194),_0x228740;};}function handleError(_0x276332,_0x595a20){return _0x595a20=_0x595a20||0x1f4,function(_0x54e6a4){const _0xc060ff=a342_0x57bd;logger[_0xc060ff('0x31')](_0x54e6a4[_0xc060ff('0x2f')]),_0x54e6a4[_0xc060ff('0x7')]&&delete _0x54e6a4[_0xc060ff('0x7')],_0x276332[_0xc060ff('0x2e')](_0x595a20)[_0xc060ff('0x2b')](_0x54e6a4);};}exports[_0x4cbf72('0x18')]=function(_0x4ebe66,_0xef2b62){const _0x2f5bd2=_0x4cbf72;let _0x5b5e67={};const _0x507b4d={},_0x527ee6={'count':0x0,'rows':[]},_0x153084=_[_0x2f5bd2('0xa')](db[_0x2f5bd2('0x34')][_0x2f5bd2('0x17')],function(_0xf91b0e){const _0xfb05a2=_0x2f5bd2;return{'name':_0xf91b0e[_0xfb05a2('0x2')],'type':_0xf91b0e[_0xfb05a2('0x1d')][_0xfb05a2('0x23')]};});_0x507b4d[_0x2f5bd2('0x32')]=_[_0x2f5bd2('0xa')](_0x153084,'name'),_0x507b4d[_0x2f5bd2('0x3')]=_['keys'](_0x4ebe66['query']),_0x507b4d[_0x2f5bd2('0x25')]=_[_0x2f5bd2('0x1b')](_0x507b4d[_0x2f5bd2('0x32')],_0x507b4d['query']),_0x5b5e67[_0x2f5bd2('0x19')]=_[_0x2f5bd2('0x1b')](_0x507b4d[_0x2f5bd2('0x32')],qs[_0x2f5bd2('0x29')](_0x4ebe66[_0x2f5bd2('0x3')][_0x2f5bd2('0x29')])),_0x5b5e67['attributes']=_0x5b5e67[_0x2f5bd2('0x19')][_0x2f5bd2('0x0')]?_0x5b5e67['attributes']:_0x507b4d['model'];typeof _0x4ebe66['query'][_0x2f5bd2('0x10')]===_0x2f5bd2('0x21')&&(_0x5b5e67[_0x2f5bd2('0x13')]=qs[_0x2f5bd2('0x13')](_0x4ebe66[_0x2f5bd2('0x3')][_0x2f5bd2('0x13')]),_0x5b5e67['offset']=qs[_0x2f5bd2('0x1e')](_0x4ebe66['query'][_0x2f5bd2('0x1e')]));_0x5b5e67[_0x2f5bd2('0xd')]=qs[_0x2f5bd2('0xb')](_0x4ebe66[_0x2f5bd2('0x3')][_0x2f5bd2('0xb')]),_0x5b5e67[_0x2f5bd2('0x5')]=qs[_0x2f5bd2('0x25')](_['pick'](_0x4ebe66[_0x2f5bd2('0x3')],_0x507b4d[_0x2f5bd2('0x25')]),_0x153084);_0x4ebe66[_0x2f5bd2('0x3')][_0x2f5bd2('0x26')]&&(_0x5b5e67['where']=_[_0x2f5bd2('0x16')](_0x5b5e67[_0x2f5bd2('0x5')],{[Op['or']]:_[_0x2f5bd2('0xa')](_0x153084,function(_0x293077){const _0x319b44=_0x2f5bd2;if(_0x293077['type']!=='VIRTUAL'){const _0x15e104={};return _0x15e104[_0x293077[_0x319b44('0x7')]]={[Op[_0x319b44('0x22')]]:'%'+_0x4ebe66[_0x319b44('0x3')][_0x319b44('0x26')]+'%'},_0x15e104;}})}));_0x5b5e67=_['merge']({},_0x5b5e67,_0x4ebe66[_0x2f5bd2('0x24')]);const _0xdc752d={'where':_0x5b5e67[_0x2f5bd2('0x5')]};return db['ZendeskField'][_0x2f5bd2('0x11')](_0xdc752d)[_0x2f5bd2('0xe')](function(_0x14cd4e){const _0x310ddc=_0x2f5bd2;return _0x527ee6['count']=_0x14cd4e,_0x4ebe66['query'][_0x310ddc('0x12')]&&(_0x5b5e67['include']=[{'all':!![]}]),db[_0x310ddc('0x34')][_0x310ddc('0x33')](_0x5b5e67);})[_0x2f5bd2('0xe')](function(_0x33663d){const _0x1c31c2=_0x2f5bd2;return _0x527ee6[_0x1c31c2('0x1f')]=_0x33663d,_0x527ee6;})[_0x2f5bd2('0xe')](respondWithFilteredResult(_0xef2b62,_0x5b5e67))[_0x2f5bd2('0x20')](handleError(_0xef2b62,null));},exports[_0x4cbf72('0x1c')]=function(_0x2ca800,_0x5590ed){const _0x47013e=_0x4cbf72;let _0x32e056={'raw':!![],'where':{'id':_0x2ca800['params']['id']}};const _0x10fc1c={};return _0x10fc1c[_0x47013e('0x32')]=_[_0x47013e('0x2c')](db[_0x47013e('0x34')][_0x47013e('0x17')]),_0x10fc1c[_0x47013e('0x3')]=_[_0x47013e('0x2c')](_0x2ca800['query']),_0x10fc1c[_0x47013e('0x25')]=_[_0x47013e('0x1b')](_0x10fc1c[_0x47013e('0x32')],_0x10fc1c['query']),_0x32e056['attributes']=_[_0x47013e('0x1b')](_0x10fc1c[_0x47013e('0x32')],qs['fields'](_0x2ca800['query'][_0x47013e('0x29')])),_0x32e056['attributes']=_0x32e056['attributes']['length']?_0x32e056['attributes']:_0x10fc1c[_0x47013e('0x32')],_0x2ca800[_0x47013e('0x3')][_0x47013e('0x12')]&&(_0x32e056[_0x47013e('0x1a')]=[{'all':!![]}]),_0x32e056=_[_0x47013e('0x16')]({},_0x32e056,_0x2ca800[_0x47013e('0x24')]),db['ZendeskField'][_0x47013e('0x28')](_0x32e056)['then'](handleEntityNotFound(_0x5590ed,null))[_0x47013e('0xe')](respondWithResult(_0x5590ed,null))[_0x47013e('0x20')](handleError(_0x5590ed,null));},exports['create']=function(_0xcc7df,_0x323b85){const _0x4f5908=_0x4cbf72;return db[_0x4f5908('0x34')][_0x4f5908('0x6')](_0xcc7df[_0x4f5908('0x14')],{})['then'](respondWithResult(_0x323b85,0xc9))[_0x4f5908('0x20')](handleError(_0x323b85,null));},exports[_0x4cbf72('0x9')]=function(_0x3ddd9e,_0xf86042){const _0x41f9a9=_0x4cbf72;return _0x3ddd9e['body']['id']&&delete _0x3ddd9e['body']['id'],db[_0x41f9a9('0x34')][_0x41f9a9('0x28')]({'where':{'id':_0x3ddd9e[_0x41f9a9('0x2d')]['id']}})[_0x41f9a9('0xe')](handleEntityNotFound(_0xf86042,null))['then'](saveUpdates(_0x3ddd9e[_0x41f9a9('0x14')],null))[_0x41f9a9('0xe')](respondWithResult(_0xf86042,null))['catch'](handleError(_0xf86042,null));},exports['destroy']=function(_0x102cee,_0x384d0c){const _0x4e5e36=_0x4cbf72;return db[_0x4e5e36('0x34')][_0x4e5e36('0x28')]({'where':{'id':_0x102cee[_0x4e5e36('0x2d')]['id']}})[_0x4e5e36('0xe')](handleEntityNotFound(_0x384d0c,null))[_0x4e5e36('0xe')](removeEntity(_0x384d0c,null))[_0x4e5e36('0x20')](handleError(_0x384d0c,null));}; \ No newline at end of file +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 diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index 511a135..6db12ce 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a343_0x51a2=['define','exports','idField','FieldId','int_zendesk_fields','ZendeskField'];(function(_0x583a18,_0x51a209){const _0x198db3=function(_0x572d65){while(--_0x572d65){_0x583a18['push'](_0x583a18['shift']());}};_0x198db3(++_0x51a209);}(a343_0x51a2,0x67));const a343_0x198d=function(_0x583a18,_0x51a209){_0x583a18=_0x583a18-0x0;let _0x198db3=a343_0x51a2[_0x583a18];return _0x198db3;};const _0xdfebef=a343_0x198d;'use strict';const attributes=require('./intZendeskField.attributes');module[_0xdfebef('0x0')]=function(_0x572d65){const _0x1166f7=_0xdfebef,_0x11db8d=_0x572d65[_0x1166f7('0x5')](_0x1166f7('0x4'),attributes,{'tableName':_0x1166f7('0x3'),'paranoid':![],'indexes':[{'name':'zendesk_unique_index','fields':[_0x1166f7('0x1'),_0x1166f7('0x2')],'unique':!![]}],'timestamps':!![]});return _0x11db8d;}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index 8701346..e5ca9a0 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a344_0x765f=['/:id/configurations','isAuthenticated','index','show','getFields','addConfiguration','getConfigurations','exports','create','delete','get','/:id/fields','update','post','/:id','./intZohoAccount.controller','destroy'];(function(_0x98cf95,_0x765fd3){const _0x339692=function(_0x55aeb0){while(--_0x55aeb0){_0x98cf95['push'](_0x98cf95['shift']());}};_0x339692(++_0x765fd3);}(a344_0x765f,0xce));const a344_0x3396=function(_0x98cf95,_0x765fd3){_0x98cf95=_0x98cf95-0x0;let _0x339692=a344_0x765f[_0x98cf95];return _0x339692;};const _0x2c9c17=a344_0x3396;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x2c9c17('0xd'));router[_0x2c9c17('0x8')]('/',auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x0')]),router['get'](_0x2c9c17('0xc'),auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x1')]),router[_0x2c9c17('0x8')]('/:id/configurations',auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x4')]),router[_0x2c9c17('0x8')](_0x2c9c17('0x9'),auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x2')]),router['post']('/',auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x6')]),router[_0x2c9c17('0xb')](_0x2c9c17('0xf'),auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0x3')]),router['put'](_0x2c9c17('0xc'),auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0xa')]),router[_0x2c9c17('0x7')]('/:id',auth[_0x2c9c17('0x10')](),controller[_0x2c9c17('0xe')]),module[_0x2c9c17('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index 5e5ea18..64222f0 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a345_0x2003=['STRING','sequelize','exports'];(function(_0x1be3b3,_0x2003f3){const _0x3e0593=function(_0x1677be){while(--_0x1677be){_0x1be3b3['push'](_0x1be3b3['shift']());}};_0x3e0593(++_0x2003f3);}(a345_0x2003,0x138));const a345_0x3e05=function(_0x1be3b3,_0x2003f3){_0x1be3b3=_0x1be3b3-0x0;let _0x3e0593=a345_0x2003[_0x1be3b3];return _0x3e0593;};const _0x4161b3=a345_0x3e05;'use strict';const Sequelize=require(_0x4161b3('0x1'));module[_0x4161b3('0x2')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x4161b3('0x0')]},'host':{'type':Sequelize[_0x4161b3('0x0')]},'zone':{'type':Sequelize['STRING']},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x4161b3('0x0')]},'code':{'type':Sequelize[_0x4161b3('0x0')]},'refreshToken':{'type':Sequelize[_0x4161b3('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index 15e7390..792a0c8 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a346_0x4ef5=['filters','../../mysqldb','fields','util','merge','key','sendStatus','code','https://accounts.zoho.eu','message','destroy','Call_Start_Time','Call_Type','host','Wrong\x20credentials','Unable\x20to\x20retrieve\x20the\x20access\x20token','options','includeAll','access_token','Subjects','offset','nolimit','statusCode','ZohoField','Description','rawAttributes','model','picklist','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','body','remove','catch','map','lastIndexOf','keys','intersection','push','fieldName','then','findOne','index','getSubjects','test','set','clientSecret','https://accounts.zoho.com','format','filter','clientId','query','custom_field','name','getFields','stack','error','end','undefined','include','refreshToken','attributes','Descriptions','rows','pick_list_values','status','../../config/logger','sequelize','params','VIRTUAL','type','WhoId','pick','count','GET','ZohoConfiguration','com','update','length','zoho.eu','https://accounts.zoho.com.au','channel','order','send','ZohoAccount','Calls','serverUrl','zone','getDescriptions','refresh_token','display_label','Content-Range','addConfiguration','Zoho-oauthtoken\x20','https://accounts.zoho.com.cn','api','Call_Duration','where','../../components/integrations/configuration','/oauth/v2/token','create','sort','limit','getConfigurations','stringify','POST','lodash','json','substring','response','https://www.zohoapis.%s/crm/v2/settings/fields'];(function(_0x1f8022,_0x4ef57e){const _0x272c34=function(_0x5eff56){while(--_0x5eff56){_0x1f8022['push'](_0x1f8022['shift']());}};_0x272c34(++_0x4ef57e);}(a346_0x4ef5,0xcc));const a346_0x272c=function(_0x1f8022,_0x4ef57e){_0x1f8022=_0x1f8022-0x0;let _0x272c34=a346_0x4ef5[_0x1f8022];return _0x272c34;};const _0x44d221=a346_0x272c;'use strict';const rp=require('request-promise-native'),util=require(_0x44d221('0x11')),_=require(_0x44d221('0x9')),qs=require('../../components/parsers/qs'),logger=require(_0x44d221('0x4e'))(_0x44d221('0x6b')),db=require(_0x44d221('0xf'))['db'],{Op}=require(_0x44d221('0x4f')),integrations=require(_0x44d221('0x1'));function respondWithResult(_0x5eff56,_0x5558bb){return _0x5558bb=_0x5558bb||0xc8,function(_0x7da5db){const _0x1466a6=a346_0x272c;if(_0x7da5db)return _0x5eff56[_0x1466a6('0x4d')](_0x5558bb)[_0x1466a6('0xa')](_0x7da5db);};}function respondWithFilteredResult(_0x3e77c2,_0xefc504){return function(_0x5ebdc2){const _0x132a83=a346_0x272c;if(_0x5ebdc2){const _0x44c663=_0x5ebdc2['count'],_0x443260=_0xefc504[_0x132a83('0x22')];let _0x1e9d55=_0xefc504['offset']+_0xefc504[_0x132a83('0x5')],_0x1d0956;return _0x1e9d55>=_0x44c663?(_0x1e9d55=_0x44c663,_0x1d0956=0xc8):_0x1d0956=0xce,_0x3e77c2[_0x132a83('0x4d')](_0x1d0956),_0x3e77c2[_0x132a83('0x39')](_0x132a83('0x67'),_0x443260+'-'+_0x1e9d55+'/'+_0x44c663)['json'](_0x5ebdc2);}return null;};}function saveUpdates(_0x3f9a2a){return function(_0x230e71){const _0x35a871=a346_0x272c;if(_0x230e71)return _0x230e71[_0x35a871('0x59')](_0x3f9a2a)[_0x35a871('0x34')](function(_0x19c21f){return _0x19c21f;});return null;};}function removeEntity(_0x1f3f56){return function(_0x261d96){const _0x3bb48f=a346_0x272c;if(_0x261d96)return _0x261d96[_0x3bb48f('0x18')]()[_0x3bb48f('0x34')](function(){const _0x15ab93=_0x3bb48f;_0x1f3f56['status'](0xcc)[_0x15ab93('0x45')]();});};}function handleEntityNotFound(_0x3954cb){return function(_0x161d91){const _0x106c94=a346_0x272c;return!_0x161d91&&_0x3954cb[_0x106c94('0x14')](0x194),_0x161d91;};}function handleError(_0x5f3a76,_0x3176aa){return _0x3176aa=_0x3176aa||0x1f4,function(_0x2a5e13){const _0x550e3b=a346_0x272c;logger[_0x550e3b('0x44')](_0x2a5e13[_0x550e3b('0x43')]),_0x2a5e13['name']&&delete _0x2a5e13[_0x550e3b('0x41')],_0x5f3a76['status'](_0x3176aa)[_0x550e3b('0x5f')](_0x2a5e13);};}exports[_0x44d221('0x36')]=function(_0x47410b,_0x504e62){const _0x2eb277=_0x44d221;let _0x55d470={};const _0x569625={},_0x5b12a4={'count':0x0,'rows':[]},_0x3d1336=_[_0x2eb277('0x2e')](db[_0x2eb277('0x60')][_0x2eb277('0x27')],function(_0x40434a){const _0x41a50b=_0x2eb277;return{'name':_0x40434a[_0x41a50b('0x33')],'type':_0x40434a[_0x41a50b('0x52')][_0x41a50b('0x13')]};});_0x569625['model']=_[_0x2eb277('0x2e')](_0x3d1336,_0x2eb277('0x41')),_0x569625[_0x2eb277('0x3f')]=_['keys'](_0x47410b['query']),_0x569625[_0x2eb277('0xe')]=_[_0x2eb277('0x31')](_0x569625[_0x2eb277('0x28')],_0x569625[_0x2eb277('0x3f')]),_0x55d470[_0x2eb277('0x49')]=_['intersection'](_0x569625[_0x2eb277('0x28')],qs[_0x2eb277('0x10')](_0x47410b[_0x2eb277('0x3f')]['fields'])),_0x55d470[_0x2eb277('0x49')]=_0x55d470[_0x2eb277('0x49')][_0x2eb277('0x5a')]?_0x55d470['attributes']:_0x569625[_0x2eb277('0x28')];typeof _0x47410b['query'][_0x2eb277('0x23')]==='undefined'&&(_0x55d470[_0x2eb277('0x5')]=qs[_0x2eb277('0x5')](_0x47410b[_0x2eb277('0x3f')]['limit']),_0x55d470[_0x2eb277('0x22')]=qs[_0x2eb277('0x22')](_0x47410b[_0x2eb277('0x3f')][_0x2eb277('0x22')]));_0x55d470[_0x2eb277('0x5e')]=qs[_0x2eb277('0x4')](_0x47410b[_0x2eb277('0x3f')][_0x2eb277('0x4')]),_0x55d470[_0x2eb277('0x0')]=qs[_0x2eb277('0xe')](_[_0x2eb277('0x54')](_0x47410b[_0x2eb277('0x3f')],_0x569625[_0x2eb277('0xe')]),_0x3d1336);_0x47410b[_0x2eb277('0x3f')][_0x2eb277('0x3d')]&&(_0x55d470[_0x2eb277('0x0')]=_[_0x2eb277('0x12')](_0x55d470[_0x2eb277('0x0')],{[Op['or']]:_['map'](_0x3d1336,function(_0x38e629){const _0x1d1869=_0x2eb277;if(_0x38e629[_0x1d1869('0x52')]!==_0x1d1869('0x51')){const _0x34b859={};return _0x34b859[_0x38e629[_0x1d1869('0x41')]]={[Op['like']]:'%'+_0x47410b[_0x1d1869('0x3f')][_0x1d1869('0x3d')]+'%'},_0x34b859;}})}));_0x55d470=_[_0x2eb277('0x12')]({},_0x55d470,_0x47410b[_0x2eb277('0x1e')]);const _0x4c2061={'where':_0x55d470[_0x2eb277('0x0')]};return db['ZohoAccount'][_0x2eb277('0x55')](_0x4c2061)['then'](function(_0x149121){const _0x42f1b6=_0x2eb277;return _0x5b12a4[_0x42f1b6('0x55')]=_0x149121,_0x47410b[_0x42f1b6('0x3f')][_0x42f1b6('0x1f')]&&(_0x55d470[_0x42f1b6('0x47')]=[{'all':!![]}]),db['ZohoAccount']['findAll'](_0x55d470);})['then'](function(_0xf971a5){const _0x25e990=_0x2eb277;return _0x5b12a4[_0x25e990('0x4b')]=_0xf971a5,_0x5b12a4;})[_0x2eb277('0x34')](respondWithFilteredResult(_0x504e62,_0x55d470))[_0x2eb277('0x2d')](handleError(_0x504e62,null));},exports['show']=function(_0xd2856b,_0x217b0f){const _0x47c56d=_0x44d221;let _0x3ddc51={'raw':![],'where':{'id':_0xd2856b[_0x47c56d('0x50')]['id']}};const _0x333bf1={};return _0x333bf1[_0x47c56d('0x28')]=_[_0x47c56d('0x30')](db[_0x47c56d('0x60')][_0x47c56d('0x27')]),_0x333bf1[_0x47c56d('0x3f')]=_[_0x47c56d('0x30')](_0xd2856b[_0x47c56d('0x3f')]),_0x333bf1[_0x47c56d('0xe')]=_['intersection'](_0x333bf1[_0x47c56d('0x28')],_0x333bf1[_0x47c56d('0x3f')]),_0x3ddc51[_0x47c56d('0x49')]=_[_0x47c56d('0x31')](_0x333bf1[_0x47c56d('0x28')],qs['fields'](_0xd2856b[_0x47c56d('0x3f')][_0x47c56d('0x10')])),_0x3ddc51[_0x47c56d('0x49')]=_0x3ddc51[_0x47c56d('0x49')][_0x47c56d('0x5a')]?_0x3ddc51[_0x47c56d('0x49')]:_0x333bf1[_0x47c56d('0x28')],_0xd2856b[_0x47c56d('0x3f')][_0x47c56d('0x1f')]&&(_0x3ddc51[_0x47c56d('0x47')]=[{'all':!![]}]),_0x3ddc51=_[_0x47c56d('0x12')]({},_0x3ddc51,_0xd2856b['options']),db[_0x47c56d('0x60')][_0x47c56d('0x35')](_0x3ddc51)['then'](handleEntityNotFound(_0x217b0f,null))['then'](respondWithResult(_0x217b0f,null))[_0x47c56d('0x2d')](handleError(_0x217b0f,null));},exports['create']=function(_0x4bd9b0,_0x2d50ec){const _0x322901=_0x44d221;return db[_0x322901('0x60')][_0x322901('0x3')](_0x4bd9b0[_0x322901('0x2b')],{})['then'](respondWithResult(_0x2d50ec,0xc9))['catch'](handleError(_0x2d50ec,null));},exports[_0x44d221('0x59')]=function(_0x3cd14c,_0x30149d){const _0x4539a8=_0x44d221;return _0x3cd14c[_0x4539a8('0x2b')]['id']&&delete _0x3cd14c[_0x4539a8('0x2b')]['id'],db[_0x4539a8('0x60')][_0x4539a8('0x35')]({'where':{'id':_0x3cd14c[_0x4539a8('0x50')]['id']}})[_0x4539a8('0x34')](handleEntityNotFound(_0x30149d,null))[_0x4539a8('0x34')](saveUpdates(_0x3cd14c['body'],null))[_0x4539a8('0x34')](respondWithResult(_0x30149d,null))[_0x4539a8('0x2d')](handleError(_0x30149d,null));},exports[_0x44d221('0x18')]=function(_0x879853,_0x24d65a){const _0x42436f=_0x44d221;return db[_0x42436f('0x60')][_0x42436f('0x35')]({'where':{'id':_0x879853['params']['id']}})[_0x42436f('0x34')](handleEntityNotFound(_0x24d65a,null))[_0x42436f('0x34')](removeEntity(_0x24d65a,null))['catch'](handleError(_0x24d65a,null));},exports[_0x44d221('0x6')]=function(_0x2016e0,_0x14856d){const _0x143116=_0x44d221;let _0x30dc09={};const _0x225e60={};let _0x5d9756,_0x167c69;return db[_0x143116('0x60')][_0x143116('0x35')]({'where':{'id':_0x2016e0['params']['id']}})[_0x143116('0x34')](handleEntityNotFound(_0x14856d,null))[_0x143116('0x34')](function(_0x48f9da){const _0x1df8cd=_0x143116;if(_0x48f9da)return _0x5d9756=_0x48f9da,_0x225e60[_0x1df8cd('0x28')]=_[_0x1df8cd('0x30')](db[_0x1df8cd('0x57')][_0x1df8cd('0x27')]),_0x225e60[_0x1df8cd('0x3f')]=_[_0x1df8cd('0x30')](_0x2016e0['query']),_0x225e60['filters']=_[_0x1df8cd('0x31')](_0x225e60['model'],_0x225e60[_0x1df8cd('0x3f')]),_0x30dc09['attributes']=_[_0x1df8cd('0x31')](_0x225e60[_0x1df8cd('0x28')],qs['fields'](_0x2016e0[_0x1df8cd('0x3f')][_0x1df8cd('0x10')])),_0x30dc09[_0x1df8cd('0x49')]=_0x30dc09[_0x1df8cd('0x49')]['length']?_0x30dc09[_0x1df8cd('0x49')]:_0x225e60['model'],_0x30dc09[_0x1df8cd('0x5e')]=qs[_0x1df8cd('0x4')](_0x2016e0[_0x1df8cd('0x3f')]['sort']),_0x30dc09['where']=qs['filters'](_['pick'](_0x2016e0[_0x1df8cd('0x3f')],_0x225e60['filters'])),_0x2016e0[_0x1df8cd('0x3f')][_0x1df8cd('0x3d')]&&(_0x30dc09[_0x1df8cd('0x0')]=_[_0x1df8cd('0x12')](_0x30dc09[_0x1df8cd('0x0')],{[Op['or']]:_[_0x1df8cd('0x2e')](_0x30dc09[_0x1df8cd('0x49')],function(_0x2bc7b8){const _0x53ea5b=_0x1df8cd,_0x21afd8={};return _0x21afd8[_0x2bc7b8]={[Op['like']]:'%'+_0x2016e0[_0x53ea5b('0x3f')][_0x53ea5b('0x3d')]+'%'},_0x21afd8;})})),_0x30dc09=_['merge']({},_0x30dc09,_0x2016e0[_0x1df8cd('0x1e')]),_0x5d9756[_0x1df8cd('0x6')](_0x30dc09);})[_0x143116('0x34')](function(_0x34fa93){const _0x326b93=_0x143116;if(_0x34fa93)return _0x167c69=_0x34fa93['length'],typeof _0x2016e0['query'][_0x326b93('0x23')]===_0x326b93('0x46')&&(_0x30dc09[_0x326b93('0x5')]=qs[_0x326b93('0x5')](_0x2016e0['query'][_0x326b93('0x5')]),_0x30dc09['offset']=qs[_0x326b93('0x22')](_0x2016e0['query']['offset'])),_0x5d9756[_0x326b93('0x6')](_0x30dc09);})[_0x143116('0x34')](function(_0x35b85c){if(_0x35b85c)return _0x35b85c?{'count':_0x167c69,'rows':_0x35b85c}:null;})[_0x143116('0x34')](respondWithResult(_0x14856d,null))[_0x143116('0x2d')](handleError(_0x14856d,null));},exports[_0x44d221('0x68')]=function(_0x4e2708,_0x1c0706){const _0x37061a=_0x44d221;return _0x4e2708[_0x37061a('0x2b')]['id']&&delete _0x4e2708[_0x37061a('0x2b')]['id'],db['ZohoAccount'][_0x37061a('0x35')]({'where':{'id':_0x4e2708[_0x37061a('0x50')]['id']}})[_0x37061a('0x34')](handleEntityNotFound(_0x1c0706,null))[_0x37061a('0x34')](function(_0x3fbee5){const _0x1a397d=_0x37061a;if(_0x3fbee5)return _0x4e2708[_0x1a397d('0x2b')]['AccountId']=_0x3fbee5['id'],_0x4e2708['body'][_0x1a397d('0x21')]=integrations[_0x1a397d('0x37')](_0x4e2708[_0x1a397d('0x2b')][_0x1a397d('0x5d')],_0x4e2708['body']['type']),_0x4e2708[_0x1a397d('0x2b')]['Descriptions']=integrations[_0x1a397d('0x64')](_0x4e2708[_0x1a397d('0x2b')]['channel'],_0x4e2708[_0x1a397d('0x2b')][_0x1a397d('0x52')]),db['ZohoConfiguration']['create'](_0x4e2708[_0x1a397d('0x2b')],{'include':[{'model':db['ZohoField'],'as':'Subjects'},{'model':db[_0x1a397d('0x25')],'as':_0x1a397d('0x4a')}]});return null;})['then'](respondWithResult(_0x1c0706,null))[_0x37061a('0x2d')](handleError(_0x1c0706,null));};function getAccessToken(_0x2f2ba3){return new Promise(function(_0x2ebc4f,_0x2c921d){const _0x12f2e4=a346_0x272c;let _0x36ca88;switch(_0x2f2ba3[_0x12f2e4('0x63')]){case'US':_0x36ca88=_0x12f2e4('0x3b');break;case'AU':_0x36ca88=_0x12f2e4('0x5c');break;case'EU':_0x36ca88=_0x12f2e4('0x16');break;case'IN':_0x36ca88='https://accounts.zoho.in';break;case'CN':_0x36ca88=_0x12f2e4('0x6a');break;default:_0x36ca88=_0x12f2e4('0x16');break;}const _0x58f028={'method':_0x12f2e4('0x8'),'uri':_0x36ca88+_0x12f2e4('0x2'),'qs':{'refresh_token':_0x2f2ba3['refreshToken'],'client_id':_0x2f2ba3[_0x12f2e4('0x3e')],'client_secret':_0x2f2ba3['clientSecret'],'grant_type':_0x12f2e4('0x65')},'json':!![]};return rp(_0x58f028)['then'](function(_0x2791f8){const _0x2aa292=_0x12f2e4;_0x2791f8[_0x2aa292('0x20')]?_0x2ebc4f(_0x2791f8[_0x2aa292('0x20')]):_0x2c921d(_0x2aa292('0x1d'));})[_0x12f2e4('0x2d')](function(_0x470b9b){_0x2c921d(_0x470b9b);});});}exports[_0x44d221('0x42')]=function(_0x14a1c8,_0x117c95){const _0x4bd0c7=_0x44d221;let _0x4954ea,_0x1f0a2b,_0xdb32e9,_0x51c420;return db[_0x4bd0c7('0x60')][_0x4bd0c7('0x35')]({'where':{'id':_0x14a1c8[_0x4bd0c7('0x50')]['id']},'attributes':['id','host',_0x4bd0c7('0x63'),_0x4bd0c7('0x3e'),_0x4bd0c7('0x3a'),_0x4bd0c7('0x62'),_0x4bd0c7('0x15'),_0x4bd0c7('0x48')]})['then'](handleEntityNotFound(_0x117c95,null))[_0x4bd0c7('0x34')](function(_0x47f640){const _0x4f1cf9=_0x4bd0c7;_0x51c420=_0x47f640,_0x4954ea=_0x51c420[_0x4f1cf9('0x1b')],_0x1f0a2b=_0x4954ea===_0x4f1cf9('0x5b')?'eu':_0x4f1cf9('0x58'),_0xdb32e9=_0x51c420[_0x4f1cf9('0x62')];const _0x4c9e25=_0xdb32e9['slice'](-0x1);(_0x4c9e25==='/'||_0x4c9e25==='\x5c'||_0x4c9e25===':')&&(_0xdb32e9=_0xdb32e9[_0x4f1cf9('0xb')](0x0,_0xdb32e9[_0x4f1cf9('0x2f')](_0x4c9e25)));if(!_0x51c420[_0x4f1cf9('0x48')])throw new Error(_0x4f1cf9('0x2a'));return getAccessToken(_0x51c420);})[_0x4bd0c7('0x34')](function(_0x2f8daf){const _0x473be1=_0x4bd0c7;if(_0x2f8daf)return rp({'method':_0x473be1('0x56'),'uri':util[_0x473be1('0x3c')](_0x473be1('0xd'),_0x1f0a2b),'qs':{'module':_0x473be1('0x61')},'headers':{'Authorization':_0x473be1('0x69')+_0x2f8daf},'json':!![]});})['then'](function(_0x1144c){const _0x570b0b=_0x4bd0c7;if(_0x1144c){if(_0x1144c[_0x570b0b('0xc')]&&_0x1144c['response']['error'])throw new Error(_0x1144c[_0x570b0b('0xc')]['error'][_0x570b0b('0x17')]);const _0x4c866d=[];let _0x437000=[];const _0x2b93fb=['Owner','Subject',_0x570b0b('0x26'),_0x570b0b('0x53'),_0x570b0b('0x6c'),'Call_Result',_0x570b0b('0x19'),_0x570b0b('0x1a')];_0x437000=_[_0x570b0b('0x2c')](_0x1144c[_0x570b0b('0x10')],function(_0x5428a4){return _0x2b93fb['includes'](_0x5428a4['api_name']);});for(let _0x2448f4=0x0;_0x2448f4<_0x437000[_0x570b0b('0x5a')];_0x2448f4++){_0x437000[_0x2448f4]['system_mandatory']===![]&&_0x4c866d[_0x570b0b('0x32')]({'id':_0x437000[_0x2448f4]['id'],'name':_0x437000[_0x2448f4][_0x570b0b('0x66')],'custom':_0x437000[_0x2448f4][_0x570b0b('0x40')],'options':_0x437000[_0x2448f4]['data_type']===_0x570b0b('0x29')&&_0x437000[_0x2448f4][_0x570b0b('0x4c')]['length']>-0x1?_[_0x570b0b('0x2e')](_0x437000[_0x2448f4]['pick_list_values'],function(_0x2de03c){return{'name':_0x2de03c,'value':_0x2de03c};}):[]});}return{'count':_0x4c866d[_0x570b0b('0x5a')],'rows':_0x4c866d};}else return{'count':0x0,'rows':[]};})[_0x4bd0c7('0x34')](respondWithResult(_0x117c95,null))[_0x4bd0c7('0x2d')](function(_0xd51dca){const _0x16ac9c=_0x4bd0c7;let _0x100953=_0x14a1c8[_0x16ac9c('0x3f')][_0x16ac9c('0x38')]?0x1f4:_0xd51dca['statusCode']||0x1f4;logger[_0x16ac9c('0x44')]('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x100953,JSON[_0x16ac9c('0x7')](_0xd51dca)),delete _0xd51dca[_0x16ac9c('0x41')],_0x100953===0x191&&(_0x100953=0x190),_0x117c95[_0x16ac9c('0x4d')](_0x100953)[_0x16ac9c('0x5f')](_0x14a1c8[_0x16ac9c('0x3f')][_0x16ac9c('0x38')]?{'message':_0x16ac9c('0x1c'),'statusCode':_0xd51dca[_0x16ac9c('0x24')]}:_0xd51dca);});}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index 78b9161..2fcef97 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a347_0x3081=['https://accounts.zoho.com','catch','ZohoAccount','changed','code','serverUrl','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','https://accounts.zoho.in','authorization_code','POST','https://accounts.zoho.eu','info','format','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','parse','clientId','inspect','substring','error','exports','lastIndexOf','name','api','https://accounts.zoho.com.cn','int_zoho_accounts','host','util','slice','clientSecret','zone','https://accounts.zoho.com.au','refresh_token','then','refreshToken'];(function(_0xfde6f9,_0x3081af){const _0x300428=function(_0xe52c8){while(--_0xe52c8){_0xfde6f9['push'](_0xfde6f9['shift']());}};_0x300428(++_0x3081af);}(a347_0x3081,0x7a));const a347_0x3004=function(_0xfde6f9,_0x3081af){_0xfde6f9=_0xfde6f9-0x0;let _0x300428=a347_0x3081[_0xfde6f9];return _0x300428;};const _0x4414bb=a347_0x3004;'use strict';const util=require(_0x4414bb('0x6')),logger=require('../../config/logger')(_0x4414bb('0x2')),rp=require('request-promise-native'),attributes=require('./intZohoAccount.attributes');module[_0x4414bb('0x21')]=function(_0xe52c8){const _0x45e72b=_0x4414bb,_0x51f9fb=_0xe52c8['define'](_0x45e72b('0x10'),attributes,{'tableName':_0x45e72b('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x1451a8){const _0x16b1cd=_0x45e72b;if(_0x1451a8[_0x16b1cd('0x11')](_0x16b1cd('0x9'))||_0x1451a8[_0x16b1cd('0x11')](_0x16b1cd('0x13'))||_0x1451a8['changed'](_0x16b1cd('0x1d'))||_0x1451a8['changed'](_0x16b1cd('0x8'))||_0x1451a8[_0x16b1cd('0x11')]('code')||_0x1451a8[_0x16b1cd('0x11')]('host')){let _0x16bef1,_0x2e8549;_0x16bef1=_0x1451a8[_0x16b1cd('0x13')];const _0x288590=_0x16bef1['slice'](-0x1);(_0x288590==='/'||_0x288590==='\x5c'||_0x288590===':')&&(_0x16bef1=_0x16bef1['substring'](0x0,_0x16bef1['lastIndexOf'](_0x288590)));switch(_0x1451a8['zone']){case'US':_0x2e8549=_0x16b1cd('0xe');break;case'AU':_0x2e8549=_0x16b1cd('0xa');break;case'IN':_0x2e8549=_0x16b1cd('0x15');break;case'CN':_0x2e8549=_0x16b1cd('0x3');break;default:_0x2e8549=_0x16b1cd('0x18');break;}const _0x48a860={'method':_0x16b1cd('0x17'),'uri':_0x2e8549+'/oauth/v2/token','form':{'grant_type':_0x16b1cd('0x16'),'client_id':_0x1451a8[_0x16b1cd('0x1d')],'client_secret':_0x1451a8[_0x16b1cd('0x8')],'redirect_uri':_0x1451a8[_0x16b1cd('0x13')],'code':_0x1451a8[_0x16b1cd('0x12')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x5c4cf0=null;return rp(_0x48a860)['then'](function(_0x1d3cb4){const _0x24bfd3=_0x16b1cd;return _0x5c4cf0=JSON[_0x24bfd3('0x1c')](_0x1d3cb4),_0x5c4cf0['refresh_token']?(_0x1451a8[_0x24bfd3('0xd')]=_0x5c4cf0[_0x24bfd3('0xb')],logger[_0x24bfd3('0x19')](util[_0x24bfd3('0x1a')](_0x24bfd3('0x1b'),_0x1451a8[_0x24bfd3('0x1')],_0x1451a8['id']))):logger[_0x24bfd3('0x20')](util[_0x24bfd3('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x1451a8[_0x24bfd3('0x1')],_0x1451a8['id']),util[_0x24bfd3('0x1e')](_0x5c4cf0,{'showHidden':![],'depth':null})),null;})[_0x16b1cd('0xf')](function(_0x3e9376){const _0x14db6f=_0x16b1cd;return logger[_0x14db6f('0x20')](util[_0x14db6f('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x1451a8[_0x14db6f('0x1')],_0x1451a8['id']),util[_0x14db6f('0x1e')](_0x5c4cf0,{'showHidden':![],'depth':null})),_0x3e9376;});}else return null;},'beforeUpdate':function(_0x1c081e){const _0x42323a=_0x45e72b;if(_0x1c081e[_0x42323a('0x11')]('zone')||_0x1c081e['changed']('serverUrl')||_0x1c081e[_0x42323a('0x11')](_0x42323a('0x1d'))||_0x1c081e[_0x42323a('0x11')](_0x42323a('0x8'))||_0x1c081e['changed'](_0x42323a('0x12'))||_0x1c081e[_0x42323a('0x11')](_0x42323a('0x5'))){let _0x242969,_0x1bc46c;_0x242969=_0x1c081e[_0x42323a('0x13')];const _0x222bc6=_0x242969[_0x42323a('0x7')](-0x1);(_0x222bc6==='/'||_0x222bc6==='\x5c'||_0x222bc6===':')&&(_0x242969=_0x242969[_0x42323a('0x1f')](0x0,_0x242969[_0x42323a('0x0')](_0x222bc6)));switch(_0x1c081e[_0x42323a('0x9')]){case'US':_0x1bc46c=_0x42323a('0xe');break;case'AU':_0x1bc46c=_0x42323a('0xa');break;case'IN':_0x1bc46c=_0x42323a('0x15');break;case'CN':_0x1bc46c='https://accounts.zoho.com.cn';break;default:_0x1bc46c=_0x42323a('0x18');break;}const _0x3b245d={'method':'POST','uri':_0x1bc46c+'/oauth/v2/token','form':{'grant_type':_0x42323a('0x16'),'client_id':_0x1c081e['clientId'],'client_secret':_0x1c081e['clientSecret'],'redirect_uri':_0x1c081e[_0x42323a('0x13')],'code':_0x1c081e[_0x42323a('0x12')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x5026e9=null;return rp(_0x3b245d)[_0x42323a('0xc')](function(_0x206915){const _0x2956f7=_0x42323a;return _0x5026e9=JSON[_0x2956f7('0x1c')](_0x206915),_0x5026e9[_0x2956f7('0xb')]?(_0x1c081e['refreshToken']=_0x5026e9[_0x2956f7('0xb')],logger['info'](util[_0x2956f7('0x1a')](_0x2956f7('0x1b'),_0x1c081e[_0x2956f7('0x1')],_0x1c081e['id']))):logger['error'](util[_0x2956f7('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x1c081e['name'],_0x1c081e['id']),util[_0x2956f7('0x1e')](_0x5026e9,{'showHidden':![],'depth':null})),null;})[_0x42323a('0xf')](function(_0x410641){const _0x49e235=_0x42323a;return logger[_0x49e235('0x20')](util[_0x49e235('0x1a')](_0x49e235('0x14'),_0x1c081e[_0x49e235('0x1')],_0x1c081e['id']),util[_0x49e235('0x1e')](_0x5026e9,{'showHidden':![],'depth':null})),_0x410641;});}else return null;}}});return _0x51f9fb;}; \ No newline at end of file +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 diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index 38c9049..86225dc 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a348_0x2972=['then','message','GetZohoAccount','findAll','error','ShowZohoAccount','attributes','info','../../config/logger','limit','ZohoAccount','debug','options','catch','where','model','findOne','include','map'];(function(_0x5cb907,_0x2972d3){const _0x50e564=function(_0x1e4900){while(--_0x1e4900){_0x5cb907['push'](_0x5cb907['shift']());}};_0x50e564(++_0x2972d3);}(a348_0x2972,0x161));const a348_0x50e5=function(_0x5cb907,_0x2972d3){_0x5cb907=_0x5cb907-0x0;let _0x50e564=a348_0x2972[_0x5cb907];return _0x50e564;};const _0x4c765e=a348_0x50e5;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x4c765e('0x10'))('rpc');exports['GetZohoAccount']=function(_0x1e4900){const _0x570cac=this;return new Promise(function(_0x3042da,_0x375d37){const _0x2c21a1=a348_0x50e5;return db[_0x2c21a1('0x12')][_0x2c21a1('0xb')]({'raw':_0x1e4900['options']?_0x1e4900[_0x2c21a1('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x1e4900['options']?_0x1e4900[_0x2c21a1('0x1')]['where']||null:null,'attributes':_0x1e4900[_0x2c21a1('0x1')]?_0x1e4900[_0x2c21a1('0x1')]['attributes']||null:null,'limit':_0x1e4900[_0x2c21a1('0x1')]?_0x1e4900['options'][_0x2c21a1('0x11')]||null:null,'include':_0x1e4900[_0x2c21a1('0x1')]?_0x1e4900['options'][_0x2c21a1('0x6')]?_[_0x2c21a1('0x7')](_0x1e4900[_0x2c21a1('0x1')][_0x2c21a1('0x6')],function(_0x3c7e85){const _0x59c19b=_0x2c21a1;return{'model':db[_0x3c7e85[_0x59c19b('0x4')]],'as':_0x3c7e85['as'],'attributes':_0x3c7e85[_0x59c19b('0xe')],'include':_0x3c7e85[_0x59c19b('0x6')]?_[_0x59c19b('0x7')](_0x3c7e85[_0x59c19b('0x6')],function(_0x408740){const _0x17b4a6=_0x59c19b;return{'model':db[_0x408740[_0x17b4a6('0x4')]],'as':_0x408740['as'],'attributes':_0x408740[_0x17b4a6('0xe')],'include':_0x408740[_0x17b4a6('0x6')]?_['map'](_0x408740['include'],function(_0x143bae){const _0x114b28=_0x17b4a6;return{'model':db[_0x143bae[_0x114b28('0x4')]],'as':_0x143bae['as'],'attributes':_0x143bae[_0x114b28('0xe')]};}):[]};}):[]};}):[]:[]})[_0x2c21a1('0x8')](function(_0x11c06c){const _0x1eab1b=_0x2c21a1;logger['info']('GetZohoAccount',_0x1e4900),logger['debug'](_0x1eab1b('0xa'),_0x1e4900,JSON['stringify'](_0x11c06c)),_0x3042da(_0x11c06c);})[_0x2c21a1('0x2')](function(_0x307735){const _0x163956=_0x2c21a1;logger[_0x163956('0xc')](_0x163956('0xa'),_0x307735[_0x163956('0x9')],_0x1e4900),_0x375d37(_0x570cac[_0x163956('0xc')](0x1f4,_0x307735[_0x163956('0x9')]));});});},exports[_0x4c765e('0xd')]=function(_0x3740f5){const _0x58c366=this;return new Promise(function(_0x39b188,_0x3c2965){const _0xcab478=a348_0x50e5;return db['ZohoAccount'][_0xcab478('0x5')]({'raw':_0x3740f5['options']?_0x3740f5[_0xcab478('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x3740f5['options']?_0x3740f5[_0xcab478('0x1')][_0xcab478('0x3')]||null:null,'attributes':_0x3740f5['options']?_0x3740f5[_0xcab478('0x1')][_0xcab478('0xe')]||null:null,'include':_0x3740f5[_0xcab478('0x1')]?_0x3740f5[_0xcab478('0x1')][_0xcab478('0x6')]?_[_0xcab478('0x7')](_0x3740f5['options'][_0xcab478('0x6')],function(_0x3e4afb){const _0x10d2ee=_0xcab478;return{'model':db[_0x3e4afb[_0x10d2ee('0x4')]],'as':_0x3e4afb['as'],'attributes':_0x3e4afb[_0x10d2ee('0xe')],'include':_0x3e4afb[_0x10d2ee('0x6')]?_['map'](_0x3e4afb[_0x10d2ee('0x6')],function(_0x1099e3){const _0x3d2448=_0x10d2ee;return{'model':db[_0x1099e3[_0x3d2448('0x4')]],'as':_0x1099e3['as'],'attributes':_0x1099e3[_0x3d2448('0xe')],'include':_0x1099e3[_0x3d2448('0x6')]?_[_0x3d2448('0x7')](_0x1099e3[_0x3d2448('0x6')],function(_0x51a6af){const _0x1a58f2=_0x3d2448;return{'model':db[_0x51a6af['model']],'as':_0x51a6af['as'],'attributes':_0x51a6af[_0x1a58f2('0xe')]};}):[]};}):[]};}):[]:[]})[_0xcab478('0x8')](function(_0x3c7f2f){const _0x25c7f7=_0xcab478;logger[_0x25c7f7('0xf')](_0x25c7f7('0xd'),_0x3740f5),logger[_0x25c7f7('0x0')](_0x25c7f7('0xd'),_0x3740f5,JSON['stringify'](_0x3c7f2f)),_0x39b188(_0x3c7f2f);})['catch'](function(_0x32c2c1){const _0x571e9c=_0xcab478;logger[_0x571e9c('0xc')](_0x571e9c('0xd'),_0x32c2c1[_0x571e9c('0x9')],_0x3740f5),_0x3c2965(_0x58c366[_0x571e9c('0xc')](0x1f4,_0x32c2c1[_0x571e9c('0x9')]));});});}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index 3acb776..c6623b0 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a349_0x4278=['isAuthenticated','delete','../../components/auth/service','create','/:id','index','/:id/fields','get','/:id/subjects','put','destroy','/:id/descriptions','getSubjects','show','post'];(function(_0x36e3c8,_0x4278bc){const _0x462601=function(_0x59e23f){while(--_0x59e23f){_0x36e3c8['push'](_0x36e3c8['shift']());}};_0x462601(++_0x4278bc);}(a349_0x4278,0x198));const a349_0x4626=function(_0x36e3c8,_0x4278bc){_0x36e3c8=_0x36e3c8-0x0;let _0x462601=a349_0x4278[_0x36e3c8];return _0x462601;};const _0x47edc0=a349_0x4626;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x47edc0('0xe')),controller=require('./intZohoConfiguration.controller');router[_0x47edc0('0x4')]('/',auth[_0x47edc0('0xc')](),controller[_0x47edc0('0x2')]),router['get'](_0x47edc0('0x1'),auth['isAuthenticated'](),controller[_0x47edc0('0xa')]),router['get'](_0x47edc0('0x3'),auth[_0x47edc0('0xc')](),controller['getFields']),router['get'](_0x47edc0('0x5'),auth[_0x47edc0('0xc')](),controller[_0x47edc0('0x9')]),router[_0x47edc0('0x4')](_0x47edc0('0x8'),auth[_0x47edc0('0xc')](),controller['getDescriptions']),router[_0x47edc0('0xb')]('/',auth[_0x47edc0('0xc')](),controller[_0x47edc0('0x0')]),router[_0x47edc0('0x6')](_0x47edc0('0x1'),auth[_0x47edc0('0xc')](),controller['update']),router[_0x47edc0('0xd')](_0x47edc0('0x1'),auth['isAuthenticated'](),controller[_0x47edc0('0x7')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 86ed0f5..3db8638 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a350_0x2dde=['nothing','ENUM','sequelize','exports','STRING','contact','lead','contact_lead'];(function(_0x36987a,_0x2dde06){const _0x10d4e5=function(_0x2ced56){while(--_0x2ced56){_0x36987a['push'](_0x36987a['shift']());}};_0x10d4e5(++_0x2dde06);}(a350_0x2dde,0x17b));const a350_0x10d4=function(_0x36987a,_0x2dde06){_0x36987a=_0x36987a-0x0;let _0x10d4e5=a350_0x2dde[_0x36987a];return _0x10d4e5;};const _0x4dfa45=a350_0x10d4;'use strict';const Sequelize=require(_0x4dfa45('0x7'));module[_0x4dfa45('0x0')]={'name':{'type':Sequelize[_0x4dfa45('0x1')]},'moduleCreate':{'type':Sequelize[_0x4dfa45('0x6')]('lead',_0x4dfa45('0x2'),_0x4dfa45('0x5')),'defaultValue':'lead'},'moduleSearch':{'type':Sequelize[_0x4dfa45('0x6')](_0x4dfa45('0x4'),_0x4dfa45('0x2'),_0x4dfa45('0x3')),'defaultValue':_0x4dfa45('0x4')},'description':{'type':Sequelize[_0x4dfa45('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index ee6257c..8e21112 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a351_0xcf4f=['options','lodash','limit','create','like','sort','sequelize','undefined','filter','count','params','fields','map','offset','includeAll','include','key','json','query','end','where','status','findOne','nolimit','pick','body','show','getFields','type','intersection','update','filters','ZohoField','set','merge','then','attributes','rawAttributes','getDescriptions','stack','findAll','model','order','catch','fieldName','destroy','rows','keys','error','../../components/parsers/qs','name','../../mysqldb','index','sendStatus','length','getSubjects','ZohoConfiguration'];(function(_0x47249a,_0xcf4f25){const _0x4a076f=function(_0xa5ee02){while(--_0xa5ee02){_0x47249a['push'](_0x47249a['shift']());}};_0x4a076f(++_0xcf4f25);}(a351_0xcf4f,0x163));const a351_0x4a07=function(_0x47249a,_0xcf4f25){_0x47249a=_0x47249a-0x0;let _0x4a076f=a351_0xcf4f[_0x47249a];return _0x4a076f;};const _0x555670=a351_0x4a07;'use strict';const _=require(_0x555670('0x2d')),qs=require(_0x555670('0x24')),logger=require('../../config/logger')('api'),db=require(_0x555670('0x26'))['db'],{Op}=require(_0x555670('0x32'));function respondWithResult(_0xa5ee02,_0x2fe9ae){return _0x2fe9ae=_0x2fe9ae||0xc8,function(_0x591d36){const _0x5ba2ff=a351_0x4a07;if(_0x591d36)return _0xa5ee02[_0x5ba2ff('0x8')](_0x2fe9ae)['json'](_0x591d36);};}function respondWithFilteredResult(_0x2bc9dd,_0x2c04f1){return function(_0x294fe2){const _0x590b7b=a351_0x4a07;if(_0x294fe2){const _0x158244=_0x294fe2[_0x590b7b('0x35')],_0x30a5d7=_0x2c04f1[_0x590b7b('0x0')];let _0x5ac84e=_0x2c04f1[_0x590b7b('0x0')]+_0x2c04f1[_0x590b7b('0x2e')],_0xd0e93b;return _0x5ac84e>=_0x158244?(_0x5ac84e=_0x158244,_0xd0e93b=0xc8):_0xd0e93b=0xce,_0x2bc9dd['status'](_0xd0e93b),_0x2bc9dd[_0x590b7b('0x14')]('Content-Range',_0x30a5d7+'-'+_0x5ac84e+'/'+_0x158244)[_0x590b7b('0x4')](_0x294fe2);}return null;};}function saveUpdates(_0x1ba966){return function(_0x35df7c){const _0x1bac80=a351_0x4a07;if(_0x35df7c)return _0x35df7c[_0x1bac80('0x11')](_0x1ba966)[_0x1bac80('0x16')](function(_0x53b7c6){return _0x53b7c6;});return null;};}function removeEntity(_0x4fafc2){return function(_0x3c9bd1){const _0x13a1df=a351_0x4a07;if(_0x3c9bd1)return _0x3c9bd1[_0x13a1df('0x20')]()[_0x13a1df('0x16')](function(){const _0x37155d=_0x13a1df;_0x4fafc2[_0x37155d('0x8')](0xcc)[_0x37155d('0x6')]();});};}function handleEntityNotFound(_0x5e5b71){return function(_0x4ac3e3){const _0x3599c9=a351_0x4a07;return!_0x4ac3e3&&_0x5e5b71[_0x3599c9('0x28')](0x194),_0x4ac3e3;};}function handleError(_0x496845,_0x5416a0){return _0x5416a0=_0x5416a0||0x1f4,function(_0x453e44){const _0x5a2a22=a351_0x4a07;logger[_0x5a2a22('0x23')](_0x453e44[_0x5a2a22('0x1a')]),_0x453e44[_0x5a2a22('0x25')]&&delete _0x453e44[_0x5a2a22('0x25')],_0x496845['status'](_0x5416a0)['send'](_0x453e44);};}exports[_0x555670('0x27')]=function(_0x4616cb,_0x4ab33d){const _0x1f6b3b=_0x555670;let _0x23610b={};const _0x4e5bb5={},_0x1d01ee={'count':0x0,'rows':[]},_0x13f5d1=_[_0x1f6b3b('0x38')](db[_0x1f6b3b('0x2b')]['rawAttributes'],function(_0x3a41a1){const _0x4e7fac=_0x1f6b3b;return{'name':_0x3a41a1[_0x4e7fac('0x1f')],'type':_0x3a41a1['type'][_0x4e7fac('0x3')]};});_0x4e5bb5[_0x1f6b3b('0x1c')]=_[_0x1f6b3b('0x38')](_0x13f5d1,_0x1f6b3b('0x25')),_0x4e5bb5[_0x1f6b3b('0x5')]=_[_0x1f6b3b('0x22')](_0x4616cb[_0x1f6b3b('0x5')]),_0x4e5bb5[_0x1f6b3b('0x12')]=_[_0x1f6b3b('0x10')](_0x4e5bb5[_0x1f6b3b('0x1c')],_0x4e5bb5[_0x1f6b3b('0x5')]),_0x23610b[_0x1f6b3b('0x17')]=_[_0x1f6b3b('0x10')](_0x4e5bb5[_0x1f6b3b('0x1c')],qs[_0x1f6b3b('0x37')](_0x4616cb[_0x1f6b3b('0x5')][_0x1f6b3b('0x37')])),_0x23610b[_0x1f6b3b('0x17')]=_0x23610b[_0x1f6b3b('0x17')]['length']?_0x23610b[_0x1f6b3b('0x17')]:_0x4e5bb5[_0x1f6b3b('0x1c')];typeof _0x4616cb[_0x1f6b3b('0x5')]['nolimit']===_0x1f6b3b('0x33')&&(_0x23610b[_0x1f6b3b('0x2e')]=qs[_0x1f6b3b('0x2e')](_0x4616cb[_0x1f6b3b('0x5')][_0x1f6b3b('0x2e')]),_0x23610b[_0x1f6b3b('0x0')]=qs[_0x1f6b3b('0x0')](_0x4616cb[_0x1f6b3b('0x5')]['offset']));_0x23610b[_0x1f6b3b('0x1d')]=qs[_0x1f6b3b('0x31')](_0x4616cb[_0x1f6b3b('0x5')][_0x1f6b3b('0x31')]),_0x23610b['where']=qs[_0x1f6b3b('0x12')](_['pick'](_0x4616cb[_0x1f6b3b('0x5')],_0x4e5bb5['filters']),_0x13f5d1);_0x4616cb[_0x1f6b3b('0x5')][_0x1f6b3b('0x34')]&&(_0x23610b[_0x1f6b3b('0x7')]=_[_0x1f6b3b('0x15')](_0x23610b['where'],{[Op['or']]:_['map'](_0x13f5d1,function(_0x26ebe2){const _0xe2da5a=_0x1f6b3b;if(_0x26ebe2[_0xe2da5a('0xf')]!=='VIRTUAL'){const _0x6f379f={};return _0x6f379f[_0x26ebe2['name']]={[Op['like']]:'%'+_0x4616cb[_0xe2da5a('0x5')][_0xe2da5a('0x34')]+'%'},_0x6f379f;}})}));_0x23610b=_[_0x1f6b3b('0x15')]({},_0x23610b,_0x4616cb[_0x1f6b3b('0x2c')]);const _0x55fe1c={'where':_0x23610b['where']};return db[_0x1f6b3b('0x2b')][_0x1f6b3b('0x35')](_0x55fe1c)[_0x1f6b3b('0x16')](function(_0x5aebc7){const _0x3263e1=_0x1f6b3b;return _0x1d01ee['count']=_0x5aebc7,_0x4616cb[_0x3263e1('0x5')]['includeAll']&&(_0x23610b[_0x3263e1('0x2')]=[{'all':!![]}]),db[_0x3263e1('0x2b')][_0x3263e1('0x1b')](_0x23610b);})['then'](function(_0x1aff88){const _0x123346=_0x1f6b3b;return _0x1d01ee[_0x123346('0x21')]=_0x1aff88,_0x1d01ee;})[_0x1f6b3b('0x16')](respondWithFilteredResult(_0x4ab33d,_0x23610b))[_0x1f6b3b('0x1e')](handleError(_0x4ab33d,null));},exports[_0x555670('0xd')]=function(_0x4cc52a,_0xdac4e3){const _0x396014=_0x555670;let _0x238d51={'raw':![],'where':{'id':_0x4cc52a[_0x396014('0x36')]['id']}};const _0x3e41cf={};return _0x3e41cf['model']=_[_0x396014('0x22')](db['ZohoConfiguration'][_0x396014('0x18')]),_0x3e41cf[_0x396014('0x5')]=_[_0x396014('0x22')](_0x4cc52a[_0x396014('0x5')]),_0x3e41cf[_0x396014('0x12')]=_[_0x396014('0x10')](_0x3e41cf[_0x396014('0x1c')],_0x3e41cf['query']),_0x238d51[_0x396014('0x17')]=_['intersection'](_0x3e41cf[_0x396014('0x1c')],qs['fields'](_0x4cc52a[_0x396014('0x5')][_0x396014('0x37')])),_0x238d51[_0x396014('0x17')]=_0x238d51[_0x396014('0x17')]['length']?_0x238d51[_0x396014('0x17')]:_0x3e41cf[_0x396014('0x1c')],_0x4cc52a[_0x396014('0x5')][_0x396014('0x1')]&&(_0x238d51[_0x396014('0x2')]=[{'all':!![]}]),_0x238d51=_['merge']({},_0x238d51,_0x4cc52a['options']),db[_0x396014('0x2b')][_0x396014('0x9')](_0x238d51)[_0x396014('0x16')](handleEntityNotFound(_0xdac4e3,null))['then'](respondWithResult(_0xdac4e3,null))[_0x396014('0x1e')](handleError(_0xdac4e3,null));},exports[_0x555670('0x2f')]=function(_0x45abdb,_0x4a65f7){const _0x315297=_0x555670;return db[_0x315297('0x2b')][_0x315297('0x2f')](_0x45abdb[_0x315297('0xc')],{})[_0x315297('0x16')](respondWithResult(_0x4a65f7,0xc9))[_0x315297('0x1e')](handleError(_0x4a65f7,null));},exports[_0x555670('0x11')]=function(_0x1b8a5f,_0x34392d){const _0x69b777=_0x555670;return _0x1b8a5f[_0x69b777('0xc')]['id']&&delete _0x1b8a5f['body']['id'],db[_0x69b777('0x2b')][_0x69b777('0x9')]({'where':{'id':_0x1b8a5f[_0x69b777('0x36')]['id']}})[_0x69b777('0x16')](handleEntityNotFound(_0x34392d,null))['then'](saveUpdates(_0x1b8a5f[_0x69b777('0xc')],null))[_0x69b777('0x16')](respondWithResult(_0x34392d,null))[_0x69b777('0x1e')](handleError(_0x34392d,null));},exports[_0x555670('0x20')]=function(_0xbe2e6c,_0x14ce98){const _0x5e036b=_0x555670;return db['ZohoConfiguration']['findOne']({'where':{'id':_0xbe2e6c[_0x5e036b('0x36')]['id']}})[_0x5e036b('0x16')](handleEntityNotFound(_0x14ce98,null))['then'](removeEntity(_0x14ce98,null))[_0x5e036b('0x1e')](handleError(_0x14ce98,null));},exports['getFields']=function(_0xafa7e7,_0x9bf781){const _0x4e350f=_0x555670;let _0x11237d={};const _0x2623f3={};let _0x6fd307,_0x4030c7;return db['ZohoConfiguration']['findOne']({'where':{'id':_0xafa7e7['params']['id']}})[_0x4e350f('0x16')](handleEntityNotFound(_0x9bf781,null))[_0x4e350f('0x16')](function(_0x1468c3){const _0x1d2c55=_0x4e350f;if(_0x1468c3)return _0x6fd307=_0x1468c3,_0x2623f3[_0x1d2c55('0x1c')]=_[_0x1d2c55('0x22')](db[_0x1d2c55('0x13')]['rawAttributes']),_0x2623f3['query']=_[_0x1d2c55('0x22')](_0xafa7e7[_0x1d2c55('0x5')]),_0x2623f3[_0x1d2c55('0x12')]=_[_0x1d2c55('0x10')](_0x2623f3[_0x1d2c55('0x1c')],_0x2623f3[_0x1d2c55('0x5')]),_0x11237d[_0x1d2c55('0x17')]=_['intersection'](_0x2623f3[_0x1d2c55('0x1c')],qs['fields'](_0xafa7e7[_0x1d2c55('0x5')][_0x1d2c55('0x37')])),_0x11237d[_0x1d2c55('0x17')]=_0x11237d[_0x1d2c55('0x17')][_0x1d2c55('0x29')]?_0x11237d['attributes']:_0x2623f3[_0x1d2c55('0x1c')],_0x11237d['order']=qs['sort'](_0xafa7e7[_0x1d2c55('0x5')][_0x1d2c55('0x31')]),_0x11237d[_0x1d2c55('0x7')]=qs[_0x1d2c55('0x12')](_[_0x1d2c55('0xb')](_0xafa7e7['query'],_0x2623f3[_0x1d2c55('0x12')])),_0xafa7e7[_0x1d2c55('0x5')][_0x1d2c55('0x34')]&&(_0x11237d[_0x1d2c55('0x7')]=_['merge'](_0x11237d['where'],{[Op['or']]:_[_0x1d2c55('0x38')](_0x11237d[_0x1d2c55('0x17')],function(_0x44a163){const _0x341317=_0x1d2c55,_0x56aab2={};return _0x56aab2[_0x44a163]={[Op[_0x341317('0x30')]]:'%'+_0xafa7e7[_0x341317('0x5')][_0x341317('0x34')]+'%'},_0x56aab2;})})),_0x11237d=_[_0x1d2c55('0x15')]({},_0x11237d,_0xafa7e7[_0x1d2c55('0x2c')]),_0x6fd307[_0x1d2c55('0xe')](_0x11237d);})['then'](function(_0x2f8517){const _0x912aa3=_0x4e350f;if(_0x2f8517)return _0x4030c7=_0x2f8517[_0x912aa3('0x29')],typeof _0xafa7e7[_0x912aa3('0x5')][_0x912aa3('0xa')]===_0x912aa3('0x33')&&(_0x11237d[_0x912aa3('0x2e')]=qs[_0x912aa3('0x2e')](_0xafa7e7[_0x912aa3('0x5')]['limit']),_0x11237d[_0x912aa3('0x0')]=qs[_0x912aa3('0x0')](_0xafa7e7[_0x912aa3('0x5')][_0x912aa3('0x0')])),_0x6fd307[_0x912aa3('0xe')](_0x11237d);})[_0x4e350f('0x16')](function(_0x26a652){if(_0x26a652)return _0x26a652?{'count':_0x4030c7,'rows':_0x26a652}:null;})[_0x4e350f('0x16')](respondWithResult(_0x9bf781,null))['catch'](handleError(_0x9bf781,null));},exports[_0x555670('0x2a')]=function(_0x2b266c,_0x37a3b4){const _0x3acb99=_0x555670;let _0x5c0da0={};const _0x4f894d={};let _0x398854,_0x212e72;return db[_0x3acb99('0x2b')][_0x3acb99('0x9')]({'where':{'id':_0x2b266c[_0x3acb99('0x36')]['id']}})['then'](handleEntityNotFound(_0x37a3b4,null))[_0x3acb99('0x16')](function(_0x358e9a){const _0x1ef3e8=_0x3acb99;if(_0x358e9a)return _0x398854=_0x358e9a,_0x4f894d[_0x1ef3e8('0x1c')]=_[_0x1ef3e8('0x22')](db[_0x1ef3e8('0x13')]['rawAttributes']),_0x4f894d[_0x1ef3e8('0x5')]=_[_0x1ef3e8('0x22')](_0x2b266c['query']),_0x4f894d['filters']=_[_0x1ef3e8('0x10')](_0x4f894d[_0x1ef3e8('0x1c')],_0x4f894d['query']),_0x5c0da0[_0x1ef3e8('0x17')]=_[_0x1ef3e8('0x10')](_0x4f894d['model'],qs[_0x1ef3e8('0x37')](_0x2b266c['query'][_0x1ef3e8('0x37')])),_0x5c0da0[_0x1ef3e8('0x17')]=_0x5c0da0['attributes'][_0x1ef3e8('0x29')]?_0x5c0da0['attributes']:_0x4f894d[_0x1ef3e8('0x1c')],_0x5c0da0[_0x1ef3e8('0x1d')]=qs[_0x1ef3e8('0x31')](_0x2b266c[_0x1ef3e8('0x5')][_0x1ef3e8('0x31')]),_0x5c0da0[_0x1ef3e8('0x7')]=qs[_0x1ef3e8('0x12')](_[_0x1ef3e8('0xb')](_0x2b266c[_0x1ef3e8('0x5')],_0x4f894d[_0x1ef3e8('0x12')])),_0x2b266c['query'][_0x1ef3e8('0x34')]&&(_0x5c0da0[_0x1ef3e8('0x7')]=_[_0x1ef3e8('0x15')](_0x5c0da0['where'],{[Op['or']]:_[_0x1ef3e8('0x38')](_0x5c0da0[_0x1ef3e8('0x17')],function(_0x4e5df7){const _0x39362f=_0x1ef3e8,_0x4b952e={};return _0x4b952e[_0x4e5df7]={[Op[_0x39362f('0x30')]]:'%'+_0x2b266c[_0x39362f('0x5')][_0x39362f('0x34')]+'%'},_0x4b952e;})})),_0x5c0da0=_[_0x1ef3e8('0x15')]({},_0x5c0da0,_0x2b266c['options']),_0x398854[_0x1ef3e8('0x2a')](_0x5c0da0);})[_0x3acb99('0x16')](function(_0x125810){const _0x31699=_0x3acb99;if(_0x125810)return _0x212e72=_0x125810['length'],typeof _0x2b266c[_0x31699('0x5')]['nolimit']===_0x31699('0x33')&&(_0x5c0da0[_0x31699('0x2e')]=qs[_0x31699('0x2e')](_0x2b266c[_0x31699('0x5')][_0x31699('0x2e')]),_0x5c0da0[_0x31699('0x0')]=qs[_0x31699('0x0')](_0x2b266c[_0x31699('0x5')][_0x31699('0x0')])),_0x398854[_0x31699('0x2a')](_0x5c0da0);})['then'](function(_0x5c7a7a){if(_0x5c7a7a)return _0x5c7a7a?{'count':_0x212e72,'rows':_0x5c7a7a}:null;})[_0x3acb99('0x16')](respondWithResult(_0x37a3b4,null))[_0x3acb99('0x1e')](handleError(_0x37a3b4,null));},exports[_0x555670('0x19')]=function(_0x1980e7,_0x559acb){const _0x3bffc1=_0x555670;let _0x5d5131={};const _0x456724={};let _0x4c679f,_0x169a18;return db[_0x3bffc1('0x2b')][_0x3bffc1('0x9')]({'where':{'id':_0x1980e7[_0x3bffc1('0x36')]['id']}})[_0x3bffc1('0x16')](handleEntityNotFound(_0x559acb,null))[_0x3bffc1('0x16')](function(_0x10d3f7){const _0xb75e65=_0x3bffc1;if(_0x10d3f7)return _0x4c679f=_0x10d3f7,_0x456724['model']=_[_0xb75e65('0x22')](db[_0xb75e65('0x13')][_0xb75e65('0x18')]),_0x456724[_0xb75e65('0x5')]=_[_0xb75e65('0x22')](_0x1980e7[_0xb75e65('0x5')]),_0x456724[_0xb75e65('0x12')]=_[_0xb75e65('0x10')](_0x456724['model'],_0x456724[_0xb75e65('0x5')]),_0x5d5131[_0xb75e65('0x17')]=_[_0xb75e65('0x10')](_0x456724[_0xb75e65('0x1c')],qs['fields'](_0x1980e7['query'][_0xb75e65('0x37')])),_0x5d5131[_0xb75e65('0x17')]=_0x5d5131['attributes'][_0xb75e65('0x29')]?_0x5d5131[_0xb75e65('0x17')]:_0x456724['model'],_0x5d5131[_0xb75e65('0x1d')]=qs[_0xb75e65('0x31')](_0x1980e7['query'][_0xb75e65('0x31')]),_0x5d5131[_0xb75e65('0x7')]=qs[_0xb75e65('0x12')](_[_0xb75e65('0xb')](_0x1980e7[_0xb75e65('0x5')],_0x456724['filters'])),_0x1980e7['query'][_0xb75e65('0x34')]&&(_0x5d5131[_0xb75e65('0x7')]=_[_0xb75e65('0x15')](_0x5d5131[_0xb75e65('0x7')],{[Op['or']]:_[_0xb75e65('0x38')](_0x5d5131[_0xb75e65('0x17')],function(_0x18086d){const _0x6a5070=_0xb75e65,_0xade8b7={};return _0xade8b7[_0x18086d]={[Op['like']]:'%'+_0x1980e7[_0x6a5070('0x5')][_0x6a5070('0x34')]+'%'},_0xade8b7;})})),_0x5d5131=_[_0xb75e65('0x15')]({},_0x5d5131,_0x1980e7[_0xb75e65('0x2c')]),_0x4c679f[_0xb75e65('0x19')](_0x5d5131);})[_0x3bffc1('0x16')](function(_0x38471e){const _0x5627d6=_0x3bffc1;if(_0x38471e)return _0x169a18=_0x38471e[_0x5627d6('0x29')],typeof _0x1980e7[_0x5627d6('0x5')][_0x5627d6('0xa')]==='undefined'&&(_0x5d5131[_0x5627d6('0x2e')]=qs['limit'](_0x1980e7['query'][_0x5627d6('0x2e')]),_0x5d5131[_0x5627d6('0x0')]=qs[_0x5627d6('0x0')](_0x1980e7[_0x5627d6('0x5')][_0x5627d6('0x0')])),_0x4c679f[_0x5627d6('0x19')](_0x5d5131);})[_0x3bffc1('0x16')](function(_0x45b49e){if(_0x45b49e)return _0x45b49e?{'count':_0x169a18,'rows':_0x45b49e}:null;})['then'](respondWithResult(_0x559acb,null))[_0x3bffc1('0x1e')](handleError(_0x559acb,null));}; \ No newline at end of file +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 diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index 69a5795..7630194 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a352_0x526c=['exports','ZohoConfiguration','int_zoho_configurations','./intZohoConfiguration.attributes'];(function(_0x362809,_0x526c17){const _0x4480b4=function(_0x6b6323){while(--_0x6b6323){_0x362809['push'](_0x362809['shift']());}};_0x4480b4(++_0x526c17);}(a352_0x526c,0x69));const a352_0x4480=function(_0x362809,_0x526c17){_0x362809=_0x362809-0x0;let _0x4480b4=a352_0x526c[_0x362809];return _0x4480b4;};const _0x57590c=a352_0x4480;'use strict';const attributes=require(_0x57590c('0x2'));module[_0x57590c('0x3')]=function(_0x6b6323){const _0x390346=_0x57590c,_0x3c902b=_0x6b6323['define'](_0x390346('0x0'),attributes,{'tableName':_0x390346('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c902b;}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index e5fb121..f800668 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a353_0x4238=['Router','get','exports','post','update','index','create','destroy','show','./intZohoField.controller','/:id','delete','isAuthenticated'];(function(_0x3bb7aa,_0x4238a3){const _0x145b86=function(_0x539244){while(--_0x539244){_0x3bb7aa['push'](_0x3bb7aa['shift']());}};_0x145b86(++_0x4238a3);}(a353_0x4238,0xf8));const a353_0x145b=function(_0x3bb7aa,_0x4238a3){_0x3bb7aa=_0x3bb7aa-0x0;let _0x145b86=a353_0x4238[_0x3bb7aa];return _0x145b86;};const _0x35a2af=a353_0x145b;'use strict';const express=require('express'),router=express[_0x35a2af('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x35a2af('0x8'));router[_0x35a2af('0x0')]('/',auth[_0x35a2af('0xb')](),controller[_0x35a2af('0x4')]),router['get'](_0x35a2af('0x9'),auth[_0x35a2af('0xb')](),controller[_0x35a2af('0x7')]),router[_0x35a2af('0x2')]('/',auth['isAuthenticated'](),controller[_0x35a2af('0x5')]),router['put'](_0x35a2af('0x9'),auth[_0x35a2af('0xb')](),controller[_0x35a2af('0x3')]),router[_0x35a2af('0xa')]('/:id',auth[_0x35a2af('0xb')](),controller[_0x35a2af('0x6')]),module[_0x35a2af('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.attributes.js b/server/api/intZohoField/intZohoField.attributes.js index a796212..8132b1d 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a354_0x36e4=['customVariable','STRING','sequelize','string','variable','exports','ENUM'];(function(_0x579cfe,_0x36e4ff){const _0x189e09=function(_0x2cc888){while(--_0x2cc888){_0x579cfe['push'](_0x579cfe['shift']());}};_0x189e09(++_0x36e4ff);}(a354_0x36e4,0xec));const a354_0x189e=function(_0x579cfe,_0x36e4ff){_0x579cfe=_0x579cfe-0x0;let _0x189e09=a354_0x36e4[_0x579cfe];return _0x189e09;};const _0xd391bb=a354_0x189e;'use strict';const Sequelize=require(_0xd391bb('0x4'));module[_0xd391bb('0x0')]={'type':{'type':Sequelize[_0xd391bb('0x1')](_0xd391bb('0x5'),_0xd391bb('0x6'),_0xd391bb('0x2'),'keyValue'),'defaultValue':_0xd391bb('0x5')},'content':{'type':Sequelize[_0xd391bb('0x3')]},'key':{'type':Sequelize[_0xd391bb('0x3')]},'keyType':{'type':Sequelize[_0xd391bb('0x1')](_0xd391bb('0x5'),_0xd391bb('0x6'),_0xd391bb('0x2'))},'keyContent':{'type':Sequelize[_0xd391bb('0x3')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0xd391bb('0x3')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0xd391bb('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index e34420a..a3511c9 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a355_0x31a9=['json','intersection','offset','attributes','pick','ZohoField','end','../../components/parsers/qs','map','query','send','index','../../config/logger','include','status','merge','params','stack','filters','destroy','../../mysqldb','count','like','options','includeAll','keys','fields','VIRTUAL','then','nolimit','sequelize','body','name','api','rawAttributes','findAll','create','show','lodash','limit','sendStatus','update','catch','findOne','length','model','undefined','type','filter','where'];(function(_0x4ec79a,_0x31a9dc){const _0x160af4=function(_0x49b966){while(--_0x49b966){_0x4ec79a['push'](_0x4ec79a['shift']());}};_0x160af4(++_0x31a9dc);}(a355_0x31a9,0x129));const a355_0x160a=function(_0x4ec79a,_0x31a9dc){_0x4ec79a=_0x4ec79a-0x0;let _0x160af4=a355_0x31a9[_0x4ec79a];return _0x160af4;};const _0x24d099=a355_0x160a;'use strict';const _=require(_0x24d099('0x29')),qs=require(_0x24d099('0xa')),logger=require(_0x24d099('0xf'))(_0x24d099('0x24')),db=require(_0x24d099('0x17'))['db'],{Op}=require(_0x24d099('0x21'));function respondWithResult(_0x49b966,_0x77557e){return _0x77557e=_0x77557e||0xc8,function(_0x53a9df){const _0x551863=a355_0x160a;if(_0x53a9df)return _0x49b966[_0x551863('0x11')](_0x77557e)['json'](_0x53a9df);};}function respondWithFilteredResult(_0x14d05a,_0xc1b553){return function(_0x590482){const _0x43c1c1=a355_0x160a;if(_0x590482){const _0x5ab07c=_0x590482[_0x43c1c1('0x18')],_0xd416d9=_0xc1b553[_0x43c1c1('0x5')];let _0xaac837=_0xc1b553[_0x43c1c1('0x5')]+_0xc1b553[_0x43c1c1('0x2a')],_0x4535f7;return _0xaac837>=_0x5ab07c?(_0xaac837=_0x5ab07c,_0x4535f7=0xc8):_0x4535f7=0xce,_0x14d05a[_0x43c1c1('0x11')](_0x4535f7),_0x14d05a['set']('Content-Range',_0xd416d9+'-'+_0xaac837+'/'+_0x5ab07c)[_0x43c1c1('0x3')](_0x590482);}return null;};}function saveUpdates(_0x32fa1e){return function(_0xc973a0){const _0x1e3d16=a355_0x160a;if(_0xc973a0)return _0xc973a0[_0x1e3d16('0x2c')](_0x32fa1e)['then'](function(_0x2508a9){return _0x2508a9;});return null;};}function removeEntity(_0x309656){return function(_0x2cb5a8){const _0x515909=a355_0x160a;if(_0x2cb5a8)return _0x2cb5a8[_0x515909('0x16')]()[_0x515909('0x1f')](function(){const _0x52d439=_0x515909;_0x309656[_0x52d439('0x11')](0xcc)[_0x52d439('0x9')]();});};}function handleEntityNotFound(_0x523a0e){return function(_0xf54cb){const _0x2797d6=a355_0x160a;return!_0xf54cb&&_0x523a0e[_0x2797d6('0x2b')](0x194),_0xf54cb;};}function handleError(_0x376ad8,_0x44b3ee){return _0x44b3ee=_0x44b3ee||0x1f4,function(_0x5a5524){const _0x149510=a355_0x160a;logger['error'](_0x5a5524[_0x149510('0x14')]),_0x5a5524['name']&&delete _0x5a5524['name'],_0x376ad8[_0x149510('0x11')](_0x44b3ee)[_0x149510('0xd')](_0x5a5524);};}exports[_0x24d099('0xe')]=function(_0x226e40,_0x49c18f){const _0xb00905=_0x24d099;let _0x2ebe73={};const _0x4c65ef={},_0x159642={'count':0x0,'rows':[]},_0x378e38=_[_0xb00905('0xb')](db[_0xb00905('0x8')][_0xb00905('0x25')],function(_0x1e5a5d){return{'name':_0x1e5a5d['fieldName'],'type':_0x1e5a5d['type']['key']};});_0x4c65ef[_0xb00905('0x30')]=_[_0xb00905('0xb')](_0x378e38,_0xb00905('0x23')),_0x4c65ef[_0xb00905('0xc')]=_[_0xb00905('0x1c')](_0x226e40[_0xb00905('0xc')]),_0x4c65ef[_0xb00905('0x15')]=_[_0xb00905('0x4')](_0x4c65ef[_0xb00905('0x30')],_0x4c65ef[_0xb00905('0xc')]),_0x2ebe73[_0xb00905('0x6')]=_[_0xb00905('0x4')](_0x4c65ef[_0xb00905('0x30')],qs[_0xb00905('0x1d')](_0x226e40[_0xb00905('0xc')][_0xb00905('0x1d')])),_0x2ebe73['attributes']=_0x2ebe73[_0xb00905('0x6')]['length']?_0x2ebe73[_0xb00905('0x6')]:_0x4c65ef[_0xb00905('0x30')];typeof _0x226e40[_0xb00905('0xc')][_0xb00905('0x20')]===_0xb00905('0x31')&&(_0x2ebe73['limit']=qs[_0xb00905('0x2a')](_0x226e40[_0xb00905('0xc')][_0xb00905('0x2a')]),_0x2ebe73[_0xb00905('0x5')]=qs['offset'](_0x226e40['query'][_0xb00905('0x5')]));_0x2ebe73['order']=qs['sort'](_0x226e40[_0xb00905('0xc')]['sort']),_0x2ebe73[_0xb00905('0x2')]=qs[_0xb00905('0x15')](_[_0xb00905('0x7')](_0x226e40[_0xb00905('0xc')],_0x4c65ef['filters']),_0x378e38);_0x226e40[_0xb00905('0xc')][_0xb00905('0x1')]&&(_0x2ebe73[_0xb00905('0x2')]=_[_0xb00905('0x12')](_0x2ebe73['where'],{[Op['or']]:_[_0xb00905('0xb')](_0x378e38,function(_0x2a7eab){const _0x4eabf2=_0xb00905;if(_0x2a7eab[_0x4eabf2('0x0')]!==_0x4eabf2('0x1e')){const _0x5e46f5={};return _0x5e46f5[_0x2a7eab['name']]={[Op[_0x4eabf2('0x19')]]:'%'+_0x226e40[_0x4eabf2('0xc')]['filter']+'%'},_0x5e46f5;}})}));_0x2ebe73=_[_0xb00905('0x12')]({},_0x2ebe73,_0x226e40[_0xb00905('0x1a')]);const _0x15e882={'where':_0x2ebe73[_0xb00905('0x2')]};return db[_0xb00905('0x8')][_0xb00905('0x18')](_0x15e882)['then'](function(_0xf1840e){const _0x101106=_0xb00905;return _0x159642['count']=_0xf1840e,_0x226e40[_0x101106('0xc')]['includeAll']&&(_0x2ebe73['include']=[{'all':!![]}]),db['ZohoField'][_0x101106('0x26')](_0x2ebe73);})[_0xb00905('0x1f')](function(_0x43459a){return _0x159642['rows']=_0x43459a,_0x159642;})[_0xb00905('0x1f')](respondWithFilteredResult(_0x49c18f,_0x2ebe73))[_0xb00905('0x2d')](handleError(_0x49c18f,null));},exports[_0x24d099('0x28')]=function(_0x30e6ba,_0x5275b0){const _0x23d142=_0x24d099;let _0x5c5bdc={'raw':!![],'where':{'id':_0x30e6ba[_0x23d142('0x13')]['id']}};const _0x252453={};return _0x252453['model']=_[_0x23d142('0x1c')](db[_0x23d142('0x8')]['rawAttributes']),_0x252453['query']=_[_0x23d142('0x1c')](_0x30e6ba['query']),_0x252453['filters']=_['intersection'](_0x252453[_0x23d142('0x30')],_0x252453[_0x23d142('0xc')]),_0x5c5bdc[_0x23d142('0x6')]=_[_0x23d142('0x4')](_0x252453[_0x23d142('0x30')],qs[_0x23d142('0x1d')](_0x30e6ba[_0x23d142('0xc')][_0x23d142('0x1d')])),_0x5c5bdc[_0x23d142('0x6')]=_0x5c5bdc['attributes'][_0x23d142('0x2f')]?_0x5c5bdc[_0x23d142('0x6')]:_0x252453[_0x23d142('0x30')],_0x30e6ba[_0x23d142('0xc')][_0x23d142('0x1b')]&&(_0x5c5bdc[_0x23d142('0x10')]=[{'all':!![]}]),_0x5c5bdc=_[_0x23d142('0x12')]({},_0x5c5bdc,_0x30e6ba[_0x23d142('0x1a')]),db[_0x23d142('0x8')][_0x23d142('0x2e')](_0x5c5bdc)[_0x23d142('0x1f')](handleEntityNotFound(_0x5275b0,null))[_0x23d142('0x1f')](respondWithResult(_0x5275b0,null))['catch'](handleError(_0x5275b0,null));},exports[_0x24d099('0x27')]=function(_0x32ab78,_0x5002e4){const _0x1a7321=_0x24d099;return db['ZohoField'][_0x1a7321('0x27')](_0x32ab78[_0x1a7321('0x22')],{})['then'](respondWithResult(_0x5002e4,0xc9))[_0x1a7321('0x2d')](handleError(_0x5002e4,null));},exports[_0x24d099('0x2c')]=function(_0x258e17,_0x489454){const _0x5ed6ea=_0x24d099;return _0x258e17[_0x5ed6ea('0x22')]['id']&&delete _0x258e17['body']['id'],db[_0x5ed6ea('0x8')]['findOne']({'where':{'id':_0x258e17[_0x5ed6ea('0x13')]['id']}})[_0x5ed6ea('0x1f')](handleEntityNotFound(_0x489454,null))[_0x5ed6ea('0x1f')](saveUpdates(_0x258e17['body'],null))[_0x5ed6ea('0x1f')](respondWithResult(_0x489454,null))[_0x5ed6ea('0x2d')](handleError(_0x489454,null));},exports['destroy']=function(_0x3da269,_0x152954){const _0x317ba5=_0x24d099;return db[_0x317ba5('0x8')][_0x317ba5('0x2e')]({'where':{'id':_0x3da269[_0x317ba5('0x13')]['id']}})['then'](handleEntityNotFound(_0x152954,null))[_0x317ba5('0x1f')](removeEntity(_0x152954,null))[_0x317ba5('0x2d')](handleError(_0x152954,null));}; \ No newline at end of file +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 diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index d847c57..50116dc 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a356_0x52e8=['./intZohoField.attributes','ZohoField','zoho_unique_index','int_zoho_fields','define'];(function(_0x3d13c8,_0x52e82e){const _0x436d6e=function(_0x420fcd){while(--_0x420fcd){_0x3d13c8['push'](_0x3d13c8['shift']());}};_0x436d6e(++_0x52e82e);}(a356_0x52e8,0xf5));const a356_0x436d=function(_0x3d13c8,_0x52e82e){_0x3d13c8=_0x3d13c8-0x0;let _0x436d6e=a356_0x52e8[_0x3d13c8];return _0x436d6e;};const _0x1c15c1=a356_0x436d;'use strict';const attributes=require(_0x1c15c1('0x0'));module['exports']=function(_0x420fcd){const _0x2b1534=_0x1c15c1,_0x543438=_0x420fcd[_0x2b1534('0x4')](_0x2b1534('0x1'),attributes,{'tableName':_0x2b1534('0x3'),'paranoid':![],'indexes':[{'name':_0x2b1534('0x2'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});return _0x543438;}; \ No newline at end of file +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 diff --git a/server/api/integration/index.js b/server/api/integration/index.js index 8287478..bec8b4f 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a357_0x33b6=['Router','exports','express'];(function(_0x3a9ab4,_0x33b674){const _0x529f3c=function(_0x31c18f){while(--_0x31c18f){_0x3a9ab4['push'](_0x3a9ab4['shift']());}};_0x529f3c(++_0x33b674);}(a357_0x33b6,0x1d9));const a357_0x529f=function(_0x3a9ab4,_0x33b674){_0x3a9ab4=_0x3a9ab4-0x0;let _0x529f3c=a357_0x33b6[_0x3a9ab4];return _0x529f3c;};const _0x3366d2=a357_0x529f;'use strict';const express=require(_0x3366d2('0x0')),router=express[_0x3366d2('0x1')]();module[_0x3366d2('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index f02aa9d..c4be490 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a358_0x4e68=['STRING','unique_name_and_version','BOOLEAN','exports','app.js','state'];(function(_0x541273,_0x4e6836){const _0x46a0b2=function(_0x56fb52){while(--_0x56fb52){_0x541273['push'](_0x541273['shift']());}};_0x46a0b2(++_0x4e6836);}(a358_0x4e68,0x19c));const a358_0x46a0=function(_0x541273,_0x4e6836){_0x541273=_0x541273-0x0;let _0x46a0b2=a358_0x4e68[_0x541273];return _0x46a0b2;};const _0x219a56=a358_0x46a0;'use strict';const Sequelize=require('sequelize');module[_0x219a56('0x5')]={'name':{'type':Sequelize[_0x219a56('0x2')],'allowNull':![],'unique':_0x219a56('0x3')},'version':{'type':Sequelize[_0x219a56('0x2')],'allowNull':![],'unique':'unique_name_and_version'},'main':{'type':Sequelize[_0x219a56('0x2')],'defaultValue':_0x219a56('0x0')},'filename':{'type':Sequelize[_0x219a56('0x2')]},'path':{'type':Sequelize[_0x219a56('0x2')]},'type':{'type':Sequelize[_0x219a56('0x2')]},'size':{'type':Sequelize['INTEGER']},'active':{'type':Sequelize[_0x219a56('0x4')],'defaultValue':![]},'author':{'type':Sequelize[_0x219a56('0x2')]},'logo':{'type':Sequelize[_0x219a56('0x2')]},'state':{'type':Sequelize[_0x219a56('0x2')],'unique':_0x219a56('0x1')},'description':{'type':Sequelize[_0x219a56('0x2')]},'title':{'type':Sequelize[_0x219a56('0x2')]},'remoteUri':{'type':Sequelize[_0x219a56('0x2')]},'link':{'type':Sequelize[_0x219a56('0x2')],'defaultValue':'#'}}; \ No newline at end of file +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 diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 7f442fd..65c0d3c 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a359_0x4b01=['then','key','index','like','status','../../components/parsers/qs','query','merge','rawAttributes','includeAll','options','type','model','where','nolimit','send','filters','name','count','intersection','set','Content-Range','sort','pick','api','end','filter','destroy','update','findOne','length','offset','fieldName','order','Integration','catch','include','params','rows','VIRTUAL','sequelize','findAll','attributes','show','limit','body','json','fields','keys','stack','map','create'];(function(_0xd283ec,_0x4b0153){const _0x49ccc7=function(_0x3acd99){while(--_0x3acd99){_0xd283ec['push'](_0xd283ec['shift']());}};_0x49ccc7(++_0x4b0153);}(a359_0x4b01,0x80));const a359_0x49cc=function(_0xd283ec,_0x4b0153){_0xd283ec=_0xd283ec-0x0;let _0x49ccc7=a359_0x4b01[_0xd283ec];return _0x49ccc7;};const _0x5ebaa7=a359_0x49cc;'use strict';const _=require('lodash'),qs=require(_0x5ebaa7('0x21')),logger=require('../../config/logger')(_0x5ebaa7('0x0')),db=require('../../mysqldb')['db'],{Op}=require(_0x5ebaa7('0x10'));function respondWithResult(_0x3acd99,_0x48d3d9){return _0x48d3d9=_0x48d3d9||0xc8,function(_0x4b488d){const _0x227163=a359_0x49cc;if(_0x4b488d)return _0x3acd99[_0x227163('0x20')](_0x48d3d9)[_0x227163('0x16')](_0x4b488d);};}function respondWithFilteredResult(_0x54f6e0,_0x3343c8){return function(_0x1ffe6e){const _0x5a85c6=a359_0x49cc;if(_0x1ffe6e){const _0x333d02=_0x1ffe6e[_0x5a85c6('0x2e')],_0xc21828=_0x3343c8[_0x5a85c6('0x7')];let _0x11fb90=_0x3343c8[_0x5a85c6('0x7')]+_0x3343c8['limit'],_0x514a9f;return _0x11fb90>=_0x333d02?(_0x11fb90=_0x333d02,_0x514a9f=0xc8):_0x514a9f=0xce,_0x54f6e0['status'](_0x514a9f),_0x54f6e0[_0x5a85c6('0x30')](_0x5a85c6('0x31'),_0xc21828+'-'+_0x11fb90+'/'+_0x333d02)['json'](_0x1ffe6e);}return null;};}function saveUpdates(_0x515963){return function(_0x4d0c85){const _0x322326=a359_0x49cc;if(_0x4d0c85)return _0x4d0c85[_0x322326('0x4')](_0x515963)[_0x322326('0x1c')](function(_0x1e7717){return _0x1e7717;});return null;};}function removeEntity(_0x2c2002){return function(_0x21f3a5){const _0x51a66a=a359_0x49cc;if(_0x21f3a5)return _0x21f3a5[_0x51a66a('0x3')]()[_0x51a66a('0x1c')](function(){const _0xee3caa=_0x51a66a;_0x2c2002['status'](0xcc)[_0xee3caa('0x1')]();});};}function handleEntityNotFound(_0x1da32a){return function(_0x1508e8){return!_0x1508e8&&_0x1da32a['sendStatus'](0x194),_0x1508e8;};}function handleError(_0x1c2754,_0x155753){return _0x155753=_0x155753||0x1f4,function(_0x1e4b22){const _0x2798cc=a359_0x49cc;logger['error'](_0x1e4b22[_0x2798cc('0x19')]),_0x1e4b22[_0x2798cc('0x2d')]&&delete _0x1e4b22[_0x2798cc('0x2d')],_0x1c2754[_0x2798cc('0x20')](_0x155753)[_0x2798cc('0x2b')](_0x1e4b22);};}exports[_0x5ebaa7('0x1e')]=function(_0x3f9526,_0x4e9619){const _0xc0ee07=_0x5ebaa7;let _0x467d96={};const _0x38d443={},_0x4aeee={'count':0x0,'rows':[]},_0x6709fe=_['map'](db['Integration'][_0xc0ee07('0x24')],function(_0x94d5d4){const _0x4fadcf=_0xc0ee07;return{'name':_0x94d5d4[_0x4fadcf('0x8')],'type':_0x94d5d4[_0x4fadcf('0x27')][_0x4fadcf('0x1d')]};});_0x38d443[_0xc0ee07('0x28')]=_['map'](_0x6709fe,_0xc0ee07('0x2d')),_0x38d443[_0xc0ee07('0x22')]=_[_0xc0ee07('0x18')](_0x3f9526[_0xc0ee07('0x22')]),_0x38d443[_0xc0ee07('0x2c')]=_[_0xc0ee07('0x2f')](_0x38d443[_0xc0ee07('0x28')],_0x38d443[_0xc0ee07('0x22')]),_0x467d96[_0xc0ee07('0x12')]=_[_0xc0ee07('0x2f')](_0x38d443[_0xc0ee07('0x28')],qs['fields'](_0x3f9526['query']['fields'])),_0x467d96[_0xc0ee07('0x12')]=_0x467d96[_0xc0ee07('0x12')][_0xc0ee07('0x6')]?_0x467d96[_0xc0ee07('0x12')]:_0x38d443['model'];typeof _0x3f9526[_0xc0ee07('0x22')][_0xc0ee07('0x2a')]==='undefined'&&(_0x467d96[_0xc0ee07('0x14')]=qs[_0xc0ee07('0x14')](_0x3f9526[_0xc0ee07('0x22')][_0xc0ee07('0x14')]),_0x467d96[_0xc0ee07('0x7')]=qs[_0xc0ee07('0x7')](_0x3f9526[_0xc0ee07('0x22')]['offset']));_0x467d96[_0xc0ee07('0x9')]=qs[_0xc0ee07('0x32')](_0x3f9526['query']['sort']),_0x467d96['where']=qs[_0xc0ee07('0x2c')](_[_0xc0ee07('0x33')](_0x3f9526[_0xc0ee07('0x22')],_0x38d443[_0xc0ee07('0x2c')]),_0x6709fe);_0x3f9526[_0xc0ee07('0x22')][_0xc0ee07('0x2')]&&(_0x467d96[_0xc0ee07('0x29')]=_[_0xc0ee07('0x23')](_0x467d96[_0xc0ee07('0x29')],{[Op['or']]:_[_0xc0ee07('0x1a')](_0x6709fe,function(_0x371a13){const _0x1318f5=_0xc0ee07;if(_0x371a13[_0x1318f5('0x27')]!==_0x1318f5('0xf')){const _0x30e9f7={};return _0x30e9f7[_0x371a13['name']]={[Op[_0x1318f5('0x1f')]]:'%'+_0x3f9526[_0x1318f5('0x22')][_0x1318f5('0x2')]+'%'},_0x30e9f7;}})}));_0x467d96=_[_0xc0ee07('0x23')]({},_0x467d96,_0x3f9526[_0xc0ee07('0x26')]);const _0x542da5={'where':_0x467d96[_0xc0ee07('0x29')]};return db[_0xc0ee07('0xa')][_0xc0ee07('0x2e')](_0x542da5)['then'](function(_0x204633){const _0x155979=_0xc0ee07;return _0x4aeee['count']=_0x204633,_0x3f9526['query'][_0x155979('0x25')]&&(_0x467d96[_0x155979('0xc')]=[{'all':!![]}]),db['Integration'][_0x155979('0x11')](_0x467d96);})['then'](function(_0x4c76f9){const _0x218424=_0xc0ee07;return _0x4aeee[_0x218424('0xe')]=_0x4c76f9,_0x4aeee;})[_0xc0ee07('0x1c')](respondWithFilteredResult(_0x4e9619,_0x467d96))[_0xc0ee07('0xb')](handleError(_0x4e9619,null));},exports[_0x5ebaa7('0x13')]=function(_0x270a7e,_0x185a47){const _0x25df62=_0x5ebaa7;let _0x5663a6={'raw':![],'where':{'id':_0x270a7e['params']['id']}};const _0x464590={};return _0x464590['model']=_['keys'](db[_0x25df62('0xa')][_0x25df62('0x24')]),_0x464590['query']=_[_0x25df62('0x18')](_0x270a7e[_0x25df62('0x22')]),_0x464590[_0x25df62('0x2c')]=_[_0x25df62('0x2f')](_0x464590[_0x25df62('0x28')],_0x464590[_0x25df62('0x22')]),_0x5663a6[_0x25df62('0x12')]=_['intersection'](_0x464590[_0x25df62('0x28')],qs['fields'](_0x270a7e[_0x25df62('0x22')][_0x25df62('0x17')])),_0x5663a6[_0x25df62('0x12')]=_0x5663a6[_0x25df62('0x12')][_0x25df62('0x6')]?_0x5663a6[_0x25df62('0x12')]:_0x464590['model'],_0x270a7e[_0x25df62('0x22')][_0x25df62('0x25')]&&(_0x5663a6[_0x25df62('0xc')]=[{'all':!![]}]),_0x5663a6=_[_0x25df62('0x23')]({},_0x5663a6,_0x270a7e[_0x25df62('0x26')]),db[_0x25df62('0xa')][_0x25df62('0x5')](_0x5663a6)['then'](handleEntityNotFound(_0x185a47,null))['then'](respondWithResult(_0x185a47,null))[_0x25df62('0xb')](handleError(_0x185a47,null));},exports[_0x5ebaa7('0x1b')]=function(_0x110c81,_0x9a9dea){const _0x5c9353=_0x5ebaa7;return db['Integration'][_0x5c9353('0x1b')](_0x110c81[_0x5c9353('0x15')],{})[_0x5c9353('0x1c')](respondWithResult(_0x9a9dea,0xc9))['catch'](handleError(_0x9a9dea,null));},exports[_0x5ebaa7('0x4')]=function(_0x5d0c02,_0x4790be){const _0x411ff0=_0x5ebaa7;return _0x5d0c02[_0x411ff0('0x15')]['id']&&delete _0x5d0c02['body']['id'],db[_0x411ff0('0xa')][_0x411ff0('0x5')]({'where':{'id':_0x5d0c02[_0x411ff0('0xd')]['id']}})[_0x411ff0('0x1c')](handleEntityNotFound(_0x4790be,null))[_0x411ff0('0x1c')](saveUpdates(_0x5d0c02[_0x411ff0('0x15')],null))['then'](respondWithResult(_0x4790be,null))[_0x411ff0('0xb')](handleError(_0x4790be,null));},exports[_0x5ebaa7('0x3')]=function(_0x118c85,_0x2e8519){const _0x27631c=_0x5ebaa7;return db[_0x27631c('0xa')]['findOne']({'where':{'id':_0x118c85[_0x27631c('0xd')]['id']}})[_0x27631c('0x1c')](handleEntityNotFound(_0x2e8519,null))[_0x27631c('0x1c')](removeEntity(_0x2e8519,null))[_0x27631c('0xb')](handleError(_0x2e8519,null));}; \ No newline at end of file +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 diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index 24884ce..6793a4f 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a360_0x24ad=['./integration.attributes','exports','Integration'];(function(_0x5c2753,_0x24ad90){const _0x49a78a=function(_0x8b4aef){while(--_0x8b4aef){_0x5c2753['push'](_0x5c2753['shift']());}};_0x49a78a(++_0x24ad90);}(a360_0x24ad,0xc7));const a360_0x49a7=function(_0x5c2753,_0x24ad90){_0x5c2753=_0x5c2753-0x0;let _0x49a78a=a360_0x24ad[_0x5c2753];return _0x49a78a;};const _0x140d70=a360_0x49a7;'use strict';const attributes=require(_0x140d70('0x2'));module[_0x140d70('0x0')]=function(_0x8b4aef){const _0x1c8c4b=_0x140d70,_0x526fa0=_0x8b4aef['define'](_0x1c8c4b('0x1'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x526fa0;}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index ad56d2b..b93b38a 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a361_0x585d=['isAuthenticated','show','index','put','post','express','delete','./integrationReport.controller','/:id','get','../../components/auth/service'];(function(_0x5da70c,_0x585d27){const _0x45a7e7=function(_0x39b9b8){while(--_0x39b9b8){_0x5da70c['push'](_0x5da70c['shift']());}};_0x45a7e7(++_0x585d27);}(a361_0x585d,0x199));const a361_0x45a7=function(_0x5da70c,_0x585d27){_0x5da70c=_0x5da70c-0x0;let _0x45a7e7=a361_0x585d[_0x5da70c];return _0x45a7e7;};const _0x35bbed=a361_0x45a7;'use strict';const express=require(_0x35bbed('0x3')),router=express['Router'](),auth=require(_0x35bbed('0x8')),controller=require(_0x35bbed('0x5'));router[_0x35bbed('0x7')]('/',auth[_0x35bbed('0x9')](),controller[_0x35bbed('0x0')]),router[_0x35bbed('0x7')]('/describe',auth[_0x35bbed('0x9')](),controller['describe']),router[_0x35bbed('0x7')]('/:id',auth[_0x35bbed('0x9')](),controller[_0x35bbed('0xa')]),router[_0x35bbed('0x2')]('/',auth[_0x35bbed('0x9')](),controller['create']),router[_0x35bbed('0x1')](_0x35bbed('0x6'),auth[_0x35bbed('0x9')](),controller['update']),router[_0x35bbed('0x4')](_0x35bbed('0x6'),auth[_0x35bbed('0x9')](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index a2690f8..914a3fd 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a362_0x5909=['BOOLEAN','TEXT','SENT','SENDING','DATE','STRING','RECEIVED','exports','INTEGER','sequelize'];(function(_0x248ec1,_0x5909fb){const _0x2b227b=function(_0x3da571){while(--_0x3da571){_0x248ec1['push'](_0x248ec1['shift']());}};_0x2b227b(++_0x5909fb);}(a362_0x5909,0x69));const a362_0x2b22=function(_0x248ec1,_0x5909fb){_0x248ec1=_0x248ec1-0x0;let _0x2b227b=a362_0x5909[_0x248ec1];return _0x2b227b;};const _0x46627e=a362_0x2b22;'use strict';const Sequelize=require(_0x46627e('0x4'));module[_0x46627e('0x2')]={'integration':{'type':Sequelize['STRING']},'eventChannel':{'type':Sequelize[_0x46627e('0x0')]},'exitStatus':{'type':Sequelize[_0x46627e('0x0')]},'ticketId':{'type':Sequelize[_0x46627e('0x0')]},'integrationId':{'type':Sequelize[_0x46627e('0x3')]},'contacts':{'type':Sequelize[_0x46627e('0x0')]},'uniqueid':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x46627e('0x0')]},'calleridname':{'type':Sequelize[_0x46627e('0x0')]},'queue':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0x46627e('0x0')]},'agentcalledAt':{'type':Sequelize[_0x46627e('0x9')]},'agentconnectAt':{'type':Sequelize[_0x46627e('0x9')]},'holdtime':{'type':Sequelize['INTEGER']},'agentcomplete':{'type':Sequelize[_0x46627e('0x5')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize[_0x46627e('0x9')]},'talktime':{'type':Sequelize[_0x46627e('0x3')]},'agentacw':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'acwtime':{'type':Sequelize['INTEGER']},'reason':{'type':Sequelize[_0x46627e('0x0')]},'agentringnoanswer':{'type':Sequelize[_0x46627e('0x5')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x46627e('0x9')]},'agentdump':{'type':Sequelize[_0x46627e('0x5')],'defaultValue':![]},'agentdumpAt':{'type':Sequelize[_0x46627e('0x9')]},'lastevent':{'type':Sequelize[_0x46627e('0x0')]},'channel':{'type':Sequelize[_0x46627e('0x0')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x46627e('0x0')]},'connectedlinenum':{'type':Sequelize[_0x46627e('0x0')]},'connectedlinename':{'type':Sequelize[_0x46627e('0x0')]},'language':{'type':Sequelize[_0x46627e('0x0')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x46627e('0x0')]},'priority':{'type':Sequelize[_0x46627e('0x0')]},'destchannel':{'type':Sequelize['STRING']},'destchannelstate':{'type':Sequelize[_0x46627e('0x3')]},'destchannelstatedesc':{'type':Sequelize[_0x46627e('0x0')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x46627e('0x0')]},'destconnectedlinename':{'type':Sequelize[_0x46627e('0x0')]},'destlanguage':{'type':Sequelize[_0x46627e('0x0')]},'destaccountcode':{'type':Sequelize[_0x46627e('0x0')]},'destcontext':{'type':Sequelize[_0x46627e('0x0')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x46627e('0x0')]},'destuniqueid':{'type':Sequelize['STRING']},'messageId':{'type':Sequelize[_0x46627e('0x0')]},'inReplyTo':{'type':Sequelize[_0x46627e('0x0')]},'subject':{'type':Sequelize[_0x46627e('0x0')]},'from':{'type':Sequelize[_0x46627e('0x0')]},'to':{'type':Sequelize[_0x46627e('0x0')]},'cc':{'type':Sequelize['STRING']},'attachment':{'type':Sequelize[_0x46627e('0x6')]},'html':{'type':Sequelize[_0x46627e('0x6')]},'text':{'type':Sequelize[_0x46627e('0x6')]},'status':{'type':Sequelize['ENUM'](_0x46627e('0x7'),_0x46627e('0x8'),_0x46627e('0x1'),'FAILED')},'url':{'type':Sequelize[_0x46627e('0x0')]},'app':{'type':Sequelize['STRING']},'appdata':{'type':Sequelize['STRING']},'projectId':{'type':Sequelize[_0x46627e('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index 70cd779..f798c1f 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a363_0xed12=['lodash','nolimit','limit','name','attributes','rawAttributes','length','stack','pick','map','create','keys','send','show','undefined','findOne','VIRTUAL','api','filters','params','offset','body','then','order','like','model','error','index','status','include','count','fields','merge','describe','sort','catch','fieldName','type','Content-Range','filter','update','includeAll','options','key','where','sendStatus','json','destroy','intersection','end','IntegrationReport','query'];(function(_0x51fb1c,_0xed125f){const _0x93259d=function(_0x295eea){while(--_0x295eea){_0x51fb1c['push'](_0x51fb1c['shift']());}};_0x93259d(++_0xed125f);}(a363_0xed12,0x1b4));const a363_0x9325=function(_0x51fb1c,_0xed125f){_0x51fb1c=_0x51fb1c-0x0;let _0x93259d=a363_0xed12[_0x51fb1c];return _0x93259d;};const _0x718ea9=a363_0x9325;'use strict';const _=require(_0x718ea9('0x20')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x718ea9('0x31')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x295eea,_0xf3433b){return _0xf3433b=_0xf3433b||0xc8,function(_0x55d0af){const _0x69ef3b=a363_0x9325;if(_0x55d0af)return _0x295eea[_0x69ef3b('0x8')](_0xf3433b)[_0x69ef3b('0x1a')](_0x55d0af);};}function respondWithFilteredResult(_0x54d801,_0x44b6b6){return function(_0xa121e3){const _0x835032=a363_0x9325;if(_0xa121e3){const _0x470bf6=_0xa121e3[_0x835032('0xa')],_0x38c6d4=_0x44b6b6[_0x835032('0x0')];let _0x50f67c=_0x44b6b6[_0x835032('0x0')]+_0x44b6b6['limit'],_0x180456;return _0x50f67c>=_0x470bf6?(_0x50f67c=_0x470bf6,_0x180456=0xc8):_0x180456=0xce,_0x54d801[_0x835032('0x8')](_0x180456),_0x54d801['set'](_0x835032('0x12'),_0x38c6d4+'-'+_0x50f67c+'/'+_0x470bf6)[_0x835032('0x1a')](_0xa121e3);}return null;};}function saveUpdates(_0xeac0d4){return function(_0x2955e9){const _0x5685af=a363_0x9325;if(_0x2955e9)return _0x2955e9[_0x5685af('0x14')](_0xeac0d4)['then'](function(_0x57a0f6){return _0x57a0f6;});return null;};}function removeEntity(_0x2a3fde){return function(_0x50207a){const _0x59ec83=a363_0x9325;if(_0x50207a)return _0x50207a[_0x59ec83('0x1b')]()[_0x59ec83('0x2')](function(){const _0x2fd635=_0x59ec83;_0x2a3fde[_0x2fd635('0x8')](0xcc)[_0x2fd635('0x1d')]();});};}function handleEntityNotFound(_0x236ef2){return function(_0x57dda7){const _0x29f76d=a363_0x9325;return!_0x57dda7&&_0x236ef2[_0x29f76d('0x19')](0x194),_0x57dda7;};}function handleError(_0x5a0681,_0x253f83){return _0x253f83=_0x253f83||0x1f4,function(_0x5e23db){const _0x58be9e=a363_0x9325;logger[_0x58be9e('0x6')](_0x5e23db[_0x58be9e('0x27')]),_0x5e23db[_0x58be9e('0x23')]&&delete _0x5e23db['name'],_0x5a0681['status'](_0x253f83)[_0x58be9e('0x2c')](_0x5e23db);};}exports[_0x718ea9('0x7')]=function(_0x324e40,_0x427210){const _0x5a0ad7=_0x718ea9;let _0x21796b={};const _0xc4fc78={},_0x254501={'count':0x0,'rows':[]},_0x4d9603=_[_0x5a0ad7('0x29')](db[_0x5a0ad7('0x1e')]['rawAttributes'],function(_0xd37b8a){const _0x118a74=_0x5a0ad7;return{'name':_0xd37b8a[_0x118a74('0x10')],'type':_0xd37b8a['type'][_0x118a74('0x17')]};});_0xc4fc78[_0x5a0ad7('0x5')]=_[_0x5a0ad7('0x29')](_0x4d9603,'name'),_0xc4fc78['query']=_[_0x5a0ad7('0x2b')](_0x324e40[_0x5a0ad7('0x1f')]),_0xc4fc78['filters']=_['intersection'](_0xc4fc78[_0x5a0ad7('0x5')],_0xc4fc78[_0x5a0ad7('0x1f')]),_0x21796b[_0x5a0ad7('0x24')]=_[_0x5a0ad7('0x1c')](_0xc4fc78[_0x5a0ad7('0x5')],qs[_0x5a0ad7('0xb')](_0x324e40['query']['fields'])),_0x21796b[_0x5a0ad7('0x24')]=_0x21796b['attributes'][_0x5a0ad7('0x26')]?_0x21796b[_0x5a0ad7('0x24')]:_0xc4fc78['model'];typeof _0x324e40[_0x5a0ad7('0x1f')][_0x5a0ad7('0x21')]===_0x5a0ad7('0x2e')&&(_0x21796b['limit']=qs[_0x5a0ad7('0x22')](_0x324e40['query']['limit']),_0x21796b[_0x5a0ad7('0x0')]=qs[_0x5a0ad7('0x0')](_0x324e40['query'][_0x5a0ad7('0x0')]));_0x21796b[_0x5a0ad7('0x3')]=qs[_0x5a0ad7('0xe')](_0x324e40['query'][_0x5a0ad7('0xe')]),_0x21796b[_0x5a0ad7('0x18')]=qs['filters'](_[_0x5a0ad7('0x28')](_0x324e40[_0x5a0ad7('0x1f')],_0xc4fc78['filters']),_0x4d9603);_0x324e40['query'][_0x5a0ad7('0x13')]&&(_0x21796b[_0x5a0ad7('0x18')]=_[_0x5a0ad7('0xc')](_0x21796b['where'],{[Op['or']]:_[_0x5a0ad7('0x29')](_0x4d9603,function(_0x1e83f3){const _0x5e10b5=_0x5a0ad7;if(_0x1e83f3[_0x5e10b5('0x11')]!==_0x5e10b5('0x30')){const _0x5bc183={};return _0x5bc183[_0x1e83f3['name']]={[Op[_0x5e10b5('0x4')]]:'%'+_0x324e40[_0x5e10b5('0x1f')][_0x5e10b5('0x13')]+'%'},_0x5bc183;}})}));_0x21796b=_['merge']({},_0x21796b,_0x324e40[_0x5a0ad7('0x16')]);const _0x470134={'where':_0x21796b[_0x5a0ad7('0x18')]};return db[_0x5a0ad7('0x1e')][_0x5a0ad7('0xa')](_0x470134)[_0x5a0ad7('0x2')](function(_0xd91a05){const _0x5821ea=_0x5a0ad7;return _0x254501[_0x5821ea('0xa')]=_0xd91a05,_0x324e40[_0x5821ea('0x1f')][_0x5821ea('0x15')]&&(_0x21796b[_0x5821ea('0x9')]=[{'all':!![]}]),db[_0x5821ea('0x1e')]['findAll'](_0x21796b);})[_0x5a0ad7('0x2')](function(_0x57cfcb){return _0x254501['rows']=_0x57cfcb,_0x254501;})[_0x5a0ad7('0x2')](respondWithFilteredResult(_0x427210,_0x21796b))[_0x5a0ad7('0xf')](handleError(_0x427210,null));},exports[_0x718ea9('0x2d')]=function(_0x5c5ed6,_0x5acbde){const _0x51f89b=_0x718ea9;let _0x3bfced={'raw':![],'where':{'id':_0x5c5ed6[_0x51f89b('0x33')]['id']}};const _0xe214f9={};return _0xe214f9['model']=_[_0x51f89b('0x2b')](db['IntegrationReport'][_0x51f89b('0x25')]),_0xe214f9[_0x51f89b('0x1f')]=_[_0x51f89b('0x2b')](_0x5c5ed6['query']),_0xe214f9[_0x51f89b('0x32')]=_[_0x51f89b('0x1c')](_0xe214f9[_0x51f89b('0x5')],_0xe214f9[_0x51f89b('0x1f')]),_0x3bfced['attributes']=_[_0x51f89b('0x1c')](_0xe214f9[_0x51f89b('0x5')],qs[_0x51f89b('0xb')](_0x5c5ed6['query'][_0x51f89b('0xb')])),_0x3bfced[_0x51f89b('0x24')]=_0x3bfced['attributes'][_0x51f89b('0x26')]?_0x3bfced[_0x51f89b('0x24')]:_0xe214f9['model'],_0x5c5ed6['query']['includeAll']&&(_0x3bfced[_0x51f89b('0x9')]=[{'all':!![]}]),_0x3bfced=_[_0x51f89b('0xc')]({},_0x3bfced,_0x5c5ed6[_0x51f89b('0x16')]),db[_0x51f89b('0x1e')][_0x51f89b('0x2f')](_0x3bfced)[_0x51f89b('0x2')](handleEntityNotFound(_0x5acbde,null))[_0x51f89b('0x2')](respondWithResult(_0x5acbde,null))[_0x51f89b('0xf')](handleError(_0x5acbde,null));},exports['create']=function(_0xe1366,_0x50b5b1){const _0x136604=_0x718ea9;return db[_0x136604('0x1e')][_0x136604('0x2a')](_0xe1366[_0x136604('0x1')],{})['then'](respondWithResult(_0x50b5b1,0xc9))[_0x136604('0xf')](handleError(_0x50b5b1,null));},exports[_0x718ea9('0x14')]=function(_0x36ace5,_0x12bd73){const _0x571b94=_0x718ea9;return _0x36ace5[_0x571b94('0x1')]['id']&&delete _0x36ace5[_0x571b94('0x1')]['id'],db[_0x571b94('0x1e')]['findOne']({'where':{'id':_0x36ace5[_0x571b94('0x33')]['id']}})[_0x571b94('0x2')](handleEntityNotFound(_0x12bd73,null))[_0x571b94('0x2')](saveUpdates(_0x36ace5['body'],null))[_0x571b94('0x2')](respondWithResult(_0x12bd73,null))['catch'](handleError(_0x12bd73,null));},exports[_0x718ea9('0x1b')]=function(_0x2ff74a,_0x3ae570){const _0x445027=_0x718ea9;return db[_0x445027('0x1e')][_0x445027('0x2f')]({'where':{'id':_0x2ff74a[_0x445027('0x33')]['id']}})[_0x445027('0x2')](handleEntityNotFound(_0x3ae570,null))[_0x445027('0x2')](removeEntity(_0x3ae570,null))[_0x445027('0xf')](handleError(_0x3ae570,null));},exports[_0x718ea9('0xd')]=function(_0x40c52c,_0x502cee){const _0x5b6aa0=_0x718ea9;return db['IntegrationReport'][_0x5b6aa0('0xd')]()['then'](respondWithResult(_0x502cee,null))[_0x5b6aa0('0xf')](handleError(_0x502cee,null));}; \ No newline at end of file +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 diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index 31589b9..c9ed96c 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a364_0x55ae=['exports','define'];(function(_0x1c26a5,_0x55ae3e){const _0x87b43a=function(_0x390b87){while(--_0x390b87){_0x1c26a5['push'](_0x1c26a5['shift']());}};_0x87b43a(++_0x55ae3e);}(a364_0x55ae,0x114));const a364_0x87b4=function(_0x1c26a5,_0x55ae3e){_0x1c26a5=_0x1c26a5-0x0;let _0x87b43a=a364_0x55ae[_0x1c26a5];return _0x87b43a;};const _0x13ac57=a364_0x87b4;'use strict';const attributes=require('./integrationReport.attributes');module[_0x13ac57('0x0')]=function(_0x390b87){const _0x43f4f1=_0x13ac57,_0x45c4de=_0x390b87[_0x43f4f1('0x1')]('IntegrationReport',attributes,{'tableName':'report_integration','paranoid':![],'indexes':[],'timestamps':!![]});return _0x45c4de;}; \ No newline at end of file +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 diff --git a/server/api/interval/index.js b/server/api/interval/index.js index 82c585d..98ac86e 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a365_0x2f02=['/:id/sub_intervals','isAuthenticated','exports','./interval.controller','put','post','delete','/:id','express','get','addInterval','destroy','../../components/auth/service','create','index','update','show','addIntervals','Router'];(function(_0xce78db,_0x2f02e3){const _0x3163db=function(_0x3d45ba){while(--_0x3d45ba){_0xce78db['push'](_0xce78db['shift']());}};_0x3163db(++_0x2f02e3);}(a365_0x2f02,0x8e));const a365_0x3163=function(_0xce78db,_0x2f02e3){_0xce78db=_0xce78db-0x0;let _0x3163db=a365_0x2f02[_0xce78db];return _0x3163db;};const _0x11c5b3=a365_0x3163;'use strict';const express=require(_0x11c5b3('0x12')),router=express[_0x11c5b3('0x9')](),auth=require(_0x11c5b3('0x3')),controller=require(_0x11c5b3('0xd'));router[_0x11c5b3('0x0')]('/',auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x5')]),router[_0x11c5b3('0x0')](_0x11c5b3('0x11'),auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x7')]),router[_0x11c5b3('0x0')](_0x11c5b3('0xa'),auth[_0x11c5b3('0xb')](),controller['getIntervals']),router[_0x11c5b3('0xf')]('/',auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x4')]),router['post'](_0x11c5b3('0xa'),auth['isAuthenticated'](),controller[_0x11c5b3('0x1')]),router[_0x11c5b3('0xf')]('/:id/sub_intervals/create_many',auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x8')]),router[_0x11c5b3('0xe')]('/:id',auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x6')]),router[_0x11c5b3('0x10')](_0x11c5b3('0x11'),auth[_0x11c5b3('0xb')](),controller[_0x11c5b3('0x2')]),module[_0x11c5b3('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index 495040d..bbce664 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a366_0x3a3f=['exports','sequelize','STRING'];(function(_0x5ea54f,_0x3a3f22){const _0x2dfc13=function(_0x493090){while(--_0x493090){_0x5ea54f['push'](_0x5ea54f['shift']());}};_0x2dfc13(++_0x3a3f22);}(a366_0x3a3f,0x1e9));const a366_0x2dfc=function(_0x5ea54f,_0x3a3f22){_0x5ea54f=_0x5ea54f-0x0;let _0x2dfc13=a366_0x3a3f[_0x5ea54f];return _0x2dfc13;};const _0x22afc0=a366_0x2dfc;'use strict';const Sequelize=require(_0x22afc0('0x1'));module[_0x22afc0('0x0')]={'name':{'type':Sequelize[_0x22afc0('0x2')]},'description':{'type':Sequelize[_0x22afc0('0x2')]},'interval':{'type':Sequelize[_0x22afc0('0x2')],'allowNull':!![]}}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index a6ed919..bed29de 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a367_0x4fcb=['nolimit','destroy','IntervalId','catch','type','query','filter','order','api','VIRTUAL','get','keys','create','error','end','Intervals','key','undefined','like','where','../../config/logger','json','send','role','Unable\x20to\x20retrieve\x20the\x20current\x20user','then','options','merge','lodash','Content-Range','rawAttributes','length','Interval','model','findOne','addIntervals','fieldName','sendStatus','filters','getIntervals','map','stack','body','name','UserProfileSection','../../mysqldb','../../components/parsers/qs','include','addInterval','index','sequelize','limit','update','intersection','transaction','pick','offset','sort','params','includeAll','fields','UserProfileResource','set','attributes','status','user','show','count'];(function(_0x464048,_0x4fcba0){const _0x4ec93c=function(_0x43f665){while(--_0x43f665){_0x464048['push'](_0x464048['shift']());}};_0x4ec93c(++_0x4fcba0);}(a367_0x4fcb,0x17f));const a367_0x4ec9=function(_0x464048,_0x4fcba0){_0x464048=_0x464048-0x0;let _0x4ec93c=a367_0x4fcb[_0x464048];return _0x4ec93c;};const _0x243413=a367_0x4ec9;'use strict';const _=require(_0x243413('0x35')),qs=require(_0x243413('0x3')),logger=require(_0x243413('0x2d'))(_0x243413('0x21')),db=require(_0x243413('0x2'))['db'],{Op}=require(_0x243413('0x7'));function respondWithResult(_0x43f665,_0x5f0a83){return _0x5f0a83=_0x5f0a83||0xc8,function(_0xc5105d){const _0x26550d=a367_0x4ec9;if(_0xc5105d)return _0x43f665['status'](_0x5f0a83)[_0x26550d('0x2e')](_0xc5105d);};}function respondWithFilteredResult(_0x3f5609,_0x3f72a9){return function(_0x42f901){const _0x275245=a367_0x4ec9;if(_0x42f901){const _0x3ffa54=_0x42f901[_0x275245('0x18')],_0x412571=_0x3f72a9[_0x275245('0xd')];let _0x2d05c0=_0x3f72a9['offset']+_0x3f72a9['limit'],_0x31d74f;return _0x2d05c0>=_0x3ffa54?(_0x2d05c0=_0x3ffa54,_0x31d74f=0xc8):_0x31d74f=0xce,_0x3f5609[_0x275245('0x15')](_0x31d74f),_0x3f5609[_0x275245('0x13')](_0x275245('0x36'),_0x412571+'-'+_0x2d05c0+'/'+_0x3ffa54)[_0x275245('0x2e')](_0x42f901);}return null;};}function saveUpdates(_0x504627){return function(_0x3a883b){const _0x136679=a367_0x4ec9;if(_0x3a883b)return _0x3a883b['update'](_0x504627)[_0x136679('0x32')](function(_0x3d79fd){return _0x3d79fd;});return null;};}function removeEntity(_0x35f34a){return function(_0x100be5){const _0x2ba260=a367_0x4ec9;if(_0x100be5)return _0x100be5['destroy']()[_0x2ba260('0x32')](function(){const _0x7f49b4=_0x2ba260,_0x3327cb=_0x100be5[_0x7f49b4('0x23')]({'plain':!![]}),_0x3d4bad=_0x7f49b4('0x28');return db['UserProfileResource'][_0x7f49b4('0x1a')]({'where':{'type':_0x3d4bad,'resourceId':_0x3327cb['id']}})[_0x7f49b4('0x32')](function(){return _0x100be5;});})[_0x2ba260('0x32')](function(){const _0x1fd55d=_0x2ba260;_0x35f34a[_0x1fd55d('0x15')](0xcc)[_0x1fd55d('0x27')]();});};}function handleEntityNotFound(_0x2f6f14){return function(_0x4569ce){const _0x2b5e4e=a367_0x4ec9;return!_0x4569ce&&_0x2f6f14[_0x2b5e4e('0x3e')](0x194),_0x4569ce;};}function handleError(_0x408e24,_0x5c8245){return _0x5c8245=_0x5c8245||0x1f4,function(_0x1d9335){const _0x30a62a=a367_0x4ec9;logger[_0x30a62a('0x26')](_0x1d9335[_0x30a62a('0x42')]),_0x1d9335[_0x30a62a('0x0')]&&delete _0x1d9335[_0x30a62a('0x0')],_0x408e24['status'](_0x5c8245)[_0x30a62a('0x2f')](_0x1d9335);};}exports[_0x243413('0x6')]=function(_0x532e47,_0x1fdaaa){const _0x33e621=_0x243413;let _0x4f72be={};const _0x27fc3f={},_0x4def50={'count':0x0,'rows':[]},_0x732f2c=_[_0x33e621('0x41')](db['Interval'][_0x33e621('0x37')],function(_0xf3e968){const _0x272ce7=_0x33e621;return{'name':_0xf3e968[_0x272ce7('0x3d')],'type':_0xf3e968[_0x272ce7('0x1d')][_0x272ce7('0x29')]};});_0x27fc3f[_0x33e621('0x3a')]=_['map'](_0x732f2c,_0x33e621('0x0')),_0x27fc3f['query']=_['keys'](_0x532e47[_0x33e621('0x1e')]),_0x27fc3f[_0x33e621('0x3f')]=_['intersection'](_0x27fc3f[_0x33e621('0x3a')],_0x27fc3f[_0x33e621('0x1e')]),_0x4f72be[_0x33e621('0x14')]=_[_0x33e621('0xa')](_0x27fc3f[_0x33e621('0x3a')],qs['fields'](_0x532e47[_0x33e621('0x1e')][_0x33e621('0x11')])),_0x4f72be[_0x33e621('0x14')]=_0x4f72be[_0x33e621('0x14')][_0x33e621('0x38')]?_0x4f72be[_0x33e621('0x14')]:_0x27fc3f[_0x33e621('0x3a')];typeof _0x532e47['query'][_0x33e621('0x19')]===_0x33e621('0x2a')&&(_0x4f72be['limit']=qs[_0x33e621('0x8')](_0x532e47[_0x33e621('0x1e')][_0x33e621('0x8')]),_0x4f72be['offset']=qs['offset'](_0x532e47[_0x33e621('0x1e')][_0x33e621('0xd')]));_0x4f72be[_0x33e621('0x20')]=qs[_0x33e621('0xe')](_0x532e47[_0x33e621('0x1e')]['sort']),_0x4f72be['where']=qs['filters'](_[_0x33e621('0xc')](_0x532e47[_0x33e621('0x1e')],_0x27fc3f[_0x33e621('0x3f')]),_0x732f2c);_0x532e47[_0x33e621('0x1e')]['filter']&&(_0x4f72be[_0x33e621('0x2c')]=_[_0x33e621('0x34')](_0x4f72be[_0x33e621('0x2c')],{[Op['or']]:_['map'](_0x732f2c,function(_0x40d65e){const _0x58b269=_0x33e621;if(_0x40d65e['type']!==_0x58b269('0x22')){const _0x4f5a64={};return _0x4f5a64[_0x40d65e[_0x58b269('0x0')]]={[Op[_0x58b269('0x2b')]]:'%'+_0x532e47[_0x58b269('0x1e')][_0x58b269('0x1f')]+'%'},_0x4f5a64;}})}));_0x4f72be=_['merge']({},_0x4f72be,_0x532e47['options']);const _0x353328={'where':_0x4f72be[_0x33e621('0x2c')]};return db['Interval']['count'](_0x353328)[_0x33e621('0x32')](function(_0xf6389){const _0x1ab4ee=_0x33e621;return _0x4def50['count']=_0xf6389,_0x532e47[_0x1ab4ee('0x1e')]['includeAll']&&(_0x4f72be[_0x1ab4ee('0x4')]=[{'all':!![]}]),db[_0x1ab4ee('0x39')]['findAll'](_0x4f72be);})[_0x33e621('0x32')](function(_0x3a75b3){return _0x4def50['rows']=_0x3a75b3,_0x4def50;})[_0x33e621('0x32')](respondWithFilteredResult(_0x1fdaaa,_0x4f72be))[_0x33e621('0x1c')](handleError(_0x1fdaaa,null));},exports[_0x243413('0x17')]=function(_0x231b98,_0xd4c0e0){const _0x286889=_0x243413;let _0x1046eb={'raw':!![],'where':{'id':_0x231b98[_0x286889('0xf')]['id']}};const _0x5abc49={};return _0x5abc49['model']=_['keys'](db[_0x286889('0x39')]['rawAttributes']),_0x5abc49[_0x286889('0x1e')]=_[_0x286889('0x24')](_0x231b98[_0x286889('0x1e')]),_0x5abc49[_0x286889('0x3f')]=_[_0x286889('0xa')](_0x5abc49['model'],_0x5abc49['query']),_0x1046eb[_0x286889('0x14')]=_['intersection'](_0x5abc49['model'],qs[_0x286889('0x11')](_0x231b98[_0x286889('0x1e')][_0x286889('0x11')])),_0x1046eb[_0x286889('0x14')]=_0x1046eb[_0x286889('0x14')][_0x286889('0x38')]?_0x1046eb[_0x286889('0x14')]:_0x5abc49['model'],_0x231b98[_0x286889('0x1e')][_0x286889('0x10')]&&(_0x1046eb[_0x286889('0x4')]=[{'all':!![]}]),_0x1046eb=_['merge']({},_0x1046eb,_0x231b98['options']),db['Interval'][_0x286889('0x3b')](_0x1046eb)[_0x286889('0x32')](handleEntityNotFound(_0xd4c0e0,null))['then'](respondWithResult(_0xd4c0e0,null))[_0x286889('0x1c')](handleError(_0xd4c0e0,null));},exports[_0x243413('0x25')]=function(_0x26394c,_0x4b505e){const _0x5212a6=_0x243413;return db[_0x5212a6('0x39')][_0x5212a6('0x25')](_0x26394c[_0x5212a6('0x43')],{})[_0x5212a6('0x32')](function(_0x2afd68){const _0x98711f=_0x5212a6,_0x452b42=_0x26394c['user'][_0x98711f('0x23')]({'plain':!![]});if(!_0x452b42)throw new Error(_0x98711f('0x31'));if(_0x452b42[_0x98711f('0x30')]===_0x98711f('0x16')){const _0x30e6ea=_0x2afd68['get']({'plain':!![]}),_0x11dba4=_0x98711f('0x28');return db[_0x98711f('0x1')]['findOne']({'where':{'name':_0x11dba4,'userProfileId':_0x452b42['userProfileId']},'raw':!![]})[_0x98711f('0x32')](function(_0x486200){const _0x4183d3=_0x98711f;return _0x486200&&_0x486200['autoAssociation']===0x0?db[_0x4183d3('0x12')][_0x4183d3('0x25')]({'name':_0x30e6ea[_0x4183d3('0x0')],'resourceId':_0x30e6ea['id'],'type':_0x486200['name'],'sectionId':_0x486200['id']},{})[_0x4183d3('0x32')](function(){return _0x2afd68;}):_0x2afd68;})['catch'](function(_0x411463){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x411463);throw _0x411463;});}return _0x2afd68;})[_0x5212a6('0x32')](respondWithResult(_0x4b505e,0xc9))[_0x5212a6('0x1c')](handleError(_0x4b505e,null));},exports[_0x243413('0x9')]=function(_0x116eb0,_0x132b2d){const _0x29fc37=_0x243413;return _0x116eb0['body']['id']&&delete _0x116eb0[_0x29fc37('0x43')]['id'],db[_0x29fc37('0x39')][_0x29fc37('0x3b')]({'where':{'id':_0x116eb0['params']['id']}})[_0x29fc37('0x32')](handleEntityNotFound(_0x132b2d,null))[_0x29fc37('0x32')](saveUpdates(_0x116eb0[_0x29fc37('0x43')],null))[_0x29fc37('0x32')](respondWithResult(_0x132b2d,null))[_0x29fc37('0x1c')](handleError(_0x132b2d,null));},exports[_0x243413('0x1a')]=function(_0x2a591d,_0x3c8f0d){const _0x1f0ec8=_0x243413;return db[_0x1f0ec8('0x39')][_0x1f0ec8('0x3b')]({'where':{'id':_0x2a591d[_0x1f0ec8('0xf')]['id']}})['then'](handleEntityNotFound(_0x3c8f0d,null))[_0x1f0ec8('0x32')](removeEntity(_0x3c8f0d,null))[_0x1f0ec8('0x1c')](handleError(_0x3c8f0d,null));},exports[_0x243413('0x5')]=function(_0x3160c1,_0x1b088a){const _0x49580c=_0x243413;return _0x3160c1[_0x49580c('0x43')]['id']&&delete _0x3160c1[_0x49580c('0x43')]['id'],db[_0x49580c('0x39')][_0x49580c('0x3b')]({'where':{'id':_0x3160c1[_0x49580c('0xf')]['id']}})[_0x49580c('0x32')](handleEntityNotFound(_0x1b088a,null))['then'](function(_0x1276a4){const _0x3ba61=_0x49580c;if(_0x1276a4)return _0x3160c1[_0x3ba61('0x43')][_0x3ba61('0x1b')]=_0x1276a4['id'],db[_0x3ba61('0x39')][_0x3ba61('0x25')](_0x3160c1[_0x3ba61('0x43')]);})[_0x49580c('0x32')](respondWithResult(_0x1b088a,null))[_0x49580c('0x1c')](handleError(_0x1b088a,null));},exports[_0x243413('0x40')]=function(_0x175381,_0x5075f8){const _0x365fb2=_0x243413;let _0x7b0b82={};const _0x29947d={};let _0x2f21aa,_0x54e84a;return db[_0x365fb2('0x39')][_0x365fb2('0x3b')]({'where':{'id':_0x175381[_0x365fb2('0xf')]['id']}})[_0x365fb2('0x32')](handleEntityNotFound(_0x5075f8,null))[_0x365fb2('0x32')](function(_0x226e8d){const _0x95c027=_0x365fb2;if(_0x226e8d)return _0x2f21aa=_0x226e8d,_0x29947d[_0x95c027('0x3a')]=_[_0x95c027('0x24')](db[_0x95c027('0x39')][_0x95c027('0x37')]),_0x29947d[_0x95c027('0x1e')]=_['keys'](_0x175381['query']),_0x29947d['filters']=_[_0x95c027('0xa')](_0x29947d['model'],_0x29947d[_0x95c027('0x1e')]),_0x7b0b82['attributes']=_[_0x95c027('0xa')](_0x29947d[_0x95c027('0x3a')],qs[_0x95c027('0x11')](_0x175381[_0x95c027('0x1e')][_0x95c027('0x11')])),_0x7b0b82[_0x95c027('0x14')]=_0x7b0b82[_0x95c027('0x14')]['length']?_0x7b0b82[_0x95c027('0x14')]:_0x29947d[_0x95c027('0x3a')],_0x7b0b82['order']=qs[_0x95c027('0xe')](_0x175381['query']['sort']),_0x7b0b82[_0x95c027('0x2c')]=qs['filters'](_[_0x95c027('0xc')](_0x175381[_0x95c027('0x1e')],_0x29947d[_0x95c027('0x3f')])),_0x175381['query']['filter']&&(_0x7b0b82[_0x95c027('0x2c')]=_['merge'](_0x7b0b82[_0x95c027('0x2c')],{[Op['or']]:_[_0x95c027('0x41')](_0x7b0b82[_0x95c027('0x14')],function(_0x555579){const _0x4f8921=_0x95c027,_0x5220b4={};return _0x5220b4[_0x555579]={[Op[_0x4f8921('0x2b')]]:'%'+_0x175381['query']['filter']+'%'},_0x5220b4;})})),_0x7b0b82=_['merge']({},_0x7b0b82,_0x175381[_0x95c027('0x33')]),_0x2f21aa['getIntervals'](_0x7b0b82);})[_0x365fb2('0x32')](function(_0x24a8d1){const _0x131c14=_0x365fb2;if(_0x24a8d1)return _0x54e84a=_0x24a8d1[_0x131c14('0x38')],typeof _0x175381['query']['nolimit']==='undefined'&&(_0x7b0b82[_0x131c14('0x8')]=qs[_0x131c14('0x8')](_0x175381[_0x131c14('0x1e')][_0x131c14('0x8')]),_0x7b0b82[_0x131c14('0xd')]=qs[_0x131c14('0xd')](_0x175381[_0x131c14('0x1e')][_0x131c14('0xd')])),_0x2f21aa[_0x131c14('0x40')](_0x7b0b82);})['then'](function(_0x1dbc9b){if(_0x1dbc9b)return _0x1dbc9b?{'count':_0x54e84a,'rows':_0x1dbc9b}:null;})[_0x365fb2('0x32')](respondWithResult(_0x5075f8,null))[_0x365fb2('0x1c')](handleError(_0x5075f8,null));},exports[_0x243413('0x3c')]=function(_0x5184f0,_0x4a0847){const _0xc914e6=_0x243413;return db['Interval'][_0xc914e6('0x3b')]({'where':{'id':_0x5184f0[_0xc914e6('0xf')]['id']}})[_0xc914e6('0x32')](handleEntityNotFound(_0x4a0847,null))[_0xc914e6('0x32')](function(_0x5d6f61){const _0x3f5837=_0xc914e6;if(_0x5d6f61)return db[_0x3f5837('0x7')][_0x3f5837('0xb')](function(_0x27a0ba){const _0x49a624=_0x3f5837;return db[_0x49a624('0x39')][_0x49a624('0x1a')]({'where':{'IntervalId':_0x5184f0[_0x49a624('0xf')]['id']},'transaction':_0x27a0ba})[_0x49a624('0x32')](function(){const _0x625b29=_0x49a624,_0x3cd7ca=_[_0x625b29('0x41')](_0x5184f0[_0x625b29('0x43')],function(_0x28b92b){const _0x333ace=_0x625b29;return delete _0x28b92b['id'],_0x28b92b[_0x333ace('0x1b')]=_0x5184f0['params']['id'],_0x28b92b;});return db['Interval']['bulkCreate'](_0x3cd7ca,{'transaction':_0x27a0ba});});})['then'](function(){const _0x2bc89f=_0x3f5837;return db[_0x2bc89f('0x39')]['findAll']({'where':{'IntervalId':_0x5184f0[_0x2bc89f('0xf')]['id']}});});})[_0xc914e6('0x32')](respondWithResult(_0x4a0847,null))['catch'](handleError(_0x4a0847,null));}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index e05fbc4..c115c7a 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a368_0x1592=['../../components/extensions/rewrite','exports','Interval','tools_intervals','define','rewrite','./interval.attributes'];(function(_0x11fd13,_0x15925a){const _0x18b5f1=function(_0x4b3bf0){while(--_0x4b3bf0){_0x11fd13['push'](_0x11fd13['shift']());}};_0x18b5f1(++_0x15925a);}(a368_0x1592,0x146));const a368_0x18b5=function(_0x11fd13,_0x15925a){_0x11fd13=_0x11fd13-0x0;let _0x18b5f1=a368_0x1592[_0x11fd13];return _0x18b5f1;};const _0x1e6c73=a368_0x18b5;'use strict';const attributes=require(_0x1e6c73('0x2')),extensions=require(_0x1e6c73('0x3'));module[_0x1e6c73('0x4')]=function(_0x4b3bf0){const _0x30310c=_0x1e6c73,_0x2b7943=_0x4b3bf0[_0x30310c('0x0')](_0x30310c('0x5'),attributes,{'tableName':_0x30310c('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x50d4f5){const _0x234a42=_0x30310c;extensions[_0x234a42('0x1')](_0x4b3bf0,_0x50d4f5);},'afterBulkCreate':function(_0x1d60d0){extensions['rewrite'](_0x4b3bf0,_0x1d60d0[0x0]);},'afterUpdate':function(_0x377f8c){const _0x239314=_0x30310c;extensions[_0x239314('0x1')](_0x4b3bf0,_0x377f8c);},'afterDestroy':function(_0x4341ab){const _0x1ed3c4=_0x30310c;extensions[_0x1ed3c4('0x1')](_0x4b3bf0,_0x4341ab);}}});return _0x2b7943;}; \ No newline at end of file +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 diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index f0124e3..5062ef7 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a369_0x18d7=['catch','attributes','limit','debug','include','error','model','options','map','GetInterval','../../config/logger','stringify','message','then','info','where','findOne','ShowInterval','raw','findAll','lodash'];(function(_0x5e0720,_0x18d7d3){const _0x4abe59=function(_0x46ac1a){while(--_0x46ac1a){_0x5e0720['push'](_0x5e0720['shift']());}};_0x4abe59(++_0x18d7d3);}(a369_0x18d7,0x95));const a369_0x4abe=function(_0x5e0720,_0x18d7d3){_0x5e0720=_0x5e0720-0x0;let _0x4abe59=a369_0x18d7[_0x5e0720];return _0x4abe59;};const _0x9cee81=a369_0x4abe;'use strict';const _=require(_0x9cee81('0x12')),db=require('../../mysqldb')['db'],logger=require(_0x9cee81('0x8'))('rpc');exports[_0x9cee81('0x7')]=function(_0x46ac1a){const _0x5deb5b=this;return new Promise(function(_0x28b273,_0x59bf13){const _0x5b68cb=a369_0x4abe;return db['Interval'][_0x5b68cb('0x11')]({'raw':_0x46ac1a[_0x5b68cb('0x5')]?_0x46ac1a[_0x5b68cb('0x5')][_0x5b68cb('0x10')]===undefined?!![]:![]:!![],'where':_0x46ac1a[_0x5b68cb('0x5')]?_0x46ac1a[_0x5b68cb('0x5')][_0x5b68cb('0xd')]||null:null,'attributes':_0x46ac1a[_0x5b68cb('0x5')]?_0x46ac1a['options'][_0x5b68cb('0x14')]||null:null,'limit':_0x46ac1a['options']?_0x46ac1a[_0x5b68cb('0x5')][_0x5b68cb('0x0')]||null:null,'include':_0x46ac1a[_0x5b68cb('0x5')]?_0x46ac1a[_0x5b68cb('0x5')][_0x5b68cb('0x2')]?_[_0x5b68cb('0x6')](_0x46ac1a[_0x5b68cb('0x5')][_0x5b68cb('0x2')],function(_0xd84d35){const _0x4ec15b=_0x5b68cb;return{'model':db[_0xd84d35[_0x4ec15b('0x4')]],'as':_0xd84d35['as'],'attributes':_0xd84d35[_0x4ec15b('0x14')],'include':_0xd84d35[_0x4ec15b('0x2')]?_[_0x4ec15b('0x6')](_0xd84d35[_0x4ec15b('0x2')],function(_0x48a00d){const _0x1c17e6=_0x4ec15b;return{'model':db[_0x48a00d['model']],'as':_0x48a00d['as'],'attributes':_0x48a00d['attributes'],'include':_0x48a00d[_0x1c17e6('0x2')]?_[_0x1c17e6('0x6')](_0x48a00d[_0x1c17e6('0x2')],function(_0x5de3ea){const _0x38b688=_0x1c17e6;return{'model':db[_0x5de3ea[_0x38b688('0x4')]],'as':_0x5de3ea['as'],'attributes':_0x5de3ea[_0x38b688('0x14')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x25de83){const _0x124273=_0x5b68cb;logger['info'](_0x124273('0x7'),_0x46ac1a),logger[_0x124273('0x1')]('GetInterval',_0x46ac1a,JSON[_0x124273('0x9')](_0x25de83)),_0x28b273(_0x25de83);})[_0x5b68cb('0x13')](function(_0x51bc0f){const _0x25f167=_0x5b68cb;logger['error'](_0x25f167('0x7'),_0x51bc0f[_0x25f167('0xa')],_0x46ac1a),_0x59bf13(_0x5deb5b[_0x25f167('0x3')](0x1f4,_0x51bc0f[_0x25f167('0xa')]));});});},exports['ShowInterval']=function(_0x2aadee){const _0x3a6816=this;return new Promise(function(_0x3f0f33,_0x5c8ffc){const _0x53f542=a369_0x4abe;return db['Interval'][_0x53f542('0xe')]({'raw':_0x2aadee[_0x53f542('0x5')]?_0x2aadee[_0x53f542('0x5')][_0x53f542('0x10')]===undefined?!![]:![]:!![],'where':_0x2aadee[_0x53f542('0x5')]?_0x2aadee[_0x53f542('0x5')][_0x53f542('0xd')]||null:null,'attributes':_0x2aadee[_0x53f542('0x5')]?_0x2aadee['options'][_0x53f542('0x14')]||null:null,'include':_0x2aadee[_0x53f542('0x5')]?_0x2aadee[_0x53f542('0x5')]['include']?_[_0x53f542('0x6')](_0x2aadee[_0x53f542('0x5')][_0x53f542('0x2')],function(_0x11984e){const _0x5ad2f4=_0x53f542;return{'model':db[_0x11984e['model']],'as':_0x11984e['as'],'attributes':_0x11984e[_0x5ad2f4('0x14')],'include':_0x11984e['include']?_['map'](_0x11984e[_0x5ad2f4('0x2')],function(_0x51e180){const _0x58e787=_0x5ad2f4;return{'model':db[_0x51e180['model']],'as':_0x51e180['as'],'attributes':_0x51e180['attributes'],'include':_0x51e180[_0x58e787('0x2')]?_[_0x58e787('0x6')](_0x51e180[_0x58e787('0x2')],function(_0x8672ae){const _0x476330=_0x58e787;return{'model':db[_0x8672ae[_0x476330('0x4')]],'as':_0x8672ae['as'],'attributes':_0x8672ae[_0x476330('0x14')]};}):[]};}):[]};}):[]:[]})[_0x53f542('0xb')](function(_0x3aeb4b){const _0x1f21e1=_0x53f542;logger[_0x1f21e1('0xc')](_0x1f21e1('0xf'),_0x2aadee),logger['debug'](_0x1f21e1('0xf'),_0x2aadee,JSON[_0x1f21e1('0x9')](_0x3aeb4b)),_0x3f0f33(_0x3aeb4b);})['catch'](function(_0x3a3228){const _0x1fc2e2=_0x53f542;logger[_0x1fc2e2('0x3')](_0x1fc2e2('0xf'),_0x3a3228['message'],_0x2aadee),_0x5c8ffc(_0x3a6816[_0x1fc2e2('0x3')](0x1f4,_0x3a3228[_0x1fc2e2('0xa')]));});});}; \ No newline at end of file +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 diff --git a/server/api/jira/index.js b/server/api/jira/index.js index 5a86081..ba63d73 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a370_0x3f9e=['isAuthenticated','post','./jira.controller','send','../../components/auth/service','express','Router','exports'];(function(_0x27d86d,_0x3f9e55){const _0x55186e=function(_0x2698fd){while(--_0x2698fd){_0x27d86d['push'](_0x27d86d['shift']());}};_0x55186e(++_0x3f9e55);}(a370_0x3f9e,0x8e));const a370_0x5518=function(_0x27d86d,_0x3f9e55){_0x27d86d=_0x27d86d-0x0;let _0x55186e=a370_0x3f9e[_0x27d86d];return _0x55186e;};const _0x402d2f=a370_0x5518;'use strict';const express=require(_0x402d2f('0x7')),router=express[_0x402d2f('0x0')](),auth=require(_0x402d2f('0x6')),controller=require(_0x402d2f('0x4'));router[_0x402d2f('0x3')]('/',auth[_0x402d2f('0x2')](),controller[_0x402d2f('0x5')]),module[_0x402d2f('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index 08ff013..eaac6e3 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a371_0x5361=['customfield_11503','summary','newToken','oldToken','json','customfield_11504','socket','statusCode','application/json','write','/rest/api/2/issue','MOTGUI','connection','error','parse','email','data','\x20from\x20','reason','from','POST','body','customfield_11502','api.jira','openIssue','send','key','support','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','stringify','utf8','toString','Report','status','3eAmWpBVP0','customfield_11500','headers','fields','end','description','remoteAddress','https','setEncoding','Bug'];(function(_0xa7b679,_0x53618f){const _0x2bc04a=function(_0x2f639a){while(--_0x2f639a){_0xa7b679['push'](_0xa7b679['shift']());}};_0x2bc04a(++_0x53618f);}(a371_0x5361,0x96));const a371_0x2bc0=function(_0xa7b679,_0x53618f){_0xa7b679=_0xa7b679-0x0;let _0x2bc04a=a371_0x5361[_0xa7b679];return _0x2bc04a;};const _0x4e484e=a371_0x2bc0;'use strict';const https=require(_0x4e484e('0x17')),USERNAME=_0x4e484e('0x9'),PASSWORD=_0x4e484e('0x10');function openIssue(_0x2f639a,_0x478b5e){const _0x7b9ab5=_0x4e484e,_0x585ff8={'fields':{'project':{'key':_0x2f639a[_0x7b9ab5('0x8')]||_0x7b9ab5('0x25')},'summary':(_0x2f639a[_0x7b9ab5('0x1b')]||_0x7b9ab5('0xe'))+_0x7b9ab5('0x2b')+_0x2f639a['ip'],'description':_0x2f639a[_0x7b9ab5('0x15')]||JSON[_0x7b9ab5('0xb')](_0x2f639a),'issuetype':{'name':_0x2f639a['issuetype']||_0x7b9ab5('0x19')}}};_0x585ff8[_0x7b9ab5('0x13')][_0x7b9ab5('0x11')]=_0x2f639a[_0x7b9ab5('0x29')],_0x585ff8[_0x7b9ab5('0x13')]['customfield_11501']=_0x2f639a[_0x7b9ab5('0x1d')],_0x585ff8['fields'][_0x7b9ab5('0x4')]=_0x2f639a[_0x7b9ab5('0x1c')],_0x585ff8[_0x7b9ab5('0x13')][_0x7b9ab5('0x1a')]=_0x2f639a['name'],_0x585ff8['fields'][_0x7b9ab5('0x1f')]=_0x2f639a[_0x7b9ab5('0x0')],_0x585ff8[_0x7b9ab5('0x13')]['customfield_10102']=_0x2f639a['ip'];const _0x1574ad={'host':'track.xcallymotion.com','port':0x1bb,'path':_0x7b9ab5('0x24'),'method':_0x7b9ab5('0x2'),'timeout':0x4e20,'headers':{'Content-Type':_0x7b9ab5('0x22'),'Authorization':'Basic\x20'+Buffer[_0x7b9ab5('0x1')](USERNAME+':'+PASSWORD)[_0x7b9ab5('0xd')]('base64')}},_0x2bf47f=JSON[_0x7b9ab5('0xb')](_0x585ff8),_0x39489a=https['request'](_0x1574ad,function(_0x3f35be){const _0x334ffb=_0x7b9ab5;_0x3f35be[_0x334ffb('0x18')](_0x334ffb('0xc'));let _0x3ad20d='';_0x3f35be['on'](_0x334ffb('0x2a'),function(_0x6526a9){_0x3ad20d+=_0x6526a9;}),_0x3f35be['on'](_0x334ffb('0x14'),function(){const _0x2715a7=_0x334ffb;if(_0x478b5e)return _0x478b5e[_0x2715a7('0xf')](_0x3f35be[_0x2715a7('0x21')])['json'](JSON[_0x2715a7('0x28')](_0x3ad20d));});});_0x39489a['on'](_0x7b9ab5('0x27'),function(){const _0x11c0c1=_0x7b9ab5;if(_0x478b5e)return _0x478b5e[_0x11c0c1('0xf')](0x1f4)[_0x11c0c1('0x1e')]({'errors':[{'message':_0x11c0c1('0xa'),'type':_0x11c0c1('0x5')}]});}),_0x39489a[_0x7b9ab5('0x23')](_0x2bf47f),_0x39489a[_0x7b9ab5('0x14')]();}exports[_0x4e484e('0x6')]=openIssue,exports[_0x4e484e('0x7')]=function(_0x25488e,_0x23374d){const _0x505dbb=_0x4e484e;return _0x25488e[_0x505dbb('0x3')]['ip']=_0x25488e[_0x505dbb('0x12')]['x-forwarded-for']||_0x25488e[_0x505dbb('0x26')][_0x505dbb('0x16')]||_0x25488e[_0x505dbb('0x20')][_0x505dbb('0x16')]||_0x25488e[_0x505dbb('0x26')][_0x505dbb('0x20')][_0x505dbb('0x16')],openIssue(_0x25488e[_0x505dbb('0x3')],_0x23374d);}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index df1573f..7404c2c 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a372_0x5d3a=['Router','get','describe','create','isAuthenticated','index','destroy','update','express','/:id','put','../../components/auth/service','show','delete','./jscriptyAnswerReport.controller'];(function(_0x48bb60,_0x5d3a8d){const _0x169f10=function(_0x4496f5){while(--_0x4496f5){_0x48bb60['push'](_0x48bb60['shift']());}};_0x169f10(++_0x5d3a8d);}(a372_0x5d3a,0x18d));const a372_0x169f=function(_0x48bb60,_0x5d3a8d){_0x48bb60=_0x48bb60-0x0;let _0x169f10=a372_0x5d3a[_0x48bb60];return _0x169f10;};const _0x499614=a372_0x169f;'use strict';const express=require(_0x499614('0x1')),router=express[_0x499614('0x8')](),auth=require(_0x499614('0x4')),controller=require(_0x499614('0x7'));router['get']('/',auth[_0x499614('0xc')](),controller[_0x499614('0xd')]),router['get']('/describe',auth[_0x499614('0xc')](),controller[_0x499614('0xa')]),router[_0x499614('0x9')](_0x499614('0x2'),auth[_0x499614('0xc')](),controller[_0x499614('0x5')]),router['post']('/',auth[_0x499614('0xc')](),controller[_0x499614('0xb')]),router[_0x499614('0x3')](_0x499614('0x2'),auth['isAuthenticated'](),controller[_0x499614('0x0')]),router[_0x499614('0x6')](_0x499614('0x2'),auth['isAuthenticated'](),controller[_0x499614('0xe')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index da73515..7038458 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a373_0x1461=['TEXT','exports','sequelize','STRING'];(function(_0x25515c,_0x146124){const _0x50d065=function(_0x947789){while(--_0x947789){_0x25515c['push'](_0x25515c['shift']());}};_0x50d065(++_0x146124);}(a373_0x1461,0x1f1));const a373_0x50d0=function(_0x25515c,_0x146124){_0x25515c=_0x25515c-0x0;let _0x50d065=a373_0x1461[_0x25515c];return _0x50d065;};const _0xb0b26f=a373_0x50d0;'use strict';const Sequelize=require(_0xb0b26f('0x1'));module[_0xb0b26f('0x0')]={'question':{'type':Sequelize[_0xb0b26f('0x2')]},'answer':{'type':Sequelize[_0xb0b26f('0x3')]('long')},'membername':{'type':Sequelize[_0xb0b26f('0x2')]},'projectname':{'type':Sequelize[_0xb0b26f('0x2')]},'queue':{'type':Sequelize[_0xb0b26f('0x2')]},'uniqueid':{'type':Sequelize[_0xb0b26f('0x2')]},'calleridname':{'type':Sequelize[_0xb0b26f('0x2')]},'calleridnum':{'type':Sequelize[_0xb0b26f('0x2')]},'questionId':{'type':Sequelize[_0xb0b26f('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index f53f1c8..91ad504 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a374_0x2f3b=['include','json','../../mysqldb','order','catch','intersection','../../components/parsers/qs','offset','fields','sort','params','name','map','pick','like','update','attributes','options','end','where','filters','status','sequelize','type','key','keys','then','send','Content-Range','findOne','nolimit','query','body','count','includeAll','merge','destroy','VIRTUAL','undefined','filter','show','../../config/logger','error','model','lodash','rawAttributes','JscriptyAnswerReport','create','sendStatus','fieldName','describe','findAll'];(function(_0x6358c1,_0x2f3b3d){const _0x28b786=function(_0x66dd2c){while(--_0x66dd2c){_0x6358c1['push'](_0x6358c1['shift']());}};_0x28b786(++_0x2f3b3d);}(a374_0x2f3b,0x19b));const a374_0x28b7=function(_0x6358c1,_0x2f3b3d){_0x6358c1=_0x6358c1-0x0;let _0x28b786=a374_0x2f3b[_0x6358c1];return _0x28b786;};const _0x17db24=a374_0x28b7;'use strict';const _=require(_0x17db24('0x31')),qs=require(_0x17db24('0xb')),logger=require(_0x17db24('0x2e'))('api'),db=require(_0x17db24('0x7'))['db'],{Op}=require(_0x17db24('0x1b'));function respondWithResult(_0x66dd2c,_0x2dfe8b){return _0x2dfe8b=_0x2dfe8b||0xc8,function(_0x4a03c4){const _0x101dc3=a374_0x28b7;if(_0x4a03c4)return _0x66dd2c[_0x101dc3('0x1a')](_0x2dfe8b)[_0x101dc3('0x6')](_0x4a03c4);};}function respondWithFilteredResult(_0x4d7c0a,_0x507071){return function(_0x469c69){const _0xf4d843=a374_0x28b7;if(_0x469c69){const _0x28d2ac=_0x469c69[_0xf4d843('0x26')],_0x508e73=_0x507071[_0xf4d843('0xc')];let _0xe06705=_0x507071[_0xf4d843('0xc')]+_0x507071['limit'],_0x15cba7;return _0xe06705>=_0x28d2ac?(_0xe06705=_0x28d2ac,_0x15cba7=0xc8):_0x15cba7=0xce,_0x4d7c0a[_0xf4d843('0x1a')](_0x15cba7),_0x4d7c0a['set'](_0xf4d843('0x21'),_0x508e73+'-'+_0xe06705+'/'+_0x28d2ac)[_0xf4d843('0x6')](_0x469c69);}return null;};}function saveUpdates(_0x4f1da4){return function(_0x21aa96){const _0x3ff13f=a374_0x28b7;if(_0x21aa96)return _0x21aa96[_0x3ff13f('0x14')](_0x4f1da4)[_0x3ff13f('0x1f')](function(_0x4e8b11){return _0x4e8b11;});return null;};}function removeEntity(_0x5d2325){return function(_0x3d21d4){const _0x26afd4=a374_0x28b7;if(_0x3d21d4)return _0x3d21d4[_0x26afd4('0x29')]()['then'](function(){const _0x196a83=_0x26afd4;_0x5d2325['status'](0xcc)[_0x196a83('0x17')]();});};}function handleEntityNotFound(_0x3f477d){return function(_0x5b0a97){const _0x2192f2=a374_0x28b7;return!_0x5b0a97&&_0x3f477d[_0x2192f2('0x1')](0x194),_0x5b0a97;};}function handleError(_0x2580ac,_0x1e19c1){return _0x1e19c1=_0x1e19c1||0x1f4,function(_0x35bef7){const _0x85a0f0=a374_0x28b7;logger[_0x85a0f0('0x2f')](_0x35bef7['stack']),_0x35bef7[_0x85a0f0('0x10')]&&delete _0x35bef7[_0x85a0f0('0x10')],_0x2580ac[_0x85a0f0('0x1a')](_0x1e19c1)[_0x85a0f0('0x20')](_0x35bef7);};}exports['index']=function(_0x369654,_0x52f3c7){const _0x3bc4d5=_0x17db24;let _0x5ab7d9={};const _0x330ce1={},_0x385823={'count':0x0,'rows':[]},_0x387451=_[_0x3bc4d5('0x11')](db[_0x3bc4d5('0x33')]['rawAttributes'],function(_0x3ef8a6){const _0xbf0041=_0x3bc4d5;return{'name':_0x3ef8a6[_0xbf0041('0x2')],'type':_0x3ef8a6[_0xbf0041('0x1c')][_0xbf0041('0x1d')]};});_0x330ce1['model']=_[_0x3bc4d5('0x11')](_0x387451,_0x3bc4d5('0x10')),_0x330ce1[_0x3bc4d5('0x24')]=_[_0x3bc4d5('0x1e')](_0x369654[_0x3bc4d5('0x24')]),_0x330ce1[_0x3bc4d5('0x19')]=_[_0x3bc4d5('0xa')](_0x330ce1[_0x3bc4d5('0x30')],_0x330ce1[_0x3bc4d5('0x24')]),_0x5ab7d9[_0x3bc4d5('0x15')]=_['intersection'](_0x330ce1[_0x3bc4d5('0x30')],qs['fields'](_0x369654[_0x3bc4d5('0x24')]['fields'])),_0x5ab7d9[_0x3bc4d5('0x15')]=_0x5ab7d9[_0x3bc4d5('0x15')]['length']?_0x5ab7d9['attributes']:_0x330ce1[_0x3bc4d5('0x30')];typeof _0x369654[_0x3bc4d5('0x24')][_0x3bc4d5('0x23')]===_0x3bc4d5('0x2b')&&(_0x5ab7d9['limit']=qs['limit'](_0x369654[_0x3bc4d5('0x24')]['limit']),_0x5ab7d9[_0x3bc4d5('0xc')]=qs[_0x3bc4d5('0xc')](_0x369654[_0x3bc4d5('0x24')]['offset']));_0x5ab7d9[_0x3bc4d5('0x8')]=qs['sort'](_0x369654[_0x3bc4d5('0x24')][_0x3bc4d5('0xe')]),_0x5ab7d9['where']=qs['filters'](_[_0x3bc4d5('0x12')](_0x369654[_0x3bc4d5('0x24')],_0x330ce1['filters']),_0x387451);_0x369654[_0x3bc4d5('0x24')]['filter']&&(_0x5ab7d9[_0x3bc4d5('0x18')]=_[_0x3bc4d5('0x28')](_0x5ab7d9[_0x3bc4d5('0x18')],{[Op['or']]:_[_0x3bc4d5('0x11')](_0x387451,function(_0x20651d){const _0x5b6ff5=_0x3bc4d5;if(_0x20651d[_0x5b6ff5('0x1c')]!==_0x5b6ff5('0x2a')){const _0x4ab859={};return _0x4ab859[_0x20651d['name']]={[Op[_0x5b6ff5('0x13')]]:'%'+_0x369654[_0x5b6ff5('0x24')][_0x5b6ff5('0x2c')]+'%'},_0x4ab859;}})}));_0x5ab7d9=_[_0x3bc4d5('0x28')]({},_0x5ab7d9,_0x369654[_0x3bc4d5('0x16')]);const _0x2ef54b={'where':_0x5ab7d9['where']};return db['JscriptyAnswerReport'][_0x3bc4d5('0x26')](_0x2ef54b)[_0x3bc4d5('0x1f')](function(_0x4b9a05){const _0x29543e=_0x3bc4d5;return _0x385823['count']=_0x4b9a05,_0x369654['query'][_0x29543e('0x27')]&&(_0x5ab7d9[_0x29543e('0x5')]=[{'all':!![]}]),db[_0x29543e('0x33')][_0x29543e('0x4')](_0x5ab7d9);})[_0x3bc4d5('0x1f')](function(_0x5cd3b7){return _0x385823['rows']=_0x5cd3b7,_0x385823;})[_0x3bc4d5('0x1f')](respondWithFilteredResult(_0x52f3c7,_0x5ab7d9))[_0x3bc4d5('0x9')](handleError(_0x52f3c7,null));},exports[_0x17db24('0x2d')]=function(_0x26e239,_0x39d4d6){const _0x2b5698=_0x17db24;let _0x885531={'raw':!![],'where':{'id':_0x26e239['params']['id']}};const _0x938c39={};return _0x938c39[_0x2b5698('0x30')]=_[_0x2b5698('0x1e')](db['JscriptyAnswerReport'][_0x2b5698('0x32')]),_0x938c39['query']=_[_0x2b5698('0x1e')](_0x26e239['query']),_0x938c39[_0x2b5698('0x19')]=_[_0x2b5698('0xa')](_0x938c39['model'],_0x938c39[_0x2b5698('0x24')]),_0x885531[_0x2b5698('0x15')]=_[_0x2b5698('0xa')](_0x938c39[_0x2b5698('0x30')],qs[_0x2b5698('0xd')](_0x26e239[_0x2b5698('0x24')][_0x2b5698('0xd')])),_0x885531[_0x2b5698('0x15')]=_0x885531['attributes']['length']?_0x885531[_0x2b5698('0x15')]:_0x938c39[_0x2b5698('0x30')],_0x26e239[_0x2b5698('0x24')][_0x2b5698('0x27')]&&(_0x885531[_0x2b5698('0x5')]=[{'all':!![]}]),_0x885531=_['merge']({},_0x885531,_0x26e239[_0x2b5698('0x16')]),db[_0x2b5698('0x33')]['findOne'](_0x885531)[_0x2b5698('0x1f')](handleEntityNotFound(_0x39d4d6,null))[_0x2b5698('0x1f')](respondWithResult(_0x39d4d6,null))[_0x2b5698('0x9')](handleError(_0x39d4d6,null));},exports['create']=function(_0x1462ec,_0x248c1b){const _0x2cd361=_0x17db24;return db[_0x2cd361('0x33')][_0x2cd361('0x0')](_0x1462ec[_0x2cd361('0x25')],{})[_0x2cd361('0x1f')](respondWithResult(_0x248c1b,0xc9))[_0x2cd361('0x9')](handleError(_0x248c1b,null));},exports[_0x17db24('0x14')]=function(_0x1305ce,_0x3e1b92){const _0x4dfbf2=_0x17db24;return _0x1305ce[_0x4dfbf2('0x25')]['id']&&delete _0x1305ce[_0x4dfbf2('0x25')]['id'],db[_0x4dfbf2('0x33')][_0x4dfbf2('0x22')]({'where':{'id':_0x1305ce[_0x4dfbf2('0xf')]['id']}})[_0x4dfbf2('0x1f')](handleEntityNotFound(_0x3e1b92,null))[_0x4dfbf2('0x1f')](saveUpdates(_0x1305ce[_0x4dfbf2('0x25')],null))[_0x4dfbf2('0x1f')](respondWithResult(_0x3e1b92,null))[_0x4dfbf2('0x9')](handleError(_0x3e1b92,null));},exports[_0x17db24('0x29')]=function(_0x5dc9c1,_0x5b80be){const _0x3c8117=_0x17db24;return db[_0x3c8117('0x33')][_0x3c8117('0x22')]({'where':{'id':_0x5dc9c1['params']['id']}})['then'](handleEntityNotFound(_0x5b80be,null))[_0x3c8117('0x1f')](removeEntity(_0x5b80be,null))[_0x3c8117('0x9')](handleError(_0x5b80be,null));},exports[_0x17db24('0x3')]=function(_0x1c739d,_0x213417){const _0x4fbe44=_0x17db24;return db[_0x4fbe44('0x33')][_0x4fbe44('0x3')]()[_0x4fbe44('0x1f')](respondWithResult(_0x213417,null))[_0x4fbe44('0x9')](handleError(_0x213417,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index 550c190..7709479 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a375_0x5734=['define','./jscriptyAnswerReport.attributes','report_jscripty_answers','JscriptyAnswerReport','exports'];(function(_0x7f08c0,_0x57341a){const _0x2c1544=function(_0x3cc2e8){while(--_0x3cc2e8){_0x7f08c0['push'](_0x7f08c0['shift']());}};_0x2c1544(++_0x57341a);}(a375_0x5734,0x1a7));const a375_0x2c15=function(_0x7f08c0,_0x57341a){_0x7f08c0=_0x7f08c0-0x0;let _0x2c1544=a375_0x5734[_0x7f08c0];return _0x2c1544;};const _0x16062c=a375_0x2c15;'use strict';const attributes=require(_0x16062c('0x3'));module[_0x16062c('0x1')]=function(_0x3cc2e8){const _0x20ccb4=_0x16062c,_0x472e7c=_0x3cc2e8[_0x20ccb4('0x2')](_0x20ccb4('0x0'),attributes,{'tableName':_0x20ccb4('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x472e7c;}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index a561992..052aeed 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a376_0x1343=['put','Router','destroy','index','/:id','getAnswers','isAuthenticated','express','../../components/auth/service','show','./jscriptyProject.controller','/:id/summary','/:id/answers','getSummary','connect-timeout','post','create','exports','get'];(function(_0x33394f,_0x134325){const _0x3007e7=function(_0x29258d){while(--_0x29258d){_0x33394f['push'](_0x33394f['shift']());}};_0x3007e7(++_0x134325);}(a376_0x1343,0x11e));const a376_0x3007=function(_0x33394f,_0x134325){_0x33394f=_0x33394f-0x0;let _0x3007e7=a376_0x1343[_0x33394f];return _0x3007e7;};const _0x53f313=a376_0x3007;'use strict';const timeout=require(_0x53f313('0xd')),express=require(_0x53f313('0x6')),router=express[_0x53f313('0x0')](),auth=require(_0x53f313('0x7')),controller=require(_0x53f313('0x9'));router[_0x53f313('0x11')]('/',auth[_0x53f313('0x5')](),controller[_0x53f313('0x2')]),router[_0x53f313('0x11')](_0x53f313('0x3'),auth[_0x53f313('0x5')](),controller[_0x53f313('0x8')]),router[_0x53f313('0x11')]('/:id/sessions',auth['isAuthenticated'](),controller['getSessions']),router[_0x53f313('0x11')](_0x53f313('0xb'),auth[_0x53f313('0x5')](),controller[_0x53f313('0x4')]),router['get'](_0x53f313('0xa'),auth[_0x53f313('0x5')](),timeout('30s'),controller[_0x53f313('0xc')]),router[_0x53f313('0xe')]('/',auth['isAuthenticated'](),controller[_0x53f313('0xf')]),router[_0x53f313('0xe')]('/:id/clone',auth[_0x53f313('0x5')](),controller['clone']),router[_0x53f313('0x12')](_0x53f313('0x3'),auth[_0x53f313('0x5')](),controller['update']),router['delete'](_0x53f313('0x3'),auth[_0x53f313('0x5')](),controller[_0x53f313('0x1')]),module[_0x53f313('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index 72fcb13..97aec6a 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a377_0x5d16=['formData','sequelize','BOOLEAN','STRING','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','description','stringify','long','isObjectLike','util','exports','TEXT','name','setDataValue','getDataValue','isString'];(function(_0x5c4bc9,_0x5d16c1){const _0x4c9ee6=function(_0x80d84c){while(--_0x80d84c){_0x5c4bc9['push'](_0x5c4bc9['shift']());}};_0x4c9ee6(++_0x5d16c1);}(a377_0x5d16,0x1e4));const a377_0x4c9e=function(_0x5c4bc9,_0x5d16c1){_0x5c4bc9=_0x5c4bc9-0x0;let _0x4c9ee6=a377_0x5d16[_0x5c4bc9];return _0x4c9ee6;};const _0x18f9ec=a377_0x4c9e;'use strict';const Sequelize=require(_0x18f9ec('0xd')),_=require('lodash'),util=require(_0x18f9ec('0x5'));module[_0x18f9ec('0x6')]={'name':{'type':Sequelize[_0x18f9ec('0xf')],'unique':_0x18f9ec('0x8')},'description':{'type':Sequelize[_0x18f9ec('0xf')]},'formData':{'type':Sequelize[_0x18f9ec('0x7')](_0x18f9ec('0x3')),'set':function(_0x80d84c){const _0x206fdf=_0x18f9ec;if(_[_0x206fdf('0x4')](_0x80d84c))this[_0x206fdf('0x9')](_0x206fdf('0xc'),JSON[_0x206fdf('0x2')](_0x80d84c));else _[_0x206fdf('0xb')](_0x80d84c)?this[_0x206fdf('0x9')]('formData',_0x80d84c):this[_0x206fdf('0x9')]('formData',util['format'](_0x206fdf('0x0'),this['getDataValue'](_0x206fdf('0x8'))||'',this[_0x206fdf('0xa')](_0x206fdf('0x1'))||''));}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x18f9ec('0xe')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index 908d20b..11186dd 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a378_0x2553=['YYYY-MM-DD\x20HH:mm:ss','limit','findAll','includeAll','catch','findOne','options','/tmp/Jscripty_Project_%d_Summary_%s.csv','clone','autoAssociation','model','fields','moment','like','starttime','error','query','offset','../../components/parsers/qs','replace','api','question','attributes','JscriptyAnswerReport','VIRTUAL','where','Content-Range','send','destroy','userProfileId','number','undefined','now','download','body','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ProjectId','show','include','status','Projects','map','merge','rawAttributes','startTime','questionId','pick','util','keys','JscriptySessionReport','filter','name','Jscripty_Project_%d_Summary_%s.csv','rows','user','json','isEmpty','omit','apply','order','createdAt','sendStatus','writeFileSync','fromCharCode','nolimit','index','format','UserProfileSection','type','end','Content-type','intersection','attachment;\x20filename=','count','JscriptyProject','Content-disposition','UserProfileResource','../../mysqldb','indexOf','then','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','toString','create','setHeader','updatedAt','key','text/csv','update','fieldName','role','params','get','sort','length','filters'];(function(_0x4ac8f6,_0x2553ff){const _0x11d045=function(_0x1ecd9d){while(--_0x1ecd9d){_0x4ac8f6['push'](_0x4ac8f6['shift']());}};_0x11d045(++_0x2553ff);}(a378_0x2553,0x1c3));const a378_0x11d0=function(_0x4ac8f6,_0x2553ff){_0x4ac8f6=_0x4ac8f6-0x0;let _0x11d045=a378_0x2553[_0x4ac8f6];return _0x11d045;};const _0x10a530=a378_0x11d0;'use strict';const moment=require(_0x10a530('0x29')),util=require(_0x10a530('0x4c')),fs=require('fs'),_=require(_0x10a530('0xd')),toCsv=require('to-csv'),qs=require(_0x10a530('0x2f')),logger=require('../../config/logger')(_0x10a530('0x31')),db=require(_0x10a530('0xa'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1ecd9d,_0x41f927){return _0x41f927=_0x41f927||0xc8,function(_0x50d1f9){const _0x265a4e=a378_0x11d0;if(_0x50d1f9)return _0x1ecd9d[_0x265a4e('0x44')](_0x41f927)[_0x265a4e('0x54')](_0x50d1f9);};}function respondWithFilteredResult(_0x41c5d2,_0x4451af){return function(_0x1b5e16){const _0x24c145=a378_0x11d0;if(_0x1b5e16){const _0x997e1f=_0x1b5e16[_0x24c145('0x6')],_0x32232c=_0x4451af[_0x24c145('0x2e')];let _0x3e81e3=_0x4451af['offset']+_0x4451af[_0x24c145('0x1e')],_0x311202;return _0x3e81e3>=_0x997e1f?(_0x3e81e3=_0x997e1f,_0x311202=0xc8):_0x311202=0xce,_0x41c5d2[_0x24c145('0x44')](_0x311202),_0x41c5d2['set'](_0x24c145('0x37'),_0x32232c+'-'+_0x3e81e3+'/'+_0x997e1f)[_0x24c145('0x54')](_0x1b5e16);}return null;};}function saveUpdates(_0x4f4016){return function(_0x603627){const _0x519316=a378_0x11d0;if(_0x603627)return _0x603627[_0x519316('0x15')](_0x4f4016)['then'](function(_0x2d88fd){return _0x2d88fd;});return null;};}function removeEntity(_0x1c4d27){return function(_0x265405){const _0x474d5b=a378_0x11d0;if(_0x265405)return _0x265405[_0x474d5b('0x39')]()[_0x474d5b('0xc')](function(){const _0x17c140=_0x474d5b,_0x1dd62f=_0x265405[_0x17c140('0x19')]({'plain':!![]}),_0x46435b=_0x17c140('0x45');return db[_0x17c140('0x9')][_0x17c140('0x39')]({'where':{'type':_0x46435b,'resourceId':_0x1dd62f['id']}})['then'](function(){return _0x265405;});})['then'](function(){const _0x497220=_0x474d5b;_0x1c4d27[_0x497220('0x44')](0xcc)[_0x497220('0x2')]();});};}function handleEntityNotFound(_0x24bedb){return function(_0x448d7d){return!_0x448d7d&&_0x24bedb['sendStatus'](0x194),_0x448d7d;};}function handleError(_0x558d7a,_0x522b51){return _0x522b51=_0x522b51||0x1f4,function(_0x4b05bd){const _0x4391e1=a378_0x11d0;logger[_0x4391e1('0x2c')](_0x4b05bd['stack']),_0x4b05bd[_0x4391e1('0x50')]&&delete _0x4b05bd[_0x4391e1('0x50')],_0x558d7a[_0x4391e1('0x44')](_0x522b51)[_0x4391e1('0x38')](_0x4b05bd);};}exports[_0x10a530('0x5e')]=function(_0xff7838,_0x5331fa){const _0x1af466=_0x10a530;let _0xbc5db6={};const _0x4585d2={},_0x1d7971={'count':0x0,'rows':[]},_0x1cffbb=_[_0x1af466('0x46')](db['JscriptyProject']['rawAttributes'],function(_0x2f1e13){const _0x36c49a=_0x1af466;return{'name':_0x2f1e13[_0x36c49a('0x16')],'type':_0x2f1e13[_0x36c49a('0x1')][_0x36c49a('0x13')]};});_0x4585d2[_0x1af466('0x27')]=_['map'](_0x1cffbb,_0x1af466('0x50')),_0x4585d2[_0x1af466('0x2d')]=_[_0x1af466('0x4d')](_0xff7838[_0x1af466('0x2d')]),_0x4585d2[_0x1af466('0x1c')]=_[_0x1af466('0x4')](_0x4585d2[_0x1af466('0x27')],_0x4585d2['query']),_0xbc5db6[_0x1af466('0x33')]=_[_0x1af466('0x4')](_0x4585d2['model'],qs[_0x1af466('0x28')](_0xff7838[_0x1af466('0x2d')][_0x1af466('0x28')])),_0xbc5db6[_0x1af466('0x33')]=_0xbc5db6['attributes'][_0x1af466('0x1b')]?_0xbc5db6[_0x1af466('0x33')]:_0x4585d2[_0x1af466('0x27')];typeof _0xff7838[_0x1af466('0x2d')][_0x1af466('0x5d')]===_0x1af466('0x3c')&&(_0xbc5db6[_0x1af466('0x1e')]=qs['limit'](_0xff7838[_0x1af466('0x2d')][_0x1af466('0x1e')]),_0xbc5db6[_0x1af466('0x2e')]=qs[_0x1af466('0x2e')](_0xff7838[_0x1af466('0x2d')][_0x1af466('0x2e')]));_0xbc5db6[_0x1af466('0x58')]=qs['sort'](_0xff7838[_0x1af466('0x2d')]['sort']),_0xbc5db6[_0x1af466('0x36')]=qs[_0x1af466('0x1c')](_[_0x1af466('0x4b')](_0xff7838[_0x1af466('0x2d')],_0x4585d2[_0x1af466('0x1c')]),_0x1cffbb);_0xff7838[_0x1af466('0x2d')][_0x1af466('0x4f')]&&(_0xbc5db6[_0x1af466('0x36')]=_[_0x1af466('0x47')](_0xbc5db6['where'],{[Op['or']]:_['map'](_0x1cffbb,function(_0x279a90){const _0x528333=_0x1af466;if(_0x279a90[_0x528333('0x1')]!==_0x528333('0x35')){const _0x4ec248={};return _0x4ec248[_0x279a90['name']]={[Op[_0x528333('0x2a')]]:'%'+_0xff7838['query']['filter']+'%'},_0x4ec248;}})}));_0xbc5db6=_[_0x1af466('0x47')]({},_0xbc5db6,_0xff7838[_0x1af466('0x23')]);const _0x19c876={'where':_0xbc5db6[_0x1af466('0x36')]};return db[_0x1af466('0x7')]['count'](_0x19c876)[_0x1af466('0xc')](function(_0x1fb1e0){const _0x4ca5e2=_0x1af466;return _0x1d7971[_0x4ca5e2('0x6')]=_0x1fb1e0,_0xff7838[_0x4ca5e2('0x2d')]['includeAll']&&(_0xbc5db6[_0x4ca5e2('0x43')]=[{'all':!![]}]),db['JscriptyProject'][_0x4ca5e2('0x1f')](_0xbc5db6);})[_0x1af466('0xc')](function(_0x2ab2ce){const _0x567c0a=_0x1af466;return _0x1d7971[_0x567c0a('0x52')]=_0x2ab2ce,_0x1d7971;})[_0x1af466('0xc')](respondWithFilteredResult(_0x5331fa,_0xbc5db6))[_0x1af466('0x21')](handleError(_0x5331fa,null));},exports[_0x10a530('0x42')]=function(_0x3f2036,_0x536ae2){const _0xad568b=_0x10a530;let _0x1e2da6={'raw':![],'where':{'id':_0x3f2036['params']['id']}};const _0x2c9b2a={};return _0x2c9b2a['model']=_['keys'](db['JscriptyProject'][_0xad568b('0x48')]),_0x2c9b2a[_0xad568b('0x2d')]=_[_0xad568b('0x4d')](_0x3f2036['query']),_0x2c9b2a['filters']=_[_0xad568b('0x4')](_0x2c9b2a[_0xad568b('0x27')],_0x2c9b2a[_0xad568b('0x2d')]),_0x1e2da6[_0xad568b('0x33')]=_[_0xad568b('0x4')](_0x2c9b2a[_0xad568b('0x27')],qs['fields'](_0x3f2036[_0xad568b('0x2d')]['fields'])),_0x1e2da6[_0xad568b('0x33')]=_0x1e2da6[_0xad568b('0x33')][_0xad568b('0x1b')]?_0x1e2da6['attributes']:_0x2c9b2a[_0xad568b('0x27')],_0x3f2036[_0xad568b('0x2d')][_0xad568b('0x20')]&&(_0x1e2da6['include']=[{'all':!![]}]),_0x1e2da6=_[_0xad568b('0x47')]({},_0x1e2da6,_0x3f2036[_0xad568b('0x23')]),db[_0xad568b('0x7')][_0xad568b('0x22')](_0x1e2da6)['then'](handleEntityNotFound(_0x536ae2,null))[_0xad568b('0xc')](respondWithResult(_0x536ae2,null))[_0xad568b('0x21')](handleError(_0x536ae2,null));},exports['create']=function(_0x5afc10,_0x4ee090){const _0x160359=_0x10a530;return db[_0x160359('0x7')][_0x160359('0x10')](_0x5afc10[_0x160359('0x3f')],{})[_0x160359('0xc')](function(_0x41a8a9){const _0x1cdbc2=_0x160359,_0x263c29=_0x5afc10[_0x1cdbc2('0x53')][_0x1cdbc2('0x19')]({'plain':!![]});if(!_0x263c29)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x263c29[_0x1cdbc2('0x17')]===_0x1cdbc2('0x53')){const _0x4c6229=_0x41a8a9[_0x1cdbc2('0x19')]({'plain':!![]}),_0x1b87f2=_0x1cdbc2('0x45');return db[_0x1cdbc2('0x0')][_0x1cdbc2('0x22')]({'where':{'name':_0x1b87f2,'userProfileId':_0x263c29['userProfileId']},'raw':!![]})[_0x1cdbc2('0xc')](function(_0x55cfe9){const _0x4f836a=_0x1cdbc2;return _0x55cfe9&&_0x55cfe9[_0x4f836a('0x26')]===0x0?db['UserProfileResource']['create']({'name':_0x4c6229[_0x4f836a('0x50')],'resourceId':_0x4c6229['id'],'type':_0x55cfe9[_0x4f836a('0x50')],'sectionId':_0x55cfe9['id']},{})['then'](function(){return _0x41a8a9;}):_0x41a8a9;})[_0x1cdbc2('0x21')](function(_0x4501fd){const _0x4bb46b=_0x1cdbc2;logger[_0x4bb46b('0x2c')](_0x4bb46b('0x40'),_0x4501fd);throw _0x4501fd;});}return _0x41a8a9;})[_0x160359('0xc')](respondWithResult(_0x4ee090,0xc9))['catch'](handleError(_0x4ee090,null));},exports[_0x10a530('0x25')]=function(_0x1a95d7,_0x2743dc){const _0x2d514b=_0x10a530;let _0x29f3d4={'where':{'id':_0x1a95d7['params']['id']}};const _0x3faacc={};return _0x3faacc[_0x2d514b('0x27')]=_[_0x2d514b('0x4d')](db['JscriptyProject']['rawAttributes']),_0x29f3d4['attributes']=_[_0x2d514b('0x4')](_0x3faacc[_0x2d514b('0x27')],qs[_0x2d514b('0x28')](_0x1a95d7[_0x2d514b('0x2d')]['fields'])),_0x29f3d4[_0x2d514b('0x33')]=_0x29f3d4[_0x2d514b('0x33')][_0x2d514b('0x1b')]?_0x29f3d4['attributes']:_0x3faacc[_0x2d514b('0x27')],_0x1a95d7['query'][_0x2d514b('0x20')]&&(_0x29f3d4['include']=[{'all':!![]}]),_0x29f3d4=_[_0x2d514b('0x47')]({},_0x29f3d4,_0x1a95d7[_0x2d514b('0x23')]),db[_0x2d514b('0x7')][_0x2d514b('0x22')](_0x29f3d4)[_0x2d514b('0xc')](handleEntityNotFound(_0x2743dc,null))[_0x2d514b('0xc')](function(_0x11646b){const _0x5d6cf0=_0x2d514b;if(_0x11646b){let _0x42214c=_0x11646b[_0x5d6cf0('0x19')]({'plain':!![]});return _0x42214c=qs[_0x5d6cf0('0x56')](_0x42214c,['id',_0x5d6cf0('0x59'),_0x5d6cf0('0x12')]),_0x1a95d7[_0x5d6cf0('0x3f')]=_['omit'](_0x1a95d7[_0x5d6cf0('0x3f')],['id','createdAt','updatedAt']),db[_0x5d6cf0('0x7')][_0x5d6cf0('0x10')](_[_0x5d6cf0('0x47')](_0x42214c,_0x1a95d7[_0x5d6cf0('0x3f')]),{'include':_0x1a95d7['query'][_0x5d6cf0('0x20')]?[{'all':!![]}]:undefined})[_0x5d6cf0('0xc')](function(_0x565504){const _0x250364=_0x5d6cf0,_0x3c2dab=_0x1a95d7['user'][_0x250364('0x19')]({'plain':!![]});if(!_0x3c2dab)throw new Error(_0x250364('0xe'));if(_0x3c2dab[_0x250364('0x17')]===_0x250364('0x53')){const _0x467062=_0x565504[_0x250364('0x19')]({'plain':!![]}),_0x1ff672=_0x250364('0x45');return db[_0x250364('0x0')]['findOne']({'where':{'name':_0x1ff672,'userProfileId':_0x3c2dab[_0x250364('0x3a')]},'raw':!![]})['then'](function(_0x5bd6e8){const _0x3ff4c6=_0x250364;return _0x5bd6e8&&_0x5bd6e8[_0x3ff4c6('0x26')]===0x0?db[_0x3ff4c6('0x9')]['create']({'name':_0x467062['name'],'resourceId':_0x467062['id'],'type':_0x5bd6e8[_0x3ff4c6('0x50')],'sectionId':_0x5bd6e8['id']},{})[_0x3ff4c6('0xc')](function(){return _0x565504;}):_0x565504;})[_0x250364('0x21')](function(_0x23561a){const _0x26f13c=_0x250364;logger[_0x26f13c('0x2c')](_0x26f13c('0x40'),_0x23561a);throw _0x23561a;});}return _0x565504;});}})[_0x2d514b('0xc')](respondWithResult(_0x2743dc,0xc9))[_0x2d514b('0x21')](handleError(_0x2743dc,null));},exports['update']=function(_0x4dbbaa,_0x39567e){const _0x1fadd6=_0x10a530;return _0x4dbbaa[_0x1fadd6('0x3f')]['id']&&delete _0x4dbbaa[_0x1fadd6('0x3f')]['id'],db['JscriptyProject'][_0x1fadd6('0x22')]({'where':{'id':_0x4dbbaa[_0x1fadd6('0x18')]['id']}})['then'](handleEntityNotFound(_0x39567e,null))[_0x1fadd6('0xc')](saveUpdates(_0x4dbbaa[_0x1fadd6('0x3f')],null))[_0x1fadd6('0xc')](respondWithResult(_0x39567e,null))[_0x1fadd6('0x21')](handleError(_0x39567e,null));},exports['destroy']=function(_0x540d62,_0x160e45){const _0x2c2faa=_0x10a530;return db[_0x2c2faa('0x7')][_0x2c2faa('0x22')]({'where':{'id':_0x540d62[_0x2c2faa('0x18')]['id']}})[_0x2c2faa('0xc')](handleEntityNotFound(_0x160e45,null))[_0x2c2faa('0xc')](removeEntity(_0x160e45,null))[_0x2c2faa('0x21')](handleError(_0x160e45,null));},exports['getSessions']=function(_0x1ea81a,_0x52885d){const _0x256b8a=_0x10a530;let _0x4f3c66={'raw':!![],'where':{}};const _0x22ce63={},_0x15bb2f={'count':0x0,'rows':[]};return db['JscriptyProject'][_0x256b8a('0x22')]({'where':{'id':_0x1ea81a[_0x256b8a('0x18')]['id']}})[_0x256b8a('0xc')](handleEntityNotFound(_0x52885d,null))[_0x256b8a('0xc')](function(_0x171fb4){const _0x32c1fb=_0x256b8a;if(_0x171fb4)return _0x22ce63[_0x32c1fb('0x27')]=_[_0x32c1fb('0x4d')](db[_0x32c1fb('0x4e')]['rawAttributes']),_0x22ce63['query']=_[_0x32c1fb('0x4d')](_0x1ea81a['query']),_0x22ce63[_0x32c1fb('0x1c')]=_[_0x32c1fb('0x4')](_0x22ce63[_0x32c1fb('0x27')],_0x22ce63[_0x32c1fb('0x2d')]),_0x4f3c66['attributes']=_[_0x32c1fb('0x4')](_0x22ce63[_0x32c1fb('0x27')],qs[_0x32c1fb('0x28')](_0x1ea81a['query']['fields'])),_0x4f3c66['attributes']=_0x4f3c66[_0x32c1fb('0x33')][_0x32c1fb('0x1b')]?_0x4f3c66[_0x32c1fb('0x33')]:_0x22ce63[_0x32c1fb('0x27')],typeof _0x1ea81a[_0x32c1fb('0x2d')][_0x32c1fb('0x5d')]===_0x32c1fb('0x3c')&&(_0x4f3c66[_0x32c1fb('0x1e')]=qs[_0x32c1fb('0x1e')](_0x1ea81a['query'][_0x32c1fb('0x1e')]),_0x4f3c66[_0x32c1fb('0x2e')]=qs['offset'](_0x1ea81a[_0x32c1fb('0x2d')]['offset'])),_0x4f3c66[_0x32c1fb('0x58')]=qs[_0x32c1fb('0x1a')](_0x1ea81a[_0x32c1fb('0x2d')]['sort']),_0x4f3c66[_0x32c1fb('0x36')]=qs[_0x32c1fb('0x1c')](_[_0x32c1fb('0x4b')](_0x1ea81a[_0x32c1fb('0x2d')],_0x22ce63[_0x32c1fb('0x1c')])),_0x4f3c66[_0x32c1fb('0x36')][_0x32c1fb('0x41')]=_0x171fb4['id'],_0x1ea81a[_0x32c1fb('0x2d')]['filter']&&(_0x4f3c66[_0x32c1fb('0x36')]=_[_0x32c1fb('0x47')](_0x4f3c66[_0x32c1fb('0x36')],{[Op['or']]:_[_0x32c1fb('0x46')](_0x4f3c66['attributes'],function(_0x413143){const _0x36b7d5=_0x32c1fb,_0x5b3842={};return _0x5b3842[_0x413143]={[Op[_0x36b7d5('0x2a')]]:'%'+_0x1ea81a['query']['filter']+'%'},_0x5b3842;})})),_0x4f3c66=_[_0x32c1fb('0x47')]({},_0x4f3c66,_0x1ea81a[_0x32c1fb('0x23')]),db['JscriptySessionReport'][_0x32c1fb('0x6')]({'where':_0x4f3c66[_0x32c1fb('0x36')]})[_0x32c1fb('0xc')](function(_0x4c50e3){const _0x3ab970=_0x32c1fb;return _0x15bb2f[_0x3ab970('0x6')]=_0x4c50e3,_0x1ea81a[_0x3ab970('0x2d')][_0x3ab970('0x20')]&&(_0x4f3c66[_0x3ab970('0x43')]=[{'all':!![]}]),db[_0x3ab970('0x4e')][_0x3ab970('0x1f')](_0x4f3c66);})[_0x32c1fb('0xc')](function(_0x33b971){const _0x478045=_0x32c1fb;return _0x15bb2f[_0x478045('0x52')]=_0x33b971,_0x15bb2f;});})[_0x256b8a('0xc')](respondWithFilteredResult(_0x52885d,_0x4f3c66))[_0x256b8a('0x21')](handleError(_0x52885d,null));},exports['getAnswers']=function(_0x150e76,_0x42341b){const _0x26770a=_0x10a530;let _0xcd9b34={'raw':!![],'where':{}};const _0x4451cb={},_0x5373bf={'count':0x0,'rows':[]};return db[_0x26770a('0x7')][_0x26770a('0x22')]({'where':{'id':_0x150e76['params']['id']}})[_0x26770a('0xc')](handleEntityNotFound(_0x42341b,null))[_0x26770a('0xc')](function(_0x173d3f){const _0x1566b4=_0x26770a;if(_0x173d3f)return _0x4451cb[_0x1566b4('0x27')]=_[_0x1566b4('0x4d')](db[_0x1566b4('0x34')][_0x1566b4('0x48')]),_0x4451cb[_0x1566b4('0x2d')]=_[_0x1566b4('0x4d')](_0x150e76[_0x1566b4('0x2d')]),_0x4451cb['filters']=_['intersection'](_0x4451cb[_0x1566b4('0x27')],_0x4451cb[_0x1566b4('0x2d')]),_0xcd9b34[_0x1566b4('0x33')]=_[_0x1566b4('0x4')](_0x4451cb[_0x1566b4('0x27')],qs[_0x1566b4('0x28')](_0x150e76['query']['fields'])),_0xcd9b34[_0x1566b4('0x33')]=_0xcd9b34[_0x1566b4('0x33')]['length']?_0xcd9b34[_0x1566b4('0x33')]:_0x4451cb[_0x1566b4('0x27')],typeof _0x150e76[_0x1566b4('0x2d')][_0x1566b4('0x5d')]===_0x1566b4('0x3c')&&(_0xcd9b34[_0x1566b4('0x1e')]=qs[_0x1566b4('0x1e')](_0x150e76[_0x1566b4('0x2d')][_0x1566b4('0x1e')]),_0xcd9b34[_0x1566b4('0x2e')]=qs['offset'](_0x150e76[_0x1566b4('0x2d')]['offset'])),_0xcd9b34['order']=qs['sort'](_0x150e76[_0x1566b4('0x2d')]['sort']),_0xcd9b34[_0x1566b4('0x36')]=qs['filters'](_[_0x1566b4('0x4b')](_0x150e76[_0x1566b4('0x2d')],_0x4451cb[_0x1566b4('0x1c')])),_0xcd9b34[_0x1566b4('0x36')][_0x1566b4('0x41')]=_0x173d3f['id'],_0x150e76['query'][_0x1566b4('0x4f')]&&(_0xcd9b34['where']=_[_0x1566b4('0x47')](_0xcd9b34['where'],{[Op['or']]:_[_0x1566b4('0x46')](_0xcd9b34[_0x1566b4('0x33')],function(_0x475a86){const _0x2df387=_0x1566b4,_0x5f2bc5={};return _0x5f2bc5[_0x475a86]={[Op[_0x2df387('0x2a')]]:'%'+_0x150e76[_0x2df387('0x2d')]['filter']+'%'},_0x5f2bc5;})})),_0xcd9b34=_['merge']({},_0xcd9b34,_0x150e76[_0x1566b4('0x23')]),db[_0x1566b4('0x34')]['count']({'where':_0xcd9b34[_0x1566b4('0x36')]})['then'](function(_0x52dfdd){const _0x4b09c6=_0x1566b4;return _0x5373bf[_0x4b09c6('0x6')]=_0x52dfdd,_0x150e76[_0x4b09c6('0x2d')]['includeAll']&&(_0xcd9b34[_0x4b09c6('0x43')]=[{'all':!![]}]),db[_0x4b09c6('0x34')]['findAll'](_0xcd9b34);})[_0x1566b4('0xc')](function(_0x1d7748){const _0x107b04=_0x1566b4;return _0x5373bf[_0x107b04('0x52')]=_0x1d7748,_0x5373bf;});})[_0x26770a('0xc')](respondWithFilteredResult(_0x42341b,_0xcd9b34))[_0x26770a('0x21')](handleError(_0x42341b,null));};function char(_0x9c71a4){const _0x44a21d=_0x10a530;return _0x44a21d('0x3b')===typeof _0x9c71a4?String[_0x44a21d('0x5c')][_0x44a21d('0x57')](null,arguments):_0x9c71a4;}function needsEncapsulation(_0x1ec3e7){const _0x54293d=_0x10a530;return!!_0x1ec3e7&&(_0x1ec3e7[_0x54293d('0xf')]()['indexOf'](char(0xd))>=0x0||_0x1ec3e7[_0x54293d('0xf')]()[_0x54293d('0xb')](char(0xa))>=0x0||_0x1ec3e7['toString']()[_0x54293d('0xb')](char(0x2c))>=0x0||_0x1ec3e7[_0x54293d('0xf')]()[_0x54293d('0xb')](char(0x22))>=0x0);}function encapsulate(_0x7a6020){const _0x393ed1=_0x10a530,_0x502083=char(0x22),_0x202950='\x5c'+char(0x22),_0x30afa6=_0x7a6020[_0x393ed1('0xf')]()[_0x393ed1('0x30')](new RegExp(_0x502083,'g'),_0x202950);return _0x502083+_0x30afa6+_0x502083;}exports['getSummary']=function(_0x29db91,_0x298890){const _0x3ee0a7=_0x10a530;let _0x3d1201,_0x6578f;const _0x2c92ff={'where':{'ProjectId':_0x29db91[_0x3ee0a7('0x18')]['id']}};return _0x29db91[_0x3ee0a7('0x2d')][_0x3ee0a7('0x49')]&&(_0x2c92ff[_0x3ee0a7('0x36')][_0x3ee0a7('0x2b')]=JSON['parse'](_0x29db91[_0x3ee0a7('0x2d')][_0x3ee0a7('0x49')])),db['JscriptySessionReport'][_0x3ee0a7('0x1f')](_0x2c92ff)[_0x3ee0a7('0xc')](handleEntityNotFound(_0x298890,null))[_0x3ee0a7('0xc')](function(_0x1f8d2f){const _0x5e034e=_0x3ee0a7;if(_0x1f8d2f)return _0x3d1201=_0x1f8d2f,db['JscriptyQuestionReport'][_0x5e034e('0x1f')]({'where':{'SessionId':{[Op['in']]:_['map'](_0x3d1201,'id')},'ProjectId':_0x29db91[_0x5e034e('0x18')]['id']},'order':'-createdAt'});})[_0x3ee0a7('0xc')](handleEntityNotFound(_0x298890,null))[_0x3ee0a7('0xc')](function(_0x44dbca){const _0x2bbb73=_0x3ee0a7;if(_0x44dbca){_0x6578f=_0x44dbca;const _0x499b77={};for(let _0x2290ac=0x0,_0x3457b7=_0x6578f[_0x2bbb73('0x1b')];_0x2290ac<_0x3457b7;_0x2290ac++){typeof _0x499b77[_0x6578f[_0x2290ac][_0x2bbb73('0x4a')]]===_0x2bbb73('0x3c')&&(_0x499b77[_0x6578f[_0x2290ac][_0x2bbb73('0x4a')]]=needsEncapsulation(_0x6578f[_0x2290ac]['question'])?encapsulate(_0x6578f[_0x2290ac][_0x2bbb73('0x32')]):_0x6578f[_0x2290ac]['question']);}const _0x37d347=[];let _0xe77be3={};for(let _0x35844a=0x0,_0x4b3dff=_0x3d1201['length'];_0x35844a<_0x4b3dff;_0x35844a++){_0xe77be3={'ProjectId':_0x29db91[_0x2bbb73('0x18')]['id'],'SessionId':_0x3d1201[_0x35844a]['id'],'StartTime':moment(_0x3d1201[_0x35844a][_0x2bbb73('0x2b')])[_0x2bbb73('0x5f')](_0x2bbb73('0x1d'))};for(let _0x2898e1=0x0,_0x791bd0=_0x6578f[_0x2bbb73('0x1b')];_0x2898e1<_0x791bd0;_0x2898e1++){_0x6578f[_0x2898e1]['SessionId']===_0x3d1201[_0x35844a]['id']&&typeof _0x499b77[_0x6578f[_0x2898e1]['questionId']]!=='undefined'&&(_0xe77be3[_0x499b77[_0x6578f[_0x2898e1]['questionId']]]=_0x6578f[_0x2898e1]['answer']);}for(const _0x8eab8b in _0x499b77){typeof _0xe77be3[_0x499b77[_0x8eab8b]]===_0x2bbb73('0x3c')&&(_0xe77be3[_0x499b77[_0x8eab8b]]=null);}_0x37d347['push'](_0xe77be3);}return _0x37d347;}})[_0x3ee0a7('0xc')](function(_0x558753){const _0x5bf6c3=_0x3ee0a7;if(!_[_0x5bf6c3('0x55')](_0x558753)){const _0x2626f0=toCsv(_0x558753),_0x2f6cb8=Date[_0x5bf6c3('0x3d')]();return fs[_0x5bf6c3('0x5b')](util['format'](_0x5bf6c3('0x24'),_0x29db91[_0x5bf6c3('0x18')]['id'],_0x2f6cb8),_0x2626f0),_0x298890[_0x5bf6c3('0x11')](_0x5bf6c3('0x8'),_0x5bf6c3('0x5')+util[_0x5bf6c3('0x5f')](_0x5bf6c3('0x51'),_0x29db91[_0x5bf6c3('0x18')]['id'],_0x2f6cb8)),_0x298890[_0x5bf6c3('0x11')](_0x5bf6c3('0x3'),_0x5bf6c3('0x14')),_0x298890[_0x5bf6c3('0x3e')](util['format']('/tmp/Jscripty_Project_%d_Summary_%s.csv',_0x29db91[_0x5bf6c3('0x18')]['id'],_0x2f6cb8));}else return _0x298890[_0x5bf6c3('0x5a')](0xcc);})[_0x3ee0a7('0x21')](handleError(_0x298890,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index 495ae27..70a1a2a 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a379_0x276e=['define','./jscriptyProject.attributes','exports'];(function(_0x4fb202,_0x276e52){const _0x2d1da6=function(_0x123836){while(--_0x123836){_0x4fb202['push'](_0x4fb202['shift']());}};_0x2d1da6(++_0x276e52);}(a379_0x276e,0x13a));const a379_0x2d1d=function(_0x4fb202,_0x276e52){_0x4fb202=_0x4fb202-0x0;let _0x2d1da6=a379_0x276e[_0x4fb202];return _0x2d1da6;};const _0x5bfa70=a379_0x2d1d;'use strict';const attributes=require(_0x5bfa70('0x2'));module[_0x5bfa70('0x0')]=function(_0x123836){const _0x22b8af=_0x5bfa70,_0x34c629=_0x123836[_0x22b8af('0x1')]('JscriptyProject',attributes,{'tableName':'jscripty_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x34c629;}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index 6c7ca47..cbbe1db 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a380_0x5971=['show','Router','./jscriptyQuestionReport.controller','express','/describe','isAuthenticated','describe','exports','destroy','post','/:id','put','get'];(function(_0x1b1aa8,_0x5971f7){const _0x4c58d2=function(_0x202638){while(--_0x202638){_0x1b1aa8['push'](_0x1b1aa8['shift']());}};_0x4c58d2(++_0x5971f7);}(a380_0x5971,0xda));const a380_0x4c58=function(_0x1b1aa8,_0x5971f7){_0x1b1aa8=_0x1b1aa8-0x0;let _0x4c58d2=a380_0x5971[_0x1b1aa8];return _0x4c58d2;};const _0x1ca305=a380_0x4c58;'use strict';const express=require(_0x1ca305('0x6')),router=express[_0x1ca305('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x1ca305('0x5'));router['get']('/',auth[_0x1ca305('0x8')](),controller['index']),router['get'](_0x1ca305('0x7'),auth[_0x1ca305('0x8')](),controller[_0x1ca305('0x9')]),router[_0x1ca305('0x2')]('/:id',auth[_0x1ca305('0x8')](),controller[_0x1ca305('0x3')]),router[_0x1ca305('0xc')]('/',auth[_0x1ca305('0x8')](),controller['create']),router[_0x1ca305('0x1')](_0x1ca305('0x0'),auth[_0x1ca305('0x8')](),controller['update']),router['delete'](_0x1ca305('0x0'),auth['isAuthenticated'](),controller[_0x1ca305('0xb')]),module[_0x1ca305('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index a639d50..dbb25e4 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a381_0x24e4=['sequelize','long','exports','TEXT','STRING'];(function(_0x55be9f,_0x24e40d){const _0x12d311=function(_0x801f01){while(--_0x801f01){_0x55be9f['push'](_0x55be9f['shift']());}};_0x12d311(++_0x24e40d);}(a381_0x24e4,0x142));const a381_0x12d3=function(_0x55be9f,_0x24e40d){_0x55be9f=_0x55be9f-0x0;let _0x12d311=a381_0x24e4[_0x55be9f];return _0x12d311;};const _0x39f5f2=a381_0x12d3;'use strict';const Sequelize=require(_0x39f5f2('0x3'));module[_0x39f5f2('0x0')]={'question':{'type':Sequelize[_0x39f5f2('0x2')]},'answer':{'type':Sequelize[_0x39f5f2('0x1')](_0x39f5f2('0x4'))},'membername':{'type':Sequelize[_0x39f5f2('0x2')]},'projectname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x39f5f2('0x2')]},'uniqueid':{'type':Sequelize[_0x39f5f2('0x2')]},'calleridname':{'type':Sequelize[_0x39f5f2('0x2')]},'calleridnum':{'type':Sequelize[_0x39f5f2('0x2')]},'questionId':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index 7aa80e0..c3e76a2 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a382_0x1c50=['json','update','filters','create','undefined','includeAll','index','destroy','nolimit','../../components/parsers/qs','options','status','limit','keys','VIRTUAL','intersection','send','describe','model','fieldName','count','api','../../config/logger','end','set','catch','fields','order','query','JscriptyQuestionReport','params','error','key','offset','pick','merge','name','sort','../../mysqldb','rawAttributes','map','findOne','filter','then','body','where','length','like','show','type','attributes'];(function(_0x1ffed5,_0x1c508c){const _0x32641f=function(_0x168828){while(--_0x168828){_0x1ffed5['push'](_0x1ffed5['shift']());}};_0x32641f(++_0x1c508c);}(a382_0x1c50,0xe5));const a382_0x3264=function(_0x1ffed5,_0x1c508c){_0x1ffed5=_0x1ffed5-0x0;let _0x32641f=a382_0x1c50[_0x1ffed5];return _0x32641f;};const _0x3b5028=a382_0x3264;'use strict';const _=require('lodash'),qs=require(_0x3b5028('0x23')),logger=require(_0x3b5028('0x30'))(_0x3b5028('0x2f')),db=require(_0x3b5028('0xd'))['db'],{Op}=require('sequelize');function respondWithResult(_0x168828,_0x51fcb3){return _0x51fcb3=_0x51fcb3||0xc8,function(_0x30af6f){const _0x3c4d57=a382_0x3264;if(_0x30af6f)return _0x168828['status'](_0x51fcb3)[_0x3c4d57('0x1a')](_0x30af6f);};}function respondWithFilteredResult(_0x6b2764,_0x33fabf){return function(_0x2b4bff){const _0x5dce73=a382_0x3264;if(_0x2b4bff){const _0xc27a21=_0x2b4bff['count'],_0x3f47a7=_0x33fabf['offset'];let _0x5a7b8c=_0x33fabf[_0x5dce73('0x8')]+_0x33fabf['limit'],_0x12f269;return _0x5a7b8c>=_0xc27a21?(_0x5a7b8c=_0xc27a21,_0x12f269=0xc8):_0x12f269=0xce,_0x6b2764[_0x5dce73('0x25')](_0x12f269),_0x6b2764[_0x5dce73('0x32')]('Content-Range',_0x3f47a7+'-'+_0x5a7b8c+'/'+_0xc27a21)[_0x5dce73('0x1a')](_0x2b4bff);}return null;};}function saveUpdates(_0x43cd76){return function(_0xe273a1){if(_0xe273a1)return _0xe273a1['update'](_0x43cd76)['then'](function(_0x3ccca1){return _0x3ccca1;});return null;};}function removeEntity(_0x5b979c){return function(_0x526a94){const _0x2c302b=a382_0x3264;if(_0x526a94)return _0x526a94['destroy']()[_0x2c302b('0x12')](function(){const _0x52ab8b=_0x2c302b;_0x5b979c[_0x52ab8b('0x25')](0xcc)[_0x52ab8b('0x31')]();});};}function handleEntityNotFound(_0x1f5c44){return function(_0x3bb606){return!_0x3bb606&&_0x1f5c44['sendStatus'](0x194),_0x3bb606;};}function handleError(_0x255dcf,_0x2596bb){return _0x2596bb=_0x2596bb||0x1f4,function(_0x498d86){const _0x413d5a=a382_0x3264;logger[_0x413d5a('0x6')](_0x498d86['stack']),_0x498d86[_0x413d5a('0xb')]&&delete _0x498d86['name'],_0x255dcf['status'](_0x2596bb)[_0x413d5a('0x2a')](_0x498d86);};}exports[_0x3b5028('0x20')]=function(_0x55f90f,_0x484e8a){const _0x404662=_0x3b5028;let _0x412d93={};const _0x5d4608={},_0x173951={'count':0x0,'rows':[]},_0x4d4e34=_[_0x404662('0xf')](db[_0x404662('0x4')][_0x404662('0xe')],function(_0x2388b2){const _0x5573a2=_0x404662;return{'name':_0x2388b2[_0x5573a2('0x2d')],'type':_0x2388b2[_0x5573a2('0x18')][_0x5573a2('0x7')]};});_0x5d4608[_0x404662('0x2c')]=_[_0x404662('0xf')](_0x4d4e34,_0x404662('0xb')),_0x5d4608[_0x404662('0x3')]=_[_0x404662('0x27')](_0x55f90f[_0x404662('0x3')]),_0x5d4608['filters']=_[_0x404662('0x29')](_0x5d4608[_0x404662('0x2c')],_0x5d4608[_0x404662('0x3')]),_0x412d93[_0x404662('0x19')]=_[_0x404662('0x29')](_0x5d4608['model'],qs[_0x404662('0x1')](_0x55f90f[_0x404662('0x3')][_0x404662('0x1')])),_0x412d93[_0x404662('0x19')]=_0x412d93['attributes'][_0x404662('0x15')]?_0x412d93[_0x404662('0x19')]:_0x5d4608[_0x404662('0x2c')];typeof _0x55f90f['query'][_0x404662('0x22')]===_0x404662('0x1e')&&(_0x412d93[_0x404662('0x26')]=qs[_0x404662('0x26')](_0x55f90f[_0x404662('0x3')][_0x404662('0x26')]),_0x412d93[_0x404662('0x8')]=qs[_0x404662('0x8')](_0x55f90f['query']['offset']));_0x412d93[_0x404662('0x2')]=qs[_0x404662('0xc')](_0x55f90f['query'][_0x404662('0xc')]),_0x412d93[_0x404662('0x14')]=qs[_0x404662('0x1c')](_[_0x404662('0x9')](_0x55f90f[_0x404662('0x3')],_0x5d4608['filters']),_0x4d4e34);_0x55f90f[_0x404662('0x3')][_0x404662('0x11')]&&(_0x412d93[_0x404662('0x14')]=_[_0x404662('0xa')](_0x412d93['where'],{[Op['or']]:_[_0x404662('0xf')](_0x4d4e34,function(_0x74f8e7){const _0x2c4037=_0x404662;if(_0x74f8e7[_0x2c4037('0x18')]!==_0x2c4037('0x28')){const _0x402b8b={};return _0x402b8b[_0x74f8e7[_0x2c4037('0xb')]]={[Op[_0x2c4037('0x16')]]:'%'+_0x55f90f[_0x2c4037('0x3')]['filter']+'%'},_0x402b8b;}})}));_0x412d93=_[_0x404662('0xa')]({},_0x412d93,_0x55f90f[_0x404662('0x24')]);const _0x5d47b9={'where':_0x412d93['where']};return db[_0x404662('0x4')][_0x404662('0x2e')](_0x5d47b9)[_0x404662('0x12')](function(_0x531b7c){const _0x48bab9=_0x404662;return _0x173951[_0x48bab9('0x2e')]=_0x531b7c,_0x55f90f['query'][_0x48bab9('0x1f')]&&(_0x412d93['include']=[{'all':!![]}]),db[_0x48bab9('0x4')]['findAll'](_0x412d93);})['then'](function(_0x3047c5){return _0x173951['rows']=_0x3047c5,_0x173951;})[_0x404662('0x12')](respondWithFilteredResult(_0x484e8a,_0x412d93))[_0x404662('0x0')](handleError(_0x484e8a,null));},exports[_0x3b5028('0x17')]=function(_0x103243,_0xb894a0){const _0x23498b=_0x3b5028;let _0x3ca6e1={'raw':!![],'where':{'id':_0x103243['params']['id']}};const _0x1b998f={};return _0x1b998f[_0x23498b('0x2c')]=_[_0x23498b('0x27')](db[_0x23498b('0x4')][_0x23498b('0xe')]),_0x1b998f[_0x23498b('0x3')]=_['keys'](_0x103243[_0x23498b('0x3')]),_0x1b998f['filters']=_[_0x23498b('0x29')](_0x1b998f['model'],_0x1b998f[_0x23498b('0x3')]),_0x3ca6e1[_0x23498b('0x19')]=_[_0x23498b('0x29')](_0x1b998f[_0x23498b('0x2c')],qs['fields'](_0x103243[_0x23498b('0x3')][_0x23498b('0x1')])),_0x3ca6e1[_0x23498b('0x19')]=_0x3ca6e1['attributes'][_0x23498b('0x15')]?_0x3ca6e1[_0x23498b('0x19')]:_0x1b998f[_0x23498b('0x2c')],_0x103243['query'][_0x23498b('0x1f')]&&(_0x3ca6e1['include']=[{'all':!![]}]),_0x3ca6e1=_[_0x23498b('0xa')]({},_0x3ca6e1,_0x103243['options']),db[_0x23498b('0x4')][_0x23498b('0x10')](_0x3ca6e1)[_0x23498b('0x12')](handleEntityNotFound(_0xb894a0,null))[_0x23498b('0x12')](respondWithResult(_0xb894a0,null))[_0x23498b('0x0')](handleError(_0xb894a0,null));},exports[_0x3b5028('0x1d')]=function(_0x5f2d42,_0x409b96){const _0x276da7=_0x3b5028;return db[_0x276da7('0x4')][_0x276da7('0x1d')](_0x5f2d42[_0x276da7('0x13')],{})[_0x276da7('0x12')](respondWithResult(_0x409b96,0xc9))[_0x276da7('0x0')](handleError(_0x409b96,null));},exports[_0x3b5028('0x1b')]=function(_0x2cb1a0,_0x261500){const _0x25a0b6=_0x3b5028;return _0x2cb1a0['body']['id']&&delete _0x2cb1a0[_0x25a0b6('0x13')]['id'],db[_0x25a0b6('0x4')][_0x25a0b6('0x10')]({'where':{'id':_0x2cb1a0[_0x25a0b6('0x5')]['id']}})[_0x25a0b6('0x12')](handleEntityNotFound(_0x261500,null))[_0x25a0b6('0x12')](saveUpdates(_0x2cb1a0[_0x25a0b6('0x13')],null))[_0x25a0b6('0x12')](respondWithResult(_0x261500,null))['catch'](handleError(_0x261500,null));},exports[_0x3b5028('0x21')]=function(_0x597306,_0x2856ef){const _0x2a8beb=_0x3b5028;return db['JscriptyQuestionReport'][_0x2a8beb('0x10')]({'where':{'id':_0x597306[_0x2a8beb('0x5')]['id']}})[_0x2a8beb('0x12')](handleEntityNotFound(_0x2856ef,null))[_0x2a8beb('0x12')](removeEntity(_0x2856ef,null))[_0x2a8beb('0x0')](handleError(_0x2856ef,null));},exports[_0x3b5028('0x2b')]=function(_0x4d8716,_0x4ed88a){const _0x31c690=_0x3b5028;return db['JscriptyQuestionReport'][_0x31c690('0x2b')]()[_0x31c690('0x12')](respondWithResult(_0x4ed88a,null))['catch'](handleError(_0x4ed88a,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index 2a171bd..df45cfa 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a383_0x15ca=['report_jscripty_questions','exports','JscriptyQuestionReport','./jscriptyQuestionReport.attributes','define'];(function(_0x25819f,_0x15ca0a){const _0x18a255=function(_0x1a0b7b){while(--_0x1a0b7b){_0x25819f['push'](_0x25819f['shift']());}};_0x18a255(++_0x15ca0a);}(a383_0x15ca,0x152));const a383_0x18a2=function(_0x25819f,_0x15ca0a){_0x25819f=_0x25819f-0x0;let _0x18a255=a383_0x15ca[_0x25819f];return _0x18a255;};const _0x14c274=a383_0x18a2;'use strict';const attributes=require(_0x14c274('0x0'));module[_0x14c274('0x3')]=function(_0x1a0b7b){const _0xcfd335=_0x14c274,_0xcaba98=_0x1a0b7b[_0xcfd335('0x1')](_0xcfd335('0x4'),attributes,{'tableName':_0xcfd335('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xcaba98;}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index 49298e6..6ee72f9 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a384_0x4c79=['exports','../../components/auth/service','/:id/questions','express','get','getQuestions','create','post','/:id','put','update','describe','destroy','Router','isAuthenticated'];(function(_0x5df417,_0x4c7947){const _0x245a1b=function(_0x6766de){while(--_0x6766de){_0x5df417['push'](_0x5df417['shift']());}};_0x245a1b(++_0x4c7947);}(a384_0x4c79,0x186));const a384_0x245a=function(_0x5df417,_0x4c7947){_0x5df417=_0x5df417-0x0;let _0x245a1b=a384_0x4c79[_0x5df417];return _0x245a1b;};const _0x1accb7=a384_0x245a;'use strict';const express=require(_0x1accb7('0x3')),router=express[_0x1accb7('0xd')](),auth=require(_0x1accb7('0x1')),controller=require('./jscriptySessionReport.controller');router[_0x1accb7('0x4')]('/',auth[_0x1accb7('0xe')](),controller['index']),router[_0x1accb7('0x4')]('/describe',auth[_0x1accb7('0xe')](),controller[_0x1accb7('0xb')]),router[_0x1accb7('0x4')](_0x1accb7('0x8'),auth[_0x1accb7('0xe')](),controller['show']),router[_0x1accb7('0x4')](_0x1accb7('0x2'),auth['isAuthenticated'](),controller[_0x1accb7('0x5')]),router[_0x1accb7('0x7')]('/',auth[_0x1accb7('0xe')](),controller[_0x1accb7('0x6')]),router[_0x1accb7('0x9')](_0x1accb7('0x8'),auth[_0x1accb7('0xe')](),controller[_0x1accb7('0xa')]),router['delete'](_0x1accb7('0x8'),auth[_0x1accb7('0xe')](),controller[_0x1accb7('0xc')]),module[_0x1accb7('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index d1544d5..d93ac09 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a385_0x232b=['DATE','starttime','exports','YYYY-MM-DD\x20HH:mm:ss','endtime','moment','BOOLEAN','STRING'];(function(_0x4d618a,_0x232bde){const _0x3ade09=function(_0x599b03){while(--_0x599b03){_0x4d618a['push'](_0x4d618a['shift']());}};_0x3ade09(++_0x232bde);}(a385_0x232b,0x19e));const a385_0x3ade=function(_0x4d618a,_0x232bde){_0x4d618a=_0x4d618a-0x0;let _0x3ade09=a385_0x232b[_0x4d618a];return _0x3ade09;};const _0x1e3706=a385_0x3ade;'use strict';const moment=require(_0x1e3706('0x7')),Sequelize=require('sequelize');module[_0x1e3706('0x4')]={'starttime':{'type':Sequelize[_0x1e3706('0x2')],'set':function(_0x599b03){const _0x27e2b1=_0x1e3706;this['setDataValue'](_0x27e2b1('0x3'),_0x599b03),this['setDataValue'](_0x27e2b1('0x6'),moment()['format'](_0x27e2b1('0x5')));}},'endtime':{'type':Sequelize[_0x1e3706('0x2')]},'membername':{'type':Sequelize[_0x1e3706('0x1')]},'projectname':{'type':Sequelize[_0x1e3706('0x1')]},'queue':{'type':Sequelize[_0x1e3706('0x1')]},'uniqueid':{'type':Sequelize[_0x1e3706('0x1')]},'calleridname':{'type':Sequelize[_0x1e3706('0x1')]},'calleridnum':{'type':Sequelize[_0x1e3706('0x1')]},'completed':{'type':Sequelize[_0x1e3706('0x0')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index b2f1610..7c4c4fb 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a386_0x1156=['error','merge','update','filters','JscriptyQuestionReport','destroy','show','Content-Range','map','type','stack','sendStatus','offset','keys','order','length','limit','VIRTUAL','../../components/parsers/qs','fields','params','query','attributes','then','count','includeAll','sequelize','where','../../config/logger','create','model','findOne','sort','findAll','name','body','undefined','rows','status','options','api','set','intersection','end','SessionId','json','pick','filter','like','catch','rawAttributes','JscriptySessionReport','describe','nolimit'];(function(_0x33e4d4,_0x1156c1){const _0x56e97c=function(_0x2b524b){while(--_0x2b524b){_0x33e4d4['push'](_0x33e4d4['shift']());}};_0x56e97c(++_0x1156c1);}(a386_0x1156,0x1d5));const a386_0x56e9=function(_0x33e4d4,_0x1156c1){_0x33e4d4=_0x33e4d4-0x0;let _0x56e97c=a386_0x1156[_0x33e4d4];return _0x56e97c;};const _0x17cbfa=a386_0x56e9;'use strict';const _=require('lodash'),qs=require(_0x17cbfa('0x23')),logger=require(_0x17cbfa('0x2d'))(_0x17cbfa('0x3')),db=require('../../mysqldb')['db'],{Op}=require(_0x17cbfa('0x2b'));function respondWithResult(_0x2b524b,_0x222e95){return _0x222e95=_0x222e95||0xc8,function(_0x4e7385){const _0x68fd45=a386_0x56e9;if(_0x4e7385)return _0x2b524b[_0x68fd45('0x1')](_0x222e95)[_0x68fd45('0x8')](_0x4e7385);};}function respondWithFilteredResult(_0x1981b7,_0x80a419){return function(_0x22837e){const _0xce8f98=a386_0x56e9;if(_0x22837e){const _0x4e9aec=_0x22837e[_0xce8f98('0x29')],_0x4dad78=_0x80a419['offset'];let _0x4fbbb4=_0x80a419['offset']+_0x80a419[_0xce8f98('0x21')],_0x5c38e6;return _0x4fbbb4>=_0x4e9aec?(_0x4fbbb4=_0x4e9aec,_0x5c38e6=0xc8):_0x5c38e6=0xce,_0x1981b7[_0xce8f98('0x1')](_0x5c38e6),_0x1981b7[_0xce8f98('0x4')](_0xce8f98('0x18'),_0x4dad78+'-'+_0x4fbbb4+'/'+_0x4e9aec)['json'](_0x22837e);}return null;};}function saveUpdates(_0x47d8ab){return function(_0x151289){const _0x4291f7=a386_0x56e9;if(_0x151289)return _0x151289['update'](_0x47d8ab)[_0x4291f7('0x28')](function(_0x90cc6){return _0x90cc6;});return null;};}function removeEntity(_0x16ee7c){return function(_0x1aea90){if(_0x1aea90)return _0x1aea90['destroy']()['then'](function(){const _0x3300c3=a386_0x56e9;_0x16ee7c[_0x3300c3('0x1')](0xcc)[_0x3300c3('0x6')]();});};}function handleEntityNotFound(_0x51e159){return function(_0x305610){const _0x2e42de=a386_0x56e9;return!_0x305610&&_0x51e159[_0x2e42de('0x1c')](0x194),_0x305610;};}function handleError(_0xeb20ff,_0xa1f458){return _0xa1f458=_0xa1f458||0x1f4,function(_0x246a31){const _0x502f88=a386_0x56e9;logger[_0x502f88('0x11')](_0x246a31[_0x502f88('0x1b')]),_0x246a31[_0x502f88('0x33')]&&delete _0x246a31[_0x502f88('0x33')],_0xeb20ff[_0x502f88('0x1')](_0xa1f458)['send'](_0x246a31);};}exports['index']=function(_0x34c6f6,_0x4a2550){const _0x1b1913=_0x17cbfa;let _0x265d1f={};const _0x54f1d8={},_0x2f9f22={'count':0x0,'rows':[]},_0x4b8ae9=_[_0x1b1913('0x19')](db[_0x1b1913('0xe')][_0x1b1913('0xd')],function(_0x5b4d97){const _0x22462d=_0x1b1913;return{'name':_0x5b4d97['fieldName'],'type':_0x5b4d97[_0x22462d('0x1a')]['key']};});_0x54f1d8['model']=_[_0x1b1913('0x19')](_0x4b8ae9,_0x1b1913('0x33')),_0x54f1d8[_0x1b1913('0x26')]=_[_0x1b1913('0x1e')](_0x34c6f6['query']),_0x54f1d8[_0x1b1913('0x14')]=_['intersection'](_0x54f1d8['model'],_0x54f1d8[_0x1b1913('0x26')]),_0x265d1f['attributes']=_[_0x1b1913('0x5')](_0x54f1d8[_0x1b1913('0x2f')],qs[_0x1b1913('0x24')](_0x34c6f6['query'][_0x1b1913('0x24')])),_0x265d1f[_0x1b1913('0x27')]=_0x265d1f[_0x1b1913('0x27')]['length']?_0x265d1f[_0x1b1913('0x27')]:_0x54f1d8[_0x1b1913('0x2f')];typeof _0x34c6f6[_0x1b1913('0x26')][_0x1b1913('0x10')]===_0x1b1913('0x35')&&(_0x265d1f[_0x1b1913('0x21')]=qs[_0x1b1913('0x21')](_0x34c6f6[_0x1b1913('0x26')][_0x1b1913('0x21')]),_0x265d1f[_0x1b1913('0x1d')]=qs[_0x1b1913('0x1d')](_0x34c6f6['query'][_0x1b1913('0x1d')]));_0x265d1f[_0x1b1913('0x1f')]=qs[_0x1b1913('0x31')](_0x34c6f6[_0x1b1913('0x26')]['sort']),_0x265d1f[_0x1b1913('0x2c')]=qs['filters'](_[_0x1b1913('0x9')](_0x34c6f6['query'],_0x54f1d8[_0x1b1913('0x14')]),_0x4b8ae9);_0x34c6f6['query']['filter']&&(_0x265d1f[_0x1b1913('0x2c')]=_[_0x1b1913('0x12')](_0x265d1f['where'],{[Op['or']]:_[_0x1b1913('0x19')](_0x4b8ae9,function(_0x21e147){const _0xa8ac19=_0x1b1913;if(_0x21e147['type']!==_0xa8ac19('0x22')){const _0x29f857={};return _0x29f857[_0x21e147['name']]={[Op[_0xa8ac19('0xb')]]:'%'+_0x34c6f6[_0xa8ac19('0x26')][_0xa8ac19('0xa')]+'%'},_0x29f857;}})}));_0x265d1f=_[_0x1b1913('0x12')]({},_0x265d1f,_0x34c6f6['options']);const _0x428d59={'where':_0x265d1f[_0x1b1913('0x2c')]};return db[_0x1b1913('0xe')][_0x1b1913('0x29')](_0x428d59)[_0x1b1913('0x28')](function(_0x14f072){const _0x44c114=_0x1b1913;return _0x2f9f22[_0x44c114('0x29')]=_0x14f072,_0x34c6f6[_0x44c114('0x26')][_0x44c114('0x2a')]&&(_0x265d1f['include']=[{'all':!![]}]),db['JscriptySessionReport'][_0x44c114('0x32')](_0x265d1f);})[_0x1b1913('0x28')](function(_0x5d8690){const _0x2afd85=_0x1b1913;return _0x2f9f22[_0x2afd85('0x0')]=_0x5d8690,_0x2f9f22;})[_0x1b1913('0x28')](respondWithFilteredResult(_0x4a2550,_0x265d1f))[_0x1b1913('0xc')](handleError(_0x4a2550,null));},exports[_0x17cbfa('0x17')]=function(_0x50fb6c,_0x9c1bf){const _0x540bf0=_0x17cbfa;let _0xa7dd04={'raw':!![],'where':{'id':_0x50fb6c[_0x540bf0('0x25')]['id']}};const _0x23420d={};return _0x23420d[_0x540bf0('0x2f')]=_[_0x540bf0('0x1e')](db[_0x540bf0('0xe')][_0x540bf0('0xd')]),_0x23420d[_0x540bf0('0x26')]=_[_0x540bf0('0x1e')](_0x50fb6c['query']),_0x23420d[_0x540bf0('0x14')]=_[_0x540bf0('0x5')](_0x23420d[_0x540bf0('0x2f')],_0x23420d[_0x540bf0('0x26')]),_0xa7dd04[_0x540bf0('0x27')]=_['intersection'](_0x23420d[_0x540bf0('0x2f')],qs['fields'](_0x50fb6c[_0x540bf0('0x26')][_0x540bf0('0x24')])),_0xa7dd04[_0x540bf0('0x27')]=_0xa7dd04[_0x540bf0('0x27')]['length']?_0xa7dd04[_0x540bf0('0x27')]:_0x23420d[_0x540bf0('0x2f')],_0x50fb6c['query'][_0x540bf0('0x2a')]&&(_0xa7dd04['include']=[{'all':!![]}]),_0xa7dd04=_[_0x540bf0('0x12')]({},_0xa7dd04,_0x50fb6c[_0x540bf0('0x2')]),db[_0x540bf0('0xe')][_0x540bf0('0x30')](_0xa7dd04)[_0x540bf0('0x28')](handleEntityNotFound(_0x9c1bf,null))[_0x540bf0('0x28')](respondWithResult(_0x9c1bf,null))['catch'](handleError(_0x9c1bf,null));},exports['create']=function(_0x1bdfad,_0x5f8ecd){const _0x121d65=_0x17cbfa;return db[_0x121d65('0xe')][_0x121d65('0x2e')](_0x1bdfad[_0x121d65('0x34')],{})[_0x121d65('0x28')](respondWithResult(_0x5f8ecd,0xc9))[_0x121d65('0xc')](handleError(_0x5f8ecd,null));},exports[_0x17cbfa('0x13')]=function(_0x234e6b,_0x4f0311){const _0x1946a3=_0x17cbfa;return _0x234e6b['body']['id']&&delete _0x234e6b[_0x1946a3('0x34')]['id'],db[_0x1946a3('0xe')][_0x1946a3('0x30')]({'where':{'id':_0x234e6b['params']['id']}})[_0x1946a3('0x28')](handleEntityNotFound(_0x4f0311,null))[_0x1946a3('0x28')](saveUpdates(_0x234e6b[_0x1946a3('0x34')],null))['then'](respondWithResult(_0x4f0311,null))[_0x1946a3('0xc')](handleError(_0x4f0311,null));},exports[_0x17cbfa('0x16')]=function(_0x5d2792,_0x13f1d4){const _0x14817e=_0x17cbfa;return db[_0x14817e('0xe')][_0x14817e('0x30')]({'where':{'id':_0x5d2792['params']['id']}})[_0x14817e('0x28')](handleEntityNotFound(_0x13f1d4,null))['then'](removeEntity(_0x13f1d4,null))['catch'](handleError(_0x13f1d4,null));},exports[_0x17cbfa('0xf')]=function(_0x4498e0,_0x2cde95){const _0x247859=_0x17cbfa;return db[_0x247859('0xe')][_0x247859('0xf')]()[_0x247859('0x28')](respondWithResult(_0x2cde95,null))[_0x247859('0xc')](handleError(_0x2cde95,null));},exports['getQuestions']=function(_0x3482a0,_0x119190){const _0x56b87e=_0x17cbfa;let _0x5365a1={'raw':!![],'where':{}};const _0x5b9c6d={},_0x58c8ae={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x56b87e('0x30')]({'where':{'id':_0x3482a0[_0x56b87e('0x25')]['id']}})[_0x56b87e('0x28')](handleEntityNotFound(_0x119190,null))[_0x56b87e('0x28')](function(_0x321a08){const _0x19bd61=_0x56b87e;if(_0x321a08)return _0x5b9c6d['model']=_[_0x19bd61('0x1e')](db[_0x19bd61('0x15')][_0x19bd61('0xd')]),_0x5b9c6d[_0x19bd61('0x26')]=_['keys'](_0x3482a0[_0x19bd61('0x26')]),_0x5b9c6d[_0x19bd61('0x14')]=_[_0x19bd61('0x5')](_0x5b9c6d['model'],_0x5b9c6d[_0x19bd61('0x26')]),_0x5365a1['attributes']=_[_0x19bd61('0x5')](_0x5b9c6d['model'],qs[_0x19bd61('0x24')](_0x3482a0['query'][_0x19bd61('0x24')])),_0x5365a1[_0x19bd61('0x27')]=_0x5365a1['attributes'][_0x19bd61('0x20')]?_0x5365a1['attributes']:_0x5b9c6d[_0x19bd61('0x2f')],typeof _0x3482a0[_0x19bd61('0x26')][_0x19bd61('0x10')]===_0x19bd61('0x35')&&(_0x5365a1[_0x19bd61('0x21')]=qs[_0x19bd61('0x21')](_0x3482a0[_0x19bd61('0x26')][_0x19bd61('0x21')]),_0x5365a1['offset']=qs[_0x19bd61('0x1d')](_0x3482a0['query'][_0x19bd61('0x1d')])),_0x5365a1[_0x19bd61('0x1f')]=qs['sort'](_0x3482a0['query'][_0x19bd61('0x31')]),_0x5365a1['where']=qs[_0x19bd61('0x14')](_[_0x19bd61('0x9')](_0x3482a0['query'],_0x5b9c6d[_0x19bd61('0x14')])),_0x5365a1[_0x19bd61('0x2c')][_0x19bd61('0x7')]=_0x321a08['id'],_0x3482a0[_0x19bd61('0x26')]['filter']&&(_0x5365a1['where']=_[_0x19bd61('0x12')](_0x5365a1[_0x19bd61('0x2c')],{[Op['or']]:_['map'](_0x5365a1[_0x19bd61('0x27')],function(_0x4a9afe){const _0x56cb2a=_0x19bd61,_0xfc927d={};return _0xfc927d[_0x4a9afe]={[Op['like']]:'%'+_0x3482a0[_0x56cb2a('0x26')][_0x56cb2a('0xa')]+'%'},_0xfc927d;})})),_0x5365a1=_[_0x19bd61('0x12')]({},_0x5365a1,_0x3482a0[_0x19bd61('0x2')]),db[_0x19bd61('0x15')]['count']({'where':_0x5365a1[_0x19bd61('0x2c')]})['then'](function(_0x12a985){const _0x398168=_0x19bd61;return _0x58c8ae[_0x398168('0x29')]=_0x12a985,_0x3482a0['query'][_0x398168('0x2a')]&&(_0x5365a1['include']=[{'all':!![]}]),db[_0x398168('0x15')][_0x398168('0x32')](_0x5365a1);})[_0x19bd61('0x28')](function(_0x1d8049){const _0x55107a=_0x19bd61;return _0x58c8ae[_0x55107a('0x0')]=_0x1d8049,_0x58c8ae;});})[_0x56b87e('0x28')](respondWithFilteredResult(_0x119190,_0x5365a1))[_0x56b87e('0xc')](handleError(_0x119190,null));}; \ No newline at end of file +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 diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index 71f2a2f..55409a9 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a387_0x3bc3=['exports','report_jscripty_sessions','define','./jscriptySessionReport.attributes'];(function(_0xfc4ff6,_0x3bc35e){const _0x5bf372=function(_0x2c6009){while(--_0x2c6009){_0xfc4ff6['push'](_0xfc4ff6['shift']());}};_0x5bf372(++_0x3bc35e);}(a387_0x3bc3,0xe4));const a387_0x5bf3=function(_0xfc4ff6,_0x3bc35e){_0xfc4ff6=_0xfc4ff6-0x0;let _0x5bf372=a387_0x3bc3[_0xfc4ff6];return _0x5bf372;};const _0x4da3cd=a387_0x5bf3;'use strict';const attributes=require(_0x4da3cd('0x3'));module[_0x4da3cd('0x0')]=function(_0x2c6009){const _0x151cb9=_0x4da3cd,_0x2bccf1=_0x2c6009[_0x151cb9('0x2')]('JscriptySessionReport',attributes,{'tableName':_0x151cb9('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2bccf1;}; \ No newline at end of file +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 diff --git a/server/api/license/index.js b/server/api/license/index.js index a9f7f1f..cd7a25b 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a388_0x17aa=['../../components/auth/service','isAuthenticated','express','put','exports','Router','/:id'];(function(_0x18bca0,_0x17aaa7){const _0xe07299=function(_0x1f7031){while(--_0x1f7031){_0x18bca0['push'](_0x18bca0['shift']());}};_0xe07299(++_0x17aaa7);}(a388_0x17aa,0x6b));const a388_0xe072=function(_0x18bca0,_0x17aaa7){_0x18bca0=_0x18bca0-0x0;let _0xe07299=a388_0x17aa[_0x18bca0];return _0xe07299;};const _0x3a36c0=a388_0xe072;'use strict';const express=require(_0x3a36c0('0x0')),router=express[_0x3a36c0('0x3')](),auth=require(_0x3a36c0('0x5')),controller=require('./license.controller');router['get']('/',controller['index']),router[_0x3a36c0('0x1')](_0x3a36c0('0x4'),auth[_0x3a36c0('0x6')](),controller['update']),module[_0x3a36c0('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index 0de3b81..e1d2ded 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a389_0x1c33=['INTEGER','TEXT','sequelize','STRING','exports'];(function(_0x252fc4,_0x1c33ca){const _0x1c041a=function(_0x1a5d89){while(--_0x1a5d89){_0x252fc4['push'](_0x252fc4['shift']());}};_0x1c041a(++_0x1c33ca);}(a389_0x1c33,0x188));const a389_0x1c04=function(_0x252fc4,_0x1c33ca){_0x252fc4=_0x252fc4-0x0;let _0x1c041a=a389_0x1c33[_0x252fc4];return _0x1c041a;};const _0x279062=a389_0x1c04;'use strict';const Sequelize=require(_0x279062('0x0'));module[_0x279062('0x2')]={'license':{'type':Sequelize[_0x279062('0x4')]},'data1':{'type':Sequelize[_0x279062('0x1')]},'data2':{'type':Sequelize['STRING']},'chatLicenseExceeded':{'type':Sequelize[_0x279062('0x3')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/license/license.controller.js b/server/api/license/license.controller.js index 0ebab96..e1322cc 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a390_0x1172=['fields','key','attributes','sendStatus','stack','checkLicense','index','License','../../mysqldb','then','../../config/license/util','query','findOne','intersection','filters','lodash','body','model','getLicense','json','../../config/logger','error','catch','status','get','../../components/parsers/qs','length','send','keys','name'];(function(_0x3f82ef,_0x117297){const _0x392ca5=function(_0xa69804){while(--_0xa69804){_0x3f82ef['push'](_0x3f82ef['shift']());}};_0x392ca5(++_0x117297);}(a390_0x1172,0x149));const a390_0x392c=function(_0x3f82ef,_0x117297){_0x3f82ef=_0x3f82ef-0x0;let _0x392ca5=a390_0x1172[_0x3f82ef];return _0x392ca5;};const _0x51e0d6=a390_0x392c;'use strict';const _=require(_0x51e0d6('0x10')),qs=require(_0x51e0d6('0x1a')),logger=require(_0x51e0d6('0x15'))('api'),db=require(_0x51e0d6('0x9'))['db'];function respondWithResult(_0xa69804,_0x302e82){return _0x302e82=_0x302e82||0xc8,function(_0x2c4cbf){const _0x55d71d=a390_0x392c;if(_0x2c4cbf)return _0xa69804[_0x55d71d('0x18')](_0x302e82)[_0x55d71d('0x14')](_0x2c4cbf);};}function saveUpdates(_0x173151){return function(_0x5696a0){const _0xe793c3=a390_0x392c;if(_0x5696a0)return _0x5696a0['update'](_0x173151)[_0xe793c3('0xa')](function(_0x2467e4){return _0x2467e4;});return null;};}function handleEntityNotFound(_0x2b6276){return function(_0x3872f){const _0x4eb029=a390_0x392c;return!_0x3872f&&_0x2b6276[_0x4eb029('0x4')](0x194),_0x3872f;};}function handleError(_0x4783c7,_0x226deb){return _0x226deb=_0x226deb||0x1f4,function(_0x21bada){const _0x293df8=a390_0x392c;logger[_0x293df8('0x16')](_0x21bada[_0x293df8('0x5')]),_0x21bada[_0x293df8('0x0')]&&delete _0x21bada['name'],_0x4783c7['status'](_0x226deb)[_0x293df8('0x1c')](_0x21bada);};}const utilLicense=require(_0x51e0d6('0xb'));exports[_0x51e0d6('0x7')]=function(_0x27733d,_0x210fc8){const _0x30db0d=_0x51e0d6;let _0x154317={'raw':!![],'where':{'id':0x1}};const _0x9205e1={};return _0x9205e1['model']=_[_0x30db0d('0x1d')](db[_0x30db0d('0x8')]['rawAttributes']),_0x9205e1[_0x30db0d('0xc')]=_[_0x30db0d('0x1d')](_0x27733d[_0x30db0d('0xc')]),_0x9205e1[_0x30db0d('0xf')]=_[_0x30db0d('0xe')](_0x9205e1['model'],_0x9205e1[_0x30db0d('0xc')]),_0x154317[_0x30db0d('0x3')]=_[_0x30db0d('0xe')](_0x9205e1[_0x30db0d('0x12')],qs[_0x30db0d('0x1')](_0x27733d[_0x30db0d('0xc')]['fields'])),_0x154317[_0x30db0d('0x3')]=_0x154317['attributes'][_0x30db0d('0x1b')]?_0x154317[_0x30db0d('0x3')]:_0x9205e1[_0x30db0d('0x12')],_0x154317=_['merge']({},_0x154317,_0x27733d['options']),utilLicense[_0x30db0d('0x13')](_0x154317)[_0x30db0d('0xa')](respondWithResult(_0x210fc8,null))['catch'](handleError(_0x210fc8,null));},exports['update']=function(_0x1e03b9,_0x28efbe){const _0x25017f=_0x51e0d6;return _0x1e03b9[_0x25017f('0x11')]['id']&&delete _0x1e03b9[_0x25017f('0x11')]['id'],db['License'][_0x25017f('0xd')]({'where':{'id':_0x1e03b9['params']['id']}})[_0x25017f('0xa')](handleEntityNotFound(_0x28efbe,null))[_0x25017f('0xa')](function(_0x105f36){const _0x4867df=_0x25017f,_0x1e1394=_0x105f36[_0x4867df('0x19')]({'plain':!![]});return utilLicense[_0x4867df('0x6')](_0x1e1394,_0x1e03b9[_0x4867df('0x11')][_0x4867df('0x2')]);})[_0x25017f('0xa')](function(_0x51e630){if(!_0x51e630['demo'])return saveUpdates(_0x1e03b9['body'],null);return _0x51e630;})['then'](respondWithResult(_0x28efbe,null))[_0x25017f('0x17')](handleError(_0x28efbe,null));}; \ No newline at end of file +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 diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 0daf968..76f53f7 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a391_0x3d77=['define','exports','License'];(function(_0x1d5269,_0x3d7734){const _0xf10d93=function(_0x359662){while(--_0x359662){_0x1d5269['push'](_0x1d5269['shift']());}};_0xf10d93(++_0x3d7734);}(a391_0x3d77,0x67));const a391_0xf10d=function(_0x1d5269,_0x3d7734){_0x1d5269=_0x1d5269-0x0;let _0xf10d93=a391_0x3d77[_0x1d5269];return _0xf10d93;};const _0x169a33=a391_0xf10d;'use strict';const attributes=require('./license.attributes');module[_0x169a33('0x0')]=function(_0x359662){const _0x2e0444=_0x169a33,_0x4cd030=_0x359662[_0x2e0444('0x2')](_0x2e0444('0x1'),attributes,{'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4cd030;}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index 5a455aa..c9074a7 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a392_0x372a=['getApplications','isAuthenticated','describe','getImap','/describe','getAnswers','removeAgents','/:id/users','/:id','destroy','delete','removeDispositions','addApplications','post','get','removeImap','/:id/messages','/:id/interactions','removeAnswers','/:id/in_servers','update','exports','getSmtp','/:id/canned_answers','index','addAgents','/:id/out_servers','/:id/dispositions','addInteraction','/:id/send','put','express','verifySmtp','show','addSmtp','addDisposition','/:id/applications','../../components/auth/service','removeSmtp','create'];(function(_0x277b73,_0x372a3d){const _0x408166=function(_0x32283d){while(--_0x32283d){_0x277b73['push'](_0x277b73['shift']());}};_0x408166(++_0x372a3d);}(a392_0x372a,0x176));const a392_0x4081=function(_0x277b73,_0x372a3d){_0x277b73=_0x277b73-0x0;let _0x408166=a392_0x372a[_0x277b73];return _0x408166;};const _0x3fc078=a392_0x4081;'use strict';const express=require(_0x3fc078('0x11')),router=express['Router'](),auth=require(_0x3fc078('0x17')),controller=require('./mailAccount.controller');router[_0x3fc078('0x0')]('/',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0xa')]),router[_0x3fc078('0x0')](_0x3fc078('0x1e'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x1c')]),router[_0x3fc078('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x3fc078('0x13')]),router[_0x3fc078('0x0')](_0x3fc078('0xd'),auth['isAuthenticated'](),controller['getDispositions']),router['get']('/:id/canned_answers',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x1f')]),router['get'](_0x3fc078('0x5'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x1d')]),router[_0x3fc078('0x0')](_0x3fc078('0xc'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x8')]),router[_0x3fc078('0x0')](_0x3fc078('0x3'),auth['isAuthenticated'](),controller['getInteractions']),router['get'](_0x3fc078('0x16'),auth['isAuthenticated'](),controller[_0x3fc078('0x1a')]),router[_0x3fc078('0x0')](_0x3fc078('0x2'),auth[_0x3fc078('0x1b')](),controller['getMessages']),router[_0x3fc078('0x0')]('/:id/verify',auth['isAuthenticated'](),controller[_0x3fc078('0x12')]),router[_0x3fc078('0x0')](_0x3fc078('0x21'),auth[_0x3fc078('0x1b')](),controller['getAgents']),router['post']('/:id/dispositions',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x15')]),router[_0x3fc078('0x27')](_0x3fc078('0x9'),auth['isAuthenticated'](),controller['addAnswer']),router[_0x3fc078('0x27')]('/',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x19')]),router[_0x3fc078('0x27')](_0x3fc078('0x5'),auth['isAuthenticated'](),controller['addImap']),router[_0x3fc078('0x27')](_0x3fc078('0xc'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x14')]),router[_0x3fc078('0x27')](_0x3fc078('0x3'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0xe')]),router[_0x3fc078('0x27')](_0x3fc078('0x16'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x26')]),router[_0x3fc078('0x27')](_0x3fc078('0xf'),auth[_0x3fc078('0x1b')](),controller['send']),router['post'](_0x3fc078('0x21'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0xb')]),router[_0x3fc078('0x10')](_0x3fc078('0x22'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x6')]),router[_0x3fc078('0x24')](_0x3fc078('0xd'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x25')]),router[_0x3fc078('0x24')]('/:id/canned_answers',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x4')]),router[_0x3fc078('0x24')]('/:id/in_servers',auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x1')]),router['delete']('/:id/out_servers',auth['isAuthenticated'](),controller[_0x3fc078('0x18')]),router[_0x3fc078('0x24')](_0x3fc078('0x22'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x23')]),router['delete'](_0x3fc078('0x21'),auth[_0x3fc078('0x1b')](),controller[_0x3fc078('0x20')]),module[_0x3fc078('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.attributes.js b/server/api/mailAccount/mailAccount.attributes.js index c74192f..5eba6fa 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a393_0x115f=['Arial,Helvetica,sans-serif','INTEGER','exports','STRING','TEXT','BOOLEAN','setDataValue','UNSIGNED','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDisposition','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'];(function(_0x6829f9,_0x115f3a){const _0x6314d4=function(_0x134bea){while(--_0x134bea){_0x6829f9['push'](_0x6829f9['shift']());}};_0x6314d4(++_0x115f3a);}(a393_0x115f,0x195));const a393_0x6314=function(_0x6829f9,_0x115f3a){_0x6829f9=_0x6829f9-0x0;let _0x6314d4=a393_0x115f[_0x6829f9];return _0x6314d4;};const _0x4dea00=a393_0x6314;'use strict';const Sequelize=require('sequelize');module[_0x4dea00('0x4')]={'description':{'type':Sequelize[_0x4dea00('0x5')]},'name':{'type':Sequelize[_0x4dea00('0x5')],'allowNull':![]},'service':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':![]},'email':{'type':Sequelize[_0x4dea00('0x5')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':!![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'template':{'type':Sequelize[_0x4dea00('0x6')]},'markAsUnread':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':![]},'fontFamily':{'type':Sequelize[_0x4dea00('0x5')],'allowNull':![],'defaultValue':_0x4dea00('0x2')},'fontSize':{'type':Sequelize[_0x4dea00('0x3')](0x2)[_0x4dea00('0x9')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x4dea00('0x6')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}';}},'notificationSound':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4dea00('0x3')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4dea00('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4dea00('0x3')],'allowNull':!![],'defaultValue':null,'comment':_0x4dea00('0x1')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x4dea00('0xa'),'set':function(_0x134bea){const _0x3c872c=_0x4dea00;if(!_0x134bea)this['setDataValue']('mandatoryDispositionPauseId',null);this[_0x3c872c('0x8')](_0x3c872c('0x0'),_0x134bea);}}}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index 84a4ef8..1b0de64 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a394_0x4f01=['stack','message','key','filter','get','mandatoryDispositionPause','internal','then','name','destroy','ids','VerifySmtp','pass','./mailAccount.socket','request','CmList','attributes','setSmtp','type','emit','List','addDisposition','query','host','getAgents','end','json','like','verifySmtp','../../config/logger','rawAttributes','UserProfileSection','$gte','authentication','findAndCountAll','Interaction','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','from','undefined','addAgents','split','findAll','defaults','sequelize','userMailAccount:save','getApplications','tag','removeAnswers','body','transaction','userMailAccount:remove','send','register','service','getDispositions','fieldName','getInteractions','CmContact','error','Contact','active','format','join','create','password','Smtp','util','DESC','server/files/attachments','removeDispositions','removeAgents','length','params','cuser','offset','isNil','options','fields','MailServerIn','getMessages','MailApplication','messageId','priority','omit','include','MailAccountId','updatedAt','jayson/promise','YYYY-MM-DD\x20HH:mm:ss','pick','describe','root','update','out','count','code','MailAccount','gte','secure','where','MailMessage','merge','cservice','findOne','color','port','Pause','MailAccounts','email','role','isArray','filters','removeSmtp','MailAccount,\x20%s,\x20%s','Disposition','rows','info','auth','removeImap','includeAll','addSmtp','keys','getImap','%s\x20<%s>','Messages','model','UserProfileResource','sendStatus','Imap','getSmtp','User','attach','addInteraction','CannedAnswer','user','limit','moment','MailServerOut','subject','MailInteraction','cpassword','index','sort','../../config/environment','bulkCreate','Owner','result','intersection','getAnswers','attachments','autoAssociation','../../mysqldb','VIRTUAL','addImap','Contacts','map','request\x20sent','order','nolimit','status','catch','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account'];(function(_0x2b6df3,_0x4f0145){const _0x4fac55=function(_0x56e1fa){while(--_0x56e1fa){_0x2b6df3['push'](_0x2b6df3['shift']());}};_0x4fac55(++_0x4f0145);}(a394_0x4f01,0x122));const a394_0x4fac=function(_0x2b6df3,_0x4f0145){_0x2b6df3=_0x2b6df3-0x0;let _0x4fac55=a394_0x4f01[_0x2b6df3];return _0x4fac55;};const _0x3c6dfa=a394_0x4fac;'use strict';const moment=require(_0x3c6dfa('0x8')),util=require(_0x3c6dfa('0x64')),path=require('path'),_=require('lodash'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x3c6dfa('0x3f'))('api'),config=require(_0x3c6dfa('0xf')),db=require(_0x3c6dfa('0x17'))['db'],{Op,ValidationError}=require(_0x3c6dfa('0x4d'));require(_0x3c6dfa('0x2f'))[_0x3c6dfa('0x56')](socket);const jayson=require(_0x3c6dfa('0x79')),client=jayson['client']['http']({'port':0x232b});function respondWithRpcPromise(_0x56e1fa,_0x46849b,_0x454502,_0x7b255){return new Promise(function(_0x1ef5db,_0x2f7ce4){const _0x48484c=a394_0x4fac,_0x3e5488=_0x7b255||client;return _0x3e5488[_0x48484c('0x30')](_0x56e1fa,_0x454502)[_0x48484c('0x29')](function(_0x283997){const _0x9b2050=_0x48484c;logger[_0x9b2050('0x96')](_0x9b2050('0x93'),_0x46849b,_0x9b2050('0x1c')),logger['debug']('MailAccount,\x20%s,\x20%s,\x20%s',_0x46849b,_0x9b2050('0x1c'),JSON['stringify'](_0x283997));if(_0x283997[_0x9b2050('0x5c')]){if(_0x283997[_0x9b2050('0x5c')][_0x9b2050('0x81')]===0x1f4)return logger[_0x9b2050('0x5c')](_0x9b2050('0x93'),_0x46849b,_0x283997['error']['message']),_0x2f7ce4(_0x283997[_0x9b2050('0x5c')]['message']);return logger[_0x9b2050('0x5c')]('MailAccount,\x20%s,\x20%s',_0x46849b,_0x283997['error'][_0x9b2050('0x23')]),_0x1ef5db(_0x283997[_0x9b2050('0x5c')][_0x9b2050('0x23')]);}else logger[_0x9b2050('0x96')]('MailAccount,\x20%s,\x20%s',_0x46849b,'request\x20sent'),_0x1ef5db(_0x283997[_0x9b2050('0x12')][_0x9b2050('0x23')]);})[_0x48484c('0x20')](function(_0xee5ae4){const _0x1adad4=_0x48484c;logger['error'](_0x1adad4('0x93'),_0x46849b,_0xee5ae4),_0x2f7ce4(_0xee5ae4);});});}function respondWithStatusCode(_0x4aaba4,_0x5301f8){return _0x5301f8=_0x5301f8||0xcc,function(_0x18a7c8){const _0x178f91=a394_0x4fac;if(_0x18a7c8)return _0x4aaba4[_0x178f91('0xa1')](_0x5301f8);return _0x4aaba4[_0x178f91('0x1f')](_0x5301f8)[_0x178f91('0x3b')]();};}function respondWithResult(_0x508365,_0x4cf1d2){return _0x4cf1d2=_0x4cf1d2||0xc8,function(_0x322b72){const _0x8f6d4c=a394_0x4fac;if(_0x322b72)return _0x508365[_0x8f6d4c('0x1f')](_0x4cf1d2)['json'](_0x322b72);};}function respondWithFilteredResult(_0x1e3cd9,_0x5367a8){return function(_0x3136a6){const _0x50ad27=a394_0x4fac;if(_0x3136a6){const _0x3ded60=_0x3136a6[_0x50ad27('0x80')],_0x5966a5=_0x5367a8['offset'];let _0x3ba767=_0x5367a8[_0x50ad27('0x6c')]+_0x5367a8[_0x50ad27('0x7')],_0xc62bc9;return _0x3ba767>=_0x3ded60?(_0x3ba767=_0x3ded60,_0xc62bc9=0xc8):_0xc62bc9=0xce,_0x1e3cd9[_0x50ad27('0x1f')](_0xc62bc9),_0x1e3cd9['set']('Content-Range',_0x5966a5+'-'+_0x3ba767+'/'+_0x3ded60)[_0x50ad27('0x3c')](_0x3136a6);}return null;};}function saveUpdates(_0x590da1){return function(_0x4cea9a){const _0x97720c=a394_0x4fac;if(_0x4cea9a)return _0x4cea9a[_0x97720c('0x7e')](_0x590da1)[_0x97720c('0x29')](function(_0x2d5ace){return _0x2d5ace;});return null;};}function removeEntity(_0x2e47a1){return function(_0x23f4c0){const _0xb27ab2=a394_0x4fac;if(_0x23f4c0)return _0x23f4c0['destroy']()[_0xb27ab2('0x29')](function(){const _0x507c45=_0xb27ab2,_0x379362=_0x23f4c0[_0x507c45('0x26')]({'plain':!![]}),_0x1557b9='MailAccounts';return db[_0x507c45('0xa0')][_0x507c45('0x2b')]({'where':{'type':_0x1557b9,'resourceId':_0x379362['id']}})[_0x507c45('0x29')](function(){return _0x23f4c0;});})[_0xb27ab2('0x29')](function(){const _0x11863c=_0xb27ab2;_0x2e47a1[_0x11863c('0x1f')](0xcc)['end']();});};}function handleEntityNotFound(_0x1d9cef){return function(_0x4ece99){const _0x524127=a394_0x4fac;return!_0x4ece99&&_0x1d9cef[_0x524127('0xa1')](0x194),_0x4ece99;};}function handleError(_0x68c46,_0xc1377b){return _0xc1377b=_0xc1377b||0x1f4,function(_0x9c4f36){const _0x15107c=a394_0x4fac;logger[_0x15107c('0x5c')](_0x9c4f36[_0x15107c('0x22')]),_0x9c4f36[_0x15107c('0x2a')]&&delete _0x9c4f36[_0x15107c('0x2a')],_0x68c46['status'](_0xc1377b)[_0x15107c('0x55')](_0x9c4f36);};}exports[_0x3c6dfa('0xd')]=function(_0x4f3c24,_0x1217c0){const _0x4facd9=_0x3c6dfa;let _0x21a1fb={'include':[{'model':db[_0x4facd9('0x70')],'as':_0x4facd9('0x0')},{'model':db[_0x4facd9('0x9')],'as':_0x4facd9('0x63')},{'model':db['Pause'],'as':_0x4facd9('0x27')}]};const _0x33ade0={},_0x514d77={'count':0x0,'rows':[]},_0x3006df=_[_0x4facd9('0x1b')](db[_0x4facd9('0x82')]['rawAttributes'],function(_0x246096){const _0x1fd927=_0x4facd9;return{'name':_0x246096[_0x1fd927('0x59')],'type':_0x246096[_0x1fd927('0x34')][_0x1fd927('0x24')]};});_0x33ade0[_0x4facd9('0x9f')]=_[_0x4facd9('0x1b')](_0x3006df,_0x4facd9('0x2a')),_0x33ade0[_0x4facd9('0x38')]=_[_0x4facd9('0x9b')](_0x4f3c24['query']),_0x33ade0[_0x4facd9('0x91')]=_[_0x4facd9('0x13')](_0x33ade0[_0x4facd9('0x9f')],_0x33ade0[_0x4facd9('0x38')]),_0x21a1fb[_0x4facd9('0x32')]=_['intersection'](_0x33ade0[_0x4facd9('0x9f')],qs[_0x4facd9('0x6f')](_0x4f3c24[_0x4facd9('0x38')][_0x4facd9('0x6f')])),_0x21a1fb[_0x4facd9('0x32')]=_0x21a1fb['attributes'][_0x4facd9('0x69')]?_0x21a1fb['attributes']:_0x33ade0[_0x4facd9('0x9f')];typeof _0x4f3c24[_0x4facd9('0x38')][_0x4facd9('0x1e')]===_0x4facd9('0x48')&&(_0x21a1fb['limit']=qs[_0x4facd9('0x7')](_0x4f3c24[_0x4facd9('0x38')]['limit']),_0x21a1fb['offset']=qs[_0x4facd9('0x6c')](_0x4f3c24['query'][_0x4facd9('0x6c')]));_0x21a1fb['order']=qs[_0x4facd9('0xe')](_0x4f3c24[_0x4facd9('0x38')]['sort']),_0x21a1fb[_0x4facd9('0x85')]=qs[_0x4facd9('0x91')](_[_0x4facd9('0x7b')](_0x4f3c24['query'],_0x33ade0['filters']),_0x3006df);_0x4f3c24['query'][_0x4facd9('0x25')]&&(_0x21a1fb[_0x4facd9('0x85')]=_['merge'](_0x21a1fb[_0x4facd9('0x85')],{[Op['or']]:_[_0x4facd9('0x1b')](_0x3006df,function(_0x20801d){const _0x19919e=_0x4facd9;if(_0x20801d['type']!==_0x19919e('0x18')){const _0x1a675e={};return _0x1a675e[_0x20801d[_0x19919e('0x2a')]]={[Op['like']]:'%'+_0x4f3c24[_0x19919e('0x38')][_0x19919e('0x25')]+'%'},_0x1a675e;}})}));_0x21a1fb=_[_0x4facd9('0x87')]({},_0x21a1fb,_0x4f3c24[_0x4facd9('0x6e')]);const _0x50eeee={'where':_0x21a1fb[_0x4facd9('0x85')]};return db[_0x4facd9('0x82')][_0x4facd9('0x80')](_0x50eeee)[_0x4facd9('0x29')](function(_0x2a357f){const _0x13c61e=_0x4facd9;return _0x514d77[_0x13c61e('0x80')]=_0x2a357f,_0x4f3c24[_0x13c61e('0x38')]['includeAll']&&(_0x21a1fb[_0x13c61e('0x76')]=[{'all':!![]}]),db[_0x13c61e('0x82')][_0x13c61e('0x4b')](_0x21a1fb);})['then'](function(_0x1ce0dd){return _0x514d77['rows']=_0x1ce0dd,_0x514d77;})[_0x4facd9('0x29')](respondWithFilteredResult(_0x1217c0,_0x21a1fb))[_0x4facd9('0x20')](handleError(_0x1217c0,null));},exports['show']=function(_0x4414cc,_0x3c6a11){const _0x472497=_0x3c6dfa;let _0x3e4177={'raw':![],'where':{'id':_0x4414cc[_0x472497('0x6a')]['id']},'include':[{'model':db['MailServerIn'],'as':_0x472497('0x0')},{'model':db[_0x472497('0x9')],'as':_0x472497('0x63')},{'model':db['Pause'],'as':_0x472497('0x27')}]};const _0x39cdc4={};return _0x39cdc4[_0x472497('0x9f')]=_['keys'](db[_0x472497('0x82')][_0x472497('0x40')]),_0x39cdc4[_0x472497('0x38')]=_[_0x472497('0x9b')](_0x4414cc[_0x472497('0x38')]),_0x39cdc4[_0x472497('0x91')]=_[_0x472497('0x13')](_0x39cdc4['model'],_0x39cdc4[_0x472497('0x38')]),_0x3e4177['attributes']=_[_0x472497('0x13')](_0x39cdc4[_0x472497('0x9f')],qs[_0x472497('0x6f')](_0x4414cc[_0x472497('0x38')][_0x472497('0x6f')])),_0x3e4177[_0x472497('0x32')]=_0x3e4177['attributes'][_0x472497('0x69')]?_0x3e4177[_0x472497('0x32')]:_0x39cdc4[_0x472497('0x9f')],_0x4414cc[_0x472497('0x38')][_0x472497('0x99')]&&(_0x3e4177[_0x472497('0x76')]=[{'all':!![]}]),_0x3e4177=_[_0x472497('0x87')]({},_0x3e4177,_0x4414cc[_0x472497('0x6e')]),db[_0x472497('0x82')][_0x472497('0x89')](_0x3e4177)[_0x472497('0x29')](handleEntityNotFound(_0x3c6a11,null))[_0x472497('0x29')](respondWithResult(_0x3c6a11,null))[_0x472497('0x20')](handleError(_0x3c6a11,null));},exports[_0x3c6dfa('0x7e')]=function(_0x3a3c43,_0x247d54){const _0x3ff202=_0x3c6dfa;return _0x3a3c43['body']['id']&&delete _0x3a3c43[_0x3ff202('0x52')]['id'],db[_0x3ff202('0x82')][_0x3ff202('0x89')]({'where':{'id':_0x3a3c43[_0x3ff202('0x6a')]['id']},'include':[{'model':db[_0x3ff202('0x70')],'as':'Imap'},{'model':db['MailServerOut'],'as':'Smtp'},{'model':db[_0x3ff202('0x8c')],'as':_0x3ff202('0x27')}]})[_0x3ff202('0x29')](handleEntityNotFound(_0x247d54,null))[_0x3ff202('0x29')](saveUpdates(_0x3a3c43[_0x3ff202('0x52')],null))[_0x3ff202('0x29')](function(_0x7a4019){const _0x254eb4=_0x3ff202;if(_0x7a4019&&_0x3a3c43[_0x254eb4('0x52')][_0x254eb4('0x0')])return db[_0x254eb4('0x70')][_0x254eb4('0x7e')](_0x3a3c43[_0x254eb4('0x52')][_0x254eb4('0x0')],{'where':{'MailAccountId':_0x7a4019['id']}})[_0x254eb4('0x29')](function(){return _0x7a4019;});return _0x7a4019;})[_0x3ff202('0x29')](function(_0x218c69){const _0x5d1df3=_0x3ff202;if(_0x218c69&&_0x3a3c43[_0x5d1df3('0x52')][_0x5d1df3('0x63')])return db[_0x5d1df3('0x9')][_0x5d1df3('0x7e')](_0x3a3c43['body']['Smtp'],{'where':{'MailAccountId':_0x218c69['id']}})[_0x5d1df3('0x29')](function(){return _0x218c69;});return _0x218c69;})[_0x3ff202('0x29')](respondWithResult(_0x247d54,null))[_0x3ff202('0x20')](handleError(_0x247d54,null));},exports[_0x3c6dfa('0x7c')]=function(_0xef3306,_0x1541b0){const _0x33df6b=_0x3c6dfa;return db[_0x33df6b('0x82')][_0x33df6b('0x7c')]()['then'](respondWithResult(_0x1541b0,null))[_0x33df6b('0x20')](handleError(_0x1541b0,null));},exports[_0x3c6dfa('0x37')]=function(_0x18e613,_0x49456f){const _0x3eb0b3=_0x3c6dfa;return _0x18e613[_0x3eb0b3('0x52')]['id']&&delete _0x18e613[_0x3eb0b3('0x52')]['id'],db['MailAccount']['findOne']({'where':{'id':_0x18e613[_0x3eb0b3('0x6a')]['id']}})['then'](handleEntityNotFound(_0x49456f,null))[_0x3eb0b3('0x29')](function(_0x595177){const _0x12af5a=_0x3eb0b3;if(_0x595177)return _0x18e613[_0x12af5a('0x52')]['MailAccountId']=_0x595177['id'],db[_0x12af5a('0x94')]['create'](_0x18e613[_0x12af5a('0x52')]);})[_0x3eb0b3('0x29')](respondWithResult(_0x49456f,null))[_0x3eb0b3('0x20')](handleError(_0x49456f,null));},exports[_0x3c6dfa('0x58')]=function(_0x8f7538,_0x967d57){const _0x54d521=_0x3c6dfa;let _0x3bd46a={'raw':![],'where':{}};const _0x2d0a22={},_0x5bd100={'count':0x0,'rows':[]};return db[_0x54d521('0x82')][_0x54d521('0x89')]({'where':{'id':_0x8f7538[_0x54d521('0x6a')]['id']}})[_0x54d521('0x29')](handleEntityNotFound(_0x967d57,null))[_0x54d521('0x29')](function(_0x1e4fe3){const _0x5d6fe1=_0x54d521;if(_0x1e4fe3)return _0x2d0a22['model']=_['keys'](db[_0x5d6fe1('0x94')][_0x5d6fe1('0x40')]),_0x2d0a22[_0x5d6fe1('0x38')]=_['keys'](_0x8f7538[_0x5d6fe1('0x38')]),_0x2d0a22[_0x5d6fe1('0x91')]=_[_0x5d6fe1('0x13')](_0x2d0a22[_0x5d6fe1('0x9f')],_0x2d0a22[_0x5d6fe1('0x38')]),_0x3bd46a[_0x5d6fe1('0x32')]=_[_0x5d6fe1('0x13')](_0x2d0a22['model'],qs[_0x5d6fe1('0x6f')](_0x8f7538['query'][_0x5d6fe1('0x6f')])),_0x3bd46a[_0x5d6fe1('0x32')]=_0x3bd46a[_0x5d6fe1('0x32')][_0x5d6fe1('0x69')]?_0x3bd46a[_0x5d6fe1('0x32')]:_0x2d0a22['model'],typeof _0x8f7538['query'][_0x5d6fe1('0x1e')]===_0x5d6fe1('0x48')&&(_0x3bd46a['limit']=qs[_0x5d6fe1('0x7')](_0x8f7538[_0x5d6fe1('0x38')][_0x5d6fe1('0x7')]),_0x3bd46a[_0x5d6fe1('0x6c')]=qs['offset'](_0x8f7538[_0x5d6fe1('0x38')][_0x5d6fe1('0x6c')])),_0x3bd46a[_0x5d6fe1('0x1d')]=qs[_0x5d6fe1('0xe')](_0x8f7538[_0x5d6fe1('0x38')][_0x5d6fe1('0xe')]),_0x3bd46a['where']=qs[_0x5d6fe1('0x91')](_[_0x5d6fe1('0x7b')](_0x8f7538[_0x5d6fe1('0x38')],_0x2d0a22[_0x5d6fe1('0x91')])),_0x3bd46a[_0x5d6fe1('0x85')][_0x5d6fe1('0x77')]=_0x1e4fe3['id'],_0x8f7538[_0x5d6fe1('0x38')][_0x5d6fe1('0x25')]&&(_0x3bd46a[_0x5d6fe1('0x85')]=_[_0x5d6fe1('0x87')](_0x3bd46a['where'],{[Op['or']]:_[_0x5d6fe1('0x1b')](_0x3bd46a[_0x5d6fe1('0x32')],function(_0x2e2224){const _0x9583c8=_0x5d6fe1,_0x144506={};return _0x144506[_0x2e2224]={[Op['like']]:'%'+_0x8f7538['query'][_0x9583c8('0x25')]+'%'},_0x144506;})})),_0x3bd46a=_['merge']({},_0x3bd46a,_0x8f7538[_0x5d6fe1('0x6e')]),db[_0x5d6fe1('0x94')][_0x5d6fe1('0x80')]({'where':_0x3bd46a[_0x5d6fe1('0x85')]})[_0x5d6fe1('0x29')](function(_0x20bd73){const _0x172e70=_0x5d6fe1;return _0x5bd100[_0x172e70('0x80')]=_0x20bd73,_0x8f7538[_0x172e70('0x38')][_0x172e70('0x99')]&&(_0x3bd46a[_0x172e70('0x76')]=[{'all':!![]}]),db['Disposition'][_0x172e70('0x4b')](_0x3bd46a);})[_0x5d6fe1('0x29')](function(_0x1159fc){const _0x35b591=_0x5d6fe1;return _0x5bd100[_0x35b591('0x95')]=_0x1159fc,_0x5bd100;});})[_0x54d521('0x29')](respondWithFilteredResult(_0x967d57,_0x3bd46a))['catch'](handleError(_0x967d57,null));},exports[_0x3c6dfa('0x67')]=function(_0x97c659,_0x3b7019){const _0x57bc5c=_0x3c6dfa;return db[_0x57bc5c('0x82')][_0x57bc5c('0x89')]({'where':{'id':_0x97c659[_0x57bc5c('0x6a')]['id']}})[_0x57bc5c('0x29')](handleEntityNotFound(_0x3b7019,null))[_0x57bc5c('0x29')](function(_0x1e54f6){const _0x2efb42=_0x57bc5c;if(_0x1e54f6)return _0x1e54f6['removeDispositions'](_0x97c659['query'][_0x2efb42('0x2c')]);})[_0x57bc5c('0x29')](respondWithStatusCode(_0x3b7019,null))['catch'](handleError(_0x3b7019,null));},exports['addAnswer']=function(_0x4fbbc0,_0x38ccc9){const _0x23c894=_0x3c6dfa;return _0x4fbbc0[_0x23c894('0x52')]['id']&&delete _0x4fbbc0[_0x23c894('0x52')]['id'],db[_0x23c894('0x82')]['findOne']({'where':{'id':_0x4fbbc0['params']['id']}})[_0x23c894('0x29')](handleEntityNotFound(_0x38ccc9,null))[_0x23c894('0x29')](function(_0x4ef903){const _0x3c695f=_0x23c894;if(_0x4ef903)return _0x4fbbc0[_0x3c695f('0x52')][_0x3c695f('0x77')]=_0x4ef903['id'],db[_0x3c695f('0x5')]['create'](_0x4fbbc0['body']);})[_0x23c894('0x29')](respondWithResult(_0x38ccc9,null))[_0x23c894('0x20')](handleError(_0x38ccc9,null));},exports[_0x3c6dfa('0x14')]=function(_0x16a5a9,_0x219e94){const _0x3bd189=_0x3c6dfa;let _0x52b93c={'raw':![],'where':{}};const _0x542a33={},_0x269b18={'count':0x0,'rows':[]};return db[_0x3bd189('0x82')]['findOne']({'where':{'id':_0x16a5a9[_0x3bd189('0x6a')]['id']}})[_0x3bd189('0x29')](handleEntityNotFound(_0x219e94,null))[_0x3bd189('0x29')](function(_0x408dd1){const _0x234845=_0x3bd189;if(_0x408dd1)return _0x542a33[_0x234845('0x9f')]=_['keys'](db[_0x234845('0x5')][_0x234845('0x40')]),_0x542a33[_0x234845('0x38')]=_[_0x234845('0x9b')](_0x16a5a9['query']),_0x542a33[_0x234845('0x91')]=_[_0x234845('0x13')](_0x542a33[_0x234845('0x9f')],_0x542a33[_0x234845('0x38')]),_0x52b93c[_0x234845('0x32')]=_[_0x234845('0x13')](_0x542a33[_0x234845('0x9f')],qs[_0x234845('0x6f')](_0x16a5a9[_0x234845('0x38')]['fields'])),_0x52b93c[_0x234845('0x32')]=_0x52b93c[_0x234845('0x32')][_0x234845('0x69')]?_0x52b93c[_0x234845('0x32')]:_0x542a33[_0x234845('0x9f')],typeof _0x16a5a9['query'][_0x234845('0x1e')]===_0x234845('0x48')&&(_0x52b93c[_0x234845('0x7')]=qs[_0x234845('0x7')](_0x16a5a9['query'][_0x234845('0x7')]),_0x52b93c[_0x234845('0x6c')]=qs['offset'](_0x16a5a9[_0x234845('0x38')][_0x234845('0x6c')])),_0x52b93c['order']=qs[_0x234845('0xe')](_0x16a5a9['query'][_0x234845('0xe')]),_0x52b93c[_0x234845('0x85')]=qs[_0x234845('0x91')](_['pick'](_0x16a5a9[_0x234845('0x38')],_0x542a33[_0x234845('0x91')])),_0x52b93c[_0x234845('0x85')][_0x234845('0x77')]=_0x408dd1['id'],_0x16a5a9['query'][_0x234845('0x25')]&&(_0x52b93c['where']=_[_0x234845('0x87')](_0x52b93c[_0x234845('0x85')],{[Op['or']]:_[_0x234845('0x1b')](_0x52b93c[_0x234845('0x32')],function(_0x556227){const _0x5dcdb0=_0x234845,_0x3f6e3e={};return _0x3f6e3e[_0x556227]={[Op[_0x5dcdb0('0x3d')]]:'%'+_0x16a5a9[_0x5dcdb0('0x38')][_0x5dcdb0('0x25')]+'%'},_0x3f6e3e;})})),_0x52b93c=_[_0x234845('0x87')]({},_0x52b93c,_0x16a5a9[_0x234845('0x6e')]),db[_0x234845('0x5')][_0x234845('0x80')]({'where':_0x52b93c[_0x234845('0x85')]})[_0x234845('0x29')](function(_0x2b4ecd){const _0x1286e1=_0x234845;return _0x269b18[_0x1286e1('0x80')]=_0x2b4ecd,_0x16a5a9[_0x1286e1('0x38')]['includeAll']&&(_0x52b93c['include']=[{'all':!![]}]),db[_0x1286e1('0x5')][_0x1286e1('0x4b')](_0x52b93c);})[_0x234845('0x29')](function(_0x319e45){const _0x1be2bc=_0x234845;return _0x269b18[_0x1be2bc('0x95')]=_0x319e45,_0x269b18;});})[_0x3bd189('0x29')](respondWithFilteredResult(_0x219e94,_0x52b93c))['catch'](handleError(_0x219e94,null));},exports[_0x3c6dfa('0x51')]=function(_0x4e6d18,_0x289fb9){const _0x3acefd=_0x3c6dfa;return db[_0x3acefd('0x82')][_0x3acefd('0x89')]({'where':{'id':_0x4e6d18[_0x3acefd('0x6a')]['id']}})[_0x3acefd('0x29')](handleEntityNotFound(_0x289fb9,null))[_0x3acefd('0x29')](function(_0x44a719){if(_0x44a719)return _0x44a719['removeAnswers'](_0x4e6d18['query']['ids']);})[_0x3acefd('0x29')](respondWithStatusCode(_0x289fb9,null))[_0x3acefd('0x20')](handleError(_0x289fb9,null));},exports[_0x3c6dfa('0x61')]=function(_0x4f246f,_0x371409){const _0x4bb657=_0x3c6dfa,_0x247ded={'name':_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x2a')],'key':_0x4f246f['body'][_0x4bb657('0x24')],'email':_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x8e')],'ListId':_0x4f246f[_0x4bb657('0x52')]['ListId'],'active':!_[_0x4bb657('0x6d')](_0x4f246f['body'][_0x4bb657('0x5e')])?_0x4f246f['body']['active']:!![],'description':_0x4f246f[_0x4bb657('0x52')]['description']||null,'Imap':{},'Smtp':{}};return _[_0x4bb657('0x6d')](_0x4f246f['body']['cservice'])?(_0x4f246f['body']['cauthentication']?(_0x247ded['Imap'][_0x4bb657('0x6')]=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x6b')],_0x247ded['Smtp'][_0x4bb657('0x6')]=_0x4f246f[_0x4bb657('0x52')]['cuser'],_0x247ded[_0x4bb657('0x0')][_0x4bb657('0x62')]=_0x4f246f[_0x4bb657('0x52')]['cpassword'],_0x247ded['Smtp'][_0x4bb657('0x2e')]=_0x4f246f['body'][_0x4bb657('0xc')]):(_0x247ded['Imap']['authentication']=![],_0x247ded[_0x4bb657('0x63')][_0x4bb657('0x43')]=![]),_0x247ded[_0x4bb657('0x0')][_0x4bb657('0x39')]=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x0')]['host'],_0x247ded[_0x4bb657('0x0')]['port']=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x0')][_0x4bb657('0x8b')],_0x247ded[_0x4bb657('0x63')][_0x4bb657('0x39')]=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x63')][_0x4bb657('0x39')],_0x247ded['Smtp']['port']=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x63')][_0x4bb657('0x8b')]):(_0x247ded[_0x4bb657('0x0')][_0x4bb657('0x57')]=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x88')],_0x247ded[_0x4bb657('0x63')]['service']=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x88')],_0x247ded['Imap'][_0x4bb657('0x6')]=_0x4f246f[_0x4bb657('0x52')][_0x4bb657('0x6b')],_0x247ded[_0x4bb657('0x63')][_0x4bb657('0x6')]=_0x4f246f['body'][_0x4bb657('0x6b')],_0x247ded[_0x4bb657('0x0')][_0x4bb657('0x62')]=_0x4f246f['body']['cpassword'],_0x247ded[_0x4bb657('0x63')][_0x4bb657('0x2e')]=_0x4f246f[_0x4bb657('0x52')]['cpassword']),db[_0x4bb657('0x82')][_0x4bb657('0x61')](_0x247ded,{'include':[{'model':db['MailServerOut'],'as':_0x4bb657('0x63')},{'model':db[_0x4bb657('0x70')],'as':_0x4bb657('0x0')}]})[_0x4bb657('0x29')](function(_0x428f4b){const _0x15816e=_0x4bb657,_0x540624=_0x4f246f['user'][_0x15816e('0x26')]({'plain':!![]});if(!_0x540624)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x540624[_0x15816e('0x8f')]==='user'){const _0x1a7fe3=_0x428f4b['get']({'plain':!![]});return db[_0x15816e('0x41')][_0x15816e('0x89')]({'where':{'name':_0x15816e('0x8d'),'userProfileId':_0x540624['userProfileId']},'raw':!![]})[_0x15816e('0x29')](function(_0x196b7){const _0x197679=_0x15816e;return _0x196b7&&_0x196b7[_0x197679('0x16')]===0x0?db[_0x197679('0xa0')]['create']({'name':_0x1a7fe3['name'],'resourceId':_0x1a7fe3['id'],'type':_0x196b7['name'],'sectionId':_0x196b7['id']},{})[_0x197679('0x29')](function(){return _0x428f4b;}):_0x428f4b;})[_0x15816e('0x20')](function(_0x3178dc){const _0x5c8918=_0x15816e;logger[_0x5c8918('0x5c')](_0x5c8918('0x46'),_0x3178dc);throw _0x3178dc;});}return _0x428f4b;})[_0x4bb657('0x29')](respondWithResult(_0x371409,0xc9))[_0x4bb657('0x20')](handleError(_0x371409,null));},exports[_0x3c6dfa('0x9c')]=function(_0x320b1d,_0x528aa2){const _0x27f119=_0x3c6dfa;return db['MailAccount'][_0x27f119('0x89')]({'where':{'id':_0x320b1d[_0x27f119('0x6a')]['id']}})[_0x27f119('0x29')](handleEntityNotFound(_0x528aa2,null))[_0x27f119('0x29')](function(_0x42c27f){const _0x40ee9c=_0x27f119;if(_0x42c27f)return _0x42c27f[_0x40ee9c('0x9c')]();return null;})['then'](respondWithResult(_0x528aa2,null))[_0x27f119('0x20')](handleError(_0x528aa2,null));},exports[_0x3c6dfa('0x19')]=function(_0x4d0191,_0x155152){const _0x1a6f8c=_0x3c6dfa;return _0x4d0191[_0x1a6f8c('0x52')]['id']&&delete _0x4d0191['body']['id'],db['MailAccount'][_0x1a6f8c('0x89')]({'where':{'id':_0x4d0191[_0x1a6f8c('0x6a')]['id']}})[_0x1a6f8c('0x29')](handleEntityNotFound(_0x155152,null))[_0x1a6f8c('0x29')](function(_0x672a0b){const _0x3a67db=_0x1a6f8c;if(_0x672a0b)return _0x4d0191['body'][_0x3a67db('0x77')]=_0x672a0b['id'],db[_0x3a67db('0x70')][_0x3a67db('0x61')](_0x4d0191[_0x3a67db('0x52')]);})[_0x1a6f8c('0x29')](respondWithResult(_0x155152,null))[_0x1a6f8c('0x20')](handleError(_0x155152,null));},exports[_0x3c6dfa('0x98')]=function(_0x25b1bc,_0x43982a){const _0xa5787=_0x3c6dfa;return db[_0xa5787('0x82')]['findOne']({'where':{'id':_0x25b1bc['params']['id']}})['then'](handleEntityNotFound(_0x43982a,null))[_0xa5787('0x29')](function(_0x263180){if(_0x263180)return _0x263180['setImap'](null);return null;})[_0xa5787('0x29')](respondWithStatusCode(_0x43982a,null))[_0xa5787('0x20')](handleError(_0x43982a,null));},exports['getSmtp']=function(_0x5105c3,_0x201fc0){const _0x579257=_0x3c6dfa;return db[_0x579257('0x82')][_0x579257('0x89')]({'where':{'id':_0x5105c3['params']['id']}})[_0x579257('0x29')](handleEntityNotFound(_0x201fc0,null))[_0x579257('0x29')](function(_0x5f5532){const _0x13cf7c=_0x579257;if(_0x5f5532)return _0x5f5532[_0x13cf7c('0x1')]();return null;})['then'](respondWithResult(_0x201fc0,null))[_0x579257('0x20')](handleError(_0x201fc0,null));},exports[_0x3c6dfa('0x9a')]=function(_0xb8b73,_0x4a8a18){const _0x22a27e=_0x3c6dfa;return _0xb8b73[_0x22a27e('0x52')]['id']&&delete _0xb8b73[_0x22a27e('0x52')]['id'],db[_0x22a27e('0x82')][_0x22a27e('0x89')]({'where':{'id':_0xb8b73[_0x22a27e('0x6a')]['id']}})[_0x22a27e('0x29')](handleEntityNotFound(_0x4a8a18,null))['then'](function(_0x648be0){const _0x47aab2=_0x22a27e;if(_0x648be0)return _0xb8b73[_0x47aab2('0x52')]['MailAccountId']=_0x648be0['id'],db[_0x47aab2('0x9')][_0x47aab2('0x61')](_0xb8b73[_0x47aab2('0x52')]);})[_0x22a27e('0x29')](respondWithResult(_0x4a8a18,null))[_0x22a27e('0x20')](handleError(_0x4a8a18,null));},exports[_0x3c6dfa('0x92')]=function(_0x252c49,_0x30ec72){const _0x3a7d1d=_0x3c6dfa;return db['MailAccount'][_0x3a7d1d('0x89')]({'where':{'id':_0x252c49[_0x3a7d1d('0x6a')]['id']}})[_0x3a7d1d('0x29')](handleEntityNotFound(_0x30ec72,null))[_0x3a7d1d('0x29')](function(_0x358dc0){const _0x2f88e6=_0x3a7d1d;if(_0x358dc0)return _0x358dc0[_0x2f88e6('0x33')](null);return null;})['then'](respondWithStatusCode(_0x30ec72,null))[_0x3a7d1d('0x20')](handleError(_0x30ec72,null));},exports[_0x3c6dfa('0x4')]=function(_0x1fc765,_0x44ff15){const _0x4aae33=_0x3c6dfa;return db[_0x4aae33('0xb')][_0x4aae33('0x89')]({'where':{'id':_0x1fc765[_0x4aae33('0x6a')]['id']}})[_0x4aae33('0x29')](function(_0x46957c){const _0x3b1708=_0x4aae33;if(_0x46957c)return _0x46957c['addInteraction'](_0x1fc765[_0x3b1708('0x52')][_0x3b1708('0x2c')],{'through':_[_0x3b1708('0x75')](_0x1fc765[_0x3b1708('0x52')],[_0x3b1708('0x2c'),'id'])});})[_0x4aae33('0x29')](respondWithResult(_0x44ff15,null))[_0x4aae33('0x20')](handleError(_0x44ff15,null));},exports[_0x3c6dfa('0x5a')]=function(_0x14be04,_0x14feb9){const _0x518e3c=_0x3c6dfa;let _0x17cc80={'raw':![],'where':{}};const _0x3b261c={},_0x398832={'count':0x0,'rows':[]};return db[_0x518e3c('0x82')][_0x518e3c('0x89')]({'where':{'id':_0x14be04['params']['id']}})['then'](handleEntityNotFound(_0x14feb9,null))[_0x518e3c('0x29')](function(_0x538dab){const _0x5c7f67=_0x518e3c;if(_0x538dab)return _0x3b261c[_0x5c7f67('0x9f')]=_['keys'](db[_0x5c7f67('0xb')]['rawAttributes']),_0x3b261c[_0x5c7f67('0x38')]=_[_0x5c7f67('0x9b')](_0x14be04['query']),_0x3b261c[_0x5c7f67('0x91')]=_[_0x5c7f67('0x13')](_0x3b261c[_0x5c7f67('0x9f')],_0x3b261c['query']),_0x17cc80['attributes']=_[_0x5c7f67('0x13')](_0x3b261c[_0x5c7f67('0x9f')],qs[_0x5c7f67('0x6f')](_0x14be04[_0x5c7f67('0x38')][_0x5c7f67('0x6f')])),_0x17cc80[_0x5c7f67('0x32')]=_0x17cc80[_0x5c7f67('0x32')][_0x5c7f67('0x69')]?_0x17cc80['attributes']:_0x3b261c['model'],typeof _0x14be04[_0x5c7f67('0x38')][_0x5c7f67('0x1e')]===_0x5c7f67('0x48')&&(_0x17cc80[_0x5c7f67('0x7')]=qs[_0x5c7f67('0x7')](_0x14be04[_0x5c7f67('0x38')][_0x5c7f67('0x7')]),_0x17cc80[_0x5c7f67('0x6c')]=qs[_0x5c7f67('0x6c')](_0x14be04[_0x5c7f67('0x38')]['offset'])),_0x17cc80[_0x5c7f67('0x1d')]=qs[_0x5c7f67('0xe')](_0x14be04['query'][_0x5c7f67('0xe')]),_0x17cc80[_0x5c7f67('0x85')]=qs[_0x5c7f67('0x91')](_[_0x5c7f67('0x7b')](_0x14be04[_0x5c7f67('0x38')],_0x3b261c[_0x5c7f67('0x91')])),_0x17cc80[_0x5c7f67('0x85')][_0x5c7f67('0x77')]=_0x538dab['id'],_0x14be04['query'][_0x5c7f67('0x25')]&&(_0x17cc80['where']=_['merge'](_0x17cc80[_0x5c7f67('0x85')],{[Op['or']]:_[_0x5c7f67('0x1b')](_0x17cc80['attributes'],function(_0x3953e3){const _0x1946cd=_0x5c7f67,_0x2f248b={};return _0x2f248b[_0x3953e3]={[Op[_0x1946cd('0x3d')]]:'%'+_0x14be04[_0x1946cd('0x38')][_0x1946cd('0x25')]+'%'},_0x2f248b;})})),_0x17cc80=_[_0x5c7f67('0x87')]({},_0x17cc80,_0x14be04[_0x5c7f67('0x6e')]),db[_0x5c7f67('0xb')][_0x5c7f67('0x80')]({'where':_0x17cc80[_0x5c7f67('0x85')]})[_0x5c7f67('0x29')](function(_0x2a7a6e){const _0x43d763=_0x5c7f67;return _0x398832[_0x43d763('0x80')]=_0x2a7a6e,_0x14be04[_0x43d763('0x38')]['includeAll']&&(_0x17cc80['include']=[{'model':db['CmContact'],'as':_0x43d763('0x5d'),'required':![]},{'model':db['User'],'as':_0x43d763('0x11'),'attributes':[_0x43d763('0x2a'),'fullname',_0x43d763('0x28')],'required':![]},{'model':db['Tag'],'as':'Tags','attributes':['id',_0x43d763('0x2a'),_0x43d763('0x8a')],'where':_0x14be04[_0x43d763('0x38')]['tag']?{'id':_0x14be04[_0x43d763('0x38')][_0x43d763('0x50')]}:undefined,'required':_0x14be04[_0x43d763('0x38')]['tag']?!![]:![]}]),db['MailInteraction'][_0x43d763('0x4b')](_0x17cc80);})[_0x5c7f67('0x29')](function(_0x305dd4){const _0x24cf1e=_0x5c7f67;return _0x398832[_0x24cf1e('0x95')]=_0x305dd4,_0x398832;});})['then'](respondWithFilteredResult(_0x14feb9,_0x17cc80))[_0x518e3c('0x20')](handleError(_0x14feb9,null));},exports['addApplications']=function(_0x2cc204,_0x3b42cc){const _0x4c76ad=_0x3c6dfa;return db[_0x4c76ad('0x82')]['findOne']({'where':{'id':_0x2cc204[_0x4c76ad('0x6a')]['id']}})['then'](handleEntityNotFound(_0x3b42cc,null))[_0x4c76ad('0x29')](function(_0x19c106){const _0x9ae557=_0x4c76ad;if(_0x19c106)return db['sequelize'][_0x9ae557('0x53')](function(_0x57d39c){const _0x5ec937=_0x9ae557;return db['MailApplication'][_0x5ec937('0x2b')]({'where':{'MailAccountId':_0x2cc204['params']['id']},'transaction':_0x57d39c})[_0x5ec937('0x29')](function(){const _0x56fe95=_0x5ec937,_0x347439=_['map'](_0x2cc204[_0x56fe95('0x52')],function(_0x40d491){const _0x3ef88c=_0x56fe95;return _0x40d491[_0x3ef88c('0x77')]=_0x2cc204[_0x3ef88c('0x6a')]['id'],_0x40d491;});return db[_0x56fe95('0x72')][_0x56fe95('0x10')](_0x347439,{'transaction':_0x57d39c});});})[_0x9ae557('0x29')](function(){const _0x2eb8ac=_0x9ae557;return db['MailApplication'][_0x2eb8ac('0x44')]({'where':{'MailAccountId':_0x2cc204[_0x2eb8ac('0x6a')]['id']},'order':_0x2eb8ac('0x74')});});})['then'](respondWithResult(_0x3b42cc,null))['catch'](handleError(_0x3b42cc,null));},exports[_0x3c6dfa('0x4f')]=function(_0x477342,_0x16b20d){const _0x3e5c86=_0x3c6dfa;let _0x37ffca={};const _0x28a42d={};let _0x180b83,_0xa984f1;return db[_0x3e5c86('0x82')]['findOne']({'where':{'id':_0x477342[_0x3e5c86('0x6a')]['id']}})['then'](handleEntityNotFound(_0x16b20d,null))[_0x3e5c86('0x29')](function(_0x4f699e){const _0x437aee=_0x3e5c86;if(_0x4f699e)return _0x180b83=_0x4f699e,_0x28a42d['model']=_[_0x437aee('0x9b')](db['MailApplication'][_0x437aee('0x40')]),_0x28a42d[_0x437aee('0x38')]=_[_0x437aee('0x9b')](_0x477342[_0x437aee('0x38')]),_0x28a42d['filters']=_[_0x437aee('0x13')](_0x28a42d['model'],_0x28a42d[_0x437aee('0x38')]),_0x37ffca[_0x437aee('0x32')]=_['intersection'](_0x28a42d['model'],qs[_0x437aee('0x6f')](_0x477342[_0x437aee('0x38')][_0x437aee('0x6f')])),_0x37ffca['attributes']=_0x37ffca[_0x437aee('0x32')][_0x437aee('0x69')]?_0x37ffca[_0x437aee('0x32')]:_0x28a42d[_0x437aee('0x9f')],_0x37ffca[_0x437aee('0x1d')]=qs[_0x437aee('0xe')](_0x477342[_0x437aee('0x38')][_0x437aee('0xe')]),_0x37ffca[_0x437aee('0x85')]=qs['filters'](_[_0x437aee('0x7b')](_0x477342[_0x437aee('0x38')],_0x28a42d['filters'])),_0x477342['query'][_0x437aee('0x25')]&&(_0x37ffca[_0x437aee('0x85')]=_[_0x437aee('0x87')](_0x37ffca[_0x437aee('0x85')],{[Op['or']]:_[_0x437aee('0x1b')](_0x37ffca[_0x437aee('0x32')],function(_0x511525){const _0x1c5eb7=_0x437aee,_0x396571={};return _0x396571[_0x511525]={[Op['like']]:'%'+_0x477342[_0x1c5eb7('0x38')]['filter']+'%'},_0x396571;})})),_0x37ffca=_[_0x437aee('0x87')]({},_0x37ffca,_0x477342[_0x437aee('0x6e')]),_0x180b83['getApplications'](_0x37ffca);})['then'](function(_0x5d4ba0){const _0x579821=_0x3e5c86;if(_0x5d4ba0)return _0xa984f1=_0x5d4ba0[_0x579821('0x69')],typeof _0x477342[_0x579821('0x38')][_0x579821('0x1e')]===_0x579821('0x48')&&(_0x37ffca['limit']=qs[_0x579821('0x7')](_0x477342['query'][_0x579821('0x7')]),_0x37ffca[_0x579821('0x6c')]=qs[_0x579821('0x6c')](_0x477342['query'][_0x579821('0x6c')])),_0x180b83[_0x579821('0x4f')](_0x37ffca);})[_0x3e5c86('0x29')](function(_0x27ad6f){if(_0x27ad6f)return _0x27ad6f?{'count':_0xa984f1,'rows':_0x27ad6f}:null;})['then'](respondWithResult(_0x16b20d,null))[_0x3e5c86('0x20')](handleError(_0x16b20d,null));},exports[_0x3c6dfa('0x71')]=function(_0x4d60c4,_0x5f072a){const _0x5c4338=_0x3c6dfa;let _0x456bd8={'raw':!![],'where':{}};const _0x9cf136={},_0x130bb1={'count':0x0,'rows':[]};return db[_0x5c4338('0x82')]['findOne']({'where':{'id':_0x4d60c4[_0x5c4338('0x6a')]['id']}})[_0x5c4338('0x29')](handleEntityNotFound(_0x5f072a,null))[_0x5c4338('0x29')](function(_0x338595){const _0x41e2d1=_0x5c4338;if(_0x338595){_0x9cf136[_0x41e2d1('0x9f')]=_[_0x41e2d1('0x9b')](db[_0x41e2d1('0x86')][_0x41e2d1('0x40')]),_0x9cf136[_0x41e2d1('0x38')]=_[_0x41e2d1('0x9b')](_0x4d60c4[_0x41e2d1('0x38')]),_0x9cf136[_0x41e2d1('0x91')]=_[_0x41e2d1('0x13')](_0x9cf136[_0x41e2d1('0x9f')],_0x9cf136[_0x41e2d1('0x38')]),_0x456bd8[_0x41e2d1('0x32')]=_[_0x41e2d1('0x13')](_0x9cf136['model'],qs['fields'](_0x4d60c4[_0x41e2d1('0x38')]['fields'])),_0x456bd8[_0x41e2d1('0x32')]=_0x456bd8[_0x41e2d1('0x32')][_0x41e2d1('0x69')]?_0x456bd8[_0x41e2d1('0x32')]:_0x9cf136[_0x41e2d1('0x9f')];typeof _0x4d60c4[_0x41e2d1('0x38')]['nolimit']===_0x41e2d1('0x48')&&(_0x456bd8['limit']=qs[_0x41e2d1('0x7')](_0x4d60c4[_0x41e2d1('0x38')]['limit']),_0x456bd8[_0x41e2d1('0x6c')]=qs[_0x41e2d1('0x6c')](_0x4d60c4['query'][_0x41e2d1('0x6c')]));_0x456bd8[_0x41e2d1('0x1d')]=qs[_0x41e2d1('0xe')](_0x4d60c4[_0x41e2d1('0x38')][_0x41e2d1('0xe')]),_0x456bd8[_0x41e2d1('0x85')]=qs['filters'](_[_0x41e2d1('0x7b')](_0x4d60c4[_0x41e2d1('0x38')],_0x9cf136['filters'])),_0x456bd8['where'][_0x41e2d1('0x77')]=_0x338595['id'];_0x4d60c4['query'][_0x41e2d1('0x25')]&&(_0x456bd8[_0x41e2d1('0x85')]=_[_0x41e2d1('0x87')](_0x456bd8['where'],{[Op['or']]:_['map'](_0x456bd8[_0x41e2d1('0x32')],function(_0x4e5fc6){const _0x3f1ab3=_0x41e2d1,_0x190944={};return _0x190944[_0x4e5fc6]={[Op['like']]:'%'+_0x4d60c4[_0x3f1ab3('0x38')]['filter']+'%'},_0x190944;})}));if(_0x4d60c4['query'][_0x41e2d1('0x42')]){const _0x51de73=_0x4d60c4[_0x41e2d1('0x38')]['$gte'][_0x41e2d1('0x4a')](','),_0x36adb5={};_0x36adb5[_0x51de73[0x0]]={[Op[_0x41e2d1('0x83')]]:moment(_0x51de73[0x1])[_0x41e2d1('0x5f')](_0x41e2d1('0x7a'))},_0x456bd8[_0x41e2d1('0x85')]=_[_0x41e2d1('0x87')](_0x456bd8[_0x41e2d1('0x85')],_0x36adb5);}return _0x456bd8=_[_0x41e2d1('0x87')]({},_0x456bd8,_0x4d60c4[_0x41e2d1('0x6e')]),db['MailMessage'][_0x41e2d1('0x80')]({'where':_0x456bd8[_0x41e2d1('0x85')]})['then'](function(_0xb6168c){const _0xdfd253=_0x41e2d1;return _0x130bb1[_0xdfd253('0x80')]=_0xb6168c,_0x4d60c4[_0xdfd253('0x38')][_0xdfd253('0x99')]&&(_0x456bd8['include']=[{'all':!![]}]),db[_0xdfd253('0x86')]['findAll'](_0x456bd8);})['then'](function(_0x1a2c1d){const _0x3469ef=_0x41e2d1;return _0x130bb1[_0x3469ef('0x95')]=_0x1a2c1d,_0x130bb1;});}})['then'](respondWithFilteredResult(_0x5f072a,_0x456bd8))[_0x5c4338('0x20')](handleError(_0x5f072a,null));},exports[_0x3c6dfa('0x55')]=function(_0x245bbf,_0x1492c4){const _0x30d35b=_0x3c6dfa;let _0x561cb8,_0x85c8a2={},_0x3e5887;return _0x245bbf['body']['to']&&(_0x3e5887=_0x245bbf[_0x30d35b('0x52')]['to'][_0x30d35b('0x4a')](',')[0x0]),db[_0x30d35b('0x82')][_0x30d35b('0x89')]({'where':{'id':_0x245bbf['params']['id']},'include':[{'model':db[_0x30d35b('0x31')],'as':_0x30d35b('0x36'),'include':[{'model':db[_0x30d35b('0x5b')],'as':_0x30d35b('0x1a'),'where':{'email':_0x3e5887},'limit':0x1,'order':[[_0x30d35b('0x78'),_0x30d35b('0x65')]]}]},{'model':db[_0x30d35b('0x9')],'as':_0x30d35b('0x63'),'raw':!![]}]})['then'](handleEntityNotFound(_0x1492c4,null))[_0x30d35b('0x29')](function(_0x3f3c8e){const _0x3e0481=_0x30d35b;if(_0x3f3c8e){_0x561cb8=_0x3f3c8e;if(_0x3f3c8e[_0x3e0481('0x63')]){_[_0x3e0481('0x6d')](_0x245bbf[_0x3e0481('0x52')][_0x3e0481('0x47')])&&(_0x245bbf['body'][_0x3e0481('0x47')]=util['format'](_0x3e0481('0x9d'),_0x3f3c8e[_0x3e0481('0x2a')],_0x3f3c8e['email']||_0x3f3c8e['Smtp']['user']));if(_0x245bbf['body'][_0x3e0481('0x15')]&&_0x245bbf[_0x3e0481('0x52')][_0x3e0481('0x15')]['length'])for(let _0x263635=0x0;_0x263635<_0x245bbf[_0x3e0481('0x52')]['attachments']['length'];_0x263635+=0x1){_0x245bbf[_0x3e0481('0x52')][_0x3e0481('0x15')][_0x263635]={'filename':_0x245bbf['body'][_0x3e0481('0x15')][_0x263635]['name'],'path':path[_0x3e0481('0x60')](config[_0x3e0481('0x7d')],_0x3e0481('0x66'),_0x245bbf[_0x3e0481('0x52')]['attachments'][_0x263635]['basename'])};}const _0x21e072={'tls':{'rejectUnauthorized':![]}};return _[_0x3e0481('0x6d')](_0x3f3c8e[_0x3e0481('0x63')][_0x3e0481('0x57')])?(_0x3f3c8e[_0x3e0481('0x63')]['authentication']&&(_0x21e072[_0x3e0481('0x97')]={'user':_0x3f3c8e['Smtp'][_0x3e0481('0x6')],'pass':_0x3f3c8e[_0x3e0481('0x63')]['pass']}),_0x21e072[_0x3e0481('0x39')]=_0x3f3c8e[_0x3e0481('0x63')][_0x3e0481('0x39')],_0x21e072[_0x3e0481('0x8b')]=_0x3f3c8e['Smtp'][_0x3e0481('0x8b')],_0x21e072[_0x3e0481('0x84')]=_0x3f3c8e[_0x3e0481('0x63')][_0x3e0481('0x84')]):(_0x21e072[_0x3e0481('0x57')]=_0x3f3c8e[_0x3e0481('0x63')][_0x3e0481('0x57')],_0x21e072['auth']={'user':_0x3f3c8e[_0x3e0481('0x63')][_0x3e0481('0x6')],'pass':_0x3f3c8e[_0x3e0481('0x63')]['pass']}),respondWithRpcPromise('SendMail','sendMail',{'account':_0x21e072,'message':_0x245bbf['body']});}else throw new Error('List\x20not\x20found');}})[_0x30d35b('0x29')](function(_0x229b6e){const _0x5a279f=_0x30d35b;if(_0x229b6e){_0x85c8a2=_0x229b6e;if(_0x561cb8['List'])return _0x561cb8[_0x5a279f('0x36')]['Contacts'][_0x5a279f('0x69')]?_0x561cb8[_0x5a279f('0x36')][_0x5a279f('0x1a')][0x0]:db[_0x5a279f('0x5b')][_0x5a279f('0x61')](_[_0x5a279f('0x4c')](_0x245bbf[_0x5a279f('0x52')],{'firstName':_0x245bbf[_0x5a279f('0x52')]['to'],'email':_0x245bbf[_0x5a279f('0x52')]['to'],'phone':_0x245bbf[_0x5a279f('0x52')]['to'],'ListId':_0x561cb8['ListId']}));else throw new Error('List\x20not\x20found');}})[_0x30d35b('0x29')](function(_0x10f975){const _0x527aa8=_0x30d35b;if(_0x10f975){let _0x4f9bff={'UserId':_0x245bbf[_0x527aa8('0x6')]['id'],'ContactId':_0x10f975['id'],'MailAccountId':_0x561cb8['id'],'inReplyTo':_0x85c8a2[_0x527aa8('0x73')],'to':_0x245bbf[_0x527aa8('0x52')]['from'],'cc':_0x245bbf[_0x527aa8('0x52')]['cc'],'subject':_0x245bbf[_0x527aa8('0x52')][_0x527aa8('0xa')],'attach':_0x245bbf['body'][_0x527aa8('0x3')],'firstMsgDirection':_0x527aa8('0x7f'),'lastMsgAt':moment()[_0x527aa8('0x5f')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':_0x527aa8('0x7f'),'lastMsgBody':_0x245bbf['body']['body'],'Messages':[_[_0x527aa8('0x87')](_0x245bbf[_0x527aa8('0x52')],{'messageId':_0x85c8a2[_0x527aa8('0x73')],'sentAt':moment()['format'](_0x527aa8('0x7a')),'read':!![],'MailAccountId':_0x561cb8['id'],'UserId':_0x245bbf[_0x527aa8('0x6')]['id'],'ContactId':_0x10f975['id']})]};return _0x245bbf[_0x527aa8('0x52')][_0x527aa8('0x45')]&&(_0x4f9bff=_[_0x527aa8('0x87')](_0x4f9bff,_0x245bbf['body'][_0x527aa8('0x45')])),db[_0x527aa8('0xb')][_0x527aa8('0x61')](_0x4f9bff,{'include':[{'model':db[_0x527aa8('0x86')],'as':_0x527aa8('0x9e')}]});}})[_0x30d35b('0x29')](respondWithResult(_0x1492c4,null))[_0x30d35b('0x20')](handleError(_0x1492c4,null));},exports[_0x3c6dfa('0x3e')]=function(_0x3b0a55,_0xe1c102){const _0x433d54=_0x3c6dfa;return db[_0x433d54('0x82')][_0x433d54('0x89')]({'where':{'id':_0x3b0a55[_0x433d54('0x6a')]['id']},'include':[{'model':db[_0x433d54('0x9')],'as':_0x433d54('0x63'),'raw':!![]}]})[_0x433d54('0x29')](handleEntityNotFound(_0xe1c102,null))[_0x433d54('0x29')](function(_0x54551d){const _0x58a320=_0x433d54;if(_0x54551d&&_0x54551d['Smtp']){const _0x2a8c8c={'id':_0x54551d['id'],'tls':{'rejectUnauthorized':![]}};return _0x54551d[_0x58a320('0x63')][_0x58a320('0x57')]?_0x2a8c8c[_0x58a320('0x57')]=_0x54551d['Smtp'][_0x58a320('0x57')]:(_0x2a8c8c[_0x58a320('0x39')]=_0x54551d[_0x58a320('0x63')]['host'],_0x2a8c8c[_0x58a320('0x8b')]=_0x54551d[_0x58a320('0x63')][_0x58a320('0x8b')],_0x2a8c8c[_0x58a320('0x84')]=_0x54551d['Smtp'][_0x58a320('0x84')]),_0x54551d[_0x58a320('0x63')][_0x58a320('0x43')]&&(_0x2a8c8c[_0x58a320('0x97')]={'user':_0x54551d['Smtp']['user'],'pass':_0x54551d[_0x58a320('0x63')][_0x58a320('0x2e')]}),respondWithRpcPromise(_0x58a320('0x2d'),_0x58a320('0x3e'),{'account':_0x2a8c8c});}})[_0x433d54('0x29')](respondWithResult(_0xe1c102,null))[_0x433d54('0x20')](handleError(_0xe1c102,null));},exports['destroy']=function(_0x58f084,_0x17ae79){const _0x32ca29=_0x3c6dfa;return db[_0x32ca29('0x82')]['findOne']({'where':{'id':_0x58f084[_0x32ca29('0x6a')]['id']}})['then'](handleEntityNotFound(_0x17ae79,null))[_0x32ca29('0x29')](function(_0x516f47){const _0x4c5649=_0x32ca29;if(_0x516f47&&_0x516f47['service'])throw new ValidationError(_0x4c5649('0x21'));return _0x516f47;})[_0x32ca29('0x29')](removeEntity(_0x17ae79,null))[_0x32ca29('0x20')](handleError(_0x17ae79,null));},exports[_0x3c6dfa('0x49')]=function(_0x185b15,_0x1e3dc4){const _0x133461=_0x3c6dfa;return db[_0x133461('0x82')][_0x133461('0x89')]({'where':{'id':_0x185b15['params']['id']}})[_0x133461('0x29')](function(_0x49fb43){const _0x201ef6=_0x133461;if(_0x49fb43)return _0x49fb43[_0x201ef6('0x49')](_0x185b15[_0x201ef6('0x52')][_0x201ef6('0x2c')],{'through':_[_0x201ef6('0x75')](_0x185b15[_0x201ef6('0x52')],['ids','id'])})['then'](function(_0x567283){const _0x31d838=_0x201ef6;for(let _0x3bd33d=0x0;_0x3bd33d<_0x185b15['body'][_0x31d838('0x2c')][_0x31d838('0x69')];_0x3bd33d+=0x1){socket[_0x31d838('0x35')](_0x31d838('0x4e'),{'UserId':_0x185b15[_0x31d838('0x52')][_0x31d838('0x2c')][_0x3bd33d],'MailAccountId':_0x185b15[_0x31d838('0x6a')]['id']});}return _0x567283;});})[_0x133461('0x29')](respondWithResult(_0x1e3dc4,null))['catch'](handleError(_0x1e3dc4,null));},exports[_0x3c6dfa('0x68')]=function(_0x20ba84,_0x302283){const _0x560ccd=_0x3c6dfa;return db[_0x560ccd('0x82')][_0x560ccd('0x89')]({'where':{'id':_0x20ba84[_0x560ccd('0x6a')]['id']}})[_0x560ccd('0x29')](handleEntityNotFound(_0x302283,null))[_0x560ccd('0x29')](function(_0x24dbcf){const _0x29d3e4=_0x560ccd;if(_0x24dbcf)return _0x24dbcf[_0x29d3e4('0x68')](_0x20ba84['query'][_0x29d3e4('0x2c')])[_0x29d3e4('0x29')](function(){const _0x327914=_0x29d3e4;if(_[_0x327914('0x90')](_0x20ba84['query']['ids']))for(let _0x63b757=0x0;_0x63b757<_0x20ba84[_0x327914('0x38')]['ids'][_0x327914('0x69')];_0x63b757+=0x1){socket[_0x327914('0x35')](_0x327914('0x54'),{'UserId':Number(_0x20ba84[_0x327914('0x38')][_0x327914('0x2c')][_0x63b757]),'MailAccountId':Number(_0x20ba84[_0x327914('0x6a')]['id'])});}else socket['emit'](_0x327914('0x54'),{'UserId':Number(_0x20ba84[_0x327914('0x38')]['ids']),'MailAccountId':Number(_0x20ba84[_0x327914('0x6a')]['id'])});});})['then'](respondWithStatusCode(_0x302283,null))[_0x560ccd('0x20')](handleError(_0x302283,null));},exports[_0x3c6dfa('0x3a')]=function(_0x15e410,_0x3e5100){const _0x477531=_0x3c6dfa;let _0x3f71b={};const _0x215f2f={};let _0x313ec5,_0xd469d7;return db[_0x477531('0x82')][_0x477531('0x89')]({'where':{'id':_0x15e410[_0x477531('0x6a')]['id']}})['then'](handleEntityNotFound(_0x3e5100,null))[_0x477531('0x29')](function(_0x4f4bdb){const _0x151d09=_0x477531;if(_0x4f4bdb)return _0x313ec5=_0x4f4bdb,_0x215f2f['model']=_[_0x151d09('0x9b')](db[_0x151d09('0x2')][_0x151d09('0x40')]),_0x215f2f[_0x151d09('0x38')]=_['keys'](_0x15e410[_0x151d09('0x38')]),_0x215f2f[_0x151d09('0x91')]=_['intersection'](_0x215f2f[_0x151d09('0x9f')],_0x215f2f['query']),_0x3f71b[_0x151d09('0x32')]=_[_0x151d09('0x13')](_0x215f2f[_0x151d09('0x9f')],qs[_0x151d09('0x6f')](_0x15e410[_0x151d09('0x38')][_0x151d09('0x6f')])),_0x3f71b[_0x151d09('0x32')]=_0x3f71b[_0x151d09('0x32')]['length']?_0x3f71b[_0x151d09('0x32')]:_0x215f2f[_0x151d09('0x9f')],_0x3f71b[_0x151d09('0x1d')]=qs[_0x151d09('0xe')](_0x15e410[_0x151d09('0x38')][_0x151d09('0xe')]),_0x3f71b[_0x151d09('0x85')]=qs[_0x151d09('0x91')](_[_0x151d09('0x7b')](_0x15e410['query'],_0x215f2f[_0x151d09('0x91')])),_0x15e410[_0x151d09('0x38')][_0x151d09('0x25')]&&(_0x3f71b[_0x151d09('0x85')]=_['merge'](_0x3f71b[_0x151d09('0x85')],{[Op['or']]:_['map'](_0x3f71b[_0x151d09('0x32')],function(_0x212852){const _0x200b7f=_0x151d09,_0x27dbec={};return _0x27dbec[_0x212852]={[Op[_0x200b7f('0x3d')]]:'%'+_0x15e410['query'][_0x200b7f('0x25')]+'%'},_0x27dbec;})})),_0x3f71b=_[_0x151d09('0x87')]({},_0x3f71b,_0x15e410['options']),_0x313ec5['getAgents'](_0x3f71b);})[_0x477531('0x29')](function(_0x4d3676){const _0x1db047=_0x477531;if(_0x4d3676)return _0xd469d7=_0x4d3676[_0x1db047('0x69')],typeof _0x15e410[_0x1db047('0x38')][_0x1db047('0x1e')]===_0x1db047('0x48')&&(_0x3f71b[_0x1db047('0x7')]=qs[_0x1db047('0x7')](_0x15e410['query']['limit']),_0x3f71b[_0x1db047('0x6c')]=qs[_0x1db047('0x6c')](_0x15e410[_0x1db047('0x38')]['offset'])),_0x313ec5[_0x1db047('0x3a')](_0x3f71b);})[_0x477531('0x29')](function(_0x16ef64){if(_0x16ef64)return _0x16ef64?{'count':_0xd469d7,'rows':_0x16ef64}:null;})[_0x477531('0x29')](respondWithResult(_0x3e5100,null))[_0x477531('0x20')](handleError(_0x3e5100,null));}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index 030f398..0dbe045 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a395_0x4ca6=['save','exports','MailAccount','update','undefined','../../mysqldb','setMaxListeners','emit'];(function(_0x4a222e,_0x4ca6cd){const _0xcc4b17=function(_0x3111f7){while(--_0x3111f7){_0x4a222e['push'](_0x4a222e['shift']());}};_0xcc4b17(++_0x4ca6cd);}(a395_0x4ca6,0x1eb));const a395_0xcc4b=function(_0x4a222e,_0x4ca6cd){_0x4a222e=_0x4a222e-0x0;let _0xcc4b17=a395_0x4ca6[_0x4a222e];return _0xcc4b17;};const _0x107dbf=a395_0xcc4b;'use strict';const EventEmitter=require('events'),MailAccount=require(_0x107dbf('0x2'))['db'][_0x107dbf('0x7')],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x107dbf('0x3')](0x0);const events={'afterCreate':_0x107dbf('0x5'),'afterUpdate':_0x107dbf('0x0'),'afterDestroy':'remove'};function emitEvent(_0x3111f7){return function(_0x1fea3e){const _0x1d63df=a395_0xcc4b;MailAccountEvents[_0x1d63df('0x4')](_0x3111f7+':'+_0x1fea3e['id'],_0x1fea3e),MailAccountEvents[_0x1d63df('0x4')](_0x3111f7,_0x1fea3e);};}for(const e in events){if(typeof events[e]!==_0x107dbf('0x1')){const event=events[e];MailAccount['addHook'](e,emitEvent(event));}}module[_0x107dbf('0x6')]=MailAccountEvents; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.model.js b/server/api/mailAccount/mailAccount.model.js index ad98af6..a498c7d 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a396_0x3a80=['mail_accounts','define','./mailAccount.attributes','MailAccount','exports'];(function(_0x37535e,_0x3a80af){const _0x1ddb1d=function(_0x720e70){while(--_0x720e70){_0x37535e['push'](_0x37535e['shift']());}};_0x1ddb1d(++_0x3a80af);}(a396_0x3a80,0x16d));const a396_0x1ddb=function(_0x37535e,_0x3a80af){_0x37535e=_0x37535e-0x0;let _0x1ddb1d=a396_0x3a80[_0x37535e];return _0x1ddb1d;};const _0xe048c7=a396_0x1ddb;'use strict';const attributes=require(_0xe048c7('0x2'));module[_0xe048c7('0x4')]=function(_0x720e70){const _0x2f39d0=_0xe048c7,_0x41a8f8=_0x720e70[_0x2f39d0('0x1')](_0x2f39d0('0x3'),attributes,{'tableName':_0x2f39d0('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41a8f8;}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index 33cc178..9734f93 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a397_0x2d45=['YYYY-MM-DD\x20HH:mm:ss','originCc','catch','MailAccount,\x20%s,\x20%s','result','MailServerOut','GetMailAccount','autoclose','map','findOne','body\x20is\x20mandatory\x20and\x20not\x20empty','then','http','MailApplication','length','MailInteraction','randomstring','MailAccount','CmList','./mailAccount.socket','moment','update','list','CmContact','applications','limit','interaction','options','from','../../config/logger','List','Attachment','orderBy','request','attach','ShowMailAccount','jayson/promise','format','client','*,*,*,*','NotifyMailAccount','waitForTheAssignedAgent','get','Messages','findAll','unshift','../../mysqldb','body','priority','Applications','attributes','updatedAt','debug','message','info','where','includes','asc','isNil','stringify','rpc','mail','model','rawAttributes','account','UserId','Attachments','include','difference','ListId','name','register','attachments','request\x20sent','startRouting','error','Contacts','CompanyId','defaults','inReplyTo','from\x20is\x20mandatory','messageId','DESC','mapKey','List\x20not\x20found','MailMessage','subject','code','generate','create','../../rediscache','Smtp'];(function(_0x2464e6,_0x2d45ac){const _0x8faba5=function(_0x57d39c){while(--_0x57d39c){_0x2464e6['push'](_0x2464e6['shift']());}};_0x8faba5(++_0x2d45ac);}(a397_0x2d45,0x1a6));const a397_0x8fab=function(_0x2464e6,_0x2d45ac){_0x2464e6=_0x2464e6-0x0;let _0x8faba5=a397_0x2d45[_0x2464e6];return _0x8faba5;};const _0x5e538a=a397_0x8fab;'use strict';const _=require('lodash'),db=require(_0x5e538a('0x54'))['db'],logger=require(_0x5e538a('0x43'))(_0x5e538a('0x6')),{getSocket}=require(_0x5e538a('0x24')),socket=getSocket(),rs=require(_0x5e538a('0x36')),moment=require(_0x5e538a('0x3a')),jayson=require(_0x5e538a('0x4a')),client=jayson[_0x5e538a('0x4c')][_0x5e538a('0x32')]({'port':0x232c});require(_0x5e538a('0x39'))[_0x5e538a('0x11')](socket);function respondWithRpcPromise(_0x57d39c,_0x28ad4f,_0x2d24b4){return new Promise(function(_0x55ceb1,_0x4ae144){const _0x507878=a397_0x8fab;return client[_0x507878('0x47')](_0x57d39c,_0x2d24b4)[_0x507878('0x31')](function(_0x1f35ab){const _0xe70b8f=_0x507878;logger['info'](_0xe70b8f('0x29'),_0x28ad4f,_0xe70b8f('0x13')),logger['debug']('MailAccount,\x20%s,\x20%s,\x20%s',_0x28ad4f,'request\x20sent',JSON[_0xe70b8f('0x5')](_0x1f35ab));if(_0x1f35ab['error']){if(_0x1f35ab[_0xe70b8f('0x15')][_0xe70b8f('0x21')]===0x1f4)return logger['error'](_0xe70b8f('0x29'),_0x28ad4f,_0x1f35ab[_0xe70b8f('0x15')][_0xe70b8f('0x5b')]),_0x4ae144(_0x1f35ab[_0xe70b8f('0x15')][_0xe70b8f('0x5b')]);return logger[_0xe70b8f('0x15')](_0xe70b8f('0x29'),_0x28ad4f,_0x1f35ab[_0xe70b8f('0x15')][_0xe70b8f('0x5b')]),_0x55ceb1(_0x1f35ab[_0xe70b8f('0x15')][_0xe70b8f('0x5b')]);}else logger[_0xe70b8f('0x0')](_0xe70b8f('0x29'),_0x28ad4f,_0xe70b8f('0x13')),_0x55ceb1(_0x1f35ab[_0xe70b8f('0x2a')][_0xe70b8f('0x5b')]);})[_0x507878('0x28')](function(_0x597074){logger['error']('MailAccount,\x20%s,\x20%s',_0x28ad4f,_0x597074),_0x4ae144(_0x597074);});});}exports[_0x5e538a('0x2c')]=function(_0x352ba6){const _0x2fde96=this;return new Promise(function(_0x1011f2,_0x261396){const _0x5bc546=a397_0x8fab;return db[_0x5bc546('0x37')][_0x5bc546('0x52')]({'raw':_0x352ba6[_0x5bc546('0x41')]?_0x352ba6[_0x5bc546('0x41')]['raw']===undefined?!![]:![]:!![],'where':_0x352ba6['options']?_0x352ba6[_0x5bc546('0x41')][_0x5bc546('0x1')]||null:null,'attributes':_0x352ba6['options']?_0x352ba6[_0x5bc546('0x41')]['attributes']||null:null,'limit':_0x352ba6[_0x5bc546('0x41')]?_0x352ba6[_0x5bc546('0x41')][_0x5bc546('0x3f')]||null:null,'include':_0x352ba6[_0x5bc546('0x41')]?_0x352ba6[_0x5bc546('0x41')][_0x5bc546('0xd')]?_[_0x5bc546('0x2e')](_0x352ba6[_0x5bc546('0x41')][_0x5bc546('0xd')],function(_0x506a7e){const _0x4786bd=_0x5bc546;return{'model':db[_0x506a7e[_0x4786bd('0x8')]],'as':_0x506a7e['as'],'attributes':_0x506a7e[_0x4786bd('0x58')],'include':_0x506a7e[_0x4786bd('0xd')]?_['map'](_0x506a7e[_0x4786bd('0xd')],function(_0x239f74){const _0x5c3d8a=_0x4786bd;return{'model':db[_0x239f74[_0x5c3d8a('0x8')]],'as':_0x239f74['as'],'attributes':_0x239f74[_0x5c3d8a('0x58')],'include':_0x239f74[_0x5c3d8a('0xd')]?_[_0x5c3d8a('0x2e')](_0x239f74[_0x5c3d8a('0xd')],function(_0x6f8141){const _0x2b171d=_0x5c3d8a;return{'model':db[_0x6f8141[_0x2b171d('0x8')]],'as':_0x6f8141['as'],'attributes':_0x6f8141['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0xe11a9){const _0x3e2a8b=_0x5bc546;logger['info'](_0x3e2a8b('0x2c'),_0x352ba6),logger['debug'](_0x3e2a8b('0x2c'),_0x352ba6,JSON[_0x3e2a8b('0x5')](_0xe11a9)),_0x1011f2(_0xe11a9);})[_0x5bc546('0x28')](function(_0x2c3096){const _0x2416da=_0x5bc546;logger[_0x2416da('0x15')]('GetMailAccount',_0x2c3096['message'],_0x352ba6),_0x261396(_0x2fde96['error'](0x1f4,_0x2c3096['message']));});});},exports['ShowMailAccount']=function(_0x366668){const _0x1c634a=this;return new Promise(function(_0x284bb2,_0x3cb735){const _0x1c1f55=a397_0x8fab;return db[_0x1c1f55('0x37')][_0x1c1f55('0x2f')]({'raw':_0x366668[_0x1c1f55('0x41')]?_0x366668[_0x1c1f55('0x41')]['raw']===undefined?!![]:![]:!![],'where':_0x366668[_0x1c1f55('0x41')]?_0x366668[_0x1c1f55('0x41')][_0x1c1f55('0x1')]||null:null,'attributes':_0x366668[_0x1c1f55('0x41')]?_0x366668[_0x1c1f55('0x41')][_0x1c1f55('0x58')]||null:null,'include':_0x366668[_0x1c1f55('0x41')]?_0x366668[_0x1c1f55('0x41')]['include']?_['map'](_0x366668[_0x1c1f55('0x41')][_0x1c1f55('0xd')],function(_0x1f3a8d){const _0x1b453a=_0x1c1f55;return{'model':db[_0x1f3a8d[_0x1b453a('0x8')]],'as':_0x1f3a8d['as'],'attributes':_0x1f3a8d[_0x1b453a('0x58')],'include':_0x1f3a8d[_0x1b453a('0xd')]?_[_0x1b453a('0x2e')](_0x1f3a8d[_0x1b453a('0xd')],function(_0x1e9203){const _0x1ec05c=_0x1b453a;return{'model':db[_0x1e9203[_0x1ec05c('0x8')]],'as':_0x1e9203['as'],'attributes':_0x1e9203['attributes'],'include':_0x1e9203['include']?_['map'](_0x1e9203[_0x1ec05c('0xd')],function(_0x4fce88){const _0xdb5b2e=_0x1ec05c;return{'model':db[_0x4fce88['model']],'as':_0x4fce88['as'],'attributes':_0x4fce88[_0xdb5b2e('0x58')]};}):[]};}):[]};}):[]:[]})[_0x1c1f55('0x31')](function(_0x286f53){const _0x272f92=_0x1c1f55;logger[_0x272f92('0x0')](_0x272f92('0x49'),_0x366668),logger[_0x272f92('0x5a')](_0x272f92('0x49'),_0x366668,JSON[_0x272f92('0x5')](_0x286f53)),_0x284bb2(_0x286f53);})[_0x1c1f55('0x28')](function(_0xfdfeb){const _0x5a5bea=_0x1c1f55;logger[_0x5a5bea('0x15')](_0x5a5bea('0x49'),_0xfdfeb[_0x5a5bea('0x5b')],_0x366668),_0x3cb735(_0x1c634a['error'](0x1f4,_0xfdfeb[_0x5a5bea('0x5b')]));});});},exports[_0x5e538a('0x4e')]=function(_0x1508f6){const _0x32034c=this;return new Promise(function(_0x2b96eb,_0x53e875){const _0x3b65b0=a397_0x8fab,_0x1d5fd8={'body':_0x1508f6['body'],'channel':_0x3b65b0('0x7')},_0x398be8=_[_0x3b65b0('0xe')](_['keys'](db[_0x3b65b0('0x3d')][_0x3b65b0('0x9')]),['createdAt',_0x3b65b0('0x59'),_0x3b65b0('0x17'),_0x3b65b0('0xf')]);let _0x518e3c=![];_0x1508f6['body']['id']&&delete _0x1508f6[_0x3b65b0('0x55')]['id'];if(_['isNil'](_0x1508f6[_0x3b65b0('0x55')][_0x3b65b0('0x42')]))return _0x53e875(_0x32034c[_0x3b65b0('0x15')](0x1f4,_0x3b65b0('0x1a')));if(_[_0x3b65b0('0x4')](_0x1508f6[_0x3b65b0('0x55')]['body'])||_0x1508f6[_0x3b65b0('0x55')][_0x3b65b0('0x55')]==='')return _0x53e875(_0x32034c[_0x3b65b0('0x15')](0x1f4,_0x3b65b0('0x30')));if(_['isNil'](_0x1508f6[_0x3b65b0('0x55')]['mapKey']))return _0x53e875(_0x32034c[_0x3b65b0('0x15')](0x1f4,'mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x398be8));if(!_[_0x3b65b0('0x2')](_0x398be8,_0x1508f6['body'][_0x3b65b0('0x1d')]))return _0x53e875(_0x32034c[_0x3b65b0('0x15')](0x1f4,'mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x398be8));const _0x3dd176={};return _0x3dd176[_0x1508f6[_0x3b65b0('0x55')][_0x3b65b0('0x1d')]]=_0x1508f6[_0x3b65b0('0x55')]['from'],db[_0x3b65b0('0x37')][_0x3b65b0('0x2f')]({'where':{'id':_0x1508f6[_0x3b65b0('0xa')]['id']},'include':[{'model':db[_0x3b65b0('0x38')],'as':_0x3b65b0('0x44'),'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x3dd176,'limit':0x1,'order':[[_0x3b65b0('0x59'),_0x3b65b0('0x1c')]]}]},{'model':db[_0x3b65b0('0x33')],'as':_0x3b65b0('0x57')},{'model':db[_0x3b65b0('0x2b')],'as':_0x3b65b0('0x25')}]})[_0x3b65b0('0x31')](function(_0x5996d3){const _0x4eae7e=_0x3b65b0;if(_0x5996d3&&_0x5996d3[_0x4eae7e('0x44')]){const _0x435ff6=_0x5996d3[_0x4eae7e('0x50')]({'plain':!![]});_0x1d5fd8[_0x4eae7e('0xa')]=_['omit'](_0x435ff6,[_0x4eae7e('0x57'),_0x4eae7e('0x44')]),_0x1d5fd8[_0x4eae7e('0x3e')]=_0x435ff6[_0x4eae7e('0x57')],_0x1d5fd8[_0x4eae7e('0x3c')]=_0x435ff6['List'],_0x1d5fd8['applications']=_[_0x4eae7e('0x46')](_0x1d5fd8[_0x4eae7e('0x3e')],[_0x4eae7e('0x56')],[_0x4eae7e('0x3')]);_0x1d5fd8[_0x4eae7e('0xa')]&&_0x1d5fd8['account'][_0x4eae7e('0x2d')]&&_0x1d5fd8[_0x4eae7e('0x3e')]['push']({'id':0x0,'priority':_0x1d5fd8[_0x4eae7e('0x3e')]['length']+0x1,'app':'close','appdata':_0x4eae7e('0x2d'),'interval':_0x4eae7e('0x4d')});_0x1d5fd8[_0x4eae7e('0xa')][_0x4eae7e('0x57')]&&delete _0x1d5fd8[_0x4eae7e('0xa')][_0x4eae7e('0x57')];_0x1d5fd8[_0x4eae7e('0xa')][_0x4eae7e('0x44')]&&delete _0x1d5fd8[_0x4eae7e('0xa')][_0x4eae7e('0x44')];if(_0x435ff6[_0x4eae7e('0x44')][_0x4eae7e('0x16')][_0x4eae7e('0x34')])return _0x435ff6[_0x4eae7e('0x44')][_0x4eae7e('0x16')][0x0];const _0x1387ee=_[_0x4eae7e('0x18')](_0x1508f6['body'],{'firstName':_0x1508f6[_0x4eae7e('0x55')][_0x4eae7e('0x42')],'ListId':_0x435ff6[_0x4eae7e('0xf')]});return _0x1387ee[_0x1508f6['body']['mapKey']]=_0x1508f6[_0x4eae7e('0x55')]['from'],db[_0x4eae7e('0x3d')][_0x4eae7e('0x23')](_0x1387ee);}else throw new Error(_0x4eae7e('0x1e'));})[_0x3b65b0('0x31')](function(_0x33541d){const _0x54b261=_0x3b65b0;_0x1d5fd8['contact']=_0x33541d;if(_0x33541d){!_0x1508f6[_0x54b261('0x55')][_0x54b261('0x5b')][_0x54b261('0x1b')]&&(_0x1508f6[_0x54b261('0x55')][_0x54b261('0x5b')][_0x54b261('0x1b')]=rs[_0x54b261('0x22')]()+'\x20'+_0x1508f6[_0x54b261('0x55')][_0x54b261('0x5b')][_0x54b261('0x42')]);const _0x6fb381={'ContactId':_0x33541d['id'],'MailAccountId':_0x1508f6[_0x54b261('0xa')]['id'],'inReplyTo':_0x1508f6['body'][_0x54b261('0x5b')]['messageId'],'to':_0x1508f6['body'][_0x54b261('0x5b')]['from'],'cc':_0x1508f6[_0x54b261('0x55')][_0x54b261('0x5b')]['cc'],'subject':_0x1508f6['body'][_0x54b261('0x5b')]['subject'],'attach':_0x1508f6[_0x54b261('0x55')][_0x54b261('0x5b')]['attach'],'lastMsgAt':moment()[_0x54b261('0x4b')](_0x54b261('0x26')),'lastMsgDirection':'in','lastMsgBody':_0x1508f6[_0x54b261('0x55')][_0x54b261('0x55')]};return db[_0x54b261('0x35')][_0x54b261('0x2f')]({'where':{'closed':![],'MailAccountId':_0x1508f6[_0x54b261('0xa')]['id']},'include':[{'model':db[_0x54b261('0x1f')],'as':_0x54b261('0x51'),'attributes':[_0x54b261('0x1b')],'where':{'messageId':_0x1508f6['body'][_0x54b261('0x5b')][_0x54b261('0x19')]}}]})[_0x54b261('0x31')](function(_0x576945){const _0x2b197d=_0x54b261;if(_0x576945)return[_0x576945,![]];return db[_0x2b197d('0x35')][_0x2b197d('0x23')](_0x6fb381)['then'](function(_0x5cab1f){return[_0x5cab1f,!![]];});});}else throw new Error('Contact\x20not\x20found');})[_0x3b65b0('0x31')](function([_0x53582c,_0xfe19c1]){const _0x5b6844=_0x3b65b0;if(_0x53582c)return _0x518e3c=_0xfe19c1,!_0xfe19c1?_0x53582c[_0x5b6844('0x3b')]({'inReplyTo':_0x1508f6['body'][_0x5b6844('0x5b')][_0x5b6844('0x1b')],'to':_0x1508f6[_0x5b6844('0x55')][_0x5b6844('0x5b')]['from'],'cc':_0x1508f6[_0x5b6844('0x55')][_0x5b6844('0x5b')]['cc'],'subject':_0x1508f6[_0x5b6844('0x55')][_0x5b6844('0x5b')][_0x5b6844('0x20')],'attach':_0x53582c[_0x5b6844('0x48')]?_0x53582c[_0x5b6844('0x48')]:_0x1508f6[_0x5b6844('0x55')][_0x5b6844('0x5b')][_0x5b6844('0x48')],'substatus':null,'substatusAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgAt':moment()[_0x5b6844('0x4b')](_0x5b6844('0x26')),'lastMsgDirection':'in','lastMsgBody':_0x1508f6[_0x5b6844('0x55')]['body']}):_0x53582c;})['then'](function(_0x2ad9d0){const _0x13f34b=_0x3b65b0;return _0x1d5fd8['interaction']=_0x2ad9d0['get']({'plain':!![]}),_0x1d5fd8[_0x13f34b('0x40')]['created']=_0x518e3c,db[_0x13f34b('0x1f')][_0x13f34b('0x23')]({'body':_0x1508f6[_0x13f34b('0x55')]['body'],'MailAccountId':_0x1508f6['account']['id'],'MailInteractionId':_0x2ad9d0['id'],'direction':'in','ContactId':_0x1d5fd8['contact']['id'],'messageId':_0x1508f6[_0x13f34b('0x55')]['message'][_0x13f34b('0x1b')],'from':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')][_0x13f34b('0x42')],'to':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')]['to'],'cc':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')]['cc'],'subject':_0x1508f6['body'][_0x13f34b('0x5b')][_0x13f34b('0x20')],'attach':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')]['attach'],'Attachments':_0x1508f6[_0x13f34b('0x55')]['message'][_0x13f34b('0x12')],'originTo':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')]['originTo'],'originCc':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')][_0x13f34b('0x27')],'bcc':_0x1508f6[_0x13f34b('0x55')][_0x13f34b('0x5b')]['bcc']},{'include':[{'model':db[_0x13f34b('0x45')],'as':_0x13f34b('0xc')}]});})[_0x3b65b0('0x31')](function(_0x3b0785){const _0xd323e6=_0x3b65b0;_0x1d5fd8[_0xd323e6('0x5b')]=_0x3b0785;if(_0x1d5fd8[_0xd323e6('0x40')][_0xd323e6('0xb')])return db['User'][_0xd323e6('0x2f')]({'attributes':['id',_0xd323e6('0x10')],'where':{'id':_0x1d5fd8[_0xd323e6('0x40')][_0xd323e6('0xb')]}})['then'](function(_0x2518e3){const _0x22f463=_0xd323e6;return _0x2518e3&&_0x1d5fd8[_0x22f463('0x3e')][_0x22f463('0x53')]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x2518e3[_0x22f463('0x10')]+','+(_0x1d5fd8[_0x22f463('0xa')][_0x22f463('0x4f')]||0xa),'interval':_0x22f463('0x4d')}),respondWithRpcPromise('Start',_0x22f463('0x14'),_0x1d5fd8);});return respondWithRpcPromise('Start',_0xd323e6('0x14'),_0x1d5fd8);})[_0x3b65b0('0x31')](function(_0x589c8b){_0x2b96eb(_0x589c8b);})[_0x3b65b0('0x28')](function(_0x380ab6){const _0x3acfcb=_0x3b65b0;_0x53e875(_0x32034c['error'](0x1f4,_0x380ab6[_0x3acfcb('0x5b')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index b60bf96..31b7308 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a398_0x2edd=['emit','register','mailAccount:','./mailAccount.events','remove','length','save'];(function(_0x5422bb,_0x2edd08){const _0x48c32d=function(_0xab6d84){while(--_0xab6d84){_0x5422bb['push'](_0x5422bb['shift']());}};_0x48c32d(++_0x2edd08);}(a398_0x2edd,0x11a));const a398_0x48c3=function(_0x5422bb,_0x2edd08){_0x5422bb=_0x5422bb-0x0;let _0x48c32d=a398_0x2edd[_0x5422bb];return _0x48c32d;};const _0x4bb87e=a398_0x48c3;'use strict';const MailAccountEvents=require(_0x4bb87e('0x1')),events=[_0x4bb87e('0x4'),_0x4bb87e('0x2'),'update'];function createListener(_0xab6d84,_0x10b9fc){return function(_0x18be13){const _0x357da1=a398_0x48c3;_0x10b9fc[_0x357da1('0x5')](_0xab6d84,_0x18be13);};}exports[_0x4bb87e('0x6')]=function(_0x925b96){const _0x287a9c=_0x4bb87e;for(let _0x3414c1=0x0,_0x4d40df=events[_0x287a9c('0x3')];_0x3414c1<_0x4d40df;_0x3414c1++){const _0x5dcb96=events[_0x3414c1],_0x3d5a39=createListener(_0x287a9c('0x0')+_0x5dcb96,_0x925b96);MailAccountEvents['on'](_0x5dcb96,_0x3d5a39);}}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index 98b4b96..154c02a 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a399_0x1ff6=['../../components/auth/service','express','update','/:id','delete','Router','put','./mailApplication.controller','show','get'];(function(_0x45a510,_0x1ff615){const _0x1bcfb4=function(_0x335439){while(--_0x335439){_0x45a510['push'](_0x45a510['shift']());}};_0x1bcfb4(++_0x1ff615);}(a399_0x1ff6,0x120));const a399_0x1bcf=function(_0x45a510,_0x1ff615){_0x45a510=_0x45a510-0x0;let _0x1bcfb4=a399_0x1ff6[_0x45a510];return _0x1bcfb4;};const _0x2c18f2=a399_0x1bcf;'use strict';const express=require(_0x2c18f2('0x3')),router=express[_0x2c18f2('0x7')](),auth=require(_0x2c18f2('0x2')),controller=require(_0x2c18f2('0x9'));router[_0x2c18f2('0x1')](_0x2c18f2('0x5'),auth['isAuthenticated'](),controller[_0x2c18f2('0x0')]),router[_0x2c18f2('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x2c18f2('0x4')]),router[_0x2c18f2('0x6')](_0x2c18f2('0x5'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index b0cb2ed..fd70b1f 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a400_0x3e8a=['STRING','TEXT','*,*,*,*','exports','INTEGER','noop'];(function(_0x2b9db1,_0x3e8a04){const _0x2c82cb=function(_0x5abcbc){while(--_0x5abcbc){_0x2b9db1['push'](_0x2b9db1['shift']());}};_0x2c82cb(++_0x3e8a04);}(a400_0x3e8a,0xd4));const a400_0x2c82=function(_0x2b9db1,_0x3e8a04){_0x2b9db1=_0x2b9db1-0x0;let _0x2c82cb=a400_0x3e8a[_0x2b9db1];return _0x2c82cb;};const _0x2577d0=a400_0x2c82;'use strict';const Sequelize=require('sequelize');module[_0x2577d0('0x1')]={'priority':{'type':Sequelize[_0x2577d0('0x2')],'allowNull':![]},'app':{'type':Sequelize[_0x2577d0('0x4')],'allowNull':![],'defaultValue':_0x2577d0('0x3')},'appdata':{'type':Sequelize[_0x2577d0('0x5')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x2577d0('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index 263c7b9..d05008a 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a401_0x1f59=['query','attributes','model','../../components/parsers/qs','../../config/logger','merge','sendStatus','findOne','MailApplication','fields','include','status','destroy','keys','length','send','body','name','show','intersection','error','catch','lodash','../../mysqldb','stack','params','update','then'];(function(_0x37e9aa,_0x1f59e8){const _0x4d77cd=function(_0x2dd75d){while(--_0x2dd75d){_0x37e9aa['push'](_0x37e9aa['shift']());}};_0x4d77cd(++_0x1f59e8);}(a401_0x1f59,0x145));const a401_0x4d77=function(_0x37e9aa,_0x1f59e8){_0x37e9aa=_0x37e9aa-0x0;let _0x4d77cd=a401_0x1f59[_0x37e9aa];return _0x4d77cd;};const _0x30045f=a401_0x4d77;'use strict';const _=require(_0x30045f('0x5')),qs=require(_0x30045f('0xe')),logger=require(_0x30045f('0xf'))('api'),db=require(_0x30045f('0x6'))['db'];function respondWithResult(_0x2dd75d,_0x4af92d){return _0x4af92d=_0x4af92d||0xc8,function(_0x1fd1c1){const _0x48226d=a401_0x4d77;if(_0x1fd1c1)return _0x2dd75d[_0x48226d('0x16')](_0x4af92d)['json'](_0x1fd1c1);};}function saveUpdates(_0x7b606d){return function(_0x525591){const _0x55c170=a401_0x4d77;if(_0x525591)return _0x525591[_0x55c170('0x9')](_0x7b606d)[_0x55c170('0xa')](function(_0xa9731e){return _0xa9731e;});return null;};}function removeEntity(_0x10f527){return function(_0x354acd){const _0x3cac90=a401_0x4d77;if(_0x354acd)return _0x354acd[_0x3cac90('0x17')]()['then'](function(){const _0x4dbe9b=_0x3cac90;_0x10f527[_0x4dbe9b('0x16')](0xcc)['end']();});};}function handleEntityNotFound(_0x9c5e02){return function(_0x22b060){const _0x4733a7=a401_0x4d77;return!_0x22b060&&_0x9c5e02[_0x4733a7('0x11')](0x194),_0x22b060;};}function handleError(_0x4145e1,_0x3bcd4e){return _0x3bcd4e=_0x3bcd4e||0x1f4,function(_0x4543a9){const _0x8d3be4=a401_0x4d77;logger[_0x8d3be4('0x3')](_0x4543a9[_0x8d3be4('0x7')]),_0x4543a9[_0x8d3be4('0x0')]&&delete _0x4543a9[_0x8d3be4('0x0')],_0x4145e1[_0x8d3be4('0x16')](_0x3bcd4e)[_0x8d3be4('0x1a')](_0x4543a9);};}exports[_0x30045f('0x1')]=function(_0x3cbadc,_0x14a92c){const _0x531ec4=_0x30045f;let _0x33753e={'raw':!![],'where':{'id':_0x3cbadc[_0x531ec4('0x8')]['id']}};const _0xd8a241={};return _0xd8a241['model']=_[_0x531ec4('0x18')](db[_0x531ec4('0x13')]['rawAttributes']),_0xd8a241[_0x531ec4('0xb')]=_[_0x531ec4('0x18')](_0x3cbadc['query']),_0xd8a241['filters']=_[_0x531ec4('0x2')](_0xd8a241[_0x531ec4('0xd')],_0xd8a241[_0x531ec4('0xb')]),_0x33753e[_0x531ec4('0xc')]=_[_0x531ec4('0x2')](_0xd8a241[_0x531ec4('0xd')],qs[_0x531ec4('0x14')](_0x3cbadc['query']['fields'])),_0x33753e[_0x531ec4('0xc')]=_0x33753e['attributes'][_0x531ec4('0x19')]?_0x33753e[_0x531ec4('0xc')]:_0xd8a241['model'],_0x3cbadc[_0x531ec4('0xb')]['includeAll']&&(_0x33753e[_0x531ec4('0x15')]=[{'all':!![]}]),_0x33753e=_[_0x531ec4('0x10')]({},_0x33753e,_0x3cbadc['options']),db[_0x531ec4('0x13')][_0x531ec4('0x12')](_0x33753e)[_0x531ec4('0xa')](handleEntityNotFound(_0x14a92c,null))[_0x531ec4('0xa')](respondWithResult(_0x14a92c,null))['catch'](handleError(_0x14a92c,null));},exports[_0x30045f('0x9')]=function(_0x3a66f2,_0x3fcfc1){const _0x5e7c0a=_0x30045f;return _0x3a66f2[_0x5e7c0a('0x1b')]['id']&&delete _0x3a66f2['body']['id'],db[_0x5e7c0a('0x13')][_0x5e7c0a('0x12')]({'where':{'id':_0x3a66f2[_0x5e7c0a('0x8')]['id']}})[_0x5e7c0a('0xa')](handleEntityNotFound(_0x3fcfc1,null))['then'](saveUpdates(_0x3a66f2['body'],null))[_0x5e7c0a('0xa')](respondWithResult(_0x3fcfc1,null))[_0x5e7c0a('0x4')](handleError(_0x3fcfc1,null));},exports['destroy']=function(_0x44d06a,_0x1d4148){const _0x4b6327=_0x30045f;return db[_0x4b6327('0x13')][_0x4b6327('0x12')]({'where':{'id':_0x44d06a[_0x4b6327('0x8')]['id']}})['then'](handleEntityNotFound(_0x1d4148,null))[_0x4b6327('0xa')](removeEntity(_0x1d4148,null))[_0x4b6327('0x4')](handleError(_0x1d4148,null));}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index 26690a8..7140fd4 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a402_0x24c9=['exports','utf8mb4_unicode_ci','mail_applications','utf8mb4','define','./mailApplication.attributes'];(function(_0xd6ec7a,_0x24c950){const _0x19782b=function(_0x51b09a){while(--_0x51b09a){_0xd6ec7a['push'](_0xd6ec7a['shift']());}};_0x19782b(++_0x24c950);}(a402_0x24c9,0x85));const a402_0x1978=function(_0xd6ec7a,_0x24c950){_0xd6ec7a=_0xd6ec7a-0x0;let _0x19782b=a402_0x24c9[_0xd6ec7a];return _0x19782b;};const _0xbcff57=a402_0x1978;'use strict';const attributes=require(_0xbcff57('0x4'));module[_0xbcff57('0x5')]=function(_0x51b09a){const _0x3e2251=_0xbcff57,_0x23ba0d=_0x51b09a[_0x3e2251('0x3')]('MailApplication',attributes,{'tableName':_0x3e2251('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3e2251('0x2'),'collate':_0x3e2251('0x0')});return _0x23ba0d;}; \ No newline at end of file +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 diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index 9e4a19f..3a5732e 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a403_0x22dc=['limit','body','../../mysqldb','then','where','stringify','debug','UpdateMailApplication','attributes','message','error','options','catch','info'];(function(_0x1e62f1,_0x22dc2e){const _0x202c37=function(_0x64f2dd){while(--_0x64f2dd){_0x1e62f1['push'](_0x1e62f1['shift']());}};_0x202c37(++_0x22dc2e);}(a403_0x22dc,0x8a));const a403_0x202c=function(_0x1e62f1,_0x22dc2e){_0x1e62f1=_0x1e62f1-0x0;let _0x202c37=a403_0x22dc[_0x1e62f1];return _0x202c37;};const _0x1e2ca7=a403_0x202c;'use strict';const db=require(_0x1e2ca7('0x4'))['db'],logger=require('../../config/logger')('rpc');exports[_0x1e2ca7('0x9')]=function(_0x64f2dd){const _0x3f1946=this;return new Promise(function(_0x18e001,_0x4c0a48){const _0x3b9526=a403_0x202c;return db['MailApplication']['update'](_0x64f2dd[_0x3b9526('0x3')],{'raw':_0x64f2dd[_0x3b9526('0xd')]?_0x64f2dd[_0x3b9526('0xd')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x64f2dd['options']?_0x64f2dd['options'][_0x3b9526('0x6')]||null:null,'attributes':_0x64f2dd[_0x3b9526('0xd')]?_0x64f2dd[_0x3b9526('0xd')][_0x3b9526('0xa')]||null:null,'limit':_0x64f2dd[_0x3b9526('0xd')]?_0x64f2dd['options'][_0x3b9526('0x2')]||null:null})[_0x3b9526('0x5')](function(_0x4115a){const _0x4d77e0=_0x3b9526;logger[_0x4d77e0('0x1')]('UpdateMailApplication',_0x64f2dd),logger[_0x4d77e0('0x8')]('UpdateMailApplication',_0x64f2dd,JSON[_0x4d77e0('0x7')](_0x4115a)),_0x18e001(_0x4115a);})[_0x3b9526('0x0')](function(_0x18dcb8){const _0x131fd5=_0x3b9526;logger['error'](_0x131fd5('0x9'),_0x18dcb8['message'],_0x64f2dd),_0x4c0a48(_0x3f1946[_0x131fd5('0xc')](0x1f4,_0x18dcb8[_0x131fd5('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index b969c20..c6af792 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a404_0x30a9=['create','get','./mailInteraction.controller','describe','/:id/messages','delete','isAuthenticated','getMessages','mailinteraction:addtags','/:id','mail','mailinteraction:update','/:id/tags','put','../../components/interaction/service','update','removeTags','tracked','/:id/download','mailinteraction:destroy','index','../../components/auth/service','Router','post','show','download','/describe'];(function(_0x5e066e,_0x30a986){const _0x2f349b=function(_0x4d069c){while(--_0x4d069c){_0x5e066e['push'](_0x5e066e['shift']());}};_0x2f349b(++_0x30a986);}(a404_0x30a9,0x79));const a404_0x2f34=function(_0x5e066e,_0x30a986){_0x5e066e=_0x5e066e-0x0;let _0x2f349b=a404_0x30a9[_0x5e066e];return _0x2f349b;};const _0x18c4fb=a404_0x2f34;'use strict';const express=require('express'),router=express[_0x18c4fb('0x9')](),auth=require(_0x18c4fb('0x8')),interaction=require(_0x18c4fb('0x1')),controller=require(_0x18c4fb('0x10'));router[_0x18c4fb('0xf')]('/',auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0x7')]),router[_0x18c4fb('0xf')](_0x18c4fb('0xd'),auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0x11')]),router[_0x18c4fb('0xf')](_0x18c4fb('0x17'),auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0xb')]),router[_0x18c4fb('0xf')](_0x18c4fb('0x12'),auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0x15')]),router[_0x18c4fb('0xf')](_0x18c4fb('0x5'),auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0xc')]),router[_0x18c4fb('0xa')]('/',auth['isAuthenticated'](),controller[_0x18c4fb('0xe')]),router[_0x18c4fb('0xa')](_0x18c4fb('0x12'),auth[_0x18c4fb('0x14')](),controller['addMessage']),router[_0x18c4fb('0xa')](_0x18c4fb('0x1a'),auth['isAuthenticated'](),interaction['tracked'](_0x18c4fb('0x18'),_0x18c4fb('0x16')),controller['addTags']),router[_0x18c4fb('0x0')](_0x18c4fb('0x17'),auth[_0x18c4fb('0x14')](),interaction[_0x18c4fb('0x4')](_0x18c4fb('0x18'),_0x18c4fb('0x19')),controller[_0x18c4fb('0x2')]),router[_0x18c4fb('0x13')](_0x18c4fb('0x17'),auth[_0x18c4fb('0x14')](),interaction['tracked']('mail',_0x18c4fb('0x6')),controller['destroy']),router[_0x18c4fb('0x13')](_0x18c4fb('0x1a'),auth[_0x18c4fb('0x14')](),controller[_0x18c4fb('0x3')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index 54a498f..bec3b34 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a405_0x18be=['DATE','exports','ENUM','long','BOOLEAN','TEXT','STRING'];(function(_0xd80228,_0x18beb6){const _0x91ab5e=function(_0x579666){while(--_0x579666){_0xd80228['push'](_0xd80228['shift']());}};_0x91ab5e(++_0x18beb6);}(a405_0x18be,0x131));const a405_0x91ab=function(_0xd80228,_0x18beb6){_0xd80228=_0xd80228-0x0;let _0x91ab5e=a405_0x18be[_0xd80228];return _0x91ab5e;};const _0x4fe65b=a405_0x91ab;'use strict';const Sequelize=require('sequelize');module[_0x4fe65b('0x4')]={'closed':{'type':Sequelize[_0x4fe65b('0x0')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x4fe65b('0x3')]},'disposition':{'type':Sequelize[_0x4fe65b('0x2')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x4fe65b('0x2')]},'inReplyTo':{'type':Sequelize[_0x4fe65b('0x2')](0x1fe)},'to':{'type':Sequelize[_0x4fe65b('0x2')]},'cc':{'type':Sequelize['TEXT'](_0x4fe65b('0x6'))},'subject':{'type':Sequelize[_0x4fe65b('0x1')]()},'attach':{'type':Sequelize[_0x4fe65b('0x0')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x4fe65b('0x3')]},'substatus':{'type':Sequelize['STRING'](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x4fe65b('0x5')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4fe65b('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x4fe65b('0x5')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x4fe65b('0x1')]('long')},'lastMsgText':{'type':Sequelize['TEXT'](_0x4fe65b('0x6'))}}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index 5a4b622..511fdd1 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a406_0x4942=['keyBy','sort','destroy','headers','filter','clone','fieldName','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Contact','squel','key','plainBody','name','include','u.id','isArray','operator','unreadMessages','i.id\x20LIKE\x20?','SELECT','value','Content-Range','isEmpty','group','omit','../../mysqldb','Owner.fullname','query','sqlOperator','Contact.firstName','buildExpression','getFullTextValue','tmp','limit','i.lastMsgAt','i.UserId','i.id','build','root','ContactId','i.secondDisposition','compact','from','params','json','status','find','$substring','User','readFileSync','i.subject','i.lastMsgDirection','findAll','mail_messages','DESC','removeTags','trimStart','journey','subject','error','null','`\x20>\x200','getMessages','resolve','color','files','catch','parseSearch','fields','lastMsgText','\x27\x27\x27\x27','u.id\x20=\x20ui.UserId','../../config/logger','rawAttributes','i.substatus','MailMessage','all','user','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','push','`unreadMessages`\x20=\x200','Tag','Tags','set','mail_interaction_has_tags','isNumeric','filters','a.id\x20=\x20i.MailAccountId','join','MailInteractionId','Bcc','read','c.firstName','map','where','TagIds','i.closed','./mailInteraction.socket','split','forEach','send','i.updatedAt','zip-dir','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','MailInteraction','length','groupBy','GROUP_CONCAT(DISTINCT\x20t.id)','addMessage','attributes','c.email','ids','index','server','existsSync','t.id\x20=\x20it.TagId','bcc','i.to','intersection','i.MailAccountId\x20IN\x20?','addTags','field','UserId','count','describe','mail_accounts','parse','c.fax','findOne','keys','sendStatus','expr','c.lastName','text','update','sequelize','order','transcript-%d-%s.zip','a.mandatoryDisposition','offset','Sequelize','ui.MailInteractionId\x20IN\x20?','merge','having','moment','lastMsgBody','concat','Contact.email','tag','MailAccountId','replace','o.fullname','tools_tags','start','createdAt','i.MailAccountId\x20IS\x20NULL','select','Account.mandatoryDisposition','unix','type','c.phone','`unreadMessages`\x20>\x200','eml-format','then','util','create','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Account.key','unlinkSync','body','../../rediscache','like','mailInteractionTags:save','pick','o.id\x20=\x20i.UserId','../../config/environment','rows','emit','conditions','undefined','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','\x20=\x20?','i.thirdDisposition','enableEmailPreview','Messages','Contact.mobile','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','rimraf','toString','Attachments','left_join','../../components/parsers/advancedSearch','u.fullname','$gte','c.mobile','includeAll','i.closedAt','it.MailInteractionId\x20=\x20i.id','attachments','search','end','model','stack','format','Contact.lastName','YYYY-MM-DD\x20HH:mm:ss','lodash','Owner.internal','i.disposition','nolimit','i.MailAccountId\x20IS\x20NOT\x20NULL'];(function(_0x58f478,_0x4942f8){const _0x55d23b=function(_0x585b71){while(--_0x585b71){_0x58f478['push'](_0x58f478['shift']());}};_0x55d23b(++_0x4942f8);}(a406_0x4942,0x67));const a406_0x55d2=function(_0x58f478,_0x4942f8){_0x58f478=_0x58f478-0x0;let _0x55d23b=a406_0x4942[_0x58f478];return _0x55d23b;};const _0x10b963=a406_0x55d2;'use strict';const emlformat=require(_0x10b963('0x3b')),rimraf=require(_0x10b963('0x54')),zipdir=require(_0x10b963('0xd2')),moment=require(_0x10b963('0x29')),util=require(_0x10b963('0x3d')),path=require('path'),fs=require('fs'),_=require(_0x10b963('0x67')),squel=require(_0x10b963('0x75')),htmlToText=require('html-to-text'),{getSocket}=require(_0x10b963('0x43')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x10b963('0x58')),logger=require(_0x10b963('0xb4'))('api'),config=require(_0x10b963('0x48')),db=require(_0x10b963('0x85'))['db'],{Op}=require(_0x10b963('0x20'));require(_0x10b963('0xcd'))['register'](socket);function respondWithStatusCode(_0x585b71,_0x6e85d3){return _0x6e85d3=_0x6e85d3||0xcc,function(_0x2a8283){const _0x3f6363=a406_0x55d2;if(_0x2a8283)return _0x585b71[_0x3f6363('0x1b')](_0x6e85d3);return _0x585b71[_0x3f6363('0x99')](_0x6e85d3)['end']();};}function respondWithResult(_0x38050f,_0x10d9b1){return _0x10d9b1=_0x10d9b1||0xc8,function(_0x145dcf){const _0x516941=a406_0x55d2;if(_0x145dcf)return _0x38050f[_0x516941('0x99')](_0x10d9b1)['json'](_0x145dcf);};}function respondWithFilteredResult(_0x43ab77,_0x2fd494){return function(_0x451c42){const _0x419c91=a406_0x55d2;if(_0x451c42){const _0x3c5a91=_0x451c42['count'],_0xb25c60=_0x2fd494['offset'];let _0x298cc5=_0x2fd494['offset']+_0x2fd494[_0x419c91('0x8d')],_0x42b47f;return _0x298cc5>=_0x3c5a91?(_0x298cc5=_0x3c5a91,_0x42b47f=0xc8):_0x42b47f=0xce,_0x43ab77[_0x419c91('0x99')](_0x42b47f),_0x43ab77[_0x419c91('0xbf')](_0x419c91('0x81'),_0xb25c60+'-'+_0x298cc5+'/'+_0x3c5a91)[_0x419c91('0x98')](_0x451c42);}return null;};}function saveUpdates(_0x5607c6){return function(_0x4b22f5){const _0x44fc59=a406_0x55d2;if(_0x4b22f5)return _0x4b22f5[_0x44fc59('0x1f')](_0x5607c6)[_0x44fc59('0x3c')](function(_0x2c9d03){return _0x2c9d03;});return null;};}function removeEntity(_0x434436){return function(_0x2c1168){const _0xd4acfc=a406_0x55d2;if(_0x2c1168)return _0x2c1168[_0xd4acfc('0x6e')]()[_0xd4acfc('0x3c')](function(){const _0x301a9d=_0xd4acfc;_0x434436[_0x301a9d('0x99')](0xcc)[_0x301a9d('0x61')]();});};}function handleEntityNotFound(_0x3e9537){return function(_0x599dba){const _0x52902c=a406_0x55d2;return!_0x599dba&&_0x3e9537[_0x52902c('0x1b')](0x194),_0x599dba;};}function handleError(_0xac2031,_0x11cf5a){return _0x11cf5a=_0x11cf5a||0x1f4,function(_0x4a380b){const _0x2ada05=a406_0x55d2;logger[_0x2ada05('0xa7')](_0x4a380b[_0x2ada05('0x63')]),_0x4a380b[_0x2ada05('0x78')]&&delete _0x4a380b['name'],_0xac2031[_0x2ada05('0x99')](_0x11cf5a)[_0x2ada05('0xd0')](_0x4a380b);};}function getInteractionUsers(_0x2f86ab,_0x37a1c8){return new Promise(function(_0x430cee,_0x462d4d){const _0x5bf6fc=a406_0x55d2;try{_0x37a1c8[_0x2f86ab['id']]&&(_0x2f86ab['Users']=_[_0x5bf6fc('0xc9')](_0x37a1c8[_0x2f86ab['id']],function(_0x32e598){return{'id':_0x32e598['id'],'fullname':_0x32e598['fullname']};}));}catch(_0x33337e){_0x462d4d(_0x33337e);}_0x430cee(_0x2f86ab);});}function getInteractionTags(_0x58744a,_0x560224){return new Promise(function(_0x2ea66c,_0x8b8535){const _0x5f2337=a406_0x55d2;try{_0x58744a[_0x5f2337('0xcb')]&&(_0x58744a[_0x5f2337('0xbe')]=[],_0x58744a[_0x5f2337('0xcb')][_0x5f2337('0xce')](',')['forEach'](function(_0xc1484d){const _0x5d078c=_0x5f2337;_0x58744a[_0x5d078c('0xbe')][_0x5d078c('0xbb')](_0x560224[_0xc1484d]);})),delete _0x58744a[_0x5f2337('0xcb')];}catch(_0x537754){_0x8b8535(_0x537754);}_0x2ea66c(_0x58744a);});}function getLastMessageText(_0x102de5){return new Promise(function(_0x340bad,_0x19eea1){const _0x12cd7f=a406_0x55d2;return db[_0x12cd7f('0x1')][_0x12cd7f('0x19')]({'where':{'id':_0x102de5['id']},'attributes':[_0x12cd7f('0x2a'),'lastMsgText'],'raw':!![]})[_0x12cd7f('0x3c')](function(_0x429c53){const _0x44bdab=_0x12cd7f;!_0x429c53['lastMsgText']?_0x102de5[_0x44bdab('0xb1')]=_[_0x44bdab('0xa4')](htmlToText['fromString'](_0x429c53['lastMsgBody'],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x102de5['lastMsgText']=_0x429c53[_0x44bdab('0xb1')],_0x340bad(_0x102de5);})[_0x12cd7f('0xae')](function(_0x1f6f81){_0x19eea1(_0x1f6f81);});});}function updateMailInteraction(_0x47088f,_0x1055aa,_0x3bd183,_0x2bc567){return new Promise(function(_0x769110,_0x8396fa){const _0x1efefb=a406_0x55d2;return getInteractionUsers(_0x47088f,_0x3bd183)[_0x1efefb('0x3c')](function(_0xeda8cc){return getInteractionTags(_0xeda8cc,_0x1055aa);})['then'](function(_0x4ba7e4){_0x2bc567?_0x769110(getLastMessageText(_0x4ba7e4)):_0x769110(_0x4ba7e4);})['catch'](function(_0x59e748){_0x8396fa(_0x59e748);});});}exports[_0x10b963('0x9')]=function(_0x41b691,_0xf8ec91){const _0x31c0e9=_0x10b963,_0x59ffcc={},_0x51ba81={},_0x24d867={'count':0x0,'rows':[]},_0x2e79fb=_[_0x31c0e9('0xc9')](db[_0x31c0e9('0x1')]['rawAttributes'],function(_0x288b52){const _0x3de13a=_0x31c0e9;return{'name':_0x288b52[_0x3de13a('0x72')],'type':_0x288b52[_0x3de13a('0x38')][_0x3de13a('0x76')]};});_0x51ba81['model']=_['map'](_0x2e79fb,_0x31c0e9('0x78')),_0x51ba81[_0x31c0e9('0x87')]=_['keys'](_0x41b691[_0x31c0e9('0x87')]),_0x51ba81[_0x31c0e9('0xc2')]=_[_0x31c0e9('0xf')](_0x51ba81[_0x31c0e9('0x62')],_0x51ba81[_0x31c0e9('0x87')]),_0x59ffcc['attributes']=_['intersection'](_0x51ba81[_0x31c0e9('0x62')],qs[_0x31c0e9('0xb0')](_0x41b691['query'][_0x31c0e9('0xb0')])),_0x59ffcc[_0x31c0e9('0x6')]=_0x59ffcc[_0x31c0e9('0x6')]['length']?_0x59ffcc[_0x31c0e9('0x6')]:_0x51ba81[_0x31c0e9('0x62')];typeof _0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x6a')]===_0x31c0e9('0x4c')&&(_0x59ffcc[_0x31c0e9('0x8d')]=qs[_0x31c0e9('0x8d')](_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x8d')]),_0x59ffcc[_0x31c0e9('0x24')]=qs[_0x31c0e9('0x24')](_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x24')]));_0x59ffcc[_0x31c0e9('0x21')]=qs[_0x31c0e9('0x6d')](_0x41b691['query'][_0x31c0e9('0x6d')]),_0x59ffcc[_0x31c0e9('0xca')]=qs[_0x31c0e9('0xc2')](_[_0x31c0e9('0x46')](_0x41b691['query'],_0x51ba81['filters']),_0x2e79fb);let _0x569b0a=[];const _0x22f516=squel[_0x31c0e9('0x35')]()['field']('id')[_0x31c0e9('0x12')](_0x31c0e9('0x78'))[_0x31c0e9('0x12')]('color')[_0x31c0e9('0x96')](_0x31c0e9('0x31')),_0x4d1323=squel[_0x31c0e9('0x35')]()[_0x31c0e9('0x12')](_0x31c0e9('0x7a'))['field'](_0x31c0e9('0x59'))[_0x31c0e9('0x12')]('ui.MailInteractionId')[_0x31c0e9('0x96')]('user_has_mail_interactions','ui')[_0x31c0e9('0x57')]('users','u',_0x31c0e9('0xb3')),_0xa2de8e=squel[_0x31c0e9('0x35')]()[_0x31c0e9('0x96')]('mail_interactions','i')[_0x31c0e9('0x57')]('cm_contacts','c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x31c0e9('0x57')]('users','o',_0x31c0e9('0x47'))[_0x31c0e9('0x57')](_0x31c0e9('0x16'),'a',_0x31c0e9('0xc3'))[_0x31c0e9('0x57')](_0x31c0e9('0xa1'),'me','me.MailInteractionId\x20=\x20i.id')['left_join'](_0x31c0e9('0xc0'),'it',_0x31c0e9('0x5e'))[_0x31c0e9('0x57')](_0x31c0e9('0x31'),'t',_0x31c0e9('0xc')),_0x70a553=squel[_0x31c0e9('0x1c')]();let _0x3d39d5=[];const _0x15f1d1=squel[_0x31c0e9('0x1c')]();let _0x3053ff;if(_0x41b691[_0x31c0e9('0x87')]['search']){_0x3053ff=as[_0x31c0e9('0xaf')](_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x60')]);const _0x512855=_0x3053ff[_0x31c0e9('0x88')];for(let _0x26cb98=0x0;_0x26cb98<_0x3053ff[_0x31c0e9('0x4b')][_0x31c0e9('0x2')];_0x26cb98++){const _0x4489bc=_0x3053ff['conditions'][_0x26cb98],_0x4baefc='i';let _0x1f842a,_0x2278fd=_['find'](_0x2e79fb,['name',_0x4489bc[_0x31c0e9('0x12')]]);if(!_0x2278fd)switch(_0x4489bc['field']){case _0x31c0e9('0x7d'):_0x4489bc[_0x31c0e9('0x80')]==0x1?_0xa2de8e['having']('`'+_0x4489bc['field']+'`\x20=\x200'):_0xa2de8e[_0x31c0e9('0x28')]('`'+_0x4489bc['field']+_0x31c0e9('0xa9'));break;case _0x31c0e9('0x74'):if(_0x4489bc[_0x31c0e9('0x7c')]===_0x31c0e9('0x9b')){if(_0x4489bc[_0x31c0e9('0x80')][_0x31c0e9('0xce')]('\x20')[_0x31c0e9('0x2')]>0x1)_0x70a553[_0x512855](_0x31c0e9('0x0'),qs[_0x31c0e9('0x8b')](_0x4489bc[_0x31c0e9('0x80')]),null);else{const _0x1ebc0c='%'+_0x4489bc[_0x31c0e9('0x80')]+'%';_0x70a553[_0x512855]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x1ebc0c,_0x1ebc0c,_0x1ebc0c);}}else _0x2278fd=_[_0x31c0e9('0x9a')](_0x2e79fb,[_0x31c0e9('0x78'),_0x31c0e9('0x93')]),_0x4489bc[_0x31c0e9('0x12')]=_0x31c0e9('0x93'),_0x1f842a=as['buildExpression'](_0x4baefc,_0x2278fd[_0x31c0e9('0x38')],_0x4489bc),_0x70a553[_0x512855](_0x1f842a['text'],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x32')],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x61')]);break;case'Tag':{const _0x5ee5ab=_0x4489bc[_0x31c0e9('0x80')][_0x31c0e9('0xce')](',')[_0x31c0e9('0xc9')](function(_0x2be781){return Number(_0x2be781);});_0x5ee5ab[_0x31c0e9('0xcf')](function(_0x5dd589){const _0x437dea=_0x31c0e9;_0x15f1d1['or'](_0x437dea('0x4d'),'%,'+_0x5dd589+',%');}),_0x3d39d5=_['union'](_0x3d39d5,_0x5ee5ab);}break;case _0x31c0e9('0x9c'):_0x4489bc[_0x31c0e9('0x7c')]===_0x31c0e9('0x9b')?_0x70a553[_0x512855]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x4489bc[_0x31c0e9('0x80')]+'%',null):(_0x2278fd=_[_0x31c0e9('0x9a')](_0x2e79fb,['name',_0x31c0e9('0x13')]),_0x4489bc[_0x31c0e9('0x12')]=_0x31c0e9('0x13'),_0x1f842a=as['buildExpression'](_0x4baefc,_0x2278fd['type'],_0x4489bc),_0x70a553[_0x512855](_0x1f842a['text'],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x32')],_0x1f842a[_0x31c0e9('0x80')]['end']));break;case _0x31c0e9('0x77'):_0x1f842a=as[_0x31c0e9('0x8a')]('me',null,_0x4489bc),_0x70a553[_0x512855](_0x1f842a[_0x31c0e9('0x1e')],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x32')],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x61')]);break;}else _0x1f842a=as['buildExpression'](_0x4baefc,_0x2278fd[_0x31c0e9('0x38')],_0x4489bc),_0x70a553[_0x512855](_0x1f842a['text'],_0x1f842a[_0x31c0e9('0x80')][_0x31c0e9('0x32')],_0x1f842a['value']['end']);}}else{const _0xc499ca=_(_0x41b691[_0x31c0e9('0x87')])[_0x31c0e9('0x1a')]()[_0x31c0e9('0xc9')](function(_0x38624c){const _0x49b9e7=_0x31c0e9;return _['some'](_0x2e79fb,[_0x49b9e7('0x78'),_0x38624c])?_0x38624c:undefined;})[_0x31c0e9('0x95')]()['value']();!_[_0x31c0e9('0x82')](_0xc499ca)&&_0xc499ca[_0x31c0e9('0xcf')](function(_0x414cc2){const _0x18b9f1=_0x31c0e9;if(_0x414cc2===_0x18b9f1('0x2e'))_0xa2de8e[_0x18b9f1('0xca')](_0x18b9f1('0x10'),[][_0x18b9f1('0x2b')](_0x41b691[_0x18b9f1('0x87')][_0x414cc2]));else{if(_0x414cc2===_0x18b9f1('0x33')){const _0x262b17=JSON[_0x18b9f1('0x17')](_0x41b691[_0x18b9f1('0x87')][_0x414cc2])[_0x18b9f1('0x5a')],_0x21ad28=JSON[_0x18b9f1('0x17')](_0x41b691[_0x18b9f1('0x87')][_0x414cc2])['$lte'];_0xa2de8e[_0x18b9f1('0xca')](_0x18b9f1('0x73'),_0x262b17,_0x21ad28);}else _0x41b691[_0x18b9f1('0x87')][_0x414cc2]===_0x18b9f1('0xa8')?_0xa2de8e[_0x18b9f1('0xca')]('i.'+_0x414cc2+'\x20IS\x20NULL'):_0xa2de8e['where']('i.'+_0x414cc2+_0x18b9f1('0x4e'),_0x41b691[_0x18b9f1('0x87')][_0x414cc2]);}});_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0xc7')]&&(_0x41b691[_0x31c0e9('0x87')]['read']==0x1?_0xa2de8e[_0x31c0e9('0x28')](_0x31c0e9('0xbc')):_0xa2de8e[_0x31c0e9('0x28')](_0x31c0e9('0x3a')));_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x2d')]&&(_0x3d39d5=_[_0x31c0e9('0x7b')](_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x2d')])?_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x2d')]:new Array(_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x2d')]),_0x3d39d5[_0x31c0e9('0xcf')](function(_0x537d91){_0x15f1d1['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x537d91+',%');}));if(_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x70')]){const _0x431240=_0x41b691[_0x31c0e9('0x87')][_0x31c0e9('0x70')]['replace']('\x5c','\x5c\x5c')[_0x31c0e9('0x2f')]('\x27\x27',_0x31c0e9('0xb2'));if(qs[_0x31c0e9('0xc1')](_0x431240))_0x70a553['or'](_0x31c0e9('0x7e'),_0x431240+'%');else qs['isEmail'](_0x431240)?_0x70a553['or']('c.email\x20LIKE\x20?',_0x431240+'%'):_0x70a553['or'](_0x31c0e9('0x53'),qs[_0x31c0e9('0x8b')](_0x431240))['or'](_0x31c0e9('0xba'),qs['getFullTextValue'](_0x431240));}}_0xa2de8e[_0x31c0e9('0xca')](_0x70a553),_0xa2de8e[_0x31c0e9('0x83')](_0x31c0e9('0x90'));let _0x318dea={'type':db[_0x31c0e9('0x25')]['QueryTypes'][_0x31c0e9('0x7f')],'raw':!![]};const _0x4f7495=_0xa2de8e[_0x31c0e9('0x71')]();_0x4f7495[_0x31c0e9('0x12')](_0x31c0e9('0x90')),_0x4f7495['field'](_0x31c0e9('0x3f'),_0x31c0e9('0x7d')),_0x59ffcc[_0x31c0e9('0x21')]&&_0x59ffcc[_0x31c0e9('0x21')]['forEach'](function(_0x1dda4b){const _0x3066b6=_0x31c0e9;_0xa2de8e['order']('i.'+_0x1dda4b[0x0],_0x1dda4b[0x1]===_0x3066b6('0xa2')?![]:!![]);}),!_['isEmpty'](_0x3d39d5)&&(_0xa2de8e['having'](_0x15f1d1),_0x4f7495[_0x31c0e9('0xca')]('t.id\x20IN\x20?',_0x3d39d5)),Promise[_0x31c0e9('0xab')]()[_0x31c0e9('0x3c')](function(){const _0x1e918a=_0x31c0e9;if(!_0x3053ff){if(_0x41b691[_0x1e918a('0x87')]['MailAccountId']||_0x41b691[_0x1e918a('0x87')][_0x1e918a('0xa5')])return;_0x4f7495['where']('i.MailAccountId\x20IS\x20NOT\x20NULL'),_0xa2de8e[_0x1e918a('0xca')](_0x1e918a('0x6b'));return;}return _0x41b691[_0x1e918a('0xb9')]['getMailAccounts']({'attributes':['id'],'raw':!![]})[_0x1e918a('0x3c')](function(_0x4a6ba6){const _0x5f91e0=_0x1e918a;_['isEmpty'](_0x4a6ba6)?(_0x4f7495[_0x5f91e0('0xca')](_0x5f91e0('0x34')),_0xa2de8e[_0x5f91e0('0xca')]('i.MailAccountId\x20IS\x20NULL')):(_0x4f7495['where'](_0x5f91e0('0x10'),_[_0x5f91e0('0xc9')](_0x4a6ba6,'id')),_0xa2de8e[_0x5f91e0('0xca')](_0x5f91e0('0x10'),_[_0x5f91e0('0xc9')](_0x4a6ba6,'id')));});})[_0x31c0e9('0x3c')](function(){const _0x2ad671=_0x31c0e9;db['sequelize'][_0x2ad671('0x87')](_0x4f7495[_0x2ad671('0x55')](),_0x318dea)['then'](function(_0x2538f3){const _0x277b58=_0x2ad671;_0x24d867[_0x277b58('0x14')]=_0x2538f3[_0x277b58('0x2')];if(_0x24d867[_0x277b58('0x14')]===0x0)return[];return db['sequelize'][_0x277b58('0x87')](_0x22f516['toString'](),_0x318dea)[_0x277b58('0x3c')](function(_0x26c1f6){const _0x4cecab=_0x277b58;_0x569b0a=_[_0x4cecab('0x6c')](_0x26c1f6,'id'),_0x318dea=_['merge'](_0x318dea,{'model':db[_0x4cecab('0x1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x41b691[_0x4cecab('0x87')][_0x4cecab('0xb0')]?_0x59ffcc['attributes'][_0x4cecab('0xcf')](function(_0x3ab778){const _0x34fe08=_0x4cecab;_0xa2de8e[_0x34fe08('0x12')]('i.'+_0x3ab778);}):(_0xa2de8e[_0x4cecab('0x12')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x4cecab('0x7d')),_0xa2de8e[_0x4cecab('0x12')]('a.key',_0x4cecab('0x40')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x23'),_0x4cecab('0x36')),_0xa2de8e[_0x4cecab('0x12')]('i.id'),_0xa2de8e[_0x4cecab('0x12')]('i.createdAt'),_0xa2de8e['field'](_0x4cecab('0xd1')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0xcc')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x5d')),_0xa2de8e['field']('i.attach'),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x8e')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x9f')),_0xa2de8e['field'](_0x4cecab('0x9e')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x69')),_0xa2de8e['field'](_0x4cecab('0x94')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x4f')),_0xa2de8e['field'](_0x4cecab('0xb6')),_0xa2de8e['field'](_0x4cecab('0xe')),_0xa2de8e['field']('i.ContactId'),_0xa2de8e['field']('i.MailAccountId'),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x8f')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0xc8'),_0x4cecab('0x89')),_0xa2de8e['field'](_0x4cecab('0x1d'),_0x4cecab('0x65')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x7'),_0x4cecab('0x2c')),_0xa2de8e['field'](_0x4cecab('0x39'),'Contact.phone'),_0xa2de8e['field'](_0x4cecab('0x5b'),_0x4cecab('0x52')),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x18'),'Contact.fax'),_0xa2de8e[_0x4cecab('0x12')](_0x4cecab('0x30'),_0x4cecab('0x86')),_0xa2de8e['field']('o.internal',_0x4cecab('0x68')),_0xa2de8e['field'](_0x4cecab('0x4'),_0x4cecab('0xcb')));if(_0x59ffcc[_0x4cecab('0x8d')])_0xa2de8e['limit'](_0x59ffcc[_0x4cecab('0x8d')]);if(_0x59ffcc[_0x4cecab('0x24')])_0xa2de8e[_0x4cecab('0x24')](_0x59ffcc[_0x4cecab('0x24')]);return db[_0x4cecab('0x20')][_0x4cecab('0x87')](_0xa2de8e['toString'](),_0x318dea);})['then'](function(_0x3e4e3f){const _0x572f74=_0x277b58;return _0x4d1323[_0x572f74('0xca')](_0x572f74('0x26'),_[_0x572f74('0xc9')](_0x3e4e3f,'id')),db[_0x572f74('0x20')][_0x572f74('0x87')](_0x4d1323[_0x572f74('0x55')](),_0x318dea)[_0x572f74('0x3c')](function(_0x4a3e09){const _0x288313=_0x572f74,_0x3c2d69=_[_0x288313('0x3')](_0x4a3e09,_0x288313('0xc5')),_0x401cc9=[];return db['Setting'][_0x288313('0x19')]({'attributes':['enableEmailPreview'],'raw':!![]})[_0x288313('0x3c')](function(_0x3a98ab){const _0x9f191d=_0x288313,_0x3dec69=_0x3a98ab[_0x9f191d('0x50')];return _0x3e4e3f[_0x9f191d('0xcf')](function(_0x134153){const _0x37af18=_0x9f191d;_0x401cc9[_0x37af18('0xbb')](updateMailInteraction(_0x134153,_0x569b0a,_0x3c2d69,_0x3dec69));}),Promise[_0x9f191d('0xb8')](_0x401cc9);});});});})['then'](function(_0x58988b){return _0x24d867['rows']=_0x58988b,_0x24d867;})[_0x2ad671('0x3c')](respondWithFilteredResult(_0xf8ec91,_0x59ffcc));})[_0x31c0e9('0xae')](handleError(_0xf8ec91,null));},exports['show']=function(_0x3b7116,_0x5b97d3){const _0x426e88=_0x10b963;let _0x49cda7={'raw':![],'where':{'id':_0x3b7116[_0x426e88('0x97')]['id']}};const _0x40f5c2={};return _0x40f5c2[_0x426e88('0x62')]=_[_0x426e88('0x1a')](db[_0x426e88('0x1')][_0x426e88('0xb5')]),_0x40f5c2['query']=_[_0x426e88('0x1a')](_0x3b7116[_0x426e88('0x87')]),_0x40f5c2['filters']=_[_0x426e88('0xf')](_0x40f5c2[_0x426e88('0x62')],_0x40f5c2[_0x426e88('0x87')]),_0x49cda7[_0x426e88('0x6')]=_[_0x426e88('0xf')](_0x40f5c2[_0x426e88('0x62')],qs[_0x426e88('0xb0')](_0x3b7116[_0x426e88('0x87')]['fields'])),_0x49cda7[_0x426e88('0x6')]=_0x49cda7['attributes'][_0x426e88('0x2')]?_0x49cda7[_0x426e88('0x6')]:_0x40f5c2['model'],_0x3b7116['query'][_0x426e88('0x5c')]&&(_0x49cda7[_0x426e88('0x79')]=[{'all':!![]}]),_0x49cda7=_[_0x426e88('0x27')]({},_0x49cda7,_0x3b7116['options']),db[_0x426e88('0x1')][_0x426e88('0x19')](_0x49cda7)[_0x426e88('0x3c')](handleEntityNotFound(_0x5b97d3,null))[_0x426e88('0x3c')](respondWithResult(_0x5b97d3,null))[_0x426e88('0xae')](handleError(_0x5b97d3,null));},exports[_0x10b963('0x3e')]=function(_0x8ce016,_0x3612b6){const _0x20ccdd=_0x10b963;return db['MailInteraction'][_0x20ccdd('0x3e')](_0x8ce016['body'],{})['then'](respondWithResult(_0x3612b6,0xc9))[_0x20ccdd('0xae')](handleError(_0x3612b6,null));},exports[_0x10b963('0x1f')]=function(_0x5eec32,_0x3cdbf0){const _0x4483cb=_0x10b963;return _0x5eec32[_0x4483cb('0x42')]['id']&&delete _0x5eec32[_0x4483cb('0x42')]['id'],db[_0x4483cb('0x1')]['findOne']({'where':{'id':_0x5eec32[_0x4483cb('0x97')]['id']}})['then'](handleEntityNotFound(_0x3cdbf0,null))[_0x4483cb('0x3c')](saveUpdates(_0x5eec32[_0x4483cb('0x42')],null))[_0x4483cb('0x3c')](respondWithResult(_0x3cdbf0,null))[_0x4483cb('0xae')](handleError(_0x3cdbf0,null));},exports['destroy']=function(_0xd00f15,_0x373f66){const _0x56de0d=_0x10b963;return db[_0x56de0d('0x1')][_0x56de0d('0x19')]({'where':{'id':_0xd00f15[_0x56de0d('0x97')]['id']}})[_0x56de0d('0x3c')](handleEntityNotFound(_0x373f66,null))[_0x56de0d('0x3c')](removeEntity(_0x373f66,null))[_0x56de0d('0xae')](handleError(_0x373f66,null));},exports[_0x10b963('0x15')]=function(_0x49f135,_0x1b0ff1){const _0x44ffb2=_0x10b963;return db['MailInteraction']['describe']()['then'](respondWithResult(_0x1b0ff1,null))[_0x44ffb2('0xae')](handleError(_0x1b0ff1,null));},exports[_0x10b963('0x5')]=function(_0x507717,_0x9d1f01){const _0x566fdf=_0x10b963;return db[_0x566fdf('0xb7')][_0x566fdf('0x19')]({'where':{'id':_0x507717['params']['id']}})[_0x566fdf('0x3c')](function(_0x2842d2){const _0x40c9d2=_0x566fdf;if(_0x2842d2)return _0x2842d2[_0x40c9d2('0x5')](_0x507717[_0x40c9d2('0x42')][_0x40c9d2('0x8')],{'through':_[_0x40c9d2('0x84')](_0x507717[_0x40c9d2('0x42')],[_0x40c9d2('0x8'),'id'])});})[_0x566fdf('0x3c')](respondWithResult(_0x9d1f01,null))[_0x566fdf('0xae')](handleError(_0x9d1f01,null));},exports[_0x10b963('0xaa')]=function(_0x4facdb,_0x32dcf0){const _0xc6f60d=_0x10b963;let _0x4f0299={'raw':![],'where':{}};const _0x2a3594={},_0x19d9ca={'count':0x0,'rows':[]};return db[_0xc6f60d('0x1')][_0xc6f60d('0x19')]({'where':{'id':_0x4facdb[_0xc6f60d('0x97')]['id']}})['then'](handleEntityNotFound(_0x32dcf0,null))['then'](function(_0x8373e9){const _0x351cfe=_0xc6f60d;if(_0x8373e9){_0x2a3594['model']=_[_0x351cfe('0x1a')](db[_0x351cfe('0xb7')][_0x351cfe('0xb5')]),_0x2a3594[_0x351cfe('0x87')]=_[_0x351cfe('0x1a')](_0x4facdb['query']),_0x2a3594[_0x351cfe('0xc2')]=_[_0x351cfe('0xf')](_0x2a3594[_0x351cfe('0x62')],_0x2a3594[_0x351cfe('0x87')]),_0x4f0299[_0x351cfe('0x6')]=_[_0x351cfe('0xf')](_0x2a3594[_0x351cfe('0x62')],qs[_0x351cfe('0xb0')](_0x4facdb[_0x351cfe('0x87')][_0x351cfe('0xb0')])),_0x4f0299[_0x351cfe('0x6')]=_0x4f0299[_0x351cfe('0x6')][_0x351cfe('0x2')]?_0x4f0299[_0x351cfe('0x6')]:_0x2a3594[_0x351cfe('0x62')];typeof _0x4facdb[_0x351cfe('0x87')][_0x351cfe('0x6a')]===_0x351cfe('0x4c')&&(_0x4f0299['limit']=qs[_0x351cfe('0x8d')](_0x4facdb[_0x351cfe('0x87')][_0x351cfe('0x8d')]),_0x4f0299[_0x351cfe('0x24')]=qs[_0x351cfe('0x24')](_0x4facdb['query']['offset']));_0x4f0299['order']=qs[_0x351cfe('0x6d')](_0x4facdb[_0x351cfe('0x87')][_0x351cfe('0x6d')]),_0x4f0299[_0x351cfe('0xca')]=qs[_0x351cfe('0xc2')](_[_0x351cfe('0x46')](_0x4facdb['query'],_0x2a3594['filters'])),_0x4f0299[_0x351cfe('0xca')][_0x351cfe('0xc5')]=_0x8373e9['id'];_0x4facdb[_0x351cfe('0x87')][_0x351cfe('0x70')]&&(_0x4f0299[_0x351cfe('0xca')]=_[_0x351cfe('0x27')](_0x4f0299[_0x351cfe('0xca')],{[Op['or']]:_[_0x351cfe('0xc9')](_0x4f0299[_0x351cfe('0x6')],function(_0x4966f1){const _0x115b49=_0x351cfe,_0x3d5c91={};return _0x3d5c91[_0x4966f1]={[Op[_0x115b49('0x44')]]:'%'+_0x4facdb[_0x115b49('0x87')][_0x115b49('0x70')]+'%'},_0x3d5c91;})}));if(_0x4facdb['query'][_0x351cfe('0x5a')]){const _0x1ff27d=_0x4facdb['query']['$gte'][_0x351cfe('0xce')](','),_0x17f34f={};_0x17f34f[_0x1ff27d[0x0]]={[Op['gte']]:moment(_0x1ff27d[0x1])[_0x351cfe('0x64')](_0x351cfe('0x66'))},_0x4f0299[_0x351cfe('0xca')]=_[_0x351cfe('0x27')](_0x4f0299[_0x351cfe('0xca')],_0x17f34f);}return _0x4f0299=_[_0x351cfe('0x27')]({},_0x4f0299,_0x4facdb['options']),db[_0x351cfe('0xb7')][_0x351cfe('0x14')]({'where':_0x4f0299[_0x351cfe('0xca')]})[_0x351cfe('0x3c')](function(_0x569684){const _0x10fea1=_0x351cfe;return _0x19d9ca[_0x10fea1('0x14')]=_0x569684,_0x4facdb['query']['includeAll']&&(_0x4f0299[_0x10fea1('0x79')]=[{'all':!![]}]),db[_0x10fea1('0xb7')][_0x10fea1('0xa0')](_0x4f0299);})['then'](function(_0x1ce1ed){const _0x13e3ba=_0x351cfe;return _0x19d9ca[_0x13e3ba('0x49')]=_0x1ce1ed,_0x19d9ca;});}})[_0xc6f60d('0x3c')](respondWithFilteredResult(_0x32dcf0,_0x4f0299))[_0xc6f60d('0xae')](handleError(_0x32dcf0,null));},exports[_0x10b963('0x11')]=function(_0x3867b4,_0x147120){const _0x144a42=_0x10b963;return db['MailInteraction']['findOne']({'where':{'id':_0x3867b4[_0x144a42('0x97')]['id']}})[_0x144a42('0x3c')](function(_0x4c6741){const _0x59614a=_0x144a42;if(_0x4c6741)return _0x4c6741['setTags'](_0x3867b4['body']['ids'],{'through':_[_0x59614a('0x84')](_0x3867b4['body'],[_0x59614a('0x8'),'id'])})[_0x59614a('0x3c')](function(){const _0x4cad07=_0x59614a;return db[_0x4cad07('0xbd')][_0x4cad07('0xa0')]({'attributes':['id','name',_0x4cad07('0xac')],'where':{'id':_0x3867b4['body'][_0x4cad07('0x8')]}});})[_0x59614a('0x3c')](function(_0x2052aa){const _0x102e09=_0x59614a;return socket[_0x102e09('0x4a')](_0x102e09('0x45'),{'id':Number(_0x3867b4[_0x102e09('0x97')]['id']),'tags':_0x2052aa||[]}),{'id':Number(_0x3867b4[_0x102e09('0x97')]['id']),'tags':_0x2052aa||[]};});})[_0x144a42('0x3c')](respondWithResult(_0x147120,null))['catch'](handleError(_0x147120,null));},exports[_0x10b963('0xa3')]=function(_0x4df86d,_0x44505b){const _0x872af8=_0x10b963;return db[_0x872af8('0x1')][_0x872af8('0x19')]({'where':{'id':_0x4df86d[_0x872af8('0x97')]['id']}})[_0x872af8('0x3c')](handleEntityNotFound(_0x44505b,null))[_0x872af8('0x3c')](function(_0x96701){const _0x37aaa0=_0x872af8;if(_0x96701)return _0x96701[_0x37aaa0('0xa3')](_0x4df86d[_0x37aaa0('0x87')][_0x37aaa0('0x8')]);})[_0x872af8('0x3c')](respondWithStatusCode(_0x44505b,null))[_0x872af8('0xae')](handleError(_0x44505b,null));},exports['download']=function(_0x137737,_0xe1a8dd){const _0x8c515d=_0x10b963,_0x221d92=moment()[_0x8c515d('0x37')]()[_0x8c515d('0x55')](),_0x4077fe=path['join'](config[_0x8c515d('0x92')],_0x8c515d('0xad'),_0x8c515d('0x8c')),_0x1c0f96=path[_0x8c515d('0xc4')](config[_0x8c515d('0x92')],_0x8c515d('0xa'),_0x8c515d('0xad'),_0x8c515d('0x5f')),_0x377d3b=path[_0x8c515d('0xc4')](_0x4077fe,_0x221d92),_0x317c6d=util[_0x8c515d('0x64')](_0x8c515d('0x22'),_0x137737[_0x8c515d('0x97')]['id'],_0x221d92),_0x2e2f28=path[_0x8c515d('0xc4')](_0x4077fe,_0x317c6d),_0x18fb67=[];_0x137737['query'][_0x8c515d('0x5f')]&&_0x18fb67['push']({'model':db['Attachment'],'as':_0x8c515d('0x56'),'raw':!![]});const _0x534615=[{'model':db[_0x8c515d('0xb7')],'as':_0x8c515d('0x51'),'attributes':['id',_0x8c515d('0x42'),_0x8c515d('0x96'),'to','cc','bcc',_0x8c515d('0xa6'),'createdAt'],'where':{'secret':![]},'order':qs[_0x8c515d('0x6d')]('id'),'include':_0x18fb67}];return db['MailInteraction'][_0x8c515d('0x19')]({'where':{'id':_0x137737[_0x8c515d('0x97')]['id']},'include':_0x534615})['then'](handleEntityNotFound(_0xe1a8dd,null))[_0x8c515d('0x3c')](function(_0xe087ba){const _0x32d0fe=_0x8c515d;if(_0xe087ba&&_0xe087ba[_0x32d0fe('0x51')]){const _0x7299e3=_0xe087ba['get']({'plain':!![]});return fs['mkdirSync'](_0x377d3b),Promise['each'](_0x7299e3['Messages'],function(_0x3e29bd,_0x245e10){const _0x4d9f64=_0x32d0fe,_0x1dc6af={'from':_0x3e29bd[_0x4d9f64('0x96')],'to':_0x3e29bd['to'],'subject':_0x3e29bd[_0x4d9f64('0xa6')],'html':_0x3e29bd['body'],'headers':{'Date':moment(_0x3e29bd[_0x4d9f64('0x33')])[_0x4d9f64('0x64')]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x3e29bd['cc']&&(_0x1dc6af[_0x4d9f64('0x6f')]['Cc']=_0x3e29bd['cc']),_0x3e29bd['bcc']&&(_0x1dc6af[_0x4d9f64('0x6f')][_0x4d9f64('0xc6')]=_0x3e29bd[_0x4d9f64('0xd')]),new Promise(function(_0x4e8a96,_0x361518){const _0x1b85aa=_0x4d9f64;if(_0x3e29bd[_0x1b85aa('0x56')])for(let _0x3fa8a1=0x0;_0x3fa8a1<_0x3e29bd[_0x1b85aa('0x56')]['length'];_0x3fa8a1++){const _0x1833a7=_0x3e29bd[_0x1b85aa('0x56')][_0x3fa8a1],_0x2ca128=path[_0x1b85aa('0xc4')](_0x1c0f96,_0x1833a7['basename']);fs[_0x1b85aa('0xb')](_0x2ca128)&&_0x1dc6af[_0x1b85aa('0x5f')][_0x1b85aa('0xbb')]({'name':_0x1833a7['name'],'contentType':_0x1833a7[_0x1b85aa('0x38')],'data':fs[_0x1b85aa('0x9d')](_0x2ca128)});}emlformat[_0x1b85aa('0x91')](_0x1dc6af,function(_0x42e050,_0x4b2e12){const _0x21c7f4=_0x1b85aa;if(_0x42e050)return _0x361518(_0x42e050);return fs['writeFileSync'](path[_0x21c7f4('0xc4')](_0x377d3b,util['format']('message%d.eml',_0x245e10)),_0x4b2e12),_0x4e8a96(_0x4b2e12);});});})[_0x32d0fe('0x3c')](function(){const _0x504fc3=_0x32d0fe;return new Promise(function(_0x521972,_0x58d5ce){zipdir(_0x377d3b,{'saveTo':_0x2e2f28},function(_0x330fc6,_0x3dd959){if(_0x330fc6)return _0x58d5ce(_0x330fc6);return _0x521972(_0x3dd959);});})['then'](function(){return new Promise(function(_0x5b9eb1,_0x1a5c8b){rimraf(_0x377d3b,function(_0xc49ef0){if(_0xc49ef0)_0x1a5c8b(_0xc49ef0);return _0x5b9eb1();});});})[_0x504fc3('0x3c')](function(){return _0xe1a8dd['download'](_0x2e2f28,_0x317c6d,function(_0x40b7a8){const _0x1da460=a406_0x55d2;_0x40b7a8?console['log']('err',_0x40b7a8):fs[_0x1da460('0x41')](_0x2e2f28);});});});}else return _0xe1a8dd['sendStatus'](0xc8);})[_0x8c515d('0xae')](handleError(_0xe1a8dd,null));}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index dcb66de..5ba13d9 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a407_0x1a5f=['findAll','map','length','undefined','MailInteraction','emit','save','then','MailMessage','Users','setMaxListeners','events','update','addHook','setDataValue','exports','catch','../../mysqldb','unreadMessages'];(function(_0x38e6d4,_0x1a5f95){const _0x421419=function(_0x161ac8){while(--_0x161ac8){_0x38e6d4['push'](_0x38e6d4['shift']());}};_0x421419(++_0x1a5f95);}(a407_0x1a5f,0x18b));const a407_0x4214=function(_0x38e6d4,_0x1a5f95){_0x38e6d4=_0x38e6d4-0x0;let _0x421419=a407_0x1a5f[_0x38e6d4];return _0x421419;};const _0x590116=a407_0x4214;'use strict';const EventEmitter=require(_0x590116('0xf')),MailInteraction=require('../../mysqldb')['db'][_0x590116('0x8')],MailMessage=require(_0x590116('0x2'))['db'][_0x590116('0xc')],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0x590116('0xe')](0x0);const events={'afterCreate':_0x590116('0xa'),'afterUpdate':_0x590116('0x10'),'afterDestroy':'remove'};function emitEvent(_0x161ac8){return function(_0x5ee623){const _0x5f1813=a407_0x4214;_0x5ee623['getUsers']({'attributes':['id'],'raw':!![]})[_0x5f1813('0xb')](function(_0x5dd67a){const _0x3b9519=_0x5f1813;return _0x5ee623[_0x3b9519('0x12')](_0x3b9519('0xd'),_0x5dd67a[_0x3b9519('0x5')](function(_0x5c9660){return{'id':_0x5c9660['id']};})),MailMessage[_0x3b9519('0x4')]({'where':{'MailInteractionId':_0x5ee623['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x426a43){const _0x41c513=_0x5f1813;_0x5ee623[_0x41c513('0x12')](_0x41c513('0x3'),_0x426a43[_0x41c513('0x6')]),MailInteractionEvents[_0x41c513('0x9')](_0x161ac8+':'+_0x5ee623['id'],_0x5ee623),MailInteractionEvents[_0x41c513('0x9')](_0x161ac8,_0x5ee623);})[_0x5f1813('0x1')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x590116('0x7')){const event=events[e];MailInteraction[_0x590116('0x11')](e,emitEvent(event));}}module[_0x590116('0x0')]=MailInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index 70b63f5..a9883d9 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a408_0x4e88=['subject','define','utf8mb4','exports','substatus','substatusAt','mail_interactions','FULLTEXT','MailMessage','models','moment','MailInteraction','./mailInteraction.attributes','get','closedAt','utf8mb4_unicode_ci','format','closed','YYYY-MM-DD\x20HH:mm:ss','catch','update','changed'];(function(_0x2fe3ea,_0x4e886b){const _0x48a0d1=function(_0xc31754){while(--_0xc31754){_0x2fe3ea['push'](_0x2fe3ea['shift']());}};_0x48a0d1(++_0x4e886b);}(a408_0x4e88,0x8f));const a408_0x48a0=function(_0x2fe3ea,_0x4e886b){_0x2fe3ea=_0x2fe3ea-0x0;let _0x48a0d1=a408_0x4e88[_0x2fe3ea];return _0x48a0d1;};const _0x436c4e=a408_0x48a0;'use strict';const moment=require(_0x436c4e('0x15')),attributes=require(_0x436c4e('0x1'));module[_0x436c4e('0xe')]=function(_0xc31754){const _0x47dedf=_0x436c4e,_0x582718=_0xc31754[_0x47dedf('0x14')],_0x31c367=_0xc31754[_0x47dedf('0xc')](_0x47dedf('0x0'),attributes,{'tableName':_0x47dedf('0x11'),'paranoid':![],'indexes':[{'name':'fti_mail_interactions','fields':[_0x47dedf('0xb'),'to'],'type':_0x47dedf('0x12')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x50764e){const _0x5ab2f4=_0x47dedf;_0x50764e[_0x5ab2f4('0xf')]&&(_0x50764e['substatusAt']=moment()[_0x5ab2f4('0x5')](_0x5ab2f4('0x7'))),_0x50764e[_0x5ab2f4('0x6')]&&(_0x50764e[_0x5ab2f4('0x3')]=moment()[_0x5ab2f4('0x5')](_0x5ab2f4('0x7')));},'beforeUpdate':function(_0xcbcfc3){const _0x345205=_0x47dedf;_0xcbcfc3[_0x345205('0xa')](_0x345205('0xf'))&&(_0xcbcfc3['substatusAt']=_0xcbcfc3[_0x345205('0xf')]?moment()[_0x345205('0x5')]('YYYY-MM-DD\x20HH:mm:ss'):null),_0xcbcfc3[_0x345205('0xa')]('closed')&&(_0xcbcfc3[_0x345205('0x3')]=moment()['format'](_0x345205('0x7')),_0xcbcfc3['substatus']=null,_0xcbcfc3[_0x345205('0x10')]=null);},'afterUpdate':function(_0x301fcb){const _0x1f72e1=_0x47dedf,_0x562e97=_0x301fcb[_0x1f72e1('0x2')]({'plain':!![]});if(_0x562e97[_0x1f72e1('0x6')])return _0x582718[_0x1f72e1('0x13')][_0x1f72e1('0x9')]({'read':!![]},{'where':{'MailInteractionId':_0x562e97['id']}})[_0x1f72e1('0x8')](function(_0x33ccee){return _0x33ccee;});}},'charset':_0x47dedf('0xd'),'collate':_0x47dedf('0x4')});return _0x31c367;}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 3adfc06..8badaa8 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a409_0x3132=['./mailInteraction.socket','UpdateMailInteraction','../../config/logger','AddTags','debug','body','options','where','ids','findOne','message','error','attributes','stringify','register','MailInteraction','omit','AddTagsToMailInteraction','rpc','../../mysqldb','../../rediscache','addTags','then','raw','info'];(function(_0x396b9c,_0x3132b8){const _0x53775e=function(_0x3a6276){while(--_0x3a6276){_0x396b9c['push'](_0x396b9c['shift']());}};_0x53775e(++_0x3132b8);}(a409_0x3132,0x1f3));const a409_0x5377=function(_0x396b9c,_0x3132b8){_0x396b9c=_0x396b9c-0x0;let _0x53775e=a409_0x3132[_0x396b9c];return _0x53775e;};const _0x43759a=a409_0x5377;'use strict';const _=require('lodash'),db=require(_0x43759a('0x14'))['db'],logger=require(_0x43759a('0x3'))(_0x43759a('0x13')),{getSocket}=require(_0x43759a('0x15')),socket=getSocket();require(_0x43759a('0x1'))[_0x43759a('0xf')](socket),exports[_0x43759a('0x2')]=function(_0x3a6276){const _0x3c809a=this;return new Promise(function(_0x1e2efc,_0x88eb4c){const _0x3128fe=a409_0x5377;return db[_0x3128fe('0x10')]['update'](_0x3a6276[_0x3128fe('0x6')],{'raw':_0x3a6276[_0x3128fe('0x7')]?_0x3a6276['options'][_0x3128fe('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3a6276['options']?_0x3a6276[_0x3128fe('0x7')][_0x3128fe('0x8')]||null:null,'attributes':_0x3a6276['options']?_0x3a6276[_0x3128fe('0x7')][_0x3128fe('0xd')]||null:null,'limit':_0x3a6276['options']?_0x3a6276[_0x3128fe('0x7')]['limit']||null:null})[_0x3128fe('0x17')](function(_0x5776a0){const _0x30b7ad=_0x3128fe;logger[_0x30b7ad('0x0')]('UpdateMailInteraction',_0x3a6276),logger[_0x30b7ad('0x5')](_0x30b7ad('0x2'),_0x3a6276,JSON[_0x30b7ad('0xe')](_0x5776a0)),_0x1e2efc(_0x5776a0);})['catch'](function(_0x217866){const _0x128bff=_0x3128fe;logger[_0x128bff('0xc')](_0x128bff('0x2'),_0x217866[_0x128bff('0xb')],_0x3a6276),_0x88eb4c(_0x3c809a[_0x128bff('0xc')](0x1f4,_0x217866['message']));});});},exports[_0x43759a('0x12')]=function(_0x27027b){const _0x5824bb=this;return new Promise(function(_0x5d11a5,_0x3441e7){const _0x263618=a409_0x5377;return db['MailInteraction'][_0x263618('0xa')]({'where':_0x27027b[_0x263618('0x7')]?_0x27027b[_0x263618('0x7')]['where']||null:null})[_0x263618('0x17')](function(_0x2da79d){const _0x18f5aa=_0x263618;if(_0x2da79d)return _0x2da79d[_0x18f5aa('0x16')](_0x27027b[_0x18f5aa('0x6')][_0x18f5aa('0x9')],{'through':_[_0x18f5aa('0x11')](_0x27027b[_0x18f5aa('0x6')],[_0x18f5aa('0x9'),'id'])});})[_0x263618('0x17')](function([_0x2cba59]){const _0x3837f5=_0x263618;logger['info'](_0x3837f5('0x4'),_0x27027b),logger[_0x3837f5('0x5')](_0x3837f5('0x4'),_0x27027b,JSON[_0x3837f5('0xe')](_0x2cba59)),_0x5d11a5(_0x2cba59);})['catch'](function(_0x560ba4){const _0x39768e=_0x263618;logger[_0x39768e('0xc')](_0x39768e('0x4'),_0x560ba4[_0x39768e('0xb')],_0x27027b),_0x3441e7(_0x5824bb[_0x39768e('0xc')](0x1f4,_0x560ba4['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index db2ffdc..12655e8 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a410_0x112f=['save','mailInteraction:','register','remove','update','emit'];(function(_0x2031ad,_0x112f77){const _0x4e4517=function(_0x4a476b){while(--_0x4a476b){_0x2031ad['push'](_0x2031ad['shift']());}};_0x4e4517(++_0x112f77);}(a410_0x112f,0xcd));const a410_0x4e45=function(_0x2031ad,_0x112f77){_0x2031ad=_0x2031ad-0x0;let _0x4e4517=a410_0x112f[_0x2031ad];return _0x4e4517;};const _0x352fae=a410_0x4e45;'use strict';const MailInteractionEvents=require('./mailInteraction.events'),events=[_0x352fae('0x5'),_0x352fae('0x2'),_0x352fae('0x3')];function createListener(_0x4a476b,_0x18fe44){return function(_0x29329b){const _0x46cdb1=a410_0x4e45;_0x18fe44[_0x46cdb1('0x4')](_0x4a476b,_0x29329b);};}exports[_0x352fae('0x1')]=function(_0x350241){const _0x28dd3a=_0x352fae;for(let _0x40ca8d=0x0,_0x77cfe5=events['length'];_0x40ca8d<_0x77cfe5;_0x40ca8d++){const _0x21ba02=events[_0x40ca8d],_0x5b5a41=createListener(_0x28dd3a('0x0')+_0x21ba02,_0x350241);MailInteractionEvents['on'](_0x21ba02,_0x5b5a41);}}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index 39681c6..9d9699b 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a411_0x16aa=['reject','create','Router','/describe','post','mailmessage:create','describe','mail','destroy','/:id/reject','show','express','/:id','isAuthenticated','delete','/:id/download','/:id/accept','get','put','../../components/auth/service','./mailMessage.controller','exports','../../components/interaction/service','update'];(function(_0x1ec884,_0x16aa39){const _0x4010e4=function(_0x2e7cd4){while(--_0x2e7cd4){_0x1ec884['push'](_0x1ec884['shift']());}};_0x4010e4(++_0x16aa39);}(a411_0x16aa,0x19e));const a411_0x4010=function(_0x1ec884,_0x16aa39){_0x1ec884=_0x1ec884-0x0;let _0x4010e4=a411_0x16aa[_0x1ec884];return _0x4010e4;};const _0x332554=a411_0x4010;'use strict';const express=require(_0x332554('0x5')),router=express[_0x332554('0x14')](),auth=require(_0x332554('0xd')),interaction=require(_0x332554('0x10')),controller=require(_0x332554('0xe'));router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x332554('0xb')](_0x332554('0x15'),auth[_0x332554('0x7')](),controller[_0x332554('0x0')]),router[_0x332554('0xb')](_0x332554('0x6'),auth[_0x332554('0x7')](),controller[_0x332554('0x4')]),router[_0x332554('0xb')](_0x332554('0x9'),auth[_0x332554('0x7')](),controller['download']),router[_0x332554('0x16')]('/',auth[_0x332554('0x7')](),interaction['tracked'](_0x332554('0x1'),_0x332554('0x17')),controller[_0x332554('0x13')]),router[_0x332554('0xc')](_0x332554('0x6'),auth[_0x332554('0x7')](),controller[_0x332554('0x11')]),router['put'](_0x332554('0xa'),auth[_0x332554('0x7')](),controller['accept']),router[_0x332554('0xc')](_0x332554('0x3'),auth[_0x332554('0x7')](),controller[_0x332554('0x12')]),router[_0x332554('0x8')](_0x332554('0x6'),auth[_0x332554('0x7')](),controller[_0x332554('0x2')]),module[_0x332554('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index 08ec419..61bde80 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a412_0x5909=['medium','ENUM','TEXT','INTEGER','BOOLEAN','STRING','sequelize','out','long'];(function(_0x9d4a10,_0x59099f){const _0x131639=function(_0x1f51ac){while(--_0x1f51ac){_0x9d4a10['push'](_0x9d4a10['shift']());}};_0x131639(++_0x59099f);}(a412_0x5909,0x156));const a412_0x1316=function(_0x9d4a10,_0x59099f){_0x9d4a10=_0x9d4a10-0x0;let _0x131639=a412_0x5909[_0x9d4a10];return _0x131639;};const _0x417631=a412_0x1316;'use strict';const Sequelize=require(_0x417631('0x6'));module['exports']={'body':{'type':Sequelize[_0x417631('0x2')](_0x417631('0x8')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x417631('0x2')](_0x417631('0x0'))},'read':{'type':Sequelize[_0x417631('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0x417631('0x1')]('in',_0x417631('0x7')),'defaultValue':_0x417631('0x7'),'allowNull':![]},'messageId':{'type':Sequelize[_0x417631('0x5')](0x1fe)},'from':{'type':Sequelize[_0x417631('0x5')]},'to':{'type':Sequelize[_0x417631('0x2')]('long')},'cc':{'type':Sequelize[_0x417631('0x2')](_0x417631('0x8'))},'bcc':{'type':Sequelize['TEXT']('long')},'subject':{'type':Sequelize[_0x417631('0x2')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x417631('0x3')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x417631('0x4')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x417631('0x2')]('long')},'originCc':{'type':Sequelize[_0x417631('0x2')](_0x417631('0x8'))}}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index 0884fb3..8574bd5 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a413_0x37c0=['sequelize','attributes','service','unix','accept','key','rows','length','Smtp','read1stAt','acceptmessage','json','unlinkSync','index','CmContact','VIRTUAL','RejectMessage','host','intersection','order','SendMail','map','reject','params','client','http','fieldName','agent','EventManager','secure','toString','auth','MailServerOut','out','log','merge','updatedAt','MailAccountId','writeFileSync','message-%s.eml','authentication','fields','mail-interactions','body','Attachment','info','jayson/promise','message','../../mysqldb','bcc','create','UserId','pick','pass','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','type','build','MailInteractionId','List','request','basename','null','sendStatus','code','register','server/files/attachments','undefined','user','interaction','../../config/logger','includeAll','lodash','join','subject','rejectmessage','MailMessage,\x20%s,\x20%s,\x20%s','server','../../components/parsers/qs','show','readFileSync','createdAt','mail','filter','sort','direction','acceptMessage','send','stringify','like','update','path','name','./mailMessage.socket','format','event','AcceptMessage','existsSync','query','rejectMessage','../../config/environment','readAt','defaults','include','SIP/%s','MailAccount','catch','model','push','describe','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','secret','Contacts','request\x20sent','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','MailMessage,\x20%s,\x20%s','attachments','List\x20not\x20found','files','MailInteraction','findOne','util','keys','filters','headers','../../rediscache','role','offset','download','MailMessage','port','destroy','rawAttributes','get','findAll','status','channel','count','error','options','interface','root','YYYY-MM-DD\x20HH:mm:ss','Attachments','where','nolimit','then','limit'];(function(_0x31b1e1,_0x37c0a9){const _0x3bb83a=function(_0x308f2c){while(--_0x308f2c){_0x31b1e1['push'](_0x31b1e1['shift']());}};_0x3bb83a(++_0x37c0a9);}(a413_0x37c0,0x1a9));const a413_0x3bb8=function(_0x31b1e1,_0x37c0a9){_0x31b1e1=_0x31b1e1-0x0;let _0x3bb83a=a413_0x37c0[_0x31b1e1];return _0x3bb83a;};const _0x4d7281=a413_0x3bb8;'use strict';const emlformat=require('eml-format'),moment=require('moment'),util=require(_0x4d7281('0x88')),path=require(_0x4d7281('0x6a')),fs=require('fs'),_=require(_0x4d7281('0x57')),{getSocket}=require(_0x4d7281('0x8c')),socket=getSocket(),qs=require(_0x4d7281('0x5d')),logger=require(_0x4d7281('0x55'))('api'),config=require(_0x4d7281('0x73')),interaction_log=require('../../config/logger')(_0x4d7281('0x3a')),db=require(_0x4d7281('0x40'))['db'],{Op}=require(_0x4d7281('0x10'));require(_0x4d7281('0x6c'))[_0x4d7281('0x50')](socket);const jayson=require(_0x4d7281('0x3e')),client=jayson[_0x4d7281('0x28')][_0x4d7281('0x29')]({'port':0x232c}),client9003=jayson[_0x4d7281('0x28')][_0x4d7281('0x29')]({'port':0x232b}),client9002=jayson['client'][_0x4d7281('0x29')]({'port':0x232a});function respondWithRpcPromise(_0x308f2c,_0x7fd5c,_0x3b2216,_0x2ac65d){return new Promise(function(_0x37d9ce,_0x1e1890){const _0x53bb99=a413_0x3bb8,_0x3bd5d0=_0x2ac65d||client;return _0x3bd5d0[_0x53bb99('0x4b')](_0x308f2c,_0x3b2216)['then'](function(_0x3ac1b8){const _0x35d509=_0x53bb99;logger[_0x35d509('0x3d')]('MailMessage,\x20%s,\x20%s',_0x7fd5c,_0x35d509('0x80')),logger['debug'](_0x35d509('0x5b'),_0x7fd5c,'request\x20sent',JSON[_0x35d509('0x67')](_0x3ac1b8));if(_0x3ac1b8[_0x35d509('0x6')]){if(_0x3ac1b8[_0x35d509('0x6')][_0x35d509('0x4f')]===0x1f4)return logger[_0x35d509('0x6')]('MailMessage,\x20%s,\x20%s',_0x7fd5c,_0x3ac1b8[_0x35d509('0x6')][_0x35d509('0x3f')]),_0x1e1890(_0x3ac1b8['error'][_0x35d509('0x3f')]);return logger['error'](_0x35d509('0x82'),_0x7fd5c,_0x3ac1b8[_0x35d509('0x6')][_0x35d509('0x3f')]),_0x37d9ce(_0x3ac1b8[_0x35d509('0x6')][_0x35d509('0x3f')]);}else logger[_0x35d509('0x3d')](_0x35d509('0x82'),_0x7fd5c,_0x35d509('0x80')),_0x37d9ce(_0x3ac1b8['result']['message']);})[_0x53bb99('0x79')](function(_0x349dc9){const _0x22b26f=_0x53bb99;logger[_0x22b26f('0x6')](_0x22b26f('0x82'),_0x7fd5c,_0x349dc9),_0x1e1890(_0x349dc9);});});}function respondWithResult(_0x57a0eb,_0x23a3ca){return _0x23a3ca=_0x23a3ca||0xc8,function(_0x346fef){const _0x163bda=a413_0x3bb8;if(_0x346fef)return _0x57a0eb[_0x163bda('0x3')](_0x23a3ca)['json'](_0x346fef);};}function respondWithFilteredResult(_0x34893e,_0x298829){return function(_0xbb726a){const _0x3e43be=a413_0x3bb8;if(_0xbb726a){const _0x370a38=_0xbb726a[_0x3e43be('0x5')],_0x6fcc3d=_0x298829['offset'];let _0x3e4db9=_0x298829[_0x3e43be('0x8e')]+_0x298829['limit'],_0x3f0515;return _0x3e4db9>=_0x370a38?(_0x3e4db9=_0x370a38,_0x3f0515=0xc8):_0x3f0515=0xce,_0x34893e[_0x3e43be('0x3')](_0x3f0515),_0x34893e['set']('Content-Range',_0x6fcc3d+'-'+_0x3e4db9+'/'+_0x370a38)[_0x3e43be('0x1b')](_0xbb726a);}return null;};}function saveUpdates(_0x88c83e){return function(_0x259220){const _0x397f50=a413_0x3bb8;if(_0x259220)return _0x259220['update'](_0x88c83e)[_0x397f50('0xe')](function(_0x4c1ead){return _0x4c1ead;});return null;};}function removeEntity(_0x2ca54f){return function(_0xfa115c){const _0x519944=a413_0x3bb8;if(_0xfa115c)return _0xfa115c[_0x519944('0x92')]()[_0x519944('0xe')](function(){const _0x40b1d6=_0x519944;_0x2ca54f[_0x40b1d6('0x3')](0xcc)['end']();});};}function handleEntityNotFound(_0x13a906){return function(_0x37d05b){const _0x5ae0be=a413_0x3bb8;return!_0x37d05b&&_0x13a906[_0x5ae0be('0x4e')](0x194),_0x37d05b;};}function handleError(_0x212108,_0x4600a6){return _0x4600a6=_0x4600a6||0x1f4,function(_0x2d25a6){const _0x3988b8=a413_0x3bb8;logger['error'](_0x2d25a6['stack']),_0x2d25a6[_0x3988b8('0x6b')]&&delete _0x2d25a6[_0x3988b8('0x6b')],_0x212108[_0x3988b8('0x3')](_0x4600a6)[_0x3988b8('0x66')](_0x2d25a6);};}exports[_0x4d7281('0x1d')]=function(_0x180bcd,_0x176431){const _0x37cb37=_0x4d7281;let _0x2d5ae9={};const _0x454676={},_0x4888c0={'count':0x0,'rows':[]},_0x1605fa=_[_0x37cb37('0x25')](db[_0x37cb37('0x90')][_0x37cb37('0x0')],function(_0x406c2f){const _0xa3cf13=_0x37cb37;return{'name':_0x406c2f[_0xa3cf13('0x2a')],'type':_0x406c2f[_0xa3cf13('0x47')][_0xa3cf13('0x15')]};});_0x454676[_0x37cb37('0x7a')]=_['map'](_0x1605fa,'name'),_0x454676[_0x37cb37('0x71')]=_[_0x37cb37('0x89')](_0x180bcd[_0x37cb37('0x71')]),_0x454676['filters']=_[_0x37cb37('0x22')](_0x454676[_0x37cb37('0x7a')],_0x454676[_0x37cb37('0x71')]),_0x2d5ae9['attributes']=_['intersection'](_0x454676['model'],qs[_0x37cb37('0x39')](_0x180bcd[_0x37cb37('0x71')][_0x37cb37('0x39')])),_0x2d5ae9[_0x37cb37('0x11')]=_0x2d5ae9[_0x37cb37('0x11')][_0x37cb37('0x17')]?_0x2d5ae9[_0x37cb37('0x11')]:_0x454676[_0x37cb37('0x7a')];typeof _0x180bcd[_0x37cb37('0x71')][_0x37cb37('0xd')]===_0x37cb37('0x52')&&(_0x2d5ae9[_0x37cb37('0xf')]=qs['limit'](_0x180bcd['query'][_0x37cb37('0xf')]),_0x2d5ae9[_0x37cb37('0x8e')]=qs[_0x37cb37('0x8e')](_0x180bcd[_0x37cb37('0x71')][_0x37cb37('0x8e')]));_0x2d5ae9[_0x37cb37('0x23')]=qs[_0x37cb37('0x63')](_0x180bcd['query'][_0x37cb37('0x63')]),_0x2d5ae9[_0x37cb37('0xc')]=qs['filters'](_[_0x37cb37('0x44')](_0x180bcd[_0x37cb37('0x71')],_0x454676[_0x37cb37('0x8a')]),_0x1605fa);_0x180bcd['query'][_0x37cb37('0x62')]&&(_0x2d5ae9[_0x37cb37('0xc')]=_[_0x37cb37('0x33')](_0x2d5ae9[_0x37cb37('0xc')],{[Op['or']]:_['map'](_0x1605fa,function(_0x463ddf){const _0x514b27=_0x37cb37;if(_0x463ddf[_0x514b27('0x47')]!==_0x514b27('0x1f')){const _0x21c8f3={};return _0x21c8f3[_0x463ddf[_0x514b27('0x6b')]]={[Op[_0x514b27('0x68')]]:'%'+_0x180bcd['query']['filter']+'%'},_0x21c8f3;}})}));_0x2d5ae9=_[_0x37cb37('0x33')]({},_0x2d5ae9,_0x180bcd[_0x37cb37('0x7')]);const _0x3ae35e={'where':_0x2d5ae9[_0x37cb37('0xc')]};return db[_0x37cb37('0x90')][_0x37cb37('0x5')](_0x3ae35e)[_0x37cb37('0xe')](function(_0x4f9d2e){const _0x53f41d=_0x37cb37;return _0x4888c0['count']=_0x4f9d2e,_0x180bcd['query']['includeAll']&&(_0x2d5ae9[_0x53f41d('0x76')]=[{'all':!![]}]),db['MailMessage'][_0x53f41d('0x2')](_0x2d5ae9);})[_0x37cb37('0xe')](function(_0x8e0b13){const _0x7938b3=_0x37cb37;return _0x4888c0[_0x7938b3('0x16')]=_0x8e0b13,_0x4888c0;})[_0x37cb37('0xe')](respondWithFilteredResult(_0x176431,_0x2d5ae9))['catch'](handleError(_0x176431,null));},exports[_0x4d7281('0x5e')]=function(_0x1e3b75,_0x2a6e38){const _0x579e37=_0x4d7281;let _0x552de9={'raw':!![],'where':{'id':_0x1e3b75[_0x579e37('0x27')]['id']}};const _0xeb69be={};return _0xeb69be[_0x579e37('0x7a')]=_['keys'](db[_0x579e37('0x90')][_0x579e37('0x0')]),_0xeb69be['query']=_[_0x579e37('0x89')](_0x1e3b75[_0x579e37('0x71')]),_0xeb69be[_0x579e37('0x8a')]=_[_0x579e37('0x22')](_0xeb69be[_0x579e37('0x7a')],_0xeb69be[_0x579e37('0x71')]),_0x552de9[_0x579e37('0x11')]=_[_0x579e37('0x22')](_0xeb69be['model'],qs['fields'](_0x1e3b75['query'][_0x579e37('0x39')])),_0x552de9['attributes']=_0x552de9[_0x579e37('0x11')][_0x579e37('0x17')]?_0x552de9[_0x579e37('0x11')]:_0xeb69be[_0x579e37('0x7a')],_0x1e3b75[_0x579e37('0x71')][_0x579e37('0x56')]&&(_0x552de9['include']=[{'all':!![]}]),_0x552de9=_[_0x579e37('0x33')]({},_0x552de9,_0x1e3b75[_0x579e37('0x7')]),db[_0x579e37('0x90')][_0x579e37('0x87')](_0x552de9)['then'](handleEntityNotFound(_0x2a6e38,null))[_0x579e37('0xe')](respondWithResult(_0x2a6e38,null))[_0x579e37('0x79')](handleError(_0x2a6e38,null));},exports[_0x4d7281('0x69')]=function(_0xf6478c,_0x569ee8){const _0x4db28f=_0x4d7281;return _0xf6478c['body']['id']&&delete _0xf6478c[_0x4db28f('0x3b')]['id'],db[_0x4db28f('0x90')]['findOne']({'where':{'id':_0xf6478c['params']['id']}})[_0x4db28f('0xe')](handleEntityNotFound(_0x569ee8,null))[_0x4db28f('0xe')](saveUpdates(_0xf6478c[_0x4db28f('0x3b')],null))[_0x4db28f('0xe')](respondWithResult(_0x569ee8,null))[_0x4db28f('0x79')](handleError(_0x569ee8,null));},exports[_0x4d7281('0x92')]=function(_0xb35778,_0x59d453){const _0x5ac62a=_0x4d7281;return db[_0x5ac62a('0x90')]['findOne']({'where':{'id':_0xb35778[_0x5ac62a('0x27')]['id']}})[_0x5ac62a('0xe')](handleEntityNotFound(_0x59d453,null))[_0x5ac62a('0xe')](removeEntity(_0x59d453,null))[_0x5ac62a('0x79')](handleError(_0x59d453,null));},exports['describe']=function(_0x386925,_0x401f51){const _0x1d5eaf=_0x4d7281;return db[_0x1d5eaf('0x90')][_0x1d5eaf('0x7c')]()[_0x1d5eaf('0xe')](respondWithResult(_0x401f51,null))['catch'](handleError(_0x401f51,null));},exports[_0x4d7281('0x42')]=function(_0x1e2e49,_0x528e93){const _0x21f41f=_0x4d7281;return db['MailMessage']['create'](_0x1e2e49[_0x21f41f('0x3b')])['then'](function(_0x395cfe){const _0x2d8af3=_0x21f41f;if(_0x395cfe){if(_0x395cfe[_0x2d8af3('0x64')]===_0x2d8af3('0x31')&&!_0x395cfe[_0x2d8af3('0x7e')]){let _0x45f6aa,_0x465834,_0x402003;return _0x1e2e49[_0x2d8af3('0x3b')]['to']&&(_0x465834=_0x1e2e49[_0x2d8af3('0x3b')]['to']['split'](',')[0x0]),db[_0x2d8af3('0x78')]['findOne']({'where':{'id':_0x395cfe[_0x2d8af3('0x35')]},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db['CmContact'],'as':_0x2d8af3('0x7f'),'where':{'email':_0x465834},'limit':0x1,'order':[[_0x2d8af3('0x34'),'DESC']]}]},{'model':db[_0x2d8af3('0x30')],'as':_0x2d8af3('0x18'),'raw':!![]}]})[_0x2d8af3('0xe')](function(_0x1373a7){const _0x260897=_0x2d8af3;_0x45f6aa=_0x1373a7;if(_0x45f6aa&&_0x45f6aa[_0x260897('0x18')]){const _0x556bd2={'tls':{'rejectUnauthorized':![]}};_['isNil'](_0x45f6aa[_0x260897('0x18')][_0x260897('0x12')])?(_0x556bd2[_0x260897('0x21')]=_0x45f6aa['Smtp'][_0x260897('0x21')],_0x556bd2[_0x260897('0x91')]=_0x45f6aa[_0x260897('0x18')]['port'],_0x556bd2[_0x260897('0x2d')]=_0x45f6aa[_0x260897('0x18')][_0x260897('0x2d')],_0x45f6aa[_0x260897('0x18')][_0x260897('0x38')]&&(_0x556bd2['auth']={'user':_0x45f6aa['Smtp'][_0x260897('0x53')],'pass':_0x45f6aa[_0x260897('0x18')][_0x260897('0x45')]})):(_0x556bd2['service']=_0x45f6aa[_0x260897('0x18')][_0x260897('0x12')],_0x556bd2[_0x260897('0x2f')]={'user':_0x45f6aa['Smtp']['user'],'pass':_0x45f6aa[_0x260897('0x18')][_0x260897('0x45')]},_0x556bd2[_0x260897('0x2d')]=_0x45f6aa[_0x260897('0x18')][_0x260897('0x2d')]);if(_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')]&&_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')][_0x260897('0x17')])for(let _0x906903=0x0;_0x906903<_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')]['length'];_0x906903+=0x1){_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')][_0x906903]={'filename':_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')][_0x906903][_0x260897('0x6b')],'path':path[_0x260897('0x58')](config[_0x260897('0x9')],_0x260897('0x51'),_0x1e2e49[_0x260897('0x3b')][_0x260897('0x83')][_0x906903][_0x260897('0x4c')])};}_0x402003={'account':_0x556bd2,'message':_0x1e2e49['body']};return;}})['then'](function(){const _0x524a6d=_0x2d8af3;if(_0x45f6aa[_0x524a6d('0x4a')])return _0x45f6aa[_0x524a6d('0x4a')][_0x524a6d('0x7f')]['length']?_0x45f6aa['List'][_0x524a6d('0x7f')][0x0]:db[_0x524a6d('0x1e')][_0x524a6d('0x42')](_[_0x524a6d('0x75')](_0x1e2e49['body'],{'firstName':_0x1e2e49[_0x524a6d('0x3b')]['to'],'email':_0x1e2e49[_0x524a6d('0x3b')]['to'],'phone':_0x1e2e49[_0x524a6d('0x3b')]['to'],'ListId':_0x45f6aa['ListId']}));else throw new Error(_0x524a6d('0x84'));})[_0x2d8af3('0xe')](function(){const _0x599ee9=_0x2d8af3;if(_0x402003)return respondWithRpcPromise(_0x599ee9('0x24'),'sendMail',_0x402003,client9003)[_0x599ee9('0xe')](function(_0x241cb9){const _0x2b35ed=_0x599ee9;return _0x395cfe[_0x2b35ed('0x69')]({'read':!![],'messageId':_0x241cb9['messageId'],'sentAt':moment()[_0x2b35ed('0x6d')](_0x2b35ed('0xa'))});})[_0x599ee9('0x79')](function(_0x371ee2){const _0x272e9b=_0x599ee9;return logger[_0x272e9b('0x6')]('%s',JSON[_0x272e9b('0x67')](_0x371ee2)),_0x395cfe;});return _0x395cfe;});}return _0x395cfe;}})['then'](respondWithResult(_0x528e93,0xc9))[_0x21f41f('0x79')](handleError(_0x528e93,null));},exports[_0x4d7281('0x14')]=function(_0x3f25eb,_0x27374e){const _0x35a4cd=_0x4d7281,_0x5d476b={'channel':'mail'};return _0x3f25eb['body']['id']&&delete _0x3f25eb['body']['id'],_0x3f25eb[_0x35a4cd('0x3b')]['read']=!![],_0x3f25eb[_0x35a4cd('0x3b')][_0x35a4cd('0x74')]=moment()[_0x35a4cd('0x6d')](_0x35a4cd('0xa')),_0x3f25eb[_0x35a4cd('0x3b')][_0x35a4cd('0x43')]=_0x3f25eb[_0x35a4cd('0x3b')]['UserId']||_0x3f25eb[_0x35a4cd('0x53')]['id'],db[_0x35a4cd('0x90')][_0x35a4cd('0x87')]({'where':{'id':_0x3f25eb[_0x35a4cd('0x27')]['id'],'UserId':null},'include':[{'model':db[_0x35a4cd('0x1e')],'as':'Contact'}]})['then'](handleEntityNotFound(_0x27374e,null))['then'](saveUpdates(_0x3f25eb['body'],null))[_0x35a4cd('0xe')](function(_0x271fd1){const _0x18ed3c=_0x35a4cd;if(_0x271fd1)return _0x5d476b['message']=_0x271fd1[_0x18ed3c('0x1')]({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x271fd1[_0x18ed3c('0x49')]}});return null;})[_0x35a4cd('0xe')](handleEntityNotFound(_0x27374e,null))[_0x35a4cd('0xe')](function(_0x1cab48){const _0x43851f=_0x35a4cd;if(_0x1cab48)return _0x1cab48['update']({'UserId':_0x3f25eb['body']['UserId'],'read1stAt':_['isNil'](_0x1cab48[_0x43851f('0x19')])?moment()[_0x43851f('0x6d')](_0x43851f('0xa')):undefined});return null;})[_0x35a4cd('0xe')](function(_0x4dc8ff){const _0x4e84e6=_0x35a4cd;if(_0x4dc8ff)return _0x5d476b[_0x4e84e6('0x54')]=_0x4dc8ff[_0x4e84e6('0x1')]({'plain':!![]}),interaction_log[_0x4e84e6('0x3d')](_0x4e84e6('0x81'),_0x3f25eb[_0x4e84e6('0x53')]['id'],_0x3f25eb[_0x4e84e6('0x53')][_0x4e84e6('0x6b')],_0x3f25eb[_0x4e84e6('0x53')][_0x4e84e6('0x8d')],_0x5d476b[_0x4e84e6('0x54')]['id'],_0x3f25eb[_0x4e84e6('0x3b')]?JSON[_0x4e84e6('0x67')](_0x3f25eb['body']):_0x4e84e6('0x4d')),respondWithRpcPromise(_0x4e84e6('0x6f'),_0x4e84e6('0x65'),_0x5d476b);return null;})[_0x35a4cd('0xe')](function(_0x1306f8){const _0x516907=_0x35a4cd;if(_0x1306f8){if(_0x3f25eb['body']['manual'])return _0x5d476b[_0x516907('0x3f')][_0x516907('0x8')]=util['format']('SIP/%s',_0x3f25eb[_0x516907('0x53')][_0x516907('0x6b')]),_0x5d476b[_0x516907('0x3f')]['channel']=_0x5d476b[_0x516907('0x4')],_0x5d476b[_0x516907('0x3f')][_0x516907('0x6e')]=_0x516907('0x14'),respondWithRpcPromise(_0x516907('0x2c'),_0x516907('0x2c'),{'event':_0x516907('0x1a'),'message':_0x5d476b['message']},client9002)[_0x516907('0xe')](function(){return _0x5d476b;});return _0x5d476b;}return null;})[_0x35a4cd('0xe')](respondWithResult(_0x27374e,null))[_0x35a4cd('0x79')](handleError(_0x27374e,null));},exports['reject']=function(_0x1f43ee,_0x59ae5d){const _0x3bf521=_0x4d7281,_0x45ec31={'agent':{},'channel':_0x3bf521('0x61')};return _0x1f43ee[_0x3bf521('0x3b')]['id']&&delete _0x1f43ee[_0x3bf521('0x3b')]['id'],_0x1f43ee[_0x3bf521('0x3b')][_0x3bf521('0x43')]=_0x1f43ee[_0x3bf521('0x3b')][_0x3bf521('0x43')]||_0x1f43ee[_0x3bf521('0x53')]['id'],_0x45ec31[_0x3bf521('0x2b')]['id']=_0x1f43ee[_0x3bf521('0x3b')][_0x3bf521('0x43')],db[_0x3bf521('0x90')]['findOne']({'where':{'id':_0x1f43ee['params']['id'],'UserId':null}})[_0x3bf521('0xe')](handleEntityNotFound(_0x59ae5d,null))[_0x3bf521('0xe')](function(_0x141575){const _0x4072e2=_0x3bf521;if(_0x141575)return _0x45ec31[_0x4072e2('0x3f')]=_0x141575[_0x4072e2('0x1')]({'plain':!![]}),db[_0x4072e2('0x86')][_0x4072e2('0x87')]({'where':{'id':_0x141575[_0x4072e2('0x49')]}});return null;})[_0x3bf521('0xe')](handleEntityNotFound(_0x59ae5d,null))[_0x3bf521('0xe')](function(_0x283fe0){const _0x523ef6=_0x3bf521;if(_0x283fe0)return _0x45ec31[_0x523ef6('0x54')]=_0x283fe0[_0x523ef6('0x1')]({'plain':!![]}),interaction_log[_0x523ef6('0x3d')](_0x523ef6('0x46'),_0x1f43ee[_0x523ef6('0x53')]['id'],_0x1f43ee[_0x523ef6('0x53')][_0x523ef6('0x6b')],_0x1f43ee['user'][_0x523ef6('0x8d')],_0x45ec31[_0x523ef6('0x54')]['id'],_0x1f43ee['body']?JSON[_0x523ef6('0x67')](_0x1f43ee[_0x523ef6('0x3b')]):'null'),respondWithRpcPromise(_0x523ef6('0x20'),_0x523ef6('0x72'),_0x45ec31);return null;})[_0x3bf521('0xe')](function(_0x5e6741){const _0x1446d2=_0x3bf521;if(_0x5e6741)return _0x5e6741['message'][_0x1446d2('0x8')]=util[_0x1446d2('0x6d')](_0x1446d2('0x77'),_0x1f43ee['user']['name']),_0x5e6741[_0x1446d2('0x3f')][_0x1446d2('0x4')]=_0x45ec31['channel'],_0x5e6741[_0x1446d2('0x3f')][_0x1446d2('0x6e')]=_0x1446d2('0x26'),respondWithRpcPromise(_0x1446d2('0x2c'),_0x1446d2('0x2c'),{'event':_0x1446d2('0x5a'),'message':_0x5e6741[_0x1446d2('0x3f')]},client9002),_0x45ec31;return null;})['then'](respondWithResult(_0x59ae5d,null))[_0x3bf521('0x79')](handleError(_0x59ae5d,null));},exports[_0x4d7281('0x8f')]=function(_0xf2d359,_0x12892c){const _0x55530f=_0x4d7281,_0x5b6103=moment()[_0x55530f('0x13')]()[_0x55530f('0x2e')](),_0x5a95ea=path[_0x55530f('0x58')](config[_0x55530f('0x9')],_0x55530f('0x85'),'tmp'),_0x539a04=path[_0x55530f('0x58')](config[_0x55530f('0x9')],_0x55530f('0x5c'),_0x55530f('0x85'),'attachments'),_0x4889a3=util[_0x55530f('0x6d')](_0x55530f('0x37'),_0x5b6103);return db['MailMessage'][_0x55530f('0x87')]({'where':{'id':_0xf2d359['params']['id']},'attributes':['id',_0x55530f('0x3b'),'from','to','cc',_0x55530f('0x41'),_0x55530f('0x59'),_0x55530f('0x60')],'include':_0xf2d359[_0x55530f('0x71')][_0x55530f('0x83')]?[{'model':db[_0x55530f('0x3c')],'as':_0x55530f('0xb')}]:undefined})[_0x55530f('0xe')](handleEntityNotFound(_0x12892c,null))['then'](function(_0x70b74d){const _0x4604b9=_0x55530f;if(_0x70b74d){const _0xf2978b=_0x70b74d,_0x3aab9d={'from':_0xf2978b['from'],'to':_0xf2978b['to'],'subject':_0xf2978b['subject'],'html':_0xf2978b[_0x4604b9('0x3b')],'headers':{'Date':moment(_0xf2978b[_0x4604b9('0x60')])[_0x4604b9('0x6d')](_0x4604b9('0x7d'))},'attachments':[]};return _0x70b74d['cc']&&(_0x3aab9d[_0x4604b9('0x8b')]['Cc']=_0x70b74d['cc']),_0x70b74d[_0x4604b9('0x41')]&&(_0x3aab9d[_0x4604b9('0x8b')]['Bcc']=_0x70b74d[_0x4604b9('0x41')]),new Promise(function(_0x26182e,_0x1fabc8){const _0xf671b4=_0x4604b9;if(_0x70b74d[_0xf671b4('0xb')])for(let _0x3ca257=0x0;_0x3ca257<_0x70b74d[_0xf671b4('0xb')][_0xf671b4('0x17')];_0x3ca257++){const _0x34ec9f=_0x70b74d[_0xf671b4('0xb')][_0x3ca257],_0x4b8650=path[_0xf671b4('0x58')](_0x539a04,_0x34ec9f['basename']);fs[_0xf671b4('0x70')](_0x4b8650)&&_0x3aab9d[_0xf671b4('0x83')][_0xf671b4('0x7b')]({'name':_0x34ec9f[_0xf671b4('0x6b')],'contentType':_0x34ec9f[_0xf671b4('0x47')],'data':fs[_0xf671b4('0x5f')](_0x4b8650)});}emlformat[_0xf671b4('0x48')](_0x3aab9d,function(_0x2850e1,_0x5f1ae8){const _0x393989=_0xf671b4;if(_0x2850e1)return _0x1fabc8(_0x2850e1);return fs[_0x393989('0x36')](path[_0x393989('0x58')](_0x5a95ea,_0x4889a3),_0x5f1ae8),_0x26182e(_0x5f1ae8);});});}})['then'](function(_0x4aaf77){const _0x19713c=_0x55530f;if(_0x4aaf77)return _0x12892c[_0x19713c('0x8f')](path[_0x19713c('0x58')](_0x5a95ea,_0x4889a3),_0x4889a3,function(_0x106d4e){const _0x26e6be=_0x19713c;_0x106d4e?console[_0x26e6be('0x32')]('err',_0x106d4e):fs[_0x26e6be('0x1c')](path[_0x26e6be('0x58')](_0x5a95ea,_0x4889a3));});})[_0x55530f('0x79')](handleError(_0x12892c,null));}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index c5b4884..06685bb 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a414_0x5531=['../../mysqldb','setMaxListeners','emit','MailMessage','undefined','update','save','exports'];(function(_0xfe7253,_0x553172){const _0x286a91=function(_0x5ae72a){while(--_0x5ae72a){_0xfe7253['push'](_0xfe7253['shift']());}};_0x286a91(++_0x553172);}(a414_0x5531,0x129));const a414_0x286a=function(_0xfe7253,_0x553172){_0xfe7253=_0xfe7253-0x0;let _0x286a91=a414_0x5531[_0xfe7253];return _0x286a91;};const _0x179efa=a414_0x286a;'use strict';const EventEmitter=require('events'),MailMessage=require(_0x179efa('0x7'))['db'][_0x179efa('0x2')],MailMessageEvents=new EventEmitter();MailMessageEvents[_0x179efa('0x0')](0x0);const events={'afterCreate':_0x179efa('0x5'),'afterUpdate':_0x179efa('0x4'),'afterDestroy':'remove'};function emitEvent(_0x5ae72a){return function(_0x673b18){const _0x4fbf57=a414_0x286a;MailMessageEvents[_0x4fbf57('0x1')](_0x5ae72a+':'+_0x673b18['id'],_0x673b18),MailMessageEvents[_0x4fbf57('0x1')](_0x5ae72a,_0x673b18);};}for(const e in events){if(typeof events[e]!==_0x179efa('0x3')){const event=events[e];MailMessage['addHook'](e,emitEvent(event));}}module[_0x179efa('0x6')]=MailMessageEvents; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index 35294dd..b23da9f 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a415_0x319d=['MailMessage','toLowerCase','catch','body','lodash','then','UserId','error','./mailMessage.attributes','utf8mb4','findOne','plainBody','messageId','define','MailInteraction','isNil','subject','html-to-text','update','direction','exports','FULLTEXT','out'];(function(_0x2e7da5,_0x319dc4){const _0x26093d=function(_0x234753){while(--_0x234753){_0x2e7da5['push'](_0x2e7da5['shift']());}};_0x26093d(++_0x319dc4);}(a415_0x319d,0x156));const a415_0x2609=function(_0x2e7da5,_0x319dc4){_0x2e7da5=_0x2e7da5-0x0;let _0x26093d=a415_0x319d[_0x2e7da5];return _0x26093d;};const _0x255548=a415_0x2609;'use strict';const _=require(_0x255548('0x7')),htmlToText=require(_0x255548('0x14')),attributes=require(_0x255548('0xb'));module[_0x255548('0x0')]=function(_0x234753){const _0x5a68bd=_0x255548,_0x4b1077=_0x234753['models'],_0x25536f=_0x234753[_0x5a68bd('0x10')](_0x5a68bd('0x3'),attributes,{'tableName':'mail_messages','paranoid':![],'indexes':[{'name':_0x5a68bd('0xf'),'fields':['messageId']},{'name':'fti_mail_messages','fields':[_0x5a68bd('0xe'),_0x5a68bd('0x13')],'type':_0x5a68bd('0x1')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x296198){const _0x11cc63=_0x5a68bd;_0x296198[_0x11cc63('0x6')]&&(_0x296198[_0x11cc63('0xe')]=htmlToText['fromString'](_0x296198[_0x11cc63('0x6')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x4565bd){const _0x53db63=_0x5a68bd,_0x2dced2=_0x4565bd['get']({'plain':!![]});(_0x2dced2[_0x53db63('0x16')][_0x53db63('0x4')]()==='in'||_0x2dced2[_0x53db63('0x16')][_0x53db63('0x4')]()===_0x53db63('0x2')&&!_0x2dced2['secret']&&!_[_0x53db63('0x12')](_0x2dced2[_0x53db63('0x9')]))&&_0x4b1077[_0x53db63('0x11')][_0x53db63('0xd')]({'where':{'id':_0x2dced2['MailInteractionId']}})[_0x53db63('0x8')](function(_0x4d8c93){const _0x7a8342=_0x53db63;_0x4d8c93&&_0x4d8c93[_0x7a8342('0x15')]({'lastMsgAt':_0x2dced2['createdAt'],'lastMsgDirection':_0x2dced2[_0x7a8342('0x16')][_0x7a8342('0x4')](),'lastMsgBody':_0x2dced2['body']});})[_0x53db63('0x5')](function(_0x5e69ce){const _0x3498bb=_0x53db63;console[_0x3498bb('0xa')](_0x5e69ce);});}},'charset':_0x5a68bd('0xc'),'collate':'utf8mb4_unicode_ci'});return _0x25536f;}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index 240109d..52d157b 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a416_0x5b6b=['../../config/logger','CreateMailMessage','../../rediscache','./mailMessage.socket','catch','register','raw','error','info','then','options','MailMessage','body','message','stringify'];(function(_0x1f7dfd,_0x5b6bb4){const _0x1d27f9=function(_0x2dbbd9){while(--_0x2dbbd9){_0x1f7dfd['push'](_0x1f7dfd['shift']());}};_0x1d27f9(++_0x5b6bb4);}(a416_0x5b6b,0x1bf));const a416_0x1d27=function(_0x1f7dfd,_0x5b6bb4){_0x1f7dfd=_0x1f7dfd-0x0;let _0x1d27f9=a416_0x5b6b[_0x1f7dfd];return _0x1d27f9;};const _0x5a48a3=a416_0x1d27;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5a48a3('0x3'))('rpc'),{getSocket}=require(_0x5a48a3('0x5')),socket=getSocket();require(_0x5a48a3('0x6'))[_0x5a48a3('0x8')](socket),exports['CreateMailMessage']=function(_0x2dbbd9){const _0x2494af=this;return new Promise(function(_0x4d4e67,_0x27bbca){const _0x3bf12e=a416_0x1d27;return db[_0x3bf12e('0xe')]['create'](_0x2dbbd9[_0x3bf12e('0x0')],{'raw':_0x2dbbd9[_0x3bf12e('0xd')]?_0x2dbbd9[_0x3bf12e('0xd')][_0x3bf12e('0x9')]===undefined?!![]:![]:!![]})[_0x3bf12e('0xc')](function(_0x241422){const _0xbacbf5=_0x3bf12e;logger[_0xbacbf5('0xb')](_0xbacbf5('0x4'),_0x2dbbd9),logger['debug'](_0xbacbf5('0x4'),_0x2dbbd9,JSON[_0xbacbf5('0x2')](_0x241422)),_0x4d4e67(_0x241422);})[_0x3bf12e('0x7')](function(_0xe8c506){const _0x186bb9=_0x3bf12e;logger[_0x186bb9('0xa')](_0x186bb9('0x4'),_0xe8c506[_0x186bb9('0x1')],_0x2dbbd9),_0x27bbca(_0x2494af[_0x186bb9('0xa')](0x1f4,_0xe8c506[_0x186bb9('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index 3b39648..46eaed0 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a417_0x472c=['update','mailMessage:','save','remove','length','emit'];(function(_0x404fb4,_0x472c4c){const _0x474626=function(_0x21638e){while(--_0x21638e){_0x404fb4['push'](_0x404fb4['shift']());}};_0x474626(++_0x472c4c);}(a417_0x472c,0x138));const a417_0x4746=function(_0x404fb4,_0x472c4c){_0x404fb4=_0x404fb4-0x0;let _0x474626=a417_0x472c[_0x404fb4];return _0x474626;};const _0x478fb9=a417_0x4746;'use strict';const MailMessageEvents=require('./mailMessage.events'),events=[_0x478fb9('0x2'),_0x478fb9('0x3'),_0x478fb9('0x0')];function createListener(_0x21638e,_0x2bc565){return function(_0x590390){const _0x1df88a=a417_0x4746;_0x2bc565[_0x1df88a('0x5')](_0x21638e,_0x590390);};}exports['register']=function(_0x41bb1c){const _0x48f818=_0x478fb9;for(let _0x1331e6=0x0,_0x4737a1=events[_0x48f818('0x4')];_0x1331e6<_0x4737a1;_0x1331e6++){const _0x190eaf=events[_0x1331e6],_0x36de77=createListener(_0x48f818('0x1')+_0x190eaf,_0x41bb1c);MailMessageEvents['on'](_0x190eaf,_0x36de77);}}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index e315a03..8f4cb36 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a418_0x416c=['../../components/auth/service','get','/:id/teams','removeTeams','delete','exports','express','destroy','describe','getTeams','/describe','update','Router','post','create','/:id/users','/:id/members','removeAgents','isAuthenticated','getMembers','index','addAgents','/:id','getAgents','./mailQueue.controller'];(function(_0x19eb7c,_0x416c55){const _0x3bf7b9=function(_0x2838f6){while(--_0x2838f6){_0x19eb7c['push'](_0x19eb7c['shift']());}};_0x3bf7b9(++_0x416c55);}(a418_0x416c,0xa3));const a418_0x3bf7=function(_0x19eb7c,_0x416c55){_0x19eb7c=_0x19eb7c-0x0;let _0x3bf7b9=a418_0x416c[_0x19eb7c];return _0x3bf7b9;};const _0x29be84=a418_0x3bf7;'use strict';const express=require(_0x29be84('0x12')),router=express[_0x29be84('0x18')](),auth=require(_0x29be84('0xc')),controller=require(_0x29be84('0xb'));router[_0x29be84('0xd')]('/',auth[_0x29be84('0x5')](),controller[_0x29be84('0x7')]),router[_0x29be84('0xd')](_0x29be84('0x16'),auth[_0x29be84('0x5')](),controller[_0x29be84('0x14')]),router[_0x29be84('0xd')](_0x29be84('0x9'),auth[_0x29be84('0x5')](),controller['show']),router['get'](_0x29be84('0x3'),auth[_0x29be84('0x5')](),controller[_0x29be84('0x6')]),router[_0x29be84('0xd')](_0x29be84('0xe'),auth[_0x29be84('0x5')](),controller[_0x29be84('0x15')]),router['get'](_0x29be84('0x2'),auth[_0x29be84('0x5')](),controller[_0x29be84('0xa')]),router[_0x29be84('0x0')]('/',auth[_0x29be84('0x5')](),controller[_0x29be84('0x1')]),router[_0x29be84('0x0')](_0x29be84('0xe'),auth['isAuthenticated'](),controller['addTeams']),router[_0x29be84('0x0')]('/:id/users',auth['isAuthenticated'](),controller[_0x29be84('0x8')]),router['put'](_0x29be84('0x9'),auth[_0x29be84('0x5')](),controller[_0x29be84('0x17')]),router[_0x29be84('0x10')](_0x29be84('0x9'),auth['isAuthenticated'](),controller[_0x29be84('0x13')]),router[_0x29be84('0x10')](_0x29be84('0xe'),auth[_0x29be84('0x5')](),controller[_0x29be84('0xf')]),router[_0x29be84('0x10')](_0x29be84('0x2'),auth[_0x29be84('0x5')](),controller[_0x29be84('0x4')]),module[_0x29be84('0x11')]=router; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index 08b60f2..ee8adb6 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a419_0x5dbd=['beepall','sequelize','STRING','name','ENUM','exports'];(function(_0xd8b8e6,_0x5dbdc8){const _0x56594f=function(_0x157c3b){while(--_0x157c3b){_0xd8b8e6['push'](_0xd8b8e6['shift']());}};_0x56594f(++_0x5dbdc8);}(a419_0x5dbd,0x172));const a419_0x5659=function(_0xd8b8e6,_0x5dbdc8){_0xd8b8e6=_0xd8b8e6-0x0;let _0x56594f=a419_0x5dbd[_0xd8b8e6];return _0x56594f;};const _0x56773f=a419_0x5659;'use strict';const Sequelize=require(_0x56773f('0x3'));module[_0x56773f('0x1')]={'name':{'type':Sequelize[_0x56773f('0x4')],'unique':_0x56773f('0x5'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x56773f('0x4')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x56773f('0x0')]('rrmemory',_0x56773f('0x2'),'roundrobin')}}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index b0c59a9..9cf93c5 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a420_0x26c4=['offset','addAgents','limit','removeAgents','Team','toString','count','order','Content-Range','keys','userProfileId','findOne','get','User','forEach','isEmpty','findAndCountAll','rawAttributes','merge','then','VIRTUAL','updatedAt','getTeams','filter','where','../../config/logger','update','end','ut.TeamId\x20=\x20tq.TeamId','sendStatus','compact','./mailQueue.socket','all','user_has_teams','../../rediscache','interface','voicePause','push','set','type','length','stack','format','MailQueues','%s/%s','query','json','status','ids','index','join','fieldName','sort','model','mailPause','api','team_has_mail_queues','../../components/parsers/qs','transaction','sequelize','UserId','TeamId','filters','../../mysqldb','key','show','attributes','undefined','name','emit','intersection','map','autoAssociation','userMailQueue:save','MailQueueId\x20=\x20?','getAgents','send','userMailQueue:remove','UserMailQueue','value','squel','union','include','error','UserProfileSection','create','like','rows','field','options','createdAt','includeAll','describe','catch','pick','UserProfileResource','addTeams','findOrCreate','online','params','nolimit','fields','util','includes','MailQueue','findAll','user','each','destroy','from','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','Agents','clone','removeTeams'];(function(_0x507ffb,_0x26c42e){const _0x348ea5=function(_0x283c3){while(--_0x283c3){_0x507ffb['push'](_0x507ffb['shift']());}};_0x348ea5(++_0x26c42e);}(a420_0x26c4,0x88));const a420_0x348e=function(_0x507ffb,_0x26c42e){_0x507ffb=_0x507ffb-0x0;let _0x348ea5=a420_0x26c4[_0x507ffb];return _0x348ea5;};const _0x5740d0=a420_0x348e;'use strict';const util=require(_0x5740d0('0x51')),_=require('lodash'),squel=require(_0x5740d0('0x3b')),qs=require(_0x5740d0('0x24')),logger=require(_0x5740d0('0x4'))(_0x5740d0('0x22')),{getSocket}=require(_0x5740d0('0xd')),socket=getSocket(),db=require(_0x5740d0('0x2a'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x5740d0('0xa'))['register'](socket);function respondWithStatusCode(_0x283c3,_0x182e35){return _0x182e35=_0x182e35||0xcc,function(_0x4f2b0f){const _0x52fb15=a420_0x348e;if(_0x4f2b0f)return _0x283c3['sendStatus'](_0x182e35);return _0x283c3['status'](_0x182e35)[_0x52fb15('0x6')]();};}function respondWithResult(_0x4f4d2c,_0x128f6d){return _0x128f6d=_0x128f6d||0xc8,function(_0x47d970){const _0x476313=a420_0x348e;if(_0x47d970)return _0x4f4d2c[_0x476313('0x1a')](_0x128f6d)[_0x476313('0x19')](_0x47d970);};}function respondWithFilteredResult(_0x5250db,_0x132e75){return function(_0x32c10a){const _0x567c7e=a420_0x348e;if(_0x32c10a){const _0xdb4457=_0x32c10a[_0x567c7e('0x64')],_0x21b735=_0x132e75[_0x567c7e('0x5e')];let _0x40025c=_0x132e75[_0x567c7e('0x5e')]+_0x132e75['limit'],_0x5e29cb;return _0x40025c>=_0xdb4457?(_0x40025c=_0xdb4457,_0x5e29cb=0xc8):_0x5e29cb=0xce,_0x5250db[_0x567c7e('0x1a')](_0x5e29cb),_0x5250db[_0x567c7e('0x11')](_0x567c7e('0x66'),_0x21b735+'-'+_0x40025c+'/'+_0xdb4457)[_0x567c7e('0x19')](_0x32c10a);}return null;};}function saveUpdates(_0x46d41a){return function(_0x2fb15a){const _0xe852cb=a420_0x348e;if(_0x2fb15a)return _0x2fb15a[_0xe852cb('0x5')](_0x46d41a)['then'](function(_0x577768){return _0x577768;});return null;};}function removeEntity(_0x417a55){return function(_0x546d3f){const _0x453a02=a420_0x348e;if(_0x546d3f)return _0x546d3f[_0x453a02('0x57')]()[_0x453a02('0x71')](function(){const _0x5544db=_0x453a02,_0x20b448=_0x546d3f[_0x5544db('0x6a')]({'plain':!![]}),_0x26bf17='MailQueues';return db[_0x5544db('0x4a')][_0x5544db('0x57')]({'where':{'type':_0x26bf17,'resourceId':_0x20b448['id']}})[_0x5544db('0x71')](function(){return _0x546d3f;});})[_0x453a02('0x71')](function(){const _0x1bfc4e=_0x453a02;_0x417a55[_0x1bfc4e('0x1a')](0xcc)['end']();});};}function handleEntityNotFound(_0x622b30){return function(_0x1832e7){const _0x1d38d5=a420_0x348e;return!_0x1832e7&&_0x622b30[_0x1d38d5('0x8')](0x194),_0x1832e7;};}function handleError(_0xd0e51e,_0x3d74d8){return _0x3d74d8=_0x3d74d8||0x1f4,function(_0x5364bc){const _0x1a541f=a420_0x348e;logger[_0x1a541f('0x3e')](_0x5364bc[_0x1a541f('0x14')]),_0x5364bc[_0x1a541f('0x2f')]&&delete _0x5364bc['name'],_0xd0e51e['status'](_0x3d74d8)[_0x1a541f('0x37')](_0x5364bc);};}exports[_0x5740d0('0x1c')]=function(_0x24b212,_0x15081d){const _0x39b72b=_0x5740d0;let _0x35acfa={};const _0x25862a={},_0x233098={'count':0x0,'rows':[]},_0x3c6bbb=_[_0x39b72b('0x32')](db[_0x39b72b('0x53')][_0x39b72b('0x6f')],function(_0x5dc7c2){const _0x598226=_0x39b72b;return{'name':_0x5dc7c2[_0x598226('0x1e')],'type':_0x5dc7c2[_0x598226('0x12')][_0x598226('0x2b')]};});_0x25862a[_0x39b72b('0x20')]=_['map'](_0x3c6bbb,'name'),_0x25862a[_0x39b72b('0x18')]=_[_0x39b72b('0x67')](_0x24b212[_0x39b72b('0x18')]),_0x25862a[_0x39b72b('0x29')]=_[_0x39b72b('0x31')](_0x25862a['model'],_0x25862a[_0x39b72b('0x18')]),_0x35acfa[_0x39b72b('0x2d')]=_[_0x39b72b('0x31')](_0x25862a['model'],qs['fields'](_0x24b212['query'][_0x39b72b('0x50')])),_0x35acfa['attributes']=_0x35acfa[_0x39b72b('0x2d')][_0x39b72b('0x13')]?_0x35acfa[_0x39b72b('0x2d')]:_0x25862a[_0x39b72b('0x20')];typeof _0x24b212['query'][_0x39b72b('0x4f')]===_0x39b72b('0x2e')&&(_0x35acfa['limit']=qs[_0x39b72b('0x60')](_0x24b212['query']['limit']),_0x35acfa[_0x39b72b('0x5e')]=qs[_0x39b72b('0x5e')](_0x24b212[_0x39b72b('0x18')][_0x39b72b('0x5e')]));_0x35acfa['order']=qs['sort'](_0x24b212[_0x39b72b('0x18')][_0x39b72b('0x1f')]),_0x35acfa[_0x39b72b('0x3')]=qs[_0x39b72b('0x29')](_[_0x39b72b('0x49')](_0x24b212[_0x39b72b('0x18')],_0x25862a[_0x39b72b('0x29')]),_0x3c6bbb);_0x24b212[_0x39b72b('0x18')][_0x39b72b('0x2')]&&(_0x35acfa[_0x39b72b('0x3')]=_[_0x39b72b('0x70')](_0x35acfa[_0x39b72b('0x3')],{[Op['or']]:_[_0x39b72b('0x32')](_0x3c6bbb,function(_0x4b506e){const _0x4b0b0d=_0x39b72b;if(_0x4b506e[_0x4b0b0d('0x12')]!==_0x4b0b0d('0x72')){const _0xd871f7={};return _0xd871f7[_0x4b506e[_0x4b0b0d('0x2f')]]={[Op[_0x4b0b0d('0x41')]]:'%'+_0x24b212[_0x4b0b0d('0x18')]['filter']+'%'},_0xd871f7;}})}));_0x35acfa=_[_0x39b72b('0x70')]({},_0x35acfa,_0x24b212[_0x39b72b('0x44')]);const _0x357440={'where':_0x35acfa['where']};return db[_0x39b72b('0x53')][_0x39b72b('0x64')](_0x357440)[_0x39b72b('0x71')](function(_0x2bc9e2){const _0x3c6d62=_0x39b72b;return _0x233098[_0x3c6d62('0x64')]=_0x2bc9e2,_0x24b212[_0x3c6d62('0x18')][_0x3c6d62('0x46')]&&(_0x35acfa[_0x3c6d62('0x3d')]=[{'all':!![]}]),db[_0x3c6d62('0x53')][_0x3c6d62('0x54')](_0x35acfa);})['then'](function(_0x22e467){const _0x555798=_0x39b72b;return _0x233098[_0x555798('0x42')]=_0x22e467,_0x233098;})[_0x39b72b('0x71')](respondWithFilteredResult(_0x15081d,_0x35acfa))[_0x39b72b('0x48')](handleError(_0x15081d,null));},exports[_0x5740d0('0x2c')]=function(_0x403a6f,_0x389c36){const _0x288b0d=_0x5740d0;let _0x85a05b={'raw':!![],'where':{'id':_0x403a6f[_0x288b0d('0x4e')]['id']}};const _0x5ad53b={};return _0x5ad53b[_0x288b0d('0x20')]=_['keys'](db[_0x288b0d('0x53')][_0x288b0d('0x6f')]),_0x5ad53b['query']=_['keys'](_0x403a6f[_0x288b0d('0x18')]),_0x5ad53b['filters']=_[_0x288b0d('0x31')](_0x5ad53b[_0x288b0d('0x20')],_0x5ad53b['query']),_0x85a05b[_0x288b0d('0x2d')]=_[_0x288b0d('0x31')](_0x5ad53b['model'],qs[_0x288b0d('0x50')](_0x403a6f['query']['fields'])),_0x85a05b[_0x288b0d('0x2d')]=_0x85a05b[_0x288b0d('0x2d')]['length']?_0x85a05b[_0x288b0d('0x2d')]:_0x5ad53b[_0x288b0d('0x20')],_0x403a6f[_0x288b0d('0x18')]['includeAll']&&(_0x85a05b[_0x288b0d('0x3d')]=[{'all':!![]}]),_0x85a05b=_[_0x288b0d('0x70')]({},_0x85a05b,_0x403a6f[_0x288b0d('0x44')]),db[_0x288b0d('0x53')][_0x288b0d('0x69')](_0x85a05b)[_0x288b0d('0x71')](handleEntityNotFound(_0x389c36,null))[_0x288b0d('0x71')](respondWithResult(_0x389c36,null))['catch'](handleError(_0x389c36,null));},exports[_0x5740d0('0x40')]=function(_0x4ef70e,_0x1621fa){const _0x51f543=_0x5740d0;return db[_0x51f543('0x53')][_0x51f543('0x40')](_0x4ef70e[_0x51f543('0x59')],{})[_0x51f543('0x71')](function(_0x2ceb71){const _0x483a11=_0x51f543,_0x14102a=_0x4ef70e[_0x483a11('0x55')][_0x483a11('0x6a')]({'plain':!![]});if(!_0x14102a)throw new Error(_0x483a11('0x5a'));if(_0x14102a['role']===_0x483a11('0x55')){const _0x6c3f30=_0x2ceb71[_0x483a11('0x6a')]({'plain':!![]}),_0x1799f9=_0x483a11('0x16');return db[_0x483a11('0x3f')][_0x483a11('0x69')]({'where':{'name':_0x1799f9,'userProfileId':_0x14102a[_0x483a11('0x68')]},'raw':!![]})[_0x483a11('0x71')](function(_0x58e070){const _0x4f91df=_0x483a11;return _0x58e070&&_0x58e070[_0x4f91df('0x33')]===0x0?db['UserProfileResource']['create']({'name':_0x6c3f30[_0x4f91df('0x2f')],'resourceId':_0x6c3f30['id'],'type':_0x58e070[_0x4f91df('0x2f')],'sectionId':_0x58e070['id']},{})['then'](function(){return _0x2ceb71;}):_0x2ceb71;})[_0x483a11('0x48')](function(_0x3b95b6){const _0x3f40cf=_0x483a11;logger[_0x3f40cf('0x3e')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3b95b6);throw _0x3b95b6;});}return _0x2ceb71;})[_0x51f543('0x71')](respondWithResult(_0x1621fa,0xc9))[_0x51f543('0x48')](handleError(_0x1621fa,null));},exports[_0x5740d0('0x5')]=function(_0x11ea68,_0x13795c){const _0x1cf64c=_0x5740d0;return _0x11ea68['body']['id']&&delete _0x11ea68[_0x1cf64c('0x59')]['id'],db[_0x1cf64c('0x53')]['findOne']({'where':{'id':_0x11ea68[_0x1cf64c('0x4e')]['id']}})[_0x1cf64c('0x71')](handleEntityNotFound(_0x13795c,null))[_0x1cf64c('0x71')](saveUpdates(_0x11ea68[_0x1cf64c('0x59')],null))[_0x1cf64c('0x71')](respondWithResult(_0x13795c,null))[_0x1cf64c('0x48')](handleError(_0x13795c,null));},exports[_0x5740d0('0x57')]=function(_0x378bb0,_0x5a81d9){const _0x4d0aee=_0x5740d0;return db[_0x4d0aee('0x53')][_0x4d0aee('0x69')]({'where':{'id':_0x378bb0[_0x4d0aee('0x4e')]['id']}})['then'](handleEntityNotFound(_0x5a81d9,null))[_0x4d0aee('0x71')](removeEntity(_0x5a81d9,null))[_0x4d0aee('0x48')](handleError(_0x5a81d9,null));},exports[_0x5740d0('0x47')]=function(_0x15c77a,_0x10b991){const _0x5e2ba9=_0x5740d0;return db[_0x5e2ba9('0x53')]['describe']()[_0x5e2ba9('0x71')](respondWithResult(_0x10b991,null))[_0x5e2ba9('0x48')](handleError(_0x10b991,null));},exports['getMembers']=function(_0x2ce4f7,_0x3fa054){const _0x383b=_0x5740d0;let _0x3a3769={'raw':!![],'where':{}};const _0x1e46d1={};let _0x25cad7;return db[_0x383b('0x53')]['findOne']({'where':{'id':_0x2ce4f7[_0x383b('0x4e')]['id']}})[_0x383b('0x71')](handleEntityNotFound(_0x3fa054,null))[_0x383b('0x71')](function(_0x5d9767){const _0x1a21c7=_0x383b;if(_0x5d9767)return _0x25cad7=_0x5d9767[_0x1a21c7('0x6a')]({'plain':!![]}),_0x1e46d1[_0x1a21c7('0x20')]=_[_0x1a21c7('0x67')](db['UserMailQueue']['rawAttributes']),_0x1e46d1[_0x1a21c7('0x18')]=_['keys'](_0x2ce4f7[_0x1a21c7('0x18')]),_0x1e46d1[_0x1a21c7('0x29')]=_[_0x1a21c7('0x31')](_0x1e46d1[_0x1a21c7('0x20')],_0x1e46d1[_0x1a21c7('0x18')]),_0x3a3769[_0x1a21c7('0x2d')]=_[_0x1a21c7('0x31')](_0x1e46d1['model'],qs[_0x1a21c7('0x50')](_0x2ce4f7[_0x1a21c7('0x18')][_0x1a21c7('0x50')])),_0x3a3769[_0x1a21c7('0x2d')]=_0x3a3769['attributes']['length']?_0x3a3769[_0x1a21c7('0x2d')]:_0x1e46d1[_0x1a21c7('0x20')],typeof _0x2ce4f7['query']['nolimit']===_0x1a21c7('0x2e')&&(_0x3a3769[_0x1a21c7('0x60')]=qs[_0x1a21c7('0x60')](_0x2ce4f7[_0x1a21c7('0x18')][_0x1a21c7('0x60')]),_0x3a3769['offset']=qs['offset'](_0x2ce4f7['query'][_0x1a21c7('0x5e')])),_0x3a3769[_0x1a21c7('0x65')]=qs[_0x1a21c7('0x1f')](_0x2ce4f7[_0x1a21c7('0x18')][_0x1a21c7('0x1f')]),_0x3a3769[_0x1a21c7('0x3')]=qs['filters'](_[_0x1a21c7('0x49')](_0x2ce4f7[_0x1a21c7('0x18')],_0x1e46d1[_0x1a21c7('0x29')])),_0x3a3769[_0x1a21c7('0x3')]['MailQueueId']=_0x5d9767['id'],_0x2ce4f7[_0x1a21c7('0x18')][_0x1a21c7('0x2')]&&(_0x3a3769[_0x1a21c7('0x3')]=_[_0x1a21c7('0x70')](_0x3a3769[_0x1a21c7('0x3')],{[Op['or']]:_[_0x1a21c7('0x32')](_0x3a3769[_0x1a21c7('0x2d')],function(_0xff51b9){const _0x1cf637=_0x1a21c7,_0x180951={};return _0x180951[_0xff51b9]={[Op[_0x1cf637('0x41')]]:'%'+_0x2ce4f7[_0x1cf637('0x18')]['filter']+'%'},_0x180951;})})),_0x3a3769=_[_0x1a21c7('0x70')]({},_0x3a3769,_0x2ce4f7['options']),db[_0x1a21c7('0x39')]['findAll'](_0x3a3769);})[_0x383b('0x71')](function(_0x3f607f){const _0x9b234b=_0x383b;if(_0x3f607f)return db['User'][_0x9b234b('0x6e')]({'where':{'id':_[_0x9b234b('0x32')](_0x3f607f,_0x9b234b('0x27')),'role':'agent'},'attributes':['id',_0x9b234b('0x2f'),_0x9b234b('0x21'),_0x9b234b('0x0'),'createdAt']});})[_0x383b('0x71')](function(_0x570f0c){const _0x20be37=_0x383b;return _0x570f0c?{'count':_0x570f0c[_0x20be37('0x64')],'rows':_[_0x20be37('0x32')](_0x570f0c[_0x20be37('0x42')],function(_0x5caace){const _0x29de36=_0x20be37;return{'membername':_0x5caace[_0x29de36('0x2f')],'UserId':_0x5caace['id'],'queue_name':_0x25cad7[_0x29de36('0x2f')],'MailQueueId':_0x25cad7['id'],'interface':util[_0x29de36('0x15')](_0x29de36('0x17'),'SIP',_0x5caace[_0x29de36('0x2f')]),'penalty':0x0,'paused':_0x5caace[_0x29de36('0x21')],'createdAt':_0x5caace[_0x29de36('0x45')],'updatedAt':_0x5caace['updatedAt']};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x3fa054,_0x3a3769))[_0x383b('0x48')](handleError(_0x3fa054,null));},exports[_0x5740d0('0x1')]=function(_0x3d244c,_0x3e6200){const _0xf4ccad=_0x5740d0;let _0x27e9bf={};const _0x765c87={};let _0x50bd69,_0xb0fe47;return db[_0xf4ccad('0x53')]['findOne']({'where':{'id':_0x3d244c[_0xf4ccad('0x4e')]['id']}})[_0xf4ccad('0x71')](handleEntityNotFound(_0x3e6200,null))[_0xf4ccad('0x71')](function(_0x5d0972){const _0x1166c9=_0xf4ccad;if(_0x5d0972)return _0x50bd69=_0x5d0972,_0x765c87[_0x1166c9('0x20')]=_[_0x1166c9('0x67')](db[_0x1166c9('0x62')][_0x1166c9('0x6f')]),_0x765c87[_0x1166c9('0x18')]=_[_0x1166c9('0x67')](_0x3d244c['query']),_0x765c87[_0x1166c9('0x29')]=_['intersection'](_0x765c87[_0x1166c9('0x20')],_0x765c87[_0x1166c9('0x18')]),_0x27e9bf[_0x1166c9('0x2d')]=_[_0x1166c9('0x31')](_0x765c87[_0x1166c9('0x20')],qs['fields'](_0x3d244c[_0x1166c9('0x18')]['fields'])),_0x27e9bf[_0x1166c9('0x2d')]=_0x27e9bf['attributes']['length']?_0x27e9bf[_0x1166c9('0x2d')]:_0x765c87[_0x1166c9('0x20')],_0x27e9bf[_0x1166c9('0x65')]=qs[_0x1166c9('0x1f')](_0x3d244c[_0x1166c9('0x18')][_0x1166c9('0x1f')]),_0x27e9bf[_0x1166c9('0x3')]=qs['filters'](_['pick'](_0x3d244c[_0x1166c9('0x18')],_0x765c87[_0x1166c9('0x29')])),_0x3d244c['query'][_0x1166c9('0x2')]&&(_0x27e9bf[_0x1166c9('0x3')]=_[_0x1166c9('0x70')](_0x27e9bf[_0x1166c9('0x3')],{[Op['or']]:_[_0x1166c9('0x32')](_0x27e9bf['attributes'],function(_0x3c41bf){const _0x1659eb=_0x1166c9,_0x44984d={};return _0x44984d[_0x3c41bf]={[Op[_0x1659eb('0x41')]]:'%'+_0x3d244c[_0x1659eb('0x18')]['filter']+'%'},_0x44984d;})})),_0x27e9bf=_[_0x1166c9('0x70')]({},_0x27e9bf,_0x3d244c[_0x1166c9('0x44')]),_0x50bd69[_0x1166c9('0x1')](_0x27e9bf);})['then'](function(_0x36de9d){const _0x4cf1da=_0xf4ccad;if(_0x36de9d)return _0xb0fe47=_0x36de9d['length'],typeof _0x3d244c[_0x4cf1da('0x18')]['nolimit']===_0x4cf1da('0x2e')&&(_0x27e9bf[_0x4cf1da('0x60')]=qs[_0x4cf1da('0x60')](_0x3d244c['query'][_0x4cf1da('0x60')]),_0x27e9bf[_0x4cf1da('0x5e')]=qs['offset'](_0x3d244c['query'][_0x4cf1da('0x5e')])),_0x50bd69[_0x4cf1da('0x1')](_0x27e9bf);})[_0xf4ccad('0x71')](function(_0x4e3fd6){if(_0x4e3fd6)return _0x4e3fd6?{'count':_0xb0fe47,'rows':_0x4e3fd6}:null;})[_0xf4ccad('0x71')](respondWithResult(_0x3e6200,null))[_0xf4ccad('0x48')](handleError(_0x3e6200,null));},exports[_0x5740d0('0x4b')]=function(_0x3f778e,_0x5b45d0){const _0xf1f4b8=_0x5740d0,_0x20647a=_0x3f778e[_0xf1f4b8('0x59')]['ids'];return db[_0xf1f4b8('0x62')][_0xf1f4b8('0x54')]({'where':{'id':_0x20647a},'attributes':['id'],'include':[{'model':db[_0xf1f4b8('0x6b')],'as':_0xf1f4b8('0x5b'),'attributes':['id',_0xf1f4b8('0x2f'),_0xf1f4b8('0x4d'),_0xf1f4b8('0xf'),_0xf1f4b8('0xe')],'raw':!![]}]})[_0xf1f4b8('0x71')](function(_0x5235ff){const _0x4fdf7f=_0xf1f4b8;if(_0x5235ff){const _0x46a162=_['flatMap'](_0x5235ff,function(_0x57d168){const _0x2c253a=a420_0x348e,_0x54ae92=_0x57d168['get']({'plain':!![]});return _0x54ae92[_0x2c253a('0x5b')];});return db[_0x4fdf7f('0x53')][_0x4fdf7f('0x69')]({'where':{'id':_0x3f778e[_0x4fdf7f('0x4e')]['id']}})[_0x4fdf7f('0x71')](function(_0x2d7d91){const _0x25f58b=_0x4fdf7f;return db[_0x25f58b('0x26')]['transaction'](function(_0x2ba408){const _0x2ec926=_0x25f58b;return _0x2d7d91[_0x2ec926('0x4b')](_0x20647a,{'transaction':_0x2ba408})[_0x2ec926('0x71')](function(){const _0x40cee2=_0x2ec926;return Promise[_0x40cee2('0x56')](_0x46a162,function(_0x3a625b){const _0x2e0bec=_0x40cee2;return db['UserMailQueue'][_0x2e0bec('0x4c')]({'where':{'UserId':_0x3a625b['id'],'MailQueueId':_0x3f778e[_0x2e0bec('0x4e')]['id']},'transaction':_0x2ba408});});})['then'](function(){const _0x3c9e08=_0x2ec926;_0x46a162[_0x3c9e08('0x6c')](function(_0x507efc){const _0x333201=_0x3c9e08;socket[_0x333201('0x30')](_0x333201('0x34'),{'UserId':_0x507efc['id'],'MailQueueId':_0x2d7d91['id']});});});});});}})[_0xf1f4b8('0x71')](respondWithStatusCode(_0x5b45d0,null))[_0xf1f4b8('0x48')](handleError(_0x5b45d0,null));},exports[_0x5740d0('0x5d')]=function(_0x3c2f4e,_0x34bba4){const _0x5ccd53=_0x5740d0;return db[_0x5ccd53('0x62')][_0x5ccd53('0x54')]({'where':{'id':_0x3c2f4e[_0x5ccd53('0x18')][_0x5ccd53('0x1b')]},'attributes':['id'],'include':[{'model':db[_0x5ccd53('0x6b')],'as':_0x5ccd53('0x5b'),'attributes':['id'],'raw':!![]}]})[_0x5ccd53('0x71')](handleEntityNotFound(_0x34bba4,null))[_0x5ccd53('0x71')](function(_0x3ededa){const _0x2f7235=_0x5ccd53,_0x295a91=_[_0x2f7235('0x32')](_0x3ededa,'id');let _0x1d8623=[];const _0x5a5bfb=[],_0xbf9a44=squel['select']();_0xbf9a44[_0x2f7235('0x43')]('tq.TeamId')[_0x2f7235('0x58')](_0x2f7235('0x23'),'tq')[_0x2f7235('0x1d')](_0x2f7235('0xc'),'ut',_0x2f7235('0x7'))['where'](_0x2f7235('0x35'),_0x3c2f4e[_0x2f7235('0x4e')]['id']);for(let _0x117768=0x0;_0x117768<_0x3ededa[_0x2f7235('0x13')];_0x117768+=0x1){const _0x5438be=_0x3ededa[_0x117768];for(let _0x2126ab=0x0;_0x2126ab<_0x5438be[_0x2f7235('0x5b')][_0x2f7235('0x13')];_0x2126ab+=0x1){const _0x118979=_0x5438be['Agents'][_0x2126ab],_0x255e17=_0xbf9a44[_0x2f7235('0x5c')]();_0x255e17[_0x2f7235('0x3')]('ut.UserId\x20=\x20?',_0x118979['id']),_0x5a5bfb[_0x2f7235('0x10')](db[_0x2f7235('0x26')][_0x2f7235('0x18')](_0x255e17[_0x2f7235('0x63')](),{'type':QueryTypes['SELECT']})[_0x2f7235('0x71')](function(_0x1bed5f){const _0x4b205a=_0x2f7235;if(_0x1bed5f[_0x4b205a('0x13')]===0x1)return _0x118979['id'];else{const _0x3304a7=_['every'](_[_0x4b205a('0x32')](_0x1bed5f,_0x4b205a('0x28')),function(_0x1959e2){const _0x3ebbe5=_0x4b205a;return _[_0x3ebbe5('0x52')](_0x295a91,_0x1959e2);});if(_0x3304a7)return _0x118979['id'];}}));}}return Promise[_0x2f7235('0xb')](_0x5a5bfb)[_0x2f7235('0x71')](function(_0x3f38ac){const _0xe5a408=_0x2f7235;return _0x1d8623=_(_0x1d8623)[_0xe5a408('0x3c')](_0x3f38ac)[_0xe5a408('0x9')]()[_0xe5a408('0x3a')](),db[_0xe5a408('0x53')][_0xe5a408('0x69')]({'where':{'id':_0x3c2f4e[_0xe5a408('0x4e')]['id']}})[_0xe5a408('0x71')](function(_0x374221){const _0x33d1f2=_0xe5a408;return db[_0x33d1f2('0x26')][_0x33d1f2('0x25')](function(_0x18f49a){const _0x472d01=_0x33d1f2;return _0x374221[_0x472d01('0x5d')](_0x3c2f4e[_0x472d01('0x18')][_0x472d01('0x1b')],{'transaction':_0x18f49a})[_0x472d01('0x71')](function(){const _0x18d692=_0x472d01;if(!_[_0x18d692('0x6d')](_0x1d8623))return _0x374221[_0x18d692('0x61')](_0x1d8623,{'transaction':_0x18f49a});})[_0x472d01('0x71')](function(){_0x1d8623['forEach'](function(_0x484638){const _0x15263a=a420_0x348e;socket[_0x15263a('0x30')](_0x15263a('0x38'),{'UserId':_0x484638,'MailQueueId':_0x374221['id']});});});});});});})[_0x5ccd53('0x71')](respondWithStatusCode(_0x34bba4,null))['catch'](handleError(_0x34bba4,null));},exports[_0x5740d0('0x5f')]=function(_0x4c7585,_0x3127ca){const _0x3d591c=_0x5740d0;return db[_0x3d591c('0x53')][_0x3d591c('0x69')]({'where':{'id':_0x4c7585['params']['id']}})[_0x3d591c('0x71')](function(_0x57171d){const _0x494573=_0x3d591c;if(_0x57171d)return _0x57171d[_0x494573('0x5f')](_0x4c7585['body'][_0x494573('0x1b')],{'through':_['omit'](_0x4c7585[_0x494573('0x59')],[_0x494573('0x1b'),'id'])})[_0x494573('0x71')](function(_0x309e0e){const _0xb9083a=_0x494573;for(let _0x418bf1=0x0;_0x418bf1<_0x4c7585[_0xb9083a('0x59')][_0xb9083a('0x1b')][_0xb9083a('0x13')];_0x418bf1+=0x1){socket[_0xb9083a('0x30')]('userMailQueue:save',{'UserId':_0x4c7585[_0xb9083a('0x59')]['ids'][_0x418bf1],'MailQueueId':_0x4c7585['params']['id']});}return _0x309e0e;});})[_0x3d591c('0x71')](respondWithResult(_0x3127ca,null))[_0x3d591c('0x48')](handleError(_0x3127ca,null));},exports[_0x5740d0('0x61')]=function(_0x5c3ea9,_0x4af3f0){const _0x5bc4e8=_0x5740d0;return db[_0x5bc4e8('0x53')][_0x5bc4e8('0x69')]({'where':{'id':_0x5c3ea9['params']['id']}})[_0x5bc4e8('0x71')](handleEntityNotFound(_0x4af3f0,null))[_0x5bc4e8('0x71')](function(_0x1d033b){const _0x505a58=_0x5bc4e8;if(_0x1d033b)return _0x1d033b[_0x505a58('0x61')](_0x5c3ea9[_0x505a58('0x18')]['ids'])['then'](function(){const _0x8fe727=_0x505a58;if(_['isArray'](_0x5c3ea9['query'][_0x8fe727('0x1b')]))for(let _0x5230b4=0x0;_0x5230b4<_0x5c3ea9[_0x8fe727('0x18')][_0x8fe727('0x1b')][_0x8fe727('0x13')];_0x5230b4+=0x1){socket[_0x8fe727('0x30')](_0x8fe727('0x38'),{'UserId':Number(_0x5c3ea9['query']['ids'][_0x5230b4]),'MailQueueId':Number(_0x5c3ea9['params']['id'])});}else socket[_0x8fe727('0x30')](_0x8fe727('0x38'),{'UserId':Number(_0x5c3ea9['query'][_0x8fe727('0x1b')]),'MailQueueId':Number(_0x5c3ea9['params']['id'])});});})[_0x5bc4e8('0x71')](respondWithStatusCode(_0x4af3f0,null))['catch'](handleError(_0x4af3f0,null));},exports['getAgents']=function(_0x18215b,_0x81d268){const _0x351fd3=_0x5740d0;let _0x1df1a7={};const _0x42785c={};let _0x22bc2c,_0x393a64;return db[_0x351fd3('0x53')]['findOne']({'where':{'id':_0x18215b[_0x351fd3('0x4e')]['id']}})['then'](handleEntityNotFound(_0x81d268,null))[_0x351fd3('0x71')](function(_0x265f1e){const _0x4f53c3=_0x351fd3;if(_0x265f1e)return _0x22bc2c=_0x265f1e,_0x42785c[_0x4f53c3('0x20')]=_['keys'](db['User'][_0x4f53c3('0x6f')]),_0x42785c[_0x4f53c3('0x18')]=_[_0x4f53c3('0x67')](_0x18215b[_0x4f53c3('0x18')]),_0x42785c[_0x4f53c3('0x29')]=_['intersection'](_0x42785c['model'],_0x42785c[_0x4f53c3('0x18')]),_0x1df1a7[_0x4f53c3('0x2d')]=_['intersection'](_0x42785c[_0x4f53c3('0x20')],qs[_0x4f53c3('0x50')](_0x18215b[_0x4f53c3('0x18')][_0x4f53c3('0x50')])),_0x1df1a7['attributes']=_0x1df1a7[_0x4f53c3('0x2d')][_0x4f53c3('0x13')]?_0x1df1a7[_0x4f53c3('0x2d')]:_0x42785c[_0x4f53c3('0x20')],_0x1df1a7[_0x4f53c3('0x65')]=qs['sort'](_0x18215b[_0x4f53c3('0x18')][_0x4f53c3('0x1f')]),_0x1df1a7['where']=qs['filters'](_[_0x4f53c3('0x49')](_0x18215b[_0x4f53c3('0x18')],_0x42785c[_0x4f53c3('0x29')])),_0x18215b['query']['filter']&&(_0x1df1a7[_0x4f53c3('0x3')]=_[_0x4f53c3('0x70')](_0x1df1a7[_0x4f53c3('0x3')],{[Op['or']]:_[_0x4f53c3('0x32')](_0x1df1a7[_0x4f53c3('0x2d')],function(_0x1c150e){const _0x2fdde8=_0x4f53c3,_0x3a700a={};return _0x3a700a[_0x1c150e]={[Op[_0x2fdde8('0x41')]]:'%'+_0x18215b[_0x2fdde8('0x18')]['filter']+'%'},_0x3a700a;})})),_0x1df1a7=_[_0x4f53c3('0x70')]({},_0x1df1a7,_0x18215b[_0x4f53c3('0x44')]),_0x22bc2c[_0x4f53c3('0x36')](_0x1df1a7);})[_0x351fd3('0x71')](function(_0xabca97){const _0x5c8ad7=_0x351fd3;if(_0xabca97)return _0x393a64=_0xabca97[_0x5c8ad7('0x13')],typeof _0x18215b[_0x5c8ad7('0x18')][_0x5c8ad7('0x4f')]===_0x5c8ad7('0x2e')&&(_0x1df1a7[_0x5c8ad7('0x60')]=qs['limit'](_0x18215b[_0x5c8ad7('0x18')][_0x5c8ad7('0x60')]),_0x1df1a7[_0x5c8ad7('0x5e')]=qs[_0x5c8ad7('0x5e')](_0x18215b[_0x5c8ad7('0x18')][_0x5c8ad7('0x5e')])),_0x22bc2c['getAgents'](_0x1df1a7);})[_0x351fd3('0x71')](function(_0x20df7d){if(_0x20df7d)return _0x20df7d?{'count':_0x393a64,'rows':_0x20df7d}:null;})[_0x351fd3('0x71')](respondWithResult(_0x81d268,null))[_0x351fd3('0x48')](handleError(_0x81d268,null));}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index ca4879f..dfe9130 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a421_0xc14c=['events','remove','update','setMaxListeners','exports','addHook','emit','undefined','MailQueue','save'];(function(_0x25bbe6,_0xc14c67){const _0x4d57d4=function(_0x57e3c0){while(--_0x57e3c0){_0x25bbe6['push'](_0x25bbe6['shift']());}};_0x4d57d4(++_0xc14c67);}(a421_0xc14c,0x140));const a421_0x4d57=function(_0x25bbe6,_0xc14c67){_0x25bbe6=_0x25bbe6-0x0;let _0x4d57d4=a421_0xc14c[_0x25bbe6];return _0x4d57d4;};const _0x4ae44d=a421_0x4d57;'use strict';const EventEmitter=require(_0x4ae44d('0x0')),MailQueue=require('../../mysqldb')['db'][_0x4ae44d('0x8')],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x4ae44d('0x3')](0x0);const events={'afterCreate':_0x4ae44d('0x9'),'afterUpdate':_0x4ae44d('0x2'),'afterDestroy':_0x4ae44d('0x1')};function emitEvent(_0x57e3c0){return function(_0x46819b){const _0x27ceb1=a421_0x4d57;MailQueueEvents[_0x27ceb1('0x6')](_0x57e3c0+':'+_0x46819b['id'],_0x46819b),MailQueueEvents[_0x27ceb1('0x6')](_0x57e3c0,_0x46819b);};}for(const e in events){if(typeof events[e]!==_0x4ae44d('0x7')){const event=events[e];MailQueue[_0x4ae44d('0x5')](e,emitEvent(event));}}module[_0x4ae44d('0x4')]=MailQueueEvents; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.model.js b/server/api/mailQueue/mailQueue.model.js index 43c7444..41d5612 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a422_0x244f=['MailQueue','./mailQueue.attributes','mail_queues','define','exports'];(function(_0x401a1b,_0x244f9d){const _0x63dbe2=function(_0x19f8e1){while(--_0x19f8e1){_0x401a1b['push'](_0x401a1b['shift']());}};_0x63dbe2(++_0x244f9d);}(a422_0x244f,0x9c));const a422_0x63db=function(_0x401a1b,_0x244f9d){_0x401a1b=_0x401a1b-0x0;let _0x63dbe2=a422_0x244f[_0x401a1b];return _0x63dbe2;};const _0x5c99cf=a422_0x63db;'use strict';const attributes=require(_0x5c99cf('0x0'));module[_0x5c99cf('0x3')]=function(_0x19f8e1){const _0x2c79a6=_0x5c99cf,_0x31566d=_0x19f8e1[_0x2c79a6('0x2')](_0x2c79a6('0x4'),attributes,{'tableName':_0x2c79a6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x31566d;}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 26019f2..2f764d3 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a423_0x3fe4=['then','attributes','ShowMailQueue','findOne','../../config/logger','message','findAll','map','../../mysqldb','MailQueue','stringify','where','error','include','register','debug','model','options','GetMailQueue','rpc','info','catch','./mailQueue.socket','lodash','limit','raw'];(function(_0x29705d,_0x3fe42e){const _0x54b8b2=function(_0x5be4e4){while(--_0x5be4e4){_0x29705d['push'](_0x29705d['shift']());}};_0x54b8b2(++_0x3fe42e);}(a423_0x3fe4,0x1ac));const a423_0x54b8=function(_0x29705d,_0x3fe42e){_0x29705d=_0x29705d-0x0;let _0x54b8b2=a423_0x3fe4[_0x29705d];return _0x54b8b2;};const _0x4fe34c=a423_0x54b8;'use strict';const _=require(_0x4fe34c('0xb')),db=require(_0x4fe34c('0x16'))['db'],logger=require(_0x4fe34c('0x12'))(_0x4fe34c('0x7')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x4fe34c('0xa'))[_0x4fe34c('0x2')](socket),exports[_0x4fe34c('0x6')]=function(_0x5be4e4){const _0x1923bc=this;return new Promise(function(_0x4641ba,_0x29a95c){const _0x3dc3a9=a423_0x54b8;return db[_0x3dc3a9('0x17')][_0x3dc3a9('0x14')]({'raw':_0x5be4e4[_0x3dc3a9('0x5')]?_0x5be4e4[_0x3dc3a9('0x5')]['raw']===undefined?!![]:![]:!![],'where':_0x5be4e4['options']?_0x5be4e4[_0x3dc3a9('0x5')][_0x3dc3a9('0x19')]||null:null,'attributes':_0x5be4e4[_0x3dc3a9('0x5')]?_0x5be4e4['options'][_0x3dc3a9('0xf')]||null:null,'limit':_0x5be4e4[_0x3dc3a9('0x5')]?_0x5be4e4[_0x3dc3a9('0x5')][_0x3dc3a9('0xc')]||null:null,'include':_0x5be4e4[_0x3dc3a9('0x5')]?_0x5be4e4[_0x3dc3a9('0x5')][_0x3dc3a9('0x1')]?_[_0x3dc3a9('0x15')](_0x5be4e4[_0x3dc3a9('0x5')]['include'],function(_0x25f078){const _0x48a9ce=_0x3dc3a9;return{'model':db[_0x25f078[_0x48a9ce('0x4')]],'as':_0x25f078['as'],'attributes':_0x25f078[_0x48a9ce('0xf')],'include':_0x25f078[_0x48a9ce('0x1')]?_[_0x48a9ce('0x15')](_0x25f078[_0x48a9ce('0x1')],function(_0x2ac2d2){const _0x2993bf=_0x48a9ce;return{'model':db[_0x2ac2d2[_0x2993bf('0x4')]],'as':_0x2ac2d2['as'],'attributes':_0x2ac2d2[_0x2993bf('0xf')],'include':_0x2ac2d2[_0x2993bf('0x1')]?_['map'](_0x2ac2d2['include'],function(_0x5a5775){const _0x418a5b=_0x2993bf;return{'model':db[_0x5a5775[_0x418a5b('0x4')]],'as':_0x5a5775['as'],'attributes':_0x5a5775['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0xf89991){const _0x1efc5b=_0x3dc3a9;logger[_0x1efc5b('0x8')](_0x1efc5b('0x6'),_0x5be4e4),logger[_0x1efc5b('0x3')](_0x1efc5b('0x6'),_0x5be4e4,JSON[_0x1efc5b('0x18')](_0xf89991)),_0x4641ba(_0xf89991);})[_0x3dc3a9('0x9')](function(_0x11ae40){const _0x3f2193=_0x3dc3a9;logger[_0x3f2193('0x0')](_0x3f2193('0x6'),_0x11ae40['message'],_0x5be4e4),_0x29a95c(_0x1923bc['error'](0x1f4,_0x11ae40[_0x3f2193('0x13')]));});});},exports[_0x4fe34c('0x10')]=function(_0x592fd4){const _0x291c8e=this;return new Promise(function(_0x308a1d,_0x5e5f32){const _0x4d852a=a423_0x54b8;return db[_0x4d852a('0x17')][_0x4d852a('0x11')]({'raw':_0x592fd4[_0x4d852a('0x5')]?_0x592fd4['options'][_0x4d852a('0xd')]===undefined?!![]:![]:!![],'where':_0x592fd4[_0x4d852a('0x5')]?_0x592fd4[_0x4d852a('0x5')][_0x4d852a('0x19')]||null:null,'attributes':_0x592fd4['options']?_0x592fd4[_0x4d852a('0x5')][_0x4d852a('0xf')]||null:null,'include':_0x592fd4[_0x4d852a('0x5')]?_0x592fd4[_0x4d852a('0x5')]['include']?_[_0x4d852a('0x15')](_0x592fd4[_0x4d852a('0x5')]['include'],function(_0xef6305){const _0x49d0e1=_0x4d852a;return{'model':db[_0xef6305[_0x49d0e1('0x4')]],'as':_0xef6305['as'],'attributes':_0xef6305[_0x49d0e1('0xf')],'include':_0xef6305['include']?_[_0x49d0e1('0x15')](_0xef6305['include'],function(_0x45df59){const _0x316871=_0x49d0e1;return{'model':db[_0x45df59[_0x316871('0x4')]],'as':_0x45df59['as'],'attributes':_0x45df59['attributes'],'include':_0x45df59[_0x316871('0x1')]?_['map'](_0x45df59[_0x316871('0x1')],function(_0x16aeed){const _0x829400=_0x316871;return{'model':db[_0x16aeed[_0x829400('0x4')]],'as':_0x16aeed['as'],'attributes':_0x16aeed['attributes']};}):[]};}):[]};}):[]:[]})[_0x4d852a('0xe')](function(_0x4564a5){const _0x59563d=_0x4d852a;logger[_0x59563d('0x8')](_0x59563d('0x10'),_0x592fd4),logger[_0x59563d('0x3')](_0x59563d('0x10'),_0x592fd4,JSON[_0x59563d('0x18')](_0x4564a5)),_0x308a1d(_0x4564a5);})[_0x4d852a('0x9')](function(_0x4edce3){const _0x59b21d=_0x4d852a;logger[_0x59b21d('0x0')](_0x59b21d('0x10'),_0x4edce3[_0x59b21d('0x13')],_0x592fd4),_0x5e5f32(_0x291c8e[_0x59b21d('0x0')](0x1f4,_0x4edce3[_0x59b21d('0x13')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index ccce95f..4049ca0 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a424_0x9208=['save','remove','emit','length','update'];(function(_0x3f7917,_0x9208de){const _0x33d1b2=function(_0x26e967){while(--_0x26e967){_0x3f7917['push'](_0x3f7917['shift']());}};_0x33d1b2(++_0x9208de);}(a424_0x9208,0xde));const a424_0x33d1=function(_0x3f7917,_0x9208de){_0x3f7917=_0x3f7917-0x0;let _0x33d1b2=a424_0x9208[_0x3f7917];return _0x33d1b2;};const _0x25d4ee=a424_0x33d1;'use strict';const MailQueueEvents=require('./mailQueue.events'),events=[_0x25d4ee('0x3'),_0x25d4ee('0x4'),_0x25d4ee('0x2')];function createListener(_0x26e967,_0x23690a){return function(_0x280785){const _0x4bf55a=a424_0x33d1;_0x23690a[_0x4bf55a('0x0')](_0x26e967,_0x280785);};}exports['register']=function(_0x5d0e7d){const _0x54ac72=_0x25d4ee;for(let _0x27d4f2=0x0,_0x2dd54b=events[_0x54ac72('0x1')];_0x27d4f2<_0x2dd54b;_0x27d4f2++){const _0x26a2e3=events[_0x27d4f2],_0x2ad272=createListener('mailQueue:'+_0x26a2e3,_0x5d0e7d);MailQueueEvents['on'](_0x26a2e3,_0x2ad272);}}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index 03f1385..e4c9457 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a425_0x5a6a=['../../components/auth/service','index','delete','destroy','describe','get','/:id','./mailQueueReport.controller','update','express','exports','Router','isAuthenticated','show','/describe'];(function(_0x2fa5df,_0x5a6a6a){const _0x38bbb3=function(_0x25abeb){while(--_0x25abeb){_0x2fa5df['push'](_0x2fa5df['shift']());}};_0x38bbb3(++_0x5a6a6a);}(a425_0x5a6a,0x94));const a425_0x38bb=function(_0x2fa5df,_0x5a6a6a){_0x2fa5df=_0x2fa5df-0x0;let _0x38bbb3=a425_0x5a6a[_0x2fa5df];return _0x38bbb3;};const _0x340db4=a425_0x38bb;'use strict';const express=require(_0x340db4('0xb')),router=express[_0x340db4('0xd')](),auth=require(_0x340db4('0x2')),controller=require(_0x340db4('0x9'));router[_0x340db4('0x7')]('/',auth[_0x340db4('0xe')](),controller[_0x340db4('0x3')]),router[_0x340db4('0x7')](_0x340db4('0x1'),auth[_0x340db4('0xe')](),controller[_0x340db4('0x6')]),router[_0x340db4('0x7')](_0x340db4('0x8'),auth[_0x340db4('0xe')](),controller[_0x340db4('0x0')]),router['post']('/',auth[_0x340db4('0xe')](),controller['create']),router['put'](_0x340db4('0x8'),auth[_0x340db4('0xe')](),controller[_0x340db4('0xa')]),router[_0x340db4('0x4')](_0x340db4('0x8'),auth[_0x340db4('0xe')](),controller[_0x340db4('0x5')]),module[_0x340db4('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index dbe3ff3..15362ef 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a426_0x1fc1=['DATE','exports','STRING','sequelize'];(function(_0x4f0ab2,_0x1fc192){const _0x497227=function(_0x412862){while(--_0x412862){_0x4f0ab2['push'](_0x4f0ab2['shift']());}};_0x497227(++_0x1fc192);}(a426_0x1fc1,0x91));const a426_0x4972=function(_0x4f0ab2,_0x1fc192){_0x4f0ab2=_0x4f0ab2-0x0;let _0x497227=a426_0x1fc1[_0x4f0ab2];return _0x497227;};const _0x1094ee=a426_0x4972;'use strict';const Sequelize=require(_0x1094ee('0x2'));module[_0x1094ee('0x0')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x1094ee('0x1')]},'joinAt':{'type':Sequelize[_0x1094ee('0x3')]},'leaveAt':{'type':Sequelize[_0x1094ee('0x3')]},'acceptAt':{'type':Sequelize[_0x1094ee('0x3')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index 82054fd..a0d9487 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a427_0x4d6c=['../../config/logger','key','../../mysqldb','VIRTUAL','where','count','fields','set','../../components/parsers/qs','undefined','offset','keys','MailQueueReport','body','merge','order','status','query','pick','filter','attributes','end','catch','stack','error','findOne','includeAll','filters','update','include','show','rawAttributes','fieldName','params','type','sequelize','describe','limit','sort','findAll','then','json','like','api','model','intersection','nolimit','length','create','destroy','options','name'];(function(_0xf72fdb,_0x4d6cb7){const _0x59b846=function(_0x361aa8){while(--_0x361aa8){_0xf72fdb['push'](_0xf72fdb['shift']());}};_0x59b846(++_0x4d6cb7);}(a427_0x4d6c,0x68));const a427_0x59b8=function(_0xf72fdb,_0x4d6cb7){_0xf72fdb=_0xf72fdb-0x0;let _0x59b846=a427_0x4d6c[_0xf72fdb];return _0x59b846;};const _0x59dbcd=a427_0x59b8;'use strict';const _=require('lodash'),qs=require(_0x59dbcd('0x8')),logger=require(_0x59dbcd('0x0'))(_0x59dbcd('0x2b')),db=require(_0x59dbcd('0x2'))['db'],{Op}=require(_0x59dbcd('0x23'));function respondWithResult(_0x361aa8,_0x469ef3){return _0x469ef3=_0x469ef3||0xc8,function(_0x15fdb1){const _0x5b4bc9=a427_0x59b8;if(_0x15fdb1)return _0x361aa8[_0x5b4bc9('0x10')](_0x469ef3)[_0x5b4bc9('0x29')](_0x15fdb1);};}function respondWithFilteredResult(_0x7c69ef,_0x3584e8){return function(_0x478c69){const _0x549569=a427_0x59b8;if(_0x478c69){const _0x1703b4=_0x478c69['count'],_0x3f599e=_0x3584e8[_0x549569('0xa')];let _0x2a7c31=_0x3584e8[_0x549569('0xa')]+_0x3584e8[_0x549569('0x25')],_0x3ada20;return _0x2a7c31>=_0x1703b4?(_0x2a7c31=_0x1703b4,_0x3ada20=0xc8):_0x3ada20=0xce,_0x7c69ef[_0x549569('0x10')](_0x3ada20),_0x7c69ef[_0x549569('0x7')]('Content-Range',_0x3f599e+'-'+_0x2a7c31+'/'+_0x1703b4)['json'](_0x478c69);}return null;};}function saveUpdates(_0x13594c){return function(_0x23016c){const _0x155f05=a427_0x59b8;if(_0x23016c)return _0x23016c[_0x155f05('0x1c')](_0x13594c)['then'](function(_0xd97d27){return _0xd97d27;});return null;};}function removeEntity(_0x288e13){return function(_0x28917c){const _0x15c94d=a427_0x59b8;if(_0x28917c)return _0x28917c[_0x15c94d('0x31')]()[_0x15c94d('0x28')](function(){const _0x47862a=_0x15c94d;_0x288e13['status'](0xcc)[_0x47862a('0x15')]();});};}function handleEntityNotFound(_0x2141a1){return function(_0x11e407){return!_0x11e407&&_0x2141a1['sendStatus'](0x194),_0x11e407;};}function handleError(_0x2b3d80,_0x572d3a){return _0x572d3a=_0x572d3a||0x1f4,function(_0xa91b0){const _0x63abac=a427_0x59b8;logger[_0x63abac('0x18')](_0xa91b0[_0x63abac('0x17')]),_0xa91b0[_0x63abac('0x33')]&&delete _0xa91b0['name'],_0x2b3d80['status'](_0x572d3a)['send'](_0xa91b0);};}exports['index']=function(_0x58ab04,_0x5bbaac){const _0x359642=_0x59dbcd;let _0x4eb282={};const _0x2c0ca5={},_0x4f7098={'count':0x0,'rows':[]},_0x210af7=_['map'](db[_0x359642('0xc')]['rawAttributes'],function(_0x25c2c8){const _0x2945ed=_0x359642;return{'name':_0x25c2c8[_0x2945ed('0x20')],'type':_0x25c2c8['type'][_0x2945ed('0x1')]};});_0x2c0ca5[_0x359642('0x2c')]=_['map'](_0x210af7,'name'),_0x2c0ca5[_0x359642('0x11')]=_[_0x359642('0xb')](_0x58ab04['query']),_0x2c0ca5['filters']=_['intersection'](_0x2c0ca5[_0x359642('0x2c')],_0x2c0ca5['query']),_0x4eb282[_0x359642('0x14')]=_[_0x359642('0x2d')](_0x2c0ca5[_0x359642('0x2c')],qs[_0x359642('0x6')](_0x58ab04[_0x359642('0x11')][_0x359642('0x6')])),_0x4eb282['attributes']=_0x4eb282[_0x359642('0x14')][_0x359642('0x2f')]?_0x4eb282['attributes']:_0x2c0ca5[_0x359642('0x2c')];typeof _0x58ab04[_0x359642('0x11')][_0x359642('0x2e')]===_0x359642('0x9')&&(_0x4eb282[_0x359642('0x25')]=qs[_0x359642('0x25')](_0x58ab04['query'][_0x359642('0x25')]),_0x4eb282[_0x359642('0xa')]=qs['offset'](_0x58ab04['query'][_0x359642('0xa')]));_0x4eb282[_0x359642('0xf')]=qs[_0x359642('0x26')](_0x58ab04[_0x359642('0x11')][_0x359642('0x26')]),_0x4eb282[_0x359642('0x4')]=qs[_0x359642('0x1b')](_[_0x359642('0x12')](_0x58ab04[_0x359642('0x11')],_0x2c0ca5[_0x359642('0x1b')]),_0x210af7);_0x58ab04[_0x359642('0x11')][_0x359642('0x13')]&&(_0x4eb282[_0x359642('0x4')]=_[_0x359642('0xe')](_0x4eb282[_0x359642('0x4')],{[Op['or']]:_['map'](_0x210af7,function(_0x54e6ed){const _0x33eef7=_0x359642;if(_0x54e6ed[_0x33eef7('0x22')]!==_0x33eef7('0x3')){const _0x41df74={};return _0x41df74[_0x54e6ed[_0x33eef7('0x33')]]={[Op[_0x33eef7('0x2a')]]:'%'+_0x58ab04[_0x33eef7('0x11')][_0x33eef7('0x13')]+'%'},_0x41df74;}})}));_0x4eb282=_['merge']({},_0x4eb282,_0x58ab04[_0x359642('0x32')]);const _0xd55df9={'where':_0x4eb282['where']};return db[_0x359642('0xc')]['count'](_0xd55df9)[_0x359642('0x28')](function(_0x389984){const _0x513d14=_0x359642;return _0x4f7098[_0x513d14('0x5')]=_0x389984,_0x58ab04[_0x513d14('0x11')]['includeAll']&&(_0x4eb282[_0x513d14('0x1d')]=[{'all':!![]}]),db[_0x513d14('0xc')][_0x513d14('0x27')](_0x4eb282);})[_0x359642('0x28')](function(_0x5dc1ce){return _0x4f7098['rows']=_0x5dc1ce,_0x4f7098;})[_0x359642('0x28')](respondWithFilteredResult(_0x5bbaac,_0x4eb282))['catch'](handleError(_0x5bbaac,null));},exports[_0x59dbcd('0x1e')]=function(_0x44721b,_0x17c47f){const _0x26fa9f=_0x59dbcd;let _0x49a9a3={'raw':!![],'where':{'id':_0x44721b[_0x26fa9f('0x21')]['id']}};const _0x428710={};return _0x428710[_0x26fa9f('0x2c')]=_['keys'](db[_0x26fa9f('0xc')][_0x26fa9f('0x1f')]),_0x428710['query']=_[_0x26fa9f('0xb')](_0x44721b[_0x26fa9f('0x11')]),_0x428710[_0x26fa9f('0x1b')]=_['intersection'](_0x428710['model'],_0x428710['query']),_0x49a9a3[_0x26fa9f('0x14')]=_['intersection'](_0x428710['model'],qs[_0x26fa9f('0x6')](_0x44721b[_0x26fa9f('0x11')][_0x26fa9f('0x6')])),_0x49a9a3[_0x26fa9f('0x14')]=_0x49a9a3[_0x26fa9f('0x14')]['length']?_0x49a9a3['attributes']:_0x428710['model'],_0x44721b[_0x26fa9f('0x11')][_0x26fa9f('0x1a')]&&(_0x49a9a3[_0x26fa9f('0x1d')]=[{'all':!![]}]),_0x49a9a3=_[_0x26fa9f('0xe')]({},_0x49a9a3,_0x44721b[_0x26fa9f('0x32')]),db[_0x26fa9f('0xc')]['findOne'](_0x49a9a3)[_0x26fa9f('0x28')](handleEntityNotFound(_0x17c47f,null))[_0x26fa9f('0x28')](respondWithResult(_0x17c47f,null))[_0x26fa9f('0x16')](handleError(_0x17c47f,null));},exports[_0x59dbcd('0x30')]=function(_0x4c8a5b,_0x33d8a7){const _0x1908c3=_0x59dbcd;return db[_0x1908c3('0xc')][_0x1908c3('0x30')](_0x4c8a5b[_0x1908c3('0xd')],{})[_0x1908c3('0x28')](respondWithResult(_0x33d8a7,0xc9))['catch'](handleError(_0x33d8a7,null));},exports[_0x59dbcd('0x1c')]=function(_0x1bf272,_0x2364ce){const _0x5ae956=_0x59dbcd;return _0x1bf272['body']['id']&&delete _0x1bf272[_0x5ae956('0xd')]['id'],db[_0x5ae956('0xc')][_0x5ae956('0x19')]({'where':{'id':_0x1bf272[_0x5ae956('0x21')]['id']}})[_0x5ae956('0x28')](handleEntityNotFound(_0x2364ce,null))[_0x5ae956('0x28')](saveUpdates(_0x1bf272[_0x5ae956('0xd')],null))[_0x5ae956('0x28')](respondWithResult(_0x2364ce,null))['catch'](handleError(_0x2364ce,null));},exports['destroy']=function(_0x11ca0e,_0x4fd28b){const _0x112ae3=_0x59dbcd;return db[_0x112ae3('0xc')]['findOne']({'where':{'id':_0x11ca0e[_0x112ae3('0x21')]['id']}})['then'](handleEntityNotFound(_0x4fd28b,null))[_0x112ae3('0x28')](removeEntity(_0x4fd28b,null))[_0x112ae3('0x16')](handleError(_0x4fd28b,null));},exports[_0x59dbcd('0x24')]=function(_0x5c20aa,_0x2d4fbc){const _0x4efa57=_0x59dbcd;return db[_0x4efa57('0xc')][_0x4efa57('0x24')]()['then'](respondWithResult(_0x2d4fbc,null))[_0x4efa57('0x16')](handleError(_0x2d4fbc,null));}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index db7cba1..e937d34 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a428_0x41f9=['exports','MailQueueReport','uniqueid','define','./mailQueueReport.attributes'];(function(_0x26f6b9,_0x41f98f){const _0x30b4a2=function(_0x5d1df4){while(--_0x5d1df4){_0x26f6b9['push'](_0x26f6b9['shift']());}};_0x30b4a2(++_0x41f98f);}(a428_0x41f9,0x137));const a428_0x30b4=function(_0x26f6b9,_0x41f98f){_0x26f6b9=_0x26f6b9-0x0;let _0x30b4a2=a428_0x41f9[_0x26f6b9];return _0x30b4a2;};const _0x2b2ca3=a428_0x30b4;'use strict';const attributes=require(_0x2b2ca3('0x3'));module[_0x2b2ca3('0x4')]=function(_0x5d1df4){const _0x509bc7=_0x2b2ca3,_0x148074=_0x5d1df4[_0x509bc7('0x2')](_0x509bc7('0x0'),attributes,{'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0x509bc7('0x1'),'fields':[_0x509bc7('0x1')]}],'timestamps':!![]});return _0x148074;}; \ No newline at end of file +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 diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index 8c7ecfa..542c044 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a429_0x43af=['update','create','options','UpdateMailQueueReport','message','CreateMailQueueReport','info','then','error','rpc','debug','body','raw','attributes','catch','stringify'];(function(_0x2ca088,_0x43af6a){const _0x1f08a7=function(_0x5d2c5c){while(--_0x5d2c5c){_0x2ca088['push'](_0x2ca088['shift']());}};_0x1f08a7(++_0x43af6a);}(a429_0x43af,0x1ed));const a429_0x1f08=function(_0x2ca088,_0x43af6a){_0x2ca088=_0x2ca088-0x0;let _0x1f08a7=a429_0x43af[_0x2ca088];return _0x1f08a7;};const _0x5bdf5d=a429_0x1f08;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x5bdf5d('0xc'));exports['CreateMailQueueReport']=function(_0x5d2c5c){const _0xdaab30=this;return new Promise(function(_0x880d16,_0x422f0c){const _0x2664d1=a429_0x1f08;return db['MailQueueReport'][_0x2664d1('0x4')](_0x5d2c5c[_0x2664d1('0xe')],{'raw':_0x5d2c5c[_0x2664d1('0x5')]?_0x5d2c5c[_0x2664d1('0x5')][_0x2664d1('0xf')]===undefined?!![]:![]:!![]})[_0x2664d1('0xa')](function(_0x186460){const _0x5cc02e=_0x2664d1;logger[_0x5cc02e('0x9')](_0x5cc02e('0x8'),_0x5d2c5c),logger[_0x5cc02e('0xd')]('CreateMailQueueReport',_0x5d2c5c,JSON[_0x5cc02e('0x2')](_0x186460)),_0x880d16(_0x186460);})['catch'](function(_0x3fe440){const _0x2f6839=_0x2664d1;logger[_0x2f6839('0xb')](_0x2f6839('0x8'),_0x3fe440[_0x2f6839('0x7')],_0x5d2c5c),_0x422f0c(_0xdaab30[_0x2f6839('0xb')](0x1f4,_0x3fe440['message']));});});},exports['UpdateMailQueueReport']=function(_0x57ded0){const _0x91a25f=this;return new Promise(function(_0x50ce15,_0x4e7070){const _0x3ad32c=a429_0x1f08;return db['MailQueueReport'][_0x3ad32c('0x3')](_0x57ded0[_0x3ad32c('0xe')],{'raw':_0x57ded0['options']?_0x57ded0[_0x3ad32c('0x5')][_0x3ad32c('0xf')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x57ded0[_0x3ad32c('0x5')]?_0x57ded0['options']['where']||null:null,'attributes':_0x57ded0['options']?_0x57ded0['options'][_0x3ad32c('0x0')]||null:null,'limit':_0x57ded0[_0x3ad32c('0x5')]?_0x57ded0[_0x3ad32c('0x5')]['limit']||null:null})[_0x3ad32c('0xa')](function(_0x32b599){const _0x40db1d=_0x3ad32c;logger['info']('UpdateMailQueueReport',_0x57ded0),logger['debug'](_0x40db1d('0x6'),_0x57ded0,JSON[_0x40db1d('0x2')](_0x32b599)),_0x50ce15(_0x32b599);})[_0x3ad32c('0x1')](function(_0x15c2d0){const _0x3f6728=_0x3ad32c;logger[_0x3f6728('0xb')](_0x3f6728('0x6'),_0x15c2d0['message'],_0x57ded0),_0x4e7070(_0x91a25f['error'](0x1f4,_0x15c2d0[_0x3f6728('0x7')]));});});}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index 0c9456b..86dff82 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a430_0x5433=['exports','express','Router'];(function(_0x5bc239,_0x543347){const _0x8e8505=function(_0x159390){while(--_0x159390){_0x5bc239['push'](_0x5bc239['shift']());}};_0x8e8505(++_0x543347);}(a430_0x5433,0x142));const a430_0x8e85=function(_0x5bc239,_0x543347){_0x5bc239=_0x5bc239-0x0;let _0x8e8505=a430_0x5433[_0x5bc239];return _0x8e8505;};const _0x33c340=a430_0x8e85;'use strict';const express=require(_0x33c340('0x0')),router=express[_0x33c340('0x1')]();module[_0x33c340('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index 5ab08f0..acbe106 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a431_0x5374=['username','INBOX','STRING','sequelize','INTEGER','exports','BOOLEAN'];(function(_0x5b51ea,_0x537440){const _0x54099e=function(_0x1951b6){while(--_0x1951b6){_0x5b51ea['push'](_0x5b51ea['shift']());}};_0x54099e(++_0x537440);}(a431_0x5374,0x19d));const a431_0x5409=function(_0x5b51ea,_0x537440){_0x5b51ea=_0x5b51ea-0x0;let _0x54099e=a431_0x5374[_0x5b51ea];return _0x54099e;};const _0x175cfc=a431_0x5409;'use strict';const Sequelize=require(_0x175cfc('0x3'));module[_0x175cfc('0x5')]={'description':{'type':Sequelize[_0x175cfc('0x2')]},'host':{'type':Sequelize[_0x175cfc('0x2')]},'authentication':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'user':{'type':Sequelize[_0x175cfc('0x2')],'unique':_0x175cfc('0x0')},'password':{'type':Sequelize[_0x175cfc('0x2')]},'port':{'type':Sequelize['INTEGER']},'tls':{'type':Sequelize[_0x175cfc('0x6')],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x175cfc('0x2')],'defaultValue':_0x175cfc('0x1')},'connTimeout':{'type':Sequelize['INTEGER'],'defaultValue':0xa},'authTimeout':{'type':Sequelize[_0x175cfc('0x4')],'defaultValue':0x5},'service':{'type':Sequelize[_0x175cfc('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index b302dad..f77d3c3 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a432_0x247c=['mail_servers_in','exports','MailServerIn','define'];(function(_0x1d284c,_0x247ceb){const _0x34e1ed=function(_0x4706ac){while(--_0x4706ac){_0x1d284c['push'](_0x1d284c['shift']());}};_0x34e1ed(++_0x247ceb);}(a432_0x247c,0xd2));const a432_0x34e1=function(_0x1d284c,_0x247ceb){_0x1d284c=_0x1d284c-0x0;let _0x34e1ed=a432_0x247c[_0x1d284c];return _0x34e1ed;};const _0xc59b26=a432_0x34e1;'use strict';const attributes=require('./mailServerIn.attributes');module[_0xc59b26('0x3')]=function(_0x4706ac){const _0x547e2c=_0xc59b26,_0x48fa9c=_0x4706ac[_0x547e2c('0x1')](_0x547e2c('0x0'),attributes,{'tableName':_0x547e2c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x48fa9c;}; \ No newline at end of file +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 diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index b393240..96656c9 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a433_0x51f5=['lodash','then','../../config/logger','findAll','attributes','raw','debug','model','MailServerIn','limit','rpc','where','catch','info','message','../../mysqldb','include','GetMailServerIn','error','options'];(function(_0x30d950,_0x51f5c2){const _0x48fec5=function(_0x3a1c87){while(--_0x3a1c87){_0x30d950['push'](_0x30d950['shift']());}};_0x48fec5(++_0x51f5c2);}(a433_0x51f5,0x188));const a433_0x48fe=function(_0x30d950,_0x51f5c2){_0x30d950=_0x30d950-0x0;let _0x48fec5=a433_0x51f5[_0x30d950];return _0x48fec5;};const _0x7b3415=a433_0x48fe;'use strict';const _=require(_0x7b3415('0x8')),db=require(_0x7b3415('0x3'))['db'],logger=require(_0x7b3415('0xa'))(_0x7b3415('0x12'));exports['GetMailServerIn']=function(_0x3a1c87){const _0x4708b0=this;return new Promise(function(_0x1a9ddb,_0x253f7d){const _0x5d4e81=a433_0x48fe;return db[_0x5d4e81('0x10')][_0x5d4e81('0xb')]({'raw':_0x3a1c87[_0x5d4e81('0x7')]?_0x3a1c87['options'][_0x5d4e81('0xd')]===undefined?!![]:![]:!![],'where':_0x3a1c87[_0x5d4e81('0x7')]?_0x3a1c87[_0x5d4e81('0x7')][_0x5d4e81('0x13')]||null:null,'attributes':_0x3a1c87[_0x5d4e81('0x7')]?_0x3a1c87[_0x5d4e81('0x7')][_0x5d4e81('0xc')]||null:null,'limit':_0x3a1c87[_0x5d4e81('0x7')]?_0x3a1c87['options'][_0x5d4e81('0x11')]||null:null,'include':_0x3a1c87[_0x5d4e81('0x7')]?_0x3a1c87[_0x5d4e81('0x7')]['include']?_['map'](_0x3a1c87[_0x5d4e81('0x7')][_0x5d4e81('0x4')],function(_0x154994){const _0x1e6ad2=_0x5d4e81;return{'model':db[_0x154994[_0x1e6ad2('0xf')]],'as':_0x154994['as'],'attributes':_0x154994[_0x1e6ad2('0xc')],'include':_0x154994[_0x1e6ad2('0x4')]?_['map'](_0x154994[_0x1e6ad2('0x4')],function(_0x3e66eb){const _0x13c615=_0x1e6ad2;return{'model':db[_0x3e66eb[_0x13c615('0xf')]],'as':_0x3e66eb['as'],'attributes':_0x3e66eb[_0x13c615('0xc')],'include':_0x3e66eb[_0x13c615('0x4')]?_['map'](_0x3e66eb[_0x13c615('0x4')],function(_0x262017){const _0x29d7dc=_0x13c615;return{'model':db[_0x262017[_0x29d7dc('0xf')]],'as':_0x262017['as'],'attributes':_0x262017[_0x29d7dc('0xc')]};}):[]};}):[]};}):[]:[]})[_0x5d4e81('0x9')](function(_0x4a30c3){const _0xf600=_0x5d4e81;logger[_0xf600('0x1')](_0xf600('0x5'),_0x3a1c87),logger[_0xf600('0xe')]('GetMailServerIn',_0x3a1c87,JSON['stringify'](_0x4a30c3)),_0x1a9ddb(_0x4a30c3);})[_0x5d4e81('0x0')](function(_0x143097){const _0x1c8e94=_0x5d4e81;logger[_0x1c8e94('0x6')]('GetMailServerIn',_0x143097[_0x1c8e94('0x2')],_0x3a1c87),_0x253f7d(_0x4708b0[_0x1c8e94('0x6')](0x1f4,_0x143097['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index 3760dcf..ca6000b 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a434_0x1485=['get','delete','post','put','./mailServerOut.controller','isAuthenticated','../../components/auth/service','/:id','express','show','create','exports','index'];(function(_0x300928,_0x148581){const _0x1e35c2=function(_0x314ba1){while(--_0x314ba1){_0x300928['push'](_0x300928['shift']());}};_0x1e35c2(++_0x148581);}(a434_0x1485,0xd5));const a434_0x1e35=function(_0x300928,_0x148581){_0x300928=_0x300928-0x0;let _0x1e35c2=a434_0x1485[_0x300928];return _0x1e35c2;};const _0x44467b=a434_0x1e35;'use strict';const express=require(_0x44467b('0x3')),router=express['Router'](),auth=require(_0x44467b('0x1')),controller=require(_0x44467b('0xc'));router[_0x44467b('0x8')]('/',auth[_0x44467b('0x0')](),controller[_0x44467b('0x7')]),router[_0x44467b('0x8')](_0x44467b('0x2'),auth[_0x44467b('0x0')](),controller[_0x44467b('0x4')]),router[_0x44467b('0xa')]('/',auth[_0x44467b('0x0')](),controller[_0x44467b('0x5')]),router[_0x44467b('0xb')]('/:id',auth[_0x44467b('0x0')](),controller['update']),router[_0x44467b('0x9')](_0x44467b('0x2'),auth[_0x44467b('0x0')](),controller['destroy']),module[_0x44467b('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index a5a3803..3b2fcbc 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a435_0x2bd8=['STRING','exports','BOOLEAN'];(function(_0x2b8b04,_0x2bd8c1){const _0x3c88fc=function(_0x536bad){while(--_0x536bad){_0x2b8b04['push'](_0x2b8b04['shift']());}};_0x3c88fc(++_0x2bd8c1);}(a435_0x2bd8,0xfe));const a435_0x3c88=function(_0x2b8b04,_0x2bd8c1){_0x2b8b04=_0x2b8b04-0x0;let _0x3c88fc=a435_0x2bd8[_0x2b8b04];return _0x3c88fc;};const _0x3cef54=a435_0x3c88;'use strict';const Sequelize=require('sequelize');module[_0x3cef54('0x2')]={'description':{'type':Sequelize[_0x3cef54('0x1')]},'host':{'type':Sequelize[_0x3cef54('0x1')]},'user':{'type':Sequelize[_0x3cef54('0x1')]},'pass':{'type':Sequelize[_0x3cef54('0x1')]},'port':{'type':Sequelize['INTEGER']},'secure':{'type':Sequelize[_0x3cef54('0x0')],'defaultValue':![]},'service':{'type':Sequelize[_0x3cef54('0x1')]},'authentication':{'type':Sequelize[_0x3cef54('0x0')],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index 2f3122e..d973eb9 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a436_0x168f=['then','../../mysqldb','keys','pick','undefined','includeAll','key','status','destroy','filter','end','length','map','order','body','name','where','sendStatus','type','attributes','index','model','sequelize','catch','error','api','json','merge','query','create','sort','show','offset','options','findOne','update','limit','lodash','nolimit','VIRTUAL','fieldName','fields','MailServerOut','stack','rawAttributes','rows','intersection','count','../../components/parsers/qs','params','filters'];(function(_0x40f826,_0x168f83){const _0x49986d=function(_0x4f1cb9){while(--_0x4f1cb9){_0x40f826['push'](_0x40f826['shift']());}};_0x49986d(++_0x168f83);}(a436_0x168f,0x65));const a436_0x4998=function(_0x40f826,_0x168f83){_0x40f826=_0x40f826-0x0;let _0x49986d=a436_0x168f[_0x40f826];return _0x49986d;};const _0x21e00c=a436_0x4998;'use strict';const _=require(_0x21e00c('0x26')),qs=require(_0x21e00c('0x31')),logger=require('../../config/logger')(_0x21e00c('0x1a')),db=require(_0x21e00c('0x2'))['db'],{Op}=require(_0x21e00c('0x17'));function respondWithResult(_0x4f1cb9,_0x26c792){return _0x26c792=_0x26c792||0xc8,function(_0x1a6491){const _0x255053=a436_0x4998;if(_0x1a6491)return _0x4f1cb9[_0x255053('0x8')](_0x26c792)[_0x255053('0x1b')](_0x1a6491);};}function respondWithFilteredResult(_0x10b7a0,_0x2ec9ae){return function(_0x117b32){const _0x3094b5=a436_0x4998;if(_0x117b32){const _0x2c0df7=_0x117b32[_0x3094b5('0x30')],_0x227f3b=_0x2ec9ae[_0x3094b5('0x21')];let _0x3cb2f0=_0x2ec9ae[_0x3094b5('0x21')]+_0x2ec9ae[_0x3094b5('0x25')],_0x1b1830;return _0x3cb2f0>=_0x2c0df7?(_0x3cb2f0=_0x2c0df7,_0x1b1830=0xc8):_0x1b1830=0xce,_0x10b7a0['status'](_0x1b1830),_0x10b7a0['set']('Content-Range',_0x227f3b+'-'+_0x3cb2f0+'/'+_0x2c0df7)[_0x3094b5('0x1b')](_0x117b32);}return null;};}function saveUpdates(_0x421b4d){return function(_0x328bb9){const _0x59a199=a436_0x4998;if(_0x328bb9)return _0x328bb9['update'](_0x421b4d)[_0x59a199('0x1')](function(_0x3c1948){return _0x3c1948;});return null;};}function removeEntity(_0x4bf2e3){return function(_0xd41bfe){const _0x32ef35=a436_0x4998;if(_0xd41bfe)return _0xd41bfe[_0x32ef35('0x9')]()[_0x32ef35('0x1')](function(){const _0x576052=_0x32ef35;_0x4bf2e3[_0x576052('0x8')](0xcc)[_0x576052('0xb')]();});};}function handleEntityNotFound(_0x3994f3){return function(_0x567c65){const _0x2b0ca8=a436_0x4998;return!_0x567c65&&_0x3994f3[_0x2b0ca8('0x12')](0x194),_0x567c65;};}function handleError(_0x4ab04c,_0x33cca3){return _0x33cca3=_0x33cca3||0x1f4,function(_0x254438){const _0x314e91=a436_0x4998;logger[_0x314e91('0x19')](_0x254438[_0x314e91('0x2c')]),_0x254438['name']&&delete _0x254438[_0x314e91('0x10')],_0x4ab04c[_0x314e91('0x8')](_0x33cca3)['send'](_0x254438);};}exports[_0x21e00c('0x15')]=function(_0x12d7e4,_0x971344){const _0x362386=_0x21e00c;let _0x5b5da9={};const _0x3163a5={},_0x2977be={'count':0x0,'rows':[]},_0xb326e8=_[_0x362386('0xd')](db['MailServerOut'][_0x362386('0x2d')],function(_0x571950){const _0x1212d1=_0x362386;return{'name':_0x571950[_0x1212d1('0x29')],'type':_0x571950['type'][_0x1212d1('0x7')]};});_0x3163a5[_0x362386('0x16')]=_[_0x362386('0xd')](_0xb326e8,_0x362386('0x10')),_0x3163a5[_0x362386('0x1d')]=_[_0x362386('0x3')](_0x12d7e4[_0x362386('0x1d')]),_0x3163a5['filters']=_[_0x362386('0x2f')](_0x3163a5[_0x362386('0x16')],_0x3163a5['query']),_0x5b5da9[_0x362386('0x14')]=_[_0x362386('0x2f')](_0x3163a5[_0x362386('0x16')],qs[_0x362386('0x2a')](_0x12d7e4['query']['fields'])),_0x5b5da9['attributes']=_0x5b5da9[_0x362386('0x14')][_0x362386('0xc')]?_0x5b5da9[_0x362386('0x14')]:_0x3163a5[_0x362386('0x16')];typeof _0x12d7e4[_0x362386('0x1d')][_0x362386('0x27')]===_0x362386('0x5')&&(_0x5b5da9[_0x362386('0x25')]=qs[_0x362386('0x25')](_0x12d7e4['query'][_0x362386('0x25')]),_0x5b5da9[_0x362386('0x21')]=qs['offset'](_0x12d7e4[_0x362386('0x1d')]['offset']));_0x5b5da9[_0x362386('0xe')]=qs[_0x362386('0x1f')](_0x12d7e4[_0x362386('0x1d')][_0x362386('0x1f')]),_0x5b5da9['where']=qs[_0x362386('0x0')](_[_0x362386('0x4')](_0x12d7e4['query'],_0x3163a5[_0x362386('0x0')]),_0xb326e8);_0x12d7e4['query'][_0x362386('0xa')]&&(_0x5b5da9[_0x362386('0x11')]=_[_0x362386('0x1c')](_0x5b5da9[_0x362386('0x11')],{[Op['or']]:_[_0x362386('0xd')](_0xb326e8,function(_0x18007a){const _0x3f65d2=_0x362386;if(_0x18007a[_0x3f65d2('0x13')]!==_0x3f65d2('0x28')){const _0x13d417={};return _0x13d417[_0x18007a[_0x3f65d2('0x10')]]={[Op['like']]:'%'+_0x12d7e4[_0x3f65d2('0x1d')]['filter']+'%'},_0x13d417;}})}));_0x5b5da9=_[_0x362386('0x1c')]({},_0x5b5da9,_0x12d7e4[_0x362386('0x22')]);const _0x2b03f4={'where':_0x5b5da9[_0x362386('0x11')]};return db[_0x362386('0x2b')][_0x362386('0x30')](_0x2b03f4)['then'](function(_0x739633){const _0x645313=_0x362386;return _0x2977be[_0x645313('0x30')]=_0x739633,_0x12d7e4['query']['includeAll']&&(_0x5b5da9['include']=[{'all':!![]}]),db[_0x645313('0x2b')]['findAll'](_0x5b5da9);})[_0x362386('0x1')](function(_0x470997){const _0x40e64d=_0x362386;return _0x2977be[_0x40e64d('0x2e')]=_0x470997,_0x2977be;})[_0x362386('0x1')](respondWithFilteredResult(_0x971344,_0x5b5da9))[_0x362386('0x18')](handleError(_0x971344,null));},exports[_0x21e00c('0x20')]=function(_0x5665ad,_0x2e46c7){const _0x1861ad=_0x21e00c;let _0xde0370={'raw':!![],'where':{'id':_0x5665ad[_0x1861ad('0x32')]['id']}};const _0x2f4e8c={};return _0x2f4e8c[_0x1861ad('0x16')]=_[_0x1861ad('0x3')](db[_0x1861ad('0x2b')][_0x1861ad('0x2d')]),_0x2f4e8c[_0x1861ad('0x1d')]=_[_0x1861ad('0x3')](_0x5665ad[_0x1861ad('0x1d')]),_0x2f4e8c[_0x1861ad('0x0')]=_['intersection'](_0x2f4e8c[_0x1861ad('0x16')],_0x2f4e8c[_0x1861ad('0x1d')]),_0xde0370[_0x1861ad('0x14')]=_[_0x1861ad('0x2f')](_0x2f4e8c['model'],qs[_0x1861ad('0x2a')](_0x5665ad[_0x1861ad('0x1d')][_0x1861ad('0x2a')])),_0xde0370[_0x1861ad('0x14')]=_0xde0370[_0x1861ad('0x14')][_0x1861ad('0xc')]?_0xde0370[_0x1861ad('0x14')]:_0x2f4e8c['model'],_0x5665ad['query'][_0x1861ad('0x6')]&&(_0xde0370['include']=[{'all':!![]}]),_0xde0370=_[_0x1861ad('0x1c')]({},_0xde0370,_0x5665ad[_0x1861ad('0x22')]),db[_0x1861ad('0x2b')]['findOne'](_0xde0370)[_0x1861ad('0x1')](handleEntityNotFound(_0x2e46c7,null))[_0x1861ad('0x1')](respondWithResult(_0x2e46c7,null))['catch'](handleError(_0x2e46c7,null));},exports['create']=function(_0x51bc73,_0x354ee0){const _0x1f5d85=_0x21e00c;return db[_0x1f5d85('0x2b')][_0x1f5d85('0x1e')](_0x51bc73[_0x1f5d85('0xf')],{})[_0x1f5d85('0x1')](respondWithResult(_0x354ee0,0xc9))[_0x1f5d85('0x18')](handleError(_0x354ee0,null));},exports[_0x21e00c('0x24')]=function(_0x73a02d,_0x25a2e9){const _0x5685c2=_0x21e00c;return _0x73a02d[_0x5685c2('0xf')]['id']&&delete _0x73a02d[_0x5685c2('0xf')]['id'],db[_0x5685c2('0x2b')][_0x5685c2('0x23')]({'where':{'id':_0x73a02d[_0x5685c2('0x32')]['id']}})['then'](handleEntityNotFound(_0x25a2e9,null))[_0x5685c2('0x1')](saveUpdates(_0x73a02d[_0x5685c2('0xf')],null))[_0x5685c2('0x1')](respondWithResult(_0x25a2e9,null))['catch'](handleError(_0x25a2e9,null));},exports['destroy']=function(_0x5c7b94,_0x59189f){const _0x440dfa=_0x21e00c;return db[_0x440dfa('0x2b')][_0x440dfa('0x23')]({'where':{'id':_0x5c7b94[_0x440dfa('0x32')]['id']}})[_0x440dfa('0x1')](handleEntityNotFound(_0x59189f,null))['then'](removeEntity(_0x59189f,null))[_0x440dfa('0x18')](handleError(_0x59189f,null));}; \ No newline at end of file +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 diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index ede105c..2c92adf 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a437_0x538e=['define','./mailServerOut.attributes','exports','MailServerOut','mail_servers_out'];(function(_0x2455de,_0x538e96){const _0xfc6309=function(_0x56369e){while(--_0x56369e){_0x2455de['push'](_0x2455de['shift']());}};_0xfc6309(++_0x538e96);}(a437_0x538e,0x1c5));const a437_0xfc63=function(_0x2455de,_0x538e96){_0x2455de=_0x2455de-0x0;let _0xfc6309=a437_0x538e[_0x2455de];return _0xfc6309;};const _0x45ec3b=a437_0xfc63;'use strict';const attributes=require(_0x45ec3b('0x3'));module[_0x45ec3b('0x4')]=function(_0x56369e){const _0x5bde9b=_0x45ec3b,_0x388af7=_0x56369e[_0x5bde9b('0x2')](_0x5bde9b('0x0'),attributes,{'tableName':_0x5bde9b('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x388af7;}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index d5abb29..30f314e 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a438_0xa9c9=['/describe','isAuthenticated','./mailSubstatus.controller','update','/:id','create','exports','index','express','Router','post','destroy','show','get','describe'];(function(_0x7452e2,_0xa9c9b4){const _0x5167f3=function(_0x22d690){while(--_0x22d690){_0x7452e2['push'](_0x7452e2['shift']());}};_0x5167f3(++_0xa9c9b4);}(a438_0xa9c9,0x197));const a438_0x5167=function(_0x7452e2,_0xa9c9b4){_0x7452e2=_0x7452e2-0x0;let _0x5167f3=a438_0xa9c9[_0x7452e2];return _0x5167f3;};const _0x2046ad=a438_0x5167;'use strict';const express=require(_0x2046ad('0x6')),router=express[_0x2046ad('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x2046ad('0x0'));router[_0x2046ad('0xb')]('/',auth['isAuthenticated'](),controller[_0x2046ad('0x5')]),router[_0x2046ad('0xb')](_0x2046ad('0xd'),auth[_0x2046ad('0xe')](),controller[_0x2046ad('0xc')]),router['get']('/:id',auth[_0x2046ad('0xe')](),controller[_0x2046ad('0xa')]),router[_0x2046ad('0x8')]('/',auth[_0x2046ad('0xe')](),controller[_0x2046ad('0x3')]),router['put'](_0x2046ad('0x2'),auth[_0x2046ad('0xe')](),controller[_0x2046ad('0x1')]),router['delete'](_0x2046ad('0x2'),auth['isAuthenticated'](),controller[_0x2046ad('0x9')]),module[_0x2046ad('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index c541e28..74c2ff3 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a439_0x3e84=['name','STRING'];(function(_0x3a7826,_0x3e8455){const _0x332d4c=function(_0x589796){while(--_0x589796){_0x3a7826['push'](_0x3a7826['shift']());}};_0x332d4c(++_0x3e8455);}(a439_0x3e84,0xc5));const a439_0x332d=function(_0x3a7826,_0x3e8455){_0x3a7826=_0x3a7826-0x0;let _0x332d4c=a439_0x3e84[_0x3a7826];return _0x332d4c;};const _0x1f97a4=a439_0x332d;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x1f97a4('0x0')],'unique':_0x1f97a4('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x1f97a4('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index 818e44e..62e2ed2 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a440_0x4600=['update','options','undefined','sort','destroy','rawAttributes','sendStatus','../../components/parsers/qs','offset','like','sequelize','merge','count','fieldName','rows','catch','filters','body','type','end','findOne','nolimit','json','status','key','intersection','map','attributes','params','model','../../mysqldb','query','lodash','length','filter','then','api','MailSubstatus','set','name','error','limit','../../config/logger','pick','fields','where','create','findAll','keys','describe','stack','includeAll'];(function(_0x68a29f,_0x4600de){const _0x1d4994=function(_0x22ebc8){while(--_0x22ebc8){_0x68a29f['push'](_0x68a29f['shift']());}};_0x1d4994(++_0x4600de);}(a440_0x4600,0xce));const a440_0x1d49=function(_0x68a29f,_0x4600de){_0x68a29f=_0x68a29f-0x0;let _0x1d4994=a440_0x4600[_0x68a29f];return _0x1d4994;};const _0x2c109d=a440_0x1d49;'use strict';const _=require(_0x2c109d('0x22')),qs=require(_0x2c109d('0x9')),logger=require(_0x2c109d('0x2c'))(_0x2c109d('0x26')),db=require(_0x2c109d('0x20'))['db'],{Op}=require(_0x2c109d('0xc'));function respondWithResult(_0x22ebc8,_0x3458c7){return _0x3458c7=_0x3458c7||0xc8,function(_0x22ab33){const _0x446f7c=a440_0x1d49;if(_0x22ab33)return _0x22ebc8[_0x446f7c('0x19')](_0x3458c7)[_0x446f7c('0x18')](_0x22ab33);};}function respondWithFilteredResult(_0x58b99d,_0x2a6b5e){return function(_0x2dfd4e){const _0x27d611=a440_0x1d49;if(_0x2dfd4e){const _0x58624d=_0x2dfd4e[_0x27d611('0xe')],_0x3b481c=_0x2a6b5e[_0x27d611('0xa')];let _0x1c9a94=_0x2a6b5e[_0x27d611('0xa')]+_0x2a6b5e[_0x27d611('0x2b')],_0x4fa491;return _0x1c9a94>=_0x58624d?(_0x1c9a94=_0x58624d,_0x4fa491=0xc8):_0x4fa491=0xce,_0x58b99d[_0x27d611('0x19')](_0x4fa491),_0x58b99d[_0x27d611('0x28')]('Content-Range',_0x3b481c+'-'+_0x1c9a94+'/'+_0x58624d)[_0x27d611('0x18')](_0x2dfd4e);}return null;};}function saveUpdates(_0x1530ab){return function(_0x53ce6f){if(_0x53ce6f)return _0x53ce6f['update'](_0x1530ab)['then'](function(_0xabec61){return _0xabec61;});return null;};}function removeEntity(_0x51e8e0){return function(_0x1b5f88){const _0x1ec230=a440_0x1d49;if(_0x1b5f88)return _0x1b5f88['destroy']()[_0x1ec230('0x25')](function(){const _0x1b03d8=_0x1ec230;_0x51e8e0[_0x1b03d8('0x19')](0xcc)[_0x1b03d8('0x15')]();});};}function handleEntityNotFound(_0x2b41f2){return function(_0x2d67e3){const _0x202b84=a440_0x1d49;return!_0x2d67e3&&_0x2b41f2[_0x202b84('0x8')](0x194),_0x2d67e3;};}function handleError(_0x34b66a,_0x30292f){return _0x30292f=_0x30292f||0x1f4,function(_0x5cedea){const _0x5f4f63=a440_0x1d49;logger[_0x5f4f63('0x2a')](_0x5cedea[_0x5f4f63('0x0')]),_0x5cedea[_0x5f4f63('0x29')]&&delete _0x5cedea[_0x5f4f63('0x29')],_0x34b66a['status'](_0x30292f)['send'](_0x5cedea);};}exports['index']=function(_0x212dd,_0x590891){const _0x5ff21f=_0x2c109d;let _0xa8e367={};const _0x45f07f={},_0x4534df={'count':0x0,'rows':[]},_0x42b72f=_[_0x5ff21f('0x1c')](db[_0x5ff21f('0x27')]['rawAttributes'],function(_0x444044){const _0x5cb455=_0x5ff21f;return{'name':_0x444044[_0x5cb455('0xf')],'type':_0x444044[_0x5cb455('0x14')][_0x5cb455('0x1a')]};});_0x45f07f[_0x5ff21f('0x1f')]=_[_0x5ff21f('0x1c')](_0x42b72f,_0x5ff21f('0x29')),_0x45f07f[_0x5ff21f('0x21')]=_[_0x5ff21f('0x32')](_0x212dd[_0x5ff21f('0x21')]),_0x45f07f[_0x5ff21f('0x12')]=_[_0x5ff21f('0x1b')](_0x45f07f[_0x5ff21f('0x1f')],_0x45f07f[_0x5ff21f('0x21')]),_0xa8e367[_0x5ff21f('0x1d')]=_[_0x5ff21f('0x1b')](_0x45f07f[_0x5ff21f('0x1f')],qs['fields'](_0x212dd[_0x5ff21f('0x21')][_0x5ff21f('0x2e')])),_0xa8e367[_0x5ff21f('0x1d')]=_0xa8e367[_0x5ff21f('0x1d')]['length']?_0xa8e367['attributes']:_0x45f07f[_0x5ff21f('0x1f')];typeof _0x212dd['query'][_0x5ff21f('0x17')]===_0x5ff21f('0x4')&&(_0xa8e367[_0x5ff21f('0x2b')]=qs['limit'](_0x212dd[_0x5ff21f('0x21')][_0x5ff21f('0x2b')]),_0xa8e367['offset']=qs['offset'](_0x212dd['query']['offset']));_0xa8e367['order']=qs[_0x5ff21f('0x5')](_0x212dd[_0x5ff21f('0x21')][_0x5ff21f('0x5')]),_0xa8e367[_0x5ff21f('0x2f')]=qs[_0x5ff21f('0x12')](_[_0x5ff21f('0x2d')](_0x212dd[_0x5ff21f('0x21')],_0x45f07f[_0x5ff21f('0x12')]),_0x42b72f);_0x212dd['query'][_0x5ff21f('0x24')]&&(_0xa8e367[_0x5ff21f('0x2f')]=_[_0x5ff21f('0xd')](_0xa8e367[_0x5ff21f('0x2f')],{[Op['or']]:_[_0x5ff21f('0x1c')](_0x42b72f,function(_0x1a960b){const _0x37d99e=_0x5ff21f;if(_0x1a960b[_0x37d99e('0x14')]!=='VIRTUAL'){const _0x8faf0f={};return _0x8faf0f[_0x1a960b[_0x37d99e('0x29')]]={[Op[_0x37d99e('0xb')]]:'%'+_0x212dd[_0x37d99e('0x21')]['filter']+'%'},_0x8faf0f;}})}));_0xa8e367=_['merge']({},_0xa8e367,_0x212dd['options']);const _0x263820={'where':_0xa8e367[_0x5ff21f('0x2f')]};return db['MailSubstatus'][_0x5ff21f('0xe')](_0x263820)[_0x5ff21f('0x25')](function(_0x1a55f7){const _0xbb02e4=_0x5ff21f;return _0x4534df[_0xbb02e4('0xe')]=_0x1a55f7,_0x212dd[_0xbb02e4('0x21')][_0xbb02e4('0x1')]&&(_0xa8e367['include']=[{'all':!![]}]),db['MailSubstatus'][_0xbb02e4('0x31')](_0xa8e367);})[_0x5ff21f('0x25')](function(_0x568515){const _0x4fb85d=_0x5ff21f;return _0x4534df[_0x4fb85d('0x10')]=_0x568515,_0x4534df;})['then'](respondWithFilteredResult(_0x590891,_0xa8e367))[_0x5ff21f('0x11')](handleError(_0x590891,null));},exports['show']=function(_0x4005db,_0x9a93f4){const _0x509a37=_0x2c109d;let _0x18f919={'raw':!![],'where':{'id':_0x4005db['params']['id']}};const _0x12763b={};return _0x12763b[_0x509a37('0x1f')]=_[_0x509a37('0x32')](db[_0x509a37('0x27')][_0x509a37('0x7')]),_0x12763b[_0x509a37('0x21')]=_[_0x509a37('0x32')](_0x4005db[_0x509a37('0x21')]),_0x12763b[_0x509a37('0x12')]=_[_0x509a37('0x1b')](_0x12763b['model'],_0x12763b[_0x509a37('0x21')]),_0x18f919[_0x509a37('0x1d')]=_[_0x509a37('0x1b')](_0x12763b[_0x509a37('0x1f')],qs[_0x509a37('0x2e')](_0x4005db[_0x509a37('0x21')]['fields'])),_0x18f919[_0x509a37('0x1d')]=_0x18f919['attributes'][_0x509a37('0x23')]?_0x18f919[_0x509a37('0x1d')]:_0x12763b[_0x509a37('0x1f')],_0x4005db['query'][_0x509a37('0x1')]&&(_0x18f919['include']=[{'all':!![]}]),_0x18f919=_[_0x509a37('0xd')]({},_0x18f919,_0x4005db[_0x509a37('0x3')]),db[_0x509a37('0x27')][_0x509a37('0x16')](_0x18f919)[_0x509a37('0x25')](handleEntityNotFound(_0x9a93f4,null))[_0x509a37('0x25')](respondWithResult(_0x9a93f4,null))['catch'](handleError(_0x9a93f4,null));},exports[_0x2c109d('0x30')]=function(_0x17a57e,_0x1ca211){const _0x326c7d=_0x2c109d;return db[_0x326c7d('0x27')]['create'](_0x17a57e[_0x326c7d('0x13')],{})[_0x326c7d('0x25')](respondWithResult(_0x1ca211,0xc9))['catch'](handleError(_0x1ca211,null));},exports[_0x2c109d('0x2')]=function(_0x48b408,_0x59df59){const _0x11d980=_0x2c109d;return _0x48b408[_0x11d980('0x13')]['id']&&delete _0x48b408['body']['id'],db[_0x11d980('0x27')]['findOne']({'where':{'id':_0x48b408['params']['id']}})[_0x11d980('0x25')](handleEntityNotFound(_0x59df59,null))['then'](saveUpdates(_0x48b408['body'],null))[_0x11d980('0x25')](respondWithResult(_0x59df59,null))[_0x11d980('0x11')](handleError(_0x59df59,null));},exports[_0x2c109d('0x6')]=function(_0x3a6daf,_0x215dd9){const _0x3c809c=_0x2c109d;return db[_0x3c809c('0x27')][_0x3c809c('0x16')]({'where':{'id':_0x3a6daf[_0x3c809c('0x1e')]['id']}})[_0x3c809c('0x25')](handleEntityNotFound(_0x215dd9,null))['then'](removeEntity(_0x215dd9,null))[_0x3c809c('0x11')](handleError(_0x215dd9,null));},exports[_0x2c109d('0x33')]=function(_0x2a4f3a,_0xb8830d){const _0x2df926=_0x2c109d;return db[_0x2df926('0x27')][_0x2df926('0x33')]()[_0x2df926('0x25')](respondWithResult(_0xb8830d,null))[_0x2df926('0x11')](handleError(_0xb8830d,null));}; \ No newline at end of file +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 diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index ece50cd..4092fd4 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a441_0x570e=['./mailSubstatus.attributes','exports'];(function(_0x3df84e,_0x570e0f){const _0x3cd359=function(_0x4ca22f){while(--_0x4ca22f){_0x3df84e['push'](_0x3df84e['shift']());}};_0x3cd359(++_0x570e0f);}(a441_0x570e,0xed));const a441_0x3cd3=function(_0x3df84e,_0x570e0f){_0x3df84e=_0x3df84e-0x0;let _0x3cd359=a441_0x570e[_0x3df84e];return _0x3cd359;};const _0x1974bc=a441_0x3cd3;'use strict';const attributes=require(_0x1974bc('0x1'));module[_0x1974bc('0x0')]=function(_0x4ca22f){const _0x2aaeca=_0x4ca22f['define']('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2aaeca;}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index a46e55d..d53cbd6 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a442_0x44f5=['create','put','exports','describe','/:id','get','post','delete','destroy','/describe','../../components/auth/service','index','isAuthenticated'];(function(_0x4ae122,_0x44f5c6){const _0x5cbbc5=function(_0x4ba13f){while(--_0x4ba13f){_0x4ae122['push'](_0x4ae122['shift']());}};_0x5cbbc5(++_0x44f5c6);}(a442_0x44f5,0x70));const a442_0x5cbb=function(_0x4ae122,_0x44f5c6){_0x4ae122=_0x4ae122-0x0;let _0x5cbbc5=a442_0x44f5[_0x4ae122];return _0x5cbbc5;};const _0x517cc4=a442_0x5cbb;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x517cc4('0x2')),controller=require('./mailTransferReport.controller');router[_0x517cc4('0xa')]('/',auth[_0x517cc4('0x4')](),controller[_0x517cc4('0x3')]),router[_0x517cc4('0xa')](_0x517cc4('0x1'),auth['isAuthenticated'](),controller[_0x517cc4('0x8')]),router[_0x517cc4('0xa')](_0x517cc4('0x9'),auth[_0x517cc4('0x4')](),controller['show']),router[_0x517cc4('0xb')]('/',auth[_0x517cc4('0x4')](),controller[_0x517cc4('0x5')]),router[_0x517cc4('0x6')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x517cc4('0xc')](_0x517cc4('0x9'),auth[_0x517cc4('0x4')](),controller[_0x517cc4('0x0')]),module[_0x517cc4('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index b7ad8d2..a6e1027 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a443_0x5da9=['STRING','account','sequelize','DATE','exports','queue','ENUM','NOW'];(function(_0x5d2805,_0x5da953){const _0x241ac5=function(_0x75c96d){while(--_0x75c96d){_0x5d2805['push'](_0x5d2805['shift']());}};_0x241ac5(++_0x5da953);}(a443_0x5da9,0x171));const a443_0x241a=function(_0x5d2805,_0x5da953){_0x5d2805=_0x5d2805-0x0;let _0x241ac5=a443_0x5da9[_0x5d2805];return _0x241ac5;};const _0xd050a=a443_0x241a;'use strict';const Sequelize=require(_0xd050a('0x1'));module[_0xd050a('0x3')]={'uniqueid':{'type':Sequelize[_0xd050a('0x7')],'allowNull':![]},'type':{'type':Sequelize[_0xd050a('0x5')](_0xd050a('0x0'),'agent','queue'),'allowNull':![],'defaultValue':_0xd050a('0x4')},'transferredAt':{'type':Sequelize[_0xd050a('0x2')],'allowNull':![],'defaultValue':Sequelize[_0xd050a('0x6')]}}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index d6a51f9..8c47403 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a444_0x493c=['findAll','filters','name','lodash','map','merge','key','length','filter','offset','sequelize','findOne','where','api','show','like','attributes','undefined','options','fields','status','../../mysqldb','MailTransferReport','params','nolimit','order','describe','count','error','type','query','limit','sendStatus','destroy','json','fieldName','include','create','set','rows','stack','rawAttributes','Content-Range','model','../../components/parsers/qs','includeAll','catch','keys','end','send','body','update','../../config/logger','intersection','then'];(function(_0x36814a,_0x493cd5){const _0x288fd2=function(_0x24c472){while(--_0x24c472){_0x36814a['push'](_0x36814a['shift']());}};_0x288fd2(++_0x493cd5);}(a444_0x493c,0xcf));const a444_0x288f=function(_0x36814a,_0x493cd5){_0x36814a=_0x36814a-0x0;let _0x288fd2=a444_0x493c[_0x36814a];return _0x288fd2;};const _0x539711=a444_0x288f;'use strict';const _=require(_0x539711('0x10')),qs=require(_0x539711('0x2')),logger=require(_0x539711('0xa'))(_0x539711('0x1a')),db=require(_0x539711('0x22'))['db'],{Op}=require(_0x539711('0x17'));function respondWithResult(_0x24c472,_0x2f260a){return _0x2f260a=_0x2f260a||0xc8,function(_0x351a7a){const _0xc55f3f=a444_0x288f;if(_0x351a7a)return _0x24c472[_0xc55f3f('0x21')](_0x2f260a)['json'](_0x351a7a);};}function respondWithFilteredResult(_0x349659,_0x2f1524){return function(_0x4fdc21){const _0x51b8a9=a444_0x288f;if(_0x4fdc21){const _0x332ec2=_0x4fdc21[_0x51b8a9('0x28')],_0x573c79=_0x2f1524['offset'];let _0x522af4=_0x2f1524[_0x51b8a9('0x16')]+_0x2f1524[_0x51b8a9('0x2c')],_0x430293;return _0x522af4>=_0x332ec2?(_0x522af4=_0x332ec2,_0x430293=0xc8):_0x430293=0xce,_0x349659[_0x51b8a9('0x21')](_0x430293),_0x349659[_0x51b8a9('0x33')](_0x51b8a9('0x0'),_0x573c79+'-'+_0x522af4+'/'+_0x332ec2)[_0x51b8a9('0x2f')](_0x4fdc21);}return null;};}function saveUpdates(_0x3f255e){return function(_0x51e8e4){const _0x67d47c=a444_0x288f;if(_0x51e8e4)return _0x51e8e4[_0x67d47c('0x9')](_0x3f255e)[_0x67d47c('0xc')](function(_0x34aea4){return _0x34aea4;});return null;};}function removeEntity(_0x126624){return function(_0x56d760){const _0xa4b860=a444_0x288f;if(_0x56d760)return _0x56d760[_0xa4b860('0x2e')]()[_0xa4b860('0xc')](function(){const _0x298264=_0xa4b860;_0x126624[_0x298264('0x21')](0xcc)[_0x298264('0x6')]();});};}function handleEntityNotFound(_0x2e0310){return function(_0x42d1f6){const _0x356f6d=a444_0x288f;return!_0x42d1f6&&_0x2e0310[_0x356f6d('0x2d')](0x194),_0x42d1f6;};}function handleError(_0x16d766,_0x10b2de){return _0x10b2de=_0x10b2de||0x1f4,function(_0x38f456){const _0x48974c=a444_0x288f;logger[_0x48974c('0x29')](_0x38f456[_0x48974c('0x35')]),_0x38f456[_0x48974c('0xf')]&&delete _0x38f456[_0x48974c('0xf')],_0x16d766[_0x48974c('0x21')](_0x10b2de)[_0x48974c('0x7')](_0x38f456);};}exports['index']=function(_0x11550a,_0x2db652){const _0x14a941=_0x539711;let _0x264c7e={};const _0x43ffa1={},_0x46300c={'count':0x0,'rows':[]},_0x30cb19=_['map'](db[_0x14a941('0x23')][_0x14a941('0x36')],function(_0xaf0fc5){const _0x326967=_0x14a941;return{'name':_0xaf0fc5[_0x326967('0x30')],'type':_0xaf0fc5[_0x326967('0x2a')][_0x326967('0x13')]};});_0x43ffa1[_0x14a941('0x1')]=_[_0x14a941('0x11')](_0x30cb19,_0x14a941('0xf')),_0x43ffa1['query']=_[_0x14a941('0x5')](_0x11550a[_0x14a941('0x2b')]),_0x43ffa1[_0x14a941('0xe')]=_[_0x14a941('0xb')](_0x43ffa1[_0x14a941('0x1')],_0x43ffa1[_0x14a941('0x2b')]),_0x264c7e['attributes']=_[_0x14a941('0xb')](_0x43ffa1[_0x14a941('0x1')],qs['fields'](_0x11550a['query'][_0x14a941('0x20')])),_0x264c7e['attributes']=_0x264c7e[_0x14a941('0x1d')]['length']?_0x264c7e['attributes']:_0x43ffa1['model'];typeof _0x11550a[_0x14a941('0x2b')][_0x14a941('0x25')]===_0x14a941('0x1e')&&(_0x264c7e[_0x14a941('0x2c')]=qs[_0x14a941('0x2c')](_0x11550a['query'][_0x14a941('0x2c')]),_0x264c7e[_0x14a941('0x16')]=qs[_0x14a941('0x16')](_0x11550a[_0x14a941('0x2b')][_0x14a941('0x16')]));_0x264c7e[_0x14a941('0x26')]=qs['sort'](_0x11550a[_0x14a941('0x2b')]['sort']),_0x264c7e[_0x14a941('0x19')]=qs[_0x14a941('0xe')](_['pick'](_0x11550a[_0x14a941('0x2b')],_0x43ffa1[_0x14a941('0xe')]),_0x30cb19);_0x11550a['query'][_0x14a941('0x15')]&&(_0x264c7e['where']=_['merge'](_0x264c7e[_0x14a941('0x19')],{[Op['or']]:_[_0x14a941('0x11')](_0x30cb19,function(_0x1bfef4){const _0x869039=_0x14a941;if(_0x1bfef4['type']!=='VIRTUAL'){const _0x3d7219={};return _0x3d7219[_0x1bfef4[_0x869039('0xf')]]={[Op[_0x869039('0x1c')]]:'%'+_0x11550a[_0x869039('0x2b')][_0x869039('0x15')]+'%'},_0x3d7219;}})}));_0x264c7e=_['merge']({},_0x264c7e,_0x11550a[_0x14a941('0x1f')]);const _0x1095fa={'where':_0x264c7e[_0x14a941('0x19')]};return db[_0x14a941('0x23')][_0x14a941('0x28')](_0x1095fa)[_0x14a941('0xc')](function(_0x4b643d){const _0xaf77a2=_0x14a941;return _0x46300c[_0xaf77a2('0x28')]=_0x4b643d,_0x11550a[_0xaf77a2('0x2b')][_0xaf77a2('0x3')]&&(_0x264c7e['include']=[{'all':!![]}]),db['MailTransferReport'][_0xaf77a2('0xd')](_0x264c7e);})[_0x14a941('0xc')](function(_0x1d4451){const _0x2dc468=_0x14a941;return _0x46300c[_0x2dc468('0x34')]=_0x1d4451,_0x46300c;})[_0x14a941('0xc')](respondWithFilteredResult(_0x2db652,_0x264c7e))[_0x14a941('0x4')](handleError(_0x2db652,null));},exports[_0x539711('0x1b')]=function(_0x14e978,_0x313dbb){const _0x1e538b=_0x539711;let _0x1178ef={'raw':!![],'where':{'id':_0x14e978[_0x1e538b('0x24')]['id']}};const _0xd1e23a={};return _0xd1e23a[_0x1e538b('0x1')]=_['keys'](db[_0x1e538b('0x23')][_0x1e538b('0x36')]),_0xd1e23a[_0x1e538b('0x2b')]=_[_0x1e538b('0x5')](_0x14e978[_0x1e538b('0x2b')]),_0xd1e23a[_0x1e538b('0xe')]=_['intersection'](_0xd1e23a[_0x1e538b('0x1')],_0xd1e23a[_0x1e538b('0x2b')]),_0x1178ef[_0x1e538b('0x1d')]=_[_0x1e538b('0xb')](_0xd1e23a[_0x1e538b('0x1')],qs[_0x1e538b('0x20')](_0x14e978[_0x1e538b('0x2b')]['fields'])),_0x1178ef[_0x1e538b('0x1d')]=_0x1178ef[_0x1e538b('0x1d')][_0x1e538b('0x14')]?_0x1178ef[_0x1e538b('0x1d')]:_0xd1e23a['model'],_0x14e978[_0x1e538b('0x2b')]['includeAll']&&(_0x1178ef[_0x1e538b('0x31')]=[{'all':!![]}]),_0x1178ef=_[_0x1e538b('0x12')]({},_0x1178ef,_0x14e978[_0x1e538b('0x1f')]),db[_0x1e538b('0x23')][_0x1e538b('0x18')](_0x1178ef)[_0x1e538b('0xc')](handleEntityNotFound(_0x313dbb,null))[_0x1e538b('0xc')](respondWithResult(_0x313dbb,null))[_0x1e538b('0x4')](handleError(_0x313dbb,null));},exports[_0x539711('0x32')]=function(_0x53fad5,_0x41579f){const _0x479496=_0x539711;return db[_0x479496('0x23')][_0x479496('0x32')](_0x53fad5[_0x479496('0x8')],{})[_0x479496('0xc')](respondWithResult(_0x41579f,0xc9))['catch'](handleError(_0x41579f,null));},exports[_0x539711('0x9')]=function(_0x4edc87,_0x14fa0a){const _0x1e47be=_0x539711;return _0x4edc87[_0x1e47be('0x8')]['id']&&delete _0x4edc87[_0x1e47be('0x8')]['id'],db['MailTransferReport'][_0x1e47be('0x18')]({'where':{'id':_0x4edc87['params']['id']}})[_0x1e47be('0xc')](handleEntityNotFound(_0x14fa0a,null))[_0x1e47be('0xc')](saveUpdates(_0x4edc87[_0x1e47be('0x8')],null))[_0x1e47be('0xc')](respondWithResult(_0x14fa0a,null))[_0x1e47be('0x4')](handleError(_0x14fa0a,null));},exports['destroy']=function(_0x38d8b8,_0x4de2db){const _0x26931a=_0x539711;return db[_0x26931a('0x23')][_0x26931a('0x18')]({'where':{'id':_0x38d8b8['params']['id']}})[_0x26931a('0xc')](handleEntityNotFound(_0x4de2db,null))[_0x26931a('0xc')](removeEntity(_0x4de2db,null))[_0x26931a('0x4')](handleError(_0x4de2db,null));},exports[_0x539711('0x27')]=function(_0x145bfa,_0x525eff){const _0x19ad82=_0x539711;return db[_0x19ad82('0x23')][_0x19ad82('0x27')]()[_0x19ad82('0xc')](respondWithResult(_0x525eff,null))[_0x19ad82('0x4')](handleError(_0x525eff,null));}; \ No newline at end of file +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 diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index 4b0b6f0..eff5aae 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a445_0x2b0a=['uniqueid','report_mail_transfer','define','./mailTransferReport.attributes','MailTransferReport'];(function(_0x523613,_0x2b0a42){const _0x2739e1=function(_0x29379b){while(--_0x29379b){_0x523613['push'](_0x523613['shift']());}};_0x2739e1(++_0x2b0a42);}(a445_0x2b0a,0x1bd));const a445_0x2739=function(_0x523613,_0x2b0a42){_0x523613=_0x523613-0x0;let _0x2739e1=a445_0x2b0a[_0x523613];return _0x2739e1;};const _0x52e027=a445_0x2739;'use strict';const attributes=require(_0x52e027('0x3'));module['exports']=function(_0x29379b){const _0x46db9d=_0x52e027,_0x22f61d=_0x29379b[_0x46db9d('0x2')](_0x46db9d('0x4'),attributes,{'tableName':_0x46db9d('0x1'),'paranoid':![],'indexes':[{'name':_0x46db9d('0x0'),'fields':['uniqueid']}],'timestamps':!![]});return _0x22f61d;}; \ No newline at end of file +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 diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index 4d43374..f92d347 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a446_0x23da=['create','put','index','../../components/auth/service','Router','destroy','/describe','update','/:id','post','isAuthenticated','exports','get','describe','show','express'];(function(_0x552e2d,_0x23dac5){const _0x1319a1=function(_0x26409b){while(--_0x26409b){_0x552e2d['push'](_0x552e2d['shift']());}};_0x1319a1(++_0x23dac5);}(a446_0x23da,0x13d));const a446_0x1319=function(_0x552e2d,_0x23dac5){_0x552e2d=_0x552e2d-0x0;let _0x1319a1=a446_0x23da[_0x552e2d];return _0x1319a1;};const _0x37fb56=a446_0x1319;'use strict';const express=require(_0x37fb56('0x2')),router=express[_0x37fb56('0x7')](),auth=require(_0x37fb56('0x6')),controller=require('./memberReport.controller');router[_0x37fb56('0xf')]('/',auth['isAuthenticated'](),controller[_0x37fb56('0x5')]),router['get'](_0x37fb56('0x9'),auth[_0x37fb56('0xd')](),controller[_0x37fb56('0x0')]),router['get'](_0x37fb56('0xb'),auth[_0x37fb56('0xd')](),controller[_0x37fb56('0x1')]),router[_0x37fb56('0xc')]('/',auth[_0x37fb56('0xd')](),controller[_0x37fb56('0x3')]),router[_0x37fb56('0x4')](_0x37fb56('0xb'),auth[_0x37fb56('0xd')](),controller[_0x37fb56('0xa')]),router['delete']('/:id',auth[_0x37fb56('0xd')](),controller[_0x37fb56('0x8')]),module[_0x37fb56('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index f01e690..5931143 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a447_0x538e=['DATE','talk:[inbound,\x20outbound],\x20pause:[reason]','DEFAULT\x20PAUSE','duration','talk:[queue]','seconds','INTEGER','getDataValue','LOGIN,\x20PAUSE,\x20TALKING','talk:[start]','talk:[destination]','exitAt','setDataValue','diff','STRING','enterAt'];(function(_0x2b4b57,_0x538e41){const _0x13ad60=function(_0x3b73c9){while(--_0x3b73c9){_0x2b4b57['push'](_0x2b4b57['shift']());}};_0x13ad60(++_0x538e41);}(a447_0x538e,0x19e));const a447_0x13ad=function(_0x2b4b57,_0x538e41){_0x2b4b57=_0x2b4b57-0x0;let _0x13ad60=a447_0x538e[_0x2b4b57];return _0x13ad60;};const _0x1b975b=a447_0x13ad;'use strict';const Sequelize=require('sequelize'),moment=require('moment');module['exports']={'channel':{'type':Sequelize[_0x1b975b('0x0')]},'membername':{'type':Sequelize[_0x1b975b('0x0')]},'interface':{'type':Sequelize[_0x1b975b('0x0')]},'type':{'type':Sequelize[_0x1b975b('0x0')],'defaultValue':_0x1b975b('0x4'),'comment':_0x1b975b('0xa')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0x1b975b('0x2')]},'exitAt':{'type':Sequelize[_0x1b975b('0x2')],'set':function(_0x3b73c9){const _0x5ddee5=_0x1b975b,_0x47df6e=moment(_0x3b73c9),_0x3caf05=moment(this[_0x5ddee5('0x9')](_0x5ddee5('0x1'))),_0x16c7b7=_0x47df6e[_0x5ddee5('0xf')](_0x3caf05,_0x5ddee5('0x7'));this[_0x5ddee5('0xe')](_0x5ddee5('0xd'),_0x3b73c9),this[_0x5ddee5('0xe')](_0x5ddee5('0x5'),_0x16c7b7||null);}},'data1':{'type':Sequelize[_0x1b975b('0x0')],'comment':_0x1b975b('0x3')},'data2':{'type':Sequelize[_0x1b975b('0x0')],'comment':_0x1b975b('0xb')},'data3':{'type':Sequelize[_0x1b975b('0x0')],'comment':_0x1b975b('0xc')},'data4':{'type':Sequelize[_0x1b975b('0x0')],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize[_0x1b975b('0x0')],'comment':_0x1b975b('0x6')},'role':{'type':Sequelize[_0x1b975b('0x0')]},'internal':{'type':Sequelize[_0x1b975b('0x8')]},'uniqueid':{'type':Sequelize[_0x1b975b('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 38c5ffe..15b9fcc 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a448_0x1186=['includeAll','rawAttributes','fieldName','limit','findOne','create','attributes','like','describe','destroy','MemberReport','sequelize','json','offset','fields','undefined','../../components/parsers/qs','body','params','../../mysqldb','map','filters','include','update','options','merge','send','then','filter','catch','findAll','name','pick','error','VIRTUAL','type','key','intersection','nolimit','status','query','order','api','Content-Range','where','stack','../../config/logger','model','length','count','end','keys'];(function(_0x14eb67,_0x11868d){const _0xfc248f=function(_0x1ba777){while(--_0x1ba777){_0x14eb67['push'](_0x14eb67['shift']());}};_0xfc248f(++_0x11868d);}(a448_0x1186,0x112));const a448_0xfc24=function(_0x14eb67,_0x11868d){_0x14eb67=_0x14eb67-0x0;let _0xfc248f=a448_0x1186[_0x14eb67];return _0xfc248f;};const _0x24b80d=a448_0xfc24;'use strict';const _=require('lodash'),qs=require(_0x24b80d('0x2')),logger=require(_0x24b80d('0x20'))(_0x24b80d('0x1c')),db=require(_0x24b80d('0x5'))['db'],{Op}=require(_0x24b80d('0x31'));function respondWithResult(_0x1ba777,_0x5558f9){return _0x5558f9=_0x5558f9||0xc8,function(_0x7067c1){const _0x45f2bd=a448_0xfc24;if(_0x7067c1)return _0x1ba777[_0x45f2bd('0x19')](_0x5558f9)[_0x45f2bd('0x32')](_0x7067c1);};}function respondWithFilteredResult(_0x3be896,_0x29af75){return function(_0x52dabd){const _0x2437c8=a448_0xfc24;if(_0x52dabd){const _0x53919e=_0x52dabd[_0x2437c8('0x23')],_0xe6e58=_0x29af75['offset'];let _0x344821=_0x29af75[_0x2437c8('0x33')]+_0x29af75[_0x2437c8('0x29')],_0x511a89;return _0x344821>=_0x53919e?(_0x344821=_0x53919e,_0x511a89=0xc8):_0x511a89=0xce,_0x3be896[_0x2437c8('0x19')](_0x511a89),_0x3be896['set'](_0x2437c8('0x1d'),_0xe6e58+'-'+_0x344821+'/'+_0x53919e)[_0x2437c8('0x32')](_0x52dabd);}return null;};}function saveUpdates(_0x426b0a){return function(_0x2d13e9){const _0x4e4224=a448_0xfc24;if(_0x2d13e9)return _0x2d13e9[_0x4e4224('0x9')](_0x426b0a)['then'](function(_0x4e080f){return _0x4e080f;});return null;};}function removeEntity(_0xb64e1f){return function(_0x35f1cd){const _0xcb5f1d=a448_0xfc24;if(_0x35f1cd)return _0x35f1cd['destroy']()[_0xcb5f1d('0xd')](function(){const _0x7d7236=_0xcb5f1d;_0xb64e1f[_0x7d7236('0x19')](0xcc)[_0x7d7236('0x24')]();});};}function handleEntityNotFound(_0x49ac87){return function(_0x2faff5){return!_0x2faff5&&_0x49ac87['sendStatus'](0x194),_0x2faff5;};}function handleError(_0x4f7116,_0x59eef2){return _0x59eef2=_0x59eef2||0x1f4,function(_0x47a473){const _0x1cb1d9=a448_0xfc24;logger[_0x1cb1d9('0x13')](_0x47a473[_0x1cb1d9('0x1f')]),_0x47a473[_0x1cb1d9('0x11')]&&delete _0x47a473[_0x1cb1d9('0x11')],_0x4f7116[_0x1cb1d9('0x19')](_0x59eef2)[_0x1cb1d9('0xc')](_0x47a473);};}exports['index']=function(_0x2daff7,_0x1d95d2){const _0x3bb0c3=_0x24b80d;let _0x5e4452={};const _0x34457d={},_0x395d88={'count':0x0,'rows':[]},_0x223c93=_[_0x3bb0c3('0x6')](db[_0x3bb0c3('0x30')][_0x3bb0c3('0x27')],function(_0x3dae68){const _0x184fbc=_0x3bb0c3;return{'name':_0x3dae68[_0x184fbc('0x28')],'type':_0x3dae68[_0x184fbc('0x15')][_0x184fbc('0x16')]};});_0x34457d[_0x3bb0c3('0x21')]=_['map'](_0x223c93,_0x3bb0c3('0x11')),_0x34457d[_0x3bb0c3('0x1a')]=_[_0x3bb0c3('0x25')](_0x2daff7[_0x3bb0c3('0x1a')]),_0x34457d[_0x3bb0c3('0x7')]=_[_0x3bb0c3('0x17')](_0x34457d[_0x3bb0c3('0x21')],_0x34457d[_0x3bb0c3('0x1a')]),_0x5e4452[_0x3bb0c3('0x2c')]=_[_0x3bb0c3('0x17')](_0x34457d[_0x3bb0c3('0x21')],qs[_0x3bb0c3('0x0')](_0x2daff7[_0x3bb0c3('0x1a')][_0x3bb0c3('0x0')])),_0x5e4452[_0x3bb0c3('0x2c')]=_0x5e4452[_0x3bb0c3('0x2c')][_0x3bb0c3('0x22')]?_0x5e4452['attributes']:_0x34457d['model'];typeof _0x2daff7[_0x3bb0c3('0x1a')][_0x3bb0c3('0x18')]===_0x3bb0c3('0x1')&&(_0x5e4452[_0x3bb0c3('0x29')]=qs[_0x3bb0c3('0x29')](_0x2daff7[_0x3bb0c3('0x1a')][_0x3bb0c3('0x29')]),_0x5e4452[_0x3bb0c3('0x33')]=qs[_0x3bb0c3('0x33')](_0x2daff7[_0x3bb0c3('0x1a')][_0x3bb0c3('0x33')]));_0x5e4452[_0x3bb0c3('0x1b')]=qs['sort'](_0x2daff7[_0x3bb0c3('0x1a')]['sort']),_0x5e4452[_0x3bb0c3('0x1e')]=qs[_0x3bb0c3('0x7')](_[_0x3bb0c3('0x12')](_0x2daff7[_0x3bb0c3('0x1a')],_0x34457d[_0x3bb0c3('0x7')]),_0x223c93);_0x2daff7['query'][_0x3bb0c3('0xe')]&&(_0x5e4452['where']=_[_0x3bb0c3('0xb')](_0x5e4452[_0x3bb0c3('0x1e')],{[Op['or']]:_[_0x3bb0c3('0x6')](_0x223c93,function(_0x277111){const _0x25a49d=_0x3bb0c3;if(_0x277111[_0x25a49d('0x15')]!==_0x25a49d('0x14')){const _0xcd8c47={};return _0xcd8c47[_0x277111[_0x25a49d('0x11')]]={[Op[_0x25a49d('0x2d')]]:'%'+_0x2daff7['query'][_0x25a49d('0xe')]+'%'},_0xcd8c47;}})}));_0x5e4452=_[_0x3bb0c3('0xb')]({},_0x5e4452,_0x2daff7['options']);const _0x1a13c8={'where':_0x5e4452[_0x3bb0c3('0x1e')]};return db['MemberReport'][_0x3bb0c3('0x23')](_0x1a13c8)[_0x3bb0c3('0xd')](function(_0x47d311){const _0x1d5b53=_0x3bb0c3;return _0x395d88[_0x1d5b53('0x23')]=_0x47d311,_0x2daff7[_0x1d5b53('0x1a')][_0x1d5b53('0x26')]&&(_0x5e4452[_0x1d5b53('0x8')]=[{'all':!![]}]),db['MemberReport'][_0x1d5b53('0x10')](_0x5e4452);})[_0x3bb0c3('0xd')](function(_0x3bc127){return _0x395d88['rows']=_0x3bc127,_0x395d88;})['then'](respondWithFilteredResult(_0x1d95d2,_0x5e4452))[_0x3bb0c3('0xf')](handleError(_0x1d95d2,null));},exports['show']=function(_0x4b64e1,_0x5bfcfc){const _0x1a8bc9=_0x24b80d;let _0x1fadc0={'raw':!![],'where':{'id':_0x4b64e1['params']['id']}};const _0x1167e0={};return _0x1167e0[_0x1a8bc9('0x21')]=_[_0x1a8bc9('0x25')](db['MemberReport'][_0x1a8bc9('0x27')]),_0x1167e0['query']=_[_0x1a8bc9('0x25')](_0x4b64e1[_0x1a8bc9('0x1a')]),_0x1167e0['filters']=_[_0x1a8bc9('0x17')](_0x1167e0[_0x1a8bc9('0x21')],_0x1167e0[_0x1a8bc9('0x1a')]),_0x1fadc0[_0x1a8bc9('0x2c')]=_[_0x1a8bc9('0x17')](_0x1167e0[_0x1a8bc9('0x21')],qs[_0x1a8bc9('0x0')](_0x4b64e1[_0x1a8bc9('0x1a')][_0x1a8bc9('0x0')])),_0x1fadc0[_0x1a8bc9('0x2c')]=_0x1fadc0[_0x1a8bc9('0x2c')][_0x1a8bc9('0x22')]?_0x1fadc0[_0x1a8bc9('0x2c')]:_0x1167e0['model'],_0x4b64e1['query'][_0x1a8bc9('0x26')]&&(_0x1fadc0[_0x1a8bc9('0x8')]=[{'all':!![]}]),_0x1fadc0=_[_0x1a8bc9('0xb')]({},_0x1fadc0,_0x4b64e1[_0x1a8bc9('0xa')]),db['MemberReport'][_0x1a8bc9('0x2a')](_0x1fadc0)[_0x1a8bc9('0xd')](handleEntityNotFound(_0x5bfcfc,null))[_0x1a8bc9('0xd')](respondWithResult(_0x5bfcfc,null))[_0x1a8bc9('0xf')](handleError(_0x5bfcfc,null));},exports[_0x24b80d('0x2b')]=function(_0x504d83,_0x15dc30){const _0x51a688=_0x24b80d;return db[_0x51a688('0x30')][_0x51a688('0x2b')](_0x504d83[_0x51a688('0x3')],{})[_0x51a688('0xd')](respondWithResult(_0x15dc30,0xc9))[_0x51a688('0xf')](handleError(_0x15dc30,null));},exports[_0x24b80d('0x9')]=function(_0x26bf51,_0xddf7aa){const _0x4accfd=_0x24b80d;return _0x26bf51['body']['id']&&delete _0x26bf51[_0x4accfd('0x3')]['id'],db['MemberReport']['findOne']({'where':{'id':_0x26bf51['params']['id']}})['then'](handleEntityNotFound(_0xddf7aa,null))[_0x4accfd('0xd')](saveUpdates(_0x26bf51[_0x4accfd('0x3')],null))[_0x4accfd('0xd')](respondWithResult(_0xddf7aa,null))[_0x4accfd('0xf')](handleError(_0xddf7aa,null));},exports[_0x24b80d('0x2f')]=function(_0x4a593f,_0x3723a1){const _0x2ef316=_0x24b80d;return db[_0x2ef316('0x30')][_0x2ef316('0x2a')]({'where':{'id':_0x4a593f[_0x2ef316('0x4')]['id']}})[_0x2ef316('0xd')](handleEntityNotFound(_0x3723a1,null))[_0x2ef316('0xd')](removeEntity(_0x3723a1,null))[_0x2ef316('0xf')](handleError(_0x3723a1,null));},exports[_0x24b80d('0x2e')]=function(_0x239733,_0x49f6f4){const _0x2536ea=_0x24b80d;return db[_0x2536ea('0x30')][_0x2536ea('0x2e')]()[_0x2536ea('0xd')](respondWithResult(_0x49f6f4,null))['catch'](handleError(_0x49f6f4,null));}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index 729eed5..999fa80 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a449_0x5e45=['MemberReport','define','./memberReport.attributes','membername','exports'];(function(_0x3afb59,_0x5e4507){const _0x291ac2=function(_0x20b7ad){while(--_0x20b7ad){_0x3afb59['push'](_0x3afb59['shift']());}};_0x291ac2(++_0x5e4507);}(a449_0x5e45,0xbb));const a449_0x291a=function(_0x3afb59,_0x5e4507){_0x3afb59=_0x3afb59-0x0;let _0x291ac2=a449_0x5e45[_0x3afb59];return _0x291ac2;};const _0x5e736a=a449_0x291a;'use strict';const attributes=require(_0x5e736a('0x0'));module[_0x5e736a('0x2')]=function(_0x20b7ad){const _0x577a08=_0x5e736a,_0x5a0338=_0x20b7ad[_0x577a08('0x4')](_0x577a08('0x3'),attributes,{'tableName':'report_member','paranoid':![],'indexes':[{'name':'membername_interface','fields':[_0x577a08('0x1'),'interface']}],'timestamps':!![]});return _0x5a0338;}; \ No newline at end of file +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 diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index fc7c064..2ce6d00 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a450_0x3af5=['attributes','GetMemberReport','limit','then','MemberReport','where','stringify','error','message','rpc','raw','include','body','model','create','../../config/logger','CreateMemberReport','catch','options','debug','map','update','UpdateMemberReport','../../mysqldb','info'];(function(_0x27d9ff,_0x3af5d8){const _0xe23e37=function(_0x13b6fb){while(--_0x13b6fb){_0x27d9ff['push'](_0x27d9ff['shift']());}};_0xe23e37(++_0x3af5d8);}(a450_0x3af5,0x88));const a450_0xe23e=function(_0x27d9ff,_0x3af5d8){_0x27d9ff=_0x27d9ff-0x0;let _0xe23e37=a450_0x3af5[_0x27d9ff];return _0xe23e37;};const _0x37e079=a450_0xe23e;'use strict';const _=require('lodash'),db=require(_0x37e079('0xc'))['db'],logger=require(_0x37e079('0x4'))(_0x37e079('0x17'));exports[_0x37e079('0xf')]=function(_0x13b6fb){const _0xd3d5ce=this;return new Promise(function(_0x40d5d0,_0x37ba98){const _0x165946=a450_0xe23e;return db[_0x165946('0x12')]['findAll']({'raw':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x18')]===undefined?!![]:![]:!![],'where':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x13')]||null:null,'attributes':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0xe')]||null:null,'limit':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')][_0x165946('0x10')]||null:null,'include':_0x13b6fb[_0x165946('0x7')]?_0x13b6fb[_0x165946('0x7')]['include']?_[_0x165946('0x9')](_0x13b6fb[_0x165946('0x7')]['include'],function(_0x4ccb78){const _0x508b65=_0x165946;return{'model':db[_0x4ccb78[_0x508b65('0x2')]],'as':_0x4ccb78['as'],'attributes':_0x4ccb78['attributes'],'include':_0x4ccb78[_0x508b65('0x0')]?_['map'](_0x4ccb78[_0x508b65('0x0')],function(_0x3379a6){const _0x12fc33=_0x508b65;return{'model':db[_0x3379a6[_0x12fc33('0x2')]],'as':_0x3379a6['as'],'attributes':_0x3379a6['attributes'],'include':_0x3379a6[_0x12fc33('0x0')]?_[_0x12fc33('0x9')](_0x3379a6[_0x12fc33('0x0')],function(_0x186133){const _0x266855=_0x12fc33;return{'model':db[_0x186133[_0x266855('0x2')]],'as':_0x186133['as'],'attributes':_0x186133['attributes']};}):[]};}):[]};}):[]:[]})[_0x165946('0x11')](function(_0x2a0e8d){const _0x569042=_0x165946;logger['info'](_0x569042('0xf'),_0x13b6fb),logger[_0x569042('0x8')](_0x569042('0xf'),_0x13b6fb,JSON['stringify'](_0x2a0e8d)),_0x40d5d0(_0x2a0e8d);})[_0x165946('0x6')](function(_0x4193ce){const _0x13825e=_0x165946;logger['error']('GetMemberReport',_0x4193ce[_0x13825e('0x16')],_0x13b6fb),_0x37ba98(_0xd3d5ce['error'](0x1f4,_0x4193ce[_0x13825e('0x16')]));});});},exports[_0x37e079('0x5')]=function(_0x4963f6){const _0x20996b=this;return new Promise(function(_0x2c410b,_0x24e87f){const _0x44f228=a450_0xe23e;return db[_0x44f228('0x12')][_0x44f228('0x3')](_0x4963f6[_0x44f228('0x1')],{'raw':_0x4963f6[_0x44f228('0x7')]?_0x4963f6['options'][_0x44f228('0x18')]===undefined?!![]:![]:!![]})[_0x44f228('0x11')](function(_0x474e50){const _0x1ec4b5=_0x44f228;logger[_0x1ec4b5('0xd')]('CreateMemberReport',_0x4963f6),logger[_0x1ec4b5('0x8')]('CreateMemberReport',_0x4963f6,JSON[_0x1ec4b5('0x14')](_0x474e50)),_0x2c410b(_0x474e50);})[_0x44f228('0x6')](function(_0x195805){const _0x4a937d=_0x44f228;logger['error'](_0x4a937d('0x5'),_0x195805[_0x4a937d('0x16')],_0x4963f6),_0x24e87f(_0x20996b[_0x4a937d('0x15')](0x1f4,_0x195805[_0x4a937d('0x16')]));});});},exports[_0x37e079('0xb')]=function(_0x2a9b3c){const _0x3d53bf=this;return new Promise(function(_0xcb71af,_0x4c485e){const _0x2eff7d=a450_0xe23e;return db[_0x2eff7d('0x12')][_0x2eff7d('0xa')](_0x2a9b3c[_0x2eff7d('0x1')],{'raw':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c['options'][_0x2eff7d('0x13')]||null:null,'attributes':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0xe')]||null:null,'limit':_0x2a9b3c[_0x2eff7d('0x7')]?_0x2a9b3c[_0x2eff7d('0x7')][_0x2eff7d('0x10')]||null:null})[_0x2eff7d('0x11')](function(_0x284e04){const _0x5b5408=_0x2eff7d;logger[_0x5b5408('0xd')](_0x5b5408('0xb'),_0x2a9b3c),logger['debug'](_0x5b5408('0xb'),_0x2a9b3c,JSON[_0x5b5408('0x14')](_0x284e04)),_0xcb71af(_0x284e04);})['catch'](function(_0x10e185){const _0x3cee6e=_0x2eff7d;logger[_0x3cee6e('0x15')](_0x3cee6e('0xb'),_0x10e185[_0x3cee6e('0x16')],_0x2a9b3c),_0x4c485e(_0x3d53bf['error'](0x1f4,_0x10e185[_0x3cee6e('0x16')]));});});}; \ No newline at end of file +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 diff --git a/server/api/migration/index.js b/server/api/migration/index.js index 47ea210..f297c19 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a451_0x1b90=['index','Router','./migration.controller','get','exports','express'];(function(_0x173a8e,_0x1b9045){const _0x5f1f05=function(_0x206632){while(--_0x206632){_0x173a8e['push'](_0x173a8e['shift']());}};_0x5f1f05(++_0x1b9045);}(a451_0x1b90,0x1e7));const a451_0x5f1f=function(_0x173a8e,_0x1b9045){_0x173a8e=_0x173a8e-0x0;let _0x5f1f05=a451_0x1b90[_0x173a8e];return _0x5f1f05;};const _0x2c0e66=a451_0x5f1f;'use strict';const express=require(_0x2c0e66('0x4')),router=express[_0x2c0e66('0x0')](),controller=require(_0x2c0e66('0x1'));router[_0x2c0e66('0x2')]('/',controller[_0x2c0e66('0x5')]),module[_0x2c0e66('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/migration/migration.attributes.js b/server/api/migration/migration.attributes.js index 9ac8eef..6fa2c8d 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a452_0x3c7d=['version','exports','STRING'];(function(_0x103b44,_0x3c7df3){const _0x4ab57c=function(_0x50ceb5){while(--_0x50ceb5){_0x103b44['push'](_0x103b44['shift']());}};_0x4ab57c(++_0x3c7df3);}(a452_0x3c7d,0x15f));const a452_0x4ab5=function(_0x103b44,_0x3c7df3){_0x103b44=_0x103b44-0x0;let _0x4ab57c=a452_0x3c7d[_0x103b44];return _0x4ab57c;};const _0x31e55c=a452_0x4ab5;'use strict';const Sequelize=require('sequelize');module[_0x31e55c('0x1')]={'version':{'type':Sequelize[_0x31e55c('0x2')],'unique':_0x31e55c('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index cf5774e..cab6bbb 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a453_0x4730=['fields','options','type','key','Content-Range','include','sequelize','lodash','api','status','offset','merge','send','catch','nolimit','keys','query','intersection','name','length','rows','stack','like','order','../../mysqldb','../../components/parsers/qs','sort','filter','limit','where','Migration','then','filters','error','index','findAll','model','VIRTUAL','count','map','attributes'];(function(_0x39df45,_0x47303e){const _0x17a8d1=function(_0x2a5672){while(--_0x2a5672){_0x39df45['push'](_0x39df45['shift']());}};_0x17a8d1(++_0x47303e);}(a453_0x4730,0xb5));const a453_0x17a8=function(_0x39df45,_0x47303e){_0x39df45=_0x39df45-0x0;let _0x17a8d1=a453_0x4730[_0x39df45];return _0x17a8d1;};const _0x130980=a453_0x17a8;'use strict';const _=require(_0x130980('0x1f')),qs=require(_0x130980('0x8')),logger=require('../../config/logger')(_0x130980('0x20')),db=require(_0x130980('0x7'))['db'],{Op}=require(_0x130980('0x1e'));function respondWithFilteredResult(_0x2a5672,_0x2c372c){return function(_0x200430){const _0x4f036a=a453_0x17a8;if(_0x200430){const _0x2794dd=_0x200430[_0x4f036a('0x15')],_0x302b58=_0x2c372c[_0x4f036a('0x22')];let _0x131cb0=_0x2c372c[_0x4f036a('0x22')]+_0x2c372c[_0x4f036a('0xb')],_0x41b66a;return _0x131cb0>=_0x2794dd?(_0x131cb0=_0x2794dd,_0x41b66a=0xc8):_0x41b66a=0xce,_0x2a5672[_0x4f036a('0x21')](_0x41b66a),_0x2a5672['set'](_0x4f036a('0x1c'),_0x302b58+'-'+_0x131cb0+'/'+_0x2794dd)['json'](_0x200430);}return null;};}function handleError(_0xea46,_0xa68e06){return _0xa68e06=_0xa68e06||0x1f4,function(_0x28e478){const _0xd253c7=a453_0x17a8;logger[_0xd253c7('0x10')](_0x28e478[_0xd253c7('0x4')]),_0x28e478[_0xd253c7('0x1')]&&delete _0x28e478[_0xd253c7('0x1')],_0xea46[_0xd253c7('0x21')](_0xa68e06)[_0xd253c7('0x24')](_0x28e478);};}exports[_0x130980('0x11')]=function(_0x58e292,_0x27abd3){const _0x550723=_0x130980;let _0x19c4d0={};const _0x334fcd={},_0x113474={'count':0x0,'rows':[]},_0x5c64dc=_[_0x550723('0x16')](db['Migration']['rawAttributes'],function(_0x41a292){const _0x3aa770=_0x550723;return{'name':_0x41a292['fieldName'],'type':_0x41a292['type'][_0x3aa770('0x1b')]};});_0x334fcd[_0x550723('0x13')]=_[_0x550723('0x16')](_0x5c64dc,_0x550723('0x1')),_0x334fcd['query']=_[_0x550723('0x27')](_0x58e292[_0x550723('0x28')]),_0x334fcd[_0x550723('0xf')]=_[_0x550723('0x0')](_0x334fcd[_0x550723('0x13')],_0x334fcd[_0x550723('0x28')]),_0x19c4d0[_0x550723('0x17')]=_[_0x550723('0x0')](_0x334fcd[_0x550723('0x13')],qs[_0x550723('0x18')](_0x58e292[_0x550723('0x28')][_0x550723('0x18')])),_0x19c4d0[_0x550723('0x17')]=_0x19c4d0[_0x550723('0x17')][_0x550723('0x2')]?_0x19c4d0[_0x550723('0x17')]:_0x334fcd[_0x550723('0x13')];typeof _0x58e292['query'][_0x550723('0x26')]==='undefined'&&(_0x19c4d0[_0x550723('0xb')]=qs[_0x550723('0xb')](_0x58e292[_0x550723('0x28')][_0x550723('0xb')]),_0x19c4d0[_0x550723('0x22')]=qs[_0x550723('0x22')](_0x58e292[_0x550723('0x28')]['offset']));_0x19c4d0[_0x550723('0x6')]=qs[_0x550723('0x9')](_0x58e292[_0x550723('0x28')]['sort']),_0x19c4d0[_0x550723('0xc')]=qs['filters'](_['pick'](_0x58e292[_0x550723('0x28')],_0x334fcd['filters']),_0x5c64dc);_0x58e292['query'][_0x550723('0xa')]&&(_0x19c4d0[_0x550723('0xc')]=_[_0x550723('0x23')](_0x19c4d0['where'],{[Op['or']]:_['map'](_0x5c64dc,function(_0x36bdc9){const _0x5ba2fd=_0x550723;if(_0x36bdc9[_0x5ba2fd('0x1a')]!==_0x5ba2fd('0x14')){const _0x5f2728={};return _0x5f2728[_0x36bdc9[_0x5ba2fd('0x1')]]={[Op[_0x5ba2fd('0x5')]]:'%'+_0x58e292[_0x5ba2fd('0x28')]['filter']+'%'},_0x5f2728;}})}));_0x19c4d0=_[_0x550723('0x23')]({},_0x19c4d0,_0x58e292[_0x550723('0x19')]);const _0x52b695={'where':_0x19c4d0[_0x550723('0xc')]};return db[_0x550723('0xd')][_0x550723('0x15')](_0x52b695)['then'](function(_0x4bd465){const _0x54e8fd=_0x550723;return _0x113474[_0x54e8fd('0x15')]=_0x4bd465,_0x58e292[_0x54e8fd('0x28')]['includeAll']&&(_0x19c4d0[_0x54e8fd('0x1d')]=[{'all':!![]}]),db['Migration'][_0x54e8fd('0x12')](_0x19c4d0);})['then'](function(_0x3cb038){const _0x213749=_0x550723;return _0x113474[_0x213749('0x3')]=_0x3cb038,_0x113474;})[_0x550723('0xe')](respondWithFilteredResult(_0x27abd3,_0x19c4d0))[_0x550723('0x25')](handleError(_0x27abd3,null));}; \ No newline at end of file +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 diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index 22196e9..460018a 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a454_0x42a1=['migrations','exports','Migration','./migration.attributes'];(function(_0x1900a2,_0x42a1e){const _0x5fa804=function(_0x3be7a1){while(--_0x3be7a1){_0x1900a2['push'](_0x1900a2['shift']());}};_0x5fa804(++_0x42a1e);}(a454_0x42a1,0xed));const a454_0x5fa8=function(_0x1900a2,_0x42a1e){_0x1900a2=_0x1900a2-0x0;let _0x5fa804=a454_0x42a1[_0x1900a2];return _0x5fa804;};const _0x511956=a454_0x5fa8;'use strict';const attributes=require(_0x511956('0x2'));module[_0x511956('0x0')]=function(_0x3be7a1){const _0x2de44c=_0x511956,_0x5eb40e=_0x3be7a1['define'](_0x2de44c('0x1'),attributes,{'tableName':_0x2de44c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5eb40e;}; \ No newline at end of file +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 diff --git a/server/api/network/index.js b/server/api/network/index.js index 0ec7b72..849a054 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a455_0x57e6=['destroy','update','./network.controller','show','isAuthenticated','get','express','put','index','exports','/:id','create','post'];(function(_0x362bda,_0x57e617){const _0x1583bc=function(_0x12ac68){while(--_0x12ac68){_0x362bda['push'](_0x362bda['shift']());}};_0x1583bc(++_0x57e617);}(a455_0x57e6,0x1d5));const a455_0x1583=function(_0x362bda,_0x57e617){_0x362bda=_0x362bda-0x0;let _0x1583bc=a455_0x57e6[_0x362bda];return _0x1583bc;};const _0x5c4771=a455_0x1583;'use strict';const express=require(_0x5c4771('0x5')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x5c4771('0x1'));router[_0x5c4771('0x4')]('/',auth[_0x5c4771('0x3')](),controller[_0x5c4771('0x7')]),router[_0x5c4771('0x4')](_0x5c4771('0x9'),auth[_0x5c4771('0x3')](),controller[_0x5c4771('0x2')]),router[_0x5c4771('0xb')]('/',auth[_0x5c4771('0x3')](),controller[_0x5c4771('0xa')]),router[_0x5c4771('0x6')](_0x5c4771('0x9'),auth[_0x5c4771('0x3')](),controller[_0x5c4771('0x0')]),router['delete']('/:id',auth[_0x5c4771('0x3')](),controller[_0x5c4771('0xc')]),module[_0x5c4771('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index a7b8b65..1ed3b63 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a456_0x323b=['localnet','externip','ENUM','sequelize','stun','STRING','exports','turn'];(function(_0xe2bc79,_0x323b6b){const _0x2054cd=function(_0x357388){while(--_0x357388){_0xe2bc79['push'](_0xe2bc79['shift']());}};_0x2054cd(++_0x323b6b);}(a456_0x323b,0x1e2));const a456_0x2054=function(_0xe2bc79,_0x323b6b){_0xe2bc79=_0xe2bc79-0x0;let _0x2054cd=a456_0x323b[_0xe2bc79];return _0x2054cd;};const _0x425bd6=a456_0x2054;'use strict';const Sequelize=require(_0x425bd6('0x1'));module[_0x425bd6('0x4')]={'type':{'type':Sequelize[_0x425bd6('0x0')](_0x425bd6('0x6'),_0x425bd6('0x7'),_0x425bd6('0x2'),_0x425bd6('0x5'))},'value':{'type':Sequelize[_0x425bd6('0x3')]},'username':{'type':Sequelize[_0x425bd6('0x3')]},'password':{'type':Sequelize[_0x425bd6('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index bc90571..fd5801e 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a457_0x39a2=['Network','count','files/templates/network.ejs','request\x20sent','STUN','Network,\x20%s,\x20%s','TURN','path','merge','join','create','message','includeAll','sendStatus','map','findAll','toLowerCase','Reload','client','end','/etc/asterisk/sip_xcally_%s.conf','params','then','transaction','util','lodash','options','name','limit','offset','root','utf8','attributes','../../components/parsers/qs','render','key','../../mysqldb','api','destroy','update','../../config/environment','files/templates/stun_multiple.ejs','index','filter','type','sequelize','stack','debug','toUpperCase','query','writeFileSync','stringify','request','catch','status','ejs','server/files/templates/stun_multiple.ejs','code','keys','intersection','pick','jayson/promise','order','model','files/templates/turn_multiple.ejs','rawAttributes','like','chan_sip.so','findOne','rows','send','length','json','sort','res_stun_monitor.so','filters','error','fields','format','info','include','VIRTUAL','Network,\x20%s,\x20%s,\x20%s','body','readFileSync','/etc/asterisk/turn_xcally.conf','/etc/asterisk/stun_xcally.conf','where'];(function(_0x3ab0a9,_0x39a26d){const _0x2fabb6=function(_0x1e6f3d){while(--_0x1e6f3d){_0x3ab0a9['push'](_0x3ab0a9['shift']());}};_0x2fabb6(++_0x39a26d);}(a457_0x39a2,0xa8));const a457_0x2fab=function(_0x3ab0a9,_0x39a26d){_0x3ab0a9=_0x3ab0a9-0x0;let _0x2fabb6=a457_0x39a2[_0x3ab0a9];return _0x2fabb6;};const _0x12f280=a457_0x2fab;'use strict';const util=require(_0x12f280('0x20')),path=require(_0x12f280('0xf')),ejs=require(_0x12f280('0x3f')),fs=require('fs'),_=require(_0x12f280('0x21')),qs=require(_0x12f280('0x29')),logger=require('../../config/logger')(_0x12f280('0x2d')),config=require(_0x12f280('0x30')),db=require(_0x12f280('0x2c'))['db'],{Op}=require(_0x12f280('0x35')),jayson=require(_0x12f280('0x45')),client=jayson[_0x12f280('0x1a')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1e6f3d,_0x456344,_0xd01310,_0x3b0585){return new Promise(function(_0x2320dc,_0x1b79db){const _0x47ed46=a457_0x2fab,_0x4bc346=_0x3b0585||client;return _0x4bc346[_0x47ed46('0x3c')](_0x1e6f3d,_0xd01310)[_0x47ed46('0x1e')](function(_0x25538a){const _0x407fc7=_0x47ed46;logger[_0x407fc7('0x57')]('Network,\x20%s,\x20%s',_0x456344,_0x407fc7('0xb')),logger[_0x407fc7('0x37')](_0x407fc7('0x2'),_0x456344,_0x407fc7('0xb'),JSON[_0x407fc7('0x3b')](_0x25538a));if(_0x25538a[_0x407fc7('0x54')]){if(_0x25538a[_0x407fc7('0x54')][_0x407fc7('0x41')]===0x1f4)return logger['error']('Network,\x20%s,\x20%s',_0x456344,_0x25538a[_0x407fc7('0x54')]['message']),_0x1b79db(_0x25538a[_0x407fc7('0x54')][_0x407fc7('0x13')]);return logger['error']('Network,\x20%s,\x20%s',_0x456344,_0x25538a[_0x407fc7('0x54')][_0x407fc7('0x13')]),_0x2320dc(_0x25538a[_0x407fc7('0x54')][_0x407fc7('0x13')]);}else logger[_0x407fc7('0x57')]('Network,\x20%s,\x20%s',_0x456344,_0x407fc7('0xb')),_0x2320dc(_0x25538a['result']['message']);})[_0x47ed46('0x3d')](function(_0x56c595){const _0x5c6be9=_0x47ed46;logger[_0x5c6be9('0x54')](_0x5c6be9('0xd'),_0x456344,_0x56c595),_0x1b79db(_0x56c595);});});}function respondWithResult(_0x33127a,_0x5a9f1){return _0x5a9f1=_0x5a9f1||0xc8,function(_0x42bb85){const _0x503f63=a457_0x2fab;if(_0x42bb85)return _0x33127a[_0x503f63('0x3e')](_0x5a9f1)[_0x503f63('0x50')](_0x42bb85);};}function respondWithFilteredResult(_0x526e55,_0x14a1c4){return function(_0x3aa027){const _0x2fff10=a457_0x2fab;if(_0x3aa027){const _0x356052=_0x3aa027['count'],_0x174103=_0x14a1c4[_0x2fff10('0x25')];let _0x904954=_0x14a1c4[_0x2fff10('0x25')]+_0x14a1c4['limit'],_0x13319a;return _0x904954>=_0x356052?(_0x904954=_0x356052,_0x13319a=0xc8):_0x13319a=0xce,_0x526e55[_0x2fff10('0x3e')](_0x13319a),_0x526e55['set']('Content-Range',_0x174103+'-'+_0x904954+'/'+_0x356052)[_0x2fff10('0x50')](_0x3aa027);}return null;};}function saveUpdates(_0x51f0ca){return function(_0x424641){const _0x4271bf=a457_0x2fab;if(_0x424641)return _0x424641[_0x4271bf('0x2f')](_0x51f0ca)[_0x4271bf('0x1e')](function(_0x4840f6){return _0x4840f6;});return null;};}function removeEntity(_0x3db069){return function(_0x251f09){const _0x4693e3=a457_0x2fab;if(_0x251f09)return _0x251f09[_0x4693e3('0x2e')]()[_0x4693e3('0x1e')](function(){const _0x265c3f=_0x4693e3;_0x3db069[_0x265c3f('0x3e')](0xcc)[_0x265c3f('0x1b')]();});};}function handleEntityNotFound(_0x523570){return function(_0x4a2f82){const _0x3a4af4=a457_0x2fab;return!_0x4a2f82&&_0x523570[_0x3a4af4('0x15')](0x194),_0x4a2f82;};}function handleError(_0x160c99,_0x55f6e7){return _0x55f6e7=_0x55f6e7||0x1f4,function(_0x5e9413){const _0x414af3=a457_0x2fab;logger[_0x414af3('0x54')](_0x5e9413[_0x414af3('0x36')]),_0x5e9413[_0x414af3('0x23')]&&delete _0x5e9413['name'],_0x160c99[_0x414af3('0x3e')](_0x55f6e7)[_0x414af3('0x4e')](_0x5e9413);};}exports[_0x12f280('0x32')]=function(_0x56875c,_0x1d589a){const _0x3cfaa2=_0x12f280;let _0x282aca={};const _0x3b84ce={},_0x564d78={'count':0x0,'rows':[]},_0x3d3ebe=_[_0x3cfaa2('0x16')](db[_0x3cfaa2('0x8')][_0x3cfaa2('0x49')],function(_0x1fd08d){const _0x343b6f=_0x3cfaa2;return{'name':_0x1fd08d['fieldName'],'type':_0x1fd08d[_0x343b6f('0x34')][_0x343b6f('0x2b')]};});_0x3b84ce['model']=_[_0x3cfaa2('0x16')](_0x3d3ebe,'name'),_0x3b84ce[_0x3cfaa2('0x39')]=_[_0x3cfaa2('0x42')](_0x56875c[_0x3cfaa2('0x39')]),_0x3b84ce['filters']=_[_0x3cfaa2('0x43')](_0x3b84ce[_0x3cfaa2('0x47')],_0x3b84ce[_0x3cfaa2('0x39')]),_0x282aca[_0x3cfaa2('0x28')]=_[_0x3cfaa2('0x43')](_0x3b84ce[_0x3cfaa2('0x47')],qs[_0x3cfaa2('0x55')](_0x56875c['query'][_0x3cfaa2('0x55')])),_0x282aca[_0x3cfaa2('0x28')]=_0x282aca[_0x3cfaa2('0x28')]['length']?_0x282aca['attributes']:_0x3b84ce['model'];typeof _0x56875c[_0x3cfaa2('0x39')]['nolimit']==='undefined'&&(_0x282aca[_0x3cfaa2('0x24')]=qs['limit'](_0x56875c['query'][_0x3cfaa2('0x24')]),_0x282aca[_0x3cfaa2('0x25')]=qs['offset'](_0x56875c['query']['offset']));_0x282aca[_0x3cfaa2('0x46')]=qs[_0x3cfaa2('0x51')](_0x56875c[_0x3cfaa2('0x39')][_0x3cfaa2('0x51')]),_0x282aca[_0x3cfaa2('0x7')]=qs['filters'](_[_0x3cfaa2('0x44')](_0x56875c[_0x3cfaa2('0x39')],_0x3b84ce['filters']),_0x3d3ebe);_0x56875c[_0x3cfaa2('0x39')][_0x3cfaa2('0x33')]&&(_0x282aca['where']=_[_0x3cfaa2('0x10')](_0x282aca['where'],{[Op['or']]:_['map'](_0x3d3ebe,function(_0x3005d5){const _0x4b51cf=_0x3cfaa2;if(_0x3005d5[_0x4b51cf('0x34')]!==_0x4b51cf('0x1')){const _0x506bd4={};return _0x506bd4[_0x3005d5[_0x4b51cf('0x23')]]={[Op[_0x4b51cf('0x4a')]]:'%'+_0x56875c[_0x4b51cf('0x39')][_0x4b51cf('0x33')]+'%'},_0x506bd4;}})}));_0x282aca=_[_0x3cfaa2('0x10')]({},_0x282aca,_0x56875c[_0x3cfaa2('0x22')]);const _0x3f74aa={'where':_0x282aca[_0x3cfaa2('0x7')]};return db[_0x3cfaa2('0x8')]['count'](_0x3f74aa)[_0x3cfaa2('0x1e')](function(_0x5940bf){const _0x392154=_0x3cfaa2;return _0x564d78[_0x392154('0x9')]=_0x5940bf,_0x56875c[_0x392154('0x39')]['includeAll']&&(_0x282aca[_0x392154('0x0')]=[{'all':!![]}]),db[_0x392154('0x8')][_0x392154('0x17')](_0x282aca);})[_0x3cfaa2('0x1e')](function(_0x250135){const _0x3e43e1=_0x3cfaa2;return _0x564d78[_0x3e43e1('0x4d')]=_0x250135,_0x564d78;})[_0x3cfaa2('0x1e')](respondWithFilteredResult(_0x1d589a,_0x282aca))[_0x3cfaa2('0x3d')](handleError(_0x1d589a,null));},exports['show']=function(_0x3e22b4,_0x3c6407){const _0x419d98=_0x12f280;let _0x32745d={'raw':!![],'where':{'id':_0x3e22b4[_0x419d98('0x1d')]['id']}};const _0x1a7804={};return _0x1a7804[_0x419d98('0x47')]=_[_0x419d98('0x42')](db['Network']['rawAttributes']),_0x1a7804[_0x419d98('0x39')]=_['keys'](_0x3e22b4[_0x419d98('0x39')]),_0x1a7804[_0x419d98('0x53')]=_['intersection'](_0x1a7804[_0x419d98('0x47')],_0x1a7804[_0x419d98('0x39')]),_0x32745d[_0x419d98('0x28')]=_['intersection'](_0x1a7804['model'],qs[_0x419d98('0x55')](_0x3e22b4[_0x419d98('0x39')][_0x419d98('0x55')])),_0x32745d['attributes']=_0x32745d[_0x419d98('0x28')][_0x419d98('0x4f')]?_0x32745d[_0x419d98('0x28')]:_0x1a7804[_0x419d98('0x47')],_0x3e22b4[_0x419d98('0x39')][_0x419d98('0x14')]&&(_0x32745d[_0x419d98('0x0')]=[{'all':!![]}]),_0x32745d=_[_0x419d98('0x10')]({},_0x32745d,_0x3e22b4['options']),db['Network']['findOne'](_0x32745d)[_0x419d98('0x1e')](handleEntityNotFound(_0x3c6407,null))[_0x419d98('0x1e')](respondWithResult(_0x3c6407,null))[_0x419d98('0x3d')](handleError(_0x3c6407,null));},exports[_0x12f280('0x12')]=function(_0x5ae863,_0x5be544){const _0x532b6e=_0x12f280;let _0x2cc91d;return db['sequelize']['transaction'](function(){const _0x276f60=a457_0x2fab;return db[_0x276f60('0x8')][_0x276f60('0x12')](_0x5ae863[_0x276f60('0x3')],{'raw':!![]})['then'](function(_0x4e647a){const _0x460ea5=_0x276f60;return _0x2cc91d=_0x4e647a,db['Network']['findAll']({'where':{'type':_0x5ae863['body'][_0x460ea5('0x34')]},'raw':!![]});})[_0x276f60('0x1e')](function(_0x6d759c){const _0x5611cc=_0x276f60;if(_0x2cc91d[_0x5611cc('0x34')][_0x5611cc('0x38')]()==_0x5611cc('0xc')){const _0xbb5699=fs['readFileSync'](path[_0x5611cc('0x11')](config[_0x5611cc('0x26')],_0x5611cc('0x40')),'utf8'),_0x594d0a=ejs['render'](_0xbb5699,{'networks':_0x6d759c||[]});return fs[_0x5611cc('0x3a')]('/etc/asterisk/stun_xcally.conf',_0x594d0a),respondWithRpcPromise('Reload','create',{'module':_0x5611cc('0x52')});}else{if(_0x2cc91d[_0x5611cc('0x34')][_0x5611cc('0x38')]()==_0x5611cc('0xe')){const _0x1cc92b=fs['readFileSync'](path[_0x5611cc('0x11')](config[_0x5611cc('0x26')],'server/files/templates/turn_multiple.ejs'),_0x5611cc('0x27')),_0x3dd54c=ejs[_0x5611cc('0x2a')](_0x1cc92b,{'networks':_0x6d759c||[]});return fs['writeFileSync'](_0x5611cc('0x5'),_0x3dd54c),respondWithRpcPromise(_0x5611cc('0x19'),_0x5611cc('0x12'),{'module':_0x5611cc('0x52')});}else{const _0x1a1d44=fs['readFileSync'](path['join'](config[_0x5611cc('0x26')],_0x5611cc('0xa')),'utf8'),_0x2016e7=ejs['render'](_0x1a1d44,{'networks':_0x6d759c||[]});return fs[_0x5611cc('0x3a')](util[_0x5611cc('0x56')](_0x5611cc('0x1c'),_0x5ae863[_0x5611cc('0x3')]['type'][_0x5611cc('0x18')]()),_0x2016e7),respondWithRpcPromise(_0x5611cc('0x19'),'create',{'module':_0x5611cc('0x4b')});}}})[_0x276f60('0x1e')](function(){return _0x2cc91d;});})[_0x532b6e('0x1e')](respondWithResult(_0x5be544,0xc9))[_0x532b6e('0x3d')](handleError(_0x5be544,null));},exports['update']=function(_0xdb38cb,_0x309d89){const _0xf748bf=_0x12f280;let _0x418221;return db[_0xf748bf('0x35')][_0xf748bf('0x1f')](function(){const _0x5e5984=_0xf748bf;return db[_0x5e5984('0x8')][_0x5e5984('0x4c')]({'where':{'id':_0xdb38cb[_0x5e5984('0x1d')]['id']}})[_0x5e5984('0x1e')](handleEntityNotFound(_0x309d89,null))[_0x5e5984('0x1e')](saveUpdates(_0xdb38cb[_0x5e5984('0x3')],null))['then'](function(_0x577995){const _0xd32c00=_0x5e5984;if(_0x577995)return _0x418221=_0x577995,db[_0xd32c00('0x8')][_0xd32c00('0x17')]({'where':{'type':_0x418221[_0xd32c00('0x34')]},'raw':!![]});return null;})[_0x5e5984('0x1e')](function(_0x2e996c){const _0x40b537=_0x5e5984;if(_0x418221[_0x40b537('0x34')][_0x40b537('0x38')]()=='STUN'){const _0xd122fb=fs['readFileSync'](path[_0x40b537('0x11')](config['root'],_0x40b537('0x40')),'utf8'),_0x56bbaf=ejs[_0x40b537('0x2a')](_0xd122fb,{'networks':_0x2e996c||[]});return fs[_0x40b537('0x3a')]('/etc/asterisk/stun_xcally.conf',_0x56bbaf),respondWithRpcPromise(_0x40b537('0x19'),_0x40b537('0x2f'),{'module':_0x40b537('0x52')});}else{if(_0x418221[_0x40b537('0x34')]['toUpperCase']()==_0x40b537('0xe')){const _0x60182d=fs[_0x40b537('0x4')](path['join'](config['root'],'server/files/templates/turn_multiple.ejs'),_0x40b537('0x27')),_0x4ab403=ejs[_0x40b537('0x2a')](_0x60182d,{'networks':_0x2e996c||[]});return fs[_0x40b537('0x3a')](_0x40b537('0x5'),_0x4ab403),respondWithRpcPromise(_0x40b537('0x19'),_0x40b537('0x2f'),{'module':_0x40b537('0x52')});}else{const _0x432876=fs[_0x40b537('0x4')](path[_0x40b537('0x11')](config[_0x40b537('0x26')],_0x40b537('0xa')),_0x40b537('0x27')),_0x440cbe=ejs[_0x40b537('0x2a')](_0x432876,{'networks':_0x2e996c||[]});return fs[_0x40b537('0x3a')](util[_0x40b537('0x56')](_0x40b537('0x1c'),_0xdb38cb['body'][_0x40b537('0x34')]['toLowerCase']()),_0x440cbe),respondWithRpcPromise('Reload',_0x40b537('0x2f'),{'module':_0x40b537('0x4b')});}}})[_0x5e5984('0x1e')](function(_0x933e4a){if(_0x933e4a)return _0x418221;return null;});})[_0xf748bf('0x1e')](respondWithResult(_0x309d89,null))[_0xf748bf('0x3d')](handleError(_0x309d89,null));},exports['destroy']=function(_0x682aae,_0x2a948f){const _0x14bb13=_0x12f280;let _0x599f3f;return db[_0x14bb13('0x8')][_0x14bb13('0x4c')]({'where':{'id':_0x682aae[_0x14bb13('0x1d')]['id']}})['then'](function(_0x313f85){return _0x599f3f=_0x313f85,_0x313f85;})['then'](handleEntityNotFound(_0x2a948f,null))[_0x14bb13('0x1e')](removeEntity(_0x2a948f,null))[_0x14bb13('0x1e')](function(){const _0x6bb070=_0x14bb13;if(_0x599f3f)return db['Network'][_0x6bb070('0x17')]({'where':{'type':_0x599f3f['type']},'raw':!![]});})[_0x14bb13('0x1e')](function(_0x45da37){const _0x4d5f83=_0x14bb13;if(_0x599f3f['type']['toUpperCase']()=='STUN'){const _0x1b442e=fs[_0x4d5f83('0x4')](path['join'](config[_0x4d5f83('0x26')],_0x4d5f83('0x31')),_0x4d5f83('0x27')),_0x47cbfe=ejs['render'](_0x1b442e,{'networks':_0x45da37||[]});return fs['writeFileSync'](_0x4d5f83('0x6'),_0x47cbfe),respondWithRpcPromise(_0x4d5f83('0x19'),'destroy',{'module':_0x4d5f83('0x52')});}else{if(_0x599f3f[_0x4d5f83('0x34')][_0x4d5f83('0x38')]()==_0x4d5f83('0xe')){const _0x533565=fs[_0x4d5f83('0x4')](path[_0x4d5f83('0x11')](config[_0x4d5f83('0x26')],_0x4d5f83('0x48')),_0x4d5f83('0x27')),_0x37138a=ejs[_0x4d5f83('0x2a')](_0x533565,{'networks':_0x45da37||[]});return fs[_0x4d5f83('0x3a')]('/etc/asterisk/turn_xcally.conf',_0x37138a),respondWithRpcPromise(_0x4d5f83('0x19'),'destroy',{'module':_0x4d5f83('0x52')});}else{const _0x21e617=fs[_0x4d5f83('0x4')](path[_0x4d5f83('0x11')](config[_0x4d5f83('0x26')],_0x4d5f83('0xa')),_0x4d5f83('0x27')),_0x22d62b=ejs['render'](_0x21e617,{'networks':_0x45da37||[]});return fs[_0x4d5f83('0x3a')](util[_0x4d5f83('0x56')](_0x4d5f83('0x1c'),_0x682aae[_0x4d5f83('0x3')][_0x4d5f83('0x34')][_0x4d5f83('0x18')]()),_0x22d62b),respondWithRpcPromise(_0x4d5f83('0x19'),_0x4d5f83('0x2e'),{'module':_0x4d5f83('0x4b')});}}})['catch'](handleError(_0x2a948f,null));}; \ No newline at end of file +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 diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index 287a2eb..e5b3854 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a458_0x17a0=['define','network','exports','Network'];(function(_0x29798e,_0x17a038){const _0x34eca9=function(_0xd4c73f){while(--_0xd4c73f){_0x29798e['push'](_0x29798e['shift']());}};_0x34eca9(++_0x17a038);}(a458_0x17a0,0x13f));const a458_0x34ec=function(_0x29798e,_0x17a038){_0x29798e=_0x29798e-0x0;let _0x34eca9=a458_0x17a0[_0x29798e];return _0x34eca9;};const _0xe9481f=a458_0x34ec;'use strict';const attributes=require('./network.attributes');module[_0xe9481f('0x3')]=function(_0xd4c73f){const _0x2c24cd=_0xe9481f,_0x2e5d4e=_0xd4c73f[_0x2c24cd('0x1')](_0x2c24cd('0x0'),attributes,{'tableName':_0x2c24cd('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2e5d4e;}; \ No newline at end of file +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 diff --git a/server/api/notification/index.js b/server/api/notification/index.js index c12420e..afd33c9 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a459_0x5881=['isAuthenticated','../../components/auth/service','express','exports','./notification.controller'];(function(_0x145c41,_0x5881f9){const _0x5b1b4b=function(_0x2ebeb2){while(--_0x2ebeb2){_0x145c41['push'](_0x145c41['shift']());}};_0x5b1b4b(++_0x5881f9);}(a459_0x5881,0x1d8));const a459_0x5b1b=function(_0x145c41,_0x5881f9){_0x145c41=_0x145c41-0x0;let _0x5b1b4b=a459_0x5881[_0x145c41];return _0x5b1b4b;};const _0x3fe5f6=a459_0x5b1b;'use strict';const express=require(_0x3fe5f6('0x0')),router=express['Router'](),auth=require(_0x3fe5f6('0x4')),controller=require(_0x3fe5f6('0x2'));router['post']('/',auth[_0x3fe5f6('0x3')](),controller['sendNotification']),module[_0x3fe5f6('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index 94e49b3..4a91e33 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a460_0x27cf=['sequelize','TEXT','exports','STRING'];(function(_0x26505a,_0x27cfd5){const _0x388984=function(_0x3613dd){while(--_0x3613dd){_0x26505a['push'](_0x26505a['shift']());}};_0x388984(++_0x27cfd5);}(a460_0x27cf,0x1ca));const a460_0x3889=function(_0x26505a,_0x27cfd5){_0x26505a=_0x26505a-0x0;let _0x388984=a460_0x27cf[_0x26505a];return _0x388984;};const _0x1e942b=a460_0x3889;'use strict';const Sequelize=require(_0x1e942b('0x2'));module[_0x1e942b('0x0')]={'body':{'type':Sequelize['TEXT']},'senderName':{'type':Sequelize['STRING']},'recipientsId':{'type':Sequelize[_0x1e942b('0x3')]},'recipientsDescription':{'type':Sequelize[_0x1e942b('0x1')]},'beep':{'type':Sequelize['BOOLEAN']}}; \ No newline at end of file +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 diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index 15bed7b..dfc7481 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a461_0x4df1=['faxqueue','parse','../../rediscache','recipient','recipientsDescription','undefined','senderName','whatsappqueue','TemplateId','union','send','emit','Invalid\x20\x27TemplateId\x27\x20parameter','body','beep','error','user','team','sequelize','status','toLowerCase','../../config/logger','recipients','create','Notification','User','model','queue','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','catch','Missing\x20\x27recipients\x27\x20parameter','some','api','Invalid\x20\x27recipients\x27\x20object','voicequeue','sendNotification','startCase','notification:send','map','Queue','name','lodash','Template','flatten','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','push','isEmpty','render','register','text','findOne','chatqueue','recipientsId','sortBy','ids','then','all','stack','smsqueue','html','forEach'];(function(_0x104d65,_0x4df11a){const _0x5741d6=function(_0x2ebb60){while(--_0x2ebb60){_0x104d65['push'](_0x104d65['shift']());}};_0x5741d6(++_0x4df11a);}(a461_0x4df1,0x10d));const a461_0x5741=function(_0x104d65,_0x4df11a){_0x104d65=_0x104d65-0x0;let _0x5741d6=a461_0x4df1[_0x104d65];return _0x5741d6;};const _0x22c862=a461_0x5741;'use strict';const Mustache=require('mustache'),_=require(_0x22c862('0x10')),logger=require(_0x22c862('0x39'))(_0x22c862('0x7')),{getSocket}=require(_0x22c862('0x26')),socket=getSocket(),db=require('../../mysqldb')['db'],{ValidationError}=require(_0x22c862('0x36'));require('./notification.socket')[_0x22c862('0x17')](socket);function respondWithResult(_0x2ebb60,_0x20af63){return _0x20af63=_0x20af63||0xc8,function(_0x5ade82){if(_0x5ade82)return _0x2ebb60['status'](_0x20af63)['json'](_0x5ade82);};}function handleError(_0x57a8c8,_0x44665a){return _0x44665a=_0x44665a||0x1f4,function(_0x4986e8){const _0x66ea0f=a461_0x5741;logger[_0x66ea0f('0x33')](_0x4986e8[_0x66ea0f('0x20')]),_0x4986e8[_0x66ea0f('0xf')]&&delete _0x4986e8[_0x66ea0f('0xf')],_0x57a8c8[_0x66ea0f('0x37')](_0x44665a)[_0x66ea0f('0x2e')](_0x4986e8);};}exports[_0x22c862('0xa')]=function(_0x3c0b8d,_0x5f2dfe){const _0x8cc265=_0x22c862;let _0x409423=[];if(typeof _0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x18')]===_0x8cc265('0x29')&&typeof _0x3c0b8d[_0x8cc265('0x31')]['TemplateId']==='undefined')throw new ValidationError(_0x8cc265('0x3'));else{if(typeof _0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x2c')]!=='undefined'&&typeof _0x3c0b8d[_0x8cc265('0x31')]['view']===_0x8cc265('0x29'))throw new ValidationError('Missing\x20\x27view\x27\x20parameter');if(typeof _0x3c0b8d['body'][_0x8cc265('0x3a')]===_0x8cc265('0x29'))throw new ValidationError(_0x8cc265('0x5'));else{try{_0x409423=JSON[_0x8cc265('0x25')](_0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x3a')]);}catch(_0x1c105e){logger[_0x8cc265('0x33')](_0x1c105e);throw new ValidationError(_0x8cc265('0x8'));}const _0x2a9c8c=[_0x8cc265('0x1a'),_0x8cc265('0x24'),'mailqueue','openchannelqueue',_0x8cc265('0x21'),_0x8cc265('0x9'),_0x8cc265('0x2b'),_0x8cc265('0x35'),_0x8cc265('0x34')];if(_[_0x8cc265('0x6')](_0x409423,function(_0x40352d){const _0x4476aa=_0x8cc265;return!_['includes'](_0x2a9c8c,_0x40352d[_0x4476aa('0x1')][_0x4476aa('0x38')]());}))throw new ValidationError(_0x8cc265('0x13'));}}const _0x276b06={};return _0x276b06['senderName']=_0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x2a')]?_0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x2a')]:_0x3c0b8d['user']['fullname'],_0x276b06['recipientsDescription']=_[_0x8cc265('0x15')](_0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x28')])?null:_0x3c0b8d['body'][_0x8cc265('0x28')],_0x276b06[_0x8cc265('0x32')]=_0x3c0b8d[_0x8cc265('0x31')][_0x8cc265('0x32')]||![],_0x276b06['SenderId']=_0x3c0b8d['user']['id'],getContent(_0x3c0b8d[_0x8cc265('0x31')])['then'](function(_0x2d4376){const _0x12b84f=_0x8cc265;return _0x276b06[_0x12b84f('0x31')]=_0x2d4376,getRecipients(_0x409423);})[_0x8cc265('0x1e')](function(_0x169669){const _0x547690=_0x8cc265;return _0x276b06[_0x547690('0x1b')]=_[_0x547690('0x1c')](_0x169669)['join'](','),db['sequelize']['transaction'](function(_0xadd864){const _0x1ad637=_0x547690;return db[_0x1ad637('0x3c')][_0x1ad637('0x3b')](_0x276b06,{'raw':!![],'transaction':_0xadd864})[_0x1ad637('0x1e')](function(_0x5720c9){const _0x1a6dac=_0x1ad637,_0x3c609c={'sender':_0x276b06['senderName'],'description':_0x276b06[_0x1a6dac('0x28')],'content':_0x276b06[_0x1a6dac('0x31')],'beep':_0x276b06[_0x1a6dac('0x32')]};return _0x169669[_0x1a6dac('0x23')](function(_0x1eb96d){const _0x5dcbae=_0x1a6dac;_0x3c609c[_0x5dcbae('0x27')]=_0x1eb96d,socket[_0x5dcbae('0x2f')](_0x5dcbae('0xc'),_0x3c609c);}),_0x5720c9;});});})[_0x8cc265('0x1e')](respondWithResult(_0x5f2dfe,0xc9))[_0x8cc265('0x4')](handleError(_0x5f2dfe,null));};function getContent(_0xca1918){return new Promise(function(_0x36e711,_0x5dbe5f){const _0x99a8c7=a461_0x5741;if(_0xca1918['text']){_0x36e711(_0xca1918[_0x99a8c7('0x18')]);return;}return db[_0x99a8c7('0x11')]['findOne']({'attributes':['html'],'where':{'id':_0xca1918[_0x99a8c7('0x2c')]},'raw':!![]})[_0x99a8c7('0x1e')](function(_0xd81457){const _0x1cf293=_0x99a8c7;if(!_0xd81457)throw new ValidationError(_0x1cf293('0x30'));const _0x5e5733=Mustache[_0x1cf293('0x16')](_0xd81457[_0x1cf293('0x22')],_0xca1918['view']);_0x36e711(_0x5e5733);})[_0x99a8c7('0x4')](function(_0x440d32){_0x5dbe5f(_0x440d32);});});}function getRecipients(_0x194ccb){return new Promise(function(_0x242398,_0x853a7b){const _0x4791e9=a461_0x5741;let _0x57731a=[];const _0x51aad8=[];return _0x194ccb[_0x4791e9('0x23')](function(_0x3e600f){const _0x5a46e9=_0x4791e9;let _0x1e3be3=_[_0x5a46e9('0xb')](_0x3e600f[_0x5a46e9('0x1')]['toLowerCase']());if(_0x1e3be3===_0x5a46e9('0x0'))_0x57731a=_[_0x5a46e9('0x2d')](_0x57731a,_0x3e600f[_0x5a46e9('0x1d')]);else{if(_['includes'](_0x1e3be3,_0x5a46e9('0x2')))_0x1e3be3=_0x1e3be3['replace'](_0x5a46e9('0x2'),_0x5a46e9('0xe'));_0x3e600f[_0x5a46e9('0x1d')][_0x5a46e9('0x23')](function(_0x44345f){const _0x301fb6=_0x5a46e9;_0x51aad8[_0x301fb6('0x14')](getAgents(_0x1e3be3,_0x44345f));});}}),Promise[_0x4791e9('0x1f')](_0x51aad8)['then'](function(_0x43c278){const _0x27b89c=_0x4791e9;_0x57731a=_[_0x27b89c('0x2d')](_0x57731a,_[_0x27b89c('0x12')](_0x43c278)),_0x242398(_0x57731a);})[_0x4791e9('0x4')](function(_0x529075){_0x853a7b(_0x529075);});});}function getAgents(_0x412117,_0x5ed33d){return new Promise(function(_0x1c5ccd,_0x469ba0){const _0x5bfdb0=a461_0x5741;return db[_0x412117][_0x5bfdb0('0x19')]({'where':{'id':_0x5ed33d}})[_0x5bfdb0('0x1e')](function(_0x2587b2){const _0x548df4=_0x5bfdb0;return _0x2587b2['getAgents']({'attributes':['id'],'raw':!![]})[_0x548df4('0x1e')](function(_0x9c54e1){const _0xeb2bc2=_0x548df4,_0x210dcf=_[_0xeb2bc2('0xd')](_0x9c54e1,'id');_0x1c5ccd(_0x210dcf);});})[_0x5bfdb0('0x4')](function(_0xc5d938){_0x469ba0(_0xc5d938);});});} \ No newline at end of file +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 diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index ac1abf2..dd1918a 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a462_0x190d=['exports','remove','setMaxListeners','../../mysqldb','emit','events','save','addHook','update'];(function(_0x375289,_0x190d74){const _0x2ca07b=function(_0x229c17){while(--_0x229c17){_0x375289['push'](_0x375289['shift']());}};_0x2ca07b(++_0x190d74);}(a462_0x190d,0xca));const a462_0x2ca0=function(_0x375289,_0x190d74){_0x375289=_0x375289-0x0;let _0x2ca07b=a462_0x190d[_0x375289];return _0x2ca07b;};const _0x4d85fd=a462_0x2ca0;'use strict';const EventEmitter=require(_0x4d85fd('0x1')),Notification=require(_0x4d85fd('0x8'))['db']['Notification'],NotificationEvents=new EventEmitter();NotificationEvents[_0x4d85fd('0x7')](0x0);const events={'afterCreate':_0x4d85fd('0x2'),'afterUpdate':_0x4d85fd('0x4'),'afterDestroy':_0x4d85fd('0x6')};function emitEvent(_0x229c17){return function(_0x245d90){const _0x226e81=a462_0x2ca0;NotificationEvents[_0x226e81('0x0')](_0x229c17+':'+_0x245d90['id'],_0x245d90),NotificationEvents[_0x226e81('0x0')](_0x229c17,_0x245d90);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Notification[_0x4d85fd('0x3')](e,emitEvent(event));}}module[_0x4d85fd('0x5')]=NotificationEvents; \ No newline at end of file +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 diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index 600c863..1fd1598 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a463_0x4ff6=['define','utf8mb4_unicode_ci','utf8mb4'];(function(_0x1da803,_0x4ff6e7){const _0x3307ac=function(_0x44b227){while(--_0x44b227){_0x1da803['push'](_0x1da803['shift']());}};_0x3307ac(++_0x4ff6e7);}(a463_0x4ff6,0x1d5));const a463_0x3307=function(_0x1da803,_0x4ff6e7){_0x1da803=_0x1da803-0x0;let _0x3307ac=a463_0x4ff6[_0x1da803];return _0x3307ac;};'use strict';const attributes=require('./notification.attributes');module['exports']=function(_0x44b227){const _0x23b344=a463_0x3307,_0x5d20a4=_0x44b227[_0x23b344('0x2')]('Notification',attributes,{'tableName':'notifications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x23b344('0x1'),'collate':_0x23b344('0x0')});return _0x5d20a4;}; \ No newline at end of file +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 diff --git a/server/api/notification/notification.rpc.js b/server/api/notification/notification.rpc.js index 2b931a3..2ac7a60 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a464_0x9eca=['./notification.socket','../../rediscache','register'];(function(_0x28cc67,_0x9ecaf3){const _0x4228db=function(_0x3298b2){while(--_0x3298b2){_0x28cc67['push'](_0x28cc67['shift']());}};_0x4228db(++_0x9ecaf3);}(a464_0x9eca,0xed));const a464_0x4228=function(_0x28cc67,_0x9ecaf3){_0x28cc67=_0x28cc67-0x0;let _0x4228db=a464_0x9eca[_0x28cc67];return _0x4228db;};const _0x37dfcf=a464_0x4228;'use strict';const {getSocket}=require(_0x37dfcf('0x1')),socket=getSocket();require(_0x37dfcf('0x0'))[_0x37dfcf('0x2')](socket); \ No newline at end of file +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 diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index 41cb156..5d14c0d 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a465_0xd030=['save','emit','notification:','register','length','./notification.events','remove'];(function(_0x20eb72,_0xd030c1){const _0x11de13=function(_0x4d3ce2){while(--_0x4d3ce2){_0x20eb72['push'](_0x20eb72['shift']());}};_0x11de13(++_0xd030c1);}(a465_0xd030,0x8f));const a465_0x11de=function(_0x20eb72,_0xd030c1){_0x20eb72=_0x20eb72-0x0;let _0x11de13=a465_0xd030[_0x20eb72];return _0x11de13;};const _0x20c9c6=a465_0x11de;'use strict';const NotificationEvents=require(_0x20c9c6('0x2')),events=[_0x20c9c6('0x4'),_0x20c9c6('0x3'),'update'];function createListener(_0x4d3ce2,_0x5b8d9c){return function(_0x39aeb7){const _0x4b2a54=a465_0x11de;_0x5b8d9c[_0x4b2a54('0x5')](_0x4d3ce2,_0x39aeb7);};}exports[_0x20c9c6('0x0')]=function(_0x265cff){const _0x41713c=_0x20c9c6;for(let _0x4b8263=0x0,_0x1e3d5a=events[_0x41713c('0x1')];_0x4b8263<_0x1e3d5a;_0x4b8263++){const _0x55ce0d=events[_0x4b8263],_0x1e9742=createListener(_0x41713c('0x6')+_0x55ce0d,_0x265cff);NotificationEvents['on'](_0x55ce0d,_0x1e9742);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index 6effe49..00d9b01 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a466_0x1ac2=['addAnswer','getAnswers','/:id/users','exports','getInteractions','express','getDispositions','Router','isAuthenticated','/:id/dispositions','/:id/canned_answers','get','describe','/:id','update','put','/describe','notify','show','post','create','/:id/notify','destroy','removeDispositions','addApplications','getAgents','/:id/applications','removeAnswers','index','addDisposition','./openchannelAccount.controller','/:id/interactions','removeAgents','getApplications','delete'];(function(_0x468af2,_0x1ac240){const _0x172a67=function(_0x1d9548){while(--_0x1d9548){_0x468af2['push'](_0x468af2['shift']());}};_0x172a67(++_0x1ac240);}(a466_0x1ac2,0x11f));const a466_0x172a=function(_0x468af2,_0x1ac240){_0x468af2=_0x468af2-0x0;let _0x172a67=a466_0x1ac2[_0x468af2];return _0x172a67;};const _0x3ab82f=a466_0x172a;'use strict';const express=require(_0x3ab82f('0x21')),router=express[_0x3ab82f('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x3ab82f('0x17'));router['get']('/',auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x15')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x9'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x5')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x6'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0xb')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x2'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x22')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x3'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x1d')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x13'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x1a')]),router['get'](_0x3ab82f('0x18'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x20')]),router[_0x3ab82f('0x4')](_0x3ab82f('0x1e'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x12')]),router[_0x3ab82f('0xc')]('/',auth['isAuthenticated'](),controller[_0x3ab82f('0xd')]),router[_0x3ab82f('0xc')](_0x3ab82f('0x2'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x16')]),router[_0x3ab82f('0xc')](_0x3ab82f('0x3'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x1c')]),router['post'](_0x3ab82f('0xe'),controller[_0x3ab82f('0xa')]),router['post']('/:id/applications',auth['isAuthenticated'](),controller[_0x3ab82f('0x11')]),router[_0x3ab82f('0xc')](_0x3ab82f('0x1e'),auth[_0x3ab82f('0x1')](),controller['addAgents']),router[_0x3ab82f('0xc')]('/:id/send',auth[_0x3ab82f('0x1')](),controller['send']),router[_0x3ab82f('0x8')](_0x3ab82f('0x6'),auth['isAuthenticated'](),controller[_0x3ab82f('0x7')]),router[_0x3ab82f('0x1b')](_0x3ab82f('0x6'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0xf')]),router[_0x3ab82f('0x1b')](_0x3ab82f('0x2'),auth['isAuthenticated'](),controller[_0x3ab82f('0x10')]),router['delete'](_0x3ab82f('0x3'),auth[_0x3ab82f('0x1')](),controller[_0x3ab82f('0x14')]),router[_0x3ab82f('0x1b')](_0x3ab82f('0x1e'),auth['isAuthenticated'](),controller[_0x3ab82f('0x19')]),module[_0x3ab82f('0x1f')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index 111a165..e47eecc 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a467_0x5310=['STRING','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','generate','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','TEXT','INTEGER','mandatoryDispositionPauseId','exports','randomstring','sequelize','BOOLEAN','name'];(function(_0x5b276e,_0x53109c){const _0xf6d348=function(_0x307591){while(--_0x307591){_0x5b276e['push'](_0x5b276e['shift']());}};_0xf6d348(++_0x53109c);}(a467_0x5310,0x7a));const a467_0xf6d3=function(_0x5b276e,_0x53109c){_0x5b276e=_0x5b276e-0x0;let _0xf6d348=a467_0x5310[_0x5b276e];return _0xf6d348;};const _0x5c461b=a467_0xf6d3;'use strict';const Sequelize=require(_0x5c461b('0x5')),rs=require(_0x5c461b('0x4'));module[_0x5c461b('0x3')]={'name':{'type':Sequelize[_0x5c461b('0x8')],'unique':_0x5c461b('0x7'),'allowNull':![]},'description':{'type':Sequelize[_0x5c461b('0x8')]},'token':{'type':Sequelize[_0x5c461b('0x8')],'defaultValue':function(){const _0x3ae382=_0x5c461b;return rs[_0x3ae382('0xb')]();}},'replyUri':{'type':Sequelize['STRING'],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x5c461b('0x8')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x5c461b('0x0')],'defaultValue':function(){const _0x2aedb8=_0x5c461b;return _0x2aedb8('0xc');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x5c461b('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x5c461b('0x8')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x5c461b('0x6')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5c461b('0x1')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5c461b('0x1')],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x5c461b('0x6')],'defaultValue':![],'comment':_0x5c461b('0x9'),'set':function(_0x307591){const _0xa7f8a9=_0x5c461b;if(!_0x307591)this['setDataValue'](_0xa7f8a9('0x2'),null);this[_0xa7f8a9('0xa')]('mandatoryDisposition',_0x307591);}}}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index 285ab30..6aeccad 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a468_0x51f4=['include','nolimit','unmanaged','message','create','error','length','Contacts','Pause','from\x20is\x20mandatory','like','type','getAnswers','color','body','unshift','mandatoryDispositionPause','Applications','Disposition','OpenchannelAccounts','orderBy','OpenchannelAccount','removeAgents','intersection','name','options','merge','send','limit','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','get','*,*,*,*','rawAttributes','api','order','includeAll','userOpenchannelAccount:remove','bulkCreate','OpenchannelMessage','rows','request\x20sent','Contact','includes','index','./openchannelAccount.socket','removeDispositions','Unable\x20to\x20retrieve\x20the\x20current\x20user','update','externalUrl','notify','internal','Owner','findAll','createdAt','model','json','UserProfileResource','sendStatus','CmContact','request','client','dataValues','pick','interaction','no\x20available\x20attributes','tag','List','info','userProfileId','applications','lodash','result','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','updatedAt','emit','DESC','asc','getInteractions','account','UserProfileSection','../../components/parsers/qs','findOne','CompanyId','attributes','http','user','OpenchannelInteraction','addApplications','agent','messageId','where','mapKey','OpenchannelApplication','Content-Range','isArray','lastName','from','startRouting','keys','Messages','query','addAgents','OpenchannelAccount,\x20%s,\x20%s','sequelize','stack','count','removeAnswers','threadId','difference','map','User','catch','jayson/promise','CannedAnswer','undefined','priority','ListId','created','getApplications','../../config/logger','close','OpenchannelAccountId','Start','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','fields','code','transaction','ids','Tags','VIRTUAL','getAgents','UserId','describe','body\x20is\x20mandatory\x20and\x20not\x20empty','params','sort','CmList','destroy','AttachmentId','then','contact','push','firstName','out','filter','EventManager','filters','register','status','isNil','fieldName','findAndCountAll','autoclose','set','defaults','waitForTheAssignedAgent','offset','omit','OpenchannelAccount,\x20%s,\x20%s,\x20%s','addDisposition'];(function(_0x3178c7,_0x51f455){const _0x340b53=function(_0x73fece){while(--_0x73fece){_0x3178c7['push'](_0x3178c7['shift']());}};_0x340b53(++_0x51f455);}(a468_0x51f4,0xbd));const a468_0x340b=function(_0x3178c7,_0x51f455){_0x3178c7=_0x3178c7-0x0;let _0x340b53=a468_0x51f4[_0x3178c7];return _0x340b53;};const _0x1414b0=a468_0x340b;'use strict';const _=require(_0x1414b0('0x29')),qs=require(_0x1414b0('0x33')),logger=require(_0x1414b0('0x5a'))(_0x1414b0('0x4')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require('sequelize');require(_0x1414b0('0xf'))[_0x1414b0('0x76')](socket);const jayson=require(_0x1414b0('0x53')),client=jayson['client'][_0x1414b0('0x37')]({'port':0x232c}),client9002=jayson[_0x1414b0('0x1f')][_0x1414b0('0x37')]({'port':0x232a});function respondWithRpcPromise(_0x73fece,_0x4a1cb3,_0x5487c6,_0x2d8728){return new Promise(function(_0x2bc372,_0x267713){const _0x8ec694=a468_0x340b,_0x43ec29=_0x2d8728||client;return _0x43ec29[_0x8ec694('0x1e')](_0x73fece,_0x5487c6)[_0x8ec694('0x6e')](function(_0xce3ebf){const _0x559286=_0x8ec694;logger[_0x559286('0x26')](_0x559286('0x49'),_0x4a1cb3,_0x559286('0xb')),logger['debug'](_0x559286('0x81'),_0x4a1cb3,_0x559286('0xb'),JSON['stringify'](_0xce3ebf));if(_0xce3ebf[_0x559286('0x88')]){if(_0xce3ebf[_0x559286('0x88')][_0x559286('0x60')]===0x1f4)return logger[_0x559286('0x88')](_0x559286('0x49'),_0x4a1cb3,_0xce3ebf['error'][_0x559286('0x86')]),_0x267713(_0xce3ebf['error'][_0x559286('0x86')]);return logger['error'](_0x559286('0x49'),_0x4a1cb3,_0xce3ebf['error'][_0x559286('0x86')]),_0x2bc372(_0xce3ebf['error'][_0x559286('0x86')]);}else logger[_0x559286('0x26')](_0x559286('0x49'),_0x4a1cb3,_0x559286('0xb')),_0x2bc372(_0xce3ebf[_0x559286('0x2a')][_0x559286('0x86')]);})[_0x8ec694('0x52')](function(_0xbe7bf6){const _0x4489f3=_0x8ec694;logger['error'](_0x4489f3('0x49'),_0x4a1cb3,_0xbe7bf6),_0x267713(_0xbe7bf6);});});}function respondWithStatusCode(_0x20ed09,_0x199b7a){return _0x199b7a=_0x199b7a||0xcc,function(_0x3ef2ef){const _0x3308f4=a468_0x340b;if(_0x3ef2ef)return _0x20ed09[_0x3308f4('0x1c')](_0x199b7a);return _0x20ed09[_0x3308f4('0x77')](_0x199b7a)['end']();};}function respondWithResult(_0x5e6d0f,_0x37389b){return _0x37389b=_0x37389b||0xc8,function(_0x501821){const _0x3776b7=a468_0x340b;if(_0x501821)return _0x5e6d0f['status'](_0x37389b)[_0x3776b7('0x1a')](_0x501821);};}function respondWithFilteredResult(_0xab5cd7,_0x24e4ec){return function(_0x451d6a){const _0x2314e9=a468_0x340b;if(_0x451d6a){const _0x5bf3e3=_0x451d6a[_0x2314e9('0x4c')],_0xefad1f=_0x24e4ec['offset'];let _0xc11ef2=_0x24e4ec[_0x2314e9('0x7f')]+_0x24e4ec[_0x2314e9('0x9f')],_0x2bd2f7;return _0xc11ef2>=_0x5bf3e3?(_0xc11ef2=_0x5bf3e3,_0x2bd2f7=0xc8):_0x2bd2f7=0xce,_0xab5cd7[_0x2314e9('0x77')](_0x2bd2f7),_0xab5cd7[_0x2314e9('0x7c')](_0x2314e9('0x40'),_0xefad1f+'-'+_0xc11ef2+'/'+_0x5bf3e3)[_0x2314e9('0x1a')](_0x451d6a);}return null;};}function saveUpdates(_0x169e52){return function(_0x45da32){const _0x34dd4c=a468_0x340b;if(_0x45da32)return _0x45da32[_0x34dd4c('0x12')](_0x169e52)['then'](function(_0xf2a7ef){return _0xf2a7ef;});return null;};}function removeEntity(_0x5cd182){return function(_0x260b7c){const _0x5e5586=a468_0x340b;if(_0x260b7c)return _0x260b7c[_0x5e5586('0x6c')]()[_0x5e5586('0x6e')](function(){const _0x29d6c2=_0x5e5586,_0x820dc1=_0x260b7c[_0x29d6c2('0x1')]({'plain':!![]}),_0x2dc648=_0x29d6c2('0x96');return db[_0x29d6c2('0x1b')][_0x29d6c2('0x6c')]({'where':{'type':_0x2dc648,'resourceId':_0x820dc1['id']}})[_0x29d6c2('0x6e')](function(){return _0x260b7c;});})['then'](function(){const _0x1075cb=_0x5e5586;_0x5cd182[_0x1075cb('0x77')](0xcc)['end']();});};}function handleEntityNotFound(_0x36cbad){return function(_0x1266e6){const _0x274b0f=a468_0x340b;return!_0x1266e6&&_0x36cbad[_0x274b0f('0x1c')](0x194),_0x1266e6;};}function handleError(_0x4314d6,_0x24e705){return _0x24e705=_0x24e705||0x1f4,function(_0x4a1221){const _0x5913cf=a468_0x340b;logger[_0x5913cf('0x88')](_0x4a1221[_0x5913cf('0x4b')]),_0x4a1221[_0x5913cf('0x9b')]&&delete _0x4a1221[_0x5913cf('0x9b')],_0x4314d6[_0x5913cf('0x77')](_0x24e705)['send'](_0x4a1221);};}exports[_0x1414b0('0xe')]=function(_0x35e58c,_0x3ffe94){const _0xa2f151=_0x1414b0;let _0x312bae={'include':[{'model':db[_0xa2f151('0x8b')],'as':_0xa2f151('0x93')}]};const _0x1b9728={},_0x4c317c={'count':0x0,'rows':[]},_0x3c79ed=_[_0xa2f151('0x50')](db[_0xa2f151('0x98')][_0xa2f151('0x3')],function(_0x56581e){const _0x876ae9=_0xa2f151;return{'name':_0x56581e[_0x876ae9('0x79')],'type':_0x56581e[_0x876ae9('0x8e')]['key']};});_0x1b9728[_0xa2f151('0x19')]=_[_0xa2f151('0x50')](_0x3c79ed,_0xa2f151('0x9b')),_0x1b9728[_0xa2f151('0x47')]=_['keys'](_0x35e58c['query']),_0x1b9728[_0xa2f151('0x75')]=_[_0xa2f151('0x9a')](_0x1b9728[_0xa2f151('0x19')],_0x1b9728['query']),_0x312bae['attributes']=_[_0xa2f151('0x9a')](_0x1b9728[_0xa2f151('0x19')],qs[_0xa2f151('0x5f')](_0x35e58c[_0xa2f151('0x47')][_0xa2f151('0x5f')])),_0x312bae[_0xa2f151('0x36')]=_0x312bae[_0xa2f151('0x36')]['length']?_0x312bae[_0xa2f151('0x36')]:_0x1b9728['model'];typeof _0x35e58c[_0xa2f151('0x47')][_0xa2f151('0x84')]===_0xa2f151('0x55')&&(_0x312bae[_0xa2f151('0x9f')]=qs['limit'](_0x35e58c['query'][_0xa2f151('0x9f')]),_0x312bae[_0xa2f151('0x7f')]=qs['offset'](_0x35e58c[_0xa2f151('0x47')][_0xa2f151('0x7f')]));_0x312bae['order']=qs[_0xa2f151('0x6a')](_0x35e58c['query'][_0xa2f151('0x6a')]),_0x312bae['where']=qs[_0xa2f151('0x75')](_[_0xa2f151('0x21')](_0x35e58c['query'],_0x1b9728['filters']),_0x3c79ed);_0x35e58c[_0xa2f151('0x47')][_0xa2f151('0x73')]&&(_0x312bae[_0xa2f151('0x3d')]=_[_0xa2f151('0x9d')](_0x312bae['where'],{[Op['or']]:_[_0xa2f151('0x50')](_0x3c79ed,function(_0x3ad883){const _0xa0ce1c=_0xa2f151;if(_0x3ad883[_0xa0ce1c('0x8e')]!==_0xa0ce1c('0x64')){const _0x211761={};return _0x211761[_0x3ad883[_0xa0ce1c('0x9b')]]={[Op[_0xa0ce1c('0x8d')]]:'%'+_0x35e58c[_0xa0ce1c('0x47')]['filter']+'%'},_0x211761;}})}));_0x312bae=_[_0xa2f151('0x9d')]({},_0x312bae,_0x35e58c['options']);const _0x2058e3={'where':_0x312bae[_0xa2f151('0x3d')]};return db['OpenchannelAccount'][_0xa2f151('0x4c')](_0x2058e3)[_0xa2f151('0x6e')](function(_0x2c8c51){const _0x30803f=_0xa2f151;return _0x4c317c[_0x30803f('0x4c')]=_0x2c8c51,_0x35e58c[_0x30803f('0x47')][_0x30803f('0x6')]&&(_0x312bae[_0x30803f('0x83')]=[{'all':!![]}]),db[_0x30803f('0x98')]['findAll'](_0x312bae);})[_0xa2f151('0x6e')](function(_0x40bc47){return _0x4c317c['rows']=_0x40bc47,_0x4c317c;})['then'](respondWithFilteredResult(_0x3ffe94,_0x312bae))[_0xa2f151('0x52')](handleError(_0x3ffe94,null));},exports['show']=function(_0x170e9d,_0x55300b){const _0x68d6d3=_0x1414b0;let _0x388bb6={'raw':![],'where':{'id':_0x170e9d[_0x68d6d3('0x69')]['id']},'include':[{'model':db[_0x68d6d3('0x8b')],'as':'mandatoryDispositionPause'}]};const _0x29c04a={};return _0x29c04a[_0x68d6d3('0x19')]=_[_0x68d6d3('0x45')](db[_0x68d6d3('0x98')]['rawAttributes']),_0x29c04a[_0x68d6d3('0x47')]=_['keys'](_0x170e9d[_0x68d6d3('0x47')]),_0x29c04a[_0x68d6d3('0x75')]=_[_0x68d6d3('0x9a')](_0x29c04a[_0x68d6d3('0x19')],_0x29c04a['query']),_0x388bb6[_0x68d6d3('0x36')]=_[_0x68d6d3('0x9a')](_0x29c04a[_0x68d6d3('0x19')],qs[_0x68d6d3('0x5f')](_0x170e9d[_0x68d6d3('0x47')][_0x68d6d3('0x5f')])),_0x388bb6[_0x68d6d3('0x36')]=_0x388bb6[_0x68d6d3('0x36')][_0x68d6d3('0x89')]?_0x388bb6[_0x68d6d3('0x36')]:_0x29c04a[_0x68d6d3('0x19')],_0x170e9d[_0x68d6d3('0x47')][_0x68d6d3('0x6')]&&(_0x388bb6[_0x68d6d3('0x83')]=[{'all':!![]}]),_0x388bb6=_[_0x68d6d3('0x9d')]({},_0x388bb6,_0x170e9d[_0x68d6d3('0x9c')]),db['OpenchannelAccount'][_0x68d6d3('0x34')](_0x388bb6)[_0x68d6d3('0x6e')](handleEntityNotFound(_0x55300b,null))['then'](respondWithResult(_0x55300b,null))[_0x68d6d3('0x52')](handleError(_0x55300b,null));},exports[_0x1414b0('0x87')]=function(_0x40f954,_0x47adf3){const _0xebeeb1=_0x1414b0;return db[_0xebeeb1('0x98')][_0xebeeb1('0x87')](_0x40f954[_0xebeeb1('0x91')],{})[_0xebeeb1('0x6e')](function(_0x1884e3){const _0x5abdbc=_0xebeeb1,_0x4ab4ab=_0x40f954[_0x5abdbc('0x38')]['get']({'plain':!![]});if(!_0x4ab4ab)throw new Error(_0x5abdbc('0x11'));if(_0x4ab4ab['role']===_0x5abdbc('0x38')){const _0x10798e=_0x1884e3['get']({'plain':!![]}),_0xdfae9=_0x5abdbc('0x96');return db[_0x5abdbc('0x32')][_0x5abdbc('0x34')]({'where':{'name':_0xdfae9,'userProfileId':_0x4ab4ab[_0x5abdbc('0x27')]},'raw':!![]})['then'](function(_0x1f3133){const _0xf4f4b5=_0x5abdbc;return _0x1f3133&&_0x1f3133['autoAssociation']===0x0?db[_0xf4f4b5('0x1b')][_0xf4f4b5('0x87')]({'name':_0x10798e['name'],'resourceId':_0x10798e['id'],'type':_0x1f3133[_0xf4f4b5('0x9b')],'sectionId':_0x1f3133['id']},{})[_0xf4f4b5('0x6e')](function(){return _0x1884e3;}):_0x1884e3;})['catch'](function(_0x3b5d3a){const _0x39948b=_0x5abdbc;logger[_0x39948b('0x88')](_0x39948b('0x5e'),_0x3b5d3a);throw _0x3b5d3a;});}return _0x1884e3;})[_0xebeeb1('0x6e')](respondWithResult(_0x47adf3,0xc9))[_0xebeeb1('0x52')](handleError(_0x47adf3,null));},exports[_0x1414b0('0x12')]=function(_0x3566e3,_0x3a9052){const _0x350784=_0x1414b0;return _0x3566e3[_0x350784('0x91')]['id']&&delete _0x3566e3[_0x350784('0x91')]['id'],db[_0x350784('0x98')]['findOne']({'where':{'id':_0x3566e3['params']['id']},'include':[{'model':db[_0x350784('0x8b')],'as':_0x350784('0x93')}]})['then'](handleEntityNotFound(_0x3a9052,null))[_0x350784('0x6e')](saveUpdates(_0x3566e3[_0x350784('0x91')],null))[_0x350784('0x6e')](respondWithResult(_0x3a9052,null))['catch'](handleError(_0x3a9052,null));},exports[_0x1414b0('0x6c')]=function(_0x3577fb,_0x444334){const _0x36bfc5=_0x1414b0;return db[_0x36bfc5('0x98')][_0x36bfc5('0x34')]({'where':{'id':_0x3577fb[_0x36bfc5('0x69')]['id']}})['then'](handleEntityNotFound(_0x444334,null))['then'](removeEntity(_0x444334,null))['catch'](handleError(_0x444334,null));},exports[_0x1414b0('0x67')]=function(_0x1ad5a8,_0x3c4733){const _0x529ea1=_0x1414b0;return db['OpenchannelAccount'][_0x529ea1('0x67')]()['then'](respondWithResult(_0x3c4733,null))['catch'](handleError(_0x3c4733,null));},exports[_0x1414b0('0x82')]=function(_0x3b3ebc,_0x27b3ed){const _0x19772f=_0x1414b0;return _0x3b3ebc['body']['id']&&delete _0x3b3ebc['body']['id'],db[_0x19772f('0x98')][_0x19772f('0x34')]({'where':{'id':_0x3b3ebc[_0x19772f('0x69')]['id']}})[_0x19772f('0x6e')](handleEntityNotFound(_0x27b3ed,null))[_0x19772f('0x6e')](function(_0x375178){const _0x28df7e=_0x19772f;if(_0x375178)return _0x3b3ebc[_0x28df7e('0x91')][_0x28df7e('0x5c')]=_0x375178['id'],db[_0x28df7e('0x95')]['create'](_0x3b3ebc['body']);})['then'](respondWithResult(_0x27b3ed,null))[_0x19772f('0x52')](handleError(_0x27b3ed,null));},exports['getDispositions']=function(_0x395c81,_0x1cc9e2){const _0x28f688=_0x1414b0;let _0x519202={'raw':![],'where':{}};const _0x5a7c08={},_0x398803={'count':0x0,'rows':[]};return db[_0x28f688('0x98')][_0x28f688('0x34')]({'where':{'id':_0x395c81['params']['id']}})[_0x28f688('0x6e')](handleEntityNotFound(_0x1cc9e2,null))[_0x28f688('0x6e')](function(_0x2a1c39){const _0x5d37c1=_0x28f688;if(_0x2a1c39)return _0x5a7c08[_0x5d37c1('0x19')]=_['keys'](db[_0x5d37c1('0x95')]['rawAttributes']),_0x5a7c08[_0x5d37c1('0x47')]=_['keys'](_0x395c81[_0x5d37c1('0x47')]),_0x5a7c08[_0x5d37c1('0x75')]=_[_0x5d37c1('0x9a')](_0x5a7c08[_0x5d37c1('0x19')],_0x5a7c08[_0x5d37c1('0x47')]),_0x519202[_0x5d37c1('0x36')]=_['intersection'](_0x5a7c08['model'],qs[_0x5d37c1('0x5f')](_0x395c81[_0x5d37c1('0x47')][_0x5d37c1('0x5f')])),_0x519202['attributes']=_0x519202[_0x5d37c1('0x36')][_0x5d37c1('0x89')]?_0x519202[_0x5d37c1('0x36')]:_0x5a7c08['model'],typeof _0x395c81[_0x5d37c1('0x47')]['nolimit']===_0x5d37c1('0x55')&&(_0x519202[_0x5d37c1('0x9f')]=qs['limit'](_0x395c81[_0x5d37c1('0x47')][_0x5d37c1('0x9f')]),_0x519202['offset']=qs[_0x5d37c1('0x7f')](_0x395c81[_0x5d37c1('0x47')][_0x5d37c1('0x7f')])),_0x519202[_0x5d37c1('0x5')]=qs[_0x5d37c1('0x6a')](_0x395c81[_0x5d37c1('0x47')][_0x5d37c1('0x6a')]),_0x519202['where']=qs[_0x5d37c1('0x75')](_[_0x5d37c1('0x21')](_0x395c81[_0x5d37c1('0x47')],_0x5a7c08[_0x5d37c1('0x75')])),_0x519202[_0x5d37c1('0x3d')][_0x5d37c1('0x5c')]=_0x2a1c39['id'],_0x395c81[_0x5d37c1('0x47')][_0x5d37c1('0x73')]&&(_0x519202['where']=_[_0x5d37c1('0x9d')](_0x519202[_0x5d37c1('0x3d')],{[Op['or']]:_[_0x5d37c1('0x50')](_0x519202[_0x5d37c1('0x36')],function(_0x169aec){const _0x3abe91=_0x5d37c1,_0x4d0a4a={};return _0x4d0a4a[_0x169aec]={[Op['like']]:'%'+_0x395c81[_0x3abe91('0x47')]['filter']+'%'},_0x4d0a4a;})})),_0x519202=_[_0x5d37c1('0x9d')]({},_0x519202,_0x395c81[_0x5d37c1('0x9c')]),db['Disposition']['count']({'where':_0x519202[_0x5d37c1('0x3d')]})[_0x5d37c1('0x6e')](function(_0x4a2616){const _0x45a372=_0x5d37c1;return _0x398803[_0x45a372('0x4c')]=_0x4a2616,_0x395c81[_0x45a372('0x47')]['includeAll']&&(_0x519202[_0x45a372('0x83')]=[{'all':!![]}]),db[_0x45a372('0x95')]['findAll'](_0x519202);})[_0x5d37c1('0x6e')](function(_0x17350f){return _0x398803['rows']=_0x17350f,_0x398803;});})[_0x28f688('0x6e')](respondWithFilteredResult(_0x1cc9e2,_0x519202))[_0x28f688('0x52')](handleError(_0x1cc9e2,null));},exports[_0x1414b0('0x10')]=function(_0x29a11a,_0x45a16d){const _0x597f83=_0x1414b0;return db['OpenchannelAccount'][_0x597f83('0x34')]({'where':{'id':_0x29a11a[_0x597f83('0x69')]['id']}})[_0x597f83('0x6e')](handleEntityNotFound(_0x45a16d,null))[_0x597f83('0x6e')](function(_0x2fcdf6){const _0x5b94cb=_0x597f83;if(_0x2fcdf6)return _0x2fcdf6[_0x5b94cb('0x10')](_0x29a11a['query'][_0x5b94cb('0x62')]);})[_0x597f83('0x6e')](respondWithStatusCode(_0x45a16d,null))[_0x597f83('0x52')](handleError(_0x45a16d,null));},exports['addAnswer']=function(_0x30a893,_0x40f3bf){const _0xf0a8bf=_0x1414b0;return _0x30a893[_0xf0a8bf('0x91')]['id']&&delete _0x30a893[_0xf0a8bf('0x91')]['id'],db[_0xf0a8bf('0x98')][_0xf0a8bf('0x34')]({'where':{'id':_0x30a893['params']['id']}})[_0xf0a8bf('0x6e')](handleEntityNotFound(_0x40f3bf,null))[_0xf0a8bf('0x6e')](function(_0x3834e6){const _0x41a9c3=_0xf0a8bf;if(_0x3834e6)return _0x30a893[_0x41a9c3('0x91')][_0x41a9c3('0x5c')]=_0x3834e6['id'],db[_0x41a9c3('0x54')][_0x41a9c3('0x87')](_0x30a893[_0x41a9c3('0x91')]);})[_0xf0a8bf('0x6e')](respondWithResult(_0x40f3bf,null))['catch'](handleError(_0x40f3bf,null));},exports[_0x1414b0('0x8f')]=function(_0x187598,_0x1dea26){const _0x1f9124=_0x1414b0;let _0x51ebf0={'raw':![],'where':{}};const _0x3adf84={},_0x16f4f5={'count':0x0,'rows':[]};return db[_0x1f9124('0x98')]['findOne']({'where':{'id':_0x187598[_0x1f9124('0x69')]['id']}})[_0x1f9124('0x6e')](handleEntityNotFound(_0x1dea26,null))[_0x1f9124('0x6e')](function(_0x386962){const _0x3871c3=_0x1f9124;if(_0x386962)return _0x3adf84[_0x3871c3('0x19')]=_[_0x3871c3('0x45')](db[_0x3871c3('0x54')][_0x3871c3('0x3')]),_0x3adf84[_0x3871c3('0x47')]=_[_0x3871c3('0x45')](_0x187598[_0x3871c3('0x47')]),_0x3adf84[_0x3871c3('0x75')]=_[_0x3871c3('0x9a')](_0x3adf84[_0x3871c3('0x19')],_0x3adf84['query']),_0x51ebf0['attributes']=_['intersection'](_0x3adf84['model'],qs['fields'](_0x187598[_0x3871c3('0x47')]['fields'])),_0x51ebf0[_0x3871c3('0x36')]=_0x51ebf0[_0x3871c3('0x36')][_0x3871c3('0x89')]?_0x51ebf0[_0x3871c3('0x36')]:_0x3adf84[_0x3871c3('0x19')],typeof _0x187598['query'][_0x3871c3('0x84')]==='undefined'&&(_0x51ebf0[_0x3871c3('0x9f')]=qs[_0x3871c3('0x9f')](_0x187598[_0x3871c3('0x47')]['limit']),_0x51ebf0[_0x3871c3('0x7f')]=qs[_0x3871c3('0x7f')](_0x187598[_0x3871c3('0x47')][_0x3871c3('0x7f')])),_0x51ebf0['order']=qs[_0x3871c3('0x6a')](_0x187598[_0x3871c3('0x47')][_0x3871c3('0x6a')]),_0x51ebf0[_0x3871c3('0x3d')]=qs[_0x3871c3('0x75')](_[_0x3871c3('0x21')](_0x187598[_0x3871c3('0x47')],_0x3adf84[_0x3871c3('0x75')])),_0x51ebf0[_0x3871c3('0x3d')][_0x3871c3('0x5c')]=_0x386962['id'],_0x187598['query'][_0x3871c3('0x73')]&&(_0x51ebf0[_0x3871c3('0x3d')]=_[_0x3871c3('0x9d')](_0x51ebf0[_0x3871c3('0x3d')],{[Op['or']]:_[_0x3871c3('0x50')](_0x51ebf0[_0x3871c3('0x36')],function(_0x2211b2){const _0x1e91da=_0x3871c3,_0x3c641c={};return _0x3c641c[_0x2211b2]={[Op[_0x1e91da('0x8d')]]:'%'+_0x187598[_0x1e91da('0x47')]['filter']+'%'},_0x3c641c;})})),_0x51ebf0=_[_0x3871c3('0x9d')]({},_0x51ebf0,_0x187598['options']),db[_0x3871c3('0x54')]['count']({'where':_0x51ebf0[_0x3871c3('0x3d')]})['then'](function(_0x1a164c){const _0x571f58=_0x3871c3;return _0x16f4f5[_0x571f58('0x4c')]=_0x1a164c,_0x187598[_0x571f58('0x47')]['includeAll']&&(_0x51ebf0[_0x571f58('0x83')]=[{'all':!![]}]),db['CannedAnswer'][_0x571f58('0x17')](_0x51ebf0);})[_0x3871c3('0x6e')](function(_0x466e37){const _0x116c08=_0x3871c3;return _0x16f4f5[_0x116c08('0xa')]=_0x466e37,_0x16f4f5;});})[_0x1f9124('0x6e')](respondWithFilteredResult(_0x1dea26,_0x51ebf0))['catch'](handleError(_0x1dea26,null));},exports[_0x1414b0('0x4d')]=function(_0x4e98f8,_0x34f97b){const _0x21b123=_0x1414b0;return db[_0x21b123('0x98')][_0x21b123('0x34')]({'where':{'id':_0x4e98f8[_0x21b123('0x69')]['id']}})[_0x21b123('0x6e')](handleEntityNotFound(_0x34f97b,null))[_0x21b123('0x6e')](function(_0x56d716){const _0xf0c07f=_0x21b123;if(_0x56d716)return _0x56d716[_0xf0c07f('0x4d')](_0x4e98f8[_0xf0c07f('0x47')][_0xf0c07f('0x62')]);})[_0x21b123('0x6e')](respondWithStatusCode(_0x34f97b,null))[_0x21b123('0x52')](handleError(_0x34f97b,null));},exports[_0x1414b0('0x14')]=function(_0x2f4f3c,_0x4365af){const _0x267877=_0x1414b0,_0x5e6848={'body':_0x2f4f3c[_0x267877('0x91')],'channel':'openchannel'};let _0xe73aa2=[],_0x5e4c5f=[];const _0x44b793={};let _0x3cc1ce=![];return db[_0x267877('0x1d')][_0x267877('0x67')]()[_0x267877('0x6e')](function(_0x3dbf8d){const _0x24b225=_0x267877;if(!_0x3dbf8d)throw new ValidationError(_0x24b225('0x23'));_0xe73aa2=_['difference'](_['keys'](_0x3dbf8d),[_0x24b225('0x18'),_0x24b225('0x2c')]),_0x5e4c5f=_[_0x24b225('0x4f')](_[_0x24b225('0x45')](_0x3dbf8d),[_0x24b225('0x18'),_0x24b225('0x2c'),_0x24b225('0x35'),_0x24b225('0x57')]);_0x2f4f3c[_0x24b225('0x91')]['id']&&delete _0x2f4f3c[_0x24b225('0x91')]['id'];if(_[_0x24b225('0x78')](_0x2f4f3c[_0x24b225('0x91')][_0x24b225('0x43')]))throw new ValidationError(_0x24b225('0x8c'));if(_['isNil'](_0x2f4f3c['body'][_0x24b225('0x91')])||_0x2f4f3c[_0x24b225('0x91')][_0x24b225('0x91')]==='')throw new ValidationError(_0x24b225('0x68'));if(_['isNil'](_0x2f4f3c['body'][_0x24b225('0x3e')]))throw new ValidationError(_0x24b225('0x0')+_0x5e4c5f);if(!_[_0x24b225('0xd')](_0x5e4c5f,_0x2f4f3c[_0x24b225('0x91')][_0x24b225('0x3e')]))throw new ValidationError(_0x24b225('0x2b')+_0x5e4c5f);_0x44b793[_0x2f4f3c['body'][_0x24b225('0x3e')]]=_0x2f4f3c[_0x24b225('0x91')][_0x24b225('0x43')];})['then'](function(){const _0x5cc40b=_0x267877;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x2f4f3c[_0x5cc40b('0x69')]['id']},'include':[{'model':db[_0x5cc40b('0x6b')],'as':_0x5cc40b('0x25'),'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x44b793,'limit':0x1,'order':[['updatedAt',_0x5cc40b('0x2e')]]}]},{'model':db[_0x5cc40b('0x3f')],'as':_0x5cc40b('0x94')}]});})[_0x267877('0x6e')](handleEntityNotFound(_0x4365af,null))['then'](function(_0x1c393f){const _0x223e11=_0x267877;if(_0x1c393f&&_0x1c393f[_0x223e11('0x25')]){_0x5e6848[_0x223e11('0x31')]=_0x1c393f,_0x5e6848[_0x223e11('0x28')]=_0x1c393f[_0x223e11('0x94')],_0x5e6848['list']=_0x1c393f[_0x223e11('0x25')],_0x5e6848[_0x223e11('0x28')]=_[_0x223e11('0x97')](_0x5e6848['applications'],[_0x223e11('0x56')],[_0x223e11('0x2f')]);_0x5e6848['account'][_0x223e11('0x94')]&&delete _0x5e6848['account'][_0x223e11('0x94')];if(_0x5e6848[_0x223e11('0x31')][_0x223e11('0x25')]&&_0x5e6848[_0x223e11('0x31')][_0x223e11('0x25')][_0x223e11('0x8a')]['length'])return _0x5e6848[_0x223e11('0x31')][_0x223e11('0x25')][_0x223e11('0x8a')][0x0];const _0x1c7572=_[_0x223e11('0x7d')](_0x2f4f3c[_0x223e11('0x91')],{'firstName':_0x2f4f3c[_0x223e11('0x91')]['from'],'ListId':_0x1c393f[_0x223e11('0x57')]});return _0x1c7572[_0x2f4f3c['body'][_0x223e11('0x3e')]]=_0x2f4f3c[_0x223e11('0x91')][_0x223e11('0x43')],db[_0x223e11('0x1d')][_0x223e11('0x87')](_0x1c7572,{'fields':_0xe73aa2,'raw':!![]});}})[_0x267877('0x6e')](handleEntityNotFound(_0x4365af,null))[_0x267877('0x6e')](function(_0x38b918){const _0x548cb1=_0x267877;_0x5e6848[_0x548cb1('0x6f')]=_0x38b918;if(_0x38b918){const _0x1926b4={'ContactId':_0x38b918['id'],'OpenchannelAccountId':_0x2f4f3c[_0x548cb1('0x69')]['id'],'from':(_0x38b918[_0x548cb1('0x71')]||'')+'\x20'+(_0x38b918[_0x548cb1('0x42')]||'')},_0x171db8={'OpenchannelAccountId':_0x2f4f3c['params']['id'],'closed':![]};if(_0x2f4f3c[_0x548cb1('0x91')][_0x548cb1('0x4e')])return _0x171db8[_0x548cb1('0x4e')]=_0x2f4f3c[_0x548cb1('0x91')][_0x548cb1('0x4e')],db['OpenchannelInteraction']['findOne']({'where':_0x171db8})['then'](function(_0x47edd0){const _0x59835b=_0x548cb1;if(_0x47edd0)return[_0x47edd0,![]];return _0x1926b4[_0x59835b('0x4e')]=_0x2f4f3c[_0x59835b('0x91')]['threadId'],_0x1926b4[_0x59835b('0x13')]=_0x2f4f3c['body'][_0x59835b('0x13')],db[_0x59835b('0x39')][_0x59835b('0x87')](_0x1926b4)[_0x59835b('0x6e')](function(_0x2667c3){return[_0x2667c3,!![]];});});else _0x171db8[_0x548cb1('0x4e')]=null;return _0x171db8['ContactId']=_0x38b918['id'],db[_0x548cb1('0x39')][_0x548cb1('0x34')]({'where':_0x171db8})[_0x548cb1('0x6e')](function(_0x3984b7){const _0x1a3ce5=_0x548cb1;if(_0x3984b7)return[_0x3984b7,![]];return db[_0x1a3ce5('0x39')]['create'](_0x1926b4)[_0x1a3ce5('0x6e')](function(_0x41553e){return[_0x41553e,!![]];});});}})[_0x267877('0x6e')](function([_0x3c486d,_0x1fcbe1]){const _0x4c78ba=_0x267877;if(_0x3c486d){_0x3cc1ce=_0x1fcbe1;if(!_0x1fcbe1){const _0x25be19={'from':(_0x5e6848[_0x4c78ba('0x6f')]['firstName']||'')+'\x20'+(_0x5e6848[_0x4c78ba('0x6f')][_0x4c78ba('0x42')]||'')};return _0x2f4f3c[_0x4c78ba('0x91')]['threadId']&&_0x2f4f3c[_0x4c78ba('0x91')][_0x4c78ba('0x3c')]&&_0x2f4f3c['body']['threadId']!=_0x2f4f3c[_0x4c78ba('0x91')]['messageId']&&(_0x25be19[_0x4c78ba('0x4e')]=_0x2f4f3c[_0x4c78ba('0x91')][_0x4c78ba('0x3c')]),_0x3c486d[_0x4c78ba('0x12')](_0x25be19);}else return _0x3c486d;}})[_0x267877('0x6e')](function(_0x4cf99b){const _0x10e55a=_0x267877;return _0x5e6848[_0x10e55a('0x22')]=_0x4cf99b[_0x10e55a('0x1')]({'plain':!![]}),_0x5e6848['interaction'][_0x10e55a('0x58')]=_0x3cc1ce,_0x5e6848[_0x10e55a('0x22')]['created']&&(_0x5e6848[_0x10e55a('0x31')][_0x10e55a('0x7b')]&&_0x5e6848[_0x10e55a('0x28')][_0x10e55a('0x70')]({'id':0x0,'priority':_0x5e6848[_0x10e55a('0x28')]['length']+0x1,'app':_0x10e55a('0x5b'),'appdata':_0x10e55a('0x85'),'interval':_0x10e55a('0x2')})),db[_0x10e55a('0x9')][_0x10e55a('0x87')]({'body':_0x2f4f3c[_0x10e55a('0x91')][_0x10e55a('0x91')],'OpenchannelAccountId':_0x2f4f3c[_0x10e55a('0x69')]['id'],'OpenchannelInteractionId':_0x4cf99b['id'],'direction':'in','ContactId':_0x5e6848[_0x10e55a('0x6f')]['id'],'AttachmentId':_0x2f4f3c[_0x10e55a('0x91')][_0x10e55a('0x6d')]});})[_0x267877('0x6e')](function(_0x3a1e6f){const _0x4348d2=_0x267877;_0x5e6848[_0x4348d2('0x86')]=_0x3a1e6f;if(_0x5e6848[_0x4348d2('0x22')][_0x4348d2('0x66')])return db[_0x4348d2('0x51')][_0x4348d2('0x34')]({'attributes':['id',_0x4348d2('0x9b')],'where':{'id':_0x5e6848[_0x4348d2('0x22')][_0x4348d2('0x66')]}})['then'](function(_0x116a24){const _0x8a590d=_0x4348d2;return _0x116a24&&(_0x5e6848[_0x8a590d('0x28')][_0x8a590d('0x92')]({'id':0x0,'priority':0x0,'app':_0x8a590d('0x3b'),'appdata':_0x116a24[_0x8a590d('0x9b')]+','+(_0x5e6848[_0x8a590d('0x31')][_0x8a590d('0x7e')]||0xa),'interval':_0x8a590d('0x2')}),_0x5e6848['forcedOwnership']=![]),respondWithRpcPromise(_0x8a590d('0x5d'),_0x8a590d('0x44'),_0x5e6848);});return respondWithRpcPromise(_0x4348d2('0x5d'),'startRouting',_0x5e6848);})['then'](function(_0x4d31d8){const _0x2b27fe=_0x267877;return respondWithRpcPromise(_0x2b27fe('0x74'),_0x2b27fe('0x74'),{'event':'notify','message':_0x4d31d8},client9002),_0x4d31d8;})[_0x267877('0x6e')](respondWithResult(_0x4365af,null))[_0x267877('0x52')](handleError(_0x4365af,null));},exports[_0x1414b0('0x3a')]=function(_0x33ed43,_0x1213cd){const _0x28ea9e=_0x1414b0;return db[_0x28ea9e('0x98')][_0x28ea9e('0x34')]({'where':{'id':_0x33ed43[_0x28ea9e('0x69')]['id']}})[_0x28ea9e('0x6e')](handleEntityNotFound(_0x1213cd,null))['then'](function(_0x4b6449){const _0x16a009=_0x28ea9e;if(_0x4b6449)return db[_0x16a009('0x4a')][_0x16a009('0x61')](function(_0x437ef5){const _0x403a2c=_0x16a009;return db[_0x403a2c('0x3f')]['destroy']({'where':{'OpenchannelAccountId':_0x33ed43[_0x403a2c('0x69')]['id']},'transaction':_0x437ef5})['then'](function(){const _0x21de47=_0x403a2c,_0x545ec1=_[_0x21de47('0x50')](_0x33ed43[_0x21de47('0x91')],function(_0x533daf){const _0x5e009f=_0x21de47;return _0x533daf[_0x5e009f('0x5c')]=_0x33ed43[_0x5e009f('0x69')]['id'],_0x533daf;});return db[_0x21de47('0x3f')][_0x21de47('0x8')](_0x545ec1,{'transaction':_0x437ef5});});})[_0x16a009('0x6e')](function(){const _0x4eb8d6=_0x16a009;return db[_0x4eb8d6('0x3f')][_0x4eb8d6('0x7a')]({'where':{'OpenchannelAccountId':_0x33ed43[_0x4eb8d6('0x69')]['id']},'order':_0x4eb8d6('0x56')});});})[_0x28ea9e('0x6e')](respondWithResult(_0x1213cd,null))[_0x28ea9e('0x52')](handleError(_0x1213cd,null));},exports[_0x1414b0('0x59')]=function(_0x51f73e,_0x2badaf){const _0x3051cb=_0x1414b0;let _0x269702={};const _0x279d01={};let _0x59d31a,_0xaaa1e8;return db['OpenchannelAccount'][_0x3051cb('0x34')]({'where':{'id':_0x51f73e[_0x3051cb('0x69')]['id']}})[_0x3051cb('0x6e')](handleEntityNotFound(_0x2badaf,null))[_0x3051cb('0x6e')](function(_0x11195e){const _0x2215e7=_0x3051cb;if(_0x11195e)return _0x59d31a=_0x11195e,_0x279d01[_0x2215e7('0x19')]=_[_0x2215e7('0x45')](db[_0x2215e7('0x3f')][_0x2215e7('0x3')]),_0x279d01['query']=_[_0x2215e7('0x45')](_0x51f73e[_0x2215e7('0x47')]),_0x279d01[_0x2215e7('0x75')]=_['intersection'](_0x279d01[_0x2215e7('0x19')],_0x279d01[_0x2215e7('0x47')]),_0x269702[_0x2215e7('0x36')]=_['intersection'](_0x279d01[_0x2215e7('0x19')],qs[_0x2215e7('0x5f')](_0x51f73e[_0x2215e7('0x47')][_0x2215e7('0x5f')])),_0x269702[_0x2215e7('0x36')]=_0x269702[_0x2215e7('0x36')][_0x2215e7('0x89')]?_0x269702[_0x2215e7('0x36')]:_0x279d01[_0x2215e7('0x19')],_0x269702['order']=qs[_0x2215e7('0x6a')](_0x51f73e[_0x2215e7('0x47')][_0x2215e7('0x6a')]),_0x269702[_0x2215e7('0x3d')]=qs[_0x2215e7('0x75')](_[_0x2215e7('0x21')](_0x51f73e[_0x2215e7('0x47')],_0x279d01[_0x2215e7('0x75')])),_0x51f73e['query'][_0x2215e7('0x73')]&&(_0x269702[_0x2215e7('0x3d')]=_['merge'](_0x269702[_0x2215e7('0x3d')],{[Op['or']]:_[_0x2215e7('0x50')](_0x269702[_0x2215e7('0x36')],function(_0x419fcf){const _0x26afc7=_0x2215e7,_0x28ef13={};return _0x28ef13[_0x419fcf]={[Op[_0x26afc7('0x8d')]]:'%'+_0x51f73e[_0x26afc7('0x47')][_0x26afc7('0x73')]+'%'},_0x28ef13;})})),_0x269702=_['merge']({},_0x269702,_0x51f73e[_0x2215e7('0x9c')]),_0x59d31a[_0x2215e7('0x59')](_0x269702);})[_0x3051cb('0x6e')](function(_0x250a0d){const _0x3ff009=_0x3051cb;if(_0x250a0d)return _0xaaa1e8=_0x250a0d['length'],typeof _0x51f73e[_0x3ff009('0x47')][_0x3ff009('0x84')]===_0x3ff009('0x55')&&(_0x269702[_0x3ff009('0x9f')]=qs[_0x3ff009('0x9f')](_0x51f73e[_0x3ff009('0x47')][_0x3ff009('0x9f')]),_0x269702['offset']=qs['offset'](_0x51f73e[_0x3ff009('0x47')]['offset'])),_0x59d31a[_0x3ff009('0x59')](_0x269702);})[_0x3051cb('0x6e')](function(_0x1bc1fd){if(_0x1bc1fd)return _0x1bc1fd?{'count':_0xaaa1e8,'rows':_0x1bc1fd}:null;})['then'](respondWithResult(_0x2badaf,null))[_0x3051cb('0x52')](handleError(_0x2badaf,null));},exports[_0x1414b0('0x30')]=function(_0x1432b0,_0x53b83c){const _0x2786ae=_0x1414b0;let _0x399329={'raw':![],'where':{}};const _0x195d5d={},_0x2cbd7b={'count':0x0,'rows':[]};return db[_0x2786ae('0x98')]['findOne']({'where':{'id':_0x1432b0[_0x2786ae('0x69')]['id']}})['then'](handleEntityNotFound(_0x53b83c,null))['then'](function(_0x23a4ae){const _0x174679=_0x2786ae;if(_0x23a4ae)return _0x195d5d['model']=_['keys'](db[_0x174679('0x39')][_0x174679('0x3')]),_0x195d5d[_0x174679('0x47')]=_['keys'](_0x1432b0['query']),_0x195d5d[_0x174679('0x75')]=_[_0x174679('0x9a')](_0x195d5d[_0x174679('0x19')],_0x195d5d[_0x174679('0x47')]),_0x399329[_0x174679('0x36')]=_['intersection'](_0x195d5d[_0x174679('0x19')],qs[_0x174679('0x5f')](_0x1432b0[_0x174679('0x47')][_0x174679('0x5f')])),_0x399329[_0x174679('0x36')]=_0x399329[_0x174679('0x36')][_0x174679('0x89')]?_0x399329['attributes']:_0x195d5d[_0x174679('0x19')],typeof _0x1432b0[_0x174679('0x47')][_0x174679('0x84')]==='undefined'&&(_0x399329[_0x174679('0x9f')]=qs[_0x174679('0x9f')](_0x1432b0['query'][_0x174679('0x9f')]),_0x399329[_0x174679('0x7f')]=qs[_0x174679('0x7f')](_0x1432b0[_0x174679('0x47')]['offset'])),_0x399329[_0x174679('0x5')]=qs[_0x174679('0x6a')](_0x1432b0[_0x174679('0x47')][_0x174679('0x6a')]),_0x399329[_0x174679('0x3d')]=qs[_0x174679('0x75')](_[_0x174679('0x21')](_0x1432b0[_0x174679('0x47')],_0x195d5d[_0x174679('0x75')])),_0x399329[_0x174679('0x3d')][_0x174679('0x5c')]=_0x23a4ae['id'],_0x1432b0['query']['filter']&&(_0x399329[_0x174679('0x3d')]=_['merge'](_0x399329['where'],{[Op['or']]:_['map'](_0x399329[_0x174679('0x36')],function(_0x53313e){const _0x574342=_0x174679,_0x59db29={};return _0x59db29[_0x53313e]={[Op[_0x574342('0x8d')]]:'%'+_0x1432b0['query'][_0x574342('0x73')]+'%'},_0x59db29;})})),_0x399329=_[_0x174679('0x9d')]({},_0x399329,_0x1432b0['options']),db[_0x174679('0x39')][_0x174679('0x4c')]({'where':_0x399329[_0x174679('0x3d')]})['then'](function(_0x2e505b){const _0x5358a2=_0x174679;return _0x2cbd7b[_0x5358a2('0x4c')]=_0x2e505b,_0x1432b0[_0x5358a2('0x47')][_0x5358a2('0x6')]&&(_0x399329[_0x5358a2('0x83')]=[{'model':db[_0x5358a2('0x1d')],'as':_0x5358a2('0xc'),'required':![]},{'model':db[_0x5358a2('0x51')],'as':_0x5358a2('0x16'),'attributes':[_0x5358a2('0x9b'),'fullname',_0x5358a2('0x15')],'required':![]},{'model':db['Tag'],'as':_0x5358a2('0x63'),'attributes':['id',_0x5358a2('0x9b'),_0x5358a2('0x90')],'where':_0x1432b0[_0x5358a2('0x47')]['tag']?{'id':_0x1432b0[_0x5358a2('0x47')][_0x5358a2('0x24')]}:undefined,'required':_0x1432b0[_0x5358a2('0x47')][_0x5358a2('0x24')]?!![]:![]}]),db[_0x5358a2('0x39')][_0x5358a2('0x17')](_0x399329);})[_0x174679('0x6e')](function(_0x32c676){return _0x2cbd7b['rows']=_0x32c676,_0x2cbd7b;});})[_0x2786ae('0x6e')](respondWithFilteredResult(_0x53b83c,_0x399329))[_0x2786ae('0x52')](handleError(_0x53b83c,null));},exports['addAgents']=function(_0x2cab8d,_0x1afdc3){const _0x302608=_0x1414b0;return db['OpenchannelAccount']['findOne']({'where':{'id':_0x2cab8d[_0x302608('0x69')]['id']}})[_0x302608('0x6e')](function(_0x3d836a){const _0x245b3a=_0x302608;if(_0x3d836a)return _0x3d836a[_0x245b3a('0x48')](_0x2cab8d[_0x245b3a('0x91')]['ids'],{'through':_[_0x245b3a('0x80')](_0x2cab8d[_0x245b3a('0x91')],['ids','id'])})['then'](function(_0x2aa9d8){const _0x4681ee=_0x245b3a;for(let _0x4e624c=0x0;_0x4e624c<_0x2cab8d[_0x4681ee('0x91')][_0x4681ee('0x62')][_0x4681ee('0x89')];_0x4e624c+=0x1){socket['emit']('userOpenchannelAccount:save',{'UserId':_0x2cab8d[_0x4681ee('0x91')][_0x4681ee('0x62')][_0x4e624c],'OpenchannelAccountId':_0x2cab8d[_0x4681ee('0x69')]['id']});}return _0x2aa9d8;});})[_0x302608('0x6e')](respondWithResult(_0x1afdc3,null))[_0x302608('0x52')](handleError(_0x1afdc3,null));},exports[_0x1414b0('0x99')]=function(_0x824963,_0x39042d){const _0x5ee905=_0x1414b0;return db[_0x5ee905('0x98')][_0x5ee905('0x34')]({'where':{'id':_0x824963[_0x5ee905('0x69')]['id']}})[_0x5ee905('0x6e')](handleEntityNotFound(_0x39042d,null))[_0x5ee905('0x6e')](function(_0x28306f){const _0x4dd3dc=_0x5ee905;if(_0x28306f)return _0x28306f[_0x4dd3dc('0x99')](_0x824963[_0x4dd3dc('0x47')][_0x4dd3dc('0x62')])[_0x4dd3dc('0x6e')](function(){const _0x51331c=_0x4dd3dc;if(_[_0x51331c('0x41')](_0x824963[_0x51331c('0x47')]['ids']))for(let _0x36a8d6=0x0;_0x36a8d6<_0x824963[_0x51331c('0x47')]['ids'][_0x51331c('0x89')];_0x36a8d6+=0x1){socket[_0x51331c('0x2d')](_0x51331c('0x7'),{'UserId':Number(_0x824963[_0x51331c('0x47')][_0x51331c('0x62')][_0x36a8d6]),'OpenchannelAccountId':Number(_0x824963[_0x51331c('0x69')]['id'])});}else socket['emit'](_0x51331c('0x7'),{'UserId':Number(_0x824963[_0x51331c('0x47')][_0x51331c('0x62')]),'OpenchannelAccountId':Number(_0x824963[_0x51331c('0x69')]['id'])});});})[_0x5ee905('0x6e')](respondWithStatusCode(_0x39042d,null))[_0x5ee905('0x52')](handleError(_0x39042d,null));},exports[_0x1414b0('0x65')]=function(_0x3c0cd0,_0x44ffa7){const _0x4b4e3e=_0x1414b0;let _0x2751f7={};const _0x4b0e5c={};let _0x409a82,_0x46abfa;return db[_0x4b4e3e('0x98')]['findOne']({'where':{'id':_0x3c0cd0[_0x4b4e3e('0x69')]['id']}})[_0x4b4e3e('0x6e')](handleEntityNotFound(_0x44ffa7,null))['then'](function(_0x109efd){const _0xbb91e1=_0x4b4e3e;if(_0x109efd)return _0x409a82=_0x109efd,_0x4b0e5c[_0xbb91e1('0x19')]=_[_0xbb91e1('0x45')](db[_0xbb91e1('0x51')][_0xbb91e1('0x3')]),_0x4b0e5c['query']=_[_0xbb91e1('0x45')](_0x3c0cd0[_0xbb91e1('0x47')]),_0x4b0e5c[_0xbb91e1('0x75')]=_['intersection'](_0x4b0e5c[_0xbb91e1('0x19')],_0x4b0e5c[_0xbb91e1('0x47')]),_0x2751f7['attributes']=_[_0xbb91e1('0x9a')](_0x4b0e5c[_0xbb91e1('0x19')],qs[_0xbb91e1('0x5f')](_0x3c0cd0['query'][_0xbb91e1('0x5f')])),_0x2751f7[_0xbb91e1('0x36')]=_0x2751f7[_0xbb91e1('0x36')][_0xbb91e1('0x89')]?_0x2751f7[_0xbb91e1('0x36')]:_0x4b0e5c['model'],_0x2751f7[_0xbb91e1('0x5')]=qs[_0xbb91e1('0x6a')](_0x3c0cd0[_0xbb91e1('0x47')][_0xbb91e1('0x6a')]),_0x2751f7['where']=qs[_0xbb91e1('0x75')](_[_0xbb91e1('0x21')](_0x3c0cd0[_0xbb91e1('0x47')],_0x4b0e5c[_0xbb91e1('0x75')])),_0x3c0cd0[_0xbb91e1('0x47')][_0xbb91e1('0x73')]&&(_0x2751f7['where']=_['merge'](_0x2751f7[_0xbb91e1('0x3d')],{[Op['or']]:_[_0xbb91e1('0x50')](_0x2751f7[_0xbb91e1('0x36')],function(_0xe14e67){const _0x9f9d9e=_0xbb91e1,_0x5405a3={};return _0x5405a3[_0xe14e67]={[Op[_0x9f9d9e('0x8d')]]:'%'+_0x3c0cd0['query'][_0x9f9d9e('0x73')]+'%'},_0x5405a3;})})),_0x2751f7=_[_0xbb91e1('0x9d')]({},_0x2751f7,_0x3c0cd0[_0xbb91e1('0x9c')]),_0x409a82[_0xbb91e1('0x65')](_0x2751f7);})[_0x4b4e3e('0x6e')](function(_0x3fbcab){const _0x20332b=_0x4b4e3e;if(_0x3fbcab)return _0x46abfa=_0x3fbcab[_0x20332b('0x89')],typeof _0x3c0cd0[_0x20332b('0x47')][_0x20332b('0x84')]===_0x20332b('0x55')&&(_0x2751f7[_0x20332b('0x9f')]=qs['limit'](_0x3c0cd0[_0x20332b('0x47')][_0x20332b('0x9f')]),_0x2751f7[_0x20332b('0x7f')]=qs[_0x20332b('0x7f')](_0x3c0cd0[_0x20332b('0x47')]['offset'])),_0x409a82[_0x20332b('0x65')](_0x2751f7);})[_0x4b4e3e('0x6e')](function(_0x197ba2){if(_0x197ba2)return _0x197ba2?{'count':_0x46abfa,'rows':_0x197ba2}:null;})['then'](respondWithResult(_0x44ffa7,null))[_0x4b4e3e('0x52')](handleError(_0x44ffa7,null));},exports[_0x1414b0('0x9e')]=function(_0x2f11f7,_0x2fecf2){const _0xae95de=_0x1414b0;let _0xe01683,_0x37615f;if(_[_0xae95de('0x78')](_0x2f11f7[_0xae95de('0x91')][_0xae95de('0x91')])||_0x2f11f7[_0xae95de('0x91')][_0xae95de('0x91')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0xae95de('0x78')](_0x2f11f7[_0xae95de('0x91')]['to'])){}const _0x323965=_0x2f11f7[_0xae95de('0x91')]['to'];return db['OpenchannelAccount'][_0xae95de('0x34')]({'where':{'id':_0x2f11f7[_0xae95de('0x69')]['id']}})[_0xae95de('0x6e')](handleEntityNotFound(_0x2fecf2,null))[_0xae95de('0x6e')](function(_0x4db3a9){const _0x1971b7=_0xae95de;if(_0x4db3a9)return db[_0x1971b7('0x98')][_0x1971b7('0x34')]({'where':{'id':_0x4db3a9['id']},'include':[{'model':db['CmList'],'as':_0x1971b7('0x25'),'include':[{'model':db[_0x1971b7('0x1d')],'as':_0x1971b7('0x8a'),'where':{[_0x4db3a9['mapKey']]:_0x323965},'limit':0x1,'order':[[_0x1971b7('0x2c'),'DESC']]}]}]})[_0x1971b7('0x6e')](handleEntityNotFound(_0x2fecf2,null))[_0x1971b7('0x6e')](function(_0x1eda92){const _0x16ae60=_0x1971b7;if(_0x1eda92&&_0x1eda92[_0x16ae60('0x25')]){_0xe01683=_0x1eda92[_0x16ae60('0x1')]({'plain':!![]});if(_0xe01683[_0x16ae60('0x25')]&&_0xe01683['List'][_0x16ae60('0x8a')][_0x16ae60('0x89')])return _0xe01683[_0x16ae60('0x25')]['Contacts'][0x0];return db[_0x16ae60('0x1d')][_0x16ae60('0x87')](_['defaults'](_0x2f11f7[_0x16ae60('0x91')],{'firstName':_0x323965,[_0x1eda92[_0x16ae60('0x3e')]]:_0x323965,'phone':_0x323965,'ListId':_0xe01683[_0x16ae60('0x57')]}));}})[_0x1971b7('0x6e')](handleEntityNotFound(_0x2fecf2,null))[_0x1971b7('0x6e')](function(_0x44c197){const _0x440255=_0x1971b7;if(_0x44c197)return _0x37615f=_0x44c197,db[_0x440255('0x39')]['findOne']({'where':{'ContactId':_0x37615f['id'],'closed':![],'OpenchannelAccountId':_0xe01683['id']}})[_0x440255('0x6e')](function(_0x2bd5df){const _0x5aeb2d=_0x440255;if(_0x2bd5df)return[_0x2bd5df,![]];return db[_0x5aeb2d('0x39')][_0x5aeb2d('0x87')]({'UserId':_0x2f11f7[_0x5aeb2d('0x38')]['id'],'ContactId':_0x37615f['id'],'OpenchannelAccountId':_0xe01683['id'],'lastMsgDirection':_0x5aeb2d('0x72'),'Messages':[_[_0x5aeb2d('0x9d')](_0x2f11f7[_0x5aeb2d('0x91')],{'read':![],'body':_0x2f11f7[_0x5aeb2d('0x91')][_0x5aeb2d('0x91')],'OpenchannelAccountId':_0xe01683['id'],'UserId':_0x2f11f7[_0x5aeb2d('0x38')]['id'],'ContactId':_0x37615f['id']})]},{'include':[{'model':db[_0x5aeb2d('0x9')],'as':'Messages'}]})[_0x5aeb2d('0x6e')](function(_0x1a7f57){return[_0x1a7f57,!![]];});});})[_0x1971b7('0x6e')](function([_0x4e1661,_0x367dda]){const _0x3f56e9=_0x1971b7;if(_0x367dda)return _0x4e1661;return db[_0x3f56e9('0x9')]['create'](_['merge'](_0x2f11f7['body'],{'read':![],'body':_0x2f11f7['body'][_0x3f56e9('0x91')],'OpenchannelAccountId':_0xe01683['id'],'OpenchannelInteractionId':_0x4e1661['id'],'UserId':_0x2f11f7[_0x3f56e9('0x38')]['id'],'ContactId':_0x37615f['id']}))[_0x3f56e9('0x6e')](function(_0x353bc5){const _0x103e43=_0x3f56e9;return _0x4e1661[_0x103e43('0x20')][_0x103e43('0x46')]=[],_0x4e1661[_0x103e43('0x20')][_0x103e43('0x46')][_0x103e43('0x70')](_0x353bc5[_0x103e43('0x20')]),_0x4e1661;});});})[_0xae95de('0x6e')](respondWithResult(_0x2fecf2,null))[_0xae95de('0x52')](handleError(_0x2fecf2,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index 827bfe5..a6b7d69 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a469_0x19fe=['undefined','OpenchannelAccount','exports','emit','remove','addHook','events','setMaxListeners'];(function(_0x2e2bb7,_0x19fe96){const _0x3be22d=function(_0x1504e0){while(--_0x1504e0){_0x2e2bb7['push'](_0x2e2bb7['shift']());}};_0x3be22d(++_0x19fe96);}(a469_0x19fe,0x74));const a469_0x3be2=function(_0x2e2bb7,_0x19fe96){_0x2e2bb7=_0x2e2bb7-0x0;let _0x3be22d=a469_0x19fe[_0x2e2bb7];return _0x3be22d;};const _0x58b262=a469_0x3be2;'use strict';const EventEmitter=require(_0x58b262('0x2')),OpenchannelAccount=require('../../mysqldb')['db'][_0x58b262('0x5')],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x58b262('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x58b262('0x0')};function emitEvent(_0x1504e0){return function(_0x3a8c6b){const _0x5a1b=a469_0x3be2;OpenchannelAccountEvents[_0x5a1b('0x7')](_0x1504e0+':'+_0x3a8c6b['id'],_0x3a8c6b),OpenchannelAccountEvents[_0x5a1b('0x7')](_0x1504e0,_0x3a8c6b);};}for(const e in events){if(typeof events[e]!==_0x58b262('0x4')){const event=events[e];OpenchannelAccount[_0x58b262('0x1')](e,emitEvent(event));}}module[_0x58b262('0x6')]=OpenchannelAccountEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index 4f121b7..7c58b13 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a470_0xbfcf=['openchannel_accounts','OpenchannelAccount','define'];(function(_0x276743,_0xbfcfe3){const _0x392483=function(_0xa48bdc){while(--_0xa48bdc){_0x276743['push'](_0x276743['shift']());}};_0x392483(++_0xbfcfe3);}(a470_0xbfcf,0xd3));const a470_0x3924=function(_0x276743,_0xbfcfe3){_0x276743=_0x276743-0x0;let _0x392483=a470_0xbfcf[_0x276743];return _0x392483;};'use strict';const attributes=require('./openchannelAccount.attributes');module['exports']=function(_0xa48bdc){const _0x527d96=a470_0x3924,_0x4573d4=_0xa48bdc[_0x527d96('0x1')](_0x527d96('0x0'),attributes,{'tableName':_0x527d96('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4573d4;}; \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index 2dcee8f..48a410b 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a471_0x3cd5=['../../rediscache','register','./openchannelAccount.socket'];(function(_0x33238c,_0x3cd545){const _0x1f9ab4=function(_0x22b1d9){while(--_0x22b1d9){_0x33238c['push'](_0x33238c['shift']());}};_0x1f9ab4(++_0x3cd545);}(a471_0x3cd5,0x1bd));const a471_0x1f9a=function(_0x33238c,_0x3cd545){_0x33238c=_0x33238c-0x0;let _0x1f9ab4=a471_0x3cd5[_0x33238c];return _0x1f9ab4;};const _0x557447=a471_0x1f9a;'use strict';const {getSocket}=require(_0x557447('0x2')),socket=getSocket();require(_0x557447('0x1'))[_0x557447('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index dec59d9..ee91b6e 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a472_0x1a07=['emit','save','openchannelAccount:','./openchannelAccount.events','register','update'];(function(_0x80bc08,_0x1a070e){const _0x184684=function(_0x23f4ec){while(--_0x23f4ec){_0x80bc08['push'](_0x80bc08['shift']());}};_0x184684(++_0x1a070e);}(a472_0x1a07,0x9d));const a472_0x1846=function(_0x80bc08,_0x1a070e){_0x80bc08=_0x80bc08-0x0;let _0x184684=a472_0x1a07[_0x80bc08];return _0x184684;};const _0x15b130=a472_0x1846;'use strict';const OpenchannelAccountEvents=require(_0x15b130('0x2')),events=[_0x15b130('0x0'),'remove',_0x15b130('0x4')];function createListener(_0x23f4ec,_0xe0e5e1){return function(_0x43a472){const _0x5c342b=a472_0x1846;_0xe0e5e1[_0x5c342b('0x5')](_0x23f4ec,_0x43a472);};}exports[_0x15b130('0x3')]=function(_0x46a6db){const _0x6a15d3=_0x15b130;for(let _0x340077=0x0,_0x31a9f4=events['length'];_0x340077<_0x31a9f4;_0x340077++){const _0x1dcc48=events[_0x340077],_0x475b90=createListener(_0x6a15d3('0x1')+_0x1dcc48,_0x46a6db);OpenchannelAccountEvents['on'](_0x1dcc48,_0x475b90);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index a3eeffb..d6e3a22 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a473_0x5d98=['put','get','exports','/:id','index','./openchannelApplication.controller','express','isAuthenticated','delete','destroy','Router','../../components/auth/service','show'];(function(_0x37d8a6,_0x5d9842){const _0x145756=function(_0x115e49){while(--_0x115e49){_0x37d8a6['push'](_0x37d8a6['shift']());}};_0x145756(++_0x5d9842);}(a473_0x5d98,0x176));const a473_0x1457=function(_0x37d8a6,_0x5d9842){_0x37d8a6=_0x37d8a6-0x0;let _0x145756=a473_0x5d98[_0x37d8a6];return _0x145756;};const _0x1538bd=a473_0x1457;'use strict';const express=require(_0x1538bd('0x9')),router=express[_0x1538bd('0x0')](),auth=require(_0x1538bd('0x1')),controller=require(_0x1538bd('0x8'));router[_0x1538bd('0x4')]('/',auth[_0x1538bd('0xa')](),controller[_0x1538bd('0x7')]),router[_0x1538bd('0x4')]('/:id',auth[_0x1538bd('0xa')](),controller[_0x1538bd('0x2')]),router['post']('/',auth[_0x1538bd('0xa')](),controller['create']),router[_0x1538bd('0x3')](_0x1538bd('0x6'),auth[_0x1538bd('0xa')](),controller['update']),router[_0x1538bd('0xb')]('/:id',auth[_0x1538bd('0xa')](),controller[_0x1538bd('0xc')]),module[_0x1538bd('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index d9d6916..605334d 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a474_0x35da=['STRING','*,*,*,*','noop','INTEGER'];(function(_0x5346cf,_0x35da97){const _0x5c0542=function(_0x4e89de){while(--_0x4e89de){_0x5346cf['push'](_0x5346cf['shift']());}};_0x5c0542(++_0x35da97);}(a474_0x35da,0x152));const a474_0x5c05=function(_0x5346cf,_0x35da97){_0x5346cf=_0x5346cf-0x0;let _0x5c0542=a474_0x35da[_0x5346cf];return _0x5c0542;};const _0x3feb20=a474_0x5c05;'use strict';const Sequelize=require('sequelize');module['exports']={'priority':{'type':Sequelize[_0x3feb20('0x1')],'allowNull':![]},'app':{'type':Sequelize[_0x3feb20('0x2')],'allowNull':![],'defaultValue':_0x3feb20('0x0')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x3feb20('0x2')]},'interval':{'type':Sequelize[_0x3feb20('0x2')],'defaultValue':_0x3feb20('0x3')}}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index 5adc716..70a06ae 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a475_0x5f0c=['count','offset','api','length','sort','show','destroy','map','stack','catch','type','set','name','order','../../config/logger','findOne','includeAll','Content-Range','attributes','keys','like','filters','filter','json','rows','limit','options','params','sequelize','rawAttributes','findAll','query','error','fieldName','where','../../components/parsers/qs','body','intersection','model','merge','index','OpenchannelApplication','include','end','key','pick','create','fields','lodash','send','status','then'];(function(_0x4e558a,_0x5f0c35){const _0x361430=function(_0x4ae6b5){while(--_0x4ae6b5){_0x4e558a['push'](_0x4e558a['shift']());}};_0x361430(++_0x5f0c35);}(a475_0x5f0c,0x1d0));const a475_0x3614=function(_0x4e558a,_0x5f0c35){_0x4e558a=_0x4e558a-0x0;let _0x361430=a475_0x5f0c[_0x4e558a];return _0x361430;};const _0x1d66ea=a475_0x3614;'use strict';const _=require(_0x1d66ea('0x0')),qs=require(_0x1d66ea('0x27')),logger=require(_0x1d66ea('0x12'))(_0x1d66ea('0x6')),db=require('../../mysqldb')['db'],{Op}=require(_0x1d66ea('0x20'));function respondWithResult(_0x4ae6b5,_0x4cc583){return _0x4cc583=_0x4cc583||0xc8,function(_0x55cab7){const _0x1c22b5=a475_0x3614;if(_0x55cab7)return _0x4ae6b5[_0x1c22b5('0x2')](_0x4cc583)[_0x1c22b5('0x1b')](_0x55cab7);};}function respondWithFilteredResult(_0x5bf6f1,_0xa4781b){return function(_0x488d95){const _0x58cdf0=a475_0x3614;if(_0x488d95){const _0x514d40=_0x488d95[_0x58cdf0('0x4')],_0x5ed15d=_0xa4781b['offset'];let _0x595ad7=_0xa4781b[_0x58cdf0('0x5')]+_0xa4781b[_0x58cdf0('0x1d')],_0x34e5f7;return _0x595ad7>=_0x514d40?(_0x595ad7=_0x514d40,_0x34e5f7=0xc8):_0x34e5f7=0xce,_0x5bf6f1[_0x58cdf0('0x2')](_0x34e5f7),_0x5bf6f1[_0x58cdf0('0xf')](_0x58cdf0('0x15'),_0x5ed15d+'-'+_0x595ad7+'/'+_0x514d40)['json'](_0x488d95);}return null;};}function saveUpdates(_0x95f40c){return function(_0x627ba1){const _0x5ea647=a475_0x3614;if(_0x627ba1)return _0x627ba1['update'](_0x95f40c)[_0x5ea647('0x3')](function(_0x253b6c){return _0x253b6c;});return null;};}function removeEntity(_0x5839b6){return function(_0x44a2e6){const _0x41aa11=a475_0x3614;if(_0x44a2e6)return _0x44a2e6[_0x41aa11('0xa')]()[_0x41aa11('0x3')](function(){const _0x261da0=_0x41aa11;_0x5839b6[_0x261da0('0x2')](0xcc)[_0x261da0('0x2f')]();});};}function handleEntityNotFound(_0x3c994a){return function(_0x1b7ddd){return!_0x1b7ddd&&_0x3c994a['sendStatus'](0x194),_0x1b7ddd;};}function handleError(_0x1323b,_0x3fe94f){return _0x3fe94f=_0x3fe94f||0x1f4,function(_0x5bc62a){const _0xebc4=a475_0x3614;logger[_0xebc4('0x24')](_0x5bc62a[_0xebc4('0xc')]),_0x5bc62a[_0xebc4('0x10')]&&delete _0x5bc62a['name'],_0x1323b['status'](_0x3fe94f)[_0xebc4('0x1')](_0x5bc62a);};}exports[_0x1d66ea('0x2c')]=function(_0x5bcf27,_0x4ed1d9){const _0x53af2a=_0x1d66ea;let _0x2ade68={};const _0x267dba={},_0x5d50d7={'count':0x0,'rows':[]},_0x3bc8bb=_[_0x53af2a('0xb')](db[_0x53af2a('0x2d')][_0x53af2a('0x21')],function(_0x571a91){const _0x44c467=_0x53af2a;return{'name':_0x571a91[_0x44c467('0x25')],'type':_0x571a91[_0x44c467('0xe')][_0x44c467('0x30')]};});_0x267dba[_0x53af2a('0x2a')]=_[_0x53af2a('0xb')](_0x3bc8bb,_0x53af2a('0x10')),_0x267dba[_0x53af2a('0x23')]=_[_0x53af2a('0x17')](_0x5bcf27[_0x53af2a('0x23')]),_0x267dba[_0x53af2a('0x19')]=_[_0x53af2a('0x29')](_0x267dba[_0x53af2a('0x2a')],_0x267dba[_0x53af2a('0x23')]),_0x2ade68['attributes']=_['intersection'](_0x267dba[_0x53af2a('0x2a')],qs[_0x53af2a('0x33')](_0x5bcf27[_0x53af2a('0x23')][_0x53af2a('0x33')])),_0x2ade68['attributes']=_0x2ade68['attributes'][_0x53af2a('0x7')]?_0x2ade68[_0x53af2a('0x16')]:_0x267dba[_0x53af2a('0x2a')];typeof _0x5bcf27[_0x53af2a('0x23')]['nolimit']==='undefined'&&(_0x2ade68['limit']=qs['limit'](_0x5bcf27[_0x53af2a('0x23')][_0x53af2a('0x1d')]),_0x2ade68[_0x53af2a('0x5')]=qs['offset'](_0x5bcf27[_0x53af2a('0x23')][_0x53af2a('0x5')]));_0x2ade68[_0x53af2a('0x11')]=qs[_0x53af2a('0x8')](_0x5bcf27['query'][_0x53af2a('0x8')]),_0x2ade68['where']=qs[_0x53af2a('0x19')](_[_0x53af2a('0x31')](_0x5bcf27['query'],_0x267dba['filters']),_0x3bc8bb);_0x5bcf27['query'][_0x53af2a('0x1a')]&&(_0x2ade68[_0x53af2a('0x26')]=_[_0x53af2a('0x2b')](_0x2ade68[_0x53af2a('0x26')],{[Op['or']]:_[_0x53af2a('0xb')](_0x3bc8bb,function(_0x2bd267){const _0x21586d=_0x53af2a;if(_0x2bd267[_0x21586d('0xe')]!=='VIRTUAL'){const _0x14f682={};return _0x14f682[_0x2bd267[_0x21586d('0x10')]]={[Op[_0x21586d('0x18')]]:'%'+_0x5bcf27['query'][_0x21586d('0x1a')]+'%'},_0x14f682;}})}));_0x2ade68=_['merge']({},_0x2ade68,_0x5bcf27[_0x53af2a('0x1e')]);const _0x4cce13={'where':_0x2ade68[_0x53af2a('0x26')]};return db[_0x53af2a('0x2d')]['count'](_0x4cce13)[_0x53af2a('0x3')](function(_0x4cb7f6){const _0x319c58=_0x53af2a;return _0x5d50d7[_0x319c58('0x4')]=_0x4cb7f6,_0x5bcf27[_0x319c58('0x23')]['includeAll']&&(_0x2ade68[_0x319c58('0x2e')]=[{'all':!![]}]),db['OpenchannelApplication'][_0x319c58('0x22')](_0x2ade68);})[_0x53af2a('0x3')](function(_0x271efc){const _0x32bea5=_0x53af2a;return _0x5d50d7[_0x32bea5('0x1c')]=_0x271efc,_0x5d50d7;})[_0x53af2a('0x3')](respondWithFilteredResult(_0x4ed1d9,_0x2ade68))['catch'](handleError(_0x4ed1d9,null));},exports[_0x1d66ea('0x9')]=function(_0x2e659b,_0x411bb4){const _0x182e46=_0x1d66ea;let _0x324cb3={'raw':!![],'where':{'id':_0x2e659b[_0x182e46('0x1f')]['id']}};const _0x4cd0ce={};return _0x4cd0ce[_0x182e46('0x2a')]=_['keys'](db['OpenchannelApplication'][_0x182e46('0x21')]),_0x4cd0ce[_0x182e46('0x23')]=_[_0x182e46('0x17')](_0x2e659b['query']),_0x4cd0ce[_0x182e46('0x19')]=_[_0x182e46('0x29')](_0x4cd0ce[_0x182e46('0x2a')],_0x4cd0ce[_0x182e46('0x23')]),_0x324cb3[_0x182e46('0x16')]=_[_0x182e46('0x29')](_0x4cd0ce[_0x182e46('0x2a')],qs[_0x182e46('0x33')](_0x2e659b[_0x182e46('0x23')][_0x182e46('0x33')])),_0x324cb3[_0x182e46('0x16')]=_0x324cb3[_0x182e46('0x16')][_0x182e46('0x7')]?_0x324cb3[_0x182e46('0x16')]:_0x4cd0ce[_0x182e46('0x2a')],_0x2e659b[_0x182e46('0x23')][_0x182e46('0x14')]&&(_0x324cb3['include']=[{'all':!![]}]),_0x324cb3=_[_0x182e46('0x2b')]({},_0x324cb3,_0x2e659b[_0x182e46('0x1e')]),db[_0x182e46('0x2d')][_0x182e46('0x13')](_0x324cb3)[_0x182e46('0x3')](handleEntityNotFound(_0x411bb4,null))[_0x182e46('0x3')](respondWithResult(_0x411bb4,null))[_0x182e46('0xd')](handleError(_0x411bb4,null));},exports['create']=function(_0x228e08,_0x473691){const _0x2c2095=_0x1d66ea;return db[_0x2c2095('0x2d')][_0x2c2095('0x32')](_0x228e08[_0x2c2095('0x28')],{})['then'](respondWithResult(_0x473691,0xc9))[_0x2c2095('0xd')](handleError(_0x473691,null));},exports['update']=function(_0x5f18cc,_0x391b01){const _0x13cec4=_0x1d66ea;return _0x5f18cc[_0x13cec4('0x28')]['id']&&delete _0x5f18cc[_0x13cec4('0x28')]['id'],db[_0x13cec4('0x2d')]['findOne']({'where':{'id':_0x5f18cc[_0x13cec4('0x1f')]['id']}})[_0x13cec4('0x3')](handleEntityNotFound(_0x391b01,null))[_0x13cec4('0x3')](saveUpdates(_0x5f18cc[_0x13cec4('0x28')],null))[_0x13cec4('0x3')](respondWithResult(_0x391b01,null))['catch'](handleError(_0x391b01,null));},exports[_0x1d66ea('0xa')]=function(_0x5073f7,_0x5d54e9){const _0xeaa0b4=_0x1d66ea;return db[_0xeaa0b4('0x2d')][_0xeaa0b4('0x13')]({'where':{'id':_0x5073f7[_0xeaa0b4('0x1f')]['id']}})[_0xeaa0b4('0x3')](handleEntityNotFound(_0x5d54e9,null))[_0xeaa0b4('0x3')](removeEntity(_0x5d54e9,null))[_0xeaa0b4('0xd')](handleError(_0x5d54e9,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index 5a80b60..05e9884 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a476_0xa712=['./openchannelApplication.attributes','OpenchannelApplication','exports','utf8mb4','utf8mb4_unicode_ci','openchannel_applications'];(function(_0x3fd54f,_0xa7128f){const _0x37a901=function(_0x14d640){while(--_0x14d640){_0x3fd54f['push'](_0x3fd54f['shift']());}};_0x37a901(++_0xa7128f);}(a476_0xa712,0x1df));const a476_0x37a9=function(_0x3fd54f,_0xa7128f){_0x3fd54f=_0x3fd54f-0x0;let _0x37a901=a476_0xa712[_0x3fd54f];return _0x37a901;};const _0x295f79=a476_0x37a9;'use strict';const attributes=require(_0x295f79('0x1'));module[_0x295f79('0x3')]=function(_0x14d640){const _0x2de5c5=_0x295f79,_0x323247=_0x14d640['define'](_0x2de5c5('0x2'),attributes,{'tableName':_0x2de5c5('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2de5c5('0x4'),'collate':_0x2de5c5('0x5')});return _0x323247;}; \ No newline at end of file +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 diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index 211b465..31769e1 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a477_0x9521=['error','debug','../../config/logger','../../mysqldb','UpdateOpenchannelApplication','then','attributes','rpc','raw','options','where','update','body','catch','OpenchannelApplication','message'];(function(_0x7052a8,_0x952121){const _0x297b34=function(_0x1d3b80){while(--_0x1d3b80){_0x7052a8['push'](_0x7052a8['shift']());}};_0x297b34(++_0x952121);}(a477_0x9521,0xc4));const a477_0x297b=function(_0x7052a8,_0x952121){_0x7052a8=_0x7052a8-0x0;let _0x297b34=a477_0x9521[_0x7052a8];return _0x297b34;};const _0x5da46f=a477_0x297b;'use strict';const db=require(_0x5da46f('0xf'))['db'],logger=require(_0x5da46f('0xe'))(_0x5da46f('0x3'));exports['UpdateOpenchannelApplication']=function(_0x1d3b80){const _0x345c5a=this;return new Promise(function(_0x199a01,_0x71ac00){const _0x2326c9=a477_0x297b;return db[_0x2326c9('0xa')][_0x2326c9('0x7')](_0x1d3b80[_0x2326c9('0x8')],{'raw':_0x1d3b80[_0x2326c9('0x5')]?_0x1d3b80[_0x2326c9('0x5')][_0x2326c9('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1d3b80['options']?_0x1d3b80[_0x2326c9('0x5')][_0x2326c9('0x6')]||null:null,'attributes':_0x1d3b80[_0x2326c9('0x5')]?_0x1d3b80[_0x2326c9('0x5')][_0x2326c9('0x2')]||null:null,'limit':_0x1d3b80[_0x2326c9('0x5')]?_0x1d3b80[_0x2326c9('0x5')]['limit']||null:null})[_0x2326c9('0x1')](function(_0x14ea7b){const _0x574342=_0x2326c9;logger['info'](_0x574342('0x0'),_0x1d3b80),logger[_0x574342('0xd')](_0x574342('0x0'),_0x1d3b80,JSON['stringify'](_0x14ea7b)),_0x199a01(_0x14ea7b);})[_0x2326c9('0x9')](function(_0x3aabe3){const _0x77ba34=_0x2326c9;logger['error'](_0x77ba34('0x0'),_0x3aabe3[_0x77ba34('0xb')],_0x1d3b80),_0x71ac00(_0x345c5a[_0x77ba34('0xc')](0x1f4,_0x3aabe3[_0x77ba34('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index 94f42be..87d6da2 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a478_0x14c3=['download','create','openchannelinteraction:destroy','update','tracked','../../components/interaction/service','put','/describe','index','exports','describe','/:id/messages','./openchannelInteraction.controller','/:id/download','openchannel','/:id','openchannelinteraction:addtags','express','removeTags','isAuthenticated','post','destroy','addTags','get'];(function(_0x40454a,_0x14c315){const _0x238e58=function(_0x4e6d28){while(--_0x4e6d28){_0x40454a['push'](_0x40454a['shift']());}};_0x238e58(++_0x14c315);}(a478_0x14c3,0x164));const a478_0x238e=function(_0x40454a,_0x14c315){_0x40454a=_0x40454a-0x0;let _0x238e58=a478_0x14c3[_0x40454a];return _0x238e58;};const _0x5469a4=a478_0x238e;'use strict';const express=require(_0x5469a4('0x15')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x5469a4('0x9')),controller=require(_0x5469a4('0x10'));router[_0x5469a4('0x3')]('/',auth['isAuthenticated'](),controller[_0x5469a4('0xc')]),router[_0x5469a4('0x3')](_0x5469a4('0xb'),auth[_0x5469a4('0x17')](),controller[_0x5469a4('0xe')]),router['get'](_0x5469a4('0x13'),auth[_0x5469a4('0x17')](),controller['show']),router[_0x5469a4('0x3')](_0x5469a4('0xf'),auth['isAuthenticated'](),controller['getMessages']),router[_0x5469a4('0x3')](_0x5469a4('0x11'),auth[_0x5469a4('0x17')](),controller[_0x5469a4('0x4')]),router[_0x5469a4('0x0')]('/',auth['isAuthenticated'](),controller[_0x5469a4('0x5')]),router['post'](_0x5469a4('0xf'),auth[_0x5469a4('0x17')](),controller['addMessage']),router[_0x5469a4('0x0')]('/:id/tags',auth[_0x5469a4('0x17')](),interaction[_0x5469a4('0x8')](_0x5469a4('0x12'),_0x5469a4('0x14')),controller[_0x5469a4('0x2')]),router[_0x5469a4('0xa')](_0x5469a4('0x13'),auth[_0x5469a4('0x17')](),interaction[_0x5469a4('0x8')](_0x5469a4('0x12'),'openchannelinteraction:update'),controller[_0x5469a4('0x7')]),router['delete']('/:id',auth['isAuthenticated'](),interaction['tracked'](_0x5469a4('0x12'),_0x5469a4('0x6')),controller[_0x5469a4('0x1')]),router['delete']('/:id/tags',auth[_0x5469a4('0x17')](),controller[_0x5469a4('0x16')]),module[_0x5469a4('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index c7e2062..3edbd3e 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a479_0x91e7=['ENUM','exports','STRING','DATE','out','BOOLEAN'];(function(_0x56cda9,_0x91e78){const _0x2c3c42=function(_0x4a35f2){while(--_0x4a35f2){_0x56cda9['push'](_0x56cda9['shift']());}};_0x2c3c42(++_0x91e78);}(a479_0x91e7,0x183));const a479_0x2c3c=function(_0x56cda9,_0x91e78){_0x56cda9=_0x56cda9-0x0;let _0x2c3c42=a479_0x91e7[_0x56cda9];return _0x2c3c42;};const _0x3a2db6=a479_0x2c3c;'use strict';const Sequelize=require('sequelize');module[_0x3a2db6('0x4')]={'closed':{'type':Sequelize[_0x3a2db6('0x2')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x3a2db6('0x0')]},'disposition':{'type':Sequelize[_0x3a2db6('0x5')]},'secondDisposition':{'type':Sequelize[_0x3a2db6('0x5')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x3a2db6('0x5')]},'read1stAt':{'type':Sequelize[_0x3a2db6('0x0')]},'threadId':{'type':Sequelize[_0x3a2db6('0x5')]},'externalUrl':{'type':Sequelize[_0x3a2db6('0x5')]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize[_0x3a2db6('0x3')]('in',_0x3a2db6('0x1')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize[_0x3a2db6('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index 3d69b57..03afe06 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a480_0x325f=['describe','Contact','format','users','renderFile','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','YYYY-MM-DD','unreadMessages','stack','parseSearch','resolve','tmp','Contact.mobile','me.OpenchannelInteractionId\x20=\x20i.id','query','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','push','text','30px','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','search','\x20IS\x20NULL','createReadStream','sort','addTags','../../mysqldb','key','operator','isEmpty','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','unix','openchannelInteractionTags:save','order','Attachment','isNumeric','groupBy','u.id\x20=\x20ui.UserId','./openchannelInteraction.socket','$substring','createdAt','Contact.fax','createWriteStream','buildExpression','html-pdf','setTags','basename','addMessage','o.internal','findAll','split','getOpenchannelAccounts','Owner.internal','../../components/parsers/qs','fullname','ui.OpenchannelInteractionId','pick','log','transcript-%d-%s.zip','removeTags','having','forEach','parse','end','where','Public','existsSync','body','color','i.OpenchannelAccountId\x20IS\x20NULL','t.id\x20=\x20it.TagId','tag','a.mandatoryDisposition','Openchannel','lodash','rimraf','util','`\x20>\x200','Tags','OpenchannelAccountId','it.OpenchannelInteractionId\x20=\x20i.id','expr','set','params','$gte','start','Messages','options','OpenchannelInteraction','journey','o.id\x20=\x20i.UserId','secret','compact','name','Account.mandatoryDisposition','join','i.from\x20LIKE\x20?','.pdf','null','CmContact','get','views','direction','destroy','getMessages','files','c.mobile','SELECT','Contact.phone','firstName','replace','keyBy','transcript-','find','map','intersection','t.id\x20IN\x20?','c.lastName','show','catch','field','send','concat','OpenchannelAccount','threadId','some','ids','i.id','value','index','attributes','$lte','disposition','create','i.id\x20LIKE\x20?','GROUP_CONCAT(DISTINCT\x20t.id)','undefined','10px','Tag','isArray','getFullTextValue','sequelize','nolimit','conditions','omit','`\x20=\x200','download','c.firstName','server','select','user_has_openchannel_interactions','System','UserId','length','toFile','Content-Range','Contact.firstName','include','from','QueryTypes','left_join','limit','`unreadMessages`\x20>\x200','o.fullname','sendStatus','Sequelize','update','User','Account.key','keys','\x20=\x20?','findOne','lastName','clone','union','root','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','OpenchannelMessage','moment','i.*','toString','Account','filter','\x0a\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','Private','type','fields','status','OpenchannelInteractionId','read','then','Users','u.fullname','Contact.lastName','40px','\x0a\x20\x20\x20\x20\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','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','DESC','merge','Owner.fullname','openchannel_interaction_has_tags','json','all','user','filters','Owner','pipe','c.phone','ContactId','api','rawAttributes','count','emit','closed','offset','zip-dir','rows','tools_tags','includeAll','YYYY-MM-DD\x20HH:mm:ss','path','fieldName','TagIds','model','i.OpenchannelAccountId\x20IN\x20?'];(function(_0x490c6e,_0x325f84){const _0x590e8b=function(_0x3b43f9){while(--_0x3b43f9){_0x490c6e['push'](_0x490c6e['shift']());}};_0x590e8b(++_0x325f84);}(a480_0x325f,0x1d0));const a480_0x590e=function(_0x490c6e,_0x325f84){_0x490c6e=_0x490c6e-0x0;let _0x590e8b=a480_0x325f[_0x490c6e];return _0x590e8b;};const _0x169b34=a480_0x590e;'use strict';const pdf=require(_0x169b34('0x1b')),rimraf=require(_0x169b34('0x3a')),zipdir=require(_0x169b34('0xc6')),moment=require(_0x169b34('0xa1')),util=require(_0x169b34('0x3b')),path=require(_0x169b34('0xcb')),ejs=require('ejs'),fs=require('fs'),_=require(_0x169b34('0x39')),squel=require('squel'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x169b34('0x24')),as=require('../../components/parsers/advancedSearch'),logger=require('../../config/logger')(_0x169b34('0xc0')),config=require('../../config/environment'),db=require(_0x169b34('0x9'))['db'],{Op}=require(_0x169b34('0x7c'));require(_0x169b34('0x15'))['register'](socket);function respondWithStatusCode(_0x3b43f9,_0x44083f){return _0x44083f=_0x44083f||0xcc,function(_0x2bda15){const _0x56b0e3=a480_0x590e;if(_0x2bda15)return _0x3b43f9[_0x56b0e3('0x93')](_0x44083f);return _0x3b43f9[_0x56b0e3('0xaa')](_0x44083f)[_0x56b0e3('0x2e')]();};}function respondWithResult(_0x18aced,_0x34181a){return _0x34181a=_0x34181a||0xc8,function(_0x27e3f4){const _0x3f0d8b=a480_0x590e;if(_0x27e3f4)return _0x18aced['status'](_0x34181a)[_0x3f0d8b('0xb8')](_0x27e3f4);};}function respondWithFilteredResult(_0x345eb5,_0x17dfe6){return function(_0x36a553){const _0x4216bd=a480_0x590e;if(_0x36a553){const _0x5f02de=_0x36a553[_0x4216bd('0xc2')],_0x5533c4=_0x17dfe6[_0x4216bd('0xc5')];let _0x2ec063=_0x17dfe6['offset']+_0x17dfe6[_0x4216bd('0x90')],_0x43fc2a;return _0x2ec063>=_0x5f02de?(_0x2ec063=_0x5f02de,_0x43fc2a=0xc8):_0x43fc2a=0xce,_0x345eb5[_0x4216bd('0xaa')](_0x43fc2a),_0x345eb5[_0x4216bd('0x41')](_0x4216bd('0x8a'),_0x5533c4+'-'+_0x2ec063+'/'+_0x5f02de)['json'](_0x36a553);}return null;};}function saveUpdates(_0x3bcfb2){return function(_0x5a4c0b){const _0x327b08=a480_0x590e;if(_0x5a4c0b)return _0x5a4c0b[_0x327b08('0x95')](_0x3bcfb2)['then'](function(_0x3a24e6){return _0x3a24e6;});return null;};}function removeEntity(_0x1a4ae9){return function(_0x1b8c6b){const _0x22b9c5=a480_0x590e;if(_0x1b8c6b)return _0x1b8c6b[_0x22b9c5('0x56')]()['then'](function(){const _0x3dda99=_0x22b9c5;_0x1a4ae9[_0x3dda99('0xaa')](0xcc)['end']();});};}function handleEntityNotFound(_0x129774){return function(_0x20a1b5){return!_0x20a1b5&&_0x129774['sendStatus'](0x194),_0x20a1b5;};}function handleError(_0x3d4e27,_0x5dfb85){return _0x5dfb85=_0x5dfb85||0x1f4,function(_0x3e67b1){const _0x11fb41=a480_0x590e;logger['error'](_0x3e67b1[_0x11fb41('0xd8')]),_0x3e67b1['name']&&delete _0x3e67b1['name'],_0x3d4e27[_0x11fb41('0xaa')](_0x5dfb85)[_0x11fb41('0x68')](_0x3e67b1);};}function getInteractionUsers(_0x2b3247,_0x181a41){return new Promise(function(_0xa85314,_0x558534){const _0x3f671d=a480_0x590e;try{_0x181a41[_0x2b3247['id']]&&(_0x2b3247[_0x3f671d('0xae')]=_['map'](_0x181a41[_0x2b3247['id']],function(_0x14b0b2){const _0x527d64=_0x3f671d;return{'id':_0x14b0b2['id'],'fullname':_0x14b0b2[_0x527d64('0x25')]};}));}catch(_0x350769){_0x558534(_0x350769);}_0xa85314(_0x2b3247);});}function getInteractionTags(_0x42352e,_0x1bb69e){return new Promise(function(_0x465edf,_0x1010d8){const _0x19caaa=a480_0x590e;try{_0x42352e[_0x19caaa('0xcd')]&&(_0x42352e[_0x19caaa('0x3d')]=[],_0x42352e[_0x19caaa('0xcd')][_0x19caaa('0x21')](',')['forEach'](function(_0x3fde1d){const _0x12dff6=_0x19caaa;_0x42352e['Tags'][_0x12dff6('0x0')](_0x1bb69e[_0x3fde1d]);})),delete _0x42352e[_0x19caaa('0xcd')];}catch(_0x5873de){_0x1010d8(_0x5873de);}_0x465edf(_0x42352e);});}function updateOpenchannelInteraction(_0x31b1e4,_0x4cfb58,_0x5a3ecf){return new Promise(function(_0x19df9a,_0x3d669e){const _0x2f5545=a480_0x590e;return getInteractionUsers(_0x31b1e4,_0x5a3ecf)[_0x2f5545('0xad')](function(_0x2affa2){return getInteractionTags(_0x2affa2,_0x4cfb58);})[_0x2f5545('0xad')](function(_0x52984c){_0x19df9a(_0x52984c);})[_0x2f5545('0x66')](function(_0x323f60){_0x3d669e(_0x323f60);});});}exports[_0x169b34('0x70')]=function(_0x4accce,_0x2958c1){const _0x5779a1=_0x169b34,_0x554b48={},_0x92a990={},_0x28bd13={'count':0x0,'rows':[]},_0x419861=_[_0x5779a1('0x61')](db[_0x5779a1('0x47')][_0x5779a1('0xc1')],function(_0x4130dc){const _0x5d471a=_0x5779a1;return{'name':_0x4130dc[_0x5d471a('0xcc')],'type':_0x4130dc[_0x5d471a('0xa8')][_0x5d471a('0xa')]};});_0x92a990[_0x5779a1('0xce')]=_[_0x5779a1('0x61')](_0x419861,'name'),_0x92a990[_0x5779a1('0xde')]=_['keys'](_0x4accce['query']),_0x92a990[_0x5779a1('0xbb')]=_[_0x5779a1('0x62')](_0x92a990[_0x5779a1('0xce')],_0x92a990[_0x5779a1('0xde')]),_0x554b48[_0x5779a1('0x71')]=_[_0x5779a1('0x62')](_0x92a990[_0x5779a1('0xce')],qs['fields'](_0x4accce[_0x5779a1('0xde')]['fields'])),_0x554b48['attributes']=_0x554b48[_0x5779a1('0x71')]['length']?_0x554b48[_0x5779a1('0x71')]:_0x92a990[_0x5779a1('0xce')];typeof _0x4accce[_0x5779a1('0xde')][_0x5779a1('0x7d')]===_0x5779a1('0x77')&&(_0x554b48[_0x5779a1('0x90')]=qs[_0x5779a1('0x90')](_0x4accce[_0x5779a1('0xde')][_0x5779a1('0x90')]),_0x554b48[_0x5779a1('0xc5')]=qs[_0x5779a1('0xc5')](_0x4accce[_0x5779a1('0xde')][_0x5779a1('0xc5')]));_0x554b48[_0x5779a1('0x10')]=qs[_0x5779a1('0x7')](_0x4accce['query']['sort']),_0x554b48[_0x5779a1('0x2f')]=qs[_0x5779a1('0xbb')](_[_0x5779a1('0x27')](_0x4accce[_0x5779a1('0xde')],_0x92a990[_0x5779a1('0xbb')]),_0x419861);let _0x26b534=[];const _0x57ed52=squel[_0x5779a1('0x84')]()['field']('id')[_0x5779a1('0x67')](_0x5779a1('0x4c'))[_0x5779a1('0x67')](_0x5779a1('0x33'))[_0x5779a1('0x8d')](_0x5779a1('0xc8')),_0x48193c=squel['select']()[_0x5779a1('0x67')]('u.id')[_0x5779a1('0x67')](_0x5779a1('0xaf'))[_0x5779a1('0x67')](_0x5779a1('0x26'))[_0x5779a1('0x8d')](_0x5779a1('0x85'),'ui')['left_join']('users','u',_0x5779a1('0x14')),_0x4b744f=squel[_0x5779a1('0x84')]()[_0x5779a1('0x8d')]('openchannel_interactions','i')[_0x5779a1('0x8f')]('cm_contacts','c',_0x5779a1('0xd5'))[_0x5779a1('0x8f')](_0x5779a1('0xd3'),'o',_0x5779a1('0x49'))[_0x5779a1('0x8f')]('openchannel_accounts','a','a.id\x20=\x20i.OpenchannelAccountId')[_0x5779a1('0x8f')]('openchannel_messages','me',_0x5779a1('0xdd'))[_0x5779a1('0x8f')](_0x5779a1('0xb7'),'it',_0x5779a1('0x3f'))[_0x5779a1('0x8f')]('tools_tags','t',_0x5779a1('0x35')),_0x7c13c8=squel[_0x5779a1('0x40')]();let _0x206e6e=[];const _0x4774d3=squel[_0x5779a1('0x40')]();let _0x25fd0a;if(_0x4accce[_0x5779a1('0xde')][_0x5779a1('0x4')]){_0x25fd0a=as[_0x5779a1('0xd9')](_0x4accce['query'][_0x5779a1('0x4')]);const _0x51009c=_0x25fd0a['sqlOperator'];for(let _0x2f8f79=0x0;_0x2f8f79<_0x25fd0a[_0x5779a1('0x7e')]['length'];_0x2f8f79++){const _0x5b017=_0x25fd0a[_0x5779a1('0x7e')][_0x2f8f79],_0x3a660f='i';let _0x6bb95b,_0x207291=_[_0x5779a1('0x60')](_0x419861,[_0x5779a1('0x4c'),_0x5b017[_0x5779a1('0x67')]]);if(!_0x207291)switch(_0x5b017[_0x5779a1('0x67')]){case _0x5779a1('0xd7'):_0x5b017[_0x5779a1('0x6f')]==0x1?_0x4b744f[_0x5779a1('0x2b')]('`'+_0x5b017[_0x5779a1('0x67')]+_0x5779a1('0x80')):_0x4b744f['having']('`'+_0x5b017[_0x5779a1('0x67')]+_0x5779a1('0x3c'));break;case'Contact':if(_0x5b017[_0x5779a1('0xb')]===_0x5779a1('0x16')){if(_0x5b017['value'][_0x5779a1('0x21')]('\x20')[_0x5779a1('0x88')]>0x1)_0x7c13c8[_0x51009c]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x5779a1('0x7b')](_0x5b017[_0x5779a1('0x6f')]),null);else{const _0x862fcf='%'+_0x5b017[_0x5779a1('0x6f')]+'%';_0x7c13c8[_0x51009c]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x862fcf,_0x862fcf,_0x862fcf);}}else _0x207291=_[_0x5779a1('0x60')](_0x419861,[_0x5779a1('0x4c'),_0x5779a1('0xbf')]),_0x5b017[_0x5779a1('0x67')]=_0x5779a1('0xbf'),_0x6bb95b=as['buildExpression'](_0x3a660f,_0x207291['type'],_0x5b017),_0x7c13c8[_0x51009c](_0x6bb95b[_0x5779a1('0x1')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x44')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x2e')]);break;case _0x5779a1('0x79'):{const _0x18f83d=_0x5b017['value'][_0x5779a1('0x21')](',')[_0x5779a1('0x61')](function(_0x2080cd){return Number(_0x2080cd);});_0x18f83d['forEach'](function(_0x3cf4c7){const _0x442675=_0x5779a1;_0x4774d3['or'](_0x442675('0x3'),'%,'+_0x3cf4c7+',%');}),_0x206e6e=_[_0x5779a1('0x9d')](_0x206e6e,_0x18f83d);}break;case'User':_0x5b017[_0x5779a1('0xb')]===_0x5779a1('0x16')?_0x7c13c8[_0x51009c](_0x5779a1('0x9f'),'%'+_0x5b017[_0x5779a1('0x6f')]+'%',null):(_0x207291=_[_0x5779a1('0x60')](_0x419861,['name',_0x5779a1('0x87')]),_0x5b017[_0x5779a1('0x67')]=_0x5779a1('0x87'),_0x6bb95b=as[_0x5779a1('0x1a')](_0x3a660f,_0x207291['type'],_0x5b017),_0x7c13c8[_0x51009c](_0x6bb95b['text'],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x44')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x2e')]));break;case _0x5779a1('0x32'):_0x6bb95b=as[_0x5779a1('0x1a')]('me',null,_0x5b017),_0x7c13c8[_0x51009c](_0x6bb95b[_0x5779a1('0x1')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x44')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x2e')]);break;}else _0x6bb95b=as[_0x5779a1('0x1a')](_0x3a660f,_0x207291[_0x5779a1('0xa8')],_0x5b017),_0x7c13c8[_0x51009c](_0x6bb95b[_0x5779a1('0x1')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x44')],_0x6bb95b[_0x5779a1('0x6f')][_0x5779a1('0x2e')]);}}else{const _0xbc4536=_(_0x4accce[_0x5779a1('0xde')])[_0x5779a1('0x98')]()[_0x5779a1('0x61')](function(_0x11ab4b){const _0xba1a49=_0x5779a1;return _[_0xba1a49('0x6c')](_0x419861,[_0xba1a49('0x4c'),_0x11ab4b])?_0x11ab4b:undefined;})[_0x5779a1('0x4b')]()[_0x5779a1('0x6f')]();!_['isEmpty'](_0xbc4536)&&_0xbc4536['forEach'](function(_0x1cabf7){const _0x247847=_0x5779a1;if(_0x1cabf7===_0x247847('0x3e'))_0x4b744f['where'](_0x247847('0xcf'),[][_0x247847('0x69')](_0x4accce['query'][_0x1cabf7]));else{if(_0x1cabf7==='createdAt'){const _0x218201=JSON['parse'](_0x4accce['query'][_0x1cabf7])[_0x247847('0x43')],_0x5e8cf1=JSON[_0x247847('0x2d')](_0x4accce[_0x247847('0xde')][_0x1cabf7])[_0x247847('0x72')];_0x4b744f['where']('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x218201,_0x5e8cf1);}else _0x4accce[_0x247847('0xde')][_0x1cabf7]===_0x247847('0x51')?_0x4b744f[_0x247847('0x2f')]('i.'+_0x1cabf7+_0x247847('0x5')):_0x4b744f[_0x247847('0x2f')]('i.'+_0x1cabf7+_0x247847('0x99'),_0x4accce[_0x247847('0xde')][_0x1cabf7]);}});_0x4accce[_0x5779a1('0xde')][_0x5779a1('0xac')]&&(_0x4accce['query'][_0x5779a1('0xac')]==0x1?_0x4b744f[_0x5779a1('0x2b')]('`unreadMessages`\x20=\x200'):_0x4b744f['having'](_0x5779a1('0x91')));_0x4accce[_0x5779a1('0xde')][_0x5779a1('0x36')]&&(_0x206e6e=_[_0x5779a1('0x7a')](_0x4accce[_0x5779a1('0xde')][_0x5779a1('0x36')])?_0x4accce[_0x5779a1('0xde')][_0x5779a1('0x36')]:new Array(_0x4accce['query'][_0x5779a1('0x36')]),_0x206e6e['forEach'](function(_0x5e547e){const _0x5e3b99=_0x5779a1;_0x4774d3['or'](_0x5e3b99('0x3'),'%,'+_0x5e547e+',%');}));if(_0x4accce[_0x5779a1('0xde')][_0x5779a1('0xa5')]){const _0x155069=_0x4accce[_0x5779a1('0xde')]['filter'][_0x5779a1('0x5d')]('\x5c','\x5c\x5c')[_0x5779a1('0x5d')]('\x27\x27','\x27\x27\x27\x27');qs[_0x5779a1('0x12')](_0x155069)?_0x7c13c8['or'](_0x5779a1('0x75'),_0x155069+'%'):_0x7c13c8['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x5779a1('0x7b')](_0x155069))['or'](_0x5779a1('0x4f'),_0x155069+'%')['or'](_0x5779a1('0xdf'),_0x155069+'%');}}_0x4b744f[_0x5779a1('0x2f')](_0x7c13c8),_0x4b744f['group'](_0x5779a1('0x6e'));let _0x56d29d={'type':db[_0x5779a1('0x94')][_0x5779a1('0x8e')][_0x5779a1('0x5a')],'raw':!![]};const _0x38efa3=_0x4b744f[_0x5779a1('0x9c')]();_0x38efa3['field']('i.id'),_0x38efa3['field'](_0x5779a1('0xb3'),'unreadMessages'),_0x554b48[_0x5779a1('0x10')]&&_0x554b48[_0x5779a1('0x10')][_0x5779a1('0x2c')](function(_0x1d4595){const _0x1b0602=_0x5779a1;_0x4b744f['order']('i.'+_0x1d4595[0x0],_0x1d4595[0x1]===_0x1b0602('0xb4')?![]:!![]);}),!_[_0x5779a1('0xc')](_0x206e6e)&&(_0x4b744f[_0x5779a1('0x2b')](_0x4774d3),_0x38efa3[_0x5779a1('0x2f')](_0x5779a1('0x63'),_0x206e6e)),Promise[_0x5779a1('0xda')]()[_0x5779a1('0xad')](function(){const _0x1b0664=_0x5779a1;if(!_0x25fd0a){if(_0x4accce[_0x1b0664('0xde')][_0x1b0664('0x3e')]||_0x4accce[_0x1b0664('0xde')][_0x1b0664('0x48')])return;_0x38efa3[_0x1b0664('0x2f')](_0x1b0664('0xd')),_0x4b744f[_0x1b0664('0x2f')](_0x1b0664('0xd'));return;}return _0x4accce[_0x1b0664('0xba')][_0x1b0664('0x22')]({'attributes':['id'],'raw':!![]})[_0x1b0664('0xad')](function(_0x1e9037){const _0x37e203=_0x1b0664;_['isEmpty'](_0x1e9037)?(_0x38efa3[_0x37e203('0x2f')](_0x37e203('0x34')),_0x4b744f[_0x37e203('0x2f')]('i.OpenchannelAccountId\x20IS\x20NULL')):(_0x38efa3[_0x37e203('0x2f')](_0x37e203('0xcf'),_[_0x37e203('0x61')](_0x1e9037,'id')),_0x4b744f['where'](_0x37e203('0xcf'),_[_0x37e203('0x61')](_0x1e9037,'id')));});})[_0x5779a1('0xad')](function(){const _0x393842=_0x5779a1;db[_0x393842('0x7c')]['query'](_0x38efa3[_0x393842('0xa3')](),_0x56d29d)['then'](function(_0x174fd7){const _0x5c42bf=_0x393842;_0x28bd13[_0x5c42bf('0xc2')]=_0x174fd7['length'];if(_0x28bd13[_0x5c42bf('0xc2')]===0x0)return[];return db[_0x5c42bf('0x7c')]['query'](_0x57ed52['toString'](),_0x56d29d)[_0x5c42bf('0xad')](function(_0x385e8d){const _0x480f19=_0x5c42bf;_0x26b534=_[_0x480f19('0x5e')](_0x385e8d,'id'),_0x56d29d=_[_0x480f19('0xb5')](_0x56d29d,{'model':db['OpenchannelInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4accce[_0x480f19('0xde')]['fields']?_0x554b48[_0x480f19('0x71')][_0x480f19('0x2c')](function(_0x9b1501){_0x4b744f['field']('i.'+_0x9b1501);}):(_0x4b744f[_0x480f19('0x67')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x480f19('0xd7')),_0x4b744f[_0x480f19('0x67')]('a.key',_0x480f19('0x97')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x37'),_0x480f19('0x4d')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0xa2')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x82'),_0x480f19('0x8b')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x64'),_0x480f19('0xb0')),_0x4b744f[_0x480f19('0x67')]('c.email','Contact.email'),_0x4b744f['field'](_0x480f19('0xbe'),_0x480f19('0x5b')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x59'),_0x480f19('0xdc')),_0x4b744f[_0x480f19('0x67')]('c.fax',_0x480f19('0x18')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x92'),_0x480f19('0xb6')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x1f'),_0x480f19('0x23')),_0x4b744f[_0x480f19('0x67')](_0x480f19('0x76'),_0x480f19('0xcd')));if(_0x554b48[_0x480f19('0x90')])_0x4b744f[_0x480f19('0x90')](_0x554b48['limit']);if(_0x554b48[_0x480f19('0xc5')])_0x4b744f[_0x480f19('0xc5')](_0x554b48[_0x480f19('0xc5')]);return db[_0x480f19('0x7c')]['query'](_0x4b744f[_0x480f19('0xa3')](),_0x56d29d);})['then'](function(_0x31d971){const _0x2a6d57=_0x5c42bf;return _0x48193c[_0x2a6d57('0x2f')]('ui.OpenchannelInteractionId\x20IN\x20?',_[_0x2a6d57('0x61')](_0x31d971,'id')),db[_0x2a6d57('0x7c')][_0x2a6d57('0xde')](_0x48193c[_0x2a6d57('0xa3')](),_0x56d29d)[_0x2a6d57('0xad')](function(_0x59ef2a){const _0x3cd8e7=_0x2a6d57,_0x4e65b7=_[_0x3cd8e7('0x13')](_0x59ef2a,_0x3cd8e7('0xab')),_0x5a2df2=[];return _0x31d971[_0x3cd8e7('0x2c')](function(_0x3f0947){const _0x540a96=_0x3cd8e7;_0x5a2df2[_0x540a96('0x0')](updateOpenchannelInteraction(_0x3f0947,_0x26b534,_0x4e65b7));}),Promise[_0x3cd8e7('0xb9')](_0x5a2df2);});});})[_0x393842('0xad')](function(_0x395de1){const _0x166689=_0x393842;return _0x28bd13[_0x166689('0xc7')]=_0x395de1,_0x28bd13;})['then'](respondWithFilteredResult(_0x2958c1,_0x554b48));})['catch'](handleError(_0x2958c1,null));},exports[_0x169b34('0x65')]=function(_0x163feb,_0x2668e9){const _0x4c6199=_0x169b34,_0x3f2a8a={};_0x163feb['query'][_0x4c6199('0xa8')]&&_0x163feb['query']['type']===_0x4c6199('0x8d')?_0x3f2a8a['from']=_0x163feb[_0x4c6199('0x42')]['id']:_0x3f2a8a['id']=_0x163feb[_0x4c6199('0x42')]['id'];let _0x526a5a={'raw':![],'where':_0x3f2a8a};const _0x44cee7={};return _0x44cee7[_0x4c6199('0xce')]=_[_0x4c6199('0x98')](db['OpenchannelInteraction'][_0x4c6199('0xc1')]),_0x44cee7[_0x4c6199('0xde')]=_[_0x4c6199('0x98')](_0x163feb[_0x4c6199('0xde')]),_0x44cee7['filters']=_[_0x4c6199('0x62')](_0x44cee7[_0x4c6199('0xce')],_0x44cee7[_0x4c6199('0xde')]),_0x526a5a[_0x4c6199('0x71')]=_[_0x4c6199('0x62')](_0x44cee7[_0x4c6199('0xce')],qs[_0x4c6199('0xa9')](_0x163feb[_0x4c6199('0xde')]['fields'])),_0x526a5a[_0x4c6199('0x71')]=_0x526a5a['attributes'][_0x4c6199('0x88')]?_0x526a5a[_0x4c6199('0x71')]:_0x44cee7[_0x4c6199('0xce')],_0x163feb[_0x4c6199('0xde')][_0x4c6199('0xc9')]&&(_0x526a5a[_0x4c6199('0x8c')]=[{'all':!![]}]),_0x526a5a=_[_0x4c6199('0xb5')]({},_0x526a5a,_0x163feb[_0x4c6199('0x46')]),db[_0x4c6199('0x47')][_0x4c6199('0x9a')](_0x526a5a)[_0x4c6199('0xad')](handleEntityNotFound(_0x2668e9,null))[_0x4c6199('0xad')](respondWithResult(_0x2668e9,null))['catch'](handleError(_0x2668e9,null));},exports[_0x169b34('0x74')]=function(_0x34b496,_0x34a410){const _0x5d780b=_0x169b34;return db['OpenchannelInteraction']['create'](_0x34b496['body'],{})['then'](respondWithResult(_0x34a410,0xc9))[_0x5d780b('0x66')](handleError(_0x34a410,null));},exports['update']=function(_0x2ba9d2,_0x3c245d){const _0xf7142f=_0x169b34;return _0x2ba9d2[_0xf7142f('0x32')]['id']&&delete _0x2ba9d2[_0xf7142f('0x32')]['id'],db[_0xf7142f('0x47')][_0xf7142f('0x9a')]({'where':{'id':_0x2ba9d2[_0xf7142f('0x42')]['id']}})[_0xf7142f('0xad')](handleEntityNotFound(_0x3c245d,null))['then'](saveUpdates(_0x2ba9d2[_0xf7142f('0x32')],null))['then'](respondWithResult(_0x3c245d,null))[_0xf7142f('0x66')](handleError(_0x3c245d,null));},exports[_0x169b34('0x56')]=function(_0x207c2f,_0x248598){const _0x2bff0a=_0x169b34;return db['OpenchannelInteraction'][_0x2bff0a('0x9a')]({'where':{'id':_0x207c2f['params']['id']}})[_0x2bff0a('0xad')](handleEntityNotFound(_0x248598,null))['then'](removeEntity(_0x248598,null))[_0x2bff0a('0x66')](handleError(_0x248598,null));},exports['describe']=function(_0x1dcf11,_0x281f24){const _0x365394=_0x169b34;return db[_0x365394('0x47')][_0x365394('0xd0')]()[_0x365394('0xad')](respondWithResult(_0x281f24,null))[_0x365394('0x66')](handleError(_0x281f24,null));},exports[_0x169b34('0x1e')]=function(_0x56a4e4,_0x516e26){const _0x39d3fa=_0x169b34;return db[_0x39d3fa('0xa0')][_0x39d3fa('0x9a')]({'where':{'id':_0x56a4e4[_0x39d3fa('0x42')]['id']}})[_0x39d3fa('0xad')](function(_0x1e2577){const _0x9018bb=_0x39d3fa;if(_0x1e2577)return _0x1e2577[_0x9018bb('0x1e')](_0x56a4e4[_0x9018bb('0x32')][_0x9018bb('0x6d')],{'through':_[_0x9018bb('0x7f')](_0x56a4e4[_0x9018bb('0x32')],[_0x9018bb('0x6d'),'id'])});})['then'](respondWithResult(_0x516e26,null))[_0x39d3fa('0x66')](handleError(_0x516e26,null));},exports[_0x169b34('0x57')]=function(_0x4aea6d,_0x40fe75){const _0x18b9db=_0x169b34;let _0xbe633e={'raw':![],'where':{}};const _0x3369b1={},_0x3b7259={'count':0x0,'rows':[]};return db[_0x18b9db('0x47')]['findOne']({'where':{'id':_0x4aea6d[_0x18b9db('0x42')]['id']}})[_0x18b9db('0xad')](handleEntityNotFound(_0x40fe75,null))['then'](function(_0x180cd2){const _0x55e03d=_0x18b9db;if(_0x180cd2){_0x3369b1[_0x55e03d('0xce')]=_[_0x55e03d('0x98')](db[_0x55e03d('0xa0')][_0x55e03d('0xc1')]),_0x3369b1[_0x55e03d('0xde')]=_['keys'](_0x4aea6d[_0x55e03d('0xde')]),_0x3369b1[_0x55e03d('0xbb')]=_[_0x55e03d('0x62')](_0x3369b1[_0x55e03d('0xce')],_0x3369b1[_0x55e03d('0xde')]),_0xbe633e[_0x55e03d('0x71')]=_[_0x55e03d('0x62')](_0x3369b1[_0x55e03d('0xce')],qs[_0x55e03d('0xa9')](_0x4aea6d['query']['fields'])),_0xbe633e[_0x55e03d('0x71')]=_0xbe633e['attributes']['length']?_0xbe633e[_0x55e03d('0x71')]:_0x3369b1[_0x55e03d('0xce')];typeof _0x4aea6d[_0x55e03d('0xde')][_0x55e03d('0x7d')]==='undefined'&&(_0xbe633e[_0x55e03d('0x90')]=qs[_0x55e03d('0x90')](_0x4aea6d[_0x55e03d('0xde')][_0x55e03d('0x90')]),_0xbe633e['offset']=qs[_0x55e03d('0xc5')](_0x4aea6d['query'][_0x55e03d('0xc5')]));_0xbe633e[_0x55e03d('0x10')]=qs['sort'](_0x4aea6d[_0x55e03d('0xde')][_0x55e03d('0x7')]),_0xbe633e['where']=qs['filters'](_[_0x55e03d('0x27')](_0x4aea6d['query'],_0x3369b1[_0x55e03d('0xbb')])),_0xbe633e[_0x55e03d('0x2f')][_0x55e03d('0xab')]=_0x180cd2['id'];_0x4aea6d[_0x55e03d('0xde')][_0x55e03d('0xa5')]&&(_0xbe633e['where']=_[_0x55e03d('0xb5')](_0xbe633e[_0x55e03d('0x2f')],{[Op['or']]:_[_0x55e03d('0x61')](_0xbe633e[_0x55e03d('0x71')],function(_0x496bb4){const _0x5a07de=_0x55e03d,_0x30ad92={};return _0x30ad92[_0x496bb4]={[Op['like']]:'%'+_0x4aea6d['query'][_0x5a07de('0xa5')]+'%'},_0x30ad92;})}));if(_0x4aea6d[_0x55e03d('0xde')]['$gte']){const _0x3a4318=_0x4aea6d['query'][_0x55e03d('0x43')][_0x55e03d('0x21')](','),_0xe8ea3f={};_0xe8ea3f[_0x3a4318[0x0]]={[Op['gte']]:moment(_0x3a4318[0x1])[_0x55e03d('0xd2')](_0x55e03d('0xca'))},_0xbe633e[_0x55e03d('0x2f')]=_[_0x55e03d('0xb5')](_0xbe633e[_0x55e03d('0x2f')],_0xe8ea3f);}return _0xbe633e=_[_0x55e03d('0xb5')]({},_0xbe633e,_0x4aea6d[_0x55e03d('0x46')]),db[_0x55e03d('0xa0')]['count']({'where':_0xbe633e[_0x55e03d('0x2f')]})[_0x55e03d('0xad')](function(_0x4954b9){const _0x3b7468=_0x55e03d;return _0x3b7259[_0x3b7468('0xc2')]=_0x4954b9,_0x4aea6d[_0x3b7468('0xde')][_0x3b7468('0xc9')]&&(_0xbe633e[_0x3b7468('0x8c')]=[{'all':!![]}]),db[_0x3b7468('0xa0')][_0x3b7468('0x20')](_0xbe633e);})[_0x55e03d('0xad')](function(_0x28d9fa){return _0x3b7259['rows']=_0x28d9fa,_0x3b7259;});}})[_0x18b9db('0xad')](respondWithFilteredResult(_0x40fe75,_0xbe633e))[_0x18b9db('0x66')](handleError(_0x40fe75,null));},exports[_0x169b34('0x8')]=function(_0x179bee,_0x39b9df){const _0x4e6cf8=_0x169b34;return db[_0x4e6cf8('0x47')][_0x4e6cf8('0x9a')]({'where':{'id':_0x179bee[_0x4e6cf8('0x42')]['id']}})[_0x4e6cf8('0xad')](function(_0x433cae){const _0x24c27=_0x4e6cf8;if(_0x433cae)return _0x433cae[_0x24c27('0x1c')](_0x179bee[_0x24c27('0x32')]['ids'],{'through':_[_0x24c27('0x7f')](_0x179bee[_0x24c27('0x32')],[_0x24c27('0x6d'),'id'])})[_0x24c27('0xad')](function(){const _0x40545b=_0x24c27;return db['Tag'][_0x40545b('0x20')]({'attributes':['id',_0x40545b('0x4c'),_0x40545b('0x33')],'where':{'id':_0x179bee[_0x40545b('0x32')][_0x40545b('0x6d')]}});})[_0x24c27('0xad')](function(_0x11579e){const _0x2885d2=_0x24c27;return socket[_0x2885d2('0xc3')](_0x2885d2('0xf'),{'id':Number(_0x179bee[_0x2885d2('0x42')]['id']),'tags':_0x11579e||[]}),{'id':Number(_0x179bee[_0x2885d2('0x42')]['id']),'tags':_0x11579e||[]};});})[_0x4e6cf8('0xad')](respondWithResult(_0x39b9df,null))[_0x4e6cf8('0x66')](handleError(_0x39b9df,null));},exports[_0x169b34('0x2a')]=function(_0x1e8fcd,_0x5cf085){const _0x214206=_0x169b34;return db[_0x214206('0x47')][_0x214206('0x9a')]({'where':{'id':_0x1e8fcd[_0x214206('0x42')]['id']}})[_0x214206('0xad')](handleEntityNotFound(_0x5cf085,null))['then'](function(_0x3fd985){const _0x3f64f3=_0x214206;if(_0x3fd985)return _0x3fd985['removeTags'](_0x1e8fcd[_0x3f64f3('0xde')][_0x3f64f3('0x6d')]);})['then'](respondWithStatusCode(_0x5cf085,null))[_0x214206('0x66')](handleError(_0x5cf085,null));},exports[_0x169b34('0x81')]=function(_0x8e753,_0x63049a){const _0xd22eb9=_0x169b34,_0x56d4de=moment()[_0xd22eb9('0xe')]()['toString'](),_0x24da28=path[_0xd22eb9('0x4e')](config[_0xd22eb9('0x9e')],'files',_0xd22eb9('0xdb')),_0x3d1676=path[_0xd22eb9('0x4e')](config[_0xd22eb9('0x9e')],_0xd22eb9('0x83'),_0xd22eb9('0x58'),'attachments'),_0x25a166=path[_0xd22eb9('0x4e')](_0x24da28,_0x56d4de),_0x3e524b=util[_0xd22eb9('0xd2')](_0xd22eb9('0x29'),_0x8e753['params']['id'],_0x56d4de),_0x241ae0=path[_0xd22eb9('0x4e')](_0x24da28,_0x3e524b),_0x5cb451=[];_0x5cb451[_0xd22eb9('0x0')]({'model':db[_0xd22eb9('0x96')],'as':_0xd22eb9('0x96'),'attributes':['id','fullname'],'raw':!![]}),_0x5cb451['push']({'model':db[_0xd22eb9('0x52')],'as':_0xd22eb9('0xd1'),'attributes':['id',_0xd22eb9('0x5c'),'lastName'],'raw':!![]});_0x8e753[_0xd22eb9('0xde')]['attachments']&&_0x5cb451[_0xd22eb9('0x0')]({'model':db[_0xd22eb9('0x11')],'as':_0xd22eb9('0x11'),'raw':!![]});const _0x42ae93=[{'model':db['OpenchannelMessage'],'as':_0xd22eb9('0x45'),'attributes':['id',_0xd22eb9('0x32'),'createdAt',_0xd22eb9('0x55'),_0xd22eb9('0x4a'),_0xd22eb9('0xac')],'include':_0x5cb451}];return _0x42ae93[_0xd22eb9('0x0')]({'model':db[_0xd22eb9('0x6a')],'as':_0xd22eb9('0xa4'),'attributes':['id',_0xd22eb9('0x4c')]}),_0x42ae93[_0xd22eb9('0x0')]({'model':db[_0xd22eb9('0x96')],'as':_0xd22eb9('0xbc'),'attributes':['id',_0xd22eb9('0x25')]}),db['OpenchannelInteraction'][_0xd22eb9('0x9a')]({'where':{'id':_0x8e753[_0xd22eb9('0x42')]['id']},'include':_0x42ae93})[_0xd22eb9('0xad')](handleEntityNotFound(_0x63049a,null))['then'](function(_0xa644fe){const _0x700434=_0xd22eb9;if(_0xa644fe){const _0x57e1eb=_0xa644fe[_0x700434('0x53')]({'plain':!![]});fs['mkdirSync'](_0x25a166);const _0x444f46={'format':'A4','border':_0x700434('0x78'),'header':{'height':_0x700434('0xb1'),'contents':{'first':_0x700434('0xb2')}},'footer':{'height':_0x700434('0x2'),'contents':{'default':util[_0x700434('0xd2')](_0x700434('0xa6'),util[_0x700434('0xd2')]('%s\x20#%d',_0x700434('0x38'),_0x57e1eb['id']),moment()['format'](_0x700434('0xd6'))[_0x700434('0xa3')]())}}},_0x58d0da={'channel':_0x700434('0x38'),'account':_0x57e1eb[_0x700434('0xa4')][_0x700434('0x4c')],'agent':_0x57e1eb[_0x700434('0xbc')]?_0x57e1eb[_0x700434('0xbc')][_0x700434('0x25')]:'N.A.','createdAt':moment(_0x57e1eb[_0x700434('0x17')])[_0x700434('0xd2')](_0x700434('0xca'))['toString'](),'closedAt':_0x57e1eb[_0x700434('0xc4')]?moment(_0x57e1eb['closedAt'])[_0x700434('0xd2')](_0x700434('0xca'))[_0x700434('0xa3')]():'','disposition':_0x57e1eb[_0x700434('0x73')],'visibility':_0x57e1eb[_0x700434('0x6b')]?_0x700434('0x30'):_0x700434('0xa7'),'messages':_(_0x57e1eb['Messages'])[_0x700434('0xa5')]({'secret':![]})[_0x700434('0x61')](function(_0x3120ef){const _0x331883=_0x700434;if(_0x3120ef[_0x331883('0x11')]){const _0x18d840=path[_0x331883('0x4e')](_0x3d1676,_0x3120ef[_0x331883('0x11')]['basename']);fs[_0x331883('0x31')](_0x18d840)&&fs[_0x331883('0x6')](_0x18d840)[_0x331883('0xbd')](fs[_0x331883('0x19')](path[_0x331883('0x4e')](_0x25a166,_0x3120ef[_0x331883('0x11')][_0x331883('0x1d')])));}return{'date':moment(_0x3120ef[_0x331883('0x17')])[_0x331883('0xd2')](_0x331883('0xca'))[_0x331883('0xa3')](),'sender':_0x3120ef['direction']==='out'?_0x3120ef[_0x331883('0x96')]?_0x3120ef['User']['fullname']:_0x331883('0x86'):_0x3120ef[_0x331883('0xd1')][_0x331883('0x5c')]+(_0x3120ef[_0x331883('0xd1')][_0x331883('0x9b')]?'\x20'+_0x3120ef[_0x331883('0xd1')][_0x331883('0x9b')]:''),'body':_0x3120ef['Attachment']?_0x3120ef[_0x331883('0x11')]['basename']:_0x3120ef['body'],'direction':_0x3120ef[_0x331883('0x55')]==='out'?'A':'C','secret':_0x3120ef[_0x331883('0x4a')],'read':_0x3120ef[_0x331883('0xac')],'attachment':_0x3120ef[_0x331883('0x11')]};})[_0x700434('0x6f')]()};return ejs[_0x700434('0xd4')](path[_0x700434('0x4e')](config['root'],_0x700434('0x83'),_0x700434('0x54'),'downloadInteraction.html'),{'interaction':_0x58d0da})[_0x700434('0xad')](function(_0x1212cb){return new Promise(function(_0x5cc98d,_0x3f5aed){const _0x2adec9=a480_0x590e;pdf['create'](_0x1212cb,_0x444f46)[_0x2adec9('0x89')](path[_0x2adec9('0x4e')](_0x25a166,_0x2adec9('0x5f')+_0x57e1eb['id']+'-'+_0x56d4de+_0x2adec9('0x50')),function(_0x20a5f5,_0x271bf7){if(_0x20a5f5)return _0x3f5aed(_0x20a5f5);_0x5cc98d(_0x271bf7);});});})['then'](function(){const _0x1b6138=_0x700434;return new Promise(function(_0x51e23f,_0x34baba){zipdir(_0x25a166,{'saveTo':_0x241ae0},function(_0x4fba0d,_0xa98c3d){if(_0x4fba0d)return _0x34baba(_0x4fba0d);return _0x51e23f(_0xa98c3d);});})[_0x1b6138('0xad')](function(){return new Promise(function(_0x320973,_0x5ae8d2){rimraf(_0x25a166,function(_0x948c4a){if(_0x948c4a)_0x5ae8d2(_0x948c4a);return _0x320973();});});})[_0x1b6138('0xad')](function(){const _0x64b318=_0x1b6138;return _0x63049a[_0x64b318('0x81')](_0x241ae0,_0x3e524b,function(_0x3a20db){const _0x5ac8d6=_0x64b318;_0x3a20db?console[_0x5ac8d6('0x28')]('err',_0x3a20db):fs['unlinkSync'](_0x241ae0);});});});}else return _0x63049a[_0x700434('0x93')](0xc8);})[_0xd22eb9('0x66')](handleError(_0x63049a,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index 177a8ea..d30d2c5 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a481_0x52f3=['OpenchannelMessage','setDataValue','findAll','exports','unreadMessages','OpenchannelInteraction','catch','emit','Users','getUsers','map','remove','setMaxListeners','addHook','events','then','../../mysqldb'];(function(_0x2b1635,_0x52f3f5){const _0x284100=function(_0x3cca47){while(--_0x3cca47){_0x2b1635['push'](_0x2b1635['shift']());}};_0x284100(++_0x52f3f5);}(a481_0x52f3,0x81));const a481_0x2841=function(_0x2b1635,_0x52f3f5){_0x2b1635=_0x2b1635-0x0;let _0x284100=a481_0x52f3[_0x2b1635];return _0x284100;};const _0x47924f=a481_0x2841;'use strict';const EventEmitter=require(_0x47924f('0x4')),OpenchannelInteraction=require(_0x47924f('0x6'))['db'][_0x47924f('0xc')],OpenchannelMessage=require(_0x47924f('0x6'))['db'][_0x47924f('0x7')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x47924f('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x47924f('0x1')};function emitEvent(_0x3cca47){return function(_0x2590fb){const _0x436b08=a481_0x2841;_0x2590fb[_0x436b08('0x10')]({'attributes':['id'],'raw':!![]})[_0x436b08('0x5')](function(_0x47bf99){const _0x2efe1b=_0x436b08;return _0x2590fb[_0x2efe1b('0x8')](_0x2efe1b('0xf'),_0x47bf99[_0x2efe1b('0x0')](function(_0x4a5747){return{'id':_0x4a5747['id']};})),OpenchannelMessage[_0x2efe1b('0x9')]({'where':{'OpenchannelInteractionId':_0x2590fb['id'],'direction':'in','read':![]},'raw':!![]});})[_0x436b08('0x5')](function(_0x3f9fcd){const _0x876576=_0x436b08;_0x2590fb[_0x876576('0x8')](_0x876576('0xb'),_0x3f9fcd['length']),OpenchannelInteractionEvents['emit'](_0x3cca47+':'+_0x2590fb['id'],_0x2590fb),OpenchannelInteractionEvents[_0x876576('0xe')](_0x3cca47,_0x2590fb);})[_0x436b08('0xd')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelInteraction[_0x47924f('0x3')](e,emitEvent(event));}}module[_0x47924f('0xa')]=OpenchannelInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index 7776ec6..94e6232 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a482_0x4715=['define','closedAt','YYYY-MM-DD\x20HH:mm:ss','moment','openchannel_interactions','format','exports','closed','OpenchannelInteraction','changed'];(function(_0x2192b9,_0x471578){const _0x3679bb=function(_0x155b85){while(--_0x155b85){_0x2192b9['push'](_0x2192b9['shift']());}};_0x3679bb(++_0x471578);}(a482_0x4715,0x95));const a482_0x3679=function(_0x2192b9,_0x471578){_0x2192b9=_0x2192b9-0x0;let _0x3679bb=a482_0x4715[_0x2192b9];return _0x3679bb;};const _0x2433c3=a482_0x3679;'use strict';const moment=require(_0x2433c3('0x4')),attributes=require('./openchannelInteraction.attributes');module[_0x2433c3('0x7')]=function(_0x155b85){const _0x43e5a1=_0x2433c3,_0x39f776=_0x155b85[_0x43e5a1('0x1')](_0x43e5a1('0x9'),attributes,{'tableName':_0x43e5a1('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x3adf0d){const _0x4c02ae=_0x43e5a1;_0x3adf0d[_0x4c02ae('0x0')](_0x4c02ae('0x8'))&&(_0x3adf0d[_0x4c02ae('0x2')]=moment()[_0x4c02ae('0x6')](_0x4c02ae('0x3')));}}});return _0x39f776;}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index 00a181d..5a12c7b 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a483_0x6d3f=['error','debug','addTags','catch','message','options','register','AddTagsToOpenchannelInteraction','ids','raw','omit','limit','AddTags','UpdateOpenchannelInteraction','../../mysqldb','../../rediscache','then','../../config/logger','info','rpc','stringify','lodash','OpenchannelInteraction','update','where','body','findOne','./openchannelInteraction.socket'];(function(_0x4f09cd,_0x6d3f26){const _0x28c491=function(_0x15a684){while(--_0x15a684){_0x4f09cd['push'](_0x4f09cd['shift']());}};_0x28c491(++_0x6d3f26);}(a483_0x6d3f,0x122));const a483_0x28c4=function(_0x4f09cd,_0x6d3f26){_0x4f09cd=_0x4f09cd-0x0;let _0x28c491=a483_0x6d3f[_0x4f09cd];return _0x28c491;};const _0x1e60d8=a483_0x28c4;'use strict';const _=require(_0x1e60d8('0xb')),db=require(_0x1e60d8('0x4'))['db'],logger=require(_0x1e60d8('0x7'))(_0x1e60d8('0x9')),{getSocket}=require(_0x1e60d8('0x5')),socket=getSocket();require(_0x1e60d8('0x11'))[_0x1e60d8('0x18')](socket),exports[_0x1e60d8('0x3')]=function(_0x15a684){const _0x27417c=this;return new Promise(function(_0x43e02a,_0x100352){const _0x5f4d22=a483_0x28c4;return db[_0x5f4d22('0xc')][_0x5f4d22('0xd')](_0x15a684[_0x5f4d22('0xf')],{'raw':_0x15a684[_0x5f4d22('0x17')]?_0x15a684['options'][_0x5f4d22('0x1b')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x15a684[_0x5f4d22('0x17')]?_0x15a684[_0x5f4d22('0x17')]['where']||null:null,'attributes':_0x15a684[_0x5f4d22('0x17')]?_0x15a684[_0x5f4d22('0x17')]['attributes']||null:null,'limit':_0x15a684[_0x5f4d22('0x17')]?_0x15a684[_0x5f4d22('0x17')][_0x5f4d22('0x1')]||null:null})[_0x5f4d22('0x6')](function(_0x32e737){const _0xa672c3=_0x5f4d22;logger[_0xa672c3('0x8')](_0xa672c3('0x3'),_0x15a684),logger[_0xa672c3('0x13')](_0xa672c3('0x3'),_0x15a684,JSON[_0xa672c3('0xa')](_0x32e737)),_0x43e02a(_0x32e737);})[_0x5f4d22('0x15')](function(_0x2c421e){const _0x39ca6d=_0x5f4d22;logger[_0x39ca6d('0x12')](_0x39ca6d('0x3'),_0x2c421e[_0x39ca6d('0x16')],_0x15a684),_0x100352(_0x27417c[_0x39ca6d('0x12')](0x1f4,_0x2c421e['message']));});});},exports[_0x1e60d8('0x19')]=function(_0x413e52){const _0x27182a=this;return new Promise(function(_0x127c0d,_0x4b8bf4){const _0x3fc4f8=a483_0x28c4;return db[_0x3fc4f8('0xc')][_0x3fc4f8('0x10')]({'where':_0x413e52[_0x3fc4f8('0x17')]?_0x413e52[_0x3fc4f8('0x17')][_0x3fc4f8('0xe')]||null:null})[_0x3fc4f8('0x6')](function(_0x517247){const _0x4a1e37=_0x3fc4f8;if(_0x517247)return _0x517247[_0x4a1e37('0x14')](_0x413e52[_0x4a1e37('0xf')][_0x4a1e37('0x1a')],{'through':_[_0x4a1e37('0x0')](_0x413e52[_0x4a1e37('0xf')],[_0x4a1e37('0x1a'),'id'])});})['then'](function([_0x4c7d1a]){const _0xe29119=_0x3fc4f8;logger['info'](_0xe29119('0x2'),_0x413e52),logger[_0xe29119('0x13')]('AddTags',_0x413e52,JSON[_0xe29119('0xa')](_0x4c7d1a)),_0x127c0d(_0x4c7d1a);})[_0x3fc4f8('0x15')](function(_0xeb9f3a){const _0x24cd93=_0x3fc4f8;logger[_0x24cd93('0x12')]('AddTags',_0xeb9f3a['message'],_0x413e52),_0x4b8bf4(_0x27182a[_0x24cd93('0x12')](0x1f4,_0xeb9f3a[_0x24cd93('0x16')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index 2d0137c..af8c20b 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a484_0x386c=['update','openchannelInteraction:','remove','./openchannelInteraction.events','save'];(function(_0x41f9d8,_0x386cc9){const _0x55c6ad=function(_0x296dc3){while(--_0x296dc3){_0x41f9d8['push'](_0x41f9d8['shift']());}};_0x55c6ad(++_0x386cc9);}(a484_0x386c,0x174));const a484_0x55c6=function(_0x41f9d8,_0x386cc9){_0x41f9d8=_0x41f9d8-0x0;let _0x55c6ad=a484_0x386c[_0x41f9d8];return _0x55c6ad;};const _0x4eb87b=a484_0x55c6;'use strict';const OpenchannelInteractionEvents=require(_0x4eb87b('0x1')),events=[_0x4eb87b('0x2'),_0x4eb87b('0x0'),_0x4eb87b('0x3')];function createListener(_0x296dc3,_0x144a0e){return function(_0x38a2f5){_0x144a0e['emit'](_0x296dc3,_0x38a2f5);};}exports['register']=function(_0x1f3a1c){const _0x599256=_0x4eb87b;for(let _0x19c251=0x0,_0x31edab=events['length'];_0x19c251<_0x31edab;_0x19c251++){const _0x36b88e=events[_0x19c251],_0x2c3c43=createListener(_0x599256('0x4')+_0x36b88e,_0x1f3a1c);OpenchannelInteractionEvents['on'](_0x36b88e,_0x2c3c43);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 1da6029..341a65d 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a485_0xc00d=['create','get','Router','tracked','express','isAuthenticated','delete','destroy','/:id','put','../../components/auth/service','exports','post','../../components/interaction/service','index','describe','show','update','reject','openchannel','accept'];(function(_0x33c1c3,_0xc00d6c){const _0xdb8a81=function(_0x22a948){while(--_0x22a948){_0x33c1c3['push'](_0x33c1c3['shift']());}};_0xdb8a81(++_0xc00d6c);}(a485_0xc00d,0x1ca));const a485_0xdb8a=function(_0x33c1c3,_0xc00d6c){_0x33c1c3=_0x33c1c3-0x0;let _0xdb8a81=a485_0xc00d[_0x33c1c3];return _0xdb8a81;};const _0x469f48=a485_0xdb8a;'use strict';const express=require(_0x469f48('0x8')),router=express[_0x469f48('0x6')](),auth=require(_0x469f48('0xe')),interaction=require(_0x469f48('0x11')),controller=require('./openchannelMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x469f48('0x12')]),router[_0x469f48('0x5')]('/describe',auth[_0x469f48('0x9')](),controller[_0x469f48('0x13')]),router[_0x469f48('0x5')]('/:id',auth[_0x469f48('0x9')](),controller[_0x469f48('0x14')]),router[_0x469f48('0x10')]('/',auth['isAuthenticated'](),interaction[_0x469f48('0x7')](_0x469f48('0x2'),'openchannelmessage:create'),controller[_0x469f48('0x4')]),router[_0x469f48('0xd')](_0x469f48('0xc'),auth[_0x469f48('0x9')](),controller[_0x469f48('0x0')]),router[_0x469f48('0xd')]('/:id/accept',auth[_0x469f48('0x9')](),controller[_0x469f48('0x3')]),router[_0x469f48('0xd')]('/:id/reject',auth[_0x469f48('0x9')](),controller[_0x469f48('0x1')]),router[_0x469f48('0xa')](_0x469f48('0xc'),auth[_0x469f48('0x9')](),controller[_0x469f48('0xb')]),module[_0x469f48('0xf')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index 8a42831..1fc9d1c 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a486_0x666e=['exports','sequelize','out','TEXT','BOOLEAN','DATE'];(function(_0x262264,_0x666e6f){const _0x38f628=function(_0x213892){while(--_0x213892){_0x262264['push'](_0x262264['shift']());}};_0x38f628(++_0x666e6f);}(a486_0x666e,0x164));const a486_0x38f6=function(_0x262264,_0x666e6f){_0x262264=_0x262264-0x0;let _0x38f628=a486_0x666e[_0x262264];return _0x38f628;};const _0x1d22c2=a486_0x38f6;'use strict';const Sequelize=require(_0x1d22c2('0x5'));module[_0x1d22c2('0x4')]={'body':{'type':Sequelize[_0x1d22c2('0x1')]('medium'),'allowNull':![]},'read':{'type':Sequelize[_0x1d22c2('0x2')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x1d22c2('0x0')),'defaultValue':_0x1d22c2('0x0'),'allowNull':![]},'readAt':{'type':Sequelize[_0x1d22c2('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index 2ec933c..61cd0a6 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a487_0x893a=['[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','filter','undefined','filters','openchannel-interactions','get','message','catch','rejectmessage','manual','describe','format','findOne','user','channel','rawAttributes','keys','openchannel','info','../../config/logger','EventManager','key','agent','like','options','index','include','length','name','sendStatus','register','nolimit','event','fieldName','OpenchannelMessage,\x20%s,\x20%s,\x20%s','error','attributes','YYYY-MM-DD\x20HH:mm:ss','result','./openchannelMessage.socket','json','http','where','query','client','merge','stringify','OpenchannelMessage,\x20%s,\x20%s','order','model','Content-Range','SIP/%s','findAll','create','interaction','update','destroy','OpenchannelInteractionId','limit','offset','sort','count','params','moment','status','reject','rejectMessage','api','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','Contact','RejectMessage','send','AcceptMessage','jayson/promise','sequelize','role','UserId','CmContact','debug','type','../../components/parsers/qs','../../rediscache','interface','acceptmessage','map','then','fields','read1stAt','rows','OpenchannelInteraction','util','OpenchannelMessage','VIRTUAL','lodash','includeAll','intersection','null','body','request\x20sent','accept','show'];(function(_0x26f653,_0x893a34){const _0x5a039=function(_0x1a98d4){while(--_0x1a98d4){_0x26f653['push'](_0x26f653['shift']());}};_0x5a039(++_0x893a34);}(a487_0x893a,0x1ab));const a487_0x5a03=function(_0x26f653,_0x893a34){_0x26f653=_0x26f653-0x0;let _0x5a039=a487_0x893a[_0x26f653];return _0x5a039;};const _0x56ca5c=a487_0x5a03;'use strict';const moment=require(_0x56ca5c('0x28')),util=require(_0x56ca5c('0x43')),_=require(_0x56ca5c('0x46')),qs=require(_0x56ca5c('0x39')),logger=require(_0x56ca5c('0x61'))(_0x56ca5c('0x2c')),{getSocket}=require(_0x56ca5c('0x3a')),socket=getSocket(),interaction_log=require('../../config/logger')(_0x56ca5c('0x52')),db=require('../../mysqldb')['db'],{Op}=require(_0x56ca5c('0x33'));require(_0x56ca5c('0x10'))[_0x56ca5c('0x7')](socket);const jayson=require(_0x56ca5c('0x32')),client=jayson[_0x56ca5c('0x15')][_0x56ca5c('0x12')]({'port':0x232c}),client9002=jayson['client'][_0x56ca5c('0x12')]({'port':0x232a});function respondWithRpcPromise(_0x1a98d4,_0x4ce4f3,_0x3188db,_0x112d63){return new Promise(function(_0x4d0070,_0x18fb40){const _0x3e2203=a487_0x5a03,_0x50aad2=_0x112d63||client;return _0x50aad2['request'](_0x1a98d4,_0x3188db)[_0x3e2203('0x3e')](function(_0x7b58dd){const _0x52f632=_0x3e2203;logger['info'](_0x52f632('0x18'),_0x4ce4f3,_0x52f632('0x4b')),logger[_0x52f632('0x37')](_0x52f632('0xb'),_0x4ce4f3,'request\x20sent',JSON[_0x52f632('0x17')](_0x7b58dd));if(_0x7b58dd[_0x52f632('0xc')]){if(_0x7b58dd[_0x52f632('0xc')]['code']===0x1f4)return logger[_0x52f632('0xc')](_0x52f632('0x18'),_0x4ce4f3,_0x7b58dd[_0x52f632('0xc')]['message']),_0x18fb40(_0x7b58dd[_0x52f632('0xc')][_0x52f632('0x54')]);return logger[_0x52f632('0xc')]('OpenchannelMessage,\x20%s,\x20%s',_0x4ce4f3,_0x7b58dd[_0x52f632('0xc')][_0x52f632('0x54')]),_0x4d0070(_0x7b58dd[_0x52f632('0xc')][_0x52f632('0x54')]);}else logger[_0x52f632('0x60')](_0x52f632('0x18'),_0x4ce4f3,_0x52f632('0x4b')),_0x4d0070(_0x7b58dd[_0x52f632('0xf')][_0x52f632('0x54')]);})[_0x3e2203('0x55')](function(_0x5814e3){const _0x435956=_0x3e2203;logger[_0x435956('0xc')](_0x435956('0x18'),_0x4ce4f3,_0x5814e3),_0x18fb40(_0x5814e3);});});}function respondWithResult(_0x43052a,_0x225bac){return _0x225bac=_0x225bac||0xc8,function(_0x3d47ff){const _0x5357c2=a487_0x5a03;if(_0x3d47ff)return _0x43052a['status'](_0x225bac)[_0x5357c2('0x11')](_0x3d47ff);};}function respondWithFilteredResult(_0x38cfd4,_0x1c4990){return function(_0x234fb7){const _0x2aee58=a487_0x5a03;if(_0x234fb7){const _0x2b7788=_0x234fb7[_0x2aee58('0x26')],_0x132b0d=_0x1c4990[_0x2aee58('0x24')];let _0x59c2a5=_0x1c4990[_0x2aee58('0x24')]+_0x1c4990[_0x2aee58('0x23')],_0x2224fb;return _0x59c2a5>=_0x2b7788?(_0x59c2a5=_0x2b7788,_0x2224fb=0xc8):_0x2224fb=0xce,_0x38cfd4['status'](_0x2224fb),_0x38cfd4['set'](_0x2aee58('0x1b'),_0x132b0d+'-'+_0x59c2a5+'/'+_0x2b7788)[_0x2aee58('0x11')](_0x234fb7);}return null;};}function saveUpdates(_0x20f645){return function(_0x5618e5){const _0x3f150d=a487_0x5a03;if(_0x5618e5)return _0x5618e5[_0x3f150d('0x20')](_0x20f645)[_0x3f150d('0x3e')](function(_0x3137ce){return _0x3137ce;});return null;};}function removeEntity(_0x5eb65d){return function(_0x447b35){const _0x5a6cb1=a487_0x5a03;if(_0x447b35)return _0x447b35[_0x5a6cb1('0x21')]()[_0x5a6cb1('0x3e')](function(){const _0x2a4d84=_0x5a6cb1;_0x5eb65d[_0x2a4d84('0x29')](0xcc)['end']();});};}function handleEntityNotFound(_0x233c51){return function(_0x383cb6){const _0x445eb8=a487_0x5a03;return!_0x383cb6&&_0x233c51[_0x445eb8('0x6')](0x194),_0x383cb6;};}function handleError(_0x2f8d68,_0x189232){return _0x189232=_0x189232||0x1f4,function(_0x29124f){const _0x5b18c3=a487_0x5a03;logger[_0x5b18c3('0xc')](_0x29124f['stack']),_0x29124f['name']&&delete _0x29124f['name'],_0x2f8d68[_0x5b18c3('0x29')](_0x189232)[_0x5b18c3('0x30')](_0x29124f);};}exports[_0x56ca5c('0x2')]=function(_0x38b29b,_0x45b2ab){const _0x10f8ed=_0x56ca5c;let _0x5b1a78={};const _0x2dfd3f={},_0x5ab005={'count':0x0,'rows':[]},_0x1967d5=_['map'](db[_0x10f8ed('0x44')][_0x10f8ed('0x5d')],function(_0x3ec758){const _0x3e1ad3=_0x10f8ed;return{'name':_0x3ec758[_0x3e1ad3('0xa')],'type':_0x3ec758[_0x3e1ad3('0x38')][_0x3e1ad3('0x63')]};});_0x2dfd3f[_0x10f8ed('0x1a')]=_[_0x10f8ed('0x3d')](_0x1967d5,_0x10f8ed('0x5')),_0x2dfd3f[_0x10f8ed('0x14')]=_[_0x10f8ed('0x5e')](_0x38b29b[_0x10f8ed('0x14')]),_0x2dfd3f['filters']=_[_0x10f8ed('0x48')](_0x2dfd3f[_0x10f8ed('0x1a')],_0x2dfd3f[_0x10f8ed('0x14')]),_0x5b1a78[_0x10f8ed('0xd')]=_[_0x10f8ed('0x48')](_0x2dfd3f[_0x10f8ed('0x1a')],qs[_0x10f8ed('0x3f')](_0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x3f')])),_0x5b1a78[_0x10f8ed('0xd')]=_0x5b1a78['attributes']['length']?_0x5b1a78[_0x10f8ed('0xd')]:_0x2dfd3f[_0x10f8ed('0x1a')];typeof _0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x8')]===_0x10f8ed('0x50')&&(_0x5b1a78[_0x10f8ed('0x23')]=qs[_0x10f8ed('0x23')](_0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x23')]),_0x5b1a78[_0x10f8ed('0x24')]=qs[_0x10f8ed('0x24')](_0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x24')]));_0x5b1a78[_0x10f8ed('0x19')]=qs[_0x10f8ed('0x25')](_0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x25')]),_0x5b1a78['where']=qs[_0x10f8ed('0x51')](_['pick'](_0x38b29b[_0x10f8ed('0x14')],_0x2dfd3f[_0x10f8ed('0x51')]),_0x1967d5);_0x38b29b[_0x10f8ed('0x14')][_0x10f8ed('0x4f')]&&(_0x5b1a78[_0x10f8ed('0x13')]=_[_0x10f8ed('0x16')](_0x5b1a78[_0x10f8ed('0x13')],{[Op['or']]:_[_0x10f8ed('0x3d')](_0x1967d5,function(_0xd84939){const _0x2c2802=_0x10f8ed;if(_0xd84939[_0x2c2802('0x38')]!==_0x2c2802('0x45')){const _0x10c29f={};return _0x10c29f[_0xd84939['name']]={[Op[_0x2c2802('0x0')]]:'%'+_0x38b29b[_0x2c2802('0x14')][_0x2c2802('0x4f')]+'%'},_0x10c29f;}})}));_0x5b1a78=_[_0x10f8ed('0x16')]({},_0x5b1a78,_0x38b29b[_0x10f8ed('0x1')]);const _0x13cc3e={'where':_0x5b1a78[_0x10f8ed('0x13')]};return db[_0x10f8ed('0x44')][_0x10f8ed('0x26')](_0x13cc3e)['then'](function(_0x2c7ee7){const _0x2b07ad=_0x10f8ed;return _0x5ab005[_0x2b07ad('0x26')]=_0x2c7ee7,_0x38b29b['query']['includeAll']&&(_0x5b1a78[_0x2b07ad('0x3')]=[{'all':!![]}]),db[_0x2b07ad('0x44')][_0x2b07ad('0x1d')](_0x5b1a78);})[_0x10f8ed('0x3e')](function(_0x449f94){const _0x4b50d2=_0x10f8ed;return _0x5ab005[_0x4b50d2('0x41')]=_0x449f94,_0x5ab005;})[_0x10f8ed('0x3e')](respondWithFilteredResult(_0x45b2ab,_0x5b1a78))[_0x10f8ed('0x55')](handleError(_0x45b2ab,null));},exports[_0x56ca5c('0x4d')]=function(_0xff43a1,_0x5444cd){const _0x3da4d3=_0x56ca5c;let _0x49f72e={'raw':!![],'where':{'id':_0xff43a1['params']['id']}};const _0x151bac={};return _0x151bac[_0x3da4d3('0x1a')]=_[_0x3da4d3('0x5e')](db[_0x3da4d3('0x44')][_0x3da4d3('0x5d')]),_0x151bac[_0x3da4d3('0x14')]=_['keys'](_0xff43a1[_0x3da4d3('0x14')]),_0x151bac[_0x3da4d3('0x51')]=_[_0x3da4d3('0x48')](_0x151bac[_0x3da4d3('0x1a')],_0x151bac[_0x3da4d3('0x14')]),_0x49f72e['attributes']=_[_0x3da4d3('0x48')](_0x151bac[_0x3da4d3('0x1a')],qs['fields'](_0xff43a1[_0x3da4d3('0x14')][_0x3da4d3('0x3f')])),_0x49f72e[_0x3da4d3('0xd')]=_0x49f72e[_0x3da4d3('0xd')][_0x3da4d3('0x4')]?_0x49f72e[_0x3da4d3('0xd')]:_0x151bac[_0x3da4d3('0x1a')],_0xff43a1[_0x3da4d3('0x14')][_0x3da4d3('0x47')]&&(_0x49f72e[_0x3da4d3('0x3')]=[{'all':!![]}]),_0x49f72e=_['merge']({},_0x49f72e,_0xff43a1[_0x3da4d3('0x1')]),db[_0x3da4d3('0x44')]['findOne'](_0x49f72e)['then'](handleEntityNotFound(_0x5444cd,null))['then'](respondWithResult(_0x5444cd,null))[_0x3da4d3('0x55')](handleError(_0x5444cd,null));},exports[_0x56ca5c('0x1e')]=function(_0x251675,_0x4226cf){const _0x7943bf=_0x56ca5c;return db[_0x7943bf('0x44')][_0x7943bf('0x1e')](_0x251675[_0x7943bf('0x4a')],{})[_0x7943bf('0x3e')](respondWithResult(_0x4226cf,0xc9))[_0x7943bf('0x55')](handleError(_0x4226cf,null));},exports['update']=function(_0x3bb05a,_0x533e20){const _0x254e0d=_0x56ca5c;return _0x3bb05a[_0x254e0d('0x4a')]['id']&&delete _0x3bb05a['body']['id'],db[_0x254e0d('0x44')]['findOne']({'where':{'id':_0x3bb05a[_0x254e0d('0x27')]['id']}})[_0x254e0d('0x3e')](handleEntityNotFound(_0x533e20,null))[_0x254e0d('0x3e')](saveUpdates(_0x3bb05a[_0x254e0d('0x4a')],null))['then'](respondWithResult(_0x533e20,null))[_0x254e0d('0x55')](handleError(_0x533e20,null));},exports[_0x56ca5c('0x21')]=function(_0x48f8bb,_0x478eca){const _0x218d33=_0x56ca5c;return db[_0x218d33('0x44')][_0x218d33('0x5a')]({'where':{'id':_0x48f8bb[_0x218d33('0x27')]['id']}})[_0x218d33('0x3e')](handleEntityNotFound(_0x478eca,null))[_0x218d33('0x3e')](removeEntity(_0x478eca,null))[_0x218d33('0x55')](handleError(_0x478eca,null));},exports[_0x56ca5c('0x58')]=function(_0xc2a966,_0x2381bb){const _0x20dd8e=_0x56ca5c;return db['OpenchannelMessage'][_0x20dd8e('0x58')]()[_0x20dd8e('0x3e')](respondWithResult(_0x2381bb,null))[_0x20dd8e('0x55')](handleError(_0x2381bb,null));},exports[_0x56ca5c('0x4c')]=function(_0x3e00d3,_0x31833d){const _0xf3ae36=_0x56ca5c,_0x1b87c6={'channel':_0xf3ae36('0x5f')};return _0x3e00d3[_0xf3ae36('0x4a')]['id']&&delete _0x3e00d3[_0xf3ae36('0x4a')]['id'],_0x3e00d3['body']['read']=!![],_0x3e00d3['body']['readAt']=moment()[_0xf3ae36('0x59')](_0xf3ae36('0xe')),_0x3e00d3[_0xf3ae36('0x4a')][_0xf3ae36('0x35')]=_0x3e00d3[_0xf3ae36('0x4a')][_0xf3ae36('0x35')]||_0x3e00d3[_0xf3ae36('0x5b')]['id'],db[_0xf3ae36('0x44')][_0xf3ae36('0x5a')]({'where':{'id':_0x3e00d3[_0xf3ae36('0x27')]['id'],'UserId':null},'include':[{'model':db[_0xf3ae36('0x36')],'as':_0xf3ae36('0x2e')}]})['then'](handleEntityNotFound(_0x31833d,null))['then'](saveUpdates(_0x3e00d3[_0xf3ae36('0x4a')],null))[_0xf3ae36('0x3e')](function(_0x134af5){const _0xf9aa2f=_0xf3ae36;if(_0x134af5)return _0x1b87c6['message']=_0x134af5[_0xf9aa2f('0x53')]({'plain':!![]}),db[_0xf9aa2f('0x42')]['findOne']({'where':{'id':_0x134af5['OpenchannelInteractionId']}});return null;})[_0xf3ae36('0x3e')](handleEntityNotFound(_0x31833d,null))['then'](function(_0x32a4c6){const _0x3790af=_0xf3ae36;if(_0x32a4c6)return _0x32a4c6['update']({'UserId':_0x3e00d3[_0x3790af('0x4a')][_0x3790af('0x35')],'read1stAt':_['isNil'](_0x32a4c6[_0x3790af('0x40')])?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0xf3ae36('0x3e')](function(_0x1836e9){const _0x59e777=_0xf3ae36;if(_0x1836e9)return _0x1b87c6[_0x59e777('0x1f')]=_0x1836e9['get']({'plain':!![]}),interaction_log[_0x59e777('0x60')](_0x59e777('0x4e'),_0x3e00d3[_0x59e777('0x5b')]['id'],_0x3e00d3[_0x59e777('0x5b')][_0x59e777('0x5')],_0x3e00d3['user'][_0x59e777('0x34')],_0x1b87c6[_0x59e777('0x1f')]['id'],_0x3e00d3[_0x59e777('0x4a')]?JSON[_0x59e777('0x17')](_0x3e00d3[_0x59e777('0x4a')]):_0x59e777('0x49')),respondWithRpcPromise(_0x59e777('0x31'),'acceptMessage',_0x1b87c6);return null;})[_0xf3ae36('0x3e')](function(_0x42a35b){const _0x2e1cca=_0xf3ae36;if(_0x42a35b){if(_0x3e00d3['body'][_0x2e1cca('0x57')])return _0x1b87c6['message'][_0x2e1cca('0x3b')]=util[_0x2e1cca('0x59')]('SIP/%s',_0x3e00d3[_0x2e1cca('0x5b')]['name']),_0x1b87c6[_0x2e1cca('0x54')][_0x2e1cca('0x5c')]=_0x1b87c6[_0x2e1cca('0x5c')],_0x1b87c6[_0x2e1cca('0x54')]['event']=_0x2e1cca('0x4c'),respondWithRpcPromise(_0x2e1cca('0x62'),_0x2e1cca('0x62'),{'event':_0x2e1cca('0x3c'),'message':_0x1b87c6[_0x2e1cca('0x54')]},client9002)[_0x2e1cca('0x3e')](function(){return _0x1b87c6;});return _0x1b87c6;}return null;})[_0xf3ae36('0x3e')](respondWithResult(_0x31833d,null))[_0xf3ae36('0x55')](handleError(_0x31833d,null));},exports['reject']=function(_0x3cd56,_0x2f9217){const _0x5a0c3f=_0x56ca5c,_0x118186={'agent':{},'channel':_0x5a0c3f('0x5f')};return _0x3cd56[_0x5a0c3f('0x4a')]['id']&&delete _0x3cd56[_0x5a0c3f('0x4a')]['id'],_0x3cd56[_0x5a0c3f('0x4a')][_0x5a0c3f('0x35')]=_0x3cd56[_0x5a0c3f('0x4a')][_0x5a0c3f('0x35')]||_0x3cd56['user']['id'],_0x118186[_0x5a0c3f('0x64')]['id']=_0x3cd56['body'][_0x5a0c3f('0x35')],db[_0x5a0c3f('0x44')][_0x5a0c3f('0x5a')]({'where':{'id':_0x3cd56[_0x5a0c3f('0x27')]['id'],'UserId':null}})[_0x5a0c3f('0x3e')](handleEntityNotFound(_0x2f9217,null))[_0x5a0c3f('0x3e')](function(_0x439936){const _0x252a04=_0x5a0c3f;if(_0x439936)return _0x118186['message']=_0x439936[_0x252a04('0x53')]({'plain':!![]}),db['OpenchannelInteraction'][_0x252a04('0x5a')]({'where':{'id':_0x439936[_0x252a04('0x22')]}});return null;})[_0x5a0c3f('0x3e')](handleEntityNotFound(_0x2f9217,null))[_0x5a0c3f('0x3e')](function(_0x48fb47){const _0x33a064=_0x5a0c3f;if(_0x48fb47)return _0x118186[_0x33a064('0x1f')]=_0x48fb47[_0x33a064('0x53')]({'plain':!![]}),interaction_log[_0x33a064('0x60')](_0x33a064('0x2d'),_0x3cd56[_0x33a064('0x5b')]['id'],_0x3cd56[_0x33a064('0x5b')][_0x33a064('0x5')],_0x3cd56[_0x33a064('0x5b')][_0x33a064('0x34')],_0x118186[_0x33a064('0x1f')]['id'],_0x3cd56[_0x33a064('0x4a')]?JSON[_0x33a064('0x17')](_0x3cd56['body']):_0x33a064('0x49')),respondWithRpcPromise(_0x33a064('0x2f'),_0x33a064('0x2b'),_0x118186);return null;})['then'](function(_0x50861a){const _0x22ee56=_0x5a0c3f;if(_0x50861a)return _0x50861a[_0x22ee56('0x54')][_0x22ee56('0x3b')]=util[_0x22ee56('0x59')](_0x22ee56('0x1c'),_0x3cd56[_0x22ee56('0x5b')][_0x22ee56('0x5')]),_0x50861a['message'][_0x22ee56('0x5c')]=_0x118186[_0x22ee56('0x5c')],_0x50861a[_0x22ee56('0x54')][_0x22ee56('0x9')]=_0x22ee56('0x2a'),respondWithRpcPromise(_0x22ee56('0x62'),'EventManager',{'event':_0x22ee56('0x56'),'message':_0x50861a[_0x22ee56('0x54')]},client9002),_0x118186;return null;})[_0x5a0c3f('0x3e')](respondWithResult(_0x2f9217,null))[_0x5a0c3f('0x55')](handleError(_0x2f9217,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index 8452aaf..bba1843 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a488_0x3b46=['save','setMaxListeners','addHook','emit','events','OpenchannelMessage','undefined','remove','exports','../../mysqldb'];(function(_0x470dc7,_0x3b46f4){const _0x3df22a=function(_0x7df77c){while(--_0x7df77c){_0x470dc7['push'](_0x470dc7['shift']());}};_0x3df22a(++_0x3b46f4);}(a488_0x3b46,0x153));const a488_0x3df2=function(_0x470dc7,_0x3b46f4){_0x470dc7=_0x470dc7-0x0;let _0x3df22a=a488_0x3b46[_0x470dc7];return _0x3df22a;};const _0x3a4780=a488_0x3df2;'use strict';const EventEmitter=require(_0x3a4780('0x5')),OpenchannelMessage=require(_0x3a4780('0x0'))['db'][_0x3a4780('0x6')],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x3a4780('0x2')](0x0);const events={'afterCreate':_0x3a4780('0x1'),'afterUpdate':'update','afterDestroy':_0x3a4780('0x8')};function emitEvent(_0x7df77c){return function(_0x29481d){const _0x529fb0=a488_0x3df2;OpenchannelMessageEvents[_0x529fb0('0x4')](_0x7df77c+':'+_0x29481d['id'],_0x29481d),OpenchannelMessageEvents[_0x529fb0('0x4')](_0x7df77c,_0x29481d);};}for(const e in events){if(typeof events[e]!==_0x3a4780('0x7')){const event=events[e];OpenchannelMessage[_0x3a4780('0x3')](e,emitEvent(event));}}module[_0x3a4780('0x9')]=OpenchannelMessageEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index b69acc6..d1a3710 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a489_0x3215=['openchannel_messages','../../config/logger','out','define','OpenchannelMessage,\x20%s,\x20%s','method','FULLTEXT','exports','POST','Contact','lodash','error','createdAt','length','afterCreate','direction','./openchannelMessage.attributes','toLowerCase','OpenchannelMessage','Interactions','info','OpenchannelAccountId','utf8mb4','catch','GET','describe','body','Interaction','then','keys','util','fti_openchannel_messages','Forwarding\x20message\x20%d\x20to\x20%s','CmContact','secret','threadId','OpenchannelInteractionId','replyUri','get','format','finally','OpenchannelInteraction','request-promise-native','omit','Message\x20%d\x20forwarded\x20to\x20%s','findOne','api','utf8mb4_unicode_ci','UserId','isNil','update'];(function(_0x3811a1,_0x32152a){const _0x2bdd77=function(_0x607dfe){while(--_0x607dfe){_0x3811a1['push'](_0x3811a1['shift']());}};_0x2bdd77(++_0x32152a);}(a489_0x3215,0x1a3));const a489_0x2bdd=function(_0x3811a1,_0x32152a){_0x3811a1=_0x3811a1-0x0;let _0x2bdd77=a489_0x3215[_0x3811a1];return _0x2bdd77;};const _0x3e02b9=a489_0x2bdd;'use strict';const _=require(_0x3e02b9('0x32')),util=require(_0x3e02b9('0x13')),logger=require(_0x3e02b9('0x29'))(_0x3e02b9('0x23')),rp=require(_0x3e02b9('0x1f')),attributes=require(_0x3e02b9('0x5'));module[_0x3e02b9('0x2f')]=function(_0x607dfe){const _0x58d0d3=_0x3e02b9,_0x481e92=_0x607dfe['models'],_0x39110e=_0x607dfe[_0x58d0d3('0x2b')](_0x58d0d3('0x7'),attributes,{'tableName':_0x58d0d3('0x28'),'paranoid':![],'indexes':[{'name':_0x58d0d3('0x14'),'fields':[_0x58d0d3('0xf')],'type':_0x58d0d3('0x2e')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x10dc6a){const _0x8fe7c0=_0x58d0d3,_0x443e88=_0x10dc6a['get']({'plain':!![]});(_0x443e88[_0x8fe7c0('0x4')]['toLowerCase']()==='in'||_0x443e88[_0x8fe7c0('0x4')]['toLowerCase']()==='out'&&!_0x443e88[_0x8fe7c0('0x17')]&&!_[_0x8fe7c0('0x26')](_0x443e88[_0x8fe7c0('0x25')]))&&_0x481e92[_0x8fe7c0('0x1e')][_0x8fe7c0('0x22')]({'where':{'id':_0x443e88[_0x8fe7c0('0x19')]}})[_0x8fe7c0('0x11')](function(_0x440b81){const _0x50fab9=_0x8fe7c0;_0x440b81&&_0x440b81[_0x50fab9('0x27')]({'lastMsgAt':_0x443e88[_0x50fab9('0x1')],'lastMsgDirection':_0x443e88[_0x50fab9('0x4')][_0x50fab9('0x6')]()});})[_0x8fe7c0('0xc')](function(_0x5df046){const _0x5e8ab3=_0x8fe7c0;console[_0x5e8ab3('0x0')](_0x5df046);});if(_0x443e88[_0x8fe7c0('0x4')]===_0x8fe7c0('0x2a')&&!_0x443e88['secret']){let _0xb4f89a;_0x481e92[_0x8fe7c0('0x16')][_0x8fe7c0('0xe')]()[_0x8fe7c0('0x11')](function(_0x154146){const _0x55bc4e=_0x8fe7c0;return _0x481e92['OpenchannelAccount']['findOne']({'where':{'id':_0x443e88[_0x55bc4e('0xa')]},'include':[{'model':_0x481e92[_0x55bc4e('0x1e')],'as':_0x55bc4e('0x8'),'where':{'id':_0x443e88[_0x55bc4e('0x19')]},'limit':0x1,'include':[{'model':_0x481e92['CmContact'],'as':_0x55bc4e('0x31'),'attributes':_[_0x55bc4e('0x12')](_0x154146)}]}]});})[_0x8fe7c0('0x11')](function(_0x3ee42b){const _0x302560=_0x8fe7c0;_0xb4f89a=_0x3ee42b[_0x302560('0x1b')]({'plain':!![]});if(_0xb4f89a&&_0xb4f89a[_0x302560('0x1a')]){logger[_0x302560('0x9')](_0x302560('0x2c'),_0x302560('0x3'),util[_0x302560('0x1c')](_0x302560('0x15'),_0x443e88['id'],_0xb4f89a[_0x302560('0x1a')]));_0xb4f89a['Interactions']&&_0xb4f89a[_0x302560('0x8')][_0x302560('0x2')]&&(_0x443e88['Interaction']=_[_0x302560('0x20')](_0xb4f89a[_0x302560('0x8')][0x0],'Contact'),_0x443e88[_0x302560('0x31')]=_0xb4f89a[_0x302560('0x8')][0x0][_0x302560('0x31')]);const _0x431b6b={'method':_0x302560('0x30'),'uri':encodeURI(_0xb4f89a[_0x302560('0x1a')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x431b6b[_0x302560('0x2d')]){case _0x302560('0xd'):_0x431b6b['qs']=_0x443e88;break;case _0x302560('0x30'):_0x431b6b[_0x302560('0xf')]=_0x443e88;break;}return rp(_0x431b6b)[_0x302560('0x11')](function(_0x3743a1){const _0xb6deb1=_0x302560;logger[_0xb6deb1('0x9')](_0xb6deb1('0x2c'),_0xb6deb1('0x3'),util['format'](_0xb6deb1('0x21'),_0x443e88['id'],_0xb4f89a[_0xb6deb1('0x1a')]));if(_0x3743a1['body'][_0xb6deb1('0x18')]&&_0x3743a1[_0xb6deb1('0xf')][_0xb6deb1('0x18')]!=_0x443e88['Interaction'][_0xb6deb1('0x18')])return _0x481e92[_0xb6deb1('0x1e')][_0xb6deb1('0x27')]({'threadId':_0x3743a1['body']['threadId']},{'logging':!![],'where':{'id':_0x443e88[_0xb6deb1('0x10')]['id']}});else return;})[_0x302560('0x11')](function(){const _0x52a4e1=_0x302560;return _0x10dc6a[_0x52a4e1('0x27')]({'read':!![]});})[_0x302560('0xc')](function(_0x295b51){const _0x3b2692=_0x302560;logger['error'](_0x3b2692('0x2c'),_0x3b2692('0x3'),util['inspect'](_0x295b51,{'showHidden':![],'depth':null}));});}})[_0x8fe7c0('0x1d')](function(){return null;});}else return null;}},'charset':_0x58d0d3('0xb'),'collate':_0x58d0d3('0x24')});return _0x39110e;}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index ae25bdf..9b1feef 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a490_0x5a76=['./openchannelMessage.socket','../../rediscache','../../config/logger','debug','CreateOpenchannelMessage','create','catch','info','OpenchannelMessage','error','../../mysqldb','stringify','raw','body','rpc','message','options'];(function(_0x406253,_0x5a76ab){const _0x1596f9=function(_0x3eb89e){while(--_0x3eb89e){_0x406253['push'](_0x406253['shift']());}};_0x1596f9(++_0x5a76ab);}(a490_0x5a76,0x10e));const a490_0x1596=function(_0x406253,_0x5a76ab){_0x406253=_0x406253-0x0;let _0x1596f9=a490_0x5a76[_0x406253];return _0x1596f9;};const _0x33c840=a490_0x1596;'use strict';const db=require(_0x33c840('0xc'))['db'],logger=require(_0x33c840('0x4'))(_0x33c840('0x10')),{getSocket}=require(_0x33c840('0x3')),socket=getSocket();require(_0x33c840('0x2'))['register'](socket),exports['CreateOpenchannelMessage']=function(_0x3eb89e){const _0x2e15bf=this;return new Promise(function(_0x52dd9e,_0xd07f85){const _0x5839d5=a490_0x1596;return db[_0x5839d5('0xa')][_0x5839d5('0x7')](_0x3eb89e[_0x5839d5('0xf')],{'raw':_0x3eb89e[_0x5839d5('0x1')]?_0x3eb89e[_0x5839d5('0x1')][_0x5839d5('0xe')]===undefined?!![]:![]:!![]})['then'](function(_0x2c2cff){const _0x359389=_0x5839d5;logger[_0x359389('0x9')](_0x359389('0x6'),_0x3eb89e),logger[_0x359389('0x5')](_0x359389('0x6'),_0x3eb89e,JSON[_0x359389('0xd')](_0x2c2cff)),_0x52dd9e(_0x2c2cff);})[_0x5839d5('0x8')](function(_0x365c1c){const _0x3589c1=_0x5839d5;logger[_0x3589c1('0xb')](_0x3589c1('0x6'),_0x365c1c['message'],_0x3eb89e),_0xd07f85(_0x2e15bf[_0x3589c1('0xb')](0x1f4,_0x365c1c[_0x3589c1('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index 7bd3cb7..3c37222 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a491_0x806b=['update','openchannelMessage:','emit','./openchannelMessage.events','length','save','register','remove'];(function(_0x291959,_0x806bf){const _0x1e38f6=function(_0x6ee2d5){while(--_0x6ee2d5){_0x291959['push'](_0x291959['shift']());}};_0x1e38f6(++_0x806bf);}(a491_0x806b,0xf6));const a491_0x1e38=function(_0x291959,_0x806bf){_0x291959=_0x291959-0x0;let _0x1e38f6=a491_0x806b[_0x291959];return _0x1e38f6;};const _0xaa025d=a491_0x1e38;'use strict';const OpenchannelMessageEvents=require(_0xaa025d('0x5')),events=[_0xaa025d('0x7'),_0xaa025d('0x1'),_0xaa025d('0x2')];function createListener(_0x6ee2d5,_0x53e6b7){return function(_0x180454){const _0x5b5855=a491_0x1e38;_0x53e6b7[_0x5b5855('0x4')](_0x6ee2d5,_0x180454);};}exports[_0xaa025d('0x0')]=function(_0x20f270){const _0x1f6684=_0xaa025d;for(let _0xf4b087=0x0,_0x1213a4=events[_0x1f6684('0x6')];_0xf4b087<_0x1213a4;_0xf4b087++){const _0x5505f3=events[_0xf4b087],_0x3467e5=createListener(_0x1f6684('0x3')+_0x5505f3,_0x20f270);OpenchannelMessageEvents['on'](_0x5505f3,_0x3467e5);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index 5681058..ec9ae91 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a492_0x3bbb=['create','removeAgents','../../components/auth/service','destroy','update','get','Router','/:id/members','getAgents','addAgents','express','describe','delete','exports','isAuthenticated','getTeams','/:id','addTeams','put','getMembers','post','show','/:id/users','/:id/teams'];(function(_0x574d92,_0x3bbb31){const _0x169310=function(_0x2240b5){while(--_0x2240b5){_0x574d92['push'](_0x574d92['shift']());}};_0x169310(++_0x3bbb31);}(a492_0x3bbb,0xaf));const a492_0x1693=function(_0x574d92,_0x3bbb31){_0x574d92=_0x574d92-0x0;let _0x169310=a492_0x3bbb[_0x574d92];return _0x169310;};const _0x324853=a492_0x1693;'use strict';const express=require(_0x324853('0x3')),router=express[_0x324853('0x17')](),auth=require(_0x324853('0x13')),controller=require('./openchannelQueue.controller');router[_0x324853('0x16')]('/',auth[_0x324853('0x7')](),controller['index']),router[_0x324853('0x16')]('/describe',auth[_0x324853('0x7')](),controller[_0x324853('0x4')]),router['get'](_0x324853('0x9'),auth[_0x324853('0x7')](),controller[_0x324853('0xe')]),router['get'](_0x324853('0x0'),auth['isAuthenticated'](),controller[_0x324853('0xc')]),router['get'](_0x324853('0x10'),auth[_0x324853('0x7')](),controller[_0x324853('0x8')]),router[_0x324853('0x16')]('/:id/users',auth[_0x324853('0x7')](),controller[_0x324853('0x1')]),router[_0x324853('0xd')]('/',auth['isAuthenticated'](),controller[_0x324853('0x11')]),router['post'](_0x324853('0x10'),auth[_0x324853('0x7')](),controller[_0x324853('0xa')]),router[_0x324853('0xd')](_0x324853('0xf'),auth[_0x324853('0x7')](),controller[_0x324853('0x2')]),router[_0x324853('0xb')]('/:id',auth[_0x324853('0x7')](),controller[_0x324853('0x15')]),router[_0x324853('0x5')](_0x324853('0x9'),auth[_0x324853('0x7')](),controller[_0x324853('0x14')]),router[_0x324853('0x5')](_0x324853('0x10'),auth[_0x324853('0x7')](),controller['removeTeams']),router[_0x324853('0x5')](_0x324853('0xf'),auth['isAuthenticated'](),controller[_0x324853('0x12')]),module[_0x324853('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.attributes.js b/server/api/openchannelQueue/openchannelQueue.attributes.js index ae8348e..577e311 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a493_0x7ffa=['beepall','rrmemory','STRING','roundrobin','INTEGER','name','sequelize','exports'];(function(_0x502975,_0x7ffa89){const _0x41b298=function(_0x1f0a9e){while(--_0x1f0a9e){_0x502975['push'](_0x502975['shift']());}};_0x41b298(++_0x7ffa89);}(a493_0x7ffa,0x149));const a493_0x41b2=function(_0x502975,_0x7ffa89){_0x502975=_0x502975-0x0;let _0x41b298=a493_0x7ffa[_0x502975];return _0x41b298;};const _0x451c83=a493_0x41b2;'use strict';const Sequelize=require(_0x451c83('0x5'));module[_0x451c83('0x6')]={'name':{'type':Sequelize[_0x451c83('0x1')],'unique':_0x451c83('0x4'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x451c83('0x1')]},'timeout':{'type':Sequelize[_0x451c83('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x451c83('0x0'),_0x451c83('0x7'),_0x451c83('0x2'))}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index 8c0491d..4294ed2 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a494_0x5d99=['agent','ut.UserId\x20=\x20?','update','OpenchannelQueueId','join','type','each','describe','./openchannelQueue.socket','include','user','then','limit','createdAt','../../config/logger','getTeams','Team','getAgents','User','findAll','sendStatus','query','../../components/parsers/qs','order','VIRTUAL','intersection','userOpenchannelQueue:save','includes','nolimit','attributes','body','from','json','value','emit','UserOpenchannelQueue','model','../../rediscache','removeTeams','create','index','rows','squel','updatedAt','params','filters','UserProfileResource','format','team_has_openchannel_queues','end','UserProfileSection','show','clone','OpenchannelQueue','rawAttributes','removeAgents','undefined','addAgents','lodash','OpenchannelQueues','SELECT','user_has_teams','map','openchannelPause','ids','sort','every','findAndCountAll','status','field','key','addTeams','options','Unable\x20to\x20retrieve\x20the\x20current\x20user','tq.TeamId','isEmpty','fieldName','ut.TeamId\x20=\x20tq.TeamId','sequelize','send','Agents','where','length','name','OpenchannelQueueId\x20=\x20?','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','pick','isArray','merge','toString','catch','findOne','select','count','register','error','forEach','userOpenchannelQueue:remove','fields','filter','destroy','like','userProfileId','compact','autoAssociation','TeamId','api','Content-Range','offset','get','keys'];(function(_0x13eb04,_0x5d9977){const _0x22c845=function(_0x4a17c7){while(--_0x4a17c7){_0x13eb04['push'](_0x13eb04['shift']());}};_0x22c845(++_0x5d9977);}(a494_0x5d99,0x9e));const a494_0x22c8=function(_0x13eb04,_0x5d9977){_0x13eb04=_0x13eb04-0x0;let _0x22c845=a494_0x5d99[_0x13eb04];return _0x22c845;};const _0x3a6c19=a494_0x22c8;'use strict';const util=require('util'),_=require(_0x3a6c19('0xb')),squel=require(_0x3a6c19('0x6a')),qs=require(_0x3a6c19('0x56')),logger=require(_0x3a6c19('0x4e'))(_0x3a6c19('0x3b')),{getSocket}=require(_0x3a6c19('0x65')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require(_0x3a6c19('0x1f'));require(_0x3a6c19('0x48'))[_0x3a6c19('0x2f')](socket);function respondWithStatusCode(_0x4a17c7,_0x500f97){return _0x500f97=_0x500f97||0xcc,function(_0x32689a){const _0x5b9060=a494_0x22c8;if(_0x32689a)return _0x4a17c7[_0x5b9060('0x54')](_0x500f97);return _0x4a17c7[_0x5b9060('0x15')](_0x500f97)[_0x5b9060('0x2')]();};}function respondWithResult(_0x7a02ef,_0x417eca){return _0x417eca=_0x417eca||0xc8,function(_0x3fa25f){const _0x2dbc22=a494_0x22c8;if(_0x3fa25f)return _0x7a02ef['status'](_0x417eca)[_0x2dbc22('0x60')](_0x3fa25f);};}function respondWithFilteredResult(_0x7ea493,_0x5e10f7){return function(_0x384b5e){const _0x3203cd=a494_0x22c8;if(_0x384b5e){const _0x3b585a=_0x384b5e[_0x3203cd('0x2e')],_0x13c5c2=_0x5e10f7[_0x3203cd('0x3d')];let _0x4ba3e2=_0x5e10f7[_0x3203cd('0x3d')]+_0x5e10f7[_0x3203cd('0x4c')],_0x225cee;return _0x4ba3e2>=_0x3b585a?(_0x4ba3e2=_0x3b585a,_0x225cee=0xc8):_0x225cee=0xce,_0x7ea493['status'](_0x225cee),_0x7ea493['set'](_0x3203cd('0x3c'),_0x13c5c2+'-'+_0x4ba3e2+'/'+_0x3b585a)[_0x3203cd('0x60')](_0x384b5e);}return null;};}function saveUpdates(_0x586105){return function(_0x375a90){const _0x38abb2=a494_0x22c8;if(_0x375a90)return _0x375a90[_0x38abb2('0x42')](_0x586105)[_0x38abb2('0x4b')](function(_0x348d62){return _0x348d62;});return null;};}function removeEntity(_0x3caa18){return function(_0x3a2e5f){const _0x4f72e0=a494_0x22c8;if(_0x3a2e5f)return _0x3a2e5f['destroy']()[_0x4f72e0('0x4b')](function(){const _0x264e28=_0x4f72e0,_0x1b9708=_0x3a2e5f['get']({'plain':!![]}),_0x56930e=_0x264e28('0xc');return db[_0x264e28('0x6e')][_0x264e28('0x35')]({'where':{'type':_0x56930e,'resourceId':_0x1b9708['id']}})[_0x264e28('0x4b')](function(){return _0x3a2e5f;});})[_0x4f72e0('0x4b')](function(){const _0x53d2dd=_0x4f72e0;_0x3caa18[_0x53d2dd('0x15')](0xcc)[_0x53d2dd('0x2')]();});};}function handleEntityNotFound(_0x17a59a){return function(_0x18b9d4){const _0xaeeca5=a494_0x22c8;return!_0x18b9d4&&_0x17a59a[_0xaeeca5('0x54')](0x194),_0x18b9d4;};}function handleError(_0x16c9a9,_0x369b9e){return _0x369b9e=_0x369b9e||0x1f4,function(_0x4d3201){const _0x3db676=a494_0x22c8;logger[_0x3db676('0x30')](_0x4d3201['stack']),_0x4d3201['name']&&delete _0x4d3201[_0x3db676('0x24')],_0x16c9a9[_0x3db676('0x15')](_0x369b9e)[_0x3db676('0x20')](_0x4d3201);};}exports[_0x3a6c19('0x68')]=function(_0x496db5,_0xb7e32d){const _0x56447a=_0x3a6c19;let _0xeb4f58={};const _0xb3e7c1={},_0x510d3b={'count':0x0,'rows':[]},_0x4b0246=_[_0x56447a('0xf')](db[_0x56447a('0x6')][_0x56447a('0x7')],function(_0x48b3c3){const _0x21593b=_0x56447a;return{'name':_0x48b3c3[_0x21593b('0x1d')],'type':_0x48b3c3['type'][_0x21593b('0x17')]};});_0xb3e7c1['model']=_[_0x56447a('0xf')](_0x4b0246,_0x56447a('0x24')),_0xb3e7c1[_0x56447a('0x55')]=_[_0x56447a('0x3f')](_0x496db5[_0x56447a('0x55')]),_0xb3e7c1['filters']=_['intersection'](_0xb3e7c1['model'],_0xb3e7c1[_0x56447a('0x55')]),_0xeb4f58[_0x56447a('0x5d')]=_[_0x56447a('0x59')](_0xb3e7c1[_0x56447a('0x64')],qs[_0x56447a('0x33')](_0x496db5[_0x56447a('0x55')][_0x56447a('0x33')])),_0xeb4f58[_0x56447a('0x5d')]=_0xeb4f58[_0x56447a('0x5d')][_0x56447a('0x23')]?_0xeb4f58[_0x56447a('0x5d')]:_0xb3e7c1[_0x56447a('0x64')];typeof _0x496db5[_0x56447a('0x55')][_0x56447a('0x5c')]===_0x56447a('0x9')&&(_0xeb4f58[_0x56447a('0x4c')]=qs['limit'](_0x496db5[_0x56447a('0x55')][_0x56447a('0x4c')]),_0xeb4f58[_0x56447a('0x3d')]=qs['offset'](_0x496db5[_0x56447a('0x55')][_0x56447a('0x3d')]));_0xeb4f58[_0x56447a('0x57')]=qs[_0x56447a('0x12')](_0x496db5['query']['sort']),_0xeb4f58[_0x56447a('0x22')]=qs[_0x56447a('0x6d')](_['pick'](_0x496db5[_0x56447a('0x55')],_0xb3e7c1[_0x56447a('0x6d')]),_0x4b0246);_0x496db5[_0x56447a('0x55')][_0x56447a('0x34')]&&(_0xeb4f58[_0x56447a('0x22')]=_[_0x56447a('0x29')](_0xeb4f58['where'],{[Op['or']]:_[_0x56447a('0xf')](_0x4b0246,function(_0xf99109){const _0x15549f=_0x56447a;if(_0xf99109[_0x15549f('0x45')]!==_0x15549f('0x58')){const _0x13c17a={};return _0x13c17a[_0xf99109[_0x15549f('0x24')]]={[Op[_0x15549f('0x36')]]:'%'+_0x496db5[_0x15549f('0x55')][_0x15549f('0x34')]+'%'},_0x13c17a;}})}));_0xeb4f58=_['merge']({},_0xeb4f58,_0x496db5['options']);const _0x240bbb={'where':_0xeb4f58[_0x56447a('0x22')]};return db[_0x56447a('0x6')]['count'](_0x240bbb)['then'](function(_0xd1761d){const _0x11b2cc=_0x56447a;return _0x510d3b[_0x11b2cc('0x2e')]=_0xd1761d,_0x496db5[_0x11b2cc('0x55')]['includeAll']&&(_0xeb4f58[_0x11b2cc('0x49')]=[{'all':!![]}]),db[_0x11b2cc('0x6')]['findAll'](_0xeb4f58);})[_0x56447a('0x4b')](function(_0x3d20ad){const _0x2c752f=_0x56447a;return _0x510d3b[_0x2c752f('0x69')]=_0x3d20ad,_0x510d3b;})['then'](respondWithFilteredResult(_0xb7e32d,_0xeb4f58))[_0x56447a('0x2b')](handleError(_0xb7e32d,null));},exports[_0x3a6c19('0x4')]=function(_0x2ab144,_0x4d9586){const _0x5f22ca=_0x3a6c19;let _0x280001={'raw':!![],'where':{'id':_0x2ab144[_0x5f22ca('0x6c')]['id']}};const _0x598bd7={};return _0x598bd7[_0x5f22ca('0x64')]=_[_0x5f22ca('0x3f')](db['OpenchannelQueue'][_0x5f22ca('0x7')]),_0x598bd7[_0x5f22ca('0x55')]=_[_0x5f22ca('0x3f')](_0x2ab144[_0x5f22ca('0x55')]),_0x598bd7[_0x5f22ca('0x6d')]=_[_0x5f22ca('0x59')](_0x598bd7['model'],_0x598bd7[_0x5f22ca('0x55')]),_0x280001['attributes']=_[_0x5f22ca('0x59')](_0x598bd7[_0x5f22ca('0x64')],qs[_0x5f22ca('0x33')](_0x2ab144[_0x5f22ca('0x55')][_0x5f22ca('0x33')])),_0x280001[_0x5f22ca('0x5d')]=_0x280001[_0x5f22ca('0x5d')]['length']?_0x280001[_0x5f22ca('0x5d')]:_0x598bd7['model'],_0x2ab144[_0x5f22ca('0x55')]['includeAll']&&(_0x280001[_0x5f22ca('0x49')]=[{'all':!![]}]),_0x280001=_[_0x5f22ca('0x29')]({},_0x280001,_0x2ab144[_0x5f22ca('0x19')]),db[_0x5f22ca('0x6')][_0x5f22ca('0x2c')](_0x280001)[_0x5f22ca('0x4b')](handleEntityNotFound(_0x4d9586,null))[_0x5f22ca('0x4b')](respondWithResult(_0x4d9586,null))[_0x5f22ca('0x2b')](handleError(_0x4d9586,null));},exports[_0x3a6c19('0x67')]=function(_0x391407,_0x4d48a9){const _0x3ca2eb=_0x3a6c19;return db[_0x3ca2eb('0x6')][_0x3ca2eb('0x67')](_0x391407[_0x3ca2eb('0x5e')],{})[_0x3ca2eb('0x4b')](function(_0x44637b){const _0x36322e=_0x3ca2eb,_0x22b032=_0x391407[_0x36322e('0x4a')][_0x36322e('0x3e')]({'plain':!![]});if(!_0x22b032)throw new Error(_0x36322e('0x1a'));if(_0x22b032['role']===_0x36322e('0x4a')){const _0x5c359b=_0x44637b[_0x36322e('0x3e')]({'plain':!![]}),_0x82cc22=_0x36322e('0xc');return db[_0x36322e('0x3')]['findOne']({'where':{'name':_0x82cc22,'userProfileId':_0x22b032[_0x36322e('0x37')]},'raw':!![]})[_0x36322e('0x4b')](function(_0x51c094){const _0x276d46=_0x36322e;return _0x51c094&&_0x51c094[_0x276d46('0x39')]===0x0?db[_0x276d46('0x6e')][_0x276d46('0x67')]({'name':_0x5c359b[_0x276d46('0x24')],'resourceId':_0x5c359b['id'],'type':_0x51c094[_0x276d46('0x24')],'sectionId':_0x51c094['id']},{})[_0x276d46('0x4b')](function(){return _0x44637b;}):_0x44637b;})[_0x36322e('0x2b')](function(_0x296cbf){const _0x194fa6=_0x36322e;logger[_0x194fa6('0x30')](_0x194fa6('0x26'),_0x296cbf);throw _0x296cbf;});}return _0x44637b;})['then'](respondWithResult(_0x4d48a9,0xc9))[_0x3ca2eb('0x2b')](handleError(_0x4d48a9,null));},exports[_0x3a6c19('0x42')]=function(_0x16fdb1,_0x136f0d){const _0x558100=_0x3a6c19;return _0x16fdb1[_0x558100('0x5e')]['id']&&delete _0x16fdb1[_0x558100('0x5e')]['id'],db[_0x558100('0x6')][_0x558100('0x2c')]({'where':{'id':_0x16fdb1[_0x558100('0x6c')]['id']}})[_0x558100('0x4b')](handleEntityNotFound(_0x136f0d,null))['then'](saveUpdates(_0x16fdb1[_0x558100('0x5e')],null))[_0x558100('0x4b')](respondWithResult(_0x136f0d,null))[_0x558100('0x2b')](handleError(_0x136f0d,null));},exports[_0x3a6c19('0x35')]=function(_0x3f747b,_0x6828c4){const _0x4f15f1=_0x3a6c19;return db[_0x4f15f1('0x6')]['findOne']({'where':{'id':_0x3f747b['params']['id']}})[_0x4f15f1('0x4b')](handleEntityNotFound(_0x6828c4,null))['then'](removeEntity(_0x6828c4,null))[_0x4f15f1('0x2b')](handleError(_0x6828c4,null));},exports[_0x3a6c19('0x47')]=function(_0x46bc1c,_0x35ebcd){const _0xb8e5ad=_0x3a6c19;return db[_0xb8e5ad('0x6')]['describe']()[_0xb8e5ad('0x4b')](respondWithResult(_0x35ebcd,null))[_0xb8e5ad('0x2b')](handleError(_0x35ebcd,null));},exports['getMembers']=function(_0x4d5eae,_0x40e898){const _0x393c69=_0x3a6c19;let _0x32189a={'raw':!![],'where':{}};const _0x2f06a3={};let _0x25f06e;return db[_0x393c69('0x6')][_0x393c69('0x2c')]({'where':{'id':_0x4d5eae[_0x393c69('0x6c')]['id']}})['then'](handleEntityNotFound(_0x40e898,null))[_0x393c69('0x4b')](function(_0x36dab0){const _0x2993b5=_0x393c69;if(_0x36dab0)return _0x25f06e=_0x36dab0[_0x2993b5('0x3e')]({'plain':!![]}),_0x2f06a3[_0x2993b5('0x64')]=_[_0x2993b5('0x3f')](db['UserOpenchannelQueue']['rawAttributes']),_0x2f06a3['query']=_[_0x2993b5('0x3f')](_0x4d5eae[_0x2993b5('0x55')]),_0x2f06a3[_0x2993b5('0x6d')]=_['intersection'](_0x2f06a3['model'],_0x2f06a3[_0x2993b5('0x55')]),_0x32189a[_0x2993b5('0x5d')]=_[_0x2993b5('0x59')](_0x2f06a3[_0x2993b5('0x64')],qs[_0x2993b5('0x33')](_0x4d5eae[_0x2993b5('0x55')][_0x2993b5('0x33')])),_0x32189a[_0x2993b5('0x5d')]=_0x32189a[_0x2993b5('0x5d')]['length']?_0x32189a['attributes']:_0x2f06a3[_0x2993b5('0x64')],typeof _0x4d5eae[_0x2993b5('0x55')][_0x2993b5('0x5c')]===_0x2993b5('0x9')&&(_0x32189a[_0x2993b5('0x4c')]=qs['limit'](_0x4d5eae[_0x2993b5('0x55')]['limit']),_0x32189a[_0x2993b5('0x3d')]=qs['offset'](_0x4d5eae['query']['offset'])),_0x32189a[_0x2993b5('0x57')]=qs[_0x2993b5('0x12')](_0x4d5eae[_0x2993b5('0x55')][_0x2993b5('0x12')]),_0x32189a['where']=qs[_0x2993b5('0x6d')](_['pick'](_0x4d5eae[_0x2993b5('0x55')],_0x2f06a3[_0x2993b5('0x6d')])),_0x32189a['where'][_0x2993b5('0x43')]=_0x36dab0['id'],_0x4d5eae[_0x2993b5('0x55')][_0x2993b5('0x34')]&&(_0x32189a['where']=_['merge'](_0x32189a[_0x2993b5('0x22')],{[Op['or']]:_['map'](_0x32189a[_0x2993b5('0x5d')],function(_0x255da0){const _0x255aa3=_0x2993b5,_0x17aad5={};return _0x17aad5[_0x255da0]={[Op['like']]:'%'+_0x4d5eae[_0x255aa3('0x55')][_0x255aa3('0x34')]+'%'},_0x17aad5;})})),_0x32189a=_['merge']({},_0x32189a,_0x4d5eae[_0x2993b5('0x19')]),db[_0x2993b5('0x63')][_0x2993b5('0x53')](_0x32189a);})[_0x393c69('0x4b')](function(_0x580574){const _0x1332e0=_0x393c69;if(_0x580574)return db['User'][_0x1332e0('0x14')]({'where':{'id':_[_0x1332e0('0xf')](_0x580574,'UserId'),'role':_0x1332e0('0x40')},'attributes':['id',_0x1332e0('0x24'),'openchannelPause','updatedAt',_0x1332e0('0x4d')]});})[_0x393c69('0x4b')](function(_0x3abf25){const _0x277cea=_0x393c69;return _0x3abf25?{'count':_0x3abf25[_0x277cea('0x2e')],'rows':_[_0x277cea('0xf')](_0x3abf25[_0x277cea('0x69')],function(_0x3c7b45){const _0x2a4fec=_0x277cea;return{'membername':_0x3c7b45[_0x2a4fec('0x24')],'UserId':_0x3c7b45['id'],'queue_name':_0x25f06e[_0x2a4fec('0x24')],'OpenchannelQueueId':_0x25f06e['id'],'interface':util[_0x2a4fec('0x0')]('%s/%s','SIP',_0x3c7b45[_0x2a4fec('0x24')]),'penalty':0x0,'paused':_0x3c7b45[_0x2a4fec('0x10')],'createdAt':_0x3c7b45['createdAt'],'updatedAt':_0x3c7b45[_0x2a4fec('0x6b')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x40e898,_0x32189a))[_0x393c69('0x2b')](handleError(_0x40e898,null));},exports[_0x3a6c19('0x4f')]=function(_0xa80fb8,_0x2660ad){const _0x383fc8=_0x3a6c19;let _0xe05d14={};const _0x5a12a8={};let _0xf67cbd,_0x485db1;return db[_0x383fc8('0x6')][_0x383fc8('0x2c')]({'where':{'id':_0xa80fb8[_0x383fc8('0x6c')]['id']}})['then'](handleEntityNotFound(_0x2660ad,null))['then'](function(_0x2ce244){const _0xb61a80=_0x383fc8;if(_0x2ce244)return _0xf67cbd=_0x2ce244,_0x5a12a8[_0xb61a80('0x64')]=_['keys'](db[_0xb61a80('0x50')][_0xb61a80('0x7')]),_0x5a12a8[_0xb61a80('0x55')]=_[_0xb61a80('0x3f')](_0xa80fb8[_0xb61a80('0x55')]),_0x5a12a8[_0xb61a80('0x6d')]=_[_0xb61a80('0x59')](_0x5a12a8[_0xb61a80('0x64')],_0x5a12a8[_0xb61a80('0x55')]),_0xe05d14[_0xb61a80('0x5d')]=_[_0xb61a80('0x59')](_0x5a12a8[_0xb61a80('0x64')],qs[_0xb61a80('0x33')](_0xa80fb8['query']['fields'])),_0xe05d14[_0xb61a80('0x5d')]=_0xe05d14[_0xb61a80('0x5d')][_0xb61a80('0x23')]?_0xe05d14['attributes']:_0x5a12a8['model'],_0xe05d14['order']=qs['sort'](_0xa80fb8[_0xb61a80('0x55')][_0xb61a80('0x12')]),_0xe05d14['where']=qs[_0xb61a80('0x6d')](_[_0xb61a80('0x27')](_0xa80fb8[_0xb61a80('0x55')],_0x5a12a8[_0xb61a80('0x6d')])),_0xa80fb8[_0xb61a80('0x55')][_0xb61a80('0x34')]&&(_0xe05d14['where']=_[_0xb61a80('0x29')](_0xe05d14['where'],{[Op['or']]:_[_0xb61a80('0xf')](_0xe05d14[_0xb61a80('0x5d')],function(_0x929918){const _0x15a897=_0xb61a80,_0x507671={};return _0x507671[_0x929918]={[Op[_0x15a897('0x36')]]:'%'+_0xa80fb8[_0x15a897('0x55')][_0x15a897('0x34')]+'%'},_0x507671;})})),_0xe05d14=_[_0xb61a80('0x29')]({},_0xe05d14,_0xa80fb8[_0xb61a80('0x19')]),_0xf67cbd['getTeams'](_0xe05d14);})[_0x383fc8('0x4b')](function(_0x160feb){const _0xd48326=_0x383fc8;if(_0x160feb)return _0x485db1=_0x160feb[_0xd48326('0x23')],typeof _0xa80fb8['query'][_0xd48326('0x5c')]===_0xd48326('0x9')&&(_0xe05d14[_0xd48326('0x4c')]=qs[_0xd48326('0x4c')](_0xa80fb8[_0xd48326('0x55')][_0xd48326('0x4c')]),_0xe05d14[_0xd48326('0x3d')]=qs['offset'](_0xa80fb8[_0xd48326('0x55')][_0xd48326('0x3d')])),_0xf67cbd[_0xd48326('0x4f')](_0xe05d14);})['then'](function(_0x2bcdd1){if(_0x2bcdd1)return _0x2bcdd1?{'count':_0x485db1,'rows':_0x2bcdd1}:null;})[_0x383fc8('0x4b')](respondWithResult(_0x2660ad,null))['catch'](handleError(_0x2660ad,null));},exports['addTeams']=function(_0x5997ef,_0x2e5d33){const _0x2be847=_0x3a6c19,_0x34fea2=_0x5997ef[_0x2be847('0x5e')][_0x2be847('0x11')];return db[_0x2be847('0x50')]['findAll']({'where':{'id':_0x34fea2},'attributes':['id'],'include':[{'model':db[_0x2be847('0x52')],'as':_0x2be847('0x21'),'attributes':['id',_0x2be847('0x24'),'online','voicePause','interface'],'raw':!![]}]})[_0x2be847('0x4b')](function(_0x33dd5a){const _0x225281=_0x2be847;if(_0x33dd5a){const _0x6d1bfb=_['flatMap'](_0x33dd5a,function(_0x186b7b){const _0x477075=a494_0x22c8,_0x48bbdd=_0x186b7b[_0x477075('0x3e')]({'plain':!![]});return _0x48bbdd[_0x477075('0x21')];});return db[_0x225281('0x6')][_0x225281('0x2c')]({'where':{'id':_0x5997ef[_0x225281('0x6c')]['id']}})[_0x225281('0x4b')](function(_0x3e5e2b){return db['sequelize']['transaction'](function(_0x236855){const _0x572e09=a494_0x22c8;return _0x3e5e2b[_0x572e09('0x18')](_0x34fea2,{'transaction':_0x236855})[_0x572e09('0x4b')](function(){const _0x3d91db=_0x572e09;return Promise[_0x3d91db('0x46')](_0x6d1bfb,function(_0x1cec6e){const _0x41c605=_0x3d91db;return db[_0x41c605('0x63')]['findOrCreate']({'where':{'UserId':_0x1cec6e['id'],'OpenchannelQueueId':_0x5997ef[_0x41c605('0x6c')]['id']},'transaction':_0x236855});});})['then'](function(){const _0x28ddb4=_0x572e09;_0x6d1bfb[_0x28ddb4('0x31')](function(_0x432bfa){const _0x1f9a8a=_0x28ddb4;socket[_0x1f9a8a('0x62')](_0x1f9a8a('0x5a'),{'UserId':_0x432bfa['id'],'OpenchannelQueueId':_0x3e5e2b['id']});});});});});}})[_0x2be847('0x4b')](respondWithStatusCode(_0x2e5d33,null))[_0x2be847('0x2b')](handleError(_0x2e5d33,null));},exports[_0x3a6c19('0x66')]=function(_0x408c76,_0x522e8c){const _0x54f3f1=_0x3a6c19;return db[_0x54f3f1('0x50')][_0x54f3f1('0x53')]({'where':{'id':_0x408c76[_0x54f3f1('0x55')]['ids']},'attributes':['id'],'include':[{'model':db[_0x54f3f1('0x52')],'as':_0x54f3f1('0x21'),'attributes':['id'],'raw':!![]}]})[_0x54f3f1('0x4b')](handleEntityNotFound(_0x522e8c,null))[_0x54f3f1('0x4b')](function(_0x18fd8b){const _0x21b8dd=_0x54f3f1,_0x418b4e=_[_0x21b8dd('0xf')](_0x18fd8b,'id');let _0x35fa39=[];const _0x3d697b=[],_0x2c570a=squel[_0x21b8dd('0x2d')]();_0x2c570a[_0x21b8dd('0x16')](_0x21b8dd('0x1b'))[_0x21b8dd('0x5f')](_0x21b8dd('0x1'),'tq')[_0x21b8dd('0x44')](_0x21b8dd('0xe'),'ut',_0x21b8dd('0x1e'))['where'](_0x21b8dd('0x25'),_0x408c76['params']['id']);for(let _0x4d9375=0x0;_0x4d9375<_0x18fd8b[_0x21b8dd('0x23')];_0x4d9375+=0x1){const _0x373603=_0x18fd8b[_0x4d9375];for(let _0x2e6d10=0x0;_0x2e6d10<_0x373603[_0x21b8dd('0x21')][_0x21b8dd('0x23')];_0x2e6d10+=0x1){const _0x2fbdbd=_0x373603[_0x21b8dd('0x21')][_0x2e6d10],_0x44e800=_0x2c570a[_0x21b8dd('0x5')]();_0x44e800['where'](_0x21b8dd('0x41'),_0x2fbdbd['id']),_0x3d697b['push'](db[_0x21b8dd('0x1f')][_0x21b8dd('0x55')](_0x44e800[_0x21b8dd('0x2a')](),{'type':QueryTypes[_0x21b8dd('0xd')]})[_0x21b8dd('0x4b')](function(_0x33e8da){const _0x3426c8=_0x21b8dd;if(_0x33e8da[_0x3426c8('0x23')]===0x1)return _0x2fbdbd['id'];else{const _0x6f7424=_[_0x3426c8('0x13')](_[_0x3426c8('0xf')](_0x33e8da,_0x3426c8('0x3a')),function(_0x4e466f){const _0x14466c=_0x3426c8;return _[_0x14466c('0x5b')](_0x418b4e,_0x4e466f);});if(_0x6f7424)return _0x2fbdbd['id'];}}));}}return Promise['all'](_0x3d697b)[_0x21b8dd('0x4b')](function(_0x571b1c){const _0x3d519e=_0x21b8dd;return _0x35fa39=_(_0x35fa39)['union'](_0x571b1c)[_0x3d519e('0x38')]()[_0x3d519e('0x61')](),db[_0x3d519e('0x6')]['findOne']({'where':{'id':_0x408c76[_0x3d519e('0x6c')]['id']}})[_0x3d519e('0x4b')](function(_0x405b7e){const _0x58c440=_0x3d519e;return db[_0x58c440('0x1f')]['transaction'](function(_0x5e9dd6){const _0x36df91=_0x58c440;return _0x405b7e[_0x36df91('0x66')](_0x408c76[_0x36df91('0x55')][_0x36df91('0x11')],{'transaction':_0x5e9dd6})['then'](function(){const _0x3cef7b=_0x36df91;if(!_[_0x3cef7b('0x1c')](_0x35fa39))return _0x405b7e['removeAgents'](_0x35fa39,{'transaction':_0x5e9dd6});})[_0x36df91('0x4b')](function(){const _0x19f8e1=_0x36df91;_0x35fa39[_0x19f8e1('0x31')](function(_0x149472){const _0x52978c=_0x19f8e1;socket[_0x52978c('0x62')](_0x52978c('0x32'),{'UserId':_0x149472,'OpenchannelQueueId':_0x405b7e['id']});});});});});});})[_0x54f3f1('0x4b')](respondWithStatusCode(_0x522e8c,null))['catch'](handleError(_0x522e8c,null));},exports[_0x3a6c19('0xa')]=function(_0x4f39c9,_0x5c298b){const _0x594d97=_0x3a6c19;return db['OpenchannelQueue'][_0x594d97('0x2c')]({'where':{'id':_0x4f39c9[_0x594d97('0x6c')]['id']}})[_0x594d97('0x4b')](function(_0x24e612){const _0x579770=_0x594d97;if(_0x24e612)return _0x24e612['addAgents'](_0x4f39c9[_0x579770('0x5e')][_0x579770('0x11')],{'through':_['omit'](_0x4f39c9[_0x579770('0x5e')],[_0x579770('0x11'),'id'])})['then'](function(_0x5d9e69){const _0x8f0a12=_0x579770;for(let _0x3d9dc5=0x0;_0x3d9dc5<_0x4f39c9[_0x8f0a12('0x5e')][_0x8f0a12('0x11')][_0x8f0a12('0x23')];_0x3d9dc5+=0x1){socket[_0x8f0a12('0x62')](_0x8f0a12('0x5a'),{'UserId':_0x4f39c9[_0x8f0a12('0x5e')][_0x8f0a12('0x11')][_0x3d9dc5],'OpenchannelQueueId':_0x4f39c9[_0x8f0a12('0x6c')]['id']});}return _0x5d9e69;});})[_0x594d97('0x4b')](respondWithResult(_0x5c298b,null))['catch'](handleError(_0x5c298b,null));},exports[_0x3a6c19('0x8')]=function(_0x335002,_0x5f1ee3){const _0x51d9b3=_0x3a6c19;return db['OpenchannelQueue'][_0x51d9b3('0x2c')]({'where':{'id':_0x335002[_0x51d9b3('0x6c')]['id']}})[_0x51d9b3('0x4b')](handleEntityNotFound(_0x5f1ee3,null))[_0x51d9b3('0x4b')](function(_0x401c62){const _0x2000a6=_0x51d9b3;if(_0x401c62)return _0x401c62[_0x2000a6('0x8')](_0x335002[_0x2000a6('0x55')][_0x2000a6('0x11')])[_0x2000a6('0x4b')](function(){const _0x527742=_0x2000a6;if(_[_0x527742('0x28')](_0x335002[_0x527742('0x55')][_0x527742('0x11')]))for(let _0x3ae517=0x0;_0x3ae517<_0x335002['query']['ids']['length'];_0x3ae517+=0x1){socket[_0x527742('0x62')](_0x527742('0x32'),{'UserId':Number(_0x335002[_0x527742('0x55')][_0x527742('0x11')][_0x3ae517]),'OpenchannelQueueId':Number(_0x335002[_0x527742('0x6c')]['id'])});}else socket[_0x527742('0x62')](_0x527742('0x32'),{'UserId':Number(_0x335002[_0x527742('0x55')][_0x527742('0x11')]),'OpenchannelQueueId':Number(_0x335002[_0x527742('0x6c')]['id'])});});})[_0x51d9b3('0x4b')](respondWithStatusCode(_0x5f1ee3,null))[_0x51d9b3('0x2b')](handleError(_0x5f1ee3,null));},exports[_0x3a6c19('0x51')]=function(_0x43aad2,_0x5163a4){const _0x29e756=_0x3a6c19;let _0x509fc9={};const _0x2b3de6={};let _0x15771a,_0x94f19;return db[_0x29e756('0x6')][_0x29e756('0x2c')]({'where':{'id':_0x43aad2[_0x29e756('0x6c')]['id']}})[_0x29e756('0x4b')](handleEntityNotFound(_0x5163a4,null))[_0x29e756('0x4b')](function(_0x316ff9){const _0x47ccf5=_0x29e756;if(_0x316ff9)return _0x15771a=_0x316ff9,_0x2b3de6[_0x47ccf5('0x64')]=_[_0x47ccf5('0x3f')](db[_0x47ccf5('0x52')][_0x47ccf5('0x7')]),_0x2b3de6['query']=_[_0x47ccf5('0x3f')](_0x43aad2[_0x47ccf5('0x55')]),_0x2b3de6[_0x47ccf5('0x6d')]=_['intersection'](_0x2b3de6[_0x47ccf5('0x64')],_0x2b3de6[_0x47ccf5('0x55')]),_0x509fc9['attributes']=_[_0x47ccf5('0x59')](_0x2b3de6[_0x47ccf5('0x64')],qs['fields'](_0x43aad2[_0x47ccf5('0x55')][_0x47ccf5('0x33')])),_0x509fc9[_0x47ccf5('0x5d')]=_0x509fc9[_0x47ccf5('0x5d')][_0x47ccf5('0x23')]?_0x509fc9['attributes']:_0x2b3de6[_0x47ccf5('0x64')],_0x509fc9[_0x47ccf5('0x57')]=qs[_0x47ccf5('0x12')](_0x43aad2[_0x47ccf5('0x55')][_0x47ccf5('0x12')]),_0x509fc9[_0x47ccf5('0x22')]=qs[_0x47ccf5('0x6d')](_[_0x47ccf5('0x27')](_0x43aad2[_0x47ccf5('0x55')],_0x2b3de6[_0x47ccf5('0x6d')])),_0x43aad2[_0x47ccf5('0x55')]['filter']&&(_0x509fc9[_0x47ccf5('0x22')]=_[_0x47ccf5('0x29')](_0x509fc9['where'],{[Op['or']]:_['map'](_0x509fc9[_0x47ccf5('0x5d')],function(_0x359600){const _0x291a00=_0x47ccf5,_0x290b3c={};return _0x290b3c[_0x359600]={[Op[_0x291a00('0x36')]]:'%'+_0x43aad2[_0x291a00('0x55')][_0x291a00('0x34')]+'%'},_0x290b3c;})})),_0x509fc9=_[_0x47ccf5('0x29')]({},_0x509fc9,_0x43aad2[_0x47ccf5('0x19')]),_0x15771a['getAgents'](_0x509fc9);})[_0x29e756('0x4b')](function(_0x2a9fee){const _0x119a76=_0x29e756;if(_0x2a9fee)return _0x94f19=_0x2a9fee['length'],typeof _0x43aad2[_0x119a76('0x55')]['nolimit']===_0x119a76('0x9')&&(_0x509fc9[_0x119a76('0x4c')]=qs['limit'](_0x43aad2[_0x119a76('0x55')][_0x119a76('0x4c')]),_0x509fc9[_0x119a76('0x3d')]=qs[_0x119a76('0x3d')](_0x43aad2[_0x119a76('0x55')][_0x119a76('0x3d')])),_0x15771a[_0x119a76('0x51')](_0x509fc9);})[_0x29e756('0x4b')](function(_0xfc777c){if(_0xfc777c)return _0xfc777c?{'count':_0x94f19,'rows':_0xfc777c}:null;})['then'](respondWithResult(_0x5163a4,null))[_0x29e756('0x2b')](handleError(_0x5163a4,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index 0186385..526cf8c 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a495_0x235b=['remove','exports','OpenchannelQueue','addHook','events','undefined','emit'];(function(_0x5bbb3e,_0x235b18){const _0x3774c5=function(_0x2a9bc6){while(--_0x2a9bc6){_0x5bbb3e['push'](_0x5bbb3e['shift']());}};_0x3774c5(++_0x235b18);}(a495_0x235b,0x115));const a495_0x3774=function(_0x5bbb3e,_0x235b18){_0x5bbb3e=_0x5bbb3e-0x0;let _0x3774c5=a495_0x235b[_0x5bbb3e];return _0x3774c5;};const _0x3dd53b=a495_0x3774;'use strict';const EventEmitter=require(_0x3dd53b('0x0')),OpenchannelQueue=require('../../mysqldb')['db'][_0x3dd53b('0x5')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x3dd53b('0x3')};function emitEvent(_0x2a9bc6){return function(_0xa387ce){const _0x180d25=a495_0x3774;OpenchannelQueueEvents[_0x180d25('0x2')](_0x2a9bc6+':'+_0xa387ce['id'],_0xa387ce),OpenchannelQueueEvents[_0x180d25('0x2')](_0x2a9bc6,_0xa387ce);};}for(const e in events){if(typeof events[e]!==_0x3dd53b('0x1')){const event=events[e];OpenchannelQueue[_0x3dd53b('0x6')](e,emitEvent(event));}}module[_0x3dd53b('0x4')]=OpenchannelQueueEvents; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index 36d9cbf..8e0225c 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a496_0x3b47=['define','openchannel_queues'];(function(_0x5ec171,_0x3b4750){const _0x3f7b35=function(_0x2a2655){while(--_0x2a2655){_0x5ec171['push'](_0x5ec171['shift']());}};_0x3f7b35(++_0x3b4750);}(a496_0x3b47,0x143));const a496_0x3f7b=function(_0x5ec171,_0x3b4750){_0x5ec171=_0x5ec171-0x0;let _0x3f7b35=a496_0x3b47[_0x5ec171];return _0x3f7b35;};'use strict';const attributes=require('./openchannelQueue.attributes');module['exports']=function(_0x2a2655){const _0x4bea2b=a496_0x3f7b,_0x41f9d2=_0x2a2655[_0x4bea2b('0x1')]('OpenchannelQueue',attributes,{'tableName':_0x4bea2b('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41f9d2;}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index 674c3bb..c7f4454 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a497_0x4277=['../../rediscache','OpenchannelQueue','where','limit','findOne','message','findAll','error','options','register','then','GetOpenchannelQueue','debug','./openchannelQueue.socket','info','../../mysqldb','include','stringify','model','ShowOpenchannelQueue','rpc','attributes','raw','map','catch','lodash'];(function(_0x16de89,_0x42775d){const _0x38daae=function(_0x384b81){while(--_0x384b81){_0x16de89['push'](_0x16de89['shift']());}};_0x38daae(++_0x42775d);}(a497_0x4277,0x17f));const a497_0x38da=function(_0x16de89,_0x42775d){_0x16de89=_0x16de89-0x0;let _0x38daae=a497_0x4277[_0x16de89];return _0x38daae;};const _0x2565d3=a497_0x38da;'use strict';const _=require(_0x2565d3('0x6')),db=require(_0x2565d3('0x16'))['db'],logger=require('../../config/logger')(_0x2565d3('0x1')),{getSocket}=require(_0x2565d3('0x7')),socket=getSocket();require(_0x2565d3('0x14'))[_0x2565d3('0x10')](socket),exports[_0x2565d3('0x12')]=function(_0x384b81){const _0x6e876b=this;return new Promise(function(_0x94285d,_0x45507d){const _0x5c561c=a497_0x38da;return db[_0x5c561c('0x8')][_0x5c561c('0xd')]({'raw':_0x384b81['options']?_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x3')]===undefined?!![]:![]:!![],'where':_0x384b81[_0x5c561c('0xf')]?_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x9')]||null:null,'attributes':_0x384b81['options']?_0x384b81['options']['attributes']||null:null,'limit':_0x384b81[_0x5c561c('0xf')]?_0x384b81['options'][_0x5c561c('0xa')]||null:null,'include':_0x384b81[_0x5c561c('0xf')]?_0x384b81['options'][_0x5c561c('0x17')]?_[_0x5c561c('0x4')](_0x384b81[_0x5c561c('0xf')][_0x5c561c('0x17')],function(_0x5738ac){const _0x54f811=_0x5c561c;return{'model':db[_0x5738ac[_0x54f811('0x19')]],'as':_0x5738ac['as'],'attributes':_0x5738ac[_0x54f811('0x2')],'include':_0x5738ac[_0x54f811('0x17')]?_[_0x54f811('0x4')](_0x5738ac[_0x54f811('0x17')],function(_0x5ebf51){const _0x43fdb4=_0x54f811;return{'model':db[_0x5ebf51[_0x43fdb4('0x19')]],'as':_0x5ebf51['as'],'attributes':_0x5ebf51['attributes'],'include':_0x5ebf51[_0x43fdb4('0x17')]?_[_0x43fdb4('0x4')](_0x5ebf51['include'],function(_0x56bd1c){const _0x1b83e3=_0x43fdb4;return{'model':db[_0x56bd1c[_0x1b83e3('0x19')]],'as':_0x56bd1c['as'],'attributes':_0x56bd1c[_0x1b83e3('0x2')]};}):[]};}):[]};}):[]:[]})[_0x5c561c('0x11')](function(_0x443433){const _0x515564=_0x5c561c;logger[_0x515564('0x15')]('GetOpenchannelQueue',_0x384b81),logger[_0x515564('0x13')](_0x515564('0x12'),_0x384b81,JSON[_0x515564('0x18')](_0x443433)),_0x94285d(_0x443433);})['catch'](function(_0x16b95e){const _0x4dce8e=_0x5c561c;logger['error'](_0x4dce8e('0x12'),_0x16b95e[_0x4dce8e('0xc')],_0x384b81),_0x45507d(_0x6e876b[_0x4dce8e('0xe')](0x1f4,_0x16b95e[_0x4dce8e('0xc')]));});});},exports[_0x2565d3('0x0')]=function(_0x2a57da){const _0x3bf4fa=this;return new Promise(function(_0x522e09,_0x3e2456){const _0x421eb5=a497_0x38da;return db[_0x421eb5('0x8')][_0x421eb5('0xb')]({'raw':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x3')]===undefined?!![]:![]:!![],'where':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x9')]||null:null,'attributes':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da['options']['attributes']||null:null,'include':_0x2a57da[_0x421eb5('0xf')]?_0x2a57da[_0x421eb5('0xf')]['include']?_['map'](_0x2a57da[_0x421eb5('0xf')][_0x421eb5('0x17')],function(_0x4800fc){const _0x1cd84b=_0x421eb5;return{'model':db[_0x4800fc[_0x1cd84b('0x19')]],'as':_0x4800fc['as'],'attributes':_0x4800fc['attributes'],'include':_0x4800fc[_0x1cd84b('0x17')]?_[_0x1cd84b('0x4')](_0x4800fc[_0x1cd84b('0x17')],function(_0x3c447c){const _0x4264a4=_0x1cd84b;return{'model':db[_0x3c447c[_0x4264a4('0x19')]],'as':_0x3c447c['as'],'attributes':_0x3c447c['attributes'],'include':_0x3c447c['include']?_[_0x4264a4('0x4')](_0x3c447c[_0x4264a4('0x17')],function(_0x5e9b92){const _0x26457a=_0x4264a4;return{'model':db[_0x5e9b92[_0x26457a('0x19')]],'as':_0x5e9b92['as'],'attributes':_0x5e9b92[_0x26457a('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1ccf64){const _0x268f9d=_0x421eb5;logger['info']('ShowOpenchannelQueue',_0x2a57da),logger[_0x268f9d('0x13')]('ShowOpenchannelQueue',_0x2a57da,JSON[_0x268f9d('0x18')](_0x1ccf64)),_0x522e09(_0x1ccf64);})[_0x421eb5('0x5')](function(_0x190a99){const _0x1a88fb=_0x421eb5;logger[_0x1a88fb('0xe')]('ShowOpenchannelQueue',_0x190a99[_0x1a88fb('0xc')],_0x2a57da),_0x3e2456(_0x3bf4fa[_0x1a88fb('0xe')](0x1f4,_0x190a99[_0x1a88fb('0xc')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index fe0719b..beb4448 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a498_0x1994=['openchannelQueue:','remove'];(function(_0x1e6542,_0x1994ff){const _0x202334=function(_0x59bfb5){while(--_0x59bfb5){_0x1e6542['push'](_0x1e6542['shift']());}};_0x202334(++_0x1994ff);}(a498_0x1994,0x171));const a498_0x2023=function(_0x1e6542,_0x1994ff){_0x1e6542=_0x1e6542-0x0;let _0x202334=a498_0x1994[_0x1e6542];return _0x202334;};const _0x3f2b4e=a498_0x2023;'use strict';const OpenchannelQueueEvents=require('./openchannelQueue.events'),events=['save',_0x3f2b4e('0x0'),'update'];function createListener(_0x59bfb5,_0x54c123){return function(_0x5de1be){_0x54c123['emit'](_0x59bfb5,_0x5de1be);};}exports['register']=function(_0x4ad322){const _0x1b1469=_0x3f2b4e;for(let _0x4006ab=0x0,_0x8699cb=events['length'];_0x4006ab<_0x8699cb;_0x4006ab++){const _0x549d2c=events[_0x4006ab],_0x12f497=createListener(_0x1b1469('0x1')+_0x549d2c,_0x4ad322);OpenchannelQueueEvents['on'](_0x549d2c,_0x12f497);}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index be8ebdb..16a3ae1 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a499_0x5efb=['get','update','describe','/:id','show','put','destroy','isAuthenticated','post','express'];(function(_0x269007,_0x5efbdd){const _0x3833f3=function(_0x1dce2b){while(--_0x1dce2b){_0x269007['push'](_0x269007['shift']());}};_0x3833f3(++_0x5efbdd);}(a499_0x5efb,0x1f2));const a499_0x3833=function(_0x269007,_0x5efbdd){_0x269007=_0x269007-0x0;let _0x3833f3=a499_0x5efb[_0x269007];return _0x3833f3;};const _0xc3d4ab=a499_0x3833;'use strict';const express=require(_0xc3d4ab('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./openchannelQueueReport.controller');router[_0xc3d4ab('0x2')]('/',auth['isAuthenticated'](),controller['index']),router[_0xc3d4ab('0x2')]('/describe',auth['isAuthenticated'](),controller[_0xc3d4ab('0x4')]),router['get'](_0xc3d4ab('0x5'),auth[_0xc3d4ab('0x9')](),controller[_0xc3d4ab('0x6')]),router[_0xc3d4ab('0x0')]('/',auth[_0xc3d4ab('0x9')](),controller['create']),router[_0xc3d4ab('0x7')](_0xc3d4ab('0x5'),auth[_0xc3d4ab('0x9')](),controller[_0xc3d4ab('0x3')]),router['delete'](_0xc3d4ab('0x5'),auth[_0xc3d4ab('0x9')](),controller[_0xc3d4ab('0x8')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index c5cb979..ca07bcd 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a500_0x53ee=['DATE','STRING','sequelize','exports'];(function(_0x183a66,_0x53ee9f){const _0x2710fe=function(_0x13a02e){while(--_0x13a02e){_0x183a66['push'](_0x183a66['shift']());}};_0x2710fe(++_0x53ee9f);}(a500_0x53ee,0xd6));const a500_0x2710=function(_0x183a66,_0x53ee9f){_0x183a66=_0x183a66-0x0;let _0x2710fe=a500_0x53ee[_0x183a66];return _0x2710fe;};const _0x525107=a500_0x2710;'use strict';const Sequelize=require(_0x525107('0x0'));module[_0x525107('0x1')]={'uniqueid':{'type':Sequelize[_0x525107('0x3')],'allowNull':![]},'from':{'type':Sequelize[_0x525107('0x3')]},'joinAt':{'type':Sequelize[_0x525107('0x2')]},'leaveAt':{'type':Sequelize[_0x525107('0x2')]},'acceptAt':{'type':Sequelize[_0x525107('0x2')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize[_0x525107('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js index 0109d8f..3e11657 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a501_0x40c7=['query','show','model','findAll','include','send','sort','findOne','describe','../../mysqldb','body','lodash','status','json','count','../../components/parsers/qs','nolimit','error','attributes','then','merge','map','update','OpenchannelQueueReport','order','undefined','like','destroy','fieldName','key','catch','length','name','filters','includeAll','intersection','limit','rows','VIRTUAL','index','keys','../../config/logger','set','pick','stack','where','Content-Range','filter','options','params','offset','rawAttributes','create','fields'];(function(_0x3e03e3,_0x40c7ce){const _0x1f342d=function(_0x5eff9d){while(--_0x5eff9d){_0x3e03e3['push'](_0x3e03e3['shift']());}};_0x1f342d(++_0x40c7ce);}(a501_0x40c7,0x18e));const a501_0x1f34=function(_0x3e03e3,_0x40c7ce){_0x3e03e3=_0x3e03e3-0x0;let _0x1f342d=a501_0x40c7[_0x3e03e3];return _0x1f342d;};const _0x14cb0b=a501_0x1f34;'use strict';const _=require(_0x14cb0b('0x2d')),qs=require(_0x14cb0b('0x31')),logger=require(_0x14cb0b('0x15'))('api'),db=require(_0x14cb0b('0x2b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5eff9d,_0x1bde02){return _0x1bde02=_0x1bde02||0xc8,function(_0x534320){const _0x2efd9b=a501_0x1f34;if(_0x534320)return _0x5eff9d[_0x2efd9b('0x2e')](_0x1bde02)[_0x2efd9b('0x2f')](_0x534320);};}function respondWithFilteredResult(_0x571b17,_0xe160b4){return function(_0xab3bc6){const _0x562b61=a501_0x1f34;if(_0xab3bc6){const _0x3d5436=_0xab3bc6[_0x562b61('0x30')],_0x533b47=_0xe160b4[_0x562b61('0x1e')];let _0x2f773d=_0xe160b4[_0x562b61('0x1e')]+_0xe160b4[_0x562b61('0x10')],_0x315dce;return _0x2f773d>=_0x3d5436?(_0x2f773d=_0x3d5436,_0x315dce=0xc8):_0x315dce=0xce,_0x571b17[_0x562b61('0x2e')](_0x315dce),_0x571b17[_0x562b61('0x16')](_0x562b61('0x1a'),_0x533b47+'-'+_0x2f773d+'/'+_0x3d5436)[_0x562b61('0x2f')](_0xab3bc6);}return null;};}function saveUpdates(_0x2d5269){return function(_0x567f59){const _0x3f8155=a501_0x1f34;if(_0x567f59)return _0x567f59[_0x3f8155('0x2')](_0x2d5269)[_0x3f8155('0x35')](function(_0x364fef){return _0x364fef;});return null;};}function removeEntity(_0x24f70b){return function(_0x139938){const _0x1081e5=a501_0x1f34;if(_0x139938)return _0x139938[_0x1081e5('0x7')]()['then'](function(){_0x24f70b['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x4bb679){return function(_0x26c632){return!_0x26c632&&_0x4bb679['sendStatus'](0x194),_0x26c632;};}function handleError(_0x5eed0b,_0x1a76b9){return _0x1a76b9=_0x1a76b9||0x1f4,function(_0x1419ac){const _0x27e74f=a501_0x1f34;logger[_0x27e74f('0x33')](_0x1419ac[_0x27e74f('0x18')]),_0x1419ac[_0x27e74f('0xc')]&&delete _0x1419ac[_0x27e74f('0xc')],_0x5eed0b[_0x27e74f('0x2e')](_0x1a76b9)[_0x27e74f('0x27')](_0x1419ac);};}exports[_0x14cb0b('0x13')]=function(_0x475c7e,_0xd00afc){const _0x44f7f9=_0x14cb0b;let _0x282f5f={};const _0x29f573={},_0x26608c={'count':0x0,'rows':[]},_0x5252b4=_['map'](db['OpenchannelQueueReport']['rawAttributes'],function(_0x2574da){const _0x32a458=a501_0x1f34;return{'name':_0x2574da[_0x32a458('0x8')],'type':_0x2574da['type'][_0x32a458('0x9')]};});_0x29f573['model']=_[_0x44f7f9('0x1')](_0x5252b4,_0x44f7f9('0xc')),_0x29f573[_0x44f7f9('0x22')]=_[_0x44f7f9('0x14')](_0x475c7e['query']),_0x29f573['filters']=_[_0x44f7f9('0xf')](_0x29f573[_0x44f7f9('0x24')],_0x29f573[_0x44f7f9('0x22')]),_0x282f5f[_0x44f7f9('0x34')]=_[_0x44f7f9('0xf')](_0x29f573[_0x44f7f9('0x24')],qs[_0x44f7f9('0x21')](_0x475c7e[_0x44f7f9('0x22')][_0x44f7f9('0x21')])),_0x282f5f['attributes']=_0x282f5f[_0x44f7f9('0x34')][_0x44f7f9('0xb')]?_0x282f5f[_0x44f7f9('0x34')]:_0x29f573['model'];typeof _0x475c7e['query'][_0x44f7f9('0x32')]===_0x44f7f9('0x5')&&(_0x282f5f[_0x44f7f9('0x10')]=qs['limit'](_0x475c7e[_0x44f7f9('0x22')]['limit']),_0x282f5f['offset']=qs[_0x44f7f9('0x1e')](_0x475c7e[_0x44f7f9('0x22')][_0x44f7f9('0x1e')]));_0x282f5f[_0x44f7f9('0x4')]=qs[_0x44f7f9('0x28')](_0x475c7e[_0x44f7f9('0x22')][_0x44f7f9('0x28')]),_0x282f5f[_0x44f7f9('0x19')]=qs[_0x44f7f9('0xd')](_[_0x44f7f9('0x17')](_0x475c7e[_0x44f7f9('0x22')],_0x29f573[_0x44f7f9('0xd')]),_0x5252b4);_0x475c7e[_0x44f7f9('0x22')][_0x44f7f9('0x1b')]&&(_0x282f5f[_0x44f7f9('0x19')]=_[_0x44f7f9('0x0')](_0x282f5f[_0x44f7f9('0x19')],{[Op['or']]:_[_0x44f7f9('0x1')](_0x5252b4,function(_0x164e9f){const _0x33baa7=_0x44f7f9;if(_0x164e9f['type']!==_0x33baa7('0x12')){const _0x45b05b={};return _0x45b05b[_0x164e9f[_0x33baa7('0xc')]]={[Op[_0x33baa7('0x6')]]:'%'+_0x475c7e[_0x33baa7('0x22')][_0x33baa7('0x1b')]+'%'},_0x45b05b;}})}));_0x282f5f=_[_0x44f7f9('0x0')]({},_0x282f5f,_0x475c7e[_0x44f7f9('0x1c')]);const _0x3f9cb5={'where':_0x282f5f[_0x44f7f9('0x19')]};return db['OpenchannelQueueReport'][_0x44f7f9('0x30')](_0x3f9cb5)[_0x44f7f9('0x35')](function(_0x485168){const _0x3e9341=_0x44f7f9;return _0x26608c[_0x3e9341('0x30')]=_0x485168,_0x475c7e[_0x3e9341('0x22')][_0x3e9341('0xe')]&&(_0x282f5f[_0x3e9341('0x26')]=[{'all':!![]}]),db['OpenchannelQueueReport'][_0x3e9341('0x25')](_0x282f5f);})[_0x44f7f9('0x35')](function(_0xa7c6a3){const _0x3b771d=_0x44f7f9;return _0x26608c[_0x3b771d('0x11')]=_0xa7c6a3,_0x26608c;})[_0x44f7f9('0x35')](respondWithFilteredResult(_0xd00afc,_0x282f5f))['catch'](handleError(_0xd00afc,null));},exports[_0x14cb0b('0x23')]=function(_0x3bcbae,_0x16abe7){const _0x4ebd10=_0x14cb0b;let _0x4cfffa={'raw':!![],'where':{'id':_0x3bcbae[_0x4ebd10('0x1d')]['id']}};const _0x5786f5={};return _0x5786f5['model']=_[_0x4ebd10('0x14')](db['OpenchannelQueueReport'][_0x4ebd10('0x1f')]),_0x5786f5[_0x4ebd10('0x22')]=_[_0x4ebd10('0x14')](_0x3bcbae['query']),_0x5786f5['filters']=_[_0x4ebd10('0xf')](_0x5786f5[_0x4ebd10('0x24')],_0x5786f5[_0x4ebd10('0x22')]),_0x4cfffa[_0x4ebd10('0x34')]=_[_0x4ebd10('0xf')](_0x5786f5['model'],qs[_0x4ebd10('0x21')](_0x3bcbae[_0x4ebd10('0x22')][_0x4ebd10('0x21')])),_0x4cfffa['attributes']=_0x4cfffa['attributes'][_0x4ebd10('0xb')]?_0x4cfffa['attributes']:_0x5786f5[_0x4ebd10('0x24')],_0x3bcbae[_0x4ebd10('0x22')][_0x4ebd10('0xe')]&&(_0x4cfffa[_0x4ebd10('0x26')]=[{'all':!![]}]),_0x4cfffa=_[_0x4ebd10('0x0')]({},_0x4cfffa,_0x3bcbae[_0x4ebd10('0x1c')]),db[_0x4ebd10('0x3')]['findOne'](_0x4cfffa)[_0x4ebd10('0x35')](handleEntityNotFound(_0x16abe7,null))[_0x4ebd10('0x35')](respondWithResult(_0x16abe7,null))[_0x4ebd10('0xa')](handleError(_0x16abe7,null));},exports['create']=function(_0x49f7e,_0xe1f27c){const _0x1b1820=_0x14cb0b;return db[_0x1b1820('0x3')][_0x1b1820('0x20')](_0x49f7e[_0x1b1820('0x2c')],{})[_0x1b1820('0x35')](respondWithResult(_0xe1f27c,0xc9))[_0x1b1820('0xa')](handleError(_0xe1f27c,null));},exports[_0x14cb0b('0x2')]=function(_0x40c92a,_0x427015){const _0x4bcb01=_0x14cb0b;return _0x40c92a['body']['id']&&delete _0x40c92a[_0x4bcb01('0x2c')]['id'],db['OpenchannelQueueReport'][_0x4bcb01('0x29')]({'where':{'id':_0x40c92a[_0x4bcb01('0x1d')]['id']}})[_0x4bcb01('0x35')](handleEntityNotFound(_0x427015,null))[_0x4bcb01('0x35')](saveUpdates(_0x40c92a[_0x4bcb01('0x2c')],null))[_0x4bcb01('0x35')](respondWithResult(_0x427015,null))[_0x4bcb01('0xa')](handleError(_0x427015,null));},exports[_0x14cb0b('0x7')]=function(_0x1cafcd,_0x5654a9){const _0x4f0a11=_0x14cb0b;return db[_0x4f0a11('0x3')]['findOne']({'where':{'id':_0x1cafcd['params']['id']}})[_0x4f0a11('0x35')](handleEntityNotFound(_0x5654a9,null))[_0x4f0a11('0x35')](removeEntity(_0x5654a9,null))[_0x4f0a11('0xa')](handleError(_0x5654a9,null));},exports['describe']=function(_0x9b0518,_0x523243){const _0x49a364=_0x14cb0b;return db[_0x49a364('0x3')][_0x49a364('0x2a')]()['then'](respondWithResult(_0x523243,null))[_0x49a364('0xa')](handleError(_0x523243,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index fb38829..1d4d9f1 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a502_0xcd4c=['uniqueid','OpenchannelQueueReport','./openchannelQueueReport.attributes'];(function(_0x46518e,_0xcd4c6f){const _0x4cc164=function(_0xd56560){while(--_0xd56560){_0x46518e['push'](_0x46518e['shift']());}};_0x4cc164(++_0xcd4c6f);}(a502_0xcd4c,0x87));const a502_0x4cc1=function(_0x46518e,_0xcd4c6f){_0x46518e=_0x46518e-0x0;let _0x4cc164=a502_0xcd4c[_0x46518e];return _0x4cc164;};const _0xa906d0=a502_0x4cc1;'use strict';const attributes=require(_0xa906d0('0x2'));module['exports']=function(_0xd56560){const _0x11e263=_0xa906d0,_0x4c51b8=_0xd56560['define'](_0x11e263('0x1'),attributes,{'tableName':'report_openchannel_queue','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x11e263('0x0')]}],'timestamps':!![]});return _0x4c51b8;}; \ No newline at end of file +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 diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index f4244ec..f93c4ba 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a503_0x14ee=['catch','update','CreateOpenchannelQueueReport','rpc','message','raw','UpdateOpenchannelQueueReport','create','then','attributes','body','debug','options','../../config/logger','OpenchannelQueueReport','error','where','stringify','../../mysqldb','info'];(function(_0xf96551,_0x14eee5){const _0x4d258c=function(_0x2d41c6){while(--_0x2d41c6){_0xf96551['push'](_0xf96551['shift']());}};_0x4d258c(++_0x14eee5);}(a503_0x14ee,0x1c1));const a503_0x4d25=function(_0xf96551,_0x14eee5){_0xf96551=_0xf96551-0x0;let _0x4d258c=a503_0x14ee[_0xf96551];return _0x4d258c;};const _0x709386=a503_0x4d25;'use strict';const db=require(_0x709386('0x9'))['db'],logger=require(_0x709386('0x4'))(_0x709386('0xe'));exports[_0x709386('0xd')]=function(_0x2d41c6){const _0x31edf8=this;return new Promise(function(_0xacddb0,_0x1628e2){const _0x15d54a=a503_0x4d25;return db[_0x15d54a('0x5')][_0x15d54a('0x12')](_0x2d41c6['body'],{'raw':_0x2d41c6['options']?_0x2d41c6[_0x15d54a('0x3')][_0x15d54a('0x10')]===undefined?!![]:![]:!![]})[_0x15d54a('0x13')](function(_0x2855e5){const _0x348e5b=_0x15d54a;logger['info'](_0x348e5b('0xd'),_0x2d41c6),logger[_0x348e5b('0x2')](_0x348e5b('0xd'),_0x2d41c6,JSON[_0x348e5b('0x8')](_0x2855e5)),_0xacddb0(_0x2855e5);})[_0x15d54a('0xb')](function(_0x5a3026){const _0x1667ce=_0x15d54a;logger[_0x1667ce('0x6')](_0x1667ce('0xd'),_0x5a3026['message'],_0x2d41c6),_0x1628e2(_0x31edf8['error'](0x1f4,_0x5a3026[_0x1667ce('0xf')]));});});},exports[_0x709386('0x11')]=function(_0x1fd3dc){const _0x2d3996=this;return new Promise(function(_0x57477d,_0x10ae40){const _0x413a=a503_0x4d25;return db['OpenchannelQueueReport'][_0x413a('0xc')](_0x1fd3dc[_0x413a('0x1')],{'raw':_0x1fd3dc['options']?_0x1fd3dc['options'][_0x413a('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1fd3dc[_0x413a('0x3')]?_0x1fd3dc[_0x413a('0x3')][_0x413a('0x7')]||null:null,'attributes':_0x1fd3dc['options']?_0x1fd3dc['options'][_0x413a('0x0')]||null:null,'limit':_0x1fd3dc[_0x413a('0x3')]?_0x1fd3dc[_0x413a('0x3')]['limit']||null:null})[_0x413a('0x13')](function(_0x28e268){const _0xc6a2d9=_0x413a;logger[_0xc6a2d9('0xa')](_0xc6a2d9('0x11'),_0x1fd3dc),logger[_0xc6a2d9('0x2')](_0xc6a2d9('0x11'),_0x1fd3dc,JSON[_0xc6a2d9('0x8')](_0x28e268)),_0x57477d(_0x28e268);})[_0x413a('0xb')](function(_0x20ba49){const _0x3651e6=_0x413a;logger[_0x3651e6('0x6')](_0x3651e6('0x11'),_0x20ba49[_0x3651e6('0xf')],_0x1fd3dc),_0x10ae40(_0x2d3996[_0x3651e6('0x6')](0x1f4,_0x20ba49[_0x3651e6('0xf')]));});});}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index 354541e..a96fbb2 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a504_0x2286=['show','Router','destroy','./openchannelTransferReport.controller','describe','../../components/auth/service','delete','get','/:id','/describe','isAuthenticated','update','express','index','create'];(function(_0x143ed5,_0x22864c){const _0x62290d=function(_0x3168b9){while(--_0x3168b9){_0x143ed5['push'](_0x143ed5['shift']());}};_0x62290d(++_0x22864c);}(a504_0x2286,0xf3));const a504_0x6229=function(_0x143ed5,_0x22864c){_0x143ed5=_0x143ed5-0x0;let _0x62290d=a504_0x2286[_0x143ed5];return _0x62290d;};const _0x49a06d=a504_0x6229;'use strict';const express=require(_0x49a06d('0x9')),router=express[_0x49a06d('0xd')](),auth=require(_0x49a06d('0x2')),controller=require(_0x49a06d('0x0'));router['get']('/',auth[_0x49a06d('0x7')](),controller[_0x49a06d('0xa')]),router[_0x49a06d('0x4')](_0x49a06d('0x6'),auth[_0x49a06d('0x7')](),controller[_0x49a06d('0x1')]),router[_0x49a06d('0x4')]('/:id',auth[_0x49a06d('0x7')](),controller[_0x49a06d('0xc')]),router['post']('/',auth[_0x49a06d('0x7')](),controller[_0x49a06d('0xb')]),router['put'](_0x49a06d('0x5'),auth[_0x49a06d('0x7')](),controller[_0x49a06d('0x8')]),router[_0x49a06d('0x3')](_0x49a06d('0x5'),auth['isAuthenticated'](),controller[_0x49a06d('0xe')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index 78e42e8..fa9c7a4 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a505_0x36bf=['sequelize','NOW','exports','ENUM','queue','DATE','account','STRING'];(function(_0x277f11,_0x36bf52){const _0x547b19=function(_0x249772){while(--_0x249772){_0x277f11['push'](_0x277f11['shift']());}};_0x547b19(++_0x36bf52);}(a505_0x36bf,0xdc));const a505_0x547b=function(_0x277f11,_0x36bf52){_0x277f11=_0x277f11-0x0;let _0x547b19=a505_0x36bf[_0x277f11];return _0x547b19;};const _0x24df9f=a505_0x547b;'use strict';const Sequelize=require(_0x24df9f('0x4'));module[_0x24df9f('0x6')]={'uniqueid':{'type':Sequelize[_0x24df9f('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x24df9f('0x7')](_0x24df9f('0x2'),'agent',_0x24df9f('0x0')),'allowNull':![],'defaultValue':_0x24df9f('0x0')},'transferredAt':{'type':Sequelize[_0x24df9f('0x1')],'allowNull':![],'defaultValue':Sequelize[_0x24df9f('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index d8c0e09..30b1c51 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a506_0x24fd=['status','create','type','json','map','rows','sort','lodash','model','sequelize','body','name','stack','../../config/logger','rawAttributes','length','filter','count','OpenchannelTransferReport','query','then','pick','end','keys','describe','where','../../components/parsers/qs','undefined','attributes','VIRTUAL','include','catch','merge','update','options','includeAll','offset','fields','set','filters','order','findAll','limit','intersection','destroy','index','findOne','fieldName','Content-Range','key'];(function(_0x48ebd5,_0x24fda4){const _0x3c1d23=function(_0x1d079e){while(--_0x1d079e){_0x48ebd5['push'](_0x48ebd5['shift']());}};_0x3c1d23(++_0x24fda4);}(a506_0x24fd,0x12a));const a506_0x3c1d=function(_0x48ebd5,_0x24fda4){_0x48ebd5=_0x48ebd5-0x0;let _0x3c1d23=a506_0x24fd[_0x48ebd5];return _0x3c1d23;};const _0x5c3fce=a506_0x3c1d;'use strict';const _=require(_0x5c3fce('0x9')),qs=require(_0x5c3fce('0x1c')),logger=require(_0x5c3fce('0xf'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x5c3fce('0xb'));function respondWithResult(_0x1d079e,_0x3a3f79){return _0x3a3f79=_0x3a3f79||0xc8,function(_0x2642f5){const _0x27638d=a506_0x3c1d;if(_0x2642f5)return _0x1d079e[_0x27638d('0x2')](_0x3a3f79)[_0x27638d('0x5')](_0x2642f5);};}function respondWithFilteredResult(_0x6a9468,_0x382a25){return function(_0x4fc372){const _0x1e7829=a506_0x3c1d;if(_0x4fc372){const _0x2f8f42=_0x4fc372[_0x1e7829('0x13')],_0x2046e8=_0x382a25['offset'];let _0x2c0e59=_0x382a25[_0x1e7829('0x26')]+_0x382a25['limit'],_0x56f8ff;return _0x2c0e59>=_0x2f8f42?(_0x2c0e59=_0x2f8f42,_0x56f8ff=0xc8):_0x56f8ff=0xce,_0x6a9468[_0x1e7829('0x2')](_0x56f8ff),_0x6a9468[_0x1e7829('0x28')](_0x1e7829('0x0'),_0x2046e8+'-'+_0x2c0e59+'/'+_0x2f8f42)[_0x1e7829('0x5')](_0x4fc372);}return null;};}function saveUpdates(_0x4f00c6){return function(_0x3f5bf6){const _0x3e21ea=a506_0x3c1d;if(_0x3f5bf6)return _0x3f5bf6[_0x3e21ea('0x23')](_0x4f00c6)[_0x3e21ea('0x16')](function(_0x4ffa00){return _0x4ffa00;});return null;};}function removeEntity(_0x452868){return function(_0x2d717b){const _0x497513=a506_0x3c1d;if(_0x2d717b)return _0x2d717b[_0x497513('0x2e')]()['then'](function(){const _0x52d4d8=_0x497513;_0x452868['status'](0xcc)[_0x52d4d8('0x18')]();});};}function handleEntityNotFound(_0x372373){return function(_0x215e18){return!_0x215e18&&_0x372373['sendStatus'](0x194),_0x215e18;};}function handleError(_0x12d369,_0x38c1ad){return _0x38c1ad=_0x38c1ad||0x1f4,function(_0x901e37){const _0x507ec6=a506_0x3c1d;logger['error'](_0x901e37[_0x507ec6('0xe')]),_0x901e37[_0x507ec6('0xd')]&&delete _0x901e37[_0x507ec6('0xd')],_0x12d369[_0x507ec6('0x2')](_0x38c1ad)['send'](_0x901e37);};}exports[_0x5c3fce('0x2f')]=function(_0xdab8af,_0x1d1aeb){const _0x20f983=_0x5c3fce;let _0x3a11c1={};const _0xc1472e={},_0x2f20f9={'count':0x0,'rows':[]},_0x483b68=_[_0x20f983('0x6')](db[_0x20f983('0x14')]['rawAttributes'],function(_0x338bd2){const _0x4d91a1=_0x20f983;return{'name':_0x338bd2[_0x4d91a1('0x31')],'type':_0x338bd2[_0x4d91a1('0x4')][_0x4d91a1('0x1')]};});_0xc1472e[_0x20f983('0xa')]=_[_0x20f983('0x6')](_0x483b68,_0x20f983('0xd')),_0xc1472e[_0x20f983('0x15')]=_[_0x20f983('0x19')](_0xdab8af[_0x20f983('0x15')]),_0xc1472e['filters']=_['intersection'](_0xc1472e[_0x20f983('0xa')],_0xc1472e['query']),_0x3a11c1['attributes']=_[_0x20f983('0x2d')](_0xc1472e[_0x20f983('0xa')],qs['fields'](_0xdab8af['query'][_0x20f983('0x27')])),_0x3a11c1[_0x20f983('0x1e')]=_0x3a11c1[_0x20f983('0x1e')][_0x20f983('0x11')]?_0x3a11c1[_0x20f983('0x1e')]:_0xc1472e[_0x20f983('0xa')];typeof _0xdab8af[_0x20f983('0x15')]['nolimit']===_0x20f983('0x1d')&&(_0x3a11c1['limit']=qs[_0x20f983('0x2c')](_0xdab8af[_0x20f983('0x15')][_0x20f983('0x2c')]),_0x3a11c1[_0x20f983('0x26')]=qs[_0x20f983('0x26')](_0xdab8af[_0x20f983('0x15')][_0x20f983('0x26')]));_0x3a11c1[_0x20f983('0x2a')]=qs[_0x20f983('0x8')](_0xdab8af[_0x20f983('0x15')]['sort']),_0x3a11c1[_0x20f983('0x1b')]=qs['filters'](_[_0x20f983('0x17')](_0xdab8af[_0x20f983('0x15')],_0xc1472e['filters']),_0x483b68);_0xdab8af[_0x20f983('0x15')][_0x20f983('0x12')]&&(_0x3a11c1[_0x20f983('0x1b')]=_[_0x20f983('0x22')](_0x3a11c1[_0x20f983('0x1b')],{[Op['or']]:_[_0x20f983('0x6')](_0x483b68,function(_0x4eff7b){const _0x35f520=_0x20f983;if(_0x4eff7b[_0x35f520('0x4')]!==_0x35f520('0x1f')){const _0x19e5b4={};return _0x19e5b4[_0x4eff7b[_0x35f520('0xd')]]={[Op['like']]:'%'+_0xdab8af[_0x35f520('0x15')][_0x35f520('0x12')]+'%'},_0x19e5b4;}})}));_0x3a11c1=_[_0x20f983('0x22')]({},_0x3a11c1,_0xdab8af[_0x20f983('0x24')]);const _0xc06a39={'where':_0x3a11c1[_0x20f983('0x1b')]};return db[_0x20f983('0x14')][_0x20f983('0x13')](_0xc06a39)[_0x20f983('0x16')](function(_0x45fddc){const _0x3e3fa2=_0x20f983;return _0x2f20f9[_0x3e3fa2('0x13')]=_0x45fddc,_0xdab8af[_0x3e3fa2('0x15')][_0x3e3fa2('0x25')]&&(_0x3a11c1[_0x3e3fa2('0x20')]=[{'all':!![]}]),db[_0x3e3fa2('0x14')][_0x3e3fa2('0x2b')](_0x3a11c1);})[_0x20f983('0x16')](function(_0x225310){const _0x22c933=_0x20f983;return _0x2f20f9[_0x22c933('0x7')]=_0x225310,_0x2f20f9;})[_0x20f983('0x16')](respondWithFilteredResult(_0x1d1aeb,_0x3a11c1))[_0x20f983('0x21')](handleError(_0x1d1aeb,null));},exports['show']=function(_0xa07586,_0x3b956a){const _0x4f3757=_0x5c3fce;let _0x1507f2={'raw':!![],'where':{'id':_0xa07586['params']['id']}};const _0x3e6e1e={};return _0x3e6e1e['model']=_[_0x4f3757('0x19')](db[_0x4f3757('0x14')][_0x4f3757('0x10')]),_0x3e6e1e[_0x4f3757('0x15')]=_[_0x4f3757('0x19')](_0xa07586[_0x4f3757('0x15')]),_0x3e6e1e[_0x4f3757('0x29')]=_[_0x4f3757('0x2d')](_0x3e6e1e[_0x4f3757('0xa')],_0x3e6e1e[_0x4f3757('0x15')]),_0x1507f2[_0x4f3757('0x1e')]=_[_0x4f3757('0x2d')](_0x3e6e1e[_0x4f3757('0xa')],qs[_0x4f3757('0x27')](_0xa07586[_0x4f3757('0x15')]['fields'])),_0x1507f2[_0x4f3757('0x1e')]=_0x1507f2[_0x4f3757('0x1e')][_0x4f3757('0x11')]?_0x1507f2[_0x4f3757('0x1e')]:_0x3e6e1e[_0x4f3757('0xa')],_0xa07586[_0x4f3757('0x15')]['includeAll']&&(_0x1507f2[_0x4f3757('0x20')]=[{'all':!![]}]),_0x1507f2=_['merge']({},_0x1507f2,_0xa07586[_0x4f3757('0x24')]),db[_0x4f3757('0x14')]['findOne'](_0x1507f2)[_0x4f3757('0x16')](handleEntityNotFound(_0x3b956a,null))[_0x4f3757('0x16')](respondWithResult(_0x3b956a,null))[_0x4f3757('0x21')](handleError(_0x3b956a,null));},exports[_0x5c3fce('0x3')]=function(_0x4ad06e,_0x417585){const _0x4b6826=_0x5c3fce;return db[_0x4b6826('0x14')][_0x4b6826('0x3')](_0x4ad06e[_0x4b6826('0xc')],{})['then'](respondWithResult(_0x417585,0xc9))[_0x4b6826('0x21')](handleError(_0x417585,null));},exports[_0x5c3fce('0x23')]=function(_0x3e9238,_0x484cc9){const _0x1e2de8=_0x5c3fce;return _0x3e9238[_0x1e2de8('0xc')]['id']&&delete _0x3e9238[_0x1e2de8('0xc')]['id'],db[_0x1e2de8('0x14')][_0x1e2de8('0x30')]({'where':{'id':_0x3e9238['params']['id']}})['then'](handleEntityNotFound(_0x484cc9,null))[_0x1e2de8('0x16')](saveUpdates(_0x3e9238[_0x1e2de8('0xc')],null))[_0x1e2de8('0x16')](respondWithResult(_0x484cc9,null))['catch'](handleError(_0x484cc9,null));},exports['destroy']=function(_0x4fb180,_0x3e7f9b){const _0x2d3bbd=_0x5c3fce;return db[_0x2d3bbd('0x14')][_0x2d3bbd('0x30')]({'where':{'id':_0x4fb180['params']['id']}})[_0x2d3bbd('0x16')](handleEntityNotFound(_0x3e7f9b,null))[_0x2d3bbd('0x16')](removeEntity(_0x3e7f9b,null))[_0x2d3bbd('0x21')](handleError(_0x3e7f9b,null));},exports[_0x5c3fce('0x1a')]=function(_0x157ef7,_0x48fcaf){const _0x28e856=_0x5c3fce;return db[_0x28e856('0x14')][_0x28e856('0x1a')]()[_0x28e856('0x16')](respondWithResult(_0x48fcaf,null))[_0x28e856('0x21')](handleError(_0x48fcaf,null));}; \ No newline at end of file +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 diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index 52f8baa..e812675 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a507_0x2c99=['exports','report_openchannel_transfer','uniqueid','define','OpenchannelTransferReport'];(function(_0x13c735,_0x2c9912){const _0x24b95c=function(_0x4d994b){while(--_0x4d994b){_0x13c735['push'](_0x13c735['shift']());}};_0x24b95c(++_0x2c9912);}(a507_0x2c99,0x1d2));const a507_0x24b9=function(_0x13c735,_0x2c9912){_0x13c735=_0x13c735-0x0;let _0x24b95c=a507_0x2c99[_0x13c735];return _0x24b95c;};const _0x992d1f=a507_0x24b9;'use strict';const attributes=require('./openchannelTransferReport.attributes');module[_0x992d1f('0x4')]=function(_0x4d994b){const _0x43559d=_0x992d1f,_0x5becce=_0x4d994b[_0x43559d('0x2')](_0x43559d('0x3'),attributes,{'tableName':_0x43559d('0x0'),'paranoid':![],'indexes':[{'name':_0x43559d('0x1'),'fields':[_0x43559d('0x1')]}],'timestamps':!![]});return _0x5becce;}; \ No newline at end of file +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 diff --git a/server/api/pause/index.js b/server/api/pause/index.js index 3792b73..5782bb8 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a508_0x5574=['isAuthenticated','exports','create','../../components/auth/service','destroy','Router','update','show','get','express','put','delete','/:id'];(function(_0x2aaa7d,_0x5574c8){const _0x26233f=function(_0x3aeefa){while(--_0x3aeefa){_0x2aaa7d['push'](_0x2aaa7d['shift']());}};_0x26233f(++_0x5574c8);}(a508_0x5574,0x18f));const a508_0x2623=function(_0x2aaa7d,_0x5574c8){_0x2aaa7d=_0x2aaa7d-0x0;let _0x26233f=a508_0x5574[_0x2aaa7d];return _0x26233f;};const _0x71037c=a508_0x2623;'use strict';const express=require(_0x71037c('0x0')),router=express[_0x71037c('0x9')](),auth=require(_0x71037c('0x7')),controller=require('./pause.controller');router[_0x71037c('0xc')]('/',auth[_0x71037c('0x4')](),controller['index']),router['get'](_0x71037c('0x3'),auth[_0x71037c('0x4')](),controller[_0x71037c('0xb')]),router['post']('/',auth[_0x71037c('0x4')](),controller[_0x71037c('0x6')]),router[_0x71037c('0x1')](_0x71037c('0x3'),auth[_0x71037c('0x4')](),controller[_0x71037c('0xa')]),router[_0x71037c('0x2')]('/:id',auth['isAuthenticated'](),controller[_0x71037c('0x8')]),module[_0x71037c('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index 45ca017..90d0eb6 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a509_0x4b55=['STRING','name'];(function(_0x4cc7b0,_0x4b55df){const _0x1f7dfd=function(_0x582163){while(--_0x582163){_0x4cc7b0['push'](_0x4cc7b0['shift']());}};_0x1f7dfd(++_0x4b55df);}(a509_0x4b55,0x1a7));const a509_0x1f7d=function(_0x4cc7b0,_0x4b55df){_0x4cc7b0=_0x4cc7b0-0x0;let _0x1f7dfd=a509_0x4b55[_0x4cc7b0];return _0x1f7dfd;};const _0x510e9f=a509_0x1f7d;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x510e9f('0x1')],'unique':_0x510e9f('0x0'),'allowNull':![]},'description':{'type':Sequelize[_0x510e9f('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.controller.js b/server/api/pause/pause.controller.js index dc95b92..72141a9 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a510_0x1ed3=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','nolimit','undefined','json','create','fields','end','map','sort','length','rows','options','params','../../config/logger','user','get','Pauses','Content-Range','filter','order','set','include','type','rawAttributes','limit','attributes','filters','model','count','catch','status','keys','then','show','Pause','findOne','destroy','error','findAll','index','UserProfileSection','update','sequelize','fieldName','where','includeAll','body','lodash','merge','../../mysqldb','name','userProfileId','intersection','offset','pick','sendStatus','UserProfileResource','query','like'];(function(_0x257028,_0x1ed346){const _0x10affb=function(_0x59b6c7){while(--_0x59b6c7){_0x257028['push'](_0x257028['shift']());}};_0x10affb(++_0x1ed346);}(a510_0x1ed3,0xd4));const a510_0x10af=function(_0x257028,_0x1ed346){_0x257028=_0x257028-0x0;let _0x10affb=a510_0x1ed3[_0x257028];return _0x10affb;};const _0x2bd00a=a510_0x10af;'use strict';const _=require(_0x2bd00a('0xc')),qs=require('../../components/parsers/qs'),logger=require(_0x2bd00a('0x25'))('api'),db=require(_0x2bd00a('0xe'))['db'],{Op}=require(_0x2bd00a('0x7'));function respondWithResult(_0x59b6c7,_0x51815f){return _0x51815f=_0x51815f||0xc8,function(_0x55db17){if(_0x55db17)return _0x59b6c7['status'](_0x51815f)['json'](_0x55db17);};}function respondWithFilteredResult(_0x3b41dd,_0x23b6f7){return function(_0x985c38){const _0x3e77e8=a510_0x10af;if(_0x985c38){const _0x1058f6=_0x985c38['count'],_0x2af6f0=_0x23b6f7[_0x3e77e8('0x12')];let _0x49d31f=_0x23b6f7[_0x3e77e8('0x12')]+_0x23b6f7[_0x3e77e8('0x30')],_0x5c57da;return _0x49d31f>=_0x1058f6?(_0x49d31f=_0x1058f6,_0x5c57da=0xc8):_0x5c57da=0xce,_0x3b41dd[_0x3e77e8('0x36')](_0x5c57da),_0x3b41dd[_0x3e77e8('0x2c')](_0x3e77e8('0x29'),_0x2af6f0+'-'+_0x49d31f+'/'+_0x1058f6)[_0x3e77e8('0x1b')](_0x985c38);}return null;};}function saveUpdates(_0x69cc73){return function(_0xa6704f){const _0x2c69ce=a510_0x10af;if(_0xa6704f)return _0xa6704f['update'](_0x69cc73)[_0x2c69ce('0x38')](function(_0x1424e3){return _0x1424e3;});return null;};}function removeEntity(_0x10c3b8){return function(_0x129d35){const _0xd79ec=a510_0x10af;if(_0x129d35)return _0x129d35[_0xd79ec('0x1')]()[_0xd79ec('0x38')](function(){const _0x1f3410=_0xd79ec,_0x27992d=_0x129d35[_0x1f3410('0x27')]({'plain':!![]}),_0xb8c5f9=_0x1f3410('0x28');return db[_0x1f3410('0x15')][_0x1f3410('0x1')]({'where':{'type':_0xb8c5f9,'resourceId':_0x27992d['id']}})[_0x1f3410('0x38')](function(){return _0x129d35;});})['then'](function(){const _0x35fee3=_0xd79ec;_0x10c3b8[_0x35fee3('0x36')](0xcc)[_0x35fee3('0x1e')]();});};}function handleEntityNotFound(_0x18c5ee){return function(_0x10faa0){const _0x5390cc=a510_0x10af;return!_0x10faa0&&_0x18c5ee[_0x5390cc('0x14')](0x194),_0x10faa0;};}function handleError(_0x3a7044,_0x266c1a){return _0x266c1a=_0x266c1a||0x1f4,function(_0x3a19e1){const _0x16346d=a510_0x10af;logger[_0x16346d('0x2')](_0x3a19e1['stack']),_0x3a19e1['name']&&delete _0x3a19e1[_0x16346d('0xf')],_0x3a7044[_0x16346d('0x36')](_0x266c1a)['send'](_0x3a19e1);};}exports[_0x2bd00a('0x4')]=function(_0x579566,_0x4a44d0){const _0x3dd140=_0x2bd00a;let _0x1949a3={};const _0x1530ae={},_0x2bae13={'count':0x0,'rows':[]},_0x10f570=_[_0x3dd140('0x1f')](db[_0x3dd140('0x3a')][_0x3dd140('0x2f')],function(_0x38472d){const _0x382474=_0x3dd140;return{'name':_0x38472d[_0x382474('0x8')],'type':_0x38472d[_0x382474('0x2e')]['key']};});_0x1530ae[_0x3dd140('0x33')]=_['map'](_0x10f570,_0x3dd140('0xf')),_0x1530ae[_0x3dd140('0x16')]=_['keys'](_0x579566[_0x3dd140('0x16')]),_0x1530ae[_0x3dd140('0x32')]=_[_0x3dd140('0x11')](_0x1530ae['model'],_0x1530ae[_0x3dd140('0x16')]),_0x1949a3['attributes']=_[_0x3dd140('0x11')](_0x1530ae[_0x3dd140('0x33')],qs['fields'](_0x579566[_0x3dd140('0x16')][_0x3dd140('0x1d')])),_0x1949a3[_0x3dd140('0x31')]=_0x1949a3[_0x3dd140('0x31')][_0x3dd140('0x21')]?_0x1949a3[_0x3dd140('0x31')]:_0x1530ae['model'];typeof _0x579566[_0x3dd140('0x16')][_0x3dd140('0x19')]===_0x3dd140('0x1a')&&(_0x1949a3[_0x3dd140('0x30')]=qs[_0x3dd140('0x30')](_0x579566['query'][_0x3dd140('0x30')]),_0x1949a3[_0x3dd140('0x12')]=qs[_0x3dd140('0x12')](_0x579566[_0x3dd140('0x16')][_0x3dd140('0x12')]));_0x1949a3[_0x3dd140('0x2b')]=qs[_0x3dd140('0x20')](_0x579566[_0x3dd140('0x16')][_0x3dd140('0x20')]),_0x1949a3[_0x3dd140('0x9')]=qs[_0x3dd140('0x32')](_[_0x3dd140('0x13')](_0x579566[_0x3dd140('0x16')],_0x1530ae[_0x3dd140('0x32')]),_0x10f570);_0x579566['query'][_0x3dd140('0x2a')]&&(_0x1949a3[_0x3dd140('0x9')]=_[_0x3dd140('0xd')](_0x1949a3[_0x3dd140('0x9')],{[Op['or']]:_[_0x3dd140('0x1f')](_0x10f570,function(_0x2fac45){const _0x5f53f5=_0x3dd140;if(_0x2fac45[_0x5f53f5('0x2e')]!=='VIRTUAL'){const _0x2040a8={};return _0x2040a8[_0x2fac45[_0x5f53f5('0xf')]]={[Op[_0x5f53f5('0x17')]]:'%'+_0x579566[_0x5f53f5('0x16')][_0x5f53f5('0x2a')]+'%'},_0x2040a8;}})}));_0x1949a3=_[_0x3dd140('0xd')]({},_0x1949a3,_0x579566['options']);const _0x1b4a88={'where':_0x1949a3[_0x3dd140('0x9')]};return db['Pause'][_0x3dd140('0x34')](_0x1b4a88)[_0x3dd140('0x38')](function(_0x5ef711){const _0xa4dfe5=_0x3dd140;return _0x2bae13['count']=_0x5ef711,_0x579566[_0xa4dfe5('0x16')][_0xa4dfe5('0xa')]&&(_0x1949a3[_0xa4dfe5('0x2d')]=[{'all':!![]}]),db[_0xa4dfe5('0x3a')][_0xa4dfe5('0x3')](_0x1949a3);})['then'](function(_0xc4efad){const _0x4c175a=_0x3dd140;return _0x2bae13[_0x4c175a('0x22')]=_0xc4efad,_0x2bae13;})[_0x3dd140('0x38')](respondWithFilteredResult(_0x4a44d0,_0x1949a3))['catch'](handleError(_0x4a44d0,null));},exports[_0x2bd00a('0x39')]=function(_0x3e6944,_0x2acacf){const _0x3695fb=_0x2bd00a;let _0x316c87={'raw':!![],'where':{'id':_0x3e6944[_0x3695fb('0x24')]['id']}};const _0x2f14cc={};return _0x2f14cc[_0x3695fb('0x33')]=_[_0x3695fb('0x37')](db['Pause']['rawAttributes']),_0x2f14cc[_0x3695fb('0x16')]=_[_0x3695fb('0x37')](_0x3e6944[_0x3695fb('0x16')]),_0x2f14cc[_0x3695fb('0x32')]=_['intersection'](_0x2f14cc[_0x3695fb('0x33')],_0x2f14cc[_0x3695fb('0x16')]),_0x316c87[_0x3695fb('0x31')]=_[_0x3695fb('0x11')](_0x2f14cc[_0x3695fb('0x33')],qs['fields'](_0x3e6944['query'][_0x3695fb('0x1d')])),_0x316c87[_0x3695fb('0x31')]=_0x316c87[_0x3695fb('0x31')]['length']?_0x316c87[_0x3695fb('0x31')]:_0x2f14cc[_0x3695fb('0x33')],_0x3e6944['query'][_0x3695fb('0xa')]&&(_0x316c87['include']=[{'all':!![]}]),_0x316c87=_[_0x3695fb('0xd')]({},_0x316c87,_0x3e6944[_0x3695fb('0x23')]),db[_0x3695fb('0x3a')][_0x3695fb('0x0')](_0x316c87)[_0x3695fb('0x38')](handleEntityNotFound(_0x2acacf,null))[_0x3695fb('0x38')](respondWithResult(_0x2acacf,null))[_0x3695fb('0x35')](handleError(_0x2acacf,null));},exports[_0x2bd00a('0x1c')]=function(_0x2fb41a,_0x47cb4f){const _0x59695c=_0x2bd00a;return db[_0x59695c('0x3a')][_0x59695c('0x1c')](_0x2fb41a['body'],{})[_0x59695c('0x38')](function(_0x32e017){const _0x368912=_0x59695c,_0x3b0aca=_0x2fb41a[_0x368912('0x26')]['get']({'plain':!![]});if(!_0x3b0aca)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3b0aca['role']==='user'){const _0x17808f=_0x32e017[_0x368912('0x27')]({'plain':!![]}),_0x1f6cbd=_0x368912('0x28');return db[_0x368912('0x5')][_0x368912('0x0')]({'where':{'name':_0x1f6cbd,'userProfileId':_0x3b0aca[_0x368912('0x10')]},'raw':!![]})[_0x368912('0x38')](function(_0x3bc6b6){const _0x491e40=_0x368912;return _0x3bc6b6&&_0x3bc6b6['autoAssociation']===0x0?db[_0x491e40('0x15')][_0x491e40('0x1c')]({'name':_0x17808f[_0x491e40('0xf')],'resourceId':_0x17808f['id'],'type':_0x3bc6b6[_0x491e40('0xf')],'sectionId':_0x3bc6b6['id']},{})[_0x491e40('0x38')](function(){return _0x32e017;}):_0x32e017;})[_0x368912('0x35')](function(_0x106484){const _0x35c42c=_0x368912;logger[_0x35c42c('0x2')](_0x35c42c('0x18'),_0x106484);throw _0x106484;});}return _0x32e017;})[_0x59695c('0x38')](respondWithResult(_0x47cb4f,0xc9))[_0x59695c('0x35')](handleError(_0x47cb4f,null));},exports[_0x2bd00a('0x6')]=function(_0x54660c,_0x147632){const _0x3f9cd5=_0x2bd00a;return _0x54660c[_0x3f9cd5('0xb')]['id']&&delete _0x54660c['body']['id'],db['Pause'][_0x3f9cd5('0x0')]({'where':{'id':_0x54660c[_0x3f9cd5('0x24')]['id']}})['then'](handleEntityNotFound(_0x147632,null))['then'](saveUpdates(_0x54660c[_0x3f9cd5('0xb')],null))[_0x3f9cd5('0x38')](respondWithResult(_0x147632,null))['catch'](handleError(_0x147632,null));},exports[_0x2bd00a('0x1')]=function(_0x392782,_0x552474){const _0x5d7653=_0x2bd00a;return db[_0x5d7653('0x3a')][_0x5d7653('0x0')]({'where':{'id':_0x392782['params']['id']}})['then'](handleEntityNotFound(_0x552474,null))[_0x5d7653('0x38')](removeEntity(_0x552474,null))[_0x5d7653('0x35')](handleError(_0x552474,null));}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index a6d0b3e..64f66ef 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a511_0x4d6d=['tools_pauses','define','exports','./pause.attributes'];(function(_0x1bf70b,_0x4d6d84){const _0xc39f1f=function(_0x526da6){while(--_0x526da6){_0x1bf70b['push'](_0x1bf70b['shift']());}};_0xc39f1f(++_0x4d6d84);}(a511_0x4d6d,0xbc));const a511_0xc39f=function(_0x1bf70b,_0x4d6d84){_0x1bf70b=_0x1bf70b-0x0;let _0xc39f1f=a511_0x4d6d[_0x1bf70b];return _0xc39f1f;};const _0x390f33=a511_0xc39f;'use strict';const attributes=require(_0x390f33('0x3'));module[_0x390f33('0x2')]=function(_0x526da6){const _0x413057=_0x390f33,_0x523a9b=_0x526da6[_0x413057('0x1')]('Pause',attributes,{'tableName':_0x413057('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x523a9b;}; \ No newline at end of file +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 diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index d4029c2..51dd9a8 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a512_0x5514=['error','raw','map','then','../../mysqldb','info','attributes','rpc','../../config/logger','debug','model','include','message','ShowPause','options','findOne'];(function(_0x47ab08,_0x5514e1){const _0x16c990=function(_0x531d64){while(--_0x531d64){_0x47ab08['push'](_0x47ab08['shift']());}};_0x16c990(++_0x5514e1);}(a512_0x5514,0x13c));const a512_0x16c9=function(_0x47ab08,_0x5514e1){_0x47ab08=_0x47ab08-0x0;let _0x16c990=a512_0x5514[_0x47ab08];return _0x16c990;};const _0xc04457=a512_0x16c9;'use strict';const db=require(_0xc04457('0x8'))['db'],logger=require(_0xc04457('0xc'))(_0xc04457('0xb')),_=require('lodash');exports[_0xc04457('0x1')]=function(_0x531d64){const _0x5537ef=this;return new Promise(function(_0x200349,_0x2a3e42){const _0x5ebada=a512_0x16c9;return db['Pause'][_0x5ebada('0x3')]({'raw':_0x531d64['options']?_0x531d64[_0x5ebada('0x2')][_0x5ebada('0x5')]===undefined?!![]:![]:!![],'where':_0x531d64['options']?_0x531d64[_0x5ebada('0x2')]['where']||null:null,'attributes':_0x531d64[_0x5ebada('0x2')]?_0x531d64['options'][_0x5ebada('0xa')]||null:null,'include':_0x531d64[_0x5ebada('0x2')]?_0x531d64[_0x5ebada('0x2')]['include']?_[_0x5ebada('0x6')](_0x531d64['options'][_0x5ebada('0xf')],function(_0x2e5aaf){const _0x1e7c20=_0x5ebada;return{'model':db[_0x2e5aaf[_0x1e7c20('0xe')]],'as':_0x2e5aaf['as'],'attributes':_0x2e5aaf[_0x1e7c20('0xa')],'include':_0x2e5aaf[_0x1e7c20('0xf')]?_[_0x1e7c20('0x6')](_0x2e5aaf['include'],function(_0x378046){const _0x34a181=_0x1e7c20;return{'model':db[_0x378046[_0x34a181('0xe')]],'as':_0x378046['as'],'attributes':_0x378046[_0x34a181('0xa')],'include':_0x378046[_0x34a181('0xf')]?_[_0x34a181('0x6')](_0x378046[_0x34a181('0xf')],function(_0x278d12){const _0x4a22aa=_0x34a181;return{'model':db[_0x278d12[_0x4a22aa('0xe')]],'as':_0x278d12['as'],'attributes':_0x278d12[_0x4a22aa('0xa')]};}):[]};}):[]};}):[]:[]})[_0x5ebada('0x7')](function(_0xda95ed){const _0x618045=_0x5ebada;logger[_0x618045('0x9')](_0x618045('0x1'),_0x531d64),logger[_0x618045('0xd')](_0x618045('0x1'),_0x531d64,JSON['stringify'](_0xda95ed)),_0x200349(_0xda95ed);})['catch'](function(_0xd11813){const _0x497e4d=_0x5ebada;logger[_0x497e4d('0x4')](_0x497e4d('0x1'),_0xd11813[_0x497e4d('0x0')],_0x531d64),_0x2a3e42(_0x5537ef[_0x497e4d('0x4')](0x1f4,_0xd11813[_0x497e4d('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index e57ca98..c53793c 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a513_0x395f=['root','/:id/download','util','./plugin.controller','exports','index','multer','post','single','files/plugins','diskStorage','join','put','path','Router','express','%s-%s%s','/:id','now','file','../../components/auth/service','extname','originalname','isAuthenticated','download','get','format','delete','webhookPost','/webhook'];(function(_0x486bf7,_0x395f34){const _0x3bb70d=function(_0x416b61){while(--_0x416b61){_0x486bf7['push'](_0x486bf7['shift']());}};_0x3bb70d(++_0x395f34);}(a513_0x395f,0xf2));const a513_0x3bb7=function(_0x486bf7,_0x395f34){_0x486bf7=_0x486bf7-0x0;let _0x3bb70d=a513_0x395f[_0x486bf7];return _0x3bb70d;};const _0xd1353=a513_0x3bb7;'use strict';const multer=require(_0xd1353('0x4')),util=require(_0xd1353('0x0')),path=require(_0xd1353('0xb')),express=require(_0xd1353('0xd')),router=express[_0xd1353('0xc')](),auth=require(_0xd1353('0x12')),config=require('../../config/environment'),controller=require(_0xd1353('0x1'));router[_0xd1353('0x17')]('/',auth[_0xd1353('0x15')](),controller[_0xd1353('0x3')]),router[_0xd1353('0x17')](_0xd1353('0x1b'),controller['webhookGet']),router['get'](_0xd1353('0xf'),auth[_0xd1353('0x15')](),controller['show']),router[_0xd1353('0x17')](_0xd1353('0x1d'),auth[_0xd1353('0x15')](),controller[_0xd1353('0x16')]);const upload=multer({'storage':multer[_0xd1353('0x8')]({'destination':function(_0x416b61,_0x894ebf,_0x24d78f){const _0x4aca83=_0xd1353;_0x24d78f(null,path[_0x4aca83('0x9')](config[_0x4aca83('0x1c')],_0x4aca83('0x7')));},'filename':function(_0x597e5a,_0xe83d5,_0x33b4e6){const _0x3529f2=_0xd1353;_0xe83d5['originalname']=_0xe83d5['originalname']['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x33b4e6(null,util[_0x3529f2('0x18')](_0x3529f2('0xe'),path['basename'](_0xe83d5[_0x3529f2('0x14')],path['extname'](_0xe83d5[_0x3529f2('0x14')])),Date[_0x3529f2('0x10')](),path[_0x3529f2('0x13')](_0xe83d5['originalname'])));}})});router[_0xd1353('0x5')]('/',upload[_0xd1353('0x6')](_0xd1353('0x11')),controller['upload']),router[_0xd1353('0x5')](_0xd1353('0x1b'),controller[_0xd1353('0x1a')]),router[_0xd1353('0xa')]('/:id',auth[_0xd1353('0x15')](),controller['update']),router[_0xd1353('0x19')](_0xd1353('0xf'),auth[_0xd1353('0x15')](),controller[_0xd1353('0x19')]),module[_0xd1353('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index 5489ad0..79e52e6 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a514_0x2084=['Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','ENUM','always','sequelize','agentOnly','html','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','STRING','BOOLEAN','script','never','adminOnly','exports'];(function(_0x19e7bd,_0x20841d){const _0x700003=function(_0xa522fc){while(--_0xa522fc){_0x19e7bd['push'](_0x19e7bd['shift']());}};_0x700003(++_0x20841d);}(a514_0x2084,0x116));const a514_0x7000=function(_0x19e7bd,_0x20841d){_0x19e7bd=_0x19e7bd-0x0;let _0x700003=a514_0x2084[_0x19e7bd];return _0x700003;};const _0x3c5fb9=a514_0x7000;'use strict';const Sequelize=require(_0x3c5fb9('0x6'));module[_0x3c5fb9('0x1')]={'name':{'type':Sequelize[_0x3c5fb9('0xa')]},'type':{'type':Sequelize['ENUM'](_0x3c5fb9('0x8'),_0x3c5fb9('0xc'))},'description':{'type':Sequelize['TEXT']},'version':{'type':Sequelize['TEXT']},'path':{'type':Sequelize[_0x3c5fb9('0xa')],'comment':_0x3c5fb9('0x9')},'active':{'type':Sequelize[_0x3c5fb9('0xb')],'defaultValue':0x0,'comment':_0x3c5fb9('0x3')},'sidebar':{'type':Sequelize[_0x3c5fb9('0x4')](_0x3c5fb9('0x0'),_0x3c5fb9('0x7'),_0x3c5fb9('0x5'),_0x3c5fb9('0xd')),'defaultValue':_0x3c5fb9('0x5'),'comment':_0x3c5fb9('0x2')},'icon':{'type':Sequelize[_0x3c5fb9('0xa')]},'adminUrl':{'type':Sequelize[_0x3c5fb9('0xa')]},'agentUrl':{'type':Sequelize[_0x3c5fb9('0xa')]},'scriptName':{'type':Sequelize[_0x3c5fb9('0xa')]},'scriptPath':{'type':Sequelize[_0x3c5fb9('0xa')]}}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.controller.js b/server/api/plugin/plugin.controller.js index d94e87d..70c1285 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a515_0x1c40=['join','includeAll','UserProfileResource','icon','parameters','../../config/environment','pick','Invalid\x20manifest:\x20no\x20view\x20specified','Invalid\x20manifest:\x20type\x20missing','get','json','extract-zip','role','util','description','Invalid\x20manifest:\x20version\x20not\x20specified','offset','createWriteStream','content-length','isFile','hostname','Plugin\x20upload\x20filepath:\x20%s','length','request-promise-native','lstatSync','statusCode','extname','parse','code','end','filename','then','headers','scriptName','include','where','%s%s','html','endsWith','catch','Plugin\x20manifest\x20missing','node_modules/**/*','Invalid\x20manifest:\x20parameters\x20missing','ENOENT','VIRTUAL','Plugins','filters','fields','body','test','api','map','finalize','content-type','autoAssociation','userProfileId','admin','root','findAll','keys','sort','set','plugins','%s.zip','script','warning','UserProfileSection','\x27PORT\x27\x20parameter\x20not\x20specified','Warning:\x20agent\x20view\x20not\x20specified','../../config/logger','sequelize','encoding','http://localhost:','download','attributes','\x27PATH\x27\x20parameter\x20not\x20specified','server/files/plugins','0777','icon-apps','count','name','Content-Range','sendStatus','Error','params','key','attachments/**/*','sidebar','Error\x20while\x20downloading\x20the\x20plugin','send','scriptPath','undefined','create','some','limit','readdirSync','Error\x20while\x20generating\x20the\x20zip\x20archive','Unable\x20to\x20retrieve\x20the\x20current\x20user','upload','type','version','error','webhookGet','archiver','./plugin.socket','query','agent','intersection','rows','show','file','format','Extracted\x20folder\x20removed','delete','**/*','user','info','findOne','files/plugins','dirname','status','options','rimraf','lodash','model','index','unlinkSync','Sequelize','Plugin','Plugin\x20not\x20found','resolve','merge','port','../../rediscache','basename','Invalid\x20plugin\x20structure','zip','Plugin\x20upload\x20destination:\x20%s','Temporary\x20file\x20removed','Warning:\x20admin\x20view\x20not\x20specified','views','Invalid\x20manifest:\x20views\x20missing','path','method','pipe','manifest.json'];(function(_0x18b5f9,_0x1c405e){const _0x41e992=function(_0x5cfc66){while(--_0x5cfc66){_0x18b5f9['push'](_0x18b5f9['shift']());}};_0x41e992(++_0x1c405e);}(a515_0x1c40,0x1a5));const a515_0x41e9=function(_0x18b5f9,_0x1c405e){_0x18b5f9=_0x18b5f9-0x0;let _0x41e992=a515_0x1c40[_0x18b5f9];return _0x41e992;};const _0x43f922=a515_0x41e9;'use strict';const rp=require(_0x43f922('0x28')),util=require(_0x43f922('0x1e')),path=require(_0x43f922('0xd')),fs=require('fs'),_=require(_0x43f922('0x8c')),extract=require(_0x43f922('0x1c')),rimraf=require(_0x43f922('0x8b')),archiver=require(_0x43f922('0x78')),{getSocket}=require(_0x43f922('0x4')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x43f922('0x56'))(_0x43f922('0x43')),config=require(_0x43f922('0x16')),db=require('../../mysqldb')['db'],{Op}=require(_0x43f922('0x57'));require(_0x43f922('0x79'))['register'](socket);function respondWithStatusCode(_0x5cfc66,_0x3b6c01){return _0x3b6c01=_0x3b6c01||0xcc,function(_0x595b6d){const _0x554ae6=a515_0x41e9;if(_0x595b6d)return _0x5cfc66[_0x554ae6('0x63')](_0x3b6c01);return _0x5cfc66['status'](_0x3b6c01)[_0x554ae6('0x2e')]();};}function respondWithResult(_0x36f8a8,_0x57bb8c){return _0x57bb8c=_0x57bb8c||0xc8,function(_0x18fabd){const _0x5137eb=a515_0x41e9;if(_0x18fabd)return _0x36f8a8[_0x5137eb('0x89')](_0x57bb8c)[_0x5137eb('0x1b')](_0x18fabd);};}function respondWithFilteredResult(_0x221bb2,_0x347f32){return function(_0x3c45ed){const _0x3b53a1=a515_0x41e9;if(_0x3c45ed){const _0x163ff2=_0x3c45ed[_0x3b53a1('0x60')],_0x1f5c1b=_0x347f32['offset'];let _0x598c25=_0x347f32[_0x3b53a1('0x21')]+_0x347f32[_0x3b53a1('0x6f')],_0x1549c1;return _0x598c25>=_0x163ff2?(_0x598c25=_0x163ff2,_0x1549c1=0xc8):_0x1549c1=0xce,_0x221bb2[_0x3b53a1('0x89')](_0x1549c1),_0x221bb2[_0x3b53a1('0x4e')](_0x3b53a1('0x62'),_0x1f5c1b+'-'+_0x598c25+'/'+_0x163ff2)[_0x3b53a1('0x1b')](_0x3c45ed);}return null;};}function saveUpdates(_0x21451b){return function(_0x88a4c0){const _0x53fc83=a515_0x41e9;if(_0x88a4c0)return _0x88a4c0['update'](_0x21451b)[_0x53fc83('0x30')](function(_0x43c2a8){return _0x43c2a8;});return null;};}function handleEntityNotFound(_0x2ee021){return function(_0x15c1b6){const _0x412ad3=a515_0x41e9;return!_0x15c1b6&&_0x2ee021[_0x412ad3('0x63')](0x194),_0x15c1b6;};}function handleError(_0x58c455,_0x4e96b7){return _0x4e96b7=_0x4e96b7||0x1f4,function(_0x56079b){const _0x1ce658=a515_0x41e9;logger[_0x1ce658('0x76')](_0x56079b['stack']),_0x56079b['name']&&delete _0x56079b[_0x1ce658('0x61')],_0x58c455[_0x1ce658('0x89')](_0x4e96b7)[_0x1ce658('0x6a')](_0x56079b);};}exports[_0x43f922('0x8e')]=function(_0x19d3d1,_0x47d184){const _0x10831a=_0x43f922;let _0x107c9c={};const _0x92b96e={},_0x43b344={'count':0x0,'rows':[]},_0x23c19d=_[_0x10831a('0x44')](db[_0x10831a('0x91')]['rawAttributes'],function(_0x208e68){const _0x5d8745=_0x10831a;return{'name':_0x208e68['fieldName'],'type':_0x208e68[_0x5d8745('0x74')][_0x5d8745('0x66')]};});_0x92b96e['model']=_[_0x10831a('0x44')](_0x23c19d,_0x10831a('0x61')),_0x92b96e[_0x10831a('0x7a')]=_[_0x10831a('0x4c')](_0x19d3d1['query']),_0x92b96e[_0x10831a('0x3f')]=_[_0x10831a('0x7c')](_0x92b96e[_0x10831a('0x8d')],_0x92b96e[_0x10831a('0x7a')]),_0x107c9c[_0x10831a('0x5b')]=_[_0x10831a('0x7c')](_0x92b96e['model'],qs[_0x10831a('0x40')](_0x19d3d1[_0x10831a('0x7a')]['fields'])),_0x107c9c[_0x10831a('0x5b')]=_0x107c9c[_0x10831a('0x5b')][_0x10831a('0x27')]?_0x107c9c[_0x10831a('0x5b')]:_0x92b96e[_0x10831a('0x8d')];typeof _0x19d3d1[_0x10831a('0x7a')]['nolimit']==='undefined'&&(_0x107c9c['limit']=qs['limit'](_0x19d3d1[_0x10831a('0x7a')]['limit']),_0x107c9c[_0x10831a('0x21')]=qs[_0x10831a('0x21')](_0x19d3d1['query'][_0x10831a('0x21')]));_0x107c9c['order']=qs[_0x10831a('0x4d')](_0x19d3d1[_0x10831a('0x7a')][_0x10831a('0x4d')]),_0x107c9c[_0x10831a('0x34')]=qs[_0x10831a('0x3f')](_[_0x10831a('0x17')](_0x19d3d1[_0x10831a('0x7a')],_0x92b96e['filters']),_0x23c19d);_0x19d3d1[_0x10831a('0x7a')]['filter']&&(_0x107c9c[_0x10831a('0x34')]=_[_0x10831a('0x2')](_0x107c9c[_0x10831a('0x34')],{[Op['or']]:_[_0x10831a('0x44')](_0x23c19d,function(_0x2890ee){const _0x1da6e1=_0x10831a;if(_0x2890ee[_0x1da6e1('0x74')]!==_0x1da6e1('0x3d')){const _0x3ce2aa={};return _0x3ce2aa[_0x2890ee[_0x1da6e1('0x61')]]={[Op['like']]:'%'+_0x19d3d1[_0x1da6e1('0x7a')]['filter']+'%'},_0x3ce2aa;}})}));_0x107c9c=_[_0x10831a('0x2')]({},_0x107c9c,_0x19d3d1[_0x10831a('0x8a')]);const _0x5114d0={'where':_0x107c9c['where']};return db['Plugin'][_0x10831a('0x60')](_0x5114d0)['then'](function(_0xbd0e59){const _0x467f57=_0x10831a;return _0x43b344[_0x467f57('0x60')]=_0xbd0e59,_0x19d3d1[_0x467f57('0x7a')][_0x467f57('0x12')]&&(_0x107c9c[_0x467f57('0x33')]=[{'all':!![]}]),db[_0x467f57('0x91')][_0x467f57('0x4b')](_0x107c9c);})[_0x10831a('0x30')](function(_0x239116){const _0x12a884=_0x10831a;return _0x43b344[_0x12a884('0x7d')]=_0x239116,_0x43b344;})[_0x10831a('0x30')](respondWithFilteredResult(_0x47d184,_0x107c9c))[_0x10831a('0x38')](handleError(_0x47d184,null));},exports[_0x43f922('0x7e')]=function(_0x996906,_0x3fb294){const _0x15ae24=_0x43f922;let _0x3529ed={'raw':!![],'where':{'id':_0x996906[_0x15ae24('0x65')]['id']}};const _0x548c7c={};return _0x548c7c[_0x15ae24('0x8d')]=_['keys'](db[_0x15ae24('0x91')]['rawAttributes']),_0x548c7c[_0x15ae24('0x7a')]=_['keys'](_0x996906['query']),_0x548c7c[_0x15ae24('0x3f')]=_[_0x15ae24('0x7c')](_0x548c7c[_0x15ae24('0x8d')],_0x548c7c[_0x15ae24('0x7a')]),_0x3529ed[_0x15ae24('0x5b')]=_['intersection'](_0x548c7c[_0x15ae24('0x8d')],qs[_0x15ae24('0x40')](_0x996906['query']['fields'])),_0x3529ed['attributes']=_0x3529ed['attributes'][_0x15ae24('0x27')]?_0x3529ed[_0x15ae24('0x5b')]:_0x548c7c[_0x15ae24('0x8d')],_0x996906[_0x15ae24('0x7a')]['includeAll']&&(_0x3529ed['include']=[{'all':!![]}]),_0x3529ed=_[_0x15ae24('0x2')]({},_0x3529ed,_0x996906[_0x15ae24('0x8a')]),db[_0x15ae24('0x91')][_0x15ae24('0x86')](_0x3529ed)[_0x15ae24('0x30')](handleEntityNotFound(_0x3fb294))[_0x15ae24('0x30')](respondWithResult(_0x3fb294,null))[_0x15ae24('0x38')](handleError(_0x3fb294,null));},exports[_0x43f922('0x5a')]=function(_0x11b257,_0x23311e){const _0x54c749=_0x43f922;return db[_0x54c749('0x91')][_0x54c749('0x86')]({'where':{'id':_0x11b257['params']['id']},'attributes':['name',_0x54c749('0xd')],'raw':!![]})['then'](handleEntityNotFound(_0x23311e))[_0x54c749('0x30')](function(_0x1c4e52){const _0x25db06=_0x54c749;if(_0x1c4e52){const _0x43596e=path[_0x25db06('0x11')](config[_0x25db06('0x4a')],_0x25db06('0x5d'),util['format'](_0x25db06('0x50'),path[_0x25db06('0x5')](_0x1c4e52['path']))),_0x334235=fs[_0x25db06('0x22')](_0x43596e),_0x52c37e=archiver(_0x25db06('0x7'),{'zlib':{'level':0x9}});_0x52c37e['on'](_0x25db06('0x52'),function(_0x209396){const _0x3258ef=_0x25db06;if(_0x209396[_0x3258ef('0x2d')]===_0x3258ef('0x3c'))logger[_0x3258ef('0x76')](_0x209396);else throw new db[(_0x3258ef('0x90'))][(_0x3258ef('0x64'))](_0x3258ef('0x71'));}),_0x52c37e['on'](_0x25db06('0x76'),function(){const _0x1ae244=_0x25db06;throw new db[(_0x1ae244('0x90'))][(_0x1ae244('0x64'))](_0x1ae244('0x71'));}),_0x52c37e[_0x25db06('0xf')](_0x334235),_0x52c37e['glob'](_0x25db06('0x83'),{'cwd':path[_0x25db06('0x11')](config[_0x25db06('0x4a')],'server/files/plugins',path[_0x25db06('0x88')](_0x1c4e52[_0x25db06('0xd')])),'ignore':[path[_0x25db06('0x11')](path[_0x25db06('0x5')](_0x1c4e52[_0x25db06('0xd')]),_0x25db06('0x3a')),path['join'](path['basename'](_0x1c4e52[_0x25db06('0xd')]),_0x25db06('0x67'))],'nodir':!![]})[_0x25db06('0x45')](),_0x334235['on']('close',function(){const _0x1fb7ae=_0x25db06;if(!fs['existsSync'](_0x43596e))throw new db['Sequelize'][(_0x1fb7ae('0x64'))](_0x1fb7ae('0x0'));return _0x23311e['download'](_0x43596e,util[_0x1fb7ae('0x80')]('%s.zip',path[_0x1fb7ae('0x5')](_0x1c4e52['path'])),function(_0x41d5dc){const _0x49cf13=_0x1fb7ae;if(_0x41d5dc)throw new db[(_0x49cf13('0x90'))][(_0x49cf13('0x64'))](_0x49cf13('0x69'));fs[_0x49cf13('0x8f')](_0x43596e),logger[_0x49cf13('0x85')]('Download\x20completed'),logger[_0x49cf13('0x85')](_0x49cf13('0x9'));});});}return null;})[_0x54c749('0x38')](handleError(_0x23311e,null));},exports[_0x43f922('0x73')]=function(_0x2f8dfb,_0xe5eda6,_0xad8c09){const _0x5fc18d=_0x43f922,_0x244b6c=path[_0x5fc18d('0x5')](_0x2f8dfb[_0x5fc18d('0x7f')]['filename'],path[_0x5fc18d('0x2b')](_0x2f8dfb[_0x5fc18d('0x7f')][_0x5fc18d('0x2f')])),_0x4b2213=path['join'](config[_0x5fc18d('0x4a')],_0x5fc18d('0x5d'),_0x2f8dfb['file'][_0x5fc18d('0x2f')]),_0x43fee3=path['join'](config[_0x5fc18d('0x4a')],_0x5fc18d('0x87'),_0x244b6c);logger[_0x5fc18d('0x85')](_0x5fc18d('0x26'),_0x4b2213),logger[_0x5fc18d('0x85')](_0x5fc18d('0x8'),_0x43fee3);try{fs['chmodSync'](_0x4b2213,parseInt(_0x5fc18d('0x5e'),0x8)),extract(_0x4b2213,{'dir':_0x43fee3},function(_0x1f272b){const _0x30086b=_0x5fc18d;_0x1f272b&&(logger[_0x30086b('0x76')](_0x1f272b),handleError(_0x1f272b,!![]));const _0x20fca7=fs[_0x30086b('0x70')](_0x43fee3);if(_0x20fca7['length']>0x1)return removeReferences(_0x4b2213,_0x43fee3),logger[_0x30086b('0x76')](_0x30086b('0x6')),_0xad8c09(new Error(_0x30086b('0x6')));const _0x371b58=fs[_0x30086b('0x29')](path['join'](_0x43fee3,_0x20fca7[0x0]));if(_0x371b58[_0x30086b('0x24')]())return removeReferences(_0x4b2213,_0x43fee3),logger['error']('Invalid\x20plugin\x20structure'),_0xad8c09(new Error(_0x30086b('0x6')));if(_0x371b58['isDirectory']()){const _0x32122a=fs[_0x30086b('0x70')](path[_0x30086b('0x11')](_0x43fee3,_0x20fca7[0x0]));if(_0x32122a[_0x30086b('0x27')]===0x0)return removeReferences(_0x4b2213,_0x43fee3),logger[_0x30086b('0x76')]('Invalid\x20plugin\x20structure'),_0xad8c09(new Error(_0x30086b('0x6')));const _0x1da991=_0x32122a[_0x30086b('0x6e')](function(_0x1a87e5){const _0x94cf7d=_0x30086b;return _0x1a87e5===_0x94cf7d('0x10');});if(!_0x1da991)return _0xad8c09(new Error(_0x30086b('0x39')));const _0x5a96d0=fs['readFileSync'](path[_0x30086b('0x11')](_0x43fee3,_0x20fca7[0x0],'manifest.json')),_0x28aa3b=JSON[_0x30086b('0x2c')](_0x5a96d0);if('undefined'==typeof _0x28aa3b[_0x30086b('0x61')])return _0xad8c09(new Error('Invalid\x20manifest:\x20name\x20missing'));if(_0x30086b('0x6c')==typeof _0x28aa3b[_0x30086b('0x74')])return _0xad8c09(new Error(_0x30086b('0x19')));if(_0x30086b('0x6c')==typeof _0x28aa3b[_0x30086b('0x75')])return _0xad8c09(new Error(_0x30086b('0x20')));if('undefined'==typeof _0x28aa3b[_0x30086b('0x15')])return _0xad8c09(new Error(_0x30086b('0x3b')));if(_0x28aa3b[_0x30086b('0x74')]===_0x30086b('0x36')){if(_0x30086b('0x6c')==typeof _0x28aa3b['parameters'][_0x30086b('0xb')])return _0xad8c09(new Error(_0x30086b('0xc')));if(_0x30086b('0x6c')==typeof _0x28aa3b[_0x30086b('0x15')]['views'][_0x30086b('0x49')]&&_0x30086b('0x6c')==typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')][_0x30086b('0x7b')])return _0xad8c09(new Error(_0x30086b('0x18')));}else{if(_0x28aa3b[_0x30086b('0x74')]===_0x30086b('0x51')){if(_0x30086b('0x6c')==typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0x32')])return _0xad8c09(new Error('Invalid\x20manifest:\x20script\x20name\x20missing'));if('undefined'==typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0x6b')])return _0xad8c09(new Error('Invalid\x20manifest:\x20script\x20path\x20missing'));}else return _0xad8c09(new Error('Invalid\x20manifest:\x20invalid\x20type'));}const _0x1901e0=_0x28aa3b[_0x30086b('0x61')],_0x347010=_0x28aa3b[_0x30086b('0x1f')],_0x52f76d=_0x28aa3b[_0x30086b('0x74')],_0x3debda=_0x28aa3b[_0x30086b('0x68')]?_0x28aa3b[_0x30086b('0x68')]:'always',_0x10565e=_0x28aa3b[_0x30086b('0x14')]?_0x28aa3b[_0x30086b('0x14')]:_0x30086b('0x5f');let _0x13c7cf='',_0x1bfdd4='',_0x350267='',_0x333670='';const _0x2b292d=_0x28aa3b[_0x30086b('0x75')];if(_0x52f76d==='html'){if(_0x30086b('0x6c')!=typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')][_0x30086b('0x49')]){const _0x5722d2=_0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')][_0x30086b('0x49')];!/^(f|ht)tps?:\/\//i[_0x30086b('0x42')](_0x5722d2)?_0x13c7cf=path[_0x30086b('0x11')](_0x30086b('0x4f'),_0x244b6c,_0x20fca7[0x0],_0x5722d2):_0x13c7cf=_0x5722d2;}else logger[_0x30086b('0x85')](_0x30086b('0xa'));if(_0x30086b('0x6c')!=typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')]['agent']){const _0x337c1e=_0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')][_0x30086b('0x7b')];!/^(f|ht)tps?:\/\//i[_0x30086b('0x42')](_0x337c1e)?_0x1bfdd4=path['join'](_0x30086b('0x4f'),_0x244b6c,_0x20fca7[0x0],_0x337c1e):_0x1bfdd4=_0x337c1e;}else logger[_0x30086b('0x85')](_0x30086b('0x55'));}else{if(_0x52f76d===_0x30086b('0x51')){_0x350267=_0x28aa3b[_0x30086b('0x15')][_0x30086b('0x32')],_0x333670=_0x28aa3b[_0x30086b('0x15')][_0x30086b('0x6b')];if(_0x30086b('0x6c')!=typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')]){if(_0x30086b('0x6c')!=typeof _0x28aa3b[_0x30086b('0x15')]['views'][_0x30086b('0x49')]){const _0xbe86ee=_0x28aa3b['parameters']['views'][_0x30086b('0x49')];!/^(f|ht)tps?:\/\//i[_0x30086b('0x42')](_0xbe86ee)?_0x13c7cf=path[_0x30086b('0x11')](_0x30086b('0x4f'),_0x244b6c,_0x20fca7[0x0],_0xbe86ee):_0x13c7cf=_0xbe86ee;}if(_0x30086b('0x6c')!=typeof _0x28aa3b[_0x30086b('0x15')][_0x30086b('0xb')][_0x30086b('0x7b')]){const _0x59811d=_0x28aa3b['parameters'][_0x30086b('0xb')][_0x30086b('0x7b')];!/^(f|ht)tps?:\/\//i[_0x30086b('0x42')](_0x59811d)?_0x1bfdd4=path[_0x30086b('0x11')](_0x30086b('0x4f'),_0x244b6c,_0x20fca7[0x0],_0x59811d):_0x1bfdd4=_0x59811d;}}}}const _0x538d41={'name':_0x1901e0,'description':_0x347010,'path':path[_0x30086b('0x11')](_0x244b6c,_0x20fca7[0x0]),'type':_0x52f76d,'sidebar':_0x3debda,'icon':_0x10565e,'adminUrl':_0x13c7cf,'agentUrl':_0x1bfdd4,'scriptName':_0x350267,'scriptPath':_0x333670,'version':_0x2b292d};return removeReferences(_0x4b2213,null),db[_0x30086b('0x91')][_0x30086b('0x6d')](_0x538d41)['then'](function(_0x2eba67){const _0x3039ef=_0x30086b,_0x577b06={'role':_0x2f8dfb['body']['role'],'userProfileId':_0x2f8dfb[_0x3039ef('0x41')][_0x3039ef('0x48')]};if(!_0x577b06)throw new Error(_0x3039ef('0x72'));if(_0x577b06[_0x3039ef('0x1d')]===_0x3039ef('0x84')){const _0x5e5335=_0x2eba67[_0x3039ef('0x1a')]({'plain':!![]});return db[_0x3039ef('0x53')][_0x3039ef('0x86')]({'where':{'name':_0x3039ef('0x3e'),'userProfileId':_0x577b06[_0x3039ef('0x48')]},'raw':!![]})[_0x3039ef('0x30')](function(_0x627867){const _0x44ce45=_0x3039ef;return _0x627867&&_0x627867[_0x44ce45('0x47')]===0x0?db[_0x44ce45('0x13')]['create']({'name':_0x5e5335['name'],'resourceId':_0x5e5335['id'],'type':_0x627867[_0x44ce45('0x61')],'sectionId':_0x627867['id']},{})[_0x44ce45('0x30')](function(){return _0x2eba67;}):_0x2eba67;})[_0x3039ef('0x38')](function(_0x50a7f1){const _0x54011c=_0x3039ef;logger[_0x54011c('0x76')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x50a7f1);throw _0x50a7f1;});}return _0x2eba67;})[_0x30086b('0x30')](respondWithResult(_0xe5eda6,null))[_0x30086b('0x38')](handleError(_0xe5eda6,null));}});}catch(_0x531b07){_0xe5eda6[_0x5fc18d('0x89')](0x1f4)[_0x5fc18d('0x6a')](_0x531b07);}};function removeReferences(_0x4fe855,_0xc215e3){const _0x1ae2e0=_0x43f922;try{_0x4fe855&&(fs[_0x1ae2e0('0x8f')](_0x4fe855),logger[_0x1ae2e0('0x85')]('Zip\x20archive\x20removed')),_0xc215e3&&(rimraf(_0xc215e3,function(){}),logger[_0x1ae2e0('0x85')](_0x1ae2e0('0x81')));}catch(_0x2a34e9){logger[_0x1ae2e0('0x76')](_0x2a34e9);}}exports['update']=function(_0xb844a1,_0xe21923){const _0x6db3ab=_0x43f922;return db[_0x6db3ab('0x91')]['findOne']({'where':{'id':_0xb844a1[_0x6db3ab('0x65')]['id']}})[_0x6db3ab('0x30')](handleEntityNotFound(_0xe21923))[_0x6db3ab('0x30')](saveUpdates(_0xb844a1[_0x6db3ab('0x41')]))[_0x6db3ab('0x30')](respondWithResult(_0xe21923,null))['catch'](handleError(_0xe21923,null));},exports[_0x43f922('0x82')]=function(_0x1e8d1a,_0x8c75f4){const _0x5deba5=_0x43f922;return db[_0x5deba5('0x91')][_0x5deba5('0x86')]({'where':{'id':_0x1e8d1a[_0x5deba5('0x65')]['id']}})[_0x5deba5('0x30')](function(_0x28ac1f){if(_0x28ac1f)return _0x28ac1f['destroy']();})['then'](function(_0x466639){const _0x28f891=_0x5deba5;return rimraf(path['join'](config[_0x28f891('0x4a')],_0x28f891('0x5d'),path[_0x28f891('0x88')](_0x466639['path'])),function(){}),_0x466639;})['then'](handleEntityNotFound(_0x8c75f4))[_0x5deba5('0x30')](respondWithStatusCode(_0x8c75f4,null))[_0x5deba5('0x38')](handleError(_0x8c75f4,null));},exports[_0x43f922('0x77')]=function(_0x35bcc9,_0x1f60c9){const _0x5f1448=_0x43f922;return Promise[_0x5f1448('0x1')]()[_0x5f1448('0x30')](function(){const _0x370578=_0x5f1448;if(!_0x35bcc9[_0x370578('0x7a')][_0x370578('0xd')])throw new Error(_0x370578('0x5c'));if(!_0x35bcc9['query'][_0x370578('0x3')])throw new Error(_0x370578('0x54'));const _0x251cd4=_0x35bcc9[_0x370578('0x7a')][_0x370578('0x25')]?_0x35bcc9['query']['hostname']+':'+_0x35bcc9[_0x370578('0x7a')][_0x370578('0x3')]:_0x370578('0x59')+_0x35bcc9[_0x370578('0x7a')][_0x370578('0x3')],_0x4d3e79=_0x35bcc9[_0x370578('0x7a')]['json']?_0x35bcc9[_0x370578('0x7a')][_0x370578('0x1b')]:!![],_0x4b49db=_0x35bcc9['query'][_0x370578('0x58')]?_0x35bcc9[_0x370578('0x7a')][_0x370578('0x58')]:null,_0x15069d={'method':_0x35bcc9['method'],'uri':util[_0x370578('0x80')](_0x370578('0x35'),_0x251cd4,_0x35bcc9[_0x370578('0x7a')][_0x370578('0xd')]),'json':_0x4d3e79,'resolveWithFullResponse':!![],'encoding':_0x4b49db,'qs':_0x35bcc9[_0x370578('0x7a')]};return _0x35bcc9[_0x370578('0x31')]&&(_0x15069d[_0x370578('0x31')]=_0x35bcc9[_0x370578('0x31')],_0x15069d[_0x370578('0x31')][_0x370578('0x23')]&&delete _0x15069d[_0x370578('0x31')]['content-length']),_0x15069d['headers'][_0x370578('0x46')]&&delete _0x15069d[_0x370578('0x31')]['content-type'],rp(_0x15069d);})['then'](function(_0x2ee7e2){const _0x40e7b8=_0x5f1448;return _0x2ee7e2?(_0x1f60c9['set'](_0x2ee7e2[_0x40e7b8('0x31')]),logger['info'](_0x2ee7e2[_0x40e7b8('0x41')]),_[_0x40e7b8('0x37')](_0x35bcc9[_0x40e7b8('0x7a')][_0x40e7b8('0xd')],_0x40e7b8('0x5a'))&&_0x2ee7e2[_0x40e7b8('0x2a')]==0x1f4?_0x1f60c9[_0x40e7b8('0x63')](_0x2ee7e2[_0x40e7b8('0x2a')]):_0x1f60c9[_0x40e7b8('0x89')](_0x2ee7e2['statusCode'])[_0x40e7b8('0x6a')](_0x2ee7e2['body'])):_0x1f60c9[_0x40e7b8('0x63')](0xc8);})['catch'](handleError(_0x1f60c9,null));},exports['webhookPost']=function(_0x393267,_0x4a7792){const _0x20bfb6=_0x43f922;return Promise[_0x20bfb6('0x1')]()['then'](function(){const _0x24a572=_0x20bfb6;if(!_0x393267['query']['path'])throw new Error(_0x24a572('0x5c'));if(!_0x393267[_0x24a572('0x7a')][_0x24a572('0x3')])throw new Error(_0x24a572('0x54'));const _0x243aa5=_0x393267[_0x24a572('0x7a')]['hostname']?_0x393267['query'][_0x24a572('0x25')]+':'+_0x393267['query'][_0x24a572('0x3')]:_0x24a572('0x59')+_0x393267[_0x24a572('0x7a')][_0x24a572('0x3')],_0x275999=_0x393267[_0x24a572('0x7a')][_0x24a572('0x1b')]?_0x393267[_0x24a572('0x7a')][_0x24a572('0x1b')]:!![],_0x32dbfa=_0x393267[_0x24a572('0x7a')]['encoding']?_0x393267[_0x24a572('0x7a')][_0x24a572('0x58')]:null,_0x210244={'method':_0x393267[_0x24a572('0xe')],'uri':util[_0x24a572('0x80')]('%s%s',_0x243aa5,_0x393267['query'][_0x24a572('0xd')]),'json':_0x275999,'resolveWithFullResponse':!![],'encoding':_0x32dbfa,'body':_0x393267[_0x24a572('0x41')]};return _0x393267[_0x24a572('0x31')]&&(_0x210244[_0x24a572('0x31')]=_0x393267[_0x24a572('0x31')],_0x210244[_0x24a572('0x31')][_0x24a572('0x23')]&&delete _0x210244['headers'][_0x24a572('0x23')]),_0x210244['headers'][_0x24a572('0x46')]&&delete _0x210244['headers'][_0x24a572('0x46')],rp(_0x210244);})['then'](function(_0x160703){const _0x452482=_0x20bfb6;return _0x160703?(_0x4a7792['set'](_0x160703[_0x452482('0x31')]),logger[_0x452482('0x85')](_0x160703['body']),_0x4a7792[_0x452482('0x89')](_0x160703[_0x452482('0x2a')])[_0x452482('0x6a')](_0x160703[_0x452482('0x41')])):_0x4a7792['sendStatus'](0xc8);})['catch'](handleError(_0x4a7792,null));}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index 6bfa60f..3012072 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a516_0x3659=['remove','exports','Plugin','setMaxListeners','update','undefined','emit','../../mysqldb','events'];(function(_0x4cb8a8,_0x365977){const _0x11f7d6=function(_0x4aea73){while(--_0x4aea73){_0x4cb8a8['push'](_0x4cb8a8['shift']());}};_0x11f7d6(++_0x365977);}(a516_0x3659,0xab));const a516_0x11f7=function(_0x4cb8a8,_0x365977){_0x4cb8a8=_0x4cb8a8-0x0;let _0x11f7d6=a516_0x3659[_0x4cb8a8];return _0x11f7d6;};const _0x81c365=a516_0x11f7;'use strict';const EventEmitter=require(_0x81c365('0x8')),Plugin=require(_0x81c365('0x7'))['db'][_0x81c365('0x2')],PluginEvents=new EventEmitter();PluginEvents[_0x81c365('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x81c365('0x4'),'afterDestroy':_0x81c365('0x0')};function emitEvent(_0x4aea73){return function(_0x51e872){const _0x2ffd6e=a516_0x11f7;PluginEvents['emit'](_0x4aea73+':'+_0x51e872['id'],_0x51e872),PluginEvents[_0x2ffd6e('0x6')](_0x4aea73,_0x51e872);};}for(const e in events){if(typeof events[e]!==_0x81c365('0x5')){const event=events[e];Plugin['addHook'](e,emitEvent(event));}}module[_0x81c365('0x1')]=PluginEvents; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index 237e44b..1bd1dfd 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a517_0x910c=['exports','plugins','define','Plugin'];(function(_0x5c3fdf,_0x910ce5){const _0x1171f0=function(_0x5d4b42){while(--_0x5d4b42){_0x5c3fdf['push'](_0x5c3fdf['shift']());}};_0x1171f0(++_0x910ce5);}(a517_0x910c,0x185));const a517_0x1171=function(_0x5c3fdf,_0x910ce5){_0x5c3fdf=_0x5c3fdf-0x0;let _0x1171f0=a517_0x910c[_0x5c3fdf];return _0x1171f0;};const _0x470943=a517_0x1171;'use strict';const attributes=require('./plugin.attributes');module[_0x470943('0x3')]=function(_0x5d4b42){const _0x2ac3c4=_0x470943,_0x2c563b=_0x5d4b42[_0x2ac3c4('0x1')](_0x2ac3c4('0x2'),attributes,{'tableName':_0x2ac3c4('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c563b;}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index 1f2bf95..58bce41 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a518_0x4ed8=['catch','options','create','error','CreatePlugin','body','../../rediscache','Plugin','register','message','debug','then','info','../../config/logger','raw','./plugin.socket','stringify'];(function(_0x5e662a,_0x4ed84d){const _0x33d6b0=function(_0xc94054){while(--_0xc94054){_0x5e662a['push'](_0x5e662a['shift']());}};_0x33d6b0(++_0x4ed84d);}(a518_0x4ed8,0x1ef));const a518_0x33d6=function(_0x5e662a,_0x4ed84d){_0x5e662a=_0x5e662a-0x0;let _0x33d6b0=a518_0x4ed8[_0x5e662a];return _0x33d6b0;};const _0x21bc9d=a518_0x33d6;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x21bc9d('0xb'))('rpc'),{getSocket}=require(_0x21bc9d('0x4')),socket=getSocket();require(_0x21bc9d('0xd'))[_0x21bc9d('0x6')](socket),exports[_0x21bc9d('0x2')]=function(_0xc94054){const _0x26154f=this;return new Promise(function(_0x111b34,_0x1e1a8a){const _0x2e8aca=a518_0x33d6;return db[_0x2e8aca('0x5')][_0x2e8aca('0x0')](_0xc94054[_0x2e8aca('0x3')],{'raw':_0xc94054[_0x2e8aca('0x10')]?_0xc94054[_0x2e8aca('0x10')][_0x2e8aca('0xc')]===undefined?!![]:![]:!![]})[_0x2e8aca('0x9')](function(_0x56f386){const _0x53b8a5=_0x2e8aca;logger[_0x53b8a5('0xa')](_0x53b8a5('0x2'),_0xc94054),logger[_0x53b8a5('0x8')](_0x53b8a5('0x2'),_0xc94054,JSON[_0x53b8a5('0xe')](_0x56f386)),_0x111b34(_0x56f386);})[_0x2e8aca('0xf')](function(_0x335512){const _0x4bccfd=_0x2e8aca;logger[_0x4bccfd('0x1')](_0x4bccfd('0x2'),_0x335512[_0x4bccfd('0x7')],_0xc94054),_0x1e1a8a(_0x26154f['error'](0x1f4,_0x335512['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index 64bc9e8..aba6151 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a519_0x5880=['save','emit','./plugin.events','remove','plugin:','register','update'];(function(_0x58ba33,_0x588033){const _0x14a97a=function(_0x561e23){while(--_0x561e23){_0x58ba33['push'](_0x58ba33['shift']());}};_0x14a97a(++_0x588033);}(a519_0x5880,0x98));const a519_0x14a9=function(_0x58ba33,_0x588033){_0x58ba33=_0x58ba33-0x0;let _0x14a97a=a519_0x5880[_0x58ba33];return _0x14a97a;};const _0x355723=a519_0x14a9;'use strict';const PluginEvents=require(_0x355723('0x4')),events=[_0x355723('0x2'),_0x355723('0x5'),_0x355723('0x1')];function createListener(_0x561e23,_0x17a642){return function(_0x418cfb){const _0x380473=a519_0x14a9;_0x17a642[_0x380473('0x3')](_0x561e23,_0x418cfb);};}exports[_0x355723('0x0')]=function(_0x32cb91){const _0x52e588=_0x355723;for(let _0x443dee=0x0,_0x4ddd32=events['length'];_0x443dee<_0x4ddd32;_0x443dee++){const _0x90cf44=events[_0x443dee],_0x52cea8=createListener(_0x52e588('0x6')+_0x90cf44,_0x32cb91);PluginEvents['on'](_0x90cf44,_0x52cea8);}}; \ No newline at end of file +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 diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index b7a7ce4..c913110 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a520_0x3470=['destroy','Router','show','get','../../components/auth/service','/:id','post','put','isAuthenticated','delete','./pm2.controller','exports'];(function(_0x24b4ac,_0x347052){const _0x28a157=function(_0x59b990){while(--_0x59b990){_0x24b4ac['push'](_0x24b4ac['shift']());}};_0x28a157(++_0x347052);}(a520_0x3470,0x101));const a520_0x28a1=function(_0x24b4ac,_0x347052){_0x24b4ac=_0x24b4ac-0x0;let _0x28a157=a520_0x3470[_0x24b4ac];return _0x28a157;};const _0x44db95=a520_0x28a1;'use strict';const express=require('express'),router=express[_0x44db95('0x8')](),auth=require(_0x44db95('0xb')),controller=require(_0x44db95('0x5'));router['get']('/',auth[_0x44db95('0x3')](),controller['index']),router[_0x44db95('0xa')]('/:id',auth[_0x44db95('0x3')](),controller[_0x44db95('0x9')]),router[_0x44db95('0x1')]('/',auth[_0x44db95('0x3')](),controller['create']),router[_0x44db95('0x2')](_0x44db95('0x0'),auth[_0x44db95('0x3')](),controller['update']),router[_0x44db95('0x4')](_0x44db95('0x0'),auth[_0x44db95('0x3')](),controller[_0x44db95('0x7')]),module[_0x44db95('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index d018c08..4ba2af1 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a521_0x3e3c=['show','child_process','express','chdir','send','length','then','exec','dump','stop','Unknown\x20status','stack','destroy','name','error','reject','Unknown\x20id','catch','Missing\x20name\x20and/or\x20path','params','create','motion2','json','../../config/logger','undefined','describe','start','dirname','../../files/plugins','list','info','../../config/pm2','script','status','body','lodash','api','delete','join','index'];(function(_0x1c0c16,_0x3e3c06){const _0x1eb5a5=function(_0x25a41c){while(--_0x25a41c){_0x1c0c16['push'](_0x1c0c16['shift']());}};_0x1eb5a5(++_0x3e3c06);}(a521_0x3e3c,0x1b7));const a521_0x1eb5=function(_0x1c0c16,_0x3e3c06){_0x1c0c16=_0x1c0c16-0x0;let _0x1eb5a5=a521_0x3e3c[_0x1c0c16];return _0x1eb5a5;};const _0x3157b0=a521_0x1eb5;'use strict';const _=require(_0x3157b0('0x24')),pm2=require(_0x3157b0('0x20')),logger=require(_0x3157b0('0x18'))(_0x3157b0('0x25')),path=require('path'),exec=require(_0x3157b0('0x2'))[_0x3157b0('0x8')];function handleEntityNotFound(_0x25a41c){return function(_0x2e9bde){return!_0x2e9bde&&_0x25a41c['sendStatus'](0x194),_0x2e9bde;};}function respondWithResult(_0x2ab408,_0x359ec5){return _0x359ec5=_0x359ec5||0xc8,function(_0x367e85){const _0x241044=a521_0x1eb5;if(_0x367e85)return _0x2ab408[_0x241044('0x22')](_0x359ec5)[_0x241044('0x17')](_0x367e85);return null;};}function handleError(_0x2716fe,_0x16263d){return _0x16263d=_0x16263d||0x1f4,function(_0x34fdfc){const _0x2c92cc=a521_0x1eb5;logger[_0x2c92cc('0xf')](_0x34fdfc[_0x2c92cc('0xc')]),_0x34fdfc[_0x2c92cc('0xe')]&&delete _0x34fdfc[_0x2c92cc('0xe')],_0x2716fe['status'](_0x16263d)['send'](_0x34fdfc);};}function execChildProcess(){return new Promise(function(_0x23877d,_0x4bbfc6){exec('npm\x20install',function(_0x55a2ed,_0x772d7d,_0x24579c){const _0x43c457=a521_0x1eb5;logger[_0x43c457('0x1f')](_0x772d7d),logger['info'](_0x24579c);if(_0x55a2ed)return logger[_0x43c457('0xf')](_0x55a2ed),_0x4bbfc6(_0x55a2ed);return _0x23877d(_0x772d7d);});});}exports[_0x3157b0('0x0')]=function(_0x41668d,_0x547923){const _0x302f28=_0x3157b0;return pm2[_0x302f28('0x1e')]()[_0x302f28('0x7')](function(_0x486e4a){const _0x452aaa=_0x302f28;if(_0x486e4a){const _0x1328af=_[_0x452aaa('0x10')](_0x486e4a,function(_0x3c1a7b){const _0x2342e2=_0x452aaa;return _0x3c1a7b[_0x2342e2('0xe')]===_0x2342e2('0x3')||_0x3c1a7b[_0x2342e2('0xe')]===_0x2342e2('0x16');});return{'rows':_0x1328af,'count':_0x1328af[_0x452aaa('0x6')]};}return null;})[_0x302f28('0x7')](respondWithResult(_0x547923,null))[_0x302f28('0x12')](handleError(_0x547923,null));},exports[_0x3157b0('0x1')]=function(_0x25e46f,_0x46708c){const _0x3bf350=_0x3157b0;return pm2[_0x3bf350('0x1a')](_0x25e46f[_0x3bf350('0x14')]['id'])['then'](respondWithResult(_0x46708c,null))[_0x3bf350('0x7')](handleEntityNotFound(_0x46708c,null))['catch'](handleError(_0x46708c,null));},exports[_0x3157b0('0x15')]=function(_0x33be1d,_0x163696){const _0x5ebe69=_0x3157b0;if(_0x33be1d[_0x5ebe69('0x23')][_0x5ebe69('0xe')]&&_0x33be1d[_0x5ebe69('0x23')][_0x5ebe69('0x21')]){const _0x5c8fde=path[_0x5ebe69('0x27')](__dirname,_0x5ebe69('0x1d'),_0x33be1d[_0x5ebe69('0x23')][_0x5ebe69('0x21')]),_0x1092d5=process['cwd']();return process[_0x5ebe69('0x4')](path[_0x5ebe69('0x1c')](_0x5c8fde)),execChildProcess()[_0x5ebe69('0x7')](function(){const _0x208129=_0x5ebe69;return process['chdir'](_0x1092d5),pm2[_0x208129('0x1b')]({'name':_0x33be1d['body']['name'],'script':_0x5c8fde});})[_0x5ebe69('0x7')](function(_0x5c8060){const _0x62eed6=_0x5ebe69;return pm2[_0x62eed6('0x9')](),_0x5c8060[0x0];})[_0x5ebe69('0x7')](respondWithResult(_0x163696,0xc9))['catch'](handleError(_0x163696,null));}else return _0x163696[_0x5ebe69('0x22')](0x1f4)[_0x5ebe69('0x5')]({'message':_0x5ebe69('0x13')});},exports['update']=function(_0x19ec05,_0x721003){const _0x427af8=_0x3157b0;_0x19ec05[_0x427af8('0x23')]['id']&&delete _0x19ec05['body']['id'];const _0x56348c={'online':'restart','stopped':_0x427af8('0xa')};return typeof _0x56348c[_0x19ec05['body']['status']]!==_0x427af8('0x19')?pm2[_0x56348c[_0x19ec05[_0x427af8('0x23')][_0x427af8('0x22')]]](_0x19ec05['params']['id'])['then'](respondWithResult(_0x721003,0xc8))[_0x427af8('0x12')](handleError(_0x721003,null)):_0x721003['status'](0x1f4)[_0x427af8('0x5')]({'message':_0x427af8('0xb')});},exports[_0x3157b0('0xd')]=function(_0x155b83,_0x50405f){const _0x27818d=_0x3157b0;return _0x155b83[_0x27818d('0x23')]['id']&&delete _0x155b83[_0x27818d('0x23')]['id'],_0x155b83[_0x27818d('0x14')]['id']?pm2[_0x27818d('0x26')](_0x155b83[_0x27818d('0x14')]['id'])[_0x27818d('0x7')](function(_0x394656){const _0x4b3382=_0x27818d;return pm2[_0x4b3382('0x9')](),_0x394656[0x0];})[_0x27818d('0x7')](respondWithResult(_0x50405f,null))[_0x27818d('0x12')](handleError(_0x50405f,null)):_0x50405f[_0x27818d('0x22')](0x1f4)[_0x27818d('0x5')]({'message':_0x27818d('0x11')});}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index fe4f79f..5f36640 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a522_0x2990=['express','exports','Router'];(function(_0x2547f3,_0x29906a){const _0x2b650a=function(_0x33e05d){while(--_0x33e05d){_0x2547f3['push'](_0x2547f3['shift']());}};_0x2b650a(++_0x29906a);}(a522_0x2990,0x145));const a522_0x2b65=function(_0x2547f3,_0x29906a){_0x2547f3=_0x2547f3-0x0;let _0x2b650a=a522_0x2990[_0x2547f3];return _0x2b650a;};const _0x55f0bf=a522_0x2b65;'use strict';const express=require(_0x55f0bf('0x2')),router=express[_0x55f0bf('0x1')]();module[_0x55f0bf('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.attributes.js b/server/api/reportAgentPreview/reportAgentPreview.attributes.js index d8e1875..790e111 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a523_0x186f=['STRING','INTEGER','exports'];(function(_0x14db84,_0x186fe2){const _0x185975=function(_0x5191fd){while(--_0x5191fd){_0x14db84['push'](_0x14db84['shift']());}};_0x185975(++_0x186fe2);}(a523_0x186f,0x106));const a523_0x1859=function(_0x14db84,_0x186fe2){_0x14db84=_0x14db84-0x0;let _0x185975=a523_0x186f[_0x14db84];return _0x185975;};const _0x555568=a523_0x1859;'use strict';const Sequelize=require('sequelize');module[_0x555568('0x1')]={'state':{'type':Sequelize[_0x555568('0x0')](0x2)},'statedesc':{'type':Sequelize[_0x555568('0x2')]},'scheduledat':{'type':Sequelize['DATE']},'uniqueid':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize['DATE']},'ringtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x555568('0x2')]},'membername':{'type':Sequelize[_0x555568('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index 5079cc8..34e9eef 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a524_0x224e=['ReportAgentPreview','define','report_agent_preview'];(function(_0x5d13ab,_0x224ef5){const _0x3e8307=function(_0x55ff6a){while(--_0x55ff6a){_0x5d13ab['push'](_0x5d13ab['shift']());}};_0x3e8307(++_0x224ef5);}(a524_0x224e,0x17a));const a524_0x3e83=function(_0x5d13ab,_0x224ef5){_0x5d13ab=_0x5d13ab-0x0;let _0x3e8307=a524_0x224e[_0x5d13ab];return _0x3e8307;};'use strict';const attributes=require('./reportAgentPreview.attributes');module['exports']=function(_0x55ff6a){const _0x5449b3=a524_0x3e83,_0x49093b=_0x55ff6a[_0x5449b3('0x1')](_0x5449b3('0x0'),attributes,{'tableName':_0x5449b3('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x49093b;}; \ No newline at end of file +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 diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index 9f93c2b..6b4a599 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a525_0x4c72=['../../mysqldb','message','ReportAgentPreview','rpc','then','error','create','body','options','CreateReportAgentPreview'];(function(_0x591895,_0x4c7219){const _0x1898cd=function(_0x2d5264){while(--_0x2d5264){_0x591895['push'](_0x591895['shift']());}};_0x1898cd(++_0x4c7219);}(a525_0x4c72,0x1e6));const a525_0x1898=function(_0x591895,_0x4c7219){_0x591895=_0x591895-0x0;let _0x1898cd=a525_0x4c72[_0x591895];return _0x1898cd;};const _0x373653=a525_0x1898;'use strict';const db=require(_0x373653('0x4'))['db'],logger=require('../../config/logger')(_0x373653('0x7'));exports[_0x373653('0x3')]=function(_0x2d5264){const _0x270a2b=this;return new Promise(function(_0x2139fa,_0x57a997){const _0x23f3ac=a525_0x1898;return db[_0x23f3ac('0x6')][_0x23f3ac('0x0')](_0x2d5264[_0x23f3ac('0x1')],{'raw':_0x2d5264[_0x23f3ac('0x2')]?_0x2d5264[_0x23f3ac('0x2')]['raw']===undefined?!![]:![]:!![]})[_0x23f3ac('0x8')](function(_0x4e93e0){logger['info']('CreateReportAgentPreview',_0x2d5264),logger['debug']('CreateReportAgentPreview',_0x2d5264,JSON['stringify'](_0x4e93e0)),_0x2139fa(_0x4e93e0);})['catch'](function(_0xaa276f){const _0x40be29=_0x23f3ac;logger[_0x40be29('0x9')](_0x40be29('0x3'),_0xaa276f[_0x40be29('0x5')],_0x2d5264),_0x57a997(_0x270a2b[_0x40be29('0x9')](0x1f4,_0xaa276f[_0x40be29('0x5')]));});});}; \ No newline at end of file +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 diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index d550f20..086d661 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a526_0x2920=['/sms/queues/waitinginteractions','/agents','chat','showMailQueues','/voice/queues/channels/:uniqueid','/voice/channels/:uniqueid/stopmixmonitor','outbound','post','outboundChannels','/sms/queues/:id/notify','/voice/queues/:id','whatsappQueues','fax','campaigns','smsQueues','/mail/queues/waitinginteractions','/fax/queues','/mail/accounts','/voice/queues/channels/:uniqueid/hangup','faxQueues','/whatsapp/queues','voiceChannelStopMixMonitor','../../components/auth/service','voiceQueuesChannelRedirect','showVoiceQueues','/fax/accounts','showFaxQueues','/sms/queues','agents','/telephones','telephones','/mail/queues/:id/notify','voiceQueuesChannel','chatQueuesWaitingInteractions','/chat/queues','openchannelQueuesIdWaitingInteractions','voiceQueuesChannels','whatsapp','faxQueuesWaitingInteractions','get','/chat/queues/:id','/voice/queues','exports','/voice/channels/:uniqueid/mixmonitor','/whatsapp/queues/:id','queueNotify','/whatsapp/queues/:id/notify','agentCapacity','chatQueues','/fax/queues/waitinginteractions','showChatQueues','trunks','/whatsapp/queues/waitinginteractions','openchannelQueuesWaitingInteractions','faxAccounts','showWhatsappQueues','/outbound','express','/voice/queues/channels/:uniqueid/redirect/:exten','/openchannel/queues/:id/waitinginteractions','showSmsQueues','put','mail','openchannelQueues','openchannel','isAuthenticated','/openchannel/queues/:id','voiceQueuesPreview','whatsappQueuesWaitingInteractions','smsQueuesWaitingInteractions','/fax/queues/:id','/voice/queues/channels','mailAccounts'];(function(_0x25d3de,_0x29209a){const _0x2c4e6b=function(_0x3aed80){while(--_0x3aed80){_0x25d3de['push'](_0x25d3de['shift']());}};_0x2c4e6b(++_0x29209a);}(a526_0x2920,0x165));const a526_0x2c4e=function(_0x25d3de,_0x29209a){_0x25d3de=_0x25d3de-0x0;let _0x2c4e6b=a526_0x2920[_0x25d3de];return _0x2c4e6b;};const _0xf27bc=a526_0x2c4e;'use strict';const express=require(_0xf27bc('0x41')),router=express['Router'](),auth=require(_0xf27bc('0x1e')),controller=require('./rpc.controller');router[_0xf27bc('0x2f')]('/voice/channels',auth[_0xf27bc('0x0')](),controller['voiceChannels']),router['get'](_0xf27bc('0x33'),auth[_0xf27bc('0x0')](),controller['voiceChannelMixMonitor']),router['get'](_0xf27bc('0xd'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x1d')]),router[_0xf27bc('0x2f')](_0xf27bc('0x31'),auth[_0xf27bc('0x0')](),controller['voiceQueues']),router[_0xf27bc('0x2f')](_0xf27bc('0x2a'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x38')]),router['get']('/mail/queues',auth[_0xf27bc('0x0')](),controller['mailQueues']),router[_0xf27bc('0x2f')](_0xf27bc('0x19'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x7')]),router[_0xf27bc('0x2f')]('/openchannel/queues',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x47')]),router['get'](_0xf27bc('0x23'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x16')]),router['get'](_0xf27bc('0x1c'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x13')]),router[_0xf27bc('0x2f')](_0xf27bc('0x18'),auth['isAuthenticated'](),controller[_0xf27bc('0x1b')]),router[_0xf27bc('0x2f')]('/voice/queues/preview/:id',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x2')]),router[_0xf27bc('0x2f')](_0xf27bc('0x6'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x2c')]),router['get'](_0xf27bc('0xc'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x28')]),router['get'](_0xf27bc('0x1a'),auth[_0xf27bc('0x0')](),controller['voiceQueuesChannelHangup']),router['get'](_0xf27bc('0x42'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x1f')]),router[_0xf27bc('0x2f')](_0xf27bc('0x12'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x20')]),router[_0xf27bc('0x2f')](_0xf27bc('0x40'),auth['isAuthenticated'](),controller[_0xf27bc('0xe')]),router[_0xf27bc('0x2f')]('/outbound/channels',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x10')]),router[_0xf27bc('0x2f')](_0xf27bc('0x9'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x24')]),router[_0xf27bc('0x45')]('/agents/:id/capacity',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x37')]),router[_0xf27bc('0x2f')](_0xf27bc('0x25'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x26')]),router['get']('/trunks',auth['isAuthenticated'](),controller[_0xf27bc('0x3b')]),router[_0xf27bc('0x2f')]('/campaigns',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x15')]),router[_0xf27bc('0x2f')](_0xf27bc('0x21'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x3e')]),router['get']('/chat/queues/waitinginteractions',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x29')]),router[_0xf27bc('0x2f')](_0xf27bc('0x17'),auth[_0xf27bc('0x0')](),controller['mailQueuesWaitingInteractions']),router[_0xf27bc('0x2f')]('/openchannel/queues/waitinginteractions',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x3d')]),router['get'](_0xf27bc('0x43'),auth['isAuthenticated'](),controller[_0xf27bc('0x2b')]),router[_0xf27bc('0x2f')](_0xf27bc('0x8'),auth['isAuthenticated'](),controller[_0xf27bc('0x4')]),router[_0xf27bc('0x2f')](_0xf27bc('0x3c'),auth['isAuthenticated'](),controller[_0xf27bc('0x3')]),router['get'](_0xf27bc('0x39'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x2e')]),router[_0xf27bc('0xf')](_0xf27bc('0x27'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x35')](_0xf27bc('0x46'))),router[_0xf27bc('0x2f')]('/mail/queues/:id',auth['isAuthenticated'](),controller[_0xf27bc('0xb')]),router[_0xf27bc('0xf')]('/chat/queues/:id/notify',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x35')](_0xf27bc('0xa'))),router['get'](_0xf27bc('0x30'),auth['isAuthenticated'](),controller[_0xf27bc('0x3a')]),router[_0xf27bc('0xf')]('/fax/queues/:id/notify',auth['isAuthenticated'](),controller[_0xf27bc('0x35')](_0xf27bc('0x14'))),router[_0xf27bc('0x2f')](_0xf27bc('0x5'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x22')]),router[_0xf27bc('0xf')]('/openchannel/queues/:id/notify',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x35')](_0xf27bc('0x48'))),router[_0xf27bc('0x2f')](_0xf27bc('0x1'),auth[_0xf27bc('0x0')](),controller['showOpenchannelQueues']),router[_0xf27bc('0xf')](_0xf27bc('0x11'),auth[_0xf27bc('0x0')](),controller['queueNotify']('sms')),router[_0xf27bc('0xf')](_0xf27bc('0x36'),auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x35')](_0xf27bc('0x2d'))),router[_0xf27bc('0x2f')]('/sms/queues/:id',auth[_0xf27bc('0x0')](),controller[_0xf27bc('0x44')]),router[_0xf27bc('0x2f')](_0xf27bc('0x34'),auth['isAuthenticated'](),controller[_0xf27bc('0x3f')]),router['post']('/agents/:id/notify',auth[_0xf27bc('0x0')](),controller['agentNotify']),module[_0xf27bc('0x32')]=router; \ No newline at end of file +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 diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index 7666962..63139ed 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a527_0x1618=['MailQueues','Telephones','undefined','catch','channel','query','VoiceQueuesChannels','findOne','InteractionId','queue_id','ChatQueuesWaitingInteractions','MailAccounts','openchannelQueuesIdWaitingInteractions','faxQueuesWaitingInteractions','VoiceChannelMixMonitor','From','Outbound','FaxQueues','jayson/promise','queue','whatsappQueuesWaitingInteractions','WhatsappQueuesWaitingInteractions','showVoiceQueues','MemberReport','SIP/%s','ChatQueues','send','stack','Start','voiceQueuesChannelRedirect','sendStatus','Channel\x20field\x20is\x20mandatory','isNil','agentNotify','Interaction','YYYY-MM-DD\x20HH:mm:ss','voiceQueuesChannelHangup','MailQueuesWaitingInteractions','rows','messageId','SmsQueues','code','json','http','chatQueuesWaitingInteractions','capitalize','FaxQueuesWaitingInteractions','type','Account','update','Website','name','then','chatQueues','chat','VoiceQueues','capacity','smsQueues','trunks','\x20Message\x20not\x20found','*,*,*,*','map','../../mysqldb','create','VoiceQueuesChannelRedirect','voiceQueuesChannel','length','util','interaction','message','queueTransferTimeout','User','showFaxQueues','VoiceQueuesPreview','TransferReport','merge','faxQueues','faxAccounts','error','showChatQueues','OpenchannelQueuesWaitingInteractions','params','client','value','showWhatsappQueues','telephones','showMailQueues','OpenchannelQueues','SmsQueuesWaitingInteractions','Campaigns','whatsappQueues','mailQueuesWaitingInteractions','VoiceQueuesChannelHangup','Agent\x20not\x20found','WhatsappQueues','showOpenchannelQueues','status','moment','lodash','agents','Agents','findOrCreate','sequelize','queueNotify','openchannelQueues','indexOf','mailQueues','MessageId','interface','voiceQueuesChannels','result','filter','voiceQueues','../../config/logger','campaigns','format','OutboundChannels','internal','findAll','voiceQueuesPreview','mailAccounts','outbound','Queue','body','user','notIn','INTERACTION','outboundChannels'];(function(_0x2836e2,_0x16186a){const _0x2d3375=function(_0x2846ed){while(--_0x2846ed){_0x2836e2['push'](_0x2836e2['shift']());}};_0x2d3375(++_0x16186a);}(a527_0x1618,0x193));const a527_0x2d33=function(_0x2836e2,_0x16186a){_0x2836e2=_0x2836e2-0x0;let _0x2d3375=a527_0x1618[_0x2836e2];return _0x2d3375;};const _0x2221e4=a527_0x2d33;'use strict';const moment=require(_0x2221e4('0x4e')),_=require(_0x2221e4('0x4f')),util=require(_0x2221e4('0x30')),db=require(_0x2221e4('0x2b'))['db'],{Op}=require(_0x2221e4('0x53')),logger=require(_0x2221e4('0x5e'))('api'),jayson=require(_0x2221e4('0x7f')),amiClient=jayson['client'][_0x2221e4('0x18')]({'port':0x232a}),mailClient=jayson[_0x2221e4('0x3f')][_0x2221e4('0x18')]({'port':0x232b}),routingClient=jayson[_0x2221e4('0x3f')][_0x2221e4('0x18')]({'port':0x232c});function respondWithRpcPromise(_0x2846ed,_0x2a1a62,_0x3dc594){return new Promise(function(_0x31d503,_0x195a9b){const _0x2f8312=a527_0x2d33,_0x362967=_0x3dc594?_0x3dc594:amiClient;return _0x362967['request'](_0x2846ed,_0x2a1a62)[_0x2f8312('0x21')](function(_0x3502a0){const _0x35d4dc=_0x2f8312;if(_0x3502a0[_0x35d4dc('0x3b')]){if(_0x3502a0['error'][_0x35d4dc('0x16')]===0x1f4)return _0x195a9b(_0x3502a0[_0x35d4dc('0x3b')][_0x35d4dc('0x32')]);return _0x31d503(_0x3502a0['error']['message']);}else _0x31d503(_0x3502a0[_0x35d4dc('0x5b')]);})[_0x2f8312('0x70')](function(_0x25d9d3){_0x195a9b(_0x25d9d3);});});}function respondWithResult(_0x1b1f91,_0x725dbb){return _0x725dbb=_0x725dbb||0xc8,function(_0x2af0b4){const _0x34719e=a527_0x2d33;if(_0x2af0b4)return _0x1b1f91['status'](_0x725dbb)[_0x34719e('0x17')](_0x2af0b4);return _0x1b1f91[_0x34719e('0xb')](0x194);};}function handleError(_0x76f314,_0x1bd645){return _0x1bd645=_0x1bd645||0x1f4,function(_0x24f629){const _0x30667c=a527_0x2d33;logger['error'](_0x24f629[_0x30667c('0x8')]),_0x24f629[_0x30667c('0x20')]&&delete _0x24f629[_0x30667c('0x20')],_0x76f314[_0x30667c('0x4d')](_0x1bd645)[_0x30667c('0x7')](_0x24f629);};}function findById(_0x326584){return function(_0x1d703c){const _0x29c683=a527_0x2d33;if(!_[_0x29c683('0xd')](_0x326584)&&!_[_0x29c683('0xd')](_0x1d703c)&&!_['isNil'](_0x1d703c[_0x29c683('0x13')]))return _['find'](_0x1d703c['rows'],function(_0x395b87){return _0x395b87['id']==_0x326584;});return null;};}exports['voiceChannels']=function(_0x531d78,_0x4cb56d){const _0xc2e4a9=_0x2221e4;return respondWithRpcPromise('VoiceChannels',_0x531d78[_0xc2e4a9('0x72')])['then'](respondWithResult(_0x4cb56d,null))[_0xc2e4a9('0x70')](handleError(_0x4cb56d,null));},exports['voiceChannelMixMonitor']=function(_0xd614af,_0x16c1de){const _0x826c53=_0x2221e4;return respondWithRpcPromise(_0x826c53('0x7b'),_['merge'](_0xd614af[_0x826c53('0x72')],_0xd614af[_0x826c53('0x3e')]))[_0x826c53('0x21')](respondWithResult(_0x16c1de,null))[_0x826c53('0x70')](handleError(_0x16c1de,null));},exports['voiceChannelStopMixMonitor']=function(_0x3e2dab,_0x11654f){const _0x515f4b=_0x2221e4;return respondWithRpcPromise('VoiceChannelStopMixMonitor',_[_0x515f4b('0x38')](_0x3e2dab['query'],_0x3e2dab[_0x515f4b('0x3e')]))[_0x515f4b('0x21')](respondWithResult(_0x11654f,null))['catch'](handleError(_0x11654f,null));},exports[_0x2221e4('0x5d')]=function(_0x471fa3,_0x2ff46e){const _0x3ce18e=_0x2221e4;return respondWithRpcPromise('VoiceQueues',_0x471fa3[_0x3ce18e('0x72')])[_0x3ce18e('0x21')](respondWithResult(_0x2ff46e,null))['catch'](handleError(_0x2ff46e,null));},exports[_0x2221e4('0x3')]=function(_0x2f3028,_0x5b1624){const _0x18091d=_0x2221e4;return respondWithRpcPromise(_0x18091d('0x24'),_0x2f3028['query'])[_0x18091d('0x21')](findById(_0x2f3028[_0x18091d('0x3e')]['id']))[_0x18091d('0x21')](respondWithResult(_0x5b1624,null))[_0x18091d('0x70')](handleError(_0x5b1624,null));},exports[_0x2221e4('0x64')]=function(_0x380e02,_0x2ba632){const _0x25457d=_0x2221e4;return respondWithRpcPromise(_0x25457d('0x36'),_['merge'](_0x380e02[_0x25457d('0x72')],_0x380e02['params']))[_0x25457d('0x21')](respondWithResult(_0x2ba632,null))[_0x25457d('0x70')](handleError(_0x2ba632,null));},exports[_0x2221e4('0x5a')]=function(_0x5ad626,_0x3bd880){const _0x138648=_0x2221e4;return respondWithRpcPromise(_0x138648('0x73'),_0x5ad626[_0x138648('0x72')])['then'](respondWithResult(_0x3bd880,null))['catch'](handleError(_0x3bd880,null));},exports[_0x2221e4('0x2e')]=function(_0x4ab756,_0x35cf95){const _0x49d0e8=_0x2221e4;return respondWithRpcPromise('VoiceQueuesChannel',_[_0x49d0e8('0x38')](_0x4ab756[_0x49d0e8('0x72')],_0x4ab756['params']))[_0x49d0e8('0x21')](respondWithResult(_0x35cf95,null))[_0x49d0e8('0x70')](handleError(_0x35cf95,null));},exports[_0x2221e4('0x11')]=function(_0x4d0e43,_0xd0fd39){const _0x5bccce=_0x2221e4;return respondWithRpcPromise(_0x5bccce('0x49'),_['merge'](_0x4d0e43['query'],_0x4d0e43[_0x5bccce('0x3e')]))[_0x5bccce('0x21')](respondWithResult(_0xd0fd39,null))[_0x5bccce('0x70')](handleError(_0xd0fd39,null));},exports[_0x2221e4('0xa')]=function(_0x341fb5,_0x2b3827){const _0x2b8ff7=_0x2221e4;return respondWithRpcPromise(_0x2b8ff7('0x2d'),_[_0x2b8ff7('0x38')](_0x341fb5[_0x2b8ff7('0x72')],_0x341fb5[_0x2b8ff7('0x3e')]))[_0x2b8ff7('0x21')](respondWithResult(_0x2b3827,null))['catch'](handleError(_0x2b3827,null));},exports[_0x2221e4('0x66')]=function(_0x5bfa13,_0x3fba57){const _0xc4df87=_0x2221e4;return respondWithRpcPromise(_0xc4df87('0x7d'),_0x5bfa13[_0xc4df87('0x72')])[_0xc4df87('0x21')](respondWithResult(_0x3fba57,null))[_0xc4df87('0x70')](handleError(_0x3fba57,null));},exports[_0x2221e4('0x6c')]=function(_0xea06ff,_0x2bbf50){const _0x312d46=_0x2221e4;return respondWithRpcPromise(_0x312d46('0x61'),_0xea06ff[_0x312d46('0x72')])[_0x312d46('0x21')](respondWithResult(_0x2bbf50,null))[_0x312d46('0x70')](handleError(_0x2bbf50,null));},exports[_0x2221e4('0x50')]=function(_0x5d74b6,_0x19b4a1){const _0x73a436=_0x2221e4;let _0x5c24c6;return respondWithRpcPromise('Agents',_0x5d74b6[_0x73a436('0x72')])[_0x73a436('0x21')](function(_0x45fbd7){const _0x215e65=_0x73a436;return _0x5c24c6=_0x45fbd7,respondWithRpcPromise(_0x215e65('0x51'),_0x5d74b6['query'],routingClient);})[_0x73a436('0x21')](function(_0x748251){const _0x122df2=_0x73a436;return _[_0x122df2('0x38')]({},_0x748251,_0x5c24c6);})[_0x73a436('0x21')](respondWithResult(_0x19b4a1,null))[_0x73a436('0x70')](handleError(_0x19b4a1,null));},exports['agentCapacity']=function(_0x4b6788,_0x499041){const _0x520452=_0x2221e4;if(_0x4b6788[_0x520452('0x68')]&&_0x4b6788[_0x520452('0x68')][_0x520452('0x31')]&&_0x4b6788[_0x520452('0x69')]&&_0x4b6788[_0x520452('0x69')][_0x520452('0x20')])for(const _0x196da7 in _0x4b6788[_0x520452('0x68')][_0x520452('0x31')]){if(typeof _0x4b6788[_0x520452('0x68')]['interaction'][_0x196da7]!==_0x520452('0x6f')){db[_0x520452('0x4')][_0x520452('0x63')]({'where':{'channel':_0x196da7,'membername':_0x4b6788[_0x520452('0x69')]['name'],'type':_0x520452('0x6b'),'exitAt':null,'uniqueid':_0x4b6788[_0x520452('0x68')][_0x520452('0x31')][_0x196da7]&&_0x4b6788['body'][_0x520452('0x31')][_0x196da7][_0x520452('0x2f')]?{[Op[_0x520452('0x6a')]]:_0x4b6788[_0x520452('0x68')][_0x520452('0x31')][_0x196da7]}:{[Op['ne']]:null}}})['then'](function(_0x3f1185){const _0x5818ad=_0x520452,_0x565c49=moment()[_0x5818ad('0x60')]('YYYY-MM-DD\x20HH:mm:ss');for(let _0x5523b9=0x0,_0x100d4f=_0x3f1185[_0x5818ad('0x2f')];_0x5523b9<_0x100d4f;_0x5523b9+=0x1){_0x3f1185[_0x5523b9][_0x5818ad('0x1e')]({'exitAt':_0x565c49});}});for(let _0x85b6ce=0x0;_0x85b6ce<_0x4b6788[_0x520452('0x68')][_0x520452('0x31')][_0x196da7]['length'];_0x85b6ce+=0x1){db[_0x520452('0x4')][_0x520452('0x52')]({'where':{'channel':_0x196da7,'membername':_0x4b6788[_0x520452('0x69')][_0x520452('0x20')],'type':'INTERACTION','uniqueid':_0x4b6788[_0x520452('0x68')]['interaction'][_0x196da7][_0x85b6ce],'exitAt':null},'defaults':{'channel':_0x196da7,'membername':_0x4b6788[_0x520452('0x69')][_0x520452('0x20')],'interface':_['isNil'](_0x4b6788[_0x520452('0x69')][_0x520452('0x59')])?util['format'](_0x520452('0x5'),_0x4b6788['user'][_0x520452('0x20')]):_0x4b6788[_0x520452('0x69')]['interface'],'type':_0x520452('0x6b'),'enterAt':moment()[_0x520452('0x60')](_0x520452('0x10')),'role':'agent','internal':_0x4b6788[_0x520452('0x69')][_0x520452('0x62')],'uniqueid':_0x4b6788['body'][_0x520452('0x31')][_0x196da7][_0x85b6ce]}});}}}return respondWithRpcPromise('AgentCapacity',{'id':_0x4b6788[_0x520452('0x3e')]['id'],'capacity':_0x4b6788[_0x520452('0x68')][_0x520452('0x25')]},routingClient)[_0x520452('0x21')](respondWithResult(_0x499041,null))['catch'](handleError(_0x499041,null));},exports[_0x2221e4('0x42')]=function(_0x2f1163,_0x68a20f){const _0x435f29=_0x2221e4;return respondWithRpcPromise(_0x435f29('0x6e'),_0x2f1163[_0x435f29('0x72')])[_0x435f29('0x21')](respondWithResult(_0x68a20f,null))[_0x435f29('0x70')](handleError(_0x68a20f,null));},exports[_0x2221e4('0x27')]=function(_0x2ad24d,_0x349351){const _0x675f3c=_0x2221e4;return respondWithRpcPromise('Trunks',_0x2ad24d[_0x675f3c('0x72')])[_0x675f3c('0x21')](respondWithResult(_0x349351,null))[_0x675f3c('0x70')](handleError(_0x349351,null));},exports[_0x2221e4('0x5f')]=function(_0x27e288,_0xce5644){const _0x929e6=_0x2221e4;return respondWithRpcPromise(_0x929e6('0x46'),_0x27e288[_0x929e6('0x72')])[_0x929e6('0x21')](respondWithResult(_0xce5644,null))[_0x929e6('0x70')](handleError(_0xce5644,null));},exports[_0x2221e4('0x22')]=function(_0x5324ec,_0x28f0f9){const _0x199283=_0x2221e4;return respondWithRpcPromise(_0x199283('0x6'),_0x5324ec[_0x199283('0x72')],routingClient)['then'](respondWithResult(_0x28f0f9,null))[_0x199283('0x70')](handleError(_0x28f0f9,null));},exports[_0x2221e4('0x3c')]=function(_0x5cdc56,_0xc09482){const _0x5de439=_0x2221e4;return respondWithRpcPromise(_0x5de439('0x6'),_0x5cdc56[_0x5de439('0x72')],routingClient)[_0x5de439('0x21')](findById(_0x5cdc56[_0x5de439('0x3e')]['id']))[_0x5de439('0x21')](respondWithResult(_0xc09482,null))['catch'](handleError(_0xc09482,null));},exports[_0x2221e4('0x57')]=function(_0x48aafc,_0x83dc15){const _0x1f399e=_0x2221e4;return respondWithRpcPromise(_0x1f399e('0x6d'),_0x48aafc[_0x1f399e('0x72')],routingClient)[_0x1f399e('0x21')](respondWithResult(_0x83dc15,null))[_0x1f399e('0x70')](handleError(_0x83dc15,null));},exports[_0x2221e4('0x43')]=function(_0x4d49da,_0x346b34){const _0x481438=_0x2221e4;return respondWithRpcPromise(_0x481438('0x6d'),_0x4d49da['query'],routingClient)['then'](findById(_0x4d49da[_0x481438('0x3e')]['id']))[_0x481438('0x21')](respondWithResult(_0x346b34,null))['catch'](handleError(_0x346b34,null));},exports[_0x2221e4('0x65')]=function(_0x5bbeef,_0x54e97d){const _0x40a43d=_0x2221e4;return respondWithRpcPromise(_0x40a43d('0x78'),_0x5bbeef[_0x40a43d('0x72')],mailClient)[_0x40a43d('0x21')](respondWithResult(_0x54e97d,null))[_0x40a43d('0x70')](handleError(_0x54e97d,null));},exports[_0x2221e4('0x55')]=function(_0x3a4542,_0x602828){const _0x1b7240=_0x2221e4;return respondWithRpcPromise(_0x1b7240('0x44'),_0x3a4542[_0x1b7240('0x72')],routingClient)[_0x1b7240('0x21')](respondWithResult(_0x602828,null))[_0x1b7240('0x70')](handleError(_0x602828,null));},exports[_0x2221e4('0x4c')]=function(_0x301702,_0x1cc971){const _0x4f1b08=_0x2221e4;return respondWithRpcPromise(_0x4f1b08('0x44'),_0x301702[_0x4f1b08('0x72')],routingClient)['then'](findById(_0x301702['params']['id']))['then'](respondWithResult(_0x1cc971,null))['catch'](handleError(_0x1cc971,null));},exports[_0x2221e4('0x26')]=function(_0x3aaeed,_0x2c1ba1){const _0x4d7177=_0x2221e4;return respondWithRpcPromise(_0x4d7177('0x15'),_0x3aaeed[_0x4d7177('0x72')],routingClient)[_0x4d7177('0x21')](respondWithResult(_0x2c1ba1,null))[_0x4d7177('0x70')](handleError(_0x2c1ba1,null));},exports['showSmsQueues']=function(_0x2f4744,_0x2b6796){const _0x70e42a=_0x2221e4;return respondWithRpcPromise(_0x70e42a('0x15'),_0x2f4744['query'],routingClient)[_0x70e42a('0x21')](findById(_0x2f4744['params']['id']))[_0x70e42a('0x21')](respondWithResult(_0x2b6796,null))[_0x70e42a('0x70')](handleError(_0x2b6796,null));},exports[_0x2221e4('0x47')]=function(_0x50f9b1,_0x4e35f7){const _0x3d423e=_0x2221e4;return respondWithRpcPromise('WhatsappQueues',_0x50f9b1[_0x3d423e('0x72')],routingClient)[_0x3d423e('0x21')](respondWithResult(_0x4e35f7,null))[_0x3d423e('0x70')](handleError(_0x4e35f7,null));},exports[_0x2221e4('0x41')]=function(_0x40f3c6,_0x219f3c){const _0x1dcfef=_0x2221e4;return respondWithRpcPromise(_0x1dcfef('0x4b'),_0x40f3c6[_0x1dcfef('0x72')],routingClient)[_0x1dcfef('0x21')](findById(_0x40f3c6['params']['id']))[_0x1dcfef('0x21')](respondWithResult(_0x219f3c,null))['catch'](handleError(_0x219f3c,null));},exports[_0x2221e4('0x39')]=function(_0x467e97,_0x5d62c0){return respondWithRpcPromise('FaxQueues',_0x467e97['query'],routingClient)['then'](respondWithResult(_0x5d62c0,null))['catch'](handleError(_0x5d62c0,null));},exports[_0x2221e4('0x35')]=function(_0x1c54d8,_0x452e77){const _0x495da3=_0x2221e4;return respondWithRpcPromise(_0x495da3('0x7e'),_0x1c54d8[_0x495da3('0x72')],routingClient)['then'](findById(_0x1c54d8[_0x495da3('0x3e')]['id']))[_0x495da3('0x21')](respondWithResult(_0x452e77,null))[_0x495da3('0x70')](handleError(_0x452e77,null));},exports[_0x2221e4('0x3a')]=function(_0x2eac46,_0x422adf){const _0x3dfd8d=_0x2221e4;return respondWithRpcPromise('FaxAccounts',_0x2eac46[_0x3dfd8d('0x72')])[_0x3dfd8d('0x21')](respondWithResult(_0x422adf,null))['catch'](handleError(_0x422adf,null));},exports[_0x2221e4('0x19')]=function(_0x286f14,_0x17f514){const _0x3f5aff=_0x2221e4;return respondWithRpcPromise(_0x3f5aff('0x77'),_0x286f14['query'],routingClient)[_0x3f5aff('0x21')](respondWithResult(_0x17f514,null))[_0x3f5aff('0x70')](handleError(_0x17f514,null));},exports[_0x2221e4('0x48')]=function(_0xea9655,_0x3bef3d){const _0x34e269=_0x2221e4;return respondWithRpcPromise(_0x34e269('0x12'),_0xea9655['query'],routingClient)[_0x34e269('0x21')](respondWithResult(_0x3bef3d,null))[_0x34e269('0x70')](handleError(_0x3bef3d,null));},exports['openchannelQueuesWaitingInteractions']=function(_0x447325,_0x5d39a2){const _0x42695e=_0x2221e4;return respondWithRpcPromise(_0x42695e('0x3d'),_0x447325[_0x42695e('0x72')],routingClient)[_0x42695e('0x21')](respondWithResult(_0x5d39a2,null))[_0x42695e('0x70')](handleError(_0x5d39a2,null));},exports[_0x2221e4('0x79')]=function(_0x59dbc3,_0x17aa89){const _0x50ebcc=_0x2221e4;return respondWithRpcPromise(_0x50ebcc('0x3d'),_0x59dbc3[_0x50ebcc('0x72')],routingClient)['then'](function(_0x56976c){const _0x19b8a4=_0x50ebcc;if(_0x59dbc3['query'][_0x19b8a4('0x1c')]!==undefined){const _0x400511=_(_0x56976c['rows'])[_0x19b8a4('0x5c')]([_0x59dbc3['query'][_0x19b8a4('0x1c')],_0x59dbc3[_0x19b8a4('0x3e')]['id']])[_0x19b8a4('0x2a')](_0x19b8a4('0x76'))['uniq']()[_0x19b8a4('0x40')]();return _0x56976c['rows'][_0x19b8a4('0x5c')](function(_0x5480c1){const _0x2d56eb=_0x19b8a4;return _0x400511[_0x2d56eb('0x56')](_0x5480c1[_0x2d56eb('0x76')])>-0x1;});}else return _0x56976c[_0x19b8a4('0x13')][_0x19b8a4('0x5c')](function(_0x1c2a36){const _0x455af3=_0x19b8a4;return _0x1c2a36[_0x455af3('0x76')]===parseInt(_0x59dbc3['params']['id']);});})[_0x50ebcc('0x21')](respondWithResult(_0x17aa89,null))['catch'](handleError(_0x17aa89,null));},exports['smsQueuesWaitingInteractions']=function(_0x3b5652,_0x523933){const _0x47a1ca=_0x2221e4;return respondWithRpcPromise(_0x47a1ca('0x45'),_0x3b5652[_0x47a1ca('0x72')],routingClient)[_0x47a1ca('0x21')](respondWithResult(_0x523933,null))[_0x47a1ca('0x70')](handleError(_0x523933,null));},exports[_0x2221e4('0x1')]=function(_0x50e516,_0x359f96){const _0x11f158=_0x2221e4;return respondWithRpcPromise(_0x11f158('0x2'),_0x50e516[_0x11f158('0x72')],routingClient)[_0x11f158('0x21')](respondWithResult(_0x359f96,null))[_0x11f158('0x70')](handleError(_0x359f96,null));},exports[_0x2221e4('0x7a')]=function(_0x3c0497,_0x346378){const _0x54e5da=_0x2221e4;return respondWithRpcPromise(_0x54e5da('0x1b'),_0x3c0497[_0x54e5da('0x72')],routingClient)[_0x54e5da('0x21')](respondWithResult(_0x346378,null))[_0x54e5da('0x70')](handleError(_0x346378,null));},exports[_0x2221e4('0x54')]=function(_0x39d848){return function(_0x16c690,_0x3522ab){const _0x515dc3=a527_0x2d33;let _0x495da8,_0x477be5;const _0x6001ef=_[_0x515dc3('0x1a')](_0x39d848),_0x423f70=_0x39d848==='chat'?'Website':_0x515dc3('0x1d');return db[_0x6001ef+_0x515dc3('0x67')][_0x515dc3('0x74')]({'raw':!![],'where':{'id':_0x16c690[_0x515dc3('0x3e')]['id']}})[_0x515dc3('0x21')](function(_0x52f5df){const _0x4db6c9=_0x515dc3;if(_[_0x4db6c9('0xd')](_0x52f5df))throw new Error(_0x6001ef+'\x20Queue\x20not\x20found');return _0x495da8=_0x52f5df,db[_0x6001ef+'Message']['findOne']({'where':{'id':_0x16c690[_0x4db6c9('0x68')][_0x4db6c9('0x14')]},'include':[{'model':db[_0x6001ef+_0x4db6c9('0xf')],'as':'Interaction'},{'model':db[_0x6001ef+_0x423f70],'as':_0x4db6c9('0x1d')}]});})['then'](function(_0x3b9b21){const _0x142229=_0x515dc3;if(_[_0x142229('0xd')](_0x3b9b21))throw new Error(_0x6001ef+'\x20Message\x20not\x20found');return _0x477be5=_0x3b9b21,_0x3b9b21[_0x142229('0x1e')]({'read':0x0,'readAt':null,'UserId':null});})[_0x515dc3('0x21')](function(){const _0x77e3e9=_0x515dc3,_0x362785={'uniqueid':_0x39d848+'.'+_0x477be5['id']+'.'+_0x477be5[_0x77e3e9('0xf')]['id'],'FromUserId':_0x16c690[_0x77e3e9('0x69')]['id'],'type':_0x77e3e9('0x0')};return _0x362785[_0x6001ef+_0x77e3e9('0x58')]=_0x477be5['id'],_0x362785[_0x6001ef+_0x77e3e9('0x75')]=_0x477be5[_0x77e3e9('0xf')]['id'],_0x362785[_0x77e3e9('0x7c')+_0x6001ef+_0x423f70+'Id']=_0x477be5[_0x77e3e9('0x1d')]['id'],_0x362785['To'+_0x6001ef+'QueueId']=_0x495da8['id'],db[_0x6001ef+'TransferReport'][_0x77e3e9('0x2c')](_0x362785);})[_0x515dc3('0x21')](function(){const _0x2c447b=_0x515dc3;return respondWithRpcPromise(_0x2c447b('0x9'),{'channel':_0x39d848,'interaction':_0x477be5[_0x2c447b('0xf')],'message':_0x477be5,'account':_0x477be5[_0x2c447b('0x1d')],'applications':[{'id':0x0,'priority':0x1,'app':_0x2c447b('0x0'),'appdata':_0x495da8[_0x2c447b('0x20')]+','+(_0x477be5['Account'][_0x2c447b('0x33')]||0x12c),'interval':_0x2c447b('0x29')}]},routingClient);})[_0x515dc3('0x21')](respondWithResult(_0x3522ab,null))[_0x515dc3('0x70')](handleError(_0x3522ab,null));};},exports[_0x2221e4('0xe')]=function(_0x5ad52a,_0xf37264){const _0x314531=_0x2221e4;let _0x10f982,_0x450d0a;if(_[_0x314531('0xd')](_0x5ad52a['body'][_0x314531('0x71')]))throw new Error(_0x314531('0xc'));const _0x2e10d1=_0x5ad52a[_0x314531('0x68')]['channel'],_0x574d80=_['capitalize'](_0x2e10d1),_0x17c367=_0x2e10d1===_0x314531('0x23')?_0x314531('0x1f'):_0x314531('0x1d');return db[_0x314531('0x34')][_0x314531('0x74')]({'raw':!![],'where':{'id':_0x5ad52a['params']['id'],'role':'agent'}})['then'](function(_0x46c5ed){const _0x57750f=_0x314531;if(_[_0x57750f('0xd')](_0x46c5ed))throw new Error(_0x57750f('0x4a'));return _0x10f982=_0x46c5ed,db[_0x574d80+'Message'][_0x57750f('0x74')]({'where':{'id':_0x5ad52a[_0x57750f('0x68')][_0x57750f('0x14')]},'include':[{'model':db[_0x574d80+_0x57750f('0xf')],'as':_0x57750f('0xf')},{'model':db[_0x574d80+_0x17c367],'as':_0x57750f('0x1d')}]});})[_0x314531('0x21')](function(_0x3ee2ae){const _0x37a6c7=_0x314531;if(_['isNil'](_0x3ee2ae))throw new Error(_0x574d80+_0x37a6c7('0x28'));return _0x450d0a=_0x3ee2ae,_0x3ee2ae[_0x37a6c7('0x1e')]({'read':0x0,'readAt':null,'UserId':null});})['then'](function(){const _0x557a79=_0x314531,_0x3b2751={'uniqueid':_0x2e10d1+'.'+_0x450d0a['id']+'.'+_0x450d0a[_0x557a79('0xf')]['id'],'FromUserId':_0x5ad52a[_0x557a79('0x69')]['id'],'type':_0x557a79('0x0'),'ToUserId':_0x10f982['id']};return _0x3b2751[_0x574d80+_0x557a79('0x58')]=_0x450d0a['id'],_0x3b2751[_0x574d80+_0x557a79('0x75')]=_0x450d0a[_0x557a79('0xf')]['id'],_0x3b2751['From'+_0x574d80+_0x17c367+'Id']=_0x450d0a[_0x557a79('0x1d')]['id'],db[_0x574d80+_0x557a79('0x37')][_0x557a79('0x2c')](_0x3b2751);})['then'](function(){const _0x31fc36=_0x314531;return respondWithRpcPromise(_0x31fc36('0x9'),{'channel':_0x2e10d1,'interaction':_0x450d0a[_0x31fc36('0xf')],'message':_0x450d0a,'account':_0x450d0a['Account'],'applications':[{'id':0x0,'priority':0x1,'app':'agent','appdata':_0x10f982[_0x31fc36('0x20')]+','+(_0x450d0a['Account']['agentTransferTimeout']||0x12c),'interval':_0x31fc36('0x29')}]},routingClient);})[_0x314531('0x21')](respondWithResult(_0xf37264,null))[_0x314531('0x70')](handleError(_0xf37264,null));}; \ No newline at end of file +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 diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index 3c7160f..47da85f 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a528_0x12a0=['express','post','../../components/auth/service','delete','index','run','create','put','get','/:id','isAuthenticated','exports','update','/:id/run','Router'];(function(_0x530e91,_0x12a00b){const _0x5b419f=function(_0x22b0c2){while(--_0x22b0c2){_0x530e91['push'](_0x530e91['shift']());}};_0x5b419f(++_0x12a00b);}(a528_0x12a0,0xd9));const a528_0x5b41=function(_0x530e91,_0x12a00b){_0x530e91=_0x530e91-0x0;let _0x5b419f=a528_0x12a0[_0x530e91];return _0x5b419f;};const _0x14b825=a528_0x5b41;'use strict';const express=require(_0x14b825('0x8')),router=express[_0x14b825('0x7')](),auth=require(_0x14b825('0xa')),controller=require('./schedule.controller');router[_0x14b825('0x1')]('/',auth[_0x14b825('0x3')](),controller[_0x14b825('0xc')]),router[_0x14b825('0x1')]('/:id',auth[_0x14b825('0x3')](),controller['show']),router[_0x14b825('0x1')](_0x14b825('0x6'),auth[_0x14b825('0x3')](),controller[_0x14b825('0xd')]),router[_0x14b825('0x9')]('/',auth['isAuthenticated'](),controller[_0x14b825('0xe')]),router[_0x14b825('0x0')](_0x14b825('0x2'),auth[_0x14b825('0x3')](),controller[_0x14b825('0x5')]),router[_0x14b825('0xb')](_0x14b825('0x2'),auth[_0x14b825('0x3')](),controller['destroy']),module[_0x14b825('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index 11c4b5d..0acf5de 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a529_0x3895=['sequelize','years','csv','default','weeks','TEXT','xlsx','quarters','BOOLEAN','custom','pdf','DATE','STRING','exports','INTEGER','ENUM'];(function(_0x417cb1,_0x389581){const _0x1569f6=function(_0x2974d8){while(--_0x2974d8){_0x417cb1['push'](_0x417cb1['shift']());}};_0x1569f6(++_0x389581);}(a529_0x3895,0x1b1));const a529_0x1569=function(_0x417cb1,_0x389581){_0x417cb1=_0x417cb1-0x0;let _0x1569f6=a529_0x3895[_0x417cb1];return _0x1569f6;};const _0x567c3c=a529_0x1569;'use strict';const Sequelize=require(_0x567c3c('0xf'));module[_0x567c3c('0xc')]={'name':{'type':Sequelize[_0x567c3c('0xb')],'allowNull':![]},'description':{'type':Sequelize[_0x567c3c('0xb')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x567c3c('0xb')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x567c3c('0xa')],'allowNull':![]},'endAt':{'type':Sequelize[_0x567c3c('0xa')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x567c3c('0xd')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x567c3c('0x0'),_0x567c3c('0x6'),'months',_0x567c3c('0x3'),'days','hours','minutes'),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x567c3c('0xe')](_0x567c3c('0x1'),_0x567c3c('0x9'),_0x567c3c('0x5')),'allowNull':![],'defaultValue':_0x567c3c('0x1')},'type':{'type':Sequelize[_0x567c3c('0xe')](_0x567c3c('0x8'),_0x567c3c('0x2')),'allowNull':![],'defaultValue':_0x567c3c('0x8')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x567c3c('0xb')]},'cc':{'type':Sequelize[_0x567c3c('0x4')]},'bcc':{'type':Sequelize[_0x567c3c('0x4')]},'sendIfEmpty':{'type':Sequelize[_0x567c3c('0x7')],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index ec582e3..629d3ff 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a530_0x59df=['../../components/parsers/qs','sendStatus','include','send','run','attributes','undefined','offset','end','rows','where','destroy','json','../../config/schedule','../../mysqldb','role','params','key','catch','filter','findOne','limit','stack','findAll','Schedule','name','../../config/logger','includeAll','Content-Range','fieldName','body','show','status','fields','merge','length','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileSection','Scheduler','options','index','then','type','filters','user','model','error','sort','intersection','query','create','count','lodash','autoAssociation','map','get','rawAttributes','order'];(function(_0x101706,_0x59dff4){const _0x2595da=function(_0xc4066c){while(--_0xc4066c){_0x101706['push'](_0x101706['shift']());}};_0x2595da(++_0x59dff4);}(a530_0x59df,0x100));const a530_0x2595=function(_0x101706,_0x59dff4){_0x101706=_0x101706-0x0;let _0x2595da=a530_0x59df[_0x101706];return _0x2595da;};const _0x34b450=a530_0x2595;'use strict';const _=require(_0x34b450('0x26')),qs=require(_0x34b450('0x2c')),logger=require(_0x34b450('0xa'))('api'),db=require(_0x34b450('0x3a'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0xc4066c,_0x1a8bd7){return _0x1a8bd7=_0x1a8bd7||0xcc,function(_0x2905a8){const _0x53c685=a530_0x2595;if(_0x2905a8)return _0xc4066c[_0x53c685('0x2d')](_0x1a8bd7);return _0xc4066c[_0x53c685('0x10')](_0x1a8bd7)['end']();};}function respondWithResult(_0xbc29d9,_0x1123ba){return _0x1123ba=_0x1123ba||0xc8,function(_0x13125a){const _0x3baf14=a530_0x2595;if(_0x13125a)return _0xbc29d9[_0x3baf14('0x10')](_0x1123ba)[_0x3baf14('0x38')](_0x13125a);};}function respondWithFilteredResult(_0x58e137,_0x458da4){return function(_0x1ad1b1){const _0x480652=a530_0x2595;if(_0x1ad1b1){const _0x370ab1=_0x1ad1b1[_0x480652('0x25')],_0x2ae925=_0x458da4[_0x480652('0x33')];let _0x2091b9=_0x458da4['offset']+_0x458da4[_0x480652('0x5')],_0x38f8df;return _0x2091b9>=_0x370ab1?(_0x2091b9=_0x370ab1,_0x38f8df=0xc8):_0x38f8df=0xce,_0x58e137['status'](_0x38f8df),_0x58e137['set'](_0x480652('0xc'),_0x2ae925+'-'+_0x2091b9+'/'+_0x370ab1)[_0x480652('0x38')](_0x1ad1b1);}return null;};}function saveUpdates(_0xd27854){return function(_0x44bc48){const _0x33c38e=a530_0x2595;if(_0x44bc48)return _0x44bc48['update'](_0xd27854)[_0x33c38e('0x1b')](function(_0x147f48){return _0x147f48;});return null;};}function removeEntity(_0x2700f8){return function(_0x324449){const _0x110c29=a530_0x2595;if(_0x324449)return _0x324449['destroy']()[_0x110c29('0x1b')](function(){const _0x35609e=_0x110c29,_0x4a6245=_0x324449[_0x35609e('0x29')]({'plain':!![]}),_0x3a86c9='Scheduler';return db['UserProfileResource'][_0x35609e('0x37')]({'where':{'type':_0x3a86c9,'resourceId':_0x4a6245['id']}})[_0x35609e('0x1b')](function(){return _0x324449;});})['then'](function(){const _0x14a424=_0x110c29;_0x2700f8[_0x14a424('0x10')](0xcc)[_0x14a424('0x34')]();});};}function handleEntityNotFound(_0x19a091){return function(_0x16c697){const _0x33e611=a530_0x2595;return!_0x16c697&&_0x19a091[_0x33e611('0x2d')](0x194),_0x16c697;};}function handleError(_0x2af20e,_0x390550){return _0x390550=_0x390550||0x1f4,function(_0x5791b3){const _0x8361b1=a530_0x2595;logger[_0x8361b1('0x20')](_0x5791b3[_0x8361b1('0x6')]),_0x5791b3['name']&&delete _0x5791b3[_0x8361b1('0x9')],_0x2af20e[_0x8361b1('0x10')](_0x390550)[_0x8361b1('0x2f')](_0x5791b3);};}exports[_0x34b450('0x1a')]=function(_0x21c1b8,_0x5c0043){const _0x190688=_0x34b450;let _0x303a92={};const _0x32280b={},_0x5d8255={'count':0x0,'rows':[]},_0x54b165=_[_0x190688('0x28')](db[_0x190688('0x8')][_0x190688('0x2a')],function(_0x4abcc1){const _0x10dd7b=_0x190688;return{'name':_0x4abcc1[_0x10dd7b('0xd')],'type':_0x4abcc1[_0x10dd7b('0x1c')][_0x10dd7b('0x1')]};});_0x32280b[_0x190688('0x1f')]=_[_0x190688('0x28')](_0x54b165,_0x190688('0x9')),_0x32280b[_0x190688('0x23')]=_['keys'](_0x21c1b8[_0x190688('0x23')]),_0x32280b[_0x190688('0x1d')]=_[_0x190688('0x22')](_0x32280b[_0x190688('0x1f')],_0x32280b[_0x190688('0x23')]),_0x303a92['attributes']=_['intersection'](_0x32280b[_0x190688('0x1f')],qs[_0x190688('0x11')](_0x21c1b8[_0x190688('0x23')][_0x190688('0x11')])),_0x303a92[_0x190688('0x31')]=_0x303a92[_0x190688('0x31')]['length']?_0x303a92[_0x190688('0x31')]:_0x32280b[_0x190688('0x1f')];typeof _0x21c1b8[_0x190688('0x23')]['nolimit']===_0x190688('0x32')&&(_0x303a92['limit']=qs[_0x190688('0x5')](_0x21c1b8[_0x190688('0x23')][_0x190688('0x5')]),_0x303a92[_0x190688('0x33')]=qs[_0x190688('0x33')](_0x21c1b8['query']['offset']));_0x303a92[_0x190688('0x2b')]=qs[_0x190688('0x21')](_0x21c1b8[_0x190688('0x23')][_0x190688('0x21')]),_0x303a92[_0x190688('0x36')]=qs['filters'](_[_0x190688('0x15')](_0x21c1b8[_0x190688('0x23')],_0x32280b[_0x190688('0x1d')]),_0x54b165);_0x21c1b8['query'][_0x190688('0x3')]&&(_0x303a92[_0x190688('0x36')]=_[_0x190688('0x12')](_0x303a92[_0x190688('0x36')],{[Op['or']]:_['map'](_0x54b165,function(_0x9cff81){const _0x2ec936=_0x190688;if(_0x9cff81[_0x2ec936('0x1c')]!=='VIRTUAL'){const _0x19c25b={};return _0x19c25b[_0x9cff81[_0x2ec936('0x9')]]={[Op['like']]:'%'+_0x21c1b8[_0x2ec936('0x23')][_0x2ec936('0x3')]+'%'},_0x19c25b;}})}));_0x303a92=_[_0x190688('0x12')]({},_0x303a92,_0x21c1b8['options']);const _0x2b5e64={'where':_0x303a92[_0x190688('0x36')]};return db[_0x190688('0x8')][_0x190688('0x25')](_0x2b5e64)[_0x190688('0x1b')](function(_0x5f0f5a){const _0x4292cd=_0x190688;return _0x5d8255[_0x4292cd('0x25')]=_0x5f0f5a,_0x21c1b8[_0x4292cd('0x23')][_0x4292cd('0xb')]&&(_0x303a92[_0x4292cd('0x2e')]=[{'all':!![]}]),db[_0x4292cd('0x8')][_0x4292cd('0x7')](_0x303a92);})[_0x190688('0x1b')](function(_0x3641f6){const _0x5a0183=_0x190688;return _0x5d8255[_0x5a0183('0x35')]=_0x3641f6,_0x5d8255;})['then'](respondWithFilteredResult(_0x5c0043,_0x303a92))['catch'](handleError(_0x5c0043,null));},exports[_0x34b450('0xf')]=function(_0x466fb0,_0x350e4b){const _0x318eb8=_0x34b450;let _0x2ec6c0={'raw':![],'where':{'id':_0x466fb0['params']['id']}};const _0x402852={};return _0x402852[_0x318eb8('0x1f')]=_['keys'](db[_0x318eb8('0x8')]['rawAttributes']),_0x402852['query']=_['keys'](_0x466fb0[_0x318eb8('0x23')]),_0x402852['filters']=_[_0x318eb8('0x22')](_0x402852[_0x318eb8('0x1f')],_0x402852['query']),_0x2ec6c0[_0x318eb8('0x31')]=_['intersection'](_0x402852[_0x318eb8('0x1f')],qs[_0x318eb8('0x11')](_0x466fb0[_0x318eb8('0x23')][_0x318eb8('0x11')])),_0x2ec6c0[_0x318eb8('0x31')]=_0x2ec6c0['attributes'][_0x318eb8('0x13')]?_0x2ec6c0[_0x318eb8('0x31')]:_0x402852[_0x318eb8('0x1f')],_0x466fb0[_0x318eb8('0x23')]['includeAll']&&(_0x2ec6c0[_0x318eb8('0x2e')]=[{'all':!![]}]),_0x2ec6c0=_[_0x318eb8('0x12')]({},_0x2ec6c0,_0x466fb0[_0x318eb8('0x19')]),db[_0x318eb8('0x8')][_0x318eb8('0x4')](_0x2ec6c0)[_0x318eb8('0x1b')](handleEntityNotFound(_0x350e4b,null))[_0x318eb8('0x1b')](respondWithResult(_0x350e4b,null))[_0x318eb8('0x2')](handleError(_0x350e4b,null));},exports[_0x34b450('0x24')]=function(_0x525a71,_0x144cd4){const _0xded8cf=_0x34b450;return db[_0xded8cf('0x8')]['create'](_0x525a71[_0xded8cf('0xe')],{})[_0xded8cf('0x1b')](function(_0x5dcef6){const _0x301b9c=_0xded8cf,_0x467831=_0x525a71[_0x301b9c('0x1e')][_0x301b9c('0x29')]({'plain':!![]});if(!_0x467831)throw new Error(_0x301b9c('0x16'));if(_0x467831[_0x301b9c('0x3b')]===_0x301b9c('0x1e')){const _0x462326=_0x5dcef6[_0x301b9c('0x29')]({'plain':!![]}),_0x27b91b=_0x301b9c('0x18');return db[_0x301b9c('0x17')][_0x301b9c('0x4')]({'where':{'name':_0x27b91b,'userProfileId':_0x467831['userProfileId']},'raw':!![]})['then'](function(_0x4fae12){const _0x295045=_0x301b9c;return _0x4fae12&&_0x4fae12[_0x295045('0x27')]===0x0?db['UserProfileResource'][_0x295045('0x24')]({'name':_0x462326[_0x295045('0x9')],'resourceId':_0x462326['id'],'type':_0x4fae12[_0x295045('0x9')],'sectionId':_0x4fae12['id']},{})[_0x295045('0x1b')](function(){return _0x5dcef6;}):_0x5dcef6;})[_0x301b9c('0x2')](function(_0x1dd706){const _0x1223ff=_0x301b9c;logger[_0x1223ff('0x20')](_0x1223ff('0x14'),_0x1dd706);throw _0x1dd706;});}return _0x5dcef6;})['then'](respondWithResult(_0x144cd4,0xc9))[_0xded8cf('0x2')](handleError(_0x144cd4,null));},exports['update']=function(_0x1caca7,_0x50e811){const _0x350f6a=_0x34b450;return _0x1caca7[_0x350f6a('0xe')]['id']&&delete _0x1caca7['body']['id'],db[_0x350f6a('0x8')][_0x350f6a('0x4')]({'where':{'id':_0x1caca7[_0x350f6a('0x0')]['id']}})['then'](handleEntityNotFound(_0x50e811,null))[_0x350f6a('0x1b')](saveUpdates(_0x1caca7[_0x350f6a('0xe')],null))[_0x350f6a('0x1b')](respondWithResult(_0x50e811,null))[_0x350f6a('0x2')](handleError(_0x50e811,null));},exports['destroy']=function(_0x490696,_0x486853){const _0x302945=_0x34b450;return db[_0x302945('0x8')][_0x302945('0x4')]({'where':{'id':_0x490696['params']['id']}})['then'](handleEntityNotFound(_0x486853,null))['then'](removeEntity(_0x486853,null))[_0x302945('0x2')](handleError(_0x486853,null));},exports[_0x34b450('0x30')]=function(_0x19e359,_0x431711){const _0x507ba5=_0x34b450,_0x36dc7e=require(_0x507ba5('0x39'));return db[_0x507ba5('0x8')][_0x507ba5('0x4')]({'where':{'id':_0x19e359['params']['id']},'raw':!![]})[_0x507ba5('0x1b')](handleEntityNotFound(_0x431711,null))[_0x507ba5('0x1b')](function(){const _0x1f8af9=_0x507ba5;_0x36dc7e[_0x1f8af9('0x30')](_0x19e359[_0x1f8af9('0x0')]['id']);})[_0x507ba5('0x1b')](respondWithStatusCode(_0x431711,null))[_0x507ba5('0x2')](handleError(_0x431711,null));}; \ No newline at end of file +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 diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index eb9146d..20536d1 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a531_0x2bf7=['define','exports','./schedule.attributes','Schedule'];(function(_0x588c70,_0x2bf703){const _0x2c6afb=function(_0x4abee0){while(--_0x4abee0){_0x588c70['push'](_0x588c70['shift']());}};_0x2c6afb(++_0x2bf703);}(a531_0x2bf7,0xe6));const a531_0x2c6a=function(_0x588c70,_0x2bf703){_0x588c70=_0x588c70-0x0;let _0x2c6afb=a531_0x2bf7[_0x588c70];return _0x2c6afb;};const _0x20e135=a531_0x2c6a;'use strict';const attributes=require(_0x20e135('0x0'));module[_0x20e135('0x3')]=function(_0x4abee0){const _0x2b2ece=_0x20e135,_0x315684=_0x4abee0[_0x2b2ece('0x2')](_0x2b2ece('0x1'),attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});return _0x315684;}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index a64c8e6..7da63cf 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a532_0x2634=['delete','Router','destroy','index','describe','get','put','/:id','exports','express','update','show','/describe','/:id/download','download','isAuthenticated'];(function(_0x37a738,_0x2634f0){const _0x57f514=function(_0x3a4b50){while(--_0x3a4b50){_0x37a738['push'](_0x37a738['shift']());}};_0x57f514(++_0x2634f0);}(a532_0x2634,0xbd));const a532_0x57f5=function(_0x37a738,_0x2634f0){_0x37a738=_0x37a738-0x0;let _0x57f514=a532_0x2634[_0x37a738];return _0x57f514;};const _0x1b7778=a532_0x57f5;'use strict';const express=require(_0x1b7778('0xc')),router=express[_0x1b7778('0x4')](),auth=require('../../components/auth/service'),controller=require('./screenRecording.controller');router['get']('/',auth[_0x1b7778('0x2')](),controller[_0x1b7778('0x6')]),router['get'](_0x1b7778('0xf'),auth[_0x1b7778('0x2')](),controller[_0x1b7778('0x7')]),router[_0x1b7778('0x8')](_0x1b7778('0xa'),auth[_0x1b7778('0x2')](),controller[_0x1b7778('0xe')]),router[_0x1b7778('0x8')](_0x1b7778('0x0'),auth[_0x1b7778('0x2')](),controller[_0x1b7778('0x1')]),router['post']('/',auth[_0x1b7778('0x2')](),controller['create']),router[_0x1b7778('0x9')](_0x1b7778('0xa'),auth['isAuthenticated'](),controller[_0x1b7778('0xd')]),router[_0x1b7778('0x3')](_0x1b7778('0xa'),auth[_0x1b7778('0x2')](),controller[_0x1b7778('0x5')]),module[_0x1b7778('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index fab78a4..1108013 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a533_0x992c=['startedAt','exports','MM-DD-YYYY\x20HH:mm','toString','moment','sequelize','setDataValue','extname','path','duration','getDataValue','replace','format','STRING','value','INTEGER','updatedAt','closedAt','DATE'];(function(_0x3660ca,_0x992cc0){const _0x517631=function(_0x54df58){while(--_0x54df58){_0x3660ca['push'](_0x3660ca['shift']());}};_0x517631(++_0x992cc0);}(a533_0x992c,0x1da));const a533_0x5176=function(_0x3660ca,_0x992cc0){_0x3660ca=_0x3660ca-0x0;let _0x517631=a533_0x992c[_0x3660ca];return _0x517631;};const _0x5a8296=a533_0x5176;'use strict';const Sequelize=require(_0x5a8296('0x6')),moment=require(_0x5a8296('0x5')),path=require(_0x5a8296('0x9'));module[_0x5a8296('0x2')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x2ad8d7=_0x5a8296;return this['getDataValue'](_0x2ad8d7('0xf'))?path[_0x2ad8d7('0x8')](this[_0x2ad8d7('0xb')](_0x2ad8d7('0xf'))):undefined;}},'interactionid':{'type':Sequelize[_0x5a8296('0xe')]},'channel':{'type':Sequelize[_0x5a8296('0xe')]},'value':{'type':Sequelize[_0x5a8296('0xe')],'set':function(_0x54df58){const _0x240a50=_0x5a8296,_0x5ddcee=_0x54df58[_0x240a50('0xc')](/\\/g,'/');this[_0x240a50('0x7')](_0x240a50('0xf'),_0x5ddcee);}},'rating':{'type':Sequelize[_0x5a8296('0x10')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize['INTEGER'],'set':function(_0x55fddd){const _0x2d4d0b=_0x5a8296;this['setDataValue'](_0x2d4d0b('0x1'),moment()['subtract'](_0x55fddd,'ms')),this['setDataValue'](_0x2d4d0b('0x12'),moment()),this[_0x2d4d0b('0x7')](_0x2d4d0b('0xa'),_0x55fddd);}},'startedAt':{'type':Sequelize[_0x5a8296('0x0')],'get':function(){const _0x4885c5=_0x5a8296;return moment(this[_0x4885c5('0xb')](_0x4885c5('0x1')))[_0x4885c5('0xd')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'closedAt':{'type':Sequelize[_0x5a8296('0x0')],'get':function(){const _0x2559eb=_0x5a8296;return moment(this[_0x2559eb('0xb')](_0x2559eb('0x12')))[_0x2559eb('0xd')](_0x2559eb('0x3'))[_0x2559eb('0x4')]();}},'createdAt':{'type':Sequelize[_0x5a8296('0x0')],'get':function(){const _0x526f84=_0x5a8296;return moment(this[_0x526f84('0xb')]('createdAt'))[_0x526f84('0xd')]('MM-DD-YYYY\x20HH:mm')['toString']();}},'updatedAt':{'type':Sequelize[_0x5a8296('0x0')],'get':function(){const _0x393df2=_0x5a8296;return moment(this[_0x393df2('0xb')](_0x393df2('0x11')))['format']('MM-DD-YYYY\x20HH:mm')[_0x393df2('0x4')]();}}}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index 9915247..c2f5a68 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a534_0x262f=['intersection','filters','secrets','like','server/files/screen_recordings','status','uniqueid','extname','download','../../components/encryptor','create','destroy','existsSync','type','attributes','ScreenRecording','include','closedAt','../../config/logger','info','send','../../mysqldb','../../components/parsers/qs','order','limit','map','fields','Not\x20found','count','query','body','rows','nolimit','end','where','differenceBy','index','then','api','isNil','error-middleware/errors','update','json','merge','cancellazione\x20fisica\x20documento\x20%s','.cypher','unlinkSync','%s.cypher','length','File:\x20\x22','root','ScreenRecording\x20not\x20found','filename','value','VIRTUAL','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','lodash','undefined','format','options','key','util','fieldName','recording','params','decryptFile','offset','createdAt','sendStatus','includeAll','findOne','describe','../../config/environment','rawAttributes','Entity\x20not\x20found','sort','stack','model','name','catch','keys'];(function(_0x28b37d,_0x262faf){const _0x1b42cb=function(_0x15d07f){while(--_0x15d07f){_0x28b37d['push'](_0x28b37d['shift']());}};_0x1b42cb(++_0x262faf);}(a534_0x262f,0xc5));const a534_0x1b42=function(_0x28b37d,_0x262faf){_0x28b37d=_0x28b37d-0x0;let _0x1b42cb=a534_0x262f[_0x28b37d];return _0x1b42cb;};const _0x570e9c=a534_0x1b42;'use strict';const util=require(_0x570e9c('0x1a')),path=require('path'),fs=require('fs'),_=require(_0x570e9c('0x15')),qs=require(_0x570e9c('0x44')),logger=require(_0x570e9c('0x40'))(_0x570e9c('0x3')),config=require(_0x570e9c('0x25')),db=require(_0x570e9c('0x43'))['db'],{Op,ValidationError}=require('sequelize'),{InternalError}=require(_0x570e9c('0x5'));function respondWithResult(_0x15d07f,_0x55fe17){return _0x55fe17=_0x55fe17||0xc8,function(_0xd54d74){const _0x5ee67a=a534_0x1b42;if(_0xd54d74)return _0x15d07f[_0x5ee67a('0x33')](_0x55fe17)[_0x5ee67a('0x7')](_0xd54d74);};}function respondWithFilteredResult(_0x311cd8,_0x1a9811){return function(_0x449b28){const _0x52661e=a534_0x1b42;if(_0x449b28){const _0x2e3e0f=_0x449b28[_0x52661e('0x4a')],_0x2b7035=_0x1a9811[_0x52661e('0x1f')];let _0x144fe0=_0x1a9811[_0x52661e('0x1f')]+_0x1a9811[_0x52661e('0x46')],_0x4868af;return _0x144fe0>=_0x2e3e0f?(_0x144fe0=_0x2e3e0f,_0x4868af=0xc8):_0x4868af=0xce,_0x311cd8['status'](_0x4868af),_0x311cd8['set']('Content-Range',_0x2b7035+'-'+_0x144fe0+'/'+_0x2e3e0f)[_0x52661e('0x7')](_0x449b28);}return null;};}function saveUpdates(_0x4ef198){return function(_0x449c13){const _0x4e5568=a534_0x1b42;if(_0x449c13)return _0x449c13[_0x4e5568('0x6')](_0x4ef198)['then'](function(_0x2545f5){return _0x2545f5;});return null;};}function handleEntityNotFound(_0x1a33c8){return function(_0x53fb7f){const _0x2d66b7=a534_0x1b42;return!_0x53fb7f&&_0x1a33c8[_0x2d66b7('0x21')](0x194),_0x53fb7f;};}function handleError(_0x3a580f,_0xd31156){return _0xd31156=_0xd31156||0x1f4,function(_0x466fd5){const _0x4986ce=a534_0x1b42;logger['error'](_0x466fd5[_0x4986ce('0x29')]),_0x466fd5[_0x4986ce('0x2b')]&&delete _0x466fd5['name'],_0x3a580f[_0x4986ce('0x33')](_0xd31156)[_0x4986ce('0x42')](_0x466fd5);};}exports[_0x570e9c('0x1')]=function(_0x3bda23,_0x13c993){const _0x23cb7b=_0x570e9c;let _0x54474f={};const _0x8967da={},_0x178096={'count':0x0,'rows':[]},_0x3b20d7=_[_0x23cb7b('0x47')](db[_0x23cb7b('0x3d')][_0x23cb7b('0x26')],function(_0x4b2b5f){const _0x300f7c=_0x23cb7b;return{'name':_0x4b2b5f[_0x300f7c('0x1b')],'type':_0x4b2b5f[_0x300f7c('0x3b')][_0x300f7c('0x19')]};});_0x8967da[_0x23cb7b('0x2a')]=_[_0x23cb7b('0x0')](_[_0x23cb7b('0x47')](_0x3b20d7,'name'),[_0x23cb7b('0x17')]),_0x8967da[_0x23cb7b('0x4b')]=_[_0x23cb7b('0x2d')](_0x3bda23[_0x23cb7b('0x4b')]),_0x8967da[_0x23cb7b('0x2f')]=_[_0x23cb7b('0x2e')](_0x8967da[_0x23cb7b('0x2a')],_0x8967da[_0x23cb7b('0x4b')]),_0x54474f[_0x23cb7b('0x3c')]=_[_0x23cb7b('0x2e')](_0x8967da['model'],qs[_0x23cb7b('0x48')](_0x3bda23['query']['fields'])),_0x54474f['attributes']=_0x54474f[_0x23cb7b('0x3c')][_0x23cb7b('0xd')]?_0x54474f['attributes']:_0x8967da[_0x23cb7b('0x2a')];typeof _0x3bda23['query'][_0x23cb7b('0x4e')]===_0x23cb7b('0x16')&&(_0x54474f[_0x23cb7b('0x46')]=qs[_0x23cb7b('0x46')](_0x3bda23[_0x23cb7b('0x4b')][_0x23cb7b('0x46')]),_0x54474f[_0x23cb7b('0x1f')]=qs[_0x23cb7b('0x1f')](_0x3bda23[_0x23cb7b('0x4b')][_0x23cb7b('0x1f')]));_0x54474f[_0x23cb7b('0x45')]=qs[_0x23cb7b('0x28')](_0x3bda23[_0x23cb7b('0x4b')][_0x23cb7b('0x28')]),_0x54474f[_0x23cb7b('0x50')]=qs[_0x23cb7b('0x2f')](_['pick'](_0x3bda23['query'],_0x8967da[_0x23cb7b('0x2f')]),_0x3b20d7);_0x3bda23[_0x23cb7b('0x4b')]['filter']&&(_0x54474f['where']=_[_0x23cb7b('0x8')](_0x54474f[_0x23cb7b('0x50')],{[Op['or']]:_['map'](_0x3b20d7,function(_0x5615f5){const _0x3ee146=_0x23cb7b;if(_0x5615f5['type']!==_0x3ee146('0x13')){const _0x2386e9={};return _0x2386e9[_0x5615f5['name']]={[Op[_0x3ee146('0x31')]]:'%'+_0x3bda23[_0x3ee146('0x4b')]['filter']+'%'},_0x2386e9;}})}));_0x54474f=_[_0x23cb7b('0x8')]({},_0x54474f,_0x3bda23[_0x23cb7b('0x18')]);const _0x1fb427={'where':_0x54474f[_0x23cb7b('0x50')]};return db[_0x23cb7b('0x3d')]['count'](_0x1fb427)[_0x23cb7b('0x2')](function(_0x59dfc6){const _0x39f435=_0x23cb7b;return _0x178096[_0x39f435('0x4a')]=_0x59dfc6,_0x3bda23[_0x39f435('0x4b')]['includeAll']&&(_0x54474f['include']=[{'all':!![]}]),db[_0x39f435('0x3d')]['findAll'](_0x54474f);})[_0x23cb7b('0x2')](function(_0x36b8fb){const _0x25039c=_0x23cb7b;return _0x178096[_0x25039c('0x4d')]=_0x36b8fb,_0x178096;})[_0x23cb7b('0x2')](respondWithFilteredResult(_0x13c993,_0x54474f))[_0x23cb7b('0x2c')](handleError(_0x13c993,null));},exports['show']=function(_0x1d01bc,_0x5f310f){const _0x3b290b=_0x570e9c;let _0x29aa49={'raw':![],'where':{'id':_0x1d01bc[_0x3b290b('0x1d')]['id']}};const _0x36ee98={};return _0x36ee98[_0x3b290b('0x2a')]=_['keys'](db[_0x3b290b('0x3d')][_0x3b290b('0x26')]),_0x36ee98[_0x3b290b('0x4b')]=_[_0x3b290b('0x2d')](_0x1d01bc['query']),_0x36ee98[_0x3b290b('0x2f')]=_[_0x3b290b('0x2e')](_0x36ee98[_0x3b290b('0x2a')],_0x36ee98[_0x3b290b('0x4b')]),_0x29aa49['attributes']=_[_0x3b290b('0x2e')](_0x36ee98[_0x3b290b('0x2a')],qs[_0x3b290b('0x48')](_0x1d01bc[_0x3b290b('0x4b')][_0x3b290b('0x48')])),_0x29aa49[_0x3b290b('0x3c')]=_0x29aa49[_0x3b290b('0x3c')]['length']?_0x29aa49['attributes']:_0x36ee98[_0x3b290b('0x2a')],_0x1d01bc[_0x3b290b('0x4b')][_0x3b290b('0x22')]&&(_0x29aa49[_0x3b290b('0x3e')]=[{'all':!![]}]),_0x29aa49=_[_0x3b290b('0x8')]({},_0x29aa49,_0x1d01bc['options']),db[_0x3b290b('0x3d')][_0x3b290b('0x23')](_0x29aa49)[_0x3b290b('0x2')](handleEntityNotFound(_0x5f310f,null))[_0x3b290b('0x2')](respondWithResult(_0x5f310f,null))[_0x3b290b('0x2c')](handleError(_0x5f310f,null));},exports[_0x570e9c('0x38')]=function(_0xf337d5,_0x4856e1){const _0x1a49b3=_0x570e9c;return db[_0x1a49b3('0x3d')]['create'](_0xf337d5[_0x1a49b3('0x4c')],{})['then'](respondWithResult(_0x4856e1,0xc9))[_0x1a49b3('0x2c')](handleError(_0x4856e1,null));},exports[_0x570e9c('0x6')]=function(_0x2fa758,_0x4b77f9){const _0x47b17d=_0x570e9c;return _0x2fa758[_0x47b17d('0x4c')]['id']&&delete _0x2fa758[_0x47b17d('0x4c')]['id'],delete _0x2fa758[_0x47b17d('0x4c')]['duration'],delete _0x2fa758[_0x47b17d('0x4c')][_0x47b17d('0x20')],delete _0x2fa758['body'][_0x47b17d('0x3f')],delete _0x2fa758['body'][_0x47b17d('0x12')],db[_0x47b17d('0x3d')][_0x47b17d('0x23')]({'where':{'id':_0x2fa758['params']['id']}})['then'](handleEntityNotFound(_0x4b77f9,null))[_0x47b17d('0x2')](saveUpdates(_0x2fa758[_0x47b17d('0x4c')],null))[_0x47b17d('0x2')](respondWithResult(_0x4b77f9,null))[_0x47b17d('0x2c')](handleError(_0x4b77f9,null));},exports['describe']=function(_0x3c9231,_0x52ad0e){const _0x5e9488=_0x570e9c;return db[_0x5e9488('0x3d')][_0x5e9488('0x24')]()[_0x5e9488('0x2')](respondWithResult(_0x52ad0e,null))[_0x5e9488('0x2c')](handleError(_0x52ad0e,null));},exports[_0x570e9c('0x36')]=function(_0x50fc52,_0x33abf0){const _0x405a9e=_0x570e9c,_0x22f089=require(_0x405a9e('0x37'));let _0x51968c=![];const _0x2ce5fd={};return _0x50fc52[_0x405a9e('0x4b')][_0x405a9e('0x3b')]&&_0x50fc52[_0x405a9e('0x4b')]['type']===_0x405a9e('0x34')?_0x2ce5fd[_0x405a9e('0x34')]=_0x50fc52[_0x405a9e('0x1d')]['id']:_0x2ce5fd['id']=_0x50fc52[_0x405a9e('0x1d')]['id'],db[_0x405a9e('0x3d')]['findOne']({'where':_0x2ce5fd,'attributes':['id',_0x405a9e('0x12')],'raw':!![]})[_0x405a9e('0x2')](handleEntityNotFound(_0x33abf0,null))[_0x405a9e('0x2')](function(_0x26e338){const _0x5c6239=_0x405a9e;if(_0x26e338){const _0xbcd7e6=path['join'](config['root'],'server/files/screen_recordings',_0x26e338[_0x5c6239('0x12')]),_0x25ed14=util[_0x5c6239('0x17')](_0x5c6239('0xc'),_0xbcd7e6);if(fs[_0x5c6239('0x3a')](_0x25ed14))return _0x51968c=!![],_0x22f089[_0x5c6239('0x1e')](_0x25ed14,_0xbcd7e6,config[_0x5c6239('0x30')][_0x5c6239('0x1c')])[_0x5c6239('0x2')](function(){return _0x26e338;});return _0x26e338;}})[_0x405a9e('0x2')](function(_0x12ae28){const _0x325d48=_0x405a9e;if(_0x12ae28){const _0xaa267f=path['join'](config[_0x325d48('0xf')],_0x325d48('0x32'),_0x12ae28[_0x325d48('0x12')]);if(!fs['existsSync'](_0xaa267f))throw new ValidationError(_0x325d48('0x10'));return _0x12ae28['filename']?_0x33abf0['download'](_0xaa267f,_0x12ae28[_0x325d48('0x11')]+path[_0x325d48('0x35')](_0xaa267f),function(){_0x51968c&&fs['unlink'](_0xaa267f);}):_0x33abf0[_0x325d48('0x36')](_0xaa267f,function(){_0x51968c&&fs['unlink'](_0xaa267f);});}})[_0x405a9e('0x2c')](function(_0x369a7f){const _0x22c4b3=_0x405a9e;if(_0x369a7f['message']===_0x22c4b3('0x10'))_0x33abf0[_0x22c4b3('0x33')](0x194)['send'](_0x22c4b3('0x49'));else return handleError(_0x33abf0,null);});},exports[_0x570e9c('0x39')]=function(_0x26f249,_0x3fd63a){const _0x4751ba=_0x570e9c;return db[_0x4751ba('0x3d')][_0x4751ba('0x23')]({'where':{'id':_0x26f249[_0x4751ba('0x1d')]['id']}})[_0x4751ba('0x2')](function(_0x21c86c){const _0xabeba2=_0x4751ba;if(!_0x21c86c)throw new ReferenceError(_0xabeba2('0x27'));return _0x21c86c;})['then'](function(_0xefb919){const _0x5d240d=_0x4751ba;let _0x52a520=path['join'](config[_0x5d240d('0xf')],_0x5d240d('0x32'),_0xefb919[_0x5d240d('0x12')]);return logger[_0x5d240d('0x41')](_0x5d240d('0x9'),_0x52a520),!_['isNil'](_0xefb919['value'])&&fs['existsSync'](_0x52a520)&&(logger[_0x5d240d('0x41')](_0x5d240d('0xe')+_0x52a520+_0x5d240d('0x14')),fs[_0x5d240d('0xb')](_0x52a520)),_0x52a520=_0x52a520+_0x5d240d('0xa'),!_[_0x5d240d('0x4')](_0xefb919[_0x5d240d('0x12')])&&fs[_0x5d240d('0x3a')](_0x52a520)&&(logger[_0x5d240d('0x41')]('File:\x20\x22'+_0x52a520+_0x5d240d('0x14')),fs[_0x5d240d('0xb')](_0x52a520)),_0xefb919;})[_0x4751ba('0x2')](function(_0x115580){if(!_0x115580)throw new InternalError();return _0x115580['destroy']();})[_0x4751ba('0x2')](function(){const _0x40f3b4=_0x4751ba;_0x3fd63a[_0x40f3b4('0x33')](0xcc)[_0x40f3b4('0x4f')]();})[_0x4751ba('0x2c')](handleError(_0x3fd63a,null));}; \ No newline at end of file +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 diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index aa317c4..cbe70e2 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a535_0x25f4=['interactionid','exports','./screenRecording.attributes','ScreenRecording'];(function(_0x17d788,_0x25f448){const _0x5e51ce=function(_0x22a4cc){while(--_0x22a4cc){_0x17d788['push'](_0x17d788['shift']());}};_0x5e51ce(++_0x25f448);}(a535_0x25f4,0x1ce));const a535_0x5e51=function(_0x17d788,_0x25f448){_0x17d788=_0x17d788-0x0;let _0x5e51ce=a535_0x25f4[_0x17d788];return _0x5e51ce;};const _0x3b6fab=a535_0x5e51;'use strict';const attributes=require(_0x3b6fab('0x0'));module[_0x3b6fab('0x3')]=function(_0x22a4cc){const _0x3871ac=_0x3b6fab,_0x4c95ec=_0x22a4cc['define'](_0x3871ac('0x1'),attributes,{'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x3871ac('0x2'),'fields':[_0x3871ac('0x2')]}],'timestamps':!![]});return _0x4c95ec;}; \ No newline at end of file +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 diff --git a/server/api/setting/index.js b/server/api/setting/index.js index f816dad..21448f3 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a536_0x3df5=['gdpr','show','update','../../config/environment','/:id/gdpr','diskStorage','getLogoLogin','addLogoLogin','logo','./setting.controller','addPreferred','addFavicon','/:id','exports','getLogo','extname','index','/:id/logo','put','/:id/logo_login','multer','../../components/auth/service','root','/:id/preferred','originalname','single','Router','express','post','getFavicon','get','util','file','/:id/favicon','%s%s'];(function(_0x54c4bb,_0x3df5e0){const _0x200563=function(_0x30e105){while(--_0x30e105){_0x54c4bb['push'](_0x54c4bb['shift']());}};_0x200563(++_0x3df5e0);}(a536_0x3df5,0xf4));const a536_0x2005=function(_0x54c4bb,_0x3df5e0){_0x54c4bb=_0x54c4bb-0x0;let _0x200563=a536_0x3df5[_0x54c4bb];return _0x200563;};const _0xa8611c=a536_0x2005;'use strict';const multer=require(_0xa8611c('0x15')),util=require(_0xa8611c('0x20')),path=require('path'),express=require(_0xa8611c('0x1c')),router=express[_0xa8611c('0x1b')](),auth=require(_0xa8611c('0x16')),config=require(_0xa8611c('0x4')),controller=require(_0xa8611c('0xa')),upload=_0x30e105=>multer({'storage':multer[_0xa8611c('0x6')]({'destination':function(_0x3fc9e7,_0x3133d7,_0x60eaba){const _0x18abfd=_0xa8611c;_0x60eaba(null,path['join'](config[_0x18abfd('0x17')],'files/images/logos/'));},'filename':function(_0x397913,_0x795378,_0x37c209){const _0x5d94e5=_0xa8611c;_0x37c209(null,util['format'](_0x5d94e5('0x0'),_0x30e105,path[_0x5d94e5('0x10')](_0x795378[_0x5d94e5('0x19')])));}})});router[_0xa8611c('0x1f')]('/',auth['isAuthenticated'](),controller[_0xa8611c('0x11')]),router['get'](_0xa8611c('0xd'),controller[_0xa8611c('0x2')]),router[_0xa8611c('0x1f')](_0xa8611c('0x12'),controller[_0xa8611c('0xf')]),router[_0xa8611c('0x1f')](_0xa8611c('0x14'),controller[_0xa8611c('0x7')]),router[_0xa8611c('0x1f')](_0xa8611c('0x5'),controller[_0xa8611c('0x1')]),router['get']('/:id/preferred',controller['getPreferred']),router[_0xa8611c('0x1f')](_0xa8611c('0x22'),controller[_0xa8611c('0x1e')]),router['post'](_0xa8611c('0x12'),upload(_0xa8611c('0x9'))[_0xa8611c('0x1a')](_0xa8611c('0x21')),controller['addLogo']),router[_0xa8611c('0x1d')](_0xa8611c('0x14'),upload('logologin')['single'](_0xa8611c('0x21')),controller[_0xa8611c('0x8')]),router[_0xa8611c('0x1d')](_0xa8611c('0x18'),upload('preferred')[_0xa8611c('0x1a')](_0xa8611c('0x21')),controller[_0xa8611c('0xb')]),router[_0xa8611c('0x1d')]('/:id/favicon',upload('favicon')[_0xa8611c('0x1a')](_0xa8611c('0x21')),controller[_0xa8611c('0xc')]),router[_0xa8611c('0x13')](_0xa8611c('0xd'),auth['isAuthenticated'](),controller[_0xa8611c('0x3')]),module[_0xa8611c('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index 13b2da0..5682c01 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a537_0x2994=['https://www.xcally.com/bar/phonebar/autoupdater.xml','BOOLEAN','sequelize','INTEGER','exports','alternate','UNSIGNED','min_mailbox','STRING','/var/opt/motion2/server/files/sounds/converted'];(function(_0x1d7874,_0x29945c){const _0x89c1f6=function(_0x3bbe54){while(--_0x3bbe54){_0x1d7874['push'](_0x1d7874['shift']());}};_0x89c1f6(++_0x29945c);}(a537_0x2994,0xcd));const a537_0x89c1=function(_0x1d7874,_0x29945c){_0x1d7874=_0x1d7874-0x0;let _0x89c1f6=a537_0x2994[_0x1d7874];return _0x89c1f6;};const _0x1d043b=a537_0x89c1;'use strict';const Sequelize=require(_0x1d043b('0x7'));module[_0x1d043b('0x9')]={'min_internal':{'type':Sequelize[_0x1d043b('0x8')](0xb),'unique':'min_internal','defaultValue':0x3e8},'min_mailbox':{'type':Sequelize[_0x1d043b('0x8')](0xb),'unique':_0x1d043b('0x2'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize[_0x1d043b('0x8')](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x1d043b('0x3')],'defaultValue':_0x1d043b('0x4')},'logo':{'type':Sequelize['STRING']},'defaultLogo':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0x1d043b('0x3')]},'defaultLoginLogo':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x1d043b('0x3')]},'defaultHeaderWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'securePassword':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'firstSetup':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x1d043b('0x3')]},'turnaddr':{'type':Sequelize[_0x1d043b('0x3')]},'turnusername':{'type':Sequelize['STRING']},'turnpassword':{'type':Sequelize[_0x1d043b('0x3')]},'pageTitle':{'type':Sequelize[_0x1d043b('0x3')]},'defaultPageTitle':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0x1d043b('0x8')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize['STRING'],'defaultValue':_0x1d043b('0x5')},'enableEmailPreview':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'split':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize['INTEGER'],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0x1d043b('0x8')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize[_0x1d043b('0x8')],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize[_0x1d043b('0x3')],'defaultValue':_0x1d043b('0x0')},'chatTimeout':{'type':Sequelize[_0x1d043b('0x8')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'preferred':{'type':Sequelize[_0x1d043b('0x3')]},'defaultPreferred':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'rtlSupport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x1d043b('0x3')]},'allowedLoginAttempts':{'type':Sequelize[_0x1d043b('0x8')],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x1d043b('0x8')],'defaultValue':0xa},'favicon':{'type':Sequelize[_0x1d043b('0x3')]},'defaultFavicon':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize['INTEGER'],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize[_0x1d043b('0x8')]},'transcribeRegion':{'type':Sequelize[_0x1d043b('0x3')]},'sentiment':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':![]},'automaticSentiment':{'type':Sequelize[_0x1d043b('0x6')],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize[_0x1d043b('0x8')]},'sentimentRegion':{'type':Sequelize[_0x1d043b('0x3')]},'language':{'type':Sequelize[_0x1d043b('0x3')]},'bucket':{'type':Sequelize[_0x1d043b('0x3')]},'googleSsoEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x1d043b('0x8')](0x2)[_0x1d043b('0x1')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file +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 diff --git a/server/api/setting/setting.controller.js b/server/api/setting/setting.controller.js index ff0b541..a201ab8 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a538_0x148d=['like','defaultLogo','merge','length','filename','then','query','default_preferred.png','preferred','offset','toLower','params','status','path','set','Setting','../../config/environment','limit','getLicense','favicon','rawAttributes','default_loginLogo.svg','join','loginLogo','map','catch','findOne','addPreferred','files/images/logos','findAll','json','root','../../components/parsers/qs','\x20not\x20found','filters','name','fields','type','nolimit','addLogoLogin','stack','count','intersection','update','where','logo','defaultLoginLogo','default_logo.svg','include','getLogo','order','file','sequelize','download','upperFirst','../../config/license/util','options','securePassword','getFavicon','body','sort','default_favicon.ico','default','includeAll','defaultFavicon','addLogo','defaultPreferred','keys','Content-Range','model','undefined','gdpr','existsSync','addFavicon','attributes','filter','custom','api'];(function(_0x5846e6,_0x148d1a){const _0xe8d5b8=function(_0x4dc23d){while(--_0x4dc23d){_0x5846e6['push'](_0x5846e6['shift']());}};_0xe8d5b8(++_0x148d1a);}(a538_0x148d,0xa5));const a538_0xe8d5=function(_0x5846e6,_0x148d1a){_0x5846e6=_0x5846e6-0x0;let _0xe8d5b8=a538_0x148d[_0x5846e6];return _0xe8d5b8;};const _0x489e4e=a538_0xe8d5;'use strict';const path=require(_0x489e4e('0x4')),fs=require('fs'),_=require('lodash'),qs=require(_0x489e4e('0x17')),logger=require('../../config/logger')(_0x489e4e('0x44')),config=require(_0x489e4e('0x7')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x489e4e('0x2b')),utilLicense=require(_0x489e4e('0x2e'));function respondWithResult(_0x4dc23d,_0xc5cc8a){return _0xc5cc8a=_0xc5cc8a||0xc8,function(_0x29cea8){const _0x5805b9=a538_0xe8d5;if(_0x29cea8)return _0x4dc23d[_0x5805b9('0x3')](_0xc5cc8a)[_0x5805b9('0x15')](_0x29cea8);};}function respondWithFilteredResult(_0x48fb1a,_0xcf5c98){return function(_0x25b34d){const _0x4d4811=a538_0xe8d5;if(_0x25b34d){const _0x425e0e=_0x25b34d[_0x4d4811('0x20')],_0x9e45b3=_0xcf5c98['offset'];let _0x3e5de5=_0xcf5c98['offset']+_0xcf5c98[_0x4d4811('0x8')],_0x7f8cdd;return _0x3e5de5>=_0x425e0e?(_0x3e5de5=_0x425e0e,_0x7f8cdd=0xc8):_0x7f8cdd=0xce,_0x48fb1a[_0x4d4811('0x3')](_0x7f8cdd),_0x48fb1a[_0x4d4811('0x5')](_0x4d4811('0x3b'),_0x9e45b3+'-'+_0x3e5de5+'/'+_0x425e0e)[_0x4d4811('0x15')](_0x25b34d);}return null;};}function saveUpdates(_0x4d0873){return function(_0x2abff3){const _0x14fdbc=a538_0xe8d5;if(_0x2abff3)return _0x2abff3[_0x14fdbc('0x22')](_0x4d0873)[_0x14fdbc('0x4a')](function(_0x125130){return _0x125130;});return null;};}function handleEntityNotFound(_0x1a66cc){return function(_0x5cb5a1){return!_0x5cb5a1&&_0x1a66cc['sendStatus'](0x194),_0x5cb5a1;};}function handleError(_0x4b7e8e,_0x4094d6){return _0x4094d6=_0x4094d6||0x1f4,function(_0x3f35e9){const _0x4d10dc=a538_0xe8d5;logger['error'](_0x3f35e9[_0x4d10dc('0x1f')]),_0x3f35e9[_0x4d10dc('0x1a')]&&delete _0x3f35e9[_0x4d10dc('0x1a')],_0x4b7e8e[_0x4d10dc('0x3')](_0x4094d6)['send'](_0x3f35e9);};}exports['index']=function(_0x1c00f5,_0x153603){const _0x512f74=_0x489e4e;let _0x4f488c={};const _0xfcfbb9={},_0x19c551={'count':0x0,'rows':[]},_0x4bbb29=_[_0x512f74('0xf')](db[_0x512f74('0x6')][_0x512f74('0xb')],function(_0x2fb70f){const _0x2bb336=_0x512f74;return{'name':_0x2fb70f['fieldName'],'type':_0x2fb70f[_0x2bb336('0x1c')]['key']};});_0xfcfbb9[_0x512f74('0x3c')]=_[_0x512f74('0xf')](_0x4bbb29,_0x512f74('0x1a')),_0xfcfbb9['query']=_[_0x512f74('0x3a')](_0x1c00f5['query']),_0xfcfbb9[_0x512f74('0x19')]=_['intersection'](_0xfcfbb9['model'],_0xfcfbb9['query']),_0x4f488c['attributes']=_[_0x512f74('0x21')](_0xfcfbb9[_0x512f74('0x3c')],qs[_0x512f74('0x1b')](_0x1c00f5['query'][_0x512f74('0x1b')])),_0x4f488c[_0x512f74('0x41')]=_0x4f488c[_0x512f74('0x41')]['length']?_0x4f488c['attributes']:_0xfcfbb9['model'];typeof _0x1c00f5[_0x512f74('0x4b')][_0x512f74('0x1d')]===_0x512f74('0x3d')&&(_0x4f488c[_0x512f74('0x8')]=qs[_0x512f74('0x8')](_0x1c00f5[_0x512f74('0x4b')]['limit']),_0x4f488c[_0x512f74('0x0')]=qs[_0x512f74('0x0')](_0x1c00f5[_0x512f74('0x4b')][_0x512f74('0x0')]));_0x4f488c[_0x512f74('0x29')]=qs[_0x512f74('0x33')](_0x1c00f5['query'][_0x512f74('0x33')]),_0x4f488c[_0x512f74('0x23')]=qs[_0x512f74('0x19')](_['pick'](_0x1c00f5[_0x512f74('0x4b')],_0xfcfbb9[_0x512f74('0x19')]),_0x4bbb29);_0x1c00f5[_0x512f74('0x4b')][_0x512f74('0x42')]&&(_0x4f488c[_0x512f74('0x23')]=_[_0x512f74('0x47')](_0x4f488c[_0x512f74('0x23')],{[Op['or']]:_[_0x512f74('0xf')](_0x4bbb29,function(_0x451053){const _0x1bdbda=_0x512f74;if(_0x451053[_0x1bdbda('0x1c')]!=='VIRTUAL'){const _0x490578={};return _0x490578[_0x451053[_0x1bdbda('0x1a')]]={[Op[_0x1bdbda('0x45')]]:'%'+_0x1c00f5[_0x1bdbda('0x4b')][_0x1bdbda('0x42')]+'%'},_0x490578;}})}));_0x4f488c=_[_0x512f74('0x47')]({},_0x4f488c,_0x1c00f5[_0x512f74('0x2f')]);const _0x561fd8={'where':_0x4f488c[_0x512f74('0x23')]};return db[_0x512f74('0x6')][_0x512f74('0x20')](_0x561fd8)[_0x512f74('0x4a')](function(_0xe86604){const _0x54a107=_0x512f74;return _0x19c551[_0x54a107('0x20')]=_0xe86604,_0x1c00f5[_0x54a107('0x4b')][_0x54a107('0x36')]&&(_0x4f488c[_0x54a107('0x27')]=[{'all':!![]}]),db[_0x54a107('0x6')][_0x54a107('0x14')](_0x4f488c);})[_0x512f74('0x4a')](function(_0x357d3d){return _0x19c551['rows']=_0x357d3d,_0x19c551;})[_0x512f74('0x4a')](respondWithFilteredResult(_0x153603,_0x4f488c))[_0x512f74('0x10')](handleError(_0x153603,null));},exports['show']=function(_0x17628e,_0x2e17aa){const _0x19996f=_0x489e4e;let _0x1e8ef8={'raw':![],'where':{'id':_0x17628e[_0x19996f('0x2')]['id']}};const _0x130ef5={};return _0x130ef5[_0x19996f('0x3c')]=_[_0x19996f('0x3a')](db['Setting']['rawAttributes']),_0x130ef5[_0x19996f('0x4b')]=_[_0x19996f('0x3a')](_0x17628e[_0x19996f('0x4b')]),_0x130ef5['filters']=_[_0x19996f('0x21')](_0x130ef5[_0x19996f('0x3c')],_0x130ef5['query']),_0x1e8ef8[_0x19996f('0x41')]=_['intersection'](_0x130ef5['model'],qs[_0x19996f('0x1b')](_0x17628e[_0x19996f('0x4b')][_0x19996f('0x1b')])),_0x1e8ef8[_0x19996f('0x41')]=_0x1e8ef8['attributes'][_0x19996f('0x48')]?_0x1e8ef8[_0x19996f('0x41')]:_0x130ef5['model'],_0x17628e[_0x19996f('0x4b')]['includeAll']&&(_0x1e8ef8[_0x19996f('0x27')]=[{'all':!![]}]),_0x1e8ef8=_[_0x19996f('0x47')]({},_0x1e8ef8,_0x17628e[_0x19996f('0x2f')]),db['Setting'][_0x19996f('0x11')](_0x1e8ef8)[_0x19996f('0x4a')](handleEntityNotFound(_0x2e17aa,null))[_0x19996f('0x4a')](respondWithResult(_0x2e17aa,null))['catch'](handleError(_0x2e17aa,null));},exports[_0x489e4e('0x22')]=function(_0x4a57c4,_0x593914){const _0x3edced=_0x489e4e;return _0x4a57c4[_0x3edced('0x32')]['id']&&delete _0x4a57c4['body']['id'],db[_0x3edced('0x6')][_0x3edced('0x11')]({'where':{'id':_0x4a57c4['params']['id']}})['then'](handleEntityNotFound(_0x593914,null))['then'](saveUpdates(_0x4a57c4['body'],null))[_0x3edced('0x4a')](respondWithResult(_0x593914,null))[_0x3edced('0x10')](handleError(_0x593914,null));},exports[_0x489e4e('0x38')]=function(_0x19319e,_0x3ffaff){const _0x41f82b=_0x489e4e;return _0x19319e['file']&&_0x19319e[_0x41f82b('0x2a')][_0x41f82b('0x49')]&&(_0x19319e['body'][_0x41f82b('0x24')]=_0x19319e['file'][_0x41f82b('0x49')]),db['Setting'][_0x41f82b('0x11')]({'where':{'id':_0x19319e[_0x41f82b('0x2')]['id']}})[_0x41f82b('0x4a')](handleEntityNotFound(_0x3ffaff,null))[_0x41f82b('0x4a')](saveUpdates(_0x19319e[_0x41f82b('0x32')],null))[_0x41f82b('0x4a')](respondWithResult(_0x3ffaff,null))[_0x41f82b('0x10')](handleError(_0x3ffaff,null));},exports[_0x489e4e('0x1e')]=function(_0x1bc119,_0x1a225f){const _0x1916e3=_0x489e4e;return _0x1bc119[_0x1916e3('0x2a')]&&_0x1bc119['file'][_0x1916e3('0x49')]&&(_0x1bc119['body']['loginLogo']=_0x1bc119[_0x1916e3('0x2a')][_0x1916e3('0x49')]),db[_0x1916e3('0x6')][_0x1916e3('0x11')]({'where':{'id':_0x1bc119[_0x1916e3('0x2')]['id']}})[_0x1916e3('0x4a')](handleEntityNotFound(_0x1a225f,null))[_0x1916e3('0x4a')](saveUpdates(_0x1bc119[_0x1916e3('0x32')],null))[_0x1916e3('0x4a')](respondWithResult(_0x1a225f,null))[_0x1916e3('0x10')](handleError(_0x1a225f,null));},exports[_0x489e4e('0x28')]=function(_0x36903a,_0x1a29b0){const _0x543108=_0x489e4e,_0x57d066=path[_0x543108('0xd')](config[_0x543108('0x16')],'files/images/logos');let _0x355766={'custom':![]};return utilLicense[_0x543108('0x9')]()[_0x543108('0x4a')](function(_0x44fbdd){const _0x4c2064=_0x543108;return _0x44fbdd&&(_0x355766=_0x44fbdd),db[_0x4c2064('0x6')]['findOne']({'where':{'id':_0x36903a['params']['id']},'attributes':[_0x4c2064('0x24'),_0x4c2064('0xe'),'preferred',_0x4c2064('0xa'),_0x4c2064('0x46'),_0x4c2064('0x25'),_0x4c2064('0x39'),_0x4c2064('0x37')],'raw':!![]});})[_0x543108('0x4a')](handleEntityNotFound(_0x1a29b0,null))['then'](function(_0x1baa04){const _0x126756=_0x543108;if(_0x1baa04){let _0x2d7d7d=_0x1baa04[_0x126756('0x24')]&&fs[_0x126756('0x3f')](path['join'](_0x57d066,_[_0x126756('0x1')](_0x1baa04[_0x126756('0x24')])))?path[_0x126756('0xd')](_0x57d066,_[_0x126756('0x1')](_0x1baa04[_0x126756('0x24')])):path[_0x126756('0xd')](_0x57d066,_[_0x126756('0x1')](_0x126756('0x26')));const _0x15f7b9='default'+_['upperFirst']('logo');(_0x1baa04[_0x15f7b9]||!_0x355766[_0x126756('0x43')])&&(_0x2d7d7d=path[_0x126756('0xd')](_0x57d066,_['toLower']('default_logo.svg')));if(!fs['existsSync'](_0x2d7d7d))throw new ValidationError(_[_0x126756('0x2d')]('logo')+_0x126756('0x18'));return _0x1a29b0['download'](_0x2d7d7d);}})[_0x543108('0x10')](handleError(_0x1a29b0,null));},exports['getLogoLogin']=function(_0x416b30,_0x45d549){const _0xb1a1ef=_0x489e4e,_0x5ad226=path[_0xb1a1ef('0xd')](config[_0xb1a1ef('0x16')],_0xb1a1ef('0x13'));let _0x206e1a={'custom':![]};return utilLicense[_0xb1a1ef('0x9')]()['then'](function(_0x5d5a44){const _0x93f33c=_0xb1a1ef;return _0x5d5a44&&(_0x206e1a=_0x5d5a44),db[_0x93f33c('0x6')][_0x93f33c('0x11')]({'where':{'id':_0x416b30[_0x93f33c('0x2')]['id']},'attributes':['logo',_0x93f33c('0xe'),_0x93f33c('0x4d'),'favicon',_0x93f33c('0x46'),_0x93f33c('0x25'),_0x93f33c('0x39'),_0x93f33c('0x37')],'raw':!![]});})['then'](handleEntityNotFound(_0x45d549,null))[_0xb1a1ef('0x4a')](function(_0x185ec8){const _0x2ba4b1=_0xb1a1ef;if(_0x185ec8){let _0x475573=_0x185ec8[_0x2ba4b1('0xe')]&&fs['existsSync'](path[_0x2ba4b1('0xd')](_0x5ad226,_[_0x2ba4b1('0x1')](_0x185ec8[_0x2ba4b1('0xe')])))?path['join'](_0x5ad226,_['toLower'](_0x185ec8['loginLogo'])):path['join'](_0x5ad226,_[_0x2ba4b1('0x1')](_0x2ba4b1('0xc')));const _0x4f54d2=_0x2ba4b1('0x35')+_[_0x2ba4b1('0x2d')](_0x2ba4b1('0xe'));(_0x185ec8[_0x4f54d2]||!_0x206e1a['custom'])&&(_0x475573=path['join'](_0x5ad226,_['toLower'](_0x2ba4b1('0xc'))));if(!fs[_0x2ba4b1('0x3f')](_0x475573))throw new ValidationError(_['upperFirst']('loginLogo')+_0x2ba4b1('0x18'));return _0x45d549[_0x2ba4b1('0x2c')](_0x475573);}})[_0xb1a1ef('0x10')](handleError(_0x45d549,null));},exports[_0x489e4e('0x3e')]=function(_0x971a1d,_0x388c1f){const _0x1183d6=_0x489e4e;return db[_0x1183d6('0x6')]['findOne']({'where':{'id':_0x971a1d[_0x1183d6('0x2')]['id']},'attributes':[_0x1183d6('0x30')]})[_0x1183d6('0x4a')](respondWithResult(_0x388c1f,null))['catch'](handleError(_0x388c1f,null));},exports[_0x489e4e('0x12')]=function(_0x20aa01,_0x230a75){const _0xebeaa1=_0x489e4e;return _0x20aa01[_0xebeaa1('0x2a')]&&_0x20aa01[_0xebeaa1('0x2a')]['filename']&&(_0x20aa01[_0xebeaa1('0x32')][_0xebeaa1('0x4d')]=_0x20aa01[_0xebeaa1('0x2a')][_0xebeaa1('0x49')]),db['Setting'][_0xebeaa1('0x11')]({'where':{'id':_0x20aa01[_0xebeaa1('0x2')]['id']}})[_0xebeaa1('0x4a')](handleEntityNotFound(_0x230a75,null))[_0xebeaa1('0x4a')](saveUpdates(_0x20aa01[_0xebeaa1('0x32')],null))[_0xebeaa1('0x4a')](respondWithResult(_0x230a75,null))['catch'](handleError(_0x230a75,null));},exports['getPreferred']=function(_0x2d44cb,_0xb28e37){const _0x5d8f5a=_0x489e4e,_0x40a996=path[_0x5d8f5a('0xd')](config['root'],'files/images/logos');let _0x5096b={'custom':![]};return utilLicense['getLicense']()[_0x5d8f5a('0x4a')](function(_0x1547a8){const _0x205208=_0x5d8f5a;return _0x1547a8&&(_0x5096b=_0x1547a8),db[_0x205208('0x6')][_0x205208('0x11')]({'where':{'id':_0x2d44cb[_0x205208('0x2')]['id']},'attributes':[_0x205208('0x24'),_0x205208('0xe'),_0x205208('0x4d'),'favicon',_0x205208('0x46'),_0x205208('0x25'),_0x205208('0x39'),_0x205208('0x37')],'raw':!![]});})[_0x5d8f5a('0x4a')](handleEntityNotFound(_0xb28e37,null))[_0x5d8f5a('0x4a')](function(_0x49e829){const _0x239a84=_0x5d8f5a;if(_0x49e829){let _0x20aa2f=_0x49e829[_0x239a84('0x4d')]&&fs[_0x239a84('0x3f')](path[_0x239a84('0xd')](_0x40a996,_[_0x239a84('0x1')](_0x49e829[_0x239a84('0x4d')])))?path['join'](_0x40a996,_[_0x239a84('0x1')](_0x49e829['preferred'])):path[_0x239a84('0xd')](_0x40a996,_[_0x239a84('0x1')]('default_preferred.png'));const _0x3bed48=_0x239a84('0x35')+_[_0x239a84('0x2d')](_0x239a84('0x4d'));(_0x49e829[_0x3bed48]||!_0x5096b['custom']||!_0x5096b[_0x239a84('0x4d')])&&(_0x20aa2f=path[_0x239a84('0xd')](_0x40a996,_[_0x239a84('0x1')](_0x239a84('0x4c'))));if(!fs[_0x239a84('0x3f')](_0x20aa2f))throw new ValidationError(_[_0x239a84('0x2d')](_0x239a84('0x4d'))+_0x239a84('0x18'));return _0xb28e37[_0x239a84('0x2c')](_0x20aa2f);}})['catch'](handleError(_0xb28e37,null));},exports[_0x489e4e('0x40')]=function(_0x404f2c,_0x20bdc8){const _0x14b6a7=_0x489e4e;return _0x404f2c[_0x14b6a7('0x2a')]&&_0x404f2c['file'][_0x14b6a7('0x49')]&&(_0x404f2c['body'][_0x14b6a7('0xa')]=_0x404f2c[_0x14b6a7('0x2a')][_0x14b6a7('0x49')]),db[_0x14b6a7('0x6')][_0x14b6a7('0x11')]({'where':{'id':_0x404f2c['params']['id']}})[_0x14b6a7('0x4a')](handleEntityNotFound(_0x20bdc8,null))['then'](saveUpdates(_0x404f2c[_0x14b6a7('0x32')],null))['then'](respondWithResult(_0x20bdc8,null))[_0x14b6a7('0x10')](handleError(_0x20bdc8,null));},exports[_0x489e4e('0x31')]=function(_0x5df14b,_0x462cbb){const _0x239d0b=_0x489e4e,_0x222516=path[_0x239d0b('0xd')](config[_0x239d0b('0x16')],_0x239d0b('0x13'));let _0x1b8a5e={'custom':![]};return utilLicense[_0x239d0b('0x9')]()[_0x239d0b('0x4a')](function(_0x1436c8){const _0x5461f8=_0x239d0b;return _0x1436c8&&(_0x1b8a5e=_0x1436c8),db['Setting'][_0x5461f8('0x11')]({'where':{'id':_0x5df14b[_0x5461f8('0x2')]['id']},'attributes':[_0x5461f8('0x24'),_0x5461f8('0xe'),'preferred',_0x5461f8('0xa'),'defaultLogo',_0x5461f8('0x25'),_0x5461f8('0x39'),_0x5461f8('0x37')],'raw':!![]});})[_0x239d0b('0x4a')](handleEntityNotFound(_0x462cbb,null))[_0x239d0b('0x4a')](function(_0xb0f344){const _0x154247=_0x239d0b;if(_0xb0f344){let _0x4b50f2=_0xb0f344['favicon']&&fs[_0x154247('0x3f')](path['join'](_0x222516,_[_0x154247('0x1')](_0xb0f344[_0x154247('0xa')])))?path[_0x154247('0xd')](_0x222516,_[_0x154247('0x1')](_0xb0f344[_0x154247('0xa')])):path[_0x154247('0xd')](_0x222516,_[_0x154247('0x1')]('default_favicon.ico'));const _0x2e7deb=_0x154247('0x35')+_['upperFirst']('favicon');(_0xb0f344[_0x2e7deb]||!_0x1b8a5e[_0x154247('0x43')])&&(_0x4b50f2=path[_0x154247('0xd')](_0x222516,_[_0x154247('0x1')](_0x154247('0x34'))));if(!fs[_0x154247('0x3f')](_0x4b50f2))throw new ValidationError(_[_0x154247('0x2d')](_0x154247('0xa'))+_0x154247('0x18'));return _0x462cbb[_0x154247('0x2c')](_0x4b50f2);}})['catch'](handleError(_0x462cbb,null));}; \ No newline at end of file +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 diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index 838f749..ceab2dc 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a539_0x327f=['define','Setting','./setting.attributes'];(function(_0x540687,_0x327fc3){const _0x254dbb=function(_0x41a9af){while(--_0x41a9af){_0x540687['push'](_0x540687['shift']());}};_0x254dbb(++_0x327fc3);}(a539_0x327f,0xdc));const a539_0x254d=function(_0x540687,_0x327fc3){_0x540687=_0x540687-0x0;let _0x254dbb=a539_0x327f[_0x540687];return _0x254dbb;};const _0x25d576=a539_0x254d;'use strict';const attributes=require(_0x25d576('0x1'));module['exports']=function(_0x41a9af){const _0x5e0f1f=_0x25d576,_0x2f5bc7=_0x41a9af[_0x5e0f1f('0x2')](_0x5e0f1f('0x0'),attributes,{'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2f5bc7;}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index 4b000a2..714627d 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a540_0x581c=['exports','addDisposition','getAnswers','removeAnswers','addApplications','/:id/applications','statusGet','destroy','/:id/notify','describe','Router','create','removeAgents','delete','send','/:id/canned_answers','removeDispositions','/:id/dispositions','../../components/auth/service','getInteractions','/:id/users','getAgents','express','/:id/status','status','/describe','addAgents','post','index','/:id','isAuthenticated','notify','get'];(function(_0x2a57bd,_0x581cbc){const _0x23f459=function(_0x14b653){while(--_0x14b653){_0x2a57bd['push'](_0x2a57bd['shift']());}};_0x23f459(++_0x581cbc);}(a540_0x581c,0x9d));const a540_0x23f4=function(_0x2a57bd,_0x581cbc){_0x2a57bd=_0x2a57bd-0x0;let _0x23f459=a540_0x581c[_0x2a57bd];return _0x23f459;};const _0x5d0754=a540_0x23f4;'use strict';const express=require(_0x5d0754('0x1e')),router=express[_0x5d0754('0x12')](),auth=require(_0x5d0754('0x1a')),controller=require('./smsAccount.controller');router[_0x5d0754('0x7')]('/',auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x3')]),router[_0x5d0754('0x7')](_0x5d0754('0x0'),auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x11')]),router[_0x5d0754('0x7')]('/:id',auth[_0x5d0754('0x5')](),controller['show']),router['get'](_0x5d0754('0x19'),auth[_0x5d0754('0x5')](),controller['getDispositions']),router[_0x5d0754('0x7')](_0x5d0754('0x17'),auth[_0x5d0754('0x5')](),controller[_0x5d0754('0xa')]),router['get'](_0x5d0754('0xd'),auth[_0x5d0754('0x5')](),controller['getApplications']),router[_0x5d0754('0x7')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x5d0754('0x1b')]),router[_0x5d0754('0x7')]('/:id/status',controller[_0x5d0754('0xe')]),router[_0x5d0754('0x7')]('/:id/users',auth['isAuthenticated'](),controller[_0x5d0754('0x1d')]),router['post']('/',auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x13')]),router['post'](_0x5d0754('0x19'),auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x9')]),router[_0x5d0754('0x2')]('/:id/canned_answers',auth[_0x5d0754('0x5')](),controller['addAnswer']),router[_0x5d0754('0x2')](_0x5d0754('0x10'),controller[_0x5d0754('0x6')]),router[_0x5d0754('0x2')](_0x5d0754('0xd'),auth['isAuthenticated'](),controller[_0x5d0754('0xc')]),router[_0x5d0754('0x2')]('/:id/send',auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x16')]),router[_0x5d0754('0x2')](_0x5d0754('0x1f'),controller[_0x5d0754('0x20')]),router[_0x5d0754('0x2')](_0x5d0754('0x1c'),auth['isAuthenticated'](),controller[_0x5d0754('0x1')]),router['put'](_0x5d0754('0x4'),auth[_0x5d0754('0x5')](),controller['update']),router[_0x5d0754('0x15')]('/:id',auth[_0x5d0754('0x5')](),controller[_0x5d0754('0xf')]),router[_0x5d0754('0x15')](_0x5d0754('0x19'),auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x18')]),router[_0x5d0754('0x15')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x5d0754('0xb')]),router[_0x5d0754('0x15')](_0x5d0754('0x1c'),auth[_0x5d0754('0x5')](),controller[_0x5d0754('0x14')]),module[_0x5d0754('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index 963c511..3c1f76d 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a541_0xd0cf=['mandatoryDisposition','TEXT','generate','INTEGER','mandatoryDispositionPauseId','name','exports','csc','plivo','randomstring','intelepeer','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','BOOLEAN','STRING','clickatell','ENUM','setDataValue','skebby','connectel'];(function(_0x3e0c3f,_0xd0cfae){const _0x1e2e04=function(_0x3698f5){while(--_0x3698f5){_0x3e0c3f['push'](_0x3e0c3f['shift']());}};_0x1e2e04(++_0xd0cfae);}(a541_0xd0cf,0x1d2));const a541_0x1e2e=function(_0x3e0c3f,_0xd0cfae){_0x3e0c3f=_0x3e0c3f-0x0;let _0x1e2e04=a541_0xd0cf[_0x3e0c3f];return _0x1e2e04;};const _0x2aa099=a541_0x1e2e;'use strict';const Sequelize=require('sequelize'),rs=require(_0x2aa099('0x12'));module[_0x2aa099('0xf')]={'name':{'type':Sequelize['STRING'],'unique':_0x2aa099('0xe'),'allowNull':![]},'key':{'type':Sequelize[_0x2aa099('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0x2aa099('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0x2aa099('0x3')],'defaultValue':function(){const _0xa0f19d=_0x2aa099;return rs[_0xa0f19d('0xb')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM']('twilio',_0x2aa099('0x7'),_0x2aa099('0x8'),'clicksend',_0x2aa099('0x11'),_0x2aa099('0x4'),_0x2aa099('0x10'),'infobip',_0x2aa099('0x0'))},'accountSid':{'type':Sequelize[_0x2aa099('0x3')]},'authId':{'type':Sequelize[_0x2aa099('0x3')]},'authToken':{'type':Sequelize[_0x2aa099('0x3')]},'smsMethod':{'type':Sequelize[_0x2aa099('0x5')]('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x2aa099('0x3')]},'apiKey':{'type':Sequelize['STRING']},'senderString':{'type':Sequelize[_0x2aa099('0x3')]},'deliveryReport':{'type':Sequelize[_0x2aa099('0x2')],'defaultValue':![]},'description':{'type':Sequelize[_0x2aa099('0x3')]},'notificationTemplate':{'type':Sequelize[_0x2aa099('0xa')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x2aa099('0x2')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x2aa099('0x2')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2aa099('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x2aa099('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2aa099('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2aa099('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x2aa099('0x3')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x2aa099('0x2')],'defaultValue':![],'comment':_0x2aa099('0x1'),'set':function(_0x3698f5){const _0x295900=_0x2aa099;if(!_0x3698f5)this[_0x295900('0x6')](_0x295900('0xd'),null);this[_0x295900('0x6')](_0x295900('0x9'),_0x3698f5);}}}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index c915b67..6a73a1d 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a542_0x3417=['merge','removeAnswers','limit','UserProfileSection','like','findOne','SmsAccount','length','model','From','statusInt','to\x20is\x20mandatory','create','Contacts','../../mysqldb','getDispositions','push','util','defaults','CompanyId','orderBy','removeDispositions','emit','attributes','isNil','unshift','ids','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','getInteractions','../../config/logger','code','sms','Tag','fromNumber','then','SmsAccount,\x20%s,\x20%s,\x20%s','filter','CmContact','internal','destroy','SmsAccount,\x20%s,\x20%s','undefined','sequelize','fullname','filters','includeAll','userSmsAccount:remove','Applications','created','asc','clickatell','get','sort','findAll','messageId','Tags','index','skebby','http','userProfileId','updatedAt','RECEIVED_BY_RECIPIENT','omit','removeAgents','SmsMessage','list','status','contact','Start','query','color','isArray','where','message-id','text','dataValues','UserId','map','notify','List','replyMessageId','getAgents','stringify','name','getApplications','../../components/parsers/qs','Disposition','User','stack','ContactId','*,*,*,*','segmentedMessage','difference','refid','applications','getAnswers','lodash','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','VIRTUAL','./smsAccount.socket','inspect','SmsApplication','bulkCreate','info','message','fieldName','send','message_id','from\x20is\x20mandatory','debug','originatingAddress','rows','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','error','from','rawAttributes','csc','clicksend','catch','json','user','state','twilio','mobile','fields','set','UserProfileResource','interaction','update','ACCEPTD','entity\x20found','redif','waitForTheAssignedAgent','Contact','options','end','AttachmentId','Messages','mandatoryDispositionPause','Unable\x20to\x20retrieve\x20the\x20current\x20user','addApplications','Content-Type','mapKey','Owner','close','statusGet','groupName','MessageUUID','addAgents','account','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Text','SmsAccountId','skebby_dispatch_id','infobip','intelepeer','CmList','order','include','SmsInteraction','log','text/xml','received\x20delivery\x20report\x20from','agent','params','DELIVRD','ListId','CannedAnswer','offset','sendStatus','describe','client','jayson/promise','\x0a','results','tag','DESC','no\x20available\x20attributes','pick','connectel','unmanaged','type','request\x20sent','userSmsAccount:save','out','nolimit','intersection','keys','autoclose','startRouting','count','Pause','DELIVERED_TO_GATEWAY','SmsAccounts','DELIVERED','body','result','requestid','createdAt','priority','sender'];(function(_0xa5ab74,_0x341734){const _0x16289e=function(_0x3e6874){while(--_0x3e6874){_0xa5ab74['push'](_0xa5ab74['shift']());}};_0x16289e(++_0x341734);}(a542_0x3417,0xa1));const a542_0x1628=function(_0xa5ab74,_0x341734){_0xa5ab74=_0xa5ab74-0x0;let _0x16289e=a542_0x3417[_0xa5ab74];return _0x16289e;};const _0x1fa009=a542_0x1628;'use strict';const util=require(_0x1fa009('0x39')),_=require(_0x1fa009('0x88')),qs=require(_0x1fa009('0x7d')),logger=require(_0x1fa009('0x45'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x1fa009('0x36'))['db'],{Op,ValidationError}=require(_0x1fa009('0x52'));require(_0x1fa009('0x8b'))['register'](socket);const jayson=require(_0x1fa009('0xb')),client=jayson[_0x1fa009('0xa')][_0x1fa009('0x62')]({'port':0x232c});function respondWithRpcPromise(_0x3e6874,_0x2f5940,_0x2cb661,_0x4f25f4){return new Promise(function(_0x353824,_0x115c4e){const _0x310cdd=a542_0x1628,_0x1f209c=_0x4f25f4||client;return _0x1f209c['request'](_0x3e6874,_0x2cb661)['then'](function(_0x15c5e6){const _0x4f675f=a542_0x1628;logger[_0x4f675f('0x8f')](_0x4f675f('0x50'),_0x2f5940,_0x4f675f('0x15')),logger[_0x4f675f('0x95')](_0x4f675f('0x4b'),_0x2f5940,_0x4f675f('0x15'),JSON[_0x4f675f('0x7a')](_0x15c5e6));if(_0x15c5e6[_0x4f675f('0x99')]){if(_0x15c5e6['error'][_0x4f675f('0x46')]===0x1f4)return logger['error'](_0x4f675f('0x50'),_0x2f5940,_0x15c5e6[_0x4f675f('0x99')][_0x4f675f('0x90')]),_0x115c4e(_0x15c5e6[_0x4f675f('0x99')][_0x4f675f('0x90')]);return logger[_0x4f675f('0x99')](_0x4f675f('0x50'),_0x2f5940,_0x15c5e6[_0x4f675f('0x99')]['message']),_0x353824(_0x15c5e6[_0x4f675f('0x99')][_0x4f675f('0x90')]);}else logger[_0x4f675f('0x8f')]('SmsAccount,\x20%s,\x20%s',_0x2f5940,'request\x20sent'),_0x353824(_0x15c5e6[_0x4f675f('0x23')][_0x4f675f('0x90')]);})[_0x310cdd('0x9e')](function(_0x163e20){const _0x2d3427=_0x310cdd;logger[_0x2d3427('0x99')](_0x2d3427('0x50'),_0x2f5940,_0x163e20),_0x115c4e(_0x163e20);});});}function respondWithStatusCode(_0x37699c,_0x30c309){return _0x30c309=_0x30c309||0xcc,function(_0x475463){const _0x2a539b=a542_0x1628;if(_0x475463)return _0x37699c[_0x2a539b('0x8')](_0x30c309);return _0x37699c['status'](_0x30c309)[_0x2a539b('0xaf')]();};}function respondWithResult(_0x2e7229,_0x3c680f){return _0x3c680f=_0x3c680f||0xc8,function(_0x83bd4f){const _0x46a720=a542_0x1628;if(_0x83bd4f)return _0x2e7229[_0x46a720('0x6a')](_0x3c680f)[_0x46a720('0x9f')](_0x83bd4f);};}function respondWithFilteredResult(_0x45f9f4,_0x1608ee){return function(_0x466dff){const _0x4461de=a542_0x1628;if(_0x466dff){const _0x3f4a10=_0x466dff['count'],_0x5684b9=_0x1608ee[_0x4461de('0x7')];let _0x3834d3=_0x1608ee[_0x4461de('0x7')]+_0x1608ee[_0x4461de('0x2a')],_0x1b1f7a;return _0x3834d3>=_0x3f4a10?(_0x3834d3=_0x3f4a10,_0x1b1f7a=0xc8):_0x1b1f7a=0xce,_0x45f9f4[_0x4461de('0x6a')](_0x1b1f7a),_0x45f9f4[_0x4461de('0xa5')]('Content-Range',_0x5684b9+'-'+_0x3834d3+'/'+_0x3f4a10)['json'](_0x466dff);}return null;};}function saveUpdates(_0x14b09c){return function(_0x1e81a3){const _0x581e82=a542_0x1628;if(_0x1e81a3)return _0x1e81a3[_0x581e82('0xa8')](_0x14b09c)[_0x581e82('0x4a')](function(_0x360b7c){return _0x360b7c;});return null;};}function removeEntity(_0xa9d1a4){return function(_0x382b18){const _0x34d27c=a542_0x1628;if(_0x382b18)return _0x382b18[_0x34d27c('0x4f')]()[_0x34d27c('0x4a')](function(){const _0x10da49=_0x34d27c,_0x17eb09=_0x382b18[_0x10da49('0x5b')]({'plain':!![]}),_0x4a2c01=_0x10da49('0x20');return db[_0x10da49('0xa6')][_0x10da49('0x4f')]({'where':{'type':_0x4a2c01,'resourceId':_0x17eb09['id']}})[_0x10da49('0x4a')](function(){return _0x382b18;});})[_0x34d27c('0x4a')](function(){const _0x139176=_0x34d27c;_0xa9d1a4[_0x139176('0x6a')](0xcc)[_0x139176('0xaf')]();});};}function handleEntityNotFound(_0x1b5dac){return function(_0x4de451){return!_0x4de451&&_0x1b5dac['sendStatus'](0x194),_0x4de451;};}function handleError(_0x8d887,_0x256a31){return _0x256a31=_0x256a31||0x1f4,function(_0x498495){const _0x261636=a542_0x1628;logger[_0x261636('0x99')](_0x498495[_0x261636('0x80')]),_0x498495[_0x261636('0x7b')]&&delete _0x498495['name'],_0x8d887[_0x261636('0x6a')](_0x256a31)[_0x261636('0x92')](_0x498495);};}exports[_0x1fa009('0x60')]=function(_0x327f2e,_0x346fe9){const _0x37e866=_0x1fa009;let _0x233e93={'include':[{'model':db[_0x37e866('0x1e')],'as':_0x37e866('0xb2')}]};const _0x4b6ca7={},_0x5e2b1c={'count':0x0,'rows':[]},_0x3d9830=_['map'](db[_0x37e866('0x2e')][_0x37e866('0x9b')],function(_0x56b191){const _0x459a60=_0x37e866;return{'name':_0x56b191[_0x459a60('0x91')],'type':_0x56b191[_0x459a60('0x14')]['key']};});_0x4b6ca7[_0x37e866('0x30')]=_[_0x37e866('0x75')](_0x3d9830,_0x37e866('0x7b')),_0x4b6ca7[_0x37e866('0x6d')]=_[_0x37e866('0x1a')](_0x327f2e[_0x37e866('0x6d')]),_0x4b6ca7['filters']=_[_0x37e866('0x19')](_0x4b6ca7[_0x37e866('0x30')],_0x4b6ca7[_0x37e866('0x6d')]),_0x233e93['attributes']=_[_0x37e866('0x19')](_0x4b6ca7[_0x37e866('0x30')],qs[_0x37e866('0xa4')](_0x327f2e[_0x37e866('0x6d')]['fields'])),_0x233e93[_0x37e866('0x3f')]=_0x233e93[_0x37e866('0x3f')][_0x37e866('0x2f')]?_0x233e93[_0x37e866('0x3f')]:_0x4b6ca7[_0x37e866('0x30')];typeof _0x327f2e[_0x37e866('0x6d')][_0x37e866('0x18')]===_0x37e866('0x51')&&(_0x233e93[_0x37e866('0x2a')]=qs[_0x37e866('0x2a')](_0x327f2e[_0x37e866('0x6d')][_0x37e866('0x2a')]),_0x233e93[_0x37e866('0x7')]=qs[_0x37e866('0x7')](_0x327f2e[_0x37e866('0x6d')]['offset']));_0x233e93[_0x37e866('0xc5')]=qs[_0x37e866('0x5c')](_0x327f2e[_0x37e866('0x6d')][_0x37e866('0x5c')]),_0x233e93['where']=qs[_0x37e866('0x54')](_['pick'](_0x327f2e['query'],_0x4b6ca7[_0x37e866('0x54')]),_0x3d9830);_0x327f2e[_0x37e866('0x6d')][_0x37e866('0x4c')]&&(_0x233e93[_0x37e866('0x70')]=_[_0x37e866('0x28')](_0x233e93['where'],{[Op['or']]:_[_0x37e866('0x75')](_0x3d9830,function(_0x48379f){const _0x55687b=_0x37e866;if(_0x48379f[_0x55687b('0x14')]!==_0x55687b('0x8a')){const _0x2e85bf={};return _0x2e85bf[_0x48379f[_0x55687b('0x7b')]]={[Op[_0x55687b('0x2c')]]:'%'+_0x327f2e[_0x55687b('0x6d')]['filter']+'%'},_0x2e85bf;}})}));_0x233e93=_[_0x37e866('0x28')]({},_0x233e93,_0x327f2e[_0x37e866('0xae')]);const _0xcd44ba={'where':_0x233e93[_0x37e866('0x70')]};return db[_0x37e866('0x2e')][_0x37e866('0x1d')](_0xcd44ba)[_0x37e866('0x4a')](function(_0x1c1dc1){const _0x1a3c95=_0x37e866;return _0x5e2b1c[_0x1a3c95('0x1d')]=_0x1c1dc1,_0x327f2e['query'][_0x1a3c95('0x55')]&&(_0x233e93['include']=[{'all':!![]}]),db[_0x1a3c95('0x2e')][_0x1a3c95('0x5d')](_0x233e93);})['then'](function(_0x484e08){return _0x5e2b1c['rows']=_0x484e08,_0x5e2b1c;})['then'](respondWithFilteredResult(_0x346fe9,_0x233e93))['catch'](handleError(_0x346fe9,null));},exports['show']=function(_0x1fce65,_0x3fb324){const _0x26bbe2=_0x1fa009;let _0x21a3e1={'raw':![],'where':{'id':_0x1fce65[_0x26bbe2('0x3')]['id']},'include':[{'model':db[_0x26bbe2('0x1e')],'as':_0x26bbe2('0xb2')}]};const _0x1c472f={};return _0x1c472f[_0x26bbe2('0x30')]=_[_0x26bbe2('0x1a')](db['SmsAccount'][_0x26bbe2('0x9b')]),_0x1c472f['query']=_[_0x26bbe2('0x1a')](_0x1fce65['query']),_0x1c472f[_0x26bbe2('0x54')]=_[_0x26bbe2('0x19')](_0x1c472f['model'],_0x1c472f['query']),_0x21a3e1[_0x26bbe2('0x3f')]=_[_0x26bbe2('0x19')](_0x1c472f[_0x26bbe2('0x30')],qs['fields'](_0x1fce65[_0x26bbe2('0x6d')]['fields'])),_0x21a3e1[_0x26bbe2('0x3f')]=_0x21a3e1[_0x26bbe2('0x3f')]['length']?_0x21a3e1[_0x26bbe2('0x3f')]:_0x1c472f['model'],_0x1fce65[_0x26bbe2('0x6d')][_0x26bbe2('0x55')]&&(_0x21a3e1['include']=[{'all':!![]}]),_0x21a3e1=_[_0x26bbe2('0x28')]({},_0x21a3e1,_0x1fce65[_0x26bbe2('0xae')]),db[_0x26bbe2('0x2e')][_0x26bbe2('0x2d')](_0x21a3e1)[_0x26bbe2('0x4a')](handleEntityNotFound(_0x3fb324,null))[_0x26bbe2('0x4a')](respondWithResult(_0x3fb324,null))['catch'](handleError(_0x3fb324,null));},exports[_0x1fa009('0x34')]=function(_0x58d075,_0x4e0fe2){const _0x3ea556=_0x1fa009;return db['SmsAccount'][_0x3ea556('0x34')](_0x58d075[_0x3ea556('0x22')],{})[_0x3ea556('0x4a')](function(_0x129d26){const _0x47c42a=_0x3ea556,_0x20e5f9=_0x58d075['user']['get']({'plain':!![]});if(!_0x20e5f9)throw new Error(_0x47c42a('0xb3'));if(_0x20e5f9['role']===_0x47c42a('0xa0')){const _0x3110cb=_0x129d26[_0x47c42a('0x5b')]({'plain':!![]}),_0x590e9d=_0x47c42a('0x20');return db[_0x47c42a('0x2b')][_0x47c42a('0x2d')]({'where':{'name':_0x590e9d,'userProfileId':_0x20e5f9[_0x47c42a('0x63')]},'raw':!![]})[_0x47c42a('0x4a')](function(_0x2c0e59){const _0x1eba02=_0x47c42a;return _0x2c0e59&&_0x2c0e59['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x3110cb[_0x1eba02('0x7b')],'resourceId':_0x3110cb['id'],'type':_0x2c0e59[_0x1eba02('0x7b')],'sectionId':_0x2c0e59['id']},{})[_0x1eba02('0x4a')](function(){return _0x129d26;}):_0x129d26;})[_0x47c42a('0x9e')](function(_0xc14b2b){const _0x122ff2=_0x47c42a;logger[_0x122ff2('0x99')](_0x122ff2('0xbe'),_0xc14b2b);throw _0xc14b2b;});}return _0x129d26;})[_0x3ea556('0x4a')](respondWithResult(_0x4e0fe2,0xc9))[_0x3ea556('0x9e')](handleError(_0x4e0fe2,null));},exports[_0x1fa009('0xa8')]=function(_0x33a08a,_0x4c78a3){const _0x198fbb=_0x1fa009;return _0x33a08a[_0x198fbb('0x22')]['id']&&delete _0x33a08a[_0x198fbb('0x22')]['id'],db[_0x198fbb('0x2e')][_0x198fbb('0x2d')]({'where':{'id':_0x33a08a[_0x198fbb('0x3')]['id']},'include':[{'model':db['Pause'],'as':_0x198fbb('0xb2')}]})[_0x198fbb('0x4a')](handleEntityNotFound(_0x4c78a3,null))[_0x198fbb('0x4a')](saveUpdates(_0x33a08a['body'],null))[_0x198fbb('0x4a')](respondWithResult(_0x4c78a3,null))[_0x198fbb('0x9e')](handleError(_0x4c78a3,null));},exports[_0x1fa009('0x4f')]=function(_0x493bd9,_0x251d08){const _0x416140=_0x1fa009;return db[_0x416140('0x2e')]['findOne']({'where':{'id':_0x493bd9[_0x416140('0x3')]['id']}})['then'](handleEntityNotFound(_0x251d08,null))['then'](removeEntity(_0x251d08,null))[_0x416140('0x9e')](handleError(_0x251d08,null));},exports[_0x1fa009('0x9')]=function(_0x35cdde,_0x3e11e2){const _0x11e61b=_0x1fa009;return db[_0x11e61b('0x2e')][_0x11e61b('0x9')]()[_0x11e61b('0x4a')](respondWithResult(_0x3e11e2,null))[_0x11e61b('0x9e')](handleError(_0x3e11e2,null));},exports['addDisposition']=function(_0x505d1e,_0x58cf32){const _0x5ab4b5=_0x1fa009;return _0x505d1e[_0x5ab4b5('0x22')]['id']&&delete _0x505d1e[_0x5ab4b5('0x22')]['id'],db[_0x5ab4b5('0x2e')][_0x5ab4b5('0x2d')]({'where':{'id':_0x505d1e['params']['id']}})[_0x5ab4b5('0x4a')](handleEntityNotFound(_0x58cf32,null))[_0x5ab4b5('0x4a')](function(_0x4e3578){const _0x5a9df8=_0x5ab4b5;if(_0x4e3578)return _0x505d1e[_0x5a9df8('0x22')]['SmsAccountId']=_0x4e3578['id'],db['Disposition'][_0x5a9df8('0x34')](_0x505d1e['body']);})[_0x5ab4b5('0x4a')](respondWithResult(_0x58cf32,null))[_0x5ab4b5('0x9e')](handleError(_0x58cf32,null));},exports[_0x1fa009('0x37')]=function(_0x29a8cf,_0x2d2b3c){const _0x3e29c6=_0x1fa009;let _0x32cd56={'raw':![],'where':{}};const _0x33b985={},_0x3dfaab={'count':0x0,'rows':[]};return db[_0x3e29c6('0x2e')]['findOne']({'where':{'id':_0x29a8cf[_0x3e29c6('0x3')]['id']}})['then'](handleEntityNotFound(_0x2d2b3c,null))[_0x3e29c6('0x4a')](function(_0x468f01){const _0x5023e0=_0x3e29c6;if(_0x468f01)return _0x33b985[_0x5023e0('0x30')]=_[_0x5023e0('0x1a')](db[_0x5023e0('0x7e')][_0x5023e0('0x9b')]),_0x33b985[_0x5023e0('0x6d')]=_['keys'](_0x29a8cf[_0x5023e0('0x6d')]),_0x33b985[_0x5023e0('0x54')]=_[_0x5023e0('0x19')](_0x33b985[_0x5023e0('0x30')],_0x33b985['query']),_0x32cd56[_0x5023e0('0x3f')]=_[_0x5023e0('0x19')](_0x33b985[_0x5023e0('0x30')],qs[_0x5023e0('0xa4')](_0x29a8cf[_0x5023e0('0x6d')]['fields'])),_0x32cd56[_0x5023e0('0x3f')]=_0x32cd56['attributes'][_0x5023e0('0x2f')]?_0x32cd56['attributes']:_0x33b985['model'],typeof _0x29a8cf['query'][_0x5023e0('0x18')]===_0x5023e0('0x51')&&(_0x32cd56[_0x5023e0('0x2a')]=qs[_0x5023e0('0x2a')](_0x29a8cf[_0x5023e0('0x6d')][_0x5023e0('0x2a')]),_0x32cd56['offset']=qs[_0x5023e0('0x7')](_0x29a8cf[_0x5023e0('0x6d')][_0x5023e0('0x7')])),_0x32cd56[_0x5023e0('0xc5')]=qs['sort'](_0x29a8cf['query'][_0x5023e0('0x5c')]),_0x32cd56[_0x5023e0('0x70')]=qs[_0x5023e0('0x54')](_[_0x5023e0('0x11')](_0x29a8cf['query'],_0x33b985[_0x5023e0('0x54')])),_0x32cd56[_0x5023e0('0x70')]['SmsAccountId']=_0x468f01['id'],_0x29a8cf[_0x5023e0('0x6d')][_0x5023e0('0x4c')]&&(_0x32cd56['where']=_[_0x5023e0('0x28')](_0x32cd56['where'],{[Op['or']]:_[_0x5023e0('0x75')](_0x32cd56['attributes'],function(_0x2246f5){const _0x21f2cb=_0x5023e0,_0x1e7f9d={};return _0x1e7f9d[_0x2246f5]={[Op[_0x21f2cb('0x2c')]]:'%'+_0x29a8cf['query']['filter']+'%'},_0x1e7f9d;})})),_0x32cd56=_['merge']({},_0x32cd56,_0x29a8cf[_0x5023e0('0xae')]),db['Disposition'][_0x5023e0('0x1d')]({'where':_0x32cd56[_0x5023e0('0x70')]})[_0x5023e0('0x4a')](function(_0x529681){const _0x53a9a3=_0x5023e0;return _0x3dfaab[_0x53a9a3('0x1d')]=_0x529681,_0x29a8cf[_0x53a9a3('0x6d')][_0x53a9a3('0x55')]&&(_0x32cd56[_0x53a9a3('0xc6')]=[{'all':!![]}]),db[_0x53a9a3('0x7e')][_0x53a9a3('0x5d')](_0x32cd56);})[_0x5023e0('0x4a')](function(_0x5efdae){const _0x1c35f8=_0x5023e0;return _0x3dfaab[_0x1c35f8('0x97')]=_0x5efdae,_0x3dfaab;});})['then'](respondWithFilteredResult(_0x2d2b3c,_0x32cd56))[_0x3e29c6('0x9e')](handleError(_0x2d2b3c,null));},exports['removeDispositions']=function(_0x5b9a71,_0x2ba802){const _0x459ad5=_0x1fa009;return db[_0x459ad5('0x2e')][_0x459ad5('0x2d')]({'where':{'id':_0x5b9a71[_0x459ad5('0x3')]['id']}})[_0x459ad5('0x4a')](handleEntityNotFound(_0x2ba802,null))[_0x459ad5('0x4a')](function(_0x33bb05){const _0x8f364f=_0x459ad5;if(_0x33bb05)return _0x33bb05[_0x8f364f('0x3d')](_0x5b9a71[_0x8f364f('0x6d')][_0x8f364f('0x42')]);})['then'](respondWithStatusCode(_0x2ba802,null))[_0x459ad5('0x9e')](handleError(_0x2ba802,null));},exports['addAnswer']=function(_0x53a748,_0x5ad74c){const _0x240fed=_0x1fa009;return _0x53a748[_0x240fed('0x22')]['id']&&delete _0x53a748[_0x240fed('0x22')]['id'],db['SmsAccount'][_0x240fed('0x2d')]({'where':{'id':_0x53a748[_0x240fed('0x3')]['id']}})[_0x240fed('0x4a')](handleEntityNotFound(_0x5ad74c,null))[_0x240fed('0x4a')](function(_0x779525){const _0x4bbaf8=_0x240fed;if(_0x779525)return _0x53a748[_0x4bbaf8('0x22')][_0x4bbaf8('0xc0')]=_0x779525['id'],db[_0x4bbaf8('0x6')]['create'](_0x53a748[_0x4bbaf8('0x22')]);})['then'](respondWithResult(_0x5ad74c,null))[_0x240fed('0x9e')](handleError(_0x5ad74c,null));},exports[_0x1fa009('0x87')]=function(_0xb01e8,_0x163aac){const _0x268a00=_0x1fa009;let _0x1831b1={'raw':![],'where':{}};const _0x202ef7={},_0x2e7fdf={'count':0x0,'rows':[]};return db['SmsAccount'][_0x268a00('0x2d')]({'where':{'id':_0xb01e8[_0x268a00('0x3')]['id']}})[_0x268a00('0x4a')](handleEntityNotFound(_0x163aac,null))[_0x268a00('0x4a')](function(_0x317704){const _0x57f4e9=_0x268a00;if(_0x317704)return _0x202ef7[_0x57f4e9('0x30')]=_['keys'](db[_0x57f4e9('0x6')][_0x57f4e9('0x9b')]),_0x202ef7[_0x57f4e9('0x6d')]=_[_0x57f4e9('0x1a')](_0xb01e8[_0x57f4e9('0x6d')]),_0x202ef7[_0x57f4e9('0x54')]=_[_0x57f4e9('0x19')](_0x202ef7[_0x57f4e9('0x30')],_0x202ef7[_0x57f4e9('0x6d')]),_0x1831b1[_0x57f4e9('0x3f')]=_['intersection'](_0x202ef7[_0x57f4e9('0x30')],qs[_0x57f4e9('0xa4')](_0xb01e8[_0x57f4e9('0x6d')][_0x57f4e9('0xa4')])),_0x1831b1[_0x57f4e9('0x3f')]=_0x1831b1[_0x57f4e9('0x3f')][_0x57f4e9('0x2f')]?_0x1831b1[_0x57f4e9('0x3f')]:_0x202ef7[_0x57f4e9('0x30')],typeof _0xb01e8['query']['nolimit']===_0x57f4e9('0x51')&&(_0x1831b1[_0x57f4e9('0x2a')]=qs[_0x57f4e9('0x2a')](_0xb01e8[_0x57f4e9('0x6d')][_0x57f4e9('0x2a')]),_0x1831b1['offset']=qs[_0x57f4e9('0x7')](_0xb01e8['query'][_0x57f4e9('0x7')])),_0x1831b1[_0x57f4e9('0xc5')]=qs['sort'](_0xb01e8[_0x57f4e9('0x6d')][_0x57f4e9('0x5c')]),_0x1831b1[_0x57f4e9('0x70')]=qs[_0x57f4e9('0x54')](_[_0x57f4e9('0x11')](_0xb01e8[_0x57f4e9('0x6d')],_0x202ef7['filters'])),_0x1831b1['where'][_0x57f4e9('0xc0')]=_0x317704['id'],_0xb01e8[_0x57f4e9('0x6d')][_0x57f4e9('0x4c')]&&(_0x1831b1[_0x57f4e9('0x70')]=_['merge'](_0x1831b1['where'],{[Op['or']]:_[_0x57f4e9('0x75')](_0x1831b1[_0x57f4e9('0x3f')],function(_0x1349ed){const _0x4b5ca3=_0x57f4e9,_0x1e1c33={};return _0x1e1c33[_0x1349ed]={[Op[_0x4b5ca3('0x2c')]]:'%'+_0xb01e8[_0x4b5ca3('0x6d')][_0x4b5ca3('0x4c')]+'%'},_0x1e1c33;})})),_0x1831b1=_[_0x57f4e9('0x28')]({},_0x1831b1,_0xb01e8[_0x57f4e9('0xae')]),db[_0x57f4e9('0x6')][_0x57f4e9('0x1d')]({'where':_0x1831b1[_0x57f4e9('0x70')]})[_0x57f4e9('0x4a')](function(_0x348cab){const _0x5d51ba=_0x57f4e9;return _0x2e7fdf[_0x5d51ba('0x1d')]=_0x348cab,_0xb01e8[_0x5d51ba('0x6d')][_0x5d51ba('0x55')]&&(_0x1831b1[_0x5d51ba('0xc6')]=[{'all':!![]}]),db[_0x5d51ba('0x6')][_0x5d51ba('0x5d')](_0x1831b1);})['then'](function(_0x259d91){const _0x46a3bd=_0x57f4e9;return _0x2e7fdf[_0x46a3bd('0x97')]=_0x259d91,_0x2e7fdf;});})['then'](respondWithFilteredResult(_0x163aac,_0x1831b1))[_0x268a00('0x9e')](handleError(_0x163aac,null));},exports['removeAnswers']=function(_0x5f223a,_0x43ff5c){const _0x4884a4=_0x1fa009;return db[_0x4884a4('0x2e')][_0x4884a4('0x2d')]({'where':{'id':_0x5f223a[_0x4884a4('0x3')]['id']}})[_0x4884a4('0x4a')](handleEntityNotFound(_0x43ff5c,null))[_0x4884a4('0x4a')](function(_0x4bf5fe){const _0x94550d=_0x4884a4;if(_0x4bf5fe)return _0x4bf5fe[_0x94550d('0x29')](_0x5f223a['query'][_0x94550d('0x42')]);})[_0x4884a4('0x4a')](respondWithStatusCode(_0x43ff5c,null))[_0x4884a4('0x9e')](handleError(_0x43ff5c,null));},exports[_0x1fa009('0x76')]=function(_0x74ebe2,_0x5bdb72){const _0x2b7600=_0x1fa009,_0xb75c8f={'channel':_0x2b7600('0x47')};let _0x13939b=[],_0x4a1dd1=[];const _0x17d2db={};return db[_0x2b7600('0x2e')][_0x2b7600('0x2d')]({'where':{'id':_0x74ebe2[_0x2b7600('0x3')]['id']},'include':[{'model':db['SmsApplication'],'as':_0x2b7600('0x57')}]})[_0x2b7600('0x4a')](handleEntityNotFound(_0x5bdb72,null))[_0x2b7600('0x4a')](function(_0x1354aa){const _0x4f8457=_0x2b7600;return _0xb75c8f['account']=_0x1354aa,_0xb75c8f[_0x4f8457('0x86')]=_[_0x4f8457('0x3c')](_0x1354aa[_0x4f8457('0x57')],['priority'],[_0x4f8457('0x59')]),_0xb75c8f[_0x4f8457('0xbd')]['Applications']&&delete _0xb75c8f['account'][_0x4f8457('0x57')],db[_0x4f8457('0x4d')][_0x4f8457('0x9')]();})[_0x2b7600('0x4a')](function(_0x24db3f){const _0x5dec51=_0x2b7600;if(!_0x24db3f)throw new ValidationError(_0x5dec51('0x10'));_0x13939b=_[_0x5dec51('0x84')](_[_0x5dec51('0x1a')](_0x24db3f),[_0x5dec51('0x25'),_0x5dec51('0x64')]),_0x4a1dd1=_[_0x5dec51('0x84')](_[_0x5dec51('0x1a')](_0x24db3f),['createdAt','updatedAt',_0x5dec51('0x3b'),_0x5dec51('0x5')]),_0xb75c8f['body']={'mapKey':_0x5dec51('0xa3')};if(_0xb75c8f['account'][_0x5dec51('0x14')])switch(_0xb75c8f['account'][_0x5dec51('0x14')]){case _0x5dec51('0xa2'):_0xb75c8f[_0x5dec51('0x22')]['from']=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x31')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2[_0x5dec51('0x22')]['Body'],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x5e')]=_0x74ebe2[_0x5dec51('0x22')]['MessageSid'];break;case _0x5dec51('0x61'):_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]='+'+_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x27')],_0xb75c8f['body']['body']=_0x74ebe2['body'][_0x5dec51('0x72')];break;case _0x5dec51('0x12'):_0xb75c8f[_0x5dec51('0x22')]['from']=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x9a')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x90')];break;case _0x5dec51('0x9d'):_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]=_0x74ebe2[_0x5dec51('0x22')]['from'],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2['body'][_0x5dec51('0x22')],_0xb75c8f['body'][_0x5dec51('0x5e')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x93')];break;case'plivo':_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x31')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0xbf')],_0xb75c8f[_0x5dec51('0x22')]['messageId']=_0x74ebe2['body'][_0x5dec51('0xbb')];break;case _0x5dec51('0xc2'):_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]='+'+_0x74ebe2[_0x5dec51('0x22')]['results'][0x0][_0x5dec51('0x9a')],_0xb75c8f[_0x5dec51('0x22')]['body']=_0x74ebe2['body']['results'][0x0][_0x5dec51('0x72')],_0xb75c8f['body'][_0x5dec51('0x5e')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0xd')][0x0]['messageId'];break;case'csc':_0xb75c8f['body'][_0x5dec51('0x9a')]=_0x74ebe2['body'][_0x5dec51('0x96')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x83')][_0x5dec51('0x90')];break;case _0x5dec51('0x5a'):_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x49')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x72')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x5e')]=_0x74ebe2['body'][_0x5dec51('0x78')];break;case _0x5dec51('0xc3'):_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]=_0x74ebe2[_0x5dec51('0x22')]['from'],_0xb75c8f[_0x5dec51('0x22')]['body']=_0x74ebe2[_0x5dec51('0x22')][_0x5dec51('0x90')],_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x5e')]=_0x74ebe2['body'][_0x5dec51('0x85')];break;}_0xb75c8f[_0x5dec51('0x22')]['id']&&delete _0xb75c8f[_0x5dec51('0x22')]['id'];if(_[_0x5dec51('0x40')](_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x9a')]))throw new ValidationError(_0x5dec51('0x94'));if(_[_0x5dec51('0x40')](_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')])||_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0x22')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x5dec51('0x40')](_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0xb6')]))throw new ValidationError(_0x5dec51('0x98')+_0x4a1dd1);if(!_['includes'](_0x4a1dd1,_0xb75c8f['body'][_0x5dec51('0xb6')]))throw new ValidationError(_0x5dec51('0x89')+_0x4a1dd1);return _0x17d2db[_0xb75c8f[_0x5dec51('0x22')][_0x5dec51('0xb6')]]=_0xb75c8f[_0x5dec51('0x22')]['from'],db[_0x5dec51('0xc4')][_0x5dec51('0x2d')]({'where':{'id':_0xb75c8f[_0x5dec51('0xbd')][_0x5dec51('0x5')]},'include':[{'model':db[_0x5dec51('0x4d')],'as':'Contacts','where':_0x17d2db,'limit':0x1,'order':[[_0x5dec51('0x64'),_0x5dec51('0xf')]]}]});})[_0x2b7600('0x4a')](handleEntityNotFound(_0x5bdb72,null))['then'](function(_0x2b3f0){const _0xcf91b1=_0x2b7600;if(_0x2b3f0){_0xb75c8f[_0xcf91b1('0x69')]=_[_0xcf91b1('0x66')](_0x2b3f0,['Contacts']);if(_0x2b3f0['Contacts'][_0xcf91b1('0x2f')])return _0x2b3f0[_0xcf91b1('0x35')][0x0];const _0x138c7b=_[_0xcf91b1('0x3a')](_0xb75c8f[_0xcf91b1('0x22')],{'firstName':_0xb75c8f['body'][_0xcf91b1('0x9a')],'ListId':_0x2b3f0['id']});return _0x138c7b[_0xb75c8f[_0xcf91b1('0x22')][_0xcf91b1('0xb6')]]=_0xb75c8f[_0xcf91b1('0x22')][_0xcf91b1('0x9a')],db[_0xcf91b1('0x4d')]['create'](_0x138c7b,{'fields':_0x13939b,'raw':!![]});}})[_0x2b7600('0x4a')](handleEntityNotFound(_0x5bdb72,null))[_0x2b7600('0x4a')](function(_0x30500f){const _0x21bb37=_0x2b7600;if(_0x30500f){_0xb75c8f[_0x21bb37('0x6b')]=_0x30500f;const _0x1cfb9f={'ContactId':_0x30500f['id'],'phone':_0xb75c8f[_0x21bb37('0x22')]['from'],'SmsAccountId':_0x74ebe2[_0x21bb37('0x3')]['id']},_0x20a8f2={'ContactId':_0x30500f['id'],'SmsAccountId':_0x74ebe2['params']['id'],'closed':![]};return db['SmsInteraction'][_0x21bb37('0x2d')]({'where':_0x20a8f2})[_0x21bb37('0x4a')](function(_0x35b58e){const _0x2457af=_0x21bb37;if(_0x35b58e)return[_0x35b58e,![]];return db[_0x2457af('0xc7')][_0x2457af('0x34')](_0x1cfb9f)[_0x2457af('0x4a')](function(_0xd1bf9c){return[_0xd1bf9c,!![]];});});}})['then'](function([_0x183e57,_0xb68ecb]){const _0x1821b0=_0x2b7600;return _0xb75c8f[_0x1821b0('0xa7')]=_0x183e57[_0x1821b0('0x5b')]({'plain':!![]}),_0xb75c8f[_0x1821b0('0xa7')][_0x1821b0('0x58')]=![],_0xb68ecb&&(_0xb75c8f[_0x1821b0('0xbd')][_0x1821b0('0x1b')]&&_0xb75c8f[_0x1821b0('0x86')][_0x1821b0('0x38')]({'id':0x0,'priority':_0xb75c8f[_0x1821b0('0x86')][_0x1821b0('0x2f')]+0x1,'app':_0x1821b0('0xb8'),'appdata':_0x1821b0('0x13'),'interval':_0x1821b0('0x82')}),_0xb75c8f[_0x1821b0('0xa7')][_0x1821b0('0x58')]=!![]),db[_0x1821b0('0x68')][_0x1821b0('0x34')]({'phone':_0xb75c8f[_0x1821b0('0x22')][_0x1821b0('0x9a')],'messageId':_0xb75c8f[_0x1821b0('0x22')][_0x1821b0('0x5e')],'body':_0xb75c8f[_0x1821b0('0x22')]['body'],'SmsAccountId':_0x74ebe2[_0x1821b0('0x3')]['id'],'SmsInteractionId':_0x183e57['id'],'direction':'in','ContactId':_0x183e57[_0x1821b0('0x81')],'AttachmentId':_0xb75c8f[_0x1821b0('0x22')][_0x1821b0('0xb0')]});})['then'](function(_0x283c20){const _0x585a13=_0x2b7600;_0xb75c8f['message']=_0x283c20;if(_0xb75c8f[_0x585a13('0xa7')][_0x585a13('0x74')])return db[_0x585a13('0x7f')][_0x585a13('0x2d')]({'attributes':['id',_0x585a13('0x7b')],'where':{'id':_0xb75c8f[_0x585a13('0xa7')][_0x585a13('0x74')]}})[_0x585a13('0x4a')](function(_0x4464a6){const _0x4c541f=_0x585a13;return _0x4464a6&&_0xb75c8f[_0x4c541f('0x86')][_0x4c541f('0x41')]({'id':0x0,'priority':0x0,'app':_0x4c541f('0x2'),'appdata':_0x4464a6[_0x4c541f('0x7b')]+','+(_0xb75c8f[_0x4c541f('0xbd')][_0x4c541f('0xac')]||0xa),'interval':_0x4c541f('0x82')}),respondWithRpcPromise(_0x4c541f('0x6c'),_0x4c541f('0x1c'),_0xb75c8f);});return respondWithRpcPromise(_0x585a13('0x6c'),_0x585a13('0x1c'),_0xb75c8f);})[_0x2b7600('0x4a')](function(_0x2d8d97){const _0x3aafd6=_0x2b7600;if(_0x2d8d97){const _0x27fdec=0xc8,_0x9fb866='receiveMessage';return logger[_0x3aafd6('0x8f')](_0x3aafd6('0x4b'),_0x9fb866,_0x27fdec,_0x3aafd6('0xaa')),logger[_0x3aafd6('0x95')](_0x3aafd6('0x43'),_0x9fb866,_0x27fdec,_0x3aafd6('0xaa'),JSON[_0x3aafd6('0x7a')](_0x2d8d97)),_0xb75c8f[_0x3aafd6('0xbd')][_0x3aafd6('0x14')]===_0x3aafd6('0xa2')?_0x5bdb72['status'](_0x27fdec)[_0x3aafd6('0xa5')](_0x3aafd6('0xb5'),_0x3aafd6('0x0'))[_0x3aafd6('0x92')](_0x3aafd6('0xc')):_0x5bdb72[_0x3aafd6('0x6a')](_0x27fdec)[_0x3aafd6('0x9f')](_0x2d8d97);}})['catch'](handleError(_0x5bdb72,null));},exports[_0x1fa009('0xb4')]=function(_0x3d3e9f,_0x10baa2){const _0x5c16d7=_0x1fa009;return db['SmsAccount'][_0x5c16d7('0x2d')]({'where':{'id':_0x3d3e9f['params']['id']}})['then'](handleEntityNotFound(_0x10baa2,null))[_0x5c16d7('0x4a')](function(_0x17b8ca){const _0x27e2ac=_0x5c16d7;if(_0x17b8ca)return db[_0x27e2ac('0x52')]['transaction'](function(_0x1d505f){const _0x23c640=_0x27e2ac;return db[_0x23c640('0x8d')][_0x23c640('0x4f')]({'where':{'SmsAccountId':_0x3d3e9f['params']['id']},'transaction':_0x1d505f})[_0x23c640('0x4a')](function(){const _0x31144e=_0x23c640,_0x4c184e=_['map'](_0x3d3e9f[_0x31144e('0x22')],function(_0x2cdba5){const _0x39dc44=_0x31144e;return _0x2cdba5[_0x39dc44('0xc0')]=_0x3d3e9f['params']['id'],_0x2cdba5;});return db[_0x31144e('0x8d')][_0x31144e('0x8e')](_0x4c184e,{'transaction':_0x1d505f});});})['then'](function(){const _0x30713b=_0x27e2ac;return db[_0x30713b('0x8d')]['findAndCountAll']({'where':{'SmsAccountId':_0x3d3e9f[_0x30713b('0x3')]['id']},'order':_0x30713b('0x26')});});})[_0x5c16d7('0x4a')](respondWithResult(_0x10baa2,null))[_0x5c16d7('0x9e')](handleError(_0x10baa2,null));},exports[_0x1fa009('0x7c')]=function(_0x4378ba,_0x7a7b19){const _0x5811b8=_0x1fa009;let _0xec1a8f={};const _0x3ecc0c={};let _0x2047fd,_0xcf85b3;return db[_0x5811b8('0x2e')][_0x5811b8('0x2d')]({'where':{'id':_0x4378ba[_0x5811b8('0x3')]['id']}})[_0x5811b8('0x4a')](handleEntityNotFound(_0x7a7b19,null))[_0x5811b8('0x4a')](function(_0x222fac){const _0x164c92=_0x5811b8;if(_0x222fac)return _0x2047fd=_0x222fac,_0x3ecc0c[_0x164c92('0x30')]=_['keys'](db[_0x164c92('0x8d')]['rawAttributes']),_0x3ecc0c['query']=_[_0x164c92('0x1a')](_0x4378ba[_0x164c92('0x6d')]),_0x3ecc0c[_0x164c92('0x54')]=_[_0x164c92('0x19')](_0x3ecc0c['model'],_0x3ecc0c[_0x164c92('0x6d')]),_0xec1a8f[_0x164c92('0x3f')]=_[_0x164c92('0x19')](_0x3ecc0c[_0x164c92('0x30')],qs[_0x164c92('0xa4')](_0x4378ba[_0x164c92('0x6d')]['fields'])),_0xec1a8f['attributes']=_0xec1a8f[_0x164c92('0x3f')][_0x164c92('0x2f')]?_0xec1a8f[_0x164c92('0x3f')]:_0x3ecc0c[_0x164c92('0x30')],_0xec1a8f[_0x164c92('0xc5')]=qs[_0x164c92('0x5c')](_0x4378ba[_0x164c92('0x6d')]['sort']),_0xec1a8f[_0x164c92('0x70')]=qs[_0x164c92('0x54')](_['pick'](_0x4378ba[_0x164c92('0x6d')],_0x3ecc0c[_0x164c92('0x54')])),_0x4378ba[_0x164c92('0x6d')][_0x164c92('0x4c')]&&(_0xec1a8f[_0x164c92('0x70')]=_['merge'](_0xec1a8f[_0x164c92('0x70')],{[Op['or']]:_[_0x164c92('0x75')](_0xec1a8f[_0x164c92('0x3f')],function(_0x4a02c7){const _0x40bda7=_0x164c92,_0xb5aad1={};return _0xb5aad1[_0x4a02c7]={[Op[_0x40bda7('0x2c')]]:'%'+_0x4378ba[_0x40bda7('0x6d')]['filter']+'%'},_0xb5aad1;})})),_0xec1a8f=_[_0x164c92('0x28')]({},_0xec1a8f,_0x4378ba[_0x164c92('0xae')]),_0x2047fd[_0x164c92('0x7c')](_0xec1a8f);})[_0x5811b8('0x4a')](function(_0x235823){const _0x66875a=_0x5811b8;if(_0x235823)return _0xcf85b3=_0x235823['length'],typeof _0x4378ba[_0x66875a('0x6d')]['nolimit']===_0x66875a('0x51')&&(_0xec1a8f[_0x66875a('0x2a')]=qs[_0x66875a('0x2a')](_0x4378ba[_0x66875a('0x6d')][_0x66875a('0x2a')]),_0xec1a8f[_0x66875a('0x7')]=qs[_0x66875a('0x7')](_0x4378ba['query'][_0x66875a('0x7')])),_0x2047fd[_0x66875a('0x7c')](_0xec1a8f);})[_0x5811b8('0x4a')](function(_0x4b9477){if(_0x4b9477)return _0x4b9477?{'count':_0xcf85b3,'rows':_0x4b9477}:null;})['then'](respondWithResult(_0x7a7b19,null))[_0x5811b8('0x9e')](handleError(_0x7a7b19,null));},exports[_0x1fa009('0x44')]=function(_0x195d79,_0x21dd3f){const _0x57ceb4=_0x1fa009;let _0x357a1c={'raw':![],'where':{}};const _0x39bde5={},_0x54bc81={'count':0x0,'rows':[]};return db['SmsAccount'][_0x57ceb4('0x2d')]({'where':{'id':_0x195d79[_0x57ceb4('0x3')]['id']}})['then'](handleEntityNotFound(_0x21dd3f,null))[_0x57ceb4('0x4a')](function(_0x45b59a){const _0x2be64b=_0x57ceb4;if(_0x45b59a)return _0x39bde5[_0x2be64b('0x30')]=_['keys'](db['SmsInteraction']['rawAttributes']),_0x39bde5[_0x2be64b('0x6d')]=_[_0x2be64b('0x1a')](_0x195d79[_0x2be64b('0x6d')]),_0x39bde5[_0x2be64b('0x54')]=_[_0x2be64b('0x19')](_0x39bde5['model'],_0x39bde5[_0x2be64b('0x6d')]),_0x357a1c['attributes']=_[_0x2be64b('0x19')](_0x39bde5[_0x2be64b('0x30')],qs[_0x2be64b('0xa4')](_0x195d79[_0x2be64b('0x6d')][_0x2be64b('0xa4')])),_0x357a1c['attributes']=_0x357a1c[_0x2be64b('0x3f')][_0x2be64b('0x2f')]?_0x357a1c[_0x2be64b('0x3f')]:_0x39bde5[_0x2be64b('0x30')],typeof _0x195d79['query'][_0x2be64b('0x18')]==='undefined'&&(_0x357a1c[_0x2be64b('0x2a')]=qs[_0x2be64b('0x2a')](_0x195d79[_0x2be64b('0x6d')][_0x2be64b('0x2a')]),_0x357a1c[_0x2be64b('0x7')]=qs['offset'](_0x195d79[_0x2be64b('0x6d')][_0x2be64b('0x7')])),_0x357a1c[_0x2be64b('0xc5')]=qs[_0x2be64b('0x5c')](_0x195d79[_0x2be64b('0x6d')][_0x2be64b('0x5c')]),_0x357a1c[_0x2be64b('0x70')]=qs[_0x2be64b('0x54')](_[_0x2be64b('0x11')](_0x195d79[_0x2be64b('0x6d')],_0x39bde5[_0x2be64b('0x54')])),_0x357a1c[_0x2be64b('0x70')][_0x2be64b('0xc0')]=_0x45b59a['id'],_0x195d79[_0x2be64b('0x6d')][_0x2be64b('0x4c')]&&(_0x357a1c[_0x2be64b('0x70')]=_['merge'](_0x357a1c[_0x2be64b('0x70')],{[Op['or']]:_[_0x2be64b('0x75')](_0x357a1c[_0x2be64b('0x3f')],function(_0x107e1b){const _0x26e9ed=_0x2be64b,_0x1faeed={};return _0x1faeed[_0x107e1b]={[Op[_0x26e9ed('0x2c')]]:'%'+_0x195d79[_0x26e9ed('0x6d')][_0x26e9ed('0x4c')]+'%'},_0x1faeed;})})),_0x357a1c=_[_0x2be64b('0x28')]({},_0x357a1c,_0x195d79[_0x2be64b('0xae')]),db[_0x2be64b('0xc7')][_0x2be64b('0x1d')]({'where':_0x357a1c[_0x2be64b('0x70')]})[_0x2be64b('0x4a')](function(_0x8def3){const _0x499d2a=_0x2be64b;return _0x54bc81['count']=_0x8def3,_0x195d79[_0x499d2a('0x6d')]['includeAll']&&(_0x357a1c[_0x499d2a('0xc6')]=[{'model':db['CmContact'],'as':_0x499d2a('0xad'),'required':![]},{'model':db['User'],'as':_0x499d2a('0xb7'),'attributes':['name',_0x499d2a('0x53'),_0x499d2a('0x4e')],'required':![]},{'model':db[_0x499d2a('0x48')],'as':_0x499d2a('0x5f'),'attributes':['id',_0x499d2a('0x7b'),_0x499d2a('0x6e')],'where':_0x195d79['query']['tag']?{'id':_0x195d79[_0x499d2a('0x6d')]['tag']}:undefined,'required':_0x195d79[_0x499d2a('0x6d')][_0x499d2a('0xe')]?!![]:![]}]),db['SmsInteraction'][_0x499d2a('0x5d')](_0x357a1c);})[_0x2be64b('0x4a')](function(_0x1632bf){return _0x54bc81['rows']=_0x1632bf,_0x54bc81;});})['then'](respondWithFilteredResult(_0x21dd3f,_0x357a1c))[_0x57ceb4('0x9e')](handleError(_0x21dd3f,null));},exports['send']=function(_0x79986,_0x4c30be){const _0x209830=_0x1fa009;let _0x28c5fa,_0x2586ce;if(_['isNil'](_0x79986[_0x209830('0x22')][_0x209830('0x22')])||_0x79986['body']['body']==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x209830('0x40')](_0x79986[_0x209830('0x22')]['to']))throw new ValidationError(_0x209830('0x33'));const _0x56e661=_0x79986[_0x209830('0x22')]['to'];return db['SmsAccount'][_0x209830('0x2d')]({'where':{'id':_0x79986[_0x209830('0x3')]['id']},'include':[{'model':db[_0x209830('0xc4')],'as':_0x209830('0x77'),'include':[{'model':db['CmContact'],'as':'Contacts','where':{'mobile':_0x56e661},'limit':0x1,'order':[[_0x209830('0x64'),_0x209830('0xf')]]}]}]})[_0x209830('0x4a')](handleEntityNotFound(_0x4c30be,null))[_0x209830('0x4a')](function(_0x1ba999){const _0x24f6a6=_0x209830;if(_0x1ba999&&_0x1ba999['List']){_0x28c5fa=_0x1ba999[_0x24f6a6('0x5b')]({'plain':!![]});if(_0x28c5fa['List']&&_0x28c5fa[_0x24f6a6('0x77')][_0x24f6a6('0x35')][_0x24f6a6('0x2f')])return _0x28c5fa['List'][_0x24f6a6('0x35')][0x0];return db[_0x24f6a6('0x4d')][_0x24f6a6('0x34')](_['defaults'](_0x79986['body'],{'firstName':_0x56e661,'mobile':_0x56e661,'phone':_0x56e661,'ListId':_0x28c5fa[_0x24f6a6('0x5')]}));}})['then'](handleEntityNotFound(_0x4c30be,null))[_0x209830('0x4a')](function(_0x104380){const _0x2794b7=_0x209830;if(_0x104380)return _0x2586ce=_0x104380,db[_0x2794b7('0xc7')][_0x2794b7('0x2d')]({'where':{'ContactId':_0x2586ce['id'],'closed':![],'SmsAccountId':_0x28c5fa['id']}})[_0x2794b7('0x4a')](function(_0x5a73fc){const _0x515a6c=_0x2794b7;if(_0x5a73fc)return[_0x5a73fc,![]];return db[_0x515a6c('0xc7')][_0x515a6c('0x34')]({'UserId':_0x79986[_0x515a6c('0xa0')]['id'],'ContactId':_0x2586ce['id'],'SmsAccountId':_0x28c5fa['id'],'phone':_0x56e661,'firstMsgDirection':_0x515a6c('0x17'),'Messages':[_[_0x515a6c('0x28')](_0x79986[_0x515a6c('0x22')],{'read':![],'body':_0x79986[_0x515a6c('0x22')][_0x515a6c('0x22')],'phone':_0x56e661,'SmsAccountId':_0x28c5fa['id'],'UserId':_0x79986[_0x515a6c('0xa0')]['id'],'ContactId':_0x2586ce['id']})]},{'include':[{'model':db[_0x515a6c('0x68')],'as':_0x515a6c('0xb1')}]})[_0x515a6c('0x4a')](function(_0x51d814){return[_0x51d814,!![]];});});})[_0x209830('0x4a')](function([_0x279b52,_0x2344af]){const _0x471695=_0x209830;if(_0x2344af)return _0x279b52;return db['SmsMessage'][_0x471695('0x34')](_['merge'](_0x79986[_0x471695('0x22')],{'read':![],'body':_0x79986['body']['body'],'phone':_0x56e661,'SmsAccountId':_0x28c5fa['id'],'SmsInteractionId':_0x279b52['id'],'UserId':_0x79986[_0x471695('0xa0')]['id'],'ContactId':_0x2586ce['id']}))[_0x471695('0x4a')](function(_0x46f73e){const _0x3a8220=_0x471695;return _0x279b52[_0x3a8220('0x73')]['Messages']=[],_0x279b52[_0x3a8220('0x73')]['Messages']['push'](_0x46f73e[_0x3a8220('0x73')]),_0x279b52;});})[_0x209830('0x4a')](respondWithResult(_0x4c30be,null))['catch'](handleError(_0x4c30be,null));},exports[_0x1fa009('0x6a')]=function(_0xbed239,_0x503a20){const _0x456451=_0x1fa009;_0xbed239['body']['id']&&delete _0xbed239['body']['id'];console[_0x456451('0xc8')]('endpoint\x20/status\x20POST\x20/',_0xbed239['body']);let _0x178906,_0x34dd1b,_0x5d81fa;return db[_0x456451('0x2e')][_0x456451('0x2d')]({'where':{'id':_0xbed239['params']['id']}})[_0x456451('0x4a')](handleEntityNotFound(_0x503a20,null))['then'](function(_0xc0e8a9){const _0xff17a9=_0x456451;if(_0xc0e8a9){_0x5d81fa=_0xc0e8a9,logger[_0xff17a9('0x95')](_0xff17a9('0x4b'),'status',_0xff17a9('0x1'),_0xc0e8a9[_0xff17a9('0x14')],util['inspect'](_0xbed239[_0xff17a9('0x22')],{'showHidden':![],'depth':null}));switch(_0xc0e8a9['type']){case _0xff17a9('0x61'):if(_0xbed239[_0xff17a9('0x22')][_0xff17a9('0xc1')]&&_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x6a')])return _0x34dd1b=_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x6a')],db[_0xff17a9('0x68')][_0xff17a9('0x2d')]({'where':{'messageId':_0xbed239[_0xff17a9('0x22')][_0xff17a9('0xc1')]}});break;case _0xff17a9('0x12'):if(_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x24')]&&_0xbed239['body'][_0xff17a9('0x32')])return _0x34dd1b=_0xbed239['body']['statusInt'],db[_0xff17a9('0x68')][_0xff17a9('0x2d')]({'where':{'messageId':_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x24')]}});break;case _0xff17a9('0x9d'):if(_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x93')]&&_0xbed239[_0xff17a9('0x22')]['status_code'])return _0x34dd1b=_0xbed239['body']['status_code'],db[_0xff17a9('0x68')]['findOne']({'where':{'messageId':_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x93')]}});break;case _0xff17a9('0xc2'):{const _0x5b20ea=_0xbed239[_0xff17a9('0x22')][_0xff17a9('0xd')][0x0];if(_0x5b20ea[_0xff17a9('0x5e')]&&_0x5b20ea[_0xff17a9('0x6a')][_0xff17a9('0xba')]===_0xff17a9('0x21'))return _0x34dd1b=_0x5b20ea[_0xff17a9('0x6a')][_0xff17a9('0xba')],db[_0xff17a9('0x68')][_0xff17a9('0x2d')]({'where':{'messageId':_0x5b20ea[_0xff17a9('0x5e')]}});}break;case _0xff17a9('0x5a'):if(_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x5e')]&&_0xbed239[_0xff17a9('0x22')]['status'])return _0x34dd1b=_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x6a')],db[_0xff17a9('0x68')][_0xff17a9('0x2d')]({'where':{'messageId':_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x5e')]}});break;case _0xff17a9('0xc3'):if(_0xbed239[_0xff17a9('0x22')][_0xff17a9('0xab')]&&_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x6a')])return _0x34dd1b=_0xbed239[_0xff17a9('0x22')][_0xff17a9('0x6a')],db['SmsMessage'][_0xff17a9('0x2d')]({'where':{'messageId':_0xbed239['body'][_0xff17a9('0xab')]}});break;}}})[_0x456451('0x4a')](handleEntityNotFound(_0x503a20,null))['then'](function(_0x32f917){const _0x30ac60=_0x456451;if(_0x32f917){_0x178906=_0x32f917;switch(_0x5d81fa['type']){case _0x30ac60('0x61'):if(_0x34dd1b===_0x30ac60('0x21'))return _0x178906[_0x30ac60('0xa8')]({'read':!![]});else logger['error'](_0x30ac60('0x4b'),_0x30ac60('0x6a'),'skebby',util[_0x30ac60('0x8c')](_0xbed239[_0x30ac60('0x22')],{'showHidden':![],'depth':null}));break;case _0x30ac60('0x12'):if(_0x34dd1b==='1')return _0x178906[_0x30ac60('0xa8')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x30ac60('0x6a'),_0x30ac60('0x61'),util[_0x30ac60('0x8c')](_0xbed239[_0x30ac60('0x22')],{'showHidden':![],'depth':null}));break;case'clicksend':if(!_0xbed239[_0x30ac60('0x22')]['error_code']&&_0x34dd1b>=0xc8&&_0x34dd1b<=0xce)return _0x178906[_0x30ac60('0xa8')]({'read':!![]});else logger[_0x30ac60('0x99')]('SmsAccount,\x20%s,\x20%s,\x20%s','status','clicksend',util[_0x30ac60('0x8c')](_0xbed239[_0x30ac60('0x22')],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x492037=_0xbed239[_0x30ac60('0x22')][_0x30ac60('0xd')][0x0];if(_0x492037['status'][_0x30ac60('0xba')]===_0x30ac60('0x21'))return _0x178906[_0x30ac60('0xa8')]({'read':!![]});else logger[_0x30ac60('0x99')](_0x30ac60('0x4b'),_0x30ac60('0x6a'),_0x30ac60('0xc2'),util[_0x30ac60('0x8c')](_0xbed239[_0x30ac60('0x22')],{'showHidden':![],'depth':null}));}break;case _0x30ac60('0x5a'):if(_0x34dd1b==_0x30ac60('0x1f')||_0x34dd1b==_0x30ac60('0x65'))return _0x178906[_0x30ac60('0xa8')]({'read':!![]});else logger[_0x30ac60('0x99')](_0x30ac60('0x4b'),_0x30ac60('0x6a'),_0x30ac60('0x5a'),util[_0x30ac60('0x8c')](_0xbed239['body'],{'showHidden':![],'depth':null}));break;case _0x30ac60('0xc3'):if(_0x34dd1b===_0x30ac60('0x4')||_0x34dd1b===_0x30ac60('0xa9'))return _0x178906['update']({'read':!![]});else logger[_0x30ac60('0x99')](_0x30ac60('0x4b'),_0x30ac60('0x6a'),'intelepeer',util['inspect'](_0xbed239[_0x30ac60('0x22')],{'showHidden':![],'depth':null}));break;}return _0x178906;}})[_0x456451('0x4a')](respondWithResult(_0x503a20,null))[_0x456451('0x9e')](handleError(_0x503a20,null));},exports[_0x1fa009('0xb9')]=function(_0x548e9d,_0x21b5e0){const _0x1e54ba=_0x1fa009;let _0x4c9718,_0x5e449d,_0xb95342;return db[_0x1e54ba('0x2e')]['findOne']({'where':{'id':_0x548e9d[_0x1e54ba('0x3')]['id']}})[_0x1e54ba('0x4a')](handleEntityNotFound(_0x21b5e0,null))['then'](function(_0x286299){const _0x295871=_0x1e54ba;if(_0x286299){_0xb95342=_0x286299,logger[_0x295871('0x95')](_0x295871('0x4b'),_0x295871('0x6a'),_0x295871('0x1'),_0x286299[_0x295871('0x14')],util[_0x295871('0x8c')](_0x548e9d[_0x295871('0x6d')],{'showHidden':![],'depth':null}));switch(_0x286299[_0x295871('0x14')]){case _0x295871('0x9c'):if(_0x548e9d['query'][_0x295871('0x71')]&&_0x548e9d['query'][_0x295871('0xa1')])return _0x5e449d=_0x548e9d[_0x295871('0x6d')][_0x295871('0xa1')],db[_0x295871('0x68')]['findOne']({'where':{'messageId':_0x548e9d[_0x295871('0x6d')][_0x295871('0x71')]}});break;}}})[_0x1e54ba('0x4a')](handleEntityNotFound(_0x21b5e0,null))[_0x1e54ba('0x4a')](function(_0x2227d1){const _0xdebd0a=_0x1e54ba;if(_0x2227d1){_0x4c9718=_0x2227d1;switch(_0xb95342['type']){case'csc':if(_0x5e449d==='2'||_0x5e449d==='6')return _0x4c9718['update']({'read':!![]});else logger['error'](_0xdebd0a('0x4b'),_0xdebd0a('0x6a'),_0xdebd0a('0x9c'),util[_0xdebd0a('0x8c')](_0x548e9d['query'],{'showHidden':![],'depth':null}));break;}return _0x4c9718;}})[_0x1e54ba('0x4a')](respondWithResult(_0x21b5e0,null))[_0x1e54ba('0x9e')](handleError(_0x21b5e0,null));},exports[_0x1fa009('0xbc')]=function(_0x3ae23d,_0x5639ad){const _0x4d2d68=_0x1fa009;return db[_0x4d2d68('0x2e')][_0x4d2d68('0x2d')]({'where':{'id':_0x3ae23d[_0x4d2d68('0x3')]['id']}})['then'](function(_0x135973){const _0x3d59ca=_0x4d2d68;if(_0x135973)return _0x135973[_0x3d59ca('0xbc')](_0x3ae23d[_0x3d59ca('0x22')][_0x3d59ca('0x42')],{'through':_[_0x3d59ca('0x66')](_0x3ae23d['body'],[_0x3d59ca('0x42'),'id'])})[_0x3d59ca('0x4a')](function(_0x3ce739){const _0x17c3b7=_0x3d59ca;for(let _0x4d6e4e=0x0;_0x4d6e4e<_0x3ae23d[_0x17c3b7('0x22')][_0x17c3b7('0x42')][_0x17c3b7('0x2f')];_0x4d6e4e+=0x1){socket[_0x17c3b7('0x3e')](_0x17c3b7('0x16'),{'UserId':_0x3ae23d[_0x17c3b7('0x22')][_0x17c3b7('0x42')][_0x4d6e4e],'SmsAccountId':_0x3ae23d[_0x17c3b7('0x3')]['id']});}return _0x3ce739;});})[_0x4d2d68('0x4a')](respondWithResult(_0x5639ad,null))[_0x4d2d68('0x9e')](handleError(_0x5639ad,null));},exports[_0x1fa009('0x67')]=function(_0x54e646,_0x352775){const _0x260d9d=_0x1fa009;return db[_0x260d9d('0x2e')][_0x260d9d('0x2d')]({'where':{'id':_0x54e646[_0x260d9d('0x3')]['id']}})[_0x260d9d('0x4a')](handleEntityNotFound(_0x352775,null))['then'](function(_0x4064cd){const _0x4eb934=_0x260d9d;if(_0x4064cd)return _0x4064cd[_0x4eb934('0x67')](_0x54e646['query'][_0x4eb934('0x42')])['then'](function(){const _0x5bd189=_0x4eb934;if(_[_0x5bd189('0x6f')](_0x54e646[_0x5bd189('0x6d')][_0x5bd189('0x42')]))for(let _0x532125=0x0;_0x532125<_0x54e646['query'][_0x5bd189('0x42')][_0x5bd189('0x2f')];_0x532125+=0x1){socket['emit'](_0x5bd189('0x56'),{'UserId':Number(_0x54e646[_0x5bd189('0x6d')][_0x5bd189('0x42')][_0x532125]),'SmsAccountId':Number(_0x54e646['params']['id'])});}else socket[_0x5bd189('0x3e')](_0x5bd189('0x56'),{'UserId':Number(_0x54e646[_0x5bd189('0x6d')]['ids']),'SmsAccountId':Number(_0x54e646[_0x5bd189('0x3')]['id'])});});})[_0x260d9d('0x4a')](respondWithStatusCode(_0x352775,null))[_0x260d9d('0x9e')](handleError(_0x352775,null));},exports[_0x1fa009('0x79')]=function(_0x1d40be,_0x5d4b0d){const _0x15d6be=_0x1fa009;let _0x3882d9={};const _0x5b787f={};let _0x25213d,_0x52433e;return db[_0x15d6be('0x2e')][_0x15d6be('0x2d')]({'where':{'id':_0x1d40be[_0x15d6be('0x3')]['id']}})[_0x15d6be('0x4a')](handleEntityNotFound(_0x5d4b0d,null))['then'](function(_0x43cc2f){const _0x4f7263=_0x15d6be;if(_0x43cc2f)return _0x25213d=_0x43cc2f,_0x5b787f[_0x4f7263('0x30')]=_[_0x4f7263('0x1a')](db[_0x4f7263('0x7f')][_0x4f7263('0x9b')]),_0x5b787f[_0x4f7263('0x6d')]=_[_0x4f7263('0x1a')](_0x1d40be['query']),_0x5b787f[_0x4f7263('0x54')]=_[_0x4f7263('0x19')](_0x5b787f[_0x4f7263('0x30')],_0x5b787f[_0x4f7263('0x6d')]),_0x3882d9[_0x4f7263('0x3f')]=_[_0x4f7263('0x19')](_0x5b787f[_0x4f7263('0x30')],qs['fields'](_0x1d40be[_0x4f7263('0x6d')][_0x4f7263('0xa4')])),_0x3882d9[_0x4f7263('0x3f')]=_0x3882d9['attributes']['length']?_0x3882d9['attributes']:_0x5b787f[_0x4f7263('0x30')],_0x3882d9[_0x4f7263('0xc5')]=qs[_0x4f7263('0x5c')](_0x1d40be[_0x4f7263('0x6d')][_0x4f7263('0x5c')]),_0x3882d9[_0x4f7263('0x70')]=qs[_0x4f7263('0x54')](_['pick'](_0x1d40be[_0x4f7263('0x6d')],_0x5b787f[_0x4f7263('0x54')])),_0x1d40be['query'][_0x4f7263('0x4c')]&&(_0x3882d9[_0x4f7263('0x70')]=_[_0x4f7263('0x28')](_0x3882d9['where'],{[Op['or']]:_[_0x4f7263('0x75')](_0x3882d9[_0x4f7263('0x3f')],function(_0x5efa0b){const _0x302cc5=_0x4f7263,_0x18db88={};return _0x18db88[_0x5efa0b]={[Op[_0x302cc5('0x2c')]]:'%'+_0x1d40be['query']['filter']+'%'},_0x18db88;})})),_0x3882d9=_[_0x4f7263('0x28')]({},_0x3882d9,_0x1d40be['options']),_0x25213d[_0x4f7263('0x79')](_0x3882d9);})[_0x15d6be('0x4a')](function(_0x44bac4){const _0x4e4f3b=_0x15d6be;if(_0x44bac4)return _0x52433e=_0x44bac4[_0x4e4f3b('0x2f')],typeof _0x1d40be['query'][_0x4e4f3b('0x18')]===_0x4e4f3b('0x51')&&(_0x3882d9[_0x4e4f3b('0x2a')]=qs[_0x4e4f3b('0x2a')](_0x1d40be[_0x4e4f3b('0x6d')][_0x4e4f3b('0x2a')]),_0x3882d9[_0x4e4f3b('0x7')]=qs['offset'](_0x1d40be['query']['offset'])),_0x25213d[_0x4e4f3b('0x79')](_0x3882d9);})[_0x15d6be('0x4a')](function(_0x3972b8){if(_0x3972b8)return _0x3972b8?{'count':_0x52433e,'rows':_0x3972b8}:null;})['then'](respondWithResult(_0x5d4b0d,null))[_0x15d6be('0x9e')](handleError(_0x5d4b0d,null));}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 9a8c8b2..9bd382a 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a543_0x1364=['remove','undefined','emit','update','SmsAccount','../../mysqldb','addHook','events','exports','setMaxListeners'];(function(_0x1ec96b,_0x1364b0){const _0x51f41d=function(_0x500fff){while(--_0x500fff){_0x1ec96b['push'](_0x1ec96b['shift']());}};_0x51f41d(++_0x1364b0);}(a543_0x1364,0x15b));const a543_0x51f4=function(_0x1ec96b,_0x1364b0){_0x1ec96b=_0x1ec96b-0x0;let _0x51f41d=a543_0x1364[_0x1ec96b];return _0x51f41d;};const _0x4a57a8=a543_0x51f4;'use strict';const EventEmitter=require(_0x4a57a8('0x0')),SmsAccount=require(_0x4a57a8('0x8'))['db'][_0x4a57a8('0x7')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x4a57a8('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4a57a8('0x6'),'afterDestroy':_0x4a57a8('0x3')};function emitEvent(_0x500fff){return function(_0x52b248){const _0x4d389c=a543_0x51f4;SmsAccountEvents[_0x4d389c('0x5')](_0x500fff+':'+_0x52b248['id'],_0x52b248),SmsAccountEvents[_0x4d389c('0x5')](_0x500fff,_0x52b248);};}for(const e in events){if(typeof events[e]!==_0x4a57a8('0x4')){const event=events[e];SmsAccount[_0x4a57a8('0x9')](e,emitEvent(event));}}module[_0x4a57a8('0x1')]=SmsAccountEvents; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index d57b475..3570a21 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a544_0x18d0=['sms_accounts','exports','SmsAccount'];(function(_0x38fd94,_0x18d078){const _0xbc4b59=function(_0x137917){while(--_0x137917){_0x38fd94['push'](_0x38fd94['shift']());}};_0xbc4b59(++_0x18d078);}(a544_0x18d0,0x1d5));const a544_0xbc4b=function(_0x38fd94,_0x18d078){_0x38fd94=_0x38fd94-0x0;let _0xbc4b59=a544_0x18d0[_0x38fd94];return _0xbc4b59;};const _0x51b494=a544_0xbc4b;'use strict';const attributes=require('./smsAccount.attributes');module[_0x51b494('0x0')]=function(_0x137917){const _0x1e0351=_0x51b494,_0x46504=_0x137917['define'](_0x1e0351('0x1'),attributes,{'tableName':_0x1e0351('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x46504;}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index 87ecf26..c966b45 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a545_0x4126=['../../rediscache','findOne','debug','model','info','./smsAccount.socket','SmsAccount','../../mysqldb','attributes','rpc','where','../../config/logger','ShowSmsAccount','map','message','include','lodash','catch','options','error'];(function(_0x343dcb,_0x4126da){const _0x400414=function(_0x172f0e){while(--_0x172f0e){_0x343dcb['push'](_0x343dcb['shift']());}};_0x400414(++_0x4126da);}(a545_0x4126,0xce));const a545_0x4004=function(_0x343dcb,_0x4126da){_0x343dcb=_0x343dcb-0x0;let _0x400414=a545_0x4126[_0x343dcb];return _0x400414;};const _0x2fce25=a545_0x4004;'use strict';const db=require(_0x2fce25('0x1'))['db'],logger=require(_0x2fce25('0x5'))(_0x2fce25('0x3')),_=require(_0x2fce25('0xa')),{getSocket}=require(_0x2fce25('0xe')),socket=getSocket();require(_0x2fce25('0x13'))['register'](socket),exports['ShowSmsAccount']=function(_0x172f0e){const _0x54b2ec=this;return new Promise(function(_0x4df5d7,_0x1a590f){const _0x45217d=a545_0x4004;return db[_0x45217d('0x0')][_0x45217d('0xf')]({'raw':_0x172f0e[_0x45217d('0xc')]?_0x172f0e['options']['raw']===undefined?!![]:![]:!![],'where':_0x172f0e[_0x45217d('0xc')]?_0x172f0e[_0x45217d('0xc')][_0x45217d('0x4')]||null:null,'attributes':_0x172f0e[_0x45217d('0xc')]?_0x172f0e['options'][_0x45217d('0x2')]||null:null,'include':_0x172f0e[_0x45217d('0xc')]?_0x172f0e[_0x45217d('0xc')][_0x45217d('0x9')]?_[_0x45217d('0x7')](_0x172f0e[_0x45217d('0xc')]['include'],function(_0x1db9ea){const _0x395dbb=_0x45217d;return{'model':db[_0x1db9ea[_0x395dbb('0x11')]],'as':_0x1db9ea['as'],'attributes':_0x1db9ea[_0x395dbb('0x2')],'include':_0x1db9ea[_0x395dbb('0x9')]?_['map'](_0x1db9ea[_0x395dbb('0x9')],function(_0x5b1c83){const _0x450074=_0x395dbb;return{'model':db[_0x5b1c83[_0x450074('0x11')]],'as':_0x5b1c83['as'],'attributes':_0x5b1c83[_0x450074('0x2')],'include':_0x5b1c83[_0x450074('0x9')]?_['map'](_0x5b1c83[_0x450074('0x9')],function(_0x48c053){const _0x59183e=_0x450074;return{'model':db[_0x48c053[_0x59183e('0x11')]],'as':_0x48c053['as'],'attributes':_0x48c053['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2b92c1){const _0x53025f=_0x45217d;logger[_0x53025f('0x12')]('ShowSmsAccount',_0x172f0e),logger[_0x53025f('0x10')](_0x53025f('0x6'),_0x172f0e,JSON['stringify'](_0x2b92c1)),_0x4df5d7(_0x2b92c1);})[_0x45217d('0xb')](function(_0x233e1c){const _0x55c980=_0x45217d;logger[_0x55c980('0xd')](_0x55c980('0x6'),_0x233e1c['message'],_0x172f0e),_0x1a590f(_0x54b2ec[_0x55c980('0xd')](0x1f4,_0x233e1c[_0x55c980('0x8')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index cd0beb4..da83eb9 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a546_0x3f9a=['smsAccount:','remove','./smsAccount.events','length','emit','save','update'];(function(_0x15747a,_0x3f9a40){const _0x2fb5c9=function(_0x5bf44c){while(--_0x5bf44c){_0x15747a['push'](_0x15747a['shift']());}};_0x2fb5c9(++_0x3f9a40);}(a546_0x3f9a,0xe4));const a546_0x2fb5=function(_0x15747a,_0x3f9a40){_0x15747a=_0x15747a-0x0;let _0x2fb5c9=a546_0x3f9a[_0x15747a];return _0x2fb5c9;};const _0x352024=a546_0x2fb5;'use strict';const SmsAccountEvents=require(_0x352024('0x5')),events=[_0x352024('0x1'),_0x352024('0x4'),_0x352024('0x2')];function createListener(_0x5bf44c,_0x4fc9af){return function(_0x34cbb9){const _0x1194b1=a546_0x2fb5;_0x4fc9af[_0x1194b1('0x0')](_0x5bf44c,_0x34cbb9);};}exports['register']=function(_0x7f97d0){const _0x3d18a9=_0x352024;for(let _0x4daa90=0x0,_0x411199=events[_0x3d18a9('0x6')];_0x4daa90<_0x411199;_0x4daa90++){const _0x368157=events[_0x4daa90],_0x45b524=createListener(_0x3d18a9('0x3')+_0x368157,_0x7f97d0);SmsAccountEvents['on'](_0x368157,_0x45b524);}}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index 74f145b..adcdb56 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a547_0x2fed=['get','../../components/auth/service','/:id','Router','index','delete','exports','isAuthenticated','destroy','put','post','show','./smsApplication.controller','express'];(function(_0x54b282,_0x2fedb4){const _0x32d222=function(_0x2f8e19){while(--_0x2f8e19){_0x54b282['push'](_0x54b282['shift']());}};_0x32d222(++_0x2fedb4);}(a547_0x2fed,0x86));const a547_0x32d2=function(_0x54b282,_0x2fedb4){_0x54b282=_0x54b282-0x0;let _0x32d222=a547_0x2fed[_0x54b282];return _0x32d222;};const _0x17f939=a547_0x32d2;'use strict';const express=require(_0x17f939('0x5')),router=express[_0x17f939('0x9')](),auth=require(_0x17f939('0x7')),controller=require(_0x17f939('0x4'));router[_0x17f939('0x6')]('/',auth[_0x17f939('0xd')](),controller[_0x17f939('0xa')]),router[_0x17f939('0x6')]('/:id',auth[_0x17f939('0xd')](),controller[_0x17f939('0x3')]),router[_0x17f939('0x2')]('/',auth[_0x17f939('0xd')](),controller['create']),router[_0x17f939('0x1')](_0x17f939('0x8'),auth[_0x17f939('0xd')](),controller['update']),router[_0x17f939('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x17f939('0x0')]),module[_0x17f939('0xc')]=router; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index 1c76ecc..b4d18e7 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a548_0x15fa=['INTEGER','noop','*,*,*,*','TEXT','exports','sequelize','STRING'];(function(_0x40083c,_0x15fa83){const _0x137f30=function(_0xe9c5dd){while(--_0xe9c5dd){_0x40083c['push'](_0x40083c['shift']());}};_0x137f30(++_0x15fa83);}(a548_0x15fa,0xb7));const a548_0x137f=function(_0x40083c,_0x15fa83){_0x40083c=_0x40083c-0x0;let _0x137f30=a548_0x15fa[_0x40083c];return _0x137f30;};const _0x119958=a548_0x137f;'use strict';const Sequelize=require(_0x119958('0x4'));module[_0x119958('0x3')]={'priority':{'type':Sequelize[_0x119958('0x6')],'allowNull':![]},'app':{'type':Sequelize[_0x119958('0x5')],'allowNull':![],'defaultValue':_0x119958('0x0')},'appdata':{'type':Sequelize[_0x119958('0x2')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x119958('0x5')],'defaultValue':_0x119958('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.controller.js b/server/api/smsApplication/smsApplication.controller.js index 1efcefe..3af57d4 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a549_0x323a=['rows','keys','query','attributes','rawAttributes','index','like','name','sort','params','status','merge','then','error','filter','set','options','end','key','update','length','intersection','count','type','send','create','show','json','sendStatus','destroy','fields','include','limit','map','nolimit','model','body','filters','Content-Range','SmsApplication','order','where','findOne','../../config/logger','sequelize','includeAll','../../mysqldb','undefined','catch','findAll','lodash','pick','offset','../../components/parsers/qs'];(function(_0x5a3fdb,_0x323ae2){const _0x1c9f0a=function(_0x86ef57){while(--_0x86ef57){_0x5a3fdb['push'](_0x5a3fdb['shift']());}};_0x1c9f0a(++_0x323ae2);}(a549_0x323a,0x162));const a549_0x1c9f=function(_0x5a3fdb,_0x323ae2){_0x5a3fdb=_0x5a3fdb-0x0;let _0x1c9f0a=a549_0x323a[_0x5a3fdb];return _0x1c9f0a;};const _0x418bd0=a549_0x1c9f;'use strict';const _=require(_0x418bd0('0x14')),qs=require(_0x418bd0('0x17')),logger=require(_0x418bd0('0xd'))('api'),db=require(_0x418bd0('0x10'))['db'],{Op}=require(_0x418bd0('0xe'));function respondWithResult(_0x86ef57,_0x3c5d78){return _0x3c5d78=_0x3c5d78||0xc8,function(_0x53c619){const _0x16365b=a549_0x1c9f;if(_0x53c619)return _0x86ef57[_0x16365b('0x22')](_0x3c5d78)[_0x16365b('0x33')](_0x53c619);};}function respondWithFilteredResult(_0x4d2235,_0x2414c6){return function(_0x43ab1c){const _0x403f5f=a549_0x1c9f;if(_0x43ab1c){const _0x32719f=_0x43ab1c[_0x403f5f('0x2e')],_0x1eb53b=_0x2414c6['offset'];let _0x149153=_0x2414c6[_0x403f5f('0x16')]+_0x2414c6['limit'],_0x29258c;return _0x149153>=_0x32719f?(_0x149153=_0x32719f,_0x29258c=0xc8):_0x29258c=0xce,_0x4d2235[_0x403f5f('0x22')](_0x29258c),_0x4d2235[_0x403f5f('0x27')](_0x403f5f('0x8'),_0x1eb53b+'-'+_0x149153+'/'+_0x32719f)[_0x403f5f('0x33')](_0x43ab1c);}return null;};}function saveUpdates(_0x23c3e1){return function(_0x22c72b){const _0x5a7be7=a549_0x1c9f;if(_0x22c72b)return _0x22c72b[_0x5a7be7('0x2b')](_0x23c3e1)['then'](function(_0x522fcf){return _0x522fcf;});return null;};}function removeEntity(_0x4c861b){return function(_0x460dce){const _0x278e8b=a549_0x1c9f;if(_0x460dce)return _0x460dce[_0x278e8b('0x35')]()[_0x278e8b('0x24')](function(){const _0x36130e=_0x278e8b;_0x4c861b[_0x36130e('0x22')](0xcc)[_0x36130e('0x29')]();});};}function handleEntityNotFound(_0x59251c){return function(_0x3f92ab){const _0x4f94b1=a549_0x1c9f;return!_0x3f92ab&&_0x59251c[_0x4f94b1('0x34')](0x194),_0x3f92ab;};}function handleError(_0x36712f,_0x280fc3){return _0x280fc3=_0x280fc3||0x1f4,function(_0x275d0b){const _0x27d785=a549_0x1c9f;logger[_0x27d785('0x25')](_0x275d0b['stack']),_0x275d0b[_0x27d785('0x1f')]&&delete _0x275d0b[_0x27d785('0x1f')],_0x36712f[_0x27d785('0x22')](_0x280fc3)[_0x27d785('0x30')](_0x275d0b);};}exports[_0x418bd0('0x1d')]=function(_0x336a65,_0x1c8257){const _0x42576f=_0x418bd0;let _0x31b968={};const _0x45133d={},_0xa15502={'count':0x0,'rows':[]},_0xceb876=_[_0x42576f('0x3')](db['SmsApplication'][_0x42576f('0x1c')],function(_0x3946f6){const _0x32bf0f=_0x42576f;return{'name':_0x3946f6['fieldName'],'type':_0x3946f6[_0x32bf0f('0x2f')][_0x32bf0f('0x2a')]};});_0x45133d[_0x42576f('0x5')]=_[_0x42576f('0x3')](_0xceb876,_0x42576f('0x1f')),_0x45133d[_0x42576f('0x1a')]=_['keys'](_0x336a65[_0x42576f('0x1a')]),_0x45133d[_0x42576f('0x7')]=_[_0x42576f('0x2d')](_0x45133d[_0x42576f('0x5')],_0x45133d[_0x42576f('0x1a')]),_0x31b968[_0x42576f('0x1b')]=_[_0x42576f('0x2d')](_0x45133d['model'],qs[_0x42576f('0x0')](_0x336a65[_0x42576f('0x1a')][_0x42576f('0x0')])),_0x31b968[_0x42576f('0x1b')]=_0x31b968[_0x42576f('0x1b')][_0x42576f('0x2c')]?_0x31b968[_0x42576f('0x1b')]:_0x45133d[_0x42576f('0x5')];typeof _0x336a65[_0x42576f('0x1a')][_0x42576f('0x4')]===_0x42576f('0x11')&&(_0x31b968['limit']=qs['limit'](_0x336a65[_0x42576f('0x1a')][_0x42576f('0x2')]),_0x31b968[_0x42576f('0x16')]=qs['offset'](_0x336a65[_0x42576f('0x1a')][_0x42576f('0x16')]));_0x31b968[_0x42576f('0xa')]=qs[_0x42576f('0x20')](_0x336a65[_0x42576f('0x1a')][_0x42576f('0x20')]),_0x31b968[_0x42576f('0xb')]=qs[_0x42576f('0x7')](_[_0x42576f('0x15')](_0x336a65[_0x42576f('0x1a')],_0x45133d[_0x42576f('0x7')]),_0xceb876);_0x336a65['query'][_0x42576f('0x26')]&&(_0x31b968[_0x42576f('0xb')]=_['merge'](_0x31b968[_0x42576f('0xb')],{[Op['or']]:_[_0x42576f('0x3')](_0xceb876,function(_0x237e63){const _0x4856a4=_0x42576f;if(_0x237e63[_0x4856a4('0x2f')]!=='VIRTUAL'){const _0x501401={};return _0x501401[_0x237e63[_0x4856a4('0x1f')]]={[Op[_0x4856a4('0x1e')]]:'%'+_0x336a65[_0x4856a4('0x1a')][_0x4856a4('0x26')]+'%'},_0x501401;}})}));_0x31b968=_[_0x42576f('0x23')]({},_0x31b968,_0x336a65[_0x42576f('0x28')]);const _0x49e2ee={'where':_0x31b968[_0x42576f('0xb')]};return db[_0x42576f('0x9')][_0x42576f('0x2e')](_0x49e2ee)[_0x42576f('0x24')](function(_0x3f8559){const _0x15396d=_0x42576f;return _0xa15502[_0x15396d('0x2e')]=_0x3f8559,_0x336a65[_0x15396d('0x1a')]['includeAll']&&(_0x31b968[_0x15396d('0x1')]=[{'all':!![]}]),db[_0x15396d('0x9')][_0x15396d('0x13')](_0x31b968);})[_0x42576f('0x24')](function(_0x1e9b7d){const _0x12accf=_0x42576f;return _0xa15502[_0x12accf('0x18')]=_0x1e9b7d,_0xa15502;})['then'](respondWithFilteredResult(_0x1c8257,_0x31b968))['catch'](handleError(_0x1c8257,null));},exports[_0x418bd0('0x32')]=function(_0x202509,_0x464ed0){const _0x1554d3=_0x418bd0;let _0x43b1b3={'raw':!![],'where':{'id':_0x202509[_0x1554d3('0x21')]['id']}};const _0x2a6944={};return _0x2a6944[_0x1554d3('0x5')]=_[_0x1554d3('0x19')](db['SmsApplication']['rawAttributes']),_0x2a6944[_0x1554d3('0x1a')]=_[_0x1554d3('0x19')](_0x202509[_0x1554d3('0x1a')]),_0x2a6944[_0x1554d3('0x7')]=_[_0x1554d3('0x2d')](_0x2a6944[_0x1554d3('0x5')],_0x2a6944[_0x1554d3('0x1a')]),_0x43b1b3[_0x1554d3('0x1b')]=_[_0x1554d3('0x2d')](_0x2a6944[_0x1554d3('0x5')],qs[_0x1554d3('0x0')](_0x202509[_0x1554d3('0x1a')][_0x1554d3('0x0')])),_0x43b1b3[_0x1554d3('0x1b')]=_0x43b1b3[_0x1554d3('0x1b')][_0x1554d3('0x2c')]?_0x43b1b3['attributes']:_0x2a6944[_0x1554d3('0x5')],_0x202509['query'][_0x1554d3('0xf')]&&(_0x43b1b3[_0x1554d3('0x1')]=[{'all':!![]}]),_0x43b1b3=_[_0x1554d3('0x23')]({},_0x43b1b3,_0x202509['options']),db[_0x1554d3('0x9')][_0x1554d3('0xc')](_0x43b1b3)['then'](handleEntityNotFound(_0x464ed0,null))[_0x1554d3('0x24')](respondWithResult(_0x464ed0,null))['catch'](handleError(_0x464ed0,null));},exports[_0x418bd0('0x31')]=function(_0x13c5c4,_0x538376){const _0x431305=_0x418bd0;return db[_0x431305('0x9')][_0x431305('0x31')](_0x13c5c4['body'],{})['then'](respondWithResult(_0x538376,0xc9))[_0x431305('0x12')](handleError(_0x538376,null));},exports[_0x418bd0('0x2b')]=function(_0x25f07d,_0x57d9ff){const _0x344372=_0x418bd0;return _0x25f07d[_0x344372('0x6')]['id']&&delete _0x25f07d['body']['id'],db[_0x344372('0x9')][_0x344372('0xc')]({'where':{'id':_0x25f07d[_0x344372('0x21')]['id']}})[_0x344372('0x24')](handleEntityNotFound(_0x57d9ff,null))[_0x344372('0x24')](saveUpdates(_0x25f07d[_0x344372('0x6')],null))[_0x344372('0x24')](respondWithResult(_0x57d9ff,null))[_0x344372('0x12')](handleError(_0x57d9ff,null));},exports[_0x418bd0('0x35')]=function(_0x1777e7,_0x4b36e7){const _0x7ec318=_0x418bd0;return db['SmsApplication']['findOne']({'where':{'id':_0x1777e7['params']['id']}})[_0x7ec318('0x24')](handleEntityNotFound(_0x4b36e7,null))[_0x7ec318('0x24')](removeEntity(_0x4b36e7,null))[_0x7ec318('0x12')](handleError(_0x4b36e7,null));}; \ No newline at end of file +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 diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index 2496b44..0ea42b2 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a550_0x5d32=['utf8mb4','utf8mb4_unicode_ci','sms_applications','exports','./smsApplication.attributes'];(function(_0x10a4a1,_0x5d329c){const _0x3ea51a=function(_0xecee00){while(--_0xecee00){_0x10a4a1['push'](_0x10a4a1['shift']());}};_0x3ea51a(++_0x5d329c);}(a550_0x5d32,0xd8));const a550_0x3ea5=function(_0x10a4a1,_0x5d329c){_0x10a4a1=_0x10a4a1-0x0;let _0x3ea51a=a550_0x5d32[_0x10a4a1];return _0x3ea51a;};const _0x12ed41=a550_0x3ea5;'use strict';const attributes=require(_0x12ed41('0x3'));module[_0x12ed41('0x2')]=function(_0xecee00){const _0x33c693=_0x12ed41,_0xcebc3e=_0xecee00['define']('SmsApplication',attributes,{'tableName':_0x33c693('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x33c693('0x4'),'collate':_0x33c693('0x0')});return _0xcebc3e;}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index 4d850fb..21b70f6 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a551_0x19cb=['smsinteraction:addtags','/:id','create','download','get','./smsInteraction.controller','delete','../../components/interaction/service','smsinteraction:destroy','describe','/describe','index','addMessage','tracked','isAuthenticated','destroy','post','exports','update','/:id/tags','express','show','sms','/:id/download','/:id/messages','put'];(function(_0x360e18,_0x19cb6b){const _0x1ca744=function(_0xea177b){while(--_0xea177b){_0x360e18['push'](_0x360e18['shift']());}};_0x1ca744(++_0x19cb6b);}(a551_0x19cb,0x126));const a551_0x1ca7=function(_0x360e18,_0x19cb6b){_0x360e18=_0x360e18-0x0;let _0x1ca744=a551_0x19cb[_0x360e18];return _0x1ca744;};const _0x424685=a551_0x1ca7;'use strict';const express=require(_0x424685('0xc')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x424685('0x19')),controller=require(_0x424685('0x17'));router['get']('/',auth[_0x424685('0x6')](),controller[_0x424685('0x3')]),router[_0x424685('0x16')](_0x424685('0x2'),auth[_0x424685('0x6')](),controller[_0x424685('0x1')]),router[_0x424685('0x16')](_0x424685('0x13'),auth[_0x424685('0x6')](),controller[_0x424685('0xd')]),router[_0x424685('0x16')](_0x424685('0x10'),auth[_0x424685('0x6')](),controller['getMessages']),router[_0x424685('0x16')](_0x424685('0xf'),auth[_0x424685('0x6')](),controller[_0x424685('0x15')]),router[_0x424685('0x8')]('/',auth['isAuthenticated'](),controller[_0x424685('0x14')]),router[_0x424685('0x8')](_0x424685('0x10'),auth['isAuthenticated'](),controller[_0x424685('0x4')]),router[_0x424685('0x8')](_0x424685('0xb'),auth[_0x424685('0x6')](),interaction['tracked'](_0x424685('0xe'),_0x424685('0x12')),controller['addTags']),router[_0x424685('0x11')](_0x424685('0x13'),auth[_0x424685('0x6')](),interaction[_0x424685('0x5')]('sms','smsinteraction:update'),controller[_0x424685('0xa')]),router[_0x424685('0x18')](_0x424685('0x13'),auth[_0x424685('0x6')](),interaction[_0x424685('0x5')](_0x424685('0xe'),_0x424685('0x0')),controller[_0x424685('0x7')]),router[_0x424685('0x18')](_0x424685('0xb'),auth['isAuthenticated'](),controller['removeTags']),module[_0x424685('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index 493facb..5c6026c 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a552_0x30ce=['BOOLEAN','out','exports','ENUM','sequelize','DATE','STRING'];(function(_0x3d3036,_0x30cecc){const _0x1b514b=function(_0x28cf1e){while(--_0x28cf1e){_0x3d3036['push'](_0x3d3036['shift']());}};_0x1b514b(++_0x30cecc);}(a552_0x30ce,0x191));const a552_0x1b51=function(_0x3d3036,_0x30cecc){_0x3d3036=_0x3d3036-0x0;let _0x1b514b=a552_0x30ce[_0x3d3036];return _0x1b514b;};const _0x2b0b57=a552_0x1b51;'use strict';const Sequelize=require(_0x2b0b57('0x2'));module[_0x2b0b57('0x0')]={'closed':{'type':Sequelize[_0x2b0b57('0x5')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2b0b57('0x3')]},'disposition':{'type':Sequelize[_0x2b0b57('0x4')]},'secondDisposition':{'type':Sequelize[_0x2b0b57('0x4')]},'thirdDisposition':{'type':Sequelize[_0x2b0b57('0x4')]},'note':{'type':Sequelize[_0x2b0b57('0x4')]},'phone':{'type':Sequelize[_0x2b0b57('0x4')]},'read1stAt':{'type':Sequelize[_0x2b0b57('0x3')]},'firstMsgDirection':{'type':Sequelize[_0x2b0b57('0x1')]('in',_0x2b0b57('0x6')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2b0b57('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x2b0b57('0x1')]('in',_0x2b0b57('0x6')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.controller.js b/server/api/smsInteraction/smsInteraction.controller.js index c6dd6b3..4e8cc41 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a553_0x4cc5=['user_has_sms_interactions','forEach','fields','removeTags','i.id\x20LIKE\x20?','catch','downloadInteraction.html','.pdf','./smsInteraction.socket','moment','lastName','\x0a\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','Content-Range','o.fullname','options','field','model','SmsMessage','group','t.id\x20=\x20it.TagId','groupBy','i.*','../../components/parsers/advancedSearch','read','offset','N.A.','o.internal','omit','some','rawAttributes','direction','sms_interaction_has_tags','limit','path','describe','unix','union','setTags','color','count','compact','sms_interactions','update','renderFile','buildExpression','Account','join','merge','sqlOperator','../../rediscache','server','c.mobile','findOne','findAll','Contact.email','firstName','tools_tags','where','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','isEmpty','length','status','../../config/logger','transcript-%d-%s.zip','i.phone\x20LIKE\x20?','u.id\x20=\x20ui.UserId','left_join','30px','isNumeric','Owner','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','i.SmsAccountId\x20IN\x20?','40px','expr','ui.SmsInteractionId\x20IN\x20?','secret','createdAt','Owner.internal','fullname','then','select','filter','format','query','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','Contact.firstName','rimraf','addMessage','`unreadMessages`\x20=\x200','i.id','Tags','null','destroy','start','undefined','out','$lte','unreadMessages','getSmsAccounts','value','toString','util','$gte','a.mandatoryDisposition','Contact.lastName','include','o.id\x20=\x20i.UserId','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','users','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','show','sort','QueryTypes','register','disposition','resolve','pick','DESC','includeAll','ids','intersection','getFullTextValue','squel','\x0a\x20\x20\x20\x20\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','mkdirSync','u.id','toFile','sendStatus','a.id\x20=\x20i.SmsAccountId','`unreadMessages`\x20>\x200','c.fax','closed','$substring','nolimit','Sms','key','get','addTags','operator','having','Tag','order','transcript-','ui.SmsInteractionId','smsInteractionTags:save','System','UserId','conditions','params','me.SmsInteractionId\x20=\x20i.id','name','html-pdf','err','keys','c.phone','tag','User','SmsAccountId','\x27\x27\x27\x27','search','set','i.SmsAccountId\x20IS\x20NULL','CmContact','map','root','find','log','SmsInteraction','from','push','Contact.phone','Contact.fax','split','tmp','send','SmsInteractionId','create','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','YYYY-MM-DD','YYYY-MM-DD\x20HH:mm:ss','../../components/parsers/qs','files','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Contact','TagIds','Contact.mobile','end','%s\x20#%d','sms_accounts','isArray','c.firstName','body','`\x20=\x200','cm_contacts','ejs','user','SELECT','closedAt','fieldName','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','../../mysqldb','all','rows','unlinkSync','text','filters','getMessages','ContactId','sequelize','Owner.fullname','SmsAccount','emit','replace','type','download','Messages','attributes','u.fullname'];(function(_0xfed515,_0x4cc5ce){const _0x56bfd6=function(_0x4b355d){while(--_0x4b355d){_0xfed515['push'](_0xfed515['shift']());}};_0x56bfd6(++_0x4cc5ce);}(a553_0x4cc5,0xa2));const a553_0x56bf=function(_0xfed515,_0x4cc5ce){_0xfed515=_0xfed515-0x0;let _0x56bfd6=a553_0x4cc5[_0xfed515];return _0x56bfd6;};const _0x2c0445=a553_0x56bf;'use strict';const pdf=require(_0x2c0445('0xcf')),rimraf=require(_0x2c0445('0x8e')),zipdir=require('zip-dir'),moment=require(_0x2c0445('0x41')),util=require(_0x2c0445('0x9d')),path=require(_0x2c0445('0x59')),ejs=require(_0x2c0445('0x20')),fs=require('fs'),_=require('lodash'),squel=require(_0x2c0445('0xb2')),{getSocket}=require(_0x2c0445('0x69')),socket=getSocket(),qs=require(_0x2c0445('0x12')),as=require(_0x2c0445('0x4e')),logger=require(_0x2c0445('0x76'))('api'),config=require('../../config/environment'),db=require(_0x2c0445('0x26'))['db'],{Op}=require(_0x2c0445('0x2e'));require(_0x2c0445('0x40'))[_0x2c0445('0xa9')](socket);function respondWithStatusCode(_0x4b355d,_0x2f9a3b){return _0x2f9a3b=_0x2f9a3b||0xcc,function(_0x2e7b39){const _0x39585=a553_0x56bf;if(_0x2e7b39)return _0x4b355d['sendStatus'](_0x2f9a3b);return _0x4b355d[_0x39585('0x75')](_0x2f9a3b)[_0x39585('0x18')]();};}function respondWithResult(_0x560348,_0x553a8b){return _0x553a8b=_0x553a8b||0xc8,function(_0x44b166){const _0x1dda34=a553_0x56bf;if(_0x44b166)return _0x560348[_0x1dda34('0x75')](_0x553a8b)['json'](_0x44b166);};}function respondWithFilteredResult(_0x9fa7f0,_0x3031e8){return function(_0x19fc5f){const _0x129a60=a553_0x56bf;if(_0x19fc5f){const _0x492757=_0x19fc5f[_0x129a60('0x5f')],_0x2eea68=_0x3031e8['offset'];let _0x1998a9=_0x3031e8['offset']+_0x3031e8[_0x129a60('0x58')],_0x284440;return _0x1998a9>=_0x492757?(_0x1998a9=_0x492757,_0x284440=0xc8):_0x284440=0xce,_0x9fa7f0[_0x129a60('0x75')](_0x284440),_0x9fa7f0[_0x129a60('0xd8')](_0x129a60('0x44'),_0x2eea68+'-'+_0x1998a9+'/'+_0x492757)['json'](_0x19fc5f);}return null;};}function saveUpdates(_0x219b04){return function(_0x1567e5){const _0xc63aa=a553_0x56bf;if(_0x1567e5)return _0x1567e5[_0xc63aa('0x62')](_0x219b04)['then'](function(_0x102d6c){return _0x102d6c;});return null;};}function removeEntity(_0x4cc710){return function(_0x2d282e){const _0x3a7a68=a553_0x56bf;if(_0x2d282e)return _0x2d282e[_0x3a7a68('0x94')]()[_0x3a7a68('0x87')](function(){const _0x159951=_0x3a7a68;_0x4cc710[_0x159951('0x75')](0xcc)[_0x159951('0x18')]();});};}function handleEntityNotFound(_0x2486c1){return function(_0x5c1b81){const _0x49b876=a553_0x56bf;return!_0x5c1b81&&_0x2486c1[_0x49b876('0xb7')](0x194),_0x5c1b81;};}function handleError(_0x77a1c9,_0x3ecc36){return _0x3ecc36=_0x3ecc36||0x1f4,function(_0x2119c1){const _0x188b80=a553_0x56bf;logger['error'](_0x2119c1['stack']),_0x2119c1[_0x188b80('0xce')]&&delete _0x2119c1[_0x188b80('0xce')],_0x77a1c9[_0x188b80('0x75')](_0x3ecc36)[_0x188b80('0xc')](_0x2119c1);};}function getInteractionUsers(_0x2127db,_0x5f28b4){return new Promise(function(_0x534b51,_0x3b1bda){const _0x30d956=a553_0x56bf;try{_0x5f28b4[_0x2127db['id']]&&(_0x2127db['Users']=_[_0x30d956('0x1')](_0x5f28b4[_0x2127db['id']],function(_0x1e326f){return{'id':_0x1e326f['id'],'fullname':_0x1e326f['fullname']};}));}catch(_0x526720){_0x3b1bda(_0x526720);}_0x534b51(_0x2127db);});}function getInteractionTags(_0x45c41d,_0x129b5e){return new Promise(function(_0x50c7b0,_0x5886df){const _0xbb75b2=a553_0x56bf;try{_0x45c41d[_0xbb75b2('0x16')]&&(_0x45c41d[_0xbb75b2('0x92')]=[],_0x45c41d[_0xbb75b2('0x16')]['split'](',')[_0xbb75b2('0x39')](function(_0x341672){const _0x529275=_0xbb75b2;_0x45c41d[_0x529275('0x92')][_0x529275('0x7')](_0x129b5e[_0x341672]);})),delete _0x45c41d['TagIds'];}catch(_0x5a1dd0){_0x5886df(_0x5a1dd0);}_0x50c7b0(_0x45c41d);});}function updateSmsInteraction(_0x5bfd1e,_0xa5ec3b,_0x1d9530){return new Promise(function(_0x1d39aa,_0x172a9e){const _0x466104=a553_0x56bf;return getInteractionUsers(_0x5bfd1e,_0x1d9530)[_0x466104('0x87')](function(_0x599ac0){return getInteractionTags(_0x599ac0,_0xa5ec3b);})[_0x466104('0x87')](function(_0x5b8dbc){_0x1d39aa(_0x5b8dbc);})['catch'](function(_0x5951ac){_0x172a9e(_0x5951ac);});});}exports['index']=function(_0x16eec7,_0x4dbb4c){const _0x36a67a=_0x2c0445,_0x2a87fe={},_0x4228a9={},_0x2d4d2f={'count':0x0,'rows':[]},_0x21991c=_['map'](db['SmsInteraction'][_0x36a67a('0x55')],function(_0x1b8cc1){const _0x525802=_0x36a67a;return{'name':_0x1b8cc1[_0x525802('0x24')],'type':_0x1b8cc1[_0x525802('0x33')][_0x525802('0xbf')]};});_0x4228a9['model']=_[_0x36a67a('0x1')](_0x21991c,_0x36a67a('0xce')),_0x4228a9[_0x36a67a('0x8b')]=_[_0x36a67a('0xd1')](_0x16eec7[_0x36a67a('0x8b')]),_0x4228a9[_0x36a67a('0x2b')]=_[_0x36a67a('0xb0')](_0x4228a9[_0x36a67a('0x48')],_0x4228a9['query']),_0x2a87fe[_0x36a67a('0x36')]=_[_0x36a67a('0xb0')](_0x4228a9['model'],qs[_0x36a67a('0x3a')](_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0x3a')])),_0x2a87fe[_0x36a67a('0x36')]=_0x2a87fe[_0x36a67a('0x36')][_0x36a67a('0x74')]?_0x2a87fe[_0x36a67a('0x36')]:_0x4228a9[_0x36a67a('0x48')];typeof _0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0xbd')]===_0x36a67a('0x96')&&(_0x2a87fe[_0x36a67a('0x58')]=qs['limit'](_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0x58')]),_0x2a87fe[_0x36a67a('0x50')]=qs[_0x36a67a('0x50')](_0x16eec7['query'][_0x36a67a('0x50')]));_0x2a87fe['order']=qs[_0x36a67a('0xa7')](_0x16eec7[_0x36a67a('0x8b')]['sort']),_0x2a87fe[_0x36a67a('0x71')]=qs[_0x36a67a('0x2b')](_[_0x36a67a('0xac')](_0x16eec7['query'],_0x4228a9['filters']),_0x21991c);let _0x396774=[];const _0x3772dc=squel[_0x36a67a('0x88')]()[_0x36a67a('0x47')]('id')['field'](_0x36a67a('0xce'))[_0x36a67a('0x47')](_0x36a67a('0x5e'))['from']('tools_tags'),_0x12b709=squel[_0x36a67a('0x88')]()[_0x36a67a('0x47')](_0x36a67a('0xb5'))[_0x36a67a('0x47')](_0x36a67a('0x37'))[_0x36a67a('0x47')](_0x36a67a('0xc7'))[_0x36a67a('0x6')](_0x36a67a('0x38'),'ui')[_0x36a67a('0x7a')](_0x36a67a('0xa4'),'u',_0x36a67a('0x79')),_0x1c45e4=squel[_0x36a67a('0x88')]()[_0x36a67a('0x6')](_0x36a67a('0x61'),'i')['left_join'](_0x36a67a('0x1f'),'c',_0x36a67a('0xa3'))[_0x36a67a('0x7a')](_0x36a67a('0xa4'),'o',_0x36a67a('0xa2'))[_0x36a67a('0x7a')](_0x36a67a('0x1a'),'a',_0x36a67a('0xb8'))['left_join']('sms_messages','me',_0x36a67a('0xcd'))[_0x36a67a('0x7a')](_0x36a67a('0x57'),'it','it.SmsInteractionId\x20=\x20i.id')[_0x36a67a('0x7a')](_0x36a67a('0x70'),'t',_0x36a67a('0x4b')),_0xb82fc7=squel[_0x36a67a('0x81')]();let _0x50b823=[];const _0x316df5=squel[_0x36a67a('0x81')]();let _0x2dd2b1;if(_0x16eec7['query'][_0x36a67a('0xd7')]){_0x2dd2b1=as['parseSearch'](_0x16eec7[_0x36a67a('0x8b')]['search']);const _0x1b765d=_0x2dd2b1[_0x36a67a('0x68')];for(let _0x1fca60=0x0;_0x1fca60<_0x2dd2b1[_0x36a67a('0xcb')][_0x36a67a('0x74')];_0x1fca60++){const _0x4a644f=_0x2dd2b1[_0x36a67a('0xcb')][_0x1fca60],_0x373218='i';let _0x3023b8,_0x169cd7=_['find'](_0x21991c,['name',_0x4a644f['field']]);if(!_0x169cd7)switch(_0x4a644f[_0x36a67a('0x47')]){case _0x36a67a('0x99'):_0x4a644f[_0x36a67a('0x9b')]==0x1?_0x1c45e4['having']('`'+_0x4a644f[_0x36a67a('0x47')]+_0x36a67a('0x1e')):_0x1c45e4[_0x36a67a('0xc3')]('`'+_0x4a644f[_0x36a67a('0x47')]+'`\x20>\x200');break;case _0x36a67a('0x15'):if(_0x4a644f['operator']===_0x36a67a('0xbc')){if(_0x4a644f[_0x36a67a('0x9b')]['split']('\x20')[_0x36a67a('0x74')]>0x1)_0xb82fc7[_0x1b765d]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs['getFullTextValue'](_0x4a644f['value']),null);else{const _0x544fa6='%'+_0x4a644f['value']+'%';_0xb82fc7[_0x1b765d](_0x36a67a('0x8c'),_0x544fa6,_0x544fa6,_0x544fa6);}}else _0x169cd7=_[_0x36a67a('0x3')](_0x21991c,['name','ContactId']),_0x4a644f[_0x36a67a('0x47')]=_0x36a67a('0x2d'),_0x3023b8=as['buildExpression'](_0x373218,_0x169cd7[_0x36a67a('0x33')],_0x4a644f),_0xb82fc7[_0x1b765d](_0x3023b8['text'],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x95')],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x18')]);break;case _0x36a67a('0xc4'):{const _0x230056=_0x4a644f['value'][_0x36a67a('0xa')](',')[_0x36a67a('0x1')](function(_0x327804){return Number(_0x327804);});_0x230056[_0x36a67a('0x39')](function(_0x2e1b2e){const _0x7c63ca=_0x36a67a;_0x316df5['or'](_0x7c63ca('0x72'),'%,'+_0x2e1b2e+',%');}),_0x50b823=_[_0x36a67a('0x5c')](_0x50b823,_0x230056);}break;case _0x36a67a('0xd4'):_0x4a644f[_0x36a67a('0xc2')]===_0x36a67a('0xbc')?_0xb82fc7[_0x1b765d](_0x36a67a('0x25'),'%'+_0x4a644f['value']+'%',null):(_0x169cd7=_[_0x36a67a('0x3')](_0x21991c,[_0x36a67a('0xce'),_0x36a67a('0xca')]),_0x4a644f['field']=_0x36a67a('0xca'),_0x3023b8=as[_0x36a67a('0x64')](_0x373218,_0x169cd7['type'],_0x4a644f),_0xb82fc7[_0x1b765d](_0x3023b8['text'],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x95')],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x18')]));break;case _0x36a67a('0x1d'):_0x3023b8=as[_0x36a67a('0x64')]('me',null,_0x4a644f),_0xb82fc7[_0x1b765d](_0x3023b8[_0x36a67a('0x2a')],_0x3023b8[_0x36a67a('0x9b')]['start'],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x18')]);break;}else _0x3023b8=as[_0x36a67a('0x64')](_0x373218,_0x169cd7['type'],_0x4a644f),_0xb82fc7[_0x1b765d](_0x3023b8['text'],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x95')],_0x3023b8[_0x36a67a('0x9b')][_0x36a67a('0x18')]);}}else{const _0x135071=_(_0x16eec7[_0x36a67a('0x8b')])[_0x36a67a('0xd1')]()[_0x36a67a('0x1')](function(_0x499109){const _0x4c5440=_0x36a67a;return _[_0x4c5440('0x54')](_0x21991c,[_0x4c5440('0xce'),_0x499109])?_0x499109:undefined;})[_0x36a67a('0x60')]()[_0x36a67a('0x9b')]();!_[_0x36a67a('0x73')](_0x135071)&&_0x135071[_0x36a67a('0x39')](function(_0x21bc2d){const _0x3cf908=_0x36a67a;if(_0x21bc2d===_0x3cf908('0xd5'))_0x1c45e4[_0x3cf908('0x71')](_0x3cf908('0x7f'),[]['concat'](_0x16eec7['query'][_0x21bc2d]));else{if(_0x21bc2d===_0x3cf908('0x84')){const _0x312cf3=JSON['parse'](_0x16eec7[_0x3cf908('0x8b')][_0x21bc2d])['$gte'],_0x34d3ee=JSON['parse'](_0x16eec7[_0x3cf908('0x8b')][_0x21bc2d])[_0x3cf908('0x98')];_0x1c45e4[_0x3cf908('0x71')](_0x3cf908('0x14'),_0x312cf3,_0x34d3ee);}else _0x16eec7[_0x3cf908('0x8b')][_0x21bc2d]===_0x3cf908('0x93')?_0x1c45e4[_0x3cf908('0x71')]('i.'+_0x21bc2d+'\x20IS\x20NULL'):_0x1c45e4['where']('i.'+_0x21bc2d+'\x20=\x20?',_0x16eec7['query'][_0x21bc2d]);}});_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0x4f')]&&(_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0x4f')]==0x1?_0x1c45e4[_0x36a67a('0xc3')](_0x36a67a('0x90')):_0x1c45e4[_0x36a67a('0xc3')](_0x36a67a('0xb9')));_0x16eec7['query'][_0x36a67a('0xd3')]&&(_0x50b823=_[_0x36a67a('0x1b')](_0x16eec7[_0x36a67a('0x8b')]['tag'])?_0x16eec7['query'][_0x36a67a('0xd3')]:new Array(_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0xd3')]),_0x50b823[_0x36a67a('0x39')](function(_0x33dbf7){const _0x4aa0e4=_0x36a67a;_0x316df5['or'](_0x4aa0e4('0x72'),'%,'+_0x33dbf7+',%');}));if(_0x16eec7[_0x36a67a('0x8b')][_0x36a67a('0x89')]){const _0x75a8d=_0x16eec7['query']['filter']['replace']('\x5c','\x5c\x5c')[_0x36a67a('0x32')]('\x27\x27',_0x36a67a('0xd6'));qs[_0x36a67a('0x7c')](_0x75a8d)?_0xb82fc7['or'](_0x36a67a('0x3c'),_0x75a8d+'%')['or'](_0x36a67a('0x78'),_0x75a8d+'%'):_0xb82fc7['or'](_0x36a67a('0xa5'),qs[_0x36a67a('0xb1')](_0x75a8d))['or'](_0x36a67a('0xf'),_0x75a8d+'%');}}_0x1c45e4[_0x36a67a('0x71')](_0xb82fc7),_0x1c45e4[_0x36a67a('0x4a')](_0x36a67a('0x91'));let _0x2f3d6a={'type':db['Sequelize'][_0x36a67a('0xa8')][_0x36a67a('0x22')],'raw':!![]};const _0x5f6ac4=_0x1c45e4['clone']();_0x5f6ac4['field']('i.id'),_0x5f6ac4['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x2a87fe[_0x36a67a('0xc5')]&&_0x2a87fe[_0x36a67a('0xc5')][_0x36a67a('0x39')](function(_0x52f42d){const _0xb3cda4=_0x36a67a;_0x1c45e4['order']('i.'+_0x52f42d[0x0],_0x52f42d[0x1]===_0xb3cda4('0xad')?![]:!![]);}),!_['isEmpty'](_0x50b823)&&(_0x1c45e4['having'](_0x316df5),_0x5f6ac4[_0x36a67a('0x71')]('t.id\x20IN\x20?',_0x50b823)),Promise[_0x36a67a('0xab')]()[_0x36a67a('0x87')](function(){const _0x2b1a67=_0x36a67a;if(!_0x2dd2b1){if(_0x16eec7[_0x2b1a67('0x8b')][_0x2b1a67('0xd5')]||_0x16eec7[_0x2b1a67('0x8b')]['journey'])return;_0x5f6ac4['where']('i.SmsAccountId\x20IS\x20NOT\x20NULL'),_0x1c45e4[_0x2b1a67('0x71')]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x16eec7[_0x2b1a67('0x21')][_0x2b1a67('0x9a')]({'attributes':['id'],'raw':!![]})[_0x2b1a67('0x87')](function(_0x17ac83){const _0x493530=_0x2b1a67;_[_0x493530('0x73')](_0x17ac83)?(_0x5f6ac4[_0x493530('0x71')](_0x493530('0xd9')),_0x1c45e4['where'](_0x493530('0xd9'))):(_0x5f6ac4[_0x493530('0x71')](_0x493530('0x7f'),_[_0x493530('0x1')](_0x17ac83,'id')),_0x1c45e4['where'](_0x493530('0x7f'),_[_0x493530('0x1')](_0x17ac83,'id')));});})[_0x36a67a('0x87')](function(){const _0x2407ef=_0x36a67a;db[_0x2407ef('0x2e')][_0x2407ef('0x8b')](_0x5f6ac4[_0x2407ef('0x9c')](),_0x2f3d6a)[_0x2407ef('0x87')](function(_0xbee8ae){const _0x4ec65b=_0x2407ef;_0x2d4d2f[_0x4ec65b('0x5f')]=_0xbee8ae[_0x4ec65b('0x74')];if(_0x2d4d2f[_0x4ec65b('0x5f')]===0x0)return[];return db[_0x4ec65b('0x2e')][_0x4ec65b('0x8b')](_0x3772dc[_0x4ec65b('0x9c')](),_0x2f3d6a)[_0x4ec65b('0x87')](function(_0x53183f){const _0x9d2035=_0x4ec65b;_0x396774=_['keyBy'](_0x53183f,'id'),_0x2f3d6a=_['merge'](_0x2f3d6a,{'model':db[_0x9d2035('0x5')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x16eec7[_0x9d2035('0x8b')][_0x9d2035('0x3a')]?_0x2a87fe[_0x9d2035('0x36')]['forEach'](function(_0x423a4e){const _0x2dd5b5=_0x9d2035;_0x1c45e4[_0x2dd5b5('0x47')]('i.'+_0x423a4e);}):(_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0x7e'),_0x9d2035('0x99')),_0x1c45e4[_0x9d2035('0x47')]('a.key','Account.key'),_0x1c45e4['field'](_0x9d2035('0x9f'),'Account.mandatoryDisposition'),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0x4d')),_0x1c45e4['field'](_0x9d2035('0x1c'),_0x9d2035('0x8d')),_0x1c45e4['field']('c.lastName',_0x9d2035('0xa0')),_0x1c45e4['field']('c.email',_0x9d2035('0x6e')),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0xd2'),_0x9d2035('0x8')),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0x6b'),_0x9d2035('0x17')),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0xba'),_0x9d2035('0x9')),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0x45'),_0x9d2035('0x2f')),_0x1c45e4[_0x9d2035('0x47')](_0x9d2035('0x52'),_0x9d2035('0x85')),_0x1c45e4['field']('GROUP_CONCAT(DISTINCT\x20t.id)',_0x9d2035('0x16')));if(_0x2a87fe['limit'])_0x1c45e4[_0x9d2035('0x58')](_0x2a87fe[_0x9d2035('0x58')]);if(_0x2a87fe[_0x9d2035('0x50')])_0x1c45e4[_0x9d2035('0x50')](_0x2a87fe['offset']);return db[_0x9d2035('0x2e')][_0x9d2035('0x8b')](_0x1c45e4[_0x9d2035('0x9c')](),_0x2f3d6a);})['then'](function(_0x31cdd4){const _0x1aa56e=_0x4ec65b;return _0x12b709[_0x1aa56e('0x71')](_0x1aa56e('0x82'),_[_0x1aa56e('0x1')](_0x31cdd4,'id')),db[_0x1aa56e('0x2e')]['query'](_0x12b709['toString'](),_0x2f3d6a)[_0x1aa56e('0x87')](function(_0x3b362){const _0x5911ef=_0x1aa56e,_0x165b67=_[_0x5911ef('0x4c')](_0x3b362,'SmsInteractionId'),_0x5d85dc=[];return _0x31cdd4[_0x5911ef('0x39')](function(_0x466534){const _0x367fee=_0x5911ef;_0x5d85dc[_0x367fee('0x7')](updateSmsInteraction(_0x466534,_0x396774,_0x165b67));}),Promise[_0x5911ef('0x27')](_0x5d85dc);});});})[_0x2407ef('0x87')](function(_0x434986){const _0x10c34c=_0x2407ef;return _0x2d4d2f[_0x10c34c('0x28')]=_0x434986,_0x2d4d2f;})['then'](respondWithFilteredResult(_0x4dbb4c,_0x2a87fe));})[_0x36a67a('0x3d')](handleError(_0x4dbb4c,null));},exports[_0x2c0445('0xa6')]=function(_0x5e2975,_0x16e254){const _0xf3bab9=_0x2c0445;let _0x12efcc={'raw':![],'where':{'id':_0x5e2975[_0xf3bab9('0xcc')]['id']}};const _0xf35985={};return _0xf35985[_0xf3bab9('0x48')]=_[_0xf3bab9('0xd1')](db[_0xf3bab9('0x5')][_0xf3bab9('0x55')]),_0xf35985[_0xf3bab9('0x8b')]=_['keys'](_0x5e2975[_0xf3bab9('0x8b')]),_0xf35985['filters']=_[_0xf3bab9('0xb0')](_0xf35985[_0xf3bab9('0x48')],_0xf35985[_0xf3bab9('0x8b')]),_0x12efcc[_0xf3bab9('0x36')]=_['intersection'](_0xf35985[_0xf3bab9('0x48')],qs['fields'](_0x5e2975[_0xf3bab9('0x8b')][_0xf3bab9('0x3a')])),_0x12efcc[_0xf3bab9('0x36')]=_0x12efcc['attributes'][_0xf3bab9('0x74')]?_0x12efcc[_0xf3bab9('0x36')]:_0xf35985[_0xf3bab9('0x48')],_0x5e2975[_0xf3bab9('0x8b')][_0xf3bab9('0xae')]&&(_0x12efcc[_0xf3bab9('0xa1')]=[{'all':!![]}]),_0x12efcc=_['merge']({},_0x12efcc,_0x5e2975['options']),db[_0xf3bab9('0x5')][_0xf3bab9('0x6c')](_0x12efcc)['then'](handleEntityNotFound(_0x16e254,null))[_0xf3bab9('0x87')](respondWithResult(_0x16e254,null))[_0xf3bab9('0x3d')](handleError(_0x16e254,null));},exports[_0x2c0445('0xe')]=function(_0x5d1c00,_0x6a5eb4){const _0x2a0eb8=_0x2c0445;return db[_0x2a0eb8('0x5')]['create'](_0x5d1c00['body'],{})[_0x2a0eb8('0x87')](respondWithResult(_0x6a5eb4,0xc9))[_0x2a0eb8('0x3d')](handleError(_0x6a5eb4,null));},exports['update']=function(_0x177d67,_0x2c59b2){const _0x571854=_0x2c0445;return _0x177d67[_0x571854('0x1d')]['id']&&delete _0x177d67[_0x571854('0x1d')]['id'],db[_0x571854('0x5')][_0x571854('0x6c')]({'where':{'id':_0x177d67[_0x571854('0xcc')]['id']}})[_0x571854('0x87')](handleEntityNotFound(_0x2c59b2,null))[_0x571854('0x87')](saveUpdates(_0x177d67[_0x571854('0x1d')],null))[_0x571854('0x87')](respondWithResult(_0x2c59b2,null))[_0x571854('0x3d')](handleError(_0x2c59b2,null));},exports[_0x2c0445('0x94')]=function(_0x12168b,_0x1a987b){const _0x5649ca=_0x2c0445;return db[_0x5649ca('0x5')][_0x5649ca('0x6c')]({'where':{'id':_0x12168b[_0x5649ca('0xcc')]['id']}})[_0x5649ca('0x87')](handleEntityNotFound(_0x1a987b,null))[_0x5649ca('0x87')](removeEntity(_0x1a987b,null))[_0x5649ca('0x3d')](handleError(_0x1a987b,null));},exports['describe']=function(_0xe2dd54,_0x4e4b20){const _0x2d84c2=_0x2c0445;return db[_0x2d84c2('0x5')][_0x2d84c2('0x5a')]()[_0x2d84c2('0x87')](respondWithResult(_0x4e4b20,null))['catch'](handleError(_0x4e4b20,null));},exports[_0x2c0445('0x8f')]=function(_0x271184,_0x1318ba){const _0x130bf3=_0x2c0445;return db['SmsMessage'][_0x130bf3('0x6c')]({'where':{'id':_0x271184[_0x130bf3('0xcc')]['id']}})[_0x130bf3('0x87')](function(_0x485d19){const _0x3658c9=_0x130bf3;if(_0x485d19)return _0x485d19['addMessage'](_0x271184['body']['ids'],{'through':_[_0x3658c9('0x53')](_0x271184[_0x3658c9('0x1d')],['ids','id'])});})[_0x130bf3('0x87')](respondWithResult(_0x1318ba,null))[_0x130bf3('0x3d')](handleError(_0x1318ba,null));},exports[_0x2c0445('0x2c')]=function(_0x1a5896,_0x573209){const _0x50651a=_0x2c0445;let _0x46994c={'raw':![],'where':{}};const _0x2acd80={},_0x296c7a={'count':0x0,'rows':[]};return db['SmsInteraction'][_0x50651a('0x6c')]({'where':{'id':_0x1a5896['params']['id']}})[_0x50651a('0x87')](handleEntityNotFound(_0x573209,null))[_0x50651a('0x87')](function(_0x28865b){const _0x4a47fd=_0x50651a;if(_0x28865b){_0x2acd80[_0x4a47fd('0x48')]=_[_0x4a47fd('0xd1')](db[_0x4a47fd('0x49')][_0x4a47fd('0x55')]),_0x2acd80[_0x4a47fd('0x8b')]=_[_0x4a47fd('0xd1')](_0x1a5896[_0x4a47fd('0x8b')]),_0x2acd80['filters']=_[_0x4a47fd('0xb0')](_0x2acd80[_0x4a47fd('0x48')],_0x2acd80['query']),_0x46994c[_0x4a47fd('0x36')]=_['intersection'](_0x2acd80['model'],qs['fields'](_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0x3a')])),_0x46994c[_0x4a47fd('0x36')]=_0x46994c[_0x4a47fd('0x36')]['length']?_0x46994c[_0x4a47fd('0x36')]:_0x2acd80[_0x4a47fd('0x48')];typeof _0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0xbd')]===_0x4a47fd('0x96')&&(_0x46994c[_0x4a47fd('0x58')]=qs[_0x4a47fd('0x58')](_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0x58')]),_0x46994c[_0x4a47fd('0x50')]=qs[_0x4a47fd('0x50')](_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0x50')]));_0x46994c[_0x4a47fd('0xc5')]=qs['sort'](_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0xa7')]),_0x46994c[_0x4a47fd('0x71')]=qs[_0x4a47fd('0x2b')](_['pick'](_0x1a5896[_0x4a47fd('0x8b')],_0x2acd80['filters'])),_0x46994c['where'][_0x4a47fd('0xd')]=_0x28865b['id'];_0x1a5896[_0x4a47fd('0x8b')]['filter']&&(_0x46994c[_0x4a47fd('0x71')]=_[_0x4a47fd('0x67')](_0x46994c[_0x4a47fd('0x71')],{[Op['or']]:_[_0x4a47fd('0x1')](_0x46994c[_0x4a47fd('0x36')],function(_0x10967b){const _0x2af03b=_0x4a47fd,_0x1e13e6={};return _0x1e13e6[_0x10967b]={[Op['like']]:'%'+_0x1a5896[_0x2af03b('0x8b')][_0x2af03b('0x89')]+'%'},_0x1e13e6;})}));if(_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0x9e')]){const _0x5923ef=_0x1a5896[_0x4a47fd('0x8b')][_0x4a47fd('0x9e')]['split'](','),_0x40461e={};_0x40461e[_0x5923ef[0x0]]={[Op['gte']]:moment(_0x5923ef[0x1])['format'](_0x4a47fd('0x11'))},_0x46994c[_0x4a47fd('0x71')]=_[_0x4a47fd('0x67')](_0x46994c[_0x4a47fd('0x71')],_0x40461e);}return _0x46994c=_['merge']({},_0x46994c,_0x1a5896[_0x4a47fd('0x46')]),db[_0x4a47fd('0x49')][_0x4a47fd('0x5f')]({'where':_0x46994c[_0x4a47fd('0x71')]})[_0x4a47fd('0x87')](function(_0x9b5117){const _0x520c93=_0x4a47fd;return _0x296c7a[_0x520c93('0x5f')]=_0x9b5117,_0x1a5896['query']['includeAll']&&(_0x46994c[_0x520c93('0xa1')]=[{'all':!![]}]),db[_0x520c93('0x49')][_0x520c93('0x6d')](_0x46994c);})[_0x4a47fd('0x87')](function(_0x5ea6fe){const _0x2177eb=_0x4a47fd;return _0x296c7a[_0x2177eb('0x28')]=_0x5ea6fe,_0x296c7a;});}})[_0x50651a('0x87')](respondWithFilteredResult(_0x573209,_0x46994c))[_0x50651a('0x3d')](handleError(_0x573209,null));},exports[_0x2c0445('0xc1')]=function(_0x4de87c,_0x20a87d){const _0x4da229=_0x2c0445;return db['SmsInteraction'][_0x4da229('0x6c')]({'where':{'id':_0x4de87c[_0x4da229('0xcc')]['id']}})[_0x4da229('0x87')](function(_0x4d8899){const _0x420e7b=_0x4da229;if(_0x4d8899)return _0x4d8899[_0x420e7b('0x5d')](_0x4de87c[_0x420e7b('0x1d')]['ids'],{'through':_['omit'](_0x4de87c[_0x420e7b('0x1d')],[_0x420e7b('0xaf'),'id'])})['then'](function(){const _0x294314=_0x420e7b;return db[_0x294314('0xc4')][_0x294314('0x6d')]({'attributes':['id','name',_0x294314('0x5e')],'where':{'id':_0x4de87c[_0x294314('0x1d')][_0x294314('0xaf')]}});})[_0x420e7b('0x87')](function(_0x373b1e){const _0x5b02a6=_0x420e7b;return socket[_0x5b02a6('0x31')](_0x5b02a6('0xc8'),{'id':Number(_0x4de87c[_0x5b02a6('0xcc')]['id']),'tags':_0x373b1e||[]}),{'id':Number(_0x4de87c[_0x5b02a6('0xcc')]['id']),'tags':_0x373b1e||[]};});})[_0x4da229('0x87')](respondWithResult(_0x20a87d,null))['catch'](handleError(_0x20a87d,null));},exports[_0x2c0445('0x3b')]=function(_0x3c4684,_0x56462a){const _0x3d2512=_0x2c0445;return db[_0x3d2512('0x5')][_0x3d2512('0x6c')]({'where':{'id':_0x3c4684['params']['id']}})[_0x3d2512('0x87')](handleEntityNotFound(_0x56462a,null))[_0x3d2512('0x87')](function(_0x751a4a){const _0x89eada=_0x3d2512;if(_0x751a4a)return _0x751a4a[_0x89eada('0x3b')](_0x3c4684[_0x89eada('0x8b')]['ids']);})[_0x3d2512('0x87')](respondWithStatusCode(_0x56462a,null))['catch'](handleError(_0x56462a,null));},exports[_0x2c0445('0x34')]=function(_0x273abd,_0x49526b){const _0xbb1288=_0x2c0445,_0x2a6d07=moment()[_0xbb1288('0x5b')]()[_0xbb1288('0x9c')](),_0xcd7742=path[_0xbb1288('0x66')](config[_0xbb1288('0x2')],_0xbb1288('0x13'),_0xbb1288('0xb')),_0x7e2db1=path[_0xbb1288('0x66')](_0xcd7742,_0x2a6d07),_0x13dde5=util[_0xbb1288('0x8a')](_0xbb1288('0x77'),_0x273abd[_0xbb1288('0xcc')]['id'],_0x2a6d07),_0x442c8d=path[_0xbb1288('0x66')](_0xcd7742,_0x13dde5),_0x5c1ba8=[];_0x5c1ba8[_0xbb1288('0x7')]({'model':db['User'],'as':_0xbb1288('0xd4'),'attributes':['id',_0xbb1288('0x86')],'raw':!![]}),_0x5c1ba8['push']({'model':db[_0xbb1288('0x0')],'as':'Contact','attributes':['id','firstName','lastName'],'raw':!![]});const _0x44baff=[{'model':db[_0xbb1288('0x49')],'as':_0xbb1288('0x35'),'attributes':['id',_0xbb1288('0x1d'),'createdAt',_0xbb1288('0x56'),_0xbb1288('0x83'),'read'],'include':_0x5c1ba8}];return _0x44baff[_0xbb1288('0x7')]({'model':db[_0xbb1288('0x30')],'as':_0xbb1288('0x65'),'attributes':['id',_0xbb1288('0xce')]}),_0x44baff['push']({'model':db[_0xbb1288('0xd4')],'as':_0xbb1288('0x7d'),'attributes':['id','fullname']}),db['SmsInteraction'][_0xbb1288('0x6c')]({'where':{'id':_0x273abd[_0xbb1288('0xcc')]['id']},'include':_0x44baff})[_0xbb1288('0x87')](handleEntityNotFound(_0x49526b,null))[_0xbb1288('0x87')](function(_0x2bdc2a){const _0x596f68=_0xbb1288;if(_0x2bdc2a){const _0x23d395=_0x2bdc2a[_0x596f68('0xc0')]({'plain':!![]});fs[_0x596f68('0xb4')](_0x7e2db1);const _0x24eb86={'format':'A4','border':'10px','header':{'height':_0x596f68('0x80'),'contents':{'first':_0x596f68('0xb3')}},'footer':{'height':_0x596f68('0x7b'),'contents':{'default':util['format'](_0x596f68('0x43'),util[_0x596f68('0x8a')](_0x596f68('0x19'),'Sms',_0x23d395['id']),moment()['format'](_0x596f68('0x10'))[_0x596f68('0x9c')]())}}},_0x5f4712={'channel':_0x596f68('0xbe'),'account':_0x23d395[_0x596f68('0x65')][_0x596f68('0xce')],'agent':_0x23d395[_0x596f68('0x7d')]?_0x23d395[_0x596f68('0x7d')]['fullname']:_0x596f68('0x51'),'createdAt':moment(_0x23d395[_0x596f68('0x84')])[_0x596f68('0x8a')](_0x596f68('0x11'))[_0x596f68('0x9c')](),'closedAt':_0x23d395[_0x596f68('0xbb')]?moment(_0x23d395[_0x596f68('0x23')])[_0x596f68('0x8a')](_0x596f68('0x11'))[_0x596f68('0x9c')]():'','disposition':_0x23d395[_0x596f68('0xaa')],'messages':_(_0x23d395[_0x596f68('0x35')])[_0x596f68('0x89')]({'secret':![]})['map'](function(_0x147d70){const _0x13223d=_0x596f68;return{'date':moment(_0x147d70[_0x13223d('0x84')])[_0x13223d('0x8a')](_0x13223d('0x11'))[_0x13223d('0x9c')](),'sender':_0x147d70[_0x13223d('0x56')]===_0x13223d('0x97')?_0x147d70[_0x13223d('0xd4')]?_0x147d70[_0x13223d('0xd4')][_0x13223d('0x86')]:_0x13223d('0xc9'):_0x147d70['Contact'][_0x13223d('0x6f')]+(_0x147d70[_0x13223d('0x15')]['lastName']?'\x20'+_0x147d70[_0x13223d('0x15')][_0x13223d('0x42')]:''),'body':_0x147d70[_0x13223d('0x1d')],'direction':_0x147d70['direction']===_0x13223d('0x97')?'A':'C','secret':_0x147d70[_0x13223d('0x83')],'read':_0x147d70[_0x13223d('0x4f')]};})['value']()};return ejs[_0x596f68('0x63')](path[_0x596f68('0x66')](config[_0x596f68('0x2')],_0x596f68('0x6a'),'views',_0x596f68('0x3e')),{'interaction':_0x5f4712})[_0x596f68('0x87')](function(_0x62358f){return new Promise(function(_0x341a25,_0x22c772){const _0x207d56=a553_0x56bf;pdf['create'](_0x62358f,_0x24eb86)[_0x207d56('0xb6')](path[_0x207d56('0x66')](_0x7e2db1,_0x207d56('0xc6')+_0x23d395['id']+'-'+_0x2a6d07+_0x207d56('0x3f')),function(_0x5d6a54,_0x2f95bd){if(_0x5d6a54)return _0x22c772(_0x5d6a54);_0x341a25(_0x2f95bd);});});})[_0x596f68('0x87')](function(){const _0x41f577=_0x596f68;return new Promise(function(_0x111999,_0x4707bb){zipdir(_0x7e2db1,{'saveTo':_0x442c8d},function(_0x2f02cf,_0x412453){if(_0x2f02cf)return _0x4707bb(_0x2f02cf);return _0x111999(_0x412453);});})['then'](function(){return new Promise(function(_0x138e99,_0x2c5712){rimraf(_0x7e2db1,function(_0x25fb26){if(_0x25fb26)_0x2c5712(_0x25fb26);return _0x138e99();});});})[_0x41f577('0x87')](function(){const _0x9a4986=_0x41f577;return _0x49526b[_0x9a4986('0x34')](_0x442c8d,_0x13dde5,function(_0x1c97bb){const _0x3fc8c7=_0x9a4986;_0x1c97bb?console[_0x3fc8c7('0x4')](_0x3fc8c7('0xd0'),_0x1c97bb):fs[_0x3fc8c7('0x29')](_0x442c8d);});});});}else return _0x49526b['sendStatus'](0xc8);})[_0xbb1288('0x3d')](handleError(_0x49526b,null));}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index a9c7604..7859519 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a554_0x178e=['emit','update','SmsMessage','getUsers','exports','findAll','Users','save','then','setDataValue','SmsInteraction','events','setMaxListeners','undefined','addHook','../../mysqldb','catch'];(function(_0x5d7c9f,_0x178eec){const _0x12cd68=function(_0x167c93){while(--_0x167c93){_0x5d7c9f['push'](_0x5d7c9f['shift']());}};_0x12cd68(++_0x178eec);}(a554_0x178e,0x82));const a554_0x12cd=function(_0x5d7c9f,_0x178eec){_0x5d7c9f=_0x5d7c9f-0x0;let _0x12cd68=a554_0x178e[_0x5d7c9f];return _0x12cd68;};const _0xff9c5a=a554_0x12cd;'use strict';const EventEmitter=require(_0xff9c5a('0x0')),SmsInteraction=require(_0xff9c5a('0x4'))['db'][_0xff9c5a('0x10')],SmsMessage=require('../../mysqldb')['db'][_0xff9c5a('0x8')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0xff9c5a('0x1')](0x0);const events={'afterCreate':_0xff9c5a('0xd'),'afterUpdate':_0xff9c5a('0x7'),'afterDestroy':'remove'};function emitEvent(_0x167c93){return function(_0x212c65){const _0x223899=a554_0x12cd;_0x212c65[_0x223899('0x9')]({'attributes':['id'],'raw':!![]})[_0x223899('0xe')](function(_0x76a1bc){const _0x13f484=_0x223899;return _0x212c65[_0x13f484('0xf')](_0x13f484('0xc'),_0x76a1bc['map'](function(_0xf92c9e){return{'id':_0xf92c9e['id']};})),SmsMessage[_0x13f484('0xb')]({'where':{'SmsInteractionId':_0x212c65['id'],'direction':'in','read':![]},'raw':!![]});})[_0x223899('0xe')](function(_0x43f54c){const _0x3aff9b=_0x223899;_0x212c65[_0x3aff9b('0xf')]('unreadMessages',_0x43f54c['length']),SmsInteractionEvents[_0x3aff9b('0x6')](_0x167c93+':'+_0x212c65['id'],_0x212c65),SmsInteractionEvents['emit'](_0x167c93,_0x212c65);})[_0x223899('0x5')](()=>{});};}for(const e in events){if(typeof events[e]!==_0xff9c5a('0x2')){const event=events[e];SmsInteraction[_0xff9c5a('0x3')](e,emitEvent(event));}}module[_0xff9c5a('0xa')]=SmsInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index dcd6afd..a698f4e 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a555_0xc584=['moment','format','define','SmsInteraction','closed','closedAt','./smsInteraction.attributes','sms_interactions','exports','YYYY-MM-DD\x20HH:mm:ss','changed'];(function(_0x39f1e4,_0xc58442){const _0x5cb830=function(_0x25aa5f){while(--_0x25aa5f){_0x39f1e4['push'](_0x39f1e4['shift']());}};_0x5cb830(++_0xc58442);}(a555_0xc584,0x163));const a555_0x5cb8=function(_0x39f1e4,_0xc58442){_0x39f1e4=_0x39f1e4-0x0;let _0x5cb830=a555_0xc584[_0x39f1e4];return _0x5cb830;};const _0x4e2ebe=a555_0x5cb8;'use strict';const moment=require(_0x4e2ebe('0x8')),attributes=require(_0x4e2ebe('0x3'));module[_0x4e2ebe('0x5')]=function(_0x25aa5f){const _0x58bfcc=_0x4e2ebe,_0x1775fd=_0x25aa5f[_0x58bfcc('0xa')](_0x58bfcc('0x0'),attributes,{'tableName':_0x58bfcc('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x567bb2){const _0x30bdd5=_0x58bfcc;_0x567bb2[_0x30bdd5('0x7')](_0x30bdd5('0x1'))&&(_0x567bb2[_0x30bdd5('0x2')]=moment()[_0x30bdd5('0x9')](_0x30bdd5('0x6')));}}});return _0x1775fd;}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index be009ad..58a33fd 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a556_0x2b6c=['error','../../config/logger','register','then','where','message','../../mysqldb','AddTags','catch','options','raw','body','info','AddTagsToSmsInteraction','addTags','./smsInteraction.socket','UpdateSmsInteraction','../../rediscache','SmsInteraction','attributes','debug'];(function(_0x54f87c,_0x2b6c1e){const _0x278849=function(_0x23b3f9){while(--_0x23b3f9){_0x54f87c['push'](_0x54f87c['shift']());}};_0x278849(++_0x2b6c1e);}(a556_0x2b6c,0x114));const a556_0x2788=function(_0x54f87c,_0x2b6c1e){_0x54f87c=_0x54f87c-0x0;let _0x278849=a556_0x2b6c[_0x54f87c];return _0x278849;};const _0x1bff02=a556_0x2788;'use strict';const _=require('lodash'),db=require(_0x1bff02('0x3'))['db'],logger=require(_0x1bff02('0x13'))('rpc'),{getSocket}=require(_0x1bff02('0xe')),socket=getSocket();require(_0x1bff02('0xc'))[_0x1bff02('0x14')](socket),exports[_0x1bff02('0xd')]=function(_0x23b3f9){const _0x277229=this;return new Promise(function(_0x11c75c,_0x31cab5){const _0x19ed84=a556_0x2788;return db[_0x19ed84('0xf')]['update'](_0x23b3f9['body'],{'raw':_0x23b3f9[_0x19ed84('0x6')]?_0x23b3f9[_0x19ed84('0x6')][_0x19ed84('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x23b3f9[_0x19ed84('0x6')]?_0x23b3f9[_0x19ed84('0x6')][_0x19ed84('0x1')]||null:null,'attributes':_0x23b3f9[_0x19ed84('0x6')]?_0x23b3f9[_0x19ed84('0x6')][_0x19ed84('0x10')]||null:null,'limit':_0x23b3f9[_0x19ed84('0x6')]?_0x23b3f9['options']['limit']||null:null})['then'](function(_0xe1a777){const _0x4f35c1=_0x19ed84;logger[_0x4f35c1('0x9')](_0x4f35c1('0xd'),_0x23b3f9),logger[_0x4f35c1('0x11')](_0x4f35c1('0xd'),_0x23b3f9,JSON['stringify'](_0xe1a777)),_0x11c75c(_0xe1a777);})[_0x19ed84('0x5')](function(_0x3e3c78){const _0x46ceec=_0x19ed84;logger['error'](_0x46ceec('0xd'),_0x3e3c78[_0x46ceec('0x2')],_0x23b3f9),_0x31cab5(_0x277229[_0x46ceec('0x12')](0x1f4,_0x3e3c78[_0x46ceec('0x2')]));});});},exports[_0x1bff02('0xa')]=function(_0xe15cf7){const _0x5c5dbf=this;return new Promise(function(_0x4b1dfc,_0x522fb2){const _0x348c8d=a556_0x2788;return db[_0x348c8d('0xf')]['findOne']({'where':_0xe15cf7[_0x348c8d('0x6')]?_0xe15cf7[_0x348c8d('0x6')][_0x348c8d('0x1')]||null:null})[_0x348c8d('0x0')](function(_0x32df61){const _0x1f828d=_0x348c8d;if(_0x32df61)return _0x32df61[_0x1f828d('0xb')](_0xe15cf7[_0x1f828d('0x8')]['ids'],{'through':_['omit'](_0xe15cf7['body'],['ids','id'])});})[_0x348c8d('0x0')](function([_0x314744]){const _0x17ebc3=_0x348c8d;logger[_0x17ebc3('0x9')]('AddTags',_0xe15cf7),logger[_0x17ebc3('0x11')](_0x17ebc3('0x4'),_0xe15cf7,JSON['stringify'](_0x314744)),_0x4b1dfc(_0x314744);})['catch'](function(_0x3a7b82){const _0x2ac2dc=_0x348c8d;logger[_0x2ac2dc('0x12')]('AddTags',_0x3a7b82[_0x2ac2dc('0x2')],_0xe15cf7),_0x522fb2(_0x5c5dbf[_0x2ac2dc('0x12')](0x1f4,_0x3a7b82[_0x2ac2dc('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index 8a88bfb..ddafd7c 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a557_0x2cf2=['update','length','save','register','remove','smsInteraction:'];(function(_0x3c0328,_0x2cf2c8){const _0x2a64ff=function(_0x5d69ac){while(--_0x5d69ac){_0x3c0328['push'](_0x3c0328['shift']());}};_0x2a64ff(++_0x2cf2c8);}(a557_0x2cf2,0x183));const a557_0x2a64=function(_0x3c0328,_0x2cf2c8){_0x3c0328=_0x3c0328-0x0;let _0x2a64ff=a557_0x2cf2[_0x3c0328];return _0x2a64ff;};const _0x3aef17=a557_0x2a64;'use strict';const SmsInteractionEvents=require('./smsInteraction.events'),events=[_0x3aef17('0x5'),_0x3aef17('0x1'),_0x3aef17('0x3')];function createListener(_0x5d69ac,_0x4ba6b9){return function(_0x2b6e84){_0x4ba6b9['emit'](_0x5d69ac,_0x2b6e84);};}exports[_0x3aef17('0x0')]=function(_0x3e2767){const _0x5c65af=_0x3aef17;for(let _0x562a1b=0x0,_0x4339d3=events[_0x5c65af('0x4')];_0x562a1b<_0x4339d3;_0x562a1b++){const _0x2cdeae=events[_0x562a1b],_0x3bedac=createListener(_0x5c65af('0x2')+_0x2cdeae,_0x3e2767);SmsInteractionEvents['on'](_0x2cdeae,_0x3bedac);}}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index 1f6780c..74e87bc 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a558_0x5ab6=['put','/describe','update','get','/:id','/:id/accept','accept','describe','isAuthenticated','exports','reject','./smsMessage.controller','/:id/status','create','status','delete','destroy','post','express','sms'];(function(_0x4141ca,_0x5ab6d3){const _0x5ba6e2=function(_0x3b0b5e){while(--_0x3b0b5e){_0x4141ca['push'](_0x4141ca['shift']());}};_0x5ba6e2(++_0x5ab6d3);}(a558_0x5ab6,0x13e));const a558_0x5ba6=function(_0x4141ca,_0x5ab6d3){_0x4141ca=_0x4141ca-0x0;let _0x5ba6e2=a558_0x5ab6[_0x4141ca];return _0x5ba6e2;};const _0x57055b=a558_0x5ba6;'use strict';const express=require(_0x57055b('0x0')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(_0x57055b('0xd'));router[_0x57055b('0x5')]('/',auth[_0x57055b('0xa')](),controller['index']),router[_0x57055b('0x5')](_0x57055b('0x3'),auth['isAuthenticated'](),controller[_0x57055b('0x9')]),router[_0x57055b('0x5')](_0x57055b('0x6'),auth[_0x57055b('0xa')](),controller['show']),router[_0x57055b('0x13')]('/',auth[_0x57055b('0xa')](),interaction['tracked'](_0x57055b('0x1'),'smsmessage:create'),controller[_0x57055b('0xf')]),router[_0x57055b('0x13')](_0x57055b('0xe'),controller[_0x57055b('0x10')]),router['put'](_0x57055b('0x6'),auth[_0x57055b('0xa')](),controller[_0x57055b('0x4')]),router[_0x57055b('0x2')](_0x57055b('0x7'),auth['isAuthenticated'](),controller[_0x57055b('0x8')]),router[_0x57055b('0x2')]('/:id/reject',auth[_0x57055b('0xa')](),controller[_0x57055b('0xc')]),router[_0x57055b('0x11')](_0x57055b('0x6'),auth['isAuthenticated'](),controller[_0x57055b('0x12')]),module[_0x57055b('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.attributes.js b/server/api/smsMessage/smsMessage.attributes.js index a460356..f5a0b4a 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a559_0x2244=['ENUM','out','exports','STRING','BOOLEAN','DATE','medium'];(function(_0x4337fb,_0x224472){const _0x37d139=function(_0x58f580){while(--_0x58f580){_0x4337fb['push'](_0x4337fb['shift']());}};_0x37d139(++_0x224472);}(a559_0x2244,0x14c));const a559_0x37d1=function(_0x4337fb,_0x224472){_0x4337fb=_0x4337fb-0x0;let _0x37d139=a559_0x2244[_0x4337fb];return _0x37d139;};const _0x842272=a559_0x37d1;'use strict';const Sequelize=require('sequelize');module[_0x842272('0x6')]={'body':{'type':Sequelize['TEXT'](_0x842272('0x3')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x842272('0x4')]('in',_0x842272('0x5')),'defaultValue':_0x842272('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0x842272('0x0')](0xbe)},'phone':{'type':Sequelize['STRING']},'readAt':{'type':Sequelize[_0x842272('0x2')]},'secret':{'type':Sequelize[_0x842272('0x1')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index ffdd08d..6300b94 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a560_0x424a=['send','readAt','util','keys','options','null','acceptmessage','client','sequelize','params','SmsInteraction','where','debug','get','http','error','set','Content-Range','message','fields','destroy','isNil','rawAttributes','rows','body','index','MessageSid','name','format','SmsMessage','model','create','status','interface','twilio','SmsMessage,\x20%s,\x20%s','map','role','sms-interactions','event','fieldName','order','catch','limit','./smsMessage.socket','info','describe','reject','intersection','read1stAt','filters','sms','DELIVERED','include','user','agent','../../config/logger','sent','messageId','sort','attributes','inspect','then','../../components/parsers/qs','request','moment','filter','rejectmessage','channel','pick','offset','../../rediscache','SmsAccountId','register','code','SmsAccount,\x20%s,\x20%s,\x20%s','manual','nolimit','show','read','api','findOne','jayson/promise','undefined','includeAll','YYYY-MM-DD\x20HH:mm:ss','SIP/%s','update','SmsAccount','length','json','merge','Status','count','plivio','Contact','request\x20sent','rejectMessage','accept','../../mysqldb','MessageUUID','sendStatus','type','interaction','plivo','EventManager','CmContact','query','received\x20delivery\x20report\x20from','UserId','SmsMessage,\x20%s,\x20%s,\x20%s','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','stringify'];(function(_0x68a4b4,_0x424af6){const _0x2a9664=function(_0x44d96e){while(--_0x44d96e){_0x68a4b4['push'](_0x68a4b4['shift']());}};_0x2a9664(++_0x424af6);}(a560_0x424a,0x194));const a560_0x2a96=function(_0x68a4b4,_0x424af6){_0x68a4b4=_0x68a4b4-0x0;let _0x2a9664=a560_0x424a[_0x68a4b4];return _0x2a9664;};const _0xcf4269=a560_0x2a96;'use strict';const moment=require(_0xcf4269('0x0')),util=require(_0xcf4269('0x32')),_=require('lodash'),qs=require(_0xcf4269('0x6f')),logger=require(_0xcf4269('0x68'))(_0xcf4269('0xf')),{getSocket}=require(_0xcf4269('0x6')),socket=getSocket(),db=require(_0xcf4269('0x22'))['db'],{Op}=require(_0xcf4269('0x38')),interaction_log=require(_0xcf4269('0x68'))(_0xcf4269('0x56'));require(_0xcf4269('0x5c'))[_0xcf4269('0x8')](socket);const jayson=require(_0xcf4269('0x11')),client=jayson['client']['http']({'port':0x232c}),client9002=jayson[_0xcf4269('0x37')][_0xcf4269('0x3e')]({'port':0x232a});function respondWithRpcPromise(_0x44d96e,_0x500ed3,_0x4b7b2c,_0x779d7d){return new Promise(function(_0x1824c8,_0x3bcd6d){const _0x2b51e5=a560_0x2a96,_0xdf291e=_0x779d7d||client;return _0xdf291e[_0x2b51e5('0x70')](_0x44d96e,_0x4b7b2c)['then'](function(_0x183330){const _0x1d742a=_0x2b51e5;logger['info']('SmsMessage,\x20%s,\x20%s',_0x500ed3,_0x1d742a('0x1f')),logger[_0x1d742a('0x3c')](_0x1d742a('0x2d'),_0x500ed3,_0x1d742a('0x1f'),JSON['stringify'](_0x183330));if(_0x183330['error']){if(_0x183330[_0x1d742a('0x3f')][_0x1d742a('0x9')]===0x1f4)return logger[_0x1d742a('0x3f')]('SmsMessage,\x20%s,\x20%s',_0x500ed3,_0x183330[_0x1d742a('0x3f')][_0x1d742a('0x42')]),_0x3bcd6d(_0x183330[_0x1d742a('0x3f')][_0x1d742a('0x42')]);return logger[_0x1d742a('0x3f')](_0x1d742a('0x53'),_0x500ed3,_0x183330['error'][_0x1d742a('0x42')]),_0x1824c8(_0x183330[_0x1d742a('0x3f')][_0x1d742a('0x42')]);}else logger[_0x1d742a('0x5d')](_0x1d742a('0x53'),_0x500ed3,_0x1d742a('0x1f')),_0x1824c8(_0x183330['result'][_0x1d742a('0x42')]);})[_0x2b51e5('0x5a')](function(_0x133aec){logger['error']('SmsMessage,\x20%s,\x20%s',_0x500ed3,_0x133aec),_0x3bcd6d(_0x133aec);});});}function respondWithResult(_0x12b36a,_0xc70a27){return _0xc70a27=_0xc70a27||0xc8,function(_0x3f0b34){const _0x568125=a560_0x2a96;if(_0x3f0b34)return _0x12b36a[_0x568125('0x50')](_0xc70a27)[_0x568125('0x19')](_0x3f0b34);};}function respondWithFilteredResult(_0xbf9721,_0x180a7b){return function(_0x43f7ec){const _0x32a8e3=a560_0x2a96;if(_0x43f7ec){const _0x32197a=_0x43f7ec[_0x32a8e3('0x1c')],_0x5b7ab0=_0x180a7b[_0x32a8e3('0x5')];let _0x59d59b=_0x180a7b[_0x32a8e3('0x5')]+_0x180a7b['limit'],_0xef09f4;return _0x59d59b>=_0x32197a?(_0x59d59b=_0x32197a,_0xef09f4=0xc8):_0xef09f4=0xce,_0xbf9721[_0x32a8e3('0x50')](_0xef09f4),_0xbf9721[_0x32a8e3('0x40')](_0x32a8e3('0x41'),_0x5b7ab0+'-'+_0x59d59b+'/'+_0x32197a)[_0x32a8e3('0x19')](_0x43f7ec);}return null;};}function saveUpdates(_0x4e8be4){return function(_0x4baf5d){const _0x38502f=a560_0x2a96;if(_0x4baf5d)return _0x4baf5d[_0x38502f('0x16')](_0x4e8be4)[_0x38502f('0x6e')](function(_0x3b904e){return _0x3b904e;});return null;};}function removeEntity(_0xb18aa0){return function(_0x3ebab9){const _0x26f59d=a560_0x2a96;if(_0x3ebab9)return _0x3ebab9[_0x26f59d('0x44')]()['then'](function(){const _0x4763e5=_0x26f59d;_0xb18aa0[_0x4763e5('0x50')](0xcc)['end']();});};}function handleEntityNotFound(_0x953982){return function(_0x3e9c14){const _0x4a9c97=a560_0x2a96;return!_0x3e9c14&&_0x953982[_0x4a9c97('0x24')](0x194),_0x3e9c14;};}function handleError(_0x48a944,_0x1cf15d){return _0x1cf15d=_0x1cf15d||0x1f4,function(_0x331e8c){const _0x5fc788=a560_0x2a96;logger[_0x5fc788('0x3f')](_0x331e8c['stack']),_0x331e8c['name']&&delete _0x331e8c[_0x5fc788('0x4b')],_0x48a944[_0x5fc788('0x50')](_0x1cf15d)[_0x5fc788('0x30')](_0x331e8c);};}exports[_0xcf4269('0x49')]=function(_0x1f1be1,_0x29ed79){const _0x149fb5=_0xcf4269;let _0x250394={};const _0x4f1558={},_0x15d73b={'count':0x0,'rows':[]},_0x2b880b=_[_0x149fb5('0x54')](db['SmsMessage']['rawAttributes'],function(_0x641b39){const _0x3a4b1c=_0x149fb5;return{'name':_0x641b39[_0x3a4b1c('0x58')],'type':_0x641b39[_0x3a4b1c('0x25')]['key']};});_0x4f1558[_0x149fb5('0x4e')]=_[_0x149fb5('0x54')](_0x2b880b,_0x149fb5('0x4b')),_0x4f1558[_0x149fb5('0x2a')]=_['keys'](_0x1f1be1['query']),_0x4f1558[_0x149fb5('0x62')]=_[_0x149fb5('0x60')](_0x4f1558[_0x149fb5('0x4e')],_0x4f1558[_0x149fb5('0x2a')]),_0x250394[_0x149fb5('0x6c')]=_[_0x149fb5('0x60')](_0x4f1558[_0x149fb5('0x4e')],qs[_0x149fb5('0x43')](_0x1f1be1[_0x149fb5('0x2a')][_0x149fb5('0x43')])),_0x250394[_0x149fb5('0x6c')]=_0x250394[_0x149fb5('0x6c')]['length']?_0x250394[_0x149fb5('0x6c')]:_0x4f1558[_0x149fb5('0x4e')];typeof _0x1f1be1[_0x149fb5('0x2a')][_0x149fb5('0xc')]===_0x149fb5('0x12')&&(_0x250394[_0x149fb5('0x5b')]=qs[_0x149fb5('0x5b')](_0x1f1be1[_0x149fb5('0x2a')][_0x149fb5('0x5b')]),_0x250394[_0x149fb5('0x5')]=qs['offset'](_0x1f1be1['query'][_0x149fb5('0x5')]));_0x250394[_0x149fb5('0x59')]=qs[_0x149fb5('0x6b')](_0x1f1be1[_0x149fb5('0x2a')][_0x149fb5('0x6b')]),_0x250394['where']=qs[_0x149fb5('0x62')](_[_0x149fb5('0x4')](_0x1f1be1[_0x149fb5('0x2a')],_0x4f1558[_0x149fb5('0x62')]),_0x2b880b);_0x1f1be1[_0x149fb5('0x2a')]['filter']&&(_0x250394[_0x149fb5('0x3b')]=_[_0x149fb5('0x1a')](_0x250394[_0x149fb5('0x3b')],{[Op['or']]:_[_0x149fb5('0x54')](_0x2b880b,function(_0xf6f8ad){const _0x2c2391=_0x149fb5;if(_0xf6f8ad[_0x2c2391('0x25')]!=='VIRTUAL'){const _0x1c0e43={};return _0x1c0e43[_0xf6f8ad['name']]={[Op['like']]:'%'+_0x1f1be1[_0x2c2391('0x2a')][_0x2c2391('0x1')]+'%'},_0x1c0e43;}})}));_0x250394=_[_0x149fb5('0x1a')]({},_0x250394,_0x1f1be1[_0x149fb5('0x34')]);const _0x42c548={'where':_0x250394[_0x149fb5('0x3b')]};return db[_0x149fb5('0x4d')][_0x149fb5('0x1c')](_0x42c548)[_0x149fb5('0x6e')](function(_0xb1ad8c){const _0x36baec=_0x149fb5;return _0x15d73b['count']=_0xb1ad8c,_0x1f1be1['query'][_0x36baec('0x13')]&&(_0x250394[_0x36baec('0x65')]=[{'all':!![]}]),db['SmsMessage']['findAll'](_0x250394);})['then'](function(_0x4c565a){const _0x2a1823=_0x149fb5;return _0x15d73b[_0x2a1823('0x47')]=_0x4c565a,_0x15d73b;})[_0x149fb5('0x6e')](respondWithFilteredResult(_0x29ed79,_0x250394))[_0x149fb5('0x5a')](handleError(_0x29ed79,null));},exports[_0xcf4269('0xd')]=function(_0x55c44e,_0x3a2c41){const _0x4d9f9e=_0xcf4269;let _0x342569={'raw':!![],'where':{'id':_0x55c44e[_0x4d9f9e('0x39')]['id']}};const _0x2c9fb0={};return _0x2c9fb0['model']=_['keys'](db[_0x4d9f9e('0x4d')][_0x4d9f9e('0x46')]),_0x2c9fb0[_0x4d9f9e('0x2a')]=_[_0x4d9f9e('0x33')](_0x55c44e[_0x4d9f9e('0x2a')]),_0x2c9fb0['filters']=_[_0x4d9f9e('0x60')](_0x2c9fb0['model'],_0x2c9fb0[_0x4d9f9e('0x2a')]),_0x342569['attributes']=_[_0x4d9f9e('0x60')](_0x2c9fb0['model'],qs[_0x4d9f9e('0x43')](_0x55c44e[_0x4d9f9e('0x2a')][_0x4d9f9e('0x43')])),_0x342569['attributes']=_0x342569[_0x4d9f9e('0x6c')][_0x4d9f9e('0x18')]?_0x342569[_0x4d9f9e('0x6c')]:_0x2c9fb0[_0x4d9f9e('0x4e')],_0x55c44e[_0x4d9f9e('0x2a')][_0x4d9f9e('0x13')]&&(_0x342569[_0x4d9f9e('0x65')]=[{'all':!![]}]),_0x342569=_[_0x4d9f9e('0x1a')]({},_0x342569,_0x55c44e[_0x4d9f9e('0x34')]),db[_0x4d9f9e('0x4d')][_0x4d9f9e('0x10')](_0x342569)[_0x4d9f9e('0x6e')](handleEntityNotFound(_0x3a2c41,null))[_0x4d9f9e('0x6e')](respondWithResult(_0x3a2c41,null))['catch'](handleError(_0x3a2c41,null));},exports['create']=function(_0x13c8c4,_0x5e991c){const _0x41fe65=_0xcf4269;return db['SmsMessage'][_0x41fe65('0x4f')](_0x13c8c4['body'],{})['then'](respondWithResult(_0x5e991c,0xc9))[_0x41fe65('0x5a')](handleError(_0x5e991c,null));},exports['update']=function(_0x8259bd,_0x45f4c3){const _0x40cf20=_0xcf4269;return _0x8259bd['body']['id']&&delete _0x8259bd[_0x40cf20('0x48')]['id'],db[_0x40cf20('0x4d')][_0x40cf20('0x10')]({'where':{'id':_0x8259bd[_0x40cf20('0x39')]['id']}})[_0x40cf20('0x6e')](handleEntityNotFound(_0x45f4c3,null))[_0x40cf20('0x6e')](saveUpdates(_0x8259bd['body'],null))[_0x40cf20('0x6e')](respondWithResult(_0x45f4c3,null))[_0x40cf20('0x5a')](handleError(_0x45f4c3,null));},exports[_0xcf4269('0x44')]=function(_0x3219f1,_0x1c67dc){const _0x3cd224=_0xcf4269;return db[_0x3cd224('0x4d')][_0x3cd224('0x10')]({'where':{'id':_0x3219f1['params']['id']}})[_0x3cd224('0x6e')](handleEntityNotFound(_0x1c67dc,null))[_0x3cd224('0x6e')](removeEntity(_0x1c67dc,null))[_0x3cd224('0x5a')](handleError(_0x1c67dc,null));},exports[_0xcf4269('0x5e')]=function(_0x3b0f79,_0x47420a){const _0x5a3710=_0xcf4269;return db[_0x5a3710('0x4d')][_0x5a3710('0x5e')]()[_0x5a3710('0x6e')](respondWithResult(_0x47420a,null))[_0x5a3710('0x5a')](handleError(_0x47420a,null));},exports[_0xcf4269('0x21')]=function(_0x4f7357,_0x42d771){const _0x5eace3=_0xcf4269,_0x2c0241={'channel':_0x5eace3('0x63')};return _0x4f7357['body']['id']&&delete _0x4f7357[_0x5eace3('0x48')]['id'],_0x4f7357[_0x5eace3('0x48')][_0x5eace3('0xe')]=!![],_0x4f7357[_0x5eace3('0x48')][_0x5eace3('0x31')]=moment()['format'](_0x5eace3('0x14')),_0x4f7357['body']['UserId']=_0x4f7357[_0x5eace3('0x48')][_0x5eace3('0x2c')]||_0x4f7357[_0x5eace3('0x66')]['id'],db[_0x5eace3('0x4d')][_0x5eace3('0x10')]({'where':{'id':_0x4f7357[_0x5eace3('0x39')]['id'],'UserId':null},'include':[{'model':db[_0x5eace3('0x29')],'as':_0x5eace3('0x1e')}]})[_0x5eace3('0x6e')](handleEntityNotFound(_0x42d771,null))[_0x5eace3('0x6e')](saveUpdates(_0x4f7357['body'],null))[_0x5eace3('0x6e')](function(_0x3d24e6){const _0x2b3f06=_0x5eace3;if(_0x3d24e6)return _0x2c0241['message']=_0x3d24e6[_0x2b3f06('0x3d')]({'plain':!![]}),db[_0x2b3f06('0x3a')][_0x2b3f06('0x10')]({'where':{'id':_0x3d24e6['SmsInteractionId']}});return null;})[_0x5eace3('0x6e')](handleEntityNotFound(_0x42d771,null))[_0x5eace3('0x6e')](function(_0x5c92d7){const _0xe9c7b9=_0x5eace3;if(_0x5c92d7)return _0x5c92d7[_0xe9c7b9('0x16')]({'UserId':_0x4f7357[_0xe9c7b9('0x48')]['UserId'],'read1stAt':_[_0xe9c7b9('0x45')](_0x5c92d7[_0xe9c7b9('0x61')])?moment()[_0xe9c7b9('0x4c')](_0xe9c7b9('0x14')):undefined});return null;})[_0x5eace3('0x6e')](function(_0x15be76){const _0x308a47=_0x5eace3;if(_0x15be76)return _0x2c0241[_0x308a47('0x26')]=_0x15be76[_0x308a47('0x3d')]({'plain':!![]}),interaction_log[_0x308a47('0x5d')]('[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x4f7357[_0x308a47('0x66')]['id'],_0x4f7357[_0x308a47('0x66')]['name'],_0x4f7357['user'][_0x308a47('0x55')],_0x2c0241[_0x308a47('0x26')]['id'],_0x4f7357[_0x308a47('0x48')]?JSON[_0x308a47('0x2f')](_0x4f7357['body']):_0x308a47('0x35')),respondWithRpcPromise('AcceptMessage','acceptMessage',_0x2c0241);return null;})[_0x5eace3('0x6e')](function(_0x401685){const _0x55fbd9=_0x5eace3;if(_0x401685){if(_0x4f7357[_0x55fbd9('0x48')][_0x55fbd9('0xb')])return _0x2c0241[_0x55fbd9('0x42')][_0x55fbd9('0x51')]=util[_0x55fbd9('0x4c')](_0x55fbd9('0x15'),_0x4f7357[_0x55fbd9('0x66')][_0x55fbd9('0x4b')]),_0x2c0241[_0x55fbd9('0x42')][_0x55fbd9('0x3')]=_0x2c0241['channel'],_0x2c0241[_0x55fbd9('0x42')][_0x55fbd9('0x57')]=_0x55fbd9('0x21'),respondWithRpcPromise(_0x55fbd9('0x28'),_0x55fbd9('0x28'),{'event':_0x55fbd9('0x36'),'message':_0x2c0241['message']},client9002)['then'](function(){return _0x2c0241;});return _0x2c0241;}return null;})[_0x5eace3('0x6e')](respondWithResult(_0x42d771,null))[_0x5eace3('0x5a')](handleError(_0x42d771,null));},exports[_0xcf4269('0x5f')]=function(_0x35c5b9,_0x49ec78){const _0x3f0d75=_0xcf4269,_0x7e5118={'agent':{},'channel':_0x3f0d75('0x63')};return _0x35c5b9['body']['id']&&delete _0x35c5b9['body']['id'],_0x35c5b9[_0x3f0d75('0x48')][_0x3f0d75('0x2c')]=_0x35c5b9[_0x3f0d75('0x48')][_0x3f0d75('0x2c')]||_0x35c5b9['user']['id'],_0x7e5118[_0x3f0d75('0x67')]['id']=_0x35c5b9[_0x3f0d75('0x48')]['UserId'],db[_0x3f0d75('0x4d')][_0x3f0d75('0x10')]({'where':{'id':_0x35c5b9[_0x3f0d75('0x39')]['id'],'UserId':null}})[_0x3f0d75('0x6e')](handleEntityNotFound(_0x49ec78,null))[_0x3f0d75('0x6e')](function(_0x26a0bb){const _0x372f3b=_0x3f0d75;if(_0x26a0bb)return _0x7e5118[_0x372f3b('0x42')]=_0x26a0bb[_0x372f3b('0x3d')]({'plain':!![]}),db[_0x372f3b('0x3a')][_0x372f3b('0x10')]({'where':{'id':_0x26a0bb['SmsInteractionId']}});return null;})[_0x3f0d75('0x6e')](handleEntityNotFound(_0x49ec78,null))[_0x3f0d75('0x6e')](function(_0x41e4df){const _0x2e64e9=_0x3f0d75;if(_0x41e4df)return _0x7e5118[_0x2e64e9('0x26')]=_0x41e4df[_0x2e64e9('0x3d')]({'plain':!![]}),interaction_log[_0x2e64e9('0x5d')](_0x2e64e9('0x2e'),_0x35c5b9[_0x2e64e9('0x66')]['id'],_0x35c5b9[_0x2e64e9('0x66')][_0x2e64e9('0x4b')],_0x35c5b9[_0x2e64e9('0x66')][_0x2e64e9('0x55')],_0x7e5118[_0x2e64e9('0x26')]['id'],_0x35c5b9[_0x2e64e9('0x48')]?JSON['stringify'](_0x35c5b9[_0x2e64e9('0x48')]):_0x2e64e9('0x35')),respondWithRpcPromise('RejectMessage',_0x2e64e9('0x20'),_0x7e5118);return null;})[_0x3f0d75('0x6e')](function(_0x1f8250){const _0xb2082c=_0x3f0d75;if(_0x1f8250)return _0x1f8250['message']['interface']=util[_0xb2082c('0x4c')](_0xb2082c('0x15'),_0x35c5b9[_0xb2082c('0x66')]['name']),_0x1f8250[_0xb2082c('0x42')]['channel']=_0x7e5118[_0xb2082c('0x3')],_0x1f8250[_0xb2082c('0x42')][_0xb2082c('0x57')]='reject',respondWithRpcPromise(_0xb2082c('0x28'),_0xb2082c('0x28'),{'event':_0xb2082c('0x2'),'message':_0x1f8250[_0xb2082c('0x42')]},client9002),_0x7e5118;return null;})[_0x3f0d75('0x6e')](respondWithResult(_0x49ec78,null))[_0x3f0d75('0x5a')](handleError(_0x49ec78,null));},exports[_0xcf4269('0x50')]=function(_0x4d78b7,_0x1c8421){const _0x5185fc=_0xcf4269;_0x4d78b7['body']['id']&&delete _0x4d78b7['body']['id'];let _0x203b46;return db[_0x5185fc('0x4d')][_0x5185fc('0x10')]({'where':{'id':_0x4d78b7[_0x5185fc('0x39')]['id']}})['then'](handleEntityNotFound(_0x1c8421,null))[_0x5185fc('0x6e')](function(_0x5e5d5e){const _0x2df382=_0x5185fc;if(_0x5e5d5e)return _0x203b46=_0x5e5d5e,db[_0x2df382('0x17')][_0x2df382('0x10')]({'where':{'id':_0x5e5d5e[_0x2df382('0x7')]}});})[_0x5185fc('0x6e')](handleEntityNotFound(_0x1c8421,null))[_0x5185fc('0x6e')](function(_0x518245){const _0x24c302=_0x5185fc;if(_0x518245){logger['debug'](_0x24c302('0x2d'),'status',_0x24c302('0x2b'),_0x518245[_0x24c302('0x25')],util['inspect'](_0x4d78b7['body'],{'showHidden':![],'depth':null}));switch(_0x518245[_0x24c302('0x25')]){case _0x24c302('0x52'):if(_0x4d78b7['body'][_0x24c302('0x4a')]&&_0x4d78b7['body'][_0x24c302('0x4a')]===_0x203b46['messageId'])return _0x203b46[_0x24c302('0x16')]({'read':!![]});else logger[_0x24c302('0x3f')](_0x24c302('0xa'),'status',_0x24c302('0x52'),util[_0x24c302('0x6d')](_0x4d78b7[_0x24c302('0x48')],{'showHidden':![],'depth':null}));break;case _0x24c302('0x27'):if(_0x4d78b7[_0x24c302('0x48')][_0x24c302('0x23')]&&_0x4d78b7['body'][_0x24c302('0x23')]===_0x203b46[_0x24c302('0x6a')]&&_['indexOf']([_0x24c302('0x69'),'delivered'],_0x4d78b7['body'][_0x24c302('0x1b')])>=0x0)return _0x203b46[_0x24c302('0x16')]({'read':!![]});else logger['error'](_0x24c302('0xa'),_0x24c302('0x50'),_0x24c302('0x1d'),util[_0x24c302('0x6d')](_0x4d78b7['body'],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x167e57=_0x4d78b7[_0x24c302('0x48')]['results'][0x0];if(_0x167e57[_0x24c302('0x50')]['groupName']===_0x24c302('0x64'))return _0x203b46[_0x24c302('0x16')]({'read':!![]});else logger[_0x24c302('0x3f')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x24c302('0x50'),'infobip',util['inspect'](_0x4d78b7['body'],{'showHidden':![],'depth':null}));}break;}return _0x203b46;}})[_0x5185fc('0x6e')](respondWithResult(_0x1c8421,null))[_0x5185fc('0x5a')](handleError(_0x1c8421,null));}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index ba7277e..2c90ccd 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a561_0x2a2c=['emit','update','addHook','remove','save','../../mysqldb','setMaxListeners','SmsMessage','events','exports'];(function(_0x1fe5f6,_0x2a2cce){const _0x568408=function(_0x1e6de3){while(--_0x1e6de3){_0x1fe5f6['push'](_0x1fe5f6['shift']());}};_0x568408(++_0x2a2cce);}(a561_0x2a2c,0x88));const a561_0x5684=function(_0x1fe5f6,_0x2a2cce){_0x1fe5f6=_0x1fe5f6-0x0;let _0x568408=a561_0x2a2c[_0x1fe5f6];return _0x568408;};const _0x11bbb=a561_0x5684;'use strict';const EventEmitter=require(_0x11bbb('0x2')),SmsMessage=require(_0x11bbb('0x9'))['db'][_0x11bbb('0x1')],SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0x11bbb('0x0')](0x0);const events={'afterCreate':_0x11bbb('0x8'),'afterUpdate':_0x11bbb('0x5'),'afterDestroy':_0x11bbb('0x7')};function emitEvent(_0x1e6de3){return function(_0x95c83d){const _0x3d424d=a561_0x5684;SmsMessageEvents[_0x3d424d('0x4')](_0x1e6de3+':'+_0x95c83d['id'],_0x95c83d),SmsMessageEvents[_0x3d424d('0x4')](_0x1e6de3,_0x95c83d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsMessage[_0x11bbb('0x6')](e,emitEvent(event));}}module[_0x11bbb('0x3')]=SmsMessageEvents; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index 66494e4..0f8021b 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a562_0x4d52=['csc','total_sent','direction','exports','senderString','signature=','toLowerCase','intelepeer','sid','SmsMessage,\x20%s,\x20%s,\x20%s','phone','SmsAccountId','./smsMessage.attributes','https://api.intelepeer.com/_rest/v4/app/sms/send','username','catch','/api/sms/messages/','inspect','twilio','models','&password=','id_sms','length','get','afterCreate','UserId','smsMethod','secret','/auth/1/session','clickatell','base64','authId','SmsInteractionId','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','Missing\x20parameters:\x20apiKey','sort','request-promise-native','update','isNil','apiMessageId','SmsAccount','sms','data','password','error','login?username=','message','baseUrl','infobip','out','utf8mb4_unicode_ci','Missing\x20parameters:\x20authId,\x20authToken','clickSend','token','toString','refid','messages','Missing\x20parameters:\x20authToken','digest','https://platform.clickatell.com/messages','UTF-8','Missing\x20parameters:\x20username,\x20password','sender','uuid','https://rest.clicksend.com/v3/sms/send','format','body','https://api.plivo.com/v1/Account/%s/Message/','http_code','apiKey','md5','util','head','Basic\x20%s','https://api.intelepeer.com/_rest/v4/app/sms/mdr','plivo','https://smsapi.connectel.se/api/v2/send/','requestid','messageId','accountSid','createHash','findOne','fti_sms_messages','from','hex','Bearer\x20','keys','authToken','/external/get/send.php?','crypto','code','GET','message_id','SmsInteraction','api','POST','clicksend','remote','application/json','timestamp','createdAt','deliveryReport','skebby','queued_count','utf8mb4','then','create','connectel','read','../../config/logger','SmsMessage','Missing\x20parameters:\x20base_url','IBSSO\x20','split'];(function(_0x417940,_0x4d520b){const _0xf24553=function(_0x37acd7){while(--_0x37acd7){_0x417940['push'](_0x417940['shift']());}};_0xf24553(++_0x4d520b);}(a562_0x4d52,0xa8));const a562_0xf245=function(_0x417940,_0x4d520b){_0x417940=_0x417940-0x0;let _0xf24553=a562_0x4d52[_0x417940];return _0xf24553;};const _0x15dbe0=a562_0xf245;'use strict';const _=require('lodash'),util=require(_0x15dbe0('0x11')),logger=require(_0x15dbe0('0x37'))(_0x15dbe0('0x28')),rp=require(_0x15dbe0('0x60')),attributes=require(_0x15dbe0('0x48'));module[_0x15dbe0('0x3f')]=function(_0x37acd7){const _0x9850db=_0x15dbe0,_0xf0cbdf=_0x37acd7[_0x9850db('0x4f')],_0x58010d=_0x37acd7['define'](_0x9850db('0x38'),attributes,{'tableName':'sms_messages','paranoid':![],'indexes':[{'name':'messageId','fields':[_0x9850db('0x18')]},{'name':_0x9850db('0x1c'),'fields':[_0x9850db('0xc')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5bd49d){const _0x1e161b=_0x9850db,_0x57fab8=_0x5bd49d[_0x1e161b('0x53')]({'plain':!![]});(_0x57fab8[_0x1e161b('0x3e')][_0x1e161b('0x42')]()==='in'||_0x57fab8[_0x1e161b('0x3e')][_0x1e161b('0x42')]()==='out'&&!_0x57fab8[_0x1e161b('0x57')]&&!_[_0x1e161b('0x62')](_0x57fab8[_0x1e161b('0x55')]))&&_0xf0cbdf[_0x1e161b('0x27')][_0x1e161b('0x1b')]({'where':{'id':_0x57fab8[_0x1e161b('0x5c')]}})[_0x1e161b('0x33')](function(_0x4d0026){const _0x1a93ee=_0x1e161b;_0x4d0026&&_0x4d0026[_0x1a93ee('0x61')]({'lastMsgAt':_0x57fab8[_0x1a93ee('0x2e')],'lastMsgDirection':_0x57fab8[_0x1a93ee('0x3e')][_0x1a93ee('0x42')]()});})[_0x1e161b('0x4b')](function(_0x5443ee){const _0x361d9e=_0x1e161b;console[_0x361d9e('0x68')](_0x5443ee);});if(_0x57fab8[_0x1e161b('0x3e')]===_0x1e161b('0x6d')&&!_0x57fab8[_0x1e161b('0x57')]){let _0x1940cd;_0xf0cbdf[_0x1e161b('0x64')][_0x1e161b('0x1b')]({'where':{'id':_0x57fab8[_0x1e161b('0x47')]},'raw':!![]})[_0x1e161b('0x33')](function(_0x2cf396){const _0x306551=_0x1e161b;_0x1940cd=_0x2cf396;if(_0x1940cd&&_0x1940cd['type'])switch(_0x1940cd['type']){case _0x306551('0x4e'):{const _0x5655c8=require(_0x306551('0x4e'));if(_0x1940cd[_0x306551('0x19')]&&_0x1940cd[_0x306551('0x21')]&&_0x1940cd['phone']){const _0x285daf=new _0x5655c8(_0x1940cd['accountSid'],_0x1940cd['authToken']);_0x285daf[_0x306551('0x2')][_0x306551('0x34')]({'body':_0x57fab8['body'],'to':_0x57fab8[_0x306551('0x46')],'from':_0x1940cd[_0x306551('0x46')],'statusCallback':_0x1940cd['remote']+_0x306551('0x4c')+_0x57fab8['id']+'/status?token='+_0x1940cd['token']})['then'](function(_0x4ac6c3){const _0x6a325f=_0x306551;if(_0x4ac6c3[_0x6a325f('0x44')])return _0x5bd49d['update']({'messageId':_0x4ac6c3['sid']});})[_0x306551('0x4b')](function(_0x17bd9c){const _0x1d80b4=_0x306551;logger['error'](_0x1d80b4('0x45'),_0x1d80b4('0x54'),_0x1d80b4('0x4e'),util[_0x1d80b4('0x4d')](_0x17bd9c,{'showHidden':![],'depth':null}));});}else logger[_0x306551('0x68')](_0x306551('0x45'),_0x306551('0x54'),_0x306551('0x4e'),_0x306551('0x5d'));break;}case'skebby':{const _0xcfe385='https://api.skebby.it/API/v1.0/REST/';if(_0x1940cd[_0x306551('0x4a')]&&_0x1940cd[_0x306551('0x67')]){const _0x5b7f34={'recipient':[_0x57fab8[_0x306551('0x46')]],'message':_0x57fab8[_0x306551('0xc')],'message_type':_0x1940cd[_0x306551('0x56')]};_0x1940cd['smsMethod']&&_0x1940cd['smsMethod']!=='SI'&&(_0x5b7f34[_0x306551('0x8')]=_0x1940cd[_0x306551('0x46')]);let _0x4a0d0f={'url':_0xcfe385+_0x306551('0x69')+_0x1940cd[_0x306551('0x4a')]+_0x306551('0x50')+_0x1940cd['password'],'method':_0x306551('0x25')};rp(_0x4a0d0f)['then'](function(_0x113535){const _0x12724f=_0x306551,_0x211fe3=_0x113535[_0x12724f('0x3b')](';'),_0xc73ca0={'user_key':_0x211fe3[0x0],'session_key':_0x211fe3[0x1]};return _0x4a0d0f={'url':_0xcfe385+_0x12724f('0x65'),'method':_0x12724f('0x29'),'headers':{'user_key':_0xc73ca0['user_key'],'Session_key':_0xc73ca0['session_key']},'json':!![],'body':_0x5b7f34},rp(_0x4a0d0f);})['then'](function(_0x46ee61){const _0x2ad687=_0x306551;if(_0x46ee61[_0x2ad687('0x3d')]>=0x1){const _0x482c37={'messageId':_0x46ee61['internal_order_id']};return(_0x1940cd['smsMethod']!=='GP'||!_0x1940cd[_0x2ad687('0x2f')])&&(_0x482c37[_0x2ad687('0x36')]=!![]),_0x5bd49d[_0x2ad687('0x61')](_0x482c37);}else return logger[_0x2ad687('0x68')](_0x2ad687('0x45'),_0x2ad687('0x54'),_0x2ad687('0x30'),util[_0x2ad687('0x4d')](_0x46ee61,{'showHidden':![],'depth':null}));})[_0x306551('0x4b')](function(_0x1497b4){const _0x179845=_0x306551;return logger[_0x179845('0x68')](_0x179845('0x45'),'afterCreate',_0x179845('0x30'),util[_0x179845('0x4d')](_0x1497b4,{'showHidden':![],'depth':null}));});}else logger[_0x306551('0x68')](_0x306551('0x45'),'afterCreate',_0x306551('0x30'),_0x306551('0x7'));break;}case _0x306551('0x35'):{if(_0x1940cd[_0x306551('0x21')]){const _0x24b235={'recipient':_0x57fab8[_0x306551('0x46')],'message':_0x57fab8[_0x306551('0xc')],'sender':_0x1940cd[_0x306551('0x40')]||_0x1940cd[_0x306551('0x46')],'authorization':_0x1940cd[_0x306551('0x21')]},_0x26c7a7={'method':_0x306551('0x29'),'uri':_0x306551('0x16'),'body':_0x24b235,'json':!![]};rp(_0x26c7a7)[_0x306551('0x33')](function(_0x1657a2){const _0x2b7f3e=_0x306551,_0x19142a={'messageId':_0x1657a2[_0x2b7f3e('0x17')]};return!_0x1940cd[_0x2b7f3e('0x2f')]&&(_0x19142a['read']=!![]),_0x5bd49d[_0x2b7f3e('0x61')](_0x19142a);})[_0x306551('0x4b')](function(_0x560a36){const _0x49d370=_0x306551;logger[_0x49d370('0x68')](_0x49d370('0x45'),_0x49d370('0x54'),'connectel',util['inspect'](_0x560a36,{'showHidden':![],'depth':null}));});}else logger['error'](_0x306551('0x45'),'afterCreate',_0x306551('0x35'),_0x306551('0x3'));break;}case _0x306551('0x2a'):{if(_0x1940cd[_0x306551('0x4a')]&&_0x1940cd['password']){const _0x9ad04e={'messages':[{'source':'xCALLY\x20Motion','to':_0x57fab8[_0x306551('0x46')],'body':_0x57fab8[_0x306551('0xc')],'from':_0x1940cd['senderString']||_0x1940cd[_0x306551('0x46')]}]},_0x3c7f75=util[_0x306551('0xb')]('%s:%s',_0x1940cd[_0x306551('0x4a')],_0x1940cd[_0x306551('0x67')]),_0x4e7dea={'method':'POST','uri':_0x306551('0xa'),'body':_0x9ad04e,'headers':{'Authorization':util[_0x306551('0xb')](_0x306551('0x13'),Buffer[_0x306551('0x1d')](_0x3c7f75)['toString']('base64'))},'json':!![]};rp(_0x4e7dea)['then'](function(_0x232691){const _0x357af8=_0x306551;if(_0x232691[_0x357af8('0xe')]>=0xc8&&_0x232691['http_code']<=0xce){if(_0x232691['data']&&_0x232691[_0x357af8('0x66')][_0x357af8('0x31')]>0x0){const _0x5ddd87=_[_0x357af8('0x12')](_0x232691[_0x357af8('0x66')]['messages']),_0x391d6e={'messageId':_0x5ddd87[_0x357af8('0x26')]};return!_0x1940cd['deliveryReport']&&(_0x391d6e[_0x357af8('0x36')]=!![]),_0x5bd49d['update'](_0x391d6e);}else logger['error'](_0x357af8('0x45'),_0x357af8('0x54'),_0x357af8('0x70'),util[_0x357af8('0x4d')](_0x232691,{'showHidden':![],'depth':null}));}else logger[_0x357af8('0x68')](_0x357af8('0x45'),_0x357af8('0x54'),_0x357af8('0x70'),util[_0x357af8('0x4d')](_0x232691,{'showHidden':![],'depth':null}));})['catch'](function(_0x5051c1){const _0x1eb9c6=_0x306551;logger[_0x1eb9c6('0x68')](_0x1eb9c6('0x45'),_0x1eb9c6('0x54'),_0x1eb9c6('0x70'),util[_0x1eb9c6('0x4d')](_0x5051c1,{'showHidden':![],'depth':null}));});}else logger[_0x306551('0x68')](_0x306551('0x45'),_0x306551('0x54'),_0x306551('0x70'),_0x306551('0x7'));break;}case'plivo':{if(_0x1940cd[_0x306551('0x5b')]&&_0x1940cd[_0x306551('0x21')]){const _0xb6eb35={'dst':_0x57fab8['phone'],'text':_0x57fab8[_0x306551('0xc')],'src':_0x1940cd['senderString']||_0x1940cd[_0x306551('0x46')],'url':_0x1940cd[_0x306551('0x2b')]+'/api/sms/messages/'+_0x57fab8['id']+'/status?token='+_0x1940cd[_0x306551('0x71')]},_0x4bad7e=util[_0x306551('0xb')]('%s:%s',_0x1940cd['authId'],_0x1940cd[_0x306551('0x21')]),_0x52150d={'method':_0x306551('0x29'),'uri':util[_0x306551('0xb')](_0x306551('0xd'),_0x1940cd['authId']),'body':_0xb6eb35,'headers':{'Authorization':util[_0x306551('0xb')](_0x306551('0x13'),Buffer[_0x306551('0x1d')](_0x4bad7e)[_0x306551('0x0')](_0x306551('0x5a')))},'json':!![]};rp(_0x52150d)[_0x306551('0x33')](function(_0x19c0b2){const _0x94c684={'messageId':_0x19c0b2['message_uuid'][0x0]};return _0x5bd49d['update'](_0x94c684);})[_0x306551('0x4b')](function(_0xb2573b){const _0x5c1c79=_0x306551;logger[_0x5c1c79('0x68')](_0x5c1c79('0x45'),_0x5c1c79('0x54'),'plivo',util[_0x5c1c79('0x4d')](_0xb2573b,{'showHidden':![],'depth':null}));});}else logger[_0x306551('0x68')](_0x306551('0x45'),_0x306551('0x54'),_0x306551('0x15'),_0x306551('0x6f'));break;}case'infobip':{if(_0x1940cd[_0x306551('0x4a')]&&_0x1940cd[_0x306551('0x67')]){if(_0x1940cd[_0x306551('0x6b')]){const _0xf6acd3={'method':_0x306551('0x29'),'uri':_0x1940cd[_0x306551('0x6b')]+_0x306551('0x58'),'body':{'username':_0x1940cd['username'],'password':_0x1940cd[_0x306551('0x67')]},'json':!![]};return rp(_0xf6acd3)[_0x306551('0x33')](function(_0x1abf71){const _0x23301e=_0x306551,_0x19a4c7={'method':_0x23301e('0x29'),'uri':_0x1940cd['baseUrl']+'/sms/2/text/advanced','body':{'messages':[{'from':_0x1940cd[_0x23301e('0x46')],'destinations':[{'to':_0x57fab8[_0x23301e('0x46')]}],'text':_0x57fab8[_0x23301e('0xc')],'notifyUrl':_0x1940cd[_0x23301e('0x2b')]+_0x23301e('0x4c')+_0x57fab8['id']+'/status?token='+_0x1940cd['token'],'notifyContentType':_0x23301e('0x2c'),'callbackData':_0x1940cd[_0x23301e('0x46')]+';'+_0x57fab8['body']}]},'headers':{'Authorization':_0x23301e('0x3a')+_0x1abf71[_0x23301e('0x71')]},'json':!![]};return rp(_0x19a4c7)[_0x23301e('0x33')](function(_0x20226a){const _0x27a448=_0x23301e;if(_0x20226a[_0x27a448('0x2')]){const _0x467fd6={'messageId':_0x20226a[_0x27a448('0x2')][0x0]['messageId']};return!_0x1940cd['deliveryReport']&&(_0x467fd6[_0x27a448('0x36')]=!![]),_0x5bd49d[_0x27a448('0x61')](_0x467fd6);}else return logger[_0x27a448('0x68')](_0x27a448('0x45'),_0x27a448('0x54'),'infobip',util[_0x27a448('0x4d')](_0x20226a,{'showHidden':![],'depth':null}));});})['catch'](function(_0x35bc25){const _0x510d6e=_0x306551;return logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x510d6e('0x54'),_0x510d6e('0x6c'),util['inspect'](_0x35bc25,{'showHidden':![],'depth':null}));});}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x306551('0x54'),_0x306551('0x6c'),_0x306551('0x39'));}else logger[_0x306551('0x68')](_0x306551('0x45'),_0x306551('0x54'),_0x306551('0x6c'),_0x306551('0x7'));break;}case _0x306551('0x3c'):{const _0x209757=require(_0x306551('0x23'));if(_0x1940cd[_0x306551('0xf')]){const _0x2246e6={};_0x2246e6['login']=_0x1940cd[_0x306551('0x4a')],_0x2246e6[_0x306551('0x46')]=_0x57fab8[_0x306551('0x46')],_0x2246e6['sender']=_0x1940cd[_0x306551('0x46')],_0x2246e6['text']=_0x57fab8[_0x306551('0xc')],_0x2246e6[_0x306551('0x2d')]=+new Date();let _0x529ccf='',_0x16af27='';const _0x1c2daa=Object[_0x306551('0x20')](_0x2246e6);_0x1c2daa[_0x306551('0x5f')]();for(let _0x5e0bdc=0x0;_0x5e0bdc<_0x1c2daa[_0x306551('0x52')];_0x5e0bdc++){_0x529ccf!=''&&(_0x529ccf+='&'),_0x529ccf+=_0x1c2daa[_0x5e0bdc]+'='+encodeURIComponent(_0x2246e6[_0x1c2daa[_0x5e0bdc]]),_0x16af27+=_0x2246e6[_0x1c2daa[_0x5e0bdc]];}_0x16af27+=_0x1940cd[_0x306551('0xf')],_0x16af27=_0x209757[_0x306551('0x1a')](_0x306551('0x10'))[_0x306551('0x61')](_0x16af27)[_0x306551('0x4')](_0x306551('0x1e'));_0x529ccf!==''&&(_0x529ccf+='&');_0x529ccf+=_0x306551('0x41')+_0x16af27;const _0x348c62={'method':_0x306551('0x25'),'uri':_0x1940cd[_0x306551('0x6b')]+_0x306551('0x22')+_0x529ccf,'json':!![]};return rp(_0x348c62)[_0x306551('0x33')](function(_0x40dec3){const _0x440af3=_0x306551,_0xa65c70=Object[_0x440af3('0x20')](_0x40dec3);if(_0x40dec3[_0xa65c70[0x0]][_0x440af3('0x68')]&&parseInt(_0x40dec3[_0xa65c70[0x0]][_0x440af3('0x68')])===0x0){const _0x442247={'messageId':_0x40dec3[_0xa65c70[0x0]][_0x440af3('0x51')]};return!_0x1940cd[_0x440af3('0x2f')]&&(_0x442247[_0x440af3('0x36')]=!![]),_0x5bd49d[_0x440af3('0x61')](_0x442247);}else return logger[_0x440af3('0x68')](_0x440af3('0x45'),_0x440af3('0x54'),'csc',util['inspect'](_0x40dec3['error'],{'showHidden':![],'depth':null}));})[_0x306551('0x4b')](function(_0x6c5d3e){const _0x46a42e=_0x306551;return logger[_0x46a42e('0x68')](_0x46a42e('0x45'),_0x46a42e('0x54'),_0x46a42e('0x3c'),util[_0x46a42e('0x4d')](_0x6c5d3e,{'showHidden':![],'depth':null}));});}else logger[_0x306551('0x68')](_0x306551('0x45'),_0x306551('0x54'),_0x306551('0x3c'),_0x306551('0x5e'));break;}case _0x306551('0x59'):{if(_0x1940cd[_0x306551('0xf')]){const _0xea02f3={'method':'POST','uri':_0x306551('0x5'),'headers':{'Authorization':_0x1940cd[_0x306551('0xf')]},'body':{'content':_0x57fab8[_0x306551('0xc')],'to':[_0x57fab8[_0x306551('0x46')]],'from':_0x1940cd[_0x306551('0x46')],'binary':![],'clientMessageId':_0x306551('0x9'),'charset':_0x306551('0x6')},'json':!![]};rp(_0xea02f3)[_0x306551('0x33')](function(_0x4a709e){const _0x55a44d=_0x306551;if(!_0x4a709e[_0x55a44d('0x68')]){const _0x506b3e={'messageId':_0x4a709e['messages'][0x0][_0x55a44d('0x63')]};return!_0x1940cd['deliveryReport']&&(_0x506b3e[_0x55a44d('0x36')]=!![]),_0x5bd49d[_0x55a44d('0x61')](_0x506b3e);}else return logger[_0x55a44d('0x68')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate','clickatell',util[_0x55a44d('0x4d')](_0x4a709e[_0x55a44d('0x68')],{'showHidden':![],'depth':null}));})['catch'](function(_0x15e8a2){const _0x247a2d=_0x306551;return logger[_0x247a2d('0x68')](_0x247a2d('0x45'),_0x247a2d('0x54'),'clickatell',util[_0x247a2d('0x4d')](_0x15e8a2,{'showHidden':![],'depth':null}));});}else logger['error'](_0x306551('0x45'),'afterCreate','clickatell','Missing\x20parameters:\x20apiKey');break;}case _0x306551('0x43'):if(_0x1940cd[_0x306551('0xf')]){const _0x15d05d={},_0xdbcf79={'method':'POST','uri':_0x306551('0x49'),'headers':{'Authorization':'Bearer\x20'+_0x1940cd['apiKey'],'Content-Type':_0x306551('0x2c')},'body':{'from':_0x1940cd['phone'],'to':_0x57fab8[_0x306551('0x46')],'text':_0x57fab8[_0x306551('0xc')]},'json':!![]};return rp(_0xdbcf79)[_0x306551('0x33')](function(_0x2c2b9c){const _0x4b6904=_0x306551;if(_0x2c2b9c[_0x4b6904('0x24')]==0xca){_0x15d05d[_0x4b6904('0x6a')]=_0x2c2b9c;const _0x6bd9f9={'method':_0x4b6904('0x29'),'uri':_0x4b6904('0x14'),'headers':{'Authorization':_0x4b6904('0x1f')+_0x1940cd[_0x4b6904('0xf')],'Content-Type':_0x4b6904('0x2c')},'body':{'refid':_0x15d05d[_0x4b6904('0x6a')][_0x4b6904('0x1')]},'json':!![]};return rp(_0x6bd9f9)[_0x4b6904('0x33')](function(_0x56a2c1){const _0x1075c2=_0x4b6904;_0x15d05d['status']=_0x56a2c1;const _0x91f312={'messageId':_0x15d05d[_0x1075c2('0x6a')][_0x1075c2('0x1')],'read':!![]};return _0x5bd49d[_0x1075c2('0x61')](_0x91f312);});}else return logger[_0x4b6904('0x68')](_0x4b6904('0x45'),'afterCreate',_0x4b6904('0x43'),util[_0x4b6904('0x4d')](_0x2c2b9c,{'showHidden':![],'depth':null}));})['catch'](function(_0x301675){const _0x48a5c2=_0x306551;return logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x48a5c2('0x43'),util[_0x48a5c2('0x4d')](_0x301675,{'showHidden':![],'depth':null}));});}else return logger['error'](_0x306551('0x45'),'afterCreate',_0x306551('0x43'),'Token\x20not\x20received');}})['finally'](function(){return null;});}else return null;}},'charset':_0x9850db('0x32'),'collate':_0x9850db('0x6e')});return _0x58010d;}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index ebcdbe7..5ac85ab 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a563_0x4e1f=['./smsMessage.socket','create','rpc','CreateSmsMessage','../../config/logger','error','message','../../mysqldb','register','options','stringify','body','info','raw','SmsMessage','then'];(function(_0x33bc62,_0x4e1f4d){const _0x1db41b=function(_0x253c97){while(--_0x253c97){_0x33bc62['push'](_0x33bc62['shift']());}};_0x1db41b(++_0x4e1f4d);}(a563_0x4e1f,0x184));const a563_0x1db4=function(_0x33bc62,_0x4e1f4d){_0x33bc62=_0x33bc62-0x0;let _0x1db41b=a563_0x4e1f[_0x33bc62];return _0x1db41b;};const _0x230655=a563_0x1db4;'use strict';const db=require(_0x230655('0x3'))['db'],logger=require(_0x230655('0x0'))(_0x230655('0xe')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x230655('0xc'))[_0x230655('0x4')](socket),exports[_0x230655('0xf')]=function(_0x253c97){const _0x424e7c=this;return new Promise(function(_0x308570,_0x3b63c0){const _0x424c87=a563_0x1db4;return db[_0x424c87('0xa')][_0x424c87('0xd')](_0x253c97[_0x424c87('0x7')],{'raw':_0x253c97[_0x424c87('0x5')]?_0x253c97['options'][_0x424c87('0x9')]===undefined?!![]:![]:!![]})[_0x424c87('0xb')](function(_0x5bf6e7){const _0x26e768=_0x424c87;logger[_0x26e768('0x8')](_0x26e768('0xf'),_0x253c97),logger['debug'](_0x26e768('0xf'),_0x253c97,JSON[_0x26e768('0x6')](_0x5bf6e7)),_0x308570(_0x5bf6e7);})['catch'](function(_0x56f83a){const _0x1f676f=_0x424c87;logger[_0x1f676f('0x1')](_0x1f676f('0xf'),_0x56f83a[_0x1f676f('0x2')],_0x253c97),_0x3b63c0(_0x424e7c[_0x1f676f('0x1')](0x1f4,_0x56f83a[_0x1f676f('0x2')]));});});}; \ No newline at end of file +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 diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index f3df7b6..77f9376 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a564_0x5467=['remove','emit','save','./smsMessage.events','length','register','update'];(function(_0x2e8df8,_0x54672a){const _0x300d37=function(_0x568301){while(--_0x568301){_0x2e8df8['push'](_0x2e8df8['shift']());}};_0x300d37(++_0x54672a);}(a564_0x5467,0x93));const a564_0x300d=function(_0x2e8df8,_0x54672a){_0x2e8df8=_0x2e8df8-0x0;let _0x300d37=a564_0x5467[_0x2e8df8];return _0x300d37;};const _0x62e190=a564_0x300d;'use strict';const SmsMessageEvents=require(_0x62e190('0x3')),events=[_0x62e190('0x2'),_0x62e190('0x0'),_0x62e190('0x6')];function createListener(_0x568301,_0x2cd712){return function(_0x25a893){const _0x5e06e9=a564_0x300d;_0x2cd712[_0x5e06e9('0x1')](_0x568301,_0x25a893);};}exports[_0x62e190('0x5')]=function(_0x234c29){const _0x25e64d=_0x62e190;for(let _0x587903=0x0,_0x5c6031=events[_0x25e64d('0x4')];_0x587903<_0x5c6031;_0x587903++){const _0x5686bd=events[_0x587903],_0x5b9713=createListener('smsMessage:'+_0x5686bd,_0x234c29);SmsMessageEvents['on'](_0x5686bd,_0x5b9713);}}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index ed58d32..e47cc6a 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a565_0xf284=['update','delete','getMembers','getAgents','express','../../components/auth/service','/:id/teams','/:id/users','isAuthenticated','put','destroy','/describe','/:id','describe','index','show','exports','post','create','./smsQueue.controller','get','Router'];(function(_0x382bac,_0xf2848c){const _0x4f9b96=function(_0x5f617){while(--_0x5f617){_0x382bac['push'](_0x382bac['shift']());}};_0x4f9b96(++_0xf2848c);}(a565_0xf284,0x7e));const a565_0x4f9b=function(_0x382bac,_0xf2848c){_0x382bac=_0x382bac-0x0;let _0x4f9b96=a565_0xf284[_0x382bac];return _0x4f9b96;};const _0x31a6db=a565_0x4f9b;'use strict';const express=require(_0x31a6db('0xa')),router=express[_0x31a6db('0x5')](),auth=require(_0x31a6db('0xb')),controller=require(_0x31a6db('0x3'));router[_0x31a6db('0x4')]('/',auth['isAuthenticated'](),controller[_0x31a6db('0x14')]),router['get'](_0x31a6db('0x11'),auth[_0x31a6db('0xe')](),controller[_0x31a6db('0x13')]),router[_0x31a6db('0x4')](_0x31a6db('0x12'),auth['isAuthenticated'](),controller[_0x31a6db('0x15')]),router[_0x31a6db('0x4')]('/:id/members',auth[_0x31a6db('0xe')](),controller[_0x31a6db('0x8')]),router[_0x31a6db('0x4')](_0x31a6db('0xc'),auth[_0x31a6db('0xe')](),controller['getTeams']),router[_0x31a6db('0x4')](_0x31a6db('0xd'),auth[_0x31a6db('0xe')](),controller[_0x31a6db('0x9')]),router[_0x31a6db('0x1')]('/',auth[_0x31a6db('0xe')](),controller[_0x31a6db('0x2')]),router[_0x31a6db('0x1')](_0x31a6db('0xc'),auth['isAuthenticated'](),controller['addTeams']),router['post'](_0x31a6db('0xd'),auth[_0x31a6db('0xe')](),controller['addAgents']),router[_0x31a6db('0xf')](_0x31a6db('0x12'),auth['isAuthenticated'](),controller[_0x31a6db('0x6')]),router[_0x31a6db('0x7')](_0x31a6db('0x12'),auth[_0x31a6db('0xe')](),controller[_0x31a6db('0x10')]),router[_0x31a6db('0x7')](_0x31a6db('0xc'),auth[_0x31a6db('0xe')](),controller['removeTeams']),router[_0x31a6db('0x7')]('/:id/users',auth['isAuthenticated'](),controller['removeAgents']),module[_0x31a6db('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.attributes.js b/server/api/smsQueue/smsQueue.attributes.js index 2819929..58e762f 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a566_0xc895=['ENUM','exports','beepall','STRING','rrmemory','name','roundrobin'];(function(_0x15d733,_0xc89576){const _0xbdf11b=function(_0x502b58){while(--_0x502b58){_0x15d733['push'](_0x15d733['shift']());}};_0xbdf11b(++_0xc89576);}(a566_0xc895,0x156));const a566_0xbdf1=function(_0x15d733,_0xc89576){_0x15d733=_0x15d733-0x0;let _0xbdf11b=a566_0xc895[_0x15d733];return _0xbdf11b;};const _0x3b78ba=a566_0xbdf1;'use strict';const Sequelize=require('sequelize');module[_0x3b78ba('0x2')]={'name':{'type':Sequelize[_0x3b78ba('0x4')],'unique':_0x3b78ba('0x6'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x3b78ba('0x4')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x3b78ba('0x1')](_0x3b78ba('0x5'),_0x3b78ba('0x3'),_0x3b78ba('0x0'))}}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index 151e7c0..b46630c 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a567_0x892a=['userSmsQueue:remove','%s/%s','findOne','attributes','index','findOrCreate','rows','then','like','sort','filter','transaction','register','Content-Range','removeAgents','SmsQueue','compact','pick','include','sequelize','forEach','findAndCountAll','intersection','agent','updatedAt','SELECT','online','model','tq.TeamId','filters','show','UserProfileSection','TeamId','userProfileId','addAgents','isArray','body','merge','keys','removeTeams','User','value','rawAttributes','fieldName','map','createdAt','length','name','error','Agents','nolimit','query','SmsQueues','params','catch','util','format','./smsQueue.socket','ids','destroy','isEmpty','count','sendStatus','user_has_teams','SmsQueueId','lodash','describe','select','team_has_sms_queues','offset','../../mysqldb','findAll','getAgents','update','../../config/logger','VIRTUAL','ut.UserId\x20=\x20?','union','toString','create','all','push','every','Team','getTeams','emit','user','stack','set','autoAssociation','includes','status','includeAll','json','options','addTeams','SIP','limit','type','squel','clone','where','undefined','UserSmsQueue','key','flatMap','../../rediscache','voicePause','order','join','UserProfileResource','get','from','userSmsQueue:save','UserId','smsPause','fields','end','interface'];(function(_0x29390a,_0x892a50){const _0xc542f5=function(_0x33a4e){while(--_0x33a4e){_0x29390a['push'](_0x29390a['shift']());}};_0xc542f5(++_0x892a50);}(a567_0x892a,0x152));const a567_0xc542=function(_0x29390a,_0x892a50){_0x29390a=_0x29390a-0x0;let _0xc542f5=a567_0x892a[_0x29390a];return _0xc542f5;};const _0x4e4f52=a567_0xc542;'use strict';const util=require(_0x4e4f52('0x4a')),_=require(_0x4e4f52('0x54')),squel=require(_0x4e4f52('0x76')),qs=require('../../components/parsers/qs'),logger=require(_0x4e4f52('0x5d'))('api'),{getSocket}=require(_0x4e4f52('0x6')),socket=getSocket(),db=require(_0x4e4f52('0x59'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x4e4f52('0x4c'))[_0x4e4f52('0x1f')](socket);function respondWithStatusCode(_0x33a4e,_0x30dcbb){return _0x30dcbb=_0x30dcbb||0xcc,function(_0x5ba4ae){const _0x47bcf9=a567_0xc542;if(_0x5ba4ae)return _0x33a4e[_0x47bcf9('0x51')](_0x30dcbb);return _0x33a4e[_0x47bcf9('0x6e')](_0x30dcbb)[_0x47bcf9('0x11')]();};}function respondWithResult(_0x51630a,_0x2bbde9){return _0x2bbde9=_0x2bbde9||0xc8,function(_0xb189ca){const _0x5cd493=a567_0xc542;if(_0xb189ca)return _0x51630a['status'](_0x2bbde9)[_0x5cd493('0x70')](_0xb189ca);};}function respondWithFilteredResult(_0x2be686,_0x38389a){return function(_0x57818c){const _0x4aafe1=a567_0xc542;if(_0x57818c){const _0x35edac=_0x57818c['count'],_0x47430a=_0x38389a[_0x4aafe1('0x58')];let _0x139a3b=_0x38389a[_0x4aafe1('0x58')]+_0x38389a['limit'],_0x1f89ca;return _0x139a3b>=_0x35edac?(_0x139a3b=_0x35edac,_0x1f89ca=0xc8):_0x1f89ca=0xce,_0x2be686['status'](_0x1f89ca),_0x2be686[_0x4aafe1('0x6b')](_0x4aafe1('0x20'),_0x47430a+'-'+_0x139a3b+'/'+_0x35edac)['json'](_0x57818c);}return null;};}function saveUpdates(_0x51fef0){return function(_0x580915){const _0x598d70=a567_0xc542;if(_0x580915)return _0x580915[_0x598d70('0x5c')](_0x51fef0)[_0x598d70('0x1a')](function(_0x2bcf0b){return _0x2bcf0b;});return null;};}function removeEntity(_0x4d5c35){return function(_0x67be7b){const _0x23ffb3=a567_0xc542;if(_0x67be7b)return _0x67be7b['destroy']()['then'](function(){const _0x276902=a567_0xc542,_0x28fc2e=_0x67be7b[_0x276902('0xb')]({'plain':!![]}),_0x14bb4b=_0x276902('0x47');return db[_0x276902('0xa')][_0x276902('0x4e')]({'where':{'type':_0x14bb4b,'resourceId':_0x28fc2e['id']}})[_0x276902('0x1a')](function(){return _0x67be7b;});})[_0x23ffb3('0x1a')](function(){const _0x36f842=_0x23ffb3;_0x4d5c35[_0x36f842('0x6e')](0xcc)['end']();});};}function handleEntityNotFound(_0x1ecf79){return function(_0x17ba52){const _0x4024af=a567_0xc542;return!_0x17ba52&&_0x1ecf79[_0x4024af('0x51')](0x194),_0x17ba52;};}function handleError(_0x13c17f,_0x1378b4){return _0x1378b4=_0x1378b4||0x1f4,function(_0x2ff1d7){const _0x1380ea=a567_0xc542;logger[_0x1380ea('0x43')](_0x2ff1d7[_0x1380ea('0x6a')]),_0x2ff1d7[_0x1380ea('0x42')]&&delete _0x2ff1d7[_0x1380ea('0x42')],_0x13c17f[_0x1380ea('0x6e')](_0x1378b4)['send'](_0x2ff1d7);};}exports[_0x4e4f52('0x17')]=function(_0x52ca2d,_0x1f1ed6){const _0x2379b8=_0x4e4f52;let _0x3f6c5d={};const _0x38283b={},_0x5d1332={'count':0x0,'rows':[]},_0x488f4c=_['map'](db['SmsQueue'][_0x2379b8('0x3d')],function(_0x4b49d5){const _0x539e57=_0x2379b8;return{'name':_0x4b49d5[_0x539e57('0x3e')],'type':_0x4b49d5['type'][_0x539e57('0x4')]};});_0x38283b['model']=_['map'](_0x488f4c,_0x2379b8('0x42')),_0x38283b[_0x2379b8('0x46')]=_[_0x2379b8('0x39')](_0x52ca2d['query']),_0x38283b['filters']=_[_0x2379b8('0x29')](_0x38283b[_0x2379b8('0x2e')],_0x38283b['query']),_0x3f6c5d['attributes']=_['intersection'](_0x38283b[_0x2379b8('0x2e')],qs[_0x2379b8('0x10')](_0x52ca2d[_0x2379b8('0x46')][_0x2379b8('0x10')])),_0x3f6c5d[_0x2379b8('0x16')]=_0x3f6c5d[_0x2379b8('0x16')][_0x2379b8('0x41')]?_0x3f6c5d[_0x2379b8('0x16')]:_0x38283b[_0x2379b8('0x2e')];typeof _0x52ca2d['query'][_0x2379b8('0x45')]===_0x2379b8('0x2')&&(_0x3f6c5d['limit']=qs['limit'](_0x52ca2d[_0x2379b8('0x46')][_0x2379b8('0x74')]),_0x3f6c5d[_0x2379b8('0x58')]=qs[_0x2379b8('0x58')](_0x52ca2d[_0x2379b8('0x46')][_0x2379b8('0x58')]));_0x3f6c5d[_0x2379b8('0x8')]=qs[_0x2379b8('0x1c')](_0x52ca2d[_0x2379b8('0x46')]['sort']),_0x3f6c5d['where']=qs[_0x2379b8('0x30')](_[_0x2379b8('0x24')](_0x52ca2d[_0x2379b8('0x46')],_0x38283b['filters']),_0x488f4c);_0x52ca2d[_0x2379b8('0x46')][_0x2379b8('0x1d')]&&(_0x3f6c5d[_0x2379b8('0x1')]=_[_0x2379b8('0x38')](_0x3f6c5d[_0x2379b8('0x1')],{[Op['or']]:_['map'](_0x488f4c,function(_0x2d40b5){const _0x69e5fd=_0x2379b8;if(_0x2d40b5[_0x69e5fd('0x75')]!==_0x69e5fd('0x5e')){const _0x49c255={};return _0x49c255[_0x2d40b5[_0x69e5fd('0x42')]]={[Op['like']]:'%'+_0x52ca2d[_0x69e5fd('0x46')][_0x69e5fd('0x1d')]+'%'},_0x49c255;}})}));_0x3f6c5d=_[_0x2379b8('0x38')]({},_0x3f6c5d,_0x52ca2d[_0x2379b8('0x71')]);const _0x59e112={'where':_0x3f6c5d[_0x2379b8('0x1')]};return db[_0x2379b8('0x22')][_0x2379b8('0x50')](_0x59e112)[_0x2379b8('0x1a')](function(_0x18d7a9){const _0x8bd3da=_0x2379b8;return _0x5d1332[_0x8bd3da('0x50')]=_0x18d7a9,_0x52ca2d[_0x8bd3da('0x46')][_0x8bd3da('0x6f')]&&(_0x3f6c5d['include']=[{'all':!![]}]),db[_0x8bd3da('0x22')]['findAll'](_0x3f6c5d);})[_0x2379b8('0x1a')](function(_0x1dd442){const _0x5ada0d=_0x2379b8;return _0x5d1332[_0x5ada0d('0x19')]=_0x1dd442,_0x5d1332;})[_0x2379b8('0x1a')](respondWithFilteredResult(_0x1f1ed6,_0x3f6c5d))[_0x2379b8('0x49')](handleError(_0x1f1ed6,null));},exports[_0x4e4f52('0x31')]=function(_0x373347,_0x292996){const _0x15e49d=_0x4e4f52;let _0x48ad48={'raw':!![],'where':{'id':_0x373347[_0x15e49d('0x48')]['id']}};const _0x25fec9={};return _0x25fec9[_0x15e49d('0x2e')]=_[_0x15e49d('0x39')](db[_0x15e49d('0x22')][_0x15e49d('0x3d')]),_0x25fec9['query']=_[_0x15e49d('0x39')](_0x373347['query']),_0x25fec9[_0x15e49d('0x30')]=_[_0x15e49d('0x29')](_0x25fec9[_0x15e49d('0x2e')],_0x25fec9[_0x15e49d('0x46')]),_0x48ad48[_0x15e49d('0x16')]=_[_0x15e49d('0x29')](_0x25fec9[_0x15e49d('0x2e')],qs['fields'](_0x373347['query'][_0x15e49d('0x10')])),_0x48ad48[_0x15e49d('0x16')]=_0x48ad48[_0x15e49d('0x16')][_0x15e49d('0x41')]?_0x48ad48[_0x15e49d('0x16')]:_0x25fec9['model'],_0x373347[_0x15e49d('0x46')][_0x15e49d('0x6f')]&&(_0x48ad48[_0x15e49d('0x25')]=[{'all':!![]}]),_0x48ad48=_['merge']({},_0x48ad48,_0x373347['options']),db[_0x15e49d('0x22')][_0x15e49d('0x15')](_0x48ad48)[_0x15e49d('0x1a')](handleEntityNotFound(_0x292996,null))[_0x15e49d('0x1a')](respondWithResult(_0x292996,null))[_0x15e49d('0x49')](handleError(_0x292996,null));},exports['create']=function(_0x1ffa68,_0x325303){const _0x2931ae=_0x4e4f52;return db['SmsQueue'][_0x2931ae('0x62')](_0x1ffa68['body'],{})[_0x2931ae('0x1a')](function(_0x3f21f1){const _0x2a33ec=_0x2931ae,_0x1168fa=_0x1ffa68[_0x2a33ec('0x69')][_0x2a33ec('0xb')]({'plain':!![]});if(!_0x1168fa)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x1168fa['role']==='user'){const _0xef6eec=_0x3f21f1[_0x2a33ec('0xb')]({'plain':!![]}),_0x3d9383=_0x2a33ec('0x47');return db[_0x2a33ec('0x32')]['findOne']({'where':{'name':_0x3d9383,'userProfileId':_0x1168fa[_0x2a33ec('0x34')]},'raw':!![]})[_0x2a33ec('0x1a')](function(_0x205939){const _0x8f423d=_0x2a33ec;return _0x205939&&_0x205939[_0x8f423d('0x6c')]===0x0?db['UserProfileResource'][_0x8f423d('0x62')]({'name':_0xef6eec[_0x8f423d('0x42')],'resourceId':_0xef6eec['id'],'type':_0x205939[_0x8f423d('0x42')],'sectionId':_0x205939['id']},{})['then'](function(){return _0x3f21f1;}):_0x3f21f1;})[_0x2a33ec('0x49')](function(_0x3a81ff){const _0x29678a=_0x2a33ec;logger[_0x29678a('0x43')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3a81ff);throw _0x3a81ff;});}return _0x3f21f1;})[_0x2931ae('0x1a')](respondWithResult(_0x325303,0xc9))[_0x2931ae('0x49')](handleError(_0x325303,null));},exports['update']=function(_0x247d47,_0x35ff06){const _0x1e63f1=_0x4e4f52;return _0x247d47[_0x1e63f1('0x37')]['id']&&delete _0x247d47[_0x1e63f1('0x37')]['id'],db['SmsQueue'][_0x1e63f1('0x15')]({'where':{'id':_0x247d47[_0x1e63f1('0x48')]['id']}})[_0x1e63f1('0x1a')](handleEntityNotFound(_0x35ff06,null))[_0x1e63f1('0x1a')](saveUpdates(_0x247d47[_0x1e63f1('0x37')],null))['then'](respondWithResult(_0x35ff06,null))[_0x1e63f1('0x49')](handleError(_0x35ff06,null));},exports[_0x4e4f52('0x4e')]=function(_0x38b6ea,_0x3b1110){const _0x29f3c4=_0x4e4f52;return db[_0x29f3c4('0x22')][_0x29f3c4('0x15')]({'where':{'id':_0x38b6ea[_0x29f3c4('0x48')]['id']}})[_0x29f3c4('0x1a')](handleEntityNotFound(_0x3b1110,null))[_0x29f3c4('0x1a')](removeEntity(_0x3b1110,null))[_0x29f3c4('0x49')](handleError(_0x3b1110,null));},exports[_0x4e4f52('0x55')]=function(_0x11cd7f,_0x24d155){const _0x46ebc7=_0x4e4f52;return db[_0x46ebc7('0x22')][_0x46ebc7('0x55')]()[_0x46ebc7('0x1a')](respondWithResult(_0x24d155,null))[_0x46ebc7('0x49')](handleError(_0x24d155,null));},exports['getMembers']=function(_0x5158cc,_0x11b8a2){const _0x473898=_0x4e4f52;let _0x5088b0={'raw':!![],'where':{}};const _0x7a1b2f={};let _0x4c747a;return db['SmsQueue']['findOne']({'where':{'id':_0x5158cc[_0x473898('0x48')]['id']}})[_0x473898('0x1a')](handleEntityNotFound(_0x11b8a2,null))['then'](function(_0x4a2978){const _0x1bb7e4=_0x473898;if(_0x4a2978)return _0x4c747a=_0x4a2978['get']({'plain':!![]}),_0x7a1b2f[_0x1bb7e4('0x2e')]=_['keys'](db['UserSmsQueue'][_0x1bb7e4('0x3d')]),_0x7a1b2f['query']=_['keys'](_0x5158cc[_0x1bb7e4('0x46')]),_0x7a1b2f['filters']=_['intersection'](_0x7a1b2f['model'],_0x7a1b2f[_0x1bb7e4('0x46')]),_0x5088b0[_0x1bb7e4('0x16')]=_[_0x1bb7e4('0x29')](_0x7a1b2f[_0x1bb7e4('0x2e')],qs[_0x1bb7e4('0x10')](_0x5158cc[_0x1bb7e4('0x46')]['fields'])),_0x5088b0[_0x1bb7e4('0x16')]=_0x5088b0['attributes'][_0x1bb7e4('0x41')]?_0x5088b0[_0x1bb7e4('0x16')]:_0x7a1b2f[_0x1bb7e4('0x2e')],typeof _0x5158cc['query'][_0x1bb7e4('0x45')]===_0x1bb7e4('0x2')&&(_0x5088b0[_0x1bb7e4('0x74')]=qs['limit'](_0x5158cc[_0x1bb7e4('0x46')][_0x1bb7e4('0x74')]),_0x5088b0[_0x1bb7e4('0x58')]=qs['offset'](_0x5158cc[_0x1bb7e4('0x46')][_0x1bb7e4('0x58')])),_0x5088b0[_0x1bb7e4('0x8')]=qs[_0x1bb7e4('0x1c')](_0x5158cc[_0x1bb7e4('0x46')][_0x1bb7e4('0x1c')]),_0x5088b0[_0x1bb7e4('0x1')]=qs[_0x1bb7e4('0x30')](_[_0x1bb7e4('0x24')](_0x5158cc[_0x1bb7e4('0x46')],_0x7a1b2f[_0x1bb7e4('0x30')])),_0x5088b0[_0x1bb7e4('0x1')][_0x1bb7e4('0x53')]=_0x4a2978['id'],_0x5158cc[_0x1bb7e4('0x46')]['filter']&&(_0x5088b0['where']=_[_0x1bb7e4('0x38')](_0x5088b0[_0x1bb7e4('0x1')],{[Op['or']]:_['map'](_0x5088b0['attributes'],function(_0x465ce1){const _0x2970a5=_0x1bb7e4,_0x3bfecc={};return _0x3bfecc[_0x465ce1]={[Op['like']]:'%'+_0x5158cc[_0x2970a5('0x46')][_0x2970a5('0x1d')]+'%'},_0x3bfecc;})})),_0x5088b0=_['merge']({},_0x5088b0,_0x5158cc[_0x1bb7e4('0x71')]),db[_0x1bb7e4('0x3')][_0x1bb7e4('0x5a')](_0x5088b0);})[_0x473898('0x1a')](function(_0x30f95a){const _0x263205=_0x473898;if(_0x30f95a)return db[_0x263205('0x3b')][_0x263205('0x28')]({'where':{'id':_['map'](_0x30f95a,_0x263205('0xe')),'role':_0x263205('0x2a')},'attributes':['id','name',_0x263205('0xf'),_0x263205('0x2b'),_0x263205('0x40')]});})[_0x473898('0x1a')](function(_0x5c304d){const _0x2cfa7e=_0x473898;return _0x5c304d?{'count':_0x5c304d['count'],'rows':_[_0x2cfa7e('0x3f')](_0x5c304d[_0x2cfa7e('0x19')],function(_0x110ea4){const _0x77d80=_0x2cfa7e;return{'membername':_0x110ea4[_0x77d80('0x42')],'UserId':_0x110ea4['id'],'queue_name':_0x4c747a['name'],'SmsQueueId':_0x4c747a['id'],'interface':util[_0x77d80('0x4b')](_0x77d80('0x14'),_0x77d80('0x73'),_0x110ea4[_0x77d80('0x42')]),'penalty':0x0,'paused':_0x110ea4[_0x77d80('0xf')],'createdAt':_0x110ea4[_0x77d80('0x40')],'updatedAt':_0x110ea4[_0x77d80('0x2b')]};})}:{'count':0x0,'rows':[]};})[_0x473898('0x1a')](respondWithFilteredResult(_0x11b8a2,_0x5088b0))[_0x473898('0x49')](handleError(_0x11b8a2,null));},exports[_0x4e4f52('0x67')]=function(_0x4df85b,_0x2f61a2){const _0x27ddf4=_0x4e4f52;let _0x3ca711={};const _0x363c79={};let _0x5da040,_0x2e4863;return db[_0x27ddf4('0x22')][_0x27ddf4('0x15')]({'where':{'id':_0x4df85b[_0x27ddf4('0x48')]['id']}})[_0x27ddf4('0x1a')](handleEntityNotFound(_0x2f61a2,null))['then'](function(_0x28fa0b){const _0x2f0423=_0x27ddf4;if(_0x28fa0b)return _0x5da040=_0x28fa0b,_0x363c79[_0x2f0423('0x2e')]=_[_0x2f0423('0x39')](db['Team'][_0x2f0423('0x3d')]),_0x363c79[_0x2f0423('0x46')]=_['keys'](_0x4df85b[_0x2f0423('0x46')]),_0x363c79[_0x2f0423('0x30')]=_[_0x2f0423('0x29')](_0x363c79[_0x2f0423('0x2e')],_0x363c79[_0x2f0423('0x46')]),_0x3ca711[_0x2f0423('0x16')]=_[_0x2f0423('0x29')](_0x363c79['model'],qs[_0x2f0423('0x10')](_0x4df85b['query']['fields'])),_0x3ca711[_0x2f0423('0x16')]=_0x3ca711[_0x2f0423('0x16')][_0x2f0423('0x41')]?_0x3ca711[_0x2f0423('0x16')]:_0x363c79[_0x2f0423('0x2e')],_0x3ca711[_0x2f0423('0x8')]=qs[_0x2f0423('0x1c')](_0x4df85b[_0x2f0423('0x46')][_0x2f0423('0x1c')]),_0x3ca711[_0x2f0423('0x1')]=qs[_0x2f0423('0x30')](_[_0x2f0423('0x24')](_0x4df85b[_0x2f0423('0x46')],_0x363c79[_0x2f0423('0x30')])),_0x4df85b['query']['filter']&&(_0x3ca711[_0x2f0423('0x1')]=_[_0x2f0423('0x38')](_0x3ca711[_0x2f0423('0x1')],{[Op['or']]:_[_0x2f0423('0x3f')](_0x3ca711['attributes'],function(_0x2ef6fb){const _0xff2201=_0x2f0423,_0x2fd025={};return _0x2fd025[_0x2ef6fb]={[Op['like']]:'%'+_0x4df85b[_0xff2201('0x46')][_0xff2201('0x1d')]+'%'},_0x2fd025;})})),_0x3ca711=_[_0x2f0423('0x38')]({},_0x3ca711,_0x4df85b['options']),_0x5da040[_0x2f0423('0x67')](_0x3ca711);})[_0x27ddf4('0x1a')](function(_0x20c6f1){const _0x534a87=_0x27ddf4;if(_0x20c6f1)return _0x2e4863=_0x20c6f1[_0x534a87('0x41')],typeof _0x4df85b['query'][_0x534a87('0x45')]==='undefined'&&(_0x3ca711[_0x534a87('0x74')]=qs['limit'](_0x4df85b[_0x534a87('0x46')][_0x534a87('0x74')]),_0x3ca711[_0x534a87('0x58')]=qs[_0x534a87('0x58')](_0x4df85b[_0x534a87('0x46')][_0x534a87('0x58')])),_0x5da040[_0x534a87('0x67')](_0x3ca711);})[_0x27ddf4('0x1a')](function(_0x1db562){if(_0x1db562)return _0x1db562?{'count':_0x2e4863,'rows':_0x1db562}:null;})[_0x27ddf4('0x1a')](respondWithResult(_0x2f61a2,null))[_0x27ddf4('0x49')](handleError(_0x2f61a2,null));},exports[_0x4e4f52('0x72')]=function(_0x2d9a41,_0x4b2280){const _0x58d43e=_0x4e4f52,_0x425677=_0x2d9a41[_0x58d43e('0x37')][_0x58d43e('0x4d')];return db[_0x58d43e('0x66')]['findAll']({'where':{'id':_0x425677},'attributes':['id'],'include':[{'model':db[_0x58d43e('0x3b')],'as':_0x58d43e('0x44'),'attributes':['id',_0x58d43e('0x42'),_0x58d43e('0x2d'),_0x58d43e('0x7'),_0x58d43e('0x12')],'raw':!![]}]})['then'](function(_0x1f995e){const _0x4708a9=_0x58d43e;if(_0x1f995e){const _0x1a7546=_[_0x4708a9('0x5')](_0x1f995e,function(_0xda72c5){const _0x572f01=_0x4708a9,_0x549092=_0xda72c5[_0x572f01('0xb')]({'plain':!![]});return _0x549092[_0x572f01('0x44')];});return db[_0x4708a9('0x22')][_0x4708a9('0x15')]({'where':{'id':_0x2d9a41[_0x4708a9('0x48')]['id']}})['then'](function(_0x46f897){const _0x4af2bb=_0x4708a9;return db[_0x4af2bb('0x26')][_0x4af2bb('0x1e')](function(_0x414638){const _0x79d06b=_0x4af2bb;return _0x46f897[_0x79d06b('0x72')](_0x425677,{'transaction':_0x414638})[_0x79d06b('0x1a')](function(){return Promise['each'](_0x1a7546,function(_0xca6495){const _0x13024e=a567_0xc542;return db['UserSmsQueue'][_0x13024e('0x18')]({'where':{'UserId':_0xca6495['id'],'SmsQueueId':_0x2d9a41[_0x13024e('0x48')]['id']},'transaction':_0x414638});});})[_0x79d06b('0x1a')](function(){const _0x51acb2=_0x79d06b;_0x1a7546[_0x51acb2('0x27')](function(_0x333609){const _0x26a28d=_0x51acb2;socket[_0x26a28d('0x68')](_0x26a28d('0xd'),{'UserId':_0x333609['id'],'SmsQueueId':_0x46f897['id']});});});});});}})[_0x58d43e('0x1a')](respondWithStatusCode(_0x4b2280,null))[_0x58d43e('0x49')](handleError(_0x4b2280,null));},exports[_0x4e4f52('0x3a')]=function(_0x2d63d0,_0x36bab5){const _0x1d6548=_0x4e4f52;return db[_0x1d6548('0x66')][_0x1d6548('0x5a')]({'where':{'id':_0x2d63d0['query']['ids']},'attributes':['id'],'include':[{'model':db[_0x1d6548('0x3b')],'as':_0x1d6548('0x44'),'attributes':['id'],'raw':!![]}]})[_0x1d6548('0x1a')](handleEntityNotFound(_0x36bab5,null))[_0x1d6548('0x1a')](function(_0x39d8ac){const _0x3dfe54=_0x1d6548,_0x242140=_[_0x3dfe54('0x3f')](_0x39d8ac,'id');let _0x362bd7=[];const _0x2c9131=[],_0xcfafc7=squel[_0x3dfe54('0x56')]();_0xcfafc7['field'](_0x3dfe54('0x2f'))[_0x3dfe54('0xc')](_0x3dfe54('0x57'),'tq')[_0x3dfe54('0x9')](_0x3dfe54('0x52'),'ut','ut.TeamId\x20=\x20tq.TeamId')['where']('SmsQueueId\x20=\x20?',_0x2d63d0[_0x3dfe54('0x48')]['id']);for(let _0x25028c=0x0;_0x25028c<_0x39d8ac[_0x3dfe54('0x41')];_0x25028c+=0x1){const _0x241ff7=_0x39d8ac[_0x25028c];for(let _0x20845f=0x0;_0x20845f<_0x241ff7[_0x3dfe54('0x44')][_0x3dfe54('0x41')];_0x20845f+=0x1){const _0x197828=_0x241ff7[_0x3dfe54('0x44')][_0x20845f],_0x167318=_0xcfafc7[_0x3dfe54('0x0')]();_0x167318[_0x3dfe54('0x1')](_0x3dfe54('0x5f'),_0x197828['id']),_0x2c9131[_0x3dfe54('0x64')](db['sequelize']['query'](_0x167318[_0x3dfe54('0x61')](),{'type':QueryTypes[_0x3dfe54('0x2c')]})[_0x3dfe54('0x1a')](function(_0x30a35f){const _0x4ba8c5=_0x3dfe54;if(_0x30a35f[_0x4ba8c5('0x41')]===0x1)return _0x197828['id'];else{const _0x421888=_[_0x4ba8c5('0x65')](_[_0x4ba8c5('0x3f')](_0x30a35f,_0x4ba8c5('0x33')),function(_0x3c4be0){const _0xf015d5=_0x4ba8c5;return _[_0xf015d5('0x6d')](_0x242140,_0x3c4be0);});if(_0x421888)return _0x197828['id'];}}));}}return Promise[_0x3dfe54('0x63')](_0x2c9131)['then'](function(_0x51b9e2){const _0x2ce581=_0x3dfe54;return _0x362bd7=_(_0x362bd7)[_0x2ce581('0x60')](_0x51b9e2)[_0x2ce581('0x23')]()[_0x2ce581('0x3c')](),db[_0x2ce581('0x22')][_0x2ce581('0x15')]({'where':{'id':_0x2d63d0[_0x2ce581('0x48')]['id']}})[_0x2ce581('0x1a')](function(_0x1f5f81){const _0x3d9d51=_0x2ce581;return db[_0x3d9d51('0x26')][_0x3d9d51('0x1e')](function(_0x123f18){const _0x728531=_0x3d9d51;return _0x1f5f81[_0x728531('0x3a')](_0x2d63d0[_0x728531('0x46')]['ids'],{'transaction':_0x123f18})[_0x728531('0x1a')](function(){const _0x2be69c=_0x728531;if(!_[_0x2be69c('0x4f')](_0x362bd7))return _0x1f5f81[_0x2be69c('0x21')](_0x362bd7,{'transaction':_0x123f18});})['then'](function(){_0x362bd7['forEach'](function(_0x1257e8){const _0x135d36=a567_0xc542;socket[_0x135d36('0x68')]('userSmsQueue:remove',{'UserId':_0x1257e8,'SmsQueueId':_0x1f5f81['id']});});});});});});})[_0x1d6548('0x1a')](respondWithStatusCode(_0x36bab5,null))[_0x1d6548('0x49')](handleError(_0x36bab5,null));},exports['addAgents']=function(_0x4cb28f,_0x54dd67){const _0x57e4e5=_0x4e4f52;return db[_0x57e4e5('0x22')][_0x57e4e5('0x15')]({'where':{'id':_0x4cb28f[_0x57e4e5('0x48')]['id']}})['then'](function(_0x48ca6f){const _0x13d563=_0x57e4e5;if(_0x48ca6f)return _0x48ca6f[_0x13d563('0x35')](_0x4cb28f[_0x13d563('0x37')]['ids'],{'through':_['omit'](_0x4cb28f[_0x13d563('0x37')],['ids','id'])})['then'](function(_0x3aee2a){const _0x1e3f78=_0x13d563;for(let _0x802824=0x0;_0x802824<_0x4cb28f[_0x1e3f78('0x37')][_0x1e3f78('0x4d')]['length'];_0x802824+=0x1){socket[_0x1e3f78('0x68')](_0x1e3f78('0xd'),{'UserId':_0x4cb28f['body'][_0x1e3f78('0x4d')][_0x802824],'SmsQueueId':_0x4cb28f['params']['id']});}return _0x3aee2a;});})[_0x57e4e5('0x1a')](respondWithResult(_0x54dd67,null))[_0x57e4e5('0x49')](handleError(_0x54dd67,null));},exports[_0x4e4f52('0x21')]=function(_0xe39e32,_0x3a0ad7){const _0x57a5fb=_0x4e4f52;return db[_0x57a5fb('0x22')][_0x57a5fb('0x15')]({'where':{'id':_0xe39e32[_0x57a5fb('0x48')]['id']}})['then'](handleEntityNotFound(_0x3a0ad7,null))[_0x57a5fb('0x1a')](function(_0x39ff44){const _0x2e13bd=_0x57a5fb;if(_0x39ff44)return _0x39ff44[_0x2e13bd('0x21')](_0xe39e32['query'][_0x2e13bd('0x4d')])[_0x2e13bd('0x1a')](function(){const _0x507805=_0x2e13bd;if(_[_0x507805('0x36')](_0xe39e32['query'][_0x507805('0x4d')]))for(let _0x324da4=0x0;_0x324da4<_0xe39e32[_0x507805('0x46')][_0x507805('0x4d')]['length'];_0x324da4+=0x1){socket[_0x507805('0x68')](_0x507805('0x13'),{'UserId':Number(_0xe39e32[_0x507805('0x46')][_0x507805('0x4d')][_0x324da4]),'SmsQueueId':Number(_0xe39e32[_0x507805('0x48')]['id'])});}else socket[_0x507805('0x68')]('userSmsQueue:remove',{'UserId':Number(_0xe39e32['query'][_0x507805('0x4d')]),'SmsQueueId':Number(_0xe39e32['params']['id'])});});})[_0x57a5fb('0x1a')](respondWithStatusCode(_0x3a0ad7,null))[_0x57a5fb('0x49')](handleError(_0x3a0ad7,null));},exports[_0x4e4f52('0x5b')]=function(_0x4ddf2a,_0x4b4cdb){const _0x16bcfc=_0x4e4f52;let _0xbb553={};const _0x77e269={};let _0x1d461d,_0x1e339a;return db[_0x16bcfc('0x22')][_0x16bcfc('0x15')]({'where':{'id':_0x4ddf2a[_0x16bcfc('0x48')]['id']}})[_0x16bcfc('0x1a')](handleEntityNotFound(_0x4b4cdb,null))[_0x16bcfc('0x1a')](function(_0x4a86e0){const _0x15a80a=_0x16bcfc;if(_0x4a86e0)return _0x1d461d=_0x4a86e0,_0x77e269[_0x15a80a('0x2e')]=_['keys'](db['User'][_0x15a80a('0x3d')]),_0x77e269[_0x15a80a('0x46')]=_[_0x15a80a('0x39')](_0x4ddf2a[_0x15a80a('0x46')]),_0x77e269[_0x15a80a('0x30')]=_['intersection'](_0x77e269[_0x15a80a('0x2e')],_0x77e269[_0x15a80a('0x46')]),_0xbb553['attributes']=_[_0x15a80a('0x29')](_0x77e269['model'],qs[_0x15a80a('0x10')](_0x4ddf2a[_0x15a80a('0x46')][_0x15a80a('0x10')])),_0xbb553['attributes']=_0xbb553[_0x15a80a('0x16')]['length']?_0xbb553[_0x15a80a('0x16')]:_0x77e269[_0x15a80a('0x2e')],_0xbb553[_0x15a80a('0x8')]=qs[_0x15a80a('0x1c')](_0x4ddf2a[_0x15a80a('0x46')]['sort']),_0xbb553['where']=qs['filters'](_[_0x15a80a('0x24')](_0x4ddf2a['query'],_0x77e269[_0x15a80a('0x30')])),_0x4ddf2a[_0x15a80a('0x46')][_0x15a80a('0x1d')]&&(_0xbb553[_0x15a80a('0x1')]=_[_0x15a80a('0x38')](_0xbb553[_0x15a80a('0x1')],{[Op['or']]:_[_0x15a80a('0x3f')](_0xbb553[_0x15a80a('0x16')],function(_0x435111){const _0x7be6de=_0x15a80a,_0x53662c={};return _0x53662c[_0x435111]={[Op[_0x7be6de('0x1b')]]:'%'+_0x4ddf2a[_0x7be6de('0x46')]['filter']+'%'},_0x53662c;})})),_0xbb553=_[_0x15a80a('0x38')]({},_0xbb553,_0x4ddf2a[_0x15a80a('0x71')]),_0x1d461d['getAgents'](_0xbb553);})['then'](function(_0x1ea2a5){const _0x477ed4=_0x16bcfc;if(_0x1ea2a5)return _0x1e339a=_0x1ea2a5[_0x477ed4('0x41')],typeof _0x4ddf2a['query'][_0x477ed4('0x45')]===_0x477ed4('0x2')&&(_0xbb553[_0x477ed4('0x74')]=qs[_0x477ed4('0x74')](_0x4ddf2a[_0x477ed4('0x46')][_0x477ed4('0x74')]),_0xbb553[_0x477ed4('0x58')]=qs[_0x477ed4('0x58')](_0x4ddf2a[_0x477ed4('0x46')][_0x477ed4('0x58')])),_0x1d461d['getAgents'](_0xbb553);})['then'](function(_0x259dc9){if(_0x259dc9)return _0x259dc9?{'count':_0x1e339a,'rows':_0x259dc9}:null;})['then'](respondWithResult(_0x4b4cdb,null))[_0x16bcfc('0x49')](handleError(_0x4b4cdb,null));}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index e32e3de..a06c188 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a568_0x2b8b=['events','../../mysqldb','update','addHook','remove','SmsQueue','setMaxListeners','exports','emit','save'];(function(_0x166705,_0x2b8bee){const _0x4e365f=function(_0x3bc6a3){while(--_0x3bc6a3){_0x166705['push'](_0x166705['shift']());}};_0x4e365f(++_0x2b8bee);}(a568_0x2b8b,0x79));const a568_0x4e36=function(_0x166705,_0x2b8bee){_0x166705=_0x166705-0x0;let _0x4e365f=a568_0x2b8b[_0x166705];return _0x4e365f;};const _0x303952=a568_0x4e36;'use strict';const EventEmitter=require(_0x303952('0x9')),SmsQueue=require(_0x303952('0x0'))['db'][_0x303952('0x4')],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x303952('0x5')](0x0);const events={'afterCreate':_0x303952('0x8'),'afterUpdate':_0x303952('0x1'),'afterDestroy':_0x303952('0x3')};function emitEvent(_0x3bc6a3){return function(_0x4850b3){const _0x2684f3=a568_0x4e36;SmsQueueEvents[_0x2684f3('0x7')](_0x3bc6a3+':'+_0x4850b3['id'],_0x4850b3),SmsQueueEvents[_0x2684f3('0x7')](_0x3bc6a3,_0x4850b3);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsQueue[_0x303952('0x2')](e,emitEvent(event));}}module[_0x303952('0x6')]=SmsQueueEvents; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.model.js b/server/api/smsQueue/smsQueue.model.js index a9d26da..ffdecb1 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a569_0xd986=['SmsQueue','exports','define'];(function(_0x1b1b62,_0xd9865f){const _0x2e9420=function(_0x19e6a0){while(--_0x19e6a0){_0x1b1b62['push'](_0x1b1b62['shift']());}};_0x2e9420(++_0xd9865f);}(a569_0xd986,0x15f));const a569_0x2e94=function(_0x1b1b62,_0xd9865f){_0x1b1b62=_0x1b1b62-0x0;let _0x2e9420=a569_0xd986[_0x1b1b62];return _0x2e9420;};const _0x55886e=a569_0x2e94;'use strict';const attributes=require('./smsQueue.attributes');module[_0x55886e('0x1')]=function(_0x19e6a0){const _0x1f7af5=_0x55886e,_0x1a533a=_0x19e6a0[_0x1f7af5('0x2')](_0x1f7af5('0x0'),attributes,{'tableName':'sms_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1a533a;}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.rpc.js b/server/api/smsQueue/smsQueue.rpc.js index 5e4ad74..e3ee3f8 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a570_0x24c3=['error','limit','info','model','rpc','catch','map','../../rediscache','../../mysqldb','stringify','message','register','../../config/logger','attributes','ShowSmsQueue','raw','options','where','./smsQueue.socket','findOne','lodash','debug','SmsQueue','findAll','include','GetSmsQueue','then'];(function(_0x3b5bfa,_0x24c338){const _0x544d37=function(_0x951faa){while(--_0x951faa){_0x3b5bfa['push'](_0x3b5bfa['shift']());}};_0x544d37(++_0x24c338);}(a570_0x24c3,0x1cf));const a570_0x544d=function(_0x3b5bfa,_0x24c338){_0x3b5bfa=_0x3b5bfa-0x0;let _0x544d37=a570_0x24c3[_0x3b5bfa];return _0x544d37;};const _0x39a94f=a570_0x544d;'use strict';const _=require(_0x39a94f('0x10')),db=require(_0x39a94f('0x4'))['db'],logger=require(_0x39a94f('0x8'))(_0x39a94f('0x0')),{getSocket}=require(_0x39a94f('0x3')),socket=getSocket();require(_0x39a94f('0xe'))[_0x39a94f('0x7')](socket),exports[_0x39a94f('0x15')]=function(_0x951faa){const _0x1caf41=this;return new Promise(function(_0x4051d6,_0x336779){const _0x4d2d88=a570_0x544d;return db[_0x4d2d88('0x12')][_0x4d2d88('0x13')]({'raw':_0x951faa[_0x4d2d88('0xc')]?_0x951faa[_0x4d2d88('0xc')][_0x4d2d88('0xb')]===undefined?!![]:![]:!![],'where':_0x951faa['options']?_0x951faa[_0x4d2d88('0xc')][_0x4d2d88('0xd')]||null:null,'attributes':_0x951faa['options']?_0x951faa[_0x4d2d88('0xc')]['attributes']||null:null,'limit':_0x951faa[_0x4d2d88('0xc')]?_0x951faa[_0x4d2d88('0xc')][_0x4d2d88('0x18')]||null:null,'include':_0x951faa[_0x4d2d88('0xc')]?_0x951faa[_0x4d2d88('0xc')][_0x4d2d88('0x14')]?_[_0x4d2d88('0x2')](_0x951faa[_0x4d2d88('0xc')][_0x4d2d88('0x14')],function(_0x4b6365){const _0x1f8043=_0x4d2d88;return{'model':db[_0x4b6365[_0x1f8043('0x1a')]],'as':_0x4b6365['as'],'attributes':_0x4b6365[_0x1f8043('0x9')],'include':_0x4b6365[_0x1f8043('0x14')]?_[_0x1f8043('0x2')](_0x4b6365['include'],function(_0x551b74){const _0x12d6d6=_0x1f8043;return{'model':db[_0x551b74[_0x12d6d6('0x1a')]],'as':_0x551b74['as'],'attributes':_0x551b74[_0x12d6d6('0x9')],'include':_0x551b74[_0x12d6d6('0x14')]?_[_0x12d6d6('0x2')](_0x551b74['include'],function(_0x16b944){const _0x2a893a=_0x12d6d6;return{'model':db[_0x16b944[_0x2a893a('0x1a')]],'as':_0x16b944['as'],'attributes':_0x16b944[_0x2a893a('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x26005f){const _0xc885ac=_0x4d2d88;logger[_0xc885ac('0x19')](_0xc885ac('0x15'),_0x951faa),logger[_0xc885ac('0x11')](_0xc885ac('0x15'),_0x951faa,JSON[_0xc885ac('0x5')](_0x26005f)),_0x4051d6(_0x26005f);})['catch'](function(_0x395614){const _0x421046=_0x4d2d88;logger[_0x421046('0x17')](_0x421046('0x15'),_0x395614[_0x421046('0x6')],_0x951faa),_0x336779(_0x1caf41[_0x421046('0x17')](0x1f4,_0x395614['message']));});});},exports['ShowSmsQueue']=function(_0x55695f){const _0x127b7e=this;return new Promise(function(_0xadaa33,_0x2494f2){const _0x5cca68=a570_0x544d;return db[_0x5cca68('0x12')][_0x5cca68('0xf')]({'raw':_0x55695f['options']?_0x55695f['options'][_0x5cca68('0xb')]===undefined?!![]:![]:!![],'where':_0x55695f[_0x5cca68('0xc')]?_0x55695f[_0x5cca68('0xc')]['where']||null:null,'attributes':_0x55695f[_0x5cca68('0xc')]?_0x55695f[_0x5cca68('0xc')][_0x5cca68('0x9')]||null:null,'include':_0x55695f[_0x5cca68('0xc')]?_0x55695f[_0x5cca68('0xc')][_0x5cca68('0x14')]?_[_0x5cca68('0x2')](_0x55695f[_0x5cca68('0xc')][_0x5cca68('0x14')],function(_0xa85db8){const _0x166b26=_0x5cca68;return{'model':db[_0xa85db8[_0x166b26('0x1a')]],'as':_0xa85db8['as'],'attributes':_0xa85db8['attributes'],'include':_0xa85db8[_0x166b26('0x14')]?_[_0x166b26('0x2')](_0xa85db8[_0x166b26('0x14')],function(_0x2fdb2f){const _0x144665=_0x166b26;return{'model':db[_0x2fdb2f['model']],'as':_0x2fdb2f['as'],'attributes':_0x2fdb2f[_0x144665('0x9')],'include':_0x2fdb2f[_0x144665('0x14')]?_[_0x144665('0x2')](_0x2fdb2f[_0x144665('0x14')],function(_0x31275d){const _0x31e75d=_0x144665;return{'model':db[_0x31275d[_0x31e75d('0x1a')]],'as':_0x31275d['as'],'attributes':_0x31275d['attributes']};}):[]};}):[]};}):[]:[]})[_0x5cca68('0x16')](function(_0x319955){const _0x231f2e=_0x5cca68;logger['info'](_0x231f2e('0xa'),_0x55695f),logger[_0x231f2e('0x11')](_0x231f2e('0xa'),_0x55695f,JSON[_0x231f2e('0x5')](_0x319955)),_0xadaa33(_0x319955);})[_0x5cca68('0x1')](function(_0x74de56){const _0x49106e=_0x5cca68;logger['error'](_0x49106e('0xa'),_0x74de56['message'],_0x55695f),_0x2494f2(_0x127b7e[_0x49106e('0x17')](0x1f4,_0x74de56['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index 5979fe3..c3c80ba 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a571_0x1961=['length','register','save','remove','smsQueue:','emit'];(function(_0x19a5e8,_0x19613b){const _0x2b4f2f=function(_0x11b7a2){while(--_0x11b7a2){_0x19a5e8['push'](_0x19a5e8['shift']());}};_0x2b4f2f(++_0x19613b);}(a571_0x1961,0xdb));const a571_0x2b4f=function(_0x19a5e8,_0x19613b){_0x19a5e8=_0x19a5e8-0x0;let _0x2b4f2f=a571_0x1961[_0x19a5e8];return _0x2b4f2f;};const _0x37eb1b=a571_0x2b4f;'use strict';const SmsQueueEvents=require('./smsQueue.events'),events=[_0x37eb1b('0x5'),_0x37eb1b('0x0'),'update'];function createListener(_0x11b7a2,_0x5df6f0){return function(_0x18eaab){const _0x1b1112=a571_0x2b4f;_0x5df6f0[_0x1b1112('0x2')](_0x11b7a2,_0x18eaab);};}exports[_0x37eb1b('0x4')]=function(_0x2327be){const _0x40ba8f=_0x37eb1b;for(let _0xbdb70c=0x0,_0x112a16=events[_0x40ba8f('0x3')];_0xbdb70c<_0x112a16;_0xbdb70c++){const _0x5467c2=events[_0xbdb70c],_0x3fed92=createListener(_0x40ba8f('0x1')+_0x5467c2,_0x2327be);SmsQueueEvents['on'](_0x5467c2,_0x3fed92);}}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index ec34cfb..0ae2f35 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a572_0x4e32=['create','./smsQueueReport.controller','describe','exports','show','put','../../components/auth/service','isAuthenticated','get','/:id','Router','/describe','express','destroy'];(function(_0x3b3762,_0x4e32d2){const _0x3a05c9=function(_0x3feb53){while(--_0x3feb53){_0x3b3762['push'](_0x3b3762['shift']());}};_0x3a05c9(++_0x4e32d2);}(a572_0x4e32,0xd0));const a572_0x3a05=function(_0x3b3762,_0x4e32d2){_0x3b3762=_0x3b3762-0x0;let _0x3a05c9=a572_0x4e32[_0x3b3762];return _0x3a05c9;};const _0x21ef6d=a572_0x3a05;'use strict';const express=require(_0x21ef6d('0x0')),router=express[_0x21ef6d('0xc')](),auth=require(_0x21ef6d('0x8')),controller=require(_0x21ef6d('0x3'));router[_0x21ef6d('0xa')]('/',auth[_0x21ef6d('0x9')](),controller['index']),router[_0x21ef6d('0xa')](_0x21ef6d('0xd'),auth[_0x21ef6d('0x9')](),controller[_0x21ef6d('0x4')]),router[_0x21ef6d('0xa')](_0x21ef6d('0xb'),auth[_0x21ef6d('0x9')](),controller[_0x21ef6d('0x6')]),router['post']('/',auth[_0x21ef6d('0x9')](),controller[_0x21ef6d('0x2')]),router[_0x21ef6d('0x7')](_0x21ef6d('0xb'),auth[_0x21ef6d('0x9')](),controller['update']),router['delete'](_0x21ef6d('0xb'),auth['isAuthenticated'](),controller[_0x21ef6d('0x1')]),module[_0x21ef6d('0x5')]=router; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 5120ca4..6b6ec7d 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a573_0x2b36=['sequelize','DATE','exports','STRING'];(function(_0x483bee,_0x2b365a){const _0x26d0af=function(_0x17284b){while(--_0x17284b){_0x483bee['push'](_0x483bee['shift']());}};_0x26d0af(++_0x2b365a);}(a573_0x2b36,0xf1));const a573_0x26d0=function(_0x483bee,_0x2b365a){_0x483bee=_0x483bee-0x0;let _0x26d0af=a573_0x2b36[_0x483bee];return _0x26d0af;};const _0x3c16db=a573_0x26d0;'use strict';const Sequelize=require(_0x3c16db('0x3'));module[_0x3c16db('0x1')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x3c16db('0x2')]},'joinAt':{'type':Sequelize[_0x3c16db('0x0')]},'leaveAt':{'type':Sequelize[_0x3c16db('0x0')]},'acceptAt':{'type':Sequelize[_0x3c16db('0x0')]},'exitAt':{'type':Sequelize[_0x3c16db('0x0')]},'reason':{'type':Sequelize[_0x3c16db('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index 0b2eea8..54092cc 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a574_0x5f11=['merge','rawAttributes','update','query','params','lodash','name','catch','length','pick','send','nolimit','model','attributes','then','like','index','sendStatus','key','keys','limit','options','map','sequelize','filter','create','SmsQueueReport','json','count','type','intersection','findOne','destroy','error','offset','undefined','status','body','fieldName','set','fields','sort','describe','show','../../config/logger','include','findAll','order','end','stack','where','filters','includeAll','../../components/parsers/qs'];(function(_0xf2e732,_0x5f111d){const _0x3729eb=function(_0x270e63){while(--_0x270e63){_0xf2e732['push'](_0xf2e732['shift']());}};_0x3729eb(++_0x5f111d);}(a574_0x5f11,0x1c6));const a574_0x3729=function(_0xf2e732,_0x5f111d){_0xf2e732=_0xf2e732-0x0;let _0x3729eb=a574_0x5f11[_0xf2e732];return _0x3729eb;};const _0x1e61f2=a574_0x3729;'use strict';const _=require(_0x1e61f2('0x25')),qs=require(_0x1e61f2('0x1f')),logger=require(_0x1e61f2('0x16'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x1e61f2('0x1'));function respondWithResult(_0x270e63,_0x5e1de1){return _0x5e1de1=_0x5e1de1||0xc8,function(_0xe5b7b){const _0x38cf85=a574_0x3729;if(_0xe5b7b)return _0x270e63[_0x38cf85('0xe')](_0x5e1de1)[_0x38cf85('0x5')](_0xe5b7b);};}function respondWithFilteredResult(_0x48c252,_0x2f209e){return function(_0x31e2f6){const _0x5634be=a574_0x3729;if(_0x31e2f6){const _0xd03e63=_0x31e2f6[_0x5634be('0x6')],_0x52b530=_0x2f209e[_0x5634be('0xc')];let _0x2f4e2c=_0x2f209e[_0x5634be('0xc')]+_0x2f209e[_0x5634be('0x34')],_0x310542;return _0x2f4e2c>=_0xd03e63?(_0x2f4e2c=_0xd03e63,_0x310542=0xc8):_0x310542=0xce,_0x48c252[_0x5634be('0xe')](_0x310542),_0x48c252[_0x5634be('0x11')]('Content-Range',_0x52b530+'-'+_0x2f4e2c+'/'+_0xd03e63)[_0x5634be('0x5')](_0x31e2f6);}return null;};}function saveUpdates(_0x3088c5){return function(_0x156cec){const _0x1db3f5=a574_0x3729;if(_0x156cec)return _0x156cec[_0x1db3f5('0x22')](_0x3088c5)['then'](function(_0x38dfe0){return _0x38dfe0;});return null;};}function removeEntity(_0x3d2b8b){return function(_0x468366){const _0x2e946d=a574_0x3729;if(_0x468366)return _0x468366[_0x2e946d('0xa')]()[_0x2e946d('0x2e')](function(){const _0x2f74a7=_0x2e946d;_0x3d2b8b['status'](0xcc)[_0x2f74a7('0x1a')]();});};}function handleEntityNotFound(_0xaa09ed){return function(_0x739289){const _0xe6bae7=a574_0x3729;return!_0x739289&&_0xaa09ed[_0xe6bae7('0x31')](0x194),_0x739289;};}function handleError(_0x4ab2dc,_0x2409d2){return _0x2409d2=_0x2409d2||0x1f4,function(_0x565206){const _0x26c6ad=a574_0x3729;logger[_0x26c6ad('0xb')](_0x565206[_0x26c6ad('0x1b')]),_0x565206[_0x26c6ad('0x26')]&&delete _0x565206[_0x26c6ad('0x26')],_0x4ab2dc[_0x26c6ad('0xe')](_0x2409d2)[_0x26c6ad('0x2a')](_0x565206);};}exports[_0x1e61f2('0x30')]=function(_0x4410bc,_0x2d8588){const _0x2aa927=_0x1e61f2;let _0x329724={};const _0x4233a1={},_0xcb686d={'count':0x0,'rows':[]},_0xd38a36=_[_0x2aa927('0x0')](db[_0x2aa927('0x4')]['rawAttributes'],function(_0x189b24){const _0xbc7159=_0x2aa927;return{'name':_0x189b24[_0xbc7159('0x10')],'type':_0x189b24[_0xbc7159('0x7')][_0xbc7159('0x32')]};});_0x4233a1[_0x2aa927('0x2c')]=_[_0x2aa927('0x0')](_0xd38a36,'name'),_0x4233a1[_0x2aa927('0x23')]=_[_0x2aa927('0x33')](_0x4410bc['query']),_0x4233a1['filters']=_[_0x2aa927('0x8')](_0x4233a1[_0x2aa927('0x2c')],_0x4233a1['query']),_0x329724[_0x2aa927('0x2d')]=_['intersection'](_0x4233a1['model'],qs[_0x2aa927('0x12')](_0x4410bc[_0x2aa927('0x23')][_0x2aa927('0x12')])),_0x329724[_0x2aa927('0x2d')]=_0x329724['attributes'][_0x2aa927('0x28')]?_0x329724[_0x2aa927('0x2d')]:_0x4233a1[_0x2aa927('0x2c')];typeof _0x4410bc[_0x2aa927('0x23')][_0x2aa927('0x2b')]===_0x2aa927('0xd')&&(_0x329724[_0x2aa927('0x34')]=qs[_0x2aa927('0x34')](_0x4410bc[_0x2aa927('0x23')]['limit']),_0x329724['offset']=qs[_0x2aa927('0xc')](_0x4410bc[_0x2aa927('0x23')]['offset']));_0x329724[_0x2aa927('0x19')]=qs[_0x2aa927('0x13')](_0x4410bc[_0x2aa927('0x23')]['sort']),_0x329724[_0x2aa927('0x1c')]=qs[_0x2aa927('0x1d')](_[_0x2aa927('0x29')](_0x4410bc['query'],_0x4233a1[_0x2aa927('0x1d')]),_0xd38a36);_0x4410bc[_0x2aa927('0x23')][_0x2aa927('0x2')]&&(_0x329724['where']=_['merge'](_0x329724[_0x2aa927('0x1c')],{[Op['or']]:_[_0x2aa927('0x0')](_0xd38a36,function(_0x535a2a){const _0x124d79=_0x2aa927;if(_0x535a2a[_0x124d79('0x7')]!=='VIRTUAL'){const _0x3dade0={};return _0x3dade0[_0x535a2a[_0x124d79('0x26')]]={[Op[_0x124d79('0x2f')]]:'%'+_0x4410bc[_0x124d79('0x23')][_0x124d79('0x2')]+'%'},_0x3dade0;}})}));_0x329724=_[_0x2aa927('0x20')]({},_0x329724,_0x4410bc['options']);const _0x3c1d97={'where':_0x329724[_0x2aa927('0x1c')]};return db[_0x2aa927('0x4')][_0x2aa927('0x6')](_0x3c1d97)['then'](function(_0x3e02ef){const _0xaa26b5=_0x2aa927;return _0xcb686d[_0xaa26b5('0x6')]=_0x3e02ef,_0x4410bc[_0xaa26b5('0x23')][_0xaa26b5('0x1e')]&&(_0x329724[_0xaa26b5('0x17')]=[{'all':!![]}]),db['SmsQueueReport'][_0xaa26b5('0x18')](_0x329724);})[_0x2aa927('0x2e')](function(_0x310328){return _0xcb686d['rows']=_0x310328,_0xcb686d;})['then'](respondWithFilteredResult(_0x2d8588,_0x329724))[_0x2aa927('0x27')](handleError(_0x2d8588,null));},exports[_0x1e61f2('0x15')]=function(_0x9e9c34,_0x2e6d43){const _0xde6ee6=_0x1e61f2;let _0x257e30={'raw':!![],'where':{'id':_0x9e9c34[_0xde6ee6('0x24')]['id']}};const _0x26402a={};return _0x26402a[_0xde6ee6('0x2c')]=_[_0xde6ee6('0x33')](db[_0xde6ee6('0x4')][_0xde6ee6('0x21')]),_0x26402a[_0xde6ee6('0x23')]=_['keys'](_0x9e9c34[_0xde6ee6('0x23')]),_0x26402a[_0xde6ee6('0x1d')]=_[_0xde6ee6('0x8')](_0x26402a['model'],_0x26402a[_0xde6ee6('0x23')]),_0x257e30['attributes']=_[_0xde6ee6('0x8')](_0x26402a[_0xde6ee6('0x2c')],qs[_0xde6ee6('0x12')](_0x9e9c34[_0xde6ee6('0x23')][_0xde6ee6('0x12')])),_0x257e30[_0xde6ee6('0x2d')]=_0x257e30['attributes'][_0xde6ee6('0x28')]?_0x257e30[_0xde6ee6('0x2d')]:_0x26402a['model'],_0x9e9c34[_0xde6ee6('0x23')][_0xde6ee6('0x1e')]&&(_0x257e30[_0xde6ee6('0x17')]=[{'all':!![]}]),_0x257e30=_[_0xde6ee6('0x20')]({},_0x257e30,_0x9e9c34[_0xde6ee6('0x35')]),db[_0xde6ee6('0x4')]['findOne'](_0x257e30)[_0xde6ee6('0x2e')](handleEntityNotFound(_0x2e6d43,null))[_0xde6ee6('0x2e')](respondWithResult(_0x2e6d43,null))[_0xde6ee6('0x27')](handleError(_0x2e6d43,null));},exports[_0x1e61f2('0x3')]=function(_0x41cbac,_0x11d539){const _0x7b669=_0x1e61f2;return db[_0x7b669('0x4')]['create'](_0x41cbac[_0x7b669('0xf')],{})[_0x7b669('0x2e')](respondWithResult(_0x11d539,0xc9))[_0x7b669('0x27')](handleError(_0x11d539,null));},exports[_0x1e61f2('0x22')]=function(_0xb5624c,_0x4df329){const _0x30e302=_0x1e61f2;return _0xb5624c[_0x30e302('0xf')]['id']&&delete _0xb5624c[_0x30e302('0xf')]['id'],db['SmsQueueReport']['findOne']({'where':{'id':_0xb5624c['params']['id']}})[_0x30e302('0x2e')](handleEntityNotFound(_0x4df329,null))[_0x30e302('0x2e')](saveUpdates(_0xb5624c['body'],null))[_0x30e302('0x2e')](respondWithResult(_0x4df329,null))['catch'](handleError(_0x4df329,null));},exports[_0x1e61f2('0xa')]=function(_0x562cee,_0x3b4072){const _0x38faf2=_0x1e61f2;return db[_0x38faf2('0x4')][_0x38faf2('0x9')]({'where':{'id':_0x562cee[_0x38faf2('0x24')]['id']}})[_0x38faf2('0x2e')](handleEntityNotFound(_0x3b4072,null))['then'](removeEntity(_0x3b4072,null))[_0x38faf2('0x27')](handleError(_0x3b4072,null));},exports[_0x1e61f2('0x14')]=function(_0x35b7f1,_0x10384d){const _0x444a6a=_0x1e61f2;return db[_0x444a6a('0x4')][_0x444a6a('0x14')]()[_0x444a6a('0x2e')](respondWithResult(_0x10384d,null))[_0x444a6a('0x27')](handleError(_0x10384d,null));}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index 172d3cd..da0f48a 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a575_0xca3e=['SmsQueueReport','exports','report_sms_queue','uniqueid','./smsQueueReport.attributes'];(function(_0x516beb,_0xca3eea){const _0x4ed35d=function(_0x223915){while(--_0x223915){_0x516beb['push'](_0x516beb['shift']());}};_0x4ed35d(++_0xca3eea);}(a575_0xca3e,0xe3));const a575_0x4ed3=function(_0x516beb,_0xca3eea){_0x516beb=_0x516beb-0x0;let _0x4ed35d=a575_0xca3e[_0x516beb];return _0x4ed35d;};const _0x5994ff=a575_0x4ed3;'use strict';const attributes=require(_0x5994ff('0x2'));module[_0x5994ff('0x4')]=function(_0x223915){const _0x1b366d=_0x5994ff,_0x1efe52=_0x223915['define'](_0x1b366d('0x3'),attributes,{'tableName':_0x1b366d('0x0'),'paranoid':![],'indexes':[{'name':_0x1b366d('0x1'),'fields':[_0x1b366d('0x1')]}],'timestamps':!![]});return _0x1efe52;}; \ No newline at end of file +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 diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index 7489588..efeab37 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a576_0x1f98=['info','raw','then','body','SmsQueueReport','error','debug','attributes','limit','where','create','UpdateSmsQueueReport','CreateSmsQueueReport','rpc','catch','../../config/logger','options','stringify','message'];(function(_0x379e72,_0x1f985a){const _0x19ad27=function(_0x4775a0){while(--_0x4775a0){_0x379e72['push'](_0x379e72['shift']());}};_0x19ad27(++_0x1f985a);}(a576_0x1f98,0x95));const a576_0x19ad=function(_0x379e72,_0x1f985a){_0x379e72=_0x379e72-0x0;let _0x19ad27=a576_0x1f98[_0x379e72];return _0x19ad27;};const _0x1d5433=a576_0x19ad;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x1d5433('0x12'))(_0x1d5433('0x10'));exports[_0x1d5433('0xf')]=function(_0x4775a0){const _0x18aa49=this;return new Promise(function(_0xfc3009,_0x1a95e1){const _0x52a83a=a576_0x19ad;return db[_0x52a83a('0x7')][_0x52a83a('0xd')](_0x4775a0[_0x52a83a('0x6')],{'raw':_0x4775a0[_0x52a83a('0x0')]?_0x4775a0[_0x52a83a('0x0')][_0x52a83a('0x4')]===undefined?!![]:![]:!![]})[_0x52a83a('0x5')](function(_0x4b0726){const _0xa471cd=_0x52a83a;logger[_0xa471cd('0x3')](_0xa471cd('0xf'),_0x4775a0),logger[_0xa471cd('0x9')](_0xa471cd('0xf'),_0x4775a0,JSON[_0xa471cd('0x1')](_0x4b0726)),_0xfc3009(_0x4b0726);})[_0x52a83a('0x11')](function(_0x264361){const _0x12fcd2=_0x52a83a;logger[_0x12fcd2('0x8')](_0x12fcd2('0xf'),_0x264361[_0x12fcd2('0x2')],_0x4775a0),_0x1a95e1(_0x18aa49[_0x12fcd2('0x8')](0x1f4,_0x264361[_0x12fcd2('0x2')]));});});},exports[_0x1d5433('0xe')]=function(_0x484a39){const _0x348d74=this;return new Promise(function(_0x540a68,_0x23f8df){const _0x2c6981=a576_0x19ad;return db['SmsQueueReport']['update'](_0x484a39[_0x2c6981('0x6')],{'raw':_0x484a39['options']?_0x484a39[_0x2c6981('0x0')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x484a39[_0x2c6981('0x0')]?_0x484a39[_0x2c6981('0x0')][_0x2c6981('0xc')]||null:null,'attributes':_0x484a39[_0x2c6981('0x0')]?_0x484a39[_0x2c6981('0x0')][_0x2c6981('0xa')]||null:null,'limit':_0x484a39[_0x2c6981('0x0')]?_0x484a39[_0x2c6981('0x0')][_0x2c6981('0xb')]||null:null})[_0x2c6981('0x5')](function(_0x4afcc4){const _0x3d11ba=_0x2c6981;logger[_0x3d11ba('0x3')](_0x3d11ba('0xe'),_0x484a39),logger[_0x3d11ba('0x9')](_0x3d11ba('0xe'),_0x484a39,JSON[_0x3d11ba('0x1')](_0x4afcc4)),_0x540a68(_0x4afcc4);})[_0x2c6981('0x11')](function(_0x50bc03){const _0x5795af=_0x2c6981;logger[_0x5795af('0x8')](_0x5795af('0xe'),_0x50bc03[_0x5795af('0x2')],_0x484a39),_0x23f8df(_0x348d74[_0x5795af('0x8')](0x1f4,_0x50bc03['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index c8aa7a0..e73a9f8 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a577_0x4a82=['create','exports','express','destroy','put','Router','isAuthenticated','index','get','delete','../../components/auth/service','./smsTransferReport.controller','post','show','/:id'];(function(_0x2ba3e1,_0x4a82af){const _0xe39c1b=function(_0x842a38){while(--_0x842a38){_0x2ba3e1['push'](_0x2ba3e1['shift']());}};_0xe39c1b(++_0x4a82af);}(a577_0x4a82,0x19e));const a577_0xe39c=function(_0x2ba3e1,_0x4a82af){_0x2ba3e1=_0x2ba3e1-0x0;let _0xe39c1b=a577_0x4a82[_0x2ba3e1];return _0xe39c1b;};const _0x62d382=a577_0xe39c;'use strict';const express=require(_0x62d382('0x8')),router=express[_0x62d382('0xb')](),auth=require(_0x62d382('0x1')),controller=require(_0x62d382('0x2'));router[_0x62d382('0xe')]('/',auth[_0x62d382('0xc')](),controller[_0x62d382('0xd')]),router[_0x62d382('0xe')]('/describe',auth[_0x62d382('0xc')](),controller['describe']),router['get']('/:id',auth['isAuthenticated'](),controller[_0x62d382('0x4')]),router[_0x62d382('0x3')]('/',auth['isAuthenticated'](),controller[_0x62d382('0x6')]),router[_0x62d382('0xa')](_0x62d382('0x5'),auth[_0x62d382('0xc')](),controller['update']),router[_0x62d382('0x0')](_0x62d382('0x5'),auth['isAuthenticated'](),controller[_0x62d382('0x9')]),module[_0x62d382('0x7')]=router; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index 6cc8187..7c24a7f 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a578_0x4034=['exports','agent','ENUM','account','NOW','sequelize','queue','STRING'];(function(_0x50f287,_0x40348c){const _0x3fd59c=function(_0x45c4c6){while(--_0x45c4c6){_0x50f287['push'](_0x50f287['shift']());}};_0x3fd59c(++_0x40348c);}(a578_0x4034,0x170));const a578_0x3fd5=function(_0x50f287,_0x40348c){_0x50f287=_0x50f287-0x0;let _0x3fd59c=a578_0x4034[_0x50f287];return _0x3fd59c;};const _0x3bb580=a578_0x3fd5;'use strict';const Sequelize=require(_0x3bb580('0x5'));module[_0x3bb580('0x0')]={'uniqueid':{'type':Sequelize[_0x3bb580('0x7')],'allowNull':![]},'type':{'type':Sequelize[_0x3bb580('0x2')](_0x3bb580('0x3'),_0x3bb580('0x1'),_0x3bb580('0x6')),'allowNull':![],'defaultValue':_0x3bb580('0x6')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize[_0x3bb580('0x4')]}}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index 29297fa..e01034d 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a579_0x13ad=['error','rows','pick','nolimit','sendStatus','fields','findOne','rawAttributes','where','attributes','send','undefined','key','order','sort','length','limit','filters','lodash','name','type','query','../../mysqldb','status','options','body','merge','VIRTUAL','findAll','../../config/logger','Content-Range','params','includeAll','keys','offset','stack','destroy','fieldName','describe','update','create','then','SmsTransferReport','include','count','model','like','catch','intersection','filter','index','json'];(function(_0xe2b348,_0x13ad6e){const _0x91634e=function(_0x4ad637){while(--_0x4ad637){_0xe2b348['push'](_0xe2b348['shift']());}};_0x91634e(++_0x13ad6e);}(a579_0x13ad,0x1f3));const a579_0x9163=function(_0xe2b348,_0x13ad6e){_0xe2b348=_0xe2b348-0x0;let _0x91634e=a579_0x13ad[_0xe2b348];return _0x91634e;};const _0x422360=a579_0x9163;'use strict';const _=require(_0x422360('0x27')),qs=require('../../components/parsers/qs'),logger=require(_0x422360('0x32'))('api'),db=require(_0x422360('0x2b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4ad637,_0x5e52af){return _0x5e52af=_0x5e52af||0xc8,function(_0x18e533){const _0x4d4e85=a579_0x9163;if(_0x18e533)return _0x4ad637[_0x4d4e85('0x2c')](_0x5e52af)['json'](_0x18e533);};}function respondWithFilteredResult(_0x127ad2,_0x26641e){return function(_0x3b6e90){const _0x2096a4=a579_0x9163;if(_0x3b6e90){const _0x490610=_0x3b6e90[_0x2096a4('0xd')],_0x36cf4a=_0x26641e['offset'];let _0x5f3140=_0x26641e['offset']+_0x26641e['limit'],_0x1d5475;return _0x5f3140>=_0x490610?(_0x5f3140=_0x490610,_0x1d5475=0xc8):_0x1d5475=0xce,_0x127ad2['status'](_0x1d5475),_0x127ad2['set'](_0x2096a4('0x33'),_0x36cf4a+'-'+_0x5f3140+'/'+_0x490610)[_0x2096a4('0x14')](_0x3b6e90);}return null;};}function saveUpdates(_0x170dee){return function(_0x9ee155){const _0x12f4a7=a579_0x9163;if(_0x9ee155)return _0x9ee155['update'](_0x170dee)[_0x12f4a7('0xa')](function(_0x577b36){return _0x577b36;});return null;};}function removeEntity(_0x31debc){return function(_0x18c4cb){const _0x1c8fb3=a579_0x9163;if(_0x18c4cb)return _0x18c4cb['destroy']()[_0x1c8fb3('0xa')](function(){const _0x1fa234=_0x1c8fb3;_0x31debc[_0x1fa234('0x2c')](0xcc)['end']();});};}function handleEntityNotFound(_0x2d4800){return function(_0x15f9b3){const _0x38d800=a579_0x9163;return!_0x15f9b3&&_0x2d4800[_0x38d800('0x19')](0x194),_0x15f9b3;};}function handleError(_0x331b47,_0x5ba837){return _0x5ba837=_0x5ba837||0x1f4,function(_0x4e1931){const _0x171975=a579_0x9163;logger[_0x171975('0x15')](_0x4e1931[_0x171975('0x4')]),_0x4e1931['name']&&delete _0x4e1931[_0x171975('0x28')],_0x331b47[_0x171975('0x2c')](_0x5ba837)[_0x171975('0x1f')](_0x4e1931);};}exports[_0x422360('0x13')]=function(_0x33c1cb,_0x17a2f0){const _0x1e1f6c=_0x422360;let _0x9a6848={};const _0x9783d3={},_0xfa50cf={'count':0x0,'rows':[]},_0x3fb99b=_['map'](db['SmsTransferReport']['rawAttributes'],function(_0x3c489f){const _0x24cdc1=a579_0x9163;return{'name':_0x3c489f[_0x24cdc1('0x6')],'type':_0x3c489f[_0x24cdc1('0x29')][_0x24cdc1('0x21')]};});_0x9783d3[_0x1e1f6c('0xe')]=_['map'](_0x3fb99b,_0x1e1f6c('0x28')),_0x9783d3[_0x1e1f6c('0x2a')]=_[_0x1e1f6c('0x2')](_0x33c1cb[_0x1e1f6c('0x2a')]),_0x9783d3['filters']=_['intersection'](_0x9783d3['model'],_0x9783d3[_0x1e1f6c('0x2a')]),_0x9a6848[_0x1e1f6c('0x1e')]=_[_0x1e1f6c('0x11')](_0x9783d3[_0x1e1f6c('0xe')],qs[_0x1e1f6c('0x1a')](_0x33c1cb[_0x1e1f6c('0x2a')]['fields'])),_0x9a6848[_0x1e1f6c('0x1e')]=_0x9a6848['attributes'][_0x1e1f6c('0x24')]?_0x9a6848[_0x1e1f6c('0x1e')]:_0x9783d3['model'];typeof _0x33c1cb['query'][_0x1e1f6c('0x18')]===_0x1e1f6c('0x20')&&(_0x9a6848['limit']=qs['limit'](_0x33c1cb[_0x1e1f6c('0x2a')][_0x1e1f6c('0x25')]),_0x9a6848[_0x1e1f6c('0x3')]=qs['offset'](_0x33c1cb[_0x1e1f6c('0x2a')]['offset']));_0x9a6848[_0x1e1f6c('0x22')]=qs['sort'](_0x33c1cb[_0x1e1f6c('0x2a')][_0x1e1f6c('0x23')]),_0x9a6848[_0x1e1f6c('0x1d')]=qs[_0x1e1f6c('0x26')](_[_0x1e1f6c('0x17')](_0x33c1cb[_0x1e1f6c('0x2a')],_0x9783d3[_0x1e1f6c('0x26')]),_0x3fb99b);_0x33c1cb['query']['filter']&&(_0x9a6848[_0x1e1f6c('0x1d')]=_[_0x1e1f6c('0x2f')](_0x9a6848[_0x1e1f6c('0x1d')],{[Op['or']]:_['map'](_0x3fb99b,function(_0x9e6c16){const _0x5a1e14=_0x1e1f6c;if(_0x9e6c16['type']!==_0x5a1e14('0x30')){const _0x5ceb9c={};return _0x5ceb9c[_0x9e6c16[_0x5a1e14('0x28')]]={[Op[_0x5a1e14('0xf')]]:'%'+_0x33c1cb[_0x5a1e14('0x2a')][_0x5a1e14('0x12')]+'%'},_0x5ceb9c;}})}));_0x9a6848=_[_0x1e1f6c('0x2f')]({},_0x9a6848,_0x33c1cb[_0x1e1f6c('0x2d')]);const _0x2bdefc={'where':_0x9a6848[_0x1e1f6c('0x1d')]};return db[_0x1e1f6c('0xb')][_0x1e1f6c('0xd')](_0x2bdefc)[_0x1e1f6c('0xa')](function(_0x4fdcee){const _0x468cba=_0x1e1f6c;return _0xfa50cf[_0x468cba('0xd')]=_0x4fdcee,_0x33c1cb[_0x468cba('0x2a')][_0x468cba('0x1')]&&(_0x9a6848[_0x468cba('0xc')]=[{'all':!![]}]),db[_0x468cba('0xb')][_0x468cba('0x31')](_0x9a6848);})['then'](function(_0xffdfbc){const _0x27fd17=_0x1e1f6c;return _0xfa50cf[_0x27fd17('0x16')]=_0xffdfbc,_0xfa50cf;})[_0x1e1f6c('0xa')](respondWithFilteredResult(_0x17a2f0,_0x9a6848))[_0x1e1f6c('0x10')](handleError(_0x17a2f0,null));},exports['show']=function(_0x346736,_0x199fca){const _0x4fb952=_0x422360;let _0x421ddd={'raw':!![],'where':{'id':_0x346736['params']['id']}};const _0x51e0b5={};return _0x51e0b5[_0x4fb952('0xe')]=_[_0x4fb952('0x2')](db[_0x4fb952('0xb')][_0x4fb952('0x1c')]),_0x51e0b5['query']=_['keys'](_0x346736['query']),_0x51e0b5[_0x4fb952('0x26')]=_[_0x4fb952('0x11')](_0x51e0b5[_0x4fb952('0xe')],_0x51e0b5[_0x4fb952('0x2a')]),_0x421ddd[_0x4fb952('0x1e')]=_[_0x4fb952('0x11')](_0x51e0b5[_0x4fb952('0xe')],qs[_0x4fb952('0x1a')](_0x346736[_0x4fb952('0x2a')][_0x4fb952('0x1a')])),_0x421ddd[_0x4fb952('0x1e')]=_0x421ddd['attributes']['length']?_0x421ddd['attributes']:_0x51e0b5[_0x4fb952('0xe')],_0x346736[_0x4fb952('0x2a')][_0x4fb952('0x1')]&&(_0x421ddd['include']=[{'all':!![]}]),_0x421ddd=_[_0x4fb952('0x2f')]({},_0x421ddd,_0x346736[_0x4fb952('0x2d')]),db[_0x4fb952('0xb')]['findOne'](_0x421ddd)[_0x4fb952('0xa')](handleEntityNotFound(_0x199fca,null))[_0x4fb952('0xa')](respondWithResult(_0x199fca,null))[_0x4fb952('0x10')](handleError(_0x199fca,null));},exports[_0x422360('0x9')]=function(_0x47083f,_0x12345c){const _0x3bd6eb=_0x422360;return db[_0x3bd6eb('0xb')][_0x3bd6eb('0x9')](_0x47083f[_0x3bd6eb('0x2e')],{})['then'](respondWithResult(_0x12345c,0xc9))[_0x3bd6eb('0x10')](handleError(_0x12345c,null));},exports[_0x422360('0x8')]=function(_0x12ae70,_0x2bffa4){const _0x2ada22=_0x422360;return _0x12ae70[_0x2ada22('0x2e')]['id']&&delete _0x12ae70[_0x2ada22('0x2e')]['id'],db[_0x2ada22('0xb')][_0x2ada22('0x1b')]({'where':{'id':_0x12ae70[_0x2ada22('0x0')]['id']}})[_0x2ada22('0xa')](handleEntityNotFound(_0x2bffa4,null))['then'](saveUpdates(_0x12ae70['body'],null))[_0x2ada22('0xa')](respondWithResult(_0x2bffa4,null))['catch'](handleError(_0x2bffa4,null));},exports[_0x422360('0x5')]=function(_0x5b510d,_0x4dafe1){const _0xb8a8df=_0x422360;return db[_0xb8a8df('0xb')][_0xb8a8df('0x1b')]({'where':{'id':_0x5b510d[_0xb8a8df('0x0')]['id']}})[_0xb8a8df('0xa')](handleEntityNotFound(_0x4dafe1,null))[_0xb8a8df('0xa')](removeEntity(_0x4dafe1,null))['catch'](handleError(_0x4dafe1,null));},exports[_0x422360('0x7')]=function(_0x354b3d,_0x52d1d7){const _0x11eed6=_0x422360;return db[_0x11eed6('0xb')][_0x11eed6('0x7')]()[_0x11eed6('0xa')](respondWithResult(_0x52d1d7,null))[_0x11eed6('0x10')](handleError(_0x52d1d7,null));}; \ No newline at end of file +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 diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index 7b32a16..e981e4f 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a580_0x20d0=['define','uniqueid','SmsTransferReport','report_sms_transfer','./smsTransferReport.attributes'];(function(_0x2559a0,_0x20d0f8){const _0x3f7d76=function(_0x58b80c){while(--_0x58b80c){_0x2559a0['push'](_0x2559a0['shift']());}};_0x3f7d76(++_0x20d0f8);}(a580_0x20d0,0x121));const a580_0x3f7d=function(_0x2559a0,_0x20d0f8){_0x2559a0=_0x2559a0-0x0;let _0x3f7d76=a580_0x20d0[_0x2559a0];return _0x3f7d76;};const _0x38afa3=a580_0x3f7d;'use strict';const attributes=require(_0x38afa3('0x0'));module['exports']=function(_0x58b80c){const _0x3aaf4b=_0x38afa3,_0x18ff0e=_0x58b80c[_0x3aaf4b('0x1')](_0x3aaf4b('0x3'),attributes,{'tableName':_0x3aaf4b('0x4'),'paranoid':![],'indexes':[{'name':_0x3aaf4b('0x2'),'fields':[_0x3aaf4b('0x2')]}],'timestamps':!![]});return _0x18ff0e;}; \ No newline at end of file +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 diff --git a/server/api/sound/index.js b/server/api/sound/index.js index 4bc0fba..fa84ac8 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a581_0x3943=['exports','delete','path','isAuthenticated','index','../../config/environment','diskStorage','/:id','download','get','put','/:id/download','%s-%s%s','post','file','now','originalname','util','extname','join','files/sounds/original/','create','update','express','multer','../../components/auth/service','replace','Router','format'];(function(_0x294a26,_0x394341){const _0x28b538=function(_0x497068){while(--_0x497068){_0x294a26['push'](_0x294a26['shift']());}};_0x28b538(++_0x394341);}(a581_0x3943,0x1c0));const a581_0x28b5=function(_0x294a26,_0x394341){_0x294a26=_0x294a26-0x0;let _0x28b538=a581_0x3943[_0x294a26];return _0x28b538;};const _0x5b0606=a581_0x28b5;'use strict';const multer=require(_0x5b0606('0xb')),util=require(_0x5b0606('0x4')),path=require(_0x5b0606('0x12')),express=require(_0x5b0606('0xa')),router=express[_0x5b0606('0xe')](),auth=require(_0x5b0606('0xc')),config=require(_0x5b0606('0x15')),controller=require('./sound.controller');router[_0x5b0606('0x19')]('/',auth['isAuthenticated'](),controller[_0x5b0606('0x14')]),router['get'](_0x5b0606('0x17'),auth['isAuthenticated'](),controller['show']),router[_0x5b0606('0x19')](_0x5b0606('0x1b'),auth['isAuthenticated'](),controller[_0x5b0606('0x18')]);const upload=multer({'storage':multer[_0x5b0606('0x16')]({'destination':function(_0x497068,_0x3d820d,_0x20d738){const _0x2dea5c=_0x5b0606;_0x20d738(null,path[_0x2dea5c('0x6')](config['root'],_0x2dea5c('0x7')));},'filename':function(_0x3eb538,_0x5cef5c,_0x34e7d1){const _0x28e619=_0x5b0606;_0x5cef5c['originalname']=_0x5cef5c[_0x28e619('0x3')][_0x28e619('0xd')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x34e7d1(null,util[_0x28e619('0xf')](_0x28e619('0x1c'),path['basename'](_0x5cef5c['originalname'],path[_0x28e619('0x5')](_0x5cef5c['originalname'])),Date[_0x28e619('0x2')](),path[_0x28e619('0x5')](_0x5cef5c[_0x28e619('0x3')])));}})});router[_0x5b0606('0x0')]('/',upload['single'](_0x5b0606('0x1')),controller[_0x5b0606('0x8')]),router[_0x5b0606('0x1a')]('/:id',auth[_0x5b0606('0x13')](),controller[_0x5b0606('0x9')]),router[_0x5b0606('0x11')](_0x5b0606('0x17'),auth[_0x5b0606('0x13')](),controller['delete']),module[_0x5b0606('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/sound/sound.attributes.js b/server/api/sound/sound.attributes.js index 2ee73ff..7e88979 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a582_0x453a=['STRING','name','INTEGER','BIGINT','exports','FLOAT'];(function(_0x91f4bf,_0x453a9e){const _0x15c2ac=function(_0x53ac1e){while(--_0x53ac1e){_0x91f4bf['push'](_0x91f4bf['shift']());}};_0x15c2ac(++_0x453a9e);}(a582_0x453a,0x1ed));const a582_0x15c2=function(_0x91f4bf,_0x453a9e){_0x91f4bf=_0x91f4bf-0x0;let _0x15c2ac=a582_0x453a[_0x91f4bf];return _0x15c2ac;};const _0x561df8=a582_0x15c2;'use strict';const Sequelize=require('sequelize');module[_0x561df8('0x3')]={'name':{'type':Sequelize[_0x561df8('0x5')],'unique':_0x561df8('0x0'),'allowNull':![]},'save_name':{'type':Sequelize[_0x561df8('0x5')]},'display_name':{'type':Sequelize[_0x561df8('0x5')],'defaultValue':''},'description':{'type':Sequelize[_0x561df8('0x5')]},'original_format':{'type':Sequelize[_0x561df8('0x5')]},'original_duration':{'type':Sequelize['FLOAT']},'original_sampleCount':{'type':Sequelize['BIGINT']},'original_channelCount':{'type':Sequelize['INTEGER']},'original_bitRate':{'type':Sequelize[_0x561df8('0x2')]},'original_sampleRate':{'type':Sequelize['INTEGER']},'converted_format':{'type':Sequelize[_0x561df8('0x5')]},'converted_duration':{'type':Sequelize[_0x561df8('0x4')]},'converted_sampleCount':{'type':Sequelize['BIGINT']},'converted_channelCount':{'type':Sequelize['INTEGER']},'converted_bitRate':{'type':Sequelize[_0x561df8('0x2')]},'converted_sampleRate':{'type':Sequelize[_0x561df8('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.controller.js b/server/api/sound/sound.controller.js index 5c99a32..6f6999f 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a583_0x62fc=['end','offset','description','../../config/environment','format','include','Content-Range','role','Sounds','fields','converted_bitRate','key','save_name','extname','where','original_channelCount','Sound\x20not\x20found','download','nolimit','merge','findOne','order','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','Sound\x20upload\x20destination:\x20%s','stack','wav','sampleCount','pick','error','sort','server/files/sounds/original','filter','channelCount','basename','path','create','converted_format','rawAttributes','filename','dest','util','VIRTUAL','json','join','Sound','%s.%s','existsSync','../../config/logger','chmodSync','update','original_format','send','fieldName','filters','type','unlinkSync','map','start','file','then','originalname','sampleRate','original_duration','substring','converted_sampleRate','root','count','show','bitRate','includeAll','UserProfileResource','0777','delete','original_sampleRate','duration','userProfileId','intersection','keys','../../mysqldb','model','original_sampleCount','lodash','params','limit','index','UserProfileSection','rows','autoAssociation','sendStatus','catch','length','findAll','name','sox','server/files/sounds/converted','Sound\x20upload\x20filepath:\x20%s','body','query','status','../../components/parsers/qs','destroy'];(function(_0x353331,_0x62fcc5){const _0x39a58d=function(_0x4f1160){while(--_0x4f1160){_0x353331['push'](_0x353331['shift']());}};_0x39a58d(++_0x62fcc5);}(a583_0x62fc,0x1c9));const a583_0x39a5=function(_0x353331,_0x62fcc5){_0x353331=_0x353331-0x0;let _0x39a58d=a583_0x62fc[_0x353331];return _0x39a58d;};const _0x4ac124=a583_0x39a5;'use strict';const util=require(_0x4ac124('0x5e')),path=require(_0x4ac124('0x58')),sox=require(_0x4ac124('0x2d')),fs=require('fs'),_=require(_0x4ac124('0x21')),qs=require(_0x4ac124('0x33')),logger=require(_0x4ac124('0x65'))('api'),config=require(_0x4ac124('0x38')),db=require(_0x4ac124('0x1e'))['db'],{Op,ValidationError}=require('sequelize');function respondWithResult(_0x4f1160,_0x34a8d0){return _0x34a8d0=_0x34a8d0||0xc8,function(_0x1f2b4d){const _0x404132=a583_0x39a5;if(_0x1f2b4d)return _0x4f1160[_0x404132('0x32')](_0x34a8d0)[_0x404132('0x60')](_0x1f2b4d);};}function respondWithFilteredResult(_0x310496,_0x374481){return function(_0x1e76d4){const _0x58b526=a583_0x39a5;if(_0x1e76d4){const _0xe61601=_0x1e76d4[_0x58b526('0x12')],_0x1b2fc7=_0x374481[_0x58b526('0x36')];let _0x2d8224=_0x374481[_0x58b526('0x36')]+_0x374481[_0x58b526('0x23')],_0x4f2eb6;return _0x2d8224>=_0xe61601?(_0x2d8224=_0xe61601,_0x4f2eb6=0xc8):_0x4f2eb6=0xce,_0x310496[_0x58b526('0x32')](_0x4f2eb6),_0x310496['set'](_0x58b526('0x3b'),_0x1b2fc7+'-'+_0x2d8224+'/'+_0xe61601)[_0x58b526('0x60')](_0x1e76d4);}return null;};}function saveUpdates(_0x2f6b0a){return function(_0x334c1d){const _0x41a614=a583_0x39a5;if(_0x334c1d)return _0x334c1d[_0x41a614('0x1')](_0x2f6b0a)[_0x41a614('0xb')](function(_0x58a993){return _0x58a993;});return null;};}function handleEntityNotFound(_0x1bf60e){return function(_0x10094d){const _0x213d52=a583_0x39a5;return!_0x10094d&&_0x1bf60e[_0x213d52('0x28')](0x194),_0x10094d;};}function handleError(_0xa35812,_0x34fd49){return _0x34fd49=_0x34fd49||0x1f4,function(_0x2aa8da){const _0x535187=a583_0x39a5;logger[_0x535187('0x52')](_0x2aa8da[_0x535187('0x4e')]),_0x2aa8da['name']&&delete _0x2aa8da[_0x535187('0x2c')],_0xa35812[_0x535187('0x32')](_0x34fd49)[_0x535187('0x3')](_0x2aa8da);};}exports[_0x4ac124('0x24')]=function(_0x515165,_0x1c3352){const _0x3bb62c=_0x4ac124;let _0x1fb753={};const _0x2e8b90={},_0x953f59={'count':0x0,'rows':[]},_0x1222f0=_[_0x3bb62c('0x8')](db['Sound'][_0x3bb62c('0x5b')],function(_0x296ce3){const _0x49db69=_0x3bb62c;return{'name':_0x296ce3[_0x49db69('0x4')],'type':_0x296ce3[_0x49db69('0x6')][_0x49db69('0x40')]};});_0x2e8b90[_0x3bb62c('0x1f')]=_[_0x3bb62c('0x8')](_0x1222f0,'name'),_0x2e8b90[_0x3bb62c('0x31')]=_[_0x3bb62c('0x1d')](_0x515165['query']),_0x2e8b90[_0x3bb62c('0x5')]=_[_0x3bb62c('0x1c')](_0x2e8b90['model'],_0x2e8b90['query']),_0x1fb753['attributes']=_[_0x3bb62c('0x1c')](_0x2e8b90['model'],qs[_0x3bb62c('0x3e')](_0x515165['query'][_0x3bb62c('0x3e')])),_0x1fb753[_0x3bb62c('0x4c')]=_0x1fb753[_0x3bb62c('0x4c')][_0x3bb62c('0x2a')]?_0x1fb753['attributes']:_0x2e8b90['model'];typeof _0x515165[_0x3bb62c('0x31')][_0x3bb62c('0x47')]==='undefined'&&(_0x1fb753[_0x3bb62c('0x23')]=qs['limit'](_0x515165['query'][_0x3bb62c('0x23')]),_0x1fb753['offset']=qs[_0x3bb62c('0x36')](_0x515165[_0x3bb62c('0x31')][_0x3bb62c('0x36')]));_0x1fb753[_0x3bb62c('0x4a')]=qs['sort'](_0x515165[_0x3bb62c('0x31')][_0x3bb62c('0x53')]),_0x1fb753[_0x3bb62c('0x43')]=qs[_0x3bb62c('0x5')](_[_0x3bb62c('0x51')](_0x515165[_0x3bb62c('0x31')],_0x2e8b90['filters']),_0x1222f0);_0x515165[_0x3bb62c('0x31')][_0x3bb62c('0x55')]&&(_0x1fb753[_0x3bb62c('0x43')]=_[_0x3bb62c('0x48')](_0x1fb753[_0x3bb62c('0x43')],{[Op['or']]:_[_0x3bb62c('0x8')](_0x1222f0,function(_0x35f16f){const _0x190d66=_0x3bb62c;if(_0x35f16f[_0x190d66('0x6')]!==_0x190d66('0x5f')){const _0x4e5868={};return _0x4e5868[_0x35f16f['name']]={[Op['like']]:'%'+_0x515165[_0x190d66('0x31')]['filter']+'%'},_0x4e5868;}})}));_0x1fb753=_['merge']({},_0x1fb753,_0x515165['options']);const _0x26ea81={'where':_0x1fb753[_0x3bb62c('0x43')]};return db[_0x3bb62c('0x62')][_0x3bb62c('0x12')](_0x26ea81)['then'](function(_0x1e05dc){const _0x1db4db=_0x3bb62c;return _0x953f59[_0x1db4db('0x12')]=_0x1e05dc,_0x515165[_0x1db4db('0x31')][_0x1db4db('0x15')]&&(_0x1fb753[_0x1db4db('0x3a')]=[{'all':!![]}]),db[_0x1db4db('0x62')][_0x1db4db('0x2b')](_0x1fb753);})['then'](function(_0x48a3d9){const _0x40aa23=_0x3bb62c;return _0x953f59[_0x40aa23('0x26')]=_0x48a3d9,_0x953f59;})[_0x3bb62c('0xb')](respondWithFilteredResult(_0x1c3352,_0x1fb753))[_0x3bb62c('0x29')](handleError(_0x1c3352,null));},exports[_0x4ac124('0x13')]=function(_0xf05215,_0x5ec402){const _0x634f3a=_0x4ac124;let _0x24a71c={'raw':!![],'where':{'id':_0xf05215[_0x634f3a('0x22')]['id']}};const _0x57e6cb={};return _0x57e6cb[_0x634f3a('0x1f')]=_[_0x634f3a('0x1d')](db[_0x634f3a('0x62')][_0x634f3a('0x5b')]),_0x57e6cb[_0x634f3a('0x31')]=_[_0x634f3a('0x1d')](_0xf05215[_0x634f3a('0x31')]),_0x57e6cb[_0x634f3a('0x5')]=_[_0x634f3a('0x1c')](_0x57e6cb['model'],_0x57e6cb[_0x634f3a('0x31')]),_0x24a71c['attributes']=_[_0x634f3a('0x1c')](_0x57e6cb[_0x634f3a('0x1f')],qs[_0x634f3a('0x3e')](_0xf05215[_0x634f3a('0x31')][_0x634f3a('0x3e')])),_0x24a71c[_0x634f3a('0x4c')]=_0x24a71c[_0x634f3a('0x4c')][_0x634f3a('0x2a')]?_0x24a71c[_0x634f3a('0x4c')]:_0x57e6cb[_0x634f3a('0x1f')],_0xf05215[_0x634f3a('0x31')][_0x634f3a('0x15')]&&(_0x24a71c['include']=[{'all':!![]}]),_0x24a71c=_[_0x634f3a('0x48')]({},_0x24a71c,_0xf05215['options']),db[_0x634f3a('0x62')][_0x634f3a('0x49')](_0x24a71c)[_0x634f3a('0xb')](handleEntityNotFound(_0x5ec402,null))[_0x634f3a('0xb')](respondWithResult(_0x5ec402,null))[_0x634f3a('0x29')](handleError(_0x5ec402,null));},exports[_0x4ac124('0x46')]=function(_0x2c15ae,_0x4f4e13){const _0x52cf1b=_0x4ac124;return db[_0x52cf1b('0x62')][_0x52cf1b('0x49')]({'where':{'id':_0x2c15ae['params']['id']},'attributes':[_0x52cf1b('0x2c'),_0x52cf1b('0x41'),_0x52cf1b('0x5a')],'raw':!![]})[_0x52cf1b('0xb')](handleEntityNotFound(_0x4f4e13,null))['then'](function(_0x3ac95a){const _0x4c04d6=_0x52cf1b;if(_0x3ac95a){if(!fs[_0x4c04d6('0x64')](path['join'](config['root'],_0x4c04d6('0x2e'),_0x3ac95a[_0x4c04d6('0x41')]+'.'+_0x3ac95a[_0x4c04d6('0x5a')])))throw new ValidationError(_0x4c04d6('0x45'));return _0x4f4e13[_0x4c04d6('0x46')](path[_0x4c04d6('0x61')](config[_0x4c04d6('0x11')],_0x4c04d6('0x2e'),util[_0x4c04d6('0x39')](_0x4c04d6('0x63'),_0x3ac95a[_0x4c04d6('0x41')],_0x3ac95a[_0x4c04d6('0x5a')])),util['format'](_0x4c04d6('0x63'),_0x3ac95a[_0x4c04d6('0x2c')],_0x3ac95a[_0x4c04d6('0x5a')]));}return null;})['catch'](handleError(_0x4f4e13,null));},exports[_0x4ac124('0x59')]=function(_0x25aaa3,_0x416656){const _0x407b02=_0x4ac124,_0x11247d={'name':path[_0x407b02('0x57')](_0x25aaa3[_0x407b02('0xa')][_0x407b02('0xc')],path[_0x407b02('0x42')](_0x25aaa3['file'][_0x407b02('0xc')])),'save_name':path[_0x407b02('0x57')](_0x25aaa3[_0x407b02('0xa')][_0x407b02('0x5c')],path[_0x407b02('0x42')](_0x25aaa3[_0x407b02('0xa')][_0x407b02('0x5c')])),'original_format':path['extname'](_0x25aaa3[_0x407b02('0xa')]['originalname'])[_0x407b02('0xf')](0x1),'converted_format':'wav'},_0x31ea5b=path[_0x407b02('0x61')](config[_0x407b02('0x11')],_0x407b02('0x54'),_0x25aaa3['file'][_0x407b02('0x5c')]),_0x5e0600=path['join'](config[_0x407b02('0x11')],_0x407b02('0x2e'),util[_0x407b02('0x39')](_0x407b02('0x63'),path['basename'](_0x25aaa3[_0x407b02('0xa')][_0x407b02('0x5c')],path[_0x407b02('0x42')](_0x25aaa3[_0x407b02('0xa')][_0x407b02('0x5c')])),_0x11247d[_0x407b02('0x5a')]));logger['info'](_0x407b02('0x2f'),_0x31ea5b),logger['info'](_0x407b02('0x4d'),_0x5e0600);try{fs[_0x407b02('0x0')](_0x31ea5b,parseInt(_0x407b02('0x17'),0x8));const _0x4d8d0e=sox['transcode'](_0x31ea5b,_0x5e0600,{'sampleRate':0x1f40,'format':_0x407b02('0x4f'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x4d8d0e['on'](_0x407b02('0x52'),function(_0x519add){const _0x168fcb=_0x407b02;fs[_0x168fcb('0x7')](_0x31ea5b),_0x416656[_0x168fcb('0x32')](0x1f4)['send'](_0x519add);}),_0x4d8d0e['on']('src',function(_0x23bd43){const _0xd3be6f=_0x407b02;_0x11247d[_0xd3be6f('0xe')]=isNaN(_0x23bd43[_0xd3be6f('0x1a')])?null:_0x23bd43[_0xd3be6f('0x1a')]*0x3e8,_0x11247d[_0xd3be6f('0x20')]=isNaN(_0x23bd43[_0xd3be6f('0x50')])?null:_0x23bd43[_0xd3be6f('0x50')],_0x11247d[_0xd3be6f('0x44')]=isNaN(_0x23bd43[_0xd3be6f('0x56')])?null:_0x23bd43[_0xd3be6f('0x56')],_0x11247d['original_bitRate']=isNaN(_0x23bd43[_0xd3be6f('0x14')])?null:_0x23bd43[_0xd3be6f('0x14')],_0x11247d[_0xd3be6f('0x19')]=isNaN(_0x23bd43[_0xd3be6f('0xd')])?null:_0x23bd43[_0xd3be6f('0xd')];}),_0x4d8d0e['on'](_0x407b02('0x5d'),function(_0x9c967){const _0x3bbfb8=_0x407b02;_0x11247d['converted_duration']=isNaN(_0x9c967[_0x3bbfb8('0x1a')])?null:_0x9c967[_0x3bbfb8('0x1a')]*0x3e8,_0x11247d['converted_sampleCount']=isNaN(_0x9c967[_0x3bbfb8('0x50')])?null:_0x9c967[_0x3bbfb8('0x50')],_0x11247d['converted_channelCount']=isNaN(_0x9c967[_0x3bbfb8('0x56')])?null:_0x9c967['channelCount'],_0x11247d[_0x3bbfb8('0x3f')]=isNaN(_0x9c967['bitRate'])?null:_0x9c967[_0x3bbfb8('0x14')],_0x11247d[_0x3bbfb8('0x10')]=isNaN(_0x9c967['sampleRate'])?null:_0x9c967[_0x3bbfb8('0xd')];}),_0x4d8d0e['on'](_0x407b02('0x35'),function(){const _0x48ab54=_0x407b02;return fs[_0x48ab54('0x0')](_0x5e0600,parseInt(_0x48ab54('0x17'),0x8)),db[_0x48ab54('0x62')][_0x48ab54('0x59')](_0x11247d)[_0x48ab54('0xb')](function(_0x44974a){const _0x188d89=_0x48ab54,_0x2d8698={'role':_0x25aaa3[_0x188d89('0x30')][_0x188d89('0x3c')],'userProfileId':_0x25aaa3[_0x188d89('0x30')]['userProfileId']};if(!_0x2d8698)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2d8698['role']==='user'){const _0x560f02=_0x44974a['get']({'plain':!![]});return db[_0x188d89('0x25')][_0x188d89('0x49')]({'where':{'name':_0x188d89('0x3d'),'userProfileId':_0x2d8698[_0x188d89('0x1b')]},'raw':!![]})[_0x188d89('0xb')](function(_0x195a70){const _0x6eccff=_0x188d89;return _0x195a70&&_0x195a70[_0x6eccff('0x27')]===0x0?db[_0x6eccff('0x16')][_0x6eccff('0x59')]({'name':_0x560f02['name'],'resourceId':_0x560f02['id'],'type':_0x195a70['name'],'sectionId':_0x195a70['id']},{})[_0x6eccff('0xb')](function(){return _0x44974a;}):_0x44974a;})['catch'](function(_0x21455f){const _0x106fe5=_0x188d89;logger[_0x106fe5('0x52')](_0x106fe5('0x4b'),_0x21455f);throw _0x21455f;});}return _0x44974a;})[_0x48ab54('0xb')](respondWithResult(_0x416656,null))['catch'](handleError(_0x416656,null));}),_0x4d8d0e[_0x407b02('0x9')]();}catch(_0x128c8a){_0x416656[_0x407b02('0x32')](0x1f4)[_0x407b02('0x3')](_0x128c8a);}},exports['update']=function(_0x423a84,_0x417bcc){const _0x45a7eb=_0x4ac124;return db['Sound'][_0x45a7eb('0x49')]({'where':{'id':_0x423a84[_0x45a7eb('0x22')]['id']}})[_0x45a7eb('0xb')](handleEntityNotFound(_0x417bcc,null))['then'](saveUpdates(_['pick'](_0x423a84[_0x45a7eb('0x30')],['name',_0x45a7eb('0x37')]),null))[_0x45a7eb('0xb')](respondWithResult(_0x417bcc,null))[_0x45a7eb('0x29')](handleError(_0x417bcc,null));},exports[_0x4ac124('0x18')]=function(_0x3df5bc,_0x18ca3a){const _0xe3bb8c=_0x4ac124;return db[_0xe3bb8c('0x62')][_0xe3bb8c('0x49')]({'where':{'id':_0x3df5bc['params']['id']}})[_0xe3bb8c('0xb')](function(_0x324bae){const _0x1fb04b=_0xe3bb8c;if(_0x324bae)return _0x324bae[_0x1fb04b('0x34')]();})[_0xe3bb8c('0xb')](function(_0x7bf05){const _0x1c6467=_0xe3bb8c,_0x4fab3e=path[_0x1c6467('0x61')](config[_0x1c6467('0x11')],_0x1c6467('0x54'),util[_0x1c6467('0x39')](_0x1c6467('0x63'),_0x7bf05[_0x1c6467('0x41')],_0x7bf05[_0x1c6467('0x2')])),_0x178913=path[_0x1c6467('0x61')](config['root'],_0x1c6467('0x2e'),util['format'](_0x1c6467('0x63'),_0x7bf05[_0x1c6467('0x41')],_0x7bf05['converted_format']));return fs[_0x1c6467('0x7')](_0x4fab3e),fs[_0x1c6467('0x7')](_0x178913),_0x7bf05;})[_0xe3bb8c('0xb')](function(_0x5ca90e){const _0x545904=_0xe3bb8c;if(_0x5ca90e)return _0x18ca3a['status'](0xcc)[_0x545904('0x35')]();})[_0xe3bb8c('0xb')](handleEntityNotFound(_0x18ca3a,null))['catch'](handleError(_0x18ca3a,null));}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index daf1557..6a47107 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a584_0x5e9e=['exports','tools_sounds','Sound','./sound.attributes'];(function(_0x4bcd07,_0x5e9e85){const _0x14cebd=function(_0x44e8a4){while(--_0x44e8a4){_0x4bcd07['push'](_0x4bcd07['shift']());}};_0x14cebd(++_0x5e9e85);}(a584_0x5e9e,0xc3));const a584_0x14ce=function(_0x4bcd07,_0x5e9e85){_0x4bcd07=_0x4bcd07-0x0;let _0x14cebd=a584_0x5e9e[_0x4bcd07];return _0x14cebd;};const _0x3790eb=a584_0x14ce;'use strict';const attributes=require(_0x3790eb('0x0'));module[_0x3790eb('0x1')]=function(_0x44e8a4){const _0x1d2f9b=_0x3790eb,_0x28a96d=_0x44e8a4['define'](_0x1d2f9b('0x3'),attributes,{'tableName':_0x1d2f9b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x28a96d;}; \ No newline at end of file +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 diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index d7e82ed..8868f4a 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a585_0x3a89=['findOne','../../config/logger','options','then','ShowSound','message','include','Sound','model','attributes','info','error','lodash','rpc','raw','debug'];(function(_0x2f395a,_0x3a89d0){const _0x48eb39=function(_0x27ebae){while(--_0x27ebae){_0x2f395a['push'](_0x2f395a['shift']());}};_0x48eb39(++_0x3a89d0);}(a585_0x3a89,0x1b5));const a585_0x48eb=function(_0x2f395a,_0x3a89d0){_0x2f395a=_0x2f395a-0x0;let _0x48eb39=a585_0x3a89[_0x2f395a];return _0x48eb39;};const _0x2f0995=a585_0x48eb;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2f0995('0xc'))(_0x2f0995('0x8')),_=require(_0x2f0995('0x7'));exports[_0x2f0995('0xf')]=function(_0x27ebae){const _0x2ebbcf=this;return new Promise(function(_0x1bfe66,_0x36e042){const _0x1c861a=a585_0x48eb;return db[_0x1c861a('0x2')][_0x1c861a('0xb')]({'raw':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae[_0x1c861a('0xd')][_0x1c861a('0x9')]===undefined?!![]:![]:!![],'where':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae['options']['where']||null:null,'attributes':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae[_0x1c861a('0xd')][_0x1c861a('0x4')]||null:null,'include':_0x27ebae['options']?_0x27ebae['options'][_0x1c861a('0x1')]?_['map'](_0x27ebae['options'][_0x1c861a('0x1')],function(_0x4bf361){const _0x2ee7ac=_0x1c861a;return{'model':db[_0x4bf361[_0x2ee7ac('0x3')]],'as':_0x4bf361['as'],'attributes':_0x4bf361[_0x2ee7ac('0x4')],'include':_0x4bf361['include']?_['map'](_0x4bf361[_0x2ee7ac('0x1')],function(_0x205a97){const _0x52f14c=_0x2ee7ac;return{'model':db[_0x205a97['model']],'as':_0x205a97['as'],'attributes':_0x205a97[_0x52f14c('0x4')],'include':_0x205a97[_0x52f14c('0x1')]?_['map'](_0x205a97[_0x52f14c('0x1')],function(_0x3e442d){const _0x2bc0fa=_0x52f14c;return{'model':db[_0x3e442d[_0x2bc0fa('0x3')]],'as':_0x3e442d['as'],'attributes':_0x3e442d[_0x2bc0fa('0x4')]};}):[]};}):[]};}):[]:[]})[_0x1c861a('0xe')](function(_0x257d1d){const _0x3e6928=_0x1c861a;logger[_0x3e6928('0x5')]('ShowSound',_0x27ebae),logger[_0x3e6928('0xa')]('ShowSound',_0x27ebae,JSON['stringify'](_0x257d1d)),_0x1bfe66(_0x257d1d);})['catch'](function(_0x27ab42){const _0x2e4d0c=_0x1c861a;logger[_0x2e4d0c('0x6')]('ShowSound',_0x27ab42[_0x2e4d0c('0x0')],_0x27ebae),_0x36e042(_0x2ebbcf[_0x2e4d0c('0x6')](0x1f4,_0x27ab42[_0x2e4d0c('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index acef0f5..723c89d 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a586_0x28a5=['../../components/auth/service','get','exports','isAuthenticated','put','index','./squareMessage.controller','show','/:id','update','create','delete','Router','express'];(function(_0x208f18,_0x28a570){const _0xead466=function(_0x42951b){while(--_0x42951b){_0x208f18['push'](_0x208f18['shift']());}};_0xead466(++_0x28a570);}(a586_0x28a5,0x1c3));const a586_0xead4=function(_0x208f18,_0x28a570){_0x208f18=_0x208f18-0x0;let _0xead466=a586_0x28a5[_0x208f18];return _0xead466;};const _0x1b8ff4=a586_0xead4;'use strict';const express=require(_0x1b8ff4('0xa')),router=express[_0x1b8ff4('0x9')](),auth=require(_0x1b8ff4('0xb')),controller=require(_0x1b8ff4('0x3'));router[_0x1b8ff4('0xc')]('/',auth['isAuthenticated'](),controller[_0x1b8ff4('0x2')]),router['get']('/:id',auth[_0x1b8ff4('0x0')](),controller[_0x1b8ff4('0x4')]),router['post']('/',auth[_0x1b8ff4('0x0')](),controller[_0x1b8ff4('0x7')]),router[_0x1b8ff4('0x1')](_0x1b8ff4('0x5'),auth[_0x1b8ff4('0x0')](),controller[_0x1b8ff4('0x6')]),router[_0x1b8ff4('0x8')](_0x1b8ff4('0x5'),auth['isAuthenticated'](),controller['destroy']),module[_0x1b8ff4('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index 8f559c3..3448c03 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a587_0x8121=['STRING','ENUM','out','medium','exports'];(function(_0x1cce84,_0x81214d){const _0xc80d0c=function(_0x4d7d5d){while(--_0x4d7d5d){_0x1cce84['push'](_0x1cce84['shift']());}};_0xc80d0c(++_0x81214d);}(a587_0x8121,0x137));const a587_0xc80d=function(_0x1cce84,_0x81214d){_0x1cce84=_0x1cce84-0x0;let _0xc80d0c=a587_0x8121[_0x1cce84];return _0xc80d0c;};const _0xb0951d=a587_0xc80d;'use strict';const Sequelize=require('sequelize');module[_0xb0951d('0x3')]={'uniqueid':{'type':Sequelize[_0xb0951d('0x4')]},'body':{'type':Sequelize['TEXT'](_0xb0951d('0x2')),'allowNull':![]},'direction':{'type':Sequelize[_0xb0951d('0x0')]('in',_0xb0951d('0x1')),'defaultValue':_0xb0951d('0x1'),'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index 00a91e4..2782c74 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a588_0x1b91=['merge','SquareMessage','filters','fields','sort','count','params','findAll','intersection','key','length','rawAttributes','pick','body','json','options','offset','update','../../components/parsers/qs','attributes','end','catch','type','../../config/logger','destroy','rows','filter','create','include','map','nolimit','Content-Range','like','undefined','then','query','limit','status','VIRTUAL','where','name','keys','findOne','error','sendStatus','fieldName','model','includeAll','show'];(function(_0x1c3d94,_0x1b91bc){const _0x19077b=function(_0x1da5da){while(--_0x1da5da){_0x1c3d94['push'](_0x1c3d94['shift']());}};_0x19077b(++_0x1b91bc);}(a588_0x1b91,0x147));const a588_0x1907=function(_0x1c3d94,_0x1b91bc){_0x1c3d94=_0x1c3d94-0x0;let _0x19077b=a588_0x1b91[_0x1c3d94];return _0x19077b;};const _0x59cb03=a588_0x1907;'use strict';const _=require('lodash'),qs=require(_0x59cb03('0x22')),logger=require(_0x59cb03('0x27'))('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x1da5da,_0x2b9d6f){return _0x2b9d6f=_0x2b9d6f||0xc8,function(_0xe02e0b){const _0x519984=a588_0x1907;if(_0xe02e0b)return _0x1da5da[_0x519984('0x4')](_0x2b9d6f)[_0x519984('0x1e')](_0xe02e0b);};}function respondWithFilteredResult(_0x2480de,_0x266e08){return function(_0x317b9f){const _0x241630=a588_0x1907;if(_0x317b9f){const _0x1ea587=_0x317b9f[_0x241630('0x15')],_0xacebf6=_0x266e08[_0x241630('0x20')];let _0x15f30d=_0x266e08[_0x241630('0x20')]+_0x266e08['limit'],_0x486501;return _0x15f30d>=_0x1ea587?(_0x15f30d=_0x1ea587,_0x486501=0xc8):_0x486501=0xce,_0x2480de[_0x241630('0x4')](_0x486501),_0x2480de['set'](_0x241630('0x2f'),_0xacebf6+'-'+_0x15f30d+'/'+_0x1ea587)[_0x241630('0x1e')](_0x317b9f);}return null;};}function saveUpdates(_0x23fb23){return function(_0x3d7f0b){const _0x10f330=a588_0x1907;if(_0x3d7f0b)return _0x3d7f0b[_0x10f330('0x21')](_0x23fb23)[_0x10f330('0x1')](function(_0x1d6406){return _0x1d6406;});return null;};}function removeEntity(_0x422205){return function(_0x26749b){const _0x3ea5ac=a588_0x1907;if(_0x26749b)return _0x26749b[_0x3ea5ac('0x28')]()[_0x3ea5ac('0x1')](function(){const _0x2cd8b0=_0x3ea5ac;_0x422205[_0x2cd8b0('0x4')](0xcc)[_0x2cd8b0('0x24')]();});};}function handleEntityNotFound(_0x341c8f){return function(_0x39c995){const _0x5bdea9=a588_0x1907;return!_0x39c995&&_0x341c8f[_0x5bdea9('0xb')](0x194),_0x39c995;};}function handleError(_0x444a62,_0x4c646a){return _0x4c646a=_0x4c646a||0x1f4,function(_0x3690ee){const _0x18c544=a588_0x1907;logger[_0x18c544('0xa')](_0x3690ee['stack']),_0x3690ee[_0x18c544('0x7')]&&delete _0x3690ee['name'],_0x444a62[_0x18c544('0x4')](_0x4c646a)['send'](_0x3690ee);};}exports['index']=function(_0x501d88,_0x348dad){const _0x1fde22=_0x59cb03;let _0x2c64e5={};const _0x22d660={},_0x357b83={'count':0x0,'rows':[]},_0x58ec83=_['map'](db[_0x1fde22('0x11')]['rawAttributes'],function(_0x144491){const _0x112123=_0x1fde22;return{'name':_0x144491[_0x112123('0xc')],'type':_0x144491['type'][_0x112123('0x19')]};});_0x22d660[_0x1fde22('0xd')]=_[_0x1fde22('0x2d')](_0x58ec83,'name'),_0x22d660[_0x1fde22('0x2')]=_['keys'](_0x501d88[_0x1fde22('0x2')]),_0x22d660['filters']=_[_0x1fde22('0x18')](_0x22d660[_0x1fde22('0xd')],_0x22d660[_0x1fde22('0x2')]),_0x2c64e5[_0x1fde22('0x23')]=_[_0x1fde22('0x18')](_0x22d660[_0x1fde22('0xd')],qs['fields'](_0x501d88[_0x1fde22('0x2')][_0x1fde22('0x13')])),_0x2c64e5[_0x1fde22('0x23')]=_0x2c64e5[_0x1fde22('0x23')][_0x1fde22('0x1a')]?_0x2c64e5[_0x1fde22('0x23')]:_0x22d660[_0x1fde22('0xd')];typeof _0x501d88[_0x1fde22('0x2')][_0x1fde22('0x2e')]===_0x1fde22('0x0')&&(_0x2c64e5['limit']=qs[_0x1fde22('0x3')](_0x501d88['query'][_0x1fde22('0x3')]),_0x2c64e5[_0x1fde22('0x20')]=qs['offset'](_0x501d88['query']['offset']));_0x2c64e5['order']=qs[_0x1fde22('0x14')](_0x501d88[_0x1fde22('0x2')][_0x1fde22('0x14')]),_0x2c64e5[_0x1fde22('0x6')]=qs['filters'](_[_0x1fde22('0x1c')](_0x501d88[_0x1fde22('0x2')],_0x22d660['filters']),_0x58ec83);_0x501d88[_0x1fde22('0x2')][_0x1fde22('0x2a')]&&(_0x2c64e5['where']=_[_0x1fde22('0x10')](_0x2c64e5[_0x1fde22('0x6')],{[Op['or']]:_['map'](_0x58ec83,function(_0x36ce4a){const _0x44260f=_0x1fde22;if(_0x36ce4a[_0x44260f('0x26')]!==_0x44260f('0x5')){const _0x5a76e9={};return _0x5a76e9[_0x36ce4a[_0x44260f('0x7')]]={[Op[_0x44260f('0x30')]]:'%'+_0x501d88[_0x44260f('0x2')][_0x44260f('0x2a')]+'%'},_0x5a76e9;}})}));_0x2c64e5=_[_0x1fde22('0x10')]({},_0x2c64e5,_0x501d88[_0x1fde22('0x1f')]);const _0x4f4698={'where':_0x2c64e5['where']};return db[_0x1fde22('0x11')][_0x1fde22('0x15')](_0x4f4698)[_0x1fde22('0x1')](function(_0x234952){const _0x2751b1=_0x1fde22;return _0x357b83[_0x2751b1('0x15')]=_0x234952,_0x501d88[_0x2751b1('0x2')][_0x2751b1('0xe')]&&(_0x2c64e5[_0x2751b1('0x2c')]=[{'all':!![]}]),db[_0x2751b1('0x11')][_0x2751b1('0x17')](_0x2c64e5);})[_0x1fde22('0x1')](function(_0x55b1eb){const _0x47316c=_0x1fde22;return _0x357b83[_0x47316c('0x29')]=_0x55b1eb,_0x357b83;})[_0x1fde22('0x1')](respondWithFilteredResult(_0x348dad,_0x2c64e5))['catch'](handleError(_0x348dad,null));},exports[_0x59cb03('0xf')]=function(_0x2f4288,_0x1da562){const _0x5323d1=_0x59cb03;let _0x3ad096={'raw':!![],'where':{'id':_0x2f4288[_0x5323d1('0x16')]['id']}};const _0x527673={};return _0x527673['model']=_[_0x5323d1('0x8')](db[_0x5323d1('0x11')][_0x5323d1('0x1b')]),_0x527673['query']=_['keys'](_0x2f4288[_0x5323d1('0x2')]),_0x527673[_0x5323d1('0x12')]=_[_0x5323d1('0x18')](_0x527673[_0x5323d1('0xd')],_0x527673[_0x5323d1('0x2')]),_0x3ad096[_0x5323d1('0x23')]=_[_0x5323d1('0x18')](_0x527673[_0x5323d1('0xd')],qs[_0x5323d1('0x13')](_0x2f4288[_0x5323d1('0x2')][_0x5323d1('0x13')])),_0x3ad096[_0x5323d1('0x23')]=_0x3ad096['attributes']['length']?_0x3ad096[_0x5323d1('0x23')]:_0x527673['model'],_0x2f4288[_0x5323d1('0x2')][_0x5323d1('0xe')]&&(_0x3ad096[_0x5323d1('0x2c')]=[{'all':!![]}]),_0x3ad096=_['merge']({},_0x3ad096,_0x2f4288[_0x5323d1('0x1f')]),db[_0x5323d1('0x11')][_0x5323d1('0x9')](_0x3ad096)['then'](handleEntityNotFound(_0x1da562,null))[_0x5323d1('0x1')](respondWithResult(_0x1da562,null))['catch'](handleError(_0x1da562,null));},exports[_0x59cb03('0x2b')]=function(_0x39b975,_0xadfc1e){const _0x299ad4=_0x59cb03;return db['SquareMessage'][_0x299ad4('0x2b')](_0x39b975[_0x299ad4('0x1d')],{})[_0x299ad4('0x1')](respondWithResult(_0xadfc1e,0xc9))[_0x299ad4('0x25')](handleError(_0xadfc1e,null));},exports[_0x59cb03('0x21')]=function(_0x54bff0,_0x3cce80){const _0x405d23=_0x59cb03;return _0x54bff0['body']['id']&&delete _0x54bff0[_0x405d23('0x1d')]['id'],db[_0x405d23('0x11')][_0x405d23('0x9')]({'where':{'id':_0x54bff0[_0x405d23('0x16')]['id']}})['then'](handleEntityNotFound(_0x3cce80,null))['then'](saveUpdates(_0x54bff0[_0x405d23('0x1d')],null))[_0x405d23('0x1')](respondWithResult(_0x3cce80,null))[_0x405d23('0x25')](handleError(_0x3cce80,null));},exports[_0x59cb03('0x28')]=function(_0x4219fd,_0x5e1e84){const _0x2609b2=_0x59cb03;return db[_0x2609b2('0x11')][_0x2609b2('0x9')]({'where':{'id':_0x4219fd[_0x2609b2('0x16')]['id']}})['then'](handleEntityNotFound(_0x5e1e84,null))[_0x2609b2('0x1')](removeEntity(_0x5e1e84,null))[_0x2609b2('0x25')](handleError(_0x5e1e84,null));}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index ed97831..89befd3 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a589_0x2330=['SquareMessage','square_messages','./squareMessage.attributes','define'];(function(_0x2a6dcb,_0x233035){const _0x24367f=function(_0xf9294){while(--_0xf9294){_0x2a6dcb['push'](_0x2a6dcb['shift']());}};_0x24367f(++_0x233035);}(a589_0x2330,0x162));const a589_0x2436=function(_0x2a6dcb,_0x233035){_0x2a6dcb=_0x2a6dcb-0x0;let _0x24367f=a589_0x2330[_0x2a6dcb];return _0x24367f;};const _0x56a384=a589_0x2436;'use strict';const attributes=require(_0x56a384('0x0'));module['exports']=function(_0xf9294){const _0x5e88f6=_0x56a384,_0x37364c=_0xf9294[_0x5e88f6('0x1')](_0x5e88f6('0x2'),attributes,{'tableName':_0x5e88f6('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x37364c;}; \ No newline at end of file +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 diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index 2f947c5..826808a 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a590_0x482b=['CreateSquareMessage','rpc','debug','info','then','create','raw','options','stringify','message','../../config/logger','body','error'];(function(_0x3d5cff,_0x482bb6){const _0x47294a=function(_0xa3fcad){while(--_0xa3fcad){_0x3d5cff['push'](_0x3d5cff['shift']());}};_0x47294a(++_0x482bb6);}(a590_0x482b,0xe9));const a590_0x4729=function(_0x3d5cff,_0x482bb6){_0x3d5cff=_0x3d5cff-0x0;let _0x47294a=a590_0x482b[_0x3d5cff];return _0x47294a;};const _0x501791=a590_0x4729;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x501791('0xb'))(_0x501791('0x2'));exports[_0x501791('0x1')]=function(_0xa3fcad){const _0x15f445=this;return new Promise(function(_0x13fad0,_0x517f4d){const _0x492a1b=a590_0x4729;return db['SquareMessage'][_0x492a1b('0x6')](_0xa3fcad[_0x492a1b('0xc')],{'raw':_0xa3fcad[_0x492a1b('0x8')]?_0xa3fcad[_0x492a1b('0x8')][_0x492a1b('0x7')]===undefined?!![]:![]:!![]})[_0x492a1b('0x5')](function(_0x1f68e0){const _0x1d52b4=_0x492a1b;logger[_0x1d52b4('0x4')](_0x1d52b4('0x1'),_0xa3fcad),logger[_0x1d52b4('0x3')](_0x1d52b4('0x1'),_0xa3fcad,JSON[_0x1d52b4('0x9')](_0x1f68e0)),_0x13fad0(_0x1f68e0);})['catch'](function(_0x4b0318){const _0xb47cff=_0x492a1b;logger[_0xb47cff('0x0')]('CreateSquareMessage',_0x4b0318[_0xb47cff('0xa')],_0xa3fcad),_0x517f4d(_0x15f445[_0xb47cff('0x0')](0x1f4,_0x4b0318['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index df04131..b77aac8 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a591_0x3f20=['/:id/test','/:id','express','15s','update','create','test','connect-timeout','show','index','isAuthenticated','get','put','post','../../components/auth/service','Router','./squareOdbc.controller','exports'];(function(_0x15c939,_0x3f20eb){const _0x84fb5f=function(_0x1b5118){while(--_0x1b5118){_0x15c939['push'](_0x15c939['shift']());}};_0x84fb5f(++_0x3f20eb);}(a591_0x3f20,0xf5));const a591_0x84fb=function(_0x15c939,_0x3f20eb){_0x15c939=_0x15c939-0x0;let _0x84fb5f=a591_0x3f20[_0x15c939];return _0x84fb5f;};const _0x5b86bc=a591_0x84fb;'use strict';const timeout=require(_0x5b86bc('0xe')),express=require(_0x5b86bc('0x9')),router=express[_0x5b86bc('0x4')](),auth=require(_0x5b86bc('0x3')),controller=require(_0x5b86bc('0x5'));router[_0x5b86bc('0x0')]('/',auth[_0x5b86bc('0x11')](),controller[_0x5b86bc('0x10')]),router[_0x5b86bc('0x0')](_0x5b86bc('0x8'),auth['isAuthenticated'](),controller[_0x5b86bc('0xf')]),router[_0x5b86bc('0x0')](_0x5b86bc('0x7'),auth[_0x5b86bc('0x11')](),timeout(_0x5b86bc('0xa')),controller[_0x5b86bc('0xd')]),router[_0x5b86bc('0x2')]('/',auth[_0x5b86bc('0x11')](),controller[_0x5b86bc('0xc')]),router[_0x5b86bc('0x1')](_0x5b86bc('0x8'),auth['isAuthenticated'](),controller[_0x5b86bc('0xb')]),router['delete'](_0x5b86bc('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x5b86bc('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index 2bd0ad3..38c3244 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a592_0xaf9e=['STRING','exports','sequelize'];(function(_0x17a8b5,_0xaf9e0c){const _0x1580a8=function(_0x398389){while(--_0x398389){_0x17a8b5['push'](_0x17a8b5['shift']());}};_0x1580a8(++_0xaf9e0c);}(a592_0xaf9e,0x71));const a592_0x1580=function(_0x17a8b5,_0xaf9e0c){_0x17a8b5=_0x17a8b5-0x0;let _0x1580a8=a592_0xaf9e[_0x17a8b5];return _0x1580a8;};const _0x3c9738=a592_0x1580;'use strict';const Sequelize=require(_0x3c9738('0x0'));module[_0x3c9738('0x2')]={'name':{'type':Sequelize[_0x3c9738('0x1')],'unique':'name','allowNull':![]},'dsn':{'type':Sequelize[_0x3c9738('0x1')]},'description':{'type':Sequelize[_0x3c9738('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.controller.js b/server/api/squareOdbc/squareOdbc.controller.js index b0ad7b2..8b099e4 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a593_0x30f4=['filter','rows','create','userProfileId','ODBC','findAll','includeAll','limit','include','length','key','closeSync','destroy','like','api','role','stack','name','show','fields','map','count','type','nolimit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rawAttributes','get','SquareOdbc','merge','end','UserProfileResource','sort','offset','findOne','params','model','undefined','sequelize','index','query','attributes','sendStatus','autoAssociation','UserProfileSection','json','odbc','error','status','filters','intersection','body','keys','catch','then','../../mysqldb','send','openSync','user','dsn','update','where'];(function(_0x491ddb,_0x30f458){const _0x1b4df9=function(_0x4b1f97){while(--_0x4b1f97){_0x491ddb['push'](_0x491ddb['shift']());}};_0x1b4df9(++_0x30f458);}(a593_0x30f4,0xcd));const a593_0x1b4d=function(_0x491ddb,_0x30f458){_0x491ddb=_0x491ddb-0x0;let _0x1b4df9=a593_0x30f4[_0x491ddb];return _0x1b4df9;};const _0x2e908d=a593_0x1b4d;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2e908d('0x35')),db=require(_0x2e908d('0x20'))['db'],{Op}=require(_0x2e908d('0xf'));function respondWithResult(_0x4b1f97,_0x267e9d){return _0x267e9d=_0x267e9d||0xc8,function(_0x5b2e99){const _0x1b9fa0=a593_0x1b4d;if(_0x5b2e99)return _0x4b1f97['status'](_0x267e9d)[_0x1b9fa0('0x16')](_0x5b2e99);};}function respondWithFilteredResult(_0x2522e4,_0x211fc1){return function(_0x33a683){const _0x14ef49=a593_0x1b4d;if(_0x33a683){const _0x30c5cf=_0x33a683[_0x14ef49('0x3c')],_0x4848e0=_0x211fc1[_0x14ef49('0xa')];let _0x1c8439=_0x211fc1[_0x14ef49('0xa')]+_0x211fc1['limit'],_0x5dc4da;return _0x1c8439>=_0x30c5cf?(_0x1c8439=_0x30c5cf,_0x5dc4da=0xc8):_0x5dc4da=0xce,_0x2522e4[_0x14ef49('0x19')](_0x5dc4da),_0x2522e4['set']('Content-Range',_0x4848e0+'-'+_0x1c8439+'/'+_0x30c5cf)[_0x14ef49('0x16')](_0x33a683);}return null;};}function saveUpdates(_0x5ee1d9){return function(_0x305c00){const _0x25e4af=a593_0x1b4d;if(_0x305c00)return _0x305c00[_0x25e4af('0x25')](_0x5ee1d9)[_0x25e4af('0x1f')](function(_0x7020ab){return _0x7020ab;});return null;};}function removeEntity(_0x2441cf){return function(_0x3b5f70){const _0x5495a3=a593_0x1b4d;if(_0x3b5f70)return _0x3b5f70[_0x5495a3('0x33')]()[_0x5495a3('0x1f')](function(){const _0x1382f2=_0x5495a3,_0x34bdae=_0x3b5f70['get']({'plain':!![]}),_0x4a74f8=_0x1382f2('0x2b');return db['UserProfileResource']['destroy']({'where':{'type':_0x4a74f8,'resourceId':_0x34bdae['id']}})[_0x1382f2('0x1f')](function(){return _0x3b5f70;});})[_0x5495a3('0x1f')](function(){const _0x197bd9=_0x5495a3;_0x2441cf[_0x197bd9('0x19')](0xcc)[_0x197bd9('0x7')]();});};}function handleEntityNotFound(_0x44ac98){return function(_0xcde4ff){const _0x3b7dc4=a593_0x1b4d;return!_0xcde4ff&&_0x44ac98[_0x3b7dc4('0x13')](0x194),_0xcde4ff;};}function handleError(_0x35f7b2,_0x5a8af9){return _0x5a8af9=_0x5a8af9||0x1f4,function(_0x1d3b15){const _0x5e46f1=a593_0x1b4d;logger[_0x5e46f1('0x18')](_0x1d3b15[_0x5e46f1('0x37')]),_0x1d3b15[_0x5e46f1('0x38')]&&delete _0x1d3b15[_0x5e46f1('0x38')],_0x35f7b2[_0x5e46f1('0x19')](_0x5a8af9)[_0x5e46f1('0x21')](_0x1d3b15);};}exports[_0x2e908d('0x10')]=function(_0x284066,_0x20acd1){const _0x3f19ca=_0x2e908d;let _0x1fe647={};const _0x559e87={},_0x1621ad={'count':0x0,'rows':[]},_0x4e2cce=_[_0x3f19ca('0x3b')](db[_0x3f19ca('0x5')][_0x3f19ca('0x3')],function(_0x240fdc){const _0x1f5c68=_0x3f19ca;return{'name':_0x240fdc['fieldName'],'type':_0x240fdc[_0x1f5c68('0x0')][_0x1f5c68('0x31')]};});_0x559e87[_0x3f19ca('0xd')]=_['map'](_0x4e2cce,_0x3f19ca('0x38')),_0x559e87['query']=_['keys'](_0x284066[_0x3f19ca('0x11')]),_0x559e87[_0x3f19ca('0x1a')]=_[_0x3f19ca('0x1b')](_0x559e87['model'],_0x559e87[_0x3f19ca('0x11')]),_0x1fe647[_0x3f19ca('0x12')]=_[_0x3f19ca('0x1b')](_0x559e87[_0x3f19ca('0xd')],qs['fields'](_0x284066[_0x3f19ca('0x11')][_0x3f19ca('0x3a')])),_0x1fe647['attributes']=_0x1fe647[_0x3f19ca('0x12')][_0x3f19ca('0x30')]?_0x1fe647['attributes']:_0x559e87['model'];typeof _0x284066[_0x3f19ca('0x11')][_0x3f19ca('0x1')]===_0x3f19ca('0xe')&&(_0x1fe647['limit']=qs[_0x3f19ca('0x2e')](_0x284066[_0x3f19ca('0x11')]['limit']),_0x1fe647[_0x3f19ca('0xa')]=qs[_0x3f19ca('0xa')](_0x284066['query'][_0x3f19ca('0xa')]));_0x1fe647['order']=qs[_0x3f19ca('0x9')](_0x284066[_0x3f19ca('0x11')][_0x3f19ca('0x9')]),_0x1fe647[_0x3f19ca('0x26')]=qs[_0x3f19ca('0x1a')](_['pick'](_0x284066[_0x3f19ca('0x11')],_0x559e87[_0x3f19ca('0x1a')]),_0x4e2cce);_0x284066[_0x3f19ca('0x11')]['filter']&&(_0x1fe647[_0x3f19ca('0x26')]=_[_0x3f19ca('0x6')](_0x1fe647[_0x3f19ca('0x26')],{[Op['or']]:_[_0x3f19ca('0x3b')](_0x4e2cce,function(_0x188cc2){const _0x5b2f2d=_0x3f19ca;if(_0x188cc2[_0x5b2f2d('0x0')]!=='VIRTUAL'){const _0x4f82d5={};return _0x4f82d5[_0x188cc2[_0x5b2f2d('0x38')]]={[Op[_0x5b2f2d('0x34')]]:'%'+_0x284066[_0x5b2f2d('0x11')][_0x5b2f2d('0x27')]+'%'},_0x4f82d5;}})}));_0x1fe647=_[_0x3f19ca('0x6')]({},_0x1fe647,_0x284066['options']);const _0x5b7688={'where':_0x1fe647[_0x3f19ca('0x26')]};return db['SquareOdbc']['count'](_0x5b7688)[_0x3f19ca('0x1f')](function(_0x56b243){const _0x4921b5=_0x3f19ca;return _0x1621ad[_0x4921b5('0x3c')]=_0x56b243,_0x284066[_0x4921b5('0x11')][_0x4921b5('0x2d')]&&(_0x1fe647[_0x4921b5('0x2f')]=[{'all':!![]}]),db['SquareOdbc'][_0x4921b5('0x2c')](_0x1fe647);})['then'](function(_0x3299ec){const _0x1f87c5=_0x3f19ca;return _0x1621ad[_0x1f87c5('0x28')]=_0x3299ec,_0x1621ad;})['then'](respondWithFilteredResult(_0x20acd1,_0x1fe647))[_0x3f19ca('0x1e')](handleError(_0x20acd1,null));},exports[_0x2e908d('0x39')]=function(_0x293bee,_0x188d5c){const _0x490539=_0x2e908d;let _0x3be064={'raw':!![],'where':{'id':_0x293bee[_0x490539('0xc')]['id']}};const _0x1cda54={};return _0x1cda54['model']=_[_0x490539('0x1d')](db[_0x490539('0x5')][_0x490539('0x3')]),_0x1cda54[_0x490539('0x11')]=_[_0x490539('0x1d')](_0x293bee[_0x490539('0x11')]),_0x1cda54['filters']=_[_0x490539('0x1b')](_0x1cda54[_0x490539('0xd')],_0x1cda54['query']),_0x3be064[_0x490539('0x12')]=_['intersection'](_0x1cda54[_0x490539('0xd')],qs['fields'](_0x293bee[_0x490539('0x11')]['fields'])),_0x3be064[_0x490539('0x12')]=_0x3be064[_0x490539('0x12')][_0x490539('0x30')]?_0x3be064['attributes']:_0x1cda54[_0x490539('0xd')],_0x293bee[_0x490539('0x11')][_0x490539('0x2d')]&&(_0x3be064[_0x490539('0x2f')]=[{'all':!![]}]),_0x3be064=_[_0x490539('0x6')]({},_0x3be064,_0x293bee['options']),db[_0x490539('0x5')]['findOne'](_0x3be064)[_0x490539('0x1f')](handleEntityNotFound(_0x188d5c,null))['then'](respondWithResult(_0x188d5c,null))[_0x490539('0x1e')](handleError(_0x188d5c,null));},exports[_0x2e908d('0x29')]=function(_0x40c8fd,_0x174c86){const _0x18dfaa=_0x2e908d;return db[_0x18dfaa('0x5')][_0x18dfaa('0x29')](_0x40c8fd[_0x18dfaa('0x1c')],{})[_0x18dfaa('0x1f')](function(_0x5c5a3d){const _0x2da373=_0x18dfaa,_0x5b121a=_0x40c8fd[_0x2da373('0x23')][_0x2da373('0x4')]({'plain':!![]});if(!_0x5b121a)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5b121a[_0x2da373('0x36')]==='user'){const _0x739489=_0x5c5a3d['get']({'plain':!![]}),_0x595bcd='ODBC';return db[_0x2da373('0x15')]['findOne']({'where':{'name':_0x595bcd,'userProfileId':_0x5b121a[_0x2da373('0x2a')]},'raw':!![]})[_0x2da373('0x1f')](function(_0x3e2270){const _0x297439=_0x2da373;return _0x3e2270&&_0x3e2270[_0x297439('0x14')]===0x0?db[_0x297439('0x8')]['create']({'name':_0x739489['name'],'resourceId':_0x739489['id'],'type':_0x3e2270[_0x297439('0x38')],'sectionId':_0x3e2270['id']},{})[_0x297439('0x1f')](function(){return _0x5c5a3d;}):_0x5c5a3d;})['catch'](function(_0x277063){const _0x3cd8b6=_0x2da373;logger['error'](_0x3cd8b6('0x2'),_0x277063);throw _0x277063;});}return _0x5c5a3d;})[_0x18dfaa('0x1f')](respondWithResult(_0x174c86,0xc9))[_0x18dfaa('0x1e')](handleError(_0x174c86,null));},exports[_0x2e908d('0x25')]=function(_0x5966f1,_0x31cb90){const _0xd8764d=_0x2e908d;return _0x5966f1[_0xd8764d('0x1c')]['id']&&delete _0x5966f1[_0xd8764d('0x1c')]['id'],db[_0xd8764d('0x5')]['findOne']({'where':{'id':_0x5966f1[_0xd8764d('0xc')]['id']}})[_0xd8764d('0x1f')](handleEntityNotFound(_0x31cb90,null))[_0xd8764d('0x1f')](saveUpdates(_0x5966f1[_0xd8764d('0x1c')],null))[_0xd8764d('0x1f')](respondWithResult(_0x31cb90,null))[_0xd8764d('0x1e')](handleError(_0x31cb90,null));},exports[_0x2e908d('0x33')]=function(_0x3ad20e,_0x74654e){const _0x30a73a=_0x2e908d;return db[_0x30a73a('0x5')][_0x30a73a('0xb')]({'where':{'id':_0x3ad20e[_0x30a73a('0xc')]['id']}})['then'](handleEntityNotFound(_0x74654e,null))[_0x30a73a('0x1f')](removeEntity(_0x74654e,null))[_0x30a73a('0x1e')](handleError(_0x74654e,null));},exports['test']=function(_0x15f204,_0x1ba50a){const _0x1a0c87=_0x2e908d;return db[_0x1a0c87('0x5')][_0x1a0c87('0xb')]({'where':{'id':_0x15f204[_0x1a0c87('0xc')]['id']},'attributes':['id',_0x1a0c87('0x24')]})['then'](handleEntityNotFound(_0x1ba50a,null))[_0x1a0c87('0x1f')](function(_0x45b9c8){const _0x301202=_0x1a0c87;if(_0x45b9c8){const _0x3779de=require(_0x301202('0x17'))();return _0x3779de[_0x301202('0x22')](_0x45b9c8[_0x301202('0x24')]),_0x3779de[_0x301202('0x32')](),_0x45b9c8;}})[_0x1a0c87('0x1f')](respondWithResult(_0x1ba50a,null))[_0x1a0c87('0x1e')](handleError(_0x1ba50a,null));}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index b9f6fbc..60aeb5c 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a594_0x5ca6=['exports','./squareOdbc.attributes','SquareOdbc','define'];(function(_0xdc4f18,_0x5ca665){const _0x43b793=function(_0x21531e){while(--_0x21531e){_0xdc4f18['push'](_0xdc4f18['shift']());}};_0x43b793(++_0x5ca665);}(a594_0x5ca6,0x11c));const a594_0x43b7=function(_0xdc4f18,_0x5ca665){_0xdc4f18=_0xdc4f18-0x0;let _0x43b793=a594_0x5ca6[_0xdc4f18];return _0x43b793;};const _0xc59b5c=a594_0x43b7;'use strict';const attributes=require(_0xc59b5c('0x1'));module[_0xc59b5c('0x0')]=function(_0x21531e){const _0x98976f=_0xc59b5c,_0x2b0ef3=_0x21531e[_0x98976f('0x3')](_0x98976f('0x2'),attributes,{'tableName':'square_odbc','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2b0ef3;}; \ No newline at end of file +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 diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index 0b0663f..cdc9d71 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a595_0x35c9=['../../config/logger','where','info','ShowSquareOdbc','error','message','debug','lodash','../../mysqldb','catch','map','include','model','findOne','options','attributes'];(function(_0x344d02,_0x35c9de){const _0x33a3c3=function(_0x2983e8){while(--_0x2983e8){_0x344d02['push'](_0x344d02['shift']());}};_0x33a3c3(++_0x35c9de);}(a595_0x35c9,0xeb));const a595_0x33a3=function(_0x344d02,_0x35c9de){_0x344d02=_0x344d02-0x0;let _0x33a3c3=a595_0x35c9[_0x344d02];return _0x33a3c3;};const _0x27889e=a595_0x33a3;'use strict';const db=require(_0x27889e('0xd'))['db'],logger=require(_0x27889e('0x5'))('rpc'),_=require(_0x27889e('0xc'));exports['ShowSquareOdbc']=function(_0x2983e8){const _0x1ad6fe=this;return new Promise(function(_0x3d1ff9,_0x420a99){const _0x4f5e4f=a595_0x33a3;return db['SquareOdbc'][_0x4f5e4f('0x2')]({'raw':_0x2983e8['options']?_0x2983e8['options']['raw']===undefined?!![]:![]:!![],'where':_0x2983e8[_0x4f5e4f('0x3')]?_0x2983e8[_0x4f5e4f('0x3')][_0x4f5e4f('0x6')]||null:null,'attributes':_0x2983e8['options']?_0x2983e8[_0x4f5e4f('0x3')]['attributes']||null:null,'include':_0x2983e8[_0x4f5e4f('0x3')]?_0x2983e8[_0x4f5e4f('0x3')][_0x4f5e4f('0x0')]?_[_0x4f5e4f('0xf')](_0x2983e8[_0x4f5e4f('0x3')][_0x4f5e4f('0x0')],function(_0x12c7f6){const _0x3fe8cc=_0x4f5e4f;return{'model':db[_0x12c7f6['model']],'as':_0x12c7f6['as'],'attributes':_0x12c7f6[_0x3fe8cc('0x4')],'include':_0x12c7f6[_0x3fe8cc('0x0')]?_[_0x3fe8cc('0xf')](_0x12c7f6[_0x3fe8cc('0x0')],function(_0x59cba0){const _0x1514c0=_0x3fe8cc;return{'model':db[_0x59cba0[_0x1514c0('0x1')]],'as':_0x59cba0['as'],'attributes':_0x59cba0['attributes'],'include':_0x59cba0[_0x1514c0('0x0')]?_[_0x1514c0('0xf')](_0x59cba0[_0x1514c0('0x0')],function(_0x494783){const _0x21adff=_0x1514c0;return{'model':db[_0x494783[_0x21adff('0x1')]],'as':_0x494783['as'],'attributes':_0x494783[_0x21adff('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x434c1b){const _0x554395=_0x4f5e4f;logger[_0x554395('0x7')](_0x554395('0x8'),_0x2983e8),logger[_0x554395('0xb')](_0x554395('0x8'),_0x2983e8,JSON['stringify'](_0x434c1b)),_0x3d1ff9(_0x434c1b);})[_0x4f5e4f('0xe')](function(_0x4d0a67){const _0x2d8991=_0x4f5e4f;logger[_0x2d8991('0x9')]('ShowSquareOdbc',_0x4d0a67[_0x2d8991('0xa')],_0x2983e8),_0x420a99(_0x1ad6fe['error'](0x1f4,_0x4d0a67['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index 2e08e78..2866f80 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a596_0x18c6=['post','create','Router','/:id','removeUsers','destroy','delete','index','update','isAuthenticated','/:id/users','get'];(function(_0x532318,_0x18c6e3){const _0x4b04c8=function(_0x48d186){while(--_0x48d186){_0x532318['push'](_0x532318['shift']());}};_0x4b04c8(++_0x18c6e3);}(a596_0x18c6,0xff));const a596_0x4b04=function(_0x532318,_0x18c6e3){_0x532318=_0x532318-0x0;let _0x4b04c8=a596_0x18c6[_0x532318];return _0x4b04c8;};const _0x10113c=a596_0x4b04;'use strict';const express=require('express'),router=express[_0x10113c('0xb')](),auth=require('../../components/auth/service'),controller=require('./squareProject.controller');router[_0x10113c('0x8')]('/',auth[_0x10113c('0x6')](),controller[_0x10113c('0x4')]),router['get'](_0x10113c('0x0'),auth[_0x10113c('0x6')](),controller['show']),router[_0x10113c('0x8')]('/:id/users',auth['isAuthenticated'](),controller['getUsers']),router[_0x10113c('0x9')]('/',auth[_0x10113c('0x6')](),controller[_0x10113c('0xa')]),router[_0x10113c('0x9')](_0x10113c('0x7'),auth['isAuthenticated'](),controller['addUsers']),router['put'](_0x10113c('0x0'),auth[_0x10113c('0x6')](),controller[_0x10113c('0x5')]),router[_0x10113c('0x3')](_0x10113c('0x0'),auth['isAuthenticated'](),controller[_0x10113c('0x2')]),router[_0x10113c('0x3')](_0x10113c('0x7'),auth['isAuthenticated'](),controller[_0x10113c('0x1')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index 9dc7b25..a25c72f 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a597_0x4132=['preproduction','TEXT','exports','BLOB','sequelize','utf8','name','getDataValue','STRING','toString','long'];(function(_0x408ba8,_0x413280){const _0x4b2d77=function(_0x3ec94f){while(--_0x3ec94f){_0x408ba8['push'](_0x408ba8['shift']());}};_0x4b2d77(++_0x413280);}(a597_0x4132,0x7d));const a597_0x4b2d=function(_0x408ba8,_0x413280){_0x408ba8=_0x408ba8-0x0;let _0x4b2d77=a597_0x4132[_0x408ba8];return _0x4b2d77;};const _0x2142bb=a597_0x4b2d;'use strict';const Sequelize=require(_0x2142bb('0x0'));module[_0x2142bb('0x9')]={'name':{'type':Sequelize[_0x2142bb('0x4')],'unique':_0x2142bb('0x2'),'allowNull':![]},'description':{'type':Sequelize['STRING']},'notes':{'type':Sequelize[_0x2142bb('0x8')]},'preproduction':{'type':Sequelize[_0x2142bb('0xa')](_0x2142bb('0x6')),'get':function(){const _0x261bb0=_0x2142bb;if(this['getDataValue'](_0x261bb0('0x7')))return this[_0x261bb0('0x3')](_0x261bb0('0x7'))['toString'](_0x261bb0('0x1'));}},'production':{'type':Sequelize[_0x2142bb('0xa')](_0x2142bb('0x6')),'get':function(){const _0x139ffa=_0x2142bb;if(this[_0x139ffa('0x3')]('production'))return this['getDataValue']('production')[_0x139ffa('0x5')]('utf8');}}}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index 45b88f1..dc07b79 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a598_0x62c6=['lodash','status','./squareProject.socket','user','rows','intersection','ids','stack','role','fieldName','set','register','UserProfileResource','map','userProfileId','rawAttributes','options','then','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','addUsers','includeAll','where','getUsers','UserProfileSection','end','keys','../../rediscache','emit','include','type','userSquareProject:remove','findOne','offset','length','params','filter','removeUsers','sort','key','update','SquareProject','nolimit','error','count','index','sequelize','order','get','model','findAll','SquareProjects','json','sendStatus','limit','catch','body','attributes','Content-Range','name','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','merge','VIRTUAL','isArray','send','destroy','filters','../../config/logger','pick','fields','like','undefined'];(function(_0x22421b,_0x62c66b){const _0x3d21b0=function(_0x4c6f67){while(--_0x4c6f67){_0x22421b['push'](_0x22421b['shift']());}};_0x3d21b0(++_0x62c66b);}(a598_0x62c6,0x147));const a598_0x3d21=function(_0x22421b,_0x62c66b){_0x22421b=_0x22421b-0x0;let _0x3d21b0=a598_0x62c6[_0x22421b];return _0x3d21b0;};const _0xf7d472=a598_0x3d21;'use strict';const _=require(_0xf7d472('0x26')),qs=require('../../components/parsers/qs'),logger=require(_0xf7d472('0x21'))('api'),{getSocket}=require(_0xf7d472('0x41')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0xf7d472('0xb'));require(_0xf7d472('0x28'))[_0xf7d472('0x31')](socket);function respondWithStatusCode(_0x4c6f67,_0x48adee){return _0x48adee=_0x48adee||0xcc,function(_0x12efad){const _0x349166=a598_0x3d21;if(_0x12efad)return _0x4c6f67[_0x349166('0x12')](_0x48adee);return _0x4c6f67[_0x349166('0x27')](_0x48adee)[_0x349166('0x3f')]();};}function respondWithResult(_0x3b52cc,_0x41a953){return _0x41a953=_0x41a953||0xc8,function(_0x39f38e){const _0x356e08=a598_0x3d21;if(_0x39f38e)return _0x3b52cc[_0x356e08('0x27')](_0x41a953)[_0x356e08('0x11')](_0x39f38e);};}function respondWithFilteredResult(_0x39ce92,_0x3dd824){return function(_0x578cab){const _0x233aab=a598_0x3d21;if(_0x578cab){const _0x299c72=_0x578cab['count'],_0x153e13=_0x3dd824[_0x233aab('0x47')];let _0xe80f7b=_0x3dd824[_0x233aab('0x47')]+_0x3dd824[_0x233aab('0x13')],_0x36c78e;return _0xe80f7b>=_0x299c72?(_0xe80f7b=_0x299c72,_0x36c78e=0xc8):_0x36c78e=0xce,_0x39ce92[_0x233aab('0x27')](_0x36c78e),_0x39ce92[_0x233aab('0x30')](_0x233aab('0x17'),_0x153e13+'-'+_0xe80f7b+'/'+_0x299c72)[_0x233aab('0x11')](_0x578cab);}return null;};}function saveUpdates(_0x5b1904){return function(_0x216032){const _0x233504=a598_0x3d21;if(_0x216032)return _0x216032[_0x233504('0x5')](_0x5b1904)['then'](function(_0x5da909){return _0x5da909;});return null;};}function removeEntity(_0x383dc2){return function(_0x3787f9){const _0x9e8a09=a598_0x3d21;if(_0x3787f9)return _0x3787f9['destroy']()[_0x9e8a09('0x37')](function(){const _0x5e72ba=_0x9e8a09,_0x2ecf02=_0x3787f9[_0x5e72ba('0xd')]({'plain':!![]}),_0x324181='SquareProjects';return db[_0x5e72ba('0x32')][_0x5e72ba('0x1f')]({'where':{'type':_0x324181,'resourceId':_0x2ecf02['id']}})[_0x5e72ba('0x37')](function(){return _0x3787f9;});})[_0x9e8a09('0x37')](function(){const _0xae680a=_0x9e8a09;_0x383dc2[_0xae680a('0x27')](0xcc)[_0xae680a('0x3f')]();});};}function handleEntityNotFound(_0x3d7260){return function(_0x4c6fb3){const _0x4893c0=a598_0x3d21;return!_0x4c6fb3&&_0x3d7260[_0x4893c0('0x12')](0x194),_0x4c6fb3;};}function handleError(_0xbda7c6,_0xa09fe8){return _0xa09fe8=_0xa09fe8||0x1f4,function(_0xfb9b7a){const _0x4139ef=a598_0x3d21;logger[_0x4139ef('0x8')](_0xfb9b7a[_0x4139ef('0x2d')]),_0xfb9b7a[_0x4139ef('0x18')]&&delete _0xfb9b7a['name'],_0xbda7c6[_0x4139ef('0x27')](_0xa09fe8)[_0x4139ef('0x1e')](_0xfb9b7a);};}exports[_0xf7d472('0xa')]=function(_0x2fe8c6,_0x5085b2){const _0x4c478c=_0xf7d472;let _0x456d2a={};const _0x541e5f={},_0x101b0e={'count':0x0,'rows':[]},_0x291bfa=_[_0x4c478c('0x33')](db[_0x4c478c('0x6')][_0x4c478c('0x35')],function(_0x4c0674){const _0x37340c=_0x4c478c;return{'name':_0x4c0674[_0x37340c('0x2f')],'type':_0x4c0674['type'][_0x37340c('0x4')]};});_0x541e5f[_0x4c478c('0xe')]=_[_0x4c478c('0x33')](_0x291bfa,_0x4c478c('0x18')),_0x541e5f['query']=_[_0x4c478c('0x40')](_0x2fe8c6['query']),_0x541e5f[_0x4c478c('0x20')]=_['intersection'](_0x541e5f[_0x4c478c('0xe')],_0x541e5f['query']),_0x456d2a[_0x4c478c('0x16')]=_['intersection'](_0x541e5f[_0x4c478c('0xe')],qs['fields'](_0x2fe8c6[_0x4c478c('0x1a')]['fields'])),_0x456d2a[_0x4c478c('0x16')]=_0x456d2a[_0x4c478c('0x16')]['length']?_0x456d2a['attributes']:_0x541e5f[_0x4c478c('0xe')];typeof _0x2fe8c6[_0x4c478c('0x1a')][_0x4c478c('0x7')]===_0x4c478c('0x25')&&(_0x456d2a[_0x4c478c('0x13')]=qs['limit'](_0x2fe8c6[_0x4c478c('0x1a')]['limit']),_0x456d2a[_0x4c478c('0x47')]=qs['offset'](_0x2fe8c6[_0x4c478c('0x1a')][_0x4c478c('0x47')]));_0x456d2a['order']=qs['sort'](_0x2fe8c6['query'][_0x4c478c('0x3')]),_0x456d2a[_0x4c478c('0x3c')]=qs[_0x4c478c('0x20')](_[_0x4c478c('0x22')](_0x2fe8c6[_0x4c478c('0x1a')],_0x541e5f[_0x4c478c('0x20')]),_0x291bfa);_0x2fe8c6[_0x4c478c('0x1a')]['filter']&&(_0x456d2a['where']=_[_0x4c478c('0x1b')](_0x456d2a[_0x4c478c('0x3c')],{[Op['or']]:_['map'](_0x291bfa,function(_0x3a4f97){const _0x1d3fe9=_0x4c478c;if(_0x3a4f97[_0x1d3fe9('0x44')]!==_0x1d3fe9('0x1c')){const _0x24694a={};return _0x24694a[_0x3a4f97[_0x1d3fe9('0x18')]]={[Op[_0x1d3fe9('0x24')]]:'%'+_0x2fe8c6['query'][_0x1d3fe9('0x1')]+'%'},_0x24694a;}})}));_0x456d2a=_[_0x4c478c('0x1b')]({},_0x456d2a,_0x2fe8c6[_0x4c478c('0x36')]);const _0x14a900={'where':_0x456d2a[_0x4c478c('0x3c')]};return db[_0x4c478c('0x6')]['count'](_0x14a900)['then'](function(_0x205b49){const _0x3cf9d5=_0x4c478c;return _0x101b0e[_0x3cf9d5('0x9')]=_0x205b49,_0x2fe8c6[_0x3cf9d5('0x1a')][_0x3cf9d5('0x3b')]&&(_0x456d2a[_0x3cf9d5('0x43')]=[{'all':!![]}]),db[_0x3cf9d5('0x6')][_0x3cf9d5('0xf')](_0x456d2a);})[_0x4c478c('0x37')](function(_0x10bd46){const _0x3d9f32=_0x4c478c;return _0x101b0e[_0x3d9f32('0x2a')]=_0x10bd46,_0x101b0e;})[_0x4c478c('0x37')](respondWithFilteredResult(_0x5085b2,_0x456d2a))[_0x4c478c('0x14')](handleError(_0x5085b2,null));},exports['show']=function(_0x2e81b0,_0x2b1c04){const _0x14092b=_0xf7d472;let _0x5ee24e={'raw':![],'where':{'id':_0x2e81b0['params']['id']}};const _0x1dd32a={};return _0x1dd32a[_0x14092b('0xe')]=_[_0x14092b('0x40')](db[_0x14092b('0x6')]['rawAttributes']),_0x1dd32a[_0x14092b('0x1a')]=_[_0x14092b('0x40')](_0x2e81b0[_0x14092b('0x1a')]),_0x1dd32a['filters']=_['intersection'](_0x1dd32a[_0x14092b('0xe')],_0x1dd32a[_0x14092b('0x1a')]),_0x5ee24e[_0x14092b('0x16')]=_['intersection'](_0x1dd32a[_0x14092b('0xe')],qs[_0x14092b('0x23')](_0x2e81b0[_0x14092b('0x1a')][_0x14092b('0x23')])),_0x5ee24e['attributes']=_0x5ee24e['attributes'][_0x14092b('0x48')]?_0x5ee24e[_0x14092b('0x16')]:_0x1dd32a[_0x14092b('0xe')],_0x2e81b0[_0x14092b('0x1a')]['includeAll']&&(_0x5ee24e['include']=[{'all':!![]}]),_0x5ee24e=_[_0x14092b('0x1b')]({},_0x5ee24e,_0x2e81b0[_0x14092b('0x36')]),db[_0x14092b('0x6')]['findOne'](_0x5ee24e)['then'](handleEntityNotFound(_0x2b1c04,null))[_0x14092b('0x37')](respondWithResult(_0x2b1c04,null))[_0x14092b('0x14')](handleError(_0x2b1c04,null));},exports[_0xf7d472('0x39')]=function(_0x14691f,_0x3ab289){const _0x1ee608=_0xf7d472;return db[_0x1ee608('0x6')][_0x1ee608('0x39')](_0x14691f[_0x1ee608('0x15')],{})[_0x1ee608('0x37')](function(_0x1176bd){const _0x474a08=_0x1ee608,_0x165a8b=_0x14691f[_0x474a08('0x29')][_0x474a08('0xd')]({'plain':!![]});if(!_0x165a8b)throw new Error(_0x474a08('0x38'));if(_0x165a8b[_0x474a08('0x2e')]===_0x474a08('0x29')){const _0x580972=_0x1176bd['get']({'plain':!![]}),_0x47cde6=_0x474a08('0x10');return db[_0x474a08('0x3e')][_0x474a08('0x46')]({'where':{'name':_0x47cde6,'userProfileId':_0x165a8b[_0x474a08('0x34')]},'raw':!![]})[_0x474a08('0x37')](function(_0x43d9b9){const _0x461887=_0x474a08;return _0x43d9b9&&_0x43d9b9['autoAssociation']===0x0?db[_0x461887('0x32')]['create']({'name':_0x580972[_0x461887('0x18')],'resourceId':_0x580972['id'],'type':_0x43d9b9[_0x461887('0x18')],'sectionId':_0x43d9b9['id']},{})[_0x461887('0x37')](function(){return _0x1176bd;}):_0x1176bd;})[_0x474a08('0x14')](function(_0x27e3a5){const _0x4ead98=_0x474a08;logger['error'](_0x4ead98('0x19'),_0x27e3a5);throw _0x27e3a5;});}return _0x1176bd;})['then'](respondWithResult(_0x3ab289,0xc9))[_0x1ee608('0x14')](handleError(_0x3ab289,null));},exports[_0xf7d472('0x5')]=function(_0x5e9ce1,_0x2e7051){const _0x16f30f=_0xf7d472;return _0x5e9ce1[_0x16f30f('0x15')]['id']&&delete _0x5e9ce1[_0x16f30f('0x15')]['id'],db[_0x16f30f('0x6')][_0x16f30f('0x46')]({'where':{'id':_0x5e9ce1[_0x16f30f('0x0')]['id']}})[_0x16f30f('0x37')](handleEntityNotFound(_0x2e7051,null))['then'](saveUpdates(_0x5e9ce1[_0x16f30f('0x15')],null))[_0x16f30f('0x37')](respondWithResult(_0x2e7051,null))[_0x16f30f('0x14')](handleError(_0x2e7051,null));},exports[_0xf7d472('0x1f')]=function(_0x459bbe,_0x4677c0){const _0x3d0c60=_0xf7d472;return db['SquareProject']['findOne']({'where':{'id':_0x459bbe[_0x3d0c60('0x0')]['id']}})['then'](handleEntityNotFound(_0x4677c0,null))[_0x3d0c60('0x37')](removeEntity(_0x4677c0,null))['catch'](handleError(_0x4677c0,null));},exports[_0xf7d472('0x3a')]=function(_0x3c9530,_0x19a728){const _0xa5a280=_0xf7d472;return db[_0xa5a280('0x6')][_0xa5a280('0x46')]({'where':{'id':_0x3c9530['params']['id']}})[_0xa5a280('0x37')](function(_0x3ab0f8){const _0x4cb615=_0xa5a280;if(_0x3ab0f8)return _0x3ab0f8['addUsers'](_0x3c9530['body']['ids'],{'through':_['omit'](_0x3c9530[_0x4cb615('0x15')],[_0x4cb615('0x2c'),'id'])});})['then'](respondWithResult(_0x19a728,null))['catch'](handleError(_0x19a728,null));},exports[_0xf7d472('0x2')]=function(_0x200d19,_0x26f72c){const _0x6ef026=_0xf7d472;return db[_0x6ef026('0x6')][_0x6ef026('0x46')]({'where':{'id':_0x200d19[_0x6ef026('0x0')]['id']}})['then'](handleEntityNotFound(_0x26f72c,null))['then'](function(_0x46dca6){const _0x272286=_0x6ef026;if(_0x46dca6)return _0x46dca6[_0x272286('0x2')](_0x200d19['query']['ids'])[_0x272286('0x37')](function(){const _0x510000=_0x272286;if(_[_0x510000('0x1d')](_0x200d19['query'][_0x510000('0x2c')]))for(let _0x21e1ca=0x0;_0x21e1ca<_0x200d19[_0x510000('0x1a')][_0x510000('0x2c')][_0x510000('0x48')];_0x21e1ca+=0x1){socket[_0x510000('0x42')](_0x510000('0x45'),{'UserId':Number(_0x200d19[_0x510000('0x1a')][_0x510000('0x2c')][_0x21e1ca]),'SquareProjectId':Number(_0x200d19[_0x510000('0x0')]['id'])});}else socket[_0x510000('0x42')]('userSquareProject:remove',{'UserId':Number(_0x200d19[_0x510000('0x1a')]['ids']),'SquareProjectId':Number(_0x200d19[_0x510000('0x0')]['id'])});});})[_0x6ef026('0x37')](respondWithStatusCode(_0x26f72c,null))[_0x6ef026('0x14')](handleError(_0x26f72c,null));},exports[_0xf7d472('0x3d')]=function(_0x41ba05,_0x3cdb02){const _0x4c1ba0=_0xf7d472;let _0x181ae5={};const _0x5b40e1={};let _0x3baa53,_0x21b073;return db['SquareProject'][_0x4c1ba0('0x46')]({'where':{'id':_0x41ba05['params']['id']}})[_0x4c1ba0('0x37')](handleEntityNotFound(_0x3cdb02,null))[_0x4c1ba0('0x37')](function(_0x3b3c29){const _0x1ee249=_0x4c1ba0;if(_0x3b3c29)return _0x3baa53=_0x3b3c29,_0x5b40e1[_0x1ee249('0xe')]=_[_0x1ee249('0x40')](db['User'][_0x1ee249('0x35')]),_0x5b40e1['query']=_['keys'](_0x41ba05[_0x1ee249('0x1a')]),_0x5b40e1['filters']=_[_0x1ee249('0x2b')](_0x5b40e1[_0x1ee249('0xe')],_0x5b40e1[_0x1ee249('0x1a')]),_0x181ae5['attributes']=_['intersection'](_0x5b40e1['model'],qs[_0x1ee249('0x23')](_0x41ba05[_0x1ee249('0x1a')][_0x1ee249('0x23')])),_0x181ae5['attributes']=_0x181ae5[_0x1ee249('0x16')][_0x1ee249('0x48')]?_0x181ae5[_0x1ee249('0x16')]:_0x5b40e1[_0x1ee249('0xe')],_0x181ae5[_0x1ee249('0xc')]=qs['sort'](_0x41ba05['query']['sort']),_0x181ae5[_0x1ee249('0x3c')]=qs['filters'](_[_0x1ee249('0x22')](_0x41ba05['query'],_0x5b40e1[_0x1ee249('0x20')])),_0x41ba05[_0x1ee249('0x1a')]['filter']&&(_0x181ae5[_0x1ee249('0x3c')]=_[_0x1ee249('0x1b')](_0x181ae5[_0x1ee249('0x3c')],{[Op['or']]:_[_0x1ee249('0x33')](_0x181ae5[_0x1ee249('0x16')],function(_0x20bed5){const _0x319118=_0x1ee249,_0x9bd3fb={};return _0x9bd3fb[_0x20bed5]={[Op[_0x319118('0x24')]]:'%'+_0x41ba05[_0x319118('0x1a')][_0x319118('0x1')]+'%'},_0x9bd3fb;})})),_0x181ae5=_['merge']({},_0x181ae5,_0x41ba05[_0x1ee249('0x36')]),_0x3baa53[_0x1ee249('0x3d')](_0x181ae5);})[_0x4c1ba0('0x37')](function(_0x174711){const _0x3e9ebe=_0x4c1ba0;if(_0x174711)return _0x21b073=_0x174711[_0x3e9ebe('0x48')],typeof _0x41ba05[_0x3e9ebe('0x1a')][_0x3e9ebe('0x7')]===_0x3e9ebe('0x25')&&(_0x181ae5[_0x3e9ebe('0x13')]=qs[_0x3e9ebe('0x13')](_0x41ba05[_0x3e9ebe('0x1a')][_0x3e9ebe('0x13')]),_0x181ae5[_0x3e9ebe('0x47')]=qs[_0x3e9ebe('0x47')](_0x41ba05[_0x3e9ebe('0x1a')][_0x3e9ebe('0x47')])),_0x3baa53[_0x3e9ebe('0x3d')](_0x181ae5);})['then'](function(_0x5e7190){if(_0x5e7190)return _0x5e7190?{'count':_0x21b073,'rows':_0x5e7190}:null;})[_0x4c1ba0('0x37')](respondWithResult(_0x3cdb02,null))['catch'](handleError(_0x3cdb02,null));}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index b50d306..f82f1a9 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a599_0x4d9b=['undefined','setMaxListeners','update','emit','SquareProject','save'];(function(_0x21cc36,_0x4d9b21){const _0x4b928c=function(_0x5d748c){while(--_0x5d748c){_0x21cc36['push'](_0x21cc36['shift']());}};_0x4b928c(++_0x4d9b21);}(a599_0x4d9b,0x14f));const a599_0x4b92=function(_0x21cc36,_0x4d9b21){_0x21cc36=_0x21cc36-0x0;let _0x4b928c=a599_0x4d9b[_0x21cc36];return _0x4b928c;};const _0x3f9fdd=a599_0x4b92;'use strict';const EventEmitter=require('events'),SquareProject=require('../../mysqldb')['db'][_0x3f9fdd('0x5')],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x3f9fdd('0x2')](0x0);const events={'afterCreate':_0x3f9fdd('0x0'),'afterUpdate':_0x3f9fdd('0x3'),'afterDestroy':'remove'};function emitEvent(_0x5d748c){return function(_0x5b84ed){const _0x55a452=a599_0x4b92;SquareProjectEvents[_0x55a452('0x4')](_0x5d748c+':'+_0x5b84ed['id'],_0x5b84ed),SquareProjectEvents['emit'](_0x5d748c,_0x5b84ed);};}for(const e in events){if(typeof events[e]!==_0x3f9fdd('0x1')){const event=events[e];SquareProject['addHook'](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index 50871b5..7929a7e 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a600_0x4949=['define','./squareProject.attributes','exports','SquareProject'];(function(_0x195d2b,_0x4949d8){const _0x3eb569=function(_0x85d5d4){while(--_0x85d5d4){_0x195d2b['push'](_0x195d2b['shift']());}};_0x3eb569(++_0x4949d8);}(a600_0x4949,0x136));const a600_0x3eb5=function(_0x195d2b,_0x4949d8){_0x195d2b=_0x195d2b-0x0;let _0x3eb569=a600_0x4949[_0x195d2b];return _0x3eb569;};const _0x4e96fb=a600_0x3eb5;'use strict';const attributes=require(_0x4e96fb('0x3'));module[_0x4e96fb('0x0')]=function(_0x85d5d4){const _0x3d0f55=_0x4e96fb,_0x4f9131=_0x85d5d4[_0x3d0f55('0x2')](_0x3d0f55('0x1'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4f9131;}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index 8c5dc00..849c7c9 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a601_0x99d2=['map','stringify','../../rediscache','../../mysqldb','include','where','message','debug','lodash','error','rpc','then','attributes','SquareProject','model','options','../../config/logger','catch','./squareProject.socket','ShowSquareProject'];(function(_0x24ed67,_0x99d2c){const _0x4ea6d0=function(_0x3f131c){while(--_0x3f131c){_0x24ed67['push'](_0x24ed67['shift']());}};_0x4ea6d0(++_0x99d2c);}(a601_0x99d2,0x81));const a601_0x4ea6=function(_0x24ed67,_0x99d2c){_0x24ed67=_0x24ed67-0x0;let _0x4ea6d0=a601_0x99d2[_0x24ed67];return _0x4ea6d0;};const _0x2121b4=a601_0x4ea6;'use strict';const db=require(_0x2121b4('0xe'))['db'],logger=require(_0x2121b4('0x7'))(_0x2121b4('0x1')),_=require(_0x2121b4('0x13')),{getSocket}=require(_0x2121b4('0xd')),socket=getSocket();require(_0x2121b4('0x9'))['register'](socket),exports[_0x2121b4('0xa')]=function(_0x3f131c){const _0xc35c9c=this;return new Promise(function(_0x14231f,_0x133f24){const _0x2e7954=a601_0x4ea6;return db[_0x2e7954('0x4')]['findOne']({'raw':_0x3f131c[_0x2e7954('0x6')]?_0x3f131c[_0x2e7954('0x6')]['raw']===undefined?!![]:![]:!![],'where':_0x3f131c[_0x2e7954('0x6')]?_0x3f131c[_0x2e7954('0x6')][_0x2e7954('0x10')]||null:null,'attributes':_0x3f131c[_0x2e7954('0x6')]?_0x3f131c['options']['attributes']||null:null,'include':_0x3f131c[_0x2e7954('0x6')]?_0x3f131c[_0x2e7954('0x6')]['include']?_[_0x2e7954('0xb')](_0x3f131c[_0x2e7954('0x6')][_0x2e7954('0xf')],function(_0x2b4975){const _0x30082f=_0x2e7954;return{'model':db[_0x2b4975['model']],'as':_0x2b4975['as'],'attributes':_0x2b4975[_0x30082f('0x3')],'include':_0x2b4975[_0x30082f('0xf')]?_['map'](_0x2b4975[_0x30082f('0xf')],function(_0x698436){const _0x282de0=_0x30082f;return{'model':db[_0x698436[_0x282de0('0x5')]],'as':_0x698436['as'],'attributes':_0x698436[_0x282de0('0x3')],'include':_0x698436['include']?_[_0x282de0('0xb')](_0x698436[_0x282de0('0xf')],function(_0xfe14b0){const _0x3a97f0=_0x282de0;return{'model':db[_0xfe14b0[_0x3a97f0('0x5')]],'as':_0xfe14b0['as'],'attributes':_0xfe14b0['attributes']};}):[]};}):[]};}):[]:[]})[_0x2e7954('0x2')](function(_0x5640da){const _0x33ba71=_0x2e7954;logger['info'](_0x33ba71('0xa'),_0x3f131c),logger[_0x33ba71('0x12')](_0x33ba71('0xa'),_0x3f131c,JSON[_0x33ba71('0xc')](_0x5640da)),_0x14231f(_0x5640da);})[_0x2e7954('0x8')](function(_0x2f1478){const _0x33dc46=_0x2e7954;logger[_0x33dc46('0x0')](_0x33dc46('0xa'),_0x2f1478[_0x33dc46('0x11')],_0x3f131c),_0x133f24(_0xc35c9c[_0x33dc46('0x0')](0x1f4,_0x2f1478[_0x33dc46('0x11')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index 2f3ccc6..c46425e 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a602_0xca58=['update','save','squareProject:','length','emit','register'];(function(_0x513660,_0xca58f2){const _0x326528=function(_0x43edab){while(--_0x43edab){_0x513660['push'](_0x513660['shift']());}};_0x326528(++_0xca58f2);}(a602_0xca58,0x108));const a602_0x3265=function(_0x513660,_0xca58f2){_0x513660=_0x513660-0x0;let _0x326528=a602_0xca58[_0x513660];return _0x326528;};const _0x5d1e07=a602_0x3265;'use strict';const SquareProjectEvents=require('./squareProject.events'),events=[_0x5d1e07('0x1'),'remove',_0x5d1e07('0x0')];function createListener(_0x43edab,_0x48b59b){return function(_0x5a85a1){const _0x53f6f5=a602_0x3265;_0x48b59b[_0x53f6f5('0x4')](_0x43edab,_0x5a85a1);};}exports[_0x5d1e07('0x5')]=function(_0x510ed8){const _0x512591=_0x5d1e07;for(let _0x511a78=0x0,_0x21e830=events[_0x512591('0x3')];_0x511a78<_0x21e830;_0x511a78++){const _0x48beaa=events[_0x511a78],_0x538c4b=createListener(_0x512591('0x2')+_0x48beaa,_0x510ed8);SquareProjectEvents['on'](_0x48beaa,_0x538c4b);}}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index 19bf5d4..cf6e667 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a603_0x1ac0=['./squareRecording.controller','download','index','destroy','isAuthenticated','/:id/download','express','Router','exports','delete','/:id/delete','put','/:id','show','post','update','get'];(function(_0x1064f3,_0x1ac045){const _0x5946a7=function(_0x258564){while(--_0x258564){_0x1064f3['push'](_0x1064f3['shift']());}};_0x5946a7(++_0x1ac045);}(a603_0x1ac0,0x87));const a603_0x5946=function(_0x1064f3,_0x1ac045){_0x1064f3=_0x1064f3-0x0;let _0x5946a7=a603_0x1ac0[_0x1064f3];return _0x5946a7;};const _0x1c1db3=a603_0x5946;'use strict';const express=require(_0x1c1db3('0x7')),router=express[_0x1c1db3('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x1c1db3('0x1'));router[_0x1c1db3('0x0')]('/',auth[_0x1c1db3('0x5')](),controller[_0x1c1db3('0x3')]),router['get']('/:id',auth[_0x1c1db3('0x5')](),controller[_0x1c1db3('0xe')]),router['get'](_0x1c1db3('0x6'),auth[_0x1c1db3('0x5')](),controller[_0x1c1db3('0x2')]),router[_0x1c1db3('0xf')]('/',auth[_0x1c1db3('0x5')](),controller['create']),router[_0x1c1db3('0xc')](_0x1c1db3('0xd'),auth[_0x1c1db3('0x5')](),controller[_0x1c1db3('0x10')]),router[_0x1c1db3('0xa')](_0x1c1db3('0xb'),auth['isAuthenticated'](),controller[_0x1c1db3('0x4')]),module[_0x1c1db3('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 67b7b3b..72aef2b 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a604_0x2965=['substring','lastIndexOf','savePath','STRING','getDataValue','VIRTUAL','sequelize','exports'];(function(_0x150770,_0x296533){const _0x2d2ee6=function(_0x12fd3c){while(--_0x12fd3c){_0x150770['push'](_0x150770['shift']());}};_0x2d2ee6(++_0x296533);}(a604_0x2965,0x1d9));const a604_0x2d2e=function(_0x150770,_0x296533){_0x150770=_0x150770-0x0;let _0x2d2ee6=a604_0x2965[_0x150770];return _0x2d2ee6;};const _0x318f26=a604_0x2d2e;'use strict';const Sequelize=require(_0x318f26('0x5'));module[_0x318f26('0x6')]={'uniqueid':{'type':Sequelize[_0x318f26('0x2')]},'callerid':{'type':Sequelize[_0x318f26('0x2')]},'calleridname':{'type':Sequelize[_0x318f26('0x2')]},'context':{'type':Sequelize[_0x318f26('0x2')]},'extension':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x318f26('0x2')]},'accountcode':{'type':Sequelize[_0x318f26('0x2')]},'dnid':{'type':Sequelize[_0x318f26('0x2')]},'projectName':{'type':Sequelize[_0x318f26('0x2')]},'saveName':{'type':Sequelize[_0x318f26('0x2')]},'filename':{'type':Sequelize[_0x318f26('0x2')]},'savePath':{'type':Sequelize[_0x318f26('0x2')]},'format':{'type':Sequelize[_0x318f26('0x4')],'get':function(){const _0x51e804=_0x318f26;let _0x12fd3c='';const _0x223b77=this[_0x51e804('0x3')](_0x51e804('0x1'));return _0x223b77&&(_0x12fd3c=_0x223b77[_0x51e804('0x7')](_0x223b77[_0x51e804('0x0')]('.'))),_0x12fd3c;}}}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index 2c66f6f..7fec153 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a605_0x5bbc=['filter','Content-Range','savePath','include','sequelize','undefined','format','unlink','length','pick','update','filename','params','model','SquareRecording','unlinkSync','filters','download','api','catch','SquareRecording\x20not\x20found','create','../../mysqldb','rawAttributes','Entity\x20not\x20found','type','../../components/parsers/qs','sort','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','where','findAll','File:\x20\x22','findOne','VIRTUAL','error-middleware/errors','count','secrets','../../config/environment','limit','like','info','isNil','.cypher','util','name','offset','extname','json','show','status','attributes','destroy','existsSync','send','decryptFile','intersection','Not\x20found','recording','%s.cypher','fields','body','end','then','set','../../config/logger','uniqueid','map','includeAll','merge','fieldName','keys','stack','query','error','message','nolimit'];(function(_0x1c477e,_0x5bbc77){const _0x1179be=function(_0x2663bf){while(--_0x2663bf){_0x1c477e['push'](_0x1c477e['shift']());}};_0x1179be(++_0x5bbc77);}(a605_0x5bbc,0x81));const a605_0x1179=function(_0x1c477e,_0x5bbc77){_0x1c477e=_0x1c477e-0x0;let _0x1179be=a605_0x5bbc[_0x1c477e];return _0x1179be;};const _0x26e458=a605_0x1179;'use strict';const util=require(_0x26e458('0x42')),path=require('path'),fs=require('fs'),_=require('lodash'),qs=require(_0x26e458('0x31')),logger=require(_0x26e458('0xb'))(_0x26e458('0x29')),config=require(_0x26e458('0x3c')),db=require(_0x26e458('0x2d'))['db'],{Op,ValidationError}=require(_0x26e458('0x1b')),{InternalError}=require(_0x26e458('0x39'));function respondWithResult(_0x2663bf,_0x2717f8){return _0x2717f8=_0x2717f8||0xc8,function(_0x1f625e){const _0x234acf=a605_0x1179;if(_0x1f625e)return _0x2663bf[_0x234acf('0x48')](_0x2717f8)[_0x234acf('0x46')](_0x1f625e);};}function respondWithFilteredResult(_0x184ab2,_0x96feb1){return function(_0x28027b){const _0x5588b6=a605_0x1179;if(_0x28027b){const _0x505594=_0x28027b[_0x5588b6('0x3a')],_0x4d0dd3=_0x96feb1[_0x5588b6('0x44')];let _0x161e2e=_0x96feb1[_0x5588b6('0x44')]+_0x96feb1[_0x5588b6('0x3d')],_0x4de1df;return _0x161e2e>=_0x505594?(_0x161e2e=_0x505594,_0x4de1df=0xc8):_0x4de1df=0xce,_0x184ab2[_0x5588b6('0x48')](_0x4de1df),_0x184ab2[_0x5588b6('0xa')](_0x5588b6('0x18'),_0x4d0dd3+'-'+_0x161e2e+'/'+_0x505594)[_0x5588b6('0x46')](_0x28027b);}return null;};}function saveUpdates(_0x236b5d){return function(_0x4da3ea){const _0x36da26=a605_0x1179;if(_0x4da3ea)return _0x4da3ea['update'](_0x236b5d)[_0x36da26('0x9')](function(_0x42c5fe){return _0x42c5fe;});return null;};}function handleEntityNotFound(_0x4a015d){return function(_0xeea930){return!_0xeea930&&_0x4a015d['sendStatus'](0x194),_0xeea930;};}function handleError(_0x5a5999,_0x4ee8a2){return _0x4ee8a2=_0x4ee8a2||0x1f4,function(_0x4aa875){const _0x1812a5=a605_0x1179;logger[_0x1812a5('0x14')](_0x4aa875[_0x1812a5('0x12')]),_0x4aa875['name']&&delete _0x4aa875[_0x1812a5('0x43')],_0x5a5999['status'](_0x4ee8a2)[_0x1812a5('0x0')](_0x4aa875);};}exports['index']=function(_0x57582d,_0x3f93b4){const _0xc219b8=_0x26e458;let _0x3ae340={};const _0xfa47e2={},_0x142403={'count':0x0,'rows':[]},_0x8b5b0d=_[_0xc219b8('0xd')](db[_0xc219b8('0x25')][_0xc219b8('0x2e')],function(_0x57bcd2){const _0x14a3d5=_0xc219b8;return{'name':_0x57bcd2[_0x14a3d5('0x10')],'type':_0x57bcd2[_0x14a3d5('0x30')]['key']};});_0xfa47e2[_0xc219b8('0x24')]=_[_0xc219b8('0xd')](_0x8b5b0d,'name'),_0xfa47e2['query']=_[_0xc219b8('0x11')](_0x57582d[_0xc219b8('0x13')]),_0xfa47e2[_0xc219b8('0x27')]=_[_0xc219b8('0x2')](_0xfa47e2[_0xc219b8('0x24')],_0xfa47e2[_0xc219b8('0x13')]),_0x3ae340[_0xc219b8('0x49')]=_['intersection'](_0xfa47e2[_0xc219b8('0x24')],qs[_0xc219b8('0x6')](_0x57582d[_0xc219b8('0x13')][_0xc219b8('0x6')])),_0x3ae340[_0xc219b8('0x49')]=_0x3ae340[_0xc219b8('0x49')][_0xc219b8('0x1f')]?_0x3ae340[_0xc219b8('0x49')]:_0xfa47e2[_0xc219b8('0x24')];typeof _0x57582d[_0xc219b8('0x13')][_0xc219b8('0x16')]===_0xc219b8('0x1c')&&(_0x3ae340[_0xc219b8('0x3d')]=qs['limit'](_0x57582d[_0xc219b8('0x13')][_0xc219b8('0x3d')]),_0x3ae340['offset']=qs[_0xc219b8('0x44')](_0x57582d[_0xc219b8('0x13')]['offset']));_0x3ae340['order']=qs['sort'](_0x57582d[_0xc219b8('0x13')][_0xc219b8('0x32')]),_0x3ae340[_0xc219b8('0x34')]=qs[_0xc219b8('0x27')](_[_0xc219b8('0x20')](_0x57582d[_0xc219b8('0x13')],_0xfa47e2[_0xc219b8('0x27')]),_0x8b5b0d);_0x57582d[_0xc219b8('0x13')][_0xc219b8('0x17')]&&(_0x3ae340['where']=_[_0xc219b8('0xf')](_0x3ae340['where'],{[Op['or']]:_['map'](_0x8b5b0d,function(_0x54d02b){const _0x455cd3=_0xc219b8;if(_0x54d02b[_0x455cd3('0x30')]!==_0x455cd3('0x38')){const _0xb6b8d7={};return _0xb6b8d7[_0x54d02b[_0x455cd3('0x43')]]={[Op[_0x455cd3('0x3e')]]:'%'+_0x57582d[_0x455cd3('0x13')][_0x455cd3('0x17')]+'%'},_0xb6b8d7;}})}));_0x3ae340=_[_0xc219b8('0xf')]({},_0x3ae340,_0x57582d['options']);const _0x22f122={'where':_0x3ae340[_0xc219b8('0x34')]};return db[_0xc219b8('0x25')]['count'](_0x22f122)[_0xc219b8('0x9')](function(_0x40974a){const _0x463ff0=_0xc219b8;return _0x142403[_0x463ff0('0x3a')]=_0x40974a,_0x57582d[_0x463ff0('0x13')][_0x463ff0('0xe')]&&(_0x3ae340[_0x463ff0('0x1a')]=[{'all':!![]}]),db[_0x463ff0('0x25')][_0x463ff0('0x35')](_0x3ae340);})['then'](function(_0x55d2ba){return _0x142403['rows']=_0x55d2ba,_0x142403;})[_0xc219b8('0x9')](respondWithFilteredResult(_0x3f93b4,_0x3ae340))[_0xc219b8('0x2a')](handleError(_0x3f93b4,null));},exports[_0x26e458('0x47')]=function(_0x165682,_0x5e4390){const _0x2ded20=_0x26e458;let _0x17762={'raw':!![],'where':{'id':_0x165682['params']['id']}};const _0x1c9a5e={};return _0x1c9a5e['model']=_[_0x2ded20('0x11')](db['SquareRecording'][_0x2ded20('0x2e')]),_0x1c9a5e[_0x2ded20('0x13')]=_['keys'](_0x165682[_0x2ded20('0x13')]),_0x1c9a5e[_0x2ded20('0x27')]=_['intersection'](_0x1c9a5e[_0x2ded20('0x24')],_0x1c9a5e['query']),_0x17762['attributes']=_['intersection'](_0x1c9a5e[_0x2ded20('0x24')],qs['fields'](_0x165682[_0x2ded20('0x13')][_0x2ded20('0x6')])),_0x17762[_0x2ded20('0x49')]=_0x17762['attributes'][_0x2ded20('0x1f')]?_0x17762[_0x2ded20('0x49')]:_0x1c9a5e[_0x2ded20('0x24')],_0x165682[_0x2ded20('0x13')][_0x2ded20('0xe')]&&(_0x17762[_0x2ded20('0x1a')]=[{'all':!![]}]),_0x17762=_[_0x2ded20('0xf')]({},_0x17762,_0x165682['options']),db[_0x2ded20('0x25')][_0x2ded20('0x37')](_0x17762)[_0x2ded20('0x9')](handleEntityNotFound(_0x5e4390,null))['then'](respondWithResult(_0x5e4390,null))['catch'](handleError(_0x5e4390,null));},exports[_0x26e458('0x2c')]=function(_0x28abbe,_0x493f01){const _0x4c1b59=_0x26e458;return db[_0x4c1b59('0x25')][_0x4c1b59('0x2c')](_0x28abbe[_0x4c1b59('0x7')],{})[_0x4c1b59('0x9')](respondWithResult(_0x493f01,0xc9))['catch'](handleError(_0x493f01,null));},exports[_0x26e458('0x21')]=function(_0x85cae4,_0x355ba4){const _0x78445f=_0x26e458;return _0x85cae4[_0x78445f('0x7')]['id']&&delete _0x85cae4['body']['id'],db[_0x78445f('0x25')][_0x78445f('0x37')]({'where':{'id':_0x85cae4[_0x78445f('0x23')]['id']}})['then'](handleEntityNotFound(_0x355ba4,null))[_0x78445f('0x9')](saveUpdates(_0x85cae4[_0x78445f('0x7')],null))[_0x78445f('0x9')](respondWithResult(_0x355ba4,null))['catch'](handleError(_0x355ba4,null));},exports[_0x26e458('0x28')]=function(_0x171469,_0x4f73f5){const _0x5d0bce=_0x26e458,_0x58fa25=require('../../components/encryptor');let _0x4695a6=![];const _0x25f51d={};return _0x171469[_0x5d0bce('0x13')][_0x5d0bce('0x30')]&&_0x171469[_0x5d0bce('0x13')][_0x5d0bce('0x30')]===_0x5d0bce('0xc')?_0x25f51d[_0x5d0bce('0xc')]=_0x171469['params']['id']:_0x25f51d['id']=_0x171469[_0x5d0bce('0x23')]['id'],db[_0x5d0bce('0x25')][_0x5d0bce('0x37')]({'where':_0x25f51d,'attributes':['id','savePath',_0x5d0bce('0x22')],'raw':!![]})[_0x5d0bce('0x9')](handleEntityNotFound(_0x4f73f5,null))[_0x5d0bce('0x9')](function(_0x2b62a4){const _0x16633a=_0x5d0bce;if(_0x2b62a4){const _0x338d2c=_0x2b62a4[_0x16633a('0x19')],_0x53937b=util[_0x16633a('0x1d')](_0x16633a('0x5'),_0x338d2c);if(fs[_0x16633a('0x4b')](_0x53937b))return _0x4695a6=!![],_0x58fa25[_0x16633a('0x1')](_0x53937b,_0x338d2c,config[_0x16633a('0x3b')][_0x16633a('0x4')])['then'](function(){return _0x2b62a4;});return _0x2b62a4;}})['then'](function(_0x7886c9){const _0x14951d=_0x5d0bce;if(_0x7886c9){const _0x3a0584=_0x7886c9[_0x14951d('0x19')];if(!fs[_0x14951d('0x4b')](_0x3a0584))throw new ValidationError(_0x14951d('0x2b'));return _0x7886c9[_0x14951d('0x22')]?_0x4f73f5[_0x14951d('0x28')](_0x3a0584,_0x7886c9[_0x14951d('0x22')]+path[_0x14951d('0x45')](_0x3a0584),function(){const _0x2b1b1f=_0x14951d;_0x4695a6&&fs[_0x2b1b1f('0x1e')](_0x3a0584);}):_0x4f73f5[_0x14951d('0x28')](_0x3a0584,function(){const _0x5051c5=_0x14951d;_0x4695a6&&fs[_0x5051c5('0x1e')](_0x3a0584);});}})[_0x5d0bce('0x2a')](function(_0x4b99b0){const _0x190671=_0x5d0bce;if(_0x4b99b0[_0x190671('0x15')]===_0x190671('0x2b'))_0x4f73f5[_0x190671('0x48')](0x194)['send'](_0x190671('0x3'));else return handleError(_0x4f73f5,null);});},exports['destroy']=function(_0x23969e,_0x29dbd9){const _0x166f0e=_0x26e458;return db[_0x166f0e('0x25')][_0x166f0e('0x37')]({'where':{'id':_0x23969e[_0x166f0e('0x23')]['id']}})[_0x166f0e('0x9')](function(_0x25d852){const _0x18474a=_0x166f0e;if(!_0x25d852)throw new ReferenceError(_0x18474a('0x2f'));return _0x25d852;})[_0x166f0e('0x9')](function(_0x47fd0f){const _0x16ca39=_0x166f0e;let _0x242053=_0x47fd0f[_0x16ca39('0x19')];return logger[_0x16ca39('0x3f')]('cancellazione\x20fisica\x20documento\x20%s',_0x242053),!_['isNil'](_0x47fd0f[_0x16ca39('0x19')])&&fs['existsSync'](_0x242053)&&(logger['info'](_0x16ca39('0x36')+_0x242053+_0x16ca39('0x33')),fs['unlinkSync'](_0x242053)),_0x242053=_0x242053+_0x16ca39('0x41'),!_[_0x16ca39('0x40')](_0x47fd0f['savePath'])&&fs[_0x16ca39('0x4b')](_0x242053)&&(logger[_0x16ca39('0x3f')]('File:\x20\x22'+_0x242053+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x16ca39('0x26')](_0x242053)),_0x47fd0f;})['then'](function(_0x2e09ee){const _0x6f28ef=_0x166f0e;if(!_0x2e09ee)throw new InternalError();return _0x2e09ee[_0x6f28ef('0x4a')]();})[_0x166f0e('0x9')](function(){const _0x120232=_0x166f0e;_0x29dbd9['status'](0xcc)[_0x120232('0x8')]();})[_0x166f0e('0x2a')](handleError(_0x29dbd9,null));}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index 9139f28..6c8bb83 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a606_0x36c9=['./squareRecording.attributes','define','SquareRecording','square_recordings'];(function(_0x3e03c4,_0x36c917){const _0x4a7996=function(_0x2b419c){while(--_0x2b419c){_0x3e03c4['push'](_0x3e03c4['shift']());}};_0x4a7996(++_0x36c917);}(a606_0x36c9,0x13b));const a606_0x4a79=function(_0x3e03c4,_0x36c917){_0x3e03c4=_0x3e03c4-0x0;let _0x4a7996=a606_0x36c9[_0x3e03c4];return _0x4a7996;};const _0x3e9bf2=a606_0x4a79;'use strict';const attributes=require(_0x3e9bf2('0x1'));module['exports']=function(_0x2b419c){const _0x190d40=_0x3e9bf2,_0x36baa4=_0x2b419c[_0x190d40('0x2')](_0x190d40('0x3'),attributes,{'tableName':_0x190d40('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36baa4;}; \ No newline at end of file +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 diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index 2fe594a..afd93a5 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a607_0xe89f=['debug','error','stringify','CreateSquareRecording','catch','SquareRecording','rpc','options','message','body'];(function(_0xd03924,_0xe89fc5){const _0x38d6cd=function(_0xbf3439){while(--_0xbf3439){_0xd03924['push'](_0xd03924['shift']());}};_0x38d6cd(++_0xe89fc5);}(a607_0xe89f,0x1bf));const a607_0x38d6=function(_0xd03924,_0xe89fc5){_0xd03924=_0xd03924-0x0;let _0x38d6cd=a607_0xe89f[_0xd03924];return _0x38d6cd;};const _0x58cbe9=a607_0x38d6;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x58cbe9('0x9'));exports[_0x58cbe9('0x6')]=function(_0xbf3439){const _0x51fad=this;return new Promise(function(_0x239815,_0x9e9beb){const _0x525bfb=a607_0x38d6;return db[_0x525bfb('0x8')]['create'](_0xbf3439[_0x525bfb('0x2')],{'raw':_0xbf3439[_0x525bfb('0x0')]?_0xbf3439['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x557c0f){const _0x11ff6a=_0x525bfb;logger['info'](_0x11ff6a('0x6'),_0xbf3439),logger[_0x11ff6a('0x3')](_0x11ff6a('0x6'),_0xbf3439,JSON[_0x11ff6a('0x5')](_0x557c0f)),_0x239815(_0x557c0f);})[_0x525bfb('0x7')](function(_0xe26407){const _0x56c64e=_0x525bfb;logger[_0x56c64e('0x4')]('CreateSquareRecording',_0xe26407[_0x56c64e('0x1')],_0xbf3439),_0x9e9beb(_0x51fad[_0x56c64e('0x4')](0x1f4,_0xe26407[_0x56c64e('0x1')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index 9d09aa1..496234e 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a608_0x14d3=['index','describe','exports','/describe','./squareReport.controller','delete','destroy','get','Router','isAuthenticated','/:id','create'];(function(_0xdbbc16,_0x14d313){const _0x47f7bd=function(_0x5dc014){while(--_0x5dc014){_0xdbbc16['push'](_0xdbbc16['shift']());}};_0x47f7bd(++_0x14d313);}(a608_0x14d3,0xac));const a608_0x47f7=function(_0xdbbc16,_0x14d313){_0xdbbc16=_0xdbbc16-0x0;let _0x47f7bd=a608_0x14d3[_0xdbbc16];return _0x47f7bd;};const _0x46966c=a608_0x47f7;'use strict';const express=require('express'),router=express[_0x46966c('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x46966c('0x0'));router[_0x46966c('0x3')]('/',auth[_0x46966c('0x5')](),controller[_0x46966c('0x8')]),router[_0x46966c('0x3')](_0x46966c('0xb'),auth[_0x46966c('0x5')](),controller[_0x46966c('0x9')]),router['get'](_0x46966c('0x6'),auth[_0x46966c('0x5')](),controller['show']),router['post']('/',auth[_0x46966c('0x5')](),controller[_0x46966c('0x7')]),router['put']('/:id',auth[_0x46966c('0x5')](),controller['update']),router[_0x46966c('0x1')]('/:id',auth[_0x46966c('0x5')](),controller[_0x46966c('0x2')]),module[_0x46966c('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index 4466a14..a646896 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a609_0x29e9=['DATE','STRING','BOOLEAN','exports','sequelize'];(function(_0x9b482f,_0x29e9e9){const _0x5e53cf=function(_0x37ffff){while(--_0x37ffff){_0x9b482f['push'](_0x9b482f['shift']());}};_0x5e53cf(++_0x29e9e9);}(a609_0x29e9,0xf6));const a609_0x5e53=function(_0x9b482f,_0x29e9e9){_0x9b482f=_0x9b482f-0x0;let _0x5e53cf=a609_0x29e9[_0x9b482f];return _0x5e53cf;};const _0x438b2c=a609_0x5e53;'use strict';const Sequelize=require(_0x438b2c('0x3'));module[_0x438b2c('0x2')]={'network':{'type':Sequelize['STRING']},'network_script':{'type':Sequelize[_0x438b2c('0x0')]},'request':{'type':Sequelize[_0x438b2c('0x0')]},'channel':{'type':Sequelize[_0x438b2c('0x0')]},'language':{'type':Sequelize[_0x438b2c('0x0')]},'type':{'type':Sequelize[_0x438b2c('0x0')]},'uniqueid':{'type':Sequelize[_0x438b2c('0x0')]},'version':{'type':Sequelize[_0x438b2c('0x0')]},'callerid':{'type':Sequelize[_0x438b2c('0x0')]},'calleridname':{'type':Sequelize[_0x438b2c('0x0')]},'callingpres':{'type':Sequelize[_0x438b2c('0x0')]},'callingani2':{'type':Sequelize[_0x438b2c('0x0')]},'callington':{'type':Sequelize['STRING']},'callingtns':{'type':Sequelize[_0x438b2c('0x0')]},'dnid':{'type':Sequelize[_0x438b2c('0x0')]},'rdnis':{'type':Sequelize[_0x438b2c('0x0')]},'context':{'type':Sequelize[_0x438b2c('0x0')]},'extension':{'type':Sequelize[_0x438b2c('0x0')]},'priority':{'type':Sequelize['STRING']},'enhanced':{'type':Sequelize[_0x438b2c('0x0')]},'accountcode':{'type':Sequelize[_0x438b2c('0x0')]},'threadid':{'type':Sequelize[_0x438b2c('0x0')]},'project_name':{'type':Sequelize[_0x438b2c('0x0')]},'joinAt':{'type':Sequelize[_0x438b2c('0x4')]},'leaveAt':{'type':Sequelize[_0x438b2c('0x4')]},'bot':{'type':Sequelize[_0x438b2c('0x1')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.controller.js b/server/api/squareReport/squareReport.controller.js index ca61fdb..fc0f782 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a610_0x445c=['sendStatus','offset','destroy','type','stack','fieldName','filter','SquareReport','Content-Range','rows','keys','like','rawAttributes','params','nolimit','api','name','length','VIRTUAL','pick','key','attributes','undefined','fields','update','catch','intersection','describe','lodash','limit','model','sort','findOne','../../components/parsers/qs','where','order','filters','options','json','status','show','include','send','error','create','then','index','includeAll','map','query','body','count','sequelize','merge'];(function(_0x1c435f,_0x445c63){const _0x2df938=function(_0x91cffe){while(--_0x91cffe){_0x1c435f['push'](_0x1c435f['shift']());}};_0x2df938(++_0x445c63);}(a610_0x445c,0x135));const a610_0x2df9=function(_0x1c435f,_0x445c63){_0x1c435f=_0x1c435f-0x0;let _0x2df938=a610_0x445c[_0x1c435f];return _0x2df938;};const _0x15a5ad=a610_0x2df9;'use strict';const _=require(_0x15a5ad('0x2b')),qs=require(_0x15a5ad('0x30')),logger=require('../../config/logger')(_0x15a5ad('0x1e')),db=require('../../mysqldb')['db'],{Op}=require(_0x15a5ad('0xd'));function respondWithResult(_0x91cffe,_0x3cdc82){return _0x3cdc82=_0x3cdc82||0xc8,function(_0x481b33){const _0x2a9b69=a610_0x2df9;if(_0x481b33)return _0x91cffe[_0x2a9b69('0x0')](_0x3cdc82)[_0x2a9b69('0x35')](_0x481b33);};}function respondWithFilteredResult(_0x1ac96d,_0x3a44a1){return function(_0x4444f4){const _0x17e092=a610_0x2df9;if(_0x4444f4){const _0x940d91=_0x4444f4[_0x17e092('0xc')],_0x3f5de4=_0x3a44a1[_0x17e092('0x10')];let _0x59bb5a=_0x3a44a1[_0x17e092('0x10')]+_0x3a44a1['limit'],_0x1caeed;return _0x59bb5a>=_0x940d91?(_0x59bb5a=_0x940d91,_0x1caeed=0xc8):_0x1caeed=0xce,_0x1ac96d['status'](_0x1caeed),_0x1ac96d['set'](_0x17e092('0x17'),_0x3f5de4+'-'+_0x59bb5a+'/'+_0x940d91)['json'](_0x4444f4);}return null;};}function saveUpdates(_0x278c23){return function(_0x3bcc44){const _0x5b9ebc=a610_0x2df9;if(_0x3bcc44)return _0x3bcc44[_0x5b9ebc('0x27')](_0x278c23)[_0x5b9ebc('0x6')](function(_0x40f2e6){return _0x40f2e6;});return null;};}function removeEntity(_0x2ad887){return function(_0x452378){const _0x4ef314=a610_0x2df9;if(_0x452378)return _0x452378[_0x4ef314('0x11')]()['then'](function(){const _0x38b6b1=_0x4ef314;_0x2ad887[_0x38b6b1('0x0')](0xcc)['end']();});};}function handleEntityNotFound(_0x36061d){return function(_0x2b11c7){const _0x185f73=a610_0x2df9;return!_0x2b11c7&&_0x36061d[_0x185f73('0xf')](0x194),_0x2b11c7;};}function handleError(_0x4fd766,_0x476553){return _0x476553=_0x476553||0x1f4,function(_0x502b2e){const _0x3bb5bd=a610_0x2df9;logger[_0x3bb5bd('0x4')](_0x502b2e[_0x3bb5bd('0x13')]),_0x502b2e[_0x3bb5bd('0x1f')]&&delete _0x502b2e[_0x3bb5bd('0x1f')],_0x4fd766[_0x3bb5bd('0x0')](_0x476553)[_0x3bb5bd('0x3')](_0x502b2e);};}exports[_0x15a5ad('0x7')]=function(_0x430457,_0x1046e4){const _0x7e6e17=_0x15a5ad;let _0x24ae8d={};const _0x16fe40={},_0x5f33b9={'count':0x0,'rows':[]},_0xfb3cf2=_[_0x7e6e17('0x9')](db[_0x7e6e17('0x16')]['rawAttributes'],function(_0x54e8ce){const _0x52b7f6=_0x7e6e17;return{'name':_0x54e8ce[_0x52b7f6('0x14')],'type':_0x54e8ce[_0x52b7f6('0x12')][_0x52b7f6('0x23')]};});_0x16fe40[_0x7e6e17('0x2d')]=_['map'](_0xfb3cf2,'name'),_0x16fe40[_0x7e6e17('0xa')]=_[_0x7e6e17('0x19')](_0x430457[_0x7e6e17('0xa')]),_0x16fe40[_0x7e6e17('0x33')]=_[_0x7e6e17('0x29')](_0x16fe40[_0x7e6e17('0x2d')],_0x16fe40[_0x7e6e17('0xa')]),_0x24ae8d[_0x7e6e17('0x24')]=_[_0x7e6e17('0x29')](_0x16fe40[_0x7e6e17('0x2d')],qs[_0x7e6e17('0x26')](_0x430457['query'][_0x7e6e17('0x26')])),_0x24ae8d[_0x7e6e17('0x24')]=_0x24ae8d['attributes'][_0x7e6e17('0x20')]?_0x24ae8d[_0x7e6e17('0x24')]:_0x16fe40[_0x7e6e17('0x2d')];typeof _0x430457['query'][_0x7e6e17('0x1d')]===_0x7e6e17('0x25')&&(_0x24ae8d[_0x7e6e17('0x2c')]=qs[_0x7e6e17('0x2c')](_0x430457[_0x7e6e17('0xa')]['limit']),_0x24ae8d['offset']=qs[_0x7e6e17('0x10')](_0x430457['query'][_0x7e6e17('0x10')]));_0x24ae8d[_0x7e6e17('0x32')]=qs[_0x7e6e17('0x2e')](_0x430457[_0x7e6e17('0xa')][_0x7e6e17('0x2e')]),_0x24ae8d['where']=qs[_0x7e6e17('0x33')](_[_0x7e6e17('0x22')](_0x430457[_0x7e6e17('0xa')],_0x16fe40[_0x7e6e17('0x33')]),_0xfb3cf2);_0x430457[_0x7e6e17('0xa')][_0x7e6e17('0x15')]&&(_0x24ae8d[_0x7e6e17('0x31')]=_[_0x7e6e17('0xe')](_0x24ae8d['where'],{[Op['or']]:_[_0x7e6e17('0x9')](_0xfb3cf2,function(_0x2fa7a1){const _0x1ca617=_0x7e6e17;if(_0x2fa7a1[_0x1ca617('0x12')]!==_0x1ca617('0x21')){const _0x21aab2={};return _0x21aab2[_0x2fa7a1['name']]={[Op[_0x1ca617('0x1a')]]:'%'+_0x430457['query'][_0x1ca617('0x15')]+'%'},_0x21aab2;}})}));_0x24ae8d=_['merge']({},_0x24ae8d,_0x430457[_0x7e6e17('0x34')]);const _0x46c8a1={'where':_0x24ae8d['where']};return db['SquareReport'][_0x7e6e17('0xc')](_0x46c8a1)[_0x7e6e17('0x6')](function(_0x376314){const _0x39427e=_0x7e6e17;return _0x5f33b9[_0x39427e('0xc')]=_0x376314,_0x430457[_0x39427e('0xa')]['includeAll']&&(_0x24ae8d[_0x39427e('0x2')]=[{'all':!![]}]),db['SquareReport']['findAll'](_0x24ae8d);})[_0x7e6e17('0x6')](function(_0x2aa46b){const _0x2461f6=_0x7e6e17;return _0x5f33b9[_0x2461f6('0x18')]=_0x2aa46b,_0x5f33b9;})['then'](respondWithFilteredResult(_0x1046e4,_0x24ae8d))[_0x7e6e17('0x28')](handleError(_0x1046e4,null));},exports[_0x15a5ad('0x1')]=function(_0x20dbaa,_0x88670a){const _0x4ebd2e=_0x15a5ad;let _0x5617d9={'raw':!![],'where':{'id':_0x20dbaa[_0x4ebd2e('0x1c')]['id']}};const _0x1f3250={};return _0x1f3250[_0x4ebd2e('0x2d')]=_[_0x4ebd2e('0x19')](db[_0x4ebd2e('0x16')][_0x4ebd2e('0x1b')]),_0x1f3250[_0x4ebd2e('0xa')]=_[_0x4ebd2e('0x19')](_0x20dbaa[_0x4ebd2e('0xa')]),_0x1f3250[_0x4ebd2e('0x33')]=_[_0x4ebd2e('0x29')](_0x1f3250[_0x4ebd2e('0x2d')],_0x1f3250['query']),_0x5617d9[_0x4ebd2e('0x24')]=_[_0x4ebd2e('0x29')](_0x1f3250['model'],qs['fields'](_0x20dbaa[_0x4ebd2e('0xa')]['fields'])),_0x5617d9[_0x4ebd2e('0x24')]=_0x5617d9[_0x4ebd2e('0x24')]['length']?_0x5617d9['attributes']:_0x1f3250[_0x4ebd2e('0x2d')],_0x20dbaa[_0x4ebd2e('0xa')][_0x4ebd2e('0x8')]&&(_0x5617d9['include']=[{'all':!![]}]),_0x5617d9=_[_0x4ebd2e('0xe')]({},_0x5617d9,_0x20dbaa[_0x4ebd2e('0x34')]),db[_0x4ebd2e('0x16')]['findOne'](_0x5617d9)['then'](handleEntityNotFound(_0x88670a,null))[_0x4ebd2e('0x6')](respondWithResult(_0x88670a,null))['catch'](handleError(_0x88670a,null));},exports[_0x15a5ad('0x5')]=function(_0x451363,_0x4b1306){const _0xabf34c=_0x15a5ad;return db[_0xabf34c('0x16')]['create'](_0x451363['body'],{})[_0xabf34c('0x6')](respondWithResult(_0x4b1306,0xc9))['catch'](handleError(_0x4b1306,null));},exports[_0x15a5ad('0x27')]=function(_0x398989,_0x3f49fc){const _0x24bb34=_0x15a5ad;return _0x398989[_0x24bb34('0xb')]['id']&&delete _0x398989['body']['id'],db['SquareReport'][_0x24bb34('0x2f')]({'where':{'id':_0x398989[_0x24bb34('0x1c')]['id']}})[_0x24bb34('0x6')](handleEntityNotFound(_0x3f49fc,null))[_0x24bb34('0x6')](saveUpdates(_0x398989[_0x24bb34('0xb')],null))[_0x24bb34('0x6')](respondWithResult(_0x3f49fc,null))[_0x24bb34('0x28')](handleError(_0x3f49fc,null));},exports['destroy']=function(_0x4e0d6b,_0x308e7c){const _0x30cceb=_0x15a5ad;return db[_0x30cceb('0x16')][_0x30cceb('0x2f')]({'where':{'id':_0x4e0d6b[_0x30cceb('0x1c')]['id']}})[_0x30cceb('0x6')](handleEntityNotFound(_0x308e7c,null))[_0x30cceb('0x6')](removeEntity(_0x308e7c,null))[_0x30cceb('0x28')](handleError(_0x308e7c,null));},exports['describe']=function(_0x30e86c,_0x5a57aa){const _0xd9de03=_0x15a5ad;return db['SquareReport'][_0xd9de03('0x2a')]()['then'](respondWithResult(_0x5a57aa,null))['catch'](handleError(_0x5a57aa,null));}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index d27fd40..93cc65d 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a611_0x400c=['leaveAt','report_square','define','project_name','SquareReport','uid_pname','exports','./squareReport.attributes','uniqueid'];(function(_0x530a3a,_0x400cdf){const _0x29e449=function(_0x5850c5){while(--_0x5850c5){_0x530a3a['push'](_0x530a3a['shift']());}};_0x29e449(++_0x400cdf);}(a611_0x400c,0x16f));const a611_0x29e4=function(_0x530a3a,_0x400cdf){_0x530a3a=_0x530a3a-0x0;let _0x29e449=a611_0x400c[_0x530a3a];return _0x29e449;};const _0x4230d3=a611_0x29e4;'use strict';const attributes=require(_0x4230d3('0x0'));module[_0x4230d3('0x8')]=function(_0x5850c5){const _0x938e2=_0x4230d3,_0x3bf603=_0x5850c5[_0x938e2('0x4')](_0x938e2('0x6'),attributes,{'tableName':_0x938e2('0x3'),'paranoid':![],'indexes':[{'name':_0x938e2('0x7'),'fields':[_0x938e2('0x1'),_0x938e2('0x5')]},{'name':_0x938e2('0x2'),'fields':['leaveAt']}],'timestamps':!![]});return _0x3bf603;}; \ No newline at end of file +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 diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index a220c02..ddde87c 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a612_0x1d62=['../../config/logger','debug','raw','SquareReport','attributes','create','UpdateSquareReport','../../mysqldb','message','options','CreateSquareReport','info','stringify','then','catch','where','limit','error','rpc'];(function(_0x288fc4,_0x1d6267){const _0x57c167=function(_0x20b821){while(--_0x20b821){_0x288fc4['push'](_0x288fc4['shift']());}};_0x57c167(++_0x1d6267);}(a612_0x1d62,0x175));const a612_0x57c1=function(_0x288fc4,_0x1d6267){_0x288fc4=_0x288fc4-0x0;let _0x57c167=a612_0x1d62[_0x288fc4];return _0x57c167;};const _0x5eed91=a612_0x57c1;'use strict';const db=require(_0x5eed91('0xe'))['db'],logger=require(_0x5eed91('0x7'))(_0x5eed91('0x6'));exports[_0x5eed91('0x11')]=function(_0x20b821){const _0x53c07c=this;return new Promise(function(_0x584eb7,_0x24d4fd){const _0x3b300a=a612_0x57c1;return db['SquareReport'][_0x3b300a('0xc')](_0x20b821['body'],{'raw':_0x20b821[_0x3b300a('0x10')]?_0x20b821[_0x3b300a('0x10')]['raw']===undefined?!![]:![]:!![]})[_0x3b300a('0x1')](function(_0x398e87){const _0x31ec15=_0x3b300a;logger[_0x31ec15('0x12')]('CreateSquareReport',_0x20b821),logger[_0x31ec15('0x8')](_0x31ec15('0x11'),_0x20b821,JSON[_0x31ec15('0x0')](_0x398e87)),_0x584eb7(_0x398e87);})[_0x3b300a('0x2')](function(_0x36e4ca){const _0x559bd8=_0x3b300a;logger[_0x559bd8('0x5')](_0x559bd8('0x11'),_0x36e4ca[_0x559bd8('0xf')],_0x20b821),_0x24d4fd(_0x53c07c[_0x559bd8('0x5')](0x1f4,_0x36e4ca['message']));});});},exports['UpdateSquareReport']=function(_0xc2da16){const _0x50589b=this;return new Promise(function(_0x27c276,_0x3764b6){const _0x77b1=a612_0x57c1;return db[_0x77b1('0xa')]['update'](_0xc2da16['body'],{'raw':_0xc2da16[_0x77b1('0x10')]?_0xc2da16[_0x77b1('0x10')][_0x77b1('0x9')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xc2da16[_0x77b1('0x10')]?_0xc2da16['options'][_0x77b1('0x3')]||null:null,'attributes':_0xc2da16[_0x77b1('0x10')]?_0xc2da16[_0x77b1('0x10')][_0x77b1('0xb')]||null:null,'limit':_0xc2da16['options']?_0xc2da16[_0x77b1('0x10')][_0x77b1('0x4')]||null:null})['then'](function(_0x29b07f){const _0x13d8db=_0x77b1;logger[_0x13d8db('0x12')](_0x13d8db('0xd'),_0xc2da16),logger['debug'](_0x13d8db('0xd'),_0xc2da16,JSON['stringify'](_0x29b07f)),_0x27c276(_0x29b07f);})[_0x77b1('0x2')](function(_0x3d62d6){const _0xfc100c=_0x77b1;logger[_0xfc100c('0x5')]('UpdateSquareReport',_0x3d62d6[_0xfc100c('0xf')],_0xc2da16),_0x3764b6(_0x50589b[_0xfc100c('0x5')](0x1f4,_0x3d62d6[_0xfc100c('0xf')]));});});}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index fdea56d..96f4b4b 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a613_0x2122=['create','delete','get','./squareReportDetail.controller','show','update','index','put','/:id','post','../../components/auth/service','destroy','express','isAuthenticated','/describe'];(function(_0x29a40d,_0x212286){const _0x47a944=function(_0x2bc2ca){while(--_0x2bc2ca){_0x29a40d['push'](_0x29a40d['shift']());}};_0x47a944(++_0x212286);}(a613_0x2122,0x94));const a613_0x47a9=function(_0x29a40d,_0x212286){_0x29a40d=_0x29a40d-0x0;let _0x47a944=a613_0x2122[_0x29a40d];return _0x47a944;};const _0xbfbff3=a613_0x47a9;'use strict';const express=require(_0xbfbff3('0xe')),router=express['Router'](),auth=require(_0xbfbff3('0xc')),controller=require(_0xbfbff3('0x5'));router[_0xbfbff3('0x4')]('/',auth[_0xbfbff3('0x0')](),controller[_0xbfbff3('0x8')]),router[_0xbfbff3('0x4')](_0xbfbff3('0x1'),auth[_0xbfbff3('0x0')](),controller['describe']),router['get'](_0xbfbff3('0xa'),auth['isAuthenticated'](),controller[_0xbfbff3('0x6')]),router[_0xbfbff3('0xb')]('/',auth[_0xbfbff3('0x0')](),controller[_0xbfbff3('0x2')]),router[_0xbfbff3('0x9')](_0xbfbff3('0xa'),auth[_0xbfbff3('0x0')](),controller[_0xbfbff3('0x7')]),router[_0xbfbff3('0x3')]('/:id',auth[_0xbfbff3('0x0')](),controller[_0xbfbff3('0xd')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.attributes.js b/server/api/squareReportDetail/squareReportDetail.attributes.js index 19f497f..cedb9c3 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a614_0xe103=['STRING','exports'];(function(_0x19ee9c,_0xe103af){const _0x41423e=function(_0x5875d7){while(--_0x5875d7){_0x19ee9c['push'](_0x19ee9c['shift']());}};_0x41423e(++_0xe103af);}(a614_0xe103,0x10f));const a614_0x4142=function(_0x19ee9c,_0xe103af){_0x19ee9c=_0x19ee9c-0x0;let _0x41423e=a614_0xe103[_0x19ee9c];return _0x41423e;};const _0x19fb2a=a614_0x4142;'use strict';const Sequelize=require('sequelize');module[_0x19fb2a('0x0')]={'uniqueid':{'type':Sequelize[_0x19fb2a('0x1')]},'node':{'type':Sequelize['STRING']},'application':{'type':Sequelize[_0x19fb2a('0x1')]},'data':{'type':Sequelize['TEXT']},'project_name':{'type':Sequelize[_0x19fb2a('0x1')]},'callerid':{'type':Sequelize[_0x19fb2a('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index 6b1ae4a..605368f 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a615_0x5ae9=['merge','set','filter','model','type','sequelize','key','fields','includeAll','VIRTUAL','then','findOne','json','stack','count','../../mysqldb','../../components/parsers/qs','nolimit','where','like','rawAttributes','update','keys','length','end','filters','catch','Content-Range','map','status','offset','sendStatus','create','findAll','undefined','attributes','limit','send','name','fieldName','include','api','options','intersection','params','sort','describe','error','lodash','query','destroy','SquareDetailsReport','pick','body'];(function(_0x5e1abd,_0x5ae9ef){const _0x330f48=function(_0x407858){while(--_0x407858){_0x5e1abd['push'](_0x5e1abd['shift']());}};_0x330f48(++_0x5ae9ef);}(a615_0x5ae9,0x1a5));const a615_0x330f=function(_0x5e1abd,_0x5ae9ef){_0x5e1abd=_0x5e1abd-0x0;let _0x330f48=a615_0x5ae9[_0x5e1abd];return _0x330f48;};const _0x1e6e9e=a615_0x330f;'use strict';const _=require(_0x1e6e9e('0x5')),qs=require(_0x1e6e9e('0x1b')),logger=require('../../config/logger')(_0x1e6e9e('0x34')),db=require(_0x1e6e9e('0x1a'))['db'],{Op}=require(_0x1e6e9e('0x10'));function respondWithResult(_0x407858,_0xd6a5ec){return _0xd6a5ec=_0xd6a5ec||0xc8,function(_0x5b3242){const _0xe22774=a615_0x330f;if(_0x5b3242)return _0x407858[_0xe22774('0x28')](_0xd6a5ec)[_0xe22774('0x17')](_0x5b3242);};}function respondWithFilteredResult(_0x3f385c,_0x11dade){return function(_0x46978e){const _0x28b512=a615_0x330f;if(_0x46978e){const _0x4d3528=_0x46978e['count'],_0x3f0c38=_0x11dade['offset'];let _0x96247=_0x11dade[_0x28b512('0x29')]+_0x11dade[_0x28b512('0x2f')],_0x216401;return _0x96247>=_0x4d3528?(_0x96247=_0x4d3528,_0x216401=0xc8):_0x216401=0xce,_0x3f385c[_0x28b512('0x28')](_0x216401),_0x3f385c[_0x28b512('0xc')](_0x28b512('0x26'),_0x3f0c38+'-'+_0x96247+'/'+_0x4d3528)[_0x28b512('0x17')](_0x46978e);}return null;};}function saveUpdates(_0x4d40e8){return function(_0x141a11){const _0x1a40e4=a615_0x330f;if(_0x141a11)return _0x141a11[_0x1a40e4('0x20')](_0x4d40e8)[_0x1a40e4('0x15')](function(_0x2648b1){return _0x2648b1;});return null;};}function removeEntity(_0xef149b){return function(_0x4e521c){const _0x10589c=a615_0x330f;if(_0x4e521c)return _0x4e521c['destroy']()[_0x10589c('0x15')](function(){const _0x401d6f=_0x10589c;_0xef149b[_0x401d6f('0x28')](0xcc)[_0x401d6f('0x23')]();});};}function handleEntityNotFound(_0x8d9236){return function(_0x1454cb){const _0x47c90d=a615_0x330f;return!_0x1454cb&&_0x8d9236[_0x47c90d('0x2a')](0x194),_0x1454cb;};}function handleError(_0x3e5d03,_0x3f0f9f){return _0x3f0f9f=_0x3f0f9f||0x1f4,function(_0xa5b7e1){const _0x238248=a615_0x330f;logger[_0x238248('0x4')](_0xa5b7e1[_0x238248('0x18')]),_0xa5b7e1[_0x238248('0x31')]&&delete _0xa5b7e1[_0x238248('0x31')],_0x3e5d03[_0x238248('0x28')](_0x3f0f9f)[_0x238248('0x30')](_0xa5b7e1);};}exports['index']=function(_0x2ab027,_0xa700f3){const _0x39b18f=_0x1e6e9e;let _0x283b3f={};const _0x55a71f={},_0x414096={'count':0x0,'rows':[]},_0x98141=_['map'](db[_0x39b18f('0x8')][_0x39b18f('0x1f')],function(_0x9d60cd){const _0xdeaea4=_0x39b18f;return{'name':_0x9d60cd[_0xdeaea4('0x32')],'type':_0x9d60cd[_0xdeaea4('0xf')][_0xdeaea4('0x11')]};});_0x55a71f[_0x39b18f('0xe')]=_['map'](_0x98141,_0x39b18f('0x31')),_0x55a71f[_0x39b18f('0x6')]=_[_0x39b18f('0x21')](_0x2ab027[_0x39b18f('0x6')]),_0x55a71f[_0x39b18f('0x24')]=_[_0x39b18f('0x0')](_0x55a71f[_0x39b18f('0xe')],_0x55a71f['query']),_0x283b3f['attributes']=_['intersection'](_0x55a71f[_0x39b18f('0xe')],qs[_0x39b18f('0x12')](_0x2ab027['query'][_0x39b18f('0x12')])),_0x283b3f[_0x39b18f('0x2e')]=_0x283b3f[_0x39b18f('0x2e')][_0x39b18f('0x22')]?_0x283b3f[_0x39b18f('0x2e')]:_0x55a71f[_0x39b18f('0xe')];typeof _0x2ab027[_0x39b18f('0x6')][_0x39b18f('0x1c')]===_0x39b18f('0x2d')&&(_0x283b3f['limit']=qs[_0x39b18f('0x2f')](_0x2ab027['query'][_0x39b18f('0x2f')]),_0x283b3f['offset']=qs['offset'](_0x2ab027[_0x39b18f('0x6')]['offset']));_0x283b3f['order']=qs[_0x39b18f('0x2')](_0x2ab027[_0x39b18f('0x6')][_0x39b18f('0x2')]),_0x283b3f[_0x39b18f('0x1d')]=qs[_0x39b18f('0x24')](_[_0x39b18f('0x9')](_0x2ab027[_0x39b18f('0x6')],_0x55a71f[_0x39b18f('0x24')]),_0x98141);_0x2ab027['query'][_0x39b18f('0xd')]&&(_0x283b3f[_0x39b18f('0x1d')]=_[_0x39b18f('0xb')](_0x283b3f[_0x39b18f('0x1d')],{[Op['or']]:_[_0x39b18f('0x27')](_0x98141,function(_0x4d48df){const _0x35d7d5=_0x39b18f;if(_0x4d48df[_0x35d7d5('0xf')]!==_0x35d7d5('0x14')){const _0x136fdf={};return _0x136fdf[_0x4d48df[_0x35d7d5('0x31')]]={[Op[_0x35d7d5('0x1e')]]:'%'+_0x2ab027[_0x35d7d5('0x6')][_0x35d7d5('0xd')]+'%'},_0x136fdf;}})}));_0x283b3f=_[_0x39b18f('0xb')]({},_0x283b3f,_0x2ab027[_0x39b18f('0x35')]);const _0xab1f35={'where':_0x283b3f['where']};return db[_0x39b18f('0x8')][_0x39b18f('0x19')](_0xab1f35)[_0x39b18f('0x15')](function(_0x170b7a){const _0x4cdd5c=_0x39b18f;return _0x414096[_0x4cdd5c('0x19')]=_0x170b7a,_0x2ab027['query'][_0x4cdd5c('0x13')]&&(_0x283b3f[_0x4cdd5c('0x33')]=[{'all':!![]}]),db[_0x4cdd5c('0x8')][_0x4cdd5c('0x2c')](_0x283b3f);})[_0x39b18f('0x15')](function(_0x32ac10){return _0x414096['rows']=_0x32ac10,_0x414096;})[_0x39b18f('0x15')](respondWithFilteredResult(_0xa700f3,_0x283b3f))[_0x39b18f('0x25')](handleError(_0xa700f3,null));},exports['show']=function(_0x878573,_0x32cfba){const _0x40c047=_0x1e6e9e;let _0x1ad2c5={'raw':!![],'where':{'id':_0x878573[_0x40c047('0x1')]['id']}};const _0x1ec060={};return _0x1ec060[_0x40c047('0xe')]=_[_0x40c047('0x21')](db[_0x40c047('0x8')][_0x40c047('0x1f')]),_0x1ec060['query']=_['keys'](_0x878573[_0x40c047('0x6')]),_0x1ec060['filters']=_[_0x40c047('0x0')](_0x1ec060[_0x40c047('0xe')],_0x1ec060[_0x40c047('0x6')]),_0x1ad2c5[_0x40c047('0x2e')]=_[_0x40c047('0x0')](_0x1ec060['model'],qs[_0x40c047('0x12')](_0x878573[_0x40c047('0x6')][_0x40c047('0x12')])),_0x1ad2c5[_0x40c047('0x2e')]=_0x1ad2c5[_0x40c047('0x2e')][_0x40c047('0x22')]?_0x1ad2c5[_0x40c047('0x2e')]:_0x1ec060['model'],_0x878573['query'][_0x40c047('0x13')]&&(_0x1ad2c5[_0x40c047('0x33')]=[{'all':!![]}]),_0x1ad2c5=_[_0x40c047('0xb')]({},_0x1ad2c5,_0x878573[_0x40c047('0x35')]),db['SquareDetailsReport'][_0x40c047('0x16')](_0x1ad2c5)[_0x40c047('0x15')](handleEntityNotFound(_0x32cfba,null))[_0x40c047('0x15')](respondWithResult(_0x32cfba,null))[_0x40c047('0x25')](handleError(_0x32cfba,null));},exports['create']=function(_0x3da915,_0x238e43){const _0x2d111d=_0x1e6e9e;return db[_0x2d111d('0x8')][_0x2d111d('0x2b')](_0x3da915[_0x2d111d('0xa')],{})[_0x2d111d('0x15')](respondWithResult(_0x238e43,0xc9))['catch'](handleError(_0x238e43,null));},exports[_0x1e6e9e('0x20')]=function(_0x566c1f,_0x27875e){const _0x5dda6c=_0x1e6e9e;return _0x566c1f[_0x5dda6c('0xa')]['id']&&delete _0x566c1f[_0x5dda6c('0xa')]['id'],db['SquareDetailsReport']['findOne']({'where':{'id':_0x566c1f[_0x5dda6c('0x1')]['id']}})['then'](handleEntityNotFound(_0x27875e,null))[_0x5dda6c('0x15')](saveUpdates(_0x566c1f['body'],null))[_0x5dda6c('0x15')](respondWithResult(_0x27875e,null))['catch'](handleError(_0x27875e,null));},exports[_0x1e6e9e('0x7')]=function(_0x23ed3f,_0x227f3e){const _0x191db8=_0x1e6e9e;return db['SquareDetailsReport'][_0x191db8('0x16')]({'where':{'id':_0x23ed3f['params']['id']}})[_0x191db8('0x15')](handleEntityNotFound(_0x227f3e,null))[_0x191db8('0x15')](removeEntity(_0x227f3e,null))['catch'](handleError(_0x227f3e,null));},exports[_0x1e6e9e('0x3')]=function(_0x1d92a7,_0x426cb6){const _0x531701=_0x1e6e9e;return db[_0x531701('0x8')][_0x531701('0x3')]()[_0x531701('0x15')](respondWithResult(_0x426cb6,null))[_0x531701('0x25')](handleError(_0x426cb6,null));}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index ba81317..d25bfb8 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a616_0x35ee=['exports','report_square_details'];(function(_0x54fd50,_0x35ee8d){const _0x9422ad=function(_0x1774a1){while(--_0x1774a1){_0x54fd50['push'](_0x54fd50['shift']());}};_0x9422ad(++_0x35ee8d);}(a616_0x35ee,0x166));const a616_0x9422=function(_0x54fd50,_0x35ee8d){_0x54fd50=_0x54fd50-0x0;let _0x9422ad=a616_0x35ee[_0x54fd50];return _0x9422ad;};const _0x32c1fd=a616_0x9422;'use strict';const attributes=require('./squareReportDetail.attributes');module[_0x32c1fd('0x0')]=function(_0x1774a1){const _0x5c3741=_0x32c1fd,_0xfd0b1b=_0x1774a1['define']('SquareDetailsReport',attributes,{'tableName':_0x5c3741('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xfd0b1b;}; \ No newline at end of file +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 diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index 75967ee..132bf49 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a617_0xd006=['SquareDetailsReport','error','catch','body','rpc','options','message','then','CreateSquareDetailsReport','debug','create','info'];(function(_0x2cf755,_0xd00617){const _0x34e7fa=function(_0x4ba64f){while(--_0x4ba64f){_0x2cf755['push'](_0x2cf755['shift']());}};_0x34e7fa(++_0xd00617);}(a617_0xd006,0xd8));const a617_0x34e7=function(_0x2cf755,_0xd00617){_0x2cf755=_0x2cf755-0x0;let _0x34e7fa=a617_0xd006[_0x2cf755];return _0x34e7fa;};const _0x4a945f=a617_0x34e7;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x4a945f('0x4'));exports[_0x4a945f('0x8')]=function(_0x4ba64f){const _0x470d46=this;return new Promise(function(_0x3f448e,_0x120e26){const _0x4a656f=a617_0x34e7;return db[_0x4a656f('0x0')][_0x4a656f('0xa')](_0x4ba64f[_0x4a656f('0x3')],{'raw':_0x4ba64f[_0x4a656f('0x5')]?_0x4ba64f[_0x4a656f('0x5')]['raw']===undefined?!![]:![]:!![]})[_0x4a656f('0x7')](function(_0x394400){const _0x4ef05f=_0x4a656f;logger[_0x4ef05f('0xb')](_0x4ef05f('0x8'),_0x4ba64f),logger[_0x4ef05f('0x9')]('CreateSquareDetailsReport',_0x4ba64f,JSON['stringify'](_0x394400)),_0x3f448e(_0x394400);})[_0x4a656f('0x2')](function(_0x2efa21){const _0x4fb22a=_0x4a656f;logger[_0x4fb22a('0x1')]('CreateSquareDetailsReport',_0x2efa21[_0x4fb22a('0x6')],_0x4ba64f),_0x120e26(_0x470d46['error'](0x1f4,_0x2efa21['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/system/index.js b/server/api/system/index.js index 805565e..99015ca 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a618_0x24ef=['index','get','isAuthenticated','Router','../../components/auth/service','exports','./system.controller'];(function(_0x11ed4e,_0x24ef43){const _0xa15ef8=function(_0x4a701a){while(--_0x4a701a){_0x11ed4e['push'](_0x11ed4e['shift']());}};_0xa15ef8(++_0x24ef43);}(a618_0x24ef,0x1e0));const a618_0xa15e=function(_0x11ed4e,_0x24ef43){_0x11ed4e=_0x11ed4e-0x0;let _0xa15ef8=a618_0x24ef[_0x11ed4e];return _0xa15ef8;};const _0x78db1c=a618_0xa15e;'use strict';const express=require('express'),router=express[_0x78db1c('0x6')](),auth=require(_0x78db1c('0x0')),controller=require(_0x78db1c('0x2'));router[_0x78db1c('0x4')]('/',auth[_0x78db1c('0x5')](),controller[_0x78db1c('0x3')]),router[_0x78db1c('0x4')]('/process/:pid/kill',auth[_0x78db1c('0x5')](),controller['killProcess']),module[_0x78db1c('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index 703a756..e41f05c 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a619_0x48cc=['index','name','components/import/cm','pid','Process\x20with\x20pid\x20%s\x20killed\x20correctly','params','killProcess','inspect','json','catch','send','SIGINT','Process\x20with\x20pid\x20%s\x20not\x20found!','indexOf','error','ps\x20-p\x20%s\x20-ww\x20-o\x20args','util','format','status','../../config/logger','api','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s'];(function(_0x538b11,_0x48cc17){const _0x2a7d8a=function(_0x2af21c){while(--_0x2af21c){_0x538b11['push'](_0x538b11['shift']());}};_0x2a7d8a(++_0x48cc17);}(a619_0x48cc,0x6f));const a619_0x2a7d=function(_0x538b11,_0x48cc17){_0x538b11=_0x538b11-0x0;let _0x2a7d8a=a619_0x48cc[_0x538b11];return _0x2a7d8a;};const _0x4fc097=a619_0x2a7d;'use strict';const info=require('systeminformation'),exec=require('child_process')['exec'],logger=require(_0x4fc097('0x12'))(_0x4fc097('0x13')),util=require(_0x4fc097('0xf'));function handleError(_0x2af21c,_0x2b62ca,_0x157ff){return _0x2b62ca=_0x2b62ca||0x1f4,function(_0x54f489){const _0x388cc5=a619_0x2a7d;logger[_0x388cc5('0xd')](_0x388cc5('0x14'),_0x157ff,_0x2b62ca,util[_0x388cc5('0x6')](_0x54f489,{'showHidden':![],'depth':null})),delete _0x54f489[_0x388cc5('0x0')],_0x2af21c[_0x388cc5('0x11')](_0x2b62ca)[_0x388cc5('0x9')](_0x54f489);};}exports[_0x4fc097('0x15')]=function(_0x36998d,_0x3069fa){const _0x4267ef=_0x4fc097;return info['getAllData']()['then'](function(_0x351334){const _0x5ea820=a619_0x2a7d;return _0x3069fa[_0x5ea820('0x11')](0xc8)[_0x5ea820('0x7')](_0x351334);})[_0x4267ef('0x8')](function(_0x396532){const _0xc1b299=_0x4267ef;return _0x3069fa[_0xc1b299('0x11')](0x1f4)['json'](_0x396532);});},exports['killProcess']=function(_0x589a54,_0x454a08){const _0x36e625=_0x4fc097,_0x520b19=[_0x36e625('0x1')];return new Promise(function(_0x51f76c,_0x3b37ae){const _0x1ac140=_0x36e625;return exec(util[_0x1ac140('0x10')](_0x1ac140('0xe'),_0x589a54['params'][_0x1ac140('0x2')]),function(_0x7cf772,_0x5a49e6){if(_0x7cf772)return _0x3b37ae(_0x7cf772);return _0x51f76c(_0x5a49e6);});})['then'](function(_0x114e53){const _0x2049fd=_0x36e625;let _0x129cd1=![];for(let _0x4ef184=0x0,_0x79914b=_0x520b19['length'];_0x4ef184<_0x79914b,_0x129cd1===![];_0x4ef184+=0x1){_0x114e53[_0x2049fd('0xc')](_0x520b19[_0x4ef184])>=0x0&&(_0x129cd1=!![]);}if(!_0x129cd1)throw new Error(util[_0x2049fd('0x10')](_0x2049fd('0xb'),_0x589a54['params']['pid']));return process['kill'](_0x589a54[_0x2049fd('0x4')][_0x2049fd('0x2')],_0x2049fd('0xa')),_0x454a08['status'](0xc8)[_0x2049fd('0x7')]({'message':util[_0x2049fd('0x10')](_0x2049fd('0x3'),_0x589a54['params'][_0x2049fd('0x2')])});})[_0x36e625('0x8')](handleError(_0x454a08,null,_0x36e625('0x5')));}; \ No newline at end of file +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 diff --git a/server/api/tag/index.js b/server/api/tag/index.js index 6cfa76c..a54888a 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a620_0x3193=['post','isAuthenticated','destroy','./tag.controller','create','get','Router','delete','update','/:id','../../components/auth/service','put'];(function(_0x4b2272,_0x3193ad){const _0x291897=function(_0x54bfd0){while(--_0x54bfd0){_0x4b2272['push'](_0x4b2272['shift']());}};_0x291897(++_0x3193ad);}(a620_0x3193,0xa0));const a620_0x2918=function(_0x4b2272,_0x3193ad){_0x4b2272=_0x4b2272-0x0;let _0x291897=a620_0x3193[_0x4b2272];return _0x291897;};const _0x22f581=a620_0x2918;'use strict';const express=require('express'),router=express[_0x22f581('0x2')](),auth=require(_0x22f581('0x6')),controller=require(_0x22f581('0xb'));router[_0x22f581('0x1')]('/',auth[_0x22f581('0x9')](),controller['index']),router[_0x22f581('0x1')](_0x22f581('0x5'),auth[_0x22f581('0x9')](),controller['show']),router[_0x22f581('0x8')]('/',auth[_0x22f581('0x9')](),controller[_0x22f581('0x0')]),router[_0x22f581('0x7')](_0x22f581('0x5'),auth[_0x22f581('0x9')](),controller[_0x22f581('0x4')]),router[_0x22f581('0x3')](_0x22f581('0x5'),auth['isAuthenticated'](),controller[_0x22f581('0xa')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index d20ce57..129175b 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a621_0x2f16=['STRING','sequelize','name'];(function(_0x4f895a,_0x2f1626){const _0x102b08=function(_0x3e4c42){while(--_0x3e4c42){_0x4f895a['push'](_0x4f895a['shift']());}};_0x102b08(++_0x2f1626);}(a621_0x2f16,0xec));const a621_0x102b=function(_0x4f895a,_0x2f1626){_0x4f895a=_0x4f895a-0x0;let _0x102b08=a621_0x2f16[_0x4f895a];return _0x102b08;};const _0x19e2f0=a621_0x102b;'use strict';const Sequelize=require(_0x19e2f0('0x2'));module['exports']={'name':{'type':Sequelize[_0x19e2f0('0x1')],'unique':_0x19e2f0('0x0'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize[_0x19e2f0('0x1')],'defaultValue':'#0091EA'},'description':{'type':Sequelize[_0x19e2f0('0x1')]}}; \ No newline at end of file +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 diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index 4606c9a..40ee89a 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a622_0x37f6=['index','update','set','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','filters','offset','rawAttributes','Tag','intersection','userProfileId','autoAssociation','api','UserProfileResource','catch','query','where','options','findOne','Content-Range','params','includeAll','undefined','../../components/parsers/qs','UserProfileSection','fields','order','findAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','end','../../config/logger','lodash','attributes','length','error','map','body','sort','count','fieldName','keys','merge','status','name','get','sequelize','then','create','model','include','limit','destroy','user','filter'];(function(_0x101c46,_0x37f629){const _0x447219=function(_0x24c32a){while(--_0x24c32a){_0x101c46['push'](_0x101c46['shift']());}};_0x447219(++_0x37f629);}(a622_0x37f6,0x17d));const a622_0x4472=function(_0x101c46,_0x37f629){_0x101c46=_0x101c46-0x0;let _0x447219=a622_0x37f6[_0x101c46];return _0x447219;};const _0xae08c3=a622_0x4472;'use strict';const _=require(_0xae08c3('0x1c')),qs=require(_0xae08c3('0x14')),logger=require(_0xae08c3('0x1b'))(_0xae08c3('0x9')),db=require('../../mysqldb')['db'],{Op}=require(_0xae08c3('0x2a'));function respondWithResult(_0x24c32a,_0x359967){return _0x359967=_0x359967||0xc8,function(_0x1d2c44){const _0x283a6d=a622_0x4472;if(_0x1d2c44)return _0x24c32a[_0x283a6d('0x27')](_0x359967)[_0x283a6d('0x0')](_0x1d2c44);};}function respondWithFilteredResult(_0x56f989,_0x18cd46){return function(_0x31c6fe){const _0x24deab=a622_0x4472;if(_0x31c6fe){const _0x164c04=_0x31c6fe[_0x24deab('0x23')],_0x2424b3=_0x18cd46[_0x24deab('0x3')];let _0x3c5415=_0x18cd46[_0x24deab('0x3')]+_0x18cd46['limit'],_0x19fff2;return _0x3c5415>=_0x164c04?(_0x3c5415=_0x164c04,_0x19fff2=0xc8):_0x19fff2=0xce,_0x56f989[_0x24deab('0x27')](_0x19fff2),_0x56f989[_0x24deab('0x35')](_0x24deab('0x10'),_0x2424b3+'-'+_0x3c5415+'/'+_0x164c04)[_0x24deab('0x0')](_0x31c6fe);}return null;};}function saveUpdates(_0x2d0d93){return function(_0x5658f5){const _0x16e939=a622_0x4472;if(_0x5658f5)return _0x5658f5[_0x16e939('0x34')](_0x2d0d93)[_0x16e939('0x2b')](function(_0x1ffae5){return _0x1ffae5;});return null;};}function removeEntity(_0x2070df){return function(_0x1d0796){const _0x260578=a622_0x4472;if(_0x1d0796)return _0x1d0796[_0x260578('0x30')]()['then'](function(){const _0x83f539=_0x260578,_0x29b852=_0x1d0796[_0x83f539('0x29')]({'plain':!![]}),_0x55b82d='Tags';return db[_0x83f539('0xa')][_0x83f539('0x30')]({'where':{'type':_0x55b82d,'resourceId':_0x29b852['id']}})[_0x83f539('0x2b')](function(){return _0x1d0796;});})[_0x260578('0x2b')](function(){const _0x866d6c=_0x260578;_0x2070df[_0x866d6c('0x27')](0xcc)[_0x866d6c('0x1a')]();});};}function handleEntityNotFound(_0x4a4dd1){return function(_0x2f9e9b){return!_0x2f9e9b&&_0x4a4dd1['sendStatus'](0x194),_0x2f9e9b;};}function handleError(_0x20e50d,_0xeef5e8){return _0xeef5e8=_0xeef5e8||0x1f4,function(_0x588fb9){const _0x593e91=a622_0x4472;logger[_0x593e91('0x1f')](_0x588fb9['stack']),_0x588fb9[_0x593e91('0x28')]&&delete _0x588fb9[_0x593e91('0x28')],_0x20e50d[_0x593e91('0x27')](_0xeef5e8)['send'](_0x588fb9);};}exports[_0xae08c3('0x33')]=function(_0x1f41a7,_0xbf1bc9){const _0x14e47c=_0xae08c3;let _0x2b42de={};const _0x3165a7={},_0x82dde9={'count':0x0,'rows':[]},_0x271204=_[_0x14e47c('0x20')](db[_0x14e47c('0x5')][_0x14e47c('0x4')],function(_0x5e9ac9){const _0x32b2cd=_0x14e47c;return{'name':_0x5e9ac9[_0x32b2cd('0x24')],'type':_0x5e9ac9['type']['key']};});_0x3165a7[_0x14e47c('0x2d')]=_[_0x14e47c('0x20')](_0x271204,_0x14e47c('0x28')),_0x3165a7['query']=_[_0x14e47c('0x25')](_0x1f41a7[_0x14e47c('0xc')]),_0x3165a7['filters']=_['intersection'](_0x3165a7[_0x14e47c('0x2d')],_0x3165a7[_0x14e47c('0xc')]),_0x2b42de['attributes']=_[_0x14e47c('0x6')](_0x3165a7[_0x14e47c('0x2d')],qs[_0x14e47c('0x16')](_0x1f41a7[_0x14e47c('0xc')][_0x14e47c('0x16')])),_0x2b42de[_0x14e47c('0x1d')]=_0x2b42de[_0x14e47c('0x1d')][_0x14e47c('0x1e')]?_0x2b42de[_0x14e47c('0x1d')]:_0x3165a7[_0x14e47c('0x2d')];typeof _0x1f41a7['query']['nolimit']===_0x14e47c('0x13')&&(_0x2b42de[_0x14e47c('0x2f')]=qs['limit'](_0x1f41a7['query'][_0x14e47c('0x2f')]),_0x2b42de['offset']=qs['offset'](_0x1f41a7[_0x14e47c('0xc')]['offset']));_0x2b42de[_0x14e47c('0x17')]=qs[_0x14e47c('0x22')](_0x1f41a7[_0x14e47c('0xc')]['sort']),_0x2b42de[_0x14e47c('0xd')]=qs[_0x14e47c('0x2')](_['pick'](_0x1f41a7['query'],_0x3165a7[_0x14e47c('0x2')]),_0x271204);_0x1f41a7[_0x14e47c('0xc')]['filter']&&(_0x2b42de['where']=_[_0x14e47c('0x26')](_0x2b42de[_0x14e47c('0xd')],{[Op['or']]:_[_0x14e47c('0x20')](_0x271204,function(_0x2ad7ea){const _0x52440a=_0x14e47c;if(_0x2ad7ea['type']!=='VIRTUAL'){const _0x4c0bf1={};return _0x4c0bf1[_0x2ad7ea[_0x52440a('0x28')]]={[Op['like']]:'%'+_0x1f41a7[_0x52440a('0xc')][_0x52440a('0x32')]+'%'},_0x4c0bf1;}})}));_0x2b42de=_[_0x14e47c('0x26')]({},_0x2b42de,_0x1f41a7['options']);const _0x1343f3={'where':_0x2b42de['where']};return db['Tag'][_0x14e47c('0x23')](_0x1343f3)[_0x14e47c('0x2b')](function(_0x271ec1){const _0x4a5191=_0x14e47c;return _0x82dde9[_0x4a5191('0x23')]=_0x271ec1,_0x1f41a7[_0x4a5191('0xc')][_0x4a5191('0x12')]&&(_0x2b42de[_0x4a5191('0x2e')]=[{'all':!![]}]),db[_0x4a5191('0x5')][_0x4a5191('0x18')](_0x2b42de);})[_0x14e47c('0x2b')](function(_0x5661e0){return _0x82dde9['rows']=_0x5661e0,_0x82dde9;})[_0x14e47c('0x2b')](respondWithFilteredResult(_0xbf1bc9,_0x2b42de))[_0x14e47c('0xb')](handleError(_0xbf1bc9,null));},exports['show']=function(_0x58ea34,_0x3a28ff){const _0x26ed10=_0xae08c3;let _0x2716dc={'raw':!![],'where':{'id':_0x58ea34['params']['id']}};const _0x75e372={};return _0x75e372['model']=_['keys'](db[_0x26ed10('0x5')][_0x26ed10('0x4')]),_0x75e372[_0x26ed10('0xc')]=_[_0x26ed10('0x25')](_0x58ea34[_0x26ed10('0xc')]),_0x75e372['filters']=_[_0x26ed10('0x6')](_0x75e372[_0x26ed10('0x2d')],_0x75e372['query']),_0x2716dc[_0x26ed10('0x1d')]=_[_0x26ed10('0x6')](_0x75e372[_0x26ed10('0x2d')],qs[_0x26ed10('0x16')](_0x58ea34[_0x26ed10('0xc')][_0x26ed10('0x16')])),_0x2716dc[_0x26ed10('0x1d')]=_0x2716dc[_0x26ed10('0x1d')][_0x26ed10('0x1e')]?_0x2716dc['attributes']:_0x75e372['model'],_0x58ea34['query'][_0x26ed10('0x12')]&&(_0x2716dc[_0x26ed10('0x2e')]=[{'all':!![]}]),_0x2716dc=_[_0x26ed10('0x26')]({},_0x2716dc,_0x58ea34[_0x26ed10('0xe')]),db[_0x26ed10('0x5')]['findOne'](_0x2716dc)[_0x26ed10('0x2b')](handleEntityNotFound(_0x3a28ff,null))[_0x26ed10('0x2b')](respondWithResult(_0x3a28ff,null))[_0x26ed10('0xb')](handleError(_0x3a28ff,null));},exports[_0xae08c3('0x2c')]=function(_0x3968b8,_0x2181a6){const _0x389c4b=_0xae08c3;return db[_0x389c4b('0x5')][_0x389c4b('0x2c')](_0x3968b8[_0x389c4b('0x21')],{})[_0x389c4b('0x2b')](function(_0x298e50){const _0x4c00bb=_0x389c4b,_0x10d185=_0x3968b8[_0x4c00bb('0x31')][_0x4c00bb('0x29')]({'plain':!![]});if(!_0x10d185)throw new Error(_0x4c00bb('0x1'));if(_0x10d185['role']===_0x4c00bb('0x31')){const _0x3e47d3=_0x298e50[_0x4c00bb('0x29')]({'plain':!![]}),_0x281e75='Tags';return db[_0x4c00bb('0x15')]['findOne']({'where':{'name':_0x281e75,'userProfileId':_0x10d185[_0x4c00bb('0x7')]},'raw':!![]})[_0x4c00bb('0x2b')](function(_0xa6d513){const _0x2d5d61=_0x4c00bb;return _0xa6d513&&_0xa6d513[_0x2d5d61('0x8')]===0x0?db['UserProfileResource'][_0x2d5d61('0x2c')]({'name':_0x3e47d3['name'],'resourceId':_0x3e47d3['id'],'type':_0xa6d513[_0x2d5d61('0x28')],'sectionId':_0xa6d513['id']},{})[_0x2d5d61('0x2b')](function(){return _0x298e50;}):_0x298e50;})[_0x4c00bb('0xb')](function(_0x351e76){const _0x1fe695=_0x4c00bb;logger[_0x1fe695('0x1f')](_0x1fe695('0x19'),_0x351e76);throw _0x351e76;});}return _0x298e50;})[_0x389c4b('0x2b')](respondWithResult(_0x2181a6,0xc9))[_0x389c4b('0xb')](handleError(_0x2181a6,null));},exports[_0xae08c3('0x34')]=function(_0xb559a0,_0x51e609){const _0x5a2983=_0xae08c3;return _0xb559a0[_0x5a2983('0x21')]['id']&&delete _0xb559a0[_0x5a2983('0x21')]['id'],db[_0x5a2983('0x5')][_0x5a2983('0xf')]({'where':{'id':_0xb559a0[_0x5a2983('0x11')]['id']}})[_0x5a2983('0x2b')](handleEntityNotFound(_0x51e609,null))['then'](saveUpdates(_0xb559a0['body'],null))[_0x5a2983('0x2b')](respondWithResult(_0x51e609,null))['catch'](handleError(_0x51e609,null));},exports[_0xae08c3('0x30')]=function(_0x367ce7,_0x5d0c1b){const _0x3737ed=_0xae08c3;return db[_0x3737ed('0x5')][_0x3737ed('0xf')]({'where':{'id':_0x367ce7[_0x3737ed('0x11')]['id']}})[_0x3737ed('0x2b')](handleEntityNotFound(_0x5d0c1b,null))[_0x3737ed('0x2b')](removeEntity(_0x5d0c1b,null))[_0x3737ed('0xb')](handleError(_0x5d0c1b,null));}; \ No newline at end of file +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 diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index 388e222..44482fa 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a623_0x4c0a=['exports','define'];(function(_0x41122b,_0x4c0a1a){const _0x148946=function(_0x3a3e73){while(--_0x3a3e73){_0x41122b['push'](_0x41122b['shift']());}};_0x148946(++_0x4c0a1a);}(a623_0x4c0a,0x1e8));const a623_0x1489=function(_0x41122b,_0x4c0a1a){_0x41122b=_0x41122b-0x0;let _0x148946=a623_0x4c0a[_0x41122b];return _0x148946;};const _0x1c7341=a623_0x1489;'use strict';const attributes=require('./tag.attributes');module[_0x1c7341('0x0')]=function(_0x3a3e73){const _0x2e4d74=_0x1c7341,_0x1eedae=_0x3a3e73[_0x2e4d74('0x1')]('Tag',attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1eedae;}; \ No newline at end of file +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 diff --git a/server/api/team/index.js b/server/api/team/index.js index 37d55bf..714b3fb 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a624_0x34d4=['post','getQueues','../../components/auth/service','/:id/users','show','./team.controller','put','/:id','update','delete','Router','get','express','addQueues','/:id/queues','isAuthenticated','index','exports'];(function(_0x5b9b13,_0x34d4da){const _0x12cdc0=function(_0x3fa5e5){while(--_0x3fa5e5){_0x5b9b13['push'](_0x5b9b13['shift']());}};_0x12cdc0(++_0x34d4da);}(a624_0x34d4,0x171));const a624_0x12cd=function(_0x5b9b13,_0x34d4da){_0x5b9b13=_0x5b9b13-0x0;let _0x12cdc0=a624_0x34d4[_0x5b9b13];return _0x12cdc0;};const _0x3adce1=a624_0x12cd;'use strict';const express=require(_0x3adce1('0x3')),router=express[_0x3adce1('0x1')](),auth=require(_0x3adce1('0xb')),controller=require(_0x3adce1('0xe'));router[_0x3adce1('0x2')]('/',auth[_0x3adce1('0x6')](),controller[_0x3adce1('0x7')]),router[_0x3adce1('0x2')](_0x3adce1('0x10'),auth[_0x3adce1('0x6')](),controller[_0x3adce1('0xd')]),router[_0x3adce1('0x2')](_0x3adce1('0x5'),auth[_0x3adce1('0x6')](),controller[_0x3adce1('0xa')]),router['get'](_0x3adce1('0xc'),auth[_0x3adce1('0x6')](),controller['getAgents']),router[_0x3adce1('0x9')]('/',auth[_0x3adce1('0x6')](),controller['create']),router[_0x3adce1('0x9')]('/:id/queues',auth[_0x3adce1('0x6')](),controller[_0x3adce1('0x4')]),router[_0x3adce1('0x9')](_0x3adce1('0xc'),auth[_0x3adce1('0x6')](),controller['addAgents']),router[_0x3adce1('0xf')](_0x3adce1('0x10'),auth['isAuthenticated'](),controller[_0x3adce1('0x11')]),router['delete']('/:id',auth[_0x3adce1('0x6')](),controller['destroy']),router[_0x3adce1('0x0')](_0x3adce1('0x5'),auth['isAuthenticated'](),controller['removeQueues']),router[_0x3adce1('0x0')]('/:id/users',auth[_0x3adce1('0x6')](),controller['removeAgents']),module[_0x3adce1('0x8')]=router; \ No newline at end of file +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 diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 6a63890..16f7dc5 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a625_0x507c=['name','STRING','sequelize'];(function(_0xc10e6c,_0x507c38){const _0x222d15=function(_0x164b25){while(--_0x164b25){_0xc10e6c['push'](_0xc10e6c['shift']());}};_0x222d15(++_0x507c38);}(a625_0x507c,0x98));const a625_0x222d=function(_0xc10e6c,_0x507c38){_0xc10e6c=_0xc10e6c-0x0;let _0x222d15=a625_0x507c[_0xc10e6c];return _0x222d15;};const _0x2a21e8=a625_0x222d;'use strict';const Sequelize=require(_0x2a21e8('0x0'));module['exports']={'name':{'type':Sequelize[_0x2a21e8('0x2')],'allowNull':![],'unique':_0x2a21e8('0x1')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index 308e21f..f225471 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a626_0x4ac7=['each','register','Queues','catch','add','userProfileId','name','filters','rows','fields','sort','../../rediscache','model','UserProfileResource','voicePause','sms','nolimit','offset','UserVoiceQueueRt','params','format','limit','json','update','Fax','toLowerCase','autoAssociation','Teams','util','show','omit','./team.socket','removeAgents','../../config/logger','set','index','../../config/utils','body','create','destroy','where','User','online','send','ids','isArray','../../components/parsers/qs','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','addQueues','get','include','whatsapp','key','attributes','stack','merge','error','addAgents','includeAll','rawAttributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Chat','Unknown\x20channel','options','Openchannel','Voice','SIP/%s','userTeam:save','isValidChannel','voice','query','count','findOne','emit','Mail','type','then','intersection','keys','user','sequelize','length','map','chat','pick','channel','filter','Team','role','undefined','interface','capitalize','Sms','sendStatus','mail','like','fieldName','userTeam:remove','fax','getAgents','removeQueues','UserProfileSection','order','status','Whatsapp','lodash','end','Content-Range','upsert','isNil'];(function(_0xa31f4c,_0x4ac72b){const _0x5f2919=function(_0x60c04c){while(--_0x60c04c){_0xa31f4c['push'](_0xa31f4c['shift']());}};_0x5f2919(++_0x4ac72b);}(a626_0x4ac7,0x189));const a626_0x5f29=function(_0xa31f4c,_0x4ac72b){_0xa31f4c=_0xa31f4c-0x0;let _0x5f2919=a626_0x4ac7[_0xa31f4c];return _0x5f2919;};const _0x4a61d4=a626_0x5f29;'use strict';const util=require(_0x4a61d4('0x4f')),_=require(_0x4a61d4('0x2e')),qs=require(_0x4a61d4('0x61')),logger=require(_0x4a61d4('0x54'))('api'),utils=require(_0x4a61d4('0x57')),{getSocket}=require(_0x4a61d4('0x3e')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x4a61d4('0x15'));require(_0x4a61d4('0x52'))[_0x4a61d4('0x34')](socket);function respondWithStatusCode(_0x60c04c,_0x3afa3e){return _0x3afa3e=_0x3afa3e||0xcc,function(_0x5c8e54){const _0x2cdd6d=a626_0x5f29;if(_0x5c8e54)return _0x60c04c[_0x2cdd6d('0x22')](_0x3afa3e);return _0x60c04c[_0x2cdd6d('0x2c')](_0x3afa3e)[_0x2cdd6d('0x2f')]();};}function respondWithResult(_0x15f2ae,_0x1a4afd){return _0x1a4afd=_0x1a4afd||0xc8,function(_0x65f0ef){const _0x1070f8=a626_0x5f29;if(_0x65f0ef)return _0x15f2ae[_0x1070f8('0x2c')](_0x1a4afd)[_0x1070f8('0x49')](_0x65f0ef);};}function respondWithFilteredResult(_0x3a368e,_0x4f0511){return function(_0x9e069){const _0x5a61c1=a626_0x5f29;if(_0x9e069){const _0x92680=_0x9e069['count'],_0xf804ae=_0x4f0511[_0x5a61c1('0x44')];let _0x175fe0=_0x4f0511[_0x5a61c1('0x44')]+_0x4f0511[_0x5a61c1('0x48')],_0x2ca22a;return _0x175fe0>=_0x92680?(_0x175fe0=_0x92680,_0x2ca22a=0xc8):_0x2ca22a=0xce,_0x3a368e[_0x5a61c1('0x2c')](_0x2ca22a),_0x3a368e[_0x5a61c1('0x55')](_0x5a61c1('0x30'),_0xf804ae+'-'+_0x175fe0+'/'+_0x92680)[_0x5a61c1('0x49')](_0x9e069);}return null;};}function saveUpdates(_0x2500b2){return function(_0x467601){const _0x44c5a3=a626_0x5f29;if(_0x467601)return _0x467601[_0x44c5a3('0x4a')](_0x2500b2)[_0x44c5a3('0x11')](function(_0x3bc752){return _0x3bc752;});return null;};}function removeEntity(_0x54b478){return function(_0x2ebbc7){const _0x896383=a626_0x5f29;if(_0x2ebbc7)return _0x2ebbc7[_0x896383('0x5a')]()[_0x896383('0x11')](function(){const _0x49379a=_0x896383,_0x408db8=_0x2ebbc7['get']({'plain':!![]}),_0x2629d7=_0x49379a('0x4e');return db['UserProfileResource'][_0x49379a('0x5a')]({'where':{'type':_0x2629d7,'resourceId':_0x408db8['id']}})[_0x49379a('0x11')](function(){return _0x2ebbc7;});})[_0x896383('0x11')](function(){const _0x34b5ea=_0x896383;_0x54b478[_0x34b5ea('0x2c')](0xcc)[_0x34b5ea('0x2f')]();});};}function handleEntityNotFound(_0x20cc07){return function(_0x5d58cd){return!_0x5d58cd&&_0x20cc07['sendStatus'](0x194),_0x5d58cd;};}function handleError(_0x52534b,_0x74d7eb){return _0x74d7eb=_0x74d7eb||0x1f4,function(_0x4a9d43){const _0x2deae0=a626_0x5f29;logger['error'](_0x4a9d43[_0x2deae0('0x6a')]),_0x4a9d43['name']&&delete _0x4a9d43[_0x2deae0('0x39')],_0x52534b[_0x2deae0('0x2c')](_0x74d7eb)[_0x2deae0('0x5e')](_0x4a9d43);};}exports[_0x4a61d4('0x56')]=function(_0x44d51e,_0x29b118){const _0x16340b=_0x4a61d4;let _0x26ea30={};const _0xb6a443={},_0x1dc749={'count':0x0,'rows':[]},_0x197fcd=_[_0x16340b('0x17')](db[_0x16340b('0x1c')][_0x16340b('0x0')],function(_0x206eb6){const _0x264463=_0x16340b;return{'name':_0x206eb6[_0x264463('0x25')],'type':_0x206eb6[_0x264463('0x10')][_0x264463('0x68')]};});_0xb6a443[_0x16340b('0x3f')]=_['map'](_0x197fcd,_0x16340b('0x39')),_0xb6a443[_0x16340b('0xb')]=_['keys'](_0x44d51e[_0x16340b('0xb')]),_0xb6a443[_0x16340b('0x3a')]=_['intersection'](_0xb6a443[_0x16340b('0x3f')],_0xb6a443[_0x16340b('0xb')]),_0x26ea30[_0x16340b('0x69')]=_['intersection'](_0xb6a443[_0x16340b('0x3f')],qs[_0x16340b('0x3c')](_0x44d51e[_0x16340b('0xb')]['fields'])),_0x26ea30['attributes']=_0x26ea30['attributes'][_0x16340b('0x16')]?_0x26ea30[_0x16340b('0x69')]:_0xb6a443['model'];typeof _0x44d51e[_0x16340b('0xb')][_0x16340b('0x43')]==='undefined'&&(_0x26ea30[_0x16340b('0x48')]=qs[_0x16340b('0x48')](_0x44d51e[_0x16340b('0xb')][_0x16340b('0x48')]),_0x26ea30[_0x16340b('0x44')]=qs[_0x16340b('0x44')](_0x44d51e[_0x16340b('0xb')][_0x16340b('0x44')]));_0x26ea30[_0x16340b('0x2b')]=qs[_0x16340b('0x3d')](_0x44d51e['query'][_0x16340b('0x3d')]),_0x26ea30[_0x16340b('0x5b')]=qs[_0x16340b('0x3a')](_['pick'](_0x44d51e[_0x16340b('0xb')],_0xb6a443['filters']),_0x197fcd);_0x44d51e[_0x16340b('0xb')][_0x16340b('0x1b')]&&(_0x26ea30[_0x16340b('0x5b')]=_[_0x16340b('0x6b')](_0x26ea30[_0x16340b('0x5b')],{[Op['or']]:_[_0x16340b('0x17')](_0x197fcd,function(_0xb26193){const _0x1188a8=_0x16340b;if(_0xb26193[_0x1188a8('0x10')]!=='VIRTUAL'){const _0x42957b={};return _0x42957b[_0xb26193[_0x1188a8('0x39')]]={[Op[_0x1188a8('0x24')]]:'%'+_0x44d51e[_0x1188a8('0xb')][_0x1188a8('0x1b')]+'%'},_0x42957b;}})}));_0x26ea30=_['merge']({},_0x26ea30,_0x44d51e[_0x16340b('0x4')]);const _0x314933={'where':_0x26ea30[_0x16340b('0x5b')]};return db[_0x16340b('0x1c')][_0x16340b('0xc')](_0x314933)['then'](function(_0x4990bd){const _0x5d36e4=_0x16340b;return _0x1dc749['count']=_0x4990bd,_0x44d51e['query'][_0x5d36e4('0x6e')]&&(_0x26ea30[_0x5d36e4('0x66')]=[{'all':!![]}]),db['Team']['findAll'](_0x26ea30);})[_0x16340b('0x11')](function(_0x4f151c){const _0x5187d9=_0x16340b;return _0x1dc749[_0x5187d9('0x3b')]=_0x4f151c,_0x1dc749;})[_0x16340b('0x11')](respondWithFilteredResult(_0x29b118,_0x26ea30))[_0x16340b('0x36')](handleError(_0x29b118,null));},exports[_0x4a61d4('0x50')]=function(_0x4973a4,_0x2c6023){const _0x209db2=_0x4a61d4;let _0x2a46ca={'raw':![],'where':{'id':_0x4973a4[_0x209db2('0x46')]['id']}};const _0x1651d1={};return _0x1651d1[_0x209db2('0x3f')]=_[_0x209db2('0x13')](db[_0x209db2('0x1c')]['rawAttributes']),_0x1651d1[_0x209db2('0xb')]=_[_0x209db2('0x13')](_0x4973a4[_0x209db2('0xb')]),_0x1651d1[_0x209db2('0x3a')]=_[_0x209db2('0x12')](_0x1651d1[_0x209db2('0x3f')],_0x1651d1[_0x209db2('0xb')]),_0x2a46ca[_0x209db2('0x69')]=_[_0x209db2('0x12')](_0x1651d1[_0x209db2('0x3f')],qs[_0x209db2('0x3c')](_0x4973a4['query']['fields'])),_0x2a46ca['attributes']=_0x2a46ca[_0x209db2('0x69')][_0x209db2('0x16')]?_0x2a46ca[_0x209db2('0x69')]:_0x1651d1[_0x209db2('0x3f')],_0x4973a4['query']['includeAll']&&(_0x2a46ca[_0x209db2('0x66')]=[{'all':!![]}]),_0x2a46ca=_[_0x209db2('0x6b')]({},_0x2a46ca,_0x4973a4[_0x209db2('0x4')]),db[_0x209db2('0x1c')][_0x209db2('0xd')](_0x2a46ca)['then'](handleEntityNotFound(_0x2c6023,null))[_0x209db2('0x11')](respondWithResult(_0x2c6023,null))[_0x209db2('0x36')](handleError(_0x2c6023,null));},exports[_0x4a61d4('0x59')]=function(_0x87d11,_0x114baf){const _0x56e702=_0x4a61d4;return db[_0x56e702('0x1c')][_0x56e702('0x59')](_0x87d11['body'],{})[_0x56e702('0x11')](function(_0x103945){const _0x59bec3=_0x56e702,_0x17354f=_0x87d11[_0x59bec3('0x14')][_0x59bec3('0x65')]({'plain':!![]});if(!_0x17354f)throw new Error(_0x59bec3('0x62'));if(_0x17354f[_0x59bec3('0x1d')]==='user'){const _0x3b6a82=_0x103945[_0x59bec3('0x65')]({'plain':!![]}),_0x12ad2a=_0x59bec3('0x4e');return db[_0x59bec3('0x2a')][_0x59bec3('0xd')]({'where':{'name':_0x12ad2a,'userProfileId':_0x17354f[_0x59bec3('0x38')]},'raw':!![]})[_0x59bec3('0x11')](function(_0x577d8e){const _0x47c9e9=_0x59bec3;return _0x577d8e&&_0x577d8e[_0x47c9e9('0x4d')]===0x0?db[_0x47c9e9('0x40')]['create']({'name':_0x3b6a82['name'],'resourceId':_0x3b6a82['id'],'type':_0x577d8e[_0x47c9e9('0x39')],'sectionId':_0x577d8e['id']},{})[_0x47c9e9('0x11')](function(){return _0x103945;}):_0x103945;})[_0x59bec3('0x36')](function(_0x5f2560){const _0x54464b=_0x59bec3;logger[_0x54464b('0x6c')](_0x54464b('0x1'),_0x5f2560);throw _0x5f2560;});}return _0x103945;})[_0x56e702('0x11')](respondWithResult(_0x114baf,0xc9))[_0x56e702('0x36')](handleError(_0x114baf,null));},exports[_0x4a61d4('0x4a')]=function(_0x2699e8,_0x362c92){const _0x58602e=_0x4a61d4;return _0x2699e8[_0x58602e('0x58')]['id']&&delete _0x2699e8[_0x58602e('0x58')]['id'],db[_0x58602e('0x1c')][_0x58602e('0xd')]({'where':{'id':_0x2699e8[_0x58602e('0x46')]['id']}})[_0x58602e('0x11')](handleEntityNotFound(_0x362c92,null))[_0x58602e('0x11')](saveUpdates(_0x2699e8[_0x58602e('0x58')],null))[_0x58602e('0x11')](respondWithResult(_0x362c92,null))[_0x58602e('0x36')](handleError(_0x362c92,null));},exports[_0x4a61d4('0x5a')]=function(_0x4439c1,_0x1bd3ec){const _0x1ddcc7=_0x4a61d4;return db[_0x1ddcc7('0x1c')]['findOne']({'where':{'id':_0x4439c1[_0x1ddcc7('0x46')]['id']}})['then'](handleEntityNotFound(_0x1bd3ec,null))[_0x1ddcc7('0x11')](removeEntity(_0x1bd3ec,null))[_0x1ddcc7('0x36')](handleError(_0x1bd3ec,null));},exports['getQueues']=function(_0x395025,_0x36e7db){const _0x1610bc=_0x4a61d4;return db[_0x1610bc('0x1c')][_0x1610bc('0xd')]({'where':{'id':_0x395025[_0x1610bc('0x46')]['id']}})[_0x1610bc('0x11')](handleEntityNotFound(_0x36e7db,null))[_0x1610bc('0x11')](function(_0x59bf2c){const _0x351346=_0x1610bc;if(!_0x395025[_0x351346('0xb')][_0x351346('0x1a')]||!utils[_0x351346('0x9')](_0x395025[_0x351346('0xb')][_0x351346('0x1a')]))throw new ValidationError(_0x351346('0x3'));let _0x2d0aca={};const _0x32492d={};return _0x32492d[_0x351346('0x3f')]=_[_0x351346('0x13')](db[_[_0x351346('0x20')](_0x395025['query'][_0x351346('0x1a')][_0x351346('0x4c')]())+'Queue']['rawAttributes']),_0x32492d['query']=_[_0x351346('0x13')](_0x395025['query']),_0x32492d[_0x351346('0x3a')]=_[_0x351346('0x12')](_0x32492d[_0x351346('0x3f')],_0x32492d[_0x351346('0xb')]),_0x2d0aca[_0x351346('0x69')]=_[_0x351346('0x12')](_0x32492d[_0x351346('0x3f')],qs[_0x351346('0x3c')](_0x395025['query'][_0x351346('0x3c')])),_0x2d0aca[_0x351346('0x69')]=_0x2d0aca[_0x351346('0x69')][_0x351346('0x16')]?_0x2d0aca[_0x351346('0x69')]:_0x32492d['model'],_0x2d0aca[_0x351346('0x48')]=qs[_0x351346('0x48')](_0x395025[_0x351346('0xb')]['limit']),_0x2d0aca[_0x351346('0x44')]=qs['offset'](_0x395025['query'][_0x351346('0x44')]),_0x2d0aca[_0x351346('0x2b')]=qs[_0x351346('0x3d')](_0x395025['query'][_0x351346('0x3d')]),_0x2d0aca[_0x351346('0x5b')]=qs[_0x351346('0x3a')](_[_0x351346('0x19')](_0x395025[_0x351346('0xb')],_0x32492d[_0x351346('0x3a')])),_0x2d0aca=_[_0x351346('0x6b')]({},_0x2d0aca,_0x395025[_0x351346('0x4')]),_0x59bf2c[_0x351346('0x65')+_[_0x351346('0x20')](_0x395025[_0x351346('0xb')][_0x351346('0x1a')]['toLowerCase']())+'Queues'](_0x2d0aca);})[_0x1610bc('0x11')](respondWithResult(_0x36e7db,null))[_0x1610bc('0x36')](handleError(_0x36e7db,null));},exports[_0x4a61d4('0x64')]=function(_0x103f5c,_0x26ffd1){const _0x481f67=_0x4a61d4;return db['Team']['findOne']({'where':{'id':_0x103f5c[_0x481f67('0x46')]['id']}})['then'](function(_0x5edfe1){const _0x5152fe=_0x481f67;if(_0x5edfe1){if(!_0x103f5c[_0x5152fe('0x58')][_0x5152fe('0x1a')]||!utils[_0x5152fe('0x9')](_0x103f5c[_0x5152fe('0x58')][_0x5152fe('0x1a')]))throw new ValidationError('Unknown\x20channel');return _0x5edfe1[_0x5152fe('0x37')+_[_0x5152fe('0x20')](_0x103f5c['body'][_0x5152fe('0x1a')][_0x5152fe('0x4c')]())+'Queues'](_0x103f5c[_0x5152fe('0x58')][_0x5152fe('0x5f')]);}return null;})['then'](handleEntityNotFound(_0x26ffd1,null))[_0x481f67('0x11')](respondWithStatusCode(_0x26ffd1,null))[_0x481f67('0x36')](handleError(_0x26ffd1,null));},exports[_0x4a61d4('0x29')]=function(_0x5f1619,_0x2c2f60){const _0x4af334=_0x4a61d4;return db[_0x4af334('0x1c')][_0x4af334('0xd')]({'where':{'id':_0x5f1619[_0x4af334('0x46')]['id']}})['then'](function(_0x469c1c){const _0x39b401=_0x4af334;if(_0x469c1c){if(!_0x5f1619['query'][_0x39b401('0x1a')]||!utils[_0x39b401('0x9')](_0x5f1619['query'][_0x39b401('0x1a')]))throw new ValidationError('Unknown\x20channel');return _0x469c1c['remove'+_[_0x39b401('0x20')](_0x5f1619[_0x39b401('0xb')][_0x39b401('0x1a')][_0x39b401('0x4c')]())+_0x39b401('0x35')](_0x5f1619[_0x39b401('0xb')][_0x39b401('0x5f')]);}return null;})[_0x4af334('0x11')](handleEntityNotFound(_0x2c2f60,null))['then'](respondWithStatusCode(_0x2c2f60,null))[_0x4af334('0x36')](handleError(_0x2c2f60,null));},exports['addAgents']=function(_0x5a31dd,_0x169209){const _0x26324e=_0x4a61d4;return db[_0x26324e('0x1c')][_0x26324e('0xd')]({'where':{'id':_0x5a31dd['params']['id']}})[_0x26324e('0x11')](function(_0x1b51f9){const _0x29d70a=_0x26324e;if(_0x1b51f9){const _0x310d22=[_0x29d70a('0x6'),_0x29d70a('0x2'),_0x29d70a('0xf'),_0x29d70a('0x21'),_0x29d70a('0x4b'),_0x29d70a('0x5'),_0x29d70a('0x2d')];return Promise[_0x29d70a('0x33')](_0x310d22,function(_0x5f5716){const _0x518a1c=_0x29d70a;return _0x1b51f9[_0x518a1c('0x65')+_0x5f5716+'Queues']({'attributes':['id',_0x518a1c('0x39')]})[_0x518a1c('0x11')](function(_0x4d6aa2){return Promise['each'](_0x4d6aa2,function(_0x2f45dc){const _0x3496c2=a626_0x5f29;return _0x2f45dc[_0x3496c2('0x6d')](_0x5a31dd['body'][_0x3496c2('0x5f')])[_0x3496c2('0x11')](function(){const _0x592e90=_0x3496c2;if(_0x5f5716===_0x592e90('0x6'))return db[_0x592e90('0x5c')][_0x592e90('0x63')]({'where':{'id':_0x5a31dd[_0x592e90('0x58')][_0x592e90('0x5f')]},'attributes':['id',_0x592e90('0x39'),_0x592e90('0x5d'),_0x592e90('0x41'),_0x592e90('0x1f')],'raw':!![]})[_0x592e90('0x11')](function(_0xe48c19){const _0x2b1b82=_0x592e90;return Promise[_0x2b1b82('0x33')](_[_0x2b1b82('0x1b')](_0xe48c19,{'online':0x1}),function(_0x312e9a){const _0x1dbbe2=_0x2b1b82;return db['UserVoiceQueueRt'][_0x1dbbe2('0x31')]({'membername':_0x312e9a[_0x1dbbe2('0x39')],'UserId':_0x312e9a['id'],'queue_name':_0x2f45dc[_0x1dbbe2('0x39')],'VoiceQueueId':_0x2f45dc['id'],'interface':_[_0x1dbbe2('0x32')](_0x312e9a[_0x1dbbe2('0x1f')])?util[_0x1dbbe2('0x47')](_0x1dbbe2('0x7'),_0x312e9a[_0x1dbbe2('0x39')]):_0x312e9a['interface'],'paused':_0x312e9a[_0x1dbbe2('0x41')]||![],'penalty':0x0});});});});});})['then'](function(){return _0x1b51f9;});})[_0x29d70a('0x11')](function(){return _0x1b51f9;});}})[_0x26324e('0x11')](function(_0x19350e){const _0x7865f1=_0x26324e;if(_0x19350e)return _0x19350e[_0x7865f1('0x6d')](_0x5a31dd[_0x7865f1('0x58')][_0x7865f1('0x5f')],{'through':_[_0x7865f1('0x51')](_0x5a31dd[_0x7865f1('0x58')],[_0x7865f1('0x5f'),'id'])})[_0x7865f1('0x11')](function(_0x29fa81){const _0x742b3c=_0x7865f1;for(let _0x5140a9=0x0;_0x5140a9<_0x5a31dd['body']['ids']['length'];_0x5140a9+=0x1){socket[_0x742b3c('0xe')](_0x742b3c('0x8'),{'UserId':_0x5a31dd[_0x742b3c('0x58')]['ids'][_0x5140a9],'TeamId':_0x5a31dd[_0x742b3c('0x46')]['id']});}return _0x29fa81;});})['then'](respondWithResult(_0x169209,null))[_0x26324e('0x36')](handleError(_0x169209,null));},exports[_0x4a61d4('0x53')]=function(_0x374fbb,_0x26648e){const _0x442a9a=_0x4a61d4;return db[_0x442a9a('0x1c')][_0x442a9a('0xd')]({'where':{'id':_0x374fbb[_0x442a9a('0x46')]['id']}})['then'](handleEntityNotFound(_0x26648e,null))[_0x442a9a('0x11')](function(_0x5f36ca){const _0x26045d=_0x442a9a;if(_0x5f36ca)return Promise[_0x26045d('0x33')]([_0x26045d('0xa'),_0x26045d('0x18'),_0x26045d('0x23'),_0x26045d('0x42'),_0x26045d('0x27'),'openchannel',_0x26045d('0x67')],function(_0xc61e99){const _0x2193af=_0x26045d;return _0x5f36ca[_0x2193af('0x65')+_[_0x2193af('0x20')](_0xc61e99)+_0x2193af('0x35')]({'attributes':['id',_0x2193af('0x39')]})[_0x2193af('0x11')](function(_0x467ebd){return Promise['each'](_0x467ebd,function(_0x511f02){const _0x55bb49=a626_0x5f29;return _0x511f02[_0x55bb49('0x53')](_0x374fbb[_0x55bb49('0xb')][_0x55bb49('0x5f')])['then'](function(){const _0x4145c7=_0x55bb49;if(_0xc61e99===_0x4145c7('0xa'))return db[_0x4145c7('0x45')][_0x4145c7('0x5a')]({'where':{'VoiceQueueId':_0x511f02['id'],'UserId':_0x374fbb[_0x4145c7('0xb')]['ids']}});});});})[_0x2193af('0x11')](function(){return _0x5f36ca;});})[_0x26045d('0x11')](function(){return _0x5f36ca;});})[_0x442a9a('0x11')](function(_0x178dcc){const _0x447e3d=_0x442a9a;if(_0x178dcc)return _0x178dcc['removeAgents'](_0x374fbb[_0x447e3d('0xb')]['ids'])['then'](function(){const _0x4a18e6=_0x447e3d;if(_[_0x4a18e6('0x60')](_0x374fbb[_0x4a18e6('0xb')]['ids']))for(let _0x3631c8=0x0;_0x3631c8<_0x374fbb[_0x4a18e6('0xb')][_0x4a18e6('0x5f')][_0x4a18e6('0x16')];_0x3631c8+=0x1){socket['emit'](_0x4a18e6('0x26'),{'UserId':Number(_0x374fbb[_0x4a18e6('0xb')][_0x4a18e6('0x5f')][_0x3631c8]),'TeamId':Number(_0x374fbb[_0x4a18e6('0x46')]['id'])});}else socket['emit'](_0x4a18e6('0x26'),{'UserId':Number(_0x374fbb['query'][_0x4a18e6('0x5f')]),'TeamId':Number(_0x374fbb[_0x4a18e6('0x46')]['id'])});});})[_0x442a9a('0x11')](respondWithStatusCode(_0x26648e,null))[_0x442a9a('0x36')](handleError(_0x26648e,null));},exports['getAgents']=function(_0x3f1697,_0x1b26a1){const _0x4bb6e5=_0x4a61d4;let _0x308e2b={};const _0x157c9f={};let _0x332b13,_0xc34853;return db[_0x4bb6e5('0x1c')]['findOne']({'where':{'id':_0x3f1697[_0x4bb6e5('0x46')]['id']}})[_0x4bb6e5('0x11')](handleEntityNotFound(_0x1b26a1,null))[_0x4bb6e5('0x11')](function(_0x55182c){const _0x22ce17=_0x4bb6e5;if(_0x55182c)return _0x332b13=_0x55182c,_0x157c9f['model']=_[_0x22ce17('0x13')](db[_0x22ce17('0x5c')][_0x22ce17('0x0')]),_0x157c9f[_0x22ce17('0xb')]=_[_0x22ce17('0x13')](_0x3f1697[_0x22ce17('0xb')]),_0x157c9f[_0x22ce17('0x3a')]=_[_0x22ce17('0x12')](_0x157c9f[_0x22ce17('0x3f')],_0x157c9f[_0x22ce17('0xb')]),_0x308e2b[_0x22ce17('0x69')]=_[_0x22ce17('0x12')](_0x157c9f['model'],qs['fields'](_0x3f1697[_0x22ce17('0xb')][_0x22ce17('0x3c')])),_0x308e2b[_0x22ce17('0x69')]=_0x308e2b[_0x22ce17('0x69')][_0x22ce17('0x16')]?_0x308e2b[_0x22ce17('0x69')]:_0x157c9f[_0x22ce17('0x3f')],_0x308e2b[_0x22ce17('0x2b')]=qs[_0x22ce17('0x3d')](_0x3f1697['query'][_0x22ce17('0x3d')]),_0x308e2b[_0x22ce17('0x5b')]=qs[_0x22ce17('0x3a')](_[_0x22ce17('0x19')](_0x3f1697[_0x22ce17('0xb')],_0x157c9f[_0x22ce17('0x3a')])),_0x3f1697[_0x22ce17('0xb')]['filter']&&(_0x308e2b[_0x22ce17('0x5b')]=_[_0x22ce17('0x6b')](_0x308e2b[_0x22ce17('0x5b')],{[Op['or']]:_[_0x22ce17('0x17')](_0x308e2b[_0x22ce17('0x69')],function(_0x459d15){const _0x58d495=_0x22ce17,_0x16217e={};return _0x16217e[_0x459d15]={[Op[_0x58d495('0x24')]]:'%'+_0x3f1697['query'][_0x58d495('0x1b')]+'%'},_0x16217e;})})),_0x308e2b=_[_0x22ce17('0x6b')]({},_0x308e2b,_0x3f1697['options']),_0x332b13['getAgents'](_0x308e2b);})[_0x4bb6e5('0x11')](function(_0x199059){const _0x1884a9=_0x4bb6e5;if(_0x199059)return _0xc34853=_0x199059[_0x1884a9('0x16')],typeof _0x3f1697[_0x1884a9('0xb')][_0x1884a9('0x43')]===_0x1884a9('0x1e')&&(_0x308e2b[_0x1884a9('0x48')]=qs[_0x1884a9('0x48')](_0x3f1697['query']['limit']),_0x308e2b['offset']=qs[_0x1884a9('0x44')](_0x3f1697[_0x1884a9('0xb')][_0x1884a9('0x44')])),_0x332b13[_0x1884a9('0x28')](_0x308e2b);})[_0x4bb6e5('0x11')](function(_0x52b8a9){if(_0x52b8a9)return _0x52b8a9?{'count':_0xc34853,'rows':_0x52b8a9}:null;})[_0x4bb6e5('0x11')](respondWithResult(_0x1b26a1,null))[_0x4bb6e5('0x36')](handleError(_0x1b26a1,null));}; \ No newline at end of file +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 diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index 0d3b91f..53ec948 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a627_0x2d15=['emit','addHook','exports','setMaxListeners','Team','update','save','undefined'];(function(_0x15d0c5,_0x2d15c8){const _0x921d6d=function(_0x4f5926){while(--_0x4f5926){_0x15d0c5['push'](_0x15d0c5['shift']());}};_0x921d6d(++_0x2d15c8);}(a627_0x2d15,0xf3));const a627_0x921d=function(_0x15d0c5,_0x2d15c8){_0x15d0c5=_0x15d0c5-0x0;let _0x921d6d=a627_0x2d15[_0x15d0c5];return _0x921d6d;};const _0x26c62a=a627_0x921d;'use strict';const EventEmitter=require('events'),Team=require('../../mysqldb')['db'][_0x26c62a('0x1')],TeamEvents=new EventEmitter();TeamEvents[_0x26c62a('0x0')](0x0);const events={'afterCreate':_0x26c62a('0x3'),'afterUpdate':_0x26c62a('0x2'),'afterDestroy':'remove'};function emitEvent(_0x4f5926){return function(_0x478e11){const _0x59ab29=a627_0x921d;TeamEvents[_0x59ab29('0x5')](_0x4f5926+':'+_0x478e11['id'],_0x478e11),TeamEvents['emit'](_0x4f5926,_0x478e11);};}for(const e in events){if(typeof events[e]!==_0x26c62a('0x4')){const event=events[e];Team[_0x26c62a('0x6')](e,emitEvent(event));}}module[_0x26c62a('0x7')]=TeamEvents; \ No newline at end of file +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 diff --git a/server/api/team/team.model.js b/server/api/team/team.model.js index eb764b9..f9ddaaf 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a628_0x4d2d=['./team.attributes','Team'];(function(_0xe844f4,_0x4d2dd0){const _0x483507=function(_0x3c8b97){while(--_0x3c8b97){_0xe844f4['push'](_0xe844f4['shift']());}};_0x483507(++_0x4d2dd0);}(a628_0x4d2d,0x76));const a628_0x4835=function(_0xe844f4,_0x4d2dd0){_0xe844f4=_0xe844f4-0x0;let _0x483507=a628_0x4d2d[_0xe844f4];return _0x483507;};const _0x1e8b6e=a628_0x4835;'use strict';const attributes=require(_0x1e8b6e('0x0'));module['exports']=function(_0x3c8b97){const _0x25432d=_0x1e8b6e,_0x1a5f81=_0x3c8b97['define'](_0x25432d('0x1'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1a5f81;}; \ No newline at end of file +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 diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 334a579..0ac4dae 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a629_0x3bf4=['../../rediscache','./team.socket'];(function(_0x56c6df,_0x3bf4f0){const _0xe2ec5c=function(_0x2507d4){while(--_0x2507d4){_0x56c6df['push'](_0x56c6df['shift']());}};_0xe2ec5c(++_0x3bf4f0);}(a629_0x3bf4,0x15d));const a629_0xe2ec=function(_0x56c6df,_0x3bf4f0){_0x56c6df=_0x56c6df-0x0;let _0xe2ec5c=a629_0x3bf4[_0x56c6df];return _0xe2ec5c;};const _0x5ab008=a629_0xe2ec;'use strict';const {getSocket}=require(_0x5ab008('0x1')),socket=getSocket();require(_0x5ab008('0x0'))['register'](socket); \ No newline at end of file +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 diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 7e4b218..6956813 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a630_0x564b=['save','register','length','update','team:'];(function(_0x5a717d,_0x564be8){const _0x2906ec=function(_0x35607b){while(--_0x35607b){_0x5a717d['push'](_0x5a717d['shift']());}};_0x2906ec(++_0x564be8);}(a630_0x564b,0xde));const a630_0x2906=function(_0x5a717d,_0x564be8){_0x5a717d=_0x5a717d-0x0;let _0x2906ec=a630_0x564b[_0x5a717d];return _0x2906ec;};const _0x5058fb=a630_0x2906;'use strict';const TeamEvents=require('./team.events'),events=[_0x5058fb('0x3'),'remove',_0x5058fb('0x1')];function createListener(_0x35607b,_0x46dc17){return function(_0x278d0b){_0x46dc17['emit'](_0x35607b,_0x278d0b);};}exports[_0x5058fb('0x4')]=function(_0x4ad603){const _0xcb7b53=_0x5058fb;for(let _0x130d20=0x0,_0x4dc0e7=events[_0xcb7b53('0x0')];_0x130d20<_0x4dc0e7;_0x130d20++){const _0x3d04ca=events[_0x130d20],_0x3e53e0=createListener(_0xcb7b53('0x2')+_0x3d04ca,_0x4ad603);TeamEvents['on'](_0x3d04ca,_0x3e53e0);}}; \ No newline at end of file +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 diff --git a/server/api/template/index.js b/server/api/template/index.js index e5afc5e..96b03c0 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a631_0x418b=['show','create','./template.controller','update','express','/:id','Router','index','isAuthenticated','post','put','get'];(function(_0x3ee645,_0x418b44){const _0x517271=function(_0x2f81e6){while(--_0x2f81e6){_0x3ee645['push'](_0x3ee645['shift']());}};_0x517271(++_0x418b44);}(a631_0x418b,0x176));const a631_0x5172=function(_0x3ee645,_0x418b44){_0x3ee645=_0x3ee645-0x0;let _0x517271=a631_0x418b[_0x3ee645];return _0x517271;};const _0x1cb3d3=a631_0x5172;'use strict';const express=require(_0x1cb3d3('0x2')),router=express[_0x1cb3d3('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x1cb3d3('0x0'));router[_0x1cb3d3('0x9')]('/',auth['isAuthenticated'](),controller[_0x1cb3d3('0x5')]),router[_0x1cb3d3('0x9')]('/:id',auth[_0x1cb3d3('0x6')](),controller[_0x1cb3d3('0xa')]),router[_0x1cb3d3('0x7')]('/',auth[_0x1cb3d3('0x6')](),controller[_0x1cb3d3('0xb')]),router[_0x1cb3d3('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x1cb3d3('0x1')]),router['delete'](_0x1cb3d3('0x3'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index 1095b49..a94c821 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a632_0x2cee=['exports','sequelize'];(function(_0x1a4b78,_0x2ceec0){const _0x3aa239=function(_0x432a38){while(--_0x432a38){_0x1a4b78['push'](_0x1a4b78['shift']());}};_0x3aa239(++_0x2ceec0);}(a632_0x2cee,0x1a0));const a632_0x3aa2=function(_0x1a4b78,_0x2ceec0){_0x1a4b78=_0x1a4b78-0x0;let _0x3aa239=a632_0x2cee[_0x1a4b78];return _0x3aa239;};const _0x1ab200=a632_0x3aa2;'use strict';const Sequelize=require(_0x1ab200('0x1'));module[_0x1ab200('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']},'html':{'type':Sequelize['TEXT']}}; \ No newline at end of file +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 diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index 4111da7..a361992 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a633_0x247b=['Content-Range','../../config/logger','sendStatus','findAll','attributes','count','findOne','../../components/parsers/qs','sequelize','Template','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','type','like','Unable\x20to\x20retrieve\x20the\x20current\x20user','limit','create','pick','show','Templates','send','fields','options','body','query','rawAttributes','status','set','update','order','lodash','name','catch','merge','offset','then','autoAssociation','where','fieldName','error','key','role','rows','undefined','include','keys','params','filter','intersection','stack','UserProfileSection','index','user','destroy','length','map','get','end','includeAll','json','model','filters','UserProfileResource','sort'];(function(_0x2c53a0,_0x247bec){const _0x4c8e7e=function(_0x21e6c8){while(--_0x21e6c8){_0x2c53a0['push'](_0x2c53a0['shift']());}};_0x4c8e7e(++_0x247bec);}(a633_0x247b,0x8f));const a633_0x4c8e=function(_0x2c53a0,_0x247bec){_0x2c53a0=_0x2c53a0-0x0;let _0x4c8e7e=a633_0x247b[_0x2c53a0];return _0x4c8e7e;};const _0x25b8fb=a633_0x4c8e;'use strict';const _=require(_0x25b8fb('0xc')),qs=require(_0x25b8fb('0x35')),logger=require(_0x25b8fb('0x2f'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x25b8fb('0x36'));function respondWithResult(_0x21e6c8,_0x2bc615){return _0x2bc615=_0x2bc615||0xc8,function(_0x5aefdb){const _0x3982a6=a633_0x4c8e;if(_0x5aefdb)return _0x21e6c8['status'](_0x2bc615)[_0x3982a6('0x29')](_0x5aefdb);};}function respondWithFilteredResult(_0x142574,_0x3e65dd){return function(_0x49f78c){const _0x262db3=a633_0x4c8e;if(_0x49f78c){const _0x4b2aa5=_0x49f78c[_0x262db3('0x33')],_0x43f9dc=_0x3e65dd['offset'];let _0x24c88f=_0x3e65dd[_0x262db3('0x10')]+_0x3e65dd['limit'],_0x3a1f7f;return _0x24c88f>=_0x4b2aa5?(_0x24c88f=_0x4b2aa5,_0x3a1f7f=0xc8):_0x3a1f7f=0xce,_0x142574['status'](_0x3a1f7f),_0x142574[_0x262db3('0x9')](_0x262db3('0x2e'),_0x43f9dc+'-'+_0x24c88f+'/'+_0x4b2aa5)[_0x262db3('0x29')](_0x49f78c);}return null;};}function saveUpdates(_0x25ab3b){return function(_0xf41184){const _0x27dfdc=a633_0x4c8e;if(_0xf41184)return _0xf41184[_0x27dfdc('0xa')](_0x25ab3b)['then'](function(_0x158a00){return _0x158a00;});return null;};}function removeEntity(_0x5de788){return function(_0x4f572e){const _0x6cb62b=a633_0x4c8e;if(_0x4f572e)return _0x4f572e['destroy']()[_0x6cb62b('0x11')](function(){const _0x466a27=_0x6cb62b,_0x470dbe=_0x4f572e[_0x466a27('0x26')]({'plain':!![]}),_0x179f6c='Templates';return db['UserProfileResource'][_0x466a27('0x23')]({'where':{'type':_0x179f6c,'resourceId':_0x470dbe['id']}})[_0x466a27('0x11')](function(){return _0x4f572e;});})[_0x6cb62b('0x11')](function(){const _0x2fbcd1=_0x6cb62b;_0x5de788[_0x2fbcd1('0x8')](0xcc)[_0x2fbcd1('0x27')]();});};}function handleEntityNotFound(_0x24c11f){return function(_0x1991cc){const _0x467c34=a633_0x4c8e;return!_0x1991cc&&_0x24c11f[_0x467c34('0x30')](0x194),_0x1991cc;};}function handleError(_0x116f0c,_0x848900){return _0x848900=_0x848900||0x1f4,function(_0x2eeabe){const _0x37da7a=a633_0x4c8e;logger[_0x37da7a('0x15')](_0x2eeabe[_0x37da7a('0x1f')]),_0x2eeabe[_0x37da7a('0xd')]&&delete _0x2eeabe[_0x37da7a('0xd')],_0x116f0c[_0x37da7a('0x8')](_0x848900)[_0x37da7a('0x2')](_0x2eeabe);};}exports[_0x25b8fb('0x21')]=function(_0x24f398,_0x4c6197){const _0x1d6335=_0x25b8fb;let _0x3e516c={};const _0x15588a={},_0x4593d6={'count':0x0,'rows':[]},_0x4affd6=_[_0x1d6335('0x25')](db[_0x1d6335('0x37')][_0x1d6335('0x7')],function(_0x1bd0b0){const _0x50e7c6=_0x1d6335;return{'name':_0x1bd0b0[_0x50e7c6('0x14')],'type':_0x1bd0b0[_0x50e7c6('0x39')][_0x50e7c6('0x16')]};});_0x15588a[_0x1d6335('0x2a')]=_[_0x1d6335('0x25')](_0x4affd6,_0x1d6335('0xd')),_0x15588a['query']=_[_0x1d6335('0x1b')](_0x24f398[_0x1d6335('0x6')]),_0x15588a[_0x1d6335('0x2b')]=_[_0x1d6335('0x1e')](_0x15588a['model'],_0x15588a[_0x1d6335('0x6')]),_0x3e516c[_0x1d6335('0x32')]=_['intersection'](_0x15588a[_0x1d6335('0x2a')],qs[_0x1d6335('0x3')](_0x24f398[_0x1d6335('0x6')]['fields'])),_0x3e516c[_0x1d6335('0x32')]=_0x3e516c['attributes'][_0x1d6335('0x24')]?_0x3e516c[_0x1d6335('0x32')]:_0x15588a[_0x1d6335('0x2a')];typeof _0x24f398[_0x1d6335('0x6')]['nolimit']===_0x1d6335('0x19')&&(_0x3e516c[_0x1d6335('0x3c')]=qs[_0x1d6335('0x3c')](_0x24f398[_0x1d6335('0x6')][_0x1d6335('0x3c')]),_0x3e516c[_0x1d6335('0x10')]=qs[_0x1d6335('0x10')](_0x24f398['query'][_0x1d6335('0x10')]));_0x3e516c[_0x1d6335('0xb')]=qs[_0x1d6335('0x2d')](_0x24f398[_0x1d6335('0x6')][_0x1d6335('0x2d')]),_0x3e516c['where']=qs[_0x1d6335('0x2b')](_[_0x1d6335('0x3e')](_0x24f398[_0x1d6335('0x6')],_0x15588a[_0x1d6335('0x2b')]),_0x4affd6);_0x24f398[_0x1d6335('0x6')][_0x1d6335('0x1d')]&&(_0x3e516c['where']=_[_0x1d6335('0xf')](_0x3e516c[_0x1d6335('0x13')],{[Op['or']]:_[_0x1d6335('0x25')](_0x4affd6,function(_0x22c1a5){const _0x662f54=_0x1d6335;if(_0x22c1a5[_0x662f54('0x39')]!=='VIRTUAL'){const _0x41e9a3={};return _0x41e9a3[_0x22c1a5[_0x662f54('0xd')]]={[Op[_0x662f54('0x3a')]]:'%'+_0x24f398['query'][_0x662f54('0x1d')]+'%'},_0x41e9a3;}})}));_0x3e516c=_[_0x1d6335('0xf')]({},_0x3e516c,_0x24f398[_0x1d6335('0x4')]);const _0x837736={'where':_0x3e516c['where']};return db[_0x1d6335('0x37')][_0x1d6335('0x33')](_0x837736)[_0x1d6335('0x11')](function(_0x1e8f32){const _0x2848e2=_0x1d6335;return _0x4593d6[_0x2848e2('0x33')]=_0x1e8f32,_0x24f398[_0x2848e2('0x6')][_0x2848e2('0x28')]&&(_0x3e516c[_0x2848e2('0x1a')]=[{'all':!![]}]),db[_0x2848e2('0x37')][_0x2848e2('0x31')](_0x3e516c);})['then'](function(_0x3ac92a){const _0x2d3fa7=_0x1d6335;return _0x4593d6[_0x2d3fa7('0x18')]=_0x3ac92a,_0x4593d6;})['then'](respondWithFilteredResult(_0x4c6197,_0x3e516c))[_0x1d6335('0xe')](handleError(_0x4c6197,null));},exports[_0x25b8fb('0x0')]=function(_0x5c4bed,_0x5dbbb8){const _0x1832d8=_0x25b8fb;let _0x5adce1={'raw':!![],'where':{'id':_0x5c4bed['params']['id']}};const _0x30eaa6={};return _0x30eaa6[_0x1832d8('0x2a')]=_[_0x1832d8('0x1b')](db[_0x1832d8('0x37')][_0x1832d8('0x7')]),_0x30eaa6[_0x1832d8('0x6')]=_[_0x1832d8('0x1b')](_0x5c4bed[_0x1832d8('0x6')]),_0x30eaa6[_0x1832d8('0x2b')]=_[_0x1832d8('0x1e')](_0x30eaa6[_0x1832d8('0x2a')],_0x30eaa6['query']),_0x5adce1[_0x1832d8('0x32')]=_[_0x1832d8('0x1e')](_0x30eaa6[_0x1832d8('0x2a')],qs[_0x1832d8('0x3')](_0x5c4bed['query'][_0x1832d8('0x3')])),_0x5adce1[_0x1832d8('0x32')]=_0x5adce1['attributes'][_0x1832d8('0x24')]?_0x5adce1[_0x1832d8('0x32')]:_0x30eaa6[_0x1832d8('0x2a')],_0x5c4bed[_0x1832d8('0x6')][_0x1832d8('0x28')]&&(_0x5adce1['include']=[{'all':!![]}]),_0x5adce1=_[_0x1832d8('0xf')]({},_0x5adce1,_0x5c4bed[_0x1832d8('0x4')]),db[_0x1832d8('0x37')][_0x1832d8('0x34')](_0x5adce1)[_0x1832d8('0x11')](handleEntityNotFound(_0x5dbbb8,null))['then'](respondWithResult(_0x5dbbb8,null))['catch'](handleError(_0x5dbbb8,null));},exports['create']=function(_0x36361f,_0x22a405){const _0x108505=_0x25b8fb;return db[_0x108505('0x37')]['create'](_0x36361f[_0x108505('0x5')],{})[_0x108505('0x11')](function(_0x1d2a06){const _0x280669=_0x108505,_0x255f42=_0x36361f[_0x280669('0x22')][_0x280669('0x26')]({'plain':!![]});if(!_0x255f42)throw new Error(_0x280669('0x3b'));if(_0x255f42[_0x280669('0x17')]===_0x280669('0x22')){const _0x48de38=_0x1d2a06[_0x280669('0x26')]({'plain':!![]}),_0x4c563f=_0x280669('0x1');return db[_0x280669('0x20')]['findOne']({'where':{'name':_0x4c563f,'userProfileId':_0x255f42['userProfileId']},'raw':!![]})['then'](function(_0x1561b5){const _0x4a82a8=_0x280669;return _0x1561b5&&_0x1561b5[_0x4a82a8('0x12')]===0x0?db[_0x4a82a8('0x2c')][_0x4a82a8('0x3d')]({'name':_0x48de38[_0x4a82a8('0xd')],'resourceId':_0x48de38['id'],'type':_0x1561b5[_0x4a82a8('0xd')],'sectionId':_0x1561b5['id']},{})[_0x4a82a8('0x11')](function(){return _0x1d2a06;}):_0x1d2a06;})[_0x280669('0xe')](function(_0x117331){const _0x5c4edf=_0x280669;logger[_0x5c4edf('0x15')](_0x5c4edf('0x38'),_0x117331);throw _0x117331;});}return _0x1d2a06;})['then'](respondWithResult(_0x22a405,0xc9))[_0x108505('0xe')](handleError(_0x22a405,null));},exports[_0x25b8fb('0xa')]=function(_0x559991,_0x1b6e8c){const _0x317458=_0x25b8fb;return _0x559991[_0x317458('0x5')]['id']&&delete _0x559991[_0x317458('0x5')]['id'],db[_0x317458('0x37')][_0x317458('0x34')]({'where':{'id':_0x559991[_0x317458('0x1c')]['id']}})['then'](handleEntityNotFound(_0x1b6e8c,null))[_0x317458('0x11')](saveUpdates(_0x559991[_0x317458('0x5')],null))[_0x317458('0x11')](respondWithResult(_0x1b6e8c,null))[_0x317458('0xe')](handleError(_0x1b6e8c,null));},exports[_0x25b8fb('0x23')]=function(_0x739da8,_0x10e9dd){const _0xe33b67=_0x25b8fb;return db[_0xe33b67('0x37')][_0xe33b67('0x34')]({'where':{'id':_0x739da8[_0xe33b67('0x1c')]['id']}})['then'](handleEntityNotFound(_0x10e9dd,null))[_0xe33b67('0x11')](removeEntity(_0x10e9dd,null))[_0xe33b67('0xe')](handleError(_0x10e9dd,null));}; \ No newline at end of file +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 diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index 1fd17cd..6decd80 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a634_0x18b5=['exports','Template','define','./template.attributes','tools_templates'];(function(_0x45e896,_0x18b5ff){const _0x281372=function(_0x5580af){while(--_0x5580af){_0x45e896['push'](_0x45e896['shift']());}};_0x281372(++_0x18b5ff);}(a634_0x18b5,0x195));const a634_0x2813=function(_0x45e896,_0x18b5ff){_0x45e896=_0x45e896-0x0;let _0x281372=a634_0x18b5[_0x45e896];return _0x281372;};const _0x16fee2=a634_0x2813;'use strict';const attributes=require(_0x16fee2('0x3'));module[_0x16fee2('0x0')]=function(_0x5580af){const _0x4604d7=_0x16fee2,_0x338657=_0x5580af[_0x4604d7('0x2')](_0x4604d7('0x1'),attributes,{'tableName':_0x4604d7('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x338657;}; \ No newline at end of file +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 diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index a684e6c..fadc785 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a635_0x39ef=['attributes','options','lodash','catch','raw','findAll','include','where','map','GetTemplate','stringify','then','../../mysqldb','message','Template','../../config/logger','error','model','debug','rpc'];(function(_0x3aae8d,_0x39efd6){const _0x2e44aa=function(_0x417eb8){while(--_0x417eb8){_0x3aae8d['push'](_0x3aae8d['shift']());}};_0x2e44aa(++_0x39efd6);}(a635_0x39ef,0xa6));const a635_0x2e44=function(_0x3aae8d,_0x39efd6){_0x3aae8d=_0x3aae8d-0x0;let _0x2e44aa=a635_0x39ef[_0x3aae8d];return _0x2e44aa;};const _0x445007=a635_0x2e44;'use strict';const _=require(_0x445007('0x10')),db=require(_0x445007('0x6'))['db'],logger=require(_0x445007('0x9'))(_0x445007('0xd'));exports[_0x445007('0x3')]=function(_0x417eb8){const _0x3c46bb=this;return new Promise(function(_0x12347b,_0x2c80ce){const _0x31cbfa=a635_0x2e44;return db[_0x31cbfa('0x8')][_0x31cbfa('0x13')]({'raw':_0x417eb8[_0x31cbfa('0xf')]?_0x417eb8['options'][_0x31cbfa('0x12')]===undefined?!![]:![]:!![],'where':_0x417eb8['options']?_0x417eb8['options'][_0x31cbfa('0x1')]||null:null,'attributes':_0x417eb8[_0x31cbfa('0xf')]?_0x417eb8[_0x31cbfa('0xf')]['attributes']||null:null,'limit':_0x417eb8[_0x31cbfa('0xf')]?_0x417eb8['options']['limit']||null:null,'include':_0x417eb8['options']?_0x417eb8[_0x31cbfa('0xf')][_0x31cbfa('0x0')]?_[_0x31cbfa('0x2')](_0x417eb8[_0x31cbfa('0xf')][_0x31cbfa('0x0')],function(_0x32c224){const _0x20c5e3=_0x31cbfa;return{'model':db[_0x32c224[_0x20c5e3('0xb')]],'as':_0x32c224['as'],'attributes':_0x32c224[_0x20c5e3('0xe')],'include':_0x32c224['include']?_[_0x20c5e3('0x2')](_0x32c224[_0x20c5e3('0x0')],function(_0x44f4eb){const _0x3521f1=_0x20c5e3;return{'model':db[_0x44f4eb[_0x3521f1('0xb')]],'as':_0x44f4eb['as'],'attributes':_0x44f4eb[_0x3521f1('0xe')],'include':_0x44f4eb[_0x3521f1('0x0')]?_['map'](_0x44f4eb[_0x3521f1('0x0')],function(_0x59f95e){const _0x73177a=_0x3521f1;return{'model':db[_0x59f95e['model']],'as':_0x59f95e['as'],'attributes':_0x59f95e[_0x73177a('0xe')]};}):[]};}):[]};}):[]:[]})[_0x31cbfa('0x5')](function(_0x2a9ad7){const _0x5e8ca0=_0x31cbfa;logger['info'](_0x5e8ca0('0x3'),_0x417eb8),logger[_0x5e8ca0('0xc')]('GetTemplate',_0x417eb8,JSON[_0x5e8ca0('0x4')](_0x2a9ad7)),_0x12347b(_0x2a9ad7);})[_0x31cbfa('0x11')](function(_0x182a29){const _0x202580=_0x31cbfa;logger[_0x202580('0xa')](_0x202580('0x3'),_0x182a29[_0x202580('0x7')],_0x417eb8),_0x2c80ce(_0x3c46bb['error'](0x1f4,_0x182a29[_0x202580('0x7')]));});});}; \ No newline at end of file +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 diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index 7207a5c..44074d4 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a636_0x30c5=['destroy','/:id/any_conditions','getAnyConditions','/:id','isAuthenticated','addAllCondition','getActions','/:id/all_conditions','/:id/actions','put','delete','index','create','update','express','post','Router','exports','get','show','getAllConditions','./trigger.controller'];(function(_0x1eb25e,_0x30c576){const _0xf2c44f=function(_0x357cb6){while(--_0x357cb6){_0x1eb25e['push'](_0x1eb25e['shift']());}};_0xf2c44f(++_0x30c576);}(a636_0x30c5,0x116));const a636_0xf2c4=function(_0x1eb25e,_0x30c576){_0x1eb25e=_0x1eb25e-0x0;let _0xf2c44f=a636_0x30c5[_0x1eb25e];return _0xf2c44f;};const _0xcb2bf2=a636_0xf2c4;'use strict';const express=require(_0xcb2bf2('0x0')),router=express[_0xcb2bf2('0x2')](),auth=require('../../components/auth/service'),controller=require(_0xcb2bf2('0x7'));router[_0xcb2bf2('0x4')]('/',auth[_0xcb2bf2('0xc')](),controller[_0xcb2bf2('0x13')]),router[_0xcb2bf2('0x4')](_0xcb2bf2('0xb'),auth[_0xcb2bf2('0xc')](),controller[_0xcb2bf2('0x5')]),router[_0xcb2bf2('0x4')]('/:id/all_conditions',auth[_0xcb2bf2('0xc')](),controller[_0xcb2bf2('0x6')]),router[_0xcb2bf2('0x4')](_0xcb2bf2('0x9'),auth['isAuthenticated'](),controller[_0xcb2bf2('0xa')]),router['get'](_0xcb2bf2('0x10'),auth['isAuthenticated'](),controller[_0xcb2bf2('0xe')]),router[_0xcb2bf2('0x1')]('/',auth['isAuthenticated'](),controller[_0xcb2bf2('0x14')]),router[_0xcb2bf2('0x1')](_0xcb2bf2('0xf'),auth['isAuthenticated'](),controller[_0xcb2bf2('0xd')]),router[_0xcb2bf2('0x1')](_0xcb2bf2('0x9'),auth[_0xcb2bf2('0xc')](),controller['addAnyCondition']),router[_0xcb2bf2('0x1')](_0xcb2bf2('0x10'),auth[_0xcb2bf2('0xc')](),controller['addAction']),router[_0xcb2bf2('0x11')](_0xcb2bf2('0xb'),auth[_0xcb2bf2('0xc')](),controller[_0xcb2bf2('0x15')]),router[_0xcb2bf2('0x12')](_0xcb2bf2('0xb'),auth[_0xcb2bf2('0xc')](),controller[_0xcb2bf2('0x8')]),module[_0xcb2bf2('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index 380849c..2be7404 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a637_0xa475=['sequelize','STRING','exports','BOOLEAN'];(function(_0x4da99b,_0xa4754a){const _0x4d461a=function(_0x453e55){while(--_0x453e55){_0x4da99b['push'](_0x4da99b['shift']());}};_0x4d461a(++_0xa4754a);}(a637_0xa475,0x98));const a637_0x4d46=function(_0x4da99b,_0xa4754a){_0x4da99b=_0x4da99b-0x0;let _0x4d461a=a637_0xa475[_0x4da99b];return _0x4d461a;};const _0x507f57=a637_0x4d46;'use strict';const Sequelize=require(_0x507f57('0x0'));module[_0x507f57('0x2')]={'name':{'type':Sequelize[_0x507f57('0x1')]},'channel':{'type':Sequelize[_0x507f57('0x1')]},'description':{'type':Sequelize[_0x507f57('0x1')]},'status':{'type':Sequelize[_0x507f57('0x3')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index 8e61cef..f7ce3ba 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a638_0x409b=['../../mysqldb','pick','query','stack','UserProfileResource','UserProfileSection','VIRTUAL','set','json','catch','user','type','update','includeAll','api','userProfileId','attributes','undefined','name','model','Trigger','autoAssociation','then','length','create','rawAttributes','count','Triggers','limit','getAnyConditions','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getActions','index','Unable\x20to\x20retrieve\x20the\x20current\x20user','sequelize','destroy','offset','include','filter','show','get','role','getAllConditions','filters','TriggerId','intersection','Content-Range','addAllCondition','fields','merge','status','addAction','order','params','fieldName','map','body','sendStatus','error','send','findOne','nolimit','lodash','TriggerAnyId','key','end','like','options','keys','Condition','Action','where','sort'];(function(_0x54b0c4,_0x409b83){const _0x201254=function(_0x530acd){while(--_0x530acd){_0x54b0c4['push'](_0x54b0c4['shift']());}};_0x201254(++_0x409b83);}(a638_0x409b,0x1a9));const a638_0x2012=function(_0x54b0c4,_0x409b83){_0x54b0c4=_0x54b0c4-0x0;let _0x201254=a638_0x409b[_0x54b0c4];return _0x201254;};const _0x23b718=a638_0x2012;'use strict';const _=require(_0x23b718('0x2')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x23b718('0x1b')),db=require(_0x23b718('0xd'))['db'],{Op}=require(_0x23b718('0x2f'));function respondWithResult(_0x530acd,_0x31ff76){return _0x31ff76=_0x31ff76||0xc8,function(_0x1cfa64){const _0x20c6a6=a638_0x2012;if(_0x1cfa64)return _0x530acd[_0x20c6a6('0x3f')](_0x31ff76)[_0x20c6a6('0x15')](_0x1cfa64);};}function respondWithFilteredResult(_0xb1216d,_0x4a3c15){return function(_0x49df0a){const _0x4d095b=a638_0x2012;if(_0x49df0a){const _0x52173e=_0x49df0a[_0x4d095b('0x27')],_0x532898=_0x4a3c15[_0x4d095b('0x31')];let _0x2fa0fb=_0x4a3c15[_0x4d095b('0x31')]+_0x4a3c15['limit'],_0x4d51c0;return _0x2fa0fb>=_0x52173e?(_0x2fa0fb=_0x52173e,_0x4d51c0=0xc8):_0x4d51c0=0xce,_0xb1216d[_0x4d095b('0x3f')](_0x4d51c0),_0xb1216d[_0x4d095b('0x14')](_0x4d095b('0x3b'),_0x532898+'-'+_0x2fa0fb+'/'+_0x52173e)[_0x4d095b('0x15')](_0x49df0a);}return null;};}function saveUpdates(_0x557e7f){return function(_0x221e25){const _0xe5f305=a638_0x2012;if(_0x221e25)return _0x221e25[_0xe5f305('0x19')](_0x557e7f)[_0xe5f305('0x23')](function(_0x3ea869){return _0x3ea869;});return null;};}function removeEntity(_0x101d08){return function(_0x48116f){const _0x5339c8=a638_0x2012;if(_0x48116f)return _0x48116f[_0x5339c8('0x30')]()[_0x5339c8('0x23')](function(){const _0x59fc0a=_0x5339c8,_0x48d835=_0x48116f[_0x59fc0a('0x35')]({'plain':!![]}),_0x6fec3c='Triggers';return db[_0x59fc0a('0x11')][_0x59fc0a('0x30')]({'where':{'type':_0x6fec3c,'resourceId':_0x48d835['id']}})[_0x59fc0a('0x23')](function(){return _0x48116f;});})[_0x5339c8('0x23')](function(){const _0x5ed06b=_0x5339c8;_0x101d08[_0x5ed06b('0x3f')](0xcc)[_0x5ed06b('0x5')]();});};}function handleEntityNotFound(_0x3cc39b){return function(_0x5e994b){const _0x23babc=a638_0x2012;return!_0x5e994b&&_0x3cc39b[_0x23babc('0x46')](0x194),_0x5e994b;};}function handleError(_0xb2d274,_0x5a9f2f){return _0x5a9f2f=_0x5a9f2f||0x1f4,function(_0x1dd650){const _0xa41c23=a638_0x2012;logger[_0xa41c23('0x47')](_0x1dd650[_0xa41c23('0x10')]),_0x1dd650[_0xa41c23('0x1f')]&&delete _0x1dd650[_0xa41c23('0x1f')],_0xb2d274[_0xa41c23('0x3f')](_0x5a9f2f)[_0xa41c23('0x48')](_0x1dd650);};}exports[_0x23b718('0x2d')]=function(_0x45911b,_0x1a2914){const _0x3929a7=_0x23b718;let _0x2c4846={};const _0x567a60={},_0x500e02={'count':0x0,'rows':[]},_0x205248=_['map'](db['Trigger'][_0x3929a7('0x26')],function(_0x24f3a8){const _0x4cde34=_0x3929a7;return{'name':_0x24f3a8[_0x4cde34('0x43')],'type':_0x24f3a8[_0x4cde34('0x18')][_0x4cde34('0x4')]};});_0x567a60[_0x3929a7('0x20')]=_['map'](_0x205248,_0x3929a7('0x1f')),_0x567a60[_0x3929a7('0xf')]=_[_0x3929a7('0x8')](_0x45911b[_0x3929a7('0xf')]),_0x567a60[_0x3929a7('0x38')]=_[_0x3929a7('0x3a')](_0x567a60[_0x3929a7('0x20')],_0x567a60[_0x3929a7('0xf')]),_0x2c4846[_0x3929a7('0x1d')]=_[_0x3929a7('0x3a')](_0x567a60['model'],qs['fields'](_0x45911b[_0x3929a7('0xf')]['fields'])),_0x2c4846[_0x3929a7('0x1d')]=_0x2c4846[_0x3929a7('0x1d')][_0x3929a7('0x24')]?_0x2c4846[_0x3929a7('0x1d')]:_0x567a60[_0x3929a7('0x20')];typeof _0x45911b[_0x3929a7('0xf')][_0x3929a7('0x1')]===_0x3929a7('0x1e')&&(_0x2c4846[_0x3929a7('0x29')]=qs[_0x3929a7('0x29')](_0x45911b[_0x3929a7('0xf')][_0x3929a7('0x29')]),_0x2c4846['offset']=qs[_0x3929a7('0x31')](_0x45911b[_0x3929a7('0xf')][_0x3929a7('0x31')]));_0x2c4846[_0x3929a7('0x41')]=qs['sort'](_0x45911b[_0x3929a7('0xf')][_0x3929a7('0xc')]),_0x2c4846['where']=qs[_0x3929a7('0x38')](_['pick'](_0x45911b[_0x3929a7('0xf')],_0x567a60[_0x3929a7('0x38')]),_0x205248);_0x45911b[_0x3929a7('0xf')]['filter']&&(_0x2c4846[_0x3929a7('0xb')]=_[_0x3929a7('0x3e')](_0x2c4846['where'],{[Op['or']]:_['map'](_0x205248,function(_0x505bd6){const _0x78ea90=_0x3929a7;if(_0x505bd6[_0x78ea90('0x18')]!==_0x78ea90('0x13')){const _0x2e42ea={};return _0x2e42ea[_0x505bd6[_0x78ea90('0x1f')]]={[Op['like']]:'%'+_0x45911b[_0x78ea90('0xf')][_0x78ea90('0x33')]+'%'},_0x2e42ea;}})}));_0x2c4846=_[_0x3929a7('0x3e')]({},_0x2c4846,_0x45911b[_0x3929a7('0x7')]);const _0x1d4b72={'where':_0x2c4846[_0x3929a7('0xb')]};return db[_0x3929a7('0x21')][_0x3929a7('0x27')](_0x1d4b72)[_0x3929a7('0x23')](function(_0x3e267c){const _0x4bb128=_0x3929a7;return _0x500e02[_0x4bb128('0x27')]=_0x3e267c,_0x45911b[_0x4bb128('0xf')]['includeAll']&&(_0x2c4846[_0x4bb128('0x32')]=[{'all':!![]}]),db['Trigger']['findAll'](_0x2c4846);})[_0x3929a7('0x23')](function(_0xf1e3d){return _0x500e02['rows']=_0xf1e3d,_0x500e02;})[_0x3929a7('0x23')](respondWithFilteredResult(_0x1a2914,_0x2c4846))['catch'](handleError(_0x1a2914,null));},exports[_0x23b718('0x34')]=function(_0x4ff39e,_0x147947){const _0xd3b51d=_0x23b718;let _0x24fcef={'raw':![],'where':{'id':_0x4ff39e[_0xd3b51d('0x42')]['id']}};const _0x340479={};return _0x340479[_0xd3b51d('0x20')]=_[_0xd3b51d('0x8')](db[_0xd3b51d('0x21')][_0xd3b51d('0x26')]),_0x340479['query']=_[_0xd3b51d('0x8')](_0x4ff39e['query']),_0x340479[_0xd3b51d('0x38')]=_[_0xd3b51d('0x3a')](_0x340479[_0xd3b51d('0x20')],_0x340479[_0xd3b51d('0xf')]),_0x24fcef['attributes']=_['intersection'](_0x340479[_0xd3b51d('0x20')],qs[_0xd3b51d('0x3d')](_0x4ff39e[_0xd3b51d('0xf')]['fields'])),_0x24fcef[_0xd3b51d('0x1d')]=_0x24fcef[_0xd3b51d('0x1d')][_0xd3b51d('0x24')]?_0x24fcef['attributes']:_0x340479['model'],_0x4ff39e[_0xd3b51d('0xf')][_0xd3b51d('0x1a')]&&(_0x24fcef[_0xd3b51d('0x32')]=[{'all':!![]}]),_0x24fcef=_['merge']({},_0x24fcef,_0x4ff39e['options']),db[_0xd3b51d('0x21')][_0xd3b51d('0x0')](_0x24fcef)[_0xd3b51d('0x23')](handleEntityNotFound(_0x147947,null))[_0xd3b51d('0x23')](respondWithResult(_0x147947,null))[_0xd3b51d('0x16')](handleError(_0x147947,null));},exports[_0x23b718('0x25')]=function(_0x21bebd,_0x4f5354){const _0x45d828=_0x23b718;return db[_0x45d828('0x21')][_0x45d828('0x25')](_0x21bebd[_0x45d828('0x45')],{})[_0x45d828('0x23')](function(_0x38e271){const _0x4c0317=_0x45d828,_0x2dafe5=_0x21bebd[_0x4c0317('0x17')][_0x4c0317('0x35')]({'plain':!![]});if(!_0x2dafe5)throw new Error(_0x4c0317('0x2e'));if(_0x2dafe5[_0x4c0317('0x36')]===_0x4c0317('0x17')){const _0x154c68=_0x38e271['get']({'plain':!![]}),_0x5134c=_0x4c0317('0x28');return db[_0x4c0317('0x12')][_0x4c0317('0x0')]({'where':{'name':_0x5134c,'userProfileId':_0x2dafe5[_0x4c0317('0x1c')]},'raw':!![]})[_0x4c0317('0x23')](function(_0x471e2c){const _0x317c42=_0x4c0317;return _0x471e2c&&_0x471e2c[_0x317c42('0x22')]===0x0?db[_0x317c42('0x11')][_0x317c42('0x25')]({'name':_0x154c68[_0x317c42('0x1f')],'resourceId':_0x154c68['id'],'type':_0x471e2c[_0x317c42('0x1f')],'sectionId':_0x471e2c['id']},{})[_0x317c42('0x23')](function(){return _0x38e271;}):_0x38e271;})[_0x4c0317('0x16')](function(_0x58e952){const _0x2c5dc7=_0x4c0317;logger[_0x2c5dc7('0x47')](_0x2c5dc7('0x2b'),_0x58e952);throw _0x58e952;});}return _0x38e271;})[_0x45d828('0x23')](respondWithResult(_0x4f5354,0xc9))[_0x45d828('0x16')](handleError(_0x4f5354,null));},exports['update']=function(_0x29dc14,_0x43573c){const _0x422384=_0x23b718;return _0x29dc14[_0x422384('0x45')]['id']&&delete _0x29dc14['body']['id'],db[_0x422384('0x21')][_0x422384('0x0')]({'where':{'id':_0x29dc14[_0x422384('0x42')]['id']}})[_0x422384('0x23')](handleEntityNotFound(_0x43573c,null))[_0x422384('0x23')](saveUpdates(_0x29dc14[_0x422384('0x45')],null))['then'](respondWithResult(_0x43573c,null))[_0x422384('0x16')](handleError(_0x43573c,null));},exports['destroy']=function(_0x37a9ef,_0x4d2a50){const _0x4b5954=_0x23b718;return db['Trigger'][_0x4b5954('0x0')]({'where':{'id':_0x37a9ef[_0x4b5954('0x42')]['id']}})[_0x4b5954('0x23')](handleEntityNotFound(_0x4d2a50,null))[_0x4b5954('0x23')](removeEntity(_0x4d2a50,null))['catch'](handleError(_0x4d2a50,null));},exports[_0x23b718('0x3c')]=function(_0x521be7,_0x27f00b){const _0x5b7a6d=_0x23b718;return _0x521be7['body']['id']&&delete _0x521be7[_0x5b7a6d('0x45')]['id'],db[_0x5b7a6d('0x21')][_0x5b7a6d('0x0')]({'where':{'id':_0x521be7[_0x5b7a6d('0x42')]['id']}})[_0x5b7a6d('0x23')](handleEntityNotFound(_0x27f00b,null))[_0x5b7a6d('0x23')](function(_0x4280d0){const _0x219a52=_0x5b7a6d;if(_0x4280d0)return _0x521be7[_0x219a52('0x45')]['TriggerAllId']=_0x4280d0['id'],db[_0x219a52('0x9')]['create'](_0x521be7[_0x219a52('0x45')]);})['then'](respondWithResult(_0x27f00b,null))[_0x5b7a6d('0x16')](handleError(_0x27f00b,null));},exports['addAnyCondition']=function(_0x4fe0a0,_0x3eb043){const _0x479f63=_0x23b718;return _0x4fe0a0[_0x479f63('0x45')]['id']&&delete _0x4fe0a0[_0x479f63('0x45')]['id'],db['Trigger'][_0x479f63('0x0')]({'where':{'id':_0x4fe0a0[_0x479f63('0x42')]['id']}})[_0x479f63('0x23')](handleEntityNotFound(_0x3eb043,null))[_0x479f63('0x23')](function(_0x4a3eb8){const _0x4fe002=_0x479f63;if(_0x4a3eb8)return _0x4fe0a0[_0x4fe002('0x45')][_0x4fe002('0x3')]=_0x4a3eb8['id'],db[_0x4fe002('0x9')][_0x4fe002('0x25')](_0x4fe0a0[_0x4fe002('0x45')]);})[_0x479f63('0x23')](respondWithResult(_0x3eb043,null))['catch'](handleError(_0x3eb043,null));},exports[_0x23b718('0x37')]=function(_0x5f2fdf,_0x4f8923){const _0x30240c=_0x23b718;let _0x30a13b={};const _0x501404={};let _0x441f67,_0x4f5828;return db[_0x30240c('0x21')][_0x30240c('0x0')]({'where':{'id':_0x5f2fdf[_0x30240c('0x42')]['id']}})[_0x30240c('0x23')](handleEntityNotFound(_0x4f8923,null))[_0x30240c('0x23')](function(_0x330390){const _0x16958f=_0x30240c;if(_0x330390)return _0x441f67=_0x330390,_0x501404[_0x16958f('0x20')]=_[_0x16958f('0x8')](db[_0x16958f('0x9')]['rawAttributes']),_0x501404['query']=_[_0x16958f('0x8')](_0x5f2fdf[_0x16958f('0xf')]),_0x501404[_0x16958f('0x38')]=_[_0x16958f('0x3a')](_0x501404['model'],_0x501404[_0x16958f('0xf')]),_0x30a13b['attributes']=_[_0x16958f('0x3a')](_0x501404[_0x16958f('0x20')],qs[_0x16958f('0x3d')](_0x5f2fdf[_0x16958f('0xf')]['fields'])),_0x30a13b[_0x16958f('0x1d')]=_0x30a13b['attributes'][_0x16958f('0x24')]?_0x30a13b[_0x16958f('0x1d')]:_0x501404['model'],_0x30a13b['order']=qs[_0x16958f('0xc')](_0x5f2fdf[_0x16958f('0xf')][_0x16958f('0xc')]),_0x30a13b['where']=qs[_0x16958f('0x38')](_['pick'](_0x5f2fdf[_0x16958f('0xf')],_0x501404[_0x16958f('0x38')])),_0x5f2fdf['query'][_0x16958f('0x33')]&&(_0x30a13b[_0x16958f('0xb')]=_[_0x16958f('0x3e')](_0x30a13b['where'],{[Op['or']]:_['map'](_0x30a13b['attributes'],function(_0x3e2b96){const _0x300cf8=_0x16958f,_0x432239={};return _0x432239[_0x3e2b96]={[Op[_0x300cf8('0x6')]]:'%'+_0x5f2fdf[_0x300cf8('0xf')]['filter']+'%'},_0x432239;})})),_0x30a13b=_[_0x16958f('0x3e')]({},_0x30a13b,_0x5f2fdf[_0x16958f('0x7')]),_0x441f67[_0x16958f('0x37')](_0x30a13b);})[_0x30240c('0x23')](function(_0x7659f7){const _0x3cfd6f=_0x30240c;if(_0x7659f7)return _0x4f5828=_0x7659f7['length'],typeof _0x5f2fdf[_0x3cfd6f('0xf')][_0x3cfd6f('0x1')]===_0x3cfd6f('0x1e')&&(_0x30a13b[_0x3cfd6f('0x29')]=qs[_0x3cfd6f('0x29')](_0x5f2fdf['query'][_0x3cfd6f('0x29')]),_0x30a13b[_0x3cfd6f('0x31')]=qs[_0x3cfd6f('0x31')](_0x5f2fdf['query'][_0x3cfd6f('0x31')])),_0x441f67['getAllConditions'](_0x30a13b);})[_0x30240c('0x23')](function(_0x328fef){if(_0x328fef)return _0x328fef?{'count':_0x4f5828,'rows':_0x328fef}:null;})[_0x30240c('0x23')](respondWithResult(_0x4f8923,null))[_0x30240c('0x16')](handleError(_0x4f8923,null));},exports[_0x23b718('0x2a')]=function(_0x7e3d00,_0x48ac20){const _0x2ec325=_0x23b718;let _0x5b928f={};const _0xb18b1={};let _0x47be4b,_0x21949d;return db[_0x2ec325('0x21')][_0x2ec325('0x0')]({'where':{'id':_0x7e3d00[_0x2ec325('0x42')]['id']}})[_0x2ec325('0x23')](handleEntityNotFound(_0x48ac20,null))[_0x2ec325('0x23')](function(_0x520589){const _0x1d47b4=_0x2ec325;if(_0x520589)return _0x47be4b=_0x520589,_0xb18b1[_0x1d47b4('0x20')]=_[_0x1d47b4('0x8')](db[_0x1d47b4('0x9')][_0x1d47b4('0x26')]),_0xb18b1[_0x1d47b4('0xf')]=_[_0x1d47b4('0x8')](_0x7e3d00[_0x1d47b4('0xf')]),_0xb18b1[_0x1d47b4('0x38')]=_[_0x1d47b4('0x3a')](_0xb18b1['model'],_0xb18b1[_0x1d47b4('0xf')]),_0x5b928f[_0x1d47b4('0x1d')]=_[_0x1d47b4('0x3a')](_0xb18b1[_0x1d47b4('0x20')],qs['fields'](_0x7e3d00['query'][_0x1d47b4('0x3d')])),_0x5b928f['attributes']=_0x5b928f[_0x1d47b4('0x1d')][_0x1d47b4('0x24')]?_0x5b928f['attributes']:_0xb18b1[_0x1d47b4('0x20')],_0x5b928f['order']=qs['sort'](_0x7e3d00[_0x1d47b4('0xf')][_0x1d47b4('0xc')]),_0x5b928f[_0x1d47b4('0xb')]=qs['filters'](_[_0x1d47b4('0xe')](_0x7e3d00[_0x1d47b4('0xf')],_0xb18b1[_0x1d47b4('0x38')])),_0x7e3d00[_0x1d47b4('0xf')][_0x1d47b4('0x33')]&&(_0x5b928f['where']=_[_0x1d47b4('0x3e')](_0x5b928f['where'],{[Op['or']]:_[_0x1d47b4('0x44')](_0x5b928f['attributes'],function(_0x410be5){const _0x5d648f=_0x1d47b4,_0x13fc9a={};return _0x13fc9a[_0x410be5]={[Op[_0x5d648f('0x6')]]:'%'+_0x7e3d00[_0x5d648f('0xf')][_0x5d648f('0x33')]+'%'},_0x13fc9a;})})),_0x5b928f=_['merge']({},_0x5b928f,_0x7e3d00['options']),_0x47be4b['getAnyConditions'](_0x5b928f);})[_0x2ec325('0x23')](function(_0x411e66){const _0x584e78=_0x2ec325;if(_0x411e66)return _0x21949d=_0x411e66[_0x584e78('0x24')],typeof _0x7e3d00['query'][_0x584e78('0x1')]===_0x584e78('0x1e')&&(_0x5b928f[_0x584e78('0x29')]=qs['limit'](_0x7e3d00[_0x584e78('0xf')][_0x584e78('0x29')]),_0x5b928f[_0x584e78('0x31')]=qs[_0x584e78('0x31')](_0x7e3d00[_0x584e78('0xf')][_0x584e78('0x31')])),_0x47be4b[_0x584e78('0x2a')](_0x5b928f);})[_0x2ec325('0x23')](function(_0x46de43){if(_0x46de43)return _0x46de43?{'count':_0x21949d,'rows':_0x46de43}:null;})[_0x2ec325('0x23')](respondWithResult(_0x48ac20,null))[_0x2ec325('0x16')](handleError(_0x48ac20,null));},exports[_0x23b718('0x40')]=function(_0x5b4de3,_0x21d9ba){const _0x180a85=_0x23b718;return _0x5b4de3[_0x180a85('0x45')]['id']&&delete _0x5b4de3[_0x180a85('0x45')]['id'],db[_0x180a85('0x21')][_0x180a85('0x0')]({'where':{'id':_0x5b4de3[_0x180a85('0x42')]['id']}})[_0x180a85('0x23')](handleEntityNotFound(_0x21d9ba,null))['then'](function(_0x5ed70c){const _0x365758=_0x180a85;if(_0x5ed70c)return _0x5b4de3['body'][_0x365758('0x39')]=_0x5ed70c['id'],db[_0x365758('0xa')][_0x365758('0x25')](_0x5b4de3[_0x365758('0x45')]);})[_0x180a85('0x23')](respondWithResult(_0x21d9ba,null))[_0x180a85('0x16')](handleError(_0x21d9ba,null));},exports['getActions']=function(_0x379a1d,_0x4adb5e){const _0x3476a1=_0x23b718;let _0x5de25b={};const _0xb2fd78={};let _0x45548c,_0x59a19f;return db[_0x3476a1('0x21')][_0x3476a1('0x0')]({'where':{'id':_0x379a1d[_0x3476a1('0x42')]['id']}})[_0x3476a1('0x23')](handleEntityNotFound(_0x4adb5e,null))[_0x3476a1('0x23')](function(_0x429883){const _0x1867a6=_0x3476a1;if(_0x429883)return _0x45548c=_0x429883,_0xb2fd78['model']=_[_0x1867a6('0x8')](db[_0x1867a6('0xa')][_0x1867a6('0x26')]),_0xb2fd78['query']=_[_0x1867a6('0x8')](_0x379a1d['query']),_0xb2fd78[_0x1867a6('0x38')]=_[_0x1867a6('0x3a')](_0xb2fd78[_0x1867a6('0x20')],_0xb2fd78[_0x1867a6('0xf')]),_0x5de25b[_0x1867a6('0x1d')]=_['intersection'](_0xb2fd78['model'],qs['fields'](_0x379a1d[_0x1867a6('0xf')][_0x1867a6('0x3d')])),_0x5de25b[_0x1867a6('0x1d')]=_0x5de25b[_0x1867a6('0x1d')][_0x1867a6('0x24')]?_0x5de25b[_0x1867a6('0x1d')]:_0xb2fd78[_0x1867a6('0x20')],_0x5de25b[_0x1867a6('0x41')]=qs[_0x1867a6('0xc')](_0x379a1d[_0x1867a6('0xf')][_0x1867a6('0xc')]),_0x5de25b[_0x1867a6('0xb')]=qs['filters'](_[_0x1867a6('0xe')](_0x379a1d['query'],_0xb2fd78[_0x1867a6('0x38')])),_0x379a1d[_0x1867a6('0xf')][_0x1867a6('0x33')]&&(_0x5de25b[_0x1867a6('0xb')]=_[_0x1867a6('0x3e')](_0x5de25b[_0x1867a6('0xb')],{[Op['or']]:_[_0x1867a6('0x44')](_0x5de25b[_0x1867a6('0x1d')],function(_0x3a4d4e){const _0x147719=_0x1867a6,_0x637ba={};return _0x637ba[_0x3a4d4e]={[Op[_0x147719('0x6')]]:'%'+_0x379a1d[_0x147719('0xf')][_0x147719('0x33')]+'%'},_0x637ba;})})),_0x5de25b=_['merge']({},_0x5de25b,_0x379a1d[_0x1867a6('0x7')]),_0x45548c[_0x1867a6('0x2c')](_0x5de25b);})['then'](function(_0x2864d0){const _0x7d365c=_0x3476a1;if(_0x2864d0)return _0x59a19f=_0x2864d0['length'],typeof _0x379a1d['query'][_0x7d365c('0x1')]==='undefined'&&(_0x5de25b[_0x7d365c('0x29')]=qs[_0x7d365c('0x29')](_0x379a1d[_0x7d365c('0xf')]['limit']),_0x5de25b[_0x7d365c('0x31')]=qs[_0x7d365c('0x31')](_0x379a1d['query'][_0x7d365c('0x31')])),_0x45548c[_0x7d365c('0x2c')](_0x5de25b);})[_0x3476a1('0x23')](function(_0x275fac){if(_0x275fac)return _0x275fac?{'count':_0x59a19f,'rows':_0x275fac}:null;})[_0x3476a1('0x23')](respondWithResult(_0x4adb5e,null))[_0x3476a1('0x16')](handleError(_0x4adb5e,null));}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index 3f9b532..9d57ada 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a639_0x7053=['tools_triggers','Trigger','exports'];(function(_0x3dc5c3,_0x705364){const _0x4e585f=function(_0x442092){while(--_0x442092){_0x3dc5c3['push'](_0x3dc5c3['shift']());}};_0x4e585f(++_0x705364);}(a639_0x7053,0x17c));const a639_0x4e58=function(_0x3dc5c3,_0x705364){_0x3dc5c3=_0x3dc5c3-0x0;let _0x4e585f=a639_0x7053[_0x3dc5c3];return _0x4e585f;};const _0x3e4e29=a639_0x4e58;'use strict';const attributes=require('./trigger.attributes');module[_0x3e4e29('0x0')]=function(_0x442092){const _0x5e182f=_0x3e4e29,_0x33cece=_0x442092['define'](_0x5e182f('0x2'),attributes,{'tableName':_0x5e182f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x33cece;}; \ No newline at end of file +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 diff --git a/server/api/trigger/trigger.rpc.js b/server/api/trigger/trigger.rpc.js index 2086bfc..a205467 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a640_0xe4f5=['../../config/logger','model','raw','catch','map','info','ShowTrigger','error','then','message','debug','findAll','options','where','Trigger','include','lodash','rpc','findOne','../../mysqldb','attributes','stringify','GetTrigger'];(function(_0x2f1fc0,_0xe4f5dd){const _0x58dfdc=function(_0x3c1507){while(--_0x3c1507){_0x2f1fc0['push'](_0x2f1fc0['shift']());}};_0x58dfdc(++_0xe4f5dd);}(a640_0xe4f5,0x19a));const a640_0x58df=function(_0x2f1fc0,_0xe4f5dd){_0x2f1fc0=_0x2f1fc0-0x0;let _0x58dfdc=a640_0xe4f5[_0x2f1fc0];return _0x58dfdc;};const _0x2fbaa2=a640_0x58df;'use strict';const _=require(_0x2fbaa2('0x14')),db=require(_0x2fbaa2('0x0'))['db'],logger=require(_0x2fbaa2('0x4'))(_0x2fbaa2('0x15'));exports[_0x2fbaa2('0x3')]=function(_0x3c1507){const _0x25e255=this;return new Promise(function(_0x14e659,_0x5d0ccb){const _0x244765=a640_0x58df;return db[_0x244765('0x12')][_0x244765('0xf')]({'raw':_0x3c1507[_0x244765('0x10')]?_0x3c1507['options'][_0x244765('0x6')]===undefined?!![]:![]:!![],'where':_0x3c1507[_0x244765('0x10')]?_0x3c1507[_0x244765('0x10')][_0x244765('0x11')]||null:null,'attributes':_0x3c1507[_0x244765('0x10')]?_0x3c1507[_0x244765('0x10')][_0x244765('0x1')]||null:null,'limit':_0x3c1507[_0x244765('0x10')]?_0x3c1507[_0x244765('0x10')]['limit']||null:null,'include':_0x3c1507[_0x244765('0x10')]?_0x3c1507[_0x244765('0x10')]['include']?_[_0x244765('0x8')](_0x3c1507[_0x244765('0x10')]['include'],function(_0x178d3f){const _0x2fc176=_0x244765;return{'model':db[_0x178d3f[_0x2fc176('0x5')]],'as':_0x178d3f['as'],'attributes':_0x178d3f['attributes'],'include':_0x178d3f[_0x2fc176('0x13')]?_[_0x2fc176('0x8')](_0x178d3f[_0x2fc176('0x13')],function(_0x45cc64){const _0x55269a=_0x2fc176;return{'model':db[_0x45cc64[_0x55269a('0x5')]],'as':_0x45cc64['as'],'attributes':_0x45cc64['attributes'],'include':_0x45cc64[_0x55269a('0x13')]?_[_0x55269a('0x8')](_0x45cc64[_0x55269a('0x13')],function(_0x5be93c){const _0x372460=_0x55269a;return{'model':db[_0x5be93c[_0x372460('0x5')]],'as':_0x5be93c['as'],'attributes':_0x5be93c[_0x372460('0x1')]};}):[]};}):[]};}):[]:[]})[_0x244765('0xc')](function(_0x54677b){const _0x34acf1=_0x244765;logger[_0x34acf1('0x9')](_0x34acf1('0x3'),_0x3c1507),logger[_0x34acf1('0xe')](_0x34acf1('0x3'),_0x3c1507,JSON[_0x34acf1('0x2')](_0x54677b)),_0x14e659(_0x54677b);})[_0x244765('0x7')](function(_0x55ab0f){const _0x3fc4c6=_0x244765;logger[_0x3fc4c6('0xb')](_0x3fc4c6('0x3'),_0x55ab0f[_0x3fc4c6('0xd')],_0x3c1507),_0x5d0ccb(_0x25e255[_0x3fc4c6('0xb')](0x1f4,_0x55ab0f[_0x3fc4c6('0xd')]));});});},exports[_0x2fbaa2('0xa')]=function(_0xc90375){const _0x582c5d=this;return new Promise(function(_0xef207,_0x43d6d5){const _0x302fe1=a640_0x58df;return db[_0x302fe1('0x12')][_0x302fe1('0x16')]({'raw':_0xc90375[_0x302fe1('0x10')]?_0xc90375[_0x302fe1('0x10')][_0x302fe1('0x6')]===undefined?!![]:![]:!![],'where':_0xc90375[_0x302fe1('0x10')]?_0xc90375[_0x302fe1('0x10')][_0x302fe1('0x11')]||null:null,'attributes':_0xc90375[_0x302fe1('0x10')]?_0xc90375[_0x302fe1('0x10')][_0x302fe1('0x1')]||null:null,'include':_0xc90375['options']?_0xc90375['options'][_0x302fe1('0x13')]?_['map'](_0xc90375[_0x302fe1('0x10')][_0x302fe1('0x13')],function(_0x4edfd1){const _0x5a240b=_0x302fe1;return{'model':db[_0x4edfd1['model']],'as':_0x4edfd1['as'],'attributes':_0x4edfd1['attributes'],'include':_0x4edfd1[_0x5a240b('0x13')]?_['map'](_0x4edfd1[_0x5a240b('0x13')],function(_0x42c353){const _0x3d124f=_0x5a240b;return{'model':db[_0x42c353[_0x3d124f('0x5')]],'as':_0x42c353['as'],'attributes':_0x42c353[_0x3d124f('0x1')],'include':_0x42c353[_0x3d124f('0x13')]?_[_0x3d124f('0x8')](_0x42c353['include'],function(_0x4910d3){const _0x32626e=_0x3d124f;return{'model':db[_0x4910d3[_0x32626e('0x5')]],'as':_0x4910d3['as'],'attributes':_0x4910d3['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x924862){const _0x45b4a6=_0x302fe1;logger[_0x45b4a6('0x9')](_0x45b4a6('0xa'),_0xc90375),logger[_0x45b4a6('0xe')](_0x45b4a6('0xa'),_0xc90375,JSON['stringify'](_0x924862)),_0xef207(_0x924862);})[_0x302fe1('0x7')](function(_0x39de57){const _0x1c4731=_0x302fe1;logger[_0x1c4731('0xb')](_0x1c4731('0xa'),_0x39de57['message'],_0xc90375),_0x43d6d5(_0x582c5d['error'](0x1f4,_0x39de57['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index a990206..cfa6234 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a641_0x56a2=['/:id','put','update','show','delete','post','./trunk.controller','destroy','Router','../../components/auth/service','exports','/:id/clone','express','isAuthenticated','get'];(function(_0x4f3463,_0x56a23d){const _0x475f5b=function(_0x133e2c){while(--_0x133e2c){_0x4f3463['push'](_0x4f3463['shift']());}};_0x475f5b(++_0x56a23d);}(a641_0x56a2,0x7f));const a641_0x475f=function(_0x4f3463,_0x56a23d){_0x4f3463=_0x4f3463-0x0;let _0x475f5b=a641_0x56a2[_0x4f3463];return _0x475f5b;};const _0x2cb59f=a641_0x475f;'use strict';const express=require(_0x2cb59f('0x5')),router=express[_0x2cb59f('0x1')](),auth=require(_0x2cb59f('0x2')),controller=require(_0x2cb59f('0xe'));router[_0x2cb59f('0x7')]('/',auth[_0x2cb59f('0x6')](),controller['index']),router[_0x2cb59f('0x7')](_0x2cb59f('0x8'),auth['isAuthenticated'](),controller[_0x2cb59f('0xb')]),router[_0x2cb59f('0xd')](_0x2cb59f('0x4'),auth[_0x2cb59f('0x6')](),controller['clone']),router[_0x2cb59f('0xd')]('/',auth[_0x2cb59f('0x6')](),controller['create']),router[_0x2cb59f('0x9')](_0x2cb59f('0x8'),auth['isAuthenticated'](),controller[_0x2cb59f('0xa')]),router[_0x2cb59f('0xc')](_0x2cb59f('0x8'),auth[_0x2cb59f('0x6')](),controller[_0x2cb59f('0x0')]),module[_0x2cb59f('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index 83bbd05..6564364 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a642_0x9601=['always','allow','outgoing','transport','passive','nonat','shortinfo','PROHIB','setDataValue','yes','actpass','getDataValue','exports','update,nonat','force_rport,comedia','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','INTEGER','insecure','fingerprint','all','info','friend','ALLOWED_PASSED_SCREEN','ENUM','auto','refuse','STRING','udp','uas','inband','\x22\x22\x20<>','accept','from-voip-provider','join','update','split','user','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','rfc2833','ALLOWED_FAILED_SCREEN','nat','port,invite','PROHIB_NOT_SCREENED','PROHIB_PASSED_SCREEN','ulaw;alaw;gsm','name','ALLOWED_NOT_SCREENED','pai'];(function(_0x560194,_0x9601dd){const _0x1afabb=function(_0x10cddd){while(--_0x10cddd){_0x560194['push'](_0x560194['shift']());}};_0x1afabb(++_0x9601dd);}(a642_0x9601,0x67));const a642_0x1afa=function(_0x560194,_0x9601dd){_0x560194=_0x560194-0x0;let _0x1afabb=a642_0x9601[_0x560194];return _0x1afabb;};const _0x295057=a642_0x1afa;'use strict';const Sequelize=require('sequelize');module[_0x295057('0x5')]={'name':{'type':Sequelize[_0x295057('0x13')],'allowNull':![],'unique':_0x295057('0x26'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x295057('0x10')](_0x295057('0xe'),_0x295057('0x1d'),'peer'),'allowNull':![],'defaultValue':_0x295057('0xe')},'context':{'type':Sequelize[_0x295057('0x13')],'allowNull':![],'defaultValue':_0x295057('0x19')},'callingpres':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x27'),_0x295057('0xf'),_0x295057('0x20'),'ALLOWED',_0x295057('0x23'),_0x295057('0x24'),'PROHIB_FAILED_SCREEN',_0x295057('0x0'))},'deny':{'type':Sequelize[_0x295057('0x13')]},'permit':{'type':Sequelize['STRING']},'secret':{'type':Sequelize['STRING']},'md5secret':{'type':Sequelize[_0x295057('0x13')]},'remotesecret':{'type':Sequelize[_0x295057('0x13')]},'transport':{'type':Sequelize['STRING'],'defaultValue':_0x295057('0x14'),'set':function(_0x10cddd){const _0x51369e=_0x295057;this[_0x51369e('0x1')]('transport',_0x10cddd?_0x10cddd[_0x51369e('0x1a')](','):null);},'get':function(){const _0x5a64ac=_0x295057;return this['getDataValue'](_0x5a64ac('0x2c'))?this[_0x5a64ac('0x4')](_0x5a64ac('0x2c'))['split'](','):null;},'comment':_0x295057('0x8')},'dtmfmode':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x1f'),_0x295057('0xd'),_0x295057('0x2f'),_0x295057('0x16'),_0x295057('0x11')),'defaultValue':_0x295057('0x1f')},'directmedia':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no',_0x295057('0x2e'),_0x295057('0x1b'),_0x295057('0x2b')),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x295057('0x10')]('yes','no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x295057('0x13')]},'directmediadeny':{'type':Sequelize[_0x295057('0x13')]},'nat':{'type':Sequelize['STRING'],'defaultValue':_0x295057('0x7'),'set':function(_0x577d3f){const _0x41ae46=_0x295057;this[_0x41ae46('0x1')](_0x41ae46('0x21'),_0x577d3f?_0x577d3f[_0x41ae46('0x1a')](','):null);},'get':function(){const _0x2d8791=_0x295057;return this[_0x2d8791('0x4')](_0x2d8791('0x21'))?this['getDataValue']('nat')['split'](','):null;},'comment':_0x295057('0x1e')},'callgroup':{'type':Sequelize[_0x295057('0x13')]},'namedcallgroup':{'type':Sequelize[_0x295057('0x13')]},'pickupgroup':{'type':Sequelize[_0x295057('0x13')]},'namedpickupgroup':{'type':Sequelize[_0x295057('0x13')]},'language':{'type':Sequelize[_0x295057('0x13')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x295057('0x13')],'allowNull':!![]},'disallow':{'type':Sequelize[_0x295057('0x13')],'defaultValue':_0x295057('0xc')},'allow':{'type':Sequelize[_0x295057('0x13')],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x34a327){const _0x6f7948=_0x295057;this[_0x6f7948('0x1')](_0x6f7948('0x2a'),_0x34a327?_0x34a327['join'](';'):_0x6f7948('0x25'));},'get':function(){const _0x29abdd=_0x295057;return this[_0x29abdd('0x4')](_0x29abdd('0x2a'))?this['getDataValue'](_0x29abdd('0x2a'))[_0x29abdd('0x1c')](';'):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]'},'autoframing':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'insecure':{'type':Sequelize[_0x295057('0x13')],'defaultValue':_0x295057('0x22'),'set':function(_0x2d39e8){const _0x8f2a9c=_0x295057;this[_0x8f2a9c('0x1')](_0x8f2a9c('0xa'),_0x2d39e8?_0x2d39e8['join'](','):null);},'get':function(){const _0x3c3745=_0x295057;return this[_0x3c3745('0x4')]('insecure')?this['getDataValue'](_0x3c3745('0xa'))[_0x3c3745('0x1c')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]'},'trustrpid':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x295057('0x10')]('yes','no','never')},'promiscredir':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'useclientcode':{'type':Sequelize['ENUM'](_0x295057('0x2'),'no')},'accountcode':{'type':Sequelize[_0x295057('0x9')](0xb)},'setvar':{'type':Sequelize[_0x295057('0x13')]},'callerid':{'type':Sequelize[_0x295057('0x13')],'defaultValue':_0x295057('0x17')},'amaflags':{'type':Sequelize[_0x295057('0x13')]},'callcounter':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no'),'defaultValue':_0x295057('0x2')},'busylevel':{'type':Sequelize['INTEGER'](0xb)},'allowoverlap':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'allowsubscribe':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'allowtransfer':{'type':Sequelize['ENUM']('yes','no')},'ignoresdpversion':{'type':Sequelize['ENUM'](_0x295057('0x2'),'no')},'subscribecontext':{'type':Sequelize[_0x295057('0x13')]},'template':{'type':Sequelize['STRING']},'videosupport':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no',_0x295057('0x29')),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize['INTEGER'](0xb)},'rfc2833compensate':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'mailbox':{'type':Sequelize[_0x295057('0x13')]},'session_timers':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x18'),_0x295057('0x12'),'originate')},'session_expires':{'type':Sequelize['INTEGER'](0xb)},'session_minse':{'type':Sequelize['INTEGER'](0xb)},'session_refresher':{'type':Sequelize[_0x295057('0x10')]('uac',_0x295057('0x15')),'defaultValue':_0x295057('0x15')},'t38pt_usertpsource':{'type':Sequelize['STRING']},'regexten':{'type':Sequelize['STRING']},'fromdomain':{'type':Sequelize[_0x295057('0x13')]},'fromuser':{'type':Sequelize[_0x295057('0x13')]},'port':{'type':Sequelize[_0x295057('0x9')](0x5)},'qualify':{'type':Sequelize[_0x295057('0x10')]('yes','no'),'defaultValue':_0x295057('0x2')},'keepalive':{'type':Sequelize[_0x295057('0x9')](0xb)},'defaultip':{'type':Sequelize[_0x295057('0x13')]},'defaultuser':{'type':Sequelize[_0x295057('0x13')]},'rtptimeout':{'type':Sequelize['INTEGER'](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x295057('0x9')](0xb)},'rtpkeepalive':{'type':Sequelize[_0x295057('0x9')](0xb)},'sendrpid':{'type':Sequelize['ENUM']('yes','no',_0x295057('0x28')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x295057('0x13')]},'callbackextension':{'type':Sequelize[_0x295057('0x13')]},'timert1':{'type':Sequelize[_0x295057('0x9')](0xb)},'timerb':{'type':Sequelize[_0x295057('0x9')](0xb)},'qualifyfreq':{'type':Sequelize[_0x295057('0x9')](0xb)},'contactpermit':{'type':Sequelize['STRING']},'contactdeny':{'type':Sequelize[_0x295057('0x13')]},'contactacl':{'type':Sequelize[_0x295057('0x13')]},'unsolicited_mailbox':{'type':Sequelize[_0x295057('0x13')]},'use_q850_reason':{'type':Sequelize[_0x295057('0x13')]},'maxforwards':{'type':Sequelize['INTEGER'](0xb)},'encryption':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'avpf':{'type':Sequelize['ENUM'](_0x295057('0x2'),'no')},'force_avp':{'type':Sequelize['ENUM'](_0x295057('0x2'),'no')},'icesupport':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'dtlsenable':{'type':Sequelize[_0x295057('0x10')]('yes','no')},'dtlsverify':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no',_0x295057('0xb'),'certificate')},'dtlsrekey':{'type':Sequelize[_0x295057('0x9')](0xb)},'dtlscertfile':{'type':Sequelize[_0x295057('0x13')]},'dtlsprivatekey':{'type':Sequelize[_0x295057('0x13')]},'dtlscipher':{'type':Sequelize[_0x295057('0x13')]},'dtlscafile':{'type':Sequelize[_0x295057('0x13')]},'dtlscapath':{'type':Sequelize[_0x295057('0x13')]},'dtlssetup':{'type':Sequelize[_0x295057('0x10')]('active',_0x295057('0x2d'),_0x295057('0x3')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x295057('0x13')]},'usereqphone':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x295057('0x13')]},'recordofffeature':{'type':Sequelize['STRING']},'call_limit':{'type':Sequelize[_0x295057('0x9')](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x295057('0x10')]('yes','no')},'subscribemwi':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no')},'vmexten':{'type':Sequelize['STRING']},'mohinterpret':{'type':Sequelize['STRING']},'mohsuggest':{'type':Sequelize[_0x295057('0x13')]},'parkinglot':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize['STRING'],'defaultValue':'dynamic'},'canreinvite':{'type':Sequelize[_0x295057('0x10')](_0x295057('0x2'),'no',_0x295057('0x2e'),_0x295057('0x1b'),_0x295057('0x6')),'defaultValue':'no'},'registry':{'type':Sequelize[_0x295057('0x13')]},'otherFields':{'type':Sequelize[_0x295057('0x13')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize['STRING'],'defaultValue':'no'}}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.controller.js b/server/api/trunk/trunk.controller.js index adc1dff..a9e2cc5 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a643_0x453c=['createdAt','path','client','/etc/asterisk/sip_xcally_registers.conf','Trunk,\x20%s,\x20%s','sort','../../config/logger','filters','body','key','omit','order','render','Trunk','model','status','update','../../mysqldb','set','user','message','result','fields','clone','jayson/promise','debug','code','get','type','merge','stringify','ejs','http','Reload','Trunk,\x20%s,\x20%s,\x20%s','index','nolimit','offset','../../config/environment','api','pick','role','options','Unable\x20to\x20retrieve\x20the\x20current\x20user','root','updatedAt','includeAll','rawAttributes','lodash','where','sendStatus','count','limit','Trunks','include','fieldName','destroy','request\x20sent','json','filter','keys','files/templates/registry.ejs','create','rows','params','readFileSync','error','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','length','join','query','UserProfileSection','end','map','name','utf8','send','autoAssociation','findOne','registry','userProfileId','catch','findAll','then','intersection','UserProfileResource','attributes','writeFileSync','chan_sip.so','files/templates/trunk.ejs'];(function(_0x41b3b3,_0x453ca1){const _0x216c05=function(_0x4b41bd){while(--_0x4b41bd){_0x41b3b3['push'](_0x41b3b3['shift']());}};_0x216c05(++_0x453ca1);}(a643_0x453c,0x1b6));const a643_0x216c=function(_0x41b3b3,_0x453ca1){_0x41b3b3=_0x41b3b3-0x0;let _0x216c05=a643_0x453c[_0x41b3b3];return _0x216c05;};const _0x173ccf=a643_0x216c;'use strict';const path=require(_0x173ccf('0xd')),ejs=require(_0x173ccf('0x2b')),fs=require('fs'),_=require(_0x173ccf('0x3c')),qs=require('../../components/parsers/qs'),logger=require(_0x173ccf('0x12'))(_0x173ccf('0x33')),config=require(_0x173ccf('0x32')),db=require(_0x173ccf('0x1d'))['db'],{Op}=require('sequelize'),jayson=require(_0x173ccf('0x24')),client=jayson[_0x173ccf('0xe')][_0x173ccf('0x2c')]({'port':0x232a});function respondWithRpcPromise(_0x4b41bd,_0x1a1ad8,_0x55e124,_0x12f31d){return new Promise(function(_0x3320f7,_0x2c7acb){const _0x59fd71=a643_0x216c,_0x4933cd=_0x12f31d||client;return _0x4933cd['request'](_0x4b41bd,_0x55e124)[_0x59fd71('0x5')](function(_0x1d1ea5){const _0x39b52a=_0x59fd71;logger['info'](_0x39b52a('0x10'),_0x1a1ad8,_0x39b52a('0x45')),logger[_0x39b52a('0x25')](_0x39b52a('0x2e'),_0x1a1ad8,_0x39b52a('0x45'),JSON[_0x39b52a('0x2a')](_0x1d1ea5));if(_0x1d1ea5[_0x39b52a('0x4e')]){if(_0x1d1ea5[_0x39b52a('0x4e')][_0x39b52a('0x26')]===0x1f4)return logger[_0x39b52a('0x4e')](_0x39b52a('0x10'),_0x1a1ad8,_0x1d1ea5[_0x39b52a('0x4e')][_0x39b52a('0x20')]),_0x2c7acb(_0x1d1ea5['error'][_0x39b52a('0x20')]);return logger[_0x39b52a('0x4e')](_0x39b52a('0x10'),_0x1a1ad8,_0x1d1ea5[_0x39b52a('0x4e')]['message']),_0x3320f7(_0x1d1ea5[_0x39b52a('0x4e')][_0x39b52a('0x20')]);}else logger['info'](_0x39b52a('0x10'),_0x1a1ad8,'request\x20sent'),_0x3320f7(_0x1d1ea5[_0x39b52a('0x21')]['message']);})[_0x59fd71('0x3')](function(_0x800e67){const _0x324057=_0x59fd71;logger['error'](_0x324057('0x10'),_0x1a1ad8,_0x800e67),_0x2c7acb(_0x800e67);});});}function respondWithResult(_0x42af4a,_0x1c6220){return _0x1c6220=_0x1c6220||0xc8,function(_0x48055b){const _0x2b26a5=a643_0x216c;if(_0x48055b)return _0x42af4a[_0x2b26a5('0x1b')](_0x1c6220)[_0x2b26a5('0x46')](_0x48055b);};}function respondWithFilteredResult(_0x955204,_0x4759df){return function(_0x94474a){const _0x413c98=a643_0x216c;if(_0x94474a){const _0x367ad5=_0x94474a[_0x413c98('0x3f')],_0x26e5fb=_0x4759df[_0x413c98('0x31')];let _0x36d5c2=_0x4759df['offset']+_0x4759df[_0x413c98('0x40')],_0x3d8def;return _0x36d5c2>=_0x367ad5?(_0x36d5c2=_0x367ad5,_0x3d8def=0xc8):_0x3d8def=0xce,_0x955204[_0x413c98('0x1b')](_0x3d8def),_0x955204[_0x413c98('0x1e')]('Content-Range',_0x26e5fb+'-'+_0x36d5c2+'/'+_0x367ad5)[_0x413c98('0x46')](_0x94474a);}return null;};}function saveUpdates(_0x4957d5){return function(_0x2dbfc4){const _0x476be5=a643_0x216c;if(_0x2dbfc4)return _0x2dbfc4[_0x476be5('0x1c')](_0x4957d5)[_0x476be5('0x5')](function(_0x162cb0){return _0x162cb0;});return null;};}function removeEntity(_0x5f4af9){return function(_0x424347){const _0x2f0007=a643_0x216c;if(_0x424347)return _0x424347[_0x2f0007('0x44')]()[_0x2f0007('0x5')](function(){const _0x44bfa7=_0x2f0007,_0x4e2890=_0x424347['get']({'plain':!![]}),_0xeee5ae=_0x44bfa7('0x41');return db['UserProfileResource'][_0x44bfa7('0x44')]({'where':{'type':_0xeee5ae,'resourceId':_0x4e2890['id']}})['then'](function(){return _0x424347;});})[_0x2f0007('0x5')](function(){const _0x5ae5a5=_0x2f0007;_0x5f4af9['status'](0xcc)[_0x5ae5a5('0x54')]();});};}function handleEntityNotFound(_0x1ecdeb){return function(_0x5155e3){const _0x462e35=a643_0x216c;return!_0x5155e3&&_0x1ecdeb[_0x462e35('0x3e')](0x194),_0x5155e3;};}function handleError(_0x37cc8a,_0x27147a){return _0x27147a=_0x27147a||0x1f4,function(_0x39a659){const _0x1e279a=a643_0x216c;logger[_0x1e279a('0x4e')](_0x39a659['stack']),_0x39a659[_0x1e279a('0x56')]&&delete _0x39a659[_0x1e279a('0x56')],_0x37cc8a['status'](_0x27147a)[_0x1e279a('0x58')](_0x39a659);};}exports[_0x173ccf('0x2f')]=function(_0x4738e4,_0x70d3fc){const _0x3338f1=_0x173ccf;let _0xb879dd={};const _0x42a58c={},_0x1b4151={'count':0x0,'rows':[]},_0x1b5734=_[_0x3338f1('0x55')](db[_0x3338f1('0x19')]['rawAttributes'],function(_0x28f6ad){const _0x501265=_0x3338f1;return{'name':_0x28f6ad[_0x501265('0x43')],'type':_0x28f6ad[_0x501265('0x28')][_0x501265('0x15')]};});_0x42a58c[_0x3338f1('0x1a')]=_[_0x3338f1('0x55')](_0x1b5734,_0x3338f1('0x56')),_0x42a58c[_0x3338f1('0x52')]=_[_0x3338f1('0x48')](_0x4738e4[_0x3338f1('0x52')]),_0x42a58c[_0x3338f1('0x13')]=_['intersection'](_0x42a58c['model'],_0x42a58c['query']),_0xb879dd[_0x3338f1('0x8')]=_[_0x3338f1('0x6')](_0x42a58c[_0x3338f1('0x1a')],qs[_0x3338f1('0x22')](_0x4738e4['query'][_0x3338f1('0x22')])),_0xb879dd['attributes']=_0xb879dd[_0x3338f1('0x8')][_0x3338f1('0x50')]?_0xb879dd[_0x3338f1('0x8')]:_0x42a58c[_0x3338f1('0x1a')];typeof _0x4738e4[_0x3338f1('0x52')][_0x3338f1('0x30')]==='undefined'&&(_0xb879dd[_0x3338f1('0x40')]=qs[_0x3338f1('0x40')](_0x4738e4['query'][_0x3338f1('0x40')]),_0xb879dd[_0x3338f1('0x31')]=qs[_0x3338f1('0x31')](_0x4738e4['query']['offset']));_0xb879dd[_0x3338f1('0x17')]=qs[_0x3338f1('0x11')](_0x4738e4[_0x3338f1('0x52')][_0x3338f1('0x11')]),_0xb879dd[_0x3338f1('0x3d')]=qs[_0x3338f1('0x13')](_[_0x3338f1('0x34')](_0x4738e4['query'],_0x42a58c[_0x3338f1('0x13')]),_0x1b5734);_0x4738e4[_0x3338f1('0x52')][_0x3338f1('0x47')]&&(_0xb879dd['where']=_[_0x3338f1('0x29')](_0xb879dd[_0x3338f1('0x3d')],{[Op['or']]:_[_0x3338f1('0x55')](_0x1b5734,function(_0x5bcc03){const _0x3aa379=_0x3338f1;if(_0x5bcc03[_0x3aa379('0x28')]!=='VIRTUAL'){const _0x2e5375={};return _0x2e5375[_0x5bcc03[_0x3aa379('0x56')]]={[Op['like']]:'%'+_0x4738e4[_0x3aa379('0x52')][_0x3aa379('0x47')]+'%'},_0x2e5375;}})}));_0xb879dd=_[_0x3338f1('0x29')]({},_0xb879dd,_0x4738e4[_0x3338f1('0x36')]);const _0x2adbe7={'where':_0xb879dd['where']};return db[_0x3338f1('0x19')][_0x3338f1('0x3f')](_0x2adbe7)['then'](function(_0x344e0f){const _0x5b9855=_0x3338f1;return _0x1b4151[_0x5b9855('0x3f')]=_0x344e0f,_0x4738e4[_0x5b9855('0x52')]['includeAll']&&(_0xb879dd[_0x5b9855('0x42')]=[{'all':!![]}]),db[_0x5b9855('0x19')][_0x5b9855('0x4')](_0xb879dd);})['then'](function(_0x277a2e){const _0x55afd2=_0x3338f1;return _0x1b4151[_0x55afd2('0x4b')]=_0x277a2e,_0x1b4151;})['then'](respondWithFilteredResult(_0x70d3fc,_0xb879dd))[_0x3338f1('0x3')](handleError(_0x70d3fc,null));},exports['show']=function(_0x1d0009,_0x1419eb){const _0x2809c5=_0x173ccf;let _0xf0ea69={'raw':![],'where':{'id':_0x1d0009[_0x2809c5('0x4c')]['id']}};const _0x327c0a={};return _0x327c0a[_0x2809c5('0x1a')]=_[_0x2809c5('0x48')](db[_0x2809c5('0x19')][_0x2809c5('0x3b')]),_0x327c0a[_0x2809c5('0x52')]=_[_0x2809c5('0x48')](_0x1d0009[_0x2809c5('0x52')]),_0x327c0a['filters']=_['intersection'](_0x327c0a[_0x2809c5('0x1a')],_0x327c0a[_0x2809c5('0x52')]),_0xf0ea69[_0x2809c5('0x8')]=_[_0x2809c5('0x6')](_0x327c0a[_0x2809c5('0x1a')],qs[_0x2809c5('0x22')](_0x1d0009[_0x2809c5('0x52')][_0x2809c5('0x22')])),_0xf0ea69['attributes']=_0xf0ea69[_0x2809c5('0x8')][_0x2809c5('0x50')]?_0xf0ea69[_0x2809c5('0x8')]:_0x327c0a[_0x2809c5('0x1a')],_0x1d0009['query'][_0x2809c5('0x3a')]&&(_0xf0ea69['include']=[{'all':!![]}]),_0xf0ea69=_['merge']({},_0xf0ea69,_0x1d0009[_0x2809c5('0x36')]),db[_0x2809c5('0x19')][_0x2809c5('0x0')](_0xf0ea69)['then'](handleEntityNotFound(_0x1419eb,null))['then'](respondWithResult(_0x1419eb,null))[_0x2809c5('0x3')](handleError(_0x1419eb,null));},exports[_0x173ccf('0x23')]=function(_0x302417,_0x191e87){const _0x534646=_0x173ccf;let _0x2fa597={'where':{'id':_0x302417[_0x534646('0x4c')]['id']}};const _0x3f2d7d={};return _0x3f2d7d[_0x534646('0x1a')]=_['keys'](db[_0x534646('0x19')][_0x534646('0x3b')]),_0x2fa597[_0x534646('0x8')]=_[_0x534646('0x6')](_0x3f2d7d[_0x534646('0x1a')],qs[_0x534646('0x22')](_0x302417[_0x534646('0x52')]['fields'])),_0x2fa597['attributes']=_0x2fa597['attributes'][_0x534646('0x50')]?_0x2fa597[_0x534646('0x8')]:_0x3f2d7d[_0x534646('0x1a')],_0x302417[_0x534646('0x52')][_0x534646('0x3a')]&&(_0x2fa597[_0x534646('0x42')]=[{'all':!![]}]),_0x2fa597=_[_0x534646('0x29')]({},_0x2fa597,_0x302417[_0x534646('0x36')]),db['Trunk'][_0x534646('0x0')](_0x2fa597)[_0x534646('0x5')](handleEntityNotFound(_0x191e87,null))[_0x534646('0x5')](function(_0x3d0f8c){const _0x85c5b9=_0x534646;if(_0x3d0f8c){let _0xebe8cb=_0x3d0f8c[_0x85c5b9('0x27')]({'plain':!![]});return _0xebe8cb=qs['omit'](_0xebe8cb,['id',_0x85c5b9('0xc'),_0x85c5b9('0x39')]),_0x302417[_0x85c5b9('0x14')]=_[_0x85c5b9('0x16')](_0x302417[_0x85c5b9('0x14')],['id',_0x85c5b9('0xc'),_0x85c5b9('0x39')]),db['Trunk'][_0x85c5b9('0x4a')](_['merge'](_0xebe8cb,_0x302417['body']),{'include':_0x302417[_0x85c5b9('0x52')][_0x85c5b9('0x3a')]?[{'all':!![]}]:undefined})[_0x85c5b9('0x5')](function(_0x136b19){const _0x1fb806=_0x85c5b9,_0x38b3d3=_0x302417['user'][_0x1fb806('0x27')]({'plain':!![]});if(!_0x38b3d3)throw new Error(_0x1fb806('0x37'));if(_0x38b3d3[_0x1fb806('0x35')]===_0x1fb806('0x1f')){const _0x5b0299=_0x136b19[_0x1fb806('0x27')]({'plain':!![]}),_0x54018d='Trunks';return db[_0x1fb806('0x53')]['findOne']({'where':{'name':_0x54018d,'userProfileId':_0x38b3d3['userProfileId']},'raw':!![]})[_0x1fb806('0x5')](function(_0x5cbd6c){const _0x4d1554=_0x1fb806;return _0x5cbd6c&&_0x5cbd6c[_0x4d1554('0x59')]===0x0?db[_0x4d1554('0x7')][_0x4d1554('0x4a')]({'name':_0x5b0299[_0x4d1554('0x56')],'resourceId':_0x5b0299['id'],'type':_0x5cbd6c['name'],'sectionId':_0x5cbd6c['id']},{})[_0x4d1554('0x5')](function(){return _0x136b19;}):_0x136b19;})[_0x1fb806('0x3')](function(_0x17f359){const _0x47a9b5=_0x1fb806;logger[_0x47a9b5('0x4e')](_0x47a9b5('0x4f'),_0x17f359);throw _0x17f359;});}return _0x136b19;});}})[_0x534646('0x5')](respondWithResult(_0x191e87,0xc9))[_0x534646('0x3')](handleError(_0x191e87,null));},exports[_0x173ccf('0x4a')]=function(_0x34534a,_0x395ace){const _0x25dae2=_0x173ccf;let _0x463913;return db[_0x25dae2('0x19')][_0x25dae2('0x4a')](_0x34534a[_0x25dae2('0x14')],{'raw':!![]})[_0x25dae2('0x5')](function(_0x12d1db){const _0x30851f=_0x25dae2;return _0x463913=_0x12d1db,db['Trunk'][_0x30851f('0x4')]({'raw':!![]});})['then'](function(_0x50b9b6){const _0x315d28=_0x25dae2,_0x4d588f=fs[_0x315d28('0x4d')](path[_0x315d28('0x51')](config[_0x315d28('0x38')],_0x315d28('0xb')),_0x315d28('0x57')),_0x14e0cc=fs[_0x315d28('0x4d')](path[_0x315d28('0x51')](config[_0x315d28('0x38')],_0x315d28('0x49')),_0x315d28('0x57')),_0x31bcb3=ejs['render'](_0x4d588f,{'trunks':_0x50b9b6||[]});fs[_0x315d28('0x9')]('/etc/asterisk/sip_xcally_trunks.conf',_0x31bcb3);if(_0x463913[_0x315d28('0x1')]){const _0xcaaabf=ejs[_0x315d28('0x18')](_0x14e0cc,{'trunks':_0x50b9b6||[]});fs['writeFileSync'](_0x315d28('0xf'),_0xcaaabf);}})[_0x25dae2('0x5')](function(){const _0x2f12a7=_0x25dae2;return respondWithRpcPromise(_0x2f12a7('0x2d'),'create',{'module':'chan_sip.so'});})[_0x25dae2('0x5')](function(){const _0x313a62=_0x25dae2,_0x69ce34=_0x34534a['user'][_0x313a62('0x27')]({'plain':!![]});if(!_0x69ce34)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x69ce34[_0x313a62('0x35')]===_0x313a62('0x1f')){const _0x3f54fe=_0x463913[_0x313a62('0x27')]({'plain':!![]});return db['UserProfileSection'][_0x313a62('0x0')]({'where':{'name':_0x313a62('0x41'),'userProfileId':_0x69ce34[_0x313a62('0x2')]},'raw':!![]})[_0x313a62('0x5')](function(_0x5cfe7c){const _0x40e192=_0x313a62;return _0x5cfe7c&&_0x5cfe7c[_0x40e192('0x59')]===0x0?db[_0x40e192('0x7')]['create']({'name':_0x3f54fe[_0x40e192('0x56')],'resourceId':_0x3f54fe['id'],'type':_0x5cfe7c['name'],'sectionId':_0x5cfe7c['id']},{})[_0x40e192('0x5')](function(){return _0x463913;}):_0x463913;})[_0x313a62('0x3')](function(_0x302420){const _0x121aa4=_0x313a62;logger[_0x121aa4('0x4e')](_0x121aa4('0x4f'),_0x302420);throw _0x302420;});}return _0x463913;})[_0x25dae2('0x5')](respondWithResult(_0x395ace,0xc9))[_0x25dae2('0x3')](handleError(_0x395ace,null));},exports[_0x173ccf('0x1c')]=function(_0x34fc40,_0x9dcaa9){const _0xcf41de=_0x173ccf;let _0x31dbac;return db[_0xcf41de('0x19')][_0xcf41de('0x0')]({'where':{'id':_0x34fc40[_0xcf41de('0x4c')]['id']}})['then'](handleEntityNotFound(_0x9dcaa9,null))[_0xcf41de('0x5')](saveUpdates(_0x34fc40[_0xcf41de('0x14')],null))[_0xcf41de('0x5')](function(_0x22b270){const _0x594396=_0xcf41de;if(_0x22b270)return _0x31dbac=_0x22b270,db['Trunk'][_0x594396('0x4')]({'raw':!![]});})[_0xcf41de('0x5')](function(_0x407d63){const _0x1ebf99=_0xcf41de;if(_0x407d63){const _0x48c8fb=fs[_0x1ebf99('0x4d')](path[_0x1ebf99('0x51')](config[_0x1ebf99('0x38')],_0x1ebf99('0xb')),_0x1ebf99('0x57')),_0x1123ce=fs['readFileSync'](path['join'](config['root'],_0x1ebf99('0x49')),'utf8'),_0x545ad6=ejs[_0x1ebf99('0x18')](_0x48c8fb,{'trunks':_0x407d63||[]});fs[_0x1ebf99('0x9')]('/etc/asterisk/sip_xcally_trunks.conf',_0x545ad6);const _0x9dd6f4=ejs['render'](_0x1123ce,{'trunks':_0x407d63||[]});return fs[_0x1ebf99('0x9')](_0x1ebf99('0xf'),_0x9dd6f4),respondWithRpcPromise(_0x1ebf99('0x2d'),_0x1ebf99('0x1c'),{'module':_0x1ebf99('0xa')});}return null;})[_0xcf41de('0x5')](function(_0xaba8ee){if(_0xaba8ee)return _0x31dbac;})[_0xcf41de('0x5')](respondWithResult(_0x9dcaa9,null))[_0xcf41de('0x3')](handleError(_0x9dcaa9,null));},exports['destroy']=function(_0x49961f,_0x25f6e1){const _0x3e98ae=_0x173ccf;return db[_0x3e98ae('0x19')][_0x3e98ae('0x0')]({'where':{'id':_0x49961f[_0x3e98ae('0x4c')]['id']}})[_0x3e98ae('0x5')](handleEntityNotFound(_0x25f6e1,null))['then'](removeEntity(_0x25f6e1,null))[_0x3e98ae('0x5')](function(){const _0x52e9cf=_0x3e98ae;return db[_0x52e9cf('0x19')][_0x52e9cf('0x4')]({'raw':!![]});})['then'](function(_0x342391){const _0x227448=_0x3e98ae,_0xf5ca5a=fs[_0x227448('0x4d')](path[_0x227448('0x51')](config[_0x227448('0x38')],'files/templates/trunk.ejs'),_0x227448('0x57')),_0x835235=fs[_0x227448('0x4d')](path[_0x227448('0x51')](config['root'],_0x227448('0x49')),_0x227448('0x57')),_0xee1cc7=ejs[_0x227448('0x18')](_0xf5ca5a,{'trunks':_0x342391}),_0x24ce08=ejs[_0x227448('0x18')](_0x835235,{'trunks':_0x342391});return fs[_0x227448('0x9')]('/etc/asterisk/sip_xcally_trunks.conf',_0xee1cc7),fs[_0x227448('0x9')](_0x227448('0xf'),_0x24ce08),respondWithRpcPromise(_0x227448('0x2d'),'destroy',{'module':_0x227448('0xa')});})['catch'](handleError(_0x25f6e1,null));}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index c992b28..cc7d89b 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a644_0x2228=['./trunk.attributes','Trunk','define'];(function(_0x2440c4,_0x2228de){const _0x4f4a20=function(_0x547cba){while(--_0x547cba){_0x2440c4['push'](_0x2440c4['shift']());}};_0x4f4a20(++_0x2228de);}(a644_0x2228,0xd3));const a644_0x4f4a=function(_0x2440c4,_0x2228de){_0x2440c4=_0x2440c4-0x0;let _0x4f4a20=a644_0x2228[_0x2440c4];return _0x4f4a20;};const _0x57f64c=a644_0x4f4a;'use strict';const attributes=require(_0x57f64c('0x2'));module['exports']=function(_0x547cba){const _0xb40fee=_0x57f64c,_0x2afa3f=_0x547cba[_0xb40fee('0x1')](_0xb40fee('0x0'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2afa3f;}; \ No newline at end of file +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 diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index a8cc75b..42dde09 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a645_0x279c=['then','lodash','catch','include','../../config/logger','findAll','where','raw','options','findOne','message','model','error','ShowTrunk','info','attributes','stringify','Trunk','debug','limit','GetTrunk','map'];(function(_0x4a1935,_0x279c3b){const _0x427895=function(_0x40aa19){while(--_0x40aa19){_0x4a1935['push'](_0x4a1935['shift']());}};_0x427895(++_0x279c3b);}(a645_0x279c,0x102));const a645_0x4278=function(_0x4a1935,_0x279c3b){_0x4a1935=_0x4a1935-0x0;let _0x427895=a645_0x279c[_0x4a1935];return _0x427895;};const _0x30b65a=a645_0x4278;'use strict';const _=require(_0x30b65a('0x7')),db=require('../../mysqldb')['db'],logger=require(_0x30b65a('0xa'))('rpc');exports[_0x30b65a('0x4')]=function(_0x40aa19){const _0x8ce3b9=this;return new Promise(function(_0x4eeed9,_0x9cff9f){const _0x1ccd6e=a645_0x4278;return db[_0x1ccd6e('0x1')][_0x1ccd6e('0xb')]({'raw':_0x40aa19[_0x1ccd6e('0xe')]?_0x40aa19['options']['raw']===undefined?!![]:![]:!![],'where':_0x40aa19['options']?_0x40aa19['options']['where']||null:null,'attributes':_0x40aa19[_0x1ccd6e('0xe')]?_0x40aa19['options'][_0x1ccd6e('0x15')]||null:null,'limit':_0x40aa19[_0x1ccd6e('0xe')]?_0x40aa19[_0x1ccd6e('0xe')][_0x1ccd6e('0x3')]||null:null,'include':_0x40aa19[_0x1ccd6e('0xe')]?_0x40aa19[_0x1ccd6e('0xe')][_0x1ccd6e('0x9')]?_[_0x1ccd6e('0x5')](_0x40aa19['options'][_0x1ccd6e('0x9')],function(_0x18622c){const _0x19b19a=_0x1ccd6e;return{'model':db[_0x18622c[_0x19b19a('0x11')]],'as':_0x18622c['as'],'attributes':_0x18622c[_0x19b19a('0x15')],'include':_0x18622c['include']?_['map'](_0x18622c['include'],function(_0x3d7c52){const _0x5ca9bf=_0x19b19a;return{'model':db[_0x3d7c52[_0x5ca9bf('0x11')]],'as':_0x3d7c52['as'],'attributes':_0x3d7c52[_0x5ca9bf('0x15')],'include':_0x3d7c52[_0x5ca9bf('0x9')]?_[_0x5ca9bf('0x5')](_0x3d7c52['include'],function(_0x5f002c){const _0x21676f=_0x5ca9bf;return{'model':db[_0x5f002c[_0x21676f('0x11')]],'as':_0x5f002c['as'],'attributes':_0x5f002c[_0x21676f('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4232d4){const _0xe053a2=_0x1ccd6e;logger['info'](_0xe053a2('0x4'),_0x40aa19),logger[_0xe053a2('0x2')](_0xe053a2('0x4'),_0x40aa19,JSON[_0xe053a2('0x0')](_0x4232d4)),_0x4eeed9(_0x4232d4);})[_0x1ccd6e('0x8')](function(_0x19b79a){const _0x143056=_0x1ccd6e;logger[_0x143056('0x12')](_0x143056('0x4'),_0x19b79a[_0x143056('0x10')],_0x40aa19),_0x9cff9f(_0x8ce3b9[_0x143056('0x12')](0x1f4,_0x19b79a['message']));});});},exports[_0x30b65a('0x13')]=function(_0x32c0a7){const _0x4cf298=this;return new Promise(function(_0x3c4e4f,_0xedafbb){const _0x295e9f=a645_0x4278;return db['Trunk'][_0x295e9f('0xf')]({'raw':_0x32c0a7[_0x295e9f('0xe')]?_0x32c0a7[_0x295e9f('0xe')][_0x295e9f('0xd')]===undefined?!![]:![]:!![],'where':_0x32c0a7[_0x295e9f('0xe')]?_0x32c0a7[_0x295e9f('0xe')][_0x295e9f('0xc')]||null:null,'attributes':_0x32c0a7[_0x295e9f('0xe')]?_0x32c0a7[_0x295e9f('0xe')][_0x295e9f('0x15')]||null:null,'include':_0x32c0a7[_0x295e9f('0xe')]?_0x32c0a7['options'][_0x295e9f('0x9')]?_[_0x295e9f('0x5')](_0x32c0a7[_0x295e9f('0xe')][_0x295e9f('0x9')],function(_0x5c6c73){const _0x3e2b03=_0x295e9f;return{'model':db[_0x5c6c73[_0x3e2b03('0x11')]],'as':_0x5c6c73['as'],'attributes':_0x5c6c73[_0x3e2b03('0x15')],'include':_0x5c6c73[_0x3e2b03('0x9')]?_['map'](_0x5c6c73[_0x3e2b03('0x9')],function(_0x364940){const _0x365f3a=_0x3e2b03;return{'model':db[_0x364940['model']],'as':_0x364940['as'],'attributes':_0x364940[_0x365f3a('0x15')],'include':_0x364940[_0x365f3a('0x9')]?_['map'](_0x364940[_0x365f3a('0x9')],function(_0x571f18){const _0x5c131c=_0x365f3a;return{'model':db[_0x571f18[_0x5c131c('0x11')]],'as':_0x571f18['as'],'attributes':_0x571f18[_0x5c131c('0x15')]};}):[]};}):[]};}):[]:[]})[_0x295e9f('0x6')](function(_0x9f5c5a){const _0xc4c148=_0x295e9f;logger[_0xc4c148('0x14')]('ShowTrunk',_0x32c0a7),logger[_0xc4c148('0x2')](_0xc4c148('0x13'),_0x32c0a7,JSON[_0xc4c148('0x0')](_0x9f5c5a)),_0x3c4e4f(_0x9f5c5a);})[_0x295e9f('0x8')](function(_0x353b6e){const _0x2198af=_0x295e9f;logger[_0x2198af('0x12')](_0x2198af('0x13'),_0x353b6e['message'],_0x32c0a7),_0xedafbb(_0x4cf298[_0x2198af('0x12')](0x1f4,_0x353b6e[_0x2198af('0x10')]));});});}; \ No newline at end of file +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 diff --git a/server/api/user/index.js b/server/api/user/index.js index 4d45c07..4a71f43 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a646_0x2490=['originalname','removeChatWebsites','pause','removeSmsInteractions','/:id/sms_accounts','/:id/prefixes','addSmsInteractions','/:id/mail/interactions','getGroups','removeTeams','/:id/teams','/:id/logout','addWhatsappAccounts','/:id/mail_accounts','index','getLists','addMailInteractions','getChatWebsites','getRecordings','/:id/whatsapp/interactions','getOpenchannelInteractions','/:id/whatsapp_interactions','create','/:id/login','path','getChatInteractions','getScheduledCalls','/:id/screen_recordings','express','/:id/contacts','/:id/square_projects','addChatInteractions','show','getSquareProjects','delete','removeOpenchannelInteractions','./user.controller','/:id/openchannel_interactions','getAgents','removeChatInteractions','getContacts','addSquareProjects','isAuthenticated','single','/:id/avatar','/create_many','createApiKey','/:id/queues_rt','/:id/agents','/:id/chat_websites','/describe','/:id/password','/:id/chat_interactions','util','multer','removeOpenchannelAccounts','/:id/api_key','/:id/chat/interactions','/:id/fax/interactions','logout','getScreenRecordings','/:id/openchannel/interactions','join','addSmsAccounts','describe','getVoiceQueuesRt','/:id/whatsapp_accounts','addFaxInteractions','removeWhatsappInteractions','/:id/pause','files/images/','getAvatar','/:id/lists','getMailAccounts','addOpenchannelInteractions','addWhatsappInteractions','getVoicePrefixes','%s-%s','file','/:id/fax_accounts','/:id/fax_interactions','unpause','put','removeSquareProjects','../../components/auth/service','exports','/:id/recordings','addQueues','post','whoami','removeMailAccounts','login','/:id/sms_interactions','addContacts','/:id/openchannel_accounts','Router','removeWhatsappAccounts','addChatWebsites','addOpenchannelAccounts','destroy','/:id/queues','addMailAccounts','getSmsAccounts','/:id','addAvatar','/:id/mail_interactions','get'];(function(_0x5b1c01,_0x2490b8){const _0xff9e0b=function(_0x21a667){while(--_0x21a667){_0x5b1c01['push'](_0x5b1c01['shift']());}};_0xff9e0b(++_0x2490b8);}(a646_0x2490,0x1be));const a646_0xff9e=function(_0x5b1c01,_0x2490b8){_0x5b1c01=_0x5b1c01-0x0;let _0xff9e0b=a646_0x2490[_0x5b1c01];return _0xff9e0b;};const _0x5de29d=a646_0xff9e;'use strict';const multer=require(_0x5de29d('0x24')),util=require(_0x5de29d('0x23')),path=require(_0x5de29d('0x6')),express=require(_0x5de29d('0xa')),router=express[_0x5de29d('0x4d')](),auth=require(_0x5de29d('0x42')),config=require('../../config/environment'),controller=require(_0x5de29d('0x12'));router['get']('/',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x67')]),router[_0x5de29d('0x58')](_0x5de29d('0x20'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x2e')]),router['get']('/whoami',auth['isAuthenticated'](),controller[_0x5de29d('0x47')]),router['get'](_0x5de29d('0x55'),auth['isAuthenticated'](),controller[_0x5de29d('0xe')]),router[_0x5de29d('0x58')](_0x5de29d('0x1a'),controller[_0x5de29d('0x35')]),router[_0x5de29d('0x58')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x5de29d('0x16')]),router[_0x5de29d('0x58')]('/:id/queues',auth[_0x5de29d('0x18')](),controller['getQueues']),router[_0x5de29d('0x58')](_0x5de29d('0x1d'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x2f')]),router[_0x5de29d('0x58')]('/:id/groups',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x61')]),router[_0x5de29d('0x58')](_0x5de29d('0x44'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x0')]),router[_0x5de29d('0x58')](_0x5de29d('0x9'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x2a')]),router[_0x5de29d('0x58')](_0x5de29d('0x27'),auth['isAuthenticated'](),controller[_0x5de29d('0x7')]),router[_0x5de29d('0x58')](_0x5de29d('0x2b'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x2')]),router[_0x5de29d('0x58')](_0x5de29d('0x60'),auth['isAuthenticated'](),controller['getMailInteractions']),router[_0x5de29d('0x58')]('/:id/sms/interactions',auth[_0x5de29d('0x18')](),controller['getSmsInteractions']),router[_0x5de29d('0x58')](_0x5de29d('0x28'),auth[_0x5de29d('0x18')](),controller['getFaxInteractions']),router[_0x5de29d('0x58')](_0x5de29d('0x1'),auth[_0x5de29d('0x18')](),controller['getWhatsappInteractions']),router[_0x5de29d('0x58')](_0x5de29d('0x63'),auth[_0x5de29d('0x18')](),controller['getTeams']),router[_0x5de29d('0x58')](_0x5de29d('0x36'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x68')]),router[_0x5de29d('0x58')](_0x5de29d('0x1e'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x14')]),router[_0x5de29d('0x58')](_0x5de29d('0x5e'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x3a')]),router[_0x5de29d('0x58')](_0x5de29d('0x3d'),auth[_0x5de29d('0x18')](),controller['getFaxAccounts']),router[_0x5de29d('0x58')](_0x5de29d('0x66'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x37')]),router[_0x5de29d('0x58')](_0x5de29d('0x4c'),auth[_0x5de29d('0x18')](),controller['getOpenchannelAccounts']),router['get'](_0x5de29d('0x5d'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x54')]),router['get'](_0x5de29d('0x1f'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x6a')]),router[_0x5de29d('0x58')](_0x5de29d('0x30'),auth[_0x5de29d('0x18')](),controller['getWhatsappAccounts']),router[_0x5de29d('0x58')](_0x5de29d('0xc'),auth['isAuthenticated'](),controller[_0x5de29d('0xf')]),router[_0x5de29d('0x58')]('/:id/scheduled_calls',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x8')]),router[_0x5de29d('0x58')](_0x5de29d('0x26'),auth[_0x5de29d('0x18')](),controller['getApiKey']),router[_0x5de29d('0x46')](_0x5de29d('0xb'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x4b')]),router[_0x5de29d('0x46')]('/',auth['isAuthenticated'](),controller[_0x5de29d('0x4')]),router[_0x5de29d('0x46')](_0x5de29d('0x1b'),auth[_0x5de29d('0x18')](),controller['bulkCreate']),router[_0x5de29d('0x46')](_0x5de29d('0x52'),auth['isAuthenticated'](),controller[_0x5de29d('0x45')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x21a667,_0x174971,_0x2245c3){const _0x333d5d=_0x5de29d;_0x2245c3(null,path[_0x333d5d('0x2c')](config['root'],_0x333d5d('0x34')));},'filename':function(_0x205a8f,_0x48b559,_0x9ca60f){const _0x3fc4af=_0x5de29d;_0x9ca60f(null,util['format'](_0x3fc4af('0x3b'),Date['now'](),_0x48b559[_0x3fc4af('0x59')]));}})});router[_0x5de29d('0x46')](_0x5de29d('0x1a'),upload[_0x5de29d('0x19')](_0x5de29d('0x3c')),controller[_0x5de29d('0x56')]),router[_0x5de29d('0x46')](_0x5de29d('0x5'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x49')]),router['post'](_0x5de29d('0x64'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x29')]),router[_0x5de29d('0x46')](_0x5de29d('0x33'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x5b')]),router['post']('/:id/unpause',auth['isAuthenticated'](),controller[_0x5de29d('0x3f')]),router['post'](_0x5de29d('0x63'),auth[_0x5de29d('0x18')](),controller['addTeams']),router[_0x5de29d('0x46')](_0x5de29d('0x22'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0xd')]),router[_0x5de29d('0x46')](_0x5de29d('0x57'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x69')]),router['post']('/:id/fax_interactions',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x31')]),router[_0x5de29d('0x46')](_0x5de29d('0x4a'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x5f')]),router[_0x5de29d('0x46')](_0x5de29d('0x13'),auth['isAuthenticated'](),controller[_0x5de29d('0x38')]),router[_0x5de29d('0x46')](_0x5de29d('0x3'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x39')]),router['post']('/:id/fax_accounts',auth[_0x5de29d('0x18')](),controller['addFaxAccounts']),router[_0x5de29d('0x46')](_0x5de29d('0x66'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x53')]),router[_0x5de29d('0x46')](_0x5de29d('0x4c'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x50')]),router[_0x5de29d('0x46')](_0x5de29d('0x5d'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x2d')]),router[_0x5de29d('0x46')]('/:id/chat_websites',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x4f')]),router[_0x5de29d('0x46')]('/:id/whatsapp_accounts',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x65')]),router['post']('/:id/square_projects',auth['isAuthenticated'](),controller[_0x5de29d('0x17')]),router[_0x5de29d('0x46')](_0x5de29d('0x26'),auth['isAuthenticated'](),controller[_0x5de29d('0x1c')]),router['put'](_0x5de29d('0x55'),auth[_0x5de29d('0x18')](),controller['update']),router[_0x5de29d('0x40')](_0x5de29d('0x21'),auth[_0x5de29d('0x18')](),controller['changePassword']),router[_0x5de29d('0x10')](_0x5de29d('0x52'),auth[_0x5de29d('0x18')](),controller['removeQueues']),router[_0x5de29d('0x10')](_0x5de29d('0x63'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x62')]),router[_0x5de29d('0x10')](_0x5de29d('0x55'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x51')]),router[_0x5de29d('0x10')](_0x5de29d('0x22'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x15')]),router[_0x5de29d('0x10')](_0x5de29d('0x57'),auth[_0x5de29d('0x18')](),controller['removeMailInteractions']),router[_0x5de29d('0x10')](_0x5de29d('0x3e'),auth['isAuthenticated'](),controller['removeFaxInteractions']),router[_0x5de29d('0x10')](_0x5de29d('0x4a'),auth['isAuthenticated'](),controller[_0x5de29d('0x5c')]),router[_0x5de29d('0x10')](_0x5de29d('0x13'),auth['isAuthenticated'](),controller[_0x5de29d('0x11')]),router[_0x5de29d('0x10')](_0x5de29d('0x3'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x32')]),router['delete'](_0x5de29d('0x3d'),auth[_0x5de29d('0x18')](),controller['removeFaxAccounts']),router[_0x5de29d('0x10')](_0x5de29d('0x66'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x48')]),router[_0x5de29d('0x10')](_0x5de29d('0x4c'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x25')]),router[_0x5de29d('0x10')](_0x5de29d('0x5d'),auth[_0x5de29d('0x18')](),controller['removeSmsAccounts']),router['delete']('/:id/chat_websites',auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x5a')]),router[_0x5de29d('0x10')](_0x5de29d('0x30'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x4e')]),router['delete'](_0x5de29d('0xc'),auth[_0x5de29d('0x18')](),controller[_0x5de29d('0x41')]),router[_0x5de29d('0x10')](_0x5de29d('0x26'),auth[_0x5de29d('0x18')](),controller['removeApiKey']),module[_0x5de29d('0x43')]=router; \ No newline at end of file +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 diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index 212b52f..6d65277 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a647_0x2386=['screenrecording','transport','getDataValue','dynamic','update','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','ulaw;alaw;gsm','VIRTUAL','split','actpass','BOOLEAN','shortinfo','ALLOWED_NOT_SCREENED','name','dtlsverify','user','nat','false','accountcode','encryption','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','STRING','blockedAt','DEFAULT\x20PAUSE','The\x20name\x20of\x20the\x20user','all','exports','PROHIB_FAILED_SCREEN','nonat','outgoing','phoneBarEnableScreenRecordingByAgent','uas','passive','true','get','admin','dtlscertfile','ENUM','\x22%s\x22\x20<%s>','setDataValue','peer','rfc2833','string','moment','info','dtlssetup','icesupport','originate','loginAttempts','blocked','sequelize','toLowerCase','INTEGER','local','lodash','udp','certificate','yes','email','dtlsprivatekey','format','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','dtlsenable','TEXT','inband','PROHIB','showWebBar','force_avp','accept','DATE','map','join','ALLOWED','never','permissions','callerid','PROHIB_NOT_SCREENED','wss','friend','fullname','allow','always','insecure','internal','\x22\x22\x20<>','rtcp_mux','ALLOWED_FAILED_SCREEN','active','refuse'];(function(_0x596e0e,_0x2386b1){const _0x2c6788=function(_0x3108f1){while(--_0x3108f1){_0x596e0e['push'](_0x596e0e['shift']());}};_0x2c6788(++_0x2386b1);}(a647_0x2386,0xc4));const a647_0x2c67=function(_0x596e0e,_0x2386b1){_0x596e0e=_0x596e0e-0x0;let _0x2c6788=a647_0x2386[_0x596e0e];return _0x2c6788;};const _0x11808c=a647_0x2c67;'use strict';const Sequelize=require(_0x11808c('0x23')),moment=require(_0x11808c('0x1c')),util=require('util'),_=require(_0x11808c('0x27'));module[_0x11808c('0xb')]={'name':{'type':Sequelize[_0x11808c('0x6')],'allowNull':![],'unique':_0x11808c('0x58'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x3108f1){const _0x225766=_0x11808c;this['setDataValue'](_0x225766('0x58'),_0x3108f1),this[_0x225766('0x18')]('defaultuser',_0x3108f1);},'comment':_0x11808c('0x9')},'fullname':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0x551031){const _0x48675a=_0x11808c;this[_0x48675a('0x18')](_0x48675a('0x40'),_0x551031),this[_0x48675a('0x18')](_0x48675a('0x3c'),util[_0x48675a('0x2d')]('\x22%s\x22\x20<%s>',_0x551031,this[_0x48675a('0x4c')](_0x48675a('0x44'))));}},'alias':{'type':Sequelize[_0x11808c('0x6')]},'email':{'type':Sequelize[_0x11808c('0x6')],'allowNull':![],'unique':_0x11808c('0x2b'),'validate':{'isEmail':!![]},'set':function(_0x24f5e7){const _0x318a52=_0x11808c;_0x24f5e7&&this[_0x318a52('0x18')](_0x318a52('0x2b'),_0x24f5e7[_0x318a52('0x24')]());}},'role':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x14'),_0x11808c('0x0'),'agent','telephone'),'allowNull':![]},'password':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize['STRING'],'defaultValue':_0x11808c('0x26')},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x11808c('0x44'),'set':function(_0x372036){const _0x6fa768=_0x11808c;this[_0x6fa768('0x18')](_0x6fa768('0x44'),_0x372036),this['setDataValue'](_0x6fa768('0x3'),_0x372036),this['setDataValue']('callerid',util['format'](_0x6fa768('0x17'),this[_0x6fa768('0x4c')](_0x6fa768('0x40')),_0x372036));}},'salt':{'type':Sequelize[_0x11808c('0x6')]},'phone':{'type':Sequelize[_0x11808c('0x6')]},'mobile':{'type':Sequelize['STRING']},'address':{'type':Sequelize[_0x11808c('0x6')]},'zipcode':{'type':Sequelize[_0x11808c('0x6')]},'userpic':{'type':Sequelize[_0x11808c('0x6')]},'city':{'type':Sequelize[_0x11808c('0x6')]},'country':{'type':Sequelize['STRING']},'online':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'lastLoginAt':{'type':Sequelize[_0x11808c('0x36')]},'voicePause':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'chatPause':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'mailPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'smsPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'openchannelPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x11808c('0x6')],'defaultValue':_0x11808c('0x8')},'lastPauseAt':{'type':Sequelize['DATE']},'chatCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'mailCapacity':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x11808c('0x25')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x11808c('0x25')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize['INTEGER'],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'description':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'host':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x11808c('0x4d')},'ipaddr':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'port':{'type':Sequelize[_0x11808c('0x25')](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'regserver':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'useragent':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'lastms':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'type':{'type':Sequelize['ENUM'](_0x11808c('0x3f'),_0x11808c('0x0'),_0x11808c('0x19')),'allowNull':!![],'defaultValue':'friend'},'context':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x57'),'ALLOWED_PASSED_SCREEN',_0x11808c('0x47'),_0x11808c('0x39'),_0x11808c('0x3d'),'PROHIB_PASSED_SCREEN',_0x11808c('0xc'),_0x11808c('0x32')),'allowNull':!![]},'deny':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'permit':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'secret':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'md5secret':{'type':Sequelize['STRING'],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'transport':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![],'defaultValue':_0x11808c('0x28'),'set':function(_0xf0f3f){const _0x2a3db7=_0x11808c;this[_0x2a3db7('0x18')]('transport',_0xf0f3f?_0xf0f3f[_0x2a3db7('0x38')](','):null);},'get':function(){const _0xa806a0=_0x11808c;return this[_0xa806a0('0x4c')](_0xa806a0('0x4b'))?this[_0xa806a0('0x4c')](_0xa806a0('0x4b'))['split'](','):null;},'comment':_0x11808c('0x2e')},'dtmfmode':{'type':Sequelize['ENUM'](_0x11808c('0x1a'),_0x11808c('0x1d'),_0x11808c('0x56'),_0x11808c('0x31'),'auto'),'allowNull':!![],'defaultValue':_0x11808c('0x1a')},'directmedia':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no',_0x11808c('0xd'),_0x11808c('0x4e'),_0x11808c('0xe')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'directmediadeny':{'type':Sequelize['STRING'],'allowNull':!![]},'nat':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':'force_rport,comedia','set':function(_0x1f0c93){const _0x28fed0=_0x11808c;this[_0x28fed0('0x18')](_0x28fed0('0x1'),_0x1f0c93?_0x1f0c93['join'](','):null);},'get':function(){const _0x30f3df=_0x11808c;return this[_0x30f3df('0x4c')]('nat')?this['getDataValue'](_0x30f3df('0x1'))[_0x30f3df('0x53')](','):null;},'comment':_0x11808c('0x5')},'callgroup':{'type':Sequelize[_0x11808c('0x6')]},'namedcallgroup':{'type':Sequelize[_0x11808c('0x6')]},'pickupgroup':{'type':Sequelize[_0x11808c('0x6')]},'namedpickupgroup':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x11808c('0x6')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x11808c('0x6')]},'disallow':{'type':Sequelize[_0x11808c('0x6')],'allowNull':![],'defaultValue':_0x11808c('0xa')},'allow':{'type':Sequelize[_0x11808c('0x6')],'allowNull':![],'defaultValue':_0x11808c('0x51'),'set':function(_0x554016){const _0x1b67a4=_0x11808c;this['setDataValue'](_0x1b67a4('0x41'),_0x554016?_0x554016[_0x1b67a4('0x38')](';'):'ulaw;alaw;gsm');},'get':function(){const _0x29afd6=_0x11808c;return this[_0x29afd6('0x4c')](_0x29afd6('0x41'))?this[_0x29afd6('0x4c')](_0x29afd6('0x41'))[_0x29afd6('0x53')](';'):null;},'comment':_0x11808c('0x4f')},'autoframing':{'type':Sequelize['ENUM'](_0x11808c('0x2a'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize['STRING'],'allowNull':!![],'set':function(_0x4de216){this['setDataValue']('insecure',_0x4de216?_0x4de216['join'](','):null);},'get':function(){const _0x4db260=_0x11808c;return this[_0x4db260('0x4c')](_0x4db260('0x43'))?this[_0x4db260('0x4c')](_0x4db260('0x43'))[_0x4db260('0x53')](','):null;},'comment':_0x11808c('0x50')},'trustrpid':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no',_0x11808c('0x3a')),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x11808c('0x16')]('yes','no'),'allowNull':!![]},'accountcode':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![],'defaultValue':_0x11808c('0x45')},'amaflags':{'type':Sequelize['STRING'],'allowNull':!![]},'callcounter':{'type':Sequelize['ENUM'](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':_0x11808c('0x2a')},'busylevel':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM'](_0x11808c('0x2a'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x11808c('0x16')]('yes','no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'template':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'videosupport':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no',_0x11808c('0x42')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize['ENUM'](_0x11808c('0x2a'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'session_timers':{'type':Sequelize['ENUM'](_0x11808c('0x35'),_0x11808c('0x49'),_0x11808c('0x20')),'allowNull':!![]},'session_expires':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize[_0x11808c('0x16')]('uac','uas'),'allowNull':!![],'defaultValue':_0x11808c('0x10')},'t38pt_usertpsource':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'regexten':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x11808c('0x16')]('yes','no'),'allowNull':!![],'defaultValue':_0x11808c('0x2a')},'keepalive':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'callbackextension':{'type':Sequelize['STRING'],'allowNull':!![]},'timert1':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize['STRING'],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x11808c('0x16')]('yes','no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize['ENUM']('yes','no','fingerprint',_0x11808c('0x29')),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'dtlscafile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x48'),_0x11808c('0x11'),_0x11808c('0x54')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x11808c('0x25')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x11808c('0x16')]('yes','no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'mohinterpret':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no',_0x11808c('0xd'),'update','update,nonat'),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize[_0x11808c('0x6')]},'resetPasswordExpires':{'type':Sequelize['DATE']},'passwordResetAt':{'type':Sequelize['DATE'],'defaultValue':null},'previousPasswords':{'type':Sequelize['STRING']},'showWebBar':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0,'set':function(_0x2f6a18){const _0x3c7749=_0x11808c;this[_0x3c7749('0x18')](_0x3c7749('0x33'),_0x2f6a18);const _0x179836=this[_0x3c7749('0x13')]({'plain':!![]});switch(_0x2f6a18){case 0x0:case 0x1:{let _0x33c914=_0x179836['transport']?_['isArray'](_0x179836[_0x3c7749('0x4b')])?_0x179836[_0x3c7749('0x4b')]['join']():_0x179836[_0x3c7749('0x4b')]:_0x3c7749('0x28');_0x33c914===_0x3c7749('0x3e')&&(_0x33c914=_0x3c7749('0x28')),this['setDataValue'](_0x3c7749('0x4b'),_0x33c914),this[_0x3c7749('0x18')](_0x3c7749('0x4'),'no'),this[_0x3c7749('0x18')]('avpf',null),this[_0x3c7749('0x18')](_0x3c7749('0x34'),null),this[_0x3c7749('0x18')]('icesupport',null),this['setDataValue'](_0x3c7749('0x2f'),null),this[_0x3c7749('0x18')](_0x3c7749('0x59'),null),this[_0x3c7749('0x18')](_0x3c7749('0x1e'),null),this[_0x3c7749('0x18')](_0x3c7749('0x15'),null),this[_0x3c7749('0x18')](_0x3c7749('0x2c'),null),this['setDataValue'](_0x3c7749('0x46'),'no');}break;case 0x2:this[_0x3c7749('0x18')](_0x3c7749('0x4b'),_0x3c7749('0x3e')),this[_0x3c7749('0x18')](_0x3c7749('0x4'),_0x3c7749('0x2a')),this['setDataValue']('avpf',_0x3c7749('0x2a')),this[_0x3c7749('0x18')](_0x3c7749('0x34'),_0x3c7749('0x2a')),this[_0x3c7749('0x18')](_0x3c7749('0x1f'),_0x3c7749('0x2a')),this[_0x3c7749('0x18')](_0x3c7749('0x2f'),_0x3c7749('0x2a')),this[_0x3c7749('0x18')]('dtlsverify','no'),this[_0x3c7749('0x18')](_0x3c7749('0x1e'),_0x3c7749('0x54')),this[_0x3c7749('0x18')](_0x3c7749('0x15'),_0x179836[_0x3c7749('0x15')]||'/etc/pki/tls/certs/motion.crt'),this[_0x3c7749('0x18')](_0x3c7749('0x2c'),_0x179836['dtlsprivatekey']||'/etc/pki/tls/private/motion.key'),this['setDataValue'](_0x3c7749('0x46'),_0x3c7749('0x2a'));break;default:}}},'permissions':{'type':Sequelize[_0x11808c('0x30')],'set':function(_0x3f5ba4){const _0x34f837=_0x11808c;this[_0x34f837('0x18')](_0x34f837('0x3b'),_0x3f5ba4?_0x3f5ba4[_0x34f837('0x38')](','):[]);},'get':function(){const _0x411a06=_0x11808c;return this[_0x411a06('0x4c')](_0x411a06('0x3b'))?_[_0x411a06('0x37')](this[_0x411a06('0x4c')]('permissions')[_0x411a06('0x53')](','),function(_0x527432){return parseInt(_0x527432,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize[_0x11808c('0x6')]},'phoneBarNoReplyNumber':{'type':Sequelize[_0x11808c('0x6')]},'phoneBarBusyNumber':{'type':Sequelize[_0x11808c('0x6')]},'phoneBarUnconditional':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x11808c('0x25')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x11808c('0x6')],'defaultValue':''},'crudPermissions':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize[_0x11808c('0x16')](_0x11808c('0x2a'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x11808c('0x6')]},'phoneBarEnableJaws':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x11808c('0x52')],'get':function(){const _0x3a00e0=_0x11808c;return this['getDataValue'](_0x3a00e0('0xf'))?this['getDataValue'](_0x3a00e0('0xf')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'hotdesk':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'interface':{'type':Sequelize[_0x11808c('0x6')],'defaultValue':null},'privacyEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize['STRING'],'allowNull':!![]},'apiKeyIat':{'type':Sequelize[_0x11808c('0x6')],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![],'set':function(_0x522148){const _0x14c861=_0x11808c;if(typeof _0x522148===_0x14c861('0x1b')){const _0x1c16f5=_0x522148==='1'?!![]:_0x522148==='0'?![]:_0x522148===_0x14c861('0x12')?!![]:_0x522148===_0x14c861('0x2')?![]:![];this[_0x14c861('0x18')]('screenrecording',_0x1c16f5);}else this['setDataValue'](_0x14c861('0x4a'),_0x522148);}},'blocked':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x47fb63){const _0x403f4f=_0x11808c;this['setDataValue'](_0x403f4f('0x22'),_0x47fb63),_0x47fb63===!![]?(this[_0x403f4f('0x18')]('blockedAt',moment()),this[_0x403f4f('0x18')](_0x403f4f('0x21'),0x0)):this[_0x403f4f('0x18')](_0x403f4f('0x7'),null);}},'blockedAt':{'type':Sequelize[_0x11808c('0x36')],'defaultValue':null},'loginAttempts':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x11808c('0x55')],'defaultValue':!![]}}; \ No newline at end of file +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 diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index 3b2cdb9..059f91a 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a648_0x1464=['User','Unknown\x20role','bulkCreate','merge','options','flatten','Agents','compact','$eq','logout','Use','update','getMailInteractions','105','differenceBy','MemberReport','transaction','Openchannel','CmHopper','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','$and','debug','removeChatInteractions','and','addOpenchannelInteractions','email','files/images/','body','autoAssociation','authenticate','$any','rows','online','$not','addWhatsappInteractions','getSmsAccounts','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','104','includeAll','getSquareProjects','join','isValidChannel','addSquareProjects','removeOpenchannelAccounts','type','value','No\x20API\x20access\x20key\x20found!','permissions','$ne','voicemail','getOpenchannelInteractions','getTeams','../../config/license/util','password','loginInPause','token','forEach','offset','User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method','message','findOne','length','OpenchannelAccount','addMailInteractions','../../components/parsers/qs','getChatInteractions','salt','Queues','$notLike','root','ChatGroup','filter','catch','channel','Voice','rawAttributes','like','toLowerCase','UserId','Queue:remove','ignore','model','getFaxAccounts','securePassword','agent','Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword','getDataValue','addContacts','removeMailInteractions','Chat','moment','addAvatar','filename','keys','getWhatsappInteractions','$in','newPassword','connection','voice','remove','index','Unknown\x20channel','user_has_whatsapp_interactions:save','mail','previousPasswords','manual','pauseType','sort','$contains','Mail','getChatQueues','createApiKey','getWhatsappQueues','color','getVoicePrefixes','CmList','user_has_openchannel_interactions:remove','some','CmContact','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','lastPauseAt','Unauthorized','VoicePrefix','send','params','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator','getMailAccounts','fields','penalty','ScreenRecording','iat','103','enforcePasswordHistory','../../rediscache','addOpenchannelAccounts','concat','addWhatsappAccounts','addMailAccounts','server/files/images/logos/default_profile.png','add','get','dialActive','108','%s%s','QueuePause','LOGININPAUSE','removeWhatsappAccounts','Queue:save','addAgent','download','user_has_sms_interactions:save','Wrong\x20credentials','ChatWebsite','Content-Range','$or','internal','socket','removeChatWebsites','faxPause','$lte','name','user_has_sms_interactions:remove','107','client','fax','getLists','filters','include','getContacts','set','api','getScheduledCalls','json','getAgents','UserVoiceQueueRt','stack','Sms','http','SmsInteraction','interface','isMiddleware','getRecordings','nolimit','file','VoiceQueue','removeFaxAccounts','userpic','getVoiceQueuesRt','../../mysqldb','removeApiKey','Queue','FaxAccount','request','111','addChatWebsites','end','find','whoami','map','openchannelPause','getChatWebsites','then','removeQueues','user','getFaxQueues','addSmsInteractions','passwordHistoryLimit','SIP/%s','headers','create','removeWhatsappInteractions','$gte','admin','push','max','lastName','$lt','$notBetween','undefined','pick','DEFAULT\x20PAUSE','getOpenchannelQueues','OpenchannelInteraction','$gt','getVoiceQueues','Pause','UserProfileResource','getApiKey','ids','all','pause','$contained','limit','addChatInteractions','fieldName','min_internal','113','getWhatsappAccounts','getGroups','New\x20password\x20must\x20be\x20different\x20from\x20old\x20password','addFaxInteractions','capitalize','userProfileId','User,\x20%s,\x20%s,\x20%s','role','phone','intrf','$like','omit','settingsEnabled','SELECT','removeFaxInteractions','API\x20key\x20not\x20available','info','User,\x20%s,\x20%s','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','fullname','100','remoteAddress','includes','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)','query','Tag','isNil','isArray','List','VoiceRecording','109','telephone','WhatsappAccount','VoiceMail','retrieveApiKey','VIRTUAL','mailbox','user_has_fax_interactions:remove','chat','removeMailAccounts','mobile','QueueId','addSmsAccounts','checkUserLimits','Fax','YYYY-MM-DD\x20HH:mm:ss','lower','./user.socket','each','getScreenRecordings','request\x20sent','getSmsInteractions','code','Team','resolve','changePassword','getMailQueues','format','Whatsapp','../../components/auth/service','tag','where','validatePasswordHistory','oldPassword','register','Telephones','$overlap','apiKeyIat','Setting','UserProfileSection','setDataValue','Invalid\x20body\x20format.\x20Use\x20newPassword','getOpenchannelAccounts','MailInteraction','getQueues','addFaxAccounts','firstName','device','voicePause','getFaxInteractions','removeSmsAccounts','stringify','user_has_mail_interactions:remove','show','getChannels','WhatsappInteraction','removeSmsInteractions','attributes','user_has_chat_interactions:save','FaxInteraction','from','status','user_has_chat_interactions:remove','sequelize','101','114','intersection','removeOpenchannelInteractions','error','sendStatus','destroy','user_has_mail_interactions:save','PAUSE','removeSquareProjects','upsert','102','unpause','emit','findAll','order','$notILike','addTeams','login','count'];(function(_0x13a999,_0x146472){const _0x44a5f1=function(_0x598695){while(--_0x598695){_0x13a999['push'](_0x13a999['shift']());}};_0x44a5f1(++_0x146472);}(a648_0x1464,0x1cd));const a648_0x44a5=function(_0x13a999,_0x146472){_0x13a999=_0x13a999-0x0;let _0x44a5f1=a648_0x1464[_0x13a999];return _0x44a5f1;};const _0x15d5b3=a648_0x44a5;'use strict';const moment=require(_0x15d5b3('0x14b')),util=require('util'),path=require('path'),fs=require('fs'),_=require('lodash'),{getSocket}=require(_0x15d5b3('0x17')),socket=getSocket(),authService=require(_0x15d5b3('0xba')),qs=require(_0x15d5b3('0x131')),logger=require('../../config/logger')(_0x15d5b3('0x3c')),utils=require('../../config/utils'),config=require('../../config/environment'),db=require(_0x15d5b3('0x4e'))['db'],{Op,QueryTypes,fn,col,where,ValidationError}=require(_0x15d5b3('0xdc')),licenseUtil=require(_0x15d5b3('0x125'));require(_0x15d5b3('0xae'))[_0x15d5b3('0xbf')](socket);const jayson=require('jayson/promise'),client=jayson[_0x15d5b3('0x35')][_0x15d5b3('0x43')]({'port':0x232a});function respondWithRpcPromise(_0x598695,_0x1a822c,_0x52803a,_0x5a1a5c){return new Promise(function(_0x144674,_0x3397e3){const _0x5ce895=a648_0x44a5,_0x5b60cb=_0x5a1a5c||client;return _0x5b60cb[_0x5ce895('0x52')](_0x598695,_0x52803a)[_0x5ce895('0x5b')](function(_0xf81bc2){const _0x4450b4=_0x5ce895;logger[_0x4450b4('0x8f')](_0x4450b4('0x90'),_0x1a822c,_0x4450b4('0xb1')),logger[_0x4450b4('0x106')](_0x4450b4('0x85'),_0x1a822c,_0x4450b4('0xb1'),JSON[_0x4450b4('0xd0')](_0xf81bc2));if(_0xf81bc2['error']){if(_0xf81bc2[_0x4450b4('0xe1')][_0x4450b4('0xb3')]===0x1f4)return logger['error'](_0x4450b4('0x90'),_0x1a822c,_0xf81bc2['error']['message']),_0x3397e3(_0xf81bc2[_0x4450b4('0xe1')][_0x4450b4('0x12c')]);return logger[_0x4450b4('0xe1')](_0x4450b4('0x90'),_0x1a822c,_0xf81bc2['error'][_0x4450b4('0x12c')]),_0x144674(_0xf81bc2[_0x4450b4('0xe1')]['message']);}else logger['info'](_0x4450b4('0x90'),_0x1a822c,_0x4450b4('0xb1')),_0x144674(_0xf81bc2['result'][_0x4450b4('0x12c')]);})[_0x5ce895('0x139')](function(_0x1e7800){const _0x2fd87f=_0x5ce895;logger[_0x2fd87f('0xe1')](_0x2fd87f('0x90'),_0x1a822c,_0x1e7800),_0x3397e3(_0x1e7800);});});}function respondWithStatusCode(_0x2048ad,_0x40f1da){return _0x40f1da=_0x40f1da||0xcc,function(_0x23a901){const _0x1558d5=a648_0x44a5;if(_0x23a901)return _0x2048ad[_0x1558d5('0xe2')](_0x40f1da);return _0x2048ad[_0x1558d5('0xda')](_0x40f1da)[_0x1558d5('0x55')]();};}function respondWithResult(_0x5982ba,_0x4d3094){return _0x4d3094=_0x4d3094||0xc8,function(_0x3a1c9d){const _0x304338=a648_0x44a5;if(_0x3a1c9d)return _0x5982ba['status'](_0x4d3094)[_0x304338('0x3e')](_0x3a1c9d);};}function respondWithFilteredResult(_0x474a78,_0x3b6cf3){return function(_0x53a0c0){const _0x449583=a648_0x44a5;if(_0x53a0c0){const _0x289f86=_0x53a0c0['count'],_0xa5be3d=_0x3b6cf3[_0x449583('0x12a')];let _0x486e1d=_0x3b6cf3[_0x449583('0x12a')]+_0x3b6cf3[_0x449583('0x7a')],_0x1a679b;return _0x486e1d>=_0x289f86?(_0x486e1d=_0x289f86,_0x1a679b=0xc8):_0x1a679b=0xce,_0x474a78['status'](_0x1a679b),_0x474a78[_0x449583('0x3b')](_0x449583('0x2b'),_0xa5be3d+'-'+_0x486e1d+'/'+_0x289f86)['json'](_0x53a0c0);}return null;};}function saveUpdates(_0x2132e7){return function(_0x1bd534){const _0x3f5677=a648_0x44a5;if(_0x1bd534)return _0x1bd534['update'](_0x2132e7)[_0x3f5677('0x5b')](function(_0x45b42d){return _0x45b42d;});return null;};}function removeEntity(_0x5c8ea6){return function(_0x421fa2){const _0x41f73d=a648_0x44a5;if(_0x421fa2)return _0x421fa2[_0x41f73d('0xe3')]()[_0x41f73d('0x5b')](function(){const _0x5545c2=_0x41f73d,_0x5c86de=_0x421fa2[_0x5545c2('0x1e')]({'plain':!![]});if(_0x5c86de[_0x5545c2('0x86')]==='admin')return;const _0x3411c7=[{'name':'Users','value':_0x5545c2('0x5d'),'ignore':!![]},{'name':'Agents','value':_0x5545c2('0x145'),'ignore':![]},{'name':_0x5545c2('0xc0'),'value':'telephone','ignore':![]}],_0x280248=_(_0x3411c7)[_0x5545c2('0x138')](_0x5545c2('0x141'))[_0x5545c2('0x58')](_0x5545c2('0x11e'))[_0x5545c2('0x11e')]();if(_[_0x5545c2('0x95')](_0x280248,_0x5c86de[_0x5545c2('0x86')]))return;const _0x2fdcd3=_['find'](_0x3411c7,[_0x5545c2('0x11e'),_0x5c86de['role']])[_0x5545c2('0x32')];return db[_0x5545c2('0x74')][_0x5545c2('0xe3')]({'where':{'type':_0x2fdcd3,'resourceId':_0x5c86de['id']}})[_0x5545c2('0x5b')](function(){return _0x421fa2;});})[_0x41f73d('0x5b')](function(){const _0x47a2a5=_0x41f73d;_0x5c8ea6[_0x47a2a5('0xda')](0xcc)[_0x47a2a5('0x55')]();});};}function handleEntityNotFound(_0x591642){return function(_0x50da54){const _0x9bf36a=a648_0x44a5;return!_0x50da54&&_0x591642[_0x9bf36a('0xe2')](0x194),_0x50da54;};}function handleError(_0x39ae13,_0x27bc4d){return _0x27bc4d=_0x27bc4d||0x1f4,function(_0x98b6c6){const _0x1989e7=a648_0x44a5;logger[_0x1989e7('0xe1')](_0x98b6c6[_0x1989e7('0x41')]),_0x98b6c6[_0x1989e7('0x32')]&&delete _0x98b6c6['name'],_0x39ae13[_0x1989e7('0xda')](_0x27bc4d)[_0x1989e7('0xd')](_0x98b6c6);};}function validateUser(_0x251886){return new Promise(function(_0x5d1b49,_0xf0d01d){const _0x33fa62=a648_0x44a5;if(_0x251886['internal'])return _0x5d1b49(_0x251886);return db[_0x33fa62('0xc3')]['findByPk'](0x1)[_0x33fa62('0x5b')](function(_0x206390){const _0x3fe6c1=_0x33fa62;if(_0x206390[_0x3fe6c1('0x144')])authService['validatePasswordPattern'](_0x251886['password']);db[_0x3fe6c1('0xf1')][_0x3fe6c1('0x68')](_0x3fe6c1('0x2d'))['then'](function(_0x4d5c0f){const _0x4720cd=_0x3fe6c1;if(_[_0x4720cd('0x99')](_0x4d5c0f)){_0x251886[_0x4720cd('0x2d')]=_0x206390[_0x4720cd('0x7d')]||0x1;return;}if(_[_0x4720cd('0x99')](_0x206390['min_internal'])||_0x206390[_0x4720cd('0x7d')]===_0x4d5c0f){_0x251886[_0x4720cd('0x2d')]=_0x4d5c0f+0x1;return;}if(_0x206390['min_internal']>_0x4d5c0f){_0x251886[_0x4720cd('0x2d')]=_0x206390[_0x4720cd('0x7d')];return;}return db[_0x4720cd('0xdc')]['query'](_0x4720cd('0x96'),{'type':QueryTypes[_0x4720cd('0x8c')]})[_0x4720cd('0x5b')](function(_0x5f3ffb){const _0xd57aba=_0x4720cd;if(_0x5f3ffb&&_0x5f3ffb[_0xd57aba('0x12e')])for(let _0x4a7b3b=0x0,_0x7d021a=_0x5f3ffb['length'];_0x4a7b3b<_0x7d021a&&_[_0xd57aba('0x99')](_0x251886['internal']);_0x4a7b3b++){if(_0x206390[_0xd57aba('0x7d')]<=_0x5f3ffb[_0x4a7b3b]['from'])_0x251886[_0xd57aba('0x2d')]=_0x5f3ffb[_0x4a7b3b][_0xd57aba('0xd9')];else _0x206390[_0xd57aba('0x7d')]>_0x5f3ffb[_0x4a7b3b][_0xd57aba('0xd9')]&&_0x206390[_0xd57aba('0x7d')]<=_0x5f3ffb[_0x4a7b3b]['to']&&(_0x251886[_0xd57aba('0x2d')]=_0x206390[_0xd57aba('0x7d')]);}return _[_0xd57aba('0x99')](_0x251886[_0xd57aba('0x2d')])&&(_0x251886[_0xd57aba('0x2d')]=_0x4d5c0f+0x1),_0x5d1b49(_0x251886);});});})['catch'](function(_0x453f42){_0xf0d01d(_0x453f42);});});}function updateUser(_0x5e3e48){return new Promise(function(_0x1c8b9e,_0x561ec2){const _0x3cf189=a648_0x44a5;try{_0x5e3e48[_0x3cf189('0x122')]&&(_0x5e3e48[_0x3cf189('0xa3')]=_0x5e3e48[_0x3cf189('0x2d')],_0x5e3e48[_0x3cf189('0xa0')]={'mailbox':_0x5e3e48['internal'],'password':_0x5e3e48['password'],'fullname':_0x5e3e48[_0x3cf189('0x92')],'email':_0x5e3e48[_0x3cf189('0x10a')]});if(_0x5e3e48['role']===_0x3cf189('0x145')){if(!_0x5e3e48[_0x3cf189('0x120')])_0x5e3e48[_0x3cf189('0x120')]=[_0x3cf189('0xdd'),_0x3cf189('0xe8'),_0x3cf189('0x15'),_0x3cf189('0x7e'),'110',_0x3cf189('0x116'),_0x3cf189('0xfe'),'106',_0x3cf189('0x34'),_0x3cf189('0x20'),_0x3cf189('0x9d'),_0x3cf189('0x93'),_0x3cf189('0x53'),_0x3cf189('0xde')];}_0x1c8b9e(_0x5e3e48);}catch(_0x539a3c){_0x561ec2(_0x539a3c);}});}exports[_0x15d5b3('0x155')]=function(_0x2c215b,_0xfa2a7c){const _0xf152d6=_0x15d5b3;let _0x4decd5={};const _0xed1df7={},_0x227a91={'count':0x0,'rows':[]},_0x4926e2=_[_0xf152d6('0x58')](db['User'][_0xf152d6('0x13c')],function(_0xb32eb7){const _0x27bccf=_0xf152d6;return{'name':_0xb32eb7[_0x27bccf('0x7c')],'type':_0xb32eb7[_0x27bccf('0x11d')]['key']};});_0xed1df7[_0xf152d6('0x142')]=_[_0xf152d6('0xff')](_[_0xf152d6('0x58')](_0x4926e2,'name'),['password','salt']),_0xed1df7[_0xf152d6('0x97')]=_[_0xf152d6('0x14e')](_0x2c215b[_0xf152d6('0x97')]),_0xed1df7[_0xf152d6('0x38')]=_[_0xf152d6('0xdf')](_0xed1df7[_0xf152d6('0x142')],_0xed1df7[_0xf152d6('0x97')]),_0x4decd5[_0xf152d6('0xd6')]=_['intersection'](_0xed1df7['model'],qs[_0xf152d6('0x11')](_0x2c215b['query'][_0xf152d6('0x11')])),_0x4decd5['attributes']=_0x4decd5[_0xf152d6('0xd6')][_0xf152d6('0x12e')]?_0x4decd5[_0xf152d6('0xd6')]:_0xed1df7['model'];typeof _0x2c215b[_0xf152d6('0x97')][_0xf152d6('0x48')]===_0xf152d6('0x6c')&&(_0x4decd5[_0xf152d6('0x7a')]=qs[_0xf152d6('0x7a')](_0x2c215b[_0xf152d6('0x97')]['limit']),_0x4decd5['offset']=qs[_0xf152d6('0x12a')](_0x2c215b[_0xf152d6('0x97')][_0xf152d6('0x12a')]));_0x4decd5[_0xf152d6('0xec')]=qs[_0xf152d6('0x15c')](_0x2c215b['query']['sort']),_0x4decd5[_0xf152d6('0xbc')]=qs[_0xf152d6('0x38')](_['pick'](_0x2c215b[_0xf152d6('0x97')],_0xed1df7[_0xf152d6('0x38')]),_0x4926e2);_0x2c215b[_0xf152d6('0x97')]['filter']&&(_0x4decd5[_0xf152d6('0xbc')]=_['merge'](_0x4decd5[_0xf152d6('0xbc')],{[Op['or']]:_[_0xf152d6('0x58')](_0x4926e2,function(_0x1d1c3d){const _0x165a20=_0xf152d6;if(_0x1d1c3d['type']!==_0x165a20('0xa2'))return where(fn(_0x165a20('0xad'),col(_0x1d1c3d[_0x165a20('0x32')])),{'$like':fn('lower','%'+_0x2c215b[_0x165a20('0x97')][_0x165a20('0x138')]+'%')});})}));_0x4decd5=_[_0xf152d6('0xf4')]({},_0x4decd5,_0x2c215b['options']);const _0x5920db={'where':_0x4decd5['where']};return db[_0xf152d6('0xf1')]['count'](_0x5920db)[_0xf152d6('0x5b')](function(_0x5ec6dc){const _0x4351a5=_0xf152d6;return _0x227a91[_0x4351a5('0xf0')]=_0x5ec6dc,typeof _0x2c215b[_0x4351a5('0x97')][_0x4351a5('0x117')]!==_0x4351a5('0x6c')&&(_0x4decd5[_0x4351a5('0x39')]=[{'all':!![]}]),db[_0x4351a5('0xf1')][_0x4351a5('0xeb')](_0x4decd5);})[_0xf152d6('0x5b')](function(_0x10b894){const _0x49af07=_0xf152d6;return _0x227a91[_0x49af07('0x110')]=_0x10b894,_0x227a91;})[_0xf152d6('0x5b')](respondWithFilteredResult(_0xfa2a7c,_0x4decd5))[_0xf152d6('0x139')](handleError(_0xfa2a7c,null));},exports[_0x15d5b3('0xd2')]=function(_0x241c87,_0x418ca0){const _0xa9a3cf=_0x15d5b3;let _0x2ba05f={'raw':![],'where':{'id':_0x241c87['params']['id']}};const _0xca6314={};return _0xca6314[_0xa9a3cf('0x142')]=_[_0xa9a3cf('0xff')](_[_0xa9a3cf('0x14e')](db['User'][_0xa9a3cf('0x13c')]),[_0xa9a3cf('0x126'),_0xa9a3cf('0x133')]),_0xca6314['query']=_['keys'](_0x241c87[_0xa9a3cf('0x97')]),_0xca6314[_0xa9a3cf('0x38')]=_['intersection'](_0xca6314[_0xa9a3cf('0x142')],_0xca6314[_0xa9a3cf('0x97')]),_0x2ba05f[_0xa9a3cf('0xd6')]=_[_0xa9a3cf('0xdf')](_0xca6314[_0xa9a3cf('0x142')],qs['fields'](_0x241c87[_0xa9a3cf('0x97')][_0xa9a3cf('0x11')])),_0x2ba05f[_0xa9a3cf('0xd6')]=_0x2ba05f[_0xa9a3cf('0xd6')][_0xa9a3cf('0x12e')]?_0x2ba05f[_0xa9a3cf('0xd6')]:_0xca6314['model'],_0x241c87[_0xa9a3cf('0x97')][_0xa9a3cf('0x117')]&&(_0x2ba05f[_0xa9a3cf('0x39')]=[{'all':!![]}]),_0x2ba05f=_['merge']({},_0x2ba05f,_0x241c87[_0xa9a3cf('0xf5')]),db[_0xa9a3cf('0xf1')][_0xa9a3cf('0x12d')](_0x2ba05f)[_0xa9a3cf('0x5b')](handleEntityNotFound(_0x418ca0,null))[_0xa9a3cf('0x5b')](respondWithResult(_0x418ca0,null))[_0xa9a3cf('0x139')](handleError(_0x418ca0,null));},exports['bulkCreate']=function(_0x5b7cd8,_0x5370b7){const _0xfe4bc8=_0x15d5b3,_0x338613=_0x5b7cd8[_0xfe4bc8('0x10c')];let _0x53ff60=[];if(_0x5b7cd8[_0xfe4bc8('0x5d')][_0xfe4bc8('0x86')]==='agent')throw new Error(_0xfe4bc8('0xb'));if(_['some'](_0x338613,[_0xfe4bc8('0x86'),_0xfe4bc8('0x5d')])&&_0x5b7cd8[_0xfe4bc8('0x5d')][_0xfe4bc8('0x86')]!==_0xfe4bc8('0x66'))throw new Error(_0xfe4bc8('0x9'));if(_[_0xfe4bc8('0x7')](_0x338613,[_0xfe4bc8('0x86'),'admin'])&&_0x5b7cd8[_0xfe4bc8('0x5d')][_0xfe4bc8('0x86')]!=='admin')throw new Error(_0xfe4bc8('0x115'));return licenseUtil[_0xfe4bc8('0xaa')](_0x338613)[_0xfe4bc8('0x5b')](function(){return validateUser(_0x338613[0x0]);})['then'](function(){const _0x351f68=_0xfe4bc8;for(let _0x42478e=0x1;_0x42478e<_0x338613[_0x351f68('0x12e')];_0x42478e++){const _0xe6d758=_0x338613[_0x42478e-0x1][_0x351f68('0x2d')];if(!_0x338613[_0x42478e][_0x351f68('0x2d')])_0x338613[_0x42478e][_0x351f68('0x2d')]=_0xe6d758+0x1;_0x53ff60[_0x351f68('0x67')](validateUser(_0x338613[_0x42478e]));}return Promise[_0x351f68('0x77')](_0x53ff60);})['then'](function(){const _0x218830=_0xfe4bc8;_0x53ff60=[];for(let _0x376cd0=0x0;_0x376cd0<_0x338613['length'];_0x376cd0++){_0x53ff60[_0x218830('0x67')](updateUser(_0x338613[_0x376cd0]));}return Promise[_0x218830('0x77')](_0x53ff60);})[_0xfe4bc8('0x5b')](function(){const _0x69ccd5=_0xfe4bc8;return _0x53ff60=_0x338613[_0x69ccd5('0x58')](_0x215e5c=>{const _0x97b07e=_0x69ccd5;return db['User'][_0x97b07e('0x63')](_0x215e5c,{'include':[{'model':db[_0x97b07e('0xa0')],'as':_0x97b07e('0xa0')}]})[_0x97b07e('0x5b')](function(_0x5c70bf){return _0x215e5c['id']=_0x5c70bf['id'],_0x215e5c;});}),Promise[_0x69ccd5('0x77')](_0x53ff60);})[_0xfe4bc8('0x5b')](function(_0x428409){const _0x144a9d=_0xfe4bc8;if(_0x5b7cd8[_0x144a9d('0x10c')][_0x144a9d('0x86')]===_0x144a9d('0x5d'))return _0x428409;if(_0x5b7cd8[_0x144a9d('0x5d')]['role']!==_0x144a9d('0x5d'))return _0x428409;const _0x589a3b=_[_0x144a9d('0x7')](_0x428409,function(_0x1f3fe5){const _0x47d459=_0x144a9d;return _0x1f3fe5['role']==='agent'||_0x1f3fe5['role']===_0x47d459('0x9e');});if(!_0x589a3b)return _0x428409;return db[_0x144a9d('0xc4')][_0x144a9d('0xeb')]({'where':{'name':{[Op['or']]:[_0x144a9d('0xf7'),_0x144a9d('0xc0')]},'userProfileId':_0x5b7cd8[_0x144a9d('0x5d')][_0x144a9d('0x84')]},'raw':!![]})[_0x144a9d('0x5b')](function(_0x18107){const _0x2e2a46=_0x144a9d;if(_['isEmpty'](_0x18107)||!_[_0x2e2a46('0x7')](_0x18107,[_0x2e2a46('0x10d'),0x0]))return _0x428409;_0x53ff60=[];const _0x3a3bbb=_(_0x18107)[_0x2e2a46('0x58')](function(_0x2dc5c2){const _0xea7b05=_0x2e2a46;if(_0x2dc5c2[_0xea7b05('0x10d')]===0x1)return;return _0x2dc5c2[_0xea7b05('0x32')]==='Agents'?_0xea7b05('0x145'):_0xea7b05('0x9e');})[_0x2e2a46('0xf8')]()[_0x2e2a46('0x11e')]();for(let _0x1a5bfb=0x0;_0x1a5bfb<_0x428409['length'];_0x1a5bfb++){if(!_[_0x2e2a46('0x95')](_0x3a3bbb,_0x428409[_0x1a5bfb][_0x2e2a46('0x86')]))return;const _0x24f273=_0x428409[_0x1a5bfb][_0x2e2a46('0x86')]===_0x2e2a46('0x145')?'Agents':_0x2e2a46('0xc0');_0x53ff60[_0x2e2a46('0x67')](db[_0x2e2a46('0x74')]['create']({'name':_0x428409[_0x1a5bfb][_0x2e2a46('0x32')],'resourceId':_0x428409[_0x1a5bfb]['id'],'type':_0x24f273,'sectionId':_[_0x2e2a46('0x56')](_0x18107,['name',_0x24f273])['id']},{}));}return Promise[_0x2e2a46('0x77')](_0x53ff60);});})[_0xfe4bc8('0x5b')](respondWithResult(_0x5370b7,0xc9))[_0xfe4bc8('0x139')](handleError(_0x5370b7,null));},exports[_0x15d5b3('0xfc')]=function(_0x4d69e9,_0x16e8ef){const _0x14e4b6=_0x15d5b3;return _0x4d69e9[_0x14e4b6('0x10c')]['id']&&delete _0x4d69e9[_0x14e4b6('0x10c')]['id'],delete _0x4d69e9[_0x14e4b6('0x10c')][_0x14e4b6('0x86')],db[_0x14e4b6('0xf1')]['findOne']({'where':{'id':_0x4d69e9[_0x14e4b6('0xe')]['id']}})[_0x14e4b6('0x5b')](handleEntityNotFound(_0x16e8ef,null))['then'](saveUpdates(_0x4d69e9[_0x14e4b6('0x10c')],null))['then'](respondWithResult(_0x16e8ef,null))[_0x14e4b6('0x139')](handleError(_0x16e8ef,null));},exports['describe']=function(_0x8b04b,_0x2db9fd){const _0x4f80dd=_0x15d5b3;return db['User']['describe']()[_0x4f80dd('0x5b')](respondWithResult(_0x2db9fd,null))[_0x4f80dd('0x139')](handleError(_0x2db9fd,null));},exports['addContacts']=function(_0x5a99b4,_0x47c14e){const _0x49db80=_0x15d5b3;return db[_0x49db80('0xf1')][_0x49db80('0x12d')]({'where':{'id':_0x5a99b4[_0x49db80('0xe')]['id']}})[_0x49db80('0x5b')](handleEntityNotFound(_0x47c14e,null))[_0x49db80('0x5b')](function(_0x28f414){const _0xa93b44=_0x49db80;if(_0x28f414)return _0x28f414[_0xa93b44('0x148')](_0x5a99b4[_0xa93b44('0x10c')][_0xa93b44('0x76')],{'through':_[_0xa93b44('0x8a')](_0x5a99b4[_0xa93b44('0x10c')],[_0xa93b44('0x76'),'id'])});})[_0x49db80('0x5b')](respondWithResult(_0x47c14e,null))['catch'](handleError(_0x47c14e,null));},exports[_0x15d5b3('0x63')]=function(_0x2c7988,_0x5b871a){const _0x568b3e=_0x15d5b3;if(_0x2c7988[_0x568b3e('0x5d')]['role']===_0x568b3e('0x145'))throw new Error(_0x568b3e('0xb'));if(_0x2c7988[_0x568b3e('0x10c')][_0x568b3e('0x86')]===_0x568b3e('0x5d')&&_0x2c7988['user']['role']!==_0x568b3e('0x66'))throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user');if(_0x2c7988[_0x568b3e('0x10c')][_0x568b3e('0x86')]===_0x568b3e('0x66')&&_0x2c7988['user']['role']!==_0x568b3e('0x66'))throw new Error(_0x568b3e('0xf'));return licenseUtil['checkUserLimits']([_0x2c7988[_0x568b3e('0x10c')]])[_0x568b3e('0x5b')](function(){const _0x3f2280=_0x568b3e;return validateUser(_0x2c7988[_0x3f2280('0x10c')]);})['then'](function(_0x378674){return updateUser(_0x378674)['then'](function(_0x36050e){const _0x2c9c17=a648_0x44a5;return _0x36050e['role']==='admin'&&(_0x36050e[_0x2c9c17('0x8b')]=_0x2c7988[_0x2c9c17('0x5d')]['settingsEnabled'],delete _0x36050e[_0x2c9c17('0x84')]),_0x36050e;});})[_0x568b3e('0x5b')](function(_0x3f7a4c){const _0x32bc1e=_0x568b3e;return db[_0x32bc1e('0xf1')]['create'](_0x3f7a4c,{'include':[{'model':db[_0x32bc1e('0xa0')],'as':_0x32bc1e('0xa0')}]});})[_0x568b3e('0x5b')](function(_0x1f6a7c){const _0x205d4b=_0x568b3e;if(_0x2c7988['body'][_0x205d4b('0x86')]===_0x205d4b('0x5d'))return _0x1f6a7c;if(_0x2c7988[_0x205d4b('0x5d')][_0x205d4b('0x86')]!=='user')return _0x1f6a7c;return db[_0x205d4b('0xc4')][_0x205d4b('0x12d')]({'where':{'name':_0x1f6a7c[_0x205d4b('0x86')]===_0x205d4b('0x145')?_0x205d4b('0xf7'):_0x205d4b('0xc0'),'userProfileId':_0x2c7988[_0x205d4b('0x5d')][_0x205d4b('0x84')]},'raw':!![]})[_0x205d4b('0x5b')](function(_0x1981fa){const _0x41fce0=_0x205d4b;if(!_0x1981fa||_0x1981fa['autoAssociation']!=0x0)return _0x1f6a7c;return db[_0x41fce0('0x74')][_0x41fce0('0x63')]({'name':_0x1f6a7c['name'],'resourceId':_0x1f6a7c['id'],'type':_0x1981fa['name'],'sectionId':_0x1981fa['id']},{})[_0x41fce0('0x5b')](function(){return _0x1f6a7c;});})[_0x205d4b('0x139')](function(_0x59544a){const _0x3ea360=_0x205d4b;logger['error'](_0x3ea360('0x104'),_0x59544a);throw _0x59544a;});})['then'](respondWithResult(_0x5b871a,0xc9))['catch'](handleError(_0x5b871a,null));},exports[_0x15d5b3('0xb6')]=function(_0xf749db,_0x1b3421){const _0xd1c4b2=_0x15d5b3;if(_0xf749db['body']['id'])delete _0xf749db[_0xd1c4b2('0x10c')]['id'];return db[_0xd1c4b2('0xf1')]['findOne']({'where':{'id':_0xf749db[_0xd1c4b2('0xe')]['id']}})[_0xd1c4b2('0x5b')](function(_0x217c6b){const _0x19ec1f=_0xd1c4b2;if(!_0x217c6b)return null;if(_0x217c6b['id']===_0xf749db[_0x19ec1f('0x5d')]['id']){if(!_0xf749db[_0x19ec1f('0x10c')][_0x19ec1f('0xbe')]||!_0xf749db[_0x19ec1f('0x10c')][_0x19ec1f('0x151')])throw new ValidationError(_0x19ec1f('0x146'));if(!_0x217c6b[_0x19ec1f('0x10e')](_0xf749db[_0x19ec1f('0x10c')][_0x19ec1f('0xbe')]))throw new ValidationError(_0x19ec1f('0x29'));if(_0xf749db['body'][_0x19ec1f('0xbe')]===_0xf749db['body'][_0x19ec1f('0x151')])throw new ValidationError(_0x19ec1f('0x81'));}else{if(_0xf749db[_0x19ec1f('0x5d')][_0x19ec1f('0x86')]===_0x19ec1f('0x66')){if(!_0xf749db[_0x19ec1f('0x10c')][_0x19ec1f('0x151')])throw new ValidationError(_0x19ec1f('0xc6'));}else{if(_0xf749db[_0x19ec1f('0x5d')][_0x19ec1f('0x86')]===_0x19ec1f('0x5d')){if(!_0xf749db[_0x19ec1f('0x10c')][_0x19ec1f('0x151')])throw new ValidationError(_0x19ec1f('0xc6'));if(_0x217c6b[_0x19ec1f('0x86')]!==_0x19ec1f('0x145'))throw new ValidationError(_0x19ec1f('0xb'));}else throw new ValidationError('Unauthorized');}}return _0x217c6b;})[_0xd1c4b2('0x5b')](handleEntityNotFound(_0x1b3421,null))[_0xd1c4b2('0x5b')](function(_0x478c4d){const _0x2ef7a6=_0xd1c4b2;return db[_0x2ef7a6('0xc3')]['findOne']({'attributes':['id',_0x2ef7a6('0x144'),_0x2ef7a6('0x16'),_0x2ef7a6('0x60')]})[_0x2ef7a6('0x5b')](function(_0x438315){const _0x5742b4=_0x2ef7a6;if(_0x438315['securePassword'])authService['validatePasswordPattern'](_0xf749db[_0x5742b4('0x10c')][_0x5742b4('0x151')]);if(!_0x438315[_0x5742b4('0x16')]||!_0x478c4d[_0x5742b4('0x159')])return _0x478c4d;return authService[_0x5742b4('0xbd')](_0xf749db['body'][_0x5742b4('0x151')],_0x478c4d[_0x5742b4('0x159')],_0x438315[_0x5742b4('0x60')]),_0x478c4d;})['then'](saveUpdates({'password':_0xf749db[_0x2ef7a6('0x10c')][_0x2ef7a6('0x151')],'passwordResetAt':_0xf749db['user']['id']==_0xf749db['params']['id']?moment():null,'previousPasswords':authService['updatePasswordsHistory'](_0xf749db[_0x2ef7a6('0x10c')][_0x2ef7a6('0x151')],_0x478c4d[_0x2ef7a6('0x159')])},null));})[_0xd1c4b2('0x5b')](respondWithResult(_0x1b3421,null))[_0xd1c4b2('0x139')](handleError(_0x1b3421,null));},exports['addQueues']=function(_0x48a79a,_0x5caf86){const _0x2873c9=_0x15d5b3,_0x6adf30=_0x48a79a['body']['channel'];return db[_0x2873c9('0xf1')][_0x2873c9('0x12d')]({'where':{'id':_0x48a79a['params']['id']},'attributes':['id',_0x2873c9('0x32'),_0x2873c9('0x86'),'online',_0x2873c9('0x127'),_0x2873c9('0xcd'),_0x2873c9('0x45')]})['then'](handleEntityNotFound(_0x5caf86,null))['then'](function(_0x4f2560){const _0x2a8aae=_0x2873c9;if(_0x4f2560){if(!utils[_0x2a8aae('0x11a')](_0x6adf30))throw new ValidationError(_0x2a8aae('0x156'));return _0x4f2560[_0x2a8aae('0x1d')+_[_0x2a8aae('0x83')](_0x6adf30[_0x2a8aae('0x13e')]())+_0x2a8aae('0x134')](_0x48a79a[_0x2a8aae('0x10c')][_0x2a8aae('0x76')],{'through':{'penalty':_0x48a79a[_0x2a8aae('0x10c')][_0x2a8aae('0x12')]||0x0}})[_0x2a8aae('0x5b')](function(_0x155f8f){const _0x3db2de=_0x2a8aae;for(let _0x1b1666=0x0;_0x1b1666<_0x48a79a[_0x3db2de('0x10c')]['ids'][_0x3db2de('0x12e')];_0x1b1666+=0x1){const _0x4d0fd6={'UserId':_0x48a79a[_0x3db2de('0xe')]['id']};_0x4d0fd6[_['capitalize'](_0x6adf30['toLowerCase']())+_0x3db2de('0xa8')]=_0x48a79a['body'][_0x3db2de('0x76')][_0x1b1666],socket[_0x3db2de('0xea')](_0x3db2de('0x5d')+_['capitalize'](_0x6adf30['toLowerCase']())+_0x3db2de('0x25'),_0x4d0fd6);}return _0x155f8f;})[_0x2a8aae('0x5b')](function(){const _0x4d1b8c=_0x2a8aae;if(_0x6adf30==='voice')return db[_0x4d1b8c('0x4a')][_0x4d1b8c('0xeb')]({'where':{'id':_0x48a79a[_0x4d1b8c('0x10c')][_0x4d1b8c('0x76')]||[]},'raw':!![],'attributes':['id',_0x4d1b8c('0x32')]});})[_0x2a8aae('0x5b')](function(_0x47220f){const _0x39dab3=_0x2a8aae,_0x352cee=_0x4f2560[_0x39dab3('0x1e')]({'plain':!![]}),_0x29a9d8=[];if(_0x6adf30===_0x39dab3('0x153')&&_0x352cee[_0x39dab3('0x86')]===_0x39dab3('0x145')&&_0x352cee['online']){for(let _0x550e2c=0x0;_0x550e2c<_0x47220f[_0x39dab3('0x12e')];_0x550e2c+=0x1){_0x29a9d8[_0x39dab3('0x67')]({'membername':_0x352cee[_0x39dab3('0x32')],'UserId':_0x352cee['id'],'queue_name':_0x47220f[_0x550e2c]['name'],'VoiceQueueId':_0x47220f[_0x550e2c]['id'],'interface':_[_0x39dab3('0x99')](_0x352cee[_0x39dab3('0x45')])?util[_0x39dab3('0xb8')]('SIP/%s',_0x352cee[_0x39dab3('0x32')]):_0x352cee[_0x39dab3('0x45')],'paused':_0x352cee[_0x39dab3('0xcd')]||![],'penalty':_0x48a79a[_0x39dab3('0x10c')]['penalty']||0x0});}return Promise[_0x39dab3('0xaf')](_0x29a9d8,function(_0x15a54){const _0x32f35e=_0x39dab3;return db[_0x32f35e('0x40')][_0x32f35e('0xe7')](_0x15a54);});}return _0x4f2560;});}})[_0x2873c9('0x5b')](respondWithStatusCode(_0x5caf86,null))['catch'](handleError(_0x5caf86,null));},exports[_0x15d5b3('0x5c')]=function(_0x951ce,_0x1d46f7){const _0x26af6d=_0x15d5b3;let _0x3e80a8;return db[_0x26af6d('0xf1')][_0x26af6d('0x12d')]({'where':{'id':_0x951ce[_0x26af6d('0xe')]['id']},'attributes':['id',_0x26af6d('0x32'),_0x26af6d('0x86')]})[_0x26af6d('0x5b')](handleEntityNotFound(_0x1d46f7,null))[_0x26af6d('0x5b')](function(_0x295d00){const _0x85ac1d=_0x26af6d;if(_0x295d00){_0x3e80a8=_0x295d00;if(!_0x951ce['query'][_0x85ac1d('0x13a')]||!utils[_0x85ac1d('0x11a')](_0x951ce[_0x85ac1d('0x97')][_0x85ac1d('0x13a')]))throw new ValidationError('Unknown\x20channel');return _0x295d00[_0x85ac1d('0x154')+_[_0x85ac1d('0x83')](_0x951ce[_0x85ac1d('0x97')][_0x85ac1d('0x13a')][_0x85ac1d('0x13e')]())+_0x85ac1d('0x134')](_0x951ce[_0x85ac1d('0x97')]['ids']);}})[_0x26af6d('0x5b')](function(_0x455c28){const _0x5141c0=_0x26af6d;for(let _0x21956c=0x0;_0x21956c<_0x951ce[_0x5141c0('0x97')][_0x5141c0('0x76')][_0x5141c0('0x12e')];_0x21956c+=0x1){const _0xcf2e3f={'UserId':_0x951ce[_0x5141c0('0xe')]['id']};_0xcf2e3f[_[_0x5141c0('0x83')](_0x951ce[_0x5141c0('0x97')][_0x5141c0('0x13a')]['toLowerCase']())+_0x5141c0('0xa8')]=_0x951ce['query']['ids'][_0x21956c],socket[_0x5141c0('0xea')]('user'+_[_0x5141c0('0x83')](_0x951ce['query'][_0x5141c0('0x13a')][_0x5141c0('0x13e')]())+_0x5141c0('0x140'),_0xcf2e3f);}return _0x455c28;})['then'](function(){const _0x55f0fb=_0x26af6d;if(_0x951ce['query']['channel']===_0x55f0fb('0x153'))return db[_0x55f0fb('0x40')][_0x55f0fb('0xe3')]({'where':{'UserId':_0x951ce['params']['id'],'VoiceQueueId':_0x951ce['query'][_0x55f0fb('0x76')]},'individualHooks':!![]})[_0x55f0fb('0x5b')](function(){return _0x3e80a8;});return _0x3e80a8;})[_0x26af6d('0x5b')](respondWithStatusCode(_0x1d46f7,null))[_0x26af6d('0x139')](handleError(_0x1d46f7,null));},exports[_0x15d5b3('0x14c')]=function(_0x20b386,_0x13ed97){const _0x2758a3=_0x15d5b3;return _0x20b386[_0x2758a3('0x10c')][_0x2758a3('0x4c')]=_0x20b386[_0x2758a3('0x49')][_0x2758a3('0x14d')],db['User'][_0x2758a3('0x12d')]({'where':{'id':_0x20b386[_0x2758a3('0xe')]['id']}})[_0x2758a3('0x5b')](handleEntityNotFound(_0x13ed97,null))[_0x2758a3('0x5b')](saveUpdates(_0x20b386[_0x2758a3('0x10c')],null))[_0x2758a3('0x5b')](respondWithResult(_0x13ed97,null))[_0x2758a3('0x139')](handleError(_0x13ed97,null));},exports['getAvatar']=function(_0x53e62a,_0x482e99){const _0x4f1ce8=_0x15d5b3,_0x2e20ee=path['join'](config[_0x4f1ce8('0x136')],_0x4f1ce8('0x1c'));return db['User'][_0x4f1ce8('0x12d')]({'where':{'id':_0x53e62a[_0x4f1ce8('0xe')]['id']},'attributes':['id',_0x4f1ce8('0x4c')],'raw':!![]})['then'](handleEntityNotFound(_0x482e99,null))['then'](function(_0x3d7032){const _0x36855d=_0x4f1ce8;if(_0x3d7032){if(_[_0x36855d('0x99')](_0x3d7032['userpic']))return _0x482e99['download'](_0x2e20ee);else{if(!fs['existsSync'](path[_0x36855d('0x119')](config[_0x36855d('0x136')],_0x36855d('0x10b'),_0x3d7032['userpic'])))return _0x482e99[_0x36855d('0x27')](_0x2e20ee);return _0x482e99[_0x36855d('0x27')](path[_0x36855d('0x119')](config['root'],'files/images/',_0x3d7032[_0x36855d('0x4c')]));}}})[_0x4f1ce8('0x139')](handleError(_0x482e99,null));},exports['getContacts']=function(_0x18cfdb,_0x230db9){const _0x338e43=_0x15d5b3;let _0x43a044={};const _0x108842={};let _0x4118f2,_0xb1e0cc;return db[_0x338e43('0xf1')][_0x338e43('0x12d')]({'where':{'id':_0x18cfdb['params']['id']}})['then'](handleEntityNotFound(_0x230db9,null))[_0x338e43('0x5b')](function(_0x3ab652){const _0x293e32=_0x338e43;if(_0x3ab652)return _0x4118f2=_0x3ab652,_0x108842[_0x293e32('0x142')]=_[_0x293e32('0x14e')](db[_0x293e32('0x8')][_0x293e32('0x13c')]),_0x108842['query']=_[_0x293e32('0x14e')](_0x18cfdb['query']),_0x108842[_0x293e32('0x38')]=_[_0x293e32('0xdf')](_0x108842[_0x293e32('0x142')],_0x108842[_0x293e32('0x97')]),_0x43a044[_0x293e32('0xd6')]=_['intersection'](_0x108842['model'],qs[_0x293e32('0x11')](_0x18cfdb[_0x293e32('0x97')]['fields'])),_0x43a044[_0x293e32('0xd6')]=_0x43a044[_0x293e32('0xd6')]['length']?_0x43a044[_0x293e32('0xd6')]:_0x108842[_0x293e32('0x142')],_0x43a044[_0x293e32('0xec')]=qs[_0x293e32('0x15c')](_0x18cfdb[_0x293e32('0x97')][_0x293e32('0x15c')]),_0x43a044[_0x293e32('0xbc')]=qs[_0x293e32('0x38')](_[_0x293e32('0x6d')](_0x18cfdb[_0x293e32('0x97')],_0x108842[_0x293e32('0x38')])),_0x18cfdb['query'][_0x293e32('0x138')]&&(_0x43a044[_0x293e32('0xbc')]=_[_0x293e32('0xf4')](_0x43a044[_0x293e32('0xbc')],{[Op['or']]:_[_0x293e32('0x58')](_0x43a044[_0x293e32('0xd6')],function(_0x5795dd){const _0x287fde=_0x293e32,_0x3a8020={};return _0x3a8020[_0x5795dd]={[Op[_0x287fde('0x13d')]]:'%'+_0x18cfdb[_0x287fde('0x97')][_0x287fde('0x138')]+'%'},_0x3a8020;})})),_0x43a044=_[_0x293e32('0xf4')]({},_0x43a044,_0x18cfdb['options']),_0x4118f2[_0x293e32('0x3a')](_0x43a044);})[_0x338e43('0x5b')](function(_0xf0ed1){const _0x89c0e2=_0x338e43;if(_0xf0ed1)return _0xb1e0cc=_0xf0ed1['length'],typeof _0x18cfdb[_0x89c0e2('0x97')][_0x89c0e2('0x117')]!==_0x89c0e2('0x6c')&&(_0x43a044[_0x89c0e2('0x39')]=[{'model':db[_0x89c0e2('0x5')],'as':_0x89c0e2('0x9b'),'required':![]},{'model':db[_0x89c0e2('0x98')],'as':'Tags','attributes':['id','name',_0x89c0e2('0x3')],'where':_0x18cfdb['query'][_0x89c0e2('0xbb')]?{'id':_0x18cfdb[_0x89c0e2('0x97')][_0x89c0e2('0xbb')]}:undefined,'required':_0x18cfdb['query'][_0x89c0e2('0xbb')]?!![]:![]}]),typeof _0x18cfdb['query'][_0x89c0e2('0x48')]===_0x89c0e2('0x6c')&&(_0x43a044[_0x89c0e2('0x7a')]=qs[_0x89c0e2('0x7a')](_0x18cfdb[_0x89c0e2('0x97')]['limit']),_0x43a044['offset']=qs[_0x89c0e2('0x12a')](_0x18cfdb[_0x89c0e2('0x97')][_0x89c0e2('0x12a')])),_0x4118f2[_0x89c0e2('0x3a')](_0x43a044);})[_0x338e43('0x5b')](function(_0x274686){if(_0x274686)return _0x274686?{'count':_0xb1e0cc,'rows':_0x274686}:null;})[_0x338e43('0x5b')](respondWithResult(_0x230db9,null))[_0x338e43('0x139')](handleError(_0x230db9,null));},exports[_0x15d5b3('0xc9')]=function(_0x4eabef,_0x181ec2){const _0xef4f52=_0x15d5b3;let _0x21187e,_0x4e2fa2={},_0x4292f8;return db[_0xef4f52('0xf1')][_0xef4f52('0x12d')]({'where':{'id':_0x4eabef[_0xef4f52('0xe')]['id']},'attributes':['id',_0xef4f52('0x32'),_0xef4f52('0x86')]})['then'](handleEntityNotFound(_0x181ec2,null))[_0xef4f52('0x5b')](function(_0x4ea584){const _0x258a6a=_0xef4f52;if(!utils[_0x258a6a('0x11a')](_0x4eabef[_0x258a6a('0x97')]['channel']))throw new ValidationError('Unknown\x20channel');_0x21187e=_0x4ea584;const _0x48be07={};_0x48be07['model']=_[_0x258a6a('0x14e')](db[_['capitalize'](_0x4eabef[_0x258a6a('0x97')][_0x258a6a('0x13a')])+'Queue']['rawAttributes']),_0x48be07[_0x258a6a('0x97')]=_['keys'](_0x4eabef[_0x258a6a('0x97')]),_0x48be07[_0x258a6a('0x38')]=_['intersection'](_0x48be07[_0x258a6a('0x142')],_0x48be07[_0x258a6a('0x97')]),_0x4e2fa2[_0x258a6a('0xd6')]=_['intersection'](_0x48be07[_0x258a6a('0x142')],qs['fields'](_0x4eabef[_0x258a6a('0x97')][_0x258a6a('0x11')])),_0x4e2fa2[_0x258a6a('0xd6')]=_0x4e2fa2[_0x258a6a('0xd6')]['length']?_0x4e2fa2[_0x258a6a('0xd6')]:_0x48be07[_0x258a6a('0x142')],_0x4e2fa2[_0x258a6a('0xec')]=qs['sort'](_0x4eabef[_0x258a6a('0x97')][_0x258a6a('0x15c')]),_0x4e2fa2[_0x258a6a('0xbc')]=qs['filters'](_[_0x258a6a('0x6d')](_0x4eabef[_0x258a6a('0x97')],_0x48be07[_0x258a6a('0x38')]));_0x4eabef['query'][_0x258a6a('0x138')]&&(_0x4e2fa2[_0x258a6a('0xbc')]=_[_0x258a6a('0xf4')](_0x4e2fa2[_0x258a6a('0xbc')],{[Op['or']]:_[_0x258a6a('0x58')](_0x4e2fa2['attributes'],function(_0x437278){const _0x23d7b1=_0x258a6a,_0x2692e5={};return _0x2692e5[_0x437278]={[Op['like']]:'%'+_0x4eabef[_0x23d7b1('0x97')]['filter']+'%'},_0x2692e5;})}));_0x4e2fa2=_[_0x258a6a('0xf4')]({},_0x4e2fa2,_0x4eabef['options']);switch(_0x21187e[_0x258a6a('0x86')]){case'admin':return db[_[_0x258a6a('0x83')](_0x4eabef[_0x258a6a('0x97')]['channel'])+_0x258a6a('0x50')]['findAll'](_0x4e2fa2);case _0x258a6a('0x5d'):case _0x258a6a('0x145'):return _0x21187e['get'+_[_0x258a6a('0x83')](_0x4eabef[_0x258a6a('0x97')][_0x258a6a('0x13a')])+_0x258a6a('0x134')](_0x4e2fa2);default:throw new ValidationError(_0x258a6a('0xf2'));}})[_0xef4f52('0x5b')](function(_0xd7b210){const _0x7343f2=_0xef4f52;_0x4292f8=_0xd7b210[_0x7343f2('0x12e')];typeof _0x4eabef['query'][_0x7343f2('0x48')]===_0x7343f2('0x6c')&&(_0x4e2fa2[_0x7343f2('0x7a')]=qs['limit'](_0x4eabef[_0x7343f2('0x97')][_0x7343f2('0x7a')]),_0x4e2fa2[_0x7343f2('0x12a')]=qs[_0x7343f2('0x12a')](_0x4eabef[_0x7343f2('0x97')]['offset']));switch(_0x21187e['role']){case _0x7343f2('0x66'):return db[_[_0x7343f2('0x83')](_0x4eabef[_0x7343f2('0x97')][_0x7343f2('0x13a')])+_0x7343f2('0x50')][_0x7343f2('0xeb')](_0x4e2fa2);case'user':case'agent':return _0x21187e[_0x7343f2('0x1e')+_[_0x7343f2('0x83')](_0x4eabef[_0x7343f2('0x97')][_0x7343f2('0x13a')])+_0x7343f2('0x134')](_0x4e2fa2);}})[_0xef4f52('0x5b')](function(_0x4c78a6){return{'count':_0x4292f8,'rows':_0x4c78a6};})[_0xef4f52('0x5b')](respondWithResult(_0x181ec2,null))['catch'](handleError(_0x181ec2,null));},exports[_0x15d5b3('0x4d')]=function(_0x4e0c83,_0x3f488a){const _0x472f63=_0x15d5b3;let _0xad0e05={};const _0x449ea9={};let _0x270c01,_0x16deb5;return db['User'][_0x472f63('0x12d')]({'where':{'id':_0x4e0c83[_0x472f63('0xe')]['id']}})[_0x472f63('0x5b')](handleEntityNotFound(_0x3f488a,null))[_0x472f63('0x5b')](function(_0x20cfd1){const _0x1f400a=_0x472f63;if(_0x20cfd1)return _0x270c01=_0x20cfd1,_0x449ea9[_0x1f400a('0x142')]=_['keys'](db[_0x1f400a('0x40')]['rawAttributes']),_0x449ea9[_0x1f400a('0x97')]=_[_0x1f400a('0x14e')](_0x4e0c83[_0x1f400a('0x97')]),_0x449ea9[_0x1f400a('0x38')]=_[_0x1f400a('0xdf')](_0x449ea9[_0x1f400a('0x142')],_0x449ea9[_0x1f400a('0x97')]),_0xad0e05[_0x1f400a('0xd6')]=_['intersection'](_0x449ea9[_0x1f400a('0x142')],qs[_0x1f400a('0x11')](_0x4e0c83['query'][_0x1f400a('0x11')])),_0xad0e05[_0x1f400a('0xd6')]=_0xad0e05[_0x1f400a('0xd6')]['length']?_0xad0e05[_0x1f400a('0xd6')]:_0x449ea9[_0x1f400a('0x142')],_0xad0e05[_0x1f400a('0xec')]=qs['sort'](_0x4e0c83[_0x1f400a('0x97')][_0x1f400a('0x15c')]),_0xad0e05['where']=qs[_0x1f400a('0x38')](_[_0x1f400a('0x6d')](_0x4e0c83[_0x1f400a('0x97')],_0x449ea9[_0x1f400a('0x38')])),_0x4e0c83[_0x1f400a('0x97')]['filter']&&(_0xad0e05[_0x1f400a('0xbc')]=_[_0x1f400a('0xf4')](_0xad0e05[_0x1f400a('0xbc')],{[Op['or']]:_[_0x1f400a('0x58')](_0xad0e05[_0x1f400a('0xd6')],function(_0x3f7852){const _0x55e8a3=_0x1f400a,_0x2d8587={};return _0x2d8587[_0x3f7852]={[Op[_0x55e8a3('0x13d')]]:'%'+_0x4e0c83[_0x55e8a3('0x97')]['filter']+'%'},_0x2d8587;})})),_0xad0e05=_[_0x1f400a('0xf4')]({},_0xad0e05,_0x4e0c83['options']),_0x270c01[_0x1f400a('0x4d')](_0xad0e05);})[_0x472f63('0x5b')](function(_0x48285b){const _0x521546=_0x472f63;if(_0x48285b)return _0x16deb5=_0x48285b[_0x521546('0x12e')],typeof _0x4e0c83[_0x521546('0x97')]['nolimit']===_0x521546('0x6c')&&(_0xad0e05[_0x521546('0x7a')]=qs[_0x521546('0x7a')](_0x4e0c83[_0x521546('0x97')][_0x521546('0x7a')]),_0xad0e05['offset']=qs[_0x521546('0x12a')](_0x4e0c83[_0x521546('0x97')]['offset'])),_0x270c01[_0x521546('0x4d')](_0xad0e05);})[_0x472f63('0x5b')](function(_0xe83e65){if(_0xe83e65)return _0xe83e65?{'count':_0x16deb5,'rows':_0xe83e65}:null;})[_0x472f63('0x5b')](respondWithResult(_0x3f488a,null))['catch'](handleError(_0x3f488a,null));},exports[_0x15d5b3('0x80')]=function(_0x31c6cd,_0x609017){const _0x25e46d=_0x15d5b3;let _0x468977={};const _0x541cfa={};let _0x2e45bb,_0xdacbc9;return db[_0x25e46d('0xf1')][_0x25e46d('0x12d')]({'where':{'id':_0x31c6cd[_0x25e46d('0xe')]['id']}})[_0x25e46d('0x5b')](handleEntityNotFound(_0x609017,null))['then'](function(_0x3c5270){const _0x5c9e5=_0x25e46d;if(_0x3c5270)return _0x2e45bb=_0x3c5270,_0x541cfa[_0x5c9e5('0x142')]=_[_0x5c9e5('0x14e')](db[_0x5c9e5('0x137')][_0x5c9e5('0x13c')]),_0x541cfa['query']=_[_0x5c9e5('0x14e')](_0x31c6cd[_0x5c9e5('0x97')]),_0x541cfa[_0x5c9e5('0x38')]=_[_0x5c9e5('0xdf')](_0x541cfa[_0x5c9e5('0x142')],_0x541cfa[_0x5c9e5('0x97')]),_0x468977[_0x5c9e5('0xd6')]=_[_0x5c9e5('0xdf')](_0x541cfa[_0x5c9e5('0x142')],qs[_0x5c9e5('0x11')](_0x31c6cd[_0x5c9e5('0x97')]['fields'])),_0x468977['attributes']=_0x468977[_0x5c9e5('0xd6')][_0x5c9e5('0x12e')]?_0x468977[_0x5c9e5('0xd6')]:_0x541cfa[_0x5c9e5('0x142')],_0x468977[_0x5c9e5('0xec')]=qs[_0x5c9e5('0x15c')](_0x31c6cd[_0x5c9e5('0x97')]['sort']),_0x468977[_0x5c9e5('0xbc')]=qs['filters'](_[_0x5c9e5('0x6d')](_0x31c6cd[_0x5c9e5('0x97')],_0x541cfa[_0x5c9e5('0x38')])),_0x31c6cd[_0x5c9e5('0x97')]['filter']&&(_0x468977[_0x5c9e5('0xbc')]=_[_0x5c9e5('0xf4')](_0x468977[_0x5c9e5('0xbc')],{[Op['or']]:_['map'](_0x468977['attributes'],function(_0x35e2d5){const _0x22d3b1=_0x5c9e5,_0xc11809={};return _0xc11809[_0x35e2d5]={[Op[_0x22d3b1('0x13d')]]:'%'+_0x31c6cd[_0x22d3b1('0x97')][_0x22d3b1('0x138')]+'%'},_0xc11809;})})),_0x468977=_[_0x5c9e5('0xf4')]({},_0x468977,_0x31c6cd['options']),_0x2e45bb[_0x5c9e5('0x80')](_0x468977);})[_0x25e46d('0x5b')](function(_0x28ad34){const _0x237fe0=_0x25e46d;if(_0x28ad34)return _0xdacbc9=_0x28ad34[_0x237fe0('0x12e')],typeof _0x31c6cd[_0x237fe0('0x97')][_0x237fe0('0x48')]===_0x237fe0('0x6c')&&(_0x468977['limit']=qs[_0x237fe0('0x7a')](_0x31c6cd[_0x237fe0('0x97')]['limit']),_0x468977[_0x237fe0('0x12a')]=qs[_0x237fe0('0x12a')](_0x31c6cd[_0x237fe0('0x97')][_0x237fe0('0x12a')])),_0x2e45bb[_0x237fe0('0x80')](_0x468977);})[_0x25e46d('0x5b')](function(_0xb24677){if(_0xb24677)return _0xb24677?{'count':_0xdacbc9,'rows':_0xb24677}:null;})['then'](respondWithResult(_0x609017,null))[_0x25e46d('0x139')](handleError(_0x609017,null));},exports[_0x15d5b3('0x47')]=function(_0x29fd25,_0x297b20){const _0x515afe=_0x15d5b3;let _0x1b81f2={'raw':!![],'where':{}};const _0x3659dd={},_0x7df45={'count':0x0,'rows':[]};return db[_0x515afe('0xf1')][_0x515afe('0x12d')]({'where':{'id':_0x29fd25[_0x515afe('0xe')]['id']}})['then'](handleEntityNotFound(_0x297b20,null))[_0x515afe('0x5b')](function(_0x6233df){const _0x1caf24=_0x515afe;if(_0x6233df)return _0x3659dd[_0x1caf24('0x142')]=_['keys'](db[_0x1caf24('0x9c')][_0x1caf24('0x13c')]),_0x3659dd['query']=_[_0x1caf24('0x14e')](_0x29fd25[_0x1caf24('0x97')]),_0x3659dd[_0x1caf24('0x38')]=_[_0x1caf24('0xdf')](_0x3659dd[_0x1caf24('0x142')],_0x3659dd[_0x1caf24('0x97')]),_0x1b81f2['attributes']=_[_0x1caf24('0xdf')](_0x3659dd['model'],qs[_0x1caf24('0x11')](_0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x11')])),_0x1b81f2[_0x1caf24('0xd6')]=_0x1b81f2[_0x1caf24('0xd6')][_0x1caf24('0x12e')]?_0x1b81f2[_0x1caf24('0xd6')]:_0x3659dd[_0x1caf24('0x142')],typeof _0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x48')]==='undefined'&&(_0x1b81f2[_0x1caf24('0x7a')]=qs['limit'](_0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x7a')]),_0x1b81f2[_0x1caf24('0x12a')]=qs[_0x1caf24('0x12a')](_0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x12a')])),_0x1b81f2[_0x1caf24('0xec')]=qs[_0x1caf24('0x15c')](_0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x15c')]),_0x1b81f2[_0x1caf24('0xbc')]=qs[_0x1caf24('0x38')](_[_0x1caf24('0x6d')](_0x29fd25['query'],_0x3659dd[_0x1caf24('0x38')])),_0x1b81f2[_0x1caf24('0xbc')][_0x1caf24('0x13f')]=_0x6233df['id'],_0x29fd25[_0x1caf24('0x97')][_0x1caf24('0x138')]&&(_0x1b81f2[_0x1caf24('0xbc')]=_[_0x1caf24('0xf4')](_0x1b81f2[_0x1caf24('0xbc')],{[Op['or']]:_['map'](_0x1b81f2[_0x1caf24('0xd6')],function(_0xe5bef8){const _0xd8fff8=_0x1caf24,_0x3c15be={};return _0x3c15be[_0xe5bef8]={[Op[_0xd8fff8('0x13d')]]:'%'+_0x29fd25[_0xd8fff8('0x97')][_0xd8fff8('0x138')]+'%'},_0x3c15be;})})),_0x1b81f2=_[_0x1caf24('0xf4')]({},_0x1b81f2,_0x29fd25['options']),db[_0x1caf24('0x9c')][_0x1caf24('0xf0')]({'where':_0x1b81f2['where']})[_0x1caf24('0x5b')](function(_0x410577){const _0x32accc=_0x1caf24;return _0x7df45[_0x32accc('0xf0')]=_0x410577,_0x29fd25[_0x32accc('0x97')]['includeAll']&&(_0x1b81f2['include']=[{'all':!![]}]),db[_0x32accc('0x9c')]['findAll'](_0x1b81f2);})['then'](function(_0x187b44){const _0x5cfd15=_0x1caf24;return _0x7df45[_0x5cfd15('0x110')]=_0x187b44,_0x7df45;});})[_0x515afe('0x5b')](respondWithFilteredResult(_0x297b20,_0x1b81f2))[_0x515afe('0x139')](handleError(_0x297b20,null));},exports[_0x15d5b3('0xb0')]=function(_0x55ebae,_0xd46bee){const _0x33eafc=_0x15d5b3;let _0x4b021f={'raw':!![],'where':{}};const _0x1f1f78={},_0x35dab3={'count':0x0,'rows':[]};return db['User']['findOne']({'where':{'id':_0x55ebae[_0x33eafc('0xe')]['id']}})[_0x33eafc('0x5b')](handleEntityNotFound(_0xd46bee,null))[_0x33eafc('0x5b')](function(_0x34dc3e){const _0x34b942=_0x33eafc;if(_0x34dc3e)return _0x1f1f78['model']=_[_0x34b942('0x14e')](db[_0x34b942('0x13')][_0x34b942('0x13c')]),_0x1f1f78[_0x34b942('0x97')]=_[_0x34b942('0x14e')](_0x55ebae[_0x34b942('0x97')]),_0x1f1f78['filters']=_[_0x34b942('0xdf')](_0x1f1f78[_0x34b942('0x142')],_0x1f1f78[_0x34b942('0x97')]),_0x4b021f[_0x34b942('0xd6')]=_[_0x34b942('0xdf')](_0x1f1f78[_0x34b942('0x142')],qs['fields'](_0x55ebae[_0x34b942('0x97')][_0x34b942('0x11')])),_0x4b021f['attributes']=_0x4b021f[_0x34b942('0xd6')]['length']?_0x4b021f[_0x34b942('0xd6')]:_0x1f1f78[_0x34b942('0x142')],typeof _0x55ebae['query'][_0x34b942('0x48')]===_0x34b942('0x6c')&&(_0x4b021f['limit']=qs[_0x34b942('0x7a')](_0x55ebae['query'][_0x34b942('0x7a')]),_0x4b021f[_0x34b942('0x12a')]=qs[_0x34b942('0x12a')](_0x55ebae[_0x34b942('0x97')][_0x34b942('0x12a')])),_0x4b021f[_0x34b942('0xec')]=qs[_0x34b942('0x15c')](_0x55ebae[_0x34b942('0x97')][_0x34b942('0x15c')]),_0x4b021f[_0x34b942('0xbc')]=qs[_0x34b942('0x38')](_['pick'](_0x55ebae[_0x34b942('0x97')],_0x1f1f78['filters'])),_0x4b021f[_0x34b942('0xbc')]['UserId']=_0x34dc3e['id'],_0x55ebae['query']['filter']&&(_0x4b021f[_0x34b942('0xbc')]=_['merge'](_0x4b021f['where'],{[Op['or']]:_['map'](_0x4b021f[_0x34b942('0xd6')],function(_0x457903){const _0x355eaa=_0x34b942,_0x34e031={};return _0x34e031[_0x457903]={[Op[_0x355eaa('0x13d')]]:'%'+_0x55ebae[_0x355eaa('0x97')][_0x355eaa('0x138')]+'%'},_0x34e031;})})),_0x4b021f=_['merge']({},_0x4b021f,_0x55ebae[_0x34b942('0xf5')]),db[_0x34b942('0x13')][_0x34b942('0xf0')]({'where':_0x4b021f['where']})['then'](function(_0x50b46c){const _0x10b650=_0x34b942;return _0x35dab3[_0x10b650('0xf0')]=_0x50b46c,_0x55ebae[_0x10b650('0x97')][_0x10b650('0x117')]&&(_0x4b021f[_0x10b650('0x39')]=[{'all':!![]}]),db['ScreenRecording']['findAll'](_0x4b021f);})[_0x34b942('0x5b')](function(_0x74669){const _0x1ab134=_0x34b942;return _0x35dab3[_0x1ab134('0x110')]=_0x74669,_0x35dab3;});})['then'](respondWithFilteredResult(_0xd46bee,_0x4b021f))[_0x33eafc('0x139')](handleError(_0xd46bee,null));},exports[_0x15d5b3('0x132')]=function(_0x4b8f88,_0x59de8d){const _0x59603a=_0x15d5b3;let _0x2709c2={};const _0x2e7011={};let _0x21f67b,_0x499192;return db[_0x59603a('0xf1')][_0x59603a('0x12d')]({'where':{'id':_0x4b8f88['params']['id']}})[_0x59603a('0x5b')](handleEntityNotFound(_0x59de8d,null))[_0x59603a('0x5b')](function(_0x345c2c){const _0x217fe6=_0x59603a;if(_0x345c2c)return _0x21f67b=_0x345c2c,_0x2e7011[_0x217fe6('0x142')]=_[_0x217fe6('0x14e')](db['ChatInteraction'][_0x217fe6('0x13c')]),_0x2e7011[_0x217fe6('0x97')]=_['keys'](_0x4b8f88[_0x217fe6('0x97')]),_0x2e7011[_0x217fe6('0x38')]=_['intersection'](_0x2e7011[_0x217fe6('0x142')],_0x2e7011[_0x217fe6('0x97')]),_0x2709c2['attributes']=_[_0x217fe6('0xdf')](_0x2e7011[_0x217fe6('0x142')],qs[_0x217fe6('0x11')](_0x4b8f88['query'][_0x217fe6('0x11')])),_0x2709c2['attributes']=_0x2709c2['attributes'][_0x217fe6('0x12e')]?_0x2709c2[_0x217fe6('0xd6')]:_0x2e7011['model'],_0x2709c2['order']=qs[_0x217fe6('0x15c')](_0x4b8f88[_0x217fe6('0x97')]['sort']),_0x2709c2['where']=qs[_0x217fe6('0x38')](_[_0x217fe6('0x6d')](_0x4b8f88[_0x217fe6('0x97')],_0x2e7011[_0x217fe6('0x38')])),_0x4b8f88[_0x217fe6('0x97')]['filter']&&(_0x2709c2[_0x217fe6('0xbc')]=_[_0x217fe6('0xf4')](_0x2709c2[_0x217fe6('0xbc')],{[Op['or']]:_[_0x217fe6('0x58')](_0x2709c2[_0x217fe6('0xd6')],function(_0xd23999){const _0x8976e7=_0x217fe6,_0x1f7882={};return _0x1f7882[_0xd23999]={[Op[_0x8976e7('0x13d')]]:'%'+_0x4b8f88[_0x8976e7('0x97')][_0x8976e7('0x138')]+'%'},_0x1f7882;})})),_0x2709c2=_['merge']({},_0x2709c2,_0x4b8f88[_0x217fe6('0xf5')]),_0x21f67b['getChatInteractions'](_0x2709c2);})[_0x59603a('0x5b')](function(_0x49099a){const _0x4bfeb4=_0x59603a;if(_0x49099a)return _0x499192=_0x49099a[_0x4bfeb4('0x12e')],typeof _0x4b8f88[_0x4bfeb4('0x97')][_0x4bfeb4('0x48')]===_0x4bfeb4('0x6c')&&(_0x2709c2['limit']=qs['limit'](_0x4b8f88[_0x4bfeb4('0x97')]['limit']),_0x2709c2['offset']=qs[_0x4bfeb4('0x12a')](_0x4b8f88[_0x4bfeb4('0x97')][_0x4bfeb4('0x12a')])),_0x21f67b[_0x4bfeb4('0x132')](_0x2709c2);})[_0x59603a('0x5b')](function(_0x546294){if(_0x546294)return _0x546294?{'count':_0x499192,'rows':_0x546294}:null;})[_0x59603a('0x5b')](respondWithResult(_0x59de8d,null))['catch'](handleError(_0x59de8d,null));},exports['getOpenchannelInteractions']=function(_0x408002,_0x5c0499){const _0x3d9c0b=_0x15d5b3;let _0x390da6={};const _0x50e775={};let _0x580b6b,_0xa1fe25;return db[_0x3d9c0b('0xf1')][_0x3d9c0b('0x12d')]({'where':{'id':_0x408002[_0x3d9c0b('0xe')]['id']}})[_0x3d9c0b('0x5b')](handleEntityNotFound(_0x5c0499,null))[_0x3d9c0b('0x5b')](function(_0x98840f){const _0x50328e=_0x3d9c0b;if(_0x98840f)return _0x580b6b=_0x98840f,_0x50e775['model']=_['keys'](db[_0x50328e('0x70')][_0x50328e('0x13c')]),_0x50e775[_0x50328e('0x97')]=_[_0x50328e('0x14e')](_0x408002[_0x50328e('0x97')]),_0x50e775[_0x50328e('0x38')]=_['intersection'](_0x50e775[_0x50328e('0x142')],_0x50e775[_0x50328e('0x97')]),_0x390da6[_0x50328e('0xd6')]=_[_0x50328e('0xdf')](_0x50e775[_0x50328e('0x142')],qs[_0x50328e('0x11')](_0x408002[_0x50328e('0x97')]['fields'])),_0x390da6[_0x50328e('0xd6')]=_0x390da6[_0x50328e('0xd6')][_0x50328e('0x12e')]?_0x390da6[_0x50328e('0xd6')]:_0x50e775[_0x50328e('0x142')],_0x390da6['order']=qs[_0x50328e('0x15c')](_0x408002[_0x50328e('0x97')][_0x50328e('0x15c')]),_0x390da6[_0x50328e('0xbc')]=qs[_0x50328e('0x38')](_[_0x50328e('0x6d')](_0x408002[_0x50328e('0x97')],_0x50e775[_0x50328e('0x38')])),_0x408002[_0x50328e('0x97')][_0x50328e('0x138')]&&(_0x390da6[_0x50328e('0xbc')]=_['merge'](_0x390da6[_0x50328e('0xbc')],{[Op['or']]:_[_0x50328e('0x58')](_0x390da6[_0x50328e('0xd6')],function(_0x34d7f0){const _0x1d2f64=_0x50328e,_0x8bcc66={};return _0x8bcc66[_0x34d7f0]={[Op[_0x1d2f64('0x13d')]]:'%'+_0x408002['query'][_0x1d2f64('0x138')]+'%'},_0x8bcc66;})})),_0x390da6=_[_0x50328e('0xf4')]({},_0x390da6,_0x408002[_0x50328e('0xf5')]),_0x580b6b[_0x50328e('0x123')](_0x390da6);})[_0x3d9c0b('0x5b')](function(_0x5f57ff){const _0x107aa4=_0x3d9c0b;if(_0x5f57ff)return _0xa1fe25=_0x5f57ff[_0x107aa4('0x12e')],typeof _0x408002[_0x107aa4('0x97')][_0x107aa4('0x48')]===_0x107aa4('0x6c')&&(_0x390da6[_0x107aa4('0x7a')]=qs['limit'](_0x408002[_0x107aa4('0x97')][_0x107aa4('0x7a')]),_0x390da6[_0x107aa4('0x12a')]=qs['offset'](_0x408002[_0x107aa4('0x97')][_0x107aa4('0x12a')])),_0x580b6b['getOpenchannelInteractions'](_0x390da6);})['then'](function(_0x566ef0){if(_0x566ef0)return _0x566ef0?{'count':_0xa1fe25,'rows':_0x566ef0}:null;})[_0x3d9c0b('0x5b')](respondWithResult(_0x5c0499,null))[_0x3d9c0b('0x139')](handleError(_0x5c0499,null));},exports[_0x15d5b3('0xfd')]=function(_0x2fa5ec,_0x2e089b){const _0x34793f=_0x15d5b3;let _0x1e7307={'raw':!![],'where':{}};const _0x299c52={},_0x52b22d={'count':0x0,'rows':[]};return db[_0x34793f('0xf1')]['findOne']({'where':{'id':_0x2fa5ec[_0x34793f('0xe')]['id']}})[_0x34793f('0x5b')](handleEntityNotFound(_0x2e089b,null))[_0x34793f('0x5b')](function(_0x3eee1a){const _0x413323=_0x34793f;if(_0x3eee1a)return _0x299c52[_0x413323('0x142')]=_[_0x413323('0x14e')](db['MailInteraction']['rawAttributes']),_0x299c52[_0x413323('0x97')]=_[_0x413323('0x14e')](_0x2fa5ec['query']),_0x299c52[_0x413323('0x38')]=_['intersection'](_0x299c52[_0x413323('0x142')],_0x299c52['query']),_0x1e7307[_0x413323('0xd6')]=_[_0x413323('0xdf')](_0x299c52['model'],qs['fields'](_0x2fa5ec['query'][_0x413323('0x11')])),_0x1e7307[_0x413323('0xd6')]=_0x1e7307[_0x413323('0xd6')][_0x413323('0x12e')]?_0x1e7307[_0x413323('0xd6')]:_0x299c52[_0x413323('0x142')],typeof _0x2fa5ec[_0x413323('0x97')]['nolimit']==='undefined'&&(_0x1e7307[_0x413323('0x7a')]=qs[_0x413323('0x7a')](_0x2fa5ec[_0x413323('0x97')][_0x413323('0x7a')]),_0x1e7307[_0x413323('0x12a')]=qs[_0x413323('0x12a')](_0x2fa5ec[_0x413323('0x97')][_0x413323('0x12a')])),_0x1e7307['order']=qs[_0x413323('0x15c')](_0x2fa5ec[_0x413323('0x97')][_0x413323('0x15c')]),_0x1e7307['where']=qs[_0x413323('0x38')](_[_0x413323('0x6d')](_0x2fa5ec[_0x413323('0x97')],_0x299c52[_0x413323('0x38')])),_0x1e7307[_0x413323('0xbc')][_0x413323('0x13f')]=_0x3eee1a['id'],_0x2fa5ec[_0x413323('0x97')][_0x413323('0x138')]&&(_0x1e7307[_0x413323('0xbc')]=_['merge'](_0x1e7307[_0x413323('0xbc')],{[Op['or']]:_['map'](_0x1e7307[_0x413323('0xd6')],function(_0x11cc00){const _0x235a46=_0x413323,_0x3fd997={};return _0x3fd997[_0x11cc00]={[Op[_0x235a46('0x13d')]]:'%'+_0x2fa5ec[_0x235a46('0x97')][_0x235a46('0x138')]+'%'},_0x3fd997;})})),_0x1e7307=_[_0x413323('0xf4')]({},_0x1e7307,_0x2fa5ec[_0x413323('0xf5')]),db[_0x413323('0xc8')][_0x413323('0xf0')]({'where':_0x1e7307[_0x413323('0xbc')]})[_0x413323('0x5b')](function(_0x55baf6){const _0x41689d=_0x413323;return _0x52b22d[_0x41689d('0xf0')]=_0x55baf6,_0x2fa5ec['query'][_0x41689d('0x117')]&&(_0x1e7307[_0x41689d('0x39')]=[{'all':!![]}]),db[_0x41689d('0xc8')][_0x41689d('0xeb')](_0x1e7307);})[_0x413323('0x5b')](function(_0x5d9a84){const _0x2c504e=_0x413323;return _0x52b22d[_0x2c504e('0x110')]=_0x5d9a84,_0x52b22d;});})[_0x34793f('0x5b')](respondWithFilteredResult(_0x2e089b,_0x1e7307))[_0x34793f('0x139')](handleError(_0x2e089b,null));},exports['getSmsInteractions']=function(_0x52fe39,_0x1cc346){const _0x652d63=_0x15d5b3;let _0x36d14f={};const _0x55cb96={};let _0x43ef79,_0x2f341d;return db[_0x652d63('0xf1')][_0x652d63('0x12d')]({'where':{'id':_0x52fe39[_0x652d63('0xe')]['id']}})['then'](handleEntityNotFound(_0x1cc346,null))[_0x652d63('0x5b')](function(_0x575b55){const _0x2c328c=_0x652d63;if(_0x575b55)return _0x43ef79=_0x575b55,_0x55cb96[_0x2c328c('0x142')]=_['keys'](db[_0x2c328c('0x44')][_0x2c328c('0x13c')]),_0x55cb96[_0x2c328c('0x97')]=_[_0x2c328c('0x14e')](_0x52fe39[_0x2c328c('0x97')]),_0x55cb96[_0x2c328c('0x38')]=_[_0x2c328c('0xdf')](_0x55cb96[_0x2c328c('0x142')],_0x55cb96[_0x2c328c('0x97')]),_0x36d14f[_0x2c328c('0xd6')]=_['intersection'](_0x55cb96[_0x2c328c('0x142')],qs[_0x2c328c('0x11')](_0x52fe39[_0x2c328c('0x97')][_0x2c328c('0x11')])),_0x36d14f['attributes']=_0x36d14f[_0x2c328c('0xd6')][_0x2c328c('0x12e')]?_0x36d14f[_0x2c328c('0xd6')]:_0x55cb96[_0x2c328c('0x142')],_0x36d14f[_0x2c328c('0xec')]=qs[_0x2c328c('0x15c')](_0x52fe39[_0x2c328c('0x97')]['sort']),_0x36d14f[_0x2c328c('0xbc')]=qs[_0x2c328c('0x38')](_[_0x2c328c('0x6d')](_0x52fe39['query'],_0x55cb96[_0x2c328c('0x38')])),_0x52fe39[_0x2c328c('0x97')][_0x2c328c('0x138')]&&(_0x36d14f[_0x2c328c('0xbc')]=_[_0x2c328c('0xf4')](_0x36d14f[_0x2c328c('0xbc')],{[Op['or']]:_[_0x2c328c('0x58')](_0x36d14f['attributes'],function(_0x51ecfb){const _0x51e98e=_0x2c328c,_0x42d1ea={};return _0x42d1ea[_0x51ecfb]={[Op['like']]:'%'+_0x52fe39[_0x51e98e('0x97')][_0x51e98e('0x138')]+'%'},_0x42d1ea;})})),_0x36d14f=_[_0x2c328c('0xf4')]({},_0x36d14f,_0x52fe39[_0x2c328c('0xf5')]),_0x43ef79[_0x2c328c('0xb2')](_0x36d14f);})[_0x652d63('0x5b')](function(_0x22c8cd){const _0x2f0261=_0x652d63;if(_0x22c8cd)return _0x2f341d=_0x22c8cd['length'],typeof _0x52fe39['query'][_0x2f0261('0x48')]==='undefined'&&(_0x36d14f[_0x2f0261('0x7a')]=qs[_0x2f0261('0x7a')](_0x52fe39[_0x2f0261('0x97')][_0x2f0261('0x7a')]),_0x36d14f[_0x2f0261('0x12a')]=qs[_0x2f0261('0x12a')](_0x52fe39['query']['offset'])),_0x43ef79[_0x2f0261('0xb2')](_0x36d14f);})[_0x652d63('0x5b')](function(_0x47dcc8){if(_0x47dcc8)return _0x47dcc8?{'count':_0x2f341d,'rows':_0x47dcc8}:null;})[_0x652d63('0x5b')](respondWithResult(_0x1cc346,null))['catch'](handleError(_0x1cc346,null));},exports[_0x15d5b3('0xce')]=function(_0x402a4f,_0x48d408){const _0xb54038=_0x15d5b3;let _0x48957f={};const _0x4a6151={};let _0x3e2f45,_0x29f93f;return db[_0xb54038('0xf1')][_0xb54038('0x12d')]({'where':{'id':_0x402a4f[_0xb54038('0xe')]['id']}})[_0xb54038('0x5b')](handleEntityNotFound(_0x48d408,null))[_0xb54038('0x5b')](function(_0x57e2b8){const _0x4a4214=_0xb54038;if(_0x57e2b8)return _0x3e2f45=_0x57e2b8,_0x4a6151[_0x4a4214('0x142')]=_[_0x4a4214('0x14e')](db[_0x4a4214('0xd8')][_0x4a4214('0x13c')]),_0x4a6151[_0x4a4214('0x97')]=_[_0x4a4214('0x14e')](_0x402a4f[_0x4a4214('0x97')]),_0x4a6151['filters']=_[_0x4a4214('0xdf')](_0x4a6151['model'],_0x4a6151['query']),_0x48957f['attributes']=_[_0x4a4214('0xdf')](_0x4a6151[_0x4a4214('0x142')],qs[_0x4a4214('0x11')](_0x402a4f[_0x4a4214('0x97')][_0x4a4214('0x11')])),_0x48957f[_0x4a4214('0xd6')]=_0x48957f[_0x4a4214('0xd6')][_0x4a4214('0x12e')]?_0x48957f[_0x4a4214('0xd6')]:_0x4a6151[_0x4a4214('0x142')],_0x48957f[_0x4a4214('0xec')]=qs[_0x4a4214('0x15c')](_0x402a4f[_0x4a4214('0x97')]['sort']),_0x48957f[_0x4a4214('0xbc')]=qs[_0x4a4214('0x38')](_['pick'](_0x402a4f['query'],_0x4a6151[_0x4a4214('0x38')])),_0x402a4f[_0x4a4214('0x97')][_0x4a4214('0x138')]&&(_0x48957f[_0x4a4214('0xbc')]=_[_0x4a4214('0xf4')](_0x48957f[_0x4a4214('0xbc')],{[Op['or']]:_['map'](_0x48957f[_0x4a4214('0xd6')],function(_0x77657e){const _0x218a92=_0x4a4214,_0x31098d={};return _0x31098d[_0x77657e]={[Op[_0x218a92('0x13d')]]:'%'+_0x402a4f[_0x218a92('0x97')][_0x218a92('0x138')]+'%'},_0x31098d;})})),_0x48957f=_[_0x4a4214('0xf4')]({},_0x48957f,_0x402a4f['options']),_0x3e2f45[_0x4a4214('0xce')](_0x48957f);})['then'](function(_0x148a67){const _0x897137=_0xb54038;if(_0x148a67)return _0x29f93f=_0x148a67[_0x897137('0x12e')],typeof _0x402a4f[_0x897137('0x97')]['nolimit']==='undefined'&&(_0x48957f['limit']=qs[_0x897137('0x7a')](_0x402a4f[_0x897137('0x97')][_0x897137('0x7a')]),_0x48957f[_0x897137('0x12a')]=qs['offset'](_0x402a4f['query'][_0x897137('0x12a')])),_0x3e2f45[_0x897137('0xce')](_0x48957f);})[_0xb54038('0x5b')](function(_0xc75d93){if(_0xc75d93)return _0xc75d93?{'count':_0x29f93f,'rows':_0xc75d93}:null;})[_0xb54038('0x5b')](respondWithResult(_0x48d408,null))[_0xb54038('0x139')](handleError(_0x48d408,null));},exports[_0x15d5b3('0x14f')]=function(_0x1598d7,_0x3fc11a){const _0x24d494=_0x15d5b3;let _0xbdbe88={};const _0x426aec={};let _0x40ffbf,_0x456158;return db[_0x24d494('0xf1')][_0x24d494('0x12d')]({'where':{'id':_0x1598d7[_0x24d494('0xe')]['id']}})[_0x24d494('0x5b')](handleEntityNotFound(_0x3fc11a,null))['then'](function(_0x4b4b0c){const _0x20cdde=_0x24d494;if(_0x4b4b0c)return _0x40ffbf=_0x4b4b0c,_0x426aec['model']=_[_0x20cdde('0x14e')](db[_0x20cdde('0xd4')][_0x20cdde('0x13c')]),_0x426aec[_0x20cdde('0x97')]=_[_0x20cdde('0x14e')](_0x1598d7[_0x20cdde('0x97')]),_0x426aec[_0x20cdde('0x38')]=_[_0x20cdde('0xdf')](_0x426aec[_0x20cdde('0x142')],_0x426aec[_0x20cdde('0x97')]),_0xbdbe88['attributes']=_[_0x20cdde('0xdf')](_0x426aec['model'],qs['fields'](_0x1598d7['query'][_0x20cdde('0x11')])),_0xbdbe88['attributes']=_0xbdbe88[_0x20cdde('0xd6')]['length']?_0xbdbe88['attributes']:_0x426aec[_0x20cdde('0x142')],_0xbdbe88[_0x20cdde('0xec')]=qs[_0x20cdde('0x15c')](_0x1598d7[_0x20cdde('0x97')][_0x20cdde('0x15c')]),_0xbdbe88[_0x20cdde('0xbc')]=qs[_0x20cdde('0x38')](_['pick'](_0x1598d7[_0x20cdde('0x97')],_0x426aec[_0x20cdde('0x38')])),_0x1598d7[_0x20cdde('0x97')]['filter']&&(_0xbdbe88[_0x20cdde('0xbc')]=_[_0x20cdde('0xf4')](_0xbdbe88[_0x20cdde('0xbc')],{[Op['or']]:_[_0x20cdde('0x58')](_0xbdbe88[_0x20cdde('0xd6')],function(_0x5d0270){const _0x4c058a=_0x20cdde,_0x4c5869={};return _0x4c5869[_0x5d0270]={[Op['like']]:'%'+_0x1598d7['query'][_0x4c058a('0x138')]+'%'},_0x4c5869;})})),_0xbdbe88=_[_0x20cdde('0xf4')]({},_0xbdbe88,_0x1598d7['options']),_0x40ffbf[_0x20cdde('0x14f')](_0xbdbe88);})[_0x24d494('0x5b')](function(_0x567d34){const _0x1a5e06=_0x24d494;if(_0x567d34)return _0x456158=_0x567d34['length'],typeof _0x1598d7[_0x1a5e06('0x97')][_0x1a5e06('0x48')]==='undefined'&&(_0xbdbe88['limit']=qs[_0x1a5e06('0x7a')](_0x1598d7['query'][_0x1a5e06('0x7a')]),_0xbdbe88[_0x1a5e06('0x12a')]=qs[_0x1a5e06('0x12a')](_0x1598d7['query'][_0x1a5e06('0x12a')])),_0x40ffbf['getWhatsappInteractions'](_0xbdbe88);})[_0x24d494('0x5b')](function(_0x233719){if(_0x233719)return _0x233719?{'count':_0x456158,'rows':_0x233719}:null;})[_0x24d494('0x5b')](respondWithResult(_0x3fc11a,null))[_0x24d494('0x139')](handleError(_0x3fc11a,null));},exports[_0x15d5b3('0xef')]=function(_0x595157,_0x62ba17,_0x321ff1){const _0x58acb9=_0x15d5b3;let _0x1d9d18,_0x40ea67,_0x1e7847;const _0x446799=!_['isNil'](_0x595157[_0x58acb9('0xe')]['id'])?_0x595157[_0x58acb9('0xe')]['id']:!_[_0x58acb9('0x99')](_0x595157['user']['id'])?_0x595157['user']['id']:null;return db[_0x58acb9('0xf1')]['findOne']({'where':{'id':_0x446799,'role':{[Op['or']]:[_0x58acb9('0x66'),_0x58acb9('0x5d'),_0x58acb9('0x145')]}},'attributes':['id',_0x58acb9('0x32'),'phone',_0x58acb9('0xa7'),_0x58acb9('0x86'),_0x58acb9('0x2d'),_0x58acb9('0x127')]})[_0x58acb9('0x5b')](function(_0x10e829){const _0x221a70=_0x58acb9;if(_0x10e829){if(_0x10e829[_0x221a70('0x86')]===_0x221a70('0x145')){_0x1d9d18=_0x10e829;if(_0x595157[_0x221a70('0x10c')][_0x221a70('0x45')])_0x1e7847=util[_0x221a70('0xb8')]('LOCAL/%s@from-sip/n',_0x1d9d18[_0x595157[_0x221a70('0x10c')][_0x221a70('0x45')]]);else _0x595157['body'][_0x221a70('0x88')]?_0x1e7847=util[_0x221a70('0xb8')](_0x221a70('0x61'),_0x595157['body'][_0x221a70('0x88')]):_0x1e7847=util[_0x221a70('0xb8')](_0x221a70('0x61'),_0x1d9d18[_0x221a70('0x32')]);return socket['to'](util['format']('user:%s',_0x1d9d18['name']))[_0x221a70('0xea')]('user:forcelogout',{'ip':_0x595157[_0x221a70('0x62')]['x-forwarded-for']||_0x595157[_0x221a70('0x152')][_0x221a70('0x94')]||_0x595157[_0x221a70('0x2e')][_0x221a70('0x94')]||_0x595157[_0x221a70('0x152')][_0x221a70('0x2e')][_0x221a70('0x94')]}),db[_0x221a70('0x40')][_0x221a70('0xe3')]({'where':{'membername':_0x1d9d18[_0x221a70('0x32')]},'individualHooks':!![]});}}else throw new ValidationError(_0x221a70('0x12b'));})[_0x58acb9('0x5b')](function(){const _0x42dd36=_0x58acb9;if(_0x1d9d18)return _0x1d9d18[_0x42dd36('0x72')]({'raw':!![]});})[_0x58acb9('0x5b')](function(_0x393823){const _0x49eb20=_0x58acb9;if(_0x1d9d18){if(_0x393823){_0x40ea67=_0x393823;if(_0x40ea67[_0x49eb20('0x12e')]){const _0xde5cfb=_0x40ea67[_0x49eb20('0x58')](_0x3de0e2=>{const _0x5c510d=_0x49eb20,_0x4147a4={'membername':_0x1d9d18[_0x5c510d('0x32')],'UserId':_0x1d9d18['id'],'queue_name':_0x3de0e2[_0x5c510d('0x32')],'VoiceQueueId':_0x3de0e2['id'],'interface':_0x1e7847,'paused':_0x1d9d18[_0x5c510d('0x127')]||![],'penalty':_0x3de0e2['UserVoiceQueue.penalty']||0x0};return db[_0x5c510d('0x40')][_0x5c510d('0xe7')](_0x4147a4);});return Promise[_0x49eb20('0x77')](_0xde5cfb);}}}})[_0x58acb9('0x5b')](function(){const _0x1082bb=_0x58acb9;if(_0x1d9d18)return db[_0x1082bb('0x100')][_0x1082bb('0xeb')]({'where':{'membername':_0x1d9d18[_0x1082bb('0x32')],'exitAt':null}});})['then'](function(_0x1fbf4f){const _0x2cac67=_0x58acb9;if(_0x1d9d18){const _0x2de7bc=[];return _0x1fbf4f[_0x2cac67('0x129')](function(_0x1bb040){const _0x1263bc=_0x2cac67;_0x2de7bc[_0x1263bc('0x67')](_0x1bb040[_0x1263bc('0xfc')]({'exitAt':moment()[_0x1263bc('0xb8')](_0x1263bc('0xac'))}));}),Promise[_0x2cac67('0x77')](_0x2de7bc);}})[_0x58acb9('0x5b')](function(){const _0x21882d=_0x58acb9;if(_0x1d9d18){const _0x508b41=[],_0x324282=[],_0x487c86=utils[_0x21882d('0xd3')](),_0x10ef32={'membername':_0x1d9d18[_0x21882d('0x32')],'interface':_0x1e7847,'enterAt':moment()[_0x21882d('0xb8')](_0x21882d('0xac')),'role':_0x1d9d18['role'],'internal':_0x1d9d18[_0x21882d('0x2d')]};return _0x487c86[_0x21882d('0x129')](function(_0x559eeb){const _0x3fb05c=_0x21882d;_0x508b41[_0x3fb05c('0x67')](_[_0x3fb05c('0xf4')]({'channel':_0x559eeb,'type':'LOGIN','data1':_0x595157[_0x3fb05c('0x10c')][_0x3fb05c('0xcc')],'data2':_0x1e7847},_0x10ef32)),_0x1d9d18[_0x3fb05c('0x127')]&&_0x324282[_0x3fb05c('0x67')](_[_0x3fb05c('0xf4')]({'channel':_0x559eeb,'type':_0x3fb05c('0xe5'),'data1':_0x3fb05c('0x23')},_0x10ef32));}),db[_0x21882d('0x100')][_0x21882d('0xf3')](_0x508b41[_0x21882d('0x19')](_0x324282),{'individualHooks':!![]});}})['then'](function(){const _0x2994cf=_0x58acb9;if(_0x1d9d18)return _0x1d9d18[_0x2994cf('0xfc')]({'online':!![],'lastLoginAt':moment()[_0x2994cf('0xb8')](_0x2994cf('0xac')),'voicePause':_0x1d9d18[_0x2994cf('0x127')]||![],'mailPause':_0x1d9d18[_0x2994cf('0x127')]||![],'chatPause':_0x1d9d18[_0x2994cf('0x127')]||![],'faxPause':_0x1d9d18[_0x2994cf('0x127')]||![],'smsPause':_0x1d9d18[_0x2994cf('0x127')]||![],'openchannelPause':_0x1d9d18['loginInPause']||![],'whatsappPause':_0x1d9d18[_0x2994cf('0x127')]||![],'pauseType':_0x1d9d18['loginInPause']?_0x2994cf('0x23'):null,'interface':_0x1e7847,'lastPauseAt':moment()[_0x2994cf('0xb8')](_0x2994cf('0xac'))});})[_0x58acb9('0x5b')](function(_0x488d3f){const _0x5a2e57=_0x58acb9;return _0x595157[_0x5a2e57('0x46')]?_0x321ff1():Promise[_0x5a2e57('0xb5')](_0x488d3f)[_0x5a2e57('0x5b')](respondWithResult(_0x62ba17,null));})['catch'](handleError(_0x62ba17,null));},exports[_0x15d5b3('0xfa')]=function(_0x278b06,_0x1b8188){const _0x3c32da=_0x15d5b3;let _0x29d5ab;return db[_0x3c32da('0xf1')][_0x3c32da('0x12d')]({'where':{'id':_0x278b06[_0x3c32da('0xe')]['id'],'role':_0x3c32da('0x145')},'attributes':['id',_0x3c32da('0x32'),_0x3c32da('0x86')]})[_0x3c32da('0x5b')](handleEntityNotFound(_0x1b8188,null))[_0x3c32da('0x5b')](function(_0x444184){const _0x37e300=_0x3c32da;if(_0x444184)return _0x29d5ab=_0x444184,db['UserVoiceQueueRt'][_0x37e300('0xe3')]({'where':{'membername':_0x29d5ab[_0x37e300('0x32')]},'individualHooks':!![]});})[_0x3c32da('0x5b')](function(){const _0x23c6f5=_0x3c32da;return db[_0x23c6f5('0x100')][_0x23c6f5('0xeb')]({'where':{'membername':_0x29d5ab[_0x23c6f5('0x32')],'exitAt':null}});})[_0x3c32da('0x5b')](function(_0xe113d6){const _0x108f0b=_0x3c32da,_0x19d2f6=[];return _0xe113d6[_0x108f0b('0x129')](function(_0x479927){const _0x5aebf1=_0x108f0b;_0x19d2f6[_0x5aebf1('0x67')](_0x479927[_0x5aebf1('0xfc')]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x108f0b('0x77')](_0x19d2f6);})[_0x3c32da('0x5b')](function(){const _0x3608b4=_0x3c32da;return _0x29d5ab[_0x3608b4('0xfc')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x3c32da('0x5b')](respondWithResult(_0x1b8188,null))[_0x3c32da('0x139')](handleError(_0x1b8188,null));},exports[_0x15d5b3('0x78')]=function(_0x1a0152,_0x40dd12){const _0x323cd0=_0x15d5b3;let _0x75630d;return db['UserVoiceQueueRt'][_0x323cd0('0xfc')]({'paused':0x1},{'where':{'UserId':_0x1a0152['params']['id']},'individualHooks':!![]})[_0x323cd0('0x5b')](function(){const _0x47197a=_0x323cd0;return db['User'][_0x47197a('0x12d')]({'where':{'id':_0x1a0152[_0x47197a('0xe')]['id'],'role':_0x47197a('0x145')},'attributes':['id',_0x47197a('0x32'),'role','internal',_0x47197a('0x45')]});})[_0x323cd0('0x5b')](handleEntityNotFound(_0x40dd12,null))[_0x323cd0('0x5b')](function(_0x436e3c){const _0x1026dc=_0x323cd0;if(_0x436e3c)return _0x75630d=_0x436e3c,respondWithRpcPromise(_0x1026dc('0x22'),_0x1026dc('0x78'),{'id':_0x75630d['id'],'name':_0x75630d[_0x1026dc('0x32')],'pause':!![]});})[_0x323cd0('0x5b')](function(){const _0x47a789=_0x323cd0;if(_0x75630d)return db[_0x47a789('0x100')][_0x47a789('0xeb')]({'where':{'membername':_0x75630d[_0x47a789('0x32')],'type':'PAUSE','exitAt':null}});})[_0x323cd0('0x5b')](function(_0x2cbdb9){const _0x5da096=_0x323cd0;if(_0x2cbdb9[_0x5da096('0x12e')]){const _0x5399a7=moment()[_0x5da096('0xb8')](_0x5da096('0xac'));for(let _0x2934d3=0x0,_0xc0c9b8=_0x2cbdb9[_0x5da096('0x12e')];_0x2934d3<_0xc0c9b8;_0x2934d3++){_0x2cbdb9[_0x2934d3][_0x5da096('0xfc')]({'exitAt':_0x5399a7});}}})[_0x323cd0('0x5b')](function(){const _0x466816=_0x323cd0,_0x29f9f3=[],_0x206dad=utils[_0x466816('0xd3')]();return _0x206dad['forEach'](function(_0x367c8d){const _0x4b93b7=_0x466816;_0x29f9f3['push']({'channel':_0x367c8d,'membername':_0x75630d['name'],'interface':_['isNil'](_0x75630d[_0x4b93b7('0x45')])?util[_0x4b93b7('0xb8')](_0x4b93b7('0x61'),_0x75630d[_0x4b93b7('0x32')]):_0x75630d[_0x4b93b7('0x45')],'type':'PAUSE','enterAt':moment()['format'](_0x4b93b7('0xac')),'data1':_0x1a0152[_0x4b93b7('0x10c')][_0x4b93b7('0x11d')]||_0x4b93b7('0x6e'),'role':_0x75630d['role'],'internal':_0x75630d['internal']});}),db[_0x466816('0x100')][_0x466816('0xf3')](_0x29f9f3,{'individualHooks':!![]});})[_0x323cd0('0x5b')](function(){const _0x5c2e87=_0x323cd0;return _0x75630d[_0x5c2e87('0xfc')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x1a0152[_0x5c2e87('0x10c')]['type']||_0x5c2e87('0x6e'),'lastPauseAt':moment()[_0x5c2e87('0xb8')](_0x5c2e87('0xac'))});})[_0x323cd0('0x5b')](respondWithResult(_0x40dd12,null))[_0x323cd0('0x139')](handleError(_0x40dd12,null));},exports[_0x15d5b3('0xe9')]=function(_0x405cc9,_0x373a48){const _0x5954d8=_0x15d5b3;let _0x4e471b;return db[_0x5954d8('0xf1')][_0x5954d8('0x12d')]({'where':{'id':_0x405cc9[_0x5954d8('0xe')]['id']},'attributes':['id','name','role',_0x5954d8('0xcd'),'mailPause','chatPause',_0x5954d8('0x30'),_0x5954d8('0x59'),'smsPause','whatsapppause',_0x5954d8('0x15b'),_0x5954d8('0xa')]})[_0x5954d8('0x5b')](handleEntityNotFound(_0x373a48,null))[_0x5954d8('0x5b')](function(_0x537a9b){const _0x557d3f=_0x5954d8;if(_0x537a9b){_0x4e471b=_0x537a9b;if(_0x405cc9['body']['channel']&&!utils[_0x557d3f('0x11a')](_0x405cc9[_0x557d3f('0x10c')][_0x557d3f('0x13a')]))throw new ValidationError(_0x557d3f('0x156'));switch(_0x405cc9[_0x557d3f('0x10c')][_0x557d3f('0x13a')]){case _0x557d3f('0x153'):return respondWithRpcPromise(_0x557d3f('0x22'),'unpause',{'id':_0x4e471b['id'],'name':_0x4e471b[_0x557d3f('0x32')],'pause':![]})[_0x557d3f('0x5b')](function(){const _0x1002a7=_0x557d3f;return db[_0x1002a7('0x40')][_0x1002a7('0xfc')]({'paused':0x0},{'where':{'UserId':_0x4e471b['id']},'individualHooks':!![]});})[_0x557d3f('0x5b')](function(){const _0x429778=_0x557d3f;return db[_0x429778('0x100')][_0x429778('0x12d')]({'where':{'channel':_0x405cc9['body']['channel'],'membername':_0x4e471b[_0x429778('0x32')],'type':_0x429778('0xe5'),'exitAt':null}});})[_0x557d3f('0x5b')](function(_0x3cebd6){const _0x2e727c=_0x557d3f;if(_0x3cebd6)return _0x3cebd6[_0x2e727c('0xfc')]({'exitAt':moment()['format'](_0x2e727c('0xac')),'data2':_0x2e727c('0x15a')},{'individualHooks':!![]});return null;})[_0x557d3f('0x5b')](function(){const _0x2ca10c=_0x557d3f;return _0x4e471b[_0x2ca10c('0xfc')]({'voicePause':![]});});case _0x557d3f('0x158'):case _0x557d3f('0xa5'):case _0x557d3f('0x36'):case'sms':case'whatsapp':case'openchannel':return db[_0x557d3f('0x100')][_0x557d3f('0x12d')]({'where':{'channel':_0x405cc9['body']['channel'],'membername':_0x4e471b[_0x557d3f('0x32')],'type':_0x557d3f('0xe5'),'exitAt':null}})[_0x557d3f('0x5b')](function(_0x177f03){const _0x50a71d=_0x557d3f;if(_0x177f03)return _0x177f03['update']({'exitAt':moment()[_0x50a71d('0xb8')](_0x50a71d('0xac')),'data2':_0x50a71d('0x15a')},{'individualHooks':!![]});return null;})[_0x557d3f('0x5b')](function(){const _0xd30172=_0x557d3f,_0x11010f={};return _[_0xd30172('0x3b')](_0x11010f,util[_0xd30172('0xb8')](_0xd30172('0x21'),_0x405cc9[_0xd30172('0x10c')][_0xd30172('0x13a')],_0xd30172('0x73')),![]),_0x4e471b[_0xd30172('0xfc')](_0x11010f);});default:return respondWithRpcPromise(_0x557d3f('0x22'),'unpause',{'id':_0x4e471b['id'],'name':_0x4e471b[_0x557d3f('0x32')],'pause':![]})[_0x557d3f('0x5b')](function(){const _0x456295=_0x557d3f;return db[_0x456295('0x40')]['update']({'paused':0x0},{'where':{'UserId':_0x4e471b['id']}});})[_0x557d3f('0x5b')](function(){const _0x33de23=_0x557d3f;return db[_0x33de23('0x100')]['findAll']({'where':{'membername':_0x4e471b[_0x33de23('0x32')],'type':'PAUSE','exitAt':null}});})[_0x557d3f('0x5b')](function(_0x7e2a24){const _0x50d100=_0x557d3f,_0x542c93=[];return _0x7e2a24[_0x50d100('0x129')](function(_0x35dc90){const _0x599ff4=_0x50d100;_0x542c93[_0x599ff4('0x67')](_0x35dc90[_0x599ff4('0xfc')]({'exitAt':moment()['format'](_0x599ff4('0xac')),'data2':_0x599ff4('0x15a')}));}),Promise[_0x50d100('0x77')](_0x542c93);})[_0x557d3f('0x5b')](function(){const _0x3d8e1b=_0x557d3f;return _0x4e471b[_0x3d8e1b('0xfc')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x5954d8('0x5b')](respondWithResult(_0x373a48,null))[_0x5954d8('0x139')](handleError(_0x373a48,null));},exports[_0x15d5b3('0x124')]=function(_0x1f69c8,_0x11e634){const _0x10ff82=_0x15d5b3;let _0x4ef4a4={};const _0x5111de={};let _0x1df926,_0xdcdb80;return db[_0x10ff82('0xf1')][_0x10ff82('0x12d')]({'where':{'id':_0x1f69c8[_0x10ff82('0xe')]['id']}})['then'](handleEntityNotFound(_0x11e634,null))[_0x10ff82('0x5b')](function(_0x1b48c3){const _0x548b76=_0x10ff82;if(_0x1b48c3)return _0x1df926=_0x1b48c3,_0x5111de[_0x548b76('0x142')]=_[_0x548b76('0x14e')](db[_0x548b76('0xb4')][_0x548b76('0x13c')]),_0x5111de[_0x548b76('0x97')]=_[_0x548b76('0x14e')](_0x1f69c8[_0x548b76('0x97')]),_0x5111de[_0x548b76('0x38')]=_[_0x548b76('0xdf')](_0x5111de['model'],_0x5111de['query']),_0x4ef4a4[_0x548b76('0xd6')]=_['intersection'](_0x5111de[_0x548b76('0x142')],qs[_0x548b76('0x11')](_0x1f69c8[_0x548b76('0x97')]['fields'])),_0x4ef4a4[_0x548b76('0xd6')]=_0x4ef4a4[_0x548b76('0xd6')][_0x548b76('0x12e')]?_0x4ef4a4[_0x548b76('0xd6')]:_0x5111de['model'],_0x4ef4a4[_0x548b76('0xec')]=qs['sort'](_0x1f69c8['query'][_0x548b76('0x15c')]),_0x4ef4a4[_0x548b76('0xbc')]=qs[_0x548b76('0x38')](_['pick'](_0x1f69c8['query'],_0x5111de['filters'])),_0x1f69c8['query']['filter']&&(_0x4ef4a4[_0x548b76('0xbc')]=_[_0x548b76('0xf4')](_0x4ef4a4[_0x548b76('0xbc')],{[Op['or']]:_[_0x548b76('0x58')](_0x4ef4a4['attributes'],function(_0xe11ab7){const _0x34cfca=_0x548b76,_0x339b8a={};return _0x339b8a[_0xe11ab7]={[Op[_0x34cfca('0x13d')]]:'%'+_0x1f69c8['query'][_0x34cfca('0x138')]+'%'},_0x339b8a;})})),_0x4ef4a4=_[_0x548b76('0xf4')]({},_0x4ef4a4,_0x1f69c8[_0x548b76('0xf5')]),_0x1df926[_0x548b76('0x124')](_0x4ef4a4);})[_0x10ff82('0x5b')](function(_0x4ce15){const _0x23b187=_0x10ff82;if(_0x4ce15)return _0xdcdb80=_0x4ce15[_0x23b187('0x12e')],typeof _0x1f69c8[_0x23b187('0x97')][_0x23b187('0x48')]==='undefined'&&(_0x4ef4a4['limit']=qs['limit'](_0x1f69c8[_0x23b187('0x97')][_0x23b187('0x7a')]),_0x4ef4a4[_0x23b187('0x12a')]=qs['offset'](_0x1f69c8['query'][_0x23b187('0x12a')])),_0x1df926[_0x23b187('0x124')](_0x4ef4a4);})[_0x10ff82('0x5b')](function(_0x2b4c0b){if(_0x2b4c0b)return _0x2b4c0b?{'count':_0xdcdb80,'rows':_0x2b4c0b}:null;})['then'](respondWithResult(_0x11e634,null))[_0x10ff82('0x139')](handleError(_0x11e634,null));},exports[_0x15d5b3('0xee')]=function(_0x169ff0,_0x4e592c){const _0xb7d448=_0x15d5b3;return db[_0xb7d448('0xf1')][_0xb7d448('0x12d')]({'where':{'id':_0x169ff0['params']['id']}})[_0xb7d448('0x5b')](handleEntityNotFound(_0x4e592c,null))[_0xb7d448('0x5b')](function(_0x6b31e2){const _0x29de2e=_0xb7d448;if(_0x6b31e2){const _0x484446=_0x6b31e2['get']({'plain':!![]});return _0x6b31e2[_0x29de2e('0xee')](_0x169ff0[_0x29de2e('0x10c')][_0x29de2e('0x76')],_[_0x29de2e('0x8a')](_0x169ff0[_0x29de2e('0x10c')],[_0x29de2e('0x76'),'id'])||{})[_0x29de2e('0x5b')](function(){const _0x1b3d17=_0x29de2e;for(let _0x554229=0x0;_0x554229<_0x169ff0[_0x1b3d17('0x10c')][_0x1b3d17('0x76')][_0x1b3d17('0x12e')];_0x554229++){let _0x2c427f=[];db[_0x1b3d17('0xb4')][_0x1b3d17('0x12d')]({'where':{'id':_0x169ff0['body'][_0x1b3d17('0x76')][_0x554229]}})['then'](function(_0x58ba44){const _0x49fbcc=_0x1b3d17;return _0x2c427f[_0x49fbcc('0x67')](_0x58ba44[_0x49fbcc('0x72')]()[_0x49fbcc('0x5b')](function(_0x1b681b){const _0x39449b=_0x49fbcc;for(let _0x5b34e1=0x0;_0x5b34e1<_0x1b681b[_0x39449b('0x12e')];_0x5b34e1++){_0x1b681b[_0x5b34e1]['setDataValue'](_0x39449b('0x13a'),_0x39449b('0x13b'));}return _0x1b681b;})),_0x2c427f[_0x49fbcc('0x67')](_0x58ba44[_0x49fbcc('0x0')]()['then'](function(_0x89d285){const _0x2d8274=_0x49fbcc;for(let _0x3c52d6=0x0;_0x3c52d6<_0x89d285[_0x2d8274('0x12e')];_0x3c52d6++){_0x89d285[_0x3c52d6][_0x2d8274('0xc5')](_0x2d8274('0x13a'),_0x2d8274('0x14a'));}return _0x89d285;})),_0x2c427f[_0x49fbcc('0x67')](_0x58ba44['getMailQueues']()['then'](function(_0x485746){const _0x599501=_0x49fbcc;for(let _0x227636=0x0;_0x227636<_0x485746[_0x599501('0x12e')];_0x227636++){_0x485746[_0x227636]['setDataValue'](_0x599501('0x13a'),'Mail');}return _0x485746;})),_0x2c427f[_0x49fbcc('0x67')](_0x58ba44['getSmsQueues']()['then'](function(_0x3fbe36){const _0x1b0ad2=_0x49fbcc;for(let _0x24a3a3=0x0;_0x24a3a3<_0x3fbe36['length'];_0x24a3a3++){_0x3fbe36[_0x24a3a3][_0x1b0ad2('0xc5')]('channel',_0x1b0ad2('0x42'));}return _0x3fbe36;})),_0x2c427f[_0x49fbcc('0x67')](_0x58ba44[_0x49fbcc('0x2')]()[_0x49fbcc('0x5b')](function(_0xdc6833){const _0x437f30=_0x49fbcc;for(let _0x454771=0x0;_0x454771<_0xdc6833[_0x437f30('0x12e')];_0x454771++){_0xdc6833[_0x454771][_0x437f30('0xc5')](_0x437f30('0x13a'),'Whatsapp');}return _0xdc6833;})),_0x2c427f[_0x49fbcc('0x67')](_0x58ba44[_0x49fbcc('0x5e')]()[_0x49fbcc('0x5b')](function(_0x4c2fc8){const _0x294e1e=_0x49fbcc;for(let _0x503d96=0x0;_0x503d96<_0x4c2fc8[_0x294e1e('0x12e')];_0x503d96++){_0x4c2fc8[_0x503d96][_0x294e1e('0xc5')](_0x294e1e('0x13a'),'Fax');}return _0x4c2fc8;})),_0x2c427f['push'](_0x58ba44[_0x49fbcc('0x6f')]()[_0x49fbcc('0x5b')](function(_0x17f796){const _0x33a67a=_0x49fbcc;for(let _0x32a286=0x0;_0x32a286<_0x17f796[_0x33a67a('0x12e')];_0x32a286++){_0x17f796[_0x32a286][_0x33a67a('0xc5')](_0x33a67a('0x13a'),_0x33a67a('0x102'));}return _0x17f796;})),Promise[_0x49fbcc('0x77')](_0x2c427f);})['then'](function(_0x17428d){const _0x3a3531=_0x1b3d17,_0x42f922=_['flatten'](_0x17428d);return _0x2c427f=[],db[_0x3a3531('0xdc')][_0x3a3531('0x101')](function(_0x3bbe96){const _0x4880a3=_0x3a3531;for(let _0x4b9987=0x0;_0x4b9987<_0x42f922[_0x4880a3('0x12e')];_0x4b9987++){_0x2c427f[_0x4880a3('0x67')](_0x42f922[_0x4b9987][_0x4880a3('0x26')](_0x484446['id']),{'transaction':_0x3bbe96});}return Promise[_0x4880a3('0x77')](_0x2c427f)[_0x4880a3('0x5b')](function(){const _0x382603=_0x4880a3;if(_0x484446[_0x382603('0x111')])return Promise[_0x382603('0xaf')](_[_0x382603('0x138')](_0x42f922,function(_0x147417){const _0x37edb9=_0x382603;return _0x147417['getDataValue']('channel')===_0x37edb9('0x13b');}),function(_0xa236f7){const _0x67b5bd=_0x382603;return db[_0x67b5bd('0x40')][_0x67b5bd('0xe7')]({'membername':_0x484446['name'],'UserId':_0x484446['id'],'queue_name':_0xa236f7[_0x67b5bd('0x32')],'VoiceQueueId':_0xa236f7['id'],'interface':_[_0x67b5bd('0x99')](_0x484446[_0x67b5bd('0x45')])?util[_0x67b5bd('0xb8')](_0x67b5bd('0x61'),_0x484446['name']):_0x484446[_0x67b5bd('0x45')],'paused':_0x484446[_0x67b5bd('0xcd')]||![],'penalty':_0x484446[_0x67b5bd('0x12')]},{'transaction':_0x3bbe96});});else return;})[_0x4880a3('0x5b')](function(){const _0x1cd2bc=_0x4880a3;for(let _0x3d9e29=0x0;_0x3d9e29<_0x42f922[_0x1cd2bc('0x12e')];_0x3d9e29++){const _0x4c0001=_0x42f922[_0x3d9e29][_0x1cd2bc('0x147')](_0x1cd2bc('0x13a')),_0x582490=_0x4c0001+_0x1cd2bc('0xa8');socket[_0x1cd2bc('0xea')](_0x1cd2bc('0x5d')+_0x4c0001+_0x1cd2bc('0x25'),{'UserId':_0x484446['id'],[_0x582490]:_0x42f922[_0x3d9e29]['id']});}});});});}});}})[_0xb7d448('0x5b')](respondWithStatusCode(_0x4e592c,null))['catch'](handleError(_0x4e592c,null));},exports['removeTeams']=function(_0x13b33b,_0x57359a){const _0x2b3d5f=_0x15d5b3;return db['User'][_0x2b3d5f('0x12d')]({'where':{'id':_0x13b33b[_0x2b3d5f('0xe')]['id']}})[_0x2b3d5f('0x5b')](handleEntityNotFound(_0x57359a,null))[_0x2b3d5f('0x5b')](function(_0x104093){const _0x40854c=_0x2b3d5f;if(_0x104093){const _0x4cceb1=_0x104093[_0x40854c('0x1e')]({'plain':!![]}),_0x4cebb0=_0x13b33b[_0x40854c('0x97')][_0x40854c('0x76')];return _0x104093['removeTeams'](_0x4cebb0)[_0x40854c('0x5b')](function(){const _0x2aeb10=_0x40854c;for(let _0x10e545=0x0;_0x10e545<_0x4cebb0['length'];_0x10e545++){let _0x478c72=[];db[_0x2aeb10('0xb4')][_0x2aeb10('0x12d')]({'where':{'id':_0x4cebb0[_0x10e545]}})[_0x2aeb10('0x5b')](function(_0x3d7f38){const _0x175df=_0x2aeb10;return _0x478c72['push'](_0x3d7f38[_0x175df('0x72')]()[_0x175df('0x5b')](function(_0x5906af){const _0x4d6c09=_0x175df;for(let _0xe1cabf=0x0;_0xe1cabf<_0x5906af[_0x4d6c09('0x12e')];_0xe1cabf++){_0x5906af[_0xe1cabf][_0x4d6c09('0xc5')]('channel',_0x4d6c09('0x13b'));}return _0x5906af;})),_0x478c72['push'](_0x3d7f38['getChatQueues']()['then'](function(_0x426f91){const _0x195636=_0x175df;for(let _0x4f258d=0x0;_0x4f258d<_0x426f91[_0x195636('0x12e')];_0x4f258d++){_0x426f91[_0x4f258d]['setDataValue'](_0x195636('0x13a'),_0x195636('0x14a'));}return _0x426f91;})),_0x478c72[_0x175df('0x67')](_0x3d7f38[_0x175df('0xb7')]()[_0x175df('0x5b')](function(_0x1b6277){const _0x65f731=_0x175df;for(let _0x369ee5=0x0;_0x369ee5<_0x1b6277['length'];_0x369ee5++){_0x1b6277[_0x369ee5][_0x65f731('0xc5')](_0x65f731('0x13a'),_0x65f731('0x15e'));}return _0x1b6277;})),_0x478c72['push'](_0x3d7f38['getSmsQueues']()[_0x175df('0x5b')](function(_0x461d45){const _0x53e89c=_0x175df;for(let _0x3f6b37=0x0;_0x3f6b37<_0x461d45[_0x53e89c('0x12e')];_0x3f6b37++){_0x461d45[_0x3f6b37]['setDataValue']('channel',_0x53e89c('0x42'));}return _0x461d45;})),_0x478c72[_0x175df('0x67')](_0x3d7f38[_0x175df('0x2')]()[_0x175df('0x5b')](function(_0x3dad27){const _0x2ebbd5=_0x175df;for(let _0x1acaf0=0x0;_0x1acaf0<_0x3dad27[_0x2ebbd5('0x12e')];_0x1acaf0++){_0x3dad27[_0x1acaf0][_0x2ebbd5('0xc5')]('channel',_0x2ebbd5('0xb9'));}return _0x3dad27;})),_0x478c72[_0x175df('0x67')](_0x3d7f38[_0x175df('0x5e')]()['then'](function(_0x29450f){const _0x9346af=_0x175df;for(let _0x374bbf=0x0;_0x374bbf<_0x29450f[_0x9346af('0x12e')];_0x374bbf++){_0x29450f[_0x374bbf]['setDataValue']('channel',_0x9346af('0xab'));}return _0x29450f;})),_0x478c72[_0x175df('0x67')](_0x3d7f38['getOpenchannelQueues']()[_0x175df('0x5b')](function(_0x222772){const _0x3dcc86=_0x175df;for(let _0x10847a=0x0;_0x10847a<_0x222772[_0x3dcc86('0x12e')];_0x10847a++){_0x222772[_0x10847a][_0x3dcc86('0xc5')](_0x3dcc86('0x13a'),_0x3dcc86('0x102'));}return _0x222772;})),Promise[_0x175df('0x77')](_0x478c72);})[_0x2aeb10('0x5b')](function(_0x14d13a){const _0x8c78f3=_0x2aeb10,_0x41bc6e=_[_0x8c78f3('0xf6')](_0x14d13a);return _0x478c72=[],db['sequelize'][_0x8c78f3('0x101')](function(_0x20b82b){const _0x4d4ebc=_0x8c78f3;for(let _0x39f444=0x0;_0x39f444<_0x41bc6e[_0x4d4ebc('0x12e')];_0x39f444++){_0x478c72[_0x4d4ebc('0x67')](_0x41bc6e[_0x39f444]['removeAgent'](_0x4cceb1['id']),{'transaction':_0x20b82b});}return Promise[_0x4d4ebc('0x77')](_0x478c72)['then'](function(){const _0x1817ec=_0x4d4ebc;if(_0x4cceb1['online'])return Promise[_0x1817ec('0xaf')](_[_0x1817ec('0x138')](_0x41bc6e,function(_0x1ad7be){const _0x44f8a1=_0x1817ec;return _0x1ad7be[_0x44f8a1('0x147')](_0x44f8a1('0x13a'))===_0x44f8a1('0x13b');}),function(_0x481c88){const _0x241658=_0x1817ec;return db[_0x241658('0x40')][_0x241658('0xe3')]({'where':{'VoiceQueueId':_0x481c88['id'],'UserId':_0x4cceb1['id']},'transaction':_0x20b82b});});else return;})[_0x4d4ebc('0x5b')](function(){const _0x190c40=_0x4d4ebc;for(let _0xa89acd=0x0;_0xa89acd<_0x41bc6e[_0x190c40('0x12e')];_0xa89acd++){const _0x30da3f=_0x41bc6e[_0xa89acd][_0x190c40('0x147')](_0x190c40('0x13a')),_0x3ecbff=_0x30da3f+'QueueId';socket[_0x190c40('0xea')](_0x190c40('0x5d')+_0x30da3f+_0x190c40('0x140'),{'UserId':_0x4cceb1['id'],[_0x3ecbff]:_0x41bc6e[_0xa89acd]['id']});}});});});}});}})[_0x2b3d5f('0x5b')](respondWithStatusCode(_0x57359a,null))['catch'](handleError(_0x57359a,null));},exports[_0x15d5b3('0x37')]=function(_0x493348,_0x1a41bb){const _0x5f4526=_0x15d5b3;let _0x50829d={};const _0xb172d2={};let _0x1ba683,_0x255dcf;return db[_0x5f4526('0xf1')][_0x5f4526('0x12d')]({'where':{'id':_0x493348[_0x5f4526('0xe')]['id']}})['then'](handleEntityNotFound(_0x1a41bb,null))[_0x5f4526('0x5b')](function(_0x1177aa){const _0x1b5ab3=_0x5f4526;if(_0x1177aa)return _0x1ba683=_0x1177aa,_0xb172d2[_0x1b5ab3('0x142')]=_[_0x1b5ab3('0x14e')](db[_0x1b5ab3('0x5')]['rawAttributes']),_0xb172d2[_0x1b5ab3('0x97')]=_[_0x1b5ab3('0x14e')](_0x493348[_0x1b5ab3('0x97')]),_0xb172d2['filters']=_[_0x1b5ab3('0xdf')](_0xb172d2[_0x1b5ab3('0x142')],_0xb172d2[_0x1b5ab3('0x97')]),_0x50829d[_0x1b5ab3('0xd6')]=_[_0x1b5ab3('0xdf')](_0xb172d2['model'],qs['fields'](_0x493348[_0x1b5ab3('0x97')][_0x1b5ab3('0x11')])),_0x50829d[_0x1b5ab3('0xd6')]=_0x50829d[_0x1b5ab3('0xd6')][_0x1b5ab3('0x12e')]?_0x50829d['attributes']:_0xb172d2['model'],_0x50829d[_0x1b5ab3('0xec')]=qs[_0x1b5ab3('0x15c')](_0x493348['query'][_0x1b5ab3('0x15c')]),_0x50829d[_0x1b5ab3('0xbc')]=qs[_0x1b5ab3('0x38')](_[_0x1b5ab3('0x6d')](_0x493348[_0x1b5ab3('0x97')],_0xb172d2['filters'])),_0x493348[_0x1b5ab3('0x97')][_0x1b5ab3('0x138')]&&(_0x50829d[_0x1b5ab3('0xbc')]=_[_0x1b5ab3('0xf4')](_0x50829d[_0x1b5ab3('0xbc')],{[Op['or']]:_[_0x1b5ab3('0x58')](_0x50829d[_0x1b5ab3('0xd6')],function(_0x441203){const _0x51d009=_0x1b5ab3,_0x548c76={};return _0x548c76[_0x441203]={[Op[_0x51d009('0x13d')]]:'%'+_0x493348[_0x51d009('0x97')][_0x51d009('0x138')]+'%'},_0x548c76;})})),_0x50829d=_['merge']({},_0x50829d,_0x493348[_0x1b5ab3('0xf5')]),_0x1ba683[_0x1b5ab3('0x37')](_0x50829d);})[_0x5f4526('0x5b')](function(_0x2348fd){const _0x28c8d5=_0x5f4526;if(_0x2348fd)return _0x255dcf=_0x2348fd[_0x28c8d5('0x12e')],typeof _0x493348[_0x28c8d5('0x97')][_0x28c8d5('0x48')]==='undefined'&&(_0x50829d[_0x28c8d5('0x7a')]=qs[_0x28c8d5('0x7a')](_0x493348[_0x28c8d5('0x97')][_0x28c8d5('0x7a')]),_0x50829d['offset']=qs[_0x28c8d5('0x12a')](_0x493348[_0x28c8d5('0x97')][_0x28c8d5('0x12a')])),_0x1ba683['getLists'](_0x50829d);})[_0x5f4526('0x5b')](function(_0xb6f652){if(_0xb6f652)return _0xb6f652?{'count':_0x255dcf,'rows':_0xb6f652}:null;})[_0x5f4526('0x5b')](respondWithResult(_0x1a41bb,null))[_0x5f4526('0x139')](handleError(_0x1a41bb,null));},exports[_0x15d5b3('0x3f')]=function(_0x24977a,_0x45cafb){const _0x665cbd=_0x15d5b3;let _0x1ae697={};const _0x80322d={};let _0x2e2f0a;return db['User'][_0x665cbd('0x12d')]({'where':{'id':_0x24977a[_0x665cbd('0xe')]['id']}})[_0x665cbd('0x5b')](handleEntityNotFound(_0x45cafb,null))['then'](function(_0x52244b){const _0x2693b5=_0x665cbd;if(_0x52244b)return _0x2e2f0a=_0x52244b,_0x80322d['model']=_[_0x2693b5('0x14e')](db[_0x2693b5('0xf1')][_0x2693b5('0x13c')]),_0x80322d['query']=_[_0x2693b5('0x14e')](_0x24977a[_0x2693b5('0x97')]),_0x80322d['filters']=_[_0x2693b5('0xdf')](_0x80322d[_0x2693b5('0x142')],_0x80322d[_0x2693b5('0x97')]),_0x1ae697[_0x2693b5('0xd6')]=_[_0x2693b5('0xdf')](_0x80322d[_0x2693b5('0x142')],qs['fields'](_0x24977a[_0x2693b5('0x97')]['fields'])),_0x1ae697[_0x2693b5('0xd6')]=_0x1ae697[_0x2693b5('0xd6')]['length']?_0x1ae697[_0x2693b5('0xd6')]:_0x80322d['model'],_0x1ae697[_0x2693b5('0xec')]=qs[_0x2693b5('0x15c')](_0x24977a[_0x2693b5('0x97')][_0x2693b5('0x15c')]),_0x1ae697[_0x2693b5('0xbc')]=qs[_0x2693b5('0x38')](_['pick'](_0x24977a[_0x2693b5('0x97')],_0x80322d['filters'])),_0x24977a[_0x2693b5('0x97')][_0x2693b5('0x138')]&&(_0x1ae697[_0x2693b5('0xbc')]=_[_0x2693b5('0xf4')](_0x1ae697[_0x2693b5('0xbc')],{[Op['or']]:_[_0x2693b5('0x58')](_0x1ae697[_0x2693b5('0xd6')],function(_0x7b464d){const _0xd15281=_0x2693b5,_0x3121d4={};return _0x3121d4[_0x7b464d]={[Op[_0xd15281('0x13d')]]:'%'+_0x24977a[_0xd15281('0x97')][_0xd15281('0x138')]+'%'},_0x3121d4;})})),_0x1ae697['model']=db[_0x2693b5('0xf1')],_0x1ae697['as']='Agents',_0x1ae697=_[_0x2693b5('0xf4')]({},_0x1ae697,_0x24977a[_0x2693b5('0xf5')]),_0x2e2f0a[_0x2693b5('0x72')]({'include':[_0x1ae697]});})[_0x665cbd('0x5b')](function(_0x2ad3db){const _0xd69653=_0x665cbd;if(_0x2ad3db){let _0x3db5d2={};const _0x299e34=[];for(let _0x5e178c=0x0;_0x5e178c<_0x2ad3db['length'];_0x5e178c+=0x1){for(let _0xc899b3=0x0,_0x449029;_0xc899b3<_0x2ad3db[_0x5e178c]['Agents'][_0xd69653('0x12e')];_0xc899b3+=0x1){_0x449029=_0x2ad3db[_0x5e178c][_0xd69653('0xf7')][_0xc899b3][_0xd69653('0x1e')]({'plain':!![]}),_0x3db5d2[_0x449029['id']]=_0x449029;}}_0x3db5d2=_['values'](_0x3db5d2);for(let _0x276586=qs['offset'](_0x24977a[_0xd69653('0x97')][_0xd69653('0x12a')]);_0x276586<_0x3db5d2[_0xd69653('0x12e')]&&_0x299e34[_0xd69653('0x12e')]=_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')]{const _0x25a2ce=a650_0xde0a;crypto[_0x25a2ce('0x37')](_0x4bffa0,function(_0x33f2dc,_0x6f41ba){const _0x5ad68e=_0x25a2ce;return _0x33f2dc&&_0x4799aa(_0x33f2dc),_0x4b6c46(_0x6f41ba['toString'](_0x5ad68e('0x1e')));});});},_0x59624b[_0x508813('0x33')][_0x508813('0x22')]=function(_0x4480c0,_0x4408af){const _0x11be95=_0x508813;if(!_0x4480c0||!this[_0x11be95('0x27')])return _0x4408af?_0x4408af(null):null;const _0xc7c765=0x2710,_0x222474=0x40,_0x5d408c=Buffer[_0x11be95('0x35')](this[_0x11be95('0x27')],_0x11be95('0x1e'));if(!_0x4408af)return crypto[_0x11be95('0x1b')](_0x4480c0,_0x5d408c,_0xc7c765,_0x222474,'sha1')[_0x11be95('0x16')](_0x11be95('0x1e'));return crypto[_0x11be95('0xb')](_0x4480c0,_0x5d408c,_0xc7c765,_0x222474,_0x11be95('0x2d'),function(_0xd4d03a,_0x3810c3){const _0x211861=_0x11be95;return _0xd4d03a&&_0x4408af(_0xd4d03a),_0x4408af(null,_0x3810c3[_0x211861('0x16')](_0x211861('0x1e')));});},_0x59624b[_0x508813('0x33')][_0x508813('0x1a')]=async function(){const _0x42aa96=_0x508813;if(!this[_0x42aa96('0xe')])return null;if(!_['isEmpty'](this[_0x42aa96('0xe')])&&authTypes['indexOf'](this[_0x42aa96('0xc')])===-0x1)throw new Error(_0x42aa96('0x24'));return this[_0x42aa96('0x27')]=await this[_0x42aa96('0x1')](),new Promise((_0x101549,_0x382fbd)=>{const _0x3d7721=_0x42aa96;this['encryptPassword'](this[_0x3d7721('0xe')],(_0x4adbc9,_0x3a9a35)=>{const _0x4b44ca=_0x3d7721;_0x4adbc9?_0x382fbd(_0x4adbc9):(this[_0x4b44ca('0xe')]=_0x3a9a35,_0x101549());});});},_0x59624b[_0x508813('0x33')]['updateMd5Password']=function(){const _0x509351=_0x508813;this['md5secret']=md5(this['name']+_0x509351('0xd')+this['password']);},_0x59624b;}; \ No newline at end of file +const a650_0xfb27=['utf8','length',':asterisk:','chanspy','util','lodash','google','internal','format','extensionMonitor','randomBytes','options','SIP/%s,%s','toString','sha1','Authenticate','indexOf','VoiceChanSpy','prototype','isEmpty','authenticate','from-sip','gsm','md5secret','catch','models','Missing\x20Callback','users','CDR(type)=%s','join','salt','name','merge','findAll','push','VoiceExtension','makeSaltAsync','context','bulkCreate','sequelize','concat','recordingFormat','auth','encryptPassword','defaults','crypto','then','destroy','wav','function','Hangup','md5','exports','pbkdf2','%s%s','Dial','Set','record','changed','password','provider','from','base64','system','${UNIQUEID}.%s,ab','utf8_bin','prefix','User','priority','updatePassword','./user.attributes','includes','Invalid\x20password','resolve','makeSalt'];(function(_0x50b7e0,_0xfb274){const _0x184b5f=function(_0xb40bf){while(--_0xb40bf){_0x50b7e0['push'](_0x50b7e0['shift']());}};_0x184b5f(++_0xfb274);}(a650_0xfb27,0x67));const a650_0x184b=function(_0x50b7e0,_0xfb274){_0x50b7e0=_0x50b7e0-0x0;let _0x184b5f=a650_0xfb27[_0x50b7e0];return _0x184b5f;};const _0x15dfaf=a650_0x184b;'use strict';const _=require(_0x15dfaf('0x34')),util=require(_0x15dfaf('0x33')),crypto=require(_0x15dfaf('0x11')),md5=require(_0x15dfaf('0x17')),sequelize=require(_0x15dfaf('0xb')),{Op}=sequelize,attributes=require(_0x15dfaf('0x2a')),addUserApplication=function(_0xb40bf,_0x5d0be4){const _0x90fcfe=_0x15dfaf,_0x508b97=[_0x90fcfe('0x14'),'WAV',_0x90fcfe('0x45')],_0x2731c5={'context':_0xb40bf[_0x90fcfe('0x9')]||_0x90fcfe('0x44'),'exten':_0x5d0be4,'type':_0x90fcfe('0x23'),'isApp':![],'UserId':_0xb40bf['id']},_0x1d339f=[{'app':_0x90fcfe('0x1c'),'appdata':'CDR(type)=internal'}];_0xb40bf[_0x90fcfe('0x38')]&&_[_0x90fcfe('0x2b')](_0x508b97,_0xb40bf[_0x90fcfe('0x38')])?(_0x1d339f['push']({'app':_0x90fcfe('0x1c'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'}),_0x1d339f[_0x90fcfe('0x6')]({'app':_0x90fcfe('0x1c'),'appdata':util[_0x90fcfe('0x37')]('_XCALLY_MIXMONITOR_FORMAT=%s',_0xb40bf['extensionMonitor'])}),_0x1d339f[_0x90fcfe('0x6')]({'app':_0x90fcfe('0x1b'),'appdata':util[_0x90fcfe('0x37')]('SIP/%s,,tTxXU(xcally-mixmonitor-context)',_0xb40bf['name'])})):_0x1d339f[_0x90fcfe('0x6')]({'app':_0x90fcfe('0x1b'),'appdata':util[_0x90fcfe('0x37')]('SIP/%s,,tTxX',_0xb40bf['name'])});_0x1d339f[_0x90fcfe('0x6')]({'app':_0x90fcfe('0x16')});for(let _0x1edeaf=0x0;_0x1edeaf<_0x1d339f[_0x90fcfe('0x30')];_0x1edeaf++){_0x1d339f[_0x1edeaf][_0x90fcfe('0x28')]=_0x1edeaf+0x1,_0x1d339f[_0x1edeaf]=_[_0x90fcfe('0x10')](_0x1d339f[_0x1edeaf],_0x2731c5);}return _0x1d339f;},addChanSpyApplications=function(_0x562e06,_0x2844fb,_0x41342c){const _0x3449f9=_0x15dfaf,_0xa5585e={'context':_0x562e06[_0x3449f9('0x9')]||_0x3449f9('0x44'),'type':_0x3449f9('0x23'),'isApp':![],'UserId':_0x562e06['id']},_0x2f048f=[];for(let _0x565773=0x0,_0x28230e=0x1;_0x565773<_0x41342c[_0x3449f9('0x30')];_0x565773++,_0x28230e=0x1){const _0xdab9f1={'exten':util['format'](_0x3449f9('0x1a'),_0x41342c[_0x565773][_0x3449f9('0x26')],_0x2844fb),'ChanSpyId':_0x41342c[_0x565773]['id']};_0x2f048f[_0x3449f9('0x6')](_[_0x3449f9('0x4')]({'app':_0x3449f9('0x1c'),'appdata':util[_0x3449f9('0x37')](_0x3449f9('0x0'),_0x3449f9('0x32')),'priority':_0x28230e++},_0xa5585e,_0xdab9f1)),_0x41342c[_0x565773][_0x3449f9('0x1d')]&&_0x2f048f[_0x3449f9('0x6')](_['merge']({'app':'MixMonitor','appdata':util[_0x3449f9('0x37')](_0x3449f9('0x24'),_0x41342c[_0x565773][_0x3449f9('0xd')]),'priority':_0x28230e++},_0xa5585e,_0xdab9f1)),_0x41342c[_0x565773][_0x3449f9('0xe')]&&_0x2f048f[_0x3449f9('0x6')](_[_0x3449f9('0x4')]({'app':_0x3449f9('0x3e'),'appdata':_0x41342c[_0x565773][_0x3449f9('0x1f')],'priority':_0x28230e++},_0xa5585e,_0xdab9f1)),_0x2f048f[_0x3449f9('0x6')](_[_0x3449f9('0x4')]({'app':'ChanSpy','appdata':util[_0x3449f9('0x37')](_0x3449f9('0x3b'),_0x562e06['name'],_0x41342c[_0x565773][_0x3449f9('0x3a')]?_0x41342c[_0x565773][_0x3449f9('0x3a')][_0x3449f9('0x1')](''):''),'priority':_0x28230e++},_0xa5585e,_0xdab9f1)),_0x41342c[_0x565773]['record']&&_0x2f048f[_0x3449f9('0x6')](_[_0x3449f9('0x4')]({'app':'StopMixMonitor','priority':_0x28230e++},_0xa5585e,_0xdab9f1));}return _0x2f048f;},getChanSpy=function(_0x245396,_0x1d1d89){return new Promise(function(_0x59be7c,_0x1d7c56){const _0x24e64e=a650_0x184b;return _0x245396[_0x24e64e('0x40')][_0x24e64e('0x5')]()[_0x24e64e('0x12')](function(_0x1b003f){const _0x43a714=_0x24e64e;if(_0x1b003f){let _0x3be6d4=addChanSpyApplications(_0x1d1d89,_0x1d1d89['internal'],_0x1b003f);return _0x1d1d89[_0x43a714('0x36')]!=_0x1d1d89[_0x43a714('0x3')]&&(_0x3be6d4=_0x3be6d4[_0x43a714('0xc')](addChanSpyApplications(_0x1d1d89,_0x1d1d89['name'],_0x1b003f))),_0x59be7c(_0x3be6d4);}return _0x59be7c([]);})['catch'](function(_0xdae700){_0x1d7c56(_0xdae700);});});},authTypes=[_0x15dfaf('0x35'),'local'];module[_0x15dfaf('0x18')]=function(_0x3d5a9c){const _0x55c910=_0x15dfaf,_0x10780b=_0x3d5a9c[_0x55c910('0x48')],_0x4d47fe=_0x3d5a9c['define'](_0x55c910('0x27'),attributes,{'tableName':_0x55c910('0x4a'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0xf001be){const _0x5f145f=_0x55c910;return _0xf001be['updateMd5Password'](),_0xf001be[_0x5f145f('0x29')]();},'beforeUpdate':function(_0x53040d){const _0x58b1f1=_0x55c910;return _0x53040d['changed'](_0x58b1f1('0x1f'))?(_0x53040d['updateMd5Password'](),_0x53040d[_0x58b1f1('0x29')]()):Promise[_0x58b1f1('0x2d')]();},'afterCreate':function(_0x271eb1){const _0x595761=_0x55c910;let _0x4a596c=addUserApplication(_0x271eb1,_0x271eb1[_0x595761('0x36')]);return _0x271eb1['internal']!=_0x271eb1[_0x595761('0x3')]&&(_0x4a596c=_0x4a596c[_0x595761('0xc')](addUserApplication(_0x271eb1,_0x271eb1['name']))),_0x10780b[_0x595761('0x7')]['bulkCreate'](_0x4a596c)['then'](function(){const _0x57ebd7=_0x595761;if(_0x271eb1[_0x57ebd7('0x32')])return getChanSpy(_0x10780b,_0x271eb1);})[_0x595761('0x12')](function(_0xb09978){const _0x435aaa=_0x595761;return _0xb09978&&_0xb09978[_0x435aaa('0x30')]?_0x10780b[_0x435aaa('0x7')][_0x435aaa('0xa')](_0xb09978):null;})[_0x595761('0x47')](function(_0x448b6b){return _0x448b6b;});},'afterUpdate':function(_0x1b6242){const _0x48a6e5=_0x55c910;return Promise['resolve']()[_0x48a6e5('0x12')](function(){const _0x255a72=_0x48a6e5;if(_0x1b6242['changed']('chanspy')||_0x1b6242['changed'](_0x255a72('0x9')))return _0x10780b['VoiceExtension'][_0x255a72('0x13')]({'where':{'UserId':_0x1b6242['id'],'type':'system','ChanSpyId':{[Op['ne']]:null}}})[_0x255a72('0x12')](function(){const _0x46f788=_0x255a72;if(_0x1b6242[_0x46f788('0x32')])return getChanSpy(_0x10780b,_0x1b6242)[_0x46f788('0x12')](function(_0x4e45cb){const _0x10900d=_0x46f788;if(_0x4e45cb&&_0x4e45cb[_0x10900d('0x30')])return _0x10780b[_0x10900d('0x7')][_0x10900d('0xa')](_0x4e45cb);});});})[_0x48a6e5('0x12')](function(){const _0x49d025=_0x48a6e5;return _0x1b6242['changed'](_0x49d025('0x38'))||_0x1b6242[_0x49d025('0x1e')](_0x49d025('0x9'))?_0x10780b[_0x49d025('0x7')][_0x49d025('0x13')]({'where':{'UserId':_0x1b6242['id'],'type':_0x49d025('0x23'),'ChanSpyId':null}})[_0x49d025('0x12')](function(){const _0x3efe9c=_0x49d025;let _0x1f6b6f=addUserApplication(_0x1b6242,_0x1b6242[_0x3efe9c('0x36')]);return _0x1b6242[_0x3efe9c('0x36')]!=_0x1b6242['name']&&(_0x1f6b6f=_0x1f6b6f[_0x3efe9c('0xc')](addUserApplication(_0x1b6242,_0x1b6242[_0x3efe9c('0x3')]))),_0x10780b['VoiceExtension'][_0x3efe9c('0xa')](_0x1f6b6f);}):null;})[_0x48a6e5('0x47')](function(_0x5630f3){return _0x5630f3;});},'afterDestroy':function(_0x4caad0){const _0x131dd7=_0x55c910;return _0x10780b[_0x131dd7('0x7')][_0x131dd7('0x13')]({'where':{'UserId':_0x4caad0['id'],'type':'system'}});}},'charset':_0x55c910('0x2f'),'collate':_0x55c910('0x25')});return _0x4d47fe[_0x55c910('0x41')][_0x55c910('0x43')]=function(_0x52dd9d,_0x121cff){const _0x1f39d5=_0x55c910;if(!_0x121cff)return this['password']===this[_0x1f39d5('0xf')](_0x52dd9d);const _0x3c8295=this;this['encryptPassword'](_0x52dd9d,function(_0x35edb0,_0x34d273){const _0x5e0265=_0x1f39d5;_0x35edb0&&_0x121cff(_0x35edb0),_0x3c8295[_0x5e0265('0x1f')]===_0x34d273?_0x121cff(null,!![]):_0x121cff(null,![]);});},_0x4d47fe[_0x55c910('0x41')][_0x55c910('0x2e')]=function(_0x361392,_0x28524d){const _0x5e8c8a=_0x55c910,_0x21f338=0x10;if(typeof arguments[0x0]===_0x5e8c8a('0x15'))_0x28524d=arguments[0x0],_0x361392=_0x21f338;else{if(typeof arguments[0x1]==='function')_0x28524d=arguments[0x1];else throw new Error(_0x5e8c8a('0x49'));}return!_0x361392&&(_0x361392=_0x21f338),crypto[_0x5e8c8a('0x39')](_0x361392,function(_0x1c4ad6,_0x5e64bf){const _0x1cf402=_0x5e8c8a;return _0x1c4ad6&&_0x28524d(_0x1c4ad6),_0x28524d(null,_0x5e64bf[_0x1cf402('0x3c')](_0x1cf402('0x22')));});},_0x4d47fe[_0x55c910('0x41')][_0x55c910('0x8')]=async function(_0x5cb9f7=0x10){return new Promise((_0x3f1ea0,_0x15a4f7)=>{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 diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index 1a3d2f0..59317cb 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a651_0x105f=['LOGININPAUSE','limit','voice','attributes','fax','User','update','SIP/%s','getLicense','GetUser','type','stringify','forEach','PAUSE','../../config/license/util','openchannel','%s%s','upsert','all','where','PauseUser','findAll','format','rpc','./user.socket','../../config/utils','model','UserVoiceQueue.penalty','MemberReport','internal','options','../../config/logger','sms','lodash','phone','role','push','length','ShowUser','bulkCreate','chat','loginInPause','interface','channel','catch','destroy','Unknown\x20channel','callysquare','name','findOne','mail','agent','count','getVoiceQueues','register','../../rediscache','LoginUser','util','merge','LOGIN','sequelize','mobile','include','moment','YYYY-MM-DD\x20HH:mm:ss','getChannels','set','map','Pause','UserVoiceQueueRt','error','debug','then','agents','message','DEFAULT\x20PAUSE','body','system'];(function(_0x108f2e,_0x105fcf){const _0x4c6f36=function(_0x529722){while(--_0x529722){_0x108f2e['push'](_0x108f2e['shift']());}};_0x4c6f36(++_0x105fcf);}(a651_0x105f,0xe2));const a651_0x4c6f=function(_0x108f2e,_0x105fcf){_0x108f2e=_0x108f2e-0x0;let _0x4c6f36=a651_0x105f[_0x108f2e];return _0x4c6f36;};const _0x436deb=a651_0x4c6f;'use strict';const _=require(_0x436deb('0x29')),util=require(_0x436deb('0x41')),db=require('../../mysqldb')['db'],logger=require(_0x436deb('0x27'))(_0x436deb('0x1f')),moment=require(_0x436deb('0x47')),utils=require(_0x436deb('0x21')),{getSocket}=require(_0x436deb('0x3f')),socket=getSocket(),sequelize=require(_0x436deb('0x44')),{Op}=sequelize;require(_0x436deb('0x20'))[_0x436deb('0x3e')](socket),exports['GetUser']=function(_0x529722){const _0x3951bf=this;return new Promise(function(_0x2f2ae7,_0x291d8f){const _0xf842c8=a651_0x4c6f;return db[_0xf842c8('0xd')][_0xf842c8('0x1d')]({'raw':_0x529722[_0xf842c8('0x26')]?_0x529722[_0xf842c8('0x26')]['raw']===undefined?!![]:![]:!![],'where':_0x529722[_0xf842c8('0x26')]?_0x529722['options']['where']||null:null,'attributes':_0x529722['options']?_0x529722['options'][_0xf842c8('0xb')]||null:null,'limit':_0x529722[_0xf842c8('0x26')]?_0x529722[_0xf842c8('0x26')][_0xf842c8('0x9')]||null:null,'include':_0x529722[_0xf842c8('0x26')]?_0x529722[_0xf842c8('0x26')]['include']?_['map'](_0x529722[_0xf842c8('0x26')][_0xf842c8('0x46')],function(_0x417ec4){const _0xa5d9f6=_0xf842c8;return{'model':db[_0x417ec4[_0xa5d9f6('0x22')]],'as':_0x417ec4['as'],'attributes':_0x417ec4[_0xa5d9f6('0xb')],'include':_0x417ec4[_0xa5d9f6('0x46')]?_[_0xa5d9f6('0x4b')](_0x417ec4[_0xa5d9f6('0x46')],function(_0x227220){const _0x150883=_0xa5d9f6;return{'model':db[_0x227220[_0x150883('0x22')]],'as':_0x227220['as'],'attributes':_0x227220[_0x150883('0xb')],'include':_0x227220[_0x150883('0x46')]?_[_0x150883('0x4b')](_0x227220[_0x150883('0x46')],function(_0x532c30){const _0x81a3c5=_0x150883;return{'model':db[_0x532c30[_0x81a3c5('0x22')]],'as':_0x532c30['as'],'attributes':_0x532c30[_0x81a3c5('0xb')]};}):[]};}):[]};}):[]:[]})[_0xf842c8('0x2')](function(_0x523f3f){const _0x27e1a4=_0xf842c8;logger['info'](_0x27e1a4('0x11'),_0x529722),logger['debug'](_0x27e1a4('0x11'),_0x529722,JSON[_0x27e1a4('0x13')](_0x523f3f)),_0x2f2ae7(_0x523f3f);})[_0xf842c8('0x34')](function(_0x1a0c6e){const _0xa4b546=_0xf842c8;logger[_0xa4b546('0x0')](_0xa4b546('0x11'),_0x1a0c6e[_0xa4b546('0x4')],_0x529722),_0x291d8f(_0x3951bf[_0xa4b546('0x0')](0x1f4,_0x1a0c6e[_0xa4b546('0x4')]));});});},exports[_0x436deb('0x2e')]=function(_0x2adab6){const _0x1643fe=this;return new Promise(function(_0x2ee8f3,_0x3ed150){const _0x4f58ed=a651_0x4c6f;return db[_0x4f58ed('0xd')][_0x4f58ed('0x39')]({'raw':_0x2adab6[_0x4f58ed('0x26')]?_0x2adab6['options']['raw']===undefined?!![]:![]:!![],'where':_0x2adab6[_0x4f58ed('0x26')]?_0x2adab6[_0x4f58ed('0x26')]['where']||null:null,'attributes':_0x2adab6['options']?_0x2adab6[_0x4f58ed('0x26')][_0x4f58ed('0xb')]||null:null,'include':_0x2adab6['options']?_0x2adab6['options'][_0x4f58ed('0x46')]?_[_0x4f58ed('0x4b')](_0x2adab6['options'][_0x4f58ed('0x46')],function(_0x55baa4){const _0x569281=_0x4f58ed;return{'model':db[_0x55baa4['model']],'as':_0x55baa4['as'],'attributes':_0x55baa4[_0x569281('0xb')],'include':_0x55baa4[_0x569281('0x46')]?_[_0x569281('0x4b')](_0x55baa4[_0x569281('0x46')],function(_0x3b3eb7){const _0x432844=_0x569281;return{'model':db[_0x3b3eb7[_0x432844('0x22')]],'as':_0x3b3eb7['as'],'attributes':_0x3b3eb7[_0x432844('0xb')],'include':_0x3b3eb7[_0x432844('0x46')]?_[_0x432844('0x4b')](_0x3b3eb7[_0x432844('0x46')],function(_0x5a0fc6){const _0x36f8c5=_0x432844;return{'model':db[_0x5a0fc6['model']],'as':_0x5a0fc6['as'],'attributes':_0x5a0fc6[_0x36f8c5('0xb')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xd4125d){const _0x32186f=_0x4f58ed;logger['info'](_0x32186f('0x2e'),_0x2adab6),logger[_0x32186f('0x1')](_0x32186f('0x2e'),_0x2adab6,JSON['stringify'](_0xd4125d)),_0x2ee8f3(_0xd4125d);})['catch'](function(_0xee9116){const _0x10976a=_0x4f58ed;logger['error'](_0x10976a('0x2e'),_0xee9116[_0x10976a('0x4')],_0x2adab6),_0x3ed150(_0x1643fe[_0x10976a('0x0')](0x1f4,_0xee9116['message']));});});},exports[_0x436deb('0x1c')]=function(_0x37d9c7){const _0x5712cc=this;return new Promise(function(_0x40956a,_0x11e74a){const _0x52645c=a651_0x4c6f;let _0x400e7b;return db[_0x52645c('0xd')]['findOne']({'where':_0x37d9c7[_0x52645c('0x26')][_0x52645c('0x1b')]||{},'attributes':['id',_0x52645c('0x38'),'role',_0x52645c('0x25'),_0x52645c('0x32')]})[_0x52645c('0x2')](function(_0x55a047){const _0x1429d2=_0x52645c;if(_0x55a047)return _0x400e7b=_0x55a047,db[_0x1429d2('0x4d')][_0x1429d2('0xe')]({'paused':0x1},{'where':{'UserId':_0x400e7b['id']},'individualHooks':!![]});})[_0x52645c('0x2')](function(){const _0x51d4b8=_0x52645c;if(_0x400e7b)return db[_0x51d4b8('0x24')][_0x51d4b8('0x1d')]({'where':{'membername':_0x400e7b[_0x51d4b8('0x38')],'type':_0x51d4b8('0x15'),'exitAt':null}});})[_0x52645c('0x2')](function(_0x5f011f){const _0x1cdefd=_0x52645c;if(_0x400e7b){if(_0x5f011f&&_0x5f011f[_0x1cdefd('0x2d')]){const _0x3a1b25=moment()[_0x1cdefd('0x1e')](_0x1cdefd('0x48'));for(let _0x616c0f=0x0,_0x101f26=_0x5f011f[_0x1cdefd('0x2d')];_0x616c0f<_0x101f26;_0x616c0f++){_0x5f011f[_0x616c0f]['update']({'exitAt':_0x3a1b25});}}}})[_0x52645c('0x2')](function(){const _0x54916b=_0x52645c;if(_0x400e7b){const _0xc094d8=[],_0x2f0029=utils[_0x54916b('0x49')]();return _0x2f0029['forEach'](function(_0x3d4892){const _0x2bfbb0=_0x54916b;_0xc094d8[_0x2bfbb0('0x2c')]({'channel':_0x3d4892,'membername':_0x400e7b[_0x2bfbb0('0x38')],'interface':_['isNil'](_0x400e7b['interface'])?util[_0x2bfbb0('0x1e')](_0x2bfbb0('0xf'),_0x400e7b[_0x2bfbb0('0x38')]):_0x400e7b[_0x2bfbb0('0x32')],'type':_0x2bfbb0('0x15'),'enterAt':moment()[_0x2bfbb0('0x1e')](_0x2bfbb0('0x48')),'data1':_0x37d9c7['body'][_0x2bfbb0('0x12')]||_0x2bfbb0('0x5'),'role':_0x400e7b[_0x2bfbb0('0x2b')],'internal':_0x400e7b['internal'],'uniqueid':_0x37d9c7[_0x2bfbb0('0x6')]['uniqueid']||null});}),db[_0x54916b('0x24')][_0x54916b('0x2f')](_0xc094d8,{'individualHooks':!![]});}})[_0x52645c('0x2')](function(){const _0x42573c=_0x52645c;if(_0x400e7b)return _0x400e7b[_0x42573c('0xe')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0x37d9c7[_0x42573c('0x6')][_0x42573c('0x12')]||_0x42573c('0x5'),'lastPauseAt':moment()[_0x42573c('0x1e')](_0x42573c('0x48'))});})['then'](function(_0x1a4e52){_0x40956a(_0x1a4e52);})['catch'](function(_0x15bb51){const _0x4d7d23=_0x52645c;_0x11e74a(_0x5712cc[_0x4d7d23('0x0')](0x1f4,_0x15bb51['message']));});});},exports['UnpauseUser']=function(_0x1b2ad1){const _0x5948d5=this;return new Promise(function(_0x3a9291,_0x4939d5){const _0x3b0c7f=a651_0x4c6f;let _0x315c11;return db[_0x3b0c7f('0xd')][_0x3b0c7f('0x39')]({'where':_0x1b2ad1[_0x3b0c7f('0x26')][_0x3b0c7f('0x1b')]||{},'attributes':['id',_0x3b0c7f('0x38')]})[_0x3b0c7f('0x2')](function(_0x42c4aa){const _0x2abd7a=_0x3b0c7f;if(_0x42c4aa){_0x315c11=_0x42c4aa;if(_0x1b2ad1['body']['channel']&&!utils['isValidChannel'](_0x1b2ad1[_0x2abd7a('0x6')]['channel']))throw new Error(_0x2abd7a('0x36'));switch(_0x1b2ad1[_0x2abd7a('0x6')][_0x2abd7a('0x33')]){case _0x2abd7a('0xa'):return db[_0x2abd7a('0x4d')][_0x2abd7a('0xe')]({'paused':0x0},{'where':{'UserId':_0x315c11['id']}})[_0x2abd7a('0x2')](function(){const _0x5b7b54=_0x2abd7a;return db[_0x5b7b54('0x24')][_0x5b7b54('0x39')]({'where':{'channel':_0x1b2ad1[_0x5b7b54('0x6')][_0x5b7b54('0x33')],'membername':_0x315c11[_0x5b7b54('0x38')],'type':'PAUSE','exitAt':null}});})[_0x2abd7a('0x2')](function(_0x30e37a){const _0x223c7b=_0x2abd7a;if(_0x30e37a)return _0x30e37a[_0x223c7b('0xe')]({'exitAt':moment()[_0x223c7b('0x1e')](_0x223c7b('0x48')),'data2':_0x223c7b('0x7')},{'individualHooks':!![]});return null;})[_0x2abd7a('0x2')](function(){return _0x315c11['update']({'voicePause':![]});});case _0x2abd7a('0x3a'):case _0x2abd7a('0x30'):case _0x2abd7a('0xc'):case _0x2abd7a('0x28'):case _0x2abd7a('0x17'):return db[_0x2abd7a('0x24')][_0x2abd7a('0x39')]({'where':{'channel':_0x1b2ad1['body'][_0x2abd7a('0x33')],'membername':_0x315c11['name'],'type':_0x2abd7a('0x15'),'exitAt':null}})[_0x2abd7a('0x2')](function(_0x14c6ca){const _0x247d76=_0x2abd7a;return _0x14c6ca[_0x247d76('0xe')]({'exitAt':moment()[_0x247d76('0x1e')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'},{'individualHooks':!![]});})[_0x2abd7a('0x2')](function(){const _0x48ee84=_0x2abd7a,_0x2f1a79={};return _[_0x48ee84('0x4a')](_0x2f1a79,util[_0x48ee84('0x1e')](_0x48ee84('0x18'),_0x1b2ad1['body'][_0x48ee84('0x33')],_0x48ee84('0x4c')),![]),_0x315c11[_0x48ee84('0xe')](_0x2f1a79);});default:return db[_0x2abd7a('0x4d')][_0x2abd7a('0xe')]({'paused':0x0},{'where':{'UserId':_0x315c11['id']}})[_0x2abd7a('0x2')](function(){const _0x154af6=_0x2abd7a;return db[_0x154af6('0x24')][_0x154af6('0x1d')]({'where':{'membername':_0x315c11[_0x154af6('0x38')],'type':_0x154af6('0x15'),'exitAt':null}});})[_0x2abd7a('0x2')](function(_0x15ea54){const _0x42d99a=_0x2abd7a,_0x2f2b22=[];return _0x15ea54[_0x42d99a('0x14')](function(_0x4d8c21){const _0x22e043=_0x42d99a;_0x2f2b22[_0x22e043('0x2c')](_0x4d8c21['update']({'exitAt':moment()[_0x22e043('0x1e')](_0x22e043('0x48')),'data2':_0x22e043('0x7')}));}),Promise[_0x42d99a('0x1a')](_0x2f2b22);})[_0x2abd7a('0x2')](function(){const _0x23455b=_0x2abd7a;return _0x315c11[_0x23455b('0xe')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})[_0x3b0c7f('0x2')](function(_0x3ab600){_0x3a9291(_0x3ab600);})[_0x3b0c7f('0x34')](function(_0x4fa7d9){const _0x1a816a=_0x3b0c7f;_0x4939d5(_0x5948d5[_0x1a816a('0x0')](0x1f4,_0x4fa7d9[_0x1a816a('0x4')]));});});},exports['LogoutUser']=function(_0x3a2d39){const _0xbf6757=this;return new Promise(function(_0xed6b24,_0x50eb84){const _0x56514b=a651_0x4c6f;let _0x247cdf;return db[_0x56514b('0xd')][_0x56514b('0x39')]({'where':_0x3a2d39[_0x56514b('0x26')][_0x56514b('0x1b')]||{},'attributes':['id','name']})['then'](function(_0x1139a4){const _0x12a437=_0x56514b;if(_0x1139a4)return _0x247cdf=_0x1139a4,db['UserVoiceQueueRt'][_0x12a437('0x35')]({'where':{'membername':_0x247cdf['name']},'individualHooks':!![]});})[_0x56514b('0x2')](function(){const _0x160752=_0x56514b;if(_0x247cdf)return db[_0x160752('0x24')][_0x160752('0x1d')]({'where':{'membername':_0x247cdf[_0x160752('0x38')],'exitAt':null}});})[_0x56514b('0x2')](function(_0x5004c1){const _0x40ee19=_0x56514b;if(_0x247cdf){if(_0x5004c1&&_0x5004c1[_0x40ee19('0x2d')]){const _0x41180a=[];return _0x5004c1[_0x40ee19('0x14')](function(_0x50ce66){const _0x760af9=_0x40ee19;_0x41180a[_0x760af9('0x2c')](_0x50ce66[_0x760af9('0xe')]({'exitAt':moment()[_0x760af9('0x1e')](_0x760af9('0x48'))}));}),Promise[_0x40ee19('0x1a')](_0x41180a);}}})[_0x56514b('0x2')](function(){const _0x4ed622=_0x56514b;if(_0x247cdf)return _0x247cdf[_0x4ed622('0xe')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x5dd0a9){_0xed6b24(_0x5dd0a9);})['catch'](function(_0x20cb38){const _0x1462bf=_0x56514b;_0x50eb84(_0xbf6757[_0x1462bf('0x0')](0x1f4,_0x20cb38[_0x1462bf('0x4')]));});});},exports[_0x436deb('0x40')]=function(_0x1dfd49){const _0x56052c=this;return new Promise(function(_0x48b5fd,_0x4c76f7){const _0x416250=a651_0x4c6f;let _0x32ee74,_0x15828f,_0x37663e,_0x188637;return db['User'][_0x416250('0x39')]({'where':_0x1dfd49['options']['where']||{},'attributes':['id',_0x416250('0x38'),'role',_0x416250('0x45'),_0x416250('0x2a'),_0x416250('0x25'),_0x416250('0x31'),_0x416250('0x32')]})[_0x416250('0x2')](function(_0x246e69){const _0x4510f0=_0x416250;if(_0x246e69)return _0x32ee74=_0x246e69,_0x188637=_0x1dfd49[_0x4510f0('0x6')]['interface']?_0x1dfd49[_0x4510f0('0x6')]['interface']:util[_0x4510f0('0x1e')](_0x4510f0('0xf'),_0x32ee74[_0x4510f0('0x38')]),db[_0x4510f0('0xd')][_0x4510f0('0x3c')]({'where':{'role':_0x4510f0('0x3b'),'online':!![],'id':{[Op['ne']]:_0x32ee74['id']}}});})[_0x416250('0x2')](function(_0x32fd8e){const _0x2bbe7f=_0x416250;if(_0x32fd8e)return _0x37663e=_0x32fd8e,require(_0x2bbe7f('0x16'))[_0x2bbe7f('0x10')]();})[_0x416250('0x2')](function(_0x5f1f39){const _0x5d70d9=_0x416250;if(_0x5f1f39&&_0x5f1f39[_0x5d70d9('0x3')]&&_0x37663e>=_0x5f1f39[_0x5d70d9('0x3')])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})[_0x416250('0x2')](function(){const _0x317610=_0x416250;if(_0x32ee74)return db[_0x317610('0x4d')]['destroy']({'where':{'membername':_0x32ee74[_0x317610('0x38')]},'individualHooks':!![]});})[_0x416250('0x2')](function(){const _0x1347c5=_0x416250;if(_0x32ee74)return _0x32ee74[_0x1347c5('0x3d')]({'raw':!![]});})[_0x416250('0x2')](function(_0xc2bd8c){const _0x3605e4=_0x416250;if(_0x32ee74){if(_0xc2bd8c){const _0x212d35=[];_0x15828f=_0xc2bd8c;if(_0x15828f['length']){for(let _0x230d40=0x0;_0x230d40<_0x15828f[_0x3605e4('0x2d')];_0x230d40++){_0x212d35[_0x3605e4('0x2c')](db[_0x3605e4('0x4d')][_0x3605e4('0x19')]({'membername':_0x32ee74['name'],'UserId':_0x32ee74['id'],'queue_name':_0x15828f[_0x230d40][_0x3605e4('0x38')],'VoiceQueueId':_0x15828f[_0x230d40]['id'],'interface':_0x188637,'paused':_0x32ee74[_0x3605e4('0x31')]||![],'penalty':_0x15828f[_0x230d40][_0x3605e4('0x23')]||0x0}));}return Promise[_0x3605e4('0x1a')](_0x212d35);}}}})[_0x416250('0x2')](function(){const _0x34d2e6=_0x416250;if(_0x32ee74)return db['MemberReport'][_0x34d2e6('0x1d')]({'where':{'membername':_0x32ee74[_0x34d2e6('0x38')],'exitAt':null}});})[_0x416250('0x2')](function(_0x947c15){const _0x2d2f65=_0x416250;if(_0x32ee74){if(_0x947c15&&_0x947c15[_0x2d2f65('0x2d')]){const _0x5c42c5=[];return _0x947c15[_0x2d2f65('0x14')](function(_0x4ba4f3){const _0x4ae8fc=_0x2d2f65;_0x5c42c5[_0x4ae8fc('0x2c')](_0x4ba4f3[_0x4ae8fc('0xe')]({'exitAt':moment()[_0x4ae8fc('0x1e')](_0x4ae8fc('0x48'))}));}),Promise[_0x2d2f65('0x1a')](_0x5c42c5);}}})['then'](function(){const _0x519721=_0x416250;if(_0x32ee74){const _0x2a4cb9=[],_0x2f29eb=[],_0x6804d=utils[_0x519721('0x49')](),_0x26d8fc={'membername':_0x32ee74[_0x519721('0x38')],'interface':_0x188637,'enterAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x32ee74[_0x519721('0x2b')],'internal':_0x32ee74[_0x519721('0x25')]};return _0x6804d[_0x519721('0x14')](function(_0x4043d9){const _0x6fcf3f=_0x519721;_0x2a4cb9['push'](_['merge']({'channel':_0x4043d9,'type':_0x6fcf3f('0x43'),'data1':_0x6fcf3f('0x37'),'data2':_0x188637},_0x26d8fc)),_0x32ee74[_0x6fcf3f('0x31')]&&_0x2f29eb[_0x6fcf3f('0x2c')](_[_0x6fcf3f('0x42')]({'channel':_0x4043d9,'type':_0x6fcf3f('0x15'),'data1':_0x6fcf3f('0x8')},_0x26d8fc));}),db['MemberReport'][_0x519721('0x2f')](_0x2a4cb9['concat'](_0x2f29eb),{'individualHooks':!![]});}})['then'](function(){const _0x169da1=_0x416250;if(_0x32ee74)return _0x32ee74['update']({'online':!![],'lastLoginAt':moment()[_0x169da1('0x1e')](_0x169da1('0x48')),'voicePause':_0x32ee74[_0x169da1('0x31')]||![],'mailPause':_0x32ee74[_0x169da1('0x31')]||![],'chatPause':_0x32ee74[_0x169da1('0x31')]||![],'faxPause':_0x32ee74['loginInPause']||![],'smsPause':_0x32ee74[_0x169da1('0x31')]||![],'openchannelPause':_0x32ee74[_0x169da1('0x31')]||![],'pauseType':_0x32ee74[_0x169da1('0x31')]?_0x169da1('0x8'):null,'lastPauseAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'interface':_0x188637});})[_0x416250('0x2')](function(_0x4e9305){_0x48b5fd(_0x4e9305);})[_0x416250('0x34')](function(_0x17a90d){const _0x3755a5=_0x416250;_0x4c76f7(_0x56052c['error'](0x1f4,_0x17a90d[_0x3755a5('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index 96c7260..6038007 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a652_0x5daa=['length','save','./user.events','update','user:','register'];(function(_0x1dc257,_0x5daa85){const _0x6a763=function(_0x6a2b58){while(--_0x6a2b58){_0x1dc257['push'](_0x1dc257['shift']());}};_0x6a763(++_0x5daa85);}(a652_0x5daa,0x176));const a652_0x6a76=function(_0x1dc257,_0x5daa85){_0x1dc257=_0x1dc257-0x0;let _0x6a763=a652_0x5daa[_0x1dc257];return _0x6a763;};const _0x43f051=a652_0x6a76;'use strict';const UserEvents=require(_0x43f051('0x0')),events=[_0x43f051('0x5'),'remove',_0x43f051('0x1')];function createListener(_0x6a2b58,_0x1321a8){return function(_0x454ea7){_0x1321a8['emit'](_0x6a2b58,_0x454ea7);};}exports[_0x43f051('0x3')]=function(_0x28a0cb){const _0x481e2e=_0x43f051;for(let _0x18895c=0x0,_0x7c74a6=events[_0x481e2e('0x4')];_0x18895c<_0x7c74a6;_0x18895c++){const _0x1b7ad3=events[_0x18895c],_0x5a496c=createListener(_0x481e2e('0x2')+_0x1b7ad3,_0x28a0cb);UserEvents['on'](_0x1b7ad3,_0x5a496c);}}; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index bed3bcc..e345449 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a653_0x3eb4=['exports'];(function(_0x10d4cd,_0x3eb4db){const _0x43aeb4=function(_0x4c9495){while(--_0x4c9495){_0x10d4cd['push'](_0x10d4cd['shift']());}};_0x43aeb4(++_0x3eb4db);}(a653_0x3eb4,0x1b5));const a653_0x43ae=function(_0x10d4cd,_0x3eb4db){_0x10d4cd=_0x10d4cd-0x0;let _0x43aeb4=a653_0x3eb4[_0x10d4cd];return _0x43aeb4;};const _0x4bb64a=a653_0x43ae;'use strict';const express=require('express'),router=express['Router']();module[_0x4bb64a('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index 78bd531..0f44faf 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a654_0x4100=['exports','INTEGER','sequelize'];(function(_0x3ee14b,_0x4100a8){const _0x2b6d46=function(_0x11163f){while(--_0x11163f){_0x3ee14b['push'](_0x3ee14b['shift']());}};_0x2b6d46(++_0x4100a8);}(a654_0x4100,0x156));const a654_0x2b6d=function(_0x3ee14b,_0x4100a8){_0x3ee14b=_0x3ee14b-0x0;let _0x2b6d46=a654_0x4100[_0x3ee14b];return _0x2b6d46;};const _0xe486a5=a654_0x2b6d;'use strict';const Sequelize=require(_0xe486a5('0x2'));module[_0xe486a5('0x0')]={'penalty':{'type':Sequelize[_0xe486a5('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userChatQueue/userChatQueue.model.js b/server/api/userChatQueue/userChatQueue.model.js index 18f4874..ec96957 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a655_0x23c7=['exports','user_has_chat_queues','./userChatQueue.attributes','define'];(function(_0xba6a49,_0x23c7e7){const _0x199361=function(_0x484883){while(--_0x484883){_0xba6a49['push'](_0xba6a49['shift']());}};_0x199361(++_0x23c7e7);}(a655_0x23c7,0x178));const a655_0x1993=function(_0xba6a49,_0x23c7e7){_0xba6a49=_0xba6a49-0x0;let _0x199361=a655_0x23c7[_0xba6a49];return _0x199361;};const _0x3c7d0f=a655_0x1993;'use strict';const attributes=require(_0x3c7d0f('0x2'));module[_0x3c7d0f('0x0')]=function(_0x484883){const _0x3dd3e4=_0x3c7d0f,_0x477f49=_0x484883[_0x3dd3e4('0x3')]('UserChatQueue',attributes,{'tableName':_0x3dd3e4('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x477f49;}; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index b1daf1a..da8ca81 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -const a656_0x108b=['express','exports','Router'];(function(_0x40246a,_0x108b9e){const _0x8b2cec=function(_0x433c02){while(--_0x433c02){_0x40246a['push'](_0x40246a['shift']());}};_0x8b2cec(++_0x108b9e);}(a656_0x108b,0x1cb));const a656_0x8b2c=function(_0x40246a,_0x108b9e){_0x40246a=_0x40246a-0x0;let _0x8b2cec=a656_0x108b[_0x40246a];return _0x8b2cec;};const _0x233de4=a656_0x8b2c;'use strict';const express=require(_0x233de4('0x0')),router=express[_0x233de4('0x2')]();module[_0x233de4('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index 33b7a81..0018caf 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a657_0x1005=['exports','STRING','INTEGER'];(function(_0x7cbd48,_0x1005cf){const _0x448540=function(_0x57bfb2){while(--_0x57bfb2){_0x7cbd48['push'](_0x7cbd48['shift']());}};_0x448540(++_0x1005cf);}(a657_0x1005,0x12d));const a657_0x4485=function(_0x7cbd48,_0x1005cf){_0x7cbd48=_0x7cbd48-0x0;let _0x448540=a657_0x1005[_0x7cbd48];return _0x448540;};const _0x58e836=a657_0x4485;'use strict';const Sequelize=require('sequelize');module[_0x58e836('0x2')]={'penalty':{'type':Sequelize[_0x58e836('0x1')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x58e836('0x1')],'defaultValue':0x0},'queue':{'type':Sequelize[_0x58e836('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index 0bd43ec..f915096 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a658_0x578e=['user_has_fax_queues','./userFaxQueue.attributes','UserFaxQueue','exports','define'];(function(_0x521629,_0x578e65){const _0x4c2bd1=function(_0x420037){while(--_0x420037){_0x521629['push'](_0x521629['shift']());}};_0x4c2bd1(++_0x578e65);}(a658_0x578e,0xc0));const a658_0x4c2b=function(_0x521629,_0x578e65){_0x521629=_0x521629-0x0;let _0x4c2bd1=a658_0x578e[_0x521629];return _0x4c2bd1;};const _0x4a847a=a658_0x4c2b;'use strict';const attributes=require(_0x4a847a('0x4'));module[_0x4a847a('0x1')]=function(_0x420037){const _0x4257aa=_0x4a847a,_0x1c0feb=_0x420037[_0x4257aa('0x2')](_0x4257aa('0x0'),attributes,{'tableName':_0x4257aa('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c0feb;}; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index 40867a2..9032aaf 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a659_0x4e02=['Router','exports'];(function(_0x141c4e,_0x4e0205){const _0x5abc98=function(_0x5b601e){while(--_0x5b601e){_0x141c4e['push'](_0x141c4e['shift']());}};_0x5abc98(++_0x4e0205);}(a659_0x4e02,0x96));const a659_0x5abc=function(_0x141c4e,_0x4e0205){_0x141c4e=_0x141c4e-0x0;let _0x5abc98=a659_0x4e02[_0x141c4e];return _0x5abc98;};const _0x5995bf=a659_0x5abc;'use strict';const express=require('express'),router=express[_0x5995bf('0x0')]();module[_0x5995bf('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index b580d3b..d48056d 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a660_0x1d71=['exports'];(function(_0x2fd540,_0x1d7107){const _0x48a4fd=function(_0x5a59f1){while(--_0x5a59f1){_0x2fd540['push'](_0x2fd540['shift']());}};_0x48a4fd(++_0x1d7107);}(a660_0x1d71,0x1b7));const a660_0x48a4=function(_0x2fd540,_0x1d7107){_0x2fd540=_0x2fd540-0x0;let _0x48a4fd=a660_0x1d71[_0x2fd540];return _0x48a4fd;};const _0x23b932=a660_0x48a4;'use strict';const Sequelize=require('sequelize');module[_0x23b932('0x0')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userMailQueue/userMailQueue.model.js b/server/api/userMailQueue/userMailQueue.model.js index 175a569..38cc798 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a661_0x2f75=['define','UserMailQueue','exports','user_has_mail_queues'];(function(_0x26f824,_0x2f758f){const _0x564bfe=function(_0x363fda){while(--_0x363fda){_0x26f824['push'](_0x26f824['shift']());}};_0x564bfe(++_0x2f758f);}(a661_0x2f75,0x115));const a661_0x564b=function(_0x26f824,_0x2f758f){_0x26f824=_0x26f824-0x0;let _0x564bfe=a661_0x2f75[_0x26f824];return _0x564bfe;};const _0x33cdc2=a661_0x564b;'use strict';const attributes=require('./userMailQueue.attributes');module[_0x33cdc2('0x1')]=function(_0x363fda){const _0x1908c6=_0x33cdc2,_0x397c91=_0x363fda[_0x1908c6('0x3')](_0x1908c6('0x0'),attributes,{'tableName':_0x1908c6('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x397c91;}; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index 38963b4..e32683a 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a662_0x2346=['Router'];(function(_0x1790dd,_0x2346e6){const _0x132e84=function(_0x539ed4){while(--_0x539ed4){_0x1790dd['push'](_0x1790dd['shift']());}};_0x132e84(++_0x2346e6);}(a662_0x2346,0x173));const a662_0x132e=function(_0x1790dd,_0x2346e6){_0x1790dd=_0x1790dd-0x0;let _0x132e84=a662_0x2346[_0x1790dd];return _0x132e84;};const _0x18767f=a662_0x132e;'use strict';const express=require('express'),router=express[_0x18767f('0x0')]();module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index fcc89a6..7ab9753 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a663_0x507d=['exports','sequelize','INTEGER'];(function(_0x12b21a,_0x507dfa){const _0x38c4e6=function(_0xa707ee){while(--_0xa707ee){_0x12b21a['push'](_0x12b21a['shift']());}};_0x38c4e6(++_0x507dfa);}(a663_0x507d,0x1f3));const a663_0x38c4=function(_0x12b21a,_0x507dfa){_0x12b21a=_0x12b21a-0x0;let _0x38c4e6=a663_0x507d[_0x12b21a];return _0x38c4e6;};const _0x5ca8ad=a663_0x38c4;'use strict';const Sequelize=require(_0x5ca8ad('0x0'));module[_0x5ca8ad('0x2')]={'penalty':{'type':Sequelize[_0x5ca8ad('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js index d50f226..73ed5e4 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a664_0x4a63=['user_has_openchannel_queues','./userOpenchannelQueue.attributes','exports','define'];(function(_0x4ca22f,_0x4a6354){const _0x407a1c=function(_0x740caf){while(--_0x740caf){_0x4ca22f['push'](_0x4ca22f['shift']());}};_0x407a1c(++_0x4a6354);}(a664_0x4a63,0x103));const a664_0x407a=function(_0x4ca22f,_0x4a6354){_0x4ca22f=_0x4ca22f-0x0;let _0x407a1c=a664_0x4a63[_0x4ca22f];return _0x407a1c;};const _0x4ad803=a664_0x407a;'use strict';const attributes=require(_0x4ad803('0x2'));module[_0x4ad803('0x3')]=function(_0x740caf){const _0x4753fb=_0x4ad803,_0x4c4159=_0x740caf[_0x4753fb('0x0')]('UserOpenchannelQueue',attributes,{'tableName':_0x4753fb('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c4159;}; \ No newline at end of file +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 diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index 7fb14a7..e7120ea 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a665_0x1211=['Router','/describe','/:id','../../components/auth/service','./userProfile.controller','get','isAuthenticated','exports','removeSections','describe','destroy','clone','getResources','addSections','getSections','show','delete','/:id/sections','create','post','removeResources','/:id/resources','/:id/clone','put'];(function(_0x2e6836,_0x1211cf){const _0x260232=function(_0x544004){while(--_0x544004){_0x2e6836['push'](_0x2e6836['shift']());}};_0x260232(++_0x1211cf);}(a665_0x1211,0x6f));const a665_0x2602=function(_0x2e6836,_0x1211cf){_0x2e6836=_0x2e6836-0x0;let _0x260232=a665_0x1211[_0x2e6836];return _0x260232;};const _0x1c76d2=a665_0x2602;'use strict';const express=require('express'),router=express[_0x1c76d2('0x9')](),auth=require(_0x1c76d2('0xc')),controller=require(_0x1c76d2('0xd'));router[_0x1c76d2('0xe')]('/',auth[_0x1c76d2('0xf')](),controller['index']),router['get'](_0x1c76d2('0xa'),auth['isAuthenticated'](),controller[_0x1c76d2('0x12')]),router[_0x1c76d2('0xe')](_0x1c76d2('0xb'),auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x0')]),router[_0x1c76d2('0xe')]('/:id/sections',auth['isAuthenticated'](),controller[_0x1c76d2('0x17')]),router[_0x1c76d2('0xe')](_0x1c76d2('0x6'),auth['isAuthenticated'](),controller[_0x1c76d2('0x15')]),router[_0x1c76d2('0x4')]('/',auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x3')]),router[_0x1c76d2('0x4')](_0x1c76d2('0x7'),auth['isAuthenticated'](),controller[_0x1c76d2('0x14')]),router[_0x1c76d2('0x4')]('/:id/sections',auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x16')]),router[_0x1c76d2('0x4')](_0x1c76d2('0x6'),auth[_0x1c76d2('0xf')](),controller['addResources']),router[_0x1c76d2('0x8')](_0x1c76d2('0xb'),auth[_0x1c76d2('0xf')](),controller['update']),router['delete'](_0x1c76d2('0xb'),auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x13')]),router[_0x1c76d2('0x1')](_0x1c76d2('0x2'),auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x11')]),router[_0x1c76d2('0x1')]('/:id/resources',auth[_0x1c76d2('0xf')](),controller[_0x1c76d2('0x5')]),module[_0x1c76d2('0x10')]=router; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index 29cba6c..c28f6ff 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a666_0x3685=['name','exports','STRING','setDataValue','split','join','getDataValue','crudPermissions','sequelize'];(function(_0x2c9cbe,_0x368510){const _0xe5da82=function(_0x466094){while(--_0x466094){_0x2c9cbe['push'](_0x2c9cbe['shift']());}};_0xe5da82(++_0x368510);}(a666_0x3685,0xbc));const a666_0xe5da=function(_0x2c9cbe,_0x368510){_0x2c9cbe=_0x2c9cbe-0x0;let _0xe5da82=a666_0x3685[_0x2c9cbe];return _0xe5da82;};const _0x2c6d1b=a666_0xe5da;'use strict';const Sequelize=require(_0x2c6d1b('0x0'));module[_0x2c6d1b('0x2')]={'name':{'type':Sequelize[_0x2c6d1b('0x3')],'allowNull':![],'unique':_0x2c6d1b('0x1')},'crudPermissions':{'type':Sequelize[_0x2c6d1b('0x3')],'set':function(_0x466094){const _0x433ec0=_0x2c6d1b;this[_0x433ec0('0x4')](_0x433ec0('0x8'),_0x466094?_0x466094[_0x433ec0('0x6')](''):[]);},'get':function(){const _0x263c16=_0x2c6d1b;return this[_0x263c16('0x7')](_0x263c16('0x8'))?this[_0x263c16('0x7')](_0x263c16('0x8'))[_0x263c16('0x5')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x2c6d1b('0x3')],'allowNull':!![]}}; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index a7e1af8..eb4974b 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a667_0x3bd4=['addSections','VoiceExtension','musiconholds','create','offset','admin','VoiceChanSpy','childModel','../../mysqldb','metrics','toLowerCase','value','nolimit','User','WhatsappQueue','chanspies','lodash','intersection','SquareRecording','destroy','internalroutes','rawAttributes','teams','Sound','smsaccounts','clone','telephones','mailqueues','ListId','tag','like','json','and','role','ignore','isEmpty','./userProfile.socket','triggers','VoiceQueue','customdashboards','DeskAccount','Trunk','membername','send','show','foreignKey','sequelize','plugins','MailSubstatus','includes','Tag','order','crudPermissions','removeResources','AnalyticMetric','zohoaccounts','find','name','findAll','SquareProject','Plugin','removeSections','omit','SmsQueue','VoiceQueues','SquareProjects','ivrcampaigns','field','contexts','UserProfileSection','chatqueues','include','body','Resources','Team','length','ZohoAccount','Users','openchannelqueues','CmCustomField','map','vtigeraccounts','forEach','agents','JscriptyProject','Lists','trunks','options','WhatsappAccount','../../config/logger','AnalyticExtractedReport','fields','reportType','ChatQueue','parentSections','companies','Dashboard','voicerecordings','variables','smsqueues','projects','cannedanswers','attributes','union','each','sectionId','projectName','enabled','globalcustomfields','ids','type','bulkCreate','end','inboundroutes','intervals','extractedreports','getSections','faxqueues','get','rows','then','api','DefaultReports','squarerecordings','model','UserProfileResource','../../components/parsers/qs','key','Agents','SugarcrmAccount','sort','Template','Unknown\x20section','color','whatsappaccounts','SquareOdbc','UserProfile','chatwebsites','sugarcrmaccounts','odbc','default','findOne','OpenchannelAccount','CannedAnswer','catch','index','custom','Telephones','resourceId','merge','Tags','register','VoiceMail','params','MailAccount','where','includeAll','limit','SmsAccount','VIRTUAL','transaction','push','outbound','FreshdeskAccount','openchannelaccounts','telephone','inbound','sendStatus','describe','keys','count','Invalid\x20section\x20\x27','all','CmCompany','getResources','filters','Trigger','scheduler','updatedAt','filter','sounds','reportId','../../rediscache','associatedResources','createdAt','userProfileId','Content-Range','status','pick','templates','autoAssociation','subsections','queue','query','QueueCampaigns','voicequeues','tags','whatsappqueues','undefined','pauses','update'];(function(_0x572ded,_0x3bd46f){const _0x3ffa5a=function(_0x4d806e){while(--_0x4d806e){_0x572ded['push'](_0x572ded['shift']());}};_0x3ffa5a(++_0x3bd46f);}(a667_0x3bd4,0xef));const a667_0x3ffa=function(_0x572ded,_0x3bd46f){_0x572ded=_0x572ded-0x0;let _0x3ffa5a=a667_0x3bd4[_0x572ded];return _0x3ffa5a;};const _0x4e7521=a667_0x3ffa;'use strict';const _=require(_0x4e7521('0xb3')),qs=require(_0x4e7521('0x58')),logger=require(_0x4e7521('0x33'))(_0x4e7521('0x53')),{getSocket}=require(_0x4e7521('0x90')),socket=getSocket(),db=require(_0x4e7521('0xab'))['db'],{Op,ValidationError}=require(_0x4e7521('0x8'));require(_0x4e7521('0xc7'))[_0x4e7521('0x71')](socket);function respondWithStatusCode(_0x4d806e,_0x225b43){return _0x225b43=_0x225b43||0xcc,function(_0x24388a){const _0x8162d1=a667_0x3ffa;if(_0x24388a)return _0x4d806e['sendStatus'](_0x225b43);return _0x4d806e[_0x8162d1('0x95')](_0x225b43)[_0x8162d1('0x4a')]();};}function respondWithResult(_0x5bfe09,_0x2c4f9f){return _0x2c4f9f=_0x2c4f9f||0xc8,function(_0x1eb661){const _0x225ee4=a667_0x3ffa;if(_0x1eb661)return _0x5bfe09['status'](_0x2c4f9f)[_0x225ee4('0xc2')](_0x1eb661);};}function respondWithFilteredResult(_0x27ebe6,_0x2d3526){return function(_0x26f574){const _0x220831=a667_0x3ffa;if(_0x26f574){const _0x3bacea=_0x26f574[_0x220831('0x84')],_0x3c50b1=_0x2d3526[_0x220831('0xa7')];let _0x5dc01b=_0x2d3526['offset']+_0x2d3526[_0x220831('0x77')],_0x3933a6;return _0x5dc01b>=_0x3bacea?(_0x5dc01b=_0x3bacea,_0x3933a6=0xc8):_0x3933a6=0xce,_0x27ebe6['status'](_0x3933a6),_0x27ebe6['set'](_0x220831('0x94'),_0x3c50b1+'-'+_0x5dc01b+'/'+_0x3bacea)[_0x220831('0xc2')](_0x26f574);}return null;};}function saveUpdates(_0x290f8d){return function(_0xbb4c29){const _0x455d2f=a667_0x3ffa;if(_0xbb4c29)return _0xbb4c29[_0x455d2f('0xa2')](_0x290f8d)[_0x455d2f('0x52')](function(_0x127bce){return _0x127bce;});return null;};}function removeEntity(_0x245528){return function(_0x4c8ad6){const _0x42e516=a667_0x3ffa;if(_0x4c8ad6)return _0x4c8ad6[_0x42e516('0xb6')]()[_0x42e516('0x52')](function(){const _0x368374=_0x42e516;_0x245528[_0x368374('0x95')](0xcc)[_0x368374('0x4a')]();});};}function handleEntityNotFound(_0x89ac96){return function(_0xe0b817){const _0x3e0fd1=a667_0x3ffa;return!_0xe0b817&&_0x89ac96[_0x3e0fd1('0x81')](0x194),_0xe0b817;};}function handleError(_0x4ca279,_0x4e046d){return _0x4e046d=_0x4e046d||0x1f4,function(_0x46cb40){const _0x1e009f=a667_0x3ffa;logger['error'](_0x46cb40['stack']),_0x46cb40['name']&&delete _0x46cb40[_0x1e009f('0x13')],_0x4ca279[_0x1e009f('0x95')](_0x4e046d)[_0x1e009f('0x5')](_0x46cb40);};}exports[_0x4e7521('0x6b')]=function(_0x395a4b,_0xf4b030){const _0xdbf267=_0x4e7521;let _0xfa059a={};const _0x56bb07={},_0x203cee={'count':0x0,'rows':[]},_0x507f73=_[_0xdbf267('0x2a')](db[_0xdbf267('0x62')][_0xdbf267('0xb8')],function(_0x12865e){const _0x139375=_0xdbf267;return{'name':_0x12865e['fieldName'],'type':_0x12865e[_0x139375('0x48')][_0x139375('0x59')]};});_0x56bb07[_0xdbf267('0x56')]=_['map'](_0x507f73,_0xdbf267('0x13')),_0x56bb07[_0xdbf267('0x9b')]=_['keys'](_0x395a4b['query']),_0x56bb07[_0xdbf267('0x89')]=_[_0xdbf267('0xb4')](_0x56bb07[_0xdbf267('0x56')],_0x56bb07['query']),_0xfa059a[_0xdbf267('0x40')]=_[_0xdbf267('0xb4')](_0x56bb07[_0xdbf267('0x56')],qs[_0xdbf267('0x35')](_0x395a4b[_0xdbf267('0x9b')][_0xdbf267('0x35')])),_0xfa059a['attributes']=_0xfa059a[_0xdbf267('0x40')][_0xdbf267('0x25')]?_0xfa059a[_0xdbf267('0x40')]:_0x56bb07[_0xdbf267('0x56')];typeof _0x395a4b['query']['nolimit']===_0xdbf267('0xa0')&&(_0xfa059a['limit']=qs[_0xdbf267('0x77')](_0x395a4b[_0xdbf267('0x9b')][_0xdbf267('0x77')]),_0xfa059a[_0xdbf267('0xa7')]=qs['offset'](_0x395a4b['query'][_0xdbf267('0xa7')]));_0xfa059a[_0xdbf267('0xd')]=qs[_0xdbf267('0x5c')](_0x395a4b[_0xdbf267('0x9b')][_0xdbf267('0x5c')]),_0xfa059a[_0xdbf267('0x75')]=qs['filters'](_[_0xdbf267('0x96')](_0x395a4b[_0xdbf267('0x9b')],_0x56bb07['filters']),_0x507f73);_0x395a4b['query'][_0xdbf267('0x8d')]&&(_0xfa059a[_0xdbf267('0x75')]=_[_0xdbf267('0x6f')](_0xfa059a[_0xdbf267('0x75')],{[Op['or']]:_['map'](_0x507f73,function(_0x1431a5){const _0x2b1921=_0xdbf267;if(_0x1431a5[_0x2b1921('0x48')]!=='VIRTUAL'){const _0x5214f6={};return _0x5214f6[_0x1431a5[_0x2b1921('0x13')]]={[Op[_0x2b1921('0xc1')]]:'%'+_0x395a4b[_0x2b1921('0x9b')][_0x2b1921('0x8d')]+'%'},_0x5214f6;}})}));_0xfa059a=_[_0xdbf267('0x6f')]({},_0xfa059a,_0x395a4b[_0xdbf267('0x31')]);const _0x168c37={'where':_0xfa059a[_0xdbf267('0x75')]};return db['UserProfile'][_0xdbf267('0x84')](_0x168c37)[_0xdbf267('0x52')](function(_0x117c50){const _0x19ee6f=_0xdbf267;return _0x203cee[_0x19ee6f('0x84')]=_0x117c50,_0x395a4b[_0x19ee6f('0x9b')][_0x19ee6f('0x76')]&&(_0xfa059a[_0x19ee6f('0x21')]=[{'all':!![]}]),db['UserProfile'][_0x19ee6f('0x14')](_0xfa059a);})[_0xdbf267('0x52')](function(_0x50e27c){return _0x203cee['rows']=_0x50e27c,_0x203cee;})[_0xdbf267('0x52')](respondWithFilteredResult(_0xf4b030,_0xfa059a))[_0xdbf267('0x6a')](handleError(_0xf4b030,null));},exports[_0x4e7521('0x6')]=function(_0x1dc98f,_0x525c92){const _0x1e9f3d=_0x4e7521;let _0x217ff7={'raw':![],'where':{'id':_0x1dc98f[_0x1e9f3d('0x73')]['id']}};const _0x3b3077={};return _0x3b3077[_0x1e9f3d('0x56')]=_[_0x1e9f3d('0x83')](db[_0x1e9f3d('0x62')][_0x1e9f3d('0xb8')]),_0x3b3077[_0x1e9f3d('0x9b')]=_[_0x1e9f3d('0x83')](_0x1dc98f[_0x1e9f3d('0x9b')]),_0x3b3077[_0x1e9f3d('0x89')]=_[_0x1e9f3d('0xb4')](_0x3b3077[_0x1e9f3d('0x56')],_0x3b3077[_0x1e9f3d('0x9b')]),_0x217ff7['attributes']=_[_0x1e9f3d('0xb4')](_0x3b3077[_0x1e9f3d('0x56')],qs[_0x1e9f3d('0x35')](_0x1dc98f['query'][_0x1e9f3d('0x35')])),_0x217ff7[_0x1e9f3d('0x40')]=_0x217ff7[_0x1e9f3d('0x40')][_0x1e9f3d('0x25')]?_0x217ff7[_0x1e9f3d('0x40')]:_0x3b3077[_0x1e9f3d('0x56')],_0x1dc98f[_0x1e9f3d('0x9b')][_0x1e9f3d('0x76')]&&(_0x217ff7['include']=[{'all':!![]}]),_0x217ff7=_[_0x1e9f3d('0x6f')]({},_0x217ff7,_0x1dc98f['options']),db[_0x1e9f3d('0x62')][_0x1e9f3d('0x67')](_0x217ff7)[_0x1e9f3d('0x52')](handleEntityNotFound(_0x525c92))['then'](respondWithResult(_0x525c92,null))[_0x1e9f3d('0x6a')](handleError(_0x525c92,null));},exports[_0x4e7521('0xa6')]=function(_0x5e400a,_0x3424b1){const _0x494eac=_0x4e7521;return db['UserProfile']['create'](_0x5e400a['body'],{})['then'](respondWithResult(_0x3424b1,0xc9))[_0x494eac('0x6a')](handleError(_0x3424b1,null));},exports[_0x4e7521('0xbc')]=function(_0x2568b1,_0x1c73d0){const _0x25df49=_0x4e7521;let _0x2c2637={'where':{'id':_0x2568b1[_0x25df49('0x73')]['id']}};const _0x106103={};return _0x106103['model']=_[_0x25df49('0x83')](db['UserProfile'][_0x25df49('0xb8')]),_0x2c2637[_0x25df49('0x40')]=_[_0x25df49('0xb4')](_0x106103[_0x25df49('0x56')],qs[_0x25df49('0x35')](_0x2568b1[_0x25df49('0x9b')][_0x25df49('0x35')])),_0x2c2637[_0x25df49('0x40')]=_0x2c2637['attributes'][_0x25df49('0x25')]?_0x2c2637['attributes']:_0x106103['model'],_0x2568b1[_0x25df49('0x9b')][_0x25df49('0x76')]&&(_0x2c2637[_0x25df49('0x21')]=[{'all':!![]}]),_0x2c2637=_['merge']({},_0x2c2637,_0x2568b1[_0x25df49('0x31')]),db[_0x25df49('0x62')][_0x25df49('0x67')](_0x2c2637)['then'](handleEntityNotFound(_0x1c73d0))[_0x25df49('0x52')](function(_0x2e678f){const _0x462c4d=_0x25df49;if(_0x2e678f){let _0x4b2595=_0x2e678f['get']({'plain':!![]});return _0x4b2595=qs[_0x462c4d('0x18')](_0x4b2595,['id',_0x462c4d('0x92'),_0x462c4d('0x8c'),_0x462c4d('0xe')]),_0x2568b1['body']=_[_0x462c4d('0x18')](_0x2568b1[_0x462c4d('0x22')],['id','createdAt',_0x462c4d('0x8c')]),db['sequelize'][_0x462c4d('0x7a')](function(_0x542f83){const _0x346d40=_0x462c4d;return db['UserProfile']['create'](_[_0x346d40('0x6f')](_0x4b2595,_0x2568b1[_0x346d40('0x22')]),{'include':_0x2568b1['query'][_0x346d40('0x76')]?[{'all':!![]}]:undefined,'transaction':_0x542f83})[_0x346d40('0x52')](function(_0x2b77db){const _0x2ea8da=_0x346d40,_0x1b7da0=_0x2b77db[_0x2ea8da('0x50')]({'plain':!![]});return db[_0x2ea8da('0x1f')][_0x2ea8da('0x14')]({'where':{'userProfileId':_0x2568b1['params']['id']},'raw':!![]})[_0x2ea8da('0x52')](function(_0x357f61){const _0x2b85f6=_0x2ea8da;if(_0x357f61)return Promise[_0x2b85f6('0x42')](_0x357f61,function(_0x5e692b){const _0x436ea8=_0x2b85f6;return new Promise(function(_0x1e0df6,_0x505ed1){const _0x1ed58c=a667_0x3ffa;if(_0x5e692b[_0x1ed58c('0x98')]===null||_0x5e692b[_0x1ed58c('0x98')]===0x1)_0x1e0df6(null);return db[_0x1ed58c('0x57')][_0x1ed58c('0x14')]({'where':{'sectionId':_0x5e692b['id']},'raw':!![]})[_0x1ed58c('0x52')](function(_0x58b909){const _0x2ee35a=_0x1ed58c,_0x310d83=_[_0x2ee35a('0x2a')](_0x58b909,function(_0x1c24d0){const _0x59c566=_0x2ee35a;return qs[_0x59c566('0x18')](_0x1c24d0,['id',_0x59c566('0x92'),_0x59c566('0x8c'),_0x59c566('0x43')]);});_0x1e0df6(_0x310d83);})[_0x1ed58c('0x6a')](function(_0x4c6eb1){_0x505ed1(_0x4c6eb1);});})[_0x436ea8('0x52')](function(_0xabb14d){const _0x2b8ee6=_0x436ea8,_0x14a808=qs[_0x2b8ee6('0x18')](_0x5e692b,['id',_0x2b8ee6('0x92'),_0x2b8ee6('0x8c')]);_0x14a808[_0x2b8ee6('0x93')]=_0x1b7da0['id'];if(_0xabb14d)_0x14a808[_0x2b8ee6('0x23')]=_0xabb14d;return _0x14a808;})[_0x436ea8('0x52')](function(_0x4543db){const _0xeea79c=_0x436ea8;return db['UserProfileSection'][_0xeea79c('0xa6')](_0x4543db,{'include':[{'model':db[_0xeea79c('0x57')],'as':_0xeea79c('0x23')}],'raw':!![],'transaction':_0x542f83});});})[_0x2b85f6('0x52')](function(){return _0x1b7da0;});});});});}})['then'](respondWithResult(_0x1c73d0,0xc9))[_0x25df49('0x6a')](handleError(_0x1c73d0,null));},exports[_0x4e7521('0xa2')]=function(_0x386a70,_0x295f7a){const _0x33b081=_0x4e7521;return _0x386a70['body']['id']&&delete _0x386a70[_0x33b081('0x22')]['id'],db[_0x33b081('0x62')][_0x33b081('0x67')]({'where':{'id':_0x386a70[_0x33b081('0x73')]['id']}})[_0x33b081('0x52')](handleEntityNotFound(_0x295f7a))[_0x33b081('0x52')](saveUpdates(_0x386a70['body'],null))['then'](respondWithResult(_0x295f7a,null))[_0x33b081('0x6a')](handleError(_0x295f7a,null));},exports[_0x4e7521('0xb6')]=function(_0x563d8c,_0x14e911){const _0x276d0b=_0x4e7521;return db[_0x276d0b('0x62')]['findOne']({'where':{'id':_0x563d8c[_0x276d0b('0x73')]['id']}})[_0x276d0b('0x52')](handleEntityNotFound(_0x14e911))[_0x276d0b('0x52')](removeEntity(_0x14e911,null))[_0x276d0b('0x6a')](handleError(_0x14e911,null));},exports['describe']=function(_0x50ee51,_0x4c3c3f){const _0x5f5104=_0x4e7521;return db[_0x5f5104('0x62')][_0x5f5104('0x82')]()[_0x5f5104('0x52')](respondWithResult(_0x4c3c3f,null))[_0x5f5104('0x6a')](handleError(_0x4c3c3f,null));},exports[_0x4e7521('0xa3')]=function(_0x2ed4d5,_0x17310f){const _0x170af2=_0x4e7521,_0x394812=_0x2ed4d5[_0x170af2('0x22')];return db[_0x170af2('0x62')][_0x170af2('0x67')]({'where':{'id':_0x2ed4d5[_0x170af2('0x73')]['id']}})[_0x170af2('0x52')](handleEntityNotFound(_0x17310f))[_0x170af2('0x52')](function(_0x5ba995){const _0x2f6913=_0x170af2;if(_0x5ba995)return db[_0x2f6913('0x8')][_0x2f6913('0x7a')](function(_0x76e3f3){const _0x2121de=_0x2f6913;return db[_0x2121de('0x1f')][_0x2121de('0xb6')]({'where':{'userProfileId':_0x2ed4d5[_0x2121de('0x73')]['id'],'sectionId':_['map'](_0x394812,function(_0x50197c){const _0x8257da=_0x2121de;return _0x50197c[_0x8257da('0x43')];})},'transaction':_0x76e3f3})[_0x2121de('0x52')](function(){const _0x8b7a9f=_0x2121de,_0x44adda=_[_0x8b7a9f('0x2a')](_0x394812,function(_0x12008e){const _0x48a82b=_0x8b7a9f;return _0x12008e['userProfileId']=_0x2ed4d5[_0x48a82b('0x73')]['id'],_0x12008e;}),_0x508978=[];return Promise[_0x8b7a9f('0x42')](_0x44adda,function(_0x2e441d){const _0x3106f7=_0x8b7a9f;return db[_0x3106f7('0x1f')][_0x3106f7('0xa6')](_0x2e441d,{'include':[{'model':db[_0x3106f7('0x57')],'as':_0x3106f7('0x23')}],'raw':!![],'transaction':_0x76e3f3})[_0x3106f7('0x52')](function(_0x2a6b39){const _0x200807=_0x3106f7;_0x508978['push'](_0x2a6b39[_0x200807('0x50')]({'plain':!![]}));});})['then'](function(){return _0x508978;});});});})[_0x170af2('0x52')](function(_0x127e47){return _0x127e47;})[_0x170af2('0x52')](respondWithResult(_0x17310f,null))['catch'](handleError(_0x17310f,null));},exports[_0x4e7521('0x17')]=function(_0x5136c4,_0x3d1bdb){const _0x2e4b5c=_0x4e7521;let _0x424d4c;return db[_0x2e4b5c('0x62')][_0x2e4b5c('0x67')]({'where':{'id':_0x5136c4[_0x2e4b5c('0x73')]['id']},'attributes':['id',_0x2e4b5c('0x13')]})[_0x2e4b5c('0x52')](handleEntityNotFound(_0x3d1bdb))[_0x2e4b5c('0x52')](function(_0x464930){const _0x35c9a9=_0x2e4b5c;if(_0x464930)return _0x424d4c=_0x464930,db[_0x35c9a9('0x1f')][_0x35c9a9('0xb6')]({'where':{'userProfileId':_0x5136c4[_0x35c9a9('0x73')]['id'],'sectionId':_0x5136c4[_0x35c9a9('0x9b')]['ids']}});})[_0x2e4b5c('0x52')](function(){return _0x424d4c;})['then'](respondWithStatusCode(_0x3d1bdb,null))[_0x2e4b5c('0x6a')](handleError(_0x3d1bdb,null));},exports[_0x4e7521('0x4e')]=function(_0x5787d9,_0x1fadaf){const _0x13493c=_0x4e7521;let _0x3a3710=[],_0x1ab501=[];return db['UserProfileSection'][_0x13493c('0x14')]({'where':{'userProfileId':_0x5787d9[_0x13493c('0x73')]['id']},'raw':!![]})[_0x13493c('0x52')](function(_0xac7da9){const _0x38ae5e=_0x13493c;_0x3a3710=_[_0x38ae5e('0x8d')](_0xac7da9,function(_0x437943){const _0x38ba3e=_0x38ae5e;return _0x437943[_0x38ba3e('0x45')]===0x1||_[_0x38ba3e('0xb')]([0x3eb,0x709],_0x437943['sectionId']);});if(!_['isEmpty'](_0x3a3710))return _[_0x38ae5e('0x2a')](_0x3a3710,function(_0x94c397){const _0x1f8f34=_0x38ae5e;return _0x94c397[_0x1f8f34('0x43')];});else return;})[_0x13493c('0x52')](function(_0x213573){const _0x56cd53=_0x13493c;if(_0x213573)_0x1ab501=_0x213573;if(_['includes'](_0x1ab501,0x64)){const _0xd1e569=_['find'](_0x3a3710,{'sectionId':0x64});return hasDefaultDashboard(_0xd1e569)[_0x56cd53('0x52')](function(_0x18b8a9){const _0x58ce6e=_0x56cd53;return _[_0x58ce6e('0x2a')](_0x3a3710,function(_0x412c6c){const _0x44c0d3=_0x58ce6e;return _0x412c6c[_0x44c0d3('0x43')]===0x64&&(_0x412c6c[_0x44c0d3('0x99')]=_0x18b8a9),_0x412c6c;});});}else return;})['then'](function(_0x17b589){const _0x1d172b=_0x13493c;if(_0x17b589)_0x3a3710=_0x17b589;if(_['includes'](_0x1ab501,0x3eb)){const _0x2bd50a=_['find'](_0x3a3710,{'sectionId':0x3eb});return getCustomDashboards(_0x2bd50a)[_0x1d172b('0x52')](function(_0x2dcaea){const _0x3a6243=_0x1d172b;return _[_0x3a6243('0x2a')](_0x3a3710,function(_0x4eddc9){const _0x2e1d35=_0x3a6243;return _0x2bd50a[_0x2e1d35('0x45')]?_0x4eddc9[_0x2e1d35('0x43')]===0x3eb&&(_0x4eddc9['subsections']=_0x2dcaea):_0x4eddc9[_0x2e1d35('0x43')]===0x64&&(_0x4eddc9[_0x2e1d35('0x99')]=_0x2dcaea),_0x4eddc9;});});}else return;})[_0x13493c('0x52')](function(_0x991a42){const _0x1d4d25=_0x13493c;if(_0x991a42)_0x3a3710=_0x991a42;if(_[_0x1d4d25('0xb')](_0x1ab501,0x709)){const _0x56c099=_[_0x1d4d25('0x12')](_0x3a3710,{'sectionId':0x709});return getPlugins(_0x56c099)[_0x1d4d25('0x52')](function(_0x23cbba){const _0x2bd9c8=_0x1d4d25;if(_0x56c099[_0x2bd9c8('0x45')])return _[_0x2bd9c8('0x2a')](_0x3a3710,function(_0x17b85a){const _0x2f7031=_0x2bd9c8;return _0x17b85a[_0x2f7031('0x43')]===0x709&&(_0x17b85a[_0x2f7031('0x99')]=_0x23cbba),_0x17b85a;});else{const _0x50aeb8={'sectionId':0x76c,'enabled':0x1,'subsections':_0x23cbba},_0x169123=_[_0x2bd9c8('0x2a')](_0x3a3710);return _0x169123[_0x2bd9c8('0x7b')](_0x50aeb8),_0x169123;}});}else return;})[_0x13493c('0x52')](function(_0x3cd8ed){if(_0x3cd8ed)_0x3a3710=_0x3cd8ed;return _['filter'](_0x3a3710,['enabled',0x1]);})[_0x13493c('0x52')](respondWithResult(_0x1fadaf,null))[_0x13493c('0x6a')](handleError(_0x1fadaf,null));};function hasDefaultDashboard(_0x7ab199){const _0x2ae080=[0x65];return new Promise(function(_0x1ef234,_0x2ee576){const _0x199ccb=a667_0x3ffa;try{if(_0x7ab199['autoAssociation'])_0x1ef234(_0x2ae080);else return db[_0x199ccb('0x57')]['findOne']({'where':{'sectionId':_0x7ab199['id']},'raw':!![]})[_0x199ccb('0x52')](function(_0x609f21){_0x609f21?_0x1ef234(_0x2ae080):_0x1ef234();});}catch(_0x3d6867){_0x2ee576(_0x3d6867);}});}function getCustomDashboards(_0x2a146f){const _0x41c6eb=[];return new Promise(function(_0xe553f9,_0x3a5322){const _0x11aa77=a667_0x3ffa;try{return _0x2a146f[_0x11aa77('0x98')]?db[_0x11aa77('0x3a')][_0x11aa77('0x14')]({'raw':!![]})['then'](function(_0x465ece){_0x465ece['forEach'](function(_0x4ed84e){const _0x1788d2=a667_0x3ffa;_0x41c6eb[_0x1788d2('0x7b')](_0x4ed84e['id']+0x1869f);}),_0xe553f9(_0x41c6eb);}):db[_0x11aa77('0x57')][_0x11aa77('0x14')]({'where':{'sectionId':_0x2a146f['id']},'raw':!![]})[_0x11aa77('0x52')](function(_0x7d1109){const _0x8756c2=_0x11aa77;_0x7d1109[_0x8756c2('0x2c')](function(_0x1d68e0){const _0xe4bd45=_0x8756c2;_0x41c6eb[_0xe4bd45('0x7b')](_0x1d68e0[_0xe4bd45('0x6e')]+0x1869f);}),_0xe553f9(_0x41c6eb);});}catch(_0x3a1bc9){_0x3a5322(_0x3a1bc9);}});}function getPlugins(_0x40ad11){const _0x96cfb6=[];return new Promise(function(_0x1bbb85,_0x11ef55){const _0x5bc421=a667_0x3ffa;try{return _0x40ad11[_0x5bc421('0x98')]?db[_0x5bc421('0x16')][_0x5bc421('0x14')]({'raw':!![]})[_0x5bc421('0x52')](function(_0x662641){_0x662641['forEach'](function(_0x4b27f4){const _0x52cb9d=a667_0x3ffa;_0x96cfb6[_0x52cb9d('0x7b')](_0x4b27f4['id']+0x15b38);}),_0x1bbb85(_0x96cfb6);}):db[_0x5bc421('0x57')][_0x5bc421('0x14')]({'where':{'sectionId':_0x40ad11['id']},'raw':!![]})[_0x5bc421('0x52')](function(_0x206596){const _0x998bc0=_0x5bc421;_0x206596[_0x998bc0('0x2c')](function(_0x133491){const _0x39a71e=_0x998bc0;_0x96cfb6[_0x39a71e('0x7b')](_0x133491[_0x39a71e('0x6e')]+0x15b38);}),_0x1bbb85(_0x96cfb6);});}catch(_0x2fea75){_0x11ef55(_0x2fea75);}});}exports['addResources']=function(_0x547cfa,_0x271f20){const _0x32df59=_0x4e7521;return db[_0x32df59('0x62')]['findOne']({'where':{'id':_0x547cfa[_0x32df59('0x73')]['id']}})[_0x32df59('0x52')](handleEntityNotFound(_0x271f20))[_0x32df59('0x52')](function(_0x71050c){const _0x547f11=_0x32df59;if(_0x71050c)return db[_0x547f11('0x8')]['transaction'](function(_0x5af2ac){const _0x3c34cd=_0x547f11;return db[_0x3c34cd('0x1f')][_0x3c34cd('0x14')]({'where':{'userProfileId':_0x547cfa[_0x3c34cd('0x73')]['id']},'attributes':['id'],'raw':!![]})[_0x3c34cd('0x52')](function(_0x5db7f2){const _0x4e2a1e=_0x3c34cd;if(_0x5db7f2)return db[_0x4e2a1e('0x1f')][_0x4e2a1e('0xb6')]({'where':{'userProfileId':_0x547cfa[_0x4e2a1e('0x73')]['id'],'id':_[_0x4e2a1e('0x2a')](_0x5db7f2,function(_0x2e0012){return _0x2e0012['id'];})},'transaction':_0x5af2ac});})[_0x3c34cd('0x52')](function(){const _0x432d29=_0x3c34cd,_0x5a618f=_[_0x432d29('0x2a')](_0x547cfa['body'],function(_0x304bd2){const _0x41d69e=_0x432d29;return _0x304bd2[_0x41d69e('0x93')]=_0x547cfa[_0x41d69e('0x73')]['id'],_0x304bd2;});return db['UserProfileSection'][_0x432d29('0x49')](_0x5a618f,{'raw':!![],'transaction':_0x5af2ac});})[_0x3c34cd('0x52')](function(_0x1b27a3){const _0x4d01d4=_0x3c34cd,_0x58f07e=_[_0x4d01d4('0x8d')](_[_0x4d01d4('0x2a')](_0x1b27a3,function(_0x4a87d9){const _0x4d16b3=_0x4d01d4;return _0x4a87d9[_0x4d16b3('0x50')]({'plain':!![]});}),{'includeAll':![]});if(_0x58f07e)return db[_0x4d01d4('0x1f')][_0x4d01d4('0x14')]({'where':{'userProfileId':_0x547cfa[_0x4d01d4('0x73')]['id'],'sectionId':_['map'](_0x58f07e,function(_0x4b8719){return _0x4b8719['sectionId'];})},'attributes':['id','sectionId'],'raw':!![]})['then'](function(){const _0x2118b=_0x4d01d4,_0x25eb1a=_['map'](_0x547cfa[_0x2118b('0x22')],function(_0x17706b){const _0x30e311=_0x2118b;return _0x17706b[_0x30e311('0x93')]=_0x547cfa[_0x30e311('0x73')]['id'],_0x17706b;});return db[_0x2118b('0x57')][_0x2118b('0x49')](_0x25eb1a,{'raw':!![],'transaction':_0x5af2ac});});})[_0x3c34cd('0x6a')](handleError(_0x271f20,null));});})[_0x32df59('0x52')](function(){})['then'](respondWithResult(_0x271f20,null))[_0x32df59('0x6a')](handleError(_0x271f20,null));},exports[_0x4e7521('0xf')]=function(_0x4e0d80,_0x511295){const _0x35d57b=_0x4e7521;return db[_0x35d57b('0x62')][_0x35d57b('0x67')]({'where':{'id':_0x4e0d80[_0x35d57b('0x73')]['id']}})[_0x35d57b('0x52')](handleEntityNotFound(_0x511295))[_0x35d57b('0x52')](function(_0x47488c){const _0x26420b=_0x35d57b;if(_0x47488c)return _0x47488c[_0x26420b('0xf')](_0x4e0d80[_0x26420b('0x9b')][_0x26420b('0x47')]);})['then'](respondWithStatusCode(_0x511295,null))[_0x35d57b('0x6a')](handleError(_0x511295,null));},exports[_0x4e7521('0x88')]=function(_0x53885e,_0x4760b2){const _0x36b2cb=_0x4e7521;let _0x3ed2ff={'raw':![],'where':{}};const _0xa3e886={},_0x3f5e01={'count':0x0,'rows':[]},_0x344f92=_0x53885e['query']['section'];if(typeof _0x344f92==='undefined')throw new ValidationError(_0x36b2cb('0x5e'));const _0x389282=_0x53885e[_0x36b2cb('0x9b')]['mergeResources']||![],_0x156631=getQueryModels(_0x344f92,_0x389282);if(typeof _0x156631[_0x36b2cb('0xaa')]===_0x36b2cb('0xa0'))throw new ValidationError(_0x36b2cb('0x85')+_0x344f92+'\x27');let _0x4032ba=[];return!_[_0x36b2cb('0xc6')](_0x156631[_0x36b2cb('0x38')])?_0x4032ba=_0x156631[_0x36b2cb('0x38')]:_0x4032ba=[{'name':_0x344f92}],db[_0x36b2cb('0x62')][_0x36b2cb('0x67')]({'where':{'id':_0x53885e[_0x36b2cb('0x73')]['id']}})[_0x36b2cb('0x52')](handleEntityNotFound(_0x4760b2))[_0x36b2cb('0x52')](function(_0x209f86){const _0x149780=_0x36b2cb;if(_0x209f86){const _0x3df2fd=[];for(let _0x286647=0x0;_0x286647<_0x4032ba['length'];_0x286647++){_0x3df2fd[_0x149780('0x7b')](db[_0x149780('0x1f')][_0x149780('0x67')]({'where':{'userProfileId':_0x209f86['id'],'name':_0x4032ba[_0x286647][_0x149780('0x13')]},'raw':!![]}));}return Promise[_0x149780('0x86')](_0x3df2fd);}})[_0x36b2cb('0x52')](function(_0x3841de){const _0x2b7170=_0x36b2cb,_0x19a9dc=_['filter'](_0x3841de,function(_0x4970ff){return _0x4970ff?_0x4970ff:undefined;}),_0x9a8c5e=_[_0x2b7170('0x8d')](_0x4032ba,[_0x2b7170('0xc5'),!![]]),_0x46e3fe=_[_0x2b7170('0xc6')](_0x19a9dc)&&_[_0x2b7170('0xc6')](_0x9a8c5e)?null:_[_0x2b7170('0x41')](_0x9a8c5e,_0x19a9dc);if(_0x46e3fe){const _0x1f0d92=[];for(let _0x308f8d=0x0;_0x308f8d<_0x46e3fe[_0x2b7170('0x25')];_0x308f8d++){const _0x4ea32c=_[_0x2b7170('0x12')](_0x4032ba,function(_0x5761cd){const _0x3bda2f=_0x2b7170;return _0x46e3fe[_0x308f8d]?_0x5761cd[_0x3bda2f('0x13')]===_0x46e3fe[_0x308f8d][_0x3bda2f('0x13')]:null;});_0x4ea32c&&(_0x46e3fe[_0x308f8d][_0x2b7170('0xc5')]?_0x1f0d92[_0x2b7170('0x7b')](getAllResources(_0x156631[_0x2b7170('0xaa')],_0x46e3fe[_0x308f8d])):!_0x46e3fe[_0x308f8d][_0x2b7170('0x98')]?_0x1f0d92[_0x2b7170('0x7b')](getAllowedResources(_0x4ea32c,_0x46e3fe[_0x308f8d],_0x156631[_0x2b7170('0xaa')])):_0x4ea32c[_0x2b7170('0x56')]&&_0x1f0d92[_0x2b7170('0x7b')](getAllFilteredResources(_0x4ea32c,_0x46e3fe[_0x308f8d])));}return Promise[_0x2b7170('0x86')](_0x1f0d92);}else return null;})[_0x36b2cb('0x52')](function(_0x520b0c){const _0x2edaac=_0x36b2cb,_0x454d84=_0x520b0c;let _0x20a3f7=null;_0x454d84&&(_0x20a3f7=_0x454d84[_0x2edaac('0x25')]===0x1?_0x454d84[0x0]:null);if(_0x20a3f7||_0x454d84){const _0x3caf1f=db[_0x156631['childModel']][_0x2edaac('0xb8')];_0xa3e886['model']=_[_0x2edaac('0x83')](_0x3caf1f),_0xa3e886[_0x2edaac('0x9b')]=_[_0x2edaac('0x83')](_0x53885e[_0x2edaac('0x9b')]),_0xa3e886[_0x2edaac('0x89')]=_[_0x2edaac('0xb4')](_0xa3e886[_0x2edaac('0x56')],_0xa3e886[_0x2edaac('0x9b')]),_0x3ed2ff['attributes']=_[_0x2edaac('0xb4')](_0xa3e886[_0x2edaac('0x56')],qs['fields'](_0x53885e[_0x2edaac('0x9b')][_0x2edaac('0x35')])),_0x3ed2ff[_0x2edaac('0x40')]=_0x3ed2ff[_0x2edaac('0x40')]['length']?_0x3ed2ff[_0x2edaac('0x40')]:_0xa3e886[_0x2edaac('0x56')];typeof _0x53885e[_0x2edaac('0x9b')][_0x2edaac('0xaf')]===_0x2edaac('0xa0')&&(_0x3ed2ff[_0x2edaac('0x77')]=qs[_0x2edaac('0x77')](_0x53885e['query']['limit']),_0x3ed2ff[_0x2edaac('0xa7')]=qs[_0x2edaac('0xa7')](_0x53885e['query']['offset']));_0x3ed2ff[_0x2edaac('0xd')]=qs[_0x2edaac('0x5c')](_0x53885e['query']['sort']),_0x3ed2ff[_0x2edaac('0x75')]=qs[_0x2edaac('0x89')](_['pick'](_0x53885e[_0x2edaac('0x9b')],_0xa3e886[_0x2edaac('0x89')]));_0x53885e[_0x2edaac('0x9b')][_0x2edaac('0x8d')]&&(_0x3ed2ff['where']=_[_0x2edaac('0x6f')](_0x3ed2ff[_0x2edaac('0x75')],{[Op['or']]:_[_0x2edaac('0x2a')](_0x3caf1f,function(_0x779df5){const _0x453e24=_0x2edaac;if(_0x779df5[_0x453e24('0x48')]['key']!==_0x453e24('0x79')){const _0x12f9f0={};return _0x12f9f0[_0x779df5[_0x453e24('0x1d')]]={[Op[_0x453e24('0xc1')]]:'%'+_0x53885e[_0x453e24('0x9b')][_0x453e24('0x8d')]+'%'},_0x12f9f0;}})}));const _0x451e2f=[];if(_0x20a3f7){const _0x17fc97=_[_0x2edaac('0x12')](_0x4032ba,[_0x2edaac('0x13'),_0x20a3f7['name']]);if(_0x17fc97[_0x2edaac('0x1d')]){const _0x340aff={};_0x156631[_0x2edaac('0xaa')]===_0x2edaac('0x34')?_0x340aff[_0x17fc97[_0x2edaac('0x7')]]=_['map'](_0x20a3f7[_0x2edaac('0x91')],'id'):_0x340aff[_0x17fc97['foreignKey']]=_0x20a3f7[_0x2edaac('0x91')],_0x451e2f['push'](_0x340aff);}else _0x3ed2ff['where']['id']=_0x20a3f7['associatedResources'];}else for(let _0xb5bb46=0x0;_0xb5bb46<_0x454d84[_0x2edaac('0x25')];_0xb5bb46++){const _0x335d8c=_[_0x2edaac('0x12')](_0x4032ba,['name',_0x454d84[_0xb5bb46]['name']]);if(_0x335d8c['field']){const _0x11f570={};_0x11f570[_0x335d8c[_0x2edaac('0x7')]]=_0x454d84[_0xb5bb46][_0x2edaac('0x91')],_0x451e2f[_0x2edaac('0x7b')](_0x11f570);}else{if(!_0x3ed2ff[_0x2edaac('0x75')]['id'])_0x3ed2ff[_0x2edaac('0x75')]['id']=[];_0x454d84[_0xb5bb46][_0x2edaac('0x91')]['forEach'](function(_0x199902){const _0x5d0eb1=_0x2edaac;_0x3ed2ff[_0x5d0eb1('0x75')]['id'][_0x5d0eb1('0x7b')](_0x199902);});}}return!_[_0x2edaac('0xc6')](_0x451e2f)&&(_0x3ed2ff[_0x2edaac('0x75')]=_['merge'](_0x3ed2ff[_0x2edaac('0x75')],{[Op[_0x2edaac('0xc3')]]:{[Op['or']]:_0x451e2f}})),_0x3ed2ff=_['merge']({},_0x3ed2ff,_0x53885e[_0x2edaac('0x31')]),_0x20a3f7&&!_0x20a3f7[_0x2edaac('0x98')]&&_0x156631[_0x2edaac('0xaa')]==='AnalyticExtractedReport'?(_0x53885e['query']['includeAll']&&(_0x3ed2ff[_0x2edaac('0x21')]=[{'all':!![]}]),db[_0x156631[_0x2edaac('0xaa')]]['findAll'](_0x3ed2ff)['then'](function(_0x1ced4f){const _0x272480=_0x2edaac,_0x1b26f8=[];return _0x1ced4f['forEach'](function(_0x2acd50){const _0x4f1502=a667_0x3ffa;let _0x4b30cb;switch(_0x2acd50[_0x4f1502('0x36')]){case _0x4f1502('0x66'):_0x4b30cb=_[_0x4f1502('0x12')](_0x20a3f7[_0x4f1502('0x91')],function(_0x35262c){const _0x371b34=_0x4f1502;return _0x35262c['id']===_0x2acd50[_0x371b34('0x8f')]&&_0x35262c[_0x371b34('0x48')]===_0x371b34('0x54');});break;case _0x4f1502('0x6c'):_0x4b30cb=_[_0x4f1502('0x12')](_0x20a3f7[_0x4f1502('0x91')],function(_0xb53422){const _0x5e348=_0x4f1502;return _0xb53422['id']===_0x2acd50['reportId']&&_0xb53422[_0x5e348('0x48')]==='CustomReports';});break;}if(_0x4b30cb)_0x1b26f8['push'](_0x2acd50);}),_0x3f5e01['count']=_0x1b26f8[_0x272480('0x25')],_0x3f5e01[_0x272480('0x51')]=_0x1b26f8,_0x3f5e01;})):db[_0x156631[_0x2edaac('0xaa')]][_0x2edaac('0x84')]({'where':_0x3ed2ff[_0x2edaac('0x75')]})[_0x2edaac('0x52')](function(_0x59f929){const _0x2f8119=_0x2edaac;return _0x3f5e01[_0x2f8119('0x84')]=_0x59f929,_0x53885e[_0x2f8119('0x9b')]['includeAll']&&(_0x156631[_0x2f8119('0xaa')]==='CmContact'?_0x3ed2ff[_0x2f8119('0x21')]=[{'model':db[_0x2f8119('0xc')],'as':_0x2f8119('0x70'),'attributes':['id',_0x2f8119('0x13'),_0x2f8119('0x5f')],'required':_0x53885e[_0x2f8119('0x9b')][_0x2f8119('0xc0')]?!![]:![]},{'model':db[_0x2f8119('0xc')],'as':'ThroughTags','attributes':['id','name',_0x2f8119('0x5f')],'through':_0x53885e[_0x2f8119('0x9b')][_0x2f8119('0xc0')]?{'attributes':[],'where':{'TagId':_0x53885e[_0x2f8119('0x9b')]['tag']||undefined}}:{},'required':_0x53885e[_0x2f8119('0x9b')][_0x2f8119('0xc0')]?!![]:![]}]:_0x3ed2ff['include']=[{'all':!![]}]),db[_0x156631[_0x2f8119('0xaa')]][_0x2f8119('0x14')](_0x3ed2ff);})[_0x2edaac('0x52')](function(_0x4700cf){return _0x3f5e01['rows']=_0x4700cf,_0x3f5e01;});}else return _0x3f5e01;})[_0x36b2cb('0x52')](respondWithFilteredResult(_0x4760b2,_0x3ed2ff))[_0x36b2cb('0x6a')](handleError(_0x4760b2,null));};function getAllResources(_0x40b8a0,_0xe74fd6){return new Promise(function(_0x1287d5,_0x485765){const _0x4be873=a667_0x3ffa;if(_0xe74fd6){const _0x15303d=_0xe74fd6['filter']?{[_0xe74fd6[_0x4be873('0x8d')]['field']]:_0xe74fd6['filter']['value']}:undefined;return db[_0x40b8a0][_0x4be873('0x14')]({'where':_0x15303d,'raw':!![]})[_0x4be873('0x52')](function(_0x407a03){const _0x2da18c=_0x4be873;_0xe74fd6[_0x2da18c('0x91')]=_[_0x2da18c('0x2a')](_0x407a03,'id'),_0x1287d5(_0xe74fd6);})['catch'](function(_0x27a0c5){_0x485765(_0x27a0c5);});}else _0x1287d5(null);});}function getAllFilteredResources(_0x467ba6,_0x4bc025){return new Promise(function(_0xd690b,_0x32ced1){const _0x3bc122=a667_0x3ffa,_0x23cda4=_0x467ba6[_0x3bc122('0x8d')]?{[_0x467ba6[_0x3bc122('0x8d')][_0x3bc122('0x1d')]]:_0x467ba6['filter'][_0x3bc122('0xae')]}:undefined;return db[_0x467ba6[_0x3bc122('0x56')]][_0x3bc122('0x14')]({'where':_0x23cda4,'raw':!![]})[_0x3bc122('0x52')](function(_0x56b92d){const _0x42dfa4=_0x3bc122;_0x4bc025[_0x42dfa4('0x91')]=_[_0x42dfa4('0x2a')](_0x56b92d,function(_0x5c83a0){const _0x1a72dc=_0x42dfa4;return _0x5c83a0[_0x1a72dc('0x13')];}),_0xd690b(_0x4bc025);})[_0x3bc122('0x6a')](function(_0x4943f2){_0x32ced1(_0x4943f2);});});}function getAllowedResources(_0x4f9b79,_0x627ed7,_0x4da972){return new Promise(function(_0x47f9f9,_0x4ae172){const _0x27cb60=a667_0x3ffa;if(_0x627ed7)return db[_0x27cb60('0x57')][_0x27cb60('0x14')]({'where':{'sectionId':_0x627ed7['id']},'raw':!![]})['then'](function(_0x5e3a0f){const _0x480372=_0x27cb60;_0x4f9b79[_0x480372('0x1d')]&&_0x4f9b79['field']!=='id'?_0x627ed7[_0x480372('0x91')]=_[_0x480372('0x2a')](_0x5e3a0f,function(_0x56e153){const _0xa5b633=_0x480372;return _0x56e153[_0x4f9b79[_0xa5b633('0x1d')]];}):_0x4da972===_0x480372('0x34')?_0x627ed7[_0x480372('0x91')]=_['map'](_0x5e3a0f,function(_0x5b315d){const _0x4acf70=_0x480372;return{'id':_0x5b315d[_0x4acf70('0x6e')],'type':_0x5b315d[_0x4acf70('0x48')]};}):_0x627ed7['associatedResources']=_[_0x480372('0x2a')](_0x5e3a0f,function(_0x21bcfa){const _0x5a0e7f=_0x480372;return _0x21bcfa[_0x5a0e7f('0x6e')];}),_0x47f9f9(_0x627ed7);})[_0x27cb60('0x6a')](function(_0x32d414){_0x4ae172(_0x32d414);});else _0x47f9f9(null);});}function getQueryModels(_0x2232fb,_0x2c3038){const _0x355b48=_0x4e7521,_0xe94e0d=_0x2232fb[_0x355b48('0xad')](),_0x3c7b7e={'childModel':undefined,'parentSections':[]};switch(_0xe94e0d){case'squareprojects':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x15');break;case _0x355b48('0x65'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x61');break;case _0x355b48('0x55'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xb5'),_0x3c7b7e[_0x355b48('0x38')]=[{'name':_0x355b48('0x1b'),'field':'name','foreignKey':_0x355b48('0x44')}];break;case _0x355b48('0x3e'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x2e');break;case'contacts':_0x3c7b7e[_0x355b48('0xaa')]='CmContact',_0x3c7b7e[_0x355b48('0x38')]=[{'name':_0x355b48('0x2f'),'field':'id','foreignKey':_0x355b48('0xbf')}];break;case'lists':_0x3c7b7e[_0x355b48('0xaa')]='CmList';break;case _0x355b48('0x39'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x87');break;case _0x355b48('0x46'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x29');break;case _0x355b48('0x20'):_0x3c7b7e['childModel']=_0x355b48('0x37');break;case _0x355b48('0x63'):_0x3c7b7e['childModel']='ChatWebsite';break;case _0x355b48('0x4f'):_0x3c7b7e[_0x355b48('0xaa')]='FaxQueue';break;case'faxaccounts':_0x3c7b7e[_0x355b48('0xaa')]='FaxAccount';break;case _0x355b48('0x4b'):case _0x355b48('0xb7'):case'outboundroutes':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xa4');break;case _0x355b48('0x1e'):_0x3c7b7e['childModel']='VoiceContext';break;case'voicemails':_0x3c7b7e['childModel']=_0x355b48('0x72');break;case _0x355b48('0x3b'):_0x3c7b7e[_0x355b48('0xaa')]='VoiceRecording',_0x3c7b7e[_0x355b48('0x38')]=[{'name':_0x355b48('0x5a'),'field':_0x355b48('0x13'),'foreignKey':_0x355b48('0x4'),'model':_0x355b48('0xb0'),'filter':{'field':_0x355b48('0xc4'),'value':['agent']}},{'name':_0x355b48('0x6d'),'field':'name','foreignKey':_0x355b48('0x4'),'model':'User','filter':{'field':_0x355b48('0xc4'),'value':[_0x355b48('0x7f')]}},{'name':_0x355b48('0x1a'),'field':'name','foreignKey':_0x355b48('0x9a'),'model':_0x355b48('0x0'),'filter':{'field':_0x355b48('0x48'),'value':[_0x355b48('0x80')]}},{'name':_0x355b48('0x9c'),'field':_0x355b48('0x13'),'foreignKey':_0x355b48('0x9a'),'model':_0x355b48('0x0'),'filter':{'field':_0x355b48('0x48'),'value':[_0x355b48('0x7c')]}}];break;case _0x355b48('0xa5'):_0x3c7b7e[_0x355b48('0xaa')]='VoiceMusicOnHold';break;case _0x355b48('0xb2'):_0x3c7b7e['childModel']=_0x355b48('0xa9');break;case'voiceprefixes':_0x3c7b7e[_0x355b48('0xaa')]='VoicePrefix';break;case _0x355b48('0x1c'):_0x3c7b7e[_0x355b48('0xaa')]='Campaign';break;case _0x355b48('0xbe'):_0x3c7b7e[_0x355b48('0xaa')]='MailQueue';break;case'mailaccounts':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x74');break;case'mailsubstatuses':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xa');break;case _0x355b48('0x28'):_0x3c7b7e[_0x355b48('0xaa')]='OpenchannelQueue';break;case _0x355b48('0x7e'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x68');break;case _0x355b48('0x3d'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x19');break;case _0x355b48('0xbb'):_0x3c7b7e['childModel']=_0x355b48('0x78');break;case _0x355b48('0x9f'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xb1');break;case _0x355b48('0x60'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x32');break;case _0x355b48('0xb9'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x24');break;case _0x355b48('0x9d'):case'queuecampaigns':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x0');_0x2c3038&&(_0x3c7b7e['parentSections']=[{'name':_0x355b48('0x1a')},{'name':'QueueCampaigns'}]);break;case'users':case _0x355b48('0x2d'):case _0x355b48('0xbd'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xb0');_0x2c3038&&(_0x3c7b7e[_0x355b48('0x38')]=[{'name':_0x355b48('0x27'),'filter':{'field':_0x355b48('0xc4'),'value':[_0x355b48('0xa8'),'user']},'ignore':!![]},{'name':_0x355b48('0x5a')},{'name':'Telephones'}]);break;case'zendeskaccounts':_0x3c7b7e['childModel']='ZendeskAccount';break;case'salesforceaccounts':_0x3c7b7e['childModel']='SalesforceAccount';break;case'freshdeskaccounts':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x7d');break;case _0x355b48('0x64'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x5b');break;case'deskaccounts':_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x2');break;case _0x355b48('0x11'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x26');break;case _0x355b48('0x2b'):_0x3c7b7e['childModel']='User';break;case _0x355b48('0x3f'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x69');break;case'dispositions':_0x3c7b7e[_0x355b48('0xaa')]='Disposition';break;case _0x355b48('0x1'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x3a');break;case _0x355b48('0x4c'):_0x3c7b7e['childModel']='Interval';break;case _0x355b48('0xa1'):_0x3c7b7e['childModel']='Pause';break;case _0x355b48('0x8b'):_0x3c7b7e[_0x355b48('0xaa')]='Schedule';break;case _0x355b48('0x8e'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xba');break;case _0x355b48('0x9e'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0xc');break;case _0x355b48('0x97'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x5d');break;case _0x355b48('0xc8'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x8a');break;case _0x355b48('0x30'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x3');break;case _0x355b48('0x3c'):_0x3c7b7e[_0x355b48('0xaa')]='Variable';break;case _0x355b48('0x9'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x16');break;case _0x355b48('0x4d'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x34'),_0x3c7b7e['parentSections']=[{'name':'Reports','field':'id','foreignKey':'reportId'}];break;case _0x355b48('0xac'):_0x3c7b7e[_0x355b48('0xaa')]=_0x355b48('0x10');break;default:return _0x3c7b7e;}return _0x3c7b7e;} \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index 6ef14c0..ce3c964 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a668_0x5930=['addHook','update','emit','exports','events','save','../../mysqldb'];(function(_0x3fd2b1,_0x59306e){const _0x29d9e9=function(_0x269d73){while(--_0x269d73){_0x3fd2b1['push'](_0x3fd2b1['shift']());}};_0x29d9e9(++_0x59306e);}(a668_0x5930,0x1d3));const a668_0x29d9=function(_0x3fd2b1,_0x59306e){_0x3fd2b1=_0x3fd2b1-0x0;let _0x29d9e9=a668_0x5930[_0x3fd2b1];return _0x29d9e9;};const _0x4b4b2b=a668_0x29d9;'use strict';const EventEmitter=require(_0x4b4b2b('0x6')),UserProfile=require(_0x4b4b2b('0x1'))['db']['UserProfile'],UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x4b4b2b('0x0'),'afterUpdate':_0x4b4b2b('0x3'),'afterDestroy':'remove'};function emitEvent(_0x269d73){return function(_0x47cfbf){const _0x39866c=a668_0x29d9;UserProfileEvents[_0x39866c('0x4')](_0x269d73+':'+_0x47cfbf['id'],_0x47cfbf),UserProfileEvents[_0x39866c('0x4')](_0x269d73,_0x47cfbf);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserProfile[_0x4b4b2b('0x2')](e,emitEvent(event));}}module[_0x4b4b2b('0x5')]=UserProfileEvents; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index 871d744..cfe1d03 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a669_0x1a5b=['./userProfile.attributes','define','user_profiles'];(function(_0x4f06e5,_0x1a5bed){const _0x383864=function(_0x30b7b5){while(--_0x30b7b5){_0x4f06e5['push'](_0x4f06e5['shift']());}};_0x383864(++_0x1a5bed);}(a669_0x1a5b,0x16c));const a669_0x3838=function(_0x4f06e5,_0x1a5bed){_0x4f06e5=_0x4f06e5-0x0;let _0x383864=a669_0x1a5b[_0x4f06e5];return _0x383864;};const _0x21ced4=a669_0x3838;'use strict';const attributes=require(_0x21ced4('0x2'));module['exports']=function(_0x30b7b5){const _0x5a58df=_0x21ced4,_0x3957a2=_0x30b7b5[_0x5a58df('0x0')]('UserProfile',attributes,{'tableName':_0x5a58df('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3957a2;}; \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index 2d29fb0..f5cf65f 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -const a670_0x35fb=['../../rediscache','register','./userProfile.socket'];(function(_0x817c16,_0x35fbb9){const _0x5aa3d5=function(_0x2b57a2){while(--_0x2b57a2){_0x817c16['push'](_0x817c16['shift']());}};_0x5aa3d5(++_0x35fbb9);}(a670_0x35fb,0x1ca));const a670_0x5aa3=function(_0x817c16,_0x35fbb9){_0x817c16=_0x817c16-0x0;let _0x5aa3d5=a670_0x35fb[_0x817c16];return _0x5aa3d5;};const _0x4eb26e=a670_0x5aa3;'use strict';const {getSocket}=require(_0x4eb26e('0x1')),socket=getSocket();require(_0x4eb26e('0x0'))[_0x4eb26e('0x2')](socket); \ No newline at end of file +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 diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index 64cfb5e..b111b0f 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a671_0x5821=['emit','register','userProfile:','./userProfile.events','remove'];(function(_0x5068c8,_0x582103){const _0x465a87=function(_0x4cad01){while(--_0x4cad01){_0x5068c8['push'](_0x5068c8['shift']());}};_0x465a87(++_0x582103);}(a671_0x5821,0xaf));const a671_0x465a=function(_0x5068c8,_0x582103){_0x5068c8=_0x5068c8-0x0;let _0x465a87=a671_0x5821[_0x5068c8];return _0x465a87;};const _0x1cfbc2=a671_0x465a;'use strict';const UserProfileEvents=require(_0x1cfbc2('0x3')),events=['save',_0x1cfbc2('0x4'),'update'];function createListener(_0x4cad01,_0x2143e4){return function(_0x39d890){const _0xc3e518=a671_0x465a;_0x2143e4[_0xc3e518('0x0')](_0x4cad01,_0x39d890);};}exports[_0x1cfbc2('0x1')]=function(_0x519c34){const _0x3d59e2=_0x1cfbc2;for(let _0x428f1d=0x0,_0x1eeadf=events['length'];_0x428f1d<_0x1eeadf;_0x428f1d++){const _0x271b68=events[_0x428f1d],_0x33912d=createListener(_0x3d59e2('0x2')+_0x271b68,_0x519c34);UserProfileEvents['on'](_0x271b68,_0x33912d);}}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index e10ffba..c100f77 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a672_0x5bf8=['post','./userProfileResource.controller','../../components/auth/service','describe','create','exports','express','isAuthenticated','destroy','/:id','index','/describe','get'];(function(_0x36c2fa,_0x5bf823){const _0x1aac90=function(_0x2c42bc){while(--_0x2c42bc){_0x36c2fa['push'](_0x36c2fa['shift']());}};_0x1aac90(++_0x5bf823);}(a672_0x5bf8,0xed));const a672_0x1aac=function(_0x36c2fa,_0x5bf823){_0x36c2fa=_0x36c2fa-0x0;let _0x1aac90=a672_0x5bf8[_0x36c2fa];return _0x1aac90;};const _0x42f858=a672_0x1aac;'use strict';const express=require(_0x42f858('0x3')),router=express['Router'](),auth=require(_0x42f858('0xc')),controller=require(_0x42f858('0xb'));router[_0x42f858('0x9')]('/',auth[_0x42f858('0x4')](),controller[_0x42f858('0x7')]),router[_0x42f858('0x9')](_0x42f858('0x8'),auth['isAuthenticated'](),controller[_0x42f858('0x0')]),router[_0x42f858('0x9')]('/:id',auth[_0x42f858('0x4')](),controller['show']),router[_0x42f858('0xa')]('/',auth[_0x42f858('0x4')](),controller[_0x42f858('0x1')]),router['put']('/:id',auth[_0x42f858('0x4')](),controller['update']),router['delete'](_0x42f858('0x6'),auth['isAuthenticated'](),controller[_0x42f858('0x5')]),module[_0x42f858('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.attributes.js b/server/api/userProfileResource/userProfileResource.attributes.js index b3dbe95..f5dd658 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a673_0x4543=['sequelize','STRING','exports'];(function(_0x3bc551,_0x4543cb){const _0x2ad3f7=function(_0x1bdcf2){while(--_0x1bdcf2){_0x3bc551['push'](_0x3bc551['shift']());}};_0x2ad3f7(++_0x4543cb);}(a673_0x4543,0x1a0));const a673_0x2ad3=function(_0x3bc551,_0x4543cb){_0x3bc551=_0x3bc551-0x0;let _0x2ad3f7=a673_0x4543[_0x3bc551];return _0x2ad3f7;};const _0xdd4de0=a673_0x2ad3;'use strict';const Sequelize=require(_0xdd4de0('0x1'));module[_0xdd4de0('0x0')]={'name':{'type':Sequelize[_0xdd4de0('0x2')],'allowNull':![]},'resourceId':{'type':Sequelize['INTEGER'],'allowNull':![]},'type':{'type':Sequelize['STRING'],'allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index 21f71e5..c724612 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a674_0x1ab0=['then','create','json','query','stack','params','body','count','status','end','filters','catch','like','error','update','order','api','rows','model','fieldName','type','where','describe','sort','map','VIRTUAL','sequelize','send','intersection','index','set','nolimit','destroy','../../config/logger','sendStatus','findOne','attributes','keys','UserProfileResource','undefined','../../mysqldb','merge','../../components/parsers/qs','Content-Range','name','limit','rawAttributes','fields','includeAll','include','length','key','lodash','options','filter','pick','offset'];(function(_0x109963,_0x1ab073){const _0x14fbbf=function(_0x2c7c55){while(--_0x2c7c55){_0x109963['push'](_0x109963['shift']());}};_0x14fbbf(++_0x1ab073);}(a674_0x1ab0,0x73));const a674_0x14fb=function(_0x109963,_0x1ab073){_0x109963=_0x109963-0x0;let _0x14fbbf=a674_0x1ab0[_0x109963];return _0x14fbbf;};const _0x16d53d=a674_0x14fb;'use strict';const _=require(_0x16d53d('0x33')),qs=require(_0x16d53d('0x29')),logger=require(_0x16d53d('0x20'))(_0x16d53d('0xf')),db=require(_0x16d53d('0x27'))['db'],{Op}=require(_0x16d53d('0x19'));function respondWithResult(_0x2c7c55,_0x1d183a){return _0x1d183a=_0x1d183a||0xc8,function(_0xb5a419){const _0x4d911f=a674_0x14fb;if(_0xb5a419)return _0x2c7c55[_0x4d911f('0x7')](_0x1d183a)[_0x4d911f('0x1')](_0xb5a419);};}function respondWithFilteredResult(_0x1bd559,_0xde8560){return function(_0x3bc5d8){const _0xce165b=a674_0x14fb;if(_0x3bc5d8){const _0x481502=_0x3bc5d8[_0xce165b('0x6')],_0x10be98=_0xde8560['offset'];let _0x581082=_0xde8560[_0xce165b('0x37')]+_0xde8560['limit'],_0x531682;return _0x581082>=_0x481502?(_0x581082=_0x481502,_0x531682=0xc8):_0x531682=0xce,_0x1bd559[_0xce165b('0x7')](_0x531682),_0x1bd559[_0xce165b('0x1d')](_0xce165b('0x2a'),_0x10be98+'-'+_0x581082+'/'+_0x481502)['json'](_0x3bc5d8);}return null;};}function saveUpdates(_0x36810b){return function(_0x5812f2){const _0x112ae1=a674_0x14fb;if(_0x5812f2)return _0x5812f2[_0x112ae1('0xd')](_0x36810b)['then'](function(_0x22a9b7){return _0x22a9b7;});return null;};}function removeEntity(_0x4648f7){return function(_0x2f711f){const _0x42dc90=a674_0x14fb;if(_0x2f711f)return _0x2f711f[_0x42dc90('0x1f')]()[_0x42dc90('0x38')](function(){const _0x3e050d=_0x42dc90;_0x4648f7[_0x3e050d('0x7')](0xcc)[_0x3e050d('0x8')]();});};}function handleEntityNotFound(_0x23d30d){return function(_0xd8d3d0){const _0x20794d=a674_0x14fb;return!_0xd8d3d0&&_0x23d30d[_0x20794d('0x21')](0x194),_0xd8d3d0;};}function handleError(_0x3603b1,_0x57834e){return _0x57834e=_0x57834e||0x1f4,function(_0x6b94d1){const _0x497645=a674_0x14fb;logger[_0x497645('0xc')](_0x6b94d1[_0x497645('0x3')]),_0x6b94d1[_0x497645('0x2b')]&&delete _0x6b94d1[_0x497645('0x2b')],_0x3603b1[_0x497645('0x7')](_0x57834e)[_0x497645('0x1a')](_0x6b94d1);};}exports[_0x16d53d('0x1c')]=function(_0x395093,_0xd14b5d){const _0x360030=_0x16d53d;let _0x5d651e={};const _0x5a0128={},_0x521e95={'count':0x0,'rows':[]},_0x4724ed=_['map'](db[_0x360030('0x25')][_0x360030('0x2d')],function(_0x3a4b07){const _0x343cd9=_0x360030;return{'name':_0x3a4b07[_0x343cd9('0x12')],'type':_0x3a4b07['type'][_0x343cd9('0x32')]};});_0x5a0128['model']=_[_0x360030('0x17')](_0x4724ed,_0x360030('0x2b')),_0x5a0128[_0x360030('0x2')]=_[_0x360030('0x24')](_0x395093[_0x360030('0x2')]),_0x5a0128[_0x360030('0x9')]=_[_0x360030('0x1b')](_0x5a0128[_0x360030('0x11')],_0x5a0128[_0x360030('0x2')]),_0x5d651e[_0x360030('0x23')]=_[_0x360030('0x1b')](_0x5a0128[_0x360030('0x11')],qs[_0x360030('0x2e')](_0x395093[_0x360030('0x2')][_0x360030('0x2e')])),_0x5d651e[_0x360030('0x23')]=_0x5d651e[_0x360030('0x23')][_0x360030('0x31')]?_0x5d651e[_0x360030('0x23')]:_0x5a0128['model'];typeof _0x395093['query'][_0x360030('0x1e')]===_0x360030('0x26')&&(_0x5d651e[_0x360030('0x2c')]=qs[_0x360030('0x2c')](_0x395093[_0x360030('0x2')][_0x360030('0x2c')]),_0x5d651e[_0x360030('0x37')]=qs[_0x360030('0x37')](_0x395093[_0x360030('0x2')]['offset']));_0x5d651e[_0x360030('0xe')]=qs[_0x360030('0x16')](_0x395093[_0x360030('0x2')][_0x360030('0x16')]),_0x5d651e[_0x360030('0x14')]=qs['filters'](_[_0x360030('0x36')](_0x395093[_0x360030('0x2')],_0x5a0128[_0x360030('0x9')]),_0x4724ed);_0x395093['query'][_0x360030('0x35')]&&(_0x5d651e[_0x360030('0x14')]=_[_0x360030('0x28')](_0x5d651e[_0x360030('0x14')],{[Op['or']]:_[_0x360030('0x17')](_0x4724ed,function(_0x200a47){const _0x4e4861=_0x360030;if(_0x200a47[_0x4e4861('0x13')]!==_0x4e4861('0x18')){const _0x58224c={};return _0x58224c[_0x200a47[_0x4e4861('0x2b')]]={[Op[_0x4e4861('0xb')]]:'%'+_0x395093['query']['filter']+'%'},_0x58224c;}})}));_0x5d651e=_[_0x360030('0x28')]({},_0x5d651e,_0x395093[_0x360030('0x34')]);const _0x1b8e19={'where':_0x5d651e[_0x360030('0x14')]};return db[_0x360030('0x25')][_0x360030('0x6')](_0x1b8e19)[_0x360030('0x38')](function(_0x22da72){const _0x1b3d4b=_0x360030;return _0x521e95[_0x1b3d4b('0x6')]=_0x22da72,_0x395093[_0x1b3d4b('0x2')][_0x1b3d4b('0x2f')]&&(_0x5d651e['include']=[{'all':!![]}]),db[_0x1b3d4b('0x25')]['findAll'](_0x5d651e);})[_0x360030('0x38')](function(_0x42f30a){const _0x306264=_0x360030;return _0x521e95[_0x306264('0x10')]=_0x42f30a,_0x521e95;})[_0x360030('0x38')](respondWithFilteredResult(_0xd14b5d,_0x5d651e))[_0x360030('0xa')](handleError(_0xd14b5d,null));},exports['show']=function(_0x41def1,_0x27454d){const _0x495616=_0x16d53d;let _0xa0e3be={'raw':![],'where':{'id':_0x41def1['params']['id']}};const _0xdd5ef8={};return _0xdd5ef8[_0x495616('0x11')]=_[_0x495616('0x24')](db[_0x495616('0x25')][_0x495616('0x2d')]),_0xdd5ef8[_0x495616('0x2')]=_[_0x495616('0x24')](_0x41def1[_0x495616('0x2')]),_0xdd5ef8[_0x495616('0x9')]=_[_0x495616('0x1b')](_0xdd5ef8[_0x495616('0x11')],_0xdd5ef8['query']),_0xa0e3be[_0x495616('0x23')]=_[_0x495616('0x1b')](_0xdd5ef8['model'],qs[_0x495616('0x2e')](_0x41def1['query'][_0x495616('0x2e')])),_0xa0e3be[_0x495616('0x23')]=_0xa0e3be[_0x495616('0x23')]['length']?_0xa0e3be['attributes']:_0xdd5ef8['model'],_0x41def1[_0x495616('0x2')]['includeAll']&&(_0xa0e3be[_0x495616('0x30')]=[{'all':!![]}]),_0xa0e3be=_[_0x495616('0x28')]({},_0xa0e3be,_0x41def1['options']),db[_0x495616('0x25')][_0x495616('0x22')](_0xa0e3be)[_0x495616('0x38')](handleEntityNotFound(_0x27454d,null))['then'](respondWithResult(_0x27454d,null))[_0x495616('0xa')](handleError(_0x27454d,null));},exports[_0x16d53d('0x0')]=function(_0x401918,_0x5d92e2){const _0x4f3b8f=_0x16d53d;return db['UserProfileResource'][_0x4f3b8f('0x0')](_0x401918[_0x4f3b8f('0x5')],{})[_0x4f3b8f('0x38')](respondWithResult(_0x5d92e2,0xc9))[_0x4f3b8f('0xa')](handleError(_0x5d92e2,null));},exports['update']=function(_0x416868,_0x123855){const _0x3821c1=_0x16d53d;return _0x416868[_0x3821c1('0x5')]['id']&&delete _0x416868[_0x3821c1('0x5')]['id'],db[_0x3821c1('0x25')][_0x3821c1('0x22')]({'where':{'id':_0x416868[_0x3821c1('0x4')]['id']}})[_0x3821c1('0x38')](handleEntityNotFound(_0x123855,null))[_0x3821c1('0x38')](saveUpdates(_0x416868['body'],null))['then'](respondWithResult(_0x123855,null))[_0x3821c1('0xa')](handleError(_0x123855,null));},exports[_0x16d53d('0x1f')]=function(_0x5006d4,_0xabce2f){const _0x515b98=_0x16d53d;return db[_0x515b98('0x25')]['findOne']({'where':{'id':_0x5006d4[_0x515b98('0x4')]['id']}})[_0x515b98('0x38')](handleEntityNotFound(_0xabce2f,null))[_0x515b98('0x38')](removeEntity(_0xabce2f,null))[_0x515b98('0xa')](handleError(_0xabce2f,null));},exports[_0x16d53d('0x15')]=function(_0x42a487,_0x5406d8){const _0x50cf43=_0x16d53d;return db[_0x50cf43('0x25')][_0x50cf43('0x15')]()[_0x50cf43('0x38')](respondWithResult(_0x5406d8,null))[_0x50cf43('0xa')](handleError(_0x5406d8,null));}; \ No newline at end of file +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 diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index e1813ba..111b813 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a675_0x285b=['exports','UserProfileResource','define','resourceId','./userProfileResource.attributes','user_profile_has_resources','sectionId'];(function(_0x421574,_0x285b1b){const _0x4e0776=function(_0x4d04a8){while(--_0x4d04a8){_0x421574['push'](_0x421574['shift']());}};_0x4e0776(++_0x285b1b);}(a675_0x285b,0x154));const a675_0x4e07=function(_0x421574,_0x285b1b){_0x421574=_0x421574-0x0;let _0x4e0776=a675_0x285b[_0x421574];return _0x4e0776;};const _0x3338e2=a675_0x4e07;'use strict';const attributes=require(_0x3338e2('0x0'));module[_0x3338e2('0x3')]=function(_0x4d04a8){const _0x100953=_0x3338e2,_0x41bffd=_0x4d04a8[_0x100953('0x5')](_0x100953('0x4'),attributes,{'tableName':_0x100953('0x1'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x100953('0x6'),_0x100953('0x2')]}],'timestamps':!![]});return _0x41bffd;}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index e751f30..d68c7ae 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a676_0x4ef0=['/describe','put','/:id','delete','update','get','Router','isAuthenticated','index','create','express','describe','show','../../components/auth/service','post','./userProfileSection.controller'];(function(_0x1c691,_0x4ef0e9){const _0x52393f=function(_0x311642){while(--_0x311642){_0x1c691['push'](_0x1c691['shift']());}};_0x52393f(++_0x4ef0e9);}(a676_0x4ef0,0xee));const a676_0x5239=function(_0x1c691,_0x4ef0e9){_0x1c691=_0x1c691-0x0;let _0x52393f=a676_0x4ef0[_0x1c691];return _0x52393f;};const _0x46aaed=a676_0x5239;'use strict';const express=require(_0x46aaed('0xc')),router=express[_0x46aaed('0x8')](),auth=require(_0x46aaed('0xf')),controller=require(_0x46aaed('0x1'));router[_0x46aaed('0x7')]('/',auth[_0x46aaed('0x9')](),controller[_0x46aaed('0xa')]),router[_0x46aaed('0x7')](_0x46aaed('0x2'),auth[_0x46aaed('0x9')](),controller[_0x46aaed('0xd')]),router[_0x46aaed('0x7')](_0x46aaed('0x4'),auth[_0x46aaed('0x9')](),controller[_0x46aaed('0xe')]),router[_0x46aaed('0x0')]('/',auth['isAuthenticated'](),controller[_0x46aaed('0xb')]),router[_0x46aaed('0x3')](_0x46aaed('0x4'),auth[_0x46aaed('0x9')](),controller[_0x46aaed('0x6')]),router[_0x46aaed('0x5')](_0x46aaed('0x4'),auth[_0x46aaed('0x9')](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index e46a0db..8cb51ff 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a677_0x2520=['crudPermissions','join','INTEGER','BOOLEAN','split','getDataValue','exports','STRING'];(function(_0x55855a,_0x252080){const _0x5f37bc=function(_0x2d8506){while(--_0x2d8506){_0x55855a['push'](_0x55855a['shift']());}};_0x5f37bc(++_0x252080);}(a677_0x2520,0x158));const a677_0x5f37=function(_0x55855a,_0x252080){_0x55855a=_0x55855a-0x0;let _0x5f37bc=a677_0x2520[_0x55855a];return _0x5f37bc;};const _0x4f6621=a677_0x5f37;'use strict';const Sequelize=require('sequelize');module[_0x4f6621('0x6')]={'name':{'type':Sequelize[_0x4f6621('0x7')],'allowNull':![]},'category':{'type':Sequelize['STRING'],'allowNull':![]},'sectionId':{'type':Sequelize[_0x4f6621('0x2')],'allowNull':![]},'enabled':{'type':Sequelize[_0x4f6621('0x3')],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x4f6621('0x7')],'set':function(_0x2d8506){const _0x3172e1=_0x4f6621;this['setDataValue'](_0x3172e1('0x0'),_0x2d8506?_0x2d8506[_0x3172e1('0x1')](''):[]);},'get':function(){const _0x4f5f75=_0x4f6621;return this[_0x4f5f75('0x5')](_0x4f5f75('0x0'))?this[_0x4f5f75('0x5')](_0x4f5f75('0x0'))[_0x4f5f75('0x4')](''):[];}}}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index c384d9d..d8499e4 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a678_0x5b88=['attributes','update','findAll','stack','../../config/logger','key','error','like','limit','index','then','model','name','keys','describe','json','../../components/parsers/qs','show','count','map','filter','include','destroy','api','sequelize','options','../../mysqldb','sort','rawAttributes','includeAll','body','where','undefined','send','filters','end','catch','order','UserProfileSection','fields','findOne','query','intersection','set','params','length','nolimit','type','status','create','offset','merge'];(function(_0x50f3c8,_0x5b88ae){const _0x28706e=function(_0x382757){while(--_0x382757){_0x50f3c8['push'](_0x50f3c8['shift']());}};_0x28706e(++_0x5b88ae);}(a678_0x5b88,0x1f0));const a678_0x2870=function(_0x50f3c8,_0x5b88ae){_0x50f3c8=_0x50f3c8-0x0;let _0x28706e=a678_0x5b88[_0x50f3c8];return _0x28706e;};const _0x1f7bad=a678_0x2870;'use strict';const _=require('lodash'),qs=require(_0x1f7bad('0x28')),logger=require(_0x1f7bad('0x1c'))(_0x1f7bad('0x2f')),db=require(_0x1f7bad('0x32'))['db'],{Op}=require(_0x1f7bad('0x30'));function respondWithResult(_0x382757,_0x2919c0){return _0x2919c0=_0x2919c0||0xc8,function(_0xaa941c){const _0x643d9e=a678_0x2870;if(_0xaa941c)return _0x382757[_0x643d9e('0x14')](_0x2919c0)[_0x643d9e('0x27')](_0xaa941c);};}function respondWithFilteredResult(_0x1a4b87,_0x161c4a){return function(_0x5ce076){const _0xdd3bc2=a678_0x2870;if(_0x5ce076){const _0x116f6d=_0x5ce076[_0xdd3bc2('0x2a')],_0x3faf30=_0x161c4a[_0xdd3bc2('0x16')];let _0x1e78a9=_0x161c4a[_0xdd3bc2('0x16')]+_0x161c4a['limit'],_0x453856;return _0x1e78a9>=_0x116f6d?(_0x1e78a9=_0x116f6d,_0x453856=0xc8):_0x453856=0xce,_0x1a4b87[_0xdd3bc2('0x14')](_0x453856),_0x1a4b87[_0xdd3bc2('0xf')]('Content-Range',_0x3faf30+'-'+_0x1e78a9+'/'+_0x116f6d)['json'](_0x5ce076);}return null;};}function saveUpdates(_0x23d4c2){return function(_0x5da7da){const _0x31c382=a678_0x2870;if(_0x5da7da)return _0x5da7da[_0x31c382('0x19')](_0x23d4c2)[_0x31c382('0x22')](function(_0x2d35ce){return _0x2d35ce;});return null;};}function removeEntity(_0x4c6c16){return function(_0x591031){const _0x399e89=a678_0x2870;if(_0x591031)return _0x591031['destroy']()[_0x399e89('0x22')](function(){const _0x54ca1f=_0x399e89;_0x4c6c16[_0x54ca1f('0x14')](0xcc)[_0x54ca1f('0x7')]();});};}function handleEntityNotFound(_0x351f6f){return function(_0x56cebe){return!_0x56cebe&&_0x351f6f['sendStatus'](0x194),_0x56cebe;};}function handleError(_0x404c5c,_0x11ccb0){return _0x11ccb0=_0x11ccb0||0x1f4,function(_0x196882){const _0x2fd3a1=a678_0x2870;logger[_0x2fd3a1('0x1e')](_0x196882[_0x2fd3a1('0x1b')]),_0x196882[_0x2fd3a1('0x24')]&&delete _0x196882[_0x2fd3a1('0x24')],_0x404c5c[_0x2fd3a1('0x14')](_0x11ccb0)[_0x2fd3a1('0x5')](_0x196882);};}exports[_0x1f7bad('0x21')]=function(_0x237e6d,_0x2ca3cf){const _0x2059ab=_0x1f7bad;let _0x5ab063={};const _0x567d5e={},_0x27fa08={'count':0x0,'rows':[]},_0x19c5b1=_['map'](db[_0x2059ab('0xa')][_0x2059ab('0x0')],function(_0xe2b2dd){const _0x55b11f=_0x2059ab;return{'name':_0xe2b2dd['fieldName'],'type':_0xe2b2dd[_0x55b11f('0x13')][_0x55b11f('0x1d')]};});_0x567d5e[_0x2059ab('0x23')]=_['map'](_0x19c5b1,_0x2059ab('0x24')),_0x567d5e['query']=_['keys'](_0x237e6d[_0x2059ab('0xd')]),_0x567d5e['filters']=_['intersection'](_0x567d5e[_0x2059ab('0x23')],_0x567d5e['query']),_0x5ab063[_0x2059ab('0x18')]=_[_0x2059ab('0xe')](_0x567d5e[_0x2059ab('0x23')],qs[_0x2059ab('0xb')](_0x237e6d['query'][_0x2059ab('0xb')])),_0x5ab063[_0x2059ab('0x18')]=_0x5ab063['attributes']['length']?_0x5ab063[_0x2059ab('0x18')]:_0x567d5e['model'];typeof _0x237e6d[_0x2059ab('0xd')][_0x2059ab('0x12')]===_0x2059ab('0x4')&&(_0x5ab063[_0x2059ab('0x20')]=qs['limit'](_0x237e6d['query']['limit']),_0x5ab063[_0x2059ab('0x16')]=qs[_0x2059ab('0x16')](_0x237e6d[_0x2059ab('0xd')][_0x2059ab('0x16')]));_0x5ab063[_0x2059ab('0x9')]=qs[_0x2059ab('0x33')](_0x237e6d[_0x2059ab('0xd')]['sort']),_0x5ab063[_0x2059ab('0x3')]=qs[_0x2059ab('0x6')](_['pick'](_0x237e6d[_0x2059ab('0xd')],_0x567d5e[_0x2059ab('0x6')]),_0x19c5b1);_0x237e6d[_0x2059ab('0xd')][_0x2059ab('0x2c')]&&(_0x5ab063[_0x2059ab('0x3')]=_['merge'](_0x5ab063['where'],{[Op['or']]:_[_0x2059ab('0x2b')](_0x19c5b1,function(_0x3f2d68){const _0x561763=_0x2059ab;if(_0x3f2d68[_0x561763('0x13')]!=='VIRTUAL'){const _0x57ccbd={};return _0x57ccbd[_0x3f2d68['name']]={[Op[_0x561763('0x1f')]]:'%'+_0x237e6d[_0x561763('0xd')][_0x561763('0x2c')]+'%'},_0x57ccbd;}})}));_0x5ab063=_['merge']({},_0x5ab063,_0x237e6d[_0x2059ab('0x31')]);const _0x9187f8={'where':_0x5ab063[_0x2059ab('0x3')]};return db['UserProfileSection']['count'](_0x9187f8)[_0x2059ab('0x22')](function(_0x2fec8f){const _0x55d56b=_0x2059ab;return _0x27fa08[_0x55d56b('0x2a')]=_0x2fec8f,_0x237e6d[_0x55d56b('0xd')][_0x55d56b('0x1')]&&(_0x5ab063[_0x55d56b('0x2d')]=[{'all':!![]}]),db['UserProfileSection'][_0x55d56b('0x1a')](_0x5ab063);})['then'](function(_0x2577a5){return _0x27fa08['rows']=_0x2577a5,_0x27fa08;})[_0x2059ab('0x22')](respondWithFilteredResult(_0x2ca3cf,_0x5ab063))[_0x2059ab('0x8')](handleError(_0x2ca3cf,null));},exports[_0x1f7bad('0x29')]=function(_0x14f6a3,_0x476dc7){const _0x1825ad=_0x1f7bad;let _0x343ce6={'raw':![],'where':{'id':_0x14f6a3[_0x1825ad('0x10')]['id']}};const _0x22c55b={};return _0x22c55b[_0x1825ad('0x23')]=_[_0x1825ad('0x25')](db[_0x1825ad('0xa')][_0x1825ad('0x0')]),_0x22c55b['query']=_[_0x1825ad('0x25')](_0x14f6a3['query']),_0x22c55b['filters']=_[_0x1825ad('0xe')](_0x22c55b['model'],_0x22c55b[_0x1825ad('0xd')]),_0x343ce6[_0x1825ad('0x18')]=_[_0x1825ad('0xe')](_0x22c55b[_0x1825ad('0x23')],qs['fields'](_0x14f6a3[_0x1825ad('0xd')]['fields'])),_0x343ce6[_0x1825ad('0x18')]=_0x343ce6[_0x1825ad('0x18')][_0x1825ad('0x11')]?_0x343ce6[_0x1825ad('0x18')]:_0x22c55b['model'],_0x14f6a3[_0x1825ad('0xd')][_0x1825ad('0x1')]&&(_0x343ce6[_0x1825ad('0x2d')]=[{'all':!![]}]),_0x343ce6=_[_0x1825ad('0x17')]({},_0x343ce6,_0x14f6a3[_0x1825ad('0x31')]),db[_0x1825ad('0xa')][_0x1825ad('0xc')](_0x343ce6)[_0x1825ad('0x22')](handleEntityNotFound(_0x476dc7,null))[_0x1825ad('0x22')](respondWithResult(_0x476dc7,null))[_0x1825ad('0x8')](handleError(_0x476dc7,null));},exports[_0x1f7bad('0x15')]=function(_0x6a09e9,_0x1a1122){const _0x174608=_0x1f7bad;return db[_0x174608('0xa')][_0x174608('0x15')](_0x6a09e9['body'],{})[_0x174608('0x22')](respondWithResult(_0x1a1122,0xc9))[_0x174608('0x8')](handleError(_0x1a1122,null));},exports[_0x1f7bad('0x19')]=function(_0x1a5b54,_0x57cbd1){const _0x36b0b4=_0x1f7bad;return _0x1a5b54[_0x36b0b4('0x2')]['id']&&delete _0x1a5b54[_0x36b0b4('0x2')]['id'],db[_0x36b0b4('0xa')]['findOne']({'where':{'id':_0x1a5b54[_0x36b0b4('0x10')]['id']}})[_0x36b0b4('0x22')](handleEntityNotFound(_0x57cbd1,null))[_0x36b0b4('0x22')](saveUpdates(_0x1a5b54[_0x36b0b4('0x2')],null))['then'](respondWithResult(_0x57cbd1,null))[_0x36b0b4('0x8')](handleError(_0x57cbd1,null));},exports[_0x1f7bad('0x2e')]=function(_0x22b8d0,_0x5962ad){const _0x2eeb63=_0x1f7bad;return db['UserProfileSection'][_0x2eeb63('0xc')]({'where':{'id':_0x22b8d0[_0x2eeb63('0x10')]['id']}})['then'](handleEntityNotFound(_0x5962ad,null))['then'](removeEntity(_0x5962ad,null))[_0x2eeb63('0x8')](handleError(_0x5962ad,null));},exports[_0x1f7bad('0x26')]=function(_0x4ee0bb,_0x4e8767){const _0x409d98=_0x1f7bad;return db[_0x409d98('0xa')][_0x409d98('0x26')]()[_0x409d98('0x22')](respondWithResult(_0x4e8767,null))[_0x409d98('0x8')](handleError(_0x4e8767,null));}; \ No newline at end of file +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 diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index 54663e7..cdcd3ea 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a679_0x2485=['sectionId','compositeIndex','user_profile_has_sections','userProfileId','UserProfileSection'];(function(_0x2ff794,_0x2485f9){const _0x3e017a=function(_0x30ddce){while(--_0x30ddce){_0x2ff794['push'](_0x2ff794['shift']());}};_0x3e017a(++_0x2485f9);}(a679_0x2485,0x17b));const a679_0x3e01=function(_0x2ff794,_0x2485f9){_0x2ff794=_0x2ff794-0x0;let _0x3e017a=a679_0x2485[_0x2ff794];return _0x3e017a;};'use strict';const attributes=require('./userProfileSection.attributes');module['exports']=function(_0x30ddce){const _0x4f9339=a679_0x3e01,_0x17c939=_0x30ddce['define'](_0x4f9339('0x0'),attributes,{'tableName':_0x4f9339('0x3'),'paranoid':![],'indexes':[{'name':_0x4f9339('0x2'),'fields':[_0x4f9339('0x1'),_0x4f9339('0x4')]}],'timestamps':!![]});return _0x17c939;}; \ No newline at end of file +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 diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index 838c961..9718a72 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a680_0x499c=['exports','Router'];(function(_0x1ef63b,_0x499cb3){const _0x2a9f36=function(_0x524404){while(--_0x524404){_0x1ef63b['push'](_0x1ef63b['shift']());}};_0x2a9f36(++_0x499cb3);}(a680_0x499c,0xbb));const a680_0x2a9f=function(_0x1ef63b,_0x499cb3){_0x1ef63b=_0x1ef63b-0x0;let _0x2a9f36=a680_0x499c[_0x1ef63b];return _0x2a9f36;};const _0x4b3d77=a680_0x2a9f;'use strict';const express=require('express'),router=express[_0x4b3d77('0x0')]();module[_0x4b3d77('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index 4ffd04a..11d0a31 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -const a681_0xf0b2=['exports','INTEGER'];(function(_0x567c7b,_0xf0b218){const _0x4849dd=function(_0x56a557){while(--_0x56a557){_0x567c7b['push'](_0x567c7b['shift']());}};_0x4849dd(++_0xf0b218);}(a681_0xf0b2,0x106));const a681_0x4849=function(_0x567c7b,_0xf0b218){_0x567c7b=_0x567c7b-0x0;let _0x4849dd=a681_0xf0b2[_0x567c7b];return _0x4849dd;};const _0x373310=a681_0x4849;'use strict';const Sequelize=require('sequelize');module[_0x373310('0x0')]={'penalty':{'type':Sequelize[_0x373310('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userSmsQueue/userSmsQueue.model.js b/server/api/userSmsQueue/userSmsQueue.model.js index 8845a75..636c3f9 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a682_0x3c98=['user_has_sms_queues','define','UserSmsQueue','./userSmsQueue.attributes','exports'];(function(_0x1e05d9,_0x3c98f8){const _0x525f27=function(_0x557aad){while(--_0x557aad){_0x1e05d9['push'](_0x1e05d9['shift']());}};_0x525f27(++_0x3c98f8);}(a682_0x3c98,0x121));const a682_0x525f=function(_0x1e05d9,_0x3c98f8){_0x1e05d9=_0x1e05d9-0x0;let _0x525f27=a682_0x3c98[_0x1e05d9];return _0x525f27;};const _0x177fc4=a682_0x525f;'use strict';const attributes=require(_0x177fc4('0x4'));module[_0x177fc4('0x0')]=function(_0x557aad){const _0x2f5fb6=_0x177fc4,_0x508066=_0x557aad[_0x2f5fb6('0x2')](_0x2f5fb6('0x3'),attributes,{'tableName':_0x2f5fb6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x508066;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index 009d157..438b8f6 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a683_0x5906=['express','exports','Router'];(function(_0xf87496,_0x5906a0){const _0x3f598e=function(_0x3c8561){while(--_0x3c8561){_0xf87496['push'](_0xf87496['shift']());}};_0x3f598e(++_0x5906a0);}(a683_0x5906,0x10a));const a683_0x3f59=function(_0xf87496,_0x5906a0){_0xf87496=_0xf87496-0x0;let _0x3f598e=a683_0x5906[_0xf87496];return _0x3f598e;};const _0x4b87e7=a683_0x3f59;'use strict';const express=require(_0x4b87e7('0x1')),router=express[_0x4b87e7('0x0')]();module[_0x4b87e7('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index eaac50b..0bfb148 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.attributes.js +++ b/server/api/userVoiceQueue/userVoiceQueue.attributes.js @@ -1 +1 @@ -'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const 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 diff --git a/server/api/userVoiceQueue/userVoiceQueue.model.js b/server/api/userVoiceQueue/userVoiceQueue.model.js index cd10339..9fbaaa9 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a685_0x520c=['./userVoiceQueue.attributes','UserVoiceQueue'];(function(_0x1f81c0,_0x520cb8){const _0x4b2af6=function(_0x3ab091){while(--_0x3ab091){_0x1f81c0['push'](_0x1f81c0['shift']());}};_0x4b2af6(++_0x520cb8);}(a685_0x520c,0x1be));const a685_0x4b2a=function(_0x1f81c0,_0x520cb8){_0x1f81c0=_0x1f81c0-0x0;let _0x4b2af6=a685_0x520c[_0x1f81c0];return _0x4b2af6;};const _0x42e55f=a685_0x4b2a;'use strict';const attributes=require(_0x42e55f('0x0'));module['exports']=function(_0x3ab091){const _0x12a64e=_0x42e55f,_0x2dfb7d=_0x3ab091['define'](_0x12a64e('0x1'),attributes,{'tableName':'user_has_voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2dfb7d;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index d2028c0..ce605ce 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a686_0x5e92=['exports','Router','express'];(function(_0x5e7bee,_0x5e92b3){const _0x5ede72=function(_0x34fcb9){while(--_0x34fcb9){_0x5e7bee['push'](_0x5e7bee['shift']());}};_0x5ede72(++_0x5e92b3);}(a686_0x5e92,0x79));const a686_0x5ede=function(_0x5e7bee,_0x5e92b3){_0x5e7bee=_0x5e7bee-0x0;let _0x5ede72=a686_0x5e92[_0x5e7bee];return _0x5ede72;};const _0x451984=a686_0x5ede;'use strict';const express=require(_0x451984('0x1')),router=express[_0x451984('0x0')]();module[_0x451984('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js index 6223009..18cdc30 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a687_0x3ee8=['queue_interface','INTEGER','Required\x20by\x20Asterisk','exports','STRING'];(function(_0x3ff833,_0x3ee865){const _0x138f93=function(_0x527b28){while(--_0x527b28){_0x3ff833['push'](_0x3ff833['shift']());}};_0x138f93(++_0x3ee865);}(a687_0x3ee8,0xf2));const a687_0x138f=function(_0x3ff833,_0x3ee865){_0x3ff833=_0x3ff833-0x0;let _0x138f93=a687_0x3ee8[_0x3ff833];return _0x138f93;};const _0x48da84=a687_0x138f;'use strict';const Sequelize=require('sequelize');module[_0x48da84('0x1')]={'uniqueid':{'type':Sequelize[_0x48da84('0x4')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x48da84('0x0')},'membername':{'type':Sequelize[_0x48da84('0x2')],'allowNull':![],'comment':_0x48da84('0x0')},'UserId':{'type':Sequelize[_0x48da84('0x4')],'allowNull':![]},'queue_name':{'type':Sequelize[_0x48da84('0x2')],'allowNull':![],'unique':'queue_interface','comment':_0x48da84('0x0')},'VoiceQueueId':{'type':Sequelize['INTEGER'],'allowNull':![]},'interface':{'type':Sequelize[_0x48da84('0x2')],'allowNull':![],'unique':_0x48da84('0x3'),'comment':_0x48da84('0x0')},'penalty':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0,'comment':'Required\x20by\x20Asterisk'},'paused':{'type':Sequelize[_0x48da84('0x4')](0xb),'defaultValue':0x0,'comment':_0x48da84('0x0')}}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index 183bb03..0291414 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a688_0x3a52=['undefined','setMaxListeners','remove','update','emit','events','save'];(function(_0x1b1021,_0x3a52b9){const _0x3537b1=function(_0x58e749){while(--_0x58e749){_0x1b1021['push'](_0x1b1021['shift']());}};_0x3537b1(++_0x3a52b9);}(a688_0x3a52,0xdb));const a688_0x3537=function(_0x1b1021,_0x3a52b9){_0x1b1021=_0x1b1021-0x0;let _0x3537b1=a688_0x3a52[_0x1b1021];return _0x3537b1;};const _0xad6d2c=a688_0x3537;'use strict';const EventEmitter=require(_0xad6d2c('0x3')),UserVoiceQueueRt=require('../../mysqldb')['db']['UserVoiceQueueRt'],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0xad6d2c('0x6')](0x0);const events={'afterCreate':_0xad6d2c('0x4'),'afterUpdate':_0xad6d2c('0x1'),'afterDestroy':_0xad6d2c('0x0')};function emitEvent(_0x58e749){return function(_0x3b7fbd){const _0x44d4e5=a688_0x3537;UserVoiceQueueRtEvents[_0x44d4e5('0x2')](_0x58e749+':'+_0x3b7fbd['id'],_0x3b7fbd),UserVoiceQueueRtEvents[_0x44d4e5('0x2')](_0x58e749,_0x3b7fbd);};}for(const e in events){if(typeof events[e]!==_0xad6d2c('0x5')){const event=events[e];UserVoiceQueueRt['addHook'](e,emitEvent(event));}}module['exports']=UserVoiceQueueRtEvents; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index 34c0829..a1cbf46 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a689_0xae8b=['define','./userVoiceQueueRt.attributes','user_has_voice_queues_rt','UserVoiceQueueRt','exports'];(function(_0x4feb63,_0xae8b35){const _0x4dce4e=function(_0x1fc74e){while(--_0x1fc74e){_0x4feb63['push'](_0x4feb63['shift']());}};_0x4dce4e(++_0xae8b35);}(a689_0xae8b,0x8a));const a689_0x4dce=function(_0x4feb63,_0xae8b35){_0x4feb63=_0x4feb63-0x0;let _0x4dce4e=a689_0xae8b[_0x4feb63];return _0x4dce4e;};const _0x4f71aa=a689_0x4dce;'use strict';const attributes=require(_0x4f71aa('0x3'));module[_0x4f71aa('0x1')]=function(_0x1fc74e){const _0x3004cb=_0x4f71aa,_0x2bfd38=_0x1fc74e[_0x3004cb('0x2')](_0x3004cb('0x0'),attributes,{'tableName':_0x3004cb('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2bfd38;}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index bb79fa8..ea8af6e 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a690_0x31be=['`paused`\x20=\x201,\x201,\x20null','error','where','options','debug','stringify','raw','COUNT','GetVoiceQueueRtPauses','info','message','register','sequelize','catch','../../mysqldb'];(function(_0x38ff0c,_0x31be57){const _0x393902=function(_0x5adab9){while(--_0x5adab9){_0x38ff0c['push'](_0x38ff0c['shift']());}};_0x393902(++_0x31be57);}(a690_0x31be,0x1cc));const a690_0x3939=function(_0x38ff0c,_0x31be57){_0x38ff0c=_0x38ff0c-0x0;let _0x393902=a690_0x31be[_0x38ff0c];return _0x393902;};const _0x12c2e6=a690_0x3939;'use strict';const db=require(_0x12c2e6('0x4'))['db'],{fn,literal}=require(_0x12c2e6('0x2')),logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x12c2e6('0x1')](socket),exports[_0x12c2e6('0xd')]=function(_0x5adab9){const _0x52d702=this;return new Promise(function(_0x7856e0,_0x5093d6){const _0x1d482c=a690_0x3939;return db['UserVoiceQueueRt']['findAll']({'raw':_0x5adab9[_0x1d482c('0x8')]?_0x5adab9[_0x1d482c('0x8')][_0x1d482c('0xb')]===undefined?!![]:![]:!![],'where':_0x5adab9[_0x1d482c('0x8')]?_0x5adab9[_0x1d482c('0x8')][_0x1d482c('0x7')]||null:null,'attributes':[[fn(_0x1d482c('0xc'),fn('IF',literal(_0x1d482c('0x5')))),'outboundQueuePauses']]})['then'](function(_0x191a67){const _0x4f813c=_0x1d482c;logger[_0x4f813c('0xe')](_0x4f813c('0xd'),_0x5adab9),logger[_0x4f813c('0x9')]('GetVoiceQueueRtPauses',_0x5adab9,JSON[_0x4f813c('0xa')](_0x191a67)),_0x7856e0(_0x191a67);})[_0x1d482c('0x3')](function(_0x5aecdc){const _0x221e6f=_0x1d482c;logger[_0x221e6f('0x6')](_0x221e6f('0xd'),_0x5aecdc[_0x221e6f('0x0')],_0x5adab9),_0x5093d6(_0x52d702['error'](0x1f4,_0x5aecdc['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index 266d090..95546fd 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a691_0x1d80=['userVoiceQueueRt:','length','./userVoiceQueueRt.events','emit','save','remove','register'];(function(_0x4cab74,_0x1d8033){const _0x9f49fe=function(_0x29cbdb){while(--_0x29cbdb){_0x4cab74['push'](_0x4cab74['shift']());}};_0x9f49fe(++_0x1d8033);}(a691_0x1d80,0x1bc));const a691_0x9f49=function(_0x4cab74,_0x1d8033){_0x4cab74=_0x4cab74-0x0;let _0x9f49fe=a691_0x1d80[_0x4cab74];return _0x9f49fe;};const _0x2b8091=a691_0x9f49;'use strict';const UserVoiceQueueRtEvents=require(_0x2b8091('0x6')),events=[_0x2b8091('0x1'),_0x2b8091('0x2'),'update'];function createListener(_0x29cbdb,_0x3276d8){return function(_0x135f2c){const _0x15bf3e=a691_0x9f49;_0x3276d8[_0x15bf3e('0x0')](_0x29cbdb,_0x135f2c);};}exports[_0x2b8091('0x3')]=function(_0x15f064){const _0x486a69=_0x2b8091;for(let _0x2f1d91=0x0,_0x454bfa=events[_0x486a69('0x5')];_0x2f1d91<_0x454bfa;_0x2f1d91++){const _0x3fd184=events[_0x2f1d91],_0x13be86=createListener(_0x486a69('0x4')+_0x3fd184,_0x15f064);UserVoiceQueueRtEvents['on'](_0x3fd184,_0x13be86);}}; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index 89b777c..eac9919 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a692_0x59c7=['exports','express','Router'];(function(_0x215955,_0x59c71c){const _0x1240b4=function(_0x3dfa62){while(--_0x3dfa62){_0x215955['push'](_0x215955['shift']());}};_0x1240b4(++_0x59c71c);}(a692_0x59c7,0x134));const a692_0x1240=function(_0x215955,_0x59c71c){_0x215955=_0x215955-0x0;let _0x1240b4=a692_0x59c7[_0x215955];return _0x1240b4;};const _0x1722fb=a692_0x1240;'use strict';const express=require(_0x1722fb('0x2')),router=express[_0x1722fb('0x0')]();module[_0x1722fb('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index e9fed12..4b28059 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a693_0x2589=['sequelize','exports','INTEGER'];(function(_0x37445e,_0x2589bb){const _0x2d561c=function(_0xd9b69f){while(--_0xd9b69f){_0x37445e['push'](_0x37445e['shift']());}};_0x2d561c(++_0x2589bb);}(a693_0x2589,0xda));const a693_0x2d56=function(_0x37445e,_0x2589bb){_0x37445e=_0x37445e-0x0;let _0x2d561c=a693_0x2589[_0x37445e];return _0x2d561c;};const _0x54cd44=a693_0x2d56;'use strict';const Sequelize=require(_0x54cd44('0x1'));module[_0x54cd44('0x2')]={'penalty':{'type':Sequelize[_0x54cd44('0x0')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.model.js b/server/api/userWhatsappQueue/userWhatsappQueue.model.js index 6e94535..6981f87 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a694_0x4329=['exports','./userWhatsappQueue.attributes','UserWhatsappQueue','user_has_whatsapp_queues','define'];(function(_0x68d2ac,_0x432906){const _0x5f294a=function(_0x4e023c){while(--_0x4e023c){_0x68d2ac['push'](_0x68d2ac['shift']());}};_0x5f294a(++_0x432906);}(a694_0x4329,0x1ed));const a694_0x5f29=function(_0x68d2ac,_0x432906){_0x68d2ac=_0x68d2ac-0x0;let _0x5f294a=a694_0x4329[_0x68d2ac];return _0x5f294a;};const _0x34ed29=a694_0x5f29;'use strict';const attributes=require(_0x34ed29('0x3'));module[_0x34ed29('0x2')]=function(_0x4e023c){const _0x522b0c=_0x34ed29,_0x5725a6=_0x4e023c[_0x522b0c('0x1')](_0x522b0c('0x4'),attributes,{'tableName':_0x522b0c('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5725a6;}; \ No newline at end of file +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 diff --git a/server/api/variable/index.js b/server/api/variable/index.js index 7a388e8..9a1c67d 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a695_0x136e=['./variable.controller','destroy','/:id','index','delete','post','create','show','../../components/auth/service','isAuthenticated','update','put','exports','get'];(function(_0x1ea562,_0x136efb){const _0x3610be=function(_0x535ce2){while(--_0x535ce2){_0x1ea562['push'](_0x1ea562['shift']());}};_0x3610be(++_0x136efb);}(a695_0x136e,0x109));const a695_0x3610=function(_0x1ea562,_0x136efb){_0x1ea562=_0x1ea562-0x0;let _0x3610be=a695_0x136e[_0x1ea562];return _0x3610be;};const _0x309539=a695_0x3610;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x309539('0x9')),controller=require(_0x309539('0x1'));router[_0x309539('0x0')]('/',auth['isAuthenticated'](),controller[_0x309539('0x4')]),router[_0x309539('0x0')](_0x309539('0x3'),auth['isAuthenticated'](),controller[_0x309539('0x8')]),router[_0x309539('0x6')]('/',auth[_0x309539('0xa')](),controller[_0x309539('0x7')]),router[_0x309539('0xc')](_0x309539('0x3'),auth[_0x309539('0xa')](),controller[_0x309539('0xb')]),router[_0x309539('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x309539('0x2')]),module[_0x309539('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/variable/variable.attributes.js b/server/api/variable/variable.attributes.js index 1af76cc..ed029a2 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a696_0x4cab=['STRING','name','sequelize','exports'];(function(_0x54ac9c,_0x4cab0d){const _0x26618b=function(_0x9bc742){while(--_0x9bc742){_0x54ac9c['push'](_0x54ac9c['shift']());}};_0x26618b(++_0x4cab0d);}(a696_0x4cab,0x162));const a696_0x2661=function(_0x54ac9c,_0x4cab0d){_0x54ac9c=_0x54ac9c-0x0;let _0x26618b=a696_0x4cab[_0x54ac9c];return _0x26618b;};const _0x535d01=a696_0x2661;'use strict';const Sequelize=require(_0x535d01('0x0'));module[_0x535d01('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x535d01('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x535d01('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index 1ce656b..6b4baaa 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a697_0x4242=['destroy','Variable','type','filter','then','status','UserProfileResource','include','intersection','userProfileId','fields','rawAttributes','fieldName','options','attributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','api','length','findOne','merge','lodash','name','params','pick','findAll','keys','model','json','count','Content-Range','body','set','role','filters','user','limit','includeAll','error','VIRTUAL','UserProfileSection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','sort','sequelize','create','get','Variables','../../mysqldb','../../components/parsers/qs','index','catch','nolimit','map','where','offset','undefined','query'];(function(_0x17d0e4,_0x42420a){const _0x3fa777=function(_0x12edca){while(--_0x12edca){_0x17d0e4['push'](_0x17d0e4['shift']());}};_0x3fa777(++_0x42420a);}(a697_0x4242,0x1b0));const a697_0x3fa7=function(_0x17d0e4,_0x42420a){_0x17d0e4=_0x17d0e4-0x0;let _0x3fa777=a697_0x4242[_0x17d0e4];return _0x3fa777;};const _0x4aa043=a697_0x3fa7;'use strict';const _=require(_0x4aa043('0x2c')),qs=require(_0x4aa043('0xf')),logger=require('../../config/logger')(_0x4aa043('0x28')),db=require(_0x4aa043('0xe'))['db'],{Op}=require(_0x4aa043('0xa'));function respondWithResult(_0x12edca,_0x20aaa1){return _0x20aaa1=_0x20aaa1||0xc8,function(_0x48e6e4){const _0x5a8a35=a697_0x3fa7;if(_0x48e6e4)return _0x12edca['status'](_0x20aaa1)[_0x5a8a35('0x33')](_0x48e6e4);};}function respondWithFilteredResult(_0x110bd5,_0x52e720){return function(_0x534431){const _0x3c1090=a697_0x3fa7;if(_0x534431){const _0xcab307=_0x534431[_0x3c1090('0x34')],_0x4a3eb9=_0x52e720['offset'];let _0x1b4f17=_0x52e720[_0x3c1090('0x15')]+_0x52e720[_0x3c1090('0x2')],_0xb7de82;return _0x1b4f17>=_0xcab307?(_0x1b4f17=_0xcab307,_0xb7de82=0xc8):_0xb7de82=0xce,_0x110bd5[_0x3c1090('0x1d')](_0xb7de82),_0x110bd5[_0x3c1090('0x37')](_0x3c1090('0x35'),_0x4a3eb9+'-'+_0x1b4f17+'/'+_0xcab307)[_0x3c1090('0x33')](_0x534431);}return null;};}function saveUpdates(_0x587e3c){return function(_0x5012ff){const _0x786eb4=a697_0x3fa7;if(_0x5012ff)return _0x5012ff[_0x786eb4('0x8')](_0x587e3c)[_0x786eb4('0x1c')](function(_0x31d3c9){return _0x31d3c9;});return null;};}function removeEntity(_0x2be86b){return function(_0xc103cd){const _0x1e8915=a697_0x3fa7;if(_0xc103cd)return _0xc103cd[_0x1e8915('0x18')]()[_0x1e8915('0x1c')](function(){const _0x57c5b6=_0x1e8915,_0x50d38d=_0xc103cd[_0x57c5b6('0xc')]({'plain':!![]}),_0x1338c9=_0x57c5b6('0xd');return db[_0x57c5b6('0x1e')][_0x57c5b6('0x18')]({'where':{'type':_0x1338c9,'resourceId':_0x50d38d['id']}})[_0x57c5b6('0x1c')](function(){return _0xc103cd;});})[_0x1e8915('0x1c')](function(){_0x2be86b['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x108c73){return function(_0xbf749d){return!_0xbf749d&&_0x108c73['sendStatus'](0x194),_0xbf749d;};}function handleError(_0x3924e0,_0x5682eb){return _0x5682eb=_0x5682eb||0x1f4,function(_0x5732ca){const _0x559c03=a697_0x3fa7;logger['error'](_0x5732ca['stack']),_0x5732ca[_0x559c03('0x2d')]&&delete _0x5732ca['name'],_0x3924e0[_0x559c03('0x1d')](_0x5682eb)['send'](_0x5732ca);};}exports[_0x4aa043('0x10')]=function(_0x54dde2,_0x5a1d8d){const _0x485b4f=_0x4aa043;let _0x273bcd={};const _0x12ff1b={},_0x333b7f={'count':0x0,'rows':[]},_0x1d42e3=_[_0x485b4f('0x13')](db[_0x485b4f('0x19')][_0x485b4f('0x23')],function(_0x3b7cbc){const _0x33cb74=_0x485b4f;return{'name':_0x3b7cbc[_0x33cb74('0x24')],'type':_0x3b7cbc[_0x33cb74('0x1a')]['key']};});_0x12ff1b[_0x485b4f('0x32')]=_['map'](_0x1d42e3,'name'),_0x12ff1b[_0x485b4f('0x17')]=_['keys'](_0x54dde2[_0x485b4f('0x17')]),_0x12ff1b['filters']=_[_0x485b4f('0x20')](_0x12ff1b[_0x485b4f('0x32')],_0x12ff1b['query']),_0x273bcd[_0x485b4f('0x26')]=_[_0x485b4f('0x20')](_0x12ff1b[_0x485b4f('0x32')],qs['fields'](_0x54dde2[_0x485b4f('0x17')][_0x485b4f('0x22')])),_0x273bcd[_0x485b4f('0x26')]=_0x273bcd['attributes']['length']?_0x273bcd['attributes']:_0x12ff1b[_0x485b4f('0x32')];typeof _0x54dde2[_0x485b4f('0x17')][_0x485b4f('0x12')]===_0x485b4f('0x16')&&(_0x273bcd['limit']=qs[_0x485b4f('0x2')](_0x54dde2[_0x485b4f('0x17')][_0x485b4f('0x2')]),_0x273bcd['offset']=qs[_0x485b4f('0x15')](_0x54dde2[_0x485b4f('0x17')][_0x485b4f('0x15')]));_0x273bcd['order']=qs[_0x485b4f('0x9')](_0x54dde2[_0x485b4f('0x17')][_0x485b4f('0x9')]),_0x273bcd['where']=qs[_0x485b4f('0x0')](_[_0x485b4f('0x2f')](_0x54dde2[_0x485b4f('0x17')],_0x12ff1b['filters']),_0x1d42e3);_0x54dde2['query']['filter']&&(_0x273bcd[_0x485b4f('0x14')]=_[_0x485b4f('0x2b')](_0x273bcd[_0x485b4f('0x14')],{[Op['or']]:_[_0x485b4f('0x13')](_0x1d42e3,function(_0x1b302f){const _0x2d6653=_0x485b4f;if(_0x1b302f[_0x2d6653('0x1a')]!==_0x2d6653('0x5')){const _0x60673={};return _0x60673[_0x1b302f[_0x2d6653('0x2d')]]={[Op['like']]:'%'+_0x54dde2[_0x2d6653('0x17')][_0x2d6653('0x1b')]+'%'},_0x60673;}})}));_0x273bcd=_['merge']({},_0x273bcd,_0x54dde2[_0x485b4f('0x25')]);const _0x68ef21={'where':_0x273bcd[_0x485b4f('0x14')]};return db[_0x485b4f('0x19')][_0x485b4f('0x34')](_0x68ef21)[_0x485b4f('0x1c')](function(_0x250dbe){const _0x4d6134=_0x485b4f;return _0x333b7f[_0x4d6134('0x34')]=_0x250dbe,_0x54dde2[_0x4d6134('0x17')][_0x4d6134('0x3')]&&(_0x273bcd['include']=[{'all':!![]}]),db[_0x4d6134('0x19')][_0x4d6134('0x30')](_0x273bcd);})[_0x485b4f('0x1c')](function(_0x35c2f2){return _0x333b7f['rows']=_0x35c2f2,_0x333b7f;})['then'](respondWithFilteredResult(_0x5a1d8d,_0x273bcd))[_0x485b4f('0x11')](handleError(_0x5a1d8d,null));},exports['show']=function(_0x48632c,_0x72a678){const _0x86241e=_0x4aa043;let _0x6349fd={'raw':!![],'where':{'id':_0x48632c['params']['id']}};const _0x5ed1a4={};return _0x5ed1a4[_0x86241e('0x32')]=_[_0x86241e('0x31')](db[_0x86241e('0x19')][_0x86241e('0x23')]),_0x5ed1a4['query']=_[_0x86241e('0x31')](_0x48632c[_0x86241e('0x17')]),_0x5ed1a4[_0x86241e('0x0')]=_['intersection'](_0x5ed1a4[_0x86241e('0x32')],_0x5ed1a4[_0x86241e('0x17')]),_0x6349fd[_0x86241e('0x26')]=_[_0x86241e('0x20')](_0x5ed1a4[_0x86241e('0x32')],qs[_0x86241e('0x22')](_0x48632c[_0x86241e('0x17')][_0x86241e('0x22')])),_0x6349fd[_0x86241e('0x26')]=_0x6349fd[_0x86241e('0x26')][_0x86241e('0x29')]?_0x6349fd['attributes']:_0x5ed1a4['model'],_0x48632c[_0x86241e('0x17')][_0x86241e('0x3')]&&(_0x6349fd[_0x86241e('0x1f')]=[{'all':!![]}]),_0x6349fd=_[_0x86241e('0x2b')]({},_0x6349fd,_0x48632c[_0x86241e('0x25')]),db['Variable']['findOne'](_0x6349fd)[_0x86241e('0x1c')](handleEntityNotFound(_0x72a678,null))[_0x86241e('0x1c')](respondWithResult(_0x72a678,null))[_0x86241e('0x11')](handleError(_0x72a678,null));},exports[_0x4aa043('0xb')]=function(_0x59f400,_0x30668c){const _0x4e7be6=_0x4aa043;return db[_0x4e7be6('0x19')]['create'](_0x59f400[_0x4e7be6('0x36')],{})[_0x4e7be6('0x1c')](function(_0x442369){const _0x1c2ccd=_0x4e7be6,_0x1b9571=_0x59f400[_0x1c2ccd('0x1')][_0x1c2ccd('0xc')]({'plain':!![]});if(!_0x1b9571)throw new Error(_0x1c2ccd('0x27'));if(_0x1b9571[_0x1c2ccd('0x38')]===_0x1c2ccd('0x1')){const _0x298f98=_0x442369['get']({'plain':!![]}),_0x26f847='Variables';return db[_0x1c2ccd('0x6')][_0x1c2ccd('0x2a')]({'where':{'name':_0x26f847,'userProfileId':_0x1b9571[_0x1c2ccd('0x21')]},'raw':!![]})['then'](function(_0x25d96c){const _0x57e5ad=_0x1c2ccd;return _0x25d96c&&_0x25d96c['autoAssociation']===0x0?db['UserProfileResource'][_0x57e5ad('0xb')]({'name':_0x298f98[_0x57e5ad('0x2d')],'resourceId':_0x298f98['id'],'type':_0x25d96c[_0x57e5ad('0x2d')],'sectionId':_0x25d96c['id']},{})[_0x57e5ad('0x1c')](function(){return _0x442369;}):_0x442369;})[_0x1c2ccd('0x11')](function(_0xd07458){const _0xc5b2e9=_0x1c2ccd;logger[_0xc5b2e9('0x4')](_0xc5b2e9('0x7'),_0xd07458);throw _0xd07458;});}return _0x442369;})['then'](respondWithResult(_0x30668c,0xc9))[_0x4e7be6('0x11')](handleError(_0x30668c,null));},exports['update']=function(_0x2042f2,_0x2707e9){const _0x1e1187=_0x4aa043;return _0x2042f2[_0x1e1187('0x36')]['id']&&delete _0x2042f2[_0x1e1187('0x36')]['id'],db[_0x1e1187('0x19')][_0x1e1187('0x2a')]({'where':{'id':_0x2042f2[_0x1e1187('0x2e')]['id']}})[_0x1e1187('0x1c')](handleEntityNotFound(_0x2707e9,null))[_0x1e1187('0x1c')](saveUpdates(_0x2042f2['body'],null))[_0x1e1187('0x1c')](respondWithResult(_0x2707e9,null))[_0x1e1187('0x11')](handleError(_0x2707e9,null));},exports['destroy']=function(_0x3f9301,_0x577944){const _0x52e0a8=_0x4aa043;return db[_0x52e0a8('0x19')][_0x52e0a8('0x2a')]({'where':{'id':_0x3f9301[_0x52e0a8('0x2e')]['id']}})[_0x52e0a8('0x1c')](handleEntityNotFound(_0x577944,null))[_0x52e0a8('0x1c')](removeEntity(_0x577944,null))[_0x52e0a8('0x11')](handleError(_0x577944,null));}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index ea66f75..f63a346 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a698_0x3ea8=['./variable.attributes','exports','tools_variables','define','Variable'];(function(_0x344a5e,_0x3ea87e){const _0x411ba4=function(_0x1e0e51){while(--_0x1e0e51){_0x344a5e['push'](_0x344a5e['shift']());}};_0x411ba4(++_0x3ea87e);}(a698_0x3ea8,0x17b));const a698_0x411b=function(_0x344a5e,_0x3ea87e){_0x344a5e=_0x344a5e-0x0;let _0x411ba4=a698_0x3ea8[_0x344a5e];return _0x411ba4;};const _0xd1c5a0=a698_0x411b;'use strict';const attributes=require(_0xd1c5a0('0x1'));module[_0xd1c5a0('0x2')]=function(_0x1e0e51){const _0x5f3212=_0xd1c5a0,_0x3bb823=_0x1e0e51[_0x5f3212('0x4')](_0x5f3212('0x0'),attributes,{'tableName':_0x5f3212('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3bb823;}; \ No newline at end of file +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 diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index e352a38..671e6b8 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a699_0x51ae=['model','info','include','ShowVariable','findOne','options','message','error','../../mysqldb','where','attributes','map','lodash','stringify','debug','then'];(function(_0xcee814,_0x51ae41){const _0x368e48=function(_0xcb7198){while(--_0xcb7198){_0xcee814['push'](_0xcee814['shift']());}};_0x368e48(++_0x51ae41);}(a699_0x51ae,0x1a1));const a699_0x368e=function(_0xcee814,_0x51ae41){_0xcee814=_0xcee814-0x0;let _0x368e48=a699_0x51ae[_0xcee814];return _0x368e48;};const _0x2071ee=a699_0x368e;'use strict';const db=require(_0x2071ee('0x7'))['db'],logger=require('../../config/logger')('rpc'),_=require(_0x2071ee('0xb'));exports['ShowVariable']=function(_0xcb7198){const _0x12e8a3=this;return new Promise(function(_0x286588,_0x4685df){const _0x216446=a699_0x368e;return db['Variable'][_0x216446('0x3')]({'raw':_0xcb7198[_0x216446('0x4')]?_0xcb7198[_0x216446('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0xcb7198[_0x216446('0x4')]?_0xcb7198[_0x216446('0x4')][_0x216446('0x8')]||null:null,'attributes':_0xcb7198[_0x216446('0x4')]?_0xcb7198[_0x216446('0x4')][_0x216446('0x9')]||null:null,'include':_0xcb7198['options']?_0xcb7198[_0x216446('0x4')][_0x216446('0x1')]?_['map'](_0xcb7198['options']['include'],function(_0x5e007e){const _0x470162=_0x216446;return{'model':db[_0x5e007e[_0x470162('0xf')]],'as':_0x5e007e['as'],'attributes':_0x5e007e[_0x470162('0x9')],'include':_0x5e007e[_0x470162('0x1')]?_['map'](_0x5e007e[_0x470162('0x1')],function(_0x1636e1){const _0x2fcc7e=_0x470162;return{'model':db[_0x1636e1[_0x2fcc7e('0xf')]],'as':_0x1636e1['as'],'attributes':_0x1636e1['attributes'],'include':_0x1636e1['include']?_[_0x2fcc7e('0xa')](_0x1636e1['include'],function(_0x1f82d9){const _0x2c6009=_0x2fcc7e;return{'model':db[_0x1f82d9['model']],'as':_0x1f82d9['as'],'attributes':_0x1f82d9[_0x2c6009('0x9')]};}):[]};}):[]};}):[]:[]})[_0x216446('0xe')](function(_0x3e3476){const _0xba591f=_0x216446;logger[_0xba591f('0x0')](_0xba591f('0x2'),_0xcb7198),logger[_0xba591f('0xd')](_0xba591f('0x2'),_0xcb7198,JSON[_0xba591f('0xc')](_0x3e3476)),_0x286588(_0x3e3476);})['catch'](function(_0x589360){const _0x34fa44=_0x216446;logger[_0x34fa44('0x6')](_0x34fa44('0x2'),_0x589360['message'],_0xcb7198),_0x4685df(_0x12e8a3[_0x34fa44('0x6')](0x1f4,_0x589360[_0x34fa44('0x5')]));});});}; \ No newline at end of file +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 diff --git a/server/api/version/index.js b/server/api/version/index.js index a9ef955..c7556d4 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a700_0x4b27=['Router','/fetch','isAuthenticated','pull','fetch','index','/restart','./version.controller','/pull','canUpdate','get','/migrations','express','exports'];(function(_0x25ea3e,_0x4b27dc){const _0x11ee0f=function(_0x331e14){while(--_0x331e14){_0x25ea3e['push'](_0x25ea3e['shift']());}};_0x11ee0f(++_0x4b27dc);}(a700_0x4b27,0x1cb));const a700_0x11ee=function(_0x25ea3e,_0x4b27dc){_0x25ea3e=_0x25ea3e-0x0;let _0x11ee0f=a700_0x4b27[_0x25ea3e];return _0x11ee0f;};const _0x28ea21=a700_0x11ee;'use strict';const express=require(_0x28ea21('0x1')),router=express[_0x28ea21('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x28ea21('0xa'));router[_0x28ea21('0xd')]('/',controller[_0x28ea21('0x8')]),router[_0x28ea21('0xd')](_0x28ea21('0x4'),auth[_0x28ea21('0x5')](),auth[_0x28ea21('0xc')](),controller[_0x28ea21('0x7')]),router[_0x28ea21('0xd')]('/reset',auth[_0x28ea21('0x5')](),auth['canUpdate'](),controller['reset']),router['get'](_0x28ea21('0xb'),auth['isAuthenticated'](),auth[_0x28ea21('0xc')](),controller[_0x28ea21('0x6')]),router['get'](_0x28ea21('0x9'),auth[_0x28ea21('0x5')](),controller['restart']),router['get'](_0x28ea21('0x0'),controller['migrations']),module[_0x28ea21('0x2')]=router; \ No newline at end of file +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 diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index adcb28f..a419bfa 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a701_0x53a8=['npm\x20install\x20--production','motion2','exec','replace','git\x20reset\x20--hard','status','error','then','root','../../../package.json','git\x20fetch\x20origin\x20master','fetch','last','../../config/environment','join','origin','catch','FETCH_HEAD','sequelize','update','--hard','simple-git','master','lodash','sort','path','Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.','restart','version','migrations','constructor','latest','Your\x20system\x20has\x20been\x20restart\x20successfully','tags','Migration','json','umzug','../../config/logger','.js','map','../../config/pm2','info','git\x20fetch','Database\x20already\x20up-to-date','git\x20reset\x20--hard\x20FETCH_HEAD','child_process','pm2\x20restart\x20motion\x20%s','2.0.0','length','readdirSync','push','query'];(function(_0x194d25,_0x53a88e){const _0x23ec8c=function(_0x50bb0a){while(--_0x50bb0a){_0x194d25['push'](_0x194d25['shift']());}};_0x23ec8c(++_0x53a88e);}(a701_0x53a8,0x1a5));const a701_0x23ec=function(_0x194d25,_0x53a88e){_0x194d25=_0x194d25-0x0;let _0x23ec8c=a701_0x53a8[_0x194d25];return _0x23ec8c;};const _0xc7134=a701_0x23ec;'use strict';const Umzug=require(_0xc7134('0x1f')),path=require(_0xc7134('0x14')),fs=require('fs'),_=require(_0xc7134('0x12')),compareVersions=require('compare-versions'),exec=require(_0xc7134('0x28'))[_0xc7134('0x31')],db=require('../../mysqldb')['db'],config=require(_0xc7134('0x8')),pm2=require(_0xc7134('0x23')),logger=require(_0xc7134('0x20'))(_0xc7134('0xe')),{version:packageVersion}=require(_0xc7134('0x4')),git=require(_0xc7134('0x10'))(config[_0xc7134('0x3')]),{UniqueConstraintError}=require(_0xc7134('0xd')),{readBuildInfo}=require('../../utils/build-info');async function index(_0x50bb0a,_0x3ce714){const _0x2888f3=_0xc7134,_0x34c7f2=await readBuildInfo(),_0x2c047c={'current':packageVersion,'phonebar':0x2,..._0x34c7f2};return _0x50bb0a[_0x2888f3('0x2e')]&&_0x50bb0a['query'][_0x2888f3('0x1a')]?git[_0x2888f3('0x6')]()[_0x2888f3('0x1c')](function(_0x373d4c,_0xba3db3){const _0x1399d0=_0x2888f3;return _0x2c047c[_0x1399d0('0x1a')]=(_0x373d4c?packageVersion:_0xba3db3[_0x1399d0('0x1a')])||_0x1399d0('0x2a'),_0x3ce714[_0x1399d0('0x0')](0xc8)['json'](_0x2c047c);}):_0x3ce714[_0x2888f3('0x0')](0xc8)['json'](_0x2c047c);}function fetch(_0x277660,_0x31de15){const _0x13e79a=_0xc7134;return git[_0x13e79a('0x6')]([_0x13e79a('0xa'),_0x13e79a('0x11')],function(_0x36de72){const _0x5b8de2=_0x13e79a;if(_0x36de72)return logger['error'](_0x36de72),_0x31de15[_0x5b8de2('0x0')](0x1f4)[_0x5b8de2('0x1e')](_0x36de72);return logger[_0x5b8de2('0x24')](_0x5b8de2('0x25')),_0x31de15[_0x5b8de2('0x0')](0xc8)[_0x5b8de2('0x1e')]({'output':_0x5b8de2('0x5')});});}function reset(_0x298427,_0x4bc091){const _0x111597=_0xc7134;return git['reset']([_0x111597('0xf'),_0x111597('0xc')],function(_0xff46b0){const _0x26e921=_0x111597;if(_0xff46b0)return logger['error'](_0xff46b0),_0x4bc091[_0x26e921('0x0')](0x1f4)[_0x26e921('0x1e')](_0xff46b0);return logger[_0x26e921('0x24')](_0x26e921('0x27')),_0x4bc091[_0x26e921('0x0')](0xc8)[_0x26e921('0x1e')]({'output':_0x26e921('0x33')});});}function pull(_0x5683b7,_0x47f3f8){const _0x2a2613=_0xc7134;exec(_0x2a2613('0x2f'),function(_0x14e83d,_0x361c35,_0x2dbb12){const _0x1a618b=_0x2a2613;logger['info'](_0x361c35),logger[_0x1a618b('0x24')](_0x2dbb12);if(_0x14e83d)return logger['error'](_0x14e83d),_0x47f3f8[_0x1a618b('0x0')](0x1f4)[_0x1a618b('0x1e')](_0x14e83d);return _0x47f3f8[_0x1a618b('0x0')](0xc8)[_0x1a618b('0x1e')]({'output':_0x361c35});});}function restart(_0x35bd57,_0x382e5d){const _0x354541=_0xc7134;return pm2[_0x354541('0x16')](_0x354541('0x30'))[_0x354541('0x2')](function(_0x181373){const _0x577b3f=_0x354541;return logger[_0x577b3f('0x24')](_0x577b3f('0x29'),_0x181373),_0x382e5d[_0x577b3f('0x0')](0xc8)['json']({'output':_0x577b3f('0x1b')});})['catch'](function(_0x5e753a){const _0x16d645=_0x354541;return logger[_0x16d645('0x1')](_0x5e753a),_0x382e5d[_0x16d645('0x0')](0x1f4)['json'](_0x5e753a);});}function migrations(_0x3b61da,_0x42d2de){const _0x2b744f=_0xc7134,_0x5cd6dd=fs[_0x2b744f('0x2c')](path['join'](config[_0x2b744f('0x3')],_0x2b744f('0x18'))),_0x549c3a=[];for(let _0x42e5f3=0x0;_0x42e5f3<_0x5cd6dd[_0x2b744f('0x2b')];_0x42e5f3++){const _0x1ef418=_0x5cd6dd[_0x42e5f3][_0x2b744f('0x32')]('.js','');compareVersions(packageVersion,_0x1ef418)===-0x1&&_0x549c3a[_0x2b744f('0x2d')](_0x1ef418);}if(_0x549c3a['length']){const _0x40b102=_0x549c3a[_0x2b744f('0x13')](compareVersions),_0x4219fa=new Umzug({'storage':_0x2b744f('0xd'),'storageOptions':{'model':db['Migration'],'modelName':_0x2b744f('0x1d'),'columnName':_0x2b744f('0x17')},'migrations':{'params':[db['sequelize']['getQueryInterface'](),db['sequelize'][_0x2b744f('0x19')],function(){const _0x40d5de=_0x2b744f;throw new Error(_0x40d5de('0x15'));}],'path':path[_0x2b744f('0x9')](config[_0x2b744f('0x3')],_0x2b744f('0x18')),'pattern':/\.js$/}});_0x4219fa['up']({'migrations':_[_0x2b744f('0x22')](_0x40b102,function(_0x178462){const _0x113bd8=_0x2b744f;return _0x178462+_0x113bd8('0x21');})})[_0x2b744f('0x2')](function(){const _0x2e7109=_0x2b744f;return _0x42d2de[_0x2e7109('0x0')](0xc8)['json']({'output':'Database\x20migrated\x20successfully\x20from\x20version\x20'+packageVersion+'\x20to\x20'+_[_0x2e7109('0x7')](_0x40b102),'migrations':_['join'](_0x40b102)});})[_0x2b744f('0xb')](function(_0x43a13d){const _0x484705=_0x2b744f;return _0x43a13d instanceof UniqueConstraintError?_0x42d2de[_0x484705('0x0')](0xc8)['json']({'output':_0x484705('0x26')}):_0x42d2de[_0x484705('0x0')](0x1f4)[_0x484705('0x1e')](_0x43a13d);});}else return _0x42d2de[_0x2b744f('0x0')](0xc8)[_0x2b744f('0x1e')]({'output':_0x2b744f('0x26')});}module['exports']={'index':index,'fetch':fetch,'migrations':migrations,'pull':pull,'reset':reset,'restart':restart}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index 3cb9e8b..878afc1 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a702_0x476d=['post','get','delete','./voiceAgentReport.controller','destroy','create','describe','/:id','isAuthenticated'];(function(_0x23275f,_0x476d9c){const _0x423147=function(_0x4f8b07){while(--_0x4f8b07){_0x23275f['push'](_0x23275f['shift']());}};_0x423147(++_0x476d9c);}(a702_0x476d,0x66));const a702_0x4231=function(_0x23275f,_0x476d9c){_0x23275f=_0x23275f-0x0;let _0x423147=a702_0x476d[_0x23275f];return _0x423147;};const _0x336ffd=a702_0x4231;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x336ffd('0x0'));router[_0x336ffd('0x7')]('/',auth[_0x336ffd('0x5')](),controller['index']),router[_0x336ffd('0x7')]('/describe',auth[_0x336ffd('0x5')](),controller[_0x336ffd('0x3')]),router['get']('/:id',auth[_0x336ffd('0x5')](),controller['show']),router[_0x336ffd('0x6')]('/',auth['isAuthenticated'](),controller[_0x336ffd('0x2')]),router['put'](_0x336ffd('0x4'),auth[_0x336ffd('0x5')](),controller['update']),router[_0x336ffd('0x8')](_0x336ffd('0x4'),auth['isAuthenticated'](),controller[_0x336ffd('0x1')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 49e730c..6e65a64 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a703_0x2aaf=['STRING','INTEGER','exports','BOOLEAN','DATE','FORWARD,\x20BLIND,\x20ATTENDED','sequelize'];(function(_0x2256e7,_0x2aafb1){const _0x15da18=function(_0x1942e7){while(--_0x1942e7){_0x2256e7['push'](_0x2256e7['shift']());}};_0x15da18(++_0x2aafb1);}(a703_0x2aaf,0x105));const a703_0x15da=function(_0x2256e7,_0x2aafb1){_0x2256e7=_0x2256e7-0x0;let _0x15da18=a703_0x2aaf[_0x2256e7];return _0x15da18;};const _0x4c18d6=a703_0x15da;'use strict';const Sequelize=require(_0x4c18d6('0x4'));module[_0x4c18d6('0x0')]={'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x4c18d6('0x5')]},'calleridnum':{'type':Sequelize[_0x4c18d6('0x5')]},'calleridname':{'type':Sequelize[_0x4c18d6('0x5')]},'queue':{'type':Sequelize[_0x4c18d6('0x5')]},'interface':{'type':Sequelize[_0x4c18d6('0x5')]},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x4c18d6('0x2')]},'agentconnectAt':{'type':Sequelize['DATE']},'agentcompleteAt':{'type':Sequelize[_0x4c18d6('0x2')]},'agentringnoanswerAt':{'type':Sequelize[_0x4c18d6('0x2')]},'agentdumpAt':{'type':Sequelize[_0x4c18d6('0x2')]},'holdtime':{'type':Sequelize[_0x4c18d6('0x6')]},'agentcomplete':{'type':Sequelize[_0x4c18d6('0x1')],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0x4c18d6('0x1')],'defaultValue':![]},'agentdump':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'talktime':{'type':Sequelize[_0x4c18d6('0x6')]},'agentacw':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x4c18d6('0x6')]},'reason':{'type':Sequelize[_0x4c18d6('0x5')]},'lastevent':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x4c18d6('0x5')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x4c18d6('0x5')]},'connectedlinenum':{'type':Sequelize[_0x4c18d6('0x5')]},'connectedlinename':{'type':Sequelize[_0x4c18d6('0x5')]},'language':{'type':Sequelize[_0x4c18d6('0x5')]},'accountcode':{'type':Sequelize[_0x4c18d6('0x5')]},'context':{'type':Sequelize[_0x4c18d6('0x5')]},'exten':{'type':Sequelize[_0x4c18d6('0x5')]},'priority':{'type':Sequelize[_0x4c18d6('0x5')]},'destchannel':{'type':Sequelize[_0x4c18d6('0x5')]},'destchannelstate':{'type':Sequelize[_0x4c18d6('0x6')]},'destchannelstatedesc':{'type':Sequelize['STRING']},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x4c18d6('0x5')]},'destconnectedlinename':{'type':Sequelize[_0x4c18d6('0x5')]},'destlanguage':{'type':Sequelize[_0x4c18d6('0x5')]},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x4c18d6('0x5')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x4c18d6('0x5')]},'destuniqueid':{'type':Sequelize['STRING']},'answeredelsewheredestinationuniqueid':{'type':Sequelize['STRING']},'answeredelsewheremembername':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0x4c18d6('0x1')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x4c18d6('0x5')],'comment':_0x4c18d6('0x3')},'transferexten':{'type':Sequelize[_0x4c18d6('0x5')]},'transferuniqueid':{'type':Sequelize[_0x4c18d6('0x5')]},'agententerreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.controller.js b/server/api/voiceAgentReport/voiceAgentReport.controller.js index 7400f40..0a7860b 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a704_0x4414=['options','where','sort','show','lodash','includeAll','findAll','then','type','fields','fieldName','VoiceAgentReport','destroy','end','include','intersection','model','findOne','keys','VIRTUAL','offset','describe','name','set','send','rows','merge','attributes','update','status','sendStatus','error','filter','catch','count','length','map','order','create','params','../../mysqldb','json','limit','filters','body','query','like','rawAttributes','nolimit','../../components/parsers/qs'];(function(_0x3bd324,_0x441421){const _0x1405f7=function(_0x410b85){while(--_0x410b85){_0x3bd324['push'](_0x3bd324['shift']());}};_0x1405f7(++_0x441421);}(a704_0x4414,0x17e));const a704_0x1405=function(_0x3bd324,_0x441421){_0x3bd324=_0x3bd324-0x0;let _0x1405f7=a704_0x4414[_0x3bd324];return _0x1405f7;};const _0x33dda9=a704_0x1405;'use strict';const _=require(_0x33dda9('0x16')),qs=require(_0x33dda9('0x11')),logger=require('../../config/logger')('api'),db=require(_0x33dda9('0x8'))['db'],{Op}=require('sequelize');function respondWithResult(_0x410b85,_0x38df1b){return _0x38df1b=_0x38df1b||0xc8,function(_0x139166){const _0x2b993b=a704_0x1405;if(_0x139166)return _0x410b85['status'](_0x38df1b)[_0x2b993b('0x9')](_0x139166);};}function respondWithFilteredResult(_0x56aca2,_0x1d39df){return function(_0x59f316){const _0x5ae46e=a704_0x1405;if(_0x59f316){const _0x50a680=_0x59f316['count'],_0x3a1c7a=_0x1d39df['offset'];let _0x28462f=_0x1d39df['offset']+_0x1d39df[_0x5ae46e('0xa')],_0x15415b;return _0x28462f>=_0x50a680?(_0x28462f=_0x50a680,_0x15415b=0xc8):_0x15415b=0xce,_0x56aca2[_0x5ae46e('0x2f')](_0x15415b),_0x56aca2[_0x5ae46e('0x29')]('Content-Range',_0x3a1c7a+'-'+_0x28462f+'/'+_0x50a680)[_0x5ae46e('0x9')](_0x59f316);}return null;};}function saveUpdates(_0x2e901c){return function(_0x3892fa){const _0x5d1d5c=a704_0x1405;if(_0x3892fa)return _0x3892fa[_0x5d1d5c('0x2e')](_0x2e901c)[_0x5d1d5c('0x19')](function(_0x59440e){return _0x59440e;});return null;};}function removeEntity(_0x38a5de){return function(_0x6d4a20){const _0x2c0fef=a704_0x1405;if(_0x6d4a20)return _0x6d4a20[_0x2c0fef('0x1e')]()['then'](function(){const _0x2c5b3c=_0x2c0fef;_0x38a5de[_0x2c5b3c('0x2f')](0xcc)[_0x2c5b3c('0x1f')]();});};}function handleEntityNotFound(_0x19ca34){return function(_0x100d64){const _0x58e927=a704_0x1405;return!_0x100d64&&_0x19ca34[_0x58e927('0x30')](0x194),_0x100d64;};}function handleError(_0x9c5d83,_0x4e5f9c){return _0x4e5f9c=_0x4e5f9c||0x1f4,function(_0x2a2e7b){const _0x5aa431=a704_0x1405;logger[_0x5aa431('0x31')](_0x2a2e7b['stack']),_0x2a2e7b['name']&&delete _0x2a2e7b[_0x5aa431('0x28')],_0x9c5d83[_0x5aa431('0x2f')](_0x4e5f9c)[_0x5aa431('0x2a')](_0x2a2e7b);};}exports['index']=function(_0x24bd41,_0x12c6aa){const _0x3056da=_0x33dda9;let _0x55825e={};const _0x38cac0={},_0x109f68={'count':0x0,'rows':[]},_0x14c73f=_[_0x3056da('0x4')](db[_0x3056da('0x1d')][_0x3056da('0xf')],function(_0x5b3beb){const _0x4dff6d=_0x3056da;return{'name':_0x5b3beb[_0x4dff6d('0x1c')],'type':_0x5b3beb[_0x4dff6d('0x1a')]['key']};});_0x38cac0['model']=_[_0x3056da('0x4')](_0x14c73f,_0x3056da('0x28')),_0x38cac0[_0x3056da('0xd')]=_[_0x3056da('0x24')](_0x24bd41[_0x3056da('0xd')]),_0x38cac0[_0x3056da('0xb')]=_[_0x3056da('0x21')](_0x38cac0[_0x3056da('0x22')],_0x38cac0[_0x3056da('0xd')]),_0x55825e[_0x3056da('0x2d')]=_[_0x3056da('0x21')](_0x38cac0['model'],qs[_0x3056da('0x1b')](_0x24bd41[_0x3056da('0xd')]['fields'])),_0x55825e[_0x3056da('0x2d')]=_0x55825e['attributes'][_0x3056da('0x3')]?_0x55825e[_0x3056da('0x2d')]:_0x38cac0[_0x3056da('0x22')];typeof _0x24bd41[_0x3056da('0xd')][_0x3056da('0x10')]==='undefined'&&(_0x55825e[_0x3056da('0xa')]=qs[_0x3056da('0xa')](_0x24bd41['query'][_0x3056da('0xa')]),_0x55825e[_0x3056da('0x26')]=qs[_0x3056da('0x26')](_0x24bd41[_0x3056da('0xd')]['offset']));_0x55825e[_0x3056da('0x5')]=qs[_0x3056da('0x14')](_0x24bd41[_0x3056da('0xd')][_0x3056da('0x14')]),_0x55825e[_0x3056da('0x13')]=qs[_0x3056da('0xb')](_['pick'](_0x24bd41[_0x3056da('0xd')],_0x38cac0['filters']),_0x14c73f);_0x24bd41[_0x3056da('0xd')][_0x3056da('0x0')]&&(_0x55825e['where']=_[_0x3056da('0x2c')](_0x55825e[_0x3056da('0x13')],{[Op['or']]:_[_0x3056da('0x4')](_0x14c73f,function(_0x13aabc){const _0x4f9047=_0x3056da;if(_0x13aabc[_0x4f9047('0x1a')]!==_0x4f9047('0x25')){const _0x1fb3e5={};return _0x1fb3e5[_0x13aabc[_0x4f9047('0x28')]]={[Op[_0x4f9047('0xe')]]:'%'+_0x24bd41[_0x4f9047('0xd')][_0x4f9047('0x0')]+'%'},_0x1fb3e5;}})}));_0x55825e=_['merge']({},_0x55825e,_0x24bd41[_0x3056da('0x12')]);const _0x4b74db={'where':_0x55825e[_0x3056da('0x13')]};return db['VoiceAgentReport'][_0x3056da('0x2')](_0x4b74db)[_0x3056da('0x19')](function(_0x4e6a06){const _0x16fcd2=_0x3056da;return _0x109f68[_0x16fcd2('0x2')]=_0x4e6a06,_0x24bd41[_0x16fcd2('0xd')][_0x16fcd2('0x17')]&&(_0x55825e['include']=[{'all':!![]}]),db['VoiceAgentReport'][_0x16fcd2('0x18')](_0x55825e);})[_0x3056da('0x19')](function(_0x548dc3){const _0x4b6298=_0x3056da;return _0x109f68[_0x4b6298('0x2b')]=_0x548dc3,_0x109f68;})[_0x3056da('0x19')](respondWithFilteredResult(_0x12c6aa,_0x55825e))['catch'](handleError(_0x12c6aa,null));},exports[_0x33dda9('0x15')]=function(_0x3d9769,_0x5b3e0e){const _0x2f0a47=_0x33dda9;let _0x3975a7={'raw':![],'where':{'id':_0x3d9769[_0x2f0a47('0x7')]['id']}};const _0x22ddb7={};return _0x22ddb7['model']=_[_0x2f0a47('0x24')](db[_0x2f0a47('0x1d')][_0x2f0a47('0xf')]),_0x22ddb7[_0x2f0a47('0xd')]=_[_0x2f0a47('0x24')](_0x3d9769[_0x2f0a47('0xd')]),_0x22ddb7[_0x2f0a47('0xb')]=_[_0x2f0a47('0x21')](_0x22ddb7['model'],_0x22ddb7[_0x2f0a47('0xd')]),_0x3975a7[_0x2f0a47('0x2d')]=_[_0x2f0a47('0x21')](_0x22ddb7[_0x2f0a47('0x22')],qs[_0x2f0a47('0x1b')](_0x3d9769[_0x2f0a47('0xd')]['fields'])),_0x3975a7['attributes']=_0x3975a7[_0x2f0a47('0x2d')]['length']?_0x3975a7['attributes']:_0x22ddb7[_0x2f0a47('0x22')],_0x3d9769[_0x2f0a47('0xd')][_0x2f0a47('0x17')]&&(_0x3975a7[_0x2f0a47('0x20')]=[{'all':!![]}]),_0x3975a7=_['merge']({},_0x3975a7,_0x3d9769[_0x2f0a47('0x12')]),db[_0x2f0a47('0x1d')]['findOne'](_0x3975a7)[_0x2f0a47('0x19')](handleEntityNotFound(_0x5b3e0e,null))[_0x2f0a47('0x19')](respondWithResult(_0x5b3e0e,null))[_0x2f0a47('0x1')](handleError(_0x5b3e0e,null));},exports[_0x33dda9('0x6')]=function(_0x3cf00c,_0x4f787b){const _0x3eb735=_0x33dda9;return db[_0x3eb735('0x1d')][_0x3eb735('0x6')](_0x3cf00c[_0x3eb735('0xc')],{})[_0x3eb735('0x19')](respondWithResult(_0x4f787b,0xc9))[_0x3eb735('0x1')](handleError(_0x4f787b,null));},exports['update']=function(_0x1aa250,_0x42555f){const _0x510f93=_0x33dda9;return _0x1aa250[_0x510f93('0xc')]['id']&&delete _0x1aa250['body']['id'],db['VoiceAgentReport'][_0x510f93('0x23')]({'where':{'id':_0x1aa250[_0x510f93('0x7')]['id']}})[_0x510f93('0x19')](handleEntityNotFound(_0x42555f,null))[_0x510f93('0x19')](saveUpdates(_0x1aa250['body'],null))['then'](respondWithResult(_0x42555f,null))[_0x510f93('0x1')](handleError(_0x42555f,null));},exports[_0x33dda9('0x1e')]=function(_0x3b94cf,_0x2879f4){const _0x32ffa9=_0x33dda9;return db[_0x32ffa9('0x1d')]['findOne']({'where':{'id':_0x3b94cf[_0x32ffa9('0x7')]['id']}})[_0x32ffa9('0x19')](handleEntityNotFound(_0x2879f4,null))[_0x32ffa9('0x19')](removeEntity(_0x2879f4,null))[_0x32ffa9('0x1')](handleError(_0x2879f4,null));},exports[_0x33dda9('0x27')]=function(_0x2c36fc,_0x4eb4e5){const _0x1fd8e3=_0x33dda9;return db['VoiceAgentReport']['describe']()[_0x1fd8e3('0x19')](respondWithResult(_0x4eb4e5,null))[_0x1fd8e3('0x1')](handleError(_0x4eb4e5,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index 86fcaf2..6d591b0 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a705_0x408a=['define','report_agent','VoiceAgentReport','destuniqueid','./voiceAgentReport.attributes'];(function(_0x45bfab,_0x408a80){const _0x25efb9=function(_0x4eb3b7){while(--_0x4eb3b7){_0x45bfab['push'](_0x45bfab['shift']());}};_0x25efb9(++_0x408a80);}(a705_0x408a,0xfd));const a705_0x25ef=function(_0x45bfab,_0x408a80){_0x45bfab=_0x45bfab-0x0;let _0x25efb9=a705_0x408a[_0x45bfab];return _0x25efb9;};const _0x27e7f4=a705_0x25ef;'use strict';const attributes=require(_0x27e7f4('0x1'));module['exports']=function(_0x4eb3b7){const _0xbb9201=_0x27e7f4,_0x5eb8de=_0x4eb3b7[_0xbb9201('0x2')](_0xbb9201('0x4'),attributes,{'tableName':_0xbb9201('0x3'),'paranoid':![],'indexes':[{'fields':['uniqueid',_0xbb9201('0x0')]}],'timestamps':!![]});return _0x5eb8de;}; \ No newline at end of file +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 diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index 8da1132..efd0231 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a706_0x24b3=['error','update','VoiceAgentReport','../../mysqldb','info','catch','options','attributes','UpdateVoiceAgentReport','then','debug','body','rpc','raw','create','stringify','message','../../config/logger'];(function(_0x243f0e,_0x24b3fd){const _0x233573=function(_0x598577){while(--_0x598577){_0x243f0e['push'](_0x243f0e['shift']());}};_0x233573(++_0x24b3fd);}(a706_0x24b3,0x183));const a706_0x2335=function(_0x243f0e,_0x24b3fd){_0x243f0e=_0x243f0e-0x0;let _0x233573=a706_0x24b3[_0x243f0e];return _0x233573;};const _0x35af6f=a706_0x2335;'use strict';const db=require(_0x35af6f('0xc'))['db'],logger=require(_0x35af6f('0x8'))(_0x35af6f('0x3'));exports['CreateVoiceAgentReport']=function(_0x598577){const _0x23f27e=this;return new Promise(function(_0x31e9d3,_0x9eb9b5){const _0x439700=a706_0x2335;return db[_0x439700('0xb')][_0x439700('0x5')](_0x598577[_0x439700('0x2')],{'raw':_0x598577['options']?_0x598577[_0x439700('0xf')][_0x439700('0x4')]===undefined?!![]:![]:!![]})[_0x439700('0x0')](function(_0x451ae3){const _0x26e054=_0x439700;logger[_0x26e054('0xd')]('CreateVoiceAgentReport',_0x598577),logger[_0x26e054('0x1')]('CreateVoiceAgentReport',_0x598577,JSON[_0x26e054('0x6')](_0x451ae3)),_0x31e9d3(_0x451ae3);})[_0x439700('0xe')](function(_0x2a0a2c){const _0x38d4bd=_0x439700;logger[_0x38d4bd('0x9')]('CreateVoiceAgentReport',_0x2a0a2c[_0x38d4bd('0x7')],_0x598577),_0x9eb9b5(_0x23f27e['error'](0x1f4,_0x2a0a2c[_0x38d4bd('0x7')]));});});},exports[_0x35af6f('0x11')]=function(_0x2dbf2d){const _0x257db2=this;return new Promise(function(_0x13b804,_0x147669){const _0x5efe87=a706_0x2335;return db['VoiceAgentReport'][_0x5efe87('0xa')](_0x2dbf2d['body'],{'raw':_0x2dbf2d[_0x5efe87('0xf')]?_0x2dbf2d[_0x5efe87('0xf')][_0x5efe87('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2dbf2d[_0x5efe87('0xf')]?_0x2dbf2d[_0x5efe87('0xf')]['where']||null:null,'attributes':_0x2dbf2d[_0x5efe87('0xf')]?_0x2dbf2d[_0x5efe87('0xf')][_0x5efe87('0x10')]||null:null,'limit':_0x2dbf2d[_0x5efe87('0xf')]?_0x2dbf2d[_0x5efe87('0xf')]['limit']||null:null})[_0x5efe87('0x0')](function(_0x22c5cc){const _0x54be67=_0x5efe87;logger[_0x54be67('0xd')](_0x54be67('0x11'),_0x2dbf2d),logger[_0x54be67('0x1')](_0x54be67('0x11'),_0x2dbf2d,JSON[_0x54be67('0x6')](_0x22c5cc)),_0x13b804(_0x22c5cc);})[_0x5efe87('0xe')](function(_0x5debcc){const _0x570a42=_0x5efe87;logger['error'](_0x570a42('0x11'),_0x5debcc[_0x570a42('0x7')],_0x2dbf2d),_0x147669(_0x257db2[_0x570a42('0x9')](0x1f4,_0x5debcc[_0x570a42('0x7')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index f1becab..1265655 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a707_0xb2f6=['show','get','../../components/auth/service','post','create','destroy','/describe','isAuthenticated','index','update','describe','/:id','./voiceCallReport.controller','exports'];(function(_0x4428d1,_0xb2f64d){const _0xc1a0ec=function(_0x4ac6f1){while(--_0x4ac6f1){_0x4428d1['push'](_0x4428d1['shift']());}};_0xc1a0ec(++_0xb2f64d);}(a707_0xb2f6,0x1bc));const a707_0xc1a0=function(_0x4428d1,_0xb2f64d){_0x4428d1=_0x4428d1-0x0;let _0xc1a0ec=a707_0xb2f6[_0x4428d1];return _0xc1a0ec;};const _0x5c0be1=a707_0xc1a0;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5c0be1('0x6')),controller=require(_0x5c0be1('0x2'));router[_0x5c0be1('0x5')]('/',auth[_0x5c0be1('0xb')](),controller[_0x5c0be1('0xc')]),router[_0x5c0be1('0x5')](_0x5c0be1('0xa'),auth[_0x5c0be1('0xb')](),controller[_0x5c0be1('0x0')]),router[_0x5c0be1('0x5')](_0x5c0be1('0x1'),auth[_0x5c0be1('0xb')](),controller[_0x5c0be1('0x4')]),router[_0x5c0be1('0x7')]('/',auth['isAuthenticated'](),controller[_0x5c0be1('0x8')]),router['put'](_0x5c0be1('0x1'),auth['isAuthenticated'](),controller[_0x5c0be1('0xd')]),router['delete'](_0x5c0be1('0x1'),auth[_0x5c0be1('0xb')](),controller[_0x5c0be1('0x9')]),module[_0x5c0be1('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.attributes.js b/server/api/voiceCallReport/voiceCallReport.attributes.js index aca0367..004b5b1 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a708_0x5991=['inbound','internal','STRING','exports','TEXT','ENUM','INTEGER','inbound-fax','outbound','DATE'];(function(_0x228cad,_0x5991a1){const _0x2db5de=function(_0x4b7005){while(--_0x4b7005){_0x228cad['push'](_0x228cad['shift']());}};_0x2db5de(++_0x5991a1);}(a708_0x5991,0x167));const a708_0x2db5=function(_0x228cad,_0x5991a1){_0x228cad=_0x228cad-0x0;let _0x2db5de=a708_0x5991[_0x228cad];return _0x2db5de;};const _0x4897f9=a708_0x2db5;'use strict';const Sequelize=require('sequelize');module[_0x4897f9('0x4')]={'uniqueid':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x4897f9('0x6')](_0x4897f9('0x1'),_0x4897f9('0x2'),_0x4897f9('0x9'),_0x4897f9('0x8'),'outbound-fax','dialer')},'tag':{'type':Sequelize[_0x4897f9('0x3')]},'accountcode':{'type':Sequelize[_0x4897f9('0x3')]},'source':{'type':Sequelize[_0x4897f9('0x3')]},'destination':{'type':Sequelize[_0x4897f9('0x3')]},'destinationcontext':{'type':Sequelize[_0x4897f9('0x3')]},'callerid':{'type':Sequelize[_0x4897f9('0x3')]},'channel':{'type':Sequelize['STRING']},'destinationchannel':{'type':Sequelize[_0x4897f9('0x3')]},'lastapplication':{'type':Sequelize[_0x4897f9('0x3')]},'lastdata':{'type':Sequelize[_0x4897f9('0x5')]},'starttime':{'type':Sequelize[_0x4897f9('0x0')]},'systemanswertime':{'type':Sequelize['DATE']},'answertime':{'type':Sequelize[_0x4897f9('0x0')]},'endtime':{'type':Sequelize[_0x4897f9('0x0')]},'duration':{'type':Sequelize[_0x4897f9('0x7')]},'billableseconds':{'type':Sequelize[_0x4897f9('0x7')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x4897f9('0x3')]},'amaflags':{'type':Sequelize[_0x4897f9('0x3')]},'userfield':{'type':Sequelize[_0x4897f9('0x3')]},'userDisposition':{'type':Sequelize[_0x4897f9('0x3')]},'userSecondDisposition':{'type':Sequelize[_0x4897f9('0x3')]},'userThirdDisposition':{'type':Sequelize[_0x4897f9('0x3')]},'note':{'type':Sequelize[_0x4897f9('0x3')]},'prefix':{'type':Sequelize[_0x4897f9('0x3')]},'routeid':{'type':Sequelize[_0x4897f9('0x7')]},'sipcallid':{'type':Sequelize[_0x4897f9('0x3')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.controller.js b/server/api/voiceCallReport/voiceCallReport.controller.js index 28fb3ff..5909276 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a709_0x5964=['filters','uniqueid','../../components/parsers/qs','show','intersection','length','Content-Range','type','offset','count','include','fullname','merge','body','like','catch','name','fields','error','sort','destroy','limit','user','alias','includeAll','send','set','VIRTUAL','end','describe','model','User','VoiceCallReport','index','key','findOne','where','../../mysqldb','json','query','map','rawAttributes','fieldName','then','status','lodash','create','order','params','options','stack','findAll','attributes','update','keys','filter','undefined'];(function(_0x403d80,_0x596497){const _0x290a65=function(_0x2483e3){while(--_0x2483e3){_0x403d80['push'](_0x403d80['shift']());}};_0x290a65(++_0x596497);}(a709_0x5964,0xf5));const a709_0x290a=function(_0x403d80,_0x596497){_0x403d80=_0x403d80-0x0;let _0x290a65=a709_0x5964[_0x403d80];return _0x290a65;};const _0x49fa8f=a709_0x290a;'use strict';const _=require(_0x49fa8f('0x1c')),qs=require(_0x49fa8f('0x2a')),logger=require('../../config/logger')('api'),db=require(_0x49fa8f('0x14'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2483e3,_0x1d5ef8){return _0x1d5ef8=_0x1d5ef8||0xc8,function(_0x18b8d0){const _0x4239c0=a709_0x290a;if(_0x18b8d0)return _0x2483e3[_0x4239c0('0x1b')](_0x1d5ef8)[_0x4239c0('0x15')](_0x18b8d0);};}function respondWithFilteredResult(_0xfdc758,_0x1c4dc3){return function(_0x1fcadf){const _0x179aa1=a709_0x290a;if(_0x1fcadf){const _0x50bf91=_0x1fcadf[_0x179aa1('0x31')],_0x2c894a=_0x1c4dc3[_0x179aa1('0x30')];let _0x13e359=_0x1c4dc3[_0x179aa1('0x30')]+_0x1c4dc3[_0x179aa1('0x4')],_0xa2dae3;return _0x13e359>=_0x50bf91?(_0x13e359=_0x50bf91,_0xa2dae3=0xc8):_0xa2dae3=0xce,_0xfdc758[_0x179aa1('0x1b')](_0xa2dae3),_0xfdc758[_0x179aa1('0x9')](_0x179aa1('0x2e'),_0x2c894a+'-'+_0x13e359+'/'+_0x50bf91)[_0x179aa1('0x15')](_0x1fcadf);}return null;};}function saveUpdates(_0x242f66){return function(_0xee5775){const _0x1ce037=a709_0x290a;if(_0xee5775)return _0xee5775[_0x1ce037('0x24')](_0x242f66)[_0x1ce037('0x1a')](function(_0x2db0f9){return _0x2db0f9;});return null;};}function removeEntity(_0x1c66c6){return function(_0x430e7d){const _0x5c158b=a709_0x290a;if(_0x430e7d)return _0x430e7d['destroy']()[_0x5c158b('0x1a')](function(){const _0x192bce=_0x5c158b;_0x1c66c6[_0x192bce('0x1b')](0xcc)[_0x192bce('0xb')]();});};}function handleEntityNotFound(_0x348143){return function(_0x28fc41){return!_0x28fc41&&_0x348143['sendStatus'](0x194),_0x28fc41;};}function handleError(_0xdebf04,_0x38e8d3){return _0x38e8d3=_0x38e8d3||0x1f4,function(_0x1ed42d){const _0x4bc836=a709_0x290a;logger[_0x4bc836('0x1')](_0x1ed42d[_0x4bc836('0x21')]),_0x1ed42d[_0x4bc836('0x38')]&&delete _0x1ed42d[_0x4bc836('0x38')],_0xdebf04[_0x4bc836('0x1b')](_0x38e8d3)[_0x4bc836('0x8')](_0x1ed42d);};}exports[_0x49fa8f('0x10')]=function(_0x1146ac,_0x57919c){const _0xe9f4ef=_0x49fa8f;let _0x3da953={};const _0x1af455={},_0x552940={'count':0x0,'rows':[]},_0x5e9b7e=_[_0xe9f4ef('0x17')](db[_0xe9f4ef('0xf')][_0xe9f4ef('0x18')],function(_0xdbc7e7){const _0x316337=_0xe9f4ef;return{'name':_0xdbc7e7[_0x316337('0x19')],'type':_0xdbc7e7[_0x316337('0x2f')][_0x316337('0x11')]};});_0x1af455[_0xe9f4ef('0xd')]=_[_0xe9f4ef('0x17')](_0x5e9b7e,'name'),_0x1af455[_0xe9f4ef('0x16')]=_[_0xe9f4ef('0x25')](_0x1146ac['query']),_0x1af455[_0xe9f4ef('0x28')]=_[_0xe9f4ef('0x2c')](_0x1af455[_0xe9f4ef('0xd')],_0x1af455[_0xe9f4ef('0x16')]),_0x3da953['attributes']=_[_0xe9f4ef('0x2c')](_0x1af455['model'],qs[_0xe9f4ef('0x0')](_0x1146ac['query'][_0xe9f4ef('0x0')])),_0x3da953['attributes']=_0x3da953[_0xe9f4ef('0x23')][_0xe9f4ef('0x2d')]?_0x3da953[_0xe9f4ef('0x23')]:_0x1af455['model'];typeof _0x1146ac['query']['nolimit']===_0xe9f4ef('0x27')&&(_0x3da953[_0xe9f4ef('0x4')]=qs['limit'](_0x1146ac['query'][_0xe9f4ef('0x4')]),_0x3da953[_0xe9f4ef('0x30')]=qs[_0xe9f4ef('0x30')](_0x1146ac[_0xe9f4ef('0x16')][_0xe9f4ef('0x30')]));_0x3da953[_0xe9f4ef('0x1e')]=qs['sort'](_0x1146ac['query'][_0xe9f4ef('0x2')]),_0x3da953[_0xe9f4ef('0x13')]=qs[_0xe9f4ef('0x28')](_['pick'](_0x1146ac[_0xe9f4ef('0x16')],_0x1af455[_0xe9f4ef('0x28')]),_0x5e9b7e);_0x1146ac[_0xe9f4ef('0x16')][_0xe9f4ef('0x26')]&&(_0x3da953['where']=_['merge'](_0x3da953[_0xe9f4ef('0x13')],{[Op['or']]:_[_0xe9f4ef('0x17')](_0x5e9b7e,function(_0x3811d2){const _0x2df78a=_0xe9f4ef;if(_0x3811d2[_0x2df78a('0x2f')]!==_0x2df78a('0xa')){const _0x193aa8={};return _0x193aa8[_0x3811d2[_0x2df78a('0x38')]]={[Op[_0x2df78a('0x36')]]:'%'+_0x1146ac[_0x2df78a('0x16')]['filter']+'%'},_0x193aa8;}})}));_0x3da953=_[_0xe9f4ef('0x34')]({},_0x3da953,_0x1146ac[_0xe9f4ef('0x20')]);const _0x509939={'where':_0x3da953['where']};return db[_0xe9f4ef('0xf')][_0xe9f4ef('0x31')](_0x509939)[_0xe9f4ef('0x1a')](function(_0x3bdf67){const _0x12b50f=_0xe9f4ef;return _0x552940[_0x12b50f('0x31')]=_0x3bdf67,_0x1146ac[_0x12b50f('0x16')][_0x12b50f('0x7')]&&(_0x3da953[_0x12b50f('0x32')]=[{'attributes':['id',_0x12b50f('0x38'),_0x12b50f('0x33'),_0x12b50f('0x6')],'model':db[_0x12b50f('0xe')],'as':_0x12b50f('0xe')}]),db[_0x12b50f('0xf')][_0x12b50f('0x22')](_0x3da953);})[_0xe9f4ef('0x1a')](function(_0x2cd7d3){return _0x552940['rows']=_0x2cd7d3,_0x552940;})['then'](respondWithFilteredResult(_0x57919c,_0x3da953))['catch'](handleError(_0x57919c,null));},exports[_0x49fa8f('0x2b')]=function(_0x96a781,_0x5156d6){const _0x53f0ba=_0x49fa8f;let _0x4f419c={'raw':!![],'where':{'id':_0x96a781[_0x53f0ba('0x1f')]['id']}};const _0x10e6d5={};return _0x10e6d5['model']=_['keys'](db[_0x53f0ba('0xf')][_0x53f0ba('0x18')]),_0x10e6d5[_0x53f0ba('0x16')]=_[_0x53f0ba('0x25')](_0x96a781[_0x53f0ba('0x16')]),_0x10e6d5['filters']=_['intersection'](_0x10e6d5[_0x53f0ba('0xd')],_0x10e6d5['query']),_0x4f419c[_0x53f0ba('0x23')]=_['intersection'](_0x10e6d5['model'],qs['fields'](_0x96a781[_0x53f0ba('0x16')][_0x53f0ba('0x0')])),_0x4f419c['attributes']=_0x4f419c['attributes']['length']?_0x4f419c[_0x53f0ba('0x23')]:_0x10e6d5[_0x53f0ba('0xd')],_0x96a781[_0x53f0ba('0x16')][_0x53f0ba('0x7')]&&(_0x4f419c[_0x53f0ba('0x32')]=[{'all':!![]}]),_0x4f419c=_['merge']({},_0x4f419c,_0x96a781[_0x53f0ba('0x20')]),db[_0x53f0ba('0xf')]['findOne'](_0x4f419c)[_0x53f0ba('0x1a')](handleEntityNotFound(_0x5156d6,null))[_0x53f0ba('0x1a')](respondWithResult(_0x5156d6,null))[_0x53f0ba('0x37')](handleError(_0x5156d6,null));},exports[_0x49fa8f('0x1d')]=function(_0x1af24c,_0x23e559){const _0x5abad8=_0x49fa8f;return db['VoiceCallReport'][_0x5abad8('0x1d')](_0x1af24c['body'],{})[_0x5abad8('0x1a')](respondWithResult(_0x23e559,0xc9))['catch'](handleError(_0x23e559,null));},exports[_0x49fa8f('0x3')]=function(_0x52fff1,_0x4bd0d6){const _0x555743=_0x49fa8f;return db[_0x555743('0xf')][_0x555743('0x12')]({'where':{'id':_0x52fff1[_0x555743('0x1f')]['id']}})['then'](handleEntityNotFound(_0x4bd0d6,null))[_0x555743('0x1a')](removeEntity(_0x4bd0d6,null))[_0x555743('0x37')](handleError(_0x4bd0d6,null));},exports[_0x49fa8f('0xc')]=function(_0x4d3395,_0x5163d7){const _0x243526=_0x49fa8f;return db[_0x243526('0xf')][_0x243526('0xc')]()[_0x243526('0x1a')](respondWithResult(_0x5163d7,null))[_0x243526('0x37')](handleError(_0x5163d7,null));},exports['update']=function(_0x11ea01,_0x9e86d9){const _0x46e503=_0x49fa8f;return _0x11ea01[_0x46e503('0x35')]['uniqueid']&&delete _0x11ea01[_0x46e503('0x35')][_0x46e503('0x29')],db[_0x46e503('0xf')][_0x46e503('0x12')]({'where':{'uniqueid':_0x11ea01[_0x46e503('0x1f')]['id'],'UserId':{[Op['or']]:[null,_0x11ea01[_0x46e503('0x5')]['id']]}}})[_0x46e503('0x1a')](handleEntityNotFound(_0x9e86d9,null))[_0x46e503('0x1a')](saveUpdates(_0x11ea01[_0x46e503('0x35')],null))[_0x46e503('0x1a')](respondWithResult(_0x9e86d9,null))[_0x46e503('0x37')](handleError(_0x9e86d9,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index 2d2be5a..90c56d6 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a710_0x30f5=['uniqueid','./voiceCallReport.attributes','report_call'];(function(_0x376724,_0x30f5f1){const _0x242f0f=function(_0x5d3815){while(--_0x5d3815){_0x376724['push'](_0x376724['shift']());}};_0x242f0f(++_0x30f5f1);}(a710_0x30f5,0x1b2));const a710_0x242f=function(_0x376724,_0x30f5f1){_0x376724=_0x376724-0x0;let _0x242f0f=a710_0x30f5[_0x376724];return _0x242f0f;};const _0x53dba8=a710_0x242f;'use strict';const attributes=require(_0x53dba8('0x2'));module['exports']=function(_0x5d3815){const _0x5cadab=_0x53dba8,_0x28e12a=_0x5d3815['define']('VoiceCallReport',attributes,{'tableName':_0x5cadab('0x0'),'paranoid':![],'indexes':[{'fields':[_0x5cadab('0x1')]}],'timestamps':!![]});return _0x28e12a;}; \ No newline at end of file +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 diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index 18404fe..9301329 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a711_0x442f=['model','where','../../mysqldb','body','attributes','VoiceCallReport','then','message','limit','debug','rpc','raw','findAll','info','GetVoiceCallReport','UpdateVoiceCallReport','options','lodash','include','catch','CreateVoiceCallReport','map','error','stringify'];(function(_0x7059f0,_0x442f90){const _0x4b6bc1=function(_0x1bfb1a){while(--_0x1bfb1a){_0x7059f0['push'](_0x7059f0['shift']());}};_0x4b6bc1(++_0x442f90);}(a711_0x442f,0x16f));const a711_0x4b6b=function(_0x7059f0,_0x442f90){_0x7059f0=_0x7059f0-0x0;let _0x4b6bc1=a711_0x442f[_0x7059f0];return _0x4b6bc1;};const _0x365c0a=a711_0x4b6b;'use strict';const _=require(_0x365c0a('0xa')),db=require(_0x365c0a('0x13'))['db'],logger=require('../../config/logger')(_0x365c0a('0x3'));exports[_0x365c0a('0x7')]=function(_0x1bfb1a){const _0x7cc290=this;return new Promise(function(_0x25b34b,_0x2517c2){const _0x445d46=a711_0x4b6b;return db[_0x445d46('0x16')][_0x445d46('0x5')]({'raw':_0x1bfb1a['options']?_0x1bfb1a[_0x445d46('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x1bfb1a[_0x445d46('0x9')]?_0x1bfb1a[_0x445d46('0x9')][_0x445d46('0x12')]||null:null,'attributes':_0x1bfb1a[_0x445d46('0x9')]?_0x1bfb1a[_0x445d46('0x9')][_0x445d46('0x15')]||null:null,'limit':_0x1bfb1a[_0x445d46('0x9')]?_0x1bfb1a[_0x445d46('0x9')][_0x445d46('0x1')]||null:null,'include':_0x1bfb1a[_0x445d46('0x9')]?_0x1bfb1a[_0x445d46('0x9')]['include']?_['map'](_0x1bfb1a['options'][_0x445d46('0xb')],function(_0x21918c){const _0xf86a91=_0x445d46;return{'model':db[_0x21918c[_0xf86a91('0x11')]],'as':_0x21918c['as'],'attributes':_0x21918c[_0xf86a91('0x15')],'include':_0x21918c['include']?_[_0xf86a91('0xe')](_0x21918c[_0xf86a91('0xb')],function(_0xa6c71c){const _0x3020a6=_0xf86a91;return{'model':db[_0xa6c71c[_0x3020a6('0x11')]],'as':_0xa6c71c['as'],'attributes':_0xa6c71c[_0x3020a6('0x15')],'include':_0xa6c71c[_0x3020a6('0xb')]?_[_0x3020a6('0xe')](_0xa6c71c['include'],function(_0x4d9a0f){const _0x173329=_0x3020a6;return{'model':db[_0x4d9a0f['model']],'as':_0x4d9a0f['as'],'attributes':_0x4d9a0f[_0x173329('0x15')]};}):[]};}):[]};}):[]:[]})[_0x445d46('0x17')](function(_0x49aa6c){const _0x4e0d63=_0x445d46;logger[_0x4e0d63('0x6')](_0x4e0d63('0x7'),_0x1bfb1a),logger['debug']('GetVoiceCallReport',_0x1bfb1a,JSON[_0x4e0d63('0x10')](_0x49aa6c)),_0x25b34b(_0x49aa6c);})[_0x445d46('0xc')](function(_0x4046ad){const _0x55966a=_0x445d46;logger[_0x55966a('0xf')](_0x55966a('0x7'),_0x4046ad[_0x55966a('0x0')],_0x1bfb1a),_0x2517c2(_0x7cc290[_0x55966a('0xf')](0x1f4,_0x4046ad[_0x55966a('0x0')]));});});},exports[_0x365c0a('0xd')]=function(_0x3641e4){const _0x14d9b8=this;return new Promise(function(_0x171b55,_0x4926b3){const _0x4ca7fb=a711_0x4b6b;return db['VoiceCallReport']['create'](_0x3641e4['body'],{'raw':_0x3641e4[_0x4ca7fb('0x9')]?_0x3641e4[_0x4ca7fb('0x9')][_0x4ca7fb('0x4')]===undefined?!![]:![]:!![]})[_0x4ca7fb('0x17')](function(_0xf4c063){const _0x38b5b3=_0x4ca7fb;logger[_0x38b5b3('0x6')](_0x38b5b3('0xd'),_0x3641e4),logger[_0x38b5b3('0x2')](_0x38b5b3('0xd'),_0x3641e4,JSON[_0x38b5b3('0x10')](_0xf4c063)),_0x171b55(_0xf4c063);})[_0x4ca7fb('0xc')](function(_0x5d8c3c){const _0x35ef58=_0x4ca7fb;logger[_0x35ef58('0xf')](_0x35ef58('0xd'),_0x5d8c3c[_0x35ef58('0x0')],_0x3641e4),_0x4926b3(_0x14d9b8['error'](0x1f4,_0x5d8c3c['message']));});});},exports['UpdateVoiceCallReport']=function(_0x48b722){const _0x46a5d5=this;return new Promise(function(_0x51b90f,_0x4ef3ef){const _0x30b1d9=a711_0x4b6b;return db[_0x30b1d9('0x16')]['update'](_0x48b722[_0x30b1d9('0x14')],{'raw':_0x48b722['options']?_0x48b722[_0x30b1d9('0x9')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x48b722[_0x30b1d9('0x9')]?_0x48b722[_0x30b1d9('0x9')][_0x30b1d9('0x12')]||null:null,'attributes':_0x48b722['options']?_0x48b722['options'][_0x30b1d9('0x15')]||null:null,'limit':_0x48b722[_0x30b1d9('0x9')]?_0x48b722[_0x30b1d9('0x9')][_0x30b1d9('0x1')]||null:null})[_0x30b1d9('0x17')](function(_0x223f05){const _0x4c41d0=_0x30b1d9;logger[_0x4c41d0('0x6')](_0x4c41d0('0x8'),_0x48b722),logger['debug'](_0x4c41d0('0x8'),_0x48b722,JSON[_0x4c41d0('0x10')](_0x223f05)),_0x51b90f(_0x223f05);})[_0x30b1d9('0xc')](function(_0x5487b9){const _0x526bc8=_0x30b1d9;logger[_0x526bc8('0xf')](_0x526bc8('0x8'),_0x5487b9[_0x526bc8('0x0')],_0x48b722),_0x4ef3ef(_0x46a5d5['error'](0x1f4,_0x5487b9[_0x526bc8('0x0')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index 33ad754..21061fd 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a712_0xbfbd=['./voiceChanSpy.controller','create','isAuthenticated','/:id','express','update','put','index','Router','show','post','get'];(function(_0x56aa2c,_0xbfbdac){const _0x1878f0=function(_0x1e5253){while(--_0x1e5253){_0x56aa2c['push'](_0x56aa2c['shift']());}};_0x1878f0(++_0xbfbdac);}(a712_0xbfbd,0x78));const a712_0x1878=function(_0x56aa2c,_0xbfbdac){_0x56aa2c=_0x56aa2c-0x0;let _0x1878f0=a712_0xbfbd[_0x56aa2c];return _0x1878f0;};const _0x52f88a=a712_0x1878;'use strict';const express=require(_0x52f88a('0x4')),router=express[_0x52f88a('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x52f88a('0x0'));router[_0x52f88a('0xb')]('/',auth[_0x52f88a('0x2')](),controller[_0x52f88a('0x7')]),router[_0x52f88a('0xb')](_0x52f88a('0x3'),auth[_0x52f88a('0x2')](),controller[_0x52f88a('0x9')]),router[_0x52f88a('0xa')]('/',auth[_0x52f88a('0x2')](),controller[_0x52f88a('0x1')]),router[_0x52f88a('0x6')]('/:id',auth[_0x52f88a('0x2')](),controller[_0x52f88a('0x5')]),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index 25b4231..792c1f9 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a713_0x2935=['options','getDataValue','BOOLEAN','STRING','sequelize','setDataValue','join','split','exports'];(function(_0x5c401d,_0x2935c7){const _0x21d121=function(_0x8c71c5){while(--_0x8c71c5){_0x5c401d['push'](_0x5c401d['shift']());}};_0x21d121(++_0x2935c7);}(a713_0x2935,0x1c8));const a713_0x21d1=function(_0x5c401d,_0x2935c7){_0x5c401d=_0x5c401d-0x0;let _0x21d121=a713_0x2935[_0x5c401d];return _0x21d121;};const _0xe7b02f=a713_0x21d1;'use strict';const Sequelize=require(_0xe7b02f('0x7'));module[_0xe7b02f('0x2')]={'name':{'type':Sequelize[_0xe7b02f('0x6')]},'prefix':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'options':{'type':Sequelize['STRING'],'set':function(_0x8c71c5){const _0x132688=_0xe7b02f;this[_0x132688('0x8')](_0x132688('0x3'),_0x8c71c5?_0x8c71c5[_0x132688('0x0')](''):[]);},'get':function(){const _0xabb962=_0xe7b02f;return this[_0xabb962('0x4')](_0xabb962('0x3'))?this[_0xabb962('0x4')](_0xabb962('0x3'))[_0xabb962('0x1')](''):[];}},'auth':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'password':{'type':Sequelize[_0xe7b02f('0x6')]},'record':{'type':Sequelize[_0xe7b02f('0x5')],'defaultValue':![]},'recordingFormat':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xe7b02f('0x6')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index bc04f6b..16db3b1 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a714_0x394b=['offset','user','query','include','intersection','../../mysqldb','VoiceChanSpy','get','../../config/logger','role','ChanSpies','body','sort','map','filter','error','name','json','merge','includeAll','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','UserProfileSection','status','limit','sequelize','rows','show','length','attributes','params','fields','where','create','destroy','count','undefined','sendStatus','like','Content-Range','rawAttributes','UserProfileResource','findOne','then','../../components/parsers/qs','catch','send','key','userProfileId','model','options','type','update','stack','order','end','VIRTUAL','set','nolimit','filters'];(function(_0x14a06d,_0x394b51){const _0x259d3b=function(_0x2474fb){while(--_0x2474fb){_0x14a06d['push'](_0x14a06d['shift']());}};_0x259d3b(++_0x394b51);}(a714_0x394b,0x138));const a714_0x259d=function(_0x14a06d,_0x394b51){_0x14a06d=_0x14a06d-0x0;let _0x259d3b=a714_0x394b[_0x14a06d];return _0x259d3b;};const _0xc1ac2=a714_0x259d;'use strict';const _=require('lodash'),qs=require(_0xc1ac2('0x20')),logger=require(_0xc1ac2('0x38'))('api'),db=require(_0xc1ac2('0x35'))['db'],{Op}=require(_0xc1ac2('0xd'));function respondWithResult(_0x2474fb,_0x2f0314){return _0x2f0314=_0x2f0314||0xc8,function(_0x5e7082){const _0x59ad8e=a714_0x259d;if(_0x5e7082)return _0x2474fb[_0x59ad8e('0xb')](_0x2f0314)[_0x59ad8e('0x5')](_0x5e7082);};}function respondWithFilteredResult(_0x23e7ca,_0x4f937b){return function(_0x368e1d){const _0x2dfe6c=a714_0x259d;if(_0x368e1d){const _0x5ef7ee=_0x368e1d['count'],_0xa1e1d5=_0x4f937b[_0x2dfe6c('0x30')];let _0x5d3a34=_0x4f937b['offset']+_0x4f937b[_0x2dfe6c('0xc')],_0x2e3b77;return _0x5d3a34>=_0x5ef7ee?(_0x5d3a34=_0x5ef7ee,_0x2e3b77=0xc8):_0x2e3b77=0xce,_0x23e7ca[_0x2dfe6c('0xb')](_0x2e3b77),_0x23e7ca[_0x2dfe6c('0x2d')](_0x2dfe6c('0x1b'),_0xa1e1d5+'-'+_0x5d3a34+'/'+_0x5ef7ee)[_0x2dfe6c('0x5')](_0x368e1d);}return null;};}function saveUpdates(_0x4e52a0){return function(_0x7e0ee8){const _0x4a1436=a714_0x259d;if(_0x7e0ee8)return _0x7e0ee8[_0x4a1436('0x28')](_0x4e52a0)[_0x4a1436('0x1f')](function(_0x9f295f){return _0x9f295f;});return null;};}function removeEntity(_0x80e3dc){return function(_0x35c4f6){const _0x179f03=a714_0x259d;if(_0x35c4f6)return _0x35c4f6[_0x179f03('0x16')]()[_0x179f03('0x1f')](function(){const _0xb3e395=_0x179f03,_0x30b2b1=_0x35c4f6[_0xb3e395('0x37')]({'plain':!![]}),_0x10813e=_0xb3e395('0x3a');return db[_0xb3e395('0x1d')][_0xb3e395('0x16')]({'where':{'type':_0x10813e,'resourceId':_0x30b2b1['id']}})['then'](function(){return _0x35c4f6;});})[_0x179f03('0x1f')](function(){const _0x564e5e=_0x179f03;_0x80e3dc['status'](0xcc)[_0x564e5e('0x2b')]();});};}function handleEntityNotFound(_0x4101b2){return function(_0x4721fa){const _0x583abc=a714_0x259d;return!_0x4721fa&&_0x4101b2[_0x583abc('0x19')](0x194),_0x4721fa;};}function handleError(_0xb6d7b2,_0x38a689){return _0x38a689=_0x38a689||0x1f4,function(_0x6f4158){const _0x254093=a714_0x259d;logger['error'](_0x6f4158[_0x254093('0x29')]),_0x6f4158[_0x254093('0x4')]&&delete _0x6f4158[_0x254093('0x4')],_0xb6d7b2['status'](_0x38a689)[_0x254093('0x22')](_0x6f4158);};}exports['index']=function(_0x297999,_0x49c28f){const _0xe8f58b=_0xc1ac2;let _0x46b92c={};const _0x57ff1e={},_0x507919={'count':0x0,'rows':[]},_0x4ed90a=_[_0xe8f58b('0x1')](db[_0xe8f58b('0x36')][_0xe8f58b('0x1c')],function(_0x4c8bc2){const _0x19c766=_0xe8f58b;return{'name':_0x4c8bc2['fieldName'],'type':_0x4c8bc2[_0x19c766('0x27')][_0x19c766('0x23')]};});_0x57ff1e[_0xe8f58b('0x25')]=_[_0xe8f58b('0x1')](_0x4ed90a,_0xe8f58b('0x4')),_0x57ff1e['query']=_[_0xe8f58b('0x8')](_0x297999[_0xe8f58b('0x32')]),_0x57ff1e[_0xe8f58b('0x2f')]=_[_0xe8f58b('0x34')](_0x57ff1e[_0xe8f58b('0x25')],_0x57ff1e[_0xe8f58b('0x32')]),_0x46b92c[_0xe8f58b('0x11')]=_['intersection'](_0x57ff1e[_0xe8f58b('0x25')],qs[_0xe8f58b('0x13')](_0x297999[_0xe8f58b('0x32')][_0xe8f58b('0x13')])),_0x46b92c[_0xe8f58b('0x11')]=_0x46b92c['attributes'][_0xe8f58b('0x10')]?_0x46b92c[_0xe8f58b('0x11')]:_0x57ff1e[_0xe8f58b('0x25')];typeof _0x297999['query'][_0xe8f58b('0x2e')]===_0xe8f58b('0x18')&&(_0x46b92c[_0xe8f58b('0xc')]=qs['limit'](_0x297999[_0xe8f58b('0x32')]['limit']),_0x46b92c[_0xe8f58b('0x30')]=qs['offset'](_0x297999[_0xe8f58b('0x32')][_0xe8f58b('0x30')]));_0x46b92c[_0xe8f58b('0x2a')]=qs[_0xe8f58b('0x0')](_0x297999[_0xe8f58b('0x32')][_0xe8f58b('0x0')]),_0x46b92c[_0xe8f58b('0x14')]=qs[_0xe8f58b('0x2f')](_['pick'](_0x297999[_0xe8f58b('0x32')],_0x57ff1e['filters']),_0x4ed90a);_0x297999[_0xe8f58b('0x32')][_0xe8f58b('0x2')]&&(_0x46b92c[_0xe8f58b('0x14')]=_[_0xe8f58b('0x6')](_0x46b92c[_0xe8f58b('0x14')],{[Op['or']]:_[_0xe8f58b('0x1')](_0x4ed90a,function(_0x18dc37){const _0x3c7d03=_0xe8f58b;if(_0x18dc37[_0x3c7d03('0x27')]!==_0x3c7d03('0x2c')){const _0x22979c={};return _0x22979c[_0x18dc37['name']]={[Op[_0x3c7d03('0x1a')]]:'%'+_0x297999[_0x3c7d03('0x32')]['filter']+'%'},_0x22979c;}})}));_0x46b92c=_[_0xe8f58b('0x6')]({},_0x46b92c,_0x297999[_0xe8f58b('0x26')]);const _0x5dab32={'where':_0x46b92c['where']};return db['VoiceChanSpy'][_0xe8f58b('0x17')](_0x5dab32)[_0xe8f58b('0x1f')](function(_0x5a3dc0){const _0x4f6a6a=_0xe8f58b;return _0x507919[_0x4f6a6a('0x17')]=_0x5a3dc0,_0x297999[_0x4f6a6a('0x32')][_0x4f6a6a('0x7')]&&(_0x46b92c[_0x4f6a6a('0x33')]=[{'all':!![]}]),db[_0x4f6a6a('0x36')]['findAll'](_0x46b92c);})['then'](function(_0x549a84){const _0x4d0bf6=_0xe8f58b;return _0x507919[_0x4d0bf6('0xe')]=_0x549a84,_0x507919;})['then'](respondWithFilteredResult(_0x49c28f,_0x46b92c))['catch'](handleError(_0x49c28f,null));},exports[_0xc1ac2('0xf')]=function(_0x212472,_0x3f7a25){const _0x16a5a1=_0xc1ac2;let _0x927485={'raw':![],'where':{'id':_0x212472['params']['id']}};const _0xb6d364={};return _0xb6d364[_0x16a5a1('0x25')]=_[_0x16a5a1('0x8')](db[_0x16a5a1('0x36')]['rawAttributes']),_0xb6d364[_0x16a5a1('0x32')]=_[_0x16a5a1('0x8')](_0x212472['query']),_0xb6d364[_0x16a5a1('0x2f')]=_[_0x16a5a1('0x34')](_0xb6d364[_0x16a5a1('0x25')],_0xb6d364[_0x16a5a1('0x32')]),_0x927485[_0x16a5a1('0x11')]=_['intersection'](_0xb6d364[_0x16a5a1('0x25')],qs[_0x16a5a1('0x13')](_0x212472[_0x16a5a1('0x32')][_0x16a5a1('0x13')])),_0x927485[_0x16a5a1('0x11')]=_0x927485['attributes'][_0x16a5a1('0x10')]?_0x927485[_0x16a5a1('0x11')]:_0xb6d364[_0x16a5a1('0x25')],_0x212472[_0x16a5a1('0x32')][_0x16a5a1('0x7')]&&(_0x927485[_0x16a5a1('0x33')]=[{'all':!![]}]),_0x927485=_[_0x16a5a1('0x6')]({},_0x927485,_0x212472[_0x16a5a1('0x26')]),db['VoiceChanSpy']['findOne'](_0x927485)['then'](handleEntityNotFound(_0x3f7a25,null))[_0x16a5a1('0x1f')](respondWithResult(_0x3f7a25,null))['catch'](handleError(_0x3f7a25,null));},exports['create']=function(_0x2f6639,_0x438f1f){const _0x27f2c8=_0xc1ac2;return db[_0x27f2c8('0x36')][_0x27f2c8('0x15')](_0x2f6639['body'],{})[_0x27f2c8('0x1f')](function(_0x2f0df0){const _0x33f0ba=_0x27f2c8,_0x2186fe=_0x2f6639[_0x33f0ba('0x31')][_0x33f0ba('0x37')]({'plain':!![]});if(!_0x2186fe)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2186fe[_0x33f0ba('0x39')]===_0x33f0ba('0x31')){const _0x121b4c=_0x2f0df0[_0x33f0ba('0x37')]({'plain':!![]}),_0x11eec0=_0x33f0ba('0x3a');return db[_0x33f0ba('0xa')][_0x33f0ba('0x1e')]({'where':{'name':_0x11eec0,'userProfileId':_0x2186fe[_0x33f0ba('0x24')]},'raw':!![]})['then'](function(_0x1e1399){const _0x2e5519=_0x33f0ba;return _0x1e1399&&_0x1e1399['autoAssociation']===0x0?db['UserProfileResource'][_0x2e5519('0x15')]({'name':_0x121b4c[_0x2e5519('0x4')],'resourceId':_0x121b4c['id'],'type':_0x1e1399[_0x2e5519('0x4')],'sectionId':_0x1e1399['id']},{})[_0x2e5519('0x1f')](function(){return _0x2f0df0;}):_0x2f0df0;})['catch'](function(_0x42748e){const _0x34e607=_0x33f0ba;logger[_0x34e607('0x3')](_0x34e607('0x9'),_0x42748e);throw _0x42748e;});}return _0x2f0df0;})['then'](respondWithResult(_0x438f1f,0xc9))[_0x27f2c8('0x21')](handleError(_0x438f1f,null));},exports[_0xc1ac2('0x28')]=function(_0x30ae12,_0x1aa5bb){const _0x1813a0=_0xc1ac2;return _0x30ae12['body']['id']&&delete _0x30ae12[_0x1813a0('0x3b')]['id'],db[_0x1813a0('0x36')]['findOne']({'where':{'id':_0x30ae12['params']['id']}})[_0x1813a0('0x1f')](handleEntityNotFound(_0x1aa5bb,null))[_0x1813a0('0x1f')](saveUpdates(_0x30ae12[_0x1813a0('0x3b')],null))[_0x1813a0('0x1f')](respondWithResult(_0x1aa5bb,null))[_0x1813a0('0x21')](handleError(_0x1aa5bb,null));},exports[_0xc1ac2('0x16')]=function(_0x4869b6,_0x4ba406){const _0x3e08d4=_0xc1ac2;return db['VoiceChanSpy'][_0x3e08d4('0x1e')]({'where':{'id':_0x4869b6[_0x3e08d4('0x12')]['id']}})[_0x3e08d4('0x1f')](handleEntityNotFound(_0x4ba406,null))[_0x3e08d4('0x1f')](removeEntity(_0x4ba406,null))[_0x3e08d4('0x21')](handleError(_0x4ba406,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index dc6b179..03f88fd 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a715_0x3292=['MixMonitor','length','password','util','name','SIP/%s,%s','VoiceExtension','then','format','./voiceChanSpy.attributes','prefix','${UNIQUEID}.%s,ab','system','internal','models','options','findAll','destroy','auth','recordingFormat','join','lodash','record','merge','define','agent','bulkCreate','catch','voice_chanspy','StopMixMonitor','from-sip','User','ChanSpy','Authenticate','%s%s','VoiceChanSpy','push'];(function(_0x587135,_0x329204){const _0x54947a=function(_0x483108){while(--_0x483108){_0x587135['push'](_0x587135['shift']());}};_0x54947a(++_0x329204);}(a715_0x3292,0x1c7));const a715_0x5494=function(_0x587135,_0x329204){_0x587135=_0x587135-0x0;let _0x54947a=a715_0x3292[_0x587135];return _0x54947a;};const _0x4bb2b1=a715_0x5494;'use strict';const _=require(_0x4bb2b1('0xa')),util=require(_0x4bb2b1('0x1d')),attributes=require(_0x4bb2b1('0x23')),createChanSpyApplications=function(_0x483108,_0x13a78f,_0x4d5b8e){const _0x4d0dc=_0x4bb2b1;let _0xb93b2b=0x1;const _0x2c9c05=[],_0x3aa1b9={'context':_0x13a78f['context']||_0x4d0dc('0x13'),'exten':util[_0x4d0dc('0x22')](_0x4d0dc('0x17'),_0x483108[_0x4d0dc('0x24')],_0x4d5b8e),'type':_0x4d0dc('0x1'),'isApp':![],'ChanSpyId':_0x483108['id'],'UserId':_0x13a78f['id']};return _0x2c9c05[_0x4d0dc('0x19')](_[_0x4d0dc('0xc')]({'app':'Set','appdata':util[_0x4d0dc('0x22')]('CDR(type)=%s','chanspy'),'priority':_0xb93b2b++},_0x3aa1b9)),_0x483108[_0x4d0dc('0xb')]&&_0x2c9c05[_0x4d0dc('0x19')](_[_0x4d0dc('0xc')]({'app':_0x4d0dc('0x1a'),'appdata':util['format'](_0x4d0dc('0x0'),_0x483108[_0x4d0dc('0x8')]),'priority':_0xb93b2b++},_0x3aa1b9)),_0x483108[_0x4d0dc('0x7')]&&_0x2c9c05[_0x4d0dc('0x19')](_['merge']({'app':_0x4d0dc('0x16'),'appdata':_0x483108[_0x4d0dc('0x1c')],'priority':_0xb93b2b++},_0x3aa1b9)),_0x2c9c05[_0x4d0dc('0x19')](_[_0x4d0dc('0xc')]({'app':_0x4d0dc('0x15'),'appdata':util[_0x4d0dc('0x22')](_0x4d0dc('0x1f'),_0x13a78f[_0x4d0dc('0x1e')],_0x483108[_0x4d0dc('0x4')]?_0x483108[_0x4d0dc('0x4')][_0x4d0dc('0x9')](''):''),'priority':_0xb93b2b++},_0x3aa1b9)),_0x483108[_0x4d0dc('0xb')]&&_0x2c9c05[_0x4d0dc('0x19')](_['merge']({'app':_0x4d0dc('0x12'),'priority':_0xb93b2b++},_0x3aa1b9)),_0x2c9c05;},addChanSpyApplications=function(_0x483915,_0x3be5cf){const _0x18db90=_0x4bb2b1;let _0xf1f0af=[];for(let _0x3b2b33=0x0;_0x3b2b33<_0x3be5cf[_0x18db90('0x1b')];_0x3b2b33++){_0xf1f0af=_0xf1f0af['concat'](createChanSpyApplications(_0x483915,_0x3be5cf[_0x3b2b33],_0x3be5cf[_0x3b2b33]['internal'])),_0x3be5cf[_0x3b2b33][_0x18db90('0x2')]!=_0x3be5cf[_0x3b2b33][_0x18db90('0x1e')]&&(_0xf1f0af=_0xf1f0af['concat'](createChanSpyApplications(_0x483915,_0x3be5cf[_0x3b2b33],_0x3be5cf[_0x3b2b33][_0x18db90('0x1e')])));}return _0xf1f0af;},getChanSpy=function(_0x3db7c2,_0x4ab222){return new Promise(function(_0x3ebfcb,_0x1f9508){const _0x3ef805=a715_0x5494;return _0x3db7c2[_0x3ef805('0x14')][_0x3ef805('0x5')]({'attributes':['id',_0x3ef805('0x1e'),_0x3ef805('0x2')],'where':{'role':_0x3ef805('0xe'),'chanspy':!![]},'raw':!![]})[_0x3ef805('0x21')](function(_0x28ef5f){if(_0x28ef5f)return _0x3ebfcb(addChanSpyApplications(_0x4ab222,_0x28ef5f));return _0x3ebfcb([]);})['catch'](function(_0x2e490c){_0x1f9508(_0x2e490c);});});};module['exports']=function(_0x87db7d){const _0x557763=_0x4bb2b1,_0x35d222=_0x87db7d[_0x557763('0x3')],_0x437ca8=_0x87db7d[_0x557763('0xd')](_0x557763('0x18'),attributes,{'tableName':_0x557763('0x11'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x1d00d7){const _0x235521=_0x557763;return getChanSpy(_0x35d222,_0x1d00d7)[_0x235521('0x21')](function(_0x4bd670){const _0x1c3ea6=_0x235521;return _0x4bd670&&_0x4bd670[_0x1c3ea6('0x1b')]?_0x35d222[_0x1c3ea6('0x20')][_0x1c3ea6('0xf')](_0x4bd670):null;})['catch'](function(_0x3967b0){return _0x3967b0;});},'afterUpdate':function(_0x282bd8){const _0xf90419=_0x557763;return _0x35d222['VoiceExtension'][_0xf90419('0x6')]({'where':{'ChanSpyId':_0x282bd8['id']}})[_0xf90419('0x21')](function(){return getChanSpy(_0x35d222,_0x282bd8);})[_0xf90419('0x21')](function(_0x32887f){const _0x5adcc4=_0xf90419;return _0x32887f&&_0x32887f['length']?_0x35d222[_0x5adcc4('0x20')]['bulkCreate'](_0x32887f):null;})[_0xf90419('0x10')](function(_0x17652b){return _0x17652b;});},'afterDestroy':function(_0x38e5b7){const _0x470a0a=_0x557763;return _0x35d222[_0x470a0a('0x20')]['destroy']({'where':{'ChanSpyId':_0x38e5b7['id']}})['then'](function(){return null;})[_0x470a0a('0x10')](function(_0x12fcd1){return _0x12fcd1;});}}});return _0x437ca8;}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index e7c2ad0..3d0e746 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a716_0x1166=['post','put','/:id','./voiceContext.controller','../../components/auth/service','isAuthenticated','exports','get','update','index','delete','create','express'];(function(_0x562a6a,_0x116614){const _0x509e19=function(_0x2973db){while(--_0x2973db){_0x562a6a['push'](_0x562a6a['shift']());}};_0x509e19(++_0x116614);}(a716_0x1166,0x114));const a716_0x509e=function(_0x562a6a,_0x116614){_0x562a6a=_0x562a6a-0x0;let _0x509e19=a716_0x1166[_0x562a6a];return _0x509e19;};const _0x423b2b=a716_0x509e;'use strict';const express=require(_0x423b2b('0x9')),router=express['Router'](),auth=require(_0x423b2b('0x1')),controller=require(_0x423b2b('0x0'));router['get']('/',auth[_0x423b2b('0x2')](),controller[_0x423b2b('0x6')]),router[_0x423b2b('0x4')](_0x423b2b('0xc'),auth[_0x423b2b('0x2')](),controller['show']),router[_0x423b2b('0xa')]('/',auth['isAuthenticated'](),controller[_0x423b2b('0x8')]),router[_0x423b2b('0xb')](_0x423b2b('0xc'),auth[_0x423b2b('0x2')](),controller[_0x423b2b('0x5')]),router[_0x423b2b('0x7')](_0x423b2b('0xc'),auth[_0x423b2b('0x2')](),controller['destroy']),module[_0x423b2b('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index e239c47..c294201 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a717_0x3fb1=['STRING','name','BOOLEAN','exports','sequelize'];(function(_0x2e2c4c,_0x3fb1dc){const _0x507240=function(_0x2f8878){while(--_0x2f8878){_0x2e2c4c['push'](_0x2e2c4c['shift']());}};_0x507240(++_0x3fb1dc);}(a717_0x3fb1,0x164));const a717_0x5072=function(_0x2e2c4c,_0x3fb1dc){_0x2e2c4c=_0x2e2c4c-0x0;let _0x507240=a717_0x3fb1[_0x2e2c4c];return _0x507240;};const _0x2c3fe2=a717_0x5072;'use strict';const Sequelize=require(_0x2c3fe2('0x3'));module[_0x2c3fe2('0x2')]={'name':{'type':Sequelize[_0x2c3fe2('0x4')],'unique':_0x2c3fe2('0x0')},'description':{'type':Sequelize['STRING'],'allowNull':!![]},'defaultEntry':{'type':Sequelize[_0x2c3fe2('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.controller.js b/server/api/voiceContext/voiceContext.controller.js index 3e0d806..a17a930 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a718_0x1db1=['destroy','Reload','api','userProfileId','nolimit','VoiceContext','jayson/promise','request\x20sent','VIRTUAL','utf8','../../config/logger','join','readFileSync','rows','code','filters','status','../../components/parsers/qs','like','lodash','create','path','../../config/environment','render','json','index','ejs','limit','error','Contexts','fieldName','/etc/asterisk/extensions_xcally_contexts.conf','length','attributes','show','update','client','findAll','http','map','fields','findOne','send','end','order','filter','where','keys','files/templates/context.ejs','sort','result','options','include','model','params','name','offset','writeFileSync','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','catch','merge','get','stringify','count','role','UserProfileResource','autoAssociation','info','VoiceContext,\x20%s,\x20%s','user','includeAll','sequelize','root','Unable\x20to\x20retrieve\x20the\x20current\x20user','key','Content-Range','VoiceContext,\x20%s,\x20%s,\x20%s','type','debug','../../mysqldb','then','intersection','body','message','chan_sip.so'];(function(_0x164484,_0x1db130){const _0x289b74=function(_0x5be31e){while(--_0x5be31e){_0x164484['push'](_0x164484['shift']());}};_0x289b74(++_0x1db130);}(a718_0x1db1,0xfd));const a718_0x289b=function(_0x164484,_0x1db130){_0x164484=_0x164484-0x0;let _0x289b74=a718_0x1db1[_0x164484];return _0x289b74;};const _0x49d1ee=a718_0x289b;'use strict';const path=require(_0x49d1ee('0x1a')),ejs=require(_0x49d1ee('0x1f')),fs=require('fs'),_=require(_0x49d1ee('0x18')),qs=require(_0x49d1ee('0x16')),logger=require(_0x49d1ee('0xf'))(_0x49d1ee('0x7')),config=require(_0x49d1ee('0x1b')),db=require(_0x49d1ee('0x55'))['db'],{Op}=require(_0x49d1ee('0x4d')),jayson=require(_0x49d1ee('0xb')),client=jayson[_0x49d1ee('0x29')][_0x49d1ee('0x2b')]({'port':0x232a});function respondWithRpcPromise(_0x5be31e,_0x51c1fc,_0x1d191d,_0x54bb89){return new Promise(function(_0x3674f8,_0x5cfe6e){const _0x4c1beb=_0x54bb89||client;return _0x4c1beb['request'](_0x5be31e,_0x1d191d)['then'](function(_0x27a828){const _0x3f67bd=a718_0x289b;logger[_0x3f67bd('0x49')](_0x3f67bd('0x4a'),_0x51c1fc,_0x3f67bd('0xc')),logger[_0x3f67bd('0x54')](_0x3f67bd('0x52'),_0x51c1fc,'request\x20sent',JSON[_0x3f67bd('0x44')](_0x27a828));if(_0x27a828[_0x3f67bd('0x21')]){if(_0x27a828[_0x3f67bd('0x21')][_0x3f67bd('0x13')]===0x1f4)return logger['error']('VoiceContext,\x20%s,\x20%s',_0x51c1fc,_0x27a828[_0x3f67bd('0x21')][_0x3f67bd('0x3')]),_0x5cfe6e(_0x27a828[_0x3f67bd('0x21')][_0x3f67bd('0x3')]);return logger[_0x3f67bd('0x21')](_0x3f67bd('0x4a'),_0x51c1fc,_0x27a828[_0x3f67bd('0x21')][_0x3f67bd('0x3')]),_0x3674f8(_0x27a828[_0x3f67bd('0x21')][_0x3f67bd('0x3')]);}else logger['info'](_0x3f67bd('0x4a'),_0x51c1fc,_0x3f67bd('0xc')),_0x3674f8(_0x27a828[_0x3f67bd('0x37')][_0x3f67bd('0x3')]);})['catch'](function(_0x193326){const _0x116b28=a718_0x289b;logger[_0x116b28('0x21')](_0x116b28('0x4a'),_0x51c1fc,_0x193326),_0x5cfe6e(_0x193326);});});}function respondWithResult(_0x3b584c,_0x34bbbb){return _0x34bbbb=_0x34bbbb||0xc8,function(_0x611909){const _0x37eb77=a718_0x289b;if(_0x611909)return _0x3b584c[_0x37eb77('0x15')](_0x34bbbb)[_0x37eb77('0x1d')](_0x611909);};}function respondWithFilteredResult(_0x39d365,_0x4becd8){return function(_0x7d2891){const _0x38d3a1=a718_0x289b;if(_0x7d2891){const _0x6494e1=_0x7d2891[_0x38d3a1('0x45')],_0x30c8e6=_0x4becd8[_0x38d3a1('0x3d')];let _0x9dbd88=_0x4becd8['offset']+_0x4becd8[_0x38d3a1('0x20')],_0x21d3f3;return _0x9dbd88>=_0x6494e1?(_0x9dbd88=_0x6494e1,_0x21d3f3=0xc8):_0x21d3f3=0xce,_0x39d365['status'](_0x21d3f3),_0x39d365['set'](_0x38d3a1('0x51'),_0x30c8e6+'-'+_0x9dbd88+'/'+_0x6494e1)[_0x38d3a1('0x1d')](_0x7d2891);}return null;};}function saveUpdates(_0x1db5d3){return function(_0xd6954){if(_0xd6954)return _0xd6954['update'](_0x1db5d3)['then'](function(_0x4b7078){return _0x4b7078;});return null;};}function removeEntity(_0x4e0d00){return function(_0x424a91){const _0x4d1921=a718_0x289b;if(_0x424a91)return _0x424a91['destroy']()[_0x4d1921('0x0')](function(){const _0x47d64a=_0x4d1921,_0x2e14d=_0x424a91[_0x47d64a('0x43')]({'plain':!![]}),_0x15f3e6=_0x47d64a('0x22');return db[_0x47d64a('0x47')]['destroy']({'where':{'type':_0x15f3e6,'resourceId':_0x2e14d['id']}})[_0x47d64a('0x0')](function(){return _0x424a91;});})[_0x4d1921('0x0')](function(){const _0xe3f1ef=_0x4d1921;_0x4e0d00[_0xe3f1ef('0x15')](0xcc)[_0xe3f1ef('0x30')]();});};}function handleEntityNotFound(_0x3fea27){return function(_0x44007a){return!_0x44007a&&_0x3fea27['sendStatus'](0x194),_0x44007a;};}function handleError(_0x56bf6d,_0x593f4f){return _0x593f4f=_0x593f4f||0x1f4,function(_0x50bb31){const _0x5777e4=a718_0x289b;logger[_0x5777e4('0x21')](_0x50bb31['stack']),_0x50bb31[_0x5777e4('0x3c')]&&delete _0x50bb31[_0x5777e4('0x3c')],_0x56bf6d[_0x5777e4('0x15')](_0x593f4f)[_0x5777e4('0x2f')](_0x50bb31);};}exports[_0x49d1ee('0x1e')]=function(_0x584a05,_0x1e03b1){const _0x5e2217=_0x49d1ee;let _0x4a71fe={};const _0xaa0ab0={},_0x4ef4ee={'count':0x0,'rows':[]},_0x41af4d=_['map'](db['VoiceContext']['rawAttributes'],function(_0x44803d){const _0x26608b=a718_0x289b;return{'name':_0x44803d[_0x26608b('0x23')],'type':_0x44803d[_0x26608b('0x53')][_0x26608b('0x50')]};});_0xaa0ab0[_0x5e2217('0x3a')]=_['map'](_0x41af4d,_0x5e2217('0x3c')),_0xaa0ab0[_0x5e2217('0x40')]=_['keys'](_0x584a05[_0x5e2217('0x40')]),_0xaa0ab0['filters']=_['intersection'](_0xaa0ab0[_0x5e2217('0x3a')],_0xaa0ab0[_0x5e2217('0x40')]),_0x4a71fe[_0x5e2217('0x26')]=_[_0x5e2217('0x1')](_0xaa0ab0[_0x5e2217('0x3a')],qs['fields'](_0x584a05[_0x5e2217('0x40')][_0x5e2217('0x2d')])),_0x4a71fe[_0x5e2217('0x26')]=_0x4a71fe[_0x5e2217('0x26')][_0x5e2217('0x25')]?_0x4a71fe[_0x5e2217('0x26')]:_0xaa0ab0['model'];typeof _0x584a05[_0x5e2217('0x40')][_0x5e2217('0x9')]==='undefined'&&(_0x4a71fe['limit']=qs['limit'](_0x584a05[_0x5e2217('0x40')]['limit']),_0x4a71fe[_0x5e2217('0x3d')]=qs[_0x5e2217('0x3d')](_0x584a05['query'][_0x5e2217('0x3d')]));_0x4a71fe[_0x5e2217('0x31')]=qs[_0x5e2217('0x36')](_0x584a05[_0x5e2217('0x40')][_0x5e2217('0x36')]),_0x4a71fe['where']=qs['filters'](_['pick'](_0x584a05[_0x5e2217('0x40')],_0xaa0ab0['filters']),_0x41af4d);_0x584a05['query'][_0x5e2217('0x32')]&&(_0x4a71fe[_0x5e2217('0x33')]=_[_0x5e2217('0x42')](_0x4a71fe[_0x5e2217('0x33')],{[Op['or']]:_[_0x5e2217('0x2c')](_0x41af4d,function(_0x374844){const _0x21e88d=_0x5e2217;if(_0x374844[_0x21e88d('0x53')]!==_0x21e88d('0xd')){const _0x4048bb={};return _0x4048bb[_0x374844[_0x21e88d('0x3c')]]={[Op[_0x21e88d('0x17')]]:'%'+_0x584a05['query']['filter']+'%'},_0x4048bb;}})}));_0x4a71fe=_['merge']({},_0x4a71fe,_0x584a05['options']);const _0x2ee0a7={'where':_0x4a71fe[_0x5e2217('0x33')]};return db[_0x5e2217('0xa')][_0x5e2217('0x45')](_0x2ee0a7)[_0x5e2217('0x0')](function(_0x5562ce){const _0x30f6fd=_0x5e2217;return _0x4ef4ee[_0x30f6fd('0x45')]=_0x5562ce,_0x584a05['query'][_0x30f6fd('0x4c')]&&(_0x4a71fe['include']=[{'all':!![]}]),db[_0x30f6fd('0xa')][_0x30f6fd('0x2a')](_0x4a71fe);})[_0x5e2217('0x0')](function(_0x2a12ad){const _0x121e3b=_0x5e2217;return _0x4ef4ee[_0x121e3b('0x12')]=_0x2a12ad,_0x4ef4ee;})[_0x5e2217('0x0')](respondWithFilteredResult(_0x1e03b1,_0x4a71fe))[_0x5e2217('0x41')](handleError(_0x1e03b1,null));},exports[_0x49d1ee('0x27')]=function(_0x4d6728,_0x33266c){const _0x4f41d8=_0x49d1ee;let _0x19d039={'raw':![],'where':{'id':_0x4d6728[_0x4f41d8('0x3b')]['id']}};const _0x36c9ef={};return _0x36c9ef[_0x4f41d8('0x3a')]=_[_0x4f41d8('0x34')](db[_0x4f41d8('0xa')]['rawAttributes']),_0x36c9ef[_0x4f41d8('0x40')]=_[_0x4f41d8('0x34')](_0x4d6728['query']),_0x36c9ef[_0x4f41d8('0x14')]=_['intersection'](_0x36c9ef[_0x4f41d8('0x3a')],_0x36c9ef[_0x4f41d8('0x40')]),_0x19d039[_0x4f41d8('0x26')]=_[_0x4f41d8('0x1')](_0x36c9ef[_0x4f41d8('0x3a')],qs['fields'](_0x4d6728[_0x4f41d8('0x40')][_0x4f41d8('0x2d')])),_0x19d039['attributes']=_0x19d039['attributes'][_0x4f41d8('0x25')]?_0x19d039['attributes']:_0x36c9ef['model'],_0x4d6728[_0x4f41d8('0x40')][_0x4f41d8('0x4c')]&&(_0x19d039[_0x4f41d8('0x39')]=[{'all':!![]}]),_0x19d039=_[_0x4f41d8('0x42')]({},_0x19d039,_0x4d6728[_0x4f41d8('0x38')]),db[_0x4f41d8('0xa')][_0x4f41d8('0x2e')](_0x19d039)['then'](handleEntityNotFound(_0x33266c,null))[_0x4f41d8('0x0')](respondWithResult(_0x33266c,null))[_0x4f41d8('0x41')](handleError(_0x33266c,null));},exports[_0x49d1ee('0x19')]=function(_0x309f6a,_0x4f80f3){const _0x27a6ba=_0x49d1ee;let _0x1acb22;return db['VoiceContext'][_0x27a6ba('0x19')](_0x309f6a[_0x27a6ba('0x2')],{'raw':!![]})[_0x27a6ba('0x0')](function(_0x893761){const _0x4b8b05=_0x27a6ba;return _0x1acb22=_0x893761,db[_0x4b8b05('0xa')][_0x4b8b05('0x2a')]({'raw':!![]});})[_0x27a6ba('0x0')](function(_0x2775dc){const _0x48711e=_0x27a6ba,_0x109a5b=fs[_0x48711e('0x11')](path[_0x48711e('0x10')](config[_0x48711e('0x4e')],'files/templates/context.ejs'),_0x48711e('0xe')),_0x328a42=ejs[_0x48711e('0x1c')](_0x109a5b,{'contexts':_0x2775dc||[]});fs['writeFileSync'](_0x48711e('0x24'),_0x328a42);})[_0x27a6ba('0x0')](function(){const _0x13450f=_0x27a6ba;return respondWithRpcPromise('Reload','create',{'module':_0x13450f('0x4')});})[_0x27a6ba('0x0')](function(){const _0x446bde=_0x27a6ba,_0x5c031a=_0x309f6a['user'][_0x446bde('0x43')]({'plain':!![]});if(!_0x5c031a)throw new Error(_0x446bde('0x4f'));if(_0x5c031a[_0x446bde('0x46')]===_0x446bde('0x4b')){const _0x9b0d4e=_0x1acb22['get']({'plain':!![]});return db['UserProfileSection']['findOne']({'where':{'name':'Contexts','userProfileId':_0x5c031a[_0x446bde('0x8')]},'raw':!![]})['then'](function(_0x2ccb47){const _0x431b7f=_0x446bde;return _0x2ccb47&&_0x2ccb47[_0x431b7f('0x48')]===0x0?db[_0x431b7f('0x47')][_0x431b7f('0x19')]({'name':_0x9b0d4e['name'],'resourceId':_0x9b0d4e['id'],'type':_0x2ccb47[_0x431b7f('0x3c')],'sectionId':_0x2ccb47['id']},{})['then'](function(){return _0x1acb22;}):_0x1acb22;})['catch'](function(_0x489437){const _0x12b17f=_0x446bde;logger[_0x12b17f('0x21')](_0x12b17f('0x3f'),_0x489437);throw _0x489437;});}return _0x1acb22;})[_0x27a6ba('0x0')](respondWithResult(_0x4f80f3,0xc9))[_0x27a6ba('0x41')](handleError(_0x4f80f3,null));},exports['update']=function(_0x474279,_0x4d3ca1){const _0x177da9=_0x49d1ee;let _0x27d4e1;return db['VoiceContext'][_0x177da9('0x2e')]({'where':{'id':_0x474279[_0x177da9('0x3b')]['id']}})[_0x177da9('0x0')](handleEntityNotFound(_0x4d3ca1,null))[_0x177da9('0x0')](saveUpdates(_0x474279[_0x177da9('0x2')],null))['then'](function(_0x560257){const _0x7da8f5=_0x177da9;if(_0x560257)return _0x27d4e1=_0x560257,db[_0x7da8f5('0xa')][_0x7da8f5('0x2a')]({'raw':!![]});})['then'](function(_0x54c2f8){const _0x5f5499=_0x177da9,_0x31ba25=fs[_0x5f5499('0x11')](path[_0x5f5499('0x10')](config[_0x5f5499('0x4e')],_0x5f5499('0x35')),'utf8'),_0x2b3cf1=ejs[_0x5f5499('0x1c')](_0x31ba25,{'contexts':_0x54c2f8||[]});fs['writeFileSync']('/etc/asterisk/extensions_xcally_contexts.conf',_0x2b3cf1);})['then'](function(){const _0x354b1c=_0x177da9;return respondWithRpcPromise(_0x354b1c('0x6'),_0x354b1c('0x28'),{'module':_0x354b1c('0x4')});})['then'](function(){return _0x27d4e1;})[_0x177da9('0x0')](respondWithResult(_0x4d3ca1,null))[_0x177da9('0x41')](handleError(_0x4d3ca1,null));},exports[_0x49d1ee('0x5')]=function(_0x330097,_0x548cfa){const _0x5be8f4=_0x49d1ee;return db[_0x5be8f4('0xa')][_0x5be8f4('0x2e')]({'where':{'id':_0x330097[_0x5be8f4('0x3b')]['id']}})[_0x5be8f4('0x0')](handleEntityNotFound(_0x548cfa,null))[_0x5be8f4('0x0')](removeEntity(_0x548cfa,null))['then'](function(){const _0x31ed6e=_0x5be8f4;return db[_0x31ed6e('0xa')]['findAll']({'raw':!![]});})[_0x5be8f4('0x0')](function(_0xfc9c94){const _0x5e5cd3=_0x5be8f4,_0x5cce66=fs[_0x5e5cd3('0x11')](path['join'](config['root'],_0x5e5cd3('0x35')),_0x5e5cd3('0xe')),_0x13cc10=ejs['render'](_0x5cce66,{'contexts':_0xfc9c94});return fs[_0x5e5cd3('0x3e')](_0x5e5cd3('0x24'),_0x13cc10),respondWithRpcPromise(_0x5e5cd3('0x6'),_0x5e5cd3('0x5'),{'module':_0x5e5cd3('0x4')});})[_0x5be8f4('0x41')](handleError(_0x548cfa,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index 3f7c6e0..2c32e3f 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a719_0x15f1=['VoiceContext','./voiceContext.attributes','voice_contexts'];(function(_0x12bb31,_0x15f1b5){const _0x447312=function(_0x7a7d2b){while(--_0x7a7d2b){_0x12bb31['push'](_0x12bb31['shift']());}};_0x447312(++_0x15f1b5);}(a719_0x15f1,0x1b3));const a719_0x4473=function(_0x12bb31,_0x15f1b5){_0x12bb31=_0x12bb31-0x0;let _0x447312=a719_0x15f1[_0x12bb31];return _0x447312;};const _0x4393fe=a719_0x4473;'use strict';const attributes=require(_0x4393fe('0x1'));module['exports']=function(_0x7a7d2b){const _0x317145=_0x4393fe,_0x2c2547=_0x7a7d2b['define'](_0x317145('0x0'),attributes,{'tableName':_0x317145('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c2547;}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index b889ea2..b8a95b0 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a720_0x5cb8=['show','/describe','./voiceDialReport.controller','index','exports','/:id','describe','get','put','Router','update','isAuthenticated','express'];(function(_0x34503f,_0x5cb8f0){const _0x48d53b=function(_0xe5b799){while(--_0xe5b799){_0x34503f['push'](_0x34503f['shift']());}};_0x48d53b(++_0x5cb8f0);}(a720_0x5cb8,0x1a0));const a720_0x48d5=function(_0x34503f,_0x5cb8f0){_0x34503f=_0x34503f-0x0;let _0x48d53b=a720_0x5cb8[_0x34503f];return _0x48d53b;};const _0xa6a324=a720_0x48d5;'use strict';const express=require(_0xa6a324('0xc')),router=express[_0xa6a324('0x9')](),auth=require('../../components/auth/service'),controller=require(_0xa6a324('0x2'));router[_0xa6a324('0x7')]('/',auth[_0xa6a324('0xb')](),controller[_0xa6a324('0x3')]),router[_0xa6a324('0x7')](_0xa6a324('0x1'),auth[_0xa6a324('0xb')](),controller[_0xa6a324('0x6')]),router[_0xa6a324('0x7')](_0xa6a324('0x5'),auth[_0xa6a324('0xb')](),controller[_0xa6a324('0x0')]),router['post']('/',auth[_0xa6a324('0xb')](),controller['create']),router[_0xa6a324('0x8')](_0xa6a324('0x5'),auth['isAuthenticated'](),controller[_0xa6a324('0xa')]),router['delete'](_0xa6a324('0x5'),auth['isAuthenticated'](),controller['destroy']),module[_0xa6a324('0x4')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.attributes.js b/server/api/voiceDialReport/voiceDialReport.attributes.js index 8062f37..85780e5 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a721_0x1fc5=['sequelize','exports','STRING','DATE','INTEGER','called,connect,complete'];(function(_0xd2a116,_0x1fc528){const _0x449ed9=function(_0x3b83e3){while(--_0x3b83e3){_0xd2a116['push'](_0xd2a116['shift']());}};_0x449ed9(++_0x1fc528);}(a721_0x1fc5,0x110));const a721_0x449e=function(_0xd2a116,_0x1fc528){_0xd2a116=_0xd2a116-0x0;let _0x449ed9=a721_0x1fc5[_0xd2a116];return _0x449ed9;};const _0x3b066b=a721_0x449e;'use strict';const Sequelize=require(_0x3b066b('0x4'));module[_0x3b066b('0x5')]={'privilege':{'type':Sequelize[_0x3b066b('0x0')]},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize[_0x3b066b('0x2')]},'channelstatedesc':{'type':Sequelize[_0x3b066b('0x0')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x3b066b('0x0')]},'connectedlinenum':{'type':Sequelize[_0x3b066b('0x0')]},'connectedlinename':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x3b066b('0x0')]},'accountcode':{'type':Sequelize[_0x3b066b('0x0')]},'context':{'type':Sequelize[_0x3b066b('0x0')]},'exten':{'type':Sequelize[_0x3b066b('0x0')]},'priority':{'type':Sequelize[_0x3b066b('0x2')]},'uniqueid':{'type':Sequelize[_0x3b066b('0x0')]},'linkedid':{'type':Sequelize[_0x3b066b('0x0')]},'destchannel':{'type':Sequelize[_0x3b066b('0x0')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize[_0x3b066b('0x0')]},'destcalleridnum':{'type':Sequelize[_0x3b066b('0x0')]},'destcalleridname':{'type':Sequelize[_0x3b066b('0x0')]},'destconnectedlinenum':{'type':Sequelize[_0x3b066b('0x0')]},'destconnectedlinename':{'type':Sequelize[_0x3b066b('0x0')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0x3b066b('0x0')]},'destcontext':{'type':Sequelize[_0x3b066b('0x0')]},'destexten':{'type':Sequelize[_0x3b066b('0x0')]},'destpriority':{'type':Sequelize[_0x3b066b('0x2')]},'destuniqueid':{'type':Sequelize[_0x3b066b('0x0')]},'destlinkedid':{'type':Sequelize[_0x3b066b('0x0')]},'dialstring':{'type':Sequelize[_0x3b066b('0x0')]},'dialstatus':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x3b066b('0x1')]},'answertime':{'type':Sequelize[_0x3b066b('0x1')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize[_0x3b066b('0x0')],'comment':_0x3b066b('0x3')},'routeId':{'type':Sequelize[_0x3b066b('0x2')]},'duration':{'type':Sequelize[_0x3b066b('0x2')]},'holdtime':{'type':Sequelize['INTEGER']},'billableseconds':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index 1d33eeb..f10d5f4 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a722_0x5864=['status','findAll','stack','set','nolimit','sequelize','end','../../components/parsers/qs','include','Content-Range','body','update','VIRTUAL','sort','destroy','filters','offset','filter','model','keys','undefined','VoiceDialReport','like','count','type','params','json','where','order','pick','options','../../config/logger','map','attributes','findOne','../../mysqldb','name','error','limit','query','length','catch','lodash','send','rows','then','key','create','fields','describe','intersection','rawAttributes','sendStatus'];(function(_0x3e1ed8,_0x5864d3){const _0x198945=function(_0x267da9){while(--_0x267da9){_0x3e1ed8['push'](_0x3e1ed8['shift']());}};_0x198945(++_0x5864d3);}(a722_0x5864,0x141));const a722_0x1989=function(_0x3e1ed8,_0x5864d3){_0x3e1ed8=_0x3e1ed8-0x0;let _0x198945=a722_0x5864[_0x3e1ed8];return _0x198945;};const _0x38716d=a722_0x1989;'use strict';const _=require(_0x38716d('0x27')),qs=require(_0x38716d('0x4')),logger=require(_0x38716d('0x1c'))('api'),db=require(_0x38716d('0x20'))['db'],{Op}=require(_0x38716d('0x2'));function respondWithResult(_0x267da9,_0x59f221){return _0x59f221=_0x59f221||0xc8,function(_0x504fe6){const _0x1fb65f=a722_0x1989;if(_0x504fe6)return _0x267da9['status'](_0x59f221)[_0x1fb65f('0x17')](_0x504fe6);};}function respondWithFilteredResult(_0x30c059,_0x5d3346){return function(_0x4c6aa0){const _0x552dcc=a722_0x1989;if(_0x4c6aa0){const _0x2068d6=_0x4c6aa0[_0x552dcc('0x14')],_0x178e9c=_0x5d3346[_0x552dcc('0xd')];let _0x272600=_0x5d3346[_0x552dcc('0xd')]+_0x5d3346[_0x552dcc('0x23')],_0x1dd04f;return _0x272600>=_0x2068d6?(_0x272600=_0x2068d6,_0x1dd04f=0xc8):_0x1dd04f=0xce,_0x30c059[_0x552dcc('0x32')](_0x1dd04f),_0x30c059[_0x552dcc('0x0')](_0x552dcc('0x6'),_0x178e9c+'-'+_0x272600+'/'+_0x2068d6)[_0x552dcc('0x17')](_0x4c6aa0);}return null;};}function saveUpdates(_0x19acc2){return function(_0x777e36){const _0x565d16=a722_0x1989;if(_0x777e36)return _0x777e36[_0x565d16('0x8')](_0x19acc2)[_0x565d16('0x2a')](function(_0x97c751){return _0x97c751;});return null;};}function removeEntity(_0x5d06aa){return function(_0x74644e){const _0x18605d=a722_0x1989;if(_0x74644e)return _0x74644e[_0x18605d('0xb')]()[_0x18605d('0x2a')](function(){const _0x48b183=_0x18605d;_0x5d06aa['status'](0xcc)[_0x48b183('0x3')]();});};}function handleEntityNotFound(_0x5075f8){return function(_0x10a5af){const _0x2110db=a722_0x1989;return!_0x10a5af&&_0x5075f8[_0x2110db('0x31')](0x194),_0x10a5af;};}function handleError(_0x24de60,_0x3f8169){return _0x3f8169=_0x3f8169||0x1f4,function(_0x1296d7){const _0x29d77c=a722_0x1989;logger[_0x29d77c('0x22')](_0x1296d7[_0x29d77c('0x34')]),_0x1296d7[_0x29d77c('0x21')]&&delete _0x1296d7['name'],_0x24de60['status'](_0x3f8169)[_0x29d77c('0x28')](_0x1296d7);};}exports['index']=function(_0x3a9287,_0x43d720){const _0x26dd3e=_0x38716d;let _0x55d2bf={};const _0x4c8949={},_0x35edd7={'count':0x0,'rows':[]},_0x500edb=_[_0x26dd3e('0x1d')](db[_0x26dd3e('0x12')][_0x26dd3e('0x30')],function(_0xcf7139){const _0x10925a=_0x26dd3e;return{'name':_0xcf7139['fieldName'],'type':_0xcf7139['type'][_0x10925a('0x2b')]};});_0x4c8949[_0x26dd3e('0xf')]=_['map'](_0x500edb,_0x26dd3e('0x21')),_0x4c8949['query']=_['keys'](_0x3a9287[_0x26dd3e('0x24')]),_0x4c8949[_0x26dd3e('0xc')]=_[_0x26dd3e('0x2f')](_0x4c8949[_0x26dd3e('0xf')],_0x4c8949[_0x26dd3e('0x24')]),_0x55d2bf[_0x26dd3e('0x1e')]=_[_0x26dd3e('0x2f')](_0x4c8949[_0x26dd3e('0xf')],qs[_0x26dd3e('0x2d')](_0x3a9287[_0x26dd3e('0x24')][_0x26dd3e('0x2d')])),_0x55d2bf['attributes']=_0x55d2bf[_0x26dd3e('0x1e')][_0x26dd3e('0x25')]?_0x55d2bf['attributes']:_0x4c8949[_0x26dd3e('0xf')];typeof _0x3a9287[_0x26dd3e('0x24')][_0x26dd3e('0x1')]===_0x26dd3e('0x11')&&(_0x55d2bf['limit']=qs[_0x26dd3e('0x23')](_0x3a9287['query'][_0x26dd3e('0x23')]),_0x55d2bf[_0x26dd3e('0xd')]=qs[_0x26dd3e('0xd')](_0x3a9287['query'][_0x26dd3e('0xd')]));_0x55d2bf[_0x26dd3e('0x19')]=qs['sort'](_0x3a9287[_0x26dd3e('0x24')][_0x26dd3e('0xa')]),_0x55d2bf[_0x26dd3e('0x18')]=qs['filters'](_[_0x26dd3e('0x1a')](_0x3a9287[_0x26dd3e('0x24')],_0x4c8949[_0x26dd3e('0xc')]),_0x500edb);_0x3a9287[_0x26dd3e('0x24')]['filter']&&(_0x55d2bf[_0x26dd3e('0x18')]=_['merge'](_0x55d2bf[_0x26dd3e('0x18')],{[Op['or']]:_[_0x26dd3e('0x1d')](_0x500edb,function(_0x9f2a59){const _0x1ebd56=_0x26dd3e;if(_0x9f2a59[_0x1ebd56('0x15')]!==_0x1ebd56('0x9')){const _0x3d06d8={};return _0x3d06d8[_0x9f2a59[_0x1ebd56('0x21')]]={[Op[_0x1ebd56('0x13')]]:'%'+_0x3a9287[_0x1ebd56('0x24')][_0x1ebd56('0xe')]+'%'},_0x3d06d8;}})}));_0x55d2bf=_['merge']({},_0x55d2bf,_0x3a9287[_0x26dd3e('0x1b')]);const _0x46a882={'where':_0x55d2bf['where']};return db['VoiceDialReport'][_0x26dd3e('0x14')](_0x46a882)[_0x26dd3e('0x2a')](function(_0x13dac1){const _0x4b25e3=_0x26dd3e;return _0x35edd7[_0x4b25e3('0x14')]=_0x13dac1,_0x3a9287[_0x4b25e3('0x24')]['includeAll']&&(_0x55d2bf[_0x4b25e3('0x5')]=[{'all':!![]}]),db[_0x4b25e3('0x12')][_0x4b25e3('0x33')](_0x55d2bf);})[_0x26dd3e('0x2a')](function(_0x1dad67){const _0x35dc18=_0x26dd3e;return _0x35edd7[_0x35dc18('0x29')]=_0x1dad67,_0x35edd7;})['then'](respondWithFilteredResult(_0x43d720,_0x55d2bf))[_0x26dd3e('0x26')](handleError(_0x43d720,null));},exports['show']=function(_0x3e7c8d,_0x4a0c5e){const _0x389f8f=_0x38716d;let _0x408c68={'raw':!![],'where':{'id':_0x3e7c8d[_0x389f8f('0x16')]['id']}};const _0x4dc5e4={};return _0x4dc5e4[_0x389f8f('0xf')]=_['keys'](db['VoiceDialReport']['rawAttributes']),_0x4dc5e4[_0x389f8f('0x24')]=_[_0x389f8f('0x10')](_0x3e7c8d['query']),_0x4dc5e4[_0x389f8f('0xc')]=_[_0x389f8f('0x2f')](_0x4dc5e4[_0x389f8f('0xf')],_0x4dc5e4[_0x389f8f('0x24')]),_0x408c68[_0x389f8f('0x1e')]=_[_0x389f8f('0x2f')](_0x4dc5e4['model'],qs[_0x389f8f('0x2d')](_0x3e7c8d[_0x389f8f('0x24')][_0x389f8f('0x2d')])),_0x408c68[_0x389f8f('0x1e')]=_0x408c68['attributes']['length']?_0x408c68[_0x389f8f('0x1e')]:_0x4dc5e4['model'],_0x3e7c8d[_0x389f8f('0x24')]['includeAll']&&(_0x408c68[_0x389f8f('0x5')]=[{'all':!![]}]),_0x408c68=_['merge']({},_0x408c68,_0x3e7c8d[_0x389f8f('0x1b')]),db['VoiceDialReport'][_0x389f8f('0x1f')](_0x408c68)[_0x389f8f('0x2a')](handleEntityNotFound(_0x4a0c5e,null))['then'](respondWithResult(_0x4a0c5e,null))['catch'](handleError(_0x4a0c5e,null));},exports[_0x38716d('0x2c')]=function(_0x50f11a,_0x26619b){const _0x5a885c=_0x38716d;return db[_0x5a885c('0x12')][_0x5a885c('0x2c')](_0x50f11a[_0x5a885c('0x7')],{})[_0x5a885c('0x2a')](respondWithResult(_0x26619b,0xc9))[_0x5a885c('0x26')](handleError(_0x26619b,null));},exports['update']=function(_0x1ef4c8,_0x1b1820){const _0x3ba3e2=_0x38716d;return _0x1ef4c8['body']['id']&&delete _0x1ef4c8[_0x3ba3e2('0x7')]['id'],db[_0x3ba3e2('0x12')][_0x3ba3e2('0x1f')]({'where':{'id':_0x1ef4c8['params']['id']}})['then'](handleEntityNotFound(_0x1b1820,null))['then'](saveUpdates(_0x1ef4c8[_0x3ba3e2('0x7')],null))[_0x3ba3e2('0x2a')](respondWithResult(_0x1b1820,null))['catch'](handleError(_0x1b1820,null));},exports[_0x38716d('0xb')]=function(_0x191281,_0x324baf){const _0xd54298=_0x38716d;return db[_0xd54298('0x12')][_0xd54298('0x1f')]({'where':{'id':_0x191281[_0xd54298('0x16')]['id']}})[_0xd54298('0x2a')](handleEntityNotFound(_0x324baf,null))['then'](removeEntity(_0x324baf,null))[_0xd54298('0x26')](handleError(_0x324baf,null));},exports[_0x38716d('0x2e')]=function(_0x384741,_0x1de154){const _0x8d1f01=_0x38716d;return db['VoiceDialReport'][_0x8d1f01('0x2e')]()[_0x8d1f01('0x2a')](respondWithResult(_0x1de154,null))['catch'](handleError(_0x1de154,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index 811f5ea..c29f57b 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a723_0x1c9b=['define','./voiceDialReport.attributes'];(function(_0x5e53d3,_0x1c9b36){const _0x4eaf1f=function(_0x5dd127){while(--_0x5dd127){_0x5e53d3['push'](_0x5e53d3['shift']());}};_0x4eaf1f(++_0x1c9b36);}(a723_0x1c9b,0x154));const a723_0x4eaf=function(_0x5e53d3,_0x1c9b36){_0x5e53d3=_0x5e53d3-0x0;let _0x4eaf1f=a723_0x1c9b[_0x5e53d3];return _0x4eaf1f;};const _0x49a987=a723_0x4eaf;'use strict';const attributes=require(_0x49a987('0x1'));module['exports']=function(_0x5dd127){const _0x46e971=_0x49a987,_0x366d0f=_0x5dd127[_0x46e971('0x0')]('VoiceDialReport',attributes,{'tableName':'report_dial','paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});return _0x366d0f;}; \ No newline at end of file +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 diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index ab9cfd1..1cf17dd 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a724_0x44d9=['debug','raw','attributes','rpc','options','error','CreateVoiceDialReport','stringify','../../mysqldb','message','create','UpdateVoiceDialReport','info','limit'];(function(_0x4393bb,_0x44d94e){const _0x90377=function(_0x420683){while(--_0x420683){_0x4393bb['push'](_0x4393bb['shift']());}};_0x90377(++_0x44d94e);}(a724_0x44d9,0xad));const a724_0x9037=function(_0x4393bb,_0x44d94e){_0x4393bb=_0x4393bb-0x0;let _0x90377=a724_0x44d9[_0x4393bb];return _0x90377;};const _0x1a927a=a724_0x9037;'use strict';const db=require(_0x1a927a('0x3'))['db'],logger=require('../../config/logger')(_0x1a927a('0xc'));exports['CreateVoiceDialReport']=function(_0x420683){const _0x379cc5=this;return new Promise(function(_0x1639aa,_0x552989){const _0x155940=a724_0x9037;return db['VoiceDialReport'][_0x155940('0x5')](_0x420683['body'],{'raw':_0x420683[_0x155940('0xd')]?_0x420683['options'][_0x155940('0xa')]===undefined?!![]:![]:!![]})['then'](function(_0x46c57c){const _0x485f36=_0x155940;logger['info'](_0x485f36('0x1'),_0x420683),logger[_0x485f36('0x9')](_0x485f36('0x1'),_0x420683,JSON[_0x485f36('0x2')](_0x46c57c)),_0x1639aa(_0x46c57c);})['catch'](function(_0x5041f0){const _0x48184d=_0x155940;logger['error'](_0x48184d('0x1'),_0x5041f0['message'],_0x420683),_0x552989(_0x379cc5[_0x48184d('0x0')](0x1f4,_0x5041f0[_0x48184d('0x4')]));});});},exports[_0x1a927a('0x6')]=function(_0x3bdc91){const _0x575e95=this;return new Promise(function(_0x334e90,_0x51d133){const _0x3e6c14=a724_0x9037;return db['VoiceDialReport']['update'](_0x3bdc91['body'],{'raw':_0x3bdc91[_0x3e6c14('0xd')]?_0x3bdc91['options'][_0x3e6c14('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3bdc91[_0x3e6c14('0xd')]?_0x3bdc91['options']['where']||null:null,'attributes':_0x3bdc91[_0x3e6c14('0xd')]?_0x3bdc91[_0x3e6c14('0xd')][_0x3e6c14('0xb')]||null:null,'limit':_0x3bdc91[_0x3e6c14('0xd')]?_0x3bdc91[_0x3e6c14('0xd')][_0x3e6c14('0x8')]||null:null})['then'](function(_0x4d0708){const _0x144c64=_0x3e6c14;logger[_0x144c64('0x7')]('UpdateVoiceDialReport',_0x3bdc91),logger[_0x144c64('0x9')](_0x144c64('0x6'),_0x3bdc91,JSON['stringify'](_0x4d0708)),_0x334e90(_0x4d0708);})['catch'](function(_0x35c060){const _0x21485e=_0x3e6c14;logger['error'](_0x21485e('0x6'),_0x35c060[_0x21485e('0x4')],_0x3bdc91),_0x51d133(_0x575e95[_0x21485e('0x0')](0x1f4,_0x35c060[_0x21485e('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index 20963a6..ad1d8f8 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a725_0x4649=['/:id/applications','get','Router','delete','post','./voiceExtension.controller','update','destroy','put','create','../../components/auth/service','addApplications','show','/:id','isAuthenticated'];(function(_0x49f61c,_0x464901){const _0x304e49=function(_0x5db8ee){while(--_0x5db8ee){_0x49f61c['push'](_0x49f61c['shift']());}};_0x304e49(++_0x464901);}(a725_0x4649,0xe7));const a725_0x304e=function(_0x49f61c,_0x464901){_0x49f61c=_0x49f61c-0x0;let _0x304e49=a725_0x4649[_0x49f61c];return _0x304e49;};const _0x546a0c=a725_0x304e;'use strict';const express=require('express'),router=express[_0x546a0c('0xb')](),auth=require(_0x546a0c('0x4')),controller=require(_0x546a0c('0xe'));router['get']('/',auth[_0x546a0c('0x8')](),controller['index']),router[_0x546a0c('0xa')](_0x546a0c('0x7'),auth[_0x546a0c('0x8')](),controller[_0x546a0c('0x6')]),router[_0x546a0c('0xd')]('/',auth['isAuthenticated'](),controller[_0x546a0c('0x3')]),router[_0x546a0c('0xd')](_0x546a0c('0x9'),auth[_0x546a0c('0x8')](),controller[_0x546a0c('0x5')]),router[_0x546a0c('0x2')](_0x546a0c('0x7'),auth['isAuthenticated'](),controller[_0x546a0c('0x0')]),router[_0x546a0c('0xc')](_0x546a0c('0x7'),auth[_0x546a0c('0x8')](),controller[_0x546a0c('0x1')]),module['exports']=router; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index 7750d43..6bb820e 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a726_0x218e=['INTEGER','outbound-fax','outbound','inbound-fax','exports','compositeIndex','system','exten','VIRTUAL','internal','inbound','ENUM','sequelize','*,*,*,*','getDataValue','any','BOOLEAN','STRING'];(function(_0x12c0dd,_0x218e1e){const _0x9beab3=function(_0x73186e){while(--_0x73186e){_0x12c0dd['push'](_0x12c0dd['shift']());}};_0x9beab3(++_0x218e1e);}(a726_0x218e,0xe5));const a726_0x9bea=function(_0x12c0dd,_0x218e1e){_0x12c0dd=_0x12c0dd-0x0;let _0x9beab3=a726_0x218e[_0x12c0dd];return _0x9beab3;};const _0x2a8aaf=a726_0x9bea;'use strict';const Sequelize=require(_0x2a8aaf('0x11'));module[_0x2a8aaf('0x9')]={'context':{'type':Sequelize[_0x2a8aaf('0x4')],'allowNull':![],'unique':_0x2a8aaf('0xa'),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x2a8aaf('0x4')],'allowNull':![],'unique':'compositeIndex'},'priority':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'1','unique':_0x2a8aaf('0xa')},'tag':{'type':Sequelize[_0x2a8aaf('0x4')],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize[_0x2a8aaf('0x4')],'allowNull':![],'defaultValue':'NoOp'},'appdata':{'type':Sequelize[_0x2a8aaf('0x4')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize[_0x2a8aaf('0x10')](_0x2a8aaf('0xf'),_0x2a8aaf('0x7'),_0x2a8aaf('0xe'),_0x2a8aaf('0x8'),_0x2a8aaf('0x6'),_0x2a8aaf('0xb'),_0x2a8aaf('0x2')),'allowNull':![]},'description':{'type':Sequelize[_0x2a8aaf('0x4')]},'interval':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x2a8aaf('0x0')},'IntervalId':{'type':Sequelize[_0x2a8aaf('0x5')]},'isApp':{'type':Sequelize[_0x2a8aaf('0x3')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x2a8aaf('0x4')],'defaultValue':null},'callerID':{'type':Sequelize[_0x2a8aaf('0x4')],'allowNull':!![]},'record':{'type':Sequelize[_0x2a8aaf('0x3')],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0x2a8aaf('0x5')]},'recordingFormat':{'type':Sequelize[_0x2a8aaf('0x4')],'defaultValue':'wav'},'answer':{'type':Sequelize[_0x2a8aaf('0x3')],'defaultValue':!![]},'name':{'type':Sequelize[_0x2a8aaf('0xd')],'get':function(){const _0x599329=_0x2a8aaf;return this[_0x599329('0x1')](_0x599329('0xc'));}}}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index 2760cc2..a04ddc3 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a727_0xeb9b=['UserProfileSection','include','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','startsWith','length','includes','includeAll','send','json','bulkCreate','end','exten','attributes','sort','type','like','key','model','offset','ignore','filters','userProfileId','set','find','count','status','options','merge','role','fields','api','VoiceExtensionId','user','../../config/logger','keys','query','sequelize','OutboundRoutes','intersection','get','then','catch','lodash','mandatoryDisposition','sendStatus','UserProfileResource','create','stack','pick','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','name','error','limit','filter','VIRTUAL','InboundRoutes','fieldName','context','rawAttributes','VoiceExtension','InternalRoutes','concat','../../mysqldb','params','value','./voiceExtension.socket','nolimit','show','where','order','map','destroy','index','internal','rows','inbound','body','findOne','addApplications','description','cutdigits'];(function(_0xc924b0,_0xeb9beb){const _0x50deac=function(_0x501b57){while(--_0x501b57){_0xc924b0['push'](_0xc924b0['shift']());}};_0x50deac(++_0xeb9beb);}(a727_0xeb9b,0xc6));const a727_0x50de=function(_0xc924b0,_0xeb9beb){_0xc924b0=_0xc924b0-0x0;let _0x50deac=a727_0xeb9b[_0xc924b0];return _0x50deac;};const _0x440596=a727_0x50de;'use strict';const _=require(_0x440596('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x440596('0x2'))(_0x440596('0x52')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x440596('0x20'))['db'],{Op}=require(_0x440596('0x5'));require(_0x440596('0x23'))['register'](socket);function respondWithStatusCode(_0x501b57,_0xf033d2){return _0xf033d2=_0xf033d2||0xcc,function(_0x14858b){const _0x343496=a727_0x50de;if(_0x14858b)return _0x501b57[_0x343496('0xd')](_0xf033d2);return _0x501b57['status'](_0xf033d2)['end']();};}function respondWithResult(_0x59d264,_0x12fa95){return _0x12fa95=_0x12fa95||0xc8,function(_0x29a3c2){const _0x5f5222=a727_0x50de;if(_0x29a3c2)return _0x59d264[_0x5f5222('0x4d')](_0x12fa95)[_0x5f5222('0x3c')](_0x29a3c2);};}function respondWithFilteredResult(_0x4daadb,_0x2178ff){return function(_0x17782b){const _0x2db8df=a727_0x50de;if(_0x17782b){const _0x2f1af4=_0x17782b[_0x2db8df('0x4c')],_0x30c6e8=_0x2178ff['offset'];let _0x418d1c=_0x2178ff[_0x2db8df('0x46')]+_0x2178ff[_0x2db8df('0x16')],_0xf57766;return _0x418d1c>=_0x2f1af4?(_0x418d1c=_0x2f1af4,_0xf57766=0xc8):_0xf57766=0xce,_0x4daadb[_0x2db8df('0x4d')](_0xf57766),_0x4daadb[_0x2db8df('0x4a')]('Content-Range',_0x30c6e8+'-'+_0x418d1c+'/'+_0x2f1af4)['json'](_0x17782b);}return null;};}function removeEntity(_0x3d0e45){return function(_0xc0279c){const _0x115e52=a727_0x50de;if(_0xc0279c)return _0xc0279c['destroy']()[_0x115e52('0x9')](function(){const _0x2daa91=_0x115e52,_0xe3a440=_0xc0279c[_0x2daa91('0x8')]({'plain':!![]}),_0x20bb73=[{'name':'InboundRoutes','value':_0x2daa91('0x2d'),'ignore':![]},{'name':_0x2daa91('0x6'),'value':'outbound','ignore':![]},{'name':'InternalRoutes','value':_0x2daa91('0x2b'),'ignore':![]}],_0x3b8fe0=_(_0x20bb73)['filter'](_0x2daa91('0x47'))[_0x2daa91('0x28')]('value')[_0x2daa91('0x22')]();if(_[_0x2daa91('0x39')](_0x3b8fe0,_0xe3a440[_0x2daa91('0x42')]))return;const _0x200d8f=_[_0x2daa91('0x4b')](_0x20bb73,['value',_0xe3a440[_0x2daa91('0x42')]])[_0x2daa91('0x14')];return db[_0x2daa91('0xe')][_0x2daa91('0x29')]({'where':{'type':_0x200d8f,'resourceId':_0xe3a440['id']}})[_0x2daa91('0x9')](function(){return _0xc0279c;});})[_0x115e52('0x9')](function(){const _0x3bf67e=_0x115e52;_0x3d0e45['status'](0xcc)[_0x3bf67e('0x3e')]();});};}function handleEntityNotFound(_0x100483){return function(_0x1ab843){return!_0x1ab843&&_0x100483['sendStatus'](0x194),_0x1ab843;};}function handleError(_0x59f43,_0xd69e38){return _0xd69e38=_0xd69e38||0x1f4,function(_0x34107e){const _0x480fcb=a727_0x50de;logger[_0x480fcb('0x15')](_0x34107e[_0x480fcb('0x10')]),_0x34107e[_0x480fcb('0x14')]&&delete _0x34107e[_0x480fcb('0x14')],_0x59f43[_0x480fcb('0x4d')](_0xd69e38)[_0x480fcb('0x3b')](_0x34107e);};}exports[_0x440596('0x2a')]=function(_0x573582,_0x35a979){const _0x589b18=_0x440596;let _0x249249={};const _0x57e4ff={},_0x36aece={'count':0x0,'rows':[]},_0x2f89cb=_[_0x589b18('0x28')](db[_0x589b18('0x1d')][_0x589b18('0x1c')],function(_0x37d03a){const _0x141de1=_0x589b18;return{'name':_0x37d03a[_0x141de1('0x1a')],'type':_0x37d03a[_0x141de1('0x42')][_0x141de1('0x44')]};});_0x57e4ff[_0x589b18('0x45')]=_[_0x589b18('0x28')](_0x2f89cb,_0x589b18('0x14')),_0x57e4ff['query']=_[_0x589b18('0x3')](_0x573582[_0x589b18('0x4')]),_0x57e4ff[_0x589b18('0x48')]=_[_0x589b18('0x7')](_0x57e4ff['model'],_0x57e4ff[_0x589b18('0x4')]),_0x249249[_0x589b18('0x40')]=_[_0x589b18('0x7')](_0x57e4ff[_0x589b18('0x45')],qs[_0x589b18('0x51')](_0x573582[_0x589b18('0x4')][_0x589b18('0x51')])),_0x249249[_0x589b18('0x40')]=_0x249249[_0x589b18('0x40')][_0x589b18('0x38')]?_0x249249[_0x589b18('0x40')]:_0x57e4ff[_0x589b18('0x45')];typeof _0x573582[_0x589b18('0x4')][_0x589b18('0x24')]==='undefined'&&(_0x249249['limit']=qs[_0x589b18('0x16')](_0x573582[_0x589b18('0x4')][_0x589b18('0x16')]),_0x249249[_0x589b18('0x46')]=qs[_0x589b18('0x46')](_0x573582[_0x589b18('0x4')][_0x589b18('0x46')]));_0x249249[_0x589b18('0x27')]=qs[_0x589b18('0x41')](_0x573582['query'][_0x589b18('0x41')]),_0x249249['where']=qs[_0x589b18('0x48')](_[_0x589b18('0x11')](_0x573582['query'],_0x57e4ff[_0x589b18('0x48')]),_0x2f89cb);_0x573582[_0x589b18('0x4')]['filter']&&(_0x249249[_0x589b18('0x26')]=_[_0x589b18('0x4f')](_0x249249[_0x589b18('0x26')],{[Op['or']]:_['map'](_0x2f89cb,function(_0x5aac31){const _0x1a6f05=_0x589b18;if(_0x5aac31[_0x1a6f05('0x42')]!==_0x1a6f05('0x18')){const _0x15334e={};return _0x15334e[_0x5aac31[_0x1a6f05('0x14')]]={[Op[_0x1a6f05('0x43')]]:'%'+_0x573582[_0x1a6f05('0x4')][_0x1a6f05('0x17')]+'%'},_0x15334e;}})}));_0x249249=_[_0x589b18('0x4f')]({},_0x249249,_0x573582[_0x589b18('0x4e')]);const _0x50ef5b={'where':_0x249249[_0x589b18('0x26')]};return db[_0x589b18('0x1d')][_0x589b18('0x4c')](_0x50ef5b)[_0x589b18('0x9')](function(_0x2cca58){const _0x3499f4=_0x589b18;return _0x36aece[_0x3499f4('0x4c')]=_0x2cca58,_0x573582[_0x3499f4('0x4')][_0x3499f4('0x3a')]&&(_0x249249[_0x3499f4('0x34')]=[{'all':!![]}]),db[_0x3499f4('0x1d')][_0x3499f4('0x35')](_0x249249);})[_0x589b18('0x9')](function(_0x4f43be){const _0x380cc7=_0x589b18;return _0x36aece[_0x380cc7('0x2c')]=_0x4f43be,_0x36aece;})[_0x589b18('0x9')](respondWithFilteredResult(_0x35a979,_0x249249))[_0x589b18('0xa')](handleError(_0x35a979,null));},exports[_0x440596('0x25')]=function(_0x1b47b1,_0x1ff134){const _0x4b5088=_0x440596;let _0x1198a7={'raw':![],'where':{'id':_0x1b47b1['params']['id']}};const _0x175ad2={};return _0x175ad2[_0x4b5088('0x45')]=_['keys'](db[_0x4b5088('0x1d')][_0x4b5088('0x1c')]),_0x175ad2[_0x4b5088('0x4')]=_[_0x4b5088('0x3')](_0x1b47b1[_0x4b5088('0x4')]),_0x175ad2[_0x4b5088('0x48')]=_[_0x4b5088('0x7')](_0x175ad2[_0x4b5088('0x45')],_0x175ad2[_0x4b5088('0x4')]),_0x1198a7[_0x4b5088('0x40')]=_['intersection'](_0x175ad2['model'],qs[_0x4b5088('0x51')](_0x1b47b1['query']['fields'])),_0x1198a7[_0x4b5088('0x40')]=_0x1198a7[_0x4b5088('0x40')][_0x4b5088('0x38')]?_0x1198a7['attributes']:_0x175ad2[_0x4b5088('0x45')],_0x1b47b1[_0x4b5088('0x4')][_0x4b5088('0x3a')]&&(_0x1198a7[_0x4b5088('0x34')]=[{'all':!![]}]),_0x1198a7=_[_0x4b5088('0x4f')]({},_0x1198a7,_0x1b47b1[_0x4b5088('0x4e')]),db[_0x4b5088('0x1d')][_0x4b5088('0x2f')](_0x1198a7)[_0x4b5088('0x9')](handleEntityNotFound(_0x1ff134,null))[_0x4b5088('0x9')](respondWithResult(_0x1ff134,null))[_0x4b5088('0xa')](handleError(_0x1ff134,null));},exports['destroy']=function(_0x10ad56,_0x435f73){const _0x28f98e=_0x440596;return db[_0x28f98e('0x1d')][_0x28f98e('0x2f')]({'where':{'id':_0x10ad56[_0x28f98e('0x21')]['id']}})[_0x28f98e('0x9')](handleEntityNotFound(_0x435f73,null))[_0x28f98e('0x9')](removeEntity(_0x435f73,null))['catch'](handleError(_0x435f73,null));},exports[_0x440596('0xf')]=function(_0x1bf5ba,_0x3cb59b){const _0x19425e=_0x440596;return _0x1bf5ba['body'][_0x19425e('0x42')]==='outbound'&&!_[_0x19425e('0x37')](_0x1bf5ba[_0x19425e('0x2e')][_0x19425e('0x3f')],'_')&&(_0x1bf5ba[_0x19425e('0x2e')]['exten']='_'[_0x19425e('0x1f')](_0x1bf5ba[_0x19425e('0x2e')][_0x19425e('0x3f')])),db[_0x19425e('0x1d')][_0x19425e('0xf')](_0x1bf5ba[_0x19425e('0x2e')],{'raw':![]})[_0x19425e('0x9')](function(_0x2c0cfb){const _0x480853=_0x19425e,_0x3e235d=_0x1bf5ba[_0x480853('0x1')][_0x480853('0x8')]({'plain':!![]});if(!_0x3e235d)throw new Error(_0x480853('0x36'));if(_0x3e235d[_0x480853('0x50')]==='user'){const _0x3e948b=_0x2c0cfb['get']({'plain':!![]}),_0x467056=[{'name':_0x480853('0x19'),'value':'inbound'},{'name':_0x480853('0x6'),'value':'outbound'},{'name':_0x480853('0x1e'),'value':_0x480853('0x2b')}],_0xf57e53=_[_0x480853('0x4b')](_0x467056,[_0x480853('0x22'),_0x3e948b[_0x480853('0x42')]])[_0x480853('0x14')];return db[_0x480853('0x33')]['findOne']({'where':{'name':_0xf57e53,'userProfileId':_0x3e235d[_0x480853('0x49')]},'raw':!![]})['then'](function(_0xfc6373){const _0x24e6d1=_0x480853;return _0xfc6373&&_0xfc6373['autoAssociation']===0x0?db['UserProfileResource'][_0x24e6d1('0xf')]({'name':_0x3e948b[_0x24e6d1('0x14')],'resourceId':_0x3e948b['id'],'type':_0xfc6373[_0x24e6d1('0x14')],'sectionId':_0xfc6373['id']},{})[_0x24e6d1('0x9')](function(){return _0x2c0cfb;}):_0x2c0cfb;})[_0x480853('0xa')](function(_0x2df2ce){const _0x263d2f=_0x480853;logger['error'](_0x263d2f('0x12'),_0x2df2ce);throw _0x2df2ce;});}return _0x2c0cfb;})['then'](respondWithResult(_0x3cb59b,0xc9))['catch'](handleError(_0x3cb59b,null));},exports[_0x440596('0x13')]=function(_0x28427f,_0x3dc135){const _0x5e1a64=_0x440596;return _0x28427f[_0x5e1a64('0x2e')]['id']&&delete _0x28427f[_0x5e1a64('0x2e')]['id'],db[_0x5e1a64('0x1d')][_0x5e1a64('0x2f')]({'where':{'id':_0x28427f[_0x5e1a64('0x21')]['id']}})['then'](handleEntityNotFound(_0x3dc135,null))[_0x5e1a64('0x9')](function(_0x454361){const _0x2580de=_0x5e1a64;if(_0x454361)return db[_0x2580de('0x1d')][_0x2580de('0x13')](_[_0x2580de('0x11')](_0x28427f['body'],[_0x2580de('0x3f'),_0x2580de('0x1b'),_0x2580de('0x31'),'recordingFormat',_0x2580de('0x32'),_0x2580de('0xc')]),{'where':{'context':_0x454361['context'],'exten':_0x454361[_0x2580de('0x3f')]},'individualHooks':!![]})[_0x2580de('0x9')](function(_0x3bab27){return _0x3bab27;});return null;})[_0x5e1a64('0x9')](respondWithStatusCode(_0x3dc135,null))[_0x5e1a64('0xa')](handleError(_0x3dc135,null));},exports[_0x440596('0x30')]=function(_0x184959,_0x29c9c3){const _0x17635b=_0x440596;return db[_0x17635b('0x1d')][_0x17635b('0x2f')]({'where':{'id':_0x184959[_0x17635b('0x21')]['id']}})[_0x17635b('0x9')](handleEntityNotFound(_0x29c9c3,null))[_0x17635b('0x9')](function(_0x815bbf){const _0x10d0df=_0x17635b;if(_0x815bbf)return db[_0x10d0df('0x5')]['transaction'](function(_0x481a68){const _0x22ee3a=_0x10d0df;return db['VoiceExtension'][_0x22ee3a('0x29')]({'where':{'VoiceExtensionId':_0x184959['params']['id']},'transaction':_0x481a68})[_0x22ee3a('0x9')](function(){const _0x278e31=_0x22ee3a,_0x779e3f=_[_0x278e31('0x28')](_0x184959['body'],function(_0xb93031){const _0x257e2f=_0x278e31;return _0xb93031[_0x257e2f('0x0')]=_0x184959[_0x257e2f('0x21')]['id'],_0xb93031;});return db[_0x278e31('0x1d')][_0x278e31('0x3d')](_0x779e3f,{'transaction':_0x481a68});});})['then'](function(){const _0x11dc56=_0x10d0df;return db[_0x11dc56('0x1d')]['findAndCountAll']({'where':{'isApp':!![],'VoiceExtensionId':_0x184959[_0x11dc56('0x21')]['id']},'order':'cast(priority\x20as\x20unsigned)'});});})[_0x17635b('0x9')](respondWithResult(_0x29c9c3,null))[_0x17635b('0xa')](handleError(_0x29c9c3,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index dfff226..68c89b5 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a728_0x3d88=['addHook','../../mysqldb','events','VoiceExtension','update','remove','save'];(function(_0x31135d,_0x3d88fc){const _0x409c9c=function(_0x4fd8ba){while(--_0x4fd8ba){_0x31135d['push'](_0x31135d['shift']());}};_0x409c9c(++_0x3d88fc);}(a728_0x3d88,0x184));const a728_0x409c=function(_0x31135d,_0x3d88fc){_0x31135d=_0x31135d-0x0;let _0x409c9c=a728_0x3d88[_0x31135d];return _0x409c9c;};const _0xfa2e5b=a728_0x409c;'use strict';const EventEmitter=require(_0xfa2e5b('0x6')),VoiceExtension=require(_0xfa2e5b('0x5'))['db'][_0xfa2e5b('0x0')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0xfa2e5b('0x3'),'afterUpdate':_0xfa2e5b('0x1'),'afterDestroy':_0xfa2e5b('0x2')};function emitEvent(_0x4fd8ba){return function(_0x43288f){VoiceExtensionEvents['emit'](_0x4fd8ba+':'+_0x43288f['id'],_0x43288f),VoiceExtensionEvents['emit'](_0x4fd8ba,_0x43288f);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceExtension[_0xfa2e5b('0x4')](e,emitEvent(event));}}module['exports']=VoiceExtensionEvents; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index 8f0f34d..9d08659 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a729_0x2c06=['./voiceExtension.attributes','VoiceExtension','define','voice_extensions'];(function(_0x5896a7,_0x2c068a){const _0x1e5d17=function(_0xed5bd0){while(--_0xed5bd0){_0x5896a7['push'](_0x5896a7['shift']());}};_0x1e5d17(++_0x2c068a);}(a729_0x2c06,0xaf));const a729_0x1e5d=function(_0x5896a7,_0x2c068a){_0x5896a7=_0x5896a7-0x0;let _0x1e5d17=a729_0x2c06[_0x5896a7];return _0x1e5d17;};const _0x46bd61=a729_0x1e5d;'use strict';const attributes=require(_0x46bd61('0x1'));module['exports']=function(_0xed5bd0){const _0x444562=_0x46bd61,_0x584e01=_0xed5bd0[_0x444562('0x3')](_0x444562('0x2'),attributes,{'tableName':_0x444562('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x584e01;}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index 0436707..bd5111b 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a730_0x15ad=['include','message','rpc','info','debug','error','options','VoiceExtension','model','GetVoiceExtension','../../config/logger','attributes','../../rediscache','findAll','../../mysqldb','map','./voiceExtension.socket','catch','raw','limit','then'];(function(_0x4f5bf2,_0x15ad55){const _0x49527f=function(_0x97158b){while(--_0x97158b){_0x4f5bf2['push'](_0x4f5bf2['shift']());}};_0x49527f(++_0x15ad55);}(a730_0x15ad,0x123));const a730_0x4952=function(_0x4f5bf2,_0x15ad55){_0x4f5bf2=_0x4f5bf2-0x0;let _0x49527f=a730_0x15ad[_0x4f5bf2];return _0x49527f;};const _0x6e81d4=a730_0x4952;'use strict';const _=require('lodash'),db=require(_0x6e81d4('0x11'))['db'],logger=require(_0x6e81d4('0xd'))(_0x6e81d4('0x5')),{getSocket}=require(_0x6e81d4('0xf')),socket=getSocket();require(_0x6e81d4('0x13'))['register'](socket),exports[_0x6e81d4('0xc')]=function(_0x97158b){const _0x272029=this;return new Promise(function(_0xc9beb4,_0x3e384f){const _0xe19b43=a730_0x4952;return db[_0xe19b43('0xa')][_0xe19b43('0x10')]({'raw':_0x97158b[_0xe19b43('0x9')]?_0x97158b[_0xe19b43('0x9')][_0xe19b43('0x0')]===undefined?!![]:![]:!![],'where':_0x97158b['options']?_0x97158b['options']['where']||null:null,'attributes':_0x97158b[_0xe19b43('0x9')]?_0x97158b['options']['attributes']||null:null,'limit':_0x97158b[_0xe19b43('0x9')]?_0x97158b[_0xe19b43('0x9')][_0xe19b43('0x1')]||null:null,'include':_0x97158b[_0xe19b43('0x9')]?_0x97158b[_0xe19b43('0x9')][_0xe19b43('0x3')]?_[_0xe19b43('0x12')](_0x97158b[_0xe19b43('0x9')][_0xe19b43('0x3')],function(_0x3e1102){const _0x4e6ba4=_0xe19b43;return{'model':db[_0x3e1102[_0x4e6ba4('0xb')]],'as':_0x3e1102['as'],'attributes':_0x3e1102['attributes'],'include':_0x3e1102['include']?_[_0x4e6ba4('0x12')](_0x3e1102['include'],function(_0x2dbd92){const _0x59b7dd=_0x4e6ba4;return{'model':db[_0x2dbd92[_0x59b7dd('0xb')]],'as':_0x2dbd92['as'],'attributes':_0x2dbd92[_0x59b7dd('0xe')],'include':_0x2dbd92[_0x59b7dd('0x3')]?_[_0x59b7dd('0x12')](_0x2dbd92[_0x59b7dd('0x3')],function(_0x1fc385){const _0x271eb2=_0x59b7dd;return{'model':db[_0x1fc385['model']],'as':_0x1fc385['as'],'attributes':_0x1fc385[_0x271eb2('0xe')]};}):[]};}):[]};}):[]:[]})[_0xe19b43('0x2')](function(_0x3526e4){const _0x2ae7c6=_0xe19b43;logger[_0x2ae7c6('0x6')](_0x2ae7c6('0xc'),_0x97158b),logger[_0x2ae7c6('0x7')](_0x2ae7c6('0xc'),_0x97158b,JSON['stringify'](_0x3526e4)),_0xc9beb4(_0x3526e4);})[_0xe19b43('0x14')](function(_0x2b5fcb){const _0x307151=_0xe19b43;logger[_0x307151('0x8')](_0x307151('0xc'),_0x2b5fcb[_0x307151('0x4')],_0x97158b),_0x3e384f(_0x272029['error'](0x1f4,_0x2b5fcb[_0x307151('0x4')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index 3762b4a..a138100 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a731_0x1c23=['update','emit','save','./voiceExtension.events','voiceExtension:','register'];(function(_0x4f980d,_0x1c2365){const _0x580e0f=function(_0x42f609){while(--_0x42f609){_0x4f980d['push'](_0x4f980d['shift']());}};_0x580e0f(++_0x1c2365);}(a731_0x1c23,0x169));const a731_0x580e=function(_0x4f980d,_0x1c2365){_0x4f980d=_0x4f980d-0x0;let _0x580e0f=a731_0x1c23[_0x4f980d];return _0x580e0f;};const _0x1845d3=a731_0x580e;'use strict';const VoiceExtensionEvents=require(_0x1845d3('0x2')),events=[_0x1845d3('0x1'),'remove',_0x1845d3('0x5')];function createListener(_0x42f609,_0x27cd80){return function(_0x34ec83){const _0x5f09b0=a731_0x580e;_0x27cd80[_0x5f09b0('0x0')](_0x42f609,_0x34ec83);};}exports[_0x1845d3('0x4')]=function(_0x521020){const _0x248c94=_0x1845d3;for(let _0x3e6c08=0x0,_0x30829a=events['length'];_0x3e6c08<_0x30829a;_0x3e6c08++){const _0x51954b=events[_0x3e6c08],_0x48b250=createListener(_0x248c94('0x3')+_0x51954b,_0x521020);VoiceExtensionEvents['on'](_0x51954b,_0x48b250);}}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index aa91f29..be77640 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a732_0x489e=['../../components/auth/service','create','Router','put','exports','./voiceMail.controller','get','express','delete','/:id','isAuthenticated','getMessages','index','destroy'];(function(_0x4ed04d,_0x489ebd){const _0x531b32=function(_0x42bd4d){while(--_0x42bd4d){_0x4ed04d['push'](_0x4ed04d['shift']());}};_0x531b32(++_0x489ebd);}(a732_0x489e,0x1d5));const a732_0x531b=function(_0x4ed04d,_0x489ebd){_0x4ed04d=_0x4ed04d-0x0;let _0x531b32=a732_0x489e[_0x4ed04d];return _0x531b32;};const _0x13e3e1=a732_0x531b;'use strict';const express=require(_0x13e3e1('0x0')),router=express[_0x13e3e1('0x9')](),auth=require(_0x13e3e1('0x7')),controller=require(_0x13e3e1('0xc'));router[_0x13e3e1('0xd')]('/',auth[_0x13e3e1('0x3')](),controller[_0x13e3e1('0x5')]),router[_0x13e3e1('0xd')](_0x13e3e1('0x2'),auth['isAuthenticated'](),controller['show']),router['get']('/:id/messages',auth[_0x13e3e1('0x3')](),controller[_0x13e3e1('0x4')]),router['post']('/',auth[_0x13e3e1('0x3')](),controller[_0x13e3e1('0x8')]),router[_0x13e3e1('0xa')](_0x13e3e1('0x2'),auth[_0x13e3e1('0x3')](),controller['update']),router[_0x13e3e1('0x1')](_0x13e3e1('0x2'),auth['isAuthenticated'](),controller[_0x13e3e1('0x6')]),module[_0x13e3e1('0xb')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.attributes.js b/server/api/voiceMail/voiceMail.attributes.js index 0ce98d8..8cccfae 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a733_0x310d=['TIMESTAMP','ENUM','trim','mailbox','exports','getDataValue','from-voicemail','yes','STRING','INTEGER','setDataValue','sequelize','fullname','contest_mailbox','VIRTUAL','TINYINT(4)','string'];(function(_0x105647,_0x310d37){const _0x1e3ac5=function(_0x54dc7f){while(--_0x54dc7f){_0x105647['push'](_0x105647['shift']());}};_0x1e3ac5(++_0x310d37);}(a733_0x310d,0x8a));const a733_0x1e3a=function(_0x105647,_0x310d37){_0x105647=_0x105647-0x0;let _0x1e3ac5=a733_0x310d[_0x105647];return _0x1e3ac5;};const _0x3d1cbf=a733_0x1e3a;'use strict';const Sequelize=require(_0x3d1cbf('0x9'));module[_0x3d1cbf('0x2')]={'customer_id':{'type':Sequelize[_0x3d1cbf('0x6')]},'context':{'type':Sequelize['STRING'],'defaultValue':_0x3d1cbf('0x4'),'unique':'contest_mailbox'},'mailbox':{'type':Sequelize[_0x3d1cbf('0x6')],'defaultValue':'','allowNull':![],'unique':_0x3d1cbf('0xb')},'password':{'type':Sequelize['STRING']},'fullname':{'type':Sequelize[_0x3d1cbf('0x6')]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]},'set':function(_0x54dc7f){const _0x24cd7b=_0x3d1cbf;this[_0x24cd7b('0x8')]('email',typeof _0x54dc7f===_0x24cd7b('0xe')&&_0x54dc7f[_0x24cd7b('0x0')]()?_0x54dc7f['trim']():null);}},'pager':{'type':Sequelize['STRING']},'tz':{'type':Sequelize[_0x3d1cbf('0x6')],'defaultValue':'central'},'attach':{'type':Sequelize[_0x3d1cbf('0x10')]('yes','no'),'defaultValue':_0x3d1cbf('0x5'),'allowNull':![]},'saycid':{'type':Sequelize[_0x3d1cbf('0x10')]('yes','no'),'defaultValue':_0x3d1cbf('0x5'),'allowNull':![]},'dialout':{'type':Sequelize[_0x3d1cbf('0x6')]},'callback':{'type':Sequelize[_0x3d1cbf('0x6')]},'review':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize['ENUM'](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x3d1cbf('0xd'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':_0x3d1cbf('0x5'),'allowNull':![]},'forcename':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x3d1cbf('0x10')](_0x3d1cbf('0x5'),'no'),'defaultValue':_0x3d1cbf('0x5'),'allowNull':![]},'stamp':{'type':_0x3d1cbf('0xf')},'emailsubject':{'type':Sequelize[_0x3d1cbf('0x6')]},'emailbody':{'type':Sequelize[_0x3d1cbf('0x6')]},'maxsecs':{'type':Sequelize[_0x3d1cbf('0x7')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x3d1cbf('0x7')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x3d1cbf('0xc')],'get':function(){const _0x3a3bcb=_0x3d1cbf;return this[_0x3a3bcb('0x3')](_0x3a3bcb('0xa'))+'\x20-\x20'+this[_0x3a3bcb('0x3')](_0x3a3bcb('0x1'));}}}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index a5325b6..0871add 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a734_0x36b4=['order','nolimit','findAndCountAll','autoAssociation','intersection','model','get','Content-Range','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rawAttributes','include','undefined','status','like','body','user','destroy','length','../../components/parsers/qs','lodash','map','findAll','key','limit','show','VIRTUAL','count','sendStatus','rows','attributes','then','UserProfileResource','merge','catch','filter','keys','VoiceMail','Unable\x20to\x20retrieve\x20the\x20current\x20user','includeAll','create','fieldName','where','Voicemails','mailbox','fields','findOne','offset','sort','type','UserProfileSection','sequelize','../../config/logger','pick','end','options','set','api','error','json','query','userProfileId','params','name','send','getMessages','update','VoiceMailMessage','filters'];(function(_0x1dfdfc,_0x36b438){const _0x2e4f70=function(_0x44391a){while(--_0x44391a){_0x1dfdfc['push'](_0x1dfdfc['shift']());}};_0x2e4f70(++_0x36b438);}(a734_0x36b4,0xdc));const a734_0x2e4f=function(_0x1dfdfc,_0x36b438){_0x1dfdfc=_0x1dfdfc-0x0;let _0x2e4f70=a734_0x36b4[_0x1dfdfc];return _0x2e4f70;};const _0x94a85a=a734_0x2e4f;'use strict';const _=require(_0x94a85a('0x3')),qs=require(_0x94a85a('0x2')),logger=require(_0x94a85a('0x23'))(_0x94a85a('0x28')),db=require('../../mysqldb')['db'],{Op}=require(_0x94a85a('0x22'));function respondWithResult(_0x44391a,_0xf23b3f){return _0xf23b3f=_0xf23b3f||0xc8,function(_0x43e203){const _0x1de0c0=a734_0x2e4f;if(_0x43e203)return _0x44391a[_0x1de0c0('0x40')](_0xf23b3f)[_0x1de0c0('0x2a')](_0x43e203);};}function respondWithFilteredResult(_0x1e96a1,_0x45fe1a){return function(_0x3cccd3){const _0x26912f=a734_0x2e4f;if(_0x3cccd3){const _0x8d8e75=_0x3cccd3[_0x26912f('0xa')],_0x1cc871=_0x45fe1a[_0x26912f('0x1e')];let _0x3500e6=_0x45fe1a[_0x26912f('0x1e')]+_0x45fe1a[_0x26912f('0x7')],_0x5eb2be;return _0x3500e6>=_0x8d8e75?(_0x3500e6=_0x8d8e75,_0x5eb2be=0xc8):_0x5eb2be=0xce,_0x1e96a1[_0x26912f('0x40')](_0x5eb2be),_0x1e96a1[_0x26912f('0x27')](_0x26912f('0x3b'),_0x1cc871+'-'+_0x3500e6+'/'+_0x8d8e75)[_0x26912f('0x2a')](_0x3cccd3);}return null;};}function saveUpdates(_0x444aad){return function(_0x577922){const _0x33e775=a734_0x2e4f;if(_0x577922)return _0x577922[_0x33e775('0x31')](_0x444aad)[_0x33e775('0xe')](function(_0x2350df){return _0x2350df;});return null;};}function removeEntity(_0x5a4cf1){return function(_0x41fe19){const _0x17909e=a734_0x2e4f;if(_0x41fe19)return _0x41fe19[_0x17909e('0x0')]()[_0x17909e('0xe')](function(){const _0xbc84c9=_0x17909e,_0x2884e1=_0x41fe19[_0xbc84c9('0x3a')]({'plain':!![]}),_0x3845dd=_0xbc84c9('0x1a');return db[_0xbc84c9('0xf')][_0xbc84c9('0x0')]({'where':{'type':_0x3845dd,'resourceId':_0x2884e1['id']}})[_0xbc84c9('0xe')](function(){return _0x41fe19;});})[_0x17909e('0xe')](function(){const _0x5c1380=_0x17909e;_0x5a4cf1['status'](0xcc)[_0x5c1380('0x25')]();});};}function handleEntityNotFound(_0x266d26){return function(_0x33c0f8){const _0x4fb022=a734_0x2e4f;return!_0x33c0f8&&_0x266d26[_0x4fb022('0xb')](0x194),_0x33c0f8;};}function handleError(_0x5c974a,_0x284927){return _0x284927=_0x284927||0x1f4,function(_0x44f8a5){const _0x170ada=a734_0x2e4f;logger[_0x170ada('0x29')](_0x44f8a5['stack']),_0x44f8a5[_0x170ada('0x2e')]&&delete _0x44f8a5[_0x170ada('0x2e')],_0x5c974a[_0x170ada('0x40')](_0x284927)[_0x170ada('0x2f')](_0x44f8a5);};}exports['index']=function(_0x2d6c69,_0x338a5a){const _0x2e77ca=_0x94a85a;let _0x2a06ee={};const _0x398e20={},_0x1da774={'count':0x0,'rows':[]},_0x58e475=_[_0x2e77ca('0x4')](db['VoiceMail'][_0x2e77ca('0x3d')],function(_0x478537){const _0x1455dd=_0x2e77ca;return{'name':_0x478537[_0x1455dd('0x18')],'type':_0x478537['type'][_0x1455dd('0x6')]};});_0x398e20[_0x2e77ca('0x39')]=_[_0x2e77ca('0x4')](_0x58e475,'name'),_0x398e20['query']=_[_0x2e77ca('0x13')](_0x2d6c69['query']),_0x398e20[_0x2e77ca('0x33')]=_[_0x2e77ca('0x38')](_0x398e20[_0x2e77ca('0x39')],_0x398e20[_0x2e77ca('0x2b')]),_0x2a06ee[_0x2e77ca('0xd')]=_['intersection'](_0x398e20[_0x2e77ca('0x39')],qs[_0x2e77ca('0x1c')](_0x2d6c69[_0x2e77ca('0x2b')][_0x2e77ca('0x1c')])),_0x2a06ee[_0x2e77ca('0xd')]=_0x2a06ee[_0x2e77ca('0xd')]['length']?_0x2a06ee[_0x2e77ca('0xd')]:_0x398e20[_0x2e77ca('0x39')];typeof _0x2d6c69['query'][_0x2e77ca('0x35')]==='undefined'&&(_0x2a06ee[_0x2e77ca('0x7')]=qs[_0x2e77ca('0x7')](_0x2d6c69[_0x2e77ca('0x2b')]['limit']),_0x2a06ee[_0x2e77ca('0x1e')]=qs[_0x2e77ca('0x1e')](_0x2d6c69[_0x2e77ca('0x2b')][_0x2e77ca('0x1e')]));_0x2a06ee[_0x2e77ca('0x34')]=qs[_0x2e77ca('0x1f')](_0x2d6c69['query'][_0x2e77ca('0x1f')]),_0x2a06ee[_0x2e77ca('0x19')]=qs[_0x2e77ca('0x33')](_[_0x2e77ca('0x24')](_0x2d6c69[_0x2e77ca('0x2b')],_0x398e20[_0x2e77ca('0x33')]),_0x58e475);_0x2d6c69[_0x2e77ca('0x2b')][_0x2e77ca('0x12')]&&(_0x2a06ee[_0x2e77ca('0x19')]=_[_0x2e77ca('0x10')](_0x2a06ee['where'],{[Op['or']]:_['map'](_0x58e475,function(_0xd3d883){const _0x41eff8=_0x2e77ca;if(_0xd3d883[_0x41eff8('0x20')]!==_0x41eff8('0x9')){const _0x51f5dd={};return _0x51f5dd[_0xd3d883[_0x41eff8('0x2e')]]={[Op['like']]:'%'+_0x2d6c69[_0x41eff8('0x2b')][_0x41eff8('0x12')]+'%'},_0x51f5dd;}})}));_0x2a06ee=_[_0x2e77ca('0x10')]({},_0x2a06ee,_0x2d6c69[_0x2e77ca('0x26')]);const _0x1fff2b={'where':_0x2a06ee[_0x2e77ca('0x19')]};return db[_0x2e77ca('0x14')][_0x2e77ca('0xa')](_0x1fff2b)[_0x2e77ca('0xe')](function(_0x489033){const _0x55fb3b=_0x2e77ca;return _0x1da774[_0x55fb3b('0xa')]=_0x489033,_0x2d6c69[_0x55fb3b('0x2b')][_0x55fb3b('0x16')]&&(_0x2a06ee[_0x55fb3b('0x3e')]=[{'all':!![]}]),db['VoiceMail'][_0x55fb3b('0x5')](_0x2a06ee);})[_0x2e77ca('0xe')](function(_0xeb5d68){const _0xd8ed37=_0x2e77ca;return _0x1da774[_0xd8ed37('0xc')]=_0xeb5d68,_0x1da774;})[_0x2e77ca('0xe')](respondWithFilteredResult(_0x338a5a,_0x2a06ee))[_0x2e77ca('0x11')](handleError(_0x338a5a,null));},exports[_0x94a85a('0x8')]=function(_0x1f27a1,_0x18fe2a){const _0x4aeebb=_0x94a85a;let _0x4c2031={'raw':!![],'where':{'id':_0x1f27a1[_0x4aeebb('0x2d')]['id']}};const _0x4e3486={};return _0x4e3486[_0x4aeebb('0x39')]=_[_0x4aeebb('0x13')](db[_0x4aeebb('0x14')][_0x4aeebb('0x3d')]),_0x4e3486['query']=_['keys'](_0x1f27a1['query']),_0x4e3486[_0x4aeebb('0x33')]=_['intersection'](_0x4e3486['model'],_0x4e3486[_0x4aeebb('0x2b')]),_0x4c2031[_0x4aeebb('0xd')]=_['intersection'](_0x4e3486['model'],qs[_0x4aeebb('0x1c')](_0x1f27a1[_0x4aeebb('0x2b')]['fields'])),_0x4c2031['attributes']=_0x4c2031['attributes'][_0x4aeebb('0x1')]?_0x4c2031['attributes']:_0x4e3486[_0x4aeebb('0x39')],_0x1f27a1[_0x4aeebb('0x2b')]['includeAll']&&(_0x4c2031['include']=[{'all':!![]}]),_0x4c2031=_[_0x4aeebb('0x10')]({},_0x4c2031,_0x1f27a1[_0x4aeebb('0x26')]),db[_0x4aeebb('0x14')][_0x4aeebb('0x1d')](_0x4c2031)[_0x4aeebb('0xe')](handleEntityNotFound(_0x18fe2a,null))[_0x4aeebb('0xe')](respondWithResult(_0x18fe2a,null))['catch'](handleError(_0x18fe2a,null));},exports[_0x94a85a('0x17')]=function(_0x3fd1f5,_0x2eb70a){const _0x3abadf=_0x94a85a;return db[_0x3abadf('0x14')][_0x3abadf('0x17')](_0x3fd1f5[_0x3abadf('0x42')],{})[_0x3abadf('0xe')](function(_0x170b5a){const _0x4e536f=_0x3abadf,_0x2b8117=_0x3fd1f5[_0x4e536f('0x43')][_0x4e536f('0x3a')]({'plain':!![]});if(!_0x2b8117)throw new Error(_0x4e536f('0x15'));if(_0x2b8117['role']===_0x4e536f('0x43')){const _0x57208a=_0x170b5a['get']({'plain':!![]}),_0xf609c8=_0x4e536f('0x1a');return db[_0x4e536f('0x21')][_0x4e536f('0x1d')]({'where':{'name':_0xf609c8,'userProfileId':_0x2b8117[_0x4e536f('0x2c')]},'raw':!![]})['then'](function(_0x1a668c){const _0x4278a4=_0x4e536f;return _0x1a668c&&_0x1a668c[_0x4278a4('0x37')]===0x0?db[_0x4278a4('0xf')][_0x4278a4('0x17')]({'name':_0x57208a[_0x4278a4('0x2e')],'resourceId':_0x57208a['id'],'type':_0x1a668c[_0x4278a4('0x2e')],'sectionId':_0x1a668c['id']},{})['then'](function(){return _0x170b5a;}):_0x170b5a;})[_0x4e536f('0x11')](function(_0x55be2c){const _0x3fbce5=_0x4e536f;logger[_0x3fbce5('0x29')](_0x3fbce5('0x3c'),_0x55be2c);throw _0x55be2c;});}return _0x170b5a;})[_0x3abadf('0xe')](respondWithResult(_0x2eb70a,0xc9))[_0x3abadf('0x11')](handleError(_0x2eb70a,null));},exports[_0x94a85a('0x31')]=function(_0x2b1e2f,_0x444abe){const _0x5b14f3=_0x94a85a;return _0x2b1e2f[_0x5b14f3('0x42')]['id']&&delete _0x2b1e2f['body']['id'],db['VoiceMail'][_0x5b14f3('0x1d')]({'where':{'id':_0x2b1e2f[_0x5b14f3('0x2d')]['id']}})[_0x5b14f3('0xe')](handleEntityNotFound(_0x444abe,null))[_0x5b14f3('0xe')](saveUpdates(_0x2b1e2f[_0x5b14f3('0x42')],null))[_0x5b14f3('0xe')](respondWithResult(_0x444abe,null))[_0x5b14f3('0x11')](handleError(_0x444abe,null));},exports[_0x94a85a('0x0')]=function(_0x14d079,_0x8f9ec2){const _0x594148=_0x94a85a;return db[_0x594148('0x14')]['findOne']({'where':{'id':_0x14d079['params']['id']}})[_0x594148('0xe')](handleEntityNotFound(_0x8f9ec2,null))['then'](removeEntity(_0x8f9ec2,null))[_0x594148('0x11')](handleError(_0x8f9ec2,null));},exports[_0x94a85a('0x30')]=function(_0x21c33e,_0x191532){const _0x5a9191=_0x94a85a;return db[_0x5a9191('0x14')]['findOne']({'where':{'id':_0x21c33e[_0x5a9191('0x2d')]['id']}})[_0x5a9191('0xe')](handleEntityNotFound(_0x191532,null))[_0x5a9191('0xe')](function(_0x125604){const _0x10a767=_0x5a9191;let _0x209ee8={};const _0x34827f={};return _0x34827f[_0x10a767('0x39')]=_['keys'](db[_0x10a767('0x32')]['rawAttributes']),_0x34827f[_0x10a767('0x2b')]=_[_0x10a767('0x13')](_0x21c33e[_0x10a767('0x2b')]),_0x34827f['filters']=_[_0x10a767('0x38')](_0x34827f['model'],_0x34827f[_0x10a767('0x2b')]),_0x209ee8[_0x10a767('0xd')]=_[_0x10a767('0x38')](_0x34827f['model'],qs[_0x10a767('0x1c')](_0x21c33e[_0x10a767('0x2b')][_0x10a767('0x1c')])),_0x209ee8['attributes']=_0x209ee8[_0x10a767('0xd')]['length']?_0x209ee8[_0x10a767('0xd')]:_0x34827f[_0x10a767('0x39')],typeof _0x21c33e[_0x10a767('0x2b')][_0x10a767('0x35')]===_0x10a767('0x3f')&&(_0x209ee8['limit']=qs[_0x10a767('0x7')](_0x21c33e[_0x10a767('0x2b')]['limit']),_0x209ee8[_0x10a767('0x1e')]=qs[_0x10a767('0x1e')](_0x21c33e[_0x10a767('0x2b')]['offset'])),_0x209ee8['order']=qs[_0x10a767('0x1f')](_0x21c33e['query'][_0x10a767('0x1f')]),_0x209ee8[_0x10a767('0x19')]=qs[_0x10a767('0x33')](_['pick'](_0x21c33e[_0x10a767('0x2b')],_0x34827f[_0x10a767('0x33')])),_0x21c33e[_0x10a767('0x2b')]['filter']&&(_0x209ee8[_0x10a767('0x19')]=_[_0x10a767('0x10')](_0x209ee8[_0x10a767('0x19')],{[Op['or']]:_[_0x10a767('0x4')](_0x209ee8[_0x10a767('0xd')],function(_0x56c4b9){const _0x547f26=_0x10a767,_0x48f1ef={};return _0x48f1ef[_0x56c4b9]={[Op[_0x547f26('0x41')]]:'%'+_0x21c33e[_0x547f26('0x2b')][_0x547f26('0x12')]+'%'},_0x48f1ef;})})),_0x209ee8['where']=_['merge'](_0x209ee8[_0x10a767('0x19')],{'mailboxuser':_0x125604[_0x10a767('0x1b')]}),_0x209ee8=_[_0x10a767('0x10')]({},_0x209ee8,_0x21c33e[_0x10a767('0x26')]),db[_0x10a767('0x32')][_0x10a767('0x36')](_0x209ee8)[_0x10a767('0xe')](respondWithFilteredResult(_0x191532,_0x209ee8));})['catch'](handleError(_0x191532,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 44586b1..4e90ec6 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a735_0xa2f1=['mailbox','mailbox_context','VoiceMail','voice_voicemail','define','exports','context'];(function(_0x44d4af,_0xa2f109){const _0x230617=function(_0x302dfc){while(--_0x302dfc){_0x44d4af['push'](_0x44d4af['shift']());}};_0x230617(++_0xa2f109);}(a735_0xa2f1,0xad));const a735_0x2306=function(_0x44d4af,_0xa2f109){_0x44d4af=_0x44d4af-0x0;let _0x230617=a735_0xa2f1[_0x44d4af];return _0x230617;};const _0x50d351=a735_0x2306;'use strict';const attributes=require('./voiceMail.attributes');module[_0x50d351('0x0')]=function(_0x302dfc){const _0x1b6885=_0x50d351,_0x532ad2=_0x302dfc[_0x1b6885('0x6')](_0x1b6885('0x4'),attributes,{'tableName':_0x1b6885('0x5'),'paranoid':![],'indexes':[{'name':_0x1b6885('0x3'),'fields':[_0x1b6885('0x2'),_0x1b6885('0x1')]}],'timestamps':!![]});return _0x532ad2;}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 983c58d..44508ba 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a736_0x4429=['/:id','show','express','update','get','Router','isAuthenticated','create','exports','post','download','destroy','delete','index','/:id/download','../../components/auth/service'];(function(_0x9b9bef,_0x44291d){const _0x28c2ab=function(_0x15a999){while(--_0x15a999){_0x9b9bef['push'](_0x9b9bef['shift']());}};_0x28c2ab(++_0x44291d);}(a736_0x4429,0x175));const a736_0x28c2=function(_0x9b9bef,_0x44291d){_0x9b9bef=_0x9b9bef-0x0;let _0x28c2ab=a736_0x4429[_0x9b9bef];return _0x28c2ab;};const _0xc874ed=a736_0x28c2;'use strict';const express=require(_0xc874ed('0xd')),router=express[_0xc874ed('0x0')](),auth=require(_0xc874ed('0xa')),controller=require('./voiceMailMessage.controller');router[_0xc874ed('0xf')]('/',auth[_0xc874ed('0x1')](),controller[_0xc874ed('0x8')]),router[_0xc874ed('0xf')](_0xc874ed('0xb'),auth['isAuthenticated'](),controller[_0xc874ed('0xc')]),router[_0xc874ed('0xf')](_0xc874ed('0x9'),auth[_0xc874ed('0x1')](),controller[_0xc874ed('0x5')]),router[_0xc874ed('0x4')]('/',auth['isAuthenticated'](),controller[_0xc874ed('0x2')]),router['put'](_0xc874ed('0xb'),auth[_0xc874ed('0x1')](),controller[_0xc874ed('0xe')]),router[_0xc874ed('0x7')](_0xc874ed('0xb'),auth[_0xc874ed('0x1')](),controller[_0xc874ed('0x6')]),module[_0xc874ed('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index ed4c0db..9d40d3f 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a737_0x5708=['VIRTUAL','getDataValue','long','STRING','BLOB','exports','INTEGER'];(function(_0x1686a2,_0x570896){const _0x456c9b=function(_0x5f24ac){while(--_0x5f24ac){_0x1686a2['push'](_0x1686a2['shift']());}};_0x456c9b(++_0x570896);}(a737_0x5708,0xa1));const a737_0x456c=function(_0x1686a2,_0x570896){_0x1686a2=_0x1686a2-0x0;let _0x456c9b=a737_0x5708[_0x1686a2];return _0x456c9b;};const _0x14a3aa=a737_0x456c;'use strict';const Sequelize=require('sequelize');module[_0x14a3aa('0x5')]={'name':{'type':Sequelize[_0x14a3aa('0x0')],'get':function(){const _0x1edecf=_0x14a3aa;return this[_0x1edecf('0x1')]('id');}},'msgnum':{'type':Sequelize[_0x14a3aa('0x6')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'context':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'macrocontext':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'callerid':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'origtime':{'type':Sequelize['STRING'],'defaultValue':''},'duration':{'type':Sequelize['STRING'],'defaultValue':''},'mailboxuser':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'mailboxcontext':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'recording':{'type':Sequelize[_0x14a3aa('0x4')](_0x14a3aa('0x2')),'defaultValue':null},'flag':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'msg_id':{'type':Sequelize[_0x14a3aa('0x3')],'defaultValue':''},'stamp':{'type':'TIMESTAMP','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index e83e846..eef6930 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a738_0x1b3c=['msg_id','query','order','catch','type','offset','rows','attachment','pick','json','send','api','VoiceMailMessage\x20not\x20found','fields','model','include','like','params','../../components/parsers/qs','lodash','VoiceMailMessage','count','rawAttributes','set','findOne','end','Content-Range','create','intersection','../../mysqldb','name','sendStatus','limit','options','length','status','key','destroy','where','show','recording','merge','sequelize','then','findAll','keys','from','includeAll','sort','update','filters','map','attributes','filter','attachment;\x20filename=\x22','Content-Disposition','stack','body','audio/wav'];(function(_0x1bfd5d,_0x1b3cf3){const _0x4fdc31=function(_0x1a2d59){while(--_0x1a2d59){_0x1bfd5d['push'](_0x1bfd5d['shift']());}};_0x4fdc31(++_0x1b3cf3);}(a738_0x1b3c,0x10e));const a738_0x4fdc=function(_0x1bfd5d,_0x1b3cf3){_0x1bfd5d=_0x1bfd5d-0x0;let _0x4fdc31=a738_0x1b3c[_0x1bfd5d];return _0x4fdc31;};const _0x50d162=a738_0x4fdc;'use strict';const _=require(_0x50d162('0x2c')),qs=require(_0x50d162('0x2b')),logger=require('../../config/logger')(_0x50d162('0x24')),db=require(_0x50d162('0x36'))['db'],{Op,ValidationError}=require(_0x50d162('0x8'));function respondWithResult(_0x1a2d59,_0x389c2c){return _0x389c2c=_0x389c2c||0xc8,function(_0x8a88d2){const _0x2000a3=a738_0x4fdc;if(_0x8a88d2)return _0x1a2d59[_0x2000a3('0x1')](_0x389c2c)['json'](_0x8a88d2);};}function respondWithFilteredResult(_0x2b7e05,_0x34e660){return function(_0x5b4e2f){const _0x2cb0dd=a738_0x4fdc;if(_0x5b4e2f){const _0x15c621=_0x5b4e2f[_0x2cb0dd('0x2e')],_0x18e923=_0x34e660[_0x2cb0dd('0x1e')];let _0x1f1139=_0x34e660[_0x2cb0dd('0x1e')]+_0x34e660[_0x2cb0dd('0x39')],_0x1253d4;return _0x1f1139>=_0x15c621?(_0x1f1139=_0x15c621,_0x1253d4=0xc8):_0x1253d4=0xce,_0x2b7e05['status'](_0x1253d4),_0x2b7e05[_0x2cb0dd('0x30')](_0x2cb0dd('0x33'),_0x18e923+'-'+_0x1f1139+'/'+_0x15c621)[_0x2cb0dd('0x22')](_0x5b4e2f);}return null;};}function saveUpdates(_0x5b8848){return function(_0x9ea0cb){const _0x557df6=a738_0x4fdc;if(_0x9ea0cb)return _0x9ea0cb[_0x557df6('0xf')](_0x5b8848)['then'](function(_0x2a5294){return _0x2a5294;});return null;};}function removeEntity(_0x2da81b){return function(_0x258003){const _0x5ccac7=a738_0x4fdc;if(_0x258003)return _0x258003[_0x5ccac7('0x3')]()[_0x5ccac7('0x9')](function(){const _0x2c7f69=_0x5ccac7;_0x2da81b[_0x2c7f69('0x1')](0xcc)[_0x2c7f69('0x32')]();});};}function handleEntityNotFound(_0x417a9d){return function(_0x4ce1bb){const _0xb81af3=a738_0x4fdc;return!_0x4ce1bb&&_0x417a9d[_0xb81af3('0x38')](0x194),_0x4ce1bb;};}function handleError(_0x54bb96,_0x29b753){return _0x29b753=_0x29b753||0x1f4,function(_0x2735da){const _0x50a27b=a738_0x4fdc;logger['error'](_0x2735da[_0x50a27b('0x16')]),_0x2735da[_0x50a27b('0x37')]&&delete _0x2735da[_0x50a27b('0x37')],_0x54bb96[_0x50a27b('0x1')](_0x29b753)['send'](_0x2735da);};}exports['index']=function(_0x1bba01,_0x267b1e){const _0x2b0f28=_0x50d162;let _0x486c2b={};const _0x489e88={},_0x79959e={'count':0x0,'rows':[]},_0x3d34cf=_['map'](db['VoiceMailMessage'][_0x2b0f28('0x2f')],function(_0x46682a){const _0x3e2b2e=_0x2b0f28;return{'name':_0x46682a['fieldName'],'type':_0x46682a[_0x3e2b2e('0x1d')][_0x3e2b2e('0x2')]};});_0x489e88[_0x2b0f28('0x27')]=_['differenceBy'](_[_0x2b0f28('0x11')](_0x3d34cf,_0x2b0f28('0x37')),['name']),_0x489e88[_0x2b0f28('0x1a')]=_['keys'](_0x1bba01[_0x2b0f28('0x1a')]),_0x489e88[_0x2b0f28('0x10')]=_[_0x2b0f28('0x35')](_0x489e88[_0x2b0f28('0x27')],_0x489e88[_0x2b0f28('0x1a')]),_0x486c2b[_0x2b0f28('0x12')]=_['intersection'](_0x489e88[_0x2b0f28('0x27')],qs[_0x2b0f28('0x26')](_0x1bba01[_0x2b0f28('0x1a')][_0x2b0f28('0x26')])),_0x486c2b[_0x2b0f28('0x12')]=_0x486c2b[_0x2b0f28('0x12')][_0x2b0f28('0x0')]?_0x486c2b['attributes']:_0x489e88[_0x2b0f28('0x27')];typeof _0x1bba01[_0x2b0f28('0x1a')]['nolimit']==='undefined'&&(_0x486c2b[_0x2b0f28('0x39')]=qs['limit'](_0x1bba01[_0x2b0f28('0x1a')][_0x2b0f28('0x39')]),_0x486c2b[_0x2b0f28('0x1e')]=qs['offset'](_0x1bba01[_0x2b0f28('0x1a')][_0x2b0f28('0x1e')]));_0x486c2b[_0x2b0f28('0x1b')]=qs[_0x2b0f28('0xe')](_0x1bba01['query']['sort']),_0x486c2b[_0x2b0f28('0x4')]=qs[_0x2b0f28('0x10')](_[_0x2b0f28('0x21')](_0x1bba01[_0x2b0f28('0x1a')],_0x489e88[_0x2b0f28('0x10')]),_0x3d34cf);_0x1bba01[_0x2b0f28('0x1a')][_0x2b0f28('0x13')]&&(_0x486c2b[_0x2b0f28('0x4')]=_[_0x2b0f28('0x7')](_0x486c2b[_0x2b0f28('0x4')],{[Op['or']]:_['map'](_0x3d34cf,function(_0x26e67f){const _0x33e30a=_0x2b0f28;if(_0x26e67f[_0x33e30a('0x1d')]!=='VIRTUAL'){const _0x24d21a={};return _0x24d21a[_0x26e67f[_0x33e30a('0x37')]]={[Op[_0x33e30a('0x29')]]:'%'+_0x1bba01['query'][_0x33e30a('0x13')]+'%'},_0x24d21a;}})}));_0x486c2b=_[_0x2b0f28('0x7')]({},_0x486c2b,_0x1bba01[_0x2b0f28('0x3a')]);const _0x25ef9b={'where':_0x486c2b[_0x2b0f28('0x4')]};return db[_0x2b0f28('0x2d')][_0x2b0f28('0x2e')](_0x25ef9b)[_0x2b0f28('0x9')](function(_0x1e12eb){const _0x1d2fc1=_0x2b0f28;return _0x79959e[_0x1d2fc1('0x2e')]=_0x1e12eb,_0x1bba01[_0x1d2fc1('0x1a')][_0x1d2fc1('0xd')]&&(_0x486c2b['include']=[{'all':!![]}]),db[_0x1d2fc1('0x2d')][_0x1d2fc1('0xa')](_0x486c2b);})[_0x2b0f28('0x9')](function(_0x1feccc){const _0x5740ca=_0x2b0f28;return _0x79959e[_0x5740ca('0x1f')]=_0x1feccc,_0x79959e;})[_0x2b0f28('0x9')](respondWithFilteredResult(_0x267b1e,_0x486c2b))[_0x2b0f28('0x1c')](handleError(_0x267b1e,null));},exports[_0x50d162('0x5')]=function(_0x4dd790,_0x21f31a){const _0x1626a9=_0x50d162;let _0x4785c1={'raw':!![],'where':{'id':_0x4dd790['params']['id']}};const _0x3539aa={};return _0x3539aa[_0x1626a9('0x27')]=_[_0x1626a9('0xb')](db['VoiceMailMessage']['rawAttributes']),_0x3539aa['query']=_['keys'](_0x4dd790[_0x1626a9('0x1a')]),_0x3539aa['filters']=_[_0x1626a9('0x35')](_0x3539aa[_0x1626a9('0x27')],_0x3539aa['query']),_0x4785c1[_0x1626a9('0x12')]=_['intersection'](_0x3539aa[_0x1626a9('0x27')],qs[_0x1626a9('0x26')](_0x4dd790[_0x1626a9('0x1a')][_0x1626a9('0x26')])),_0x4785c1[_0x1626a9('0x12')]=_0x4785c1[_0x1626a9('0x12')][_0x1626a9('0x0')]?_0x4785c1['attributes']:_0x3539aa['model'],_0x4dd790[_0x1626a9('0x1a')]['includeAll']&&(_0x4785c1[_0x1626a9('0x28')]=[{'all':!![]}]),_0x4785c1=_['merge']({},_0x4785c1,_0x4dd790['options']),db[_0x1626a9('0x2d')]['findOne'](_0x4785c1)[_0x1626a9('0x9')](handleEntityNotFound(_0x21f31a,null))['then'](respondWithResult(_0x21f31a,null))[_0x1626a9('0x1c')](handleError(_0x21f31a,null));},exports[_0x50d162('0x34')]=function(_0xe31954,_0x554f0a){const _0x568983=_0x50d162;return db[_0x568983('0x2d')]['create'](_0xe31954['body'],{})[_0x568983('0x9')](respondWithResult(_0x554f0a,0xc9))['catch'](handleError(_0x554f0a,null));},exports[_0x50d162('0xf')]=function(_0x1b86a5,_0x1e113b){const _0x7b34d3=_0x50d162;return _0x1b86a5[_0x7b34d3('0x17')]['id']&&delete _0x1b86a5['body']['id'],db[_0x7b34d3('0x2d')]['findOne']({'where':{'id':_0x1b86a5['params']['id']}})['then'](handleEntityNotFound(_0x1e113b,null))[_0x7b34d3('0x9')](saveUpdates(_0x1b86a5['body'],null))['then'](respondWithResult(_0x1e113b,null))['catch'](handleError(_0x1e113b,null));},exports[_0x50d162('0x3')]=function(_0x564423,_0x2fa9e8){const _0x2c8b82=_0x50d162;return db['VoiceMailMessage']['findOne']({'where':{'id':_0x564423[_0x2c8b82('0x2a')]['id']}})[_0x2c8b82('0x9')](handleEntityNotFound(_0x2fa9e8,null))[_0x2c8b82('0x9')](removeEntity(_0x2fa9e8,null))[_0x2c8b82('0x1c')](handleError(_0x2fa9e8,null));},exports['download']=function(_0xc56828,_0x21f69f){const _0x51bac4=_0x50d162;return db[_0x51bac4('0x2d')][_0x51bac4('0x31')]({'where':{'id':_0xc56828[_0x51bac4('0x2a')]['id']},'attributes':['id',_0x51bac4('0x6'),'msg_id']})[_0x51bac4('0x9')](handleEntityNotFound(_0x21f69f,null))['then'](function(_0x44200e){const _0xfacf2a=_0x51bac4;if(_0x44200e){if(!_0x44200e[_0xfacf2a('0x6')])throw new ValidationError(_0xfacf2a('0x25'));const _0x5302ac={'Content-Type':_0xfacf2a('0x18'),'Content-Disposition':_0xfacf2a('0x20')};return _0x44200e[_0xfacf2a('0x19')]&&(_0x5302ac[_0xfacf2a('0x15')]=_0xfacf2a('0x14')+_0x44200e['msg_id']+'.wav\x22'),_0x21f69f['set'](_0x5302ac),_0x21f69f[_0xfacf2a('0x23')](Buffer[_0xfacf2a('0xc')](_0x44200e[_0xfacf2a('0x6')]));}})[_0x51bac4('0x1c')](handleError(_0x21f69f,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index 073aa0a..eb1b13c 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a739_0x41fc=['./voiceMailMessage.attributes','dir','voice_voicemail_messages','define','VoiceMailMessage'];(function(_0x4ae585,_0x41fc3b){const _0x501093=function(_0x325274){while(--_0x325274){_0x4ae585['push'](_0x4ae585['shift']());}};_0x501093(++_0x41fc3b);}(a739_0x41fc,0x135));const a739_0x5010=function(_0x4ae585,_0x41fc3b){_0x4ae585=_0x4ae585-0x0;let _0x501093=a739_0x41fc[_0x4ae585];return _0x501093;};const _0x242e57=a739_0x5010;'use strict';const attributes=require(_0x242e57('0x1'));module['exports']=function(_0x325274){const _0x138e8e=_0x242e57,_0x240108=_0x325274[_0x138e8e('0x4')](_0x138e8e('0x0'),attributes,{'tableName':_0x138e8e('0x3'),'paranoid':![],'indexes':[{'name':_0x138e8e('0x2'),'fields':[_0x138e8e('0x2')]}],'timestamps':![]});return _0x240108;}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index e267bba..1beeb37 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a740_0x343f=['delete','../../components/auth/service','Router','getSounds','/:id/sounds','/:id','destroy','addSound','isAuthenticated','removeSound','post','exports','show','create','index','get','/:id/sounds/:id2'];(function(_0x8242cc,_0x343f50){const _0x273db0=function(_0x4a2c38){while(--_0x4a2c38){_0x8242cc['push'](_0x8242cc['shift']());}};_0x273db0(++_0x343f50);}(a740_0x343f,0x75));const a740_0x273d=function(_0x8242cc,_0x343f50){_0x8242cc=_0x8242cc-0x0;let _0x273db0=a740_0x343f[_0x8242cc];return _0x273db0;};const _0x4c7de8=a740_0x273d;'use strict';const express=require('express'),router=express[_0x4c7de8('0x4')](),auth=require(_0x4c7de8('0x3')),controller=require('./voiceMusicOnHold.controller');router[_0x4c7de8('0x0')]('/',auth[_0x4c7de8('0xa')](),controller[_0x4c7de8('0x10')]),router[_0x4c7de8('0x0')](_0x4c7de8('0x7'),auth['isAuthenticated'](),controller[_0x4c7de8('0xe')]),router[_0x4c7de8('0x0')](_0x4c7de8('0x6'),auth['isAuthenticated'](),controller[_0x4c7de8('0x5')]),router[_0x4c7de8('0xc')]('/',auth['isAuthenticated'](),controller[_0x4c7de8('0xf')]),router[_0x4c7de8('0xc')]('/:id/sounds',auth[_0x4c7de8('0xa')](),controller[_0x4c7de8('0x9')]),router['put'](_0x4c7de8('0x7'),auth[_0x4c7de8('0xa')](),controller['update']),router['delete']('/:id',auth[_0x4c7de8('0xa')](),controller[_0x4c7de8('0x8')]),router[_0x4c7de8('0x2')](_0x4c7de8('0x1'),auth['isAuthenticated'](),controller[_0x4c7de8('0xb')]),module[_0x4c7de8('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index 807a64e..433c7bd 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a741_0x32fd=['exports','custom','sequelize','files','mp3','mp3nb','quietmp3nb','quietmp3','alpha','TIMESTAMP','BOOLEAN','ENUM','STRING'];(function(_0x46d8c1,_0x32fd8f){const _0x5aadb9=function(_0x21cc7f){while(--_0x21cc7f){_0x46d8c1['push'](_0x46d8c1['shift']());}};_0x5aadb9(++_0x32fd8f);}(a741_0x32fd,0x18f));const a741_0x5aad=function(_0x46d8c1,_0x32fd8f){_0x46d8c1=_0x46d8c1-0x0;let _0x5aadb9=a741_0x32fd[_0x46d8c1];return _0x5aadb9;};const _0x1deecc=a741_0x5aad;'use strict';const Sequelize=require(_0x1deecc('0x6'));module[_0x1deecc('0x4')]={'name':{'type':Sequelize[_0x1deecc('0x3')],'allowNull':![],'unique':'name'},'mode':{'type':Sequelize[_0x1deecc('0x2')](_0x1deecc('0x5'),_0x1deecc('0x7'),_0x1deecc('0x9'),_0x1deecc('0xa'),_0x1deecc('0xb'),_0x1deecc('0x8')),'allowNull':!![],'defaultValue':'files'},'directory':{'type':Sequelize[_0x1deecc('0x3')],'allowNull':!![]},'application':{'type':Sequelize['STRING'],'allowNull':!![]},'digit':{'type':Sequelize[_0x1deecc('0x3')],'allowNull':!![]},'sort':{'type':Sequelize[_0x1deecc('0x3')],'allowNull':!![],'defaultValue':_0x1deecc('0xc')},'format':{'type':Sequelize[_0x1deecc('0x3')],'allowNull':!![]},'stamp':{'type':_0x1deecc('0x0')},'defaultEntry':{'type':Sequelize[_0x1deecc('0x1')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js index 1bec926..068d076 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a742_0x438b=['keys','autoAssociation','rows','fieldName','then','0777','format','sequelize','body','stack','userProfileId','merge','name','server/files/sounds/converted','includeAll','nolimit','length','sendStatus','pick','show','model','query','create','limit','undefined','mkdirSync','like','filter','root','attributes','filters','lodash','destroy','count','offset','index','MusicOnHolds','addSound','converted_format','mode','order','params','get','directory','../../components/parsers/qs','map','%s.%s','../../config/logger','unlinkSync','catch','findOne','update','rawAttributes','message','extname','util','error','user','UserProfileSection','set','Unable\x20to\x20retrieve\x20the\x20current\x20user','Content-Range','type','files','server/files/moh','VoiceMusicOnHold','end','key','getSounds','intersection','findAll','include','UserProfileResource','save_name','rmdirSync','readdirSync','role','json','transaction','status','sort','../../config/environment','where','removeSound','options','VIRTUAL','Sound','fields','id2','join'];(function(_0x14cbd9,_0x438b52){const _0x22796a=function(_0x285c2b){while(--_0x285c2b){_0x14cbd9['push'](_0x14cbd9['shift']());}};_0x22796a(++_0x438b52);}(a742_0x438b,0x1ee));const a742_0x2279=function(_0x14cbd9,_0x438b52){_0x14cbd9=_0x14cbd9-0x0;let _0x22796a=a742_0x438b[_0x14cbd9];return _0x22796a;};const _0x3015ba=a742_0x2279;'use strict';const util=require(_0x3015ba('0xb')),path=require('path'),fs=require('fs'),_=require(_0x3015ba('0x4d')),qs=require(_0x3015ba('0x0')),logger=require(_0x3015ba('0x3'))('api'),config=require(_0x3015ba('0x25')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require('sequelize');function respondWithStatusCode(_0x285c2b,_0x5489f3){return _0x5489f3=_0x5489f3||0xcc,function(_0x2f4252){const _0xeebcd8=a742_0x2279;if(_0x2f4252)return _0x285c2b[_0xeebcd8('0x3f')](_0x5489f3);return _0x285c2b['status'](_0x5489f3)[_0xeebcd8('0x16')]();};}function respondWithResult(_0x896755,_0x273551){return _0x273551=_0x273551||0xc8,function(_0x394a27){const _0x5c1e19=a742_0x2279;if(_0x394a27)return _0x896755[_0x5c1e19('0x23')](_0x273551)['json'](_0x394a27);};}function respondWithFilteredResult(_0x740568,_0x3ad891){return function(_0x449c8f){const _0x1c7375=a742_0x2279;if(_0x449c8f){const _0x310c17=_0x449c8f[_0x1c7375('0x4f')],_0x2c4d46=_0x3ad891[_0x1c7375('0x50')];let _0x116461=_0x3ad891[_0x1c7375('0x50')]+_0x3ad891[_0x1c7375('0x45')],_0x45ab67;return _0x116461>=_0x310c17?(_0x116461=_0x310c17,_0x45ab67=0xc8):_0x45ab67=0xce,_0x740568[_0x1c7375('0x23')](_0x45ab67),_0x740568[_0x1c7375('0xf')](_0x1c7375('0x11'),_0x2c4d46+'-'+_0x116461+'/'+_0x310c17)[_0x1c7375('0x21')](_0x449c8f);}return null;};}function saveUpdates(_0xde899a){return function(_0x2dc464){const _0x55bbde=a742_0x2279;if(_0x2dc464)return _0x2dc464[_0x55bbde('0x7')](_0xde899a)['then'](function(_0x5c1505){return _0x5c1505;});return null;};}function removeEntity(_0x1c4bd4){return function(_0x38dcd1){const _0x5644d2=a742_0x2279;if(_0x38dcd1)return _0x38dcd1[_0x5644d2('0x4e')]()[_0x5644d2('0x32')](function(){const _0x5d4dc5=_0x5644d2,_0x53cd63=_0x38dcd1[_0x5d4dc5('0x58')]({'plain':!![]}),_0x572fbd=_0x5d4dc5('0x52');return db[_0x5d4dc5('0x1c')][_0x5d4dc5('0x4e')]({'where':{'type':_0x572fbd,'resourceId':_0x53cd63['id']}})['then'](function(){return _0x38dcd1;});})['then'](function(){const _0x8c60d6=_0x5644d2;_0x1c4bd4[_0x8c60d6('0x23')](0xcc)[_0x8c60d6('0x16')]();});};}function handleEntityNotFound(_0x1ce436){return function(_0x34f300){return!_0x34f300&&_0x1ce436['sendStatus'](0x194),_0x34f300;};}function handleError(_0x439e48,_0x25cf62){return _0x25cf62=_0x25cf62||0x1f4,function(_0x1120f3){const _0x3c9dcc=a742_0x2279;logger[_0x3c9dcc('0xc')](_0x1120f3[_0x3c9dcc('0x37')]),_0x1120f3[_0x3c9dcc('0x3a')]&&delete _0x1120f3['name'],_0x439e48[_0x3c9dcc('0x23')](_0x25cf62)['send'](_0x1120f3);};}exports[_0x3015ba('0x51')]=function(_0xbdf228,_0x40581e){const _0x44e5e2=_0x3015ba;let _0x572be8={};const _0x26863f={},_0x10b398={'count':0x0,'rows':[]},_0x4c4a56=_[_0x44e5e2('0x1')](db[_0x44e5e2('0x15')][_0x44e5e2('0x8')],function(_0x32ba3a){const _0x493e63=_0x44e5e2;return{'name':_0x32ba3a[_0x493e63('0x31')],'type':_0x32ba3a['type'][_0x493e63('0x17')]};});_0x26863f['model']=_[_0x44e5e2('0x1')](_0x4c4a56,'name'),_0x26863f[_0x44e5e2('0x43')]=_[_0x44e5e2('0x2e')](_0xbdf228[_0x44e5e2('0x43')]),_0x26863f['filters']=_[_0x44e5e2('0x19')](_0x26863f[_0x44e5e2('0x42')],_0x26863f[_0x44e5e2('0x43')]),_0x572be8[_0x44e5e2('0x4b')]=_[_0x44e5e2('0x19')](_0x26863f[_0x44e5e2('0x42')],qs[_0x44e5e2('0x2b')](_0xbdf228[_0x44e5e2('0x43')]['fields'])),_0x572be8[_0x44e5e2('0x4b')]=_0x572be8[_0x44e5e2('0x4b')][_0x44e5e2('0x3e')]?_0x572be8['attributes']:_0x26863f['model'];typeof _0xbdf228[_0x44e5e2('0x43')][_0x44e5e2('0x3d')]===_0x44e5e2('0x46')&&(_0x572be8['limit']=qs[_0x44e5e2('0x45')](_0xbdf228[_0x44e5e2('0x43')][_0x44e5e2('0x45')]),_0x572be8[_0x44e5e2('0x50')]=qs[_0x44e5e2('0x50')](_0xbdf228[_0x44e5e2('0x43')]['offset']));_0x572be8[_0x44e5e2('0x56')]=qs[_0x44e5e2('0x24')](_0xbdf228['query'][_0x44e5e2('0x24')]),_0x572be8[_0x44e5e2('0x26')]=qs[_0x44e5e2('0x4c')](_['pick'](_0xbdf228['query'],_0x26863f[_0x44e5e2('0x4c')]),_0x4c4a56);_0xbdf228[_0x44e5e2('0x43')]['filter']&&(_0x572be8['where']=_[_0x44e5e2('0x39')](_0x572be8[_0x44e5e2('0x26')],{[Op['or']]:_[_0x44e5e2('0x1')](_0x4c4a56,function(_0x2b5d83){const _0x2dd3ec=_0x44e5e2;if(_0x2b5d83[_0x2dd3ec('0x12')]!==_0x2dd3ec('0x29')){const _0x7d187a={};return _0x7d187a[_0x2b5d83[_0x2dd3ec('0x3a')]]={[Op[_0x2dd3ec('0x48')]]:'%'+_0xbdf228[_0x2dd3ec('0x43')]['filter']+'%'},_0x7d187a;}})}));_0x572be8=_[_0x44e5e2('0x39')]({},_0x572be8,_0xbdf228[_0x44e5e2('0x28')]);const _0x5b2b21={'where':_0x572be8[_0x44e5e2('0x26')]};return db[_0x44e5e2('0x15')][_0x44e5e2('0x4f')](_0x5b2b21)[_0x44e5e2('0x32')](function(_0x5ebd08){const _0x336f8f=_0x44e5e2;return _0x10b398[_0x336f8f('0x4f')]=_0x5ebd08,_0xbdf228[_0x336f8f('0x43')][_0x336f8f('0x3c')]&&(_0x572be8[_0x336f8f('0x1b')]=[{'all':!![]}]),db[_0x336f8f('0x15')][_0x336f8f('0x1a')](_0x572be8);})[_0x44e5e2('0x32')](function(_0x1b66e9){const _0x2ad7f7=_0x44e5e2;return _0x10b398[_0x2ad7f7('0x30')]=_0x1b66e9,_0x10b398;})[_0x44e5e2('0x32')](respondWithFilteredResult(_0x40581e,_0x572be8))[_0x44e5e2('0x5')](handleError(_0x40581e,null));},exports[_0x3015ba('0x41')]=function(_0x51fc17,_0x5101af){const _0x506256=_0x3015ba;let _0x3009ff={'raw':![],'where':{'id':_0x51fc17['params']['id']}};const _0x1a58bf={};return _0x1a58bf[_0x506256('0x42')]=_['keys'](db[_0x506256('0x15')][_0x506256('0x8')]),_0x1a58bf[_0x506256('0x43')]=_['keys'](_0x51fc17['query']),_0x1a58bf['filters']=_[_0x506256('0x19')](_0x1a58bf[_0x506256('0x42')],_0x1a58bf[_0x506256('0x43')]),_0x3009ff['attributes']=_[_0x506256('0x19')](_0x1a58bf[_0x506256('0x42')],qs[_0x506256('0x2b')](_0x51fc17[_0x506256('0x43')]['fields'])),_0x3009ff[_0x506256('0x4b')]=_0x3009ff[_0x506256('0x4b')]['length']?_0x3009ff[_0x506256('0x4b')]:_0x1a58bf[_0x506256('0x42')],_0x51fc17[_0x506256('0x43')][_0x506256('0x3c')]&&(_0x3009ff[_0x506256('0x1b')]=[{'all':!![]}]),_0x3009ff=_['merge']({},_0x3009ff,_0x51fc17[_0x506256('0x28')]),db[_0x506256('0x15')][_0x506256('0x6')](_0x3009ff)[_0x506256('0x32')](handleEntityNotFound(_0x5101af,null))[_0x506256('0x32')](respondWithResult(_0x5101af,null))[_0x506256('0x5')](handleError(_0x5101af,null));},exports[_0x3015ba('0x7')]=function(_0x1d505d,_0x539394){const _0x55af4f=_0x3015ba;return _0x1d505d[_0x55af4f('0x36')]['id']&&delete _0x1d505d[_0x55af4f('0x36')]['id'],db[_0x55af4f('0x15')]['findOne']({'where':{'id':_0x1d505d[_0x55af4f('0x57')]['id']}})[_0x55af4f('0x32')](handleEntityNotFound(_0x539394,null))[_0x55af4f('0x32')](saveUpdates(_0x1d505d[_0x55af4f('0x36')],null))[_0x55af4f('0x32')](respondWithResult(_0x539394,null))['catch'](handleError(_0x539394,null));},exports[_0x3015ba('0x44')]=function(_0x37c814,_0x47603f){const _0x8ad43e=_0x3015ba;return db[_0x8ad43e('0x35')][_0x8ad43e('0x22')](function(_0x467ac1){const _0x4c2b5f=_0x8ad43e;return _0x37c814['body'][_0x4c2b5f('0x55')]===_0x4c2b5f('0x13')&&(_0x37c814[_0x4c2b5f('0x36')][_0x4c2b5f('0x59')]=path[_0x4c2b5f('0x2d')](config[_0x4c2b5f('0x4a')],'server/files/moh',_0x37c814[_0x4c2b5f('0x36')]['name'])),db['VoiceMusicOnHold'][_0x4c2b5f('0x44')](_0x37c814['body'],{'transaction':_0x467ac1})[_0x4c2b5f('0x32')](function(_0x21ae83){const _0x55cb11=_0x4c2b5f;_0x37c814[_0x55cb11('0x36')][_0x55cb11('0x55')]==='files'&&fs[_0x55cb11('0x47')](_0x21ae83[_0x55cb11('0x59')],parseInt(_0x55cb11('0x33'),0x8));const _0x2308c2=_0x37c814[_0x55cb11('0xd')][_0x55cb11('0x58')]({'plain':!![]});if(!_0x2308c2)throw new Error(_0x55cb11('0x10'));if(_0x2308c2[_0x55cb11('0x20')]===_0x55cb11('0xd')){const _0x4a4396=_0x21ae83['get']({'plain':!![]});return db[_0x55cb11('0xe')]['findOne']({'where':{'name':_0x55cb11('0x52'),'userProfileId':_0x2308c2[_0x55cb11('0x38')]},'raw':!![]})[_0x55cb11('0x32')](function(_0x4b0b4a){const _0x6c7d7f=_0x55cb11;return _0x4b0b4a&&_0x4b0b4a[_0x6c7d7f('0x2f')]===0x0?db[_0x6c7d7f('0x1c')][_0x6c7d7f('0x44')]({'name':_0x4a4396[_0x6c7d7f('0x3a')],'resourceId':_0x4a4396['id'],'type':_0x4b0b4a['name'],'sectionId':_0x4b0b4a['id']},{})[_0x6c7d7f('0x32')](function(){return _0x21ae83;}):_0x21ae83;})[_0x55cb11('0x5')](function(_0x5bca0e){const _0x526952=_0x55cb11;logger[_0x526952('0xc')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5bca0e);});}return _0x21ae83;});})[_0x8ad43e('0x32')](respondWithResult(_0x47603f,0xc9))[_0x8ad43e('0x5')](handleError(_0x47603f,null));},exports[_0x3015ba('0x4e')]=function(_0x444e3e,_0x2ec7dc){const _0x42ad1c=_0x3015ba;return db['VoiceMusicOnHold'][_0x42ad1c('0x6')]({'where':{'id':_0x444e3e['params']['id']}})[_0x42ad1c('0x32')](function(_0x415b3a){const _0x27cbf3=_0x42ad1c;if(_0x415b3a)return db['sequelize'][_0x27cbf3('0x22')](function(_0x48aea7){const _0x510ce9=_0x27cbf3;return _0x415b3a[_0x510ce9('0x4e')]({'transaction':_0x48aea7,'raw':!![]})[_0x510ce9('0x32')](function(_0x17f329){const _0x2bd86f=_0x510ce9;return _0x17f329['directory']&&(fs[_0x2bd86f('0x1f')](_0x17f329['directory'])['forEach'](function(_0x4ac95a){const _0x46ce3f=_0x2bd86f;fs[_0x46ce3f('0x4')](path[_0x46ce3f('0x2d')](_0x17f329['directory'],_0x4ac95a));}),fs[_0x2bd86f('0x1e')](_0x17f329[_0x2bd86f('0x59')])),_0x17f329;});})[_0x27cbf3('0x5')](function(_0x124b4b){const _0x56cef1=_0x27cbf3;throw new ValidationError(_0x124b4b[_0x56cef1('0x9')]);});})[_0x42ad1c('0x32')](handleEntityNotFound(_0x2ec7dc,null))[_0x42ad1c('0x32')](removeEntity(_0x2ec7dc,null))[_0x42ad1c('0x5')](handleError(_0x2ec7dc,null));},exports[_0x3015ba('0x53')]=function(_0xa75042,_0x7b8d5b){const _0x31a81d=_0x3015ba;return db[_0x31a81d('0x35')]['transaction'](function(_0x5a5b38){const _0x62f185=_0x31a81d;let _0x2e3328;return db[_0x62f185('0x15')][_0x62f185('0x6')]({'where':{'id':_0xa75042[_0x62f185('0x57')]['id']}})[_0x62f185('0x32')](function(_0x240176){const _0x279cfd=_0x62f185;if(_0x240176)return _0x2e3328=_0x240176,_0x240176[_0x279cfd('0x53')](_0xa75042[_0x279cfd('0x36')]['id'],{'transaction':_0x5a5b38});})[_0x62f185('0x32')](function(_0x1d1a8a){const _0x4af91e=_0x62f185;if(_0x1d1a8a)return db[_0x4af91e('0x2a')][_0x4af91e('0x6')]({'where':{'id':_0xa75042[_0x4af91e('0x36')]['id']},'attributes':['id',_0x4af91e('0x3a'),_0x4af91e('0x1d'),'converted_format','createdAt'],'raw':!![]});})['then'](function(_0x4f36f0){const _0x32716e=_0x62f185;if(_0x4f36f0){const _0x38c841=path[_0x32716e('0x2d')](config[_0x32716e('0x4a')],_0x32716e('0x3b'),util[_0x32716e('0x34')](_0x32716e('0x2'),path['basename'](_0x4f36f0[_0x32716e('0x1d')],path[_0x32716e('0xa')](_0x4f36f0['save_name'])),_0x4f36f0[_0x32716e('0x54')])),_0x46dff8=path[_0x32716e('0x2d')](config[_0x32716e('0x4a')],_0x32716e('0x14'),_0x2e3328[_0x32716e('0x3a')],util[_0x32716e('0x34')](_0x32716e('0x2'),_0x4f36f0['name'],_0x4f36f0[_0x32716e('0x54')]));return fs['symlinkSync'](_0x38c841,_0x46dff8),_0x4f36f0;}})[_0x62f185('0x5')](function(_0x32ef59){throw new ValidationError(_0x32ef59['message']);});})['then'](handleEntityNotFound(_0x7b8d5b,null))[_0x31a81d('0x32')](respondWithResult(_0x7b8d5b,0xc9))[_0x31a81d('0x5')](handleError(_0x7b8d5b,null));},exports[_0x3015ba('0x27')]=function(_0x4ae2fb,_0x487841){const _0x53117c=_0x3015ba;return db[_0x53117c('0x35')][_0x53117c('0x22')](function(){const _0x5c95f7=_0x53117c;let _0x465184;return db[_0x5c95f7('0x15')][_0x5c95f7('0x6')]({'where':{'id':_0x4ae2fb[_0x5c95f7('0x57')]['id']}})['then'](handleEntityNotFound(_0x487841,null))[_0x5c95f7('0x32')](function(_0x1362b6){const _0x260173=_0x5c95f7;if(_0x1362b6)return _0x465184=_0x1362b6,_0x1362b6['removeSound'](_0x4ae2fb['params'][_0x260173('0x2c')]);})[_0x5c95f7('0x32')](function(_0x58cf22){const _0x107476=_0x5c95f7;if(_0x58cf22)return db['Sound'][_0x107476('0x6')]({'where':{'id':_0x4ae2fb[_0x107476('0x57')][_0x107476('0x2c')]},'attributes':['id',_0x107476('0x3a'),_0x107476('0x1d'),_0x107476('0x54'),'createdAt'],'raw':!![]});})['then'](function(_0x35b875){const _0x26941c=_0x5c95f7;if(_0x35b875)return fs[_0x26941c('0x4')](path[_0x26941c('0x2d')](_0x465184[_0x26941c('0x59')],util['format'](_0x26941c('0x2'),_0x35b875[_0x26941c('0x3a')],_0x35b875[_0x26941c('0x54')]))),_0x35b875;})[_0x5c95f7('0x5')](function(_0x1925d1){const _0x535372=_0x5c95f7;throw new ValidationError(_0x1925d1[_0x535372('0x9')]);});})[_0x53117c('0x32')](handleEntityNotFound(_0x487841,null))[_0x53117c('0x32')](respondWithStatusCode(_0x487841,0xcc))[_0x53117c('0x5')](handleError(_0x487841,null));},exports[_0x3015ba('0x18')]=function(_0x53c51e,_0x5b0869){const _0x45f6c4=_0x3015ba;let _0x268cfe={};const _0x5421c1={};let _0x10e7b8,_0x343cee;return db[_0x45f6c4('0x15')]['findOne']({'where':{'id':_0x53c51e[_0x45f6c4('0x57')]['id']}})[_0x45f6c4('0x32')](handleEntityNotFound(_0x5b0869,null))[_0x45f6c4('0x32')](function(_0x39f90a){const _0x3e1abc=_0x45f6c4;if(_0x39f90a)return _0x10e7b8=_0x39f90a,_0x5421c1[_0x3e1abc('0x42')]=_['keys'](db[_0x3e1abc('0x2a')][_0x3e1abc('0x8')]),_0x5421c1[_0x3e1abc('0x43')]=_[_0x3e1abc('0x2e')](_0x53c51e[_0x3e1abc('0x43')]),_0x5421c1[_0x3e1abc('0x4c')]=_['intersection'](_0x5421c1[_0x3e1abc('0x42')],_0x5421c1['query']),_0x268cfe['attributes']=_[_0x3e1abc('0x19')](_0x5421c1[_0x3e1abc('0x42')],qs[_0x3e1abc('0x2b')](_0x53c51e['query'][_0x3e1abc('0x2b')])),_0x268cfe[_0x3e1abc('0x4b')]=_0x268cfe['attributes']['length']?_0x268cfe[_0x3e1abc('0x4b')]:_0x5421c1['model'],_0x268cfe['order']=qs[_0x3e1abc('0x24')](_0x53c51e[_0x3e1abc('0x43')]['sort']),_0x268cfe[_0x3e1abc('0x26')]=qs[_0x3e1abc('0x4c')](_[_0x3e1abc('0x40')](_0x53c51e['query'],_0x5421c1[_0x3e1abc('0x4c')])),_0x53c51e['query'][_0x3e1abc('0x49')]&&(_0x268cfe[_0x3e1abc('0x26')]=_[_0x3e1abc('0x39')](_0x268cfe[_0x3e1abc('0x26')],{[Op['or']]:_[_0x3e1abc('0x1')](_0x268cfe['attributes'],function(_0x10c1bf){const _0x1a7b2f={};return _0x1a7b2f[_0x10c1bf]={[Op['like']]:'%'+_0x53c51e['query']['filter']+'%'},_0x1a7b2f;})})),_0x268cfe=_['merge']({},_0x268cfe,_0x53c51e[_0x3e1abc('0x28')]),_0x10e7b8['getSounds'](_0x268cfe);})[_0x45f6c4('0x32')](function(_0x37719e){const _0x24baa3=_0x45f6c4;if(_0x37719e)return _0x343cee=_0x37719e[_0x24baa3('0x3e')],typeof _0x53c51e[_0x24baa3('0x43')]['nolimit']===_0x24baa3('0x46')&&(_0x268cfe[_0x24baa3('0x45')]=qs['limit'](_0x53c51e[_0x24baa3('0x43')][_0x24baa3('0x45')]),_0x268cfe['offset']=qs[_0x24baa3('0x50')](_0x53c51e['query'][_0x24baa3('0x50')])),_0x10e7b8['getSounds'](_0x268cfe);})[_0x45f6c4('0x32')](function(_0x272093){if(_0x272093)return _0x272093?{'count':_0x343cee,'rows':_0x272093}:null;})[_0x45f6c4('0x32')](respondWithResult(_0x5b0869,null))[_0x45f6c4('0x5')](handleError(_0x5b0869,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index b58b129..f3848b8 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a743_0x97c6=['exports','voice_musiconhold','VoiceMusicOnHold'];(function(_0x353f47,_0x97c645){const _0x38e29c=function(_0x218962){while(--_0x218962){_0x353f47['push'](_0x353f47['shift']());}};_0x38e29c(++_0x97c645);}(a743_0x97c6,0x1a1));const a743_0x38e2=function(_0x353f47,_0x97c645){_0x353f47=_0x353f47-0x0;let _0x38e29c=a743_0x97c6[_0x353f47];return _0x38e29c;};const _0x228f83=a743_0x38e2;'use strict';const attributes=require('./voiceMusicOnHold.attributes');module[_0x228f83('0x0')]=function(_0x218962){const _0x22f07e=_0x228f83,_0x4441af=_0x218962['define'](_0x22f07e('0x2'),attributes,{'tableName':_0x22f07e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4441af;}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index e3f3ae9..874ded7 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a744_0x2882=['show','removeAgents','/:id/users','/describe','get','exports','index','isAuthenticated','create','put','../../components/auth/service','express','addAgents','post','getAgents','/:id','destroy','./voicePrefix.controller','update'];(function(_0xc12e90,_0x288292){const _0x49f348=function(_0x15b798){while(--_0x15b798){_0xc12e90['push'](_0xc12e90['shift']());}};_0x49f348(++_0x288292);}(a744_0x2882,0x1ac));const a744_0x49f3=function(_0xc12e90,_0x288292){_0xc12e90=_0xc12e90-0x0;let _0x49f348=a744_0x2882[_0xc12e90];return _0x49f348;};const _0x15c3de=a744_0x49f3;'use strict';const express=require(_0x15c3de('0x1')),router=express['Router'](),auth=require(_0x15c3de('0x0')),controller=require(_0x15c3de('0x7'));router[_0x15c3de('0xd')]('/',auth['isAuthenticated'](),controller[_0x15c3de('0xf')]),router[_0x15c3de('0xd')](_0x15c3de('0xc'),auth[_0x15c3de('0x10')](),controller['describe']),router[_0x15c3de('0xd')]('/:id',auth[_0x15c3de('0x10')](),controller[_0x15c3de('0x9')]),router[_0x15c3de('0xd')](_0x15c3de('0xb'),auth[_0x15c3de('0x10')](),controller[_0x15c3de('0x4')]),router['post']('/',auth[_0x15c3de('0x10')](),controller[_0x15c3de('0x11')]),router[_0x15c3de('0x3')]('/:id/users',auth['isAuthenticated'](),controller[_0x15c3de('0x2')]),router[_0x15c3de('0x12')](_0x15c3de('0x5'),auth[_0x15c3de('0x10')](),controller[_0x15c3de('0x8')]),router['delete'](_0x15c3de('0x5'),auth['isAuthenticated'](),controller[_0x15c3de('0x6')]),router['delete'](_0x15c3de('0xb'),auth['isAuthenticated'](),controller[_0x15c3de('0xa')]),module[_0x15c3de('0xe')]=router; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index 6a4e0e3..6f65016 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a745_0xedf1=['name','getDataValue','system-','sequelize','exports','STRING','VIRTUAL'];(function(_0x58f103,_0xedf185){const _0x4c8546=function(_0x30fac1){while(--_0x30fac1){_0x58f103['push'](_0x58f103['shift']());}};_0x4c8546(++_0xedf185);}(a745_0xedf1,0xf4));const a745_0x4c85=function(_0x58f103,_0xedf185){_0x58f103=_0x58f103-0x0;let _0x4c8546=a745_0xedf1[_0x58f103];return _0x4c8546;};const _0x323eee=a745_0x4c85;'use strict';const Sequelize=require(_0x323eee('0x4'));module[_0x323eee('0x5')]={'name':{'type':Sequelize[_0x323eee('0x6')],'allowNull':![],'unique':_0x323eee('0x1')},'prefix':{'type':Sequelize[_0x323eee('0x0')],'get':function(){const _0x192add=_0x323eee;return _0x192add('0x3')+this[_0x192add('0x2')](_0x192add('0x1'))+'-';}},'description':{'type':Sequelize['STRING']},'callerIdAll':{'type':Sequelize['STRING']},'VoiceExtensionId':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index cb96e51..00e0adb 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a746_0x517a=['send','fields','includeAll','CDR(prefix)=','ids','description','rawAttributes','include','map','json','isArray','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','nolimit','Content-Range','params','charAt','show','transaction','like','UserProfileResource','filter','count','sort','length','type','catch','removeAgents','sendStatus','Extensions\x20creation\x20failed','fieldName','attributes','UserProfileSection','Set','update','userVoicePrefix:remove','error','options','destroy','VoicePrefixes','describe','intersection','undefined','VoiceExtension','userProfileId','getAgents','Voice\x20Prefix\x20Extension','get','addAgents','filters','NoOp','../../config/logger','register','appdata','../../mysqldb','query','callerIdAll','priority','role','User','PREFIX-CALLERIDALL=','keys','model','system','stack','name','system-','VoiceExtensionId','push','bulkCreate','VoicePrefixId','findByPk','VIRTUAL','limit','No\x20callerid\x20available','emit','api','${EXTEN:','findAll','body','sequelize','then','order','goto','rows','end','where','lodash','user','context','prefix','../../rediscache','index','VoicePrefix','exten','key','status','./voicePrefix.socket','findOne','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','userVoicePrefix:save','merge','offset','create'];(function(_0x2cb8db,_0x517a6f){const _0x5d3915=function(_0x5ebacb){while(--_0x5ebacb){_0x2cb8db['push'](_0x2cb8db['shift']());}};_0x5d3915(++_0x517a6f);}(a746_0x517a,0xbe));const a746_0x5d39=function(_0x2cb8db,_0x517a6f){_0x2cb8db=_0x2cb8db-0x0;let _0x5d3915=a746_0x517a[_0x2cb8db];return _0x5d3915;};const _0x1efd0d=a746_0x5d39;'use strict';const _=require(_0x1efd0d('0x1')),qs=require('../../components/parsers/qs'),logger=require(_0x1efd0d('0x45'))(_0x1efd0d('0x5e')),{getSocket}=require(_0x1efd0d('0x5')),socket=getSocket(),db=require(_0x1efd0d('0x48'))['db'],{Op}=require('sequelize');require(_0x1efd0d('0xb'))[_0x1efd0d('0x46')](socket);function respondWithStatusCode(_0x5ebacb,_0x32857d){return _0x32857d=_0x32857d||0xcc,function(_0x3bdfa2){const _0x4134a2=a746_0x5d39;if(_0x3bdfa2)return _0x5ebacb[_0x4134a2('0x2e')](_0x32857d);return _0x5ebacb[_0x4134a2('0xa')](_0x32857d)['end']();};}function respondWithResult(_0x5ac2f4,_0x3d50a4){return _0x3d50a4=_0x3d50a4||0xc8,function(_0x93753d){const _0x306d63=a746_0x5d39;if(_0x93753d)return _0x5ac2f4[_0x306d63('0xa')](_0x3d50a4)['json'](_0x93753d);};}function respondWithFilteredResult(_0x499d18,_0x3f925b){return function(_0x4a5fe0){const _0x4d4c9a=a746_0x5d39;if(_0x4a5fe0){const _0xcab186=_0x4a5fe0[_0x4d4c9a('0x28')],_0x495cad=_0x3f925b[_0x4d4c9a('0x10')];let _0x41a9d3=_0x3f925b['offset']+_0x3f925b[_0x4d4c9a('0x5b')],_0x504ef8;return _0x41a9d3>=_0xcab186?(_0x41a9d3=_0xcab186,_0x504ef8=0xc8):_0x504ef8=0xce,_0x499d18['status'](_0x504ef8),_0x499d18['set'](_0x4d4c9a('0x20'),_0x495cad+'-'+_0x41a9d3+'/'+_0xcab186)[_0x4d4c9a('0x1b')](_0x4a5fe0);}return null;};}function removeEntity(_0x5af036){return function(_0x12915d){const _0x20d2c2=a746_0x5d39;if(_0x12915d)return _0x12915d['destroy']()[_0x20d2c2('0x63')](function(){const _0x5bef7f=_0x20d2c2,_0x509cb4=_0x12915d['get']({'plain':!![]}),_0x5a0dc8=_0x5bef7f('0x39');return db[_0x5bef7f('0x26')][_0x5bef7f('0x38')]({'where':{'type':_0x5a0dc8,'resourceId':_0x509cb4['id']}})[_0x5bef7f('0x63')](function(){return _0x12915d;});})['then'](function(){const _0x497e6e=_0x20d2c2;_0x5af036[_0x497e6e('0xa')](0xcc)[_0x497e6e('0x67')]();});};}function handleEntityNotFound(_0x1410b8){return function(_0x3b9eee){const _0x14fd8b=a746_0x5d39;return!_0x3b9eee&&_0x1410b8[_0x14fd8b('0x2e')](0x194),_0x3b9eee;};}function handleError(_0x2f960c,_0x468c54){return _0x468c54=_0x468c54||0x1f4,function(_0x1cdd29){const _0x45f72a=a746_0x5d39;logger[_0x45f72a('0x36')](_0x1cdd29[_0x45f72a('0x52')]),_0x1cdd29['name']&&delete _0x1cdd29['name'],_0x2f960c[_0x45f72a('0xa')](_0x468c54)[_0x45f72a('0x12')](_0x1cdd29);};}exports[_0x1efd0d('0x6')]=function(_0x1c445f,_0x4784d9){const _0x12027c=_0x1efd0d;let _0x5970b0={};const _0x17053c={},_0x57d177={'count':0x0,'rows':[]},_0x46ef09=_['map'](db[_0x12027c('0x7')][_0x12027c('0x18')],function(_0x3b627b){const _0x46448e=_0x12027c;return{'name':_0x3b627b[_0x46448e('0x30')],'type':_0x3b627b[_0x46448e('0x2b')][_0x46448e('0x9')]};});_0x17053c[_0x12027c('0x50')]=_[_0x12027c('0x1a')](_0x46ef09,'name'),_0x17053c[_0x12027c('0x49')]=_['keys'](_0x1c445f[_0x12027c('0x49')]),_0x17053c[_0x12027c('0x43')]=_[_0x12027c('0x3b')](_0x17053c[_0x12027c('0x50')],_0x17053c['query']),_0x5970b0[_0x12027c('0x31')]=_[_0x12027c('0x3b')](_0x17053c[_0x12027c('0x50')],qs['fields'](_0x1c445f[_0x12027c('0x49')]['fields'])),_0x5970b0['attributes']=_0x5970b0['attributes'][_0x12027c('0x2a')]?_0x5970b0[_0x12027c('0x31')]:_0x17053c[_0x12027c('0x50')];typeof _0x1c445f[_0x12027c('0x49')][_0x12027c('0x1f')]==='undefined'&&(_0x5970b0[_0x12027c('0x5b')]=qs[_0x12027c('0x5b')](_0x1c445f[_0x12027c('0x49')][_0x12027c('0x5b')]),_0x5970b0[_0x12027c('0x10')]=qs[_0x12027c('0x10')](_0x1c445f[_0x12027c('0x49')][_0x12027c('0x10')]));_0x5970b0[_0x12027c('0x64')]=qs[_0x12027c('0x29')](_0x1c445f[_0x12027c('0x49')][_0x12027c('0x29')]),_0x5970b0['where']=qs[_0x12027c('0x43')](_[_0x12027c('0x1d')](_0x1c445f[_0x12027c('0x49')],_0x17053c[_0x12027c('0x43')]),_0x46ef09);_0x1c445f[_0x12027c('0x49')][_0x12027c('0x27')]&&(_0x5970b0[_0x12027c('0x0')]=_[_0x12027c('0xf')](_0x5970b0[_0x12027c('0x0')],{[Op['or']]:_['map'](_0x46ef09,function(_0x538ca6){const _0x517b21=_0x12027c;if(_0x538ca6['type']!==_0x517b21('0x5a')){const _0x2bcb84={};return _0x2bcb84[_0x538ca6[_0x517b21('0x53')]]={[Op['like']]:'%'+_0x1c445f[_0x517b21('0x49')][_0x517b21('0x27')]+'%'},_0x2bcb84;}})}));_0x5970b0=_[_0x12027c('0xf')]({},_0x5970b0,_0x1c445f[_0x12027c('0x37')]);const _0x4a1e9e={'where':_0x5970b0[_0x12027c('0x0')]};return db[_0x12027c('0x7')][_0x12027c('0x28')](_0x4a1e9e)[_0x12027c('0x63')](function(_0x361b24){const _0x5d6089=_0x12027c;return _0x57d177['count']=_0x361b24,_0x1c445f[_0x5d6089('0x49')]['includeAll']&&(_0x5970b0[_0x5d6089('0x19')]=[{'all':!![]}]),db[_0x5d6089('0x7')][_0x5d6089('0x60')](_0x5970b0);})[_0x12027c('0x63')](function(_0xfb6fc3){const _0x579c0f=_0x12027c;return _0x57d177[_0x579c0f('0x66')]=_0xfb6fc3,_0x57d177;})[_0x12027c('0x63')](respondWithFilteredResult(_0x4784d9,_0x5970b0))['catch'](handleError(_0x4784d9,null));},exports[_0x1efd0d('0x23')]=function(_0x1c1cac,_0x5eec73){const _0xa49001=_0x1efd0d;let _0x2e8747={'raw':![],'where':{'id':_0x1c1cac['params']['id']}};const _0x27b28d={};return _0x27b28d[_0xa49001('0x50')]=_[_0xa49001('0x4f')](db[_0xa49001('0x7')][_0xa49001('0x18')]),_0x27b28d[_0xa49001('0x49')]=_[_0xa49001('0x4f')](_0x1c1cac[_0xa49001('0x49')]),_0x27b28d['filters']=_['intersection'](_0x27b28d[_0xa49001('0x50')],_0x27b28d[_0xa49001('0x49')]),_0x2e8747['attributes']=_[_0xa49001('0x3b')](_0x27b28d[_0xa49001('0x50')],qs[_0xa49001('0x13')](_0x1c1cac[_0xa49001('0x49')]['fields'])),_0x2e8747[_0xa49001('0x31')]=_0x2e8747['attributes'][_0xa49001('0x2a')]?_0x2e8747[_0xa49001('0x31')]:_0x27b28d[_0xa49001('0x50')],_0x1c1cac[_0xa49001('0x49')][_0xa49001('0x14')]&&(_0x2e8747[_0xa49001('0x19')]=[{'all':!![]}]),_0x2e8747=_[_0xa49001('0xf')]({},_0x2e8747,_0x1c1cac[_0xa49001('0x37')]),db[_0xa49001('0x7')][_0xa49001('0xc')](_0x2e8747)[_0xa49001('0x63')](handleEntityNotFound(_0x5eec73,null))[_0xa49001('0x63')](respondWithResult(_0x5eec73,null))['catch'](handleError(_0x5eec73,null));},exports[_0x1efd0d('0x38')]=function(_0x7ff7ce,_0x5035aa){const _0x17d240=_0x1efd0d;return db['VoicePrefix'][_0x17d240('0xc')]({'where':{'id':_0x7ff7ce[_0x17d240('0x21')]['id']}})['then'](handleEntityNotFound(_0x5035aa,null))[_0x17d240('0x63')](removeEntity(_0x5035aa,null))[_0x17d240('0x2c')](handleError(_0x5035aa,null));},exports['describe']=function(_0x1705ef,_0x210ac6){const _0x10dc7f=_0x1efd0d;return db[_0x10dc7f('0x7')][_0x10dc7f('0x3a')]()[_0x10dc7f('0x63')](respondWithResult(_0x210ac6,null))[_0x10dc7f('0x2c')](handleError(_0x210ac6,null));},exports['create']=function(_0x1c6de3,_0x520055){const _0x36e383=_0x1efd0d;let _0x110de3;return db[_0x36e383('0x62')][_0x36e383('0x24')](function(_0x5d494f){const _0x4e9486=_0x36e383;return db[_0x4e9486('0x7')]['create'](_0x1c6de3[_0x4e9486('0x61')],{'transaction':_0x5d494f})[_0x4e9486('0x63')](function(_0x4a783d){const _0x291120=_0x4e9486;return _0x110de3=_0x4a783d[_0x291120('0x41')]({'plain':!![]}),db[_0x291120('0x3d')][_0x291120('0xc')]({'where':{'id':_0x110de3[_0x291120('0x55')]},'raw':!![]})['then'](function(_0x54a9e9){return createVoicePrefixExtensions(_0x110de3,_0x54a9e9,_0x5d494f);});});})[_0x36e383('0x63')](function(){const _0x540be4=_0x36e383,_0x4bfe66=_0x1c6de3['user'][_0x540be4('0x41')]({'plain':!![]});if(!_0x4bfe66)throw new Error(_0x540be4('0x1e'));if(_0x4bfe66[_0x540be4('0x4c')]===_0x540be4('0x2')){const _0x4c3242=_0x110de3;return db[_0x540be4('0x32')][_0x540be4('0xc')]({'where':{'name':_0x540be4('0x39'),'userProfileId':_0x4bfe66[_0x540be4('0x3e')]},'raw':!![]})[_0x540be4('0x63')](function(_0x3debab){const _0x4adde3=_0x540be4;return _0x3debab&&_0x3debab['autoAssociation']===0x0?db[_0x4adde3('0x26')][_0x4adde3('0x11')]({'name':_0x4c3242[_0x4adde3('0x53')],'resourceId':_0x4c3242['id'],'type':_0x3debab[_0x4adde3('0x53')],'sectionId':_0x3debab['id']},{})['then'](function(){return _0x110de3;}):_0x110de3;})[_0x540be4('0x2c')](function(_0x5256c1){const _0x1988a1=_0x540be4;logger[_0x1988a1('0x36')](_0x1988a1('0xd'),_0x5256c1);throw _0x5256c1;});}return _0x110de3;})[_0x36e383('0x63')](respondWithResult(_0x520055,null))[_0x36e383('0x2c')](handleError(_0x520055,null));};function Extension(_0x3a8e51,_0x561ecd,_0x3858b1,_0x3849e3){const _0x52f73f=_0x1efd0d;this[_0x52f73f('0x3')]='from-sip',this[_0x52f73f('0x8')]=_0x3a8e51,this['app']=_0x3858b1,this[_0x52f73f('0x2b')]=_0x52f73f('0x51'),this[_0x52f73f('0x17')]=_0x52f73f('0x40'),this[_0x52f73f('0x4b')]=_0x561ecd,this[_0x52f73f('0x47')]=_0x3849e3;}function createVoicePrefixExtensions(_0x43cef3,_0x336a71,_0x8ade49){return new Promise(function(_0x2777bc,_0x2c9862){const _0x159f83=a746_0x5d39,_0x1fbbe5=new Extension(formatPrefixName(_0x43cef3[_0x159f83('0x4')]),0x1,'NoOp','Voice\x20Prefix');return _0x1fbbe5[_0x159f83('0x58')]=_0x43cef3['id'],db[_0x159f83('0x3d')][_0x159f83('0x11')](_0x1fbbe5,{'transaction':_0x8ade49})[_0x159f83('0x63')](function(_0x201c40){const _0x2f8313=_0x159f83,_0x25a48a=_0x201c40[_0x2f8313('0x41')]({'plain':!![]}),_0xfb0ca3=_[_0x2f8313('0x1a')](addVoicePrefixExtensions(_0x43cef3,_0x336a71),function(_0x43707b){const _0x11b2b7=_0x2f8313;return _0x43707b[_0x11b2b7('0x55')]=_0x25a48a['id'],_0x43707b[_0x11b2b7('0x58')]=_0x43cef3['id'],_0x43707b;});return db['VoiceExtension'][_0x2f8313('0x57')](_0xfb0ca3,{'transaction':_0x8ade49})['then'](function(_0x3001cf){const _0x5379d3=_0x2f8313;return!_0x3001cf?_0x2c9862(_0x5379d3('0x2f')):_0x2777bc(_0x3001cf);})[_0x2f8313('0x2c')](function(_0x47ce80){return _0x2c9862(_0x47ce80);});});});}function addVoicePrefixExtensions(_0x2887e3,_0x26cbf9){const _0x203bd6=_0x1efd0d,_0x394064=[],_0x1cdf21=formatPrefixName(_0x2887e3[_0x203bd6('0x4')]);return _0x394064[_0x203bd6('0x56')](new Extension(_0x1cdf21,0x2,_0x203bd6('0x33'),_0x203bd6('0x15')+_0x2887e3[_0x203bd6('0x53')])),_0x2887e3[_0x203bd6('0x4a')]?_0x394064[_0x203bd6('0x56')](new Extension(_0x1cdf21,0x3,_0x203bd6('0x33'),_0x203bd6('0x4e')+_0x2887e3[_0x203bd6('0x4a')])):_0x394064['push'](new Extension(_0x1cdf21,0x3,_0x203bd6('0x44'),_0x203bd6('0x5c'))),_0x394064[_0x203bd6('0x56')](new Extension(_0x1cdf21,0x4,_0x203bd6('0x65'),_0x26cbf9[_0x203bd6('0x3')]+','+_0x203bd6('0x5f')+(0x8+_0x2887e3[_0x203bd6('0x53')][_0x203bd6('0x2a')])+'}'+','+0x1)),_0x394064;}function formatPrefixName(_0x489cc4){const _0x3f5499=_0x1efd0d;let _0x4a6966='_';for(let _0x1edf08=0x0;_0x1edf08<_0x489cc4[_0x3f5499('0x2a')];_0x1edf08++){_0x489cc4[_0x3f5499('0x22')](_0x1edf08)=='-'?_0x4a6966+=_0x489cc4[_0x3f5499('0x22')](_0x1edf08):_0x4a6966+='['+_0x489cc4[_0x3f5499('0x22')](_0x1edf08)+']';}return _0x4a6966+='.',_0x4a6966;}exports[_0x1efd0d('0x34')]=function(_0x59a3bf,_0x5065b9){const _0x580dab=_0x1efd0d,_0x36ff6e=_0x59a3bf[_0x580dab('0x61')];return _0x36ff6e['prefix']=_0x580dab('0x54')+_0x36ff6e[_0x580dab('0x53')]+'-',db[_0x580dab('0x62')][_0x580dab('0x24')](function(_0x2732c6){const _0x2b0bed=_0x580dab;return db['VoicePrefix'][_0x2b0bed('0x34')](_0x36ff6e,{'where':{'id':_0x36ff6e['id']},'transaction':_0x2732c6})[_0x2b0bed('0x63')](function(){const _0x545436=_0x2b0bed;return db[_0x545436('0x3d')][_0x545436('0x38')]({'where':{'VoicePrefixId':_0x36ff6e['id']},'transaction':_0x2732c6})[_0x545436('0x63')](function(){const _0x1260b3=_0x545436;return db[_0x1260b3('0x3d')][_0x1260b3('0xc')]({'where':{'id':_0x36ff6e[_0x1260b3('0x55')]},'raw':!![]})['then'](function(_0x5ea4a1){return createVoicePrefixExtensions(_0x36ff6e,_0x5ea4a1,_0x2732c6);});});});})[_0x580dab('0x63')](function(){const _0x13ee77=_0x580dab;return db[_0x13ee77('0x7')][_0x13ee77('0x59')](_0x36ff6e['id']);})[_0x580dab('0x63')](respondWithResult(_0x5065b9,null))[_0x580dab('0x2c')](handleError(_0x5065b9,null));},exports[_0x1efd0d('0x42')]=function(_0x168d11,_0x296c3f){const _0x548464=_0x1efd0d;return db[_0x548464('0x7')][_0x548464('0xc')]({'where':{'id':_0x168d11[_0x548464('0x21')]['id']}})[_0x548464('0x63')](function(_0x5a3931){const _0xc08a59=_0x548464;if(_0x5a3931)return _0x5a3931[_0xc08a59('0x42')](_0x168d11[_0xc08a59('0x61')][_0xc08a59('0x16')],{'through':_['omit'](_0x168d11[_0xc08a59('0x61')],[_0xc08a59('0x16'),'id'])})['then'](function(_0x5f3acf){const _0x588199=_0xc08a59;for(let _0x501162=0x0;_0x501162<_0x168d11['body'][_0x588199('0x16')]['length'];_0x501162+=0x1){socket['emit'](_0x588199('0xe'),{'UserId':_0x168d11[_0x588199('0x61')]['ids'][_0x501162],'VoicePrefixId':_0x168d11['params']['id']});}return _0x5f3acf;});})[_0x548464('0x63')](respondWithResult(_0x296c3f,null))[_0x548464('0x2c')](handleError(_0x296c3f,null));},exports[_0x1efd0d('0x2d')]=function(_0x2906ce,_0xeab94d){const _0xd73198=_0x1efd0d;return db[_0xd73198('0x7')][_0xd73198('0xc')]({'where':{'id':_0x2906ce['params']['id']}})[_0xd73198('0x63')](handleEntityNotFound(_0xeab94d,null))['then'](function(_0x2ad459){const _0x221008=_0xd73198;if(_0x2ad459)return _0x2ad459[_0x221008('0x2d')](_0x2906ce[_0x221008('0x49')][_0x221008('0x16')])['then'](function(){const _0x1dfa15=_0x221008;if(_[_0x1dfa15('0x1c')](_0x2906ce['query'][_0x1dfa15('0x16')]))for(let _0x5ceb7a=0x0;_0x5ceb7a<_0x2906ce[_0x1dfa15('0x49')][_0x1dfa15('0x16')][_0x1dfa15('0x2a')];_0x5ceb7a+=0x1){socket[_0x1dfa15('0x5d')](_0x1dfa15('0x35'),{'UserId':Number(_0x2906ce['query']['ids'][_0x5ceb7a]),'VoicePrefixId':Number(_0x2906ce[_0x1dfa15('0x21')]['id'])});}else socket['emit'](_0x1dfa15('0x35'),{'UserId':Number(_0x2906ce['query']['ids']),'VoicePrefixId':Number(_0x2906ce[_0x1dfa15('0x21')]['id'])});});})[_0xd73198('0x63')](respondWithStatusCode(_0xeab94d,null))[_0xd73198('0x2c')](handleError(_0xeab94d,null));},exports[_0x1efd0d('0x3f')]=function(_0x66c3a8,_0x578110){const _0x14ce0d=_0x1efd0d;let _0x5dac64={};const _0x3f6037={};let _0x290b47,_0x452c16;return db['VoicePrefix'][_0x14ce0d('0xc')]({'where':{'id':_0x66c3a8[_0x14ce0d('0x21')]['id']}})['then'](handleEntityNotFound(_0x578110,null))['then'](function(_0x59feac){const _0x25c76b=_0x14ce0d;if(_0x59feac)return _0x290b47=_0x59feac,_0x3f6037[_0x25c76b('0x50')]=_[_0x25c76b('0x4f')](db[_0x25c76b('0x4d')]['rawAttributes']),_0x3f6037[_0x25c76b('0x49')]=_[_0x25c76b('0x4f')](_0x66c3a8[_0x25c76b('0x49')]),_0x3f6037[_0x25c76b('0x43')]=_[_0x25c76b('0x3b')](_0x3f6037[_0x25c76b('0x50')],_0x3f6037[_0x25c76b('0x49')]),_0x5dac64['attributes']=_[_0x25c76b('0x3b')](_0x3f6037['model'],qs[_0x25c76b('0x13')](_0x66c3a8[_0x25c76b('0x49')][_0x25c76b('0x13')])),_0x5dac64['attributes']=_0x5dac64[_0x25c76b('0x31')]['length']?_0x5dac64[_0x25c76b('0x31')]:_0x3f6037['model'],_0x5dac64[_0x25c76b('0x64')]=qs[_0x25c76b('0x29')](_0x66c3a8[_0x25c76b('0x49')][_0x25c76b('0x29')]),_0x5dac64['where']=qs['filters'](_[_0x25c76b('0x1d')](_0x66c3a8[_0x25c76b('0x49')],_0x3f6037[_0x25c76b('0x43')])),_0x66c3a8['query']['filter']&&(_0x5dac64[_0x25c76b('0x0')]=_[_0x25c76b('0xf')](_0x5dac64['where'],{[Op['or']]:_[_0x25c76b('0x1a')](_0x5dac64[_0x25c76b('0x31')],function(_0x1d1f95){const _0x47c63d=_0x25c76b,_0xdf105d={};return _0xdf105d[_0x1d1f95]={[Op[_0x47c63d('0x25')]]:'%'+_0x66c3a8[_0x47c63d('0x49')][_0x47c63d('0x27')]+'%'},_0xdf105d;})})),_0x5dac64=_[_0x25c76b('0xf')]({},_0x5dac64,_0x66c3a8[_0x25c76b('0x37')]),_0x290b47[_0x25c76b('0x3f')](_0x5dac64);})[_0x14ce0d('0x63')](function(_0x5ad143){const _0x175a00=_0x14ce0d;if(_0x5ad143)return _0x452c16=_0x5ad143['length'],typeof _0x66c3a8[_0x175a00('0x49')][_0x175a00('0x1f')]===_0x175a00('0x3c')&&(_0x5dac64[_0x175a00('0x5b')]=qs[_0x175a00('0x5b')](_0x66c3a8[_0x175a00('0x49')][_0x175a00('0x5b')]),_0x5dac64[_0x175a00('0x10')]=qs[_0x175a00('0x10')](_0x66c3a8[_0x175a00('0x49')]['offset'])),_0x290b47['getAgents'](_0x5dac64);})[_0x14ce0d('0x63')](function(_0x249d8e){if(_0x249d8e)return _0x249d8e?{'count':_0x452c16,'rows':_0x249d8e}:null;})[_0x14ce0d('0x63')](respondWithResult(_0x578110,null))[_0x14ce0d('0x2c')](handleError(_0x578110,null));}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index 45c3975..00dc6b6 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a747_0x5870=['addHook','VoicePrefix','emit','update'];(function(_0x188d5c,_0x5870d5){const _0x5cc1e8=function(_0x4e813c){while(--_0x4e813c){_0x188d5c['push'](_0x188d5c['shift']());}};_0x5cc1e8(++_0x5870d5);}(a747_0x5870,0x85));const a747_0x5cc1=function(_0x188d5c,_0x5870d5){_0x188d5c=_0x188d5c-0x0;let _0x5cc1e8=a747_0x5870[_0x188d5c];return _0x5cc1e8;};const _0x50e9c6=a747_0x5cc1;'use strict';const EventEmitter=require('events'),VoicePrefix=require('../../mysqldb')['db'][_0x50e9c6('0x0')],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x50e9c6('0x2'),'afterDestroy':'remove'};function emitEvent(_0x4e813c){return function(_0x11437a){const _0x33983a=a747_0x5cc1;VoicePrefixEvents['emit'](_0x4e813c+':'+_0x11437a['id'],_0x11437a),VoicePrefixEvents[_0x33983a('0x1')](_0x4e813c,_0x11437a);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoicePrefix[_0x50e9c6('0x3')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index f8827d4..6837051 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a748_0x3382=['./voicePrefix.attributes','voice_prefixes','VoicePrefix'];(function(_0x1ab9c3,_0x338216){const _0x5ca78a=function(_0x1e1758){while(--_0x1e1758){_0x1ab9c3['push'](_0x1ab9c3['shift']());}};_0x5ca78a(++_0x338216);}(a748_0x3382,0x139));const a748_0x5ca7=function(_0x1ab9c3,_0x338216){_0x1ab9c3=_0x1ab9c3-0x0;let _0x5ca78a=a748_0x3382[_0x1ab9c3];return _0x5ca78a;};const _0x2e20e8=a748_0x5ca7;'use strict';const attributes=require(_0x2e20e8('0x2'));module['exports']=function(_0x1e1758){const _0x240bc7=_0x2e20e8,_0xc48f7e=_0x1e1758['define'](_0x240bc7('0x1'),attributes,{'tableName':_0x240bc7('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xc48f7e;}; \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index 9560788..73fbb9c 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a749_0x3cce=['./voicePrefix.socket','register'];(function(_0x1de53b,_0x3ccef7){const _0x1386d7=function(_0x4c76c1){while(--_0x4c76c1){_0x1de53b['push'](_0x1de53b['shift']());}};_0x1386d7(++_0x3ccef7);}(a749_0x3cce,0x10b));const a749_0x1386=function(_0x1de53b,_0x3ccef7){_0x1de53b=_0x1de53b-0x0;let _0x1386d7=a749_0x3cce[_0x1de53b];return _0x1386d7;};const _0x5e3abf=a749_0x1386;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5e3abf('0x1'))[_0x5e3abf('0x0')](socket); \ No newline at end of file +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 diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 5b283b1..63fb4a8 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a750_0x1014=['register','emit','update','voicePrefix:','./voicePrefix.events','remove','save'];(function(_0x814748,_0x10142a){const _0x753ff0=function(_0x512024){while(--_0x512024){_0x814748['push'](_0x814748['shift']());}};_0x753ff0(++_0x10142a);}(a750_0x1014,0x180));const a750_0x753f=function(_0x814748,_0x10142a){_0x814748=_0x814748-0x0;let _0x753ff0=a750_0x1014[_0x814748];return _0x753ff0;};const _0x5ae87f=a750_0x753f;'use strict';const VoicePrefixEvents=require(_0x5ae87f('0x5')),events=[_0x5ae87f('0x0'),_0x5ae87f('0x6'),_0x5ae87f('0x3')];function createListener(_0x512024,_0x55e0f7){return function(_0x3b562a){const _0x233c44=a750_0x753f;_0x55e0f7[_0x233c44('0x2')](_0x512024,_0x3b562a);};}exports[_0x5ae87f('0x1')]=function(_0x544656){const _0x5f2a64=_0x5ae87f;for(let _0x57efd2=0x0,_0x9acca0=events['length'];_0x57efd2<_0x9acca0;_0x57efd2++){const _0x11d8fe=events[_0x57efd2],_0x3b1964=createListener(_0x5f2a64('0x4')+_0x11d8fe,_0x544656);VoicePrefixEvents['on'](_0x11d8fe,_0x3b1964);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index 10dd6bb..be7f295 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a751_0x193a=['removeBlackLists','post','addBlackLists','index','addTeams','delete','getBlackLists','./voiceQueue.controller','show','/:id/hopper_histories','isAuthenticated','/:id/blacklists','removeTeams','getAgents','getHopperFinals','clone','/:id/hopper_finals','removeAgents','create','Router','removeLists','getHopperBlacks','get','/:id/teams','getMembers','exports','/:id/users','put','/:id','/:id/members','addLists','getLists','getHoppers','/:id/lists'];(function(_0x51fbd2,_0x193a0e){const _0x179ca6=function(_0x51a6fc){while(--_0x51a6fc){_0x51fbd2['push'](_0x51fbd2['shift']());}};_0x179ca6(++_0x193a0e);}(a751_0x193a,0x126));const a751_0x179c=function(_0x51fbd2,_0x193a0e){_0x51fbd2=_0x51fbd2-0x0;let _0x179ca6=a751_0x193a[_0x51fbd2];return _0x179ca6;};const _0x356c7a=a751_0x179c;'use strict';const express=require('express'),router=express[_0x356c7a('0x1f')](),auth=require('../../components/auth/service'),controller=require(_0x356c7a('0x13'));router[_0x356c7a('0x0')]('/',auth[_0x356c7a('0x16')](),controller[_0x356c7a('0xf')]),router[_0x356c7a('0x0')](_0x356c7a('0x6'),auth['isAuthenticated'](),controller[_0x356c7a('0x14')]),router[_0x356c7a('0x0')]('/:id/hoppers',auth[_0x356c7a('0x16')](),controller[_0x356c7a('0xa')]),router[_0x356c7a('0x0')](_0x356c7a('0x15'),auth[_0x356c7a('0x16')](),controller['getHopperHistories']),router['get'](_0x356c7a('0x1c'),auth['isAuthenticated'](),controller[_0x356c7a('0x1a')]),router['get']('/:id/hopper_black',auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x21')]),router['get'](_0x356c7a('0x1'),auth[_0x356c7a('0x16')](),controller['getTeams']),router[_0x356c7a('0x0')](_0x356c7a('0x4'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x19')]),router[_0x356c7a('0x0')](_0x356c7a('0x7'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x2')]),router[_0x356c7a('0x0')](_0x356c7a('0xb'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x9')]),router[_0x356c7a('0x0')](_0x356c7a('0x17'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x12')]),router[_0x356c7a('0xd')]('/',auth['isAuthenticated'](),controller[_0x356c7a('0x1e')]),router[_0x356c7a('0xd')]('/:id/clone',auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x1b')]),router[_0x356c7a('0xd')](_0x356c7a('0x1'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x10')]),router[_0x356c7a('0xd')](_0x356c7a('0x4'),auth[_0x356c7a('0x16')](),controller['addAgents']),router[_0x356c7a('0xd')](_0x356c7a('0xb'),auth['isAuthenticated'](),controller[_0x356c7a('0x8')]),router[_0x356c7a('0xd')](_0x356c7a('0x17'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0xe')]),router[_0x356c7a('0x5')](_0x356c7a('0x6'),auth['isAuthenticated'](),controller['update']),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),router[_0x356c7a('0x11')](_0x356c7a('0x1'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x18')]),router[_0x356c7a('0x11')](_0x356c7a('0x4'),auth[_0x356c7a('0x16')](),controller[_0x356c7a('0x1d')]),router[_0x356c7a('0x11')](_0x356c7a('0xb'),auth['isAuthenticated'](),controller[_0x356c7a('0x20')]),router['delete']('/:id/blacklists',auth[_0x356c7a('0x16')](),controller[_0x356c7a('0xc')]),module[_0x356c7a('0x3')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index 83b0cef..06c5d30 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a752_0x4e3b=['setDataValue','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','default','tTxX','Only\x20for\x20predictive\x20method.','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','never','fewestcalls','ringall','type','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Total\x20Analysis\x20Time','UNSIGNED','#Congestion\x20Retry\x20(min:1,\x20max:999)','progressive','roundrobin','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Active/Disactive\x20Campaign','acw','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','joinempty','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Initial\x20Silence','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','sequelize','#Busy\x20Retry\x20(min:1,\x20max:999)','FLOAT','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','power','Dial\x20Method.','DESC','onlyIfOpen','#AMD\x20After\x20Greeting\x20Silence','split','dialMethod','random','mandatoryDispositionPauseId','wrandom','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Greeting','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','Active/Disactive\x20Recall\x20In\x20Queue','dropRate','STRING','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','#Machine\x20Retry\x20(min:1,\x20max:999)','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','agentBusyFactor','BOOLEAN','linear','yes','Cut\x20Digit\x20(min:1,\x20max:15)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','rrmemory','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','join','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','#AMD\x20Min\x20Word\x20Length','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','#RecallMe\x20Timeout\x20(min:1)','INTEGER','ENUM','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','strategy','Max\x209999\x20channels,\x200\x20means\x20unlimited.','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','rrordered','preview','inbound','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','getDataValue','07:00-22:00,*,*,*','booked','wrapuptime','predictive','exports','outbound','leastrecent','periodic_announce','leavewhenempty','once'];(function(_0x552a3e,_0x4e3b05){const _0x1ca91e=function(_0x1a5961){while(--_0x1a5961){_0x552a3e['push'](_0x552a3e['shift']());}};_0x1ca91e(++_0x4e3b05);}(a752_0x4e3b,0x16b));const a752_0x1ca9=function(_0x552a3e,_0x4e3b05){_0x552a3e=_0x552a3e-0x0;let _0x1ca91e=a752_0x4e3b[_0x552a3e];return _0x1ca91e;};const _0x2cea41=a752_0x1ca9;'use strict';const Sequelize=require(_0x2cea41('0x52'));module[_0x2cea41('0x33')]={'name':{'type':Sequelize[_0x2cea41('0x11')],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x2c'),_0x2cea41('0x34')),'allowNull':![],'defaultValue':_0x2cea41('0x2c')},'musiconhold':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':_0x2cea41('0x3b')},'announce':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':''},'strategy':{'type':Sequelize[_0x2cea41('0x24')]('rr','ringall',_0x2cea41('0x35'),_0x2cea41('0x40'),_0x2cea41('0x9'),_0x2cea41('0x1c'),_0x2cea41('0x18'),_0x2cea41('0xb'),_0x2cea41('0x2a')),'allowNull':![],'defaultValue':_0x2cea41('0x41'),'set':function(_0x1a5961){const _0x20ecc7=_0x2cea41;this[_0x20ecc7('0x39')](_0x20ecc7('0x26'),_0x1a5961?_0x1a5961:_0x20ecc7('0x1c'));},'get':function(){const _0xb44751=_0x2cea41,_0x204b83=this[_0xb44751('0x2e')](_0xb44751('0x42')),_0x32aa58=this[_0xb44751('0x2e')](_0xb44751('0x8')),_0x37cd1b=this[_0xb44751('0x2e')](_0xb44751('0x26'));if(_0x204b83===_0xb44751('0x2c'))return _0x37cd1b;if(_0x32aa58===_0xb44751('0x30')&&_0x37cd1b===_0xb44751('0x1c')||_0x32aa58===_0xb44751('0x30')&&_0x37cd1b===_0xb44751('0x48'))return _0x37cd1b;if(_0x32aa58===_0xb44751('0x47')||_0x32aa58===_0xb44751('0x32')||_0x32aa58===_0xb44751('0x2'))return _0x37cd1b;return null;}},'servicelevel':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'context':{'type':Sequelize['STRING'],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize['INTEGER'](0xb)},'timeout':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize['STRING']},'weight':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize['ENUM'](_0x2cea41('0x19'),'no'),'defaultValue':_0x2cea41('0x19')},'autopause':{'type':Sequelize['ENUM'](_0x2cea41('0x19'),'no','all'),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0x2cea41('0x23')](0xb)},'autopausebusy':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x2cea41('0x24')]('yes','no'),'defaultValue':'no'},'maxlen':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0x2cea41('0x24')]('yes','no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize['ENUM'](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize['STRING'],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x2cea41('0x11')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize[_0x2cea41('0x24')]('yes','no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no'),'defaultValue':_0x2cea41('0x19')},'announce_holdtime':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no',_0x2cea41('0x38')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no')},'announce_position_limit':{'type':Sequelize[_0x2cea41('0x23')](0xb)},'announce_round_seconds':{'type':Sequelize[_0x2cea41('0x24')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize['STRING'],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x2cea41('0x11')]},'queue_youarenext':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_thereare':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_minute':{'type':Sequelize[_0x2cea41('0x11')],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_seconds':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'queue_reporthold':{'type':Sequelize[_0x2cea41('0x11')]},'queue_quantity1':{'type':Sequelize['STRING']},'queue_quantity2':{'type':Sequelize['STRING']},'queue_periodic_announce':{'type':Sequelize[_0x2cea41('0x11')]},'queue_less_than':{'type':Sequelize['STRING']},'periodic_announce':{'type':Sequelize['TEXT'],'set':function(_0x172325){const _0x2fc1cf=_0x2cea41;this['setDataValue'](_0x2fc1cf('0x36'),_0x172325?_0x172325[_0x2fc1cf('0x1e')](','):[]);},'get':function(){const _0x50025d=_0x2cea41;return this[_0x50025d('0x2e')](_0x50025d('0x36'))?this['getDataValue'](_0x50025d('0x36'))[_0x50025d('0x7')](','):[];}},'joinempty':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':'yes','set':function(_0x5dbb68){const _0x17a7c3=_0x2cea41;this[_0x17a7c3('0x39')](_0x17a7c3('0x4e'),_0x5dbb68?_0x5dbb68['join'](','):undefined);},'get':function(){const _0x53e077=_0x2cea41;return this['getDataValue'](_0x53e077('0x4e'))?this[_0x53e077('0x2e')](_0x53e077('0x4e'))[_0x53e077('0x7')](','):undefined;}},'leavewhenempty':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':'no','set':function(_0x5cee4d){const _0x433900=_0x2cea41;this['setDataValue']('leavewhenempty',_0x5cee4d?_0x5cee4d[_0x433900('0x1e')](','):undefined);},'get':function(){const _0x23adef=_0x2cea41;return this['getDataValue'](_0x23adef('0x37'))?this['getDataValue'](_0x23adef('0x37'))['split'](','):undefined;}},'reportholdtime':{'type':Sequelize[_0x2cea41('0x24')]('yes','no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize['ENUM'](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x19'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize[_0x2cea41('0x11')]},'description':{'type':Sequelize[_0x2cea41('0x11')]},'acw':{'type':Sequelize[_0x2cea41('0x17')],'defaultValue':0x0,'set':function(_0x2e1b61){const _0x56e2fa=_0x2cea41;this[_0x56e2fa('0x39')](_0x56e2fa('0x4b'),_0x2e1b61),_0x2e1b61&&(this[_0x56e2fa('0x2e')](_0x56e2fa('0x31'))<0x2&&this[_0x56e2fa('0x39')](_0x56e2fa('0x31'),0x2));}},'acwTimeout':{'type':Sequelize[_0x2cea41('0x23')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x2cea41('0x17')],'defaultValue':0x0,'comment':_0x2cea41('0x4a')},'dialMethod':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x2b'),_0x2cea41('0x47'),'power',_0x2cea41('0x32'),_0x2cea41('0x30')),'defaultValue':'progressive','comment':_0x2cea41('0x3')},'dialLimitChannel':{'type':Sequelize[_0x2cea41('0x23')](0x4)[_0x2cea41('0x45')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x2cea41('0x27')},'dialLimitQueue':{'type':Sequelize[_0x2cea41('0x23')](0x4)[_0x2cea41('0x45')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x2cea41('0x1f')},'dialPowerLevel':{'type':Sequelize[_0x2cea41('0x0')](0x2)[_0x2cea41('0x45')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0x2cea41('0x12')},'dialPredictiveOptimization':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x16'),_0x2cea41('0x10')),'defaultValue':_0x2cea41('0x10'),'comment':_0x2cea41('0x3d')},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x2cea41('0x0')](0x2)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0x2cea41('0x14')},'dialPredictiveInterval':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':'Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)'},'dialOriginateCallerIdName':{'type':Sequelize[_0x2cea41('0x11')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x2cea41('0x11')]},'dialOriginateTimeout':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x3e')},'dialQueueOptions':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':_0x2cea41('0x3c'),'comment':_0x2cea41('0x1')},'dialQueueTimeout':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialQueueProject':{'type':Sequelize['STRING'],'comment':_0x2cea41('0xe')},'dialCongestionMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x46')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x49')},'dialBusyMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x53')},'dialBusyRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'comment':_0x2cea41('0x51')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x28')},'dialGlobalMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x2cea41('0x43')},'dialTimezone':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0x2cea41('0x2f')},'dialPrefix':{'type':Sequelize[_0x2cea41('0x11')],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x2cea41('0x24')]('always',_0x2cea41('0x3f'),_0x2cea41('0x5')),'defaultValue':'always'},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x2cea41('0x23')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x2cea41('0x50')},'dialAMDGreeting':{'type':Sequelize[_0x2cea41('0x23')](0x9)[_0x2cea41('0x45')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x2cea41('0xd')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x2cea41('0x45')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x2cea41('0x6')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x2cea41('0x23')](0x9)[_0x2cea41('0x45')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x2cea41('0x44')},'dialAMDMinWordLength':{'type':Sequelize[_0x2cea41('0x23')](0x9)[_0x2cea41('0x45')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x2cea41('0x20')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x2cea41('0x23')](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x2cea41('0xc')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x2cea41('0x23')](0x9)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)[_0x2cea41('0x45')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x2cea41('0x2d')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x2cea41('0x23')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialRecallMeTimeout':{'type':Sequelize['INTEGER'](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x2cea41('0x22')},'dialRecallInQueue':{'type':Sequelize[_0x2cea41('0x17')],'defaultValue':0x0,'comment':_0x2cea41('0xf')},'dialOrderByScheduledAt':{'type':Sequelize[_0x2cea41('0x24')](_0x2cea41('0x4'),'ASC'),'defaultValue':_0x2cea41('0x4')},'dialQueueProject2':{'type':Sequelize[_0x2cea41('0x11')],'comment':_0x2cea41('0xe')},'dialAgiAfterHangupClient':{'type':Sequelize[_0x2cea41('0x17')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x2cea41('0x17')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x2cea41('0x4c')},'dialCutDigit':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x2cea41('0x1a')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x15')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x3a')},'dialDropMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Drop\x20Retry\x20(min:1,\x20max:999)'},'dialDropRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x1d')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x1b')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x29')},'dialMachineMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x13')},'dialMachineRetryFrequency':{'type':Sequelize[_0x2cea41('0x23')](0x5)[_0x2cea41('0x45')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x4f')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x2cea41('0x23')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cea41('0x4d')},'dialAgentRejectRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2cea41('0x25')},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'comment':_0x2cea41('0x21')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x223532){const _0x288a30=_0x2cea41;if(!_0x223532)this[_0x288a30('0x39')](_0x288a30('0xa'),null);this['setDataValue']('mandatoryDisposition',_0x223532);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize[_0x2cea41('0x23')](0x3)['UNSIGNED'],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize[_0x2cea41('0x23')](0x3)[_0x2cea41('0x45')],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.controller.js b/server/api/voiceQueue/voiceQueue.controller.js index f211518..0b5dfd8 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a753_0x1abb=['onlyIfOpen','COALESCE(phone,\x27\x27)','ut.UserId\x20=\x20?','penalty','userVoiceQueue:save','VoiceQueues','format','map','inbound','addAgents','addTeams','includes','query','emit','intersection','fromQuery','send','user','getTeams','../../config/logger','filter','push','stack','index','like','clone','includeAll','cm_hopper','api','outbound','then','nolimit','getBlackLists','forEach','field','ids','online','error','attributes','options','model','select','catch','findOne','CmHopperFinal','omit','pick','UserProfileResource','sendStatus','user_has_teams','rows','CmHopperHistory','getLists','removeLists','register','all','findOrCreate','cm_hopper_final','VIRTUAL','sequelize','length','count','User','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','undefined','COALESCE(calleridnum,\x27\x27)','isEmpty','Team','where','include','ContactId','show','into','getHopperHistories','../../mysqldb','name','NOW()','type','dialCheckDuplicateType','createdAt','insert','limit','UserVoiceQueueRt','find','scheduledAt','removeAgents','json','ListId','get','params','from','CmListId','phone','voicePause','upsert','filters','offset','getHoppers','VoiceQueue','union','addLists','rawAttributes','teams','ignore','QueueCampaigns','value','ListId\x20=\x20?','fields','deletedAt\x20IS\x20NULL','merge','../../components/parsers/qs','each','updatedAt','getHopperFinals','CmList','cm_contacts','findAll','isNil','update','ut.TeamId\x20=\x20tq.TeamId','util','CmHopperBlack','UserProfileSection','autoAssociation','SIP/%s','getAgents','keys','Unable\x20to\x20retrieve\x20the\x20current\x20user','lodash','always','phone\x20IS\x20NOT\x20NULL','create','role','userVoiceQueue:remove','tq.TeamId','Agents','interface','compact','userProfileId','VoiceQueueId\x20=\x20?','VoiceQueueId','fieldName','transaction','sort','every','getMembers','removeBlackLists','status','toString','TeamId','cm_hopper_black','set','body','addBlackLists','destroy','CmHopper','Content-Range','order','phone\x20NOT\x20IN\x20(?)'];(function(_0x587e7d,_0x1abb8b){const _0x258322=function(_0x3b491a){while(--_0x3b491a){_0x587e7d['push'](_0x587e7d['shift']());}};_0x258322(++_0x1abb8b);}(a753_0x1abb,0x9b));const a753_0x2583=function(_0x587e7d,_0x1abb8b){_0x587e7d=_0x587e7d-0x0;let _0x258322=a753_0x1abb[_0x587e7d];return _0x258322;};const _0x40e0a3=a753_0x2583;'use strict';const util=require(_0x40e0a3('0x7c')),_=require(_0x40e0a3('0x84')),squel=require('squel'),qs=require(_0x40e0a3('0x72')),logger=require(_0x40e0a3('0x17'))(_0x40e0a3('0x20')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x40e0a3('0x4e'))['db'],{Op,QueryTypes}=require(_0x40e0a3('0x3f'));require('./voiceQueue.socket')[_0x40e0a3('0x3a')](socket);function respondWithStatusCode(_0x3b491a,_0x44ecbe){return _0x44ecbe=_0x44ecbe||0xcc,function(_0xf18cb9){const _0x440378=a753_0x2583;if(_0xf18cb9)return _0x3b491a[_0x440378('0x34')](_0x44ecbe);return _0x3b491a[_0x440378('0x97')](_0x44ecbe)['end']();};}function respondWithResult(_0xe1c724,_0x38a666){return _0x38a666=_0x38a666||0xc8,function(_0xdf0066){const _0x3b3cee=a753_0x2583;if(_0xdf0066)return _0xe1c724['status'](_0x38a666)[_0x3b3cee('0x5a')](_0xdf0066);};}function respondWithFilteredResult(_0x1ad695,_0x2dc57c){return function(_0x580f2d){const _0xf0909f=a753_0x2583;if(_0x580f2d){const _0x37f79a=_0x580f2d[_0xf0909f('0x41')],_0x557dcd=_0x2dc57c[_0xf0909f('0x64')];let _0x2c824c=_0x2dc57c[_0xf0909f('0x64')]+_0x2dc57c[_0xf0909f('0x55')],_0x242558;return _0x2c824c>=_0x37f79a?(_0x2c824c=_0x37f79a,_0x242558=0xc8):_0x242558=0xce,_0x1ad695['status'](_0x242558),_0x1ad695[_0xf0909f('0x9b')](_0xf0909f('0x1'),_0x557dcd+'-'+_0x2c824c+'/'+_0x37f79a)[_0xf0909f('0x5a')](_0x580f2d);}return null;};}function saveUpdates(_0x37c6ab){return function(_0x2ae894){const _0x189676=a753_0x2583;if(_0x2ae894)return _0x2ae894[_0x189676('0x7a')](_0x37c6ab)['then'](function(_0x631fd1){return _0x631fd1;});return null;};}function removeEntity(_0x1d8c66){return function(_0x5a4c9e){const _0x3bbc6c=a753_0x2583;if(_0x5a4c9e)return _0x5a4c9e[_0x3bbc6c('0x9e')]()[_0x3bbc6c('0x22')](function(){const _0x5460bc=_0x3bbc6c,_0x6321fa=_0x5a4c9e[_0x5460bc('0x5c')]({'plain':!![]}),_0x30953a=[{'name':'VoiceQueues','value':'inbound','ignore':![]},{'name':'QueueCampaigns','value':_0x5460bc('0x21'),'ignore':![]}],_0x1b89cd=_(_0x30953a)[_0x5460bc('0x18')](_0x5460bc('0x6b'))[_0x5460bc('0xb')]('value')[_0x5460bc('0x6d')]();if(_[_0x5460bc('0xf')](_0x1b89cd,_0x6321fa[_0x5460bc('0x51')]))return;const _0x81097d=_[_0x5460bc('0x57')](_0x30953a,[_0x5460bc('0x6d'),_0x6321fa['type']])['name'];return db[_0x5460bc('0x33')][_0x5460bc('0x9e')]({'where':{'type':_0x81097d,'resourceId':_0x6321fa['id']}})[_0x5460bc('0x22')](function(){return _0x5a4c9e;});})['then'](function(){const _0x3068d3=_0x3bbc6c;_0x1d8c66[_0x3068d3('0x97')](0xcc)['end']();});};}function handleEntityNotFound(_0x57c7b6){return function(_0x509aaa){const _0xa90023=a753_0x2583;return!_0x509aaa&&_0x57c7b6[_0xa90023('0x34')](0x194),_0x509aaa;};}function handleError(_0x4e76c4,_0x18cfc7){return _0x18cfc7=_0x18cfc7||0x1f4,function(_0x5ceb90){const _0xacfe9d=a753_0x2583;logger[_0xacfe9d('0x29')](_0x5ceb90[_0xacfe9d('0x1a')]),_0x5ceb90[_0xacfe9d('0x4f')]&&delete _0x5ceb90[_0xacfe9d('0x4f')],_0x4e76c4['status'](_0x18cfc7)[_0xacfe9d('0x14')](_0x5ceb90);};}exports[_0x40e0a3('0x1b')]=function(_0x4e9434,_0x4bbaa6){const _0x1dc810=_0x40e0a3;let _0x22e96a={};const _0x1c6ee5={},_0x430875={'count':0x0,'rows':[]},_0x26146e=_[_0x1dc810('0xb')](db[_0x1dc810('0x66')][_0x1dc810('0x69')],function(_0x29ae02){const _0x2c45d1=_0x1dc810;return{'name':_0x29ae02[_0x2c45d1('0x91')],'type':_0x29ae02[_0x2c45d1('0x51')]['key']};});_0x1c6ee5[_0x1dc810('0x2c')]=_[_0x1dc810('0xb')](_0x26146e,_0x1dc810('0x4f')),_0x1c6ee5[_0x1dc810('0x10')]=_[_0x1dc810('0x82')](_0x4e9434['query']),_0x1c6ee5[_0x1dc810('0x63')]=_[_0x1dc810('0x12')](_0x1c6ee5['model'],_0x1c6ee5[_0x1dc810('0x10')]),_0x22e96a[_0x1dc810('0x2a')]=_[_0x1dc810('0x12')](_0x1c6ee5[_0x1dc810('0x2c')],qs[_0x1dc810('0x6f')](_0x4e9434[_0x1dc810('0x10')][_0x1dc810('0x6f')])),_0x22e96a[_0x1dc810('0x2a')]=_0x22e96a['attributes']['length']?_0x22e96a[_0x1dc810('0x2a')]:_0x1c6ee5[_0x1dc810('0x2c')];typeof _0x4e9434['query']['nolimit']===_0x1dc810('0x44')&&(_0x22e96a[_0x1dc810('0x55')]=qs[_0x1dc810('0x55')](_0x4e9434[_0x1dc810('0x10')][_0x1dc810('0x55')]),_0x22e96a[_0x1dc810('0x64')]=qs[_0x1dc810('0x64')](_0x4e9434[_0x1dc810('0x10')]['offset']));_0x22e96a['order']=qs[_0x1dc810('0x93')](_0x4e9434[_0x1dc810('0x10')][_0x1dc810('0x93')]),_0x22e96a[_0x1dc810('0x48')]=qs[_0x1dc810('0x63')](_['pick'](_0x4e9434[_0x1dc810('0x10')],_0x1c6ee5['filters']),_0x26146e);_0x4e9434[_0x1dc810('0x10')][_0x1dc810('0x18')]&&(_0x22e96a[_0x1dc810('0x48')]=_['merge'](_0x22e96a[_0x1dc810('0x48')],{[Op['or']]:_[_0x1dc810('0xb')](_0x26146e,function(_0x67c4bb){const _0x53c064=_0x1dc810;if(_0x67c4bb[_0x53c064('0x51')]!==_0x53c064('0x3e')){const _0x521ac2={};return _0x521ac2[_0x67c4bb[_0x53c064('0x4f')]]={[Op[_0x53c064('0x1c')]]:'%'+_0x4e9434[_0x53c064('0x10')][_0x53c064('0x18')]+'%'},_0x521ac2;}})}));_0x22e96a=_[_0x1dc810('0x71')]({},_0x22e96a,_0x4e9434[_0x1dc810('0x2b')]);const _0x3ce3f0={'where':_0x22e96a[_0x1dc810('0x48')]};return db[_0x1dc810('0x66')][_0x1dc810('0x41')](_0x3ce3f0)[_0x1dc810('0x22')](function(_0x105322){const _0x5cdc30=_0x1dc810;return _0x430875[_0x5cdc30('0x41')]=_0x105322,_0x4e9434[_0x5cdc30('0x10')][_0x5cdc30('0x1e')]&&(_0x22e96a[_0x5cdc30('0x49')]=[{'all':!![]}]),db[_0x5cdc30('0x66')][_0x5cdc30('0x78')](_0x22e96a);})[_0x1dc810('0x22')](function(_0x4a53f6){const _0x536ea8=_0x1dc810;return _0x430875[_0x536ea8('0x36')]=_0x4a53f6,_0x430875;})[_0x1dc810('0x22')](respondWithFilteredResult(_0x4bbaa6,_0x22e96a))[_0x1dc810('0x2e')](handleError(_0x4bbaa6,null));},exports[_0x40e0a3('0x4b')]=function(_0xb2afea,_0xaa1d46){const _0x45f8c4=_0x40e0a3;let _0x3f6bb4={'raw':![],'where':{'id':_0xb2afea['params']['id']}};const _0x45e721={};return _0x45e721[_0x45f8c4('0x2c')]=_['keys'](db[_0x45f8c4('0x66')][_0x45f8c4('0x69')]),_0x45e721[_0x45f8c4('0x10')]=_['keys'](_0xb2afea[_0x45f8c4('0x10')]),_0x45e721[_0x45f8c4('0x63')]=_[_0x45f8c4('0x12')](_0x45e721[_0x45f8c4('0x2c')],_0x45e721[_0x45f8c4('0x10')]),_0x3f6bb4[_0x45f8c4('0x2a')]=_[_0x45f8c4('0x12')](_0x45e721[_0x45f8c4('0x2c')],qs['fields'](_0xb2afea['query'][_0x45f8c4('0x6f')])),_0x3f6bb4['attributes']=_0x3f6bb4['attributes'][_0x45f8c4('0x40')]?_0x3f6bb4[_0x45f8c4('0x2a')]:_0x45e721[_0x45f8c4('0x2c')],_0xb2afea[_0x45f8c4('0x10')]['includeAll']&&(_0x3f6bb4[_0x45f8c4('0x49')]=[{'all':!![]}]),_0x3f6bb4=_[_0x45f8c4('0x71')]({},_0x3f6bb4,_0xb2afea[_0x45f8c4('0x2b')]),db['VoiceQueue'][_0x45f8c4('0x2f')](_0x3f6bb4)[_0x45f8c4('0x22')](handleEntityNotFound(_0xaa1d46,null))[_0x45f8c4('0x22')](respondWithResult(_0xaa1d46,null))[_0x45f8c4('0x2e')](handleError(_0xaa1d46,null));},exports['create']=function(_0x23fa93,_0x24f549){const _0x243a5a=_0x40e0a3;return db[_0x243a5a('0x66')]['create'](_0x23fa93[_0x243a5a('0x9c')],{})[_0x243a5a('0x22')](function(_0x2c0712){const _0x8878c7=_0x243a5a,_0x5abc4c=_0x23fa93[_0x8878c7('0x15')][_0x8878c7('0x5c')]({'plain':!![]});if(!_0x5abc4c)throw new Error(_0x8878c7('0x83'));if(_0x5abc4c['role']===_0x8878c7('0x15')){const _0x3cbc03=_0x2c0712[_0x8878c7('0x5c')]({'plain':!![]}),_0x1ba730=[{'name':_0x8878c7('0x9'),'value':'inbound'},{'name':_0x8878c7('0x6c'),'value':_0x8878c7('0x21')}],_0x5c539a=_['find'](_0x1ba730,[_0x8878c7('0x6d'),_0x3cbc03[_0x8878c7('0x51')]])[_0x8878c7('0x4f')];return db['UserProfileSection'][_0x8878c7('0x2f')]({'where':{'name':_0x5c539a,'userProfileId':_0x5abc4c[_0x8878c7('0x8e')]},'raw':!![]})[_0x8878c7('0x22')](function(_0x588e79){const _0x580b47=_0x8878c7;return _0x588e79&&_0x588e79[_0x580b47('0x7f')]===0x0?db[_0x580b47('0x33')][_0x580b47('0x87')]({'name':_0x3cbc03[_0x580b47('0x4f')],'resourceId':_0x3cbc03['id'],'type':_0x588e79[_0x580b47('0x4f')],'sectionId':_0x588e79['id']},{})[_0x580b47('0x22')](function(){return _0x2c0712;}):_0x2c0712;})[_0x8878c7('0x2e')](function(_0x44d9fe){const _0x3ed1c3=_0x8878c7;logger[_0x3ed1c3('0x29')](_0x3ed1c3('0x43'),_0x44d9fe);throw _0x44d9fe;});}return _0x2c0712;})[_0x243a5a('0x22')](respondWithResult(_0x24f549,0xc9))[_0x243a5a('0x2e')](handleError(_0x24f549,null));},exports['clone']=function(_0x232dc5,_0x290298){const _0x36451e=_0x40e0a3;let _0x34e47={'where':{'id':_0x232dc5[_0x36451e('0x5d')]['id']}};const _0x179184={};return _0x179184[_0x36451e('0x2c')]=_[_0x36451e('0x82')](db[_0x36451e('0x66')][_0x36451e('0x69')]),_0x34e47[_0x36451e('0x2a')]=_[_0x36451e('0x12')](_0x179184[_0x36451e('0x2c')],qs[_0x36451e('0x6f')](_0x232dc5[_0x36451e('0x10')][_0x36451e('0x6f')])),_0x34e47[_0x36451e('0x2a')]=_0x34e47[_0x36451e('0x2a')][_0x36451e('0x40')]?_0x34e47[_0x36451e('0x2a')]:_0x179184[_0x36451e('0x2c')],_0x232dc5[_0x36451e('0x10')][_0x36451e('0x1e')]&&(_0x34e47[_0x36451e('0x49')]=[{'all':!![]}]),_0x34e47=_[_0x36451e('0x71')]({},_0x34e47,_0x232dc5['options']),db[_0x36451e('0x66')]['findOne'](_0x34e47)['then'](handleEntityNotFound(_0x290298,null))['then'](function(_0x464c0f){const _0x14aa5e=_0x36451e;if(_0x464c0f){let _0x11cdd9=_0x464c0f[_0x14aa5e('0x5c')]({'plain':!![]});return _0x11cdd9=qs[_0x14aa5e('0x31')](_0x11cdd9,['id',_0x14aa5e('0x53'),'updatedAt']),_0x232dc5[_0x14aa5e('0x9c')]=_['omit'](_0x232dc5[_0x14aa5e('0x9c')],['id',_0x14aa5e('0x53'),_0x14aa5e('0x74')]),db['VoiceQueue']['create'](_[_0x14aa5e('0x71')](_0x11cdd9,_0x232dc5[_0x14aa5e('0x9c')]),{'include':_0x232dc5[_0x14aa5e('0x10')][_0x14aa5e('0x1e')]?[{'all':!![]}]:undefined})['then'](function(_0x2b1d1){const _0x57688a=_0x14aa5e,_0xa85832=_0x232dc5[_0x57688a('0x15')][_0x57688a('0x5c')]({'plain':!![]});if(!_0xa85832)throw new Error(_0x57688a('0x83'));if(_0xa85832[_0x57688a('0x88')]===_0x57688a('0x15')){const _0x17dc9f=_0x2b1d1[_0x57688a('0x5c')]({'plain':!![]}),_0x23cece=[{'name':'VoiceQueues','value':_0x57688a('0xc')},{'name':_0x57688a('0x6c'),'value':_0x57688a('0x21')}],_0x58e66b=_[_0x57688a('0x57')](_0x23cece,[_0x57688a('0x6d'),_0x17dc9f[_0x57688a('0x51')]])[_0x57688a('0x4f')];return db[_0x57688a('0x7e')][_0x57688a('0x2f')]({'where':{'name':_0x58e66b,'userProfileId':_0xa85832[_0x57688a('0x8e')]},'raw':!![]})['then'](function(_0x4b7950){const _0x3c19cb=_0x57688a;return _0x4b7950&&_0x4b7950[_0x3c19cb('0x7f')]===0x0?db['UserProfileResource'][_0x3c19cb('0x87')]({'name':_0x17dc9f[_0x3c19cb('0x4f')],'resourceId':_0x17dc9f['id'],'type':_0x4b7950[_0x3c19cb('0x4f')],'sectionId':_0x4b7950['id']},{})[_0x3c19cb('0x22')](function(){return _0x2b1d1;}):_0x2b1d1;})[_0x57688a('0x2e')](function(_0x4c763e){const _0xa1d449=_0x57688a;logger[_0xa1d449('0x29')](_0xa1d449('0x43'),_0x4c763e);throw _0x4c763e;});}return _0x2b1d1;});}})[_0x36451e('0x22')](respondWithResult(_0x290298,0xc9))[_0x36451e('0x2e')](handleError(_0x290298,null));},exports[_0x40e0a3('0x7a')]=function(_0x2b38dd,_0x54128e){const _0x298566=_0x40e0a3;return _0x2b38dd['body']['id']&&delete _0x2b38dd[_0x298566('0x9c')]['id'],db[_0x298566('0x66')][_0x298566('0x2f')]({'where':{'id':_0x2b38dd[_0x298566('0x5d')]['id']}})['then'](handleEntityNotFound(_0x54128e,null))[_0x298566('0x22')](saveUpdates(_0x2b38dd[_0x298566('0x9c')],null))[_0x298566('0x22')](respondWithResult(_0x54128e,null))[_0x298566('0x2e')](handleError(_0x54128e,null));},exports['destroy']=function(_0x47cff1,_0x5b8ecd){const _0x1cf05b=_0x40e0a3;return db[_0x1cf05b('0x66')][_0x1cf05b('0x2f')]({'where':{'id':_0x47cff1[_0x1cf05b('0x5d')]['id']}})[_0x1cf05b('0x22')](handleEntityNotFound(_0x5b8ecd,null))[_0x1cf05b('0x22')](removeEntity(_0x5b8ecd,null))[_0x1cf05b('0x2e')](handleError(_0x5b8ecd,null));},exports[_0x40e0a3('0x65')]=function(_0x29ab0a,_0x2f9158){const _0x25a9fb=_0x40e0a3;let _0x3533d2={'raw':![],'where':{}};const _0x5455a0={},_0x6cd3a7={'count':0x0,'rows':[]};return db[_0x25a9fb('0x66')][_0x25a9fb('0x2f')]({'where':{'id':_0x29ab0a[_0x25a9fb('0x5d')]['id']}})[_0x25a9fb('0x22')](handleEntityNotFound(_0x2f9158,null))[_0x25a9fb('0x22')](function(_0x4a9aa8){const _0x3ac576=_0x25a9fb;if(_0x4a9aa8)return _0x5455a0[_0x3ac576('0x2c')]=_[_0x3ac576('0x82')](db[_0x3ac576('0x0')][_0x3ac576('0x69')]),_0x5455a0[_0x3ac576('0x10')]=_[_0x3ac576('0x82')](_0x29ab0a[_0x3ac576('0x10')]),_0x5455a0[_0x3ac576('0x63')]=_[_0x3ac576('0x12')](_0x5455a0[_0x3ac576('0x2c')],_0x5455a0['query']),_0x3533d2['attributes']=_['intersection'](_0x5455a0[_0x3ac576('0x2c')],qs[_0x3ac576('0x6f')](_0x29ab0a[_0x3ac576('0x10')]['fields'])),_0x3533d2[_0x3ac576('0x2a')]=_0x3533d2[_0x3ac576('0x2a')][_0x3ac576('0x40')]?_0x3533d2['attributes']:_0x5455a0[_0x3ac576('0x2c')],typeof _0x29ab0a[_0x3ac576('0x10')][_0x3ac576('0x23')]==='undefined'&&(_0x3533d2[_0x3ac576('0x55')]=qs[_0x3ac576('0x55')](_0x29ab0a['query'][_0x3ac576('0x55')]),_0x3533d2['offset']=qs['offset'](_0x29ab0a[_0x3ac576('0x10')][_0x3ac576('0x64')])),_0x3533d2[_0x3ac576('0x2')]=qs[_0x3ac576('0x93')](_0x29ab0a[_0x3ac576('0x10')]['sort']),_0x3533d2[_0x3ac576('0x48')]=qs[_0x3ac576('0x63')](_[_0x3ac576('0x32')](_0x29ab0a[_0x3ac576('0x10')],_0x5455a0[_0x3ac576('0x63')])),_0x3533d2[_0x3ac576('0x48')][_0x3ac576('0x90')]=_0x4a9aa8['id'],_0x29ab0a[_0x3ac576('0x10')][_0x3ac576('0x18')]&&(_0x3533d2['where']=_[_0x3ac576('0x71')](_0x3533d2[_0x3ac576('0x48')],{[Op['or']]:_[_0x3ac576('0xb')](_0x3533d2[_0x3ac576('0x2a')],function(_0x15eedd){const _0x489908=_0x3ac576,_0x337038={};return _0x337038[_0x15eedd]={[Op[_0x489908('0x1c')]]:'%'+_0x29ab0a['query'][_0x489908('0x18')]+'%'},_0x337038;})})),_0x3533d2=_[_0x3ac576('0x71')]({},_0x3533d2,_0x29ab0a[_0x3ac576('0x2b')]),db['CmHopper'][_0x3ac576('0x41')]({'where':_0x3533d2[_0x3ac576('0x48')]})['then'](function(_0x287b9e){const _0x157af2=_0x3ac576;return _0x6cd3a7[_0x157af2('0x41')]=_0x287b9e,_0x29ab0a[_0x157af2('0x10')][_0x157af2('0x1e')]&&(_0x3533d2[_0x157af2('0x49')]=[{'all':!![]}]),db[_0x157af2('0x0')][_0x157af2('0x78')](_0x3533d2);})[_0x3ac576('0x22')](function(_0x18da7b){const _0x4ad958=_0x3ac576;return _0x6cd3a7[_0x4ad958('0x36')]=_0x18da7b,_0x6cd3a7;});})[_0x25a9fb('0x22')](respondWithFilteredResult(_0x2f9158,_0x3533d2))['catch'](handleError(_0x2f9158,null));},exports[_0x40e0a3('0x4d')]=function(_0x126ccb,_0xc91c40){const _0x53a2dd=_0x40e0a3;let _0x2b8dd7={'raw':!![],'where':{}};const _0x44d7af={},_0x4acd5a={'count':0x0,'rows':[]};return db[_0x53a2dd('0x66')]['findOne']({'where':{'id':_0x126ccb[_0x53a2dd('0x5d')]['id']}})['then'](handleEntityNotFound(_0xc91c40,null))[_0x53a2dd('0x22')](function(_0x74c258){const _0x46222e=_0x53a2dd;if(_0x74c258)return _0x44d7af[_0x46222e('0x2c')]=_[_0x46222e('0x82')](db[_0x46222e('0x37')][_0x46222e('0x69')]),_0x44d7af[_0x46222e('0x10')]=_[_0x46222e('0x82')](_0x126ccb[_0x46222e('0x10')]),_0x44d7af['filters']=_['intersection'](_0x44d7af[_0x46222e('0x2c')],_0x44d7af[_0x46222e('0x10')]),_0x2b8dd7['attributes']=_[_0x46222e('0x12')](_0x44d7af['model'],qs[_0x46222e('0x6f')](_0x126ccb[_0x46222e('0x10')][_0x46222e('0x6f')])),_0x2b8dd7[_0x46222e('0x2a')]=_0x2b8dd7[_0x46222e('0x2a')][_0x46222e('0x40')]?_0x2b8dd7[_0x46222e('0x2a')]:_0x44d7af[_0x46222e('0x2c')],typeof _0x126ccb['query'][_0x46222e('0x23')]===_0x46222e('0x44')&&(_0x2b8dd7[_0x46222e('0x55')]=qs[_0x46222e('0x55')](_0x126ccb['query']['limit']),_0x2b8dd7[_0x46222e('0x64')]=qs[_0x46222e('0x64')](_0x126ccb[_0x46222e('0x10')][_0x46222e('0x64')])),_0x2b8dd7[_0x46222e('0x2')]=qs[_0x46222e('0x93')](_0x126ccb['query'][_0x46222e('0x93')]),_0x2b8dd7[_0x46222e('0x48')]=qs[_0x46222e('0x63')](_[_0x46222e('0x32')](_0x126ccb[_0x46222e('0x10')],_0x44d7af[_0x46222e('0x63')])),_0x2b8dd7['where'][_0x46222e('0x90')]=_0x74c258['id'],_0x126ccb['query'][_0x46222e('0x18')]&&(_0x2b8dd7[_0x46222e('0x48')]=_[_0x46222e('0x71')](_0x2b8dd7[_0x46222e('0x48')],{[Op['or']]:_[_0x46222e('0xb')](_0x2b8dd7['attributes'],function(_0x47ae62){const _0xeb2140=_0x46222e,_0x1eb8fd={};return _0x1eb8fd[_0x47ae62]={[Op['like']]:'%'+_0x126ccb[_0xeb2140('0x10')]['filter']+'%'},_0x1eb8fd;})})),_0x2b8dd7=_[_0x46222e('0x71')]({},_0x2b8dd7,_0x126ccb[_0x46222e('0x2b')]),db[_0x46222e('0x37')][_0x46222e('0x41')]({'where':_0x2b8dd7[_0x46222e('0x48')]})['then'](function(_0x3999a1){const _0xf9eb33=_0x46222e;return _0x4acd5a[_0xf9eb33('0x41')]=_0x3999a1,_0x126ccb[_0xf9eb33('0x10')]['includeAll']&&(_0x2b8dd7[_0xf9eb33('0x49')]=[{'all':!![]}]),db[_0xf9eb33('0x37')][_0xf9eb33('0x78')](_0x2b8dd7);})[_0x46222e('0x22')](function(_0x5727ad){const _0x340386=_0x46222e;return _0x4acd5a[_0x340386('0x36')]=_0x5727ad,_0x4acd5a;});})[_0x53a2dd('0x22')](respondWithFilteredResult(_0xc91c40,_0x2b8dd7))[_0x53a2dd('0x2e')](handleError(_0xc91c40,null));},exports[_0x40e0a3('0x75')]=function(_0x560ed1,_0x112dc8){const _0x5a80e5=_0x40e0a3;let _0x21b5b7={'raw':!![],'where':{}};const _0xe4d2a8={},_0x283820={'count':0x0,'rows':[]};return db[_0x5a80e5('0x66')][_0x5a80e5('0x2f')]({'where':{'id':_0x560ed1['params']['id']}})[_0x5a80e5('0x22')](handleEntityNotFound(_0x112dc8,null))['then'](function(_0x385d4b){const _0x8a53bf=_0x5a80e5;if(_0x385d4b)return _0xe4d2a8['model']=_['keys'](db[_0x8a53bf('0x30')][_0x8a53bf('0x69')]),_0xe4d2a8[_0x8a53bf('0x10')]=_[_0x8a53bf('0x82')](_0x560ed1[_0x8a53bf('0x10')]),_0xe4d2a8[_0x8a53bf('0x63')]=_['intersection'](_0xe4d2a8['model'],_0xe4d2a8[_0x8a53bf('0x10')]),_0x21b5b7[_0x8a53bf('0x2a')]=_[_0x8a53bf('0x12')](_0xe4d2a8[_0x8a53bf('0x2c')],qs[_0x8a53bf('0x6f')](_0x560ed1['query']['fields'])),_0x21b5b7['attributes']=_0x21b5b7['attributes']['length']?_0x21b5b7[_0x8a53bf('0x2a')]:_0xe4d2a8[_0x8a53bf('0x2c')],typeof _0x560ed1[_0x8a53bf('0x10')]['nolimit']===_0x8a53bf('0x44')&&(_0x21b5b7[_0x8a53bf('0x55')]=qs['limit'](_0x560ed1[_0x8a53bf('0x10')][_0x8a53bf('0x55')]),_0x21b5b7[_0x8a53bf('0x64')]=qs['offset'](_0x560ed1[_0x8a53bf('0x10')][_0x8a53bf('0x64')])),_0x21b5b7[_0x8a53bf('0x2')]=qs[_0x8a53bf('0x93')](_0x560ed1[_0x8a53bf('0x10')]['sort']),_0x21b5b7[_0x8a53bf('0x48')]=qs[_0x8a53bf('0x63')](_['pick'](_0x560ed1[_0x8a53bf('0x10')],_0xe4d2a8[_0x8a53bf('0x63')])),_0x21b5b7[_0x8a53bf('0x48')]['VoiceQueueId']=_0x385d4b['id'],_0x560ed1[_0x8a53bf('0x10')]['filter']&&(_0x21b5b7[_0x8a53bf('0x48')]=_['merge'](_0x21b5b7[_0x8a53bf('0x48')],{[Op['or']]:_['map'](_0x21b5b7[_0x8a53bf('0x2a')],function(_0x15f211){const _0x3d6d56=_0x8a53bf,_0x5d414a={};return _0x5d414a[_0x15f211]={[Op[_0x3d6d56('0x1c')]]:'%'+_0x560ed1['query']['filter']+'%'},_0x5d414a;})})),_0x21b5b7=_[_0x8a53bf('0x71')]({},_0x21b5b7,_0x560ed1['options']),db[_0x8a53bf('0x30')][_0x8a53bf('0x41')]({'where':_0x21b5b7[_0x8a53bf('0x48')]})['then'](function(_0x58f569){const _0x85b831=_0x8a53bf;return _0x283820[_0x85b831('0x41')]=_0x58f569,_0x560ed1['query'][_0x85b831('0x1e')]&&(_0x21b5b7[_0x85b831('0x49')]=[{'all':!![]}]),db[_0x85b831('0x30')]['findAll'](_0x21b5b7);})[_0x8a53bf('0x22')](function(_0x111614){const _0x4865e6=_0x8a53bf;return _0x283820[_0x4865e6('0x36')]=_0x111614,_0x283820;});})[_0x5a80e5('0x22')](respondWithFilteredResult(_0x112dc8,_0x21b5b7))[_0x5a80e5('0x2e')](handleError(_0x112dc8,null));},exports['getHopperBlacks']=function(_0x523b96,_0x1b88e8){const _0x33d91a=_0x40e0a3;let _0x5c43f9={'raw':!![],'where':{}};const _0x28aac8={},_0x18104a={'count':0x0,'rows':[]};return db[_0x33d91a('0x66')][_0x33d91a('0x2f')]({'where':{'id':_0x523b96[_0x33d91a('0x5d')]['id']}})[_0x33d91a('0x22')](handleEntityNotFound(_0x1b88e8,null))[_0x33d91a('0x22')](function(_0x1b61d1){const _0x20bacb=_0x33d91a;if(_0x1b61d1)return _0x28aac8['model']=_[_0x20bacb('0x82')](db[_0x20bacb('0x7d')][_0x20bacb('0x69')]),_0x28aac8[_0x20bacb('0x10')]=_['keys'](_0x523b96[_0x20bacb('0x10')]),_0x28aac8[_0x20bacb('0x63')]=_['intersection'](_0x28aac8[_0x20bacb('0x2c')],_0x28aac8[_0x20bacb('0x10')]),_0x5c43f9[_0x20bacb('0x2a')]=_['intersection'](_0x28aac8[_0x20bacb('0x2c')],qs[_0x20bacb('0x6f')](_0x523b96[_0x20bacb('0x10')][_0x20bacb('0x6f')])),_0x5c43f9['attributes']=_0x5c43f9[_0x20bacb('0x2a')]['length']?_0x5c43f9['attributes']:_0x28aac8[_0x20bacb('0x2c')],typeof _0x523b96[_0x20bacb('0x10')][_0x20bacb('0x23')]===_0x20bacb('0x44')&&(_0x5c43f9[_0x20bacb('0x55')]=qs[_0x20bacb('0x55')](_0x523b96[_0x20bacb('0x10')][_0x20bacb('0x55')]),_0x5c43f9[_0x20bacb('0x64')]=qs[_0x20bacb('0x64')](_0x523b96[_0x20bacb('0x10')][_0x20bacb('0x64')])),_0x5c43f9[_0x20bacb('0x2')]=qs[_0x20bacb('0x93')](_0x523b96[_0x20bacb('0x10')][_0x20bacb('0x93')]),_0x5c43f9[_0x20bacb('0x48')]=qs['filters'](_[_0x20bacb('0x32')](_0x523b96[_0x20bacb('0x10')],_0x28aac8[_0x20bacb('0x63')])),_0x5c43f9['where']['VoiceQueueId']=_0x1b61d1['id'],_0x523b96['query'][_0x20bacb('0x18')]&&(_0x5c43f9[_0x20bacb('0x48')]=_[_0x20bacb('0x71')](_0x5c43f9[_0x20bacb('0x48')],{[Op['or']]:_[_0x20bacb('0xb')](_0x5c43f9[_0x20bacb('0x2a')],function(_0x5005bd){const _0x2fe439=_0x20bacb,_0x3ffe1e={};return _0x3ffe1e[_0x5005bd]={[Op[_0x2fe439('0x1c')]]:'%'+_0x523b96[_0x2fe439('0x10')][_0x2fe439('0x18')]+'%'},_0x3ffe1e;})})),_0x5c43f9=_[_0x20bacb('0x71')]({},_0x5c43f9,_0x523b96[_0x20bacb('0x2b')]),db[_0x20bacb('0x7d')][_0x20bacb('0x41')]({'where':_0x5c43f9[_0x20bacb('0x48')]})[_0x20bacb('0x22')](function(_0xe75d79){const _0x363de1=_0x20bacb;return _0x18104a['count']=_0xe75d79,_0x523b96[_0x363de1('0x10')][_0x363de1('0x1e')]&&(_0x5c43f9[_0x363de1('0x49')]=[{'all':!![]}]),db['CmHopperBlack'][_0x363de1('0x78')](_0x5c43f9);})['then'](function(_0x22f70f){const _0x28d82e=_0x20bacb;return _0x18104a[_0x28d82e('0x36')]=_0x22f70f,_0x18104a;});})['then'](respondWithFilteredResult(_0x1b88e8,_0x5c43f9))[_0x33d91a('0x2e')](handleError(_0x1b88e8,null));},exports[_0x40e0a3('0x16')]=function(_0xd38a5c,_0x2d0f41){const _0xb8fe83=_0x40e0a3;let _0x18931e={};const _0x28d20d={};let _0xda9c7b,_0x2eac14;return db['VoiceQueue']['findOne']({'where':{'id':_0xd38a5c['params']['id']}})[_0xb8fe83('0x22')](handleEntityNotFound(_0x2d0f41,null))['then'](function(_0x5db4ff){const _0x22cf53=_0xb8fe83;if(_0x5db4ff)return _0xda9c7b=_0x5db4ff,_0x28d20d[_0x22cf53('0x2c')]=_['keys'](db[_0x22cf53('0x47')][_0x22cf53('0x69')]),_0x28d20d['query']=_[_0x22cf53('0x82')](_0xd38a5c[_0x22cf53('0x10')]),_0x28d20d[_0x22cf53('0x63')]=_[_0x22cf53('0x12')](_0x28d20d[_0x22cf53('0x2c')],_0x28d20d[_0x22cf53('0x10')]),_0x18931e['attributes']=_[_0x22cf53('0x12')](_0x28d20d[_0x22cf53('0x2c')],qs[_0x22cf53('0x6f')](_0xd38a5c['query'][_0x22cf53('0x6f')])),_0x18931e[_0x22cf53('0x2a')]=_0x18931e['attributes'][_0x22cf53('0x40')]?_0x18931e[_0x22cf53('0x2a')]:_0x28d20d[_0x22cf53('0x2c')],_0x18931e['order']=qs[_0x22cf53('0x93')](_0xd38a5c[_0x22cf53('0x10')][_0x22cf53('0x93')]),_0x18931e[_0x22cf53('0x48')]=qs[_0x22cf53('0x63')](_[_0x22cf53('0x32')](_0xd38a5c[_0x22cf53('0x10')],_0x28d20d[_0x22cf53('0x63')])),_0xd38a5c['query'][_0x22cf53('0x18')]&&(_0x18931e[_0x22cf53('0x48')]=_[_0x22cf53('0x71')](_0x18931e[_0x22cf53('0x48')],{[Op['or']]:_[_0x22cf53('0xb')](_0x18931e[_0x22cf53('0x2a')],function(_0x1bc7b4){const _0x416358=_0x22cf53,_0x5547e1={};return _0x5547e1[_0x1bc7b4]={[Op[_0x416358('0x1c')]]:'%'+_0xd38a5c[_0x416358('0x10')][_0x416358('0x18')]+'%'},_0x5547e1;})})),_0x18931e=_[_0x22cf53('0x71')]({},_0x18931e,_0xd38a5c[_0x22cf53('0x2b')]),_0xda9c7b['getTeams'](_0x18931e);})[_0xb8fe83('0x22')](function(_0x174cf4){const _0x39b8cf=_0xb8fe83;if(_0x174cf4)return _0x2eac14=_0x174cf4['length'],typeof _0xd38a5c['query'][_0x39b8cf('0x23')]===_0x39b8cf('0x44')&&(_0x18931e[_0x39b8cf('0x55')]=qs[_0x39b8cf('0x55')](_0xd38a5c[_0x39b8cf('0x10')][_0x39b8cf('0x55')]),_0x18931e[_0x39b8cf('0x64')]=qs[_0x39b8cf('0x64')](_0xd38a5c[_0x39b8cf('0x10')][_0x39b8cf('0x64')])),_0xda9c7b[_0x39b8cf('0x16')](_0x18931e);})[_0xb8fe83('0x22')](function(_0x347fa4){if(_0x347fa4)return _0x347fa4?{'count':_0x2eac14,'rows':_0x347fa4}:null;})['then'](respondWithResult(_0x2d0f41,null))['catch'](handleError(_0x2d0f41,null));},exports[_0x40e0a3('0xe')]=function(_0x4d5c22,_0x558844){const _0x5c620b=_0x40e0a3,_0x3067d0=_0x4d5c22[_0x5c620b('0x9c')][_0x5c620b('0x6a')],_0x14e2bc=_[_0x5c620b('0xb')](_0x3067d0,'id');return db[_0x5c620b('0x47')][_0x5c620b('0x78')]({'where':{'id':_0x14e2bc},'attributes':['id'],'include':[{'model':db[_0x5c620b('0x42')],'as':_0x5c620b('0x8b'),'attributes':['id',_0x5c620b('0x4f'),_0x5c620b('0x28'),'voicePause','interface'],'raw':!![]}]})[_0x5c620b('0x22')](function(_0x4075c7){const _0x2e4151=_0x5c620b;if(_0x4075c7){const _0x99c2c8=_['flatMap'](_0x4075c7,function(_0x31e454){const _0x158732=a753_0x2583,_0x29ec50=_0x31e454[_0x158732('0x5c')]({'plain':!![]});return _0x29ec50[_0x158732('0x8b')][_0x158732('0x25')](function(_0x21e5c3){const _0x5418c9=_0x158732;_0x21e5c3[_0x5418c9('0x7')]=_[_0x5418c9('0x57')](_0x3067d0,{'id':_0x29ec50['id']})[_0x5418c9('0x7')];}),_0x29ec50[_0x158732('0x8b')];});return db[_0x2e4151('0x66')][_0x2e4151('0x2f')]({'where':{'id':_0x4d5c22[_0x2e4151('0x5d')]['id']}})['then'](function(_0x385fc6){const _0x3e398c=_0x2e4151;return db[_0x3e398c('0x3f')][_0x3e398c('0x92')](function(_0xbbc2ea){const _0x12771c=_0x3e398c;return _0x385fc6[_0x12771c('0xe')](_0x14e2bc,{'transaction':_0xbbc2ea})[_0x12771c('0x22')](function(){const _0x298547=_0x12771c;return Promise[_0x298547('0x73')](_0x99c2c8,function(_0x3b57d7){const _0x2956e1=_0x298547;return db['UserVoiceQueue'][_0x2956e1('0x3c')]({'where':{'UserId':_0x3b57d7['id'],'VoiceQueueId':_0x4d5c22[_0x2956e1('0x5d')]['id']},'defaults':{'penalty':_0x3b57d7['penalty']},'transaction':_0xbbc2ea});});})[_0x12771c('0x22')](function(){const _0xad9a09=_0x12771c;return Promise[_0xad9a09('0x73')](_[_0xad9a09('0x18')](_0x99c2c8,{'online':!![]}),function(_0x2a54b1){const _0x2e67bc=_0xad9a09;return db[_0x2e67bc('0x56')][_0x2e67bc('0x62')]({'membername':_0x2a54b1['name'],'UserId':_0x2a54b1['id'],'queue_name':_0x385fc6[_0x2e67bc('0x4f')],'VoiceQueueId':_0x385fc6['id'],'interface':_['isNil'](_0x2a54b1['interface'])?util['format'](_0x2e67bc('0x80'),_0x2a54b1[_0x2e67bc('0x4f')]):_0x2a54b1[_0x2e67bc('0x8c')],'paused':_0x2a54b1[_0x2e67bc('0x61')]||![],'penalty':_0x2a54b1[_0x2e67bc('0x7')]},{'transaction':_0xbbc2ea});});})[_0x12771c('0x22')](function(){const _0x5df75e=_0x12771c;_0x99c2c8[_0x5df75e('0x25')](function(_0x3b88bf){const _0x54f37b=_0x5df75e;socket[_0x54f37b('0x11')](_0x54f37b('0x8'),{'UserId':_0x3b88bf['id'],'VoiceQueueId':_0x385fc6['id']});});});});});}})[_0x5c620b('0x22')](respondWithStatusCode(_0x558844,null))[_0x5c620b('0x2e')](handleError(_0x558844,null));},exports['removeTeams']=function(_0x3f2a30,_0x32d058){const _0x34e1fd=_0x40e0a3;return db[_0x34e1fd('0x47')]['findAll']({'where':{'id':_0x3f2a30[_0x34e1fd('0x10')][_0x34e1fd('0x27')]},'attributes':['id'],'include':[{'model':db[_0x34e1fd('0x42')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x34e1fd('0x22')](handleEntityNotFound(_0x32d058,null))[_0x34e1fd('0x22')](function(_0x5cf775){const _0x548029=_0x34e1fd,_0x4e9b4b=_[_0x548029('0xb')](_0x5cf775,'id');let _0x43ca43=[];const _0x231d90=[],_0x22a27d=squel['select']();_0x22a27d['field'](_0x548029('0x8a'))['from']('team_has_voice_queues','tq')['join'](_0x548029('0x35'),'ut',_0x548029('0x7b'))[_0x548029('0x48')]('VoiceQueueId\x20=\x20?',_0x3f2a30[_0x548029('0x5d')]['id']);for(let _0x5aebf3=0x0;_0x5aebf3<_0x5cf775[_0x548029('0x40')];_0x5aebf3+=0x1){const _0x315c4a=_0x5cf775[_0x5aebf3];for(let _0x5c405c=0x0;_0x5c405c<_0x315c4a[_0x548029('0x8b')][_0x548029('0x40')];_0x5c405c+=0x1){const _0x585b88=_0x315c4a[_0x548029('0x8b')][_0x5c405c],_0x51ef09=_0x22a27d[_0x548029('0x1d')]();_0x51ef09[_0x548029('0x48')](_0x548029('0x6'),_0x585b88['id']),_0x231d90[_0x548029('0x19')](db['sequelize']['query'](_0x51ef09['toString'](),{'type':QueryTypes['SELECT']})['then'](function(_0x18f1b2){const _0x1ad37e=_0x548029;if(_0x18f1b2[_0x1ad37e('0x40')]===0x1)return _0x585b88['id'];else{const _0x5e7292=_[_0x1ad37e('0x94')](_[_0x1ad37e('0xb')](_0x18f1b2,_0x1ad37e('0x99')),function(_0x2cf770){const _0x4fe44e=_0x1ad37e;return _[_0x4fe44e('0xf')](_0x4e9b4b,_0x2cf770);});if(_0x5e7292)return _0x585b88['id'];}}));}}return Promise[_0x548029('0x3b')](_0x231d90)['then'](function(_0x55129c){const _0x1c77b0=_0x548029;return _0x43ca43=_(_0x43ca43)[_0x1c77b0('0x67')](_0x55129c)[_0x1c77b0('0x8d')]()[_0x1c77b0('0x6d')](),db['VoiceQueue']['findOne']({'where':{'id':_0x3f2a30[_0x1c77b0('0x5d')]['id']}})[_0x1c77b0('0x22')](function(_0x1c4148){const _0x539796=_0x1c77b0;return db[_0x539796('0x3f')][_0x539796('0x92')](function(_0xc92102){const _0x2e2d54=_0x539796;return _0x1c4148['removeTeams'](_0x3f2a30['query']['ids'],{'transaction':_0xc92102})['then'](function(){const _0x538128=a753_0x2583;if(!_[_0x538128('0x46')](_0x43ca43))return _0x1c4148[_0x538128('0x59')](_0x43ca43,{'transaction':_0xc92102})[_0x538128('0x22')](function(){const _0x266de8=_0x538128;return db[_0x266de8('0x56')][_0x266de8('0x9e')]({'where':{'VoiceQueueId':_0x3f2a30[_0x266de8('0x5d')]['id'],'UserId':_0x43ca43},'transaction':_0xc92102});});})[_0x2e2d54('0x22')](function(){const _0x3405f6=_0x2e2d54;_0x43ca43[_0x3405f6('0x25')](function(_0x1de5fe){const _0x10047d=_0x3405f6;socket[_0x10047d('0x11')]('userVoiceQueue:remove',{'UserId':_0x1de5fe,'VoiceQueueId':_0x1c4148['id']});});});});});});})[_0x34e1fd('0x22')](respondWithStatusCode(_0x32d058,null))[_0x34e1fd('0x2e')](handleError(_0x32d058,null));},exports[_0x40e0a3('0xd')]=function(_0x54a03d,_0x21b42c){const _0x59f14f=_0x40e0a3;let _0x42518e,_0x24a06a;return db[_0x59f14f('0x66')][_0x59f14f('0x2f')]({'where':{'id':_0x54a03d[_0x59f14f('0x5d')]['id']}})[_0x59f14f('0x22')](function(_0x277bb7){const _0x7954c0=_0x59f14f;if(_0x277bb7)return _0x24a06a=_0x277bb7,_0x277bb7[_0x7954c0('0xd')](_0x54a03d['body'][_0x7954c0('0x27')],{'through':_[_0x7954c0('0x31')](_0x54a03d[_0x7954c0('0x9c')],[_0x7954c0('0x27'),'id'])})[_0x7954c0('0x22')](function(_0x3bb7cf){const _0x3b944d=_0x7954c0;for(let _0x33167c=0x0;_0x33167c<_0x54a03d['body'][_0x3b944d('0x27')][_0x3b944d('0x40')];_0x33167c+=0x1){socket[_0x3b944d('0x11')](_0x3b944d('0x8'),{'UserId':_0x54a03d[_0x3b944d('0x9c')][_0x3b944d('0x27')][_0x33167c],'VoiceQueueId':_0x54a03d[_0x3b944d('0x5d')]['id']});}return _0x3bb7cf;});})['then'](function(_0x3b7191){const _0x11cd39=_0x59f14f;_0x42518e=_0x3b7191||[];if(_0x24a06a)return db[_0x11cd39('0x42')][_0x11cd39('0x78')]({'where':{'id':_0x54a03d[_0x11cd39('0x9c')][_0x11cd39('0x27')]},'attributes':['id','name',_0x11cd39('0x28'),_0x11cd39('0x61'),'interface'],'raw':!![]});})[_0x59f14f('0x22')](function(_0x19ba71){const _0x3c8e16=_0x59f14f;if(!_[_0x3c8e16('0x46')](_0x19ba71)){const _0x44e0d9=[];for(let _0x5d60b5=0x0;_0x5d60b5<_0x19ba71[_0x3c8e16('0x40')];_0x5d60b5++){_0x19ba71[_0x5d60b5][_0x3c8e16('0x28')]&&_0x44e0d9[_0x3c8e16('0x19')](db[_0x3c8e16('0x56')][_0x3c8e16('0x62')]({'membername':_0x19ba71[_0x5d60b5][_0x3c8e16('0x4f')],'UserId':_0x19ba71[_0x5d60b5]['id'],'queue_name':_0x24a06a[_0x3c8e16('0x4f')],'VoiceQueueId':_0x24a06a['id'],'interface':_[_0x3c8e16('0x79')](_0x19ba71[_0x5d60b5][_0x3c8e16('0x8c')])?util[_0x3c8e16('0xa')](_0x3c8e16('0x80'),_0x19ba71[_0x5d60b5][_0x3c8e16('0x4f')]):_0x19ba71[_0x5d60b5]['interface'],'paused':_0x19ba71[_0x5d60b5]['voicePause']||![],'penalty':_0x54a03d[_0x3c8e16('0x9c')]['penalty']||0x0}));}return Promise['all'](_0x44e0d9);}})[_0x59f14f('0x22')](function(){return _0x42518e;})[_0x59f14f('0x22')](respondWithResult(_0x21b42c,null))[_0x59f14f('0x2e')](handleError(_0x21b42c,null));},exports[_0x40e0a3('0x59')]=function(_0x4c423e,_0x5c6596){const _0x2601d2=_0x40e0a3;return db['VoiceQueue']['findOne']({'where':{'id':_0x4c423e['params']['id']}})[_0x2601d2('0x22')](handleEntityNotFound(_0x5c6596,null))[_0x2601d2('0x22')](function(_0x25cc22){const _0x2f5473=_0x2601d2;if(_0x25cc22)return _0x25cc22[_0x2f5473('0x59')](_0x4c423e['query']['ids'])[_0x2f5473('0x22')](function(){const _0x5830a4=_0x2f5473;if(_['isArray'](_0x4c423e[_0x5830a4('0x10')]['ids']))for(let _0x39a834=0x0;_0x39a834<_0x4c423e[_0x5830a4('0x10')]['ids'][_0x5830a4('0x40')];_0x39a834+=0x1){socket['emit'](_0x5830a4('0x89'),{'UserId':Number(_0x4c423e[_0x5830a4('0x10')][_0x5830a4('0x27')][_0x39a834]),'VoiceQueueId':Number(_0x4c423e[_0x5830a4('0x5d')]['id'])});}else socket[_0x5830a4('0x11')](_0x5830a4('0x89'),{'UserId':Number(_0x4c423e[_0x5830a4('0x10')][_0x5830a4('0x27')]),'VoiceQueueId':Number(_0x4c423e[_0x5830a4('0x5d')]['id'])});});})[_0x2601d2('0x22')](function(_0x4fb80e){const _0xb66e26=_0x2601d2;return db[_0xb66e26('0x56')]['destroy']({'where':{'VoiceQueueId':_0x4c423e[_0xb66e26('0x5d')]['id'],'UserId':_0x4c423e[_0xb66e26('0x10')][_0xb66e26('0x27')]}})[_0xb66e26('0x22')](function(){return _0x4fb80e;});})[_0x2601d2('0x22')](respondWithStatusCode(_0x5c6596,null))[_0x2601d2('0x2e')](handleError(_0x5c6596,null));},exports['getAgents']=function(_0x5b1194,_0x3345e5){const _0x5b8878=_0x40e0a3;let _0x1fa8d8={};const _0x27e647={};let _0x42a3ef,_0x40e7c6;return db['VoiceQueue'][_0x5b8878('0x2f')]({'where':{'id':_0x5b1194[_0x5b8878('0x5d')]['id']}})['then'](handleEntityNotFound(_0x3345e5,null))[_0x5b8878('0x22')](function(_0x1fa81d){const _0x2bd4bb=_0x5b8878;if(_0x1fa81d)return _0x42a3ef=_0x1fa81d,_0x27e647['model']=_[_0x2bd4bb('0x82')](db[_0x2bd4bb('0x42')]['rawAttributes']),_0x27e647[_0x2bd4bb('0x10')]=_[_0x2bd4bb('0x82')](_0x5b1194[_0x2bd4bb('0x10')]),_0x27e647[_0x2bd4bb('0x63')]=_['intersection'](_0x27e647['model'],_0x27e647['query']),_0x1fa8d8[_0x2bd4bb('0x2a')]=_[_0x2bd4bb('0x12')](_0x27e647[_0x2bd4bb('0x2c')],qs[_0x2bd4bb('0x6f')](_0x5b1194['query']['fields'])),_0x1fa8d8[_0x2bd4bb('0x2a')]=_0x1fa8d8[_0x2bd4bb('0x2a')][_0x2bd4bb('0x40')]?_0x1fa8d8[_0x2bd4bb('0x2a')]:_0x27e647[_0x2bd4bb('0x2c')],_0x1fa8d8[_0x2bd4bb('0x2')]=qs[_0x2bd4bb('0x93')](_0x5b1194[_0x2bd4bb('0x10')][_0x2bd4bb('0x93')]),_0x1fa8d8[_0x2bd4bb('0x48')]=qs['filters'](_[_0x2bd4bb('0x32')](_0x5b1194[_0x2bd4bb('0x10')],_0x27e647[_0x2bd4bb('0x63')])),_0x5b1194[_0x2bd4bb('0x10')][_0x2bd4bb('0x18')]&&(_0x1fa8d8[_0x2bd4bb('0x48')]=_[_0x2bd4bb('0x71')](_0x1fa8d8[_0x2bd4bb('0x48')],{[Op['or']]:_[_0x2bd4bb('0xb')](_0x1fa8d8[_0x2bd4bb('0x2a')],function(_0x56d3a0){const _0x2aece7=_0x2bd4bb,_0x292f9f={};return _0x292f9f[_0x56d3a0]={[Op[_0x2aece7('0x1c')]]:'%'+_0x5b1194['query'][_0x2aece7('0x18')]+'%'},_0x292f9f;})})),_0x1fa8d8=_['merge']({},_0x1fa8d8,_0x5b1194['options']),_0x42a3ef[_0x2bd4bb('0x81')](_0x1fa8d8);})[_0x5b8878('0x22')](function(_0x3ca5a5){const _0x555b0d=_0x5b8878;if(_0x3ca5a5)return _0x40e7c6=_0x3ca5a5['length'],typeof _0x5b1194[_0x555b0d('0x10')][_0x555b0d('0x23')]===_0x555b0d('0x44')&&(_0x1fa8d8['limit']=qs[_0x555b0d('0x55')](_0x5b1194[_0x555b0d('0x10')]['limit']),_0x1fa8d8[_0x555b0d('0x64')]=qs['offset'](_0x5b1194[_0x555b0d('0x10')][_0x555b0d('0x64')])),_0x42a3ef[_0x555b0d('0x81')](_0x1fa8d8);})[_0x5b8878('0x22')](function(_0x3b9943){if(_0x3b9943)return _0x3b9943?{'count':_0x40e7c6,'rows':_0x3b9943}:null;})[_0x5b8878('0x22')](respondWithResult(_0x3345e5,null))[_0x5b8878('0x2e')](handleError(_0x3345e5,null));},exports['getMembers']=function(_0x46a602,_0x1eba95){const _0x12fb41=_0x40e0a3;let _0x3536a1={};const _0x3e796d={};let _0x25fdf1,_0x414e09;return db[_0x12fb41('0x66')][_0x12fb41('0x2f')]({'where':{'id':_0x46a602['params']['id']}})[_0x12fb41('0x22')](handleEntityNotFound(_0x1eba95,null))['then'](function(_0x4f1e5a){const _0x4111c5=_0x12fb41;if(_0x4f1e5a)return _0x25fdf1=_0x4f1e5a,_0x3e796d[_0x4111c5('0x2c')]=_['keys'](db[_0x4111c5('0x56')][_0x4111c5('0x69')]),_0x3e796d['query']=_[_0x4111c5('0x82')](_0x46a602[_0x4111c5('0x10')]),_0x3e796d[_0x4111c5('0x63')]=_[_0x4111c5('0x12')](_0x3e796d['model'],_0x3e796d[_0x4111c5('0x10')]),_0x3536a1[_0x4111c5('0x2a')]=_[_0x4111c5('0x12')](_0x3e796d[_0x4111c5('0x2c')],qs['fields'](_0x46a602[_0x4111c5('0x10')][_0x4111c5('0x6f')])),_0x3536a1[_0x4111c5('0x2a')]=_0x3536a1['attributes']['length']?_0x3536a1['attributes']:_0x3e796d[_0x4111c5('0x2c')],_0x3536a1['order']=qs[_0x4111c5('0x93')](_0x46a602[_0x4111c5('0x10')]['sort']),_0x3536a1[_0x4111c5('0x48')]=qs[_0x4111c5('0x63')](_[_0x4111c5('0x32')](_0x46a602[_0x4111c5('0x10')],_0x3e796d['filters'])),_0x46a602['query'][_0x4111c5('0x18')]&&(_0x3536a1[_0x4111c5('0x48')]=_[_0x4111c5('0x71')](_0x3536a1[_0x4111c5('0x48')],{[Op['or']]:_[_0x4111c5('0xb')](_0x3536a1[_0x4111c5('0x2a')],function(_0x425805){const _0x175c97=_0x4111c5,_0x41217c={};return _0x41217c[_0x425805]={[Op[_0x175c97('0x1c')]]:'%'+_0x46a602[_0x175c97('0x10')][_0x175c97('0x18')]+'%'},_0x41217c;})})),_0x3536a1=_[_0x4111c5('0x71')]({},_0x3536a1,_0x46a602['options']),_0x25fdf1[_0x4111c5('0x95')](_0x3536a1);})[_0x12fb41('0x22')](function(_0x4f2996){const _0x876be=_0x12fb41;if(_0x4f2996)return _0x414e09=_0x4f2996[_0x876be('0x40')],typeof _0x46a602[_0x876be('0x10')]['nolimit']===_0x876be('0x44')&&(_0x3536a1[_0x876be('0x55')]=qs[_0x876be('0x55')](_0x46a602[_0x876be('0x10')][_0x876be('0x55')]),_0x3536a1[_0x876be('0x64')]=qs[_0x876be('0x64')](_0x46a602[_0x876be('0x10')][_0x876be('0x64')])),_0x25fdf1[_0x876be('0x95')](_0x3536a1);})[_0x12fb41('0x22')](function(_0x5d52d8){return _0x5d52d8?{'count':_0x414e09,'rows':_0x5d52d8}:null;})[_0x12fb41('0x22')](respondWithResult(_0x1eba95,null))[_0x12fb41('0x2e')](handleError(_0x1eba95,null));},exports[_0x40e0a3('0x38')]=function(_0x3f5a14,_0x1822cb){const _0x1cb933=_0x40e0a3;let _0x180e51={};const _0x1a5fca={};let _0x389e01,_0x207dc6;return db[_0x1cb933('0x66')]['findOne']({'where':{'id':_0x3f5a14[_0x1cb933('0x5d')]['id']}})[_0x1cb933('0x22')](handleEntityNotFound(_0x1822cb,null))[_0x1cb933('0x22')](function(_0x5cff3f){const _0x2ea1f2=_0x1cb933;if(_0x5cff3f)return _0x389e01=_0x5cff3f,_0x1a5fca[_0x2ea1f2('0x2c')]=_[_0x2ea1f2('0x82')](db[_0x2ea1f2('0x76')][_0x2ea1f2('0x69')]),_0x1a5fca[_0x2ea1f2('0x10')]=_[_0x2ea1f2('0x82')](_0x3f5a14[_0x2ea1f2('0x10')]),_0x1a5fca[_0x2ea1f2('0x63')]=_[_0x2ea1f2('0x12')](_0x1a5fca[_0x2ea1f2('0x2c')],_0x1a5fca[_0x2ea1f2('0x10')]),_0x180e51[_0x2ea1f2('0x2a')]=_[_0x2ea1f2('0x12')](_0x1a5fca[_0x2ea1f2('0x2c')],qs[_0x2ea1f2('0x6f')](_0x3f5a14[_0x2ea1f2('0x10')][_0x2ea1f2('0x6f')])),_0x180e51[_0x2ea1f2('0x2a')]=_0x180e51[_0x2ea1f2('0x2a')][_0x2ea1f2('0x40')]?_0x180e51[_0x2ea1f2('0x2a')]:_0x1a5fca[_0x2ea1f2('0x2c')],_0x180e51[_0x2ea1f2('0x2')]=qs[_0x2ea1f2('0x93')](_0x3f5a14[_0x2ea1f2('0x10')][_0x2ea1f2('0x93')]),_0x180e51[_0x2ea1f2('0x48')]=qs[_0x2ea1f2('0x63')](_[_0x2ea1f2('0x32')](_0x3f5a14['query'],_0x1a5fca[_0x2ea1f2('0x63')])),_0x3f5a14[_0x2ea1f2('0x10')]['filter']&&(_0x180e51[_0x2ea1f2('0x48')]=_[_0x2ea1f2('0x71')](_0x180e51[_0x2ea1f2('0x48')],{[Op['or']]:_[_0x2ea1f2('0xb')](_0x180e51[_0x2ea1f2('0x2a')],function(_0x1be2b){const _0x310ca2=_0x2ea1f2,_0x262ba0={};return _0x262ba0[_0x1be2b]={[Op[_0x310ca2('0x1c')]]:'%'+_0x3f5a14[_0x310ca2('0x10')][_0x310ca2('0x18')]+'%'},_0x262ba0;})})),_0x180e51=_['merge']({},_0x180e51,_0x3f5a14[_0x2ea1f2('0x2b')]),_0x389e01[_0x2ea1f2('0x38')](_0x180e51);})['then'](function(_0x2930fb){const _0x5393e8=_0x1cb933;if(_0x2930fb)return _0x207dc6=_0x2930fb['length'],typeof _0x3f5a14[_0x5393e8('0x10')]['nolimit']===_0x5393e8('0x44')&&(_0x180e51[_0x5393e8('0x55')]=qs[_0x5393e8('0x55')](_0x3f5a14['query'][_0x5393e8('0x55')]),_0x180e51['offset']=qs[_0x5393e8('0x64')](_0x3f5a14[_0x5393e8('0x10')][_0x5393e8('0x64')])),_0x389e01[_0x5393e8('0x38')](_0x180e51);})['then'](function(_0x2d2291){if(_0x2d2291)return _0x2d2291?{'count':_0x207dc6,'rows':_0x2d2291}:null;})[_0x1cb933('0x22')](respondWithResult(_0x1822cb,null))['catch'](handleError(_0x1822cb,null));},exports[_0x40e0a3('0x68')]=function(_0x166be1,_0x207889){const _0x1d0d2a=_0x40e0a3;let _0x3ec350,_0x4c45e3;return db[_0x1d0d2a('0x66')][_0x1d0d2a('0x2f')]({'where':{'id':_0x166be1['params']['id']}})[_0x1d0d2a('0x22')](handleEntityNotFound(_0x207889,null))[_0x1d0d2a('0x22')](function(_0x252c46){const _0x4615f6=_0x1d0d2a;if(_0x252c46)return _0x4c45e3=_0x252c46,_0x252c46[_0x4615f6('0x68')](_0x166be1[_0x4615f6('0x9c')][_0x4615f6('0x27')],{'through':_[_0x4615f6('0x31')](_0x166be1[_0x4615f6('0x9c')],[_0x4615f6('0x27'),'id'])});return null;})['then'](function(_0x4a2386){const _0x399bb8=_0x1d0d2a;let _0x97d67c;_0x3ec350=_0x4a2386||[];const _0x55313f=[];if(_0x4a2386){for(let _0x1c4473=0x0;_0x1c4473<_0x4a2386['length'];_0x1c4473+=0x1){const _0x3373bd=_0x4a2386[_0x1c4473]['get']({'plain':!![]});_0x4c45e3[_0x399bb8('0x52')]=_0x166be1[_0x399bb8('0x9c')][_0x399bb8('0x52')]?_0x166be1[_0x399bb8('0x9c')][_0x399bb8('0x52')]:_0x4c45e3[_0x399bb8('0x52')];switch(_0x4c45e3[_0x399bb8('0x52')]){case _0x399bb8('0x85'):_0x97d67c=squel['insert']()['into']('cm_hopper')[_0x399bb8('0x13')]([_0x399bb8('0x60'),_0x399bb8('0x58'),_0x399bb8('0x4a'),_0x399bb8('0x5b'),_0x399bb8('0x90'),_0x399bb8('0x53'),_0x399bb8('0x74')],squel[_0x399bb8('0x2d')]()[_0x399bb8('0x26')]('phone',_0x399bb8('0x60'))[_0x399bb8('0x26')](_0x399bb8('0x50'),_0x399bb8('0x58'))[_0x399bb8('0x26')]('id','ContactId')[_0x399bb8('0x26')](_0x3373bd[_0x399bb8('0x5f')][_0x399bb8('0x98')](),'ListId')[_0x399bb8('0x26')](_0x166be1[_0x399bb8('0x5d')]['id'][_0x399bb8('0x98')](),_0x399bb8('0x90'))[_0x399bb8('0x26')](_0x399bb8('0x50'),_0x399bb8('0x53'))['field']('NOW()',_0x399bb8('0x74'))[_0x399bb8('0x5e')](_0x399bb8('0x77'))[_0x399bb8('0x48')]('deletedAt\x20IS\x20NULL')[_0x399bb8('0x48')](_0x399bb8('0x6e'),_0x3373bd[_0x399bb8('0x5f')][_0x399bb8('0x98')]())[_0x399bb8('0x48')](_0x399bb8('0x86'))['where'](_0x399bb8('0x3'),squel['select']()[_0x399bb8('0x26')](_0x399bb8('0x45'))[_0x399bb8('0x5e')](_0x399bb8('0x3d'))[_0x399bb8('0x48')](_0x399bb8('0x8f'),_0x166be1[_0x399bb8('0x5d')]['id'][_0x399bb8('0x98')]()))[_0x399bb8('0x48')](_0x399bb8('0x3'),squel[_0x399bb8('0x2d')]()[_0x399bb8('0x26')](_0x399bb8('0x5'))[_0x399bb8('0x5e')](_0x399bb8('0x1f'))['where']('VoiceQueueId\x20=\x20?',_0x166be1['params']['id']['toString']())))[_0x399bb8('0x98')]();break;case _0x399bb8('0x4'):_0x97d67c=squel[_0x399bb8('0x54')]()[_0x399bb8('0x4c')](_0x399bb8('0x1f'))['fromQuery'](['phone',_0x399bb8('0x58'),_0x399bb8('0x4a'),'ListId',_0x399bb8('0x90'),_0x399bb8('0x53'),_0x399bb8('0x74')],squel['select']()['field']('phone',_0x399bb8('0x60'))[_0x399bb8('0x26')]('NOW()','scheduledAt')[_0x399bb8('0x26')]('id',_0x399bb8('0x4a'))[_0x399bb8('0x26')](_0x3373bd[_0x399bb8('0x5f')][_0x399bb8('0x98')](),_0x399bb8('0x5b'))[_0x399bb8('0x26')](_0x166be1[_0x399bb8('0x5d')]['id'][_0x399bb8('0x98')](),_0x399bb8('0x90'))[_0x399bb8('0x26')]('NOW()',_0x399bb8('0x53'))[_0x399bb8('0x26')](_0x399bb8('0x50'),'updatedAt')[_0x399bb8('0x5e')](_0x399bb8('0x77'))[_0x399bb8('0x48')](_0x399bb8('0x70'))[_0x399bb8('0x48')]('ListId\x20=\x20?',_0x3373bd['CmListId'][_0x399bb8('0x98')]())[_0x399bb8('0x48')]('phone\x20IS\x20NOT\x20NULL')[_0x399bb8('0x48')](_0x399bb8('0x3'),squel['select']()[_0x399bb8('0x26')](_0x399bb8('0x5'))[_0x399bb8('0x5e')](_0x399bb8('0x1f'))[_0x399bb8('0x48')](_0x399bb8('0x8f'),_0x166be1[_0x399bb8('0x5d')]['id'][_0x399bb8('0x98')]())))[_0x399bb8('0x98')]();break;default:_0x97d67c=squel[_0x399bb8('0x54')]()['into']('cm_hopper')[_0x399bb8('0x13')]([_0x399bb8('0x60'),_0x399bb8('0x58'),_0x399bb8('0x4a'),'ListId','VoiceQueueId',_0x399bb8('0x53'),_0x399bb8('0x74')],squel[_0x399bb8('0x2d')]()[_0x399bb8('0x26')](_0x399bb8('0x60'),_0x399bb8('0x60'))[_0x399bb8('0x26')](_0x399bb8('0x50'),'scheduledAt')[_0x399bb8('0x26')]('id',_0x399bb8('0x4a'))[_0x399bb8('0x26')](_0x3373bd[_0x399bb8('0x5f')][_0x399bb8('0x98')](),_0x399bb8('0x5b'))['field'](_0x166be1[_0x399bb8('0x5d')]['id']['toString'](),_0x399bb8('0x90'))[_0x399bb8('0x26')]('NOW()',_0x399bb8('0x53'))[_0x399bb8('0x26')](_0x399bb8('0x50'),_0x399bb8('0x74'))[_0x399bb8('0x5e')](_0x399bb8('0x77'))['where']('deletedAt\x20IS\x20NULL')[_0x399bb8('0x48')](_0x399bb8('0x6e'),_0x3373bd[_0x399bb8('0x5f')]['toString']())['where'](_0x399bb8('0x86')))['toString']();}_0x55313f['push'](db[_0x399bb8('0x3f')][_0x399bb8('0x10')](_0x97d67c));}return Promise[_0x399bb8('0x3b')](_0x55313f);}})[_0x1d0d2a('0x22')](function(){return _0x3ec350;})[_0x1d0d2a('0x22')](respondWithResult(_0x207889,null))['catch'](handleError(_0x207889,null));},exports[_0x40e0a3('0x39')]=function(_0x3538f0,_0x4bce31){const _0x5047b4=_0x40e0a3;return db['VoiceQueue'][_0x5047b4('0x2f')]({'where':{'id':_0x3538f0[_0x5047b4('0x5d')]['id']}})[_0x5047b4('0x22')](handleEntityNotFound(_0x4bce31,null))[_0x5047b4('0x22')](function(_0x85892c){const _0x59790a=_0x5047b4;if(_0x85892c)return _0x85892c[_0x59790a('0x39')](_0x3538f0[_0x59790a('0x10')][_0x59790a('0x27')]);})[_0x5047b4('0x22')](function(_0x11bfd8){const _0x593b60=_0x5047b4;if(_0x11bfd8)return db[_0x593b60('0x0')][_0x593b60('0x9e')]({'where':{'ListId':_0x3538f0[_0x593b60('0x10')]['ids'],'VoiceQueueId':_0x3538f0[_0x593b60('0x5d')]['id']}})['then'](function(){return _0x11bfd8;});})[_0x5047b4('0x22')](respondWithStatusCode(_0x4bce31,null))[_0x5047b4('0x2e')](handleError(_0x4bce31,null));},exports[_0x40e0a3('0x24')]=function(_0x196760,_0x3f00ba){const _0x1f780f=_0x40e0a3;let _0x7c45a3={};const _0x2ebea4={};let _0x47a4d1,_0x14ac10;return db[_0x1f780f('0x66')]['findOne']({'where':{'id':_0x196760[_0x1f780f('0x5d')]['id']}})[_0x1f780f('0x22')](handleEntityNotFound(_0x3f00ba,null))[_0x1f780f('0x22')](function(_0x28001f){const _0x148676=_0x1f780f;if(_0x28001f)return _0x47a4d1=_0x28001f,_0x2ebea4['model']=_['keys'](db[_0x148676('0x76')][_0x148676('0x69')]),_0x2ebea4[_0x148676('0x10')]=_['keys'](_0x196760[_0x148676('0x10')]),_0x2ebea4[_0x148676('0x63')]=_[_0x148676('0x12')](_0x2ebea4[_0x148676('0x2c')],_0x2ebea4[_0x148676('0x10')]),_0x7c45a3[_0x148676('0x2a')]=_['intersection'](_0x2ebea4['model'],qs[_0x148676('0x6f')](_0x196760[_0x148676('0x10')][_0x148676('0x6f')])),_0x7c45a3[_0x148676('0x2a')]=_0x7c45a3[_0x148676('0x2a')]['length']?_0x7c45a3[_0x148676('0x2a')]:_0x2ebea4[_0x148676('0x2c')],_0x7c45a3[_0x148676('0x2')]=qs[_0x148676('0x93')](_0x196760[_0x148676('0x10')]['sort']),_0x7c45a3[_0x148676('0x48')]=qs[_0x148676('0x63')](_[_0x148676('0x32')](_0x196760[_0x148676('0x10')],_0x2ebea4['filters'])),_0x196760[_0x148676('0x10')][_0x148676('0x18')]&&(_0x7c45a3[_0x148676('0x48')]=_[_0x148676('0x71')](_0x7c45a3['where'],{[Op['or']]:_['map'](_0x7c45a3[_0x148676('0x2a')],function(_0x1326f0){const _0x313385=_0x148676,_0x201ca2={};return _0x201ca2[_0x1326f0]={[Op[_0x313385('0x1c')]]:'%'+_0x196760[_0x313385('0x10')][_0x313385('0x18')]+'%'},_0x201ca2;})})),_0x7c45a3=_[_0x148676('0x71')]({},_0x7c45a3,_0x196760[_0x148676('0x2b')]),_0x47a4d1[_0x148676('0x24')](_0x7c45a3);})[_0x1f780f('0x22')](function(_0x27bbf1){const _0x5d7cd8=_0x1f780f;if(_0x27bbf1)return _0x14ac10=_0x27bbf1[_0x5d7cd8('0x40')],typeof _0x196760[_0x5d7cd8('0x10')][_0x5d7cd8('0x23')]===_0x5d7cd8('0x44')&&(_0x7c45a3[_0x5d7cd8('0x55')]=qs['limit'](_0x196760[_0x5d7cd8('0x10')][_0x5d7cd8('0x55')]),_0x7c45a3[_0x5d7cd8('0x64')]=qs['offset'](_0x196760[_0x5d7cd8('0x10')]['offset'])),_0x47a4d1[_0x5d7cd8('0x24')](_0x7c45a3);})['then'](function(_0x386360){if(_0x386360)return _0x386360?{'count':_0x14ac10,'rows':_0x386360}:null;})['then'](respondWithResult(_0x3f00ba,null))[_0x1f780f('0x2e')](handleError(_0x3f00ba,null));},exports[_0x40e0a3('0x9d')]=function(_0x457f87,_0x208c88){const _0x495c1c=_0x40e0a3;let _0x1cb7db;return db[_0x495c1c('0x66')]['findOne']({'where':{'id':_0x457f87['params']['id']}})[_0x495c1c('0x22')](handleEntityNotFound(_0x208c88,null))['then'](function(_0x439843){const _0x158b56=_0x495c1c;if(_0x439843)return _0x439843['addBlackLists'](_0x457f87['body']['ids'],{'through':_['omit'](_0x457f87[_0x158b56('0x9c')],[_0x158b56('0x27'),'id'])});return null;})['then'](function(_0x524291){const _0x4c33a6=_0x495c1c;let _0x238033;_0x1cb7db=_0x524291||[];const _0x539602=[];if(_0x524291){for(let _0x1ddb88=0x0;_0x1ddb88<_0x524291[_0x4c33a6('0x40')];_0x1ddb88+=0x1){const _0x1d73a5=_0x524291[_0x1ddb88][_0x4c33a6('0x5c')]({'plain':!![]});_0x238033=squel[_0x4c33a6('0x54')]()[_0x4c33a6('0x4c')](_0x4c33a6('0x9a'))[_0x4c33a6('0x13')]([_0x4c33a6('0x60'),_0x4c33a6('0x4a'),_0x4c33a6('0x5b'),_0x4c33a6('0x90'),_0x4c33a6('0x53'),'updatedAt'],squel[_0x4c33a6('0x2d')]()[_0x4c33a6('0x26')]('phone',_0x4c33a6('0x60'))[_0x4c33a6('0x26')]('id','ContactId')['field'](_0x1d73a5[_0x4c33a6('0x5f')][_0x4c33a6('0x98')](),'ListId')[_0x4c33a6('0x26')](_0x457f87[_0x4c33a6('0x5d')]['id'][_0x4c33a6('0x98')](),'VoiceQueueId')[_0x4c33a6('0x26')](_0x4c33a6('0x50'),'createdAt')['field']('NOW()',_0x4c33a6('0x74'))[_0x4c33a6('0x5e')](_0x4c33a6('0x77'))[_0x4c33a6('0x48')](_0x4c33a6('0x70'))[_0x4c33a6('0x48')](_0x4c33a6('0x6e'),_0x1d73a5[_0x4c33a6('0x5f')]['toString']())[_0x4c33a6('0x48')](_0x4c33a6('0x86')))[_0x4c33a6('0x98')](),_0x539602[_0x4c33a6('0x19')](db[_0x4c33a6('0x3f')][_0x4c33a6('0x10')](_0x238033));}return Promise['all'](_0x539602);}})[_0x495c1c('0x22')](function(){return _0x1cb7db;})[_0x495c1c('0x22')](respondWithResult(_0x208c88,null))[_0x495c1c('0x2e')](handleError(_0x208c88,null));},exports['removeBlackLists']=function(_0x31e4e6,_0x4a8bae){const _0x55ffcb=_0x40e0a3;return db['VoiceQueue'][_0x55ffcb('0x2f')]({'where':{'id':_0x31e4e6[_0x55ffcb('0x5d')]['id']}})[_0x55ffcb('0x22')](handleEntityNotFound(_0x4a8bae,null))['then'](function(_0x577860){const _0x4f6359=_0x55ffcb;if(_0x577860)return _0x577860[_0x4f6359('0x96')](_0x31e4e6['query']['ids']);})[_0x55ffcb('0x22')](function(_0x11a66a){const _0x251635=_0x55ffcb;if(_0x11a66a)return db[_0x251635('0x7d')][_0x251635('0x9e')]({'where':{'ListId':_0x31e4e6[_0x251635('0x10')][_0x251635('0x27')],'VoiceQueueId':_0x31e4e6['params']['id']}})[_0x251635('0x22')](function(){return _0x11a66a;});})[_0x55ffcb('0x22')](respondWithStatusCode(_0x4a8bae,null))[_0x55ffcb('0x2e')](handleError(_0x4a8bae,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index c027637..7aae720 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a754_0x1df7=['../../mysqldb','setMaxListeners','VoiceQueue','emit','undefined','addHook','events','remove','save','update'];(function(_0x47a534,_0x1df7c0){const _0x2f4159=function(_0x1f5ab3){while(--_0x1f5ab3){_0x47a534['push'](_0x47a534['shift']());}};_0x2f4159(++_0x1df7c0);}(a754_0x1df7,0xad));const a754_0x2f41=function(_0x47a534,_0x1df7c0){_0x47a534=_0x47a534-0x0;let _0x2f4159=a754_0x1df7[_0x47a534];return _0x2f4159;};const _0x2802ac=a754_0x2f41;'use strict';const EventEmitter=require(_0x2802ac('0x3')),VoiceQueue=require(_0x2802ac('0x7'))['db'][_0x2802ac('0x9')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x2802ac('0x8')](0x0);const events={'afterCreate':_0x2802ac('0x5'),'afterUpdate':_0x2802ac('0x6'),'afterDestroy':_0x2802ac('0x4')};function emitEvent(_0x1f5ab3){return function(_0x4acd51){const _0x508caa=a754_0x2f41;VoiceQueueEvents['emit'](_0x1f5ab3+':'+_0x4acd51['id'],_0x4acd51),VoiceQueueEvents[_0x508caa('0x0')](_0x1f5ab3,_0x4acd51);};}for(const e in events){if(typeof events[e]!==_0x2802ac('0x1')){const event=events[e];VoiceQueue[_0x2802ac('0x2')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index 0edc992..7c13098 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a755_0x4f2d=['VoiceQueue','./voiceQueue.attributes','define','exports'];(function(_0xaf60c4,_0x4f2da9){const _0x122825=function(_0x5a9cb0){while(--_0x5a9cb0){_0xaf60c4['push'](_0xaf60c4['shift']());}};_0x122825(++_0x4f2da9);}(a755_0x4f2d,0x1f3));const a755_0x1228=function(_0xaf60c4,_0x4f2da9){_0xaf60c4=_0xaf60c4-0x0;let _0x122825=a755_0x4f2d[_0xaf60c4];return _0x122825;};const _0x363300=a755_0x1228;'use strict';const attributes=require(_0x363300('0x2'));module[_0x363300('0x0')]=function(_0x5a9cb0){const _0x3c6f46=_0x363300,_0x3055ae=_0x5a9cb0[_0x3c6f46('0x3')](_0x3c6f46('0x1'),attributes,{'tableName':'voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3055ae;}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index a8a8560..01e3692 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a756_0xa787=['include','lodash','../../mysqldb','debug','rpc','then','../../rediscache','../../config/logger','map','where','ShowVoiceQueue','catch','message','model','./voiceQueue.socket','raw','error','register','GetVoiceQueue','findAll','attributes','VoiceQueue','findOne','options','info','stringify'];(function(_0x1fdb90,_0xa78775){const _0xf401f9=function(_0x47675f){while(--_0x47675f){_0x1fdb90['push'](_0x1fdb90['shift']());}};_0xf401f9(++_0xa78775);}(a756_0xa787,0xf8));const a756_0xf401=function(_0x1fdb90,_0xa78775){_0x1fdb90=_0x1fdb90-0x0;let _0xf401f9=a756_0xa787[_0x1fdb90];return _0xf401f9;};const _0xd9e4c2=a756_0xf401;'use strict';const _=require(_0xd9e4c2('0xd')),db=require(_0xd9e4c2('0xe'))['db'],logger=require(_0xd9e4c2('0x13'))(_0xd9e4c2('0x10')),{getSocket}=require(_0xd9e4c2('0x12')),socket=getSocket();require(_0xd9e4c2('0x0'))[_0xd9e4c2('0x3')](socket),exports[_0xd9e4c2('0x4')]=function(_0x47675f){const _0x1b9d5a=this;return new Promise(function(_0x5aaaf3,_0x5ab8be){const _0x1294f3=a756_0xf401;return db[_0x1294f3('0x7')][_0x1294f3('0x5')]({'raw':_0x47675f[_0x1294f3('0x9')]?_0x47675f[_0x1294f3('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x47675f[_0x1294f3('0x9')]?_0x47675f[_0x1294f3('0x9')][_0x1294f3('0x15')]||null:null,'attributes':_0x47675f[_0x1294f3('0x9')]?_0x47675f[_0x1294f3('0x9')]['attributes']||null:null,'limit':_0x47675f[_0x1294f3('0x9')]?_0x47675f['options']['limit']||null:null,'include':_0x47675f['options']?_0x47675f['options'][_0x1294f3('0xc')]?_[_0x1294f3('0x14')](_0x47675f[_0x1294f3('0x9')][_0x1294f3('0xc')],function(_0x10afe7){const _0x428614=_0x1294f3;return{'model':db[_0x10afe7[_0x428614('0x19')]],'as':_0x10afe7['as'],'attributes':_0x10afe7['attributes'],'include':_0x10afe7[_0x428614('0xc')]?_['map'](_0x10afe7[_0x428614('0xc')],function(_0x5e2386){const _0x2080af=_0x428614;return{'model':db[_0x5e2386['model']],'as':_0x5e2386['as'],'attributes':_0x5e2386[_0x2080af('0x6')],'include':_0x5e2386[_0x2080af('0xc')]?_[_0x2080af('0x14')](_0x5e2386[_0x2080af('0xc')],function(_0x1d9aaf){const _0x2f9644=_0x2080af;return{'model':db[_0x1d9aaf[_0x2f9644('0x19')]],'as':_0x1d9aaf['as'],'attributes':_0x1d9aaf[_0x2f9644('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x433920){const _0x1430f6=_0x1294f3;logger[_0x1430f6('0xa')](_0x1430f6('0x4'),_0x47675f),logger[_0x1430f6('0xf')](_0x1430f6('0x4'),_0x47675f,JSON[_0x1430f6('0xb')](_0x433920)),_0x5aaaf3(_0x433920);})[_0x1294f3('0x17')](function(_0x523ef5){const _0x20b498=_0x1294f3;logger['error'](_0x20b498('0x4'),_0x523ef5['message'],_0x47675f),_0x5ab8be(_0x1b9d5a[_0x20b498('0x2')](0x1f4,_0x523ef5['message']));});});},exports[_0xd9e4c2('0x16')]=function(_0x11375e){const _0x31737c=this;return new Promise(function(_0x1b2ce9,_0xbc86b1){const _0x29c2ea=a756_0xf401;return db['VoiceQueue'][_0x29c2ea('0x8')]({'raw':_0x11375e[_0x29c2ea('0x9')]?_0x11375e[_0x29c2ea('0x9')][_0x29c2ea('0x1')]===undefined?!![]:![]:!![],'where':_0x11375e[_0x29c2ea('0x9')]?_0x11375e[_0x29c2ea('0x9')]['where']||null:null,'attributes':_0x11375e[_0x29c2ea('0x9')]?_0x11375e[_0x29c2ea('0x9')]['attributes']||null:null,'include':_0x11375e[_0x29c2ea('0x9')]?_0x11375e['options'][_0x29c2ea('0xc')]?_[_0x29c2ea('0x14')](_0x11375e['options'][_0x29c2ea('0xc')],function(_0x12f9ea){const _0x32cf05=_0x29c2ea;return{'model':db[_0x12f9ea[_0x32cf05('0x19')]],'as':_0x12f9ea['as'],'attributes':_0x12f9ea[_0x32cf05('0x6')],'include':_0x12f9ea[_0x32cf05('0xc')]?_[_0x32cf05('0x14')](_0x12f9ea[_0x32cf05('0xc')],function(_0x3b2c6c){const _0xfe1a1e=_0x32cf05;return{'model':db[_0x3b2c6c[_0xfe1a1e('0x19')]],'as':_0x3b2c6c['as'],'attributes':_0x3b2c6c[_0xfe1a1e('0x6')],'include':_0x3b2c6c[_0xfe1a1e('0xc')]?_['map'](_0x3b2c6c[_0xfe1a1e('0xc')],function(_0x2c0a72){const _0x4a1577=_0xfe1a1e;return{'model':db[_0x2c0a72[_0x4a1577('0x19')]],'as':_0x2c0a72['as'],'attributes':_0x2c0a72[_0x4a1577('0x6')]};}):[]};}):[]};}):[]:[]})[_0x29c2ea('0x11')](function(_0x755692){const _0x2db6a4=_0x29c2ea;logger[_0x2db6a4('0xa')](_0x2db6a4('0x16'),_0x11375e),logger[_0x2db6a4('0xf')](_0x2db6a4('0x16'),_0x11375e,JSON[_0x2db6a4('0xb')](_0x755692)),_0x1b2ce9(_0x755692);})[_0x29c2ea('0x17')](function(_0x2d3ad8){const _0x1033cf=_0x29c2ea;logger[_0x1033cf('0x2')](_0x1033cf('0x16'),_0x2d3ad8[_0x1033cf('0x18')],_0x11375e),_0xbc86b1(_0x31737c[_0x1033cf('0x2')](0x1f4,_0x2d3ad8[_0x1033cf('0x18')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index dc92530..5f3d6fd 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a757_0x37ff=['remove','emit','update','./voiceQueue.events','register'];(function(_0x176e4e,_0x37ff68){const _0x135b20=function(_0x4401fd){while(--_0x4401fd){_0x176e4e['push'](_0x176e4e['shift']());}};_0x135b20(++_0x37ff68);}(a757_0x37ff,0x6c));const a757_0x135b=function(_0x176e4e,_0x37ff68){_0x176e4e=_0x176e4e-0x0;let _0x135b20=a757_0x37ff[_0x176e4e];return _0x135b20;};const _0x15a6f8=a757_0x135b;'use strict';const VoiceQueueEvents=require(_0x15a6f8('0x0')),events=['save',_0x15a6f8('0x2'),_0x15a6f8('0x4')];function createListener(_0x4401fd,_0x5e03cc){return function(_0x343d3b){const _0x271b34=a757_0x135b;_0x5e03cc[_0x271b34('0x3')](_0x4401fd,_0x343d3b);};}exports[_0x15a6f8('0x1')]=function(_0x3dc51a){for(let _0x4f68b4=0x0,_0x263c79=events['length'];_0x4f68b4<_0x263c79;_0x4f68b4++){const _0x8f4a86=events[_0x4f68b4],_0x2d9529=createListener('voiceQueue:'+_0x8f4a86,_0x3dc51a);VoiceQueueEvents['on'](_0x8f4a86,_0x2d9529);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 5173a5d..15bed34 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a758_0x5d0d=['./voiceQueueReport.controller','../../components/auth/service','getVoiceQueuesReport','isAuthenticated','/:id','put','update','express','/describe','destroy','index','delete','Router','post','describe','get','exports','create'];(function(_0x56e5ed,_0x5d0d47){const _0x45b490=function(_0x111148){while(--_0x111148){_0x56e5ed['push'](_0x56e5ed['shift']());}};_0x45b490(++_0x5d0d47);}(a758_0x5d0d,0xc4));const a758_0x45b4=function(_0x56e5ed,_0x5d0d47){_0x56e5ed=_0x56e5ed-0x0;let _0x45b490=a758_0x5d0d[_0x56e5ed];return _0x45b490;};const _0x2e8968=a758_0x45b4;'use strict';const express=require(_0x2e8968('0x9')),router=express[_0x2e8968('0xe')](),auth=require(_0x2e8968('0x3')),controller=require(_0x2e8968('0x2'));router[_0x2e8968('0x11')]('/',auth[_0x2e8968('0x5')](),controller[_0x2e8968('0xc')]),router[_0x2e8968('0x11')](_0x2e8968('0xa'),auth['isAuthenticated'](),controller[_0x2e8968('0x10')]),router[_0x2e8968('0x11')]('/index',auth[_0x2e8968('0x5')](),controller[_0x2e8968('0x4')]),router[_0x2e8968('0x11')]('/:id',auth[_0x2e8968('0x5')](),controller['show']),router[_0x2e8968('0xf')]('/',auth[_0x2e8968('0x5')](),controller[_0x2e8968('0x1')]),router[_0x2e8968('0x7')](_0x2e8968('0x6'),auth[_0x2e8968('0x5')](),controller[_0x2e8968('0x8')]),router[_0x2e8968('0xd')](_0x2e8968('0x6'),auth['isAuthenticated'](),controller[_0x2e8968('0xb')]),module[_0x2e8968('0x0')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index 6e189e5..db27678 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a759_0x9f04=['holdtime','diff','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','DATE','moment','queuecallerjoinAt','YYYY-MM-DD\x20HH:mm:ss','setDataValue','INTEGER','queuecallerleaveAt','format','STRING','FORWARD,\x20BLIND,\x20ATTENDED','BOOLEAN'];(function(_0x50eae2,_0x9f042b){const _0x51bc52=function(_0xe4754){while(--_0xe4754){_0x50eae2['push'](_0x50eae2['shift']());}};_0x51bc52(++_0x9f042b);}(a759_0x9f04,0x18b));const a759_0x51bc=function(_0x50eae2,_0x9f042b){_0x50eae2=_0x50eae2-0x0;let _0x51bc52=a759_0x9f04[_0x50eae2];return _0x51bc52;};const _0x42b240=a759_0x51bc;'use strict';const Sequelize=require('sequelize'),moment=require(_0x42b240('0x1'));module['exports']={'type':{'type':Sequelize[_0x42b240('0x8')]},'uniqueid':{'type':Sequelize[_0x42b240('0x8')]},'calleridnum':{'type':Sequelize[_0x42b240('0x8')]},'calleridname':{'type':Sequelize[_0x42b240('0x8')]},'queue':{'type':Sequelize[_0x42b240('0x8')]},'queuecallerjoinAt':{'type':Sequelize[_0x42b240('0x0')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0xe4754){const _0x4a423a=_0x42b240,_0x9a4a4c=moment(_0xe4754),_0x5acf86=moment(this['getDataValue'](_0x4a423a('0x2')))[_0x4a423a('0x7')](_0x4a423a('0x3')),_0x927322=_0x9a4a4c[_0x4a423a('0xc')](_0x5acf86,'seconds');this[_0x4a423a('0x4')](_0x4a423a('0x6'),_0xe4754),this[_0x4a423a('0x4')](_0x4a423a('0xb'),_0x927322||null);}},'position':{'type':Sequelize[_0x42b240('0x5')]},'count':{'type':Sequelize[_0x42b240('0x5')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x42b240('0x0')]},'queuecallercomplete':{'type':Sequelize[_0x42b240('0xa')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize['DATE']},'queuecallerexit':{'type':Sequelize[_0x42b240('0xa')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x42b240('0x0')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x42b240('0xd')},'originalposition':{'type':Sequelize[_0x42b240('0x5')]},'channel':{'type':Sequelize[_0x42b240('0x8')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x42b240('0x8')]},'accountcode':{'type':Sequelize[_0x42b240('0x8')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x42b240('0x8')]},'holdtime':{'type':Sequelize[_0x42b240('0x5')]},'mohtime':{'type':Sequelize[_0x42b240('0x5')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x42b240('0xa')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x42b240('0x8')],'comment':_0x42b240('0x9')},'transferexten':{'type':Sequelize[_0x42b240('0x8')]},'transferuniqueid':{'type':Sequelize[_0x42b240('0x8')]},'disposition':{'type':Sequelize[_0x42b240('0x8')]},'secondDisposition':{'type':Sequelize[_0x42b240('0x8')]},'thirdDisposition':{'type':Sequelize[_0x42b240('0x8')]},'queuecallerenterreason':{'type':Sequelize[_0x42b240('0x5')],'defaultValue':0x0}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.controller.js b/server/api/voiceQueueReport/voiceQueueReport.controller.js index 7634f77..01edd6b 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a760_0x541f=['query','../../mysqldb','map','where','merge','destroy','length','show','intersection','then','../../rediscache','fieldName','error','./voiceQueueReport.socket','filter','body','order','params','getVoiceQueuesReport','undefined','index','api','sendStatus','rows','set','pick','limit','findOne','catch','attributes','lodash','type','offset','model','include','rawAttributes','count','sort','describe','keys','VoiceQueueReport','name','nolimit','register','create','includeAll','stack','Content-Range','../../components/parsers/qs','status','update','like','fields','filters','options','findAll','json'];(function(_0x18f319,_0x541f5e){const _0x3e1858=function(_0x41b5a1){while(--_0x41b5a1){_0x18f319['push'](_0x18f319['shift']());}};_0x3e1858(++_0x541f5e);}(a760_0x541f,0x197));const a760_0x3e18=function(_0x18f319,_0x541f5e){_0x18f319=_0x18f319-0x0;let _0x3e1858=a760_0x541f[_0x18f319];return _0x3e1858;};const _0x5282fd=a760_0x3e18;'use strict';const _=require(_0x5282fd('0x16')),qs=require(_0x5282fd('0x28')),logger=require('../../config/logger')(_0x5282fd('0xd')),{getSocket}=require(_0x5282fd('0x2')),socket=getSocket(),db=require(_0x5282fd('0x32'))['db'],{Op}=require('sequelize');require(_0x5282fd('0x5'))[_0x5282fd('0x23')](socket);function respondWithResult(_0x41b5a1,_0x238139){return _0x238139=_0x238139||0xc8,function(_0x1bd1b5){const _0x2c573b=a760_0x3e18;if(_0x1bd1b5)return _0x41b5a1[_0x2c573b('0x29')](_0x238139)['json'](_0x1bd1b5);};}function respondWithFilteredResult(_0x24cb42,_0x3803a2){return function(_0x1a45e2){const _0x7dea9d=a760_0x3e18;if(_0x1a45e2){const _0x1bae98=_0x1a45e2[_0x7dea9d('0x1c')],_0x347ba7=_0x3803a2[_0x7dea9d('0x18')];let _0x518585=_0x3803a2['offset']+_0x3803a2[_0x7dea9d('0x12')],_0x282c97;return _0x518585>=_0x1bae98?(_0x518585=_0x1bae98,_0x282c97=0xc8):_0x282c97=0xce,_0x24cb42['status'](_0x282c97),_0x24cb42[_0x7dea9d('0x10')](_0x7dea9d('0x27'),_0x347ba7+'-'+_0x518585+'/'+_0x1bae98)[_0x7dea9d('0x30')](_0x1a45e2);}return null;};}function saveUpdates(_0x502f60){return function(_0xd2d843){const _0x524cc2=a760_0x3e18;if(_0xd2d843)return _0xd2d843['update'](_0x502f60)[_0x524cc2('0x1')](function(_0x3744fa){return _0x3744fa;});return null;};}function removeEntity(_0x58f670){return function(_0x62e792){const _0xfdcac9=a760_0x3e18;if(_0x62e792)return _0x62e792[_0xfdcac9('0x36')]()[_0xfdcac9('0x1')](function(){_0x58f670['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x2f3e66){return function(_0x4a24f5){const _0xd5777a=a760_0x3e18;return!_0x4a24f5&&_0x2f3e66[_0xd5777a('0xe')](0x194),_0x4a24f5;};}function handleError(_0x2a45b4,_0x399966){return _0x399966=_0x399966||0x1f4,function(_0x2e1030){const _0x1f8abf=a760_0x3e18;logger[_0x1f8abf('0x4')](_0x2e1030[_0x1f8abf('0x26')]),_0x2e1030[_0x1f8abf('0x21')]&&delete _0x2e1030[_0x1f8abf('0x21')],_0x2a45b4[_0x1f8abf('0x29')](_0x399966)['send'](_0x2e1030);};}exports[_0x5282fd('0xc')]=function(_0x172e52,_0x49e774){const _0x2b72f8=_0x5282fd;let _0x46da6a={};const _0x413c1f={},_0x57771f={'count':0x0,'rows':[]},_0x374dee=_[_0x2b72f8('0x33')](db[_0x2b72f8('0x20')][_0x2b72f8('0x1b')],function(_0x4cfbd7){const _0x5da085=_0x2b72f8;return{'name':_0x4cfbd7[_0x5da085('0x3')],'type':_0x4cfbd7[_0x5da085('0x17')]['key']};});_0x413c1f['model']=_['map'](_0x374dee,_0x2b72f8('0x21')),_0x413c1f['query']=_[_0x2b72f8('0x1f')](_0x172e52['query']),_0x413c1f[_0x2b72f8('0x2d')]=_['intersection'](_0x413c1f[_0x2b72f8('0x19')],_0x413c1f[_0x2b72f8('0x31')]),_0x46da6a[_0x2b72f8('0x15')]=_[_0x2b72f8('0x0')](_0x413c1f[_0x2b72f8('0x19')],qs[_0x2b72f8('0x2c')](_0x172e52[_0x2b72f8('0x31')][_0x2b72f8('0x2c')])),_0x46da6a['attributes']=_0x46da6a[_0x2b72f8('0x15')][_0x2b72f8('0x37')]?_0x46da6a[_0x2b72f8('0x15')]:_0x413c1f['model'];typeof _0x172e52['query'][_0x2b72f8('0x22')]===_0x2b72f8('0xb')&&(_0x46da6a[_0x2b72f8('0x12')]=qs[_0x2b72f8('0x12')](_0x172e52[_0x2b72f8('0x31')]['limit']),_0x46da6a[_0x2b72f8('0x18')]=qs[_0x2b72f8('0x18')](_0x172e52[_0x2b72f8('0x31')][_0x2b72f8('0x18')]));_0x46da6a[_0x2b72f8('0x8')]=qs[_0x2b72f8('0x1d')](_0x172e52[_0x2b72f8('0x31')]['sort']),_0x46da6a[_0x2b72f8('0x34')]=qs[_0x2b72f8('0x2d')](_[_0x2b72f8('0x11')](_0x172e52[_0x2b72f8('0x31')],_0x413c1f[_0x2b72f8('0x2d')]),_0x374dee);_0x172e52[_0x2b72f8('0x31')][_0x2b72f8('0x6')]&&(_0x46da6a[_0x2b72f8('0x34')]=_[_0x2b72f8('0x35')](_0x46da6a['where'],{[Op['or']]:_[_0x2b72f8('0x33')](_0x374dee,function(_0x40b014){const _0x44592b=_0x2b72f8;if(_0x40b014[_0x44592b('0x17')]!=='VIRTUAL'){const _0x146e5f={};return _0x146e5f[_0x40b014['name']]={[Op[_0x44592b('0x2b')]]:'%'+_0x172e52[_0x44592b('0x31')][_0x44592b('0x6')]+'%'},_0x146e5f;}})}));_0x46da6a=_[_0x2b72f8('0x35')]({},_0x46da6a,_0x172e52[_0x2b72f8('0x2e')]);const _0x2423e0={'where':_0x46da6a[_0x2b72f8('0x34')]};return db['VoiceQueueReport'][_0x2b72f8('0x1c')](_0x2423e0)[_0x2b72f8('0x1')](function(_0x10d627){const _0x2a5d8c=_0x2b72f8;return _0x57771f['count']=_0x10d627,_0x172e52[_0x2a5d8c('0x31')][_0x2a5d8c('0x25')]&&(_0x46da6a[_0x2a5d8c('0x1a')]=[{'all':!![]}]),db[_0x2a5d8c('0x20')][_0x2a5d8c('0x2f')](_0x46da6a);})[_0x2b72f8('0x1')](function(_0x26afe3){return _0x57771f['rows']=_0x26afe3,_0x57771f;})[_0x2b72f8('0x1')](respondWithFilteredResult(_0x49e774,_0x46da6a))[_0x2b72f8('0x14')](handleError(_0x49e774,null));},exports[_0x5282fd('0x38')]=function(_0x2e0d0d,_0x4ed730){const _0x1a2123=_0x5282fd;let _0x586079={'raw':![],'where':{'id':_0x2e0d0d[_0x1a2123('0x9')]['id']}};const _0x4eb046={};return _0x4eb046['model']=_[_0x1a2123('0x1f')](db[_0x1a2123('0x20')][_0x1a2123('0x1b')]),_0x4eb046[_0x1a2123('0x31')]=_[_0x1a2123('0x1f')](_0x2e0d0d[_0x1a2123('0x31')]),_0x4eb046[_0x1a2123('0x2d')]=_[_0x1a2123('0x0')](_0x4eb046[_0x1a2123('0x19')],_0x4eb046[_0x1a2123('0x31')]),_0x586079[_0x1a2123('0x15')]=_[_0x1a2123('0x0')](_0x4eb046[_0x1a2123('0x19')],qs[_0x1a2123('0x2c')](_0x2e0d0d[_0x1a2123('0x31')][_0x1a2123('0x2c')])),_0x586079[_0x1a2123('0x15')]=_0x586079[_0x1a2123('0x15')][_0x1a2123('0x37')]?_0x586079[_0x1a2123('0x15')]:_0x4eb046[_0x1a2123('0x19')],_0x2e0d0d[_0x1a2123('0x31')][_0x1a2123('0x25')]&&(_0x586079[_0x1a2123('0x1a')]=[{'all':!![]}]),_0x586079=_[_0x1a2123('0x35')]({},_0x586079,_0x2e0d0d['options']),db[_0x1a2123('0x20')][_0x1a2123('0x13')](_0x586079)[_0x1a2123('0x1')](handleEntityNotFound(_0x4ed730,null))['then'](respondWithResult(_0x4ed730,null))[_0x1a2123('0x14')](handleError(_0x4ed730,null));},exports[_0x5282fd('0x24')]=function(_0x3d60c7,_0x2628a6){const _0x281862=_0x5282fd;return db[_0x281862('0x20')]['create'](_0x3d60c7['body'],{})['then'](respondWithResult(_0x2628a6,0xc9))[_0x281862('0x14')](handleError(_0x2628a6,null));},exports[_0x5282fd('0x2a')]=function(_0x5903b8,_0x3a727a){const _0xf6539c=_0x5282fd;return _0x5903b8[_0xf6539c('0x7')]['id']&&delete _0x5903b8[_0xf6539c('0x7')]['id'],db[_0xf6539c('0x20')][_0xf6539c('0x13')]({'where':{'id':_0x5903b8['params']['id']}})[_0xf6539c('0x1')](handleEntityNotFound(_0x3a727a,null))['then'](saveUpdates(_0x5903b8['body'],null))[_0xf6539c('0x1')](respondWithResult(_0x3a727a,null))['catch'](handleError(_0x3a727a,null));},exports[_0x5282fd('0x36')]=function(_0x12dc5c,_0x3075a6){const _0x4412f1=_0x5282fd;return db[_0x4412f1('0x20')][_0x4412f1('0x13')]({'where':{'id':_0x12dc5c[_0x4412f1('0x9')]['id']}})['then'](handleEntityNotFound(_0x3075a6,null))[_0x4412f1('0x1')](removeEntity(_0x3075a6,null))['catch'](handleError(_0x3075a6,null));},exports[_0x5282fd('0x1e')]=function(_0x1056ff,_0x43380c){const _0x51a7fd=_0x5282fd;return db[_0x51a7fd('0x20')]['describe']()[_0x51a7fd('0x1')](respondWithResult(_0x43380c,null))['catch'](handleError(_0x43380c,null));},exports[_0x5282fd('0xa')]=function(_0x3daf9a,_0x25c5e1){const _0x1e8889=_0x5282fd;let _0x38dbe1={};const _0x157b04={},_0x1ece30={'count':0x0,'rows':[]};_0x157b04[_0x1e8889('0x19')]=_[_0x1e8889('0x1f')](db[_0x1e8889('0x20')]['rawAttributes']),_0x157b04['query']=_[_0x1e8889('0x1f')](_0x3daf9a[_0x1e8889('0x31')]),_0x157b04[_0x1e8889('0x2d')]=_['intersection'](_0x157b04[_0x1e8889('0x19')],_0x157b04[_0x1e8889('0x31')]),_0x38dbe1[_0x1e8889('0x15')]=_['intersection'](_0x157b04[_0x1e8889('0x19')],qs[_0x1e8889('0x2c')](_0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x2c')])),_0x38dbe1[_0x1e8889('0x15')]=_0x38dbe1[_0x1e8889('0x15')][_0x1e8889('0x37')]?_0x38dbe1[_0x1e8889('0x15')]:_0x157b04[_0x1e8889('0x19')];typeof _0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x22')]===_0x1e8889('0xb')&&(_0x38dbe1[_0x1e8889('0x12')]=qs[_0x1e8889('0x12')](_0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x12')]),_0x38dbe1['offset']=qs[_0x1e8889('0x18')](_0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x18')]));_0x38dbe1['order']=qs['sort'](_0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x1d')]),_0x38dbe1[_0x1e8889('0x34')]=qs[_0x1e8889('0x2d')](_[_0x1e8889('0x11')](_0x3daf9a[_0x1e8889('0x31')],_0x157b04[_0x1e8889('0x2d')]));_0x3daf9a[_0x1e8889('0x31')][_0x1e8889('0x6')]&&(_0x38dbe1[_0x1e8889('0x34')]=_[_0x1e8889('0x35')](_0x38dbe1[_0x1e8889('0x34')],{[Op['or']]:_[_0x1e8889('0x33')](_0x38dbe1[_0x1e8889('0x15')],function(_0xb7b18f){const _0x275ace=_0x1e8889,_0x426b2a={};return _0x426b2a[_0xb7b18f]={[Op[_0x275ace('0x2b')]]:'%'+_0x3daf9a[_0x275ace('0x31')]['filter']+'%'},_0x426b2a;})}));_0x38dbe1=_[_0x1e8889('0x35')]({},_0x38dbe1,_0x3daf9a[_0x1e8889('0x2e')]);const _0x48d080={'where':_0x38dbe1[_0x1e8889('0x34')]};return db[_0x1e8889('0x20')]['count'](_0x48d080)[_0x1e8889('0x1')](function(_0x2a4893){const _0x3aa0f1=_0x1e8889;return _0x1ece30[_0x3aa0f1('0x1c')]=_0x2a4893,_0x3daf9a[_0x3aa0f1('0x31')][_0x3aa0f1('0x25')]&&(_0x38dbe1[_0x3aa0f1('0x1a')]=[{'all':!![]}]),db['VoiceQueueReport'][_0x3aa0f1('0x2f')](_0x38dbe1);})['then'](function(_0x5c6513){const _0x66071=_0x1e8889;return _0x1ece30[_0x66071('0xf')]=_0x5c6513,_0x1ece30;})[_0x1e8889('0x1')](respondWithFilteredResult(_0x25c5e1,_0x38dbe1,_0x1e8889('0xa')))[_0x1e8889('0x14')](handleError(_0x25c5e1,null,_0x1e8889('0xa')));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 473ddda..845e231 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a761_0x3d0c=['update','events','addHook','emit','setMaxListeners','exports'];(function(_0x923ac2,_0x3d0c9e){const _0x152409=function(_0x642db1){while(--_0x642db1){_0x923ac2['push'](_0x923ac2['shift']());}};_0x152409(++_0x3d0c9e);}(a761_0x3d0c,0x6f));const a761_0x1524=function(_0x923ac2,_0x3d0c9e){_0x923ac2=_0x923ac2-0x0;let _0x152409=a761_0x3d0c[_0x923ac2];return _0x152409;};const _0x240180=a761_0x1524;'use strict';const EventEmitter=require(_0x240180('0x4')),VoiceQueueReport=require('../../mysqldb')['db']['VoiceQueueReport'],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x240180('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x240180('0x3'),'afterDestroy':'remove'};function emitEvent(_0x642db1){return function(_0x1a468f){const _0x5588dd=a761_0x1524;VoiceQueueReportEvents[_0x5588dd('0x0')](_0x642db1+':'+_0x1a468f['id'],_0x1a468f),VoiceQueueReportEvents[_0x5588dd('0x0')](_0x642db1,_0x1a468f);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceQueueReport[_0x240180('0x5')](e,emitEvent(event));}}module[_0x240180('0x2')]=VoiceQueueReportEvents; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index 557fb82..f102afd 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a762_0x7100=['calleridnum','exports','define','uniqueid','VoiceQueueReport','report_queue'];(function(_0x9097ea,_0x7100a3){const _0x6f9279=function(_0x23ec76){while(--_0x23ec76){_0x9097ea['push'](_0x9097ea['shift']());}};_0x6f9279(++_0x7100a3);}(a762_0x7100,0xb9));const a762_0x6f92=function(_0x9097ea,_0x7100a3){_0x9097ea=_0x9097ea-0x0;let _0x6f9279=a762_0x7100[_0x9097ea];return _0x6f9279;};const _0x273286=a762_0x6f92;'use strict';const attributes=require('./voiceQueueReport.attributes');module[_0x273286('0x2')]=function(_0x23ec76){const _0x21c27c=_0x273286,_0x20fbc3=_0x23ec76[_0x21c27c('0x3')](_0x21c27c('0x5'),attributes,{'tableName':_0x21c27c('0x0'),'paranoid':![],'indexes':[{'fields':[_0x21c27c('0x4')]},{'fields':[_0x21c27c('0x1')]}],'timestamps':!![]});return _0x20fbc3;}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index bf737f6..b12ee40 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a763_0xf9e6=['body','../../rediscache','GetVoiceQueueReport','raw','map','model','VoiceQueueReport','stringify','where','../../mysqldb','CreateVoiceQueueReport','catch','attributes','../../config/logger','debug','rpc','error','register','findAll','./voiceQueueReport.socket','include','UpdateVoiceQueueReport','create','message','limit','options','then','info'];(function(_0x5698d6,_0xf9e63){const _0xe04050=function(_0x503b83){while(--_0x503b83){_0x5698d6['push'](_0x5698d6['shift']());}};_0xe04050(++_0xf9e63);}(a763_0xf9e6,0x134));const a763_0xe040=function(_0x5698d6,_0xf9e63){_0x5698d6=_0x5698d6-0x0;let _0xe04050=a763_0xf9e6[_0x5698d6];return _0xe04050;};const _0x4ed4ab=a763_0xe040;'use strict';const _=require('lodash'),db=require(_0x4ed4ab('0x9'))['db'],logger=require(_0x4ed4ab('0xd'))(_0x4ed4ab('0xf')),{getSocket}=require(_0x4ed4ab('0x1')),socket=getSocket();require(_0x4ed4ab('0x13'))[_0x4ed4ab('0x11')](socket),exports[_0x4ed4ab('0x2')]=function(_0x503b83){const _0x479440=this;return new Promise(function(_0x3b39a0,_0x260241){const _0x3a1d2c=a763_0xe040;return db[_0x3a1d2c('0x6')][_0x3a1d2c('0x12')]({'raw':_0x503b83[_0x3a1d2c('0x19')]?_0x503b83[_0x3a1d2c('0x19')][_0x3a1d2c('0x3')]===undefined?!![]:![]:!![],'where':_0x503b83[_0x3a1d2c('0x19')]?_0x503b83[_0x3a1d2c('0x19')][_0x3a1d2c('0x8')]||null:null,'attributes':_0x503b83[_0x3a1d2c('0x19')]?_0x503b83[_0x3a1d2c('0x19')][_0x3a1d2c('0xc')]||null:null,'limit':_0x503b83['options']?_0x503b83[_0x3a1d2c('0x19')]['limit']||null:null,'include':_0x503b83[_0x3a1d2c('0x19')]?_0x503b83['options'][_0x3a1d2c('0x14')]?_[_0x3a1d2c('0x4')](_0x503b83[_0x3a1d2c('0x19')]['include'],function(_0x57bcfd){const _0x5eff5b=_0x3a1d2c;return{'model':db[_0x57bcfd[_0x5eff5b('0x5')]],'as':_0x57bcfd['as'],'attributes':_0x57bcfd[_0x5eff5b('0xc')],'include':_0x57bcfd['include']?_[_0x5eff5b('0x4')](_0x57bcfd[_0x5eff5b('0x14')],function(_0x260b26){const _0x26ad6b=_0x5eff5b;return{'model':db[_0x260b26[_0x26ad6b('0x5')]],'as':_0x260b26['as'],'attributes':_0x260b26[_0x26ad6b('0xc')],'include':_0x260b26[_0x26ad6b('0x14')]?_['map'](_0x260b26[_0x26ad6b('0x14')],function(_0x3c8294){const _0x2857cc=_0x26ad6b;return{'model':db[_0x3c8294['model']],'as':_0x3c8294['as'],'attributes':_0x3c8294[_0x2857cc('0xc')]};}):[]};}):[]};}):[]:[]})[_0x3a1d2c('0x1a')](function(_0x27733d){const _0x533266=_0x3a1d2c;logger[_0x533266('0x1b')]('GetVoiceQueueReport',_0x503b83),logger[_0x533266('0xe')]('GetVoiceQueueReport',_0x503b83,JSON[_0x533266('0x7')](_0x27733d)),_0x3b39a0(_0x27733d);})[_0x3a1d2c('0xb')](function(_0xb76942){const _0x18cd00=_0x3a1d2c;logger['error'](_0x18cd00('0x2'),_0xb76942[_0x18cd00('0x17')],_0x503b83),_0x260241(_0x479440['error'](0x1f4,_0xb76942[_0x18cd00('0x17')]));});});},exports[_0x4ed4ab('0xa')]=function(_0x178f87){const _0x1a8c5d=this;return new Promise(function(_0x10dd50,_0x569a31){const _0x2127af=a763_0xe040;return db[_0x2127af('0x6')][_0x2127af('0x16')](_0x178f87[_0x2127af('0x0')],{'raw':_0x178f87[_0x2127af('0x19')]?_0x178f87[_0x2127af('0x19')][_0x2127af('0x3')]===undefined?!![]:![]:!![]})[_0x2127af('0x1a')](function(_0x55e136){const _0x2552c0=_0x2127af;logger[_0x2552c0('0x1b')](_0x2552c0('0xa'),_0x178f87),logger[_0x2552c0('0xe')]('CreateVoiceQueueReport',_0x178f87,JSON[_0x2552c0('0x7')](_0x55e136)),_0x10dd50(_0x55e136);})[_0x2127af('0xb')](function(_0x3992b0){const _0x2c4cb0=_0x2127af;logger['error']('CreateVoiceQueueReport',_0x3992b0[_0x2c4cb0('0x17')],_0x178f87),_0x569a31(_0x1a8c5d[_0x2c4cb0('0x10')](0x1f4,_0x3992b0['message']));});});},exports['UpdateVoiceQueueReport']=function(_0x547bfa){const _0x794274=this;return new Promise(function(_0x466f55,_0x5811e0){const _0x90a175=a763_0xe040;return db[_0x90a175('0x6')]['update'](_0x547bfa[_0x90a175('0x0')],{'raw':_0x547bfa['options']?_0x547bfa['options'][_0x90a175('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x547bfa[_0x90a175('0x19')]?_0x547bfa[_0x90a175('0x19')]['where']||null:null,'attributes':_0x547bfa[_0x90a175('0x19')]?_0x547bfa[_0x90a175('0x19')][_0x90a175('0xc')]||null:null,'limit':_0x547bfa[_0x90a175('0x19')]?_0x547bfa['options'][_0x90a175('0x18')]||null:null})[_0x90a175('0x1a')](function(_0x375799){const _0x542748=_0x90a175;logger[_0x542748('0x1b')](_0x542748('0x15'),_0x547bfa),logger[_0x542748('0xe')](_0x542748('0x15'),_0x547bfa,JSON[_0x542748('0x7')](_0x375799)),_0x466f55(_0x375799);})[_0x90a175('0xb')](function(_0x883a33){const _0x4e469f=_0x90a175;logger['error'](_0x4e469f('0x15'),_0x883a33[_0x4e469f('0x17')],_0x547bfa),_0x5811e0(_0x794274[_0x4e469f('0x10')](0x1f4,_0x883a33[_0x4e469f('0x17')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index f1e856c..3f1fe26 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a764_0xf431=['remove','emit','register','voiceQueueReport:','./voiceQueueReport.events','update'];(function(_0x1da5e9,_0xf43179){const _0x43961c=function(_0xc46fea){while(--_0xc46fea){_0x1da5e9['push'](_0x1da5e9['shift']());}};_0x43961c(++_0xf43179);}(a764_0xf431,0x138));const a764_0x4396=function(_0x1da5e9,_0xf43179){_0x1da5e9=_0x1da5e9-0x0;let _0x43961c=a764_0xf431[_0x1da5e9];return _0x43961c;};const _0x26faf7=a764_0x4396;'use strict';const VoiceQueueReportEvents=require(_0x26faf7('0x4')),events=['save',_0x26faf7('0x0'),_0x26faf7('0x5')];function createListener(_0xc46fea,_0x5a3d80){return function(_0x480fbf){const _0x47c3bb=a764_0x4396;_0x5a3d80[_0x47c3bb('0x1')](_0xc46fea,_0x480fbf);};}exports[_0x26faf7('0x2')]=function(_0x562e53){const _0x20e74c=_0x26faf7;for(let _0x56f245=0x0,_0x4d1a25=events['length'];_0x56f245<_0x4d1a25;_0x56f245++){const _0x5c22d0=events[_0x56f245],_0x1dd0e6=createListener(_0x20e74c('0x3')+_0x5c22d0,_0x562e53);VoiceQueueReportEvents['on'](_0x5c22d0,_0x1dd0e6);}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index 2f93720..8114832 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a765_0x390e=['show','delete','update','express','/:id','put','get','post','./voiceQueuesLog.controller','exports','index','Router','isAuthenticated','../../components/auth/service'];(function(_0x481c85,_0x390e2e){const _0x33e6e9=function(_0x3b91a4){while(--_0x3b91a4){_0x481c85['push'](_0x481c85['shift']());}};_0x33e6e9(++_0x390e2e);}(a765_0x390e,0x1d6));const a765_0x33e6=function(_0x481c85,_0x390e2e){_0x481c85=_0x481c85-0x0;let _0x33e6e9=a765_0x390e[_0x481c85];return _0x33e6e9;};const _0x47c629=a765_0x33e6;'use strict';const express=require(_0x47c629('0x9')),router=express[_0x47c629('0x3')](),auth=require(_0x47c629('0x5')),controller=require(_0x47c629('0x0'));router['get']('/',auth[_0x47c629('0x4')](),controller[_0x47c629('0x2')]),router[_0x47c629('0xc')]('/:id',auth[_0x47c629('0x4')](),controller[_0x47c629('0x6')]),router[_0x47c629('0xd')]('/',auth[_0x47c629('0x4')](),controller['create']),router[_0x47c629('0xb')](_0x47c629('0xa'),auth[_0x47c629('0x4')](),controller[_0x47c629('0x8')]),router[_0x47c629('0x7')](_0x47c629('0xa'),auth[_0x47c629('0x4')](),controller['destroy']),module[_0x47c629('0x1')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index 1fa3aa2..0491c4e 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a766_0x4547=['sequelize','moment','STRING','DATE','format','exports'];(function(_0x448b6c,_0x454791){const _0x49b100=function(_0xa2f425){while(--_0xa2f425){_0x448b6c['push'](_0x448b6c['shift']());}};_0x49b100(++_0x454791);}(a766_0x4547,0x8a));const a766_0x49b1=function(_0x448b6c,_0x454791){_0x448b6c=_0x448b6c-0x0;let _0x49b100=a766_0x4547[_0x448b6c];return _0x49b100;};const _0x55ada5=a766_0x49b1;'use strict';const Sequelize=require(_0x55ada5('0x0')),moment=require(_0x55ada5('0x1'));module[_0x55ada5('0x5')]={'time':{'type':Sequelize[_0x55ada5('0x2')]},'callid':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x55ada5('0x2')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize[_0x55ada5('0x3')],'allowNull':![],'defaultValue':moment()[_0x55ada5('0x4')]('YYYY-MM-DD\x20HH:mm:ss')}}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index 95548d3..bcd9d09 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a767_0x3991=['end','pick','filter','sendStatus','options','undefined','then','create','include','attributes','keys','../../components/parsers/qs','name','like','type','status','sort','model','Content-Range','length','map','filters','offset','rows','where','sequelize','findOne','update','VoiceQueuesLog','../../mysqldb','catch','intersection','destroy','count','../../config/logger','lodash','limit','body','merge','set','params','fields','query','includeAll','send','error','findAll'];(function(_0x28077f,_0x39915d){const _0x2d0a3a=function(_0x102dcb){while(--_0x102dcb){_0x28077f['push'](_0x28077f['shift']());}};_0x2d0a3a(++_0x39915d);}(a767_0x3991,0xb0));const a767_0x2d0a=function(_0x28077f,_0x39915d){_0x28077f=_0x28077f-0x0;let _0x2d0a3a=a767_0x3991[_0x28077f];return _0x2d0a3a;};const _0x5da850=a767_0x2d0a;'use strict';const _=require(_0x5da850('0x0')),qs=require(_0x5da850('0x17')),logger=require(_0x5da850('0x2e'))('api'),db=require(_0x5da850('0x29'))['db'],{Op}=require(_0x5da850('0x25'));function respondWithResult(_0x102dcb,_0x56d5b2){return _0x56d5b2=_0x56d5b2||0xc8,function(_0x42cac0){const _0xe2aef6=a767_0x2d0a;if(_0x42cac0)return _0x102dcb[_0xe2aef6('0x1b')](_0x56d5b2)['json'](_0x42cac0);};}function respondWithFilteredResult(_0x3c485f,_0x269b17){return function(_0x195748){const _0x4df762=a767_0x2d0a;if(_0x195748){const _0x18ba6a=_0x195748[_0x4df762('0x2d')],_0xee1dd9=_0x269b17[_0x4df762('0x22')];let _0x823228=_0x269b17['offset']+_0x269b17['limit'],_0x3dd693;return _0x823228>=_0x18ba6a?(_0x823228=_0x18ba6a,_0x3dd693=0xc8):_0x3dd693=0xce,_0x3c485f['status'](_0x3dd693),_0x3c485f[_0x4df762('0x4')](_0x4df762('0x1e'),_0xee1dd9+'-'+_0x823228+'/'+_0x18ba6a)['json'](_0x195748);}return null;};}function saveUpdates(_0x10609e){return function(_0x1a46cc){const _0x5d804f=a767_0x2d0a;if(_0x1a46cc)return _0x1a46cc['update'](_0x10609e)[_0x5d804f('0x12')](function(_0x573de2){return _0x573de2;});return null;};}function removeEntity(_0x1afca9){return function(_0x1a80f4){const _0x1babdf=a767_0x2d0a;if(_0x1a80f4)return _0x1a80f4['destroy']()[_0x1babdf('0x12')](function(){const _0x287d90=_0x1babdf;_0x1afca9[_0x287d90('0x1b')](0xcc)[_0x287d90('0xc')]();});};}function handleEntityNotFound(_0x45b7e3){return function(_0x383c1b){const _0x5e358b=a767_0x2d0a;return!_0x383c1b&&_0x45b7e3[_0x5e358b('0xf')](0x194),_0x383c1b;};}function handleError(_0x2b6601,_0x20fc59){return _0x20fc59=_0x20fc59||0x1f4,function(_0x34c6d2){const _0x481f68=a767_0x2d0a;logger[_0x481f68('0xa')](_0x34c6d2['stack']),_0x34c6d2[_0x481f68('0x18')]&&delete _0x34c6d2['name'],_0x2b6601[_0x481f68('0x1b')](_0x20fc59)[_0x481f68('0x9')](_0x34c6d2);};}exports['index']=function(_0x1c336d,_0x386f50){const _0x82cbe=_0x5da850;let _0x11ee04={};const _0x4bc24a={},_0x4c4715={'count':0x0,'rows':[]},_0x3bf5ad=_[_0x82cbe('0x20')](db['VoiceQueuesLog']['rawAttributes'],function(_0x8af820){const _0x50923e=_0x82cbe;return{'name':_0x8af820['fieldName'],'type':_0x8af820[_0x50923e('0x1a')]['key']};});_0x4bc24a['model']=_[_0x82cbe('0x20')](_0x3bf5ad,_0x82cbe('0x18')),_0x4bc24a[_0x82cbe('0x7')]=_['keys'](_0x1c336d['query']),_0x4bc24a['filters']=_[_0x82cbe('0x2b')](_0x4bc24a[_0x82cbe('0x1d')],_0x4bc24a[_0x82cbe('0x7')]),_0x11ee04['attributes']=_[_0x82cbe('0x2b')](_0x4bc24a[_0x82cbe('0x1d')],qs['fields'](_0x1c336d[_0x82cbe('0x7')][_0x82cbe('0x6')])),_0x11ee04[_0x82cbe('0x15')]=_0x11ee04['attributes']['length']?_0x11ee04[_0x82cbe('0x15')]:_0x4bc24a[_0x82cbe('0x1d')];typeof _0x1c336d[_0x82cbe('0x7')]['nolimit']===_0x82cbe('0x11')&&(_0x11ee04[_0x82cbe('0x1')]=qs['limit'](_0x1c336d[_0x82cbe('0x7')][_0x82cbe('0x1')]),_0x11ee04['offset']=qs['offset'](_0x1c336d[_0x82cbe('0x7')][_0x82cbe('0x22')]));_0x11ee04['order']=qs[_0x82cbe('0x1c')](_0x1c336d[_0x82cbe('0x7')][_0x82cbe('0x1c')]),_0x11ee04[_0x82cbe('0x24')]=qs['filters'](_[_0x82cbe('0xd')](_0x1c336d[_0x82cbe('0x7')],_0x4bc24a['filters']),_0x3bf5ad);_0x1c336d[_0x82cbe('0x7')]['filter']&&(_0x11ee04['where']=_['merge'](_0x11ee04[_0x82cbe('0x24')],{[Op['or']]:_['map'](_0x3bf5ad,function(_0x3d2a2a){const _0x1e492b=_0x82cbe;if(_0x3d2a2a[_0x1e492b('0x1a')]!=='VIRTUAL'){const _0x23666b={};return _0x23666b[_0x3d2a2a[_0x1e492b('0x18')]]={[Op[_0x1e492b('0x19')]]:'%'+_0x1c336d[_0x1e492b('0x7')][_0x1e492b('0xe')]+'%'},_0x23666b;}})}));_0x11ee04=_['merge']({},_0x11ee04,_0x1c336d[_0x82cbe('0x10')]);const _0x53f68c={'where':_0x11ee04[_0x82cbe('0x24')]};return db['VoiceQueuesLog'][_0x82cbe('0x2d')](_0x53f68c)[_0x82cbe('0x12')](function(_0x558229){const _0x5a93b7=_0x82cbe;return _0x4c4715[_0x5a93b7('0x2d')]=_0x558229,_0x1c336d[_0x5a93b7('0x7')][_0x5a93b7('0x8')]&&(_0x11ee04[_0x5a93b7('0x14')]=[{'all':!![]}]),db['VoiceQueuesLog'][_0x5a93b7('0xb')](_0x11ee04);})[_0x82cbe('0x12')](function(_0x30dc2c){const _0x41fd76=_0x82cbe;return _0x4c4715[_0x41fd76('0x23')]=_0x30dc2c,_0x4c4715;})[_0x82cbe('0x12')](respondWithFilteredResult(_0x386f50,_0x11ee04))[_0x82cbe('0x2a')](handleError(_0x386f50,null));},exports['show']=function(_0x50805e,_0x57a3fb){const _0x22ceda=_0x5da850;let _0x4e2442={'raw':!![],'where':{'id':_0x50805e[_0x22ceda('0x5')]['id']}};const _0x32785a={};return _0x32785a[_0x22ceda('0x1d')]=_[_0x22ceda('0x16')](db[_0x22ceda('0x28')]['rawAttributes']),_0x32785a[_0x22ceda('0x7')]=_['keys'](_0x50805e['query']),_0x32785a[_0x22ceda('0x21')]=_[_0x22ceda('0x2b')](_0x32785a[_0x22ceda('0x1d')],_0x32785a['query']),_0x4e2442[_0x22ceda('0x15')]=_[_0x22ceda('0x2b')](_0x32785a[_0x22ceda('0x1d')],qs['fields'](_0x50805e[_0x22ceda('0x7')]['fields'])),_0x4e2442['attributes']=_0x4e2442[_0x22ceda('0x15')][_0x22ceda('0x1f')]?_0x4e2442['attributes']:_0x32785a[_0x22ceda('0x1d')],_0x50805e['query'][_0x22ceda('0x8')]&&(_0x4e2442[_0x22ceda('0x14')]=[{'all':!![]}]),_0x4e2442=_[_0x22ceda('0x3')]({},_0x4e2442,_0x50805e[_0x22ceda('0x10')]),db[_0x22ceda('0x28')][_0x22ceda('0x26')](_0x4e2442)[_0x22ceda('0x12')](handleEntityNotFound(_0x57a3fb,null))[_0x22ceda('0x12')](respondWithResult(_0x57a3fb,null))[_0x22ceda('0x2a')](handleError(_0x57a3fb,null));},exports[_0x5da850('0x13')]=function(_0x442050,_0x4d3cd6){const _0x317cd2=_0x5da850;return db[_0x317cd2('0x28')][_0x317cd2('0x13')](_0x442050['body'],{})[_0x317cd2('0x12')](respondWithResult(_0x4d3cd6,0xc9))[_0x317cd2('0x2a')](handleError(_0x4d3cd6,null));},exports[_0x5da850('0x27')]=function(_0x3d5d75,_0x1315b4){const _0x4b5bcd=_0x5da850;return _0x3d5d75[_0x4b5bcd('0x2')]['id']&&delete _0x3d5d75[_0x4b5bcd('0x2')]['id'],db[_0x4b5bcd('0x28')]['findOne']({'where':{'id':_0x3d5d75[_0x4b5bcd('0x5')]['id']}})[_0x4b5bcd('0x12')](handleEntityNotFound(_0x1315b4,null))[_0x4b5bcd('0x12')](saveUpdates(_0x3d5d75['body'],null))[_0x4b5bcd('0x12')](respondWithResult(_0x1315b4,null))['catch'](handleError(_0x1315b4,null));},exports[_0x5da850('0x2c')]=function(_0x3a34c3,_0x536189){const _0x5d667e=_0x5da850;return db[_0x5d667e('0x28')][_0x5d667e('0x26')]({'where':{'id':_0x3a34c3[_0x5d667e('0x5')]['id']}})[_0x5d667e('0x12')](handleEntityNotFound(_0x536189,null))[_0x5d667e('0x12')](removeEntity(_0x536189,null))[_0x5d667e('0x2a')](handleError(_0x536189,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index f8ecbc9..9a88618 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a768_0x3df6=['voice_queues_log','exports','VoiceQueuesLog','event_dtm','dtm'];(function(_0x2bbe11,_0x3df62f){const _0x3fb81a=function(_0x22fd3d){while(--_0x22fd3d){_0x2bbe11['push'](_0x2bbe11['shift']());}};_0x3fb81a(++_0x3df62f);}(a768_0x3df6,0x156));const a768_0x3fb8=function(_0x2bbe11,_0x3df62f){_0x2bbe11=_0x2bbe11-0x0;let _0x3fb81a=a768_0x3df6[_0x2bbe11];return _0x3fb81a;};const _0x562e11=a768_0x3fb8;'use strict';const attributes=require('./voiceQueuesLog.attributes');module[_0x562e11('0x4')]=function(_0x22fd3d){const _0x320656=_0x562e11,_0x511ee3=_0x22fd3d['define'](_0x320656('0x0'),attributes,{'tableName':_0x320656('0x3'),'paranoid':![],'indexes':[{'name':_0x320656('0x1'),'fields':['event',_0x320656('0x2')]}],'timestamps':![]});return _0x511ee3;}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index 429fcb3..f96890c 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a769_0x1b83=['delete','express','downloads','/describe','show','downloadTranscribe','./voiceRecording.controller','runTranscribe','/:id/transcribe','download','Router','isAuthenticated','get','destroy','update','exports','/:id','create','../../components/auth/service','describe','post'];(function(_0x433cf0,_0x1b83fc){const _0x37e7bb=function(_0x27da4f){while(--_0x27da4f){_0x433cf0['push'](_0x433cf0['shift']());}};_0x37e7bb(++_0x1b83fc);}(a769_0x1b83,0x191));const a769_0x37e7=function(_0x433cf0,_0x1b83fc){_0x433cf0=_0x433cf0-0x0;let _0x37e7bb=a769_0x1b83[_0x433cf0];return _0x37e7bb;};const _0x44422c=a769_0x37e7;'use strict';const express=require(_0x44422c('0x14')),router=express[_0x44422c('0x8')](),auth=require(_0x44422c('0x10')),controller=require(_0x44422c('0x4'));router[_0x44422c('0xa')]('/',auth[_0x44422c('0x9')](),controller['index']),router[_0x44422c('0xa')](_0x44422c('0x1'),auth['isAuthenticated'](),controller[_0x44422c('0x11')]),router[_0x44422c('0xa')](_0x44422c('0xe'),auth[_0x44422c('0x9')](),controller[_0x44422c('0x2')]),router[_0x44422c('0xa')]('/:id/download',auth[_0x44422c('0x9')](),controller[_0x44422c('0x7')]),router[_0x44422c('0xa')]('/:id/downloads',controller[_0x44422c('0x0')]),router[_0x44422c('0xa')]('/:id/transcribe',auth[_0x44422c('0x9')](),controller[_0x44422c('0x3')]),router['post']('/',auth[_0x44422c('0x9')](),controller[_0x44422c('0xf')]),router[_0x44422c('0x12')](_0x44422c('0x6'),auth['isAuthenticated'](),controller[_0x44422c('0x5')]),router['put'](_0x44422c('0xe'),auth[_0x44422c('0x9')](),controller[_0x44422c('0xc')]),router[_0x44422c('0x13')]('/:id',auth[_0x44422c('0x9')](),controller[_0x44422c('0xb')]),module[_0x44422c('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index 99df783..7dc2257 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a770_0x3cdd=['createdAt','updatedAt','path','STRING','setDataValue','extname','getDataValue','DATE','BOOLEAN','format','TEXT','toString','FLOAT','exports','value','split','moment','MM-DD-YYYY\x20HH:mm','NEW','membername'];(function(_0x17ad2c,_0x3cdd0c){const _0x49a59a=function(_0x2550dd){while(--_0x2550dd){_0x17ad2c['push'](_0x17ad2c['shift']());}};_0x49a59a(++_0x3cdd0c);}(a770_0x3cdd,0x18f));const a770_0x49a5=function(_0x17ad2c,_0x3cdd0c){_0x17ad2c=_0x17ad2c-0x0;let _0x49a59a=a770_0x3cdd[_0x17ad2c];return _0x49a59a;};const _0x21a01c=a770_0x49a5;'use strict';const Sequelize=require('sequelize'),moment=require(_0x21a01c('0x11')),path=require(_0x21a01c('0x3'));module[_0x21a01c('0xe')]={'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x180508=_0x21a01c;return this['getDataValue'](_0x180508('0xf'))?path[_0x180508('0x6')](this[_0x180508('0x7')](_0x180508('0xf'))):undefined;}},'uniqueid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize['STRING'],'set':function(_0x2550dd){const _0x3dfb0e=_0x21a01c;_0x2550dd&&(this[_0x3dfb0e('0x5')]('channel',_0x2550dd),this['setDataValue'](_0x3dfb0e('0x0'),_0x2550dd[_0x3dfb0e('0x10')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x21a01c('0x4')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x21a01c('0x4')]},'connectedlinename':{'type':Sequelize[_0x21a01c('0x4')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x21a01c('0x4')]},'exten':{'type':Sequelize[_0x21a01c('0x4')]},'value':{'type':Sequelize[_0x21a01c('0x4')]},'type':{'type':Sequelize[_0x21a01c('0x4')]},'rating':{'type':Sequelize['INTEGER'],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x21a01c('0x4')]},'userDisposition':{'type':Sequelize[_0x21a01c('0x4')]},'userSecondDisposition':{'type':Sequelize[_0x21a01c('0x4')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize[_0x21a01c('0xb')]},'transcribeName':{'type':Sequelize[_0x21a01c('0x4')]},'transcribeStatus':{'type':Sequelize[_0x21a01c('0x4')],'defaultValue':_0x21a01c('0x13')},'fileUri':{'type':Sequelize[_0x21a01c('0xb')]},'fileText':{'type':Sequelize[_0x21a01c('0xb')]},'failureReason':{'type':Sequelize['TEXT']},'sentiment':{'type':Sequelize[_0x21a01c('0x4')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize[_0x21a01c('0xd')]},'sNeutral':{'type':Sequelize[_0x21a01c('0xd')]},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize[_0x21a01c('0x9')],'defaultValue':![]},'createdAt':{'type':Sequelize['DATE'],'get':function(){const _0x4bc0f7=_0x21a01c;return moment(this[_0x4bc0f7('0x7')](_0x4bc0f7('0x1')))['format']('MM-DD-YYYY\x20HH:mm')[_0x4bc0f7('0xc')]();}},'updatedAt':{'type':Sequelize[_0x21a01c('0x8')],'get':function(){const _0x113f86=_0x21a01c;return moment(this['getDataValue'](_0x113f86('0x2')))[_0x113f86('0xa')](_0x113f86('0x12'))[_0x113f86('0xc')]();}}}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index 6c0e466..6cf8f9e 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a771_0x2f9a=['downloadTranscribe','startTranscriptionJob','rawAttributes','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','include','Name','VoiceRecording','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','transcribeRegion','error-middleware/errors','uniqueid','secrets','offset','model','attributes','body','basename','/server/files/transcribes/transcribe_','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','key','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','../../mysqldb','TranscribeService','undefined','Transcript\x20not\x20available','findAll','filename','api','lodash','where','writeFile','data2','merge','TranscriptionJobName','decryptFile','find','token','end','downloads','Setting','transcribeStatus','map','Entity\x20not\x20found','json','length','location','uuid','info','options','name','like','Buckets','value','sendStatus','Location','order','unlink','CloudProvider','message','VIRTUAL','fields','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','intersection','keys','TranscriptionJob','upload','path','%s.cypher','sentiment','includeAll','isNil','Sentiment\x20Analysis\x20not\x20configured','query','and','push','nolimit','Content-Range','filters','extname','create','transcribe','params','runSentiment','createBucket','language','File:\x20\x22','fieldName','$and','tempSentiment','index','IN_PROGRESS','Transcribe\x20not\x20configured','cancellazione\x20fisica\x20documento\x20%s','then','../../components/encryptor','status','destroy','data1','sort','existsSync','[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s','type','transcribeAccountId','filter','download','bucket','sentimentAccountId','findOne','recording','update','Cloud\x20Provider\x20not\x20available','sequelize','VoiceRecording\x20not\x20found','show','Cloud\x20Provider\x20not\x20configured','rows','send','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','limit','unlinkSync','format','catch','describe','count'];(function(_0x43fe4a,_0x2f9aa8){const _0x59fcf7=function(_0x58519a){while(--_0x58519a){_0x43fe4a['push'](_0x43fe4a['shift']());}};_0x59fcf7(++_0x2f9aa8);}(a771_0x2f9a,0x9f));const a771_0x59fc=function(_0x43fe4a,_0x2f9aa8){_0x43fe4a=_0x43fe4a-0x0;let _0x59fcf7=a771_0x2f9a[_0x43fe4a];return _0x59fcf7;};const _0x1af022=a771_0x59fc;'use strict';const util=require('util'),path=require(_0x1af022('0x21')),fs=require('fs'),_=require(_0x1af022('0x77')),AWS=require('aws-sdk'),{v4:uuidv4}=require(_0x1af022('0xc')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1af022('0x76')),config=require('../../config/environment'),db=require(_0x1af022('0x70'))['db'],{Op,fn,col,ValidationError}=require(_0x1af022('0x4e')),{InternalError}=require(_0x1af022('0x64'));function respondWithResult(_0x58519a,_0x501d70){return _0x501d70=_0x501d70||0xc8,function(_0x45b2b4){const _0x2784a4=a771_0x59fc;if(_0x45b2b4)return _0x58519a['status'](_0x501d70)[_0x2784a4('0x9')](_0x45b2b4);};}function respondWithFilteredResult(_0x19d8cd,_0x2ad9cd){return function(_0x26eea4){const _0x1ded0a=a771_0x59fc;if(_0x26eea4){const _0x3b50cb=_0x26eea4[_0x1ded0a('0x5a')],_0x3bae5a=_0x2ad9cd['offset'];let _0xa77e87=_0x2ad9cd[_0x1ded0a('0x67')]+_0x2ad9cd[_0x1ded0a('0x55')],_0x45fb7a;return _0xa77e87>=_0x3b50cb?(_0xa77e87=_0x3b50cb,_0x45fb7a=0xc8):_0x45fb7a=0xce,_0x19d8cd[_0x1ded0a('0x3e')](_0x45fb7a),_0x19d8cd['set'](_0x1ded0a('0x2b'),_0x3bae5a+'-'+_0xa77e87+'/'+_0x3b50cb)[_0x1ded0a('0x9')](_0x26eea4);}return null;};}function saveUpdates(_0x4ab90f){return function(_0x3cd29b){if(_0x3cd29b)return _0x3cd29b['update'](_0x4ab90f)['then'](function(_0x2154c9){return _0x2154c9;});return null;};}function handleEntityNotFound(_0x2a55d8){return function(_0x2ff86c){const _0x1335fe=a771_0x59fc;return!_0x2ff86c&&_0x2a55d8[_0x1335fe('0x13')](0x194),_0x2ff86c;};}function handleError(_0x1b5e58,_0x2b096c){return _0x2b096c=_0x2b096c||0x1f4,function(_0xe7874a){const _0x3dcd0a=a771_0x59fc;logger['error'](_0xe7874a['stack']),_0xe7874a[_0x3dcd0a('0xf')]&&delete _0xe7874a[_0x3dcd0a('0xf')],_0x1b5e58[_0x3dcd0a('0x3e')](_0x2b096c)[_0x3dcd0a('0x53')](_0xe7874a);};}exports[_0x1af022('0x38')]=function(_0x4f8e20,_0x4c5d82){const _0x2c91de=_0x1af022;let _0x5e0c9e={};const _0x50cb6e={},_0x495c0f={'count':0x0,'rows':[]},_0xda10d7=_[_0x2c91de('0x7')](db[_0x2c91de('0x61')][_0x2c91de('0x5d')],function(_0x26acd5){const _0x4ab48a=_0x2c91de;return{'name':_0x26acd5[_0x4ab48a('0x35')],'type':_0x26acd5['type'][_0x4ab48a('0x6e')]};});_0x50cb6e['model']=_['differenceBy'](_['map'](_0xda10d7,_0x2c91de('0xf')),[_0x2c91de('0x57')]),_0x50cb6e[_0x2c91de('0x27')]=_[_0x2c91de('0x1e')](_0x4f8e20[_0x2c91de('0x27')]),_0x50cb6e[_0x2c91de('0x2c')]=_[_0x2c91de('0x1d')](_0x50cb6e[_0x2c91de('0x68')],_0x50cb6e[_0x2c91de('0x27')]),_0x5e0c9e[_0x2c91de('0x69')]=_['intersection'](_0x50cb6e[_0x2c91de('0x68')],qs[_0x2c91de('0x1a')](_0x4f8e20[_0x2c91de('0x27')][_0x2c91de('0x1a')])),_0x5e0c9e['attributes']=_0x5e0c9e['attributes'][_0x2c91de('0xa')]?_0x5e0c9e['attributes']:_0x50cb6e[_0x2c91de('0x68')];typeof _0x4f8e20[_0x2c91de('0x27')][_0x2c91de('0x2a')]===_0x2c91de('0x72')&&(_0x5e0c9e['limit']=qs[_0x2c91de('0x55')](_0x4f8e20['query'][_0x2c91de('0x55')]),_0x5e0c9e[_0x2c91de('0x67')]=qs[_0x2c91de('0x67')](_0x4f8e20[_0x2c91de('0x27')][_0x2c91de('0x67')]));_0x5e0c9e[_0x2c91de('0x15')]=qs[_0x2c91de('0x41')](_0x4f8e20['query'][_0x2c91de('0x41')]),_0x5e0c9e[_0x2c91de('0x78')]=qs[_0x2c91de('0x2c')](_['pick'](_0x4f8e20[_0x2c91de('0x27')],_0x50cb6e['filters']),_0xda10d7);_0x4f8e20['query'][_0x2c91de('0x46')]&&(_0x5e0c9e['where']=_[_0x2c91de('0x7b')](_0x5e0c9e['where'],{[Op['or']]:_['map'](_0xda10d7,function(_0x229b4e){const _0xe6f639=_0x2c91de;if(_0x229b4e['type']!==_0xe6f639('0x19')){const _0x3b2192={};return _0x3b2192[_0x229b4e[_0xe6f639('0xf')]]={[Op[_0xe6f639('0x10')]]:'%'+_0x4f8e20['query']['filter']+'%'},_0x3b2192;}})}));_0x5e0c9e=_['merge']({},_0x5e0c9e,_0x4f8e20[_0x2c91de('0xe')]);const _0x89097f={'where':_0x5e0c9e[_0x2c91de('0x78')]};return db[_0x2c91de('0x61')][_0x2c91de('0x5a')](_0x89097f)[_0x2c91de('0x3c')](function(_0x1067c6){const _0x19f99b=_0x2c91de;return _0x495c0f[_0x19f99b('0x5a')]=_0x1067c6,_0x4f8e20[_0x19f99b('0x27')][_0x19f99b('0x24')]&&(_0x5e0c9e[_0x19f99b('0x5f')]=[{'all':!![]}]),db['VoiceRecording'][_0x19f99b('0x74')](_0x5e0c9e);})[_0x2c91de('0x3c')](function(_0x160ea0){const _0x32ecb5=_0x2c91de;return _0x495c0f[_0x32ecb5('0x52')]=_0x160ea0,_0x495c0f;})[_0x2c91de('0x3c')](respondWithFilteredResult(_0x4c5d82,_0x5e0c9e))[_0x2c91de('0x58')](handleError(_0x4c5d82,null));},exports[_0x1af022('0x50')]=function(_0x40a240,_0x58aa02){const _0x11cfc1=_0x1af022;let _0x5dfd4b={'raw':![],'where':{'id':_0x40a240['params']['id']}};const _0x4cffb9={};return _0x4cffb9[_0x11cfc1('0x68')]=_[_0x11cfc1('0x1e')](db[_0x11cfc1('0x61')][_0x11cfc1('0x5d')]),_0x4cffb9[_0x11cfc1('0x27')]=_[_0x11cfc1('0x1e')](_0x40a240[_0x11cfc1('0x27')]),_0x4cffb9[_0x11cfc1('0x2c')]=_[_0x11cfc1('0x1d')](_0x4cffb9[_0x11cfc1('0x68')],_0x4cffb9[_0x11cfc1('0x27')]),_0x5dfd4b[_0x11cfc1('0x69')]=_[_0x11cfc1('0x1d')](_0x4cffb9[_0x11cfc1('0x68')],qs[_0x11cfc1('0x1a')](_0x40a240[_0x11cfc1('0x27')][_0x11cfc1('0x1a')])),_0x5dfd4b['attributes']=_0x5dfd4b[_0x11cfc1('0x69')][_0x11cfc1('0xa')]?_0x5dfd4b[_0x11cfc1('0x69')]:_0x4cffb9[_0x11cfc1('0x68')],_0x40a240['query'][_0x11cfc1('0x24')]&&(_0x5dfd4b['include']=[{'all':!![]}]),_0x5dfd4b=_[_0x11cfc1('0x7b')]({},_0x5dfd4b,_0x40a240[_0x11cfc1('0xe')]),db[_0x11cfc1('0x61')][_0x11cfc1('0x4a')](_0x5dfd4b)[_0x11cfc1('0x3c')](handleEntityNotFound(_0x58aa02,null))[_0x11cfc1('0x3c')](respondWithResult(_0x58aa02,null))[_0x11cfc1('0x58')](handleError(_0x58aa02,null));},exports[_0x1af022('0x2e')]=function(_0x4fb319,_0x1cce23){const _0x4dd3ff=_0x1af022;return db[_0x4dd3ff('0x61')]['create'](_0x4fb319[_0x4dd3ff('0x6a')],{})[_0x4dd3ff('0x3c')](respondWithResult(_0x1cce23,0xc9))['catch'](handleError(_0x1cce23,null));},exports[_0x1af022('0x4c')]=function(_0x2b1053,_0x333eb8){const _0xb2dd22=_0x1af022;return _0x2b1053['body']['id']&&delete _0x2b1053[_0xb2dd22('0x6a')]['id'],db[_0xb2dd22('0x61')][_0xb2dd22('0x4a')]({'where':{'id':_0x2b1053[_0xb2dd22('0x30')]['id']}})[_0xb2dd22('0x3c')](handleEntityNotFound(_0x333eb8,null))[_0xb2dd22('0x3c')](saveUpdates(_0x2b1053[_0xb2dd22('0x6a')],null))[_0xb2dd22('0x3c')](respondWithResult(_0x333eb8,null))[_0xb2dd22('0x58')](handleError(_0x333eb8,null));},exports[_0x1af022('0x59')]=function(_0x3739bb,_0x4a71e8){const _0x5542ad=_0x1af022;return db['VoiceRecording'][_0x5542ad('0x59')]()[_0x5542ad('0x3c')](respondWithResult(_0x4a71e8,null))[_0x5542ad('0x58')](handleError(_0x4a71e8,null));},exports[_0x1af022('0x47')]=function(_0x3f66db,_0x4b1f5b){const _0x1298ce=_0x1af022,_0x4966d1=require('../../components/encryptor');let _0x2c0be4=![];const _0x3efb79={};return _0x3f66db[_0x1298ce('0x27')][_0x1298ce('0x44')]&&_0x3f66db[_0x1298ce('0x27')][_0x1298ce('0x44')]==='uniqueid'?_0x3efb79[_0x1298ce('0x65')]=_0x3f66db[_0x1298ce('0x30')]['id']:_0x3efb79['id']=_0x3f66db[_0x1298ce('0x30')]['id'],db[_0x1298ce('0x61')]['findOne']({'where':_0x3efb79,'attributes':['id',_0x1298ce('0x12')],'raw':!![]})[_0x1298ce('0x3c')](handleEntityNotFound(_0x4b1f5b,null))[_0x1298ce('0x3c')](function(_0x31165d){const _0x2cd88e=_0x1298ce;if(_0x31165d){const _0xa065cb=_0x31165d[_0x2cd88e('0x12')],_0x36b19d=util[_0x2cd88e('0x57')](_0x2cd88e('0x22'),_0xa065cb);if(fs['existsSync'](_0x36b19d))return _0x2c0be4=!![],_0x4966d1[_0x2cd88e('0x0')](_0x36b19d,_0xa065cb,config[_0x2cd88e('0x66')][_0x2cd88e('0x4b')])[_0x2cd88e('0x3c')](function(){return _0x31165d;});return _0x31165d;}})[_0x1298ce('0x3c')](function(_0x30cc13){const _0x73e8cc=_0x1298ce;if(_0x30cc13){const _0x494121=_0x30cc13[_0x73e8cc('0x12')];if(!fs[_0x73e8cc('0x42')](_0x494121))throw new ValidationError(_0x73e8cc('0x4f'));return _0x30cc13[_0x73e8cc('0x75')]?_0x4b1f5b[_0x73e8cc('0x47')](_0x494121,_0x30cc13[_0x73e8cc('0x75')]+path['extname'](_0x494121),function(){_0x2c0be4&&fs['unlink'](_0x494121);}):_0x4b1f5b[_0x73e8cc('0x47')](_0x494121,function(){const _0x2d3745=_0x73e8cc;_0x2c0be4&&fs[_0x2d3745('0x16')](_0x494121);});}})['catch'](function(_0x4ebb34){const _0x10b118=_0x1298ce;if(_0x4ebb34[_0x10b118('0x18')]===_0x10b118('0x4f'))_0x4b1f5b[_0x10b118('0x3e')](0x194)[_0x10b118('0x53')]('Not\x20found');else return handleError(_0x4b1f5b,null);});},exports[_0x1af022('0x4')]=function(_0x13610f,_0x4dd86d){const _0x513945=_0x1af022,_0x5be5ab=require('../../components/encryptor');let _0x5f2ab3=![];const _0x5e4952={[Op[_0x513945('0x28')]]:[_0x5e4952(fn('MD5',col('uniqueid')),_0x13610f[_0x513945('0x27')][_0x513945('0x2')])]};return _0x13610f['query'][_0x513945('0x44')]&&_0x13610f[_0x513945('0x27')]['type']===_0x513945('0x65')?_0x5e4952[_0x513945('0x36')][_0x513945('0x29')]({'uniqueid':_0x13610f['params']['id']}):_0x5e4952[_0x513945('0x36')][_0x513945('0x29')]({'id':_0x13610f[_0x513945('0x30')]['id']}),db[_0x513945('0x61')][_0x513945('0x4a')]({'where':_0x5e4952,'attributes':['id',_0x513945('0x12')],'raw':!![]})[_0x513945('0x3c')](handleEntityNotFound(_0x4dd86d,null))[_0x513945('0x3c')](function(_0x483416){const _0x1107ae=_0x513945;if(_0x483416){const _0x586f99=util[_0x1107ae('0x57')](_0x1107ae('0x22'),_0x483416[_0x1107ae('0x12')]);if(fs[_0x1107ae('0x42')](_0x586f99))return _0x5f2ab3=!![],_0x5be5ab[_0x1107ae('0x0')](_0x586f99,_0x483416[_0x1107ae('0x12')],config[_0x1107ae('0x66')][_0x1107ae('0x4b')])[_0x1107ae('0x3c')](function(){return _0x483416;});return _0x483416;}})[_0x513945('0x3c')](function(_0x256e83){const _0x35e38e=_0x513945;if(_0x256e83){if(!fs['existsSync'](_0x256e83[_0x35e38e('0x12')]))throw new ValidationError('VoiceRecording\x20not\x20found');return _0x256e83[_0x35e38e('0x75')]?_0x4dd86d[_0x35e38e('0x47')](_0x256e83[_0x35e38e('0x12')],_0x256e83[_0x35e38e('0x75')]+path[_0x35e38e('0x2d')](_0x256e83['value']),function(){const _0x2cb98e=_0x35e38e;_0x5f2ab3&&fs[_0x2cb98e('0x16')](_0x256e83['value']);}):_0x4dd86d[_0x35e38e('0x47')](_0x256e83[_0x35e38e('0x12')],function(){const _0x38a774=_0x35e38e;_0x5f2ab3&&fs[_0x38a774('0x16')](_0x256e83[_0x38a774('0x12')]);});}})[_0x513945('0x58')](handleError(_0x4dd86d,null));},exports[_0x1af022('0x3f')]=function(_0x4424db,_0x17cb51){const _0x3a4cca=_0x1af022;return db[_0x3a4cca('0x61')][_0x3a4cca('0x4a')]({'where':{'id':_0x4424db['params']['id']}})[_0x3a4cca('0x3c')](function(_0x500c86){const _0x4ed37c=_0x3a4cca;if(!_0x500c86)throw new ReferenceError(_0x4ed37c('0x8'));return _0x500c86;})[_0x3a4cca('0x3c')](function(_0x2d3e63){const _0x33670d=_0x3a4cca;let _0x4ca556=_0x2d3e63[_0x33670d('0x12')];return logger[_0x33670d('0xd')](_0x33670d('0x3b'),_0x4ca556),!_[_0x33670d('0x25')](_0x2d3e63[_0x33670d('0x12')])&&fs[_0x33670d('0x42')](_0x4ca556)&&(logger[_0x33670d('0xd')](_0x33670d('0x34')+_0x4ca556+_0x33670d('0x54')),fs[_0x33670d('0x56')](_0x4ca556)),_0x4ca556=_0x4ca556+'.cypher',!_['isNil'](_0x2d3e63[_0x33670d('0x12')])&&fs[_0x33670d('0x42')](_0x4ca556)&&(logger[_0x33670d('0xd')]('File:\x20\x22'+_0x4ca556+_0x33670d('0x54')),fs['unlinkSync'](_0x4ca556)),_0x2d3e63;})['then'](function(_0x58cda0){const _0x317b65=_0x3a4cca;if(!_0x58cda0)throw new InternalError();return _0x58cda0[_0x317b65('0x3f')]();})['then'](function(){const _0x1f4879=_0x3a4cca;_0x17cb51[_0x1f4879('0x3e')](0xcc)[_0x1f4879('0x3')]();})[_0x3a4cca('0x58')](handleError(_0x17cb51,null));};function getBucketslist(_0x4e015e,_0x4ff0e7,_0x441835){return new Promise(function(_0x49531d,_0x3b284e){const _0x1faf89=new AWS['S3']({'accessKeyId':_0x4ff0e7,'secretAccessKey':_0x4e015e,'region':_0x441835});_0x1faf89['listBuckets']({},function(_0x47da18,_0x3fb24d){return _0x47da18?_0x3b284e(_0x47da18):_0x49531d(_0x3fb24d);});});}function createBucket(_0x4962d5,_0x1da4e9,_0x7511b,_0x5c7731){return new Promise(function(_0x5d030a,_0xa3ceb6){const _0x4e3704=a771_0x59fc,_0x4a2e69=new AWS['S3']({'accessKeyId':_0x1da4e9,'secretAccessKey':_0x4962d5,'region':_0x7511b});_0x4a2e69[_0x4e3704('0x32')]({'Bucket':_0x5c7731},function(_0x41c795,_0x22eaa4){return _0x41c795?_0xa3ceb6(_0x41c795):_0x5d030a(_0x22eaa4);});});}function uploadFile(_0x165a00,_0x1fa133,_0x3e8190,_0x2b46b7,_0x20d993,_0x3ab498){return new Promise(function(_0x49c7f1,_0x19418f){const _0x2b627b=a771_0x59fc,_0x3319e1=new AWS['S3']({'accessKeyId':_0x1fa133,'secretAccessKey':_0x165a00,'region':_0x3e8190});_0x3319e1[_0x2b627b('0x20')]({'Bucket':_0x2b46b7,'Key':_0x20d993,'Body':_0x3ab498},function(_0x14bc49,_0x7c861c){return _0x14bc49?_0x19418f(_0x14bc49):_0x49c7f1(_0x7c861c);});});}function startTranscribe(_0x51c646,_0x55263a,_0x1ff1c7,_0x216025,_0x10e758,_0x1e21b3){return new Promise(function(_0x397eb4,_0x41e8c4){const _0x4ea96a=a771_0x59fc,_0x4e8a20=new AWS[(_0x4ea96a('0x71'))]({'accessKeyId':_0x55263a,'secretAccessKey':_0x51c646,'region':_0x1ff1c7});_0x4e8a20[_0x4ea96a('0x5c')]({'TranscriptionJobName':_0x216025,'LanguageCode':_0x10e758,'Media':{'MediaFileUri':_0x1e21b3}},function(_0x17ddb7,_0x10ac67){return _0x17ddb7?_0x41e8c4(_0x17ddb7):_0x397eb4(_0x10ac67);});});}function transcribe(_0x5a543b,_0xb68131,_0x393c33,_0x3b3488,_0x2ba1f8,_0x53ab18,_0x584680){return new Promise(function(_0x2fa4ea,_0x3760da){const _0x2b9d7f=a771_0x59fc,_0xc7640={};return logger[_0x2b9d7f('0xd')](util[_0x2b9d7f('0x57')](_0x2b9d7f('0x43'),_0x5a543b,_0x2ba1f8)),uploadFile(_0xb68131,_0x393c33,_0x3b3488,_0x2ba1f8,path[_0x2b9d7f('0x6b')](_0x53ab18),fs['readFileSync'](_0x53ab18))[_0x2b9d7f('0x3c')](function(_0x12ec3e){const _0x46d835=_0x2b9d7f;return logger['info'](util[_0x46d835('0x57')](_0x46d835('0x1b'),_0x5a543b,_0x2ba1f8,_0x12ec3e[_0x46d835('0x14')])),_0xc7640[_0x46d835('0x48')]=_0x12ec3e['Bucket'],_0xc7640[_0x46d835('0xb')]=_0x12ec3e[_0x46d835('0x14')],logger[_0x46d835('0xd')](util[_0x46d835('0x57')](_0x46d835('0x5e'),_0x5a543b)),startTranscribe(_0xb68131,_0x393c33,_0x3b3488,uuidv4(),_0x584680,_0x12ec3e['Location']);})[_0x2b9d7f('0x3c')](function(_0x3da89c){const _0x45022b=_0x2b9d7f;return logger[_0x45022b('0xd')](util[_0x45022b('0x57')](_0x45022b('0x6d'),_0x5a543b,_0x3da89c[_0x45022b('0x1f')][_0x45022b('0x7c')])),_0xc7640['transcribeName']=_0x3da89c[_0x45022b('0x1f')][_0x45022b('0x7c')],_0xc7640[_0x45022b('0x6')]=_0x3da89c[_0x45022b('0x1f')]['TranscriptionJobStatus'],_0x2fa4ea(_0xc7640);})['catch'](function(_0x2af9eb){return _0x3760da(_0x2af9eb);});});}exports['runTranscribe']=function(_0x21ff8a,_0x237670){const _0x5506bc=_0x1af022;let _0x214c49,_0x2b85b5,_0x3c3281;const _0x55cac0=require(_0x5506bc('0x3d'));return db[_0x5506bc('0x61')]['findOne']({'where':{'id':_0x21ff8a[_0x5506bc('0x30')]['id']}})[_0x5506bc('0x3c')](function(_0x423114){const _0xf418a3=_0x5506bc;if(_0x423114){const _0x430527=util[_0xf418a3('0x57')](_0xf418a3('0x22'),_0x423114[_0xf418a3('0x12')]);if(fs[_0xf418a3('0x42')](_0x430527))return _0x55cac0[_0xf418a3('0x0')](_0x430527,_0x423114[_0xf418a3('0x12')],config[_0xf418a3('0x66')][_0xf418a3('0x4b')])[_0xf418a3('0x3c')](function(){return _0x423114;});return _0x423114;}})[_0x5506bc('0x3c')](function(_0x3a9140){const _0x5bd592=_0x5506bc;if(!_0x3a9140)throw new ValidationError('Voice\x20Recording\x20not\x20found');return _0x2b85b5=_0x3a9140,db[_0x5bd592('0x5')]['findOne']({'where':{'id':0x1}});})[_0x5506bc('0x3c')](handleEntityNotFound(_0x237670,null))[_0x5506bc('0x3c')](function(_0x4a37e9){const _0x671479=_0x5506bc;if(_0x4a37e9){_0x214c49=_0x4a37e9;if(!_0x214c49[_0x671479('0x2f')]||!_0x214c49[_0x671479('0x45')]||!_0x214c49[_0x671479('0x63')]||!_0x214c49[_0x671479('0x33')]||!_0x214c49[_0x671479('0x48')])throw new ValidationError(_0x671479('0x3a'));if(_0x21ff8a[_0x671479('0x6a')]['runSentiment']&&(!_0x214c49[_0x671479('0x23')]||!_0x214c49[_0x671479('0x49')]||!_0x214c49['sentimentRegion']||!_0x214c49[_0x671479('0x33')]||!_0x214c49['bucket']))throw new ValidationError(_0x671479('0x26'));return db[_0x671479('0x17')][_0x671479('0x4a')]({'where':{'id':_0x214c49[_0x671479('0x45')]}});}})[_0x5506bc('0x3c')](function(_0xeda0a1){const _0x4efa9c=_0x5506bc;if(!_0xeda0a1)throw new ValidationError(_0x4efa9c('0x4d'));if(!_0xeda0a1[_0x4efa9c('0x40')]||!_0xeda0a1['data2'])throw new ValidationError(_0x4efa9c('0x51'));return _0x3c3281=_0xeda0a1,getBucketslist(_0x3c3281[_0x4efa9c('0x40')],_0x3c3281[_0x4efa9c('0x7a')],_0x214c49[_0x4efa9c('0x63')]);})[_0x5506bc('0x3c')](function(_0x3486ec){const _0x40bedb=_0x5506bc;if(_0x3486ec&&_0x3486ec[_0x40bedb('0x11')]){const _0x496cfb=_[_0x40bedb('0x1')](_0x3486ec['Buckets'],function(_0x1d63a2){const _0x2991d4=_0x40bedb;return _0x1d63a2[_0x2991d4('0x60')]===_0x214c49['bucket'];});if(!_0x496cfb)return logger['info'](util[_0x40bedb('0x57')](_0x40bedb('0x62'),_0x21ff8a['params']['id'],_0x214c49[_0x40bedb('0x48')])),createBucket(_0x3c3281[_0x40bedb('0x40')],_0x3c3281[_0x40bedb('0x7a')],_0x214c49[_0x40bedb('0x63')],_0x214c49[_0x40bedb('0x48')]);logger['info'](util[_0x40bedb('0x57')](_0x40bedb('0x1c'),_0x21ff8a[_0x40bedb('0x30')]['id'],_0x214c49[_0x40bedb('0x48')]));return;}})[_0x5506bc('0x3c')](function(){const _0x200862=_0x5506bc;return _0x2b85b5[_0x200862('0x6')]==='NEW'?transcribe(_0x21ff8a['params']['id'],_0x3c3281[_0x200862('0x40')],_0x3c3281[_0x200862('0x7a')],_0x214c49[_0x200862('0x63')],_0x214c49[_0x200862('0x48')],_0x2b85b5[_0x200862('0x12')],_0x214c49[_0x200862('0x33')]):(logger[_0x200862('0xd')](util['format'](_0x200862('0x6f'),_0x21ff8a['params']['id'])),{'transcribeStatus':_0x200862('0x39')});})[_0x5506bc('0x3c')](function(_0xea4f1d){const _0x310fa1=_0x5506bc;if(_0xea4f1d)return _0xea4f1d[_0x310fa1('0x37')]=_0x21ff8a[_0x310fa1('0x6a')][_0x310fa1('0x31')],_0x2b85b5['update'](_0xea4f1d);})['then'](respondWithResult(_0x237670,null))[_0x5506bc('0x58')](handleError(_0x237670,null));};function writeFile(_0x1a2e9f,_0x5c5adb){return new Promise(function(_0x4ec89d,_0x53dd31){const _0x5b1d77=a771_0x59fc;fs[_0x5b1d77('0x79')](_0x5c5adb,_0x1a2e9f,function(_0x150a2f,_0x1f899d){return _0x150a2f?_0x53dd31(_0x150a2f):_0x4ec89d(_0x1f899d);});});}exports[_0x1af022('0x5b')]=function(_0x3813cf,_0x3e8e50){const _0x3d069e=_0x1af022;return db['VoiceRecording']['findOne']({'where':{'id':_0x3813cf[_0x3d069e('0x30')]['id']}})[_0x3d069e('0x3c')](handleEntityNotFound(_0x3e8e50))[_0x3d069e('0x3c')](function(_0x5e5a0d){const _0x290d89=_0x3d069e;if(_0x5e5a0d&&_0x5e5a0d['fileText']){const _0x4cd09a=_0x5e5a0d['fileText'],_0x24b1c2=config['root']+_0x290d89('0x6c')+_0x5e5a0d['id']+'.txt';if(fs[_0x290d89('0x42')](_0x24b1c2))return _0x24b1c2;return writeFile(_0x4cd09a,_0x24b1c2)[_0x290d89('0x3c')](function(){return _0x24b1c2;});}else throw new ValidationError(_0x290d89('0x73'));})['then'](function(_0x155ba5){const _0x2baeb1=_0x3d069e;return _0x3e8e50[_0x2baeb1('0x47')](_0x155ba5);})[_0x3d069e('0x58')](handleError(_0x3e8e50));}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index 4e22f25..9cd7abf 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a772_0x5ef4=['exports','./voiceRecording.attributes','uniqueid','voice_recordings','define','VoiceRecording'];(function(_0x2fd5c4,_0x5ef4b7){const _0x5a7e14=function(_0x5666b7){while(--_0x5666b7){_0x2fd5c4['push'](_0x2fd5c4['shift']());}};_0x5a7e14(++_0x5ef4b7);}(a772_0x5ef4,0x184));const a772_0x5a7e=function(_0x2fd5c4,_0x5ef4b7){_0x2fd5c4=_0x2fd5c4-0x0;let _0x5a7e14=a772_0x5ef4[_0x2fd5c4];return _0x5a7e14;};const _0x10f1e7=a772_0x5a7e;'use strict';const attributes=require(_0x10f1e7('0x3'));module[_0x10f1e7('0x2')]=function(_0x5666b7){const _0x2a6862=_0x10f1e7,_0x42abc0=_0x5666b7[_0x2a6862('0x0')](_0x2a6862('0x1'),attributes,{'tableName':_0x2a6862('0x5'),'paranoid':![],'indexes':[{'name':_0x2a6862('0x4'),'fields':['uniqueid']}],'timestamps':!![]});return _0x42abc0;}; \ No newline at end of file +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 diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index 7b91e7e..c2a4396 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a773_0x58f7=['format','UpdateVoiceRecording','%s.cypher','raw','value','VoiceRecording','../../config/logger','body','where','error','findOne','../../components/encryptor','message','then','../../mysqldb','limit','stringify','encryptFile','Setting','catch','create','../../config/environment','util','info','CreateVoiceRecording','rpc','debug','options'];(function(_0x57a333,_0x58f758){const _0x2872ee=function(_0x194872){while(--_0x194872){_0x57a333['push'](_0x57a333['shift']());}};_0x2872ee(++_0x58f758);}(a773_0x58f7,0x13b));const a773_0x2872=function(_0x57a333,_0x58f758){_0x57a333=_0x57a333-0x0;let _0x2872ee=a773_0x58f7[_0x57a333];return _0x2872ee;};const _0x320d63=a773_0x2872;'use strict';const util=require(_0x320d63('0xf')),fs=require('fs'),db=require(_0x320d63('0x7'))['db'],logger=require(_0x320d63('0x1b'))(_0x320d63('0x12')),config=require(_0x320d63('0xe'));exports[_0x320d63('0x16')]=function(_0x194872){const _0x197cb0=this;return new Promise(function(_0x22947f,_0x3f2038){const _0xccedd0=a773_0x2872;return db[_0xccedd0('0x1a')]['update'](_0x194872['body'],{'raw':_0x194872[_0xccedd0('0x14')]?_0x194872['options'][_0xccedd0('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x194872['options']?_0x194872[_0xccedd0('0x14')][_0xccedd0('0x1')]||null:null,'attributes':_0x194872['options']?_0x194872['options']['attributes']||null:null,'limit':_0x194872[_0xccedd0('0x14')]?_0x194872[_0xccedd0('0x14')][_0xccedd0('0x8')]||null:null})[_0xccedd0('0x6')](function(_0x23d7a4){const _0x4e9cf5=_0xccedd0;logger['info'](_0x4e9cf5('0x16'),_0x194872),logger['debug'](_0x4e9cf5('0x16'),_0x194872,JSON[_0x4e9cf5('0x9')](_0x23d7a4)),_0x22947f(_0x23d7a4);})[_0xccedd0('0xc')](function(_0x32223c){const _0x10e123=_0xccedd0;logger['error'](_0x10e123('0x16'),_0x32223c[_0x10e123('0x5')],_0x194872),_0x3f2038(_0x197cb0[_0x10e123('0x2')](0x1f4,_0x32223c[_0x10e123('0x5')]));});});},exports[_0x320d63('0x11')]=function(_0x26c12d){const _0x3e4cb6=this;return new Promise(function(_0x2e84d2,_0x321a28){const _0x2d077d=a773_0x2872,_0x46cee1=require(_0x2d077d('0x4'));let _0x28fd6e;return db[_0x2d077d('0xb')][_0x2d077d('0x3')]({'attributes':['id','callRecordingEncryption'],'where':{'id':0x1},'raw':!![]})[_0x2d077d('0x6')](function(_0x456f55){const _0x3161c4=_0x2d077d;return _0x28fd6e=_0x456f55,db[_0x3161c4('0x1a')][_0x3161c4('0xd')](_0x26c12d[_0x3161c4('0x0')]);})[_0x2d077d('0x6')](function(_0x33193c){const _0x274d26=_0x2d077d;if(_0x28fd6e['callRecordingEncryption']&&fs['existsSync'](_0x33193c['value'])){const _0x5379d8=util[_0x274d26('0x15')](_0x274d26('0x17'),_0x33193c['value']);return _0x46cee1[_0x274d26('0xa')](_0x33193c[_0x274d26('0x19')],_0x5379d8,config['secrets']['recording'])[_0x274d26('0x6')](function(){const _0x19887b=_0x274d26;return fs['unlink'](_0x33193c['value']),logger[_0x19887b('0x10')]('CreateVoiceRecording\x20file\x20encrypted'),_0x33193c;});}return _0x33193c;})[_0x2d077d('0x6')](function(_0x52d029){const _0xf59a83=_0x2d077d;logger['info'](_0xf59a83('0x11'),_0x26c12d),logger[_0xf59a83('0x13')](_0xf59a83('0x11'),_0x26c12d,JSON[_0xf59a83('0x9')](_0x52d029)),_0x2e84d2(_0x52d029);})['catch'](function(_0x3e7a6c){const _0x258a97=_0x2d077d;logger['error']('CreateVoiceRecording',_0x3e7a6c[_0x258a97('0x5')],_0x26c12d),_0x321a28(_0x3e4cb6[_0x258a97('0x2')](0x1f4,_0x3e7a6c[_0x258a97('0x5')]));});});}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index 455ef7c..de26447 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a774_0x2731=['/:id','Router','get','./voiceTransferReport.controller','express','isAuthenticated','exports','index','../../components/auth/service','destroy'];(function(_0xf3cf56,_0x273100){const _0x47e9c5=function(_0x2b22be){while(--_0x2b22be){_0xf3cf56['push'](_0xf3cf56['shift']());}};_0x47e9c5(++_0x273100);}(a774_0x2731,0x168));const a774_0x47e9=function(_0xf3cf56,_0x273100){_0xf3cf56=_0xf3cf56-0x0;let _0x47e9c5=a774_0x2731[_0xf3cf56];return _0x47e9c5;};const _0x241002=a774_0x47e9;'use strict';const express=require(_0x241002('0x4')),router=express[_0x241002('0x1')](),auth=require(_0x241002('0x8')),controller=require(_0x241002('0x3'));router[_0x241002('0x2')]('/',auth['isAuthenticated'](),controller[_0x241002('0x7')]),router['get']('/:id',auth[_0x241002('0x5')](),controller['show']),router['post']('/',auth['isAuthenticated'](),controller['create']),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x241002('0x0'),auth[_0x241002('0x5')](),controller[_0x241002('0x9')]),module[_0x241002('0x6')]=router; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index d35d26d..2b6d640 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a775_0x2d67=['exports','attended','blind','sequelize','STRING'];(function(_0x34991e,_0x2d67f7){const _0x308fbf=function(_0x4108a6){while(--_0x4108a6){_0x34991e['push'](_0x34991e['shift']());}};_0x308fbf(++_0x2d67f7);}(a775_0x2d67,0xbb));const a775_0x308f=function(_0x34991e,_0x2d67f7){_0x34991e=_0x34991e-0x0;let _0x308fbf=a775_0x2d67[_0x34991e];return _0x308fbf;};const _0x74ce39=a775_0x308f;'use strict';const Sequelize=require(_0x74ce39('0x1'));module[_0x74ce39('0x3')]={'type':{'type':Sequelize['ENUM'](_0x74ce39('0x0'),_0x74ce39('0x4'))},'result':{'type':Sequelize['STRING']},'transfererchannel':{'type':Sequelize[_0x74ce39('0x2')]},'transferercalleridnum':{'type':Sequelize[_0x74ce39('0x2')]},'transferercalleridname':{'type':Sequelize[_0x74ce39('0x2')]},'transfererconnectedlinenum':{'type':Sequelize[_0x74ce39('0x2')]},'transfererconnectedlinename':{'type':Sequelize[_0x74ce39('0x2')]},'transfereraccountcode':{'type':Sequelize[_0x74ce39('0x2')]},'transferercontext':{'type':Sequelize[_0x74ce39('0x2')]},'transfererexten':{'type':Sequelize[_0x74ce39('0x2')]},'transfererlinkedid':{'type':Sequelize[_0x74ce39('0x2')]},'transfereechannel':{'type':Sequelize[_0x74ce39('0x2')]},'transfereecalleridnum':{'type':Sequelize['STRING']},'transfereecalleridname':{'type':Sequelize[_0x74ce39('0x2')]},'transfereeconnectedlinenum':{'type':Sequelize[_0x74ce39('0x2')]},'transfereeconnectedlinename':{'type':Sequelize[_0x74ce39('0x2')]},'transfereeaccountcode':{'type':Sequelize[_0x74ce39('0x2')]},'transfereecontext':{'type':Sequelize[_0x74ce39('0x2')]},'transfereeexten':{'type':Sequelize[_0x74ce39('0x2')]},'transfereelinkedid':{'type':Sequelize[_0x74ce39('0x2')]},'isexternal':{'type':Sequelize['ENUM']('Yes','No')},'context':{'type':Sequelize[_0x74ce39('0x2')]},'extension':{'type':Sequelize[_0x74ce39('0x2')]}}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index 1cb1301..0a9bde8 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a776_0x320d=['merge','pick','like','api','name','end','Content-Range','filters','where','fields','lodash','model','include','rows','filter','destroy','json','rawAttributes','../../config/logger','sort','order','intersection','findOne','nolimit','sequelize','attributes','create','query','status','keys','includeAll','update','VoiceTransferReport','fieldName','findAll','count','send','../../components/parsers/qs','catch','limit','params','body','map','type','undefined','length','then','offset','options','stack','sendStatus'];(function(_0x56f1c1,_0x320d9f){const _0x356242=function(_0x45a722){while(--_0x45a722){_0x56f1c1['push'](_0x56f1c1['shift']());}};_0x356242(++_0x320d9f);}(a776_0x320d,0xf0));const a776_0x3562=function(_0x56f1c1,_0x320d9f){_0x56f1c1=_0x56f1c1-0x0;let _0x356242=a776_0x320d[_0x56f1c1];return _0x356242;};const _0x4065e5=a776_0x3562;'use strict';const _=require(_0x4065e5('0x19')),qs=require(_0x4065e5('0x1')),logger=require(_0x4065e5('0x21'))(_0x4065e5('0x12')),db=require('../../mysqldb')['db'],{Op}=require(_0x4065e5('0x27'));function respondWithResult(_0x45a722,_0x8a19fb){return _0x8a19fb=_0x8a19fb||0xc8,function(_0x4eccca){const _0x26ea2d=a776_0x3562;if(_0x4eccca)return _0x45a722[_0x26ea2d('0x2b')](_0x8a19fb)[_0x26ea2d('0x1f')](_0x4eccca);};}function respondWithFilteredResult(_0x3a2dd9,_0x422aa7){return function(_0x5ccaf5){const _0x2aa3be=a776_0x3562;if(_0x5ccaf5){const _0x1f122c=_0x5ccaf5[_0x2aa3be('0x32')],_0x49240e=_0x422aa7[_0x2aa3be('0xb')];let _0x4af6ef=_0x422aa7['offset']+_0x422aa7[_0x2aa3be('0x3')],_0x1d327b;return _0x4af6ef>=_0x1f122c?(_0x4af6ef=_0x1f122c,_0x1d327b=0xc8):_0x1d327b=0xce,_0x3a2dd9[_0x2aa3be('0x2b')](_0x1d327b),_0x3a2dd9['set'](_0x2aa3be('0x15'),_0x49240e+'-'+_0x4af6ef+'/'+_0x1f122c)[_0x2aa3be('0x1f')](_0x5ccaf5);}return null;};}function saveUpdates(_0x5f1dfc){return function(_0x846d29){const _0x83df7c=a776_0x3562;if(_0x846d29)return _0x846d29[_0x83df7c('0x2e')](_0x5f1dfc)[_0x83df7c('0xa')](function(_0x1b5b01){return _0x1b5b01;});return null;};}function removeEntity(_0x589846){return function(_0x5b511c){const _0x23d249=a776_0x3562;if(_0x5b511c)return _0x5b511c[_0x23d249('0x1e')]()[_0x23d249('0xa')](function(){const _0x1b8a04=_0x23d249;_0x589846[_0x1b8a04('0x2b')](0xcc)[_0x1b8a04('0x14')]();});};}function handleEntityNotFound(_0x5f05a3){return function(_0x426ce0){const _0x1b022d=a776_0x3562;return!_0x426ce0&&_0x5f05a3[_0x1b022d('0xe')](0x194),_0x426ce0;};}function handleError(_0x538f4d,_0x47d68a){return _0x47d68a=_0x47d68a||0x1f4,function(_0x569ec9){const _0x123f27=a776_0x3562;logger['error'](_0x569ec9[_0x123f27('0xd')]),_0x569ec9[_0x123f27('0x13')]&&delete _0x569ec9[_0x123f27('0x13')],_0x538f4d[_0x123f27('0x2b')](_0x47d68a)[_0x123f27('0x0')](_0x569ec9);};}exports['index']=function(_0x3533ac,_0xa308be){const _0x2d6703=_0x4065e5;let _0xee2138={};const _0x517551={},_0x413743={'count':0x0,'rows':[]},_0x26702d=_[_0x2d6703('0x6')](db[_0x2d6703('0x2f')][_0x2d6703('0x20')],function(_0x18bdb1){const _0x4185e2=_0x2d6703;return{'name':_0x18bdb1[_0x4185e2('0x30')],'type':_0x18bdb1[_0x4185e2('0x7')]['key']};});_0x517551[_0x2d6703('0x1a')]=_[_0x2d6703('0x6')](_0x26702d,_0x2d6703('0x13')),_0x517551[_0x2d6703('0x2a')]=_[_0x2d6703('0x2c')](_0x3533ac[_0x2d6703('0x2a')]),_0x517551[_0x2d6703('0x16')]=_[_0x2d6703('0x24')](_0x517551[_0x2d6703('0x1a')],_0x517551['query']),_0xee2138[_0x2d6703('0x28')]=_['intersection'](_0x517551[_0x2d6703('0x1a')],qs['fields'](_0x3533ac[_0x2d6703('0x2a')][_0x2d6703('0x18')])),_0xee2138[_0x2d6703('0x28')]=_0xee2138['attributes'][_0x2d6703('0x9')]?_0xee2138[_0x2d6703('0x28')]:_0x517551[_0x2d6703('0x1a')];typeof _0x3533ac[_0x2d6703('0x2a')][_0x2d6703('0x26')]===_0x2d6703('0x8')&&(_0xee2138[_0x2d6703('0x3')]=qs[_0x2d6703('0x3')](_0x3533ac['query'][_0x2d6703('0x3')]),_0xee2138[_0x2d6703('0xb')]=qs[_0x2d6703('0xb')](_0x3533ac[_0x2d6703('0x2a')]['offset']));_0xee2138[_0x2d6703('0x23')]=qs[_0x2d6703('0x22')](_0x3533ac[_0x2d6703('0x2a')][_0x2d6703('0x22')]),_0xee2138['where']=qs[_0x2d6703('0x16')](_[_0x2d6703('0x10')](_0x3533ac[_0x2d6703('0x2a')],_0x517551[_0x2d6703('0x16')]),_0x26702d);_0x3533ac[_0x2d6703('0x2a')]['filter']&&(_0xee2138['where']=_[_0x2d6703('0xf')](_0xee2138[_0x2d6703('0x17')],{[Op['or']]:_['map'](_0x26702d,function(_0x397af7){const _0xf6ffe4=_0x2d6703;if(_0x397af7[_0xf6ffe4('0x7')]!=='VIRTUAL'){const _0x5e0cd8={};return _0x5e0cd8[_0x397af7['name']]={[Op[_0xf6ffe4('0x11')]]:'%'+_0x3533ac[_0xf6ffe4('0x2a')][_0xf6ffe4('0x1d')]+'%'},_0x5e0cd8;}})}));_0xee2138=_['merge']({},_0xee2138,_0x3533ac['options']);const _0x2a8c3f={'where':_0xee2138[_0x2d6703('0x17')]};return db[_0x2d6703('0x2f')]['count'](_0x2a8c3f)[_0x2d6703('0xa')](function(_0x48b0a4){const _0x180738=_0x2d6703;return _0x413743[_0x180738('0x32')]=_0x48b0a4,_0x3533ac[_0x180738('0x2a')][_0x180738('0x2d')]&&(_0xee2138['include']=[{'all':!![]}]),db[_0x180738('0x2f')][_0x180738('0x31')](_0xee2138);})[_0x2d6703('0xa')](function(_0x1dfef1){const _0x2eba69=_0x2d6703;return _0x413743[_0x2eba69('0x1c')]=_0x1dfef1,_0x413743;})[_0x2d6703('0xa')](respondWithFilteredResult(_0xa308be,_0xee2138))[_0x2d6703('0x2')](handleError(_0xa308be,null));},exports['show']=function(_0x2007dd,_0x19c056){const _0xc9a5=_0x4065e5;let _0x2c899d={'raw':!![],'where':{'id':_0x2007dd[_0xc9a5('0x4')]['id']}};const _0x16cabb={};return _0x16cabb[_0xc9a5('0x1a')]=_[_0xc9a5('0x2c')](db[_0xc9a5('0x2f')][_0xc9a5('0x20')]),_0x16cabb['query']=_[_0xc9a5('0x2c')](_0x2007dd[_0xc9a5('0x2a')]),_0x16cabb[_0xc9a5('0x16')]=_[_0xc9a5('0x24')](_0x16cabb[_0xc9a5('0x1a')],_0x16cabb[_0xc9a5('0x2a')]),_0x2c899d[_0xc9a5('0x28')]=_[_0xc9a5('0x24')](_0x16cabb[_0xc9a5('0x1a')],qs[_0xc9a5('0x18')](_0x2007dd['query'][_0xc9a5('0x18')])),_0x2c899d[_0xc9a5('0x28')]=_0x2c899d[_0xc9a5('0x28')][_0xc9a5('0x9')]?_0x2c899d[_0xc9a5('0x28')]:_0x16cabb[_0xc9a5('0x1a')],_0x2007dd[_0xc9a5('0x2a')][_0xc9a5('0x2d')]&&(_0x2c899d[_0xc9a5('0x1b')]=[{'all':!![]}]),_0x2c899d=_[_0xc9a5('0xf')]({},_0x2c899d,_0x2007dd[_0xc9a5('0xc')]),db[_0xc9a5('0x2f')][_0xc9a5('0x25')](_0x2c899d)['then'](handleEntityNotFound(_0x19c056,null))[_0xc9a5('0xa')](respondWithResult(_0x19c056,null))['catch'](handleError(_0x19c056,null));},exports['create']=function(_0x125cf4,_0x293c64){const _0x4575c8=_0x4065e5;return db[_0x4575c8('0x2f')][_0x4575c8('0x29')](_0x125cf4['body'],{})['then'](respondWithResult(_0x293c64,0xc9))['catch'](handleError(_0x293c64,null));},exports['update']=function(_0x44cd50,_0x187279){const _0x381e41=_0x4065e5;return _0x44cd50[_0x381e41('0x5')]['id']&&delete _0x44cd50[_0x381e41('0x5')]['id'],db[_0x381e41('0x2f')][_0x381e41('0x25')]({'where':{'id':_0x44cd50[_0x381e41('0x4')]['id']}})[_0x381e41('0xa')](handleEntityNotFound(_0x187279,null))[_0x381e41('0xa')](saveUpdates(_0x44cd50[_0x381e41('0x5')],null))['then'](respondWithResult(_0x187279,null))[_0x381e41('0x2')](handleError(_0x187279,null));},exports[_0x4065e5('0x1e')]=function(_0x3300a1,_0x222976){const _0x173c9e=_0x4065e5;return db[_0x173c9e('0x2f')][_0x173c9e('0x25')]({'where':{'id':_0x3300a1[_0x173c9e('0x4')]['id']}})[_0x173c9e('0xa')](handleEntityNotFound(_0x222976,null))[_0x173c9e('0xa')](removeEntity(_0x222976,null))[_0x173c9e('0x2')](handleError(_0x222976,null));}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index 74f56e4..d5a53ff 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a777_0xacdf=['report_call_transfer','exports','./voiceTransferReport.attributes','define','VoiceTransferReport'];(function(_0x5b1180,_0xacdfe4){const _0x3ddb8d=function(_0x33e90b){while(--_0x33e90b){_0x5b1180['push'](_0x5b1180['shift']());}};_0x3ddb8d(++_0xacdfe4);}(a777_0xacdf,0x1c3));const a777_0x3ddb=function(_0x5b1180,_0xacdfe4){_0x5b1180=_0x5b1180-0x0;let _0x3ddb8d=a777_0xacdf[_0x5b1180];return _0x3ddb8d;};const _0x1a1a63=a777_0x3ddb;'use strict';const attributes=require(_0x1a1a63('0x1'));module[_0x1a1a63('0x0')]=function(_0x33e90b){const _0x548065=_0x1a1a63,_0x1e26fd=_0x33e90b[_0x548065('0x2')](_0x548065('0x3'),attributes,{'tableName':_0x548065('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e26fd;}; \ No newline at end of file +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 diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index 11fb1be..aaac7ba 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a778_0x50f1=['raw','info','../../config/logger','rpc','message','catch','error','options','CreateVoiceTransferReport','debug','stringify','then'];(function(_0x12aa60,_0x50f153){const _0x59b29e=function(_0x11798c){while(--_0x11798c){_0x12aa60['push'](_0x12aa60['shift']());}};_0x59b29e(++_0x50f153);}(a778_0x50f1,0x89));const a778_0x59b2=function(_0x12aa60,_0x50f153){_0x12aa60=_0x12aa60-0x0;let _0x59b29e=a778_0x50f1[_0x12aa60];return _0x59b29e;};const _0x24272c=a778_0x59b2;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x24272c('0x9'))(_0x24272c('0xa'));exports[_0x24272c('0x3')]=function(_0x11798c){const _0x2d398d=this;return new Promise(function(_0x259c2e,_0x5574ca){const _0xb848fe=a778_0x59b2;return db['VoiceTransferReport']['create'](_0x11798c['body'],{'raw':_0x11798c[_0xb848fe('0x2')]?_0x11798c['options'][_0xb848fe('0x7')]===undefined?!![]:![]:!![]})[_0xb848fe('0x6')](function(_0x20c6bd){const _0x433c62=_0xb848fe;logger[_0x433c62('0x8')](_0x433c62('0x3'),_0x11798c),logger[_0x433c62('0x4')]('CreateVoiceTransferReport',_0x11798c,JSON[_0x433c62('0x5')](_0x20c6bd)),_0x259c2e(_0x20c6bd);})[_0xb848fe('0x0')](function(_0x5bb539){const _0x17b9a5=_0xb848fe;logger[_0x17b9a5('0x1')](_0x17b9a5('0x3'),_0x5bb539[_0x17b9a5('0xb')],_0x11798c),_0x5574ca(_0x2d398d[_0x17b9a5('0x1')](0x1f4,_0x5bb539[_0x17b9a5('0xb')]));});});}; \ No newline at end of file +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 diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index 26a773f..0266895 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a779_0x210f=['/hangup','/transfer','transfer','unhold','/calls','/answer','hangup','/originate','canUpdate','post','calls','answer','exports','hold','isAuthenticated'];(function(_0x4871fb,_0x210f5a){const _0x29f5f6=function(_0x57cf8d){while(--_0x57cf8d){_0x4871fb['push'](_0x4871fb['shift']());}};_0x29f5f6(++_0x210f5a);}(a779_0x210f,0x89));const a779_0x29f5=function(_0x4871fb,_0x210f5a){_0x4871fb=_0x4871fb-0x0;let _0x29f5f6=a779_0x210f[_0x4871fb];return _0x29f5f6;};const _0x460980=a779_0x29f5;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./webbar.controller');router[_0x460980('0x7')](_0x460980('0x5'),auth['isAuthenticated'](),auth['canUpdate'](),controller['originate']),router[_0x460980('0x7')](_0x460980('0xd'),auth[_0x460980('0xc')](),auth[_0x460980('0x6')](),controller[_0x460980('0x4')]),router[_0x460980('0x7')](_0x460980('0x3'),auth[_0x460980('0xc')](),auth['canUpdate'](),controller[_0x460980('0x9')]),router[_0x460980('0x7')]('/hold',auth[_0x460980('0xc')](),auth[_0x460980('0x6')](),controller[_0x460980('0xb')]),router['post']('/unhold',auth[_0x460980('0xc')](),auth[_0x460980('0x6')](),controller[_0x460980('0x1')]),router['post'](_0x460980('0x2'),auth[_0x460980('0xc')](),auth[_0x460980('0x6')](),controller[_0x460980('0x8')]),router[_0x460980('0x7')](_0x460980('0xe'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x460980('0x0')]),module[_0x460980('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/webbar/webbar.controller.js b/server/api/webbar/webbar.controller.js index f26024f..4f521c9 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a780_0x687e=['UserId','findOne','send','util','entityFound:','NotFound','originate\x20executed!','sessionId\x20is\x20required','answer\x20fired:','result','transfer','hangup\x20executed!','webbar:conference','sessionId','callerId','catch','http','userId','../../rediscache','webbar:originate','json','hold','handleError:','jayson/promise','then','unhold\x20fired:','error','../../config/logger','format','unhold\x20executed!','originate\x20fired:','transfer\x20fired:','transferNumber','callNumber','all','info','string','../../mysqldb','number','client','user:%s','filter','length','message','answer','calls\x20fired:','name','webbar:hold','calls','validate','conference\x20fired:','transferNumber\x20is\x20required','webbarapi','request','originate','User','webbar:unhold','agent','transfer\x20executed!','status','stringify','body','callNumber\x20is\x20required','webbar:transfer','log','emit','answer\x20executed!','userId\x20is\x20required'];(function(_0x570bf3,_0x687e57){const _0x46e5d4=function(_0x35261f){while(--_0x35261f){_0x570bf3['push'](_0x570bf3['shift']());}};_0x46e5d4(++_0x687e57);}(a780_0x687e,0xe5));const a780_0x46e5=function(_0x570bf3,_0x687e57){_0x570bf3=_0x570bf3-0x0;let _0x46e5d4=a780_0x687e[_0x570bf3];return _0x46e5d4;};const _0xe14b1c=a780_0x46e5;'use strict';const _=require('lodash'),db=require(_0xe14b1c('0xc'))['db'],util=require(_0xe14b1c('0x2e')),jayson=require(_0xe14b1c('0x42')),amiClient=jayson[_0xe14b1c('0xe')][_0xe14b1c('0x3b')]({'port':0x232a}),logger=require(_0xe14b1c('0x2'))(_0xe14b1c('0x1b')),{getSocket}=require(_0xe14b1c('0x3d')),io=getSocket(),Schema=require(_0xe14b1c('0x18')),originateValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],_0xe14b1c('0x2a')]},'callNumber':{'type':'string','required':[!![],_0xe14b1c('0x25')]},'callerId':{'type':_0xe14b1c('0xb')},'callbackUrl':{'type':_0xe14b1c('0xb')}}),hangupValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0xe14b1c('0xb'),'required':![]}}),answerValidation=new Schema({'userId':{'type':'number','required':[!![],'userId\x20is\x20required']},'sessionId':{'type':'string','required':![]}}),transferValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],_0xe14b1c('0x2a')]},'sessionId':{'type':'string','required':[!![],_0xe14b1c('0x32')]},'transferNumber':{'type':_0xe14b1c('0xb'),'required':[!![],_0xe14b1c('0x1a')]}}),holdValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],_0xe14b1c('0x2a')]},'sessionId':{'type':'string','required':![]}}),unholdValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0xe14b1c('0xb'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],'userId\x20is\x20required']}}),conferenceValidation=new Schema({'userId':{'type':_0xe14b1c('0xd'),'required':[!![],_0xe14b1c('0x2a')]}});function emit(_0x35261f,_0x41d9af,_0x473a43){const _0x2c7b76=_0xe14b1c;logger['info'](_0x35261f,_0x41d9af,JSON[_0x2c7b76('0x23')](_0x473a43)),io['to'](_0x35261f)[_0x2c7b76('0x28')](_0x41d9af,_0x473a43);}function handleError(_0xb0f887){return function(_0x543791){const _0x391d4b=a780_0x46e5;console[_0x391d4b('0x27')](_0x391d4b('0x41'),_0x543791,_0x543791 instanceof RangeError),logger[_0x391d4b('0x1')](_0x543791['stack']),_0x543791 instanceof RangeError?(_0x543791[_0x391d4b('0x15')]&&delete _0x543791['name'],_0xb0f887[_0x391d4b('0x22')](0x194)[_0x391d4b('0x2d')](_0x543791)):(_0x543791['name']&&delete _0x543791[_0x391d4b('0x15')],_0xb0f887[_0x391d4b('0x22')](0x1f4)[_0x391d4b('0x2d')](_0x543791));};}function checkError(){return function(_0x36ee88){const _0x10b3b2=a780_0x46e5;if(!_0x36ee88)throw new RangeError(_0x10b3b2('0x30'));return _0x36ee88;};}function respondWithRpcPromise(_0x3738c3,_0x3a0068){return new Promise(function(_0x339b5c,_0x424d21){const _0x3e5a52=a780_0x46e5,_0x1ad77e=amiClient;return _0x1ad77e[_0x3e5a52('0x1c')](_0x3738c3,_0x3a0068)[_0x3e5a52('0x43')](function(_0x1a7ac7){const _0x126f2e=_0x3e5a52;if(_0x1a7ac7[_0x126f2e('0x1')]){if(_0x1a7ac7[_0x126f2e('0x1')]['code']===0x1f4)return _0x424d21(_0x1a7ac7[_0x126f2e('0x1')][_0x126f2e('0x12')]);return _0x339b5c(_0x1a7ac7[_0x126f2e('0x1')][_0x126f2e('0x12')]);}else _0x339b5c(_0x1a7ac7[_0x126f2e('0x34')]);})[_0x3e5a52('0x3a')](function(_0x5de33f){_0x424d21(_0x5de33f);});});}function getAgent(_0x31266b){const _0x52fe6e=_0xe14b1c;return db[_0x52fe6e('0x1e')][_0x52fe6e('0x2c')]({'where':{'id':_0x31266b,'role':_0x52fe6e('0x20')}})[_0x52fe6e('0x43')](checkError());}exports[_0xe14b1c('0x1d')]=function(_0x2034e8,_0x2ad4d0){const _0x5eee2e=_0xe14b1c;logger['info'](_0x5eee2e('0x5'),_0x2034e8[_0x5eee2e('0x24')]);const _0x21de61=originateValidation[_0x5eee2e('0x18')](_0x2034e8[_0x5eee2e('0x24')]);if(_0x21de61[_0x5eee2e('0x11')]>0x0)return _0x2ad4d0[_0x5eee2e('0x22')](0x190)[_0x5eee2e('0x3f')](_0x21de61);const _0x327e6b=_0x2034e8[_0x5eee2e('0x24')][_0x5eee2e('0x3c')],_0x224dbd=_0x2034e8['body'][_0x5eee2e('0x8')],_0x540d14=_0x2034e8[_0x5eee2e('0x24')][_0x5eee2e('0x39')],_0x4a655a=_0x2034e8[_0x5eee2e('0x24')]['callbackUrl'];return getAgent(_0x327e6b)[_0x5eee2e('0x43')](function(_0x1b78e9){const _0x487e4d=_0x5eee2e;return logger['info'](_0x487e4d('0x2f'),_0x1b78e9['name']),emit(util[_0x487e4d('0x3')](_0x487e4d('0xf'),_0x1b78e9[_0x487e4d('0x15')]),_0x487e4d('0x3e'),{'callNumber':_0x224dbd,'callerId':_0x540d14,'callbackUrl':_0x4a655a}),_0x2ad4d0['status'](0xc8)[_0x487e4d('0x3f')]({'error':![],'message':_0x487e4d('0x31')});})[_0x5eee2e('0x3a')](handleError(_0x2ad4d0));},exports['hangup']=function(_0x1fc4e2,_0x110862){const _0x596b82=_0xe14b1c;logger['info']('hangup\x20fired:',_0x1fc4e2[_0x596b82('0x24')]);const _0x2bdc7d=hangupValidation['validate'](_0x1fc4e2[_0x596b82('0x24')]);if(_0x2bdc7d['length']>0x0)return _0x110862[_0x596b82('0x22')](0x190)['json'](_0x2bdc7d);const _0x21e544=_0x1fc4e2[_0x596b82('0x24')][_0x596b82('0x3c')],_0x3135aa=_0x1fc4e2['body']['sessionId'];return getAgent(_0x21e544)[_0x596b82('0x43')](function(_0x1d9f5f){const _0x3ac5d9=_0x596b82;return logger['info'](_0x3ac5d9('0x2f'),_0x1d9f5f[_0x3ac5d9('0x15')]),emit(util['format'](_0x3ac5d9('0xf'),_0x1d9f5f[_0x3ac5d9('0x15')]),'webbar:hangup',{'sessionId':_0x3135aa}),_0x110862[_0x3ac5d9('0x22')](0xc8)['json']({'error':![],'message':_0x3ac5d9('0x36')});})['catch'](handleError(_0x110862));},exports[_0xe14b1c('0x13')]=function(_0x255875,_0x1c6900){const _0x56d280=_0xe14b1c;logger[_0x56d280('0xa')](_0x56d280('0x33'),_0x255875[_0x56d280('0x24')]);const _0x190cc5=answerValidation[_0x56d280('0x18')](_0x255875[_0x56d280('0x24')]);if(_0x190cc5[_0x56d280('0x11')]>0x0)return _0x1c6900[_0x56d280('0x22')](0x190)[_0x56d280('0x3f')](_0x190cc5);const _0x33c862=_0x255875[_0x56d280('0x24')][_0x56d280('0x3c')],_0x502b3a=_0x255875[_0x56d280('0x24')][_0x56d280('0x38')];return getAgent(_0x33c862)[_0x56d280('0x43')](function(_0x45ced7){const _0x3709d8=_0x56d280;return logger[_0x3709d8('0xa')](_0x3709d8('0x2f'),_0x45ced7[_0x3709d8('0x15')]),emit(util['format']('user:%s',_0x45ced7['name']),'webbar:answer',{'sessionId':_0x502b3a}),_0x1c6900[_0x3709d8('0x22')](0xc8)['json']({'error':![],'message':_0x3709d8('0x29')});})[_0x56d280('0x3a')](handleError(_0x1c6900));},exports[_0xe14b1c('0x40')]=function(_0x22f78f,_0xba7b00){const _0x24daee=_0xe14b1c;logger[_0x24daee('0xa')]('hold\x20fired:',_0x22f78f[_0x24daee('0x24')]);const _0x21dfee=holdValidation[_0x24daee('0x18')](_0x22f78f['body']);if(_0x21dfee[_0x24daee('0x11')]>0x0)return _0xba7b00[_0x24daee('0x22')](0x190)['json'](_0x21dfee);const _0x38082f=_0x22f78f[_0x24daee('0x24')][_0x24daee('0x3c')],_0x241954=_0x22f78f['body'][_0x24daee('0x38')];return getAgent(_0x38082f)[_0x24daee('0x43')](function(_0x3eef87){const _0x32d2d4=_0x24daee;return logger[_0x32d2d4('0xa')]('entityFound:',_0x3eef87['name']),emit(util[_0x32d2d4('0x3')](_0x32d2d4('0xf'),_0x3eef87['name']),_0x32d2d4('0x16'),{'sessionId':_0x241954}),_0xba7b00[_0x32d2d4('0x22')](0xc8)[_0x32d2d4('0x3f')]({'error':![],'message':'hold\x20executed!'});})[_0x24daee('0x3a')](handleError(_0xba7b00));},exports['unhold']=function(_0x17e576,_0x478039){const _0x719048=_0xe14b1c;logger[_0x719048('0xa')](_0x719048('0x0'),_0x17e576[_0x719048('0x24')]);const _0x33c240=unholdValidation[_0x719048('0x18')](_0x17e576[_0x719048('0x24')]);if(_0x33c240['length']>0x0)return _0x478039['status'](0x190)[_0x719048('0x3f')](_0x33c240);const _0x4642c1=_0x17e576[_0x719048('0x24')][_0x719048('0x3c')],_0x11ecdf=_0x17e576['body'][_0x719048('0x38')];return getAgent(_0x4642c1)[_0x719048('0x43')](function(_0x197e15){const _0x238a72=_0x719048;return logger['info'](_0x238a72('0x2f'),_0x197e15[_0x238a72('0x15')]),emit(util[_0x238a72('0x3')]('user:%s',_0x197e15['name']),_0x238a72('0x1f'),{'sessionId':_0x11ecdf}),_0x478039[_0x238a72('0x22')](0xc8)[_0x238a72('0x3f')]({'error':![],'message':_0x238a72('0x4')});})[_0x719048('0x3a')](handleError(_0x478039));},exports[_0xe14b1c('0x17')]=function(_0x425900,_0x5575f8){const _0x3c689d=_0xe14b1c;logger['info'](_0x3c689d('0x14'),_0x5575f8[_0x3c689d('0x24')]);const _0x4d3671=callsValidation[_0x3c689d('0x18')](_0x425900[_0x3c689d('0x24')]);if(_0x4d3671[_0x3c689d('0x11')]>0x0)return _0x5575f8[_0x3c689d('0x22')](0x190)[_0x3c689d('0x3f')](_0x4d3671);const _0x5a0b59=_0x425900[_0x3c689d('0x24')]['userId'],_0x560bd9=respondWithRpcPromise('VoiceChannels'),_0x4e0323=getAgent(_0x5a0b59);return Promise[_0x3c689d('0x9')]([_0x560bd9,_0x4e0323])[_0x3c689d('0x43')](function(_0x5b2591){const _0x195585=_0x3c689d,_0x484fe9=_0x5b2591[0x0],_0x7ffad8=_0x5b2591[0x1],_0x3c7e0c=_[_0x195585('0x10')](_0x484fe9['rows'],function(_0x4c152a){const _0x389192=_0x195585;return _0x4c152a[_0x389192('0x2b')]==_0x7ffad8['id'];});return _0x5575f8[_0x195585('0x22')](0xc8)[_0x195585('0x3f')]({'count':_0x3c7e0c[_0x195585('0x11')],'rows':_0x3c7e0c});})[_0x3c689d('0x3a')](handleError(_0x5575f8));},exports['conference']=function(_0x3afe86,_0x3f0aa7){const _0x111f7e=_0xe14b1c;logger[_0x111f7e('0xa')](_0x111f7e('0x19'),_0x3afe86['body']);const _0x5570d8=conferenceValidation['validate'](_0x3afe86[_0x111f7e('0x24')]);if(_0x5570d8[_0x111f7e('0x11')]>0x0)return _0x3f0aa7[_0x111f7e('0x22')](0x190)['json'](_0x5570d8);const _0x1f5b84=_0x3afe86[_0x111f7e('0x24')][_0x111f7e('0x3c')];return getAgent(_0x1f5b84)['then'](function(_0x3f088c){const _0x4abf4a=_0x111f7e;return logger[_0x4abf4a('0xa')](_0x4abf4a('0x2f'),_0x3f088c[_0x4abf4a('0x15')]),emit(util[_0x4abf4a('0x3')](_0x4abf4a('0xf'),_0x3f088c[_0x4abf4a('0x15')]),_0x4abf4a('0x37')),_0x3f0aa7['status'](0xc8)[_0x4abf4a('0x3f')]({'error':![],'message':'conference\x20executed!'});})[_0x111f7e('0x3a')](handleError(_0x3f0aa7));},exports[_0xe14b1c('0x35')]=function(_0x274cf9,_0x7b39ce){const _0x11cf61=_0xe14b1c;logger[_0x11cf61('0xa')](_0x11cf61('0x6'),_0x274cf9[_0x11cf61('0x24')]);const _0x222416=transferValidation[_0x11cf61('0x18')](_0x274cf9[_0x11cf61('0x24')]);if(_0x222416[_0x11cf61('0x11')]>0x0)return _0x7b39ce['status'](0x190)[_0x11cf61('0x3f')](_0x222416);const _0x116dd2=_0x274cf9[_0x11cf61('0x24')][_0x11cf61('0x3c')],_0x26941a=_0x274cf9[_0x11cf61('0x24')][_0x11cf61('0x38')],_0x1004ff=_0x274cf9[_0x11cf61('0x24')][_0x11cf61('0x7')];return getAgent(_0x116dd2)[_0x11cf61('0x43')](function(_0x1e3f53){const _0x2f49af=_0x11cf61;return logger[_0x2f49af('0xa')](_0x2f49af('0x2f'),_0x1e3f53[_0x2f49af('0x15')]),emit(util[_0x2f49af('0x3')](_0x2f49af('0xf'),_0x1e3f53['name']),_0x2f49af('0x26'),{'sessionId':_0x26941a,'transferNumber':_0x1004ff}),_0x7b39ce[_0x2f49af('0x22')](0xc8)[_0x2f49af('0x3f')]({'error':![],'message':_0x2f49af('0x21')});})['catch'](handleError(_0x7b39ce));}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index 0364063..a3b76a2 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a781_0x393f=['/:id','send','create','get','Router','update','../../components/auth/service','/:id/dispositions','./whatsappAccount.controller','notify','/:id/notify','post','/:id/canned_answers','addAgents','describe','/:id/send','/:id/users','getDispositions','isAuthenticated','/:id/applications','getApplications','delete','removeAnswers','getAgents','getAnswers','exports'];(function(_0x23514a,_0x393fe8){const _0x1f73e6=function(_0x4e95b2){while(--_0x4e95b2){_0x23514a['push'](_0x23514a['shift']());}};_0x1f73e6(++_0x393fe8);}(a781_0x393f,0x1a8));const a781_0x1f73=function(_0x23514a,_0x393fe8){_0x23514a=_0x23514a-0x0;let _0x1f73e6=a781_0x393f[_0x23514a];return _0x1f73e6;};const _0x242e43=a781_0x1f73;'use strict';const express=require('express'),router=express[_0x242e43('0x16')](),auth=require(_0x242e43('0x18')),controller=require(_0x242e43('0x0'));router[_0x242e43('0x15')]('/',auth[_0x242e43('0xa')](),controller['index']),router['get']('/describe',auth[_0x242e43('0xa')](),controller[_0x242e43('0x6')]),router[_0x242e43('0x15')](_0x242e43('0x12'),auth[_0x242e43('0xa')](),controller['show']),router['get']('/:id/dispositions',auth[_0x242e43('0xa')](),controller[_0x242e43('0x9')]),router[_0x242e43('0x15')](_0x242e43('0x4'),auth[_0x242e43('0xa')](),controller[_0x242e43('0x10')]),router[_0x242e43('0x15')]('/:id/users',auth[_0x242e43('0xa')](),controller[_0x242e43('0xf')]),router[_0x242e43('0x15')](_0x242e43('0xb'),auth[_0x242e43('0xa')](),controller[_0x242e43('0xc')]),router['post']('/',auth[_0x242e43('0xa')](),controller[_0x242e43('0x14')]),router[_0x242e43('0x3')](_0x242e43('0x19'),auth['isAuthenticated'](),controller['addDisposition']),router[_0x242e43('0x3')](_0x242e43('0x4'),auth[_0x242e43('0xa')](),controller['addAnswer']),router[_0x242e43('0x3')](_0x242e43('0x8'),auth[_0x242e43('0xa')](),controller[_0x242e43('0x5')]),router['post'](_0x242e43('0xb'),auth['isAuthenticated'](),controller['addApplications']),router[_0x242e43('0x3')](_0x242e43('0x2'),controller[_0x242e43('0x1')]),router[_0x242e43('0x3')](_0x242e43('0x7'),auth[_0x242e43('0xa')](),controller[_0x242e43('0x13')]),router['put'](_0x242e43('0x12'),auth[_0x242e43('0xa')](),controller[_0x242e43('0x17')]),router[_0x242e43('0xd')]('/:id',auth['isAuthenticated'](),controller['destroy']),router['delete']('/:id/dispositions',auth['isAuthenticated'](),controller['removeDispositions']),router[_0x242e43('0xd')](_0x242e43('0x4'),auth[_0x242e43('0xa')](),controller[_0x242e43('0xe')]),router[_0x242e43('0xd')](_0x242e43('0x8'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x242e43('0x11')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index 55981a5..4ad6939 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a782_0x5125=['name','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','exports','setDataValue','BOOLEAN','STRING','ENUM','TEXT','randomstring','INTEGER','twilio','mandatoryDisposition'];(function(_0x131174,_0x512556){const _0x59f5c1=function(_0xa36e26){while(--_0xa36e26){_0x131174['push'](_0x131174['shift']());}};_0x59f5c1(++_0x512556);}(a782_0x5125,0x107));const a782_0x59f5=function(_0x131174,_0x512556){_0x131174=_0x131174-0x0;let _0x59f5c1=a782_0x5125[_0x131174];return _0x59f5c1;};const _0x4431d6=a782_0x59f5;'use strict';const Sequelize=require('sequelize'),rs=require(_0x4431d6('0x9'));module[_0x4431d6('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x4431d6('0x1'),'allowNull':![]},'key':{'type':Sequelize[_0x4431d6('0x6')],'allowNull':![]},'remote':{'type':Sequelize['STRING'],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x4431d6('0x6')]},'type':{'type':Sequelize[_0x4431d6('0x7')](_0x4431d6('0xb'))},'accountSid':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize[_0x4431d6('0x6')]},'notificationTemplate':{'type':Sequelize[_0x4431d6('0x8')],'defaultValue':function(){const _0x21b780=_0x4431d6;return _0x21b780('0x2');}},'notificationSound':{'type':Sequelize[_0x4431d6('0x5')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x4431d6('0x5')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4431d6('0xa')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4431d6('0xa')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4431d6('0x5')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4431d6('0xa')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x4431d6('0x5')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0xa36e26){const _0x3dcace=_0x4431d6;!_0xa36e26&&this[_0x3dcace('0x4')]('mandatoryDispositionPauseId',null),this[_0x3dcace('0x4')](_0x3dcace('0x0'),_0xa36e26);}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index 35b1661..8913770 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a783_0x8c98=['client','status','getAgents','UserProfileSection','getAnswers','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','ContactId','register','offset','jayson/promise','includeAll','api','account','unmanaged','length','filters','UserProfileResource','order','request','Body','getDispositions','text/xml','info','error','rows','show','WhatsappMessage','dataValues','agent','createdAt','filter','mapKey','fieldName','includes','where','from\x20is\x20mandatory','findAll','whatsapp:','index','interaction','Content-Type','transaction','lodash','removeAgents','addAgents','findOne','Applications','role','isArray','options','waitForTheAssignedAgent','type','destroy','mandatoryDispositionPause','mobile','WhatsappAccount,\x20%s,\x20%s,\x20%s','catch','updatedAt','ListId','entity\x20found','limit','stack','addApplications','omit','count','Contacts','Messages','addDisposition','CompanyId','applications','CannedAnswer','created','replace','unshift','fields','include','body','../../mysqldb','model','priority','stringify','addAnswer','set','VIRTUAL','send','undefined','removeDispositions','difference','receiveMessage','Pause','get','body\x20is\x20mandatory\x20and\x20not\x20empty','WhatsappAccount,\x20%s,\x20%s','name','key','Disposition','request\x20sent','userWhatsappAccount:remove','CmList','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','contact','WhatsappApplication','startRouting','rawAttributes','then','params','WhatsappAccount','user','defaults','keys','Unable\x20to\x20retrieve\x20the\x20current\x20user','emit','to\x20is\x20mandatory','sendStatus','WhatsappInteraction','pick','update','message','from','like','close','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','isNil','getApplications','sequelize','ids','intersection','*,*,*,*','create','query','WhatsappAccounts','code','describe','sort','list','Start','attributes','autoclose','json','messageId','out','List','User','CmContact','nolimit','userWhatsappAccount:save','DESC','removeAnswers','WhatsappAccountId','debug','merge','AttachmentId','map','end'];(function(_0x1e5dc7,_0x8c98e5){const _0x35d0fb=function(_0x300213){while(--_0x300213){_0x1e5dc7['push'](_0x1e5dc7['shift']());}};_0x35d0fb(++_0x8c98e5);}(a783_0x8c98,0x138));const a783_0x35d0=function(_0x1e5dc7,_0x8c98e5){_0x1e5dc7=_0x1e5dc7-0x0;let _0x35d0fb=a783_0x8c98[_0x1e5dc7];return _0x35d0fb;};const _0x2814dc=a783_0x35d0;'use strict';const _=require(_0x2814dc('0x26')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2814dc('0x7')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x2814dc('0x49'))['db'],{Op,ValidationError}=require(_0x2814dc('0x78'));require('./whatsappAccount.socket')[_0x2814dc('0x3')](socket);const jayson=require(_0x2814dc('0x5')),client=jayson[_0x2814dc('0x96')]['http']({'port':0x232c});function respondWithRpcPromise(_0x300213,_0x171d5b,_0x4f6f15,_0x231c29){return new Promise(function(_0xa40fac,_0x7e79f8){const _0x54e942=a783_0x35d0,_0x44df7e=_0x231c29||client;return _0x44df7e[_0x54e942('0xe')](_0x300213,_0x4f6f15)[_0x54e942('0x64')](function(_0x56e9e9){const _0x547c4c=_0x54e942;logger[_0x547c4c('0x12')](_0x547c4c('0x58'),_0x171d5b,'request\x20sent'),logger[_0x547c4c('0x91')](_0x547c4c('0x33'),_0x171d5b,_0x547c4c('0x5c'),JSON[_0x547c4c('0x4c')](_0x56e9e9));if(_0x56e9e9[_0x547c4c('0x13')]){if(_0x56e9e9['error'][_0x547c4c('0x7f')]===0x1f4)return logger[_0x547c4c('0x13')](_0x547c4c('0x58'),_0x171d5b,_0x56e9e9[_0x547c4c('0x13')][_0x547c4c('0x71')]),_0x7e79f8(_0x56e9e9[_0x547c4c('0x13')]['message']);return logger['error'](_0x547c4c('0x58'),_0x171d5b,_0x56e9e9[_0x547c4c('0x13')][_0x547c4c('0x71')]),_0xa40fac(_0x56e9e9[_0x547c4c('0x13')]['message']);}else logger[_0x547c4c('0x12')](_0x547c4c('0x58'),_0x171d5b,_0x547c4c('0x5c')),_0xa40fac(_0x56e9e9['result'][_0x547c4c('0x71')]);})['catch'](function(_0x23ed3e){const _0x379b88=_0x54e942;logger[_0x379b88('0x13')](_0x379b88('0x58'),_0x171d5b,_0x23ed3e),_0x7e79f8(_0x23ed3e);});});}function respondWithStatusCode(_0x5838e4,_0x18706f){return _0x18706f=_0x18706f||0xcc,function(_0x30fd4c){const _0x3e1108=a783_0x35d0;if(_0x30fd4c)return _0x5838e4[_0x3e1108('0x6d')](_0x18706f);return _0x5838e4[_0x3e1108('0x97')](_0x18706f)[_0x3e1108('0x95')]();};}function respondWithResult(_0x4c7f7f,_0x3b5216){return _0x3b5216=_0x3b5216||0xc8,function(_0x1f5b22){const _0x346942=a783_0x35d0;if(_0x1f5b22)return _0x4c7f7f[_0x346942('0x97')](_0x3b5216)['json'](_0x1f5b22);};}function respondWithFilteredResult(_0x4bdba8,_0x1757f6){return function(_0x13d55a){const _0x2357f7=a783_0x35d0;if(_0x13d55a){const _0x13b09e=_0x13d55a['count'],_0x42d6fe=_0x1757f6[_0x2357f7('0x4')];let _0x460d88=_0x1757f6[_0x2357f7('0x4')]+_0x1757f6['limit'],_0x211e80;return _0x460d88>=_0x13b09e?(_0x460d88=_0x13b09e,_0x211e80=0xc8):_0x211e80=0xce,_0x4bdba8[_0x2357f7('0x97')](_0x211e80),_0x4bdba8['set']('Content-Range',_0x42d6fe+'-'+_0x460d88+'/'+_0x13b09e)[_0x2357f7('0x86')](_0x13d55a);}return null;};}function saveUpdates(_0x2502e8){return function(_0x1f9ba4){const _0x215d42=a783_0x35d0;if(_0x1f9ba4)return _0x1f9ba4['update'](_0x2502e8)[_0x215d42('0x64')](function(_0x2aca29){return _0x2aca29;});return null;};}function removeEntity(_0x45d175){return function(_0x22cf28){const _0x169de7=a783_0x35d0;if(_0x22cf28)return _0x22cf28[_0x169de7('0x30')]()[_0x169de7('0x64')](function(){const _0x33b066=_0x169de7,_0x2e094e=_0x22cf28[_0x33b066('0x56')]({'plain':!![]}),_0x336b58=_0x33b066('0x7e');return db[_0x33b066('0xc')][_0x33b066('0x30')]({'where':{'type':_0x336b58,'resourceId':_0x2e094e['id']}})[_0x33b066('0x64')](function(){return _0x22cf28;});})[_0x169de7('0x64')](function(){const _0x541812=_0x169de7;_0x45d175[_0x541812('0x97')](0xcc)[_0x541812('0x95')]();});};}function handleEntityNotFound(_0x281e8e){return function(_0x4a2da1){const _0x4e3289=a783_0x35d0;return!_0x4a2da1&&_0x281e8e[_0x4e3289('0x6d')](0x194),_0x4a2da1;};}function handleError(_0xd73aa7,_0x5ceb78){return _0x5ceb78=_0x5ceb78||0x1f4,function(_0x3f8059){const _0x3e90a8=a783_0x35d0;logger['error'](_0x3f8059[_0x3e90a8('0x39')]),_0x3f8059[_0x3e90a8('0x59')]&&delete _0x3f8059[_0x3e90a8('0x59')],_0xd73aa7['status'](_0x5ceb78)[_0x3e90a8('0x50')](_0x3f8059);};}exports[_0x2814dc('0x22')]=function(_0x14233a,_0x4504b7){const _0xa5b601=_0x2814dc;let _0x41a70a={'include':[{'model':db[_0xa5b601('0x55')],'as':'mandatoryDispositionPause'}]};const _0x3706cd={},_0x588beb={'count':0x0,'rows':[]},_0x3dfe3c=_[_0xa5b601('0x94')](db[_0xa5b601('0x66')][_0xa5b601('0x63')],function(_0x4bb26a){const _0x47ef62=_0xa5b601;return{'name':_0x4bb26a[_0x47ef62('0x1c')],'type':_0x4bb26a[_0x47ef62('0x2f')][_0x47ef62('0x5a')]};});_0x3706cd[_0xa5b601('0x4a')]=_[_0xa5b601('0x94')](_0x3dfe3c,_0xa5b601('0x59')),_0x3706cd[_0xa5b601('0x7d')]=_[_0xa5b601('0x69')](_0x14233a['query']),_0x3706cd['filters']=_[_0xa5b601('0x7a')](_0x3706cd[_0xa5b601('0x4a')],_0x3706cd['query']),_0x41a70a[_0xa5b601('0x84')]=_[_0xa5b601('0x7a')](_0x3706cd['model'],qs[_0xa5b601('0x46')](_0x14233a[_0xa5b601('0x7d')][_0xa5b601('0x46')])),_0x41a70a[_0xa5b601('0x84')]=_0x41a70a[_0xa5b601('0x84')][_0xa5b601('0xa')]?_0x41a70a[_0xa5b601('0x84')]:_0x3706cd[_0xa5b601('0x4a')];typeof _0x14233a[_0xa5b601('0x7d')]['nolimit']==='undefined'&&(_0x41a70a['limit']=qs[_0xa5b601('0x38')](_0x14233a[_0xa5b601('0x7d')][_0xa5b601('0x38')]),_0x41a70a['offset']=qs[_0xa5b601('0x4')](_0x14233a['query']['offset']));_0x41a70a[_0xa5b601('0xd')]=qs[_0xa5b601('0x81')](_0x14233a[_0xa5b601('0x7d')][_0xa5b601('0x81')]),_0x41a70a[_0xa5b601('0x1e')]=qs['filters'](_[_0xa5b601('0x6f')](_0x14233a[_0xa5b601('0x7d')],_0x3706cd['filters']),_0x3dfe3c);_0x14233a[_0xa5b601('0x7d')][_0xa5b601('0x1a')]&&(_0x41a70a[_0xa5b601('0x1e')]=_[_0xa5b601('0x92')](_0x41a70a['where'],{[Op['or']]:_[_0xa5b601('0x94')](_0x3dfe3c,function(_0x44e2b0){const _0x5a5ebf=_0xa5b601;if(_0x44e2b0['type']!==_0x5a5ebf('0x4f')){const _0x133bb9={};return _0x133bb9[_0x44e2b0[_0x5a5ebf('0x59')]]={[Op[_0x5a5ebf('0x73')]]:'%'+_0x14233a[_0x5a5ebf('0x7d')][_0x5a5ebf('0x1a')]+'%'},_0x133bb9;}})}));_0x41a70a=_[_0xa5b601('0x92')]({},_0x41a70a,_0x14233a[_0xa5b601('0x2d')]);const _0x4a6a6c={'where':_0x41a70a['where']};return db['WhatsappAccount'][_0xa5b601('0x3c')](_0x4a6a6c)[_0xa5b601('0x64')](function(_0x2abd81){const _0x5606df=_0xa5b601;return _0x588beb['count']=_0x2abd81,_0x14233a[_0x5606df('0x7d')]['includeAll']&&(_0x41a70a[_0x5606df('0x47')]=[{'all':!![]}]),db[_0x5606df('0x66')][_0x5606df('0x20')](_0x41a70a);})[_0xa5b601('0x64')](function(_0x1de5a5){const _0x4a8d39=_0xa5b601;return _0x588beb[_0x4a8d39('0x14')]=_0x1de5a5,_0x588beb;})[_0xa5b601('0x64')](respondWithFilteredResult(_0x4504b7,_0x41a70a))[_0xa5b601('0x34')](handleError(_0x4504b7,null));},exports[_0x2814dc('0x15')]=function(_0x23ceba,_0x4231e4){const _0x3aec64=_0x2814dc;let _0x17723c={'raw':![],'where':{'id':_0x23ceba[_0x3aec64('0x65')]['id']},'include':[{'model':db['Pause'],'as':_0x3aec64('0x31')}]};const _0x1570a1={};return _0x1570a1[_0x3aec64('0x4a')]=_[_0x3aec64('0x69')](db['WhatsappAccount'][_0x3aec64('0x63')]),_0x1570a1[_0x3aec64('0x7d')]=_['keys'](_0x23ceba[_0x3aec64('0x7d')]),_0x1570a1[_0x3aec64('0xb')]=_[_0x3aec64('0x7a')](_0x1570a1[_0x3aec64('0x4a')],_0x1570a1['query']),_0x17723c[_0x3aec64('0x84')]=_[_0x3aec64('0x7a')](_0x1570a1['model'],qs[_0x3aec64('0x46')](_0x23ceba['query'][_0x3aec64('0x46')])),_0x17723c[_0x3aec64('0x84')]=_0x17723c[_0x3aec64('0x84')]['length']?_0x17723c['attributes']:_0x1570a1[_0x3aec64('0x4a')],_0x23ceba[_0x3aec64('0x7d')][_0x3aec64('0x6')]&&(_0x17723c[_0x3aec64('0x47')]=[{'all':!![]}]),_0x17723c=_[_0x3aec64('0x92')]({},_0x17723c,_0x23ceba[_0x3aec64('0x2d')]),db[_0x3aec64('0x66')][_0x3aec64('0x29')](_0x17723c)[_0x3aec64('0x64')](handleEntityNotFound(_0x4231e4,null))[_0x3aec64('0x64')](respondWithResult(_0x4231e4,null))[_0x3aec64('0x34')](handleError(_0x4231e4,null));},exports[_0x2814dc('0x7c')]=function(_0x17b581,_0x4d47a5){const _0x5e6d3b=_0x2814dc;return db['WhatsappAccount'][_0x5e6d3b('0x7c')](_0x17b581['body'],{})[_0x5e6d3b('0x64')](function(_0x32baec){const _0x3caab8=_0x5e6d3b,_0x33ea95=_0x17b581[_0x3caab8('0x67')][_0x3caab8('0x56')]({'plain':!![]});if(!_0x33ea95)throw new Error(_0x3caab8('0x6a'));if(_0x33ea95[_0x3caab8('0x2b')]==='user'){const _0x32b6f1=_0x32baec['get']({'plain':!![]}),_0xc41a84=_0x3caab8('0x7e');return db[_0x3caab8('0x99')][_0x3caab8('0x29')]({'where':{'name':_0xc41a84,'userProfileId':_0x33ea95['userProfileId']},'raw':!![]})[_0x3caab8('0x64')](function(_0x47e359){const _0x1d123e=_0x3caab8;return _0x47e359&&_0x47e359['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x32b6f1[_0x1d123e('0x59')],'resourceId':_0x32b6f1['id'],'type':_0x47e359[_0x1d123e('0x59')],'sectionId':_0x47e359['id']},{})[_0x1d123e('0x64')](function(){return _0x32baec;}):_0x32baec;})[_0x3caab8('0x34')](function(_0x36f15b){const _0x124ac2=_0x3caab8;logger[_0x124ac2('0x13')](_0x124ac2('0x5f'),_0x36f15b);throw _0x36f15b;});}return _0x32baec;})[_0x5e6d3b('0x64')](respondWithResult(_0x4d47a5,0xc9))[_0x5e6d3b('0x34')](handleError(_0x4d47a5,null));},exports[_0x2814dc('0x70')]=function(_0x18caa1,_0x5174a0){const _0x274acf=_0x2814dc;return _0x18caa1['body']['id']&&delete _0x18caa1['body']['id'],db['WhatsappAccount'][_0x274acf('0x29')]({'where':{'id':_0x18caa1[_0x274acf('0x65')]['id']},'include':[{'model':db[_0x274acf('0x55')],'as':_0x274acf('0x31')}]})[_0x274acf('0x64')](handleEntityNotFound(_0x5174a0,null))['then'](saveUpdates(_0x18caa1[_0x274acf('0x48')],null))[_0x274acf('0x64')](respondWithResult(_0x5174a0,null))[_0x274acf('0x34')](handleError(_0x5174a0,null));},exports['destroy']=function(_0x205fbb,_0x3d2030){const _0x43883a=_0x2814dc;return db[_0x43883a('0x66')][_0x43883a('0x29')]({'where':{'id':_0x205fbb[_0x43883a('0x65')]['id']}})['then'](handleEntityNotFound(_0x3d2030,null))[_0x43883a('0x64')](removeEntity(_0x3d2030,null))[_0x43883a('0x34')](handleError(_0x3d2030,null));},exports[_0x2814dc('0x80')]=function(_0x3cd42c,_0x225def){const _0x182b87=_0x2814dc;return db['WhatsappAccount'][_0x182b87('0x80')]()[_0x182b87('0x64')](respondWithResult(_0x225def,null))[_0x182b87('0x34')](handleError(_0x225def,null));},exports[_0x2814dc('0x3f')]=function(_0x606621,_0x422577){const _0x1d322e=_0x2814dc;return _0x606621[_0x1d322e('0x48')]['id']&&delete _0x606621[_0x1d322e('0x48')]['id'],db[_0x1d322e('0x66')][_0x1d322e('0x29')]({'where':{'id':_0x606621[_0x1d322e('0x65')]['id']}})[_0x1d322e('0x64')](handleEntityNotFound(_0x422577,null))[_0x1d322e('0x64')](function(_0x12273b){const _0x385d62=_0x1d322e;if(_0x12273b)return _0x606621[_0x385d62('0x48')][_0x385d62('0x90')]=_0x12273b['id'],db[_0x385d62('0x5b')]['create'](_0x606621[_0x385d62('0x48')]);})[_0x1d322e('0x64')](respondWithResult(_0x422577,null))[_0x1d322e('0x34')](handleError(_0x422577,null));},exports[_0x2814dc('0x10')]=function(_0x42ddba,_0x3dde92){const _0x2f4173=_0x2814dc;let _0xa530e={'raw':![],'where':{}};const _0x329d93={},_0x1b5b51={'count':0x0,'rows':[]};return db[_0x2f4173('0x66')][_0x2f4173('0x29')]({'where':{'id':_0x42ddba[_0x2f4173('0x65')]['id']}})[_0x2f4173('0x64')](handleEntityNotFound(_0x3dde92,null))[_0x2f4173('0x64')](function(_0x2eaa50){const _0x4697fb=_0x2f4173;if(_0x2eaa50)return _0x329d93[_0x4697fb('0x4a')]=_[_0x4697fb('0x69')](db['Disposition'][_0x4697fb('0x63')]),_0x329d93['query']=_[_0x4697fb('0x69')](_0x42ddba[_0x4697fb('0x7d')]),_0x329d93[_0x4697fb('0xb')]=_[_0x4697fb('0x7a')](_0x329d93['model'],_0x329d93['query']),_0xa530e[_0x4697fb('0x84')]=_[_0x4697fb('0x7a')](_0x329d93['model'],qs['fields'](_0x42ddba[_0x4697fb('0x7d')]['fields'])),_0xa530e[_0x4697fb('0x84')]=_0xa530e['attributes'][_0x4697fb('0xa')]?_0xa530e[_0x4697fb('0x84')]:_0x329d93[_0x4697fb('0x4a')],typeof _0x42ddba[_0x4697fb('0x7d')]['nolimit']===_0x4697fb('0x51')&&(_0xa530e[_0x4697fb('0x38')]=qs['limit'](_0x42ddba['query'][_0x4697fb('0x38')]),_0xa530e[_0x4697fb('0x4')]=qs[_0x4697fb('0x4')](_0x42ddba[_0x4697fb('0x7d')]['offset'])),_0xa530e[_0x4697fb('0xd')]=qs[_0x4697fb('0x81')](_0x42ddba[_0x4697fb('0x7d')]['sort']),_0xa530e[_0x4697fb('0x1e')]=qs[_0x4697fb('0xb')](_['pick'](_0x42ddba[_0x4697fb('0x7d')],_0x329d93[_0x4697fb('0xb')])),_0xa530e[_0x4697fb('0x1e')]['WhatsappAccountId']=_0x2eaa50['id'],_0x42ddba[_0x4697fb('0x7d')][_0x4697fb('0x1a')]&&(_0xa530e[_0x4697fb('0x1e')]=_[_0x4697fb('0x92')](_0xa530e['where'],{[Op['or']]:_[_0x4697fb('0x94')](_0xa530e[_0x4697fb('0x84')],function(_0x29acd1){const _0x22a4bb=_0x4697fb,_0x19d659={};return _0x19d659[_0x29acd1]={[Op['like']]:'%'+_0x42ddba[_0x22a4bb('0x7d')]['filter']+'%'},_0x19d659;})})),_0xa530e=_[_0x4697fb('0x92')]({},_0xa530e,_0x42ddba[_0x4697fb('0x2d')]),db[_0x4697fb('0x5b')][_0x4697fb('0x3c')]({'where':_0xa530e['where']})['then'](function(_0x2677b7){const _0x1115c4=_0x4697fb;return _0x1b5b51[_0x1115c4('0x3c')]=_0x2677b7,_0x42ddba[_0x1115c4('0x7d')]['includeAll']&&(_0xa530e[_0x1115c4('0x47')]=[{'all':!![]}]),db[_0x1115c4('0x5b')][_0x1115c4('0x20')](_0xa530e);})[_0x4697fb('0x64')](function(_0x44ab10){const _0x5d4d39=_0x4697fb;return _0x1b5b51[_0x5d4d39('0x14')]=_0x44ab10,_0x1b5b51;});})['then'](respondWithFilteredResult(_0x3dde92,_0xa530e))['catch'](handleError(_0x3dde92,null));},exports[_0x2814dc('0x52')]=function(_0x563b27,_0x19f69e){const _0x99628=_0x2814dc;return db[_0x99628('0x66')][_0x99628('0x29')]({'where':{'id':_0x563b27[_0x99628('0x65')]['id']}})['then'](handleEntityNotFound(_0x19f69e,null))[_0x99628('0x64')](function(_0x4116f2){const _0x1ac808=_0x99628;if(_0x4116f2)return _0x4116f2['removeDispositions'](_0x563b27[_0x1ac808('0x7d')]['ids']);})[_0x99628('0x64')](respondWithStatusCode(_0x19f69e,null))['catch'](handleError(_0x19f69e,null));},exports[_0x2814dc('0x4d')]=function(_0x22662e,_0x5340df){const _0x2c0006=_0x2814dc;return _0x22662e[_0x2c0006('0x48')]['id']&&delete _0x22662e[_0x2c0006('0x48')]['id'],db[_0x2c0006('0x66')]['findOne']({'where':{'id':_0x22662e[_0x2c0006('0x65')]['id']}})[_0x2c0006('0x64')](handleEntityNotFound(_0x5340df,null))[_0x2c0006('0x64')](function(_0x30e921){const _0x3d9f56=_0x2c0006;if(_0x30e921)return _0x22662e['body'][_0x3d9f56('0x90')]=_0x30e921['id'],db[_0x3d9f56('0x42')][_0x3d9f56('0x7c')](_0x22662e[_0x3d9f56('0x48')]);})[_0x2c0006('0x64')](respondWithResult(_0x5340df,null))[_0x2c0006('0x34')](handleError(_0x5340df,null));},exports[_0x2814dc('0x0')]=function(_0x115c9e,_0xb3961d){const _0x3a3066=_0x2814dc;let _0x3d25b7={'raw':![],'where':{}};const _0x2b4937={},_0x3a0bf6={'count':0x0,'rows':[]};return db['WhatsappAccount'][_0x3a3066('0x29')]({'where':{'id':_0x115c9e[_0x3a3066('0x65')]['id']}})['then'](handleEntityNotFound(_0xb3961d,null))[_0x3a3066('0x64')](function(_0x527f60){const _0x3ced3b=_0x3a3066;if(_0x527f60)return _0x2b4937[_0x3ced3b('0x4a')]=_['keys'](db[_0x3ced3b('0x42')][_0x3ced3b('0x63')]),_0x2b4937['query']=_[_0x3ced3b('0x69')](_0x115c9e[_0x3ced3b('0x7d')]),_0x2b4937['filters']=_[_0x3ced3b('0x7a')](_0x2b4937[_0x3ced3b('0x4a')],_0x2b4937['query']),_0x3d25b7[_0x3ced3b('0x84')]=_[_0x3ced3b('0x7a')](_0x2b4937[_0x3ced3b('0x4a')],qs[_0x3ced3b('0x46')](_0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x46')])),_0x3d25b7[_0x3ced3b('0x84')]=_0x3d25b7[_0x3ced3b('0x84')]['length']?_0x3d25b7[_0x3ced3b('0x84')]:_0x2b4937[_0x3ced3b('0x4a')],typeof _0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x8c')]===_0x3ced3b('0x51')&&(_0x3d25b7[_0x3ced3b('0x38')]=qs[_0x3ced3b('0x38')](_0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x38')]),_0x3d25b7[_0x3ced3b('0x4')]=qs[_0x3ced3b('0x4')](_0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x4')])),_0x3d25b7[_0x3ced3b('0xd')]=qs['sort'](_0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x81')]),_0x3d25b7['where']=qs[_0x3ced3b('0xb')](_[_0x3ced3b('0x6f')](_0x115c9e[_0x3ced3b('0x7d')],_0x2b4937['filters'])),_0x3d25b7[_0x3ced3b('0x1e')][_0x3ced3b('0x90')]=_0x527f60['id'],_0x115c9e[_0x3ced3b('0x7d')][_0x3ced3b('0x1a')]&&(_0x3d25b7['where']=_[_0x3ced3b('0x92')](_0x3d25b7[_0x3ced3b('0x1e')],{[Op['or']]:_[_0x3ced3b('0x94')](_0x3d25b7[_0x3ced3b('0x84')],function(_0x11a0f1){const _0xf725fa=_0x3ced3b,_0x2bc9ab={};return _0x2bc9ab[_0x11a0f1]={[Op[_0xf725fa('0x73')]]:'%'+_0x115c9e[_0xf725fa('0x7d')]['filter']+'%'},_0x2bc9ab;})})),_0x3d25b7=_[_0x3ced3b('0x92')]({},_0x3d25b7,_0x115c9e[_0x3ced3b('0x2d')]),db[_0x3ced3b('0x42')][_0x3ced3b('0x3c')]({'where':_0x3d25b7[_0x3ced3b('0x1e')]})[_0x3ced3b('0x64')](function(_0x5bb52f){const _0x3aed98=_0x3ced3b;return _0x3a0bf6['count']=_0x5bb52f,_0x115c9e[_0x3aed98('0x7d')]['includeAll']&&(_0x3d25b7[_0x3aed98('0x47')]=[{'all':!![]}]),db[_0x3aed98('0x42')][_0x3aed98('0x20')](_0x3d25b7);})[_0x3ced3b('0x64')](function(_0x38c1eb){const _0x226361=_0x3ced3b;return _0x3a0bf6[_0x226361('0x14')]=_0x38c1eb,_0x3a0bf6;});})[_0x3a3066('0x64')](respondWithFilteredResult(_0xb3961d,_0x3d25b7))[_0x3a3066('0x34')](handleError(_0xb3961d,null));},exports[_0x2814dc('0x8f')]=function(_0x56d965,_0x14ef25){const _0x156f50=_0x2814dc;return db[_0x156f50('0x66')][_0x156f50('0x29')]({'where':{'id':_0x56d965['params']['id']}})['then'](handleEntityNotFound(_0x14ef25,null))[_0x156f50('0x64')](function(_0xd09090){const _0x4987c3=_0x156f50;if(_0xd09090)return _0xd09090[_0x4987c3('0x8f')](_0x56d965[_0x4987c3('0x7d')]['ids']);})[_0x156f50('0x64')](respondWithStatusCode(_0x14ef25,null))[_0x156f50('0x34')](handleError(_0x14ef25,null));},exports[_0x2814dc('0x28')]=function(_0x5136c7,_0x43336b){const _0x3e98cf=_0x2814dc;return db[_0x3e98cf('0x66')][_0x3e98cf('0x29')]({'where':{'id':_0x5136c7[_0x3e98cf('0x65')]['id']}})[_0x3e98cf('0x64')](function(_0x2708a2){const _0xc7862c=_0x3e98cf;if(_0x2708a2)return _0x2708a2[_0xc7862c('0x28')](_0x5136c7[_0xc7862c('0x48')][_0xc7862c('0x79')],{'through':_[_0xc7862c('0x3b')](_0x5136c7['body'],['ids','id'])})[_0xc7862c('0x64')](function(_0x457cbd){const _0x199f11=_0xc7862c;for(let _0x577bc9=0x0;_0x577bc9<_0x5136c7[_0x199f11('0x48')][_0x199f11('0x79')][_0x199f11('0xa')];_0x577bc9+=0x1){socket[_0x199f11('0x6b')](_0x199f11('0x8d'),{'UserId':_0x5136c7['body'][_0x199f11('0x79')][_0x577bc9],'WhatsappAccountId':_0x5136c7[_0x199f11('0x65')]['id']});}return _0x457cbd;});})['then'](respondWithResult(_0x43336b,null))['catch'](handleError(_0x43336b,null));},exports[_0x2814dc('0x27')]=function(_0x15db3c,_0x187936){const _0x4568f0=_0x2814dc;return db[_0x4568f0('0x66')][_0x4568f0('0x29')]({'where':{'id':_0x15db3c[_0x4568f0('0x65')]['id']}})[_0x4568f0('0x64')](handleEntityNotFound(_0x187936,null))[_0x4568f0('0x64')](function(_0x3fe0a5){const _0xb5990f=_0x4568f0;if(_0x3fe0a5)return _0x3fe0a5[_0xb5990f('0x27')](_0x15db3c[_0xb5990f('0x7d')][_0xb5990f('0x79')])['then'](function(){const _0xb5afd4=_0xb5990f;if(_[_0xb5afd4('0x2c')](_0x15db3c[_0xb5afd4('0x7d')]['ids']))for(let _0xb95f67=0x0;_0xb95f67<_0x15db3c[_0xb5afd4('0x7d')][_0xb5afd4('0x79')][_0xb5afd4('0xa')];_0xb95f67+=0x1){socket['emit']('userWhatsappAccount:remove',{'UserId':Number(_0x15db3c['query'][_0xb5afd4('0x79')][_0xb95f67]),'WhatsappAccountId':Number(_0x15db3c[_0xb5afd4('0x65')]['id'])});}else socket[_0xb5afd4('0x6b')](_0xb5afd4('0x5d'),{'UserId':Number(_0x15db3c[_0xb5afd4('0x7d')]['ids']),'WhatsappAccountId':Number(_0x15db3c[_0xb5afd4('0x65')]['id'])});});})[_0x4568f0('0x64')](respondWithStatusCode(_0x187936,null))[_0x4568f0('0x34')](handleError(_0x187936,null));},exports[_0x2814dc('0x98')]=function(_0x27f167,_0x47f2c8){const _0x58595a=_0x2814dc;let _0x2c2efa={};const _0x126ccc={};let _0x2cef48,_0x12825b;return db[_0x58595a('0x66')][_0x58595a('0x29')]({'where':{'id':_0x27f167[_0x58595a('0x65')]['id']}})[_0x58595a('0x64')](handleEntityNotFound(_0x47f2c8,null))[_0x58595a('0x64')](function(_0x57a7f8){const _0x191343=_0x58595a;if(_0x57a7f8)return _0x2cef48=_0x57a7f8,_0x126ccc['model']=_['keys'](db[_0x191343('0x8a')][_0x191343('0x63')]),_0x126ccc['query']=_[_0x191343('0x69')](_0x27f167['query']),_0x126ccc[_0x191343('0xb')]=_['intersection'](_0x126ccc[_0x191343('0x4a')],_0x126ccc['query']),_0x2c2efa[_0x191343('0x84')]=_[_0x191343('0x7a')](_0x126ccc[_0x191343('0x4a')],qs[_0x191343('0x46')](_0x27f167[_0x191343('0x7d')]['fields'])),_0x2c2efa[_0x191343('0x84')]=_0x2c2efa[_0x191343('0x84')][_0x191343('0xa')]?_0x2c2efa['attributes']:_0x126ccc['model'],_0x2c2efa[_0x191343('0xd')]=qs[_0x191343('0x81')](_0x27f167['query'][_0x191343('0x81')]),_0x2c2efa[_0x191343('0x1e')]=qs[_0x191343('0xb')](_[_0x191343('0x6f')](_0x27f167[_0x191343('0x7d')],_0x126ccc[_0x191343('0xb')])),_0x27f167['query'][_0x191343('0x1a')]&&(_0x2c2efa[_0x191343('0x1e')]=_['merge'](_0x2c2efa[_0x191343('0x1e')],{[Op['or']]:_['map'](_0x2c2efa[_0x191343('0x84')],function(_0x568fa8){const _0x28dddb=_0x191343,_0x1a7441={};return _0x1a7441[_0x568fa8]={[Op[_0x28dddb('0x73')]]:'%'+_0x27f167['query'][_0x28dddb('0x1a')]+'%'},_0x1a7441;})})),_0x2c2efa=_['merge']({},_0x2c2efa,_0x27f167[_0x191343('0x2d')]),_0x2cef48[_0x191343('0x98')](_0x2c2efa);})[_0x58595a('0x64')](function(_0x2252a1){const _0x37465b=_0x58595a;if(_0x2252a1)return _0x12825b=_0x2252a1['length'],typeof _0x27f167[_0x37465b('0x7d')][_0x37465b('0x8c')]==='undefined'&&(_0x2c2efa[_0x37465b('0x38')]=qs['limit'](_0x27f167['query'][_0x37465b('0x38')]),_0x2c2efa[_0x37465b('0x4')]=qs[_0x37465b('0x4')](_0x27f167['query'][_0x37465b('0x4')])),_0x2cef48[_0x37465b('0x98')](_0x2c2efa);})['then'](function(_0xcbbc14){if(_0xcbbc14)return _0xcbbc14?{'count':_0x12825b,'rows':_0xcbbc14}:null;})['then'](respondWithResult(_0x47f2c8,null))[_0x58595a('0x34')](handleError(_0x47f2c8,null));},exports[_0x2814dc('0x3a')]=function(_0x13d856,_0xb6299d){const _0x48dca5=_0x2814dc;return db[_0x48dca5('0x66')]['findOne']({'where':{'id':_0x13d856['params']['id']}})[_0x48dca5('0x64')](handleEntityNotFound(_0xb6299d,null))[_0x48dca5('0x64')](function(_0x2efe99){const _0x20c884=_0x48dca5;if(_0x2efe99)return db[_0x20c884('0x78')][_0x20c884('0x25')](function(_0x149209){const _0x17f14e=_0x20c884;return db[_0x17f14e('0x61')]['destroy']({'where':{'WhatsappAccountId':_0x13d856['params']['id']},'transaction':_0x149209})[_0x17f14e('0x64')](function(){const _0x5c819f=_0x17f14e,_0x4ac5c9=_['map'](_0x13d856[_0x5c819f('0x48')],function(_0x4d58ac){const _0x2aa1aa=_0x5c819f;return _0x4d58ac[_0x2aa1aa('0x90')]=_0x13d856['params']['id'],_0x4d58ac;});return db['WhatsappApplication']['bulkCreate'](_0x4ac5c9,{'transaction':_0x149209});});})[_0x20c884('0x64')](function(){const _0x449470=_0x20c884;return db[_0x449470('0x61')]['findAndCountAll']({'where':{'WhatsappAccountId':_0x13d856[_0x449470('0x65')]['id']},'order':_0x449470('0x4b')});});})[_0x48dca5('0x64')](respondWithResult(_0xb6299d,null))['catch'](handleError(_0xb6299d,null));},exports[_0x2814dc('0x77')]=function(_0x4c55e2,_0x358a12){const _0x1b53bb=_0x2814dc;let _0x308059={};const _0x34483b={};let _0x4f6e42,_0x3c82af;return db['WhatsappAccount'][_0x1b53bb('0x29')]({'where':{'id':_0x4c55e2[_0x1b53bb('0x65')]['id']}})[_0x1b53bb('0x64')](handleEntityNotFound(_0x358a12,null))[_0x1b53bb('0x64')](function(_0x246062){const _0x41a37a=_0x1b53bb;if(_0x246062)return _0x4f6e42=_0x246062,_0x34483b[_0x41a37a('0x4a')]=_[_0x41a37a('0x69')](db['WhatsappApplication'][_0x41a37a('0x63')]),_0x34483b[_0x41a37a('0x7d')]=_[_0x41a37a('0x69')](_0x4c55e2[_0x41a37a('0x7d')]),_0x34483b[_0x41a37a('0xb')]=_[_0x41a37a('0x7a')](_0x34483b[_0x41a37a('0x4a')],_0x34483b[_0x41a37a('0x7d')]),_0x308059[_0x41a37a('0x84')]=_['intersection'](_0x34483b['model'],qs[_0x41a37a('0x46')](_0x4c55e2[_0x41a37a('0x7d')]['fields'])),_0x308059[_0x41a37a('0x84')]=_0x308059[_0x41a37a('0x84')]['length']?_0x308059[_0x41a37a('0x84')]:_0x34483b[_0x41a37a('0x4a')],_0x308059[_0x41a37a('0xd')]=qs[_0x41a37a('0x81')](_0x4c55e2[_0x41a37a('0x7d')][_0x41a37a('0x81')]),_0x308059[_0x41a37a('0x1e')]=qs[_0x41a37a('0xb')](_[_0x41a37a('0x6f')](_0x4c55e2['query'],_0x34483b['filters'])),_0x4c55e2[_0x41a37a('0x7d')][_0x41a37a('0x1a')]&&(_0x308059['where']=_[_0x41a37a('0x92')](_0x308059[_0x41a37a('0x1e')],{[Op['or']]:_[_0x41a37a('0x94')](_0x308059[_0x41a37a('0x84')],function(_0x2ebd46){const _0x5ec439=_0x41a37a,_0xef1766={};return _0xef1766[_0x2ebd46]={[Op[_0x5ec439('0x73')]]:'%'+_0x4c55e2[_0x5ec439('0x7d')][_0x5ec439('0x1a')]+'%'},_0xef1766;})})),_0x308059=_['merge']({},_0x308059,_0x4c55e2['options']),_0x4f6e42['getApplications'](_0x308059);})[_0x1b53bb('0x64')](function(_0x27b20e){const _0x212f9c=_0x1b53bb;if(_0x27b20e)return _0x3c82af=_0x27b20e[_0x212f9c('0xa')],typeof _0x4c55e2['query'][_0x212f9c('0x8c')]===_0x212f9c('0x51')&&(_0x308059[_0x212f9c('0x38')]=qs['limit'](_0x4c55e2['query'][_0x212f9c('0x38')]),_0x308059[_0x212f9c('0x4')]=qs[_0x212f9c('0x4')](_0x4c55e2[_0x212f9c('0x7d')][_0x212f9c('0x4')])),_0x4f6e42[_0x212f9c('0x77')](_0x308059);})[_0x1b53bb('0x64')](function(_0x5781ea){if(_0x5781ea)return _0x5781ea?{'count':_0x3c82af,'rows':_0x5781ea}:null;})[_0x1b53bb('0x64')](respondWithResult(_0x358a12,null))[_0x1b53bb('0x34')](handleError(_0x358a12,null));},exports['notify']=function(_0x1f35c0,_0x53c4b1){const _0x1a9d90=_0x2814dc,_0x539313={'channel':'whatsapp'};let _0x6d19c9=[],_0x4d0a58=[];const _0x4eace6={};return db[_0x1a9d90('0x66')]['findOne']({'where':{'id':_0x1f35c0['params']['id']},'include':[{'model':db['WhatsappApplication'],'as':_0x1a9d90('0x2a')}]})['then'](handleEntityNotFound(_0x53c4b1,null))[_0x1a9d90('0x64')](function(_0x53e85b){const _0x4521cb=_0x1a9d90;return _0x539313['account']=_0x53e85b,_0x539313[_0x4521cb('0x41')]=_['orderBy'](_0x53e85b[_0x4521cb('0x2a')],[_0x4521cb('0x4b')],['asc']),_0x539313['account'][_0x4521cb('0x2a')]&&delete _0x539313[_0x4521cb('0x8')][_0x4521cb('0x2a')],db[_0x4521cb('0x8b')]['describe']();})[_0x1a9d90('0x64')](function(_0x4b8dac){const _0x1b313b=_0x1a9d90;if(!_0x4b8dac)throw new ValidationError('no\x20available\x20attributes');_0x6d19c9=_[_0x1b313b('0x53')](_[_0x1b313b('0x69')](_0x4b8dac),[_0x1b313b('0x19'),_0x1b313b('0x35')]),_0x4d0a58=_[_0x1b313b('0x53')](_['keys'](_0x4b8dac),[_0x1b313b('0x19'),_0x1b313b('0x35'),_0x1b313b('0x40'),_0x1b313b('0x36')]),_0x539313[_0x1b313b('0x48')]={'mapKey':_0x1b313b('0x32')};_0x539313[_0x1b313b('0x8')][_0x1b313b('0x2f')]&&_0x539313[_0x1b313b('0x8')][_0x1b313b('0x2f')]==='twilio'&&(_0x539313[_0x1b313b('0x48')]['from']=_0x1f35c0[_0x1b313b('0x48')]['From'][_0x1b313b('0x44')](_0x1b313b('0x21'),''),_0x539313[_0x1b313b('0x48')]['body']=_0x1f35c0[_0x1b313b('0x48')][_0x1b313b('0xf')],_0x539313[_0x1b313b('0x48')][_0x1b313b('0x87')]=_0x1f35c0[_0x1b313b('0x48')]['MessageSid']);_0x539313[_0x1b313b('0x48')]['id']&&delete _0x539313['body']['id'];if(_['isNil'](_0x539313['body']['from']))throw new ValidationError(_0x1b313b('0x1f'));if(_[_0x1b313b('0x76')](_0x539313[_0x1b313b('0x48')][_0x1b313b('0x48')])||_0x539313[_0x1b313b('0x48')][_0x1b313b('0x48')]==='')throw new ValidationError(_0x1b313b('0x57'));if(_[_0x1b313b('0x76')](_0x539313[_0x1b313b('0x48')][_0x1b313b('0x1b')]))throw new ValidationError(_0x1b313b('0x1')+_0x4d0a58);if(!_[_0x1b313b('0x1d')](_0x4d0a58,_0x539313[_0x1b313b('0x48')][_0x1b313b('0x1b')]))throw new ValidationError(_0x1b313b('0x75')+_0x4d0a58);return _0x4eace6[_0x539313[_0x1b313b('0x48')][_0x1b313b('0x1b')]]=_0x539313['body'][_0x1b313b('0x72')],db[_0x1b313b('0x5e')][_0x1b313b('0x29')]({'where':{'id':_0x539313['account'][_0x1b313b('0x36')]},'include':[{'model':db[_0x1b313b('0x8b')],'as':_0x1b313b('0x3d'),'where':_0x4eace6,'limit':0x1,'order':[[_0x1b313b('0x35'),_0x1b313b('0x8e')]]}]});})[_0x1a9d90('0x64')](handleEntityNotFound(_0x53c4b1,null))[_0x1a9d90('0x64')](function(_0xd58717){const _0x341816=_0x1a9d90;if(_0xd58717){_0x539313[_0x341816('0x82')]=_[_0x341816('0x3b')](_0xd58717,['Contacts']);if(_0xd58717[_0x341816('0x3d')]['length'])return _0xd58717['Contacts'][0x0];const _0x1481ab=_[_0x341816('0x68')](_0x539313[_0x341816('0x48')],{'firstName':_0x539313[_0x341816('0x48')][_0x341816('0x72')],'ListId':_0xd58717['id']});return _0x1481ab[_0x539313['body'][_0x341816('0x1b')]]=_0x539313['body'][_0x341816('0x72')],db[_0x341816('0x8b')][_0x341816('0x7c')](_0x1481ab,{'fields':_0x6d19c9,'raw':!![]});}})['then'](handleEntityNotFound(_0x53c4b1,null))[_0x1a9d90('0x64')](function(_0x1b4eae){const _0x2b1135=_0x1a9d90;if(_0x1b4eae){_0x539313[_0x2b1135('0x60')]=_0x1b4eae;const _0x1ce21b={'ContactId':_0x1b4eae['id'],'phone':_0x539313['body']['from'],'WhatsappAccountId':_0x1f35c0[_0x2b1135('0x65')]['id']},_0x375c83={'ContactId':_0x1b4eae['id'],'WhatsappAccountId':_0x1f35c0[_0x2b1135('0x65')]['id'],'closed':![]};return db[_0x2b1135('0x6e')][_0x2b1135('0x29')]({'where':_0x375c83})['then'](function(_0x5a11e5){const _0x2fdf1b=_0x2b1135;if(_0x5a11e5)return[_0x5a11e5,![]];return db[_0x2fdf1b('0x6e')]['create'](_0x1ce21b)[_0x2fdf1b('0x64')](function(_0x16e7d7){return[_0x16e7d7,!![]];});});}})[_0x1a9d90('0x64')](function([_0x5f2be1,_0x3adf6f]){const _0x1cc155=_0x1a9d90;return _0x539313[_0x1cc155('0x23')]=_0x5f2be1[_0x1cc155('0x56')]({'plain':!![]}),_0x539313[_0x1cc155('0x23')][_0x1cc155('0x43')]=![],_0x3adf6f&&(_0x539313[_0x1cc155('0x8')][_0x1cc155('0x85')]&&_0x539313['applications']['push']({'id':0x0,'priority':_0x539313[_0x1cc155('0x41')][_0x1cc155('0xa')]+0x1,'app':_0x1cc155('0x74'),'appdata':_0x1cc155('0x9'),'interval':_0x1cc155('0x7b')}),_0x539313['interaction'][_0x1cc155('0x43')]=!![]),db[_0x1cc155('0x16')]['create']({'phone':_0x539313[_0x1cc155('0x48')][_0x1cc155('0x72')],'messageId':_0x539313[_0x1cc155('0x48')][_0x1cc155('0x87')],'body':_0x539313[_0x1cc155('0x48')][_0x1cc155('0x48')],'WhatsappAccountId':_0x1f35c0[_0x1cc155('0x65')]['id'],'WhatsappInteractionId':_0x5f2be1['id'],'direction':'in','ContactId':_0x5f2be1[_0x1cc155('0x2')],'AttachmentId':_0x539313[_0x1cc155('0x48')][_0x1cc155('0x93')]});})[_0x1a9d90('0x64')](function(_0x3acbd9){const _0x3ca22f=_0x1a9d90;_0x539313['message']=_0x3acbd9;if(_0x539313[_0x3ca22f('0x23')]['UserId'])return db[_0x3ca22f('0x8a')][_0x3ca22f('0x29')]({'attributes':['id',_0x3ca22f('0x59')],'where':{'id':_0x539313['interaction']['UserId']}})[_0x3ca22f('0x64')](function(_0x64e226){const _0x259147=_0x3ca22f;return _0x64e226&&_0x539313[_0x259147('0x41')][_0x259147('0x45')]({'id':0x0,'priority':0x0,'app':_0x259147('0x18'),'appdata':_0x64e226[_0x259147('0x59')]+','+(_0x539313['account'][_0x259147('0x2e')]||0xa),'interval':_0x259147('0x7b')}),respondWithRpcPromise(_0x259147('0x83'),_0x259147('0x62'),_0x539313);});return respondWithRpcPromise('Start','startRouting',_0x539313);})['then'](function(_0x4b750a){const _0x4e5c87=_0x1a9d90;if(_0x4b750a){const _0x7fac56=0xc8,_0xcfb546=_0x4e5c87('0x54');return logger[_0x4e5c87('0x12')](_0x4e5c87('0x33'),_0xcfb546,_0x7fac56,'entity\x20found'),logger[_0x4e5c87('0x91')]('WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0xcfb546,_0x7fac56,_0x4e5c87('0x37'),JSON[_0x4e5c87('0x4c')](_0x4b750a)),_0x539313[_0x4e5c87('0x8')][_0x4e5c87('0x2f')]==='twilio'?_0x53c4b1[_0x4e5c87('0x97')](_0x7fac56)[_0x4e5c87('0x4e')](_0x4e5c87('0x24'),_0x4e5c87('0x11'))['send']('\x0a'):_0x53c4b1[_0x4e5c87('0x97')](_0x7fac56)[_0x4e5c87('0x86')](_0x4b750a);}})[_0x1a9d90('0x34')](handleError(_0x53c4b1,null));},exports[_0x2814dc('0x50')]=function(_0x2d7218,_0x30378){const _0x2b080b=_0x2814dc;let _0x4a959b,_0x18dea1;if(_[_0x2b080b('0x76')](_0x2d7218[_0x2b080b('0x48')][_0x2b080b('0x48')])||_0x2d7218[_0x2b080b('0x48')][_0x2b080b('0x48')]==='')throw new ValidationError(_0x2b080b('0x57'));if(_['isNil'](_0x2d7218[_0x2b080b('0x48')]['to']))throw new ValidationError(_0x2b080b('0x6c'));const _0x1292b8=_0x2d7218[_0x2b080b('0x48')]['to'];return db['WhatsappAccount'][_0x2b080b('0x29')]({'where':{'id':_0x2d7218[_0x2b080b('0x65')]['id']},'include':[{'model':db[_0x2b080b('0x5e')],'as':_0x2b080b('0x89'),'include':[{'model':db[_0x2b080b('0x8b')],'as':_0x2b080b('0x3d'),'where':{'mobile':_0x1292b8},'limit':0x1,'order':[['updatedAt',_0x2b080b('0x8e')]]}]}]})['then'](handleEntityNotFound(_0x30378,null))[_0x2b080b('0x64')](function(_0x362b96){const _0x12e677=_0x2b080b;if(_0x362b96&&_0x362b96[_0x12e677('0x89')]){_0x4a959b=_0x362b96[_0x12e677('0x56')]({'plain':!![]});if(_0x4a959b[_0x12e677('0x89')]&&_0x4a959b[_0x12e677('0x89')]['Contacts'][_0x12e677('0xa')])return _0x4a959b[_0x12e677('0x89')][_0x12e677('0x3d')][0x0];return db[_0x12e677('0x8b')]['create'](_[_0x12e677('0x68')](_0x2d7218[_0x12e677('0x48')],{'firstName':_0x1292b8,'mobile':_0x1292b8,'phone':_0x1292b8,'ListId':_0x4a959b[_0x12e677('0x36')]}));}})['then'](handleEntityNotFound(_0x30378,null))[_0x2b080b('0x64')](function(_0x41e4e1){const _0x489153=_0x2b080b;if(_0x41e4e1)return _0x18dea1=_0x41e4e1,db[_0x489153('0x6e')]['findOne']({'where':{'ContactId':_0x18dea1['id'],'closed':![],'WhatsappAccountId':_0x4a959b['id']}})[_0x489153('0x64')](function(_0xfac8fc){const _0x2f84d6=_0x489153;if(_0xfac8fc)return[_0xfac8fc,![]];return db[_0x2f84d6('0x6e')][_0x2f84d6('0x7c')]({'UserId':_0x2d7218[_0x2f84d6('0x67')]['id'],'ContactId':_0x18dea1['id'],'WhatsappAccountId':_0x4a959b['id'],'phone':_0x1292b8,'firstMsgDirection':_0x2f84d6('0x88'),'Messages':[_[_0x2f84d6('0x92')](_0x2d7218['body'],{'read':![],'body':_0x2d7218[_0x2f84d6('0x48')]['body'],'phone':_0x1292b8,'WhatsappAccountId':_0x4a959b['id'],'UserId':_0x2d7218['user']['id'],'ContactId':_0x18dea1['id']})]},{'include':[{'model':db[_0x2f84d6('0x16')],'as':_0x2f84d6('0x3e')}]})['then'](function(_0x250790){return[_0x250790,!![]];});});})[_0x2b080b('0x64')](function([_0x4d3999,_0x445b60]){const _0x1953c6=_0x2b080b;if(_0x445b60)return _0x4d3999;return db['WhatsappMessage'][_0x1953c6('0x7c')](_[_0x1953c6('0x92')](_0x2d7218[_0x1953c6('0x48')],{'read':![],'body':_0x2d7218[_0x1953c6('0x48')][_0x1953c6('0x48')],'phone':_0x1292b8,'WhatsappAccountId':_0x4a959b['id'],'WhatsappInteractionId':_0x4d3999['id'],'UserId':_0x2d7218['user']['id'],'ContactId':_0x18dea1['id']}))[_0x1953c6('0x64')](function(_0x49100f){const _0x216e74=_0x1953c6;return _0x4d3999[_0x216e74('0x17')]['Messages']=[],_0x4d3999[_0x216e74('0x17')][_0x216e74('0x3e')]['push'](_0x49100f[_0x216e74('0x17')]),_0x4d3999;});})[_0x2b080b('0x64')](respondWithResult(_0x30378,null))[_0x2b080b('0x34')](handleError(_0x30378,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index a291c2f..4157a19 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a784_0x5e07=['exports','undefined','setMaxListeners','save','remove','events','update','addHook','emit','WhatsappAccount'];(function(_0x323b56,_0x5e07fb){const _0x5af139=function(_0x363900){while(--_0x363900){_0x323b56['push'](_0x323b56['shift']());}};_0x5af139(++_0x5e07fb);}(a784_0x5e07,0xe6));const a784_0x5af1=function(_0x323b56,_0x5e07fb){_0x323b56=_0x323b56-0x0;let _0x5af139=a784_0x5e07[_0x323b56];return _0x5af139;};const _0x35ac8e=a784_0x5af1;'use strict';const EventEmitter=require(_0x35ac8e('0x5')),WhatsappAccount=require('../../mysqldb')['db'][_0x35ac8e('0x9')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x35ac8e('0x2')](0x0);const events={'afterCreate':_0x35ac8e('0x3'),'afterUpdate':_0x35ac8e('0x6'),'afterDestroy':_0x35ac8e('0x4')};function emitEvent(_0x363900){return function(_0x9851bb){const _0x14a7e9=a784_0x5af1;WhatsappAccountEvents['emit'](_0x363900+':'+_0x9851bb['id'],_0x9851bb),WhatsappAccountEvents[_0x14a7e9('0x8')](_0x363900,_0x9851bb);};}for(const e in events){if(typeof events[e]!==_0x35ac8e('0x1')){const event=events[e];WhatsappAccount[_0x35ac8e('0x7')](e,emitEvent(event));}}module[_0x35ac8e('0x0')]=WhatsappAccountEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index e8b0e9a..873a63b 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a785_0x4030=['WhatsappAccount','./whatsappAccount.attributes','define'];(function(_0x2081c6,_0x403036){const _0x3a9fd2=function(_0x33b128){while(--_0x33b128){_0x2081c6['push'](_0x2081c6['shift']());}};_0x3a9fd2(++_0x403036);}(a785_0x4030,0xef));const a785_0x3a9f=function(_0x2081c6,_0x403036){_0x2081c6=_0x2081c6-0x0;let _0x3a9fd2=a785_0x4030[_0x2081c6];return _0x3a9fd2;};const _0x5f22e7=a785_0x3a9f;'use strict';const attributes=require(_0x5f22e7('0x2'));module['exports']=function(_0x33b128){const _0x3367e7=_0x5f22e7,_0x5e7007=_0x33b128[_0x3367e7('0x0')](_0x3367e7('0x1'),attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e7007;}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index 9ac0447..486280a 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a786_0x459f=['model','../../config/logger','info','register','raw','findOne','then','attributes','error','./whatsappAccount.socket','options','message','ShowWhatsappAccount','stringify','lodash','rpc','../../mysqldb','debug','include'];(function(_0x4d1b1e,_0x459f8e){const _0xba272b=function(_0x265813){while(--_0x265813){_0x4d1b1e['push'](_0x4d1b1e['shift']());}};_0xba272b(++_0x459f8e);}(a786_0x459f,0x192));const a786_0xba27=function(_0x4d1b1e,_0x459f8e){_0x4d1b1e=_0x4d1b1e-0x0;let _0xba272b=a786_0x459f[_0x4d1b1e];return _0xba272b;};const _0x517f42=a786_0xba27;'use strict';const db=require(_0x517f42('0xd'))['db'],logger=require(_0x517f42('0x11'))(_0x517f42('0xc')),_=require(_0x517f42('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x517f42('0x6'))[_0x517f42('0x0')](socket),exports[_0x517f42('0x9')]=function(_0x265813){const _0x2c084a=this;return new Promise(function(_0x381ae4,_0x1c2c2){const _0xc0cb97=a786_0xba27;return db['WhatsappAccount'][_0xc0cb97('0x2')]({'raw':_0x265813[_0xc0cb97('0x7')]?_0x265813[_0xc0cb97('0x7')][_0xc0cb97('0x1')]===undefined?!![]:![]:!![],'where':_0x265813['options']?_0x265813[_0xc0cb97('0x7')]['where']||null:null,'attributes':_0x265813[_0xc0cb97('0x7')]?_0x265813[_0xc0cb97('0x7')][_0xc0cb97('0x4')]||null:null,'include':_0x265813['options']?_0x265813[_0xc0cb97('0x7')][_0xc0cb97('0xf')]?_['map'](_0x265813['options'][_0xc0cb97('0xf')],function(_0x44e8b9){const _0x3f6001=_0xc0cb97;return{'model':db[_0x44e8b9[_0x3f6001('0x10')]],'as':_0x44e8b9['as'],'attributes':_0x44e8b9[_0x3f6001('0x4')],'include':_0x44e8b9[_0x3f6001('0xf')]?_['map'](_0x44e8b9[_0x3f6001('0xf')],function(_0x55a2a4){const _0x2f4b78=_0x3f6001;return{'model':db[_0x55a2a4['model']],'as':_0x55a2a4['as'],'attributes':_0x55a2a4[_0x2f4b78('0x4')],'include':_0x55a2a4[_0x2f4b78('0xf')]?_['map'](_0x55a2a4[_0x2f4b78('0xf')],function(_0x6ed4fe){const _0x7deeaa=_0x2f4b78;return{'model':db[_0x6ed4fe[_0x7deeaa('0x10')]],'as':_0x6ed4fe['as'],'attributes':_0x6ed4fe[_0x7deeaa('0x4')]};}):[]};}):[]};}):[]:[]})[_0xc0cb97('0x3')](function(_0x5868f0){const _0x279167=_0xc0cb97;logger[_0x279167('0x12')](_0x279167('0x9'),_0x265813),logger[_0x279167('0xe')](_0x279167('0x9'),_0x265813,JSON[_0x279167('0xa')](_0x5868f0)),_0x381ae4(_0x5868f0);})['catch'](function(_0x16e91a){const _0x159ed2=_0xc0cb97;logger[_0x159ed2('0x5')](_0x159ed2('0x9'),_0x16e91a[_0x159ed2('0x8')],_0x265813),_0x1c2c2(_0x2c084a[_0x159ed2('0x5')](0x1f4,_0x16e91a[_0x159ed2('0x8')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index f75b913..1c18621 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a787_0x5c5d=['register','update','save','emit','whatsappAccount:','remove'];(function(_0x47325a,_0x5c5d0f){const _0x3c51eb=function(_0x568611){while(--_0x568611){_0x47325a['push'](_0x47325a['shift']());}};_0x3c51eb(++_0x5c5d0f);}(a787_0x5c5d,0x70));const a787_0x3c51=function(_0x47325a,_0x5c5d0f){_0x47325a=_0x47325a-0x0;let _0x3c51eb=a787_0x5c5d[_0x47325a];return _0x3c51eb;};const _0x2ea488=a787_0x3c51;'use strict';const WhatsappAccountEvents=require('./whatsappAccount.events'),events=[_0x2ea488('0x4'),_0x2ea488('0x1'),_0x2ea488('0x3')];function createListener(_0x568611,_0x165bbb){return function(_0x477fe4){const _0x464b0c=a787_0x3c51;_0x165bbb[_0x464b0c('0x5')](_0x568611,_0x477fe4);};}exports[_0x2ea488('0x2')]=function(_0x4cf1d2){const _0x4e7762=_0x2ea488;for(let _0x492081=0x0,_0x40b13f=events['length'];_0x492081<_0x40b13f;_0x492081++){const _0xe31aa=events[_0x492081],_0x434f8b=createListener(_0x4e7762('0x0')+_0xe31aa,_0x4cf1d2);WhatsappAccountEvents['on'](_0xe31aa,_0x434f8b);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index cd4f51e..050e7c5 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a788_0x39f2=['put','delete','show','./whatsappApplication.controller','get','destroy','isAuthenticated','Router','post','../../components/auth/service','index','/:id','express','exports'];(function(_0x38d44f,_0x39f2d4){const _0x104906=function(_0x2ead42){while(--_0x2ead42){_0x38d44f['push'](_0x38d44f['shift']());}};_0x104906(++_0x39f2d4);}(a788_0x39f2,0x65));const a788_0x1049=function(_0x38d44f,_0x39f2d4){_0x38d44f=_0x38d44f-0x0;let _0x104906=a788_0x39f2[_0x38d44f];return _0x104906;};const _0x480271=a788_0x1049;'use strict';const express=require(_0x480271('0x9')),router=express[_0x480271('0x4')](),auth=require(_0x480271('0x6')),controller=require(_0x480271('0x0'));router['get']('/',auth[_0x480271('0x3')](),controller[_0x480271('0x7')]),router[_0x480271('0x1')]('/:id',auth[_0x480271('0x3')](),controller[_0x480271('0xd')]),router[_0x480271('0x5')]('/',auth[_0x480271('0x3')](),controller['create']),router[_0x480271('0xb')](_0x480271('0x8'),auth[_0x480271('0x3')](),controller['update']),router[_0x480271('0xc')](_0x480271('0x8'),auth[_0x480271('0x3')](),controller[_0x480271('0x2')]),module[_0x480271('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.attributes.js b/server/api/whatsappApplication/whatsappApplication.attributes.js index dd4e853..a762437 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a789_0x2c58=['INTEGER','noop','*,*,*,*','sequelize','TEXT','STRING'];(function(_0x39acc9,_0x2c58df){const _0xa0f1c3=function(_0x3459ba){while(--_0x3459ba){_0x39acc9['push'](_0x39acc9['shift']());}};_0xa0f1c3(++_0x2c58df);}(a789_0x2c58,0x10f));const a789_0xa0f1=function(_0x39acc9,_0x2c58df){_0x39acc9=_0x39acc9-0x0;let _0xa0f1c3=a789_0x2c58[_0x39acc9];return _0xa0f1c3;};const _0x3f61ef=a789_0xa0f1;'use strict';const Sequelize=require(_0x3f61ef('0x2'));module['exports']={'priority':{'type':Sequelize[_0x3f61ef('0x5')],'allowNull':![]},'app':{'type':Sequelize[_0x3f61ef('0x4')],'allowNull':![],'defaultValue':_0x3f61ef('0x0')},'appdata':{'type':Sequelize[_0x3f61ef('0x3')]()},'description':{'type':Sequelize[_0x3f61ef('0x4')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x3f61ef('0x1')}}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index 0d3e69d..805f2dc 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a790_0xc3cb=['sequelize','count','offset','findOne','WhatsappApplication','index','fieldName','then','set','../../config/logger','where','options','attributes','sort','catch','rawAttributes','fields','filters','stack','api','like','end','map','params','model','send','type','name','merge','query','nolimit','undefined','../../components/parsers/qs','create','intersection','order','include','destroy','limit','Content-Range','key','json','keys','status','show','VIRTUAL','update','findAll','length','includeAll','lodash','body','filter'];(function(_0x3b3c21,_0xc3cb06){const _0x18d932=function(_0x21f73a){while(--_0x21f73a){_0x3b3c21['push'](_0x3b3c21['shift']());}};_0x18d932(++_0xc3cb06);}(a790_0xc3cb,0x10b));const a790_0x18d9=function(_0x3b3c21,_0xc3cb06){_0x3b3c21=_0x3b3c21-0x0;let _0x18d932=a790_0xc3cb[_0x3b3c21];return _0x18d932;};const _0x5f35bc=a790_0x18d9;'use strict';const _=require(_0x5f35bc('0x30')),qs=require(_0x5f35bc('0x1e')),logger=require(_0x5f35bc('0x7'))(_0x5f35bc('0x11')),db=require('../../mysqldb')['db'],{Op}=require(_0x5f35bc('0x33'));function respondWithResult(_0x21f73a,_0x26dc2d){return _0x26dc2d=_0x26dc2d||0xc8,function(_0x65763f){const _0x2f2e07=a790_0x18d9;if(_0x65763f)return _0x21f73a[_0x2f2e07('0x29')](_0x26dc2d)['json'](_0x65763f);};}function respondWithFilteredResult(_0x4503fe,_0x35ab2e){return function(_0x5d987d){const _0x154806=a790_0x18d9;if(_0x5d987d){const _0x443480=_0x5d987d[_0x154806('0x34')],_0x42e18a=_0x35ab2e[_0x154806('0x0')];let _0x2f5ff1=_0x35ab2e['offset']+_0x35ab2e[_0x154806('0x24')],_0x4e8122;return _0x2f5ff1>=_0x443480?(_0x2f5ff1=_0x443480,_0x4e8122=0xc8):_0x4e8122=0xce,_0x4503fe[_0x154806('0x29')](_0x4e8122),_0x4503fe[_0x154806('0x6')](_0x154806('0x25'),_0x42e18a+'-'+_0x2f5ff1+'/'+_0x443480)[_0x154806('0x27')](_0x5d987d);}return null;};}function saveUpdates(_0x3166d7){return function(_0x1432cb){const _0xbbdae5=a790_0x18d9;if(_0x1432cb)return _0x1432cb[_0xbbdae5('0x2c')](_0x3166d7)['then'](function(_0x2514f4){return _0x2514f4;});return null;};}function removeEntity(_0x4b4752){return function(_0x1f406e){const _0xb1ccf5=a790_0x18d9;if(_0x1f406e)return _0x1f406e[_0xb1ccf5('0x23')]()[_0xb1ccf5('0x5')](function(){const _0x3d5723=_0xb1ccf5;_0x4b4752['status'](0xcc)[_0x3d5723('0x13')]();});};}function handleEntityNotFound(_0x283178){return function(_0x2cb551){return!_0x2cb551&&_0x283178['sendStatus'](0x194),_0x2cb551;};}function handleError(_0x1df8ff,_0xf9d113){return _0xf9d113=_0xf9d113||0x1f4,function(_0x5a8ef7){const _0x3b50ed=a790_0x18d9;logger['error'](_0x5a8ef7[_0x3b50ed('0x10')]),_0x5a8ef7[_0x3b50ed('0x19')]&&delete _0x5a8ef7[_0x3b50ed('0x19')],_0x1df8ff[_0x3b50ed('0x29')](_0xf9d113)[_0x3b50ed('0x17')](_0x5a8ef7);};}exports[_0x5f35bc('0x3')]=function(_0x183aca,_0x14b898){const _0x2ef921=_0x5f35bc;let _0xe9168b={};const _0x34cc5e={},_0x563a82={'count':0x0,'rows':[]},_0x2f0bb0=_['map'](db[_0x2ef921('0x2')]['rawAttributes'],function(_0xa5ab79){const _0x2a917d=_0x2ef921;return{'name':_0xa5ab79[_0x2a917d('0x4')],'type':_0xa5ab79[_0x2a917d('0x18')][_0x2a917d('0x26')]};});_0x34cc5e['model']=_[_0x2ef921('0x14')](_0x2f0bb0,_0x2ef921('0x19')),_0x34cc5e[_0x2ef921('0x1b')]=_['keys'](_0x183aca[_0x2ef921('0x1b')]),_0x34cc5e[_0x2ef921('0xf')]=_['intersection'](_0x34cc5e[_0x2ef921('0x16')],_0x34cc5e[_0x2ef921('0x1b')]),_0xe9168b['attributes']=_[_0x2ef921('0x20')](_0x34cc5e[_0x2ef921('0x16')],qs[_0x2ef921('0xe')](_0x183aca[_0x2ef921('0x1b')]['fields'])),_0xe9168b[_0x2ef921('0xa')]=_0xe9168b[_0x2ef921('0xa')][_0x2ef921('0x2e')]?_0xe9168b[_0x2ef921('0xa')]:_0x34cc5e[_0x2ef921('0x16')];typeof _0x183aca[_0x2ef921('0x1b')][_0x2ef921('0x1c')]===_0x2ef921('0x1d')&&(_0xe9168b[_0x2ef921('0x24')]=qs[_0x2ef921('0x24')](_0x183aca['query'][_0x2ef921('0x24')]),_0xe9168b['offset']=qs[_0x2ef921('0x0')](_0x183aca[_0x2ef921('0x1b')][_0x2ef921('0x0')]));_0xe9168b[_0x2ef921('0x21')]=qs[_0x2ef921('0xb')](_0x183aca[_0x2ef921('0x1b')][_0x2ef921('0xb')]),_0xe9168b[_0x2ef921('0x8')]=qs[_0x2ef921('0xf')](_['pick'](_0x183aca[_0x2ef921('0x1b')],_0x34cc5e[_0x2ef921('0xf')]),_0x2f0bb0);_0x183aca[_0x2ef921('0x1b')][_0x2ef921('0x32')]&&(_0xe9168b['where']=_[_0x2ef921('0x1a')](_0xe9168b[_0x2ef921('0x8')],{[Op['or']]:_[_0x2ef921('0x14')](_0x2f0bb0,function(_0x5e40ac){const _0x4e6161=_0x2ef921;if(_0x5e40ac['type']!==_0x4e6161('0x2b')){const _0x15c812={};return _0x15c812[_0x5e40ac[_0x4e6161('0x19')]]={[Op[_0x4e6161('0x12')]]:'%'+_0x183aca[_0x4e6161('0x1b')][_0x4e6161('0x32')]+'%'},_0x15c812;}})}));_0xe9168b=_['merge']({},_0xe9168b,_0x183aca[_0x2ef921('0x9')]);const _0x15a41f={'where':_0xe9168b[_0x2ef921('0x8')]};return db[_0x2ef921('0x2')][_0x2ef921('0x34')](_0x15a41f)['then'](function(_0x2a8008){const _0x35be11=_0x2ef921;return _0x563a82[_0x35be11('0x34')]=_0x2a8008,_0x183aca[_0x35be11('0x1b')][_0x35be11('0x2f')]&&(_0xe9168b[_0x35be11('0x22')]=[{'all':!![]}]),db[_0x35be11('0x2')][_0x35be11('0x2d')](_0xe9168b);})[_0x2ef921('0x5')](function(_0x1efa6f){return _0x563a82['rows']=_0x1efa6f,_0x563a82;})[_0x2ef921('0x5')](respondWithFilteredResult(_0x14b898,_0xe9168b))[_0x2ef921('0xc')](handleError(_0x14b898,null));},exports[_0x5f35bc('0x2a')]=function(_0x2050d6,_0x1e481f){const _0x3e49fc=_0x5f35bc;let _0xd90254={'raw':!![],'where':{'id':_0x2050d6[_0x3e49fc('0x15')]['id']}};const _0x4fbf67={};return _0x4fbf67[_0x3e49fc('0x16')]=_[_0x3e49fc('0x28')](db[_0x3e49fc('0x2')][_0x3e49fc('0xd')]),_0x4fbf67[_0x3e49fc('0x1b')]=_[_0x3e49fc('0x28')](_0x2050d6['query']),_0x4fbf67[_0x3e49fc('0xf')]=_[_0x3e49fc('0x20')](_0x4fbf67[_0x3e49fc('0x16')],_0x4fbf67[_0x3e49fc('0x1b')]),_0xd90254['attributes']=_[_0x3e49fc('0x20')](_0x4fbf67['model'],qs[_0x3e49fc('0xe')](_0x2050d6[_0x3e49fc('0x1b')][_0x3e49fc('0xe')])),_0xd90254['attributes']=_0xd90254[_0x3e49fc('0xa')]['length']?_0xd90254[_0x3e49fc('0xa')]:_0x4fbf67['model'],_0x2050d6[_0x3e49fc('0x1b')][_0x3e49fc('0x2f')]&&(_0xd90254['include']=[{'all':!![]}]),_0xd90254=_[_0x3e49fc('0x1a')]({},_0xd90254,_0x2050d6['options']),db[_0x3e49fc('0x2')][_0x3e49fc('0x1')](_0xd90254)[_0x3e49fc('0x5')](handleEntityNotFound(_0x1e481f,null))['then'](respondWithResult(_0x1e481f,null))[_0x3e49fc('0xc')](handleError(_0x1e481f,null));},exports['create']=function(_0x16f6f2,_0x1d51ae){const _0x3a3031=_0x5f35bc;return db[_0x3a3031('0x2')][_0x3a3031('0x1f')](_0x16f6f2[_0x3a3031('0x31')],{})[_0x3a3031('0x5')](respondWithResult(_0x1d51ae,0xc9))[_0x3a3031('0xc')](handleError(_0x1d51ae,null));},exports['update']=function(_0x5c5d4c,_0x41f50b){const _0x331247=_0x5f35bc;return _0x5c5d4c[_0x331247('0x31')]['id']&&delete _0x5c5d4c[_0x331247('0x31')]['id'],db['WhatsappApplication'][_0x331247('0x1')]({'where':{'id':_0x5c5d4c['params']['id']}})[_0x331247('0x5')](handleEntityNotFound(_0x41f50b,null))[_0x331247('0x5')](saveUpdates(_0x5c5d4c['body'],null))[_0x331247('0x5')](respondWithResult(_0x41f50b,null))[_0x331247('0xc')](handleError(_0x41f50b,null));},exports[_0x5f35bc('0x23')]=function(_0x268817,_0x1d9bbd){const _0x5ba370=_0x5f35bc;return db[_0x5ba370('0x2')][_0x5ba370('0x1')]({'where':{'id':_0x268817[_0x5ba370('0x15')]['id']}})['then'](handleEntityNotFound(_0x1d9bbd,null))['then'](removeEntity(_0x1d9bbd,null))[_0x5ba370('0xc')](handleError(_0x1d9bbd,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index c42268a..0623597 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a791_0x548a=['./whatsappApplication.attributes','utf8mb4_unicode_ci','whatsapp_applications','utf8mb4','exports'];(function(_0x14805d,_0x548a5a){const _0xa01dc=function(_0x30b855){while(--_0x30b855){_0x14805d['push'](_0x14805d['shift']());}};_0xa01dc(++_0x548a5a);}(a791_0x548a,0x111));const a791_0xa01d=function(_0x14805d,_0x548a5a){_0x14805d=_0x14805d-0x0;let _0xa01dc=a791_0x548a[_0x14805d];return _0xa01dc;};const _0x31792f=a791_0xa01d;'use strict';const attributes=require(_0x31792f('0x2'));module[_0x31792f('0x1')]=function(_0x30b855){const _0x4d489d=_0x31792f,_0x18b8f3=_0x30b855['define']('WhatsappApplication',attributes,{'tableName':_0x4d489d('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4d489d('0x0'),'collate':_0x4d489d('0x3')});return _0x18b8f3;}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index 671cc37..672e71e 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a792_0x53a4=['create','whatsappinteraction:addtags','Router','addMessage','describe','express','index','/:id/tags','exports','update','../../components/auth/service','isAuthenticated','../../components/interaction/service','whatsappinteraction:destroy','addTags','whatsappinteraction:update','put','/:id','get','removeTags','tracked','post','whatsapp','delete','./whatsappInteraction.controller'];(function(_0x18bf8e,_0x53a457){const _0x4ef2c5=function(_0x85110){while(--_0x85110){_0x18bf8e['push'](_0x18bf8e['shift']());}};_0x4ef2c5(++_0x53a457);}(a792_0x53a4,0xaa));const a792_0x4ef2=function(_0x18bf8e,_0x53a457){_0x18bf8e=_0x18bf8e-0x0;let _0x4ef2c5=a792_0x53a4[_0x18bf8e];return _0x4ef2c5;};const _0xbc065b=a792_0x4ef2;'use strict';const express=require(_0xbc065b('0xa')),router=express[_0xbc065b('0x7')](),auth=require(_0xbc065b('0xf')),interaction=require(_0xbc065b('0x11')),controller=require(_0xbc065b('0x4'));router['get']('/',auth[_0xbc065b('0x10')](),controller[_0xbc065b('0xb')]),router[_0xbc065b('0x17')]('/describe',auth[_0xbc065b('0x10')](),controller[_0xbc065b('0x9')]),router[_0xbc065b('0x17')]('/:id',auth[_0xbc065b('0x10')](),controller['show']),router[_0xbc065b('0x17')]('/:id/messages',auth['isAuthenticated'](),controller['getMessages']),router[_0xbc065b('0x17')]('/:id/download',auth[_0xbc065b('0x10')](),controller['download']),router[_0xbc065b('0x1')]('/',auth['isAuthenticated'](),controller[_0xbc065b('0x5')]),router[_0xbc065b('0x1')]('/:id/messages',auth[_0xbc065b('0x10')](),controller[_0xbc065b('0x8')]),router['post'](_0xbc065b('0xc'),auth[_0xbc065b('0x10')](),interaction[_0xbc065b('0x0')](_0xbc065b('0x2'),_0xbc065b('0x6')),controller[_0xbc065b('0x13')]),router[_0xbc065b('0x15')](_0xbc065b('0x16'),auth['isAuthenticated'](),interaction['tracked'](_0xbc065b('0x2'),_0xbc065b('0x14')),controller[_0xbc065b('0xe')]),router[_0xbc065b('0x3')](_0xbc065b('0x16'),auth[_0xbc065b('0x10')](),interaction['tracked']('whatsapp',_0xbc065b('0x12')),controller['destroy']),router[_0xbc065b('0x3')](_0xbc065b('0xc'),auth[_0xbc065b('0x10')](),controller[_0xbc065b('0x18')]),module[_0xbc065b('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index beb8b14..a8195e9 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a793_0x482a=['STRING','DATE','out','ENUM'];(function(_0xe86b87,_0x482ab6){const _0x5cc923=function(_0x4d7e89){while(--_0x4d7e89){_0xe86b87['push'](_0xe86b87['shift']());}};_0x5cc923(++_0x482ab6);}(a793_0x482a,0x19e));const a793_0x5cc9=function(_0xe86b87,_0x482ab6){_0xe86b87=_0xe86b87-0x0;let _0x5cc923=a793_0x482a[_0xe86b87];return _0x5cc923;};const _0x391078=a793_0x5cc9;'use strict';const Sequelize=require('sequelize');module['exports']={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x391078('0x2')]},'secondDisposition':{'type':Sequelize[_0x391078('0x2')]},'thirdDisposition':{'type':Sequelize[_0x391078('0x2')]},'note':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0x391078('0x2')]},'read1stAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x391078('0x1')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x391078('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x391078('0x1')]('in',_0x391078('0x0')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index 4788518..985a442 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a794_0x44a4=['compact','WhatsappInteractionId','rawAttributes','Tag','filter','lodash','path','push','t.id\x20IN\x20?','createdAt','include','findOne','options','CmContact','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','tools_tags','parse','downloadInteraction.html','o.fullname','Account','forEach','i.id\x20LIKE\x20?','c.phone','set','body','\x20=\x20?','attachments','Contact.mobile','closed','ContactId','api','Contact.phone','u.id','whatsapp_messages','ejs','html-pdf','isEmpty','user','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','group','merge','value','i.id','tag','unreadMessages','log','attributes','omit','select','create','SELECT','`unreadMessages`\x20=\x200','`\x20>\x200','sequelize','c.fax','groupBy','getMessages','WhatsappAccountId','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','\x0a\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','filters','emit','Owner.fullname','unix','having','createWriteStream','name','join','whatsapp_accounts','.pdf','i.WhatsappAccountId\x20IN\x20?','createReadStream','operator','lastName','WhatsappMessage','rimraf','../../components/parsers/advancedSearch','views','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','text','then','$lte','closedAt','intersection','search','removeTags','Contact','firstName','sendStatus','params','ui.WhatsappInteractionId','basename','fullname','pick','WhatsappInteraction','unlinkSync','whatsapp_interactions','nolimit','like','includeAll','concat','sqlOperator','../../components/parsers/qs','addMessage','40px','isArray','secret','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','Users','where','mkdirSync','type','%s\x20#%d','YYYY-MM-DD\x20HH:mm:ss','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','json','c.firstName','direction','isNumeric','count','$gte','WhatsappAccount','map','undefined','ui.WhatsappInteractionId\x20IN\x20?','rows','server','query','a.id\x20=\x20i.WhatsappAccountId','o.internal','files','i.phone\x20LIKE\x20?','model','getFullTextValue','user_has_whatsapp_interactions','UserId','findAll','c.mobile','end','`\x20=\x200','it.WhatsappInteractionId\x20=\x20i.id','find','color','Whatsapp','a.key','TagIds','field','null','download','tmp','Tags','replace','N.A.','format','existsSync','stack','Owner.internal','gte','whatsapp_interaction_has_tags','sort','users','status','$substring','index','QueryTypes','catch','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','fields','parseSearch','err','`unreadMessages`\x20>\x200','i.WhatsappAccountId\x20IS\x20NULL','me.WhatsappInteractionId\x20=\x20i.id','limit','destroy','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','DESC','System','keys','expr','update','all','conditions','c.lastName','10px','register','keyBy','toString','offset','left_join','disposition','../../rediscache','root','order','Attachment','o.id\x20=\x20i.UserId','Contact.email','Contact.fax','from','Owner','YYYY-MM-DD','./whatsappInteraction.socket','split','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','buildExpression','User','fieldName','journey','start','length','\x0a\x20\x20\x20\x20\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','ids','../../mysqldb','show','Messages','union','i.*','read','describe','30px','whatsappInteractionTags:save','u.id\x20=\x20ui.UserId'];(function(_0x1eed8d,_0x44a409){const _0x545038=function(_0x203854){while(--_0x203854){_0x1eed8d['push'](_0x1eed8d['shift']());}};_0x545038(++_0x44a409);}(a794_0x44a4,0x7b));const a794_0x5450=function(_0x1eed8d,_0x44a409){_0x1eed8d=_0x1eed8d-0x0;let _0x545038=a794_0x44a4[_0x1eed8d];return _0x545038;};const _0x75fc04=a794_0x5450;'use strict';const pdf=require(_0x75fc04('0x86')),rimraf=require(_0x75fc04('0xae')),zipdir=require('zip-dir'),moment=require('moment'),util=require('util'),path=require(_0x75fc04('0x69')),ejs=require(_0x75fc04('0x85')),fs=require('fs'),_=require(_0x75fc04('0x68')),squel=require('squel'),{getSocket}=require(_0x75fc04('0x44')),socket=getSocket(),qs=require(_0x75fc04('0xc9')),as=require(_0x75fc04('0xaf')),logger=require('../../config/logger')(_0x75fc04('0x81')),config=require('../../config/environment'),db=require(_0x75fc04('0x59'))['db'],{Op}=require(_0x75fc04('0x98'));require(_0x75fc04('0x4e'))[_0x75fc04('0x3e')](socket);function respondWithStatusCode(_0x203854,_0x48e79b){return _0x48e79b=_0x48e79b||0xcc,function(_0x33d1e6){const _0x164010=a794_0x5450;if(_0x33d1e6)return _0x203854[_0x164010('0xbb')](_0x48e79b);return _0x203854[_0x164010('0x26')](_0x48e79b)[_0x164010('0xf')]();};}function respondWithResult(_0x4a9203,_0x260863){return _0x260863=_0x260863||0xc8,function(_0x566ec7){const _0x156319=a794_0x5450;if(_0x566ec7)return _0x4a9203[_0x156319('0x26')](_0x260863)[_0x156319('0xd6')](_0x566ec7);};}function respondWithFilteredResult(_0x104dd4,_0x48d0c7){return function(_0x2cd703){const _0x5ac668=a794_0x5450;if(_0x2cd703){const _0x112c87=_0x2cd703['count'],_0xb93238=_0x48d0c7[_0x5ac668('0x41')];let _0x316fb9=_0x48d0c7[_0x5ac668('0x41')]+_0x48d0c7[_0x5ac668('0x32')],_0x43fca2;return _0x316fb9>=_0x112c87?(_0x316fb9=_0x112c87,_0x43fca2=0xc8):_0x43fca2=0xce,_0x104dd4[_0x5ac668('0x26')](_0x43fca2),_0x104dd4[_0x5ac668('0x7a')]('Content-Range',_0xb93238+'-'+_0x316fb9+'/'+_0x112c87)[_0x5ac668('0xd6')](_0x2cd703);}return null;};}function saveUpdates(_0x16c17e){return function(_0x50a1a9){const _0x199e95=a794_0x5450;if(_0x50a1a9)return _0x50a1a9[_0x199e95('0x39')](_0x16c17e)[_0x199e95('0xb3')](function(_0x534298){return _0x534298;});return null;};}function removeEntity(_0x9f28ab){return function(_0x332dda){const _0x132826=a794_0x5450;if(_0x332dda)return _0x332dda['destroy']()[_0x132826('0xb3')](function(){const _0x5b415c=_0x132826;_0x9f28ab['status'](0xcc)[_0x5b415c('0xf')]();});};}function handleEntityNotFound(_0x4453d4){return function(_0x6129cc){const _0x375d6f=a794_0x5450;return!_0x6129cc&&_0x4453d4[_0x375d6f('0xbb')](0x194),_0x6129cc;};}function handleError(_0x3246c9,_0x2b0606){return _0x2b0606=_0x2b0606||0x1f4,function(_0x4673ef){const _0x1d0373=a794_0x5450;logger['error'](_0x4673ef[_0x1d0373('0x20')]),_0x4673ef[_0x1d0373('0xa5')]&&delete _0x4673ef['name'],_0x3246c9[_0x1d0373('0x26')](_0x2b0606)['send'](_0x4673ef);};}function getInteractionUsers(_0x5c1e8c,_0x3258bf){return new Promise(function(_0x2cafda,_0x3e12ba){const _0x193040=a794_0x5450;try{_0x3258bf[_0x5c1e8c['id']]&&(_0x5c1e8c[_0x193040('0xcf')]=_['map'](_0x3258bf[_0x5c1e8c['id']],function(_0x568bd2){const _0xe312e=_0x193040;return{'id':_0x568bd2['id'],'fullname':_0x568bd2[_0xe312e('0xbf')]};}));}catch(_0x20a375){_0x3e12ba(_0x20a375);}_0x2cafda(_0x5c1e8c);});}function getInteractionTags(_0x5313f3,_0x52466b){return new Promise(function(_0x5f2d34,_0x29ae39){const _0x16cf7e=a794_0x5450;try{_0x5313f3['TagIds']&&(_0x5313f3['Tags']=[],_0x5313f3[_0x16cf7e('0x16')][_0x16cf7e('0x4f')](',')[_0x16cf7e('0x77')](function(_0x1e675c){const _0x53251b=_0x16cf7e;_0x5313f3[_0x53251b('0x1b')][_0x53251b('0x6a')](_0x52466b[_0x1e675c]);})),delete _0x5313f3['TagIds'];}catch(_0x36a690){_0x29ae39(_0x36a690);}_0x5f2d34(_0x5313f3);});}function updateWhatsappInteraction(_0x2d24e5,_0x5982e0,_0x13d2ce){return new Promise(function(_0x136ae8,_0x4d351b){const _0x4782b3=a794_0x5450;return getInteractionUsers(_0x2d24e5,_0x13d2ce)['then'](function(_0x5571ba){return getInteractionTags(_0x5571ba,_0x5982e0);})[_0x4782b3('0xb3')](function(_0xe09b10){_0x136ae8(_0xe09b10);})['catch'](function(_0x2907fd){_0x4d351b(_0x2907fd);});});}exports[_0x75fc04('0x28')]=function(_0x2e65fb,_0x49d50b){const _0x48a35e=_0x75fc04,_0x475645={},_0x33cffd={},_0x5eeeae={'count':0x0,'rows':[]},_0x143f82=_[_0x48a35e('0xdd')](db[_0x48a35e('0xc1')]['rawAttributes'],function(_0xc516b6){const _0x35c5cf=_0x48a35e;return{'name':_0xc516b6[_0x35c5cf('0x53')],'type':_0xc516b6[_0x35c5cf('0xd2')]['key']};});_0x33cffd['model']=_[_0x48a35e('0xdd')](_0x143f82,_0x48a35e('0xa5')),_0x33cffd[_0x48a35e('0x4')]=_[_0x48a35e('0x37')](_0x2e65fb[_0x48a35e('0x4')]),_0x33cffd[_0x48a35e('0x9f')]=_[_0x48a35e('0xb6')](_0x33cffd[_0x48a35e('0x9')],_0x33cffd[_0x48a35e('0x4')]),_0x475645[_0x48a35e('0x91')]=_[_0x48a35e('0xb6')](_0x33cffd[_0x48a35e('0x9')],qs[_0x48a35e('0x2c')](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x2c')])),_0x475645['attributes']=_0x475645[_0x48a35e('0x91')][_0x48a35e('0x56')]?_0x475645['attributes']:_0x33cffd[_0x48a35e('0x9')];typeof _0x2e65fb['query']['nolimit']===_0x48a35e('0x0')&&(_0x475645[_0x48a35e('0x32')]=qs['limit'](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x32')]),_0x475645[_0x48a35e('0x41')]=qs[_0x48a35e('0x41')](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x41')]));_0x475645['order']=qs['sort'](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x24')]),_0x475645[_0x48a35e('0xd0')]=qs[_0x48a35e('0x9f')](_[_0x48a35e('0xc0')](_0x2e65fb[_0x48a35e('0x4')],_0x33cffd[_0x48a35e('0x9f')]),_0x143f82);let _0x376cbc=[];const _0x483d9e=squel['select']()[_0x48a35e('0x17')]('id')['field'](_0x48a35e('0xa5'))['field'](_0x48a35e('0x13'))[_0x48a35e('0x4b')](_0x48a35e('0x72')),_0x4fd387=squel[_0x48a35e('0x93')]()[_0x48a35e('0x17')](_0x48a35e('0x83'))['field']('u.fullname')[_0x48a35e('0x17')](_0x48a35e('0xbd'))[_0x48a35e('0x4b')](_0x48a35e('0xb'),'ui')[_0x48a35e('0x42')](_0x48a35e('0x25'),'u',_0x48a35e('0x62')),_0xb539c0=squel['select']()[_0x48a35e('0x4b')](_0x48a35e('0xc3'),'i')[_0x48a35e('0x42')]('cm_contacts','c',_0x48a35e('0x34'))[_0x48a35e('0x42')](_0x48a35e('0x25'),'o',_0x48a35e('0x48'))[_0x48a35e('0x42')](_0x48a35e('0xa7'),'a',_0x48a35e('0x5'))['left_join'](_0x48a35e('0x84'),'me',_0x48a35e('0x31'))[_0x48a35e('0x42')](_0x48a35e('0x23'),'it',_0x48a35e('0x11'))[_0x48a35e('0x42')](_0x48a35e('0x72'),'t','t.id\x20=\x20it.TagId'),_0x1114fa=squel['expr']();let _0x52af1b=[];const _0x24d9dc=squel[_0x48a35e('0x38')]();let _0x665a16;if(_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0xb7')]){_0x665a16=as[_0x48a35e('0x2d')](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0xb7')]);const _0x3e171b=_0x665a16[_0x48a35e('0xc8')];for(let _0x402100=0x0;_0x402100<_0x665a16['conditions'][_0x48a35e('0x56')];_0x402100++){const _0x3f8e1c=_0x665a16[_0x48a35e('0x3b')][_0x402100],_0x5ebfdb='i';let _0x4e6646,_0x5a1d41=_[_0x48a35e('0x12')](_0x143f82,[_0x48a35e('0xa5'),_0x3f8e1c['field']]);if(!_0x5a1d41)switch(_0x3f8e1c[_0x48a35e('0x17')]){case _0x48a35e('0x8f'):_0x3f8e1c['value']==0x1?_0xb539c0[_0x48a35e('0xa3')]('`'+_0x3f8e1c[_0x48a35e('0x17')]+_0x48a35e('0x10')):_0xb539c0[_0x48a35e('0xa3')]('`'+_0x3f8e1c[_0x48a35e('0x17')]+_0x48a35e('0x97'));break;case _0x48a35e('0xb9'):if(_0x3f8e1c[_0x48a35e('0xab')]===_0x48a35e('0x27')){if(_0x3f8e1c[_0x48a35e('0x8c')][_0x48a35e('0x4f')]('\x20')[_0x48a35e('0x56')]>0x1)_0x1114fa[_0x3e171b](_0x48a35e('0x89'),qs[_0x48a35e('0xa')](_0x3f8e1c[_0x48a35e('0x8c')]),null);else{const _0x543ffb='%'+_0x3f8e1c['value']+'%';_0x1114fa[_0x3e171b](_0x48a35e('0xd5'),_0x543ffb,_0x543ffb,_0x543ffb);}}else _0x5a1d41=_[_0x48a35e('0x12')](_0x143f82,[_0x48a35e('0xa5'),_0x48a35e('0x80')]),_0x3f8e1c[_0x48a35e('0x17')]=_0x48a35e('0x80'),_0x4e6646=as[_0x48a35e('0x51')](_0x5ebfdb,_0x5a1d41[_0x48a35e('0xd2')],_0x3f8e1c),_0x1114fa[_0x3e171b](_0x4e6646[_0x48a35e('0xb2')],_0x4e6646[_0x48a35e('0x8c')][_0x48a35e('0x55')],_0x4e6646[_0x48a35e('0x8c')]['end']);break;case'Tag':{const _0x3bd83d=_0x3f8e1c[_0x48a35e('0x8c')]['split'](',')[_0x48a35e('0xdd')](function(_0x5436f1){return Number(_0x5436f1);});_0x3bd83d['forEach'](function(_0x25a061){const _0x509108=_0x48a35e;_0x24d9dc['or'](_0x509108('0x71'),'%,'+_0x25a061+',%');}),_0x52af1b=_[_0x48a35e('0x5c')](_0x52af1b,_0x3bd83d);}break;case _0x48a35e('0x52'):_0x3f8e1c[_0x48a35e('0xab')]===_0x48a35e('0x27')?_0x1114fa[_0x3e171b](_0x48a35e('0x50'),'%'+_0x3f8e1c[_0x48a35e('0x8c')]+'%',null):(_0x5a1d41=_['find'](_0x143f82,[_0x48a35e('0xa5'),'UserId']),_0x3f8e1c[_0x48a35e('0x17')]=_0x48a35e('0xc'),_0x4e6646=as[_0x48a35e('0x51')](_0x5ebfdb,_0x5a1d41[_0x48a35e('0xd2')],_0x3f8e1c),_0x1114fa[_0x3e171b](_0x4e6646[_0x48a35e('0xb2')],_0x4e6646[_0x48a35e('0x8c')][_0x48a35e('0x55')],_0x4e6646['value'][_0x48a35e('0xf')]));break;case'body':_0x4e6646=as['buildExpression']('me',null,_0x3f8e1c),_0x1114fa[_0x3e171b](_0x4e6646[_0x48a35e('0xb2')],_0x4e6646[_0x48a35e('0x8c')]['start'],_0x4e6646[_0x48a35e('0x8c')][_0x48a35e('0xf')]);break;}else _0x4e6646=as['buildExpression'](_0x5ebfdb,_0x5a1d41['type'],_0x3f8e1c),_0x1114fa[_0x3e171b](_0x4e6646[_0x48a35e('0xb2')],_0x4e6646['value'][_0x48a35e('0x55')],_0x4e6646[_0x48a35e('0x8c')]['end']);}}else{const _0x2c9b06=_(_0x2e65fb[_0x48a35e('0x4')])[_0x48a35e('0x37')]()[_0x48a35e('0xdd')](function(_0x1a92f2){const _0x1a3e5b=_0x48a35e;return _['some'](_0x143f82,[_0x1a3e5b('0xa5'),_0x1a92f2])?_0x1a92f2:undefined;})[_0x48a35e('0x63')]()['value']();!_[_0x48a35e('0x87')](_0x2c9b06)&&_0x2c9b06[_0x48a35e('0x77')](function(_0x4f6183){const _0x433012=_0x48a35e;if(_0x4f6183===_0x433012('0x9c'))_0xb539c0['where'](_0x433012('0xa9'),[][_0x433012('0xc7')](_0x2e65fb[_0x433012('0x4')][_0x4f6183]));else{if(_0x4f6183===_0x433012('0x6c')){const _0x720998=JSON[_0x433012('0x73')](_0x2e65fb[_0x433012('0x4')][_0x4f6183])[_0x433012('0xdb')],_0xa59479=JSON[_0x433012('0x73')](_0x2e65fb[_0x433012('0x4')][_0x4f6183])[_0x433012('0xb4')];_0xb539c0[_0x433012('0xd0')]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x720998,_0xa59479);}else _0x2e65fb[_0x433012('0x4')][_0x4f6183]===_0x433012('0x18')?_0xb539c0[_0x433012('0xd0')]('i.'+_0x4f6183+'\x20IS\x20NULL'):_0xb539c0[_0x433012('0xd0')]('i.'+_0x4f6183+_0x433012('0x7c'),_0x2e65fb[_0x433012('0x4')][_0x4f6183]);}});_0x2e65fb[_0x48a35e('0x4')]['read']&&(_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x5e')]==0x1?_0xb539c0[_0x48a35e('0xa3')](_0x48a35e('0x96')):_0xb539c0[_0x48a35e('0xa3')](_0x48a35e('0x2f')));_0x2e65fb['query'][_0x48a35e('0x8e')]&&(_0x52af1b=_[_0x48a35e('0xcc')](_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x8e')])?_0x2e65fb[_0x48a35e('0x4')]['tag']:new Array(_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x8e')]),_0x52af1b[_0x48a35e('0x77')](function(_0x50d82a){const _0x3490cf=_0x48a35e;_0x24d9dc['or'](_0x3490cf('0x71'),'%,'+_0x50d82a+',%');}));if(_0x2e65fb[_0x48a35e('0x4')][_0x48a35e('0x67')]){const _0x27fa0d=_0x2e65fb['query'][_0x48a35e('0x67')]['replace']('\x5c','\x5c\x5c')[_0x48a35e('0x1c')]('\x27\x27','\x27\x27\x27\x27');qs[_0x48a35e('0xd9')](_0x27fa0d)?_0x1114fa['or'](_0x48a35e('0x78'),_0x27fa0d+'%')['or'](_0x48a35e('0x8'),_0x27fa0d+'%'):_0x1114fa['or'](_0x48a35e('0x9d'),qs[_0x48a35e('0xa')](_0x27fa0d))['or'](_0x48a35e('0xb1'),_0x27fa0d+'%');}}_0xb539c0['where'](_0x1114fa),_0xb539c0[_0x48a35e('0x8a')](_0x48a35e('0x8d'));let _0x51057b={'type':db['Sequelize'][_0x48a35e('0x29')][_0x48a35e('0x95')],'raw':!![]};const _0x478b1f=_0xb539c0['clone']();_0x478b1f['field'](_0x48a35e('0x8d')),_0x478b1f[_0x48a35e('0x17')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x475645['order']&&_0x475645[_0x48a35e('0x46')][_0x48a35e('0x77')](function(_0x18171c){const _0x5847ba=_0x48a35e;_0xb539c0[_0x5847ba('0x46')]('i.'+_0x18171c[0x0],_0x18171c[0x1]===_0x5847ba('0x35')?![]:!![]);}),!_[_0x48a35e('0x87')](_0x52af1b)&&(_0xb539c0['having'](_0x24d9dc),_0x478b1f[_0x48a35e('0xd0')](_0x48a35e('0x6b'),_0x52af1b)),Promise['resolve']()[_0x48a35e('0xb3')](function(){const _0x2a65df=_0x48a35e;if(!_0x665a16){if(_0x2e65fb['query'][_0x2a65df('0x9c')]||_0x2e65fb['query'][_0x2a65df('0x54')])return;_0x478b1f['where']('i.WhatsappAccountId\x20IS\x20NOT\x20NULL'),_0xb539c0[_0x2a65df('0xd0')](_0x2a65df('0xce'));return;}return _0x2e65fb[_0x2a65df('0x88')]['getWhatsappAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x1d0009){const _0x20c73d=_0x2a65df;_[_0x20c73d('0x87')](_0x1d0009)?(_0x478b1f[_0x20c73d('0xd0')]('i.WhatsappAccountId\x20IS\x20NULL'),_0xb539c0[_0x20c73d('0xd0')](_0x20c73d('0x30'))):(_0x478b1f[_0x20c73d('0xd0')](_0x20c73d('0xa9'),_[_0x20c73d('0xdd')](_0x1d0009,'id')),_0xb539c0[_0x20c73d('0xd0')](_0x20c73d('0xa9'),_[_0x20c73d('0xdd')](_0x1d0009,'id')));});})[_0x48a35e('0xb3')](function(){const _0x29ca11=_0x48a35e;db[_0x29ca11('0x98')][_0x29ca11('0x4')](_0x478b1f[_0x29ca11('0x40')](),_0x51057b)['then'](function(_0x3ffecc){const _0x338769=_0x29ca11;_0x5eeeae[_0x338769('0xda')]=_0x3ffecc['length'];if(_0x5eeeae[_0x338769('0xda')]===0x0)return[];return db[_0x338769('0x98')][_0x338769('0x4')](_0x483d9e['toString'](),_0x51057b)[_0x338769('0xb3')](function(_0x31650a){const _0x191c35=_0x338769;_0x376cbc=_[_0x191c35('0x3f')](_0x31650a,'id'),_0x51057b=_['merge'](_0x51057b,{'model':db[_0x191c35('0xc1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2e65fb['query'][_0x191c35('0x2c')]?_0x475645['attributes'][_0x191c35('0x77')](function(_0x591fa4){const _0x2552d7=_0x191c35;_0xb539c0[_0x2552d7('0x17')]('i.'+_0x591fa4);}):(_0xb539c0[_0x191c35('0x17')](_0x191c35('0x2b'),_0x191c35('0x8f')),_0xb539c0['field'](_0x191c35('0x15'),'Account.key'),_0xb539c0['field']('a.mandatoryDisposition','Account.mandatoryDisposition'),_0xb539c0[_0x191c35('0x17')](_0x191c35('0x5d')),_0xb539c0['field'](_0x191c35('0xd7'),'Contact.firstName'),_0xb539c0['field'](_0x191c35('0x3c'),'Contact.lastName'),_0xb539c0['field']('c.email',_0x191c35('0x49')),_0xb539c0['field'](_0x191c35('0x79'),_0x191c35('0x82')),_0xb539c0['field'](_0x191c35('0xe'),_0x191c35('0x7e')),_0xb539c0[_0x191c35('0x17')](_0x191c35('0x99'),_0x191c35('0x4a')),_0xb539c0[_0x191c35('0x17')](_0x191c35('0x75'),_0x191c35('0xa1')),_0xb539c0[_0x191c35('0x17')](_0x191c35('0x6'),_0x191c35('0x21')),_0xb539c0[_0x191c35('0x17')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x191c35('0x16')));if(_0x475645[_0x191c35('0x32')])_0xb539c0['limit'](_0x475645['limit']);if(_0x475645[_0x191c35('0x41')])_0xb539c0[_0x191c35('0x41')](_0x475645['offset']);return db['sequelize'][_0x191c35('0x4')](_0xb539c0['toString'](),_0x51057b);})[_0x338769('0xb3')](function(_0x2f7e71){const _0x45e74d=_0x338769;return _0x4fd387['where'](_0x45e74d('0x1'),_[_0x45e74d('0xdd')](_0x2f7e71,'id')),db['sequelize']['query'](_0x4fd387[_0x45e74d('0x40')](),_0x51057b)[_0x45e74d('0xb3')](function(_0x4eb749){const _0x10b108=_0x45e74d,_0x152ae9=_[_0x10b108('0x9a')](_0x4eb749,_0x10b108('0x64')),_0x4c1812=[];return _0x2f7e71[_0x10b108('0x77')](function(_0x2335d0){const _0x3cc6ab=_0x10b108;_0x4c1812[_0x3cc6ab('0x6a')](updateWhatsappInteraction(_0x2335d0,_0x376cbc,_0x152ae9));}),Promise[_0x10b108('0x3a')](_0x4c1812);});});})['then'](function(_0x579a74){return _0x5eeeae['rows']=_0x579a74,_0x5eeeae;})[_0x29ca11('0xb3')](respondWithFilteredResult(_0x49d50b,_0x475645));})[_0x48a35e('0x2a')](handleError(_0x49d50b,null));},exports[_0x75fc04('0x5a')]=function(_0x465742,_0x3b0acb){const _0x52947d=_0x75fc04;let _0x449eee={'raw':![],'where':{'id':_0x465742[_0x52947d('0xbc')]['id']}};const _0x55b4d0={};return _0x55b4d0[_0x52947d('0x9')]=_['keys'](db[_0x52947d('0xc1')][_0x52947d('0x65')]),_0x55b4d0[_0x52947d('0x4')]=_[_0x52947d('0x37')](_0x465742[_0x52947d('0x4')]),_0x55b4d0[_0x52947d('0x9f')]=_['intersection'](_0x55b4d0[_0x52947d('0x9')],_0x55b4d0[_0x52947d('0x4')]),_0x449eee[_0x52947d('0x91')]=_[_0x52947d('0xb6')](_0x55b4d0[_0x52947d('0x9')],qs[_0x52947d('0x2c')](_0x465742[_0x52947d('0x4')][_0x52947d('0x2c')])),_0x449eee[_0x52947d('0x91')]=_0x449eee['attributes'][_0x52947d('0x56')]?_0x449eee[_0x52947d('0x91')]:_0x55b4d0[_0x52947d('0x9')],_0x465742[_0x52947d('0x4')]['includeAll']&&(_0x449eee['include']=[{'all':!![]}]),_0x449eee=_[_0x52947d('0x8b')]({},_0x449eee,_0x465742['options']),db[_0x52947d('0xc1')][_0x52947d('0x6e')](_0x449eee)['then'](handleEntityNotFound(_0x3b0acb,null))['then'](respondWithResult(_0x3b0acb,null))[_0x52947d('0x2a')](handleError(_0x3b0acb,null));},exports[_0x75fc04('0x94')]=function(_0x3a0c13,_0x26411a){const _0x18decc=_0x75fc04;return db['WhatsappInteraction'][_0x18decc('0x94')](_0x3a0c13[_0x18decc('0x7b')],{})[_0x18decc('0xb3')](respondWithResult(_0x26411a,0xc9))['catch'](handleError(_0x26411a,null));},exports['update']=function(_0x193275,_0x45b3d1){const _0x282a4f=_0x75fc04;return _0x193275[_0x282a4f('0x7b')]['id']&&delete _0x193275[_0x282a4f('0x7b')]['id'],db['WhatsappInteraction'][_0x282a4f('0x6e')]({'where':{'id':_0x193275[_0x282a4f('0xbc')]['id']}})[_0x282a4f('0xb3')](handleEntityNotFound(_0x45b3d1,null))['then'](saveUpdates(_0x193275[_0x282a4f('0x7b')],null))[_0x282a4f('0xb3')](respondWithResult(_0x45b3d1,null))['catch'](handleError(_0x45b3d1,null));},exports[_0x75fc04('0x33')]=function(_0x578b33,_0x312fca){const _0x212879=_0x75fc04;return db['WhatsappInteraction'][_0x212879('0x6e')]({'where':{'id':_0x578b33[_0x212879('0xbc')]['id']}})[_0x212879('0xb3')](handleEntityNotFound(_0x312fca,null))['then'](removeEntity(_0x312fca,null))[_0x212879('0x2a')](handleError(_0x312fca,null));},exports[_0x75fc04('0x5f')]=function(_0x16fc49,_0x4b5f65){const _0x37d2d3=_0x75fc04;return db[_0x37d2d3('0xc1')][_0x37d2d3('0x5f')]()[_0x37d2d3('0xb3')](respondWithResult(_0x4b5f65,null))['catch'](handleError(_0x4b5f65,null));},exports['addMessage']=function(_0x2c8d8b,_0x14ae04){const _0x4c1ea1=_0x75fc04;return db[_0x4c1ea1('0xad')][_0x4c1ea1('0x6e')]({'where':{'id':_0x2c8d8b[_0x4c1ea1('0xbc')]['id']}})[_0x4c1ea1('0xb3')](function(_0x468d66){const _0x293145=_0x4c1ea1;if(_0x468d66)return _0x468d66[_0x293145('0xca')](_0x2c8d8b['body'][_0x293145('0x58')],{'through':_[_0x293145('0x92')](_0x2c8d8b[_0x293145('0x7b')],[_0x293145('0x58'),'id'])});})[_0x4c1ea1('0xb3')](respondWithResult(_0x14ae04,null))[_0x4c1ea1('0x2a')](handleError(_0x14ae04,null));},exports[_0x75fc04('0x9b')]=function(_0x528a7b,_0x3c5bed){const _0x5ab4a9=_0x75fc04;let _0x87d3ce={'raw':![],'where':{}};const _0x5dea9e={},_0x11101d={'count':0x0,'rows':[]};return db[_0x5ab4a9('0xc1')][_0x5ab4a9('0x6e')]({'where':{'id':_0x528a7b[_0x5ab4a9('0xbc')]['id']}})['then'](handleEntityNotFound(_0x3c5bed,null))[_0x5ab4a9('0xb3')](function(_0x458734){const _0x44694c=_0x5ab4a9;if(_0x458734){_0x5dea9e['model']=_[_0x44694c('0x37')](db[_0x44694c('0xad')][_0x44694c('0x65')]),_0x5dea9e[_0x44694c('0x4')]=_[_0x44694c('0x37')](_0x528a7b['query']),_0x5dea9e[_0x44694c('0x9f')]=_['intersection'](_0x5dea9e['model'],_0x5dea9e[_0x44694c('0x4')]),_0x87d3ce[_0x44694c('0x91')]=_[_0x44694c('0xb6')](_0x5dea9e['model'],qs[_0x44694c('0x2c')](_0x528a7b[_0x44694c('0x4')][_0x44694c('0x2c')])),_0x87d3ce[_0x44694c('0x91')]=_0x87d3ce['attributes']['length']?_0x87d3ce[_0x44694c('0x91')]:_0x5dea9e[_0x44694c('0x9')];typeof _0x528a7b[_0x44694c('0x4')][_0x44694c('0xc4')]===_0x44694c('0x0')&&(_0x87d3ce[_0x44694c('0x32')]=qs[_0x44694c('0x32')](_0x528a7b[_0x44694c('0x4')][_0x44694c('0x32')]),_0x87d3ce[_0x44694c('0x41')]=qs[_0x44694c('0x41')](_0x528a7b[_0x44694c('0x4')][_0x44694c('0x41')]));_0x87d3ce[_0x44694c('0x46')]=qs[_0x44694c('0x24')](_0x528a7b[_0x44694c('0x4')][_0x44694c('0x24')]),_0x87d3ce[_0x44694c('0xd0')]=qs[_0x44694c('0x9f')](_[_0x44694c('0xc0')](_0x528a7b[_0x44694c('0x4')],_0x5dea9e[_0x44694c('0x9f')])),_0x87d3ce[_0x44694c('0xd0')][_0x44694c('0x64')]=_0x458734['id'];_0x528a7b[_0x44694c('0x4')]['filter']&&(_0x87d3ce[_0x44694c('0xd0')]=_['merge'](_0x87d3ce[_0x44694c('0xd0')],{[Op['or']]:_[_0x44694c('0xdd')](_0x87d3ce[_0x44694c('0x91')],function(_0x13319e){const _0x56e3d2=_0x44694c,_0x543403={};return _0x543403[_0x13319e]={[Op[_0x56e3d2('0xc5')]]:'%'+_0x528a7b[_0x56e3d2('0x4')][_0x56e3d2('0x67')]+'%'},_0x543403;})}));if(_0x528a7b[_0x44694c('0x4')][_0x44694c('0xdb')]){const _0x433c19=_0x528a7b[_0x44694c('0x4')][_0x44694c('0xdb')][_0x44694c('0x4f')](','),_0x288ef0={};_0x288ef0[_0x433c19[0x0]]={[Op[_0x44694c('0x22')]]:moment(_0x433c19[0x1])['format'](_0x44694c('0xd4'))},_0x87d3ce[_0x44694c('0xd0')]=_[_0x44694c('0x8b')](_0x87d3ce[_0x44694c('0xd0')],_0x288ef0);}return _0x87d3ce=_[_0x44694c('0x8b')]({},_0x87d3ce,_0x528a7b[_0x44694c('0x6f')]),db[_0x44694c('0xad')][_0x44694c('0xda')]({'where':_0x87d3ce[_0x44694c('0xd0')]})['then'](function(_0x4531dd){const _0xbaa5a=_0x44694c;return _0x11101d[_0xbaa5a('0xda')]=_0x4531dd,_0x528a7b['query'][_0xbaa5a('0xc6')]&&(_0x87d3ce[_0xbaa5a('0x6d')]=[{'all':!![]}]),db[_0xbaa5a('0xad')]['findAll'](_0x87d3ce);})[_0x44694c('0xb3')](function(_0x2b37fb){const _0x11e865=_0x44694c;return _0x11101d[_0x11e865('0x2')]=_0x2b37fb,_0x11101d;});}})[_0x5ab4a9('0xb3')](respondWithFilteredResult(_0x3c5bed,_0x87d3ce))[_0x5ab4a9('0x2a')](handleError(_0x3c5bed,null));},exports['addTags']=function(_0x10b97a,_0x50d0f2){const _0x2e7e2c=_0x75fc04;return db[_0x2e7e2c('0xc1')]['findOne']({'where':{'id':_0x10b97a[_0x2e7e2c('0xbc')]['id']}})['then'](function(_0x450a5a){const _0x54d783=_0x2e7e2c;if(_0x450a5a)return _0x450a5a['setTags'](_0x10b97a[_0x54d783('0x7b')]['ids'],{'through':_[_0x54d783('0x92')](_0x10b97a[_0x54d783('0x7b')],[_0x54d783('0x58'),'id'])})[_0x54d783('0xb3')](function(){const _0x1dc587=_0x54d783;return db[_0x1dc587('0x66')][_0x1dc587('0xd')]({'attributes':['id',_0x1dc587('0xa5'),_0x1dc587('0x13')],'where':{'id':_0x10b97a[_0x1dc587('0x7b')][_0x1dc587('0x58')]}});})[_0x54d783('0xb3')](function(_0x1347be){const _0x3fef98=_0x54d783;return socket[_0x3fef98('0xa0')](_0x3fef98('0x61'),{'id':Number(_0x10b97a['params']['id']),'tags':_0x1347be||[]}),{'id':Number(_0x10b97a['params']['id']),'tags':_0x1347be||[]};});})[_0x2e7e2c('0xb3')](respondWithResult(_0x50d0f2,null))['catch'](handleError(_0x50d0f2,null));},exports[_0x75fc04('0xb8')]=function(_0x3d8901,_0x107983){const _0x5a2b9d=_0x75fc04;return db[_0x5a2b9d('0xc1')][_0x5a2b9d('0x6e')]({'where':{'id':_0x3d8901['params']['id']}})[_0x5a2b9d('0xb3')](handleEntityNotFound(_0x107983,null))[_0x5a2b9d('0xb3')](function(_0x57e918){const _0x3b5468=_0x5a2b9d;if(_0x57e918)return _0x57e918[_0x3b5468('0xb8')](_0x3d8901['query'][_0x3b5468('0x58')]);})[_0x5a2b9d('0xb3')](respondWithStatusCode(_0x107983,null))[_0x5a2b9d('0x2a')](handleError(_0x107983,null));},exports[_0x75fc04('0x19')]=function(_0x5e9297,_0x5c2a65){const _0x22c6fa=_0x75fc04,_0x18d56f=moment()[_0x22c6fa('0xa2')]()['toString'](),_0x4d26b1=path['join'](config['root'],_0x22c6fa('0x7'),_0x22c6fa('0x1a')),_0x3a7e71=path[_0x22c6fa('0xa6')](config[_0x22c6fa('0x45')],_0x22c6fa('0x3'),_0x22c6fa('0x7'),'attachments'),_0xe02aca=path[_0x22c6fa('0xa6')](_0x4d26b1,_0x18d56f),_0x3a5d7c=util[_0x22c6fa('0x1e')]('transcript-%d-%s.zip',_0x5e9297[_0x22c6fa('0xbc')]['id'],_0x18d56f),_0xd2130d=path['join'](_0x4d26b1,_0x3a5d7c),_0x6179f9=[];_0x6179f9[_0x22c6fa('0x6a')]({'model':db[_0x22c6fa('0x52')],'as':_0x22c6fa('0x52'),'attributes':['id',_0x22c6fa('0xbf')],'raw':!![]}),_0x6179f9[_0x22c6fa('0x6a')]({'model':db[_0x22c6fa('0x70')],'as':_0x22c6fa('0xb9'),'attributes':['id',_0x22c6fa('0xba'),'lastName'],'raw':!![]});_0x5e9297[_0x22c6fa('0x4')][_0x22c6fa('0x7d')]&&_0x6179f9['push']({'model':db[_0x22c6fa('0x47')],'as':_0x22c6fa('0x47'),'raw':!![]});const _0x3a408e=[{'model':db[_0x22c6fa('0xad')],'as':_0x22c6fa('0x5b'),'attributes':['id',_0x22c6fa('0x7b'),_0x22c6fa('0x6c'),_0x22c6fa('0xd8'),'secret',_0x22c6fa('0x5e')],'include':_0x6179f9}];return _0x3a408e['push']({'model':db[_0x22c6fa('0xdc')],'as':_0x22c6fa('0x76'),'attributes':['id',_0x22c6fa('0xa5')]}),_0x3a408e[_0x22c6fa('0x6a')]({'model':db[_0x22c6fa('0x52')],'as':_0x22c6fa('0x4c'),'attributes':['id',_0x22c6fa('0xbf')]}),db['WhatsappInteraction']['findOne']({'where':{'id':_0x5e9297[_0x22c6fa('0xbc')]['id']},'include':_0x3a408e})['then'](handleEntityNotFound(_0x5c2a65,null))['then'](function(_0x3a6495){const _0x55215a=_0x22c6fa;if(_0x3a6495){const _0x4a63fe=_0x3a6495['get']({'plain':!![]});fs[_0x55215a('0xd1')](_0xe02aca);const _0x5b8ce6={'format':'A4','border':_0x55215a('0x3d'),'header':{'height':_0x55215a('0xcb'),'contents':{'first':_0x55215a('0x57')}},'footer':{'height':_0x55215a('0x60'),'contents':{'default':util[_0x55215a('0x1e')](_0x55215a('0x9e'),util['format'](_0x55215a('0xd3'),_0x55215a('0x14'),_0x4a63fe['id']),moment()[_0x55215a('0x1e')](_0x55215a('0x4d'))[_0x55215a('0x40')]())}}},_0x344319={'channel':_0x55215a('0x14'),'account':_0x4a63fe[_0x55215a('0x76')][_0x55215a('0xa5')],'agent':_0x4a63fe[_0x55215a('0x4c')]?_0x4a63fe[_0x55215a('0x4c')][_0x55215a('0xbf')]:_0x55215a('0x1d'),'createdAt':moment(_0x4a63fe[_0x55215a('0x6c')])[_0x55215a('0x1e')]('YYYY-MM-DD\x20HH:mm:ss')[_0x55215a('0x40')](),'closedAt':_0x4a63fe[_0x55215a('0x7f')]?moment(_0x4a63fe[_0x55215a('0xb5')])[_0x55215a('0x1e')](_0x55215a('0xd4'))[_0x55215a('0x40')]():'','disposition':_0x4a63fe[_0x55215a('0x43')],'messages':_(_0x4a63fe[_0x55215a('0x5b')])[_0x55215a('0x67')]({'secret':![]})[_0x55215a('0xdd')](function(_0xe2f57b){const _0x582329=_0x55215a;if(_0xe2f57b[_0x582329('0x47')]){const _0x1df5ce=path[_0x582329('0xa6')](_0x3a7e71,_0xe2f57b[_0x582329('0x47')][_0x582329('0xbe')]);fs[_0x582329('0x1f')](_0x1df5ce)&&fs[_0x582329('0xaa')](_0x1df5ce)['pipe'](fs[_0x582329('0xa4')](path[_0x582329('0xa6')](_0xe02aca,_0xe2f57b['Attachment'][_0x582329('0xbe')])));}return{'date':moment(_0xe2f57b[_0x582329('0x6c')])[_0x582329('0x1e')](_0x582329('0xd4'))[_0x582329('0x40')](),'sender':_0xe2f57b[_0x582329('0xd8')]==='out'?_0xe2f57b[_0x582329('0x52')]?_0xe2f57b['User']['fullname']:_0x582329('0x36'):_0xe2f57b[_0x582329('0xb9')][_0x582329('0xba')]+(_0xe2f57b[_0x582329('0xb9')][_0x582329('0xac')]?'\x20'+_0xe2f57b[_0x582329('0xb9')][_0x582329('0xac')]:''),'body':_0xe2f57b[_0x582329('0x47')]?_0xe2f57b['Attachment'][_0x582329('0xbe')]:_0xe2f57b[_0x582329('0x7b')],'direction':_0xe2f57b[_0x582329('0xd8')]==='out'?'A':'C','secret':_0xe2f57b[_0x582329('0xcd')],'read':_0xe2f57b['read'],'attachment':_0xe2f57b['Attachment']};})[_0x55215a('0x8c')]()};return ejs['renderFile'](path['join'](config[_0x55215a('0x45')],_0x55215a('0x3'),_0x55215a('0xb0'),_0x55215a('0x74')),{'interaction':_0x344319})[_0x55215a('0xb3')](function(_0x290dec){return new Promise(function(_0xf8f6a9,_0x4ae525){const _0x45260b=a794_0x5450;pdf[_0x45260b('0x94')](_0x290dec,_0x5b8ce6)['toFile'](path[_0x45260b('0xa6')](_0xe02aca,'transcript-'+_0x4a63fe['id']+'-'+_0x18d56f+_0x45260b('0xa8')),function(_0x485115,_0x2f0cb2){if(_0x485115)return _0x4ae525(_0x485115);_0xf8f6a9(_0x2f0cb2);});});})[_0x55215a('0xb3')](function(){const _0x2758ac=_0x55215a;return new Promise(function(_0xc1de7,_0x3df287){zipdir(_0xe02aca,{'saveTo':_0xd2130d},function(_0x138c77,_0x2e976a){if(_0x138c77)return _0x3df287(_0x138c77);return _0xc1de7(_0x2e976a);});})['then'](function(){return new Promise(function(_0x59ce50,_0x2fa9bb){rimraf(_0xe02aca,function(_0x2690bd){if(_0x2690bd)_0x2fa9bb(_0x2690bd);return _0x59ce50();});});})[_0x2758ac('0xb3')](function(){const _0x196b9d=_0x2758ac;return _0x5c2a65[_0x196b9d('0x19')](_0xd2130d,_0x3a5d7c,function(_0x5db9dd){const _0x3e2288=_0x196b9d;_0x5db9dd?console[_0x3e2288('0x90')](_0x3e2288('0x2e'),_0x5db9dd):fs[_0x3e2288('0xc2')](_0xd2130d);});});});}else return _0x5c2a65[_0x55215a('0xbb')](0xc8);})[_0x22c6fa('0x2a')](handleError(_0x5c2a65,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 79d61cc..62e1576 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a795_0x2ac5=['addHook','exports','Users','update','undefined','setDataValue','../../mysqldb','save','getUsers','then','WhatsappMessage','unreadMessages','WhatsappInteraction','findAll','length','emit','remove','map'];(function(_0x4e6e08,_0x2ac5c1){const _0x296bdf=function(_0xe02654){while(--_0xe02654){_0x4e6e08['push'](_0x4e6e08['shift']());}};_0x296bdf(++_0x2ac5c1);}(a795_0x2ac5,0xcd));const a795_0x296b=function(_0x4e6e08,_0x2ac5c1){_0x4e6e08=_0x4e6e08-0x0;let _0x296bdf=a795_0x2ac5[_0x4e6e08];return _0x296bdf;};const _0x4b39f2=a795_0x296b;'use strict';const EventEmitter=require('events'),WhatsappInteraction=require(_0x4b39f2('0x11'))['db'][_0x4b39f2('0x5')],WhatsappMessage=require(_0x4b39f2('0x11'))['db'][_0x4b39f2('0x3')],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x4b39f2('0x0'),'afterUpdate':_0x4b39f2('0xe'),'afterDestroy':_0x4b39f2('0x9')};function emitEvent(_0xe02654){return function(_0x348445){const _0x4cd616=a795_0x296b;_0x348445[_0x4cd616('0x1')]({'attributes':['id'],'raw':!![]})[_0x4cd616('0x2')](function(_0x4baa6a){const _0x446639=_0x4cd616;return _0x348445[_0x446639('0x10')](_0x446639('0xd'),_0x4baa6a[_0x446639('0xa')](function(_0x2e4b4a){return{'id':_0x2e4b4a['id']};})),WhatsappMessage[_0x446639('0x6')]({'where':{'WhatsappInteractionId':_0x348445['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4cd616('0x2')](function(_0x47635c){const _0x974281=_0x4cd616;_0x348445[_0x974281('0x10')](_0x974281('0x4'),_0x47635c[_0x974281('0x7')]),WhatsappInteractionEvents[_0x974281('0x8')](_0xe02654+':'+_0x348445['id'],_0x348445),WhatsappInteractionEvents[_0x974281('0x8')](_0xe02654,_0x348445);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==_0x4b39f2('0xf')){const event=events[e];WhatsappInteraction[_0x4b39f2('0xb')](e,emitEvent(event));}}module[_0x4b39f2('0xc')]=WhatsappInteractionEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index 313700f..93ff20a 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a796_0x10a7=['moment','./whatsappInteraction.attributes','closed','YYYY-MM-DD\x20HH:mm:ss','define','changed','WhatsappInteraction'];(function(_0x532e4e,_0x10a7a0){const _0x41cb43=function(_0x21b1cb){while(--_0x21b1cb){_0x532e4e['push'](_0x532e4e['shift']());}};_0x41cb43(++_0x10a7a0);}(a796_0x10a7,0xb8));const a796_0x41cb=function(_0x532e4e,_0x10a7a0){_0x532e4e=_0x532e4e-0x0;let _0x41cb43=a796_0x10a7[_0x532e4e];return _0x41cb43;};const _0x367e68=a796_0x41cb;'use strict';const moment=require(_0x367e68('0x5')),attributes=require(_0x367e68('0x6'));module['exports']=function(_0x21b1cb){const _0x20dd70=_0x367e68,_0x1ae9f8=_0x21b1cb[_0x20dd70('0x2')](_0x20dd70('0x4'),attributes,{'tableName':'whatsapp_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x54dc73){const _0x289d53=_0x20dd70;_0x54dc73[_0x289d53('0x3')](_0x289d53('0x0'))&&(_0x54dc73['closedAt']=moment()['format'](_0x289d53('0x1')));}}});return _0x1ae9f8;}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 9ea4140..951531f 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a797_0x50e4=['AddTagsToWhatsappInteraction','then','attributes','omit','lodash','options','addTags','catch','rpc','limit','findOne','where','../../rediscache','UpdateWhatsappInteraction','../../mysqldb','stringify','AddTags','error','body','debug','info','ids','message','../../config/logger','WhatsappInteraction'];(function(_0x5a34bf,_0x50e461){const _0x158b4=function(_0x5967ea){while(--_0x5967ea){_0x5a34bf['push'](_0x5a34bf['shift']());}};_0x158b4(++_0x50e461);}(a797_0x50e4,0xba));const a797_0x158b=function(_0x5a34bf,_0x50e461){_0x5a34bf=_0x5a34bf-0x0;let _0x158b4=a797_0x50e4[_0x5a34bf];return _0x158b4;};const _0x242653=a797_0x158b;'use strict';const _=require(_0x242653('0x12')),db=require(_0x242653('0x3'))['db'],logger=require(_0x242653('0xc'))(_0x242653('0x16')),{getSocket}=require(_0x242653('0x1')),socket=getSocket();require('./whatsappInteraction.socket')['register'](socket),exports[_0x242653('0x2')]=function(_0x5967ea){const _0x1eb10a=this;return new Promise(function(_0x53aac6,_0x1de6a3){const _0x538d60=a797_0x158b;return db['WhatsappInteraction']['update'](_0x5967ea['body'],{'raw':_0x5967ea[_0x538d60('0x13')]?_0x5967ea[_0x538d60('0x13')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5967ea[_0x538d60('0x13')]?_0x5967ea[_0x538d60('0x13')][_0x538d60('0x0')]||null:null,'attributes':_0x5967ea[_0x538d60('0x13')]?_0x5967ea[_0x538d60('0x13')][_0x538d60('0x10')]||null:null,'limit':_0x5967ea[_0x538d60('0x13')]?_0x5967ea[_0x538d60('0x13')][_0x538d60('0x17')]||null:null})[_0x538d60('0xf')](function(_0x5d893a){const _0x435c9c=_0x538d60;logger['info'](_0x435c9c('0x2'),_0x5967ea),logger[_0x435c9c('0x8')](_0x435c9c('0x2'),_0x5967ea,JSON['stringify'](_0x5d893a)),_0x53aac6(_0x5d893a);})[_0x538d60('0x15')](function(_0x3203bb){const _0x493e77=_0x538d60;logger['error'](_0x493e77('0x2'),_0x3203bb[_0x493e77('0xb')],_0x5967ea),_0x1de6a3(_0x1eb10a[_0x493e77('0x6')](0x1f4,_0x3203bb[_0x493e77('0xb')]));});});},exports[_0x242653('0xe')]=function(_0x45d8c8){const _0x2bc06b=this;return new Promise(function(_0x39ff76,_0x164e27){const _0x575a4f=a797_0x158b;return db[_0x575a4f('0xd')][_0x575a4f('0x18')]({'where':_0x45d8c8[_0x575a4f('0x13')]?_0x45d8c8[_0x575a4f('0x13')]['where']||null:null})[_0x575a4f('0xf')](function(_0x4a7847){const _0x5240e4=_0x575a4f;if(_0x4a7847)return _0x4a7847[_0x5240e4('0x14')](_0x45d8c8[_0x5240e4('0x7')]['ids'],{'through':_[_0x5240e4('0x11')](_0x45d8c8[_0x5240e4('0x7')],[_0x5240e4('0xa'),'id'])});})['then'](function([_0x279b3b]){const _0x37bc9b=_0x575a4f;logger[_0x37bc9b('0x9')](_0x37bc9b('0x5'),_0x45d8c8),logger[_0x37bc9b('0x8')]('AddTags',_0x45d8c8,JSON[_0x37bc9b('0x4')](_0x279b3b)),_0x39ff76(_0x279b3b);})['catch'](function(_0xaf0e1b){const _0x4312ed=_0x575a4f;logger[_0x4312ed('0x6')](_0x4312ed('0x5'),_0xaf0e1b[_0x4312ed('0xb')],_0x45d8c8),_0x164e27(_0x2bc06b[_0x4312ed('0x6')](0x1f4,_0xaf0e1b['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index 2a67c11..8ab3990 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a798_0x3da2=['update','whatsappInteraction:','save','register','remove','length','./whatsappInteraction.events'];(function(_0x815136,_0x3da2bb){const _0x1cd951=function(_0x3c20ce){while(--_0x3c20ce){_0x815136['push'](_0x815136['shift']());}};_0x1cd951(++_0x3da2bb);}(a798_0x3da2,0x109));const a798_0x1cd9=function(_0x815136,_0x3da2bb){_0x815136=_0x815136-0x0;let _0x1cd951=a798_0x3da2[_0x815136];return _0x1cd951;};const _0x3bfb44=a798_0x1cd9;'use strict';const WhatsappInteractionEvents=require(_0x3bfb44('0x0')),events=[_0x3bfb44('0x3'),_0x3bfb44('0x5'),_0x3bfb44('0x1')];function createListener(_0x3c20ce,_0x3a248a){return function(_0x3a3922){_0x3a248a['emit'](_0x3c20ce,_0x3a3922);};}exports[_0x3bfb44('0x4')]=function(_0x1f594b){const _0x22aee7=_0x3bfb44;for(let _0x5dedd2=0x0,_0x25e095=events[_0x22aee7('0x6')];_0x5dedd2<_0x25e095;_0x5dedd2++){const _0x5cc8d3=events[_0x5dedd2],_0x1b2e75=createListener(_0x22aee7('0x2')+_0x5cc8d3,_0x1f594b);WhatsappInteractionEvents['on'](_0x5cc8d3,_0x1b2e75);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index cf98470..f46d38e 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a799_0x14a3=['../../components/interaction/service','describe','status','/:id/status','/:id','delete','../../components/auth/service','exports','Router','update','put','isAuthenticated','/:id/reject','tracked','post','get'];(function(_0x2bde7f,_0x14a3bf){const _0x470aeb=function(_0x5176ca){while(--_0x5176ca){_0x2bde7f['push'](_0x2bde7f['shift']());}};_0x470aeb(++_0x14a3bf);}(a799_0x14a3,0x10d));const a799_0x470a=function(_0x2bde7f,_0x14a3bf){_0x2bde7f=_0x2bde7f-0x0;let _0x470aeb=a799_0x14a3[_0x2bde7f];return _0x470aeb;};const _0x222636=a799_0x470a;'use strict';const express=require('express'),router=express[_0x222636('0xb')](),auth=require(_0x222636('0x9')),interaction=require(_0x222636('0x3')),controller=require('./whatsappMessage.controller');router[_0x222636('0x2')]('/',auth[_0x222636('0xe')](),controller['index']),router[_0x222636('0x2')]('/describe',auth[_0x222636('0xe')](),controller[_0x222636('0x4')]),router[_0x222636('0x2')](_0x222636('0x7'),auth[_0x222636('0xe')](),controller['show']),router[_0x222636('0x1')]('/',auth[_0x222636('0xe')](),interaction[_0x222636('0x0')]('whatsapp','whatsappmessage:create'),controller['create']),router[_0x222636('0x1')](_0x222636('0x6'),controller[_0x222636('0x5')]),router['put']('/:id',auth[_0x222636('0xe')](),controller[_0x222636('0xc')]),router['put']('/:id/accept',auth[_0x222636('0xe')](),controller['accept']),router[_0x222636('0xd')](_0x222636('0xf'),auth['isAuthenticated'](),controller['reject']),router[_0x222636('0x8')](_0x222636('0x7'),auth['isAuthenticated'](),controller['destroy']),module[_0x222636('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index 30f41cf..cf93c00 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a800_0x4a54=['medium','exports','BOOLEAN','ENUM','TEXT','out','STRING','sequelize'];(function(_0x288d59,_0x4a5447){const _0x5a0522=function(_0x1f18df){while(--_0x1f18df){_0x288d59['push'](_0x288d59['shift']());}};_0x5a0522(++_0x4a5447);}(a800_0x4a54,0x72));const a800_0x5a05=function(_0x288d59,_0x4a5447){_0x288d59=_0x288d59-0x0;let _0x5a0522=a800_0x4a54[_0x288d59];return _0x5a0522;};const _0x5d7ebb=a800_0x5a05;'use strict';const Sequelize=require(_0x5d7ebb('0x5'));module[_0x5d7ebb('0x7')]={'body':{'type':Sequelize[_0x5d7ebb('0x2')](_0x5d7ebb('0x6')),'allowNull':![]},'read':{'type':Sequelize[_0x5d7ebb('0x0')],'defaultValue':![]},'direction':{'type':Sequelize[_0x5d7ebb('0x1')]('in',_0x5d7ebb('0x3')),'defaultValue':_0x5d7ebb('0x3'),'allowNull':![]},'messageId':{'type':Sequelize[_0x5d7ebb('0x4')](0xbe)},'phone':{'type':Sequelize[_0x5d7ebb('0x4')]},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x5d7ebb('0x0')],'defaultValue':![]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 1c103dc..21b808a 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a801_0x6ee6=['json','moment','status','VIRTUAL','RejectMessage','WhatsappMessage','update','rawAttributes','whatsapp-interactions','client','type','merge','keys','send','acceptMessage','role','EventManager','request\x20sent','intersection','agent','request','reject','sendStatus','nolimit','WhatsappInteraction','MessageStatus','params','get','event','Content-Range','rejectMessage','read','user','map','register','WhatsappAccount,\x20%s,\x20%s,\x20%s','filters','findOne','show','error','http','WhatsappInteractionId','offset','index','info','acceptmessage','destroy','catch','include','accept','where','rows','query','code','fields','fieldName','UserId','api','interaction','debug','WhatsappMessage,\x20%s,\x20%s','jayson/promise','length','messageId','attributes','read1stAt','SIP/%s','WhatsappMessage,\x20%s,\x20%s,\x20%s','options','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../rediscache','stringify','interface','readAt','WhatsappAccountId','sort','lodash','order','filter','message','inspect','util','received\x20delivery\x20report\x20from','../../config/logger','YYYY-MM-DD\x20HH:mm:ss','then','limit','sequelize','model','count','channel','twilio','./whatsappMessage.socket','rejectmessage','CmContact','format','create','body','isNil','name','whatsapp','result','MessageSid'];(function(_0x4fe8a4,_0x6ee6f1){const _0x175131=function(_0xe3053b){while(--_0xe3053b){_0x4fe8a4['push'](_0x4fe8a4['shift']());}};_0x175131(++_0x6ee6f1);}(a801_0x6ee6,0x1f3));const a801_0x1751=function(_0x4fe8a4,_0x6ee6f1){_0x4fe8a4=_0x4fe8a4-0x0;let _0x175131=a801_0x6ee6[_0x4fe8a4];return _0x175131;};const _0x8cab0d=a801_0x1751;'use strict';const moment=require(_0x8cab0d('0x11')),util=require(_0x8cab0d('0x61')),_=require(_0x8cab0d('0x5c')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x8cab0d('0x49')),{getSocket}=require(_0x8cab0d('0x56')),socket=getSocket(),interaction_log=require(_0x8cab0d('0x63'))(_0x8cab0d('0x18')),db=require('../../mysqldb')['db'],{Op}=require(_0x8cab0d('0x0'));require(_0x8cab0d('0x5'))[_0x8cab0d('0x32')](socket);const jayson=require(_0x8cab0d('0x4d')),client=jayson['client'][_0x8cab0d('0x38')]({'port':0x232c}),client9002=jayson[_0x8cab0d('0x19')][_0x8cab0d('0x38')]({'port':0x232a});function respondWithRpcPromise(_0xe3053b,_0x2860a5,_0x197395,_0x3a7a60){return new Promise(function(_0x2acc91,_0x5410cc){const _0x212336=a801_0x1751,_0x108306=_0x3a7a60||client;return _0x108306[_0x212336('0x24')](_0xe3053b,_0x197395)[_0x212336('0x65')](function(_0x454476){const _0x2e502b=_0x212336;logger[_0x2e502b('0x3c')](_0x2e502b('0x4c'),_0x2860a5,_0x2e502b('0x21')),logger[_0x2e502b('0x4b')](_0x2e502b('0x53'),_0x2860a5,'request\x20sent',JSON[_0x2e502b('0x57')](_0x454476));if(_0x454476[_0x2e502b('0x37')]){if(_0x454476[_0x2e502b('0x37')][_0x2e502b('0x45')]===0x1f4)return logger[_0x2e502b('0x37')](_0x2e502b('0x4c'),_0x2860a5,_0x454476[_0x2e502b('0x37')][_0x2e502b('0x5f')]),_0x5410cc(_0x454476[_0x2e502b('0x37')]['message']);return logger['error'](_0x2e502b('0x4c'),_0x2860a5,_0x454476[_0x2e502b('0x37')][_0x2e502b('0x5f')]),_0x2acc91(_0x454476[_0x2e502b('0x37')][_0x2e502b('0x5f')]);}else logger[_0x2e502b('0x3c')](_0x2e502b('0x4c'),_0x2860a5,_0x2e502b('0x21')),_0x2acc91(_0x454476[_0x2e502b('0xe')][_0x2e502b('0x5f')]);})[_0x212336('0x3f')](function(_0x449fdd){const _0x48cf86=_0x212336;logger['error'](_0x48cf86('0x4c'),_0x2860a5,_0x449fdd),_0x5410cc(_0x449fdd);});});}function respondWithResult(_0x4c3a73,_0x58263c){return _0x58263c=_0x58263c||0xc8,function(_0x3db39a){const _0xc97343=a801_0x1751;if(_0x3db39a)return _0x4c3a73['status'](_0x58263c)[_0xc97343('0x10')](_0x3db39a);};}function respondWithFilteredResult(_0x1f84d8,_0x32e60a){return function(_0x3e420d){const _0x510745=a801_0x1751;if(_0x3e420d){const _0x48ccfd=_0x3e420d[_0x510745('0x2')],_0x3b866f=_0x32e60a[_0x510745('0x3a')];let _0x237e1c=_0x32e60a[_0x510745('0x3a')]+_0x32e60a['limit'],_0x3a8eec;return _0x237e1c>=_0x48ccfd?(_0x237e1c=_0x48ccfd,_0x3a8eec=0xc8):_0x3a8eec=0xce,_0x1f84d8[_0x510745('0x12')](_0x3a8eec),_0x1f84d8['set'](_0x510745('0x2d'),_0x3b866f+'-'+_0x237e1c+'/'+_0x48ccfd)[_0x510745('0x10')](_0x3e420d);}return null;};}function saveUpdates(_0x32a8ab){return function(_0x4a4e6f){const _0x334007=a801_0x1751;if(_0x4a4e6f)return _0x4a4e6f[_0x334007('0x16')](_0x32a8ab)[_0x334007('0x65')](function(_0x5f08fb){return _0x5f08fb;});return null;};}function removeEntity(_0x4c8683){return function(_0x31aabe){const _0x1b42bb=a801_0x1751;if(_0x31aabe)return _0x31aabe['destroy']()[_0x1b42bb('0x65')](function(){_0x4c8683['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x227635){return function(_0x503529){const _0x567a40=a801_0x1751;return!_0x503529&&_0x227635[_0x567a40('0x26')](0x194),_0x503529;};}function handleError(_0x4650e2,_0x290ec4){return _0x290ec4=_0x290ec4||0x1f4,function(_0x228031){const _0x36a1ae=a801_0x1751;logger[_0x36a1ae('0x37')](_0x228031['stack']),_0x228031[_0x36a1ae('0xc')]&&delete _0x228031['name'],_0x4650e2['status'](_0x290ec4)[_0x36a1ae('0x1d')](_0x228031);};}exports[_0x8cab0d('0x3b')]=function(_0x3fea0e,_0x25ccbe){const _0x2e3877=_0x8cab0d;let _0xfed9ae={};const _0xd16ed9={},_0xb00a83={'count':0x0,'rows':[]},_0x5da4ef=_[_0x2e3877('0x31')](db['WhatsappMessage'][_0x2e3877('0x17')],function(_0x31bad8){const _0x407993=_0x2e3877;return{'name':_0x31bad8[_0x407993('0x47')],'type':_0x31bad8[_0x407993('0x1a')]['key']};});_0xd16ed9[_0x2e3877('0x1')]=_[_0x2e3877('0x31')](_0x5da4ef,_0x2e3877('0xc')),_0xd16ed9[_0x2e3877('0x44')]=_[_0x2e3877('0x1c')](_0x3fea0e[_0x2e3877('0x44')]),_0xd16ed9[_0x2e3877('0x34')]=_[_0x2e3877('0x22')](_0xd16ed9['model'],_0xd16ed9[_0x2e3877('0x44')]),_0xfed9ae[_0x2e3877('0x50')]=_[_0x2e3877('0x22')](_0xd16ed9['model'],qs[_0x2e3877('0x46')](_0x3fea0e[_0x2e3877('0x44')][_0x2e3877('0x46')])),_0xfed9ae['attributes']=_0xfed9ae[_0x2e3877('0x50')]['length']?_0xfed9ae[_0x2e3877('0x50')]:_0xd16ed9['model'];typeof _0x3fea0e['query'][_0x2e3877('0x27')]==='undefined'&&(_0xfed9ae[_0x2e3877('0x66')]=qs[_0x2e3877('0x66')](_0x3fea0e[_0x2e3877('0x44')]['limit']),_0xfed9ae[_0x2e3877('0x3a')]=qs[_0x2e3877('0x3a')](_0x3fea0e[_0x2e3877('0x44')][_0x2e3877('0x3a')]));_0xfed9ae[_0x2e3877('0x5d')]=qs[_0x2e3877('0x5b')](_0x3fea0e[_0x2e3877('0x44')]['sort']),_0xfed9ae[_0x2e3877('0x42')]=qs[_0x2e3877('0x34')](_['pick'](_0x3fea0e[_0x2e3877('0x44')],_0xd16ed9['filters']),_0x5da4ef);_0x3fea0e['query'][_0x2e3877('0x5e')]&&(_0xfed9ae['where']=_['merge'](_0xfed9ae[_0x2e3877('0x42')],{[Op['or']]:_['map'](_0x5da4ef,function(_0x1b5cbe){const _0x329e50=_0x2e3877;if(_0x1b5cbe[_0x329e50('0x1a')]!==_0x329e50('0x13')){const _0xb82ef1={};return _0xb82ef1[_0x1b5cbe['name']]={[Op['like']]:'%'+_0x3fea0e[_0x329e50('0x44')][_0x329e50('0x5e')]+'%'},_0xb82ef1;}})}));_0xfed9ae=_[_0x2e3877('0x1b')]({},_0xfed9ae,_0x3fea0e[_0x2e3877('0x54')]);const _0x4e83f7={'where':_0xfed9ae[_0x2e3877('0x42')]};return db['WhatsappMessage'][_0x2e3877('0x2')](_0x4e83f7)['then'](function(_0x4f7de5){const _0x4349dc=_0x2e3877;return _0xb00a83['count']=_0x4f7de5,_0x3fea0e[_0x4349dc('0x44')]['includeAll']&&(_0xfed9ae[_0x4349dc('0x40')]=[{'all':!![]}]),db[_0x4349dc('0x15')]['findAll'](_0xfed9ae);})['then'](function(_0x48da90){const _0x5cf844=_0x2e3877;return _0xb00a83[_0x5cf844('0x43')]=_0x48da90,_0xb00a83;})[_0x2e3877('0x65')](respondWithFilteredResult(_0x25ccbe,_0xfed9ae))[_0x2e3877('0x3f')](handleError(_0x25ccbe,null));},exports[_0x8cab0d('0x36')]=function(_0x2e7e10,_0x43ffa3){const _0x44bfcd=_0x8cab0d;let _0x5d7c85={'raw':!![],'where':{'id':_0x2e7e10['params']['id']}};const _0x1142b0={};return _0x1142b0['model']=_[_0x44bfcd('0x1c')](db[_0x44bfcd('0x15')][_0x44bfcd('0x17')]),_0x1142b0[_0x44bfcd('0x44')]=_[_0x44bfcd('0x1c')](_0x2e7e10[_0x44bfcd('0x44')]),_0x1142b0['filters']=_[_0x44bfcd('0x22')](_0x1142b0[_0x44bfcd('0x1')],_0x1142b0[_0x44bfcd('0x44')]),_0x5d7c85[_0x44bfcd('0x50')]=_[_0x44bfcd('0x22')](_0x1142b0[_0x44bfcd('0x1')],qs[_0x44bfcd('0x46')](_0x2e7e10[_0x44bfcd('0x44')][_0x44bfcd('0x46')])),_0x5d7c85['attributes']=_0x5d7c85[_0x44bfcd('0x50')][_0x44bfcd('0x4e')]?_0x5d7c85[_0x44bfcd('0x50')]:_0x1142b0[_0x44bfcd('0x1')],_0x2e7e10[_0x44bfcd('0x44')]['includeAll']&&(_0x5d7c85[_0x44bfcd('0x40')]=[{'all':!![]}]),_0x5d7c85=_[_0x44bfcd('0x1b')]({},_0x5d7c85,_0x2e7e10[_0x44bfcd('0x54')]),db['WhatsappMessage']['findOne'](_0x5d7c85)[_0x44bfcd('0x65')](handleEntityNotFound(_0x43ffa3,null))[_0x44bfcd('0x65')](respondWithResult(_0x43ffa3,null))[_0x44bfcd('0x3f')](handleError(_0x43ffa3,null));},exports['create']=function(_0x34e465,_0x49689d){const _0x2b5a47=_0x8cab0d;return db[_0x2b5a47('0x15')][_0x2b5a47('0x9')](_0x34e465['body'],{})[_0x2b5a47('0x65')](respondWithResult(_0x49689d,0xc9))['catch'](handleError(_0x49689d,null));},exports[_0x8cab0d('0x16')]=function(_0x49750d,_0x1f0be8){const _0x315353=_0x8cab0d;return _0x49750d[_0x315353('0xa')]['id']&&delete _0x49750d[_0x315353('0xa')]['id'],db[_0x315353('0x15')][_0x315353('0x35')]({'where':{'id':_0x49750d[_0x315353('0x2a')]['id']}})[_0x315353('0x65')](handleEntityNotFound(_0x1f0be8,null))[_0x315353('0x65')](saveUpdates(_0x49750d[_0x315353('0xa')],null))[_0x315353('0x65')](respondWithResult(_0x1f0be8,null))[_0x315353('0x3f')](handleError(_0x1f0be8,null));},exports[_0x8cab0d('0x3e')]=function(_0x54285a,_0x3319d6){const _0xfd66fc=_0x8cab0d;return db[_0xfd66fc('0x15')][_0xfd66fc('0x35')]({'where':{'id':_0x54285a[_0xfd66fc('0x2a')]['id']}})[_0xfd66fc('0x65')](handleEntityNotFound(_0x3319d6,null))[_0xfd66fc('0x65')](removeEntity(_0x3319d6,null))[_0xfd66fc('0x3f')](handleError(_0x3319d6,null));},exports['describe']=function(_0x14ce11,_0x564628){const _0x2e8b99=_0x8cab0d;return db[_0x2e8b99('0x15')]['describe']()[_0x2e8b99('0x65')](respondWithResult(_0x564628,null))[_0x2e8b99('0x3f')](handleError(_0x564628,null));},exports['accept']=function(_0x4b0d03,_0x4738a1){const _0x9cbcc=_0x8cab0d,_0x4c5439={'channel':_0x9cbcc('0xd')};return _0x4b0d03[_0x9cbcc('0xa')]['id']&&delete _0x4b0d03[_0x9cbcc('0xa')]['id'],_0x4b0d03['body'][_0x9cbcc('0x2f')]=!![],_0x4b0d03['body'][_0x9cbcc('0x59')]=moment()[_0x9cbcc('0x8')](_0x9cbcc('0x64')),_0x4b0d03[_0x9cbcc('0xa')]['UserId']=_0x4b0d03['body'][_0x9cbcc('0x48')]||_0x4b0d03[_0x9cbcc('0x30')]['id'],db[_0x9cbcc('0x15')][_0x9cbcc('0x35')]({'where':{'id':_0x4b0d03[_0x9cbcc('0x2a')]['id'],'UserId':null},'include':[{'model':db[_0x9cbcc('0x7')],'as':'Contact'}]})[_0x9cbcc('0x65')](handleEntityNotFound(_0x4738a1,null))[_0x9cbcc('0x65')](saveUpdates(_0x4b0d03[_0x9cbcc('0xa')],null))[_0x9cbcc('0x65')](function(_0x458389){const _0x2a3a3b=_0x9cbcc;if(_0x458389)return _0x4c5439[_0x2a3a3b('0x5f')]=_0x458389[_0x2a3a3b('0x2b')]({'plain':!![]}),db[_0x2a3a3b('0x28')][_0x2a3a3b('0x35')]({'where':{'id':_0x458389[_0x2a3a3b('0x39')]}});return null;})[_0x9cbcc('0x65')](handleEntityNotFound(_0x4738a1,null))[_0x9cbcc('0x65')](function(_0x578c15){const _0x550100=_0x9cbcc;if(_0x578c15)return _0x578c15[_0x550100('0x16')]({'UserId':_0x4b0d03[_0x550100('0xa')][_0x550100('0x48')],'read1stAt':_[_0x550100('0xb')](_0x578c15[_0x550100('0x51')])?moment()[_0x550100('0x8')](_0x550100('0x64')):undefined});return null;})[_0x9cbcc('0x65')](function(_0x240399){const _0x595700=_0x9cbcc;if(_0x240399)return _0x4c5439[_0x595700('0x4a')]=_0x240399['get']({'plain':!![]}),interaction_log[_0x595700('0x3c')]('[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x4b0d03['user']['id'],_0x4b0d03[_0x595700('0x30')][_0x595700('0xc')],_0x4b0d03['user']['role'],_0x4c5439['interaction']['id'],_0x4b0d03[_0x595700('0xa')]?JSON[_0x595700('0x57')](_0x4b0d03[_0x595700('0xa')]):'null'),respondWithRpcPromise('AcceptMessage',_0x595700('0x1e'),_0x4c5439);return null;})[_0x9cbcc('0x65')](function(_0x4a45c4){const _0x2b8cdf=_0x9cbcc;if(_0x4a45c4){if(_0x4b0d03['body']['manual'])return _0x4c5439[_0x2b8cdf('0x5f')]['interface']=util[_0x2b8cdf('0x8')](_0x2b8cdf('0x52'),_0x4b0d03[_0x2b8cdf('0x30')][_0x2b8cdf('0xc')]),_0x4c5439['message']['channel']=_0x4c5439[_0x2b8cdf('0x3')],_0x4c5439[_0x2b8cdf('0x5f')]['event']=_0x2b8cdf('0x41'),respondWithRpcPromise(_0x2b8cdf('0x20'),'EventManager',{'event':_0x2b8cdf('0x3d'),'message':_0x4c5439[_0x2b8cdf('0x5f')]},client9002)[_0x2b8cdf('0x65')](function(){return _0x4c5439;});return _0x4c5439;}return null;})[_0x9cbcc('0x65')](respondWithResult(_0x4738a1,null))[_0x9cbcc('0x3f')](handleError(_0x4738a1,null));},exports[_0x8cab0d('0x25')]=function(_0x42a2ac,_0x455490){const _0x3f26da=_0x8cab0d,_0x3fe414={'agent':{},'channel':_0x3f26da('0xd')};return _0x42a2ac[_0x3f26da('0xa')]['id']&&delete _0x42a2ac[_0x3f26da('0xa')]['id'],_0x42a2ac['body'][_0x3f26da('0x48')]=_0x42a2ac[_0x3f26da('0xa')]['UserId']||_0x42a2ac[_0x3f26da('0x30')]['id'],_0x3fe414[_0x3f26da('0x23')]['id']=_0x42a2ac[_0x3f26da('0xa')]['UserId'],db[_0x3f26da('0x15')][_0x3f26da('0x35')]({'where':{'id':_0x42a2ac['params']['id'],'UserId':null}})['then'](handleEntityNotFound(_0x455490,null))[_0x3f26da('0x65')](function(_0x432c15){const _0x58d751=_0x3f26da;if(_0x432c15)return _0x3fe414[_0x58d751('0x5f')]=_0x432c15[_0x58d751('0x2b')]({'plain':!![]}),db[_0x58d751('0x28')]['findOne']({'where':{'id':_0x432c15['WhatsappInteractionId']}});return null;})[_0x3f26da('0x65')](handleEntityNotFound(_0x455490,null))[_0x3f26da('0x65')](function(_0x28921d){const _0x3f039b=_0x3f26da;if(_0x28921d)return _0x3fe414[_0x3f039b('0x4a')]=_0x28921d[_0x3f039b('0x2b')]({'plain':!![]}),interaction_log[_0x3f039b('0x3c')](_0x3f039b('0x55'),_0x42a2ac[_0x3f039b('0x30')]['id'],_0x42a2ac[_0x3f039b('0x30')][_0x3f039b('0xc')],_0x42a2ac[_0x3f039b('0x30')][_0x3f039b('0x1f')],_0x3fe414[_0x3f039b('0x4a')]['id'],_0x42a2ac['body']?JSON[_0x3f039b('0x57')](_0x42a2ac['body']):'null'),respondWithRpcPromise(_0x3f039b('0x14'),_0x3f039b('0x2e'),_0x3fe414);return null;})[_0x3f26da('0x65')](function(_0x2972a1){const _0x323f7f=_0x3f26da;if(_0x2972a1)return _0x2972a1[_0x323f7f('0x5f')][_0x323f7f('0x58')]=util['format']('SIP/%s',_0x42a2ac[_0x323f7f('0x30')][_0x323f7f('0xc')]),_0x2972a1[_0x323f7f('0x5f')][_0x323f7f('0x3')]=_0x3fe414['channel'],_0x2972a1[_0x323f7f('0x5f')][_0x323f7f('0x2c')]=_0x323f7f('0x25'),respondWithRpcPromise(_0x323f7f('0x20'),_0x323f7f('0x20'),{'event':_0x323f7f('0x6'),'message':_0x2972a1[_0x323f7f('0x5f')]},client9002),_0x3fe414;return null;})[_0x3f26da('0x65')](respondWithResult(_0x455490,null))[_0x3f26da('0x3f')](handleError(_0x455490,null));},exports[_0x8cab0d('0x12')]=function(_0xffb6fe,_0x3b246b){const _0x61a54c=_0x8cab0d;_0xffb6fe[_0x61a54c('0xa')]['id']&&delete _0xffb6fe[_0x61a54c('0xa')]['id'];let _0x3933da;return db[_0x61a54c('0x15')][_0x61a54c('0x35')]({'where':{'id':_0xffb6fe['params']['id']}})[_0x61a54c('0x65')](handleEntityNotFound(_0x3b246b,null))[_0x61a54c('0x65')](function(_0x50f6de){const _0x376fd2=_0x61a54c;if(_0x50f6de)return _0x3933da=_0x50f6de,db['WhatsappAccount']['findOne']({'where':{'id':_0x50f6de[_0x376fd2('0x5a')]}});})['then'](handleEntityNotFound(_0x3b246b,null))[_0x61a54c('0x65')](function(_0x293dd8){const _0x41e5d6=_0x61a54c;if(_0x293dd8){logger[_0x41e5d6('0x4b')]('WhatsppMessage,\x20%s,\x20%s,\x20%s','status',_0x41e5d6('0x62'),_0x293dd8[_0x41e5d6('0x1a')],util[_0x41e5d6('0x60')](_0xffb6fe[_0x41e5d6('0xa')],{'showHidden':![],'depth':null}));switch(_0x293dd8[_0x41e5d6('0x1a')]){case _0x41e5d6('0x4'):if(_0xffb6fe[_0x41e5d6('0xa')][_0x41e5d6('0xf')]&&_0xffb6fe[_0x41e5d6('0xa')][_0x41e5d6('0xf')]===_0x3933da[_0x41e5d6('0x4f')]&&_0xffb6fe[_0x41e5d6('0xa')]['MessageStatus']&&_0xffb6fe[_0x41e5d6('0xa')][_0x41e5d6('0x29')]===_0x41e5d6('0x2f'))return _0x3933da[_0x41e5d6('0x16')]({'read':!![]});else logger[_0x41e5d6('0x37')](_0x41e5d6('0x33'),'status',_0x41e5d6('0x4'),util['inspect'](_0xffb6fe[_0x41e5d6('0xa')],{'showHidden':![],'depth':null}));break;}return _0x3933da;}})[_0x61a54c('0x65')](respondWithResult(_0x3b246b,null))[_0x61a54c('0x3f')](handleError(_0x3b246b,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index 0807fc3..0df6f7e 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a802_0x43f1=['undefined','WhatsappMessage','save','addHook','emit','../../mysqldb','update','setMaxListeners','exports'];(function(_0x1c3ec2,_0x43f1b7){const _0x140201=function(_0x2d0c61){while(--_0x2d0c61){_0x1c3ec2['push'](_0x1c3ec2['shift']());}};_0x140201(++_0x43f1b7);}(a802_0x43f1,0x9c));const a802_0x1402=function(_0x1c3ec2,_0x43f1b7){_0x1c3ec2=_0x1c3ec2-0x0;let _0x140201=a802_0x43f1[_0x1c3ec2];return _0x140201;};const _0x5dc071=a802_0x1402;'use strict';const EventEmitter=require('events'),WhatsappMessage=require(_0x5dc071('0x2'))['db'][_0x5dc071('0x7')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x5dc071('0x4')](0x0);const events={'afterCreate':_0x5dc071('0x8'),'afterUpdate':_0x5dc071('0x3'),'afterDestroy':'remove'};function emitEvent(_0x2d0c61){return function(_0x31cf12){const _0x4ffef2=a802_0x1402;WhatsappMessageEvents[_0x4ffef2('0x1')](_0x2d0c61+':'+_0x31cf12['id'],_0x31cf12),WhatsappMessageEvents['emit'](_0x2d0c61,_0x31cf12);};}for(const e in events){if(typeof events[e]!==_0x5dc071('0x6')){const event=events[e];WhatsappMessage[_0x5dc071('0x0')](e,emitEvent(event));}}module[_0x5dc071('0x5')]=WhatsappMessageEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.model.js b/server/api/whatsappMessage/whatsappMessage.model.js index effa656..f0c3fc7 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a803_0x44c9=['WhatsappMessage,\x20%s,\x20%s,\x20%s','out','secret','token','accountSid','phone','afterCreate','WhatsappInteraction','update','WhatsappAccountId','define','type','/status?token=','models','remote','WhatsappInteractionId','./whatsappMessage.attributes','utf8mb4_unicode_ci','whatsapp_messages','util','catch','isNil','findOne','lodash','body','../../config/logger','sid','api','error','whatsapp:','then','authToken','exports','WhatsappMessage','toLowerCase','direction','get','/api/whatsapp/messages/','utf8mb4','create','createdAt','messageId','twilio'];(function(_0x1bbf5f,_0x44c9b8){const _0x34b211=function(_0x5a79fc){while(--_0x5a79fc){_0x1bbf5f['push'](_0x1bbf5f['shift']());}};_0x34b211(++_0x44c9b8);}(a803_0x44c9,0x169));const a803_0x34b2=function(_0x1bbf5f,_0x44c9b8){_0x1bbf5f=_0x1bbf5f-0x0;let _0x34b211=a803_0x44c9[_0x1bbf5f];return _0x34b211;};const _0x544700=a803_0x34b2;'use strict';const _=require(_0x544700('0x6')),util=require(_0x544700('0x2')),logger=require(_0x544700('0x8'))(_0x544700('0xa')),attributes=require(_0x544700('0x2a'));module[_0x544700('0xf')]=function(_0x5a79fc){const _0x1ba522=_0x544700,_0x3aff23=_0x5a79fc[_0x1ba522('0x27')],_0x1b33a3=_0x5a79fc[_0x1ba522('0x24')](_0x1ba522('0x10'),attributes,{'tableName':_0x1ba522('0x1'),'paranoid':![],'indexes':[{'name':_0x1ba522('0x18'),'fields':[_0x1ba522('0x18')]},{'name':'fti_whatsapp_messages','fields':[_0x1ba522('0x7')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x199326){const _0xeebe50=_0x1ba522,_0x36409e=_0x199326[_0xeebe50('0x13')]({'plain':!![]});(_0x36409e[_0xeebe50('0x12')][_0xeebe50('0x11')]()==='in'||_0x36409e[_0xeebe50('0x12')][_0xeebe50('0x11')]()===_0xeebe50('0x1b')&&!_0x36409e[_0xeebe50('0x1c')]&&!_[_0xeebe50('0x4')](_0x36409e['UserId']))&&_0x3aff23[_0xeebe50('0x21')][_0xeebe50('0x5')]({'where':{'id':_0x36409e[_0xeebe50('0x29')]}})['then'](function(_0xc7bcfc){const _0x28db3e=_0xeebe50;_0xc7bcfc&&_0xc7bcfc[_0x28db3e('0x22')]({'lastMsgAt':_0x36409e[_0x28db3e('0x17')],'lastMsgDirection':_0x36409e['direction']['toLowerCase']()});})[_0xeebe50('0x3')](function(_0x22b0db){const _0xd1eed2=_0xeebe50;console[_0xd1eed2('0xb')](_0x22b0db);});if(_0x36409e[_0xeebe50('0x12')]==='out'&&!_0x36409e[_0xeebe50('0x1c')]){let _0xcb15df;_0x3aff23['WhatsappAccount'][_0xeebe50('0x5')]({'where':{'id':_0x36409e[_0xeebe50('0x23')]},'raw':!![]})[_0xeebe50('0xd')](function(_0x6f2752){const _0x23cb18=_0xeebe50;_0xcb15df=_0x6f2752;if(_0xcb15df&&_0xcb15df[_0x23cb18('0x25')])switch(_0xcb15df['type']){case _0x23cb18('0x19'):{const _0x517cfb=require(_0x23cb18('0x19'));if(_0xcb15df['accountSid']&&_0xcb15df['authToken']&&_0xcb15df[_0x23cb18('0x1f')]){const _0x1d32d6=new _0x517cfb(_0xcb15df[_0x23cb18('0x1e')],_0xcb15df[_0x23cb18('0xe')]);_0x1d32d6['messages'][_0x23cb18('0x16')]({'body':_0x36409e[_0x23cb18('0x7')],'to':'whatsapp:'+_0x36409e[_0x23cb18('0x1f')],'from':_0x23cb18('0xc')+_0xcb15df[_0x23cb18('0x1f')],'statusCallback':_0xcb15df[_0x23cb18('0x28')]+_0x23cb18('0x14')+_0x36409e['id']+_0x23cb18('0x26')+_0xcb15df[_0x23cb18('0x1d')]})[_0x23cb18('0xd')](function(_0x313633){const _0x587050=_0x23cb18;if(_0x313633[_0x587050('0x9')])return _0x199326['update']({'messageId':_0x313633[_0x587050('0x9')]});})['catch'](function(_0x46d70d){const _0x2ddd7b=_0x23cb18;logger[_0x2ddd7b('0xb')]('WhatsappMessage,\x20%s,\x20%s,\x20%s',_0x2ddd7b('0x20'),_0x2ddd7b('0x19'),util['inspect'](_0x46d70d,{'showHidden':![],'depth':null}));});}else logger['error'](_0x23cb18('0x1a'),'afterCreate',_0x23cb18('0x19'),'Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');}break;}})['finally'](function(){return null;});}else return null;}},'charset':_0x1ba522('0x15'),'collate':_0x1ba522('0x0')});return _0x1b33a3;}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.rpc.js b/server/api/whatsappMessage/whatsappMessage.rpc.js index ec26c23..642bf2c 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a804_0x543c=['error','catch','debug','../../mysqldb','then','options','register','message','CreateWhatsappMessage','raw','stringify','../../config/logger','body','create','WhatsappMessage','rpc'];(function(_0x55bb7c,_0x543c32){const _0x23162b=function(_0x13f634){while(--_0x13f634){_0x55bb7c['push'](_0x55bb7c['shift']());}};_0x23162b(++_0x543c32);}(a804_0x543c,0x1e8));const a804_0x2316=function(_0x55bb7c,_0x543c32){_0x55bb7c=_0x55bb7c-0x0;let _0x23162b=a804_0x543c[_0x55bb7c];return _0x23162b;};const _0x50cfc2=a804_0x2316;'use strict';const db=require(_0x50cfc2('0xb'))['db'],logger=require(_0x50cfc2('0x3'))(_0x50cfc2('0x7')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./whatsappMessage.socket')[_0x50cfc2('0xe')](socket),exports[_0x50cfc2('0x0')]=function(_0x13f634){const _0x216e68=this;return new Promise(function(_0x3e735a,_0x3834c8){const _0x372224=a804_0x2316;return db[_0x372224('0x6')][_0x372224('0x5')](_0x13f634[_0x372224('0x4')],{'raw':_0x13f634[_0x372224('0xd')]?_0x13f634[_0x372224('0xd')][_0x372224('0x1')]===undefined?!![]:![]:!![]})[_0x372224('0xc')](function(_0x56bd69){const _0xd0035d=_0x372224;logger['info']('CreateWhatsappMessage',_0x13f634),logger[_0xd0035d('0xa')]('CreateWhatsappMessage',_0x13f634,JSON[_0xd0035d('0x2')](_0x56bd69)),_0x3e735a(_0x56bd69);})[_0x372224('0x9')](function(_0x2d35e1){const _0x3d08f1=_0x372224;logger[_0x3d08f1('0x8')]('CreateWhatsappMessage',_0x2d35e1['message'],_0x13f634),_0x3834c8(_0x216e68[_0x3d08f1('0x8')](0x1f4,_0x2d35e1[_0x3d08f1('0xf')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index 53e4be2..1bb6e02 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a805_0x25a2=['save','whatsappMessage:','emit','update','register','length','./whatsappMessage.events'];(function(_0x3f4abc,_0x25a2ed){const _0x267743=function(_0x659d41){while(--_0x659d41){_0x3f4abc['push'](_0x3f4abc['shift']());}};_0x267743(++_0x25a2ed);}(a805_0x25a2,0x133));const a805_0x2677=function(_0x3f4abc,_0x25a2ed){_0x3f4abc=_0x3f4abc-0x0;let _0x267743=a805_0x25a2[_0x3f4abc];return _0x267743;};const _0x825869=a805_0x2677;'use strict';const WhatsappMessageEvents=require(_0x825869('0x0')),events=[_0x825869('0x1'),'remove',_0x825869('0x4')];function createListener(_0x659d41,_0x370f83){return function(_0x421255){const _0x1b46f3=a805_0x2677;_0x370f83[_0x1b46f3('0x3')](_0x659d41,_0x421255);};}exports[_0x825869('0x5')]=function(_0x1e5575){const _0xaf7ece=_0x825869;for(let _0x1584d4=0x0,_0x5bbf0c=events[_0xaf7ece('0x6')];_0x1584d4<_0x5bbf0c;_0x1584d4++){const _0x282dfb=events[_0x1584d4],_0x5da56c=createListener(_0xaf7ece('0x2')+_0x282dfb,_0x1e5575);WhatsappMessageEvents['on'](_0x282dfb,_0x5da56c);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 58a0127..3a94e0d 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a806_0x13d4=['/:id/users','update','express','describe','/:id','./whatsappQueue.controller','Router','show','/:id/teams','create','getMembers','../../components/auth/service','removeTeams','destroy','addTeams','/describe','exports','isAuthenticated','removeAgents','post','index','delete','getAgents','get'];(function(_0xd9f04d,_0x13d4e3){const _0x5978fd=function(_0xffcb2){while(--_0xffcb2){_0xd9f04d['push'](_0xd9f04d['shift']());}};_0x5978fd(++_0x13d4e3);}(a806_0x13d4,0x19b));const a806_0x5978=function(_0xd9f04d,_0x13d4e3){_0xd9f04d=_0xd9f04d-0x0;let _0x5978fd=a806_0x13d4[_0xd9f04d];return _0x5978fd;};const _0x416d4f=a806_0x5978;'use strict';const express=require(_0x416d4f('0x17')),router=express[_0x416d4f('0x3')](),auth=require(_0x416d4f('0x8')),controller=require(_0x416d4f('0x2'));router[_0x416d4f('0x14')]('/',auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x11')]),router[_0x416d4f('0x14')](_0x416d4f('0xc'),auth['isAuthenticated'](),controller[_0x416d4f('0x0')]),router[_0x416d4f('0x14')](_0x416d4f('0x1'),auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x4')]),router[_0x416d4f('0x14')]('/:id/members',auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x7')]),router[_0x416d4f('0x14')](_0x416d4f('0x5'),auth[_0x416d4f('0xe')](),controller['getTeams']),router[_0x416d4f('0x14')](_0x416d4f('0x15'),auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x13')]),router[_0x416d4f('0x10')]('/',auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x6')]),router[_0x416d4f('0x10')]('/:id/teams',auth['isAuthenticated'](),controller[_0x416d4f('0xb')]),router['post']('/:id/users',auth['isAuthenticated'](),controller['addAgents']),router['put'](_0x416d4f('0x1'),auth['isAuthenticated'](),controller[_0x416d4f('0x16')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x416d4f('0xa')]),router[_0x416d4f('0x12')]('/:id/teams',auth[_0x416d4f('0xe')](),controller[_0x416d4f('0x9')]),router[_0x416d4f('0x12')](_0x416d4f('0x15'),auth['isAuthenticated'](),controller[_0x416d4f('0xf')]),module[_0x416d4f('0xd')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index 43cbcda..7c465a2 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a807_0x21e8=['STRING','name','rrmemory','roundrobin','sequelize','ENUM','exports'];(function(_0x5cf637,_0x21e820){const _0x2bf355=function(_0x40f4b5){while(--_0x40f4b5){_0x5cf637['push'](_0x5cf637['shift']());}};_0x2bf355(++_0x21e820);}(a807_0x21e8,0x158));const a807_0x2bf3=function(_0x5cf637,_0x21e820){_0x5cf637=_0x5cf637-0x0;let _0x2bf355=a807_0x21e8[_0x5cf637];return _0x2bf355;};const _0x441c0c=a807_0x2bf3;'use strict';const Sequelize=require(_0x441c0c('0x3'));module[_0x441c0c('0x5')]={'name':{'type':Sequelize[_0x441c0c('0x6')],'unique':_0x441c0c('0x0'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x441c0c('0x4')](_0x441c0c('0x1'),'beepall',_0x441c0c('0x2'))},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index 178f127..c63c1d7 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a808_0x429c=['userProfileId','value','where','../../components/parsers/qs','stack','addAgents','tq.TeamId','findOrCreate','ut.TeamId\x20=\x20tq.TeamId','describe','include','toString','offset','omit','json','user','type','removeTeams','from','status','interface','ut.UserId\x20=\x20?','order','sendStatus','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAll','WhatsappQueueId','push','Content-Range','./whatsappQueue.socket','undefined','transaction','all','lodash','Team','catch','clone','set','userWhatsappQueue:remove','body','findAndCountAll','isArray','VIRTUAL','User','addTeams','end','map','then','query','intersection','update','getAgents','team_has_whatsapp_queues','Unable\x20to\x20retrieve\x20the\x20current\x20user','createdAt','ids','sort','options','nolimit','name','format','whatsappPause','WhatsappQueueId\x20=\x20?','rows','../../mysqldb','Agents','emit','isEmpty','error','keys','autoAssociation','destroy','filter','union','WhatsappQueue','WhatsappQueues','filters','api','length','role','model','includes','get','send','forEach','../../rediscache','merge','params','count','UserId','like','pick','agent','every','userWhatsappQueue:save','compact','fields','UserProfileSection','show','getTeams','index','UserWhatsappQueue','getMembers','findOne','attributes','sequelize','create','limit','each','includeAll','removeAgents','select','../../config/logger','UserProfileResource','squel','updatedAt','rawAttributes','TeamId'];(function(_0x4b5aaf,_0x429c08){const _0x4fe405=function(_0x2d157b){while(--_0x2d157b){_0x4b5aaf['push'](_0x4b5aaf['shift']());}};_0x4fe405(++_0x429c08);}(a808_0x429c,0x6e));const a808_0x4fe4=function(_0x4b5aaf,_0x429c08){_0x4b5aaf=_0x4b5aaf-0x0;let _0x4fe405=a808_0x429c[_0x4b5aaf];return _0x4fe405;};const _0x29acfd=a808_0x4fe4;'use strict';const util=require('util'),_=require(_0x29acfd('0x29')),squel=require(_0x29acfd('0x4')),qs=require(_0x29acfd('0xb')),logger=require(_0x29acfd('0x2'))(_0x29acfd('0x55')),{getSocket}=require(_0x29acfd('0x5d')),socket=getSocket(),db=require(_0x29acfd('0x48'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x29acfd('0x25'))['register'](socket);function respondWithStatusCode(_0x2d157b,_0x4826d7){return _0x4826d7=_0x4826d7||0xcc,function(_0x2c1ca1){const _0x5b78be=a808_0x4fe4;if(_0x2c1ca1)return _0x2d157b['sendStatus'](_0x4826d7);return _0x2d157b[_0x5b78be('0x1b')](_0x4826d7)[_0x5b78be('0x35')]();};}function respondWithResult(_0x50511e,_0x467f1f){return _0x467f1f=_0x467f1f||0xc8,function(_0x1e2d81){if(_0x1e2d81)return _0x50511e['status'](_0x467f1f)['json'](_0x1e2d81);};}function respondWithFilteredResult(_0x340d15,_0x59c166){return function(_0x10e643){const _0x1f97b7=a808_0x4fe4;if(_0x10e643){const _0x73015e=_0x10e643[_0x1f97b7('0x60')],_0x411f67=_0x59c166[_0x1f97b7('0x14')];let _0x35953a=_0x59c166[_0x1f97b7('0x14')]+_0x59c166[_0x1f97b7('0x73')],_0xa90a89;return _0x35953a>=_0x73015e?(_0x35953a=_0x73015e,_0xa90a89=0xc8):_0xa90a89=0xce,_0x340d15[_0x1f97b7('0x1b')](_0xa90a89),_0x340d15[_0x1f97b7('0x2d')](_0x1f97b7('0x24'),_0x411f67+'-'+_0x35953a+'/'+_0x73015e)[_0x1f97b7('0x16')](_0x10e643);}return null;};}function saveUpdates(_0x476af5){return function(_0x51c767){const _0x5612e4=a808_0x4fe4;if(_0x51c767)return _0x51c767[_0x5612e4('0x3a')](_0x476af5)[_0x5612e4('0x37')](function(_0x294f02){return _0x294f02;});return null;};}function removeEntity(_0x112209){return function(_0x16f0d8){const _0x3f4eec=a808_0x4fe4;if(_0x16f0d8)return _0x16f0d8[_0x3f4eec('0x4f')]()[_0x3f4eec('0x37')](function(){const _0x5a6e6f=_0x3f4eec,_0x36cc5d=_0x16f0d8[_0x5a6e6f('0x5a')]({'plain':!![]}),_0x27a377=_0x5a6e6f('0x53');return db[_0x5a6e6f('0x3')][_0x5a6e6f('0x4f')]({'where':{'type':_0x27a377,'resourceId':_0x36cc5d['id']}})[_0x5a6e6f('0x37')](function(){return _0x16f0d8;});})[_0x3f4eec('0x37')](function(){const _0x540a2a=_0x3f4eec;_0x112209[_0x540a2a('0x1b')](0xcc)['end']();});};}function handleEntityNotFound(_0x4ecb99){return function(_0x16a51c){const _0x18b0bd=a808_0x4fe4;return!_0x16a51c&&_0x4ecb99[_0x18b0bd('0x1f')](0x194),_0x16a51c;};}function handleError(_0xa4f010,_0x3b54bf){return _0x3b54bf=_0x3b54bf||0x1f4,function(_0x3d1f8e){const _0x1b43fd=a808_0x4fe4;logger[_0x1b43fd('0x4c')](_0x3d1f8e[_0x1b43fd('0xc')]),_0x3d1f8e[_0x1b43fd('0x43')]&&delete _0x3d1f8e[_0x1b43fd('0x43')],_0xa4f010[_0x1b43fd('0x1b')](_0x3b54bf)[_0x1b43fd('0x5b')](_0x3d1f8e);};}exports[_0x29acfd('0x6c')]=function(_0x4dc4ca,_0x5eb569){const _0x248af3=_0x29acfd;let _0xaa37ff={};const _0x533361={},_0x459dc7={'count':0x0,'rows':[]},_0x2a52d4=_[_0x248af3('0x36')](db[_0x248af3('0x52')][_0x248af3('0x6')],function(_0x5f133d){const _0x1243c3=_0x248af3;return{'name':_0x5f133d['fieldName'],'type':_0x5f133d[_0x1243c3('0x18')]['key']};});_0x533361['model']=_[_0x248af3('0x36')](_0x2a52d4,'name'),_0x533361['query']=_['keys'](_0x4dc4ca[_0x248af3('0x38')]),_0x533361[_0x248af3('0x54')]=_['intersection'](_0x533361[_0x248af3('0x58')],_0x533361[_0x248af3('0x38')]),_0xaa37ff[_0x248af3('0x70')]=_[_0x248af3('0x39')](_0x533361[_0x248af3('0x58')],qs[_0x248af3('0x68')](_0x4dc4ca[_0x248af3('0x38')][_0x248af3('0x68')])),_0xaa37ff[_0x248af3('0x70')]=_0xaa37ff[_0x248af3('0x70')][_0x248af3('0x56')]?_0xaa37ff[_0x248af3('0x70')]:_0x533361[_0x248af3('0x58')];typeof _0x4dc4ca[_0x248af3('0x38')][_0x248af3('0x42')]==='undefined'&&(_0xaa37ff[_0x248af3('0x73')]=qs[_0x248af3('0x73')](_0x4dc4ca['query'][_0x248af3('0x73')]),_0xaa37ff[_0x248af3('0x14')]=qs[_0x248af3('0x14')](_0x4dc4ca[_0x248af3('0x38')][_0x248af3('0x14')]));_0xaa37ff['order']=qs[_0x248af3('0x40')](_0x4dc4ca[_0x248af3('0x38')]['sort']),_0xaa37ff['where']=qs[_0x248af3('0x54')](_[_0x248af3('0x63')](_0x4dc4ca[_0x248af3('0x38')],_0x533361[_0x248af3('0x54')]),_0x2a52d4);_0x4dc4ca[_0x248af3('0x38')][_0x248af3('0x50')]&&(_0xaa37ff['where']=_['merge'](_0xaa37ff['where'],{[Op['or']]:_[_0x248af3('0x36')](_0x2a52d4,function(_0x57b3db){const _0x22df5c=_0x248af3;if(_0x57b3db['type']!==_0x22df5c('0x32')){const _0xdd52c3={};return _0xdd52c3[_0x57b3db[_0x22df5c('0x43')]]={[Op[_0x22df5c('0x62')]]:'%'+_0x4dc4ca[_0x22df5c('0x38')][_0x22df5c('0x50')]+'%'},_0xdd52c3;}})}));_0xaa37ff=_[_0x248af3('0x5e')]({},_0xaa37ff,_0x4dc4ca[_0x248af3('0x41')]);const _0x5d3f1d={'where':_0xaa37ff[_0x248af3('0xa')]};return db[_0x248af3('0x52')]['count'](_0x5d3f1d)[_0x248af3('0x37')](function(_0x2b95cf){const _0x510a86=_0x248af3;return _0x459dc7[_0x510a86('0x60')]=_0x2b95cf,_0x4dc4ca[_0x510a86('0x38')][_0x510a86('0x75')]&&(_0xaa37ff[_0x510a86('0x12')]=[{'all':!![]}]),db['WhatsappQueue'][_0x510a86('0x21')](_0xaa37ff);})[_0x248af3('0x37')](function(_0x1dedce){const _0x18ee97=_0x248af3;return _0x459dc7[_0x18ee97('0x47')]=_0x1dedce,_0x459dc7;})['then'](respondWithFilteredResult(_0x5eb569,_0xaa37ff))[_0x248af3('0x2b')](handleError(_0x5eb569,null));},exports[_0x29acfd('0x6a')]=function(_0x13c158,_0x427360){const _0x2ec0bc=_0x29acfd;let _0x34353d={'raw':!![],'where':{'id':_0x13c158[_0x2ec0bc('0x5f')]['id']}};const _0x2f8ea8={};return _0x2f8ea8[_0x2ec0bc('0x58')]=_[_0x2ec0bc('0x4d')](db[_0x2ec0bc('0x52')][_0x2ec0bc('0x6')]),_0x2f8ea8[_0x2ec0bc('0x38')]=_['keys'](_0x13c158[_0x2ec0bc('0x38')]),_0x2f8ea8['filters']=_[_0x2ec0bc('0x39')](_0x2f8ea8[_0x2ec0bc('0x58')],_0x2f8ea8[_0x2ec0bc('0x38')]),_0x34353d[_0x2ec0bc('0x70')]=_[_0x2ec0bc('0x39')](_0x2f8ea8[_0x2ec0bc('0x58')],qs[_0x2ec0bc('0x68')](_0x13c158[_0x2ec0bc('0x38')]['fields'])),_0x34353d[_0x2ec0bc('0x70')]=_0x34353d[_0x2ec0bc('0x70')][_0x2ec0bc('0x56')]?_0x34353d[_0x2ec0bc('0x70')]:_0x2f8ea8[_0x2ec0bc('0x58')],_0x13c158[_0x2ec0bc('0x38')][_0x2ec0bc('0x75')]&&(_0x34353d[_0x2ec0bc('0x12')]=[{'all':!![]}]),_0x34353d=_[_0x2ec0bc('0x5e')]({},_0x34353d,_0x13c158[_0x2ec0bc('0x41')]),db['WhatsappQueue'][_0x2ec0bc('0x6f')](_0x34353d)[_0x2ec0bc('0x37')](handleEntityNotFound(_0x427360,null))[_0x2ec0bc('0x37')](respondWithResult(_0x427360,null))[_0x2ec0bc('0x2b')](handleError(_0x427360,null));},exports[_0x29acfd('0x72')]=function(_0x5611c5,_0x327020){const _0x2b084b=_0x29acfd;return db[_0x2b084b('0x52')][_0x2b084b('0x72')](_0x5611c5[_0x2b084b('0x2f')],{})[_0x2b084b('0x37')](function(_0x1e8b5a){const _0x13b9ae=_0x2b084b,_0x20b033=_0x5611c5['user']['get']({'plain':!![]});if(!_0x20b033)throw new Error(_0x13b9ae('0x3d'));if(_0x20b033[_0x13b9ae('0x57')]===_0x13b9ae('0x17')){const _0x5ccb7f=_0x1e8b5a[_0x13b9ae('0x5a')]({'plain':!![]}),_0x5bb6e0='WhatsappQueues';return db[_0x13b9ae('0x69')][_0x13b9ae('0x6f')]({'where':{'name':_0x5bb6e0,'userProfileId':_0x20b033[_0x13b9ae('0x8')]},'raw':!![]})[_0x13b9ae('0x37')](function(_0x232dd7){const _0x5b2923=_0x13b9ae;return _0x232dd7&&_0x232dd7[_0x5b2923('0x4e')]===0x0?db[_0x5b2923('0x3')][_0x5b2923('0x72')]({'name':_0x5ccb7f[_0x5b2923('0x43')],'resourceId':_0x5ccb7f['id'],'type':_0x232dd7[_0x5b2923('0x43')],'sectionId':_0x232dd7['id']},{})[_0x5b2923('0x37')](function(){return _0x1e8b5a;}):_0x1e8b5a;})['catch'](function(_0x4e8550){const _0x24a433=_0x13b9ae;logger['error'](_0x24a433('0x20'),_0x4e8550);throw _0x4e8550;});}return _0x1e8b5a;})['then'](respondWithResult(_0x327020,0xc9))[_0x2b084b('0x2b')](handleError(_0x327020,null));},exports[_0x29acfd('0x3a')]=function(_0x36c609,_0x5a65bd){const _0x1270f2=_0x29acfd;return _0x36c609['body']['id']&&delete _0x36c609['body']['id'],db[_0x1270f2('0x52')][_0x1270f2('0x6f')]({'where':{'id':_0x36c609[_0x1270f2('0x5f')]['id']}})[_0x1270f2('0x37')](handleEntityNotFound(_0x5a65bd,null))[_0x1270f2('0x37')](saveUpdates(_0x36c609[_0x1270f2('0x2f')],null))[_0x1270f2('0x37')](respondWithResult(_0x5a65bd,null))['catch'](handleError(_0x5a65bd,null));},exports[_0x29acfd('0x4f')]=function(_0x175b6a,_0x23f31d){const _0x53681e=_0x29acfd;return db[_0x53681e('0x52')]['findOne']({'where':{'id':_0x175b6a[_0x53681e('0x5f')]['id']}})[_0x53681e('0x37')](handleEntityNotFound(_0x23f31d,null))['then'](removeEntity(_0x23f31d,null))[_0x53681e('0x2b')](handleError(_0x23f31d,null));},exports[_0x29acfd('0x11')]=function(_0x3202ab,_0x19f2ce){const _0x418c31=_0x29acfd;return db[_0x418c31('0x52')][_0x418c31('0x11')]()[_0x418c31('0x37')](respondWithResult(_0x19f2ce,null))['catch'](handleError(_0x19f2ce,null));},exports[_0x29acfd('0x6e')]=function(_0x3dfa3f,_0x30a633){const _0x56c517=_0x29acfd;let _0x380273={'raw':!![],'where':{}};const _0x3b3576={};let _0x11de73;return db[_0x56c517('0x52')][_0x56c517('0x6f')]({'where':{'id':_0x3dfa3f[_0x56c517('0x5f')]['id']}})[_0x56c517('0x37')](handleEntityNotFound(_0x30a633,null))[_0x56c517('0x37')](function(_0x9d2cc){const _0x2173da=_0x56c517;if(_0x9d2cc)return _0x11de73=_0x9d2cc['get']({'plain':!![]}),_0x3b3576['model']=_[_0x2173da('0x4d')](db[_0x2173da('0x6d')][_0x2173da('0x6')]),_0x3b3576[_0x2173da('0x38')]=_['keys'](_0x3dfa3f[_0x2173da('0x38')]),_0x3b3576[_0x2173da('0x54')]=_[_0x2173da('0x39')](_0x3b3576[_0x2173da('0x58')],_0x3b3576[_0x2173da('0x38')]),_0x380273[_0x2173da('0x70')]=_[_0x2173da('0x39')](_0x3b3576[_0x2173da('0x58')],qs[_0x2173da('0x68')](_0x3dfa3f['query'][_0x2173da('0x68')])),_0x380273[_0x2173da('0x70')]=_0x380273[_0x2173da('0x70')]['length']?_0x380273['attributes']:_0x3b3576[_0x2173da('0x58')],typeof _0x3dfa3f[_0x2173da('0x38')][_0x2173da('0x42')]===_0x2173da('0x26')&&(_0x380273[_0x2173da('0x73')]=qs[_0x2173da('0x73')](_0x3dfa3f[_0x2173da('0x38')][_0x2173da('0x73')]),_0x380273[_0x2173da('0x14')]=qs[_0x2173da('0x14')](_0x3dfa3f[_0x2173da('0x38')][_0x2173da('0x14')])),_0x380273[_0x2173da('0x1e')]=qs[_0x2173da('0x40')](_0x3dfa3f['query'][_0x2173da('0x40')]),_0x380273[_0x2173da('0xa')]=qs[_0x2173da('0x54')](_[_0x2173da('0x63')](_0x3dfa3f[_0x2173da('0x38')],_0x3b3576[_0x2173da('0x54')])),_0x380273[_0x2173da('0xa')][_0x2173da('0x22')]=_0x9d2cc['id'],_0x3dfa3f[_0x2173da('0x38')][_0x2173da('0x50')]&&(_0x380273[_0x2173da('0xa')]=_[_0x2173da('0x5e')](_0x380273[_0x2173da('0xa')],{[Op['or']]:_[_0x2173da('0x36')](_0x380273[_0x2173da('0x70')],function(_0x120f80){const _0x1b1bb4=_0x2173da,_0x38b9c4={};return _0x38b9c4[_0x120f80]={[Op[_0x1b1bb4('0x62')]]:'%'+_0x3dfa3f[_0x1b1bb4('0x38')][_0x1b1bb4('0x50')]+'%'},_0x38b9c4;})})),_0x380273=_[_0x2173da('0x5e')]({},_0x380273,_0x3dfa3f[_0x2173da('0x41')]),db[_0x2173da('0x6d')]['findAll'](_0x380273);})[_0x56c517('0x37')](function(_0x162eef){const _0x1128ef=_0x56c517;if(_0x162eef)return db['User'][_0x1128ef('0x30')]({'where':{'id':_[_0x1128ef('0x36')](_0x162eef,_0x1128ef('0x61')),'role':_0x1128ef('0x64')},'attributes':['id',_0x1128ef('0x43'),_0x1128ef('0x45'),'updatedAt',_0x1128ef('0x3e')]});})[_0x56c517('0x37')](function(_0x25bb39){const _0x21840f=_0x56c517;return _0x25bb39?{'count':_0x25bb39[_0x21840f('0x60')],'rows':_['map'](_0x25bb39[_0x21840f('0x47')],function(_0x17c276){const _0x305917=_0x21840f;return{'membername':_0x17c276[_0x305917('0x43')],'UserId':_0x17c276['id'],'queue_name':_0x11de73[_0x305917('0x43')],'WhatsappQueueId':_0x11de73['id'],'interface':util[_0x305917('0x44')]('%s/%s','SIP',_0x17c276[_0x305917('0x43')]),'penalty':0x0,'paused':_0x17c276['whatsappPause'],'createdAt':_0x17c276[_0x305917('0x3e')],'updatedAt':_0x17c276[_0x305917('0x5')]};})}:{'count':0x0,'rows':[]};})[_0x56c517('0x37')](respondWithFilteredResult(_0x30a633,_0x380273))[_0x56c517('0x2b')](handleError(_0x30a633,null));},exports[_0x29acfd('0x6b')]=function(_0x4f80bc,_0x1b0f5f){const _0x340035=_0x29acfd;let _0x184295={};const _0x150090={};let _0x4320e7,_0x5b7f07;return db[_0x340035('0x52')][_0x340035('0x6f')]({'where':{'id':_0x4f80bc[_0x340035('0x5f')]['id']}})[_0x340035('0x37')](handleEntityNotFound(_0x1b0f5f,null))[_0x340035('0x37')](function(_0x58308e){const _0x4100bf=_0x340035;if(_0x58308e)return _0x4320e7=_0x58308e,_0x150090[_0x4100bf('0x58')]=_['keys'](db['Team'][_0x4100bf('0x6')]),_0x150090[_0x4100bf('0x38')]=_[_0x4100bf('0x4d')](_0x4f80bc[_0x4100bf('0x38')]),_0x150090[_0x4100bf('0x54')]=_[_0x4100bf('0x39')](_0x150090['model'],_0x150090[_0x4100bf('0x38')]),_0x184295[_0x4100bf('0x70')]=_['intersection'](_0x150090[_0x4100bf('0x58')],qs[_0x4100bf('0x68')](_0x4f80bc[_0x4100bf('0x38')][_0x4100bf('0x68')])),_0x184295[_0x4100bf('0x70')]=_0x184295['attributes'][_0x4100bf('0x56')]?_0x184295[_0x4100bf('0x70')]:_0x150090['model'],_0x184295[_0x4100bf('0x1e')]=qs['sort'](_0x4f80bc[_0x4100bf('0x38')][_0x4100bf('0x40')]),_0x184295[_0x4100bf('0xa')]=qs['filters'](_[_0x4100bf('0x63')](_0x4f80bc[_0x4100bf('0x38')],_0x150090[_0x4100bf('0x54')])),_0x4f80bc['query'][_0x4100bf('0x50')]&&(_0x184295[_0x4100bf('0xa')]=_[_0x4100bf('0x5e')](_0x184295[_0x4100bf('0xa')],{[Op['or']]:_[_0x4100bf('0x36')](_0x184295[_0x4100bf('0x70')],function(_0x5a6372){const _0x2dc56c=_0x4100bf,_0x18b41f={};return _0x18b41f[_0x5a6372]={[Op[_0x2dc56c('0x62')]]:'%'+_0x4f80bc[_0x2dc56c('0x38')][_0x2dc56c('0x50')]+'%'},_0x18b41f;})})),_0x184295=_[_0x4100bf('0x5e')]({},_0x184295,_0x4f80bc[_0x4100bf('0x41')]),_0x4320e7[_0x4100bf('0x6b')](_0x184295);})[_0x340035('0x37')](function(_0x21d9d6){const _0x2b809=_0x340035;if(_0x21d9d6)return _0x5b7f07=_0x21d9d6[_0x2b809('0x56')],typeof _0x4f80bc[_0x2b809('0x38')][_0x2b809('0x42')]===_0x2b809('0x26')&&(_0x184295['limit']=qs[_0x2b809('0x73')](_0x4f80bc[_0x2b809('0x38')][_0x2b809('0x73')]),_0x184295[_0x2b809('0x14')]=qs['offset'](_0x4f80bc[_0x2b809('0x38')]['offset'])),_0x4320e7[_0x2b809('0x6b')](_0x184295);})[_0x340035('0x37')](function(_0xa0798){if(_0xa0798)return _0xa0798?{'count':_0x5b7f07,'rows':_0xa0798}:null;})['then'](respondWithResult(_0x1b0f5f,null))[_0x340035('0x2b')](handleError(_0x1b0f5f,null));},exports[_0x29acfd('0x34')]=function(_0x1021b3,_0x10993a){const _0x17c436=_0x29acfd,_0x4bec0f=_0x1021b3[_0x17c436('0x2f')][_0x17c436('0x3f')];return db['Team'][_0x17c436('0x21')]({'where':{'id':_0x4bec0f},'attributes':['id'],'include':[{'model':db['User'],'as':_0x17c436('0x49'),'attributes':['id',_0x17c436('0x43'),'online','voicePause',_0x17c436('0x1c')],'raw':!![]}]})['then'](function(_0x498504){const _0x3d9eee=_0x17c436;if(_0x498504){const _0xfbc532=_['flatMap'](_0x498504,function(_0x3bd832){const _0x2fb5c3=a808_0x4fe4,_0x2b0499=_0x3bd832[_0x2fb5c3('0x5a')]({'plain':!![]});return _0x2b0499['Agents'];});return db[_0x3d9eee('0x52')][_0x3d9eee('0x6f')]({'where':{'id':_0x1021b3[_0x3d9eee('0x5f')]['id']}})[_0x3d9eee('0x37')](function(_0x58b626){const _0x903e6=_0x3d9eee;return db[_0x903e6('0x71')][_0x903e6('0x27')](function(_0x363ce2){const _0x278a2d=_0x903e6;return _0x58b626[_0x278a2d('0x34')](_0x4bec0f,{'transaction':_0x363ce2})[_0x278a2d('0x37')](function(){const _0x52a770=_0x278a2d;return Promise[_0x52a770('0x74')](_0xfbc532,function(_0x272fb8){const _0x3600be=_0x52a770;return db[_0x3600be('0x6d')][_0x3600be('0xf')]({'where':{'UserId':_0x272fb8['id'],'WhatsappQueueId':_0x1021b3[_0x3600be('0x5f')]['id']},'transaction':_0x363ce2});});})[_0x278a2d('0x37')](function(){_0xfbc532['forEach'](function(_0x438882){const _0x568614=a808_0x4fe4;socket[_0x568614('0x4a')](_0x568614('0x66'),{'UserId':_0x438882['id'],'WhatsappQueueId':_0x58b626['id']});});});});});}})[_0x17c436('0x37')](respondWithStatusCode(_0x10993a,null))[_0x17c436('0x2b')](handleError(_0x10993a,null));},exports[_0x29acfd('0x19')]=function(_0x570d3b,_0xd68b55){const _0x5a72de=_0x29acfd;return db[_0x5a72de('0x2a')]['findAll']({'where':{'id':_0x570d3b['query']['ids']},'attributes':['id'],'include':[{'model':db[_0x5a72de('0x33')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x5a72de('0x37')](handleEntityNotFound(_0xd68b55,null))['then'](function(_0x26c0c8){const _0x59e5a4=_0x5a72de,_0x39f427=_[_0x59e5a4('0x36')](_0x26c0c8,'id');let _0x1e9086=[];const _0x2d4a9d=[],_0x3082cf=squel[_0x59e5a4('0x1')]();_0x3082cf['field'](_0x59e5a4('0xe'))[_0x59e5a4('0x1a')](_0x59e5a4('0x3c'),'tq')['join']('user_has_teams','ut',_0x59e5a4('0x10'))[_0x59e5a4('0xa')](_0x59e5a4('0x46'),_0x570d3b[_0x59e5a4('0x5f')]['id']);for(let _0xb8fc32=0x0;_0xb8fc32<_0x26c0c8[_0x59e5a4('0x56')];_0xb8fc32+=0x1){const _0x4b7333=_0x26c0c8[_0xb8fc32];for(let _0x6b7eb9=0x0;_0x6b7eb9<_0x4b7333[_0x59e5a4('0x49')]['length'];_0x6b7eb9+=0x1){const _0x58328e=_0x4b7333[_0x59e5a4('0x49')][_0x6b7eb9],_0x149bb0=_0x3082cf[_0x59e5a4('0x2c')]();_0x149bb0[_0x59e5a4('0xa')](_0x59e5a4('0x1d'),_0x58328e['id']),_0x2d4a9d[_0x59e5a4('0x23')](db[_0x59e5a4('0x71')]['query'](_0x149bb0[_0x59e5a4('0x13')](),{'type':QueryTypes['SELECT']})['then'](function(_0x376263){const _0x52afbf=_0x59e5a4;if(_0x376263[_0x52afbf('0x56')]===0x1)return _0x58328e['id'];else{const _0x5b005a=_[_0x52afbf('0x65')](_[_0x52afbf('0x36')](_0x376263,_0x52afbf('0x7')),function(_0x1dfaf3){const _0x1c25ff=_0x52afbf;return _[_0x1c25ff('0x59')](_0x39f427,_0x1dfaf3);});if(_0x5b005a)return _0x58328e['id'];}}));}}return Promise[_0x59e5a4('0x28')](_0x2d4a9d)[_0x59e5a4('0x37')](function(_0x17c026){const _0xd9c09f=_0x59e5a4;return _0x1e9086=_(_0x1e9086)[_0xd9c09f('0x51')](_0x17c026)[_0xd9c09f('0x67')]()[_0xd9c09f('0x9')](),db['WhatsappQueue'][_0xd9c09f('0x6f')]({'where':{'id':_0x570d3b[_0xd9c09f('0x5f')]['id']}})[_0xd9c09f('0x37')](function(_0x193d04){const _0x25d678=_0xd9c09f;return db[_0x25d678('0x71')][_0x25d678('0x27')](function(_0x1e1bb2){const _0x2429c0=_0x25d678;return _0x193d04['removeTeams'](_0x570d3b[_0x2429c0('0x38')][_0x2429c0('0x3f')],{'transaction':_0x1e1bb2})[_0x2429c0('0x37')](function(){const _0x4c40db=_0x2429c0;if(!_[_0x4c40db('0x4b')](_0x1e9086))return _0x193d04[_0x4c40db('0x0')](_0x1e9086,{'transaction':_0x1e1bb2});})[_0x2429c0('0x37')](function(){const _0x12a7b1=_0x2429c0;_0x1e9086[_0x12a7b1('0x5c')](function(_0x12fc70){const _0x5108dc=_0x12a7b1;socket[_0x5108dc('0x4a')](_0x5108dc('0x2e'),{'UserId':_0x12fc70,'WhatsappQueueId':_0x193d04['id']});});});});});});})[_0x5a72de('0x37')](respondWithStatusCode(_0xd68b55,null))['catch'](handleError(_0xd68b55,null));},exports[_0x29acfd('0xd')]=function(_0x7bffe4,_0x1ea100){const _0xa9b45d=_0x29acfd;return db[_0xa9b45d('0x52')][_0xa9b45d('0x6f')]({'where':{'id':_0x7bffe4[_0xa9b45d('0x5f')]['id']}})['then'](function(_0xc09140){const _0x32878f=_0xa9b45d;if(_0xc09140)return _0xc09140['addAgents'](_0x7bffe4[_0x32878f('0x2f')][_0x32878f('0x3f')],{'through':_[_0x32878f('0x15')](_0x7bffe4['body'],[_0x32878f('0x3f'),'id'])})[_0x32878f('0x37')](function(_0x4a5c0e){const _0x3c6295=_0x32878f;for(let _0x2232f7=0x0;_0x2232f7<_0x7bffe4[_0x3c6295('0x2f')]['ids'][_0x3c6295('0x56')];_0x2232f7+=0x1){socket[_0x3c6295('0x4a')](_0x3c6295('0x66'),{'UserId':_0x7bffe4['body'][_0x3c6295('0x3f')][_0x2232f7],'WhatsappQueueId':_0x7bffe4[_0x3c6295('0x5f')]['id']});}return _0x4a5c0e;});})['then'](respondWithResult(_0x1ea100,null))[_0xa9b45d('0x2b')](handleError(_0x1ea100,null));},exports['removeAgents']=function(_0x18b0ed,_0x2272b2){const _0x2eca7f=_0x29acfd;return db[_0x2eca7f('0x52')][_0x2eca7f('0x6f')]({'where':{'id':_0x18b0ed[_0x2eca7f('0x5f')]['id']}})['then'](handleEntityNotFound(_0x2272b2,null))['then'](function(_0xad1c53){const _0x50c86f=_0x2eca7f;if(_0xad1c53)return _0xad1c53[_0x50c86f('0x0')](_0x18b0ed[_0x50c86f('0x38')]['ids'])[_0x50c86f('0x37')](function(){const _0x993139=_0x50c86f;if(_[_0x993139('0x31')](_0x18b0ed['query'][_0x993139('0x3f')]))for(let _0x549bb5=0x0;_0x549bb5<_0x18b0ed[_0x993139('0x38')]['ids'][_0x993139('0x56')];_0x549bb5+=0x1){socket[_0x993139('0x4a')](_0x993139('0x2e'),{'UserId':Number(_0x18b0ed[_0x993139('0x38')][_0x993139('0x3f')][_0x549bb5]),'WhatsappQueueId':Number(_0x18b0ed['params']['id'])});}else socket[_0x993139('0x4a')]('userWhatsappQueue:remove',{'UserId':Number(_0x18b0ed['query'][_0x993139('0x3f')]),'WhatsappQueueId':Number(_0x18b0ed[_0x993139('0x5f')]['id'])});});})['then'](respondWithStatusCode(_0x2272b2,null))[_0x2eca7f('0x2b')](handleError(_0x2272b2,null));},exports[_0x29acfd('0x3b')]=function(_0x380748,_0xd1321d){const _0x3af799=_0x29acfd;let _0x4a6ac4={};const _0x4a3994={};let _0x25ca2f,_0x3e22a4;return db['WhatsappQueue']['findOne']({'where':{'id':_0x380748[_0x3af799('0x5f')]['id']}})[_0x3af799('0x37')](handleEntityNotFound(_0xd1321d,null))[_0x3af799('0x37')](function(_0x3250a7){const _0x1e0afb=_0x3af799;if(_0x3250a7)return _0x25ca2f=_0x3250a7,_0x4a3994['model']=_[_0x1e0afb('0x4d')](db[_0x1e0afb('0x33')]['rawAttributes']),_0x4a3994[_0x1e0afb('0x38')]=_[_0x1e0afb('0x4d')](_0x380748[_0x1e0afb('0x38')]),_0x4a3994[_0x1e0afb('0x54')]=_[_0x1e0afb('0x39')](_0x4a3994[_0x1e0afb('0x58')],_0x4a3994[_0x1e0afb('0x38')]),_0x4a6ac4[_0x1e0afb('0x70')]=_[_0x1e0afb('0x39')](_0x4a3994[_0x1e0afb('0x58')],qs['fields'](_0x380748[_0x1e0afb('0x38')]['fields'])),_0x4a6ac4['attributes']=_0x4a6ac4['attributes'][_0x1e0afb('0x56')]?_0x4a6ac4[_0x1e0afb('0x70')]:_0x4a3994[_0x1e0afb('0x58')],_0x4a6ac4['order']=qs[_0x1e0afb('0x40')](_0x380748[_0x1e0afb('0x38')][_0x1e0afb('0x40')]),_0x4a6ac4['where']=qs['filters'](_[_0x1e0afb('0x63')](_0x380748['query'],_0x4a3994[_0x1e0afb('0x54')])),_0x380748[_0x1e0afb('0x38')][_0x1e0afb('0x50')]&&(_0x4a6ac4[_0x1e0afb('0xa')]=_['merge'](_0x4a6ac4[_0x1e0afb('0xa')],{[Op['or']]:_[_0x1e0afb('0x36')](_0x4a6ac4[_0x1e0afb('0x70')],function(_0x603e3e){const _0x275fb5={};return _0x275fb5[_0x603e3e]={[Op['like']]:'%'+_0x380748['query']['filter']+'%'},_0x275fb5;})})),_0x4a6ac4=_[_0x1e0afb('0x5e')]({},_0x4a6ac4,_0x380748['options']),_0x25ca2f[_0x1e0afb('0x3b')](_0x4a6ac4);})['then'](function(_0x2e4db3){const _0x448984=_0x3af799;if(_0x2e4db3)return _0x3e22a4=_0x2e4db3[_0x448984('0x56')],typeof _0x380748[_0x448984('0x38')]['nolimit']===_0x448984('0x26')&&(_0x4a6ac4[_0x448984('0x73')]=qs[_0x448984('0x73')](_0x380748[_0x448984('0x38')][_0x448984('0x73')]),_0x4a6ac4[_0x448984('0x14')]=qs['offset'](_0x380748['query'][_0x448984('0x14')])),_0x25ca2f[_0x448984('0x3b')](_0x4a6ac4);})['then'](function(_0xed3b3){if(_0xed3b3)return _0xed3b3?{'count':_0x3e22a4,'rows':_0xed3b3}:null;})[_0x3af799('0x37')](respondWithResult(_0xd1321d,null))['catch'](handleError(_0xd1321d,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index 56d1389..3aaf2c2 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a809_0x5f4d=['emit','exports','save','setMaxListeners','events','update'];(function(_0x134943,_0x5f4dcd){const _0x36a438=function(_0x2f0c3b){while(--_0x2f0c3b){_0x134943['push'](_0x134943['shift']());}};_0x36a438(++_0x5f4dcd);}(a809_0x5f4d,0x8f));const a809_0x36a4=function(_0x134943,_0x5f4dcd){_0x134943=_0x134943-0x0;let _0x36a438=a809_0x5f4d[_0x134943];return _0x36a438;};const _0x1ae34f=a809_0x36a4;'use strict';const EventEmitter=require(_0x1ae34f('0x5')),WhatsappQueue=require('../../mysqldb')['db']['WhatsappQueue'],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x1ae34f('0x4')](0x0);const events={'afterCreate':_0x1ae34f('0x3'),'afterUpdate':_0x1ae34f('0x0'),'afterDestroy':'remove'};function emitEvent(_0x2f0c3b){return function(_0x4c5fd3){const _0x1ab219=a809_0x36a4;WhatsappQueueEvents[_0x1ab219('0x1')](_0x2f0c3b+':'+_0x4c5fd3['id'],_0x4c5fd3),WhatsappQueueEvents[_0x1ab219('0x1')](_0x2f0c3b,_0x4c5fd3);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue['addHook'](e,emitEvent(event));}}module[_0x1ae34f('0x2')]=WhatsappQueueEvents; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index bffad42..97ee2c6 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a810_0x2df9=['define','exports','./whatsappQueue.attributes'];(function(_0x2b8335,_0x2df9b4){const _0x5522eb=function(_0x43e03e){while(--_0x43e03e){_0x2b8335['push'](_0x2b8335['shift']());}};_0x5522eb(++_0x2df9b4);}(a810_0x2df9,0x184));const a810_0x5522=function(_0x2b8335,_0x2df9b4){_0x2b8335=_0x2b8335-0x0;let _0x5522eb=a810_0x2df9[_0x2b8335];return _0x5522eb;};const _0x12b9dc=a810_0x5522;'use strict';const attributes=require(_0x12b9dc('0x1'));module[_0x12b9dc('0x0')]=function(_0x43e03e){const _0x1c9cec=_0x12b9dc,_0x1919ed=_0x43e03e[_0x1c9cec('0x2')]('WhatsappQueue',attributes,{'tableName':'whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1919ed;}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index 0f53be4..ba0e1c6 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a811_0x2a01=['limit','WhatsappQueue','raw','options','GetWhatsappQueue','../../rediscache','ShowWhatsappQueue','then','rpc','message','debug','map','include','findOne','register','info','error','where','model','stringify','attributes','catch','./whatsappQueue.socket'];(function(_0x1e11f0,_0x2a01fd){const _0x42ee82=function(_0x1b8ccf){while(--_0x1b8ccf){_0x1e11f0['push'](_0x1e11f0['shift']());}};_0x42ee82(++_0x2a01fd);}(a811_0x2a01,0xcc));const a811_0x42ee=function(_0x1e11f0,_0x2a01fd){_0x1e11f0=_0x1e11f0-0x0;let _0x42ee82=a811_0x2a01[_0x1e11f0];return _0x42ee82;};const _0x1ecf47=a811_0x42ee;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x1ecf47('0xb')),{getSocket}=require(_0x1ecf47('0x8')),socket=getSocket();require(_0x1ecf47('0x2'))[_0x1ecf47('0x11')](socket),exports[_0x1ecf47('0x7')]=function(_0x1b8ccf){const _0x50223c=this;return new Promise(function(_0x35ce71,_0x5c8335){const _0x45cdc1=a811_0x42ee;return db['WhatsappQueue']['findAll']({'raw':_0x1b8ccf[_0x45cdc1('0x6')]?_0x1b8ccf[_0x45cdc1('0x6')][_0x45cdc1('0x5')]===undefined?!![]:![]:!![],'where':_0x1b8ccf[_0x45cdc1('0x6')]?_0x1b8ccf[_0x45cdc1('0x6')][_0x45cdc1('0x14')]||null:null,'attributes':_0x1b8ccf[_0x45cdc1('0x6')]?_0x1b8ccf['options'][_0x45cdc1('0x0')]||null:null,'limit':_0x1b8ccf['options']?_0x1b8ccf[_0x45cdc1('0x6')][_0x45cdc1('0x3')]||null:null,'include':_0x1b8ccf['options']?_0x1b8ccf[_0x45cdc1('0x6')]['include']?_['map'](_0x1b8ccf[_0x45cdc1('0x6')]['include'],function(_0x532006){const _0x1adedc=_0x45cdc1;return{'model':db[_0x532006[_0x1adedc('0x15')]],'as':_0x532006['as'],'attributes':_0x532006['attributes'],'include':_0x532006['include']?_['map'](_0x532006['include'],function(_0x581c06){const _0xbf7d1c=_0x1adedc;return{'model':db[_0x581c06['model']],'as':_0x581c06['as'],'attributes':_0x581c06[_0xbf7d1c('0x0')],'include':_0x581c06[_0xbf7d1c('0xf')]?_['map'](_0x581c06[_0xbf7d1c('0xf')],function(_0x1f02b1){const _0x17e334=_0xbf7d1c;return{'model':db[_0x1f02b1[_0x17e334('0x15')]],'as':_0x1f02b1['as'],'attributes':_0x1f02b1['attributes']};}):[]};}):[]};}):[]:[]})[_0x45cdc1('0xa')](function(_0x413dc4){const _0x385935=_0x45cdc1;logger[_0x385935('0x12')](_0x385935('0x7'),_0x1b8ccf),logger[_0x385935('0xd')](_0x385935('0x7'),_0x1b8ccf,JSON[_0x385935('0x16')](_0x413dc4)),_0x35ce71(_0x413dc4);})['catch'](function(_0x4f7d93){const _0x4184c3=_0x45cdc1;logger['error'](_0x4184c3('0x7'),_0x4f7d93['message'],_0x1b8ccf),_0x5c8335(_0x50223c['error'](0x1f4,_0x4f7d93['message']));});});},exports[_0x1ecf47('0x9')]=function(_0x72554e){const _0x36e3f3=this;return new Promise(function(_0x42fe48,_0x58ec2f){const _0x259a2b=a811_0x42ee;return db[_0x259a2b('0x4')][_0x259a2b('0x10')]({'raw':_0x72554e[_0x259a2b('0x6')]?_0x72554e['options'][_0x259a2b('0x5')]===undefined?!![]:![]:!![],'where':_0x72554e[_0x259a2b('0x6')]?_0x72554e[_0x259a2b('0x6')]['where']||null:null,'attributes':_0x72554e['options']?_0x72554e[_0x259a2b('0x6')][_0x259a2b('0x0')]||null:null,'include':_0x72554e[_0x259a2b('0x6')]?_0x72554e[_0x259a2b('0x6')][_0x259a2b('0xf')]?_[_0x259a2b('0xe')](_0x72554e[_0x259a2b('0x6')][_0x259a2b('0xf')],function(_0x79f8d6){const _0x2ed837=_0x259a2b;return{'model':db[_0x79f8d6[_0x2ed837('0x15')]],'as':_0x79f8d6['as'],'attributes':_0x79f8d6['attributes'],'include':_0x79f8d6[_0x2ed837('0xf')]?_[_0x2ed837('0xe')](_0x79f8d6['include'],function(_0x7b1769){const _0xd8e461=_0x2ed837;return{'model':db[_0x7b1769[_0xd8e461('0x15')]],'as':_0x7b1769['as'],'attributes':_0x7b1769['attributes'],'include':_0x7b1769[_0xd8e461('0xf')]?_[_0xd8e461('0xe')](_0x7b1769[_0xd8e461('0xf')],function(_0x477093){const _0xc1c6b5=_0xd8e461;return{'model':db[_0x477093[_0xc1c6b5('0x15')]],'as':_0x477093['as'],'attributes':_0x477093[_0xc1c6b5('0x0')]};}):[]};}):[]};}):[]:[]})[_0x259a2b('0xa')](function(_0x52ccca){const _0x1141ec=_0x259a2b;logger[_0x1141ec('0x12')](_0x1141ec('0x9'),_0x72554e),logger[_0x1141ec('0xd')](_0x1141ec('0x9'),_0x72554e,JSON[_0x1141ec('0x16')](_0x52ccca)),_0x42fe48(_0x52ccca);})[_0x259a2b('0x1')](function(_0x3903d7){const _0x1376c1=_0x259a2b;logger[_0x1376c1('0x13')](_0x1376c1('0x9'),_0x3903d7[_0x1376c1('0xc')],_0x72554e),_0x58ec2f(_0x36e3f3[_0x1376c1('0x13')](0x1f4,_0x3903d7[_0x1376c1('0xc')]));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index f9ae795..4aac527 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a812_0x1145=['./whatsappQueue.events','whatsappQueue:','save','register','emit','remove'];(function(_0x3ac935,_0x1145ef){const _0x1ed724=function(_0x2e8dfb){while(--_0x2e8dfb){_0x3ac935['push'](_0x3ac935['shift']());}};_0x1ed724(++_0x1145ef);}(a812_0x1145,0x15d));const a812_0x1ed7=function(_0x3ac935,_0x1145ef){_0x3ac935=_0x3ac935-0x0;let _0x1ed724=a812_0x1145[_0x3ac935];return _0x1ed724;};const _0x1220a0=a812_0x1ed7;'use strict';const WhatsappQueueEvents=require(_0x1220a0('0x5')),events=[_0x1220a0('0x1'),_0x1220a0('0x4'),'update'];function createListener(_0x2e8dfb,_0x241cbe){return function(_0xc486be){const _0x3d84e6=a812_0x1ed7;_0x241cbe[_0x3d84e6('0x3')](_0x2e8dfb,_0xc486be);};}exports[_0x1220a0('0x2')]=function(_0x5956f1){const _0x26d3d5=_0x1220a0;for(let _0xfbcee8=0x0,_0x4e63cb=events['length'];_0xfbcee8<_0x4e63cb;_0xfbcee8++){const _0x5c7948=events[_0xfbcee8],_0x201381=createListener(_0x26d3d5('0x0')+_0x5c7948,_0x5956f1);WhatsappQueueEvents['on'](_0x5c7948,_0x201381);}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index 41c5885..4cd8c3d 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a813_0x5d20=['express','create','isAuthenticated','delete','post','/:id','./whatsappQueueReport.controller','show','update','Router','index','describe','exports','/describe','get','../../components/auth/service'];(function(_0x341809,_0x5d2088){const _0xe73029=function(_0x3ce7ca){while(--_0x3ce7ca){_0x341809['push'](_0x341809['shift']());}};_0xe73029(++_0x5d2088);}(a813_0x5d20,0x1e3));const a813_0xe730=function(_0x341809,_0x5d2088){_0x341809=_0x341809-0x0;let _0xe73029=a813_0x5d20[_0x341809];return _0xe73029;};const _0x53ff84=a813_0xe730;'use strict';const express=require(_0x53ff84('0xd')),router=express[_0x53ff84('0x6')](),auth=require(_0x53ff84('0xc')),controller=require(_0x53ff84('0x3'));router[_0x53ff84('0xb')]('/',auth[_0x53ff84('0xf')](),controller[_0x53ff84('0x7')]),router[_0x53ff84('0xb')](_0x53ff84('0xa'),auth['isAuthenticated'](),controller[_0x53ff84('0x8')]),router[_0x53ff84('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x53ff84('0x4')]),router[_0x53ff84('0x1')]('/',auth['isAuthenticated'](),controller[_0x53ff84('0xe')]),router['put'](_0x53ff84('0x2'),auth[_0x53ff84('0xf')](),controller[_0x53ff84('0x5')]),router[_0x53ff84('0x0')](_0x53ff84('0x2'),auth[_0x53ff84('0xf')](),controller['destroy']),module[_0x53ff84('0x9')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index b011d20..ec4628d 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a814_0x108f=['exports','STRING','DATE','sequelize'];(function(_0x163ad3,_0x108f77){const _0x22caf0=function(_0x1efbcf){while(--_0x1efbcf){_0x163ad3['push'](_0x163ad3['shift']());}};_0x22caf0(++_0x108f77);}(a814_0x108f,0x7d));const a814_0x22ca=function(_0x163ad3,_0x108f77){_0x163ad3=_0x163ad3-0x0;let _0x22caf0=a814_0x108f[_0x163ad3];return _0x22caf0;};const _0x1ed75d=a814_0x22ca;'use strict';const Sequelize=require(_0x1ed75d('0x2'));module[_0x1ed75d('0x3')]={'uniqueid':{'type':Sequelize[_0x1ed75d('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x1ed75d('0x0')]},'joinAt':{'type':Sequelize[_0x1ed75d('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x1ed75d('0x1')]},'exitAt':{'type':Sequelize[_0x1ed75d('0x1')]},'reason':{'type':Sequelize[_0x1ed75d('0x0')]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js index d96090e..7a25bd0 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a815_0xbaed=['merge','rows','sequelize','findOne','options','filters','include','rawAttributes','WhatsappQueueReport','end','sendStatus','../../mysqldb','fields','where','limit','body','offset','keys','../../config/logger','params','VIRTUAL','Content-Range','undefined','key','includeAll','query','destroy','lodash','order','name','type','model','show','create','map','json','set','describe','length','count','then','attributes','update','status','intersection','fieldName','error','sort','pick','filter','nolimit','index','catch','api'];(function(_0x57dda4,_0xbaed11){const _0x46fdc4=function(_0x14881b){while(--_0x14881b){_0x57dda4['push'](_0x57dda4['shift']());}};_0x46fdc4(++_0xbaed11);}(a815_0xbaed,0x185));const a815_0x46fd=function(_0x57dda4,_0xbaed11){_0x57dda4=_0x57dda4-0x0;let _0x46fdc4=a815_0xbaed[_0x57dda4];return _0x46fdc4;};const _0x5f2f07=a815_0x46fd;'use strict';const _=require(_0x5f2f07('0x10')),qs=require('../../components/parsers/qs'),logger=require(_0x5f2f07('0x7'))(_0x5f2f07('0x2a')),db=require(_0x5f2f07('0x0'))['db'],{Op}=require(_0x5f2f07('0x2d'));function respondWithResult(_0x14881b,_0x58511a){return _0x58511a=_0x58511a||0xc8,function(_0x405cb5){const _0x4b5538=a815_0x46fd;if(_0x405cb5)return _0x14881b[_0x4b5538('0x20')](_0x58511a)[_0x4b5538('0x18')](_0x405cb5);};}function respondWithFilteredResult(_0x3516af,_0x4f8508){return function(_0x4cc30c){const _0x392652=a815_0x46fd;if(_0x4cc30c){const _0x4ea641=_0x4cc30c[_0x392652('0x1c')],_0x19019c=_0x4f8508[_0x392652('0x5')];let _0x41036a=_0x4f8508[_0x392652('0x5')]+_0x4f8508['limit'],_0x272736;return _0x41036a>=_0x4ea641?(_0x41036a=_0x4ea641,_0x272736=0xc8):_0x272736=0xce,_0x3516af[_0x392652('0x20')](_0x272736),_0x3516af[_0x392652('0x19')](_0x392652('0xa'),_0x19019c+'-'+_0x41036a+'/'+_0x4ea641)[_0x392652('0x18')](_0x4cc30c);}return null;};}function saveUpdates(_0x59c03c){return function(_0x36df2b){const _0x551eb4=a815_0x46fd;if(_0x36df2b)return _0x36df2b[_0x551eb4('0x1f')](_0x59c03c)['then'](function(_0x4a895b){return _0x4a895b;});return null;};}function removeEntity(_0x272188){return function(_0x4623d7){if(_0x4623d7)return _0x4623d7['destroy']()['then'](function(){const _0x160918=a815_0x46fd;_0x272188[_0x160918('0x20')](0xcc)[_0x160918('0x34')]();});};}function handleEntityNotFound(_0x62d289){return function(_0x38eff6){const _0x257399=a815_0x46fd;return!_0x38eff6&&_0x62d289[_0x257399('0x35')](0x194),_0x38eff6;};}function handleError(_0x16aa18,_0x5bffd3){return _0x5bffd3=_0x5bffd3||0x1f4,function(_0x50a34b){const _0x5e52b6=a815_0x46fd;logger[_0x5e52b6('0x23')](_0x50a34b['stack']),_0x50a34b['name']&&delete _0x50a34b[_0x5e52b6('0x12')],_0x16aa18[_0x5e52b6('0x20')](_0x5bffd3)['send'](_0x50a34b);};}exports[_0x5f2f07('0x28')]=function(_0x5577ed,_0x1c3478){const _0x346784=_0x5f2f07;let _0x57562c={};const _0x44cdf5={},_0x78bd69={'count':0x0,'rows':[]},_0x26dea0=_['map'](db[_0x346784('0x33')][_0x346784('0x32')],function(_0x3eab63){const _0x4e3502=_0x346784;return{'name':_0x3eab63[_0x4e3502('0x22')],'type':_0x3eab63['type'][_0x4e3502('0xc')]};});_0x44cdf5['model']=_[_0x346784('0x17')](_0x26dea0,_0x346784('0x12')),_0x44cdf5[_0x346784('0xe')]=_[_0x346784('0x6')](_0x5577ed['query']),_0x44cdf5[_0x346784('0x30')]=_['intersection'](_0x44cdf5[_0x346784('0x14')],_0x44cdf5[_0x346784('0xe')]),_0x57562c[_0x346784('0x1e')]=_['intersection'](_0x44cdf5[_0x346784('0x14')],qs[_0x346784('0x1')](_0x5577ed[_0x346784('0xe')][_0x346784('0x1')])),_0x57562c[_0x346784('0x1e')]=_0x57562c[_0x346784('0x1e')][_0x346784('0x1b')]?_0x57562c[_0x346784('0x1e')]:_0x44cdf5[_0x346784('0x14')];typeof _0x5577ed['query'][_0x346784('0x27')]===_0x346784('0xb')&&(_0x57562c[_0x346784('0x3')]=qs['limit'](_0x5577ed['query']['limit']),_0x57562c[_0x346784('0x5')]=qs[_0x346784('0x5')](_0x5577ed[_0x346784('0xe')][_0x346784('0x5')]));_0x57562c[_0x346784('0x11')]=qs[_0x346784('0x24')](_0x5577ed['query'][_0x346784('0x24')]),_0x57562c[_0x346784('0x2')]=qs[_0x346784('0x30')](_[_0x346784('0x25')](_0x5577ed[_0x346784('0xe')],_0x44cdf5[_0x346784('0x30')]),_0x26dea0);_0x5577ed[_0x346784('0xe')][_0x346784('0x26')]&&(_0x57562c[_0x346784('0x2')]=_[_0x346784('0x2b')](_0x57562c[_0x346784('0x2')],{[Op['or']]:_[_0x346784('0x17')](_0x26dea0,function(_0xb5268a){const _0x2223f3=_0x346784;if(_0xb5268a[_0x2223f3('0x13')]!==_0x2223f3('0x9')){const _0x57ffca={};return _0x57ffca[_0xb5268a[_0x2223f3('0x12')]]={[Op['like']]:'%'+_0x5577ed['query'][_0x2223f3('0x26')]+'%'},_0x57ffca;}})}));_0x57562c=_[_0x346784('0x2b')]({},_0x57562c,_0x5577ed[_0x346784('0x2f')]);const _0x509f48={'where':_0x57562c[_0x346784('0x2')]};return db[_0x346784('0x33')]['count'](_0x509f48)[_0x346784('0x1d')](function(_0x5eb040){const _0x40963c=_0x346784;return _0x78bd69['count']=_0x5eb040,_0x5577ed['query'][_0x40963c('0xd')]&&(_0x57562c['include']=[{'all':!![]}]),db[_0x40963c('0x33')]['findAll'](_0x57562c);})['then'](function(_0x5bef3b){const _0x1a95db=_0x346784;return _0x78bd69[_0x1a95db('0x2c')]=_0x5bef3b,_0x78bd69;})[_0x346784('0x1d')](respondWithFilteredResult(_0x1c3478,_0x57562c))[_0x346784('0x29')](handleError(_0x1c3478,null));},exports[_0x5f2f07('0x15')]=function(_0x4571cc,_0x4add1b){const _0x2a0b2e=_0x5f2f07;let _0x46fe8f={'raw':!![],'where':{'id':_0x4571cc[_0x2a0b2e('0x8')]['id']}};const _0x27fa77={};return _0x27fa77[_0x2a0b2e('0x14')]=_[_0x2a0b2e('0x6')](db[_0x2a0b2e('0x33')][_0x2a0b2e('0x32')]),_0x27fa77[_0x2a0b2e('0xe')]=_[_0x2a0b2e('0x6')](_0x4571cc[_0x2a0b2e('0xe')]),_0x27fa77['filters']=_[_0x2a0b2e('0x21')](_0x27fa77[_0x2a0b2e('0x14')],_0x27fa77[_0x2a0b2e('0xe')]),_0x46fe8f[_0x2a0b2e('0x1e')]=_[_0x2a0b2e('0x21')](_0x27fa77['model'],qs['fields'](_0x4571cc[_0x2a0b2e('0xe')][_0x2a0b2e('0x1')])),_0x46fe8f['attributes']=_0x46fe8f[_0x2a0b2e('0x1e')][_0x2a0b2e('0x1b')]?_0x46fe8f[_0x2a0b2e('0x1e')]:_0x27fa77['model'],_0x4571cc[_0x2a0b2e('0xe')][_0x2a0b2e('0xd')]&&(_0x46fe8f[_0x2a0b2e('0x31')]=[{'all':!![]}]),_0x46fe8f=_[_0x2a0b2e('0x2b')]({},_0x46fe8f,_0x4571cc[_0x2a0b2e('0x2f')]),db[_0x2a0b2e('0x33')][_0x2a0b2e('0x2e')](_0x46fe8f)[_0x2a0b2e('0x1d')](handleEntityNotFound(_0x4add1b,null))[_0x2a0b2e('0x1d')](respondWithResult(_0x4add1b,null))[_0x2a0b2e('0x29')](handleError(_0x4add1b,null));},exports[_0x5f2f07('0x16')]=function(_0x30f253,_0x44ce1c){const _0x36a560=_0x5f2f07;return db['WhatsappQueueReport'][_0x36a560('0x16')](_0x30f253['body'],{})['then'](respondWithResult(_0x44ce1c,0xc9))[_0x36a560('0x29')](handleError(_0x44ce1c,null));},exports[_0x5f2f07('0x1f')]=function(_0x2d324a,_0x5ec001){const _0x16bf17=_0x5f2f07;return _0x2d324a[_0x16bf17('0x4')]['id']&&delete _0x2d324a['body']['id'],db[_0x16bf17('0x33')][_0x16bf17('0x2e')]({'where':{'id':_0x2d324a[_0x16bf17('0x8')]['id']}})[_0x16bf17('0x1d')](handleEntityNotFound(_0x5ec001,null))['then'](saveUpdates(_0x2d324a['body'],null))[_0x16bf17('0x1d')](respondWithResult(_0x5ec001,null))[_0x16bf17('0x29')](handleError(_0x5ec001,null));},exports[_0x5f2f07('0xf')]=function(_0xd5751f,_0xa4432a){const _0x41dfc0=_0x5f2f07;return db['WhatsappQueueReport'][_0x41dfc0('0x2e')]({'where':{'id':_0xd5751f[_0x41dfc0('0x8')]['id']}})['then'](handleEntityNotFound(_0xa4432a,null))[_0x41dfc0('0x1d')](removeEntity(_0xa4432a,null))[_0x41dfc0('0x29')](handleError(_0xa4432a,null));},exports[_0x5f2f07('0x1a')]=function(_0x58c9f9,_0x5b1985){const _0x6aa24e=_0x5f2f07;return db[_0x6aa24e('0x33')][_0x6aa24e('0x1a')]()['then'](respondWithResult(_0x5b1985,null))[_0x6aa24e('0x29')](handleError(_0x5b1985,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index 8292082..f84379f 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a816_0x3746=['WhatsappQueueReport','./whatsappQueueReport.attributes','exports','uniqueid','define','report_whatsapp_queue'];(function(_0x421a81,_0x37463e){const _0x286d49=function(_0x347d77){while(--_0x347d77){_0x421a81['push'](_0x421a81['shift']());}};_0x286d49(++_0x37463e);}(a816_0x3746,0x179));const a816_0x286d=function(_0x421a81,_0x37463e){_0x421a81=_0x421a81-0x0;let _0x286d49=a816_0x3746[_0x421a81];return _0x286d49;};const _0x18bd0d=a816_0x286d;'use strict';const attributes=require(_0x18bd0d('0x2'));module[_0x18bd0d('0x3')]=function(_0x347d77){const _0x5754bd=_0x18bd0d,_0x5e49a8=_0x347d77[_0x5754bd('0x5')](_0x5754bd('0x1'),attributes,{'tableName':_0x5754bd('0x0'),'paranoid':![],'indexes':[{'name':_0x5754bd('0x4'),'fields':['uniqueid']}],'timestamps':!![]});return _0x5e49a8;}; \ No newline at end of file +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 diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index e0943fb..76e5b8f 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a817_0x2290=['CreateWhatsappQueueReport','options','debug','where','../../config/logger','limit','error','catch','update','then','raw','message','WhatsappQueueReport','stringify','create','../../mysqldb','info','UpdateWhatsappQueueReport','rpc'];(function(_0x3b10e1,_0x2290c9){const _0x20dd91=function(_0x493be0){while(--_0x493be0){_0x3b10e1['push'](_0x3b10e1['shift']());}};_0x20dd91(++_0x2290c9);}(a817_0x2290,0x186));const a817_0x20dd=function(_0x3b10e1,_0x2290c9){_0x3b10e1=_0x3b10e1-0x0;let _0x20dd91=a817_0x2290[_0x3b10e1];return _0x20dd91;};const _0x5f4aa8=a817_0x20dd;'use strict';const db=require(_0x5f4aa8('0x5'))['db'],logger=require(_0x5f4aa8('0xd'))(_0x5f4aa8('0x8'));exports[_0x5f4aa8('0x9')]=function(_0x493be0){const _0x9b01db=this;return new Promise(function(_0xa2e60e,_0x528997){const _0x27fd9d=a817_0x20dd;return db[_0x27fd9d('0x2')][_0x27fd9d('0x4')](_0x493be0['body'],{'raw':_0x493be0['options']?_0x493be0[_0x27fd9d('0xa')][_0x27fd9d('0x0')]===undefined?!![]:![]:!![]})[_0x27fd9d('0x12')](function(_0x151931){const _0x3fa514=_0x27fd9d;logger[_0x3fa514('0x6')]('CreateWhatsappQueueReport',_0x493be0),logger[_0x3fa514('0xb')](_0x3fa514('0x9'),_0x493be0,JSON[_0x3fa514('0x3')](_0x151931)),_0xa2e60e(_0x151931);})[_0x27fd9d('0x10')](function(_0x1e19bc){const _0x10da4b=_0x27fd9d;logger[_0x10da4b('0xf')](_0x10da4b('0x9'),_0x1e19bc[_0x10da4b('0x1')],_0x493be0),_0x528997(_0x9b01db['error'](0x1f4,_0x1e19bc[_0x10da4b('0x1')]));});});},exports[_0x5f4aa8('0x7')]=function(_0xd54833){const _0x2c21f5=this;return new Promise(function(_0x3f5bbb,_0x595bd8){const _0x47b193=a817_0x20dd;return db[_0x47b193('0x2')][_0x47b193('0x11')](_0xd54833['body'],{'raw':_0xd54833[_0x47b193('0xa')]?_0xd54833[_0x47b193('0xa')][_0x47b193('0x0')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xd54833['options']?_0xd54833['options'][_0x47b193('0xc')]||null:null,'attributes':_0xd54833[_0x47b193('0xa')]?_0xd54833[_0x47b193('0xa')]['attributes']||null:null,'limit':_0xd54833['options']?_0xd54833[_0x47b193('0xa')][_0x47b193('0xe')]||null:null})['then'](function(_0x4fe9aa){const _0x353ec8=_0x47b193;logger['info'](_0x353ec8('0x7'),_0xd54833),logger['debug'](_0x353ec8('0x7'),_0xd54833,JSON['stringify'](_0x4fe9aa)),_0x3f5bbb(_0x4fe9aa);})[_0x47b193('0x10')](function(_0x5cc96b){const _0x598462=_0x47b193;logger[_0x598462('0xf')](_0x598462('0x7'),_0x5cc96b[_0x598462('0x1')],_0xd54833),_0x595bd8(_0x2c21f5[_0x598462('0xf')](0x1f4,_0x5cc96b['message']));});});}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index 3c2c06d..05a3c38 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a818_0xbf0f=['put','get','../../components/auth/service','post','isAuthenticated','show','index','update','exports','Router','delete','./whatsappTransferReport.controller','/describe','express','/:id','describe'];(function(_0x34ee9e,_0xbf0f7a){const _0x5c3fd2=function(_0x2f13d3){while(--_0x2f13d3){_0x34ee9e['push'](_0x34ee9e['shift']());}};_0x5c3fd2(++_0xbf0f7a);}(a818_0xbf0f,0x16e));const a818_0x5c3f=function(_0x34ee9e,_0xbf0f7a){_0x34ee9e=_0x34ee9e-0x0;let _0x5c3fd2=a818_0xbf0f[_0x34ee9e];return _0x5c3fd2;};const _0x631942=a818_0x5c3f;'use strict';const express=require(_0x631942('0xf')),router=express[_0x631942('0xb')](),auth=require(_0x631942('0x4')),controller=require(_0x631942('0xd'));router[_0x631942('0x3')]('/',auth[_0x631942('0x6')](),controller[_0x631942('0x8')]),router['get'](_0x631942('0xe'),auth[_0x631942('0x6')](),controller[_0x631942('0x1')]),router[_0x631942('0x3')](_0x631942('0x0'),auth[_0x631942('0x6')](),controller[_0x631942('0x7')]),router[_0x631942('0x5')]('/',auth[_0x631942('0x6')](),controller['create']),router[_0x631942('0x2')]('/:id',auth[_0x631942('0x6')](),controller[_0x631942('0x9')]),router[_0x631942('0xc')](_0x631942('0x0'),auth[_0x631942('0x6')](),controller['destroy']),module[_0x631942('0xa')]=router; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js index 04a1b4d..d69db38 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a819_0x52bd=['exports','agent','queue','DATE','account','ENUM'];(function(_0x41af5d,_0x52bdbb){const _0x48b27f=function(_0x5612fc){while(--_0x5612fc){_0x41af5d['push'](_0x41af5d['shift']());}};_0x48b27f(++_0x52bdbb);}(a819_0x52bd,0x1b4));const a819_0x48b2=function(_0x41af5d,_0x52bdbb){_0x41af5d=_0x41af5d-0x0;let _0x48b27f=a819_0x52bd[_0x41af5d];return _0x48b27f;};const _0x7be7c1=a819_0x48b2;'use strict';const Sequelize=require('sequelize');module[_0x7be7c1('0x2')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x7be7c1('0x1')](_0x7be7c1('0x0'),_0x7be7c1('0x3'),_0x7be7c1('0x4')),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x7be7c1('0x5')]}}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index d06808d..4b514e0 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a820_0x31c7=['body','includeAll','../../config/logger','../../mysqldb','nolimit','params','findOne','options','send','rows','fieldName','sequelize','like','intersection','type','describe','name','../../components/parsers/qs','create','count','end','update','filters','merge','order','key','status','where','sort','then','sendStatus','filter','length','catch','query','show','findAll','map','keys','model','attributes','index','rawAttributes','offset','limit','fields','include','json','WhatsappTransferReport','destroy','undefined'];(function(_0x2ecaf1,_0x31c755){const _0x2df7dc=function(_0x54306f){while(--_0x54306f){_0x2ecaf1['push'](_0x2ecaf1['shift']());}};_0x2df7dc(++_0x31c755);}(a820_0x31c7,0x12d));const a820_0x2df7=function(_0x2ecaf1,_0x31c755){_0x2ecaf1=_0x2ecaf1-0x0;let _0x2df7dc=a820_0x31c7[_0x2ecaf1];return _0x2df7dc;};const _0x433448=a820_0x2df7;'use strict';const _=require('lodash'),qs=require(_0x433448('0x16')),logger=require(_0x433448('0x7'))('api'),db=require(_0x433448('0x8'))['db'],{Op}=require(_0x433448('0x10'));function respondWithResult(_0x54306f,_0x53c29e){return _0x53c29e=_0x53c29e||0xc8,function(_0x27b857){const _0x4c3475=a820_0x2df7;if(_0x27b857)return _0x54306f[_0x4c3475('0x1f')](_0x53c29e)[_0x4c3475('0x1')](_0x27b857);};}function respondWithFilteredResult(_0x56d1cc,_0x305036){return function(_0x53504a){const _0x5221e=a820_0x2df7;if(_0x53504a){const _0x51743c=_0x53504a[_0x5221e('0x18')],_0x4f1faa=_0x305036['offset'];let _0x1edf23=_0x305036[_0x5221e('0x30')]+_0x305036[_0x5221e('0x31')],_0x569057;return _0x1edf23>=_0x51743c?(_0x1edf23=_0x51743c,_0x569057=0xc8):_0x569057=0xce,_0x56d1cc[_0x5221e('0x1f')](_0x569057),_0x56d1cc['set']('Content-Range',_0x4f1faa+'-'+_0x1edf23+'/'+_0x51743c)[_0x5221e('0x1')](_0x53504a);}return null;};}function saveUpdates(_0x4120f4){return function(_0x53cee3){const _0x52da81=a820_0x2df7;if(_0x53cee3)return _0x53cee3[_0x52da81('0x1a')](_0x4120f4)[_0x52da81('0x22')](function(_0x1d71e2){return _0x1d71e2;});return null;};}function removeEntity(_0x3497bf){return function(_0x87ec4e){const _0x493847=a820_0x2df7;if(_0x87ec4e)return _0x87ec4e[_0x493847('0x3')]()[_0x493847('0x22')](function(){const _0xbaa694=_0x493847;_0x3497bf[_0xbaa694('0x1f')](0xcc)[_0xbaa694('0x19')]();});};}function handleEntityNotFound(_0x4d3dc2){return function(_0x5560e6){const _0x5975da=a820_0x2df7;return!_0x5560e6&&_0x4d3dc2[_0x5975da('0x23')](0x194),_0x5560e6;};}function handleError(_0x2c27f6,_0x148727){return _0x148727=_0x148727||0x1f4,function(_0x429c74){const _0x54322d=a820_0x2df7;logger['error'](_0x429c74['stack']),_0x429c74['name']&&delete _0x429c74[_0x54322d('0x15')],_0x2c27f6['status'](_0x148727)[_0x54322d('0xd')](_0x429c74);};}exports[_0x433448('0x2e')]=function(_0xa3f617,_0x553938){const _0x330cda=_0x433448;let _0x106e7c={};const _0x33e5d0={},_0x3dad76={'count':0x0,'rows':[]},_0x516a86=_['map'](db['WhatsappTransferReport'][_0x330cda('0x2f')],function(_0x5a23a1){const _0xb5d298=_0x330cda;return{'name':_0x5a23a1[_0xb5d298('0xf')],'type':_0x5a23a1['type'][_0xb5d298('0x1e')]};});_0x33e5d0[_0x330cda('0x2c')]=_[_0x330cda('0x2a')](_0x516a86,_0x330cda('0x15')),_0x33e5d0['query']=_[_0x330cda('0x2b')](_0xa3f617[_0x330cda('0x27')]),_0x33e5d0['filters']=_['intersection'](_0x33e5d0[_0x330cda('0x2c')],_0x33e5d0[_0x330cda('0x27')]),_0x106e7c[_0x330cda('0x2d')]=_[_0x330cda('0x12')](_0x33e5d0['model'],qs['fields'](_0xa3f617[_0x330cda('0x27')][_0x330cda('0x32')])),_0x106e7c[_0x330cda('0x2d')]=_0x106e7c[_0x330cda('0x2d')][_0x330cda('0x25')]?_0x106e7c[_0x330cda('0x2d')]:_0x33e5d0[_0x330cda('0x2c')];typeof _0xa3f617[_0x330cda('0x27')][_0x330cda('0x9')]===_0x330cda('0x4')&&(_0x106e7c[_0x330cda('0x31')]=qs[_0x330cda('0x31')](_0xa3f617[_0x330cda('0x27')][_0x330cda('0x31')]),_0x106e7c[_0x330cda('0x30')]=qs[_0x330cda('0x30')](_0xa3f617[_0x330cda('0x27')]['offset']));_0x106e7c[_0x330cda('0x1d')]=qs[_0x330cda('0x21')](_0xa3f617[_0x330cda('0x27')]['sort']),_0x106e7c[_0x330cda('0x20')]=qs['filters'](_['pick'](_0xa3f617['query'],_0x33e5d0[_0x330cda('0x1b')]),_0x516a86);_0xa3f617[_0x330cda('0x27')][_0x330cda('0x24')]&&(_0x106e7c[_0x330cda('0x20')]=_[_0x330cda('0x1c')](_0x106e7c[_0x330cda('0x20')],{[Op['or']]:_[_0x330cda('0x2a')](_0x516a86,function(_0x3fc7fb){const _0x4dbf0e=_0x330cda;if(_0x3fc7fb[_0x4dbf0e('0x13')]!=='VIRTUAL'){const _0x15ec28={};return _0x15ec28[_0x3fc7fb[_0x4dbf0e('0x15')]]={[Op[_0x4dbf0e('0x11')]]:'%'+_0xa3f617[_0x4dbf0e('0x27')][_0x4dbf0e('0x24')]+'%'},_0x15ec28;}})}));_0x106e7c=_[_0x330cda('0x1c')]({},_0x106e7c,_0xa3f617[_0x330cda('0xc')]);const _0x1c4e75={'where':_0x106e7c[_0x330cda('0x20')]};return db[_0x330cda('0x2')]['count'](_0x1c4e75)['then'](function(_0x779dc5){const _0x29dd3f=_0x330cda;return _0x3dad76[_0x29dd3f('0x18')]=_0x779dc5,_0xa3f617[_0x29dd3f('0x27')][_0x29dd3f('0x6')]&&(_0x106e7c['include']=[{'all':!![]}]),db['WhatsappTransferReport'][_0x29dd3f('0x29')](_0x106e7c);})[_0x330cda('0x22')](function(_0x1cda02){const _0xe1567d=_0x330cda;return _0x3dad76[_0xe1567d('0xe')]=_0x1cda02,_0x3dad76;})[_0x330cda('0x22')](respondWithFilteredResult(_0x553938,_0x106e7c))[_0x330cda('0x26')](handleError(_0x553938,null));},exports[_0x433448('0x28')]=function(_0x456f46,_0x2e44af){const _0x455a4a=_0x433448;let _0x2d5117={'raw':!![],'where':{'id':_0x456f46[_0x455a4a('0xa')]['id']}};const _0x40b32d={};return _0x40b32d[_0x455a4a('0x2c')]=_[_0x455a4a('0x2b')](db['WhatsappTransferReport'][_0x455a4a('0x2f')]),_0x40b32d[_0x455a4a('0x27')]=_['keys'](_0x456f46[_0x455a4a('0x27')]),_0x40b32d['filters']=_[_0x455a4a('0x12')](_0x40b32d[_0x455a4a('0x2c')],_0x40b32d['query']),_0x2d5117[_0x455a4a('0x2d')]=_[_0x455a4a('0x12')](_0x40b32d['model'],qs[_0x455a4a('0x32')](_0x456f46[_0x455a4a('0x27')]['fields'])),_0x2d5117[_0x455a4a('0x2d')]=_0x2d5117['attributes'][_0x455a4a('0x25')]?_0x2d5117[_0x455a4a('0x2d')]:_0x40b32d[_0x455a4a('0x2c')],_0x456f46[_0x455a4a('0x27')][_0x455a4a('0x6')]&&(_0x2d5117[_0x455a4a('0x0')]=[{'all':!![]}]),_0x2d5117=_[_0x455a4a('0x1c')]({},_0x2d5117,_0x456f46[_0x455a4a('0xc')]),db[_0x455a4a('0x2')][_0x455a4a('0xb')](_0x2d5117)['then'](handleEntityNotFound(_0x2e44af,null))[_0x455a4a('0x22')](respondWithResult(_0x2e44af,null))[_0x455a4a('0x26')](handleError(_0x2e44af,null));},exports['create']=function(_0xe374c2,_0x2229f7){const _0x35ebb6=_0x433448;return db[_0x35ebb6('0x2')][_0x35ebb6('0x17')](_0xe374c2[_0x35ebb6('0x5')],{})[_0x35ebb6('0x22')](respondWithResult(_0x2229f7,0xc9))['catch'](handleError(_0x2229f7,null));},exports['update']=function(_0x26742d,_0xd4ddf8){const _0x1dba18=_0x433448;return _0x26742d[_0x1dba18('0x5')]['id']&&delete _0x26742d[_0x1dba18('0x5')]['id'],db['WhatsappTransferReport'][_0x1dba18('0xb')]({'where':{'id':_0x26742d[_0x1dba18('0xa')]['id']}})[_0x1dba18('0x22')](handleEntityNotFound(_0xd4ddf8,null))['then'](saveUpdates(_0x26742d[_0x1dba18('0x5')],null))[_0x1dba18('0x22')](respondWithResult(_0xd4ddf8,null))['catch'](handleError(_0xd4ddf8,null));},exports[_0x433448('0x3')]=function(_0x5d5ee9,_0x217318){const _0xa32809=_0x433448;return db['WhatsappTransferReport'][_0xa32809('0xb')]({'where':{'id':_0x5d5ee9[_0xa32809('0xa')]['id']}})[_0xa32809('0x22')](handleEntityNotFound(_0x217318,null))[_0xa32809('0x22')](removeEntity(_0x217318,null))['catch'](handleError(_0x217318,null));},exports[_0x433448('0x14')]=function(_0xe9ec54,_0x20dfaf){const _0x44c26=_0x433448;return db[_0x44c26('0x2')][_0x44c26('0x14')]()['then'](respondWithResult(_0x20dfaf,null))[_0x44c26('0x26')](handleError(_0x20dfaf,null));}; \ No newline at end of file +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 diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index 0705d8f..6e83dff 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a821_0x1793=['WhatsappTransferReport','define','exports','./whatsappTransferReport.attributes'];(function(_0x44739e,_0x17937e){const _0x7b59d2=function(_0x8dda81){while(--_0x8dda81){_0x44739e['push'](_0x44739e['shift']());}};_0x7b59d2(++_0x17937e);}(a821_0x1793,0x111));const a821_0x7b59=function(_0x44739e,_0x17937e){_0x44739e=_0x44739e-0x0;let _0x7b59d2=a821_0x1793[_0x44739e];return _0x7b59d2;};const _0x178149=a821_0x7b59;'use strict';const attributes=require(_0x178149('0x2'));module[_0x178149('0x1')]=function(_0x8dda81){const _0x3eb364=_0x178149,_0x2d8051=_0x8dda81[_0x3eb364('0x0')](_0x3eb364('0x3'),attributes,{'tableName':'report_whatsapp_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x2d8051;}; \ No newline at end of file +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 diff --git a/server/app.js b/server/app.js index 720d25a..e98d7bc 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a822_0x3fe6=['SIGINT','SIGUSR2','online','environment','\x20deleted','error','App\x20shut\x20down','map','ONCE\x20SIGINT','./rediscache','stack','None','Seed\x20DB\x20ok','log','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','listen','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','process\x20or\x20namespace\x20not\x20found','Cannot\x20kill\x20','exit','apps','lodash','disconnect','join','DB\x20Sync\x20Error:\x0a','sequelize','./config/schedule','pid','isProduction','info','Redis\x20disconnected','xCally\x20ready!','message','./config/logger','./config/schedule/transcribe','./config/schedule/chat','app','warn','Error\x20on\x20server\x20exit','./config/seedDB','start','once','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','delete','./rpc','RPC\x20Error','./config/pm2','debug','status','Offline\x20apps:','db-query','name','./config/environment','test','isTest','./config/license'];(function(_0x56edbd,_0x3fe69f){const _0x3f51bd=function(_0x581bc8){while(--_0x581bc8){_0x56edbd['push'](_0x56edbd['shift']());}};_0x3f51bd(++_0x3fe69f);}(a822_0x3fe6,0x8d));const a822_0x3f51=function(_0x56edbd,_0x3fe69f){_0x56edbd=_0x56edbd-0x0;let _0x3f51bd=a822_0x3fe6[_0x56edbd];return _0x3f51bd;};const _0x1526f9=a822_0x3f51;'use strict';require('./globals');const mysqldb=require('./mysqldb'),{RPC}=require(_0x1526f9('0xf')),{getConfigService}=require('./config/config.service'),config=require(_0x1526f9('0x17')),logger=require(_0x1526f9('0x4')),pm2=require(_0x1526f9('0x11')),pm2Config=require('./config/pm2/config'),schedule=require(_0x1526f9('0x35')),chat=require(_0x1526f9('0x6')),transcribe=require(_0x1526f9('0x5')),{default:seedDB}=require(_0x1526f9('0xa')),{default:checkLicense}=require(_0x1526f9('0x1a')),{getRedis}=require(_0x1526f9('0x24')),cs=getConfigService(),_=require(_0x1526f9('0x30')),appLogger=logger(_0x1526f9('0x7')),queryLogger=logger(_0x1526f9('0x15'));function logDatabase(_0x581bc8){const _0x4253d7=_0x1526f9;try{queryLogger['info']('Database',_0x581bc8);}catch(_0x3ed15f){console[_0x4253d7('0x20')](_0x3ed15f);}}function onRPCError(_0x2dedbc){const _0x32dc00=_0x1526f9;appLogger['error'](_0x32dc00('0x10'),_0x2dedbc);}const rpc=new RPC(onRPCError),onServerExitHandler=_['debounce'](async function onServerExit(_0x33b969){const _0x4a560a=_0x1526f9;console['log'](_0x4a560a('0xd')+_0x33b969+'\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a');try{await rpc['close'](),appLogger[_0x4a560a('0x12')]('Rpc\x20closed');for(const _0x3f716a of pm2Config[_0x4a560a('0x2f')]){try{await pm2[_0x4a560a('0xe')](_0x3f716a['name']),appLogger[_0x4a560a('0x12')](_0x3f716a[_0x4a560a('0x16')]+_0x4a560a('0x1f'));}catch(_0x69020b){_0x69020b[_0x4a560a('0x3')]!==_0x4a560a('0x2c')&&(console[_0x4a560a('0x20')](_0x4a560a('0x2d')+_0x3f716a[_0x4a560a('0x16')],_0x69020b),appLogger['error'](_0x4a560a('0x2d')+_0x3f716a[_0x4a560a('0x16')]+':\x20'+_0x69020b[_0x4a560a('0x3')]+'\x0a'+_0x69020b[_0x4a560a('0x25')]));}}console[_0x4a560a('0x28')](_0x4a560a('0x29')),getRedis()[_0x4a560a('0x31')](),appLogger['debug'](_0x4a560a('0x1')),appLogger[_0x4a560a('0x12')](_0x4a560a('0x21'));}catch(_0x378412){console[_0x4a560a('0x20')](_0x4a560a('0x9'),_0x378412),appLogger[_0x4a560a('0x20')]('Error\x20on\x20server\x20exit:\x20'+_0x378412[_0x4a560a('0x3')]+'\x0a'+_0x378412[_0x4a560a('0x25')]);}},0x7d0,{'leading':!![]});!(cs[_0x1526f9('0x37')]||cs[_0x1526f9('0x19')])?(process[_0x1526f9('0xc')](_0x1526f9('0x1c'),async function(){const _0x5d8c63=_0x1526f9;await onServerExitHandler(_0x5d8c63('0x1c')),process['kill'](process[_0x5d8c63('0x36')],_0x5d8c63('0x1c'));}),process['on'](_0x1526f9('0x1b'),async function(){const _0x461606=_0x1526f9;console['log']('ON\x20SIGINT'),await onServerExitHandler(_0x461606('0x1b')),process[_0x461606('0x2e')](0x0);})):process[_0x1526f9('0xc')](_0x1526f9('0x1b'),async function(){const _0x3ddf64=_0x1526f9;console[_0x3ddf64('0x28')](_0x3ddf64('0x23')),await onServerExitHandler(_0x3ddf64('0x1b')),process[_0x3ddf64('0x2e')](0x0);});async function main(){const _0x2ed7b3=_0x1526f9;try{console[_0x2ed7b3('0x28')]('xCally\x20Starting...\x20'+(cs[_0x2ed7b3('0x37')]?'':'Development\x20Mode'));try{await mysqldb['db'][_0x2ed7b3('0x34')]['sync']({'logging':cs['isProduction']||cs[_0x2ed7b3('0x1e')]===_0x2ed7b3('0x18')?![]:logDatabase});}catch(_0x2660cc){console[_0x2ed7b3('0x8')](_0x2ed7b3('0x33'),_0x2660cc),queryLogger[_0x2ed7b3('0x20')]('DB\x20Sync\x20Error:\x20'+_0x2660cc[_0x2ed7b3('0x3')]+',\x20'+_0x2660cc[_0x2ed7b3('0x25')]);}config['seedDB']===!![]&&(console[_0x2ed7b3('0x28')]('Starting\x20DB\x20seed...'),await seedDB(),console['log'](_0x2ed7b3('0x27')));await checkLicense();const _0x406501=await rpc[_0x2ed7b3('0x2a')]();appLogger[_0x2ed7b3('0x0')](_0x406501),await chat[_0x2ed7b3('0xb')](),await schedule[_0x2ed7b3('0xb')]();const _0xa23d5e=await transcribe[_0x2ed7b3('0xb')]();appLogger[_0x2ed7b3('0x0')](_0xa23d5e);const _0x3d80ea=await pm2[_0x2ed7b3('0xb')](pm2Config);appLogger[_0x2ed7b3('0x0')]('Online\x20apps:',_[_0x2ed7b3('0x22')](_['filter'](_0x3d80ea,{'status':_0x2ed7b3('0x1d')}),_0x2ed7b3('0x16'))[_0x2ed7b3('0x32')]()),appLogger[_0x2ed7b3('0x0')](_0x2ed7b3('0x14'),_[_0x2ed7b3('0x22')](_['filter'](_0x3d80ea,function(_0x5049db){const _0x45e5ec=_0x2ed7b3;return _0x5049db[_0x45e5ec('0x13')]!==_0x45e5ec('0x1d');}),'name')[_0x2ed7b3('0x32')]()||_0x2ed7b3('0x26')),console[_0x2ed7b3('0x28')](_0x2ed7b3('0x2'));}catch(_0x367b18){console[_0x2ed7b3('0x20')](_0x367b18),appLogger[_0x2ed7b3('0x20')](_0x2ed7b3('0x2b'),_0x367b18);throw _0x367b18;}}main(); \ No newline at end of file +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 diff --git a/server/components/auth/service.js b/server/components/auth/service.js index e7e93ad..3555141 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a823_0x130b=['startsWith','disposition','userpic','lastPauseAt','json','update','getUuid','name','crypto','ChatInteraction','catch','splice','secrets','passwordResetAt','isEqual','params','authenticate','composable-middleware','Wrong\x20credentials.','phoneBarRemoteControl','then','../../config/environment','email','isMiddleware','basic-auth','lodash','HS512','headers','interface','authorization','Bearer','verify','pass','secret','phoneBarPrefixRequired','use','smsPause','../encryptor','status','User','settingsEnabled','payload','util','split','phoneBarEnableSettings','alias','query','internal','encryptString','apiKeyNonce','permissions','HS256','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','apikey','Forbidden.','findOne','sub','User\x20object\x20not\x20found.','openchannelPause','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','hotdesk','decryptString','toString','user','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','../../mysqldb','allowmessenger','Basic','join','redirect','Unknown\x20authorization\x20format','faxPause','lastLoginAt','phoneBarEnableDtmfTone','sign','apiKeyIat','crudPermissions','role','pauseType','Forbidden','unmanaged','getLicense','exports','promisify','voicePause','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','unshift','phoneBarRemoteControlPort','motion.token','now','closed','phoneBarAutoAnswerDelay','Unmanaged.','toLowerCase','../../config/license/hardware','showWebBar','session','phoneBarEnableRecording'];(function(_0x41ab5c,_0x130b87){const _0x353648=function(_0x41829f){while(--_0x41829f){_0x41ab5c['push'](_0x41ab5c['shift']());}};_0x353648(++_0x130b87);}(a823_0x130b,0x153));const a823_0x3536=function(_0x41ab5c,_0x130b87){_0x41ab5c=_0x41ab5c-0x0;let _0x353648=a823_0x130b[_0x41ab5c];return _0x353648;};const _0x4ccc18=a823_0x3536;'use strict';const db=require(_0x4ccc18('0x14'))['db'],{ValidationError}=require('sequelize'),config=require(_0x4ccc18('0x4a')),hardwareConf=require(_0x4ccc18('0x31')),licenseUtil=require('../../config/license/util'),encryptor=require(_0x4ccc18('0x5a')),util=require(_0x4ccc18('0x5f')),_=require(_0x4ccc18('0x4e')),jwt=require('jsonwebtoken'),expressJwt=require('express-jwt'),compose=require(_0x4ccc18('0x46')),basicAuth=require(_0x4ccc18('0x4d')),crypto=require(_0x4ccc18('0x3d')),validateJwt=expressJwt({'secret':config[_0x4ccc18('0x41')][_0x4ccc18('0x33')],'algorithms':[_0x4ccc18('0x6')]}),userAttributes=['id','role','fullname',_0x4ccc18('0x3c'),_0x4ccc18('0x2'),_0x4ccc18('0x4b'),_0x4ccc18('0x37'),_0x4ccc18('0x5'),'md5secret',_0x4ccc18('0x27'),'chatPause','mailPause',_0x4ccc18('0x1a'),_0x4ccc18('0x59'),_0x4ccc18('0xd'),_0x4ccc18('0x21'),_0x4ccc18('0x32'),_0x4ccc18('0x1b'),_0x4ccc18('0x38'),_0x4ccc18('0x1f'),_0x4ccc18('0x15'),_0x4ccc18('0x42'),_0x4ccc18('0x0'),'phoneBarAutoAnswer',_0x4ccc18('0x2e'),'phoneBarDnd',_0x4ccc18('0x34'),_0x4ccc18('0x1c'),_0x4ccc18('0x61'),'phoneBarExpires',_0x4ccc18('0x57'),_0x4ccc18('0x48'),_0x4ccc18('0x2a'),_0x4ccc18('0xf'),_0x4ccc18('0x51'),'userProfileId',_0x4ccc18('0x5d')];function isChatInteractionAuthorized(){const _0x1b9abc=_0x4ccc18;return this['isAuthenticated'](!![])[_0x1b9abc('0x58')](function(_0x41829f,_0x4209b6,_0x23a0ae){const _0x3699c6=_0x1b9abc;if(_0x41829f[_0x3699c6('0x12')])_0x23a0ae();else return db[_0x3699c6('0x3e')]['findOne']({'where':{'id':_0x41829f[_0x3699c6('0x44')]['id']},'attributes':['id',_0x3699c6('0x2d'),_0x3699c6('0x36')],'raw':!![]})['then'](function(_0x470a8){const _0x1a490c=_0x3699c6;if(_0x470a8&&_0x470a8[_0x1a490c('0x2d')])return _0x4209b6['status'](_0x470a8[_0x1a490c('0x36')]===_0x1a490c('0x23')?0x195:0x193)['json']({'message':_0x470a8[_0x1a490c('0x36')]===_0x1a490c('0x23')?_0x1a490c('0x2f'):_0x1a490c('0x9')});else _0x23a0ae();})[_0x3699c6('0x3f')](function(_0xb9a04a){_0x23a0ae(_0xb9a04a);});});}function isAuthenticated(_0x4ae00e){const _0x271809=_0x4ccc18;return compose()[_0x271809('0x58')](function(_0x47c0f0,_0x1ba904,_0x4c4526){const _0x401fe9=_0x271809;if(_0x47c0f0['headers']['authorization']){if(_['startsWith'](_0x47c0f0[_0x401fe9('0x50')][_0x401fe9('0x52')],_0x401fe9('0x16'))){const _0x1fe8cc=basicAuth(_0x47c0f0);db[_0x401fe9('0x5c')]['findOne']({'where':{'name':_0x1fe8cc[_0x401fe9('0x3c')]}})[_0x401fe9('0x49')](function(_0x4f7c78){const _0x27171c=_0x401fe9;if(!_0x4f7c78||!_0x4f7c78[_0x27171c('0x45')](_0x1fe8cc[_0x27171c('0x55')]))return _0x1ba904['status'](0x191)[_0x27171c('0x39')]({'message':_0x27171c('0x47')});_0x47c0f0[_0x27171c('0x12')]={'id':_0x4f7c78['id']},_0x4c4526();})[_0x401fe9('0x3f')](function(_0x51cd92){_0x4c4526(_0x51cd92);});}else{if(_[_0x401fe9('0x35')](_0x47c0f0[_0x401fe9('0x50')][_0x401fe9('0x52')],_0x401fe9('0x53')))validateJwt(_0x47c0f0,_0x1ba904,_0x4c4526);else{if(_0x4ae00e)_0x4c4526();else return _0x1ba904[_0x401fe9('0x5b')](0x193)['json']({'message':_0x401fe9('0x19')});}}}else{if(_0x47c0f0[_0x401fe9('0x1')]['apikey'])try{const _0x3f6277={'audience':hardwareConf[_0x401fe9('0x3b')](),'issuer':hardwareConf['getUuid']()};verifyJwt(_0x47c0f0[_0x401fe9('0x1')][_0x401fe9('0x8')],_0x3f6277)[_0x401fe9('0x49')](function(_0x59b5b3){const _0x3024eb=_0x401fe9;return db[_0x3024eb('0x5c')]['findOne']({'where':{'id':_0x59b5b3[_0x3024eb('0xb')]}})[_0x3024eb('0x49')](function(_0x1bc96b){const _0x2a0ce9=_0x3024eb;if(!_0x1bc96b||!_[_0x2a0ce9('0x43')](_0x1bc96b[_0x2a0ce9('0x4')],_0x59b5b3['nonce']))return _0x1ba904[_0x2a0ce9('0x5b')](0x191)[_0x2a0ce9('0x39')]({'message':'API\x20access\x20key\x20is\x20not\x20valid\x20anymore'});_0x47c0f0[_0x2a0ce9('0x12')]={'id':_0x1bc96b['id']},_0x4c4526();});})[_0x401fe9('0x3f')](function(){const _0x26a46f=_0x401fe9;return _0x1ba904[_0x26a46f('0x5b')](0x191)[_0x26a46f('0x39')]({'message':'Invalid\x20API\x20access\x20key'});});}catch(_0x2c47db){_0x4c4526(_0x2c47db);}else{if(_0x4ae00e)_0x4c4526();else return _0x1ba904['status'](0x193)[_0x401fe9('0x39')]({'message':_0x401fe9('0x19')});}}})['use'](function(_0x4c34cc,_0xd32ae2,_0x200c8c){const _0x696893=_0x271809;if(_0x4c34cc[_0x696893('0x12')])db[_0x696893('0x5c')][_0x696893('0xa')]({'where':{'id':_0x4c34cc[_0x696893('0x12')]['id']},'attributes':userAttributes})[_0x696893('0x49')](function(_0x13b2de){const _0x571f6f=_0x696893;if(!_0x13b2de)return _0xd32ae2[_0x571f6f('0x5b')](0x194)[_0x571f6f('0x39')]({'message':'User\x20not\x20found.'});_0x4c34cc[_0x571f6f('0x12')]=_0x13b2de,_0x200c8c();})[_0x696893('0x3f')](function(_0x15dfd8){_0x200c8c(_0x15dfd8);});else{if(_0x4ae00e)_0x200c8c();else return _0xd32ae2[_0x696893('0x5b')](0x194)[_0x696893('0x39')]({'message':_0x696893('0xc')});}});}function canUpdate(){const _0x464df9=_0x4ccc18;return compose()[_0x464df9('0x58')](function(_0x43234a,_0x5624fc,_0x5ad476){const _0x2e8046=_0x464df9;return licenseUtil[_0x2e8046('0x24')]()[_0x2e8046('0x49')](function(_0x69916d){const _0x746b28=_0x2e8046;if(_0x69916d[_0x746b28('0x3a')])_0x5ad476();else return _0x5624fc[_0x746b28('0x5b')](0x193)[_0x746b28('0x39')]({'message':_0x746b28('0x22')});})['catch'](function(_0x5267da){_0x5ad476(_0x5267da);});});}function isMiddleware(_0x48c409,_0x7c09d6,_0x2bfb58){const _0x510929=_0x4ccc18;return _0x48c409[_0x510929('0x4c')]=!![],_0x2bfb58();}function signToken(_0x5bb021){return signJwt(_0x5bb021);}function setTokenCookie(_0x1fc85e,_0x15232d){const _0x4f1551=_0x4ccc18;if(!_0x1fc85e[_0x4f1551('0x12')])return _0x15232d[_0x4f1551('0x5b')](0x194)[_0x4f1551('0x39')]({'message':_0x4f1551('0xe')});const _0x3f7103={'payload':{'id':_0x1fc85e[_0x4f1551('0x12')]['id'],'role':_0x1fc85e[_0x4f1551('0x12')][_0x4f1551('0x20')]},'options':{'expiresIn':0x15180}};return signJwt(_0x3f7103)['then'](function(_0x323b88){const _0x4aa042=_0x4f1551;_0x15232d['cookie'](_0x4aa042('0x2b'),_0x323b88),_0x15232d[_0x4aa042('0x18')]('/dashboards/general');})['catch'](function(_0x5c0c90){const _0x376503=_0x4f1551;return _0x15232d[_0x376503('0x5b')](0x1f4)['send'](_0x5c0c90);});}function retrieveApiKey(_0x37228a){const _0x4220ea=_0x4ccc18;return _['isNil'](_0x37228a[_0x4220ea('0x4')])||_['isNil'](_0x37228a[_0x4220ea('0x1e')])?null:createJwt(_0x37228a);}function generateApiKey(_0x4f6c3f){const _0x465536=_0x4ccc18;return _0x4f6c3f[_0x465536('0x4')]=generateNonce(),_0x4f6c3f[_0x465536('0x1e')]=generateIssuedAt(),createJwt(_0x4f6c3f);}function regenerateApiKey(_0x3e2ea1,_0x4d9685){const _0x370578=_0x4ccc18,_0x67b03f=_0x3e2ea1[_0x370578('0x1')][_0x370578('0x8')];if(_0x67b03f){const _0x29add8={'nonce':_0x4d9685[_0x370578('0x4')],'iat':_0x4d9685[_0x370578('0x1e')],'audience':hardwareConf[_0x370578('0x3b')](),'issuer':hardwareConf['getUuid']()};return verifyJwt(_0x67b03f,_0x29add8)[_0x370578('0x49')](function(){return generateApiKey(_0x4d9685);});}else throw{'message':_0x370578('0x13')};}function validatePasswordPattern(_0x1edd73){const _0x4caede=_0x4ccc18,_0x47f7d9=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x47f7d9['test'](_0x1edd73))throw new ValidationError(_0x4caede('0x7'));return;}function validatePasswordHistory(_0x994864,_0x10eeca,_0x363a40){const _0x494d5a=_0x4ccc18,_0x2eb3da=encryptor[_0x494d5a('0x10')](_0x10eeca)[_0x494d5a('0x60')](',');for(let _0xbe4d0d=0x0;_0xbe4d0d<_0x363a40;_0xbe4d0d++){if(!_0x2eb3da[_0xbe4d0d])break;if(_0x994864['toLowerCase']()===_0x2eb3da[_0xbe4d0d][_0x494d5a('0x30')]()){let _0x299a13=util['format']('The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.',_0x363a40);_0x363a40===0x1&&(_0x299a13=_0x494d5a('0x28'));throw new ValidationError(_0x299a13);}}return;}function updatePasswordsHistory(_0x543a2e,_0x713736){const _0x28bded=_0x4ccc18,_0x43fdb9=_0x713736?encryptor['decryptString'](_0x713736)[_0x28bded('0x60')](','):[];return _0x43fdb9['length']===0x5&&_0x43fdb9[_0x28bded('0x40')](-0x1,0x1),_0x43fdb9[_0x28bded('0x29')](_0x543a2e),encryptor[_0x28bded('0x3')](_0x43fdb9[_0x28bded('0x17')](','));}function signJwt(_0x4d7875){const _0x5967b3=_0x4ccc18,_0x5a5668=util[_0x5967b3('0x26')](jwt[_0x5967b3('0x1d')],{'context':jwt}),_0x31092e=_0x4d7875[_0x5967b3('0x56')]||config[_0x5967b3('0x41')]['session'];return new Promise(function(_0x233a38,_0x16896e){const _0xe726b5=_0x5967b3;_0x5a5668(_0x4d7875[_0xe726b5('0x5e')],_0x31092e,_0x4d7875['options'])['then'](function(_0x2d5e21){_0x233a38(_0x2d5e21);})[_0xe726b5('0x3f')](function(_0x1f3022){_0x16896e(_0x1f3022);});});}function verifyJwt(_0x7e6c05,_0x1f1d3d,_0x388494){const _0x442c1c=_0x4ccc18,_0xc83b1e=util[_0x442c1c('0x26')](jwt[_0x442c1c('0x54')],{'context':jwt}),_0x597e75=_0x388494||config['secrets'][_0x442c1c('0x33')];return new Promise(function(_0x4a939f,_0x175aa5){const _0x15e78c=_0x442c1c;_0xc83b1e(_0x7e6c05,_0x597e75,_0x1f1d3d)[_0x15e78c('0x49')](function(_0x293af9){_0x4a939f(_0x293af9);})[_0x15e78c('0x3f')](function(_0x26552b){_0x175aa5(_0x26552b);});});}function generateNonce(){return crypto['randomBytes'](0x10)['toString']('hex');}function generateIssuedAt(){const _0x1749c5=_0x4ccc18;return Math['floor'](Date[_0x1749c5('0x2c')]()/0x3e8)['toString']();}function createJwt(_0x2897ae){const _0xd4b1b8=_0x4ccc18,_0x2599ee={'payload':{'iat':_0x2897ae[_0xd4b1b8('0x1e')],'nonce':_0x2897ae[_0xd4b1b8('0x4')]},'options':{'algorithm':_0xd4b1b8('0x4f'),'subject':_0x2897ae['id'][_0xd4b1b8('0x11')](),'issuer':hardwareConf[_0xd4b1b8('0x3b')](),'audience':hardwareConf[_0xd4b1b8('0x3b')]()}};return signJwt(_0x2599ee)[_0xd4b1b8('0x49')](function(_0x368b78){return{'iat':_0x2897ae['apiKeyIat'],'nonce':_0x2897ae['apiKeyNonce'],'token':_0x368b78};});}module[_0x4ccc18('0x25')]={'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_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 diff --git a/server/components/encryptor/create-cypher-fallback.js b/server/components/encryptor/create-cypher-fallback.js index df177c3..b7a047b 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a824_0x1a2a=['digest','update','hex','slice','from','Missing\x20cipher','crypto','min','Missing\x20passphrase','message','length','md5','test'];(function(_0x502b06,_0x1a2a80){const _0x26e66a=function(_0x595a03){while(--_0x595a03){_0x502b06['push'](_0x502b06['shift']());}};_0x26e66a(++_0x1a2a80);}(a824_0x1a2a,0x133));const a824_0x26e6=function(_0x502b06,_0x1a2a80){_0x502b06=_0x502b06-0x0;let _0x26e66a=a824_0x1a2a[_0x502b06];return _0x26e66a;};const _0x37d580=a824_0x26e6;'use strict';const {createCipheriv,createHash}=require(_0x37d580('0xb'));function sizes(_0x595a03){const _0x112adb=_0x37d580;for(let _0x53b986=0x1,_0x22bef5=0x0;;){try{return createCipheriv(_0x595a03,'.'['repeat'](_0x53b986),'.'['repeat'](_0x22bef5)),[_0x53b986,_0x22bef5];}catch(_0xf3c8b3){if(/invalid iv length/i[_0x112adb('0x4')](_0xf3c8b3['message']))_0x22bef5+=0x1;else{if(/invalid key length/i[_0x112adb('0x4')](_0xf3c8b3[_0x112adb('0x1')]))_0x53b986+=0x1;else throw _0xf3c8b3;}}}}function compute(_0x3e7dd6,_0x5b39a0){const _0x2788a2=_0x37d580;let [_0x9ec2c1,_0x18fbd9]=sizes(_0x3e7dd6);for(let _0x3eb9f7='',_0x8e4d5b='',_0x57459b='';;){const _0x4ab0ac=createHash(_0x2788a2('0x3'));_0x4ab0ac[_0x2788a2('0x6')](_0x57459b,_0x2788a2('0x7')),_0x4ab0ac['update'](_0x5b39a0),_0x57459b=_0x4ab0ac[_0x2788a2('0x5')](_0x2788a2('0x7'));let _0x54282e=0x0,_0x53c463=0x0;_0x54282e=Math[_0x2788a2('0xc')](_0x57459b[_0x2788a2('0x2')]-_0x53c463,0x2*_0x9ec2c1),(_0x9ec2c1-=_0x54282e/0x2,_0x3eb9f7+=_0x57459b[_0x2788a2('0x8')](_0x53c463,_0x53c463+_0x54282e),_0x53c463+=_0x54282e),_0x54282e=Math[_0x2788a2('0xc')](_0x57459b[_0x2788a2('0x2')]-_0x53c463,0x2*_0x18fbd9),(_0x18fbd9-=_0x54282e/0x2,_0x8e4d5b+=_0x57459b['slice'](_0x53c463,_0x53c463+_0x54282e),_0x53c463+=_0x54282e);if(_0x9ec2c1+_0x18fbd9===0x0)return[_0x3eb9f7,_0x8e4d5b];}}function createCypherFallback(_0x35f38d,_0x38eb2c){const _0x10bfd2=_0x37d580;if(!_0x35f38d)throw new Error(_0x10bfd2('0xa'));if(!_0x38eb2c)throw new Error(_0x10bfd2('0x0'));const [_0x1a88be,_0x59d855]=compute(_0x35f38d,_0x38eb2c);return{'key':Buffer['from'](_0x1a88be,_0x10bfd2('0x7')),'iv':Buffer[_0x10bfd2('0x9')](_0x59d855,'hex')};}module['exports']={'createCypherFallback':createCypherFallback}; \ No newline at end of file +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 diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index 9699323..a941240 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a825_0x18ca=['./create-cypher-fallback','read','open','length','binary','slice','end','undefined','algorithm','some-naughty-secret','from','utf8','data1','secret','error','utf-8','you\x20must\x20pass\x20a\x20secret','close','toString','key','separator','createReadStream','randomBytes','createCipheriv','base64','unlink','license','data','aes-256-ctr','alloc','digest','concat','createWriteStream','write','update','createDecipheriv','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','app','sha256','string','final','exports','substr','join','parse','aes192','promises','createHash','split'];(function(_0x2e19f6,_0x18ca7e){const _0x3c238c=function(_0x3852cd){while(--_0x3852cd){_0x2e19f6['push'](_0x2e19f6['shift']());}};_0x3c238c(++_0x18ca7e);}(a825_0x18ca,0x15d));const a825_0x3c23=function(_0x2e19f6,_0x18ca7e){_0x2e19f6=_0x2e19f6-0x0;let _0x3c238c=a825_0x18ca[_0x2e19f6];return _0x3c238c;};const _0x267c51=a825_0x3c23;'use strict';const fs=require('fs'),crypto=require('crypto'),{createCypherFallback}=require(_0x267c51('0x2b')),logger=require('../../config/logger')(_0x267c51('0x1f')),DEFAULT_STRING_OPTIONS={'secret':_0x267c51('0x3'),'algorithm':_0x267c51('0x16'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':_0x267c51('0x27'),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x3852cd,_0x230d82,_0xf859c4){const _0x3c3e69=_0x267c51,_0x372bed=KEYLEN_MAP[_0x230d82],_0x2be0f2=crypto[_0x3c3e69('0x29')](_0x3c3e69('0x20'))[_0x3c3e69('0x1c')](String(_0x3852cd))[_0x3c3e69('0x18')]('base64')[_0x3c3e69('0x24')](0x0,_0x372bed),_0x520840=Buffer['from'](_0x2be0f2,_0x3c3e69('0x9')),_0x4fe60f=crypto[_0x3c3e69('0x10')](0x10),_0x3b4d60=_0x4fe60f['toString'](_0x3c3e69('0x12')),_0x5f3a26=crypto[_0x3c3e69('0x11')](_0x230d82,_0x520840,_0x4fe60f,_0xf859c4);return[_0x5f3a26,_0x3b4d60];}function getDecipher(_0x289b74,_0x1e355f,_0x13c295,_0x356984){const _0x3cbbdf=_0x267c51,_0x2425d3=KEYLEN_MAP[_0x1e355f],_0x30801a=typeof _0x13c295===_0x3cbbdf('0x21')&&_0x13c295[_0x3cbbdf('0x2e')]>0x0;let _0x541e6f=null,_0x202379=null;if(!_0x30801a){logger['info'](_0x3cbbdf('0x1e'));const _0x1398ef=createCypherFallback(_0x1e355f,_0x289b74);_0x202379=_0x1398ef['iv'],_0x541e6f=_0x1398ef[_0x3cbbdf('0xd')];}const _0x8596b2=_0x30801a?Buffer[_0x3cbbdf('0x4')](_0x13c295,'base64'):_0x202379,_0x596c77=_0x30801a?crypto[_0x3cbbdf('0x29')](_0x3cbbdf('0x20'))[_0x3cbbdf('0x1c')](String(_0x289b74))[_0x3cbbdf('0x18')]('base64')[_0x3cbbdf('0x24')](0x0,_0x2425d3):null,_0x17b150=_0x30801a?Buffer[_0x3cbbdf('0x4')](_0x596c77,'utf-8'):_0x541e6f,_0x508a59=crypto[_0x3cbbdf('0x1d')](_0x1e355f,_0x17b150,_0x8596b2,_0x356984);return _0x508a59;}function encryptFile(_0x115782,_0x122bca,_0x30704d,_0x1c68f5={}){return new Promise(function(_0x94ce0f,_0x2dcd17){const _0x2c4613=a825_0x3c23;_0x1c68f5={...DEFAULT_FILE_OPTIONS,..._0x1c68f5};const _0x912f21=fs[_0x2c4613('0xf')](_0x115782),_0x3db43c=fs[_0x2c4613('0x1a')](_0x122bca),[_0x26a1cb,_0x5ed6f9]=getCipherAndIvText(_0x30704d,_0x1c68f5[_0x2c4613('0x2')]);_0x912f21['on'](_0x2c4613('0x2d'),function(){const _0x4bb07b=_0x2c4613,_0x315d50=Buffer[_0x4bb07b('0x4')](_0x5ed6f9,_0x4bb07b('0x12')),_0x415183=Buffer[_0x4bb07b('0x4')](_0x1c68f5[_0x4bb07b('0xe')],_0x4bb07b('0x9'));_0x3db43c[_0x4bb07b('0x1b')](Buffer[_0x4bb07b('0x19')]([_0x315d50,_0x415183],_0x315d50[_0x4bb07b('0x2e')]+_0x415183[_0x4bb07b('0x2e')]));}),_0x912f21['on'](_0x2c4613('0x15'),function(_0x4decd0){const _0x1815f9=_0x2c4613,_0x5e796a=Buffer[_0x1815f9('0x4')](_0x26a1cb[_0x1815f9('0x1c')](_0x4decd0),'binary');_0x3db43c['write'](_0x5e796a);}),_0x912f21['on'](_0x2c4613('0x0'),function(){const _0x5ee0fb=_0x2c4613;try{const _0x5b11d9=Buffer[_0x5ee0fb('0x4')](_0x26a1cb[_0x5ee0fb('0x22')](_0x5ee0fb('0x2f')),_0x5ee0fb('0x2f'));_0x3db43c[_0x5ee0fb('0x1b')](_0x5b11d9),_0x3db43c['end'](),_0x3db43c['on']('close',function(){_0x94ce0f(_0x122bca);});}catch(_0x3a3d35){fs['unlink'](_0x122bca,_0x28548d=>{_0x2dcd17(_0x28548d===null?_0x3a3d35:_0x28548d);});}});});}async function decryptFile(_0x431a8e,_0x532574,_0x3caebc,_0x376b52={}){const _0x2809e2=_0x267c51;_0x376b52={...DEFAULT_FILE_OPTIONS,..._0x376b52};const _0x1db77b=Buffer[_0x2809e2('0x4')](_0x376b52[_0x2809e2('0xe')],'utf-8')[_0x2809e2('0x2e')],_0x1e6d63=IVLEN_MAP[_0x376b52[_0x2809e2('0x2')]],_0x525887=_0x1e6d63+_0x1db77b,_0x2b0cdf=await fs[_0x2809e2('0x28')][_0x2809e2('0x2d')](_0x431a8e,'r'),_0x2378da=Buffer[_0x2809e2('0x17')](_0x525887),{buffer:_0x52bfaf}=await _0x2b0cdf[_0x2809e2('0x2c')](_0x2378da,0x0,_0x525887),_0x35f677=_0x52bfaf[_0x2809e2('0x30')](0x0,_0x1e6d63),_0x43513=_0x52bfaf[_0x2809e2('0x30')](_0x1e6d63),_0x5674b6=_0x43513['toString']('utf-8'),_0x369e7b=_0x35f677[_0x2809e2('0xc')](_0x2809e2('0x12')),_0x48c64a=_0x5674b6===_0x376b52[_0x2809e2('0xe')];return new Promise(function(_0x1ad8c6,_0x380fbe){const _0x289037=_0x2809e2,_0x19c84f=fs[_0x289037('0xf')](_0x431a8e,{'start':_0x48c64a?_0x525887:0x0,'fd':_0x2b0cdf,'autoClose':!![]}),_0x273e3c=fs[_0x289037('0x1a')](_0x532574),_0x51c690=getDecipher(_0x3caebc,_0x376b52[_0x289037('0x2')],_0x48c64a?_0x369e7b:null);_0x19c84f['on'](_0x289037('0x15'),function(_0xa3558){const _0x587e2d=_0x289037,_0x4b0d65=Buffer['from'](_0x51c690['update'](_0xa3558),_0x587e2d('0x2f'));_0x273e3c[_0x587e2d('0x1b')](_0x4b0d65);}),_0x19c84f['on'](_0x289037('0x8'),_0x1df64c=>_0x380fbe(_0x1df64c)),_0x19c84f['on'](_0x289037('0x0'),function(){const _0x538a70=_0x289037;try{const _0x37063e=Buffer['from'](_0x51c690[_0x538a70('0x22')]('binary'),'binary');_0x273e3c[_0x538a70('0x1b')](_0x37063e),_0x273e3c[_0x538a70('0x0')](),_0x273e3c['on'](_0x538a70('0xb'),function(){_0x1ad8c6(_0x532574);});}catch(_0x232321){fs[_0x538a70('0x13')](_0x532574,_0x42356a=>{_0x380fbe(_0x42356a===null?_0x232321:_0x42356a);});}});});}function encryptString(_0x24113d,_0x3d8409=DEFAULT_STRING_OPTIONS[_0x267c51('0x7')],_0x225188=DEFAULT_STRING_OPTIONS[_0x267c51('0x2')],_0x59291b=DEFAULT_STRING_OPTIONS['separator']){const _0x109cd1=_0x267c51;if(!_0x24113d||_0x24113d[_0x109cd1('0x2e')]===0x0)return _0x24113d;if(!_0x3d8409||_0x3d8409[_0x109cd1('0x2e')]===0x0)throw new Error(_0x109cd1('0xa'));const [_0x3bbab3,_0x44feaa]=getCipherAndIvText(_0x3d8409,_0x225188);let _0x4f5ea4=_0x3bbab3[_0x109cd1('0x1c')](_0x24113d,_0x109cd1('0x5'),'base64');return _0x4f5ea4+=_0x3bbab3[_0x109cd1('0x22')](_0x109cd1('0x12')),[_0x44feaa,_0x4f5ea4][_0x109cd1('0x25')](_0x59291b);}function decryptString(_0x5f5b76,_0x394ded=DEFAULT_STRING_OPTIONS[_0x267c51('0x7')],_0x1d8247=DEFAULT_STRING_OPTIONS[_0x267c51('0x2')],_0xa270df=DEFAULT_STRING_OPTIONS[_0x267c51('0xe')]){const _0x21a13a=_0x267c51;if(!_0x5f5b76||_0x5f5b76[_0x21a13a('0x2e')]===0x0)return _0x5f5b76;if(!_0x394ded||_0x394ded[_0x21a13a('0x2e')]===0x0)throw new Error(_0x21a13a('0xa'));const _0x2340f7=_0x5f5b76['split'](_0xa270df),_0x4ea569=_0x2340f7[_0x21a13a('0x2e')]===0x2,_0x28f190=_0x4ea569?_0x2340f7[0x1]:_0x5f5b76,_0x4ae34b=getDecipher(_0x394ded,_0x1d8247,_0x4ea569?_0x2340f7[0x0]:undefined);let _0x4ead6d=_0x4ae34b[_0x21a13a('0x1c')](_0x28f190,_0x21a13a('0x12'),_0x21a13a('0x5'));return _0x4ead6d+=_0x4ae34b['final'](_0x21a13a('0x5')),_0x4ead6d;}function getValueFromLicense(_0x4b8209,_0x50fe30){const _0x2f6bb3=_0x267c51;if(_0x4b8209&&_0x50fe30){if(_0x50fe30[_0x2f6bb3('0x6')]&&_0x50fe30[_0x2f6bb3('0x14')]){const _0x2277fb=_0x50fe30[_0x2f6bb3('0x6')],_0x518f39=_0x50fe30['license'],_0x2f1b3f=_0x2277fb[_0x2f6bb3('0x2a')]('-')[0x4],_0x34b828=_0x2277fb['split']('-')[0x0],_0x32662a=[_0x2f1b3f,_0x2277fb,_0x34b828]['join'](':'),_0x4f9baa=getDecipher(_0x32662a,_0x2f6bb3('0x16'));let _0x373e44=_0x4f9baa[_0x2f6bb3('0x1c')](_0x518f39,'base64',_0x2f6bb3('0x5'));_0x373e44+=_0x4f9baa[_0x2f6bb3('0x22')](_0x2f6bb3('0x5'));const _0x39f132=JSON[_0x2f6bb3('0x26')](_0x373e44);return typeof _0x39f132[_0x4b8209]===_0x2f6bb3('0x1')?null:_0x39f132[_0x4b8209];}}return null;}module[_0x267c51('0x23')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file +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 diff --git a/server/components/export/csv.js b/server/components/export/csv.js index daeab88..022ccd9 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a826_0x1d5a=['num','dirname','Setting','%s%d.%s','push','sequelize','../../config/logger','Failed','zip-dir','.csv','dbH','util','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','rimraf','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','QueryTypes','%s.%s','csv','zip','%s\x20limit\x20%d\x20OFFSET\x20%d','argv','join','existsSync','each','catch','../../mysqldb','savename','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','split','then','to-csv','Empty','AnalyticExtractedReport','length','query','analytics','info','SELECT','format','basename','CSV','splitSizeCsv','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','mkdirSync','update'];(function(_0xab7796,_0x1d5afa){const _0x3509d4=function(_0x50256a){while(--_0x50256a){_0xab7796['push'](_0xab7796['shift']());}};_0x3509d4(++_0x1d5afa);}(a826_0x1d5a,0x94));const a826_0x3509=function(_0xab7796,_0x1d5afa){_0xab7796=_0xab7796-0x0;let _0x3509d4=a826_0x1d5a[_0xab7796];return _0x3509d4;};const _0x5b0771=a826_0x3509;'use strict';const util=require(_0x5b0771('0x2b')),path=require('path'),csv=require(_0x5b0771('0x11')),fs=require('fs'),zipdir=require(_0x5b0771('0x28')),rimraf=require(_0x5b0771('0x0')),db=require('../../mysqldb')['db'],dbH=require(_0x5b0771('0xc'))[_0x5b0771('0x2a')],logger=require(_0x5b0771('0x26'))(_0x5b0771('0x16')),EXTRACTED_REPORT_ID=Number(process[_0x5b0771('0x7')][0x2]),QUERY=process[_0x5b0771('0x7')][0x3],PATH=process[_0x5b0771('0x7')][0x4];function analyticExtractedReport(_0x50256a,_0x2e58d8){const _0x53f5f6=_0x5b0771,_0x1b651b={'status':_0x50256a},_0x22da5c={'where':{'id':EXTRACTED_REPORT_ID}};return _0x2e58d8&&(_0x1b651b[_0x53f5f6('0xd')]=_0x2e58d8),db[_0x53f5f6('0x13')][_0x53f5f6('0x1f')](_0x1b651b,_0x22da5c);}function main(){const _0x46fc66=_0x5b0771;let _0x1b3801=0x1388,_0x42021d;return logger[_0x46fc66('0x17')](util[_0x46fc66('0x19')](_0x46fc66('0x2c'),EXTRACTED_REPORT_ID,_0x46fc66('0x1b'))),db[_0x46fc66('0x22')]['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x46fc66('0x1c')]})[_0x46fc66('0x10')](function(_0x431bd0){const _0x5e73c1=_0x46fc66;_0x431bd0&&(_0x42021d=_0x431bd0,_0x1b3801=_0x42021d[_0x5e73c1('0x1c')]||0x1388);})[_0x46fc66('0x10')](function(){const _0x1a1d61=_0x46fc66;return dbH[_0x1a1d61('0x25')][_0x1a1d61('0x15')](util[_0x1a1d61('0x19')](_0x1a1d61('0xe'),QUERY),{'type':dbH['sequelize']['QueryTypes']['SELECT']});})[_0x46fc66('0x10')](function(_0x473bed){const _0x9ec7d8=_0x46fc66;if(!_0x473bed[0x0][_0x9ec7d8('0x20')])return analyticExtractedReport(_0x9ec7d8('0x12'));const _0x5ec3e3=[];let _0x387c53=0x0,_0x1be6e0=!![];if(_0x473bed&&_0x473bed['length']){let _0x25812b=_0x473bed[0x0][_0x9ec7d8('0x20')]%(_0x387c53+_0x1b3801);if(_0x42021d[_0x9ec7d8('0xf')])for(;_0x1be6e0;_0x387c53+=_0x1b3801,_0x25812b=_0x473bed[0x0][_0x9ec7d8('0x20')]%(_0x387c53+_0x1b3801)){(_0x25812b==0x0||_0x25812b==_0x473bed[0x0][_0x9ec7d8('0x20')])&&(_0x1be6e0=![]),_0x5ec3e3[_0x9ec7d8('0x24')](dbH[_0x9ec7d8('0x25')][_0x9ec7d8('0x15')](util[_0x9ec7d8('0x19')](_0x9ec7d8('0x6'),QUERY,_0x1b3801,_0x387c53),{'type':dbH[_0x9ec7d8('0x25')]['QueryTypes']['SELECT']}));}else _0x5ec3e3[_0x9ec7d8('0x24')](dbH[_0x9ec7d8('0x25')][_0x9ec7d8('0x15')](QUERY,{'type':dbH[_0x9ec7d8('0x25')][_0x9ec7d8('0x2')][_0x9ec7d8('0x18')]}));}const _0x25fdad=path[_0x9ec7d8('0x21')](PATH),_0x3a0af0=path[_0x9ec7d8('0x1a')](PATH,_0x9ec7d8('0x29')),_0x1f42f4=_0x42021d['split']&&_0x5ec3e3[_0x9ec7d8('0x14')]>0x1,_0x3dd2a5=[];return!fs[_0x9ec7d8('0x9')](path['join'](_0x25fdad,_0x3a0af0))&&_0x1f42f4&&fs[_0x9ec7d8('0x1e')](path[_0x9ec7d8('0x8')](_0x25fdad,_0x3a0af0)),Promise[_0x9ec7d8('0xa')](_0x5ec3e3,function(_0x4febd5){const _0xd10b08=_0x9ec7d8;_0x3dd2a5[_0xd10b08('0x24')](_0x4febd5);})['then'](function(){const _0x14edde=_0x9ec7d8;for(let _0x116c82=0x0;_0x116c82<_0x3dd2a5[_0x14edde('0x14')];_0x116c82+=0x1){let _0x2a6ad8;const _0x4d9848=_0x3dd2a5[_0x116c82];_0x1f42f4?_0x2a6ad8=path[_0x14edde('0x8')](_0x25fdad,_0x3a0af0,util[_0x14edde('0x19')](_0x14edde('0x23'),_0x3a0af0,_0x116c82,_0x14edde('0x4'))):_0x2a6ad8=path[_0x14edde('0x8')](_0x25fdad,util[_0x14edde('0x19')](_0x14edde('0x3'),_0x3a0af0,_0x14edde('0x4'))),fs['writeFileSync'](_0x2a6ad8,csv(_0x4d9848));}})['then'](function(){const _0x403efe=_0x9ec7d8;_0x1f42f4&&(zipdir(path[_0x403efe('0x8')](_0x25fdad,_0x3a0af0),{'saveTo':path[_0x403efe('0x8')](_0x25fdad,util[_0x403efe('0x19')](_0x403efe('0x3'),_0x3a0af0,'zip'))},function(){}),rimraf(path['join'](_0x25fdad,_0x3a0af0),function(){}));})[_0x9ec7d8('0x10')](function(){const _0x36e5d5=_0x9ec7d8;return logger[_0x36e5d5('0x17')](util[_0x36e5d5('0x19')](_0x36e5d5('0x1d'),EXTRACTED_REPORT_ID,_0x36e5d5('0x1b'))),analyticExtractedReport('Completed',_0x1f42f4?util['format'](_0x36e5d5('0x3'),_0x3a0af0,_0x1f42f4?_0x36e5d5('0x5'):_0x36e5d5('0x4')):null);});})[_0x46fc66('0xb')](function(_0x4ef8ca){const _0x1d1eeb=_0x46fc66;return logger[_0x1d1eeb('0x17')](util[_0x1d1eeb('0x19')](_0x1d1eeb('0x1'),EXTRACTED_REPORT_ID,_0x1d1eeb('0x1b')),util['inspect'](_0x4ef8ca,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x1d1eeb('0x27'));});}main(); \ No newline at end of file +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 diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index b5f1478..dad181c 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a827_0x393d=['../../mysqldb','push','query','header','split','zip','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','CSV','moment','%s%d.%s','/fonts/Roboto-Italic.ttf','end','startDate','dbH','num','createPdfKitDocument','AnalyticExtractedReport','%s.%s','endDate','rimraf','info','/fonts/Roboto-MediumItalic.ttf','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','then','inspect','QueryTypes','mkdirSync','path','join','createWriteStream','format','tableHeader','update','lodash','catch','Empty','landscape','PDF','findOne','err','length','SELECT','zip-dir','Completed','/fonts/Roboto-Medium.ttf','sequelize','Setting','util','/fonts/Roboto-Regular.ttf','error','each','content','black','body','undefined','existsSync','argv','splitSizePdf','pdf'];(function(_0x476e27,_0x393dc1){const _0x40fa8a=function(_0x377086){while(--_0x377086){_0x476e27['push'](_0x476e27['shift']());}};_0x40fa8a(++_0x393dc1);}(a827_0x393d,0xc1));const a827_0x40fa=function(_0x476e27,_0x393dc1){_0x476e27=_0x476e27-0x0;let _0x40fa8a=a827_0x393d[_0x476e27];return _0x40fa8a;};const _0x1227c1=a827_0x40fa;'use strict';const _=require(_0x1227c1('0x11')),fs=require('fs'),util=require(_0x1227c1('0x1f')),path=require(_0x1227c1('0xb')),moment=require(_0x1227c1('0x33')),PdfPrinter=require('pdfmake/src/printer'),zipdir=require(_0x1227c1('0x1a')),rimraf=require(_0x1227c1('0x3')),db=require(_0x1227c1('0x2b'))['db'],dbH=require(_0x1227c1('0x2b'))[_0x1227c1('0x38')],logger=require('../../config/logger')('analytics'),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process[_0x1227c1('0x28')][0x3],PATH=process['argv'][0x4],NAME=process[_0x1227c1('0x28')][0x5],FORMAT='MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a';let _extractedReport;function analyticExtractedReport(_0x377086,_0x3b197d){const _0x579a7e=_0x1227c1,_0x397cb1={'status':_0x377086},_0xfa987c={'where':{'id':EXTRACTED_REPORT_ID}};return _0x3b197d&&(_0x397cb1['savename']=_0x3b197d),db[_0x579a7e('0x0')][_0x579a7e('0x10')](_0x397cb1,_0xfa987c);}function getHeader(_0x2e29db){const _0x127e40=_0x1227c1,_0x313705=[];for(const _0x599871 in _0x2e29db){typeof _0x2e29db[_0x599871]!=='undefined'&&_0x313705['push']({'text':_0x599871,'style':_0x127e40('0xf')});}return _0x313705;}function extractReport(_0x1d63c5){const _0x1a9c41=_0x1227c1;let _0x1fba78=0x1388,_0x253e4f;if(!_0x1d63c5[0x0][_0x1a9c41('0x39')])return analyticExtractedReport(_0x1a9c41('0x13'));const _0x1fd287=[];let _0x35512f=0x0,_0x5cd957=!![];const _0x4f3a95=path['dirname'](PATH),_0xd8f5a7=path['basename'](PATH,'.pdf');let _0x2acc5a=![];const _0xdcf735=[];return db[_0x1a9c41('0x1e')][_0x1a9c41('0x16')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x1a9c41('0x2f'),_0x1a9c41('0x29')]})[_0x1a9c41('0x7')](function(_0x4b1dfc){const _0x458a44=_0x1a9c41;_0x4b1dfc&&(_0x253e4f=_0x4b1dfc,_0x1fba78=_0x253e4f[_0x458a44('0x29')]||0x3e8);})[_0x1a9c41('0x7')](function(){const _0x52f946=_0x1a9c41;if(_0x1d63c5&&_0x1d63c5[_0x52f946('0x18')]){let _0x22cf4c=_0x1d63c5[0x0][_0x52f946('0x39')]%(_0x35512f+_0x1fba78);if(_0x253e4f[_0x52f946('0x2f')])for(;_0x5cd957;_0x35512f+=_0x1fba78,_0x22cf4c=_0x1d63c5[0x0][_0x52f946('0x39')]%(_0x35512f+_0x1fba78)){(_0x22cf4c==0x0||_0x22cf4c==_0x1d63c5[0x0]['num'])&&(_0x5cd957=![]),_0x1fd287[_0x52f946('0x2c')](dbH[_0x52f946('0x1d')][_0x52f946('0x2d')](util[_0x52f946('0xe')]('%s\x20limit\x20%d\x20OFFSET\x20%d',QUERY,_0x1fba78,_0x35512f),{'type':dbH[_0x52f946('0x1d')][_0x52f946('0x9')][_0x52f946('0x19')]}));}else _0x1fd287['push'](dbH[_0x52f946('0x1d')][_0x52f946('0x2d')](QUERY,{'type':dbH[_0x52f946('0x1d')][_0x52f946('0x9')]['SELECT']}));}return _0x2acc5a=_0x253e4f[_0x52f946('0x2f')]&&_0x1fd287[_0x52f946('0x18')]>0x1,!fs[_0x52f946('0x27')](path[_0x52f946('0xc')](_0x4f3a95,_0xd8f5a7))&&_0x2acc5a&&fs[_0x52f946('0xa')](path[_0x52f946('0xc')](_0x4f3a95,_0xd8f5a7)),Promise['each'](_0x1fd287,function(_0x15fd26){const _0x4440af=_0x52f946;_0xdcf735[_0x4440af('0x2c')](_0x15fd26);});})['then'](function(){const _0x5b2767=_0x1a9c41;return Promise[_0x5b2767('0x22')](_0x1fd287,function(_0x354fe9,_0x5bc8ab){const _0x26790a=_0x5b2767;let _0x3f2148;const _0x3d0a48=util[_0x26790a('0xe')]('Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s',NAME,_extractedReport['name'],moment(_extractedReport[_0x26790a('0x37')])[_0x26790a('0xe')](FORMAT),moment(_extractedReport[_0x26790a('0x2')])[_0x26790a('0xe')](FORMAT)),_0x408a9f={'pageSize':'A4','pageOrientation':_0x26790a('0x14'),'content':[{'text':_0x3d0a48,'style':_0x26790a('0x2e')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x26790a('0x24')}}},_0x4e13fb={'headerRows':0x1,'body':[]};_0x4e13fb[_0x26790a('0x25')][_0x26790a('0x2c')](getHeader(_0x354fe9[0x0]));let _0x5b0f09;for(let _0x24a451=0x0;_0x24a451<_0x354fe9[_0x26790a('0x18')];_0x24a451+=0x1){_0x5b0f09=[];for(const _0xb8f8e in _0x354fe9[_0x24a451]){typeof _0x354fe9[_0x24a451][_0xb8f8e]!==_0x26790a('0x26')&&_0x5b0f09[_0x26790a('0x2c')](_0x354fe9[_0x24a451][_0xb8f8e]?_['toString'](_0x354fe9[_0x24a451][_0xb8f8e]):'');}_0x4e13fb['body'][_0x26790a('0x2c')](_0x5b0f09);}return _0x408a9f[_0x26790a('0x23')][_0x26790a('0x2c')]({'table':_0x4e13fb}),new Promise(function(_0x5e89c9,_0x30afd1){const _0x113551=_0x26790a,_0x47f801=new PdfPrinter({'Roboto':{'normal':__dirname+_0x113551('0x20'),'bold':__dirname+_0x113551('0x1c'),'italics':__dirname+_0x113551('0x35'),'bolditalics':__dirname+_0x113551('0x5')}}),_0x546a47=_0x47f801[_0x113551('0x3a')](_0x408a9f);_0x2acc5a?_0x3f2148=path[_0x113551('0xc')](_0x4f3a95,_0xd8f5a7,util[_0x113551('0xe')](_0x113551('0x34'),_0xd8f5a7,_0x5bc8ab,_0x113551('0x2a'))):_0x3f2148=path['join'](_0x4f3a95,util[_0x113551('0xe')](_0x113551('0x1'),_0xd8f5a7,_0x113551('0x2a')));const _0x119625=_0x546a47['pipe'](fs[_0x113551('0xd')](_0x3f2148));_0x119625['on']('finish',function(){_0x5e89c9();}),_0x119625['on'](_0x113551('0x21'),function(_0x1b3da0){const _0x1e4169=_0x113551;console['log'](_0x1e4169('0x17'),_0x1b3da0),_0x30afd1(_0x1b3da0);}),_0x546a47[_0x113551('0x36')]();});});})[_0x1a9c41('0x7')](function(){if(_0x2acc5a)return new Promise(function(_0x23d8d4,_0xe38443){const _0x31f193=a827_0x40fa;zipdir(path[_0x31f193('0xc')](_0x4f3a95,_0xd8f5a7),{'saveTo':path[_0x31f193('0xc')](_0x4f3a95,util[_0x31f193('0xe')](_0x31f193('0x1'),_0xd8f5a7,_0x31f193('0x30')))},function(_0x204427){_0x204427?_0xe38443(_0x204427):_0x23d8d4();});});})[_0x1a9c41('0x7')](function(){const _0x558504=_0x1a9c41;_0x2acc5a&&rimraf(path[_0x558504('0xc')](_0x4f3a95,_0xd8f5a7),function(){});})[_0x1a9c41('0x7')](function(){const _0x6987a3=_0x1a9c41;return logger['info'](util[_0x6987a3('0xe')]('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x6987a3('0x32'))),analyticExtractedReport(_0x6987a3('0x1b'),_0x2acc5a?util[_0x6987a3('0xe')]('%s.%s',_0xd8f5a7,_0x2acc5a?_0x6987a3('0x30'):'pdf'):null);});}function main(){const _0x20b1fe=_0x1227c1;return logger[_0x20b1fe('0x4')](util[_0x20b1fe('0xe')](_0x20b1fe('0x31'),EXTRACTED_REPORT_ID,_0x20b1fe('0x15'))),db['AnalyticExtractedReport'][_0x20b1fe('0x16')]({'where':{'id':EXTRACTED_REPORT_ID}})[_0x20b1fe('0x7')](function(_0x474732){const _0x420b59=_0x20b1fe;return _extractedReport=_0x474732,dbH[_0x420b59('0x1d')][_0x420b59('0x2d')](util[_0x420b59('0xe')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x420b59('0x1d')][_0x420b59('0x9')][_0x420b59('0x19')]});})[_0x20b1fe('0x7')](extractReport)[_0x20b1fe('0x12')](function(_0x12eb37){const _0x4a426f=_0x20b1fe;return logger[_0x4a426f('0x4')](util[_0x4a426f('0xe')](_0x4a426f('0x6'),EXTRACTED_REPORT_ID,_0x4a426f('0x15')),util[_0x4a426f('0x8')](_0x12eb37,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file +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 diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index 82863c8..3ee6b5b 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a828_0x176a=['xlsx','json2xls','SELECT','Completed','%s.%s','update','%s%d.%s','join','zip-dir','info','Empty','dirname','sequelize','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','binary','path','splitSizeXlsx','XLSX','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Setting','each','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','AnalyticExtractedReport','split','%s\x20limit\x20%d\x20OFFSET\x20%d','catch','rimraf','findOne','existsSync','Failed','QueryTypes','then','../../config/logger','query','dbH','length','push','num','writeFileSync','zip','argv','format','../../mysqldb','basename','util'];(function(_0x772b95,_0x176a3a){const _0x5dea12=function(_0x436723){while(--_0x436723){_0x772b95['push'](_0x772b95['shift']());}};_0x5dea12(++_0x176a3a);}(a828_0x176a,0x1c6));const a828_0x5dea=function(_0x772b95,_0x176a3a){_0x772b95=_0x772b95-0x0;let _0x5dea12=a828_0x176a[_0x772b95];return _0x5dea12;};const _0xceb7ea=a828_0x5dea;'use strict';const util=require(_0xceb7ea('0x5')),path=require(_0xceb7ea('0x15')),fs=require('fs'),json2xls=require(_0xceb7ea('0x7')),zipdir=require(_0xceb7ea('0xe')),rimraf=require(_0xceb7ea('0x21')),db=require(_0xceb7ea('0x3'))['db'],dbH=require(_0xceb7ea('0x3'))[_0xceb7ea('0x29')],logger=require(_0xceb7ea('0x27'))('analytics'),EXTRACTED_REPORT_ID=Number(process[_0xceb7ea('0x1')][0x2]),QUERY=process[_0xceb7ea('0x1')][0x3],PATH=process[_0xceb7ea('0x1')][0x4];function analyticExtractedReport(_0x436723,_0x3a9ce8){const _0x2ab2b6=_0xceb7ea,_0xea5739={'status':_0x436723},_0x4d532f={'where':{'id':EXTRACTED_REPORT_ID}};return _0x3a9ce8&&(_0xea5739['savename']=_0x3a9ce8),db[_0x2ab2b6('0x1d')][_0x2ab2b6('0xb')](_0xea5739,_0x4d532f);}function main(){const _0x2d6554=_0xceb7ea;let _0x3c33c1=0x1388,_0x3ac665;return logger['info'](util[_0x2d6554('0x2')](_0x2d6554('0x18'),EXTRACTED_REPORT_ID,_0x2d6554('0x17'))),db[_0x2d6554('0x19')][_0x2d6554('0x22')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x2d6554('0x1e'),_0x2d6554('0x16')]})[_0x2d6554('0x26')](function(_0x15f379){const _0x360019=_0x2d6554;_0x15f379&&(_0x3ac665=_0x15f379,_0x3c33c1=_0x3ac665[_0x360019('0x16')]||0x1388);})[_0x2d6554('0x26')](function(){const _0x2e1b55=_0x2d6554;return dbH[_0x2e1b55('0x12')]['query'](util['format'](_0x2e1b55('0x1c'),QUERY),{'type':dbH['sequelize'][_0x2e1b55('0x25')][_0x2e1b55('0x8')]});})[_0x2d6554('0x26')](function(_0xbc6ef1){const _0x3a4a15=_0x2d6554;if(!_0xbc6ef1[0x0][_0x3a4a15('0x2c')])return analyticExtractedReport(_0x3a4a15('0x10'));const _0x42d1a7=[];let _0x3b2663=0x0,_0x308435=!![];if(_0x3ac665[_0x3a4a15('0x1e')]){if(_0xbc6ef1&&_0xbc6ef1['length']){let _0x58f04c=_0xbc6ef1[0x0][_0x3a4a15('0x2c')]%(_0x3b2663+_0x3c33c1);for(;_0x308435;_0x3b2663+=_0x3c33c1,_0x58f04c=_0xbc6ef1[0x0][_0x3a4a15('0x2c')]%(_0x3b2663+_0x3c33c1)){(_0x58f04c==0x0||_0x58f04c==_0xbc6ef1[0x0][_0x3a4a15('0x2c')])&&(_0x308435=![]),_0x42d1a7[_0x3a4a15('0x2b')](dbH['sequelize']['query'](util[_0x3a4a15('0x2')](_0x3a4a15('0x1f'),QUERY,_0x3c33c1,_0x3b2663),{'type':dbH[_0x3a4a15('0x12')][_0x3a4a15('0x25')][_0x3a4a15('0x8')]}));}}}else _0x42d1a7[_0x3a4a15('0x2b')](dbH[_0x3a4a15('0x12')][_0x3a4a15('0x28')](QUERY,{'type':dbH[_0x3a4a15('0x12')]['QueryTypes'][_0x3a4a15('0x8')]}));const _0x4e06f8=path[_0x3a4a15('0x11')](PATH),_0x505028=path[_0x3a4a15('0x4')](PATH,'.xlsx'),_0x40e6c9=_0x3ac665[_0x3a4a15('0x1e')]&&_0x42d1a7[_0x3a4a15('0x2a')]>0x1,_0x1c39d5=[];return!fs[_0x3a4a15('0x23')](path[_0x3a4a15('0xd')](_0x4e06f8,_0x505028))&&_0x40e6c9&&fs['mkdirSync'](path[_0x3a4a15('0xd')](_0x4e06f8,_0x505028)),Promise[_0x3a4a15('0x1a')](_0x42d1a7,function(_0x1804bd){const _0x465f4b=_0x3a4a15;_0x1c39d5[_0x465f4b('0x2b')](_0x1804bd);})[_0x3a4a15('0x26')](function(){const _0x4b6511=_0x3a4a15;for(let _0x2a0cd8=0x0;_0x2a0cd8<_0x1c39d5[_0x4b6511('0x2a')];_0x2a0cd8+=0x1){let _0x51b166;const _0x2e145f=_0x1c39d5[_0x2a0cd8];_0x40e6c9?_0x51b166=path[_0x4b6511('0xd')](_0x4e06f8,_0x505028,util[_0x4b6511('0x2')](_0x4b6511('0xc'),_0x505028,_0x2a0cd8,_0x4b6511('0x6'))):_0x51b166=path['join'](_0x4e06f8,util['format'](_0x4b6511('0xa'),_0x505028,_0x4b6511('0x6'))),fs[_0x4b6511('0x2d')](_0x51b166,json2xls(_0x2e145f),_0x4b6511('0x14'));}})[_0x3a4a15('0x26')](function(){const _0x371743=_0x3a4a15;_0x40e6c9&&(zipdir(path[_0x371743('0xd')](_0x4e06f8,_0x505028),{'saveTo':path[_0x371743('0xd')](_0x4e06f8,util[_0x371743('0x2')](_0x371743('0xa'),_0x505028,_0x371743('0x0')))},function(){}),rimraf(path[_0x371743('0xd')](_0x4e06f8,_0x505028),function(){}));})[_0x3a4a15('0x26')](function(){const _0x44fcfd=_0x3a4a15;return logger[_0x44fcfd('0xf')](util[_0x44fcfd('0x2')](_0x44fcfd('0x13'),EXTRACTED_REPORT_ID,_0x44fcfd('0x17'))),analyticExtractedReport(_0x44fcfd('0x9'),_0x40e6c9?util['format'](_0x44fcfd('0xa'),_0x505028,_0x40e6c9?_0x44fcfd('0x0'):_0x44fcfd('0x6')):null);});})[_0x2d6554('0x20')](function(_0x491b46){const _0x6c4c59=_0x2d6554;return logger['info'](util[_0x6c4c59('0x2')](_0x6c4c59('0x1b'),EXTRACTED_REPORT_ID,_0x6c4c59('0x17')),util['inspect'](_0x491b46,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x6c4c59('0x24'));});}main(); \ No newline at end of file +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 diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index 5aede9e..a3b4c2d 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a829_0x1325=['then','context','push','answer','none','exten','intervals','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','catch','last','${EXTEN}','outbound','transaction','createdAt','Set','CDR(prefix)=${EXTEN:0:','MONITOR_OPTIONS=ab','map','updatedAt','findAll','tag','lodash','CAST(priority\x20AS\x20UNSIGNED)','literal',',${EXTEN},','playback','toLowerCase','CDR(prefix)=noprefix','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','find','splice','sortBy','wav','extensions','IntervalId','ExecIf','callerID','${EXTEN:','concat','undefined','GotoIfTime','destroy','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','uniq','CDR(destination)=','models','XCALLY-MOTION-PROGRESS=0','CDR(routeid)=','filter','VoiceExtension','XCALLY-MOTION-ANSWER=1','Hangup','util','Interval','recordingFormat','bulkCreate','custom','$[${XCALLY-MOTION-ANSWER}=0]?Answer','length','priority','extension','app','cutdigits','XCALLY-MOTION-ANSWER=0','type','VoiceExtensionId','*,*,*,*','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','interval','_XCALLY_MIXMONITOR_FORMAT=','format','CDR(type)=%s','):Goto(','outboundrouteid=','rewrite','queue'];(function(_0x2c1293,_0x13250d){const _0x31bfe4=function(_0x12fbe3){while(--_0x12fbe3){_0x2c1293['push'](_0x2c1293['shift']());}};_0x31bfe4(++_0x13250d);}(a829_0x1325,0x140));const a829_0x31bf=function(_0x2c1293,_0x13250d){_0x2c1293=_0x2c1293-0x0;let _0x31bfe4=a829_0x1325[_0x2c1293];return _0x31bfe4;};const _0xecde28=a829_0x31bf;'use strict';const _=require(_0xecde28('0x5')),util=require(_0xecde28('0x24')),{Op}=require('sequelize');function rewrite(_0x12fbe3,_0x51b175){const _0x5a04f4=_0xecde28,_0x2206c7=this;return _0x12fbe3[_0x5a04f4('0x1d')][_0x5a04f4('0x25')][_0x5a04f4('0x3')]({'raw':!![]})['then'](function(_0x5a4586){const _0x5e26e1=_0x5a04f4;return _0x2206c7[_0x5e26e1('0x42')]=_0x5a4586,_0x12fbe3['models'][_0x5e26e1('0x21')][_0x5e26e1('0x3')]({'where':{'IntervalId':_0x51b175[_0x5e26e1('0x12')]},'raw':!![]});})[_0x5a04f4('0x3c')](function(_0x31dad4){const _0x1ce5c8=_0x5a04f4;return _0x12fbe3[_0x1ce5c8('0x1d')][_0x1ce5c8('0x21')]['findAll']({'where':{'exten':{[Op['in']]:_[_0x1ce5c8('0x1b')](_['map'](_0x31dad4,_0x1ce5c8('0x41')))}},'order':_0x12fbe3[_0x1ce5c8('0x7')](_0x1ce5c8('0x6')),'raw':!![]});})[_0x5a04f4('0x3c')](function(_0x1cc8ad){const _0x577f5a=_0x5a04f4,_0x147aaf=_[_0x577f5a('0x20')](_0x1cc8ad,{'priority':'1'}),_0x41bf13=_['filter'](_0x1cc8ad,{'isApp':0x1}),_0x37b22d=_['groupBy'](_0x41bf13,'exten'),_0x15c11a=[_0x577f5a('0x3b'),_0x577f5a('0x9')],_0x48ceaf=[];let _0x374575=[];for(const _0x268d68 in _0x37b22d){if(typeof _0x37b22d[_0x268d68]!==_0x577f5a('0x17')){_0x2206c7[_0x577f5a('0x2b')]=0x2,_0x2206c7['extensions']=[],_0x2206c7[_0x577f5a('0x2c')]=_[_0x577f5a('0xd')](_0x147aaf,{'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')]}),_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':'Set','appdata':util[_0x577f5a('0x36')](_0x577f5a('0x37'),_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')]),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]});if(_0x37b22d[_0x268d68][0x0]['type']===_0x577f5a('0x47')){_0x2206c7['extension']&&_0x2206c7['extensions']['push']({'type':_0x37b22d[_0x268d68][0x0]['type'],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x1c')+(_0x2206c7[_0x577f5a('0x2c')][_0x577f5a('0x2e')]?_0x577f5a('0x15')+_0x2206c7[_0x577f5a('0x2c')][_0x577f5a('0x2e')]+'}':_0x577f5a('0x46')),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7['priority']++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0]['VoiceExtensionId']});_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0]['type'],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x1f')+_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')],'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]});const _0x1dec83=_0x2206c7[_0x577f5a('0x2b')]++;_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0]['type'],'app':_0x577f5a('0x13'),'appdata':_0x577f5a('0x1a')+(_0x1dec83+0x2)+_0x577f5a('0x38')+(_0x1dec83+0x1)+')','context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0]['exten'],'priority':_0x1dec83,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]}),_0x2206c7[_0x577f5a('0x2c')]&&_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x2206c7[_0x577f5a('0x2c')]['cutdigits']?_0x577f5a('0x4b')+_0x2206c7[_0x577f5a('0x2c')][_0x577f5a('0x2e')]+'}':_0x577f5a('0xb'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7['priority']++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]}),_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x39')+_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')],'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]}),_0x2206c7[_0x577f5a('0x2c')]&&typeof _0x2206c7[_0x577f5a('0x2c')][_0x577f5a('0x26')]!==_0x577f5a('0x17')&&_0x2206c7['extension'][_0x577f5a('0x26')]!==_0x577f5a('0x40')&&(_0x2206c7[_0x577f5a('0x11')]['push']({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x43'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0]['exten'],'priority':_0x2206c7['priority']++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]}),_0x2206c7['extensions'][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x35')+_0x2206c7[_0x577f5a('0x2c')][_0x577f5a('0x26')]||_0x577f5a('0x10'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0]['exten'],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]}));}_0x2206c7[_0x577f5a('0x11')]['push']({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':'Set','appdata':_0x577f5a('0x2f'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0]['VoiceExtensionId']}),_0x2206c7['extensions']['push']({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x1e'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7['priority']++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0]['VoiceExtensionId']}),_0x2206c7[_0x577f5a('0x11')][_0x577f5a('0x3e')]({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x0'),'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'exten':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x41')],'priority':_0x2206c7[_0x577f5a('0x2b')]++,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]});for(let _0x3114a1=0x0,_0x3a4a28=0x0;_0x3114a1<_0x37b22d[_0x268d68][_0x577f5a('0x2a')];_0x3114a1+=0x1,_0x3a4a28=0x0){const _0x403b49=_0x37b22d[_0x268d68][_0x3114a1];_0x403b49[_0x577f5a('0x30')]&&(_0x403b49[_0x577f5a('0x30')]=_0x403b49[_0x577f5a('0x30')][_0x577f5a('0xa')]());const _0x133a23=[],_0x1d5b50=[];delete _0x403b49['id'],delete _0x403b49[_0x577f5a('0x49')],delete _0x403b49[_0x577f5a('0x2')];const _0x32b725=_0x403b49[_0x577f5a('0x34')]!==_0x577f5a('0x32')?[_0x403b49[_0x577f5a('0x34')]]:_0x403b49[_0x577f5a('0x12')]?_[_0x577f5a('0x1')](_[_0x577f5a('0x20')](_0x2206c7[_0x577f5a('0x42')],{'IntervalId':_0x403b49['IntervalId']}),_0x577f5a('0x34')):[];typeof _0x403b49['tag']!==_0x577f5a('0x17')&&(_0x403b49[_0x577f5a('0x4')]&&_0x403b49['tag']!=='--'&&_0x133a23['push']({'type':_0x403b49[_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':'CDR(tag)='+_0x403b49[_0x577f5a('0x4')],'context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725[_0x577f5a('0x2a')]+_0x2206c7['priority']+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]}));_0x403b49[_0x577f5a('0x30')]===_0x577f5a('0x47')&&typeof _0x403b49[_0x577f5a('0x14')]!=='undefined'&&(_0x403b49[_0x577f5a('0x14')]?_0x133a23[_0x577f5a('0x3e')]({'type':_0x403b49['type'],'app':_0x577f5a('0x13'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x403b49[_0x577f5a('0x14')]+')','context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725['length']+_0x2206c7[_0x577f5a('0x2b')]+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]}):_0x133a23[_0x577f5a('0x3e')]({'type':_0x403b49[_0x577f5a('0x30')],'app':'ExecIf','appdata':_0x577f5a('0xc'),'context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725[_0x577f5a('0x2a')]+_0x2206c7[_0x577f5a('0x2b')]+_0x3a4a28++,'VoiceExtensionId':_0x403b49['VoiceExtensionId']}));typeof _0x403b49[_0x577f5a('0x3f')]!=='undefined'&&(_0x15c11a['indexOf'](_0x403b49[_0x577f5a('0x2d')]['toLowerCase']())>=0x0&&_0x403b49['appType']!==_0x577f5a('0x28')&&(_0x403b49['answer']?(_0x133a23['push']({'type':_0x403b49[_0x577f5a('0x30')],'app':_0x577f5a('0x13'),'appdata':_0x577f5a('0x29'),'context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725['length']+_0x2206c7[_0x577f5a('0x2b')]+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]}),_0x133a23[_0x577f5a('0x3e')]({'type':_0x403b49[_0x577f5a('0x30')],'app':_0x577f5a('0x4a'),'appdata':_0x577f5a('0x22'),'context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49['exten'],'priority':_0x32b725[_0x577f5a('0x2a')]+_0x2206c7['priority']+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]})):(_0x133a23[_0x577f5a('0x3e')]({'type':_0x403b49[_0x577f5a('0x30')],'app':'ExecIf','appdata':_0x577f5a('0x33'),'context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725[_0x577f5a('0x2a')]+_0x2206c7[_0x577f5a('0x2b')]+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]}),_0x133a23[_0x577f5a('0x3e')]({'type':_0x403b49['type'],'app':_0x577f5a('0x4a'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x403b49[_0x577f5a('0x3d')],'exten':_0x403b49[_0x577f5a('0x41')],'priority':_0x32b725[_0x577f5a('0x2a')]+_0x2206c7[_0x577f5a('0x2b')]+_0x3a4a28++,'VoiceExtensionId':_0x403b49[_0x577f5a('0x31')]}))));for(let _0x37144f=0x0;_0x37144f<_0x32b725[_0x577f5a('0x2a')];_0x37144f+=0x1){const _0x460769=_0x2206c7[_0x577f5a('0x2b')]+_0x32b725['length'],_0x582335=_0x37144f===_0x32b725[_0x577f5a('0x2a')]-0x1?_0x2206c7[_0x577f5a('0x2b')]+_0x133a23[_0x577f5a('0x2a')]+_0x1d5b50[_0x577f5a('0x2a')]+0x2:_0x2206c7['priority']+_0x37144f+0x1;_0x133a23[_0x577f5a('0xe')](_0x37144f,0x0,{'type':_0x403b49[_0x577f5a('0x30')],'app':_0x577f5a('0x18'),'appdata':_0x32b725[_0x37144f]+'?'+_0x403b49[_0x577f5a('0x3d')]+_0x577f5a('0x8')+_0x460769+':'+_0x403b49['context']+_0x577f5a('0x8')+_0x582335,'exten':_0x403b49['exten'],'context':_0x403b49[_0x577f5a('0x3d')],'priority':_0x2206c7[_0x577f5a('0x2b')]+_0x37144f,'VoiceExtensionId':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]});}_0x403b49[_0x577f5a('0x2b')]=_0x133a23[_0x577f5a('0x2a')]?_[_0x577f5a('0x45')](_0x133a23)[_0x577f5a('0x2b')]+0x1:_0x2206c7[_0x577f5a('0x2b')],_0x2206c7[_0x577f5a('0x2b')]=(_0x1d5b50[_0x577f5a('0x2a')]?_[_0x577f5a('0x45')](_0x1d5b50)[_0x577f5a('0x2b')]:_0x403b49[_0x577f5a('0x2b')])+0x1,_0x2206c7['extensions']=_[_0x577f5a('0x16')](_0x2206c7[_0x577f5a('0x11')],_0x133a23,[_0x403b49],_0x1d5b50);}_0x2206c7['extensions']['push']({'type':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x30')],'app':_0x577f5a('0x23'),'exten':_0x37b22d[_0x268d68][0x0]['exten'],'context':_0x37b22d[_0x268d68][0x0][_0x577f5a('0x3d')],'priority':_0x2206c7[_0x577f5a('0x2b')],'VoiceExtensionId':_0x37b22d[_0x268d68][0x0]['VoiceExtensionId']}),_0x48ceaf['push'](_0x37b22d[_0x268d68][0x0][_0x577f5a('0x31')]),_0x374575=_[_0x577f5a('0x16')](_0x374575,_0x2206c7[_0x577f5a('0x11')]);}}return _0x12fbe3[_0x577f5a('0x48')](function(_0x563884){const _0x49f2e3=_0x577f5a;return _0x12fbe3[_0x49f2e3('0x1d')][_0x49f2e3('0x21')][_0x49f2e3('0x19')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x48ceaf}},'transaction':_0x563884})[_0x49f2e3('0x3c')](function(){const _0x13533a=_0x49f2e3;return _0x12fbe3['models'][_0x13533a('0x21')][_0x13533a('0x27')](_[_0x13533a('0xf')](_0x374575,_0x13533a('0x2b')),{'transaction':_0x563884});});});})[_0x5a04f4('0x44')](function(_0xfecd12){console['error'](_0xfecd12);});}exports[_0xecde28('0x3a')]=rewrite; \ No newline at end of file +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 diff --git a/server/components/import/cm/csv.js b/server/components/import/cm/csv.js index 2fd6ac1..d1ec29b 100644 --- a/server/components/import/cm/csv.js +++ b/server/components/import/cm/csv.js @@ -1 +1 @@ -const a830_0x2dde=['SIGINT','info','query','parse','Missing\x20filepath\x20parameter!','birthDate','deletedAt\x20IS\x20NULL','scheduledAt','email','zipObject','keys','cm_contacts','Error\x20while\x20creating\x20contact:\x20','Missing\x20ListId\x20parameter!','data','split','str','phone\x20IS\x20NOT\x20NULL','finally','outbound','firstName\x20not\x20specified!','onlyIfOpen','test','lodash','../../../config/logger','cmContact','Error\x20executing\x20contact\x20csv\x20import:','ListId','from','VoiceQueue','CampaignId','index','Lists','phone','CSV\x20import\x20process\x20stopped!','argv','phone\x20not\x20specified!','fromQuery','duplicate','ContactId','VoiceQueueId','email\x20format\x20is\x20not\x20valid!','join','firstName','ListId\x20=\x20?','catch','moment','create','CSV\x20parsed\x20correctly!','pick','id\x20IN\x20?','then','calleridnum','Missing\x20binding\x20parameters!','birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','unlinkSync','CSV\x20parse\x20error','map','null','where','updatedAt','phone\x20NOT\x20IN\x20(?)','select','CmList','Campaign','Duplicate\x20Contact','createdAt','BlackLists','toString','contact','exit','sequelize','all','CmContact','contact:csv_','always','papaparse','util','cm_hopper_black','squel','findAll','errors','Missing\x20socket_timestamp\x20parameter!','insert','length','Unable\x20to\x20delete\x20temp\x20file:','pause','stringify','field','undefined','dialCheckDuplicateType','NOW()','YYYY-MM-DD','error','resolve','register','../../../mysqldb','get','createReadStream','cm_hopper','into','push','\x20=\x20?'];(function(_0x124ee3,_0x2dde54){const _0x509253=function(_0x64b214){while(--_0x64b214){_0x124ee3['push'](_0x124ee3['shift']());}};_0x509253(++_0x2dde54);}(a830_0x2dde,0x11f));const a830_0x5092=function(_0x124ee3,_0x2dde54){_0x124ee3=_0x124ee3-0x0;let _0x509253=a830_0x2dde[_0x124ee3];return _0x509253;};const _0x48731f=a830_0x5092;'use strict';const util=require(_0x48731f('0x67')),_=require(_0x48731f('0x30')),fs=require('fs'),squel=require(_0x48731f('0x1')),Papa=require(_0x48731f('0x66')),moment=require(_0x48731f('0x47')),db=require(_0x48731f('0x12'))['db'],logger=require(_0x48731f('0x31'))('api'),{getSocket}=require('../../../rediscache'),socket=getSocket();require('../../../api/cmContact/cmContact.socket')[_0x48731f('0x11')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process['argv'][0x2]||process['argv'][0x2]===_0x48731f('0xb')||process[_0x48731f('0x3c')][0x2]===_0x48731f('0x54'))throw new Error(_0x48731f('0x1d'));FILEPATH=process['argv'][0x2];if(!process[_0x48731f('0x3c')][0x3]||process[_0x48731f('0x3c')][0x3]===_0x48731f('0xb')||process['argv'][0x3]===_0x48731f('0x54')||!process[_0x48731f('0x3c')][0x4]||process[_0x48731f('0x3c')][0x4]===_0x48731f('0xb')||process[_0x48731f('0x3c')][0x4]===_0x48731f('0x54'))throw new Error(_0x48731f('0x4e'));FIELDS=_[_0x48731f('0x22')](process[_0x48731f('0x3c')][0x3][_0x48731f('0x28')](','),process['argv'][0x4][_0x48731f('0x28')](','));if(!process[_0x48731f('0x3c')][0x5]||process[_0x48731f('0x3c')][0x5]===_0x48731f('0xb')||process[_0x48731f('0x3c')][0x5]===_0x48731f('0x54'))throw new Error(_0x48731f('0x26'));LISTID=process[_0x48731f('0x3c')][0x5],COMPANYID=process[_0x48731f('0x3c')][0x6]&&process[_0x48731f('0x3c')][0x6]!==_0x48731f('0xb')&&process[_0x48731f('0x3c')][0x6]!==_0x48731f('0x54')?process[_0x48731f('0x3c')][0x6]:null,DUPLICATES=process[_0x48731f('0x3c')][0x7]&&process[_0x48731f('0x3c')][0x7]!=='undefined'&&process[_0x48731f('0x3c')][0x7]!==_0x48731f('0x54')?process[_0x48731f('0x3c')][0x7]:null;if(!process['argv'][0x8]||process[_0x48731f('0x3c')][0x8]==='undefined'||process[_0x48731f('0x3c')][0x8]===_0x48731f('0x54'))throw new Error(_0x48731f('0x4'));SOCKET_TIMESTAMP=process['argv'][0x8];}catch(a830_0x64b214){logger['error'](a830_0x64b214),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x12e089,_0xa1af50,_0x16dc96,_0x435492){const _0x50a567=_0x48731f,_0x775376={'message':_0xa1af50};return _0x775376[_0x12e089]=!![],_0x16dc96&&(_0x775376[_0x50a567('0x5f')]=_0x16dc96),_0x435492&&(_0x775376[_0x50a567('0x38')]=_0x435492),_0x775376;}function isEmail(_0x4a8685){const _0xe3154f=_0x48731f;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))*$/[_0xe3154f('0x2f')](_0x4a8685);}function checkRow(_0x413e55,_0x586149,_0x58b8d6){return new Promise(function(_0x45c615,_0x5aa109){const _0x9ff258=a830_0x5092;if(_['isNil'](_0x413e55))return _0x5aa109(handleCheckRowError(_0x9ff258('0xf'),_0x9ff258('0x50'),null,_0x58b8d6));if(_0x413e55['errors']&&_0x413e55['errors'][_0x9ff258('0x6')]){const _0x12a752=_[_0x9ff258('0x53')](_0x413e55[_0x9ff258('0x3')],'message')[_0x9ff258('0x43')](';');return _0x5aa109(handleCheckRowError(_0x9ff258('0xf'),_0x12a752,null,_0x58b8d6));}const _0x3fc511={};for(const _0x29d85b in FIELDS){typeof FIELDS[_0x29d85b]!==_0x9ff258('0xb')&&FIELDS[_0x29d85b]&&(_0x3fc511[_0x29d85b]=_0x413e55[_0x9ff258('0x27')][0x0][FIELDS[_0x29d85b]]||_0x413e55[_0x9ff258('0x27')][0x0]['\ufeff'+FIELDS[_0x29d85b]]);}if(!_0x3fc511[_0x9ff258('0x44')])return _0x5aa109(handleCheckRowError('error',_0x9ff258('0x2d'),null,_0x58b8d6));if(!_0x3fc511['phone'])return _0x5aa109(handleCheckRowError(_0x9ff258('0xf'),_0x9ff258('0x3d'),null,_0x58b8d6));if(_0x3fc511[_0x9ff258('0x1e')]){const _0x24d656=moment(_0x3fc511['birthDate'],_0x9ff258('0xe'));if(!_0x24d656['isValid']())return _0x5aa109(handleCheckRowError('error',_0x9ff258('0x4f'),null,_0x58b8d6));}if(_0x3fc511[_0x9ff258('0x21')]){if(!isEmail(_0x3fc511[_0x9ff258('0x21')]))return _0x5aa109(handleCheckRowError(_0x9ff258('0xf'),_0x9ff258('0x42'),null,_0x58b8d6));}_0x3fc511[_0x9ff258('0x34')]=LISTID,_0x3fc511['CompanyId']=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES[_0x9ff258('0x6')]&&_0x586149){const _0x47a5cd={};for(let _0x392745=0x0,_0x566e49=DUPLICATES[_0x9ff258('0x6')];_0x392745<_0x566e49;_0x392745+=0x1){_0x47a5cd[DUPLICATES[_0x392745]]=_0x3fc511[DUPLICATES[_0x392745]];}const _0x5f212d=_['find'](_0x586149,_0x47a5cd);if(_0x5f212d)return _0x5aa109(handleCheckRowError(_0x9ff258('0x3f'),_0x9ff258('0x5b'),_0x5f212d,_0x58b8d6));}return db[_0x9ff258('0x63')][_0x9ff258('0x48')](_0x3fc511,{'raw':!![],'hooks':![],'fields':_[_0x9ff258('0x23')](_0x3fc511)})['then'](function(_0x3d01d4){const _0x2f279f=_0x9ff258;return DUPLICATES&&DUPLICATES[_0x2f279f('0x6')]&&_0x586149&&_0x586149[_0x2f279f('0x17')](_[_0x2f279f('0x4a')](_0x3fc511,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x3d01d4['id'],_0x45c615();})[_0x9ff258('0x46')](function(_0x1a2215){const _0x3caa8f=_0x9ff258;return _0x5aa109(handleCheckRowError(_0x3caa8f('0xf'),_0x3caa8f('0x25')+(_0x1a2215['message']||JSON['stringify'](_0x1a2215)),null,_0x58b8d6));});});}function checkHopper(){const _0x2160f0=_0x48731f;function _0x546c90(){return function(_0x47bcaf){const _0x3012fa=a830_0x5092;logger[_0x3012fa('0xf')](_0x3012fa('0x32'),'checkHopper',util['inspect'](_0x47bcaf,{'showHidden':![],'depth':null}));};}const _0x1ef6f5=function(_0x5e5a7e,_0x45ade5){const _0x45b444=a830_0x5092,_0x55c41f=squel['insert']()[_0x45b444('0x16')](_0x45b444('0x15'))['fromQuery']([_0x45b444('0x3a'),'scheduledAt',_0x45b444('0x40'),_0x45b444('0x34'),_0x45ade5,_0x45b444('0x5c'),_0x45b444('0x56')],squel['select']()[_0x45b444('0xa')](_0x45b444('0x3a'),'phone')[_0x45b444('0xa')]('NOW()',_0x45b444('0x20'))[_0x45b444('0xa')]('id','ContactId')[_0x45b444('0xa')](LISTID[_0x45b444('0x5e')](),_0x45b444('0x34'))[_0x45b444('0xa')](_0x5e5a7e['id'][_0x45b444('0x5e')](),_0x45ade5)[_0x45b444('0xa')](_0x45b444('0xd'),_0x45b444('0x5c'))[_0x45b444('0xa')](_0x45b444('0xd'),_0x45b444('0x56'))[_0x45b444('0x35')](_0x45b444('0x24'))[_0x45b444('0x55')](_0x45b444('0x1f'))[_0x45b444('0x55')](_0x45b444('0x45'),LISTID[_0x45b444('0x5e')]())[_0x45b444('0x55')](_0x45b444('0x2a'))['where']('phone\x20NOT\x20IN\x20(?)',squel[_0x45b444('0x58')]()[_0x45b444('0xa')]('phone')[_0x45b444('0x35')](_0x45b444('0x15'))[_0x45b444('0x55')](_0x45ade5+_0x45b444('0x18'),_0x5e5a7e['id'][_0x45b444('0x5e')]())))[_0x45b444('0x5e')]();return _0x55c41f;},_0x46f2f5=function(_0xc942e1,_0x5c1f78){const _0x5265cc=a830_0x5092,_0x1377a2=squel[_0x5265cc('0x5')]()['into'](_0x5265cc('0x15'))[_0x5265cc('0x3e')](['phone',_0x5265cc('0x20'),_0x5265cc('0x40'),_0x5265cc('0x34'),_0x5c1f78,_0x5265cc('0x5c'),'updatedAt'],squel[_0x5265cc('0x58')]()['field'](_0x5265cc('0x3a'),_0x5265cc('0x3a'))[_0x5265cc('0xa')](_0x5265cc('0xd'),_0x5265cc('0x20'))[_0x5265cc('0xa')]('id','ContactId')[_0x5265cc('0xa')](LISTID[_0x5265cc('0x5e')](),_0x5265cc('0x34'))[_0x5265cc('0xa')](_0xc942e1['id'][_0x5265cc('0x5e')](),_0x5c1f78)['field'](_0x5265cc('0xd'),_0x5265cc('0x5c'))[_0x5265cc('0xa')](_0x5265cc('0xd'),_0x5265cc('0x56'))[_0x5265cc('0x35')](_0x5265cc('0x24'))[_0x5265cc('0x55')](_0x5265cc('0x1f'))[_0x5265cc('0x55')](_0x5265cc('0x45'),LISTID[_0x5265cc('0x5e')]())[_0x5265cc('0x55')](_0x5265cc('0x4b'),squel[_0x5265cc('0x29')](hopperContacts))[_0x5265cc('0x55')](_0x5265cc('0x2a'))['where'](_0x5265cc('0x57'),squel[_0x5265cc('0x58')]()[_0x5265cc('0xa')](_0x5265cc('0x4d'))['from']('cm_hopper_final')[_0x5265cc('0x55')](_0x5c1f78+_0x5265cc('0x18'),_0xc942e1['id'][_0x5265cc('0x5e')]()))[_0x5265cc('0x55')](_0x5265cc('0x57'),squel[_0x5265cc('0x58')]()[_0x5265cc('0xa')](_0x5265cc('0x3a'))[_0x5265cc('0x35')](_0x5265cc('0x15'))['where'](_0x5c1f78+'\x20=\x20?',_0xc942e1['id'][_0x5265cc('0x5e')]())))[_0x5265cc('0x5e')]();return _0x1377a2;};function _0x40b4dc(_0x2bb68e,_0x4d4850){const _0x174e96=a830_0x5092,_0x4da70c=squel[_0x174e96('0x5')]()['into'](_0x174e96('0x15'))['fromQuery']([_0x174e96('0x3a'),_0x174e96('0x20'),_0x174e96('0x40'),_0x174e96('0x34'),_0x4d4850,'createdAt','updatedAt'],squel['select']()['field']('phone',_0x174e96('0x3a'))[_0x174e96('0xa')](_0x174e96('0xd'),_0x174e96('0x20'))[_0x174e96('0xa')]('id',_0x174e96('0x40'))['field'](LISTID['toString'](),_0x174e96('0x34'))[_0x174e96('0xa')](_0x2bb68e['id']['toString'](),_0x4d4850)['field'](_0x174e96('0xd'),_0x174e96('0x5c'))[_0x174e96('0xa')](_0x174e96('0xd'),_0x174e96('0x56'))[_0x174e96('0x35')](_0x174e96('0x24'))[_0x174e96('0x55')](_0x174e96('0x1f'))[_0x174e96('0x55')](_0x174e96('0x45'),LISTID['toString']())[_0x174e96('0x55')](_0x174e96('0x4b'),squel[_0x174e96('0x29')](hopperContacts))[_0x174e96('0x55')](_0x174e96('0x2a')))[_0x174e96('0x5e')]();return _0x4da70c;}function _0x5c4708(_0x44c7c8,_0x4646c2){const _0x542dcb=a830_0x5092,_0x4edf18=squel[_0x542dcb('0x5')]()[_0x542dcb('0x16')](_0x542dcb('0x0'))[_0x542dcb('0x3e')]([_0x542dcb('0x3a'),_0x542dcb('0x40'),_0x542dcb('0x34'),_0x4646c2,_0x542dcb('0x5c'),'updatedAt'],squel[_0x542dcb('0x58')]()[_0x542dcb('0xa')](_0x542dcb('0x3a'),_0x542dcb('0x3a'))['field']('id',_0x542dcb('0x40'))[_0x542dcb('0xa')](LISTID['toString'](),_0x542dcb('0x34'))['field'](_0x44c7c8['id'][_0x542dcb('0x5e')](),_0x4646c2)['field']('NOW()',_0x542dcb('0x5c'))[_0x542dcb('0xa')]('NOW()','updatedAt')['from'](_0x542dcb('0x24'))['where']('deletedAt\x20IS\x20NULL')[_0x542dcb('0x55')]('ListId\x20=\x20?',LISTID[_0x542dcb('0x5e')]())[_0x542dcb('0x55')](_0x542dcb('0x4b'),squel['str'](hopperContacts))[_0x542dcb('0x55')](_0x542dcb('0x2a')))['toString']();return _0x4edf18;}return db[_0x2160f0('0x36')]['findAll']({'where':{'type':_0x2160f0('0x2c')},'attributes':['id','dialCheckDuplicateType'],'include':[{'model':db['CmList'],'as':_0x2160f0('0x39'),'where':{'id':LISTID}}]})[_0x2160f0('0x4c')](function(_0x20166b){const _0x2266b7=_0x2160f0,_0x3b319e=[];if(_0x20166b)for(let _0x1f3241=0x0,_0x47a0fd;_0x1f3241<_0x20166b['length'];_0x1f3241+=0x1){_0x47a0fd=_0x20166b[_0x1f3241]['get']({'plain':!![]});switch(_0x47a0fd[_0x2266b7('0xc')]){case _0x2266b7('0x65'):_0x3b319e[_0x2266b7('0x17')](db[_0x2266b7('0x61')][_0x2266b7('0x1b')](_0x46f2f5(_0x47a0fd,_0x2266b7('0x41')))[_0x2266b7('0x4c')](function(){})[_0x2266b7('0x46')](_0x546c90()));break;case'onlyIfOpen':_0x3b319e[_0x2266b7('0x17')](db[_0x2266b7('0x61')][_0x2266b7('0x1b')](_0x1ef6f5(_0x47a0fd,_0x2266b7('0x41')))[_0x2266b7('0x4c')](function(){})['catch'](_0x546c90()));break;default:_0x3b319e[_0x2266b7('0x17')](db[_0x2266b7('0x61')][_0x2266b7('0x1b')](_0x40b4dc(_0x47a0fd,_0x2266b7('0x41')))['then'](function(){})[_0x2266b7('0x46')](_0x546c90()));}}return _0x3b319e;})[_0x2160f0('0x62')]()[_0x2160f0('0x4c')](function(){const _0x5667e5=_0x2160f0;return db['VoiceQueue']['findAll']({'where':{'type':_0x5667e5('0x2c')},'attributes':['id'],'include':[{'model':db[_0x5667e5('0x59')],'as':_0x5667e5('0x5d'),'where':{'id':LISTID}}]})[_0x5667e5('0x4c')](function(_0x1f713b){const _0x4eb697=_0x5667e5,_0x1f91d7=[];if(_0x1f713b)for(let _0x1ca910=0x0,_0x3c716c;_0x1ca910<_0x1f713b[_0x4eb697('0x6')];_0x1ca910+=0x1){_0x3c716c=_0x1f713b[_0x1ca910][_0x4eb697('0x13')]({'plain':!![]}),_0x1f91d7['push'](db[_0x4eb697('0x61')][_0x4eb697('0x1b')](_0x5c4708(_0x3c716c,_0x4eb697('0x41')))['then'](function(){})[_0x4eb697('0x46')](_0x546c90()));}return _0x1f91d7;})[_0x5667e5('0x62')]();})[_0x2160f0('0x4c')](function(){const _0x518356=_0x2160f0;return db[_0x518356('0x5a')][_0x518356('0x2')]({'attributes':['id',_0x518356('0xc')],'include':[{'model':db[_0x518356('0x59')],'as':_0x518356('0x39'),'where':{'id':LISTID}}]})[_0x518356('0x4c')](function(_0x642ab7){const _0x1bd957=_0x518356,_0x4c3a25=[];if(_0x642ab7)for(let _0x44dcd1=0x0,_0x1eaaec;_0x44dcd1<_0x642ab7['length'];_0x44dcd1+=0x1){_0x1eaaec=_0x642ab7[_0x44dcd1][_0x1bd957('0x13')]({'plain':!![]});switch(_0x1eaaec[_0x1bd957('0xc')]){case _0x1bd957('0x65'):_0x4c3a25[_0x1bd957('0x17')](db['sequelize'][_0x1bd957('0x1b')](_0x46f2f5(_0x1eaaec,_0x1bd957('0x37')))['then'](function(){})['catch'](_0x546c90()));break;case _0x1bd957('0x2e'):_0x4c3a25['push'](db[_0x1bd957('0x61')][_0x1bd957('0x1b')](_0x1ef6f5(_0x1eaaec,'CampaignId'))[_0x1bd957('0x4c')](function(){})[_0x1bd957('0x46')](_0x546c90()));break;default:_0x4c3a25[_0x1bd957('0x17')](db['sequelize'][_0x1bd957('0x1b')](_0x40b4dc(_0x1eaaec,_0x1bd957('0x37')))[_0x1bd957('0x4c')](function(){})[_0x1bd957('0x46')](_0x546c90()));}}return _0x4c3a25;})[_0x518356('0x62')]();})[_0x2160f0('0x4c')](function(){const _0x5f12a4=_0x2160f0;return db['Campaign']['findAll']({'attributes':['id'],'include':[{'model':db[_0x5f12a4('0x59')],'as':_0x5f12a4('0x5d'),'where':{'id':LISTID}}]})[_0x5f12a4('0x4c')](function(_0x4137c1){const _0x44dfd6=_0x5f12a4,_0x59a92a=[];if(_0x4137c1)for(let _0x551932=0x0,_0x1d4bc3;_0x551932<_0x4137c1[_0x44dfd6('0x6')];_0x551932+=0x1){_0x1d4bc3=_0x4137c1[_0x551932]['get']({'plain':!![]}),_0x59a92a[_0x44dfd6('0x17')](db['sequelize'][_0x44dfd6('0x1b')](_0x5c4708(_0x1d4bc3,_0x44dfd6('0x37')))['then'](function(){})[_0x44dfd6('0x46')](_0x546c90()));}return _0x59a92a;})[_0x5f12a4('0x62')]();})['catch'](function(_0x5179fe){logger['error']('cmContact,\x20%s,\x20%s','generalCheckHopper',_0x5179fe['message']);});}const processPromises=function(_0x246d36){const _0x5de198=_0x48731f;return Promise[_0x5de198('0x62')](promises)[_0x5de198('0x46')](function(_0x407201){const _0xdbfcef=_0x5de198;logger[_0xdbfcef('0xf')]('Error\x20processing\x20rows\x20block:',JSON[_0xdbfcef('0x9')](_0x407201));})[_0x5de198('0x2b')](function(){socket['emit']('contact:csv_'+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0x246d36)return _0x246d36['resume']();});},endCsv=function(){const _0x21a975=_0x48731f;return Promise[_0x21a975('0x10')]()[_0x21a975('0x4c')](function(){if(hopperContacts)return checkHopper();})[_0x21a975('0x4c')](function(){const _0x310edf=_0x21a975;socket['emit'](_0x310edf('0x64')+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs[_0x310edf('0x51')](FILEPATH);}catch(_0x13e473){logger[_0x310edf('0xf')](_0x310edf('0x7'),JSON[_0x310edf('0x9')](_0x13e473));}finally{process[_0x310edf('0x60')](0x0);}});};process['on'](_0x48731f('0x19'),function(){const _0x44567c=_0x48731f;logger['info'](_0x44567c('0x3b')),endCsv();});function main(){const _0x5afb0e=_0x48731f;return Promise[_0x5afb0e('0x10')]()[_0x5afb0e('0x4c')](function(){const _0x458058=_0x5afb0e;if(DUPLICATES)return DUPLICATES=DUPLICATES[_0x458058('0x28')](','),db[_0x458058('0x63')]['findAll']({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})[_0x5afb0e('0x4c')](function(_0x797343){const _0x5c35ea=_0x5afb0e,_0x8b115d=fs[_0x5c35ea('0x14')](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x5c35ea('0x1c')](_0x8b115d,{'header':!![],'skipEmptyLines':!![],'step':function(_0x5d623b,_0x2e4e71){const _0x3fdafe=_0x5c35ea;total+=0x1;const _0x20922e=total;promises[_0x3fdafe('0x17')](checkRow(_0x5d623b,_0x797343,_0x20922e)[_0x3fdafe('0x4c')](function(){success+=0x1;})[_0x3fdafe('0x46')](function(_0x1a6008){const _0x224eaa=_0x3fdafe;if(_0x1a6008[_0x224eaa('0xf')])errors+=0x1,delete _0x1a6008[_0x224eaa('0xf')];else _0x1a6008[_0x224eaa('0x3f')]&&(duplicates+=0x1,delete _0x1a6008[_0x224eaa('0x3f')]);rows['push'](_0x1a6008);}));if(total%0xc8===0x0)return _0x2e4e71[_0x3fdafe('0x8')](),processPromises(_0x2e4e71);},'complete':function(){const _0x9cb9fb=_0x5c35ea;return processPromises()[_0x9cb9fb('0x4c')](function(){const _0x19375f=_0x9cb9fb;logger[_0x19375f('0x1a')](_0x19375f('0x49')),endCsv();});},'error':function(_0x92e949){const _0x438441=_0x5c35ea;logger[_0x438441('0x1a')](_0x438441('0x52'),JSON[_0x438441('0x9')](_0x92e949)),endCsv();}});})[_0x5afb0e('0x46')](function(_0x3990c4){const _0x2efb31=_0x5afb0e;logger[_0x2efb31('0xf')](_0x2efb31('0x33'),JSON[_0x2efb31('0x9')](_0x3990c4));});}main(); \ No newline at end of file +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 diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 2c652d9..7afc265 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a831_0x1d5e=['isNumber','cm_contacts.createdAt','finish','VoiceQueueId','binding\x20doesn\x27t\x20exists','YYYY-MM-DD\x20HH:mm:ss','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','moment','cm_contacts.ListId\x20=\x20','cm_contacts.ListId','.CmListId\x20=\x20?','Abort\x20parser','isValid','join','errors','../../../config/environment','voice_queues','includes','ListId\x20is\x20mandatory','length','arguments\x20\x20\x20','rows','dateOfBirth','into','push','map','../../../mysqldb','header','group','SystemError','catch','\x20LIKE\x20cm_contacts;','firstName\x20is\x20mandatory','phone\x20is\x20mandatory','fromQuery','SystemRow','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)',')\x20NOT\x20IN\x20?','test','SIGINT','keys','cm_hopper','socket_timestamp','duplicates','root','cm_contacts.UserId','code','phone','ListId','\x20not\x20specified','then','query','format','voice_queues_has_cm_blacklists','id\x20IN\x20?','No\x20agent\x20available','email\x20wrong\x20format','\x20=\x20','.dialCheckDuplicateType\x20IN\x20(','affectedRows','cm_contacts.phone\x20NOT\x20IN\x20(?)','files/tmp','CampaignId','../../../rediscache','error','info','lodash','cm_contacts','scheduledat','campaigns_has_cm_blacklists','.id\x20=\x20','CREATE\x20TABLE\x20','binding','trim','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','.csv','campaigns_has_cm_lists','data','updatedAt','parse',',\x20scheduledAt\x20=\x20NOW()','ContactId','emit','main','email','where','each','message','\x22onlyIfOpen\x22','existsSync','select','writeFileSync','createdAt','../../../config/logger','Received\x20SIGINT','priority','insert','file\x20doesn\x27t\x20exists','min_id','firstName','isNaN','uncaughtException','path','toString','papaparse','campaigns','cm_hopper_black','MIN(id)','cm_contacts.scheduledat','agent\x20not\x20exists','cm_contacts.updatedAt','undefined','createReadStream','cm_contacts.phone','ListId\x20=\x20?','unlink','UserId','contact:import:','CompanyId','voice_queues_has_cm_lists','from','YYYY-MM-DD','cm_contacts.createdAt\x20=\x20?','deletedAt\x20IS\x20NULL','argv','start','.CmListId','isNil','\x22always\x22','step','abort','cm_contacts.id','fields','import','complete','concat','server/files/tmp','field'];(function(_0x100ee7,_0x1d5e95){const _0x42fef3=function(_0x574f65){while(--_0x574f65){_0x100ee7['push'](_0x100ee7['shift']());}};_0x42fef3(++_0x1d5e95);}(a831_0x1d5e,0x70));const a831_0x42fe=function(_0x100ee7,_0x1d5e95){_0x100ee7=_0x100ee7-0x0;let _0x42fef3=a831_0x1d5e[_0x100ee7];return _0x42fef3;};const _0x2bdd35=a831_0x42fe;'use strict';const fs=require('fs'),path=require(_0x2bdd35('0x80')),_=require(_0x2bdd35('0x5c')),Papa=require(_0x2bdd35('0x82')),util=require('util'),moment=require(_0x2bdd35('0x21')),squel=require('squel'),db=require(_0x2bdd35('0x34'))['db'],config=require(_0x2bdd35('0x29')),logger=require(_0x2bdd35('0x77'))(_0x2bdd35('0x15')),{getSocket}=require(_0x2bdd35('0x59')),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x2bdd35('0x4e')](_0x2bdd35('0x1f'));function isEmail(_0x574f65){const _0x157a75=_0x2bdd35;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))*$/[_0x157a75('0x40')](_0x574f65);}function selectNotIn(_0x126917,_0x11b90c,_0xe3156c,_0x365897,_0x2cff68){const _0x65106b=_0x2bdd35;return squel[_0x65106b('0x74')]()[_0x65106b('0x19')](_0x65106b('0x49'))[_0x65106b('0x8')](_0x365897)['join'](_0x11b90c,null,_0x11b90c+_0x65106b('0x60')+_0x365897+'.'+_0xe3156c)[_0x65106b('0x6f')](_0x365897+'.'+_0xe3156c+_0x65106b('0x53')+_0x126917+'.'+_0xe3156c)[_0x65106b('0x6f')](_0x11b90c+_0x65106b('0x54')+_0x2cff68['join']()+')');}function insertCmHopper(_0x162f37,_0x108e11,_0x19d295,_0x3b5d4,_0x3bc463){const _0x5de6e3=_0x2bdd35,_0x419a50=['cm_contacts.phone',_0x5de6e3('0x86'),_0x5de6e3('0x13'),'cm_contacts.ListId',_0x108e11+'.'+_0x3b5d4,_0x5de6e3('0x1b'),_0x5de6e3('0x88'),'cm_contacts.priority',_0x5de6e3('0x47'),'\x22'+_0x3bc463+'\x22'];return squel['insert']()['into'](_0x5de6e3('0x43'))['fromQuery']([_0x5de6e3('0x49'),'scheduledat',_0x5de6e3('0x6b'),'ListId',_0x3b5d4,_0x5de6e3('0x76'),_0x5de6e3('0x68'),'priority',_0x5de6e3('0x4'),'recallme'],squel['select']()[_0x5de6e3('0x14')](_0x419a50)[_0x5de6e3('0x8')](_0x108e11)['join'](_0x5de6e3('0x5d'),null,_0x5de6e3('0x22')+_0x108e11+_0x5de6e3('0xe'))[_0x5de6e3('0x27')](_0x19d295,null,_0x19d295+_0x5de6e3('0x60')+_0x108e11+'.'+_0x3b5d4)[_0x5de6e3('0x6f')](_0x108e11+_0x5de6e3('0x24'),_0x162f37)[_0x5de6e3('0x6f')](_0x5de6e3('0xa'),NOW)[_0x5de6e3('0x6f')](_0x5de6e3('0x56'),selectNotIn(_0x108e11,_0x19d295,_0x3b5d4,_0x5de6e3('0x43'),[_0x5de6e3('0x10'),_0x5de6e3('0x72')]))[_0x5de6e3('0x6f')](_0x5de6e3('0x56'),selectNotIn(_0x108e11,_0x19d295,_0x3b5d4,_0x5de6e3('0x43'),[_0x5de6e3('0x10')])))['toString']();}function insertCmHopperBlack(_0x2f307e,_0x4b3038,_0x3bc2f1,_0x6ff326){const _0x46acd2=_0x2bdd35,_0x11097b=[_0x46acd2('0x1'),_0x46acd2('0x13'),_0x46acd2('0x23'),_0x4b3038+'.'+_0x6ff326,_0x46acd2('0x1b'),_0x46acd2('0x88')];return squel[_0x46acd2('0x7a')]()[_0x46acd2('0x31')](_0x46acd2('0x84'))[_0x46acd2('0x3c')]([_0x46acd2('0x49'),'ContactId',_0x46acd2('0x4a'),_0x6ff326,_0x46acd2('0x76'),_0x46acd2('0x68')],squel[_0x46acd2('0x74')]()['fields'](_0x11097b)[_0x46acd2('0x8')](_0x4b3038)[_0x46acd2('0x27')](_0x46acd2('0x5d'),null,_0x46acd2('0x22')+_0x4b3038+_0x46acd2('0xe'))['join'](_0x3bc2f1,null,_0x3bc2f1+_0x46acd2('0x60')+_0x4b3038+'.'+_0x6ff326)[_0x46acd2('0x6f')](_0x4b3038+_0x46acd2('0x24'),_0x2f307e)[_0x46acd2('0x6f')](_0x46acd2('0xa'),NOW)['where'](_0x46acd2('0x56'),squel[_0x46acd2('0x74')]()[_0x46acd2('0x19')](_0x46acd2('0x49'))[_0x46acd2('0x8')]('cm_hopper_black')[_0x46acd2('0x6f')](_0x46acd2('0x2'),_0x2f307e)[_0x46acd2('0x6f')](_0x6ff326+'\x20=\x20?',_0x4b3038+'.'+_0x6ff326)))[_0x46acd2('0x81')]();}function insertCmContact(_0x580b7e,_0x97bb07,_0x9d138a,_0x1a917c){const _0x55a078=_0x2bdd35,_0x50ac13=_[_0x55a078('0x17')](_['keys'](_0x1a917c),[_0x55a078('0x4a'),_0x55a078('0x6'),'createdAt',_0x55a078('0x68')]);return squel[_0x55a078('0x7a')]()['into'](_0x55a078('0x5d'))[_0x55a078('0x3c')](_0x50ac13,squel['select']()[_0x55a078('0x14')](_0x50ac13)['from'](_0x97bb07)[_0x55a078('0x6f')]('('+_0x9d138a[_0x55a078('0x27')](',')+_0x55a078('0x3f'),squel[_0x55a078('0x74')]()[_0x55a078('0x14')](_0x9d138a)[_0x55a078('0x8')](_0x55a078('0x5d'))[_0x55a078('0x6f')](_0x55a078('0x2'),_0x580b7e)[_0x55a078('0x6f')](_0x55a078('0xb')))[_0x55a078('0x6f')](_0x55a078('0x50'),squel[_0x55a078('0x74')]()[_0x55a078('0x19')](_0x55a078('0x85'),_0x55a078('0x7c'))[_0x55a078('0x8')](_0x97bb07)[_0x55a078('0x36')](_0x9d138a[_0x55a078('0x27')](','))))[_0x55a078('0x81')]();}function handleStop(){const _0x3dbef5=_0x2bdd35;logger[_0x3dbef5('0x5b')](_0x3dbef5('0x78')),stopped=!![];}function handleUncaughtException(_0x20e6c4){const _0x4257c6=_0x2bdd35;logger['error'](_0x20e6c4[_0x4257c6('0x71')]);throw _0x20e6c4;}function handleError(_0x183e0c,_0x5705af){const _0x40767a=_0x2bdd35;stats[_0x40767a('0x28')]['push']({'name':_0x5705af[_0x40767a('0x48')],'message':_0x5705af[_0x40767a('0x71')],'row':_0x183e0c});}function handleQuery(_0x1744d5){const _0x321c99=_0x2bdd35;return logger[_0x321c99('0x5b')](_0x1744d5),db['sequelize'][_0x321c99('0x4d')](_0x1744d5)[_0x321c99('0x4c')](function([_0x3582b2]){const _0x487fa7=_0x321c99;results[_0x487fa7('0x32')](_0x3582b2);})[_0x321c99('0x38')](function(_0x243869){const _0x12e619=_0x321c99;logger[_0x12e619('0x5a')](_0x243869[_0x12e619('0x71')]);});}function main(_0x11c829,_0x3b96c2,_0x8d65dc,_0x266a10){const _0x40cc82=_0x2bdd35;logger['info'](_0x40cc82('0x6d'),_0x11c829,JSON['stringify'](_0x3b96c2)),process['send'](_0x40cc82('0xd'));const _0x239c2e=_0x3b96c2['binding'],_0x2bf916=_0x3b96c2[_0x40cc82('0x44')],_0x422a65=path[_0x40cc82('0x27')](config[_0x40cc82('0x46')],_0x40cc82('0x18'),_0x2bf916+_0x40cc82('0x65')),_0x484b26=_[_0x40cc82('0x42')](_0x239c2e)[_0x40cc82('0x27')]();logger[_0x40cc82('0x5b')](_0x40cc82('0x35'),_0x484b26),fs[_0x40cc82('0x75')](_0x422a65,_0x484b26+'\x0a'),Papa[_0x40cc82('0x69')](fs[_0x40cc82('0x0')](_0x11c829),{'header':!![],'skipEmptyLines':!![],'step':function(_0x2a43f6,_0x16b278){const _0x3862d9=_0x40cc82;let _0x4f6e81=0x0,_0x2a5deb=[];try{for(_0x4f6e81=0x0,_0x2a5deb=[];_0x4f6e81<_0x2a43f6[_0x3862d9('0x67')][_0x3862d9('0x2d')];_0x4f6e81++){stats[_0x3862d9('0x2f')]+=0x1;if(_0x2a43f6[_0x3862d9('0x28')][_0x4f6e81])handleError(_0x2a43f6['data'][_0x4f6e81],_0x2a43f6[_0x3862d9('0x28')][_0x4f6e81]);else{const _0x4168ce=[];for(const _0x428856 in _0x239c2e){if(typeof _0x239c2e[_0x428856]!==_0x3862d9('0x89')){if(_0x2a43f6[_0x3862d9('0x67')][_0x4f6e81][_0x239c2e[_0x428856]]){let _0x3e9ac3=_[_0x3862d9('0x63')](_0x2a43f6[_0x3862d9('0x67')][_0x4f6e81][_0x239c2e[_0x428856]]['replace'](/"/g,'\x27'));switch(_0x428856){case'scheduledat':{const _0x478fba=moment(_0x3e9ac3,_0x3862d9('0x1f'),!![]);_0x478fba[_0x3862d9('0x26')]()?_0x2a5deb[_0x3862d9('0x32')]('\x22'+_0x3e9ac3+'\x22'):_0x4168ce[_0x3862d9('0x32')](_0x3862d9('0x3e'));}break;case _0x3862d9('0x79'):{const _0x136257=parseInt(_0x3e9ac3);_0x3e9ac3=_[_0x3862d9('0x7e')](_0x136257)||_0x136257<0x0||_0x136257>0x4?_0x266a10?0x3:0x2:_0x136257,_0x2a5deb['push']('\x22'+_0x3e9ac3+'\x22');}break;case _0x3862d9('0x4'):{const _0x297f43=parseInt(_0x3e9ac3);_[_0x3862d9('0x1a')](_0x297f43)&&_[_0x3862d9('0x2b')](_0x8d65dc,_0x297f43)?_0x2a5deb[_0x3862d9('0x32')]('\x22'+_0x297f43+'\x22'):_0x4168ce['push'](_0x3862d9('0x87'));}break;case _0x3862d9('0x6e'):isEmail(_0x3e9ac3)?_0x2a5deb[_0x3862d9('0x32')]('\x22'+_0x3e9ac3+'\x22'):_0x4168ce[_0x3862d9('0x32')](_0x3862d9('0x52'));break;case _0x3862d9('0x30'):{const _0x4de0a1=moment(_0x3e9ac3,_0x3862d9('0x9'),!![]);_0x4de0a1[_0x3862d9('0x26')]()?_0x2a5deb[_0x3862d9('0x32')]('\x22'+_0x3e9ac3+'\x22'):_0x4168ce[_0x3862d9('0x32')](_0x3862d9('0x20'));}break;default:_0x2a5deb[_0x3862d9('0x32')]('\x22'+_0x3e9ac3+'\x22');}}else switch(_0x428856){case _0x3862d9('0x7d'):case _0x3862d9('0x49'):_0x4168ce[_0x3862d9('0x32')](_0x428856+_0x3862d9('0x4b'));break;default:_0x2a5deb[_0x3862d9('0x32')]('\x22\x22');}}}_0x4168ce['length']?handleError(_0x2a43f6[_0x3862d9('0x67')][_0x4f6e81],{'code':_0x3862d9('0x3d'),'message':_0x4168ce[_0x3862d9('0x27')]()}):fs['appendFileSync'](_0x422a65,_0x2a5deb[_0x3862d9('0x27')]()+'\x0a'),_0x2a5deb=[];}!(stats[_0x3862d9('0x2f')]%0xc8)&&(socket[_0x3862d9('0x6c')]('contact:import:'+_0x2bf916,stats),stats['errors']=[]);}stopped&&(logger[_0x3862d9('0x5b')](_0x3862d9('0x25')),_0x16b278[_0x3862d9('0x12')]());}catch(_0x31c412){handleError(_0x2a43f6['data'][_0x4f6e81],{'code':_0x3862d9('0x37'),'message':_0x31c412[_0x3862d9('0x71')]}),logger[_0x3862d9('0x5a')](_0x3862d9('0x11'),_0x31c412['message']);}},'complete':function(){const _0x59fcab=_0x40cc82;try{const _0x8e6731=[];let _0x9e4cb6=_0x59fcab('0x5d');_0x3b96c2[_0x59fcab('0x45')]&&_0x3b96c2[_0x59fcab('0x45')][_0x59fcab('0x2d')]&&(_0x9e4cb6='cm_contacts_'+_0x2bf916,_0x8e6731[_0x59fcab('0x32')](_0x59fcab('0x61')+_0x9e4cb6+_0x59fcab('0x39')));let _0x3916b9=util['format'](_0x59fcab('0x64'),_0x422a65,_0x9e4cb6,_0x484b26,_0x3b96c2['ListId'],_0x3b96c2[_0x59fcab('0x6')]||null,NOW,NOW);_[_0x59fcab('0xf')](_0x239c2e[_0x59fcab('0x5e')])&&(_0x3916b9+=_0x59fcab('0x6a')),_0x8e6731[_0x59fcab('0x32')](_0x3916b9),_0x3b96c2[_0x59fcab('0x45')]&&_0x3b96c2['duplicates'][_0x59fcab('0x2d')]&&(_0x8e6731[_0x59fcab('0x32')](insertCmContact(_0x3b96c2['ListId'],_0x9e4cb6,_0x3b96c2[_0x59fcab('0x45')],_0x239c2e)),_0x8e6731[_0x59fcab('0x32')]('DROP\x20TABLE\x20'+_0x9e4cb6+';')),_0x8e6731['push'](insertCmHopper(_0x3b96c2['ListId'],_0x59fcab('0x7'),_0x59fcab('0x2a'),'VoiceQueueId',_0x266a10)),_0x8e6731[_0x59fcab('0x32')](insertCmHopperBlack(_0x3b96c2[_0x59fcab('0x4a')],_0x59fcab('0x4f'),_0x59fcab('0x2a'),_0x59fcab('0x1d'))),_0x8e6731[_0x59fcab('0x32')](insertCmHopper(_0x3b96c2[_0x59fcab('0x4a')],_0x59fcab('0x66'),_0x59fcab('0x83'),_0x59fcab('0x58'),_0x266a10)),_0x8e6731[_0x59fcab('0x32')](insertCmHopperBlack(_0x3b96c2[_0x59fcab('0x4a')],_0x59fcab('0x5f'),'campaigns',_0x59fcab('0x58'))),Promise[_0x59fcab('0x70')](_0x8e6731,handleQuery)[_0x59fcab('0x4c')](function(){const _0x5a1004=_0x59fcab;stats[_0x5a1004('0x1c')]=!![],stats[_0x5a1004('0x55')]=_0x3b96c2[_0x5a1004('0x45')]&&_0x3b96c2[_0x5a1004('0x45')]['length']?results[0x2][_0x5a1004('0x55')]:results[0x0][_0x5a1004('0x55')],socket[_0x5a1004('0x6c')](_0x5a1004('0x5')+_0x2bf916,stats),fs[_0x5a1004('0x3')](_0x11c829),fs[_0x5a1004('0x3')](_0x422a65),process['exit'](0x0);})[_0x59fcab('0x38')](function(_0x222289){const _0x54ff57=_0x59fcab;logger[_0x54ff57('0x5a')](_0x222289[_0x54ff57('0x71')]);throw _0x222289;});}catch(_0x5ab462){logger[_0x59fcab('0x5a')](_0x59fcab('0x16'),_0x5ab462['message']);throw _0x5ab462;}},'error':function(_0x136c64,_0x320150,_0x2e4a74,_0x59c8a6){throw new Error(_0x59c8a6);}});}function validate(){const _0x5e531f=_0x2bdd35;if(process['argv']&&process[_0x5e531f('0xc')]['length']<0x4)throw new Error(_0x5e531f('0x2e'));const _0x954f90=path[_0x5e531f('0x27')](config[_0x5e531f('0x46')],_0x5e531f('0x57'),process[_0x5e531f('0xc')][0x2]);if(!fs[_0x5e531f('0x73')](_0x954f90))throw new Error(_0x5e531f('0x7b'));let _0x2326ff={},_0x17b04b=0x0;try{_0x2326ff=JSON[_0x5e531f('0x69')](process[_0x5e531f('0xc')][0x3]);if(!_0x2326ff[_0x5e531f('0x62')])throw new Error(_0x5e531f('0x1e'));if(!_0x2326ff[_0x5e531f('0x62')]['phone'])throw new Error(_0x5e531f('0x3b'));if(!_0x2326ff['binding'][_0x5e531f('0x7d')])throw new Error(_0x5e531f('0x3a'));_0x2326ff[_0x5e531f('0x62')][_0x5e531f('0x4')]&&(_0x17b04b=0x1);if(!_0x2326ff[_0x5e531f('0x4a')])throw new Error(_0x5e531f('0x2c'));}catch(_0x704059){throw new Error('body\x20id\x20mandatory');}let _0x38154d=[];try{_0x38154d=_[_0x5e531f('0x33')](JSON[_0x5e531f('0x69')](process[_0x5e531f('0xc')][0x4]),'id');}catch(_0x3145ab){logger[_0x5e531f('0x5b')](_0x5e531f('0x51'));}main(_0x954f90,_0x2326ff,_0x38154d,_0x17b04b);}validate(),process['on'](_0x2bdd35('0x41'),handleStop),process['on'](_0x2bdd35('0x7f'),handleUncaughtException); \ No newline at end of file +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 diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index 57e41ad..b144191 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a832_0x31f6=['***\x20Agent\x20Info\x20***','Agent\x20Number','agentconnectAt','push','starttime','Caller\x20Number','getDescriptions','uniqueid','[xCALLY\x20Ticket]','string','calleridnum','agentcalledAt','Talk\x20Time','talktime','***\x20Call\x20Info\x20***','***\x20Time\x20Info\x20***','duration','Billable\x20Time','voice','endtime','destcalleridnum','Outbound\x20Call','Duration','toLowerCase','UniqueId','Agent\x20Connect','Date','billableseconds','Member\x20Name','Called\x20Number','variable','Hold\x20Time','keyValue','Agent\x20Complete','calleridname','holdtime','destexten','inbound','Caller\x20Name','Agent\x20Ring','outbound','destcalleridname'];(function(_0x4f71d2,_0x31f68b){const _0x3a46e4=function(_0x2669fd){while(--_0x2669fd){_0x4f71d2['push'](_0x4f71d2['shift']());}};_0x3a46e4(++_0x31f68b);}(a832_0x31f6,0xba));const a832_0x3a46=function(_0x4f71d2,_0x31f68b){_0x4f71d2=_0x4f71d2-0x0;let _0x3a46e4=a832_0x31f6[_0x4f71d2];return _0x3a46e4;};const _0x31fc7b=a832_0x3a46;'use strict';exports['getSubjects']=function(_0x2669fd,_0x2a0423){const _0x3a6075=a832_0x3a46,_0x19e473=[{'type':_0x3a6075('0x21'),'content':_0x3a6075('0x20'),'variableName':null}];switch(_0x2669fd[_0x3a6075('0x5')]()){case _0x3a6075('0x0'):switch(_0x2a0423[_0x3a6075('0x5')]()){case _0x3a6075('0x13'):_0x19e473[_0x3a6075('0x1b')]({'type':_0x3a6075('0xc'),'content':'','variableName':'queue'}),_0x19e473[_0x3a6075('0x1b')]({'type':_0x3a6075('0xc'),'content':'','variableName':_0x3a6075('0x22')});break;case _0x3a6075('0x16'):_0x19e473[_0x3a6075('0x1b')]({'type':_0x3a6075('0x21'),'content':_0x3a6075('0x3'),'variableName':null}),_0x19e473[_0x3a6075('0x1b')]({'type':_0x3a6075('0xc'),'content':'','variableName':_0x3a6075('0x2')});break;}}return _0x19e473;},exports[_0x31fc7b('0x1e')]=function(_0x42f705,_0x4d24f0){const _0x8f6433=_0x31fc7b;let _0x25526c=[];switch(_0x42f705[_0x8f6433('0x5')]()){case _0x8f6433('0x0'):switch(_0x4d24f0[_0x8f6433('0x5')]()){case _0x8f6433('0x13'):_0x25526c=[{'type':_0x8f6433('0x21'),'content':_0x8f6433('0x26'),'key':null,'keyType':null,'variableName':null},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x1d'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x22')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x14'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x10')},{'type':'keyValue','content':'','key':'Call\x20To','keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x12')},{'type':_0x8f6433('0xe'),'content':'','key':'Queue','keyType':_0x8f6433('0xc'),'variableName':'queue'},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x6'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x1f')},{'type':'keyValue','content':'','key':_0x8f6433('0x8'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x23')},{'type':_0x8f6433('0x21'),'content':_0x8f6433('0x18'),'key':null,'keyType':null,'variableName':null},{'type':_0x8f6433('0xe'),'content':'','key':'Agent\x20Name','keyType':'variable','variableName':_0x8f6433('0x17')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x19'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x2')},{'type':'string','content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x15'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x23')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x7'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x1a')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0xf'),'keyType':_0x8f6433('0xc'),'variableName':'agentcompleteAt'},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0xd'),'keyType':_0x8f6433('0xc'),'variableName':_0x8f6433('0x11')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x24'),'keyType':'variable','variableName':_0x8f6433('0x25')}];break;case _0x8f6433('0x16'):_0x25526c=[{'type':_0x8f6433('0x21'),'content':_0x8f6433('0x26'),'variableName':null},{'type':'keyValue','content':'','key':_0x8f6433('0xb'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x2')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0xa'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':'membername'},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x6'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x1f')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x8'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x1c')},{'type':_0x8f6433('0x21'),'content':_0x8f6433('0x27')},{'type':_0x8f6433('0xe'),'content':'','key':'Answer\x20Time','keyType':_0x8f6433('0xc'),'keyContent':'','variableName':'answertime'},{'type':'keyValue','content':'','key':'Complete\x20Time','keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x1')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x4'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x28')},{'type':_0x8f6433('0xe'),'content':'','key':_0x8f6433('0x29'),'keyType':_0x8f6433('0xc'),'keyContent':'','variableName':_0x8f6433('0x9')}];break;}}return _0x25526c;}; \ No newline at end of file +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 diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index 16fae97..5545b50 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a833_0xb750=['findOne','mail-interactions','update','../../config/logger','Interaction','html','fax-interactions','stringify','fax','info','role','tracked','sms-interactions','InteractionId','error','chat-interactions','query','catch','then','unknown','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','openchannel-interactions','null','upperFirst','toUpperCase','../../mysqldb','body','name'];(function(_0xbb913e,_0xb75090){const _0x243d0d=function(_0x197991){while(--_0x197991){_0xbb913e['push'](_0xbb913e['shift']());}};_0x243d0d(++_0xb75090);}(a833_0xb750,0xa2));const a833_0x243d=function(_0xbb913e,_0xb75090){_0xbb913e=_0xbb913e-0x0;let _0x243d0d=a833_0xb750[_0xbb913e];return _0x243d0d;};const _0x4dc4aa=a833_0x243d;'use strict';const _=require('lodash'),db=require(_0x4dc4aa('0x3'))['db'],loggers={'openchannel':require(_0x4dc4aa('0x9'))(_0x4dc4aa('0x1b')),'mail':require('../../config/logger')(_0x4dc4aa('0x7')),'fax':require(_0x4dc4aa('0x9'))(_0x4dc4aa('0xc')),'sms':require(_0x4dc4aa('0x9'))(_0x4dc4aa('0x12')),'chat':require('../../config/logger')(_0x4dc4aa('0x15')),'whatsapp':require('../../config/logger')('whatsapp-interactions')};function getInteractionId(_0x197991,_0xfa9d54,_0x27b8e5){const _0x1ebc7b=_0x4dc4aa;if(_0x197991&&_0x197991[_['upperFirst'](_0x27b8e5)+'InteractionId'])return _0x197991[_['upperFirst'](_0x27b8e5)+_0x1ebc7b('0x13')];else{if(_0x197991&&_0x197991['id'])return _0x197991['id'];else return _0xfa9d54&&_0xfa9d54['id']?_0xfa9d54['id']:_0x1ebc7b('0x19');}}function log(_0x25be38,_0xd71429,_0x49038e,_0x587d65,_0x3358b4,_0x45adc0){const _0x4e2ad3=_0x4dc4aa;loggers[_0x3358b4['toLowerCase']()][_0x25be38](_0x4e2ad3('0x1a'),_0x45adc0[_0x4e2ad3('0x2')](),_0xd71429?_0xd71429['id']:null,_0xd71429?_0xd71429[_0x4e2ad3('0x5')]:null,_0xd71429?_0xd71429[_0x4e2ad3('0x10')]:null,getInteractionId(_0x49038e,_0x587d65,_0x3358b4),_0x49038e?JSON[_0x4e2ad3('0xd')](_0x49038e):_0x4e2ad3('0x0'));}function updateUser(_0x1654ee,_0x156bcb,_0x4458ab,_0x15aef2,_0xd4f896){const _0x4cf311=_0x4dc4aa;db[_[_0x4cf311('0x1')](_0x15aef2)+_0x4cf311('0xa')][_0x4cf311('0x6')]({'where':{'id':getInteractionId(_0x156bcb,_0x4458ab,_0x15aef2)}})['then'](function(_0x7e237e){const _0x5dbede=_0x4cf311;if(_0x7e237e)return _0x7e237e[_0x5dbede('0x8')]({'UserId':_0x1654ee?_0x1654ee['id']:null});})[_0x4cf311('0x18')](function(_0x139238){const _0x2816aa=_0x4cf311;_0x139238&&log(_0x2816aa('0xf'),_0x1654ee,_0x156bcb,_0x4458ab,_0x15aef2,_0xd4f896);})[_0x4cf311('0x17')](function(){const _0x33471b=_0x4cf311;log(_0x33471b('0x14'),_0x1654ee,_0x156bcb,_0x4458ab,_0x15aef2,_0xd4f896);});}exports[_0x4dc4aa('0x11')]=function(_0x4e47b5,_0x485e48){return function(_0x45a935,_0x103116,_0x353581){const _0x2ce8b4=a833_0x243d,_0x5afebb=_0x45a935['user'];let _0x496685={};const _0x2264ce=_0x45a935[_0x2ce8b4('0x16')];_0x496685&&(_0x496685=_['clone'](_0x45a935[_0x2ce8b4('0x4')]),_0x496685=_['omit'](_0x496685,[_0x2ce8b4('0x4'),_0x2ce8b4('0xb'),'phone',_0x2ce8b4('0xe'),'mobile'])),updateUser(_0x5afebb,_0x496685,_0x2264ce,_0x4e47b5,_0x485e48),_0x353581(null);};}; \ No newline at end of file +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 diff --git a/server/components/license/service.js b/server/components/license/service.js index bbc645e..dfeef87 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a834_0x1ea2=['Maximum\x20%s\x20limit\x20have\x20been\x20reached','user','License','users','admin','sequelize','../encryptor','util','composable-middleware','status','format','isUserLimit','then'];(function(_0x3b3aae,_0x1ea2f1){const _0x3ad834=function(_0xdb87a3){while(--_0xdb87a3){_0x3b3aae['push'](_0x3b3aae['shift']());}};_0x3ad834(++_0x1ea2f1);}(a834_0x1ea2,0x1c8));const a834_0x3ad8=function(_0x3b3aae,_0x1ea2f1){_0x3b3aae=_0x3b3aae-0x0;let _0x3ad834=a834_0x1ea2[_0x3b3aae];return _0x3ad834;};const _0x555bcb=a834_0x3ad8;'use strict';const util=require(_0x555bcb('0x6')),compose=require(_0x555bcb('0x7')),{Op}=require(_0x555bcb('0x4')),db=require('../../mysqldb')['db'],{getValueFromLicense}=require(_0x555bcb('0x5'));function isLimit(_0xdb87a3,_0x14bad0,_0x4e14be,_0x441e11){let _0x3ee992=_0x14bad0;return compose()['use'](function(_0x5b24c1,_0x58e22c,_0x516495){const _0x985c9e=a834_0x3ad8;return db[_0x985c9e('0x1')]['findOne']({'where':{'id':0x1},'raw':!![]})['then'](function(_0x597e5e){const _0x3b7f73=getValueFromLicense(_0xdb87a3,_0x597e5e);return _0x3b7f73?_0x3b7f73:_0x3ee992;})[_0x985c9e('0xb')](function(_0x3067fa){return _0x3ee992=_0x3067fa,_0x4e14be['count'](_0x441e11);})['then'](function(_0x234440){const _0x156cc7=_0x985c9e;if(_0x234440>=_0x3ee992)return _0x58e22c[_0x156cc7('0x8')](0x193)['json']({'message':util[_0x156cc7('0x9')](_0x156cc7('0xc'),_0xdb87a3)});_0x516495();})['catch'](function(_0x57d487){_0x516495(_0x57d487);});});}function isUserLimit(){const _0x20fce7=_0x555bcb;return isLimit(_0x20fce7('0x2'),0x1,db['User'],{'where':{[Op['or']]:[{'role':_0x20fce7('0x3')},{'role':_0x20fce7('0x0')}]}});}exports[_0x555bcb('0xa')]=isUserLimit; \ No newline at end of file +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 diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index cae7e89..3b250e7 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a835_0x3fe6=['[$or]','DATE','and','hours','operator','indexOf','conditions','$ne','$lte','format','$between','start','IN\x20?','<\x20?','startsWith','length','LIKE\x20?','$notIn','value','pop','YYYY-MM-DD','>\x20?','sqlOperator','\x20OR\x20','\x20IS\x20NULL)','$gt','BETWEEN\x20?\x20AND\x20?','$lt','castTo','split','push','moment','NOT\x20IN\x20?','minutes','$endsWith','$eq','forEach','lodash','match','=\x20?','map','seconds','add','$in','utcOffset','$substring','parseSearch','shift','slice','text','$gte','includes','buildExpression'];(function(_0x442ddc,_0x3fe632){const _0x190484=function(_0x32818d){while(--_0x32818d){_0x442ddc['push'](_0x442ddc['shift']());}};_0x190484(++_0x3fe632);}(a835_0x3fe6,0xa3));const a835_0x1904=function(_0x442ddc,_0x3fe632){_0x442ddc=_0x442ddc-0x0;let _0x190484=a835_0x3fe6[_0x442ddc];return _0x190484;};const _0xab89f7=a835_0x1904;'use strict';const _=require(_0xab89f7('0x21')),moment=require(_0xab89f7('0x1b'));exports[_0xab89f7('0x2a')]=function(_0x32818d){const _0x2e87e8=_0xab89f7,_0x32157b={'conditions':[]};_0x32157b[_0x2e87e8('0x12')]=_[_0x2e87e8('0xa')](_0x32818d,'[$or]')?'or':_0x2e87e8('0x33');const _0x404400=_0x32818d['replace']('[$and]','')['replace'](_0x2e87e8('0x31'),'')[_0x2e87e8('0x19')]('||');for(let _0x1b3357=0x0;_0x1b3357<_0x404400[_0x2e87e8('0xb')];_0x1b3357++){const _0x596a9c=_0x404400[_0x1b3357][_0x2e87e8('0x19')](':='),_0x18652e=_0x596a9c[0x0],_0xc4c0d9=_0x596a9c[_0x2e87e8('0x2c')](0x1);_0xc4c0d9[_0x2e87e8('0x20')](function(_0x39b616){const _0xa70154=_0x2e87e8,_0x2d78d7=_0x39b616[_0xa70154('0x19')]('[')[_0xa70154('0x2b')](),_0x30ac01=_0x39b616[_0xa70154('0x22')](/\[(.*?)\]/g);_0x30ac01['forEach'](function(_0x19b621){const _0x128441=_0xa70154,_0xae1c12=_0x19b621['split']('[')['filter'](function(_0xef96d5){const _0x1d8663=a835_0x1904;return _0xef96d5[_0x1d8663('0x1')](']')>-0x1;})[_0x128441('0x24')](function(_0x7bfc5a){return _0x7bfc5a['split'](']')[0x0];})[0x0];_0x32157b[_0x128441('0x2')][_0x128441('0x1a')]({'field':_0x18652e,'operator':_0x2d78d7,'value':_0xae1c12});});});}return _0x32157b;},exports[_0xab89f7('0x30')]=function(_0x455921,_0xa8a4c0,_0x4c536a){const _0x3baa6d=_0xab89f7,_0x2072e3={};if(_0xa8a4c0===_0x3baa6d('0x32')){if(_0x4c536a[_0x3baa6d('0x0')]===_0x3baa6d('0x1f'))_0x4c536a[_0x3baa6d('0x0')]=_0x3baa6d('0x6'),_0x4c536a[_0x3baa6d('0xe')]+=','+_0x4c536a['value'];else _[_0x3baa6d('0x2f')]([_0x3baa6d('0x15'),_0x3baa6d('0x4')],_0x4c536a[_0x3baa6d('0x0')])&&(_0x4c536a[_0x3baa6d('0xe')]=moment(_0x4c536a['value'])['add'](0x1,'days')[_0x3baa6d('0x5')](_0x3baa6d('0x10')));}_0x4c536a[_0x3baa6d('0x18')]?(_0xa8a4c0=_0x4c536a[_0x3baa6d('0x18')],_0x2072e3[_0x3baa6d('0x2d')]='CAST('+_0x455921+'.'+_0x4c536a['field']+'\x20AS\x20'+_0x4c536a[_0x3baa6d('0x18')]+')\x20'+parseOperator(_0x4c536a[_0x3baa6d('0x0')])):_0x2072e3[_0x3baa6d('0x2d')]=_0x455921+'.'+_0x4c536a['field']+'\x20'+parseOperator(_0x4c536a['operator']);if(_[_0x3baa6d('0x2f')]([_0x3baa6d('0x3'),_0x3baa6d('0xd')],_0x4c536a[_0x3baa6d('0x0')]))_0x2072e3[_0x3baa6d('0x2d')]='('+_0x2072e3[_0x3baa6d('0x2d')]+_0x3baa6d('0x13')+_0x455921+'.'+_0x4c536a['field']+_0x3baa6d('0x14');return _0x2072e3[_0x3baa6d('0xe')]=parseValue(_0xa8a4c0,_0x4c536a['operator'],_0x4c536a['value']),_0x2072e3;};function parseOperator(_0x202e74){const _0x47c01a=_0xab89f7;let _0x11ee65;switch(_0x202e74){case'$in':_0x11ee65=_0x47c01a('0x8');break;case _0x47c01a('0xd'):_0x11ee65=_0x47c01a('0x1c');break;case _0x47c01a('0x1f'):_0x11ee65=_0x47c01a('0x23');break;case _0x47c01a('0x3'):_0x11ee65='<>\x20?';break;case _0x47c01a('0x29'):case'$startsWith':case _0x47c01a('0x1e'):_0x11ee65=_0x47c01a('0xc');break;case _0x47c01a('0x17'):_0x11ee65=_0x47c01a('0x9');break;case _0x47c01a('0x15'):_0x11ee65=_0x47c01a('0x11');break;case _0x47c01a('0x4'):_0x11ee65='<=\x20?';break;case _0x47c01a('0x2e'):_0x11ee65='>=\x20?';break;case'$between':_0x11ee65=_0x47c01a('0x16');break;}return _0x11ee65;}function parseValue(_0x1e155a,_0x158058,_0x3a452c){const _0xd60df4=_0xab89f7;let _0x29c78a={'start':undefined,'end':undefined};switch(_0x158058){case _0xd60df4('0x27'):case'$notIn':_0x29c78a[_0xd60df4('0x7')]=_0x3a452c[_0xd60df4('0x19')](',');break;case _0xd60df4('0x29'):_0x29c78a[_0xd60df4('0x7')]='%'+_0x3a452c+'%';break;case'$startsWith':_0x29c78a['start']=_0x3a452c+'%';break;case _0xd60df4('0x1e'):_0x29c78a['start']='%'+_0x3a452c;break;case _0xd60df4('0x6'):{const _0x5589fc=_0x106721[_0xd60df4('0x19')](',');let _0x106721=_0x5589fc[_0xd60df4('0x2b')](),_0x3683cb=_0x5589fc[_0xd60df4('0xf')]();_0x1e155a===_0xd60df4('0x32')&&(_0x106721=moment(_0x106721)['utcOffset'](0x0,!![])[_0xd60df4('0x5')](),_0x3683cb=moment(_0x3683cb)[_0xd60df4('0x28')](0x0,!![])[_0xd60df4('0x26')](0x17,_0xd60df4('0x34'))['add'](0x3b,_0xd60df4('0x1d'))['add'](0x3b,_0xd60df4('0x25'))['format']()),_0x29c78a={'start':_0x106721,'end':_0x3683cb};}break;default:_0x29c78a[_0xd60df4('0x7')]=_0x3a452c;break;}return _0x29c78a;} \ No newline at end of file +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 diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index 08c0240..b15c319 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a836_0x46b8=['push','substr','isPlainObject','find','forEach','unset','DESC','type','toString','isNumeric','format','isEmpty','col','parse','isArray','ASC','split','omit','length','^[+]?[0-9]*$','priority','utc','YYYY-MM-DD','lodash','gte','cast','lte','limit','forOwn','$gte','isObject','moment','indexOf','isEmail','unsigned'];(function(_0x4fa701,_0x46b84c){const _0x495b27=function(_0xe56e61){while(--_0xe56e61){_0x4fa701['push'](_0x4fa701['shift']());}};_0x495b27(++_0x46b84c);}(a836_0x46b8,0x17f));const a836_0x495b=function(_0x4fa701,_0x46b84c){_0x4fa701=_0x4fa701-0x0;let _0x495b27=a836_0x46b8[_0x4fa701];return _0x495b27;};const _0x1d1277=a836_0x495b;'use strict';const _=require(_0x1d1277('0x19')),sequelize=require('sequelize'),moment=require(_0x1d1277('0x21')),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports['fields']=function(_0xe56e61){const _0x51fc8f=_0x1d1277;let _0x4ae2a1=null;return _0xe56e61&&(_0x4ae2a1=_0xe56e61[_0x51fc8f('0x12')](',')),_0x4ae2a1;},exports['filters']=function(_0x2631e4,_0x538b90){const _0xbce518=_0x1d1277,_0x1f4810={};return!_[_0xbce518('0xd')](_0x2631e4)&&_[_0xbce518('0x1e')](_0x2631e4,function(_0xe0d2f5,_0x588734){const _0x500dc7=_0xbce518;try{if(_0x538b90){const _0x230eb1=_[_0x500dc7('0x5')](_0x538b90,{'name':_0x588734})||{};if(_0x230eb1[_0x500dc7('0x9')]==='DATE'&&_[_0x500dc7('0x4')](_0xe0d2f5)){const _0x208443=JSON[_0x500dc7('0xf')](_0xe0d2f5),_0xfa99ef={[Op[_0x500dc7('0x1a')]]:moment(moment(_0x208443[_0x500dc7('0x1f')])[_0x500dc7('0xc')]('YYYY-MM-DD'))[_0x500dc7('0x17')]()[_0x500dc7('0xc')](),[Op[_0x500dc7('0x1c')]]:moment(moment(_0x208443['$lte'])[_0x500dc7('0xc')](_0x500dc7('0x18')))[_0x500dc7('0x17')]()['subtract'](0x1,'s')[_0x500dc7('0xc')]()};_0x1f4810[_0x588734]=_0xfa99ef;}else _0x1f4810[_0x588734]=_[_0x500dc7('0x10')](_0xe0d2f5)?_0xe0d2f5:JSON['parse'](_0xe0d2f5);}else _0x1f4810[_0x588734]=_['isArray'](_0xe0d2f5)?_0xe0d2f5:JSON[_0x500dc7('0xf')](_0xe0d2f5);}catch(_0x22367e){_0x1f4810[_0x588734]=_0xe0d2f5[_0x500dc7('0x12')](',');}}),_0x1f4810;},exports[_0x1d1277('0x1d')]=function(_0x194f35){return _0x194f35=parseInt(_0x194f35,0xa),(!_0x194f35||_0x194f35<0x0)&&(_0x194f35=LIMIT_VALUE),_0x194f35;},exports['offset']=function(_0x2fec8d){return _0x2fec8d=parseInt(_0x2fec8d,0xa),(!_0x2fec8d||_0x2fec8d<0x0)&&(_0x2fec8d=0x0),_0x2fec8d;},exports['sort']=function(_0x3b7604){const _0x3ed7a4=_0x1d1277;let _0x42e991,_0x571d1b=null;return _0x3b7604&&(_0x42e991=_0x3b7604[_0x3ed7a4('0x12')](','),_0x571d1b=_['map'](_0x42e991,function(_0x3d1eb8){const _0x3b9c1c=_0x3ed7a4;return _0x3d1eb8[_0x3b9c1c('0x22')]('-')===0x0?[_0x3d1eb8===_0x3b9c1c('0x16')?sequelize[_0x3b9c1c('0x1b')](sequelize[_0x3b9c1c('0xe')]('priority'),'unsigned'):_0x3d1eb8[_0x3b9c1c('0x3')](0x1),_0x3b9c1c('0x8')]:[_0x3d1eb8===_0x3b9c1c('0x16')?sequelize['cast'](sequelize[_0x3b9c1c('0xe')]('priority'),_0x3b9c1c('0x1')):_0x3d1eb8,_0x3b9c1c('0x11')];})),_0x571d1b;},exports[_0x1d1277('0x13')]=function(_0x22c45b,_0x45c464){const _0x2a997b=_0x1d1277;if(_[_0x2a997b('0xd')](_0x22c45b))return _0x22c45b;if(_[_0x2a997b('0x10')](_0x22c45b)){for(let _0x5d55a1=0x0;_0x5d55a1<_0x22c45b[_0x2a997b('0x14')];_0x5d55a1+=0x1){_0x22c45b[_0x5d55a1]=this[_0x2a997b('0x13')](_0x22c45b[_0x5d55a1],_0x45c464);}return _0x22c45b;}if(!_[_0x2a997b('0x20')](_0x22c45b))return _0x22c45b;_['isString'](_0x45c464)&&(_0x45c464=[_0x45c464]);if(!_[_0x2a997b('0x10')](_0x45c464))return _0x22c45b;for(let _0x178952=0x0;_0x178952<_0x45c464[_0x2a997b('0x14')];_0x178952+=0x1){_[_0x2a997b('0x7')](_0x22c45b,_0x45c464[_0x178952]);}for(const _0x35c74c in _0x22c45b){typeof _0x22c45b[_0x35c74c]!=='undefined'&&(_0x22c45b[_0x35c74c]=this[_0x2a997b('0x13')](_0x22c45b[_0x35c74c],_0x45c464));}return _0x22c45b;},exports[_0x1d1277('0xb')]=function(_0x30ac69){const _0x4be36a=_0x1d1277;return _0x30ac69['match'](RegExp(_0x4be36a('0x15')))?!![]:![];},exports[_0x1d1277('0x0')]=function(_0x364bcd){return _0x364bcd['match'](/^\S+@\S+$/)?!![]:![];},exports['getFullTextValue']=function(_0x4357b5){const _0x4124e0=_0x1d1277,_0x49f153=[];return _0x4357b5['split']('\x20')[_0x4124e0('0x6')](function(_0x3be382){const _0x34209a=_0x4124e0;_0x49f153[_0x34209a('0x2')]('+'+_0x3be382[_0x34209a('0xa')]()+'*');}),_0x49f153['join']('\x20');}; \ No newline at end of file +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 diff --git a/server/config/config.service.js b/server/config/config.service.js index b13f17b..69530c3 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a837_0x57d8=['boolean','env','test','replace','undefined','./env_definitions','true','number','production'];(function(_0x4a7ef7,_0x57d828){const _0x1e6838=function(_0x45d989){while(--_0x45d989){_0x4a7ef7['push'](_0x4a7ef7['shift']());}};_0x1e6838(++_0x57d828);}(a837_0x57d8,0x135));const a837_0x1e68=function(_0x4a7ef7,_0x57d828){_0x4a7ef7=_0x4a7ef7-0x0;let _0x1e6838=a837_0x57d8[_0x4a7ef7];return _0x1e6838;};const _0x51d415=a837_0x1e68,{camelCase}=require('lodash'),{validKeys}=require(_0x51d415('0x2')),VALID_KEYS=validKeys;function toBoolean(_0x45d989,_0x28bf16=![]){const _0x3d8327=_0x51d415;return typeof _0x45d989===_0x3d8327('0x1')?_0x28bf16:Boolean(typeof _0x45d989==='string'?_0x45d989['toLowerCase']()===_0x3d8327('0x3'):_0x45d989);}function toNumber(_0xf4a5c5,_0x2f0730=null){const _0x40568d=_0x51d415,_0x517540=typeof _0xf4a5c5===_0x40568d('0x1')||_0xf4a5c5===null?NaN:Number(_0xf4a5c5);return isNaN(_0x517540)?_0x2f0730:_0x517540;}function toString(_0x33f3d8,_0x320695=''){const _0x137dc8=_0x51d415;return typeof _0x33f3d8===_0x137dc8('0x1')||_0x33f3d8===null?_0x320695:String(_0x33f3d8);}function getPropertiesConfiguration(){const _0x50f4a7={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS['reduce']((_0x4a811c,{env:_0x3f9982,type:_0x2a8fbf,defaultValue:_0x5c3233})=>{const _0x10e29c=a837_0x1e68;let _0x48df3c=null;const _0x3785ea=process[_0x10e29c('0x7')][_0x3f9982];switch(_0x2a8fbf){case _0x10e29c('0x6'):_0x48df3c=toBoolean(_0x3785ea,_0x5c3233);break;case _0x10e29c('0x4'):_0x48df3c=toNumber(_0x3785ea,_0x5c3233);break;case'string':_0x48df3c=toString(_0x3785ea,_0x5c3233);break;default:break;}if(_0x3f9982==='NODE_ENV')_0x4a811c={..._0x4a811c,'isProduction':{'value':_0x48df3c===_0x10e29c('0x5'),..._0x50f4a7},'isTest':{'value':_0x48df3c===_0x10e29c('0x8'),..._0x50f4a7},'environment':{'value':_0x48df3c,..._0x50f4a7}};else{const _0x368485=camelCase(_0x3f9982[_0x10e29c('0x0')](/^XC_/,''));_0x4a811c={..._0x4a811c,[_0x368485]:{'value':_0x48df3c,..._0x50f4a7}};}return _0x4a811c;},{});}let configService=null;function getConfigService(){if(configService===null){configService={};const _0x4e9ef5=getPropertiesConfiguration();Object['defineProperties'](configService,_0x4e9ef5);}return configService;}module['exports']={'getConfigService':getConfigService}; \ No newline at end of file +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 diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 18e4c7d..8795403 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a838_0x3471=['offsetStr','rpcPort','asteriskPort','mysqlUser','seedDb','utf8_general_ci','name','mysql','utf8','timezones','redisHost','mysqlDatabase','jstz','rpcIp','asteriskPassword','determine','dbPort','exports','utf8mb4','domain','redisPort','mysqlPassword','/api/auth/google/callback','../config.service','getConfigService','dbHost','recordingSecret','agiPort'];(function(_0x2a06d9,_0x34714f){const _0xaec4e=function(_0x5cbc0a){while(--_0x5cbc0a){_0x2a06d9['push'](_0x2a06d9['shift']());}};_0xaec4e(++_0x34714f);}(a838_0x3471,0x126));const a838_0xaec4=function(_0x2a06d9,_0x34714f){_0x2a06d9=_0x2a06d9-0x0;let _0xaec4e=a838_0x3471[_0x2a06d9];return _0xaec4e;};const _0x306d0f=a838_0xaec4;'use strict';const shared=require('./shared'),jstz=require(_0x306d0f('0x1a')),timezone=jstz[_0x306d0f('0x1')](),timezoneOffset=shared[_0x306d0f('0x17')][timezone[_0x306d0f('0x14')]()][_0x306d0f('0xe')],cs=require(_0x306d0f('0x9'))[_0x306d0f('0xa')]();module[_0x306d0f('0x3')]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs[_0x306d0f('0x11')],'password':cs[_0x306d0f('0x7')],'options':{'host':cs[_0x306d0f('0xb')],'port':cs[_0x306d0f('0x2')],'dialect':_0x306d0f('0x15'),'dialectOptions':{'charset':'utf8mb4'},'timezone':timezoneOffset,'define':{'charset':_0x306d0f('0x16'),'collate':_0x306d0f('0x13')}}},'sequelizeHistory':{'database':cs[_0x306d0f('0x19')],'username':cs[_0x306d0f('0x11')],'password':cs[_0x306d0f('0x7')],'options':{'host':cs[_0x306d0f('0xb')],'port':cs['dbPort'],'dialect':_0x306d0f('0x15'),'dialectOptions':{'charset':_0x306d0f('0x4')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x306d0f('0x16'),'collate':_0x306d0f('0x13')}}},'asterisk':{'ip':cs['asteriskHost'],'port':cs[_0x306d0f('0x10')],'username':cs['asteriskUsername'],'password':cs[_0x306d0f('0x0')]},'redis':{'host':cs[_0x306d0f('0x18')],'port':cs[_0x306d0f('0x6')]},'rpc':{'port':cs[_0x306d0f('0xf')],'ip':cs[_0x306d0f('0x1b')]},'agi':{'port':cs[_0x306d0f('0xd')],'ip':cs['agiIp']},'seedDB':cs[_0x306d0f('0x12')],'google':{'clientID':cs['googleId'],'clientSecret':cs['googleSecret'],'callbackURL':cs[_0x306d0f('0x5')]+_0x306d0f('0x8')},'secrets':{'session':cs['sessionSecret'],'recording':cs[_0x306d0f('0xc')]},'xdr':{'disabled':![]}}; \ No newline at end of file +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 diff --git a/server/config/environment/index.js b/server/config/environment/index.js index edb6627..80f285b 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a839_0x1a5e=['isTest','environment','sessionSecret','exports','isProduction','browserSyncPort','../config.service','port','../environment/','recordingSecret','./shared','seedDB'];(function(_0x19eaba,_0x1a5e7e){const _0xf812ec=function(_0x16ff3e){while(--_0x16ff3e){_0x19eaba['push'](_0x19eaba['shift']());}};_0xf812ec(++_0x1a5e7e);}(a839_0x1a5e,0x13b));const a839_0xf812=function(_0x19eaba,_0x1a5e7e){_0x19eaba=_0x19eaba-0x0;let _0xf812ec=a839_0x1a5e[_0x19eaba];return _0xf812ec;};const _0x4397bb=a839_0xf812;'use strict';const cs=require(_0x4397bb('0x3'))['getConfigService'](),all={'env':cs['environment'],'root':global['appRoot'],'browserSyncPort':cs[_0x4397bb('0x2')],'port':cs[_0x4397bb('0x4')],'ip':cs['ip'],'seedDB':cs[_0x4397bb('0x8')],'secrets':{'session':cs[_0x4397bb('0xb')],'recording':cs[_0x4397bb('0x6')]}},shared=require(_0x4397bb('0x7')),env=cs[_0x4397bb('0x1')]||cs[_0x4397bb('0x9')]?cs[_0x4397bb('0xa')]:'development',variables=require(_0x4397bb('0x5')+env);module[_0x4397bb('0x0')]={...all,...shared,...variables}; \ No newline at end of file +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 diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index 85e04ab..b0f7773 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a840_0x1eab=['+10:00','Europe/Chisinau','America/Kentucky/Monticello','+08:30','America/Goose_Bay','Europe/Amsterdam','Europe/Vienna','Asia/Novokuznetsk','-03:00','America/Barbados','America/Chicago','America/Havana','Pacific/Marquesas','America/Santiago','America/Indiana/Petersburg','Asia/Tokyo','+04:00','America/Santo_Domingo','Australia/Currie','America/Argentina/Catamarca','America/Nipigon','Pacific/Tahiti','Asia/Baku','America/Argentina/Mendoza','America/Argentina/San_Luis','Asia/Omsk','Asia/Seoul','Asia/Rangoon','America/North_Dakota/New_Salem','America/Chihuahua','Europe/Riga','Europe/Volgograd','America/Inuvik','Asia/Oral','America/Bogota','America/Lima','Asia/Baghdad','Asia/Bishkek','Asia/Tehran','America/Indiana/Winamac','Asia/Tashkent','Pacific/Chatham','America/Curacao','America/Indiana/Marengo','America/Swift_Current','Asia/Amman','America/Detroit','Asia/Jayapura','Asia/Sakhalin','Asia/Thimphu','Asia/Dhaka','admin','Europe/Helsinki','Africa/Accra','Asia/Magadan','America/Mexico_City','America/Winnipeg','+02:00','Australia/Melbourne','Pacific/Wake','Atlantic/Reykjavik','America/Metlakatla','America/Bahia','+08:45','-11:00','Africa/Lagos','Pacific/Funafuti','America/Argentina/Jujuy','Europe/Zurich','Europe/Madrid','-05:00','Europe/London','Asia/Nicosia','America/Boa_Vista','Asia/Qyzylorda','America/Monterrey','Asia/Yekaterinburg','Africa/Ndjamena','-02:00','Europe/Simferopol','Asia/Yakutsk','+04:30','America/Merida','Atlantic/Azores','Africa/Tripoli','America/Thunder_Bay','America/Adak','America/Vancouver','Pacific/Pohnpei','Australia/Eucla','+05:45','America/Cambridge_Bay','Asia/Ulaanbaatar','Asia/Shanghai','-10:00','Europe/Gibraltar','America/La_Paz','America/Cayenne','Europe/Stockholm','Pacific/Bougainville','+05:00','Africa/Algiers','-09:30','America/Argentina/La_Rioja','Europe/Kiev','America/North_Dakota/Center','Antarctica/Macquarie','Asia/Khandyga','America/Menominee','Atlantic/Stanley','America/Indiana/Knox','Africa/Monrovia','Indian/Reunion','+13:00','Pacific/Wallis','guest','Europe/Bucharest','Asia/Chita','UTC','America/Mazatlan','America/Argentina/Rio_Gallegos','America/Argentina/Salta','-04:30','Europe/Paris','-07:00','Africa/Nairobi','+11:00','Pacific/Pitcairn','Asia/Colombo','America/Port_of_Spain','America/Cancun','America/Godthab','America/Sitka','Asia/Yerevan','Pacific/Enderbury','Asia/Kuala_Lumpur','Atlantic/Faroe','Asia/Aqtau','Antarctica/Palmer','Asia/Jerusalem','America/Boise','America/Fortaleza','Antarctica/Syowa','Antarctica/Davis','Asia/Choibalsan','Pacific/Palau','America/Bahia_Banderas','Indian/Kerguelen','Europe/Kaliningrad','Pacific/Gambier','Africa/El_Aaiun','Europe/Prague','America/Eirunepe','America/Araguaina','America/Fort_Nelson','America/Creston','Pacific/Kosrae','Pacific/Tongatapu','Australia/Hobart','America/Atikokan','Atlantic/Canary','+07:00','Antarctica/Rothera','Pacific/Fakaofo','Asia/Dushanbe','Pacific/Majuro','America/Tegucigalpa','Atlantic/Bermuda','Asia/Karachi','Europe/Athens','America/Argentina/Cordoba','Australia/Sydney','Pacific/Norfolk','Europe/Zaporozhye','Asia/Irkutsk','-09:00','+12:00','Asia/Aqtobe','America/Asuncion','America/Santarem','Pacific/Easter','Pacific/Auckland','+14:00','Asia/Samarkand','Asia/Kamchatka','Asia/Singapore','Africa/Cairo','Europe/Belgrade','+10:30','Europe/Warsaw','-08:00','+01:00','Europe/Tirane','America/Miquelon','Asia/Manila','+06:30','Africa/Abidjan','Asia/Dubai','Asia/Damascus','Asia/Srednekolymsk','Africa/Bissau','Asia/Jakarta','Asia/Almaty','America/Rainy_River','America/Cuiaba','America/Argentina/Buenos_Aires','America/Argentina/San_Juan','America/Edmonton','America/Indiana/Tell_City','Pacific/Kiritimati','Asia/Vladivostok','Pacific/Nauru','America/Yakutat','Asia/Bangkok','America/Managua','Asia/Kabul','Pacific/Port_Moresby','America/Indiana/Vevay','America/Campo_Grande','America/North_Dakota/Beulah','Asia/Brunei','America/Dawson_Creek','Australia/Lindeman','Australia/Lord_Howe','-03:30','Indian/Christmas','Pacific/Apia','+09:00','Africa/Johannesburg','Pacific/Efate','America/Paramaribo','Asia/Riyadh','America/Caracas','Asia/Ashgabat','Asia/Kuching','-06:00','Europe/Oslo','Africa/Maputo','America/Panama','Africa/Ceuta','Asia/Ho_Chi_Minh','Africa/Tunis','Europe/Rome','Europe/Malta','Africa/Casablanca','Pacific/Fiji','Europe/Istanbul','America/Sao_Paulo','America/New_York','America/Dawson','America/Juneau','America/Resolute','Indian/Cocos','Pacific/Guam','Europe/Samara','America/Argentina/Tucuman','America/Nome','Asia/Kolkata','Europe/Vilnius','Australia/Darwin','+03:30','Asia/Novosibirsk','Europe/Moscow','Asia/Pontianak','Africa/Windhoek','America/Matamoros','-01:00','+00:00','+06:00','Australia/Perth','America/Belize','Atlantic/Madeira','Asia/Urumqi','Pacific/Noumea','Europe/Berlin','America/Toronto','+08:00','America/Recife','America/Guayaquil','Indian/Maldives','America/Hermosillo','America/Jamaica','America/Cayman','Europe/Dublin','America/Anchorage','Asia/Pyongyang','America/Noronha','+05:30','Atlantic/Cape_Verde','Australia/Brisbane','Australia/Adelaide','+03:00','Australia/Broken_Hill','-04:00','Indian/Chagos','America/Tijuana','Europe/Lisbon','America/Glace_Bay','America/Port-au-Prince'];(function(_0x424743,_0x1eaba6){var _0x10c71c=function(_0x51a312){while(--_0x51a312){_0x424743['push'](_0x424743['shift']());}};_0x10c71c(++_0x1eaba6);}(a840_0x1eab,0x79));var a840_0x10c7=function(_0x424743,_0x1eaba6){_0x424743=_0x424743-0x0;var _0x10c71c=a840_0x1eab[_0x424743];return _0x10c71c;};var _0x3a0646=a840_0x10c7;'use strict';module['exports']={'userRoles':[_0x3a0646('0x125'),'user',_0x3a0646('0xe5')],'timezones':{'Europe/Andorra':{'name':'Europe/Andorra','utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['AD']},'Asia/Dubai':{'name':_0x3a0646('0x4c'),'utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['AE','OM']},'Asia/Kabul':{'name':_0x3a0646('0x5e'),'utcOffset':0x10e,'offsetStr':_0x3a0646('0x103'),'countries':['AF']},'Europe/Tirane':{'name':_0x3a0646('0x47'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['AL']},'Asia/Yerevan':{'name':_0x3a0646('0xc'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AM']},'Antarctica/Rothera':{'name':_0x3a0646('0x29'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AQ']},'Antarctica/Palmer':{'name':_0x3a0646('0x11'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AQ']},'Antarctica/Mawson':{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},'Antarctica/Davis':{'name':_0x3a0646('0x16'),'utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['AQ']},'Antarctica/Casey':{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['AQ']},'Antarctica/Vostok':{'name':'Antarctica/Vostok','utcOffset':0x168,'offsetStr':'+06:00','countries':['AQ']},'Antarctica/DumontDUrville':{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['AQ']},'Antarctica/Syowa':{'name':_0x3a0646('0x15'),'utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['AQ']},'Antarctica/Troll':{'name':'Antarctica/Troll','utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x3a0646('0x54'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Cordoba':{'name':_0x3a0646('0x31'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Salta':{'name':_0x3a0646('0x0'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Jujuy':{'name':_0x3a0646('0xf5'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Tucuman':{'name':_0x3a0646('0x86'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Catamarca':{'name':_0x3a0646('0xc5'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x3a0646('0x119'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/San_Juan':{'name':_0x3a0646('0x55'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Mendoza':{'name':_0x3a0646('0xc9'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Luis':{'name':_0x3a0646('0xca'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':_0x3a0646('0x12a'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'America/Argentina/Ushuaia':{'name':'America/Argentina/Ushuaia','utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['AR']},'Pacific/Pago_Pago':{'name':'Pacific/Pago_Pago','utcOffset':-0x294,'offsetStr':_0x3a0646('0xf2'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x3a0646('0xb8'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['AT']},'Australia/Lord_Howe':{'name':_0x3a0646('0x66'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x3a0646('0x11c'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['AU']},'Australia/Hobart':{'name':_0x3a0646('0x25'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['AU']},'Australia/Currie':{'name':_0x3a0646('0xc4'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['AU']},'Australia/Melbourne':{'name':_0x3a0646('0xec'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Sydney':{'name':_0x3a0646('0x32'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['AU']},'Australia/Broken_Hill':{'name':_0x3a0646('0xab'),'utcOffset':0x276,'offsetStr':_0x3a0646('0x43'),'countries':['AU']},'Australia/Brisbane':{'name':_0x3a0646('0xa8'),'utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['AU']},'Australia/Lindeman':{'name':_0x3a0646('0x65'),'utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['AU']},'Australia/Adelaide':{'name':_0x3a0646('0xa9'),'utcOffset':0x276,'offsetStr':_0x3a0646('0x43'),'countries':['AU']},'Australia/Darwin':{'name':_0x3a0646('0x8a'),'utcOffset':0x23a,'offsetStr':'+09:30','countries':['AU']},'Australia/Perth':{'name':_0x3a0646('0x94'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['AU']},'Australia/Eucla':{'name':_0x3a0646('0x10b'),'utcOffset':0x20d,'offsetStr':_0x3a0646('0xf1'),'countries':['AU']},'Asia/Baku':{'name':_0x3a0646('0xc8'),'utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['AZ']},'America/Barbados':{'name':_0x3a0646('0xbb'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['BB']},'Asia/Dhaka':{'name':_0x3a0646('0xe4'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['BE']},'Europe/Sofia':{'name':'Europe/Sofia','utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['BG']},'Atlantic/Bermuda':{'name':_0x3a0646('0x2e'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['BM']},'Asia/Brunei':{'name':_0x3a0646('0x63'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['BN']},'America/La_Paz':{'name':_0x3a0646('0x112'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['BO']},'America/Noronha':{'name':_0x3a0646('0xa5'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},'America/Belem':{'name':'America/Belem','utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Fortaleza':{'name':_0x3a0646('0x14'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Recife':{'name':_0x3a0646('0x9c'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Araguaina':{'name':_0x3a0646('0x20'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Maceio':{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Bahia':{'name':_0x3a0646('0xf0'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Sao_Paulo':{'name':_0x3a0646('0x7e'),'utcOffset':-0x78,'offsetStr':_0x3a0646('0x100'),'countries':['BR']},'America/Campo_Grande':{'name':_0x3a0646('0x61'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Cuiaba':{'name':_0x3a0646('0x53'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['BR']},'America/Santarem':{'name':_0x3a0646('0x3a'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Porto_Velho':{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['BR']},'America/Boa_Vista':{'name':_0x3a0646('0xfb'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['BR']},'America/Manaus':{'name':'America/Manaus','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},'America/Eirunepe':{'name':_0x3a0646('0x1f'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['BR']},'America/Rio_Branco':{'name':'America/Rio_Branco','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['BR']},'America/Nassau':{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['BS']},'Asia/Thimphu':{'name':_0x3a0646('0xe3'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['BT']},'Europe/Minsk':{'name':'Europe/Minsk','utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['BY']},'America/Belize':{'name':_0x3a0646('0x95'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['BZ']},'America/St_Johns':{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x3a0646('0x67'),'countries':['CA']},'America/Halifax':{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['CA']},'America/Glace_Bay':{'name':_0x3a0646('0xb0'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['CA']},'America/Moncton':{'name':'America/Moncton','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['CA']},'America/Goose_Bay':{'name':_0x3a0646('0xb6'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['CA']},'America/Blanc-Sablon':{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Toronto':{'name':_0x3a0646('0x9a'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CA']},'America/Nipigon':{'name':_0x3a0646('0xc6'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CA']},'America/Thunder_Bay':{'name':_0x3a0646('0x107'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Iqaluit':{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CA']},'America/Pangnirtung':{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CA']},'America/Resolute':{'name':_0x3a0646('0x82'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['CA']},'America/Atikokan':{'name':_0x3a0646('0x26'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Rankin_Inlet':{'name':'America/Rankin_Inlet','utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Winnipeg':{'name':_0x3a0646('0xea'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['CA']},'America/Rainy_River':{'name':_0x3a0646('0x52'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Regina':{'name':'America/Regina','utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['CA']},'America/Swift_Current':{'name':_0x3a0646('0xde'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Edmonton':{'name':_0x3a0646('0x56'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Cambridge_Bay':{'name':_0x3a0646('0x10d'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Yellowknife':{'name':'America/Yellowknife','utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Inuvik':{'name':_0x3a0646('0xd2'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Creston':{'name':_0x3a0646('0x22'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x3a0646('0x64'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['CA']},'America/Fort_Nelson':{'name':_0x3a0646('0x21'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Vancouver':{'name':_0x3a0646('0x109'),'utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['CA']},'America/Whitehorse':{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['CA']},'America/Dawson':{'name':_0x3a0646('0x80'),'utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['CA']},'Indian/Cocos':{'name':_0x3a0646('0x83'),'utcOffset':0x186,'offsetStr':_0x3a0646('0x4a'),'countries':['CC']},'Europe/Zurich':{'name':_0x3a0646('0xf6'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x3a0646('0x4b'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':_0x3a0646('0x110'),'countries':['CK']},'America/Santiago':{'name':_0x3a0646('0xbf'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['CL']},'Pacific/Easter':{'name':_0x3a0646('0x3b'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CL']},'Asia/Shanghai':{'name':_0x3a0646('0x10f'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['CN']},'Asia/Urumqi':{'name':_0x3a0646('0x97'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['CN']},'America/Bogota':{'name':_0x3a0646('0xd4'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CO']},'America/Costa_Rica':{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['CR']},'America/Havana':{'name':_0x3a0646('0xbd'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':_0x3a0646('0xa7'),'utcOffset':-0x3c,'offsetStr':_0x3a0646('0x91'),'countries':['CV']},'America/Curacao':{'name':_0x3a0646('0xdc'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':_0x3a0646('0x68'),'utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['CX']},'Asia/Nicosia':{'name':_0x3a0646('0xfa'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['CY']},'Europe/Prague':{'name':_0x3a0646('0x1e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},'Europe/Berlin':{'name':_0x3a0646('0x99'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['DE']},'Europe/Copenhagen':{'name':'Europe/Copenhagen','utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['DK']},'America/Santo_Domingo':{'name':_0x3a0646('0xc3'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['DO']},'Africa/Algiers':{'name':_0x3a0646('0x117'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['DZ']},'America/Guayaquil':{'name':_0x3a0646('0x9d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['EC']},'Europe/Tallinn':{'name':'Europe/Tallinn','utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['EE']},'Africa/Cairo':{'name':_0x3a0646('0x41'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},'Africa/El_Aaiun':{'name':_0x3a0646('0x1d'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['EH']},'Europe/Madrid':{'name':_0x3a0646('0xf7'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['ES']},'Africa/Ceuta':{'name':_0x3a0646('0x76'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Atlantic/Canary':{'name':_0x3a0646('0x27'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['ES']},'Europe/Helsinki':{'name':_0x3a0646('0xe6'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['FI','AX']},'Pacific/Fiji':{'name':_0x3a0646('0x7c'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['FJ']},'Atlantic/Stanley':{'name':_0x3a0646('0x11f'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['FK']},'Pacific/Chuuk':{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['FM']},'Pacific/Pohnpei':{'name':_0x3a0646('0x10a'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x3a0646('0x23'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x3a0646('0xf'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['FO']},'Europe/Paris':{'name':_0x3a0646('0x2'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['FR']},'UTC':{'name':_0x3a0646('0x128'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x3a0646('0xf9'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['GE']},'America/Cayenne':{'name':_0x3a0646('0x113'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['GF']},'Africa/Accra':{'name':_0x3a0646('0xe7'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['GH']},'Europe/Gibraltar':{'name':_0x3a0646('0x111'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['GI']},'America/Godthab':{'name':_0x3a0646('0xa'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['GL']},'America/Danmarkshavn':{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':'+00:00','countries':['GL']},'America/Scoresbysund':{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['GL']},'Europe/Athens':{'name':_0x3a0646('0x30'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['GR']},'Atlantic/South_Georgia':{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},'America/Guatemala':{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['GT']},'Pacific/Guam':{'name':_0x3a0646('0x84'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['GU','MP']},'Africa/Bissau':{'name':_0x3a0646('0x4f'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},'Asia/Hong_Kong':{'name':'Asia/Hong_Kong','utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['HK']},'America/Tegucigalpa':{'name':_0x3a0646('0x2d'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['HN']},'America/Port-au-Prince':{'name':_0x3a0646('0xb1'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},'Europe/Budapest':{'name':'Europe/Budapest','utcOffset':0x3c,'offsetStr':'+01:00','countries':['HU']},'Asia/Jakarta':{'name':_0x3a0646('0x50'),'utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['ID']},'Asia/Pontianak':{'name':_0x3a0646('0x8e'),'utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['ID']},'Asia/Makassar':{'name':'Asia/Makassar','utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['ID']},'Asia/Jayapura':{'name':_0x3a0646('0xe1'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['ID']},'Europe/Dublin':{'name':_0x3a0646('0xa2'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x3a0646('0x12'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['IL']},'Asia/Kolkata':{'name':_0x3a0646('0x88'),'utcOffset':0x14a,'offsetStr':_0x3a0646('0xa6'),'countries':['IN']},'Indian/Chagos':{'name':_0x3a0646('0xad'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['IO']},'Asia/Baghdad':{'name':_0x3a0646('0xd6'),'utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['IQ']},'Asia/Tehran':{'name':_0x3a0646('0xd8'),'utcOffset':0xd2,'offsetStr':_0x3a0646('0x8b'),'countries':['IR']},'Atlantic/Reykjavik':{'name':_0x3a0646('0xee'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['IS']},'Europe/Rome':{'name':_0x3a0646('0x79'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x3a0646('0xa0'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},'Asia/Amman':{'name':_0x3a0646('0xdf'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['JO']},'Asia/Tokyo':{'name':_0x3a0646('0xc1'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['JP']},'Africa/Nairobi':{'name':_0x3a0646('0x4'),'utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x3a0646('0xd7'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},'Pacific/Tarawa':{'name':'Pacific/Tarawa','utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['KI']},'Pacific/Enderbury':{'name':_0x3a0646('0xd'),'utcOffset':0x30c,'offsetStr':_0x3a0646('0x123'),'countries':['KI']},'Pacific/Kiritimati':{'name':_0x3a0646('0x58'),'utcOffset':0x348,'offsetStr':_0x3a0646('0x3d'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x3a0646('0xa4'),'utcOffset':0x1fe,'offsetStr':_0x3a0646('0xb5'),'countries':['KP']},'Asia/Seoul':{'name':_0x3a0646('0xcc'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['KR']},'America/Cayman':{'name':_0x3a0646('0xa1'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['KY']},'Asia/Almaty':{'name':_0x3a0646('0x51'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['KZ']},'Asia/Qyzylorda':{'name':_0x3a0646('0xfc'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['KZ']},'Asia/Aqtobe':{'name':_0x3a0646('0x38'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Aqtau':{'name':_0x3a0646('0x10'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['KZ']},'Asia/Oral':{'name':_0x3a0646('0xd3'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['KZ']},'Asia/Beirut':{'name':'Asia/Beirut','utcOffset':0x78,'offsetStr':'+02:00','countries':['LB']},'Asia/Colombo':{'name':_0x3a0646('0x7'),'utcOffset':0x14a,'offsetStr':_0x3a0646('0xa6'),'countries':['LK']},'Africa/Monrovia':{'name':_0x3a0646('0x121'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},'Europe/Vilnius':{'name':_0x3a0646('0x89'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['LT']},'Europe/Luxembourg':{'name':'Europe/Luxembourg','utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},'Europe/Riga':{'name':_0x3a0646('0xd0'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['LV']},'Africa/Tripoli':{'name':_0x3a0646('0x106'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['LY']},'Africa/Casablanca':{'name':_0x3a0646('0x7b'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['MA']},'Europe/Monaco':{'name':'Europe/Monaco','utcOffset':0x3c,'offsetStr':'+01:00','countries':['MC']},'Europe/Chisinau':{'name':_0x3a0646('0xb3'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['MD']},'Pacific/Majuro':{'name':_0x3a0646('0x2c'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['MH']},'Pacific/Kwajalein':{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['MH']},'Asia/Rangoon':{'name':_0x3a0646('0xcd'),'utcOffset':0x186,'offsetStr':_0x3a0646('0x4a'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x3a0646('0x10e'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['MN']},'Asia/Hovd':{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['MN']},'Asia/Choibalsan':{'name':_0x3a0646('0x17'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['MN']},'Asia/Macau':{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['MO']},'America/Martinique':{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},'Europe/Malta':{'name':_0x3a0646('0x7a'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['MT']},'Indian/Mauritius':{'name':'Indian/Mauritius','utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['MU']},'Indian/Maldives':{'name':_0x3a0646('0x9e'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['MV']},'America/Mexico_City':{'name':_0x3a0646('0xe9'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['MX']},'America/Cancun':{'name':_0x3a0646('0x9'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},'America/Merida':{'name':_0x3a0646('0x104'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['MX']},'America/Monterrey':{'name':_0x3a0646('0xfd'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['MX']},'America/Matamoros':{'name':_0x3a0646('0x90'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['MX']},'America/Mazatlan':{'name':_0x3a0646('0x129'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['MX']},'America/Chihuahua':{'name':_0x3a0646('0xcf'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},'America/Ojinaga':{'name':'America/Ojinaga','utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['MX']},'America/Hermosillo':{'name':_0x3a0646('0x9f'),'utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['MX']},'America/Tijuana':{'name':_0x3a0646('0xae'),'utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['MX']},'America/Santa_Isabel':{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Bahia_Banderas':{'name':_0x3a0646('0x19'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x3a0646('0xe'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['MY']},'Asia/Kuching':{'name':_0x3a0646('0x71'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['MY']},'Africa/Maputo':{'name':_0x3a0646('0x74'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x3a0646('0x8f'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['NA']},'Pacific/Noumea':{'name':_0x3a0646('0x98'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['NC']},'Pacific/Norfolk':{'name':_0x3a0646('0x33'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['NF']},'Africa/Lagos':{'name':_0x3a0646('0xf3'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x3a0646('0x5d'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['NI']},'Europe/Amsterdam':{'name':_0x3a0646('0xb7'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['NL']},'Europe/Oslo':{'name':_0x3a0646('0x73'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':_0x3a0646('0x10c'),'countries':['NP']},'Pacific/Nauru':{'name':_0x3a0646('0x5a'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['NR']},'Pacific/Niue':{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':_0x3a0646('0xf2'),'countries':['NU']},'Pacific/Auckland':{'name':_0x3a0646('0x3c'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x3a0646('0xdb'),'utcOffset':0x339,'offsetStr':'+13:45','countries':['NZ']},'America/Panama':{'name':_0x3a0646('0x75'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},'America/Lima':{'name':_0x3a0646('0xd5'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PE']},'Pacific/Tahiti':{'name':_0x3a0646('0xc7'),'utcOffset':-0x258,'offsetStr':_0x3a0646('0x110'),'countries':['PF']},'Pacific/Marquesas':{'name':_0x3a0646('0xbe'),'utcOffset':-0x23a,'offsetStr':_0x3a0646('0x118'),'countries':['PF']},'Pacific/Gambier':{'name':_0x3a0646('0x1c'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['PF']},'Pacific/Port_Moresby':{'name':_0x3a0646('0x5f'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},'Pacific/Bougainville':{'name':_0x3a0646('0x115'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['PG']},'Asia/Manila':{'name':_0x3a0646('0x49'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['PH']},'Asia/Karachi':{'name':_0x3a0646('0x2f'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['PK']},'Europe/Warsaw':{'name':_0x3a0646('0x44'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['PL']},'America/Miquelon':{'name':_0x3a0646('0x48'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['PM']},'Pacific/Pitcairn':{'name':_0x3a0646('0x6'),'utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['PN']},'America/Puerto_Rico':{'name':'America/Puerto_Rico','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['PR']},'Asia/Gaza':{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['PS']},'Asia/Hebron':{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['PS']},'Europe/Lisbon':{'name':_0x3a0646('0xaf'),'utcOffset':0x0,'offsetStr':_0x3a0646('0x92'),'countries':['PT']},'Atlantic/Madeira':{'name':_0x3a0646('0x96'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Azores':{'name':_0x3a0646('0x105'),'utcOffset':-0x3c,'offsetStr':_0x3a0646('0x91'),'countries':['PT']},'Pacific/Palau':{'name':_0x3a0646('0x18'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['PW']},'America/Asuncion':{'name':_0x3a0646('0x39'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['PY']},'Asia/Qatar':{'name':'Asia/Qatar','utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},'Indian/Reunion':{'name':_0x3a0646('0x122'),'utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['RE','TF']},'Europe/Bucharest':{'name':_0x3a0646('0x126'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['RO']},'Europe/Belgrade':{'name':_0x3a0646('0x42'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':_0x3a0646('0x1b'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['RU']},'Europe/Moscow':{'name':_0x3a0646('0x8d'),'utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['RU']},'Europe/Simferopol':{'name':_0x3a0646('0x101'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Volgograd':{'name':_0x3a0646('0xd1'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Samara':{'name':_0x3a0646('0x85'),'utcOffset':0xf0,'offsetStr':_0x3a0646('0xc2'),'countries':['RU']},'Asia/Yekaterinburg':{'name':_0x3a0646('0xfe'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['RU']},'Asia/Omsk':{'name':_0x3a0646('0xcb'),'utcOffset':0x168,'offsetStr':_0x3a0646('0x93'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x3a0646('0x8c'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},'Asia/Novokuznetsk':{'name':_0x3a0646('0xb9'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},'Asia/Krasnoyarsk':{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':_0x3a0646('0x28'),'countries':['RU']},'Asia/Irkutsk':{'name':_0x3a0646('0x35'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['RU']},'Asia/Chita':{'name':_0x3a0646('0x127'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x3a0646('0x102'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['RU']},'Asia/Khandyga':{'name':_0x3a0646('0x11d'),'utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['RU']},'Asia/Vladivostok':{'name':_0x3a0646('0x59'),'utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x3a0646('0xe2'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Ust-Nera':{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['RU']},'Asia/Magadan':{'name':_0x3a0646('0xe8'),'utcOffset':0x258,'offsetStr':_0x3a0646('0xb2'),'countries':['RU']},'Asia/Srednekolymsk':{'name':_0x3a0646('0x4e'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['RU']},'Asia/Kamchatka':{'name':_0x3a0646('0x3f'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['RU']},'Asia/Anadyr':{'name':'Asia/Anadyr','utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['RU']},'Asia/Riyadh':{'name':_0x3a0646('0x6e'),'utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':'Pacific/Guadalcanal','utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':'+04:00','countries':['SC']},'Africa/Khartoum':{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0x3a0646('0xaa'),'countries':['SD','SS']},'Europe/Stockholm':{'name':_0x3a0646('0x114'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['SE']},'Asia/Singapore':{'name':_0x3a0646('0x40'),'utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['SG']},'America/Paramaribo':{'name':_0x3a0646('0x6d'),'utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['SR']},'America/El_Salvador':{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['SV']},'Asia/Damascus':{'name':_0x3a0646('0x4d'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['SY']},'America/Grand_Turk':{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x3a0646('0xff'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TD']},'Indian/Kerguelen':{'name':_0x3a0646('0x1a'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},'Asia/Bangkok':{'name':_0x3a0646('0x5c'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':_0x3a0646('0x2b'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TJ']},'Pacific/Fakaofo':{'name':_0x3a0646('0x2a'),'utcOffset':0x30c,'offsetStr':_0x3a0646('0x123'),'countries':['TK']},'Asia/Dili':{'name':'Asia/Dili','utcOffset':0x21c,'offsetStr':_0x3a0646('0x6a'),'countries':['TL']},'Asia/Ashgabat':{'name':_0x3a0646('0x70'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},'Africa/Tunis':{'name':_0x3a0646('0x78'),'utcOffset':0x3c,'offsetStr':_0x3a0646('0x46'),'countries':['TN']},'Pacific/Tongatapu':{'name':_0x3a0646('0x24'),'utcOffset':0x30c,'offsetStr':_0x3a0646('0x123'),'countries':['TO']},'Europe/Istanbul':{'name':_0x3a0646('0x7d'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['TR']},'America/Port_of_Spain':{'name':_0x3a0646('0x8'),'utcOffset':-0xf0,'offsetStr':_0x3a0646('0xac'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x3a0646('0xf4'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},'Asia/Taipei':{'name':'Asia/Taipei','utcOffset':0x1e0,'offsetStr':_0x3a0646('0x9b'),'countries':['TW']},'Europe/Kiev':{'name':_0x3a0646('0x11a'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['UA']},'Europe/Uzhgorod':{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['UA']},'Europe/Zaporozhye':{'name':_0x3a0646('0x34'),'utcOffset':0x78,'offsetStr':_0x3a0646('0xeb'),'countries':['UA']},'Pacific/Wake':{'name':_0x3a0646('0xed'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['UM']},'America/New_York':{'name':_0x3a0646('0x7f'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Detroit':{'name':_0x3a0646('0xe0'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Kentucky/Monticello':{'name':_0x3a0646('0xb4'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Indiana/Indianapolis':{'name':'America/Indiana/Indianapolis','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Vincennes':{'name':'America/Indiana/Vincennes','utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Indiana/Winamac':{'name':_0x3a0646('0xd9'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x3a0646('0xdd'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Indiana/Petersburg':{'name':_0x3a0646('0xc0'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Indiana/Vevay':{'name':_0x3a0646('0x60'),'utcOffset':-0x12c,'offsetStr':_0x3a0646('0xf8'),'countries':['US']},'America/Chicago':{'name':_0x3a0646('0xbc'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/Indiana/Tell_City':{'name':_0x3a0646('0x57'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/Indiana/Knox':{'name':_0x3a0646('0x120'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/Menominee':{'name':_0x3a0646('0x11e'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/North_Dakota/Center':{'name':_0x3a0646('0x11b'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x3a0646('0xce'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/North_Dakota/Beulah':{'name':_0x3a0646('0x62'),'utcOffset':-0x168,'offsetStr':_0x3a0646('0x72'),'countries':['US']},'America/Denver':{'name':'America/Denver','utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['US']},'America/Boise':{'name':_0x3a0646('0x13'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Phoenix':{'name':'America/Phoenix','utcOffset':-0x1a4,'offsetStr':_0x3a0646('0x3'),'countries':['US']},'America/Los_Angeles':{'name':'America/Los_Angeles','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},'America/Metlakatla':{'name':_0x3a0646('0xef'),'utcOffset':-0x1e0,'offsetStr':_0x3a0646('0x45'),'countries':['US']},'America/Anchorage':{'name':_0x3a0646('0xa3'),'utcOffset':-0x21c,'offsetStr':_0x3a0646('0x36'),'countries':['US']},'America/Juneau':{'name':_0x3a0646('0x81'),'utcOffset':-0x21c,'offsetStr':_0x3a0646('0x36'),'countries':['US']},'America/Sitka':{'name':_0x3a0646('0xb'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Yakutat':{'name':_0x3a0646('0x5b'),'utcOffset':-0x21c,'offsetStr':_0x3a0646('0x36'),'countries':['US']},'America/Nome':{'name':_0x3a0646('0x87'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Adak':{'name':_0x3a0646('0x108'),'utcOffset':-0x258,'offsetStr':_0x3a0646('0x110'),'countries':['US']},'Pacific/Honolulu':{'name':'Pacific/Honolulu','utcOffset':-0x258,'offsetStr':_0x3a0646('0x110'),'countries':['US','UM']},'America/Montevideo':{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':_0x3a0646('0xba'),'countries':['UY']},'Asia/Samarkand':{'name':_0x3a0646('0x3e'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['UZ']},'Asia/Tashkent':{'name':_0x3a0646('0xda'),'utcOffset':0x12c,'offsetStr':_0x3a0646('0x116'),'countries':['UZ']},'America/Caracas':{'name':_0x3a0646('0x6f'),'utcOffset':-0x10e,'offsetStr':_0x3a0646('0x1'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':_0x3a0646('0x77'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},'Pacific/Efate':{'name':_0x3a0646('0x6c'),'utcOffset':0x294,'offsetStr':_0x3a0646('0x5'),'countries':['VU']},'Pacific/Wallis':{'name':_0x3a0646('0x124'),'utcOffset':0x2d0,'offsetStr':_0x3a0646('0x37'),'countries':['WF']},'Pacific/Apia':{'name':_0x3a0646('0x69'),'utcOffset':0x348,'offsetStr':_0x3a0646('0x3d'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x3a0646('0x6b'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}}}; \ No newline at end of file +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 diff --git a/server/config/environment/test.js b/server/config/environment/test.js index b619cd9..80714f4 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a841_0x521f=['rpcPort','redisPort','rpcIp','mysqlPassword','mysqlDatabase','asteriskPassword','asteriskPort','../config.service','offsetStr','recordingSecret','dbPort','agiIp','exports','asteriskHost','redisHost','./shared','dbHost','googleId','utf8','googleSecret','utf8mb4','domain','mysql','getConfigService','jstz','seedDb','asteriskUsername','timezones','sessionSecret','utf8_general_ci','mysqlUser'];(function(_0x317582,_0x521f97){const _0x32570b=function(_0x213e04){while(--_0x213e04){_0x317582['push'](_0x317582['shift']());}};_0x32570b(++_0x521f97);}(a841_0x521f,0x1e8));const a841_0x3257=function(_0x317582,_0x521f97){_0x317582=_0x317582-0x0;let _0x32570b=a841_0x521f[_0x317582];return _0x32570b;};const _0x45e81f=a841_0x3257;'use strict';const shared=require(_0x45e81f('0x17')),jstz=require(_0x45e81f('0x1')),timezone=jstz['determine'](),timezoneOffset=shared[_0x45e81f('0x4')][timezone['name']()][_0x45e81f('0x10')],cs=require(_0x45e81f('0xf'))[_0x45e81f('0x0')]();module[_0x45e81f('0x14')]={'sequelize':{'database':cs[_0x45e81f('0xc')],'username':cs['mysqlUser'],'password':cs[_0x45e81f('0xb')],'options':{'host':cs[_0x45e81f('0x18')],'port':cs[_0x45e81f('0x12')],'dialect':'mysql','dialectOptions':{'charset':_0x45e81f('0x1c')},'timezone':timezoneOffset,'define':{'charset':_0x45e81f('0x1a'),'collate':_0x45e81f('0x6')}}},'sequelizeHistory':{'database':cs[_0x45e81f('0xc')],'username':cs[_0x45e81f('0x7')],'password':cs[_0x45e81f('0xb')],'options':{'host':cs[_0x45e81f('0x18')],'port':cs['dbPort'],'dialect':_0x45e81f('0x1e'),'dialectOptions':{'charset':_0x45e81f('0x1c')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x45e81f('0x1a'),'collate':_0x45e81f('0x6')}}},'asterisk':{'ip':cs[_0x45e81f('0x15')],'port':cs[_0x45e81f('0xe')],'username':cs[_0x45e81f('0x3')],'password':cs[_0x45e81f('0xd')]},'redis':{'host':cs[_0x45e81f('0x16')],'port':cs[_0x45e81f('0x9')]},'rpc':{'port':cs[_0x45e81f('0x8')],'ip':cs[_0x45e81f('0xa')]},'agi':{'port':cs['agiPort'],'ip':cs[_0x45e81f('0x13')]},'seedDB':cs[_0x45e81f('0x2')],'google':{'clientID':cs[_0x45e81f('0x19')],'clientSecret':cs[_0x45e81f('0x1b')],'callbackURL':cs[_0x45e81f('0x1d')]+'/api/auth/google/callback'},'secrets':{'session':cs[_0x45e81f('0x5')],'recording':cs[_0x45e81f('0x11')]},'xdr':{'disabled':![]}}; \ No newline at end of file +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 diff --git a/server/config/express.js b/server/config/express.js index f4f7f7a..9cc05c8 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a842_0x4875=['Public\x20path\x20set\x20to\x20','static','urlencoded','split','get','join','views','path','passport','set','use','html','toISOString','method-override','./environment','errorhandler','app','isProduction','express','json\x20replacer','/server/views','cors','root','./logger','info','initialize','appPath','renderFile','50mb'];(function(_0x107870,_0x4875a1){const _0xa4b573=function(_0x2c32f4){while(--_0x2c32f4){_0x107870['push'](_0x107870['shift']());}};_0xa4b573(++_0x4875a1);}(a842_0x4875,0x10f));const a842_0xa4b5=function(_0x107870,_0x4875a1){_0x107870=_0x107870-0x0;let _0xa4b573=a842_0x4875[_0x107870];return _0xa4b573;};const _0xc2baeb=a842_0xa4b5;'use strict';const express=require(_0xc2baeb('0x8')),bodyParser=require('body-parser'),methodOverride=require(_0xc2baeb('0x3')),cookieParser=require('cookie-parser'),errorHandler=require(_0xc2baeb('0x5')),path=require(_0xc2baeb('0x1a')),passport=require(_0xc2baeb('0x1b')),cors=require(_0xc2baeb('0xb')),config=require(_0xc2baeb('0x4')),{getConfigService}=require('./config.service'),logger=require(_0xc2baeb('0xd'))(_0xc2baeb('0x6'));exports['default']=function(_0x2c32f4){const _0x3d4f97=_0xc2baeb,_0x2b75d4=getConfigService();_0x2c32f4[_0x3d4f97('0x1c')](_0x3d4f97('0x10'),path[_0x3d4f97('0x18')](config['root'],'..','public')),logger[_0x3d4f97('0xe')](_0x3d4f97('0x13')+_0x2c32f4[_0x3d4f97('0x17')](_0x3d4f97('0x10'))),!_0x2b75d4['isProduction']&&_0x2c32f4['use'](errorHandler()),_0x2c32f4[_0x3d4f97('0x1c')](_0x3d4f97('0x9'),function(_0x374184,_0x24fb7d){const _0x4d1d92=_0x3d4f97;return this[_0x374184]instanceof Date&&(_0x24fb7d=this[_0x374184][_0x4d1d92('0x2')]()[_0x4d1d92('0x16')]('.')[0x0]+'Z'),_0x24fb7d;}),_0x2c32f4[_0x3d4f97('0x0')](express[_0x3d4f97('0x14')](_0x2c32f4[_0x3d4f97('0x17')](_0x3d4f97('0x10')))),_0x2c32f4[_0x3d4f97('0x1c')](_0x3d4f97('0x19'),config[_0x3d4f97('0xc')]+_0x3d4f97('0xa')),_0x2c32f4['engine'](_0x3d4f97('0x1'),require('ejs')[_0x3d4f97('0x11')]),_0x2c32f4['set']('view\x20engine',_0x3d4f97('0x1')),_0x2c32f4[_0x3d4f97('0x0')](bodyParser[_0x3d4f97('0x15')]({'limit':'50mb','extended':!![]})),_0x2c32f4[_0x3d4f97('0x0')](bodyParser['json']({'limit':_0x3d4f97('0x12')})),_0x2c32f4['use'](cors({'origin':!_0x2b75d4['isProduction'],'methods':_0x2b75d4[_0x3d4f97('0x7')]?'GET,HEAD,PUT,PATCH,POST,DELETE':'OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','preflightContinue':!![]})),_0x2c32f4[_0x3d4f97('0x0')](methodOverride()),_0x2c32f4['use'](cookieParser()),_0x2c32f4[_0x3d4f97('0x0')](passport[_0x3d4f97('0xf')]());}; \ No newline at end of file +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 diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index 8b93641..181c2b7 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a843_0x4207=['../config.service','crypto','hex','00:00:00:00:00:00','address','length','join','child_process','exports','createHash','127.0.0.1','orderBy','head','family','replace','macAddress','substring','ipAddress','lodash','win32','mac','map','digest','md5','execSync','test','platform','keys','update','devLicense'];(function(_0x58c0db,_0x420764){const _0x300a7c=function(_0x1d8070){while(--_0x1d8070){_0x58c0db['push'](_0x58c0db['shift']());}};_0x300a7c(++_0x420764);}(a843_0x4207,0x10b));const a843_0x300a=function(_0x58c0db,_0x420764){_0x58c0db=_0x58c0db-0x0;let _0x300a7c=a843_0x4207[_0x58c0db];return _0x300a7c;};const _0x1d54a8=a843_0x300a;'use strict';const _=require(_0x1d54a8('0x15')),os=require('os'),crypto=require(_0x1d54a8('0x4')),{getConfigService}=require(_0x1d54a8('0x3')),exec=require(_0x1d54a8('0xa'))[_0x1d54a8('0x1b')];function getInterfaces(){const _0x51683b=_0x1d54a8;let _0x1d8070=[];const _0x1957b7=os['networkInterfaces'](),_0x375a0d=_[_0x51683b('0xe')](_[_0x51683b('0x0')](_0x1957b7));for(let _0x264818=0x0;_0x264818<_0x375a0d[_0x51683b('0x8')];_0x264818++){const _0x1677db=_0x1957b7[_0x375a0d[_0x264818]]['filter'](function(_0x2aee61){const _0x39ca3b=_0x51683b;return _0x2aee61[_0x39ca3b('0x10')]==='IPv4'&&_0x2aee61['internal']===![];});_0x1d8070=_0x1d8070['concat'](_0x1677db);}return _0x1d8070;}function getFirstInterface(){const _0x41ad75=_0x1d54a8,_0x4b7f76=_[_0x41ad75('0xf')](getInterfaces());return{'macAddress':_0x4b7f76&&_0x4b7f76[_0x41ad75('0x17')]?_0x4b7f76[_0x41ad75('0x17')]:_0x41ad75('0x6'),'ipAddress':_0x4b7f76&&_0x4b7f76[_0x41ad75('0x7')]?_0x4b7f76['address']:_0x41ad75('0xd')};}function getCPUhash(){const _0x18e320=_0x1d54a8,_0x1e456c=_[_0x18e320('0xe')](os['cpus']()[_0x18e320('0x18')](function(_0x187749){return _0x187749['model'];}))[_0x18e320('0x9')](':');return crypto[_0x18e320('0xc')](_0x18e320('0x1a'))[_0x18e320('0x1')](_0x1e456c)[_0x18e320('0x19')]('hex');}function getUuid(){const _0x3f3f41=_0x1d54a8,_0x43853e=getConfigService(),_0x1d5a2e=os[_0x3f3f41('0x1d')](),_0x164e5d=/[0-9a-f-]{36}/;if(!_0x43853e['isProduction']&&_0x164e5d[_0x3f3f41('0x1c')](_0x43853e[_0x3f3f41('0x2')]))return _0x43853e[_0x3f3f41('0x2')];else{if(_0x1d5a2e===_0x3f3f41('0x16'))return exec('dmidecode\x20--string\x20system-uuid',{'encoding':'utf8'})[_0x3f3f41('0x11')]('\x0d\x0a','');else{const _0x2816ed=getFirstInterface(),_0x3f1cab=getCPUhash(),_0x2e7df0=_0x3f1cab+'|'+os['hostname']()+'|'+_0x2816ed[_0x3f3f41('0x12')]+'|'+_0x2816ed[_0x3f3f41('0x14')],_0x52b8d7=crypto['createHash'](_0x3f3f41('0x1a'))[_0x3f3f41('0x1')](_0x2e7df0)[_0x3f3f41('0x19')](_0x3f3f41('0x5'));return _0x52b8d7[_0x3f3f41('0x13')](0x0,0x8)+'-'+_0x52b8d7[_0x3f3f41('0x13')](0x8,0xc)+'-'+_0x52b8d7[_0x3f3f41('0x13')](0xc,0x10)+'-'+_0x52b8d7[_0x3f3f41('0x13')](0x10,0x14)+'-'+_0x52b8d7[_0x3f3f41('0x13')](0x14);}}}module[_0x1d54a8('0xb')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file +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 diff --git a/server/config/license/index.js b/server/config/license/index.js index daced25..783844a 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a844_0x5a00=['Disabled','getUuid','reject','MOTLICENSE','then','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','request-promise-native','get','ipAddress','YYYY-MM-DD\x20HH:mm','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','util','diff','toUpperCase','openIssue','|name|','info','User','email','error','../../components/encryptor','decryptString','%s/api/servers/%s/check?version=%s','data1','../../../package.json','active','||FIELD||VALUE||\x0a','DEMO\x20START\x20AT\x20%s','./hardware','License','|reason|','admin','update','data2','findOrCreate','|uuid|','message','catch','findOne','format','Motion\x20License\x20Alert','../../api/jira/jira.controller','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','license','https://www.xcallymotion.com','fullname','../logger','|email|','encryptString','Changed','default'];(function(_0x2fd6dc,_0x5a00bf){const _0x22f5b6=function(_0x17e153){while(--_0x17e153){_0x2fd6dc['push'](_0x2fd6dc['shift']());}};_0x22f5b6(++_0x5a00bf);}(a844_0x5a00,0x1f2));const a844_0x22f5=function(_0x2fd6dc,_0x5a00bf){_0x2fd6dc=_0x2fd6dc-0x0;let _0x22f5b6=a844_0x5a00[_0x2fd6dc];return _0x22f5b6;};const _0x495986=a844_0x22f5;'use strict';const {version}=require(_0x495986('0x24')),util=require(_0x495986('0x17')),encryptor=require(_0x495986('0x20')),moment=require('moment'),rp=require(_0x495986('0x12')),db=require('../../mysqldb')['db'],hardware=require(_0x495986('0x28')),logger=require(_0x495986('0x7'))('license'),jira=require(_0x495986('0x2')),HOST=_0x495986('0x5'),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x17e153){return new Promise(function(_0x51f8da,_0x3615a5){const _0xe05d80=a844_0x22f5;let _0xd73a9b=util[_0xe05d80('0x0')](_0xe05d80('0x22'),HOST,_0x17e153,version);oldToken&&(_0xd73a9b=util[_0xe05d80('0x0')]('%s/api/servers/%s/check?version=%s&oldtoken=%s',HOST,_0x17e153,version,oldToken));const _0x2284b7={'uri':_0xd73a9b,'method':'GET','timeout':0xea60,'json':!![]};return rp(_0x2284b7)['then'](function(_0x1e487b){_0x51f8da(_0x1e487b);})[_0xe05d80('0x31')](function(_0xacda3f){_0x3615a5(_0xacda3f);});});}function sendJiraAlert(_0x327789,_0x11d729,_0x42517c){const _0x10f6f1=_0x495986;let _0x4a9783=_0x10f6f1('0x26');return db[_0x10f6f1('0x1d')][_0x10f6f1('0x32')]({'where':{'role':_0x10f6f1('0x2b')},'attributes':['fullname',_0x10f6f1('0x1e')],'raw':!![]})[_0x10f6f1('0x10')](function(_0x4801d1){const _0x3bfea0=_0x10f6f1;return ADMIN=_0x4801d1,_0x4a9783+=_0x3bfea0('0x2a')+_0x42517c+'|\x0a',_0x4a9783+=_0x3bfea0('0x2f')+_0x327789+'|\x0a',_0x4a9783+='|machineUuid|'+_0x11d729+'|\x0a',_0x4a9783+=_0x3bfea0('0x1b')+ADMIN[_0x3bfea0('0x6')]+'|\x0a',_0x4a9783+=_0x3bfea0('0x8')+ADMIN[_0x3bfea0('0x1e')]+'|\x0a',_0x4a9783;})[_0x10f6f1('0x10')](function(_0x283589){const _0x3ce538=_0x10f6f1,_0x244c3d=hardware['getFirstInterface']()[_0x3ce538('0x14')];return jira[_0x3ce538('0x1a')]({'key':_0x3ce538('0xf'),'summary':_0x3ce538('0x1'),'description':_0x283589,'issuetype':'Alert','oldToken':_0x327789,'newToken':_0x11d729,'email':ADMIN['email'],'name':ADMIN[_0x3ce538('0x6')],'reason':GRAY_PERIOD_REASON,'ip':_0x244c3d});});}function manageLicense(_0xe227cf,_0x14c658){const _0x1bb55a=_0x495986,_0x43bf20=_0x14c658[_0x1bb55a('0x13')]({'plain':!![]});httpRequest(_0xe227cf)[_0x1bb55a('0x10')](function(_0x3139a6){const _0x108fba=_0x1bb55a;oldToken&&(oldToken=undefined);if(_0x3139a6[_0x108fba('0x25')]){(!_0x43bf20[_0x108fba('0x4')]&&_0x43bf20['license']!=_0x3139a6['license']||_0x43bf20[_0x108fba('0x4')]&&_0x43bf20[_0x108fba('0x2d')])&&logger[_0x108fba('0x1c')]('THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED');_0x43bf20['license']&&!_0x43bf20[_0x108fba('0x2d')]&&_0x43bf20[_0x108fba('0x4')]!=_0x3139a6['license']&&logger[_0x108fba('0x1c')](_0x108fba('0x11'));if(_0x43bf20[_0x108fba('0x4')]&&!_0x43bf20[_0x108fba('0x2d')]&&_0x43bf20[_0x108fba('0x4')]==_0x3139a6['license'])return _0x14c658;return _0x14c658[_0x108fba('0x2c')]({'data1':_0xe227cf,'data2':null,'license':_0x3139a6['license']});}else{if(_0x3139a6[_0x108fba('0x4')]||_0x43bf20[_0x108fba('0x4')]){if(!_0x43bf20['data2'])return _0x43bf20[_0x108fba('0x23')]==_0xe227cf?(GRAY_PERIOD_REASON=_0x108fba('0xc'),logger['info']('THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED')):(GRAY_PERIOD_REASON=_0x108fba('0xa'),oldToken=_0x43bf20[_0x108fba('0x23')],logger['info']('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x43bf20['data1'],_0xe227cf)),sendJiraAlert(_0x43bf20['data1'],_0x3139a6['uuid'],GRAY_PERIOD_REASON),logger[_0x108fba('0x1c')](_0x108fba('0x16'),GRAY_PERIOD_REASON[_0x108fba('0x19')](),moment()[_0x108fba('0x0')](_0x108fba('0x15'))),_0x14c658[_0x108fba('0x2c')]({'data2':encryptor[_0x108fba('0x9')](moment()['format'](_0x108fba('0x15')))});else{if(moment()[_0x108fba('0x18')](encryptor[_0x108fba('0x21')](_0x43bf20[_0x108fba('0x2d')]),'days')>DAYS)return logger['info'](_0x108fba('0x27'),moment()['format'](_0x108fba('0x15'))),_0x14c658[_0x108fba('0x2c')]({'data1':_0xe227cf,'data2':null,'license':null});}}else{if(_0x43bf20[_0x108fba('0x23')]!=_0xe227cf)return logger['info'](_0x108fba('0x3'),_0x43bf20['data1'],_0xe227cf),_0x14c658[_0x108fba('0x2c')]({'data1':_0xe227cf,'data2':null,'license':null});}}return _0x14c658;})[_0x1bb55a('0x10')](function(_0x5260f1){_0x14c658=_0x5260f1;})[_0x1bb55a('0x31')](function(_0x557c29){const _0x1494b2=_0x1bb55a;logger['error'](_0x557c29[_0x1494b2('0x30')]);})['finally'](function(){setTimeout(function(){manageLicense(hardware['getUuid'](),_0x14c658);},TIME);});}function defaultLicense(){const _0x397603=_0x495986,_0x27384c=hardware[_0x397603('0xd')]();return _0x27384c?db[_0x397603('0x29')][_0x397603('0x2e')]({'where':{'id':0x1},'defaults':{'data1':_0x27384c}})[_0x397603('0x10')](function([_0x5f660]){logger['info']('SERVICE\x20LICENSE\x20STARTED\x20%s',_0x27384c),manageLicense(_0x27384c,_0x5f660);})['catch'](function(_0x187626){const _0x465db2=_0x397603;logger[_0x465db2('0x1f')](_0x187626[_0x465db2('0x30')]);throw _0x187626;}):Promise[_0x397603('0xe')](new Error('No\x20UUID\x20found'));}exports[_0x495986('0xb')]=defaultLicense; \ No newline at end of file +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 diff --git a/server/config/license/util.js b/server/config/license/util.js index c0e0a09..6ca03b2 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a845_0x4c12=['license','deadline','demo','uuid','./hardware','forEach','role','countBy','findAll','License\x20key\x20value\x20not\x20found','getUuid','grayReason','lodash','users','format','user','defaults','pick','telephone','util','moment','machineUuid','User','gray','%s:%s:%s','admin','COUNT','message','Breaking\x20license','catch','telephones','../../mysqldb','parse','add','sequelize','decryptString','data1','2027-01-01T00:00:00.000Z','then','isEmpty','../../components/encryptor','count','data2'];(function(_0x433937,_0x4c1210){const _0x26336a=function(_0x1040d4){while(--_0x1040d4){_0x433937['push'](_0x433937['shift']());}};_0x26336a(++_0x4c1210);}(a845_0x4c12,0xad));const a845_0x2633=function(_0x433937,_0x4c1210){_0x433937=_0x433937-0x0;let _0x26336a=a845_0x4c12[_0x433937];return _0x26336a;};const _0x3d154=a845_0x2633;'use strict';const encryptor=require(_0x3d154('0x27')),util=require(_0x3d154('0x12')),_=require(_0x3d154('0xb')),moment=require(_0x3d154('0x13')),hardware=require(_0x3d154('0x3')),db=require(_0x3d154('0x1e'))['db'],{Op,fn,col}=require(_0x3d154('0x21')),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x3d154('0x24'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':'Demo\x20license','machineUuid':hardware[_0x3d154('0x9')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x3d154('0x24'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':_0x3d154('0x1b'),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x1040d4){return new Promise(function(_0x4e053e,_0x2c9421){const _0x5e80dc=a845_0x2633;return db['License']['findOne'](_[_0x5e80dc('0xf')](_0x1040d4,{'raw':!![],'where':{'id':0x1}}))[_0x5e80dc('0x25')](function(_0x503bf4){return checkLicense(_0x503bf4,null);})[_0x5e80dc('0x25')](function(_0x4b1241){_0x4e053e(_0x4b1241);return;})[_0x5e80dc('0x1c')](function(_0x375a10){_0x2c9421(_0x375a10);});});}function checkLicense(_0x3699b7,_0x37e106){const _0x18e16f=_0x3d154;if(!_0x3699b7)return demoLicense[_0x18e16f('0x2')]=_0x3699b7['data1'],demoLicense;try{const _0x4f0363=_0x37e106||_0x3699b7[_0x18e16f('0x2a')];if(_[_0x18e16f('0x26')](_0x4f0363))throw new Error(_0x18e16f('0x8'));const _0x5c2b97=_0x3699b7['data1'],_0x5d1719=_0x3699b7[_0x18e16f('0x29')],_0x4cf74e=_0x5c2b97['split']('-')[0x4],_0x165dd7=_0x5c2b97['split']('-')[0x0],_0x21b436=encryptor[_0x18e16f('0x22')](_0x4f0363,util['format'](_0x18e16f('0x17'),_0x4cf74e,_0x5c2b97,_0x165dd7)),_0xccb5bf=JSON[_0x18e16f('0x1f')](_0x21b436);_0xccb5bf[_0x18e16f('0x1')]=![],_0xccb5bf['uuid']=_0x5c2b97,_0xccb5bf[_0x18e16f('0x14')]=hardware['getUuid']();if(_0x5d1719){const _0x1e466c=encryptor[_0x18e16f('0x22')](_0x5d1719);_0xccb5bf[_0x18e16f('0x16')]=_0x1e466c,_0xccb5bf[_0x18e16f('0x0')]=moment(_0x1e466c)[_0x18e16f('0x20')](0x7,'days')[_0x18e16f('0xd')](),_0xccb5bf[_0x18e16f('0xa')]=_0xccb5bf[_0x18e16f('0x2')]!=_0xccb5bf[_0x18e16f('0x14')]?'changed':'disabled';}return _0xccb5bf;}catch(_0x36c7bc){return breakingLicense[_0x18e16f('0x2')]=_0x3699b7[_0x18e16f('0x23')],breakingLicense[_0x18e16f('0x1a')]=_0x36c7bc[_0x18e16f('0x1a')],breakingLicense;}}function getLimits(){return new Promise(function(_0x1f6a6e,_0x14c24f){const _0x295364=a845_0x2633;getLicense()[_0x295364('0x25')](function(_0x444f93){const _0x24f040=_0x295364;return db[_0x24f040('0x15')][_0x24f040('0x7')]({'attributes':[_0x24f040('0x5'),[fn(_0x24f040('0x19'),col(_0x24f040('0x5'))),_0x24f040('0x28')]],'group':_0x24f040('0x5'),'where':{'role':{[Op['or']]:[_0x24f040('0x18'),'user','telephone']}},'raw':!![]})[_0x24f040('0x25')](function(_0x59f9cf){const _0x5d3d9f=_0x24f040,_0x17dea7={'user':_0x444f93[_0x5d3d9f('0xc')]||0x0,'telephone':_0x444f93[_0x5d3d9f('0x1d')]||0x0};_0x59f9cf[_0x5d3d9f('0x4')](function(_0x27e254){const _0x545c55=_0x5d3d9f,_0x3e3ecf=_0x27e254['role']===_0x545c55('0x18')?'user':_0x27e254['role'];_0x17dea7[_0x3e3ecf]-=_0x27e254['count'];if(_0x17dea7[_0x3e3ecf]<0x0)_0x17dea7[_0x3e3ecf]=0x0;}),_0x1f6a6e(_0x17dea7);return;});})[_0x295364('0x1c')](function(_0x382498){_0x14c24f(_0x382498);});});}function checkUserLimits(_0x33733c){return new Promise(function(_0x277659,_0x2f2f9d){const _0xb57fad=a845_0x2633;getLimits()['then'](function(_0x13892b){const _0x183206=a845_0x2633,_0x461514=_[_0x183206('0x10')](_[_0x183206('0x6')](_0x33733c,_0x183206('0x5')),[_0x183206('0x18'),_0x183206('0xe'),_0x183206('0x11')]),_0x1b8f37=(_0x461514['admin']||0x0)+(_0x461514[_0x183206('0xe')]||0x0),_0x2c6cf0=_0x461514[_0x183206('0x11')]||0x0;if(_0x1b8f37>_0x13892b[_0x183206('0xe')])return _0x2f2f9d('License\x20limit\x20reached\x20for\x20users');if(_0x2c6cf0>_0x13892b[_0x183206('0x11')])return _0x2f2f9d('License\x20limit\x20reached\x20for\x20telephones');return _0x277659();})[_0xb57fad('0x1c')](function(_0x108758){_0x2f2f9d(_0x108758);});});}module['exports']={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file +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 diff --git a/server/config/local.env.js b/server/config/local.env.js index 0b3a12a..50513f0 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a846_0x1688=['http://localhost:9000','app-id','myappanuglar-secret','exports'];(function(_0x33acb3,_0x168896){var _0x37f219=function(_0x1501a6){while(--_0x1501a6){_0x33acb3['push'](_0x33acb3['shift']());}};_0x37f219(++_0x168896);}(a846_0x1688,0x130));var a846_0x37f2=function(_0x33acb3,_0x168896){_0x33acb3=_0x33acb3-0x0;var _0x37f219=a846_0x1688[_0x33acb3];return _0x37f219;};var _0x104b4a=a846_0x37f2;'use strict';module[_0x104b4a('0x3')]={'DOMAIN':_0x104b4a('0x0'),'SESSION_SECRET':_0x104b4a('0x2'),'GOOGLE_ID':_0x104b4a('0x1'),'GOOGLE_SECRET':'secret','DEBUG':''}; \ No newline at end of file +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 diff --git a/server/config/logger.js b/server/config/logger.js index 017da5e..67f4b5d 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a847_0x425f=['createLogger','%s-%s','Console','exports','format','assign','File','info','moment','%s-%s.log','transports','path','winston','\x20-\x20','util','error','./config.service','safe-stable-stringify','logPath','getConfigService','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x5bf10e,_0x425fee){const _0x50d503=function(_0x44d02d){while(--_0x44d02d){_0x5bf10e['push'](_0x5bf10e['shift']());}};_0x50d503(++_0x425fee);}(a847_0x425f,0x9c));const a847_0x50d5=function(_0x5bf10e,_0x425fee){_0x5bf10e=_0x5bf10e-0x0;let _0x50d503=a847_0x425f[_0x5bf10e];return _0x50d503;};const _0x4b35a5=a847_0x50d5;'use strict';const moment=require(_0x4b35a5('0x14')),winston=require(_0x4b35a5('0x3')),util=require(_0x4b35a5('0x5')),path=require(_0x4b35a5('0x2')),{MESSAGE}=require('triple-beam'),jsonStringify=require(_0x4b35a5('0x8')),cs=require(_0x4b35a5('0x7'))[_0x4b35a5('0xa')](),logPath=cs[_0x4b35a5('0x9')];function filename(_0x44d02d,_0x4f00dc){const _0x57239a=_0x4b35a5;return path['join'](logPath,util['format'](_0x57239a('0x0'),_0x44d02d,_0x4f00dc));}const MotionFormatter=_0x535ed1=>winston[_0x4b35a5('0x10')](_0x51178d=>{const _0x5062a7=_0x4b35a5,_0x24197c=moment()[_0x5062a7('0x10')](_0x5062a7('0xb')),{level:_0x4f514b,message:_0xdeac70}=_0x51178d,_0x5b99e7=jsonStringify(Object[_0x5062a7('0x11')]({},_0x51178d,{'level':undefined,'message':undefined,'splat':undefined}));return _0x51178d[MESSAGE]='['+_0x24197c+']\x20['+_0x4f514b['toUpperCase']()+']\x20'+_0x535ed1+_0x5062a7('0x4')+_0xdeac70+'\x20'+(_0x5b99e7==='{}'?'':_0x5b99e7),_0x51178d;})();module[_0x4b35a5('0xf')]=function(_0x4a620a){const _0x4af3a1=_0x4b35a5;return winston[_0x4af3a1('0xc')]({'transports':[new winston[(_0x4af3a1('0x1'))][(_0x4af3a1('0x12'))]({'name':util[_0x4af3a1('0x10')](_0x4af3a1('0xd'),_0x4a620a,_0x4af3a1('0x6')),'filename':filename(_0x4a620a,'error'),'level':_0x4af3a1('0x6'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4a620a)}),new winston['transports'][(_0x4af3a1('0x12'))]({'name':util[_0x4af3a1('0x10')](_0x4af3a1('0xd'),_0x4a620a,_0x4af3a1('0x13')),'filename':filename(_0x4a620a,'info'),'level':_0x4af3a1('0x13'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4a620a)}),new winston[(_0x4af3a1('0x1'))][(_0x4af3a1('0xe'))]({'level':cs['debugLevel'],'format':MotionFormatter(_0x4a620a)})]});}; \ No newline at end of file +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 diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index 996e0c3..ce245fd 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a848_0x76f3=['services/email/index.js','xdr','services/agi/index.js','services/routing/index.js','join','path','ami','services/xdr/index.js','services/ami/index.js','routing','appRoot'];(function(_0x2a0372,_0x76f317){const _0x3eb8f8=function(_0x36cb04){while(--_0x36cb04){_0x2a0372['push'](_0x2a0372['shift']());}};_0x3eb8f8(++_0x76f317);}(a848_0x76f3,0x16f));const a848_0x3eb8=function(_0x2a0372,_0x76f317){_0x2a0372=_0x2a0372-0x0;let _0x3eb8f8=a848_0x76f3[_0x2a0372];return _0x3eb8f8;};const _0xa60c4=a848_0x3eb8;'use strict';const path=require(_0xa60c4('0x1')),config={'apps':[{'wait_ready':!![],'name':'express','script':path[_0xa60c4('0x0')](global['appRoot'],'services/express/index.js')},{'name':_0xa60c4('0x2'),'script':path['join'](global['appRoot'],_0xa60c4('0x4'))},{'name':'agi','script':path['join'](global['appRoot'],_0xa60c4('0x9'))},{'name':'email','script':path[_0xa60c4('0x0')](global['appRoot'],_0xa60c4('0x7'))},{'name':_0xa60c4('0x5'),'script':path[_0xa60c4('0x0')](global[_0xa60c4('0x6')],_0xa60c4('0xa'))},{'name':_0xa60c4('0x8'),'script':path[_0xa60c4('0x0')](global['appRoot'],_0xa60c4('0x3'))}]};module['exports']=config; \ No newline at end of file +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 diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index 046e10a..8387785 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a849_0x2fa7=['nodeArgs','debug','list','saved','start','node_args','environment','stop','interpreter_args','restart','node','disconnect','interpreter','delete','--inspect','then','connect','Restarted','../config.service','Stopped','connected'];(function(_0x468ae8,_0x2fa741){const _0x28ff41=function(_0x4ef275){while(--_0x4ef275){_0x468ae8['push'](_0x468ae8['shift']());}};_0x28ff41(++_0x2fa741);}(a849_0x2fa7,0xf6));const a849_0x28ff=function(_0x468ae8,_0x2fa741){_0x468ae8=_0x468ae8-0x0;let _0x28ff41=a849_0x2fa7[_0x468ae8];return _0x28ff41;};const _0x3803c8=a849_0x28ff;'use strict';const pm2=require('pm2'),cs=require(_0x3803c8('0x3'))['getConfigService']();function connect(){return new Promise(function(_0x4ef275,_0x57f131){const _0x22044b=a849_0x28ff;return pm2[_0x22044b('0x1')](function(_0x173caa){const _0x2ba5cc=_0x22044b;_0x173caa?_0x57f131(_0x173caa):_0x4ef275(_0x2ba5cc('0x5'));});});}exports['start']=function(_0x1673bc){const _0x317b1c=_0x3803c8;return!(cs['isProduction']||cs['isTest']||cs[_0x317b1c('0xc')]==='vscode_debugger')&&(_0x1673bc[_0x317b1c('0x12')]=_0x317b1c('0x10'),_0x1673bc[_0x317b1c('0xe')]=[_0x317b1c('0x14')],_0x1673bc[_0x317b1c('0xb')]=[_0x317b1c('0x14')],_0x1673bc['interpreterArgs']=[_0x317b1c('0x14')],_0x1673bc[_0x317b1c('0x6')]=[_0x317b1c('0x14')]),connect()[_0x317b1c('0x0')](function(){return new Promise(function(_0x5eb8af,_0x49af19){const _0x23fb24=a849_0x28ff;return pm2[_0x23fb24('0xa')](_0x1673bc,function(_0x52658d,_0x2e3525){const _0x1963f9=_0x23fb24;_0x52658d?_0x49af19(_0x52658d):(pm2[_0x1963f9('0x11')](),_0x5eb8af(_0x2e3525));});});});},exports['stop']=function(_0xc15fcd){const _0x299d4c=_0x3803c8;return connect()[_0x299d4c('0x0')](function(){return new Promise(function(_0x3f68e3,_0x52de2f){const _0x574d8a=a849_0x28ff;return pm2[_0x574d8a('0xd')](_0xc15fcd,function(_0x58aa7b,_0x2e98bd){const _0x217d2e=_0x574d8a;_0x58aa7b?_0x52de2f(_0x58aa7b):(console[_0x217d2e('0x7')](_0x217d2e('0x4'),_0xc15fcd),_0x3f68e3(_0x2e98bd));});});});},exports[_0x3803c8('0xf')]=function(_0xdcc60d){return connect()['then'](function(){return new Promise(function(_0x139526,_0x30959a){const _0x3524aa=a849_0x28ff;return pm2[_0x3524aa('0xf')](_0xdcc60d,function(_0x1ae1f4,_0x4920ea){const _0x37d506=_0x3524aa;_0x1ae1f4?_0x30959a(_0x1ae1f4):(console[_0x37d506('0x7')](_0x37d506('0x2'),_0xdcc60d),_0x139526(_0x4920ea));});});});},exports[_0x3803c8('0x8')]=function(){const _0x26bf93=_0x3803c8;return connect()[_0x26bf93('0x0')](function(){return new Promise(function(_0x481a50,_0x2eebfb){const _0x4dd82a=a849_0x28ff;return pm2[_0x4dd82a('0x8')](function(_0x36069f,_0x1195bc){_0x36069f?_0x2eebfb(_0x36069f):_0x481a50(_0x1195bc);});});});},exports['describe']=function(_0x22f9f6){const _0x118b00=_0x3803c8;return connect()[_0x118b00('0x0')](function(){return new Promise(function(_0x3e439f,_0x5a1b86){return pm2['describe'](_0x22f9f6,function(_0x268562,_0x2bcce7){_0x268562?_0x5a1b86(_0x268562):_0x3e439f(_0x2bcce7);});});});},exports[_0x3803c8('0x13')]=function(_0x1c9114){return connect()['then'](function(){return new Promise(function(_0x76d188,_0x307941){const _0x575e9b=a849_0x28ff;return pm2[_0x575e9b('0x13')](_0x1c9114,function(_0xff63d0,_0xf329e2){const _0xd32e40=_0x575e9b;_0xff63d0?_0x307941(_0xff63d0):(console[_0xd32e40('0x7')]('Stopped\x20and\x20Deleted',_0x1c9114),_0x76d188(_0xf329e2));});});});},exports['dump']=function(){return connect()['then'](function(){return new Promise(function(_0x14cb07,_0x27d0c9){return pm2['dump'](function(_0x5957fd){const _0x4da485=a849_0x28ff;_0x5957fd?_0x27d0c9(_0x5957fd):_0x14cb07(_0x4da485('0x9'));});});});}; \ No newline at end of file +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 diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index 6ded214..c2a5770 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a850_0x20ed=['moment','then','catch','YYYY-MM-DD\x20HH:mm:ss','system','ChatInteraction','findAll','error','minutes','lodash','chatInteraction:update','start','format','../../rediscache','update','../../mysqldb','findOne','chatTimeout'];(function(_0x5eb632,_0x20ed20){const _0x2306e5=function(_0x34913a){while(--_0x34913a){_0x5eb632['push'](_0x5eb632['shift']());}};_0x2306e5(++_0x20ed20);}(a850_0x20ed,0x1a9));const a850_0x2306=function(_0x5eb632,_0x20ed20){_0x5eb632=_0x5eb632-0x0;let _0x2306e5=a850_0x20ed[_0x5eb632];return _0x2306e5;};const _0x361f60=a850_0x2306;'use strict';const _=require(_0x361f60('0x10')),moment=require(_0x361f60('0x7')),db=require(_0x361f60('0x4'))['db'],{getSocket}=require(_0x361f60('0x2')),io=getSocket();function closeInteractions(){const _0x4d0cce=_0x361f60;let _0x34913a=0x0,_0x19f765=[];return db['Setting'][_0x4d0cce('0x5')]({'raw':!![],'attributes':['id',_0x4d0cce('0x6')],'where':{'id':0x1}})[_0x4d0cce('0x8')](function(_0x550c89){const _0x1a8238=_0x4d0cce;return _0x34913a=_0x550c89[_0x1a8238('0x6')],_0x34913a?db[_0x1a8238('0xc')][_0x1a8238('0xd')]({'raw':!![],'attributes':['id','lastMsgAt'],'where':{'closed':![],'lastMsgAt':{'$lt':moment()['subtract'](_0x550c89[_0x1a8238('0x6')],_0x1a8238('0xf'))}}}):[];})[_0x4d0cce('0x8')](function(_0x3530ad){const _0x4b8b75=_0x4d0cce;_0x19f765=_0x3530ad;if(_0x34913a)return db[_0x4b8b75('0xc')][_0x4b8b75('0x3')]({'closeReason':_0x4b8b75('0xb'),'disposition':'timeout','closed':!![],'closedAt':moment()[_0x4b8b75('0x1')](_0x4b8b75('0xa'))},{'where':{'id':_['map'](_0x19f765||[],'id')}});})[_0x4d0cce('0x8')](function(){const _0x24adc0=_0x4d0cce;for(let _0x2aa02a=0x0;_0x2aa02a<_0x19f765['length'];_0x2aa02a++){io['emit'](_0x24adc0('0x11'),{'id':_0x19f765[_0x2aa02a]['id'],'closed':!![]});}})[_0x4d0cce('0x9')](function(_0x2a8933){const _0x1b4d10=_0x4d0cce;console[_0x1b4d10('0xe')](_0x2a8933);});}exports[_0x361f60('0x0')]=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file +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 diff --git a/server/config/schedule/index.js b/server/config/schedule/index.js index 526a9bd..f5e2ee4 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a851_0x1bba=['delete\x20cron','add','MailServerOut','../../files/reports','exists','run','request','run\x20job','catch','SendMail','subtractNumber\x20null\x20or\x20undefined','../../api/analyticDefaultReport/analyticDefaultReport.controller','toString','update\x20cron','existsSync','isNil','secure','util','startAt','\x22%s\x22\x20<%s>','savename','../../api/analyticCustomReport/analyticCustomReport.controller','http','exec\x20custom\x20report\x20id:%s','output','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','keys','attachments','resolve','subtractNumber','difference','port','endAt','cron','info','active','jobs','sendIfEmpty','no\x20report\x20id','keyBy','../logger','email','client','%s.%s','error\x20mail','host','error','stop','deleteJob','extname','pass','subtractUnit','CustomReportId','my\x20id','path','isBetween','then','name','bcc','runReport','../../mysqldb','scheduled','Smtp','schedule','stop\x20cron','Report\x20%s\x20last\x20%s\x20%s','length','index','MailAccount','format','Try\x20to\x20send\x20a\x20mail\x20to','DefaultReportId','join','intersection','YYYY-MM-DD\x20HH:mm:ss','update','user','text','message','service','moment','stringify','authentication'];(function(_0x262c89,_0x1bba13){const _0x215156=function(_0x5590f9){while(--_0x5590f9){_0x262c89['push'](_0x262c89['shift']());}};_0x215156(++_0x1bba13);}(a851_0x1bba,0x1b6));const a851_0x2151=function(_0x262c89,_0x1bba13){_0x262c89=_0x262c89-0x0;let _0x215156=a851_0x1bba[_0x262c89];return _0x215156;};const _0x3a9b8e=a851_0x2151;'use strict';const fs=require('fs'),util=require(_0x3a9b8e('0x4d')),path=require(_0x3a9b8e('0x1f')),_=require('lodash'),moment=require(_0x3a9b8e('0x39')),CronJobManager=require('cron-job-manager'),jayson=require('jayson/promise'),logger=require(_0x3a9b8e('0x11'))(_0x3a9b8e('0x28')),db=require(_0x3a9b8e('0x25'))['db'],analyticCustomReportController=require(_0x3a9b8e('0x51')),analyticDefaultReportController=require(_0x3a9b8e('0x47')),client=jayson[_0x3a9b8e('0x13')][_0x3a9b8e('0x52')]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x5590f9,_0x5a8cf1){return function(){const _0x556c12=a851_0x2151;logger[_0x556c12('0xb')](_0x556c12('0x2f'),_0x5590f9[_0x556c12('0x12')]);let _0x378ea7=!![];const _0x3173cd={'tls':{'rejectUnauthorized':![]}};_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x38')]?_0x3173cd[_0x556c12('0x38')]=_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x38')]:(_0x3173cd[_0x556c12('0x16')]=_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x16')],_0x3173cd[_0x556c12('0x8')]=_0x5590f9['MailAccount']['Smtp']['port'],_0x3173cd[_0x556c12('0x4c')]=_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x4c')]);_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x3b')]&&(_0x3173cd['auth']={'user':_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x35')],'pass':_0x5590f9['MailAccount'][_0x556c12('0x27')][_0x556c12('0x1b')]});const _0x590a8f={'account':_0x3173cd,'message':{'from':util[_0x556c12('0x2e')](_0x556c12('0x4f'),_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x22')],_0x5590f9['MailAccount'][_0x556c12('0x12')]||_0x5590f9[_0x556c12('0x2d')][_0x556c12('0x27')][_0x556c12('0x35')]),'to':_0x5590f9[_0x556c12('0x12')],'cc':_0x5590f9['cc'],'bcc':_0x5590f9[_0x556c12('0x23')],'subject':util[_0x556c12('0x2e')](_0x556c12('0x2a'),_0x5a8cf1[_0x556c12('0x22')],_0x5590f9[_0x556c12('0x6')],_0x5590f9['subtractUnit'])}},_0x357ea7=path['join'](__dirname,_0x556c12('0x3f')),_0x1ee470=_0x5a8cf1['savename'],_0x49fff7=util['format'](_0x556c12('0x14'),path['basename'](_0x5a8cf1[_0x556c12('0x50')],path[_0x556c12('0x1a')](_0x5a8cf1[_0x556c12('0x50')])),'zip'),_0xf9812c=path['join'](_0x357ea7,_0x1ee470),_0x1c7dba=path[_0x556c12('0x31')](_0x357ea7,_0x49fff7);if(fs[_0x556c12('0x4a')](_0xf9812c))_0x5a8cf1['status']='Sent',_0x590a8f['message'][_0x556c12('0x4')]=[{'filename':_0x1ee470,'path':_0xf9812c}],_0x590a8f[_0x556c12('0x37')]['text']=util['format']('Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a',JSON[_0x556c12('0x3a')](_0x5a8cf1,null,0x2));else fs[_0x556c12('0x4a')](_0x1c7dba)?(_0x5a8cf1['status']='Sent',_0x590a8f[_0x556c12('0x37')][_0x556c12('0x4')]=[{'filename':_0x49fff7,'path':_0x1c7dba}]):(_0x590a8f[_0x556c12('0x37')][_0x556c12('0x36')]=_0x556c12('0x2'),!_0x5590f9[_0x556c12('0xe')]&&(_0x378ea7=![],logger[_0x556c12('0xb')]('empty\x20file,\x20email\x20not\x20sent')));if(_0x378ea7)return client[_0x556c12('0x42')](_0x556c12('0x45'),_0x590a8f)[_0x556c12('0x21')](function(_0x37bd40){const _0x2f902c=_0x556c12;if(_0x37bd40['error'])return logger[_0x2f902c('0x17')](_0x2f902c('0x15'),JSON[_0x2f902c('0x3a')](_0x37bd40));return logger[_0x2f902c('0xb')]('email\x20sent');})[_0x556c12('0x44')](function(_0x4d6615){const _0x4becc9=_0x556c12;return logger['error'](_0x4becc9('0x15'),JSON[_0x4becc9('0x3a')](_0x4d6615));});};}function handleError(){return function(_0x2e5b1a){const _0x170f42=a851_0x2151;return logger[_0x170f42('0x17')](JSON['stringify'](_0x2e5b1a));};}function handleResult(_0x23f68d){return function(_0x137d2f){const _0x36b43c=a851_0x2151;logger[_0x36b43c('0xb')]('data',JSON[_0x36b43c('0x3a')](_0x137d2f)),_0x23f68d['MailAccount']&&_0x23f68d[_0x36b43c('0x2d')][_0x36b43c('0x27')]&&!_['isNil'](_0x23f68d[_0x36b43c('0x12')])&&setTimeout(handleSendEmail(_0x23f68d,_0x137d2f),0x3c*0x3e8);};}function handleJob(_0x327bbb){return function(){const _0x51558e=a851_0x2151;try{if(_[_0x51558e('0x4b')](_0x327bbb[_0x51558e('0x6')]))return logger['info'](_0x51558e('0x46'));if(_['isNil'](_0x327bbb[_0x51558e('0x1c')]))return logger[_0x51558e('0xb')]('subtractUnit\x20null\x20or\x20undefined');const _0x13a5cb={'startDate':moment()['subtract'](_0x327bbb['subtractNumber'],_0x327bbb['subtractUnit'])[_0x51558e('0x2e')](_0x51558e('0x33')),'endDate':moment()[_0x51558e('0x2e')]('YYYY-MM-DD\x20HH:mm:ss'),'type':_0x51558e('0x26'),'output':_0x327bbb[_0x51558e('0x1')],'name':_0x327bbb[_0x51558e('0x22')]};if(!_[_0x51558e('0x4b')](_0x327bbb[_0x51558e('0x30')]))return logger[_0x51558e('0xb')]('exec\x20defaul\x20report\x20id:%s',_0x327bbb[_0x51558e('0x30')]),analyticDefaultReportController['runReport']({'id':_0x327bbb['DefaultReportId']},_0x13a5cb)[_0x51558e('0x21')](handleResult(_0x327bbb))['catch'](handleError());if(!_['isNil'](_0x327bbb[_0x51558e('0x1d')]))return logger[_0x51558e('0xb')](_0x51558e('0x0'),_0x327bbb[_0x51558e('0x1d')]),analyticCustomReportController[_0x51558e('0x24')]({'id':_0x327bbb[_0x51558e('0x1d')]},_0x13a5cb)[_0x51558e('0x21')](handleResult(_0x327bbb))['catch'](handleError());}catch(_0x1a3cba){logger[_0x51558e('0x17')](JSON[_0x51558e('0x3a')](_0x1a3cba));}return logger['info'](_0x51558e('0xf'));};}function getJobs(_0x246bab){const _0x190e5c=_0x3a9b8e,_0x4df521={};return _0x246bab&&(_0x4df521['id']=_0x246bab),db['Schedule']['findAll']({'where':_0x4df521,'include':[{'model':db[_0x190e5c('0x2d')],'attributes':['id',_0x190e5c('0x22'),'email'],'include':[{'model':db[_0x190e5c('0x3e')],'as':_0x190e5c('0x27')}]}]})[_0x190e5c('0x21')](function(_0x59f9ad){const _0x215d7a=_0x190e5c,_0x57bb55=_[_0x215d7a('0x3')](manager[_0x215d7a('0xd')]),_0x4dafa0=_['map'](_0x59f9ad,function(_0x3d472f){return _0x3d472f['id']['toString']();}),_0x5e5758=_[_0x215d7a('0x10')](_0x59f9ad,function(_0x3b30a1){return _0x3b30a1['id']['toString']();}),_0x1a1cc8=_0x246bab?_0x4dafa0:_[_0x215d7a('0x7')](_0x4dafa0,_0x57bb55),_0x445769=_[_0x215d7a('0x32')](_0x4dafa0,_0x57bb55),_0x27ec26=_['difference'](_0x57bb55,_0x4dafa0);let _0x4f0864,_0x225486;for(_0x4f0864=0x0;_0x4f0864<_0x27ec26[_0x215d7a('0x2b')]&&!_0x246bab;_0x4f0864+=0x1){_0x225486=_0x27ec26[_0x4f0864][_0x215d7a('0x48')](),manager[_0x215d7a('0x40')](_0x225486)&&(manager[_0x215d7a('0x18')](_0x225486),manager[_0x215d7a('0x19')](_0x225486),logger[_0x215d7a('0xb')](_0x215d7a('0x3c'),_0x225486));}logger[_0x215d7a('0xb')]('toRun',JSON[_0x215d7a('0x3a')](_0x1a1cc8));for(_0x4f0864=0x0;_0x4f0864<_0x1a1cc8[_0x215d7a('0x2b')];_0x4f0864+=0x1){_0x225486=_0x1a1cc8[_0x4f0864]['toString'](),logger[_0x215d7a('0xb')](_0x215d7a('0x2c'),_0x225486);if(_0x246bab)logger[_0x215d7a('0xb')](_0x215d7a('0x1e'),_0x246bab),logger['info'](JSON['stringify'](_0x5e5758[_0x225486])),Promise[_0x215d7a('0x5')]()[_0x215d7a('0x21')](handleJob(_0x5e5758[_0x225486])),logger[_0x215d7a('0xb')](_0x215d7a('0x43'),_0x5e5758[_0x225486]['name'],_0x5e5758[_0x225486]['cron']);else{if(_0x5e5758[_0x225486]['cron']&&_0x5e5758[_0x225486][_0x215d7a('0xc')]&&moment()[_0x215d7a('0x20')](_0x5e5758[_0x225486]['startAt'],_0x5e5758[_0x225486][_0x215d7a('0x9')]))manager[_0x215d7a('0x3d')](_0x225486,_0x5e5758[_0x225486]['cron'],handleJob(_0x5e5758[_0x225486])),manager['start'](_0x225486),logger[_0x215d7a('0xb')]('add\x20cron',_0x5e5758[_0x225486][_0x215d7a('0x22')],_0x5e5758[_0x225486][_0x215d7a('0xa')]);else manager['exists'](_0x225486)&&(manager[_0x215d7a('0x18')](_0x225486),manager['deleteJob'](_0x225486),logger[_0x215d7a('0xb')](_0x215d7a('0x29'),_0x5e5758[_0x225486][_0x215d7a('0x22')],_0x5e5758[_0x225486]['cron']));}}for(_0x4f0864=0x0,_0x225486;_0x4f0864<_0x445769[_0x215d7a('0x2b')]&&!_0x246bab;_0x4f0864+=0x1){_0x225486=_0x445769[_0x4f0864][_0x215d7a('0x48')](),manager[_0x215d7a('0x40')](_0x225486)&&(_0x5e5758[_0x225486][_0x215d7a('0xa')]&&_0x5e5758[_0x225486]['active']&&moment()[_0x215d7a('0x20')](_0x5e5758[_0x225486][_0x215d7a('0x4e')],_0x5e5758[_0x225486][_0x215d7a('0x9')])?(manager[_0x215d7a('0x34')](_0x225486,_0x5e5758[_0x225486][_0x215d7a('0xa')],handleJob(_0x5e5758[_0x225486])),logger['info'](_0x215d7a('0x49'),_0x5e5758[_0x225486][_0x215d7a('0x22')],_0x5e5758[_0x225486][_0x215d7a('0xa')])):(manager[_0x215d7a('0x18')](_0x225486),manager[_0x215d7a('0x19')](_0x225486),logger[_0x215d7a('0xb')](_0x215d7a('0x29'),_0x5e5758[_0x225486][_0x215d7a('0x22')],_0x5e5758[_0x225486]['cron'])));}})[_0x190e5c('0x44')](function(_0x5a7f2c){const _0xf4cae=_0x190e5c;logger[_0xf4cae('0x17')](JSON['stringify'](_0x5a7f2c));});}exports[_0x3a9b8e('0x41')]=function(_0x25e27d){return getJobs(_0x25e27d);},exports['start']=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +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 diff --git a/server/config/schedule/transcribe.js b/server/config/schedule/transcribe.js index 49b9782..f142b3e 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a852_0x2a25=['inspect','language','bucket','sequelize','No\x20transcribe\x20job\x20to\x20check','substring','CloudProvider','sentiment','Transcript\x20not\x20available','Transcript','Positive','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','Mixed','COMPLETED','Neutral','Negative','name','Sentiment\x20Analysis\x20not\x20requested','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','transcribeRegion','Cloud\x20Provider\x20not\x20configured','TranscribeService','length','Cloud\x20Provider\x20not\x20available','data1','then','transcripts','tempSentiment','SentimentScore','data2','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','results','FailureReason','fileText','TranscriptionJobStatus','findAll','Transcribe\x20not\x20configured','transcribeAccountId','update','Sentiment','push','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','[RECORDING:%d]\x20Get\x20transcript','aws-sdk','transcribeName','getTranscriptionJob','info','all','sentimentRegion','TranscriptFileUri','TranscriptionJob','SequelizeValidationError','transcribe','format','error','Setting','../../mysqldb','catch','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','Sentiment\x20Analysis\x20not\x20configured','findOne','IN_PROGRESS','VoiceRecording','Comprehend','FAILED','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','sentimentAccountId','forEach','../../config/logger'];(function(_0x4eef9a,_0x2a253c){const _0xc43c77=function(_0x523af1){while(--_0x523af1){_0x4eef9a['push'](_0x4eef9a['shift']());}};_0xc43c77(++_0x2a253c);}(a852_0x2a25,0x1c3));const a852_0xc43c=function(_0x4eef9a,_0x2a253c){_0x4eef9a=_0x4eef9a-0x0;let _0xc43c77=a852_0x2a25[_0x4eef9a];return _0xc43c77;};const _0xa4e543=a852_0xc43c,AWS=require(_0xa4e543('0xd')),rp=require('request-promise-native'),util=require('util'),db=require(_0xa4e543('0x1a'))['db'],{ValidationError}=require(_0xa4e543('0x2a')),logger=require(_0xa4e543('0x26'))(_0xa4e543('0x16'));function getTranscriptionJob(_0x523af1,_0x4ac09a,_0x11b87f,_0x34d323){return new Promise(function(_0x4416cd,_0x2d75ad){const _0x4f942e=a852_0xc43c,_0x22736b=new AWS[(_0x4f942e('0x3d'))]({'accessKeyId':_0x4ac09a,'secretAccessKey':_0x523af1,'region':_0x11b87f});_0x22736b[_0x4f942e('0xf')]({'TranscriptionJobName':_0x34d323},function(_0x280eb7,_0x588c62){return _0x280eb7?_0x2d75ad(_0x280eb7):_0x4416cd(_0x588c62);});});}function sentiment(_0x4eea87,_0x368e88,_0x5ad942,_0x2fc22b,_0x5004f2){return new Promise(function(_0x4e1fea,_0xe2e77d){const _0x369f8b=a852_0xc43c,_0x3d98ef=new AWS[(_0x369f8b('0x21'))]({'accessKeyId':_0x368e88,'secretAccessKey':_0x4eea87,'region':_0x5ad942});_0x3d98ef['detectSentiment']({'Text':_0x2fc22b,'LanguageCode':_0x5004f2[_0x369f8b('0x2c')](0x0,0x2)},function(_0x134788,_0x33218a){return _0x134788?_0xe2e77d(_0x134788):_0x4e1fea(_0x33218a);});});}function checkTranscribeJob(_0x34376c,_0xfea80b,_0x405e6e){let _0xc8e578;return new Promise(function(_0xef0c8f){const _0x53606c=a852_0xc43c;return logger['info'](util[_0x53606c('0x17')](_0x53606c('0x32'),_0x34376c['id'],_0x34376c[_0x53606c('0xe')])),getTranscriptionJob(_0x405e6e[_0x53606c('0x40')],_0x405e6e[_0x53606c('0x45')],_0xfea80b['transcribeRegion'],_0x34376c['transcribeName'])[_0x53606c('0x41')](function(_0xc2bf17){const _0x50f07f=_0x53606c;logger['info'](util[_0x50f07f('0x17')](_0x50f07f('0x23'),_0x34376c['id'],_0x34376c['transcribeName'],_0xc2bf17['TranscriptionJob']['TranscriptionJobStatus']));if(!_0x34376c[_0x50f07f('0x3')])switch(_0xc2bf17[_0x50f07f('0x14')][_0x50f07f('0x4')]){case _0x50f07f('0x34'):{const _0x593b11={'transcribeStatus':_0xc2bf17['TranscriptionJob'][_0x50f07f('0x4')],'fileUri':_0xc2bf17[_0x50f07f('0x14')]['Transcript'][_0x50f07f('0x13')]};return logger[_0x50f07f('0x10')](util['format'](_0x50f07f('0xc'),_0x34376c['id'])),rp({'uri':_0xc2bf17[_0x50f07f('0x14')][_0x50f07f('0x30')][_0x50f07f('0x13')],'json':!![]})[_0x50f07f('0x41')](function(_0x3f13ed){const _0x2662bb=_0x50f07f;logger['info'](util[_0x2662bb('0x17')]('[RECORDING:%d]\x20Transcript\x20downloaded',_0x34376c['id']));if(_0x3f13ed&&_0x3f13ed['results']&&_0x3f13ed['results']['transcripts']&&_0x3f13ed[_0x2662bb('0x1')][_0x2662bb('0x42')]['length']){_0x593b11[_0x2662bb('0x3')]='';for(let _0x19fa03=0x0;_0x19fa03<_0x3f13ed['results'][_0x2662bb('0x42')][_0x2662bb('0x3e')];_0x19fa03++){_0x593b11[_0x2662bb('0x3')]+=_0x3f13ed['results']['transcripts'][_0x19fa03]['transcript']+'';}}return _0x34376c[_0x2662bb('0x8')](_0x593b11);})['then'](function(){const _0x41e428=_0x50f07f;logger['info'](util[_0x41e428('0x17')](_0x41e428('0x1c'),_0x34376c['id']));if(!_0x34376c[_0x41e428('0x43')])throw new ValidationError(_0x41e428('0x38'));if(!_0xfea80b['sentiment']||!_0xfea80b[_0x41e428('0x24')]||!_0xfea80b[_0x41e428('0x12')]||!_0xfea80b[_0x41e428('0x28')]||!_0xfea80b[_0x41e428('0x29')])throw new ValidationError('Sentiment\x20Analysis\x20not\x20configured');if(!_0x593b11[_0x41e428('0x3')])throw new Error('Transcript\x20not\x20available');return _0xfea80b[_0x41e428('0x24')]===_0x405e6e['id']?_0x405e6e:db[_0x41e428('0x2d')][_0x41e428('0x1e')]({'where':{'id':_0xfea80b[_0x41e428('0x24')]}});})[_0x50f07f('0x41')](function(_0x5641e1){const _0x4c6b09=_0x50f07f;if(!_0x5641e1)throw new ValidationError(_0x4c6b09('0x3f'));if(!_0x5641e1[_0x4c6b09('0x40')]||!_0x5641e1[_0x4c6b09('0x45')])throw new ValidationError(_0x4c6b09('0x3c'));return _0xc8e578=_0x5641e1,logger[_0x4c6b09('0x10')](util[_0x4c6b09('0x17')](_0x4c6b09('0x3a'),_0x34376c['id'])),sentiment(_0xc8e578['data1'],_0xc8e578['data2'],_0xfea80b['sentimentRegion'],_0x593b11[_0x4c6b09('0x3')],_0xfea80b[_0x4c6b09('0x28')]);})[_0x50f07f('0x41')](function(_0x435f74){const _0x48bb69=_0x50f07f;return logger[_0x48bb69('0x10')](util['format']('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x34376c['id'])),_0x34376c[_0x48bb69('0x8')]({'sentiment':_0x435f74[_0x48bb69('0x9')],'sPositive':_0x435f74['SentimentScore'][_0x48bb69('0x31')],'sNegative':_0x435f74['SentimentScore']['Negative'],'sMixed':_0x435f74['SentimentScore'][_0x48bb69('0x33')],'sNeutral':_0x435f74['SentimentScore']['Neutral']});})[_0x50f07f('0x41')](function(){const _0x2c0dd7=_0x50f07f;logger['info'](util[_0x2c0dd7('0x17')](_0x2c0dd7('0x1c'),_0x34376c['id'])),_0xef0c8f();});}case _0x50f07f('0x22'):return _0x34376c[_0x50f07f('0x8')]({'transcribeStatus':_0x50f07f('0x22'),'failureReason':_0xc2bf17[_0x50f07f('0x14')][_0x50f07f('0x2')]})[_0x50f07f('0x41')](function(){const _0x442f55=_0x50f07f;logger[_0x442f55('0x10')](util[_0x442f55('0x17')](_0x442f55('0x1c'),_0x34376c['id'])),_0xef0c8f();});default:logger['info'](util[_0x50f07f('0x17')](_0x50f07f('0x0'),_0x34376c['id']));break;}else return Promise['resolve']()[_0x50f07f('0x41')](function(){const _0x400376=_0x50f07f;if(!_0x34376c['tempSentiment'])throw new ValidationError(_0x400376('0x38'));if(!_0xfea80b[_0x400376('0x2e')]||!_0xfea80b[_0x400376('0x24')]||!_0xfea80b['sentimentRegion']||!_0xfea80b['language']||!_0xfea80b[_0x400376('0x29')])throw new ValidationError(_0x400376('0x1d'));if(!_0x34376c[_0x400376('0x3')])throw new Error(_0x400376('0x2f'));return _0xfea80b['sentimentAccountId']===_0x405e6e['id']?_0x405e6e:db[_0x400376('0x2d')][_0x400376('0x1e')]({'where':{'id':_0xfea80b[_0x400376('0x24')]}});})[_0x50f07f('0x41')](function(_0x35966f){const _0x432c96=_0x50f07f;if(!_0x35966f)throw new ValidationError(_0x432c96('0x3f'));if(!_0x35966f['data1']||!_0x35966f[_0x432c96('0x45')])throw new ValidationError(_0x432c96('0x3c'));return _0xc8e578=_0x35966f,logger[_0x432c96('0x10')](util['format'](_0x432c96('0x3a'),_0x34376c['id'])),sentiment(_0xc8e578['data1'],_0xc8e578[_0x432c96('0x45')],_0xfea80b[_0x432c96('0x12')],_0x34376c[_0x432c96('0x3')],_0xfea80b[_0x432c96('0x28')]);})[_0x50f07f('0x41')](function(_0x5d06d2){const _0x219c59=_0x50f07f;return logger[_0x219c59('0x10')](util[_0x219c59('0x17')](_0x219c59('0x39'),_0x34376c['id'])),_0x34376c['update']({'sentiment':_0x5d06d2[_0x219c59('0x9')],'sPositive':_0x5d06d2[_0x219c59('0x44')]['Positive'],'sNegative':_0x5d06d2[_0x219c59('0x44')][_0x219c59('0x36')],'sMixed':_0x5d06d2['SentimentScore'][_0x219c59('0x33')],'sNeutral':_0x5d06d2[_0x219c59('0x44')][_0x219c59('0x35')],'transcribeStatus':_0x219c59('0x34')});})[_0x50f07f('0x41')](function(){const _0x411c44=_0x50f07f;logger[_0x411c44('0x10')](util[_0x411c44('0x17')](_0x411c44('0x1c'),_0x34376c['id'])),_0xef0c8f();});})[_0x53606c('0x1b')](function(_0xe91814){const _0x1fcac6=_0x53606c;_0xe91814&&((!_0xe91814[_0x1fcac6('0x37')]||_0xe91814[_0x1fcac6('0x37')]!==_0x1fcac6('0x15'))&&logger[_0x1fcac6('0x18')](util[_0x1fcac6('0x17')](_0x1fcac6('0xb'),_0x34376c['id']),util[_0x1fcac6('0x27')](_0xe91814,{'showHidden':![],'depth':null}))),_0xef0c8f();});});}function checkTranscribe(){const _0x356983=_0xa4e543;let _0x4d7d18,_0x577e1c,_0x1ed2b3;return db[_0x356983('0x20')][_0x356983('0x5')]({'where':{'transcribeStatus':_0x356983('0x1f')}})['then'](function(_0x9cbd84){const _0x3b8553=_0x356983;if(!_0x9cbd84||!_0x9cbd84[_0x3b8553('0x3e')])throw new ValidationError(_0x3b8553('0x2b'));return _0x4d7d18=_0x9cbd84,db[_0x3b8553('0x19')][_0x3b8553('0x1e')]({'where':{'id':0x1}});})[_0x356983('0x41')](function(_0x5d4962){const _0x5da8a8=_0x356983;if(!_0x5d4962)throw new ValidationError('Settings\x20not\x20available');_0x577e1c=_0x5d4962;if(!_0x577e1c['transcribe']||!_0x577e1c[_0x5da8a8('0x7')]||!_0x577e1c[_0x5da8a8('0x3b')]||!_0x577e1c[_0x5da8a8('0x28')]||!_0x577e1c[_0x5da8a8('0x29')])throw new ValidationError(_0x5da8a8('0x6'));return db['CloudProvider'][_0x5da8a8('0x1e')]({'where':{'id':_0x577e1c[_0x5da8a8('0x7')]}});})[_0x356983('0x41')](function(_0x4b62b9){const _0x4eb2a8=_0x356983;if(!_0x4b62b9)throw new ValidationError(_0x4eb2a8('0x3f'));if(!_0x4b62b9[_0x4eb2a8('0x40')]||!_0x4b62b9[_0x4eb2a8('0x45')])throw new ValidationError(_0x4eb2a8('0x3c'));_0x1ed2b3=_0x4b62b9;const _0x367464=[];return _0x4d7d18[_0x4eb2a8('0x25')](function(_0x66f737){const _0x41847d=_0x4eb2a8;_0x367464[_0x41847d('0xa')](checkTranscribeJob(_0x66f737,_0x577e1c,_0x1ed2b3));}),Promise[_0x4eb2a8('0x11')](_0x367464);})[_0x356983('0x1b')](function(_0x5439c3){const _0x325e00=_0x356983;_0x5439c3&&((!_0x5439c3[_0x325e00('0x37')]||_0x5439c3[_0x325e00('0x37')]!==_0x325e00('0x15'))&&logger[_0x325e00('0x18')](util[_0x325e00('0x27')](_0x5439c3,{'showHidden':![],'depth':null})));});}exports['start']=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +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 diff --git a/server/config/seedContact.js b/server/config/seedContact.js index 812b65b..96b0c3d 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a853_0x3fd0=['then','now','contacts2','contacts1','finished\x20populating','hopper1','Biondo','hopper2','Innocenzo','CmHopper','catch','@xcally.com','destroy','innocenzo.biondo','CmContact','push','bulkCreate','log'];(function(_0x4e0b5d,_0x3fd094){const _0x297e6f=function(_0xf825a2){while(--_0xf825a2){_0x4e0b5d['push'](_0x4e0b5d['shift']());}};_0x297e6f(++_0x3fd094);}(a853_0x3fd0,0x84));const a853_0x297e=function(_0x4e0b5d,_0x3fd094){_0x4e0b5d=_0x4e0b5d-0x0;let _0x297e6f=a853_0x3fd0[_0x4e0b5d];return _0x297e6f;};const _0x1f3b81=a853_0x297e;'use strict';const db=require('../mysqldb')['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x1f3b81('0x9')]({'id':i,'firstName':_0x1f3b81('0x2')+i,'lastName':_0x1f3b81('0x0')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x1f3b81('0x5')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x1f3b81('0x9')]({'id':i,'active':![],'scheduledat':Date[_0x1f3b81('0xd')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x1f3b81('0xd')](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x1f3b81('0x9')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x1f3b81('0x0')+i,'phone':0xf879fb460+i,'email':_0x1f3b81('0x7')+i+'@xcally.com'});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x1f3b81('0x9')]({'id':i,'active':![],'scheduledat':Date[_0x1f3b81('0xd')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x1f3b81('0xd')](),'updatedAt':Date['now']()});}db[_0x1f3b81('0x8')][_0x1f3b81('0x6')]({'where':{}})[_0x1f3b81('0xc')](function(){const _0x3c8410=_0x1f3b81;return db[_0x3c8410('0x8')][_0x3c8410('0xa')](contacts);})['then'](function(){const _0x5158c3=_0x1f3b81;return console[_0x5158c3('0xb')](_0x5158c3('0x10'),_0x5158c3('0xf')),db['CmHopper']['destroy']({'where':{}});})[_0x1f3b81('0xc')](function(){const _0x380115=_0x1f3b81;return db['CmHopper'][_0x380115('0xa')](hopper);})[_0x1f3b81('0xc')](function(){const _0x15bd13=_0x1f3b81;return console[_0x15bd13('0xb')]('finished\x20populating',_0x15bd13('0x11')),db[_0x15bd13('0x8')][_0x15bd13('0xa')](contacts2);})[_0x1f3b81('0xc')](function(){const _0xdb1b5e=_0x1f3b81;return console[_0xdb1b5e('0xb')](_0xdb1b5e('0x10'),_0xdb1b5e('0xe')),db[_0xdb1b5e('0x3')][_0xdb1b5e('0xa')](hopper2);})[_0x1f3b81('0xc')](function(){const _0x37f197=_0x1f3b81;console['log'](_0x37f197('0x10'),_0x37f197('0x1'));})[_0x1f3b81('0x4')](function(_0xf825a2){console['log'](_0xf825a2);}); \ No newline at end of file +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 diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index a0b9e30..5b9353a 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a854_0x1dfe=['ReportId','Analytic\x20Default\x20Reports\x20have\x20been\x20created','info','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','destroy','Can\x27t\x20create\x20Analytic\x20Default\x20Report','error','bulkCreate','../../mysqldb','DefaultReportId','message','catch','createDefault','then','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','createCustom','motion','AnalyticFieldReport','CustomReportId','default','AnalyticDefaultReport','length','fields'];(function(_0x585142,_0x1dfe2a){const _0x329ec7=function(_0x1bf5c0){while(--_0x1bf5c0){_0x585142['push'](_0x585142['shift']());}};_0x329ec7(++_0x1dfe2a);}(a854_0x1dfe,0xfc));const a854_0x329e=function(_0x585142,_0x1dfe2a){_0x585142=_0x585142-0x0;let _0x329ec7=a854_0x1dfe[_0x585142];return _0x329ec7;};const _0x55bfde=a854_0x329e;'use strict';const db=require(_0x55bfde('0x9'))['db'],logger=require('../logger')('app'),report=require('./report');exports[_0x55bfde('0xd')]=function(){const _0x3284ba=_0x55bfde;return db['AnalyticDefaultReport'][_0x3284ba('0x5')]({'where':{}})[_0x3284ba('0xe')](function(){const _0x53f57e=_0x3284ba;return db[_0x53f57e('0x15')][_0x53f57e('0x8')](report[_0x53f57e('0x14')](_0x53f57e('0x11')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x3284ba('0xe')](function(_0x1bf5c0){const _0x34b191=_0x3284ba,_0x2873ba=report['fields']();for(let _0x5a0605=0x0;_0x5a0605<_0x1bf5c0[_0x34b191('0x16')];_0x5a0605+=0x1){if(_0x2873ba[_0x1bf5c0[_0x5a0605]['id']]){for(let _0x512676=0x0;_0x512676<_0x2873ba[_0x1bf5c0[_0x5a0605]['id']][_0x34b191('0x16')];_0x512676+=0x1){_0x2873ba[_0x1bf5c0[_0x5a0605]['id']][_0x512676][_0x34b191('0xa')]=_0x2873ba[_0x1bf5c0[_0x5a0605]['id']][_0x512676][_0x34b191('0x1')],delete _0x2873ba[_0x1bf5c0[_0x5a0605]['id']][_0x512676][_0x34b191('0x1')];}db[_0x34b191('0x12')][_0x34b191('0x8')](_0x2873ba[_0x1bf5c0[_0x5a0605]['id']]);}}})['then'](function(){const _0x2df137=_0x3284ba;logger[_0x2df137('0x3')](_0x2df137('0x2'));})['catch'](function(_0x3d3bdb){const _0x41cb10=_0x3284ba;logger[_0x41cb10('0x7')](_0x41cb10('0x6'),_0x3d3bdb[_0x41cb10('0xb')]);});},exports[_0x55bfde('0x10')]=function(){const _0x2f0769=_0x55bfde;return db['AnalyticCustomReport']['bulkCreate'](report['default']('custom'),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2f0769('0xe')](function(_0x133dea){const _0x259099=_0x2f0769,_0x4b0475=report[_0x259099('0x0')]();for(let _0x2335a5=0x0;_0x2335a5<_0x133dea[_0x259099('0x16')];_0x2335a5+=0x1){if(_0x4b0475[_0x133dea[_0x2335a5]['id']]){for(let _0xb540d4=0x0;_0xb540d4<_0x4b0475[_0x133dea[_0x2335a5]['id']][_0x259099('0x16')];_0xb540d4+=0x1){_0x4b0475[_0x133dea[_0x2335a5]['id']][_0xb540d4][_0x259099('0x13')]=_0x4b0475[_0x133dea[_0x2335a5]['id']][_0xb540d4][_0x259099('0x1')],delete _0x4b0475[_0x133dea[_0x2335a5]['id']][_0xb540d4][_0x259099('0x1')];}db[_0x259099('0x12')][_0x259099('0x8')](_0x4b0475[_0x133dea[_0x2335a5]['id']]);}}})['then'](function(){const _0x48d2bb=_0x2f0769;logger[_0x48d2bb('0x3')](_0x48d2bb('0xf'));})[_0x2f0769('0xc')](function(){const _0x5a6fd2=_0x2f0769;logger[_0x5a6fd2('0x7')](_0x5a6fd2('0x4'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index 83925ba..20bed6f 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a855_0x21bf=['info','../../mysqldb','custom','AnalyticTreeReport','catch','Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','createDefault','then','../logger','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','update','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','createCustom','motion','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','error','stringify','bulkCreate','findOrCreate','./tree'];(function(_0x17ecf3,_0x21bfa9){const _0x6e4c26=function(_0x1cd2db){while(--_0x1cd2db){_0x17ecf3['push'](_0x17ecf3['shift']());}};_0x6e4c26(++_0x21bfa9);}(a855_0x21bf,0x139));const a855_0x6e4c=function(_0x17ecf3,_0x21bfa9){_0x17ecf3=_0x17ecf3-0x0;let _0x6e4c26=a855_0x21bf[_0x17ecf3];return _0x6e4c26;};const _0x129e7c=a855_0x6e4c;'use strict';const db=require(_0x129e7c('0x8'))['db'],logger=require(_0x129e7c('0xf'))('app'),tree=require(_0x129e7c('0x6'));exports[_0x129e7c('0xd')]=function(){const _0x1ab5ae=_0x129e7c;return db['AnalyticTreeReport'][_0x1ab5ae('0x5')]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON['stringify'](tree['motion'])}})[_0x1ab5ae('0xe')](function([_0x1cd2db,_0x3bb116]){const _0x127864=_0x1ab5ae;if(!_0x3bb116)return _0x1cd2db[_0x127864('0x11')]({'tree':JSON[_0x127864('0x3')](tree[_0x127864('0x0')])});return _0x1cd2db;})[_0x1ab5ae('0xe')](function(){const _0x19aa79=_0x1ab5ae;logger[_0x19aa79('0x7')](_0x19aa79('0xc'));})['catch'](function(){const _0x518dcd=_0x1ab5ae;logger[_0x518dcd('0x2')](_0x518dcd('0x12'));});},exports[_0x129e7c('0x13')]=function(){const _0x536ab8=_0x129e7c;return db[_0x536ab8('0xa')][_0x536ab8('0x4')]([{'id':0x2,'tree':JSON[_0x536ab8('0x3')](tree[_0x536ab8('0x9')])}],{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x22cd44=_0x536ab8;logger['info'](_0x22cd44('0x1'));})[_0x536ab8('0xb')](function(){const _0x2655ec=_0x536ab8;logger['error'](_0x2655ec('0x10'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index 80f2245..b49d04f 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a856_0x5c40=['catch','OnlyListen','info','spy2','create','VoiceChanSpy','Listen&TalkOne','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','../../mysqldb','spy4','Listen&TalkBoth','spy1','OnlyListenBoth','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','app','ChanSpy\x20have\x20been\x20created','../logger','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','then'];(function(_0x439599,_0x5c40c7){const _0x43686e=function(_0x11c3b5){while(--_0x11c3b5){_0x439599['push'](_0x439599['shift']());}};_0x43686e(++_0x5c40c7);}(a856_0x5c40,0x1b9));const a856_0x4368=function(_0x439599,_0x5c40c7){_0x439599=_0x439599-0x0;let _0x43686e=a856_0x5c40[_0x439599];return _0x43686e;};const _0x14a79e=a856_0x4368;'use strict';const db=require(_0x14a79e('0x4'))['db'],logger=require(_0x14a79e('0xc'))(_0x14a79e('0xa')),chanSpy=[{'id':0x1,'name':_0x14a79e('0x2'),'prefix':_0x14a79e('0x7'),'options':['b','w','E','S'],'description':_0x14a79e('0x3')},{'id':0x2,'name':_0x14a79e('0x10'),'prefix':_0x14a79e('0x12'),'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':_0x14a79e('0x6'),'prefix':'spy3','options':['B','w','E','S'],'description':_0x14a79e('0x9')},{'id':0x4,'name':_0x14a79e('0x8'),'prefix':_0x14a79e('0x5'),'options':['B','o','E','S'],'description':_0x14a79e('0xd')}];exports[_0x14a79e('0x0')]=function(){const _0x4bb30b=_0x14a79e;return db[_0x4bb30b('0x1')]['bulkCreate'](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4bb30b('0xe')](function(){const _0x41cb50=_0x4bb30b;logger[_0x41cb50('0x11')](_0x41cb50('0xb'));})[_0x4bb30b('0xf')](function(){logger['error']('Can\x27t\x20create\x20ChanSpy');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index f3da678..262f789 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a857_0x55f5=['info','../logger','then','CmCompany','Italy','Xenialab','error','+3901119886500','xcally.com','bulkCreate','+390110960070','Turin','www.xcallymotion.com','10128','09668910012','srl','Can\x27t\x20create\x20Companies','create','info@xcally.com','Companies\x20have\x20been\x20created','catch','Corso\x20Vittorio\x20Emanuele\x20II,\x20111'];(function(_0x38635a,_0x55f55f){const _0x4b8982=function(_0x55a7eb){while(--_0x55a7eb){_0x38635a['push'](_0x38635a['shift']());}};_0x4b8982(++_0x55f55f);}(a857_0x55f5,0x1ed));const a857_0x4b89=function(_0x38635a,_0x55f55f){_0x38635a=_0x38635a-0x0;let _0x4b8982=a857_0x55f5[_0x38635a];return _0x4b8982;};const _0x32bf86=a857_0x4b89;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x32bf86('0xe'))('app'),companies=[{'id':0x1,'name':_0x32bf86('0x12'),'type':_0x32bf86('0x6'),'vat':_0x32bf86('0x5'),'phone':_0x32bf86('0x14'),'fax':_0x32bf86('0x1'),'website':_0x32bf86('0x3'),'email':_0x32bf86('0x9'),'emailDomain':_0x32bf86('0x15'),'street':_0x32bf86('0xc'),'postalCode':_0x32bf86('0x4'),'city':_0x32bf86('0x2'),'country':_0x32bf86('0x11'),'description':'company\x20auto\x20generated'}];exports[_0x32bf86('0x8')]=function(){const _0x526b06=_0x32bf86;return db[_0x526b06('0x10')][_0x526b06('0x0')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x526b06('0xf')](function(){const _0x31f6a6=_0x526b06;logger[_0x31f6a6('0xd')](_0x31f6a6('0xa'));})[_0x526b06('0xb')](function(){const _0x470d00=_0x526b06;logger[_0x470d00('0x13')](_0x470d00('0x7'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index 40da408..459f851 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a858_0x3805=['then','../logger','Bianco','catch','length','info','456','Andrea','getNames','Mario','Rossi','bulkCreate','Giuseppe','Verdi','mario.rossi@xcally.com','CmContact','Contacts\x20have\x20been\x20created','Can\x27t\x20create\x20Contacts','contact\x20auto\x20generated','../../mysqldb'];(function(_0x1347fa,_0x380587){const _0x3af1a9=function(_0x358ae2){while(--_0x358ae2){_0x1347fa['push'](_0x1347fa['shift']());}};_0x3af1a9(++_0x380587);}(a858_0x3805,0x1c9));const a858_0x3af1=function(_0x1347fa,_0x380587){_0x1347fa=_0x1347fa-0x0;let _0x3af1a9=a858_0x3805[_0x1347fa];return _0x3af1a9;};const _0x31ed0e=a858_0x3af1;'use strict';const db=require(_0x31ed0e('0x2'))['db'],logger=require(_0x31ed0e('0x4'))('app'),tags=require('./tags')[_0x31ed0e('0xb')](),getRandomTag=function(){const _0x21c0ad=_0x31ed0e,_0x358ae2=tags[_0x21c0ad('0x7')]-0x1;return[tags[Math['floor'](Math['random']()*_0x358ae2)+0x1]];},contacts=[{'id':0x1,'firstName':_0x31ed0e('0xc'),'lastName':_0x31ed0e('0xd'),'phone':'123','email':_0x31ed0e('0x11'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x31ed0e('0x1')},{'id':0x2,'firstName':_0x31ed0e('0xf'),'lastName':_0x31ed0e('0x10'),'phone':_0x31ed0e('0x9'),'email':'giuseppe.verdi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x31ed0e('0x1')},{'id':0x3,'firstName':_0x31ed0e('0xa'),'lastName':_0x31ed0e('0x5'),'phone':'789','email':'andrea.bianco@xcally.com','ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x31ed0e('0x1')}];exports['create']=function(){const _0xed3648=_0x31ed0e;return db[_0xed3648('0x12')][_0xed3648('0xe')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xed3648('0x3')](function(){const _0x2ff2f4=_0xed3648;logger[_0x2ff2f4('0x8')](_0x2ff2f4('0x13'));})[_0xed3648('0x6')](function(){const _0x3f8e8a=_0xed3648;logger['error'](_0x3f8e8a('0x0'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index c2287a4..d45c43d 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a859_0xed8e=['Fax','info','Dispositions\x20have\x20been\x20created','app','Interested','Can\x27t\x20create\x20Companies','Disposition','Answer\x20Machine','Not\x20Interested','error','then','catch','Sold','../../mysqldb','bulkCreate'];(function(_0x36a8dd,_0xed8ef3){const _0x522451=function(_0x1c3d11){while(--_0x1c3d11){_0x36a8dd['push'](_0x36a8dd['shift']());}};_0x522451(++_0xed8ef3);}(a859_0xed8e,0x1d3));const a859_0x5224=function(_0x36a8dd,_0xed8ef3){_0x36a8dd=_0x36a8dd-0x0;let _0x522451=a859_0xed8e[_0x36a8dd];return _0x522451;};const _0x3af75c=a859_0x5224;'use strict';const db=require(_0x3af75c('0xb'))['db'],logger=require('../logger')(_0x3af75c('0x1')),dispositions=[{'name':_0x3af75c('0xd')},{'name':_0x3af75c('0x5')},{'name':_0x3af75c('0x2')},{'name':_0x3af75c('0x6')},{'name':_0x3af75c('0xa')},{'name':'Special'}];exports['create']=function(){const _0x15fe8d=_0x3af75c;return db[_0x15fe8d('0x4')][_0x15fe8d('0xc')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x15fe8d('0x8')](function(){const _0x394c9c=_0x15fe8d;logger[_0x394c9c('0xe')](_0x394c9c('0x0'));})[_0x15fe8d('0x9')](function(){const _0x1ffc9c=_0x15fe8d;logger[_0x1ffc9c('0x7')](_0x1ffc9c('0x3'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/index.js b/server/config/seedDB/index.js index 97ca8c9..6dfba5c 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a860_0x2ad6=['findOrCreate','./contacts','./teams','./tags','./voiceQueues','createCustom','./pauses','./analyticTreeReports','./chanspy','./squareProjects','./voiceContexts','error','Setting','./migrations','./variables','./squareOdbc','./jscriptyProjects','./lists','createAlways','../../mysqldb','createDefault','Settings\x20have\x20been\x20created','./dispositions','info','./companies','../logger','./mailSubstatuses','./voiceExtensions','create','./trunks','./analyticReports','./sounds','./mailAccounts'];(function(_0x3a4a20,_0x2ad623){const _0x41cca7=function(_0x27551c){while(--_0x27551c){_0x3a4a20['push'](_0x3a4a20['shift']());}};_0x41cca7(++_0x2ad623);}(a860_0x2ad6,0x1cf));const a860_0x41cc=function(_0x3a4a20,_0x2ad623){_0x3a4a20=_0x3a4a20-0x0;let _0x41cca7=a860_0x2ad6[_0x3a4a20];return _0x41cca7;};const _0x3ab0d0=a860_0x41cc;'use strict';const db=require(_0x3ab0d0('0x12'))['db'],logger=require(_0x3ab0d0('0x18'))('app');async function defaultSeed(){const _0x23056a=_0x3ab0d0;try{const [,_0x27551c]=await db[_0x23056a('0xb')][_0x23056a('0x20')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x27551c?(logger[_0x23056a('0x16')](_0x23056a('0x14')),await require(_0x23056a('0x6'))[_0x23056a('0x4')](),await require(_0x23056a('0x1d'))[_0x23056a('0x4')](),await require(_0x23056a('0xc'))['create'](),await require('./intervals')['create'](),await require('./userProfiles')[_0x23056a('0x1b')](),await require('./users')[_0x23056a('0x1b')](),await require(_0x23056a('0x1'))[_0x23056a('0x1b')](),await require(_0x23056a('0x1c'))[_0x23056a('0x1b')](),await require(_0x23056a('0x3'))[_0x23056a('0x1b')](),await require(_0x23056a('0x7'))['create'](),await require('./voiceMusicOnHold')[_0x23056a('0x1b')](),await require(_0x23056a('0xd'))['create'](),await require(_0x23056a('0x5'))[_0x23056a('0x1b')](),await require(_0x23056a('0x2'))[_0x23056a('0x1b')](),await require(_0x23056a('0x17'))[_0x23056a('0x1b')](),await require(_0x23056a('0x1e'))[_0x23056a('0x1b')](),await require(_0x23056a('0xe'))['create'](),await require(_0x23056a('0x8'))[_0x23056a('0x1b')](),await require(_0x23056a('0xf'))[_0x23056a('0x1b')](),await require(_0x23056a('0x1a'))[_0x23056a('0x1b')](),await require(_0x23056a('0x19'))[_0x23056a('0x1b')](),await require(_0x23056a('0x15'))[_0x23056a('0x1b')](),await require(_0x23056a('0x10'))[_0x23056a('0x1b')](),await require(_0x23056a('0x0'))['create']()):(await require(_0x23056a('0x9'))[_0x23056a('0x1b')](),await require('./voiceExtensions')[_0x23056a('0x11')](),await require(_0x23056a('0x1f'))[_0x23056a('0x1b')](),await require(_0x23056a('0x6'))[_0x23056a('0x13')](),await require(_0x23056a('0x1d'))[_0x23056a('0x13')]());}catch(_0x4a3d57){logger[_0x23056a('0xa')]('Default\x20seed',JSON['stringify'](_0x4a3d57));}}exports['default']=defaultSeed; \ No newline at end of file +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 diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index 365bd18..8fee8d9 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a861_0x2e85=['Holidays','../../mysqldb','*,*,25,dec','filter','Valentines','Morning','working\x20time\x20auto\x20generated','error','Halloween','exports','Interval','../logger','09:00-13:00,mon-fri,*,*','WorkingTime','isArray','*,*,31,oct','Afternoon','bulkCreate','map','app','Christmas','flat','NewYear'];(function(_0x31d72e,_0x2e8528){const _0x75d02a=function(_0x4ccb19){while(--_0x4ccb19){_0x31d72e['push'](_0x31d72e['shift']());}};_0x75d02a(++_0x2e8528);}(a861_0x2e85,0x113));const a861_0x75d0=function(_0x31d72e,_0x2e8528){_0x31d72e=_0x31d72e-0x0;let _0x75d02a=a861_0x2e85[_0x31d72e];return _0x75d02a;};const _0x5832c5=a861_0x75d0;'use strict';const db=require(_0x5832c5('0x2'))['db'],logger=require(_0x5832c5('0xc'))(_0x5832c5('0x14')),subIntervals={'WorkingTime':[{'name':_0x5832c5('0x6'),'interval':_0x5832c5('0xd')},{'name':_0x5832c5('0x11'),'interval':'14:00-18:00,mon-fri,*,*'}],'Holidays':[{'name':_0x5832c5('0x15'),'interval':_0x5832c5('0x3')},{'name':_0x5832c5('0x0'),'interval':'*,*,1,jan'},{'name':_0x5832c5('0x5'),'interval':'*,*,14,feb'},{'name':_0x5832c5('0x9'),'interval':_0x5832c5('0x10')}]},intervals=[{'id':0x1,'name':_0x5832c5('0xe'),'description':_0x5832c5('0x7')},{'id':0x2,'name':_0x5832c5('0x1'),'description':'working\x20time\x20auto\x20generated'}];async function create(){const _0x1f2239=_0x5832c5;try{await db[_0x1f2239('0xb')][_0x1f2239('0x12')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x4ccb19=await db[_0x1f2239('0xb')]['findAll'](),_0x1c5239=_0x4ccb19['map'](_0x4cbec8=>{const _0x559de8=_0x1f2239,_0x126b3d=subIntervals[_0x4cbec8['name']];return Array[_0x559de8('0xf')](_0x126b3d)?_0x126b3d[_0x559de8('0x13')](_0x13d4a8=>{const {description:_0x46f67a,id:_0x20bb4d}=_0x4cbec8;return{'description':_0x46f67a,'IntervalId':_0x20bb4d,..._0x13d4a8};}):null;})[_0x1f2239('0x4')](_0xf61d6c=>_0xf61d6c!==null)[_0x1f2239('0x16')]();await db['Interval'][_0x1f2239('0x12')](_0x1c5239,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger['info']('Intervals\x20have\x20been\x20created');}catch(_0x70376c){logger[_0x1f2239('0x8')]('Can\x27t\x20create\x20Intevals',_0x70376c);throw _0x70376c;}}module[_0x5832c5('0xa')]={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index a22bad1..2617310 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a862_0x1a39=['bulkCreate','create','../logger','jscripty','app','Can\x27t\x20create\x20Jscripty\x20Projects','catch','../../mysqldb','utf-8','customerSatisfation','.json','JscriptyProject','then','join','error'];(function(_0x38fdf2,_0x1a39c1){const _0x41e39a=function(_0x5d40e7){while(--_0x5d40e7){_0x38fdf2['push'](_0x38fdf2['shift']());}};_0x41e39a(++_0x1a39c1);}(a862_0x1a39,0x16c));const a862_0x41e3=function(_0x38fdf2,_0x1a39c1){_0x38fdf2=_0x38fdf2-0x0;let _0x41e39a=a862_0x1a39[_0x38fdf2];return _0x41e39a;};const _0x365fe9=a862_0x41e3;'use strict';const fs=require('fs'),path=require('path'),db=require(_0x365fe9('0x3'))['db'],logger=require(_0x365fe9('0xd'))(_0x365fe9('0x0')),getJson=function(_0x5d40e7){const _0x195276=_0x365fe9;return fs['readFileSync'](path[_0x195276('0x9')](__dirname,_0x195276('0xe'),_0x5d40e7+_0x195276('0x6')),{'encoding':_0x195276('0x4')});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':'Customer\x20Satisfaction\x20auto\x20generated','formData':getJson(_0x365fe9('0x5'))}];exports[_0x365fe9('0xc')]=function(){const _0x647b8b=_0x365fe9;return db[_0x647b8b('0x7')][_0x647b8b('0xb')](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x647b8b('0x8')](function(){logger['info']('Jscripty\x20Projects\x20have\x20been\x20created');})[_0x647b8b('0x2')](function(){const _0x47feb7=_0x647b8b;logger[_0x47feb7('0xa')](_0x47feb7('0x1'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index b361dbc..884e208 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a863_0x1fe7=['Callback\x20list\x20auto\x20generated','catch','Can\x27t\x20create\x20Lists','../../mysqldb','../logger','then','Lists\x20have\x20been\x20created','Callback\x20List','Public\x20List','app','public\x20list\x20auto\x20generated'];(function(_0x3086bd,_0x1fe785){const _0x3663e4=function(_0x160949){while(--_0x160949){_0x3086bd['push'](_0x3086bd['shift']());}};_0x3663e4(++_0x1fe785);}(a863_0x1fe7,0x1f3));const a863_0x3663=function(_0x3086bd,_0x1fe785){_0x3086bd=_0x3086bd-0x0;let _0x3663e4=a863_0x1fe7[_0x3086bd];return _0x3663e4;};const _0x195d2c=a863_0x3663;'use strict';const db=require(_0x195d2c('0xa'))['db'],logger=require(_0x195d2c('0x0'))(_0x195d2c('0x5')),lists=[{'id':0x1,'name':_0x195d2c('0x4'),'description':_0x195d2c('0x6')},{'id':0x2,'name':'Black\x20List','description':'black\x20list\x20auto\x20generated'},{'id':0x3,'name':_0x195d2c('0x3'),'description':_0x195d2c('0x7')}];exports['create']=function(){const _0x13d1c8=_0x195d2c;return db['CmList']['bulkCreate'](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x13d1c8('0x1')](function(){const _0x4369a9=_0x13d1c8;logger['info'](_0x4369a9('0x2'));})[_0x13d1c8('0x8')](function(){const _0x4349d8=_0x13d1c8;logger['error'](_0x4349d8('0x9'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/mailAccounts.js b/server/config/seedDB/mailAccounts.js index ce8c9b1..9d16474 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a864_0x4620=['MailServerOut','../logger','service\x20motion\x20account\x20auto\x20generated','Can\x27t\x20create\x20Mail\x20Accounts','127.0.0.1','MailServerIn','service\x20motion\x20imap\x20auto\x20generated','info','password','findOrCreate','MailAccount','then','username','SERV','create','service\x20motion\x20smtp\x20auto\x20generated','error','../../mysqldb'];(function(_0x5cbf2e,_0x46205e){const _0x3c2db4=function(_0x16378f){while(--_0x16378f){_0x5cbf2e['push'](_0x5cbf2e['shift']());}};_0x3c2db4(++_0x46205e);}(a864_0x4620,0xf5));const a864_0x3c2d=function(_0x5cbf2e,_0x46205e){_0x5cbf2e=_0x5cbf2e-0x0;let _0x3c2db4=a864_0x4620[_0x5cbf2e];return _0x3c2db4;};const _0x1afd36=a864_0x3c2d;'use strict';const db=require(_0x1afd36('0x6'))['db'],logger=require(_0x1afd36('0x8'))('app');exports[_0x1afd36('0x3')]=function(){const _0x4c9300=_0x1afd36;let _0x16378f;return db[_0x4c9300('0x11')]['findOrCreate']({'where':{'service':!![]},'defaults':{'name':'Service\x20Mail','key':_0x4c9300('0x2'),'email':'email@xcally.com','service':!![],'description':_0x4c9300('0x9'),'active':![],'ListId':0x1}})[_0x4c9300('0x0')](function([_0x2c22bf,_0x2e717f]){const _0x2ce090=_0x4c9300;return _0x2e717f&&logger[_0x2ce090('0xe')](_0x2ce090('0x9')),_0x16378f=_0x2c22bf,db[_0x2ce090('0x7')][_0x2ce090('0x10')]({'where':{'MailAccountId':_0x16378f['id']},'defaults':{'host':_0x2ce090('0xb'),'user':_0x2ce090('0x1'),'pass':_0x2ce090('0xf'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x16378f['id'],'description':_0x2ce090('0x4')}});})[_0x4c9300('0x0')](function([,_0x10c048]){const _0x119b7a=_0x4c9300;return _0x10c048&&logger[_0x119b7a('0xe')]('service\x20motion\x20smtp\x20auto\x20generated'),db[_0x119b7a('0xc')]['findOrCreate']({'where':{'MailAccountId':_0x16378f['id']},'defaults':{'host':_0x119b7a('0xb'),'user':_0x119b7a('0x1'),'password':_0x119b7a('0xf'),'port':0x3e1,'MailAccountId':_0x16378f['id'],'description':_0x119b7a('0xd')}});})[_0x4c9300('0x0')](function([,_0x12c7ef]){const _0xd41e31=_0x4c9300;_0x12c7ef&&logger[_0xd41e31('0xe')](_0xd41e31('0xd'));})['catch'](function(){const _0x46d6d2=_0x4c9300;logger[_0x46d6d2('0x5')](_0x46d6d2('0xa'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index da3d869..0b8dec8 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a865_0x44c8=['../../mysqldb','catch','bulkCreate','error','info','app','Substatues\x20have\x20been\x20created','Pending\x20status\x20for\x20mail\x20interaction','Can\x27t\x20create\x20MailSubstatuses'];(function(_0x224aef,_0x44c8af){const _0x584533=function(_0x16f639){while(--_0x16f639){_0x224aef['push'](_0x224aef['shift']());}};_0x584533(++_0x44c8af);}(a865_0x44c8,0x117));const a865_0x5845=function(_0x224aef,_0x44c8af){_0x224aef=_0x224aef-0x0;let _0x584533=a865_0x44c8[_0x224aef];return _0x584533;};const _0x2619e4=a865_0x5845;'use strict';const db=require(_0x2619e4('0x0'))['db'],logger=require('../logger')(_0x2619e4('0x5')),items=[{'id':0x1,'name':'pending','description':_0x2619e4('0x7')}];exports['create']=function(){const _0x304239=_0x2619e4;return db['MailSubstatus'][_0x304239('0x2')](items,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x46a55d=_0x304239;logger[_0x46a55d('0x4')](_0x46a55d('0x6'));})[_0x304239('0x1')](function(){const _0x3a24a7=_0x304239;logger[_0x3a24a7('0x3')](_0x3a24a7('0x8'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index 3c65f42..1fa0387 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a866_0x15bd=['then','catch','.js','info','app','Migration','../../mysqldb','Version\x20have\x20been\x20created','error','Can\x27t\x20create\x20Version','../logger'];(function(_0x46c5c7,_0x15bded){const _0x55111f=function(_0x1d5fba){while(--_0x1d5fba){_0x46c5c7['push'](_0x46c5c7['shift']());}};_0x55111f(++_0x15bded);}(a866_0x15bd,0x136));const a866_0x5511=function(_0x46c5c7,_0x15bded){_0x46c5c7=_0x46c5c7-0x0;let _0x55111f=a866_0x15bd[_0x46c5c7];return _0x55111f;};const _0x2c915c=a866_0x5511;'use strict';const db=require(_0x2c915c('0x4'))['db'],logger=require(_0x2c915c('0x8'))(_0x2c915c('0x2')),{version:packageVersion}=require('../../../package.json');exports['create']=function(){const _0x134fed=_0x2c915c;return db[_0x134fed('0x3')]['create']({'version':packageVersion+_0x134fed('0x0')})[_0x134fed('0x9')](function(){const _0xd296fa=_0x134fed;logger[_0xd296fa('0x1')](_0xd296fa('0x5'));})[_0x134fed('0xa')](function(){const _0x36390f=_0x134fed;logger[_0x36390f('0x6')](_0x36390f('0x7'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index fe90056..db6a621 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a867_0x247b=['AFTERCALL','Can\x27t\x20create\x20Pauses','backoffice\x20pause\x20auto\x20generated','error','catch','bulkCreate','then','Pause','../../mysqldb','BACKOFFICE','create','Pauses\x20have\x20been\x20created','../logger'];(function(_0x58aa06,_0x247bc6){const _0x25aabd=function(_0x22d79c){while(--_0x22d79c){_0x58aa06['push'](_0x58aa06['shift']());}};_0x25aabd(++_0x247bc6);}(a867_0x247b,0x1ad));const a867_0x25aa=function(_0x58aa06,_0x247bc6){_0x58aa06=_0x58aa06-0x0;let _0x25aabd=a867_0x247b[_0x58aa06];return _0x25aabd;};const _0x2155aa=a867_0x25aa;'use strict';const db=require(_0x2155aa('0x8'))['db'],logger=require(_0x2155aa('0xc'))('app'),pauses=[{'id':0x1,'name':_0x2155aa('0x9'),'description':_0x2155aa('0x2')},{'id':0x2,'name':_0x2155aa('0x0'),'description':'aftercall\x20pause\x20auto\x20generated'}];exports[_0x2155aa('0xa')]=function(){const _0x1d0165=_0x2155aa;return db[_0x1d0165('0x7')][_0x1d0165('0x5')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1d0165('0x6')](function(){const _0x2a6474=_0x1d0165;logger['info'](_0x2a6474('0xb'));})[_0x1d0165('0x4')](function(){const _0x2e3e48=_0x1d0165;logger[_0x2e3e48('0x3')](_0x2e3e48('0x1'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index 5c25cf2..b7ed5ae 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a868_0x26b7=['Openchannel\x20interactions\x20by\x20account','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_calls','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Website\x20Times','openchannel_interactions','Sentiment\x20by\x20Agent','Email\x20By\x20Date','report_square','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','_voice_queues_distribution','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','WhatsApp\x20By\x20Agent','Calls\x20by\x20Type','Sms\x20interactions\x20by\x20queue','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','List\x20Penetration\x20Rate','WhatsApp\x20By\x20Queue','Calls\x20by\x20Hour','Blocks','Calls\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}]}}','_bull_queue_campaigns','Agents\x20status\x20details','Calls\x20distribution\x20by\x20queue','Chat\x20interaction\x20times\x20by\x20website','_agents','_voice_recordings','Fax\x20Account\x20Times','Answer\x20time\x20\x20by\x20hour','Rating\x20by\x20Queue','report_fax_queue','chat_interactions','Openchannel\x20interactions\x20by\x20queue','Outbound\x20Calls\x20by\x20Agent','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Fax\x20interaction\x20times\x20by\x20account','Sentiment\x20Summary','CallySquare\x20Summary','Calls\x20by\x20Weekday','WhatsApp\x20Account\x20Times','Calls\x20by\x20Date','Email\x20By\x20Agent','report_queue','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Details','whatsapp_interactions','_voice_callysquare','report_chat_queue','Records\x20rating\x20by\x20agent','{\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:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerexit\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sms\x20By\x20Queue','Fax\x20By\x20Date','Agent\x27s\x20activities\x20report','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','_whatsapp','Chat\x20interactions\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','Fax\x20interactions\x20by\x20agent','WhatsApp\x20By\x20Date','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Chat\x20By\x20Agent','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','Sms\x20interaction\x20times\x20by\x20account','{\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}]}}','Fax\x20interactions\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','WhatsApp\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Chat\x20By\x20Date','Disposition\x20Rate','Answer\x20Time\x20by\x20Queue','Sms\x20Account\x20Times','Login\x20Time','report_agent','Records\x20rating\x20by\x20queue','Openchannel\x20By\x20Date','Calls\x20Result','_mail','Fax\x20By\x20Queue','Email\x20interactions\x20by\x20date','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','Fax\x20interactions\x20by\x20account','voice_recordings','Sentiment\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Email\x20interactions\x20by\x20agent','Abandon\x20Time\x20by\x20Queue','Disconnection\x20Cause','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','{\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}]}}','Agent\x20Calls','Openchannel\x20Account\x20Times','report_openchannel_queue','Agent\x27s\x20pause\x20time','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','_chat','_voice_queues_answered','{\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}]}}','Openchannel\x20interactions\x20by\x20date','Manual\x20outbound\x20calls\x20detailed\x20report','_bull_ivr_campaigns','Email\x20Account\x20Summary','Rating\x20by\x20Agent','sms_interactions','Outbound\x20calls\x20grouped\x20by\x20disposition','{\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}]}}]}}','cm_hopper_final','Calls\x20Summary','report_call','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Activities\x20Summary','_sms','WhatsApp\x20interaction\x20times\x20by\x20account','Campaign\x20Calls','WhatsApp\x20Account\x20Summary','mail_interactions','Queues\x20answer\x20time\x20performance','Calls\x20by\x20Agent','{\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}]}}','_openchannel','_fax','_voice_queues','{\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:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}','_voice_queues_unanswered','Email\x20Account\x20Times','Simple\x20queue\x20calls\x20overview','WhatsApp\x20interactions\x20by\x20queue','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20interactions\x20by\x20queue','_voice_agents','Summary','WhatsApp\x20interactions\x20by\x20date','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','Calls\x20detail\x20(cdr)','Website\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','Fax\x20interactions\x20by\x20date','CallySquare\x20Blocks\x20Detail','Queue\x20calls\x20summary\x20by\x20date','Detailed\x20report\x20about\x20answered\x20queue\x20calls','{\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}]}}]}}','Pause\x20Time','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','{\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}]}}]}}','Chat\x20By\x20Queue','report_member','Sms\x20By\x20Agent','Unanswered\x20calls\x20summary\x20by\x20queue','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','Openchannel\x20interactions\x20by\x20agent','Openchannel\x20By\x20Agent','Summary\x20report\x20of\x20the\x20calls\x20type','Openchannel\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','report_square_details','Fax\x20Account\x20Summary','Unmanaged\x20calls','{\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}]}}]}}','Sms\x20interactions\x20by\x20account','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','fax_interactions','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'];(function(_0x7cfc58,_0x26b779){var _0x58b2a2=function(_0x1f777e){while(--_0x1f777e){_0x7cfc58['push'](_0x7cfc58['shift']());}};_0x58b2a2(++_0x26b779);}(a868_0x26b7,0x8b));var a868_0x58b2=function(_0x7cfc58,_0x26b779){_0x7cfc58=_0x7cfc58-0x0;var _0x58b2a2=a868_0x26b7[_0x7cfc58];return _0x58b2a2;};'use strict';module['exports']=function(_0x1f777e){var _0x27d389=a868_0x58b2;return[{'id':0x1,'name':_0x27d389('0x51'),'description':'Detailed\x20queues\x20report','parent':_0x1f777e+_0x27d389('0xa2'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x65')},{'id':0x2,'name':_0x27d389('0x74'),'description':_0x27d389('0xa7'),'parent':_0x1f777e+_0x27d389('0xa2'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x65')},{'id':0x3,'name':'Details','description':_0x27d389('0xa'),'parent':_0x1f777e+'_voice_queues_answered','table':_0x27d389('0x71'),'conditions':_0x27d389('0x81')},{'id':0x4,'name':_0x27d389('0x9e'),'description':_0x27d389('0x2'),'parent':_0x1f777e+_0x27d389('0x89'),'table':_0x27d389('0x71'),'conditions':_0x27d389('0x81')},{'id':0x5,'name':_0x27d389('0x37'),'description':_0x27d389('0x6'),'parent':_0x1f777e+_0x27d389('0x89'),'table':_0x27d389('0x71'),'conditions':_0x27d389('0x81')},{'id':0x6,'name':_0x27d389('0x6e'),'description':_0x27d389('0x9d'),'parent':_0x1f777e+_0x27d389('0x89'),'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':0x7,'name':_0x27d389('0x7f'),'description':_0x27d389('0x87'),'parent':_0x1f777e+_0x27d389('0x89'),'table':_0x27d389('0x71'),'conditions':_0x27d389('0x81')},{'id':0x8,'name':'Answer\x20Time\x20by\x20Hour','description':_0x27d389('0x40'),'parent':_0x1f777e+_0x27d389('0x89'),'table':_0x27d389('0x71'),'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':_0x27d389('0x51'),'description':_0x27d389('0xd'),'parent':_0x1f777e+_0x27d389('0xa5'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x7c')},{'id':0xa,'name':'Unanswered\x20by\x20Queue','description':_0x27d389('0x12'),'parent':_0x1f777e+_0x27d389('0xa5'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x7c')},{'id':0xb,'name':_0x27d389('0x1b'),'description':'Unmanaged\x20calls\x20summary','parent':_0x1f777e+'_voice_queues_unanswered','table':_0x27d389('0x4f'),'conditions':_0x27d389('0x57')},{'id':0xc,'name':_0x27d389('0x7e'),'description':'Abandon\x20time\x20performance\x20by\x20queue','parent':_0x1f777e+_0x27d389('0xa5'),'table':'report_queue','conditions':_0x27d389('0x18')},{'id':0xd,'name':_0x27d389('0x4d'),'description':_0x27d389('0x9'),'parent':_0x1f777e+_0x27d389('0x2b'),'table':_0x27d389('0x4f'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xe,'name':_0x27d389('0x35'),'description':'Calls\x20distribution\x20by\x20hour','parent':_0x1f777e+_0x27d389('0x2b'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x65')},{'id':0xf,'name':'Calls\x20by\x20Day','description':_0x27d389('0x64'),'parent':_0x1f777e+_0x27d389('0x2b'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x65')},{'id':0x10,'name':_0x27d389('0x4b'),'description':_0x27d389('0x2c'),'parent':_0x1f777e+_0x27d389('0x2b'),'table':_0x27d389('0x4f'),'conditions':_0x27d389('0x65')},{'id':0x11,'name':'Summary','description':_0x27d389('0x3b'),'parent':_0x1f777e+'_voice_queues','table':_0x27d389('0x4f'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x12,'name':_0x27d389('0x51'),'description':_0x27d389('0x3'),'parent':_0x1f777e+_0x27d389('0x23'),'table':_0x27d389('0x95'),'conditions':_0x27d389('0x65')},{'id':0x13,'name':'Outbound','description':_0x27d389('0x8c'),'parent':_0x1f777e+_0x27d389('0x23'),'table':'report_call','conditions':_0x27d389('0x9f')},{'id':0x14,'name':_0x27d389('0x30'),'description':_0x27d389('0x16'),'parent':_0x1f777e+_0x27d389('0x23'),'table':'report_call','conditions':_0x27d389('0x65')},{'id':0x15,'name':'Outbound\x20Calls\x20Disposition','description':_0x27d389('0x91'),'parent':_0x1f777e+_0x27d389('0x23'),'table':_0x27d389('0x95'),'conditions':_0x27d389('0x9f')},{'id':0x16,'name':_0x27d389('0x45'),'description':_0x27d389('0x78'),'parent':_0x1f777e+'_voice_calls','table':_0x27d389('0x95'),'conditions':_0x27d389('0x9f')},{'id':0x17,'name':'Outbound\x20Calls\x20by\x20Date','description':_0x27d389('0x13'),'parent':_0x1f777e+_0x27d389('0x23'),'table':_0x27d389('0x95'),'conditions':_0x27d389('0x9f')},{'id':0x18,'name':_0x27d389('0x70'),'description':'Agent\x27s\x20login\x20time','parent':_0x1f777e+_0x27d389('0x3d'),'table':_0x27d389('0x10'),'conditions':_0x27d389('0x8a')},{'id':0x19,'name':_0x27d389('0x97'),'description':_0x27d389('0x5b'),'parent':_0x1f777e+_0x27d389('0xab'),'table':'report_member','conditions':_0x27d389('0x38')},{'id':0x1a,'name':'Pause\x20Details','description':_0x27d389('0x3a'),'parent':_0x1f777e+_0x27d389('0xab'),'table':'report_member','conditions':_0x27d389('0x67')},{'id':0x1b,'name':_0x27d389('0x51'),'description':'Agent\x27s\x20status\x20detail','parent':_0x1f777e+_0x27d389('0xab'),'table':_0x27d389('0x10'),'conditions':_0x27d389('0x38')},{'id':0x1c,'name':_0x27d389('0xc'),'description':_0x27d389('0x86'),'parent':_0x1f777e+_0x27d389('0xab'),'table':_0x27d389('0x10'),'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':_0x27d389('0x0'),'description':_0x27d389('0x4a'),'parent':_0x1f777e+_0x27d389('0x53'),'table':_0x27d389('0x29'),'conditions':_0x27d389('0x65')},{'id':0x1e,'name':_0x27d389('0x36'),'description':_0x27d389('0x8'),'parent':_0x1f777e+_0x27d389('0x53'),'table':_0x27d389('0x19'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x1f,'name':_0x27d389('0x8f'),'description':_0x27d389('0x55'),'parent':_0x1f777e+_0x27d389('0x3e'),'table':_0x27d389('0x7a'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0x20,'name':_0x27d389('0x41'),'description':_0x27d389('0x72'),'parent':_0x1f777e+_0x27d389('0x3e'),'table':_0x27d389('0x7a'),'conditions':_0x27d389('0x82')},{'id':0x21,'name':_0x27d389('0x51'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':_0x27d389('0x93'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x22,'name':_0x27d389('0x94'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':'cm_hopper_history','conditions':_0x27d389('0x5c')},{'id':0x23,'name':_0x27d389('0x9a'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':_0x27d389('0x93'),'conditions':_0x27d389('0x5c')},{'id':0x24,'name':_0x27d389('0x33'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':'cm_hopper_final','conditions':_0x27d389('0x5c')},{'id':0x25,'name':_0x27d389('0x83'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':_0x27d389('0x93'),'conditions':_0x27d389('0xa4')},{'id':0x26,'name':_0x27d389('0x6d'),'description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':_0x27d389('0x93'),'conditions':_0x27d389('0xa3')},{'id':0x27,'name':'Agent\x20Disposition\x20Rate','description':'','parent':_0x1f777e+_0x27d389('0x39'),'table':'cm_hopper_final','conditions':_0x27d389('0xa3')},{'id':0x28,'name':'Details','description':'','parent':_0x1f777e+_0x27d389('0x8d'),'table':_0x27d389('0x93'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x29,'name':_0x27d389('0x94'),'description':'','parent':_0x1f777e+'_bull_ivr_campaigns','table':'cm_hopper_history','conditions':_0x27d389('0x69')},{'id':0x2a,'name':_0x27d389('0x9a'),'description':'','parent':_0x1f777e+_0x27d389('0x8d'),'table':_0x27d389('0x93'),'conditions':_0x27d389('0x69')},{'id':0x2b,'name':_0x27d389('0x33'),'description':'','parent':_0x1f777e+'_bull_ivr_campaigns','table':'cm_hopper_final','conditions':_0x27d389('0x69')},{'id':0x2c,'name':_0x27d389('0x4'),'description':'Chat\x20interactions\x20by\x20website','parent':_0x1f777e+_0x27d389('0x88'),'table':_0x27d389('0x43'),'joins':_0x27d389('0x2d')},{'id':0x2d,'name':_0x27d389('0x25'),'description':_0x27d389('0x3c'),'parent':_0x1f777e+_0x27d389('0x88'),'table':_0x27d389('0x43'),'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':_0x27d389('0x63'),'description':'Chat\x20interactions\x20by\x20agent','parent':_0x1f777e+'_chat','table':_0x27d389('0x43'),'conditions':_0x27d389('0x47'),'joins':_0x27d389('0x80')},{'id':0x2f,'name':_0x27d389('0x6c'),'description':'Chat\x20interactions\x20by\x20date','parent':_0x1f777e+_0x27d389('0x88'),'table':_0x27d389('0x43'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x30,'name':_0x27d389('0xf'),'description':_0x27d389('0x5e'),'parent':_0x1f777e+_0x27d389('0x88'),'table':_0x27d389('0x54'),'joins':_0x27d389('0x46')},{'id':0x31,'name':_0x27d389('0x8e'),'description':'Email\x20interactions\x20by\x20account','parent':_0x1f777e+'_mail','table':_0x27d389('0x9c'),'joins':_0x27d389('0xa9')},{'id':0x32,'name':_0x27d389('0xa6'),'description':'Email\x20interaction\x20times\x20by\x20account','parent':_0x1f777e+_0x27d389('0x75'),'table':_0x27d389('0x9c'),'conditions':_0x27d389('0xb'),'joins':_0x27d389('0xa9')},{'id':0x33,'name':_0x27d389('0x4e'),'description':_0x27d389('0x7d'),'parent':_0x1f777e+_0x27d389('0x75'),'table':_0x27d389('0x9c'),'conditions':_0x27d389('0x5'),'joins':_0x27d389('0x80')},{'id':0x34,'name':_0x27d389('0x28'),'description':_0x27d389('0x77'),'parent':_0x1f777e+_0x27d389('0x75'),'table':_0x27d389('0x9c'),'conditions':_0x27d389('0x5')},{'id':0x35,'name':'Email\x20By\x20Queue','description':_0x27d389('0xaa'),'parent':_0x1f777e+_0x27d389('0x75'),'table':'report_mail_queue','joins':_0x27d389('0x1e')},{'id':0x36,'name':'Openchannel\x20Account\x20Summary','description':_0x27d389('0x21'),'parent':_0x1f777e+_0x27d389('0xa0'),'table':_0x27d389('0x26'),'joins':_0x27d389('0x50')},{'id':0x37,'name':_0x27d389('0x84'),'description':'Openchannel\x20interaction\x20times\x20by\x20account','parent':_0x1f777e+_0x27d389('0xa0'),'table':'openchannel_interactions','conditions':'{\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}]}}]}}','joins':'[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x38,'name':_0x27d389('0x15'),'description':_0x27d389('0x14'),'parent':_0x1f777e+_0x27d389('0xa0'),'table':'openchannel_interactions','conditions':_0x27d389('0x96'),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x39,'name':_0x27d389('0x73'),'description':_0x27d389('0x8b'),'parent':_0x1f777e+'_openchannel','table':_0x27d389('0x26'),'conditions':_0x27d389('0x96')},{'id':0x3a,'name':_0x27d389('0x17'),'description':_0x27d389('0x44'),'parent':_0x1f777e+_0x27d389('0xa0'),'table':_0x27d389('0x85'),'joins':_0x27d389('0x22')},{'id':0x3b,'name':'Sms\x20Account\x20Summary','description':_0x27d389('0x1d'),'parent':_0x1f777e+_0x27d389('0x98'),'table':'sms_interactions','joins':'[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3c,'name':_0x27d389('0x6f'),'description':_0x27d389('0x66'),'parent':_0x1f777e+_0x27d389('0x98'),'table':'sms_interactions','conditions':_0x27d389('0x92'),'joins':_0x27d389('0x24')},{'id':0x3d,'name':_0x27d389('0x11'),'description':'Sms\x20interactions\x20by\x20agent','parent':_0x1f777e+_0x27d389('0x98'),'table':_0x27d389('0x90'),'conditions':_0x27d389('0x2a'),'joins':_0x27d389('0x80')},{'id':0x3e,'name':'Sms\x20By\x20Date','description':'Sms\x20interactions\x20by\x20date','parent':_0x1f777e+_0x27d389('0x98'),'table':_0x27d389('0x90'),'conditions':_0x27d389('0x2a')},{'id':0x3f,'name':_0x27d389('0x59'),'description':_0x27d389('0x31'),'parent':_0x1f777e+_0x27d389('0x98'),'table':'report_sms_queue','joins':_0x27d389('0x20')},{'id':0x40,'name':_0x27d389('0x1a'),'description':_0x27d389('0x79'),'parent':_0x1f777e+_0x27d389('0xa1'),'table':'fax_interactions','joins':_0x27d389('0x32')},{'id':0x41,'name':_0x27d389('0x3f'),'description':_0x27d389('0x48'),'parent':_0x1f777e+_0x27d389('0xa1'),'table':_0x27d389('0x1f'),'conditions':_0x27d389('0x1c'),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x42,'name':'Fax\x20By\x20Agent','description':_0x27d389('0x60'),'parent':_0x1f777e+_0x27d389('0xa1'),'table':_0x27d389('0x1f'),'conditions':_0x27d389('0x6b'),'joins':_0x27d389('0x80')},{'id':0x43,'name':_0x27d389('0x5a'),'description':_0x27d389('0x7'),'parent':_0x1f777e+_0x27d389('0xa1'),'table':'fax_interactions','conditions':_0x27d389('0x6b')},{'id':0x44,'name':_0x27d389('0x76'),'description':_0x27d389('0x68'),'parent':_0x1f777e+_0x27d389('0xa1'),'table':_0x27d389('0x42'),'joins':_0x27d389('0x58')},{'id':0x45,'name':_0x27d389('0x9b'),'description':'WhatsApp\x20interactions\x20by\x20account','parent':_0x1f777e+_0x27d389('0x5d'),'table':'whatsapp_interactions','joins':_0x27d389('0x62')},{'id':0x46,'name':_0x27d389('0x4c'),'description':_0x27d389('0x99'),'parent':_0x1f777e+_0x27d389('0x5d'),'table':_0x27d389('0x52'),'conditions':_0x27d389('0xe'),'joins':_0x27d389('0x62')},{'id':0x47,'name':_0x27d389('0x2f'),'description':_0x27d389('0x6a'),'parent':_0x1f777e+_0x27d389('0x5d'),'table':_0x27d389('0x52'),'conditions':_0x27d389('0x56'),'joins':_0x27d389('0x80')},{'id':0x48,'name':_0x27d389('0x61'),'description':_0x27d389('0x1'),'parent':_0x1f777e+_0x27d389('0x5d'),'table':_0x27d389('0x52'),'conditions':_0x27d389('0x56')},{'id':0x49,'name':_0x27d389('0x34'),'description':_0x27d389('0xa8'),'parent':_0x1f777e+'_whatsapp','table':'report_whatsapp_queue','joins':_0x27d389('0x2e')},{'id':0x4a,'name':_0x27d389('0x27'),'description':_0x27d389('0x7b'),'parent':_0x1f777e+_0x27d389('0x3e'),'table':_0x27d389('0x7a'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','joins':_0x27d389('0x80')},{'id':0x4b,'name':_0x27d389('0x49'),'description':_0x27d389('0x49'),'parent':_0x1f777e+_0x27d389('0x3e'),'table':_0x27d389('0x7a'),'conditions':_0x27d389('0x5f')}];}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index 2b288a5..552bb6a 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a869_0x1cbb=['COUNT(IF(reason=\x27accepted\x27,1,NULL))','AgentACWTime','fax_queues.name','tag','Type','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','starttime','Whatsapp\x20Account','Openchannel\x20Account','agentcomplete','Tot\x20Answered','Email\x20Account','Answer\x20Rate\x2020-30s','Total','Positive(%)','Rated\x20Calls','queuecallercomplete','AgentCalledAt','leaveAt','Abandoned\x20Rate\x2010-60s','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','Web\x20Site','campaign','Event','callerid','AgentACW','Calls\x20(%)','mail_interactions.id','AgentCompleteAt','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','CallerIdName','lodash','Tot\x20Duration','Project\x20Name','calleridname','AvgHandleTime','QueueExitAt','whatsapp_queues.name','LastApp','ASC','report_mail_queue.id','dropreason','queuecallercompleteAt','AbandonTime','COUNT(IF(holdtime\x20>=30,1,NULL))','Answered','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','LastData','talktime\x20+\x20acwtime','source','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','AVG\x20Hold\x20Time','Answered\x2020-30s','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','Recorded\x20Calls','QueueExitReason','fax_interactions.id','queuecallerjoinAt','Caller\x20Id','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','Date','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Completed','Tag','NEUTRAL','endtime','reason','mail_accounts.name','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','Contacts','ListId','openchannel_accounts.name','Interactions','Answered\x2010-20s','UniqueId','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','COUNT(IF(closed=0,1,NULL))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','Offered','destination','Answer\x20Rate\x20>30s','EndTime','UserId','queuecallerexitreason','Completed\x20(%)','report_chat_queue.id','chat_interactions.createdAt','Answered\x20>30s','duration','Hold\x20Time','Neutral(%)','chat_interactions.closed','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','Sms\x20Account','report_fax_queue.id','Open','mail_interactions.createdAt','Start\x20Time','enterAt','queuecallerabandon','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','uniqueid','Global\x20Count','Abandoned<10s','CallerIdNum','Abandoned>120s','disposition','groupBy','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','connectedlinename','queuecallerleaveAt','QueueJoinAt','PauseType','report_openchannel_queue.id','Avg\x20HoldTime','EnterAt','Total\x20(%)','JoinAt','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Managed','SUM','Negative(%)','Day','joinAt','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','Closed','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','holdtime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','End\x20Time','talktime','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Tot\x20Unmanaged\x20Time','users.fullname','Tot\x20HoldTime','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','dnid','Abandoned\x20Rate>120s','DATE','StartTime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Block','Tot\x20Handle\x20Time','ReportId','data','CallerID','Agent','Avg\x20Rating','HoldTime','queue','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','mail_interactions.closed','Interaction\x20Time','queuecallerexit','whatsapp_interactions.closed','Abandoned\x20(%)','TalkTime','AvgACWTime','Total\x20Calls','QueueExit','chat_websites.name','LastCallAt','agentcalledAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','Reason','UniqueID','COUNT(IF(closed=1,1,NULL))','sms_interactions.id','Talk\x20Time','whatsapp_interactions.createdAt','Timeout','membername','sms_accounts.name','exitAt','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','ROUND(AVG(holdtime))','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','sms_interactions.closed','Abandoned\x2010-60s','ROUND(AVG(duration))','HangupReason','Mixed(%)','Fax\x20Account','Avg\x20Duration','QueueLeaveAt','Full\x20Name','Billsec','Complete','QueueAbandon','exports','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Pause\x20Time','fax_interactions.createdAt','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','DAYNAME(queuecallerjoinat)','AvgTalkTime','destinationchannel','AgentExtension','Source','COUNT(IF(holdtime<10,1,NULL))','position','COUNT','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))\x20\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','Answer\x20Rate\x20<10s','MIXED','ROUND(AVG(talktime))','agentcompleteAt','chat_queues.name','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','Penetration\x20Rate','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','BlackList','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','node','Campaign\x20Name','Abandoned','fax_accounts.name','agentacw','Data','HOUR','rating','LastEvent','ExitAt','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','Answered\x20<10s','calleridnum','COUNT(IF(reason=\x27timeout\x27,1,NULL))','Accepted','Abandoned\x20Rate<10s','Avg\x20Handle\x20Time','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','DESC','lastdata','Answer\x20Rate\x2010-20s','QueueAbandonAt','billableseconds','openchannel_interactions.id','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','LeaveAt','Calls','Pause','Duration','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','lastapplication','TotACWTime','Total\x20Rating','statedesc','TOT','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','Abandon\x20Time','Interface','AnswerTime','Unique\x20Id','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','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)','countglobal','Abandon','openchannel_queues.name','Abandoned\x2060-120s','exten','Disposition','queuecallerabandonAt','whatsapp_interactions.id','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','Destination','type','data1','Queue','project_name','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','AvgAbandonTime','NEGATIVE','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','acwtime','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','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(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','Tot\x20AbandonTime','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','SEC_TO_TIME','State','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','Unmanaged\x20(%)','interface','DID','COUNT\x20DISTINCT','Unmanaged','openchannel_interactions.closed','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','chat_interactions.id','Tot\x20TalkTime','answertime','queuecallerexitAt','Answer\x20Rate','AgentComplete'];(function(_0x560c70,_0x1cbbd3){const _0x1d98e8=function(_0x42e782){while(--_0x42e782){_0x560c70['push'](_0x560c70['shift']());}};_0x1d98e8(++_0x1cbbd3);}(a869_0x1cbb,0x12d));const a869_0x1d98=function(_0x560c70,_0x1cbbd3){_0x560c70=_0x560c70-0x0;let _0x1d98e8=a869_0x1cbb[_0x560c70];return _0x1d98e8;};const _0x2f3c86=a869_0x1d98;'use strict';const _=require(_0x2f3c86('0x25'));module[_0x2f3c86('0xc6')]=function(){const _0x3fa8f2=_0x2f3c86,_0x42e782=[{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x51'),'ReportId':0x1},{'field':_0x3fa8f2('0xed'),'alias':_0x3fa8f2('0x70'),'ReportId':0x1},{'field':_0x3fa8f2('0x28'),'alias':_0x3fa8f2('0x24'),'ReportId':0x1},{'field':_0x3fa8f2('0x9d'),'alias':_0x3fa8f2('0x117'),'ReportId':0x1},{'field':_0x3fa8f2('0x40'),'alias':_0x3fa8f2('0x77'),'ReportId':0x1},{'field':'queuecallerleaveAt','alias':_0x3fa8f2('0xc1'),'ReportId':0x1},{'field':_0x3fa8f2('0x6b'),'alias':_0x3fa8f2('0xc5'),'ReportId':0x1},{'field':_0x3fa8f2('0x111'),'alias':_0x3fa8f2('0xf6'),'ReportId':0x1},{'field':'queuecallercomplete','alias':_0x3fa8f2('0xc4'),'ReportId':0x1},{'field':_0x3fa8f2('0x30'),'alias':'CompleteAt','ReportId':0x1},{'field':_0x3fa8f2('0xa1'),'alias':_0x3fa8f2('0xa7'),'ReportId':0x1},{'field':_0x3fa8f2('0x2'),'alias':_0x3fa8f2('0x2a'),'ReportId':0x1},{'field':_0x3fa8f2('0x5b'),'alias':_0x3fa8f2('0x3e'),'ReportId':0x1},{'field':'exten','alias':_0x3fa8f2('0x12b'),'ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x3fa8f2('0xa4'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x1},{'field':_0x3fa8f2('0x11c'),'alias':_0x3fa8f2('0x31'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x1},{'field':'IF(queuecallercomplete=1,holdtime,null)','alias':_0x3fa8f2('0x107'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x1},{'field':_0x3fa8f2('0xed'),'alias':'CallerID','ReportId':0x2},{'field':_0x3fa8f2('0x9d'),'alias':'Queue','ReportId':0x2},{'field':_0x3fa8f2('0x40'),'alias':'StartTime','ReportId':0x2},{'field':'CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','alias':_0x3fa8f2('0x59'),'custom':0x1,'ReportId':0x2},{'field':'holdtime','alias':_0x3fa8f2('0x9c'),'format':_0x3fa8f2('0x125'),'ReportId':0x2},{'field':'CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','alias':_0x3fa8f2('0x33'),'custom':0x1,'ReportId':0x2},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x51'),'ReportId':0x3},{'field':_0x3fa8f2('0xed'),'alias':'CallerIdNum','ReportId':0x3},{'field':_0x3fa8f2('0x28'),'alias':_0x3fa8f2('0x24'),'ReportId':0x3},{'field':_0x3fa8f2('0x9d'),'alias':_0x3fa8f2('0x117'),'ReportId':0x3},{'field':_0x3fa8f2('0xb3'),'alias':'Agent','ReportId':0x3},{'field':_0x3fa8f2('0xaa'),'alias':_0x3fa8f2('0x16'),'ReportId':0x3},{'field':'agentconnectAt','alias':'AgentConnectAt','ReportId':0x3},{'field':_0x3fa8f2('0xd9'),'alias':_0x3fa8f2('0x22'),'ReportId':0x3},{'field':_0x3fa8f2('0x87'),'alias':_0x3fa8f2('0x107'),'ReportId':0x3},{'field':'talktime','alias':'TalkTime','ReportId':0x3},{'field':_0x3fa8f2('0xe5'),'alias':_0x3fa8f2('0x1f'),'ReportId':0x3},{'field':'acwtime','alias':_0x3fa8f2('0x6'),'ReportId':0x3},{'field':_0x3fa8f2('0xe'),'alias':_0x3fa8f2('0x4'),'ReportId':0x3},{'field':'reason','alias':_0x3fa8f2('0xbd'),'ReportId':0x3},{'field':'lastevent','alias':_0x3fa8f2('0xe9'),'ReportId':0x3},{'field':_0x3fa8f2('0x10f'),'alias':'DID','ReportId':0x3},{'field':_0x3fa8f2('0xb3'),'alias':_0x3fa8f2('0x9a'),'groupBy':0x1,'ReportId':0x4},{'field':_0x3fa8f2('0xe'),'alias':_0x3fa8f2('0x45'),'function':'SUM','ReportId':0x4},{'field':_0x3fa8f2('0x8a'),'alias':'TotTalkTime','function':'SUM','format':'SEC_TO_TIME','ReportId':0x4},{'field':'acwtime','alias':_0x3fa8f2('0x100'),'function':'SUM','format':_0x3fa8f2('0x125'),'ReportId':0x4},{'field':_0x3fa8f2('0x36'),'alias':'TotHandleTime','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x4},{'field':_0x3fa8f2('0xd8'),'alias':_0x3fa8f2('0xce'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0x3fa8f2('0xa5'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x4},{'field':_0x3fa8f2('0xeb'),'alias':_0x3fa8f2('0x29'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':_0x3fa8f2('0x9d'),'alias':_0x3fa8f2('0x117'),'groupBy':0x1,'ReportId':0x5},{'field':_0x3fa8f2('0xe'),'alias':_0x3fa8f2('0x45'),'function':_0x3fa8f2('0x80'),'ReportId':0x5},{'field':_0x3fa8f2('0x8a'),'alias':'Tot\x20TalkTime','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'ReportId':0x5},{'field':'holdtime','alias':_0x3fa8f2('0x8e'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'ReportId':0x5},{'field':_0x3fa8f2('0x11d'),'alias':'Tot\x20ACWTime','function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','ReportId':0x5},{'field':_0x3fa8f2('0x36'),'alias':_0x3fa8f2('0x96'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x5},{'field':_0x3fa8f2('0xd8'),'alias':'Avg\x20TalkTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x5},{'field':_0x3fa8f2('0xb7'),'alias':_0x3fa8f2('0x7a'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(acwtime))','alias':'Avg\x20ACWTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x5},{'field':_0x3fa8f2('0xeb'),'alias':_0x3fa8f2('0xf1'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x5},{'field':'queue','alias':_0x3fa8f2('0x117'),'groupBy':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0xe'),'alias':'Tot\x20Answered','function':_0x3fa8f2('0x80'),'ReportId':0x6},{'field':_0x3fa8f2('0xd2'),'alias':_0x3fa8f2('0xec'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0xcb'),'alias':_0x3fa8f2('0xd6'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x3c'),'alias':_0x3fa8f2('0x50'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0xe0'),'alias':_0x3fa8f2('0xf5'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x1a'),'alias':_0x3fa8f2('0x3b'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x44'),'alias':_0x3fa8f2('0x11'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x32'),'alias':_0x3fa8f2('0x5f'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x8f'),'alias':_0x3fa8f2('0x58'),'custom':0x1,'ReportId':0x6},{'field':_0x3fa8f2('0x49'),'alias':_0x3fa8f2('0xac'),'groupBy':0x1,'ReportId':0x7},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x7},{'field':'agentconnectAt','alias':'Hour','format':_0x3fa8f2('0xe7'),'groupBy':0x1,'ReportId':0x8},{'field':_0x3fa8f2('0xe'),'alias':_0x3fa8f2('0xf'),'function':_0x3fa8f2('0x80'),'ReportId':0x8},{'field':'COUNT(IF(holdtime<10,1,NULL))','alias':'Answered\x20<10s','custom':0x1,'ReportId':0x8},{'field':_0x3fa8f2('0x3c'),'alias':_0x3fa8f2('0x50'),'custom':0x1,'ReportId':0x8},{'field':_0x3fa8f2('0x1a'),'alias':_0x3fa8f2('0x3b'),'custom':0x1,'ReportId':0x8},{'field':_0x3fa8f2('0x32'),'alias':_0x3fa8f2('0x5f'),'custom':0x1,'ReportId':0x8},{'field':'uniqueid','alias':'UniqueId','ReportId':0x9},{'field':_0x3fa8f2('0xed'),'alias':_0x3fa8f2('0x70'),'ReportId':0x9},{'field':_0x3fa8f2('0x9d'),'alias':'Queue','ReportId':0x9},{'field':_0x3fa8f2('0x40'),'alias':_0x3fa8f2('0x7d'),'ReportId':0x9},{'field':_0x3fa8f2('0x76'),'alias':_0x3fa8f2('0xfa'),'ReportId':0x9},{'field':_0x3fa8f2('0x6b'),'alias':_0x3fa8f2('0x10c'),'ReportId':0x9},{'field':_0x3fa8f2('0x111'),'alias':'AbandonAt','ReportId':0x9},{'field':_0x3fa8f2('0xa1'),'alias':'Unmanaged','ReportId':0x9},{'field':'queuecallerexitAt','alias':'UnmanagedAt','ReportId':0x9},{'field':'queuecallerexitreason','alias':'UnmanagedReason','ReportId':0x9},{'field':_0x3fa8f2('0xd3'),'alias':'QueuePosition','ReportId':0x9},{'field':_0x3fa8f2('0x10f'),'alias':_0x3fa8f2('0x12b'),'ReportId':0x9},{'field':_0x3fa8f2('0x11c'),'alias':_0x3fa8f2('0x105'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x9},{'field':_0x3fa8f2('0xcc'),'alias':'Unmanaged\x20HoldTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x9},{'field':_0x3fa8f2('0x9d'),'alias':_0x3fa8f2('0x117'),'groupBy':0x1,'ReportId':0xa},{'field':_0x3fa8f2('0x6b'),'alias':_0x3fa8f2('0xe3'),'function':_0x3fa8f2('0x80'),'ReportId':0xa},{'field':'queuecallerexit','alias':_0x3fa8f2('0x12d'),'function':_0x3fa8f2('0x80'),'ReportId':0xa},{'field':_0x3fa8f2('0x11c'),'alias':_0x3fa8f2('0x123'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xa},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':'AvgAbandonTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xa},{'field':_0x3fa8f2('0xcc'),'alias':_0x3fa8f2('0x8c'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x3fa8f2('0x130'),'alias':'Avg\x20Unmanaged\x20TIme','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xa},{'field':_0x3fa8f2('0x5b'),'alias':_0x3fa8f2('0xac'),'groupBy':0x1,'ReportId':0xb},{'field':_0x3fa8f2('0xa1'),'alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0x80'),'ReportId':0xb},{'field':_0x3fa8f2('0xcc'),'alias':'Tot\x20Unmanaged\x20Time','function':_0x3fa8f2('0x80'),'custom':0x1,'ReportId':0xb},{'field':_0x3fa8f2('0x9d'),'alias':'Queue','groupBy':0x1,'ReportId':0xc},{'field':'queuecallerabandon','alias':'Tot\x20Abandoned','function':_0x3fa8f2('0x80'),'ReportId':0xc},{'field':_0x3fa8f2('0x23'),'alias':_0x3fa8f2('0x6f'),'custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0xdf'),'alias':_0x3fa8f2('0xf0'),'custom':0x1,'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','alias':_0x3fa8f2('0xbb'),'custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0x120'),'alias':_0x3fa8f2('0x18'),'custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0x38'),'alias':_0x3fa8f2('0x10e'),'custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0xd5'),'alias':'Abandoned\x20Rate\x2060-120s','custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0x104'),'alias':_0x3fa8f2('0x71'),'custom':0x1,'ReportId':0xc},{'field':_0x3fa8f2('0x121'),'alias':_0x3fa8f2('0x91'),'custom':0x1,'ReportId':0xc},{'field':'queuecallerjoinat','alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x56'),'function':_0x3fa8f2('0x12c'),'ReportId':0xd},{'field':_0x3fa8f2('0x15'),'alias':_0x3fa8f2('0x45'),'function':'SUM','ReportId':0xd},{'field':_0x3fa8f2('0x6b'),'alias':'Abandoned','function':'SUM','custom':0x1,'ReportId':0xd},{'field':_0x3fa8f2('0xa1'),'alias':'Unmanaged','function':_0x3fa8f2('0x80'),'custom':0x1,'ReportId':0xd},{'field':_0x3fa8f2('0x52'),'alias':_0x3fa8f2('0x0'),'function':'SUM','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xd},{'field':_0x3fa8f2('0x122'),'alias':_0x3fa8f2('0xce'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xd},{'field':_0x3fa8f2('0xb6'),'alias':'AvgAbandonTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xd},{'field':'queuecallerjoinat','alias':'Hour','format':_0x3fa8f2('0xe7'),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x56'),'function':_0x3fa8f2('0x12c'),'ReportId':0xe},{'field':'queuecallercomplete','alias':_0x3fa8f2('0x33'),'function':_0x3fa8f2('0x80'),'ReportId':0xe},{'field':_0x3fa8f2('0x113'),'alias':_0x3fa8f2('0x3'),'custom':0x1,'ReportId':0xe},{'field':_0x3fa8f2('0x6b'),'alias':'Abandoned','function':_0x3fa8f2('0x80'),'ReportId':0xe},{'field':'queuecallerexit','alias':_0x3fa8f2('0x12d'),'function':_0x3fa8f2('0x80'),'ReportId':0xe},{'field':_0x3fa8f2('0x52'),'alias':'Tot\x20TalkTime','function':'SUM','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xe},{'field':_0x3fa8f2('0x122'),'alias':_0x3fa8f2('0xce'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xe},{'field':_0x3fa8f2('0xb6'),'alias':_0x3fa8f2('0x11a'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':'DAY(queuecallerjoinat)','alias':_0x3fa8f2('0x82'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x3fa8f2('0x6d'),'alias':'Offered','function':'COUNT\x20DISTINCT','ReportId':0xf},{'field':'queuecallercomplete','alias':_0x3fa8f2('0x33'),'function':_0x3fa8f2('0x80'),'ReportId':0xf},{'field':_0x3fa8f2('0x113'),'alias':_0x3fa8f2('0x3'),'custom':0x1,'ReportId':0xf},{'field':_0x3fa8f2('0x6b'),'alias':_0x3fa8f2('0xe3'),'function':_0x3fa8f2('0x80'),'ReportId':0xf},{'field':_0x3fa8f2('0xa1'),'alias':_0x3fa8f2('0x12d'),'function':_0x3fa8f2('0x80'),'ReportId':0xf},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':'Tot\x20TalkTime','function':'SUM','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0xf},{'field':_0x3fa8f2('0xb6'),'alias':_0x3fa8f2('0x11a'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':_0x3fa8f2('0xcd'),'alias':'DayOfWeek','groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x3fa8f2('0x6d'),'alias':'Offered','function':'COUNT\x20DISTINCT','ReportId':0x10},{'field':'queuecallercomplete','alias':_0x3fa8f2('0x33'),'function':_0x3fa8f2('0x80'),'ReportId':0x10},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':_0x3fa8f2('0x3'),'custom':0x1,'ReportId':0x10},{'field':_0x3fa8f2('0x6b'),'alias':_0x3fa8f2('0xe3'),'function':'SUM','orderBy':'ASC','ReportId':0x10},{'field':_0x3fa8f2('0xa1'),'alias':_0x3fa8f2('0x12d'),'function':_0x3fa8f2('0x80'),'ReportId':0x10},{'field':_0x3fa8f2('0x52'),'alias':_0x3fa8f2('0x0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x10},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x10},{'field':_0x3fa8f2('0xb6'),'alias':'AvgAbandonTime','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x10},{'field':'queue','alias':'Queue','groupBy':0x1,'ReportId':0x11},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x56'),'function':_0x3fa8f2('0x12c'),'ReportId':0x11},{'field':'queuecallercomplete','alias':_0x3fa8f2('0x33'),'function':_0x3fa8f2('0x80'),'ReportId':0x11},{'field':_0x3fa8f2('0x113'),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x11},{'field':_0x3fa8f2('0x6b'),'alias':'Abandoned','function':_0x3fa8f2('0x80'),'ReportId':0x11},{'field':_0x3fa8f2('0xa1'),'alias':_0x3fa8f2('0x12d'),'function':_0x3fa8f2('0x80'),'ReportId':0x11},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x3fa8f2('0x0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x3fa8f2('0xce'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x11},{'field':_0x3fa8f2('0xb6'),'alias':_0x3fa8f2('0x11a'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x11},{'field':'uniqueid','alias':_0x3fa8f2('0xad'),'ReportId':0x12},{'field':_0x3fa8f2('0x115'),'alias':'Type','ReportId':0x12},{'field':_0x3fa8f2('0x8'),'alias':_0x3fa8f2('0x46'),'ReportId':0x12},{'field':_0x3fa8f2('0x37'),'alias':_0x3fa8f2('0xd1'),'ReportId':0x12},{'field':_0x3fa8f2('0x57'),'alias':_0x3fa8f2('0x114'),'ReportId':0x12},{'field':_0x3fa8f2('0x1e'),'alias':_0x3fa8f2('0x99'),'ReportId':0x12},{'field':_0x3fa8f2('0xcf'),'alias':'DestChannel','ReportId':0x12},{'field':_0x3fa8f2('0xff'),'alias':_0x3fa8f2('0x2c'),'ReportId':0x12},{'field':_0x3fa8f2('0xf4'),'alias':_0x3fa8f2('0x35'),'ReportId':0x12},{'field':_0x3fa8f2('0xb'),'alias':'StartTime','ReportId':0x12},{'field':_0x3fa8f2('0x1'),'alias':_0x3fa8f2('0x107'),'ReportId':0x12},{'field':_0x3fa8f2('0x48'),'alias':'EndTime','ReportId':0x12},{'field':'duration','alias':_0x3fa8f2('0xfd'),'ReportId':0x12},{'field':'disposition','alias':'Disposition','ReportId':0x12},{'field':'uniqueid','alias':_0x3fa8f2('0xad'),'ReportId':0x13},{'field':'accountcode','alias':_0x3fa8f2('0xd0'),'ReportId':0x13},{'field':_0x3fa8f2('0x37'),'alias':_0x3fa8f2('0xd1'),'ReportId':0x13},{'field':_0x3fa8f2('0x57'),'alias':_0x3fa8f2('0x114'),'ReportId':0x13},{'field':_0x3fa8f2('0x1e'),'alias':'CallerId','ReportId':0x13},{'field':'starttime','alias':_0x3fa8f2('0x93'),'ReportId':0x13},{'field':_0x3fa8f2('0x1'),'alias':'AnswerTime','ReportId':0x13},{'field':_0x3fa8f2('0x48'),'alias':'EndTime','ReportId':0x13},{'field':_0x3fa8f2('0x60'),'alias':_0x3fa8f2('0xfd'),'format':_0x3fa8f2('0x125'),'ReportId':0x13},{'field':_0x3fa8f2('0xf7'),'alias':_0x3fa8f2('0xc3'),'format':_0x3fa8f2('0x125'),'ReportId':0x13},{'field':_0x3fa8f2('0x72'),'alias':'Disposition','ReportId':0x13},{'field':_0x3fa8f2('0x8'),'alias':'Tag','ReportId':0x13},{'field':_0x3fa8f2('0x115'),'alias':_0x3fa8f2('0x9'),'groupBy':0x1,'ReportId':0x14},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x14},{'field':_0x3fa8f2('0x60'),'alias':_0x3fa8f2('0x26'),'function':'SUM','format':_0x3fa8f2('0x125'),'ReportId':0x14},{'field':_0x3fa8f2('0xbc'),'alias':_0x3fa8f2('0xc0'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x14},{'field':_0x3fa8f2('0x72'),'alias':_0x3fa8f2('0x110'),'groupBy':0x1,'ReportId':0x15},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x15},{'field':_0x3fa8f2('0x60'),'alias':_0x3fa8f2('0x26'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'ReportId':0x15},{'field':_0x3fa8f2('0xbc'),'alias':_0x3fa8f2('0xc0'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x15},{'field':'SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','alias':_0x3fa8f2('0x9a'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':'uniqueid','alias':_0x3fa8f2('0xfb'),'function':'COUNT','ReportId':0x16},{'field':_0x3fa8f2('0x60'),'alias':_0x3fa8f2('0x26'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','ReportId':0x16},{'field':_0x3fa8f2('0xbc'),'alias':_0x3fa8f2('0xc0'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x16},{'field':_0x3fa8f2('0xb'),'alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':0x1,'ReportId':0x17},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x17},{'field':_0x3fa8f2('0x60'),'alias':'Tot\x20Duration','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'ReportId':0x17},{'field':'ROUND(AVG(duration))','alias':'Avg\x20Duration','format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x17},{'field':_0x3fa8f2('0xb3'),'alias':'Agent','groupBy':0x1,'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x18},{'field':_0x3fa8f2('0x7e'),'alias':_0x3fa8f2('0xfd'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x18},{'field':_0x3fa8f2('0xb3'),'alias':'Agent','groupBy':0x1,'ReportId':0x19},{'field':_0x3fa8f2('0x8b'),'alias':'Login\x20Time','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x3fa8f2('0xb0'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x19},{'field':_0x3fa8f2('0xc8'),'alias':_0x3fa8f2('0xc9'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x19},{'field':'membername','alias':_0x3fa8f2('0x9a'),'ReportId':0x1a},{'field':'enterAt','alias':_0x3fa8f2('0x7b'),'ReportId':0x1a},{'field':_0x3fa8f2('0xb5'),'alias':_0x3fa8f2('0xea'),'ReportId':0x1a},{'field':_0x3fa8f2('0x116'),'alias':_0x3fa8f2('0xfc'),'ReportId':0x1a},{'field':_0x3fa8f2('0x60'),'alias':_0x3fa8f2('0xfd'),'format':_0x3fa8f2('0x125'),'ReportId':0x1a},{'field':'membername','alias':_0x3fa8f2('0x9a'),'ReportId':0x1b},{'field':_0x3fa8f2('0x12a'),'alias':_0x3fa8f2('0x106'),'ReportId':0x1b},{'field':_0x3fa8f2('0x115'),'alias':_0x3fa8f2('0x1d'),'ReportId':0x1b},{'field':_0x3fa8f2('0x116'),'alias':_0x3fa8f2('0x9'),'ReportId':0x1b},{'field':_0x3fa8f2('0x6a'),'alias':_0x3fa8f2('0x7b'),'ReportId':0x1b},{'field':_0x3fa8f2('0xb5'),'alias':_0x3fa8f2('0xea'),'ReportId':0x1b},{'field':_0x3fa8f2('0x7e'),'alias':_0x3fa8f2('0xfd'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1b},{'field':_0x3fa8f2('0xb3'),'alias':_0x3fa8f2('0x9a'),'groupBy':0x1,'orderBy':'ASC','ReportId':0x1c},{'field':_0x3fa8f2('0x116'),'alias':_0x3fa8f2('0x78'),'groupBy':0x1,'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x1c},{'field':_0x3fa8f2('0x7e'),'alias':'Duration','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':0x1,'ReportId':0x1c},{'field':_0x3fa8f2('0x118'),'alias':_0x3fa8f2('0x27'),'ReportId':0x1d},{'field':'uniqueid','alias':'UniqueId','ReportId':0x1d},{'field':_0x3fa8f2('0x1e'),'alias':'CallerId','ReportId':0x1d},{'field':_0x3fa8f2('0x90'),'alias':_0x3fa8f2('0x12b'),'ReportId':0x1d},{'field':_0x3fa8f2('0x83'),'alias':_0x3fa8f2('0x69'),'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x1d},{'field':_0x3fa8f2('0x17'),'alias':_0x3fa8f2('0x89'),'ReportId':0x1d},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x3fa8f2('0xfd'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1d},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x108'),'ReportId':0x1e},{'field':_0x3fa8f2('0x118'),'alias':_0x3fa8f2('0x27'),'ReportId':0x1e},{'field':_0x3fa8f2('0x1e'),'alias':_0x3fa8f2('0x41'),'ReportId':0x1e},{'field':_0x3fa8f2('0xe1'),'alias':_0x3fa8f2('0x95'),'ReportId':0x1e},{'field':_0x3fa8f2('0x98'),'alias':_0x3fa8f2('0xe6'),'ReportId':0x1e},{'field':_0x3fa8f2('0x75'),'alias':_0x3fa8f2('0x9a'),'groupBy':0x1,'ReportId':0x1f},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x3d'),'function':_0x3fa8f2('0xd4'),'ReportId':0x1f},{'field':_0x3fa8f2('0xe8'),'alias':_0x3fa8f2('0x101'),'function':'SUM','ReportId':0x1f},{'field':'rating','alias':_0x3fa8f2('0x9b'),'function':'AVG','ReportId':0x1f},{'field':_0x3fa8f2('0x9d'),'alias':_0x3fa8f2('0x117'),'groupBy':0x1,'ReportId':0x20},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x14'),'function':_0x3fa8f2('0xd4'),'ReportId':0x20},{'field':_0x3fa8f2('0xe8'),'alias':_0x3fa8f2('0x101'),'function':'SUM','ReportId':0x20},{'field':_0x3fa8f2('0xe8'),'alias':_0x3fa8f2('0x9b'),'function':'AVG','ReportId':0x20},{'field':'campaign','alias':_0x3fa8f2('0xe2'),'ReportId':0x21},{'field':_0x3fa8f2('0xed'),'alias':_0x3fa8f2('0x70'),'ReportId':0x21},{'field':_0x3fa8f2('0xb'),'alias':_0x3fa8f2('0xa9'),'orderBy':_0x3fa8f2('0xf3'),'ReportId':0x21},{'field':_0x3fa8f2('0x102'),'alias':'State','ReportId':0x21},{'field':'countglobal','alias':_0x3fa8f2('0x6e'),'ReportId':0x21},{'field':_0x3fa8f2('0x2f'),'alias':'Drop\x20Reason','ReportId':0x21},{'field':'blacklist','alias':_0x3fa8f2('0xde'),'ReportId':0x21},{'field':_0x3fa8f2('0xb3'),'alias':_0x3fa8f2('0x9a'),'ReportId':0x21},{'field':_0x3fa8f2('0x8a'),'alias':_0x3fa8f2('0xb0'),'ReportId':0x21},{'field':_0x3fa8f2('0x72'),'alias':_0x3fa8f2('0x110'),'ReportId':0x21},{'field':_0x3fa8f2('0x6d'),'alias':'UniqueId','ReportId':0x21},{'field':_0x3fa8f2('0x102'),'alias':_0x3fa8f2('0x126'),'groupBy':!![],'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x22},{'field':'id','alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x22},{'field':_0x3fa8f2('0x39'),'alias':_0x3fa8f2('0x20'),'custom':!![],'ReportId':0x22},{'field':_0x3fa8f2('0x1c'),'alias':_0x3fa8f2('0xe2'),'orderBy':_0x3fa8f2('0x2d'),'groupBy':!![],'ReportId':0x23},{'field':'statedesc','alias':_0x3fa8f2('0x126'),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':'Total\x20Calls','function':'COUNT','ReportId':0x23},{'field':_0x3fa8f2('0x4d'),'groupBy':!![],'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x24},{'field':'id','alias':_0x3fa8f2('0x4c'),'function':_0x3fa8f2('0xd4'),'ReportId':0x24},{'field':'SUM(IF(state=4,1,0))','alias':'Managed','custom':!![],'ReportId':0x24},{'field':_0x3fa8f2('0x109'),'alias':_0x3fa8f2('0xdc'),'custom':!![],'ReportId':0x24},{'field':_0x3fa8f2('0xb3'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x25},{'field':'id','alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x25},{'field':'SEC_TO_TIME(AVG(talktime))','alias':'AVG\x20Talk\x20Time','custom':!![],'ReportId':0x25},{'field':_0x3fa8f2('0x72'),'alias':'Disposition','groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x3fa8f2('0x12'),'function':_0x3fa8f2('0xd4'),'ReportId':0x26},{'field':_0x3fa8f2('0x12f'),'alias':_0x3fa8f2('0x7c'),'custom':!![],'ReportId':0x26},{'field':_0x3fa8f2('0xb3'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x27},{'field':_0x3fa8f2('0x72'),'alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0x3fa8f2('0x12'),'function':_0x3fa8f2('0xd4'),'ReportId':0x27},{'field':_0x3fa8f2('0x12f'),'alias':_0x3fa8f2('0x7c'),'custom':!![],'ReportId':0x27},{'field':'campaign','alias':_0x3fa8f2('0xe2'),'ReportId':0x28},{'field':_0x3fa8f2('0xed'),'alias':'CallerIdNum','ReportId':0x28},{'field':_0x3fa8f2('0xb'),'alias':_0x3fa8f2('0xa9'),'orderBy':_0x3fa8f2('0xf3'),'ReportId':0x28},{'field':'statedesc','alias':_0x3fa8f2('0x126'),'ReportId':0x28},{'field':_0x3fa8f2('0x10b'),'alias':_0x3fa8f2('0x6e'),'ReportId':0x28},{'field':'dropreason','alias':'Drop\x20Reason','ReportId':0x28},{'field':'blacklist','alias':_0x3fa8f2('0xde'),'ReportId':0x28},{'field':'talktime','alias':_0x3fa8f2('0xb0'),'ReportId':0x28},{'field':_0x3fa8f2('0x6d'),'alias':_0x3fa8f2('0x51'),'ReportId':0x28},{'field':_0x3fa8f2('0x102'),'alias':_0x3fa8f2('0x126'),'groupBy':!![],'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x29},{'field':'id','alias':_0x3fa8f2('0xfb'),'function':_0x3fa8f2('0xd4'),'ReportId':0x29},{'field':_0x3fa8f2('0x119'),'alias':_0x3fa8f2('0x20'),'custom':!![],'ReportId':0x29},{'field':_0x3fa8f2('0x1c'),'alias':_0x3fa8f2('0xe2'),'orderBy':_0x3fa8f2('0x2d'),'groupBy':!![],'ReportId':0x2a},{'field':_0x3fa8f2('0x102'),'alias':_0x3fa8f2('0x126'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x3fa8f2('0xa6'),'function':_0x3fa8f2('0xd4'),'ReportId':0x2a},{'field':_0x3fa8f2('0x4d'),'groupBy':!![],'orderBy':_0x3fa8f2('0x2d'),'ReportId':0x2b},{'field':'id','alias':_0x3fa8f2('0x4c'),'function':_0x3fa8f2('0xd4'),'ReportId':0x2b},{'field':'SUM(IF(state=4,1,0))','alias':_0x3fa8f2('0x7f'),'custom':!![],'ReportId':0x2b},{'field':'ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','alias':_0x3fa8f2('0xdc'),'custom':!![],'ReportId':0x2b},{'field':_0x3fa8f2('0xa8'),'alias':_0x3fa8f2('0x1b'),'groupBy':!![],'ReportId':0x2c},{'field':_0x3fa8f2('0x131'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x2c},{'field':_0x3fa8f2('0x54'),'alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x2c},{'field':_0x3fa8f2('0x4b'),'alias':'Closed','custom':!![],'ReportId':0x2c},{'field':_0x3fa8f2('0xfe'),'alias':_0x3fa8f2('0x12d'),'custom':!![],'ReportId':0x2c},{'field':'COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','alias':_0x3fa8f2('0xe3'),'custom':!![],'ReportId':0x2c},{'field':_0x3fa8f2('0xa8'),'alias':_0x3fa8f2('0x1b'),'groupBy':!![],'ReportId':0x2d},{'field':_0x3fa8f2('0xf9'),'alias':_0x3fa8f2('0xa0'),'function':'SUM','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x2d},{'field':_0x3fa8f2('0x53'),'alias':'AVG\x20Interaction\x20Time','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x2d},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x2e},{'field':_0x3fa8f2('0x63'),'alias':'Closed','function':'SUM','ReportId':0x2e},{'field':_0x3fa8f2('0xf9'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x2e},{'field':_0x3fa8f2('0x53'),'alias':_0x3fa8f2('0x11f'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':_0x3fa8f2('0x5e'),'alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x131'),'alias':'Interactions','function':_0x3fa8f2('0xd4'),'ReportId':0x2f},{'field':_0x3fa8f2('0x4b'),'alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x10a'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x2f},{'field':'COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','alias':_0x3fa8f2('0x12d'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x3fa8f2('0x129'),'custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x86'),'alias':'Abandoned','custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x124'),'alias':_0x3fa8f2('0xa3'),'custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x19'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0x55'),'alias':'AVG\x20Interaction\x20Time','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x2f},{'field':_0x3fa8f2('0xda'),'alias':'Queue','groupBy':!![],'ReportId':0x30},{'field':_0x3fa8f2('0x5d'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':'Accepted','custom':!![],'ReportId':0x30},{'field':_0x3fa8f2('0xee'),'alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x30},{'field':_0x3fa8f2('0x42'),'alias':_0x3fa8f2('0x61'),'function':'SUM','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x30},{'field':_0x3fa8f2('0x128'),'alias':_0x3fa8f2('0x3a'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x30},{'field':_0x3fa8f2('0x4a'),'alias':'Email\x20Account','groupBy':!![],'ReportId':0x31},{'field':'mail_interactions.id','alias':_0x3fa8f2('0x4f'),'function':'COUNT','ReportId':0x31},{'field':_0x3fa8f2('0x54'),'alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x31},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x85'),'custom':!![],'ReportId':0x31},{'field':'mail_accounts.name','alias':_0x3fa8f2('0x10'),'groupBy':!![],'ReportId':0x32},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x32},{'field':_0x3fa8f2('0x84'),'alias':_0x3fa8f2('0x11f'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x32},{'field':_0x3fa8f2('0x8d'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x33},{'field':_0x3fa8f2('0x9f'),'alias':'Closed','function':_0x3fa8f2('0x80'),'ReportId':0x33},{'field':_0x3fa8f2('0xc7'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x33},{'field':_0x3fa8f2('0x84'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x33},{'field':_0x3fa8f2('0x68'),'alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x3fa8f2('0x21'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x34},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x34},{'field':_0x3fa8f2('0xdd'),'alias':_0x3fa8f2('0x5c'),'custom':!![],'ReportId':0x34},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x3fa8f2('0xa0'),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x34},{'field':_0x3fa8f2('0x55'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x34},{'field':'mail_queues.name','alias':_0x3fa8f2('0x117'),'groupBy':!![],'ReportId':0x35},{'field':_0x3fa8f2('0x2e'),'alias':'Interactions','function':'COUNT','ReportId':0x35},{'field':_0x3fa8f2('0x5'),'alias':'Accepted','custom':!![],'ReportId':0x35},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x35},{'field':_0x3fa8f2('0x42'),'alias':_0x3fa8f2('0x61'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x35},{'field':_0x3fa8f2('0x128'),'alias':_0x3fa8f2('0x3a'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x35},{'field':_0x3fa8f2('0x4e'),'alias':_0x3fa8f2('0xd'),'groupBy':!![],'ReportId':0x36},{'field':_0x3fa8f2('0xf8'),'alias':_0x3fa8f2('0x4f'),'function':'COUNT','ReportId':0x36},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x36},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x3fa8f2('0x85'),'custom':!![],'ReportId':0x36},{'field':'openchannel_accounts.name','alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x37},{'field':_0x3fa8f2('0x9e'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':_0x3fa8f2('0xf2'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x37},{'field':_0x3fa8f2('0x8d'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x38},{'field':_0x3fa8f2('0x12e'),'alias':_0x3fa8f2('0x85'),'function':_0x3fa8f2('0x80'),'ReportId':0x38},{'field':_0x3fa8f2('0x9e'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x38},{'field':_0x3fa8f2('0xf2'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x3fa8f2('0xf8'),'alias':_0x3fa8f2('0x4f'),'function':'COUNT','ReportId':0x39},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x39},{'field':_0x3fa8f2('0xdd'),'alias':_0x3fa8f2('0x5c'),'custom':!![],'ReportId':0x39},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x39},{'field':_0x3fa8f2('0x55'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x39},{'field':_0x3fa8f2('0x10d'),'alias':_0x3fa8f2('0x117'),'groupBy':!![],'ReportId':0x3a},{'field':_0x3fa8f2('0x79'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x3a},{'field':_0x3fa8f2('0x5'),'alias':_0x3fa8f2('0xef'),'custom':!![],'ReportId':0x3a},{'field':_0x3fa8f2('0xee'),'alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x3a},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x3fa8f2('0x61'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x3fa8f2('0x128'),'alias':_0x3fa8f2('0x3a'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3a},{'field':'sms_accounts.name','alias':_0x3fa8f2('0x65'),'groupBy':!![],'ReportId':0x3b},{'field':'sms_interactions.id','alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x3b},{'field':_0x3fa8f2('0x54'),'alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x3b},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x85'),'custom':!![],'ReportId':0x3b},{'field':_0x3fa8f2('0xb4'),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3c},{'field':_0x3fa8f2('0x74'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3c},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3c},{'field':_0x3fa8f2('0x8d'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x3d},{'field':_0x3fa8f2('0xba'),'alias':'Closed','function':_0x3fa8f2('0x80'),'ReportId':0x3d},{'field':_0x3fa8f2('0x74'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3d},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':'sms_interactions.createdAt','alias':'Date','format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x3fa8f2('0xaf'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x3e},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x3e},{'field':_0x3fa8f2('0xdd'),'alias':_0x3fa8f2('0x5c'),'custom':!![],'ReportId':0x3e},{'field':_0x3fa8f2('0x19'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3e},{'field':_0x3fa8f2('0x55'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3e},{'field':'sms_queues.name','alias':_0x3fa8f2('0x117'),'groupBy':!![],'ReportId':0x3f},{'field':'report_sms_queue.id','alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x3f},{'field':_0x3fa8f2('0x5'),'alias':_0x3fa8f2('0xef'),'custom':!![],'ReportId':0x3f},{'field':_0x3fa8f2('0xee'),'alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x3f},{'field':_0x3fa8f2('0x42'),'alias':'Hold\x20Time','function':_0x3fa8f2('0x80'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x3fa8f2('0x128'),'alias':_0x3fa8f2('0x3a'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x3f},{'field':_0x3fa8f2('0x7'),'alias':'Queue','groupBy':!![],'ReportId':0x44},{'field':_0x3fa8f2('0x66'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x44},{'field':_0x3fa8f2('0x5'),'alias':_0x3fa8f2('0xef'),'custom':!![],'ReportId':0x44},{'field':_0x3fa8f2('0xee'),'alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x44},{'field':_0x3fa8f2('0x42'),'alias':_0x3fa8f2('0x61'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x44},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x3fa8f2('0x3a'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x44},{'field':_0x3fa8f2('0xca'),'alias':'Date','format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x3fa8f2('0x3f'),'alias':_0x3fa8f2('0x4f'),'function':'COUNT','ReportId':0x43},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x43},{'field':_0x3fa8f2('0xdd'),'alias':_0x3fa8f2('0x5c'),'custom':!![],'ReportId':0x43},{'field':_0x3fa8f2('0x19'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x43},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x43},{'field':_0x3fa8f2('0x8d'),'alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x42},{'field':'fax_interactions.closed','alias':'Closed','function':_0x3fa8f2('0x80'),'ReportId':0x42},{'field':_0x3fa8f2('0xab'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x42},{'field':_0x3fa8f2('0x34'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x42},{'field':_0x3fa8f2('0xe4'),'alias':_0x3fa8f2('0xbf'),'groupBy':!![],'ReportId':0x41},{'field':_0x3fa8f2('0xab'),'alias':'Interaction\x20Time','function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0x3fa8f2('0x34'),'alias':'AVG\x20Interaction\x20Time','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x41},{'field':_0x3fa8f2('0xe4'),'alias':_0x3fa8f2('0xbf'),'groupBy':!![],'ReportId':0x40},{'field':_0x3fa8f2('0x3f'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x40},{'field':_0x3fa8f2('0x54'),'alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x40},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x85'),'custom':!![],'ReportId':0x40},{'field':'voice_recordings.UserId','alias':_0x3fa8f2('0x5a'),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x3fa8f2('0x8d'),'alias':_0x3fa8f2('0xc2'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x3fa8f2('0xdb'),'alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3fa8f2('0x127'),'alias':_0x3fa8f2('0x11b'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3fa8f2('0xa'),'alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3fa8f2('0x64'),'alias':'MIXED','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'voice_recordings.sentiment','alias':_0x3fa8f2('0x103'),'function':_0x3fa8f2('0xd4'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x3fa8f2('0x11e'),'alias':_0x3fa8f2('0x13'),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x3fa8f2('0x88'),'alias':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3fa8f2('0xb8'),'alias':_0x3fa8f2('0x62'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3fa8f2('0x94'),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'voice_recordings.sentiment','alias':'Sentiment\x20TOT','function':_0x3fa8f2('0xd4'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x3fa8f2('0xdb'),'alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0x127'),'alias':_0x3fa8f2('0x11b'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0xa'),'alias':_0x3fa8f2('0x47'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0x64'),'alias':_0x3fa8f2('0xd7'),'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':_0x3fa8f2('0x13'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0x88'),'alias':_0x3fa8f2('0x81'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0xb8'),'alias':_0x3fa8f2('0x62'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3fa8f2('0x94'),'alias':_0x3fa8f2('0xbe'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'whatsapp_accounts.name','alias':_0x3fa8f2('0xc'),'groupBy':!![],'ReportId':0x45},{'field':_0x3fa8f2('0x112'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x45},{'field':_0x3fa8f2('0x54'),'alias':_0x3fa8f2('0x67'),'custom':!![],'ReportId':0x45},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x3fa8f2('0x85'),'custom':!![],'ReportId':0x45},{'field':'whatsapp_accounts.name','alias':_0x3fa8f2('0xc'),'groupBy':!![],'ReportId':0x46},{'field':_0x3fa8f2('0x6c'),'alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x46},{'field':_0x3fa8f2('0xb9'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x46},{'field':'users.fullname','alias':_0x3fa8f2('0x9a'),'groupBy':!![],'ReportId':0x47},{'field':_0x3fa8f2('0xa2'),'alias':_0x3fa8f2('0x85'),'function':_0x3fa8f2('0x80'),'ReportId':0x47},{'field':_0x3fa8f2('0x6c'),'alias':_0x3fa8f2('0xa0'),'function':'SUM','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x47},{'field':_0x3fa8f2('0xb9'),'alias':_0x3fa8f2('0x11f'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x47},{'field':_0x3fa8f2('0xb1'),'alias':_0x3fa8f2('0x43'),'format':_0x3fa8f2('0x92'),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x3fa8f2('0x112'),'alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x48},{'field':_0x3fa8f2('0xae'),'alias':_0x3fa8f2('0x45'),'custom':!![],'ReportId':0x48},{'field':_0x3fa8f2('0xdd'),'alias':_0x3fa8f2('0x5c'),'custom':!![],'ReportId':0x48},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x3fa8f2('0xa0'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x48},{'field':_0x3fa8f2('0x55'),'alias':'AVG\x20Interaction\x20Time','format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x48},{'field':_0x3fa8f2('0x2b'),'alias':_0x3fa8f2('0x117'),'groupBy':!![],'ReportId':0x49},{'field':'report_whatsapp_queue.id','alias':_0x3fa8f2('0x4f'),'function':_0x3fa8f2('0xd4'),'ReportId':0x49},{'field':_0x3fa8f2('0x5'),'alias':_0x3fa8f2('0xef'),'custom':!![],'ReportId':0x49},{'field':_0x3fa8f2('0xee'),'alias':_0x3fa8f2('0xb2'),'custom':!![],'ReportId':0x49},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x3fa8f2('0x61'),'function':_0x3fa8f2('0x80'),'format':_0x3fa8f2('0x125'),'custom':!![],'ReportId':0x49},{'field':_0x3fa8f2('0x128'),'alias':'AVG\x20Hold\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x49}];return _[_0x3fa8f2('0x73')](_0x42e782,_0x3fa8f2('0x97'));}; \ No newline at end of file +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 diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index 6e1c62b..3181947 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -var a870_0x34bf=['./fields','./default','exports'];(function(_0x3ca6f3,_0x34bf94){var _0x190ddc=function(_0x2ecf8e){while(--_0x2ecf8e){_0x3ca6f3['push'](_0x3ca6f3['shift']());}};_0x190ddc(++_0x34bf94);}(a870_0x34bf,0x1d2));var a870_0x190d=function(_0x3ca6f3,_0x34bf94){_0x3ca6f3=_0x3ca6f3-0x0;var _0x190ddc=a870_0x34bf[_0x3ca6f3];return _0x190ddc;};var _0x5edd4e=a870_0x190d;'use strict';module[_0x5edd4e('0x1')]={'default':require(_0x5edd4e('0x0')),'fields':require(_0x5edd4e('0x2'))}; \ No newline at end of file +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 diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index 6602c0a..31c44c5 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a871_0xb5de=['wav','agentmanagement-action-failure','auto\x20generated\x20sound','Agent\x20Action\x20Failure','../logger','error','Order\x20Shipped','Order\x20Message','agentmanagement-login','Agent\x20End\x20Pause','agentmanagement-pause','Sound','rate-call','mp3','Welcome\x20Message','info','Call\x20Rating\x20Message','app','Agent\x20Menu','then','Agent\x20Pause','agentmanagement-logout','Agent\x20Logout','bulkCreate','Order\x20Elaborated','thanx','order-elaborated','Agent\x20Login','Thank\x20You','agentmanagement-menu'];(function(_0x39b3f7,_0xb5de3c){const _0x3ba7a2=function(_0x574396){while(--_0x574396){_0x39b3f7['push'](_0x39b3f7['shift']());}};_0x3ba7a2(++_0xb5de3c);}(a871_0xb5de,0x1ea));const a871_0x3ba7=function(_0x39b3f7,_0xb5de3c){_0x39b3f7=_0x39b3f7-0x0;let _0x3ba7a2=a871_0xb5de[_0x39b3f7];return _0x3ba7a2;};const _0x40b026=a871_0x3ba7;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x40b026('0x18'))(_0x40b026('0x7')),sounds=[{'id':0x1,'name':_0x40b026('0x4'),'save_name':'welcome-acme','display_name':_0x40b026('0x4'),'original_format':'wav','converted_format':_0x40b026('0x14'),'description':'auto\x20generated\x20sound'},{'id':0x2,'name':_0x40b026('0x1b'),'save_name':'order-number','display_name':'Order\x20Message','original_format':'wav','converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x3,'name':'Order\x20Shipped','save_name':'order-shipped','display_name':_0x40b026('0x1a'),'original_format':_0x40b026('0x14'),'converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x4,'name':_0x40b026('0xe'),'save_name':_0x40b026('0x10'),'display_name':_0x40b026('0xe'),'original_format':_0x40b026('0x14'),'converted_format':'wav','description':'auto\x20generated\x20sound'},{'id':0x5,'name':'Call\x20Rating\x20Message','save_name':_0x40b026('0x2'),'display_name':_0x40b026('0x6'),'original_format':_0x40b026('0x14'),'converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x6,'name':_0x40b026('0x12'),'save_name':_0x40b026('0xf'),'display_name':_0x40b026('0x12'),'original_format':_0x40b026('0x14'),'converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x7,'name':_0x40b026('0x11'),'save_name':_0x40b026('0x1c'),'display_name':_0x40b026('0x11'),'original_format':'mp3','converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x8,'name':_0x40b026('0xc'),'save_name':_0x40b026('0xb'),'display_name':'Agent\x20Logout','original_format':'mp3','converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0x9,'name':_0x40b026('0x8'),'save_name':_0x40b026('0x13'),'display_name':'Agent\x20Menu','original_format':'wav','converted_format':'wav','description':_0x40b026('0x16')},{'id':0xa,'name':_0x40b026('0xa'),'save_name':_0x40b026('0x0'),'display_name':_0x40b026('0xa'),'original_format':_0x40b026('0x3'),'converted_format':_0x40b026('0x14'),'description':'auto\x20generated\x20sound'},{'id':0xb,'name':_0x40b026('0x1d'),'save_name':'agentmanagement-unpause','display_name':_0x40b026('0x1d'),'original_format':_0x40b026('0x3'),'converted_format':_0x40b026('0x14'),'description':_0x40b026('0x16')},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':_0x40b026('0x15'),'display_name':_0x40b026('0x17'),'original_format':_0x40b026('0x14'),'converted_format':'wav','description':_0x40b026('0x16')}];exports['create']=function(){const _0x524cdc=_0x40b026;return db[_0x524cdc('0x1')][_0x524cdc('0xd')](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x524cdc('0x9')](function(){const _0x2a0497=_0x524cdc;logger[_0x2a0497('0x5')]('Sounds\x20have\x20been\x20created');})['catch'](function(){const _0x558b90=_0x524cdc;logger[_0x558b90('0x19')]('Can\x27t\x20create\x20Sounds');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index 7543274..450bf9a 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a872_0x2020=['xcally-motion-database','app','error','then','SquareOdbc','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','create','ODBC\x20have\x20been\x20created','xcally\x20motion\x20db\x20auto\x20generated'];(function(_0x1c6da2,_0x202086){const _0x3c5baf=function(_0x49c512){while(--_0x49c512){_0x1c6da2['push'](_0x1c6da2['shift']());}};_0x3c5baf(++_0x202086);}(a872_0x2020,0x134));const a872_0x3c5b=function(_0x1c6da2,_0x202086){_0x1c6da2=_0x1c6da2-0x0;let _0x3c5baf=a872_0x2020[_0x1c6da2];return _0x3c5baf;};const _0xe1102=a872_0x3c5b;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')(_0xe1102('0x8')),odbc=[{'id':0x1,'name':_0xe1102('0x7'),'dsn':_0xe1102('0x3'),'description':_0xe1102('0x6')}];exports[_0xe1102('0x4')]=function(){const _0x2bc86b=_0xe1102;return db[_0x2bc86b('0x2')]['bulkCreate'](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2bc86b('0x1')](function(){const _0x4c17ff=_0x2bc86b;logger['info'](_0x4c17ff('0x5'));})['catch'](function(){const _0xcf9382=_0x2bc86b;logger[_0xcf9382('0x0')]('Can\x27t\x20create\x20ODBC');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index 6bf88c6..2deec28 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a873_0x4ace=['info','SquareProject','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','../../mysqldb','Can\x27t\x20create\x20Square\x20Projects','Basic\x20IVR\x20sample\x20auto\x20generated','app','Survey','Orders','CSI','create','Survey\x20IVR\x20sample\x20auto\x20generated','utf-8','../logger','bulkCreate','join','error','AgentManagement','AutoAttendant','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','path','Square\x20Projects\x20have\x20been\x20created','.xml'];(function(_0x36f5b6,_0x4ace23){const _0x11110d=function(_0x46b68d){while(--_0x46b68d){_0x36f5b6['push'](_0x36f5b6['shift']());}};_0x11110d(++_0x4ace23);}(a873_0x4ace,0x1bc));const a873_0x1111=function(_0x36f5b6,_0x4ace23){_0x36f5b6=_0x36f5b6-0x0;let _0x11110d=a873_0x4ace[_0x36f5b6];return _0x11110d;};const _0x3ba5fc=a873_0x1111;'use strict';const fs=require('fs'),path=require(_0x3ba5fc('0xd')),db=require(_0x3ba5fc('0x13'))['db'],logger=require(_0x3ba5fc('0x6'))(_0x3ba5fc('0x16')),getXml=function(_0x46b68d){const _0x499557=_0x3ba5fc;return fs['readFileSync'](path[_0x499557('0x8')](__dirname,'xml',_0x46b68d+_0x499557('0xf')),{'encoding':_0x499557('0x5')});},squareProjects=[{'id':0x1,'name':_0x3ba5fc('0xb'),'description':_0x3ba5fc('0x15'),'preproduction':getXml('AutoAttendant'),'production':getXml(_0x3ba5fc('0xb'))},{'id':0x2,'name':_0x3ba5fc('0x2'),'description':_0x3ba5fc('0x12'),'preproduction':getXml(_0x3ba5fc('0x2')),'production':getXml(_0x3ba5fc('0x2'))},{'id':0x3,'name':_0x3ba5fc('0x1'),'description':_0x3ba5fc('0xc'),'preproduction':getXml('Orders'),'production':getXml(_0x3ba5fc('0x1'))},{'id':0x4,'name':_0x3ba5fc('0x0'),'description':_0x3ba5fc('0x4'),'preproduction':getXml(_0x3ba5fc('0x0')),'production':getXml(_0x3ba5fc('0x0'))},{'id':0x5,'name':'AgentManagement','description':'Agent\x20Management\x20sample\x20auto\x20generated','preproduction':getXml(_0x3ba5fc('0xa')),'production':getXml('AgentManagement')}];exports[_0x3ba5fc('0x3')]=function(){const _0x3d2c3b=_0x3ba5fc;return db[_0x3d2c3b('0x11')][_0x3d2c3b('0x7')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3a972b=_0x3d2c3b;logger[_0x3a972b('0x10')](_0x3a972b('0xe'));})['catch'](function(){const _0x57f8cd=_0x3d2c3b;logger[_0x57f8cd('0x9')](_0x57f8cd('0x14'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index 75d023b..e1c305e 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a874_0x1a17=['about_sales','faq','info','tag\x20faq\x20auto\x20generated','Tags\x20have\x20been\x20created','installation','Tag','name','then','map','forums','../logger','tag\x20defective\x20auto\x20generated','tag\x20about_sales\x20auto\x20generated','bulkCreate','defective','tag\x20forums\x20auto\x20generated','catch'];(function(_0x221b42,_0x1a1708){const _0x253f4c=function(_0x5cd74c){while(--_0x5cd74c){_0x221b42['push'](_0x221b42['shift']());}};_0x253f4c(++_0x1a1708);}(a874_0x1a17,0x12e));const a874_0x253f=function(_0x221b42,_0x1a1708){_0x221b42=_0x221b42-0x0;let _0x253f4c=a874_0x1a17[_0x221b42];return _0x253f4c;};const _0x29603a=a874_0x253f;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x29603a('0xf'))('app'),tags=[{'id':0x1,'name':_0x29603a('0xe'),'description':_0x29603a('0x2')},{'id':0x2,'name':_0x29603a('0x1'),'description':_0x29603a('0x10')},{'id':0x3,'name':_0x29603a('0x5'),'description':_0x29603a('0x7')},{'id':0x4,'name':_0x29603a('0x9'),'description':'tag\x20installation\x20auto\x20generated'},{'id':0x5,'name':_0x29603a('0x4'),'description':_0x29603a('0x11')}];exports['create']=function(){const _0x3e6e9c=_0x29603a;return db[_0x3e6e9c('0xa')][_0x3e6e9c('0x0')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3e6e9c('0xc')](function(){const _0x25b5c8=_0x3e6e9c;logger[_0x25b5c8('0x6')](_0x25b5c8('0x8'));})[_0x3e6e9c('0x3')](function(){logger['error']('Can\x27t\x20create\x20Tags');});},exports['getNames']=function(){const _0x2eee16=_0x29603a;return _[_0x2eee16('0xd')](tags,_0x2eee16('0xb'));}; \ No newline at end of file +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 diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index a0af22d..8d326bd 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a875_0x3c19=['then','Team','Can\x27t\x20create\x20Teams','length','create','error','bulkCreate','../../mysqldb','Demo\x20Team','Teams\x20have\x20been\x20created','demo\x20team\x20auto\x20generated'];(function(_0x2e9f35,_0x3c196d){const _0x2b5550=function(_0x4974d9){while(--_0x4974d9){_0x2e9f35['push'](_0x2e9f35['shift']());}};_0x2b5550(++_0x3c196d);}(a875_0x3c19,0xe8));const a875_0x2b55=function(_0x2e9f35,_0x3c196d){_0x2e9f35=_0x2e9f35-0x0;let _0x2b5550=a875_0x3c19[_0x2e9f35];return _0x2b5550;};const _0x4d3f39=a875_0x2b55;'use strict';const db=require(_0x4d3f39('0x6'))['db'],logger=require('../logger')('app'),teams=[{'id':0x1,'name':_0x4d3f39('0x7'),'description':_0x4d3f39('0x9')}];exports[_0x4d3f39('0x3')]=function(){const _0x3cd989=_0x4d3f39;return db[_0x3cd989('0x0')][_0x3cd989('0x5')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3cd989('0xa')](function(_0x4974d9){const _0xe011a3=_0x3cd989;for(let _0x11572f=0x0;_0x11572f<_0x4974d9[_0xe011a3('0x2')];_0x11572f+=0x1){_0x4974d9[_0x11572f]['addAgents']([0x2,0x3]);}})[_0x3cd989('0xa')](function(){const _0x587713=_0x3cd989;logger['info'](_0x587713('0x8'));})['catch'](function(){const _0x20ba13=_0x3cd989;logger[_0x20ba13('0x4')](_0x20ba13('0x1'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/tree/index.js b/server/config/seedDB/tree/index.js index 47ad9a8..e1fb941 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a876_0x1b53=['icon-laptop-chromebook','mail','icon\x20s20\x20icon-whatsapp','icon\x20s20\x20icon-google-earth','IVR\x20Campaigns','chat','Calls','Chat','Motion','queue_campaigns','agents','motion','Distribution','whatsapp','icon\x20s20\x20icon-deskphone','icon\x20s20\x20icon-hangouts','bull','Openchannel','icon\x20s20\x20icon-microphone','Cally\x20Square','Fax','fax','icon\x20s20\x20icon-sitemap','icon\x20s20\x20icon-fire','Unanswered','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-account-multiple','icon\x20s20\x20icon-phone-log','queues','icon\x20s20\x20icon-stackoverflow','recordings','voice','answered','Sms','Queue\x20Campaigns','ivr_campaigns','custom','Motion\x20Bull','Answered','icon\x20s20\x20icon-email','openchannel','sms','icon\x20s20\x20icon-phone-dots','WhatsApp\x20Connector','Agents','callysquare','unanswered'];(function(_0x56370d,_0x1b5355){var _0x557bb6=function(_0x462b09){while(--_0x462b09){_0x56370d['push'](_0x56370d['shift']());}};_0x557bb6(++_0x1b5355);}(a876_0x1b53,0x107));var a876_0x557b=function(_0x56370d,_0x1b5355){_0x56370d=_0x56370d-0x0;var _0x557bb6=a876_0x1b53[_0x56370d];return _0x557bb6;};var _0x909483=a876_0x557b;'use strict';function getQueuesChildren(_0x462b09){var _0x62ba96=a876_0x557b;return _0x462b09+='_',[{'id':_0x462b09+_0x62ba96('0x4'),'text':_0x62ba96('0xa')},{'id':_0x462b09+_0x62ba96('0x12'),'text':_0x62ba96('0x2b')},{'id':_0x462b09+'distribution','text':_0x62ba96('0x1f')}];}function getVoiceChildren(_0x44b262){var _0x1d2d31=a876_0x557b;return _0x44b262+='_',[{'id':_0x44b262+_0x1d2d31('0x0'),'text':'Queues','icon':_0x1d2d31('0x1'),'children':getQueuesChildren(_0x44b262+_0x1d2d31('0x0'))},{'id':_0x44b262+'calls','text':_0x1d2d31('0x19'),'icon':_0x1d2d31('0xe')},{'id':_0x44b262+_0x1d2d31('0x1d'),'text':_0x1d2d31('0x10'),'icon':_0x1d2d31('0x2d')},{'id':_0x44b262+_0x1d2d31('0x11'),'text':_0x1d2d31('0x26'),'icon':'icon\x20s20\x20icon-sitemap'},{'id':_0x44b262+_0x1d2d31('0x2'),'text':'Recordings','icon':_0x1d2d31('0x25')}];}function getBullChildren(_0x314974){var _0x26d09b=a876_0x557b;return _0x314974+='_',[{'id':_0x314974+_0x26d09b('0x1c'),'text':_0x26d09b('0x6'),'icon':_0x26d09b('0x1')},{'id':_0x314974+_0x26d09b('0x7'),'text':_0x26d09b('0x17'),'icon':_0x26d09b('0x29')}];}function getMotionChildren(_0x5dd753){var _0x474fec=a876_0x557b;return _0x5dd753+='_',[{'id':_0x5dd753+_0x474fec('0x3'),'text':'Voice','icon':_0x474fec('0x2e'),'children':getVoiceChildren(_0x5dd753+_0x474fec('0x3'))},{'id':_0x5dd753+_0x474fec('0x23'),'text':_0x474fec('0x9'),'icon':_0x474fec('0x2a'),'children':getBullChildren(_0x5dd753+'bull')},{'id':_0x5dd753+_0x474fec('0x18'),'text':_0x474fec('0x1a'),'icon':_0x474fec('0x22')},{'id':_0x5dd753+_0x474fec('0x14'),'text':'Email','icon':_0x474fec('0xb')},{'id':_0x5dd753+_0x474fec('0xc'),'text':_0x474fec('0x24'),'icon':_0x474fec('0x16')},{'id':_0x5dd753+_0x474fec('0xd'),'text':_0x474fec('0x5'),'icon':_0x474fec('0x2c')},{'id':_0x5dd753+_0x474fec('0x28'),'text':_0x474fec('0x27'),'icon':_0x474fec('0x21')},{'id':_0x5dd753+_0x474fec('0x20'),'text':_0x474fec('0xf'),'icon':_0x474fec('0x15')},{'id':_0x5dd753+'agents','text':_0x474fec('0x10'),'icon':_0x474fec('0x2d')}];}function getTree(_0x42207f){var _0x471973=a876_0x557b;return[{'id':_0x42207f?_0x471973('0x8'):'motion','text':(_0x42207f?'Custom':_0x471973('0x1b'))+'\x20Reports','icon':'icon\x20s20\x20'+(_0x42207f?_0x471973('0x13'):'icon-cloud'),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x42207f?'custom':_0x471973('0x1e'))}];}exports['motion']=getTree(![]),exports[_0x909483('0x8')]=getTree(!![]); \ No newline at end of file +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 diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index 97fbd8d..b9b93f7 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a877_0x2c7d=['create','app','demo','Can\x27t\x20create\x20Trunks','then','Trunks\x20have\x20been\x20created','../../mysqldb','info','bulkCreate','trunk\x20demo\x20auto\x20generated','55xcally55','Trunk','../logger'];(function(_0x36e494,_0x2c7df6){const _0x13bc42=function(_0x3c4c15){while(--_0x3c4c15){_0x36e494['push'](_0x36e494['shift']());}};_0x13bc42(++_0x2c7df6);}(a877_0x2c7d,0xc4));const a877_0x13bc=function(_0x36e494,_0x2c7df6){_0x36e494=_0x36e494-0x0;let _0x13bc42=a877_0x2c7d[_0x36e494];return _0x13bc42;};const _0x4a43bb=a877_0x13bc;'use strict';const db=require(_0x4a43bb('0x5'))['db'],logger=require(_0x4a43bb('0xb'))(_0x4a43bb('0x0')),trunks=[{'id':0x1,'name':_0x4a43bb('0x1'),'secret':_0x4a43bb('0x9'),'defaultuser':_0x4a43bb('0x1'),'description':_0x4a43bb('0x8')}];exports[_0x4a43bb('0xc')]=function(){const _0x43e2b1=_0x4a43bb;return db[_0x43e2b1('0xa')][_0x43e2b1('0x7')](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x43e2b1('0x3')](function(){const _0x3a4d78=_0x43e2b1;logger[_0x3a4d78('0x6')](_0x3a4d78('0x4'));})['catch'](function(){const _0x503e3b=_0x43e2b1;logger['error'](_0x503e3b('0x2'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/userProfiles.js b/server/config/seedDB/userProfiles.js index c4e21fa..202dd0d 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a878_0x3745=['then','app','UserProfile','catch','User\x20Profiles\x20have\x20been\x20created','info','Can\x27t\x20create\x20User\x20Profiles','Default'];(function(_0x5bcc38,_0x374500){const _0x1c89ba=function(_0x508a34){while(--_0x508a34){_0x5bcc38['push'](_0x5bcc38['shift']());}};_0x1c89ba(++_0x374500);}(a878_0x3745,0x1d9));const a878_0x1c89=function(_0x5bcc38,_0x374500){_0x5bcc38=_0x5bcc38-0x0;let _0x1c89ba=a878_0x3745[_0x5bcc38];return _0x1c89ba;};const _0x5a8a1d=a878_0x1c89;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')(_0x5a8a1d('0x0')),userProfiles=[{'id':0x1,'name':_0x5a8a1d('0x6'),'crudPermissions':['r','e','d'],'description':'Auto\x20generated\x20User\x20Profile'}];exports['create']=function(){const _0x215190=_0x5a8a1d;return db[_0x215190('0x1')]['bulkCreate'](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x215190('0x7')](function(){const _0x15bbf3=_0x215190;logger[_0x15bbf3('0x4')](_0x15bbf3('0x3'));})[_0x215190('0x2')](function(){const _0x468c03=_0x215190;logger['error'](_0x468c03('0x5'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index 2a77735..72b2b4e 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a879_0x204c=['Users\x20have\x20been\x20created','jane.miller','bulkCreate','Jane\x20Miller','password','shuttle55','Can\x27t\x20create\x20Users','jane.miller@xcally.com','agent','101,102,103,113,110,104,105,106,107,108,109,100,111,114','agent\x20auto\x20generated','user\x20auto\x20generated','john.doe@xcally.com','Administrator','admin@xcally.com','User','then','error','../../mysqldb','John\x20Doe','../logger','split','catch','admin'];(function(_0x4812aa,_0x204cc8){const _0x15a803=function(_0x4dc278){while(--_0x4dc278){_0x4812aa['push'](_0x4812aa['shift']());}};_0x15a803(++_0x204cc8);}(a879_0x204c,0x15d));const a879_0x15a8=function(_0x4812aa,_0x204cc8){_0x4812aa=_0x4812aa-0x0;let _0x15a803=a879_0x204c[_0x4812aa];return _0x15a803;};const _0x4704d8=a879_0x15a8;'use strict';const db=require(_0x4704d8('0x5'))['db'],logger=require(_0x4704d8('0x7'))('app'),users=[{'id':0x1,'role':_0x4704d8('0xa'),'name':_0x4704d8('0xa'),'password':_0x4704d8('0xf'),'fullname':_0x4704d8('0x0'),'email':_0x4704d8('0x1'),'internal':0x3e8,'description':_0x4704d8('0x16')},{'id':0x2,'role':_0x4704d8('0x13'),'name':'john.doe','email':_0x4704d8('0x17'),'password':_0x4704d8('0x10'),'fullname':_0x4704d8('0x6'),'internal':0x3e9,'permissions':_0x4704d8('0x14')[_0x4704d8('0x8')](','),'description':_0x4704d8('0x15')},{'id':0x3,'role':_0x4704d8('0x13'),'name':_0x4704d8('0xc'),'email':_0x4704d8('0x12'),'password':_0x4704d8('0x10'),'fullname':_0x4704d8('0xe'),'internal':0x3ea,'permissions':_0x4704d8('0x14')['split'](','),'description':_0x4704d8('0x15')}];exports['create']=function(){const _0x1baddd=_0x4704d8;return db[_0x1baddd('0x2')][_0x1baddd('0xd')](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1baddd('0x3')](function(){const _0x14fa67=_0x1baddd;logger['info'](_0x14fa67('0xb'));})[_0x1baddd('0x9')](function(_0x4dc278){const _0x5761b6=_0x1baddd;logger[_0x5761b6('0x4')](_0x5761b6('0x11'),_0x4dc278);});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index bc9bb54..6d64e69 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a880_0x512e=['VAR3','variable\x20for\x20db\x20query\x20result\x20auto\x20generated','variable\x20auto\x20generated','../../mysqldb','CHANNEL(language)','EMAIL','EXTRAVAR','VAR2','LASTNAME','variable\x20for\x20order\x20auto\x20generated','Can\x27t\x20create\x20Variables','generic\x20variable\x20auto\x20generated','catch','error','UNIQUEID','RESULT','DBRESULT','../logger','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','info','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','RATE','then','FIRSTNAME','variable\x20for\x20menu\x20auto\x20generated','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','ORDER','OPTION','ORDERNUM','PHONE','CALLERID(name)','bulkCreate','Variable','app','variable\x20dialed\x20number\x20identifier\x20auto\x20generated'];(function(_0x253a09,_0x512e70){const _0x4d64b7=function(_0x25aab8){while(--_0x25aab8){_0x253a09['push'](_0x253a09['shift']());}};_0x4d64b7(++_0x512e70);}(a880_0x512e,0x67));const a880_0x4d64=function(_0x253a09,_0x512e70){_0x253a09=_0x253a09-0x0;let _0x4d64b7=a880_0x512e[_0x253a09];return _0x4d64b7;};const _0x3ca30a=a880_0x4d64;'use strict';const db=require(_0x3ca30a('0x8'))['db'],logger=require(_0x3ca30a('0x16'))(_0x3ca30a('0x3')),variables=[{'id':0x1,'name':'CHOICE','description':_0x3ca30a('0x1e')},{'id':0x2,'name':_0x3ca30a('0x22'),'description':_0x3ca30a('0xe')},{'id':0x3,'name':_0x3ca30a('0x15'),'description':_0x3ca30a('0x6')},{'id':0x4,'name':_0x3ca30a('0x1b'),'description':'variable\x20for\x20rate\x20call\x20auto\x20generated'},{'id':0x5,'name':'CALLERID(dnid)','description':_0x3ca30a('0x4')},{'id':0x6,'name':_0x3ca30a('0x0'),'description':_0x3ca30a('0x1f')},{'id':0x7,'name':'CALLERID(num)','description':'variable\x20number\x20of\x20the\x20caller\x20auto\x20generated'},{'id':0x8,'name':_0x3ca30a('0x9'),'description':_0x3ca30a('0x19')},{'id':0x9,'name':'COUNTER','description':_0x3ca30a('0x7')},{'id':0xa,'name':_0x3ca30a('0xa'),'description':'variable\x20auto\x20generated'},{'id':0xb,'name':_0x3ca30a('0xb'),'description':_0x3ca30a('0x17')},{'id':0xc,'name':_0x3ca30a('0x1d'),'description':_0x3ca30a('0x7')},{'id':0xd,'name':_0x3ca30a('0xd'),'description':_0x3ca30a('0x7')},{'id':0xe,'name':'INPUT','description':'variable\x20auto\x20generated'},{'id':0xf,'name':_0x3ca30a('0x21'),'description':'variable\x20auto\x20generated'},{'id':0x10,'name':_0x3ca30a('0x20'),'description':_0x3ca30a('0x7')},{'id':0x11,'name':_0x3ca30a('0x23'),'description':_0x3ca30a('0x7')},{'id':0x12,'name':_0x3ca30a('0x14'),'description':_0x3ca30a('0x7')},{'id':0x13,'name':_0x3ca30a('0x13'),'description':_0x3ca30a('0x1a')},{'id':0x14,'name':'VAR1','description':_0x3ca30a('0x10')},{'id':0x15,'name':_0x3ca30a('0xc'),'description':_0x3ca30a('0x10')},{'id':0x16,'name':_0x3ca30a('0x5'),'description':_0x3ca30a('0x10')}];exports['create']=function(){const _0xcbb65a=_0x3ca30a;return db[_0xcbb65a('0x2')][_0xcbb65a('0x1')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xcbb65a('0x1c')](function(){const _0x53a3e9=_0xcbb65a;logger[_0x53a3e9('0x18')]('Variables\x20have\x20been\x20created');})[_0xcbb65a('0x11')](function(){const _0x3245d4=_0xcbb65a;logger[_0x3245d4('0x12')](_0x3245d4('0xf'));});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index e9833c4..3a4288c 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a881_0x2f71=['Context\x20','outbound-fax','../../mysqldb','findOrCreate','from-sip','name','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','VoiceContext','\x20context','xcally-mixmonitor-context','exports','error','info','../logger','Can\x27t\x20create\x20','app'];(function(_0x819074,_0x2f7109){const _0x55608a=function(_0x169b9f){while(--_0x169b9f){_0x819074['push'](_0x819074['shift']());}};_0x55608a(++_0x2f7109);}(a881_0x2f71,0x17d));const a881_0x5560=function(_0x819074,_0x2f7109){_0x819074=_0x819074-0x0;let _0x55608a=a881_0x2f71[_0x819074];return _0x55608a;};const _0x2d309e=a881_0x5560;'use strict';const db=require(_0x2d309e('0x5'))['db'],logger=require(_0x2d309e('0x0'))(_0x2d309e('0x2')),voiceContexts=[{'name':_0x2d309e('0x7'),'description':_0x2d309e('0x9'),'defaultEntry':!![]},{'name':'from-voip-provider','description':_0x2d309e('0x9'),'defaultEntry':!![]},{'name':'inbound-fax','description':_0x2d309e('0x9'),'defaultEntry':!![]},{'name':_0x2d309e('0x4'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':'from-voicemail','description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':_0x2d309e('0xc'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}];async function create(){const _0x38b23d=_0x2d309e;for(const _0x169b9f of voiceContexts){try{const [,_0x505589]=await db[_0x38b23d('0xa')][_0x38b23d('0x6')]({'where':{'name':_0x169b9f['name']},'defaults':_0x169b9f});_0x505589&&logger[_0x38b23d('0xf')](_0x38b23d('0x3')+_0x169b9f[_0x38b23d('0x8')]+'\x20have\x20been\x20created');}catch(_0x49dcf5){logger[_0x38b23d('0xe')](_0x38b23d('0x1')+_0x169b9f[_0x38b23d('0x8')]+_0x38b23d('0xb'),_0x49dcf5);}}}module[_0x2d309e('0xd')]={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index 8384840..4a9d242 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a882_0x299c=['$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','CDR(type)=outbound','agi://127.0.0.1/square,AgentManagement','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','from-sip','xcally-motion-fax','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','system','Playback','outboundrouteid','fax\x20extensions\x20auto\x20generated','xcally-motion-preview','VoiceExtension','Return','FAXOPT(maxrate)=${XMF-MAXRATE}','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','bulkCreate','Queue','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','6000','catch','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','queue','XCALLY-MOTION-PROGRESS=0','outbound','GotoIf','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','type','Set','MixMonitor','catch\x20failed\x20event\x20auto\x20generated','Hangup','echo\x20test\x20demo\x20auto\x20generated','demo-congrats','appdata','priority','description','destroy','createAlways','CDR(type)=dialer','CDR(type)=internal','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','agi://127.0.0.1/square,AutoAttendant','xcally-motion-dialer','demo-echotest','then','forward\x20to\x20Support\x20queue\x20auto\x20generated','_XCALLY_MIXMONITOR_FORMAT=wav','info','demo\x20outbound\x20calls\x20auto\x20generated','FAXOPT(minrate)=${XMF-MINRATE}','exten','failed','${XMF-PATH},d','defaults','agi','catch\x20hangup\x20event\x20auto\x20generated','custom','6670','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','Background','Dial','Voice\x20Extensions\x20have\x20been\x20created','6001','Execif','demo-echodone','CDR(type)=inbound','agi://127.0.0.1/square,Orders','MONITOR_OPTIONS=ab','CDR(type)=outbound-fax','dialer\x20extensions\x20auto\x20generated','$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10','${EXTEN:20},xX','length','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','6669','600','6667','error','CALLERID(all)=${XMD-CALLERID}','inbound','Wait','outboundrouteid=','AGI','SendFax','Can\x27t\x20create\x20Voice\x20Extensions','Progress','Answer','XCALLY-MOTION-ANSWER=0','FAXOPT(ecm)=${XMF-ECM}','../../mysqldb','silence/1','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','agi://127.0.0.1/square,CSI','create','xcally-mixmonitor-context','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','internal','AMD','Sales,xX,,,300,,,,,'];(function(_0x5235ab,_0x299c04){const _0x4bbe29=function(_0x456fbe){while(--_0x456fbe){_0x5235ab['push'](_0x5235ab['shift']());}};_0x4bbe29(++_0x299c04);}(a882_0x299c,0x1b7));const a882_0x4bbe=function(_0x5235ab,_0x299c04){_0x5235ab=_0x5235ab-0x0;let _0x4bbe29=a882_0x299c[_0x5235ab];return _0x4bbe29;};const _0x3d6325=a882_0x4bbe;'use strict';const _=require('lodash'),db=require(_0x3d6325('0x38'))['db'],{Op}=require('sequelize'),logger=require('../logger')('app'),applications={0x258:[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x6')},{'app':'Answer'},{'app':_0x3d6325('0x4a'),'appdata':_0x3d6325('0xa'),'isApp':!![]},{'app':'Echo','isApp':!![]},{'app':'Playback','appdata':_0x3d6325('0x1f'),'isApp':!![]},{'app':_0x3d6325('0x62')}],0x1770:[{'app':_0x3d6325('0x5f'),'appdata':'CDR(type)=internal'},{'app':_0x3d6325('0x35')},{'app':_0x3d6325('0x53'),'appdata':'Support,xX,,,300,,,,,','appType':_0x3d6325('0x58'),'isApp':!![]},{'app':_0x3d6325('0x62')}],0x1771:[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x6')},{'app':_0x3d6325('0x35')},{'app':_0x3d6325('0x53'),'appdata':_0x3d6325('0x41'),'appType':_0x3d6325('0x58'),'isApp':!![]},{'app':_0x3d6325('0x62')}],0x1a0a:[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x6')},{'app':'AGI','appdata':_0x3d6325('0x8'),'appType':_0x3d6325('0x15'),'isApp':!![]},{'app':'Hangup'}],0x1a0b:[{'app':_0x3d6325('0x5f'),'appdata':'CDR(type)=internal'},{'app':_0x3d6325('0x31'),'appdata':_0x3d6325('0x21'),'appType':_0x3d6325('0x15'),'isApp':!![]},{'app':_0x3d6325('0x62')}],0x1a0c:[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x6')},{'app':'AGI','appdata':_0x3d6325('0x3b'),'appType':_0x3d6325('0x15'),'isApp':!![]},{'app':'Hangup'}],0x1a0d:[{'app':'Set','appdata':_0x3d6325('0x6')},{'app':_0x3d6325('0x31'),'appdata':'agi://127.0.0.1/square,Survey','appType':_0x3d6325('0x15'),'isApp':!![]},{'app':_0x3d6325('0x62')}],0x1a0e:[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x6')},{'app':'AGI','appdata':_0x3d6325('0x44'),'appType':'agi','isApp':!![]},{'app':'Hangup'}],'xcally-motion-dialer':[{'app':'Set','appdata':_0x3d6325('0x5')},{'app':_0x3d6325('0x5f'),'appdata':'CALLERID(all)=${XMD-CALLERID}'},{'app':_0x3d6325('0x5b'),'appdata':_0x3d6325('0x42')},{'app':_0x3d6325('0x35'),'appdata':''},{'app':_0x3d6325('0x1a'),'appdata':_0x3d6325('0x39')},{'app':_0x3d6325('0x40'),'appdata':_0x3d6325('0x45')},{'app':'GotoIf','appdata':_0x3d6325('0x54')},{'app':'GotoIf','appdata':_0x3d6325('0x25')},{'app':_0x3d6325('0x5b'),'appdata':_0x3d6325('0x48')},{'app':_0x3d6325('0x1e'),'appdata':_0x3d6325('0x51')},{'app':_0x3d6325('0x1e'),'appdata':'$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})'},{'app':'Execif','appdata':_0x3d6325('0x57')},{'app':_0x3d6325('0x62')}],'xcally-motion-fax':[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x23')},{'app':_0x3d6325('0x2f'),'appdata':'6'},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x37')},{'app':_0x3d6325('0x5f'),'appdata':'FAXOPT(headerinfo)=${XMF-HEADERINFO}'},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x28')},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x50')},{'app':'Set','appdata':_0x3d6325('0x10')},{'app':'Set','appdata':'FAXOPT(modem)=${XMF-MODEM}'},{'app':_0x3d6325('0x5f'),'appdata':'FAXOPT(t38timeout)=${XMF-T38TIMEOUT}'},{'app':_0x3d6325('0x32'),'appdata':_0x3d6325('0x13')}],'xcally-motion-preview':[{'app':'Set','appdata':_0x3d6325('0x5')},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x2d')},{'app':_0x3d6325('0x1e'),'appdata':_0x3d6325('0x51')},{'app':_0x3d6325('0x1b'),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':_0x3d6325('0x1e'),'appdata':_0x3d6325('0x57')},{'app':_0x3d6325('0x62')}],'_.':[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x43')},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x36')},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x59')},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x22')},{'app':_0x3d6325('0x5f'),'outboundrouteid':!![]},{'app':_0x3d6325('0x5f'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'},{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0xd')},{'app':'Playback','appdata':_0x3d6325('0x64'),'appType':_0x3d6325('0x17'),'isApp':!![]},{'app':'Hangup'}],'_X.':[{'app':_0x3d6325('0x5f'),'appdata':_0x3d6325('0x20')},{'app':_0x3d6325('0x35')},{'app':_0x3d6325('0x4a'),'appdata':_0x3d6325('0x64'),'isApp':!![]},{'app':'Hangup'}],'h':[{'app':_0x3d6325('0x62')}],'failed':[{'app':_0x3d6325('0x62')}]},voiceExtensions=[{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':_0x3d6325('0x2a'),'description':_0x3d6325('0x63')},{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':_0x3d6325('0x55'),'description':_0x3d6325('0xc')},{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':_0x3d6325('0x1d'),'description':'forward\x20to\x20Sales\x20queue\x20auto\x20generated'},{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':'6666','description':_0x3d6325('0x5d')},{'type':_0x3d6325('0x3f'),'context':'from-sip','exten':_0x3d6325('0x2b'),'description':_0x3d6325('0x3a')},{'type':_0x3d6325('0x3f'),'context':'from-sip','exten':'6668','description':_0x3d6325('0x19')},{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':_0x3d6325('0x29'),'description':_0x3d6325('0x5c')},{'type':_0x3d6325('0x3f'),'context':_0x3d6325('0x46'),'exten':_0x3d6325('0x18'),'description':_0x3d6325('0x3e')},{'type':'system','context':_0x3d6325('0x46'),'exten':_0x3d6325('0x9'),'description':_0x3d6325('0x24')},{'type':'system','context':_0x3d6325('0x46'),'exten':_0x3d6325('0x47'),'description':_0x3d6325('0x4c')},{'type':_0x3d6325('0x49'),'context':'from-sip','exten':_0x3d6325('0x4d'),'description':_0x3d6325('0x24')},{'type':_0x3d6325('0x5a'),'context':_0x3d6325('0x46'),'exten':'_.','description':_0x3d6325('0xf')},{'type':_0x3d6325('0x2e'),'context':'from-voip-provider','exten':'_X.','description':'catch\x20all\x20inbound\x20calls\x20auto\x20generated'},{'type':_0x3d6325('0x49'),'context':_0x3d6325('0x46'),'exten':'h','description':_0x3d6325('0x16')},{'type':'system','context':_0x3d6325('0x46'),'exten':_0x3d6325('0x12'),'description':_0x3d6325('0x61')}],applicationsAlways={'s':[{'app':_0x3d6325('0x60'),'appdata':'${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab'},{'app':_0x3d6325('0x4f')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':_0x3d6325('0x34')},{'app':_0x3d6325('0x53'),'appdata':_0x3d6325('0x26')}]},voiceExtensionsAlways=[{'type':_0x3d6325('0x49'),'context':_0x3d6325('0x3d'),'exten':'s'},{'type':_0x3d6325('0x49'),'context':'from-sip','exten':_0x3d6325('0x7')}];function createExtensions(_0x456fbe,_0x521030){const _0x3542fd=_0x3d6325;return db[_0x3542fd('0x4e')][_0x3542fd('0x52')](_0x456fbe,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x41244f){const _0x4c4c1c=_0x3542fd;for(let _0x48d11e=0x0;_0x48d11e<_0x41244f['length'];_0x48d11e+=0x1){if(_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]])for(let _0x398e10=0x0;_0x398e10<_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x4c4c1c('0x27')];_0x398e10+=0x1){_0x521030[_0x41244f[_0x48d11e]['exten']][_0x398e10][_0x4c4c1c('0x4b')]&&(_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x398e10][_0x4c4c1c('0x0')]=_0x4c4c1c('0x30')+_0x41244f[_0x48d11e]['id'],delete _0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x398e10][_0x4c4c1c('0x4b')]),_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x398e10]=_[_0x4c4c1c('0x14')](_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x398e10],{'isApp':![],'appType':_0x4c4c1c('0x17'),'type':_0x41244f[_0x48d11e][_0x4c4c1c('0x5e')],'context':_0x41244f[_0x48d11e]['context'],'exten':_0x41244f[_0x48d11e][_0x4c4c1c('0x11')],'priority':parseInt(_0x41244f[_0x48d11e][_0x4c4c1c('0x1')],0xa)+0x1+_0x398e10,'description':_0x41244f[_0x48d11e][_0x4c4c1c('0x2')],'VoiceExtensionId':_0x41244f[_0x48d11e]['id']}),db['VoiceExtension'][_0x4c4c1c('0x3c')](_0x521030[_0x41244f[_0x48d11e][_0x4c4c1c('0x11')]][_0x398e10]);}}})[_0x3542fd('0xb')](function(){const _0x4e50d3=_0x3542fd;logger[_0x4e50d3('0xe')](_0x4e50d3('0x1c'));})[_0x3542fd('0x56')](function(_0x3091f3){const _0x62cb3c=_0x3542fd;logger[_0x62cb3c('0x2c')](_0x62cb3c('0x33'),_0x3091f3);});}exports['create']=function(){createExtensions(voiceExtensions,applications);},exports[_0x3d6325('0x4')]=function(){const _0x1afe5d=_0x3d6325;return db[_0x1afe5d('0x4e')][_0x1afe5d('0x3')]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x1afe5d('0xb')](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x1afe5d('0x56')](function(_0x5636c8){const _0x24eb9d=_0x1afe5d;logger[_0x24eb9d('0x2c')](_0x24eb9d('0x33'),_0x5636c8);});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index 79f9c2d..5fffcdf 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a883_0x21e5=['VoiceMusicOnHold','create','info','files','../logger','error','Music\x20on\x20hold\x20have\x20been\x20created','random','default','../../mysqldb','wav','/var/opt/motion2/server/files/moh/noice/','catch','then','app','noice\x20moh\x20auto\x20generated'];(function(_0x2677c7,_0x21e539){const _0xc3b11a=function(_0x1857f3){while(--_0x1857f3){_0x2677c7['push'](_0x2677c7['shift']());}};_0xc3b11a(++_0x21e539);}(a883_0x21e5,0x1e7));const a883_0xc3b1=function(_0x2677c7,_0x21e539){_0x2677c7=_0x2677c7-0x0;let _0xc3b11a=a883_0x21e5[_0x2677c7];return _0xc3b11a;};const _0x370e9c=a883_0xc3b1;'use strict';const db=require(_0x370e9c('0x2'))['db'],logger=require(_0x370e9c('0xd'))(_0x370e9c('0x7')),voiceMusicOnHold=[{'id':0x1,'name':_0x370e9c('0x1'),'directory':'/var/lib/asterisk/moh/','mode':_0x370e9c('0xc'),'sort':_0x370e9c('0x0'),'format':'wav','defaultEntry':!![],'description':'default\x20moh\x20auto\x20generated'},{'id':0x2,'name':'noice','directory':_0x370e9c('0x4'),'mode':_0x370e9c('0xc'),'sort':_0x370e9c('0x0'),'format':_0x370e9c('0x3'),'defaultEntry':!![],'description':_0x370e9c('0x8')},{'id':0x3,'name':'wait','directory':'/var/opt/motion2/server/files/moh/wait/','mode':'files','sort':_0x370e9c('0x0'),'format':_0x370e9c('0x3'),'defaultEntry':!![],'description':'wait\x20moh\x20auto\x20generated'}];exports[_0x370e9c('0xa')]=function(){const _0x599af1=_0x370e9c;return db[_0x599af1('0x9')]['bulkCreate'](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x599af1('0x6')](function(){const _0x54b9ce=_0x599af1;logger[_0x54b9ce('0xb')](_0x54b9ce('0xf'));})[_0x599af1('0x5')](function(){const _0x16f0e4=_0x599af1;logger[_0x16f0e4('0xe')]('Can\x27t\x20create\x20Music\x20on\x20hold');});}; \ No newline at end of file +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 diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index 4655a74..6997197 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a884_0x5bf0=['Support','wait','Sales','Survey','noice','addAgents','VoiceQueue','addLists','findAll','error','bulkCreate','rrmemory','info','ringall','type','../logger','app','CallbackCampaign','Voice\x20Queues\x20have\x20been\x20created','outbound','addTeams','exports','addBlackLists','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','inbound','inbound\x20voice\x20queue\x20auto\x20generated'];(function(_0x1ec115,_0x5bf004){const _0x1c6785=function(_0xfe1a22){while(--_0xfe1a22){_0x1ec115['push'](_0x1ec115['shift']());}};_0x1c6785(++_0x5bf004);}(a884_0x5bf0,0x79));const a884_0x1c67=function(_0x1ec115,_0x5bf004){_0x1ec115=_0x1ec115-0x0;let _0x1c6785=a884_0x5bf0[_0x1ec115];return _0x1c6785;};const _0x40916a=a884_0x1c67;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x40916a('0x18'))(_0x40916a('0x19')),voiceQueues=[{'id':0x1,'type':_0x40916a('0x7'),'name':_0x40916a('0x9'),'strategy':_0x40916a('0x16'),'musiconhold':_0x40916a('0xa'),'description':'inbound\x20voice\x20queue\x20auto\x20generated'},{'id':0x2,'type':_0x40916a('0x7'),'name':_0x40916a('0xb'),'strategy':_0x40916a('0x16'),'musiconhold':_0x40916a('0xa'),'description':_0x40916a('0x8')},{'id':0x3,'type':_0x40916a('0x2'),'name':_0x40916a('0xc'),'strategy':_0x40916a('0x14'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x40916a('0xd'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x4,'type':_0x40916a('0x2'),'name':'Telemarketing','strategy':_0x40916a('0x14'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x40916a('0xd'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':_0x40916a('0x2'),'name':_0x40916a('0x0'),'strategy':_0x40916a('0x14'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x40916a('0xd'),'description':_0x40916a('0x6')}];async function create(){const _0x530556=_0x40916a;try{await db[_0x530556('0xf')][_0x530556('0x13')](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0xfe1a22=await db[_0x530556('0xf')][_0x530556('0x11')]();for(const _0x287e8a of _0xfe1a22){await _0x287e8a[_0x530556('0xe')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x287e8a[_0x530556('0x3')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x287e8a[_0x530556('0x17')]===_0x530556('0x2')&&_0x287e8a['id']!==0x5&&(await _0x287e8a[_0x530556('0x10')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x287e8a[_0x530556('0x5')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x287e8a['id']===0x5&&await _0x287e8a[_0x530556('0x10')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0x530556('0x15')](_0x530556('0x1'));}catch(_0xa323f7){logger[_0x530556('0x12')]('Can\x27t\x20create\x20Voice\x20Queues',_0xa323f7);throw _0xa323f7;}}module[_0x40916a('0x4')]={'create':create}; \ No newline at end of file +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 diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 3bd94f6..0c47038 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a885_0x388c=['yes','/etc/pki/tls/certs/motion.crt','log','format','push','%s%s','all','\x22%s\x22\x20<%s>','../mysqldb','%s%s@xcally.com','User','/etc/pki/tls/private/motion.key','actpass','add\x20user','bulkCreate','agent','catch','wss','then','udp','password','util'];(function(_0x9d7d41,_0x388cba){const _0x275b5c=function(_0xab5574){while(--_0xab5574){_0x9d7d41['push'](_0x9d7d41['shift']());}};_0x275b5c(++_0x388cba);}(a885_0x388c,0xc4));const a885_0x275b=function(_0x9d7d41,_0x388cba){_0x9d7d41=_0x9d7d41-0x0;let _0x275b5c=a885_0x388c[_0x9d7d41];return _0x275b5c;};const _0x255985=a885_0x275b;'use strict';const util=require(_0x255985('0x1')),db=require(_0x255985('0xa'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x255985('0x6')]({'name':util[_0x255985('0x5')]('%s%s',_0x255985('0x11'),i),'fullname':util[_0x255985('0x5')]('%s%s',_0x255985('0x11'),i),'email':util[_0x255985('0x5')](_0x255985('0xb'),_0x255985('0x11'),i),'role':_0x255985('0x11'),'password':_0x255985('0x0'),'internal':0xfa0+i,'type':'friend','transport':[_0x255985('0x15'),'ws',_0x255985('0x13')],'disallow':[_0x255985('0x8')],'allow':['ulaw'],'defaultuser':util[_0x255985('0x5')](_0x255985('0x7'),_0x255985('0x11'),i),'encryption':_0x255985('0x2'),'avpf':_0x255985('0x2'),'force_avp':'yes','icesupport':'yes','dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x255985('0x3'),'dtlsprivatekey':_0x255985('0xd'),'dtlssetup':_0x255985('0xe'),'callerid':util[_0x255985('0x5')](_0x255985('0x9'),util[_0x255985('0x5')](_0x255985('0x7'),_0x255985('0x11'),i),0xfa0+i)});}db[_0x255985('0xc')][_0x255985('0x10')](users)[_0x255985('0x14')](function(){const _0x19f8d4=_0x255985;console[_0x19f8d4('0x4')](_0x19f8d4('0xf'));})[_0x255985('0x12')](function(_0xab5574){console['log'](_0xab5574);}); \ No newline at end of file +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 diff --git a/server/config/socketio.js b/server/config/socketio.js index 98fc7db..b32d760 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a886_0x3e59=['include','admin','remoteAddress','getSmsQueues','WhatsappQueues','ChatInteractions','where','telephone','MailQueues','format','getMailQueues','user_has_openchannel_interactions:remove','Telephones','trunk:%s','openchannel','UserProfileSection','lodash','FaxQueues','request','autoAssociation','VoiceQueue','type','removeFaxInteractions','removeChatInteractions','campaign:%s:%s','getVoiceQueues','removeWhatsappInteractions','role','User','util','push','remotePort','voice:inbound','FaxInteractions','WhatsappInteraction','address','removeOpenchannelInteractions','findOne','user_has_mail_interactions:remove','findAll','nsp','IvrCampaigns','whatsapp','removeSmsInteractions','all','getOpenchannelQueues','SmsInteractions','FaxQueue','connectedAt','SmsQueue','VoiceQueues','SocketIO\x20','user:%s','OpenchannelQueue','handshake','agent','../mysqldb','userProfileId','map','%s:queue:%s','join','OpenchannelQueues','then','WhatsappQueue','ChatQueues','mail','length','Campaign','voice:outbound','ChatQueue','query','connection','FaxInteraction','leave','SmsQueues','log','name','MailQueue','OpenchannelInteraction','setMaxListeners','getWhatsappQueues','SmsInteraction','user_has_sms_interactions:remove','undefined','user_has_fax_interactions:remove','fax','Agents','ivr','ChatInteraction','emit','removeMailInteractions','MailInteractions','Trunks','UserProfileResource','user_has_whatsapp_interactions:remove','Trunk'];(function(_0x2765f4,_0x3e5905){const _0x4cc336=function(_0x34d99e){while(--_0x34d99e){_0x2765f4['push'](_0x2765f4['shift']());}};_0x4cc336(++_0x3e5905);}(a886_0x3e59,0x10c));const a886_0x4cc3=function(_0x2765f4,_0x3e5905){_0x2765f4=_0x2765f4-0x0;let _0x4cc336=a886_0x3e59[_0x2765f4];return _0x4cc336;};const _0xb2cc73=a886_0x4cc3;'use strict';const _=require(_0xb2cc73('0x24')),util=require(_0xb2cc73('0x31')),db=require(_0xb2cc73('0x4c'))['db'],queryQueues={'attributes':['id',_0xb2cc73('0x0')],'include':[{'as':_0xb2cc73('0xa'),'model':db[_0xb2cc73('0x30')],'attributes':['id',_0xb2cc73('0x0'),_0xb2cc73('0x2f')],'raw':!![],'where':{'role':_0xb2cc73('0x4b')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id','name'],'where':{'role':_0xb2cc73('0x1b')}},queryTrunks={'raw':!![],'attributes':['id',_0xb2cc73('0x0')]},queryAgents={'raw':!![],'attributes':['id','name'],'where':{'role':'agent'}},queryCampaigns={'raw':!![],'attributes':['id','name',_0xb2cc73('0x29')],'where':{'type':_0xb2cc73('0xb')}};function getAssociatedResources(_0x34d99e,_0x4fe0cc,_0x3c67c1){const _0x36affc=_0xb2cc73;return db[_0x36affc('0x23')][_0x36affc('0x39')]({'where':{'name':_0x34d99e,'userProfileId':_0x4fe0cc},'raw':!![]})[_0x36affc('0x52')](function(_0x26071d){const _0x5d1d38=_0x36affc;if(_0x26071d){if(_0x26071d[_0x5d1d38('0x27')]){let _0x4ff9c2;switch(_0x34d99e){case _0x5d1d38('0x46'):case _0x5d1d38('0x54'):case _0x5d1d38('0x25'):case _0x5d1d38('0x5e'):case _0x5d1d38('0x1c'):case _0x5d1d38('0x51'):case'WhatsappQueues':_0x4ff9c2=queryQueues;break;case _0x5d1d38('0x20'):_0x4ff9c2=queryTelephones;break;case _0x5d1d38('0x10'):_0x4ff9c2=queryTrunks;break;case _0x5d1d38('0x3d'):_0x4ff9c2=queryCampaigns;break;default:break;}return _0x4ff9c2?db[_0x3c67c1]['findAll'](_0x4ff9c2):_0x4ff9c2;}else return db[_0x5d1d38('0x11')][_0x5d1d38('0x3b')]({'attributes':['resourceId'],'where':{'sectionId':_0x26071d['id']},'raw':!![]})[_0x5d1d38('0x52')](function(_0x997962){const _0x3b748d=_0x5d1d38;if(_0x997962){const _0x4a9ccf={'where':{'id':_[_0x3b748d('0x4e')](_0x997962,'resourceId')},'raw':!![]};switch(_0x3c67c1){case'User':_0x4a9ccf[_0x3b748d('0x1a')]['role']=_0x3b748d('0x1b');break;case _0x3b748d('0x57'):_0x4a9ccf['where'][_0x3b748d('0x29')]=_0x3b748d('0xb');break;}return db[_0x3c67c1][_0x3b748d('0x3b')](_0x4a9ccf);}else return[];});}else return[];})[_0x36affc('0x52')](function(_0x278b44){return _0x278b44;});}function joinOrLeaveQueues(_0x2fc025,_0x36332b,_0x537f81,_0x32f5a0){const _0x2a2c82=_0xb2cc73;_0x2fc025[_0x36332b](util[_0x2a2c82('0x1d')](_0x2a2c82('0x4f'),_0x537f81,_0x32f5a0[_0x2a2c82('0x0')]));if(_0x32f5a0[_0x2a2c82('0xa')])for(let _0x1f57d5=0x0;_0x1f57d5<_0x32f5a0['Agents'][_0x2a2c82('0x56')];_0x1f57d5+=0x1){_0x2fc025[_0x36332b](util['format'](_0x2a2c82('0x48'),_0x32f5a0[_0x2a2c82('0xa')][_0x1f57d5][_0x2a2c82('0x0')]));}}function joinOrLeave(_0x4dcc36,_0x900d45,_0x5a9181){const _0x3416a8=_0xb2cc73;let _0x2446e0;_0x4dcc36[_0x3416a8('0x4a')]['query']['id']&&db[_0x3416a8('0x30')]['findOne']({'attributes':['id',_0x3416a8('0x0'),_0x3416a8('0x2f'),_0x3416a8('0x4d')],'where':{'id':_0x4dcc36[_0x3416a8('0x4a')][_0x3416a8('0x5a')]['id']},'include':[{'model':db[_0x3416a8('0xc')],'as':'ChatInteractions','attributes':['id'],'raw':!![]},{'model':db['MailInteraction'],'as':'MailInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x3416a8('0x5c')],'as':_0x3416a8('0x35'),'attributes':['id'],'raw':!![]},{'model':db[_0x3416a8('0x5')],'as':_0x3416a8('0x42'),'attributes':['id'],'raw':!![]},{'model':db[_0x3416a8('0x2')],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x3416a8('0x36')],'as':'WhatsappInteractions','attributes':['id'],'raw':!![]}]})[_0x3416a8('0x52')](function(_0x2e5119){const _0x5cb123=_0x3416a8;if(_0x2e5119){_0x2446e0=_0x2e5119,_0x4dcc36[_0x900d45](util[_0x5cb123('0x1d')]('user:%s',_0x2e5119[_0x5cb123('0x0')]));const _0x3d57a0=[];switch(_0x2e5119[_0x5cb123('0x2f')]){case _0x5cb123('0x15'):_0x4dcc36[_0x900d45](_0x5cb123('0x34')),_0x4dcc36[_0x900d45](_0x5cb123('0x58'));typeof queryQueues[_0x5cb123('0x14')]!==_0x5cb123('0x7')&&delete queryQueues[_0x5cb123('0x14')];_0x3d57a0[_0x5cb123('0x32')](db['VoiceQueue']['findAll'](queryQueues)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x59')]['findAll'](queryQueues)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x43')][_0x5cb123('0x3b')](queryQueues)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x45')][_0x5cb123('0x3b')](queryQueues)),_0x3d57a0['push'](db[_0x5cb123('0x1')][_0x5cb123('0x3b')](queryQueues)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x49')][_0x5cb123('0x3b')](queryQueues)),_0x3d57a0[_0x5cb123('0x32')](db['WhatsappQueue'][_0x5cb123('0x3b')](queryQueues)),_0x3d57a0['push'](db[_0x5cb123('0x30')][_0x5cb123('0x3b')](queryTelephones)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x13')][_0x5cb123('0x3b')](queryTrunks)),_0x3d57a0['push'](db['Campaign'][_0x5cb123('0x3b')](queryCampaigns)),_0x3d57a0[_0x5cb123('0x32')](db[_0x5cb123('0x30')][_0x5cb123('0x3b')](queryAgents));break;case'user':_0x4dcc36[_0x900d45](_0x5cb123('0x34')),_0x4dcc36[_0x900d45](_0x5cb123('0x58')),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources(_0x5cb123('0x46'),_0x2e5119[_0x5cb123('0x4d')],_0x5cb123('0x28'))),_0x3d57a0['push'](getAssociatedResources(_0x5cb123('0x54'),_0x2e5119['userProfileId'],_0x5cb123('0x59'))),_0x3d57a0['push'](getAssociatedResources(_0x5cb123('0x25'),_0x2e5119['userProfileId'],_0x5cb123('0x43'))),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources(_0x5cb123('0x5e'),_0x2e5119[_0x5cb123('0x4d')],_0x5cb123('0x45'))),_0x3d57a0['push'](getAssociatedResources(_0x5cb123('0x1c'),_0x2e5119[_0x5cb123('0x4d')],_0x5cb123('0x1'))),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources(_0x5cb123('0x51'),_0x2e5119['userProfileId'],_0x5cb123('0x49'))),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources(_0x5cb123('0x18'),_0x2e5119[_0x5cb123('0x4d')],_0x5cb123('0x53'))),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources('Telephones',_0x2e5119[_0x5cb123('0x4d')],_0x5cb123('0x30'))),_0x3d57a0[_0x5cb123('0x32')](getAssociatedResources(_0x5cb123('0x10'),_0x2e5119[_0x5cb123('0x4d')],'Trunk')),_0x3d57a0['push'](getAssociatedResources(_0x5cb123('0x3d'),_0x2e5119['userProfileId'],'Campaign')),_0x3d57a0[_0x5cb123('0x32')](db['User'][_0x5cb123('0x3b')](queryAgents));break;case _0x5cb123('0x4b'):_0x4dcc36[_0x900d45](_0x5cb123('0x34')),_0x4dcc36[_0x900d45](_0x5cb123('0x58')),_0x3d57a0[_0x5cb123('0x32')](_0x2e5119[_0x5cb123('0x2d')]({'attributes':['id',_0x5cb123('0x0')]})),_0x3d57a0[_0x5cb123('0x32')](_0x2e5119['getChatQueues']({'attributes':['id','name']})),_0x3d57a0[_0x5cb123('0x32')](_0x2e5119['getFaxQueues']({'attributes':['id',_0x5cb123('0x0')]})),_0x3d57a0['push'](_0x2e5119[_0x5cb123('0x17')]({'attributes':['id',_0x5cb123('0x0')]})),_0x3d57a0['push'](_0x2e5119[_0x5cb123('0x1e')]({'attributes':['id',_0x5cb123('0x0')]})),_0x3d57a0[_0x5cb123('0x32')](_0x2e5119[_0x5cb123('0x41')]({'attributes':['id',_0x5cb123('0x0')]})),_0x3d57a0[_0x5cb123('0x32')](_0x2e5119[_0x5cb123('0x4')]({'attributes':['id','name']}));break;}return Promise[_0x5cb123('0x40')](_0x3d57a0);}})['then'](function(_0x5b7d3b){const _0x5af726=_0x3416a8;if(_0x5b7d3b&&_0x5b7d3b[_0x5af726('0x56')])for(let _0x47fd0a=0x0;_0x47fd0a<_0x5b7d3b['length'];_0x47fd0a+=0x1){for(let _0x45bc3f=0x0;_0x45bc3f<_0x5b7d3b[_0x47fd0a][_0x5af726('0x56')];_0x45bc3f+=0x1){switch(_0x47fd0a){case 0x0:joinOrLeaveQueues(_0x4dcc36,_0x900d45,'voice',_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x1:joinOrLeaveQueues(_0x4dcc36,_0x900d45,'chat',_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x2:joinOrLeaveQueues(_0x4dcc36,_0x900d45,_0x5af726('0x9'),_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x3:joinOrLeaveQueues(_0x4dcc36,_0x900d45,'sms',_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x4:joinOrLeaveQueues(_0x4dcc36,_0x900d45,_0x5af726('0x55'),_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x5:joinOrLeaveQueues(_0x4dcc36,_0x900d45,_0x5af726('0x22'),_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x6:joinOrLeaveQueues(_0x4dcc36,_0x900d45,_0x5af726('0x3e'),_0x5b7d3b[_0x47fd0a][_0x45bc3f]);break;case 0x7:_0x4dcc36[_0x900d45](util[_0x5af726('0x1d')]('telephone:%s',_0x5b7d3b[_0x47fd0a][_0x45bc3f][_0x5af726('0x0')]));break;case 0x8:_0x4dcc36[_0x900d45](util['format'](_0x5af726('0x21'),_0x5b7d3b[_0x47fd0a][_0x45bc3f][_0x5af726('0x0')]));break;case 0x9:_0x4dcc36[_0x900d45](util[_0x5af726('0x1d')](_0x5af726('0x2c'),_0x5b7d3b[_0x47fd0a][_0x45bc3f]['type'],_0x5b7d3b[_0x47fd0a][_0x45bc3f][_0x5af726('0x0')]));break;case 0xa:_0x4dcc36[_0x900d45](util[_0x5af726('0x1d')](_0x5af726('0x48'),_0x5b7d3b[_0x47fd0a][_0x45bc3f][_0x5af726('0x0')]));break;}}}})[_0x3416a8('0x52')](function(){const _0x4f2221=_0x3416a8;if(_0x900d45==='leave'){const _0x2c826c=_['map'](_0x2446e0[_0x4f2221('0x19')],'id');return _0x2446e0[_0x4f2221('0x2b')](_0x2c826c)[_0x4f2221('0x52')](function(){const _0x4f111c=_0x4f2221;for(let _0x110f40=0x0;_0x110f40<_0x2c826c[_0x4f111c('0x56')];_0x110f40+=0x1){_0x5a9181['emit']('user_has_chat_interactions:remove',{'ChatInteractionId':Number(_0x2c826c[_0x110f40]),'UserId':Number(_0x2446e0['id'])});}});}})['then'](function(){const _0x166e76=_0x3416a8;if(_0x900d45===_0x166e76('0x5d')){const _0x14548a=_[_0x166e76('0x4e')](_0x2446e0[_0x166e76('0xf')],'id');return _0x2446e0[_0x166e76('0xe')](_0x14548a)[_0x166e76('0x52')](function(){const _0xc0c1f2=_0x166e76;for(let _0x3ae482=0x0;_0x3ae482<_0x14548a['length'];_0x3ae482+=0x1){_0x5a9181[_0xc0c1f2('0xd')](_0xc0c1f2('0x3a'),{'MailInteractionId':Number(_0x14548a[_0x3ae482]),'UserId':Number(_0x2446e0['id'])});}});}})['then'](function(){const _0x2af2d8=_0x3416a8;if(_0x900d45==='leave'){const _0xe587ef=_[_0x2af2d8('0x4e')](_0x2446e0[_0x2af2d8('0x35')],'id');return _0x2446e0[_0x2af2d8('0x2a')](_0xe587ef)['then'](function(){const _0x1f4485=_0x2af2d8;for(let _0x4433f7=0x0;_0x4433f7<_0xe587ef[_0x1f4485('0x56')];_0x4433f7+=0x1){_0x5a9181['emit'](_0x1f4485('0x8'),{'FaxInteractionId':Number(_0xe587ef[_0x4433f7]),'UserId':Number(_0x2446e0['id'])});}});}})[_0x3416a8('0x52')](function(){const _0x418c8c=_0x3416a8;if(_0x900d45==='leave'){const _0x373ece=_[_0x418c8c('0x4e')](_0x2446e0[_0x418c8c('0x42')],'id');return _0x2446e0[_0x418c8c('0x3f')](_0x373ece)[_0x418c8c('0x52')](function(){const _0x2ca0cd=_0x418c8c;for(let _0x4b7bc7=0x0;_0x4b7bc7<_0x373ece['length'];_0x4b7bc7+=0x1){_0x5a9181[_0x2ca0cd('0xd')](_0x2ca0cd('0x6'),{'SmsInteractionId':Number(_0x373ece[_0x4b7bc7]),'UserId':Number(_0x2446e0['id'])});}});}})[_0x3416a8('0x52')](function(){const _0x502d1f=_0x3416a8;if(_0x900d45===_0x502d1f('0x5d')){const _0x2d99ce=_[_0x502d1f('0x4e')](_0x2446e0['OpenchannelInteractions'],'id');return _0x2446e0[_0x502d1f('0x38')](_0x2d99ce)[_0x502d1f('0x52')](function(){const _0x1f64cc=_0x502d1f;for(let _0x2d425f=0x0;_0x2d425f<_0x2d99ce[_0x1f64cc('0x56')];_0x2d425f+=0x1){_0x5a9181[_0x1f64cc('0xd')](_0x1f64cc('0x1f'),{'OpenchannelInteractionId':Number(_0x2d99ce[_0x2d425f]),'UserId':Number(_0x2446e0['id'])});}});}})['then'](function(){const _0x5ef3be=_0x3416a8;if(_0x900d45===_0x5ef3be('0x5d')){const _0x204158=_[_0x5ef3be('0x4e')](_0x2446e0['WhatsappInteractions'],'id');return _0x2446e0[_0x5ef3be('0x2e')](_0x204158)[_0x5ef3be('0x52')](function(){const _0x196874=_0x5ef3be;for(let _0x438a23=0x0;_0x438a23<_0x204158[_0x196874('0x56')];_0x438a23+=0x1){_0x5a9181[_0x196874('0xd')](_0x196874('0x12'),{'WhatsappInteractionId':Number(_0x204158[_0x438a23]),'UserId':Number(_0x2446e0['id'])});}});}})['catch'](function(_0x51b968){const _0x385156=_0x3416a8;_0x4dcc36[_0x385156('0x5f')](_0x51b968);});}function onDisconnect(_0x1a5960,_0x192f66){joinOrLeave(_0x1a5960,'leave',_0x192f66);}function onConnect(_0x6a5c4c){const _0x5ec7f5=_0xb2cc73;joinOrLeave(_0x6a5c4c,_0x5ec7f5('0x50'));}exports['default']=function(_0x28a8de){const _0x121488=_0xb2cc73;_0x28a8de['on'](_0x121488('0x5b'),function(_0xdc9aab){const _0x53e6e6=_0x121488;_0xdc9aab[_0x53e6e6('0x3')](0x0),_0xdc9aab[_0x53e6e6('0x37')]=_0xdc9aab[_0x53e6e6('0x26')][_0x53e6e6('0x5b')][_0x53e6e6('0x16')]+':'+_0xdc9aab[_0x53e6e6('0x26')]['connection'][_0x53e6e6('0x33')],_0xdc9aab[_0x53e6e6('0x44')]=new Date(),_0xdc9aab['log']=function(_0x3853f8){const _0x391fd3=_0x53e6e6;console['log'](_0x391fd3('0x47')+_0xdc9aab[_0x391fd3('0x3c')][_0x391fd3('0x0')]+'['+_0xdc9aab[_0x391fd3('0x37')]+']',_0x3853f8);},_0xdc9aab['on']('disconnect',function(){const _0x309354=_0x53e6e6;onDisconnect(_0xdc9aab,_0x28a8de),_0xdc9aab[_0x309354('0x5f')]('DISCONNECTED');}),onConnect(_0xdc9aab),_0xdc9aab['log']('CONNECTED');});}; \ No newline at end of file +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 diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index 3b3474f..303002c 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a887_0x4980=['Fax','model','SIP/%s','MailInteraction','EventManager','../logger','closedinteraction','ChatInteraction','catch','default','afterCreate','Whatsapp','code','Trigger,\x20%s','name','opened','jayson/promise','info','Chat','direction','afterUpdate','Mail','newinteraction','request','event','condition','FaxInteraction','util','newmessage','MailMessage','OpenchannelMessage','interface','SmsMessage','toLowerCase','FaxMessage','callback','Sms','incomingmessage','OpenchannelInteraction','User','Openchannel','../../mysqldb','outgoingmessage','SmsInteraction','changed','error','closed','then','channel','WhatsappInteraction','WhatsappMessage','get','UserId'];(function(_0x225066,_0x49802a){const _0x1c205d=function(_0x450254){while(--_0x450254){_0x225066['push'](_0x225066['shift']());}};_0x1c205d(++_0x49802a);}(a887_0x4980,0x135));const a887_0x1c20=function(_0x225066,_0x49802a){_0x225066=_0x225066-0x0;let _0x1c205d=a887_0x4980[_0x225066];return _0x1c205d;};const _0x29a7be=a887_0x1c20;'use strict';const util=require(_0x29a7be('0x24')),db=require(_0x29a7be('0x32'))['db'],jayson=require(_0x29a7be('0x19')),logger=require(_0x29a7be('0xe'))('triggers'),client=jayson['client']['http']({'port':0x232a}),triggers=[{'channel':'Chat','model':_0x29a7be('0x10'),'event':'afterCreate','condition':_0x29a7be('0x1f'),'callback':afterCreate},{'channel':_0x29a7be('0x1b'),'model':_0x29a7be('0x10'),'event':'afterUpdate','condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':_0x29a7be('0x1b'),'model':'ChatMessage','event':_0x29a7be('0x13'),'condition':_0x29a7be('0x25'),'callback':afterCreateMessage},{'channel':_0x29a7be('0x2d'),'model':'SmsInteraction','event':_0x29a7be('0x13'),'condition':'newinteraction','callback':afterCreate},{'channel':_0x29a7be('0x2d'),'model':_0x29a7be('0x34'),'event':_0x29a7be('0x1d'),'condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':_0x29a7be('0x2d'),'model':_0x29a7be('0x29'),'event':_0x29a7be('0x13'),'condition':'newmessage','callback':afterCreateMessage},{'channel':_0x29a7be('0x14'),'model':_0x29a7be('0x5'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x1f'),'callback':afterCreate},{'channel':_0x29a7be('0x14'),'model':_0x29a7be('0x5'),'event':'afterUpdate','condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':'Whatsapp','model':_0x29a7be('0x6'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x25'),'callback':afterCreateMessage},{'channel':_0x29a7be('0x9'),'model':_0x29a7be('0x23'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x1f'),'callback':afterCreate},{'channel':_0x29a7be('0x9'),'model':_0x29a7be('0x23'),'event':_0x29a7be('0x1d'),'condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':'Fax','model':_0x29a7be('0x2b'),'event':_0x29a7be('0x13'),'condition':'newmessage','callback':afterCreateMessage},{'channel':_0x29a7be('0x1e'),'model':_0x29a7be('0xc'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x1f'),'callback':afterCreate},{'channel':'Mail','model':_0x29a7be('0xc'),'event':'afterUpdate','condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':'Mail','model':_0x29a7be('0x26'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x25'),'callback':afterCreateMessage},{'channel':'Openchannel','model':'OpenchannelInteraction','event':_0x29a7be('0x13'),'condition':_0x29a7be('0x1f'),'callback':afterCreate},{'channel':_0x29a7be('0x31'),'model':_0x29a7be('0x2f'),'event':_0x29a7be('0x1d'),'condition':_0x29a7be('0xf'),'callback':afterUpdate},{'channel':_0x29a7be('0x31'),'model':_0x29a7be('0x27'),'event':_0x29a7be('0x13'),'condition':_0x29a7be('0x25'),'callback':afterCreateMessage}];function request(_0x450254){const _0x24bc9c=_0x29a7be;return client[_0x24bc9c('0x20')](_0x24bc9c('0xd'),_0x450254)[_0x24bc9c('0x3')](function(_0x143741){const _0x403cc6=_0x24bc9c;logger[_0x403cc6('0x1a')](_0x403cc6('0x16'),_0x403cc6('0xd'),_0x143741),_0x143741[_0x403cc6('0x1')]&&(_0x143741[_0x403cc6('0x1')][_0x403cc6('0x15')]===0x1f4&&logger[_0x403cc6('0x1')](_0x403cc6('0x16'),'EventManager',_0x143741[_0x403cc6('0x1')]));})[_0x24bc9c('0x11')](function(_0x53fc7b){const _0x402b14=_0x24bc9c;logger['error'](_0x402b14('0x16'),_0x402b14('0xd'),_0x53fc7b);});}function afterCreateMessage(_0x19e21c){return function(_0x2bbbee){const _0x554c71=a887_0x1c20;return _0x2bbbee=_0x2bbbee[_0x554c71('0x7')]({'plain':!![]}),_0x2bbbee[_0x554c71('0x4')]=_0x19e21c,_0x2bbbee[_0x554c71('0x21')]=_0x2bbbee[_0x554c71('0x1c')],_0x2bbbee[_0x554c71('0x8')]?db[_0x554c71('0x30')]['findOne']({'where':{'id':_0x2bbbee['UserId']},'attributes':['id',_0x554c71('0x17')],'raw':!![]})['then'](function(_0x30f40c){const _0x188c01=_0x554c71;return _0x2bbbee[_0x188c01('0x28')]=util['format'](_0x188c01('0xb'),_0x30f40c[_0x188c01('0x17')]),_0x2bbbee[_0x188c01('0x4')]=_0x19e21c,request({'event':_0x188c01('0x2e'),'message':_0x2bbbee});})[_0x554c71('0x11')](function(_0x7c848f){const _0x952aa=_0x554c71;console[_0x952aa('0x1')](_0x7c848f);}):request({'event':_0x554c71('0x33'),'message':_0x2bbbee});};}function afterCreate(_0xdfcbf1,_0x462cf1){return function(_0x34f5e0){const _0x3aa669=a887_0x1c20;return _0x34f5e0=_0x34f5e0['get']({'plain':!![]}),_0x34f5e0[_0x3aa669('0x4')]=_0xdfcbf1,_0x34f5e0[_0x3aa669('0x21')]=_0x3aa669('0x18'),request({'event':_0x462cf1,'message':_0x34f5e0});};}function afterUpdate(_0x221b50,_0x1f810e){return function(_0x350d03){const _0x52306d=a887_0x1c20;if(_0x350d03[_0x52306d('0x0')](_0x52306d('0x2'))&&_0x350d03[_0x52306d('0x2')])return _0x350d03=_0x350d03[_0x52306d('0x7')]({'plain':!![]}),_0x350d03['channel']=_0x221b50,_0x350d03['event']=_0x52306d('0x2'),_0x350d03[_0x52306d('0x8')]?db[_0x52306d('0x30')]['findOne']({'where':{'id':_0x350d03[_0x52306d('0x8')]},'attributes':['id',_0x52306d('0x17')],'raw':!![]})['then'](function(_0xb87c4e){const _0x308e9b=_0x52306d;return _0x350d03[_0x308e9b('0x28')]=util['format'](_0x308e9b('0xb'),_0xb87c4e['name']),request({'event':_0x1f810e,'message':_0x350d03});})[_0x52306d('0x11')](function(_0x4a0295){const _0x573beb=_0x52306d;console[_0x573beb('0x1')](_0x4a0295);}):request({'event':_0x1f810e,'message':_0x350d03});};}exports[_0x29a7be('0x12')]=function(){const _0x427f2a=_0x29a7be;for(let _0x42a299=0x0;_0x42a299=_0x14de38[_0x20a152('0xb')])throw Error(_0x20a152('0x7'));_0x515710(_0x1606a3);})[_0x35990b('0x5')](function(_0xc98589){_0x32e76b(_0xc98589);});});}; \ No newline at end of file +const a888_0x5eb6=['then','fax','isValidChannel','User','voice','getLicense','getChannels','catch','clearBlockUser','Maximum\x20login\x20has\x20been\x20reached','lodash','agent','whatsapp','openchannel','../mysqldb','update','role','count','chat','agents'];(function(_0x3b6a09,_0x5eb6eb){const _0x1dd5a7=function(_0x5cf08d){while(--_0x5cf08d){_0x3b6a09['push'](_0x3b6a09['shift']());}};_0x1dd5a7(++_0x5eb6eb);}(a888_0x5eb6,0x1c1));const a888_0x1dd5=function(_0x3b6a09,_0x5eb6eb){_0x3b6a09=_0x3b6a09-0x0;let _0x1dd5a7=a888_0x5eb6[_0x3b6a09];return _0x1dd5a7;};const _0x2db7f7=a888_0x1dd5;'use strict';const _=require(_0x2db7f7('0x1')),db=require(_0x2db7f7('0x5'))['db'],util=require('./license/util'),{Op}=require('sequelize'),channels=[_0x2db7f7('0xf'),'mail',_0x2db7f7('0x9'),_0x2db7f7('0xc'),'sms',_0x2db7f7('0x3'),_0x2db7f7('0x4')];exports[_0x2db7f7('0x11')]=function(){return channels;},exports[_0x2db7f7('0xd')]=function(_0x5cf08d){return _0x5cf08d=_0x5cf08d['toLowerCase'](),_['includes'](channels,_0x5cf08d);},exports[_0x2db7f7('0x13')]=function(_0x2af2af,_0x256bdd,_0x3ec0b3,_0x9af7a5){const _0x308801=_0x2db7f7,_0x44c9ad={'loginAttempts':_0x256bdd,'blocked':_0x3ec0b3};return!_['isUndefined'](_0x9af7a5)&&(_0x44c9ad['blockedAt']=_0x9af7a5),_0x2af2af[_0x308801('0x6')](_0x44c9ad);},exports[_0x2db7f7('0x10')]=function(_0xeb68fc){return new Promise(function(_0x115790,_0x2bbc0a){const _0x4f03ea=a888_0x1dd5;let _0x4eba61=0x0;_0xeb68fc[_0x4f03ea('0x7')]!==_0x4f03ea('0x2')&&_0x115790(_0xeb68fc),db[_0x4f03ea('0xe')][_0x4f03ea('0x8')]({'where':{'role':_0x4f03ea('0x2'),'online':!![],'id':{[Op['ne']]:_0xeb68fc['id']}}})['then'](function(_0x46ee37){const _0x960fe=_0x4f03ea;return _0x4eba61=_0x46ee37,util[_0x960fe('0x10')]();})[_0x4f03ea('0xb')](function(_0x5180a7){const _0x4f407c=_0x4f03ea;if(_0x5180a7&&_0x5180a7[_0x4f407c('0xa')]&&_0x4eba61>=_0x5180a7[_0x4f407c('0xa')])throw Error(_0x4f407c('0x0'));_0x115790(_0xeb68fc);})[_0x4f03ea('0x12')](function(_0x1ec4df){_0x2bbc0a(_0x1ec4df);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index 498b3e0..a0df823 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a889_0x3014=['404','status','render','json'];(function(_0x1f6ffa,_0x301400){const _0x3ef9e7=function(_0x5b6e7b){while(--_0x5b6e7b){_0x1f6ffa['push'](_0x1f6ffa['shift']());}};_0x3ef9e7(++_0x301400);}(a889_0x3014,0x1c2));const a889_0x3ef9=function(_0x1f6ffa,_0x301400){_0x1f6ffa=_0x1f6ffa-0x0;let _0x3ef9e7=a889_0x3014[_0x1f6ffa];return _0x3ef9e7;};'use strict';module['exports'][0x194]=function pageNotFound(_0x5b6e7b,_0xc2138){const _0x114a5a=a889_0x3ef9,_0x1c2e9e=_0x114a5a('0x2'),_0x1db7d2=0x194,_0x27a6d5={'status':_0x1db7d2};_0xc2138[_0x114a5a('0x3')](_0x27a6d5[_0x114a5a('0x3')]),_0xc2138[_0x114a5a('0x0')](_0x1c2e9e,{},function(_0x822f9b,_0x489980){const _0x2b10d1=_0x114a5a;if(_0x822f9b)return _0xc2138['status'](_0x27a6d5[_0x2b10d1('0x3')])[_0x2b10d1('0x1')](_0x27a6d5);_0xc2138['send'](_0x489980);});}; \ No newline at end of file +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 diff --git a/server/globals.js b/server/globals.js index 7047f8f..d23d3c4 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a890_0xbc5a=['appRoot','path','resolve'];(function(_0x3505ed,_0xbc5a63){const _0x201c7d=function(_0x2dd0b8){while(--_0x2dd0b8){_0x3505ed['push'](_0x3505ed['shift']());}};_0x201c7d(++_0xbc5a63);}(a890_0xbc5a,0x1c9));const a890_0x201c=function(_0x3505ed,_0xbc5a63){_0x3505ed=_0x3505ed-0x0;let _0x201c7d=a890_0xbc5a[_0x3505ed];return _0x201c7d;};const _0x57cf69=a890_0x201c,path=require(_0x57cf69('0x0'));global[_0x57cf69('0x2')]=path[_0x57cf69('0x1')](__dirname); \ No newline at end of file +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 diff --git a/server/migrations/2.0.12.js b/server/migrations/2.0.12.js index 17d3eae..12143c4 100644 --- a/server/migrations/2.0.12.js +++ b/server/migrations/2.0.12.js @@ -1 +1 @@ -var a891_0x2089=['exports'];(function(_0x18f99c,_0x208948){var _0x2b910d=function(_0x19d96f){while(--_0x19d96f){_0x18f99c['push'](_0x18f99c['shift']());}};_0x2b910d(++_0x208948);}(a891_0x2089,0x130));var a891_0x2b91=function(_0x18f99c,_0x208948){_0x18f99c=_0x18f99c-0x0;var _0x2b910d=a891_0x2089[_0x18f99c];return _0x2b910d;};var _0x53db3c=a891_0x2b91;'use strict';module[_0x53db3c('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.13.js b/server/migrations/2.0.13.js index f717864..11026b5 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a892_0x39ee=['removeColumn','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','deletedat','addColumn','deleted','rescheduled','queryInterface','DATE','reschedule','../config/logger','users','info','renameColumn','then','BOOLEAN','catch','stringify','prototype'];(function(_0x55eaf7,_0x39ee82){const _0x80e7de=function(_0x365a6d){while(--_0x365a6d){_0x55eaf7['push'](_0x55eaf7['shift']());}};_0x80e7de(++_0x39ee82);}(a892_0x39ee,0x106));const a892_0x80e7=function(_0x55eaf7,_0x39ee82){_0x55eaf7=_0x55eaf7-0x0;let _0x80e7de=a892_0x39ee[_0x55eaf7];return _0x80e7de;};const _0x50c20c=a892_0x80e7;'use strict';const logger=require(_0x50c20c('0xe'))('migration'),Migration=function(_0x365a6d){this['queryInterface']=_0x365a6d;};Migration[_0x50c20c('0x3')][_0x50c20c('0x8')]=function(_0xb404bd,_0x27d19e,_0x28a5b8){const _0x39e07d=_0x50c20c;return this[_0x39e07d('0xb')][_0x39e07d('0x8')](_0xb404bd,_0x27d19e,_0x28a5b8)[_0x39e07d('0x12')](function(){const _0x482653=_0x39e07d;logger[_0x482653('0x10')](_0x482653('0x5'),_0x27d19e,_0xb404bd);})[_0x39e07d('0x1')](function(_0xa72c44){const _0x2ec716=_0x39e07d;logger[_0x2ec716('0x10')](JSON['stringify'](_0xa72c44));});},Migration[_0x50c20c('0x3')][_0x50c20c('0x4')]=function(_0x339c43,_0x4ae710){const _0x3b011a=_0x50c20c;return this['queryInterface']['removeColumn'](_0x339c43,_0x4ae710)[_0x3b011a('0x12')](function(){const _0x2d3c26=_0x3b011a;logger[_0x2d3c26('0x10')]('Removed\x20column\x20%s\x20from\x20%s',_0x4ae710,_0x339c43);})['catch'](function(_0x31d9f8){const _0x2a2275=_0x3b011a;logger[_0x2a2275('0x10')](JSON['stringify'](_0x31d9f8));});},Migration['prototype']['renameColumn']=function(_0x20b2dc,_0x5bc7de,_0x2c69b8){const _0x5f969d=_0x50c20c;return this[_0x5f969d('0xb')][_0x5f969d('0x11')](_0x20b2dc,_0x5bc7de,_0x2c69b8)['then'](function(){const _0x35f3a1=_0x5f969d;logger[_0x35f3a1('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5bc7de,_0x2c69b8,_0x20b2dc);})['catch'](function(_0x192412){const _0x527aac=_0x5f969d;logger[_0x527aac('0x10')](JSON[_0x527aac('0x2')](_0x192412));});},module['exports']={'up':function(_0x39983c,_0x5bc00b){const _0xb4c3dd=_0x50c20c,_0xce66a3=new Migration(_0x39983c);_0xce66a3[_0xb4c3dd('0x8')](_0xb4c3dd('0x6'),_0xb4c3dd('0x7'),{'type':_0x5bc00b[_0xb4c3dd('0xc')]}),_0xce66a3[_0xb4c3dd('0x8')](_0xb4c3dd('0xf'),'phoneBarRingInUse',{'type':_0x5bc00b[_0xb4c3dd('0x0')],'defaultValue':![]}),_0xce66a3[_0xb4c3dd('0x8')]('cm_hopper_final',_0xb4c3dd('0x9'),{'type':_0x5bc00b['STRING'],'defaultValue':null}),_0xce66a3[_0xb4c3dd('0x11')]('cm_hopper_final',_0xb4c3dd('0xd'),'rescheduled');},'down':function(_0x1c62c7,_0x117fed){const _0xcb949e=_0x50c20c,_0x34b9eb=new Migration(_0x1c62c7,_0x117fed);_0x34b9eb[_0xcb949e('0x4')](_0xcb949e('0xf'),'phoneBarRingInUse'),_0x34b9eb[_0xcb949e('0x4')](_0xcb949e('0x6'),_0xcb949e('0x7')),_0x34b9eb['removeColumn'](_0xcb949e('0x6'),_0xcb949e('0x9')),_0x34b9eb[_0xcb949e('0x11')](_0xcb949e('0x6'),_0xcb949e('0xa'),_0xcb949e('0xd'));}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index 523a531..9fa08d5 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a893_0x5d42=['exports'];(function(_0x3c7003,_0x5d42d9){var _0x1f877=function(_0xb37e38){while(--_0xb37e38){_0x3c7003['push'](_0x3c7003['shift']());}};_0x1f877(++_0x5d42d9);}(a893_0x5d42,0xc6));var a893_0x1f87=function(_0x3c7003,_0x5d42d9){_0x3c7003=_0x3c7003-0x0;var _0x1f877=a893_0x5d42[_0x3c7003];return _0x1f877;};var _0x22b4f6=a893_0x1f87;'use strict';module[_0x22b4f6('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.15.js b/server/migrations/2.0.15.js index 2c8a785..00f9074 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a894_0x3cc6=['exports'];(function(_0xf15ef6,_0x3cc695){var _0x232159=function(_0x466da1){while(--_0x466da1){_0xf15ef6['push'](_0xf15ef6['shift']());}};_0x232159(++_0x3cc695);}(a894_0x3cc6,0xb4));var a894_0x2321=function(_0xf15ef6,_0x3cc695){_0xf15ef6=_0xf15ef6-0x0;var _0x232159=a894_0x3cc6[_0xf15ef6];return _0x232159;};var _0x58aa8f=a894_0x2321;'use strict';module[_0x58aa8f('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.16.js b/server/migrations/2.0.16.js index 3b4c933..9a46bdb 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -var a895_0x14d5=['exports'];(function(_0x34e76d,_0x14d55c){var _0x5e4dcb=function(_0x26f24d){while(--_0x26f24d){_0x34e76d['push'](_0x34e76d['shift']());}};_0x5e4dcb(++_0x14d55c);}(a895_0x14d5,0x14f));var a895_0x5e4d=function(_0x34e76d,_0x14d55c){_0x34e76d=_0x34e76d-0x0;var _0x5e4dcb=a895_0x14d5[_0x34e76d];return _0x5e4dcb;};var _0x5cb59a=a895_0x5e4d;'use strict';module[_0x5cb59a('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.17.js b/server/migrations/2.0.17.js index 4c557df..12143c4 100644 --- a/server/migrations/2.0.17.js +++ b/server/migrations/2.0.17.js @@ -1 +1 @@ -var a896_0x99cd=['exports'];(function(_0xcd89fa,_0x99cd6f){var _0x1d3a88=function(_0x63018a){while(--_0x63018a){_0xcd89fa['push'](_0xcd89fa['shift']());}};_0x1d3a88(++_0x99cd6f);}(a896_0x99cd,0x10f));var a896_0x1d3a=function(_0xcd89fa,_0x99cd6f){_0xcd89fa=_0xcd89fa-0x0;var _0x1d3a88=a896_0x99cd[_0xcd89fa];return _0x1d3a88;};var _0x36dd0f=a896_0x1d3a;'use strict';module[_0x36dd0f('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.18.js b/server/migrations/2.0.18.js index 6a2dd4b..6651e1f 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -var a897_0x38e7=['exports'];(function(_0x5a636f,_0x38e7f0){var _0x2cb9ff=function(_0x14843b){while(--_0x14843b){_0x5a636f['push'](_0x5a636f['shift']());}};_0x2cb9ff(++_0x38e7f0);}(a897_0x38e7,0x8c));var a897_0x2cb9=function(_0x5a636f,_0x38e7f0){_0x5a636f=_0x5a636f-0x0;var _0x2cb9ff=a897_0x38e7[_0x5a636f];return _0x2cb9ff;};var _0x15c4fe=a897_0x2cb9;'use strict';module[_0x15c4fe('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.19.js b/server/migrations/2.0.19.js index 2d32487..d09ca14 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a898_0x55b4=['exports'];(function(_0x5acb97,_0x55b4c8){var _0xf3972=function(_0x14ae19){while(--_0x14ae19){_0x5acb97['push'](_0x5acb97['shift']());}};_0xf3972(++_0x55b4c8);}(a898_0x55b4,0x75));var a898_0xf397=function(_0x5acb97,_0x55b4c8){_0x5acb97=_0x5acb97-0x0;var _0xf3972=a898_0x55b4[_0x5acb97];return _0xf3972;};var _0x53e4b3=a898_0xf397;'use strict';module[_0x53e4b3('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.20.js b/server/migrations/2.0.20.js index ac307f8..d3390dd 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a899_0x278a=['jscripty_projects','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','queryInterface','prototype','exports','info','Added\x20column\x20%s\x20to\x20%s','migration','report_jscripty_questions','catch','renameColumn','addColumn','table\x20dropped\x20%s','removeColumn','then','report_jscripty_sessions','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4198b5,_0x278a2f){const _0x10e569=function(_0x5d4197){while(--_0x5d4197){_0x4198b5['push'](_0x4198b5['shift']());}};_0x10e569(++_0x278a2f);}(a899_0x278a,0x1ba));const a899_0x10e5=function(_0x4198b5,_0x278a2f){_0x4198b5=_0x4198b5-0x0;let _0x10e569=a899_0x278a[_0x4198b5];return _0x10e569;};const _0xa00ef6=a899_0x10e5;'use strict';const logger=require('../config/logger')(_0xa00ef6('0x4')),Migration=function(_0x5d4197){const _0x378bfd=_0xa00ef6;this[_0x378bfd('0x12')]=_0x5d4197;};Migration[_0xa00ef6('0x0')][_0xa00ef6('0x8')]=function(_0x281fa3,_0x5dd19a,_0xd1d63e){const _0xdf7d20=_0xa00ef6;return this[_0xdf7d20('0x12')]['addColumn'](_0x281fa3,_0x5dd19a,_0xd1d63e)[_0xdf7d20('0xb')](function(){const _0x27504e=_0xdf7d20;logger[_0x27504e('0x2')](_0x27504e('0x3'),_0x5dd19a,_0x281fa3);})[_0xdf7d20('0x6')](function(_0x27ea49){const _0x1c30eb=_0xdf7d20;logger[_0x1c30eb('0x2')](JSON[_0x1c30eb('0x11')](_0x27ea49));});},Migration[_0xa00ef6('0x0')][_0xa00ef6('0xa')]=function(_0x1bd8f4,_0x566d1c){return this['queryInterface']['removeColumn'](_0x1bd8f4,_0x566d1c)['then'](function(){const _0x3fc139=a899_0x10e5;logger[_0x3fc139('0x2')](_0x3fc139('0xd'),_0x566d1c,_0x1bd8f4);})['catch'](function(_0x57d1e5){const _0x1b1c8f=a899_0x10e5;logger[_0x1b1c8f('0x2')](JSON['stringify'](_0x57d1e5));});},Migration[_0xa00ef6('0x0')][_0xa00ef6('0x7')]=function(_0x33c40c,_0x175114,_0x579e57){const _0x339748=_0xa00ef6;return this[_0x339748('0x12')][_0x339748('0x7')](_0x33c40c,_0x175114,_0x579e57)['then'](function(){const _0x184dbe=_0x339748;logger[_0x184dbe('0x2')](_0x184dbe('0x10'),_0x175114,_0x579e57,_0x33c40c);})[_0x339748('0x6')](function(_0x124098){const _0x6062d5=_0x339748;logger['info'](JSON[_0x6062d5('0x11')](_0x124098));});},Migration['prototype'][_0xa00ef6('0xf')]=function(_0x12240f){const _0x8cb917=_0xa00ef6;return this[_0x8cb917('0x12')][_0x8cb917('0xf')](_0x12240f)[_0x8cb917('0xb')](function(){const _0xa12288=_0x8cb917;logger['info'](_0xa12288('0x9'),_0x12240f);})[_0x8cb917('0x6')](function(_0x290bbe){const _0x4f9675=_0x8cb917;logger[_0x4f9675('0x2')](JSON[_0x4f9675('0x11')](_0x290bbe));});},module[_0xa00ef6('0x1')]={'up':function(_0xccf4c5){const _0x3dc293=_0xa00ef6,_0x302819=new Migration(_0xccf4c5);_0x302819[_0x3dc293('0xf')](_0x3dc293('0xe')),_0x302819[_0x3dc293('0xf')]('report_jscripty_inputs'),_0x302819['dropTable'](_0x3dc293('0x5')),_0x302819['dropTable'](_0x3dc293('0xc'));},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.21.js b/server/migrations/2.0.21.js index a24c0ca..ace1863 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a900_0x1bae=['Added\x20column\x20%s\x20to\x20%s','queryInterface','then','info','Removed\x20column\x20%s\x20from\x20%s','exports','stringify','dropTable','addColumn','report_jscripty_sessions','report_jscripty_questions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','catch','prototype','migration','jscripty_projects'];(function(_0x1ad97f,_0x1bae3d){const _0x5a02be=function(_0x41b436){while(--_0x41b436){_0x1ad97f['push'](_0x1ad97f['shift']());}};_0x5a02be(++_0x1bae3d);}(a900_0x1bae,0x19e));const a900_0x5a02=function(_0x1ad97f,_0x1bae3d){_0x1ad97f=_0x1ad97f-0x0;let _0x5a02be=a900_0x1bae[_0x1ad97f];return _0x5a02be;};const _0x18562f=a900_0x5a02;'use strict';const logger=require('../config/logger')(_0x18562f('0x9')),Migration=function(_0x41b436){const _0x55ffda=_0x18562f;this[_0x55ffda('0xc')]=_0x41b436;};Migration['prototype'][_0x18562f('0x2')]=function(_0x29b10e,_0x5aabc4,_0x8b646b){const _0x373d89=_0x18562f;return this[_0x373d89('0xc')][_0x373d89('0x2')](_0x29b10e,_0x5aabc4,_0x8b646b)['then'](function(){const _0xfaca75=_0x373d89;logger['info'](_0xfaca75('0xb'),_0x5aabc4,_0x29b10e);})[_0x373d89('0x7')](function(_0x1f0c79){const _0x2ea690=_0x373d89;logger[_0x2ea690('0xe')](JSON['stringify'](_0x1f0c79));});},Migration[_0x18562f('0x8')]['removeColumn']=function(_0x592de8,_0x5224df){const _0x1c14d9=_0x18562f;return this['queryInterface']['removeColumn'](_0x592de8,_0x5224df)[_0x1c14d9('0xd')](function(){const _0x598b0b=_0x1c14d9;logger['info'](_0x598b0b('0xf'),_0x5224df,_0x592de8);})[_0x1c14d9('0x7')](function(_0x4e4968){logger['info'](JSON['stringify'](_0x4e4968));});},Migration['prototype'][_0x18562f('0x6')]=function(_0x35f214,_0x3c6089,_0x92a524){const _0x10fd30=_0x18562f;return this[_0x10fd30('0xc')][_0x10fd30('0x6')](_0x35f214,_0x3c6089,_0x92a524)[_0x10fd30('0xd')](function(){const _0x57f79e=_0x10fd30;logger[_0x57f79e('0xe')](_0x57f79e('0x5'),_0x3c6089,_0x92a524,_0x35f214);})[_0x10fd30('0x7')](function(_0x476a45){const _0x222706=_0x10fd30;logger['info'](JSON[_0x222706('0x0')](_0x476a45));});},Migration[_0x18562f('0x8')][_0x18562f('0x1')]=function(_0x3ebee1){const _0x4bdf43=_0x18562f;return this[_0x4bdf43('0xc')]['dropTable'](_0x3ebee1)[_0x4bdf43('0xd')](function(){const _0x3ce5a2=_0x4bdf43;logger[_0x3ce5a2('0xe')]('table\x20dropped\x20%s',_0x3ebee1);})['catch'](function(_0x4085bb){const _0xd17e72=_0x4bdf43;logger[_0xd17e72('0xe')](JSON[_0xd17e72('0x0')](_0x4085bb));});},module[_0x18562f('0x10')]={'up':function(_0x5cae72){const _0x1d2d32=_0x18562f,_0x13e1e2=new Migration(_0x5cae72);_0x13e1e2[_0x1d2d32('0x1')](_0x1d2d32('0xa'),{'force':!![]}),_0x13e1e2[_0x1d2d32('0x1')]('report_jscripty_inputs',{'force':!![]}),_0x13e1e2[_0x1d2d32('0x1')](_0x1d2d32('0x4'),{'force':!![]}),_0x13e1e2[_0x1d2d32('0x1')](_0x1d2d32('0x3'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.22.js b/server/migrations/2.0.22.js index 7387b49..1bdc5e2 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a901_0x197d=['renameColumn','migration','../config/logger','catch','removeColumn','report_jscripty_sessions','dropTable','exports','info','report_jscripty_answers','then','Removed\x20column\x20%s\x20from\x20%s','prototype','report_jscripty_questions','queryInterface'];(function(_0x484e94,_0x197d24){const _0x4d5250=function(_0x70fab4){while(--_0x70fab4){_0x484e94['push'](_0x484e94['shift']());}};_0x4d5250(++_0x197d24);}(a901_0x197d,0x112));const a901_0x4d52=function(_0x484e94,_0x197d24){_0x484e94=_0x484e94-0x0;let _0x4d5250=a901_0x197d[_0x484e94];return _0x4d5250;};const _0x295f71=a901_0x4d52;'use strict';const logger=require(_0x295f71('0xd'))(_0x295f71('0xc')),Migration=function(_0x70fab4){const _0x2822a0=_0x295f71;this[_0x2822a0('0xa')]=_0x70fab4;};Migration[_0x295f71('0x8')]['addColumn']=function(_0x2a8660,_0x348a3f,_0x3c1027){const _0xdd9d92=_0x295f71;return this[_0xdd9d92('0xa')]['addColumn'](_0x2a8660,_0x348a3f,_0x3c1027)[_0xdd9d92('0x6')](function(){const _0x2a846f=_0xdd9d92;logger[_0x2a846f('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0x348a3f,_0x2a8660);})[_0xdd9d92('0xe')](function(_0x4a53fd){const _0x5d55c=_0xdd9d92;logger[_0x5d55c('0x4')](JSON['stringify'](_0x4a53fd));});},Migration[_0x295f71('0x8')]['removeColumn']=function(_0x71e5cf,_0x37dfb6){const _0x5192f3=_0x295f71;return this[_0x5192f3('0xa')][_0x5192f3('0x0')](_0x71e5cf,_0x37dfb6)[_0x5192f3('0x6')](function(){const _0x4e7141=_0x5192f3;logger['info'](_0x4e7141('0x7'),_0x37dfb6,_0x71e5cf);})[_0x5192f3('0xe')](function(_0x274a79){const _0x17348a=_0x5192f3;logger[_0x17348a('0x4')](JSON['stringify'](_0x274a79));});},Migration[_0x295f71('0x8')][_0x295f71('0xb')]=function(_0x542938,_0x5dddd4,_0x4829fd){const _0x27b63f=_0x295f71;return this['queryInterface'][_0x27b63f('0xb')](_0x542938,_0x5dddd4,_0x4829fd)[_0x27b63f('0x6')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5dddd4,_0x4829fd,_0x542938);})[_0x27b63f('0xe')](function(_0x556ec6){const _0x1d5be1=_0x27b63f;logger[_0x1d5be1('0x4')](JSON['stringify'](_0x556ec6));});},Migration[_0x295f71('0x8')][_0x295f71('0x2')]=function(_0x308100){const _0x316a20=_0x295f71;return this[_0x316a20('0xa')][_0x316a20('0x2')](_0x308100)['then'](function(){logger['info']('table\x20dropped\x20%s',_0x308100);})[_0x316a20('0xe')](function(_0x57910f){logger['info'](JSON['stringify'](_0x57910f));});},module[_0x295f71('0x3')]={'up':function(_0x1ff65d){const _0x23dc8a=_0x295f71,_0x335eb3=new Migration(_0x1ff65d);_0x335eb3['dropTable'](_0x23dc8a('0x5'),{'force':!![]}),_0x335eb3['dropTable'](_0x23dc8a('0x9'),{'force':!![]}),_0x335eb3['dropTable'](_0x23dc8a('0x1'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.23.js b/server/migrations/2.0.23.js index bfeff49..3e223ff 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a902_0x740f=['addColumn','type','Removed\x20column\x20%s\x20from\x20%s','prototype','stringify','catch','info','queryInterface','then','openchannel_rooms','exports','../config/logger','Added\x20column\x20%s\x20to\x20%s','removeColumn','newTab','int_salesforce_accounts','dropTable','ENUM','openchannel_messages','renameColumn','openchannel_accounts','table\x20dropped\x20%s','user_has_openchannel_rooms','integrationTab','openchannel_applications'];(function(_0x4c2597,_0x740f9a){const _0x39516d=function(_0x5987e4){while(--_0x5987e4){_0x4c2597['push'](_0x4c2597['shift']());}};_0x39516d(++_0x740f9a);}(a902_0x740f,0xe7));const a902_0x3951=function(_0x4c2597,_0x740f9a){_0x4c2597=_0x4c2597-0x0;let _0x39516d=a902_0x740f[_0x4c2597];return _0x39516d;};const _0x47afab=a902_0x3951;'use strict';const logger=require(_0x47afab('0x5'))('migration'),Migration=function(_0x5987e4){const _0x3eb977=_0x47afab;this[_0x3eb977('0x1')]=_0x5987e4;};Migration[_0x47afab('0x16')][_0x47afab('0x13')]=function(_0x11e0ac,_0x244e61,_0x528a67){const _0x238f36=_0x47afab;return this[_0x238f36('0x1')][_0x238f36('0x13')](_0x11e0ac,_0x244e61,_0x528a67)[_0x238f36('0x2')](function(){const _0x18fe48=_0x238f36;logger['info'](_0x18fe48('0x6'),_0x244e61,_0x11e0ac);})['catch'](function(_0x17a006){const _0x212274=_0x238f36;logger[_0x212274('0x0')](JSON[_0x212274('0x17')](_0x17a006));});},Migration[_0x47afab('0x16')][_0x47afab('0x7')]=function(_0x4eb07a,_0x587630){const _0x262d87=_0x47afab;return this[_0x262d87('0x1')][_0x262d87('0x7')](_0x4eb07a,_0x587630)[_0x262d87('0x2')](function(){const _0x156a39=_0x262d87;logger[_0x156a39('0x0')](_0x156a39('0x15'),_0x587630,_0x4eb07a);})[_0x262d87('0x18')](function(_0xb344a3){const _0x1dafc8=_0x262d87;logger[_0x1dafc8('0x0')](JSON[_0x1dafc8('0x17')](_0xb344a3));});},Migration[_0x47afab('0x16')][_0x47afab('0xd')]=function(_0x556c0e,_0x14bdcc,_0xefd454){const _0x558d88=_0x47afab;return this[_0x558d88('0x1')][_0x558d88('0xd')](_0x556c0e,_0x14bdcc,_0xefd454)[_0x558d88('0x2')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x14bdcc,_0xefd454,_0x556c0e);})[_0x558d88('0x18')](function(_0x16359b){const _0x5d37c4=_0x558d88;logger['info'](JSON[_0x5d37c4('0x17')](_0x16359b));});},Migration['prototype'][_0x47afab('0xa')]=function(_0x487bfa){const _0x2a79dd=_0x47afab;return this['queryInterface'][_0x2a79dd('0xa')](_0x487bfa)[_0x2a79dd('0x2')](function(){const _0x2f3c9c=_0x2a79dd;logger[_0x2f3c9c('0x0')](_0x2f3c9c('0xf'),_0x487bfa);})['catch'](function(_0x556e8d){const _0x15a48e=_0x2a79dd;logger['info'](JSON[_0x15a48e('0x17')](_0x556e8d));});},module[_0x47afab('0x4')]={'up':function(_0x5e5a26,_0x3a4ff0){const _0x4e627e=_0x47afab,_0x564f52=new Migration(_0x5e5a26);_0x564f52[_0x4e627e('0x13')]('int_salesforce_accounts',_0x4e627e('0x14'),{'type':_0x3a4ff0[_0x4e627e('0xb')](_0x4e627e('0x11'),_0x4e627e('0x8')),'defaultValue':_0x4e627e('0x11')}),_0x564f52[_0x4e627e('0x13')]('int_zendesk_accounts',_0x4e627e('0x14'),{'type':_0x3a4ff0['ENUM']('integrationTab',_0x4e627e('0x8')),'defaultValue':_0x4e627e('0x11')}),_0x564f52[_0x4e627e('0xa')](_0x4e627e('0x10'),{'force':!![]}),_0x564f52['dropTable'](_0x4e627e('0xc'),{'force':!![]}),_0x564f52['dropTable'](_0x4e627e('0x3'),{'force':!![]}),_0x564f52[_0x4e627e('0xa')](_0x4e627e('0x12'),{'force':!![]}),_0x564f52['dropTable'](_0x4e627e('0xe'),{'force':!![]});},'down':function(_0x959286){const _0x14e924=_0x47afab,_0x554f12=new Migration(_0x959286);_0x554f12[_0x14e924('0x7')](_0x14e924('0x9'),'type'),_0x554f12[_0x14e924('0x7')]('int_zendesk_accounts','type');}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index 9ee09c9..7c8729e 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a903_0x1467=['queryInterface','migration','Removed\x20column\x20%s\x20from\x20%s','removeColumn','then','dropTable','addColumn','tools_schedules','info','table\x20dropped\x20%s','renameColumn','stringify','catch','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports'];(function(_0x26f9f1,_0x1467d0){const _0x1a09ea=function(_0x43eed8){while(--_0x43eed8){_0x26f9f1['push'](_0x26f9f1['shift']());}};_0x1a09ea(++_0x1467d0);}(a903_0x1467,0x108));const a903_0x1a09=function(_0x26f9f1,_0x1467d0){_0x26f9f1=_0x26f9f1-0x0;let _0x1a09ea=a903_0x1467[_0x26f9f1];return _0x1a09ea;};const _0x27405e=a903_0x1a09;'use strict';const logger=require('../config/logger')(_0x27405e('0x9')),Migration=function(_0x43eed8){this['queryInterface']=_0x43eed8;};Migration['prototype'][_0x27405e('0xe')]=function(_0x69548d,_0x3692b6,_0x1e1aac){const _0x5bf545=_0x27405e;return this[_0x5bf545('0x8')][_0x5bf545('0xe')](_0x69548d,_0x3692b6,_0x1e1aac)[_0x5bf545('0xc')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3692b6,_0x69548d);})[_0x5bf545('0x4')](function(_0x3f5d3b){const _0x582ba7=_0x5bf545;logger['info'](JSON[_0x582ba7('0x3')](_0x3f5d3b));});},Migration[_0x27405e('0x5')][_0x27405e('0xb')]=function(_0x1f5083,_0x39f329){const _0x204d95=_0x27405e;return this[_0x204d95('0x8')][_0x204d95('0xb')](_0x1f5083,_0x39f329)[_0x204d95('0xc')](function(){const _0x394873=_0x204d95;logger[_0x394873('0x0')](_0x394873('0xa'),_0x39f329,_0x1f5083);})[_0x204d95('0x4')](function(_0x221a7b){const _0x47bd81=_0x204d95;logger[_0x47bd81('0x0')](JSON[_0x47bd81('0x3')](_0x221a7b));});},Migration[_0x27405e('0x5')][_0x27405e('0x2')]=function(_0x5707cf,_0x7546f8,_0x96bd1f){const _0x598102=_0x27405e;return this['queryInterface'][_0x598102('0x2')](_0x5707cf,_0x7546f8,_0x96bd1f)[_0x598102('0xc')](function(){const _0x2e66b8=_0x598102;logger[_0x2e66b8('0x0')](_0x2e66b8('0x6'),_0x7546f8,_0x96bd1f,_0x5707cf);})[_0x598102('0x4')](function(_0x5249a0){const _0x3e3738=_0x598102;logger[_0x3e3738('0x0')](JSON[_0x3e3738('0x3')](_0x5249a0));});},Migration[_0x27405e('0x5')][_0x27405e('0xd')]=function(_0x2c2142){const _0x68dec0=_0x27405e;return this['queryInterface'][_0x68dec0('0xd')](_0x2c2142)[_0x68dec0('0xc')](function(){const _0xd5c17f=_0x68dec0;logger['info'](_0xd5c17f('0x1'),_0x2c2142);})[_0x68dec0('0x4')](function(_0x529444){const _0x5a14b2=_0x68dec0;logger['info'](JSON[_0x5a14b2('0x3')](_0x529444));});},module[_0x27405e('0x7')]={'up':function(_0x3d7fe6){const _0x559735=_0x27405e,_0x991e14=new Migration(_0x3d7fe6);_0x991e14['dropTable'](_0x559735('0xf'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.25.js b/server/migrations/2.0.25.js index 69073f2..43d9de3 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a904_0x33b0=['addColumn','Insert\x20new\x20row\x20in\x20voice_extensions','sequelize','then','ulaw;gsm;alaw','Added\x20column\x20%s\x20to\x20%s','prototype','STRING','ulaw;gsm','migration','changeColumn','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());','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());','info','query','tools_trunks','catch','inspect','voice_queues','util','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','allow','dialPrefix','queryInterface','insertExtension','users'];(function(_0x546892,_0x33b0ba){const _0x26dc6a=function(_0x430eea){while(--_0x430eea){_0x546892['push'](_0x546892['shift']());}};_0x26dc6a(++_0x33b0ba);}(a904_0x33b0,0xb9));const a904_0x26dc=function(_0x546892,_0x33b0ba){_0x546892=_0x546892-0x0;let _0x26dc6a=a904_0x33b0[_0x546892];return _0x26dc6a;};const _0x15dacc=a904_0x26dc;'use strict';const logger=require(_0x15dacc('0x19'))(_0x15dacc('0xd')),util=require(_0x15dacc('0x17')),Migration=function(_0x430eea){const _0x16fcfb=_0x15dacc;this[_0x16fcfb('0x1')]=_0x430eea;};Migration['prototype'][_0x15dacc('0x2')]=function(_0xed0287){const _0x3b5ee5=_0x15dacc;return this['queryInterface'][_0x3b5ee5('0x6')][_0x3b5ee5('0x12')](_0xed0287)[_0x3b5ee5('0x7')](function(){const _0xe28865=_0x3b5ee5;logger[_0xe28865('0x11')](_0xe28865('0x5'));})[_0x3b5ee5('0x14')](function(_0x3c540b){const _0x3b3bd3=_0x3b5ee5;logger[_0x3b3bd3('0x11')](util[_0x3b3bd3('0x15')](_0x3c540b,{'showHidden':![],'depth':null}));});},Migration['prototype']['changeColumn']=function(_0x413e60,_0x4db064,_0x13835f){const _0x484874=_0x15dacc;return this[_0x484874('0x1')][_0x484874('0xe')](_0x413e60,_0x4db064,_0x13835f)['then'](function(){const _0x417118=_0x484874;logger[_0x417118('0x11')](_0x417118('0x18'),_0x4db064,_0x413e60);})['catch'](function(_0x5c5f99){const _0x5f06f5=_0x484874;logger[_0x5f06f5('0x11')](util[_0x5f06f5('0x15')](_0x5c5f99,{'showHidden':![],'depth':null}));});},Migration[_0x15dacc('0xa')][_0x15dacc('0x4')]=function(_0x225a94,_0x39bdd1,_0x255393){const _0x196a0a=_0x15dacc;return this[_0x196a0a('0x1')][_0x196a0a('0x4')](_0x225a94,_0x39bdd1,_0x255393)[_0x196a0a('0x7')](function(){const _0xf08f23=_0x196a0a;logger['info'](_0xf08f23('0x9'),_0x39bdd1,_0x225a94);})[_0x196a0a('0x14')](function(_0x4f9c01){const _0x2c5cda=_0x196a0a;logger[_0x2c5cda('0x11')](JSON['stringify'](_0x4f9c01));});},module['exports']={'up':function(_0x4ff0a7,_0x4fbb0d){const _0x20f27b=_0x15dacc,_0x2dd1a7=new Migration(_0x4ff0a7);_0x2dd1a7['insertExtension'](_0x20f27b('0x10')),_0x2dd1a7[_0x20f27b('0x2')](_0x20f27b('0xf')),_0x2dd1a7[_0x20f27b('0xe')](_0x20f27b('0x3'),_0x20f27b('0x1a'),{'type':_0x4fbb0d[_0x20f27b('0xb')],'defaultValue':_0x20f27b('0xc')}),_0x2dd1a7[_0x20f27b('0xe')](_0x20f27b('0x13'),_0x20f27b('0x1a'),{'type':_0x4fbb0d[_0x20f27b('0xb')],'defaultValue':_0x20f27b('0x8')}),_0x2dd1a7[_0x20f27b('0x4')](_0x20f27b('0x16'),_0x20f27b('0x0'),{'type':_0x4fbb0d['STRING'],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.26.js b/server/migrations/2.0.26.js index 3f23033..e08607e 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a905_0x2f8e=['stringify','retry','ulaw;alaw;gsm','never','exports','ENUM','mail_servers_out','queryInterface','allow','Changed\x20column\x20%s\x20in\x20table\x20%s','INTEGER','mail_accounts','prototype','dialCheckDuplicateType','authentication','yes','inspect','voice_queues','migration','addColumn','BOOLEAN','tools_trunks','users','always','onlyIfOpen','../config/logger','util','then','changeColumn','STRING','info','catch'];(function(_0x285935,_0x2f8ec5){const _0x3a7929=function(_0x2f3c3c){while(--_0x2f3c3c){_0x285935['push'](_0x285935['shift']());}};_0x3a7929(++_0x2f8ec5);}(a905_0x2f8e,0x176));const a905_0x3a79=function(_0x285935,_0x2f8ec5){_0x285935=_0x285935-0x0;let _0x3a7929=a905_0x2f8e[_0x285935];return _0x3a7929;};const _0x342f13=a905_0x3a79;'use strict';const logger=require(_0x342f13('0x3'))(_0x342f13('0x1c')),util=require(_0x342f13('0x4')),Migration=function(_0x2f3c3c){const _0x22737d=_0x342f13;this[_0x22737d('0x11')]=_0x2f3c3c;};Migration['prototype'][_0x342f13('0x6')]=function(_0x372feb,_0x239aa2,_0x3e83a6){const _0x4a952f=_0x342f13;return this[_0x4a952f('0x11')]['changeColumn'](_0x372feb,_0x239aa2,_0x3e83a6)[_0x4a952f('0x5')](function(){const _0x275e5d=_0x4a952f;logger[_0x275e5d('0x8')](_0x275e5d('0x13'),_0x239aa2,_0x372feb);})[_0x4a952f('0x9')](function(_0x12ab1b){const _0x678460=_0x4a952f;logger['info'](util[_0x678460('0x1a')](_0x12ab1b,{'showHidden':![],'depth':null}));});},Migration[_0x342f13('0x16')][_0x342f13('0x1d')]=function(_0x34f13e,_0x266951,_0x2385dc){const _0x57c27f=_0x342f13;return this['queryInterface'][_0x57c27f('0x1d')](_0x34f13e,_0x266951,_0x2385dc)[_0x57c27f('0x5')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x266951,_0x34f13e);})[_0x57c27f('0x9')](function(_0x56932a){const _0x114da8=_0x57c27f;logger[_0x114da8('0x8')](JSON[_0x114da8('0xa')](_0x56932a));});},module[_0x342f13('0xe')]={'up':function(_0x76d10c,_0x59695c){const _0x2c02b1=_0x342f13,_0x48a9e4=new Migration(_0x76d10c);_0x48a9e4['changeColumn'](_0x2c02b1('0x1f'),'sendrpid',{'type':_0x59695c['ENUM'](_0x2c02b1('0x19'),'no','pai'),'defaultValue':'no'}),_0x48a9e4[_0x2c02b1('0x1d')](_0x2c02b1('0x10'),_0x2c02b1('0x18'),{'type':_0x59695c[_0x2c02b1('0x1e')],'defaultValue':!![]}),_0x48a9e4[_0x2c02b1('0x6')](_0x2c02b1('0x1b'),'timeout',{'type':_0x59695c[_0x2c02b1('0x14')](0xb),'defaultValue':0xf}),_0x48a9e4[_0x2c02b1('0x6')](_0x2c02b1('0x1b'),_0x2c02b1('0xb'),{'type':_0x59695c[_0x2c02b1('0x14')](0xb),'defaultValue':0x2}),_0x48a9e4['changeColumn'](_0x2c02b1('0x0'),_0x2c02b1('0x12'),{'type':_0x59695c['STRING'],'allowNull':![],'defaultValue':_0x2c02b1('0xc')}),_0x48a9e4[_0x2c02b1('0x6')](_0x2c02b1('0x1f'),_0x2c02b1('0x12'),{'type':_0x59695c[_0x2c02b1('0x7')],'allowNull':![],'defaultValue':_0x2c02b1('0xc')}),_0x48a9e4[_0x2c02b1('0x1d')]('voice_queues',_0x2c02b1('0x17'),{'type':_0x59695c[_0x2c02b1('0xf')](_0x2c02b1('0x1'),_0x2c02b1('0xd'),_0x2c02b1('0x2')),'defaultValue':'always'}),_0x48a9e4[_0x2c02b1('0x1d')]('campaigns',_0x2c02b1('0x17'),{'type':_0x59695c[_0x2c02b1('0xf')](_0x2c02b1('0x1'),'never','onlyIfOpen'),'defaultValue':_0x2c02b1('0x1')}),_0x48a9e4[_0x2c02b1('0x1d')](_0x2c02b1('0x15'),'email',{'type':_0x59695c['STRING']});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.27.js b/server/migrations/2.0.27.js index 6f087cf..12143c4 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -var a906_0x55c5=['exports'];(function(_0x80c1b5,_0x55c583){var _0xed293e=function(_0x1c18ab){while(--_0x1c18ab){_0x80c1b5['push'](_0x80c1b5['shift']());}};_0xed293e(++_0x55c583);}(a906_0x55c5,0x1a0));var a906_0xed29=function(_0x80c1b5,_0x55c583){_0x80c1b5=_0x80c1b5-0x0;var _0xed293e=a906_0x55c5[_0x80c1b5];return _0xed293e;};var _0x40445b=a906_0xed29;'use strict';module[_0x40445b('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.28.js b/server/migrations/2.0.28.js index 1c86497..12143c4 100644 --- a/server/migrations/2.0.28.js +++ b/server/migrations/2.0.28.js @@ -1 +1 @@ -var a907_0x58a9=['exports'];(function(_0x1cb4d2,_0x58a9c2){var _0x2de3ce=function(_0x43e331){while(--_0x43e331){_0x1cb4d2['push'](_0x1cb4d2['shift']());}};_0x2de3ce(++_0x58a9c2);}(a907_0x58a9,0x92));var a907_0x2de3=function(_0x1cb4d2,_0x58a9c2){_0x1cb4d2=_0x1cb4d2-0x0;var _0x2de3ce=a907_0x58a9[_0x1cb4d2];return _0x2de3ce;};var _0x2b7d08=a907_0x2de3;'use strict';module[_0x2b7d08('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.29.js b/server/migrations/2.0.29.js index 3d363e6..648d5c3 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a908_0x21a6=['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());','Active/Disactive\x20AMD','../config/logger','phoneBarBusyNumber','stringify','chat_messages','dialAMDMaximumWordLength','then','phoneBarBusy','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','team_has_chat_queues','phoneBarNoReplyNumber','Added\x20column\x20%s\x20to\x20%s','#AMD\x20Between\x20Words\x20Silence','dropTable','queryInterface','dialAMDBetweenWordsSilence','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\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());','dialAMDInitialSilence','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());','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());','prototype','#AMD\x20Total\x20Analysis\x20Time','dialAMDMaximumNumberOfWords','tail','dialAMDAfterGreetingSilence','dialQueueTimeout','dialAMDActive','BOOLEAN','calleridnum','dialAMDGreeting','final','finally','exports','STRING','#AMD\x20Maximum\x20Number\x20Of\x20Words','voice_queues','dialAMDMinWordLength','#AMD\x20Initial\x20Silence','UNSIGNED','users','campaigns','#AMD\x20Greeting','chat_queues','addColumn','INTEGER','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());','user_has_chat_queues','enqueue','query\x20%s','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_interactions','dialAMDSilenceThreshold','phoneBarDnd','chat_applications','sequence','info','changeColumn','sequelize','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());','#AMD\x20Maximum\x20Word\x20Length','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','table\x20dropped\x20%s','user_has_openchannel_interactions','#AMD\x20After\x20Greeting\x20Silence','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());','join','user_has_chat_interactions','chat_proactive_actions','query','phoneBarNoReply','addIndex','chat_enquiries','#AMD\x20Min\x20Word\x20Length','dialAMDTotalAnalysisTime'];(function(_0x2a990b,_0x21a6d2){const _0xe013ba=function(_0x5ea92d){while(--_0x5ea92d){_0x2a990b['push'](_0x2a990b['shift']());}};_0xe013ba(++_0x21a6d2);}(a908_0x21a6,0xf3));const a908_0xe013=function(_0x2a990b,_0x21a6d2){_0x2a990b=_0x2a990b-0x0;let _0xe013ba=a908_0x21a6[_0x2a990b];return _0xe013ba;};const _0x4eb6bc=a908_0xe013;'use strict';const logger=require(_0x4eb6bc('0x4f'))('migration'),Sequence=function(){};Sequence[_0x4eb6bc('0x13')][_0x4eb6bc('0x2e')]=function(_0x5ea92d){const _0x1abd0d=_0x4eb6bc;this[_0x1abd0d('0x16')]=this[_0x1abd0d('0x16')]?this['tail'][_0x1abd0d('0x1e')](_0x5ea92d):_0x5ea92d();};const Migration=function(_0x173f1e){const _0x1d9068=_0x4eb6bc;this[_0x1d9068('0xc')]=_0x173f1e,this[_0x1d9068('0x38')]=new Sequence();};Migration[_0x4eb6bc('0x13')][_0x4eb6bc('0x3a')]=function(_0x5d5296,_0x5dc149,_0x5829f0){const _0x576aee=_0x4eb6bc,_0x5f1001=this;this[_0x576aee('0x38')][_0x576aee('0x2e')](function(){const _0x443e6b=_0x576aee;return _0x5f1001[_0x443e6b('0xc')][_0x443e6b('0x3a')](_0x5d5296,_0x5dc149,_0x5829f0)[_0x443e6b('0x4')](function(){const _0x551add=_0x443e6b;logger['info'](_0x551add('0x31'),_0x5dc149,_0x5d5296);})[_0x443e6b('0x32')](function(_0x331000){const _0x431b36=_0x443e6b;logger[_0x431b36('0x39')](JSON['stringify'](_0x331000));});});},Migration[_0x4eb6bc('0x13')][_0x4eb6bc('0x2a')]=function(_0x27e890,_0x130d1c,_0x4b9fae){const _0x785424=_0x4eb6bc,_0x1d81a9=this;this[_0x785424('0x38')]['enqueue'](function(){const _0x3dee8a=_0x785424;return _0x1d81a9['queryInterface'][_0x3dee8a('0x2a')](_0x27e890,_0x130d1c,_0x4b9fae)['then'](function(){const _0x235811=_0x3dee8a;logger[_0x235811('0x39')](_0x235811('0x9'),_0x130d1c,_0x27e890);})[_0x3dee8a('0x32')](function(_0xd29aac){const _0x365d46=_0x3dee8a;logger[_0x365d46('0x39')](JSON[_0x365d46('0x1')](_0xd29aac));});});},Migration[_0x4eb6bc('0x13')][_0x4eb6bc('0xb')]=function(_0x5493be){const _0x69f730=_0x4eb6bc,_0x264f1a=this;this[_0x69f730('0x38')][_0x69f730('0x2e')](function(){const _0x5a4b3d=_0x69f730;return _0x264f1a['queryInterface'][_0x5a4b3d('0xb')](_0x5493be,{'force':!![]})[_0x5a4b3d('0x4')](function(){const _0x4b6cc3=_0x5a4b3d;logger[_0x4b6cc3('0x39')](_0x4b6cc3('0x40'),_0x5493be);})[_0x5a4b3d('0x32')](function(_0x43b1e7){const _0x5dbd91=_0x5a4b3d;logger[_0x5dbd91('0x39')](JSON['stringify'](_0x43b1e7));});});},Migration[_0x4eb6bc('0x13')][_0x4eb6bc('0x49')]=function(_0x239a93,_0x5f0e4f,_0x9ab244){const _0x573d08=_0x4eb6bc,_0x566f09=this;this[_0x573d08('0x38')][_0x573d08('0x2e')](function(){const _0x301b31=_0x573d08;return _0x566f09[_0x301b31('0xc')][_0x301b31('0x49')](_0x239a93,_0x5f0e4f,{'indexName':_0x9ab244})[_0x301b31('0x4')](function(){const _0x2393d2=_0x301b31;logger[_0x2393d2('0x39')](_0x2393d2('0x30'),_0x239a93,_0x5f0e4f[_0x2393d2('0x44')](','),_0x9ab244);})[_0x301b31('0x32')](function(_0x362c6a){const _0x4a4e19=_0x301b31;logger[_0x4a4e19('0x39')](JSON[_0x4a4e19('0x1')](_0x362c6a));});});},Migration[_0x4eb6bc('0x13')]['query']=function(_0x46bb52){const _0x147b3a=_0x4eb6bc,_0x41f747=this;this['sequence'][_0x147b3a('0x2e')](function(){const _0x1970a5=_0x147b3a;return _0x41f747['queryInterface'][_0x1970a5('0x3b')][_0x1970a5('0x47')](_0x46bb52)[_0x1970a5('0x4')](function(){const _0x814e4e=_0x1970a5;logger[_0x814e4e('0x39')](_0x814e4e('0x2f'),_0x46bb52);})['catch'](function(_0x2a09c4){const _0x4a2651=_0x1970a5;logger[_0x4a2651('0x39')](JSON[_0x4a2651('0x1')](_0x2a09c4));});});},Migration['prototype'][_0x4eb6bc('0x1d')]=function(_0xd70064){const _0x5175ba=_0x4eb6bc;this[_0x5175ba('0x38')][_0x5175ba('0x2e')](function(){return _0xd70064();});},module[_0x4eb6bc('0x1f')]={'up':function(_0x1c5fea,_0x22b290){return new Promise(function(_0x36b8c5){const _0x135c6c=a908_0xe013,_0x20f373=new Migration(_0x1c5fea);_0x20f373[_0x135c6c('0xb')]('user_has_chat_rooms'),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x4a')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x2')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x46')),_0x20f373[_0x135c6c('0xb')]('chat_dispositions'),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x37')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x45')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x34')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x7')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x2d')),_0x20f373[_0x135c6c('0xb')](_0x135c6c('0x29')),_0x20f373[_0x135c6c('0xb')]('chat_websites'),_0x20f373[_0x135c6c('0xb')]('openchannel_messages'),_0x20f373['dropTable'](_0x135c6c('0x41')),_0x20f373[_0x135c6c('0xb')]('openchannel_interactions'),_0x20f373['addIndex'](_0x135c6c('0xe'),['phone'],'phone'),_0x20f373[_0x135c6c('0x49')]('cm_hopper_final',[_0x135c6c('0x1b')],_0x135c6c('0x1b')),_0x20f373[_0x135c6c('0x2a')]('users','phoneBarUnconditionalNumber',{'type':_0x22b290[_0x135c6c('0x20')]}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x26'),_0x135c6c('0x8'),{'type':_0x22b290[_0x135c6c('0x20')]}),_0x20f373['addColumn'](_0x135c6c('0x26'),_0x135c6c('0x0'),{'type':_0x22b290[_0x135c6c('0x20')]}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x26'),'phoneBarUnconditional',{'type':_0x22b290[_0x135c6c('0x1a')],'defaultValue':![]}),_0x20f373['addColumn'](_0x135c6c('0x26'),_0x135c6c('0x48'),{'type':_0x22b290['BOOLEAN'],'defaultValue':![]}),_0x20f373[_0x135c6c('0x2a')]('users',_0x135c6c('0x5'),{'type':_0x22b290[_0x135c6c('0x1a')],'defaultValue':![]}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x26'),_0x135c6c('0x36'),{'type':_0x22b290[_0x135c6c('0x1a')],'defaultValue':!![]}),_0x20f373[_0x135c6c('0x3a')]('campaigns',_0x135c6c('0x18'),{'type':_0x22b290[_0x135c6c('0x2b')](0x3)[_0x135c6c('0x25')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x135c6c('0x3e')}),_0x20f373[_0x135c6c('0x2a')]('voice_queues',_0x135c6c('0x19'),{'type':_0x22b290['BOOLEAN'],'defaultValue':0x0,'comment':_0x135c6c('0x4e')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),_0x135c6c('0x10'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x135c6c('0x24')}),_0x20f373['addColumn'](_0x135c6c('0x22'),_0x135c6c('0x1c'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),_0x135c6c('0x17'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x135c6c('0x42')}),_0x20f373[_0x135c6c('0x2a')]('voice_queues',_0x135c6c('0x4c'),{'type':_0x22b290['INTEGER'](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x135c6c('0x14')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),'dialAMDMinWordLength',{'type':_0x22b290[_0x135c6c('0x2b')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x135c6c('0x4b')}),_0x20f373['addColumn'](_0x135c6c('0x22'),_0x135c6c('0xd'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x135c6c('0xa')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),'dialAMDMaximumNumberOfWords',{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),_0x135c6c('0x35'),{'type':_0x22b290[_0x135c6c('0x2b')](0x5)[_0x135c6c('0x25')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x135c6c('0x6')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x22'),_0x135c6c('0x3'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x135c6c('0x3d')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),_0x135c6c('0x19'),{'type':_0x22b290['BOOLEAN'],'defaultValue':0x0,'comment':_0x135c6c('0x4e')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),'dialAMDInitialSilence',{'type':_0x22b290['INTEGER'](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x135c6c('0x24')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),_0x135c6c('0x1c'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x135c6c('0x28')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),_0x135c6c('0x17'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x135c6c('0x42')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),'dialAMDTotalAnalysisTime',{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x135c6c('0x14')}),_0x20f373[_0x135c6c('0x2a')]('campaigns',_0x135c6c('0x23'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x135c6c('0x4b')}),_0x20f373['addColumn'](_0x135c6c('0x27'),'dialAMDBetweenWordsSilence',{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x135c6c('0xa')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),_0x135c6c('0x15'),{'type':_0x22b290['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0x135c6c('0x21')}),_0x20f373[_0x135c6c('0x2a')](_0x135c6c('0x27'),_0x135c6c('0x35'),{'type':_0x22b290[_0x135c6c('0x2b')](0x5)[_0x135c6c('0x25')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'}),_0x20f373[_0x135c6c('0x2a')]('campaigns',_0x135c6c('0x3'),{'type':_0x22b290[_0x135c6c('0x2b')](0x9)[_0x135c6c('0x25')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x135c6c('0x3d')}),_0x20f373['query']('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x12')),_0x20f373['query'](_0x135c6c('0x43')),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x33')),_0x20f373['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\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());'),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x4d')),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x3c')),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x11')),_0x20f373['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());'),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x3f')),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0xf')),_0x20f373[_0x135c6c('0x47')](_0x135c6c('0x2c')),_0x20f373[_0x135c6c('0x1d')](_0x36b8c5);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.30.js b/server/migrations/2.0.30.js index ab3764c..f5e95a1 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a909_0x370f=['catch','chat_enquiries','addColumn','chat_websites','stringify','dropTable','team_has_chat_queues','queryInterface','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','INTEGER','user_has_chat_queues','sequence','UNSIGNED','tail','voice_queues','then','join','addIndex\x20%s\x20%s\x20%s','chat_queues','sequelize','changeColumn','migration','query','query\x20%s','user_has_chat_rooms','info','chat_applications','prototype','final','../config/logger','chat_visitors','user_has_chat_interactions','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','Added\x20column\x20%s\x20to\x20%s','finally','addIndex','chat_interactions'];(function(_0x9a2b46,_0x370fa2){const _0x2abef4=function(_0xe32f88){while(--_0xe32f88){_0x9a2b46['push'](_0x9a2b46['shift']());}};_0x2abef4(++_0x370fa2);}(a909_0x370f,0xa8));const a909_0x2abe=function(_0x9a2b46,_0x370fa2){_0x9a2b46=_0x9a2b46-0x0;let _0x2abef4=a909_0x370f[_0x9a2b46];return _0x2abef4;};const _0xe56fc5=a909_0x2abe;'use strict';const logger=require(_0xe56fc5('0xd'))(_0xe56fc5('0x5')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0xe32f88){const _0x2acb33=_0xe56fc5;this['tail']=this[_0x2acb33('0x23')]?this[_0x2acb33('0x23')][_0x2acb33('0x13')](_0xe32f88):_0xe32f88();};const Migration=function(_0x234caf){const _0x4487ba=_0xe56fc5;this[_0x4487ba('0x1d')]=_0x234caf,this[_0x4487ba('0x21')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x571bc3,_0x39f69d,_0x5dc454){const _0x1451fc=_0xe56fc5,_0x1b5338=this;this[_0x1451fc('0x21')][_0x1451fc('0x11')](function(){const _0x280ec7=_0x1451fc;return _0x1b5338[_0x280ec7('0x1d')]['changeColumn'](_0x571bc3,_0x39f69d,_0x5dc454)['then'](function(){const _0x1bbafb=_0x280ec7;logger['info'](_0x1bbafb('0x10'),_0x39f69d,_0x571bc3);})[_0x280ec7('0x16')](function(_0x4d6dd5){const _0x2f8e27=_0x280ec7;logger[_0x2f8e27('0x9')](JSON[_0x2f8e27('0x1a')](_0x4d6dd5));});});},Migration[_0xe56fc5('0xb')][_0xe56fc5('0x18')]=function(_0x30ccd3,_0x5bf5a7,_0x26ba55){const _0x4a89f8=_0xe56fc5,_0x13fb92=this;this[_0x4a89f8('0x21')]['enqueue'](function(){const _0x52c0af=_0x4a89f8;return _0x13fb92[_0x52c0af('0x1d')][_0x52c0af('0x18')](_0x30ccd3,_0x5bf5a7,_0x26ba55)[_0x52c0af('0x25')](function(){const _0x19bc6c=_0x52c0af;logger[_0x19bc6c('0x9')](_0x19bc6c('0x12'),_0x5bf5a7,_0x30ccd3);})[_0x52c0af('0x16')](function(_0x2601ac){const _0x24a55c=_0x52c0af;logger[_0x24a55c('0x9')](JSON['stringify'](_0x2601ac));});});},Migration[_0xe56fc5('0xb')][_0xe56fc5('0x1b')]=function(_0x34320c){const _0x3c2151=_0xe56fc5,_0x41d46d=this;this['sequence'][_0x3c2151('0x11')](function(){const _0xb79d68=_0x3c2151;return _0x41d46d[_0xb79d68('0x1d')][_0xb79d68('0x1b')](_0x34320c,{'force':!![]})[_0xb79d68('0x25')](function(){logger['info']('table\x20dropped\x20%s',_0x34320c);})['catch'](function(_0x5857cd){const _0x2e3022=_0xb79d68;logger[_0x2e3022('0x9')](JSON['stringify'](_0x5857cd));});});},Migration[_0xe56fc5('0xb')][_0xe56fc5('0x14')]=function(_0x22f03c,_0x44e095,_0x858a09){const _0x5369c6=_0xe56fc5,_0x31f445=this;this[_0x5369c6('0x21')]['enqueue'](function(){const _0x57cf1d=_0x5369c6;return _0x31f445[_0x57cf1d('0x1d')][_0x57cf1d('0x14')](_0x22f03c,_0x44e095,{'indexName':_0x858a09})['then'](function(){const _0x403f19=_0x57cf1d;logger[_0x403f19('0x9')](_0x403f19('0x1'),_0x22f03c,_0x44e095[_0x403f19('0x0')](','),_0x858a09);})['catch'](function(_0x4fe165){const _0x8bcb7d=_0x57cf1d;logger[_0x8bcb7d('0x9')](JSON[_0x8bcb7d('0x1a')](_0x4fe165));});});},Migration[_0xe56fc5('0xb')][_0xe56fc5('0x6')]=function(_0xaa9121){const _0x3e8ee4=_0xe56fc5,_0xa067d=this;this[_0x3e8ee4('0x21')][_0x3e8ee4('0x11')](function(){const _0x2be7b4=_0x3e8ee4;return _0xa067d[_0x2be7b4('0x1d')][_0x2be7b4('0x3')][_0x2be7b4('0x6')](_0xaa9121)[_0x2be7b4('0x25')](function(){const _0x183047=_0x2be7b4;logger[_0x183047('0x9')](_0x183047('0x7'),_0xaa9121);})['catch'](function(_0x289b50){const _0x292670=_0x2be7b4;logger[_0x292670('0x9')](JSON[_0x292670('0x1a')](_0x289b50));});});},Migration['prototype'][_0xe56fc5('0xc')]=function(_0x5ba240){this['sequence']['enqueue'](function(){return _0x5ba240();});},module['exports']={'up':function(_0x4812f2,_0x5780e8){return new Promise(function(_0x14f6f4){const _0xdc908e=a909_0x2abe,_0x22a355=new Migration(_0x4812f2);_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0x8')),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0x17')),_0x22a355[_0xdc908e('0x1b')]('chat_messages'),_0x22a355[_0xdc908e('0x1b')]('chat_proactive_actions'),_0x22a355[_0xdc908e('0x1b')]('chat_dispositions'),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0xa')),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0xf')),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0x15')),_0x22a355['dropTable'](_0xdc908e('0x1c')),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0x20')),_0x22a355[_0xdc908e('0x1b')](_0xdc908e('0x2')),_0x22a355['dropTable'](_0xdc908e('0xe')),_0x22a355[_0xdc908e('0x1b')]('chat_websites_fields'),_0x22a355['dropTable'](_0xdc908e('0x19')),_0x22a355[_0xdc908e('0x4')](_0xdc908e('0x24'),'dialQueueTimeout',{'type':_0x5780e8[_0xdc908e('0x1f')](0x3)[_0xdc908e('0x22')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xdc908e('0x1e')}),_0x22a355['final'](_0x14f6f4);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.31.js b/server/migrations/2.0.31.js index 39a8bcf..a8488d4 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a910_0x17bb=['enqueue','../config/logger','sms_messages','dropTable','catch','sms_interactions','changeColumn','questionId','token','prototype','BOOLEAN','query\x20%s','sms_applications','addColumn','report_queue','IntervalId','cm_contacts','join','stringify','STRING','sms_accounts','user_has_sms_queues','twitter','final','tail','addIndex\x20%s\x20%s\x20%s','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','transfer','finally','chat_websites','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','then','team_has_sms_queues','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','Changed\x20column\x20%s\x20in\x20table\x20%s','sms_queues','INTEGER','timezone','sequelize','migration','info','facebook','sequence','table\x20dropped\x20%s','queryInterface','phoneBarUnansweredCallBadge','users','addIndex'];(function(_0x52acf2,_0x17bb6c){const _0x4f06c9=function(_0x31b9b4){while(--_0x31b9b4){_0x52acf2['push'](_0x52acf2['shift']());}};_0x4f06c9(++_0x17bb6c);}(a910_0x17bb,0xfc));const a910_0x4f06=function(_0x52acf2,_0x17bb6c){_0x52acf2=_0x52acf2-0x0;let _0x4f06c9=a910_0x17bb[_0x52acf2];return _0x4f06c9;};const _0x3826d6=a910_0x4f06;'use strict';const logger=require(_0x3826d6('0x2b'))(_0x3826d6('0x21')),Sequence=function(){};Sequence[_0x3826d6('0x2')][_0x3826d6('0x2a')]=function(_0x31b9b4){const _0x5b92d8=_0x3826d6;this[_0x5b92d8('0x11')]=this['tail']?this['tail'][_0x5b92d8('0x15')](_0x31b9b4):_0x31b9b4();};const Migration=function(_0x1bbdb7){const _0x15fb0c=_0x3826d6;this['queryInterface']=_0x1bbdb7,this[_0x15fb0c('0x24')]=new Sequence();};Migration[_0x3826d6('0x2')]['changeColumn']=function(_0x577c93,_0x14288e,_0x2ce835){const _0x142417=_0x3826d6,_0x2d53c1=this;this['sequence'][_0x142417('0x2a')](function(){const _0x3c3b75=_0x142417;return _0x2d53c1[_0x3c3b75('0x26')][_0x3c3b75('0x30')](_0x577c93,_0x14288e,_0x2ce835)[_0x3c3b75('0x18')](function(){const _0x52c544=_0x3c3b75;logger[_0x52c544('0x22')](_0x52c544('0x1c'),_0x14288e,_0x577c93);})[_0x3c3b75('0x2e')](function(_0x2d3de3){const _0x4e569e=_0x3c3b75;logger[_0x4e569e('0x22')](JSON[_0x4e569e('0xb')](_0x2d3de3));});});},Migration[_0x3826d6('0x2')][_0x3826d6('0x6')]=function(_0x3c1486,_0x395a99,_0x132d4e){const _0x2f6cb0=_0x3826d6,_0x4e2847=this;this[_0x2f6cb0('0x24')]['enqueue'](function(){const _0x15bc22=_0x2f6cb0;return _0x4e2847[_0x15bc22('0x26')][_0x15bc22('0x6')](_0x3c1486,_0x395a99,_0x132d4e)[_0x15bc22('0x18')](function(){const _0x1cae54=_0x15bc22;logger[_0x1cae54('0x22')]('Added\x20column\x20%s\x20to\x20%s',_0x395a99,_0x3c1486);})[_0x15bc22('0x2e')](function(_0xdde5e6){const _0x22754e=_0x15bc22;logger[_0x22754e('0x22')](JSON[_0x22754e('0xb')](_0xdde5e6));});});},Migration[_0x3826d6('0x2')][_0x3826d6('0x2d')]=function(_0x4c4b99){const _0x1bec7=_0x3826d6,_0x518fb6=this;this[_0x1bec7('0x24')][_0x1bec7('0x2a')](function(){const _0x1f6ea3=_0x1bec7;return _0x518fb6[_0x1f6ea3('0x26')][_0x1f6ea3('0x2d')](_0x4c4b99,{'force':!![]})['then'](function(){const _0x1c4a1d=_0x1f6ea3;logger[_0x1c4a1d('0x22')](_0x1c4a1d('0x25'),_0x4c4b99);})[_0x1f6ea3('0x2e')](function(_0x5567ab){const _0x4c8953=_0x1f6ea3;logger['info'](JSON[_0x4c8953('0xb')](_0x5567ab));});});},Migration[_0x3826d6('0x2')][_0x3826d6('0x29')]=function(_0x4eb01f,_0x2acde4,_0x2ebdea){const _0x5b8f0b=_0x3826d6,_0x51db40=this;this[_0x5b8f0b('0x24')]['enqueue'](function(){const _0x53e88d=_0x5b8f0b;return _0x51db40[_0x53e88d('0x26')][_0x53e88d('0x29')](_0x4eb01f,_0x2acde4,{'indexName':_0x2ebdea})[_0x53e88d('0x18')](function(){const _0x46fcc0=_0x53e88d;logger[_0x46fcc0('0x22')](_0x46fcc0('0x12'),_0x4eb01f,_0x2acde4[_0x46fcc0('0xa')](','),_0x2ebdea);})['catch'](function(_0x5bf16c){const _0x41599f=_0x53e88d;logger[_0x41599f('0x22')](JSON[_0x41599f('0xb')](_0x5bf16c));});});},Migration[_0x3826d6('0x2')]['query']=function(_0x322a8f){const _0x448b7b=_0x3826d6,_0x1234d9=this;this[_0x448b7b('0x24')][_0x448b7b('0x2a')](function(){const _0x46fff7=_0x448b7b;return _0x1234d9[_0x46fff7('0x26')][_0x46fff7('0x20')][_0x46fff7('0x1b')](_0x322a8f)[_0x46fff7('0x18')](function(){const _0x29305c=_0x46fff7;logger[_0x29305c('0x22')](_0x29305c('0x4'),_0x322a8f);})[_0x46fff7('0x2e')](function(_0x329f8c){const _0x4ac186=_0x46fff7;logger['info'](JSON[_0x4ac186('0xb')](_0x329f8c));});});},Migration[_0x3826d6('0x2')]['final']=function(_0x20d0db){this['sequence']['enqueue'](function(){return _0x20d0db();});},module['exports']={'up':function(_0x166857,_0x5d8ef7){return new Promise(function(_0x437410){const _0x36e661=a910_0x4f06,_0x1e84ea=new Migration(_0x166857);_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0x2c')),_0x1e84ea[_0x36e661('0x2d')]('sms_dispositions'),_0x1e84ea['dropTable'](_0x36e661('0x5')),_0x1e84ea[_0x36e661('0x2d')]('user_has_sms_interactions'),_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0x2f')),_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0x19')),_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0xe')),_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0x1d')),_0x1e84ea[_0x36e661('0x2d')](_0x36e661('0xd')),_0x1e84ea['addColumn'](_0x36e661('0x9'),_0x36e661('0x23'),{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')](_0x36e661('0x9'),_0x36e661('0xf'),{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x1b')](_0x36e661('0x17')),_0x1e84ea[_0x36e661('0x1b')]('ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId'),_0x1e84ea['addColumn'](_0x36e661('0x16'),_0x36e661('0x1f'),{'type':_0x5d8ef7['STRING']}),_0x1e84ea['addColumn'](_0x36e661('0x16'),_0x36e661('0x1'),{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')](_0x36e661('0x16'),_0x36e661('0x8'),{'type':_0x5d8ef7[_0x36e661('0x1e')](0xb)}),_0x1e84ea[_0x36e661('0x1b')](_0x36e661('0x13')),_0x1e84ea['addColumn'](_0x36e661('0x7'),_0x36e661('0x14'),{'type':_0x5d8ef7[_0x36e661('0x3')],'defaultValue':![]}),_0x1e84ea[_0x36e661('0x6')](_0x36e661('0x7'),'transfertype',{'type':_0x5d8ef7['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x1e84ea[_0x36e661('0x6')](_0x36e661('0x7'),'transferexten',{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')]('report_queue','transferuniqueid',{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')]('report_jscripty_answers','questionId',{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')]('report_jscripty_questions',_0x36e661('0x0'),{'type':_0x5d8ef7[_0x36e661('0xc')]}),_0x1e84ea[_0x36e661('0x6')](_0x36e661('0x28'),_0x36e661('0x27'),{'type':_0x5d8ef7[_0x36e661('0x3')],'defaultValue':!![]}),_0x1e84ea['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x1e84ea[_0x36e661('0x1b')]('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());'),_0x1e84ea[_0x36e661('0x1b')]('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());'),_0x1e84ea['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x1e84ea[_0x36e661('0x1b')](_0x36e661('0x1a')),_0x1e84ea[_0x36e661('0x10')](_0x437410);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.33.js b/server/migrations/2.0.33.js index 976545a..7ae5df9 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a912_0x3ef8=['#9f946a','query','addIndex\x20%s\x20%s\x20%s','fax_applications','fax_messages','Send','table\x20dropped\x20%s','enqueue','forwardOffline','cm_hopper','queryInterface','then','fax_queues','mapKeyOffline','closeMethod','rejectMethod','catch','timeout','prototype','team_has_fax_queues','sequence','user_has_chat_queues','closeUrl','user_has_fax_interactions','final','addColumn','actions','removeColumn','fax_dispositions','pathTranscript','TEXT','user_has_fax_rooms','STRING','UNSIGNED','sitepic','Agent','fax_rooms','query\x20%s','join','migration','email','assigned','color_button','chat_websites','fidelity','tail','ratingType','ENUM','../config/logger','inspect','thumb','Changed\x20column\x20%s\x20in\x20table\x20%s','forwardOfflineAddress','sequelize','user_has_openchannel_queues','fax_interactions','addIndex','star','INTEGER','exports','info','ratingValue','forwardTranscript','acceptUrl','BOOLEAN','user_has_fax_queues','priority','ratingStarsNumber','changeColumn','color','stringify','ratingMessage','fax_accounts','sms_messages','Added\x20column\x20%s\x20to\x20%s','queue','dropTable','chat_interactions'];(function(_0x15fad0,_0x3ef84a){const _0x48a383=function(_0x24dd66){while(--_0x24dd66){_0x15fad0['push'](_0x15fad0['shift']());}};_0x48a383(++_0x3ef84a);}(a912_0x3ef8,0x81));const a912_0x48a3=function(_0x15fad0,_0x3ef84a){_0x15fad0=_0x15fad0-0x0;let _0x48a383=a912_0x3ef8[_0x15fad0];return _0x48a383;};const _0x104dfd=a912_0x48a3;'use strict';const logger=require(_0x104dfd('0x4b'))(_0x104dfd('0x42')),util=require('util'),Sequence=function(){};Sequence[_0x104dfd('0x2d')][_0x104dfd('0x22')]=function(_0x24dd66){const _0x11b6d4=_0x104dfd;this[_0x11b6d4('0x48')]=this[_0x11b6d4('0x48')]?this['tail']['finally'](_0x24dd66):_0x24dd66();};const Migration=function(_0x137531){const _0x3a4bda=_0x104dfd;this['queryInterface']=_0x137531,this[_0x3a4bda('0x2f')]=new Sequence();};Migration['prototype'][_0x104dfd('0x11')]=function(_0x2652e0,_0x2c98f8,_0xf9894f){const _0x2b3959=_0x104dfd,_0x560a67=this;this[_0x2b3959('0x2f')][_0x2b3959('0x22')](function(){const _0x293fb2=_0x2b3959;return _0x560a67[_0x293fb2('0x25')][_0x293fb2('0x11')](_0x2652e0,_0x2c98f8,_0xf9894f)[_0x293fb2('0x26')](function(){const _0x4cc1d4=_0x293fb2;logger[_0x4cc1d4('0x9')](_0x4cc1d4('0x0'),_0x2c98f8,_0x2652e0);})[_0x293fb2('0x2b')](function(_0x4881bc){const _0x581ca3=_0x293fb2;logger[_0x581ca3('0x9')](JSON[_0x581ca3('0x13')](_0x4881bc));});});},Migration[_0x104dfd('0x2d')]['addColumn']=function(_0xc3316f,_0x465fbd,_0x27d3da){const _0xa004d9=_0x104dfd,_0x566667=this;this['sequence'][_0xa004d9('0x22')](function(){const _0xe8582a=_0xa004d9;return _0x566667[_0xe8582a('0x25')]['addColumn'](_0xc3316f,_0x465fbd,_0x27d3da)[_0xe8582a('0x26')](function(){const _0x248d90=_0xe8582a;logger[_0x248d90('0x9')](_0x248d90('0x17'),_0x465fbd,_0xc3316f);})['catch'](function(_0xdec44b){const _0x311cdf=_0xe8582a;logger[_0x311cdf('0x9')](JSON[_0x311cdf('0x13')](_0xdec44b));});});},Migration[_0x104dfd('0x2d')][_0x104dfd('0x19')]=function(_0xde96b7){const _0x1b4e6a=_0x104dfd,_0x4dac94=this;this[_0x1b4e6a('0x2f')]['enqueue'](function(){const _0x36679c=_0x1b4e6a;return _0x4dac94[_0x36679c('0x25')][_0x36679c('0x19')](_0xde96b7,{'force':!![]})[_0x36679c('0x26')](function(){const _0x22d43d=_0x36679c;logger['info'](_0x22d43d('0x21'),_0xde96b7);})[_0x36679c('0x2b')](function(_0x57192c){const _0x4f93aa=_0x36679c;logger[_0x4f93aa('0x9')](JSON[_0x4f93aa('0x13')](_0x57192c));});});},Migration['prototype'][_0x104dfd('0x5')]=function(_0x20a30d,_0x214403,_0x4c85c9){const _0x231b1f=_0x104dfd,_0x3e0c78=this;this[_0x231b1f('0x2f')]['enqueue'](function(){const _0x26a6b7=_0x231b1f;return _0x3e0c78[_0x26a6b7('0x25')][_0x26a6b7('0x5')](_0x20a30d,_0x214403,{'indexName':_0x4c85c9})[_0x26a6b7('0x26')](function(){const _0x26597b=_0x26a6b7;logger[_0x26597b('0x9')](_0x26597b('0x1d'),_0x20a30d,_0x214403[_0x26597b('0x41')](','),_0x4c85c9);})[_0x26a6b7('0x2b')](function(_0x275276){const _0x1f01b2=_0x26a6b7;logger[_0x1f01b2('0x9')](JSON[_0x1f01b2('0x13')](_0x275276));});});},Migration['prototype'][_0x104dfd('0x1c')]=function(_0x1fe396){const _0x22b80a=_0x104dfd,_0x297fe8=this;this[_0x22b80a('0x2f')]['enqueue'](function(){const _0x4d36d2=_0x22b80a;return _0x297fe8[_0x4d36d2('0x25')][_0x4d36d2('0x2')][_0x4d36d2('0x1c')](_0x1fe396)['then'](function(){const _0x4d5eeb=_0x4d36d2;logger['info'](_0x4d5eeb('0x40'),_0x1fe396);})['catch'](function(_0x5c0f96){const _0x203b2b=_0x4d36d2;logger[_0x203b2b('0x9')](JSON[_0x203b2b('0x13')](_0x5c0f96));});});},Migration[_0x104dfd('0x2d')][_0x104dfd('0x36')]=function(_0x725980,_0x5b37a3){const _0x1c36c5=_0x104dfd,_0x1fae17=this;this['sequence'][_0x1c36c5('0x22')](function(){const _0xeda50b=_0x1c36c5;return _0x1fae17['queryInterface'][_0xeda50b('0x36')](_0x725980,_0x5b37a3)[_0xeda50b('0x26')](function(){const _0x4e18ff=_0xeda50b;logger[_0x4e18ff('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x5b37a3,_0x725980);})[_0xeda50b('0x2b')](function(_0x2f7e9e){const _0x1cadfc=_0xeda50b;logger[_0x1cadfc('0x9')](util[_0x1cadfc('0x4c')](_0x2f7e9e,{'showHidden':![],'depth':null}));});});},Migration[_0x104dfd('0x2d')][_0x104dfd('0x33')]=function(_0x51d0f7){this['sequence']['enqueue'](function(){return _0x51d0f7();});},module[_0x104dfd('0x8')]={'up':function(_0x5e5103,_0x4c7ff0){return new Promise(function(_0x3d007b){const _0x190cec=a912_0x48a3,_0x2ab8f5=new Migration(_0x5e5103);_0x2ab8f5['addColumn'](_0x190cec('0x46'),'agentAlias',{'type':_0x4c7ff0[_0x190cec('0x3b')],'defaultValue':_0x190cec('0x3e')}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x46'),_0x190cec('0x28'),{'type':_0x4c7ff0[_0x190cec('0x3b')],'defaultValue':_0x190cec('0x43')}),_0x2ab8f5['addColumn'](_0x190cec('0x46'),_0x190cec('0x3d'),{'type':_0x4c7ff0['TEXT']}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x46'),'closingMessage',{'type':_0x4c7ff0[_0x190cec('0x39')]}),_0x2ab8f5['addColumn'](_0x190cec('0x46'),'closingMessageButton',{'type':_0x4c7ff0[_0x190cec('0x3b')],'defaultValue':_0x190cec('0x20')}),_0x2ab8f5[_0x190cec('0x34')]('chat_websites','enableRating',{'type':_0x4c7ff0[_0x190cec('0xd')],'defaultValue':![]}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x46'),_0x190cec('0x49'),{'type':_0x4c7ff0[_0x190cec('0x4a')](_0x190cec('0x6'),_0x190cec('0x4d')),'defaultValue':_0x190cec('0x6')}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x46'),_0x190cec('0x10'),{'type':_0x4c7ff0[_0x190cec('0x7')],'defaultValue':0x5}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x1a'),_0x190cec('0xa'),{'type':_0x4c7ff0[_0x190cec('0x7')]}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x1a'),_0x190cec('0x14'),{'type':_0x4c7ff0[_0x190cec('0x39')]}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x1a'),_0x190cec('0x38'),{'type':_0x4c7ff0['TEXT']}),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x1a'),'mailTranscript',{'type':_0x4c7ff0[_0x190cec('0x3b')]}),_0x2ab8f5[_0x190cec('0x34')]('chat_websites',_0x190cec('0xb'),{'type':_0x4c7ff0['BOOLEAN'],'defaultValue':![]}),_0x2ab8f5[_0x190cec('0x34')]('chat_websites',_0x190cec('0x23'),{'type':_0x4c7ff0[_0x190cec('0xd')],'defaultValue':![]}),_0x2ab8f5[_0x190cec('0x34')]('chat_websites',_0x190cec('0x1'),{'type':_0x4c7ff0[_0x190cec('0x3b')],'validate':{'isEmail':!![]}}),_0x2ab8f5['changeColumn']('chat_websites',_0x190cec('0x12'),{'type':_0x4c7ff0[_0x190cec('0x3b')],'allowNull':![],'defaultValue':_0x190cec('0x1b')}),_0x2ab8f5[_0x190cec('0x11')](_0x190cec('0x46'),_0x190cec('0x45'),{'type':_0x4c7ff0[_0x190cec('0x3b')],'allowNull':![],'defaultValue':'#9f946a'}),_0x2ab8f5[_0x190cec('0x19')]('fax_attachments'),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x3a')),_0x2ab8f5['dropTable'](_0x190cec('0x3f')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x1f')),_0x2ab8f5['dropTable'](_0x190cec('0x37')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x1e')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x32')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x4')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x2e')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0xe')),_0x2ab8f5[_0x190cec('0x19')](_0x190cec('0x27')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x15'),_0x190cec('0x47')),_0x2ab8f5[_0x190cec('0x36')]('fax_accounts',_0x190cec('0x2c')),_0x2ab8f5['removeColumn'](_0x190cec('0x15'),_0x190cec('0xc')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x15'),'rejectUrl'),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x15'),'acceptMethod'),_0x2ab8f5['removeColumn'](_0x190cec('0x15'),_0x190cec('0x2a')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x15'),_0x190cec('0x35')),_0x2ab8f5[_0x190cec('0x36')]('fax_accounts',_0x190cec('0x31')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x15'),_0x190cec('0x29')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x30'),_0x190cec('0x44')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x30'),_0x190cec('0x18')),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x3'),'assigned'),_0x2ab8f5[_0x190cec('0x36')](_0x190cec('0x3'),_0x190cec('0x18')),_0x2ab8f5[_0x190cec('0x34')](_0x190cec('0x24'),_0x190cec('0xf'),{'type':_0x4c7ff0['INTEGER'](0x2)[_0x190cec('0x3c')],'defaultValue':0x2}),_0x2ab8f5[_0x190cec('0x5')]('cm_hopper',[_0x190cec('0xf')],_0x190cec('0xf')),_0x2ab8f5['dropTable'](_0x190cec('0x16')),_0x2ab8f5[_0x190cec('0x33')](_0x3d007b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.34.js b/server/migrations/2.0.34.js index 230f0c3..0b8e483 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a913_0x50c9=['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;','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','whiteLabel','deviceVendor','active','util','acceptMethod','changeColumn','state','queryInterface','browserVersion','mail_applications','mail_dispositions','forwardTranscriptMessage','unmanagedMessage','sequence','dropTable','mail_accounts','fax_attachments','enableUnmanagedNote','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','timeout','Changed\x20column\x20%s\x20in\x20table\x20%s','rejectMethod','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','mail_servers_out','Send','info','voice_recordings','recallme','userDisposition','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','closingMessage','skipUnmanaged','actions','fax_accounts','tail','mail_servers_in','stringify','Added\x20column\x20%s\x20to\x20%s','custom','Skip','INTEGER','chat_messages','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','inspect','STRING','closeMethod','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','chat_websites','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;','exports','catch','prototype','UNSIGNED','conditionAgreement','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','dialRecallMeTimeout','BOOLEAN','enableCustomerWriting','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','cm_hopper','enqueue','Your\x20request\x20has\x20not\x20been\x20processed.','removeColumn','cm_hopper_history','migration','table\x20dropped\x20%s','signature','mail_messages','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','query','waitingMessage','user_has_mail_rooms','skipMessageButton','Thanks\x20you\x20for\x20your\x20time!','final','chat_interactions','cm_hopper_final','addColumn','voice_queues','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;','key','osVersion','then','dialRecallInQueue','osName','mail_queues','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;'];(function(_0x14ffce,_0x50c917){const _0x467e9b=function(_0x52c153){while(--_0x52c153){_0x14ffce['push'](_0x14ffce['shift']());}};_0x467e9b(++_0x50c917);}(a913_0x50c9,0x1c1));const a913_0x467e=function(_0x14ffce,_0x50c917){_0x14ffce=_0x14ffce-0x0;let _0x467e9b=a913_0x50c9[_0x14ffce];return _0x467e9b;};const _0x1869ba=a913_0x467e;'use strict';const logger=require('../config/logger')(_0x1869ba('0x49')),util=require(_0x1869ba('0xc')),Sequence=function(){};Sequence['prototype'][_0x1869ba('0x45')]=function(_0x52c153){const _0x277085=_0x1869ba;this[_0x277085('0x2b')]=this[_0x277085('0x2b')]?this[_0x277085('0x2b')]['finally'](_0x52c153):_0x52c153();};const Migration=function(_0x48868b){const _0xb697ec=_0x1869ba;this[_0xb697ec('0x10')]=_0x48868b,this[_0xb697ec('0x16')]=new Sequence();};Migration[_0x1869ba('0x3c')][_0x1869ba('0xe')]=function(_0x2febad,_0x5eed2b,_0x41cb7f){const _0x26d1a3=_0x1869ba,_0x39d391=this;this[_0x26d1a3('0x16')][_0x26d1a3('0x45')](function(){const _0x238afc=_0x26d1a3;return _0x39d391[_0x238afc('0x10')][_0x238afc('0xe')](_0x2febad,_0x5eed2b,_0x41cb7f)['then'](function(){const _0x13d569=_0x238afc;logger['info'](_0x13d569('0x1d'),_0x5eed2b,_0x2febad);})[_0x238afc('0x3b')](function(_0x1b7010){const _0x1f849c=_0x238afc;logger[_0x1f849c('0x22')](JSON[_0x1f849c('0x2d')](_0x1b7010));});});},Migration[_0x1869ba('0x3c')]['addColumn']=function(_0x302c52,_0x1f738c,_0x4a0314){const _0x44ce9c=_0x1869ba,_0x37728b=this;this[_0x44ce9c('0x16')][_0x44ce9c('0x45')](function(){const _0x3d48c0=_0x44ce9c;return _0x37728b[_0x3d48c0('0x10')][_0x3d48c0('0x57')](_0x302c52,_0x1f738c,_0x4a0314)['then'](function(){const _0x3e9144=_0x3d48c0;logger[_0x3e9144('0x22')](_0x3e9144('0x2e'),_0x1f738c,_0x302c52);})[_0x3d48c0('0x3b')](function(_0x3cbe96){const _0x51ee75=_0x3d48c0;logger[_0x51ee75('0x22')](JSON[_0x51ee75('0x2d')](_0x3cbe96));});});},Migration[_0x1869ba('0x3c')][_0x1869ba('0x17')]=function(_0x1da986){const _0x55c869=_0x1869ba,_0x4e0968=this;this[_0x55c869('0x16')][_0x55c869('0x45')](function(){const _0x5649ec=_0x55c869;return _0x4e0968[_0x5649ec('0x10')]['dropTable'](_0x1da986,{'force':!![]})[_0x5649ec('0x1')](function(){const _0x2ab08d=_0x5649ec;logger[_0x2ab08d('0x22')](_0x2ab08d('0x4a'),_0x1da986);})['catch'](function(_0x4bfe44){const _0x36d49f=_0x5649ec;logger[_0x36d49f('0x22')](JSON[_0x36d49f('0x2d')](_0x4bfe44));});});},Migration[_0x1869ba('0x3c')]['addIndex']=function(_0x1d8ddc,_0x481405,_0x8c5132){const _0x5e3de9=_0x1869ba,_0x109ca2=this;this[_0x5e3de9('0x16')][_0x5e3de9('0x45')](function(){const _0x4e4024=_0x5e3de9;return _0x109ca2[_0x4e4024('0x10')]['addIndex'](_0x1d8ddc,_0x481405,{'indexName':_0x8c5132})[_0x4e4024('0x1')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1d8ddc,_0x481405['join'](','),_0x8c5132);})['catch'](function(_0x171f51){const _0x2d8a43=_0x4e4024;logger[_0x2d8a43('0x22')](JSON['stringify'](_0x171f51));});});},Migration[_0x1869ba('0x3c')][_0x1869ba('0x4f')]=function(_0x162e76){const _0x55fa37=_0x1869ba,_0x2d2cac=this;this[_0x55fa37('0x16')][_0x55fa37('0x45')](function(){const _0x5e9f3b=_0x55fa37;return _0x2d2cac[_0x5e9f3b('0x10')]['sequelize'][_0x5e9f3b('0x4f')](_0x162e76)[_0x5e9f3b('0x1')](function(){const _0x5c3b69=_0x5e9f3b;logger[_0x5c3b69('0x22')]('query\x20%s',_0x162e76);})[_0x5e9f3b('0x3b')](function(_0xff2371){const _0x3c4e0e=_0x5e9f3b;logger[_0x3c4e0e('0x22')](JSON[_0x3c4e0e('0x2d')](_0xff2371));});});},Migration[_0x1869ba('0x3c')][_0x1869ba('0x47')]=function(_0x562635,_0x579dcc){const _0x499789=_0x1869ba,_0x183f37=this;this[_0x499789('0x16')]['enqueue'](function(){const _0x428f82=_0x499789;return _0x183f37[_0x428f82('0x10')][_0x428f82('0x47')](_0x562635,_0x579dcc)[_0x428f82('0x1')](function(){const _0x28852e=_0x428f82;logger[_0x28852e('0x22')](_0x28852e('0x4e'),_0x579dcc,_0x562635);})[_0x428f82('0x3b')](function(_0x26e616){const _0x53093a=_0x428f82;logger[_0x53093a('0x22')](util[_0x53093a('0x34')](_0x26e616,{'showHidden':![],'depth':null}));});});},Migration[_0x1869ba('0x3c')][_0x1869ba('0x54')]=function(_0x478c90){const _0x29a28e=_0x1869ba;this[_0x29a28e('0x16')][_0x29a28e('0x45')](function(){return _0x478c90();});},module[_0x1869ba('0x3a')]={'up':function(_0x57a4c4,_0x278b7a){return new Promise(function(_0x4b97ae){const _0x55f38c=a913_0x467e,_0x402327=new Migration(_0x57a4c4);_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x5a'),{'type':_0x278b7a['STRING'],'allowNull':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x14'),{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x52'),{'type':_0x278b7a['STRING'],'defaultValue':_0x55f38c('0x30')}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),'enableFeedback',{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327['addColumn'](_0x55f38c('0x38'),_0x55f38c('0x42'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x3e'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327['addColumn'](_0x55f38c('0x38'),'waitingTitle',{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':_0x55f38c('0x43')}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x50'),{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':_0x55f38c('0x37')}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),'autoclose',{'type':_0x278b7a['BOOLEAN'],'defaultValue':!![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x15'),{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':_0x55f38c('0x46')}),_0x402327[_0x55f38c('0x57')]('chat_websites',_0x55f38c('0x1a'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':!![]}),_0x402327['addColumn'](_0x55f38c('0x38'),'sendUnmanaged',{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':_0x55f38c('0x21')}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x38'),_0x55f38c('0x28'),{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':'Skip'}),_0x402327[_0x55f38c('0xe')](_0x55f38c('0x38'),_0x55f38c('0x27'),{'type':_0x278b7a[_0x55f38c('0x35')],'defaultValue':_0x55f38c('0x53')}),_0x402327['addColumn'](_0x55f38c('0x55'),'browserName',{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x55'),_0x55f38c('0x11'),{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327['addColumn'](_0x55f38c('0x55'),_0x55f38c('0x3'),{'type':_0x278b7a['STRING']}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x55'),_0x55f38c('0x0'),{'type':_0x278b7a['STRING']}),_0x402327['addColumn'](_0x55f38c('0x55'),'deviceModel',{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x55'),_0x55f38c('0xa'),{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x55'),'deviceType',{'type':_0x278b7a['STRING']}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x32'),'AttachmentId',{'type':_0x278b7a[_0x55f38c('0x31')]}),_0x402327['query'](_0x55f38c('0x1f')),_0x402327[_0x55f38c('0x57')]('voice_queues',_0x55f38c('0x40'),{'type':_0x278b7a[_0x55f38c('0x31')](0x5)[_0x55f38c('0x3d')],'defaultValue':0x1e}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x58'),_0x55f38c('0x2'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x44'),_0x55f38c('0x24'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x56'),_0x55f38c('0x24'),{'type':_0x278b7a['BOOLEAN'],'defaultValue':![]}),_0x402327['addColumn'](_0x55f38c('0x48'),_0x55f38c('0x24'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x23'),_0x55f38c('0x25'),{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x51')),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x3f')),_0x402327['query'](_0x55f38c('0x1b')),_0x402327[_0x55f38c('0x17')]('mail_rooms'),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x7')),_0x402327[_0x55f38c('0x4f')]('ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId'),_0x402327['query'](_0x55f38c('0x33')),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x8')),_0x402327['query']('ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2'),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x26')),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x4c')),_0x402327['dropTable']('mail_attachments'),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x13')),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x12')),_0x402327[_0x55f38c('0x17')]('user_has_mail_interactions'),_0x402327[_0x55f38c('0x17')]('mail_interactions'),_0x402327[_0x55f38c('0x17')]('team_has_mail_queues'),_0x402327[_0x55f38c('0x17')]('user_has_mail_queues'),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x4')),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),'fidelity'),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0x1c')),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0x9')),_0x402327['removeColumn']('mail_accounts','acceptUrl'),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),'rejectUrl'),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0xd')),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0x1e')),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0x29')),_0x402327['removeColumn']('mail_accounts','closeUrl'),_0x402327['removeColumn']('mail_accounts',_0x55f38c('0x36')),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x18'),_0x55f38c('0x4b')),_0x402327[_0x55f38c('0x47')]('mail_accounts',_0x55f38c('0x2f')),_0x402327[_0x55f38c('0x57')]('mail_accounts',_0x55f38c('0xb'),{'type':_0x278b7a[_0x55f38c('0x41')],'defaultValue':!![]}),_0x402327[_0x55f38c('0x47')](_0x55f38c('0x20'),_0x55f38c('0xf')),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x2c')),_0x402327['query'](_0x55f38c('0x39')),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x6')),_0x402327[_0x55f38c('0x4f')](_0x55f38c('0x59')),_0x402327[_0x55f38c('0x17')](_0x55f38c('0x19')),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x4d'),'phone',{'type':_0x278b7a[_0x55f38c('0x35')]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x4d'),'accountSid',{'type':_0x278b7a['STRING']}),_0x402327[_0x55f38c('0x57')]('sms_accounts','authToken',{'type':_0x278b7a['STRING']}),_0x402327[_0x55f38c('0x57')]('sms_accounts',_0x55f38c('0x5a'),{'type':_0x278b7a[_0x55f38c('0x35')],'allowNull':![]}),_0x402327['query'](_0x55f38c('0x5')),_0x402327[_0x55f38c('0x57')]('openchannel_accounts',_0x55f38c('0x5a'),{'type':_0x278b7a[_0x55f38c('0x35')],'allowNull':![]}),_0x402327[_0x55f38c('0x57')](_0x55f38c('0x2a'),_0x55f38c('0x5a'),{'type':_0x278b7a[_0x55f38c('0x35')],'allowNull':![]}),_0x402327['addColumn'](_0x55f38c('0x18'),'key',{'type':_0x278b7a[_0x55f38c('0x35')],'allowNull':![]}),_0x402327['final'](_0x4b97ae);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.35.js b/server/migrations/2.0.35.js index 4c8e937..6eb62d1 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a914_0x55e7=['userFullname','BOOLEAN','analytics_default_reports','read','prototype','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_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','table\x20dropped\x20%s','bcc','dropTable','info','joins','mail_interactions','auto','signature','DATE','voice_queues','cm_hopper_history','report_mail_session','changeColumn','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','report_fax','exports','ContactId','users','sequence','customerIp','Send','report_openchannel_session','thumb','report_mail','out','long','finally','report_fax_session','DESC','catch','attach','direction','subject','STRING','reason','analytics_custom_reports','html','chat_interactions','final','addColumn','enqueue','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','UserId','addIndex\x20%s\x20%s\x20%s','addIndex','join','TEXT','ENUM','messageId','tail','mail_messages','removeColumn','tools_templates','report_sms','queryInterface','accountId','sequelize','util','enableCustomerAttachment','text','body','retry','sentAt','ASC','phoneBarAutoAnswerDelay','then','mail_accounts','offline_chat_button','editedat','MailAccountId','campaigns','voiceSource','INTEGER','inReplyTo','stringify','report_openchannel','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','inspect','userName','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_1`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20SET\x20NULL','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','status','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','star','dialOrderByScheduledAt','referer','report_chat','Removed\x20column\x20%s\x20from\x20%s','query','edited','phoneBarEnableDtmfTone','chat_websites'];(function(_0x47b841,_0x55e7bc){const _0x32108c=function(_0x521299){while(--_0x521299){_0x47b841['push'](_0x47b841['shift']());}};_0x32108c(++_0x55e7bc);}(a914_0x55e7,0x1c1));const a914_0x3210=function(_0x47b841,_0x55e7bc){_0x47b841=_0x47b841-0x0;let _0x32108c=a914_0x55e7[_0x47b841];return _0x32108c;};const _0x519105=a914_0x3210;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x519105('0xb')),Sequence=function(){};Sequence[_0x519105('0x32')][_0x519105('0x5d')]=function(_0x521299){const _0x1b6b4c=_0x519105;this[_0x1b6b4c('0x3')]=this[_0x1b6b4c('0x3')]?this['tail'][_0x1b6b4c('0x4f')](_0x521299):_0x521299();};const Migration=function(_0x52d68c){const _0x3d5418=_0x519105;this['queryInterface']=_0x52d68c,this[_0x3d5418('0x47')]=new Sequence();};Migration[_0x519105('0x32')][_0x519105('0x41')]=function(_0x200076,_0x4fcb5b,_0x55780e){const _0x5ca4ca=_0x519105,_0x353d58=this;this[_0x5ca4ca('0x47')][_0x5ca4ca('0x5d')](function(){const _0x1afe84=_0x5ca4ca;return _0x353d58[_0x1afe84('0x8')]['changeColumn'](_0x200076,_0x4fcb5b,_0x55780e)[_0x1afe84('0x13')](function(){const _0x1d5ebb=_0x1afe84;logger[_0x1d5ebb('0x38')](_0x1d5ebb('0x33'),_0x4fcb5b,_0x200076);})['catch'](function(_0x19b26e){const _0x408ad7=_0x1afe84;logger[_0x408ad7('0x38')](JSON[_0x408ad7('0x1c')](_0x19b26e));});});},Migration[_0x519105('0x32')][_0x519105('0x5c')]=function(_0x1de056,_0x21506f,_0x464bed){const _0x4ac495=_0x519105,_0x466b46=this;this[_0x4ac495('0x47')][_0x4ac495('0x5d')](function(){const _0x2ff158=_0x4ac495;return _0x466b46[_0x2ff158('0x8')][_0x2ff158('0x5c')](_0x1de056,_0x21506f,_0x464bed)[_0x2ff158('0x13')](function(){const _0x190fdf=_0x2ff158;logger[_0x190fdf('0x38')]('Added\x20column\x20%s\x20to\x20%s',_0x21506f,_0x1de056);})[_0x2ff158('0x52')](function(_0x465d0b){const _0x5a6bc7=_0x2ff158;logger[_0x5a6bc7('0x38')](JSON['stringify'](_0x465d0b));});});},Migration[_0x519105('0x32')][_0x519105('0x37')]=function(_0x2c40fc){const _0x508733=_0x519105,_0x293bca=this;this[_0x508733('0x47')][_0x508733('0x5d')](function(){const _0x3ba01c=_0x508733;return _0x293bca['queryInterface'][_0x3ba01c('0x37')](_0x2c40fc,{'force':!![]})[_0x3ba01c('0x13')](function(){const _0xedd44c=_0x3ba01c;logger['info'](_0xedd44c('0x35'),_0x2c40fc);})[_0x3ba01c('0x52')](function(_0x2d3ded){const _0x1a5b9f=_0x3ba01c;logger[_0x1a5b9f('0x38')](JSON[_0x1a5b9f('0x1c')](_0x2d3ded));});});},Migration[_0x519105('0x32')]['addIndex']=function(_0x43d3f0,_0xdc4207,_0x581ab6){const _0x2de62c=_0x519105,_0x280da5=this;this[_0x2de62c('0x47')][_0x2de62c('0x5d')](function(){const _0x3e396f=_0x2de62c;return _0x280da5[_0x3e396f('0x8')][_0x3e396f('0x61')](_0x43d3f0,_0xdc4207,{'indexName':_0x581ab6})[_0x3e396f('0x13')](function(){const _0x9fe477=_0x3e396f;logger[_0x9fe477('0x38')](_0x9fe477('0x60'),_0x43d3f0,_0xdc4207[_0x9fe477('0x62')](','),_0x581ab6);})[_0x3e396f('0x52')](function(_0x31e604){const _0x450933=_0x3e396f;logger[_0x450933('0x38')](JSON['stringify'](_0x31e604));});});},Migration[_0x519105('0x32')][_0x519105('0x2a')]=function(_0x32f387){const _0x18f3c7=_0x519105,_0x1f6314=this;this[_0x18f3c7('0x47')][_0x18f3c7('0x5d')](function(){const _0x476536=_0x18f3c7;return _0x1f6314['queryInterface'][_0x476536('0xa')][_0x476536('0x2a')](_0x32f387)['then'](function(){const _0x305494=_0x476536;logger[_0x305494('0x38')]('query\x20%s',_0x32f387);})[_0x476536('0x52')](function(_0xd03df7){const _0x1ce7f4=_0x476536;logger[_0x1ce7f4('0x38')](JSON[_0x1ce7f4('0x1c')](_0xd03df7));});});},Migration[_0x519105('0x32')]['removeColumn']=function(_0x50f331,_0x28372c){const _0x5e7d47=_0x519105,_0x2a5746=this;this[_0x5e7d47('0x47')]['enqueue'](function(){const _0x169156=_0x5e7d47;return _0x2a5746[_0x169156('0x8')][_0x169156('0x5')](_0x50f331,_0x28372c)[_0x169156('0x13')](function(){const _0x4b1c03=_0x169156;logger[_0x4b1c03('0x38')](_0x4b1c03('0x29'),_0x28372c,_0x50f331);})[_0x169156('0x52')](function(_0x4eb2af){const _0x275856=_0x169156;logger['info'](util[_0x275856('0x1f')](_0x4eb2af,{'showHidden':![],'depth':null}));});});},Migration[_0x519105('0x32')][_0x519105('0x5b')]=function(_0xfeaf62){const _0x49a75c=_0x519105;this[_0x49a75c('0x47')]['enqueue'](function(){return _0xfeaf62();});},module[_0x519105('0x44')]={'up':function(_0x570f77,_0x394bcc){return new Promise(function(_0x16ad85){const _0x57fc05=a914_0x3210,_0x3e0cba=new Migration(_0x570f77);_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x58'),_0x57fc05('0x39'),{'type':_0x394bcc[_0x57fc05('0x0')]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x30'),_0x57fc05('0x39'),{'type':_0x394bcc[_0x57fc05('0x0')]}),_0x3e0cba[_0x57fc05('0x2a')](_0x57fc05('0x5e')),_0x3e0cba['addColumn'](_0x57fc05('0x2d'),_0x57fc05('0x15'),{'type':_0x394bcc[_0x57fc05('0x56')],'defaultValue':_0x57fc05('0x49')}),_0x3e0cba[_0x57fc05('0x5c')]('chat_websites',_0x57fc05('0xc'),{'type':_0x394bcc[_0x57fc05('0x2f')],'defaultValue':![]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x5a'),_0x57fc05('0x27'),{'type':_0x394bcc[_0x57fc05('0x56')]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x5a'),_0x57fc05('0x48'),{'type':_0x394bcc[_0x57fc05('0x56')]}),_0x3e0cba['addColumn']('chat_interactions','ratingType',{'type':_0x394bcc['ENUM'](_0x57fc05('0x25'),_0x57fc05('0x4b')),'defaultValue':_0x57fc05('0x25')}),_0x3e0cba[_0x57fc05('0x2a')](_0x57fc05('0x22')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),_0x57fc05('0xe'),{'type':_0x394bcc['TEXT'](_0x57fc05('0x4e')),'allowNull':![]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),_0x57fc05('0x31'),{'type':_0x394bcc[_0x57fc05('0x2f')],'defaultValue':![]}),_0x3e0cba['addColumn']('mail_messages',_0x57fc05('0x54'),{'type':_0x394bcc['ENUM']('in','out'),'defaultValue':_0x57fc05('0x4d'),'allowNull':![]}),_0x3e0cba[_0x57fc05('0x41')]('mail_messages',_0x57fc05('0x2'),{'type':_0x394bcc[_0x57fc05('0x56')](0xbe)}),_0x3e0cba[_0x57fc05('0x5')]('mail_messages',_0x57fc05('0x1b')),_0x3e0cba[_0x57fc05('0x41')](_0x57fc05('0x4'),'to',{'type':_0x394bcc[_0x57fc05('0x0')](_0x57fc05('0x4e'))}),_0x3e0cba[_0x57fc05('0x41')](_0x57fc05('0x4'),'cc',{'type':_0x394bcc[_0x57fc05('0x0')](_0x57fc05('0x4e'))}),_0x3e0cba['changeColumn'](_0x57fc05('0x4'),_0x57fc05('0x36'),{'type':_0x394bcc[_0x57fc05('0x0')](_0x57fc05('0x4e'))}),_0x3e0cba[_0x57fc05('0x41')](_0x57fc05('0x4'),_0x57fc05('0x55'),{'type':_0x394bcc[_0x57fc05('0x0')]}),_0x3e0cba[_0x57fc05('0x5c')]('mail_messages',_0x57fc05('0x10'),{'type':_0x394bcc[_0x57fc05('0x3d')]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),'attach',{'type':_0x394bcc['INTEGER'],'defaultValue':0x0}),_0x3e0cba['removeColumn']('mail_messages','fromId'),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),'attachment'),_0x3e0cba['removeColumn'](_0x57fc05('0x4'),_0x57fc05('0xd')),_0x3e0cba[_0x57fc05('0x5')]('mail_messages',_0x57fc05('0x59')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x57')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x3b')),_0x3e0cba['removeColumn']('mail_messages',_0x57fc05('0x23')),_0x3e0cba[_0x57fc05('0x5')]('mail_messages',_0x57fc05('0xf')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x19')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x20')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x2e')),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),_0x57fc05('0x9')),_0x3e0cba['removeColumn']('mail_messages','accountName'),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x4'),'MailInteractionId'),_0x3e0cba['addColumn'](_0x57fc05('0x4'),_0x57fc05('0x17'),{'type':_0x394bcc['INTEGER']}),_0x3e0cba['query'](_0x57fc05('0x21')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),'MailInteractionId',{'type':_0x394bcc['INTEGER']}),_0x3e0cba[_0x57fc05('0x2a')](_0x57fc05('0x34')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),_0x57fc05('0x5f'),{'type':_0x394bcc[_0x57fc05('0x1a')]}),_0x3e0cba['query'](_0x57fc05('0x42')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x4'),_0x57fc05('0x45'),{'type':_0x394bcc['INTEGER']}),_0x3e0cba[_0x57fc05('0x2a')](_0x57fc05('0x1e')),_0x3e0cba[_0x57fc05('0x2a')](_0x57fc05('0x24')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x3a'),_0x57fc05('0x53'),{'type':_0x394bcc['BOOLEAN'],'defaultValue':![]}),_0x3e0cba['addColumn'](_0x57fc05('0x14'),_0x57fc05('0x3c'),{'type':_0x394bcc[_0x57fc05('0x0')]}),_0x3e0cba[_0x57fc05('0x5')](_0x57fc05('0x6'),_0x57fc05('0x55')),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x46'),_0x57fc05('0x2c'),{'type':_0x394bcc[_0x57fc05('0x2f')],'defaultValue':![]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x46'),_0x57fc05('0x12'),{'type':_0x394bcc[_0x57fc05('0x1a')],'defaultValue':0x0}),_0x3e0cba[_0x57fc05('0x37')](_0x57fc05('0x1d')),_0x3e0cba[_0x57fc05('0x37')](_0x57fc05('0x4a')),_0x3e0cba['dropTable'](_0x57fc05('0x28')),_0x3e0cba[_0x57fc05('0x37')]('report_chat_session'),_0x3e0cba[_0x57fc05('0x37')](_0x57fc05('0x43')),_0x3e0cba['dropTable'](_0x57fc05('0x50')),_0x3e0cba[_0x57fc05('0x37')](_0x57fc05('0x4c')),_0x3e0cba['dropTable'](_0x57fc05('0x40')),_0x3e0cba[_0x57fc05('0x37')](_0x57fc05('0x7')),_0x3e0cba[_0x57fc05('0x37')]('report_sms_session'),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x3f'),_0x57fc05('0x16'),{'type':_0x394bcc[_0x57fc05('0x3d')]}),_0x3e0cba['addColumn'](_0x57fc05('0x3f'),_0x57fc05('0x2b'),{'type':_0x394bcc[_0x57fc05('0x2f')],'defaultValue':![]}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x3e'),_0x57fc05('0x26'),{'type':_0x394bcc[_0x57fc05('0x1')](_0x57fc05('0x51'),_0x57fc05('0x11')),'defaultValue':_0x57fc05('0x51')}),_0x3e0cba[_0x57fc05('0x5c')](_0x57fc05('0x18'),'dialOrderByScheduledAt',{'type':_0x394bcc[_0x57fc05('0x1')](_0x57fc05('0x51'),'ASC'),'defaultValue':'DESC'}),_0x3e0cba[_0x57fc05('0x5b')](_0x16ad85);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.36.js b/server/migrations/2.0.36.js index 84dd6f2..c87589f 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a915_0x4efa=['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','sequence','exports','INTEGER','prototype','queryInterface','join','Removed\x20column\x20%s\x20from\x20%s','util','dropTable','openchannel_messages','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','changeColumn','sequelize','removeColumn','stringify','then','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','info','enqueue','catch','AttachmentId','query','inspect','final','../config/logger'];(function(_0x309661,_0x4efaae){const _0x2b6933=function(_0x256d4d){while(--_0x256d4d){_0x309661['push'](_0x309661['shift']());}};_0x2b6933(++_0x4efaae);}(a915_0x4efa,0xc8));const a915_0x2b69=function(_0x309661,_0x4efaae){_0x309661=_0x309661-0x0;let _0x2b6933=a915_0x4efa[_0x309661];return _0x2b6933;};const _0x43663e=a915_0x2b69;'use strict';const logger=require(_0x43663e('0x17'))('migration'),util=require(_0x43663e('0x4')),Sequence=function(){};Sequence[_0x43663e('0x0')][_0x43663e('0x11')]=function(_0x256d4d){const _0xeb5420=_0x43663e;this[_0xeb5420('0xe')]=this[_0xeb5420('0xe')]?this[_0xeb5420('0xe')]['finally'](_0x256d4d):_0x256d4d();};const Migration=function(_0x270c74){const _0x1ac05e=_0x43663e;this[_0x1ac05e('0x1')]=_0x270c74,this[_0x1ac05e('0x19')]=new Sequence();};Migration['prototype'][_0x43663e('0x9')]=function(_0x309166,_0x52fe7f,_0x5565c1){const _0x99ceed=_0x43663e,_0x18eb9a=this;this['sequence'][_0x99ceed('0x11')](function(){const _0xbf2381=_0x99ceed;return _0x18eb9a['queryInterface'][_0xbf2381('0x9')](_0x309166,_0x52fe7f,_0x5565c1)[_0xbf2381('0xd')](function(){const _0x2737f5=_0xbf2381;logger[_0x2737f5('0x10')](_0x2737f5('0xf'),_0x52fe7f,_0x309166);})[_0xbf2381('0x12')](function(_0x505f0b){const _0x35928c=_0xbf2381;logger[_0x35928c('0x10')](JSON[_0x35928c('0xc')](_0x505f0b));});});},Migration[_0x43663e('0x0')]['addColumn']=function(_0x124006,_0x5f2fd4,_0x27ac5d){const _0x413c15=_0x43663e,_0x3a1a3a=this;this[_0x413c15('0x19')][_0x413c15('0x11')](function(){const _0x43fb05=_0x413c15;return _0x3a1a3a['queryInterface']['addColumn'](_0x124006,_0x5f2fd4,_0x27ac5d)[_0x43fb05('0xd')](function(){const _0x49c55e=_0x43fb05;logger['info'](_0x49c55e('0x8'),_0x5f2fd4,_0x124006);})[_0x43fb05('0x12')](function(_0x559bfc){const _0xbf6247=_0x43fb05;logger[_0xbf6247('0x10')](JSON[_0xbf6247('0xc')](_0x559bfc));});});},Migration[_0x43663e('0x0')][_0x43663e('0x5')]=function(_0xabf83){const _0xc21831=_0x43663e,_0x5d52f7=this;this[_0xc21831('0x19')][_0xc21831('0x11')](function(){const _0x54a1dc=_0xc21831;return _0x5d52f7[_0x54a1dc('0x1')][_0x54a1dc('0x5')](_0xabf83,{'force':!![]})['then'](function(){const _0x33f7b7=_0x54a1dc;logger[_0x33f7b7('0x10')]('table\x20dropped\x20%s',_0xabf83);})[_0x54a1dc('0x12')](function(_0x2624d1){const _0x133948=_0x54a1dc;logger[_0x133948('0x10')](JSON[_0x133948('0xc')](_0x2624d1));});});},Migration[_0x43663e('0x0')]['addIndex']=function(_0x208869,_0x248475,_0x2c5e99){const _0xc0b42b=_0x43663e,_0x8fd81b=this;this[_0xc0b42b('0x19')][_0xc0b42b('0x11')](function(){const _0x1b5328=_0xc0b42b;return _0x8fd81b[_0x1b5328('0x1')]['addIndex'](_0x208869,_0x248475,{'indexName':_0x2c5e99})[_0x1b5328('0xd')](function(){const _0x13d911=_0x1b5328;logger[_0x13d911('0x10')](_0x13d911('0x7'),_0x208869,_0x248475[_0x13d911('0x2')](','),_0x2c5e99);})[_0x1b5328('0x12')](function(_0x10ec0f){const _0x3a36d0=_0x1b5328;logger['info'](JSON[_0x3a36d0('0xc')](_0x10ec0f));});});},Migration[_0x43663e('0x0')][_0x43663e('0x14')]=function(_0x50f496){const _0x3111d4=this;this['sequence']['enqueue'](function(){const _0x422cd0=a915_0x2b69;return _0x3111d4[_0x422cd0('0x1')][_0x422cd0('0xa')]['query'](_0x50f496)[_0x422cd0('0xd')](function(){logger['info']('query\x20%s',_0x50f496);})[_0x422cd0('0x12')](function(_0x573b6b){const _0xfc5a75=_0x422cd0;logger[_0xfc5a75('0x10')](JSON['stringify'](_0x573b6b));});});},Migration[_0x43663e('0x0')]['removeColumn']=function(_0x3d19d7,_0x4b9f7d){const _0x28fc81=this;this['sequence']['enqueue'](function(){const _0x2289fb=a915_0x2b69;return _0x28fc81['queryInterface'][_0x2289fb('0xb')](_0x3d19d7,_0x4b9f7d)[_0x2289fb('0xd')](function(){const _0x59b3cb=_0x2289fb;logger[_0x59b3cb('0x10')](_0x59b3cb('0x3'),_0x4b9f7d,_0x3d19d7);})[_0x2289fb('0x12')](function(_0x214134){const _0x2033ce=_0x2289fb;logger[_0x2033ce('0x10')](util[_0x2033ce('0x15')](_0x214134,{'showHidden':![],'depth':null}));});});},Migration[_0x43663e('0x0')][_0x43663e('0x16')]=function(_0x41627c){const _0x28e63e=_0x43663e;this[_0x28e63e('0x19')]['enqueue'](function(){return _0x41627c();});},module[_0x43663e('0x1a')]={'up':function(_0x313460,_0x2fd47f){return new Promise(function(_0x2c585f){const _0x538e48=a915_0x2b69,_0x2c76ec=new Migration(_0x313460);_0x2c76ec['addColumn'](_0x538e48('0x6'),_0x538e48('0x13'),{'type':_0x2fd47f[_0x538e48('0x1b')]}),_0x2c76ec[_0x538e48('0x14')](_0x538e48('0x18')),_0x2c76ec[_0x538e48('0x16')](_0x2c585f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.37.js b/server/migrations/2.0.37.js index 2a3e43a..aa24aff 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a916_0x5886=['dropTable','util','Removed\x20column\x20%s\x20from\x20%s','changeColumn','report_jscripty_sessions','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','addIndex','query','sequelize','addColumn','info','sequence','prototype','STRING','sms_messages','enableUncompleteSave','Added\x20column\x20%s\x20to\x20%s','tail','enqueue','sms_interactions','table\x20dropped\x20%s','migration','addIndex\x20%s\x20%s\x20%s','join','../config/logger','phone','stringify','queryInterface','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','final','catch','then'];(function(_0x1c987e,_0x58862a){const _0x353b6a=function(_0x568562){while(--_0x568562){_0x1c987e['push'](_0x1c987e['shift']());}};_0x353b6a(++_0x58862a);}(a916_0x5886,0x191));const a916_0x353b=function(_0x1c987e,_0x58862a){_0x1c987e=_0x1c987e-0x0;let _0x353b6a=a916_0x5886[_0x1c987e];return _0x353b6a;};const _0xe84397=a916_0x353b;'use strict';const logger=require(_0xe84397('0x21'))(_0xe84397('0x1e')),util=require(_0xe84397('0x8')),Sequence=function(){};Sequence[_0xe84397('0x15')][_0xe84397('0x1b')]=function(_0x568562){const _0x13df6c=_0xe84397;this[_0x13df6c('0x1a')]=this['tail']?this[_0x13df6c('0x1a')]['finally'](_0x568562):_0x568562();};const Migration=function(_0x8c8b65){const _0x3080ee=_0xe84397;this[_0x3080ee('0x2')]=_0x8c8b65,this[_0x3080ee('0x14')]=new Sequence();};Migration[_0xe84397('0x15')]['changeColumn']=function(_0x412d6b,_0x106986,_0x9a2405){const _0x433112=_0xe84397,_0x4609cc=this;this[_0x433112('0x14')][_0x433112('0x1b')](function(){const _0x3b30b7=_0x433112;return _0x4609cc[_0x3b30b7('0x2')][_0x3b30b7('0xa')](_0x412d6b,_0x106986,_0x9a2405)[_0x3b30b7('0x6')](function(){const _0x4768e8=_0x3b30b7;logger[_0x4768e8('0x13')](_0x4768e8('0xd'),_0x106986,_0x412d6b);})[_0x3b30b7('0x5')](function(_0x2e7fea){const _0x186d7e=_0x3b30b7;logger[_0x186d7e('0x13')](JSON[_0x186d7e('0x1')](_0x2e7fea));});});},Migration[_0xe84397('0x15')][_0xe84397('0x12')]=function(_0x12ac19,_0x5735b7,_0x430666){const _0x2f0082=_0xe84397,_0x489f38=this;this[_0x2f0082('0x14')]['enqueue'](function(){const _0x2dc610=_0x2f0082;return _0x489f38[_0x2dc610('0x2')][_0x2dc610('0x12')](_0x12ac19,_0x5735b7,_0x430666)['then'](function(){const _0x187549=_0x2dc610;logger[_0x187549('0x13')](_0x187549('0x19'),_0x5735b7,_0x12ac19);})[_0x2dc610('0x5')](function(_0x94cb7e){const _0x39140f=_0x2dc610;logger[_0x39140f('0x13')](JSON[_0x39140f('0x1')](_0x94cb7e));});});},Migration['prototype'][_0xe84397('0x7')]=function(_0x3b8640){const _0x382959=_0xe84397,_0x27b798=this;this[_0x382959('0x14')]['enqueue'](function(){const _0x4109d0=_0x382959;return _0x27b798[_0x4109d0('0x2')][_0x4109d0('0x7')](_0x3b8640,{'force':!![]})[_0x4109d0('0x6')](function(){const _0x22747f=_0x4109d0;logger[_0x22747f('0x13')](_0x22747f('0x1d'),_0x3b8640);})['catch'](function(_0x1ad39e){const _0x14e31b=_0x4109d0;logger['info'](JSON[_0x14e31b('0x1')](_0x1ad39e));});});},Migration[_0xe84397('0x15')][_0xe84397('0xf')]=function(_0x36013d,_0x2e522e,_0x458db6){const _0x45f53e=_0xe84397,_0x1f4a7f=this;this[_0x45f53e('0x14')][_0x45f53e('0x1b')](function(){const _0x5df94b=_0x45f53e;return _0x1f4a7f[_0x5df94b('0x2')][_0x5df94b('0xf')](_0x36013d,_0x2e522e,{'indexName':_0x458db6})[_0x5df94b('0x6')](function(){const _0x132c67=_0x5df94b;logger['info'](_0x132c67('0x1f'),_0x36013d,_0x2e522e[_0x132c67('0x20')](','),_0x458db6);})['catch'](function(_0x3534ec){const _0x3b2a48=_0x5df94b;logger[_0x3b2a48('0x13')](JSON[_0x3b2a48('0x1')](_0x3534ec));});});},Migration['prototype'][_0xe84397('0x10')]=function(_0x2110cc){const _0x59aae4=_0xe84397,_0x28e05c=this;this[_0x59aae4('0x14')][_0x59aae4('0x1b')](function(){const _0x520a24=_0x59aae4;return _0x28e05c[_0x520a24('0x2')][_0x520a24('0x11')][_0x520a24('0x10')](_0x2110cc)[_0x520a24('0x6')](function(){const _0x26791f=_0x520a24;logger[_0x26791f('0x13')]('query\x20%s',_0x2110cc);})[_0x520a24('0x5')](function(_0x49e881){const _0xe847a0=_0x520a24;logger[_0xe847a0('0x13')](JSON[_0xe847a0('0x1')](_0x49e881));});});},Migration[_0xe84397('0x15')]['removeColumn']=function(_0x53682d,_0x3f7fa0){const _0x5cd109=_0xe84397,_0x2ac615=this;this[_0x5cd109('0x14')][_0x5cd109('0x1b')](function(){const _0x32c4e8=_0x5cd109;return _0x2ac615['queryInterface']['removeColumn'](_0x53682d,_0x3f7fa0)[_0x32c4e8('0x6')](function(){const _0x474a14=_0x32c4e8;logger[_0x474a14('0x13')](_0x474a14('0x9'),_0x3f7fa0,_0x53682d);})[_0x32c4e8('0x5')](function(_0x47d647){const _0x12f242=_0x32c4e8;logger[_0x12f242('0x13')](util['inspect'](_0x47d647,{'showHidden':![],'depth':null}));});});},Migration[_0xe84397('0x15')][_0xe84397('0x4')]=function(_0x5cfa16){const _0x14bdf7=_0xe84397;this[_0x14bdf7('0x14')][_0x14bdf7('0x1b')](function(){return _0x5cfa16();});},module[_0xe84397('0xe')]={'up':function(_0x264d81,_0x1b1fbc){return new Promise(function(_0x454dbb){const _0x596d5d=a916_0x353b,_0x4d8c0a=new Migration(_0x264d81);_0x4d8c0a['addColumn']('jscripty_projects',_0x596d5d('0x18'),{'type':_0x1b1fbc[_0x596d5d('0xc')],'defaultValue':!![]}),_0x4d8c0a[_0x596d5d('0x12')](_0x596d5d('0xb'),'completed',{'type':_0x1b1fbc[_0x596d5d('0xc')],'defaultValue':![]}),_0x4d8c0a[_0x596d5d('0x10')](_0x596d5d('0x3')),_0x4d8c0a[_0x596d5d('0x12')](_0x596d5d('0x1c'),_0x596d5d('0x0'),{'type':_0x1b1fbc['STRING']}),_0x4d8c0a[_0x596d5d('0x12')](_0x596d5d('0x17'),'phone',{'type':_0x1b1fbc[_0x596d5d('0x16')]}),_0x4d8c0a[_0x596d5d('0x4')](_0x454dbb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.38.js b/server/migrations/2.0.38.js index 94df8af..a8398c8 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a917_0x28cc=['query','info','stringify','join','sms_accounts','child_process','prototype','AttachmentId','sequelize','exports','INTEGER','remote','dropTable','catch','final','inspect','addColumn','table\x20dropped\x20%s','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','changeColumn','token','then','sms_messages','util','addIndex','query\x20%s','tools_trunks','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','Exec\x20chmod','fax_applications','STRING','sequence','queryInterface','enqueue','Removed\x20column\x20%s\x20from\x20%s','messageId','Changed\x20column\x20%s\x20in\x20table\x20%s','t38pt_udptl','tail','Ls\x20:','\x20Error\x20:','removeColumn'];(function(_0x499ea8,_0x28cc95){const _0x1444d3=function(_0x29e838){while(--_0x29e838){_0x499ea8['push'](_0x499ea8['shift']());}};_0x1444d3(++_0x28cc95);}(a917_0x28cc,0x1ce));const a917_0x1444=function(_0x499ea8,_0x28cc95){_0x499ea8=_0x499ea8-0x0;let _0x1444d3=a917_0x28cc[_0x499ea8];return _0x1444d3;};const _0x4ce878=a917_0x1444;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x4ce878('0x22')),exec=require(_0x4ce878('0x10'))['exec'],cmd=_0x4ce878('0x1d'),ls='ls\x20-la\x20/var/opt/motion2/server/files',Sequence=function(){};Sequence[_0x4ce878('0x11')][_0x4ce878('0x2')]=function(_0x29e838){const _0x403132=_0x4ce878;this[_0x403132('0x7')]=this[_0x403132('0x7')]?this[_0x403132('0x7')]['finally'](_0x29e838):_0x29e838();};const Migration=function(_0x1b8175){const _0x4a8a1a=_0x4ce878;this['queryInterface']=_0x1b8175,this[_0x4a8a1a('0x0')]=new Sequence();};Migration[_0x4ce878('0x11')][_0x4ce878('0x1e')]=function(_0x5a2981,_0x13cdb5,_0xe547b0){const _0x2d1a4d=_0x4ce878,_0x5f22d0=this;this[_0x2d1a4d('0x0')][_0x2d1a4d('0x2')](function(){const _0x49c637=_0x2d1a4d;return _0x5f22d0[_0x49c637('0x1')][_0x49c637('0x1e')](_0x5a2981,_0x13cdb5,_0xe547b0)[_0x49c637('0x20')](function(){const _0x2acf7=_0x49c637;logger['info'](_0x2acf7('0x5'),_0x13cdb5,_0x5a2981);})[_0x49c637('0x18')](function(_0x189e51){logger['info'](JSON['stringify'](_0x189e51));});});},Migration[_0x4ce878('0x11')][_0x4ce878('0x1b')]=function(_0x1e254d,_0x3d2490,_0xd2133d){const _0xc7e88f=_0x4ce878,_0x42212c=this;this[_0xc7e88f('0x0')][_0xc7e88f('0x2')](function(){const _0x3a6d3e=_0xc7e88f;return _0x42212c[_0x3a6d3e('0x1')]['addColumn'](_0x1e254d,_0x3d2490,_0xd2133d)[_0x3a6d3e('0x20')](function(){const _0x199d70=_0x3a6d3e;logger['info'](_0x199d70('0x26'),_0x3d2490,_0x1e254d);})[_0x3a6d3e('0x18')](function(_0x9779a0){const _0x24170a=_0x3a6d3e;logger[_0x24170a('0xc')](JSON['stringify'](_0x9779a0));});});},Migration[_0x4ce878('0x11')]['dropTable']=function(_0x5b2e35){const _0x2c98f0=_0x4ce878,_0x17d452=this;this[_0x2c98f0('0x0')][_0x2c98f0('0x2')](function(){const _0x20c81e=_0x2c98f0;return _0x17d452[_0x20c81e('0x1')]['dropTable'](_0x5b2e35,{'force':!![]})[_0x20c81e('0x20')](function(){const _0x4421de=_0x20c81e;logger[_0x4421de('0xc')](_0x4421de('0x1c'),_0x5b2e35);})['catch'](function(_0x2310ca){const _0x541034=_0x20c81e;logger['info'](JSON[_0x541034('0xd')](_0x2310ca));});});},Migration[_0x4ce878('0x11')][_0x4ce878('0x23')]=function(_0x4ee83a,_0x28d00e,_0x21307c){const _0x32adbf=_0x4ce878,_0x380ee6=this;this[_0x32adbf('0x0')]['enqueue'](function(){const _0x247c3c=_0x32adbf;return _0x380ee6[_0x247c3c('0x1')][_0x247c3c('0x23')](_0x4ee83a,_0x28d00e,{'indexName':_0x21307c})[_0x247c3c('0x20')](function(){const _0x2fb8f3=_0x247c3c;logger[_0x2fb8f3('0xc')](_0x2fb8f3('0x27'),_0x4ee83a,_0x28d00e[_0x2fb8f3('0xe')](','),_0x21307c);})[_0x247c3c('0x18')](function(_0x45be31){const _0x5990ea=_0x247c3c;logger[_0x5990ea('0xc')](JSON[_0x5990ea('0xd')](_0x45be31));});});},Migration[_0x4ce878('0x11')][_0x4ce878('0xb')]=function(_0x40b0c4){const _0x7f11e6=_0x4ce878,_0x3ece1e=this;this[_0x7f11e6('0x0')]['enqueue'](function(){const _0x5889c3=_0x7f11e6;return _0x3ece1e[_0x5889c3('0x1')][_0x5889c3('0x13')]['query'](_0x40b0c4)[_0x5889c3('0x20')](function(){const _0x43431d=_0x5889c3;logger[_0x43431d('0xc')](_0x43431d('0x24'),_0x40b0c4);})['catch'](function(_0x58219a){const _0x417b2b=_0x5889c3;logger[_0x417b2b('0xc')](JSON['stringify'](_0x58219a));});});},Migration[_0x4ce878('0x11')][_0x4ce878('0xa')]=function(_0x5bd9d9,_0x1dd10e){const _0x2a232a=_0x4ce878,_0x2ab526=this;this[_0x2a232a('0x0')][_0x2a232a('0x2')](function(){const _0x8695f=_0x2a232a;return _0x2ab526['queryInterface'][_0x8695f('0xa')](_0x5bd9d9,_0x1dd10e)[_0x8695f('0x20')](function(){const _0x505be9=_0x8695f;logger[_0x505be9('0xc')](_0x505be9('0x3'),_0x1dd10e,_0x5bd9d9);})[_0x8695f('0x18')](function(_0x4fa8eb){const _0x134bbb=_0x8695f;logger['info'](util[_0x134bbb('0x1a')](_0x4fa8eb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4ce878('0x19')]=function(_0x3437cc){const _0x220b54=_0x4ce878;this[_0x220b54('0x0')][_0x220b54('0x2')](function(){return _0x3437cc();});},module[_0x4ce878('0x14')]={'up':function(_0x30e912,_0x2f0dd1){return new Promise(function(_0x4c167b){const _0x5b7b4f=a917_0x1444,_0xa730bf=new Migration(_0x30e912);_0xa730bf[_0x5b7b4f('0x1b')](_0x5b7b4f('0xf'),_0x5b7b4f('0x16'),{'type':_0x2f0dd1[_0x5b7b4f('0x2a')]}),_0xa730bf[_0x5b7b4f('0x1b')](_0x5b7b4f('0xf'),_0x5b7b4f('0x1f'),{'type':_0x2f0dd1[_0x5b7b4f('0x2a')]}),_0xa730bf['addColumn'](_0x5b7b4f('0x21'),_0x5b7b4f('0x4'),{'type':_0x2f0dd1['STRING']}),exec(cmd,function(_0x305615,_0x13f5fd,_0x312c33){const _0x78a1b4=_0x5b7b4f;logger['info'](_0x78a1b4('0x28'),'\x20Error\x20:',JSON[_0x78a1b4('0xd')](_0x305615),_0x13f5fd,_0x312c33),exec(ls,function(_0x474298,_0x143d3e,_0x1eca88){const _0x21d9c9=_0x78a1b4;logger['info'](_0x21d9c9('0x8'),_0x21d9c9('0x9'),JSON[_0x21d9c9('0xd')](_0x474298),_0x143d3e,_0x1eca88);});}),_0xa730bf[_0x5b7b4f('0x17')](_0x5b7b4f('0x29')),_0xa730bf['addColumn']('fax_messages',_0x5b7b4f('0x12'),{'type':_0x2f0dd1[_0x5b7b4f('0x15')]}),_0xa730bf[_0x5b7b4f('0xb')]('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'),_0xa730bf[_0x5b7b4f('0x1b')](_0x5b7b4f('0x25'),_0x5b7b4f('0x6'),{'type':_0x2f0dd1[_0x5b7b4f('0x2a')],'defaultValue':'no'}),_0xa730bf[_0x5b7b4f('0x19')](_0x4c167b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.39.js b/server/migrations/2.0.39.js index ac0dcca..0070530 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a918_0x3394=['ls\x20-la\x20/var/opt/motion2/server/files','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());','root','checkVoiceContexts','xcally-mixmonitor-context','render','../config/environment','ENUM','dropTable','changeColumn','prototype','addIndex','deletedAt','lead','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','finally','writeFileSync','stringify','query','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','cm_contacts','queryInterface','findAll','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\x272\x27,\x20\x27Set\x27,\x20\x27CDR(type)=outbound-fax\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','migration','findOrCreate','contact','moduleSearch','info','/etc/asterisk/extensions_xcally_contexts.conf','moduleCreate','defaultPageTitle','catch','Ls\x20:','int_salesforce_configurations','addIndex\x20%s\x20%s\x20%s','nothing','final','ejs','\x20Error\x20:','import','query\x20%s','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\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','sequelize','settings','STRING','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','pageTitle','Exec\x20chmod','spread','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x276\x27,\x20\x27Set\x27,\x20\x27FAXOPT(localstationid)=${XMF-LOCALSTATIONID}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','contact_lead','enqueue','join','addColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','table\x20dropped\x20%s','api/voiceContext/voiceContext.model','exports','removeColumn','child_process','inspect','files/templates/context.ejs','DATE'];(function(_0xfced4d,_0x339402){const _0x27d8a4=function(_0x449406){while(--_0x449406){_0xfced4d['push'](_0xfced4d['shift']());}};_0x27d8a4(++_0x339402);}(a918_0x3394,0x1e1));const a918_0x27d8=function(_0xfced4d,_0x339402){_0xfced4d=_0xfced4d-0x0;let _0x27d8a4=a918_0x3394[_0xfced4d];return _0x27d8a4;};const _0x53e5bb=a918_0x27d8;'use strict';const logger=require('../config/logger')(_0x53e5bb('0x1b')),util=require('util'),ejs=require(_0x53e5bb('0x29')),fs=require('fs'),path=require('path'),exec=require(_0x53e5bb('0x43'))['exec'],config=require(_0x53e5bb('0x8')),Sequence=function(){};Sequence[_0x53e5bb('0xc')]['enqueue']=function(_0x449406){const _0x443e48=_0x53e5bb;this[_0x443e48('0x38')]=this['tail']?this[_0x443e48('0x38')][_0x443e48('0x11')](_0x449406):_0x449406();};const Migration=function(_0x16cb6f){const _0x5329d4=_0x53e5bb;this[_0x5329d4('0x17')]=_0x16cb6f,this[_0x5329d4('0x32')]=new Sequence();};Migration[_0x53e5bb('0xc')][_0x53e5bb('0xb')]=function(_0x11585d,_0x1b1284,_0x41fce5){const _0x323eba=_0x53e5bb,_0x168217=this;this['sequence'][_0x323eba('0x3b')](function(){const _0x1f0c2e=_0x323eba;return _0x168217[_0x1f0c2e('0x17')][_0x1f0c2e('0xb')](_0x11585d,_0x1b1284,_0x41fce5)[_0x1f0c2e('0x19')](function(){const _0x25da4c=_0x1f0c2e;logger[_0x25da4c('0x1f')](_0x25da4c('0x39'),_0x1b1284,_0x11585d);})['catch'](function(_0x4d76e8){const _0x1e99c6=_0x1f0c2e;logger[_0x1e99c6('0x1f')](JSON[_0x1e99c6('0x13')](_0x4d76e8));});});},Migration['prototype']['addColumn']=function(_0x1f5cc2,_0x44c62c,_0x4f1e26){const _0x5c09c8=this;this['sequence']['enqueue'](function(){const _0x2b0c57=a918_0x27d8;return _0x5c09c8[_0x2b0c57('0x17')][_0x2b0c57('0x3d')](_0x1f5cc2,_0x44c62c,_0x4f1e26)[_0x2b0c57('0x19')](function(){const _0x1ec2a9=_0x2b0c57;logger[_0x1ec2a9('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x44c62c,_0x1f5cc2);})['catch'](function(_0x261e0d){const _0xe9edea=_0x2b0c57;logger[_0xe9edea('0x1f')](JSON['stringify'](_0x261e0d));});});},Migration[_0x53e5bb('0xc')][_0x53e5bb('0xa')]=function(_0x2d7f67){const _0x3283fc=_0x53e5bb,_0x3e8617=this;this[_0x3283fc('0x32')][_0x3283fc('0x3b')](function(){const _0x2051e7=_0x3283fc;return _0x3e8617['queryInterface'][_0x2051e7('0xa')](_0x2d7f67,{'force':!![]})[_0x2051e7('0x19')](function(){const _0xfc4d2b=_0x2051e7;logger['info'](_0xfc4d2b('0x3f'),_0x2d7f67);})[_0x2051e7('0x23')](function(_0x11e8e8){const _0x51292c=_0x2051e7;logger[_0x51292c('0x1f')](JSON[_0x51292c('0x13')](_0x11e8e8));});});},Migration['prototype'][_0x53e5bb('0xd')]=function(_0x535a8d,_0x37cea7,_0x135d8e){const _0x96639f=_0x53e5bb,_0xd0f00f=this;this[_0x96639f('0x32')][_0x96639f('0x3b')](function(){const _0x3930f2=_0x96639f;return _0xd0f00f[_0x3930f2('0x17')][_0x3930f2('0xd')](_0x535a8d,_0x37cea7,{'indexName':_0x135d8e})[_0x3930f2('0x19')](function(){const _0xa76a71=_0x3930f2;logger[_0xa76a71('0x1f')](_0xa76a71('0x26'),_0x535a8d,_0x37cea7['join'](','),_0x135d8e);})['catch'](function(_0x4c1a21){const _0x11f03f=_0x3930f2;logger[_0x11f03f('0x1f')](JSON[_0x11f03f('0x13')](_0x4c1a21));});});},Migration[_0x53e5bb('0xc')][_0x53e5bb('0x14')]=function(_0x46c06a){const _0x4c464f=_0x53e5bb,_0x3b4f39=this;this[_0x4c464f('0x32')]['enqueue'](function(){const _0x108900=_0x4c464f;return _0x3b4f39['queryInterface'][_0x108900('0x2f')][_0x108900('0x14')](_0x46c06a)[_0x108900('0x19')](function(){const _0x1bc048=_0x108900;logger[_0x1bc048('0x1f')](_0x1bc048('0x2c'),_0x46c06a);})[_0x108900('0x23')](function(_0x22afc9){const _0x29953d=_0x108900;logger[_0x29953d('0x1f')](JSON['stringify'](_0x22afc9));});});},Migration[_0x53e5bb('0xc')][_0x53e5bb('0x42')]=function(_0x4b8543,_0x457eab){const _0x3e127f=_0x53e5bb,_0x48ccd9=this;this['sequence'][_0x3e127f('0x3b')](function(){const _0x5299b0=_0x3e127f;return _0x48ccd9[_0x5299b0('0x17')][_0x5299b0('0x42')](_0x4b8543,_0x457eab)['then'](function(){const _0x533055=_0x5299b0;logger[_0x533055('0x1f')]('Removed\x20column\x20%s\x20from\x20%s',_0x457eab,_0x4b8543);})[_0x5299b0('0x23')](function(_0xa62665){const _0xbab889=_0x5299b0;logger[_0xbab889('0x1f')](util[_0xbab889('0x44')](_0xa62665,{'showHidden':![],'depth':null}));});});},Migration[_0x53e5bb('0xc')][_0x53e5bb('0x5')]=function(){const _0x43a553=_0x53e5bb,_0x42f653=this,_0x1b73e3=_0x42f653['queryInterface'][_0x43a553('0x2f')][_0x43a553('0x2b')](path[_0x43a553('0x3c')](config[_0x43a553('0x4')],_0x43a553('0x40')));this['sequence']['enqueue'](function(){const _0x2b0e35=_0x43a553;return _0x1b73e3[_0x2b0e35('0x1c')]({'where':{'name':_0x2b0e35('0x6')},'defaults':{'name':'xcally-mixmonitor-context','description':_0x2b0e35('0x15'),'defaultEntry':!![]}})[_0x2b0e35('0x36')](function(){const _0xc75277=_0x2b0e35;return _0x1b73e3[_0xc75277('0x18')]({'raw':!![]});})[_0x2b0e35('0x19')](function(_0x592158){const _0x17c1b4=_0x2b0e35,_0x1e7a93=fs['readFileSync'](path[_0x17c1b4('0x3c')](config[_0x17c1b4('0x4')],_0x17c1b4('0x0')),'utf8'),_0x1366a4=ejs[_0x17c1b4('0x7')](_0x1e7a93,{'contexts':_0x592158||[]});fs[_0x17c1b4('0x12')](_0x17c1b4('0x20'),_0x1366a4),exec('asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22',function(_0x5acd36,_0x3d5632,_0xb2a422){const _0x28dce0=_0x17c1b4;logger['info'](_0x28dce0('0x35'),_0x28dce0('0x2a'),JSON[_0x28dce0('0x13')](_0x5acd36),_0x3d5632,_0xb2a422);});})[_0x2b0e35('0x23')](function(_0x57a147){const _0x193e36=_0x2b0e35;logger['info'](JSON[_0x193e36('0x13')](_0x57a147));});});},Migration[_0x53e5bb('0xc')][_0x53e5bb('0x28')]=function(_0x51fdad){const _0x136c3e=_0x53e5bb;this[_0x136c3e('0x32')][_0x136c3e('0x3b')](function(){return _0x51fdad();});},module[_0x53e5bb('0x41')]={'up':function(_0x4296ce,_0x546d90){return new Promise(function(_0x473c82){const _0x43c227=a918_0x27d8,_0x836bb1=new Migration(_0x4296ce);_0x836bb1[_0x43c227('0x3d')](_0x43c227('0x30'),_0x43c227('0x22'),{'type':_0x546d90['BOOLEAN'],'defaultValue':!![]}),_0x836bb1[_0x43c227('0x3d')]('settings',_0x43c227('0x34'),{'type':_0x546d90[_0x43c227('0x31')]}),_0x836bb1[_0x43c227('0x5')](),_0x836bb1['addColumn'](_0x43c227('0x25'),_0x43c227('0x1e'),{'type':_0x546d90[_0x43c227('0x9')]('contact_lead',_0x43c227('0x1d'),_0x43c227('0xf')),'defaultValue':_0x43c227('0x3a')}),_0x836bb1[_0x43c227('0x3d')](_0x43c227('0x25'),_0x43c227('0x21'),{'type':_0x546d90[_0x43c227('0x9')](_0x43c227('0x27'),_0x43c227('0x1d'),_0x43c227('0xf')),'defaultValue':_0x43c227('0xf')}),_0x836bb1[_0x43c227('0x14')]('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());'),_0x836bb1[_0x43c227('0x14')](_0x43c227('0x1a')),_0x836bb1[_0x43c227('0x14')]('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());'),_0x836bb1[_0x43c227('0x14')](_0x43c227('0x33')),_0x836bb1[_0x43c227('0x14')](_0x43c227('0x3e')),_0x836bb1[_0x43c227('0x14')](_0x43c227('0x37')),_0x836bb1[_0x43c227('0x14')](_0x43c227('0x3')),_0x836bb1[_0x43c227('0x14')]('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());'),_0x836bb1['query'](_0x43c227('0x10')),_0x836bb1['query'](_0x43c227('0x2e')),_0x836bb1['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x2711\x27,\x20\x27SendFax\x27,\x20\x27${XMF-PATH},d\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),exec(_0x43c227('0x2d'),function(_0x354665,_0x2fc1f2,_0x371072){const _0x4d1046=_0x43c227;logger['info']('Exec\x20chmod',_0x4d1046('0x2a'),JSON[_0x4d1046('0x13')](_0x354665),_0x2fc1f2,_0x371072),exec(_0x4d1046('0x2'),function(_0x1c88bf,_0x5d85c4,_0x53e551){const _0x362133=_0x4d1046;logger[_0x362133('0x1f')](_0x362133('0x24'),_0x362133('0x2a'),JSON[_0x362133('0x13')](_0x1c88bf),_0x5d85c4,_0x53e551);});}),_0x836bb1[_0x43c227('0x3d')](_0x43c227('0x16'),_0x43c227('0xe'),{'type':_0x546d90[_0x43c227('0x1')],'defaultValue':null}),_0x836bb1[_0x43c227('0x28')](_0x473c82);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.40.js b/server/migrations/2.0.40.js index a46338b..eaad64d 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -var a919_0x2d9a=['exports'];(function(_0x2c5373,_0x2d9a05){var _0x56425a=function(_0x171bba){while(--_0x171bba){_0x2c5373['push'](_0x2c5373['shift']());}};_0x56425a(++_0x2d9a05);}(a919_0x2d9a,0x17c));var a919_0x5642=function(_0x2c5373,_0x2d9a05){_0x2c5373=_0x2c5373-0x0;var _0x56425a=a919_0x2d9a[_0x2c5373];return _0x56425a;};var _0x40e750=a919_0x5642;'use strict';module[_0x40e750('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.41.js b/server/migrations/2.0.41.js index cdf48f3..c35775d 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a920_0x21c1=['addColumn','BOOLEAN','table\x20dropped\x20%s','catch','showAgentAvatar','prototype','serverUrl','changeColumn','tail','exports','addIndex\x20%s\x20%s\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s','query\x20%s','migration','join','secret','STRING','chat_websites','util','formData','Removed\x20column\x20%s\x20from\x20%s','TEXT','sequelize','then','long','sequence','dropTable','queryInterface','info','inspect','removeColumn','final','stringify','chat_messages','cm_custom_fields','values','enqueue','addIndex','query'];(function(_0x1fb920,_0x21c1f6){const _0x5e2c73=function(_0x2af9bc){while(--_0x2af9bc){_0x1fb920['push'](_0x1fb920['shift']());}};_0x5e2c73(++_0x21c1f6);}(a920_0x21c1,0x183));const a920_0x5e2c=function(_0x1fb920,_0x21c1f6){_0x1fb920=_0x1fb920-0x0;let _0x5e2c73=a920_0x21c1[_0x1fb920];return _0x5e2c73;};const _0x4e0fc4=a920_0x5e2c;'use strict';const logger=require(_0x4e0fc4('0x18'))(_0x4e0fc4('0x1b')),util=require(_0x4e0fc4('0x20')),Sequence=function(){};Sequence[_0x4e0fc4('0x12')][_0x4e0fc4('0xa')]=function(_0x2af9bc){const _0x2ef61c=_0x4e0fc4;this[_0x2ef61c('0x15')]=this[_0x2ef61c('0x15')]?this[_0x2ef61c('0x15')]['finally'](_0x2af9bc):_0x2af9bc();};const Migration=function(_0x4347b9){const _0x226b64=_0x4e0fc4;this[_0x226b64('0x1')]=_0x4347b9,this['sequence']=new Sequence();};Migration[_0x4e0fc4('0x12')][_0x4e0fc4('0x14')]=function(_0x5a748b,_0x1aedc0,_0x5b803c){const _0x4f381d=_0x4e0fc4,_0x17f914=this;this[_0x4f381d('0x27')]['enqueue'](function(){const _0x2e7e07=_0x4f381d;return _0x17f914['queryInterface'][_0x2e7e07('0x14')](_0x5a748b,_0x1aedc0,_0x5b803c)['then'](function(){const _0x3f2359=_0x2e7e07;logger[_0x3f2359('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1aedc0,_0x5a748b);})[_0x2e7e07('0x10')](function(_0x3b9076){const _0x6a9489=_0x2e7e07;logger[_0x6a9489('0x2')](JSON[_0x6a9489('0x6')](_0x3b9076));});});},Migration[_0x4e0fc4('0x12')]['addColumn']=function(_0x3aeb34,_0x582d28,_0x2e62fd){const _0x3a9dc6=this;this['sequence']['enqueue'](function(){const _0x5c8e6b=a920_0x5e2c;return _0x3a9dc6[_0x5c8e6b('0x1')]['addColumn'](_0x3aeb34,_0x582d28,_0x2e62fd)[_0x5c8e6b('0x25')](function(){const _0x23ef99=_0x5c8e6b;logger[_0x23ef99('0x2')](_0x23ef99('0x19'),_0x582d28,_0x3aeb34);})['catch'](function(_0x5391eb){const _0x4f1839=_0x5c8e6b;logger[_0x4f1839('0x2')](JSON[_0x4f1839('0x6')](_0x5391eb));});});},Migration['prototype'][_0x4e0fc4('0x0')]=function(_0x33d881){const _0x22e835=_0x4e0fc4,_0x12a4e9=this;this[_0x22e835('0x27')]['enqueue'](function(){const _0x25908b=_0x22e835;return _0x12a4e9['queryInterface'][_0x25908b('0x0')](_0x33d881,{'force':!![]})[_0x25908b('0x25')](function(){const _0x3759a6=_0x25908b;logger[_0x3759a6('0x2')](_0x3759a6('0xf'),_0x33d881);})[_0x25908b('0x10')](function(_0x44b8f8){const _0x3c4593=_0x25908b;logger[_0x3c4593('0x2')](JSON[_0x3c4593('0x6')](_0x44b8f8));});});},Migration[_0x4e0fc4('0x12')][_0x4e0fc4('0xb')]=function(_0x4f24c1,_0x2ff8b5,_0x4d87e0){const _0x33ba9f=_0x4e0fc4,_0x592954=this;this[_0x33ba9f('0x27')][_0x33ba9f('0xa')](function(){const _0x1a889a=_0x33ba9f;return _0x592954[_0x1a889a('0x1')][_0x1a889a('0xb')](_0x4f24c1,_0x2ff8b5,{'indexName':_0x4d87e0})[_0x1a889a('0x25')](function(){const _0x51ae07=_0x1a889a;logger[_0x51ae07('0x2')](_0x51ae07('0x17'),_0x4f24c1,_0x2ff8b5[_0x51ae07('0x1c')](','),_0x4d87e0);})[_0x1a889a('0x10')](function(_0x19c5d0){const _0x50fa38=_0x1a889a;logger['info'](JSON[_0x50fa38('0x6')](_0x19c5d0));});});},Migration[_0x4e0fc4('0x12')][_0x4e0fc4('0xc')]=function(_0x1d011e){const _0x1af16b=_0x4e0fc4,_0x19d9d0=this;this[_0x1af16b('0x27')][_0x1af16b('0xa')](function(){const _0x215709=_0x1af16b;return _0x19d9d0[_0x215709('0x1')][_0x215709('0x24')][_0x215709('0xc')](_0x1d011e)['then'](function(){const _0x19fd0d=_0x215709;logger[_0x19fd0d('0x2')](_0x19fd0d('0x1a'),_0x1d011e);})[_0x215709('0x10')](function(_0x55be7a){const _0x4d61a2=_0x215709;logger[_0x4d61a2('0x2')](JSON[_0x4d61a2('0x6')](_0x55be7a));});});},Migration['prototype']['removeColumn']=function(_0x3e1d75,_0x20d44e){const _0xae311d=_0x4e0fc4,_0x132945=this;this[_0xae311d('0x27')][_0xae311d('0xa')](function(){const _0x5f597c=_0xae311d;return _0x132945[_0x5f597c('0x1')][_0x5f597c('0x4')](_0x3e1d75,_0x20d44e)[_0x5f597c('0x25')](function(){const _0x7d4036=_0x5f597c;logger[_0x7d4036('0x2')](_0x7d4036('0x22'),_0x20d44e,_0x3e1d75);})['catch'](function(_0x201350){const _0x8a60a6=_0x5f597c;logger[_0x8a60a6('0x2')](util[_0x8a60a6('0x3')](_0x201350,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4e0fc4('0x5')]=function(_0x3ab06f){const _0x265647=_0x4e0fc4;this['sequence'][_0x265647('0xa')](function(){return _0x3ab06f();});},module[_0x4e0fc4('0x16')]={'up':function(_0x276992,_0x382579){return new Promise(function(_0x478dff){const _0x53e9dc=a920_0x5e2c,_0x848ffa=new Migration(_0x276992);_0x848ffa[_0x53e9dc('0xd')]('int_desk_accounts',_0x53e9dc('0x13'),{'type':_0x382579[_0x53e9dc('0x1e')]}),_0x848ffa[_0x53e9dc('0xd')]('chat_interactions',_0x53e9dc('0x21'),{'type':_0x382579['TEXT'](_0x53e9dc('0x26'))}),_0x848ffa[_0x53e9dc('0xd')](_0x53e9dc('0x7'),_0x53e9dc('0x1d'),{'type':_0x382579[_0x53e9dc('0xe')],'defaultValue':![]}),_0x848ffa['addColumn'](_0x53e9dc('0x1f'),'agentAvatar',{'type':_0x382579[_0x53e9dc('0x23')]}),_0x848ffa[_0x53e9dc('0xd')](_0x53e9dc('0x1f'),_0x53e9dc('0x11'),{'type':_0x382579[_0x53e9dc('0xe')],'defaultValue':![]}),_0x848ffa[_0x53e9dc('0x14')](_0x53e9dc('0x8'),_0x53e9dc('0x9'),{'type':_0x382579[_0x53e9dc('0x23')]('long')}),_0x848ffa[_0x53e9dc('0x5')](_0x478dff);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.42.js b/server/migrations/2.0.42.js index 866f122..c0a78b8 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a921_0x1576=['openchannel_messages','secret','cm_contacts','import','STRING','util','#0091EA','../config/logger','final','info','changeColumn','tail','enqueue','sequelize','inspect','finally','addIndex','table\x20dropped\x20%s','getCustomFields','../config/environment','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','color','notIn','path','queryInterface','catch','number','addIndex\x20%s\x20%s\x20%s','TEXT','dropTable','then','prototype','BOOLEAN','api/cmCustomField/cmCustomField.model','fax_messages','failMessage','stringify','findAll','removeColumn','users','join','addColumn','sequence'];(function(_0x438a14,_0x15769c){const _0x375333=function(_0x527ae4){while(--_0x527ae4){_0x438a14['push'](_0x438a14['shift']());}};_0x375333(++_0x15769c);}(a921_0x1576,0x114));const a921_0x3753=function(_0x438a14,_0x15769c){_0x438a14=_0x438a14-0x0;let _0x375333=a921_0x1576[_0x438a14];return _0x375333;};const _0x34e347=a921_0x3753;'use strict';const logger=require(_0x34e347('0x27'))('migration'),util=require(_0x34e347('0x25')),path=require(_0x34e347('0xc')),config=require(_0x34e347('0x7')),{Op}=require('sequelize'),Sequence=function(){};Sequence[_0x34e347('0x14')][_0x34e347('0x0')]=function(_0x527ae4){const _0x29f0e4=_0x34e347;this[_0x29f0e4('0x2b')]=this[_0x29f0e4('0x2b')]?this[_0x29f0e4('0x2b')][_0x29f0e4('0x3')](_0x527ae4):_0x527ae4();};const Migration=function(_0x115531){const _0x273b2d=_0x34e347;this[_0x273b2d('0xd')]=_0x115531,this[_0x273b2d('0x1f')]=new Sequence();};Migration[_0x34e347('0x14')][_0x34e347('0x2a')]=function(_0x26cc07,_0x53b6ec,_0x31c98e){const _0x4d1988=this;this['sequence']['enqueue'](function(){const _0x12769f=a921_0x3753;return _0x4d1988[_0x12769f('0xd')][_0x12769f('0x2a')](_0x26cc07,_0x53b6ec,_0x31c98e)['then'](function(){const _0x2b7179=_0x12769f;logger[_0x2b7179('0x29')](_0x2b7179('0x9'),_0x53b6ec,_0x26cc07);})['catch'](function(_0x2ba049){const _0x5f2000=_0x12769f;logger[_0x5f2000('0x29')](JSON[_0x5f2000('0x19')](_0x2ba049));});});},Migration[_0x34e347('0x14')][_0x34e347('0x1e')]=function(_0x156857,_0x5ab7ac,_0x333e63){const _0x53b359=_0x34e347,_0xe72332=this;this[_0x53b359('0x1f')]['enqueue'](function(){const _0x2cd449=_0x53b359;return _0xe72332[_0x2cd449('0xd')][_0x2cd449('0x1e')](_0x156857,_0x5ab7ac,_0x333e63)[_0x2cd449('0x13')](function(){const _0x4ec931=_0x2cd449;logger[_0x4ec931('0x29')](_0x4ec931('0x8'),_0x5ab7ac,_0x156857);})[_0x2cd449('0xe')](function(_0x4876d0){const _0x573f8e=_0x2cd449;logger[_0x573f8e('0x29')](JSON['stringify'](_0x4876d0));});});},Migration[_0x34e347('0x14')][_0x34e347('0x12')]=function(_0x1bf573){const _0x4aa80f=_0x34e347,_0x2efd88=this;this['sequence'][_0x4aa80f('0x0')](function(){const _0x11c30b=_0x4aa80f;return _0x2efd88[_0x11c30b('0xd')][_0x11c30b('0x12')](_0x1bf573,{'force':!![]})[_0x11c30b('0x13')](function(){const _0x180f7b=_0x11c30b;logger[_0x180f7b('0x29')](_0x180f7b('0x5'),_0x1bf573);})[_0x11c30b('0xe')](function(_0x1b8ce3){const _0x567830=_0x11c30b;logger[_0x567830('0x29')](JSON['stringify'](_0x1b8ce3));});});},Migration[_0x34e347('0x14')][_0x34e347('0x4')]=function(_0xdf3092,_0x21483a,_0x4d31b2){const _0x304e49=this;this['sequence']['enqueue'](function(){const _0x2bd39e=a921_0x3753;return _0x304e49[_0x2bd39e('0xd')][_0x2bd39e('0x4')](_0xdf3092,_0x21483a,{'indexName':_0x4d31b2})[_0x2bd39e('0x13')](function(){const _0x3c7d69=_0x2bd39e;logger[_0x3c7d69('0x29')](_0x3c7d69('0x10'),_0xdf3092,_0x21483a[_0x3c7d69('0x1d')](','),_0x4d31b2);})['catch'](function(_0x58be51){const _0x461bfe=_0x2bd39e;logger[_0x461bfe('0x29')](JSON[_0x461bfe('0x19')](_0x58be51));});});},Migration[_0x34e347('0x14')]['query']=function(_0x159037){const _0x3accc4=_0x34e347,_0x428bee=this;this[_0x3accc4('0x1f')][_0x3accc4('0x0')](function(){const _0x4e0e32=_0x3accc4;return _0x428bee[_0x4e0e32('0xd')][_0x4e0e32('0x1')]['query'](_0x159037)[_0x4e0e32('0x13')](function(){const _0x4fc5fe=_0x4e0e32;logger[_0x4fc5fe('0x29')]('query\x20%s',_0x159037);})[_0x4e0e32('0xe')](function(_0x581655){const _0x25bb31=_0x4e0e32;logger[_0x25bb31('0x29')](JSON[_0x25bb31('0x19')](_0x581655));});});},Migration[_0x34e347('0x14')][_0x34e347('0x1b')]=function(_0x403018,_0x4b011c){const _0x1ef303=_0x34e347,_0x4ba910=this;this[_0x1ef303('0x1f')][_0x1ef303('0x0')](function(){const _0x13c295=_0x1ef303;return _0x4ba910[_0x13c295('0xd')][_0x13c295('0x1b')](_0x403018,_0x4b011c)['then'](function(){const _0x5bcaf6=_0x13c295;logger[_0x5bcaf6('0x29')]('Removed\x20column\x20%s\x20from\x20%s',_0x4b011c,_0x403018);})[_0x13c295('0xe')](function(_0x5bfcc5){const _0x2d049d=_0x13c295;logger['info'](util[_0x2d049d('0x2')](_0x5bfcc5,{'showHidden':![],'depth':null}));});});},Migration[_0x34e347('0x14')][_0x34e347('0x6')]=function(){const _0x3865be=_0x34e347,_0x59fc8e=this,_0x2510d0=_0x59fc8e[_0x3865be('0xd')]['sequelize'][_0x3865be('0x23')](path[_0x3865be('0x1d')](config['root'],_0x3865be('0x16')));return _0x2510d0[_0x3865be('0x1a')]({'where':{'type':{[Op[_0x3865be('0xb')]]:[_0x3865be('0xf'),'switch']}},'attributes':['id']})['then'](function(_0xf39ca1){return _0xf39ca1;})[_0x3865be('0xe')](function(_0x1f3764){const _0x5229e1=_0x3865be;logger[_0x5229e1('0x29')](JSON[_0x5229e1('0x19')](_0x1f3764));});},Migration[_0x34e347('0x14')][_0x34e347('0x28')]=function(_0x5c1113){const _0x2ea30f=_0x34e347;this['sequence'][_0x2ea30f('0x0')](function(){return _0x5c1113();});},module['exports']={'up':function(_0x35e035,_0x45baff){return new Promise(function(_0x2a5c75){const _0x3f0036=a921_0x3753,_0x42bffd=new Migration(_0x35e035);_0x42bffd['addColumn']('tools_tags',_0x3f0036('0xa'),{'type':_0x45baff[_0x3f0036('0x24')],'defaultValue':_0x3f0036('0x26')}),_0x42bffd['addColumn'](_0x3f0036('0x20'),_0x3f0036('0x21'),{'type':_0x45baff[_0x3f0036('0x15')],'defaultValue':![]}),_0x42bffd[_0x3f0036('0x6')]()[_0x3f0036('0x13')](function(_0x1c2c48){const _0x2fd4ea=_0x3f0036;if(_0x1c2c48)for(let _0xfe4a4a=0x0,_0x10e022=_0x1c2c48['length'];_0xfe4a4a<_0x10e022;_0xfe4a4a++){_0x42bffd[_0x2fd4ea('0x2a')](_0x2fd4ea('0x22'),'cf_'+_0x1c2c48[_0xfe4a4a]['id'],{'type':_0x45baff[_0x2fd4ea('0x11')]});}}),_0x42bffd[_0x3f0036('0x1e')](_0x3f0036('0x17'),_0x3f0036('0x18'),{'type':_0x45baff['TEXT']}),_0x42bffd[_0x3f0036('0x1e')](_0x3f0036('0x1c'),'extensionMonitor',{'type':_0x45baff[_0x3f0036('0x24')],'defaultValue':''}),_0x42bffd[_0x3f0036('0x28')](_0x2a5c75);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.43.js b/server/migrations/2.0.43.js index 1e6d3a5..a308391 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a922_0x142c=['info','query','final','mail_messages','then','exports','util','stringify','addColumn','../config/logger','sequelize','catch','BOOLEAN','migration','finally','inspect','query\x20%s','prototype','changeColumn','Added\x20column\x20%s\x20to\x20%s','secret','sequence','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','join','removeColumn','addIndex','enqueue','queryInterface','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','dropTable'];(function(_0x489e07,_0x142c3d){const _0x45a783=function(_0x503590){while(--_0x503590){_0x489e07['push'](_0x489e07['shift']());}};_0x45a783(++_0x142c3d);}(a922_0x142c,0x108));const a922_0x45a7=function(_0x489e07,_0x142c3d){_0x489e07=_0x489e07-0x0;let _0x45a783=a922_0x142c[_0x489e07];return _0x45a783;};const _0x3eb77a=a922_0x45a7;'use strict';const logger=require(_0x3eb77a('0x1'))(_0x3eb77a('0x5')),util=require(_0x3eb77a('0x1e')),Sequence=function(){};Sequence[_0x3eb77a('0x9')]['enqueue']=function(_0x503590){const _0x1879d3=_0x3eb77a;this[_0x1879d3('0xe')]=this['tail']?this[_0x1879d3('0xe')][_0x1879d3('0x6')](_0x503590):_0x503590();};const Migration=function(_0x2f920f){const _0x196095=_0x3eb77a;this[_0x196095('0x14')]=_0x2f920f,this[_0x196095('0xd')]=new Sequence();};Migration['prototype'][_0x3eb77a('0xa')]=function(_0x50a55a,_0x10be94,_0xfd0a4d){const _0x43a3cf=_0x3eb77a,_0x68f581=this;this[_0x43a3cf('0xd')][_0x43a3cf('0x13')](function(){const _0x40d6c5=_0x43a3cf;return _0x68f581['queryInterface'][_0x40d6c5('0xa')](_0x50a55a,_0x10be94,_0xfd0a4d)['then'](function(){const _0x2ab870=_0x40d6c5;logger[_0x2ab870('0x18')](_0x2ab870('0xf'),_0x10be94,_0x50a55a);})[_0x40d6c5('0x3')](function(_0xf49a4e){const _0x296174=_0x40d6c5;logger['info'](JSON[_0x296174('0x1f')](_0xf49a4e));});});},Migration[_0x3eb77a('0x9')][_0x3eb77a('0x0')]=function(_0xc602c4,_0x5ba672,_0x47e1af){const _0xc4cc60=_0x3eb77a,_0x35e904=this;this[_0xc4cc60('0xd')]['enqueue'](function(){const _0x33f101=_0xc4cc60;return _0x35e904['queryInterface']['addColumn'](_0xc602c4,_0x5ba672,_0x47e1af)[_0x33f101('0x1c')](function(){const _0x22490c=_0x33f101;logger['info'](_0x22490c('0xb'),_0x5ba672,_0xc602c4);})[_0x33f101('0x3')](function(_0x2bcee8){const _0xfa4dd=_0x33f101;logger[_0xfa4dd('0x18')](JSON[_0xfa4dd('0x1f')](_0x2bcee8));});});},Migration[_0x3eb77a('0x9')][_0x3eb77a('0x17')]=function(_0x35e09c){const _0x3dd9de=_0x3eb77a,_0x4d3d37=this;this[_0x3dd9de('0xd')][_0x3dd9de('0x13')](function(){const _0x431312=_0x3dd9de;return _0x4d3d37[_0x431312('0x14')][_0x431312('0x17')](_0x35e09c,{'force':!![]})['then'](function(){const _0x3c4b27=_0x431312;logger[_0x3c4b27('0x18')](_0x3c4b27('0x15'),_0x35e09c);})[_0x431312('0x3')](function(_0x3becb3){const _0x2b80c1=_0x431312;logger['info'](JSON[_0x2b80c1('0x1f')](_0x3becb3));});});},Migration[_0x3eb77a('0x9')][_0x3eb77a('0x12')]=function(_0x490b3c,_0x3267ab,_0x145878){const _0x428e28=_0x3eb77a,_0x6c9949=this;this[_0x428e28('0xd')][_0x428e28('0x13')](function(){const _0x20eb1b=_0x428e28;return _0x6c9949[_0x20eb1b('0x14')][_0x20eb1b('0x12')](_0x490b3c,_0x3267ab,{'indexName':_0x145878})[_0x20eb1b('0x1c')](function(){const _0xbff4d8=_0x20eb1b;logger[_0xbff4d8('0x18')]('addIndex\x20%s\x20%s\x20%s',_0x490b3c,_0x3267ab[_0xbff4d8('0x10')](','),_0x145878);})[_0x20eb1b('0x3')](function(_0x445bdf){const _0x19634c=_0x20eb1b;logger[_0x19634c('0x18')](JSON[_0x19634c('0x1f')](_0x445bdf));});});},Migration['prototype'][_0x3eb77a('0x19')]=function(_0x3fc9fc){const _0x49c5f5=_0x3eb77a,_0x144a76=this;this[_0x49c5f5('0xd')][_0x49c5f5('0x13')](function(){const _0x53d31c=_0x49c5f5;return _0x144a76[_0x53d31c('0x14')][_0x53d31c('0x2')]['query'](_0x3fc9fc)[_0x53d31c('0x1c')](function(){const _0x6ce1c5=_0x53d31c;logger[_0x6ce1c5('0x18')](_0x6ce1c5('0x8'),_0x3fc9fc);})[_0x53d31c('0x3')](function(_0x3e5a51){logger['info'](JSON['stringify'](_0x3e5a51));});});},Migration[_0x3eb77a('0x9')][_0x3eb77a('0x11')]=function(_0x379609,_0x54e4f3){const _0x27e9c2=_0x3eb77a,_0xb30476=this;this[_0x27e9c2('0xd')][_0x27e9c2('0x13')](function(){const _0x103db4=_0x27e9c2;return _0xb30476[_0x103db4('0x14')][_0x103db4('0x11')](_0x379609,_0x54e4f3)['then'](function(){const _0x28e4fb=_0x103db4;logger[_0x28e4fb('0x18')](_0x28e4fb('0x16'),_0x54e4f3,_0x379609);})[_0x103db4('0x3')](function(_0x236f71){const _0x134849=_0x103db4;logger[_0x134849('0x18')](util[_0x134849('0x7')](_0x236f71,{'showHidden':![],'depth':null}));});});},Migration[_0x3eb77a('0x9')][_0x3eb77a('0x1a')]=function(_0x5f18e9){const _0x525aaa=_0x3eb77a;this['sequence'][_0x525aaa('0x13')](function(){return _0x5f18e9();});},module[_0x3eb77a('0x1d')]={'up':function(_0x2c5bc8,_0x464681){return new Promise(function(_0x76e767){const _0x2a60ff=a922_0x45a7,_0x4afa6c=new Migration(_0x2c5bc8);_0x4afa6c[_0x2a60ff('0x0')](_0x2a60ff('0x1b'),_0x2a60ff('0xc'),{'type':_0x464681[_0x2a60ff('0x4')],'defaultValue':![]}),_0x4afa6c[_0x2a60ff('0x1a')](_0x76e767);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.44.js b/server/migrations/2.0.44.js index 912af42..09d9f37 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a923_0x347c=['migration','externalUrl','sms_interactions','chat_websites','fax_messages','chat_interactions','mail_messages','read1stAt','addIndex','stringify','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','query\x20%s','addColumn','query','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','sequence','substatusAt','nameAndAccount','voice_dispositions','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','then','threadId','Removed\x20column\x20%s\x20from\x20%s','tail','STRING','closingQuestion','changeColumn','inspect','catch','chat_dispositions','prototype','DATE','Added\x20column\x20%s\x20to\x20%s','substatus','Changed\x20column\x20%s\x20in\x20table\x20%s','final','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','openchannel_interactions','sms_dispositions','addIndex\x20%s\x20%s\x20%s','sequelize','removeColumn','fax_interactions','enqueue','name','dropTable','finally','queryInterface','table\x20dropped\x20%s','join','mail_dispositions','sms_messages','mail_interactions','info','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','readAt'];(function(_0x155edc,_0x347c4c){const _0x3dfa5c=function(_0x197f42){while(--_0x197f42){_0x155edc['push'](_0x155edc['shift']());}};_0x3dfa5c(++_0x347c4c);}(a923_0x347c,0xd0));const a923_0x3dfa=function(_0x155edc,_0x347c4c){_0x155edc=_0x155edc-0x0;let _0x3dfa5c=a923_0x347c[_0x155edc];return _0x3dfa5c;};const _0x5d60d7=a923_0x3dfa;'use strict';const logger=require('../config/logger')(_0x5d60d7('0x14')),util=require('util'),Sequence=function(){};Sequence[_0x5d60d7('0x32')][_0x5d60d7('0x6')]=function(_0x197f42){const _0xc7797=_0x5d60d7;this[_0xc7797('0x2b')]=this['tail']?this[_0xc7797('0x2b')][_0xc7797('0x9')](_0x197f42):_0x197f42();};const Migration=function(_0x90ccbd){const _0x1f7c15=_0x5d60d7;this[_0x1f7c15('0xa')]=_0x90ccbd,this[_0x1f7c15('0x23')]=new Sequence();};Migration['prototype'][_0x5d60d7('0x2e')]=function(_0xf109c3,_0x582f93,_0x57b61c){const _0x278162=_0x5d60d7,_0x399195=this;this['sequence'][_0x278162('0x6')](function(){const _0x4eab93=_0x278162;return _0x399195[_0x4eab93('0xa')][_0x4eab93('0x2e')](_0xf109c3,_0x582f93,_0x57b61c)[_0x4eab93('0x28')](function(){const _0x4cd407=_0x4eab93;logger[_0x4cd407('0x10')](_0x4cd407('0x36'),_0x582f93,_0xf109c3);})[_0x4eab93('0x30')](function(_0x1483b5){const _0x2aec74=_0x4eab93;logger[_0x2aec74('0x10')](JSON[_0x2aec74('0x1d')](_0x1483b5));});});},Migration[_0x5d60d7('0x32')][_0x5d60d7('0x20')]=function(_0x186f54,_0x440fd7,_0x4b80df){const _0xd1c5dc=_0x5d60d7,_0x40afbf=this;this[_0xd1c5dc('0x23')]['enqueue'](function(){const _0x427929=_0xd1c5dc;return _0x40afbf[_0x427929('0xa')]['addColumn'](_0x186f54,_0x440fd7,_0x4b80df)['then'](function(){const _0x4681d8=_0x427929;logger[_0x4681d8('0x10')](_0x4681d8('0x34'),_0x440fd7,_0x186f54);})[_0x427929('0x30')](function(_0x10e95b){const _0xc36535=_0x427929;logger[_0xc36535('0x10')](JSON[_0xc36535('0x1d')](_0x10e95b));});});},Migration[_0x5d60d7('0x32')][_0x5d60d7('0x8')]=function(_0xd52e43){const _0x34add6=_0x5d60d7,_0x426c61=this;this[_0x34add6('0x23')][_0x34add6('0x6')](function(){const _0x1baeb7=_0x34add6;return _0x426c61[_0x1baeb7('0xa')][_0x1baeb7('0x8')](_0xd52e43,{'force':!![]})['then'](function(){const _0x2325e2=_0x1baeb7;logger['info'](_0x2325e2('0xb'),_0xd52e43);})['catch'](function(_0x2c49a0){const _0x4e5f58=_0x1baeb7;logger['info'](JSON[_0x4e5f58('0x1d')](_0x2c49a0));});});},Migration[_0x5d60d7('0x32')][_0x5d60d7('0x1c')]=function(_0x3f1784,_0x3cf84e,_0x4df7e9){const _0x2001d6=_0x5d60d7,_0x13fe6d=this;this[_0x2001d6('0x23')][_0x2001d6('0x6')](function(){const _0x2df1eb=_0x2001d6;return _0x13fe6d[_0x2df1eb('0xa')][_0x2df1eb('0x1c')](_0x3f1784,_0x3cf84e,{'indexName':_0x4df7e9})['then'](function(){const _0x2bb01a=_0x2df1eb;logger[_0x2bb01a('0x10')](_0x2bb01a('0x2'),_0x3f1784,_0x3cf84e[_0x2bb01a('0xc')](','),_0x4df7e9);})['catch'](function(_0x262f1c){const _0x332f55=_0x2df1eb;logger[_0x332f55('0x10')](JSON[_0x332f55('0x1d')](_0x262f1c));});});},Migration[_0x5d60d7('0x32')]['query']=function(_0x1058ab){const _0x25f6da=_0x5d60d7,_0x48a3f6=this;this[_0x25f6da('0x23')]['enqueue'](function(){const _0x40ea02=_0x25f6da;return _0x48a3f6[_0x40ea02('0xa')][_0x40ea02('0x3')][_0x40ea02('0x21')](_0x1058ab)[_0x40ea02('0x28')](function(){const _0x4e55b6=_0x40ea02;logger[_0x4e55b6('0x10')](_0x4e55b6('0x1f'),_0x1058ab);})[_0x40ea02('0x30')](function(_0xce0f4f){const _0x40311d=_0x40ea02;logger[_0x40311d('0x10')](JSON[_0x40311d('0x1d')](_0xce0f4f));});});},Migration['prototype'][_0x5d60d7('0x4')]=function(_0x573764,_0x24a275){const _0x11e5ff=this;this['sequence']['enqueue'](function(){const _0x5e7e91=a923_0x3dfa;return _0x11e5ff[_0x5e7e91('0xa')][_0x5e7e91('0x4')](_0x573764,_0x24a275)['then'](function(){const _0x551823=_0x5e7e91;logger['info'](_0x551823('0x2a'),_0x24a275,_0x573764);})[_0x5e7e91('0x30')](function(_0x2ccdee){const _0x3bc976=_0x5e7e91;logger[_0x3bc976('0x10')](util[_0x3bc976('0x2f')](_0x2ccdee,{'showHidden':![],'depth':null}));});});},Migration[_0x5d60d7('0x32')][_0x5d60d7('0x37')]=function(_0x1a5788){const _0x340b39=_0x5d60d7;this[_0x340b39('0x23')][_0x340b39('0x6')](function(){return _0x1a5788();});},module['exports']={'up':function(_0x2ace00,_0x48aad8){return new Promise(function(_0x4410f1){const _0x212f04=a923_0x3dfa,_0x5b6678=new Migration(_0x2ace00);_0x5b6678[_0x212f04('0x20')](_0x212f04('0x17'),_0x212f04('0x2d'),{'type':_0x48aad8[_0x212f04('0x2c')],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0x19'),_0x212f04('0x1b'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678['addColumn']('chat_messages',_0x212f04('0x13'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678['addColumn'](_0x212f04('0x5'),_0x212f04('0x1b'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0x18'),_0x212f04('0x13'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0x0'),'read1stAt',{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678['addColumn'](_0x212f04('0x0'),_0x212f04('0x29'),{'type':_0x48aad8[_0x212f04('0x2c')]}),_0x5b6678['addColumn'](_0x212f04('0x0'),_0x212f04('0x15'),{'type':_0x48aad8[_0x212f04('0x2c')]}),_0x5b6678[_0x212f04('0x20')]('openchannel_messages','readAt',{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0xf'),'read1stAt',{'type':_0x48aad8['DATE']}),_0x5b6678['addColumn'](_0x212f04('0xf'),_0x212f04('0x35'),{'type':_0x48aad8['STRING'](0x3c)}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0xf'),_0x212f04('0x24'),{'type':_0x48aad8['DATE']}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0x1a'),_0x212f04('0x13'),{'type':_0x48aad8['DATE']}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0x16'),_0x212f04('0x1b'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678[_0x212f04('0x20')](_0x212f04('0xe'),_0x212f04('0x13'),{'type':_0x48aad8[_0x212f04('0x33')]}),_0x5b6678[_0x212f04('0x2e')](_0x212f04('0x31'),_0x212f04('0x7'),{'type':_0x48aad8[_0x212f04('0x2c')],'unique':'nameAndAccount','allowNull':![]}),_0x5b6678['changeColumn']('fax_dispositions',_0x212f04('0x7'),{'type':_0x48aad8[_0x212f04('0x2c')],'unique':'nameAndAccount','allowNull':![]}),_0x5b6678[_0x212f04('0x2e')]('openchannel_dispositions','name',{'type':_0x48aad8[_0x212f04('0x2c')],'unique':'nameAndAccount','allowNull':![]}),_0x5b6678[_0x212f04('0x2e')](_0x212f04('0x1'),_0x212f04('0x7'),{'type':_0x48aad8[_0x212f04('0x2c')],'unique':_0x212f04('0x25'),'allowNull':![]}),_0x5b6678['changeColumn'](_0x212f04('0x26'),_0x212f04('0x7'),{'type':_0x48aad8[_0x212f04('0x2c')],'unique':_0x212f04('0x25'),'allowNull':![]}),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x27')),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x12')),_0x5b6678['query']('ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)'),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x1e')),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x11')),_0x5b6678[_0x212f04('0x2e')](_0x212f04('0xd'),_0x212f04('0x7'),{'type':_0x48aad8['STRING'],'unique':'nameAndAccount','allowNull':![]}),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x38')),_0x5b6678[_0x212f04('0x21')](_0x212f04('0x22')),_0x5b6678['final'](_0x4410f1);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.45.js b/server/migrations/2.0.45.js index 4e094be..4085bb1 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -var a924_0x1bb4=['exports'];(function(_0xa5004f,_0x1bb449){var _0x1594ac=function(_0x32e712){while(--_0x32e712){_0xa5004f['push'](_0xa5004f['shift']());}};_0x1594ac(++_0x1bb449);}(a924_0x1bb4,0x103));var a924_0x1594=function(_0xa5004f,_0x1bb449){_0xa5004f=_0xa5004f-0x0;var _0x1594ac=a924_0x1bb4[_0xa5004f];return _0x1594ac;};var _0xd7bc28=a924_0x1594;'use strict';module[_0xd7bc28('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.46.js b/server/migrations/2.0.46.js index 1159673..9ec2a1e 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a925_0x1c76=['removeColumn','STRING','tail','Note','noteTitle','util','fax','then','info','prototype','query\x20%s','users','../config/logger','Added\x20column\x20%s\x20to\x20%s','migration','inspect','addIndex','table\x20dropped\x20%s','showWebBar','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','INTEGER','sequelize','chat_websites','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','sequence','dropTable','addColumn','catch','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)','exports','changeColumn','placeholderMessage','addIndex\x20%s\x20%s\x20%s','crudPermissions','queryInterface','stringify','Type\x20a\x20message','enqueue','finally','final','query'];(function(_0x5526fd,_0x1c7636){const _0xe956a8=function(_0x3b9d02){while(--_0x3b9d02){_0x5526fd['push'](_0x5526fd['shift']());}};_0xe956a8(++_0x1c7636);}(a925_0x1c76,0xc5));const a925_0xe956=function(_0x5526fd,_0x1c7636){_0x5526fd=_0x5526fd-0x0;let _0xe956a8=a925_0x1c76[_0x5526fd];return _0xe956a8;};const _0x457cf7=a925_0xe956;'use strict';const logger=require(_0x457cf7('0x19'))(_0x457cf7('0x1b')),util=require(_0x457cf7('0x12')),Sequence=function(){};Sequence[_0x457cf7('0x16')]['enqueue']=function(_0x3b9d02){const _0x14f976=_0x457cf7;this['tail']=this['tail']?this[_0x14f976('0xf')][_0x14f976('0xa')](_0x3b9d02):_0x3b9d02();};const Migration=function(_0x1ad9c7){const _0x4a557b=_0x457cf7;this[_0x4a557b('0x6')]=_0x1ad9c7,this[_0x4a557b('0x26')]=new Sequence();};Migration[_0x457cf7('0x16')]['changeColumn']=function(_0x5205d8,_0x71ccd9,_0x399599){const _0x50b875=this;this['sequence']['enqueue'](function(){const _0x156251=a925_0xe956;return _0x50b875[_0x156251('0x6')][_0x156251('0x2')](_0x5205d8,_0x71ccd9,_0x399599)[_0x156251('0x14')](function(){const _0x3f660a=_0x156251;logger[_0x3f660a('0x15')](_0x3f660a('0x21'),_0x71ccd9,_0x5205d8);})[_0x156251('0x29')](function(_0x449e09){const _0x32cf5e=_0x156251;logger[_0x32cf5e('0x15')](JSON[_0x32cf5e('0x7')](_0x449e09));});});},Migration[_0x457cf7('0x16')]['addColumn']=function(_0x28a9ae,_0x4b6c9f,_0x14fc12){const _0x5b5470=_0x457cf7,_0x19b24b=this;this[_0x5b5470('0x26')][_0x5b5470('0x9')](function(){const _0xf46e1e=_0x5b5470;return _0x19b24b['queryInterface']['addColumn'](_0x28a9ae,_0x4b6c9f,_0x14fc12)['then'](function(){const _0x573f76=a925_0xe956;logger['info'](_0x573f76('0x1a'),_0x4b6c9f,_0x28a9ae);})[_0xf46e1e('0x29')](function(_0x73961a){const _0x20e057=_0xf46e1e;logger['info'](JSON[_0x20e057('0x7')](_0x73961a));});});},Migration[_0x457cf7('0x16')]['dropTable']=function(_0x524abb){const _0x51e44c=_0x457cf7,_0x43c694=this;this[_0x51e44c('0x26')][_0x51e44c('0x9')](function(){const _0x7c5356=_0x51e44c;return _0x43c694[_0x7c5356('0x6')][_0x7c5356('0x27')](_0x524abb,{'force':!![]})[_0x7c5356('0x14')](function(){const _0x215ca3=_0x7c5356;logger[_0x215ca3('0x15')](_0x215ca3('0x1e'),_0x524abb);})['catch'](function(_0x5d5be4){const _0x202534=_0x7c5356;logger['info'](JSON[_0x202534('0x7')](_0x5d5be4));});});},Migration['prototype'][_0x457cf7('0x1d')]=function(_0x34d0ef,_0x15d0f2,_0xdf4445){const _0x30f5a6=_0x457cf7,_0x503a98=this;this[_0x30f5a6('0x26')][_0x30f5a6('0x9')](function(){const _0x5e82d8=_0x30f5a6;return _0x503a98[_0x5e82d8('0x6')][_0x5e82d8('0x1d')](_0x34d0ef,_0x15d0f2,{'indexName':_0xdf4445})[_0x5e82d8('0x14')](function(){const _0x5a1dcf=_0x5e82d8;logger[_0x5a1dcf('0x15')](_0x5a1dcf('0x4'),_0x34d0ef,_0x15d0f2['join'](','),_0xdf4445);})[_0x5e82d8('0x29')](function(_0xaca411){const _0x48660b=_0x5e82d8;logger[_0x48660b('0x15')](JSON[_0x48660b('0x7')](_0xaca411));});});},Migration[_0x457cf7('0x16')]['query']=function(_0x29116c){const _0x40029d=_0x457cf7,_0x31056a=this;this[_0x40029d('0x26')][_0x40029d('0x9')](function(){const _0x2168a6=_0x40029d;return _0x31056a[_0x2168a6('0x6')][_0x2168a6('0x23')][_0x2168a6('0xc')](_0x29116c)[_0x2168a6('0x14')](function(){const _0x47e86c=_0x2168a6;logger[_0x47e86c('0x15')](_0x47e86c('0x17'),_0x29116c);})[_0x2168a6('0x29')](function(_0x4c4052){const _0x1009cf=_0x2168a6;logger['info'](JSON[_0x1009cf('0x7')](_0x4c4052));});});},Migration['prototype']['removeColumn']=function(_0x44d583,_0x3673b5){const _0x4918ba=_0x457cf7,_0x385de3=this;this['sequence'][_0x4918ba('0x9')](function(){const _0x41430c=_0x4918ba;return _0x385de3[_0x41430c('0x6')][_0x41430c('0xd')](_0x44d583,_0x3673b5)[_0x41430c('0x14')](function(){const _0x8315c6=_0x41430c;logger[_0x8315c6('0x15')](_0x8315c6('0x20'),_0x3673b5,_0x44d583);})[_0x41430c('0x29')](function(_0x36bd95){const _0x26e6eb=_0x41430c;logger['info'](util[_0x26e6eb('0x1c')](_0x36bd95,{'showHidden':![],'depth':null}));});});},Migration[_0x457cf7('0x16')][_0x457cf7('0xb')]=function(_0x467c1d){const _0x10e426=_0x457cf7;this[_0x10e426('0x26')]['enqueue'](function(){return _0x467c1d();});},module[_0x457cf7('0x1')]={'up':function(_0xdfef5a,_0x17d64e){return new Promise(function(_0x4e2c66){const _0x12c042=a925_0xe956,_0x4f5285=new Migration(_0xdfef5a);_0x4f5285[_0x12c042('0x2')]('users',_0x12c042('0x1f'),{'type':_0x17d64e[_0x12c042('0x22')],'defaultValue':0x0}),_0x4f5285[_0x12c042('0xc')](_0x12c042('0x0')),_0x4f5285[_0x12c042('0x28')](_0x12c042('0x18'),_0x12c042('0x5'),{'type':_0x17d64e[_0x12c042('0x22')],'defaultValue':0x0}),_0x4f5285[_0x12c042('0x28')](_0x12c042('0x24'),_0x12c042('0x11'),{'type':_0x17d64e[_0x12c042('0xe')],'defaultValue':_0x12c042('0x10')}),_0x4f5285[_0x12c042('0x28')]('chat_websites',_0x12c042('0x3'),{'type':_0x17d64e[_0x12c042('0xe')],'defaultValue':_0x12c042('0x8')}),_0x4f5285[_0x12c042('0x28')]('fax_interactions',_0x12c042('0x13'),{'type':_0x17d64e['STRING']}),_0x4f5285['query'](_0x12c042('0x25')),_0x4f5285[_0x12c042('0xb')](_0x4e2c66);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.47.js b/server/migrations/2.0.47.js index 417ca0f..c7944bc 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a926_0x29b4=['then','query','addColumn','final','formSubmitFailureMessage','sequence','data','enqueue','../config/logger','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','dashboard_items','changeColumn','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','catch','DELETE\x20FROM\x20dashboards','Form\x20properly\x20submitted','dropTable','migration','TEXT','prototype','attrs','exports','removeColumn','addIndex','dashboards','chat_websites','stringify','BOOLEAN','long','finally','info','STRING','tail','queryInterface','formSubmitSuccessMessage','Form\x20submission\x20error','join','query\x20%s'];(function(_0x41cce2,_0x29b47f){const _0x586558=function(_0x19ce33){while(--_0x19ce33){_0x41cce2['push'](_0x41cce2['shift']());}};_0x586558(++_0x29b47f);}(a926_0x29b4,0x181));const a926_0x5865=function(_0x41cce2,_0x29b47f){_0x41cce2=_0x41cce2-0x0;let _0x586558=a926_0x29b4[_0x41cce2];return _0x586558;};const _0x13494d=a926_0x5865;'use strict';const logger=require(_0x13494d('0x17'))(_0x13494d('0x22')),util=require('util'),Sequence=function(){};Sequence[_0x13494d('0x24')]['enqueue']=function(_0x19ce33){const _0x23a972=_0x13494d;this[_0x23a972('0x9')]=this[_0x23a972('0x9')]?this[_0x23a972('0x9')][_0x23a972('0x6')](_0x19ce33):_0x19ce33();};const Migration=function(_0x569c9c){const _0x3c9182=_0x13494d;this[_0x3c9182('0xa')]=_0x569c9c,this[_0x3c9182('0x14')]=new Sequence();};Migration[_0x13494d('0x24')]['changeColumn']=function(_0x22c5d3,_0x4393b9,_0x208705){const _0x22bbb7=_0x13494d,_0x217f09=this;this[_0x22bbb7('0x14')]['enqueue'](function(){const _0x1a1154=_0x22bbb7;return _0x217f09[_0x1a1154('0xa')][_0x1a1154('0x1b')](_0x22c5d3,_0x4393b9,_0x208705)[_0x1a1154('0xf')](function(){const _0x35310e=_0x1a1154;logger[_0x35310e('0x7')](_0x35310e('0x19'),_0x4393b9,_0x22c5d3);})['catch'](function(_0x28615a){const _0x227b62=_0x1a1154;logger[_0x227b62('0x7')](JSON[_0x227b62('0x3')](_0x28615a));});});},Migration[_0x13494d('0x24')][_0x13494d('0x11')]=function(_0x4353e4,_0x34d9bd,_0x57bd60){const _0x4e3cfe=_0x13494d,_0x6e346f=this;this[_0x4e3cfe('0x14')][_0x4e3cfe('0x16')](function(){const _0x461daf=_0x4e3cfe;return _0x6e346f[_0x461daf('0xa')]['addColumn'](_0x4353e4,_0x34d9bd,_0x57bd60)[_0x461daf('0xf')](function(){const _0x4682ec=_0x461daf;logger[_0x4682ec('0x7')](_0x4682ec('0x1c'),_0x34d9bd,_0x4353e4);})[_0x461daf('0x1e')](function(_0x44e4ad){const _0x449ae9=_0x461daf;logger['info'](JSON[_0x449ae9('0x3')](_0x44e4ad));});});},Migration[_0x13494d('0x24')][_0x13494d('0x21')]=function(_0x369a58){const _0x1dff80=_0x13494d,_0x2fcda6=this;this[_0x1dff80('0x14')][_0x1dff80('0x16')](function(){const _0x2a545c=_0x1dff80;return _0x2fcda6[_0x2a545c('0xa')][_0x2a545c('0x21')](_0x369a58,{'force':!![]})['then'](function(){const _0x27a741=_0x2a545c;logger['info'](_0x27a741('0x1d'),_0x369a58);})[_0x2a545c('0x1e')](function(_0x5b746b){const _0x2c8e33=_0x2a545c;logger[_0x2c8e33('0x7')](JSON['stringify'](_0x5b746b));});});},Migration[_0x13494d('0x24')][_0x13494d('0x0')]=function(_0x2303fc,_0x4a1953,_0x3e31d8){const _0x37bafd=_0x13494d,_0x869475=this;this['sequence'][_0x37bafd('0x16')](function(){const _0x2bb0d7=_0x37bafd;return _0x869475[_0x2bb0d7('0xa')]['addIndex'](_0x2303fc,_0x4a1953,{'indexName':_0x3e31d8})[_0x2bb0d7('0xf')](function(){const _0x300a1f=_0x2bb0d7;logger[_0x300a1f('0x7')]('addIndex\x20%s\x20%s\x20%s',_0x2303fc,_0x4a1953[_0x300a1f('0xd')](','),_0x3e31d8);})[_0x2bb0d7('0x1e')](function(_0x19e129){logger['info'](JSON['stringify'](_0x19e129));});});},Migration[_0x13494d('0x24')][_0x13494d('0x10')]=function(_0x42f4d7){const _0xfa6484=_0x13494d,_0x3423f2=this;this[_0xfa6484('0x14')]['enqueue'](function(){const _0x509629=_0xfa6484;return _0x3423f2[_0x509629('0xa')]['sequelize'][_0x509629('0x10')](_0x42f4d7)['then'](function(){const _0x2ce3d7=_0x509629;logger[_0x2ce3d7('0x7')](_0x2ce3d7('0xe'),_0x42f4d7);})[_0x509629('0x1e')](function(_0xb12c70){const _0x342c3e=_0x509629;logger[_0x342c3e('0x7')](JSON['stringify'](_0xb12c70));});});},Migration['prototype'][_0x13494d('0x27')]=function(_0xa2e537,_0x22133e){const _0x4357f3=_0x13494d,_0x5c1093=this;this[_0x4357f3('0x14')]['enqueue'](function(){const _0x279cc3=_0x4357f3;return _0x5c1093['queryInterface'][_0x279cc3('0x27')](_0xa2e537,_0x22133e)[_0x279cc3('0xf')](function(){const _0x1f9a91=_0x279cc3;logger[_0x1f9a91('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x22133e,_0xa2e537);})['catch'](function(_0x4a4088){const _0x4a9a20=_0x279cc3;logger[_0x4a9a20('0x7')](util[_0x4a9a20('0x18')](_0x4a4088,{'showHidden':![],'depth':null}));});});},Migration[_0x13494d('0x24')][_0x13494d('0x12')]=function(_0x3633ca){const _0x3ce5ba=_0x13494d;this[_0x3ce5ba('0x14')][_0x3ce5ba('0x16')](function(){return _0x3633ca();});},module[_0x13494d('0x26')]={'up':function(_0x241ce2,_0x5a6362){return new Promise(function(_0x4c9d77){const _0x31ea39=a926_0x5865,_0x4f29bb=new Migration(_0x241ce2);_0x4f29bb[_0x31ea39('0x10')](_0x31ea39('0x1f')),_0x4f29bb[_0x31ea39('0x27')](_0x31ea39('0x1'),'interval'),_0x4f29bb[_0x31ea39('0x1b')](_0x31ea39('0x1a'),'type',{'type':_0x5a6362['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x4f29bb[_0x31ea39('0x27')](_0x31ea39('0x1a'),_0x31ea39('0x10')),_0x4f29bb['removeColumn']('dashboard_items',_0x31ea39('0x15')),_0x4f29bb[_0x31ea39('0x11')](_0x31ea39('0x1a'),'title',{'type':_0x5a6362[_0x31ea39('0x8')](0x14),'validate':{'len':[0x0,0x14]}}),_0x4f29bb[_0x31ea39('0x11')](_0x31ea39('0x1a'),_0x31ea39('0x25'),{'type':_0x5a6362[_0x31ea39('0x23')](_0x31ea39('0x5'))}),_0x4f29bb[_0x31ea39('0x11')]('sms_messages','secret',{'type':_0x5a6362[_0x31ea39('0x4')],'defaultValue':![]}),_0x4f29bb['addColumn'](_0x31ea39('0x2'),_0x31ea39('0xb'),{'type':_0x5a6362[_0x31ea39('0x8')],'defaultValue':_0x31ea39('0x20')}),_0x4f29bb[_0x31ea39('0x11')]('chat_websites',_0x31ea39('0x13'),{'type':_0x5a6362[_0x31ea39('0x8')],'defaultValue':_0x31ea39('0xc')}),_0x4f29bb['final'](_0x4c9d77);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.48.js b/server/migrations/2.0.48.js index 751105d..c142113 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a927_0x1449=['yes','queryInterface','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','final','/etc/asterisk/turn_xcally.conf','/etc/asterisk/rtp.conf','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;','finally','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','turnaddr','writeFileSync','Removed\x20column\x20%s\x20from\x20%s','then','inspect','out','enqueue','query','lodash','firstMsgDirection','appendFileSync','STRING','catch','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;','addColumn','settings','replace','tail','sms_interactions','sequelize','../config/logger','Added\x20column\x20%s\x20to\x20%s','users','exports','#include\x20\x22stun_xcally.conf\x22','removeColumn','/etc/asterisk/stun_xcally.conf','ENUM','readFileSync','info','changeColumn','rtcp_mux','stringify','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;',';\x20STUN\x20server\x20list\x0a','/etc/asterisk/res_stun_monitor.conf','prototype','turnpassword','migration','fax_interactions','[ice_host_candidates]',';\x20TURN\x20server\x20list\x0a','sequence','util','dropTable','utf8'];(function(_0xfb2574,_0x14499a){const _0x151433=function(_0x2cc7ed){while(--_0x2cc7ed){_0xfb2574['push'](_0xfb2574['shift']());}};_0x151433(++_0x14499a);}(a927_0x1449,0x127));const a927_0x1514=function(_0xfb2574,_0x14499a){_0xfb2574=_0xfb2574-0x0;let _0x151433=a927_0x1449[_0xfb2574];return _0x151433;};const _0x20e1ab=a927_0x1514;'use strict';const fs=require('fs'),util=require(_0x20e1ab('0x2c')),_=require(_0x20e1ab('0x9')),logger=require(_0x20e1ab('0x15'))(_0x20e1ab('0x27')),Sequence=function(){};Sequence[_0x20e1ab('0x25')][_0x20e1ab('0x7')]=function(_0x2cc7ed){const _0x47bcd2=_0x20e1ab;this[_0x47bcd2('0x12')]=this[_0x47bcd2('0x12')]?this[_0x47bcd2('0x12')][_0x47bcd2('0x38')](_0x2cc7ed):_0x2cc7ed();};const Migration=function(_0x10da33){const _0x2cd9ce=_0x20e1ab;this[_0x2cd9ce('0x30')]=_0x10da33,this[_0x2cd9ce('0x2b')]=new Sequence();};Migration[_0x20e1ab('0x25')][_0x20e1ab('0x1f')]=function(_0x42195c,_0x45e9d5,_0x2f4a5c){const _0x128b1a=_0x20e1ab,_0x918552=this;this[_0x128b1a('0x2b')][_0x128b1a('0x7')](function(){const _0x57c92d=_0x128b1a;return _0x918552[_0x57c92d('0x30')][_0x57c92d('0x1f')](_0x42195c,_0x45e9d5,_0x2f4a5c)[_0x57c92d('0x4')](function(){const _0x5ebb01=_0x57c92d;logger[_0x5ebb01('0x1e')](_0x5ebb01('0x32'),_0x45e9d5,_0x42195c);})['catch'](function(_0x18f9a0){const _0x2edb7e=_0x57c92d;logger[_0x2edb7e('0x1e')](JSON[_0x2edb7e('0x21')](_0x18f9a0));});});},Migration[_0x20e1ab('0x25')][_0x20e1ab('0xf')]=function(_0x1d9f71,_0x2a61a5,_0x279379){const _0x3fbbd8=this;this['sequence']['enqueue'](function(){const _0x7ef770=a927_0x1514;return _0x3fbbd8[_0x7ef770('0x30')][_0x7ef770('0xf')](_0x1d9f71,_0x2a61a5,_0x279379)[_0x7ef770('0x4')](function(){const _0x52561c=_0x7ef770;logger[_0x52561c('0x1e')](_0x52561c('0x16'),_0x2a61a5,_0x1d9f71);})[_0x7ef770('0xd')](function(_0x1b5260){const _0x460d66=_0x7ef770;logger[_0x460d66('0x1e')](JSON[_0x460d66('0x21')](_0x1b5260));});});},Migration[_0x20e1ab('0x25')][_0x20e1ab('0x2d')]=function(_0x2e1c1b){const _0x32233c=_0x20e1ab,_0x279cf1=this;this[_0x32233c('0x2b')][_0x32233c('0x7')](function(){const _0x40c31c=_0x32233c;return _0x279cf1[_0x40c31c('0x30')][_0x40c31c('0x2d')](_0x2e1c1b,{'force':!![]})[_0x40c31c('0x4')](function(){const _0x5a2fd2=_0x40c31c;logger[_0x5a2fd2('0x1e')]('table\x20dropped\x20%s',_0x2e1c1b);})[_0x40c31c('0xd')](function(_0x14220a){logger['info'](JSON['stringify'](_0x14220a));});});},Migration[_0x20e1ab('0x25')][_0x20e1ab('0x31')]=function(_0x3ac40e,_0x31dedf,_0x54c658){const _0x1b55ad=_0x20e1ab,_0x276db5=this;this['sequence'][_0x1b55ad('0x7')](function(){const _0x455d5f=_0x1b55ad;return _0x276db5['queryInterface'][_0x455d5f('0x31')](_0x3ac40e,_0x31dedf,{'indexName':_0x54c658})[_0x455d5f('0x4')](function(){const _0x2f2845=_0x455d5f;logger['info'](_0x2f2845('0x33'),_0x3ac40e,_0x31dedf['join'](','),_0x54c658);})[_0x455d5f('0xd')](function(_0x2854fa){const _0x365085=_0x455d5f;logger[_0x365085('0x1e')](JSON['stringify'](_0x2854fa));});});},Migration[_0x20e1ab('0x25')][_0x20e1ab('0x8')]=function(_0x5a4606){const _0x5dafee=_0x20e1ab,_0x41e672=this;this[_0x5dafee('0x2b')]['enqueue'](function(){const _0x38d59e=_0x5dafee;return _0x41e672[_0x38d59e('0x30')][_0x38d59e('0x14')][_0x38d59e('0x8')](_0x5a4606)[_0x38d59e('0x4')](function(){const _0x29bb91=_0x38d59e;logger[_0x29bb91('0x1e')]('query\x20%s',_0x5a4606);})['catch'](function(_0x531f0b){const _0x57cd35=_0x38d59e;logger[_0x57cd35('0x1e')](JSON[_0x57cd35('0x21')](_0x531f0b));});});},Migration['prototype'][_0x20e1ab('0x1a')]=function(_0x39e553,_0x9228d0){const _0x147d8a=_0x20e1ab,_0x126fcb=this;this['sequence'][_0x147d8a('0x7')](function(){const _0x564d7b=_0x147d8a;return _0x126fcb[_0x564d7b('0x30')][_0x564d7b('0x1a')](_0x39e553,_0x9228d0)['then'](function(){const _0x47df6e=_0x564d7b;logger[_0x47df6e('0x1e')](_0x47df6e('0x3'),_0x9228d0,_0x39e553);})[_0x564d7b('0xd')](function(_0x282c23){const _0x2ba539=_0x564d7b;logger[_0x2ba539('0x1e')](util[_0x2ba539('0x5')](_0x282c23,{'showHidden':![],'depth':null}));});});},Migration[_0x20e1ab('0x25')][_0x20e1ab('0x34')]=function(_0x1332c8){const _0x19607d=_0x20e1ab;this[_0x19607d('0x2b')][_0x19607d('0x7')](function(){return _0x1332c8();});},module[_0x20e1ab('0x18')]={'up':function(_0x2a6a7f,_0x4d8d01){return new Promise(function(_0x2a0a80){const _0x232647=a927_0x1514,_0x3eb24b=new Migration(_0x2a6a7f);_0x3eb24b['addColumn'](_0x232647('0x10'),_0x232647('0x1'),{'type':_0x4d8d01[_0x232647('0xc')]}),_0x3eb24b[_0x232647('0xf')](_0x232647('0x10'),'turnusername',{'type':_0x4d8d01[_0x232647('0xc')]}),_0x3eb24b[_0x232647('0xf')](_0x232647('0x10'),_0x232647('0x26'),{'type':_0x4d8d01[_0x232647('0xc')]}),_0x3eb24b['addColumn'](_0x232647('0x17'),_0x232647('0x20'),{'type':_0x4d8d01[_0x232647('0x1c')](_0x232647('0x2f'),'no'),'defaultValue':'no'}),_0x3eb24b[_0x232647('0x8')](_0x232647('0x0')),_0x3eb24b['addColumn'](_0x232647('0x13'),_0x232647('0xa'),{'type':_0x4d8d01[_0x232647('0x1c')]('in',_0x232647('0x6')),'defaultValue':'in','allowNull':![]}),_0x3eb24b[_0x232647('0x8')](_0x232647('0x37')),_0x3eb24b[_0x232647('0xf')]('mail_interactions','firstMsgDirection',{'type':_0x4d8d01[_0x232647('0x1c')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x3eb24b[_0x232647('0x8')](_0x232647('0x22')),_0x3eb24b[_0x232647('0xf')](_0x232647('0x28'),'firstMsgDirection',{'type':_0x4d8d01[_0x232647('0x1c')]('in',_0x232647('0x6')),'defaultValue':'in','allowNull':![]}),_0x3eb24b[_0x232647('0x8')](_0x232647('0xe'));try{fs['writeFileSync'](_0x232647('0x1b'),_0x232647('0x23'),{'encoding':_0x232647('0x2e')}),fs[_0x232647('0x2')](_0x232647('0x35'),_0x232647('0x2a'),{'encoding':_0x232647('0x2e')});let _0x1489d4=fs[_0x232647('0x1d')](_0x232647('0x36'),{'encoding':_0x232647('0x2e')});_0x1489d4=_[_0x232647('0x11')](_0x1489d4,_0x232647('0x29'),'#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]'),fs[_0x232647('0x2')](_0x232647('0x36'),_0x1489d4,{'encoding':'utf8'}),fs[_0x232647('0xb')](_0x232647('0x24'),_0x232647('0x19'),{'encoding':'utf8'});}catch(_0x4358af){logger[_0x232647('0x1e')](JSON[_0x232647('0x21')](_0x4358af));}_0x3eb24b[_0x232647('0x34')](_0x2a0a80);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.49.js b/server/migrations/2.0.49.js index cdc2066..8516eda 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a928_0x2f6c=['DATE','username','finally','agiafterat','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','voice_queues','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());','ENUM','final','changeColumn','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','Added\x20column\x20%s\x20to\x20%s','query','offlineMessageBody','stringify','table\x20dropped\x20%s','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','allowmessenger','smsMethod','dropTable','inspect','prototype','queryInterface','addIndex','classic','tail','cm_hopper_final','removeColumn','BOOLEAN','senderString','info','catch','STRING','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());','offlineMessageSubject','dialQueueProject2','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','then','Removed\x20column\x20%s\x20from\x20%s','New\x20offline\x20message\x20from\x20websiteName','enqueue','migration','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','sms_accounts','join','query\x20%s','../config/logger','password','classic+','basic','addColumn','sequelize','addIndex\x20%s\x20%s\x20%s','dialAgiAfterHangupClient'];(function(_0x5d0b3b,_0x2f6c5a){const _0x2b9016=function(_0x534453){while(--_0x534453){_0x5d0b3b['push'](_0x5d0b3b['shift']());}};_0x2b9016(++_0x2f6c5a);}(a928_0x2f6c,0xf3));const a928_0x2b90=function(_0x5d0b3b,_0x2f6c5a){_0x5d0b3b=_0x5d0b3b-0x0;let _0x2b9016=a928_0x2f6c[_0x5d0b3b];return _0x2b9016;};const _0x3535d4=a928_0x2b90;'use strict';const util=require('util'),logger=require(_0x3535d4('0x1d'))(_0x3535d4('0x18')),Sequence=function(){};Sequence[_0x3535d4('0x4')][_0x3535d4('0x17')]=function(_0x534453){const _0x291563=_0x3535d4;this['tail']=this[_0x291563('0x8')]?this[_0x291563('0x8')][_0x291563('0x27')](_0x534453):_0x534453();};const Migration=function(_0x1f2369){const _0x13e96a=_0x3535d4;this[_0x13e96a('0x5')]=_0x1f2369,this['sequence']=new Sequence();};Migration[_0x3535d4('0x4')][_0x3535d4('0x2e')]=function(_0x34217f,_0x5f28bf,_0x33539f){const _0x844e68=_0x3535d4,_0xe720da=this;this[_0x844e68('0x37')]['enqueue'](function(){const _0x22a982=_0x844e68;return _0xe720da[_0x22a982('0x5')][_0x22a982('0x2e')](_0x34217f,_0x5f28bf,_0x33539f)[_0x22a982('0x14')](function(){const _0x230e2f=_0x22a982;logger[_0x230e2f('0xd')](_0x230e2f('0x36'),_0x5f28bf,_0x34217f);})[_0x22a982('0xe')](function(_0x4bebb3){const _0x494e14=_0x22a982;logger[_0x494e14('0xd')](JSON[_0x494e14('0x33')](_0x4bebb3));});});},Migration['prototype'][_0x3535d4('0x21')]=function(_0x16ebb4,_0xf8b42f,_0x4b4534){const _0x54093f=_0x3535d4,_0x2b8bf3=this;this[_0x54093f('0x37')][_0x54093f('0x17')](function(){const _0x6ab47d=_0x54093f;return _0x2b8bf3[_0x6ab47d('0x5')][_0x6ab47d('0x21')](_0x16ebb4,_0xf8b42f,_0x4b4534)[_0x6ab47d('0x14')](function(){const _0x28380c=_0x6ab47d;logger['info'](_0x28380c('0x30'),_0xf8b42f,_0x16ebb4);})[_0x6ab47d('0xe')](function(_0x298a0a){logger['info'](JSON['stringify'](_0x298a0a));});});},Migration['prototype'][_0x3535d4('0x2')]=function(_0x4d12d4){const _0x276eb4=_0x3535d4,_0x20500d=this;this[_0x276eb4('0x37')][_0x276eb4('0x17')](function(){const _0x526147=_0x276eb4;return _0x20500d[_0x526147('0x5')][_0x526147('0x2')](_0x4d12d4,{'force':!![]})[_0x526147('0x14')](function(){const _0x533ee0=_0x526147;logger['info'](_0x533ee0('0x34'),_0x4d12d4);})[_0x526147('0xe')](function(_0x44930f){const _0x47e1a0=_0x526147;logger[_0x47e1a0('0xd')](JSON[_0x47e1a0('0x33')](_0x44930f));});});},Migration[_0x3535d4('0x4')][_0x3535d4('0x6')]=function(_0x115788,_0xf20474,_0x1e3a7f){const _0x249c31=_0x3535d4,_0x5421c2=this;this['sequence'][_0x249c31('0x17')](function(){const _0x18e8b7=_0x249c31;return _0x5421c2[_0x18e8b7('0x5')][_0x18e8b7('0x6')](_0x115788,_0xf20474,{'indexName':_0x1e3a7f})[_0x18e8b7('0x14')](function(){const _0x24cfd3=_0x18e8b7;logger[_0x24cfd3('0xd')](_0x24cfd3('0x23'),_0x115788,_0xf20474[_0x24cfd3('0x1b')](','),_0x1e3a7f);})[_0x18e8b7('0xe')](function(_0x47e990){const _0x2f868c=_0x18e8b7;logger[_0x2f868c('0xd')](JSON[_0x2f868c('0x33')](_0x47e990));});});},Migration[_0x3535d4('0x4')][_0x3535d4('0x31')]=function(_0x25afaa){const _0x1ff188=_0x3535d4,_0x300840=this;this['sequence'][_0x1ff188('0x17')](function(){const _0x3539b7=_0x1ff188;return _0x300840['queryInterface'][_0x3539b7('0x22')][_0x3539b7('0x31')](_0x25afaa)[_0x3539b7('0x14')](function(){const _0xcbc113=_0x3539b7;logger['info'](_0xcbc113('0x1c'),_0x25afaa);})[_0x3539b7('0xe')](function(_0x21e552){const _0x3c650=_0x3539b7;logger[_0x3c650('0xd')](JSON[_0x3c650('0x33')](_0x21e552));});});},Migration['prototype'][_0x3535d4('0xa')]=function(_0x3687b7,_0xc513b4){const _0x1ff73f=_0x3535d4,_0x2ffc43=this;this[_0x1ff73f('0x37')][_0x1ff73f('0x17')](function(){const _0x46822e=_0x1ff73f;return _0x2ffc43[_0x46822e('0x5')][_0x46822e('0xa')](_0x3687b7,_0xc513b4)[_0x46822e('0x14')](function(){const _0x21686b=_0x46822e;logger[_0x21686b('0xd')](_0x21686b('0x15'),_0xc513b4,_0x3687b7);})[_0x46822e('0xe')](function(_0x4bd2ce){const _0x3230c6=_0x46822e;logger['info'](util[_0x3230c6('0x3')](_0x4bd2ce,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3535d4('0x2d')]=function(_0xd958a1){const _0x2c7f9e=_0x3535d4;this[_0x2c7f9e('0x37')]['enqueue'](function(){return _0xd958a1();});},module[_0x3535d4('0x35')]={'up':function(_0x4b3468,_0x387c59){return new Promise(function(_0x5d825f){const _0x3de3b6=a928_0x2b90,_0x36d90a=new Migration(_0x4b3468);_0x36d90a[_0x3de3b6('0x21')](_0x3de3b6('0x1a'),_0x3de3b6('0x1'),{'type':_0x387c59[_0x3de3b6('0x2c')](_0x3de3b6('0x20'),_0x3de3b6('0x7'),_0x3de3b6('0x1f'))}),_0x36d90a['addColumn']('sms_accounts',_0x3de3b6('0x26'),{'type':_0x387c59[_0x3de3b6('0xf')]}),_0x36d90a[_0x3de3b6('0x21')](_0x3de3b6('0x1a'),_0x3de3b6('0x1e'),{'type':_0x387c59[_0x3de3b6('0xf')]}),_0x36d90a[_0x3de3b6('0x21')]('sms_accounts',_0x3de3b6('0xc'),{'type':_0x387c59[_0x3de3b6('0xf')]}),_0x36d90a[_0x3de3b6('0x21')](_0x3de3b6('0x1a'),'deliveryReport',{'type':_0x387c59[_0x3de3b6('0xb')],'defaultValue':![]}),_0x36d90a[_0x3de3b6('0x21')]('users',_0x3de3b6('0x0'),{'type':_0x387c59[_0x3de3b6('0xb')],'defaultValue':!![]}),_0x36d90a[_0x3de3b6('0x21')]('users','phoneBarOutboundProxy',{'type':_0x387c59[_0x3de3b6('0xf')]}),_0x36d90a[_0x3de3b6('0x21')]('chat_websites',_0x3de3b6('0x11'),{'type':_0x387c59[_0x3de3b6('0xf')],'defaultValue':_0x3de3b6('0x16')}),_0x36d90a['addColumn']('chat_websites',_0x3de3b6('0x32'),{'type':_0x387c59[_0x3de3b6('0xf')],'defaultValue':_0x3de3b6('0x13')}),_0x36d90a[_0x3de3b6('0x21')](_0x3de3b6('0x2a'),_0x3de3b6('0x12'),{'type':_0x387c59[_0x3de3b6('0xf')]}),_0x36d90a['addColumn'](_0x3de3b6('0x2a'),_0x3de3b6('0x24'),{'type':_0x387c59[_0x3de3b6('0xb')],'defaultValue':![]}),_0x36d90a[_0x3de3b6('0x21')]('voice_queues','dialAgiAfterHangupAgent',{'type':_0x387c59['BOOLEAN'],'defaultValue':![]}),_0x36d90a[_0x3de3b6('0x31')](_0x3de3b6('0x19')),_0x36d90a['query'](_0x3de3b6('0x10')),_0x36d90a[_0x3de3b6('0x31')]('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());'),_0x36d90a[_0x3de3b6('0x31')](_0x3de3b6('0x2f')),_0x36d90a[_0x3de3b6('0x31')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205'),_0x36d90a[_0x3de3b6('0x31')]('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());'),_0x36d90a[_0x3de3b6('0x31')](_0x3de3b6('0x29')),_0x36d90a[_0x3de3b6('0x31')](_0x3de3b6('0x2b')),_0x36d90a[_0x3de3b6('0x21')](_0x3de3b6('0x9'),_0x3de3b6('0x28'),{'type':_0x387c59[_0x3de3b6('0x25')]}),_0x36d90a[_0x3de3b6('0x2d')](_0x5d825f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.50.js b/server/migrations/2.0.50.js index 78449d8..a2587d7 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a929_0x35bf=['prototype','then','sms_messages','progressive','changeColumn','messageId','stringify','inspect','power','queryInterface','dropTable','join','query','final','predictive','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','STRING','info','exports','util','addColumn','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','enqueue','removeColumn','addIndex','../config/logger','catch','sequelize','preview','sequence','migration','tail'];(function(_0x5879eb,_0x35bfaf){const _0xa50090=function(_0x734860){while(--_0x734860){_0x5879eb['push'](_0x5879eb['shift']());}};_0xa50090(++_0x35bfaf);}(a929_0x35bf,0x124));const a929_0xa500=function(_0x5879eb,_0x35bfaf){_0x5879eb=_0x5879eb-0x0;let _0xa50090=a929_0x35bf[_0x5879eb];return _0xa50090;};const _0x23e915=a929_0xa500;'use strict';const util=require(_0x23e915('0x1')),logger=require(_0x23e915('0x7'))(_0x23e915('0xc')),Sequence=function(){};Sequence['prototype'][_0x23e915('0x4')]=function(_0x734860){const _0x20af54=_0x23e915;this[_0x20af54('0xd')]=this[_0x20af54('0xd')]?this[_0x20af54('0xd')]['finally'](_0x734860):_0x734860();};const Migration=function(_0x258233){const _0x1c8fef=_0x23e915;this['queryInterface']=_0x258233,this[_0x1c8fef('0xb')]=new Sequence();};Migration[_0x23e915('0xe')]['changeColumn']=function(_0x96e61,_0x3603ea,_0x369e49){const _0x2512f6=_0x23e915,_0x35968d=this;this[_0x2512f6('0xb')][_0x2512f6('0x4')](function(){const _0x3a0567=_0x2512f6;return _0x35968d[_0x3a0567('0x17')][_0x3a0567('0x12')](_0x96e61,_0x3603ea,_0x369e49)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3603ea,_0x96e61);})[_0x3a0567('0x8')](function(_0x448813){logger['info'](JSON['stringify'](_0x448813));});});},Migration['prototype'][_0x23e915('0x2')]=function(_0x3df713,_0x1b1b62,_0x528f2b){const _0x330b58=_0x23e915,_0x289162=this;this[_0x330b58('0xb')][_0x330b58('0x4')](function(){const _0x73fdcd=_0x330b58;return _0x289162[_0x73fdcd('0x17')][_0x73fdcd('0x2')](_0x3df713,_0x1b1b62,_0x528f2b)[_0x73fdcd('0xf')](function(){const _0x2dfc2d=_0x73fdcd;logger[_0x2dfc2d('0x21')](_0x2dfc2d('0x1e'),_0x1b1b62,_0x3df713);})[_0x73fdcd('0x8')](function(_0x21f916){const _0x202c72=_0x73fdcd;logger['info'](JSON[_0x202c72('0x14')](_0x21f916));});});},Migration[_0x23e915('0xe')][_0x23e915('0x18')]=function(_0x26f913){const _0x1b9bd9=_0x23e915,_0x3cbf1e=this;this[_0x1b9bd9('0xb')]['enqueue'](function(){const _0xc3375b=_0x1b9bd9;return _0x3cbf1e[_0xc3375b('0x17')]['dropTable'](_0x26f913,{'force':!![]})[_0xc3375b('0xf')](function(){const _0x55fed3=_0xc3375b;logger[_0x55fed3('0x21')](_0x55fed3('0x1d'),_0x26f913);})[_0xc3375b('0x8')](function(_0x25f09a){const _0x48abb2=_0xc3375b;logger[_0x48abb2('0x21')](JSON[_0x48abb2('0x14')](_0x25f09a));});});},Migration['prototype']['addIndex']=function(_0x1d3ab5,_0x1784a2,_0x14538a){const _0x1f429b=_0x23e915,_0x111fe5=this;this[_0x1f429b('0xb')][_0x1f429b('0x4')](function(){const _0x39fdc2=_0x1f429b;return _0x111fe5[_0x39fdc2('0x17')][_0x39fdc2('0x6')](_0x1d3ab5,_0x1784a2,{'indexName':_0x14538a})[_0x39fdc2('0xf')](function(){const _0x5932c4=_0x39fdc2;logger[_0x5932c4('0x21')](_0x5932c4('0x1f'),_0x1d3ab5,_0x1784a2[_0x5932c4('0x19')](','),_0x14538a);})['catch'](function(_0x1fdbe1){const _0x47c79f=_0x39fdc2;logger[_0x47c79f('0x21')](JSON[_0x47c79f('0x14')](_0x1fdbe1));});});},Migration[_0x23e915('0xe')][_0x23e915('0x1a')]=function(_0x3cd0ba){const _0x543b63=_0x23e915,_0x2feae9=this;this[_0x543b63('0xb')][_0x543b63('0x4')](function(){const _0x519f06=_0x543b63;return _0x2feae9[_0x519f06('0x17')][_0x519f06('0x9')]['query'](_0x3cd0ba)[_0x519f06('0xf')](function(){logger['info']('query\x20%s',_0x3cd0ba);})['catch'](function(_0x393c64){const _0x1f191a=_0x519f06;logger[_0x1f191a('0x21')](JSON['stringify'](_0x393c64));});});},Migration[_0x23e915('0xe')][_0x23e915('0x5')]=function(_0x409ee8,_0x2a6f37){const _0x22f569=_0x23e915,_0x1b964e=this;this[_0x22f569('0xb')][_0x22f569('0x4')](function(){const _0x2ee646=_0x22f569;return _0x1b964e['queryInterface']['removeColumn'](_0x409ee8,_0x2a6f37)[_0x2ee646('0xf')](function(){const _0x1f49b1=_0x2ee646;logger[_0x1f49b1('0x21')]('Removed\x20column\x20%s\x20from\x20%s',_0x2a6f37,_0x409ee8);})[_0x2ee646('0x8')](function(_0x1b8715){const _0x420a71=_0x2ee646;logger[_0x420a71('0x21')](util[_0x420a71('0x15')](_0x1b8715,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x23e915('0x1b')]=function(_0xc6a398){const _0x333b91=_0x23e915;this['sequence'][_0x333b91('0x4')](function(){return _0xc6a398();});},module[_0x23e915('0x0')]={'up':function(_0x4e7537,_0x53ee66){return new Promise(function(_0x34253f){const _0x2facc3=a929_0xa500,_0x391ad6=new Migration(_0x4e7537);_0x391ad6[_0x2facc3('0x12')](_0x2facc3('0x10'),'messageId',{'type':_0x53ee66[_0x2facc3('0x20')](0xbe)}),_0x391ad6[_0x2facc3('0x6')](_0x2facc3('0x10'),[_0x2facc3('0x13')],_0x2facc3('0x13')),_0x391ad6['changeColumn']('voice_queues','dialMethod',{'type':_0x53ee66['ENUM'](_0x2facc3('0xa'),_0x2facc3('0x11'),_0x2facc3('0x16'),_0x2facc3('0x1c'),'booked'),'defaultValue':_0x2facc3('0x11')}),_0x391ad6['query'](_0x2facc3('0x3')),_0x391ad6['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\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());'),_0x391ad6[_0x2facc3('0x1a')]('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());'),_0x391ad6[_0x2facc3('0x1b')](_0x34253f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.51.js b/server/migrations/2.0.51.js index 3584d8d..55b9e23 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a930_0x1203=['queryInterface','enqueue','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2714\x27,\x20\x27hangup\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\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());','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','interface','uniqueid','membername_interface','sms_interactions','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\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','skebby','Chat','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());','INTEGER','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());','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','ChatInternalMessageId','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','join','Added\x20column\x20%s\x20to\x20%s','InteractionId;','membername','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\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());','report_member','tail','then','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:11\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','cm_contacts','dropTable','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','DATE','note','addColumn','STRING','lastMsgAt','mail_interactions','final','cm_hopper_final','info','fax_interactions','openchannel_interactions','toLowerCase','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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','sequence','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','ChatGroupId','twilio','catch','cm_hopper_history','chat_interactions','exports','_interactions\x20t1,\x20(SELECT\x20','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());','out','chat_internal_messages','lastMsgDirection','type','util','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;','sms_accounts','stringify','addIndex','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());','../config/logger','migration','removeColumn','changeColumn','sequelize','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'];(function(_0x2056fb,_0x120320){const _0x1c12bc=function(_0x3530a1){while(--_0x3530a1){_0x2056fb['push'](_0x2056fb['shift']());}};_0x1c12bc(++_0x120320);}(a930_0x1203,0x155));const a930_0x1c12=function(_0x2056fb,_0x120320){_0x2056fb=_0x2056fb-0x0;let _0x1c12bc=a930_0x1203[_0x2056fb];return _0x1c12bc;};const _0x33d006=a930_0x1c12;'use strict';const util=require(_0x33d006('0x20')),logger=require(_0x33d006('0x26'))(_0x33d006('0x27')),Sequence=function(){};Sequence[_0x33d006('0x11')][_0x33d006('0x2d')]=function(_0x3530a1){const _0x27863e=_0x33d006;this[_0x27863e('0x48')]=this[_0x27863e('0x48')]?this['tail'][_0x27863e('0xf')](_0x3530a1):_0x3530a1();};const Migration=function(_0x443c94){const _0x1bb541=_0x33d006;this[_0x1bb541('0x2c')]=_0x443c94,this[_0x1bb541('0x12')]=new Sequence();};Migration[_0x33d006('0x11')][_0x33d006('0x29')]=function(_0x39eb96,_0x186a2b,_0x76e159){const _0x5b04f1=_0x33d006,_0x16b26f=this;this[_0x5b04f1('0x12')]['enqueue'](function(){const _0xb36696=_0x5b04f1;return _0x16b26f[_0xb36696('0x2c')][_0xb36696('0x29')](_0x39eb96,_0x186a2b,_0x76e159)['then'](function(){const _0x2e0812=_0xb36696;logger[_0x2e0812('0xa')](_0x2e0812('0xe'),_0x186a2b,_0x39eb96);})[_0xb36696('0x16')](function(_0x3f2b62){const _0x2b1281=_0xb36696;logger['info'](JSON[_0x2b1281('0x23')](_0x3f2b62));});});},Migration['prototype'][_0x33d006('0x4')]=function(_0x5ad9c2,_0x4aa288,_0x4c0ca5){const _0x471347=_0x33d006,_0x540489=this;this['sequence'][_0x471347('0x2d')](function(){const _0x5d4a9d=_0x471347;return _0x540489[_0x5d4a9d('0x2c')][_0x5d4a9d('0x4')](_0x5ad9c2,_0x4aa288,_0x4c0ca5)[_0x5d4a9d('0x49')](function(){const _0x7ef5c7=_0x5d4a9d;logger[_0x7ef5c7('0xa')](_0x7ef5c7('0x42'),_0x4aa288,_0x5ad9c2);})[_0x5d4a9d('0x16')](function(_0x5afeba){logger['info'](JSON['stringify'](_0x5afeba));});});},Migration['prototype'][_0x33d006('0x0')]=function(_0x3ee6ef){const _0x168a2d=_0x33d006,_0x495af1=this;this[_0x168a2d('0x12')][_0x168a2d('0x2d')](function(){const _0x5bb11b=_0x168a2d;return _0x495af1[_0x5bb11b('0x2c')][_0x5bb11b('0x0')](_0x3ee6ef,{'force':!![]})['then'](function(){const _0x4371bb=_0x5bb11b;logger[_0x4371bb('0xa')](_0x4371bb('0x4a'),_0x3ee6ef);})[_0x5bb11b('0x16')](function(_0x295ebb){const _0x47ebfe=_0x5bb11b;logger[_0x47ebfe('0xa')](JSON[_0x47ebfe('0x23')](_0x295ebb));});});},Migration[_0x33d006('0x11')][_0x33d006('0x24')]=function(_0x61a316,_0x8941c8,_0x118cda){const _0x592185=_0x33d006,_0x5428f0=this;this[_0x592185('0x12')][_0x592185('0x2d')](function(){const _0x3ed7ec=_0x592185;return _0x5428f0[_0x3ed7ec('0x2c')][_0x3ed7ec('0x24')](_0x61a316,_0x8941c8,{'indexName':_0x118cda})[_0x3ed7ec('0x49')](function(){const _0x1d8ca7=_0x3ed7ec;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x61a316,_0x8941c8[_0x1d8ca7('0x41')](','),_0x118cda);})[_0x3ed7ec('0x16')](function(_0x20d391){const _0x1777cb=_0x3ed7ec;logger[_0x1777cb('0xa')](JSON[_0x1777cb('0x23')](_0x20d391));});});},Migration[_0x33d006('0x11')][_0x33d006('0x36')]=function(_0x3c4a7a){const _0x56ea02=_0x33d006,_0x29f3b8=this;this[_0x56ea02('0x12')]['enqueue'](function(){const _0x377c3b=_0x56ea02;return _0x29f3b8[_0x377c3b('0x2c')][_0x377c3b('0x2a')]['query'](_0x3c4a7a)['then'](function(){const _0x34ca9c=_0x377c3b;logger[_0x34ca9c('0xa')]('query\x20%s',_0x3c4a7a);})[_0x377c3b('0x16')](function(_0x76882a){const _0x148d92=_0x377c3b;logger[_0x148d92('0xa')](JSON[_0x148d92('0x23')](_0x76882a));});});},Migration[_0x33d006('0x11')]['removeColumn']=function(_0x472047,_0x5176f0){const _0x2d67f6=_0x33d006,_0x1f1be6=this;this[_0x2d67f6('0x12')][_0x2d67f6('0x2d')](function(){const _0x42d4fc=_0x2d67f6;return _0x1f1be6['queryInterface'][_0x42d4fc('0x28')](_0x472047,_0x5176f0)[_0x42d4fc('0x49')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5176f0,_0x472047);})['catch'](function(_0x127054){logger['info'](util['inspect'](_0x127054,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x33d006('0x8')]=function(_0x110cea){const _0x21bfbd=_0x33d006;this[_0x21bfbd('0x12')][_0x21bfbd('0x2d')](function(){return _0x110cea();});},module[_0x33d006('0x19')]={'up':function(_0x472c5f,_0x2b8be5){return new Promise(function(_0x464f09){const _0x3072a4=a930_0x1c12,_0x19007e=new Migration(_0x472c5f);_0x19007e['addColumn'](_0x3072a4('0x1d'),_0x3072a4('0x3f'),{'type':_0x2b8be5['INTEGER']}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x1d'),_0x3072a4('0x14'),{'type':_0x2b8be5[_0x3072a4('0x3c')]}),_0x19007e[_0x3072a4('0x36')]('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'),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x18'),'lastMsgDirection',{'type':_0x2b8be5[_0x3072a4('0x45')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x18'),_0x3072a4('0x6'),{'type':_0x2b8be5[_0x3072a4('0x2')]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x7'),'lastMsgDirection',{'type':_0x2b8be5[_0x3072a4('0x45')]('in',_0x3072a4('0x1c')),'defaultValue':'in','allowNull':![]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x7'),_0x3072a4('0x6'),{'type':_0x2b8be5[_0x3072a4('0x2')]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x35'),_0x3072a4('0x1e'),{'type':_0x2b8be5[_0x3072a4('0x45')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0x35'),_0x3072a4('0x6'),{'type':_0x2b8be5[_0x3072a4('0x2')]}),_0x19007e['addColumn'](_0x3072a4('0xc'),_0x3072a4('0x1e'),{'type':_0x2b8be5['ENUM']('in',_0x3072a4('0x1c')),'defaultValue':'in','allowNull':![]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0xc'),_0x3072a4('0x6'),{'type':_0x2b8be5[_0x3072a4('0x2')]}),_0x19007e[_0x3072a4('0x4')]('fax_interactions','lastMsgDirection',{'type':_0x2b8be5[_0x3072a4('0x45')]('in',_0x3072a4('0x1c')),'defaultValue':'in','allowNull':![]}),_0x19007e[_0x3072a4('0x4')](_0x3072a4('0xb'),'lastMsgAt',{'type':_0x2b8be5[_0x3072a4('0x2')]});const _0x9fa354=[_0x3072a4('0x3a'),_0x3072a4('0x2f'),'Sms','Openchannel'];for(let _0x148049=0x0;_0x148049<_0x9fa354['length'];_0x148049++){_0x19007e[_0x3072a4('0x36')]('UPDATE\x20'+_0x9fa354[_0x148049][_0x3072a4('0xd')]()+_0x3072a4('0x1a')+_0x9fa354[_0x148049]+_0x3072a4('0x1')+_0x9fa354[_0x148049][_0x3072a4('0xd')]()+_0x3072a4('0x31')+_0x9fa354[_0x148049]+'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'+_0x9fa354[_0x148049]+_0x3072a4('0x40')+_0x9fa354[_0x148049]+_0x3072a4('0x43'));}_0x19007e['query'](_0x3072a4('0x21')),_0x19007e[_0x3072a4('0x29')](_0x3072a4('0x22'),_0x3072a4('0x1f'),{'type':_0x2b8be5[_0x3072a4('0x45')](_0x3072a4('0x15'),_0x3072a4('0x39'),'connectel')}),_0x19007e['addColumn']('report_call',_0x3072a4('0x3'),{'type':_0x2b8be5[_0x3072a4('0x5')]}),_0x19007e[_0x3072a4('0x24')](_0x3072a4('0x4c'),['phone'],'phone'),_0x19007e['addIndex'](_0x3072a4('0x9'),[_0x3072a4('0x33')],'uniqueid'),_0x19007e[_0x3072a4('0x24')](_0x3072a4('0x17'),[_0x3072a4('0x33')],'uniqueid'),_0x19007e[_0x3072a4('0x24')]('voice_recordings',['uniqueid'],_0x3072a4('0x33')),_0x19007e['addIndex'](_0x3072a4('0x47'),[_0x3072a4('0x44'),_0x3072a4('0x32')],_0x3072a4('0x34')),_0x19007e['query'](_0x3072a4('0x3e')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x2b')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x3d')),_0x19007e['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\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x13')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x4b')),_0x19007e['query'](_0x3072a4('0x3b')),_0x19007e[_0x3072a4('0x36')]('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());'),_0x19007e['query'](_0x3072a4('0x30')),_0x19007e['query'](_0x3072a4('0x37')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x1b')),_0x19007e['query'](_0x3072a4('0x25')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x38')),_0x19007e['query'](_0x3072a4('0x10')),_0x19007e['query'](_0x3072a4('0x46')),_0x19007e[_0x3072a4('0x36')](_0x3072a4('0x2e')),_0x19007e[_0x3072a4('0x8')](_0x464f09);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.52.js b/server/migrations/2.0.52.js index 5386564..812ecb2 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a931_0x5cdf=['queryInterface','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','sequelize','passwordResetAt','addColumn','#ffffff','billableseconds','inspect','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','connectel','DATE','removeColumn','query','finally','exports','sequence','final','passwordExpiresDays','enqueue','catch','Added\x20column\x20%s\x20to\x20%s','stringify','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','prototype','holdtime','callRecordingEncryption','addIndex','then','tools_canned_answers','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','INTEGER','table\x20dropped\x20%s','info','../config/logger','duration','background','skebby','tail','FaxAccountId','report_dial','type','users','changeColumn','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','settings','SmsAccountId','dashboard_items','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','twilio','dropTable','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','query\x20%s','#2196f3','util'];(function(_0x365e3a,_0x5cdf8c){const _0x21ed87=function(_0x16bf8d){while(--_0x16bf8d){_0x365e3a['push'](_0x365e3a['shift']());}};_0x21ed87(++_0x5cdf8c);}(a931_0x5cdf,0x159));const a931_0x21ed=function(_0x365e3a,_0x5cdf8c){_0x365e3a=_0x365e3a-0x0;let _0x21ed87=a931_0x5cdf[_0x365e3a];return _0x21ed87;};const _0x466424=a931_0x21ed;'use strict';const util=require(_0x466424('0x2e')),logger=require(_0x466424('0x19'))('migration'),Sequence=function(){};Sequence[_0x466424('0xe')][_0x466424('0x9')]=function(_0x16bf8d){const _0x454364=_0x466424;this[_0x454364('0x1d')]=this[_0x454364('0x1d')]?this[_0x454364('0x1d')][_0x454364('0x4')](_0x16bf8d):_0x16bf8d();};const Migration=function(_0x55ff9c){const _0x384b27=_0x466424;this['queryInterface']=_0x55ff9c,this[_0x384b27('0x6')]=new Sequence();};Migration[_0x466424('0xe')]['changeColumn']=function(_0x3dd1ef,_0x8e7aec,_0x1d1a4e){const _0x162e72=_0x466424,_0x383212=this;this[_0x162e72('0x6')][_0x162e72('0x9')](function(){const _0x437915=_0x162e72;return _0x383212[_0x437915('0x2f')][_0x437915('0x22')](_0x3dd1ef,_0x8e7aec,_0x1d1a4e)['then'](function(){const _0x3dc6b4=_0x437915;logger[_0x3dc6b4('0x18')](_0x3dc6b4('0x28'),_0x8e7aec,_0x3dd1ef);})[_0x437915('0xa')](function(_0x20acfd){logger['info'](JSON['stringify'](_0x20acfd));});});},Migration['prototype'][_0x466424('0x33')]=function(_0x36a0f4,_0x23dcab,_0x2e3937){const _0x2c2ac1=_0x466424,_0x170d01=this;this[_0x2c2ac1('0x6')][_0x2c2ac1('0x9')](function(){const _0xc2eb09=_0x2c2ac1;return _0x170d01[_0xc2eb09('0x2f')][_0xc2eb09('0x33')](_0x36a0f4,_0x23dcab,_0x2e3937)[_0xc2eb09('0x12')](function(){const _0x574e53=_0xc2eb09;logger[_0x574e53('0x18')](_0x574e53('0xb'),_0x23dcab,_0x36a0f4);})['catch'](function(_0x2a10c6){const _0x1d9e17=_0xc2eb09;logger[_0x1d9e17('0x18')](JSON[_0x1d9e17('0xc')](_0x2a10c6));});});},Migration[_0x466424('0xe')][_0x466424('0x2a')]=function(_0x57ea8a){const _0xdd2209=_0x466424,_0x28ff0f=this;this[_0xdd2209('0x6')][_0xdd2209('0x9')](function(){const _0x1e9f6d=_0xdd2209;return _0x28ff0f[_0x1e9f6d('0x2f')][_0x1e9f6d('0x2a')](_0x57ea8a,{'force':!![]})['then'](function(){const _0x441c77=_0x1e9f6d;logger[_0x441c77('0x18')](_0x441c77('0x17'),_0x57ea8a);})[_0x1e9f6d('0xa')](function(_0x17d260){const _0x4e5221=_0x1e9f6d;logger[_0x4e5221('0x18')](JSON['stringify'](_0x17d260));});});},Migration[_0x466424('0xe')][_0x466424('0x11')]=function(_0x586d93,_0x5a0b1a,_0xcdcdc4){const _0x150ea7=_0x466424,_0x2de5b4=this;this['sequence'][_0x150ea7('0x9')](function(){const _0x200e72=_0x150ea7;return _0x2de5b4[_0x200e72('0x2f')][_0x200e72('0x11')](_0x586d93,_0x5a0b1a,{'indexName':_0xcdcdc4})[_0x200e72('0x12')](function(){const _0x3236d0=_0x200e72;logger[_0x3236d0('0x18')](_0x3236d0('0x14'),_0x586d93,_0x5a0b1a['join'](','),_0xcdcdc4);})[_0x200e72('0xa')](function(_0x454fad){const _0x5af621=_0x200e72;logger[_0x5af621('0x18')](JSON['stringify'](_0x454fad));});});},Migration[_0x466424('0xe')][_0x466424('0x3')]=function(_0xe2a2b2){const _0x4faa7d=_0x466424,_0x5b8bba=this;this[_0x4faa7d('0x6')][_0x4faa7d('0x9')](function(){const _0x16a6c0=_0x4faa7d;return _0x5b8bba['queryInterface'][_0x16a6c0('0x31')]['query'](_0xe2a2b2)[_0x16a6c0('0x12')](function(){const _0x3968d4=_0x16a6c0;logger['info'](_0x3968d4('0x2c'),_0xe2a2b2);})[_0x16a6c0('0xa')](function(_0x364050){const _0x302e4a=_0x16a6c0;logger[_0x302e4a('0x18')](JSON['stringify'](_0x364050));});});},Migration[_0x466424('0xe')]['removeColumn']=function(_0x41090e,_0x560515){const _0x4ce8a1=_0x466424,_0x106b7d=this;this[_0x4ce8a1('0x6')][_0x4ce8a1('0x9')](function(){const _0x505dbd=_0x4ce8a1;return _0x106b7d[_0x505dbd('0x2f')][_0x505dbd('0x2')](_0x41090e,_0x560515)[_0x505dbd('0x12')](function(){const _0x301aef=_0x505dbd;logger[_0x301aef('0x18')](_0x301aef('0x15'),_0x560515,_0x41090e);})[_0x505dbd('0xa')](function(_0x52644e){const _0x3f419b=_0x505dbd;logger[_0x3f419b('0x18')](util[_0x3f419b('0x36')](_0x52644e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x466424('0x7')]=function(_0x5bf8ed){const _0x5033f2=_0x466424;this[_0x5033f2('0x6')][_0x5033f2('0x9')](function(){return _0x5bf8ed();});},module[_0x466424('0x5')]={'up':function(_0x31f43,_0x31501b){return new Promise(function(_0x3253ab){const _0x5b6068=a931_0x21ed,_0x1186eb=new Migration(_0x31f43);_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x24'),_0x5b6068('0x10'),{'type':_0x31501b['BOOLEAN'],'defaultValue':![]}),_0x1186eb['addColumn'](_0x5b6068('0x24'),_0x5b6068('0x8'),{'type':_0x31501b[_0x5b6068('0x16')](0xb),'defaultValue':0x5a}),_0x1186eb[_0x5b6068('0x3')](_0x5b6068('0x30')),_0x1186eb['addColumn'](_0x5b6068('0x13'),'MailAccountId',{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x13'),_0x5b6068('0x1e'),{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb[_0x5b6068('0x33')]('tools_canned_answers',_0x5b6068('0x25'),{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb[_0x5b6068('0x33')]('tools_canned_answers','OpenchannelAccountId',{'type':_0x31501b['INTEGER']}),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x13'),'ChatWebsiteId',{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb[_0x5b6068('0x3')](_0x5b6068('0xd')),_0x1186eb['query'](_0x5b6068('0x37')),_0x1186eb[_0x5b6068('0x3')]('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'),_0x1186eb[_0x5b6068('0x3')](_0x5b6068('0x2b')),_0x1186eb[_0x5b6068('0x3')]('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'),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x21'),_0x5b6068('0x32'),{'type':_0x31501b[_0x5b6068('0x1')],'defaultValue':null}),_0x1186eb[_0x5b6068('0x3')](_0x5b6068('0x23')),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x1f'),_0x5b6068('0x1a'),{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb['addColumn']('report_dial',_0x5b6068('0xf'),{'type':_0x31501b['INTEGER']}),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x1f'),_0x5b6068('0x35'),{'type':_0x31501b[_0x5b6068('0x16')]}),_0x1186eb[_0x5b6068('0x22')]('sms_accounts',_0x5b6068('0x20'),{'type':_0x31501b['ENUM'](_0x5b6068('0x29'),_0x5b6068('0x1c'),_0x5b6068('0x0'),'clicksend')}),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x26'),_0x5b6068('0x1b'),{'type':_0x31501b[_0x5b6068('0x27')],'allowNull':![],'defaultValue':_0x5b6068('0x34'),'validate':{'notEmpty':!![]}}),_0x1186eb['addColumn'](_0x5b6068('0x26'),'foreground',{'type':_0x31501b[_0x5b6068('0x27')],'allowNull':![],'defaultValue':_0x5b6068('0x2d'),'validate':{'notEmpty':!![]}}),_0x1186eb[_0x5b6068('0x33')](_0x5b6068('0x26'),'link',{'type':_0x31501b[_0x5b6068('0x27')]}),_0x1186eb[_0x5b6068('0x7')](_0x3253ab);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.53.js b/server/migrations/2.0.53.js index 6528be2..d11f54c 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a932_0x265b=['skebby','addIndex\x20%s\x20%s\x20%s','addColumn','addIndex','prototype','description','sequence','query\x20%s','inspect','xls','queryInterface','users','xlsx','dropTable','analytics_extracted_reports','tail','cm_contacts','stringify','catch','type','final','query','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','clicksend','ENUM','STRING','sms_accounts','connectel','exports','then','sequelize','csv','enqueue','../config/logger','insecure','removeColumn','changeColumn','plivo','pdf','TEXT','finally','output','info','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','twilio','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'];(function(_0x37e3e3,_0x265b37){const _0x4400d3=function(_0x22c0fe){while(--_0x22c0fe){_0x37e3e3['push'](_0x37e3e3['shift']());}};_0x4400d3(++_0x265b37);}(a932_0x265b,0x7e));const a932_0x4400=function(_0x37e3e3,_0x265b37){_0x37e3e3=_0x37e3e3-0x0;let _0x4400d3=a932_0x265b[_0x37e3e3];return _0x4400d3;};const _0x2559c1=a932_0x4400;'use strict';const util=require('util'),logger=require(_0x2559c1('0x1'))('migration'),Sequence=function(){};Sequence['prototype'][_0x2559c1('0x0')]=function(_0x22c0fe){const _0x36beeb=_0x2559c1;this[_0x36beeb('0x1e')]=this['tail']?this[_0x36beeb('0x1e')][_0x36beeb('0x8')](_0x22c0fe):_0x22c0fe();};const Migration=function(_0x3f1ab4){const _0x3865bc=_0x2559c1;this['queryInterface']=_0x3f1ab4,this[_0x3865bc('0x15')]=new Sequence();};Migration[_0x2559c1('0x13')][_0x2559c1('0x4')]=function(_0x3e49fc,_0x51addb,_0x3be63c){const _0x365ba1=_0x2559c1,_0x41a148=this;this[_0x365ba1('0x15')]['enqueue'](function(){const _0x3c0d84=_0x365ba1;return _0x41a148['queryInterface'][_0x3c0d84('0x4')](_0x3e49fc,_0x51addb,_0x3be63c)[_0x3c0d84('0x2c')](function(){const _0x2ab075=_0x3c0d84;logger[_0x2ab075('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x51addb,_0x3e49fc);})[_0x3c0d84('0x21')](function(_0x2bfc94){logger['info'](JSON['stringify'](_0x2bfc94));});});},Migration[_0x2559c1('0x13')]['addColumn']=function(_0x5e6b7a,_0x5866dd,_0x4f7450){const _0x3ffe5f=_0x2559c1,_0x23516e=this;this[_0x3ffe5f('0x15')][_0x3ffe5f('0x0')](function(){const _0x267ae5=_0x3ffe5f;return _0x23516e[_0x267ae5('0x19')][_0x267ae5('0x11')](_0x5e6b7a,_0x5866dd,_0x4f7450)[_0x267ae5('0x2c')](function(){const _0xecf148=_0x267ae5;logger[_0xecf148('0xa')](_0xecf148('0xc'),_0x5866dd,_0x5e6b7a);})['catch'](function(_0xd6c5ab){const _0x46206b=_0x267ae5;logger[_0x46206b('0xa')](JSON[_0x46206b('0x20')](_0xd6c5ab));});});},Migration['prototype'][_0x2559c1('0x1c')]=function(_0xe556c6){const _0x1162c7=_0x2559c1,_0x3b0457=this;this[_0x1162c7('0x15')][_0x1162c7('0x0')](function(){const _0x5e21dd=_0x1162c7;return _0x3b0457[_0x5e21dd('0x19')][_0x5e21dd('0x1c')](_0xe556c6,{'force':!![]})[_0x5e21dd('0x2c')](function(){const _0x59c360=_0x5e21dd;logger[_0x59c360('0xa')](_0x59c360('0xb'),_0xe556c6);})['catch'](function(_0x5bf6c7){const _0x2f6ee1=_0x5e21dd;logger['info'](JSON[_0x2f6ee1('0x20')](_0x5bf6c7));});});},Migration[_0x2559c1('0x13')]['addIndex']=function(_0x2310d5,_0x3c9c1d,_0x51b180){const _0x3bb7ff=_0x2559c1,_0x1be1ac=this;this[_0x3bb7ff('0x15')][_0x3bb7ff('0x0')](function(){const _0x4db63f=_0x3bb7ff;return _0x1be1ac[_0x4db63f('0x19')][_0x4db63f('0x12')](_0x2310d5,_0x3c9c1d,{'indexName':_0x51b180})[_0x4db63f('0x2c')](function(){const _0x2e8c4f=_0x4db63f;logger[_0x2e8c4f('0xa')](_0x2e8c4f('0x10'),_0x2310d5,_0x3c9c1d['join'](','),_0x51b180);})[_0x4db63f('0x21')](function(_0x4e8cb0){logger['info'](JSON['stringify'](_0x4e8cb0));});});},Migration[_0x2559c1('0x13')]['query']=function(_0x2ca4cf){const _0x105824=_0x2559c1,_0x1465fb=this;this[_0x105824('0x15')][_0x105824('0x0')](function(){const _0x1a5eb7=_0x105824;return _0x1465fb['queryInterface'][_0x1a5eb7('0x2d')][_0x1a5eb7('0x24')](_0x2ca4cf)[_0x1a5eb7('0x2c')](function(){const _0x3a63d6=_0x1a5eb7;logger['info'](_0x3a63d6('0x16'),_0x2ca4cf);})[_0x1a5eb7('0x21')](function(_0x162a4f){const _0x690ffa=_0x1a5eb7;logger['info'](JSON[_0x690ffa('0x20')](_0x162a4f));});});},Migration[_0x2559c1('0x13')]['removeColumn']=function(_0x308921,_0x5a3919){const _0x1b15db=_0x2559c1,_0x3aa0cc=this;this['sequence'][_0x1b15db('0x0')](function(){const _0x4f3b28=_0x1b15db;return _0x3aa0cc[_0x4f3b28('0x19')][_0x4f3b28('0x3')](_0x308921,_0x5a3919)[_0x4f3b28('0x2c')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5a3919,_0x308921);})[_0x4f3b28('0x21')](function(_0x4f0a87){const _0x33e655=_0x4f3b28;logger[_0x33e655('0xa')](util[_0x33e655('0x17')](_0x4f0a87,{'showHidden':![],'depth':null}));});});},Migration[_0x2559c1('0x13')]['final']=function(_0x34d046){const _0x570b90=_0x2559c1;this[_0x570b90('0x15')][_0x570b90('0x0')](function(){return _0x34d046();});},module[_0x2559c1('0x2b')]={'up':function(_0x47bc00,_0x40f3cc){return new Promise(function(_0xf835d7){const _0x4a1891=a932_0x4400,_0x3a51ad=new Migration(_0x47bc00);_0x3a51ad[_0x4a1891('0x4')](_0x4a1891('0x1f'),_0x4a1891('0x14'),{'type':_0x40f3cc[_0x4a1891('0x7')]}),_0x3a51ad['changeColumn'](_0x4a1891('0x29'),_0x4a1891('0x22'),{'type':_0x40f3cc[_0x4a1891('0x27')](_0x4a1891('0xd'),_0x4a1891('0xf'),_0x4a1891('0x2a'),_0x4a1891('0x26'),_0x4a1891('0x5'))}),_0x3a51ad[_0x4a1891('0x4')](_0x4a1891('0x1d'),_0x4a1891('0x9'),{'type':_0x40f3cc['ENUM'](_0x4a1891('0x2e'),_0x4a1891('0x6'),_0x4a1891('0x18'),_0x4a1891('0x1b')),'allowNull':![],'defaultValue':_0x4a1891('0x2e')}),_0x3a51ad['query'](_0x4a1891('0xe')),_0x3a51ad[_0x4a1891('0x4')](_0x4a1891('0x1d'),_0x4a1891('0x9'),{'type':_0x40f3cc[_0x4a1891('0x27')](_0x4a1891('0x2e'),_0x4a1891('0x6'),_0x4a1891('0x1b')),'allowNull':![],'defaultValue':_0x4a1891('0x2e')}),_0x3a51ad[_0x4a1891('0x24')](_0x4a1891('0x25')),_0x3a51ad[_0x4a1891('0x4')](_0x4a1891('0x1a'),_0x4a1891('0x2'),{'type':_0x40f3cc[_0x4a1891('0x28')],'allowNull':!![]}),_0x3a51ad[_0x4a1891('0x23')](_0xf835d7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.54.js b/server/migrations/2.0.54.js index 7a60c36..eedee08 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a933_0x5e98=['migration','signature','sequelize','BOOLEAN','output','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','enqueue','util','INTEGER','renameColumn','finally','pdf','mail_accounts','fontSize','xlsx','removeColumn','stringify','sequence','catch','Added\x20column\x20%s\x20to\x20%s','prototype','Arial,Helvetica,sans-serif','xls','inspect','tools_schedules','query','csv','changeColumn','../config/logger','info','join','query\x20%s','queryInterface','chat_websites','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','STRING','markAsUnread','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','then','timezone','textColor','addIndex','UNSIGNED','addColumn','final','tail','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','#ffffff'];(function(_0x2b80ec,_0x5e98de){const _0x378354=function(_0xf77cef){while(--_0xf77cef){_0x2b80ec['push'](_0x2b80ec['shift']());}};_0x378354(++_0x5e98de);}(a933_0x5e98,0x1f3));const a933_0x3783=function(_0x2b80ec,_0x5e98de){_0x2b80ec=_0x2b80ec-0x0;let _0x378354=a933_0x5e98[_0x2b80ec];return _0x378354;};const _0x523c5a=a933_0x3783;'use strict';const util=require(_0x523c5a('0x8')),logger=require(_0x523c5a('0x1d'))(_0x523c5a('0x1')),Sequence=function(){};Sequence[_0x523c5a('0x15')][_0x523c5a('0x7')]=function(_0xf77cef){const _0x355e9c=_0x523c5a;this[_0x355e9c('0x2f')]=this['tail']?this[_0x355e9c('0x2f')][_0x355e9c('0xb')](_0xf77cef):_0xf77cef();};const Migration=function(_0x13ba6f){const _0x528149=_0x523c5a;this['queryInterface']=_0x13ba6f,this[_0x528149('0x12')]=new Sequence();};Migration['prototype'][_0x523c5a('0x1c')]=function(_0x1bda2e,_0x4a91b8,_0x5df258){const _0x5f2e55=_0x523c5a,_0x1a7aa4=this;this[_0x5f2e55('0x12')]['enqueue'](function(){const _0x196c6c=_0x5f2e55;return _0x1a7aa4[_0x196c6c('0x21')][_0x196c6c('0x1c')](_0x1bda2e,_0x4a91b8,_0x5df258)['then'](function(){const _0x36289e=_0x196c6c;logger[_0x36289e('0x1e')](_0x36289e('0x31'),_0x4a91b8,_0x1bda2e);})['catch'](function(_0x90e636){const _0x179bf0=_0x196c6c;logger[_0x179bf0('0x1e')](JSON[_0x179bf0('0x11')](_0x90e636));});});},Migration[_0x523c5a('0x15')][_0x523c5a('0x2d')]=function(_0x13baa6,_0xd326a3,_0x31a238){const _0xb283c2=_0x523c5a,_0x518210=this;this[_0xb283c2('0x12')][_0xb283c2('0x7')](function(){const _0x5f3d0e=_0xb283c2;return _0x518210['queryInterface']['addColumn'](_0x13baa6,_0xd326a3,_0x31a238)[_0x5f3d0e('0x28')](function(){const _0x428fbd=_0x5f3d0e;logger['info'](_0x428fbd('0x14'),_0xd326a3,_0x13baa6);})[_0x5f3d0e('0x13')](function(_0x4fa63b){const _0x7802de=_0x5f3d0e;logger[_0x7802de('0x1e')](JSON[_0x7802de('0x11')](_0x4fa63b));});});},Migration[_0x523c5a('0x15')]['dropTable']=function(_0x3b914f){const _0x50071a=_0x523c5a,_0xe6afa4=this;this['sequence'][_0x50071a('0x7')](function(){const _0x2c84af=_0x50071a;return _0xe6afa4[_0x2c84af('0x21')][_0x2c84af('0x30')](_0x3b914f,{'force':!![]})[_0x2c84af('0x28')](function(){const _0x197a01=_0x2c84af;logger['info'](_0x197a01('0x24'),_0x3b914f);})[_0x2c84af('0x13')](function(_0x486953){const _0x21afed=_0x2c84af;logger[_0x21afed('0x1e')](JSON[_0x21afed('0x11')](_0x486953));});});},Migration[_0x523c5a('0x15')][_0x523c5a('0x2b')]=function(_0x360524,_0x48d6d4,_0xb69c02){const _0x2e137a=_0x523c5a,_0x114898=this;this['sequence'][_0x2e137a('0x7')](function(){const _0xba6554=_0x2e137a;return _0x114898[_0xba6554('0x21')][_0xba6554('0x2b')](_0x360524,_0x48d6d4,{'indexName':_0xb69c02})[_0xba6554('0x28')](function(){const _0x2d1a86=_0xba6554;logger[_0x2d1a86('0x1e')]('addIndex\x20%s\x20%s\x20%s',_0x360524,_0x48d6d4[_0x2d1a86('0x1f')](','),_0xb69c02);})['catch'](function(_0x23594d){const _0x111e5b=_0xba6554;logger[_0x111e5b('0x1e')](JSON[_0x111e5b('0x11')](_0x23594d));});});},Migration[_0x523c5a('0x15')][_0x523c5a('0x1a')]=function(_0x32f69f){const _0x1f5f05=_0x523c5a,_0x11606d=this;this[_0x1f5f05('0x12')]['enqueue'](function(){const _0xdcb1b2=_0x1f5f05;return _0x11606d[_0xdcb1b2('0x21')][_0xdcb1b2('0x3')][_0xdcb1b2('0x1a')](_0x32f69f)[_0xdcb1b2('0x28')](function(){const _0x4636a5=_0xdcb1b2;logger[_0x4636a5('0x1e')](_0x4636a5('0x20'),_0x32f69f);})['catch'](function(_0x4232aa){const _0x12b4cf=_0xdcb1b2;logger[_0x12b4cf('0x1e')](JSON[_0x12b4cf('0x11')](_0x4232aa));});});},Migration[_0x523c5a('0x15')]['removeColumn']=function(_0x3307ee,_0x1e689f){const _0xd7ff39=this;this['sequence']['enqueue'](function(){const _0x515d04=a933_0x3783;return _0xd7ff39[_0x515d04('0x21')][_0x515d04('0x10')](_0x3307ee,_0x1e689f)[_0x515d04('0x28')](function(){const _0x1ddd56=_0x515d04;logger[_0x1ddd56('0x1e')]('Removed\x20column\x20%s\x20from\x20%s',_0x1e689f,_0x3307ee);})[_0x515d04('0x13')](function(_0x3e2ffb){const _0x3b1be3=_0x515d04;logger[_0x3b1be3('0x1e')](util[_0x3b1be3('0x18')](_0x3e2ffb,{'showHidden':![],'depth':null}));});});},Migration[_0x523c5a('0x15')][_0x523c5a('0xa')]=function(_0x504929,_0x1f0159,_0x5158f9){const _0x5c7d6f=_0x523c5a,_0x49cd64=this;this['sequence'][_0x5c7d6f('0x7')](function(){const _0x489ccc=_0x5c7d6f;return _0x49cd64[_0x489ccc('0x21')][_0x489ccc('0xa')](_0x504929,_0x1f0159,_0x5158f9)[_0x489ccc('0x28')](function(){const _0x5363f6=_0x489ccc;logger[_0x5363f6('0x1e')](_0x5363f6('0x23'),_0x1f0159,_0x5158f9,_0x504929);})['catch'](function(_0x542f6d){const _0x3e6a7a=_0x489ccc;logger[_0x3e6a7a('0x1e')](util[_0x3e6a7a('0x18')](_0x542f6d,{'showHidden':![],'depth':null}));});});},Migration[_0x523c5a('0x15')][_0x523c5a('0x2e')]=function(_0x1eb7c7){const _0x376d13=_0x523c5a;this[_0x376d13('0x12')][_0x376d13('0x7')](function(){return _0x1eb7c7();});},module['exports']={'up':function(_0x1c6b68,_0x50ef5e){return new Promise(function(_0x374a61){const _0xfa0e49=a933_0x3783,_0x25d2e9=new Migration(_0x1c6b68);_0x25d2e9[_0xfa0e49('0x2d')]('chat_websites',_0xfa0e49('0x2a'),{'type':_0x50ef5e[_0xfa0e49('0x25')],'allowNull':![],'defaultValue':_0xfa0e49('0x0'),'validate':{'notEmpty':!![]}}),_0x25d2e9[_0xfa0e49('0x2d')](_0xfa0e49('0x22'),_0xfa0e49('0xe'),{'type':_0x50ef5e[_0xfa0e49('0x9')],'defaultValue':0xf}),_0x25d2e9[_0xfa0e49('0x2d')](_0xfa0e49('0x22'),_0xfa0e49('0x29'),{'type':_0x50ef5e[_0xfa0e49('0x25')]}),_0x25d2e9[_0xfa0e49('0x1a')](_0xfa0e49('0x6')),_0x25d2e9['query'](_0xfa0e49('0x27')),_0x25d2e9[_0xfa0e49('0x1a')]('UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL'),_0x25d2e9[_0xfa0e49('0x1c')](_0xfa0e49('0x19'),_0xfa0e49('0x5'),{'type':_0x50ef5e['ENUM'](_0xfa0e49('0x1b'),'pdf',_0xfa0e49('0x17'),_0xfa0e49('0xf')),'allowNull':![],'defaultValue':'csv'}),_0x25d2e9['query']('UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x25d2e9[_0xfa0e49('0x1c')](_0xfa0e49('0x19'),_0xfa0e49('0x5'),{'type':_0x50ef5e['ENUM'](_0xfa0e49('0x1b'),_0xfa0e49('0xc'),'xlsx'),'allowNull':![],'defaultValue':_0xfa0e49('0x1b')}),_0x25d2e9[_0xfa0e49('0x2d')](_0xfa0e49('0xd'),_0xfa0e49('0x26'),{'type':_0x50ef5e[_0xfa0e49('0x4')],'defaultValue':![]}),_0x25d2e9[_0xfa0e49('0x2d')](_0xfa0e49('0xd'),'fontFamily',{'type':_0x50ef5e['STRING'],'allowNull':![],'defaultValue':_0xfa0e49('0x16')}),_0x25d2e9[_0xfa0e49('0x2d')](_0xfa0e49('0xd'),'fontSize',{'type':_0x50ef5e[_0xfa0e49('0x9')](0x2)[_0xfa0e49('0x2c')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x25d2e9[_0xfa0e49('0xa')](_0xfa0e49('0xd'),_0xfa0e49('0x2'),'template'),_0x25d2e9[_0xfa0e49('0x2e')](_0x374a61);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.55.js b/server/migrations/2.0.55.js index d972781..3811038 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a934_0x263a=['dropTable','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());','query','authId','sequence','removeColumn','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','prototype','util','catch','tail','exports','info','sms_accounts','join','inspect','then','../config/logger','addIndex\x20%s\x20%s\x20%s','stringify','renameColumn','enqueue','changeColumn','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','addColumn','queryInterface'];(function(_0x4a1489,_0x263a02){const _0x1f9022=function(_0xcba00f){while(--_0xcba00f){_0x4a1489['push'](_0x4a1489['shift']());}};_0x1f9022(++_0x263a02);}(a934_0x263a,0xa6));const a934_0x1f90=function(_0x4a1489,_0x263a02){_0x4a1489=_0x4a1489-0x0;let _0x1f9022=a934_0x263a[_0x4a1489];return _0x1f9022;};const _0x345825=a934_0x1f90;'use strict';const util=require(_0x345825('0x18')),logger=require(_0x345825('0x3'))('migration'),Sequence=function(){};Sequence[_0x345825('0x17')][_0x345825('0x7')]=function(_0xcba00f){const _0x2526ea=_0x345825;this[_0x2526ea('0x1a')]=this['tail']?this[_0x2526ea('0x1a')]['finally'](_0xcba00f):_0xcba00f();};const Migration=function(_0x32793b){const _0x2641d0=_0x345825;this[_0x2641d0('0xd')]=_0x32793b,this[_0x2641d0('0x12')]=new Sequence();};Migration[_0x345825('0x17')][_0x345825('0x8')]=function(_0x5180ad,_0x28eeb7,_0x46814d){const _0x26c351=_0x345825,_0x17442e=this;this[_0x26c351('0x12')][_0x26c351('0x7')](function(){const _0x5874b1=_0x26c351;return _0x17442e[_0x5874b1('0xd')][_0x5874b1('0x8')](_0x5180ad,_0x28eeb7,_0x46814d)[_0x5874b1('0x2')](function(){const _0x54ce6f=_0x5874b1;logger[_0x54ce6f('0x1c')](_0x54ce6f('0x15'),_0x28eeb7,_0x5180ad);})[_0x5874b1('0x19')](function(_0x58b9b6){const _0x577b2c=_0x5874b1;logger[_0x577b2c('0x1c')](JSON[_0x577b2c('0x5')](_0x58b9b6));});});},Migration['prototype'][_0x345825('0xc')]=function(_0x2ef5fb,_0x41ef6f,_0x291d61){const _0x1fdff8=_0x345825,_0x54cd76=this;this[_0x1fdff8('0x12')][_0x1fdff8('0x7')](function(){const _0x276a40=_0x1fdff8;return _0x54cd76[_0x276a40('0xd')][_0x276a40('0xc')](_0x2ef5fb,_0x41ef6f,_0x291d61)[_0x276a40('0x2')](function(){const _0x57f753=_0x276a40;logger[_0x57f753('0x1c')]('Added\x20column\x20%s\x20to\x20%s',_0x41ef6f,_0x2ef5fb);})[_0x276a40('0x19')](function(_0x59a854){const _0x35d524=_0x276a40;logger[_0x35d524('0x1c')](JSON['stringify'](_0x59a854));});});},Migration[_0x345825('0x17')][_0x345825('0xe')]=function(_0xd65aae){const _0x19e39c=_0x345825,_0x234eaf=this;this['sequence'][_0x19e39c('0x7')](function(){const _0x42d1f9=_0x19e39c;return _0x234eaf[_0x42d1f9('0xd')][_0x42d1f9('0xe')](_0xd65aae,{'force':!![]})[_0x42d1f9('0x2')](function(){const _0x28143c=_0x42d1f9;logger[_0x28143c('0x1c')](_0x28143c('0x16'),_0xd65aae);})['catch'](function(_0x1bbecc){const _0x2963e7=_0x42d1f9;logger[_0x2963e7('0x1c')](JSON[_0x2963e7('0x5')](_0x1bbecc));});});},Migration[_0x345825('0x17')][_0x345825('0xb')]=function(_0x26889b,_0x425d60,_0x4128e8){const _0x98e47a=_0x345825,_0x51ed44=this;this[_0x98e47a('0x12')]['enqueue'](function(){const _0x537862=_0x98e47a;return _0x51ed44['queryInterface']['addIndex'](_0x26889b,_0x425d60,{'indexName':_0x4128e8})[_0x537862('0x2')](function(){const _0x239024=_0x537862;logger[_0x239024('0x1c')](_0x239024('0x4'),_0x26889b,_0x425d60[_0x239024('0x0')](','),_0x4128e8);})[_0x537862('0x19')](function(_0x5f26b1){const _0x2e2cc2=_0x537862;logger[_0x2e2cc2('0x1c')](JSON[_0x2e2cc2('0x5')](_0x5f26b1));});});},Migration[_0x345825('0x17')]['query']=function(_0x352b07){const _0x2a818b=_0x345825,_0x11f3df=this;this['sequence'][_0x2a818b('0x7')](function(){const _0x3507ee=_0x2a818b;return _0x11f3df[_0x3507ee('0xd')][_0x3507ee('0x14')][_0x3507ee('0x10')](_0x352b07)[_0x3507ee('0x2')](function(){const _0x4cf074=_0x3507ee;logger[_0x4cf074('0x1c')]('query\x20%s',_0x352b07);})['catch'](function(_0x1cc375){const _0x449100=_0x3507ee;logger[_0x449100('0x1c')](JSON[_0x449100('0x5')](_0x1cc375));});});},Migration['prototype'][_0x345825('0x13')]=function(_0x568d36,_0xbc33a2){const _0x2d5b26=_0x345825,_0x5ad1be=this;this[_0x2d5b26('0x12')]['enqueue'](function(){const _0x1fe8e6=_0x2d5b26;return _0x5ad1be[_0x1fe8e6('0xd')][_0x1fe8e6('0x13')](_0x568d36,_0xbc33a2)['then'](function(){const _0x5380de=_0x1fe8e6;logger[_0x5380de('0x1c')]('Removed\x20column\x20%s\x20from\x20%s',_0xbc33a2,_0x568d36);})[_0x1fe8e6('0x19')](function(_0x2b2a71){const _0x5d6499=_0x1fe8e6;logger[_0x5d6499('0x1c')](util[_0x5d6499('0x1')](_0x2b2a71,{'showHidden':![],'depth':null}));});});},Migration[_0x345825('0x17')][_0x345825('0x6')]=function(_0x150c96,_0x5c13a6,_0x198a78){const _0x3d93a2=_0x345825,_0x2e7d17=this;this[_0x3d93a2('0x12')][_0x3d93a2('0x7')](function(){const _0x3728c8=_0x3d93a2;return _0x2e7d17[_0x3728c8('0xd')][_0x3728c8('0x6')](_0x150c96,_0x5c13a6,_0x198a78)['then'](function(){const _0x1e817b=_0x3728c8;logger[_0x1e817b('0x1c')](_0x1e817b('0xa'),_0x5c13a6,_0x198a78,_0x150c96);})[_0x3728c8('0x19')](function(_0x29d89d){const _0x83be3b=_0x3728c8;logger[_0x83be3b('0x1c')](util[_0x83be3b('0x1')](_0x29d89d,{'showHidden':![],'depth':null}));});});},Migration[_0x345825('0x17')]['final']=function(_0x124aa6){const _0x4e1ca7=_0x345825;this[_0x4e1ca7('0x12')][_0x4e1ca7('0x7')](function(){return _0x124aa6();});},module[_0x345825('0x1b')]={'up':function(_0x55d338,_0x3703d3){return new Promise(function(_0x47a4b8){const _0xb1b26c=a934_0x1f90,_0x5db455=new Migration(_0x55d338);_0x5db455[_0xb1b26c('0xc')](_0xb1b26c('0x1d'),_0xb1b26c('0x11'),{'type':_0x3703d3['STRING']}),_0x5db455[_0xb1b26c('0x10')]('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;'),_0x5db455[_0xb1b26c('0x10')](_0xb1b26c('0xf')),_0x5db455[_0xb1b26c('0x9')](_0x47a4b8);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.56.js b/server/migrations/2.0.56.js index 14f0e04..8f5d37a 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a935_0x2c25=['sequence','tail','rrordered','linear','query','addColumn','random','info','openchannel_accounts','renameColumn','then','fewestcalls','join','chat_websites','mail_accounts','addIndex','migration','../config/logger','exports','dropTable','prototype','strategy','finally','stringify','BOOLEAN','enqueue','removeColumn','ENUM','notificationTemplate','Changed\x20column\x20%s\x20in\x20table\x20%s','rrmemory','changeColumn','TEXT','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','fax_accounts','analytics_extracted_reports','basename','inspect','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','ringall','util','wrandom','sequelize','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','Removed\x20column\x20%s\x20from\x20%s','STRING','catch','notificationShake','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','sms_accounts','addIndex\x20%s\x20%s\x20%s','roundrobin','notificationSound','final','voice_queues'];(function(_0x3bce84,_0x2c252b){const _0xffa3b7=function(_0x82a5c4){while(--_0x82a5c4){_0x3bce84['push'](_0x3bce84['shift']());}};_0xffa3b7(++_0x2c252b);}(a935_0x2c25,0x1b9));const a935_0xffa3=function(_0x3bce84,_0x2c252b){_0x3bce84=_0x3bce84-0x0;let _0xffa3b7=a935_0x2c25[_0x3bce84];return _0xffa3b7;};const _0x3c375d=a935_0xffa3;'use strict';const util=require(_0x3c375d('0x2f')),logger=require(_0x3c375d('0x18'))(_0x3c375d('0x17')),Sequence=function(){};Sequence[_0x3c375d('0x1b')][_0x3c375d('0x20')]=function(_0x82a5c4){const _0x30e9d3=_0x3c375d;this[_0x30e9d3('0x8')]=this[_0x30e9d3('0x8')]?this['tail'][_0x30e9d3('0x1d')](_0x82a5c4):_0x82a5c4();};const Migration=function(_0x5832b3){const _0x4648e1=_0x3c375d;this[_0x4648e1('0x0')]=_0x5832b3,this[_0x4648e1('0x7')]=new Sequence();};Migration[_0x3c375d('0x1b')]['changeColumn']=function(_0x37599a,_0x568ab7,_0x515ddc){const _0x5520e7=_0x3c375d,_0x38481b=this;this[_0x5520e7('0x7')][_0x5520e7('0x20')](function(){const _0x5d0cd0=_0x5520e7;return _0x38481b[_0x5d0cd0('0x0')][_0x5d0cd0('0x26')](_0x37599a,_0x568ab7,_0x515ddc)[_0x5d0cd0('0x11')](function(){const _0x2af9f2=_0x5d0cd0;logger[_0x2af9f2('0xe')](_0x2af9f2('0x24'),_0x568ab7,_0x37599a);})[_0x5d0cd0('0x35')](function(_0x2c7eaf){const _0x3c8fef=_0x5d0cd0;logger[_0x3c8fef('0xe')](JSON['stringify'](_0x2c7eaf));});});},Migration['prototype'][_0x3c375d('0xc')]=function(_0x3867cf,_0x38a366,_0x51be8d){const _0x3f7191=_0x3c375d,_0x16b0ff=this;this[_0x3f7191('0x7')][_0x3f7191('0x20')](function(){const _0x98b4ac=_0x3f7191;return _0x16b0ff[_0x98b4ac('0x0')][_0x98b4ac('0xc')](_0x3867cf,_0x38a366,_0x51be8d)[_0x98b4ac('0x11')](function(){const _0x378acf=_0x98b4ac;logger[_0x378acf('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x38a366,_0x3867cf);})[_0x98b4ac('0x35')](function(_0x266abb){const _0x67673b=_0x98b4ac;logger[_0x67673b('0xe')](JSON['stringify'](_0x266abb));});});},Migration['prototype']['dropTable']=function(_0x20143a){const _0x326546=_0x3c375d,_0x4d572b=this;this[_0x326546('0x7')][_0x326546('0x20')](function(){const _0x5d97a8=_0x326546;return _0x4d572b[_0x5d97a8('0x0')][_0x5d97a8('0x1a')](_0x20143a,{'force':!![]})[_0x5d97a8('0x11')](function(){const _0x1bb232=_0x5d97a8;logger[_0x1bb232('0xe')]('table\x20dropped\x20%s',_0x20143a);})[_0x5d97a8('0x35')](function(_0x1c12f4){logger['info'](JSON['stringify'](_0x1c12f4));});});},Migration[_0x3c375d('0x1b')][_0x3c375d('0x16')]=function(_0xd9a14f,_0x503c0e,_0x2c7821){const _0x4120e6=_0x3c375d,_0x115914=this;this[_0x4120e6('0x7')][_0x4120e6('0x20')](function(){const _0x21e643=_0x4120e6;return _0x115914[_0x21e643('0x0')][_0x21e643('0x16')](_0xd9a14f,_0x503c0e,{'indexName':_0x2c7821})['then'](function(){const _0x42983f=_0x21e643;logger[_0x42983f('0xe')](_0x42983f('0x2'),_0xd9a14f,_0x503c0e[_0x42983f('0x13')](','),_0x2c7821);})[_0x21e643('0x35')](function(_0x33f440){const _0x22ca3b=_0x21e643;logger[_0x22ca3b('0xe')](JSON[_0x22ca3b('0x1e')](_0x33f440));});});},Migration['prototype'][_0x3c375d('0xb')]=function(_0x564ad1){const _0x5b4f9a=_0x3c375d,_0x7eee53=this;this[_0x5b4f9a('0x7')][_0x5b4f9a('0x20')](function(){const _0x145c32=_0x5b4f9a;return _0x7eee53[_0x145c32('0x0')][_0x145c32('0x31')][_0x145c32('0xb')](_0x564ad1)[_0x145c32('0x11')](function(){const _0x5dcfc9=_0x145c32;logger[_0x5dcfc9('0xe')]('query\x20%s',_0x564ad1);})[_0x145c32('0x35')](function(_0x33811f){const _0x14ffdd=_0x145c32;logger['info'](JSON[_0x14ffdd('0x1e')](_0x33811f));});});},Migration[_0x3c375d('0x1b')][_0x3c375d('0x21')]=function(_0x393848,_0x12eac0){const _0x15e342=_0x3c375d,_0x5bbc1c=this;this['sequence'][_0x15e342('0x20')](function(){const _0x4b7b30=_0x15e342;return _0x5bbc1c[_0x4b7b30('0x0')][_0x4b7b30('0x21')](_0x393848,_0x12eac0)['then'](function(){const _0x3aab7a=_0x4b7b30;logger[_0x3aab7a('0xe')](_0x3aab7a('0x33'),_0x12eac0,_0x393848);})[_0x4b7b30('0x35')](function(_0x17df49){const _0x11eb21=_0x4b7b30;logger['info'](util[_0x11eb21('0x2c')](_0x17df49,{'showHidden':![],'depth':null}));});});},Migration[_0x3c375d('0x1b')][_0x3c375d('0x10')]=function(_0x7632,_0x2bd812,_0x20b8dd){const _0xb6f9bd=_0x3c375d,_0x346521=this;this['sequence'][_0xb6f9bd('0x20')](function(){const _0x24153a=_0xb6f9bd;return _0x346521['queryInterface'][_0x24153a('0x10')](_0x7632,_0x2bd812,_0x20b8dd)['then'](function(){const _0x59aa86=_0x24153a;logger[_0x59aa86('0xe')](_0x59aa86('0x37'),_0x2bd812,_0x20b8dd,_0x7632);})[_0x24153a('0x35')](function(_0x35a7c2){const _0x30d646=_0x24153a;logger[_0x30d646('0xe')](util[_0x30d646('0x2c')](_0x35a7c2,{'showHidden':![],'depth':null}));});});},Migration[_0x3c375d('0x1b')][_0x3c375d('0x5')]=function(_0x5640f5){const _0x2e9b2e=_0x3c375d;this[_0x2e9b2e('0x7')][_0x2e9b2e('0x20')](function(){return _0x5640f5();});},module[_0x3c375d('0x19')]={'up':function(_0xce07,_0x260289){return new Promise(function(_0x3510a1){const _0x3a2144=a935_0xffa3,_0x56c755=new Migration(_0xce07);_0x56c755[_0x3a2144('0x26')](_0x3a2144('0x6'),_0x3a2144('0x1c'),{'type':_0x260289[_0x3a2144('0x22')](_0x3a2144('0x3'),_0x3a2144('0x2e'),'leastrecent',_0x3a2144('0x12'),_0x3a2144('0xd'),_0x3a2144('0x25'),_0x3a2144('0xa'),_0x3a2144('0x30'),_0x3a2144('0x9')),'allowNull':![],'defaultValue':_0x3a2144('0x2e')}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x2a'),_0x3a2144('0x2b'),{'type':_0x260289[_0x3a2144('0x34')],'allowNull':![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x15'),_0x3a2144('0x23'),{'type':_0x260289[_0x3a2144('0x27')]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x15'),_0x3a2144('0x4'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':!![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x15'),_0x3a2144('0x36'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':![]}),_0x56c755['addColumn'](_0x3a2144('0x14'),_0x3a2144('0x23'),{'type':_0x260289[_0x3a2144('0x27')]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x14'),_0x3a2144('0x4'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':!![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x14'),_0x3a2144('0x36'),{'type':_0x260289['BOOLEAN'],'defaultValue':![]}),_0x56c755['addColumn'](_0x3a2144('0x29'),'notificationTemplate',{'type':_0x260289[_0x3a2144('0x27')]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x29'),'notificationSound',{'type':_0x260289['BOOLEAN'],'defaultValue':!![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x29'),_0x3a2144('0x36'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x1'),_0x3a2144('0x23'),{'type':_0x260289[_0x3a2144('0x27')]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0x1'),_0x3a2144('0x4'),{'type':_0x260289['BOOLEAN'],'defaultValue':!![]}),_0x56c755['addColumn']('sms_accounts',_0x3a2144('0x36'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':![]}),_0x56c755[_0x3a2144('0xc')]('openchannel_accounts',_0x3a2144('0x23'),{'type':_0x260289[_0x3a2144('0x27')]}),_0x56c755[_0x3a2144('0xc')]('openchannel_accounts','notificationSound',{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':!![]}),_0x56c755[_0x3a2144('0xc')](_0x3a2144('0xf'),_0x3a2144('0x36'),{'type':_0x260289[_0x3a2144('0x1f')],'defaultValue':![]}),_0x56c755[_0x3a2144('0xb')](_0x3a2144('0x28')),_0x56c755[_0x3a2144('0xb')](_0x3a2144('0x2d')),_0x56c755[_0x3a2144('0xb')]('UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x56c755[_0x3a2144('0xb')](_0x3a2144('0x32')),_0x56c755[_0x3a2144('0xb')]('UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x56c755['final'](_0x3510a1);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.57.js b/server/migrations/2.0.57.js index 3312d52..66422bc 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a936_0x1a12=['addIndex\x20%s\x20%s\x20%s','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','then','prototype','changeColumn','queryInterface','stringify','voice_queues','query\x20%s','join','dropTable','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','query','../config/logger','Added\x20column\x20%s\x20to\x20%s','tail','info','chat_websites','sequelize','removeColumn','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','util','sequence','addColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','finally','enqueue','catch','hideWhenOffline','inspect','final','addIndex','migration','TEXT'];(function(_0x44ca2a,_0x1a1262){const _0x48f419=function(_0x461f7a){while(--_0x461f7a){_0x44ca2a['push'](_0x44ca2a['shift']());}};_0x48f419(++_0x1a1262);}(a936_0x1a12,0x118));const a936_0x48f4=function(_0x44ca2a,_0x1a1262){_0x44ca2a=_0x44ca2a-0x0;let _0x48f419=a936_0x1a12[_0x44ca2a];return _0x48f419;};const _0x42925e=a936_0x48f4;'use strict';const util=require(_0x42925e('0x12')),logger=require(_0x42925e('0xa'))(_0x42925e('0x1e')),Sequence=function(){};Sequence[_0x42925e('0x25')][_0x42925e('0x18')]=function(_0x461f7a){const _0xdd77a5=_0x42925e;this['tail']=this[_0xdd77a5('0xc')]?this[_0xdd77a5('0xc')][_0xdd77a5('0x17')](_0x461f7a):_0x461f7a();};const Migration=function(_0x1cced5){this['queryInterface']=_0x1cced5,this['sequence']=new Sequence();};Migration['prototype'][_0x42925e('0x26')]=function(_0x47eea0,_0x29b8ce,_0xa589bd){const _0x33e601=_0x42925e,_0x1324ba=this;this[_0x33e601('0x13')][_0x33e601('0x18')](function(){const _0x43145c=_0x33e601;return _0x1324ba[_0x43145c('0x0')][_0x43145c('0x26')](_0x47eea0,_0x29b8ce,_0xa589bd)[_0x43145c('0x24')](function(){const _0x379e8f=_0x43145c;logger[_0x379e8f('0xd')](_0x379e8f('0x7'),_0x29b8ce,_0x47eea0);})[_0x43145c('0x19')](function(_0x352740){const _0x3f515b=_0x43145c;logger[_0x3f515b('0xd')](JSON[_0x3f515b('0x1')](_0x352740));});});},Migration['prototype'][_0x42925e('0x14')]=function(_0x4f63b5,_0x1e3b39,_0xb5c6c4){const _0xd0f9=_0x42925e,_0x27f99a=this;this[_0xd0f9('0x13')][_0xd0f9('0x18')](function(){const _0x1ca4ea=_0xd0f9;return _0x27f99a[_0x1ca4ea('0x0')]['addColumn'](_0x4f63b5,_0x1e3b39,_0xb5c6c4)[_0x1ca4ea('0x24')](function(){const _0x5e9894=_0x1ca4ea;logger[_0x5e9894('0xd')](_0x5e9894('0xb'),_0x1e3b39,_0x4f63b5);})['catch'](function(_0x38fafd){const _0x4a91a8=_0x1ca4ea;logger[_0x4a91a8('0xd')](JSON[_0x4a91a8('0x1')](_0x38fafd));});});},Migration[_0x42925e('0x25')][_0x42925e('0x5')]=function(_0x148a80){const _0x26dc41=this;this['sequence']['enqueue'](function(){const _0x5bae3d=a936_0x48f4;return _0x26dc41[_0x5bae3d('0x0')][_0x5bae3d('0x5')](_0x148a80,{'force':!![]})[_0x5bae3d('0x24')](function(){const _0x43b24b=_0x5bae3d;logger[_0x43b24b('0xd')](_0x43b24b('0x16'),_0x148a80);})[_0x5bae3d('0x19')](function(_0x3e6a24){const _0x1662b4=_0x5bae3d;logger[_0x1662b4('0xd')](JSON[_0x1662b4('0x1')](_0x3e6a24));});});},Migration[_0x42925e('0x25')][_0x42925e('0x1d')]=function(_0x105b7b,_0x23bce0,_0x79e71a){const _0x53c476=_0x42925e,_0x37858f=this;this['sequence'][_0x53c476('0x18')](function(){const _0x20b233=_0x53c476;return _0x37858f[_0x20b233('0x0')]['addIndex'](_0x105b7b,_0x23bce0,{'indexName':_0x79e71a})[_0x20b233('0x24')](function(){const _0x4068f7=_0x20b233;logger[_0x4068f7('0xd')](_0x4068f7('0x20'),_0x105b7b,_0x23bce0[_0x4068f7('0x4')](','),_0x79e71a);})['catch'](function(_0x26e739){const _0x1eac4f=_0x20b233;logger[_0x1eac4f('0xd')](JSON[_0x1eac4f('0x1')](_0x26e739));});});},Migration['prototype']['query']=function(_0x9bfe0a){const _0x36e435=_0x42925e,_0x21dfc3=this;this[_0x36e435('0x13')][_0x36e435('0x18')](function(){const _0x4531b8=_0x36e435;return _0x21dfc3[_0x4531b8('0x0')][_0x4531b8('0xf')][_0x4531b8('0x9')](_0x9bfe0a)[_0x4531b8('0x24')](function(){const _0x499600=_0x4531b8;logger[_0x499600('0xd')](_0x499600('0x3'),_0x9bfe0a);})[_0x4531b8('0x19')](function(_0x374973){const _0x66e252=_0x4531b8;logger[_0x66e252('0xd')](JSON[_0x66e252('0x1')](_0x374973));});});},Migration[_0x42925e('0x25')][_0x42925e('0x10')]=function(_0x3e5dd0,_0x43ffe5){const _0x53af00=_0x42925e,_0x4c905f=this;this[_0x53af00('0x13')][_0x53af00('0x18')](function(){const _0x4a3b12=_0x53af00;return _0x4c905f[_0x4a3b12('0x0')]['removeColumn'](_0x3e5dd0,_0x43ffe5)[_0x4a3b12('0x24')](function(){const _0x4dc2eb=_0x4a3b12;logger[_0x4dc2eb('0xd')](_0x4dc2eb('0x15'),_0x43ffe5,_0x3e5dd0);})['catch'](function(_0x437ee6){logger['info'](util['inspect'](_0x437ee6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x42925e('0x6')]=function(_0x2d9a47,_0x4098af,_0x5b6191){const _0x3146af=this;this['sequence']['enqueue'](function(){const _0x5aa385=a936_0x48f4;return _0x3146af[_0x5aa385('0x0')][_0x5aa385('0x6')](_0x2d9a47,_0x4098af,_0x5b6191)[_0x5aa385('0x24')](function(){const _0x45e7bf=_0x5aa385;logger[_0x45e7bf('0xd')](_0x45e7bf('0x22'),_0x4098af,_0x5b6191,_0x2d9a47);})[_0x5aa385('0x19')](function(_0x27fa67){const _0x104267=_0x5aa385;logger[_0x104267('0xd')](util[_0x104267('0x1b')](_0x27fa67,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x42925e('0x1c')]=function(_0x50b2f1){const _0x508afa=_0x42925e;this[_0x508afa('0x13')]['enqueue'](function(){return _0x50b2f1();});},module[_0x42925e('0x23')]={'up':function(_0x23a09c,_0x1d15af){return new Promise(function(_0x20e0b8){const _0x386ede=a936_0x48f4,_0x1af103=new Migration(_0x23a09c);_0x1af103[_0x386ede('0x14')](_0x386ede('0xe'),_0x386ede('0x1a'),{'type':_0x1d15af[_0x386ede('0x8')],'defaultValue':![]}),_0x1af103[_0x386ede('0x26')](_0x386ede('0x2'),'periodic_announce',{'type':_0x1d15af[_0x386ede('0x1f')]}),_0x1af103[_0x386ede('0x9')](_0x386ede('0x11')),_0x1af103['query'](_0x386ede('0x21')),_0x1af103[_0x386ede('0x1c')](_0x20e0b8);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.58.js b/server/migrations/2.0.58.js index c2ed47e..54cce4f 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a937_0x7b33=['changeColumn','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);','addIndex','util','queue','query','inspect','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);','queuecallerexitreason','addIndex\x20%s\x20%s\x20%s','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','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','queryInterface','table\x20dropped\x20%s','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Pause\x27,\x20\x27agentmanagement-pause\x27,\x20\x27Agent\x20Pause\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27mp3\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);','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);','sequence','final','enqueue','report_queue','migration','info','disposition','dropTable','addColumn','removeColumn','exports','stringify','tail','then','finally'];(function(_0x103865,_0x7b33bb){const _0x2811eb=function(_0x2cf38d){while(--_0x2cf38d){_0x103865['push'](_0x103865['shift']());}};_0x2811eb(++_0x7b33bb);}(a937_0x7b33,0x1c0));const a937_0x2811=function(_0x103865,_0x7b33bb){_0x103865=_0x103865-0x0;let _0x2811eb=a937_0x7b33[_0x103865];return _0x2811eb;};const _0x213599=a937_0x2811;'use strict';const util=require(_0x213599('0xe')),logger=require('../config/logger')(_0x213599('0x23')),Sequence=function(){};Sequence['prototype'][_0x213599('0x21')]=function(_0x2cf38d){const _0x3dbed7=_0x213599;this[_0x3dbed7('0x5')]=this[_0x3dbed7('0x5')]?this[_0x3dbed7('0x5')][_0x3dbed7('0x7')](_0x2cf38d):_0x2cf38d();};const Migration=function(_0x324539){const _0x465934=_0x213599;this[_0x465934('0x19')]=_0x324539,this[_0x465934('0x1f')]=new Sequence();};Migration['prototype'][_0x213599('0x8')]=function(_0x2fa209,_0x515406,_0x197ebd){const _0x16b0dc=_0x213599,_0x2640a5=this;this['sequence'][_0x16b0dc('0x21')](function(){const _0x5ba375=_0x16b0dc;return _0x2640a5[_0x5ba375('0x19')][_0x5ba375('0x8')](_0x2fa209,_0x515406,_0x197ebd)[_0x5ba375('0x6')](function(){const _0x333b72=_0x5ba375;logger[_0x333b72('0x24')](_0x333b72('0x16'),_0x515406,_0x2fa209);})[_0x5ba375('0x9')](function(_0x1793eb){const _0x3476e7=_0x5ba375;logger[_0x3476e7('0x24')](JSON[_0x3476e7('0x4')](_0x1793eb));});});},Migration['prototype'][_0x213599('0x1')]=function(_0x383ea1,_0x2c28f2,_0x3a46f5){const _0xe518fd=_0x213599,_0x76a775=this;this[_0xe518fd('0x1f')][_0xe518fd('0x21')](function(){const _0x32b729=_0xe518fd;return _0x76a775[_0x32b729('0x19')]['addColumn'](_0x383ea1,_0x2c28f2,_0x3a46f5)[_0x32b729('0x6')](function(){const _0x1ee785=_0x32b729;logger['info'](_0x1ee785('0xb'),_0x2c28f2,_0x383ea1);})[_0x32b729('0x9')](function(_0x2f7827){const _0x69b9a=_0x32b729;logger['info'](JSON[_0x69b9a('0x4')](_0x2f7827));});});},Migration['prototype']['dropTable']=function(_0x4be4a1){const _0xe9ff0a=_0x213599,_0x26b941=this;this[_0xe9ff0a('0x1f')][_0xe9ff0a('0x21')](function(){const _0x24e5b4=_0xe9ff0a;return _0x26b941[_0x24e5b4('0x19')][_0x24e5b4('0x0')](_0x4be4a1,{'force':!![]})[_0x24e5b4('0x6')](function(){const _0x55948d=_0x24e5b4;logger[_0x55948d('0x24')](_0x55948d('0x1a'),_0x4be4a1);})[_0x24e5b4('0x9')](function(_0x3b99f9){const _0x173988=_0x24e5b4;logger[_0x173988('0x24')](JSON[_0x173988('0x4')](_0x3b99f9));});});},Migration[_0x213599('0x17')][_0x213599('0xd')]=function(_0x177680,_0x1826be,_0x4516bd){const _0x342af1=_0x213599,_0x2e6b19=this;this['sequence'][_0x342af1('0x21')](function(){const _0x4e8421=_0x342af1;return _0x2e6b19[_0x4e8421('0x19')][_0x4e8421('0xd')](_0x177680,_0x1826be,{'indexName':_0x4516bd})[_0x4e8421('0x6')](function(){const _0x24baf7=_0x4e8421;logger[_0x24baf7('0x24')](_0x24baf7('0x14'),_0x177680,_0x1826be['join'](','),_0x4516bd);})['catch'](function(_0xaa06bf){const _0x3e5e98=_0x4e8421;logger[_0x3e5e98('0x24')](JSON[_0x3e5e98('0x4')](_0xaa06bf));});});},Migration['prototype']['query']=function(_0x417852){const _0x21d32a=_0x213599,_0x16ade0=this;this[_0x21d32a('0x1f')][_0x21d32a('0x21')](function(){const _0x3f5b76=_0x21d32a;return _0x16ade0[_0x3f5b76('0x19')]['sequelize'][_0x3f5b76('0x10')](_0x417852)[_0x3f5b76('0x6')](function(){const _0x5c8784=_0x3f5b76;logger['info'](_0x5c8784('0x1b'),_0x417852);})['catch'](function(_0x59fb70){const _0x4d7167=_0x3f5b76;logger[_0x4d7167('0x24')](JSON['stringify'](_0x59fb70));});});},Migration[_0x213599('0x17')][_0x213599('0x2')]=function(_0x401a64,_0xdfd066){const _0x3c9e40=_0x213599,_0x5c9fbd=this;this['sequence'][_0x3c9e40('0x21')](function(){const _0x1e616e=_0x3c9e40;return _0x5c9fbd[_0x1e616e('0x19')][_0x1e616e('0x2')](_0x401a64,_0xdfd066)[_0x1e616e('0x6')](function(){const _0x4888a3=_0x1e616e;logger[_0x4888a3('0x24')](_0x4888a3('0x1c'),_0xdfd066,_0x401a64);})[_0x1e616e('0x9')](function(_0x549a0a){const _0x4cdefa=_0x1e616e;logger['info'](util[_0x4cdefa('0x11')](_0x549a0a,{'showHidden':![],'depth':null}));});});},Migration[_0x213599('0x17')][_0x213599('0x15')]=function(_0x3a1331,_0x50facb,_0x57b4dd){const _0xc595e3=_0x213599,_0x33cc4a=this;this[_0xc595e3('0x1f')][_0xc595e3('0x21')](function(){const _0x45d9f3=_0xc595e3;return _0x33cc4a[_0x45d9f3('0x19')][_0x45d9f3('0x15')](_0x3a1331,_0x50facb,_0x57b4dd)[_0x45d9f3('0x6')](function(){const _0x56634f=_0x45d9f3;logger[_0x56634f('0x24')](_0x56634f('0xa'),_0x50facb,_0x57b4dd,_0x3a1331);})[_0x45d9f3('0x9')](function(_0x3fb8cb){const _0x160a6d=_0x45d9f3;logger[_0x160a6d('0x24')](util['inspect'](_0x3fb8cb,{'showHidden':![],'depth':null}));});});},Migration[_0x213599('0x17')][_0x213599('0x20')]=function(_0x38f8c2){const _0x39bf3b=_0x213599;this[_0x39bf3b('0x1f')][_0x39bf3b('0x21')](function(){return _0x38f8c2();});},module[_0x213599('0x3')]={'up':function(_0x5211be,_0x248fb3){return new Promise(function(_0x40e2ec){const _0x2ec7ba=a937_0x2811,_0x186396=new Migration(_0x5211be);_0x186396[_0x2ec7ba('0x10')](_0x2ec7ba('0x18')),_0x186396[_0x2ec7ba('0xd')]('report_queue',[_0x2ec7ba('0xf')],_0x2ec7ba('0xf')),_0x186396['addIndex'](_0x2ec7ba('0x22'),[_0x2ec7ba('0x13')],_0x2ec7ba('0x13')),_0x186396[_0x2ec7ba('0x1')]('report_queue',_0x2ec7ba('0x25'),{'type':_0x248fb3['STRING']}),_0x186396['query']('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);'),_0x186396[_0x2ec7ba('0x10')]('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);'),_0x186396[_0x2ec7ba('0x10')](_0x2ec7ba('0xc')),_0x186396[_0x2ec7ba('0x10')](_0x2ec7ba('0x1e')),_0x186396[_0x2ec7ba('0x10')](_0x2ec7ba('0x1d')),_0x186396[_0x2ec7ba('0x10')]('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);'),_0x186396[_0x2ec7ba('0x10')](_0x2ec7ba('0x12')),_0x186396[_0x2ec7ba('0x20')](_0x40e2ec);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.59.js b/server/migrations/2.0.59.js index 83746b0..9adbf3d 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a938_0x42aa=['query','addIndex\x20%s\x20%s\x20%s','enqueue','sms_interactions','../config/logger','phoneBarAutoUpdater','openchannel_interactions','phoneBarAutoUpdaterUrl','skype','table\x20dropped\x20%s','migration','join','sequelize','renameColumn','UserId','campaigns','UNSIGNED','exports','openedBy','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','priority','STRING','dialPrefix','info','addIndex','stringify','NOW','addColumn','changeColumn','util','final','tail','removeColumn','queryInterface','inspect','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','sequence','INTEGER','catch','chat_interactions','finally','users','then','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','cm_contacts','settings','mail_interactions'];(function(_0x2d4e3d,_0x42aa97){const _0x6d8ee4=function(_0x126459){while(--_0x126459){_0x2d4e3d['push'](_0x2d4e3d['shift']());}};_0x6d8ee4(++_0x42aa97);}(a938_0x42aa,0x1c1));const a938_0x6d8e=function(_0x2d4e3d,_0x42aa97){_0x2d4e3d=_0x2d4e3d-0x0;let _0x6d8ee4=a938_0x42aa[_0x2d4e3d];return _0x6d8ee4;};const _0x330bbe=a938_0x6d8e;'use strict';const util=require(_0x330bbe('0x16')),logger=require(_0x330bbe('0x2d'))(_0x330bbe('0x2')),Sequence=function(){};Sequence['prototype'][_0x330bbe('0x2b')]=function(_0x126459){const _0x2a427e=_0x330bbe;this['tail']=this[_0x2a427e('0x18')]?this['tail'][_0x2a427e('0x22')](_0x126459):_0x126459();};const Migration=function(_0xf02a3d){const _0x46e615=_0x330bbe;this[_0x46e615('0x1a')]=_0xf02a3d,this[_0x46e615('0x1e')]=new Sequence();};Migration['prototype'][_0x330bbe('0x15')]=function(_0x3cbcd5,_0x2b9655,_0x36f25c){const _0x34ada7=_0x330bbe,_0x3984a9=this;this['sequence'][_0x34ada7('0x2b')](function(){const _0x57249e=_0x34ada7;return _0x3984a9[_0x57249e('0x1a')]['changeColumn'](_0x3cbcd5,_0x2b9655,_0x36f25c)[_0x57249e('0x24')](function(){const _0x30c40f=_0x57249e;logger[_0x30c40f('0x10')](_0x30c40f('0xc'),_0x2b9655,_0x3cbcd5);})[_0x57249e('0x20')](function(_0x1401f4){logger['info'](JSON['stringify'](_0x1401f4));});});},Migration[_0x330bbe('0xb')][_0x330bbe('0x14')]=function(_0xe936b2,_0x17b06a,_0x140673){const _0x3b9aa1=_0x330bbe,_0x3a1ddb=this;this['sequence'][_0x3b9aa1('0x2b')](function(){const _0x198eb3=_0x3b9aa1;return _0x3a1ddb['queryInterface']['addColumn'](_0xe936b2,_0x17b06a,_0x140673)['then'](function(){const _0x1deda7=a938_0x6d8e;logger[_0x1deda7('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x17b06a,_0xe936b2);})[_0x198eb3('0x20')](function(_0x3c668b){const _0x472b15=_0x198eb3;logger[_0x472b15('0x10')](JSON[_0x472b15('0x12')](_0x3c668b));});});},Migration[_0x330bbe('0xb')]['dropTable']=function(_0x3312bc){const _0x149bef=_0x330bbe,_0x3085d2=this;this['sequence'][_0x149bef('0x2b')](function(){const _0x503b71=_0x149bef;return _0x3085d2[_0x503b71('0x1a')]['dropTable'](_0x3312bc,{'force':!![]})['then'](function(){const _0x31151c=_0x503b71;logger[_0x31151c('0x10')](_0x31151c('0x1'),_0x3312bc);})[_0x503b71('0x20')](function(_0x23f77d){const _0x223c36=_0x503b71;logger['info'](JSON[_0x223c36('0x12')](_0x23f77d));});});},Migration[_0x330bbe('0xb')][_0x330bbe('0x11')]=function(_0xb454ca,_0x3abe0c,_0x170e76){const _0xd6b831=_0x330bbe,_0x3c7ecc=this;this[_0xd6b831('0x1e')]['enqueue'](function(){const _0x164a75=_0xd6b831;return _0x3c7ecc[_0x164a75('0x1a')]['addIndex'](_0xb454ca,_0x3abe0c,{'indexName':_0x170e76})[_0x164a75('0x24')](function(){const _0x457842=_0x164a75;logger[_0x457842('0x10')](_0x457842('0x2a'),_0xb454ca,_0x3abe0c[_0x457842('0x3')](','),_0x170e76);})[_0x164a75('0x20')](function(_0x4e7dc3){const _0x3b1c62=_0x164a75;logger[_0x3b1c62('0x10')](JSON['stringify'](_0x4e7dc3));});});},Migration['prototype'][_0x330bbe('0x29')]=function(_0x45ac7e){const _0x174823=_0x330bbe,_0x1ee5da=this;this[_0x174823('0x1e')]['enqueue'](function(){const _0x37babb=_0x174823;return _0x1ee5da['queryInterface'][_0x37babb('0x4')]['query'](_0x45ac7e)['then'](function(){const _0x512132=_0x37babb;logger['info'](_0x512132('0x1d'),_0x45ac7e);})[_0x37babb('0x20')](function(_0x476623){const _0x5722a7=_0x37babb;logger[_0x5722a7('0x10')](JSON[_0x5722a7('0x12')](_0x476623));});});},Migration[_0x330bbe('0xb')]['removeColumn']=function(_0x274697,_0xe2d7c0){const _0x3901ac=_0x330bbe,_0x3e0d26=this;this[_0x3901ac('0x1e')][_0x3901ac('0x2b')](function(){const _0x24c5e=_0x3901ac;return _0x3e0d26[_0x24c5e('0x1a')][_0x24c5e('0x19')](_0x274697,_0xe2d7c0)[_0x24c5e('0x24')](function(){const _0x4be1df=_0x24c5e;logger[_0x4be1df('0x10')](_0x4be1df('0x1c'),_0xe2d7c0,_0x274697);})['catch'](function(_0x4e36fb){const _0x57ef5c=_0x24c5e;logger['info'](util[_0x57ef5c('0x1b')](_0x4e36fb,{'showHidden':![],'depth':null}));});});},Migration[_0x330bbe('0xb')][_0x330bbe('0x5')]=function(_0x8d8813,_0x5bc1bd,_0xf66ba9){const _0x5ee399=_0x330bbe,_0x171801=this;this['sequence'][_0x5ee399('0x2b')](function(){const _0x191bde=_0x5ee399;return _0x171801['queryInterface'][_0x191bde('0x5')](_0x8d8813,_0x5bc1bd,_0xf66ba9)[_0x191bde('0x24')](function(){const _0x12b613=_0x191bde;logger[_0x12b613('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5bc1bd,_0xf66ba9,_0x8d8813);})[_0x191bde('0x20')](function(_0x4501da){const _0x15130d=_0x191bde;logger['info'](util[_0x15130d('0x1b')](_0x4501da,{'showHidden':![],'depth':null}));});});},Migration[_0x330bbe('0xb')][_0x330bbe('0x17')]=function(_0x49157a){const _0x1b147f=_0x330bbe;this['sequence'][_0x1b147f('0x2b')](function(){return _0x49157a();});},module[_0x330bbe('0x9')]={'up':function(_0x26f84c,_0x16ab26){return new Promise(function(_0x1739a3){const _0xecf143=a938_0x6d8e,_0x5da6e1=new Migration(_0x26f84c);_0x5da6e1['addColumn'](_0xecf143('0x27'),_0xecf143('0x2e'),{'type':_0x16ab26['BOOLEAN'],'defaultValue':!![]}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x27'),_0xecf143('0x30'),{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x7'),_0xecf143('0xf'),{'type':_0x16ab26[_0xecf143('0xe')]}),_0x5da6e1['addColumn']('cm_lists',_0xecf143('0xf'),{'type':_0x16ab26[_0xecf143('0xe')]}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x23'),'alias',{'type':_0x16ab26['STRING']}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x26'),_0xecf143('0x0'),{'type':_0x16ab26[_0xecf143('0xe')]}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x26'),_0xecf143('0x6'),{'type':_0x16ab26[_0xecf143('0x1f')]}),_0x5da6e1[_0xecf143('0x14')]('cm_contacts',_0xecf143('0xd'),{'type':_0x16ab26[_0xecf143('0x1f')](0x2)[_0xecf143('0x8')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x5da6e1['addColumn'](_0xecf143('0x26'),'scheduledat',{'type':_0x16ab26['DATE'],'defaultValue':_0x16ab26[_0xecf143('0x13')]}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x28'),_0xecf143('0xa'),{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':''}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x21'),'openedBy',{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':''}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x2c'),_0xecf143('0xa'),{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':''}),_0x5da6e1[_0xecf143('0x14')](_0xecf143('0x2f'),_0xecf143('0xa'),{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':''}),_0x5da6e1['addColumn']('fax_interactions',_0xecf143('0xa'),{'type':_0x16ab26[_0xecf143('0xe')],'defaultValue':''}),_0x5da6e1[_0xecf143('0x29')]('DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)'),_0x5da6e1[_0xecf143('0x29')](_0xecf143('0x25')),_0x5da6e1['final'](_0x1739a3);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.60.js b/server/migrations/2.0.60.js index 3232fc3..b625403 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a939_0x1c2c=['long','then','Added\x20column\x20%s\x20to\x20%s','STRING','addIndex','mail_interactions','BOOLEAN','prototype','fax_accounts','../config/logger','queryInterface','waitForTheAssignedAgent','tail','query','info','phoneBarEnableJaws','renameColumn','finally','catch','exports','agentIdentifier','util','chat_websites','addIndex\x20%s\x20%s\x20%s','inspect','removeColumn','stringify','changeColumn','dropTable','chat_interactions','mail_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openedBy','lastMsgBody','INTEGER','sms_interactions','TEXT','final','from','fax_interactions','enqueue','query\x20%s','sms_accounts','addColumn','sequence'];(function(_0x47e471,_0x1c2c34){const _0x513b74=function(_0x5ee587){while(--_0x5ee587){_0x47e471['push'](_0x47e471['shift']());}};_0x513b74(++_0x1c2c34);}(a939_0x1c2c,0x1e5));const a939_0x513b=function(_0x47e471,_0x1c2c34){_0x47e471=_0x47e471-0x0;let _0x513b74=a939_0x1c2c[_0x47e471];return _0x513b74;};const _0x5ec608=a939_0x513b;'use strict';const util=require(_0x5ec608('0x1f')),logger=require(_0x5ec608('0x13'))('migration'),Sequence=function(){};Sequence[_0x5ec608('0x11')][_0x5ec608('0x5')]=function(_0x5ee587){const _0x58aee5=_0x5ec608;this[_0x58aee5('0x16')]=this['tail']?this[_0x58aee5('0x16')][_0x58aee5('0x1b')](_0x5ee587):_0x5ee587();};const Migration=function(_0x3f6b3a){const _0x17faf2=_0x5ec608;this[_0x17faf2('0x14')]=_0x3f6b3a,this['sequence']=new Sequence();};Migration[_0x5ec608('0x11')][_0x5ec608('0x25')]=function(_0x2d2dc4,_0x3f7286,_0x362358){const _0x213202=_0x5ec608,_0x2d0ebc=this;this[_0x213202('0x9')]['enqueue'](function(){const _0x16e5d1=_0x213202;return _0x2d0ebc[_0x16e5d1('0x14')][_0x16e5d1('0x25')](_0x2d2dc4,_0x3f7286,_0x362358)['then'](function(){const _0x338e95=_0x16e5d1;logger[_0x338e95('0x18')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3f7286,_0x2d2dc4);})[_0x16e5d1('0x1c')](function(_0x13f592){const _0x3c0131=_0x16e5d1;logger[_0x3c0131('0x18')](JSON[_0x3c0131('0x24')](_0x13f592));});});},Migration['prototype'][_0x5ec608('0x8')]=function(_0x1c2650,_0x2afe1e,_0x2a1c0f){const _0x40409d=_0x5ec608,_0x39c577=this;this[_0x40409d('0x9')][_0x40409d('0x5')](function(){const _0xb06e65=_0x40409d;return _0x39c577[_0xb06e65('0x14')][_0xb06e65('0x8')](_0x1c2650,_0x2afe1e,_0x2a1c0f)[_0xb06e65('0xb')](function(){const _0x530e18=_0xb06e65;logger['info'](_0x530e18('0xc'),_0x2afe1e,_0x1c2650);})[_0xb06e65('0x1c')](function(_0x4a203b){const _0x1deade=_0xb06e65;logger[_0x1deade('0x18')](JSON[_0x1deade('0x24')](_0x4a203b));});});},Migration['prototype']['dropTable']=function(_0x98be8c){const _0x362982=_0x5ec608,_0x370f92=this;this[_0x362982('0x9')][_0x362982('0x5')](function(){const _0x424f2f=_0x362982;return _0x370f92[_0x424f2f('0x14')][_0x424f2f('0x26')](_0x98be8c,{'force':!![]})[_0x424f2f('0xb')](function(){const _0x5d51b8=_0x424f2f;logger[_0x5d51b8('0x18')]('table\x20dropped\x20%s',_0x98be8c);})['catch'](function(_0x33a96f){const _0x2705f2=_0x424f2f;logger[_0x2705f2('0x18')](JSON[_0x2705f2('0x24')](_0x33a96f));});});},Migration[_0x5ec608('0x11')]['addIndex']=function(_0x31bf00,_0xba99f2,_0x114c6e){const _0x72c019=_0x5ec608,_0x2bea9f=this;this[_0x72c019('0x9')][_0x72c019('0x5')](function(){const _0x2862f4=_0x72c019;return _0x2bea9f[_0x2862f4('0x14')][_0x2862f4('0xe')](_0x31bf00,_0xba99f2,{'indexName':_0x114c6e})[_0x2862f4('0xb')](function(){const _0x2e63ab=_0x2862f4;logger[_0x2e63ab('0x18')](_0x2e63ab('0x21'),_0x31bf00,_0xba99f2['join'](','),_0x114c6e);})[_0x2862f4('0x1c')](function(_0x14f8e3){const _0x290847=_0x2862f4;logger['info'](JSON[_0x290847('0x24')](_0x14f8e3));});});},Migration[_0x5ec608('0x11')][_0x5ec608('0x17')]=function(_0x19fb4a){const _0x4c7466=_0x5ec608,_0x6ddfc1=this;this[_0x4c7466('0x9')][_0x4c7466('0x5')](function(){const _0x20a082=_0x4c7466;return _0x6ddfc1[_0x20a082('0x14')]['sequelize'][_0x20a082('0x17')](_0x19fb4a)['then'](function(){const _0x1705e2=_0x20a082;logger[_0x1705e2('0x18')](_0x1705e2('0x6'),_0x19fb4a);})[_0x20a082('0x1c')](function(_0x138ff9){const _0x1f8b20=_0x20a082;logger[_0x1f8b20('0x18')](JSON[_0x1f8b20('0x24')](_0x138ff9));});});},Migration[_0x5ec608('0x11')][_0x5ec608('0x23')]=function(_0x3019ad,_0x204af2){const _0xde52fd=_0x5ec608,_0x4a454f=this;this[_0xde52fd('0x9')]['enqueue'](function(){const _0x5d3cfe=_0xde52fd;return _0x4a454f[_0x5d3cfe('0x14')][_0x5d3cfe('0x23')](_0x3019ad,_0x204af2)[_0x5d3cfe('0xb')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x204af2,_0x3019ad);})[_0x5d3cfe('0x1c')](function(_0x536c3e){const _0x583f8b=_0x5d3cfe;logger['info'](util[_0x583f8b('0x22')](_0x536c3e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5ec608('0x1a')]=function(_0x50f300,_0x21fc79,_0x44cf1c){const _0x4e1d1d=_0x5ec608,_0x445f50=this;this['sequence'][_0x4e1d1d('0x5')](function(){const _0x506a1c=_0x4e1d1d;return _0x445f50[_0x506a1c('0x14')][_0x506a1c('0x1a')](_0x50f300,_0x21fc79,_0x44cf1c)[_0x506a1c('0xb')](function(){const _0x4056f7=_0x506a1c;logger['info'](_0x4056f7('0x29'),_0x21fc79,_0x44cf1c,_0x50f300);})[_0x506a1c('0x1c')](function(_0x545e7b){const _0x22433e=_0x506a1c;logger[_0x22433e('0x18')](util[_0x22433e('0x22')](_0x545e7b,{'showHidden':![],'depth':null}));});});},Migration[_0x5ec608('0x11')]['final']=function(_0x459b74){const _0xb4be50=_0x5ec608;this[_0xb4be50('0x9')][_0xb4be50('0x5')](function(){return _0x459b74();});},module[_0x5ec608('0x1d')]={'up':function(_0xad7cf6,_0x4c0e31){return new Promise(function(_0x37bfd1){const _0x406ce5=a939_0x513b,_0x102674=new Migration(_0xad7cf6);_0x102674[_0x406ce5('0x8')]('chat_websites',_0x406ce5('0x1e'),{'type':_0x4c0e31['STRING'],'defaultValue':'website_alias'}),_0x102674['addColumn'](_0x406ce5('0x20'),'waitForTheAssignedAgent',{'type':_0x4c0e31[_0x406ce5('0x2c')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x102674[_0x406ce5('0x23')](_0x406ce5('0x27'),'openedBy'),_0x102674[_0x406ce5('0x23')](_0x406ce5('0xf'),_0x406ce5('0x2a')),_0x102674['addColumn'](_0x406ce5('0xf'),_0x406ce5('0x2b'),{'type':_0x4c0e31[_0x406ce5('0x1')](_0x406ce5('0xa'))}),_0x102674[_0x406ce5('0x23')](_0x406ce5('0x0'),_0x406ce5('0x2a')),_0x102674[_0x406ce5('0x23')](_0x406ce5('0x4'),'openedBy'),_0x102674[_0x406ce5('0x23')]('openchannel_interactions','openedBy'),_0x102674[_0x406ce5('0x8')]('openchannel_interactions',_0x406ce5('0x3'),{'type':_0x4c0e31[_0x406ce5('0xd')]}),_0x102674['addColumn'](_0x406ce5('0x28'),_0x406ce5('0x15'),{'type':_0x4c0e31[_0x406ce5('0x2c')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x102674[_0x406ce5('0x8')]('openchannel_accounts',_0x406ce5('0x15'),{'type':_0x4c0e31['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x102674[_0x406ce5('0x8')](_0x406ce5('0x12'),'waitForTheAssignedAgent',{'type':_0x4c0e31[_0x406ce5('0x2c')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x102674[_0x406ce5('0x8')](_0x406ce5('0x7'),_0x406ce5('0x15'),{'type':_0x4c0e31['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x102674['addColumn']('users',_0x406ce5('0x19'),{'type':_0x4c0e31[_0x406ce5('0x10')],'defaultValue':![]}),_0x102674[_0x406ce5('0x2')](_0x37bfd1);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.61.js b/server/migrations/2.0.61.js index e3813a9..7ef33b5 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a940_0x73f6=['enqueue','join','addIndex','changeColumn','removeColumn','tail','finally','stringify','sequence','Removed\x20column\x20%s\x20from\x20%s','exports','../config/logger','prototype','util','query','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','dropTable','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','queryInterface','final','catch','Added\x20column\x20%s\x20to\x20%s'];(function(_0x3566a6,_0x73f6a1){const _0xf03413=function(_0x17d057){while(--_0x17d057){_0x3566a6['push'](_0x3566a6['shift']());}};_0xf03413(++_0x73f6a1);}(a940_0x73f6,0xf4));const a940_0xf034=function(_0x3566a6,_0x73f6a1){_0x3566a6=_0x3566a6-0x0;let _0xf03413=a940_0x73f6[_0x3566a6];return _0xf03413;};const _0x37b6c5=a940_0xf034;'use strict';const util=require(_0x37b6c5('0x3')),logger=require(_0x37b6c5('0x1'))('migration'),Sequence=function(){};Sequence[_0x37b6c5('0x2')]['enqueue']=function(_0x17d057){const _0x20347e=_0x37b6c5;this[_0x20347e('0x15')]=this[_0x20347e('0x15')]?this[_0x20347e('0x15')][_0x20347e('0x16')](_0x17d057):_0x17d057();};const Migration=function(_0x54e577){const _0x5b716d=_0x37b6c5;this['queryInterface']=_0x54e577,this[_0x5b716d('0x18')]=new Sequence();};Migration[_0x37b6c5('0x2')][_0x37b6c5('0x13')]=function(_0x5b5a8c,_0x22cc94,_0x347d7b){const _0x28d5ea=_0x37b6c5,_0x3123a9=this;this[_0x28d5ea('0x18')]['enqueue'](function(){const _0x449608=_0x28d5ea;return _0x3123a9[_0x449608('0xc')][_0x449608('0x13')](_0x5b5a8c,_0x22cc94,_0x347d7b)['then'](function(){const _0x584eae=_0x449608;logger[_0x584eae('0x9')](_0x584eae('0x6'),_0x22cc94,_0x5b5a8c);})[_0x449608('0xe')](function(_0x55baab){const _0xd94517=_0x449608;logger[_0xd94517('0x9')](JSON[_0xd94517('0x17')](_0x55baab));});});},Migration[_0x37b6c5('0x2')]['addColumn']=function(_0x69023b,_0x546c1b,_0x25090c){const _0x49554b=_0x37b6c5,_0x43c777=this;this[_0x49554b('0x18')]['enqueue'](function(){const _0x142ce2=_0x49554b;return _0x43c777['queryInterface']['addColumn'](_0x69023b,_0x546c1b,_0x25090c)[_0x142ce2('0xb')](function(){const _0x5ca240=_0x142ce2;logger[_0x5ca240('0x9')](_0x5ca240('0xf'),_0x546c1b,_0x69023b);})[_0x142ce2('0xe')](function(_0x17dd49){const _0x4991b7=_0x142ce2;logger['info'](JSON[_0x4991b7('0x17')](_0x17dd49));});});},Migration['prototype'][_0x37b6c5('0x8')]=function(_0x8fe918){const _0x4b406e=_0x37b6c5,_0x4da824=this;this['sequence'][_0x4b406e('0x10')](function(){const _0xa4a614=_0x4b406e;return _0x4da824[_0xa4a614('0xc')][_0xa4a614('0x8')](_0x8fe918,{'force':!![]})[_0xa4a614('0xb')](function(){const _0x3dd037=_0xa4a614;logger['info'](_0x3dd037('0x5'),_0x8fe918);})[_0xa4a614('0xe')](function(_0x4746b5){const _0xd076c0=_0xa4a614;logger[_0xd076c0('0x9')](JSON[_0xd076c0('0x17')](_0x4746b5));});});},Migration[_0x37b6c5('0x2')][_0x37b6c5('0x12')]=function(_0x545cd4,_0x5244e0,_0x5850f1){const _0x2f7224=_0x37b6c5,_0x2e7a4f=this;this[_0x2f7224('0x18')][_0x2f7224('0x10')](function(){const _0x523a94=_0x2f7224;return _0x2e7a4f[_0x523a94('0xc')][_0x523a94('0x12')](_0x545cd4,_0x5244e0,{'indexName':_0x5850f1})[_0x523a94('0xb')](function(){const _0x2132ac=_0x523a94;logger[_0x2132ac('0x9')]('addIndex\x20%s\x20%s\x20%s',_0x545cd4,_0x5244e0[_0x2132ac('0x11')](','),_0x5850f1);})[_0x523a94('0xe')](function(_0x3296b3){const _0x10695b=_0x523a94;logger[_0x10695b('0x9')](JSON[_0x10695b('0x17')](_0x3296b3));});});},Migration[_0x37b6c5('0x2')][_0x37b6c5('0x4')]=function(_0x10ca8a){const _0x2523d2=_0x37b6c5,_0x1bad5b=this;this[_0x2523d2('0x18')][_0x2523d2('0x10')](function(){const _0x4cee98=_0x2523d2;return _0x1bad5b[_0x4cee98('0xc')]['sequelize']['query'](_0x10ca8a)[_0x4cee98('0xb')](function(){const _0x443b69=_0x4cee98;logger[_0x443b69('0x9')]('query\x20%s',_0x10ca8a);})[_0x4cee98('0xe')](function(_0x2e8019){const _0x4100ad=_0x4cee98;logger[_0x4100ad('0x9')](JSON[_0x4100ad('0x17')](_0x2e8019));});});},Migration[_0x37b6c5('0x2')][_0x37b6c5('0x14')]=function(_0x39cddc,_0xb0528){const _0x5df9ae=_0x37b6c5,_0x4ea5a2=this;this[_0x5df9ae('0x18')][_0x5df9ae('0x10')](function(){const _0x1b0a02=_0x5df9ae;return _0x4ea5a2['queryInterface'][_0x1b0a02('0x14')](_0x39cddc,_0xb0528)['then'](function(){const _0x346c53=_0x1b0a02;logger[_0x346c53('0x9')](_0x346c53('0x19'),_0xb0528,_0x39cddc);})[_0x1b0a02('0xe')](function(_0x4d1e47){const _0x1cbf32=_0x1b0a02;logger['info'](util[_0x1cbf32('0x7')](_0x4d1e47,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x43f56a,_0x136210,_0x179edb){const _0x166237=_0x37b6c5,_0xf88a29=this;this['sequence'][_0x166237('0x10')](function(){const _0x93c7aa=_0x166237;return _0xf88a29[_0x93c7aa('0xc')]['renameColumn'](_0x43f56a,_0x136210,_0x179edb)[_0x93c7aa('0xb')](function(){const _0x439da7=_0x93c7aa;logger[_0x439da7('0x9')](_0x439da7('0xa'),_0x136210,_0x179edb,_0x43f56a);})[_0x93c7aa('0xe')](function(_0x32c3c3){const _0x5c9b55=_0x93c7aa;logger[_0x5c9b55('0x9')](util[_0x5c9b55('0x7')](_0x32c3c3,{'showHidden':![],'depth':null}));});});},Migration[_0x37b6c5('0x2')][_0x37b6c5('0xd')]=function(_0x30bb17){const _0x56d3a7=_0x37b6c5;this[_0x56d3a7('0x18')]['enqueue'](function(){return _0x30bb17();});},module[_0x37b6c5('0x0')]={'up':function(_0x2e122c){return new Promise(function(_0x21a5d3){const _0x2cc2b5=new Migration(_0x2e122c);_0x2cc2b5['final'](_0x21a5d3);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.62.js b/server/migrations/2.0.62.js index cb1b6db..b349429 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a941_0x1841=['Removed\x20column\x20%s\x20from\x20%s','query','catch','chat_websites','BOOLEAN','migration','stringify','sendIfEmpty','enqueue','util','../config/logger','addIndex','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','INTEGER','renameColumn','query\x20%s','bottom_right','finally','removeColumn','then','sequence','cm_contacts','verticalAlignment','addIndex\x20%s\x20%s\x20%s','STRING','addColumn','dropTable','phone','inspect','info','tail','enableEmailPreview','join','queryInterface','table\x20dropped\x20%s','final','Added\x20column\x20%s\x20to\x20%s','exports','changeColumn','settings'];(function(_0x324d43,_0x1841d5){const _0x27b817=function(_0x5a917a){while(--_0x5a917a){_0x324d43['push'](_0x324d43['shift']());}};_0x27b817(++_0x1841d5);}(a941_0x1841,0x71));const a941_0x27b8=function(_0x324d43,_0x1841d5){_0x324d43=_0x324d43-0x0;let _0x27b817=a941_0x1841[_0x324d43];return _0x27b817;};const _0x53a375=a941_0x27b8;'use strict';const util=require(_0x53a375('0x13')),logger=require(_0x53a375('0x14'))(_0x53a375('0xf')),Sequence=function(){};Sequence[_0x53a375('0x16')][_0x53a375('0x12')]=function(_0x5a917a){const _0x4c72e9=_0x53a375;this[_0x4c72e9('0x0')]=this[_0x4c72e9('0x0')]?this[_0x4c72e9('0x0')][_0x4c72e9('0x1c')](_0x5a917a):_0x5a917a();};const Migration=function(_0x51d41e){const _0x31aee0=_0x53a375;this[_0x31aee0('0x3')]=_0x51d41e,this['sequence']=new Sequence();};Migration[_0x53a375('0x16')][_0x53a375('0x8')]=function(_0x5e3add,_0x3fe9dd,_0x1cc99c){const _0x466b46=_0x53a375,_0x39dd99=this;this[_0x466b46('0x1f')][_0x466b46('0x12')](function(){const _0x965c1e=_0x466b46;return _0x39dd99[_0x965c1e('0x3')]['changeColumn'](_0x5e3add,_0x3fe9dd,_0x1cc99c)[_0x965c1e('0x1e')](function(){const _0x2fcd62=_0x965c1e;logger['info'](_0x2fcd62('0x17'),_0x3fe9dd,_0x5e3add);})[_0x965c1e('0xc')](function(_0x3417e1){const _0x4078f2=_0x965c1e;logger[_0x4078f2('0x28')](JSON[_0x4078f2('0x10')](_0x3417e1));});});},Migration['prototype'][_0x53a375('0x24')]=function(_0x1ed348,_0x3bfc56,_0x9023b7){const _0x5588cd=_0x53a375,_0x396b87=this;this['sequence'][_0x5588cd('0x12')](function(){const _0x547d54=_0x5588cd;return _0x396b87[_0x547d54('0x3')][_0x547d54('0x24')](_0x1ed348,_0x3bfc56,_0x9023b7)[_0x547d54('0x1e')](function(){const _0x2cd623=_0x547d54;logger[_0x2cd623('0x28')](_0x2cd623('0x6'),_0x3bfc56,_0x1ed348);})[_0x547d54('0xc')](function(_0x90adcf){const _0x60df8a=_0x547d54;logger[_0x60df8a('0x28')](JSON[_0x60df8a('0x10')](_0x90adcf));});});},Migration[_0x53a375('0x16')]['dropTable']=function(_0x2033d1){const _0x2d2f22=_0x53a375,_0x46c314=this;this[_0x2d2f22('0x1f')][_0x2d2f22('0x12')](function(){const _0x1cd90c=_0x2d2f22;return _0x46c314['queryInterface'][_0x1cd90c('0x25')](_0x2033d1,{'force':!![]})[_0x1cd90c('0x1e')](function(){const _0x3014f5=_0x1cd90c;logger['info'](_0x3014f5('0x4'),_0x2033d1);})[_0x1cd90c('0xc')](function(_0x306f5d){const _0x39cb3b=_0x1cd90c;logger[_0x39cb3b('0x28')](JSON[_0x39cb3b('0x10')](_0x306f5d));});});},Migration['prototype'][_0x53a375('0x15')]=function(_0x1c7a0f,_0x3d1526,_0x4cc6a3){const _0x1e0a49=_0x53a375,_0x50e025=this;this[_0x1e0a49('0x1f')][_0x1e0a49('0x12')](function(){const _0x512eb3=_0x1e0a49;return _0x50e025[_0x512eb3('0x3')]['addIndex'](_0x1c7a0f,_0x3d1526,{'indexName':_0x4cc6a3})['then'](function(){const _0x120426=_0x512eb3;logger[_0x120426('0x28')](_0x120426('0x22'),_0x1c7a0f,_0x3d1526[_0x120426('0x2')](','),_0x4cc6a3);})[_0x512eb3('0xc')](function(_0x38ae74){const _0x33f8cb=_0x512eb3;logger['info'](JSON[_0x33f8cb('0x10')](_0x38ae74));});});},Migration[_0x53a375('0x16')]['query']=function(_0x3a0707){const _0x430c50=_0x53a375,_0x2dbd27=this;this[_0x430c50('0x1f')][_0x430c50('0x12')](function(){const _0x30d0a9=_0x430c50;return _0x2dbd27[_0x30d0a9('0x3')]['sequelize'][_0x30d0a9('0xb')](_0x3a0707)[_0x30d0a9('0x1e')](function(){const _0x51b639=_0x30d0a9;logger[_0x51b639('0x28')](_0x51b639('0x1a'),_0x3a0707);})[_0x30d0a9('0xc')](function(_0x14193a){const _0x4a9232=_0x30d0a9;logger[_0x4a9232('0x28')](JSON[_0x4a9232('0x10')](_0x14193a));});});},Migration[_0x53a375('0x16')][_0x53a375('0x1d')]=function(_0x2a6069,_0x255d42){const _0x100c93=_0x53a375,_0x16281c=this;this[_0x100c93('0x1f')]['enqueue'](function(){const _0x2a2a17=_0x100c93;return _0x16281c['queryInterface'][_0x2a2a17('0x1d')](_0x2a6069,_0x255d42)[_0x2a2a17('0x1e')](function(){const _0x3a6703=_0x2a2a17;logger['info'](_0x3a6703('0xa'),_0x255d42,_0x2a6069);})['catch'](function(_0x23356d){const _0x28a803=_0x2a2a17;logger[_0x28a803('0x28')](util[_0x28a803('0x27')](_0x23356d,{'showHidden':![],'depth':null}));});});},Migration[_0x53a375('0x16')][_0x53a375('0x19')]=function(_0x26ee06,_0x4ea7a2,_0x165539){const _0x37e6e8=_0x53a375,_0x357dee=this;this[_0x37e6e8('0x1f')][_0x37e6e8('0x12')](function(){const _0x13f3d8=_0x37e6e8;return _0x357dee[_0x13f3d8('0x3')][_0x13f3d8('0x19')](_0x26ee06,_0x4ea7a2,_0x165539)[_0x13f3d8('0x1e')](function(){const _0x513403=_0x13f3d8;logger[_0x513403('0x28')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4ea7a2,_0x165539,_0x26ee06);})[_0x13f3d8('0xc')](function(_0x8efc58){const _0x2eb805=_0x13f3d8;logger['info'](util[_0x2eb805('0x27')](_0x8efc58,{'showHidden':![],'depth':null}));});});},Migration[_0x53a375('0x16')]['final']=function(_0x45d9d0){const _0x158dd4=_0x53a375;this[_0x158dd4('0x1f')][_0x158dd4('0x12')](function(){return _0x45d9d0();});},module[_0x53a375('0x7')]={'up':function(_0x25c5de,_0x91a7e0){return new Promise(function(_0x4657c2){const _0x4d1e4c=a941_0x27b8,_0x3cd15a=new Migration(_0x25c5de);_0x3cd15a[_0x4d1e4c('0x24')]('tools_schedules',_0x4d1e4c('0x11'),{'type':_0x91a7e0[_0x4d1e4c('0xe')],'defaultValue':!![]}),_0x3cd15a['changeColumn'](_0x4d1e4c('0x20'),_0x4d1e4c('0x26'),{'type':_0x91a7e0[_0x4d1e4c('0x23')],'allowNull':!![]}),_0x3cd15a[_0x4d1e4c('0x24')](_0x4d1e4c('0x9'),_0x4d1e4c('0x1'),{'type':_0x91a7e0[_0x4d1e4c('0xe')],'defaultValue':![]}),_0x3cd15a[_0x4d1e4c('0x24')]('chat_websites','alignment',{'type':_0x91a7e0[_0x4d1e4c('0x23')],'defaultValue':_0x4d1e4c('0x1b')}),_0x3cd15a[_0x4d1e4c('0x24')](_0x4d1e4c('0xd'),_0x4d1e4c('0x21'),{'type':_0x91a7e0[_0x4d1e4c('0x18')],'defaultValue':0x1e}),_0x3cd15a[_0x4d1e4c('0x5')](_0x4657c2);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.63.js b/server/migrations/2.0.63.js index e6282ae..620689f 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a942_0x365a=['STRING','tail','query','data','title','sequence','addColumn','removeColumn','query\x20%s','sequelize','Added\x20column\x20%s\x20to\x20%s','inspect','chat_websites','addIndex\x20%s\x20%s\x20%s','openchannel_accounts','messagesAlignment','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','TEXT','alternate','stringify','addIndex','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','INTEGER','Changed\x20column\x20%s\x20in\x20table\x20%s','mail_applications','queryInterface','catch','fax_applications','join','showCustomerAvatar','prototype','migration','../config/logger','changeColumn','then','TagId','customerAvatar','dashboard_items','renameColumn','info','dropTable','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','enqueue','util','openchannel_applications','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','final'];(function(_0x45737f,_0x365a6a){const _0x1b9313=function(_0x38530d){while(--_0x38530d){_0x45737f['push'](_0x45737f['shift']());}};_0x1b9313(++_0x365a6a);}(a942_0x365a,0xa6));const a942_0x1b93=function(_0x45737f,_0x365a6a){_0x45737f=_0x45737f-0x0;let _0x1b9313=a942_0x365a[_0x45737f];return _0x1b9313;};const _0x1bd43c=a942_0x1b93;'use strict';const util=require(_0x1bd43c('0x16')),logger=require(_0x1bd43c('0xb'))(_0x1bd43c('0xa')),Sequence=function(){};Sequence[_0x1bd43c('0x9')][_0x1bd43c('0x15')]=function(_0x38530d){const _0x41ea9a=_0x1bd43c;this['tail']=this['tail']?this[_0x41ea9a('0x1b')]['finally'](_0x38530d):_0x38530d();};const Migration=function(_0x239936){const _0x3c36f5=_0x1bd43c;this['queryInterface']=_0x239936,this[_0x3c36f5('0x1f')]=new Sequence();};Migration[_0x1bd43c('0x9')][_0x1bd43c('0xc')]=function(_0x44a2a2,_0x4f2010,_0x3a5c01){const _0xddd6ba=_0x1bd43c,_0x12ec34=this;this[_0xddd6ba('0x1f')][_0xddd6ba('0x15')](function(){const _0x2b6060=_0xddd6ba;return _0x12ec34[_0x2b6060('0x4')]['changeColumn'](_0x44a2a2,_0x4f2010,_0x3a5c01)['then'](function(){const _0x2a3b7f=_0x2b6060;logger[_0x2a3b7f('0x12')](_0x2a3b7f('0x2'),_0x4f2010,_0x44a2a2);})[_0x2b6060('0x5')](function(_0x2d9c9a){const _0x579073=_0x2b6060;logger[_0x579073('0x12')](JSON[_0x579073('0x2e')](_0x2d9c9a));});});},Migration['prototype'][_0x1bd43c('0x20')]=function(_0xb37a56,_0x4fbcca,_0x497277){const _0x429c82=_0x1bd43c,_0x54b05b=this;this['sequence'][_0x429c82('0x15')](function(){const _0x14adca=_0x429c82;return _0x54b05b[_0x14adca('0x4')][_0x14adca('0x20')](_0xb37a56,_0x4fbcca,_0x497277)[_0x14adca('0xd')](function(){const _0x536a4c=_0x14adca;logger[_0x536a4c('0x12')](_0x536a4c('0x24'),_0x4fbcca,_0xb37a56);})[_0x14adca('0x5')](function(_0x4bfcf7){logger['info'](JSON['stringify'](_0x4bfcf7));});});},Migration['prototype'][_0x1bd43c('0x13')]=function(_0x9c9296){const _0x280a1b=_0x1bd43c,_0x4000eb=this;this[_0x280a1b('0x1f')]['enqueue'](function(){const _0x3ef520=_0x280a1b;return _0x4000eb['queryInterface']['dropTable'](_0x9c9296,{'force':!![]})[_0x3ef520('0xd')](function(){const _0x276335=_0x3ef520;logger[_0x276335('0x12')](_0x276335('0x2b'),_0x9c9296);})[_0x3ef520('0x5')](function(_0x25ace5){const _0x9f3c8c=_0x3ef520;logger[_0x9f3c8c('0x12')](JSON['stringify'](_0x25ace5));});});},Migration['prototype'][_0x1bd43c('0x2f')]=function(_0x1b1fd8,_0x27d36f,_0xd2eddd){const _0x1cc7a9=_0x1bd43c,_0x176e3e=this;this[_0x1cc7a9('0x1f')][_0x1cc7a9('0x15')](function(){const _0x2c9a8d=_0x1cc7a9;return _0x176e3e[_0x2c9a8d('0x4')][_0x2c9a8d('0x2f')](_0x1b1fd8,_0x27d36f,{'indexName':_0xd2eddd})[_0x2c9a8d('0xd')](function(){const _0x1d9e70=_0x2c9a8d;logger['info'](_0x1d9e70('0x27'),_0x1b1fd8,_0x27d36f[_0x1d9e70('0x7')](','),_0xd2eddd);})[_0x2c9a8d('0x5')](function(_0x1ef6d3){const _0x382d0d=_0x2c9a8d;logger[_0x382d0d('0x12')](JSON[_0x382d0d('0x2e')](_0x1ef6d3));});});},Migration[_0x1bd43c('0x9')][_0x1bd43c('0x1c')]=function(_0x31c7d3){const _0x1c5500=_0x1bd43c,_0xd4ff92=this;this['sequence'][_0x1c5500('0x15')](function(){const _0x41db1d=_0x1c5500;return _0xd4ff92[_0x41db1d('0x4')][_0x41db1d('0x23')][_0x41db1d('0x1c')](_0x31c7d3)[_0x41db1d('0xd')](function(){const _0x3afa49=_0x41db1d;logger[_0x3afa49('0x12')](_0x3afa49('0x22'),_0x31c7d3);})[_0x41db1d('0x5')](function(_0x4da9c9){const _0x5b5fea=_0x41db1d;logger['info'](JSON[_0x5b5fea('0x2e')](_0x4da9c9));});});},Migration['prototype'][_0x1bd43c('0x21')]=function(_0x4455b5,_0xe841ca){const _0x3f769d=_0x1bd43c,_0x48e9eb=this;this['sequence'][_0x3f769d('0x15')](function(){const _0x34b898=_0x3f769d;return _0x48e9eb[_0x34b898('0x4')][_0x34b898('0x21')](_0x4455b5,_0xe841ca)['then'](function(){const _0x17a852=_0x34b898;logger[_0x17a852('0x12')]('Removed\x20column\x20%s\x20from\x20%s',_0xe841ca,_0x4455b5);})[_0x34b898('0x5')](function(_0x4121f4){const _0xe54368=_0x34b898;logger[_0xe54368('0x12')](util[_0xe54368('0x25')](_0x4121f4,{'showHidden':![],'depth':null}));});});},Migration[_0x1bd43c('0x9')][_0x1bd43c('0x11')]=function(_0x4865f7,_0x419c1b,_0x41c54a){const _0x2772df=_0x1bd43c,_0xb3fe21=this;this['sequence'][_0x2772df('0x15')](function(){const _0x47ad6f=_0x2772df;return _0xb3fe21[_0x47ad6f('0x4')][_0x47ad6f('0x11')](_0x4865f7,_0x419c1b,_0x41c54a)[_0x47ad6f('0xd')](function(){const _0x2bba29=_0x47ad6f;logger['info'](_0x2bba29('0x2a'),_0x419c1b,_0x41c54a,_0x4865f7);})['catch'](function(_0x1db611){const _0x18e06d=_0x47ad6f;logger[_0x18e06d('0x12')](util[_0x18e06d('0x25')](_0x1db611,{'showHidden':![],'depth':null}));});});},Migration[_0x1bd43c('0x9')][_0x1bd43c('0x19')]=function(_0x1296b4){const _0x430c78=_0x1bd43c;this[_0x430c78('0x1f')][_0x430c78('0x15')](function(){return _0x1296b4();});},module['exports']={'up':function(_0x355bd,_0x4b187f){return new Promise(function(_0x31961d){const _0x41f8a3=a942_0x1b93,_0x4566dd=new Migration(_0x355bd);_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x26'),_0x41f8a3('0x29'),{'type':_0x4b187f['STRING'],'defaultValue':_0x41f8a3('0x2d')}),_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x26'),'defaultTitle',{'type':_0x4b187f[_0x41f8a3('0x1a')]}),_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x26'),_0x41f8a3('0xf'),{'type':_0x4b187f[_0x41f8a3('0x2c')]}),_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x26'),_0x41f8a3('0x8'),{'type':_0x4b187f['BOOLEAN'],'defaultValue':![]}),_0x4566dd[_0x41f8a3('0x20')]('chat_applications',_0x41f8a3('0xe'),{'type':_0x4b187f[_0x41f8a3('0x1')]}),_0x4566dd['query'](_0x41f8a3('0x0')),_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x6'),_0x41f8a3('0xe'),{'type':_0x4b187f[_0x41f8a3('0x1')]}),_0x4566dd[_0x41f8a3('0x1c')]('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'),_0x4566dd['addColumn'](_0x41f8a3('0x3'),_0x41f8a3('0xe'),{'type':_0x4b187f['INTEGER']}),_0x4566dd[_0x41f8a3('0x1c')](_0x41f8a3('0x18')),_0x4566dd[_0x41f8a3('0x20')](_0x41f8a3('0x17'),'TagId',{'type':_0x4b187f[_0x41f8a3('0x1')]}),_0x4566dd[_0x41f8a3('0x1c')](_0x41f8a3('0x14')),_0x4566dd['addColumn']('sms_applications',_0x41f8a3('0xe'),{'type':_0x4b187f[_0x41f8a3('0x1')]}),_0x4566dd[_0x41f8a3('0x1c')]('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'),_0x4566dd['query']('ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL'),_0x4566dd['addColumn'](_0x41f8a3('0x28'),'token',{'type':_0x4b187f[_0x41f8a3('0x1a')]}),_0x4566dd[_0x41f8a3('0x20')]('voice_queues_log',_0x41f8a3('0x1d'),{'type':_0x4b187f[_0x41f8a3('0x1a')],'allowNull':![],'defaultValue':''}),_0x4566dd[_0x41f8a3('0xc')](_0x41f8a3('0x10'),_0x41f8a3('0x1e'),{'type':_0x4b187f['STRING'],'allowNull':![]}),_0x4566dd[_0x41f8a3('0x19')](_0x31961d);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.64.js b/server/migrations/2.0.64.js index 26f8c05..a8acd3c 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a943_0x1281=['query\x20%s','addIndex\x20%s\x20%s\x20%s','stringify','field','removeIndex\x20%s\x20%s','enqueue','addColumn','Added\x20column\x20%s\x20to\x20%s','dropTable','catch','table\x20dropped\x20%s','sequence','prototype','sequelize','queryInterface','inspect','TEXT','Changed\x20column\x20%s\x20in\x20table\x20%s','customerAlias','renameColumn','util','addIndex','join','chat_websites','then','removeIndex','info','users','uniqueid','final','BOOLEAN','phoneBarEnableVideoRecording','changeColumn','exports','report_call','removeColumn','query'];(function(_0x2ff888,_0x128192){const _0x35c75a=function(_0x389a31){while(--_0x389a31){_0x2ff888['push'](_0x2ff888['shift']());}};_0x35c75a(++_0x128192);}(a943_0x1281,0x198));const a943_0x35c7=function(_0x2ff888,_0x128192){_0x2ff888=_0x2ff888-0x0;let _0x35c75a=a943_0x1281[_0x2ff888];return _0x35c75a;};const _0x3f5f3f=a943_0x35c7;'use strict';const util=require(_0x3f5f3f('0x13')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3f5f3f('0xb')][_0x3f5f3f('0x4')]=function(_0x389a31){this['tail']=this['tail']?this['tail']['finally'](_0x389a31):_0x389a31();};const Migration=function(_0x1af151){const _0x101d7c=_0x3f5f3f;this[_0x101d7c('0xd')]=_0x1af151,this[_0x101d7c('0xa')]=new Sequence();};Migration['prototype'][_0x3f5f3f('0x1f')]=function(_0x398a29,_0x5f35ca,_0xcba97d){const _0xad2fb=_0x3f5f3f,_0x208146=this;this[_0xad2fb('0xa')][_0xad2fb('0x4')](function(){const _0x10bc46=_0xad2fb;return _0x208146[_0x10bc46('0xd')][_0x10bc46('0x1f')](_0x398a29,_0x5f35ca,_0xcba97d)[_0x10bc46('0x17')](function(){const _0x1fd91f=_0x10bc46;logger['info'](_0x1fd91f('0x10'),_0x5f35ca,_0x398a29);})[_0x10bc46('0x8')](function(_0x4322bb){const _0x373c92=_0x10bc46;logger[_0x373c92('0x19')](JSON[_0x373c92('0x1')](_0x4322bb));});});},Migration[_0x3f5f3f('0xb')][_0x3f5f3f('0x5')]=function(_0x32beee,_0x122ce8,_0x1f5332){const _0x21d4b4=_0x3f5f3f,_0xb94aad=this;this[_0x21d4b4('0xa')]['enqueue'](function(){const _0xceb29d=_0x21d4b4;return _0xb94aad[_0xceb29d('0xd')]['addColumn'](_0x32beee,_0x122ce8,_0x1f5332)[_0xceb29d('0x17')](function(){const _0x448c48=_0xceb29d;logger[_0x448c48('0x19')](_0x448c48('0x6'),_0x122ce8,_0x32beee);})[_0xceb29d('0x8')](function(_0xd475eb){const _0x566b7c=_0xceb29d;logger[_0x566b7c('0x19')](JSON[_0x566b7c('0x1')](_0xd475eb));});});},Migration[_0x3f5f3f('0xb')][_0x3f5f3f('0x7')]=function(_0x57fa92){const _0x41213a=_0x3f5f3f,_0x3a05d5=this;this[_0x41213a('0xa')][_0x41213a('0x4')](function(){const _0x401549=_0x41213a;return _0x3a05d5[_0x401549('0xd')][_0x401549('0x7')](_0x57fa92,{'force':!![]})[_0x401549('0x17')](function(){const _0x369109=_0x401549;logger[_0x369109('0x19')](_0x369109('0x9'),_0x57fa92);})[_0x401549('0x8')](function(_0x3c2a97){const _0x58a745=_0x401549;logger['info'](JSON[_0x58a745('0x1')](_0x3c2a97));});});},Migration[_0x3f5f3f('0xb')][_0x3f5f3f('0x14')]=function(_0x50c910,_0xdd3466,_0x497731){const _0x1cdb56=this;this['sequence']['enqueue'](function(){const _0x36b5e0=a943_0x35c7;return _0x1cdb56[_0x36b5e0('0xd')][_0x36b5e0('0x14')](_0x50c910,_0xdd3466,{'indexName':_0x497731})['then'](function(){const _0x28a942=_0x36b5e0;logger[_0x28a942('0x19')](_0x28a942('0x0'),_0x50c910,_0xdd3466[_0x28a942('0x15')](','),_0x497731);})['catch'](function(_0x46cb23){const _0x18b3af=_0x36b5e0;logger[_0x18b3af('0x19')](JSON[_0x18b3af('0x1')](_0x46cb23));});});},Migration['prototype'][_0x3f5f3f('0x18')]=function(_0x373eda,_0x4ae636){const _0x3452c8=_0x3f5f3f,_0x356ddb=this;this[_0x3452c8('0xa')][_0x3452c8('0x4')](function(){const _0x3e8625=_0x3452c8;return _0x356ddb[_0x3e8625('0xd')]['removeIndex'](_0x373eda,_0x4ae636)[_0x3e8625('0x17')](function(){const _0x42e7d8=_0x3e8625;logger[_0x42e7d8('0x19')](_0x42e7d8('0x3'),_0x373eda,_0x4ae636);})[_0x3e8625('0x8')](function(_0x2e459f){const _0x58fa7d=_0x3e8625;logger[_0x58fa7d('0x19')](JSON['stringify'](_0x2e459f));});});},Migration[_0x3f5f3f('0xb')][_0x3f5f3f('0x23')]=function(_0x59d666){const _0x313469=_0x3f5f3f,_0x2e2abd=this;this[_0x313469('0xa')][_0x313469('0x4')](function(){const _0x2b75c6=_0x313469;return _0x2e2abd[_0x2b75c6('0xd')][_0x2b75c6('0xc')][_0x2b75c6('0x23')](_0x59d666)[_0x2b75c6('0x17')](function(){const _0x2a32c5=_0x2b75c6;logger[_0x2a32c5('0x19')](_0x2a32c5('0x24'),_0x59d666);})[_0x2b75c6('0x8')](function(_0x5b05ac){const _0x4c08fe=_0x2b75c6;logger['info'](JSON[_0x4c08fe('0x1')](_0x5b05ac));});});},Migration[_0x3f5f3f('0xb')][_0x3f5f3f('0x22')]=function(_0x304ca4,_0x4cda84){const _0x1991ad=_0x3f5f3f,_0x3ffcf6=this;this[_0x1991ad('0xa')][_0x1991ad('0x4')](function(){const _0x3f4e98=_0x1991ad;return _0x3ffcf6[_0x3f4e98('0xd')][_0x3f4e98('0x22')](_0x304ca4,_0x4cda84)[_0x3f4e98('0x17')](function(){const _0x14a726=_0x3f4e98;logger[_0x14a726('0x19')]('Removed\x20column\x20%s\x20from\x20%s',_0x4cda84,_0x304ca4);})[_0x3f4e98('0x8')](function(_0x1aaae4){const _0x8039d3=_0x3f4e98;logger[_0x8039d3('0x19')](util[_0x8039d3('0xe')](_0x1aaae4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3f5f3f('0x12')]=function(_0x1428c2,_0x5a18ea,_0x4e3f12){const _0x41072a=_0x3f5f3f,_0x1b7306=this;this[_0x41072a('0xa')][_0x41072a('0x4')](function(){const _0x189f98=_0x41072a;return _0x1b7306[_0x189f98('0xd')][_0x189f98('0x12')](_0x1428c2,_0x5a18ea,_0x4e3f12)[_0x189f98('0x17')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5a18ea,_0x4e3f12,_0x1428c2);})['catch'](function(_0x10172f){const _0x52db89=_0x189f98;logger['info'](util[_0x52db89('0xe')](_0x10172f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3f5f3f('0x1c')]=function(_0x5322b7){const _0x3587d9=_0x3f5f3f;this[_0x3587d9('0xa')][_0x3587d9('0x4')](function(){return _0x5322b7();});},module[_0x3f5f3f('0x20')]={'up':function(_0x5310cf,_0xc9a452){return new Promise(function(_0x1a30d6){const _0x4e8346=a943_0x35c7,_0x36a6e9=new Migration(_0x5310cf);_0x36a6e9[_0x4e8346('0x5')](_0x4e8346('0x1a'),_0x4e8346('0x1e'),{'type':_0xc9a452[_0x4e8346('0x1d')],'defaultValue':![]}),_0x36a6e9[_0x4e8346('0x1f')](_0x4e8346('0x21'),'lastdata',{'type':_0xc9a452[_0x4e8346('0xf')]}),_0x36a6e9[_0x4e8346('0x5')](_0x4e8346('0x16'),_0x4e8346('0x11'),{'type':_0xc9a452['STRING'],'defaultValue':'Me'}),_0x36a6e9[_0x4e8346('0x1f')]('analytics_report_fields',_0x4e8346('0x2'),{'type':_0xc9a452['TEXT'],'allowNull':![]}),_0x36a6e9[_0x4e8346('0x18')]('report_call',_0x4e8346('0x1b')),_0x36a6e9[_0x4e8346('0x1c')](_0x1a30d6);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.65.js b/server/migrations/2.0.65.js index 3cd670b..c85169d 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a944_0x5451=['INTEGER','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;','util','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','stringify','catch','dialRandomLastDigitCallerIdNumber','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','campaigns','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','migration','enqueue','queryInterface','prototype','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','inspect','UNSIGNED','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','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;','query','Changed\x20column\x20%s\x20in\x20table\x20%s','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','sequence','sequelize','Added\x20column\x20%s\x20to\x20%s','renameColumn','addColumn','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','changeColumn','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','final','dialCutDigit','finally','query\x20%s','tail','removeIndex\x20%s\x20%s','then','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','join','info','removeColumn','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','voice_queues','addIndex','teams','dropTable'];(function(_0x5f267b,_0x5451bb){const _0x47ce29=function(_0x4875c4){while(--_0x4875c4){_0x5f267b['push'](_0x5f267b['shift']());}};_0x47ce29(++_0x5451bb);}(a944_0x5451,0x19d));const a944_0x47ce=function(_0x5f267b,_0x5451bb){_0x5f267b=_0x5f267b-0x0;let _0x47ce29=a944_0x5451[_0x5f267b];return _0x47ce29;};const _0x3756a1=a944_0x47ce;'use strict';const util=require(_0x3756a1('0x15')),logger=require('../config/logger')(_0x3756a1('0x1f')),Sequence=function(){};Sequence[_0x3756a1('0x22')][_0x3756a1('0x20')]=function(_0x4875c4){const _0x3481d9=_0x3756a1;this['tail']=this[_0x3481d9('0x7')]?this[_0x3481d9('0x7')][_0x3481d9('0x5')](_0x4875c4):_0x4875c4();};const Migration=function(_0x5e0bd7){const _0x1b4336=_0x3756a1;this['queryInterface']=_0x5e0bd7,this[_0x1b4336('0x2b')]=new Sequence();};Migration[_0x3756a1('0x22')]['changeColumn']=function(_0x357a22,_0x2a32d0,_0x38b6c7){const _0x1231d5=_0x3756a1,_0x523525=this;this[_0x1231d5('0x2b')][_0x1231d5('0x20')](function(){const _0x37ef72=_0x1231d5;return _0x523525['queryInterface'][_0x37ef72('0x1')](_0x357a22,_0x2a32d0,_0x38b6c7)[_0x37ef72('0x9')](function(){const _0x365563=_0x37ef72;logger[_0x365563('0xc')](_0x365563('0x29'),_0x2a32d0,_0x357a22);})['catch'](function(_0x9bc461){const _0x4377c8=_0x37ef72;logger[_0x4377c8('0xc')](JSON[_0x4377c8('0x18')](_0x9bc461));});});},Migration[_0x3756a1('0x22')][_0x3756a1('0x2f')]=function(_0x3bd767,_0x2059fc,_0xc38682){const _0xe4af1=_0x3756a1,_0x45a9d0=this;this[_0xe4af1('0x2b')][_0xe4af1('0x20')](function(){const _0x1bcef0=_0xe4af1;return _0x45a9d0[_0x1bcef0('0x21')][_0x1bcef0('0x2f')](_0x3bd767,_0x2059fc,_0xc38682)[_0x1bcef0('0x9')](function(){const _0x2e5e67=_0x1bcef0;logger['info'](_0x2e5e67('0x2d'),_0x2059fc,_0x3bd767);})[_0x1bcef0('0x19')](function(_0x20e31b){const _0x44d63e=_0x1bcef0;logger[_0x44d63e('0xc')](JSON[_0x44d63e('0x18')](_0x20e31b));});});},Migration[_0x3756a1('0x22')][_0x3756a1('0x12')]=function(_0x522ad8){const _0x18bc40=_0x3756a1,_0x5bb7a3=this;this['sequence'][_0x18bc40('0x20')](function(){const _0x240341=_0x18bc40;return _0x5bb7a3['queryInterface'][_0x240341('0x12')](_0x522ad8,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x522ad8);})[_0x240341('0x19')](function(_0x378a51){const _0x10e566=_0x240341;logger[_0x10e566('0xc')](JSON[_0x10e566('0x18')](_0x378a51));});});},Migration[_0x3756a1('0x22')][_0x3756a1('0x10')]=function(_0x5dd621,_0xba7d8e,_0x1f8430){const _0x54422c=_0x3756a1,_0x2698a5=this;this['sequence'][_0x54422c('0x20')](function(){const _0x4f4e4c=_0x54422c;return _0x2698a5[_0x4f4e4c('0x21')][_0x4f4e4c('0x10')](_0x5dd621,_0xba7d8e,{'indexName':_0x1f8430})[_0x4f4e4c('0x9')](function(){const _0x2d142f=_0x4f4e4c;logger[_0x2d142f('0xc')](_0x2d142f('0x17'),_0x5dd621,_0xba7d8e[_0x2d142f('0xb')](','),_0x1f8430);})['catch'](function(_0x1c7574){const _0x2706d9=_0x4f4e4c;logger[_0x2706d9('0xc')](JSON['stringify'](_0x1c7574));});});},Migration[_0x3756a1('0x22')]['removeIndex']=function(_0x2c6878,_0x35a07c){const _0x4019d6=_0x3756a1,_0x510a9f=this;this[_0x4019d6('0x2b')]['enqueue'](function(){const _0x408067=_0x4019d6;return _0x510a9f[_0x408067('0x21')]['removeIndex'](_0x2c6878,_0x35a07c)['then'](function(){const _0xf40eba=_0x408067;logger[_0xf40eba('0xc')](_0xf40eba('0x8'),_0x2c6878,_0x35a07c);})['catch'](function(_0x89242e){const _0x57eb82=_0x408067;logger[_0x57eb82('0xc')](JSON[_0x57eb82('0x18')](_0x89242e));});});},Migration['prototype'][_0x3756a1('0x28')]=function(_0x44edd2){const _0x2e55df=_0x3756a1,_0xfd694b=this;this[_0x2e55df('0x2b')]['enqueue'](function(){const _0x262999=_0x2e55df;return _0xfd694b['queryInterface'][_0x262999('0x2c')][_0x262999('0x28')](_0x44edd2)[_0x262999('0x9')](function(){const _0x4ff17b=_0x262999;logger[_0x4ff17b('0xc')](_0x4ff17b('0x6'),_0x44edd2);})[_0x262999('0x19')](function(_0xb21e12){const _0x4392b1=_0x262999;logger[_0x4392b1('0xc')](JSON[_0x4392b1('0x18')](_0xb21e12));});});},Migration['prototype'][_0x3756a1('0xd')]=function(_0xb75dc9,_0x2be8c7){const _0x1c17a8=_0x3756a1,_0x56f58d=this;this[_0x1c17a8('0x2b')][_0x1c17a8('0x20')](function(){const _0x5d45cf=_0x1c17a8;return _0x56f58d[_0x5d45cf('0x21')]['removeColumn'](_0xb75dc9,_0x2be8c7)['then'](function(){const _0x135266=_0x5d45cf;logger[_0x135266('0xc')](_0x135266('0x16'),_0x2be8c7,_0xb75dc9);})[_0x5d45cf('0x19')](function(_0x83f0cc){const _0x1b1868=_0x5d45cf;logger[_0x1b1868('0xc')](util[_0x1b1868('0x24')](_0x83f0cc,{'showHidden':![],'depth':null}));});});},Migration[_0x3756a1('0x22')][_0x3756a1('0x2e')]=function(_0x292d27,_0x18cf07,_0x3c93e8){const _0x34c9a3=_0x3756a1,_0x2c2327=this;this[_0x34c9a3('0x2b')][_0x34c9a3('0x20')](function(){const _0x58c468=_0x34c9a3;return _0x2c2327[_0x58c468('0x21')][_0x58c468('0x2e')](_0x292d27,_0x18cf07,_0x3c93e8)[_0x58c468('0x9')](function(){const _0x302653=_0x58c468;logger[_0x302653('0xc')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x18cf07,_0x3c93e8,_0x292d27);})[_0x58c468('0x19')](function(_0x501bbe){const _0x17ba06=_0x58c468;logger[_0x17ba06('0xc')](util[_0x17ba06('0x24')](_0x501bbe,{'showHidden':![],'depth':null}));});});},Migration[_0x3756a1('0x22')][_0x3756a1('0x3')]=function(_0x48a579){const _0x11b43c=_0x3756a1;this[_0x11b43c('0x2b')][_0x11b43c('0x20')](function(){return _0x48a579();});},module['exports']={'up':function(_0xfdc64d,_0x328457){return new Promise(function(_0x4f8461){const _0x491264=a944_0x47ce,_0x61715b=new Migration(_0xfdc64d);_0x61715b[_0x491264('0x2f')](_0x491264('0xf'),_0x491264('0x1a'),{'type':_0x328457[_0x491264('0x13')](0x3)[_0x491264('0x25')],'defaultValue':0x0}),_0x61715b[_0x491264('0x2f')]('voice_queues',_0x491264('0x4'),{'type':_0x328457[_0x491264('0x13')](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x61715b[_0x491264('0x2f')](_0x491264('0x1d'),'dialRandomLastDigitCallerIdNumber',{'type':_0x328457[_0x491264('0x13')](0x3)[_0x491264('0x25')],'defaultValue':0x0}),_0x61715b[_0x491264('0x2f')](_0x491264('0x1d'),'dialCutDigit',{'type':_0x328457[_0x491264('0x13')](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x61715b[_0x491264('0x2f')]('cm_contacts',_0x491264('0x11'),{'type':_0x328457['STRING']}),_0x61715b['query'](_0x491264('0x27')),_0x61715b[_0x491264('0x28')](_0x491264('0x14')),_0x61715b[_0x491264('0x28')](_0x491264('0x2')),_0x61715b[_0x491264('0x28')](_0x491264('0x26')),_0x61715b['query'](_0x491264('0x1e')),_0x61715b[_0x491264('0x28')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x61715b[_0x491264('0x28')](_0x491264('0x2a')),_0x61715b[_0x491264('0x28')](_0x491264('0x23')),_0x61715b[_0x491264('0x28')](_0x491264('0x1b')),_0x61715b['query'](_0x491264('0xe')),_0x61715b['query'](_0x491264('0x0')),_0x61715b['query'](_0x491264('0xa')),_0x61715b[_0x491264('0x28')](_0x491264('0x1c')),_0x61715b[_0x491264('0x28')]('ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL'),_0x61715b[_0x491264('0x28')]('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;'),_0x61715b['query']('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;'),_0x61715b[_0x491264('0x3')](_0x4f8461);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.66.js b/server/migrations/2.0.66.js index f16b7b8..c5ea063 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a945_0x4264=['finally','mail_interactions','final','sequelize','join','info','changeColumn','addIndex','renameColumn','field','long','splitSizeXlsx','removeIndex','splitSizeCsv','queueTransferTimeout','INTEGER','analytics_report_fields','viber','inspect','then','mail_accounts','tools_schedules','removeColumn','catch','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','Changed\x20column\x20%s\x20in\x20table\x20%s','lastMsgBody','phoneBarPrefixRequired','stringify','query','addColumn','queryInterface','BOOLEAN','bcc','Added\x20column\x20%s\x20to\x20%s','migration','prototype','agentTransfer','settings','subject','tail','../config/logger','Removed\x20column\x20%s\x20from\x20%s','split','queueTransfer','table\x20dropped\x20%s','dropTable','TEXT','STRING','sequence'];(function(_0x8412e8,_0x4264f1){const _0x2adcc8=function(_0x39c1b9){while(--_0x39c1b9){_0x8412e8['push'](_0x8412e8['shift']());}};_0x2adcc8(++_0x4264f1);}(a945_0x4264,0xa7));const a945_0x2adc=function(_0x8412e8,_0x4264f1){_0x8412e8=_0x8412e8-0x0;let _0x2adcc8=a945_0x4264[_0x8412e8];return _0x2adcc8;};const _0x3cf507=a945_0x2adc;'use strict';const util=require('util'),logger=require(_0x3cf507('0x24'))(_0x3cf507('0x1e')),Sequence=function(){};Sequence['prototype'][_0x3cf507('0x12')]=function(_0x39c1b9){const _0x41d4f5=_0x3cf507;this[_0x41d4f5('0x23')]=this[_0x41d4f5('0x23')]?this[_0x41d4f5('0x23')][_0x41d4f5('0x2d')](_0x39c1b9):_0x39c1b9();};const Migration=function(_0x4a81c3){const _0x360551=_0x3cf507;this[_0x360551('0x1a')]=_0x4a81c3,this[_0x360551('0x2c')]=new Sequence();};Migration[_0x3cf507('0x1f')]['changeColumn']=function(_0x375ba8,_0x14a389,_0x5c5d33){const _0x2ee266=_0x3cf507,_0x2558f2=this;this[_0x2ee266('0x2c')]['enqueue'](function(){const _0x2e02df=_0x2ee266;return _0x2558f2[_0x2e02df('0x1a')]['changeColumn'](_0x375ba8,_0x14a389,_0x5c5d33)['then'](function(){const _0x1f8596=_0x2e02df;logger[_0x1f8596('0x32')](_0x1f8596('0x14'),_0x14a389,_0x375ba8);})[_0x2e02df('0xf')](function(_0x2b578f){const _0x449aac=_0x2e02df;logger[_0x449aac('0x32')](JSON[_0x449aac('0x17')](_0x2b578f));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0x19')]=function(_0x4cc81b,_0xbb0233,_0x5ec518){const _0x3d1f91=_0x3cf507,_0xdf602d=this;this['sequence'][_0x3d1f91('0x12')](function(){const _0x51d75a=_0x3d1f91;return _0xdf602d['queryInterface'][_0x51d75a('0x19')](_0x4cc81b,_0xbb0233,_0x5ec518)['then'](function(){const _0x5f04d0=_0x51d75a;logger[_0x5f04d0('0x32')](_0x5f04d0('0x1d'),_0xbb0233,_0x4cc81b);})['catch'](function(_0x55ebae){const _0x26c393=_0x51d75a;logger[_0x26c393('0x32')](JSON['stringify'](_0x55ebae));});});},Migration['prototype'][_0x3cf507('0x29')]=function(_0x45020d){const _0x27006b=this;this['sequence']['enqueue'](function(){const _0x3f1ea5=a945_0x2adc;return _0x27006b[_0x3f1ea5('0x1a')][_0x3f1ea5('0x29')](_0x45020d,{'force':!![]})[_0x3f1ea5('0xb')](function(){const _0x138a53=_0x3f1ea5;logger['info'](_0x138a53('0x28'),_0x45020d);})[_0x3f1ea5('0xf')](function(_0x3952cf){const _0x4633f6=_0x3f1ea5;logger[_0x4633f6('0x32')](JSON[_0x4633f6('0x17')](_0x3952cf));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0x34')]=function(_0x52a014,_0x521356,_0x4be15e){const _0x515975=_0x3cf507,_0x3faa4e=this;this[_0x515975('0x2c')][_0x515975('0x12')](function(){const _0x56b288=_0x515975;return _0x3faa4e[_0x56b288('0x1a')][_0x56b288('0x34')](_0x52a014,_0x521356,{'indexName':_0x4be15e})[_0x56b288('0xb')](function(){const _0x1e80f8=_0x56b288;logger[_0x1e80f8('0x32')](_0x1e80f8('0x10'),_0x52a014,_0x521356[_0x1e80f8('0x31')](','),_0x4be15e);})[_0x56b288('0xf')](function(_0x34018a){const _0x23b341=_0x56b288;logger[_0x23b341('0x32')](JSON[_0x23b341('0x17')](_0x34018a));});});},Migration[_0x3cf507('0x1f')]['removeIndex']=function(_0x1cc1d7,_0x82f297){const _0x3cd003=_0x3cf507,_0xb12c65=this;this[_0x3cd003('0x2c')]['enqueue'](function(){const _0x4edabf=_0x3cd003;return _0xb12c65[_0x4edabf('0x1a')][_0x4edabf('0x4')](_0x1cc1d7,_0x82f297)[_0x4edabf('0xb')](function(){const _0x17440d=_0x4edabf;logger[_0x17440d('0x32')]('removeIndex\x20%s\x20%s',_0x1cc1d7,_0x82f297);})[_0x4edabf('0xf')](function(_0x499cc5){const _0x1a0cf4=_0x4edabf;logger[_0x1a0cf4('0x32')](JSON[_0x1a0cf4('0x17')](_0x499cc5));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0x18')]=function(_0xe74523){const _0xb3b1c4=_0x3cf507,_0x5cb365=this;this[_0xb3b1c4('0x2c')][_0xb3b1c4('0x12')](function(){const _0x43dd9f=_0xb3b1c4;return _0x5cb365[_0x43dd9f('0x1a')][_0x43dd9f('0x30')][_0x43dd9f('0x18')](_0xe74523)['then'](function(){logger['info']('query\x20%s',_0xe74523);})[_0x43dd9f('0xf')](function(_0x567a76){const _0x59e044=_0x43dd9f;logger[_0x59e044('0x32')](JSON['stringify'](_0x567a76));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0xe')]=function(_0x57994e,_0x29bccb){const _0x3343e2=_0x3cf507,_0x54a1cb=this;this[_0x3343e2('0x2c')][_0x3343e2('0x12')](function(){const _0x894af9=_0x3343e2;return _0x54a1cb[_0x894af9('0x1a')][_0x894af9('0xe')](_0x57994e,_0x29bccb)['then'](function(){const _0x685228=_0x894af9;logger[_0x685228('0x32')](_0x685228('0x25'),_0x29bccb,_0x57994e);})[_0x894af9('0xf')](function(_0x2dec99){const _0x1c3ff7=_0x894af9;logger[_0x1c3ff7('0x32')](util[_0x1c3ff7('0xa')](_0x2dec99,{'showHidden':![],'depth':null}));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0x0')]=function(_0xdecd28,_0x3ea5ab,_0x24dec9){const _0x1e801f=_0x3cf507,_0xbe2b08=this;this[_0x1e801f('0x2c')][_0x1e801f('0x12')](function(){const _0x2cdce8=_0x1e801f;return _0xbe2b08[_0x2cdce8('0x1a')]['renameColumn'](_0xdecd28,_0x3ea5ab,_0x24dec9)['then'](function(){const _0x3ea792=_0x2cdce8;logger[_0x3ea792('0x32')](_0x3ea792('0x11'),_0x3ea5ab,_0x24dec9,_0xdecd28);})[_0x2cdce8('0xf')](function(_0x29fb98){const _0x1d198=_0x2cdce8;logger['info'](util[_0x1d198('0xa')](_0x29fb98,{'showHidden':![],'depth':null}));});});},Migration[_0x3cf507('0x1f')][_0x3cf507('0x2f')]=function(_0xb09434){const _0x270648=_0x3cf507;this[_0x270648('0x2c')][_0x270648('0x12')](function(){return _0xb09434();});},module['exports']={'up':function(_0x5b14a2,_0x30b0c6){return new Promise(function(_0x46586c){const _0x54bf99=a945_0x2adc,_0x123961=new Migration(_0x5b14a2);_0x123961['changeColumn'](_0x54bf99('0x8'),_0x54bf99('0x1'),{'type':_0x30b0c6['TEXT']}),_0x123961[_0x54bf99('0x19')](_0x54bf99('0xd'),'cc',{'type':_0x30b0c6['TEXT']}),_0x123961[_0x54bf99('0x19')](_0x54bf99('0xd'),_0x54bf99('0x1c'),{'type':_0x30b0c6[_0x54bf99('0x2a')]}),_0x123961['addColumn'](_0x54bf99('0x21'),_0x54bf99('0x26'),{'type':_0x30b0c6[_0x54bf99('0x1b')],'defaultValue':!![]}),_0x123961[_0x54bf99('0x19')]('settings',_0x54bf99('0x5'),{'type':_0x30b0c6[_0x54bf99('0x7')],'defaultValue':0x1388}),_0x123961[_0x54bf99('0x19')]('settings','splitSizePdf',{'type':_0x30b0c6[_0x54bf99('0x7')],'defaultValue':0x3e8}),_0x123961['addColumn'](_0x54bf99('0x21'),_0x54bf99('0x3'),{'type':_0x30b0c6[_0x54bf99('0x7')],'defaultValue':0x1388}),_0x123961['addColumn'](_0x54bf99('0xc'),_0x54bf99('0x27'),{'type':_0x30b0c6['BOOLEAN'],'defaultValue':![]}),_0x123961[_0x54bf99('0x19')](_0x54bf99('0xc'),_0x54bf99('0x6'),{'type':_0x30b0c6[_0x54bf99('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x123961[_0x54bf99('0x19')](_0x54bf99('0xc'),_0x54bf99('0x20'),{'type':_0x30b0c6[_0x54bf99('0x1b')],'defaultValue':![]}),_0x123961[_0x54bf99('0x19')](_0x54bf99('0xc'),'agentTransferTimeout',{'type':_0x30b0c6[_0x54bf99('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x123961[_0x54bf99('0x19')]('users',_0x54bf99('0x16'),{'type':_0x30b0c6['BOOLEAN'],'defaultValue':![]}),_0x123961['changeColumn']('mail_interactions',_0x54bf99('0x22'),{'type':_0x30b0c6[_0x54bf99('0x2a')]('')+_0x54bf99('0x13')}),_0x123961[_0x54bf99('0x33')](_0x54bf99('0x2e'),_0x54bf99('0x15'),{'type':_0x30b0c6['TEXT'](_0x54bf99('0x2'))+_0x54bf99('0x13')}),_0x123961[_0x54bf99('0x19')]('cm_contacts',_0x54bf99('0x9'),{'type':_0x30b0c6[_0x54bf99('0x2b')]}),_0x123961[_0x54bf99('0x2f')](_0x46586c);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.67.js b/server/migrations/2.0.67.js index 3103c7f..e1773c7 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a946_0xe1a8=['../config/logger','final','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;','tail','removeIndex\x20%s\x20%s','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;','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;','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','then','long','sequence','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','originTo','migration','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;','enqueue','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;','addColumn','TEXT','info','stringify','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;','mail_messages','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','util','queryInterface','finally','inspect','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;','addIndex','changeColumn','query','originCc','removeColumn','prototype','exports','join','INSERT\x20INTO\x20user_has_sms_accounts\x20(`UserId`,\x20`SmsAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`SmsAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20sms_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','INSERT\x20INTO\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;','INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','renameColumn','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;','dropTable'];(function(_0x20fbf8,_0xe1a81b){const _0x261dfa=function(_0x3eeb74){while(--_0x3eeb74){_0x20fbf8['push'](_0x20fbf8['shift']());}};_0x261dfa(++_0xe1a81b);}(a946_0xe1a8,0x105));const a946_0x261d=function(_0x20fbf8,_0xe1a81b){_0x20fbf8=_0x20fbf8-0x0;let _0x261dfa=a946_0xe1a8[_0x20fbf8];return _0x261dfa;};const _0x5e1f89=a946_0x261d;'use strict';const util=require(_0x5e1f89('0x2a')),logger=require(_0x5e1f89('0xf'))(_0x5e1f89('0x1e')),Sequence=function(){};Sequence[_0x5e1f89('0x6')]['enqueue']=function(_0x3eeb74){const _0x38387a=_0x5e1f89;this[_0x38387a('0x12')]=this['tail']?this[_0x38387a('0x12')][_0x38387a('0x2c')](_0x3eeb74):_0x3eeb74();};const Migration=function(_0x359e2a){const _0x498833=_0x5e1f89;this[_0x498833('0x2b')]=_0x359e2a,this[_0x498833('0x1a')]=new Sequence();};Migration['prototype'][_0x5e1f89('0x2')]=function(_0x44870b,_0x4ace52,_0x43d19c){const _0x596d8a=_0x5e1f89,_0x530bf4=this;this[_0x596d8a('0x1a')][_0x596d8a('0x20')](function(){const _0x11fdf0=_0x596d8a;return _0x530bf4[_0x11fdf0('0x2b')][_0x11fdf0('0x2')](_0x44870b,_0x4ace52,_0x43d19c)['then'](function(){const _0x468464=_0x11fdf0;logger[_0x468464('0x24')](_0x468464('0x16'),_0x4ace52,_0x44870b);})['catch'](function(_0x4ca356){const _0x7fa2d2=_0x11fdf0;logger['info'](JSON[_0x7fa2d2('0x25')](_0x4ca356));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0x22')]=function(_0x153231,_0x3d5382,_0x27c9f9){const _0x235859=_0x5e1f89,_0x4e71c5=this;this[_0x235859('0x1a')]['enqueue'](function(){const _0x4a5e64=_0x235859;return _0x4e71c5[_0x4a5e64('0x2b')][_0x4a5e64('0x22')](_0x153231,_0x3d5382,_0x27c9f9)[_0x4a5e64('0x18')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3d5382,_0x153231);})[_0x4a5e64('0x1b')](function(_0x1e0ede){const _0x2c523a=_0x4a5e64;logger[_0x2c523a('0x24')](JSON['stringify'](_0x1e0ede));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0xe')]=function(_0x4e664a){const _0x1e43ed=this;this['sequence']['enqueue'](function(){const _0x496a5e=a946_0x261d;return _0x1e43ed['queryInterface'][_0x496a5e('0xe')](_0x4e664a,{'force':!![]})[_0x496a5e('0x18')](function(){const _0x228a90=_0x496a5e;logger[_0x228a90('0x24')]('table\x20dropped\x20%s',_0x4e664a);})[_0x496a5e('0x1b')](function(_0xc893e5){const _0x1ebb79=_0x496a5e;logger[_0x1ebb79('0x24')](JSON[_0x1ebb79('0x25')](_0xc893e5));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0x1')]=function(_0x15cd3b,_0x40109c,_0x5a7328){const _0x2b5edf=_0x5e1f89,_0x4f09fb=this;this[_0x2b5edf('0x1a')][_0x2b5edf('0x20')](function(){const _0x5a6411=_0x2b5edf;return _0x4f09fb['queryInterface'][_0x5a6411('0x1')](_0x15cd3b,_0x40109c,{'indexName':_0x5a7328})[_0x5a6411('0x18')](function(){const _0x2c6f09=_0x5a6411;logger[_0x2c6f09('0x24')]('addIndex\x20%s\x20%s\x20%s',_0x15cd3b,_0x40109c[_0x2c6f09('0x8')](','),_0x5a7328);})['catch'](function(_0x3b13da){const _0x3a9f29=_0x5a6411;logger[_0x3a9f29('0x24')](JSON[_0x3a9f29('0x25')](_0x3b13da));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0x17')]=function(_0x55db63,_0xeab273){const _0x3c6b5f=_0x5e1f89,_0x3e9960=this;this[_0x3c6b5f('0x1a')]['enqueue'](function(){const _0x370035=_0x3c6b5f;return _0x3e9960[_0x370035('0x2b')][_0x370035('0x17')](_0x55db63,_0xeab273)['then'](function(){const _0x29fef5=_0x370035;logger[_0x29fef5('0x24')](_0x29fef5('0x13'),_0x55db63,_0xeab273);})[_0x370035('0x1b')](function(_0x4f0599){const _0x1429f5=_0x370035;logger[_0x1429f5('0x24')](JSON['stringify'](_0x4f0599));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0x3')]=function(_0xb678a4){const _0x1eecbb=this;this['sequence']['enqueue'](function(){const _0xd53738=a946_0x261d;return _0x1eecbb[_0xd53738('0x2b')]['sequelize'][_0xd53738('0x3')](_0xb678a4)[_0xd53738('0x18')](function(){const _0x13751d=_0xd53738;logger[_0x13751d('0x24')](_0x13751d('0x29'),_0xb678a4);})[_0xd53738('0x1b')](function(_0x5853a6){const _0x51173f=_0xd53738;logger['info'](JSON[_0x51173f('0x25')](_0x5853a6));});});},Migration['prototype'][_0x5e1f89('0x5')]=function(_0xcfe1e1,_0x4ea3ae){const _0x59d83b=_0x5e1f89,_0x654566=this;this['sequence'][_0x59d83b('0x20')](function(){const _0x29d80c=_0x59d83b;return _0x654566['queryInterface'][_0x29d80c('0x5')](_0xcfe1e1,_0x4ea3ae)['then'](function(){const _0x882c38=_0x29d80c;logger[_0x882c38('0x24')](_0x882c38('0x28'),_0x4ea3ae,_0xcfe1e1);})['catch'](function(_0x59d28d){const _0x3dd0f7=_0x29d80c;logger[_0x3dd0f7('0x24')](util['inspect'](_0x59d28d,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x38803c,_0x343577,_0x4aac5b){const _0x2e1a20=_0x5e1f89,_0x103b78=this;this[_0x2e1a20('0x1a')][_0x2e1a20('0x20')](function(){const _0x5908a3=_0x2e1a20;return _0x103b78[_0x5908a3('0x2b')][_0x5908a3('0xc')](_0x38803c,_0x343577,_0x4aac5b)[_0x5908a3('0x18')](function(){const _0x3c5a9b=_0x5908a3;logger[_0x3c5a9b('0x24')](_0x3c5a9b('0x1c'),_0x343577,_0x4aac5b,_0x38803c);})['catch'](function(_0x1756c7){const _0x1fc7e2=_0x5908a3;logger[_0x1fc7e2('0x24')](util[_0x1fc7e2('0x2d')](_0x1756c7,{'showHidden':![],'depth':null}));});});},Migration[_0x5e1f89('0x6')][_0x5e1f89('0x10')]=function(_0x21b294){const _0x3f22dd=_0x5e1f89;this['sequence'][_0x3f22dd('0x20')](function(){return _0x21b294();});},module[_0x5e1f89('0x7')]={'up':function(_0x32e957,_0x50cc59){return new Promise(function(_0x13d802){const _0x1c10a1=a946_0x261d,_0x92e8c3=new Migration(_0x32e957),_0x4d51ad='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;';_0x92e8c3[_0x1c10a1('0x3')](_0x4d51ad),_0x92e8c3['query'](_0x1c10a1('0x21')),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0xd')),_0x92e8c3[_0x1c10a1('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;'),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0xa')),_0x92e8c3[_0x1c10a1('0x3')]('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;'),_0x92e8c3['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;'),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0x26')),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0xb')),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0x15')),_0x92e8c3['query'](_0x1c10a1('0x1f')),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0x0')),_0x92e8c3[_0x1c10a1('0x3')]('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;'),_0x92e8c3['query'](_0x1c10a1('0x11')),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0x9')),_0x92e8c3[_0x1c10a1('0x3')]('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;'),_0x92e8c3[_0x1c10a1('0x3')](_0x1c10a1('0x14')),_0x92e8c3[_0x1c10a1('0x22')](_0x1c10a1('0x27'),_0x1c10a1('0x1d'),{'type':_0x50cc59[_0x1c10a1('0x23')](_0x1c10a1('0x19'))}),_0x92e8c3[_0x1c10a1('0x22')](_0x1c10a1('0x27'),_0x1c10a1('0x4'),{'type':_0x50cc59['TEXT'](_0x1c10a1('0x19'))}),_0x92e8c3[_0x1c10a1('0x10')](_0x13d802);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.68.js b/server/migrations/2.0.68.js index 4fccf23..d802acc 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a947_0xd535=['inspect','changeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','removeColumn','sequelize','prototype','enqueue','stringify','removeIndex','sequence','catch','settings','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','tail','join','Removed\x20column\x20%s\x20from\x20%s','STRING','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','util','mapKey','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','addColumn','renameColumn','exports','dropTable','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','queryInterface','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','then','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','messagesAlignment','query','info'];(function(_0x41757c,_0xd535df){const _0x1be74c=function(_0x394b6b){while(--_0x394b6b){_0x41757c['push'](_0x41757c['shift']());}};_0x1be74c(++_0xd535df);}(a947_0xd535,0xf0));const a947_0x1be7=function(_0x41757c,_0xd535df){_0x41757c=_0x41757c-0x0;let _0x1be74c=a947_0xd535[_0x41757c];return _0x1be74c;};const _0x2c299b=a947_0x1be7;'use strict';const util=require(_0x2c299b('0x2')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x2c299b('0x18')][_0x2c299b('0x19')]=function(_0x394b6b){const _0x456bbf=_0x2c299b;this[_0x456bbf('0x21')]=this[_0x456bbf('0x21')]?this[_0x456bbf('0x21')][_0x456bbf('0x5')](_0x394b6b):_0x394b6b();};const Migration=function(_0x4b4d96){const _0x511f4b=_0x2c299b;this[_0x511f4b('0xc')]=_0x4b4d96,this[_0x511f4b('0x1c')]=new Sequence();};Migration[_0x2c299b('0x18')][_0x2c299b('0x14')]=function(_0x2dff7b,_0x23fcfe,_0x5e0ee6){const _0x36343b=_0x2c299b,_0x3a6cdc=this;this[_0x36343b('0x1c')][_0x36343b('0x19')](function(){const _0x33e566=_0x36343b;return _0x3a6cdc[_0x33e566('0xc')]['changeColumn'](_0x2dff7b,_0x23fcfe,_0x5e0ee6)[_0x33e566('0xe')](function(){const _0x4d941d=_0x33e566;logger[_0x4d941d('0x12')](_0x4d941d('0x4'),_0x23fcfe,_0x2dff7b);})[_0x33e566('0x1d')](function(_0xc0ac94){const _0x41d20a=_0x33e566;logger[_0x41d20a('0x12')](JSON['stringify'](_0xc0ac94));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x6')]=function(_0x1e16d7,_0x8d9561,_0x491e14){const _0x51952e=this;this['sequence']['enqueue'](function(){const _0x571084=a947_0x1be7;return _0x51952e['queryInterface']['addColumn'](_0x1e16d7,_0x8d9561,_0x491e14)['then'](function(){const _0xc28577=a947_0x1be7;logger[_0xc28577('0x12')](_0xc28577('0x1'),_0x8d9561,_0x1e16d7);})[_0x571084('0x1d')](function(_0x391219){const _0x30cc84=_0x571084;logger[_0x30cc84('0x12')](JSON[_0x30cc84('0x1a')](_0x391219));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x9')]=function(_0xf501f9){const _0x1dc356=_0x2c299b,_0xc8c84e=this;this['sequence'][_0x1dc356('0x19')](function(){const _0x5dfae4=_0x1dc356;return _0xc8c84e[_0x5dfae4('0xc')][_0x5dfae4('0x9')](_0xf501f9,{'force':!![]})['then'](function(){const _0x392c17=_0x5dfae4;logger[_0x392c17('0x12')](_0x392c17('0x1f'),_0xf501f9);})['catch'](function(_0x1f4eaf){const _0x908567=_0x5dfae4;logger[_0x908567('0x12')](JSON['stringify'](_0x1f4eaf));});});},Migration[_0x2c299b('0x18')]['addIndex']=function(_0x203286,_0x292f78,_0x51b432){const _0x4e056d=_0x2c299b,_0x532828=this;this[_0x4e056d('0x1c')][_0x4e056d('0x19')](function(){const _0x8ef477=_0x4e056d;return _0x532828[_0x8ef477('0xc')]['addIndex'](_0x203286,_0x292f78,{'indexName':_0x51b432})[_0x8ef477('0xe')](function(){const _0x5bff12=_0x8ef477;logger[_0x5bff12('0x12')](_0x5bff12('0x0'),_0x203286,_0x292f78[_0x5bff12('0x22')](','),_0x51b432);})[_0x8ef477('0x1d')](function(_0x17fb22){const _0x2630bb=_0x8ef477;logger[_0x2630bb('0x12')](JSON['stringify'](_0x17fb22));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x1b')]=function(_0xea5cf4,_0x340af5){const _0x4f4355=_0x2c299b,_0x5cbe51=this;this[_0x4f4355('0x1c')]['enqueue'](function(){const _0x54eb5f=_0x4f4355;return _0x5cbe51[_0x54eb5f('0xc')][_0x54eb5f('0x1b')](_0xea5cf4,_0x340af5)[_0x54eb5f('0xe')](function(){const _0x509ae4=_0x54eb5f;logger['info'](_0x509ae4('0x20'),_0xea5cf4,_0x340af5);})[_0x54eb5f('0x1d')](function(_0x559fa2){const _0x1fa361=_0x54eb5f;logger[_0x1fa361('0x12')](JSON[_0x1fa361('0x1a')](_0x559fa2));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x11')]=function(_0x2ad4ff){const _0x1d2893=_0x2c299b,_0x562b8a=this;this[_0x1d2893('0x1c')][_0x1d2893('0x19')](function(){const _0x4555a1=_0x1d2893;return _0x562b8a[_0x4555a1('0xc')][_0x4555a1('0x17')][_0x4555a1('0x11')](_0x2ad4ff)[_0x4555a1('0xe')](function(){const _0xfe27f5=_0x4555a1;logger[_0xfe27f5('0x12')]('query\x20%s',_0x2ad4ff);})[_0x4555a1('0x1d')](function(_0x266dc1){const _0xd4e623=_0x4555a1;logger[_0xd4e623('0x12')](JSON[_0xd4e623('0x1a')](_0x266dc1));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x16')]=function(_0x1efb9f,_0x17094f){const _0x573e5d=_0x2c299b,_0x35d7b6=this;this[_0x573e5d('0x1c')]['enqueue'](function(){const _0x29c569=_0x573e5d;return _0x35d7b6[_0x29c569('0xc')][_0x29c569('0x16')](_0x1efb9f,_0x17094f)[_0x29c569('0xe')](function(){const _0x11127a=_0x29c569;logger['info'](_0x11127a('0x23'),_0x17094f,_0x1efb9f);})[_0x29c569('0x1d')](function(_0x2def91){const _0x4802bb=_0x29c569;logger[_0x4802bb('0x12')](util['inspect'](_0x2def91,{'showHidden':![],'depth':null}));});});},Migration[_0x2c299b('0x18')][_0x2c299b('0x7')]=function(_0x65484f,_0xcc07a9,_0x2c2422){const _0x1f921c=_0x2c299b,_0x41fe75=this;this[_0x1f921c('0x1c')][_0x1f921c('0x19')](function(){const _0x1ec944=_0x1f921c;return _0x41fe75[_0x1ec944('0xc')][_0x1ec944('0x7')](_0x65484f,_0xcc07a9,_0x2c2422)[_0x1ec944('0xe')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xcc07a9,_0x2c2422,_0x65484f);})['catch'](function(_0x42e2ab){const _0xd2355e=_0x1ec944;logger[_0xd2355e('0x12')](util[_0xd2355e('0x13')](_0x42e2ab,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x50f1ba){const _0x239e3a=_0x2c299b;this[_0x239e3a('0x1c')][_0x239e3a('0x19')](function(){return _0x50f1ba();});},module[_0x2c299b('0x8')]={'up':function(_0x9af1d3,_0x2b5aae){return new Promise(function(_0x1b7086){const _0x56ca30=a947_0x1be7,_0x345daf=new Migration(_0x9af1d3);_0x345daf[_0x56ca30('0x11')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x345daf[_0x56ca30('0x11')](_0x56ca30('0xb')),_0x345daf[_0x56ca30('0x11')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x345daf[_0x56ca30('0x11')](_0x56ca30('0xf')),_0x345daf[_0x56ca30('0x11')](_0x56ca30('0xd')),_0x345daf[_0x56ca30('0x11')](_0x56ca30('0x15')),_0x345daf[_0x56ca30('0x6')]('openchannel_accounts',_0x56ca30('0x3'),{'type':_0x2b5aae[_0x56ca30('0x24')]}),_0x345daf[_0x56ca30('0x6')]('chat_interactions','closeReason',{'type':_0x2b5aae[_0x56ca30('0x24')]}),_0x345daf[_0x56ca30('0x6')](_0x56ca30('0x1e'),_0x56ca30('0x10'),{'type':_0x2b5aae['STRING']}),_0x345daf[_0x56ca30('0x11')](_0x56ca30('0xa')),_0x345daf['final'](_0x1b7086);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.69.js b/server/migrations/2.0.69.js index 146b312..7b05f44 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a948_0x470d=['addColumn','prefix','changeColumn','catch','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','prototype','stringify','DELETE\x20FROM\x20`voice_prefixes`','VoiceExtensionId','TEXT','removeColumn','voice_prefixes','report_jscripty_questions','voice_extensions','info','finally','tools_sounds','migration','line','INTEGER','query\x20%s','../config/logger','final','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_contacts','table\x20dropped\x20%s','then','VoicePrefixId','removeIndex','report_call','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','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)))','dropTable','callerIdAll','chat_websites','STRING','messageFontSize','sequence','util','addIndex','long','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','inspect','report_jscripty_answers','addIndex\x20%s\x20%s\x20%s','enqueue','query','answer','Removed\x20column\x20%s\x20from\x20%s','renameColumn','queryInterface'];(function(_0x6385ef,_0x470d0f){const _0x5e4bb2=function(_0x3bbbe4){while(--_0x3bbbe4){_0x6385ef['push'](_0x6385ef['shift']());}};_0x5e4bb2(++_0x470d0f);}(a948_0x470d,0x164));const a948_0x5e4b=function(_0x6385ef,_0x470d0f){_0x6385ef=_0x6385ef-0x0;let _0x5e4bb2=a948_0x470d[_0x6385ef];return _0x5e4bb2;};const _0xb1489a=a948_0x5e4b;'use strict';const util=require(_0xb1489a('0x7')),logger=require(_0xb1489a('0x2b'))(_0xb1489a('0x27')),Sequence=function(){};Sequence[_0xb1489a('0x1b')][_0xb1489a('0x10')]=function(_0x3bbbe4){const _0x595170=_0xb1489a;this['tail']=this['tail']?this[_0x595170('0xc')][_0x595170('0x25')](_0x3bbbe4):_0x3bbbe4();};const Migration=function(_0x45cad9){const _0x48a402=_0xb1489a;this[_0x48a402('0x15')]=_0x45cad9,this['sequence']=new Sequence();};Migration[_0xb1489a('0x1b')]['changeColumn']=function(_0x5d6018,_0x47b3b5,_0x1ae971){const _0x14701e=_0xb1489a,_0x202d8f=this;this[_0x14701e('0x6')]['enqueue'](function(){const _0x30a891=_0x14701e;return _0x202d8f[_0x30a891('0x15')][_0x30a891('0x18')](_0x5d6018,_0x47b3b5,_0x1ae971)[_0x30a891('0x31')](function(){const _0x4d9e1f=_0x30a891;logger[_0x4d9e1f('0x24')](_0x4d9e1f('0xb'),_0x47b3b5,_0x5d6018);})[_0x30a891('0x19')](function(_0x3d2932){const _0x549f16=_0x30a891;logger[_0x549f16('0x24')](JSON[_0x549f16('0x1c')](_0x3d2932));});});},Migration['prototype'][_0xb1489a('0x16')]=function(_0x54b2c0,_0x5f28d1,_0x3f9ebe){const _0x58ae88=_0xb1489a,_0x33082b=this;this[_0x58ae88('0x6')][_0x58ae88('0x10')](function(){const _0xe157e2=_0x58ae88;return _0x33082b[_0xe157e2('0x15')][_0xe157e2('0x16')](_0x54b2c0,_0x5f28d1,_0x3f9ebe)[_0xe157e2('0x31')](function(){const _0x609b7e=_0xe157e2;logger[_0x609b7e('0x24')]('Added\x20column\x20%s\x20to\x20%s',_0x5f28d1,_0x54b2c0);})['catch'](function(_0x8703ef){const _0x1e8151=_0xe157e2;logger[_0x1e8151('0x24')](JSON[_0x1e8151('0x1c')](_0x8703ef));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x1')]=function(_0x3b7a17){const _0x3f0347=_0xb1489a,_0x4d098d=this;this[_0x3f0347('0x6')][_0x3f0347('0x10')](function(){const _0x1f4a7e=_0x3f0347;return _0x4d098d[_0x1f4a7e('0x15')][_0x1f4a7e('0x1')](_0x3b7a17,{'force':!![]})[_0x1f4a7e('0x31')](function(){const _0x4dc9dc=_0x1f4a7e;logger['info'](_0x4dc9dc('0x30'),_0x3b7a17);})[_0x1f4a7e('0x19')](function(_0x190be9){const _0x2eea54=_0x1f4a7e;logger[_0x2eea54('0x24')](JSON[_0x2eea54('0x1c')](_0x190be9));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x8')]=function(_0x806964,_0x401224,_0x233228){const _0x5eca2f=_0xb1489a,_0xadbe8c=this;this[_0x5eca2f('0x6')][_0x5eca2f('0x10')](function(){const _0x7bac83=_0x5eca2f;return _0xadbe8c[_0x7bac83('0x15')][_0x7bac83('0x8')](_0x806964,_0x401224,{'indexName':_0x233228})[_0x7bac83('0x31')](function(){const _0x2d4d7a=_0x7bac83;logger['info'](_0x2d4d7a('0xf'),_0x806964,_0x401224['join'](','),_0x233228);})[_0x7bac83('0x19')](function(_0x1aebba){const _0x3bc7ab=_0x7bac83;logger[_0x3bc7ab('0x24')](JSON[_0x3bc7ab('0x1c')](_0x1aebba));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x33')]=function(_0x55c633,_0x4f4387){const _0x45ea54=_0xb1489a,_0x223ffa=this;this[_0x45ea54('0x6')][_0x45ea54('0x10')](function(){const _0x3b5a85=_0x45ea54;return _0x223ffa['queryInterface'][_0x3b5a85('0x33')](_0x55c633,_0x4f4387)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x55c633,_0x4f4387);})['catch'](function(_0x585520){const _0x166fa1=_0x3b5a85;logger[_0x166fa1('0x24')](JSON[_0x166fa1('0x1c')](_0x585520));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x11')]=function(_0x1f9ecb){const _0x40a5bf=_0xb1489a,_0x97665c=this;this[_0x40a5bf('0x6')][_0x40a5bf('0x10')](function(){const _0x1e129a=_0x40a5bf;return _0x97665c[_0x1e129a('0x15')][_0x1e129a('0x2d')]['query'](_0x1f9ecb)[_0x1e129a('0x31')](function(){const _0x35016a=_0x1e129a;logger['info'](_0x35016a('0x2a'),_0x1f9ecb);})['catch'](function(_0x4306fd){const _0x1e1d04=_0x1e129a;logger[_0x1e1d04('0x24')](JSON[_0x1e1d04('0x1c')](_0x4306fd));});});},Migration['prototype']['removeColumn']=function(_0x55de17,_0x46609f){const _0x2cc21e=_0xb1489a,_0x5021e7=this;this['sequence'][_0x2cc21e('0x10')](function(){const _0x205e3b=_0x2cc21e;return _0x5021e7[_0x205e3b('0x15')][_0x205e3b('0x20')](_0x55de17,_0x46609f)[_0x205e3b('0x31')](function(){const _0x341e87=_0x205e3b;logger[_0x341e87('0x24')](_0x341e87('0x13'),_0x46609f,_0x55de17);})[_0x205e3b('0x19')](function(_0x4804cd){const _0x536f64=_0x205e3b;logger['info'](util[_0x536f64('0xd')](_0x4804cd,{'showHidden':![],'depth':null}));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x14')]=function(_0x466cff,_0x6b6dac,_0x5b56f6){const _0x8eb269=this;this['sequence']['enqueue'](function(){const _0x4e7cb2=a948_0x5e4b;return _0x8eb269[_0x4e7cb2('0x15')][_0x4e7cb2('0x14')](_0x466cff,_0x6b6dac,_0x5b56f6)[_0x4e7cb2('0x31')](function(){const _0x18da88=_0x4e7cb2;logger[_0x18da88('0x24')](_0x18da88('0x2e'),_0x6b6dac,_0x5b56f6,_0x466cff);})[_0x4e7cb2('0x19')](function(_0x49462b){const _0xd2fcf9=_0x4e7cb2;logger['info'](util[_0xd2fcf9('0xd')](_0x49462b,{'showHidden':![],'depth':null}));});});},Migration[_0xb1489a('0x1b')][_0xb1489a('0x2c')]=function(_0x4d0e3c){const _0x364f27=_0xb1489a;this['sequence'][_0x364f27('0x10')](function(){return _0x4d0e3c();});},module[_0xb1489a('0xa')]={'up':function(_0x22a2e2,_0x1f3dae){return new Promise(function(_0x23b3b0){const _0x3dbe6f=a948_0x5e4b,_0x1f1b24=new Migration(_0x22a2e2);_0x1f1b24['changeColumn'](_0x3dbe6f('0xe'),_0x3dbe6f('0x12'),{'type':_0x1f3dae[_0x3dbe6f('0x1f')](_0x3dbe6f('0x9'))}),_0x1f1b24[_0x3dbe6f('0x18')](_0x3dbe6f('0x22'),_0x3dbe6f('0x12'),{'type':_0x1f3dae[_0x3dbe6f('0x1f')](_0x3dbe6f('0x9'))}),_0x1f1b24['query'](_0x3dbe6f('0x0')),_0x1f1b24[_0x3dbe6f('0x18')](_0x3dbe6f('0x26'),'name',{'type':_0x1f3dae['STRING'],'unique':!![],'allowNull':![]}),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x3'),_0x3dbe6f('0x5'),{'type':_0x1f3dae[_0x3dbe6f('0x29')],'defaultValue':0xc}),_0x1f1b24[_0x3dbe6f('0x16')]('chat_websites','backgroundColor',{'type':_0x1f3dae[_0x3dbe6f('0x4')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}}),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x2f'),_0x3dbe6f('0x28'),{'type':_0x1f3dae[_0x3dbe6f('0x4')]}),_0x1f1b24[_0x3dbe6f('0x11')](_0x3dbe6f('0x1d')),_0x1f1b24['query']('DELETE\x20FROM\x20`user_has_voice_prefixes`'),_0x1f1b24[_0x3dbe6f('0x33')](_0x3dbe6f('0x21'),_0x3dbe6f('0x17')),_0x1f1b24[_0x3dbe6f('0x20')](_0x3dbe6f('0x21'),_0x3dbe6f('0x17')),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x21'),_0x3dbe6f('0x2'),{'type':_0x1f3dae['STRING']}),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x21'),_0x3dbe6f('0x1e'),{'type':_0x1f3dae[_0x3dbe6f('0x29')]}),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x23'),_0x3dbe6f('0x32'),{'type':_0x1f3dae['INTEGER']}),_0x1f1b24[_0x3dbe6f('0x11')](_0x3dbe6f('0x35')),_0x1f1b24[_0x3dbe6f('0x11')](_0x3dbe6f('0x1a')),_0x1f1b24[_0x3dbe6f('0x16')](_0x3dbe6f('0x34'),_0x3dbe6f('0x17'),{'type':_0x1f3dae[_0x3dbe6f('0x4')]}),_0x1f1b24[_0x3dbe6f('0x2c')](_0x23b3b0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.70.js b/server/migrations/2.0.70.js index 7f0b32a..8731b10 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a949_0x3e3d=['sequence','addColumn','mohtime','query','report_queue','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','catch','final','INTEGER','Removed\x20column\x20%s\x20from\x20%s','finally','dropTable','then','enqueue','changeColumn','inspect','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','removeIndex\x20%s\x20%s','tail','queryInterface','renameColumn','stringify','sequelize','Added\x20column\x20%s\x20to\x20%s','prototype','addIndex','info','removeIndex','exports','table\x20dropped\x20%s'];(function(_0x25ae1d,_0x3e3d64){const _0x3d08cd=function(_0x48cdd6){while(--_0x48cdd6){_0x25ae1d['push'](_0x25ae1d['shift']());}};_0x3d08cd(++_0x3e3d64);}(a949_0x3e3d,0xb1));const a949_0x3d08=function(_0x25ae1d,_0x3e3d64){_0x25ae1d=_0x25ae1d-0x0;let _0x3d08cd=a949_0x3e3d[_0x25ae1d];return _0x3d08cd;};const _0x405450=a949_0x3d08;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x405450('0x3')][_0x405450('0x17')]=function(_0x48cdd6){const _0x497d7d=_0x405450;this[_0x497d7d('0x1c')]=this[_0x497d7d('0x1c')]?this['tail'][_0x497d7d('0x14')](_0x48cdd6):_0x48cdd6();};const Migration=function(_0x5ac734){const _0x198caa=_0x405450;this[_0x198caa('0x1d')]=_0x5ac734,this[_0x198caa('0x9')]=new Sequence();};Migration[_0x405450('0x3')][_0x405450('0x18')]=function(_0xcb9d41,_0xa2f622,_0x3a0c34){const _0x1f158f=this;this['sequence']['enqueue'](function(){const _0x1fdb79=a949_0x3d08;return _0x1f158f[_0x1fdb79('0x1d')][_0x1fdb79('0x18')](_0xcb9d41,_0xa2f622,_0x3a0c34)[_0x1fdb79('0x16')](function(){const _0x1a740e=_0x1fdb79;logger['info'](_0x1a740e('0xe'),_0xa2f622,_0xcb9d41);})[_0x1fdb79('0x10')](function(_0x5ac749){const _0x2899bb=_0x1fdb79;logger[_0x2899bb('0x5')](JSON[_0x2899bb('0x0')](_0x5ac749));});});},Migration[_0x405450('0x3')][_0x405450('0xa')]=function(_0x1220cc,_0x4faaa9,_0x1abff8){const _0x56f3ed=_0x405450,_0xf75dd4=this;this[_0x56f3ed('0x9')][_0x56f3ed('0x17')](function(){const _0x5286f0=_0x56f3ed;return _0xf75dd4[_0x5286f0('0x1d')][_0x5286f0('0xa')](_0x1220cc,_0x4faaa9,_0x1abff8)[_0x5286f0('0x16')](function(){const _0x44178b=_0x5286f0;logger['info'](_0x44178b('0x2'),_0x4faaa9,_0x1220cc);})[_0x5286f0('0x10')](function(_0x28a060){const _0x7995dc=_0x5286f0;logger['info'](JSON[_0x7995dc('0x0')](_0x28a060));});});},Migration['prototype'][_0x405450('0x15')]=function(_0x1529e6){const _0x1d5e88=_0x405450,_0x31bc1e=this;this['sequence'][_0x1d5e88('0x17')](function(){const _0x3f614e=_0x1d5e88;return _0x31bc1e[_0x3f614e('0x1d')][_0x3f614e('0x15')](_0x1529e6,{'force':!![]})[_0x3f614e('0x16')](function(){const _0xc9e647=_0x3f614e;logger[_0xc9e647('0x5')](_0xc9e647('0x8'),_0x1529e6);})[_0x3f614e('0x10')](function(_0x591243){const _0x39ca1d=_0x3f614e;logger[_0x39ca1d('0x5')](JSON['stringify'](_0x591243));});});},Migration[_0x405450('0x3')][_0x405450('0x4')]=function(_0x42b07b,_0x365fe1,_0x3fa609){const _0xb9c084=_0x405450,_0x2c0f99=this;this[_0xb9c084('0x9')][_0xb9c084('0x17')](function(){const _0xb9f498=_0xb9c084;return _0x2c0f99[_0xb9f498('0x1d')]['addIndex'](_0x42b07b,_0x365fe1,{'indexName':_0x3fa609})[_0xb9f498('0x16')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x42b07b,_0x365fe1['join'](','),_0x3fa609);})['catch'](function(_0x387726){logger['info'](JSON['stringify'](_0x387726));});});},Migration[_0x405450('0x3')]['removeIndex']=function(_0x442575,_0xf971ed){const _0x540769=_0x405450,_0xe317e5=this;this[_0x540769('0x9')]['enqueue'](function(){const _0x146f3d=_0x540769;return _0xe317e5[_0x146f3d('0x1d')][_0x146f3d('0x6')](_0x442575,_0xf971ed)[_0x146f3d('0x16')](function(){const _0x36d59a=_0x146f3d;logger[_0x36d59a('0x5')](_0x36d59a('0x1b'),_0x442575,_0xf971ed);})[_0x146f3d('0x10')](function(_0x23e9fc){const _0x33939f=_0x146f3d;logger[_0x33939f('0x5')](JSON['stringify'](_0x23e9fc));});});},Migration[_0x405450('0x3')][_0x405450('0xc')]=function(_0x419f33){const _0x2631d3=_0x405450,_0xf358c4=this;this[_0x2631d3('0x9')][_0x2631d3('0x17')](function(){const _0x20ceab=_0x2631d3;return _0xf358c4[_0x20ceab('0x1d')][_0x20ceab('0x1')][_0x20ceab('0xc')](_0x419f33)[_0x20ceab('0x16')](function(){const _0x481726=_0x20ceab;logger[_0x481726('0x5')]('query\x20%s',_0x419f33);})[_0x20ceab('0x10')](function(_0x5b3fff){const _0x50b82f=_0x20ceab;logger[_0x50b82f('0x5')](JSON['stringify'](_0x5b3fff));});});},Migration[_0x405450('0x3')]['removeColumn']=function(_0x12099b,_0x41a0dc){const _0x1790e3=_0x405450,_0x7d57d5=this;this[_0x1790e3('0x9')]['enqueue'](function(){const _0x4ce88b=_0x1790e3;return _0x7d57d5[_0x4ce88b('0x1d')][_0x4ce88b('0xf')](_0x12099b,_0x41a0dc)[_0x4ce88b('0x16')](function(){const _0x1db310=_0x4ce88b;logger[_0x1db310('0x5')](_0x1db310('0x13'),_0x41a0dc,_0x12099b);})[_0x4ce88b('0x10')](function(_0x1c6585){const _0x1250fb=_0x4ce88b;logger[_0x1250fb('0x5')](util[_0x1250fb('0x19')](_0x1c6585,{'showHidden':![],'depth':null}));});});},Migration[_0x405450('0x3')][_0x405450('0x1e')]=function(_0x26539e,_0x2079b6,_0x11a546){const _0x32c706=_0x405450,_0x5a9b08=this;this[_0x32c706('0x9')][_0x32c706('0x17')](function(){const _0x57929a=_0x32c706;return _0x5a9b08[_0x57929a('0x1d')][_0x57929a('0x1e')](_0x26539e,_0x2079b6,_0x11a546)[_0x57929a('0x16')](function(){const _0x29fd5a=_0x57929a;logger[_0x29fd5a('0x5')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2079b6,_0x11a546,_0x26539e);})[_0x57929a('0x10')](function(_0x4f3730){const _0x33bdf1=_0x57929a;logger['info'](util[_0x33bdf1('0x19')](_0x4f3730,{'showHidden':![],'depth':null}));});});},Migration[_0x405450('0x3')]['final']=function(_0x12f8db){const _0x45ae19=_0x405450;this[_0x45ae19('0x9')][_0x45ae19('0x17')](function(){return _0x12f8db();});},module[_0x405450('0x7')]={'up':function(_0x4ae671,_0x3cc9b3){return new Promise(function(_0x4fcbcf){const _0x1e634f=a949_0x3d08,_0x51cbaa=new Migration(_0x4ae671);_0x51cbaa[_0x1e634f('0xa')](_0x1e634f('0xd'),_0x1e634f('0xb'),{'type':_0x3cc9b3[_0x1e634f('0x12')],'defaultValue':0x0}),_0x51cbaa['addColumn']('report_call',_0x1e634f('0xb'),{'type':_0x3cc9b3[_0x1e634f('0x12')],'defaultValue':0x0}),_0x51cbaa[_0x1e634f('0xc')](_0x1e634f('0x1a')),_0x51cbaa[_0x1e634f('0x11')](_0x4fcbcf);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.71.js b/server/migrations/2.0.71.js index d680dcd..0c801ab 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a950_0x5a50=['sequelize','query','catch','renameColumn','changeColumn','sms_accounts','final','addColumn','addIndex\x20%s\x20%s\x20%s','removeIndex','Removed\x20column\x20%s\x20from\x20%s','addIndex','queueTransferTimeout','then','prototype','sequence','enqueue','queryInterface','../config/logger','stringify','tools_actions','exports','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;','BOOLEAN','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','systemAlias','TEXT','data7','chatTimeout','removeIndex\x20%s\x20%s','tail','STRING','settings','dropTable','query\x20%s','systemAvatar','queueTransfer','chatLicenseExceeded','agentTransfer','fax_accounts','System','INTEGER','openchannel_accounts','join','removeColumn','info','phoneBarRememberMeEnabled','agentTransferTimeout','chat_websites'];(function(_0x3e1bd2,_0x5a500e){const _0x491763=function(_0x1f69a4){while(--_0x1f69a4){_0x3e1bd2['push'](_0x3e1bd2['shift']());}};_0x491763(++_0x5a500e);}(a950_0x5a50,0x10f));const a950_0x4917=function(_0x3e1bd2,_0x5a500e){_0x3e1bd2=_0x3e1bd2-0x0;let _0x491763=a950_0x5a50[_0x3e1bd2];return _0x491763;};const _0x330ffd=a950_0x4917;'use strict';const util=require('util'),logger=require(_0x330ffd('0x2f'))('migration'),Sequence=function(){};Sequence[_0x330ffd('0x2b')][_0x330ffd('0x2d')]=function(_0x1f69a4){const _0xf9a1d6=_0x330ffd;this[_0xf9a1d6('0xa')]=this[_0xf9a1d6('0xa')]?this[_0xf9a1d6('0xa')]['finally'](_0x1f69a4):_0x1f69a4();};const Migration=function(_0x32d8ec){const _0x3dde43=_0x330ffd;this[_0x3dde43('0x2e')]=_0x32d8ec,this[_0x3dde43('0x2c')]=new Sequence();};Migration[_0x330ffd('0x2b')]['changeColumn']=function(_0x2e6080,_0x21d587,_0x397a3d){const _0x40d794=_0x330ffd,_0x54bc4a=this;this[_0x40d794('0x2c')]['enqueue'](function(){const _0x566f3d=_0x40d794;return _0x54bc4a[_0x566f3d('0x2e')][_0x566f3d('0x21')](_0x2e6080,_0x21d587,_0x397a3d)[_0x566f3d('0x2a')](function(){const _0x1db002=_0x566f3d;logger[_0x1db002('0x19')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x21d587,_0x2e6080);})[_0x566f3d('0x1f')](function(_0x32b017){const _0x39cdab=_0x566f3d;logger[_0x39cdab('0x19')](JSON[_0x39cdab('0x30')](_0x32b017));});});},Migration[_0x330ffd('0x2b')]['addColumn']=function(_0x2ec979,_0x1532d2,_0x2309eb){const _0x524b4b=_0x330ffd,_0x354d36=this;this[_0x524b4b('0x2c')][_0x524b4b('0x2d')](function(){const _0x1e08ff=_0x524b4b;return _0x354d36[_0x1e08ff('0x2e')][_0x1e08ff('0x24')](_0x2ec979,_0x1532d2,_0x2309eb)[_0x1e08ff('0x2a')](function(){const _0x6a0f00=_0x1e08ff;logger[_0x6a0f00('0x19')](_0x6a0f00('0x3'),_0x1532d2,_0x2ec979);})['catch'](function(_0x56df97){const _0x29c7bd=_0x1e08ff;logger[_0x29c7bd('0x19')](JSON[_0x29c7bd('0x30')](_0x56df97));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0xd')]=function(_0x2878a2){const _0x1e3d82=_0x330ffd,_0x5ac7d5=this;this[_0x1e3d82('0x2c')][_0x1e3d82('0x2d')](function(){const _0x36a30e=_0x1e3d82;return _0x5ac7d5['queryInterface'][_0x36a30e('0xd')](_0x2878a2,{'force':!![]})[_0x36a30e('0x2a')](function(){const _0x26ec8e=_0x36a30e;logger['info'](_0x26ec8e('0x4'),_0x2878a2);})[_0x36a30e('0x1f')](function(_0x3630ce){const _0x3488a8=_0x36a30e;logger[_0x3488a8('0x19')](JSON[_0x3488a8('0x30')](_0x3630ce));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0x28')]=function(_0x5d8ee3,_0x3e66bb,_0x34e4fd){const _0x121523=_0x330ffd,_0x2d3bf7=this;this[_0x121523('0x2c')][_0x121523('0x2d')](function(){const _0x1b5a4b=_0x121523;return _0x2d3bf7[_0x1b5a4b('0x2e')][_0x1b5a4b('0x28')](_0x5d8ee3,_0x3e66bb,{'indexName':_0x34e4fd})[_0x1b5a4b('0x2a')](function(){const _0x4cdead=_0x1b5a4b;logger['info'](_0x4cdead('0x25'),_0x5d8ee3,_0x3e66bb[_0x4cdead('0x17')](','),_0x34e4fd);})['catch'](function(_0xf648e0){const _0x48815c=_0x1b5a4b;logger[_0x48815c('0x19')](JSON[_0x48815c('0x30')](_0xf648e0));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0x26')]=function(_0x498bdb,_0x450733){const _0x4029cd=_0x330ffd,_0x3e1665=this;this[_0x4029cd('0x2c')][_0x4029cd('0x2d')](function(){const _0x513beb=_0x4029cd;return _0x3e1665[_0x513beb('0x2e')][_0x513beb('0x26')](_0x498bdb,_0x450733)[_0x513beb('0x2a')](function(){const _0x15cd1f=_0x513beb;logger[_0x15cd1f('0x19')](_0x15cd1f('0x9'),_0x498bdb,_0x450733);})['catch'](function(_0x41dab5){const _0x5de42a=_0x513beb;logger['info'](JSON[_0x5de42a('0x30')](_0x41dab5));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0x1e')]=function(_0x42d12c){const _0x233fca=_0x330ffd,_0x59be3d=this;this[_0x233fca('0x2c')]['enqueue'](function(){const _0x5f340f=_0x233fca;return _0x59be3d['queryInterface'][_0x5f340f('0x1d')][_0x5f340f('0x1e')](_0x42d12c)[_0x5f340f('0x2a')](function(){const _0xd5b4ce=_0x5f340f;logger[_0xd5b4ce('0x19')](_0xd5b4ce('0xe'),_0x42d12c);})[_0x5f340f('0x1f')](function(_0x252b73){const _0x151399=_0x5f340f;logger['info'](JSON[_0x151399('0x30')](_0x252b73));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0x18')]=function(_0x336cc2,_0x27d647){const _0x37c0ef=_0x330ffd,_0x3d8281=this;this[_0x37c0ef('0x2c')][_0x37c0ef('0x2d')](function(){const _0x4af7c9=_0x37c0ef;return _0x3d8281[_0x4af7c9('0x2e')][_0x4af7c9('0x18')](_0x336cc2,_0x27d647)['then'](function(){const _0x13126e=_0x4af7c9;logger[_0x13126e('0x19')](_0x13126e('0x27'),_0x27d647,_0x336cc2);})[_0x4af7c9('0x1f')](function(_0x255b2e){const _0xc9da29=_0x4af7c9;logger[_0xc9da29('0x19')](util['inspect'](_0x255b2e,{'showHidden':![],'depth':null}));});});},Migration[_0x330ffd('0x2b')][_0x330ffd('0x20')]=function(_0x3b1c7d,_0x24841b,_0x2cc320){const _0x35b441=_0x330ffd,_0x5cd420=this;this[_0x35b441('0x2c')][_0x35b441('0x2d')](function(){const _0x31d5e3=_0x35b441;return _0x5cd420[_0x31d5e3('0x2e')]['renameColumn'](_0x3b1c7d,_0x24841b,_0x2cc320)[_0x31d5e3('0x2a')](function(){const _0x79110d=_0x31d5e3;logger[_0x79110d('0x19')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x24841b,_0x2cc320,_0x3b1c7d);})[_0x31d5e3('0x1f')](function(_0x159047){logger['info'](util['inspect'](_0x159047,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x249a1e){const _0x526a3f=_0x330ffd;this[_0x526a3f('0x2c')][_0x526a3f('0x2d')](function(){return _0x249a1e();});},module[_0x330ffd('0x0')]={'up':function(_0x580ac9,_0x4b3040){return new Promise(function(_0x1ad1bd){const _0x16c539=a950_0x4917,_0x55a0f1=new Migration(_0x580ac9);_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x1c'),_0x16c539('0x10'),{'type':_0x4b3040['BOOLEAN'],'defaultValue':![]}),_0x55a0f1['addColumn'](_0x16c539('0x1c'),'enableCustomerCheckmarks',{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1['addColumn'](_0x16c539('0x1c'),_0x16c539('0x29'),{'type':_0x4b3040['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1['addColumn'](_0x16c539('0x1c'),_0x16c539('0x12'),{'type':_0x4b3040['BOOLEAN'],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x1c'),_0x16c539('0x1b'),{'type':_0x4b3040[_0x16c539('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1['addColumn'](_0x16c539('0x1c'),_0x16c539('0x5'),{'type':_0x4b3040[_0x16c539('0xb')],'defaultValue':_0x16c539('0x14')}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x1c'),_0x16c539('0xf'),{'type':_0x4b3040['TEXT']}),_0x55a0f1[_0x16c539('0x24')]('fax_accounts','queueTransfer',{'type':_0x4b3040['BOOLEAN'],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x13'),_0x16c539('0x29'),{'type':_0x4b3040['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1[_0x16c539('0x24')]('fax_accounts','agentTransfer',{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x13'),_0x16c539('0x1b'),{'type':_0x4b3040['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1['addColumn']('openchannel_accounts',_0x16c539('0x10'),{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x16'),_0x16c539('0x29'),{'type':_0x4b3040[_0x16c539('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x16'),'agentTransfer',{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x16'),_0x16c539('0x1b'),{'type':_0x4b3040[_0x16c539('0x15')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x22'),_0x16c539('0x10'),{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1[_0x16c539('0x24')]('sms_accounts',_0x16c539('0x29'),{'type':_0x4b3040['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1[_0x16c539('0x24')]('sms_accounts',_0x16c539('0x12'),{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':![]}),_0x55a0f1['addColumn'](_0x16c539('0x22'),_0x16c539('0x1b'),{'type':_0x4b3040['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0xc'),_0x16c539('0x8'),{'type':_0x4b3040[_0x16c539('0x15')],'defaultValue':0x1e}),_0x55a0f1['query'](_0x16c539('0x1')),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0xc'),_0x16c539('0x1a'),{'type':_0x4b3040[_0x16c539('0x2')],'defaultValue':!![]}),_0x55a0f1[_0x16c539('0x24')]('license',_0x16c539('0x11'),{'type':_0x4b3040[_0x16c539('0x15')],'defaultValue':0x0}),_0x55a0f1[_0x16c539('0x24')](_0x16c539('0x31'),_0x16c539('0x7'),{'type':_0x4b3040[_0x16c539('0x6')]}),_0x55a0f1[_0x16c539('0x23')](_0x1ad1bd);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.72.js b/server/migrations/2.0.72.js index dac212e..99e8ede 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a951_0x4f58=['removeIndex','../config/logger','final','info','table\x20dropped\x20%s','addColumn','Added\x20column\x20%s\x20to\x20%s','dropTable','changeColumn','util','removeIndex\x20%s\x20%s','query','report_square','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','stringify','uid_pname','then','removeColumn','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','enqueue','finally','sequelize','prototype','sequence','queryInterface','leaveAt','inspect','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','project_name','catch','addIndex','renameColumn','uniqueid','migration'];(function(_0x4cc14c,_0x4f5839){const _0x510e28=function(_0x596cbc){while(--_0x596cbc){_0x4cc14c['push'](_0x4cc14c['shift']());}};_0x510e28(++_0x4f5839);}(a951_0x4f58,0x8d));const a951_0x510e=function(_0x4cc14c,_0x4f5839){_0x4cc14c=_0x4cc14c-0x0;let _0x510e28=a951_0x4f58[_0x4cc14c];return _0x510e28;};const _0x2f10d9=a951_0x510e;'use strict';const util=require(_0x2f10d9('0xc')),logger=require(_0x2f10d9('0x4'))(_0x2f10d9('0x2')),Sequence=function(){};Sequence[_0x2f10d9('0x1a')][_0x2f10d9('0x17')]=function(_0x596cbc){const _0x10f6ad=_0x2f10d9;this[_0x10f6ad('0x1f')]=this[_0x10f6ad('0x1f')]?this['tail'][_0x10f6ad('0x18')](_0x596cbc):_0x596cbc();};const Migration=function(_0x399ab7){const _0x1f2b00=_0x2f10d9;this[_0x1f2b00('0x1c')]=_0x399ab7,this[_0x1f2b00('0x1b')]=new Sequence();};Migration[_0x2f10d9('0x1a')]['changeColumn']=function(_0x31ebf0,_0x200218,_0x17921b){const _0x233289=_0x2f10d9,_0x37e630=this;this[_0x233289('0x1b')][_0x233289('0x17')](function(){const _0x10f939=_0x233289;return _0x37e630['queryInterface'][_0x10f939('0xb')](_0x31ebf0,_0x200218,_0x17921b)[_0x10f939('0x14')](function(){const _0x4d37de=_0x10f939;logger[_0x4d37de('0x6')](_0x4d37de('0x20'),_0x200218,_0x31ebf0);})[_0x10f939('0x22')](function(_0x34d570){const _0xd675f0=_0x10f939;logger[_0xd675f0('0x6')](JSON[_0xd675f0('0x12')](_0x34d570));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x8')]=function(_0x540d41,_0x473826,_0x35a35b){const _0x49ba34=_0x2f10d9,_0x5f520f=this;this[_0x49ba34('0x1b')]['enqueue'](function(){const _0x58bf31=_0x49ba34;return _0x5f520f[_0x58bf31('0x1c')][_0x58bf31('0x8')](_0x540d41,_0x473826,_0x35a35b)[_0x58bf31('0x14')](function(){const _0x20340e=_0x58bf31;logger[_0x20340e('0x6')](_0x20340e('0x9'),_0x473826,_0x540d41);})['catch'](function(_0x5cea00){const _0xb4557b=_0x58bf31;logger['info'](JSON[_0xb4557b('0x12')](_0x5cea00));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0xa')]=function(_0x130a43){const _0x185153=_0x2f10d9,_0x2e45ed=this;this['sequence'][_0x185153('0x17')](function(){const _0x5b2c6c=_0x185153;return _0x2e45ed['queryInterface'][_0x5b2c6c('0xa')](_0x130a43,{'force':!![]})['then'](function(){const _0xa7f635=_0x5b2c6c;logger[_0xa7f635('0x6')](_0xa7f635('0x7'),_0x130a43);})[_0x5b2c6c('0x22')](function(_0x1a2626){const _0x2ae450=_0x5b2c6c;logger[_0x2ae450('0x6')](JSON['stringify'](_0x1a2626));});});},Migration['prototype'][_0x2f10d9('0x23')]=function(_0x253444,_0x6750a4,_0x3e07f4){const _0x2fbb63=_0x2f10d9,_0x20a4b1=this;this[_0x2fbb63('0x1b')]['enqueue'](function(){const _0x27ba8=_0x2fbb63;return _0x20a4b1[_0x27ba8('0x1c')][_0x27ba8('0x23')](_0x253444,_0x6750a4,{'indexName':_0x3e07f4})[_0x27ba8('0x14')](function(){const _0x2421da=_0x27ba8;logger[_0x2421da('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x253444,_0x6750a4[_0x2421da('0x11')](','),_0x3e07f4);})[_0x27ba8('0x22')](function(_0x338cae){const _0x42bdc9=_0x27ba8;logger[_0x42bdc9('0x6')](JSON[_0x42bdc9('0x12')](_0x338cae));});});},Migration[_0x2f10d9('0x1a')]['removeIndex']=function(_0x2eb0d8,_0x5d8082){const _0x5268c7=this;this['sequence']['enqueue'](function(){const _0x141eca=a951_0x510e;return _0x5268c7[_0x141eca('0x1c')][_0x141eca('0x3')](_0x2eb0d8,_0x5d8082)[_0x141eca('0x14')](function(){const _0x39cf25=_0x141eca;logger[_0x39cf25('0x6')](_0x39cf25('0xd'),_0x2eb0d8,_0x5d8082);})[_0x141eca('0x22')](function(_0x522865){logger['info'](JSON['stringify'](_0x522865));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0xe')]=function(_0x1d4fd1){const _0x34b801=_0x2f10d9,_0x35cc9d=this;this[_0x34b801('0x1b')][_0x34b801('0x17')](function(){const _0x78245b=_0x34b801;return _0x35cc9d['queryInterface'][_0x78245b('0x19')][_0x78245b('0xe')](_0x1d4fd1)['then'](function(){const _0x27f951=_0x78245b;logger[_0x27f951('0x6')]('query\x20%s',_0x1d4fd1);})[_0x78245b('0x22')](function(_0x33e339){const _0x57501c=_0x78245b;logger[_0x57501c('0x6')](JSON[_0x57501c('0x12')](_0x33e339));});});},Migration[_0x2f10d9('0x1a')]['removeColumn']=function(_0x1b9bfc,_0x4b4d88){const _0x14dde3=_0x2f10d9,_0x3edfec=this;this['sequence'][_0x14dde3('0x17')](function(){const _0xac7f97=_0x14dde3;return _0x3edfec[_0xac7f97('0x1c')][_0xac7f97('0x15')](_0x1b9bfc,_0x4b4d88)[_0xac7f97('0x14')](function(){const _0x5573f2=_0xac7f97;logger[_0x5573f2('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x4b4d88,_0x1b9bfc);})[_0xac7f97('0x22')](function(_0x56a386){const _0x47773d=_0xac7f97;logger[_0x47773d('0x6')](util['inspect'](_0x56a386,{'showHidden':![],'depth':null}));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x0')]=function(_0x2b6be2,_0x1ac95a,_0x43eb05){const _0x59736b=_0x2f10d9,_0x267c47=this;this[_0x59736b('0x1b')]['enqueue'](function(){const _0x1b29bc=_0x59736b;return _0x267c47[_0x1b29bc('0x1c')][_0x1b29bc('0x0')](_0x2b6be2,_0x1ac95a,_0x43eb05)['then'](function(){const _0x5a60b7=_0x1b29bc;logger[_0x5a60b7('0x6')](_0x5a60b7('0x10'),_0x1ac95a,_0x43eb05,_0x2b6be2);})[_0x1b29bc('0x22')](function(_0x384468){const _0x3e4bc5=_0x1b29bc;logger['info'](util[_0x3e4bc5('0x1e')](_0x384468,{'showHidden':![],'depth':null}));});});},Migration[_0x2f10d9('0x1a')][_0x2f10d9('0x5')]=function(_0x256a8a){const _0x1e1c36=_0x2f10d9;this[_0x1e1c36('0x1b')]['enqueue'](function(){return _0x256a8a();});},module['exports']={'up':function(_0x1fd400){return new Promise(function(_0x5bdd78){const _0x349738=a951_0x510e,_0x40203e=new Migration(_0x1fd400);_0x40203e[_0x349738('0xe')](_0x349738('0x16')),_0x40203e[_0x349738('0x23')](_0x349738('0xf'),[_0x349738('0x1'),_0x349738('0x21')],_0x349738('0x13')),_0x40203e[_0x349738('0x23')](_0x349738('0xf'),[_0x349738('0x1d')],_0x349738('0x1d')),_0x40203e[_0x349738('0x5')](_0x5bdd78);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.73.js b/server/migrations/2.0.73.js index 181d244..86f0d80 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a952_0x2249=['then','renameColumn','STRING','util','query\x20%s','cm_contacts','sequence','tail','stringify','routeid','prototype','join','wechat','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','fb_data','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','sequelize','migration','Removed\x20column\x20%s\x20from\x20%s','removeColumn','inspect','removeIndex\x20%s\x20%s','../config/logger','originatecalleridname','addColumn','info','catch','enqueue','exports','cm_hopper_history','Added\x20column\x20%s\x20to\x20%s','query','report_call','originatecalleridnum','finally','dropTable','cm_hopper_final','queryInterface','addIndex\x20%s\x20%s\x20%s','removeIndex','addIndex'];(function(_0x5d986f,_0x224932){const _0x353700=function(_0x2c4d5){while(--_0x2c4d5){_0x5d986f['push'](_0x5d986f['shift']());}};_0x353700(++_0x224932);}(a952_0x2249,0x167));const a952_0x3537=function(_0x5d986f,_0x224932){_0x5d986f=_0x5d986f-0x0;let _0x353700=a952_0x2249[_0x5d986f];return _0x353700;};const _0x139183=a952_0x3537;'use strict';const util=require(_0x139183('0x1f')),logger=require(_0x139183('0x9'))(_0x139183('0x4')),Sequence=function(){};Sequence[_0x139183('0x26')][_0x139183('0xe')]=function(_0x2c4d5){const _0x2f6b6a=_0x139183;this[_0x2f6b6a('0x23')]=this[_0x2f6b6a('0x23')]?this[_0x2f6b6a('0x23')][_0x2f6b6a('0x15')](_0x2c4d5):_0x2c4d5();};const Migration=function(_0x154913){const _0x46fd7e=_0x139183;this[_0x46fd7e('0x18')]=_0x154913,this[_0x46fd7e('0x22')]=new Sequence();};Migration[_0x139183('0x26')][_0x139183('0x2')]=function(_0x15be82,_0x55d471,_0x5eb73b){const _0x4f5d87=_0x139183,_0x414e7a=this;this[_0x4f5d87('0x22')]['enqueue'](function(){const _0x44a9da=_0x4f5d87;return _0x414e7a[_0x44a9da('0x18')]['changeColumn'](_0x15be82,_0x55d471,_0x5eb73b)[_0x44a9da('0x1c')](function(){const _0x2b9338=_0x44a9da;logger[_0x2b9338('0xc')](_0x2b9338('0x1'),_0x55d471,_0x15be82);})[_0x44a9da('0xd')](function(_0x3f4ada){const _0x3cad65=_0x44a9da;logger[_0x3cad65('0xc')](JSON['stringify'](_0x3f4ada));});});},Migration[_0x139183('0x26')]['addColumn']=function(_0x2f9906,_0x25b03b,_0x5aefb3){const _0x4b2bd7=_0x139183,_0x16b4d4=this;this[_0x4b2bd7('0x22')][_0x4b2bd7('0xe')](function(){const _0x569c81=_0x4b2bd7;return _0x16b4d4[_0x569c81('0x18')]['addColumn'](_0x2f9906,_0x25b03b,_0x5aefb3)[_0x569c81('0x1c')](function(){const _0x4faea4=_0x569c81;logger[_0x4faea4('0xc')](_0x4faea4('0x11'),_0x25b03b,_0x2f9906);})[_0x569c81('0xd')](function(_0x5e081b){const _0x5d420c=_0x569c81;logger[_0x5d420c('0xc')](JSON[_0x5d420c('0x24')](_0x5e081b));});});},Migration[_0x139183('0x26')][_0x139183('0x16')]=function(_0x2390c1){const _0x68eb3c=_0x139183,_0x427e02=this;this[_0x68eb3c('0x22')]['enqueue'](function(){const _0x25bc6e=_0x68eb3c;return _0x427e02[_0x25bc6e('0x18')][_0x25bc6e('0x16')](_0x2390c1,{'force':!![]})[_0x25bc6e('0x1c')](function(){const _0xa60a4c=_0x25bc6e;logger[_0xa60a4c('0xc')]('table\x20dropped\x20%s',_0x2390c1);})[_0x25bc6e('0xd')](function(_0x10546a){const _0x4631f7=_0x25bc6e;logger[_0x4631f7('0xc')](JSON[_0x4631f7('0x24')](_0x10546a));});});},Migration[_0x139183('0x26')][_0x139183('0x1b')]=function(_0x5390ed,_0x3c5995,_0x11941){const _0x2a29e4=_0x139183,_0x1eeb64=this;this[_0x2a29e4('0x22')][_0x2a29e4('0xe')](function(){const _0x330849=_0x2a29e4;return _0x1eeb64[_0x330849('0x18')][_0x330849('0x1b')](_0x5390ed,_0x3c5995,{'indexName':_0x11941})['then'](function(){const _0x342707=_0x330849;logger[_0x342707('0xc')](_0x342707('0x19'),_0x5390ed,_0x3c5995[_0x342707('0x27')](','),_0x11941);})[_0x330849('0xd')](function(_0x594aac){const _0x40d9df=_0x330849;logger['info'](JSON[_0x40d9df('0x24')](_0x594aac));});});},Migration['prototype'][_0x139183('0x1a')]=function(_0x4ebb98,_0x1e7567){const _0x2c6efa=_0x139183,_0x2c1244=this;this[_0x2c6efa('0x22')][_0x2c6efa('0xe')](function(){const _0x290352=_0x2c6efa;return _0x2c1244['queryInterface']['removeIndex'](_0x4ebb98,_0x1e7567)[_0x290352('0x1c')](function(){const _0xdc8333=_0x290352;logger[_0xdc8333('0xc')](_0xdc8333('0x8'),_0x4ebb98,_0x1e7567);})['catch'](function(_0x2ac028){const _0x54d8b1=_0x290352;logger[_0x54d8b1('0xc')](JSON[_0x54d8b1('0x24')](_0x2ac028));});});},Migration['prototype'][_0x139183('0x12')]=function(_0xb12336){const _0x2992f7=_0x139183,_0x4943b8=this;this[_0x2992f7('0x22')][_0x2992f7('0xe')](function(){const _0x2dea37=_0x2992f7;return _0x4943b8[_0x2dea37('0x18')][_0x2dea37('0x3')][_0x2dea37('0x12')](_0xb12336)[_0x2dea37('0x1c')](function(){const _0x5d949d=_0x2dea37;logger[_0x5d949d('0xc')](_0x5d949d('0x20'),_0xb12336);})[_0x2dea37('0xd')](function(_0x16e02a){const _0x51d2db=_0x2dea37;logger[_0x51d2db('0xc')](JSON[_0x51d2db('0x24')](_0x16e02a));});});},Migration[_0x139183('0x26')][_0x139183('0x6')]=function(_0x4aad45,_0x3a07f4){const _0x494217=_0x139183,_0x3cc40b=this;this[_0x494217('0x22')][_0x494217('0xe')](function(){const _0x30d51d=_0x494217;return _0x3cc40b[_0x30d51d('0x18')][_0x30d51d('0x6')](_0x4aad45,_0x3a07f4)['then'](function(){const _0x8de8aa=_0x30d51d;logger[_0x8de8aa('0xc')](_0x8de8aa('0x5'),_0x3a07f4,_0x4aad45);})[_0x30d51d('0xd')](function(_0x5be82a){const _0x325eb2=_0x30d51d;logger[_0x325eb2('0xc')](util[_0x325eb2('0x7')](_0x5be82a,{'showHidden':![],'depth':null}));});});},Migration[_0x139183('0x26')][_0x139183('0x1d')]=function(_0x32e1ba,_0x2edf10,_0x258605){const _0xa81aa3=_0x139183,_0xc98dd1=this;this[_0xa81aa3('0x22')][_0xa81aa3('0xe')](function(){const _0x1afaaf=_0xa81aa3;return _0xc98dd1[_0x1afaaf('0x18')][_0x1afaaf('0x1d')](_0x32e1ba,_0x2edf10,_0x258605)[_0x1afaaf('0x1c')](function(){const _0x3f70b6=_0x1afaaf;logger[_0x3f70b6('0xc')](_0x3f70b6('0x2a'),_0x2edf10,_0x258605,_0x32e1ba);})['catch'](function(_0x588338){const _0x449bc6=_0x1afaaf;logger[_0x449bc6('0xc')](util[_0x449bc6('0x7')](_0x588338,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x139183('0x29')]=function(_0x296de5){const _0x332363=_0x139183;this[_0x332363('0x22')][_0x332363('0xe')](function(){return _0x296de5();});},module[_0x139183('0xf')]={'up':function(_0x540c82,_0x25c2c5){return new Promise(function(_0x41e740){const _0x5d02ad=a952_0x3537,_0x3730ba=new Migration(_0x540c82);_0x3730ba['addColumn'](_0x5d02ad('0x13'),_0x5d02ad('0x25'),{'type':_0x25c2c5['INTEGER']}),_0x3730ba['addColumn'](_0x5d02ad('0x17'),'originatecalleridnum',{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba[_0x5d02ad('0xb')](_0x5d02ad('0x17'),_0x5d02ad('0xa'),{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba[_0x5d02ad('0xb')]('cm_hopper_history',_0x5d02ad('0x14'),{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba['addColumn'](_0x5d02ad('0x10'),_0x5d02ad('0xa'),{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba['addColumn'](_0x5d02ad('0x21'),_0x5d02ad('0x28'),{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba['addColumn'](_0x5d02ad('0x21'),_0x5d02ad('0x0'),{'type':_0x25c2c5[_0x5d02ad('0x1e')]}),_0x3730ba['final'](_0x41e740);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.74.js b/server/migrations/2.0.74.js index db6ce61..e15c148 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a953_0x3078=['addIndex\x20%s\x20%s\x20%s','addIndex','enqueue','removeIndex\x20%s\x20%s','prototype','inspect','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','changeColumn','finally','query','query\x20%s','catch','exports','tail','migration','final','info','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','removeIndex','util','renameColumn','queryInterface','Added\x20column\x20%s\x20to\x20%s','sequence','stringify','then','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2a80cb,_0x3078f5){const _0x8bbef4=function(_0x5f3c9a){while(--_0x5f3c9a){_0x2a80cb['push'](_0x2a80cb['shift']());}};_0x8bbef4(++_0x3078f5);}(a953_0x3078,0x149));const a953_0x8bbe=function(_0x2a80cb,_0x3078f5){_0x2a80cb=_0x2a80cb-0x0;let _0x8bbef4=a953_0x3078[_0x2a80cb];return _0x8bbef4;};const _0x154946=a953_0x8bbe;'use strict';const util=require(_0x154946('0x4')),logger=require('../config/logger')(_0x154946('0x1c')),Sequence=function(){};Sequence[_0x154946('0x10')]['enqueue']=function(_0x5f3c9a){const _0x4a518c=_0x154946;this[_0x4a518c('0x1b')]=this['tail']?this[_0x4a518c('0x1b')][_0x4a518c('0x16')](_0x5f3c9a):_0x5f3c9a();};const Migration=function(_0x4f8e84){const _0x44e9db=_0x154946;this[_0x44e9db('0x6')]=_0x4f8e84,this['sequence']=new Sequence();};Migration[_0x154946('0x10')][_0x154946('0x15')]=function(_0xff08aa,_0x4fd783,_0x2f3abb){const _0x5900cb=_0x154946,_0xb381cf=this;this[_0x5900cb('0x8')]['enqueue'](function(){const _0x115270=_0x5900cb;return _0xb381cf[_0x115270('0x6')][_0x115270('0x15')](_0xff08aa,_0x4fd783,_0x2f3abb)[_0x115270('0xa')](function(){const _0x323f43=_0x115270;logger[_0x323f43('0x1e')](_0x323f43('0x13'),_0x4fd783,_0xff08aa);})['catch'](function(_0xbd15e7){const _0x374deb=_0x115270;logger[_0x374deb('0x1e')](JSON[_0x374deb('0x9')](_0xbd15e7));});});},Migration[_0x154946('0x10')]['addColumn']=function(_0x3079f8,_0x1420b2,_0x3d3d35){const _0x36a7b7=_0x154946,_0x2eb2d6=this;this['sequence'][_0x36a7b7('0xe')](function(){const _0x279324=_0x36a7b7;return _0x2eb2d6[_0x279324('0x6')]['addColumn'](_0x3079f8,_0x1420b2,_0x3d3d35)['then'](function(){const _0x47e32c=_0x279324;logger[_0x47e32c('0x1e')](_0x47e32c('0x7'),_0x1420b2,_0x3079f8);})['catch'](function(_0x47c6b5){const _0x24ff97=_0x279324;logger[_0x24ff97('0x1e')](JSON[_0x24ff97('0x9')](_0x47c6b5));});});},Migration[_0x154946('0x10')][_0x154946('0x2')]=function(_0xab04c2){const _0x1e7861=_0x154946,_0x485f8d=this;this[_0x1e7861('0x8')]['enqueue'](function(){const _0x1a3a0c=_0x1e7861;return _0x485f8d['queryInterface']['dropTable'](_0xab04c2,{'force':!![]})[_0x1a3a0c('0xa')](function(){const _0x50e73f=_0x1a3a0c;logger[_0x50e73f('0x1e')](_0x50e73f('0x14'),_0xab04c2);})['catch'](function(_0x305809){const _0x168acb=_0x1a3a0c;logger[_0x168acb('0x1e')](JSON[_0x168acb('0x9')](_0x305809));});});},Migration['prototype']['addIndex']=function(_0x2e82ff,_0x570c69,_0x3a494e){const _0x22c53c=_0x154946,_0x4aeb9f=this;this[_0x22c53c('0x8')][_0x22c53c('0xe')](function(){const _0x54f6a3=_0x22c53c;return _0x4aeb9f[_0x54f6a3('0x6')][_0x54f6a3('0xd')](_0x2e82ff,_0x570c69,{'indexName':_0x3a494e})[_0x54f6a3('0xa')](function(){const _0x14d2d1=_0x54f6a3;logger[_0x14d2d1('0x1e')](_0x14d2d1('0xc'),_0x2e82ff,_0x570c69['join'](','),_0x3a494e);})[_0x54f6a3('0x19')](function(_0x18e199){const _0x5091f4=_0x54f6a3;logger[_0x5091f4('0x1e')](JSON[_0x5091f4('0x9')](_0x18e199));});});},Migration[_0x154946('0x10')]['removeIndex']=function(_0x3872ae,_0x521dcc){const _0x2dc563=_0x154946,_0x2dee91=this;this[_0x2dc563('0x8')]['enqueue'](function(){const _0x3ee649=_0x2dc563;return _0x2dee91[_0x3ee649('0x6')][_0x3ee649('0x3')](_0x3872ae,_0x521dcc)[_0x3ee649('0xa')](function(){const _0x70ac56=_0x3ee649;logger[_0x70ac56('0x1e')](_0x70ac56('0xf'),_0x3872ae,_0x521dcc);})[_0x3ee649('0x19')](function(_0x1a933a){logger['info'](JSON['stringify'](_0x1a933a));});});},Migration[_0x154946('0x10')][_0x154946('0x17')]=function(_0x1e23b8){const _0x475069=_0x154946,_0x1bca17=this;this[_0x475069('0x8')][_0x475069('0xe')](function(){const _0xb4e04f=_0x475069;return _0x1bca17['queryInterface'][_0xb4e04f('0x12')][_0xb4e04f('0x17')](_0x1e23b8)['then'](function(){const _0x20118b=_0xb4e04f;logger[_0x20118b('0x1e')](_0x20118b('0x18'),_0x1e23b8);})['catch'](function(_0x580e1b){const _0x3f061c=_0xb4e04f;logger[_0x3f061c('0x1e')](JSON['stringify'](_0x580e1b));});});},Migration[_0x154946('0x10')][_0x154946('0x0')]=function(_0x4af3d7,_0x56f4c8){const _0x56ee2e=_0x154946,_0x5d342b=this;this[_0x56ee2e('0x8')][_0x56ee2e('0xe')](function(){const _0x2ac243=_0x56ee2e;return _0x5d342b[_0x2ac243('0x6')][_0x2ac243('0x0')](_0x4af3d7,_0x56f4c8)[_0x2ac243('0xa')](function(){const _0x1c4082=_0x2ac243;logger[_0x1c4082('0x1e')](_0x1c4082('0xb'),_0x56f4c8,_0x4af3d7);})['catch'](function(_0x1ddd1d){const _0x4007ad=_0x2ac243;logger[_0x4007ad('0x1e')](util[_0x4007ad('0x11')](_0x1ddd1d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x154946('0x5')]=function(_0x235ec3,_0x9cdde5,_0x23ab4c){const _0x25d711=_0x154946,_0x444e9c=this;this[_0x25d711('0x8')][_0x25d711('0xe')](function(){const _0x10b083=_0x25d711;return _0x444e9c[_0x10b083('0x6')][_0x10b083('0x5')](_0x235ec3,_0x9cdde5,_0x23ab4c)[_0x10b083('0xa')](function(){const _0x18beff=_0x10b083;logger[_0x18beff('0x1e')](_0x18beff('0x1'),_0x9cdde5,_0x23ab4c,_0x235ec3);})[_0x10b083('0x19')](function(_0xec4b1a){const _0x152281=_0x10b083;logger[_0x152281('0x1e')](util[_0x152281('0x11')](_0xec4b1a,{'showHidden':![],'depth':null}));});});},Migration[_0x154946('0x10')][_0x154946('0x1d')]=function(_0x334e5c){this['sequence']['enqueue'](function(){return _0x334e5c();});},module[_0x154946('0x1a')]={'up':function(_0x23c86d){return new Promise(function(_0x5eccfd){const _0x43bc4=a953_0x8bbe,_0x508134=new Migration(_0x23c86d);_0x508134[_0x43bc4('0x1d')](_0x5eccfd);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.75.js b/server/migrations/2.0.75.js index ad210bf..c094435 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a954_0x45c3=['util','sequence','tail','migration','Removed\x20column\x20%s\x20from\x20%s','finally','info','table\x20dropped\x20%s','dropTable','stringify','prototype','renameColumn','final','sequelize','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','join','query','then','query\x20%s','catch','enqueue','../config/logger','queryInterface','removeIndex','removeIndex\x20%s\x20%s','addIndex','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','removeColumn','exports','Added\x20column\x20%s\x20to\x20%s'];(function(_0x436d19,_0x45c3fc){const _0x7e4485=function(_0x2eab81){while(--_0x2eab81){_0x436d19['push'](_0x436d19['shift']());}};_0x7e4485(++_0x45c3fc);}(a954_0x45c3,0x89));const a954_0x7e44=function(_0x436d19,_0x45c3fc){_0x436d19=_0x436d19-0x0;let _0x7e4485=a954_0x45c3[_0x436d19];return _0x7e4485;};const _0x35a7c6=a954_0x7e44;'use strict';const util=require(_0x35a7c6('0x1c')),logger=require(_0x35a7c6('0x11'))(_0x35a7c6('0x1f')),Sequence=function(){};Sequence[_0x35a7c6('0x5')]['enqueue']=function(_0x2eab81){const _0x4cd356=_0x35a7c6;this[_0x4cd356('0x1e')]=this[_0x4cd356('0x1e')]?this[_0x4cd356('0x1e')][_0x4cd356('0x0')](_0x2eab81):_0x2eab81();};const Migration=function(_0x1d3488){const _0x16013e=_0x35a7c6;this[_0x16013e('0x12')]=_0x1d3488,this[_0x16013e('0x1d')]=new Sequence();};Migration[_0x35a7c6('0x5')][_0x35a7c6('0x16')]=function(_0x42d44d,_0x2d742b,_0x2f5cd9){const _0x734d99=_0x35a7c6,_0x4212e5=this;this['sequence'][_0x734d99('0x10')](function(){const _0x22b0a3=_0x734d99;return _0x4212e5[_0x22b0a3('0x12')]['changeColumn'](_0x42d44d,_0x2d742b,_0x2f5cd9)[_0x22b0a3('0xd')](function(){const _0x25bb87=_0x22b0a3;logger[_0x25bb87('0x1')](_0x25bb87('0xa'),_0x2d742b,_0x42d44d);})['catch'](function(_0x3e0e07){const _0x55ca47=_0x22b0a3;logger['info'](JSON[_0x55ca47('0x4')](_0x3e0e07));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0x9')]=function(_0x5c4e65,_0x3538b9,_0x1f5ce9){const _0x464b9b=_0x35a7c6,_0x1a9b95=this;this['sequence'][_0x464b9b('0x10')](function(){const _0x47d931=_0x464b9b;return _0x1a9b95[_0x47d931('0x12')]['addColumn'](_0x5c4e65,_0x3538b9,_0x1f5ce9)[_0x47d931('0xd')](function(){const _0x9e7d17=_0x47d931;logger[_0x9e7d17('0x1')](_0x9e7d17('0x1b'),_0x3538b9,_0x5c4e65);})[_0x47d931('0xf')](function(_0x52fd3b){const _0x51ddc8=_0x47d931;logger[_0x51ddc8('0x1')](JSON['stringify'](_0x52fd3b));});});},Migration[_0x35a7c6('0x5')]['dropTable']=function(_0x24cb11){const _0xc4c524=_0x35a7c6,_0x1cead4=this;this[_0xc4c524('0x1d')][_0xc4c524('0x10')](function(){const _0x24c5aa=_0xc4c524;return _0x1cead4[_0x24c5aa('0x12')][_0x24c5aa('0x3')](_0x24cb11,{'force':!![]})[_0x24c5aa('0xd')](function(){const _0x5e61df=_0x24c5aa;logger['info'](_0x5e61df('0x2'),_0x24cb11);})[_0x24c5aa('0xf')](function(_0x5dfe72){const _0x2b6900=_0x24c5aa;logger[_0x2b6900('0x1')](JSON[_0x2b6900('0x4')](_0x5dfe72));});});},Migration['prototype'][_0x35a7c6('0x15')]=function(_0x2ac135,_0x5e44ae,_0x29a987){const _0x1b47de=_0x35a7c6,_0x4be046=this;this[_0x1b47de('0x1d')]['enqueue'](function(){const _0x1e27da=_0x1b47de;return _0x4be046['queryInterface'][_0x1e27da('0x15')](_0x2ac135,_0x5e44ae,{'indexName':_0x29a987})['then'](function(){const _0x6f4895=_0x1e27da;logger[_0x6f4895('0x1')]('addIndex\x20%s\x20%s\x20%s',_0x2ac135,_0x5e44ae[_0x6f4895('0xb')](','),_0x29a987);})['catch'](function(_0x1ac468){const _0x56a7b2=_0x1e27da;logger['info'](JSON[_0x56a7b2('0x4')](_0x1ac468));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0x13')]=function(_0x898168,_0x27ac67){const _0x2e180f=_0x35a7c6,_0x1ab8a1=this;this[_0x2e180f('0x1d')][_0x2e180f('0x10')](function(){const _0x50bd6f=_0x2e180f;return _0x1ab8a1['queryInterface'][_0x50bd6f('0x13')](_0x898168,_0x27ac67)['then'](function(){const _0x2d4011=_0x50bd6f;logger[_0x2d4011('0x1')](_0x2d4011('0x14'),_0x898168,_0x27ac67);})['catch'](function(_0x2c72c2){const _0x197529=_0x50bd6f;logger[_0x197529('0x1')](JSON[_0x197529('0x4')](_0x2c72c2));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0xc')]=function(_0xe9528a){const _0x51af87=_0x35a7c6,_0x2bbda0=this;this[_0x51af87('0x1d')]['enqueue'](function(){const _0xa8186e=_0x51af87;return _0x2bbda0['queryInterface'][_0xa8186e('0x8')][_0xa8186e('0xc')](_0xe9528a)['then'](function(){const _0x2fd190=_0xa8186e;logger[_0x2fd190('0x1')](_0x2fd190('0xe'),_0xe9528a);})[_0xa8186e('0xf')](function(_0x27d4bf){const _0x37380d=_0xa8186e;logger[_0x37380d('0x1')](JSON[_0x37380d('0x4')](_0x27d4bf));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0x19')]=function(_0xbeb2a6,_0x5f502a){const _0x5ee9c0=_0x35a7c6,_0x1ff3f0=this;this[_0x5ee9c0('0x1d')][_0x5ee9c0('0x10')](function(){const _0x5a68c2=_0x5ee9c0;return _0x1ff3f0[_0x5a68c2('0x12')]['removeColumn'](_0xbeb2a6,_0x5f502a)[_0x5a68c2('0xd')](function(){const _0x56a8d0=_0x5a68c2;logger['info'](_0x56a8d0('0x20'),_0x5f502a,_0xbeb2a6);})[_0x5a68c2('0xf')](function(_0x174c9d){const _0x26032d=_0x5a68c2;logger[_0x26032d('0x1')](util['inspect'](_0x174c9d,{'showHidden':![],'depth':null}));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0x6')]=function(_0x1bbd18,_0x1d055b,_0x352317){const _0x79a2de=_0x35a7c6,_0xae07dd=this;this['sequence'][_0x79a2de('0x10')](function(){const _0x1f2b19=_0x79a2de;return _0xae07dd[_0x1f2b19('0x12')][_0x1f2b19('0x6')](_0x1bbd18,_0x1d055b,_0x352317)[_0x1f2b19('0xd')](function(){const _0x24f911=_0x1f2b19;logger[_0x24f911('0x1')](_0x24f911('0x17'),_0x1d055b,_0x352317,_0x1bbd18);})[_0x1f2b19('0xf')](function(_0x22a6b5){const _0x5145b1=_0x1f2b19;logger[_0x5145b1('0x1')](util[_0x5145b1('0x18')](_0x22a6b5,{'showHidden':![],'depth':null}));});});},Migration[_0x35a7c6('0x5')][_0x35a7c6('0x7')]=function(_0x5836c9){const _0x1aa7b8=_0x35a7c6;this[_0x1aa7b8('0x1d')][_0x1aa7b8('0x10')](function(){return _0x5836c9();});},module[_0x35a7c6('0x1a')]={'up':function(_0x5ceec5){return new Promise(function(_0x18cae8){const _0x202a9d=a954_0x7e44,_0x2bbacb=new Migration(_0x5ceec5);_0x2bbacb[_0x202a9d('0x7')](_0x18cae8);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.76.js b/server/migrations/2.0.76.js index c79a2f6..1eb7636 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a955_0x11a4=['query\x20%s','prototype','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','queryInterface','final','addIndex\x20%s\x20%s\x20%s','stringify','removeIndex','info','sequence','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','catch','TRUNCATE\x20sessions','changeColumn','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','tail','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','util','addColumn','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','query','exports','table\x20dropped\x20%s','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','dropTable','then','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','removeColumn','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','addIndex','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x51d416,_0x11a47f){const _0x2d9d81=function(_0x3c779e){while(--_0x3c779e){_0x51d416['push'](_0x51d416['shift']());}};_0x2d9d81(++_0x11a47f);}(a955_0x11a4,0x7b));const a955_0x2d9d=function(_0x51d416,_0x11a47f){_0x51d416=_0x51d416-0x0;let _0x2d9d81=a955_0x11a4[_0x51d416];return _0x2d9d81;};const _0x59977a=a955_0x2d9d;'use strict';const util=require(_0x59977a('0x9')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x59977a('0x1a')][_0x59977a('0x14')]=function(_0x3c779e){const _0x5e2bb1=_0x59977a;this[_0x5e2bb1('0x6')]=this[_0x5e2bb1('0x6')]?this[_0x5e2bb1('0x6')][_0x5e2bb1('0x16')](_0x3c779e):_0x3c779e();};const Migration=function(_0xe5969f){const _0x4e9420=_0x59977a;this[_0x4e9420('0x1c')]=_0xe5969f,this[_0x4e9420('0x22')]=new Sequence();};Migration['prototype'][_0x59977a('0x2')]=function(_0x4de9a8,_0x1c197b,_0x385c8c){const _0x364c9e=_0x59977a,_0x16e6af=this;this[_0x364c9e('0x22')][_0x364c9e('0x14')](function(){const _0xadb1c6=_0x364c9e;return _0x16e6af[_0xadb1c6('0x1c')][_0xadb1c6('0x2')](_0x4de9a8,_0x1c197b,_0x385c8c)[_0xadb1c6('0x11')](function(){const _0x77d480=_0xadb1c6;logger[_0x77d480('0x21')](_0x77d480('0x15'),_0x1c197b,_0x4de9a8);})['catch'](function(_0x2d5e70){const _0x1250d1=_0xadb1c6;logger[_0x1250d1('0x21')](JSON[_0x1250d1('0x1f')](_0x2d5e70));});});},Migration[_0x59977a('0x1a')]['addColumn']=function(_0x4f6841,_0x31882c,_0x987607){const _0xf67857=_0x59977a,_0x5b80fb=this;this[_0xf67857('0x22')]['enqueue'](function(){const _0x2c36e5=_0xf67857;return _0x5b80fb[_0x2c36e5('0x1c')][_0x2c36e5('0xa')](_0x4f6841,_0x31882c,_0x987607)['then'](function(){const _0x4f6494=_0x2c36e5;logger['info'](_0x4f6494('0x7'),_0x31882c,_0x4f6841);})[_0x2c36e5('0x0')](function(_0x5ed8ff){const _0x4f8d71=_0x2c36e5;logger[_0x4f8d71('0x21')](JSON['stringify'](_0x5ed8ff));});});},Migration['prototype'][_0x59977a('0x10')]=function(_0xf54743){const _0x29322f=_0x59977a,_0x1de8ff=this;this[_0x29322f('0x22')][_0x29322f('0x14')](function(){const _0x3dcc55=_0x29322f;return _0x1de8ff[_0x3dcc55('0x1c')][_0x3dcc55('0x10')](_0xf54743,{'force':!![]})[_0x3dcc55('0x11')](function(){const _0x1eb51d=_0x3dcc55;logger[_0x1eb51d('0x21')](_0x1eb51d('0xe'),_0xf54743);})['catch'](function(_0x4964a0){const _0x15c9ae=_0x3dcc55;logger['info'](JSON[_0x15c9ae('0x1f')](_0x4964a0));});});},Migration[_0x59977a('0x1a')][_0x59977a('0x17')]=function(_0x18b549,_0x19b37e,_0x2711c3){const _0x486f1d=_0x59977a,_0x46eb66=this;this[_0x486f1d('0x22')][_0x486f1d('0x14')](function(){const _0x3eca3e=_0x486f1d;return _0x46eb66[_0x3eca3e('0x1c')][_0x3eca3e('0x17')](_0x18b549,_0x19b37e,{'indexName':_0x2711c3})[_0x3eca3e('0x11')](function(){const _0x4a1b39=_0x3eca3e;logger[_0x4a1b39('0x21')](_0x4a1b39('0x1e'),_0x18b549,_0x19b37e[_0x4a1b39('0x3')](','),_0x2711c3);})[_0x3eca3e('0x0')](function(_0x31e483){const _0x1ed630=_0x3eca3e;logger[_0x1ed630('0x21')](JSON[_0x1ed630('0x1f')](_0x31e483));});});},Migration[_0x59977a('0x1a')][_0x59977a('0x20')]=function(_0x373cb9,_0xd8b08e){const _0x2aacae=_0x59977a,_0x4fbc5c=this;this[_0x2aacae('0x22')][_0x2aacae('0x14')](function(){const _0x1fb42e=_0x2aacae;return _0x4fbc5c[_0x1fb42e('0x1c')]['removeIndex'](_0x373cb9,_0xd8b08e)[_0x1fb42e('0x11')](function(){const _0x226205=_0x1fb42e;logger[_0x226205('0x21')](_0x226205('0x23'),_0x373cb9,_0xd8b08e);})['catch'](function(_0x3bd100){const _0x5b700c=_0x1fb42e;logger[_0x5b700c('0x21')](JSON['stringify'](_0x3bd100));});});},Migration['prototype']['query']=function(_0x5318d6){const _0x120420=_0x59977a,_0xabf0a3=this;this[_0x120420('0x22')][_0x120420('0x14')](function(){const _0x329bd5=_0x120420;return _0xabf0a3[_0x329bd5('0x1c')]['sequelize']['query'](_0x5318d6)['then'](function(){const _0x5f4c43=_0x329bd5;logger[_0x5f4c43('0x21')](_0x5f4c43('0x19'),_0x5318d6);})[_0x329bd5('0x0')](function(_0x82692a){const _0x4ad2a1=_0x329bd5;logger[_0x4ad2a1('0x21')](JSON[_0x4ad2a1('0x1f')](_0x82692a));});});},Migration[_0x59977a('0x1a')][_0x59977a('0x13')]=function(_0x1e9ffc,_0x9cefa0){const _0x2f390d=_0x59977a,_0x458aaa=this;this['sequence'][_0x2f390d('0x14')](function(){const _0x21ac96=_0x2f390d;return _0x458aaa[_0x21ac96('0x1c')]['removeColumn'](_0x1e9ffc,_0x9cefa0)[_0x21ac96('0x11')](function(){const _0x1de4d7=_0x21ac96;logger[_0x1de4d7('0x21')](_0x1de4d7('0x18'),_0x9cefa0,_0x1e9ffc);})[_0x21ac96('0x0')](function(_0x20958d){const _0x4a51b8=_0x21ac96;logger[_0x4a51b8('0x21')](util['inspect'](_0x20958d,{'showHidden':![],'depth':null}));});});},Migration[_0x59977a('0x1a')]['renameColumn']=function(_0x3dcaa8,_0xb5f7f3,_0x4df25d){const _0x321448=_0x59977a,_0x73e77f=this;this[_0x321448('0x22')][_0x321448('0x14')](function(){const _0x50f257=_0x321448;return _0x73e77f['queryInterface']['renameColumn'](_0x3dcaa8,_0xb5f7f3,_0x4df25d)[_0x50f257('0x11')](function(){const _0x1d8065=_0x50f257;logger['info'](_0x1d8065('0x4'),_0xb5f7f3,_0x4df25d,_0x3dcaa8);})[_0x50f257('0x0')](function(_0x408cf6){const _0x1eb0b3=_0x50f257;logger[_0x1eb0b3('0x21')](util['inspect'](_0x408cf6,{'showHidden':![],'depth':null}));});});},Migration[_0x59977a('0x1a')]['final']=function(_0x5bf81e){const _0x1e6b0a=_0x59977a;this[_0x1e6b0a('0x22')][_0x1e6b0a('0x14')](function(){return _0x5bf81e();});},module[_0x59977a('0xd')]={'up':function(_0x52e178,_0x3f7a1b){return new Promise(function(_0x37ccc3){const _0x1d59a8=a955_0x2d9d,_0x31b0c0=new Migration(_0x52e178);_0x31b0c0[_0x1d59a8('0xc')](_0x1d59a8('0x1')),_0x31b0c0[_0x1d59a8('0xc')](_0x1d59a8('0x24')),_0x31b0c0[_0x1d59a8('0xc')](_0x1d59a8('0xf')),_0x31b0c0[_0x1d59a8('0xc')](_0x1d59a8('0x1b')),_0x31b0c0['query'](_0x1d59a8('0x12')),_0x31b0c0[_0x1d59a8('0xc')](_0x1d59a8('0xb')),_0x31b0c0[_0x1d59a8('0xa')](_0x1d59a8('0x5'),'hotdesk',{'type':_0x3f7a1b[_0x1d59a8('0x8')],'defaultValue':![]}),_0x31b0c0[_0x1d59a8('0x1d')](_0x37ccc3);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.77.js b/server/migrations/2.0.77.js index 7133746..cc852fc 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a956_0x3c6f=['changeColumn','../config/logger','query','enqueue','dropTable','migration','sequelize','report_square','queryInterface','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','sequence','then','addIndex\x20%s\x20%s\x20%s','info','Added\x20column\x20%s\x20to\x20%s','privacyEnabled','inspect','STRING','users','exports','query\x20%s','prototype','addColumn','removeColumn','final','removeIndex','addIndex','join','tail','catch','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','interface','table\x20dropped\x20%s','BOOLEAN'];(function(_0x148199,_0x3c6ffa){const _0x3ad5f0=function(_0x476ab6){while(--_0x476ab6){_0x148199['push'](_0x148199['shift']());}};_0x3ad5f0(++_0x3c6ffa);}(a956_0x3c6f,0x19c));const a956_0x3ad5=function(_0x148199,_0x3c6ffa){_0x148199=_0x148199-0x0;let _0x3ad5f0=a956_0x3c6f[_0x148199];return _0x3ad5f0;};const _0x152621=a956_0x3ad5;'use strict';const util=require('util'),logger=require(_0x152621('0x21'))(_0x152621('0x0')),Sequence=function(){};Sequence[_0x152621('0x12')]['enqueue']=function(_0x476ab6){const _0xdaa408=_0x152621;this[_0xdaa408('0x19')]=this[_0xdaa408('0x19')]?this['tail'][_0xdaa408('0x1b')](_0x476ab6):_0x476ab6();};const Migration=function(_0x3837fb){const _0x13a57f=_0x152621;this[_0x13a57f('0x3')]=_0x3837fb,this['sequence']=new Sequence();};Migration['prototype'][_0x152621('0x20')]=function(_0xf1e221,_0x37cac7,_0x1ac103){const _0x34ace5=_0x152621,_0x17a1d1=this;this['sequence'][_0x34ace5('0x23')](function(){const _0xa7e539=_0x34ace5;return _0x17a1d1[_0xa7e539('0x3')][_0xa7e539('0x20')](_0xf1e221,_0x37cac7,_0x1ac103)[_0xa7e539('0x8')](function(){const _0x4b769b=_0xa7e539;logger[_0x4b769b('0xa')](_0x4b769b('0x1c'),_0x37cac7,_0xf1e221);})[_0xa7e539('0x1a')](function(_0x1c3c09){const _0x3541a9=_0xa7e539;logger['info'](JSON[_0x3541a9('0x5')](_0x1c3c09));});});},Migration[_0x152621('0x12')][_0x152621('0x13')]=function(_0x4d3f7e,_0x305c9e,_0x44345d){const _0x27a6b9=_0x152621,_0x503907=this;this['sequence'][_0x27a6b9('0x23')](function(){const _0x470030=_0x27a6b9;return _0x503907[_0x470030('0x3')][_0x470030('0x13')](_0x4d3f7e,_0x305c9e,_0x44345d)[_0x470030('0x8')](function(){const _0x2e4877=_0x470030;logger[_0x2e4877('0xa')](_0x2e4877('0xb'),_0x305c9e,_0x4d3f7e);})[_0x470030('0x1a')](function(_0x277aee){const _0x186c77=_0x470030;logger[_0x186c77('0xa')](JSON[_0x186c77('0x5')](_0x277aee));});});},Migration[_0x152621('0x12')][_0x152621('0x24')]=function(_0x1eef0d){const _0x19aec6=_0x152621,_0x3b2022=this;this[_0x19aec6('0x7')][_0x19aec6('0x23')](function(){const _0x28b409=_0x19aec6;return _0x3b2022['queryInterface'][_0x28b409('0x24')](_0x1eef0d,{'force':!![]})[_0x28b409('0x8')](function(){const _0x5bb86b=_0x28b409;logger[_0x5bb86b('0xa')](_0x5bb86b('0x1e'),_0x1eef0d);})[_0x28b409('0x1a')](function(_0x3a4202){const _0xf2472d=_0x28b409;logger['info'](JSON[_0xf2472d('0x5')](_0x3a4202));});});},Migration['prototype'][_0x152621('0x17')]=function(_0x50de05,_0x4d024a,_0x319828){const _0x33cd8b=_0x152621,_0x5205a0=this;this[_0x33cd8b('0x7')][_0x33cd8b('0x23')](function(){const _0x580bfe=_0x33cd8b;return _0x5205a0[_0x580bfe('0x3')][_0x580bfe('0x17')](_0x50de05,_0x4d024a,{'indexName':_0x319828})[_0x580bfe('0x8')](function(){const _0x254606=_0x580bfe;logger[_0x254606('0xa')](_0x254606('0x9'),_0x50de05,_0x4d024a[_0x254606('0x18')](','),_0x319828);})[_0x580bfe('0x1a')](function(_0x5bd20a){logger['info'](JSON['stringify'](_0x5bd20a));});});},Migration[_0x152621('0x12')][_0x152621('0x16')]=function(_0x512cee,_0x249ee1){const _0x3db943=_0x152621,_0x40e35b=this;this[_0x3db943('0x7')][_0x3db943('0x23')](function(){const _0x24b674=_0x3db943;return _0x40e35b[_0x24b674('0x3')]['removeIndex'](_0x512cee,_0x249ee1)[_0x24b674('0x8')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x512cee,_0x249ee1);})[_0x24b674('0x1a')](function(_0x300642){const _0x329b47=_0x24b674;logger[_0x329b47('0xa')](JSON['stringify'](_0x300642));});});},Migration[_0x152621('0x12')][_0x152621('0x22')]=function(_0x471a9a){const _0x4d9247=_0x152621,_0x6dd24e=this;this[_0x4d9247('0x7')][_0x4d9247('0x23')](function(){const _0x9ca9fd=_0x4d9247;return _0x6dd24e[_0x9ca9fd('0x3')][_0x9ca9fd('0x1')][_0x9ca9fd('0x22')](_0x471a9a)['then'](function(){const _0x4f1c4a=_0x9ca9fd;logger['info'](_0x4f1c4a('0x11'),_0x471a9a);})['catch'](function(_0x20350e){const _0x4db7f7=_0x9ca9fd;logger[_0x4db7f7('0xa')](JSON['stringify'](_0x20350e));});});},Migration[_0x152621('0x12')][_0x152621('0x14')]=function(_0x2959a0,_0x5f43c9){const _0x40b8ae=_0x152621,_0x61fdf3=this;this['sequence'][_0x40b8ae('0x23')](function(){const _0xecb27f=_0x40b8ae;return _0x61fdf3[_0xecb27f('0x3')][_0xecb27f('0x14')](_0x2959a0,_0x5f43c9)['then'](function(){const _0x18bffa=_0xecb27f;logger['info'](_0x18bffa('0x6'),_0x5f43c9,_0x2959a0);})[_0xecb27f('0x1a')](function(_0x1454c1){const _0x3df8d1=_0xecb27f;logger[_0x3df8d1('0xa')](util['inspect'](_0x1454c1,{'showHidden':![],'depth':null}));});});},Migration[_0x152621('0x12')][_0x152621('0x4')]=function(_0x535adf,_0x411dad,_0x367e9f){const _0xe0c650=_0x152621,_0xa0218f=this;this[_0xe0c650('0x7')][_0xe0c650('0x23')](function(){const _0x423dc2=_0xe0c650;return _0xa0218f[_0x423dc2('0x3')]['renameColumn'](_0x535adf,_0x411dad,_0x367e9f)[_0x423dc2('0x8')](function(){const _0x1b74bf=_0x423dc2;logger[_0x1b74bf('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x411dad,_0x367e9f,_0x535adf);})[_0x423dc2('0x1a')](function(_0x8a6e1e){const _0x2cc8eb=_0x423dc2;logger[_0x2cc8eb('0xa')](util[_0x2cc8eb('0xd')](_0x8a6e1e,{'showHidden':![],'depth':null}));});});},Migration[_0x152621('0x12')][_0x152621('0x15')]=function(_0x185fd2){const _0xd7836a=_0x152621;this[_0xd7836a('0x7')][_0xd7836a('0x23')](function(){return _0x185fd2();});},module[_0x152621('0x10')]={'up':function(_0x462d70,_0x5a6c8f){return new Promise(function(_0x17a27f){const _0x367ff8=a956_0x3ad5,_0x558e1b=new Migration(_0x462d70);_0x558e1b[_0x367ff8('0x13')](_0x367ff8('0x2'),'bot',{'type':_0x5a6c8f[_0x367ff8('0x1f')],'defaultValue':![]}),_0x558e1b[_0x367ff8('0x13')]('users',_0x367ff8('0x1d'),{'type':_0x5a6c8f[_0x367ff8('0xe')],'defaultValue':null}),_0x558e1b[_0x367ff8('0x13')](_0x367ff8('0xf'),_0x367ff8('0xc'),{'type':_0x5a6c8f[_0x367ff8('0x1f')],'defaultValue':![]}),_0x558e1b[_0x367ff8('0x15')](_0x17a27f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.78.js b/server/migrations/2.0.78.js index edc3213..d72332b 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a957_0x3954=['migration','addIndex','Added\x20column\x20%s\x20to\x20%s','inspect','query','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','util','addIndex\x20%s\x20%s\x20%s','queryInterface','sequence','enqueue','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','final','removeIndex','finally','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','sequelize','catch','changeColumn','prototype','then','stringify','info','dropTable'];(function(_0x548bc7,_0x3954f0){const _0x1b76a4=function(_0x59fa8a){while(--_0x59fa8a){_0x548bc7['push'](_0x548bc7['shift']());}};_0x1b76a4(++_0x3954f0);}(a957_0x3954,0x104));const a957_0x1b76=function(_0x548bc7,_0x3954f0){_0x548bc7=_0x548bc7-0x0;let _0x1b76a4=a957_0x3954[_0x548bc7];return _0x1b76a4;};const _0xfd6b32=a957_0x1b76;'use strict';const util=require(_0xfd6b32('0x10')),logger=require('../config/logger')(_0xfd6b32('0xa')),Sequence=function(){};Sequence[_0xfd6b32('0x5')]['enqueue']=function(_0x59fa8a){const _0x5b0f44=_0xfd6b32;this[_0x5b0f44('0x1')]=this['tail']?this[_0x5b0f44('0x1')][_0x5b0f44('0x19')](_0x59fa8a):_0x59fa8a();};const Migration=function(_0x52ce29){const _0x35e396=_0xfd6b32;this[_0x35e396('0x12')]=_0x52ce29,this[_0x35e396('0x13')]=new Sequence();};Migration[_0xfd6b32('0x5')]['changeColumn']=function(_0x3ccc1b,_0x4f173e,_0x2c3cc3){const _0x40c848=_0xfd6b32,_0x3e6ff3=this;this['sequence'][_0x40c848('0x14')](function(){const _0x28f2f4=_0x40c848;return _0x3e6ff3['queryInterface'][_0x28f2f4('0x4')](_0x3ccc1b,_0x4f173e,_0x2c3cc3)[_0x28f2f4('0x6')](function(){const _0x1cd87b=_0x28f2f4;logger['info'](_0x1cd87b('0x16'),_0x4f173e,_0x3ccc1b);})[_0x28f2f4('0x3')](function(_0x4cf4be){const _0x1cd66f=_0x28f2f4;logger[_0x1cd66f('0x8')](JSON['stringify'](_0x4cf4be));});});},Migration[_0xfd6b32('0x5')][_0xfd6b32('0x1a')]=function(_0x3232d1,_0x27e686,_0x5598fb){const _0x3ff2b7=_0xfd6b32,_0x3579fb=this;this[_0x3ff2b7('0x13')][_0x3ff2b7('0x14')](function(){const _0x32c39b=_0x3ff2b7;return _0x3579fb[_0x32c39b('0x12')]['addColumn'](_0x3232d1,_0x27e686,_0x5598fb)[_0x32c39b('0x6')](function(){const _0x47dcd1=_0x32c39b;logger[_0x47dcd1('0x8')](_0x47dcd1('0xc'),_0x27e686,_0x3232d1);})[_0x32c39b('0x3')](function(_0x316937){const _0x2faae3=_0x32c39b;logger['info'](JSON[_0x2faae3('0x7')](_0x316937));});});},Migration[_0xfd6b32('0x5')][_0xfd6b32('0x9')]=function(_0x5a8424){const _0x1ba46b=_0xfd6b32,_0x20cb85=this;this[_0x1ba46b('0x13')][_0x1ba46b('0x14')](function(){const _0x5cd09b=_0x1ba46b;return _0x20cb85[_0x5cd09b('0x12')][_0x5cd09b('0x9')](_0x5a8424,{'force':!![]})[_0x5cd09b('0x6')](function(){const _0x5993e6=_0x5cd09b;logger[_0x5993e6('0x8')]('table\x20dropped\x20%s',_0x5a8424);})[_0x5cd09b('0x3')](function(_0x46f52f){const _0x4e6a95=_0x5cd09b;logger[_0x4e6a95('0x8')](JSON[_0x4e6a95('0x7')](_0x46f52f));});});},Migration['prototype'][_0xfd6b32('0xb')]=function(_0x5efbe8,_0xee2305,_0x5d6f73){const _0x35736d=_0xfd6b32,_0x1517b7=this;this['sequence'][_0x35736d('0x14')](function(){const _0x47a633=_0x35736d;return _0x1517b7[_0x47a633('0x12')][_0x47a633('0xb')](_0x5efbe8,_0xee2305,{'indexName':_0x5d6f73})[_0x47a633('0x6')](function(){const _0x425676=_0x47a633;logger['info'](_0x425676('0x11'),_0x5efbe8,_0xee2305['join'](','),_0x5d6f73);})[_0x47a633('0x3')](function(_0xd0251f){const _0x489ff7=_0x47a633;logger['info'](JSON[_0x489ff7('0x7')](_0xd0251f));});});},Migration[_0xfd6b32('0x5')]['removeIndex']=function(_0xa30b3d,_0x5b30c3){const _0x1d9c4c=_0xfd6b32,_0x4689a3=this;this['sequence'][_0x1d9c4c('0x14')](function(){const _0x433f04=_0x1d9c4c;return _0x4689a3[_0x433f04('0x12')][_0x433f04('0x18')](_0xa30b3d,_0x5b30c3)[_0x433f04('0x6')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xa30b3d,_0x5b30c3);})[_0x433f04('0x3')](function(_0x28aa73){const _0x4e15c3=_0x433f04;logger[_0x4e15c3('0x8')](JSON[_0x4e15c3('0x7')](_0x28aa73));});});},Migration[_0xfd6b32('0x5')][_0xfd6b32('0xe')]=function(_0x163687){const _0x321c32=_0xfd6b32,_0x19796d=this;this['sequence'][_0x321c32('0x14')](function(){const _0x4539a7=_0x321c32;return _0x19796d[_0x4539a7('0x12')][_0x4539a7('0x2')][_0x4539a7('0xe')](_0x163687)[_0x4539a7('0x6')](function(){const _0x572492=_0x4539a7;logger[_0x572492('0x8')]('query\x20%s',_0x163687);})['catch'](function(_0x1128fb){const _0x5aa262=_0x4539a7;logger['info'](JSON[_0x5aa262('0x7')](_0x1128fb));});});},Migration[_0xfd6b32('0x5')]['removeColumn']=function(_0x216449,_0x4ee322){const _0x51778f=_0xfd6b32,_0x254f4b=this;this[_0x51778f('0x13')][_0x51778f('0x14')](function(){const _0x29a523=_0x51778f;return _0x254f4b[_0x29a523('0x12')]['removeColumn'](_0x216449,_0x4ee322)[_0x29a523('0x6')](function(){const _0x237518=_0x29a523;logger[_0x237518('0x8')]('Removed\x20column\x20%s\x20from\x20%s',_0x4ee322,_0x216449);})[_0x29a523('0x3')](function(_0x4eb770){const _0x315de8=_0x29a523;logger[_0x315de8('0x8')](util[_0x315de8('0xd')](_0x4eb770,{'showHidden':![],'depth':null}));});});},Migration[_0xfd6b32('0x5')][_0xfd6b32('0x15')]=function(_0x262d95,_0x4d4d41,_0x1e1170){const _0x4e8a03=_0xfd6b32,_0x1c926=this;this['sequence'][_0x4e8a03('0x14')](function(){const _0x3728c9=_0x4e8a03;return _0x1c926[_0x3728c9('0x12')][_0x3728c9('0x15')](_0x262d95,_0x4d4d41,_0x1e1170)['then'](function(){const _0xa1364a=_0x3728c9;logger[_0xa1364a('0x8')](_0xa1364a('0x0'),_0x4d4d41,_0x1e1170,_0x262d95);})[_0x3728c9('0x3')](function(_0x4a064c){const _0x3a6169=_0x3728c9;logger[_0x3a6169('0x8')](util[_0x3a6169('0xd')](_0x4a064c,{'showHidden':![],'depth':null}));});});},Migration[_0xfd6b32('0x5')][_0xfd6b32('0x17')]=function(_0xc9c34a){const _0x4907bc=_0xfd6b32;this['sequence'][_0x4907bc('0x14')](function(){return _0xc9c34a();});},module['exports']={'up':function(_0x2f8f88){return new Promise(function(_0x30cd4a){const _0x10a0c7=a957_0x1b76,_0xdceec1=new Migration(_0x2f8f88);_0xdceec1['query'](_0x10a0c7('0xf')),_0xdceec1[_0x10a0c7('0x17')](_0x30cd4a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.79.js b/server/migrations/2.0.79.js index 91f8aaf..b8c586f 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a958_0x1340=['Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','final','addIndex\x20%s\x20%s\x20%s','util','catch','query','addIndex','exports','tail','query\x20%s','removeColumn','sequence','enqueue','migration','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','inspect','../config/logger','prototype','table\x20dropped\x20%s','removeIndex','addColumn','renameColumn','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','stringify','queryInterface','finally','dropTable','join'];(function(_0x220ab3,_0x134071){const _0xc627e8=function(_0x2b42ba){while(--_0x2b42ba){_0x220ab3['push'](_0x220ab3['shift']());}};_0xc627e8(++_0x134071);}(a958_0x1340,0xcb));const a958_0xc627=function(_0x220ab3,_0x134071){_0x220ab3=_0x220ab3-0x0;let _0xc627e8=a958_0x1340[_0x220ab3];return _0xc627e8;};const _0xdd92ef=a958_0xc627;'use strict';const util=require(_0xdd92ef('0x20')),logger=require(_0xdd92ef('0xe'))(_0xdd92ef('0x9')),Sequence=function(){};Sequence[_0xdd92ef('0xf')][_0xdd92ef('0x8')]=function(_0x2b42ba){const _0x65328e=_0xdd92ef;this['tail']=this[_0x65328e('0x4')]?this[_0x65328e('0x4')][_0x65328e('0x19')](_0x2b42ba):_0x2b42ba();};const Migration=function(_0x34dd0e){const _0x3a9a03=_0xdd92ef;this['queryInterface']=_0x34dd0e,this[_0x3a9a03('0x7')]=new Sequence();};Migration['prototype'][_0xdd92ef('0x1d')]=function(_0x41bee6,_0xb755b4,_0x1217ba){const _0x29bf0a=_0xdd92ef,_0x249a76=this;this[_0x29bf0a('0x7')][_0x29bf0a('0x8')](function(){const _0x5ed1a2=_0x29bf0a;return _0x249a76[_0x5ed1a2('0x18')][_0x5ed1a2('0x1d')](_0x41bee6,_0xb755b4,_0x1217ba)[_0x5ed1a2('0x16')](function(){const _0x27216f=_0x5ed1a2;logger['info'](_0x27216f('0x1c'),_0xb755b4,_0x41bee6);})[_0x5ed1a2('0x0')](function(_0x9801b1){const _0x1b9760=_0x5ed1a2;logger['info'](JSON[_0x1b9760('0x17')](_0x9801b1));});});},Migration[_0xdd92ef('0xf')][_0xdd92ef('0x12')]=function(_0x244a7e,_0x5c0e48,_0x5d233a){const _0x3b0fe4=_0xdd92ef,_0x33f959=this;this[_0x3b0fe4('0x7')][_0x3b0fe4('0x8')](function(){const _0x47f3=_0x3b0fe4;return _0x33f959['queryInterface']['addColumn'](_0x244a7e,_0x5c0e48,_0x5d233a)['then'](function(){const _0x1fee73=a958_0xc627;logger[_0x1fee73('0x14')](_0x1fee73('0xb'),_0x5c0e48,_0x244a7e);})[_0x47f3('0x0')](function(_0x47217c){const _0x3753d7=_0x47f3;logger['info'](JSON[_0x3753d7('0x17')](_0x47217c));});});},Migration[_0xdd92ef('0xf')][_0xdd92ef('0x1a')]=function(_0xf9d944){const _0x2af17f=_0xdd92ef,_0x172d20=this;this[_0x2af17f('0x7')]['enqueue'](function(){const _0x436597=_0x2af17f;return _0x172d20['queryInterface'][_0x436597('0x1a')](_0xf9d944,{'force':!![]})[_0x436597('0x16')](function(){const _0x3fa0bb=_0x436597;logger[_0x3fa0bb('0x14')](_0x3fa0bb('0x10'),_0xf9d944);})[_0x436597('0x0')](function(_0x47f6ff){logger['info'](JSON['stringify'](_0x47f6ff));});});},Migration['prototype'][_0xdd92ef('0x2')]=function(_0x369be9,_0xa1c097,_0x3a9294){const _0x408cb2=this;this['sequence']['enqueue'](function(){const _0x5e0977=a958_0xc627;return _0x408cb2[_0x5e0977('0x18')][_0x5e0977('0x2')](_0x369be9,_0xa1c097,{'indexName':_0x3a9294})[_0x5e0977('0x16')](function(){const _0x47ce59=_0x5e0977;logger[_0x47ce59('0x14')](_0x47ce59('0x1f'),_0x369be9,_0xa1c097[_0x47ce59('0x1b')](','),_0x3a9294);})[_0x5e0977('0x0')](function(_0x39365f){const _0x19b212=_0x5e0977;logger[_0x19b212('0x14')](JSON['stringify'](_0x39365f));});});},Migration[_0xdd92ef('0xf')][_0xdd92ef('0x11')]=function(_0x18bc0d,_0x200f45){const _0x39cd67=_0xdd92ef,_0x5ec6ca=this;this[_0x39cd67('0x7')][_0x39cd67('0x8')](function(){const _0x4bee34=_0x39cd67;return _0x5ec6ca[_0x4bee34('0x18')]['removeIndex'](_0x18bc0d,_0x200f45)['then'](function(){const _0x1d4124=_0x4bee34;logger['info'](_0x1d4124('0xa'),_0x18bc0d,_0x200f45);})['catch'](function(_0x19fda4){const _0x1a90ae=_0x4bee34;logger['info'](JSON[_0x1a90ae('0x17')](_0x19fda4));});});},Migration['prototype'][_0xdd92ef('0x1')]=function(_0x4a0116){const _0x5a0d47=_0xdd92ef,_0x52337b=this;this[_0x5a0d47('0x7')][_0x5a0d47('0x8')](function(){const _0x549db3=_0x5a0d47;return _0x52337b[_0x549db3('0x18')]['sequelize']['query'](_0x4a0116)['then'](function(){const _0x586ff7=_0x549db3;logger[_0x586ff7('0x14')](_0x586ff7('0x5'),_0x4a0116);})[_0x549db3('0x0')](function(_0x2cee53){const _0x216e3b=_0x549db3;logger[_0x216e3b('0x14')](JSON[_0x216e3b('0x17')](_0x2cee53));});});},Migration['prototype'][_0xdd92ef('0x6')]=function(_0x33f7ab,_0x5d537f){const _0x3a30bb=_0xdd92ef,_0x4f13c4=this;this['sequence'][_0x3a30bb('0x8')](function(){const _0x1ba7b2=_0x3a30bb;return _0x4f13c4['queryInterface'][_0x1ba7b2('0x6')](_0x33f7ab,_0x5d537f)[_0x1ba7b2('0x16')](function(){const _0x5bb04f=_0x1ba7b2;logger[_0x5bb04f('0x14')](_0x5bb04f('0xc'),_0x5d537f,_0x33f7ab);})[_0x1ba7b2('0x0')](function(_0x334e16){const _0x3c96de=_0x1ba7b2;logger[_0x3c96de('0x14')](util[_0x3c96de('0xd')](_0x334e16,{'showHidden':![],'depth':null}));});});},Migration[_0xdd92ef('0xf')][_0xdd92ef('0x13')]=function(_0x422726,_0xcd71f8,_0x54cdc7){const _0xa2f6bf=_0xdd92ef,_0xff1713=this;this[_0xa2f6bf('0x7')]['enqueue'](function(){const _0x37bbe1=_0xa2f6bf;return _0xff1713[_0x37bbe1('0x18')][_0x37bbe1('0x13')](_0x422726,_0xcd71f8,_0x54cdc7)[_0x37bbe1('0x16')](function(){const _0x593d47=_0x37bbe1;logger['info'](_0x593d47('0x15'),_0xcd71f8,_0x54cdc7,_0x422726);})[_0x37bbe1('0x0')](function(_0x7db230){logger['info'](util['inspect'](_0x7db230,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xdd92ef('0x1e')]=function(_0x3d40ee){const _0xe10060=_0xdd92ef;this['sequence'][_0xe10060('0x8')](function(){return _0x3d40ee();});},module[_0xdd92ef('0x3')]={'up':function(_0x326f2d){return new Promise(function(_0x170d9f){const _0x14dbc6=a958_0xc627,_0x389c24=new Migration(_0x326f2d);_0x389c24[_0x14dbc6('0x1')]('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'),_0x389c24['final'](_0x170d9f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.80.js b/server/migrations/2.0.80.js index bbce668..6bebb21 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a959_0x1012=['Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','Removed\x20column\x20%s\x20from\x20%s','info','../config/logger','util','removeIndex\x20%s\x20%s','migration','query','enqueue','changeColumn','defaultPreferred','removeIndex','addColumn','table\x20dropped\x20%s','removeColumn','then','renameColumn','settings','sequelize','queryInterface','sequence','dropTable','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','exports','prototype','final','tail','join','addIndex','catch','inspect'];(function(_0x391077,_0x101263){const _0x2c9161=function(_0x12a345){while(--_0x12a345){_0x391077['push'](_0x391077['shift']());}};_0x2c9161(++_0x101263);}(a959_0x1012,0x1c4));const a959_0x2c91=function(_0x391077,_0x101263){_0x391077=_0x391077-0x0;let _0x2c9161=a959_0x1012[_0x391077];return _0x2c9161;};const _0x54ae24=a959_0x2c91;'use strict';const util=require(_0x54ae24('0x1d')),logger=require(_0x54ae24('0x1c'))(_0x54ae24('0x1f')),Sequence=function(){};Sequence[_0x54ae24('0x11')][_0x54ae24('0x21')]=function(_0x12a345){const _0x5f6c16=_0x54ae24;this[_0x5f6c16('0x13')]=this[_0x5f6c16('0x13')]?this['tail'][_0x5f6c16('0xf')](_0x12a345):_0x12a345();};const Migration=function(_0x5e98be){this['queryInterface']=_0x5e98be,this['sequence']=new Sequence();};Migration[_0x54ae24('0x11')][_0x54ae24('0x0')]=function(_0x413d11,_0x5d585c,_0x1cc0e9){const _0x3a9f6c=_0x54ae24,_0x416f46=this;this[_0x3a9f6c('0xb')][_0x3a9f6c('0x21')](function(){const _0x22293d=_0x3a9f6c;return _0x416f46[_0x22293d('0xa')][_0x22293d('0x0')](_0x413d11,_0x5d585c,_0x1cc0e9)[_0x22293d('0x6')](function(){const _0x183c4f=_0x22293d;logger[_0x183c4f('0x1b')](_0x183c4f('0x18'),_0x5d585c,_0x413d11);})['catch'](function(_0x14b233){const _0x55d40f=_0x22293d;logger[_0x55d40f('0x1b')](JSON['stringify'](_0x14b233));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x3')]=function(_0x2b3543,_0x3b92de,_0x5963eb){const _0x10e9db=_0x54ae24,_0x557d2c=this;this[_0x10e9db('0xb')][_0x10e9db('0x21')](function(){const _0x211b60=_0x10e9db;return _0x557d2c['queryInterface'][_0x211b60('0x3')](_0x2b3543,_0x3b92de,_0x5963eb)[_0x211b60('0x6')](function(){const _0x20965b=_0x211b60;logger[_0x20965b('0x1b')](_0x20965b('0xd'),_0x3b92de,_0x2b3543);})['catch'](function(_0x2a01f1){const _0x22d66b=_0x211b60;logger['info'](JSON[_0x22d66b('0x19')](_0x2a01f1));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0xc')]=function(_0x441896){const _0x4c49ee=_0x54ae24,_0xf4790=this;this[_0x4c49ee('0xb')][_0x4c49ee('0x21')](function(){const _0x586754=_0x4c49ee;return _0xf4790[_0x586754('0xa')][_0x586754('0xc')](_0x441896,{'force':!![]})['then'](function(){const _0xfe6491=_0x586754;logger[_0xfe6491('0x1b')](_0xfe6491('0x4'),_0x441896);})['catch'](function(_0x353c27){const _0x4ee8d9=_0x586754;logger['info'](JSON[_0x4ee8d9('0x19')](_0x353c27));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x15')]=function(_0x5b6845,_0x5b051b,_0x362cf9){const _0x111d74=_0x54ae24,_0x2d0bc5=this;this['sequence'][_0x111d74('0x21')](function(){const _0x25d9d7=_0x111d74;return _0x2d0bc5[_0x25d9d7('0xa')][_0x25d9d7('0x15')](_0x5b6845,_0x5b051b,{'indexName':_0x362cf9})['then'](function(){const _0x191837=_0x25d9d7;logger[_0x191837('0x1b')]('addIndex\x20%s\x20%s\x20%s',_0x5b6845,_0x5b051b[_0x191837('0x14')](','),_0x362cf9);})[_0x25d9d7('0x16')](function(_0x26200a){const _0x4223ec=_0x25d9d7;logger[_0x4223ec('0x1b')](JSON['stringify'](_0x26200a));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x2')]=function(_0x239e52,_0x17167f){const _0x5081f4=_0x54ae24,_0x5e6a79=this;this[_0x5081f4('0xb')][_0x5081f4('0x21')](function(){const _0x93697f=_0x5081f4;return _0x5e6a79['queryInterface']['removeIndex'](_0x239e52,_0x17167f)[_0x93697f('0x6')](function(){const _0x49b4b7=_0x93697f;logger[_0x49b4b7('0x1b')](_0x49b4b7('0x1e'),_0x239e52,_0x17167f);})[_0x93697f('0x16')](function(_0x36adf9){logger['info'](JSON['stringify'](_0x36adf9));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x20')]=function(_0x26ca94){const _0x56e9a5=_0x54ae24,_0xca70a8=this;this['sequence'][_0x56e9a5('0x21')](function(){const _0x1b16c8=_0x56e9a5;return _0xca70a8[_0x1b16c8('0xa')][_0x1b16c8('0x9')][_0x1b16c8('0x20')](_0x26ca94)[_0x1b16c8('0x6')](function(){const _0x3b4260=_0x1b16c8;logger[_0x3b4260('0x1b')]('query\x20%s',_0x26ca94);})[_0x1b16c8('0x16')](function(_0x3c3805){const _0xa01478=_0x1b16c8;logger['info'](JSON[_0xa01478('0x19')](_0x3c3805));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x5')]=function(_0x2a1965,_0x12e828){const _0x32676b=_0x54ae24,_0x41972c=this;this['sequence'][_0x32676b('0x21')](function(){const _0x37b015=_0x32676b;return _0x41972c[_0x37b015('0xa')][_0x37b015('0x5')](_0x2a1965,_0x12e828)['then'](function(){const _0x4822b5=_0x37b015;logger['info'](_0x4822b5('0x1a'),_0x12e828,_0x2a1965);})[_0x37b015('0x16')](function(_0x5ba596){const _0x2bb6f0=_0x37b015;logger[_0x2bb6f0('0x1b')](util[_0x2bb6f0('0x17')](_0x5ba596,{'showHidden':![],'depth':null}));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x7')]=function(_0x4f32df,_0x56eed6,_0x33240e){const _0x66e031=this;this['sequence']['enqueue'](function(){const _0x46003f=a959_0x2c91;return _0x66e031['queryInterface'][_0x46003f('0x7')](_0x4f32df,_0x56eed6,_0x33240e)['then'](function(){const _0x24c712=_0x46003f;logger[_0x24c712('0x1b')](_0x24c712('0xe'),_0x56eed6,_0x33240e,_0x4f32df);})[_0x46003f('0x16')](function(_0xce9d64){const _0x2335cb=_0x46003f;logger[_0x2335cb('0x1b')](util[_0x2335cb('0x17')](_0xce9d64,{'showHidden':![],'depth':null}));});});},Migration[_0x54ae24('0x11')][_0x54ae24('0x12')]=function(_0x3fa80d){const _0x3d2e52=_0x54ae24;this[_0x3d2e52('0xb')][_0x3d2e52('0x21')](function(){return _0x3fa80d();});},module[_0x54ae24('0x10')]={'up':function(_0x4d1f2c,_0x3839d8){return new Promise(function(_0x4f9d95){const _0x4609c1=a959_0x2c91,_0x3fe39d=new Migration(_0x4d1f2c);_0x3fe39d['addColumn'](_0x4609c1('0x8'),'preferred',{'type':_0x3839d8['STRING']}),_0x3fe39d[_0x4609c1('0x3')](_0x4609c1('0x8'),_0x4609c1('0x1'),{'type':_0x3839d8['BOOLEAN'],'defaultValue':!![]}),_0x3fe39d['final'](_0x4f9d95);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.81.js b/server/migrations/2.0.81.js index cf6f877..a5e5801 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a960_0x2be8=['STRING','query','exports','removeIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','finally','tail','smsMethod','addColumn','sms_accounts','catch','telegram','sequence','addIndex\x20%s\x20%s\x20%s','sequelize','removeIndex\x20%s\x20%s','cm_contacts','changeColumn','removeColumn','stringify','util','inspect','info','migration','queryInterface','addIndex','then','ENUM','final','enqueue','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','classic','renameColumn','classic+','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'];(function(_0x4b0d05,_0x2be88a){const _0xe8a958=function(_0x554fe2){while(--_0x554fe2){_0x4b0d05['push'](_0x4b0d05['shift']());}};_0xe8a958(++_0x2be88a);}(a960_0x2be8,0x19b));const a960_0xe8a9=function(_0x4b0d05,_0x2be88a){_0x4b0d05=_0x4b0d05-0x0;let _0xe8a958=a960_0x2be8[_0x4b0d05];return _0xe8a958;};const _0x57ed93=a960_0xe8a9;'use strict';const util=require(_0x57ed93('0x1')),logger=require(_0x57ed93('0xb'))(_0x57ed93('0x4')),Sequence=function(){};Sequence['prototype'][_0x57ed93('0xa')]=function(_0x554fe2){const _0x461582=_0x57ed93;this[_0x461582('0x1a')]=this[_0x461582('0x1a')]?this['tail'][_0x461582('0x19')](_0x554fe2):_0x554fe2();};const Migration=function(_0x3feae8){const _0x30a8c0=_0x57ed93;this[_0x30a8c0('0x5')]=_0x3feae8,this[_0x30a8c0('0x20')]=new Sequence();};Migration[_0x57ed93('0xd')][_0x57ed93('0x25')]=function(_0x1e4cd3,_0x280f18,_0x368614){const _0x50c484=_0x57ed93,_0x5bf999=this;this[_0x50c484('0x20')][_0x50c484('0xa')](function(){const _0x5bd3a1=_0x50c484;return _0x5bf999['queryInterface']['changeColumn'](_0x1e4cd3,_0x280f18,_0x368614)[_0x5bd3a1('0x7')](function(){const _0x454c21=_0x5bd3a1;logger['info'](_0x454c21('0xc'),_0x280f18,_0x1e4cd3);})['catch'](function(_0x544133){logger['info'](JSON['stringify'](_0x544133));});});},Migration['prototype'][_0x57ed93('0x1c')]=function(_0x439623,_0x472b40,_0x58fae9){const _0x7d1de4=_0x57ed93,_0x3d8233=this;this[_0x7d1de4('0x20')][_0x7d1de4('0xa')](function(){const _0x436f59=_0x7d1de4;return _0x3d8233['queryInterface'][_0x436f59('0x1c')](_0x439623,_0x472b40,_0x58fae9)[_0x436f59('0x7')](function(){const _0x169fb6=_0x436f59;logger[_0x169fb6('0x3')](_0x169fb6('0x18'),_0x472b40,_0x439623);})[_0x436f59('0x1e')](function(_0x419fa7){const _0x491b39=_0x436f59;logger[_0x491b39('0x3')](JSON['stringify'](_0x419fa7));});});},Migration[_0x57ed93('0xd')]['dropTable']=function(_0x3b07e2){const _0x7ec5a3=_0x57ed93,_0x7f26fe=this;this['sequence'][_0x7ec5a3('0xa')](function(){const _0x3b4b9a=_0x7ec5a3;return _0x7f26fe[_0x3b4b9a('0x5')]['dropTable'](_0x3b07e2,{'force':!![]})[_0x3b4b9a('0x7')](function(){logger['info']('table\x20dropped\x20%s',_0x3b07e2);})[_0x3b4b9a('0x1e')](function(_0x47db84){const _0x498f9f=_0x3b4b9a;logger[_0x498f9f('0x3')](JSON['stringify'](_0x47db84));});});},Migration[_0x57ed93('0xd')][_0x57ed93('0x6')]=function(_0x39c21a,_0x4e8f91,_0x15ea04){const _0x13fb73=_0x57ed93,_0x344112=this;this[_0x13fb73('0x20')]['enqueue'](function(){const _0x904b66=_0x13fb73;return _0x344112[_0x904b66('0x5')]['addIndex'](_0x39c21a,_0x4e8f91,{'indexName':_0x15ea04})[_0x904b66('0x7')](function(){const _0x147e07=_0x904b66;logger[_0x147e07('0x3')](_0x147e07('0x21'),_0x39c21a,_0x4e8f91['join'](','),_0x15ea04);})[_0x904b66('0x1e')](function(_0x2ceeb1){const _0x1d1428=_0x904b66;logger[_0x1d1428('0x3')](JSON[_0x1d1428('0x0')](_0x2ceeb1));});});},Migration['prototype'][_0x57ed93('0x15')]=function(_0x1be67b,_0x3e9fb2){const _0x707d43=_0x57ed93,_0x176c74=this;this[_0x707d43('0x20')][_0x707d43('0xa')](function(){const _0x5f5fbb=_0x707d43;return _0x176c74[_0x5f5fbb('0x5')][_0x5f5fbb('0x15')](_0x1be67b,_0x3e9fb2)[_0x5f5fbb('0x7')](function(){const _0x3e6150=_0x5f5fbb;logger[_0x3e6150('0x3')](_0x3e6150('0x23'),_0x1be67b,_0x3e9fb2);})[_0x5f5fbb('0x1e')](function(_0x446afc){const _0x372764=_0x5f5fbb;logger[_0x372764('0x3')](JSON[_0x372764('0x0')](_0x446afc));});});},Migration[_0x57ed93('0xd')][_0x57ed93('0x13')]=function(_0x314a88){const _0x174b89=_0x57ed93,_0x4aa6f4=this;this['sequence'][_0x174b89('0xa')](function(){const _0x4c384e=_0x174b89;return _0x4aa6f4[_0x4c384e('0x5')][_0x4c384e('0x22')]['query'](_0x314a88)['then'](function(){const _0x23cefd=_0x4c384e;logger[_0x23cefd('0x3')](_0x23cefd('0x16'),_0x314a88);})[_0x4c384e('0x1e')](function(_0x1a3c92){const _0x3e66e3=_0x4c384e;logger['info'](JSON[_0x3e66e3('0x0')](_0x1a3c92));});});},Migration[_0x57ed93('0xd')][_0x57ed93('0x26')]=function(_0x413d5f,_0x580892){const _0x336ba9=_0x57ed93,_0x2da90d=this;this[_0x336ba9('0x20')][_0x336ba9('0xa')](function(){const _0x1ba0e5=_0x336ba9;return _0x2da90d[_0x1ba0e5('0x5')][_0x1ba0e5('0x26')](_0x413d5f,_0x580892)['then'](function(){const _0x178c43=_0x1ba0e5;logger[_0x178c43('0x3')](_0x178c43('0x17'),_0x580892,_0x413d5f);})['catch'](function(_0x557c12){const _0x521537=_0x1ba0e5;logger[_0x521537('0x3')](util[_0x521537('0x2')](_0x557c12,{'showHidden':![],'depth':null}));});});},Migration[_0x57ed93('0xd')][_0x57ed93('0xf')]=function(_0x8e307,_0x22ccbe,_0x2de040){const _0x58a626=_0x57ed93,_0x58834b=this;this['sequence'][_0x58a626('0xa')](function(){const _0x59f6ff=_0x58a626;return _0x58834b[_0x59f6ff('0x5')]['renameColumn'](_0x8e307,_0x22ccbe,_0x2de040)[_0x59f6ff('0x7')](function(){const _0x27cb26=_0x59f6ff;logger[_0x27cb26('0x3')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x22ccbe,_0x2de040,_0x8e307);})[_0x59f6ff('0x1e')](function(_0x9d20a){const _0x28d65c=_0x59f6ff;logger[_0x28d65c('0x3')](util['inspect'](_0x9d20a,{'showHidden':![],'depth':null}));});});},Migration[_0x57ed93('0xd')][_0x57ed93('0x9')]=function(_0x409739){const _0x4b2cdc=_0x57ed93;this[_0x4b2cdc('0x20')][_0x4b2cdc('0xa')](function(){return _0x409739();});},module[_0x57ed93('0x14')]={'up':function(_0x33fd24,_0x5a8ca4){return new Promise(function(_0x1d680f){const _0x5aaf6e=a960_0xe8a9,_0x1fe3ff=new Migration(_0x33fd24);_0x1fe3ff[_0x5aaf6e('0x25')](_0x5aaf6e('0x1d'),'smsMethod',{'type':_0x5a8ca4[_0x5aaf6e('0x8')]('basic',_0x5aaf6e('0xe'),_0x5aaf6e('0x10'),'SI','TI','GP')}),_0x1fe3ff[_0x5aaf6e('0x13')]('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'),_0x1fe3ff[_0x5aaf6e('0x13')](_0x5aaf6e('0x11')),_0x1fe3ff['query']('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'),_0x1fe3ff['changeColumn'](_0x5aaf6e('0x1d'),_0x5aaf6e('0x1b'),{'type':_0x5a8ca4[_0x5aaf6e('0x8')]('SI','TI','GP')}),_0x1fe3ff[_0x5aaf6e('0x1c')](_0x5aaf6e('0x24'),_0x5aaf6e('0x1f'),{'type':_0x5a8ca4[_0x5aaf6e('0x12')]}),_0x1fe3ff[_0x5aaf6e('0x9')](_0x1d680f);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.82.js b/server/migrations/2.0.82.js index 2836eb1..b28ac87 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a961_0x476d=['table\x20dropped\x20%s','sms_accounts','inspect','prototype','sequence','clicksend','tail','clickatell','stringify','Added\x20column\x20%s\x20to\x20%s','query','plivo','join','../config/logger','skebby','ENUM','final','addIndex','csc','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','finally','removeIndex','addColumn','changeColumn','connectel','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','info','dropTable','migration','then','twilio','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeColumn','addIndex\x20%s\x20%s\x20%s','queryInterface','apiKey'];(function(_0x241978,_0x476d6e){const _0x30290f=function(_0x26709c){while(--_0x26709c){_0x241978['push'](_0x241978['shift']());}};_0x30290f(++_0x476d6e);}(a961_0x476d,0x14b));const a961_0x3029=function(_0x241978,_0x476d6e){_0x241978=_0x241978-0x0;let _0x30290f=a961_0x476d[_0x241978];return _0x30290f;};const _0x55411a=a961_0x3029;'use strict';const util=require('util'),logger=require(_0x55411a('0x2'))(_0x55411a('0x14')),Sequence=function(){};Sequence[_0x55411a('0x20')][_0x55411a('0x18')]=function(_0x26709c){const _0x15aa7e=_0x55411a;this[_0x15aa7e('0x23')]=this[_0x15aa7e('0x23')]?this['tail'][_0x15aa7e('0xb')](_0x26709c):_0x26709c();};const Migration=function(_0x47de49){const _0x43b12c=_0x55411a;this[_0x43b12c('0x1b')]=_0x47de49,this[_0x43b12c('0x21')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4371bb,_0x343aec,_0x31f765){const _0x481dc5=_0x55411a,_0x2dd9e1=this;this[_0x481dc5('0x21')][_0x481dc5('0x18')](function(){const _0x30c5d0=_0x481dc5;return _0x2dd9e1[_0x30c5d0('0x1b')][_0x30c5d0('0xe')](_0x4371bb,_0x343aec,_0x31f765)[_0x30c5d0('0x15')](function(){const _0x27b8ef=_0x30c5d0;logger[_0x27b8ef('0x12')](_0x27b8ef('0x9'),_0x343aec,_0x4371bb);})[_0x30c5d0('0x8')](function(_0x5bd47d){const _0x1578fa=_0x30c5d0;logger[_0x1578fa('0x12')](JSON[_0x1578fa('0x25')](_0x5bd47d));});});},Migration[_0x55411a('0x20')][_0x55411a('0xd')]=function(_0x3a0188,_0x5a6102,_0x202489){const _0x3f3ff3=_0x55411a,_0x29ac33=this;this[_0x3f3ff3('0x21')][_0x3f3ff3('0x18')](function(){const _0x464b75=_0x3f3ff3;return _0x29ac33[_0x464b75('0x1b')]['addColumn'](_0x3a0188,_0x5a6102,_0x202489)[_0x464b75('0x15')](function(){const _0x116a0d=_0x464b75;logger['info'](_0x116a0d('0x26'),_0x5a6102,_0x3a0188);})['catch'](function(_0x28f0a2){const _0x5834a6=_0x464b75;logger[_0x5834a6('0x12')](JSON[_0x5834a6('0x25')](_0x28f0a2));});});},Migration[_0x55411a('0x20')]['dropTable']=function(_0xd7d2cb){const _0x104ef1=_0x55411a,_0x20adf7=this;this[_0x104ef1('0x21')][_0x104ef1('0x18')](function(){const _0x30af04=_0x104ef1;return _0x20adf7[_0x30af04('0x1b')][_0x30af04('0x13')](_0xd7d2cb,{'force':!![]})[_0x30af04('0x15')](function(){const _0x2ac29b=_0x30af04;logger[_0x2ac29b('0x12')](_0x2ac29b('0x1d'),_0xd7d2cb);})[_0x30af04('0x8')](function(_0x270aae){const _0x3e3e8c=_0x30af04;logger[_0x3e3e8c('0x12')](JSON[_0x3e3e8c('0x25')](_0x270aae));});});},Migration[_0x55411a('0x20')]['addIndex']=function(_0x24b1f6,_0x35e10d,_0x1c41e1){const _0x412d7a=_0x55411a,_0x2f4a3a=this;this[_0x412d7a('0x21')][_0x412d7a('0x18')](function(){const _0x193a1b=_0x412d7a;return _0x2f4a3a['queryInterface'][_0x193a1b('0x6')](_0x24b1f6,_0x35e10d,{'indexName':_0x1c41e1})['then'](function(){const _0x3a8d55=_0x193a1b;logger[_0x3a8d55('0x12')](_0x3a8d55('0x1a'),_0x24b1f6,_0x35e10d[_0x3a8d55('0x1')](','),_0x1c41e1);})[_0x193a1b('0x8')](function(_0xd6ffcf){const _0x69b16c=_0x193a1b;logger[_0x69b16c('0x12')](JSON[_0x69b16c('0x25')](_0xd6ffcf));});});},Migration[_0x55411a('0x20')][_0x55411a('0xc')]=function(_0x20857e,_0x4d9ea0){const _0x4b63b2=_0x55411a,_0x102e37=this;this['sequence'][_0x4b63b2('0x18')](function(){const _0x4b23d3=_0x4b63b2;return _0x102e37[_0x4b23d3('0x1b')][_0x4b23d3('0xc')](_0x20857e,_0x4d9ea0)[_0x4b23d3('0x15')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x20857e,_0x4d9ea0);})[_0x4b23d3('0x8')](function(_0x52e944){const _0x548968=_0x4b23d3;logger['info'](JSON[_0x548968('0x25')](_0x52e944));});});},Migration[_0x55411a('0x20')][_0x55411a('0x27')]=function(_0x51d612){const _0x2100d3=_0x55411a,_0x10d8ff=this;this[_0x2100d3('0x21')][_0x2100d3('0x18')](function(){const _0x2cfc66=_0x2100d3;return _0x10d8ff[_0x2cfc66('0x1b')]['sequelize'][_0x2cfc66('0x27')](_0x51d612)[_0x2cfc66('0x15')](function(){const _0x27f272=_0x2cfc66;logger[_0x27f272('0x12')]('query\x20%s',_0x51d612);})[_0x2cfc66('0x8')](function(_0x3d3ae9){const _0x3ef344=_0x2cfc66;logger[_0x3ef344('0x12')](JSON[_0x3ef344('0x25')](_0x3d3ae9));});});},Migration[_0x55411a('0x20')][_0x55411a('0x19')]=function(_0x5b24ac,_0x592f86){const _0x268787=_0x55411a,_0x4e5e68=this;this[_0x268787('0x21')]['enqueue'](function(){const _0x5af387=_0x268787;return _0x4e5e68[_0x5af387('0x1b')]['removeColumn'](_0x5b24ac,_0x592f86)[_0x5af387('0x15')](function(){const _0x14dfae=_0x5af387;logger[_0x14dfae('0x12')](_0x14dfae('0x17'),_0x592f86,_0x5b24ac);})['catch'](function(_0x34ebf1){const _0x218243=_0x5af387;logger[_0x218243('0x12')](util[_0x218243('0x1f')](_0x34ebf1,{'showHidden':![],'depth':null}));});});},Migration[_0x55411a('0x20')]['renameColumn']=function(_0x392836,_0x87163e,_0x6c6257){const _0x5847df=_0x55411a,_0x29d651=this;this[_0x5847df('0x21')][_0x5847df('0x18')](function(){const _0x40da46=_0x5847df;return _0x29d651[_0x40da46('0x1b')][_0x40da46('0x11')](_0x392836,_0x87163e,_0x6c6257)[_0x40da46('0x15')](function(){const _0x4faf75=_0x40da46;logger[_0x4faf75('0x12')](_0x4faf75('0x10'),_0x87163e,_0x6c6257,_0x392836);})['catch'](function(_0x1c9aa1){const _0x1a6607=_0x40da46;logger[_0x1a6607('0x12')](util[_0x1a6607('0x1f')](_0x1c9aa1,{'showHidden':![],'depth':null}));});});},Migration[_0x55411a('0x20')][_0x55411a('0x5')]=function(_0x3d4827){const _0x33defc=_0x55411a;this[_0x33defc('0x21')]['enqueue'](function(){return _0x3d4827();});},module['exports']={'up':function(_0x5cd05b,_0x557cbb){return new Promise(function(_0x14dbc){const _0x167bf3=a961_0x3029,_0x49539f=new Migration(_0x5cd05b);_0x49539f[_0x167bf3('0xd')](_0x167bf3('0x1e'),_0x167bf3('0x1c'),{'type':_0x557cbb[_0x167bf3('0xa')]}),_0x49539f[_0x167bf3('0xe')](_0x167bf3('0x1e'),'type',{'type':_0x557cbb[_0x167bf3('0x4')](_0x167bf3('0x16'),_0x167bf3('0x3'),_0x167bf3('0xf'),_0x167bf3('0x22'),_0x167bf3('0x0'),_0x167bf3('0x24'),_0x167bf3('0x7'))}),_0x49539f[_0x167bf3('0x5')](_0x14dbc);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.83.js b/server/migrations/2.0.83.js index 4886b50..2fd1f66 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a962_0x108a=['util','queuecallerenterreason','query','Removed\x20column\x20%s\x20from\x20%s','enqueue','sms_accounts','Added\x20column\x20%s\x20to\x20%s','removeColumn','migration','join','dropTable','cm_contacts','twilio','infobip','then','info','final','prototype','ENUM','OwnerId','catch','changeColumn','sequence','addColumn','fb_data','Changed\x20column\x20%s\x20in\x20table\x20%s','skebby','../config/logger','query\x20%s','report_queue','renameColumn','inspect','addIndex','INTEGER','clicksend','table\x20dropped\x20%s','finally','csc','queryInterface','type','STRING','stringify','connectel','tail','exports','baseUrl','plivo','cm_hopper','clickatell','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s'];(function(_0x2ac48c,_0x108ab1){const _0x3a708b=function(_0x517185){while(--_0x517185){_0x2ac48c['push'](_0x2ac48c['shift']());}};_0x3a708b(++_0x108ab1);}(a962_0x108a,0x114));const a962_0x3a70=function(_0x2ac48c,_0x108ab1){_0x2ac48c=_0x2ac48c-0x0;let _0x3a708b=a962_0x108a[_0x2ac48c];return _0x3a708b;};const _0x1200b1=a962_0x3a70;'use strict';const util=require(_0x1200b1('0x24')),logger=require(_0x1200b1('0xb'))(_0x1200b1('0x2c')),Sequence=function(){};Sequence[_0x1200b1('0x1')][_0x1200b1('0x28')]=function(_0x517185){const _0x5ea8c6=_0x1200b1;this[_0x5ea8c6('0x1b')]=this[_0x5ea8c6('0x1b')]?this[_0x5ea8c6('0x1b')][_0x5ea8c6('0x14')](_0x517185):_0x517185();};const Migration=function(_0x121cfe){const _0x513911=_0x1200b1;this[_0x513911('0x16')]=_0x121cfe,this[_0x513911('0x6')]=new Sequence();};Migration['prototype'][_0x1200b1('0x5')]=function(_0x12fdc1,_0x47e984,_0x5b32f5){const _0xf61e21=_0x1200b1,_0x4f9d38=this;this['sequence'][_0xf61e21('0x28')](function(){const _0x571f03=_0xf61e21;return _0x4f9d38['queryInterface'][_0x571f03('0x5')](_0x12fdc1,_0x47e984,_0x5b32f5)[_0x571f03('0x32')](function(){const _0x1358c4=_0x571f03;logger[_0x1358c4('0x33')](_0x1358c4('0x9'),_0x47e984,_0x12fdc1);})[_0x571f03('0x4')](function(_0x4720b0){const _0x13fee9=_0x571f03;logger[_0x13fee9('0x33')](JSON[_0x13fee9('0x19')](_0x4720b0));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x7')]=function(_0x4277b8,_0x2421c5,_0x2bd3be){const _0x30c3d6=_0x1200b1,_0x38e5be=this;this[_0x30c3d6('0x6')][_0x30c3d6('0x28')](function(){const _0x5f40fa=_0x30c3d6;return _0x38e5be[_0x5f40fa('0x16')][_0x5f40fa('0x7')](_0x4277b8,_0x2421c5,_0x2bd3be)['then'](function(){const _0x198065=_0x5f40fa;logger[_0x198065('0x33')](_0x198065('0x2a'),_0x2421c5,_0x4277b8);})['catch'](function(_0x52736b){const _0x3b0067=_0x5f40fa;logger[_0x3b0067('0x33')](JSON[_0x3b0067('0x19')](_0x52736b));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x2e')]=function(_0x4bf1df){const _0x397d74=_0x1200b1,_0x2ddf5f=this;this[_0x397d74('0x6')][_0x397d74('0x28')](function(){const _0x4e1c3c=_0x397d74;return _0x2ddf5f['queryInterface'][_0x4e1c3c('0x2e')](_0x4bf1df,{'force':!![]})[_0x4e1c3c('0x32')](function(){const _0x12e8c1=_0x4e1c3c;logger[_0x12e8c1('0x33')](_0x12e8c1('0x13'),_0x4bf1df);})['catch'](function(_0x3941cf){const _0x43f925=_0x4e1c3c;logger[_0x43f925('0x33')](JSON[_0x43f925('0x19')](_0x3941cf));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x10')]=function(_0x253ed1,_0x1ba16f,_0x2c6206){const _0x4c76f5=_0x1200b1,_0x46ba2d=this;this['sequence'][_0x4c76f5('0x28')](function(){const _0x3e8487=_0x4c76f5;return _0x46ba2d[_0x3e8487('0x16')][_0x3e8487('0x10')](_0x253ed1,_0x1ba16f,{'indexName':_0x2c6206})[_0x3e8487('0x32')](function(){const _0x526bbf=_0x3e8487;logger[_0x526bbf('0x33')]('addIndex\x20%s\x20%s\x20%s',_0x253ed1,_0x1ba16f[_0x526bbf('0x2d')](','),_0x2c6206);})[_0x3e8487('0x4')](function(_0x35847f){const _0x4f9ae0=_0x3e8487;logger[_0x4f9ae0('0x33')](JSON['stringify'](_0x35847f));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x21')]=function(_0x102954,_0x352ae4){const _0x2ef899=_0x1200b1,_0x1f156c=this;this[_0x2ef899('0x6')][_0x2ef899('0x28')](function(){const _0x46a060=_0x2ef899;return _0x1f156c[_0x46a060('0x16')][_0x46a060('0x21')](_0x102954,_0x352ae4)['then'](function(){const _0x1ea896=_0x46a060;logger[_0x1ea896('0x33')](_0x1ea896('0x23'),_0x102954,_0x352ae4);})['catch'](function(_0x35a827){const _0x10a8a5=_0x46a060;logger[_0x10a8a5('0x33')](JSON[_0x10a8a5('0x19')](_0x35a827));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x26')]=function(_0x2ed6b5){const _0x1241b1=_0x1200b1,_0x191ade=this;this[_0x1241b1('0x6')][_0x1241b1('0x28')](function(){const _0x345496=_0x1241b1;return _0x191ade[_0x345496('0x16')]['sequelize'][_0x345496('0x26')](_0x2ed6b5)['then'](function(){const _0x48e0c9=_0x345496;logger[_0x48e0c9('0x33')](_0x48e0c9('0xc'),_0x2ed6b5);})[_0x345496('0x4')](function(_0x3d4739){const _0x2b407f=_0x345496;logger['info'](JSON[_0x2b407f('0x19')](_0x3d4739));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0x2b')]=function(_0x14c930,_0x3e57db){const _0x3396c5=_0x1200b1,_0xa37863=this;this[_0x3396c5('0x6')][_0x3396c5('0x28')](function(){const _0x218aab=_0x3396c5;return _0xa37863[_0x218aab('0x16')]['removeColumn'](_0x14c930,_0x3e57db)['then'](function(){const _0x5c83d8=_0x218aab;logger['info'](_0x5c83d8('0x27'),_0x3e57db,_0x14c930);})[_0x218aab('0x4')](function(_0x5715c4){const _0x2ecc9d=_0x218aab;logger[_0x2ecc9d('0x33')](util['inspect'](_0x5715c4,{'showHidden':![],'depth':null}));});});},Migration[_0x1200b1('0x1')][_0x1200b1('0xe')]=function(_0x4b7b86,_0x4c2af3,_0x118637){const _0x35918b=_0x1200b1,_0x4deabb=this;this['sequence'][_0x35918b('0x28')](function(){const _0x4c0e7d=_0x35918b;return _0x4deabb[_0x4c0e7d('0x16')][_0x4c0e7d('0xe')](_0x4b7b86,_0x4c2af3,_0x118637)[_0x4c0e7d('0x32')](function(){const _0x35a84e=_0x4c0e7d;logger[_0x35a84e('0x33')](_0x35a84e('0x22'),_0x4c2af3,_0x118637,_0x4b7b86);})[_0x4c0e7d('0x4')](function(_0x6c87c){const _0x323ff5=_0x4c0e7d;logger[_0x323ff5('0x33')](util[_0x323ff5('0xf')](_0x6c87c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1200b1('0x0')]=function(_0x2f57d3){const _0x1e24f6=_0x1200b1;this[_0x1e24f6('0x6')][_0x1e24f6('0x28')](function(){return _0x2f57d3();});},module[_0x1200b1('0x1c')]={'up':function(_0x56d55e,_0x1339d3){return new Promise(function(_0x324525){const _0x2f5889=a962_0x3a70,_0x37edc2=new Migration(_0x56d55e);_0x37edc2[_0x2f5889('0x7')](_0x2f5889('0x1f'),_0x2f5889('0x3'),{'type':_0x1339d3[_0x2f5889('0x11')](0xb)}),_0x37edc2[_0x2f5889('0x26')]('ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL'),_0x37edc2[_0x2f5889('0x7')](_0x2f5889('0x2f'),_0x2f5889('0x8'),{'type':_0x1339d3[_0x2f5889('0x18')]}),_0x37edc2[_0x2f5889('0x5')](_0x2f5889('0x29'),_0x2f5889('0x17'),{'type':_0x1339d3[_0x2f5889('0x2')](_0x2f5889('0x30'),_0x2f5889('0xa'),_0x2f5889('0x1a'),_0x2f5889('0x12'),_0x2f5889('0x1e'),_0x2f5889('0x20'),_0x2f5889('0x15'),_0x2f5889('0x31'))}),_0x37edc2['addColumn'](_0x2f5889('0x29'),_0x2f5889('0x1d'),{'type':_0x1339d3['STRING']}),_0x37edc2[_0x2f5889('0x7')](_0x2f5889('0xd'),_0x2f5889('0x25'),{'type':_0x1339d3[_0x2f5889('0x11')],'defaultValue':0x0}),_0x37edc2['final'](_0x324525);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.0.84.js b/server/migrations/2.0.84.js index ad2f9ac..9725160 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a963_0xb59f=['changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','catch','removeIndex','final','addColumn','finally','then','info','removeColumn','sequence','dropTable','Added\x20column\x20%s\x20to\x20%s','tail','stringify','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','prototype','exports','query','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','join','migration','util','addIndex','table\x20dropped\x20%s','renameColumn','enqueue'];(function(_0x3cffb0,_0xb59f08){const _0x4d22c=function(_0x184d25){while(--_0x184d25){_0x3cffb0['push'](_0x3cffb0['shift']());}};_0x4d22c(++_0xb59f08);}(a963_0xb59f,0xe3));const a963_0x4d22=function(_0x3cffb0,_0xb59f08){_0x3cffb0=_0x3cffb0-0x0;let _0x4d22c=a963_0xb59f[_0x3cffb0];return _0x4d22c;};const _0x11d29e=a963_0x4d22;'use strict';const util=require(_0x11d29e('0x8')),logger=require('../config/logger')(_0x11d29e('0x7')),Sequence=function(){};Sequence[_0x11d29e('0x1')][_0x11d29e('0xc')]=function(_0x184d25){const _0x5c4f50=_0x11d29e;this[_0x5c4f50('0x1b')]=this[_0x5c4f50('0x1b')]?this[_0x5c4f50('0x1b')][_0x5c4f50('0x14')](_0x184d25):_0x184d25();};const Migration=function(_0x2a37f9){const _0x596640=_0x11d29e;this[_0x596640('0xf')]=_0x2a37f9,this['sequence']=new Sequence();};Migration['prototype'][_0x11d29e('0xd')]=function(_0x5c2c1c,_0x490f32,_0x7d1dee){const _0x1235a9=_0x11d29e,_0x4a9c57=this;this[_0x1235a9('0x18')][_0x1235a9('0xc')](function(){const _0x38f6b1=_0x1235a9;return _0x4a9c57[_0x38f6b1('0xf')][_0x38f6b1('0xd')](_0x5c2c1c,_0x490f32,_0x7d1dee)[_0x38f6b1('0x15')](function(){const _0x16171f=_0x38f6b1;logger[_0x16171f('0x16')](_0x16171f('0x5'),_0x490f32,_0x5c2c1c);})[_0x38f6b1('0x10')](function(_0x481042){const _0x5106ce=_0x38f6b1;logger[_0x5106ce('0x16')](JSON[_0x5106ce('0x1c')](_0x481042));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0x13')]=function(_0x437599,_0x468d3d,_0x1db128){const _0x5b78d0=_0x11d29e,_0x3fb039=this;this['sequence'][_0x5b78d0('0xc')](function(){const _0x2f6202=_0x5b78d0;return _0x3fb039[_0x2f6202('0xf')][_0x2f6202('0x13')](_0x437599,_0x468d3d,_0x1db128)[_0x2f6202('0x15')](function(){const _0x440f8e=_0x2f6202;logger['info'](_0x440f8e('0x1a'),_0x468d3d,_0x437599);})[_0x2f6202('0x10')](function(_0x398a76){const _0x254022=_0x2f6202;logger[_0x254022('0x16')](JSON[_0x254022('0x1c')](_0x398a76));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0x19')]=function(_0x56c588){const _0x231fdc=_0x11d29e,_0x38a8c0=this;this[_0x231fdc('0x18')][_0x231fdc('0xc')](function(){const _0x369913=_0x231fdc;return _0x38a8c0[_0x369913('0xf')][_0x369913('0x19')](_0x56c588,{'force':!![]})[_0x369913('0x15')](function(){const _0x22c88b=_0x369913;logger['info'](_0x22c88b('0xa'),_0x56c588);})[_0x369913('0x10')](function(_0x592158){const _0x312638=_0x369913;logger[_0x312638('0x16')](JSON['stringify'](_0x592158));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0x9')]=function(_0x5a5fb7,_0x191974,_0x5d9d36){const _0x2cb89b=_0x11d29e,_0x35bb8e=this;this[_0x2cb89b('0x18')][_0x2cb89b('0xc')](function(){const _0x367840=_0x2cb89b;return _0x35bb8e['queryInterface'][_0x367840('0x9')](_0x5a5fb7,_0x191974,{'indexName':_0x5d9d36})[_0x367840('0x15')](function(){const _0xaa1e11=_0x367840;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x5a5fb7,_0x191974[_0xaa1e11('0x6')](','),_0x5d9d36);})[_0x367840('0x10')](function(_0x5e404a){const _0x1de946=_0x367840;logger[_0x1de946('0x16')](JSON[_0x1de946('0x1c')](_0x5e404a));});});},Migration[_0x11d29e('0x1')]['removeIndex']=function(_0x130449,_0x47d256){const _0xbed986=_0x11d29e,_0xd83db2=this;this[_0xbed986('0x18')]['enqueue'](function(){const _0x12c7ab=_0xbed986;return _0xd83db2[_0x12c7ab('0xf')][_0x12c7ab('0x11')](_0x130449,_0x47d256)[_0x12c7ab('0x15')](function(){const _0x31e8d1=_0x12c7ab;logger[_0x31e8d1('0x16')](_0x31e8d1('0x1d'),_0x130449,_0x47d256);})[_0x12c7ab('0x10')](function(_0x49ccb5){const _0x1e144b=_0x12c7ab;logger[_0x1e144b('0x16')](JSON[_0x1e144b('0x1c')](_0x49ccb5));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0x3')]=function(_0x4e8d1e){const _0x216259=_0x11d29e,_0x14e2e5=this;this['sequence'][_0x216259('0xc')](function(){const _0x3136d3=_0x216259;return _0x14e2e5[_0x3136d3('0xf')]['sequelize'][_0x3136d3('0x3')](_0x4e8d1e)[_0x3136d3('0x15')](function(){const _0x1f8ea0=_0x3136d3;logger[_0x1f8ea0('0x16')]('query\x20%s',_0x4e8d1e);})[_0x3136d3('0x10')](function(_0x27af){const _0x2fa432=_0x3136d3;logger[_0x2fa432('0x16')](JSON[_0x2fa432('0x1c')](_0x27af));});});},Migration['prototype'][_0x11d29e('0x17')]=function(_0x396e0e,_0x3bc732){const _0x1dfb7e=_0x11d29e,_0x502747=this;this[_0x1dfb7e('0x18')][_0x1dfb7e('0xc')](function(){const _0x470818=_0x1dfb7e;return _0x502747[_0x470818('0xf')]['removeColumn'](_0x396e0e,_0x3bc732)[_0x470818('0x15')](function(){const _0x4ed2c5=_0x470818;logger['info'](_0x4ed2c5('0x0'),_0x3bc732,_0x396e0e);})[_0x470818('0x10')](function(_0x5933ac){const _0x19d7c2=_0x470818;logger[_0x19d7c2('0x16')](util['inspect'](_0x5933ac,{'showHidden':![],'depth':null}));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0xb')]=function(_0x2463e8,_0x520424,_0x5c4847){const _0x494064=_0x11d29e,_0x507a6d=this;this['sequence'][_0x494064('0xc')](function(){const _0x5107a2=_0x494064;return _0x507a6d['queryInterface'][_0x5107a2('0xb')](_0x2463e8,_0x520424,_0x5c4847)[_0x5107a2('0x15')](function(){const _0x5cc05b=_0x5107a2;logger[_0x5cc05b('0x16')](_0x5cc05b('0xe'),_0x520424,_0x5c4847,_0x2463e8);})[_0x5107a2('0x10')](function(_0x4a31e2){const _0x3b7bcb=_0x5107a2;logger['info'](util[_0x3b7bcb('0x4')](_0x4a31e2,{'showHidden':![],'depth':null}));});});},Migration[_0x11d29e('0x1')][_0x11d29e('0x12')]=function(_0x36557c){const _0x1f9ade=_0x11d29e;this[_0x1f9ade('0x18')][_0x1f9ade('0xc')](function(){return _0x36557c();});},module[_0x11d29e('0x2')]={'up':function(_0x1835ea){return new Promise(function(_0x4ae6fe){const _0x360aa2=a963_0x4d22,_0x11ad4a=new Migration(_0x1835ea);_0x11ad4a[_0x360aa2('0x12')](_0x4ae6fe);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.1.0.js b/server/migrations/2.1.0.js index a200a53..3c5f88c 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a964_0x2f96=['\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','sequence','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201203\x20THEN\x20\x27Reports\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','\x20\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\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\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','final','\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','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201500\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=\x20402\x20THEN\x20\x27InboundRoutes\x27','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\x20\x20category\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','DELETE\x20FROM\x20tmpSections','\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=\x20500\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20601\x20THEN\x20\x27MailQueues\x27','\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\x20WHEN\x20sectionId\x20=\x20410\x20THEN\x20\x27VoicePrefixes\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20401\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27inbound\x27),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20701\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20sms_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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','INSERT\x20INTO\x20tally\x20(n)','\x20\x20SET','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','addColumn','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20UNION','\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\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201308\x20THEN\x20\x27VtigerAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','changeColumn','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','\x20\x20\x20\x20t.permissions\x20permissions','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\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\x20n)\x20AS\x20split','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','\x20\x20FROM\x20tmpSections','reportType','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','renameColumn','\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\x20sectionId\x20int(11)\x20not\x20null,','Removed\x20column\x20%s\x20from\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20700\x20THEN\x20\x27DELETE\x27','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20);','\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\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)','CREATE\x20TABLE\x20tmpResources','CREATE\x20TABLE\x20tmpSharedProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','\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\x20END',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20d','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','UPDATE\x20tmpSections','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201001\x20THEN\x20\x27CannedAnswers\x27','CREATE\x20TABLE\x20tmpExtractedResources\x20(','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20SELECT\x20id,\x20permissions,\x20null','INSERT\x20INTO\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27','users','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','addIndex\x20%s\x20%s\x20%s','\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','addIndex','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','table\x20dropped\x20%s','INSERT\x20INTO\x20tmpSharedProfiles','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','\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\x20SET\x20u.userProfileId\x20=\x201','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','\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\x20s.sectionId\x20permission,','CREATE\x20TABLE\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','INTEGER','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','INSERT\x20INTO\x20tmpSingleProfiles','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\x20\x20`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','analytics_extracted_reports','name','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','\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\x20WHEN\x20sectionId\x20in\x20(401,\x20402,\x20403,\x20404,\x20405,\x20406,\x20407,\x20408,\x20409,\x20410,\x20411)\x20THEN\x20\x27Voice\x27','migration','\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\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201301\x20THEN\x20\x27ZendeskAccounts\x27','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','tail','\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\x20FROM\x20tally','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','\x20\x20END','sequelize','\x20\x20FROM\x20tmpFinalProfiles\x20t','\x20\x20WHERE\x20x.sectionId\x20=\x20701;','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','TRUNCATE\x20TABLE\x20tmpPermissions;','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.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=\x20502\x20THEN\x20\x27ChatWebsites\x27','\x20\x20FROM\x20tmpNormalizedUsers\x20x','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20CASE','stringify',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','\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=\x201701\x20THEN\x20\x27Projects\x27','(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20a','INSERT\x20INTO\x20tmpCustomResources','Added\x20column\x20%s\x20to\x20%s','\x20\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)\x20c','\x20\x20FROM\x20tmpGroupedPermissions','prototype','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\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','INSERT\x20INTO\x20tmpPermissions','\x20\x20FROM\x20tmpNormalizedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20userId\x20text','then','\x20\x20FROM\x20tmpCustomResources;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','\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=\x201006\x20THEN\x20\x27Scheduler\x27','\x20\x20FROM\x20user_profiles\x20u','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','\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=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','exports','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId','\x20\x20PRIMARY\x20KEY\x20(`id`),','\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=\x201005\x20THEN\x20\x27Pauses\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','UPDATE\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27','\x20\x20FROM\x20(SELECT','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','\x20\x20WHERE\x20u.id\x20=\x20f.userId;','\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20FROM\x20tmpFinalProfiles;','\x20\x20ORDER\x20BY\x20id;','INSERT\x20INTO\x20tmpGroupedPermissions','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20FROM\x20users','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201011\x20THEN\x20\x27Trunks\x27','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','dropTable','\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=\x20300\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=\x201510\x20THEN\x20\x27Realtime\x27','ON\x20UPDATE\x20CASCADE','\x20\x20ORDER\x20BY\x20userId;','queryInterface','\x20\x20FROM\x20tmpSections;','\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','removeIndex','voice_voicemail','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20\x20\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',',(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=\x201202\x20THEN\x20\x27ExtractedReports\x27','CREATE\x20TABLE\x20tmpSections','CREATE\x20TABLE\x20tally\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27','removeIndex\x20%s\x20%s','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpPermissions\x20r\x20ON\x20CHAR_LENGTH(r.userIds)\x20-\x20CHAR_LENGTH(REPLACE(r.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','query\x20%s','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','INSERT\x20INTO\x20tmpSections','ALTER\x20TABLE\x20`users`\x20','\x20\x20SELECT\x20userId,\x20permissions','\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=\x20301\x20THEN\x20\x27Lists\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','CREATE\x20TABLE\x20tmpCustomResources','info','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','INSERT\x20INTO\x20tmpNormalizedSections','CREATE\x20TABLE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201307\x20THEN\x20\x27ZohoAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x20302\x20THEN\x20\x27Companies\x27','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','join','removeColumn','\x20\x20WHERE\x20x.sectionId\x20=\x20601;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','UPDATE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201306\x20THEN\x20\x27DeskAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20407\x20THEN\x20\x27MusicOnHolds\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','INSERT\x20INTO\x20tmpResources','\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\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','inspect','UPDATE\x20tmpSections\x20s','\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\x20p.userIds\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpResources\x20r\x20ON\x20CHAR_LENGTH(r.resourceId)\x20-\x20CHAR_LENGTH(REPLACE(r.resourceId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','finally','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20SELECT\x20*','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27CustomDashboards\x27','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','INSERT\x20INTO\x20tmpNormalizedResources','\x20\x20userId\x20int(11)','\x20\x20\x20\x20insertedId\x20int(11),','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20`sectionId`\x20int(11)\x20NOT\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=\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\x20CASE','\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\x20\x20\x20sectionId\x20int(11)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201601\x20THEN\x20\x27DELETE\x27','CREATE\x20TABLE\x20tmpNormalizedSections','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\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=\x201009\x20THEN\x20\x27Templates\x27','UPDATE\x20tmpNormalizedResources\x20x','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\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\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=\x20901\x20THEN\x20\x27FaxQueues\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\x20resourceId\x20text','REFERENCES\x20user_profiles(`id`)\x20','\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','\x20\x20WHERE\x20x.sectionId\x20=\x20901;','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20404\x20THEN\x20\x27InternalRoutes\x27','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\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)','enqueue','catch','\x20\x20resourceId\x20int(11),','util','CREATE\x20TABLE\x20tmpPermissions','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','\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','query','\x20\x20\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.OpenchannelAccountId,\x20x.userId','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=\x20510\x20THEN\x20\x27Realtime\x27','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27'];(function(_0x46e00b,_0x2f968a){const _0x46fe8d=function(_0x5a40c3){while(--_0x5a40c3){_0x46e00b['push'](_0x46e00b['shift']());}};_0x46fe8d(++_0x2f968a);}(a964_0x2f96,0x1aa));const a964_0x46fe=function(_0x46e00b,_0x2f968a){_0x46e00b=_0x46e00b-0x0;let _0x46fe8d=a964_0x2f96[_0x46e00b];return _0x46fe8d;};const _0xbdeb=a964_0x46fe;'use strict';const util=require(_0xbdeb('0x113')),logger=require('../config/logger')(_0xbdeb('0x3e')),Sequence=function(){};Sequence[_0xbdeb('0x65')]['enqueue']=function(_0x5a40c3){const _0x5dfef8=_0xbdeb;this[_0x5dfef8('0x44')]=this[_0x5dfef8('0x44')]?this['tail'][_0x5dfef8('0xe0')](_0x5a40c3):_0x5a40c3();};const Migration=function(_0x41d7e0){const _0x6b2aca=_0xbdeb;this[_0x6b2aca('0xa1')]=_0x41d7e0,this[_0x6b2aca('0x121')]=new Sequence();};Migration[_0xbdeb('0x65')][_0xbdeb('0x154')]=function(_0x1dac51,_0x4a8020,_0x4e7193){const _0x45abf8=_0xbdeb,_0x140094=this;this[_0x45abf8('0x121')][_0x45abf8('0x110')](function(){const _0x43747c=_0x45abf8;return _0x140094[_0x43747c('0xa1')]['changeColumn'](_0x1dac51,_0x4a8020,_0x4e7193)['then'](function(){const _0x179582=_0x43747c;logger[_0x179582('0xbd')](_0x179582('0x11c'),_0x4a8020,_0x1dac51);})['catch'](function(_0x5e2c13){const _0x5c551e=_0x43747c;logger[_0x5c551e('0xbd')](JSON['stringify'](_0x5e2c13));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0x14b')]=function(_0x484ead,_0x325794,_0x3259b5){const _0xf3e458=_0xbdeb,_0x3c35d6=this;this[_0xf3e458('0x121')][_0xf3e458('0x110')](function(){const _0x4d6d34=_0xf3e458;return _0x3c35d6['queryInterface'][_0x4d6d34('0x14b')](_0x484ead,_0x325794,_0x3259b5)[_0x4d6d34('0x6e')](function(){const _0x5bbfb7=_0x4d6d34;logger['info'](_0x5bbfb7('0x61'),_0x325794,_0x484ead);})[_0x4d6d34('0x111')](function(_0x21a7b2){const _0x4594c7=_0x4d6d34;logger[_0x4594c7('0xbd')](JSON['stringify'](_0x21a7b2));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0x9b')]=function(_0x412d5f){const _0x5ac54c=_0xbdeb,_0x1f53a3=this;this[_0x5ac54c('0x121')][_0x5ac54c('0x110')](function(){const _0x3bd6f2=_0x5ac54c;return _0x1f53a3['queryInterface'][_0x3bd6f2('0x9b')](_0x412d5f,{'force':!![]})[_0x3bd6f2('0x6e')](function(){const _0x5c3419=_0x3bd6f2;logger['info'](_0x5c3419('0x23'),_0x412d5f);})[_0x3bd6f2('0x111')](function(_0x5108f3){const _0x1a6e28=_0x3bd6f2;logger['info'](JSON[_0x1a6e28('0x57')](_0x5108f3));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0x21')]=function(_0x3f1ae1,_0x2df3f1,_0x5289c0){const _0x60220f=_0xbdeb,_0x294a07=this;this[_0x60220f('0x121')][_0x60220f('0x110')](function(){const _0x594858=_0x60220f;return _0x294a07[_0x594858('0xa1')][_0x594858('0x21')](_0x3f1ae1,_0x2df3f1,{'indexName':_0x5289c0})[_0x594858('0x6e')](function(){const _0x3b577b=_0x594858;logger['info'](_0x3b577b('0x1f'),_0x3f1ae1,_0x2df3f1[_0x3b577b('0xc8')](','),_0x5289c0);})[_0x594858('0x111')](function(_0x2f3c51){logger['info'](JSON['stringify'](_0x2f3c51));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0xa5')]=function(_0x42a574,_0x21d337){const _0x4d4f66=_0xbdeb,_0x3f66ec=this;this[_0x4d4f66('0x121')][_0x4d4f66('0x110')](function(){const _0x1c0c96=_0x4d4f66;return _0x3f66ec[_0x1c0c96('0xa1')][_0x1c0c96('0xa5')](_0x42a574,_0x21d337)[_0x1c0c96('0x6e')](function(){const _0x58a685=_0x1c0c96;logger[_0x58a685('0xbd')](_0x58a685('0xae'),_0x42a574,_0x21d337);})[_0x1c0c96('0x111')](function(_0x5e7fab){const _0x43c21f=_0x1c0c96;logger[_0x43c21f('0xbd')](JSON[_0x43c21f('0x57')](_0x5e7fab));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0x119')]=function(_0x3c944a){const _0x32b9d9=_0xbdeb,_0x59a54a=this;this[_0x32b9d9('0x121')][_0x32b9d9('0x110')](function(){const _0x1b7424=_0x32b9d9;return _0x59a54a[_0x1b7424('0xa1')][_0x1b7424('0x4b')]['query'](_0x3c944a)[_0x1b7424('0x6e')](function(){const _0x2a3ab5=_0x1b7424;logger[_0x2a3ab5('0xbd')](_0x2a3ab5('0xb4'),_0x3c944a);})[_0x1b7424('0x111')](function(_0x4cd272){const _0x2bf67d=_0x1b7424;logger['info'](JSON[_0x2bf67d('0x57')](_0x4cd272));});});},Migration[_0xbdeb('0x65')]['removeColumn']=function(_0x43663e,_0x17be22){const _0x50a9c3=this;this['sequence']['enqueue'](function(){const _0x4d353b=a964_0x46fe;return _0x50a9c3[_0x4d353b('0xa1')][_0x4d353b('0xc9')](_0x43663e,_0x17be22)[_0x4d353b('0x6e')](function(){const _0x5ec2fb=_0x4d353b;logger['info'](_0x5ec2fb('0x162'),_0x17be22,_0x43663e);})[_0x4d353b('0x111')](function(_0x4f82f9){const _0x4c98b5=_0x4d353b;logger[_0x4c98b5('0xbd')](util[_0x4c98b5('0xd8')](_0x4f82f9,{'showHidden':![],'depth':null}));});});},Migration[_0xbdeb('0x65')][_0xbdeb('0x15f')]=function(_0x2c401d,_0x46a21d,_0x684f63){const _0x29f363=_0xbdeb,_0x10a931=this;this[_0x29f363('0x121')][_0x29f363('0x110')](function(){const _0x3f6b59=_0x29f363;return _0x10a931['queryInterface']['renameColumn'](_0x2c401d,_0x46a21d,_0x684f63)[_0x3f6b59('0x6e')](function(){const _0x17ca86=_0x3f6b59;logger[_0x17ca86('0xbd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x46a21d,_0x684f63,_0x2c401d);})[_0x3f6b59('0x111')](function(_0x2ec9ff){const _0x549fed=_0x3f6b59;logger[_0x549fed('0xbd')](util['inspect'](_0x2ec9ff,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xbdeb('0x132')]=function(_0x4eafe6){const _0x543904=_0xbdeb;this[_0x543904('0x121')][_0x543904('0x110')](function(){return _0x4eafe6();});},module[_0xbdeb('0x7f')]={'up':function(_0x85f2e0,_0x5b744a){return new Promise(function(_0x5a30fc){const _0x3d13b5=a964_0x46fe,_0x42d68b=new Migration(_0x85f2e0);_0x42d68b['addColumn'](_0x3d13b5('0x37'),'reportId',{'type':_0x5b744a[_0x3d13b5('0x30')]}),_0x42d68b[_0x3d13b5('0x14b')](_0x3d13b5('0x37'),_0x3d13b5('0x15c'),{'type':_0x5b744a['STRING']}),_0x42d68b[_0x3d13b5('0x14b')](_0x3d13b5('0x1c'),'userProfileId',{'type':_0x5b744a[_0x3d13b5('0x30')]}),_0x42d68b[_0x3d13b5('0xc9')](_0x3d13b5('0xa6'),_0x3d13b5('0x38')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x87')+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x3d13b5('0x11')+_0x3d13b5('0xb')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x3d13b5('0x83')+'\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)'+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x3d13b5('0x77')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xb7')+_0x3d13b5('0x134')+_0x3d13b5('0x137')+_0x3d13b5('0x102')+_0x3d13b5('0x9f')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x3b')+_0x3d13b5('0x42')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x3d13b5('0x10d')+_0x3d13b5('0xec')+_0x3d13b5('0xc0')+_0x3d13b5('0x35')+_0x3d13b5('0x2a')+_0x3d13b5('0x6c')+_0x3d13b5('0x126')+_0x3d13b5('0x1')+_0x3d13b5('0x83')+'\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),'+_0x3d13b5('0x128')+_0x3d13b5('0x103')+_0x3d13b5('0x58')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x5c')+_0x3d13b5('0x42')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+'\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,'+_0x3d13b5('0x129')+_0x3d13b5('0x6c')+_0x3d13b5('0x126')+'\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x3d13b5('0x83')+_0x3d13b5('0x6')+_0x3d13b5('0x26')+'\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'+_0x3d13b5('0x58')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xac')+'\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY'+');'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x148')+'SELECT\x20NULL\x20FROM'+_0x3d13b5('0x5f')+_0x3d13b5('0xa9')+_0x3d13b5('0x63')+_0x3d13b5('0x9')+',(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'+';'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x114')+_0x3d13b5('0x62')+_0x3d13b5('0xbf')+_0x3d13b5('0x15e')+_0x3d13b5('0x2e')+'\x20\x20);'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x69')+_0x3d13b5('0x15')+_0x3d13b5('0x97')+'\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27'+_0x3d13b5('0x94')),_0x42d68b['query'](_0x3d13b5('0xf4')+_0x3d13b5('0x62')+_0x3d13b5('0xe6')+'\x20\x20\x20\x20userId\x20text,'+'\x20\x20\x20\x20resourceId\x20text'+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xc2')+'\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200'+_0x3d13b5('0x8f')+_0x3d13b5('0x75')+_0x3d13b5('0xdb')+_0x3d13b5('0xf1')+_0x3d13b5('0x3a')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x2d')+'\x20\x20('+_0x3d13b5('0xeb')+_0x3d13b5('0x2f')+_0x3d13b5('0x0')),_0x42d68b['query']('INSERT\x20INTO\x20tmpNormalizedPermissions'+_0x3d13b5('0xe3')+'\x20\x20FROM\x20tmpNormalizedSections'+'\x20\x20GROUP\x20BY\x20userId;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xaf')+_0x3d13b5('0x13e')+'\x20\x20WHERE\x20u.id\x20=\x20t.userId;'),_0x42d68b['query'](_0x3d13b5('0x50')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x69')+_0x3d13b5('0x36')+'\x20\x20FROM\x20users'+_0x3d13b5('0xe1')+_0x3d13b5('0x84')+_0x3d13b5('0x59')),_0x42d68b[_0x3d13b5('0x119')]('CREATE\x20TABLE\x20tmpNormalizedUsers'+_0x3d13b5('0x62')+_0x3d13b5('0xe6')+'\x20\x20\x20\x20userId\x20text,'+_0x3d13b5('0x101')+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20tmpNormalizedUsers'+_0x3d13b5('0x150')+_0x3d13b5('0x8f')+_0x3d13b5('0x2c')+_0x3d13b5('0xa')+'\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'+_0x3d13b5('0x3a')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x10')+_0x3d13b5('0x161')+_0x3d13b5('0x112')+_0x3d13b5('0xe8')+'\x20\x20);'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+_0x3d13b5('0x106')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x3d13b5('0x130')+'\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+'\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId'+_0x3d13b5('0x54')+'\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20501;'),_0x42d68b['query'](_0x3d13b5('0x52')+_0x3d13b5('0x11e')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20502;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+_0x3d13b5('0xf8')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x3d13b5('0xc')+_0x3d13b5('0xca')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+_0x3d13b5('0xe5')+_0x3d13b5('0x54')+'\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x3d13b5('0x48')),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x3d13b5('0x43')+_0x3d13b5('0x54')+_0x3d13b5('0x98')+_0x3d13b5('0x4d')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+_0x3d13b5('0x78')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x3d13b5('0x34')),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x3d13b5('0x1d')+_0x3d13b5('0x54')+_0x3d13b5('0x105')+'\x20\x20WHERE\x20x.sectionId\x20=\x20801;'),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x3d13b5('0x11b')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x3d13b5('0x9a')+'\x20\x20WHERE\x20x.sectionId\x20=\x20802;'),_0x42d68b[_0x3d13b5('0x119')]('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId'+_0x3d13b5('0x54')+_0x3d13b5('0xb3')+_0x3d13b5('0x109')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId'+_0x3d13b5('0x54')+_0x3d13b5('0x29')+_0x3d13b5('0x107')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x52')+_0x3d13b5('0xb5')+_0x3d13b5('0x54')+_0x3d13b5('0x5a')+_0x3d13b5('0x117')),_0x42d68b['query'](_0x3d13b5('0x52')+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x3d13b5('0x54')+_0x3d13b5('0x10a')+_0x3d13b5('0x130')+_0x3d13b5('0xd6')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xef')+_0x3d13b5('0x62')+_0x3d13b5('0x18')+_0x3d13b5('0x90')+'\x20\x20);'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x95')+_0x3d13b5('0xb8')+'\x20\x20FROM\x20(SELECT'+_0x3d13b5('0x155')+_0x3d13b5('0x156')+_0x3d13b5('0xda')+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x4')+'\x20\x20('+_0x3d13b5('0xbf')+_0x3d13b5('0x15e')+_0x3d13b5('0x2e')+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x24')+'\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null'+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x3d13b5('0x51')+_0x3d13b5('0xf7')+_0x3d13b5('0xfe')+'\x20\x20\x20\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'+_0x3d13b5('0xa8')+'\x20\x20\x20\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'+_0x3d13b5('0x159')+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x3d13b5('0x12')+'\x20\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'+_0x3d13b5('0x8d')+_0x3d13b5('0x146')+_0x3d13b5('0x12f')+'\x20\x20GROUP\x20BY\x20permissions'+_0x3d13b5('0x88')),_0x42d68b[_0x3d13b5('0x119')]('CREATE\x20TABLE\x20tmpSingleProfiles'+_0x3d13b5('0x62')+_0x3d13b5('0x18')+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x3d13b5('0x2e')+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x33')+_0x3d13b5('0xb1')+_0x3d13b5('0x64')+_0x3d13b5('0xdf')+'\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'+_0x3d13b5('0xb2')+_0x3d13b5('0x133')+_0x3d13b5('0x86')+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x3d13b5('0x11a')+_0x3d13b5('0x12d')+_0x3d13b5('0x144')+_0x3d13b5('0x153')+_0x3d13b5('0x32')+_0x3d13b5('0xa0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xc3')+_0x3d13b5('0x62')+_0x3d13b5('0x18')+_0x3d13b5('0x15e')+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x16')+_0x3d13b5('0x122')+_0x3d13b5('0x14d')+_0x3d13b5('0x4f')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xb0')+'\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+_0x3d13b5('0x4c')+'\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()'+_0x3d13b5('0x93')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xcc')+'\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+_0x3d13b5('0x74')+_0x3d13b5('0xfa')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xab')+_0x3d13b5('0x62')+_0x3d13b5('0xea')+_0x3d13b5('0x72')+_0x3d13b5('0xe6')+_0x3d13b5('0x89')+_0x3d13b5('0xc7')+_0x3d13b5('0x5d')+_0x3d13b5('0xe9')+_0x3d13b5('0x6d')+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xb6')+_0x3d13b5('0x82')+'\x20\x20FROM\x20(SELECT'+_0x3d13b5('0x8a')+_0x3d13b5('0x160')+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId'+_0x3d13b5('0x46')+_0x3d13b5('0xce')+_0x3d13b5('0x19')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xd')+_0x3d13b5('0x149')+_0x3d13b5('0x8c')+_0x3d13b5('0x80')+'\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'+_0x3d13b5('0xee')+'\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'+_0x3d13b5('0x8e')+_0x3d13b5('0x13b')+_0x3d13b5('0x3c')+_0x3d13b5('0xad')+_0x3d13b5('0x9d')+_0x3d13b5('0xba')+_0x3d13b5('0xc6')+'\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'+_0x3d13b5('0x9c')+_0x3d13b5('0x79')+_0x3d13b5('0x3f')+_0x3d13b5('0x136')+_0x3d13b5('0x31')+_0x3d13b5('0x10b')+'\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'+_0x3d13b5('0x118')+_0x3d13b5('0xd2')+'\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'+_0x3d13b5('0x13')+_0x3d13b5('0x13f')+_0x3d13b5('0x76')+_0x3d13b5('0x13c')+'\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'+_0x3d13b5('0x53')+_0x3d13b5('0x11d')+'\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'+_0x3d13b5('0x13d')+'\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'+_0x3d13b5('0x2b')+_0x3d13b5('0x1b')+_0x3d13b5('0x163')+'\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'+_0x3d13b5('0x68')+'\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'+_0x3d13b5('0x145')+'\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'+_0x3d13b5('0x131')+_0x3d13b5('0x142')+_0x3d13b5('0xa3')+_0x3d13b5('0xff')+'\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=\x20910\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=\x201000\x20THEN\x20\x27DELETE\x27'+_0x3d13b5('0xf')+'\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'+_0x3d13b5('0x120')+_0x3d13b5('0x123')+_0x3d13b5('0x85')+_0x3d13b5('0x73')+'\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'+_0x3d13b5('0x45')+_0x3d13b5('0xfb')+_0x3d13b5('0xbb')+_0x3d13b5('0x99')+_0x3d13b5('0xc5')+_0x3d13b5('0x12c')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201101\x20THEN\x20\x27ODBC\x27'+'\x20\x20\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201103\x20THEN\x20\x27SquareProjects\x27'+_0x3d13b5('0x12a')+_0x3d13b5('0x7c')+_0x3d13b5('0xaa')+_0x3d13b5('0x12b')+_0x3d13b5('0x20')+_0x3d13b5('0x41')+_0x3d13b5('0x5')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201305\x20THEN\x20\x27SugarcrmAccounts\x27'+_0x3d13b5('0xd1')+_0x3d13b5('0xc4')+_0x3d13b5('0x151')+_0x3d13b5('0x6b')+_0x3d13b5('0xd5')+_0x3d13b5('0x135')+_0x3d13b5('0xdd')+_0x3d13b5('0xde')+_0x3d13b5('0x9e')+'\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'+_0x3d13b5('0xf3')+'\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'+_0x3d13b5('0x5e')+'\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'+_0x3d13b5('0xe4')+_0x3d13b5('0x14')+_0x3d13b5('0x8')+_0x3d13b5('0x5b')+_0x3d13b5('0x138')+_0x3d13b5('0x56')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27'+_0x3d13b5('0x40')+_0x3d13b5('0x49')+_0x3d13b5('0xc1')+_0x3d13b5('0x3d')+_0x3d13b5('0x116')+_0x3d13b5('0x70')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27'+_0x3d13b5('0xe')+_0x3d13b5('0x11f')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27'+_0x3d13b5('0x15d')+_0x3d13b5('0x152')+_0x3d13b5('0xcd')+_0x3d13b5('0x104')+_0x3d13b5('0x17')+_0x3d13b5('0x158')+'\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'+'\x20\x20\x20\x20\x20\x20END'+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x13a')+'\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xbc')+_0x3d13b5('0x62')+_0x3d13b5('0xea')+_0x3d13b5('0x72')+_0x3d13b5('0xe6')+_0x3d13b5('0x89')+_0x3d13b5('0xc7')+_0x3d13b5('0x5d')+_0x3d13b5('0xe9')+_0x3d13b5('0x6d')+_0x3d13b5('0x0')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x60')+_0x3d13b5('0xe2')+_0x3d13b5('0x15b')+_0x3d13b5('0x14c')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x1e')+'\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;'),_0x42d68b['query'](_0x3d13b5('0xd')+_0x3d13b5('0x67')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xd')+_0x3d13b5('0x47')),_0x42d68b['query']('UPDATE\x20tmpSections'+_0x3d13b5('0x1a')),_0x42d68b['query'](_0x3d13b5('0x8b')+'\x20\x20SET\x20insertedId\x20=\x20(SELECT'+_0x3d13b5('0xf0')+_0x3d13b5('0x139')+_0x3d13b5('0x2')+_0x3d13b5('0xd7')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x14a')+_0x3d13b5('0x15a')+_0x3d13b5('0xa2')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xd9')+_0x3d13b5('0xed')+'\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'+_0x3d13b5('0x7d')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x127')+_0x3d13b5('0x164')+_0x3d13b5('0x7e')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x3')+_0x3d13b5('0x62')+'\x20\x20\x20\x20\x20\x20resourceId\x20text,'+_0x3d13b5('0x81')+_0x3d13b5('0x14f')+_0x3d13b5('0x12e')+'\x20\x20);'),_0x42d68b['query'](_0x3d13b5('0xd4')+_0x3d13b5('0xf9')+'\x20\x20FROM\x20tmpSections\x20s'+_0x3d13b5('0x10c')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x55')+'\x20\x20('+_0x3d13b5('0xea')+_0x3d13b5('0x39')+_0x3d13b5('0x92')+'\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+_0x3d13b5('0xf2')+_0x3d13b5('0x0')),_0x42d68b['query'](_0x3d13b5('0xe7')+_0x3d13b5('0x147')+'\x20\x20FROM\x20(SELECT'+_0x3d13b5('0xa4')+'\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,'+'\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,'+_0x3d13b5('0x7')+_0x3d13b5('0x46')+_0x3d13b5('0xdc')+_0x3d13b5('0x19')),_0x42d68b['query'](_0x3d13b5('0xe7')+_0x3d13b5('0xf5')+_0x3d13b5('0x6f')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xfc')+_0x3d13b5('0x96')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+_0x3d13b5('0x141')+_0x3d13b5('0xb9')+'\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)'+_0x3d13b5('0x100')+_0x3d13b5('0xf6')+_0x3d13b5('0x143')+_0x3d13b5('0x7b')+_0x3d13b5('0x66')+_0x3d13b5('0xd3')+_0x3d13b5('0x27')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20902\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x3d13b5('0x14e')+_0x3d13b5('0x10f')+'\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)'+_0x3d13b5('0x4a')+_0x3d13b5('0xa7')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xd0')+_0x3d13b5('0x140')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xfd')+_0x3d13b5('0x4e')+_0x3d13b5('0x6a')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x25')+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+_0x3d13b5('0x91')),_0x42d68b[_0x3d13b5('0x119')]('UPDATE\x20users\x20u'+_0x3d13b5('0x28')+_0x3d13b5('0x125')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xbe')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x157')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x10e')),_0x42d68b['query'](_0x3d13b5('0x22')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x108')),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x124')),_0x42d68b['query'](_0x3d13b5('0x115')),_0x42d68b['query'](_0x3d13b5('0x7a')),_0x42d68b[_0x3d13b5('0x119')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0xcb')),_0x42d68b[_0x3d13b5('0x119')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;'),_0x42d68b[_0x3d13b5('0x119')](_0x3d13b5('0x71')),_0x42d68b['query'](_0x3d13b5('0xcf')),_0x42d68b['final'](_0x5a30fc);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.0.js b/server/migrations/2.2.0.js index e7ae0f2..8c62548 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a965_0x12d4=['removeColumn','INTEGER','removeIndex\x20%s\x20%s','removeIndex','sequence','table\x20dropped\x20%s','query','util','sms_accounts','users','queryInterface','info','infobip','clicksend','sequelize','join','twilio','addColumn','Added\x20column\x20%s\x20to\x20%s','connectel','intelepeer','then','ENUM','renameColumn','final','csc','../config/logger','stringify','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','dropTable','plivo','clickatell','enqueue','changeColumn','inspect','catch','finally','prototype','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','skebby'];(function(_0x2e8f15,_0x12d4cc){const _0x4e92b8=function(_0x21d3a5){while(--_0x21d3a5){_0x2e8f15['push'](_0x2e8f15['shift']());}};_0x4e92b8(++_0x12d4cc);}(a965_0x12d4,0x161));const a965_0x4e92=function(_0x2e8f15,_0x12d4cc){_0x2e8f15=_0x2e8f15-0x0;let _0x4e92b8=a965_0x12d4[_0x2e8f15];return _0x4e92b8;};const _0x46e325=a965_0x4e92;'use strict';const util=require(_0x46e325('0x29')),logger=require(_0x46e325('0x11'))('migration'),Sequence=function(){};Sequence[_0x46e325('0x1e')][_0x46e325('0x19')]=function(_0x21d3a5){const _0x3cc576=_0x46e325;this[_0x3cc576('0x1f')]=this[_0x3cc576('0x1f')]?this[_0x3cc576('0x1f')][_0x3cc576('0x1d')](_0x21d3a5):_0x21d3a5();};const Migration=function(_0x5b9d8d){const _0x3b69ef=_0x46e325;this['queryInterface']=_0x5b9d8d,this[_0x3b69ef('0x26')]=new Sequence();};Migration[_0x46e325('0x1e')][_0x46e325('0x1a')]=function(_0x15f02e,_0x1d36a0,_0x45592e){const _0x238389=_0x46e325,_0x48805b=this;this[_0x238389('0x26')][_0x238389('0x19')](function(){const _0x4f1a68=_0x238389;return _0x48805b[_0x4f1a68('0x1')][_0x4f1a68('0x1a')](_0x15f02e,_0x1d36a0,_0x45592e)['then'](function(){const _0x2b1093=_0x4f1a68;logger[_0x2b1093('0x2')](_0x2b1093('0x14'),_0x1d36a0,_0x15f02e);})[_0x4f1a68('0x1c')](function(_0x6a3aeb){const _0x36879b=_0x4f1a68;logger[_0x36879b('0x2')](JSON['stringify'](_0x6a3aeb));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x8')]=function(_0x202d01,_0x4dd5c9,_0x12c564){const _0x4d1231=_0x46e325,_0x20d7e2=this;this[_0x4d1231('0x26')][_0x4d1231('0x19')](function(){const _0x4c251d=_0x4d1231;return _0x20d7e2[_0x4c251d('0x1')][_0x4c251d('0x8')](_0x202d01,_0x4dd5c9,_0x12c564)[_0x4c251d('0xc')](function(){const _0x54f663=_0x4c251d;logger[_0x54f663('0x2')](_0x54f663('0x9'),_0x4dd5c9,_0x202d01);})[_0x4c251d('0x1c')](function(_0x28a4c9){const _0x5c423f=_0x4c251d;logger[_0x5c423f('0x2')](JSON[_0x5c423f('0x12')](_0x28a4c9));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x16')]=function(_0x2014c){const _0x5cd520=_0x46e325,_0x3e6282=this;this[_0x5cd520('0x26')][_0x5cd520('0x19')](function(){const _0x4d7ac0=_0x5cd520;return _0x3e6282[_0x4d7ac0('0x1')][_0x4d7ac0('0x16')](_0x2014c,{'force':!![]})[_0x4d7ac0('0xc')](function(){const _0x131fd6=_0x4d7ac0;logger['info'](_0x131fd6('0x27'),_0x2014c);})[_0x4d7ac0('0x1c')](function(_0x4def6f){const _0x35e26c=_0x4d7ac0;logger[_0x35e26c('0x2')](JSON[_0x35e26c('0x12')](_0x4def6f));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x13')]=function(_0x48969e,_0x2792ac,_0x11d285){const _0x27e34d=_0x46e325,_0x9068da=this;this[_0x27e34d('0x26')]['enqueue'](function(){const _0x15b757=_0x27e34d;return _0x9068da['queryInterface'][_0x15b757('0x13')](_0x48969e,_0x2792ac,{'indexName':_0x11d285})['then'](function(){const _0x36bc08=_0x15b757;logger[_0x36bc08('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x48969e,_0x2792ac[_0x36bc08('0x6')](','),_0x11d285);})[_0x15b757('0x1c')](function(_0x2e3db3){const _0x4a3e55=_0x15b757;logger[_0x4a3e55('0x2')](JSON[_0x4a3e55('0x12')](_0x2e3db3));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x25')]=function(_0x4ed431,_0x216201){const _0x38ea81=_0x46e325,_0xf775f7=this;this[_0x38ea81('0x26')]['enqueue'](function(){const _0x33642f=_0x38ea81;return _0xf775f7[_0x33642f('0x1')][_0x33642f('0x25')](_0x4ed431,_0x216201)[_0x33642f('0xc')](function(){const _0x5848c0=_0x33642f;logger['info'](_0x5848c0('0x24'),_0x4ed431,_0x216201);})[_0x33642f('0x1c')](function(_0x8e5c89){logger['info'](JSON['stringify'](_0x8e5c89));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x28')]=function(_0x1db797){const _0x12d802=_0x46e325,_0xe7be66=this;this[_0x12d802('0x26')][_0x12d802('0x19')](function(){const _0x5c0856=_0x12d802;return _0xe7be66[_0x5c0856('0x1')][_0x5c0856('0x5')]['query'](_0x1db797)[_0x5c0856('0xc')](function(){const _0x4a53a6=_0x5c0856;logger[_0x4a53a6('0x2')]('query\x20%s',_0x1db797);})['catch'](function(_0x1ad656){logger['info'](JSON['stringify'](_0x1ad656));});});},Migration[_0x46e325('0x1e')][_0x46e325('0x22')]=function(_0x1bf8b0,_0x4f68f9){const _0x3743b8=_0x46e325,_0x4f54f8=this;this[_0x3743b8('0x26')][_0x3743b8('0x19')](function(){const _0x2fa148=_0x3743b8;return _0x4f54f8['queryInterface'][_0x2fa148('0x22')](_0x1bf8b0,_0x4f68f9)[_0x2fa148('0xc')](function(){const _0x348a88=_0x2fa148;logger[_0x348a88('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0x4f68f9,_0x1bf8b0);})[_0x2fa148('0x1c')](function(_0x51f277){const _0x4011d4=_0x2fa148;logger['info'](util[_0x4011d4('0x1b')](_0x51f277,{'showHidden':![],'depth':null}));});});},Migration[_0x46e325('0x1e')][_0x46e325('0xe')]=function(_0x5dd343,_0x316e2c,_0x210842){const _0x4b62e8=_0x46e325,_0x3df069=this;this['sequence'][_0x4b62e8('0x19')](function(){const _0x424d27=_0x4b62e8;return _0x3df069[_0x424d27('0x1')][_0x424d27('0xe')](_0x5dd343,_0x316e2c,_0x210842)[_0x424d27('0xc')](function(){const _0xafe110=_0x424d27;logger[_0xafe110('0x2')](_0xafe110('0x20'),_0x316e2c,_0x210842,_0x5dd343);})[_0x424d27('0x1c')](function(_0x5f30b4){const _0x3229b9=_0x424d27;logger[_0x3229b9('0x2')](util['inspect'](_0x5f30b4,{'showHidden':![],'depth':null}));});});},Migration[_0x46e325('0x1e')]['final']=function(_0x4af906){const _0x1d0d2c=_0x46e325;this['sequence'][_0x1d0d2c('0x19')](function(){return _0x4af906();});},module[_0x46e325('0x15')]={'up':function(_0x195bd7,_0x5c48bf){return new Promise(function(_0x5e1c04){const _0x207928=a965_0x4e92,_0x4b1abf=new Migration(_0x195bd7);_0x4b1abf['changeColumn'](_0x207928('0x2a'),'type',{'type':_0x5c48bf[_0x207928('0xd')](_0x207928('0x7'),_0x207928('0x21'),_0x207928('0xa'),_0x207928('0x4'),_0x207928('0x17'),_0x207928('0x18'),_0x207928('0x10'),_0x207928('0x3'),_0x207928('0xb'))}),_0x4b1abf[_0x207928('0x1a')](_0x207928('0x0'),'phoneBarListenPort',{'type':_0x5c48bf[_0x207928('0x23')](0x5),'defaultValue':0x1428}),_0x4b1abf[_0x207928('0xf')](_0x5e1c04);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.1.js b/server/migrations/2.2.1.js index 8dd36be..6f01f09 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a966_0x4def=['addIndex','queryInterface','removeColumn','dropTable','changeColumn','enqueue','sequelize','removeIndex\x20%s\x20%s','removeIndex','addColumn','migration','../config/logger','join','finally','stringify','then','final','addIndex\x20%s\x20%s\x20%s','exports','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','query','prototype','tail','util','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','renameColumn','catch','sequence'];(function(_0x3b1549,_0x4def01){const _0x23f4cc=function(_0x3250cf){while(--_0x3250cf){_0x3b1549['push'](_0x3b1549['shift']());}};_0x23f4cc(++_0x4def01);}(a966_0x4def,0x6d));const a966_0x23f4=function(_0x3b1549,_0x4def01){_0x3b1549=_0x3b1549-0x0;let _0x23f4cc=a966_0x4def[_0x3b1549];return _0x23f4cc;};const _0x151010=a966_0x23f4;'use strict';const util=require(_0x151010('0x8')),logger=require(_0x151010('0x1a'))(_0x151010('0x19')),Sequence=function(){};Sequence[_0x151010('0x6')][_0x151010('0x14')]=function(_0x3250cf){const _0x350f6b=_0x151010;this[_0x350f6b('0x7')]=this[_0x350f6b('0x7')]?this[_0x350f6b('0x7')][_0x350f6b('0x1c')](_0x3250cf):_0x3250cf();};const Migration=function(_0x544425){const _0x552bc0=_0x151010;this[_0x552bc0('0x10')]=_0x544425,this[_0x552bc0('0xe')]=new Sequence();};Migration[_0x151010('0x6')][_0x151010('0x13')]=function(_0x39f0fe,_0x1b5eb1,_0x76fbd9){const _0x459b4f=_0x151010,_0x4e1180=this;this[_0x459b4f('0xe')][_0x459b4f('0x14')](function(){const _0x86876a=_0x459b4f;return _0x4e1180[_0x86876a('0x10')][_0x86876a('0x13')](_0x39f0fe,_0x1b5eb1,_0x76fbd9)[_0x86876a('0x1e')](function(){const _0x495cd9=_0x86876a;logger[_0x495cd9('0xb')](_0x495cd9('0x4'),_0x1b5eb1,_0x39f0fe);})[_0x86876a('0xd')](function(_0x48050a){const _0x1cda6c=_0x86876a;logger['info'](JSON[_0x1cda6c('0x1d')](_0x48050a));});});},Migration[_0x151010('0x6')][_0x151010('0x18')]=function(_0x5a69de,_0xfe380f,_0x11db18){const _0x5d92c7=_0x151010,_0x45b81a=this;this[_0x5d92c7('0xe')][_0x5d92c7('0x14')](function(){const _0x55b5c7=_0x5d92c7;return _0x45b81a['queryInterface'][_0x55b5c7('0x18')](_0x5a69de,_0xfe380f,_0x11db18)['then'](function(){const _0x5410c2=_0x55b5c7;logger[_0x5410c2('0xb')]('Added\x20column\x20%s\x20to\x20%s',_0xfe380f,_0x5a69de);})[_0x55b5c7('0xd')](function(_0x184c9e){const _0x36d54f=_0x55b5c7;logger[_0x36d54f('0xb')](JSON[_0x36d54f('0x1d')](_0x184c9e));});});},Migration['prototype'][_0x151010('0x12')]=function(_0x49d14a){const _0x234a36=_0x151010,_0x5dcccb=this;this[_0x234a36('0xe')]['enqueue'](function(){const _0x1515b7=_0x234a36;return _0x5dcccb[_0x1515b7('0x10')][_0x1515b7('0x12')](_0x49d14a,{'force':!![]})[_0x1515b7('0x1e')](function(){const _0x4b1245=_0x1515b7;logger[_0x4b1245('0xb')]('table\x20dropped\x20%s',_0x49d14a);})[_0x1515b7('0xd')](function(_0x41be10){const _0x446dcd=_0x1515b7;logger[_0x446dcd('0xb')](JSON[_0x446dcd('0x1d')](_0x41be10));});});},Migration['prototype'][_0x151010('0xf')]=function(_0x387ec4,_0x24083f,_0x23c459){const _0x1eb16d=_0x151010,_0x1df6de=this;this[_0x1eb16d('0xe')]['enqueue'](function(){const _0x3c2cc4=_0x1eb16d;return _0x1df6de['queryInterface'][_0x3c2cc4('0xf')](_0x387ec4,_0x24083f,{'indexName':_0x23c459})['then'](function(){const _0x1faff2=_0x3c2cc4;logger[_0x1faff2('0xb')](_0x1faff2('0x1'),_0x387ec4,_0x24083f[_0x1faff2('0x1b')](','),_0x23c459);})[_0x3c2cc4('0xd')](function(_0x4822d2){const _0x3f1b8e=_0x3c2cc4;logger[_0x3f1b8e('0xb')](JSON[_0x3f1b8e('0x1d')](_0x4822d2));});});},Migration[_0x151010('0x6')][_0x151010('0x17')]=function(_0x407cf1,_0x52643c){const _0x322426=_0x151010,_0xbc288=this;this[_0x322426('0xe')][_0x322426('0x14')](function(){const _0x53fa4c=_0x322426;return _0xbc288['queryInterface']['removeIndex'](_0x407cf1,_0x52643c)[_0x53fa4c('0x1e')](function(){const _0x2d2666=_0x53fa4c;logger[_0x2d2666('0xb')](_0x2d2666('0x16'),_0x407cf1,_0x52643c);})[_0x53fa4c('0xd')](function(_0x1e1803){const _0x339817=_0x53fa4c;logger[_0x339817('0xb')](JSON[_0x339817('0x1d')](_0x1e1803));});});},Migration[_0x151010('0x6')][_0x151010('0x5')]=function(_0x2d03eb){const _0x10a8d3=this;this['sequence']['enqueue'](function(){const _0x4ff57=a966_0x23f4;return _0x10a8d3['queryInterface'][_0x4ff57('0x15')]['query'](_0x2d03eb)['then'](function(){logger['info']('query\x20%s',_0x2d03eb);})['catch'](function(_0x2d47d4){const _0x7572a6=_0x4ff57;logger['info'](JSON[_0x7572a6('0x1d')](_0x2d47d4));});});},Migration['prototype'][_0x151010('0x11')]=function(_0x7f6b4b,_0x21824a){const _0x114a1e=_0x151010,_0x22d69b=this;this[_0x114a1e('0xe')][_0x114a1e('0x14')](function(){const _0x5447f0=_0x114a1e;return _0x22d69b['queryInterface'][_0x5447f0('0x11')](_0x7f6b4b,_0x21824a)[_0x5447f0('0x1e')](function(){const _0x5335dc=_0x5447f0;logger[_0x5335dc('0xb')](_0x5335dc('0x9'),_0x21824a,_0x7f6b4b);})[_0x5447f0('0xd')](function(_0x3259ae){const _0xad46b5=_0x5447f0;logger[_0xad46b5('0xb')](util['inspect'](_0x3259ae,{'showHidden':![],'depth':null}));});});},Migration[_0x151010('0x6')]['renameColumn']=function(_0x14d358,_0x167540,_0x47a36b){const _0x1af976=_0x151010,_0x1dff90=this;this[_0x1af976('0xe')][_0x1af976('0x14')](function(){const _0xb7e565=_0x1af976;return _0x1dff90[_0xb7e565('0x10')][_0xb7e565('0xc')](_0x14d358,_0x167540,_0x47a36b)[_0xb7e565('0x1e')](function(){const _0x3606aa=_0xb7e565;logger[_0x3606aa('0xb')](_0x3606aa('0xa'),_0x167540,_0x47a36b,_0x14d358);})[_0xb7e565('0xd')](function(_0x4cca78){const _0x490a9=_0xb7e565;logger['info'](util[_0x490a9('0x3')](_0x4cca78,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x151010('0x0')]=function(_0x494d2d){const _0xe00917=_0x151010;this[_0xe00917('0xe')][_0xe00917('0x14')](function(){return _0x494d2d();});},module[_0x151010('0x2')]={'up':function(_0xe7777b){return new Promise(function(_0x56b657){const _0x30ac74=new Migration(_0xe7777b);_0x30ac74['final'](_0x56b657);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.2.js b/server/migrations/2.2.2.js index a6e64a9..8bec68e 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a967_0x1965=['renameColumn','final','then','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','changeColumn','dropTable','exports','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','info','stringify','../config/logger','catch','prototype','finally','addIndex','tail','query','queryInterface','inspect','removeIndex','util','removeColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','enqueue'];(function(_0x4764a9,_0x1965c5){const _0x4a80c1=function(_0x175eec){while(--_0x175eec){_0x4764a9['push'](_0x4764a9['shift']());}};_0x4a80c1(++_0x1965c5);}(a967_0x1965,0x7a));const a967_0x4a80=function(_0x4764a9,_0x1965c5){_0x4764a9=_0x4764a9-0x0;let _0x4a80c1=a967_0x1965[_0x4764a9];return _0x4a80c1;};const _0x32cab7=a967_0x4a80;'use strict';const util=require(_0x32cab7('0x11')),logger=require(_0x32cab7('0x7'))('migration'),Sequence=function(){};Sequence[_0x32cab7('0x9')][_0x32cab7('0x16')]=function(_0x175eec){const _0x5648f2=_0x32cab7;this['tail']=this['tail']?this[_0x5648f2('0xc')][_0x5648f2('0xa')](_0x175eec):_0x175eec();};const Migration=function(_0x17dd37){const _0x5474b8=_0x32cab7;this[_0x5474b8('0xe')]=_0x17dd37,this['sequence']=new Sequence();};Migration[_0x32cab7('0x9')][_0x32cab7('0x1c')]=function(_0x621531,_0x39f5d8,_0x3138bb){const _0x737626=_0x32cab7,_0xc23d9a=this;this['sequence'][_0x737626('0x16')](function(){const _0x2ddc08=_0x737626;return _0xc23d9a[_0x2ddc08('0xe')][_0x2ddc08('0x1c')](_0x621531,_0x39f5d8,_0x3138bb)['then'](function(){const _0x35fdd3=_0x2ddc08;logger[_0x35fdd3('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x39f5d8,_0x621531);})[_0x2ddc08('0x8')](function(_0x3f13f2){const _0x539cd1=_0x2ddc08;logger[_0x539cd1('0x5')](JSON[_0x539cd1('0x6')](_0x3f13f2));});});},Migration[_0x32cab7('0x9')]['addColumn']=function(_0x5c9f17,_0x569015,_0x44e8be){const _0x4f5fa9=_0x32cab7,_0x1bc983=this;this[_0x4f5fa9('0x15')]['enqueue'](function(){const _0x356636=_0x4f5fa9;return _0x1bc983[_0x356636('0xe')]['addColumn'](_0x5c9f17,_0x569015,_0x44e8be)[_0x356636('0x19')](function(){const _0x24be46=_0x356636;logger[_0x24be46('0x5')](_0x24be46('0x2'),_0x569015,_0x5c9f17);})['catch'](function(_0x4db0e5){const _0xaf7186=_0x356636;logger[_0xaf7186('0x5')](JSON[_0xaf7186('0x6')](_0x4db0e5));});});},Migration['prototype'][_0x32cab7('0x0')]=function(_0x577302){const _0x2ed70a=this;this['sequence']['enqueue'](function(){const _0x5bb1e0=a967_0x4a80;return _0x2ed70a[_0x5bb1e0('0xe')][_0x5bb1e0('0x0')](_0x577302,{'force':!![]})[_0x5bb1e0('0x19')](function(){const _0x744967=_0x5bb1e0;logger[_0x744967('0x5')]('table\x20dropped\x20%s',_0x577302);})['catch'](function(_0x419240){const _0x2753f4=_0x5bb1e0;logger[_0x2753f4('0x5')](JSON['stringify'](_0x419240));});});},Migration[_0x32cab7('0x9')][_0x32cab7('0xb')]=function(_0x1b2853,_0x51044e,_0x3233e7){const _0x2a4c42=_0x32cab7,_0x3ff90=this;this[_0x2a4c42('0x15')][_0x2a4c42('0x16')](function(){const _0x21cc8b=_0x2a4c42;return _0x3ff90['queryInterface']['addIndex'](_0x1b2853,_0x51044e,{'indexName':_0x3233e7})['then'](function(){const _0x2e8a13=a967_0x4a80;logger['info'](_0x2e8a13('0x1b'),_0x1b2853,_0x51044e['join'](','),_0x3233e7);})[_0x21cc8b('0x8')](function(_0xc72de5){const _0x3de3a2=_0x21cc8b;logger[_0x3de3a2('0x5')](JSON[_0x3de3a2('0x6')](_0xc72de5));});});},Migration['prototype'][_0x32cab7('0x10')]=function(_0xc46b12,_0x35b26d){const _0x4d629b=_0x32cab7,_0x400374=this;this[_0x4d629b('0x15')][_0x4d629b('0x16')](function(){const _0x5cc780=_0x4d629b;return _0x400374[_0x5cc780('0xe')]['removeIndex'](_0xc46b12,_0x35b26d)[_0x5cc780('0x19')](function(){const _0x128a9a=_0x5cc780;logger[_0x128a9a('0x5')](_0x128a9a('0x1a'),_0xc46b12,_0x35b26d);})[_0x5cc780('0x8')](function(_0x3b3e01){const _0x124dd9=_0x5cc780;logger['info'](JSON[_0x124dd9('0x6')](_0x3b3e01));});});},Migration[_0x32cab7('0x9')][_0x32cab7('0xd')]=function(_0x368d3f){const _0x16009d=_0x32cab7,_0x293564=this;this[_0x16009d('0x15')][_0x16009d('0x16')](function(){const _0x12dc93=_0x16009d;return _0x293564[_0x12dc93('0xe')][_0x12dc93('0x13')][_0x12dc93('0xd')](_0x368d3f)[_0x12dc93('0x19')](function(){const _0x424b8f=_0x12dc93;logger[_0x424b8f('0x5')](_0x424b8f('0x4'),_0x368d3f);})['catch'](function(_0x535b56){const _0x208ece=_0x12dc93;logger[_0x208ece('0x5')](JSON['stringify'](_0x535b56));});});},Migration[_0x32cab7('0x9')][_0x32cab7('0x12')]=function(_0x5fd835,_0x4385f9){const _0x4df8c8=_0x32cab7,_0x265a35=this;this[_0x4df8c8('0x15')][_0x4df8c8('0x16')](function(){const _0x388cd5=_0x4df8c8;return _0x265a35[_0x388cd5('0xe')][_0x388cd5('0x12')](_0x5fd835,_0x4385f9)['then'](function(){const _0x17808f=_0x388cd5;logger[_0x17808f('0x5')](_0x17808f('0x3'),_0x4385f9,_0x5fd835);})[_0x388cd5('0x8')](function(_0x2528c5){const _0x4cd7fa=_0x388cd5;logger[_0x4cd7fa('0x5')](util[_0x4cd7fa('0xf')](_0x2528c5,{'showHidden':![],'depth':null}));});});},Migration[_0x32cab7('0x9')][_0x32cab7('0x17')]=function(_0x1d3078,_0x2a64f7,_0x1ac48c){const _0x4bd5bc=_0x32cab7,_0x49ed08=this;this['sequence'][_0x4bd5bc('0x16')](function(){const _0x35418d=_0x4bd5bc;return _0x49ed08[_0x35418d('0xe')][_0x35418d('0x17')](_0x1d3078,_0x2a64f7,_0x1ac48c)[_0x35418d('0x19')](function(){const _0x881116=_0x35418d;logger['info'](_0x881116('0x14'),_0x2a64f7,_0x1ac48c,_0x1d3078);})[_0x35418d('0x8')](function(_0x22c583){const _0x2c31c8=_0x35418d;logger[_0x2c31c8('0x5')](util[_0x2c31c8('0xf')](_0x22c583,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x32cab7('0x18')]=function(_0xe3ddd4){const _0x3c8bd6=_0x32cab7;this[_0x3c8bd6('0x15')][_0x3c8bd6('0x16')](function(){return _0xe3ddd4();});},module[_0x32cab7('0x1')]={'up':function(_0x2417d8){return new Promise(function(_0x27f993){const _0x445668=a967_0x4a80,_0x1fd3fd=new Migration(_0x2417d8);_0x1fd3fd[_0x445668('0x18')](_0x27f993);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.3.js b/server/migrations/2.2.3.js index fed09a5..11a4b38 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a968_0x2235=['final','enqueue','finally','renameColumn','mail_messages','Removed\x20column\x20%s\x20from\x20%s','removeColumn','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','addIndex','info','sequence','changeColumn','prototype','stringify','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','tail','join','STRING','catch','removeIndex\x20%s\x20%s','removeIndex','../config/logger','query\x20%s','dropTable','queryInterface','inReplyTo','exports','inspect','addIndex\x20%s\x20%s\x20%s'];(function(_0x23e398,_0x22356a){const _0x9ef6f8=function(_0x117029){while(--_0x117029){_0x23e398['push'](_0x23e398['shift']());}};_0x9ef6f8(++_0x22356a);}(a968_0x2235,0x76));const a968_0x9ef6=function(_0x23e398,_0x22356a){_0x23e398=_0x23e398-0x0;let _0x9ef6f8=a968_0x2235[_0x23e398];return _0x9ef6f8;};const _0x5a495a=a968_0x9ef6;'use strict';const util=require('util'),logger=require(_0x5a495a('0x6'))('migration'),Sequence=function(){};Sequence[_0x5a495a('0x1c')][_0x5a495a('0xf')]=function(_0x117029){const _0x427972=_0x5a495a;this[_0x427972('0x0')]=this[_0x427972('0x0')]?this[_0x427972('0x0')][_0x427972('0x10')](_0x117029):_0x117029();};const Migration=function(_0x56e5aa){const _0x246f04=_0x5a495a;this[_0x246f04('0x9')]=_0x56e5aa,this['sequence']=new Sequence();};Migration[_0x5a495a('0x1c')][_0x5a495a('0x1b')]=function(_0x584be0,_0x28209d,_0x557874){const _0xbdebe7=_0x5a495a,_0x1671a5=this;this[_0xbdebe7('0x1a')][_0xbdebe7('0xf')](function(){const _0x1a9ac1=_0xbdebe7;return _0x1671a5['queryInterface'][_0x1a9ac1('0x1b')](_0x584be0,_0x28209d,_0x557874)[_0x1a9ac1('0x20')](function(){const _0x12c429=_0x1a9ac1;logger[_0x12c429('0x19')](_0x12c429('0x16'),_0x28209d,_0x584be0);})[_0x1a9ac1('0x3')](function(_0x42534f){const _0x10f53b=_0x1a9ac1;logger[_0x10f53b('0x19')](JSON[_0x10f53b('0x1d')](_0x42534f));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x17')]=function(_0x56ecbb,_0x276125,_0x52b399){const _0x1c01f8=this;this['sequence']['enqueue'](function(){const _0x34f7db=a968_0x9ef6;return _0x1c01f8[_0x34f7db('0x9')][_0x34f7db('0x17')](_0x56ecbb,_0x276125,_0x52b399)[_0x34f7db('0x20')](function(){const _0x45560d=_0x34f7db;logger[_0x45560d('0x19')]('Added\x20column\x20%s\x20to\x20%s',_0x276125,_0x56ecbb);})['catch'](function(_0x3a417c){const _0x4acfdd=_0x34f7db;logger['info'](JSON[_0x4acfdd('0x1d')](_0x3a417c));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x8')]=function(_0x533fd3){const _0x8a0367=_0x5a495a,_0x250257=this;this[_0x8a0367('0x1a')]['enqueue'](function(){const _0x234b64=_0x8a0367;return _0x250257[_0x234b64('0x9')][_0x234b64('0x8')](_0x533fd3,{'force':!![]})[_0x234b64('0x20')](function(){const _0x5d40a3=_0x234b64;logger['info'](_0x5d40a3('0x15'),_0x533fd3);})[_0x234b64('0x3')](function(_0x529ac9){const _0x24e142=_0x234b64;logger[_0x24e142('0x19')](JSON['stringify'](_0x529ac9));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x18')]=function(_0x135e6a,_0x268175,_0x25cbd5){const _0x91beaa=this;this['sequence']['enqueue'](function(){const _0x102616=a968_0x9ef6;return _0x91beaa[_0x102616('0x9')][_0x102616('0x18')](_0x135e6a,_0x268175,{'indexName':_0x25cbd5})[_0x102616('0x20')](function(){const _0x46ea1f=_0x102616;logger[_0x46ea1f('0x19')](_0x46ea1f('0xd'),_0x135e6a,_0x268175[_0x46ea1f('0x1')](','),_0x25cbd5);})[_0x102616('0x3')](function(_0x26a9eb){const _0x1f3750=_0x102616;logger[_0x1f3750('0x19')](JSON[_0x1f3750('0x1d')](_0x26a9eb));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x5')]=function(_0x2232ac,_0x1d507e){const _0x30a291=_0x5a495a,_0x5ce086=this;this[_0x30a291('0x1a')][_0x30a291('0xf')](function(){const _0x34b456=_0x30a291;return _0x5ce086[_0x34b456('0x9')]['removeIndex'](_0x2232ac,_0x1d507e)[_0x34b456('0x20')](function(){const _0x599c1d=_0x34b456;logger[_0x599c1d('0x19')](_0x599c1d('0x4'),_0x2232ac,_0x1d507e);})[_0x34b456('0x3')](function(_0x4e8994){const _0x1885b2=_0x34b456;logger[_0x1885b2('0x19')](JSON[_0x1885b2('0x1d')](_0x4e8994));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x1e')]=function(_0x1b35f6){const _0x43cd8a=_0x5a495a,_0x965422=this;this[_0x43cd8a('0x1a')][_0x43cd8a('0xf')](function(){const _0x3dcbdc=_0x43cd8a;return _0x965422['queryInterface']['sequelize'][_0x3dcbdc('0x1e')](_0x1b35f6)[_0x3dcbdc('0x20')](function(){const _0x33633d=_0x3dcbdc;logger[_0x33633d('0x19')](_0x33633d('0x7'),_0x1b35f6);})[_0x3dcbdc('0x3')](function(_0x57de1f){const _0xd88580=_0x3dcbdc;logger[_0xd88580('0x19')](JSON[_0xd88580('0x1d')](_0x57de1f));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x14')]=function(_0xc8d923,_0xb9b4dc){const _0x5e5f9f=_0x5a495a,_0x357747=this;this[_0x5e5f9f('0x1a')]['enqueue'](function(){const _0x4577d9=_0x5e5f9f;return _0x357747['queryInterface'][_0x4577d9('0x14')](_0xc8d923,_0xb9b4dc)['then'](function(){const _0x299415=_0x4577d9;logger[_0x299415('0x19')](_0x299415('0x13'),_0xb9b4dc,_0xc8d923);})[_0x4577d9('0x3')](function(_0x34b2b4){const _0x574926=_0x4577d9;logger[_0x574926('0x19')](util[_0x574926('0xc')](_0x34b2b4,{'showHidden':![],'depth':null}));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0x11')]=function(_0x370e61,_0x28f43c,_0xd183d9){const _0x7626be=_0x5a495a,_0x5486a8=this;this['sequence'][_0x7626be('0xf')](function(){const _0x33a2fe=_0x7626be;return _0x5486a8[_0x33a2fe('0x9')][_0x33a2fe('0x11')](_0x370e61,_0x28f43c,_0xd183d9)[_0x33a2fe('0x20')](function(){const _0x8b12a=_0x33a2fe;logger['info'](_0x8b12a('0x1f'),_0x28f43c,_0xd183d9,_0x370e61);})[_0x33a2fe('0x3')](function(_0x518302){const _0x558ef1=_0x33a2fe;logger[_0x558ef1('0x19')](util[_0x558ef1('0xc')](_0x518302,{'showHidden':![],'depth':null}));});});},Migration[_0x5a495a('0x1c')][_0x5a495a('0xe')]=function(_0x252c0f){const _0x5db0e8=_0x5a495a;this['sequence'][_0x5db0e8('0xf')](function(){return _0x252c0f();});},module[_0x5a495a('0xb')]={'up':function(_0x1eaef7,_0x3cbc0d){return new Promise(function(_0x23a5bb){const _0x55e96c=a968_0x9ef6,_0x8739f3=new Migration(_0x1eaef7);_0x8739f3[_0x55e96c('0x1b')]('mail_interactions',_0x55e96c('0xa'),{'type':_0x3cbc0d[_0x55e96c('0x2')](0x1fe)}),_0x8739f3['changeColumn'](_0x55e96c('0x12'),'messageId',{'type':_0x3cbc0d[_0x55e96c('0x2')](0x1fe)}),_0x8739f3[_0x55e96c('0xe')](_0x23a5bb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.4.js b/server/migrations/2.2.4.js index f1d6844..28716c3 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a969_0x3ef2=['table\x20dropped\x20%s','stringify','addIndex','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','exports','removeIndex\x20%s\x20%s','removeIndex','renameColumn','dropTable','removeColumn','addColumn','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','migration','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','then','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query','../config/logger','queryInterface','util','enqueue','prototype','query\x20%s','inspect','info','final','addIndex\x20%s\x20%s\x20%s','catch','finally','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','join','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)','sequence','changeColumn'];(function(_0x4836ca,_0x3ef2cf){const _0x2bc5d5=function(_0x58e896){while(--_0x58e896){_0x4836ca['push'](_0x4836ca['shift']());}};_0x2bc5d5(++_0x3ef2cf);}(a969_0x3ef2,0x104));const a969_0x2bc5=function(_0x4836ca,_0x3ef2cf){_0x4836ca=_0x4836ca-0x0;let _0x2bc5d5=a969_0x3ef2[_0x4836ca];return _0x2bc5d5;};const _0x3c7d3f=a969_0x2bc5;'use strict';const util=require(_0x3c7d3f('0xc')),logger=require(_0x3c7d3f('0xa'))(_0x3c7d3f('0x4')),Sequence=function(){};Sequence[_0x3c7d3f('0xe')]['enqueue']=function(_0x58e896){const _0x38d435=_0x3c7d3f;this['tail']=this['tail']?this['tail'][_0x38d435('0x15')](_0x58e896):_0x58e896();};const Migration=function(_0x260491){const _0xa8066=_0x3c7d3f;this[_0xa8066('0xb')]=_0x260491,this[_0xa8066('0x1a')]=new Sequence();};Migration[_0x3c7d3f('0xe')][_0x3c7d3f('0x1b')]=function(_0x30a281,_0x3f52b0,_0x23109a){const _0x37e335=_0x3c7d3f,_0x2b5842=this;this[_0x37e335('0x1a')][_0x37e335('0xd')](function(){const _0x286a2d=_0x37e335;return _0x2b5842[_0x286a2d('0xb')][_0x286a2d('0x1b')](_0x30a281,_0x3f52b0,_0x23109a)[_0x286a2d('0x6')](function(){const _0x595744=_0x286a2d;logger[_0x595744('0x11')](_0x595744('0x8'),_0x3f52b0,_0x30a281);})[_0x286a2d('0x14')](function(_0x3773e6){const _0x1ea3a9=_0x286a2d;logger[_0x1ea3a9('0x11')](JSON['stringify'](_0x3773e6));});});},Migration[_0x3c7d3f('0xe')][_0x3c7d3f('0x2')]=function(_0x33a208,_0x46d1ad,_0x8d224){const _0x409a23=_0x3c7d3f,_0x296380=this;this[_0x409a23('0x1a')]['enqueue'](function(){const _0x1f3c32=_0x409a23;return _0x296380[_0x1f3c32('0xb')][_0x1f3c32('0x2')](_0x33a208,_0x46d1ad,_0x8d224)[_0x1f3c32('0x6')](function(){const _0x2ba595=_0x1f3c32;logger[_0x2ba595('0x11')]('Added\x20column\x20%s\x20to\x20%s',_0x46d1ad,_0x33a208);})['catch'](function(_0x38b2a5){const _0x20b256=_0x1f3c32;logger[_0x20b256('0x11')](JSON[_0x20b256('0x1d')](_0x38b2a5));});});},Migration['prototype']['dropTable']=function(_0x4c6bf1){const _0x1e5606=_0x3c7d3f,_0x5f1d03=this;this[_0x1e5606('0x1a')][_0x1e5606('0xd')](function(){const _0x34910e=_0x1e5606;return _0x5f1d03[_0x34910e('0xb')][_0x34910e('0x0')](_0x4c6bf1,{'force':!![]})['then'](function(){const _0x351cc2=_0x34910e;logger[_0x351cc2('0x11')](_0x351cc2('0x1c'),_0x4c6bf1);})['catch'](function(_0x52ae1e){const _0x24f672=_0x34910e;logger['info'](JSON[_0x24f672('0x1d')](_0x52ae1e));});});},Migration[_0x3c7d3f('0xe')][_0x3c7d3f('0x1e')]=function(_0x9f7d36,_0x839229,_0xb19de2){const _0x1df56d=this;this['sequence']['enqueue'](function(){const _0x47b7c0=a969_0x2bc5;return _0x1df56d['queryInterface'][_0x47b7c0('0x1e')](_0x9f7d36,_0x839229,{'indexName':_0xb19de2})['then'](function(){const _0x1e18a7=_0x47b7c0;logger[_0x1e18a7('0x11')](_0x1e18a7('0x13'),_0x9f7d36,_0x839229[_0x1e18a7('0x18')](','),_0xb19de2);})['catch'](function(_0x6e6b31){const _0xf60427=_0x47b7c0;logger['info'](JSON[_0xf60427('0x1d')](_0x6e6b31));});});},Migration[_0x3c7d3f('0xe')][_0x3c7d3f('0x22')]=function(_0x4f842f,_0x2eb522){const _0x36106b=_0x3c7d3f,_0x49a03f=this;this[_0x36106b('0x1a')][_0x36106b('0xd')](function(){const _0x5c93d9=_0x36106b;return _0x49a03f[_0x5c93d9('0xb')][_0x5c93d9('0x22')](_0x4f842f,_0x2eb522)['then'](function(){const _0x457b12=_0x5c93d9;logger[_0x457b12('0x11')](_0x457b12('0x21'),_0x4f842f,_0x2eb522);})[_0x5c93d9('0x14')](function(_0x2688f0){const _0x427fe8=_0x5c93d9;logger[_0x427fe8('0x11')](JSON[_0x427fe8('0x1d')](_0x2688f0));});});},Migration[_0x3c7d3f('0xe')][_0x3c7d3f('0x9')]=function(_0x1265e5){const _0x1f5e79=this;this['sequence']['enqueue'](function(){const _0x411355=a969_0x2bc5;return _0x1f5e79['queryInterface']['sequelize']['query'](_0x1265e5)['then'](function(){const _0x16c28a=a969_0x2bc5;logger[_0x16c28a('0x11')](_0x16c28a('0xf'),_0x1265e5);})[_0x411355('0x14')](function(_0x7197f9){const _0x1394ac=_0x411355;logger[_0x1394ac('0x11')](JSON[_0x1394ac('0x1d')](_0x7197f9));});});},Migration['prototype'][_0x3c7d3f('0x1')]=function(_0x39d1cf,_0x5c569a){const _0x46efaa=_0x3c7d3f,_0x3f5f60=this;this['sequence'][_0x46efaa('0xd')](function(){const _0x349769=_0x46efaa;return _0x3f5f60[_0x349769('0xb')][_0x349769('0x1')](_0x39d1cf,_0x5c569a)[_0x349769('0x6')](function(){const _0x202794=_0x349769;logger[_0x202794('0x11')](_0x202794('0x7'),_0x5c569a,_0x39d1cf);})[_0x349769('0x14')](function(_0x30c28a){const _0x1dbb6d=_0x349769;logger['info'](util[_0x1dbb6d('0x10')](_0x30c28a,{'showHidden':![],'depth':null}));});});},Migration[_0x3c7d3f('0xe')]['renameColumn']=function(_0x3b6564,_0x352987,_0x26fd25){const _0x581008=_0x3c7d3f,_0x500818=this;this[_0x581008('0x1a')][_0x581008('0xd')](function(){const _0x55b6e2=_0x581008;return _0x500818[_0x55b6e2('0xb')][_0x55b6e2('0x23')](_0x3b6564,_0x352987,_0x26fd25)[_0x55b6e2('0x6')](function(){const _0x4d2c8f=_0x55b6e2;logger[_0x4d2c8f('0x11')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x352987,_0x26fd25,_0x3b6564);})['catch'](function(_0x49620a){const _0x129370=_0x55b6e2;logger[_0x129370('0x11')](util[_0x129370('0x10')](_0x49620a,{'showHidden':![],'depth':null}));});});},Migration[_0x3c7d3f('0xe')]['final']=function(_0x3864b0){const _0x4f8b71=_0x3c7d3f;this[_0x4f8b71('0x1a')][_0x4f8b71('0xd')](function(){return _0x3864b0();});},module[_0x3c7d3f('0x20')]={'up':function(_0x2097bf){return new Promise(function(_0x42a676){const _0x51325c=a969_0x2bc5,_0x110e97=new Migration(_0x2097bf);_0x110e97[_0x51325c('0x9')](_0x51325c('0x3')),_0x110e97[_0x51325c('0x9')](_0x51325c('0x5')),_0x110e97[_0x51325c('0x9')](_0x51325c('0x16')),_0x110e97[_0x51325c('0x9')](_0x51325c('0x1f')),_0x110e97[_0x51325c('0x9')](_0x51325c('0x19')),_0x110e97[_0x51325c('0x9')](_0x51325c('0x17')),_0x110e97[_0x51325c('0x9')]('ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)'),_0x110e97[_0x51325c('0x12')](_0x42a676);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.5.js b/server/migrations/2.2.5.js index 42d0be6..7504a93 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a970_0x3bc5=['removeIndex','finally','sequelize','Removed\x20column\x20%s\x20from\x20%s','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','final','then','Added\x20column\x20%s\x20to\x20%s','addIndex','inspect','tail','renameColumn','addColumn','query','removeIndex\x20%s\x20%s','dropTable','prototype','queryInterface','catch','sequence','changeColumn','query\x20%s','info','stringify'];(function(_0x12fb3c,_0x3bc578){const _0x1c2e61=function(_0xd6f685){while(--_0xd6f685){_0x12fb3c['push'](_0x12fb3c['shift']());}};_0x1c2e61(++_0x3bc578);}(a970_0x3bc5,0x1bf));const a970_0x1c2e=function(_0x12fb3c,_0x3bc578){_0x12fb3c=_0x12fb3c-0x0;let _0x1c2e61=a970_0x3bc5[_0x12fb3c];return _0x1c2e61;};const _0xb3931f=a970_0x1c2e;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0xb3931f('0x7')]=function(_0xd6f685){const _0x341c0d=_0xb3931f;this[_0x341c0d('0xf')]=this[_0x341c0d('0xf')]?this[_0x341c0d('0xf')][_0x341c0d('0x2')](_0xd6f685):_0xd6f685();};const Migration=function(_0x2175a1){const _0x23f6d2=_0xb3931f;this['queryInterface']=_0x2175a1,this[_0x23f6d2('0x18')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x475d5d,_0x53a8ae,_0x46163d){const _0x49aff3=_0xb3931f,_0x213417=this;this[_0x49aff3('0x18')][_0x49aff3('0x7')](function(){const _0x2988e1=_0x49aff3;return _0x213417[_0x2988e1('0x16')][_0x2988e1('0x19')](_0x475d5d,_0x53a8ae,_0x46163d)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x53a8ae,_0x475d5d);})[_0x2988e1('0x17')](function(_0x54e667){const _0xc24b1b=_0x2988e1;logger[_0xc24b1b('0x1b')](JSON[_0xc24b1b('0x0')](_0x54e667));});});},Migration['prototype'][_0xb3931f('0x11')]=function(_0x5541a9,_0x4f1ed3,_0x401d6b){const _0x211c98=_0xb3931f,_0x2c5725=this;this[_0x211c98('0x18')]['enqueue'](function(){const _0x308743=_0x211c98;return _0x2c5725[_0x308743('0x16')][_0x308743('0x11')](_0x5541a9,_0x4f1ed3,_0x401d6b)[_0x308743('0xb')](function(){const _0x2f15b4=_0x308743;logger[_0x2f15b4('0x1b')](_0x2f15b4('0xc'),_0x4f1ed3,_0x5541a9);})[_0x308743('0x17')](function(_0x24eb41){logger['info'](JSON['stringify'](_0x24eb41));});});},Migration['prototype'][_0xb3931f('0x14')]=function(_0x42cfce){const _0x267cfe=_0xb3931f,_0x194170=this;this[_0x267cfe('0x18')][_0x267cfe('0x7')](function(){const _0x2cd2f6=_0x267cfe;return _0x194170[_0x2cd2f6('0x16')][_0x2cd2f6('0x14')](_0x42cfce,{'force':!![]})[_0x2cd2f6('0xb')](function(){const _0x547c57=_0x2cd2f6;logger[_0x547c57('0x1b')](_0x547c57('0x9'),_0x42cfce);})['catch'](function(_0x3123b0){const _0x20df47=_0x2cd2f6;logger[_0x20df47('0x1b')](JSON[_0x20df47('0x0')](_0x3123b0));});});},Migration['prototype']['addIndex']=function(_0x28964e,_0x504b65,_0x523fcb){const _0x5f52ce=_0xb3931f,_0x51f18f=this;this[_0x5f52ce('0x18')][_0x5f52ce('0x7')](function(){const _0x1554bf=_0x5f52ce;return _0x51f18f[_0x1554bf('0x16')][_0x1554bf('0xd')](_0x28964e,_0x504b65,{'indexName':_0x523fcb})['then'](function(){const _0x4b51df=_0x1554bf;logger[_0x4b51df('0x1b')](_0x4b51df('0x8'),_0x28964e,_0x504b65['join'](','),_0x523fcb);})[_0x1554bf('0x17')](function(_0x5abcbf){const _0x528a6b=_0x1554bf;logger['info'](JSON[_0x528a6b('0x0')](_0x5abcbf));});});},Migration[_0xb3931f('0x15')]['removeIndex']=function(_0x5e89a1,_0x11cc1d){const _0x3c5bc1=_0xb3931f,_0x43cc11=this;this[_0x3c5bc1('0x18')]['enqueue'](function(){const _0x3b9716=_0x3c5bc1;return _0x43cc11[_0x3b9716('0x16')][_0x3b9716('0x1')](_0x5e89a1,_0x11cc1d)[_0x3b9716('0xb')](function(){const _0x5bebd4=_0x3b9716;logger[_0x5bebd4('0x1b')](_0x5bebd4('0x13'),_0x5e89a1,_0x11cc1d);})[_0x3b9716('0x17')](function(_0x1f24bc){const _0x56e91d=_0x3b9716;logger[_0x56e91d('0x1b')](JSON['stringify'](_0x1f24bc));});});},Migration[_0xb3931f('0x15')][_0xb3931f('0x12')]=function(_0x53ab58){const _0x51582f=_0xb3931f,_0x554f5d=this;this[_0x51582f('0x18')][_0x51582f('0x7')](function(){const _0x263146=_0x51582f;return _0x554f5d[_0x263146('0x16')][_0x263146('0x3')][_0x263146('0x12')](_0x53ab58)[_0x263146('0xb')](function(){const _0x28f367=_0x263146;logger[_0x28f367('0x1b')](_0x28f367('0x1a'),_0x53ab58);})['catch'](function(_0x408e61){const _0x2a61b2=_0x263146;logger[_0x2a61b2('0x1b')](JSON[_0x2a61b2('0x0')](_0x408e61));});});},Migration[_0xb3931f('0x15')]['removeColumn']=function(_0x3f779e,_0x5c25a5){const _0x126494=_0xb3931f,_0x2d1838=this;this['sequence'][_0x126494('0x7')](function(){const _0x1b78ee=_0x126494;return _0x2d1838[_0x1b78ee('0x16')]['removeColumn'](_0x3f779e,_0x5c25a5)[_0x1b78ee('0xb')](function(){const _0x3f0874=_0x1b78ee;logger[_0x3f0874('0x1b')](_0x3f0874('0x4'),_0x5c25a5,_0x3f779e);})[_0x1b78ee('0x17')](function(_0x20c2ea){const _0x49fd41=_0x1b78ee;logger['info'](util[_0x49fd41('0xe')](_0x20c2ea,{'showHidden':![],'depth':null}));});});},Migration[_0xb3931f('0x15')]['renameColumn']=function(_0x4a3eec,_0x343588,_0x157f91){const _0x283327=_0xb3931f,_0x3a6a2b=this;this['sequence'][_0x283327('0x7')](function(){const _0x580b1b=_0x283327;return _0x3a6a2b[_0x580b1b('0x16')][_0x580b1b('0x10')](_0x4a3eec,_0x343588,_0x157f91)['then'](function(){const _0x2a6c42=_0x580b1b;logger['info'](_0x2a6c42('0x6'),_0x343588,_0x157f91,_0x4a3eec);})[_0x580b1b('0x17')](function(_0x38011e){const _0x35f44a=_0x580b1b;logger['info'](util[_0x35f44a('0xe')](_0x38011e,{'showHidden':![],'depth':null}));});});},Migration[_0xb3931f('0x15')][_0xb3931f('0xa')]=function(_0x5a480a){const _0x1422c0=_0xb3931f;this[_0x1422c0('0x18')][_0x1422c0('0x7')](function(){return _0x5a480a();});},module[_0xb3931f('0x5')]={'up':function(_0x5ec28c){return new Promise(function(_0x108fa2){const _0x206c8b=new Migration(_0x5ec28c);_0x206c8b['final'](_0x108fa2);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.2.6.js b/server/migrations/2.2.6.js index f4cfa0a..95567c4 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a971_0x75c3=['mandatoryDispositionPauseId','../config/logger','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','Added\x20column\x20%s\x20to\x20%s','exports','chat_websites','util','join','removeIndex','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','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','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','mandatoryDisposition','sms_accounts','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','then','openchannel_accounts','renameColumn','removeColumn','catch','addColumn','query\x20%s','final','tail','BOOLEAN','voice_queues','addIndex','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','info','prototype','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','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','removeIndex\x20%s\x20%s','queryInterface','fax_accounts','changeColumn','finally','sequelize','dropTable','INTEGER','enqueue','mail_accounts','inspect'];(function(_0x2109c7,_0x75c3ad){const _0x1973b2=function(_0x15c534){while(--_0x15c534){_0x2109c7['push'](_0x2109c7['shift']());}};_0x1973b2(++_0x75c3ad);}(a971_0x75c3,0xe7));const a971_0x1973=function(_0x2109c7,_0x75c3ad){_0x2109c7=_0x2109c7-0x0;let _0x1973b2=a971_0x75c3[_0x2109c7];return _0x1973b2;};const _0x29f4d1=a971_0x1973;'use strict';const util=require(_0x29f4d1('0x1a')),logger=require(_0x29f4d1('0x14'))(_0x29f4d1('0x7')),Sequence=function(){};Sequence[_0x29f4d1('0x3')]['enqueue']=function(_0x15c534){const _0x147986=_0x29f4d1;this[_0x147986('0x2e')]=this[_0x147986('0x2e')]?this[_0x147986('0x2e')][_0x147986('0xc')](_0x15c534):_0x15c534();};const Migration=function(_0x4fae0a){const _0x59f7ef=_0x29f4d1;this[_0x59f7ef('0x9')]=_0x4fae0a,this[_0x59f7ef('0x20')]=new Sequence();};Migration[_0x29f4d1('0x3')][_0x29f4d1('0xb')]=function(_0x3c6634,_0x19c563,_0x51170a){const _0x21ce27=_0x29f4d1,_0x1ae5b4=this;this[_0x21ce27('0x20')][_0x21ce27('0x10')](function(){const _0x76db40=_0x21ce27;return _0x1ae5b4['queryInterface'][_0x76db40('0xb')](_0x3c6634,_0x19c563,_0x51170a)[_0x76db40('0x26')](function(){const _0x4e24f0=_0x76db40;logger[_0x4e24f0('0x2')](_0x4e24f0('0x1f'),_0x19c563,_0x3c6634);})[_0x76db40('0x2a')](function(_0x82f263){const _0x4119ad=_0x76db40;logger[_0x4119ad('0x2')](JSON[_0x4119ad('0x15')](_0x82f263));});});},Migration[_0x29f4d1('0x3')][_0x29f4d1('0x2b')]=function(_0x25f661,_0x44011d,_0x965ddd){const _0x48f3e5=this;this['sequence']['enqueue'](function(){const _0x99d840=a971_0x1973;return _0x48f3e5[_0x99d840('0x9')][_0x99d840('0x2b')](_0x25f661,_0x44011d,_0x965ddd)[_0x99d840('0x26')](function(){const _0x2fdd56=_0x99d840;logger[_0x2fdd56('0x2')](_0x2fdd56('0x17'),_0x44011d,_0x25f661);})[_0x99d840('0x2a')](function(_0x53b287){const _0x96488=_0x99d840;logger['info'](JSON[_0x96488('0x15')](_0x53b287));});});},Migration['prototype']['dropTable']=function(_0x2c328d){const _0x56d647=_0x29f4d1,_0x497645=this;this[_0x56d647('0x20')][_0x56d647('0x10')](function(){const _0x1263f1=_0x56d647;return _0x497645[_0x1263f1('0x9')][_0x1263f1('0xe')](_0x2c328d,{'force':!![]})[_0x1263f1('0x26')](function(){const _0x1ad3ef=_0x1263f1;logger[_0x1ad3ef('0x2')](_0x1ad3ef('0x1'),_0x2c328d);})[_0x1263f1('0x2a')](function(_0x1a047b){const _0x34576c=_0x1263f1;logger[_0x34576c('0x2')](JSON[_0x34576c('0x15')](_0x1a047b));});});},Migration[_0x29f4d1('0x3')][_0x29f4d1('0x31')]=function(_0xa3cd36,_0x55d205,_0x188d76){const _0x50e0c7=_0x29f4d1,_0x250d7b=this;this[_0x50e0c7('0x20')][_0x50e0c7('0x10')](function(){const _0x108c3b=_0x50e0c7;return _0x250d7b[_0x108c3b('0x9')][_0x108c3b('0x31')](_0xa3cd36,_0x55d205,{'indexName':_0x188d76})[_0x108c3b('0x26')](function(){const _0x14f4b3=_0x108c3b;logger[_0x14f4b3('0x2')](_0x14f4b3('0x0'),_0xa3cd36,_0x55d205[_0x14f4b3('0x1b')](','),_0x188d76);})['catch'](function(_0x27aeef){const _0x389d8b=_0x108c3b;logger[_0x389d8b('0x2')](JSON[_0x389d8b('0x15')](_0x27aeef));});});},Migration[_0x29f4d1('0x3')][_0x29f4d1('0x1c')]=function(_0x11cb2c,_0x2a60d8){const _0x934c6f=_0x29f4d1,_0x1f7fe2=this;this[_0x934c6f('0x20')]['enqueue'](function(){const _0xbe7587=_0x934c6f;return _0x1f7fe2[_0xbe7587('0x9')][_0xbe7587('0x1c')](_0x11cb2c,_0x2a60d8)[_0xbe7587('0x26')](function(){const _0x2703b9=_0xbe7587;logger['info'](_0x2703b9('0x8'),_0x11cb2c,_0x2a60d8);})[_0xbe7587('0x2a')](function(_0x515cec){const _0xffa3c9=_0xbe7587;logger[_0xffa3c9('0x2')](JSON[_0xffa3c9('0x15')](_0x515cec));});});},Migration[_0x29f4d1('0x3')][_0x29f4d1('0x5')]=function(_0x2e619d){const _0x438334=_0x29f4d1,_0x56611c=this;this[_0x438334('0x20')][_0x438334('0x10')](function(){const _0x16672b=_0x438334;return _0x56611c[_0x16672b('0x9')][_0x16672b('0xd')][_0x16672b('0x5')](_0x2e619d)[_0x16672b('0x26')](function(){const _0x206a8d=_0x16672b;logger[_0x206a8d('0x2')](_0x206a8d('0x2c'),_0x2e619d);})[_0x16672b('0x2a')](function(_0x410124){const _0x4e77ab=_0x16672b;logger[_0x4e77ab('0x2')](JSON[_0x4e77ab('0x15')](_0x410124));});});},Migration['prototype'][_0x29f4d1('0x29')]=function(_0x10ea1e,_0x1cbb0b){const _0x575c88=_0x29f4d1,_0x4c42be=this;this[_0x575c88('0x20')][_0x575c88('0x10')](function(){const _0x3aabe3=_0x575c88;return _0x4c42be[_0x3aabe3('0x9')][_0x3aabe3('0x29')](_0x10ea1e,_0x1cbb0b)[_0x3aabe3('0x26')](function(){const _0x1b1647=_0x3aabe3;logger[_0x1b1647('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0x1cbb0b,_0x10ea1e);})[_0x3aabe3('0x2a')](function(_0x130642){const _0x90fa36=_0x3aabe3;logger[_0x90fa36('0x2')](util['inspect'](_0x130642,{'showHidden':![],'depth':null}));});});},Migration[_0x29f4d1('0x3')]['renameColumn']=function(_0x1ebac2,_0x37d4af,_0x500322){const _0x50da03=this;this['sequence']['enqueue'](function(){const _0x4f3fc6=a971_0x1973;return _0x50da03[_0x4f3fc6('0x9')][_0x4f3fc6('0x28')](_0x1ebac2,_0x37d4af,_0x500322)[_0x4f3fc6('0x26')](function(){const _0x384705=_0x4f3fc6;logger['info'](_0x384705('0x6'),_0x37d4af,_0x500322,_0x1ebac2);})[_0x4f3fc6('0x2a')](function(_0x278206){const _0x5a19db=_0x4f3fc6;logger[_0x5a19db('0x2')](util[_0x5a19db('0x12')](_0x278206,{'showHidden':![],'depth':null}));});});},Migration[_0x29f4d1('0x3')][_0x29f4d1('0x2d')]=function(_0x528f2f){const _0x3225df=_0x29f4d1;this[_0x3225df('0x20')][_0x3225df('0x10')](function(){return _0x528f2f();});},module[_0x29f4d1('0x18')]={'up':function(_0x337668,_0x1a419c){return new Promise(function(_0x1c27cf){const _0x10e7c8=a971_0x1973,_0x35b2b2=new Migration(_0x337668);_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x1d')),_0x35b2b2[_0x10e7c8('0x5')]('UPDATE\x20analytics_custom_reports\x20SET\x20joins\x20=\x20REPLACE(joins,\x27\x22type\x22:\x22outer_join\x22\x27,\x27\x22type\x22:\x22left_join\x22\x27)\x20WHERE\x20joins\x20LIKE\x20\x27%\x22type\x22:\x22outer_join\x22%\x27'),_0x35b2b2[_0x10e7c8('0x5')]('UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)'),_0x35b2b2['query'](_0x10e7c8('0x1e')),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x30'),_0x10e7c8('0x23'),{'type':_0x1a419c['BOOLEAN'],'defaultValue':![]}),_0x35b2b2[_0x10e7c8('0x2b')]('voice_queues',_0x10e7c8('0x13'),{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x22')),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x19'),_0x10e7c8('0x23'),{'type':_0x1a419c[_0x10e7c8('0x2f')],'defaultValue':![]}),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x19'),_0x10e7c8('0x13'),{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x4')),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0xa'),'mandatoryDisposition',{'type':_0x1a419c[_0x10e7c8('0x2f')],'defaultValue':![]}),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0xa'),_0x10e7c8('0x13'),{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x25')),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x11'),_0x10e7c8('0x23'),{'type':_0x1a419c[_0x10e7c8('0x2f')],'defaultValue':![]}),_0x35b2b2['addColumn']('mail_accounts','mandatoryDispositionPauseId',{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x16')),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x27'),_0x10e7c8('0x23'),{'type':_0x1a419c[_0x10e7c8('0x2f')],'defaultValue':![]}),_0x35b2b2['addColumn']('openchannel_accounts',_0x10e7c8('0x13'),{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2['query']('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'),_0x35b2b2[_0x10e7c8('0x2b')]('sms_accounts',_0x10e7c8('0x23'),{'type':_0x1a419c[_0x10e7c8('0x2f')],'defaultValue':![]}),_0x35b2b2[_0x10e7c8('0x2b')](_0x10e7c8('0x24'),_0x10e7c8('0x13'),{'type':_0x1a419c[_0x10e7c8('0xf')]}),_0x35b2b2[_0x10e7c8('0x5')](_0x10e7c8('0x21')),_0x35b2b2['final'](_0x1c27cf);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.0.js b/server/migrations/2.3.0.js index aa465ac..f11d789 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a972_0x3347=['sequence','table\x20dropped\x20%s','addIndex','queryInterface','../config/logger','query','inspect','Removed\x20column\x20%s\x20from\x20%s','info','prototype','tail','addIndex\x20%s\x20%s\x20%s','removeIndex','query\x20%s','finally','STRING','catch','renameColumn','final','enqueue','sequelize','util','uniqueid','addColumn','apiKeyNonce','dropTable','report_call','migration','join','apiKeyIat','removeColumn','then','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','stringify'];(function(_0x40ff4b,_0x3347d6){const _0x3b2723=function(_0x25a085){while(--_0x25a085){_0x40ff4b['push'](_0x40ff4b['shift']());}};_0x3b2723(++_0x3347d6);}(a972_0x3347,0x14b));const a972_0x3b27=function(_0x40ff4b,_0x3347d6){_0x40ff4b=_0x40ff4b-0x0;let _0x3b2723=a972_0x3347[_0x40ff4b];return _0x3b2723;};const _0x1b5f59=a972_0x3b27;'use strict';const util=require(_0x1b5f59('0x5')),logger=require(_0x1b5f59('0x17'))(_0x1b5f59('0xb')),Sequence=function(){};Sequence[_0x1b5f59('0x1c')]['enqueue']=function(_0x25a085){const _0x30c90b=_0x1b5f59;this[_0x30c90b('0x1d')]=this[_0x30c90b('0x1d')]?this[_0x30c90b('0x1d')][_0x30c90b('0x21')](_0x25a085):_0x25a085();};const Migration=function(_0x54aead){const _0x3d9641=_0x1b5f59;this[_0x3d9641('0x16')]=_0x54aead,this['sequence']=new Sequence();};Migration[_0x1b5f59('0x1c')]['changeColumn']=function(_0x2ceee0,_0x42464f,_0x133e6e){const _0x578e7b=_0x1b5f59,_0x4c3831=this;this[_0x578e7b('0x13')]['enqueue'](function(){const _0x499fac=_0x578e7b;return _0x4c3831[_0x499fac('0x16')][_0x499fac('0x11')](_0x2ceee0,_0x42464f,_0x133e6e)[_0x499fac('0xf')](function(){const _0x1b08b2=_0x499fac;logger['info'](_0x1b08b2('0x10'),_0x42464f,_0x2ceee0);})[_0x499fac('0x0')](function(_0x176ab8){const _0xd535f5=_0x499fac;logger[_0xd535f5('0x1b')](JSON[_0xd535f5('0x12')](_0x176ab8));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0x7')]=function(_0xf4cfa4,_0x33d908,_0x6f986){const _0x37d165=_0x1b5f59,_0x375596=this;this['sequence'][_0x37d165('0x3')](function(){const _0x46bee6=_0x37d165;return _0x375596['queryInterface'][_0x46bee6('0x7')](_0xf4cfa4,_0x33d908,_0x6f986)[_0x46bee6('0xf')](function(){const _0x29a89c=_0x46bee6;logger[_0x29a89c('0x1b')]('Added\x20column\x20%s\x20to\x20%s',_0x33d908,_0xf4cfa4);})[_0x46bee6('0x0')](function(_0x207330){const _0x3c0882=_0x46bee6;logger[_0x3c0882('0x1b')](JSON[_0x3c0882('0x12')](_0x207330));});});},Migration['prototype']['dropTable']=function(_0x4c253d){const _0x33da16=_0x1b5f59,_0x5939f6=this;this[_0x33da16('0x13')][_0x33da16('0x3')](function(){const _0x5a93a6=_0x33da16;return _0x5939f6[_0x5a93a6('0x16')][_0x5a93a6('0x9')](_0x4c253d,{'force':!![]})[_0x5a93a6('0xf')](function(){const _0x16ab74=_0x5a93a6;logger['info'](_0x16ab74('0x14'),_0x4c253d);})['catch'](function(_0x3e5974){const _0x35826e=_0x5a93a6;logger[_0x35826e('0x1b')](JSON[_0x35826e('0x12')](_0x3e5974));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0x15')]=function(_0x3440e9,_0x3b735a,_0x39f7af){const _0x8ea805=_0x1b5f59,_0x40338e=this;this[_0x8ea805('0x13')][_0x8ea805('0x3')](function(){const _0x2d15f1=_0x8ea805;return _0x40338e[_0x2d15f1('0x16')][_0x2d15f1('0x15')](_0x3440e9,_0x3b735a,{'indexName':_0x39f7af})['then'](function(){const _0x8d77ab=_0x2d15f1;logger[_0x8d77ab('0x1b')](_0x8d77ab('0x1e'),_0x3440e9,_0x3b735a[_0x8d77ab('0xc')](','),_0x39f7af);})['catch'](function(_0x3119f3){const _0x3f96f9=_0x2d15f1;logger[_0x3f96f9('0x1b')](JSON[_0x3f96f9('0x12')](_0x3119f3));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0x1f')]=function(_0x23729d,_0x35150f){const _0x52fcfb=_0x1b5f59,_0x2df1bd=this;this[_0x52fcfb('0x13')]['enqueue'](function(){const _0x59196e=_0x52fcfb;return _0x2df1bd[_0x59196e('0x16')][_0x59196e('0x1f')](_0x23729d,_0x35150f)[_0x59196e('0xf')](function(){const _0x35e038=_0x59196e;logger[_0x35e038('0x1b')]('removeIndex\x20%s\x20%s',_0x23729d,_0x35150f);})[_0x59196e('0x0')](function(_0x22706c){const _0x38eb0c=_0x59196e;logger[_0x38eb0c('0x1b')](JSON['stringify'](_0x22706c));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0x18')]=function(_0x2a5470){const _0x462738=_0x1b5f59,_0x34f148=this;this[_0x462738('0x13')]['enqueue'](function(){const _0x108d27=_0x462738;return _0x34f148[_0x108d27('0x16')][_0x108d27('0x4')][_0x108d27('0x18')](_0x2a5470)['then'](function(){const _0x569819=_0x108d27;logger[_0x569819('0x1b')](_0x569819('0x20'),_0x2a5470);})[_0x108d27('0x0')](function(_0x3e333e){const _0x2d08bd=_0x108d27;logger[_0x2d08bd('0x1b')](JSON[_0x2d08bd('0x12')](_0x3e333e));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0xe')]=function(_0x4604ed,_0x5013a5){const _0x13c95a=_0x1b5f59,_0x2bf815=this;this[_0x13c95a('0x13')][_0x13c95a('0x3')](function(){const _0x231d75=_0x13c95a;return _0x2bf815['queryInterface'][_0x231d75('0xe')](_0x4604ed,_0x5013a5)[_0x231d75('0xf')](function(){const _0x3b1cc3=_0x231d75;logger[_0x3b1cc3('0x1b')](_0x3b1cc3('0x1a'),_0x5013a5,_0x4604ed);})['catch'](function(_0x3babaa){const _0x368581=_0x231d75;logger[_0x368581('0x1b')](util[_0x368581('0x19')](_0x3babaa,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x53141,_0xfb81da,_0x574173){const _0x40d917=_0x1b5f59,_0x588bf7=this;this['sequence'][_0x40d917('0x3')](function(){const _0xf93658=_0x40d917;return _0x588bf7[_0xf93658('0x16')][_0xf93658('0x1')](_0x53141,_0xfb81da,_0x574173)['then'](function(){const _0x3d35dc=_0xf93658;logger[_0x3d35dc('0x1b')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xfb81da,_0x574173,_0x53141);})[_0xf93658('0x0')](function(_0x1b20d6){logger['info'](util['inspect'](_0x1b20d6,{'showHidden':![],'depth':null}));});});},Migration[_0x1b5f59('0x1c')][_0x1b5f59('0x2')]=function(_0x19c572){const _0x175171=_0x1b5f59;this[_0x175171('0x13')][_0x175171('0x3')](function(){return _0x19c572();});},module['exports']={'up':function(_0x34d212,_0x5ddcd7){return new Promise(function(_0x1d61be){const _0x23aebd=a972_0x3b27,_0x5f0db7=new Migration(_0x34d212);_0x5f0db7[_0x23aebd('0x7')]('users',_0x23aebd('0x8'),{'type':_0x5ddcd7[_0x23aebd('0x22')]}),_0x5f0db7[_0x23aebd('0x7')]('users',_0x23aebd('0xd'),{'type':_0x5ddcd7[_0x23aebd('0x22')]}),_0x5f0db7[_0x23aebd('0x15')](_0x23aebd('0xa'),[_0x23aebd('0x6')],_0x23aebd('0x6')),_0x5f0db7[_0x23aebd('0x2')](_0x1d61be);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.1.js b/server/migrations/2.3.1.js index 990f0b2..5556afe 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a973_0xf8d9=['info','exports','tail','finally','Added\x20column\x20%s\x20to\x20%s','enqueue','removeColumn','dropTable','table\x20dropped\x20%s','removeIndex','query\x20%s','addIndex','inspect','changeColumn','Removed\x20column\x20%s\x20from\x20%s','then','final','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','util','stringify','removeIndex\x20%s\x20%s','prototype','queryInterface','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','migration','query'];(function(_0x2ad179,_0xf8d9fa){const _0xf522d8=function(_0x13e928){while(--_0x13e928){_0x2ad179['push'](_0x2ad179['shift']());}};_0xf522d8(++_0xf8d9fa);}(a973_0xf8d9,0xa3));const a973_0xf522=function(_0x2ad179,_0xf8d9fa){_0x2ad179=_0x2ad179-0x0;let _0xf522d8=a973_0xf8d9[_0x2ad179];return _0xf522d8;};const _0xeb99eb=a973_0xf522;'use strict';const util=require(_0xeb99eb('0x7')),logger=require(_0xeb99eb('0xe'))(_0xeb99eb('0xf')),Sequence=function(){};Sequence[_0xeb99eb('0xa')][_0xeb99eb('0x16')]=function(_0x13e928){const _0x452016=_0xeb99eb;this[_0x452016('0x13')]=this[_0x452016('0x13')]?this['tail'][_0x452016('0x14')](_0x13e928):_0x13e928();};const Migration=function(_0x4e46c7){const _0x3a2b70=_0xeb99eb;this[_0x3a2b70('0xb')]=_0x4e46c7,this[_0x3a2b70('0x6')]=new Sequence();};Migration[_0xeb99eb('0xa')]['changeColumn']=function(_0x13816f,_0x12cb20,_0x1ef052){const _0x59cb2d=_0xeb99eb,_0x202fa0=this;this[_0x59cb2d('0x6')][_0x59cb2d('0x16')](function(){const _0x3360f0=_0x59cb2d;return _0x202fa0[_0x3360f0('0xb')][_0x3360f0('0x0')](_0x13816f,_0x12cb20,_0x1ef052)[_0x3360f0('0x2')](function(){const _0x3e4e9f=_0x3360f0;logger['info'](_0x3e4e9f('0x5'),_0x12cb20,_0x13816f);})[_0x3360f0('0x4')](function(_0x14956e){const _0x5afb4b=_0x3360f0;logger[_0x5afb4b('0x11')](JSON['stringify'](_0x14956e));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0xc')]=function(_0x484ba2,_0x91ae44,_0x3de258){const _0x314b99=_0xeb99eb,_0x129544=this;this['sequence'][_0x314b99('0x16')](function(){const _0x147e29=_0x314b99;return _0x129544[_0x147e29('0xb')][_0x147e29('0xc')](_0x484ba2,_0x91ae44,_0x3de258)['then'](function(){const _0x280689=_0x147e29;logger['info'](_0x280689('0x15'),_0x91ae44,_0x484ba2);})[_0x147e29('0x4')](function(_0x3d1b26){const _0x5790bd=_0x147e29;logger['info'](JSON[_0x5790bd('0x8')](_0x3d1b26));});});},Migration[_0xeb99eb('0xa')]['dropTable']=function(_0x1f07d3){const _0x316d73=this;this['sequence']['enqueue'](function(){const _0x40c666=a973_0xf522;return _0x316d73['queryInterface'][_0x40c666('0x18')](_0x1f07d3,{'force':!![]})[_0x40c666('0x2')](function(){const _0x5a5445=_0x40c666;logger[_0x5a5445('0x11')](_0x5a5445('0x19'),_0x1f07d3);})[_0x40c666('0x4')](function(_0x37a99b){const _0x4986c3=_0x40c666;logger[_0x4986c3('0x11')](JSON[_0x4986c3('0x8')](_0x37a99b));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0x1c')]=function(_0x3433b5,_0x480b51,_0x987f8a){const _0x5df3c7=this;this['sequence']['enqueue'](function(){const _0x354e43=a973_0xf522;return _0x5df3c7[_0x354e43('0xb')]['addIndex'](_0x3433b5,_0x480b51,{'indexName':_0x987f8a})['then'](function(){const _0x4347c6=_0x354e43;logger[_0x4347c6('0x11')]('addIndex\x20%s\x20%s\x20%s',_0x3433b5,_0x480b51['join'](','),_0x987f8a);})[_0x354e43('0x4')](function(_0x2d75ea){const _0x1a5b72=_0x354e43;logger[_0x1a5b72('0x11')](JSON['stringify'](_0x2d75ea));});});},Migration[_0xeb99eb('0xa')]['removeIndex']=function(_0x342550,_0x354441){const _0x15048a=_0xeb99eb,_0x45412f=this;this[_0x15048a('0x6')][_0x15048a('0x16')](function(){const _0x5b4374=_0x15048a;return _0x45412f[_0x5b4374('0xb')][_0x5b4374('0x1a')](_0x342550,_0x354441)['then'](function(){const _0x23d654=_0x5b4374;logger[_0x23d654('0x11')](_0x23d654('0x9'),_0x342550,_0x354441);})[_0x5b4374('0x4')](function(_0x25db2b){const _0x3a3912=_0x5b4374;logger[_0x3a3912('0x11')](JSON['stringify'](_0x25db2b));});});},Migration[_0xeb99eb('0xa')]['query']=function(_0x107853){const _0x4e9b7e=_0xeb99eb,_0x4bd187=this;this[_0x4e9b7e('0x6')][_0x4e9b7e('0x16')](function(){const _0xcb263e=_0x4e9b7e;return _0x4bd187['queryInterface']['sequelize'][_0xcb263e('0x10')](_0x107853)['then'](function(){const _0x159d34=_0xcb263e;logger['info'](_0x159d34('0x1b'),_0x107853);})[_0xcb263e('0x4')](function(_0x2e1902){const _0x2b5ed3=_0xcb263e;logger[_0x2b5ed3('0x11')](JSON['stringify'](_0x2e1902));});});},Migration['prototype']['removeColumn']=function(_0x2d5bf9,_0x186303){const _0x11327c=this;this['sequence']['enqueue'](function(){const _0x49d972=a973_0xf522;return _0x11327c['queryInterface'][_0x49d972('0x17')](_0x2d5bf9,_0x186303)[_0x49d972('0x2')](function(){const _0x2dbba3=_0x49d972;logger[_0x2dbba3('0x11')](_0x2dbba3('0x1'),_0x186303,_0x2d5bf9);})[_0x49d972('0x4')](function(_0x58247d){const _0x5c17b9=_0x49d972;logger[_0x5c17b9('0x11')](util['inspect'](_0x58247d,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x570710,_0x355a1d,_0x3b40a6){const _0x1b7dca=_0xeb99eb,_0x1eaf9c=this;this[_0x1b7dca('0x6')][_0x1b7dca('0x16')](function(){const _0x309b31=_0x1b7dca;return _0x1eaf9c['queryInterface']['renameColumn'](_0x570710,_0x355a1d,_0x3b40a6)[_0x309b31('0x2')](function(){const _0xde1b55=_0x309b31;logger[_0xde1b55('0x11')](_0xde1b55('0xd'),_0x355a1d,_0x3b40a6,_0x570710);})[_0x309b31('0x4')](function(_0x599432){const _0x349ff9=_0x309b31;logger[_0x349ff9('0x11')](util[_0x349ff9('0x1d')](_0x599432,{'showHidden':![],'depth':null}));});});},Migration[_0xeb99eb('0xa')][_0xeb99eb('0x3')]=function(_0x5a7b26){const _0x4a313a=_0xeb99eb;this[_0x4a313a('0x6')][_0x4a313a('0x16')](function(){return _0x5a7b26();});},module[_0xeb99eb('0x12')]={'up':function(_0x17cccb){return new Promise(function(_0x4a95ac){const _0x3b5935=a973_0xf522,_0x1f99df=new Migration(_0x17cccb);_0x1f99df[_0x3b5935('0x3')](_0x4a95ac);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.10.js b/server/migrations/2.3.10.js index aea131d..6acac89 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a974_0x5729=['queryInterface','query\x20%s','addIndex','../config/logger','addIndex\x20%s\x20%s\x20%s','then','enqueue','Added\x20column\x20%s\x20to\x20%s','sequence','table\x20dropped\x20%s','sequelize','tail','util','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','dropTable','final','info','renameColumn','join','addColumn','removeIndex','finally','prototype','stringify','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','catch','inspect'];(function(_0x34bbd3,_0x572960){const _0x254dd8=function(_0x1e3419){while(--_0x1e3419){_0x34bbd3['push'](_0x34bbd3['shift']());}};_0x254dd8(++_0x572960);}(a974_0x5729,0xfc));const a974_0x254d=function(_0x34bbd3,_0x572960){_0x34bbd3=_0x34bbd3-0x0;let _0x254dd8=a974_0x5729[_0x34bbd3];return _0x254dd8;};const _0x591e57=a974_0x254d;'use strict';const util=require(_0x591e57('0x8')),logger=require(_0x591e57('0x1e'))(_0x591e57('0xb')),Sequence=function(){};Sequence['prototype'][_0x591e57('0x2')]=function(_0x1e3419){const _0x5ee31f=_0x591e57;this[_0x5ee31f('0x7')]=this[_0x5ee31f('0x7')]?this[_0x5ee31f('0x7')][_0x5ee31f('0x13')](_0x1e3419):_0x1e3419();};const Migration=function(_0x4d3b0a){const _0x4591e5=_0x591e57;this[_0x4591e5('0x1b')]=_0x4d3b0a,this['sequence']=new Sequence();};Migration[_0x591e57('0x14')][_0x591e57('0x16')]=function(_0x2c06c3,_0x21c923,_0x10853e){const _0xb05ecb=_0x591e57,_0x32e19d=this;this[_0xb05ecb('0x4')]['enqueue'](function(){const _0x5b4996=_0xb05ecb;return _0x32e19d['queryInterface'][_0x5b4996('0x16')](_0x2c06c3,_0x21c923,_0x10853e)[_0x5b4996('0x1')](function(){const _0x22f00c=_0x5b4996;logger['info'](_0x22f00c('0xa'),_0x21c923,_0x2c06c3);})[_0x5b4996('0x19')](function(_0x54439c){const _0x343246=_0x5b4996;logger[_0x343246('0xe')](JSON[_0x343246('0x15')](_0x54439c));});});},Migration[_0x591e57('0x14')][_0x591e57('0x11')]=function(_0x5ddd1a,_0xda6150,_0x31cb5e){const _0x37f742=_0x591e57,_0x32c125=this;this['sequence'][_0x37f742('0x2')](function(){const _0x249187=_0x37f742;return _0x32c125['queryInterface'][_0x249187('0x11')](_0x5ddd1a,_0xda6150,_0x31cb5e)['then'](function(){const _0x4637b7=_0x249187;logger[_0x4637b7('0xe')](_0x4637b7('0x3'),_0xda6150,_0x5ddd1a);})[_0x249187('0x19')](function(_0x164db2){const _0x2c12fe=_0x249187;logger[_0x2c12fe('0xe')](JSON[_0x2c12fe('0x15')](_0x164db2));});});},Migration['prototype'][_0x591e57('0xc')]=function(_0xa0df4a){const _0xa8b1d4=_0x591e57,_0x43c944=this;this[_0xa8b1d4('0x4')]['enqueue'](function(){const _0x32df2b=_0xa8b1d4;return _0x43c944[_0x32df2b('0x1b')][_0x32df2b('0xc')](_0xa0df4a,{'force':!![]})[_0x32df2b('0x1')](function(){const _0xc54c57=_0x32df2b;logger[_0xc54c57('0xe')](_0xc54c57('0x5'),_0xa0df4a);})[_0x32df2b('0x19')](function(_0x3d25ea){const _0x54c0a4=_0x32df2b;logger[_0x54c0a4('0xe')](JSON['stringify'](_0x3d25ea));});});},Migration[_0x591e57('0x14')][_0x591e57('0x1d')]=function(_0x45f1d0,_0x4220f0,_0x16260b){const _0x225fc8=_0x591e57,_0x834e30=this;this[_0x225fc8('0x4')][_0x225fc8('0x2')](function(){const _0x1b937c=_0x225fc8;return _0x834e30[_0x1b937c('0x1b')][_0x1b937c('0x1d')](_0x45f1d0,_0x4220f0,{'indexName':_0x16260b})[_0x1b937c('0x1')](function(){const _0x39f9f1=_0x1b937c;logger[_0x39f9f1('0xe')](_0x39f9f1('0x0'),_0x45f1d0,_0x4220f0[_0x39f9f1('0x10')](','),_0x16260b);})[_0x1b937c('0x19')](function(_0x278755){const _0x2b050b=_0x1b937c;logger[_0x2b050b('0xe')](JSON[_0x2b050b('0x15')](_0x278755));});});},Migration[_0x591e57('0x14')][_0x591e57('0x12')]=function(_0xe23cb,_0x3e178c){const _0x1d224b=_0x591e57,_0x2ba960=this;this[_0x1d224b('0x4')][_0x1d224b('0x2')](function(){const _0x4d86cf=_0x1d224b;return _0x2ba960[_0x4d86cf('0x1b')]['removeIndex'](_0xe23cb,_0x3e178c)['then'](function(){const _0x5dfd0f=_0x4d86cf;logger[_0x5dfd0f('0xe')]('removeIndex\x20%s\x20%s',_0xe23cb,_0x3e178c);})['catch'](function(_0x15ebb7){const _0x26bb2c=_0x4d86cf;logger[_0x26bb2c('0xe')](JSON[_0x26bb2c('0x15')](_0x15ebb7));});});},Migration[_0x591e57('0x14')][_0x591e57('0x18')]=function(_0x4f7fbe){const _0xa12c9d=_0x591e57,_0x3d35c7=this;this[_0xa12c9d('0x4')]['enqueue'](function(){const _0xc18059=_0xa12c9d;return _0x3d35c7['queryInterface'][_0xc18059('0x6')][_0xc18059('0x18')](_0x4f7fbe)[_0xc18059('0x1')](function(){const _0x439f1b=_0xc18059;logger[_0x439f1b('0xe')](_0x439f1b('0x1c'),_0x4f7fbe);})[_0xc18059('0x19')](function(_0x3b7b88){const _0x58afff=_0xc18059;logger[_0x58afff('0xe')](JSON['stringify'](_0x3b7b88));});});},Migration['prototype']['removeColumn']=function(_0x50d5fd,_0x158889){const _0x4635a3=_0x591e57,_0x40cb2e=this;this[_0x4635a3('0x4')][_0x4635a3('0x2')](function(){const _0x485501=_0x4635a3;return _0x40cb2e[_0x485501('0x1b')]['removeColumn'](_0x50d5fd,_0x158889)['then'](function(){const _0x2928b8=_0x485501;logger[_0x2928b8('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x158889,_0x50d5fd);})[_0x485501('0x19')](function(_0xdee565){const _0x1330a7=_0x485501;logger[_0x1330a7('0xe')](util[_0x1330a7('0x1a')](_0xdee565,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x591e57('0xf')]=function(_0x37a561,_0x9e9cfd,_0x276739){const _0x1187ca=_0x591e57,_0x2d9e67=this;this[_0x1187ca('0x4')][_0x1187ca('0x2')](function(){const _0x177766=_0x1187ca;return _0x2d9e67[_0x177766('0x1b')][_0x177766('0xf')](_0x37a561,_0x9e9cfd,_0x276739)['then'](function(){const _0x41ea90=_0x177766;logger['info'](_0x41ea90('0x17'),_0x9e9cfd,_0x276739,_0x37a561);})[_0x177766('0x19')](function(_0x278f21){const _0x53aaa4=_0x177766;logger['info'](util[_0x53aaa4('0x1a')](_0x278f21,{'showHidden':![],'depth':null}));});});},Migration[_0x591e57('0x14')][_0x591e57('0xd')]=function(_0x42885d){const _0x2a61cb=_0x591e57;this['sequence'][_0x2a61cb('0x2')](function(){return _0x42885d();});},module[_0x591e57('0x9')]={'up':function(_0x2cacaa,_0x34219f){return new Promise(function(_0x67556e){const _0x2a202e=a974_0x254d,_0x44a140=new Migration(_0x2cacaa);_0x44a140[_0x2a202e('0x11')]('report_call','sipcallid',{'type':_0x34219f['STRING']}),_0x44a140[_0x2a202e('0xd')](_0x67556e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.2.js b/server/migrations/2.3.2.js index 3eb02a5..1afdecd 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a975_0x5dd6=['removeIndex','Added\x20column\x20%s\x20to\x20%s','rtlSupport','tail','addIndex\x20%s\x20%s\x20%s','../config/logger','settings','then','prototype','catch','join','dropTable','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','enqueue','changeColumn','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','info','sequelize','renameColumn','stringify','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','final','queryInterface','sequence','finally','BOOLEAN','addIndex','removeIndex\x20%s\x20%s','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','Removed\x20column\x20%s\x20from\x20%s','util','exports','addColumn','removeColumn'];(function(_0x41b219,_0x5dd6c5){const _0x10552a=function(_0x205a81){while(--_0x205a81){_0x41b219['push'](_0x41b219['shift']());}};_0x10552a(++_0x5dd6c5);}(a975_0x5dd6,0x67));const a975_0x1055=function(_0x41b219,_0x5dd6c5){_0x41b219=_0x41b219-0x0;let _0x10552a=a975_0x5dd6[_0x41b219];return _0x10552a;};const _0x1daa32=a975_0x1055;'use strict';const util=require(_0x1daa32('0x4')),logger=require(_0x1daa32('0xd'))('migration'),Sequence=function(){};Sequence[_0x1daa32('0x10')][_0x1daa32('0x15')]=function(_0x205a81){const _0x1e8c89=_0x1daa32;this['tail']=this['tail']?this[_0x1e8c89('0xb')][_0x1e8c89('0x21')](_0x205a81):_0x205a81();};const Migration=function(_0x2af526){const _0x2d57de=_0x1daa32;this[_0x2d57de('0x1f')]=_0x2af526,this[_0x2d57de('0x20')]=new Sequence();};Migration[_0x1daa32('0x10')][_0x1daa32('0x16')]=function(_0x12a267,_0xb4807c,_0x167e97){const _0xc6b5a8=_0x1daa32,_0x163a0e=this;this['sequence'][_0xc6b5a8('0x15')](function(){const _0x3200e8=_0xc6b5a8;return _0x163a0e[_0x3200e8('0x1f')][_0x3200e8('0x16')](_0x12a267,_0xb4807c,_0x167e97)[_0x3200e8('0xf')](function(){const _0x4c55d0=_0x3200e8;logger['info'](_0x4c55d0('0x1d'),_0xb4807c,_0x12a267);})['catch'](function(_0x2420de){const _0x4c4061=_0x3200e8;logger[_0x4c4061('0x18')](JSON[_0x4c4061('0x1b')](_0x2420de));});});},Migration[_0x1daa32('0x10')]['addColumn']=function(_0x3f574f,_0x40a30c,_0x47ad85){const _0x103cd9=_0x1daa32,_0x1dba47=this;this[_0x103cd9('0x20')][_0x103cd9('0x15')](function(){const _0x3c6568=_0x103cd9;return _0x1dba47[_0x3c6568('0x1f')]['addColumn'](_0x3f574f,_0x40a30c,_0x47ad85)[_0x3c6568('0xf')](function(){const _0x1ed6ef=_0x3c6568;logger['info'](_0x1ed6ef('0x9'),_0x40a30c,_0x3f574f);})[_0x3c6568('0x11')](function(_0xe2ff95){const _0x355271=_0x3c6568;logger['info'](JSON[_0x355271('0x1b')](_0xe2ff95));});});},Migration[_0x1daa32('0x10')][_0x1daa32('0x13')]=function(_0x5dd5f1){const _0x4d6281=_0x1daa32,_0x1581bc=this;this[_0x4d6281('0x20')][_0x4d6281('0x15')](function(){const _0x3ee2b9=_0x4d6281;return _0x1581bc[_0x3ee2b9('0x1f')][_0x3ee2b9('0x13')](_0x5dd5f1,{'force':!![]})[_0x3ee2b9('0xf')](function(){const _0x3095f3=_0x3ee2b9;logger[_0x3095f3('0x18')]('table\x20dropped\x20%s',_0x5dd5f1);})[_0x3ee2b9('0x11')](function(_0xb6e75e){const _0x19ec43=_0x3ee2b9;logger[_0x19ec43('0x18')](JSON['stringify'](_0xb6e75e));});});},Migration['prototype'][_0x1daa32('0x23')]=function(_0x3f7adc,_0x186bfd,_0x271d04){const _0x22d153=_0x1daa32,_0xfc27e8=this;this[_0x22d153('0x20')][_0x22d153('0x15')](function(){const _0x58037a=_0x22d153;return _0xfc27e8['queryInterface'][_0x58037a('0x23')](_0x3f7adc,_0x186bfd,{'indexName':_0x271d04})[_0x58037a('0xf')](function(){const _0xc38ad2=_0x58037a;logger['info'](_0xc38ad2('0xc'),_0x3f7adc,_0x186bfd[_0xc38ad2('0x12')](','),_0x271d04);})[_0x58037a('0x11')](function(_0x27d01f){logger['info'](JSON['stringify'](_0x27d01f));});});},Migration['prototype'][_0x1daa32('0x8')]=function(_0x322459,_0x40403b){const _0x2499c7=_0x1daa32,_0x40a5cb=this;this['sequence'][_0x2499c7('0x15')](function(){const _0x1663bb=_0x2499c7;return _0x40a5cb[_0x1663bb('0x1f')][_0x1663bb('0x8')](_0x322459,_0x40403b)[_0x1663bb('0xf')](function(){const _0x506852=_0x1663bb;logger[_0x506852('0x18')](_0x506852('0x24'),_0x322459,_0x40403b);})[_0x1663bb('0x11')](function(_0x4d5a4c){const _0x553af5=_0x1663bb;logger[_0x553af5('0x18')](JSON[_0x553af5('0x1b')](_0x4d5a4c));});});},Migration[_0x1daa32('0x10')][_0x1daa32('0x2')]=function(_0x4eb5b2){const _0x1a00be=this;this['sequence']['enqueue'](function(){const _0x5dbada=a975_0x1055;return _0x1a00be[_0x5dbada('0x1f')][_0x5dbada('0x19')]['query'](_0x4eb5b2)[_0x5dbada('0xf')](function(){const _0x7aa738=_0x5dbada;logger[_0x7aa738('0x18')](_0x7aa738('0x0'),_0x4eb5b2);})[_0x5dbada('0x11')](function(_0x564afc){const _0x2f93d7=_0x5dbada;logger[_0x2f93d7('0x18')](JSON[_0x2f93d7('0x1b')](_0x564afc));});});},Migration['prototype'][_0x1daa32('0x7')]=function(_0x27e04b,_0x550bb9){const _0x3294cd=this;this['sequence']['enqueue'](function(){const _0x39a151=a975_0x1055;return _0x3294cd[_0x39a151('0x1f')][_0x39a151('0x7')](_0x27e04b,_0x550bb9)[_0x39a151('0xf')](function(){const _0x2e0b6e=_0x39a151;logger[_0x2e0b6e('0x18')](_0x2e0b6e('0x3'),_0x550bb9,_0x27e04b);})[_0x39a151('0x11')](function(_0x449704){const _0x41c798=_0x39a151;logger['info'](util[_0x41c798('0x1c')](_0x449704,{'showHidden':![],'depth':null}));});});},Migration[_0x1daa32('0x10')][_0x1daa32('0x1a')]=function(_0xc3c3e3,_0x587e68,_0x2f5cc2){const _0x47b7a5=_0x1daa32,_0x5809ca=this;this['sequence'][_0x47b7a5('0x15')](function(){const _0xac0e8b=_0x47b7a5;return _0x5809ca[_0xac0e8b('0x1f')][_0xac0e8b('0x1a')](_0xc3c3e3,_0x587e68,_0x2f5cc2)[_0xac0e8b('0xf')](function(){const _0x3fe33f=_0xac0e8b;logger[_0x3fe33f('0x18')](_0x3fe33f('0x1'),_0x587e68,_0x2f5cc2,_0xc3c3e3);})[_0xac0e8b('0x11')](function(_0x49f283){const _0x5e2974=_0xac0e8b;logger[_0x5e2974('0x18')](util['inspect'](_0x49f283,{'showHidden':![],'depth':null}));});});},Migration[_0x1daa32('0x10')]['final']=function(_0x14d7ee){const _0x107a0f=_0x1daa32;this[_0x107a0f('0x20')][_0x107a0f('0x15')](function(){return _0x14d7ee();});},module[_0x1daa32('0x5')]={'up':function(_0x5ceec7,_0x4f0056){return new Promise(function(_0x47e719){const _0x463dd5=a975_0x1055,_0x2b0fca=new Migration(_0x5ceec7);_0x2b0fca['query'](_0x463dd5('0x17')),_0x2b0fca[_0x463dd5('0x2')](_0x463dd5('0x14')),_0x2b0fca[_0x463dd5('0x6')](_0x463dd5('0xe'),_0x463dd5('0xa'),{'type':_0x4f0056[_0x463dd5('0x22')],'defaultValue':![]}),_0x2b0fca[_0x463dd5('0x1e')](_0x47e719);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.3.js b/server/migrations/2.3.3.js index 15465f9..5a44de3 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a976_0x34e7=['addIndex','inspect','info','addColumn','finally','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','final','../config/logger','prototype','openchannel_applications','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','removeColumn','enqueue','query','appdata','sms_applications','catch','changeColumn','then','TEXT','table\x20dropped\x20%s','queryInterface','dropTable','Removed\x20column\x20%s\x20from\x20%s','tail','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','sequence','exports','renameColumn','removeIndex','chat_applications','migration'];(function(_0x2971db,_0x34e70c){const _0x5667f4=function(_0x25a3e7){while(--_0x25a3e7){_0x2971db['push'](_0x2971db['shift']());}};_0x5667f4(++_0x34e70c);}(a976_0x34e7,0x15f));const a976_0x5667=function(_0x2971db,_0x34e70c){_0x2971db=_0x2971db-0x0;let _0x5667f4=a976_0x34e7[_0x2971db];return _0x5667f4;};const _0x191303=a976_0x5667;'use strict';const util=require('util'),logger=require(_0x191303('0x1f'))(_0x191303('0x16')),Sequence=function(){};Sequence[_0x191303('0x20')][_0x191303('0x3')]=function(_0x25a3e7){const _0x7aee69=_0x191303;this[_0x7aee69('0xf')]=this['tail']?this[_0x7aee69('0xf')][_0x7aee69('0x1b')](_0x25a3e7):_0x25a3e7();};const Migration=function(_0x260531){const _0x564d23=_0x191303;this[_0x564d23('0xc')]=_0x260531,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0xa72ba1,_0x473d1e,_0x4d8ed0){const _0x281358=_0x191303,_0x1ca979=this;this[_0x281358('0x11')][_0x281358('0x3')](function(){const _0x5897ef=_0x281358;return _0x1ca979['queryInterface'][_0x5897ef('0x8')](_0xa72ba1,_0x473d1e,_0x4d8ed0)['then'](function(){const _0x54a6e9=_0x5897ef;logger[_0x54a6e9('0x19')](_0x54a6e9('0x1d'),_0x473d1e,_0xa72ba1);})[_0x5897ef('0x7')](function(_0x5eaf01){const _0x5b62ac=_0x5897ef;logger[_0x5b62ac('0x19')](JSON[_0x5b62ac('0x1')](_0x5eaf01));});});},Migration[_0x191303('0x20')][_0x191303('0x1a')]=function(_0x101bfa,_0x32c0f5,_0x5bc85e){const _0x20d06a=_0x191303,_0x4731e7=this;this['sequence'][_0x20d06a('0x3')](function(){const _0x2ab694=_0x20d06a;return _0x4731e7[_0x2ab694('0xc')][_0x2ab694('0x1a')](_0x101bfa,_0x32c0f5,_0x5bc85e)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x32c0f5,_0x101bfa);})[_0x2ab694('0x7')](function(_0x52b520){const _0xdefbc0=_0x2ab694;logger[_0xdefbc0('0x19')](JSON[_0xdefbc0('0x1')](_0x52b520));});});},Migration[_0x191303('0x20')][_0x191303('0xd')]=function(_0xdf99af){const _0x30b696=_0x191303,_0x5b578c=this;this[_0x30b696('0x11')][_0x30b696('0x3')](function(){const _0x5d7422=_0x30b696;return _0x5b578c[_0x5d7422('0xc')][_0x5d7422('0xd')](_0xdf99af,{'force':!![]})['then'](function(){const _0x34e062=_0x5d7422;logger[_0x34e062('0x19')](_0x34e062('0xb'),_0xdf99af);})[_0x5d7422('0x7')](function(_0x1ca146){const _0x3e0aa3=_0x5d7422;logger[_0x3e0aa3('0x19')](JSON[_0x3e0aa3('0x1')](_0x1ca146));});});},Migration[_0x191303('0x20')][_0x191303('0x17')]=function(_0xf50f2f,_0x1031cb,_0x2c98c8){const _0x411509=_0x191303,_0x1e02f0=this;this[_0x411509('0x11')][_0x411509('0x3')](function(){const _0x30b56d=_0x411509;return _0x1e02f0[_0x30b56d('0xc')][_0x30b56d('0x17')](_0xf50f2f,_0x1031cb,{'indexName':_0x2c98c8})[_0x30b56d('0x9')](function(){const _0x35e28a=_0x30b56d;logger[_0x35e28a('0x19')]('addIndex\x20%s\x20%s\x20%s',_0xf50f2f,_0x1031cb['join'](','),_0x2c98c8);})[_0x30b56d('0x7')](function(_0x2e66d8){const _0x45587e=_0x30b56d;logger[_0x45587e('0x19')](JSON[_0x45587e('0x1')](_0x2e66d8));});});},Migration[_0x191303('0x20')][_0x191303('0x14')]=function(_0x16af11,_0x36dc47){const _0x62f718=_0x191303,_0x9bd653=this;this[_0x62f718('0x11')][_0x62f718('0x3')](function(){const _0x4f82e5=_0x62f718;return _0x9bd653[_0x4f82e5('0xc')][_0x4f82e5('0x14')](_0x16af11,_0x36dc47)[_0x4f82e5('0x9')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x16af11,_0x36dc47);})[_0x4f82e5('0x7')](function(_0x3aa5b7){const _0x79da94=_0x4f82e5;logger[_0x79da94('0x19')](JSON[_0x79da94('0x1')](_0x3aa5b7));});});},Migration[_0x191303('0x20')][_0x191303('0x4')]=function(_0x356e8d){const _0x43bf53=_0x191303,_0x2cf78d=this;this[_0x43bf53('0x11')][_0x43bf53('0x3')](function(){const _0x34f9d5=_0x43bf53;return _0x2cf78d['queryInterface'][_0x34f9d5('0x1c')]['query'](_0x356e8d)['then'](function(){const _0x5bd9fa=_0x34f9d5;logger[_0x5bd9fa('0x19')]('query\x20%s',_0x356e8d);})[_0x34f9d5('0x7')](function(_0x5b8434){const _0x29bcf5=_0x34f9d5;logger[_0x29bcf5('0x19')](JSON[_0x29bcf5('0x1')](_0x5b8434));});});},Migration[_0x191303('0x20')][_0x191303('0x2')]=function(_0x1d46e7,_0xe1d91c){const _0x1e10d7=_0x191303,_0x4ee1c1=this;this[_0x1e10d7('0x11')][_0x1e10d7('0x3')](function(){const _0xb08c64=_0x1e10d7;return _0x4ee1c1[_0xb08c64('0xc')][_0xb08c64('0x2')](_0x1d46e7,_0xe1d91c)[_0xb08c64('0x9')](function(){const _0x4eca34=_0xb08c64;logger[_0x4eca34('0x19')](_0x4eca34('0xe'),_0xe1d91c,_0x1d46e7);})[_0xb08c64('0x7')](function(_0x2071ca){const _0xf4345=_0xb08c64;logger[_0xf4345('0x19')](util[_0xf4345('0x18')](_0x2071ca,{'showHidden':![],'depth':null}));});});},Migration[_0x191303('0x20')][_0x191303('0x13')]=function(_0x26f5e8,_0x5d828b,_0x13a91c){const _0x16c5ad=_0x191303,_0x55c5b0=this;this[_0x16c5ad('0x11')][_0x16c5ad('0x3')](function(){const _0x39f9ca=_0x16c5ad;return _0x55c5b0[_0x39f9ca('0xc')]['renameColumn'](_0x26f5e8,_0x5d828b,_0x13a91c)[_0x39f9ca('0x9')](function(){const _0x10afe9=_0x39f9ca;logger['info'](_0x10afe9('0x0'),_0x5d828b,_0x13a91c,_0x26f5e8);})[_0x39f9ca('0x7')](function(_0x170cde){const _0x3d4821=_0x39f9ca;logger['info'](util[_0x3d4821('0x18')](_0x170cde,{'showHidden':![],'depth':null}));});});},Migration[_0x191303('0x20')][_0x191303('0x1e')]=function(_0x3e8bc3){const _0x790aad=_0x191303;this[_0x790aad('0x11')]['enqueue'](function(){return _0x3e8bc3();});},module[_0x191303('0x12')]={'up':function(_0x51e079,_0x4e8abb){return new Promise(function(_0x54da16){const _0x4c3688=a976_0x5667,_0x1ce9b8=new Migration(_0x51e079);_0x1ce9b8[_0x4c3688('0x4')](_0x4c3688('0x10')),_0x1ce9b8['changeColumn'](_0x4c3688('0x15'),'appdata',{'type':_0x4e8abb['TEXT']()}),_0x1ce9b8[_0x4c3688('0x8')]('fax_applications',_0x4c3688('0x5'),{'type':_0x4e8abb['TEXT']()}),_0x1ce9b8['changeColumn']('mail_applications','appdata',{'type':_0x4e8abb[_0x4c3688('0xa')]()}),_0x1ce9b8[_0x4c3688('0x8')](_0x4c3688('0x21'),_0x4c3688('0x5'),{'type':_0x4e8abb[_0x4c3688('0xa')]()}),_0x1ce9b8[_0x4c3688('0x8')](_0x4c3688('0x6'),_0x4c3688('0x5'),{'type':_0x4e8abb['TEXT']()}),_0x1ce9b8[_0x4c3688('0x1e')](_0x54da16);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.4.js b/server/migrations/2.3.4.js index 40055e1..8ff290d 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a977_0x2ee4=['table\x20dropped\x20%s','sequelize','addColumn','inspect','enqueue','removeColumn','Removed\x20column\x20%s\x20from\x20%s','final','addIndex','info','queryInterface','join','then','tail','finally','stringify','changeColumn','removeIndex','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','catch','migration','query','addIndex\x20%s\x20%s\x20%s','prototype','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','dropTable'];(function(_0x434505,_0x2ee40a){const _0x9e3aa6=function(_0x3428ee){while(--_0x3428ee){_0x434505['push'](_0x434505['shift']());}};_0x9e3aa6(++_0x2ee40a);}(a977_0x2ee4,0x165));const a977_0x9e3a=function(_0x434505,_0x2ee40a){_0x434505=_0x434505-0x0;let _0x9e3aa6=a977_0x2ee4[_0x434505];return _0x9e3aa6;};const _0x527fba=a977_0x9e3a;'use strict';const util=require('util'),logger=require('../config/logger')(_0x527fba('0xc')),Sequence=function(){};Sequence[_0x527fba('0xf')][_0x527fba('0x18')]=function(_0x3428ee){const _0xc2bb38=_0x527fba;this[_0xc2bb38('0x4')]=this['tail']?this[_0xc2bb38('0x4')][_0xc2bb38('0x5')](_0x3428ee):_0x3428ee();};const Migration=function(_0x677c57){const _0x956f86=_0x527fba;this[_0x956f86('0x1')]=_0x677c57,this[_0x956f86('0x10')]=new Sequence();};Migration[_0x527fba('0xf')][_0x527fba('0x7')]=function(_0x51f99f,_0x38dffb,_0x1324a5){const _0x19a6dc=_0x527fba,_0x61859c=this;this[_0x19a6dc('0x10')][_0x19a6dc('0x18')](function(){const _0x136e08=_0x19a6dc;return _0x61859c[_0x136e08('0x1')]['changeColumn'](_0x51f99f,_0x38dffb,_0x1324a5)[_0x136e08('0x3')](function(){const _0xa26021=_0x136e08;logger[_0xa26021('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x38dffb,_0x51f99f);})[_0x136e08('0xb')](function(_0x47fd10){const _0x30bf03=_0x136e08;logger[_0x30bf03('0x0')](JSON[_0x30bf03('0x6')](_0x47fd10));});});},Migration[_0x527fba('0xf')][_0x527fba('0x16')]=function(_0x1bb59c,_0x38ecfc,_0x271cdd){const _0x1ac9e7=this;this['sequence']['enqueue'](function(){const _0x5ae88c=a977_0x9e3a;return _0x1ac9e7[_0x5ae88c('0x1')][_0x5ae88c('0x16')](_0x1bb59c,_0x38ecfc,_0x271cdd)[_0x5ae88c('0x3')](function(){const _0x3fe124=_0x5ae88c;logger['info'](_0x3fe124('0x9'),_0x38ecfc,_0x1bb59c);})[_0x5ae88c('0xb')](function(_0x504191){const _0x3c534e=_0x5ae88c;logger[_0x3c534e('0x0')](JSON[_0x3c534e('0x6')](_0x504191));});});},Migration[_0x527fba('0xf')][_0x527fba('0x13')]=function(_0x69e30e){const _0x3c03f7=_0x527fba,_0x181f0c=this;this[_0x3c03f7('0x10')][_0x3c03f7('0x18')](function(){const _0x2e42f3=_0x3c03f7;return _0x181f0c['queryInterface'][_0x2e42f3('0x13')](_0x69e30e,{'force':!![]})[_0x2e42f3('0x3')](function(){const _0x4ef762=_0x2e42f3;logger[_0x4ef762('0x0')](_0x4ef762('0x14'),_0x69e30e);})[_0x2e42f3('0xb')](function(_0x1ed987){const _0x3cc388=_0x2e42f3;logger[_0x3cc388('0x0')](JSON[_0x3cc388('0x6')](_0x1ed987));});});},Migration['prototype'][_0x527fba('0x1c')]=function(_0x496a25,_0x8ee04,_0x46f7aa){const _0xd22dc7=_0x527fba,_0x122af6=this;this[_0xd22dc7('0x10')][_0xd22dc7('0x18')](function(){const _0x2e9e32=_0xd22dc7;return _0x122af6[_0x2e9e32('0x1')][_0x2e9e32('0x1c')](_0x496a25,_0x8ee04,{'indexName':_0x46f7aa})[_0x2e9e32('0x3')](function(){const _0x18e2bc=_0x2e9e32;logger[_0x18e2bc('0x0')](_0x18e2bc('0xe'),_0x496a25,_0x8ee04[_0x18e2bc('0x2')](','),_0x46f7aa);})[_0x2e9e32('0xb')](function(_0x2465e1){const _0x1acff4=_0x2e9e32;logger[_0x1acff4('0x0')](JSON[_0x1acff4('0x6')](_0x2465e1));});});},Migration['prototype'][_0x527fba('0x8')]=function(_0x19dd22,_0x5b7f85){const _0x4c5405=_0x527fba,_0xa6ad9e=this;this[_0x4c5405('0x10')]['enqueue'](function(){const _0xd57fed=_0x4c5405;return _0xa6ad9e[_0xd57fed('0x1')][_0xd57fed('0x8')](_0x19dd22,_0x5b7f85)['then'](function(){const _0x2d72d8=_0xd57fed;logger[_0x2d72d8('0x0')](_0x2d72d8('0xa'),_0x19dd22,_0x5b7f85);})[_0xd57fed('0xb')](function(_0x1d9a33){const _0x5c1cfe=_0xd57fed;logger[_0x5c1cfe('0x0')](JSON[_0x5c1cfe('0x6')](_0x1d9a33));});});},Migration['prototype'][_0x527fba('0xd')]=function(_0x457b5a){const _0x396ff8=_0x527fba,_0x569636=this;this['sequence'][_0x396ff8('0x18')](function(){const _0x5378f4=_0x396ff8;return _0x569636['queryInterface'][_0x5378f4('0x15')][_0x5378f4('0xd')](_0x457b5a)[_0x5378f4('0x3')](function(){const _0xd04799=_0x5378f4;logger[_0xd04799('0x0')]('query\x20%s',_0x457b5a);})[_0x5378f4('0xb')](function(_0x5c0800){const _0x5c3de7=_0x5378f4;logger['info'](JSON[_0x5c3de7('0x6')](_0x5c0800));});});},Migration[_0x527fba('0xf')][_0x527fba('0x19')]=function(_0x4cc9be,_0x25e021){const _0x3c98f3=_0x527fba,_0x4b9fac=this;this[_0x3c98f3('0x10')][_0x3c98f3('0x18')](function(){const _0x520f26=_0x3c98f3;return _0x4b9fac[_0x520f26('0x1')][_0x520f26('0x19')](_0x4cc9be,_0x25e021)['then'](function(){const _0x34bab2=_0x520f26;logger[_0x34bab2('0x0')](_0x34bab2('0x1a'),_0x25e021,_0x4cc9be);})['catch'](function(_0xd79369){const _0x573ee6=_0x520f26;logger[_0x573ee6('0x0')](util[_0x573ee6('0x17')](_0xd79369,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x527fba('0x12')]=function(_0xc230d2,_0x5fa646,_0x15cd27){const _0x4a77be=_0x527fba,_0xbcb388=this;this[_0x4a77be('0x10')][_0x4a77be('0x18')](function(){const _0x66f3ba=_0x4a77be;return _0xbcb388[_0x66f3ba('0x1')]['renameColumn'](_0xc230d2,_0x5fa646,_0x15cd27)[_0x66f3ba('0x3')](function(){const _0x3d5ef0=_0x66f3ba;logger[_0x3d5ef0('0x0')](_0x3d5ef0('0x11'),_0x5fa646,_0x15cd27,_0xc230d2);})[_0x66f3ba('0xb')](function(_0x53d7f0){const _0x1b3ae5=_0x66f3ba;logger[_0x1b3ae5('0x0')](util[_0x1b3ae5('0x17')](_0x53d7f0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x527fba('0x1b')]=function(_0x9c6dff){const _0x490241=_0x527fba;this[_0x490241('0x10')][_0x490241('0x18')](function(){return _0x9c6dff();});},module['exports']={'up':function(_0x357153){return new Promise(function(_0x57407a){const _0x27874d=a977_0x9e3a,_0x50efd8=new Migration(_0x357153);_0x50efd8[_0x27874d('0x1b')](_0x57407a);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.5.js b/server/migrations/2.3.5.js index 9c1da1d..d81c221 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a978_0x4024=['enqueue','util','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','indexName','sequelize','indicesType','inspect','renameColumn','then','prototype','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','removeColumn','query\x20%s','sequence','query','table\x20dropped\x20%s','info','addIndex','catch','changeColumn','finally','exports','dropTable','removeIndex\x20%s\x20%s','addColumn','queryInterface'];(function(_0x12f0be,_0x4024fc){const _0x322c9b=function(_0x50eea5){while(--_0x50eea5){_0x12f0be['push'](_0x12f0be['shift']());}};_0x322c9b(++_0x4024fc);}(a978_0x4024,0x168));const a978_0x322c=function(_0x12f0be,_0x4024fc){_0x12f0be=_0x12f0be-0x0;let _0x322c9b=a978_0x4024[_0x12f0be];return _0x322c9b;};const _0x449b70=a978_0x322c;'use strict';const util=require(_0x449b70('0xd')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x449b70('0xc')]=function(_0x50eea5){const _0x28e45c=_0x449b70;this[_0x28e45c('0x11')]=this['tail']?this[_0x28e45c('0x11')][_0x28e45c('0x6')](_0x50eea5):_0x50eea5();};const Migration=function(_0x376ac1){const _0x372f45=_0x449b70;this[_0x372f45('0xb')]=_0x376ac1,this[_0x372f45('0x1e')]=new Sequence();};Migration[_0x449b70('0x18')][_0x449b70('0x5')]=function(_0x10bee2,_0x2fd3ce,_0x909134){const _0x325a9f=this;this['sequence']['enqueue'](function(){const _0x23e759=a978_0x322c;return _0x325a9f['queryInterface'][_0x23e759('0x5')](_0x10bee2,_0x2fd3ce,_0x909134)['then'](function(){const _0x5787db=_0x23e759;logger[_0x5787db('0x2')](_0x5787db('0xf'),_0x2fd3ce,_0x10bee2);})[_0x23e759('0x4')](function(_0x218f5e){const _0x31f2c3=_0x23e759;logger[_0x31f2c3('0x2')](JSON[_0x31f2c3('0xe')](_0x218f5e));});});},Migration[_0x449b70('0x18')][_0x449b70('0xa')]=function(_0xe7b597,_0x16885d,_0x419ac8){const _0x432210=_0x449b70,_0x5ea7c2=this;this[_0x432210('0x1e')][_0x432210('0xc')](function(){const _0x1c3491=_0x432210;return _0x5ea7c2[_0x1c3491('0xb')][_0x1c3491('0xa')](_0xe7b597,_0x16885d,_0x419ac8)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x16885d,_0xe7b597);})['catch'](function(_0x42f06c){const _0x7c7199=_0x1c3491;logger[_0x7c7199('0x2')](JSON[_0x7c7199('0xe')](_0x42f06c));});});},Migration[_0x449b70('0x18')][_0x449b70('0x8')]=function(_0x3a395f){const _0x7c0f30=_0x449b70,_0x407bf9=this;this[_0x7c0f30('0x1e')][_0x7c0f30('0xc')](function(){const _0x345ab1=_0x7c0f30;return _0x407bf9[_0x345ab1('0xb')]['dropTable'](_0x3a395f,{'force':!![]})[_0x345ab1('0x17')](function(){const _0x533bf3=_0x345ab1;logger[_0x533bf3('0x2')](_0x533bf3('0x1'),_0x3a395f);})[_0x345ab1('0x4')](function(_0x4b4ba6){const _0x2a2617=_0x345ab1;logger[_0x2a2617('0x2')](JSON['stringify'](_0x4b4ba6));});});},Migration['prototype'][_0x449b70('0x3')]=function(_0x46cd88,_0xdfcf8f,_0xe46a32){const _0x4fcc1c=_0x449b70,_0xee5eda=this;this[_0x4fcc1c('0x1e')]['enqueue'](function(){const _0x2c3037=_0x4fcc1c;return _0xee5eda['queryInterface'][_0x2c3037('0x3')](_0x46cd88,_0xdfcf8f,{'indexName':_0xe46a32[_0x2c3037('0x12')],'indicesType':_0xe46a32[_0x2c3037('0x14')]})[_0x2c3037('0x17')](function(){const _0x453f22=_0x2c3037;logger[_0x453f22('0x2')](_0x453f22('0x10'),_0x46cd88,_0xdfcf8f['join'](','),_0xe46a32[_0x453f22('0x12')],_0xe46a32[_0x453f22('0x14')]);})[_0x2c3037('0x4')](function(_0x47a435){const _0x22a983=_0x2c3037;logger['info'](JSON[_0x22a983('0xe')](_0x47a435));});});},Migration[_0x449b70('0x18')][_0x449b70('0x1b')]=function(_0x2e28c4,_0x627081){const _0x2da883=_0x449b70,_0x11302a=this;this[_0x2da883('0x1e')]['enqueue'](function(){const _0xdecef5=_0x2da883;return _0x11302a[_0xdecef5('0xb')][_0xdecef5('0x1b')](_0x2e28c4,_0x627081)[_0xdecef5('0x17')](function(){const _0x4ee34f=_0xdecef5;logger[_0x4ee34f('0x2')](_0x4ee34f('0x9'),_0x2e28c4,_0x627081);})[_0xdecef5('0x4')](function(_0x1431a3){const _0x6d73e6=_0xdecef5;logger[_0x6d73e6('0x2')](JSON[_0x6d73e6('0xe')](_0x1431a3));});});},Migration[_0x449b70('0x18')][_0x449b70('0x0')]=function(_0x4b1a07){const _0x93ce93=_0x449b70,_0x156924=this;this['sequence'][_0x93ce93('0xc')](function(){const _0x3f0439=_0x93ce93;return _0x156924[_0x3f0439('0xb')][_0x3f0439('0x13')][_0x3f0439('0x0')](_0x4b1a07)[_0x3f0439('0x17')](function(){const _0x5ed885=_0x3f0439;logger[_0x5ed885('0x2')](_0x5ed885('0x1d'),_0x4b1a07);})[_0x3f0439('0x4')](function(_0xb51bff){const _0x3601ab=_0x3f0439;logger[_0x3601ab('0x2')](JSON[_0x3601ab('0xe')](_0xb51bff));});});},Migration[_0x449b70('0x18')][_0x449b70('0x1c')]=function(_0x3d0796,_0x12903a){const _0x56530f=_0x449b70,_0x43e3f4=this;this[_0x56530f('0x1e')]['enqueue'](function(){const _0x17361f=_0x56530f;return _0x43e3f4[_0x17361f('0xb')][_0x17361f('0x1c')](_0x3d0796,_0x12903a)[_0x17361f('0x17')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x12903a,_0x3d0796);})[_0x17361f('0x4')](function(_0x197f53){const _0x371b34=_0x17361f;logger[_0x371b34('0x2')](util['inspect'](_0x197f53,{'showHidden':![],'depth':null}));});});},Migration[_0x449b70('0x18')][_0x449b70('0x16')]=function(_0x143985,_0x2d34ba,_0x2940f5){const _0x8aff64=_0x449b70,_0x28e248=this;this[_0x8aff64('0x1e')]['enqueue'](function(){const _0x3acef2=_0x8aff64;return _0x28e248['queryInterface'][_0x3acef2('0x16')](_0x143985,_0x2d34ba,_0x2940f5)['then'](function(){const _0x5ac457=_0x3acef2;logger[_0x5ac457('0x2')](_0x5ac457('0x1a'),_0x2d34ba,_0x2940f5,_0x143985);})['catch'](function(_0x25d771){const _0x25eb44=_0x3acef2;logger[_0x25eb44('0x2')](util[_0x25eb44('0x15')](_0x25d771,{'showHidden':![],'depth':null}));});});},Migration[_0x449b70('0x18')][_0x449b70('0x19')]=function(_0x50ccce){const _0x3cbaae=_0x449b70;this[_0x3cbaae('0x1e')][_0x3cbaae('0xc')](function(){return _0x50ccce();});},module[_0x449b70('0x7')]={'up':function(_0x4bfc13){return new Promise(function(_0x520fe7){const _0x4b720e=new Migration(_0x4bfc13);_0x4b720e['final'](_0x520fe7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.6.js b/server/migrations/2.3.6.js index 566d9a6..01bdb3b 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a979_0x8c6e=['queryInterface','join','prototype','sequence','dropTable','addColumn','renameColumn','info','Removed\x20column\x20%s\x20from\x20%s','changeColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex','util','query\x20%s','indicesType','final','enqueue','addIndex','then','indexName','tail','table\x20dropped\x20%s','query','../config/logger','inspect','removeColumn','stringify','finally','catch'];(function(_0x2480ea,_0x8c6e13){const _0x38f939=function(_0x2cceba){while(--_0x2cceba){_0x2480ea['push'](_0x2480ea['shift']());}};_0x38f939(++_0x8c6e13);}(a979_0x8c6e,0x124));const a979_0x38f9=function(_0x2480ea,_0x8c6e13){_0x2480ea=_0x2480ea-0x0;let _0x38f939=a979_0x8c6e[_0x2480ea];return _0x38f939;};const _0x39e43d=a979_0x38f9;'use strict';const util=require(_0x39e43d('0xa')),logger=require(_0x39e43d('0x15'))('migration'),Sequence=function(){};Sequence[_0x39e43d('0x0')][_0x39e43d('0xe')]=function(_0x2cceba){const _0x51fef2=_0x39e43d;this['tail']=this[_0x51fef2('0x12')]?this[_0x51fef2('0x12')][_0x51fef2('0x19')](_0x2cceba):_0x2cceba();};const Migration=function(_0x2f1a2b){const _0x3d955a=_0x39e43d;this[_0x3d955a('0x1b')]=_0x2f1a2b,this[_0x3d955a('0x1')]=new Sequence();};Migration[_0x39e43d('0x0')]['changeColumn']=function(_0x3bdd47,_0x56ba27,_0x34a5c9){const _0x431e42=_0x39e43d,_0x1c46d0=this;this['sequence'][_0x431e42('0xe')](function(){const _0x24e8cd=_0x431e42;return _0x1c46d0['queryInterface'][_0x24e8cd('0x7')](_0x3bdd47,_0x56ba27,_0x34a5c9)[_0x24e8cd('0x10')](function(){const _0x13ec0e=_0x24e8cd;logger[_0x13ec0e('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x56ba27,_0x3bdd47);})[_0x24e8cd('0x1a')](function(_0x3d6b37){const _0x8d16b=_0x24e8cd;logger[_0x8d16b('0x5')](JSON['stringify'](_0x3d6b37));});});},Migration[_0x39e43d('0x0')][_0x39e43d('0x3')]=function(_0x4d81c1,_0x122140,_0x1c9e03){const _0x3fc517=this;this['sequence']['enqueue'](function(){const _0x5f3258=a979_0x38f9;return _0x3fc517[_0x5f3258('0x1b')][_0x5f3258('0x3')](_0x4d81c1,_0x122140,_0x1c9e03)[_0x5f3258('0x10')](function(){const _0x2bde15=_0x5f3258;logger[_0x2bde15('0x5')](_0x2bde15('0x8'),_0x122140,_0x4d81c1);})['catch'](function(_0x477986){const _0x3252d3=_0x5f3258;logger[_0x3252d3('0x5')](JSON['stringify'](_0x477986));});});},Migration[_0x39e43d('0x0')]['dropTable']=function(_0x39a626){const _0x5effe8=_0x39e43d,_0x5e0f01=this;this['sequence'][_0x5effe8('0xe')](function(){const _0x196267=_0x5effe8;return _0x5e0f01['queryInterface'][_0x196267('0x2')](_0x39a626,{'force':!![]})[_0x196267('0x10')](function(){const _0x27f10e=_0x196267;logger[_0x27f10e('0x5')](_0x27f10e('0x13'),_0x39a626);})[_0x196267('0x1a')](function(_0x4bed59){const _0x374ee5=_0x196267;logger['info'](JSON[_0x374ee5('0x18')](_0x4bed59));});});},Migration[_0x39e43d('0x0')][_0x39e43d('0xf')]=function(_0x51e0bf,_0x14f200,_0x444fd3){const _0x15f9c6=_0x39e43d,_0x353fd9=this;this[_0x15f9c6('0x1')][_0x15f9c6('0xe')](function(){const _0x584114=_0x15f9c6;return _0x353fd9['queryInterface'][_0x584114('0xf')](_0x51e0bf,_0x14f200,{'indexName':_0x444fd3[_0x584114('0x11')],'indicesType':_0x444fd3[_0x584114('0xc')]})['then'](function(){const _0x17b027=_0x584114;logger[_0x17b027('0x5')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x51e0bf,_0x14f200[_0x17b027('0x1c')](','),_0x444fd3[_0x17b027('0x11')],_0x444fd3['indicesType']);})['catch'](function(_0x27fbe9){logger['info'](JSON['stringify'](_0x27fbe9));});});},Migration[_0x39e43d('0x0')]['removeIndex']=function(_0x2ad811,_0x5970af){const _0x5250c0=_0x39e43d,_0x218dd9=this;this['sequence'][_0x5250c0('0xe')](function(){const _0x1f5a4b=_0x5250c0;return _0x218dd9[_0x1f5a4b('0x1b')][_0x1f5a4b('0x9')](_0x2ad811,_0x5970af)[_0x1f5a4b('0x10')](function(){const _0x208a28=_0x1f5a4b;logger[_0x208a28('0x5')]('removeIndex\x20%s\x20%s',_0x2ad811,_0x5970af);})[_0x1f5a4b('0x1a')](function(_0x2c91a6){const _0x1828d4=_0x1f5a4b;logger[_0x1828d4('0x5')](JSON[_0x1828d4('0x18')](_0x2c91a6));});});},Migration[_0x39e43d('0x0')][_0x39e43d('0x14')]=function(_0x2bd233){const _0x1a3ad6=_0x39e43d,_0x15f98b=this;this[_0x1a3ad6('0x1')][_0x1a3ad6('0xe')](function(){const _0x4fc6ae=_0x1a3ad6;return _0x15f98b[_0x4fc6ae('0x1b')]['sequelize'][_0x4fc6ae('0x14')](_0x2bd233)[_0x4fc6ae('0x10')](function(){const _0x1ab700=_0x4fc6ae;logger[_0x1ab700('0x5')](_0x1ab700('0xb'),_0x2bd233);})['catch'](function(_0x355d53){const _0x590530=_0x4fc6ae;logger['info'](JSON[_0x590530('0x18')](_0x355d53));});});},Migration[_0x39e43d('0x0')][_0x39e43d('0x17')]=function(_0x3e3876,_0x5d7427){const _0x2ce83e=_0x39e43d,_0x4b4e05=this;this[_0x2ce83e('0x1')][_0x2ce83e('0xe')](function(){const _0x83add8=_0x2ce83e;return _0x4b4e05['queryInterface'][_0x83add8('0x17')](_0x3e3876,_0x5d7427)[_0x83add8('0x10')](function(){const _0x4b075e=_0x83add8;logger['info'](_0x4b075e('0x6'),_0x5d7427,_0x3e3876);})[_0x83add8('0x1a')](function(_0x24c678){const _0x4c4ddf=_0x83add8;logger[_0x4c4ddf('0x5')](util[_0x4c4ddf('0x16')](_0x24c678,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x39e43d('0x4')]=function(_0x33ca56,_0x5ba90f,_0x35c0a0){const _0x430b68=_0x39e43d,_0x5dbed5=this;this[_0x430b68('0x1')]['enqueue'](function(){const _0x2f01f4=_0x430b68;return _0x5dbed5[_0x2f01f4('0x1b')][_0x2f01f4('0x4')](_0x33ca56,_0x5ba90f,_0x35c0a0)[_0x2f01f4('0x10')](function(){const _0x4f744a=_0x2f01f4;logger[_0x4f744a('0x5')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5ba90f,_0x35c0a0,_0x33ca56);})['catch'](function(_0x2498e8){const _0x394ab9=_0x2f01f4;logger[_0x394ab9('0x5')](util[_0x394ab9('0x16')](_0x2498e8,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3f5b60){const _0x417432=_0x39e43d;this['sequence'][_0x417432('0xe')](function(){return _0x3f5b60();});},module['exports']={'up':function(_0x5b711e){return new Promise(function(_0x4c239b){const _0x1c56f6=a979_0x38f9,_0x295ee6=new Migration(_0x5b711e);_0x295ee6[_0x1c56f6('0xd')](_0x4c239b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.7.js b/server/migrations/2.3.7.js index 8dcc3f7..457a113 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a980_0x4d0b=['util','final','sequence','removeIndex','int_salesforce_configurations','systemanswertime','report_agent','ticketType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','transfer','prototype','transferexten','removeIndex\x20%s\x20%s','enqueue','finally','exports','changeColumn','addIndex','renameColumn','Task','then','query','queryInterface','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','dropTable','report_call','Added\x20column\x20%s\x20to\x20%s','tail','addIndex\x20%s\x20%s\x20%s','addColumn','Removed\x20column\x20%s\x20from\x20%s','STRING','info','removeColumn','join','BOOLEAN','transferuniqueid','inspect','stringify'];(function(_0x2ae359,_0x4d0b97){const _0x8b6677=function(_0x3be598){while(--_0x3be598){_0x2ae359['push'](_0x2ae359['shift']());}};_0x8b6677(++_0x4d0b97);}(a980_0x4d0b,0xdb));const a980_0x8b66=function(_0x2ae359,_0x4d0b97){_0x2ae359=_0x2ae359-0x0;let _0x8b6677=a980_0x4d0b[_0x2ae359];return _0x8b6677;};const _0xa68ffe=a980_0x8b66;'use strict';const util=require(_0xa68ffe('0x21')),logger=require('../config/logger')(_0xa68ffe('0x0')),Sequence=function(){};Sequence[_0xa68ffe('0x2')][_0xa68ffe('0x5')]=function(_0x3be598){const _0x2844e5=_0xa68ffe;this['tail']=this[_0x2844e5('0x15')]?this[_0x2844e5('0x15')][_0x2844e5('0x6')](_0x3be598):_0x3be598();};const Migration=function(_0xb1b333){const _0x563eb4=_0xa68ffe;this[_0x563eb4('0xe')]=_0xb1b333,this[_0x563eb4('0x23')]=new Sequence();};Migration[_0xa68ffe('0x2')][_0xa68ffe('0x8')]=function(_0x3326cb,_0x171514,_0x1600ff){const _0x234f11=_0xa68ffe,_0x445b1a=this;this[_0x234f11('0x23')]['enqueue'](function(){const _0x1da0dc=_0x234f11;return _0x445b1a[_0x1da0dc('0xe')][_0x1da0dc('0x8')](_0x3326cb,_0x171514,_0x1600ff)['then'](function(){const _0x4a163f=_0x1da0dc;logger['info'](_0x4a163f('0x10'),_0x171514,_0x3326cb);})[_0x1da0dc('0xf')](function(_0x55a62a){const _0x4fbf0d=_0x1da0dc;logger[_0x4fbf0d('0x1a')](JSON[_0x4fbf0d('0x20')](_0x55a62a));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0x17')]=function(_0x21b0fd,_0x10d805,_0x4a02e7){const _0x1db93c=this;this['sequence']['enqueue'](function(){const _0x1b810c=a980_0x8b66;return _0x1db93c[_0x1b810c('0xe')][_0x1b810c('0x17')](_0x21b0fd,_0x10d805,_0x4a02e7)[_0x1b810c('0xc')](function(){const _0xc91612=_0x1b810c;logger[_0xc91612('0x1a')](_0xc91612('0x14'),_0x10d805,_0x21b0fd);})[_0x1b810c('0xf')](function(_0xccbbdb){const _0x178bf7=_0x1b810c;logger[_0x178bf7('0x1a')](JSON[_0x178bf7('0x20')](_0xccbbdb));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0x12')]=function(_0x16e3f3){const _0x207c32=this;this['sequence']['enqueue'](function(){const _0x4c1e85=a980_0x8b66;return _0x207c32[_0x4c1e85('0xe')]['dropTable'](_0x16e3f3,{'force':!![]})[_0x4c1e85('0xc')](function(){const _0x2054be=_0x4c1e85;logger['info'](_0x2054be('0x11'),_0x16e3f3);})[_0x4c1e85('0xf')](function(_0x385ad8){const _0x199e50=_0x4c1e85;logger['info'](JSON[_0x199e50('0x20')](_0x385ad8));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0x9')]=function(_0xb96af5,_0x1ea680,_0x26a988){const _0x4a4c83=_0xa68ffe,_0x1a0610=this;this['sequence'][_0x4a4c83('0x5')](function(){const _0x5b3940=_0x4a4c83;return _0x1a0610[_0x5b3940('0xe')][_0x5b3940('0x9')](_0xb96af5,_0x1ea680,{'indexName':_0x26a988})[_0x5b3940('0xc')](function(){const _0x3a8033=_0x5b3940;logger[_0x3a8033('0x1a')](_0x3a8033('0x16'),_0xb96af5,_0x1ea680[_0x3a8033('0x1c')](','),_0x26a988);})['catch'](function(_0x4082fd){const _0x171b1f=_0x5b3940;logger[_0x171b1f('0x1a')](JSON[_0x171b1f('0x20')](_0x4082fd));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0x24')]=function(_0x2f3638,_0x1f0ab1){const _0x44066a=this;this['sequence']['enqueue'](function(){const _0x1ee346=a980_0x8b66;return _0x44066a[_0x1ee346('0xe')][_0x1ee346('0x24')](_0x2f3638,_0x1f0ab1)[_0x1ee346('0xc')](function(){const _0x460c1d=_0x1ee346;logger[_0x460c1d('0x1a')](_0x460c1d('0x4'),_0x2f3638,_0x1f0ab1);})['catch'](function(_0x55ed24){const _0x59003d=_0x1ee346;logger['info'](JSON[_0x59003d('0x20')](_0x55ed24));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0xd')]=function(_0x5f36d9){const _0xe7a04e=_0xa68ffe,_0x203715=this;this['sequence'][_0xe7a04e('0x5')](function(){const _0x2c9127=_0xe7a04e;return _0x203715['queryInterface']['sequelize'][_0x2c9127('0xd')](_0x5f36d9)[_0x2c9127('0xc')](function(){const _0x1e5782=_0x2c9127;logger[_0x1e5782('0x1a')]('query\x20%s',_0x5f36d9);})['catch'](function(_0x2b9f66){const _0x288aa7=_0x2c9127;logger[_0x288aa7('0x1a')](JSON[_0x288aa7('0x20')](_0x2b9f66));});});},Migration[_0xa68ffe('0x2')]['removeColumn']=function(_0x4f8b09,_0x3e4634){const _0x3bd188=_0xa68ffe,_0x27b864=this;this[_0x3bd188('0x23')][_0x3bd188('0x5')](function(){const _0xb724b8=_0x3bd188;return _0x27b864[_0xb724b8('0xe')][_0xb724b8('0x1b')](_0x4f8b09,_0x3e4634)['then'](function(){const _0x2e76bf=_0xb724b8;logger[_0x2e76bf('0x1a')](_0x2e76bf('0x18'),_0x3e4634,_0x4f8b09);})[_0xb724b8('0xf')](function(_0x5c0384){const _0x4ecbb9=_0xb724b8;logger['info'](util[_0x4ecbb9('0x1f')](_0x5c0384,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xa68ffe('0xa')]=function(_0x136083,_0x34c26c,_0x1c242c){const _0x1c1020=_0xa68ffe,_0x3a519a=this;this[_0x1c1020('0x23')][_0x1c1020('0x5')](function(){const _0x56c7de=_0x1c1020;return _0x3a519a[_0x56c7de('0xe')][_0x56c7de('0xa')](_0x136083,_0x34c26c,_0x1c242c)[_0x56c7de('0xc')](function(){const _0x420cf9=_0x56c7de;logger['info'](_0x420cf9('0x29'),_0x34c26c,_0x1c242c,_0x136083);})[_0x56c7de('0xf')](function(_0x23e242){const _0x811467=_0x56c7de;logger[_0x811467('0x1a')](util[_0x811467('0x1f')](_0x23e242,{'showHidden':![],'depth':null}));});});},Migration[_0xa68ffe('0x2')][_0xa68ffe('0x22')]=function(_0x4fcf64){const _0x16bf15=_0xa68ffe;this[_0x16bf15('0x23')][_0x16bf15('0x5')](function(){return _0x4fcf64();});},module[_0xa68ffe('0x7')]={'up':function(_0x397e9b,_0x2abbde){return new Promise(function(_0x468eef){const _0x2d314b=a980_0x8b66,_0x4e027f=new Migration(_0x397e9b);_0x4e027f[_0x2d314b('0x17')](_0x2d314b('0x27'),_0x2d314b('0x1'),{'type':_0x2abbde[_0x2d314b('0x1d')],'defaultValue':![]}),_0x4e027f[_0x2d314b('0x17')](_0x2d314b('0x27'),'transfertype',{'type':_0x2abbde[_0x2d314b('0x19')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x4e027f['addColumn']('report_agent',_0x2d314b('0x3'),{'type':_0x2abbde[_0x2d314b('0x19')]}),_0x4e027f[_0x2d314b('0x17')]('report_agent',_0x2d314b('0x1e'),{'type':_0x2abbde[_0x2d314b('0x19')]}),_0x4e027f['addColumn'](_0x2d314b('0x27'),'agententerreason',{'type':_0x2abbde['INTEGER'],'defaultValue':0x0}),_0x4e027f['addColumn'](_0x2d314b('0x13'),_0x2d314b('0x26'),{'type':_0x2abbde['DATE']}),_0x4e027f[_0x2d314b('0x17')](_0x2d314b('0x25'),_0x2d314b('0x28'),{'type':_0x2abbde['ENUM']('Task','Case'),'defaultValue':_0x2d314b('0xb')}),_0x4e027f[_0x2d314b('0x22')](_0x468eef);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.8.js b/server/migrations/2.3.8.js index 3d875e1..79518d6 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a981_0x3d1b=['stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','changeColumn','util','../config/logger','exports','query\x20%s','dropTable','prototype','removeIndex\x20%s\x20%s','sequelize','info','catch','removeIndex','query','tail','enqueue','inspect','addColumn','final','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','removeColumn','queryInterface','Removed\x20column\x20%s\x20from\x20%s','then','migration','addIndex','renameColumn','sequence','Added\x20column\x20%s\x20to\x20%s'];(function(_0x1a2309,_0x3d1b0e){const _0x566349=function(_0x15d68e){while(--_0x15d68e){_0x1a2309['push'](_0x1a2309['shift']());}};_0x566349(++_0x3d1b0e);}(a981_0x3d1b,0xe7));const a981_0x5663=function(_0x1a2309,_0x3d1b0e){_0x1a2309=_0x1a2309-0x0;let _0x566349=a981_0x3d1b[_0x1a2309];return _0x566349;};const _0x5bcf05=a981_0x5663;'use strict';const util=require(_0x5bcf05('0x4')),logger=require(_0x5bcf05('0x5'))(_0x5bcf05('0x1c')),Sequence=function(){};Sequence['prototype'][_0x5bcf05('0x11')]=function(_0x15d68e){const _0x28fae6=_0x5bcf05;this['tail']=this[_0x28fae6('0x10')]?this[_0x28fae6('0x10')][_0x28fae6('0x2')](_0x15d68e):_0x15d68e();};const Migration=function(_0x1cfcbb){const _0x123ef0=_0x5bcf05;this[_0x123ef0('0x19')]=_0x1cfcbb,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x38836e,_0x4b8ce5,_0x553470){const _0x271bf9=_0x5bcf05,_0x5715f7=this;this[_0x271bf9('0x1f')][_0x271bf9('0x11')](function(){const _0x43d8e3=_0x271bf9;return _0x5715f7[_0x43d8e3('0x19')][_0x43d8e3('0x3')](_0x38836e,_0x4b8ce5,_0x553470)[_0x43d8e3('0x1b')](function(){const _0xc19ef=_0x43d8e3;logger[_0xc19ef('0xc')](_0xc19ef('0x1'),_0x4b8ce5,_0x38836e);})['catch'](function(_0x234800){const _0xdfd003=_0x43d8e3;logger[_0xdfd003('0xc')](JSON[_0xdfd003('0x0')](_0x234800));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0x13')]=function(_0x5f59b1,_0xea0ca6,_0x31455a){const _0x2f197c=_0x5bcf05,_0x3f7f8e=this;this['sequence'][_0x2f197c('0x11')](function(){const _0x4aedca=_0x2f197c;return _0x3f7f8e[_0x4aedca('0x19')][_0x4aedca('0x13')](_0x5f59b1,_0xea0ca6,_0x31455a)['then'](function(){const _0x449908=_0x4aedca;logger[_0x449908('0xc')](_0x449908('0x20'),_0xea0ca6,_0x5f59b1);})['catch'](function(_0x1ef7d0){const _0x346456=_0x4aedca;logger[_0x346456('0xc')](JSON[_0x346456('0x0')](_0x1ef7d0));});});},Migration['prototype'][_0x5bcf05('0x8')]=function(_0x116c35){const _0x1cb24d=_0x5bcf05,_0x2ad172=this;this[_0x1cb24d('0x1f')]['enqueue'](function(){const _0x592c04=_0x1cb24d;return _0x2ad172[_0x592c04('0x19')]['dropTable'](_0x116c35,{'force':!![]})[_0x592c04('0x1b')](function(){const _0x18c791=_0x592c04;logger[_0x18c791('0xc')]('table\x20dropped\x20%s',_0x116c35);})[_0x592c04('0xd')](function(_0x2d6ef0){const _0x23e147=_0x592c04;logger['info'](JSON[_0x23e147('0x0')](_0x2d6ef0));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0x1d')]=function(_0x4142d7,_0x2ca4a0,_0x245e6a){const _0x4154e0=this;this['sequence']['enqueue'](function(){const _0x56f4fe=a981_0x5663;return _0x4154e0[_0x56f4fe('0x19')][_0x56f4fe('0x1d')](_0x4142d7,_0x2ca4a0,{'indexName':_0x245e6a})[_0x56f4fe('0x1b')](function(){const _0x4b5646=_0x56f4fe;logger['info'](_0x4b5646('0x17'),_0x4142d7,_0x2ca4a0[_0x4b5646('0x15')](','),_0x245e6a);})[_0x56f4fe('0xd')](function(_0x38345b){const _0x5ccff5=_0x56f4fe;logger[_0x5ccff5('0xc')](JSON[_0x5ccff5('0x0')](_0x38345b));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0xe')]=function(_0xe7c332,_0x5c7f94){const _0x4d2881=_0x5bcf05,_0x28154c=this;this[_0x4d2881('0x1f')][_0x4d2881('0x11')](function(){const _0x128313=_0x4d2881;return _0x28154c[_0x128313('0x19')][_0x128313('0xe')](_0xe7c332,_0x5c7f94)[_0x128313('0x1b')](function(){const _0x2ad42c=_0x128313;logger[_0x2ad42c('0xc')](_0x2ad42c('0xa'),_0xe7c332,_0x5c7f94);})[_0x128313('0xd')](function(_0x4c866e){const _0x7ef814=_0x128313;logger[_0x7ef814('0xc')](JSON[_0x7ef814('0x0')](_0x4c866e));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0xf')]=function(_0x49e827){const _0x3a6e24=_0x5bcf05,_0x54a61a=this;this[_0x3a6e24('0x1f')]['enqueue'](function(){const _0x1ac472=_0x3a6e24;return _0x54a61a[_0x1ac472('0x19')][_0x1ac472('0xb')][_0x1ac472('0xf')](_0x49e827)[_0x1ac472('0x1b')](function(){const _0x4114cd=_0x1ac472;logger[_0x4114cd('0xc')](_0x4114cd('0x7'),_0x49e827);})[_0x1ac472('0xd')](function(_0x1323f9){const _0x57b764=_0x1ac472;logger[_0x57b764('0xc')](JSON['stringify'](_0x1323f9));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0x18')]=function(_0x1fac96,_0x572122){const _0x3bd7b4=_0x5bcf05,_0x187dca=this;this['sequence'][_0x3bd7b4('0x11')](function(){const _0x45f3e8=_0x3bd7b4;return _0x187dca[_0x45f3e8('0x19')][_0x45f3e8('0x18')](_0x1fac96,_0x572122)[_0x45f3e8('0x1b')](function(){const _0x4c0c81=_0x45f3e8;logger[_0x4c0c81('0xc')](_0x4c0c81('0x1a'),_0x572122,_0x1fac96);})['catch'](function(_0x3684b4){const _0x4ea5f9=_0x45f3e8;logger[_0x4ea5f9('0xc')](util[_0x4ea5f9('0x12')](_0x3684b4,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x2d1c1f,_0x507e64,_0x3f0f59){const _0x49b3c6=_0x5bcf05,_0xb8f660=this;this['sequence'][_0x49b3c6('0x11')](function(){const _0x318dc5=_0x49b3c6;return _0xb8f660['queryInterface'][_0x318dc5('0x1e')](_0x2d1c1f,_0x507e64,_0x3f0f59)[_0x318dc5('0x1b')](function(){const _0x427de1=_0x318dc5;logger[_0x427de1('0xc')](_0x427de1('0x16'),_0x507e64,_0x3f0f59,_0x2d1c1f);})[_0x318dc5('0xd')](function(_0x49c342){const _0x1768ca=_0x318dc5;logger[_0x1768ca('0xc')](util[_0x1768ca('0x12')](_0x49c342,{'showHidden':![],'depth':null}));});});},Migration[_0x5bcf05('0x9')][_0x5bcf05('0x14')]=function(_0x22bb8d){const _0x251eab=_0x5bcf05;this['sequence'][_0x251eab('0x11')](function(){return _0x22bb8d();});},module[_0x5bcf05('0x6')]={'up':function(_0x4afb44){return new Promise(function(_0x48f337){const _0x7c0971=a981_0x5663,_0x1af953=new Migration(_0x4afb44);_0x1af953[_0x7c0971('0x14')](_0x48f337);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.9.js b/server/migrations/2.3.9.js index 7e360d5..a5b3774 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a982_0x20d5=['removeIndex','catch','then','stringify','sequence','query\x20%s','final','prototype','tail','sequelize','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','addColumn','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','util','migration','exports','queryInterface','removeColumn','indexName','finally','query','dropTable','addIndex','renameColumn','indicesType','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','info'];(function(_0x58bba5,_0x20d5db){const _0x4f5808=function(_0x2fae9a){while(--_0x2fae9a){_0x58bba5['push'](_0x58bba5['shift']());}};_0x4f5808(++_0x20d5db);}(a982_0x20d5,0x1c5));const a982_0x4f58=function(_0x58bba5,_0x20d5db){_0x58bba5=_0x58bba5-0x0;let _0x4f5808=a982_0x20d5[_0x58bba5];return _0x4f5808;};const _0x18d142=a982_0x4f58;'use strict';const util=require(_0x18d142('0xc')),logger=require('../config/logger')(_0x18d142('0xd')),Sequence=function(){};Sequence[_0x18d142('0x2')][_0x18d142('0x18')]=function(_0x2fae9a){const _0x2c8241=_0x18d142;this[_0x2c8241('0x3')]=this[_0x2c8241('0x3')]?this[_0x2c8241('0x3')][_0x2c8241('0x12')](_0x2fae9a):_0x2fae9a();};const Migration=function(_0x3a51b1){const _0x35d136=_0x18d142;this[_0x35d136('0xf')]=_0x3a51b1,this['sequence']=new Sequence();};Migration[_0x18d142('0x2')][_0x18d142('0x7')]=function(_0x4180c1,_0x5ecea9,_0x34769a){const _0x2d8fd8=_0x18d142,_0x575360=this;this[_0x2d8fd8('0x1f')]['enqueue'](function(){const _0x189566=_0x2d8fd8;return _0x575360[_0x189566('0xf')]['changeColumn'](_0x4180c1,_0x5ecea9,_0x34769a)[_0x189566('0x1d')](function(){const _0x580493=_0x189566;logger[_0x580493('0x1a')](_0x580493('0x19'),_0x5ecea9,_0x4180c1);})[_0x189566('0x1c')](function(_0x4a0aba){const _0x45d8aa=_0x189566;logger[_0x45d8aa('0x1a')](JSON[_0x45d8aa('0x1e')](_0x4a0aba));});});},Migration[_0x18d142('0x2')][_0x18d142('0x8')]=function(_0xc01f91,_0x2bc158,_0x1eb2fa){const _0xc1de1c=_0x18d142,_0x550a4a=this;this[_0xc1de1c('0x1f')]['enqueue'](function(){const _0x306cb0=_0xc1de1c;return _0x550a4a[_0x306cb0('0xf')]['addColumn'](_0xc01f91,_0x2bc158,_0x1eb2fa)[_0x306cb0('0x1d')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2bc158,_0xc01f91);})[_0x306cb0('0x1c')](function(_0x59ecc9){const _0xd57de8=_0x306cb0;logger['info'](JSON[_0xd57de8('0x1e')](_0x59ecc9));});});},Migration['prototype'][_0x18d142('0x14')]=function(_0x1b5c05){const _0x29c08e=_0x18d142,_0x1cf280=this;this[_0x29c08e('0x1f')][_0x29c08e('0x18')](function(){const _0x844504=_0x29c08e;return _0x1cf280['queryInterface']['dropTable'](_0x1b5c05,{'force':!![]})['then'](function(){const _0x215fb9=a982_0x4f58;logger[_0x215fb9('0x1a')]('table\x20dropped\x20%s',_0x1b5c05);})[_0x844504('0x1c')](function(_0x2ecf54){const _0x147209=_0x844504;logger[_0x147209('0x1a')](JSON[_0x147209('0x1e')](_0x2ecf54));});});},Migration[_0x18d142('0x2')][_0x18d142('0x15')]=function(_0x20db86,_0x4b4600,_0x3b317f){const _0x350034=_0x18d142,_0x1492a8=this;this[_0x350034('0x1f')]['enqueue'](function(){const _0x1ecc67=_0x350034;return _0x1492a8['queryInterface'][_0x1ecc67('0x15')](_0x20db86,_0x4b4600,{'indexName':_0x3b317f['indexName'],'indicesType':_0x3b317f[_0x1ecc67('0x17')]})[_0x1ecc67('0x1d')](function(){const _0x34a071=_0x1ecc67;logger['info'](_0x34a071('0x6'),_0x20db86,_0x4b4600[_0x34a071('0x5')](','),_0x3b317f[_0x34a071('0x11')],_0x3b317f[_0x34a071('0x17')]);})[_0x1ecc67('0x1c')](function(_0x325f5e){const _0x30bdfa=_0x1ecc67;logger[_0x30bdfa('0x1a')](JSON[_0x30bdfa('0x1e')](_0x325f5e));});});},Migration[_0x18d142('0x2')][_0x18d142('0x1b')]=function(_0x34e464,_0x3a5758){const _0x25849e=_0x18d142,_0x34d40f=this;this[_0x25849e('0x1f')][_0x25849e('0x18')](function(){const _0x5395dc=_0x25849e;return _0x34d40f[_0x5395dc('0xf')][_0x5395dc('0x1b')](_0x34e464,_0x3a5758)['then'](function(){const _0x19ef2f=_0x5395dc;logger['info'](_0x19ef2f('0x9'),_0x34e464,_0x3a5758);})['catch'](function(_0x58abec){const _0x5f39e9=_0x5395dc;logger['info'](JSON[_0x5f39e9('0x1e')](_0x58abec));});});},Migration['prototype'][_0x18d142('0x13')]=function(_0x291615){const _0x448dbe=_0x18d142,_0x54905c=this;this[_0x448dbe('0x1f')][_0x448dbe('0x18')](function(){const _0x3adf40=_0x448dbe;return _0x54905c[_0x3adf40('0xf')][_0x3adf40('0x4')]['query'](_0x291615)[_0x3adf40('0x1d')](function(){const _0x645641=_0x3adf40;logger[_0x645641('0x1a')](_0x645641('0x0'),_0x291615);})[_0x3adf40('0x1c')](function(_0x2dd71c){const _0x230f3b=_0x3adf40;logger[_0x230f3b('0x1a')](JSON[_0x230f3b('0x1e')](_0x2dd71c));});});},Migration['prototype']['removeColumn']=function(_0x43cd44,_0x272c57){const _0xdb49ed=_0x18d142,_0x3d6687=this;this[_0xdb49ed('0x1f')]['enqueue'](function(){const _0x505403=_0xdb49ed;return _0x3d6687[_0x505403('0xf')][_0x505403('0x10')](_0x43cd44,_0x272c57)[_0x505403('0x1d')](function(){const _0x420979=_0x505403;logger[_0x420979('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x272c57,_0x43cd44);})[_0x505403('0x1c')](function(_0x153f3e){logger['info'](util['inspect'](_0x153f3e,{'showHidden':![],'depth':null}));});});},Migration[_0x18d142('0x2')][_0x18d142('0x16')]=function(_0x4dd8e3,_0x444e06,_0x27c817){const _0x6709c0=_0x18d142,_0x54a95b=this;this[_0x6709c0('0x1f')][_0x6709c0('0x18')](function(){const _0x109b5f=_0x6709c0;return _0x54a95b[_0x109b5f('0xf')]['renameColumn'](_0x4dd8e3,_0x444e06,_0x27c817)[_0x109b5f('0x1d')](function(){const _0x3ca45a=_0x109b5f;logger[_0x3ca45a('0x1a')](_0x3ca45a('0xa'),_0x444e06,_0x27c817,_0x4dd8e3);})[_0x109b5f('0x1c')](function(_0x3aefed){const _0x478b6c=_0x109b5f;logger['info'](util[_0x478b6c('0xb')](_0x3aefed,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x18d142('0x1')]=function(_0x3fbf16){const _0x744010=_0x18d142;this[_0x744010('0x1f')]['enqueue'](function(){return _0x3fbf16();});},module[_0x18d142('0xe')]={'up':function(_0xa9d59f){return new Promise(function(_0x19a822){const _0x36177d=new Migration(_0xa9d59f);_0x36177d['final'](_0x19a822);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.91.js b/server/migrations/2.3.91.js index c83c751..e43d74c 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a983_0x405f=['removeIndex','exports','report_call','renameColumn','prototype','final','query','enqueue','dropTable','migration','addIndex\x20%s\x20%s\x20%s','inspect','tail','queryInterface','Removed\x20column\x20%s\x20from\x20%s','sipcallid','catch','../config/logger','join','sequelize','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','addColumn','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','addIndex','info','then','stringify','query\x20%s','Added\x20column\x20%s\x20to\x20%s','STRING'];(function(_0x35d8f2,_0x405f8b){const _0x4057db=function(_0x2995db){while(--_0x2995db){_0x35d8f2['push'](_0x35d8f2['shift']());}};_0x4057db(++_0x405f8b);}(a983_0x405f,0xc7));const a983_0x4057=function(_0x35d8f2,_0x405f8b){_0x35d8f2=_0x35d8f2-0x0;let _0x4057db=a983_0x405f[_0x35d8f2];return _0x4057db;};const _0x2e9f01=a983_0x4057;'use strict';const util=require('util'),logger=require(_0x2e9f01('0x16'))(_0x2e9f01('0xe')),Sequence=function(){};Sequence[_0x2e9f01('0x9')][_0x2e9f01('0xc')]=function(_0x2995db){const _0x466bd7=_0x2e9f01;this[_0x466bd7('0x11')]=this['tail']?this[_0x466bd7('0x11')][_0x466bd7('0x1b')](_0x2995db):_0x2995db();};const Migration=function(_0x839000){const _0x3245d5=_0x2e9f01;this['queryInterface']=_0x839000,this[_0x3245d5('0x19')]=new Sequence();};Migration[_0x2e9f01('0x9')]['changeColumn']=function(_0x16a65b,_0x24521d,_0x1cbd5e){const _0x72bc14=_0x2e9f01,_0x3b0f79=this;this[_0x72bc14('0x19')][_0x72bc14('0xc')](function(){const _0xa1bb05=_0x72bc14;return _0x3b0f79[_0xa1bb05('0x12')][_0xa1bb05('0x1d')](_0x16a65b,_0x24521d,_0x1cbd5e)[_0xa1bb05('0x0')](function(){const _0x4a926b=_0xa1bb05;logger['info'](_0x4a926b('0x1a'),_0x24521d,_0x16a65b);})[_0xa1bb05('0x15')](function(_0x51330f){const _0x5a5221=_0xa1bb05;logger[_0x5a5221('0x21')](JSON[_0x5a5221('0x1')](_0x51330f));});});},Migration[_0x2e9f01('0x9')][_0x2e9f01('0x1c')]=function(_0x5d0401,_0x303027,_0x4093fd){const _0x5e96db=_0x2e9f01,_0x2e6723=this;this[_0x5e96db('0x19')][_0x5e96db('0xc')](function(){const _0x57bc9b=_0x5e96db;return _0x2e6723[_0x57bc9b('0x12')][_0x57bc9b('0x1c')](_0x5d0401,_0x303027,_0x4093fd)['then'](function(){const _0x26fce9=_0x57bc9b;logger[_0x26fce9('0x21')](_0x26fce9('0x3'),_0x303027,_0x5d0401);})[_0x57bc9b('0x15')](function(_0x19b2b7){const _0x547697=_0x57bc9b;logger['info'](JSON[_0x547697('0x1')](_0x19b2b7));});});},Migration[_0x2e9f01('0x9')][_0x2e9f01('0xd')]=function(_0x54e700){const _0x34f543=_0x2e9f01,_0x48759c=this;this[_0x34f543('0x19')]['enqueue'](function(){const _0x222da6=_0x34f543;return _0x48759c[_0x222da6('0x12')]['dropTable'](_0x54e700,{'force':!![]})[_0x222da6('0x0')](function(){const _0x415e44=_0x222da6;logger[_0x415e44('0x21')](_0x415e44('0x1f'),_0x54e700);})['catch'](function(_0x3da36a){const _0x489018=_0x222da6;logger[_0x489018('0x21')](JSON[_0x489018('0x1')](_0x3da36a));});});},Migration['prototype']['addIndex']=function(_0x8b4a30,_0x3f71c4,_0x7cd68a){const _0x7a8aed=_0x2e9f01,_0x40211b=this;this[_0x7a8aed('0x19')][_0x7a8aed('0xc')](function(){const _0x7c20ff=_0x7a8aed;return _0x40211b[_0x7c20ff('0x12')][_0x7c20ff('0x20')](_0x8b4a30,_0x3f71c4,{'indexName':_0x7cd68a})[_0x7c20ff('0x0')](function(){const _0x47b13f=_0x7c20ff;logger[_0x47b13f('0x21')](_0x47b13f('0xf'),_0x8b4a30,_0x3f71c4[_0x47b13f('0x17')](','),_0x7cd68a);})[_0x7c20ff('0x15')](function(_0x2ad4b7){const _0x4c4d5f=_0x7c20ff;logger[_0x4c4d5f('0x21')](JSON['stringify'](_0x2ad4b7));});});},Migration[_0x2e9f01('0x9')]['removeIndex']=function(_0x4e6ad9,_0x2af9f9){const _0x30bba0=_0x2e9f01,_0x1ad810=this;this[_0x30bba0('0x19')][_0x30bba0('0xc')](function(){const _0x5c625f=_0x30bba0;return _0x1ad810['queryInterface'][_0x5c625f('0x5')](_0x4e6ad9,_0x2af9f9)['then'](function(){const _0x2139ec=_0x5c625f;logger[_0x2139ec('0x21')]('removeIndex\x20%s\x20%s',_0x4e6ad9,_0x2af9f9);})['catch'](function(_0x512438){const _0x22a019=_0x5c625f;logger[_0x22a019('0x21')](JSON[_0x22a019('0x1')](_0x512438));});});},Migration[_0x2e9f01('0x9')][_0x2e9f01('0xb')]=function(_0x281433){const _0x149222=_0x2e9f01,_0x5cb0b2=this;this[_0x149222('0x19')][_0x149222('0xc')](function(){const _0x5202d2=_0x149222;return _0x5cb0b2['queryInterface'][_0x5202d2('0x18')][_0x5202d2('0xb')](_0x281433)[_0x5202d2('0x0')](function(){const _0x2515c6=_0x5202d2;logger[_0x2515c6('0x21')](_0x2515c6('0x2'),_0x281433);})['catch'](function(_0x21f9c2){const _0x50f17d=_0x5202d2;logger[_0x50f17d('0x21')](JSON[_0x50f17d('0x1')](_0x21f9c2));});});},Migration[_0x2e9f01('0x9')]['removeColumn']=function(_0x28455b,_0x18807f){const _0x315f36=_0x2e9f01,_0x3d9bed=this;this[_0x315f36('0x19')]['enqueue'](function(){const _0x3c9404=_0x315f36;return _0x3d9bed[_0x3c9404('0x12')]['removeColumn'](_0x28455b,_0x18807f)['then'](function(){const _0x709bd4=_0x3c9404;logger[_0x709bd4('0x21')](_0x709bd4('0x13'),_0x18807f,_0x28455b);})[_0x3c9404('0x15')](function(_0x5f2db8){const _0x44d4c7=_0x3c9404;logger['info'](util[_0x44d4c7('0x10')](_0x5f2db8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2e9f01('0x8')]=function(_0x4ef4be,_0x3ffab6,_0x56439e){const _0x59246f=_0x2e9f01,_0x350023=this;this['sequence'][_0x59246f('0xc')](function(){const _0x1db3cd=_0x59246f;return _0x350023['queryInterface'][_0x1db3cd('0x8')](_0x4ef4be,_0x3ffab6,_0x56439e)[_0x1db3cd('0x0')](function(){const _0x4ab297=_0x1db3cd;logger[_0x4ab297('0x21')](_0x4ab297('0x1e'),_0x3ffab6,_0x56439e,_0x4ef4be);})['catch'](function(_0x396655){const _0x366d2c=_0x1db3cd;logger[_0x366d2c('0x21')](util[_0x366d2c('0x10')](_0x396655,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0xb25d58){const _0x905c29=_0x2e9f01;this[_0x905c29('0x19')][_0x905c29('0xc')](function(){return _0xb25d58();});},module[_0x2e9f01('0x6')]={'up':function(_0x3c9d30,_0x4394a5){return new Promise(function(_0x5c68e6){const _0x2b4e79=a983_0x4057,_0x9385ce=new Migration(_0x3c9d30);_0x9385ce[_0x2b4e79('0x1c')](_0x2b4e79('0x7'),_0x2b4e79('0x14'),{'type':_0x4394a5[_0x2b4e79('0x4')]}),_0x9385ce[_0x2b4e79('0xa')](_0x5c68e6);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.92.js b/server/migrations/2.3.92.js index 92143af..e7d65d0 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a984_0x4c3a=['Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','join','tail','query','addColumn','then','enqueue','finally','dropTable','stringify','removeIndex','queryInterface','changeColumn','prototype','../config/logger','catch','renameColumn','sequence','query\x20%s','info','Added\x20column\x20%s\x20to\x20%s','final','inspect','util','migration','addIndex','removeColumn'];(function(_0x427654,_0x4c3ac0){const _0x179a62=function(_0x292cd2){while(--_0x292cd2){_0x427654['push'](_0x427654['shift']());}};_0x179a62(++_0x4c3ac0);}(a984_0x4c3a,0xf2));const a984_0x179a=function(_0x427654,_0x4c3ac0){_0x427654=_0x427654-0x0;let _0x179a62=a984_0x4c3a[_0x427654];return _0x179a62;};const _0x254408=a984_0x179a;'use strict';const util=require(_0x254408('0x2')),logger=require(_0x254408('0x18'))(_0x254408('0x3')),Sequence=function(){};Sequence['prototype'][_0x254408('0x10')]=function(_0x292cd2){const _0x182773=_0x254408;this[_0x182773('0xc')]=this[_0x182773('0xc')]?this[_0x182773('0xc')][_0x182773('0x11')](_0x292cd2):_0x292cd2();};const Migration=function(_0x19731e){const _0x506975=_0x254408;this[_0x506975('0x15')]=_0x19731e,this[_0x506975('0x1b')]=new Sequence();};Migration[_0x254408('0x17')]['changeColumn']=function(_0x2ba9aa,_0x5665d5,_0x31b3b8){const _0x207fdf=_0x254408,_0x498298=this;this['sequence'][_0x207fdf('0x10')](function(){const _0x2b83f5=_0x207fdf;return _0x498298[_0x2b83f5('0x15')][_0x2b83f5('0x16')](_0x2ba9aa,_0x5665d5,_0x31b3b8)['then'](function(){const _0x3a4f30=_0x2b83f5;logger[_0x3a4f30('0x1d')](_0x3a4f30('0x6'),_0x5665d5,_0x2ba9aa);})[_0x2b83f5('0x19')](function(_0x628d2d){logger['info'](JSON['stringify'](_0x628d2d));});});},Migration[_0x254408('0x17')][_0x254408('0xe')]=function(_0x572bfd,_0x5ca8ae,_0xde27c4){const _0x2c3d1f=_0x254408,_0x367798=this;this[_0x2c3d1f('0x1b')]['enqueue'](function(){const _0x4eb94e=_0x2c3d1f;return _0x367798['queryInterface'][_0x4eb94e('0xe')](_0x572bfd,_0x5ca8ae,_0xde27c4)[_0x4eb94e('0xf')](function(){const _0x5c1b56=_0x4eb94e;logger[_0x5c1b56('0x1d')](_0x5c1b56('0x1e'),_0x5ca8ae,_0x572bfd);})['catch'](function(_0x2dfb4e){logger['info'](JSON['stringify'](_0x2dfb4e));});});},Migration[_0x254408('0x17')]['dropTable']=function(_0xeb1df4){const _0x5e1890=_0x254408,_0x57b3d2=this;this[_0x5e1890('0x1b')]['enqueue'](function(){const _0x5146e3=_0x5e1890;return _0x57b3d2[_0x5146e3('0x15')][_0x5146e3('0x12')](_0xeb1df4,{'force':!![]})[_0x5146e3('0xf')](function(){const _0x251b03=_0x5146e3;logger[_0x251b03('0x1d')]('table\x20dropped\x20%s',_0xeb1df4);})[_0x5146e3('0x19')](function(_0x3a8c55){const _0x312f3d=_0x5146e3;logger[_0x312f3d('0x1d')](JSON[_0x312f3d('0x13')](_0x3a8c55));});});},Migration[_0x254408('0x17')]['addIndex']=function(_0x8fb560,_0x5096a7,_0x1622ce){const _0x4e7c5a=_0x254408,_0x4d9a3e=this;this[_0x4e7c5a('0x1b')][_0x4e7c5a('0x10')](function(){const _0x21b020=_0x4e7c5a;return _0x4d9a3e[_0x21b020('0x15')][_0x21b020('0x4')](_0x8fb560,_0x5096a7,{'indexName':_0x1622ce})[_0x21b020('0xf')](function(){const _0x1eef63=_0x21b020;logger[_0x1eef63('0x1d')](_0x1eef63('0x9'),_0x8fb560,_0x5096a7[_0x1eef63('0xb')](','),_0x1622ce);})[_0x21b020('0x19')](function(_0x1b7101){const _0x2a0bc8=_0x21b020;logger[_0x2a0bc8('0x1d')](JSON[_0x2a0bc8('0x13')](_0x1b7101));});});},Migration[_0x254408('0x17')]['removeIndex']=function(_0x484589,_0x36951b){const _0x14bb0c=_0x254408,_0x2f4e87=this;this[_0x14bb0c('0x1b')][_0x14bb0c('0x10')](function(){const _0x2b433f=_0x14bb0c;return _0x2f4e87[_0x2b433f('0x15')][_0x2b433f('0x14')](_0x484589,_0x36951b)['then'](function(){const _0x3a47ba=_0x2b433f;logger[_0x3a47ba('0x1d')](_0x3a47ba('0x8'),_0x484589,_0x36951b);})[_0x2b433f('0x19')](function(_0x2ee593){const _0x79ead=_0x2b433f;logger[_0x79ead('0x1d')](JSON[_0x79ead('0x13')](_0x2ee593));});});},Migration[_0x254408('0x17')]['query']=function(_0x21650e){const _0x39a522=_0x254408,_0xc29551=this;this[_0x39a522('0x1b')][_0x39a522('0x10')](function(){const _0x389ab1=_0x39a522;return _0xc29551[_0x389ab1('0x15')]['sequelize'][_0x389ab1('0xd')](_0x21650e)[_0x389ab1('0xf')](function(){const _0x312e9d=_0x389ab1;logger['info'](_0x312e9d('0x1c'),_0x21650e);})[_0x389ab1('0x19')](function(_0x4d40a8){const _0x5b0728=_0x389ab1;logger['info'](JSON[_0x5b0728('0x13')](_0x4d40a8));});});},Migration[_0x254408('0x17')][_0x254408('0x5')]=function(_0x223ac3,_0xa117f5){const _0x28d43a=_0x254408,_0x27a0a1=this;this[_0x28d43a('0x1b')][_0x28d43a('0x10')](function(){const _0x260a0a=_0x28d43a;return _0x27a0a1[_0x260a0a('0x15')][_0x260a0a('0x5')](_0x223ac3,_0xa117f5)['then'](function(){const _0x35abf2=_0x260a0a;logger[_0x35abf2('0x1d')](_0x35abf2('0xa'),_0xa117f5,_0x223ac3);})['catch'](function(_0x585bcf){logger['info'](util['inspect'](_0x585bcf,{'showHidden':![],'depth':null}));});});},Migration[_0x254408('0x17')][_0x254408('0x1a')]=function(_0x267fa7,_0x40dfab,_0x2fd63b){const _0xa21fd5=_0x254408,_0xe53c85=this;this[_0xa21fd5('0x1b')][_0xa21fd5('0x10')](function(){const _0x14da76=_0xa21fd5;return _0xe53c85[_0x14da76('0x15')][_0x14da76('0x1a')](_0x267fa7,_0x40dfab,_0x2fd63b)[_0x14da76('0xf')](function(){const _0xb39785=_0x14da76;logger[_0xb39785('0x1d')](_0xb39785('0x7'),_0x40dfab,_0x2fd63b,_0x267fa7);})[_0x14da76('0x19')](function(_0x4a5aec){const _0x38d2a3=_0x14da76;logger[_0x38d2a3('0x1d')](util[_0x38d2a3('0x1')](_0x4a5aec,{'showHidden':![],'depth':null}));});});},Migration[_0x254408('0x17')]['final']=function(_0x446320){const _0x4f02d6=_0x254408;this[_0x4f02d6('0x1b')]['enqueue'](function(){return _0x446320();});},module['exports']={'up':function(_0xd8e788){return new Promise(function(_0x3330f6){const _0x3ccff3=a984_0x179a,_0x5d8d62=new Migration(_0xd8e788);_0x5d8d62[_0x3ccff3('0x0')](_0x3330f6);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.93.js b/server/migrations/2.3.93.js index 903f085..5501ce4 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a985_0x24ab=['finally','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','util','queryInterface','dropTable','catch','addColumn','addIndex','final','sequence','info','changeColumn','inspect','stringify','removeIndex\x20%s\x20%s','exports','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','addIndex\x20%s\x20%s\x20%s','tail','removeIndex','query','query\x20%s','removeColumn','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','then','renameColumn','prototype'];(function(_0x14d245,_0x24abcb){const _0xfaa72f=function(_0x498bef){while(--_0x498bef){_0x14d245['push'](_0x14d245['shift']());}};_0xfaa72f(++_0x24abcb);}(a985_0x24ab,0x1d3));const a985_0xfaa7=function(_0x14d245,_0x24abcb){_0x14d245=_0x14d245-0x0;let _0xfaa72f=a985_0x24ab[_0x14d245];return _0xfaa72f;};const _0x279b5c=a985_0xfaa7;'use strict';const util=require(_0x279b5c('0x10')),logger=require(_0x279b5c('0x7'))(_0x279b5c('0x0')),Sequence=function(){};Sequence[_0x279b5c('0xc')][_0x279b5c('0x9')]=function(_0x498bef){const _0x44ce9a=_0x279b5c;this['tail']=this[_0x44ce9a('0x2')]?this[_0x44ce9a('0x2')][_0x44ce9a('0xd')](_0x498bef):_0x498bef();};const Migration=function(_0x4736fb){const _0x5e1ef0=_0x279b5c;this['queryInterface']=_0x4736fb,this[_0x5e1ef0('0x17')]=new Sequence();};Migration[_0x279b5c('0xc')][_0x279b5c('0x19')]=function(_0x3e5b2b,_0x3e7108,_0x537d12){const _0x3b636b=_0x279b5c,_0x97e9b3=this;this['sequence'][_0x3b636b('0x9')](function(){const _0xe9a3a0=_0x3b636b;return _0x97e9b3[_0xe9a3a0('0x11')][_0xe9a3a0('0x19')](_0x3e5b2b,_0x3e7108,_0x537d12)['then'](function(){const _0x24dfa0=_0xe9a3a0;logger[_0x24dfa0('0x18')](_0x24dfa0('0x8'),_0x3e7108,_0x3e5b2b);})[_0xe9a3a0('0x13')](function(_0x438dfc){const _0x2c6264=_0xe9a3a0;logger[_0x2c6264('0x18')](JSON[_0x2c6264('0x1b')](_0x438dfc));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x14')]=function(_0x409e69,_0x35d4ab,_0x36ec7e){const _0x520d3e=_0x279b5c,_0x4ab4ab=this;this['sequence'][_0x520d3e('0x9')](function(){const _0x98fd49=_0x520d3e;return _0x4ab4ab[_0x98fd49('0x11')][_0x98fd49('0x14')](_0x409e69,_0x35d4ab,_0x36ec7e)[_0x98fd49('0xa')](function(){const _0x120032=_0x98fd49;logger['info'](_0x120032('0xe'),_0x35d4ab,_0x409e69);})[_0x98fd49('0x13')](function(_0x3e899b){const _0x326695=_0x98fd49;logger['info'](JSON[_0x326695('0x1b')](_0x3e899b));});});},Migration[_0x279b5c('0xc')]['dropTable']=function(_0x5ccaca){const _0x23766e=_0x279b5c,_0x26931d=this;this[_0x23766e('0x17')][_0x23766e('0x9')](function(){const _0x46cb64=_0x23766e;return _0x26931d[_0x46cb64('0x11')][_0x46cb64('0x12')](_0x5ccaca,{'force':!![]})[_0x46cb64('0xa')](function(){const _0xfe9ec3=_0x46cb64;logger['info'](_0xfe9ec3('0x1e'),_0x5ccaca);})[_0x46cb64('0x13')](function(_0x305c59){const _0x3b638d=_0x46cb64;logger[_0x3b638d('0x18')](JSON[_0x3b638d('0x1b')](_0x305c59));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x15')]=function(_0x2be06e,_0xd1fa,_0x2eb02b){const _0x11b8a6=_0x279b5c,_0x4f54d9=this;this[_0x11b8a6('0x17')][_0x11b8a6('0x9')](function(){const _0x38b391=_0x11b8a6;return _0x4f54d9['queryInterface']['addIndex'](_0x2be06e,_0xd1fa,{'indexName':_0x2eb02b})[_0x38b391('0xa')](function(){const _0x16d243=_0x38b391;logger[_0x16d243('0x18')](_0x16d243('0x1'),_0x2be06e,_0xd1fa['join'](','),_0x2eb02b);})[_0x38b391('0x13')](function(_0x68a039){const _0x33a992=_0x38b391;logger[_0x33a992('0x18')](JSON['stringify'](_0x68a039));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x3')]=function(_0x1def74,_0x5af242){const _0x5a4121=_0x279b5c,_0x527d11=this;this['sequence'][_0x5a4121('0x9')](function(){const _0x3caf16=_0x5a4121;return _0x527d11[_0x3caf16('0x11')][_0x3caf16('0x3')](_0x1def74,_0x5af242)[_0x3caf16('0xa')](function(){const _0x66d60c=_0x3caf16;logger[_0x66d60c('0x18')](_0x66d60c('0x1c'),_0x1def74,_0x5af242);})[_0x3caf16('0x13')](function(_0x111903){logger['info'](JSON['stringify'](_0x111903));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x4')]=function(_0xfc449e){const _0x3988ce=_0x279b5c,_0x1cd969=this;this[_0x3988ce('0x17')][_0x3988ce('0x9')](function(){const _0x3cfcff=_0x3988ce;return _0x1cd969[_0x3cfcff('0x11')]['sequelize'][_0x3cfcff('0x4')](_0xfc449e)[_0x3cfcff('0xa')](function(){const _0x4a64e8=_0x3cfcff;logger['info'](_0x4a64e8('0x5'),_0xfc449e);})['catch'](function(_0x30ab8a){const _0x82b2f3=_0x3cfcff;logger['info'](JSON[_0x82b2f3('0x1b')](_0x30ab8a));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0x6')]=function(_0x33546e,_0x186b64){const _0x4b2273=_0x279b5c,_0x11e1d6=this;this['sequence'][_0x4b2273('0x9')](function(){const _0x576b47=_0x4b2273;return _0x11e1d6[_0x576b47('0x11')][_0x576b47('0x6')](_0x33546e,_0x186b64)[_0x576b47('0xa')](function(){const _0x3a4898=_0x576b47;logger[_0x3a4898('0x18')](_0x3a4898('0xf'),_0x186b64,_0x33546e);})[_0x576b47('0x13')](function(_0x8e11d8){const _0x509160=_0x576b47;logger[_0x509160('0x18')](util[_0x509160('0x1a')](_0x8e11d8,{'showHidden':![],'depth':null}));});});},Migration[_0x279b5c('0xc')][_0x279b5c('0xb')]=function(_0x5f21c3,_0x51dd61,_0x11a9c7){const _0x1b3ce8=this;this['sequence']['enqueue'](function(){const _0x587e63=a985_0xfaa7;return _0x1b3ce8['queryInterface'][_0x587e63('0xb')](_0x5f21c3,_0x51dd61,_0x11a9c7)[_0x587e63('0xa')](function(){const _0x5957b8=_0x587e63;logger['info'](_0x5957b8('0x1f'),_0x51dd61,_0x11a9c7,_0x5f21c3);})[_0x587e63('0x13')](function(_0x5976bd){const _0x32bbb1=_0x587e63;logger[_0x32bbb1('0x18')](util[_0x32bbb1('0x1a')](_0x5976bd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x279b5c('0x16')]=function(_0x20f1e9){const _0x4f86db=_0x279b5c;this[_0x4f86db('0x17')][_0x4f86db('0x9')](function(){return _0x20f1e9();});},module[_0x279b5c('0x1d')]={'up':function(_0x356883){return new Promise(function(_0x324071){const _0x57717c=a985_0xfaa7,_0x551ce8=new Migration(_0x356883);_0x551ce8[_0x57717c('0x16')](_0x324071);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.94.js b/server/migrations/2.3.94.js index 8864b16..d9a448c 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a986_0x2666=['join','queryInterface','dropTable','sequence','catch','info','sequelize','inspect','stringify','Removed\x20column\x20%s\x20from\x20%s','tail','changeColumn','migration','removeIndex','final','../config/logger','query','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','addColumn','renameColumn','prototype','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','finally','then','enqueue','addIndex','query\x20%s'];(function(_0x5e4bf9,_0x2666c0){const _0x2480ac=function(_0x4a366d){while(--_0x4a366d){_0x5e4bf9['push'](_0x5e4bf9['shift']());}};_0x2480ac(++_0x2666c0);}(a986_0x2666,0x15a));const a986_0x2480=function(_0x5e4bf9,_0x2666c0){_0x5e4bf9=_0x5e4bf9-0x0;let _0x2480ac=a986_0x2666[_0x5e4bf9];return _0x2480ac;};const _0xde2641=a986_0x2480;'use strict';const util=require('util'),logger=require(_0xde2641('0x15'))(_0xde2641('0x12')),Sequence=function(){};Sequence[_0xde2641('0x1b')][_0xde2641('0x3')]=function(_0x4a366d){const _0x5b1583=_0xde2641;this[_0x5b1583('0x10')]=this[_0x5b1583('0x10')]?this[_0x5b1583('0x10')][_0x5b1583('0x1')](_0x4a366d):_0x4a366d();};const Migration=function(_0x4419ed){const _0xc11e74=_0xde2641;this[_0xc11e74('0x7')]=_0x4419ed,this['sequence']=new Sequence();};Migration[_0xde2641('0x1b')]['changeColumn']=function(_0x2234f8,_0xa3aef,_0x5e5216){const _0x567e24=_0xde2641,_0x38478f=this;this[_0x567e24('0x9')][_0x567e24('0x3')](function(){const _0x3e3fb1=_0x567e24;return _0x38478f[_0x3e3fb1('0x7')][_0x3e3fb1('0x11')](_0x2234f8,_0xa3aef,_0x5e5216)[_0x3e3fb1('0x2')](function(){const _0x466632=_0x3e3fb1;logger[_0x466632('0xb')](_0x466632('0x1d'),_0xa3aef,_0x2234f8);})[_0x3e3fb1('0xa')](function(_0x3ffd33){const _0x167386=_0x3e3fb1;logger['info'](JSON[_0x167386('0xe')](_0x3ffd33));});});},Migration[_0xde2641('0x1b')][_0xde2641('0x19')]=function(_0x56aad9,_0x449611,_0x5a8f40){const _0x578a8c=_0xde2641,_0x74d993=this;this['sequence'][_0x578a8c('0x3')](function(){const _0x222699=_0x578a8c;return _0x74d993['queryInterface'][_0x222699('0x19')](_0x56aad9,_0x449611,_0x5a8f40)[_0x222699('0x2')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x449611,_0x56aad9);})[_0x222699('0xa')](function(_0x15154a){const _0x3eaf89=_0x222699;logger[_0x3eaf89('0xb')](JSON[_0x3eaf89('0xe')](_0x15154a));});});},Migration[_0xde2641('0x1b')][_0xde2641('0x8')]=function(_0x42475f){const _0x43d2ec=_0xde2641,_0x406940=this;this[_0x43d2ec('0x9')]['enqueue'](function(){const _0x50b920=_0x43d2ec;return _0x406940['queryInterface'][_0x50b920('0x8')](_0x42475f,{'force':!![]})[_0x50b920('0x2')](function(){const _0x1fdf5a=_0x50b920;logger[_0x1fdf5a('0xb')](_0x1fdf5a('0x18'),_0x42475f);})[_0x50b920('0xa')](function(_0x4ad3a2){logger['info'](JSON['stringify'](_0x4ad3a2));});});},Migration['prototype'][_0xde2641('0x4')]=function(_0x112f20,_0x4a3539,_0x4e8b80){const _0x5f36cf=_0xde2641,_0x344407=this;this['sequence'][_0x5f36cf('0x3')](function(){const _0x4054f7=_0x5f36cf;return _0x344407[_0x4054f7('0x7')]['addIndex'](_0x112f20,_0x4a3539,{'indexName':_0x4e8b80})[_0x4054f7('0x2')](function(){const _0x33e124=_0x4054f7;logger['info'](_0x33e124('0x0'),_0x112f20,_0x4a3539[_0x33e124('0x6')](','),_0x4e8b80);})[_0x4054f7('0xa')](function(_0x49b10a){const _0x1526af=_0x4054f7;logger[_0x1526af('0xb')](JSON['stringify'](_0x49b10a));});});},Migration['prototype'][_0xde2641('0x13')]=function(_0x943c5a,_0x4f378c){const _0x32950a=_0xde2641,_0x5c2e2b=this;this['sequence'][_0x32950a('0x3')](function(){const _0x22bdea=_0x32950a;return _0x5c2e2b['queryInterface'][_0x22bdea('0x13')](_0x943c5a,_0x4f378c)['then'](function(){const _0x223535=_0x22bdea;logger[_0x223535('0xb')](_0x223535('0x17'),_0x943c5a,_0x4f378c);})[_0x22bdea('0xa')](function(_0x1dda8f){const _0x59410e=_0x22bdea;logger['info'](JSON[_0x59410e('0xe')](_0x1dda8f));});});},Migration[_0xde2641('0x1b')][_0xde2641('0x16')]=function(_0x1e429f){const _0x3e7810=_0xde2641,_0x437248=this;this[_0x3e7810('0x9')][_0x3e7810('0x3')](function(){const _0x587aa8=_0x3e7810;return _0x437248[_0x587aa8('0x7')][_0x587aa8('0xc')][_0x587aa8('0x16')](_0x1e429f)[_0x587aa8('0x2')](function(){const _0x9942e2=_0x587aa8;logger[_0x9942e2('0xb')](_0x9942e2('0x5'),_0x1e429f);})[_0x587aa8('0xa')](function(_0x407326){const _0x1736ca=_0x587aa8;logger[_0x1736ca('0xb')](JSON[_0x1736ca('0xe')](_0x407326));});});},Migration[_0xde2641('0x1b')]['removeColumn']=function(_0x320811,_0x5baf8a){const _0x384e2a=_0xde2641,_0x4c4183=this;this[_0x384e2a('0x9')][_0x384e2a('0x3')](function(){const _0x149da6=_0x384e2a;return _0x4c4183['queryInterface'][_0x149da6('0x1c')](_0x320811,_0x5baf8a)[_0x149da6('0x2')](function(){const _0x36be6c=_0x149da6;logger[_0x36be6c('0xb')](_0x36be6c('0xf'),_0x5baf8a,_0x320811);})[_0x149da6('0xa')](function(_0x38e1a4){const _0x20a72a=_0x149da6;logger['info'](util[_0x20a72a('0xd')](_0x38e1a4,{'showHidden':![],'depth':null}));});});},Migration[_0xde2641('0x1b')][_0xde2641('0x1a')]=function(_0x14a083,_0x2a1214,_0x4286de){const _0x3ec1e0=_0xde2641,_0x541f92=this;this[_0x3ec1e0('0x9')]['enqueue'](function(){const _0x453396=_0x3ec1e0;return _0x541f92[_0x453396('0x7')]['renameColumn'](_0x14a083,_0x2a1214,_0x4286de)['then'](function(){const _0x4a2c14=_0x453396;logger[_0x4a2c14('0xb')](_0x4a2c14('0x1f'),_0x2a1214,_0x4286de,_0x14a083);})[_0x453396('0xa')](function(_0x3e401d){const _0x36a12e=_0x453396;logger[_0x36a12e('0xb')](util[_0x36a12e('0xd')](_0x3e401d,{'showHidden':![],'depth':null}));});});},Migration[_0xde2641('0x1b')][_0xde2641('0x14')]=function(_0x2d37f9){const _0x2303a5=_0xde2641;this[_0x2303a5('0x9')][_0x2303a5('0x3')](function(){return _0x2d37f9();});},module[_0xde2641('0x1e')]={'up':function(_0x1d67c8){return new Promise(function(_0x2ff314){const _0x3d1f86=a986_0x2480,_0x223a42=new Migration(_0x1d67c8);_0x223a42[_0x3d1f86('0x14')](_0x2ff314);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.95.js b/server/migrations/2.3.95.js index 16c6f2b..ee7ff5f 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a987_0x49c1=['migration','Added\x20column\x20%s\x20to\x20%s','changeColumn','queryInterface','addColumn','Removed\x20column\x20%s\x20from\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','sequelize','table\x20dropped\x20%s','final','sequence','removeColumn','util','info','addIndex','query','catch','addIndex\x20%s\x20%s\x20%s','enqueue','exports','dropTable','tail','stringify','renameColumn','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','inspect','../config/logger','finally'];(function(_0x2919a5,_0x49c1b3){const _0x1eb6fe=function(_0x2dcf5f){while(--_0x2dcf5f){_0x2919a5['push'](_0x2919a5['shift']());}};_0x1eb6fe(++_0x49c1b3);}(a987_0x49c1,0x1b9));const a987_0x1eb6=function(_0x2919a5,_0x49c1b3){_0x2919a5=_0x2919a5-0x0;let _0x1eb6fe=a987_0x49c1[_0x2919a5];return _0x1eb6fe;};const _0x5ad109=a987_0x1eb6;'use strict';const util=require(_0x5ad109('0x15')),logger=require(_0x5ad109('0x5'))(_0x5ad109('0x7')),Sequence=function(){};Sequence['prototype'][_0x5ad109('0x1b')]=function(_0x2dcf5f){const _0x40514a=_0x5ad109;this['tail']=this[_0x40514a('0x1e')]?this['tail'][_0x40514a('0x6')](_0x2dcf5f):_0x2dcf5f();};const Migration=function(_0x1affa4){const _0x159eb4=_0x5ad109;this[_0x159eb4('0xa')]=_0x1affa4,this[_0x159eb4('0x13')]=new Sequence();};Migration[_0x5ad109('0x3')][_0x5ad109('0x9')]=function(_0x5ca06d,_0xf64b0e,_0x4d0606){const _0x49b3a7=_0x5ad109,_0x133584=this;this[_0x49b3a7('0x13')][_0x49b3a7('0x1b')](function(){const _0x371ed5=_0x49b3a7;return _0x133584[_0x371ed5('0xa')]['changeColumn'](_0x5ca06d,_0xf64b0e,_0x4d0606)['then'](function(){const _0x2d2302=_0x371ed5;logger[_0x2d2302('0x16')](_0x2d2302('0x2'),_0xf64b0e,_0x5ca06d);})['catch'](function(_0x20ad3c){const _0x2eedf6=_0x371ed5;logger[_0x2eedf6('0x16')](JSON['stringify'](_0x20ad3c));});});},Migration[_0x5ad109('0x3')]['addColumn']=function(_0x78834a,_0x11275e,_0x20cc67){const _0x25e1f7=_0x5ad109,_0xc6c0a=this;this['sequence'][_0x25e1f7('0x1b')](function(){const _0xb9570e=_0x25e1f7;return _0xc6c0a[_0xb9570e('0xa')][_0xb9570e('0xb')](_0x78834a,_0x11275e,_0x20cc67)[_0xb9570e('0xd')](function(){const _0x35dd05=_0xb9570e;logger[_0x35dd05('0x16')](_0x35dd05('0x8'),_0x11275e,_0x78834a);})[_0xb9570e('0x19')](function(_0x331d1e){const _0x12d219=_0xb9570e;logger[_0x12d219('0x16')](JSON[_0x12d219('0x1f')](_0x331d1e));});});},Migration[_0x5ad109('0x3')][_0x5ad109('0x1d')]=function(_0x545e20){const _0x3334be=_0x5ad109,_0x102a8d=this;this[_0x3334be('0x13')][_0x3334be('0x1b')](function(){const _0x1a767e=_0x3334be;return _0x102a8d['queryInterface'][_0x1a767e('0x1d')](_0x545e20,{'force':!![]})[_0x1a767e('0xd')](function(){const _0x2c8c78=_0x1a767e;logger[_0x2c8c78('0x16')](_0x2c8c78('0x11'),_0x545e20);})['catch'](function(_0x248b76){logger['info'](JSON['stringify'](_0x248b76));});});},Migration[_0x5ad109('0x3')][_0x5ad109('0x17')]=function(_0x389cc4,_0x16cc4f,_0x369a01){const _0x4e2a45=this;this['sequence']['enqueue'](function(){const _0x413a2b=a987_0x1eb6;return _0x4e2a45[_0x413a2b('0xa')][_0x413a2b('0x17')](_0x389cc4,_0x16cc4f,{'indexName':_0x369a01})[_0x413a2b('0xd')](function(){const _0x42b82b=_0x413a2b;logger[_0x42b82b('0x16')](_0x42b82b('0x1a'),_0x389cc4,_0x16cc4f['join'](','),_0x369a01);})[_0x413a2b('0x19')](function(_0x7333f3){const _0x25dfbd=_0x413a2b;logger[_0x25dfbd('0x16')](JSON['stringify'](_0x7333f3));});});},Migration[_0x5ad109('0x3')]['removeIndex']=function(_0x3d9f1b,_0x39942d){const _0x48b368=_0x5ad109,_0xf99fba=this;this[_0x48b368('0x13')][_0x48b368('0x1b')](function(){const _0x1da4c9=_0x48b368;return _0xf99fba[_0x1da4c9('0xa')][_0x1da4c9('0xf')](_0x3d9f1b,_0x39942d)[_0x1da4c9('0xd')](function(){const _0x23a6e1=_0x1da4c9;logger[_0x23a6e1('0x16')](_0x23a6e1('0x1'),_0x3d9f1b,_0x39942d);})[_0x1da4c9('0x19')](function(_0x39edc1){const _0x52b7a0=_0x1da4c9;logger['info'](JSON[_0x52b7a0('0x1f')](_0x39edc1));});});},Migration[_0x5ad109('0x3')][_0x5ad109('0x18')]=function(_0x2e1fc5){const _0x262912=this;this['sequence']['enqueue'](function(){const _0x600138=a987_0x1eb6;return _0x262912[_0x600138('0xa')][_0x600138('0x10')][_0x600138('0x18')](_0x2e1fc5)['then'](function(){const _0x557a1c=_0x600138;logger[_0x557a1c('0x16')]('query\x20%s',_0x2e1fc5);})[_0x600138('0x19')](function(_0x52e4fc){const _0x3b1a18=_0x600138;logger[_0x3b1a18('0x16')](JSON[_0x3b1a18('0x1f')](_0x52e4fc));});});},Migration['prototype'][_0x5ad109('0x14')]=function(_0x59203a,_0x4b2b05){const _0x5649f3=_0x5ad109,_0x5cd8eb=this;this[_0x5649f3('0x13')][_0x5649f3('0x1b')](function(){const _0x13f29f=_0x5649f3;return _0x5cd8eb[_0x13f29f('0xa')][_0x13f29f('0x14')](_0x59203a,_0x4b2b05)['then'](function(){const _0x17e810=_0x13f29f;logger[_0x17e810('0x16')](_0x17e810('0xc'),_0x4b2b05,_0x59203a);})[_0x13f29f('0x19')](function(_0x33edf0){const _0x3ef6ea=_0x13f29f;logger['info'](util[_0x3ef6ea('0x4')](_0x33edf0,{'showHidden':![],'depth':null}));});});},Migration[_0x5ad109('0x3')]['renameColumn']=function(_0x5e8cb4,_0x4f9a72,_0x153cd2){const _0x141af6=_0x5ad109,_0x751541=this;this[_0x141af6('0x13')][_0x141af6('0x1b')](function(){const _0x14d5ab=_0x141af6;return _0x751541[_0x14d5ab('0xa')][_0x14d5ab('0x0')](_0x5e8cb4,_0x4f9a72,_0x153cd2)[_0x14d5ab('0xd')](function(){const _0x3821f1=_0x14d5ab;logger[_0x3821f1('0x16')](_0x3821f1('0xe'),_0x4f9a72,_0x153cd2,_0x5e8cb4);})['catch'](function(_0x29bf7d){const _0x3cbc9f=_0x14d5ab;logger[_0x3cbc9f('0x16')](util[_0x3cbc9f('0x4')](_0x29bf7d,{'showHidden':![],'depth':null}));});});},Migration[_0x5ad109('0x3')][_0x5ad109('0x12')]=function(_0xfcd3e1){const _0x249414=_0x5ad109;this['sequence'][_0x249414('0x1b')](function(){return _0xfcd3e1();});},module[_0x5ad109('0x1c')]={'up':function(_0xc12b6f){return new Promise(function(_0x10c329){const _0x179f20=a987_0x1eb6,_0x463952=new Migration(_0xc12b6f);_0x463952[_0x179f20('0x12')](_0x10c329);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.96.js b/server/migrations/2.3.96.js index c5eb803..b358943 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a988_0x5e4e=['removeIndex\x20%s\x20%s','../config/logger','changeColumn','stringify','query','addColumn','defaultScreenRecordingPath','migration','removeIndex','query\x20%s','catch','inspect','addIndex','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','renameColumn','prototype','util','addIndex\x20%s\x20%s\x20%s','dropTable','enqueue','exports','Removed\x20column\x20%s\x20from\x20%s','sequelize','removeColumn','queryInterface','sequence','finally','tail','info','settings','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x2573c8,_0x5e4eb7){const _0x573adc=function(_0x51d5cd){while(--_0x51d5cd){_0x2573c8['push'](_0x2573c8['shift']());}};_0x573adc(++_0x5e4eb7);}(a988_0x5e4e,0x6a));const a988_0x573a=function(_0x2573c8,_0x5e4eb7){_0x2573c8=_0x2573c8-0x0;let _0x573adc=a988_0x5e4e[_0x2573c8];return _0x573adc;};const _0x23ef5a=a988_0x573a;'use strict';const util=require(_0x23ef5a('0xb')),logger=require(_0x23ef5a('0x1b'))(_0x23ef5a('0x0')),Sequence=function(){};Sequence['prototype'][_0x23ef5a('0xe')]=function(_0x51d5cd){const _0x19db04=_0x23ef5a;this[_0x19db04('0x16')]=this[_0x19db04('0x16')]?this[_0x19db04('0x16')][_0x19db04('0x15')](_0x51d5cd):_0x51d5cd();};const Migration=function(_0x1cac80){const _0x7e072f=_0x23ef5a;this[_0x7e072f('0x13')]=_0x1cac80,this[_0x7e072f('0x14')]=new Sequence();};Migration[_0x23ef5a('0xa')][_0x23ef5a('0x1c')]=function(_0xbe5004,_0x41c62e,_0x470b41){const _0x4ee564=_0x23ef5a,_0xd710de=this;this[_0x4ee564('0x14')][_0x4ee564('0xe')](function(){const _0x3f0030=_0x4ee564;return _0xd710de[_0x3f0030('0x13')][_0x3f0030('0x1c')](_0xbe5004,_0x41c62e,_0x470b41)[_0x3f0030('0x6')](function(){const _0x20ef4e=_0x3f0030;logger[_0x20ef4e('0x17')](_0x20ef4e('0x19'),_0x41c62e,_0xbe5004);})['catch'](function(_0x337032){const _0x4d92bc=_0x3f0030;logger['info'](JSON[_0x4d92bc('0x1d')](_0x337032));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x1f')]=function(_0x4abc11,_0x179f65,_0x30870d){const _0x36cd53=_0x23ef5a,_0x3de159=this;this[_0x36cd53('0x14')][_0x36cd53('0xe')](function(){const _0x33449d=_0x36cd53;return _0x3de159['queryInterface'][_0x33449d('0x1f')](_0x4abc11,_0x179f65,_0x30870d)[_0x33449d('0x6')](function(){const _0x35128f=_0x33449d;logger[_0x35128f('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x179f65,_0x4abc11);})[_0x33449d('0x3')](function(_0x3d3d4a){const _0x1edc66=_0x33449d;logger[_0x1edc66('0x17')](JSON['stringify'](_0x3d3d4a));});});},Migration[_0x23ef5a('0xa')]['dropTable']=function(_0x386a66){const _0x4dda6d=_0x23ef5a,_0x277a00=this;this[_0x4dda6d('0x14')]['enqueue'](function(){const _0x51b1f0=_0x4dda6d;return _0x277a00[_0x51b1f0('0x13')][_0x51b1f0('0xd')](_0x386a66,{'force':!![]})[_0x51b1f0('0x6')](function(){const _0x3703fc=_0x51b1f0;logger[_0x3703fc('0x17')]('table\x20dropped\x20%s',_0x386a66);})[_0x51b1f0('0x3')](function(_0x22b41d){const _0x11c305=_0x51b1f0;logger[_0x11c305('0x17')](JSON[_0x11c305('0x1d')](_0x22b41d));});});},Migration[_0x23ef5a('0xa')]['addIndex']=function(_0x2061a5,_0x78c858,_0x472ee3){const _0x142ad8=_0x23ef5a,_0x5ba8d9=this;this[_0x142ad8('0x14')]['enqueue'](function(){const _0x59d5fb=_0x142ad8;return _0x5ba8d9[_0x59d5fb('0x13')][_0x59d5fb('0x5')](_0x2061a5,_0x78c858,{'indexName':_0x472ee3})[_0x59d5fb('0x6')](function(){const _0x2dd8b3=_0x59d5fb;logger[_0x2dd8b3('0x17')](_0x2dd8b3('0xc'),_0x2061a5,_0x78c858['join'](','),_0x472ee3);})['catch'](function(_0x172d46){const _0x56abfb=_0x59d5fb;logger['info'](JSON[_0x56abfb('0x1d')](_0x172d46));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x1')]=function(_0x234364,_0x5ea974){const _0x1f4014=_0x23ef5a,_0x28d51e=this;this['sequence'][_0x1f4014('0xe')](function(){const _0x339d56=_0x1f4014;return _0x28d51e[_0x339d56('0x13')][_0x339d56('0x1')](_0x234364,_0x5ea974)[_0x339d56('0x6')](function(){const _0x260aa6=_0x339d56;logger[_0x260aa6('0x17')](_0x260aa6('0x1a'),_0x234364,_0x5ea974);})[_0x339d56('0x3')](function(_0x38e846){const _0x5aaf37=_0x339d56;logger[_0x5aaf37('0x17')](JSON['stringify'](_0x38e846));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x1e')]=function(_0xa72a37){const _0x263068=_0x23ef5a,_0x2c29f5=this;this[_0x263068('0x14')][_0x263068('0xe')](function(){const _0x42eea0=_0x263068;return _0x2c29f5[_0x42eea0('0x13')][_0x42eea0('0x11')]['query'](_0xa72a37)[_0x42eea0('0x6')](function(){const _0x24a3ea=_0x42eea0;logger[_0x24a3ea('0x17')](_0x24a3ea('0x2'),_0xa72a37);})['catch'](function(_0x1fde26){const _0x49a9ee=_0x42eea0;logger[_0x49a9ee('0x17')](JSON[_0x49a9ee('0x1d')](_0x1fde26));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x12')]=function(_0x4379e7,_0x445af2){const _0x4b3e2f=_0x23ef5a,_0x3a023c=this;this[_0x4b3e2f('0x14')]['enqueue'](function(){const _0x94e14c=_0x4b3e2f;return _0x3a023c[_0x94e14c('0x13')][_0x94e14c('0x12')](_0x4379e7,_0x445af2)['then'](function(){const _0x522bb6=_0x94e14c;logger[_0x522bb6('0x17')](_0x522bb6('0x10'),_0x445af2,_0x4379e7);})['catch'](function(_0x4d9425){const _0x206f11=_0x94e14c;logger[_0x206f11('0x17')](util[_0x206f11('0x4')](_0x4d9425,{'showHidden':![],'depth':null}));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x9')]=function(_0x1e14a9,_0x5ad771,_0x5e59ce){const _0x4887fb=_0x23ef5a,_0x149886=this;this['sequence'][_0x4887fb('0xe')](function(){const _0x289b40=_0x4887fb;return _0x149886['queryInterface'][_0x289b40('0x9')](_0x1e14a9,_0x5ad771,_0x5e59ce)[_0x289b40('0x6')](function(){const _0x294732=_0x289b40;logger[_0x294732('0x17')](_0x294732('0x7'),_0x5ad771,_0x5e59ce,_0x1e14a9);})[_0x289b40('0x3')](function(_0x3812ce){const _0x19b297=_0x289b40;logger[_0x19b297('0x17')](util[_0x19b297('0x4')](_0x3812ce,{'showHidden':![],'depth':null}));});});},Migration[_0x23ef5a('0xa')][_0x23ef5a('0x8')]=function(_0x304a1c){const _0x213944=_0x23ef5a;this[_0x213944('0x14')][_0x213944('0xe')](function(){return _0x304a1c();});},module[_0x23ef5a('0xf')]={'up':function(_0x48737b,_0x54a75f){return new Promise(function(_0x1f204b){const _0x482a1c=a988_0x573a,_0x2737b3=new Migration(_0x48737b);_0x2737b3[_0x482a1c('0x1f')](_0x482a1c('0x18'),_0x482a1c('0x20'),{'type':_0x54a75f['STRING']}),_0x2737b3[_0x482a1c('0x8')](_0x1f204b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.97.js b/server/migrations/2.3.97.js index 7a0a5ad..57675a8 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a989_0x411b=['addColumn','UNSIGNED','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','removeIndex','query','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','../config/logger','util','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','INTEGER','table\x20dropped\x20%s','final','query\x20%s','dialPredictiveIntervalMaxThreshold','prototype','sequelize','renameColumn','sequence','removeColumn','changeColumn','enqueue','addIndex','voice_queues','info','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','dialPredictiveIntervalMinThreshold','removeIndex\x20%s\x20%s','catch','finally','join','queryInterface','tail','exports','Removed\x20column\x20%s\x20from\x20%s','then','stringify'];(function(_0x334006,_0x411bad){const _0x2964e4=function(_0x56900b){while(--_0x56900b){_0x334006['push'](_0x334006['shift']());}};_0x2964e4(++_0x411bad);}(a989_0x411b,0x1ce));const a989_0x2964=function(_0x334006,_0x411bad){_0x334006=_0x334006-0x0;let _0x2964e4=a989_0x411b[_0x334006];return _0x2964e4;};const _0x503c60=a989_0x2964;'use strict';const util=require(_0x503c60('0x0')),logger=require(_0x503c60('0x28'))(_0x503c60('0x27')),Sequence=function(){};Sequence['prototype'][_0x503c60('0xe')]=function(_0x56900b){const _0xaaebc8=_0x503c60;this[_0xaaebc8('0x19')]=this[_0xaaebc8('0x19')]?this[_0xaaebc8('0x19')][_0xaaebc8('0x16')](_0x56900b):_0x56900b();};const Migration=function(_0x4bf62e){this['queryInterface']=_0x4bf62e,this['sequence']=new Sequence();};Migration[_0x503c60('0x8')][_0x503c60('0xd')]=function(_0x49df08,_0x5929f6,_0x5a51e9){const _0x35ebaf=this;this['sequence']['enqueue'](function(){const _0x57f21f=a989_0x2964;return _0x35ebaf[_0x57f21f('0x18')]['changeColumn'](_0x49df08,_0x5929f6,_0x5a51e9)[_0x57f21f('0x1c')](function(){const _0x5c7391=_0x57f21f;logger[_0x5c7391('0x11')](_0x5c7391('0x26'),_0x5929f6,_0x49df08);})[_0x57f21f('0x15')](function(_0x32a393){const _0x5e2adb=_0x57f21f;logger[_0x5e2adb('0x11')](JSON['stringify'](_0x32a393));});});},Migration[_0x503c60('0x8')][_0x503c60('0x1e')]=function(_0x5047c4,_0xf276eb,_0x2e7dab){const _0x2f4490=_0x503c60,_0x496382=this;this[_0x2f4490('0xb')][_0x2f4490('0xe')](function(){const _0x3c1094=_0x2f4490;return _0x496382[_0x3c1094('0x18')][_0x3c1094('0x1e')](_0x5047c4,_0xf276eb,_0x2e7dab)[_0x3c1094('0x1c')](function(){const _0x5c421f=_0x3c1094;logger[_0x5c421f('0x11')]('Added\x20column\x20%s\x20to\x20%s',_0xf276eb,_0x5047c4);})[_0x3c1094('0x15')](function(_0xb07617){const _0x1d901e=_0x3c1094;logger[_0x1d901e('0x11')](JSON[_0x1d901e('0x1d')](_0xb07617));});});},Migration['prototype']['dropTable']=function(_0x1d3122){const _0x164310=_0x503c60,_0x2b4556=this;this['sequence'][_0x164310('0xe')](function(){const _0x1b47e5=_0x164310;return _0x2b4556[_0x1b47e5('0x18')][_0x1b47e5('0x21')](_0x1d3122,{'force':!![]})[_0x1b47e5('0x1c')](function(){const _0x544e0a=_0x1b47e5;logger[_0x544e0a('0x11')](_0x544e0a('0x4'),_0x1d3122);})[_0x1b47e5('0x15')](function(_0x4b3772){const _0x30c5a2=_0x1b47e5;logger['info'](JSON[_0x30c5a2('0x1d')](_0x4b3772));});});},Migration[_0x503c60('0x8')]['addIndex']=function(_0x1d635c,_0x506ae1,_0x3ddec7){const _0x182563=_0x503c60,_0x122fe0=this;this[_0x182563('0xb')][_0x182563('0xe')](function(){const _0x3df197=_0x182563;return _0x122fe0[_0x3df197('0x18')][_0x3df197('0xf')](_0x1d635c,_0x506ae1,{'indexName':_0x3ddec7})[_0x3df197('0x1c')](function(){const _0x4149de=_0x3df197;logger[_0x4149de('0x11')](_0x4149de('0x1'),_0x1d635c,_0x506ae1[_0x4149de('0x17')](','),_0x3ddec7);})['catch'](function(_0x437959){const _0x1bf384=_0x3df197;logger[_0x1bf384('0x11')](JSON[_0x1bf384('0x1d')](_0x437959));});});},Migration[_0x503c60('0x8')][_0x503c60('0x24')]=function(_0x31d964,_0x45be32){const _0x33aa6b=_0x503c60,_0x46f66b=this;this[_0x33aa6b('0xb')][_0x33aa6b('0xe')](function(){const _0x15c5fe=_0x33aa6b;return _0x46f66b[_0x15c5fe('0x18')]['removeIndex'](_0x31d964,_0x45be32)[_0x15c5fe('0x1c')](function(){const _0x235194=_0x15c5fe;logger[_0x235194('0x11')](_0x235194('0x14'),_0x31d964,_0x45be32);})[_0x15c5fe('0x15')](function(_0x16e369){const _0xe93c6a=_0x15c5fe;logger[_0xe93c6a('0x11')](JSON['stringify'](_0x16e369));});});},Migration['prototype']['query']=function(_0xdb1e14){const _0x2d2412=_0x503c60,_0x30c03f=this;this[_0x2d2412('0xb')][_0x2d2412('0xe')](function(){const _0x43abe1=_0x2d2412;return _0x30c03f[_0x43abe1('0x18')][_0x43abe1('0x9')][_0x43abe1('0x25')](_0xdb1e14)[_0x43abe1('0x1c')](function(){const _0x135b5a=_0x43abe1;logger[_0x135b5a('0x11')](_0x135b5a('0x6'),_0xdb1e14);})['catch'](function(_0x266b03){logger['info'](JSON['stringify'](_0x266b03));});});},Migration[_0x503c60('0x8')]['removeColumn']=function(_0xf49a8c,_0x386552){const _0x112d69=_0x503c60,_0x2e5c7c=this;this[_0x112d69('0xb')]['enqueue'](function(){const _0x5b7500=_0x112d69;return _0x2e5c7c[_0x5b7500('0x18')][_0x5b7500('0xc')](_0xf49a8c,_0x386552)[_0x5b7500('0x1c')](function(){const _0x5e148d=_0x5b7500;logger[_0x5e148d('0x11')](_0x5e148d('0x1b'),_0x386552,_0xf49a8c);})[_0x5b7500('0x15')](function(_0x444808){const _0x5a7300=_0x5b7500;logger['info'](util[_0x5a7300('0x23')](_0x444808,{'showHidden':![],'depth':null}));});});},Migration[_0x503c60('0x8')][_0x503c60('0xa')]=function(_0x70c6f1,_0xa2457d,_0x282173){const _0x1c758d=_0x503c60,_0x327a07=this;this[_0x1c758d('0xb')]['enqueue'](function(){const _0xa66ef=_0x1c758d;return _0x327a07[_0xa66ef('0x18')]['renameColumn'](_0x70c6f1,_0xa2457d,_0x282173)[_0xa66ef('0x1c')](function(){const _0x1bb55d=_0xa66ef;logger[_0x1bb55d('0x11')](_0x1bb55d('0x22'),_0xa2457d,_0x282173,_0x70c6f1);})[_0xa66ef('0x15')](function(_0x4bfc51){const _0x463808=_0xa66ef;logger[_0x463808('0x11')](util[_0x463808('0x23')](_0x4bfc51,{'showHidden':![],'depth':null}));});});},Migration[_0x503c60('0x8')][_0x503c60('0x5')]=function(_0xf6ce3b){const _0x330506=_0x503c60;this['sequence'][_0x330506('0xe')](function(){return _0xf6ce3b();});},module[_0x503c60('0x1a')]={'up':function(_0x8a62fb,_0x179854){return new Promise(function(_0x336a61){const _0x299a50=a989_0x2964,_0x317113=new Migration(_0x8a62fb);_0x317113[_0x299a50('0x1e')](_0x299a50('0x10'),_0x299a50('0x7'),{'type':_0x179854[_0x299a50('0x3')](0x3)[_0x299a50('0x1f')],'defaultValue':0x14}),_0x317113[_0x299a50('0x1e')](_0x299a50('0x10'),_0x299a50('0x13'),{'type':_0x179854['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0xa}),_0x317113[_0x299a50('0x25')](_0x299a50('0x2')),_0x317113[_0x299a50('0x25')]('ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE'),_0x317113[_0x299a50('0x25')](_0x299a50('0x12')),_0x317113[_0x299a50('0x25')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x317113[_0x299a50('0x25')](_0x299a50('0x20')),_0x317113[_0x299a50('0x5')](_0x336a61);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.3.98.js b/server/migrations/2.3.98.js index 1328ee0..3a01ad5 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a990_0x2e90=['renameColumn','addIndex','addColumn','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','final','info','join','tail','sequelize','queryInterface','addIndex\x20%s\x20%s\x20%s','enqueue','query','Removed\x20column\x20%s\x20from\x20%s','dropTable','catch','changeColumn','then','removeIndex','util','query\x20%s','stringify','removeIndex\x20%s\x20%s','removeColumn','prototype','sequence'];(function(_0x3a4302,_0x2e9004){const _0x28f362=function(_0x38ed2e){while(--_0x38ed2e){_0x3a4302['push'](_0x3a4302['shift']());}};_0x28f362(++_0x2e9004);}(a990_0x2e90,0xbc));const a990_0x28f3=function(_0x3a4302,_0x2e9004){_0x3a4302=_0x3a4302-0x0;let _0x28f362=a990_0x2e90[_0x3a4302];return _0x28f362;};const _0x14cc6d=a990_0x28f3;'use strict';const util=require(_0x14cc6d('0x1')),logger=require(_0x14cc6d('0xb'))('migration'),Sequence=function(){};Sequence['prototype'][_0x14cc6d('0x15')]=function(_0x38ed2e){const _0x3138f4=_0x14cc6d;this['tail']=this[_0x3138f4('0x11')]?this[_0x3138f4('0x11')]['finally'](_0x38ed2e):_0x38ed2e();};const Migration=function(_0x4772e5){this['queryInterface']=_0x4772e5,this['sequence']=new Sequence();};Migration[_0x14cc6d('0x6')][_0x14cc6d('0x1a')]=function(_0x33ce8c,_0x5e3dde,_0x570f96){const _0x501a4b=_0x14cc6d,_0x4cc0d3=this;this[_0x501a4b('0x7')]['enqueue'](function(){const _0x3e1f90=_0x501a4b;return _0x4cc0d3['queryInterface'][_0x3e1f90('0x1a')](_0x33ce8c,_0x5e3dde,_0x570f96)[_0x3e1f90('0x1b')](function(){const _0x2d837c=_0x3e1f90;logger[_0x2d837c('0xf')](_0x2d837c('0xc'),_0x5e3dde,_0x33ce8c);})[_0x3e1f90('0x19')](function(_0x294463){const _0x1e452b=_0x3e1f90;logger[_0x1e452b('0xf')](JSON[_0x1e452b('0x3')](_0x294463));});});},Migration[_0x14cc6d('0x6')][_0x14cc6d('0xa')]=function(_0xccc471,_0x25c979,_0x33675d){const _0x22946f=_0x14cc6d,_0x6c8d66=this;this['sequence'][_0x22946f('0x15')](function(){const _0x84b129=_0x22946f;return _0x6c8d66[_0x84b129('0x13')]['addColumn'](_0xccc471,_0x25c979,_0x33675d)[_0x84b129('0x1b')](function(){const _0x40bb77=_0x84b129;logger[_0x40bb77('0xf')]('Added\x20column\x20%s\x20to\x20%s',_0x25c979,_0xccc471);})['catch'](function(_0x688681){const _0x233aca=_0x84b129;logger[_0x233aca('0xf')](JSON[_0x233aca('0x3')](_0x688681));});});},Migration[_0x14cc6d('0x6')]['dropTable']=function(_0x3f3f93){const _0x3ca2ed=_0x14cc6d,_0x459009=this;this['sequence'][_0x3ca2ed('0x15')](function(){const _0x171c57=_0x3ca2ed;return _0x459009[_0x171c57('0x13')][_0x171c57('0x18')](_0x3f3f93,{'force':!![]})['then'](function(){const _0x358eea=_0x171c57;logger[_0x358eea('0xf')](_0x358eea('0xd'),_0x3f3f93);})[_0x171c57('0x19')](function(_0x4ccd0b){const _0x40deb0=_0x171c57;logger[_0x40deb0('0xf')](JSON[_0x40deb0('0x3')](_0x4ccd0b));});});},Migration[_0x14cc6d('0x6')]['addIndex']=function(_0x2b94da,_0x2a7f74,_0x3f8fcd){const _0x43f047=_0x14cc6d,_0x57c3c8=this;this[_0x43f047('0x7')]['enqueue'](function(){const _0x2f84af=_0x43f047;return _0x57c3c8[_0x2f84af('0x13')][_0x2f84af('0x9')](_0x2b94da,_0x2a7f74,{'indexName':_0x3f8fcd})[_0x2f84af('0x1b')](function(){const _0x37fd05=_0x2f84af;logger[_0x37fd05('0xf')](_0x37fd05('0x14'),_0x2b94da,_0x2a7f74[_0x37fd05('0x10')](','),_0x3f8fcd);})[_0x2f84af('0x19')](function(_0x500b57){const _0x451bb2=_0x2f84af;logger[_0x451bb2('0xf')](JSON[_0x451bb2('0x3')](_0x500b57));});});},Migration[_0x14cc6d('0x6')][_0x14cc6d('0x0')]=function(_0x462e48,_0x552b36){const _0x295e20=_0x14cc6d,_0x403731=this;this[_0x295e20('0x7')]['enqueue'](function(){const _0x399b6f=_0x295e20;return _0x403731['queryInterface'][_0x399b6f('0x0')](_0x462e48,_0x552b36)['then'](function(){const _0x5f4597=_0x399b6f;logger[_0x5f4597('0xf')](_0x5f4597('0x4'),_0x462e48,_0x552b36);})[_0x399b6f('0x19')](function(_0x3563d5){const _0x30d3e4=_0x399b6f;logger[_0x30d3e4('0xf')](JSON[_0x30d3e4('0x3')](_0x3563d5));});});},Migration[_0x14cc6d('0x6')]['query']=function(_0x13e227){const _0x34046e=_0x14cc6d,_0x2005db=this;this[_0x34046e('0x7')]['enqueue'](function(){const _0x5dddeb=_0x34046e;return _0x2005db[_0x5dddeb('0x13')][_0x5dddeb('0x12')][_0x5dddeb('0x16')](_0x13e227)[_0x5dddeb('0x1b')](function(){const _0x2352f=_0x5dddeb;logger[_0x2352f('0xf')](_0x2352f('0x2'),_0x13e227);})[_0x5dddeb('0x19')](function(_0x36c16b){const _0x2d972e=_0x5dddeb;logger[_0x2d972e('0xf')](JSON[_0x2d972e('0x3')](_0x36c16b));});});},Migration['prototype'][_0x14cc6d('0x5')]=function(_0x481056,_0x210083){const _0x4cbc49=_0x14cc6d,_0x575f58=this;this[_0x4cbc49('0x7')]['enqueue'](function(){const _0x193c7a=_0x4cbc49;return _0x575f58[_0x193c7a('0x13')][_0x193c7a('0x5')](_0x481056,_0x210083)[_0x193c7a('0x1b')](function(){const _0x542b26=_0x193c7a;logger[_0x542b26('0xf')](_0x542b26('0x17'),_0x210083,_0x481056);})[_0x193c7a('0x19')](function(_0x43748d){logger['info'](util['inspect'](_0x43748d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x14cc6d('0x8')]=function(_0x179e86,_0x372610,_0x1fdcfc){const _0x4837ae=_0x14cc6d,_0x21af3c=this;this[_0x4837ae('0x7')][_0x4837ae('0x15')](function(){const _0x248ec9=_0x4837ae;return _0x21af3c[_0x248ec9('0x13')]['renameColumn'](_0x179e86,_0x372610,_0x1fdcfc)[_0x248ec9('0x1b')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x372610,_0x1fdcfc,_0x179e86);})['catch'](function(_0x1f8f5f){const _0x2f4fd9=_0x248ec9;logger[_0x2f4fd9('0xf')](util['inspect'](_0x1f8f5f,{'showHidden':![],'depth':null}));});});},Migration[_0x14cc6d('0x6')][_0x14cc6d('0xe')]=function(_0x54899e){const _0x471bc6=_0x14cc6d;this[_0x471bc6('0x7')][_0x471bc6('0x15')](function(){return _0x54899e();});},module['exports']={'up':function(_0x556946){return new Promise(function(_0x2464d9){const _0x45e872=a990_0x28f3,_0x49549a=new Migration(_0x556946);_0x49549a[_0x45e872('0xe')](_0x2464d9);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.0.js b/server/migrations/2.4.0.js index 1a20e55..e257289 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a991_0x9b54=['join','removeIndex\x20%s\x20%s','migration','renameColumn','finally','fti_openchannel_messages','sequence','enqueue','chat_messages','tiny','info','subject','plainBody','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','lastMsgBody','mail_interactions','body','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','TEXT','changeColumn','phoneBarEnableScreenRecordingByAgent','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','../config/logger','dropTable','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','medium','phoneBarEnableVideoRecording','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','sms_messages','removeIndex','indexName','query\x20%s','addIndex','util','fti_mail_messages','FULLTEXT','sequelize','mail_messages','fti_sms_messages','catch','prototype','fti_mail_interactions','queryInterface','indicesType','then','final','stringify','phoneBarEnableAutomaticScreenRecording','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','table\x20dropped\x20%s','query','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','openchannel_messages','removeColumn','users','tail'];(function(_0x198e67,_0x9b5449){const _0x58901f=function(_0x374675){while(--_0x374675){_0x198e67['push'](_0x198e67['shift']());}};_0x58901f(++_0x9b5449);}(a991_0x9b54,0x10b));const a991_0x5890=function(_0x198e67,_0x9b5449){_0x198e67=_0x198e67-0x0;let _0x58901f=a991_0x9b54[_0x198e67];return _0x58901f;};const _0x28742c=a991_0x5890;'use strict';const util=require(_0x28742c('0x13')),logger=require(_0x28742c('0x6'))(_0x28742c('0x2d')),Sequence=function(){};Sequence[_0x28742c('0x1a')]['enqueue']=function(_0x374675){const _0x130653=_0x28742c;this[_0x130653('0x2a')]=this[_0x130653('0x2a')]?this[_0x130653('0x2a')][_0x130653('0x2f')](_0x374675):_0x374675();};const Migration=function(_0x106d60){const _0x48b9d8=_0x28742c;this[_0x48b9d8('0x1c')]=_0x106d60,this['sequence']=new Sequence();};Migration[_0x28742c('0x1a')][_0x28742c('0x3')]=function(_0x13cc7f,_0x2372c3,_0x17436e){const _0x461fb6=_0x28742c,_0x14bc61=this;this[_0x461fb6('0x31')]['enqueue'](function(){const _0x2d64f3=_0x461fb6;return _0x14bc61['queryInterface'][_0x2d64f3('0x3')](_0x13cc7f,_0x2372c3,_0x17436e)[_0x2d64f3('0x1e')](function(){const _0x21a081=_0x2d64f3;logger['info'](_0x21a081('0x39'),_0x2372c3,_0x13cc7f);})['catch'](function(_0x436fdc){const _0x4a25c3=_0x2d64f3;logger[_0x4a25c3('0x35')](JSON[_0x4a25c3('0x20')](_0x436fdc));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x8')]=function(_0x4cd5fa,_0x412a51,_0x330476){const _0x173508=_0x28742c,_0x1a8352=this;this[_0x173508('0x31')][_0x173508('0x32')](function(){const _0x46b9a3=_0x173508;return _0x1a8352['queryInterface'][_0x46b9a3('0x8')](_0x4cd5fa,_0x412a51,_0x330476)[_0x46b9a3('0x1e')](function(){const _0x5ac110=_0x46b9a3;logger[_0x5ac110('0x35')](_0x5ac110('0x25'),_0x412a51,_0x4cd5fa);})[_0x46b9a3('0x19')](function(_0x37a38a){const _0x46de59=_0x46b9a3;logger[_0x46de59('0x35')](JSON[_0x46de59('0x20')](_0x37a38a));});});},Migration[_0x28742c('0x1a')]['dropTable']=function(_0x3ffa17){const _0x2ccd23=_0x28742c,_0x2dfc98=this;this[_0x2ccd23('0x31')]['enqueue'](function(){const _0x29b8d0=_0x2ccd23;return _0x2dfc98['queryInterface'][_0x29b8d0('0x7')](_0x3ffa17,{'force':!![]})[_0x29b8d0('0x1e')](function(){const _0x51a761=_0x29b8d0;logger[_0x51a761('0x35')](_0x51a761('0x23'),_0x3ffa17);})[_0x29b8d0('0x19')](function(_0x33ca48){const _0x585242=_0x29b8d0;logger[_0x585242('0x35')](JSON[_0x585242('0x20')](_0x33ca48));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x12')]=function(_0x239652,_0x3c5679,_0x4596bf){const _0x192684=_0x28742c,_0x177247=this;this[_0x192684('0x31')][_0x192684('0x32')](function(){const _0xe4561a=_0x192684;return _0x177247[_0xe4561a('0x1c')]['addIndex'](_0x239652,_0x3c5679,{'indexName':_0x4596bf[_0xe4561a('0x10')],'indicesType':_0x4596bf[_0xe4561a('0x1d')]})[_0xe4561a('0x1e')](function(){const _0x202824=_0xe4561a;logger[_0x202824('0x35')](_0x202824('0x9'),_0x239652,_0x3c5679[_0x202824('0x2b')](','),_0x4596bf[_0x202824('0x10')],_0x4596bf['indicesType']);})['catch'](function(_0x49d869){const _0x11e5c6=_0xe4561a;logger[_0x11e5c6('0x35')](JSON[_0x11e5c6('0x20')](_0x49d869));});});},Migration['prototype'][_0x28742c('0xf')]=function(_0x48fa80,_0xa7a281){const _0x33388f=_0x28742c,_0x50f724=this;this[_0x33388f('0x31')][_0x33388f('0x32')](function(){const _0x230a33=_0x33388f;return _0x50f724[_0x230a33('0x1c')][_0x230a33('0xf')](_0x48fa80,_0xa7a281)[_0x230a33('0x1e')](function(){const _0xebe9b5=_0x230a33;logger[_0xebe9b5('0x35')](_0xebe9b5('0x2c'),_0x48fa80,_0xa7a281);})['catch'](function(_0x30f0bf){const _0x2a818e=_0x230a33;logger[_0x2a818e('0x35')](JSON['stringify'](_0x30f0bf));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x24')]=function(_0xdad43b){const _0x2f6e71=_0x28742c,_0x25bc6d=this;this[_0x2f6e71('0x31')][_0x2f6e71('0x32')](function(){const _0x3caa47=_0x2f6e71;return _0x25bc6d[_0x3caa47('0x1c')][_0x3caa47('0x16')][_0x3caa47('0x24')](_0xdad43b)[_0x3caa47('0x1e')](function(){const _0xf0a5ad=_0x3caa47;logger[_0xf0a5ad('0x35')](_0xf0a5ad('0x11'),_0xdad43b);})[_0x3caa47('0x19')](function(_0x1d28dd){const _0x22c96b=_0x3caa47;logger[_0x22c96b('0x35')](JSON[_0x22c96b('0x20')](_0x1d28dd));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x28')]=function(_0xae8240,_0x42e118){const _0x3695eb=_0x28742c,_0x13fde1=this;this[_0x3695eb('0x31')]['enqueue'](function(){const _0x3f0d9d=_0x3695eb;return _0x13fde1[_0x3f0d9d('0x1c')][_0x3f0d9d('0x28')](_0xae8240,_0x42e118)[_0x3f0d9d('0x1e')](function(){const _0x513d75=_0x3f0d9d;logger[_0x513d75('0x35')]('Removed\x20column\x20%s\x20from\x20%s',_0x42e118,_0xae8240);})[_0x3f0d9d('0x19')](function(_0x2ec8d9){const _0x30bf50=_0x3f0d9d;logger['info'](util[_0x30bf50('0x3b')](_0x2ec8d9,{'showHidden':![],'depth':null}));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x2e')]=function(_0x222211,_0x4e910d,_0x23018d){const _0x222076=_0x28742c,_0x8c40ee=this;this[_0x222076('0x31')][_0x222076('0x32')](function(){const _0x562f57=_0x222076;return _0x8c40ee['queryInterface']['renameColumn'](_0x222211,_0x4e910d,_0x23018d)['then'](function(){const _0x5af56c=a991_0x5890;logger[_0x5af56c('0x35')](_0x5af56c('0x3a'),_0x4e910d,_0x23018d,_0x222211);})[_0x562f57('0x19')](function(_0x5397b5){logger['info'](util['inspect'](_0x5397b5,{'showHidden':![],'depth':null}));});});},Migration[_0x28742c('0x1a')][_0x28742c('0x1f')]=function(_0x1d335e){const _0x211525=_0x28742c;this[_0x211525('0x31')][_0x211525('0x32')](function(){return _0x1d335e();});},module[_0x28742c('0x38')]={'up':function(_0x2358a4,_0x1a5d12){return new Promise(function(_0x39a0b9){const _0x304326=a991_0x5890,_0xc24665=new Migration(_0x2358a4);_0xc24665[_0x304326('0x2e')](_0x304326('0x29'),_0x304326('0xb'),_0x304326('0x4')),_0xc24665[_0x304326('0x8')](_0x304326('0x29'),_0x304326('0x21'),{'type':_0x1a5d12[_0x304326('0x26')],'defaultValue':![]}),_0xc24665[_0x304326('0x8')](_0x304326('0x29'),'screenrecording',{'type':_0x1a5d12[_0x304326('0x26')],'defaultValue':![]}),_0xc24665[_0x304326('0x12')](_0x304326('0x33'),[_0x304326('0x0')],{'indexName':'fti_chat_messages','indicesType':_0x304326('0x15')}),_0xc24665[_0x304326('0x12')](_0x304326('0x3d'),[_0x304326('0x36'),'to'],{'indexName':_0x304326('0x1b'),'indicesType':'FULLTEXT'}),_0xc24665[_0x304326('0x8')](_0x304326('0x3d'),'lastMsgText',{'type':_0x1a5d12[_0x304326('0x2')](_0x304326('0x34')),'after':_0x304326('0x3c')}),_0xc24665[_0x304326('0x8')](_0x304326('0x17'),_0x304326('0x37'),{'type':_0x1a5d12[_0x304326('0x2')](_0x304326('0xa')),'after':_0x304326('0x0')}),_0xc24665[_0x304326('0x12')](_0x304326('0x17'),[_0x304326('0x37'),_0x304326('0x36')],{'indexName':_0x304326('0x14'),'indicesType':'FULLTEXT'}),_0xc24665[_0x304326('0x12')](_0x304326('0x27'),[_0x304326('0x0')],{'indexName':_0x304326('0x30'),'indicesType':_0x304326('0x15')}),_0xc24665[_0x304326('0x12')](_0x304326('0xe'),['body'],{'indexName':_0x304326('0x18'),'indicesType':_0x304326('0x15')}),_0xc24665['query'](_0x304326('0xd')),_0xc24665['query'](_0x304326('0x1')),_0xc24665['query'](_0x304326('0x5')),_0xc24665['query'](_0x304326('0xc')),_0xc24665[_0x304326('0x24')](_0x304326('0x22')),_0xc24665[_0x304326('0x1f')](_0x39a0b9);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.1.js b/server/migrations/2.4.1.js index 1304b58..90ce8aa 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a992_0x19fb=['dropTable','enqueue','join','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','query','removeIndex','exports','then','migration','indicesType','removeColumn','stringify','../config/logger','sequence','indexName','queryInterface','prototype','inspect','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','final','addIndex','query\x20%s','finally','changeColumn','tail','addColumn'];(function(_0x3fb67b,_0x19fbd9){const _0x12c938=function(_0x379006){while(--_0x379006){_0x3fb67b['push'](_0x3fb67b['shift']());}};_0x12c938(++_0x19fbd9);}(a992_0x19fb,0x16f));const a992_0x12c9=function(_0x3fb67b,_0x19fbd9){_0x3fb67b=_0x3fb67b-0x0;let _0x12c938=a992_0x19fb[_0x3fb67b];return _0x12c938;};const _0x286013=a992_0x12c9;'use strict';const util=require('util'),logger=require(_0x286013('0x17'))(_0x286013('0x13')),Sequence=function(){};Sequence[_0x286013('0x1b')]['enqueue']=function(_0x379006){const _0x463268=_0x286013;this['tail']=this['tail']?this[_0x463268('0x5')][_0x463268('0x3')](_0x379006):_0x379006();};const Migration=function(_0x188239){const _0x3131c0=_0x286013;this[_0x3131c0('0x1a')]=_0x188239,this[_0x3131c0('0x18')]=new Sequence();};Migration['prototype'][_0x286013('0x4')]=function(_0x52b8dc,_0x2c8ab5,_0x463e9d){const _0x450078=_0x286013,_0x1fc8b4=this;this[_0x450078('0x18')][_0x450078('0x8')](function(){const _0x444f6c=_0x450078;return _0x1fc8b4[_0x444f6c('0x1a')][_0x444f6c('0x4')](_0x52b8dc,_0x2c8ab5,_0x463e9d)[_0x444f6c('0x12')](function(){const _0x4f3a73=_0x444f6c;logger['info'](_0x4f3a73('0xd'),_0x2c8ab5,_0x52b8dc);})[_0x444f6c('0xe')](function(_0x22c662){const _0x167e93=_0x444f6c;logger[_0x167e93('0x1f')](JSON[_0x167e93('0x16')](_0x22c662));});});},Migration[_0x286013('0x1b')][_0x286013('0x6')]=function(_0x990bf,_0x1ff1a3,_0x36a880){const _0xe99656=_0x286013,_0x1fcd84=this;this[_0xe99656('0x18')][_0xe99656('0x8')](function(){const _0x3e3899=_0xe99656;return _0x1fcd84[_0x3e3899('0x1a')][_0x3e3899('0x6')](_0x990bf,_0x1ff1a3,_0x36a880)['then'](function(){const _0x28d6be=_0x3e3899;logger[_0x28d6be('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x1ff1a3,_0x990bf);})[_0x3e3899('0xe')](function(_0x4d111d){const _0x287c5f=_0x3e3899;logger[_0x287c5f('0x1f')](JSON[_0x287c5f('0x16')](_0x4d111d));});});},Migration[_0x286013('0x1b')][_0x286013('0x7')]=function(_0xad5fbd){const _0x196aae=_0x286013,_0x31f937=this;this[_0x196aae('0x18')][_0x196aae('0x8')](function(){const _0x13a7a1=_0x196aae;return _0x31f937[_0x13a7a1('0x1a')]['dropTable'](_0xad5fbd,{'force':!![]})[_0x13a7a1('0x12')](function(){const _0x5a8c17=_0x13a7a1;logger[_0x5a8c17('0x1f')](_0x5a8c17('0x1d'),_0xad5fbd);})[_0x13a7a1('0xe')](function(_0x26f9e){const _0x9c146f=_0x13a7a1;logger['info'](JSON[_0x9c146f('0x16')](_0x26f9e));});});},Migration['prototype'][_0x286013('0x1')]=function(_0x5b7e0e,_0x24e2cc,_0x7f2633){const _0x4532b4=_0x286013,_0x2fd865=this;this[_0x4532b4('0x18')][_0x4532b4('0x8')](function(){const _0xed7ad9=_0x4532b4;return _0x2fd865[_0xed7ad9('0x1a')][_0xed7ad9('0x1')](_0x5b7e0e,_0x24e2cc,{'indexName':_0x7f2633[_0xed7ad9('0x19')],'indicesType':_0x7f2633[_0xed7ad9('0x14')]})['then'](function(){const _0x49c923=_0xed7ad9;logger[_0x49c923('0x1f')](_0x49c923('0x1e'),_0x5b7e0e,_0x24e2cc[_0x49c923('0x9')](','),_0x7f2633['indexName'],_0x7f2633['indicesType']);})['catch'](function(_0x26b0c1){const _0xb7db9a=_0xed7ad9;logger[_0xb7db9a('0x1f')](JSON[_0xb7db9a('0x16')](_0x26b0c1));});});},Migration[_0x286013('0x1b')][_0x286013('0x10')]=function(_0x417f07,_0x1d52e3){const _0x1f81b7=_0x286013,_0x4b18a0=this;this['sequence'][_0x1f81b7('0x8')](function(){const _0x5b36ee=_0x1f81b7;return _0x4b18a0[_0x5b36ee('0x1a')][_0x5b36ee('0x10')](_0x417f07,_0x1d52e3)[_0x5b36ee('0x12')](function(){const _0x2e9efd=_0x5b36ee;logger[_0x2e9efd('0x1f')](_0x2e9efd('0x21'),_0x417f07,_0x1d52e3);})['catch'](function(_0x26f2a2){const _0x57319c=_0x5b36ee;logger[_0x57319c('0x1f')](JSON[_0x57319c('0x16')](_0x26f2a2));});});},Migration[_0x286013('0x1b')][_0x286013('0xf')]=function(_0xf1a724){const _0x16b648=_0x286013,_0x540198=this;this[_0x16b648('0x18')]['enqueue'](function(){const _0x510863=_0x16b648;return _0x540198[_0x510863('0x1a')][_0x510863('0xc')][_0x510863('0xf')](_0xf1a724)['then'](function(){const _0xbfef4a=_0x510863;logger[_0xbfef4a('0x1f')](_0xbfef4a('0x2'),_0xf1a724);})['catch'](function(_0x462ac5){const _0x10d89f=_0x510863;logger[_0x10d89f('0x1f')](JSON[_0x10d89f('0x16')](_0x462ac5));});});},Migration[_0x286013('0x1b')][_0x286013('0x15')]=function(_0x1819d8,_0x15b668){const _0x21a74b=this;this['sequence']['enqueue'](function(){const _0x1baf5f=a992_0x12c9;return _0x21a74b[_0x1baf5f('0x1a')][_0x1baf5f('0x15')](_0x1819d8,_0x15b668)[_0x1baf5f('0x12')](function(){const _0x5580a8=_0x1baf5f;logger[_0x5580a8('0x1f')](_0x5580a8('0x20'),_0x15b668,_0x1819d8);})[_0x1baf5f('0xe')](function(_0x4360ac){const _0x3b0c7b=_0x1baf5f;logger['info'](util[_0x3b0c7b('0x1c')](_0x4360ac,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x1fc131,_0x5702f4,_0x246a21){const _0x1d24f6=_0x286013,_0x56bc9e=this;this[_0x1d24f6('0x18')]['enqueue'](function(){const _0x21f4aa=_0x1d24f6;return _0x56bc9e[_0x21f4aa('0x1a')][_0x21f4aa('0xa')](_0x1fc131,_0x5702f4,_0x246a21)['then'](function(){const _0xb1bc4e=_0x21f4aa;logger[_0xb1bc4e('0x1f')](_0xb1bc4e('0xb'),_0x5702f4,_0x246a21,_0x1fc131);})[_0x21f4aa('0xe')](function(_0x4657a0){const _0xb1b2b3=_0x21f4aa;logger[_0xb1b2b3('0x1f')](util[_0xb1b2b3('0x1c')](_0x4657a0,{'showHidden':![],'depth':null}));});});},Migration[_0x286013('0x1b')][_0x286013('0x0')]=function(_0x1c1e8c){const _0x16dc8d=_0x286013;this[_0x16dc8d('0x18')][_0x16dc8d('0x8')](function(){return _0x1c1e8c();});},module[_0x286013('0x11')]={'up':function(_0x3f144b){return new Promise(function(_0x37f854){const _0x9ced9d=a992_0x12c9,_0x36dc13=new Migration(_0x3f144b);_0x36dc13[_0x9ced9d('0x0')](_0x37f854);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.10.js b/server/migrations/2.4.10.js index c7aedd4..62d4db3 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a993_0x26e7=['settings','then','dropTable','TEXT','prototype','addColumn','indexName','removeIndex','queryInterface','indicesType','enqueue','exports','BOOLEAN','Removed\x20column\x20%s\x20from\x20%s','sequelize','changeColumn','info','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','sequence','addIndex','migration','STRING','removeIndex\x20%s\x20%s','favicon','defaultFavicon','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','util','query\x20%s','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn'];(function(_0x94c357,_0x26e7a8){const _0x5efc41=function(_0xf3883f){while(--_0xf3883f){_0x94c357['push'](_0x94c357['shift']());}};_0x5efc41(++_0x26e7a8);}(a993_0x26e7,0xa0));const a993_0x5efc=function(_0x94c357,_0x26e7a8){_0x94c357=_0x94c357-0x0;let _0x5efc41=a993_0x26e7[_0x94c357];return _0x5efc41;};const _0x131a5d=a993_0x5efc;'use strict';const util=require(_0x131a5d('0x5')),logger=require('../config/logger')(_0x131a5d('0x20')),Sequence=function(){};Sequence[_0x131a5d('0xe')][_0x131a5d('0x14')]=function(_0xf3883f){this['tail']=this['tail']?this['tail']['finally'](_0xf3883f):_0xf3883f();};const Migration=function(_0x4af17f){const _0x2f8961=_0x131a5d;this[_0x2f8961('0x12')]=_0x4af17f,this[_0x2f8961('0x1e')]=new Sequence();};Migration[_0x131a5d('0xe')][_0x131a5d('0x19')]=function(_0x35558f,_0x2c41ad,_0x2267aa){const _0xc2db92=_0x131a5d,_0x44aa85=this;this[_0xc2db92('0x1e')][_0xc2db92('0x14')](function(){const _0x29227b=_0xc2db92;return _0x44aa85[_0x29227b('0x12')]['changeColumn'](_0x35558f,_0x2c41ad,_0x2267aa)['then'](function(){const _0x58bbaf=_0x29227b;logger['info'](_0x58bbaf('0x3'),_0x2c41ad,_0x35558f);})['catch'](function(_0x31a60f){const _0x2681ee=_0x29227b;logger[_0x2681ee('0x1a')](JSON['stringify'](_0x31a60f));});});},Migration[_0x131a5d('0xe')][_0x131a5d('0xf')]=function(_0x3b63fa,_0x50969a,_0x35cf1f){const _0x52af60=this;this['sequence']['enqueue'](function(){const _0x1df013=a993_0x5efc;return _0x52af60[_0x1df013('0x12')][_0x1df013('0xf')](_0x3b63fa,_0x50969a,_0x35cf1f)['then'](function(){const _0x3c76d7=_0x1df013;logger[_0x3c76d7('0x1a')](_0x3c76d7('0x1d'),_0x50969a,_0x3b63fa);})[_0x1df013('0x1b')](function(_0x1d42c8){const _0x442b59=_0x1df013;logger[_0x442b59('0x1a')](JSON[_0x442b59('0x7')](_0x1d42c8));});});},Migration['prototype'][_0x131a5d('0xc')]=function(_0x36f895){const _0x1cf1e8=_0x131a5d,_0x2b71a6=this;this[_0x1cf1e8('0x1e')]['enqueue'](function(){const _0x3fd8ab=_0x1cf1e8;return _0x2b71a6['queryInterface'][_0x3fd8ab('0xc')](_0x36f895,{'force':!![]})['then'](function(){const _0x5091e5=_0x3fd8ab;logger[_0x5091e5('0x1a')](_0x5091e5('0x4'),_0x36f895);})[_0x3fd8ab('0x1b')](function(_0x42ed91){const _0x195456=_0x3fd8ab;logger['info'](JSON[_0x195456('0x7')](_0x42ed91));});});},Migration[_0x131a5d('0xe')][_0x131a5d('0x1f')]=function(_0x2e1a36,_0x537c6b,_0x2d6c71){const _0x4c90c1=_0x131a5d,_0x4fc539=this;this['sequence'][_0x4c90c1('0x14')](function(){const _0x2552c7=_0x4c90c1;return _0x4fc539[_0x2552c7('0x12')]['addIndex'](_0x2e1a36,_0x537c6b,{'indexName':_0x2d6c71['indexName'],'indicesType':_0x2d6c71['indicesType']})[_0x2552c7('0xb')](function(){const _0x5750f7=_0x2552c7;logger[_0x5750f7('0x1a')](_0x5750f7('0x1c'),_0x2e1a36,_0x537c6b['join'](','),_0x2d6c71[_0x5750f7('0x10')],_0x2d6c71[_0x5750f7('0x13')]);})[_0x2552c7('0x1b')](function(_0x10825b){const _0x40e037=_0x2552c7;logger[_0x40e037('0x1a')](JSON['stringify'](_0x10825b));});});},Migration['prototype']['removeIndex']=function(_0x3af895,_0x357464){const _0x3d6d28=_0x131a5d,_0x5a4b24=this;this[_0x3d6d28('0x1e')]['enqueue'](function(){const _0x5c4e3d=_0x3d6d28;return _0x5a4b24[_0x5c4e3d('0x12')][_0x5c4e3d('0x11')](_0x3af895,_0x357464)['then'](function(){const _0x68b1da=_0x5c4e3d;logger[_0x68b1da('0x1a')](_0x68b1da('0x0'),_0x3af895,_0x357464);})[_0x5c4e3d('0x1b')](function(_0xd53ebb){const _0x3edf6f=_0x5c4e3d;logger[_0x3edf6f('0x1a')](JSON['stringify'](_0xd53ebb));});});},Migration[_0x131a5d('0xe')]['query']=function(_0x16fe50){const _0x3e68bd=_0x131a5d,_0x472677=this;this[_0x3e68bd('0x1e')][_0x3e68bd('0x14')](function(){const _0x3ea9be=_0x3e68bd;return _0x472677['queryInterface'][_0x3ea9be('0x18')]['query'](_0x16fe50)[_0x3ea9be('0xb')](function(){const _0x3349ba=_0x3ea9be;logger[_0x3349ba('0x1a')](_0x3349ba('0x6'),_0x16fe50);})[_0x3ea9be('0x1b')](function(_0x1843bd){const _0x1daf6d=_0x3ea9be;logger[_0x1daf6d('0x1a')](JSON[_0x1daf6d('0x7')](_0x1843bd));});});},Migration[_0x131a5d('0xe')]['removeColumn']=function(_0x702260,_0x5020a0){const _0x2a0adb=this;this['sequence']['enqueue'](function(){const _0x27e343=a993_0x5efc;return _0x2a0adb['queryInterface']['removeColumn'](_0x702260,_0x5020a0)[_0x27e343('0xb')](function(){const _0x5d7bdb=_0x27e343;logger[_0x5d7bdb('0x1a')](_0x5d7bdb('0x17'),_0x5020a0,_0x702260);})[_0x27e343('0x1b')](function(_0x4f2e78){const _0x16327d=_0x27e343;logger[_0x16327d('0x1a')](util['inspect'](_0x4f2e78,{'showHidden':![],'depth':null}));});});},Migration[_0x131a5d('0xe')][_0x131a5d('0x9')]=function(_0x88dddb,_0x4c9a0e,_0x11be17){const _0x3b51e0=_0x131a5d,_0x411cc5=this;this[_0x3b51e0('0x1e')]['enqueue'](function(){const _0x1c2da3=_0x3b51e0;return _0x411cc5['queryInterface']['renameColumn'](_0x88dddb,_0x4c9a0e,_0x11be17)[_0x1c2da3('0xb')](function(){const _0x3ec204=_0x1c2da3;logger[_0x3ec204('0x1a')](_0x3ec204('0x8'),_0x4c9a0e,_0x11be17,_0x88dddb);})[_0x1c2da3('0x1b')](function(_0x5c4bcb){logger['info'](util['inspect'](_0x5c4bcb,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0xa614d3){const _0x35d844=_0x131a5d;this[_0x35d844('0x1e')][_0x35d844('0x14')](function(){return _0xa614d3();});},module[_0x131a5d('0x15')]={'up':function(_0x578df3,_0x1fbea3){return new Promise(function(_0xd6d2ac){const _0x3bf9af=a993_0x5efc,_0x46441b=new Migration(_0x578df3);_0x46441b[_0x3bf9af('0x19')]('chat_interactions','referer',{'type':_0x1fbea3[_0x3bf9af('0xd')]}),_0x46441b[_0x3bf9af('0xf')](_0x3bf9af('0xa'),_0x3bf9af('0x1'),{'type':_0x1fbea3[_0x3bf9af('0x21')]}),_0x46441b['addColumn'](_0x3bf9af('0xa'),_0x3bf9af('0x2'),{'type':_0x1fbea3[_0x3bf9af('0x16')],'defaultValue':!![]}),_0x46441b['final'](_0xd6d2ac);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.11.js b/server/migrations/2.4.11.js index 47bc34a..e52ba32 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a994_0x40f7=['removeColumn','indexName','Added\x20column\x20%s\x20to\x20%s','addColumn','inspect','addIndex','query\x20%s','table\x20dropped\x20%s','queryInterface','catch','enqueue','dropTable','finally','util','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','tail','migration','query','then','removeIndex','renameColumn','stringify','exports','info','sequence','changeColumn','prototype'];(function(_0x406ca7,_0x40f760){const _0x3ab30a=function(_0x2b154b){while(--_0x2b154b){_0x406ca7['push'](_0x406ca7['shift']());}};_0x3ab30a(++_0x40f760);}(a994_0x40f7,0x167));const a994_0x3ab3=function(_0x406ca7,_0x40f760){_0x406ca7=_0x406ca7-0x0;let _0x3ab30a=a994_0x40f7[_0x406ca7];return _0x3ab30a;};const _0x24e97a=a994_0x3ab3;'use strict';const util=require(_0x24e97a('0x12')),logger=require('../config/logger')(_0x24e97a('0x16')),Sequence=function(){};Sequence[_0x24e97a('0x4')][_0x24e97a('0xf')]=function(_0x2b154b){const _0x24a9c1=_0x24e97a;this[_0x24a9c1('0x15')]=this[_0x24a9c1('0x15')]?this['tail'][_0x24a9c1('0x11')](_0x2b154b):_0x2b154b();};const Migration=function(_0x6abfb0){const _0x22c5d3=_0x24e97a;this[_0x22c5d3('0xd')]=_0x6abfb0,this['sequence']=new Sequence();};Migration[_0x24e97a('0x4')][_0x24e97a('0x3')]=function(_0x3b3475,_0x48c02f,_0x430bc2){const _0x214848=_0x24e97a,_0x296869=this;this['sequence'][_0x214848('0xf')](function(){const _0x5f2f61=_0x214848;return _0x296869['queryInterface'][_0x5f2f61('0x3')](_0x3b3475,_0x48c02f,_0x430bc2)[_0x5f2f61('0x18')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x48c02f,_0x3b3475);})[_0x5f2f61('0xe')](function(_0x312c09){const _0x1ffe1d=_0x5f2f61;logger[_0x1ffe1d('0x1')](JSON[_0x1ffe1d('0x1b')](_0x312c09));});});},Migration['prototype']['addColumn']=function(_0x3e778c,_0xd7078f,_0x4567d5){const _0x3f0fbb=_0x24e97a,_0x54c9b9=this;this[_0x3f0fbb('0x2')][_0x3f0fbb('0xf')](function(){const _0x2cb345=_0x3f0fbb;return _0x54c9b9[_0x2cb345('0xd')][_0x2cb345('0x8')](_0x3e778c,_0xd7078f,_0x4567d5)[_0x2cb345('0x18')](function(){const _0x2dab50=_0x2cb345;logger['info'](_0x2dab50('0x7'),_0xd7078f,_0x3e778c);})[_0x2cb345('0xe')](function(_0xa369b9){const _0x31e060=_0x2cb345;logger['info'](JSON[_0x31e060('0x1b')](_0xa369b9));});});},Migration[_0x24e97a('0x4')][_0x24e97a('0x10')]=function(_0x4a068a){const _0x2863e6=_0x24e97a,_0x3f55c3=this;this[_0x2863e6('0x2')]['enqueue'](function(){const _0x2be0cc=_0x2863e6;return _0x3f55c3[_0x2be0cc('0xd')]['dropTable'](_0x4a068a,{'force':!![]})['then'](function(){const _0x3f7083=_0x2be0cc;logger[_0x3f7083('0x1')](_0x3f7083('0xc'),_0x4a068a);})['catch'](function(_0x459559){const _0x5a9dd2=_0x2be0cc;logger['info'](JSON[_0x5a9dd2('0x1b')](_0x459559));});});},Migration[_0x24e97a('0x4')]['addIndex']=function(_0x4199bd,_0x4c8afd,_0x23045b){const _0x2fa0d5=_0x24e97a,_0xba7401=this;this[_0x2fa0d5('0x2')][_0x2fa0d5('0xf')](function(){const _0x5e0e39=_0x2fa0d5;return _0xba7401[_0x5e0e39('0xd')][_0x5e0e39('0xa')](_0x4199bd,_0x4c8afd,{'indexName':_0x23045b[_0x5e0e39('0x6')],'indicesType':_0x23045b['indicesType']})['then'](function(){const _0xa1f1cf=_0x5e0e39;logger['info'](_0xa1f1cf('0x13'),_0x4199bd,_0x4c8afd['join'](','),_0x23045b[_0xa1f1cf('0x6')],_0x23045b['indicesType']);})[_0x5e0e39('0xe')](function(_0x29ac71){const _0x2c9b11=_0x5e0e39;logger[_0x2c9b11('0x1')](JSON['stringify'](_0x29ac71));});});},Migration[_0x24e97a('0x4')][_0x24e97a('0x19')]=function(_0x4114cd,_0x76c227){const _0x301653=_0x24e97a,_0x17bb1e=this;this[_0x301653('0x2')][_0x301653('0xf')](function(){const _0x40885c=_0x301653;return _0x17bb1e[_0x40885c('0xd')][_0x40885c('0x19')](_0x4114cd,_0x76c227)[_0x40885c('0x18')](function(){const _0x186dfd=_0x40885c;logger[_0x186dfd('0x1')](_0x186dfd('0x14'),_0x4114cd,_0x76c227);})[_0x40885c('0xe')](function(_0x3d46db){const _0x58fbaf=_0x40885c;logger[_0x58fbaf('0x1')](JSON['stringify'](_0x3d46db));});});},Migration[_0x24e97a('0x4')][_0x24e97a('0x17')]=function(_0x53d8bf){const _0xdfa785=_0x24e97a,_0x4abeab=this;this[_0xdfa785('0x2')][_0xdfa785('0xf')](function(){const _0xf1d803=_0xdfa785;return _0x4abeab[_0xf1d803('0xd')]['sequelize'][_0xf1d803('0x17')](_0x53d8bf)[_0xf1d803('0x18')](function(){const _0x301eee=_0xf1d803;logger[_0x301eee('0x1')](_0x301eee('0xb'),_0x53d8bf);})[_0xf1d803('0xe')](function(_0x42c336){const _0x1771b3=_0xf1d803;logger[_0x1771b3('0x1')](JSON[_0x1771b3('0x1b')](_0x42c336));});});},Migration[_0x24e97a('0x4')][_0x24e97a('0x5')]=function(_0x4d5ab7,_0x1db298){const _0x473f05=_0x24e97a,_0x115a47=this;this[_0x473f05('0x2')][_0x473f05('0xf')](function(){const _0x4a4fd5=_0x473f05;return _0x115a47['queryInterface'][_0x4a4fd5('0x5')](_0x4d5ab7,_0x1db298)[_0x4a4fd5('0x18')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1db298,_0x4d5ab7);})['catch'](function(_0x23198d){const _0x2f2076=_0x4a4fd5;logger[_0x2f2076('0x1')](util[_0x2f2076('0x9')](_0x23198d,{'showHidden':![],'depth':null}));});});},Migration[_0x24e97a('0x4')][_0x24e97a('0x1a')]=function(_0x585da9,_0x1da602,_0x5845d4){const _0x46d266=_0x24e97a,_0x224837=this;this[_0x46d266('0x2')][_0x46d266('0xf')](function(){const _0x473b78=_0x46d266;return _0x224837[_0x473b78('0xd')][_0x473b78('0x1a')](_0x585da9,_0x1da602,_0x5845d4)[_0x473b78('0x18')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1da602,_0x5845d4,_0x585da9);})[_0x473b78('0xe')](function(_0x35a717){const _0x31168b=_0x473b78;logger[_0x31168b('0x1')](util[_0x31168b('0x9')](_0x35a717,{'showHidden':![],'depth':null}));});});},Migration[_0x24e97a('0x4')]['final']=function(_0x558554){const _0x3aeb13=_0x24e97a;this[_0x3aeb13('0x2')][_0x3aeb13('0xf')](function(){return _0x558554();});},module[_0x24e97a('0x0')]={'up':function(_0x1fbe54){return new Promise(function(_0x413916){const _0x2f588b=new Migration(_0x1fbe54);_0x2f588b['final'](_0x413916);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.12.js b/server/migrations/2.4.12.js index aeb7550..57af3cf 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a995_0x4f58=['tail','exports','enqueue','catch','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','inspect','prototype','sequence','dropTable','query','INTEGER','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','migration','addIndex','removeIndex','query\x20%s','queryInterface','../config/logger','table\x20dropped\x20%s','join','info','stringify','indicesType','indexName','then','changeColumn','Removed\x20column\x20%s\x20from\x20%s','renameColumn','finally','final'];(function(_0x389e81,_0x4f5844){const _0x3204fb=function(_0x3f03d5){while(--_0x3f03d5){_0x389e81['push'](_0x389e81['shift']());}};_0x3204fb(++_0x4f5844);}(a995_0x4f58,0xee));const a995_0x3204=function(_0x389e81,_0x4f5844){_0x389e81=_0x389e81-0x0;let _0x3204fb=a995_0x4f58[_0x389e81];return _0x3204fb;};const _0x303629=a995_0x3204;'use strict';const util=require('util'),logger=require(_0x303629('0x1c'))(_0x303629('0x17')),Sequence=function(){};Sequence[_0x303629('0x10')][_0x303629('0xc')]=function(_0x3f03d5){const _0x37fe01=_0x303629;this['tail']=this[_0x37fe01('0xa')]?this[_0x37fe01('0xa')][_0x37fe01('0x8')](_0x3f03d5):_0x3f03d5();};const Migration=function(_0xa79eb2){const _0x2cabe2=_0x303629;this[_0x2cabe2('0x1b')]=_0xa79eb2,this['sequence']=new Sequence();};Migration[_0x303629('0x10')][_0x303629('0x5')]=function(_0x4ec09a,_0x8e05c4,_0x48ac5b){const _0x24db8e=_0x303629,_0x121f82=this;this['sequence'][_0x24db8e('0xc')](function(){const _0xefdfd4=_0x24db8e;return _0x121f82['queryInterface'][_0xefdfd4('0x5')](_0x4ec09a,_0x8e05c4,_0x48ac5b)[_0xefdfd4('0x4')](function(){const _0x1ceb0c=_0xefdfd4;logger[_0x1ceb0c('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x8e05c4,_0x4ec09a);})[_0xefdfd4('0xd')](function(_0x565cdb){const _0x30b3e0=_0xefdfd4;logger[_0x30b3e0('0x0')](JSON['stringify'](_0x565cdb));});});},Migration[_0x303629('0x10')]['addColumn']=function(_0x2869a1,_0x14d657,_0x1470a7){const _0x41a751=_0x303629,_0xf5cfd3=this;this[_0x41a751('0x11')]['enqueue'](function(){const _0x2360b7=_0x41a751;return _0xf5cfd3[_0x2360b7('0x1b')]['addColumn'](_0x2869a1,_0x14d657,_0x1470a7)['then'](function(){const _0x3fee41=_0x2360b7;logger[_0x3fee41('0x0')](_0x3fee41('0x16'),_0x14d657,_0x2869a1);})[_0x2360b7('0xd')](function(_0x433743){const _0xb8e2c0=_0x2360b7;logger[_0xb8e2c0('0x0')](JSON[_0xb8e2c0('0x1')](_0x433743));});});},Migration['prototype']['dropTable']=function(_0x1d5042){const _0x5093f1=_0x303629,_0x4992a9=this;this[_0x5093f1('0x11')][_0x5093f1('0xc')](function(){const _0x1552b3=_0x5093f1;return _0x4992a9[_0x1552b3('0x1b')][_0x1552b3('0x12')](_0x1d5042,{'force':!![]})['then'](function(){const _0x5f229b=_0x1552b3;logger[_0x5f229b('0x0')](_0x5f229b('0x1d'),_0x1d5042);})[_0x1552b3('0xd')](function(_0x3a6bcc){const _0x1e273f=_0x1552b3;logger[_0x1e273f('0x0')](JSON[_0x1e273f('0x1')](_0x3a6bcc));});});},Migration[_0x303629('0x10')][_0x303629('0x18')]=function(_0xad75c0,_0x5af643,_0x5361c7){const _0xd108da=_0x303629,_0x109cc1=this;this[_0xd108da('0x11')]['enqueue'](function(){const _0x25da12=_0xd108da;return _0x109cc1[_0x25da12('0x1b')][_0x25da12('0x18')](_0xad75c0,_0x5af643,{'indexName':_0x5361c7[_0x25da12('0x3')],'indicesType':_0x5361c7[_0x25da12('0x2')]})[_0x25da12('0x4')](function(){const _0x4bd350=_0x25da12;logger['info'](_0x4bd350('0x15'),_0xad75c0,_0x5af643[_0x4bd350('0x1e')](','),_0x5361c7[_0x4bd350('0x3')],_0x5361c7[_0x4bd350('0x2')]);})[_0x25da12('0xd')](function(_0x413dcd){const _0x3ce215=_0x25da12;logger[_0x3ce215('0x0')](JSON[_0x3ce215('0x1')](_0x413dcd));});});},Migration[_0x303629('0x10')][_0x303629('0x19')]=function(_0x39f6c6,_0x459589){const _0x32995a=_0x303629,_0x4cc3ef=this;this[_0x32995a('0x11')]['enqueue'](function(){const _0x157b72=_0x32995a;return _0x4cc3ef[_0x157b72('0x1b')][_0x157b72('0x19')](_0x39f6c6,_0x459589)[_0x157b72('0x4')](function(){const _0x42566b=_0x157b72;logger[_0x42566b('0x0')]('removeIndex\x20%s\x20%s',_0x39f6c6,_0x459589);})[_0x157b72('0xd')](function(_0x2d3c35){const _0x4e61e4=_0x157b72;logger[_0x4e61e4('0x0')](JSON[_0x4e61e4('0x1')](_0x2d3c35));});});},Migration[_0x303629('0x10')][_0x303629('0x13')]=function(_0x5abdf6){const _0x22b44b=_0x303629,_0x11485c=this;this['sequence'][_0x22b44b('0xc')](function(){const _0x498132=_0x22b44b;return _0x11485c[_0x498132('0x1b')]['sequelize']['query'](_0x5abdf6)['then'](function(){const _0x5f50ea=_0x498132;logger[_0x5f50ea('0x0')](_0x5f50ea('0x1a'),_0x5abdf6);})[_0x498132('0xd')](function(_0x2c13d9){const _0x435dd1=_0x498132;logger[_0x435dd1('0x0')](JSON[_0x435dd1('0x1')](_0x2c13d9));});});},Migration[_0x303629('0x10')]['removeColumn']=function(_0x5d5db5,_0x32183a){const _0x3abf6b=_0x303629,_0x13d184=this;this[_0x3abf6b('0x11')]['enqueue'](function(){const _0x52c33f=_0x3abf6b;return _0x13d184[_0x52c33f('0x1b')]['removeColumn'](_0x5d5db5,_0x32183a)[_0x52c33f('0x4')](function(){const _0x3be126=_0x52c33f;logger['info'](_0x3be126('0x6'),_0x32183a,_0x5d5db5);})['catch'](function(_0x698314){const _0x7e46ac=_0x52c33f;logger[_0x7e46ac('0x0')](util[_0x7e46ac('0xf')](_0x698314,{'showHidden':![],'depth':null}));});});},Migration[_0x303629('0x10')][_0x303629('0x7')]=function(_0x5a83cb,_0x24d494,_0x5c7345){const _0x5028bd=_0x303629,_0x53d43b=this;this[_0x5028bd('0x11')][_0x5028bd('0xc')](function(){const _0x3b447c=_0x5028bd;return _0x53d43b[_0x3b447c('0x1b')][_0x3b447c('0x7')](_0x5a83cb,_0x24d494,_0x5c7345)[_0x3b447c('0x4')](function(){const _0x7e27ea=_0x3b447c;logger[_0x7e27ea('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x24d494,_0x5c7345,_0x5a83cb);})[_0x3b447c('0xd')](function(_0x4e7a44){const _0x18e12b=_0x3b447c;logger[_0x18e12b('0x0')](util['inspect'](_0x4e7a44,{'showHidden':![],'depth':null}));});});},Migration[_0x303629('0x10')][_0x303629('0x9')]=function(_0x17bee0){const _0x337ba3=_0x303629;this[_0x337ba3('0x11')]['enqueue'](function(){return _0x17bee0();});},module[_0x303629('0xb')]={'up':function(_0x185038,_0x1827d5){return new Promise(function(_0x45e668){const _0x466783=a995_0x3204,_0x3a38b8=new Migration(_0x185038);_0x3a38b8['addColumn']('settings','loginMailFrequency',{'type':_0x1827d5[_0x466783('0x14')],'defaultValue':0xa}),_0x3a38b8[_0x466783('0x13')](_0x466783('0xe')),_0x3a38b8[_0x466783('0x9')](_0x45e668);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.13.js b/server/migrations/2.4.13.js index 530d001..681b006 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a996_0x42ae=['sendUnpauseOnSubmit','queryInterface','join','changeColumn','jscripty_projects','enqueue','renameColumn','then','dropTable','removeIndex','Removed\x20column\x20%s\x20from\x20%s','migration','removeIndex\x20%s\x20%s','info','sequence','tail','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','Added\x20column\x20%s\x20to\x20%s','removeColumn','exports','catch','addIndex','prototype','addColumn','BOOLEAN','inspect','query\x20%s','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','table\x20dropped\x20%s','finally','indexName','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','final'];(function(_0x11f0e0,_0x42ae98){const _0x82801e=function(_0x5d3015){while(--_0x5d3015){_0x11f0e0['push'](_0x11f0e0['shift']());}};_0x82801e(++_0x42ae98);}(a996_0x42ae,0x8f));const a996_0x8280=function(_0x11f0e0,_0x42ae98){_0x11f0e0=_0x11f0e0-0x0;let _0x82801e=a996_0x42ae[_0x11f0e0];return _0x82801e;};const _0x487b2a=a996_0x8280;'use strict';const util=require('util'),logger=require(_0x487b2a('0x2'))(_0x487b2a('0x10')),Sequence=function(){};Sequence[_0x487b2a('0x1c')][_0x487b2a('0xa')]=function(_0x5d3015){const _0x386f7f=_0x487b2a;this[_0x386f7f('0x14')]=this[_0x386f7f('0x14')]?this[_0x386f7f('0x14')][_0x386f7f('0x0')](_0x5d3015):_0x5d3015();};const Migration=function(_0x58c574){const _0x2b1a77=_0x487b2a;this['queryInterface']=_0x58c574,this[_0x2b1a77('0x13')]=new Sequence();};Migration[_0x487b2a('0x1c')][_0x487b2a('0x8')]=function(_0x4f5b2c,_0x42f4fb,_0x3a22d0){const _0x18860d=_0x487b2a,_0x4656e9=this;this['sequence'][_0x18860d('0xa')](function(){const _0x201aaa=_0x18860d;return _0x4656e9['queryInterface'][_0x201aaa('0x8')](_0x4f5b2c,_0x42f4fb,_0x3a22d0)[_0x201aaa('0xc')](function(){const _0x108989=_0x201aaa;logger[_0x108989('0x12')](_0x108989('0x3'),_0x42f4fb,_0x4f5b2c);})['catch'](function(_0x3d32e2){logger['info'](JSON['stringify'](_0x3d32e2));});});},Migration[_0x487b2a('0x1c')][_0x487b2a('0x1d')]=function(_0x2826b4,_0x2b87e6,_0x550a95){const _0x559246=_0x487b2a,_0x101494=this;this[_0x559246('0x13')][_0x559246('0xa')](function(){const _0x4041f7=_0x559246;return _0x101494[_0x4041f7('0x6')][_0x4041f7('0x1d')](_0x2826b4,_0x2b87e6,_0x550a95)['then'](function(){const _0x15a095=_0x4041f7;logger[_0x15a095('0x12')](_0x15a095('0x17'),_0x2b87e6,_0x2826b4);})[_0x4041f7('0x1a')](function(_0x106125){const _0x113fd6=_0x4041f7;logger[_0x113fd6('0x12')](JSON[_0x113fd6('0x23')](_0x106125));});});},Migration['prototype'][_0x487b2a('0xd')]=function(_0x198929){const _0x2e936f=_0x487b2a,_0x3c2d6e=this;this[_0x2e936f('0x13')][_0x2e936f('0xa')](function(){const _0x2d1fb2=_0x2e936f;return _0x3c2d6e[_0x2d1fb2('0x6')][_0x2d1fb2('0xd')](_0x198929,{'force':!![]})[_0x2d1fb2('0xc')](function(){const _0x57bb4f=_0x2d1fb2;logger[_0x57bb4f('0x12')](_0x57bb4f('0x24'),_0x198929);})['catch'](function(_0x648fa5){const _0x19ad4c=_0x2d1fb2;logger[_0x19ad4c('0x12')](JSON[_0x19ad4c('0x23')](_0x648fa5));});});},Migration['prototype']['addIndex']=function(_0x10c6c2,_0x4bd2a2,_0x1d4820){const _0x3078a1=_0x487b2a,_0x5a3ea9=this;this[_0x3078a1('0x13')][_0x3078a1('0xa')](function(){const _0x145bac=_0x3078a1;return _0x5a3ea9['queryInterface'][_0x145bac('0x1b')](_0x10c6c2,_0x4bd2a2,{'indexName':_0x1d4820[_0x145bac('0x1')],'indicesType':_0x1d4820['indicesType']})['then'](function(){const _0x13a7e2=_0x145bac;logger[_0x13a7e2('0x12')](_0x13a7e2('0x16'),_0x10c6c2,_0x4bd2a2[_0x13a7e2('0x7')](','),_0x1d4820[_0x13a7e2('0x1')],_0x1d4820[_0x13a7e2('0x15')]);})[_0x145bac('0x1a')](function(_0x497299){const _0x54d4e3=_0x145bac;logger[_0x54d4e3('0x12')](JSON[_0x54d4e3('0x23')](_0x497299));});});},Migration[_0x487b2a('0x1c')][_0x487b2a('0xe')]=function(_0xce31c1,_0x12188d){const _0x415316=_0x487b2a,_0x30f457=this;this[_0x415316('0x13')][_0x415316('0xa')](function(){const _0x5895b9=_0x415316;return _0x30f457[_0x5895b9('0x6')][_0x5895b9('0xe')](_0xce31c1,_0x12188d)[_0x5895b9('0xc')](function(){const _0x294ff4=_0x5895b9;logger[_0x294ff4('0x12')](_0x294ff4('0x11'),_0xce31c1,_0x12188d);})[_0x5895b9('0x1a')](function(_0x187b7d){const _0x497d37=_0x5895b9;logger['info'](JSON[_0x497d37('0x23')](_0x187b7d));});});},Migration[_0x487b2a('0x1c')]['query']=function(_0x1643ab){const _0x12526e=_0x487b2a,_0xd4847b=this;this[_0x12526e('0x13')][_0x12526e('0xa')](function(){const _0x50da41=_0x12526e;return _0xd4847b[_0x50da41('0x6')][_0x50da41('0x21')]['query'](_0x1643ab)[_0x50da41('0xc')](function(){const _0x3dbb92=_0x50da41;logger[_0x3dbb92('0x12')](_0x3dbb92('0x20'),_0x1643ab);})[_0x50da41('0x1a')](function(_0x266a5f){const _0x29f943=_0x50da41;logger[_0x29f943('0x12')](JSON[_0x29f943('0x23')](_0x266a5f));});});},Migration[_0x487b2a('0x1c')][_0x487b2a('0x18')]=function(_0x374677,_0x3efb54){const _0x5cb10f=this;this['sequence']['enqueue'](function(){const _0x21b35e=a996_0x8280;return _0x5cb10f['queryInterface']['removeColumn'](_0x374677,_0x3efb54)[_0x21b35e('0xc')](function(){const _0x308a19=_0x21b35e;logger[_0x308a19('0x12')](_0x308a19('0xf'),_0x3efb54,_0x374677);})['catch'](function(_0x157c13){const _0x5ec145=_0x21b35e;logger[_0x5ec145('0x12')](util[_0x5ec145('0x1f')](_0x157c13,{'showHidden':![],'depth':null}));});});},Migration[_0x487b2a('0x1c')][_0x487b2a('0xb')]=function(_0x18f839,_0x2ca815,_0x5697d){const _0x48c050=_0x487b2a,_0x5c2228=this;this[_0x48c050('0x13')]['enqueue'](function(){const _0x14b6b8=_0x48c050;return _0x5c2228['queryInterface'][_0x14b6b8('0xb')](_0x18f839,_0x2ca815,_0x5697d)['then'](function(){const _0x10c36a=_0x14b6b8;logger[_0x10c36a('0x12')](_0x10c36a('0x22'),_0x2ca815,_0x5697d,_0x18f839);})[_0x14b6b8('0x1a')](function(_0x459b28){const _0x35dc0d=_0x14b6b8;logger[_0x35dc0d('0x12')](util['inspect'](_0x459b28,{'showHidden':![],'depth':null}));});});},Migration[_0x487b2a('0x1c')][_0x487b2a('0x4')]=function(_0x3aabac){const _0x30a9e7=_0x487b2a;this[_0x30a9e7('0x13')][_0x30a9e7('0xa')](function(){return _0x3aabac();});},module[_0x487b2a('0x19')]={'up':function(_0x5acecf,_0x436621){return new Promise(function(_0x197e1b){const _0xe1d0b2=a996_0x8280,_0x37eb35=new Migration(_0x5acecf);_0x37eb35[_0xe1d0b2('0x1d')](_0xe1d0b2('0x9'),_0xe1d0b2('0x5'),{'type':_0x436621[_0xe1d0b2('0x1e')],'defaultValue':![]}),_0x37eb35[_0xe1d0b2('0x4')](_0x197e1b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.14.js b/server/migrations/2.4.14.js index 00def4c..aa10b11 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a997_0x114f=['query','util','finally','removeIndex','changeColumn','exports','tail','indexName','indicesType','final','then','inspect','query\x20%s','removeIndex\x20%s\x20%s','prototype','addIndex','stringify','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','sequence','queryInterface','Added\x20column\x20%s\x20to\x20%s','addColumn','info','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','renameColumn'];(function(_0x440735,_0x114f82){const _0xecf6ae=function(_0x2c4402){while(--_0x2c4402){_0x440735['push'](_0x440735['shift']());}};_0xecf6ae(++_0x114f82);}(a997_0x114f,0x1e6));const a997_0xecf6=function(_0x440735,_0x114f82){_0x440735=_0x440735-0x0;let _0xecf6ae=a997_0x114f[_0x440735];return _0xecf6ae;};const _0x5ead6e=a997_0xecf6;'use strict';const util=require(_0x5ead6e('0x8')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x5ead6e('0x15')][_0x5ead6e('0x3')]=function(_0x2c4402){const _0x1df48c=_0x5ead6e;this[_0x1df48c('0xd')]=this[_0x1df48c('0xd')]?this[_0x1df48c('0xd')][_0x1df48c('0x9')](_0x2c4402):_0x2c4402();};const Migration=function(_0x1eb2fb){const _0x1bd688=_0x5ead6e;this[_0x1bd688('0x1c')]=_0x1eb2fb,this['sequence']=new Sequence();};Migration[_0x5ead6e('0x15')][_0x5ead6e('0xb')]=function(_0x55c8eb,_0x37399b,_0x4bb6eb){const _0x2a0573=_0x5ead6e,_0x44d722=this;this[_0x2a0573('0x1b')][_0x2a0573('0x3')](function(){const _0x3ebb76=_0x2a0573;return _0x44d722[_0x3ebb76('0x1c')][_0x3ebb76('0xb')](_0x55c8eb,_0x37399b,_0x4bb6eb)[_0x3ebb76('0x11')](function(){const _0x1ca174=_0x3ebb76;logger[_0x1ca174('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x37399b,_0x55c8eb);})[_0x3ebb76('0x1a')](function(_0x4f5394){const _0x1dbbc0=_0x3ebb76;logger['info'](JSON[_0x1dbbc0('0x17')](_0x4f5394));});});},Migration[_0x5ead6e('0x15')]['addColumn']=function(_0x24d286,_0x730b8c,_0x202862){const _0xbbd9e2=_0x5ead6e,_0xb6006e=this;this[_0xbbd9e2('0x1b')][_0xbbd9e2('0x3')](function(){const _0xd1375d=_0xbbd9e2;return _0xb6006e[_0xd1375d('0x1c')][_0xd1375d('0x1')](_0x24d286,_0x730b8c,_0x202862)[_0xd1375d('0x11')](function(){const _0x2662fd=_0xd1375d;logger[_0x2662fd('0x2')](_0x2662fd('0x0'),_0x730b8c,_0x24d286);})[_0xd1375d('0x1a')](function(_0x1372f0){const _0x3f2ba2=_0xd1375d;logger['info'](JSON[_0x3f2ba2('0x17')](_0x1372f0));});});},Migration['prototype'][_0x5ead6e('0x18')]=function(_0x357e92){const _0x572f72=this;this['sequence']['enqueue'](function(){const _0x2977d9=a997_0xecf6;return _0x572f72[_0x2977d9('0x1c')][_0x2977d9('0x18')](_0x357e92,{'force':!![]})[_0x2977d9('0x11')](function(){const _0x475b6c=_0x2977d9;logger[_0x475b6c('0x2')]('table\x20dropped\x20%s',_0x357e92);})[_0x2977d9('0x1a')](function(_0x3f14e1){const _0x39fe06=_0x2977d9;logger[_0x39fe06('0x2')](JSON[_0x39fe06('0x17')](_0x3f14e1));});});},Migration[_0x5ead6e('0x15')][_0x5ead6e('0x16')]=function(_0x4cd0d0,_0x5a2c9c,_0x4896e4){const _0x3b024e=_0x5ead6e,_0x29a92a=this;this[_0x3b024e('0x1b')][_0x3b024e('0x3')](function(){const _0x185d4c=_0x3b024e;return _0x29a92a[_0x185d4c('0x1c')]['addIndex'](_0x4cd0d0,_0x5a2c9c,{'indexName':_0x4896e4[_0x185d4c('0xe')],'indicesType':_0x4896e4[_0x185d4c('0xf')]})[_0x185d4c('0x11')](function(){const _0x2de39c=_0x185d4c;logger[_0x2de39c('0x2')](_0x2de39c('0x19'),_0x4cd0d0,_0x5a2c9c['join'](','),_0x4896e4['indexName'],_0x4896e4[_0x2de39c('0xf')]);})[_0x185d4c('0x1a')](function(_0x13128d){const _0x566421=_0x185d4c;logger[_0x566421('0x2')](JSON[_0x566421('0x17')](_0x13128d));});});},Migration['prototype']['removeIndex']=function(_0x12bb43,_0x49e2fe){const _0x43d5aa=_0x5ead6e,_0x1b656d=this;this[_0x43d5aa('0x1b')][_0x43d5aa('0x3')](function(){const _0x39eca0=_0x43d5aa;return _0x1b656d[_0x39eca0('0x1c')][_0x39eca0('0xa')](_0x12bb43,_0x49e2fe)['then'](function(){const _0x3556de=_0x39eca0;logger[_0x3556de('0x2')](_0x3556de('0x14'),_0x12bb43,_0x49e2fe);})['catch'](function(_0x943fba){const _0x2951fe=_0x39eca0;logger['info'](JSON[_0x2951fe('0x17')](_0x943fba));});});},Migration[_0x5ead6e('0x15')][_0x5ead6e('0x7')]=function(_0x294d31){const _0x558b42=_0x5ead6e,_0x38d500=this;this[_0x558b42('0x1b')][_0x558b42('0x3')](function(){const _0x210a38=_0x558b42;return _0x38d500[_0x210a38('0x1c')]['sequelize'][_0x210a38('0x7')](_0x294d31)[_0x210a38('0x11')](function(){const _0x45f0ab=_0x210a38;logger['info'](_0x45f0ab('0x13'),_0x294d31);})[_0x210a38('0x1a')](function(_0x514ac8){const _0x36398d=_0x210a38;logger[_0x36398d('0x2')](JSON['stringify'](_0x514ac8));});});},Migration[_0x5ead6e('0x15')][_0x5ead6e('0x5')]=function(_0x51c3d1,_0x5e495e){const _0x26719c=_0x5ead6e,_0x4e9a80=this;this[_0x26719c('0x1b')][_0x26719c('0x3')](function(){const _0x4057e7=_0x26719c;return _0x4e9a80['queryInterface']['removeColumn'](_0x51c3d1,_0x5e495e)[_0x4057e7('0x11')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x5e495e,_0x51c3d1);})[_0x4057e7('0x1a')](function(_0x30b139){const _0x269d91=_0x4057e7;logger[_0x269d91('0x2')](util[_0x269d91('0x12')](_0x30b139,{'showHidden':![],'depth':null}));});});},Migration[_0x5ead6e('0x15')][_0x5ead6e('0x6')]=function(_0x253eb3,_0x5e9212,_0xe2950d){const _0x32af22=_0x5ead6e,_0x28dfc6=this;this[_0x32af22('0x1b')][_0x32af22('0x3')](function(){const _0x3cdd1e=_0x32af22;return _0x28dfc6[_0x3cdd1e('0x1c')][_0x3cdd1e('0x6')](_0x253eb3,_0x5e9212,_0xe2950d)[_0x3cdd1e('0x11')](function(){const _0x2f2f1b=_0x3cdd1e;logger['info'](_0x2f2f1b('0x4'),_0x5e9212,_0xe2950d,_0x253eb3);})[_0x3cdd1e('0x1a')](function(_0x15a3f5){const _0x2c41c0=_0x3cdd1e;logger[_0x2c41c0('0x2')](util['inspect'](_0x15a3f5,{'showHidden':![],'depth':null}));});});},Migration[_0x5ead6e('0x15')][_0x5ead6e('0x10')]=function(_0x35b5a6){const _0x46ee9b=_0x5ead6e;this['sequence'][_0x46ee9b('0x3')](function(){return _0x35b5a6();});},module[_0x5ead6e('0xc')]={'up':function(_0x5dba5e){return new Promise(function(_0x341feb){const _0x6297db=a997_0xecf6,_0x242740=new Migration(_0x5dba5e);_0x242740[_0x6297db('0x10')](_0x341feb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.15.js b/server/migrations/2.4.15.js index 1fa301b..db85027 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a998_0x1a88=['query','join','enqueue','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','indexName','queryInterface','final','Removed\x20column\x20%s\x20from\x20%s','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','catch','indicesType','then','renameColumn','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','sequence','stringify','addColumn','migration','removeColumn','info','finally','inspect','tail'];(function(_0x12b5c2,_0x1a88ae){const _0x4af670=function(_0x310bae){while(--_0x310bae){_0x12b5c2['push'](_0x12b5c2['shift']());}};_0x4af670(++_0x1a88ae);}(a998_0x1a88,0x1c9));const a998_0x4af6=function(_0x12b5c2,_0x1a88ae){_0x12b5c2=_0x12b5c2-0x0;let _0x4af670=a998_0x1a88[_0x12b5c2];return _0x4af670;};const _0x1ee636=a998_0x4af6;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1ee636('0x1')),Sequence=function(){};Sequence[_0x1ee636('0x1a')][_0x1ee636('0x9')]=function(_0x310bae){const _0x3fe5b6=_0x1ee636;this['tail']=this[_0x3fe5b6('0x6')]?this[_0x3fe5b6('0x6')][_0x3fe5b6('0x4')](_0x310bae):_0x310bae();};const Migration=function(_0x293157){const _0xe98b5d=_0x1ee636;this[_0xe98b5d('0xe')]=_0x293157,this[_0xe98b5d('0x1b')]=new Sequence();};Migration['prototype'][_0x1ee636('0xa')]=function(_0x58f919,_0x689554,_0x3d7b8f){const _0x20f512=_0x1ee636,_0x5cb46f=this;this[_0x20f512('0x1b')][_0x20f512('0x9')](function(){const _0x5905c2=_0x20f512;return _0x5cb46f[_0x5905c2('0xe')][_0x5905c2('0xa')](_0x58f919,_0x689554,_0x3d7b8f)[_0x5905c2('0x16')](function(){const _0x3faa1e=_0x5905c2;logger[_0x3faa1e('0x3')](_0x3faa1e('0x12'),_0x689554,_0x58f919);})[_0x5905c2('0x14')](function(_0x1ea73c){const _0x5a2a07=_0x5905c2;logger[_0x5a2a07('0x3')](JSON[_0x5a2a07('0x1c')](_0x1ea73c));});});},Migration[_0x1ee636('0x1a')][_0x1ee636('0x0')]=function(_0xf1906,_0x50e16b,_0x225d2){const _0x17ed44=_0x1ee636,_0x73ca41=this;this[_0x17ed44('0x1b')][_0x17ed44('0x9')](function(){const _0x10ed02=_0x17ed44;return _0x73ca41['queryInterface']['addColumn'](_0xf1906,_0x50e16b,_0x225d2)[_0x10ed02('0x16')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x50e16b,_0xf1906);})[_0x10ed02('0x14')](function(_0x2f4fab){const _0x212324=_0x10ed02;logger[_0x212324('0x3')](JSON['stringify'](_0x2f4fab));});});},Migration['prototype']['dropTable']=function(_0x17a3ef){const _0x2a4c98=_0x1ee636,_0x3cbc25=this;this[_0x2a4c98('0x1b')]['enqueue'](function(){const _0x160758=_0x2a4c98;return _0x3cbc25[_0x160758('0xe')]['dropTable'](_0x17a3ef,{'force':!![]})[_0x160758('0x16')](function(){const _0xf9db08=_0x160758;logger[_0xf9db08('0x3')]('table\x20dropped\x20%s',_0x17a3ef);})[_0x160758('0x14')](function(_0x4ac9dc){logger['info'](JSON['stringify'](_0x4ac9dc));});});},Migration['prototype']['addIndex']=function(_0x5af572,_0x4b407c,_0xdf83c5){const _0x591572=_0x1ee636,_0x993945=this;this[_0x591572('0x1b')][_0x591572('0x9')](function(){const _0xf0829f=_0x591572;return _0x993945[_0xf0829f('0xe')][_0xf0829f('0x11')](_0x5af572,_0x4b407c,{'indexName':_0xdf83c5[_0xf0829f('0xd')],'indicesType':_0xdf83c5[_0xf0829f('0x15')]})['then'](function(){const _0x5b23e8=_0xf0829f;logger['info'](_0x5b23e8('0x19'),_0x5af572,_0x4b407c[_0x5b23e8('0x8')](','),_0xdf83c5[_0x5b23e8('0xd')],_0xdf83c5[_0x5b23e8('0x15')]);})[_0xf0829f('0x14')](function(_0x4e82bc){const _0x5af64a=_0xf0829f;logger[_0x5af64a('0x3')](JSON[_0x5af64a('0x1c')](_0x4e82bc));});});},Migration['prototype'][_0x1ee636('0x18')]=function(_0x8b0710,_0x28e15f){const _0x17a563=_0x1ee636,_0x1a7354=this;this[_0x17a563('0x1b')]['enqueue'](function(){const _0x24e602=_0x17a563;return _0x1a7354[_0x24e602('0xe')][_0x24e602('0x18')](_0x8b0710,_0x28e15f)[_0x24e602('0x16')](function(){const _0x150baf=_0x24e602;logger[_0x150baf('0x3')]('removeIndex\x20%s\x20%s',_0x8b0710,_0x28e15f);})[_0x24e602('0x14')](function(_0x47ab7b){const _0x5ad73d=_0x24e602;logger['info'](JSON[_0x5ad73d('0x1c')](_0x47ab7b));});});},Migration[_0x1ee636('0x1a')][_0x1ee636('0x7')]=function(_0x32c1dd){const _0x488d95=_0x1ee636,_0x4c3be8=this;this[_0x488d95('0x1b')]['enqueue'](function(){const _0x4e00e8=_0x488d95;return _0x4c3be8[_0x4e00e8('0xe')][_0x4e00e8('0xc')][_0x4e00e8('0x7')](_0x32c1dd)['then'](function(){const _0x14c502=_0x4e00e8;logger[_0x14c502('0x3')](_0x14c502('0x13'),_0x32c1dd);})[_0x4e00e8('0x14')](function(_0x61d9ab){const _0x41c311=_0x4e00e8;logger[_0x41c311('0x3')](JSON[_0x41c311('0x1c')](_0x61d9ab));});});},Migration[_0x1ee636('0x1a')][_0x1ee636('0x2')]=function(_0x3ab6b5,_0x862131){const _0xf470da=_0x1ee636,_0x4a6ba3=this;this[_0xf470da('0x1b')]['enqueue'](function(){const _0x15534f=_0xf470da;return _0x4a6ba3[_0x15534f('0xe')][_0x15534f('0x2')](_0x3ab6b5,_0x862131)['then'](function(){const _0x5be053=_0x15534f;logger[_0x5be053('0x3')](_0x5be053('0x10'),_0x862131,_0x3ab6b5);})[_0x15534f('0x14')](function(_0x20347a){const _0x43709a=_0x15534f;logger[_0x43709a('0x3')](util[_0x43709a('0x5')](_0x20347a,{'showHidden':![],'depth':null}));});});},Migration[_0x1ee636('0x1a')]['renameColumn']=function(_0x32534b,_0x153fde,_0x7d16ae){const _0x4fef03=_0x1ee636,_0x125842=this;this[_0x4fef03('0x1b')][_0x4fef03('0x9')](function(){const _0x1f2953=_0x4fef03;return _0x125842[_0x1f2953('0xe')][_0x1f2953('0x17')](_0x32534b,_0x153fde,_0x7d16ae)['then'](function(){const _0x278679=_0x1f2953;logger[_0x278679('0x3')](_0x278679('0xb'),_0x153fde,_0x7d16ae,_0x32534b);})[_0x1f2953('0x14')](function(_0x157e87){const _0x19a005=_0x1f2953;logger['info'](util[_0x19a005('0x5')](_0x157e87,{'showHidden':![],'depth':null}));});});},Migration[_0x1ee636('0x1a')][_0x1ee636('0xf')]=function(_0x317797){const _0x1e5434=_0x1ee636;this[_0x1e5434('0x1b')]['enqueue'](function(){return _0x317797();});},module['exports']={'up':function(_0x2f6f4f){return new Promise(function(_0x1ad076){const _0x3df456=a998_0x4af6,_0x3701d6=new Migration(_0x2f6f4f);_0x3701d6[_0x3df456('0x7')]('UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22'),_0x3701d6[_0x3df456('0xf')](_0x1ad076);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.16.js b/server/migrations/2.4.16.js index d73ef4d..7d2200e 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a999_0x4cf1=['exports','fti_cm_contacts','migration','table\x20dropped\x20%s','indexName','query','enqueue','changeColumn','mobile','removeColumn','util','fax','addIndex','sequence','FULLTEXT','final','stringify','phone','cm_contacts','then','Removed\x20column\x20%s\x20from\x20%s','info','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','lastName','catch','prototype','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','removeIndex','inspect','email','firstName','Added\x20column\x20%s\x20to\x20%s','addColumn','renameColumn','queryInterface','join','finally'];(function(_0x25538f,_0x4cf17e){const _0x4393e9=function(_0x1d2859){while(--_0x1d2859){_0x25538f['push'](_0x25538f['shift']());}};_0x4393e9(++_0x4cf17e);}(a999_0x4cf1,0x1e4));const a999_0x4393=function(_0x25538f,_0x4cf17e){_0x25538f=_0x25538f-0x0;let _0x4393e9=a999_0x4cf1[_0x25538f];return _0x4393e9;};const _0x30d8bf=a999_0x4393;'use strict';const util=require(_0x30d8bf('0x6')),logger=require('../config/logger')(_0x30d8bf('0x26')),Sequence=function(){};Sequence[_0x30d8bf('0x16')][_0x30d8bf('0x2')]=function(_0x1d2859){const _0x53a966=_0x30d8bf;this['tail']=this[_0x53a966('0x17')]?this[_0x53a966('0x17')][_0x53a966('0x23')](_0x1d2859):_0x1d2859();};const Migration=function(_0x156d1d){const _0x5bdb97=_0x30d8bf;this['queryInterface']=_0x156d1d,this[_0x5bdb97('0x9')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x3061b1,_0x193eec,_0x5e7868){const _0x2ad530=_0x30d8bf,_0x429293=this;this['sequence'][_0x2ad530('0x2')](function(){const _0x4b03a8=_0x2ad530;return _0x429293[_0x4b03a8('0x21')][_0x4b03a8('0x3')](_0x3061b1,_0x193eec,_0x5e7868)[_0x4b03a8('0xf')](function(){const _0x121d25=_0x4b03a8;logger[_0x121d25('0x11')](_0x121d25('0x13'),_0x193eec,_0x3061b1);})[_0x4b03a8('0x15')](function(_0x5df5bb){const _0x2f1cea=_0x4b03a8;logger[_0x2f1cea('0x11')](JSON[_0x2f1cea('0xc')](_0x5df5bb));});});},Migration[_0x30d8bf('0x16')][_0x30d8bf('0x1f')]=function(_0x4e7be0,_0x17e7f5,_0x439888){const _0xd5f60e=_0x30d8bf,_0x3a2166=this;this[_0xd5f60e('0x9')]['enqueue'](function(){const _0x54cb68=_0xd5f60e;return _0x3a2166[_0x54cb68('0x21')][_0x54cb68('0x1f')](_0x4e7be0,_0x17e7f5,_0x439888)['then'](function(){const _0x450a43=_0x54cb68;logger[_0x450a43('0x11')](_0x450a43('0x1e'),_0x17e7f5,_0x4e7be0);})[_0x54cb68('0x15')](function(_0xfb2915){const _0x1b4996=_0x54cb68;logger[_0x1b4996('0x11')](JSON[_0x1b4996('0xc')](_0xfb2915));});});},Migration[_0x30d8bf('0x16')]['dropTable']=function(_0x1f6a3e){const _0x2d9cd3=_0x30d8bf,_0x55f42b=this;this[_0x2d9cd3('0x9')][_0x2d9cd3('0x2')](function(){const _0x4c8c92=_0x2d9cd3;return _0x55f42b[_0x4c8c92('0x21')]['dropTable'](_0x1f6a3e,{'force':!![]})['then'](function(){const _0xd9e7d9=_0x4c8c92;logger['info'](_0xd9e7d9('0x27'),_0x1f6a3e);})[_0x4c8c92('0x15')](function(_0xd13829){const _0x2f748b=_0x4c8c92;logger[_0x2f748b('0x11')](JSON[_0x2f748b('0xc')](_0xd13829));});});},Migration[_0x30d8bf('0x16')][_0x30d8bf('0x8')]=function(_0x4d8400,_0x2965f0,_0x1f47f0){const _0x52cf68=_0x30d8bf,_0x5d3fd7=this;this['sequence'][_0x52cf68('0x2')](function(){const _0x3d9094=_0x52cf68;return _0x5d3fd7[_0x3d9094('0x21')][_0x3d9094('0x8')](_0x4d8400,_0x2965f0,{'indexName':_0x1f47f0[_0x3d9094('0x0')],'indicesType':_0x1f47f0[_0x3d9094('0x19')]})[_0x3d9094('0xf')](function(){const _0x462374=_0x3d9094;logger[_0x462374('0x11')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4d8400,_0x2965f0[_0x462374('0x22')](','),_0x1f47f0[_0x462374('0x0')],_0x1f47f0[_0x462374('0x19')]);})[_0x3d9094('0x15')](function(_0x82055b){const _0x234311=_0x3d9094;logger[_0x234311('0x11')](JSON[_0x234311('0xc')](_0x82055b));});});},Migration['prototype'][_0x30d8bf('0x1a')]=function(_0x32f4c4,_0x282a48){const _0x554cad=_0x30d8bf,_0xc52efa=this;this['sequence'][_0x554cad('0x2')](function(){const _0x14bde8=_0x554cad;return _0xc52efa[_0x14bde8('0x21')][_0x14bde8('0x1a')](_0x32f4c4,_0x282a48)[_0x14bde8('0xf')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x32f4c4,_0x282a48);})[_0x14bde8('0x15')](function(_0x14eed9){const _0x210ee9=_0x14bde8;logger[_0x210ee9('0x11')](JSON[_0x210ee9('0xc')](_0x14eed9));});});},Migration['prototype'][_0x30d8bf('0x1')]=function(_0x5cdaa1){const _0x17bcbb=_0x30d8bf,_0x1c4e40=this;this[_0x17bcbb('0x9')][_0x17bcbb('0x2')](function(){const _0x3e4f81=_0x17bcbb;return _0x1c4e40['queryInterface']['sequelize'][_0x3e4f81('0x1')](_0x5cdaa1)[_0x3e4f81('0xf')](function(){const _0x10e015=_0x3e4f81;logger[_0x10e015('0x11')](_0x10e015('0x12'),_0x5cdaa1);})['catch'](function(_0x423783){const _0xa988db=_0x3e4f81;logger[_0xa988db('0x11')](JSON[_0xa988db('0xc')](_0x423783));});});},Migration['prototype'][_0x30d8bf('0x5')]=function(_0x277542,_0x2e01b4){const _0x4fd457=_0x30d8bf,_0x24b8b4=this;this['sequence'][_0x4fd457('0x2')](function(){const _0x2f9875=_0x4fd457;return _0x24b8b4[_0x2f9875('0x21')][_0x2f9875('0x5')](_0x277542,_0x2e01b4)[_0x2f9875('0xf')](function(){const _0x518330=_0x2f9875;logger[_0x518330('0x11')](_0x518330('0x10'),_0x2e01b4,_0x277542);})[_0x2f9875('0x15')](function(_0x16c04f){const _0x2523c8=_0x2f9875;logger[_0x2523c8('0x11')](util[_0x2523c8('0x1b')](_0x16c04f,{'showHidden':![],'depth':null}));});});},Migration[_0x30d8bf('0x16')][_0x30d8bf('0x20')]=function(_0x506a2a,_0x202b64,_0x581b0b){const _0x3b5a41=_0x30d8bf,_0x7099b0=this;this[_0x3b5a41('0x9')][_0x3b5a41('0x2')](function(){return _0x7099b0['queryInterface']['renameColumn'](_0x506a2a,_0x202b64,_0x581b0b)['then'](function(){const _0x3f384f=a999_0x4393;logger['info'](_0x3f384f('0x18'),_0x202b64,_0x581b0b,_0x506a2a);})['catch'](function(_0x526315){const _0x1bbcdc=a999_0x4393;logger[_0x1bbcdc('0x11')](util[_0x1bbcdc('0x1b')](_0x526315,{'showHidden':![],'depth':null}));});});},Migration[_0x30d8bf('0x16')][_0x30d8bf('0xb')]=function(_0xd1bf82){const _0x4ca50c=_0x30d8bf;this['sequence'][_0x4ca50c('0x2')](function(){return _0xd1bf82();});},module[_0x30d8bf('0x24')]={'up':function(_0x1331a7){return new Promise(function(_0x5986bd){const _0x258e36=a999_0x4393,_0x403331=new Migration(_0x1331a7);_0x403331[_0x258e36('0x8')](_0x258e36('0xe'),[_0x258e36('0x1d'),_0x258e36('0x14'),_0x258e36('0xd'),_0x258e36('0x4'),_0x258e36('0x7'),_0x258e36('0x1c')],{'indexName':_0x258e36('0x25'),'indicesType':_0x258e36('0xa')}),_0x403331['final'](_0x5986bd);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.17.js b/server/migrations/2.4.17.js index f6cea98..7600f08 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a1000_0x27b3=['Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','../config/logger','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','renameColumn','util','query\x20%s','final','addColumn','enqueue','catch','migration','addIndex','info','indexName','Removed\x20column\x20%s\x20from\x20%s','inspect','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','then','sequence','table\x20dropped\x20%s','query','sequelize','queryInterface','stringify','changeColumn','tail'];(function(_0x2bfa87,_0x27b3ce){const _0x5d6813=function(_0x20a290){while(--_0x20a290){_0x2bfa87['push'](_0x2bfa87['shift']());}};_0x5d6813(++_0x27b3ce);}(a1000_0x27b3,0xeb));const a1000_0x5d68=function(_0x2bfa87,_0x27b3ce){_0x2bfa87=_0x2bfa87-0x0;let _0x5d6813=a1000_0x27b3[_0x2bfa87];return _0x5d6813;};const _0x3358ea=a1000_0x5d68;'use strict';const util=require(_0x3358ea('0x5')),logger=require(_0x3358ea('0x1f'))(_0x3358ea('0xb')),Sequence=function(){};Sequence[_0x3358ea('0x13')]['enqueue']=function(_0x20a290){const _0x2c9a8c=_0x3358ea;this[_0x2c9a8c('0x1c')]=this[_0x2c9a8c('0x1c')]?this[_0x2c9a8c('0x1c')][_0x2c9a8c('0x20')](_0x20a290):_0x20a290();};const Migration=function(_0x47233c){const _0x33810f=_0x3358ea;this[_0x33810f('0x19')]=_0x47233c,this[_0x33810f('0x15')]=new Sequence();};Migration['prototype'][_0x3358ea('0x1b')]=function(_0x3c444e,_0x179854,_0x1cb524){const _0x132819=_0x3358ea,_0x55f0d5=this;this[_0x132819('0x15')][_0x132819('0x9')](function(){const _0x523c86=_0x132819;return _0x55f0d5['queryInterface'][_0x523c86('0x1b')](_0x3c444e,_0x179854,_0x1cb524)[_0x523c86('0x14')](function(){const _0x223af8=_0x523c86;logger[_0x223af8('0xd')](_0x223af8('0x0'),_0x179854,_0x3c444e);})[_0x523c86('0xa')](function(_0x4b61fe){const _0xb90e98=_0x523c86;logger[_0xb90e98('0xd')](JSON['stringify'](_0x4b61fe));});});},Migration['prototype'][_0x3358ea('0x8')]=function(_0x2ac4af,_0x5a9d75,_0x119224){const _0x3c5064=_0x3358ea,_0x1d98ef=this;this[_0x3c5064('0x15')][_0x3c5064('0x9')](function(){const _0x25efcd=_0x3c5064;return _0x1d98ef[_0x25efcd('0x19')][_0x25efcd('0x8')](_0x2ac4af,_0x5a9d75,_0x119224)[_0x25efcd('0x14')](function(){const _0x45d4f8=_0x25efcd;logger['info'](_0x45d4f8('0x1d'),_0x5a9d75,_0x2ac4af);})[_0x25efcd('0xa')](function(_0x56344d){const _0x19fbad=_0x25efcd;logger[_0x19fbad('0xd')](JSON[_0x19fbad('0x1a')](_0x56344d));});});},Migration[_0x3358ea('0x13')]['dropTable']=function(_0x2d01d5){const _0x3719fd=_0x3358ea,_0x23b00e=this;this[_0x3719fd('0x15')][_0x3719fd('0x9')](function(){const _0x304279=_0x3719fd;return _0x23b00e[_0x304279('0x19')][_0x304279('0x3')](_0x2d01d5,{'force':!![]})['then'](function(){const _0x3dd1f0=_0x304279;logger[_0x3dd1f0('0xd')](_0x3dd1f0('0x16'),_0x2d01d5);})[_0x304279('0xa')](function(_0x245d2a){const _0x59c81b=_0x304279;logger['info'](JSON[_0x59c81b('0x1a')](_0x245d2a));});});},Migration['prototype']['addIndex']=function(_0x135e16,_0x22a986,_0x58654e){const _0x43faa2=_0x3358ea,_0x503efb=this;this[_0x43faa2('0x15')][_0x43faa2('0x9')](function(){const _0x79700c=_0x43faa2;return _0x503efb[_0x79700c('0x19')][_0x79700c('0xc')](_0x135e16,_0x22a986,{'indexName':_0x58654e[_0x79700c('0xe')],'indicesType':_0x58654e[_0x79700c('0x1')]})[_0x79700c('0x14')](function(){const _0x4bfff1=_0x79700c;logger[_0x4bfff1('0xd')](_0x4bfff1('0x12'),_0x135e16,_0x22a986['join'](','),_0x58654e['indexName'],_0x58654e[_0x4bfff1('0x1')]);})['catch'](function(_0xf651ef){const _0x51e4f4=_0x79700c;logger[_0x51e4f4('0xd')](JSON[_0x51e4f4('0x1a')](_0xf651ef));});});},Migration['prototype'][_0x3358ea('0x11')]=function(_0xe78fe6,_0x51b6fb){const _0x520919=_0x3358ea,_0x27bb60=this;this[_0x520919('0x15')]['enqueue'](function(){const _0x527fb2=_0x520919;return _0x27bb60[_0x527fb2('0x19')][_0x527fb2('0x11')](_0xe78fe6,_0x51b6fb)[_0x527fb2('0x14')](function(){const _0x240ead=_0x527fb2;logger[_0x240ead('0xd')](_0x240ead('0x1e'),_0xe78fe6,_0x51b6fb);})['catch'](function(_0x13dfa4){const _0x11fd4e=_0x527fb2;logger[_0x11fd4e('0xd')](JSON[_0x11fd4e('0x1a')](_0x13dfa4));});});},Migration['prototype'][_0x3358ea('0x17')]=function(_0x368c07){const _0x181877=this;this['sequence']['enqueue'](function(){const _0x1e4898=a1000_0x5d68;return _0x181877[_0x1e4898('0x19')][_0x1e4898('0x18')]['query'](_0x368c07)[_0x1e4898('0x14')](function(){const _0x38559c=_0x1e4898;logger[_0x38559c('0xd')](_0x38559c('0x6'),_0x368c07);})[_0x1e4898('0xa')](function(_0x42957b){const _0x4e772f=_0x1e4898;logger[_0x4e772f('0xd')](JSON['stringify'](_0x42957b));});});},Migration[_0x3358ea('0x13')]['removeColumn']=function(_0x4c7e86,_0x42676b){const _0x244e07=_0x3358ea,_0x4ac821=this;this[_0x244e07('0x15')]['enqueue'](function(){const _0x5337fc=_0x244e07;return _0x4ac821[_0x5337fc('0x19')]['removeColumn'](_0x4c7e86,_0x42676b)['then'](function(){const _0x1291c6=_0x5337fc;logger[_0x1291c6('0xd')](_0x1291c6('0xf'),_0x42676b,_0x4c7e86);})[_0x5337fc('0xa')](function(_0x4f7907){const _0x35966a=_0x5337fc;logger[_0x35966a('0xd')](util[_0x35966a('0x10')](_0x4f7907,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3358ea('0x4')]=function(_0x4753dd,_0x57aba3,_0x4378a4){const _0x598bd2=_0x3358ea,_0x54a5e6=this;this[_0x598bd2('0x15')][_0x598bd2('0x9')](function(){const _0x577bed=_0x598bd2;return _0x54a5e6[_0x577bed('0x19')][_0x577bed('0x4')](_0x4753dd,_0x57aba3,_0x4378a4)[_0x577bed('0x14')](function(){const _0x20201f=_0x577bed;logger[_0x20201f('0xd')](_0x20201f('0x2'),_0x57aba3,_0x4378a4,_0x4753dd);})[_0x577bed('0xa')](function(_0xe8ebfd){const _0x551891=_0x577bed;logger['info'](util[_0x551891('0x10')](_0xe8ebfd,{'showHidden':![],'depth':null}));});});},Migration[_0x3358ea('0x13')][_0x3358ea('0x7')]=function(_0x4a9dde){const _0x93e04=_0x3358ea;this[_0x93e04('0x15')]['enqueue'](function(){return _0x4a9dde();});},module['exports']={'up':function(_0x456515){return new Promise(function(_0x567b13){const _0x16565e=a1000_0x5d68,_0x44c264=new Migration(_0x456515);_0x44c264[_0x16565e('0x7')](_0x567b13);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.18.js b/server/migrations/2.4.18.js index 196b41f..409afe1 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1001_0x327b=['indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','removeIndex\x20%s\x20%s','then','info','query\x20%s','prototype','dropTable','Removed\x20column\x20%s\x20from\x20%s','addColumn','tail','table\x20dropped\x20%s','sequelize','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','final','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','inspect','exports','renameColumn','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','finally','catch','queryInterface','util','Added\x20column\x20%s\x20to\x20%s','join','removeIndex','enqueue','indicesType','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','removeColumn','migration','stringify','sequence'];(function(_0x12fe66,_0x327b71){const _0xa51080=function(_0x2af1c7){while(--_0x2af1c7){_0x12fe66['push'](_0x12fe66['shift']());}};_0xa51080(++_0x327b71);}(a1001_0x327b,0x88));const a1001_0xa510=function(_0x12fe66,_0x327b71){_0x12fe66=_0x12fe66-0x0;let _0xa51080=a1001_0x327b[_0x12fe66];return _0xa51080;};const _0x1aaff9=a1001_0xa510;'use strict';const util=require(_0x1aaff9('0x0')),logger=require(_0x1aaff9('0xe'))(_0x1aaff9('0x9')),Sequence=function(){};Sequence[_0x1aaff9('0x13')][_0x1aaff9('0x4')]=function(_0x2af1c7){const _0x545904=_0x1aaff9;this['tail']=this[_0x545904('0x17')]?this[_0x545904('0x17')][_0x545904('0x22')](_0x2af1c7):_0x2af1c7();};const Migration=function(_0x5839df){const _0x190d4f=_0x1aaff9;this['queryInterface']=_0x5839df,this[_0x190d4f('0xb')]=new Sequence();};Migration[_0x1aaff9('0x13')]['changeColumn']=function(_0x50417e,_0x12dc3f,_0x26e1d8){const _0x318d32=_0x1aaff9,_0x23edda=this;this['sequence'][_0x318d32('0x4')](function(){return _0x23edda['queryInterface']['changeColumn'](_0x50417e,_0x12dc3f,_0x26e1d8)['then'](function(){const _0x57f9c4=a1001_0xa510;logger['info'](_0x57f9c4('0x1b'),_0x12dc3f,_0x50417e);})['catch'](function(_0x2f7753){const _0x58b6c1=a1001_0xa510;logger[_0x58b6c1('0x11')](JSON[_0x58b6c1('0xa')](_0x2f7753));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x16')]=function(_0x371ef4,_0x57e0c4,_0x40ec3d){const _0x27577b=_0x1aaff9,_0x508040=this;this['sequence'][_0x27577b('0x4')](function(){const _0x5ab98f=_0x27577b;return _0x508040['queryInterface'][_0x5ab98f('0x16')](_0x371ef4,_0x57e0c4,_0x40ec3d)[_0x5ab98f('0x10')](function(){const _0x414c06=_0x5ab98f;logger[_0x414c06('0x11')](_0x414c06('0x1'),_0x57e0c4,_0x371ef4);})['catch'](function(_0x59d27e){const _0x5840eb=_0x5ab98f;logger[_0x5840eb('0x11')](JSON[_0x5840eb('0xa')](_0x59d27e));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x14')]=function(_0x350cd0){const _0x4d14ef=_0x1aaff9,_0x511171=this;this[_0x4d14ef('0xb')][_0x4d14ef('0x4')](function(){const _0x312fc2=_0x4d14ef;return _0x511171[_0x312fc2('0x24')][_0x312fc2('0x14')](_0x350cd0,{'force':!![]})[_0x312fc2('0x10')](function(){const _0x17bd75=_0x312fc2;logger['info'](_0x17bd75('0x18'),_0x350cd0);})[_0x312fc2('0x23')](function(_0x50efe2){logger['info'](JSON['stringify'](_0x50efe2));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x1a')]=function(_0x339f24,_0x194575,_0x55db55){const _0xf33cb7=_0x1aaff9,_0x5e71c9=this;this[_0xf33cb7('0xb')]['enqueue'](function(){const _0xbeaccf=_0xf33cb7;return _0x5e71c9[_0xbeaccf('0x24')][_0xbeaccf('0x1a')](_0x339f24,_0x194575,{'indexName':_0x55db55[_0xbeaccf('0xc')],'indicesType':_0x55db55['indicesType']})[_0xbeaccf('0x10')](function(){const _0x4fa356=_0xbeaccf;logger[_0x4fa356('0x11')](_0x4fa356('0xd'),_0x339f24,_0x194575[_0x4fa356('0x2')](','),_0x55db55[_0x4fa356('0xc')],_0x55db55[_0x4fa356('0x5')]);})[_0xbeaccf('0x23')](function(_0x28d86b){const _0x5807f1=_0xbeaccf;logger['info'](JSON[_0x5807f1('0xa')](_0x28d86b));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x3')]=function(_0xa5897b,_0x305262){const _0x465be4=_0x1aaff9,_0x3cfe9d=this;this['sequence'][_0x465be4('0x4')](function(){const _0x38d0d6=_0x465be4;return _0x3cfe9d[_0x38d0d6('0x24')][_0x38d0d6('0x3')](_0xa5897b,_0x305262)[_0x38d0d6('0x10')](function(){const _0x33a9e4=_0x38d0d6;logger[_0x33a9e4('0x11')](_0x33a9e4('0xf'),_0xa5897b,_0x305262);})['catch'](function(_0x2b5ed9){const _0x355e94=_0x38d0d6;logger[_0x355e94('0x11')](JSON[_0x355e94('0xa')](_0x2b5ed9));});});},Migration[_0x1aaff9('0x13')]['query']=function(_0x24a31f){const _0x30dd0a=this;this['sequence']['enqueue'](function(){const _0x1b65f4=a1001_0xa510;return _0x30dd0a[_0x1b65f4('0x24')][_0x1b65f4('0x19')][_0x1b65f4('0x7')](_0x24a31f)['then'](function(){const _0x46a818=_0x1b65f4;logger[_0x46a818('0x11')](_0x46a818('0x12'),_0x24a31f);})[_0x1b65f4('0x23')](function(_0x5789bb){const _0x183cb1=_0x1b65f4;logger['info'](JSON[_0x183cb1('0xa')](_0x5789bb));});});},Migration[_0x1aaff9('0x13')]['removeColumn']=function(_0x304980,_0xba47f6){const _0x48ea66=_0x1aaff9,_0x41d726=this;this['sequence'][_0x48ea66('0x4')](function(){const _0x51f649=_0x48ea66;return _0x41d726[_0x51f649('0x24')][_0x51f649('0x8')](_0x304980,_0xba47f6)['then'](function(){const _0x8088c6=_0x51f649;logger[_0x8088c6('0x11')](_0x8088c6('0x15'),_0xba47f6,_0x304980);})['catch'](function(_0x1177f0){const _0x58512b=_0x51f649;logger[_0x58512b('0x11')](util['inspect'](_0x1177f0,{'showHidden':![],'depth':null}));});});},Migration[_0x1aaff9('0x13')][_0x1aaff9('0x20')]=function(_0x4c2627,_0x7d7eff,_0x35eb9b){const _0x285b5f=_0x1aaff9,_0x4a8ae3=this;this[_0x285b5f('0xb')][_0x285b5f('0x4')](function(){const _0x5e5b62=_0x285b5f;return _0x4a8ae3[_0x5e5b62('0x24')][_0x5e5b62('0x20')](_0x4c2627,_0x7d7eff,_0x35eb9b)[_0x5e5b62('0x10')](function(){const _0x34a030=_0x5e5b62;logger['info'](_0x34a030('0x6'),_0x7d7eff,_0x35eb9b,_0x4c2627);})[_0x5e5b62('0x23')](function(_0x31c18f){const _0x28ee9e=_0x5e5b62;logger[_0x28ee9e('0x11')](util[_0x28ee9e('0x1e')](_0x31c18f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1aaff9('0x1c')]=function(_0x6eda22){const _0x48e503=_0x1aaff9;this[_0x48e503('0xb')][_0x48e503('0x4')](function(){return _0x6eda22();});},module[_0x1aaff9('0x1f')]={'up':function(_0x15e825){return new Promise(function(_0x2c200e){const _0x153ef8=a1001_0xa510,_0x1e3acb=new Migration(_0x15e825);_0x1e3acb[_0x153ef8('0x7')](_0x153ef8('0x21')),_0x1e3acb[_0x153ef8('0x7')](_0x153ef8('0x1d')),_0x1e3acb[_0x153ef8('0x1c')](_0x2c200e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.19.js b/server/migrations/2.4.19.js index 8e10385..dc3c982 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1002_0x53d2=['tail','info','network','externip','exports','Added\x20column\x20%s\x20to\x20%s','query\x20%s','int_zoho_configurations','indicesType','then','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','catch','moduleCreate','join','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','addColumn','Contacts','changeColumn','lead','removeIndex\x20%s\x20%s','nothing','username','../config/logger','STRING','removeIndex','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','ENUM','addIndex','contact','prototype','finally','stringify','query','indexName','contact_lead','migration','final','queryInterface','sequence','inspect','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','removeColumn','util','stun'];(function(_0x4759dd,_0x53d227){const _0x58a760=function(_0x13c8d5){while(--_0x13c8d5){_0x4759dd['push'](_0x4759dd['shift']());}};_0x58a760(++_0x53d227);}(a1002_0x53d2,0x68));const a1002_0x58a7=function(_0x4759dd,_0x53d227){_0x4759dd=_0x4759dd-0x0;let _0x58a760=a1002_0x53d2[_0x4759dd];return _0x58a760;};const _0x1fd415=a1002_0x58a7;'use strict';const util=require(_0x1fd415('0x26')),logger=require(_0x1fd415('0x10'))(_0x1fd415('0x1d')),Sequence=function(){};Sequence[_0x1fd415('0x17')]['enqueue']=function(_0x13c8d5){const _0x5b5e05=_0x1fd415;this['tail']=this[_0x5b5e05('0x28')]?this[_0x5b5e05('0x28')][_0x5b5e05('0x18')](_0x13c8d5):_0x13c8d5();};const Migration=function(_0x1fc888){const _0x2e209c=_0x1fd415;this[_0x2e209c('0x1f')]=_0x1fc888,this['sequence']=new Sequence();};Migration[_0x1fd415('0x17')][_0x1fd415('0xb')]=function(_0x10c066,_0x35d647,_0x9c9470){const _0x4a09ad=_0x1fd415,_0x9d7447=this;this[_0x4a09ad('0x20')][_0x4a09ad('0x24')](function(){const _0x5943fe=_0x4a09ad;return _0x9d7447['queryInterface'][_0x5943fe('0xb')](_0x10c066,_0x35d647,_0x9c9470)[_0x5943fe('0x1')](function(){const _0x545608=_0x5943fe;logger[_0x545608('0x29')](_0x545608('0x23'),_0x35d647,_0x10c066);})[_0x5943fe('0x5')](function(_0x425ecf){const _0x22f216=_0x5943fe;logger[_0x22f216('0x29')](JSON['stringify'](_0x425ecf));});});},Migration[_0x1fd415('0x17')][_0x1fd415('0x9')]=function(_0x2bbe75,_0xd0413,_0x28bcae){const _0x4bd82f=_0x1fd415,_0x5e38dc=this;this[_0x4bd82f('0x20')][_0x4bd82f('0x24')](function(){const _0x294a69=_0x4bd82f;return _0x5e38dc[_0x294a69('0x1f')][_0x294a69('0x9')](_0x2bbe75,_0xd0413,_0x28bcae)[_0x294a69('0x1')](function(){const _0x210a94=_0x294a69;logger['info'](_0x210a94('0x2d'),_0xd0413,_0x2bbe75);})[_0x294a69('0x5')](function(_0x13cd87){const _0x158c4b=_0x294a69;logger[_0x158c4b('0x29')](JSON[_0x158c4b('0x19')](_0x13cd87));});});},Migration['prototype'][_0x1fd415('0x2')]=function(_0x55afba){const _0x1c5ec3=_0x1fd415,_0x266500=this;this[_0x1c5ec3('0x20')]['enqueue'](function(){const _0x19c2e6=_0x1c5ec3;return _0x266500['queryInterface'][_0x19c2e6('0x2')](_0x55afba,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x55afba);})[_0x19c2e6('0x5')](function(_0x3828b8){const _0x4f658e=_0x19c2e6;logger['info'](JSON[_0x4f658e('0x19')](_0x3828b8));});});},Migration['prototype'][_0x1fd415('0x15')]=function(_0x36b74b,_0x5ca1f7,_0x442a91){const _0x5da199=_0x1fd415,_0x558c90=this;this[_0x5da199('0x20')]['enqueue'](function(){const _0x4943ab=_0x5da199;return _0x558c90[_0x4943ab('0x1f')]['addIndex'](_0x36b74b,_0x5ca1f7,{'indexName':_0x442a91[_0x4943ab('0x1b')],'indicesType':_0x442a91[_0x4943ab('0x0')]})[_0x4943ab('0x1')](function(){const _0xd4503=_0x4943ab;logger[_0xd4503('0x29')](_0xd4503('0x3'),_0x36b74b,_0x5ca1f7[_0xd4503('0x7')](','),_0x442a91[_0xd4503('0x1b')],_0x442a91[_0xd4503('0x0')]);})[_0x4943ab('0x5')](function(_0x40857b){const _0x572f45=_0x4943ab;logger[_0x572f45('0x29')](JSON[_0x572f45('0x19')](_0x40857b));});});},Migration[_0x1fd415('0x17')][_0x1fd415('0x12')]=function(_0x522739,_0x5e06ae){const _0x52afaa=_0x1fd415,_0x533367=this;this[_0x52afaa('0x20')][_0x52afaa('0x24')](function(){const _0x472029=_0x52afaa;return _0x533367[_0x472029('0x1f')][_0x472029('0x12')](_0x522739,_0x5e06ae)[_0x472029('0x1')](function(){const _0x2780c6=_0x472029;logger[_0x2780c6('0x29')](_0x2780c6('0xd'),_0x522739,_0x5e06ae);})['catch'](function(_0x5d2b62){const _0x1f17b9=_0x472029;logger[_0x1f17b9('0x29')](JSON[_0x1f17b9('0x19')](_0x5d2b62));});});},Migration[_0x1fd415('0x17')]['query']=function(_0x5602c6){const _0x14e9c2=_0x1fd415,_0x58a421=this;this[_0x14e9c2('0x20')][_0x14e9c2('0x24')](function(){const _0x8da5ce=_0x14e9c2;return _0x58a421[_0x8da5ce('0x1f')][_0x8da5ce('0x4')][_0x8da5ce('0x1a')](_0x5602c6)[_0x8da5ce('0x1')](function(){const _0x50e422=_0x8da5ce;logger[_0x50e422('0x29')](_0x50e422('0x2e'),_0x5602c6);})[_0x8da5ce('0x5')](function(_0x1b5828){const _0x42fc5a=_0x8da5ce;logger[_0x42fc5a('0x29')](JSON[_0x42fc5a('0x19')](_0x1b5828));});});},Migration[_0x1fd415('0x17')][_0x1fd415('0x25')]=function(_0x27296c,_0x273ac3){const _0x3e54ef=_0x1fd415,_0x3533de=this;this[_0x3e54ef('0x20')][_0x3e54ef('0x24')](function(){const _0x355969=_0x3e54ef;return _0x3533de['queryInterface'][_0x355969('0x25')](_0x27296c,_0x273ac3)[_0x355969('0x1')](function(){const _0x3cbda4=_0x355969;logger[_0x3cbda4('0x29')](_0x3cbda4('0x22'),_0x273ac3,_0x27296c);})[_0x355969('0x5')](function(_0x428018){logger['info'](util['inspect'](_0x428018,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xb702cb,_0x586192,_0x2fd6ec){const _0x2fa251=_0x1fd415,_0x39a7da=this;this[_0x2fa251('0x20')][_0x2fa251('0x24')](function(){const _0x38df21=_0x2fa251;return _0x39a7da['queryInterface']['renameColumn'](_0xb702cb,_0x586192,_0x2fd6ec)[_0x38df21('0x1')](function(){const _0x507bc0=_0x38df21;logger[_0x507bc0('0x29')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x586192,_0x2fd6ec,_0xb702cb);})[_0x38df21('0x5')](function(_0x31b88e){const _0x5a6fa8=_0x38df21;logger[_0x5a6fa8('0x29')](util[_0x5a6fa8('0x21')](_0x31b88e,{'showHidden':![],'depth':null}));});});},Migration[_0x1fd415('0x17')][_0x1fd415('0x1e')]=function(_0x4225f7){const _0x2f2fcb=_0x1fd415;this[_0x2f2fcb('0x20')][_0x2f2fcb('0x24')](function(){return _0x4225f7();});},module[_0x1fd415('0x2c')]={'up':function(_0x29fea5,_0x154878){return new Promise(function(_0x76dea7){const _0xfa9346=a1002_0x58a7,_0x5dcc27=new Migration(_0x29fea5);_0x5dcc27[_0xfa9346('0x9')](_0xfa9346('0x2f'),'moduleSearch',{'type':_0x154878[_0xfa9346('0x14')](_0xfa9346('0x1c'),_0xfa9346('0x16'),_0xfa9346('0xc')),'defaultValue':'contact_lead'}),_0x5dcc27['changeColumn'](_0xfa9346('0x2f'),'moduleCreate',{'type':_0x154878[_0xfa9346('0x14')]('Leads',_0xfa9346('0xa'),'nothing',_0xfa9346('0x16'),_0xfa9346('0xc'))}),_0x5dcc27['query'](_0xfa9346('0x13')),_0x5dcc27[_0xfa9346('0x1a')](_0xfa9346('0x8')),_0x5dcc27[_0xfa9346('0xb')](_0xfa9346('0x2f'),_0xfa9346('0x6'),{'type':_0x154878[_0xfa9346('0x14')](_0xfa9346('0xe'),_0xfa9346('0x16'),_0xfa9346('0xc')),'defaultValue':_0xfa9346('0xc')}),_0x5dcc27[_0xfa9346('0x9')]('network',_0xfa9346('0xf'),{'type':_0x154878[_0xfa9346('0x11')]}),_0x5dcc27[_0xfa9346('0x9')](_0xfa9346('0x2a'),'password',{'type':_0x154878[_0xfa9346('0x11')]}),_0x5dcc27['changeColumn']('network','type',{'type':_0x154878[_0xfa9346('0x14')]('localnet',_0xfa9346('0x2b'),_0xfa9346('0x27'),'turn')}),_0x5dcc27[_0xfa9346('0x1a')]('INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27'),_0x5dcc27[_0xfa9346('0x1a')]('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'),_0x5dcc27[_0xfa9346('0x1e')](_0x76dea7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.2.js b/server/migrations/2.4.2.js index 36c0448..8194dea 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1003_0x2987=['final','removeColumn','Added\x20column\x20%s\x20to\x20%s','query','stringify','settings','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','blocked','users','addIndex','changeColumn','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','renameColumn','indexName','BOOLEAN','query\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','removeIndex','inspect','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','then','sequence','join','catch','sequelize','allowedLoginAttempts','tail','prototype','exports','../config/logger','removeIndex\x20%s\x20%s','dropTable','addColumn','blockedAt','table\x20dropped\x20%s','INTEGER','indicesType','enqueue'];(function(_0x22941e,_0x298757){const _0x4aac3a=function(_0x557a6c){while(--_0x557a6c){_0x22941e['push'](_0x22941e['shift']());}};_0x4aac3a(++_0x298757);}(a1003_0x2987,0xba));const a1003_0x4aac=function(_0x22941e,_0x298757){_0x22941e=_0x22941e-0x0;let _0x4aac3a=a1003_0x2987[_0x22941e];return _0x4aac3a;};const _0x122d96=a1003_0x4aac;'use strict';const util=require('util'),logger=require(_0x122d96('0x5'))('migration'),Sequence=function(){};Sequence[_0x122d96('0x3')][_0x122d96('0xd')]=function(_0x557a6c){const _0x26020f=_0x122d96;this['tail']=this[_0x26020f('0x2')]?this[_0x26020f('0x2')]['finally'](_0x557a6c):_0x557a6c();};const Migration=function(_0x45540e){const _0x48b58e=_0x122d96;this[_0x48b58e('0x1f')]=_0x45540e,this[_0x48b58e('0x25')]=new Sequence();};Migration[_0x122d96('0x3')]['changeColumn']=function(_0x259ab4,_0x128dde,_0x293424){const _0x4489fc=_0x122d96,_0x17c225=this;this[_0x4489fc('0x25')][_0x4489fc('0xd')](function(){const _0x2c1424=_0x4489fc;return _0x17c225['queryInterface'][_0x2c1424('0x19')](_0x259ab4,_0x128dde,_0x293424)['then'](function(){const _0x235189=_0x2c1424;logger[_0x235189('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x128dde,_0x259ab4);})[_0x2c1424('0x27')](function(_0x45a989){logger['info'](JSON['stringify'](_0x45a989));});});},Migration[_0x122d96('0x3')][_0x122d96('0x8')]=function(_0x592c61,_0x306b0b,_0x3d4c13){const _0x19dd79=_0x122d96,_0x34b104=this;this[_0x19dd79('0x25')][_0x19dd79('0xd')](function(){const _0x4be765=_0x19dd79;return _0x34b104['queryInterface'][_0x4be765('0x8')](_0x592c61,_0x306b0b,_0x3d4c13)[_0x4be765('0x24')](function(){const _0x525f53=_0x4be765;logger[_0x525f53('0x14')](_0x525f53('0x10'),_0x306b0b,_0x592c61);})[_0x4be765('0x27')](function(_0x2e5756){const _0x1b148f=_0x4be765;logger['info'](JSON[_0x1b148f('0x12')](_0x2e5756));});});},Migration[_0x122d96('0x3')][_0x122d96('0x7')]=function(_0x57ac4a){const _0x33244b=_0x122d96,_0x241a9c=this;this[_0x33244b('0x25')][_0x33244b('0xd')](function(){const _0x2f268a=_0x33244b;return _0x241a9c[_0x2f268a('0x1f')][_0x2f268a('0x7')](_0x57ac4a,{'force':!![]})['then'](function(){const _0x40751f=_0x2f268a;logger[_0x40751f('0x14')](_0x40751f('0xa'),_0x57ac4a);})['catch'](function(_0x5123b2){const _0x52840b=_0x2f268a;logger[_0x52840b('0x14')](JSON['stringify'](_0x5123b2));});});},Migration[_0x122d96('0x3')][_0x122d96('0x18')]=function(_0x468718,_0x54747f,_0xacb8f7){const _0x47a7bc=_0x122d96,_0x3658e9=this;this[_0x47a7bc('0x25')][_0x47a7bc('0xd')](function(){const _0x260613=_0x47a7bc;return _0x3658e9[_0x260613('0x1f')][_0x260613('0x18')](_0x468718,_0x54747f,{'indexName':_0xacb8f7[_0x260613('0x1c')],'indicesType':_0xacb8f7[_0x260613('0xc')]})['then'](function(){const _0x2a06da=_0x260613;logger[_0x2a06da('0x14')](_0x2a06da('0x15'),_0x468718,_0x54747f[_0x2a06da('0x26')](','),_0xacb8f7[_0x2a06da('0x1c')],_0xacb8f7[_0x2a06da('0xc')]);})[_0x260613('0x27')](function(_0x18ef03){const _0x371236=_0x260613;logger[_0x371236('0x14')](JSON['stringify'](_0x18ef03));});});},Migration[_0x122d96('0x3')]['removeIndex']=function(_0x31ae6d,_0x4f97f9){const _0x2d9a1e=_0x122d96,_0x18dd2b=this;this[_0x2d9a1e('0x25')][_0x2d9a1e('0xd')](function(){const _0x521761=_0x2d9a1e;return _0x18dd2b[_0x521761('0x1f')][_0x521761('0x21')](_0x31ae6d,_0x4f97f9)[_0x521761('0x24')](function(){const _0x26ca42=_0x521761;logger[_0x26ca42('0x14')](_0x26ca42('0x6'),_0x31ae6d,_0x4f97f9);})[_0x521761('0x27')](function(_0x216f02){const _0x5e251e=_0x521761;logger[_0x5e251e('0x14')](JSON[_0x5e251e('0x12')](_0x216f02));});});},Migration[_0x122d96('0x3')][_0x122d96('0x11')]=function(_0x22e0b5){const _0x2866be=_0x122d96,_0x3f0102=this;this[_0x2866be('0x25')][_0x2866be('0xd')](function(){const _0x41b91b=_0x2866be;return _0x3f0102[_0x41b91b('0x1f')][_0x41b91b('0x0')][_0x41b91b('0x11')](_0x22e0b5)[_0x41b91b('0x24')](function(){const _0x429d5f=_0x41b91b;logger[_0x429d5f('0x14')](_0x429d5f('0x1e'),_0x22e0b5);})['catch'](function(_0x232203){const _0x321dbf=_0x41b91b;logger[_0x321dbf('0x14')](JSON[_0x321dbf('0x12')](_0x232203));});});},Migration[_0x122d96('0x3')][_0x122d96('0xf')]=function(_0x387cef,_0x19ba19){const _0x305a2e=_0x122d96,_0x38a410=this;this[_0x305a2e('0x25')]['enqueue'](function(){const _0x4dda37=_0x305a2e;return _0x38a410[_0x4dda37('0x1f')][_0x4dda37('0xf')](_0x387cef,_0x19ba19)[_0x4dda37('0x24')](function(){const _0x3cc7f3=_0x4dda37;logger[_0x3cc7f3('0x14')](_0x3cc7f3('0x20'),_0x19ba19,_0x387cef);})[_0x4dda37('0x27')](function(_0x451140){const _0x46e985=_0x4dda37;logger[_0x46e985('0x14')](util[_0x46e985('0x22')](_0x451140,{'showHidden':![],'depth':null}));});});},Migration[_0x122d96('0x3')][_0x122d96('0x1b')]=function(_0x5edc0a,_0x5b3464,_0xb433a){const _0x5f28ad=_0x122d96,_0x2c0f4a=this;this[_0x5f28ad('0x25')][_0x5f28ad('0xd')](function(){const _0x4f784b=_0x5f28ad;return _0x2c0f4a['queryInterface'][_0x4f784b('0x1b')](_0x5edc0a,_0x5b3464,_0xb433a)[_0x4f784b('0x24')](function(){const _0x187ec9=_0x4f784b;logger[_0x187ec9('0x14')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b3464,_0xb433a,_0x5edc0a);})[_0x4f784b('0x27')](function(_0x450b5b){const _0x558c23=_0x4f784b;logger[_0x558c23('0x14')](util['inspect'](_0x450b5b,{'showHidden':![],'depth':null}));});});},Migration[_0x122d96('0x3')]['final']=function(_0x349276){const _0x49a1f6=_0x122d96;this[_0x49a1f6('0x25')]['enqueue'](function(){return _0x349276();});},module[_0x122d96('0x4')]={'up':function(_0x3eb4c7,_0x41b827){return new Promise(function(_0x45386e){const _0x2969a6=a1003_0x4aac,_0x2f8bff=new Migration(_0x3eb4c7);_0x2f8bff['addColumn'](_0x2969a6('0x13'),_0x2969a6('0x1'),{'type':_0x41b827['INTEGER'],'defaultValue':0x5}),_0x2f8bff[_0x2969a6('0x8')]('settings','blockDuration',{'type':_0x41b827[_0x2969a6('0xb')],'defaultValue':0xa}),_0x2f8bff['query'](_0x2969a6('0x23')),_0x2f8bff[_0x2969a6('0x8')]('users',_0x2969a6('0x16'),{'type':_0x41b827['BOOLEAN'],'defaultValue':![]}),_0x2f8bff[_0x2969a6('0x8')](_0x2969a6('0x17'),'loginAttempts',{'type':_0x41b827[_0x2969a6('0xb')],'defaultValue':0x0}),_0x2f8bff['addColumn'](_0x2969a6('0x17'),_0x2969a6('0x9'),{'type':_0x41b827['DATE'],'defaultValue':null}),_0x2f8bff[_0x2969a6('0x8')]('users','disabled',{'type':_0x41b827[_0x2969a6('0x1d')],'defaultValue':![]}),_0x2f8bff['query'](_0x2969a6('0x1a')),_0x2f8bff[_0x2969a6('0xe')](_0x45386e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.20.js b/server/migrations/2.4.20.js index 071f920..abdd1d5 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1004_0x395a=['addIndex','then','../config/logger','changeColumn','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','exports','googleSsoEnabled','dropTable','query\x20%s','util','settings','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','indexName','sequelize','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','tail','addColumn','inspect','final','prototype','info','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','removeIndex','stringify','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','enqueue','indicesType','join','finally','queryInterface'];(function(_0x4a6b78,_0x395a91){const _0xeb54f6=function(_0x457637){while(--_0x457637){_0x4a6b78['push'](_0x4a6b78['shift']());}};_0xeb54f6(++_0x395a91);}(a1004_0x395a,0x18b));const a1004_0xeb54=function(_0x4a6b78,_0x395a91){_0x4a6b78=_0x4a6b78-0x0;let _0xeb54f6=a1004_0x395a[_0x4a6b78];return _0xeb54f6;};const _0x3d4554=a1004_0xeb54;'use strict';const util=require(_0x3d4554('0x15')),logger=require(_0x3d4554('0xe'))(_0x3d4554('0x4')),Sequence=function(){};Sequence['prototype'][_0x3d4554('0x7')]=function(_0x457637){const _0x24b2b1=_0x3d4554;this[_0x24b2b1('0x1e')]=this[_0x24b2b1('0x1e')]?this[_0x24b2b1('0x1e')][_0x24b2b1('0xa')](_0x457637):_0x457637();};const Migration=function(_0x3559ac){const _0x80262=_0x3d4554;this[_0x80262('0xb')]=_0x3559ac,this[_0x80262('0x19')]=new Sequence();};Migration['prototype'][_0x3d4554('0xf')]=function(_0x449036,_0x303284,_0x2ddc6c){const _0x1a7b33=_0x3d4554,_0x527889=this;this[_0x1a7b33('0x19')][_0x1a7b33('0x7')](function(){const _0x33d3b3=_0x1a7b33;return _0x527889[_0x33d3b3('0xb')][_0x33d3b3('0xf')](_0x449036,_0x303284,_0x2ddc6c)[_0x33d3b3('0xd')](function(){const _0x5cbbab=_0x33d3b3;logger[_0x5cbbab('0x23')](_0x5cbbab('0x5'),_0x303284,_0x449036);})['catch'](function(_0x304c78){const _0x3c2799=_0x33d3b3;logger[_0x3c2799('0x23')](JSON[_0x3c2799('0x3')](_0x304c78));});});},Migration['prototype'][_0x3d4554('0x1f')]=function(_0x16b8fe,_0x5959bd,_0x36f9e3){const _0x315881=_0x3d4554,_0x1f784d=this;this[_0x315881('0x19')][_0x315881('0x7')](function(){const _0x547785=_0x315881;return _0x1f784d['queryInterface'][_0x547785('0x1f')](_0x16b8fe,_0x5959bd,_0x36f9e3)[_0x547785('0xd')](function(){const _0x22ce18=_0x547785;logger[_0x22ce18('0x23')]('Added\x20column\x20%s\x20to\x20%s',_0x5959bd,_0x16b8fe);})[_0x547785('0x17')](function(_0x4aae82){const _0xf025f9=_0x547785;logger[_0xf025f9('0x23')](JSON[_0xf025f9('0x3')](_0x4aae82));});});},Migration[_0x3d4554('0x22')]['dropTable']=function(_0x18f1aa){const _0x457968=_0x3d4554,_0xf40582=this;this[_0x457968('0x19')][_0x457968('0x7')](function(){const _0x87fdd=_0x457968;return _0xf40582[_0x87fdd('0xb')][_0x87fdd('0x13')](_0x18f1aa,{'force':!![]})[_0x87fdd('0xd')](function(){const _0x13df9c=_0x87fdd;logger[_0x13df9c('0x23')]('table\x20dropped\x20%s',_0x18f1aa);})[_0x87fdd('0x17')](function(_0x6f19dc){const _0x22b3f2=_0x87fdd;logger[_0x22b3f2('0x23')](JSON[_0x22b3f2('0x3')](_0x6f19dc));});});},Migration[_0x3d4554('0x22')][_0x3d4554('0xc')]=function(_0x4ac238,_0x545712,_0xfba871){const _0x270bb1=_0x3d4554,_0x3ffa5b=this;this[_0x270bb1('0x19')][_0x270bb1('0x7')](function(){const _0x116eb6=_0x270bb1;return _0x3ffa5b[_0x116eb6('0xb')][_0x116eb6('0xc')](_0x4ac238,_0x545712,{'indexName':_0xfba871[_0x116eb6('0x1a')],'indicesType':_0xfba871[_0x116eb6('0x8')]})[_0x116eb6('0xd')](function(){const _0x52b3f0=_0x116eb6;logger[_0x52b3f0('0x23')](_0x52b3f0('0x18'),_0x4ac238,_0x545712[_0x52b3f0('0x9')](','),_0xfba871['indexName'],_0xfba871[_0x52b3f0('0x8')]);})[_0x116eb6('0x17')](function(_0x45e6e1){const _0x4f630e=_0x116eb6;logger['info'](JSON[_0x4f630e('0x3')](_0x45e6e1));});});},Migration[_0x3d4554('0x22')][_0x3d4554('0x2')]=function(_0x37cc63,_0x24ca09){const _0x25fb5d=_0x3d4554,_0x24aa07=this;this[_0x25fb5d('0x19')]['enqueue'](function(){const _0x5da94f=_0x25fb5d;return _0x24aa07[_0x5da94f('0xb')]['removeIndex'](_0x37cc63,_0x24ca09)[_0x5da94f('0xd')](function(){const _0x25fc23=_0x5da94f;logger[_0x25fc23('0x23')](_0x25fc23('0x1c'),_0x37cc63,_0x24ca09);})[_0x5da94f('0x17')](function(_0x43659e){const _0x4ecd21=_0x5da94f;logger[_0x4ecd21('0x23')](JSON[_0x4ecd21('0x3')](_0x43659e));});});},Migration[_0x3d4554('0x22')][_0x3d4554('0x24')]=function(_0x8fcff7){const _0x2e0656=_0x3d4554,_0x47122b=this;this['sequence'][_0x2e0656('0x7')](function(){const _0x38e872=_0x2e0656;return _0x47122b[_0x38e872('0xb')][_0x38e872('0x1b')][_0x38e872('0x24')](_0x8fcff7)[_0x38e872('0xd')](function(){const _0xc71c72=_0x38e872;logger[_0xc71c72('0x23')](_0xc71c72('0x14'),_0x8fcff7);})[_0x38e872('0x17')](function(_0x494324){const _0x4f2f63=_0x38e872;logger[_0x4f2f63('0x23')](JSON[_0x4f2f63('0x3')](_0x494324));});});},Migration['prototype']['removeColumn']=function(_0xb9ea3e,_0x361fab){const _0x3e53f9=_0x3d4554,_0x5494d6=this;this['sequence'][_0x3e53f9('0x7')](function(){const _0x1578b1=_0x3e53f9;return _0x5494d6[_0x1578b1('0xb')][_0x1578b1('0x6')](_0xb9ea3e,_0x361fab)[_0x1578b1('0xd')](function(){const _0x12dc7f=_0x1578b1;logger[_0x12dc7f('0x23')](_0x12dc7f('0x1d'),_0x361fab,_0xb9ea3e);})[_0x1578b1('0x17')](function(_0x4d28a6){const _0x507f67=_0x1578b1;logger[_0x507f67('0x23')](util[_0x507f67('0x20')](_0x4d28a6,{'showHidden':![],'depth':null}));});});},Migration[_0x3d4554('0x22')]['renameColumn']=function(_0xa6db43,_0x53a270,_0x290030){const _0x50e0d6=_0x3d4554,_0x5e46ea=this;this[_0x50e0d6('0x19')][_0x50e0d6('0x7')](function(){const _0x2008bc=_0x50e0d6;return _0x5e46ea[_0x2008bc('0xb')][_0x2008bc('0x1')](_0xa6db43,_0x53a270,_0x290030)['then'](function(){const _0x189a0a=_0x2008bc;logger['info'](_0x189a0a('0x0'),_0x53a270,_0x290030,_0xa6db43);})[_0x2008bc('0x17')](function(_0x4a47b5){const _0x4de18d=_0x2008bc;logger['info'](util[_0x4de18d('0x20')](_0x4a47b5,{'showHidden':![],'depth':null}));});});},Migration[_0x3d4554('0x22')][_0x3d4554('0x21')]=function(_0x2de4ff){const _0x66de9e=_0x3d4554;this[_0x66de9e('0x19')][_0x66de9e('0x7')](function(){return _0x2de4ff();});},module[_0x3d4554('0x11')]={'up':function(_0x1019c4,_0x279296){return new Promise(function(_0x1aed9e){const _0x5db834=a1004_0xeb54,_0x391830=new Migration(_0x1019c4);_0x391830[_0x5db834('0x1f')](_0x5db834('0x16'),_0x5db834('0x12'),{'type':_0x279296['BOOLEAN'],'defaultValue':![]}),_0x391830[_0x5db834('0x24')](_0x5db834('0x10')),_0x391830[_0x5db834('0x21')](_0x1aed9e);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.21.js b/server/migrations/2.4.21.js index eac2cc1..491f1eb 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1005_0x4f7e=['addIndex','removeIndex\x20%s\x20%s','stringify','final','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','info','then','catch','removeColumn','prototype','removeIndex','renameColumn','exports','tail','sequence','indexName','addColumn','finally','query','indicesType','changeColumn','util','dropTable','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','enqueue','migration','inspect','../config/logger','query\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0x299927,_0x4f7ef2){const _0x40a538=function(_0x4a5146){while(--_0x4a5146){_0x299927['push'](_0x299927['shift']());}};_0x40a538(++_0x4f7ef2);}(a1005_0x4f7e,0x19e));const a1005_0x40a5=function(_0x299927,_0x4f7ef2){_0x299927=_0x299927-0x0;let _0x40a538=a1005_0x4f7e[_0x299927];return _0x40a538;};const _0x31fbad=a1005_0x40a5;'use strict';const util=require(_0x31fbad('0x4')),logger=require(_0x31fbad('0xc'))(_0x31fbad('0xa')),Sequence=function(){};Sequence[_0x31fbad('0x19')][_0x31fbad('0x9')]=function(_0x4a5146){const _0x38f4c7=_0x31fbad;this[_0x38f4c7('0x1d')]=this['tail']?this[_0x38f4c7('0x1d')][_0x38f4c7('0x0')](_0x4a5146):_0x4a5146();};const Migration=function(_0x41bbb9){const _0x38474a=_0x31fbad;this[_0x38474a('0x8')]=_0x41bbb9,this['sequence']=new Sequence();};Migration['prototype'][_0x31fbad('0x3')]=function(_0x5d583e,_0x1b383a,_0x444d00){const _0x39e811=this;this['sequence']['enqueue'](function(){const _0xbbcde2=a1005_0x40a5;return _0x39e811[_0xbbcde2('0x8')]['changeColumn'](_0x5d583e,_0x1b383a,_0x444d00)[_0xbbcde2('0x16')](function(){const _0x3306f9=_0xbbcde2;logger[_0x3306f9('0x15')](_0x3306f9('0x13'),_0x1b383a,_0x5d583e);})[_0xbbcde2('0x17')](function(_0x15b630){const _0x209753=_0xbbcde2;logger[_0x209753('0x15')](JSON['stringify'](_0x15b630));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0x20')]=function(_0x285487,_0x2d879f,_0x4ec5d4){const _0x5e3af7=_0x31fbad,_0x3acf66=this;this[_0x5e3af7('0x1e')][_0x5e3af7('0x9')](function(){const _0x16e285=_0x5e3af7;return _0x3acf66[_0x16e285('0x8')][_0x16e285('0x20')](_0x285487,_0x2d879f,_0x4ec5d4)['then'](function(){const _0x311b87=_0x16e285;logger[_0x311b87('0x15')](_0x311b87('0xe'),_0x2d879f,_0x285487);})[_0x16e285('0x17')](function(_0x4f3b13){const _0x57790c=_0x16e285;logger[_0x57790c('0x15')](JSON['stringify'](_0x4f3b13));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0x5')]=function(_0x19ee95){const _0x34d97e=_0x31fbad,_0x7992d3=this;this[_0x34d97e('0x1e')][_0x34d97e('0x9')](function(){const _0x52f7ef=_0x34d97e;return _0x7992d3[_0x52f7ef('0x8')][_0x52f7ef('0x5')](_0x19ee95,{'force':!![]})[_0x52f7ef('0x16')](function(){const _0x320a31=_0x52f7ef;logger[_0x320a31('0x15')](_0x320a31('0x14'),_0x19ee95);})[_0x52f7ef('0x17')](function(_0x1f07a5){const _0x3fadb2=_0x52f7ef;logger[_0x3fadb2('0x15')](JSON[_0x3fadb2('0x11')](_0x1f07a5));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0xf')]=function(_0x13630f,_0x530412,_0x20bdd0){const _0x219bab=_0x31fbad,_0x213538=this;this[_0x219bab('0x1e')][_0x219bab('0x9')](function(){const _0x9599b8=_0x219bab;return _0x213538[_0x9599b8('0x8')]['addIndex'](_0x13630f,_0x530412,{'indexName':_0x20bdd0[_0x9599b8('0x1f')],'indicesType':_0x20bdd0[_0x9599b8('0x2')]})['then'](function(){const _0x17ebdc=_0x9599b8;logger[_0x17ebdc('0x15')](_0x17ebdc('0x7'),_0x13630f,_0x530412['join'](','),_0x20bdd0[_0x17ebdc('0x1f')],_0x20bdd0[_0x17ebdc('0x2')]);})['catch'](function(_0x499ba5){const _0x396374=_0x9599b8;logger[_0x396374('0x15')](JSON['stringify'](_0x499ba5));});});},Migration['prototype'][_0x31fbad('0x1a')]=function(_0x3a04ed,_0x1dc339){const _0x1324a9=this;this['sequence']['enqueue'](function(){const _0x34498c=a1005_0x40a5;return _0x1324a9[_0x34498c('0x8')][_0x34498c('0x1a')](_0x3a04ed,_0x1dc339)[_0x34498c('0x16')](function(){const _0x59d911=_0x34498c;logger['info'](_0x59d911('0x10'),_0x3a04ed,_0x1dc339);})[_0x34498c('0x17')](function(_0x2b9188){const _0x1c50e7=_0x34498c;logger[_0x1c50e7('0x15')](JSON[_0x1c50e7('0x11')](_0x2b9188));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0x1')]=function(_0x32ccce){const _0x1c25a7=_0x31fbad,_0x25d7da=this;this['sequence'][_0x1c25a7('0x9')](function(){const _0x11dc32=_0x1c25a7;return _0x25d7da['queryInterface']['sequelize'][_0x11dc32('0x1')](_0x32ccce)[_0x11dc32('0x16')](function(){const _0x2d5ff8=_0x11dc32;logger['info'](_0x2d5ff8('0xd'),_0x32ccce);})[_0x11dc32('0x17')](function(_0x26479e){const _0x9224ca=_0x11dc32;logger[_0x9224ca('0x15')](JSON[_0x9224ca('0x11')](_0x26479e));});});},Migration[_0x31fbad('0x19')]['removeColumn']=function(_0x3bfcf4,_0x2446b1){const _0x45304e=_0x31fbad,_0x36cc5c=this;this['sequence'][_0x45304e('0x9')](function(){const _0x3a1d61=_0x45304e;return _0x36cc5c[_0x3a1d61('0x8')][_0x3a1d61('0x18')](_0x3bfcf4,_0x2446b1)['then'](function(){const _0x450b20=_0x3a1d61;logger[_0x450b20('0x15')](_0x450b20('0x6'),_0x2446b1,_0x3bfcf4);})[_0x3a1d61('0x17')](function(_0x55f0b8){const _0x253799=_0x3a1d61;logger[_0x253799('0x15')](util['inspect'](_0x55f0b8,{'showHidden':![],'depth':null}));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0x1b')]=function(_0x3f7f0b,_0x15f7b7,_0x530a6c){const _0x15914c=_0x31fbad,_0x588702=this;this[_0x15914c('0x1e')]['enqueue'](function(){const _0x55aaff=_0x15914c;return _0x588702[_0x55aaff('0x8')][_0x55aaff('0x1b')](_0x3f7f0b,_0x15f7b7,_0x530a6c)[_0x55aaff('0x16')](function(){const _0x43c639=_0x55aaff;logger[_0x43c639('0x15')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x15f7b7,_0x530a6c,_0x3f7f0b);})['catch'](function(_0x3115ba){const _0x5c6a1e=_0x55aaff;logger[_0x5c6a1e('0x15')](util[_0x5c6a1e('0xb')](_0x3115ba,{'showHidden':![],'depth':null}));});});},Migration[_0x31fbad('0x19')][_0x31fbad('0x12')]=function(_0x1bb2a5){const _0x5254b7=_0x31fbad;this[_0x5254b7('0x1e')][_0x5254b7('0x9')](function(){return _0x1bb2a5();});},module[_0x31fbad('0x1c')]={'up':function(_0x50deb9){return new Promise(function(_0x1e51e6){const _0x3682a1=new Migration(_0x50deb9);_0x3682a1['final'](_0x1e51e6);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.3.js b/server/migrations/2.4.3.js index da82cdd..a5d9fbc 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1006_0x4885=['util','exports','query','addColumn','enqueue','inspect','addIndex','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','then','table\x20dropped\x20%s','prototype','stringify','indexName','sequelize','dropTable','tail','removeIndex\x20%s\x20%s','changeColumn','removeColumn','renameColumn','../config/logger','indicesType','removeIndex','join','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','Added\x20column\x20%s\x20to\x20%s','catch','final'];(function(_0xcd1445,_0x4885f7){const _0x1b2516=function(_0x7c84cc){while(--_0x7c84cc){_0xcd1445['push'](_0xcd1445['shift']());}};_0x1b2516(++_0x4885f7);}(a1006_0x4885,0xef));const a1006_0x1b25=function(_0xcd1445,_0x4885f7){_0xcd1445=_0xcd1445-0x0;let _0x1b2516=a1006_0x4885[_0xcd1445];return _0x1b2516;};const _0x5a33ff=a1006_0x1b25;'use strict';const util=require(_0x5a33ff('0x11')),logger=require(_0x5a33ff('0x7'))('migration'),Sequence=function(){};Sequence[_0x5a33ff('0x1d')][_0x5a33ff('0x15')]=function(_0x7c84cc){const _0x356e6f=_0x5a33ff;this[_0x356e6f('0x2')]=this['tail']?this[_0x356e6f('0x2')]['finally'](_0x7c84cc):_0x7c84cc();};const Migration=function(_0x443cc6){const _0x20b0b9=_0x5a33ff;this['queryInterface']=_0x443cc6,this[_0x20b0b9('0xd')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x182ad8,_0x1695bb,_0x5223d3){const _0x605420=_0x5a33ff,_0x2d9060=this;this[_0x605420('0xd')]['enqueue'](function(){const _0x16453a=_0x605420;return _0x2d9060[_0x16453a('0x18')][_0x16453a('0x4')](_0x182ad8,_0x1695bb,_0x5223d3)[_0x16453a('0x1b')](function(){const _0x2534ec=_0x16453a;logger['info'](_0x2534ec('0x1a'),_0x1695bb,_0x182ad8);})[_0x16453a('0xf')](function(_0x8bfd7f){const _0x31a779=_0x16453a;logger[_0x31a779('0xb')](JSON[_0x31a779('0x1e')](_0x8bfd7f));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x14')]=function(_0x5d8552,_0x1be19d,_0x3ed146){const _0x5e7dc6=_0x5a33ff,_0x26e20d=this;this[_0x5e7dc6('0xd')]['enqueue'](function(){const _0x5b6742=_0x5e7dc6;return _0x26e20d[_0x5b6742('0x18')][_0x5b6742('0x14')](_0x5d8552,_0x1be19d,_0x3ed146)[_0x5b6742('0x1b')](function(){const _0x3c9b2a=_0x5b6742;logger[_0x3c9b2a('0xb')](_0x3c9b2a('0xe'),_0x1be19d,_0x5d8552);})['catch'](function(_0x30f9c2){const _0x880cfb=_0x5b6742;logger['info'](JSON[_0x880cfb('0x1e')](_0x30f9c2));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x1')]=function(_0x8b596a){const _0x22824e=_0x5a33ff,_0x478c74=this;this['sequence'][_0x22824e('0x15')](function(){const _0x13fe3a=_0x22824e;return _0x478c74[_0x13fe3a('0x18')][_0x13fe3a('0x1')](_0x8b596a,{'force':!![]})[_0x13fe3a('0x1b')](function(){const _0x38588b=_0x13fe3a;logger['info'](_0x38588b('0x1c'),_0x8b596a);})['catch'](function(_0x12cbd8){const _0x42cb5a=_0x13fe3a;logger[_0x42cb5a('0xb')](JSON[_0x42cb5a('0x1e')](_0x12cbd8));});});},Migration['prototype'][_0x5a33ff('0x17')]=function(_0x559e97,_0x40de45,_0x44963f){const _0x42ad9c=_0x5a33ff,_0x534fff=this;this[_0x42ad9c('0xd')][_0x42ad9c('0x15')](function(){const _0x1cdcad=_0x42ad9c;return _0x534fff[_0x1cdcad('0x18')]['addIndex'](_0x559e97,_0x40de45,{'indexName':_0x44963f[_0x1cdcad('0x1f')],'indicesType':_0x44963f[_0x1cdcad('0x8')]})[_0x1cdcad('0x1b')](function(){const _0x493042=_0x1cdcad;logger[_0x493042('0xb')](_0x493042('0xc'),_0x559e97,_0x40de45[_0x493042('0xa')](','),_0x44963f[_0x493042('0x1f')],_0x44963f[_0x493042('0x8')]);})[_0x1cdcad('0xf')](function(_0x128a9b){const _0x72d4e3=_0x1cdcad;logger[_0x72d4e3('0xb')](JSON[_0x72d4e3('0x1e')](_0x128a9b));});});},Migration[_0x5a33ff('0x1d')]['removeIndex']=function(_0x508aa9,_0x24a529){const _0x4589f2=_0x5a33ff,_0x34e93c=this;this['sequence'][_0x4589f2('0x15')](function(){const _0x26e66c=_0x4589f2;return _0x34e93c[_0x26e66c('0x18')][_0x26e66c('0x9')](_0x508aa9,_0x24a529)[_0x26e66c('0x1b')](function(){const _0x3d3a77=_0x26e66c;logger['info'](_0x3d3a77('0x3'),_0x508aa9,_0x24a529);})[_0x26e66c('0xf')](function(_0x227dc2){const _0x1b2f1a=_0x26e66c;logger[_0x1b2f1a('0xb')](JSON[_0x1b2f1a('0x1e')](_0x227dc2));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x13')]=function(_0x1a22ff){const _0x2ec087=_0x5a33ff,_0x4c35f1=this;this['sequence'][_0x2ec087('0x15')](function(){const _0x3754de=_0x2ec087;return _0x4c35f1[_0x3754de('0x18')][_0x3754de('0x0')][_0x3754de('0x13')](_0x1a22ff)[_0x3754de('0x1b')](function(){logger['info']('query\x20%s',_0x1a22ff);})[_0x3754de('0xf')](function(_0x316253){logger['info'](JSON['stringify'](_0x316253));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x5')]=function(_0x230294,_0x4c03aa){const _0x43dd35=_0x5a33ff,_0x5d7c3d=this;this[_0x43dd35('0xd')][_0x43dd35('0x15')](function(){const _0x4c824c=_0x43dd35;return _0x5d7c3d[_0x4c824c('0x18')][_0x4c824c('0x5')](_0x230294,_0x4c03aa)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4c03aa,_0x230294);})['catch'](function(_0xb24f7d){const _0x5dc71e=_0x4c824c;logger[_0x5dc71e('0xb')](util[_0x5dc71e('0x16')](_0xb24f7d,{'showHidden':![],'depth':null}));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x6')]=function(_0x126f37,_0x1a03c7,_0x276fa2){const _0x5bf9d6=_0x5a33ff,_0x5d9cdf=this;this['sequence'][_0x5bf9d6('0x15')](function(){const _0x7ab8bc=_0x5bf9d6;return _0x5d9cdf[_0x7ab8bc('0x18')]['renameColumn'](_0x126f37,_0x1a03c7,_0x276fa2)[_0x7ab8bc('0x1b')](function(){const _0x357e74=_0x7ab8bc;logger[_0x357e74('0xb')](_0x357e74('0x19'),_0x1a03c7,_0x276fa2,_0x126f37);})[_0x7ab8bc('0xf')](function(_0x436399){const _0x3212d=_0x7ab8bc;logger[_0x3212d('0xb')](util[_0x3212d('0x16')](_0x436399,{'showHidden':![],'depth':null}));});});},Migration[_0x5a33ff('0x1d')][_0x5a33ff('0x10')]=function(_0x350c79){const _0xedb505=_0x5a33ff;this[_0xedb505('0xd')]['enqueue'](function(){return _0x350c79();});},module[_0x5a33ff('0x12')]={'up':function(_0x2c8aa8){return new Promise(function(_0x2567c2){const _0x44d263=a1006_0x1b25,_0x5da65b=new Migration(_0x2c8aa8);_0x5da65b[_0x44d263('0x10')](_0x2567c2);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.4.js b/server/migrations/2.4.4.js index e6756a3..158c35d 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1007_0x5c58=['tail','sequence','code','removeIndex','Added\x20column\x20%s\x20to\x20%s','renameColumn','migration','catch','indicesType','removeIndex\x20%s\x20%s','query\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','Removed\x20column\x20%s\x20from\x20%s','indexName','clientId','zone','join','addIndex','addColumn','../config/logger','final','then','table\x20dropped\x20%s','stringify','authToken','Changed\x20column\x20%s\x20in\x20table\x20%s','clientSecret','int_zoho_accounts','dropTable','query','inspect','info','refreshToken','removeColumn','queryInterface','prototype','exports','enqueue','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING'];(function(_0x5981ee,_0x5c589d){const _0x4fcddb=function(_0x116702){while(--_0x116702){_0x5981ee['push'](_0x5981ee['shift']());}};_0x4fcddb(++_0x5c589d);}(a1007_0x5c58,0x93));const a1007_0x4fcd=function(_0x5981ee,_0x5c589d){_0x5981ee=_0x5981ee-0x0;let _0x4fcddb=a1007_0x5c58[_0x5981ee];return _0x4fcddb;};const _0xba9725=a1007_0x4fcd;'use strict';const util=require('util'),logger=require(_0xba9725('0x29'))(_0xba9725('0x1b')),Sequence=function(){};Sequence[_0xba9725('0xf')][_0xba9725('0x11')]=function(_0x116702){const _0x30dd12=_0xba9725;this[_0x30dd12('0x15')]=this[_0x30dd12('0x15')]?this[_0x30dd12('0x15')][_0x30dd12('0x12')](_0x116702):_0x116702();};const Migration=function(_0x3a46d7){const _0x3635fa=_0xba9725;this[_0x3635fa('0xe')]=_0x3a46d7,this[_0x3635fa('0x16')]=new Sequence();};Migration['prototype'][_0xba9725('0x21')]=function(_0x1b8b67,_0x3c0efc,_0x273894){const _0x1b8c70=_0xba9725,_0x3686b7=this;this[_0x1b8c70('0x16')][_0x1b8c70('0x11')](function(){const _0x57ded5=_0x1b8c70;return _0x3686b7[_0x57ded5('0xe')][_0x57ded5('0x21')](_0x1b8b67,_0x3c0efc,_0x273894)[_0x57ded5('0x1')](function(){const _0x4b2bdf=_0x57ded5;logger[_0x4b2bdf('0xb')](_0x4b2bdf('0x5'),_0x3c0efc,_0x1b8b67);})[_0x57ded5('0x1c')](function(_0x35fcea){const _0x790557=_0x57ded5;logger[_0x790557('0xb')](JSON['stringify'](_0x35fcea));});});},Migration[_0xba9725('0xf')][_0xba9725('0x28')]=function(_0x40a66b,_0x36eb95,_0x3e1958){const _0x252784=_0xba9725,_0x5ab5c6=this;this['sequence'][_0x252784('0x11')](function(){const _0x56adf6=_0x252784;return _0x5ab5c6[_0x56adf6('0xe')][_0x56adf6('0x28')](_0x40a66b,_0x36eb95,_0x3e1958)['then'](function(){const _0x567fde=_0x56adf6;logger[_0x567fde('0xb')](_0x567fde('0x19'),_0x36eb95,_0x40a66b);})['catch'](function(_0x1f1a22){const _0x21d54d=_0x56adf6;logger['info'](JSON[_0x21d54d('0x3')](_0x1f1a22));});});},Migration[_0xba9725('0xf')]['dropTable']=function(_0x324bc7){const _0x223e90=_0xba9725,_0x5cab81=this;this[_0x223e90('0x16')][_0x223e90('0x11')](function(){const _0x95511f=_0x223e90;return _0x5cab81[_0x95511f('0xe')][_0x95511f('0x8')](_0x324bc7,{'force':!![]})[_0x95511f('0x1')](function(){const _0x3b3f85=_0x95511f;logger['info'](_0x3b3f85('0x2'),_0x324bc7);})[_0x95511f('0x1c')](function(_0x272596){const _0xa8350e=_0x95511f;logger[_0xa8350e('0xb')](JSON[_0xa8350e('0x3')](_0x272596));});});},Migration[_0xba9725('0xf')][_0xba9725('0x27')]=function(_0x28944a,_0x1fcce8,_0x356dd4){const _0x219505=_0xba9725,_0x5d0ad2=this;this[_0x219505('0x16')][_0x219505('0x11')](function(){const _0x568e54=_0x219505;return _0x5d0ad2[_0x568e54('0xe')][_0x568e54('0x27')](_0x28944a,_0x1fcce8,{'indexName':_0x356dd4['indexName'],'indicesType':_0x356dd4[_0x568e54('0x1d')]})[_0x568e54('0x1')](function(){const _0x9e8dee=_0x568e54;logger[_0x9e8dee('0xb')](_0x9e8dee('0x20'),_0x28944a,_0x1fcce8[_0x9e8dee('0x26')](','),_0x356dd4[_0x9e8dee('0x23')],_0x356dd4[_0x9e8dee('0x1d')]);})[_0x568e54('0x1c')](function(_0x535f55){const _0xbdfca4=_0x568e54;logger[_0xbdfca4('0xb')](JSON['stringify'](_0x535f55));});});},Migration['prototype'][_0xba9725('0x18')]=function(_0x1b415e,_0x4b171b){const _0x503188=_0xba9725,_0x155ebb=this;this[_0x503188('0x16')][_0x503188('0x11')](function(){const _0x572a05=_0x503188;return _0x155ebb[_0x572a05('0xe')][_0x572a05('0x18')](_0x1b415e,_0x4b171b)[_0x572a05('0x1')](function(){const _0x110d3d=_0x572a05;logger['info'](_0x110d3d('0x1e'),_0x1b415e,_0x4b171b);})[_0x572a05('0x1c')](function(_0x15bb50){const _0x152785=_0x572a05;logger['info'](JSON[_0x152785('0x3')](_0x15bb50));});});},Migration[_0xba9725('0xf')][_0xba9725('0x9')]=function(_0x129fc7){const _0x236ac2=_0xba9725,_0x1c2683=this;this[_0x236ac2('0x16')]['enqueue'](function(){const _0x18048a=_0x236ac2;return _0x1c2683[_0x18048a('0xe')]['sequelize'][_0x18048a('0x9')](_0x129fc7)[_0x18048a('0x1')](function(){const _0x15edf6=_0x18048a;logger[_0x15edf6('0xb')](_0x15edf6('0x1f'),_0x129fc7);})['catch'](function(_0x56bf50){const _0x2e5f21=_0x18048a;logger[_0x2e5f21('0xb')](JSON['stringify'](_0x56bf50));});});},Migration[_0xba9725('0xf')][_0xba9725('0xd')]=function(_0x23e9ef,_0x3d06ff){const _0x76b1c7=_0xba9725,_0x58a4cc=this;this[_0x76b1c7('0x16')]['enqueue'](function(){const _0x318c55=_0x76b1c7;return _0x58a4cc[_0x318c55('0xe')][_0x318c55('0xd')](_0x23e9ef,_0x3d06ff)[_0x318c55('0x1')](function(){const _0x5df2d8=_0x318c55;logger[_0x5df2d8('0xb')](_0x5df2d8('0x22'),_0x3d06ff,_0x23e9ef);})[_0x318c55('0x1c')](function(_0x65e985){const _0x4a74c1=_0x318c55;logger[_0x4a74c1('0xb')](util[_0x4a74c1('0xa')](_0x65e985,{'showHidden':![],'depth':null}));});});},Migration[_0xba9725('0xf')][_0xba9725('0x1a')]=function(_0x2891c0,_0x2c60b6,_0x2581f6){const _0x5e2d68=_0xba9725,_0x11f38d=this;this[_0x5e2d68('0x16')][_0x5e2d68('0x11')](function(){const _0x4bc301=_0x5e2d68;return _0x11f38d[_0x4bc301('0xe')][_0x4bc301('0x1a')](_0x2891c0,_0x2c60b6,_0x2581f6)[_0x4bc301('0x1')](function(){const _0x436673=_0x4bc301;logger['info'](_0x436673('0x13'),_0x2c60b6,_0x2581f6,_0x2891c0);})[_0x4bc301('0x1c')](function(_0x3ceb9c){const _0x544410=_0x4bc301;logger[_0x544410('0xb')](util[_0x544410('0xa')](_0x3ceb9c,{'showHidden':![],'depth':null}));});});},Migration[_0xba9725('0xf')][_0xba9725('0x0')]=function(_0x5bd101){const _0x4bc814=_0xba9725;this[_0x4bc814('0x16')][_0x4bc814('0x11')](function(){return _0x5bd101();});},module[_0xba9725('0x10')]={'up':function(_0x47898c,_0x5084bb){return new Promise(function(_0x2fe6eb){const _0x4de47d=a1007_0x4fcd,_0x19d5ac=new Migration(_0x47898c);_0x19d5ac['removeColumn'](_0x4de47d('0x7'),_0x4de47d('0x4')),_0x19d5ac[_0x4de47d('0x28')]('int_zoho_accounts',_0x4de47d('0x25'),{'type':_0x5084bb[_0x4de47d('0x14')],'defaultValue':'EU'}),_0x19d5ac['addColumn'](_0x4de47d('0x7'),_0x4de47d('0x24'),{'type':_0x5084bb[_0x4de47d('0x14')]}),_0x19d5ac[_0x4de47d('0x28')](_0x4de47d('0x7'),_0x4de47d('0x6'),{'type':_0x5084bb[_0x4de47d('0x14')]}),_0x19d5ac[_0x4de47d('0x28')]('int_zoho_accounts',_0x4de47d('0x17'),{'type':_0x5084bb['STRING']}),_0x19d5ac[_0x4de47d('0x28')](_0x4de47d('0x7'),_0x4de47d('0xc'),{'type':_0x5084bb[_0x4de47d('0x14')]}),_0x19d5ac['final'](_0x2fe6eb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.5.js b/server/migrations/2.4.5.js index cbf6e7e..c7a40b5 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1008_0x4786=['Added\x20column\x20%s\x20to\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','join','indexName','final','../config/logger','removeColumn','indicesType','query','then','table\x20dropped\x20%s','catch','queryInterface','changeColumn','enqueue','sequence','finally','sequelize','prototype','tail','info','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','renameColumn','dropTable','addColumn','migration'];(function(_0x51edb5,_0x4786b0){const _0x104ebf=function(_0x582aed){while(--_0x582aed){_0x51edb5['push'](_0x51edb5['shift']());}};_0x104ebf(++_0x4786b0);}(a1008_0x4786,0xb7));const a1008_0x104e=function(_0x51edb5,_0x4786b0){_0x51edb5=_0x51edb5-0x0;let _0x104ebf=a1008_0x4786[_0x51edb5];return _0x104ebf;};const _0x3f92f1=a1008_0x104e;'use strict';const util=require('util'),logger=require(_0x3f92f1('0x4'))(_0x3f92f1('0x1a')),Sequence=function(){};Sequence[_0x3f92f1('0x11')]['enqueue']=function(_0x582aed){const _0xe10b14=_0x3f92f1;this[_0xe10b14('0x12')]=this['tail']?this[_0xe10b14('0x12')][_0xe10b14('0xf')](_0x582aed):_0x582aed();};const Migration=function(_0x197143){const _0x22091a=_0x3f92f1;this[_0x22091a('0xb')]=_0x197143,this[_0x22091a('0xe')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x135758,_0x535d05,_0x1cb0ea){const _0x202ffe=_0x3f92f1,_0x1c69ac=this;this['sequence'][_0x202ffe('0xd')](function(){const _0x5184d8=_0x202ffe;return _0x1c69ac[_0x5184d8('0xb')][_0x5184d8('0xc')](_0x135758,_0x535d05,_0x1cb0ea)[_0x5184d8('0x8')](function(){const _0x4afd51=_0x5184d8;logger[_0x4afd51('0x13')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x535d05,_0x135758);})[_0x5184d8('0xa')](function(_0x353d98){const _0x162bf7=_0x5184d8;logger[_0x162bf7('0x13')](JSON[_0x162bf7('0x16')](_0x353d98));});});},Migration[_0x3f92f1('0x11')][_0x3f92f1('0x19')]=function(_0x518d8e,_0x54121e,_0xf227c9){const _0x574248=_0x3f92f1,_0x25d33b=this;this[_0x574248('0xe')]['enqueue'](function(){const _0x41854f=_0x574248;return _0x25d33b[_0x41854f('0xb')][_0x41854f('0x19')](_0x518d8e,_0x54121e,_0xf227c9)[_0x41854f('0x8')](function(){const _0x131773=_0x41854f;logger[_0x131773('0x13')](_0x131773('0x1b'),_0x54121e,_0x518d8e);})[_0x41854f('0xa')](function(_0x4b934f){const _0x41c6cf=_0x41854f;logger[_0x41c6cf('0x13')](JSON[_0x41c6cf('0x16')](_0x4b934f));});});},Migration[_0x3f92f1('0x11')][_0x3f92f1('0x18')]=function(_0x178223){const _0x3a04fa=_0x3f92f1,_0x16b34c=this;this[_0x3a04fa('0xe')][_0x3a04fa('0xd')](function(){const _0x351fa0=_0x3a04fa;return _0x16b34c['queryInterface']['dropTable'](_0x178223,{'force':!![]})[_0x351fa0('0x8')](function(){const _0x1c01e5=_0x351fa0;logger['info'](_0x1c01e5('0x9'),_0x178223);})['catch'](function(_0x4b3732){const _0x110598=_0x351fa0;logger[_0x110598('0x13')](JSON[_0x110598('0x16')](_0x4b3732));});});},Migration[_0x3f92f1('0x11')][_0x3f92f1('0x1c')]=function(_0x4aa5e2,_0x13ef7c,_0x3c5208){const _0xe52d3c=this;this['sequence']['enqueue'](function(){const _0x1dd223=a1008_0x104e;return _0xe52d3c[_0x1dd223('0xb')][_0x1dd223('0x1c')](_0x4aa5e2,_0x13ef7c,{'indexName':_0x3c5208['indexName'],'indicesType':_0x3c5208[_0x1dd223('0x6')]})[_0x1dd223('0x8')](function(){const _0x1cdb6a=_0x1dd223;logger[_0x1cdb6a('0x13')](_0x1cdb6a('0x15'),_0x4aa5e2,_0x13ef7c[_0x1cdb6a('0x1')](','),_0x3c5208[_0x1cdb6a('0x2')],_0x3c5208[_0x1cdb6a('0x6')]);})[_0x1dd223('0xa')](function(_0x1c3f4b){const _0x1afc1e=_0x1dd223;logger[_0x1afc1e('0x13')](JSON[_0x1afc1e('0x16')](_0x1c3f4b));});});},Migration['prototype']['removeIndex']=function(_0x8423fe,_0x2708d1){const _0x144a2b=_0x3f92f1,_0x552fbb=this;this[_0x144a2b('0xe')][_0x144a2b('0xd')](function(){const _0x2cf3b4=_0x144a2b;return _0x552fbb[_0x2cf3b4('0xb')][_0x2cf3b4('0x0')](_0x8423fe,_0x2708d1)[_0x2cf3b4('0x8')](function(){const _0x595485=_0x2cf3b4;logger[_0x595485('0x13')]('removeIndex\x20%s\x20%s',_0x8423fe,_0x2708d1);})['catch'](function(_0x5f3cb6){const _0x25bf04=_0x2cf3b4;logger['info'](JSON[_0x25bf04('0x16')](_0x5f3cb6));});});},Migration[_0x3f92f1('0x11')][_0x3f92f1('0x7')]=function(_0x5d1ec4){const _0x239238=_0x3f92f1,_0x11bff9=this;this['sequence'][_0x239238('0xd')](function(){const _0x1a8990=_0x239238;return _0x11bff9[_0x1a8990('0xb')][_0x1a8990('0x10')][_0x1a8990('0x7')](_0x5d1ec4)['then'](function(){const _0x41a799=_0x1a8990;logger[_0x41a799('0x13')]('query\x20%s',_0x5d1ec4);})[_0x1a8990('0xa')](function(_0x16a55a){logger['info'](JSON['stringify'](_0x16a55a));});});},Migration[_0x3f92f1('0x11')]['removeColumn']=function(_0x46f916,_0x29ac00){const _0x212e27=_0x3f92f1,_0x5a0e3c=this;this[_0x212e27('0xe')]['enqueue'](function(){const _0x32248c=_0x212e27;return _0x5a0e3c['queryInterface'][_0x32248c('0x5')](_0x46f916,_0x29ac00)[_0x32248c('0x8')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x29ac00,_0x46f916);})[_0x32248c('0xa')](function(_0x12079){const _0x209746=_0x32248c;logger[_0x209746('0x13')](util[_0x209746('0x14')](_0x12079,{'showHidden':![],'depth':null}));});});},Migration[_0x3f92f1('0x11')][_0x3f92f1('0x17')]=function(_0xfe02a5,_0xa7f596,_0x3db8be){const _0x3252c3=_0x3f92f1,_0x1693e0=this;this[_0x3252c3('0xe')][_0x3252c3('0xd')](function(){const _0x3238de=_0x3252c3;return _0x1693e0[_0x3238de('0xb')]['renameColumn'](_0xfe02a5,_0xa7f596,_0x3db8be)[_0x3238de('0x8')](function(){const _0xd18261=_0x3238de;logger[_0xd18261('0x13')](_0xd18261('0x1d'),_0xa7f596,_0x3db8be,_0xfe02a5);})[_0x3238de('0xa')](function(_0x54deba){const _0x230bce=_0x3238de;logger['info'](util[_0x230bce('0x14')](_0x54deba,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3f92f1('0x3')]=function(_0x200a18){const _0x39795d=_0x3f92f1;this['sequence'][_0x39795d('0xd')](function(){return _0x200a18();});},module['exports']={'up':function(_0x466234){return new Promise(function(_0x5e3ffb){const _0x2c27a7=a1008_0x104e,_0x1392b6=new Migration(_0x466234);_0x1392b6[_0x2c27a7('0x3')](_0x5e3ffb);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.6.js b/server/migrations/2.4.6.js index 31abdb7..f79af87 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1009_0x3c9d=['inspect','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','dropTable','tail','migration','enqueue','sequence','../config/logger','query','queryInterface','changeColumn','prototype','exports','util','renameColumn','indexName','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','addColumn','finally','removeIndex','stringify','then','table\x20dropped\x20%s','catch'];(function(_0x2e2cff,_0x3c9d16){const _0x2a1b99=function(_0x5dcdaa){while(--_0x5dcdaa){_0x2e2cff['push'](_0x2e2cff['shift']());}};_0x2a1b99(++_0x3c9d16);}(a1009_0x3c9d,0xc3));const a1009_0x2a1b=function(_0x2e2cff,_0x3c9d16){_0x2e2cff=_0x2e2cff-0x0;let _0x2a1b99=a1009_0x3c9d[_0x2e2cff];return _0x2a1b99;};const _0x290448=a1009_0x2a1b;'use strict';const util=require(_0x290448('0x17')),logger=require(_0x290448('0x11'))(_0x290448('0xe')),Sequence=function(){};Sequence[_0x290448('0x15')][_0x290448('0xf')]=function(_0x5dcdaa){const _0x969271=_0x290448;this[_0x969271('0xd')]=this['tail']?this[_0x969271('0xd')][_0x969271('0x2')](_0x5dcdaa):_0x5dcdaa();};const Migration=function(_0x2bf676){const _0x591369=_0x290448;this[_0x591369('0x13')]=_0x2bf676,this['sequence']=new Sequence();};Migration[_0x290448('0x15')][_0x290448('0x14')]=function(_0x2d3f1c,_0x150c3e,_0x16793d){const _0x4c6a73=_0x290448,_0x3dcdab=this;this[_0x4c6a73('0x10')][_0x4c6a73('0xf')](function(){const _0x4e3455=_0x4c6a73;return _0x3dcdab['queryInterface'][_0x4e3455('0x14')](_0x2d3f1c,_0x150c3e,_0x16793d)[_0x4e3455('0x5')](function(){const _0x4f3a16=_0x4e3455;logger['info'](_0x4f3a16('0x1b'),_0x150c3e,_0x2d3f1c);})[_0x4e3455('0x7')](function(_0x76aa2d){const _0x4ba6a5=_0x4e3455;logger[_0x4ba6a5('0x0')](JSON[_0x4ba6a5('0x4')](_0x76aa2d));});});},Migration[_0x290448('0x15')][_0x290448('0x1')]=function(_0x4f57eb,_0xd991fe,_0x2daea2){const _0x41430d=_0x290448,_0x331121=this;this[_0x41430d('0x10')][_0x41430d('0xf')](function(){const _0x218e25=_0x41430d;return _0x331121[_0x218e25('0x13')][_0x218e25('0x1')](_0x4f57eb,_0xd991fe,_0x2daea2)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0xd991fe,_0x4f57eb);})[_0x218e25('0x7')](function(_0x18297a){const _0x235c4b=_0x218e25;logger['info'](JSON[_0x235c4b('0x4')](_0x18297a));});});},Migration[_0x290448('0x15')][_0x290448('0xc')]=function(_0x31d537){const _0x4b6b43=_0x290448,_0x53e8c0=this;this['sequence'][_0x4b6b43('0xf')](function(){const _0x563de0=_0x4b6b43;return _0x53e8c0[_0x563de0('0x13')]['dropTable'](_0x31d537,{'force':!![]})[_0x563de0('0x5')](function(){const _0x1329e0=_0x563de0;logger['info'](_0x1329e0('0x6'),_0x31d537);})['catch'](function(_0x1e7ad4){const _0x47978=_0x563de0;logger['info'](JSON[_0x47978('0x4')](_0x1e7ad4));});});},Migration[_0x290448('0x15')]['addIndex']=function(_0x424e60,_0x49f87c,_0x58387e){const _0x2ac6de=_0x290448,_0x520cdd=this;this[_0x2ac6de('0x10')][_0x2ac6de('0xf')](function(){const _0x3f67a9=_0x2ac6de;return _0x520cdd[_0x3f67a9('0x13')]['addIndex'](_0x424e60,_0x49f87c,{'indexName':_0x58387e[_0x3f67a9('0x19')],'indicesType':_0x58387e[_0x3f67a9('0x1a')]})[_0x3f67a9('0x5')](function(){const _0x1b3a0b=_0x3f67a9;logger['info'](_0x1b3a0b('0x1c'),_0x424e60,_0x49f87c['join'](','),_0x58387e['indexName'],_0x58387e['indicesType']);})[_0x3f67a9('0x7')](function(_0x420e8c){const _0x15fde5=_0x3f67a9;logger[_0x15fde5('0x0')](JSON[_0x15fde5('0x4')](_0x420e8c));});});},Migration[_0x290448('0x15')][_0x290448('0x3')]=function(_0x518f3a,_0x20648b){const _0x9c76f7=_0x290448,_0xccaaeb=this;this['sequence'][_0x9c76f7('0xf')](function(){const _0x43d353=_0x9c76f7;return _0xccaaeb[_0x43d353('0x13')][_0x43d353('0x3')](_0x518f3a,_0x20648b)['then'](function(){const _0x45f19d=_0x43d353;logger[_0x45f19d('0x0')]('removeIndex\x20%s\x20%s',_0x518f3a,_0x20648b);})[_0x43d353('0x7')](function(_0x1275a1){const _0x9fb094=_0x43d353;logger[_0x9fb094('0x0')](JSON[_0x9fb094('0x4')](_0x1275a1));});});},Migration['prototype'][_0x290448('0x12')]=function(_0x8fbc24){const _0x2acfaa=_0x290448,_0x4d8063=this;this[_0x2acfaa('0x10')][_0x2acfaa('0xf')](function(){const _0x17659c=_0x2acfaa;return _0x4d8063['queryInterface']['sequelize']['query'](_0x8fbc24)[_0x17659c('0x5')](function(){const _0x5c9410=_0x17659c;logger[_0x5c9410('0x0')]('query\x20%s',_0x8fbc24);})[_0x17659c('0x7')](function(_0x90d286){const _0x2500ca=_0x17659c;logger[_0x2500ca('0x0')](JSON[_0x2500ca('0x4')](_0x90d286));});});},Migration[_0x290448('0x15')][_0x290448('0xb')]=function(_0x5df4f7,_0x4fd4d5){const _0x3a1dbd=_0x290448,_0x3d52e5=this;this[_0x3a1dbd('0x10')][_0x3a1dbd('0xf')](function(){const _0x483a8f=_0x3a1dbd;return _0x3d52e5['queryInterface'][_0x483a8f('0xb')](_0x5df4f7,_0x4fd4d5)[_0x483a8f('0x5')](function(){const _0x1fe712=_0x483a8f;logger['info'](_0x1fe712('0x9'),_0x4fd4d5,_0x5df4f7);})[_0x483a8f('0x7')](function(_0x2ccf46){const _0x44594d=_0x483a8f;logger[_0x44594d('0x0')](util[_0x44594d('0x8')](_0x2ccf46,{'showHidden':![],'depth':null}));});});},Migration[_0x290448('0x15')][_0x290448('0x18')]=function(_0xfaae8d,_0x519dbc,_0x18a492){const _0x346ad3=_0x290448,_0x1c90c2=this;this[_0x346ad3('0x10')][_0x346ad3('0xf')](function(){const _0x14c962=_0x346ad3;return _0x1c90c2[_0x14c962('0x13')][_0x14c962('0x18')](_0xfaae8d,_0x519dbc,_0x18a492)[_0x14c962('0x5')](function(){const _0x12a5b8=_0x14c962;logger[_0x12a5b8('0x0')](_0x12a5b8('0xa'),_0x519dbc,_0x18a492,_0xfaae8d);})[_0x14c962('0x7')](function(_0x4ae9c1){const _0x5c1b1b=_0x14c962;logger[_0x5c1b1b('0x0')](util[_0x5c1b1b('0x8')](_0x4ae9c1,{'showHidden':![],'depth':null}));});});},Migration[_0x290448('0x15')]['final']=function(_0x30abcb){const _0x251e1b=_0x290448;this['sequence'][_0x251e1b('0xf')](function(){return _0x30abcb();});},module[_0x290448('0x16')]={'up':function(_0x5ec4c0){return new Promise(function(_0x298fec){const _0x2e15aa=new Migration(_0x5ec4c0);_0x2e15aa['final'](_0x298fec);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.7.js b/server/migrations/2.4.7.js index ad6ebe7..68c3f59 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1010_0x112a=['BOOLEAN','stringify','Feedback','Removed\x20column\x20%s\x20from\x20%s','join','moduleCreate','int_zoho_configurations','inspect','removeIndex\x20%s\x20%s','renameColumn','addIndex','query\x20%s','removeIndex','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','STRING','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','tail','Added\x20column\x20%s\x20to\x20%s','indexName','catch','dropTable','chat_websites','Leads','addColumn','sequence','final','../config/logger','prototype','enqueue','then','ENUM','removeColumn','info','finally'];(function(_0x220f30,_0x112aba){const _0x201f28=function(_0x3e931e){while(--_0x3e931e){_0x220f30['push'](_0x220f30['shift']());}};_0x201f28(++_0x112aba);}(a1010_0x112a,0x132));const a1010_0x201f=function(_0x220f30,_0x112aba){_0x220f30=_0x220f30-0x0;let _0x201f28=a1010_0x112a[_0x220f30];return _0x201f28;};const _0x365594=a1010_0x201f;'use strict';const util=require('util'),logger=require(_0x365594('0x1c'))('migration'),Sequence=function(){};Sequence[_0x365594('0x1d')]['enqueue']=function(_0x3e931e){const _0x5f2764=_0x365594;this['tail']=this[_0x5f2764('0x12')]?this['tail'][_0x5f2764('0x23')](_0x3e931e):_0x3e931e();};const Migration=function(_0x259ecc){const _0x3e3a84=_0x365594;this[_0x3e3a84('0xb')]=_0x259ecc,this['sequence']=new Sequence();};Migration[_0x365594('0x1d')][_0x365594('0x11')]=function(_0x592195,_0x24af57,_0x24d49a){const _0x4b4620=_0x365594,_0x28d63d=this;this[_0x4b4620('0x1a')][_0x4b4620('0x1e')](function(){const _0xb24bb2=_0x4b4620;return _0x28d63d[_0xb24bb2('0xb')]['changeColumn'](_0x592195,_0x24af57,_0x24d49a)[_0xb24bb2('0x1f')](function(){const _0x1167d6=_0xb24bb2;logger[_0x1167d6('0x22')](_0x1167d6('0xc'),_0x24af57,_0x592195);})['catch'](function(_0xad323e){const _0x26501b=_0xb24bb2;logger[_0x26501b('0x22')](JSON['stringify'](_0xad323e));});});},Migration[_0x365594('0x1d')][_0x365594('0x19')]=function(_0x487cf0,_0x862f00,_0x158b2e){const _0x5da9e2=_0x365594,_0x253513=this;this[_0x5da9e2('0x1a')]['enqueue'](function(){const _0x594187=_0x5da9e2;return _0x253513[_0x594187('0xb')][_0x594187('0x19')](_0x487cf0,_0x862f00,_0x158b2e)[_0x594187('0x1f')](function(){const _0x47f5e0=_0x594187;logger[_0x47f5e0('0x22')](_0x47f5e0('0x13'),_0x862f00,_0x487cf0);})['catch'](function(_0x5229a7){const _0x2e9550=_0x594187;logger[_0x2e9550('0x22')](JSON[_0x2e9550('0x25')](_0x5229a7));});});},Migration[_0x365594('0x1d')][_0x365594('0x16')]=function(_0x45d52d){const _0x1777f1=_0x365594,_0xbbd66f=this;this[_0x1777f1('0x1a')][_0x1777f1('0x1e')](function(){const _0x512902=_0x1777f1;return _0xbbd66f[_0x512902('0xb')][_0x512902('0x16')](_0x45d52d,{'force':!![]})[_0x512902('0x1f')](function(){logger['info']('table\x20dropped\x20%s',_0x45d52d);})['catch'](function(_0x31739f){const _0x13beb9=_0x512902;logger[_0x13beb9('0x22')](JSON[_0x13beb9('0x25')](_0x31739f));});});},Migration['prototype'][_0x365594('0x8')]=function(_0x3fa70d,_0x48c34b,_0x135b8b){const _0x234fe3=_0x365594,_0x240e14=this;this[_0x234fe3('0x1a')][_0x234fe3('0x1e')](function(){const _0x26c254=_0x234fe3;return _0x240e14[_0x26c254('0xb')][_0x26c254('0x8')](_0x3fa70d,_0x48c34b,{'indexName':_0x135b8b[_0x26c254('0x14')],'indicesType':_0x135b8b['indicesType']})[_0x26c254('0x1f')](function(){const _0x2e3dac=_0x26c254;logger[_0x2e3dac('0x22')](_0x2e3dac('0x10'),_0x3fa70d,_0x48c34b[_0x2e3dac('0x2')](','),_0x135b8b['indexName'],_0x135b8b['indicesType']);})[_0x26c254('0x15')](function(_0x2f518c){const _0x417373=_0x26c254;logger[_0x417373('0x22')](JSON[_0x417373('0x25')](_0x2f518c));});});},Migration[_0x365594('0x1d')][_0x365594('0xa')]=function(_0x19a8df,_0x133bc2){const _0x40fd33=_0x365594,_0x36cf51=this;this[_0x40fd33('0x1a')][_0x40fd33('0x1e')](function(){const _0x23e644=_0x40fd33;return _0x36cf51[_0x23e644('0xb')][_0x23e644('0xa')](_0x19a8df,_0x133bc2)['then'](function(){const _0x1885ed=_0x23e644;logger[_0x1885ed('0x22')](_0x1885ed('0x6'),_0x19a8df,_0x133bc2);})['catch'](function(_0x264421){const _0x19e4a6=_0x23e644;logger[_0x19e4a6('0x22')](JSON[_0x19e4a6('0x25')](_0x264421));});});},Migration['prototype'][_0x365594('0xf')]=function(_0xd9505d){const _0xc10eca=_0x365594,_0x2b618b=this;this['sequence'][_0xc10eca('0x1e')](function(){const _0x5c7761=_0xc10eca;return _0x2b618b[_0x5c7761('0xb')][_0x5c7761('0xd')][_0x5c7761('0xf')](_0xd9505d)[_0x5c7761('0x1f')](function(){const _0x13fcb9=_0x5c7761;logger[_0x13fcb9('0x22')](_0x13fcb9('0x9'),_0xd9505d);})[_0x5c7761('0x15')](function(_0x1f7294){const _0xfbda6e=_0x5c7761;logger[_0xfbda6e('0x22')](JSON[_0xfbda6e('0x25')](_0x1f7294));});});},Migration[_0x365594('0x1d')][_0x365594('0x21')]=function(_0x2e3e9e,_0x3a6c8a){const _0x548451=_0x365594,_0x395895=this;this[_0x548451('0x1a')]['enqueue'](function(){const _0x4f787f=_0x548451;return _0x395895[_0x4f787f('0xb')][_0x4f787f('0x21')](_0x2e3e9e,_0x3a6c8a)[_0x4f787f('0x1f')](function(){const _0x5d0d33=_0x4f787f;logger[_0x5d0d33('0x22')](_0x5d0d33('0x1'),_0x3a6c8a,_0x2e3e9e);})[_0x4f787f('0x15')](function(_0x54c9ac){const _0x3d0627=_0x4f787f;logger[_0x3d0627('0x22')](util[_0x3d0627('0x5')](_0x54c9ac,{'showHidden':![],'depth':null}));});});},Migration[_0x365594('0x1d')][_0x365594('0x7')]=function(_0x1d3d31,_0x226ac2,_0x368e1c){const _0x18060d=_0x365594,_0x3bd25d=this;this[_0x18060d('0x1a')][_0x18060d('0x1e')](function(){const _0x485dbf=_0x18060d;return _0x3bd25d[_0x485dbf('0xb')][_0x485dbf('0x7')](_0x1d3d31,_0x226ac2,_0x368e1c)[_0x485dbf('0x1f')](function(){const _0x29df21=_0x485dbf;logger[_0x29df21('0x22')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x226ac2,_0x368e1c,_0x1d3d31);})['catch'](function(_0x3474ee){const _0x2fc94e=_0x485dbf;logger[_0x2fc94e('0x22')](util[_0x2fc94e('0x5')](_0x3474ee,{'showHidden':![],'depth':null}));});});},Migration[_0x365594('0x1d')][_0x365594('0x1b')]=function(_0x528d51){const _0x55e9a7=_0x365594;this[_0x55e9a7('0x1a')][_0x55e9a7('0x1e')](function(){return _0x528d51();});},module['exports']={'up':function(_0x4bbf55,_0x2fa7d9){return new Promise(function(_0x59d274){const _0x3ec572=a1010_0x201f,_0xebe39e=new Migration(_0x4bbf55);_0xebe39e[_0x3ec572('0x19')](_0x3ec572('0x4'),_0x3ec572('0x3'),{'type':_0x2fa7d9[_0x3ec572('0x20')]('Leads','Contacts'),'defaultValue':_0x3ec572('0x18')}),_0xebe39e['addColumn']('chat_interactions','customerPort',{'type':_0x2fa7d9[_0x3ec572('0xe')]}),_0xebe39e[_0x3ec572('0x19')]('chat_websites','enableSendButton',{'type':_0x2fa7d9[_0x3ec572('0x24')],'defaultValue':![]}),_0xebe39e[_0x3ec572('0x19')](_0x3ec572('0x17'),'feedbackTitle',{'type':_0x2fa7d9[_0x3ec572('0xe')],'defaultValue':_0x3ec572('0x0')}),_0xebe39e['final'](_0x59d274);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.8.js b/server/migrations/2.4.8.js index e0aa04b..6d8e1a4 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1011_0x49e1=['final','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','info','exports','util','stringify','sequelize','sequence','addColumn','query\x20%s','migration','catch','../config/logger','tail','enqueue','indicesType','removeColumn','finally','join','query','inspect','removeIndex','dropTable','Removed\x20column\x20%s\x20from\x20%s','queryInterface','then','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','removeIndex\x20%s\x20%s','changeColumn'];(function(_0x2449dd,_0x49e17e){const _0x5ef0d4=function(_0x355f26){while(--_0x355f26){_0x2449dd['push'](_0x2449dd['shift']());}};_0x5ef0d4(++_0x49e17e);}(a1011_0x49e1,0xd5));const a1011_0x5ef0=function(_0x2449dd,_0x49e17e){_0x2449dd=_0x2449dd-0x0;let _0x5ef0d4=a1011_0x49e1[_0x2449dd];return _0x5ef0d4;};const _0x4768b0=a1011_0x5ef0;'use strict';const util=require(_0x4768b0('0x10')),logger=require(_0x4768b0('0x18'))(_0x4768b0('0x16')),Sequence=function(){};Sequence[_0x4768b0('0x8')]['enqueue']=function(_0x355f26){const _0x5ace3e=_0x4768b0;this['tail']=this[_0x5ace3e('0x19')]?this[_0x5ace3e('0x19')][_0x5ace3e('0x1d')](_0x355f26):_0x355f26();};const Migration=function(_0x42f2c3){const _0x544971=_0x4768b0;this['queryInterface']=_0x42f2c3,this[_0x544971('0x13')]=new Sequence();};Migration['prototype'][_0x4768b0('0xa')]=function(_0x38a172,_0x5b659d,_0x3d4dfa){const _0x12daeb=_0x4768b0,_0xbb4783=this;this['sequence'][_0x12daeb('0x1a')](function(){const _0x35e886=_0x12daeb;return _0xbb4783[_0x35e886('0x4')][_0x35e886('0xa')](_0x38a172,_0x5b659d,_0x3d4dfa)[_0x35e886('0x5')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5b659d,_0x38a172);})[_0x35e886('0x17')](function(_0x405eab){const _0x2a1bf1=_0x35e886;logger[_0x2a1bf1('0xe')](JSON['stringify'](_0x405eab));});});},Migration['prototype']['addColumn']=function(_0x4aa9b6,_0x18ab38,_0x3f5e5b){const _0x32e3e9=_0x4768b0,_0x342617=this;this[_0x32e3e9('0x13')][_0x32e3e9('0x1a')](function(){const _0x4cd9d2=_0x32e3e9;return _0x342617['queryInterface'][_0x4cd9d2('0x14')](_0x4aa9b6,_0x18ab38,_0x3f5e5b)[_0x4cd9d2('0x5')](function(){const _0x1ecfe8=_0x4cd9d2;logger[_0x1ecfe8('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x18ab38,_0x4aa9b6);})[_0x4cd9d2('0x17')](function(_0x27dc10){const _0x2db9fe=_0x4cd9d2;logger[_0x2db9fe('0xe')](JSON[_0x2db9fe('0x11')](_0x27dc10));});});},Migration[_0x4768b0('0x8')][_0x4768b0('0x2')]=function(_0x46ff86){const _0x3a0d89=_0x4768b0,_0x39d919=this;this[_0x3a0d89('0x13')][_0x3a0d89('0x1a')](function(){const _0x27f16b=_0x3a0d89;return _0x39d919[_0x27f16b('0x4')][_0x27f16b('0x2')](_0x46ff86,{'force':!![]})[_0x27f16b('0x5')](function(){const _0x30943a=_0x27f16b;logger[_0x30943a('0xe')]('table\x20dropped\x20%s',_0x46ff86);})['catch'](function(_0x45e303){const _0x42e6ca=_0x27f16b;logger['info'](JSON[_0x42e6ca('0x11')](_0x45e303));});});},Migration[_0x4768b0('0x8')]['addIndex']=function(_0x6b4553,_0x4416b9,_0x33eb7f){const _0xc0e399=_0x4768b0,_0x224f21=this;this[_0xc0e399('0x13')][_0xc0e399('0x1a')](function(){const _0x22c092=_0xc0e399;return _0x224f21[_0x22c092('0x4')]['addIndex'](_0x6b4553,_0x4416b9,{'indexName':_0x33eb7f[_0x22c092('0xd')],'indicesType':_0x33eb7f[_0x22c092('0x1b')]})[_0x22c092('0x5')](function(){const _0xe3b4fc=_0x22c092;logger[_0xe3b4fc('0xe')](_0xe3b4fc('0xc'),_0x6b4553,_0x4416b9[_0xe3b4fc('0x1e')](','),_0x33eb7f['indexName'],_0x33eb7f[_0xe3b4fc('0x1b')]);})['catch'](function(_0x2be649){const _0x35e7fc=_0x22c092;logger[_0x35e7fc('0xe')](JSON[_0x35e7fc('0x11')](_0x2be649));});});},Migration[_0x4768b0('0x8')]['removeIndex']=function(_0x3a954a,_0x2fa38e){const _0x3b9aa6=_0x4768b0,_0x5ab5be=this;this[_0x3b9aa6('0x13')][_0x3b9aa6('0x1a')](function(){const _0x59e318=_0x3b9aa6;return _0x5ab5be[_0x59e318('0x4')][_0x59e318('0x1')](_0x3a954a,_0x2fa38e)[_0x59e318('0x5')](function(){const _0x2e3d03=_0x59e318;logger[_0x2e3d03('0xe')](_0x2e3d03('0x9'),_0x3a954a,_0x2fa38e);})[_0x59e318('0x17')](function(_0x133434){const _0x201047=_0x59e318;logger[_0x201047('0xe')](JSON[_0x201047('0x11')](_0x133434));});});},Migration[_0x4768b0('0x8')][_0x4768b0('0x1f')]=function(_0x4eaa58){const _0x16ecd0=_0x4768b0,_0x202d64=this;this[_0x16ecd0('0x13')][_0x16ecd0('0x1a')](function(){const _0x4428e6=_0x16ecd0;return _0x202d64[_0x4428e6('0x4')][_0x4428e6('0x12')][_0x4428e6('0x1f')](_0x4eaa58)['then'](function(){const _0x538b27=_0x4428e6;logger[_0x538b27('0xe')](_0x538b27('0x15'),_0x4eaa58);})['catch'](function(_0xef931c){const _0x2ac5ce=_0x4428e6;logger[_0x2ac5ce('0xe')](JSON['stringify'](_0xef931c));});});},Migration[_0x4768b0('0x8')][_0x4768b0('0x1c')]=function(_0x44d9a0,_0x1ea3df){const _0x34a501=_0x4768b0,_0x4c154c=this;this[_0x34a501('0x13')][_0x34a501('0x1a')](function(){const _0x30ba4e=_0x34a501;return _0x4c154c[_0x30ba4e('0x4')]['removeColumn'](_0x44d9a0,_0x1ea3df)[_0x30ba4e('0x5')](function(){const _0x5b0c8=_0x30ba4e;logger[_0x5b0c8('0xe')](_0x5b0c8('0x3'),_0x1ea3df,_0x44d9a0);})[_0x30ba4e('0x17')](function(_0x3602d1){const _0x16d4b3=_0x30ba4e;logger[_0x16d4b3('0xe')](util[_0x16d4b3('0x0')](_0x3602d1,{'showHidden':![],'depth':null}));});});},Migration[_0x4768b0('0x8')][_0x4768b0('0x6')]=function(_0x2a84a1,_0x3ad60e,_0x157c42){const _0x5ce2c4=_0x4768b0,_0x2258d1=this;this[_0x5ce2c4('0x13')][_0x5ce2c4('0x1a')](function(){const _0x25d078=_0x5ce2c4;return _0x2258d1[_0x25d078('0x4')]['renameColumn'](_0x2a84a1,_0x3ad60e,_0x157c42)[_0x25d078('0x5')](function(){const _0x1c9fca=_0x25d078;logger['info'](_0x1c9fca('0x7'),_0x3ad60e,_0x157c42,_0x2a84a1);})[_0x25d078('0x17')](function(_0x5344f2){const _0x21d06e=_0x25d078;logger[_0x21d06e('0xe')](util['inspect'](_0x5344f2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4768b0('0xb')]=function(_0x3dd319){const _0x4c2a05=_0x4768b0;this[_0x4c2a05('0x13')]['enqueue'](function(){return _0x3dd319();});},module[_0x4768b0('0xf')]={'up':function(_0x1cd696){return new Promise(function(_0x423084){const _0x209a7c=a1011_0x5ef0,_0x18942e=new Migration(_0x1cd696);_0x18942e[_0x209a7c('0xb')](_0x423084);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.4.9.js b/server/migrations/2.4.9.js index 6982a59..5c39626 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1012_0x28ef=['finally','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','addColumn','info','exports','Added\x20column\x20%s\x20to\x20%s','indexName','inspect','table\x20dropped\x20%s','../config/logger','removeIndex\x20%s\x20%s','catch','indicesType','final','addIndex','query\x20%s','removeIndex','query','sequelize','join','then','changeColumn','Removed\x20column\x20%s\x20from\x20%s','tail','queryInterface','enqueue','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','dropTable','sequence'];(function(_0x5e4ce3,_0x28ef63){const _0xde0124=function(_0x12af77){while(--_0x12af77){_0x5e4ce3['push'](_0x5e4ce3['shift']());}};_0xde0124(++_0x28ef63);}(a1012_0x28ef,0x1ae));const a1012_0xde01=function(_0x5e4ce3,_0x28ef63){_0x5e4ce3=_0x5e4ce3-0x0;let _0xde0124=a1012_0x28ef[_0x5e4ce3];return _0xde0124;};const _0x58bf30=a1012_0xde01;'use strict';const util=require('util'),logger=require(_0x58bf30('0xa'))(_0x58bf30('0x1b')),Sequence=function(){};Sequence['prototype'][_0x58bf30('0x1a')]=function(_0x12af77){const _0x1e2071=_0x58bf30;this[_0x1e2071('0x18')]=this[_0x1e2071('0x18')]?this[_0x1e2071('0x18')][_0x1e2071('0x20')](_0x12af77):_0x12af77();};const Migration=function(_0x44444f){const _0x540518=_0x58bf30;this[_0x540518('0x19')]=_0x44444f,this[_0x540518('0x1f')]=new Sequence();};Migration['prototype'][_0x58bf30('0x16')]=function(_0x311ed3,_0x1828be,_0x1acf1f){const _0x1146b2=_0x58bf30,_0x372c3f=this;this[_0x1146b2('0x1f')][_0x1146b2('0x1a')](function(){const _0x7a7bec=_0x1146b2;return _0x372c3f[_0x7a7bec('0x19')][_0x7a7bec('0x16')](_0x311ed3,_0x1828be,_0x1acf1f)[_0x7a7bec('0x15')](function(){const _0x1de38b=_0x7a7bec;logger[_0x1de38b('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1828be,_0x311ed3);})[_0x7a7bec('0xc')](function(_0x3792bc){const _0x1c211b=_0x7a7bec;logger['info'](JSON[_0x1c211b('0x0')](_0x3792bc));});});},Migration[_0x58bf30('0x1d')]['addColumn']=function(_0x5c1eee,_0x54d011,_0x38c656){const _0x20a57b=_0x58bf30,_0x45d73d=this;this['sequence'][_0x20a57b('0x1a')](function(){const _0x270419=_0x20a57b;return _0x45d73d[_0x270419('0x19')][_0x270419('0x3')](_0x5c1eee,_0x54d011,_0x38c656)['then'](function(){const _0x4bf041=_0x270419;logger[_0x4bf041('0x4')](_0x4bf041('0x6'),_0x54d011,_0x5c1eee);})['catch'](function(_0x5e9bfb){const _0x2a1077=_0x270419;logger[_0x2a1077('0x4')](JSON[_0x2a1077('0x0')](_0x5e9bfb));});});},Migration[_0x58bf30('0x1d')][_0x58bf30('0x1e')]=function(_0x2fccb1){const _0x146aa2=this;this['sequence']['enqueue'](function(){const _0xfc3072=a1012_0xde01;return _0x146aa2[_0xfc3072('0x19')][_0xfc3072('0x1e')](_0x2fccb1,{'force':!![]})[_0xfc3072('0x15')](function(){const _0x50cec1=_0xfc3072;logger['info'](_0x50cec1('0x9'),_0x2fccb1);})[_0xfc3072('0xc')](function(_0x2b68fe){const _0x5e6dee=_0xfc3072;logger[_0x5e6dee('0x4')](JSON[_0x5e6dee('0x0')](_0x2b68fe));});});},Migration['prototype'][_0x58bf30('0xf')]=function(_0x4be3b9,_0x200f15,_0x59764d){const _0x38e644=_0x58bf30,_0x275a5b=this;this[_0x38e644('0x1f')]['enqueue'](function(){const _0x4610bd=_0x38e644;return _0x275a5b[_0x4610bd('0x19')][_0x4610bd('0xf')](_0x4be3b9,_0x200f15,{'indexName':_0x59764d[_0x4610bd('0x7')],'indicesType':_0x59764d[_0x4610bd('0xd')]})['then'](function(){const _0x10e823=_0x4610bd;logger[_0x10e823('0x4')](_0x10e823('0x1c'),_0x4be3b9,_0x200f15[_0x10e823('0x14')](','),_0x59764d[_0x10e823('0x7')],_0x59764d[_0x10e823('0xd')]);})[_0x4610bd('0xc')](function(_0x5cee72){const _0x16f4d2=_0x4610bd;logger[_0x16f4d2('0x4')](JSON[_0x16f4d2('0x0')](_0x5cee72));});});},Migration[_0x58bf30('0x1d')][_0x58bf30('0x11')]=function(_0x5ab981,_0x5a68f3){const _0xf96b9c=_0x58bf30,_0xdfe2ac=this;this[_0xf96b9c('0x1f')][_0xf96b9c('0x1a')](function(){const _0x23bcf8=_0xf96b9c;return _0xdfe2ac[_0x23bcf8('0x19')][_0x23bcf8('0x11')](_0x5ab981,_0x5a68f3)['then'](function(){const _0x349925=_0x23bcf8;logger['info'](_0x349925('0xb'),_0x5ab981,_0x5a68f3);})[_0x23bcf8('0xc')](function(_0x1c9706){const _0xbaf946=_0x23bcf8;logger[_0xbaf946('0x4')](JSON[_0xbaf946('0x0')](_0x1c9706));});});},Migration[_0x58bf30('0x1d')][_0x58bf30('0x12')]=function(_0x2ce08e){const _0xf1fd5e=_0x58bf30,_0x171839=this;this['sequence'][_0xf1fd5e('0x1a')](function(){const _0x38c586=_0xf1fd5e;return _0x171839[_0x38c586('0x19')][_0x38c586('0x13')][_0x38c586('0x12')](_0x2ce08e)[_0x38c586('0x15')](function(){const _0x540177=_0x38c586;logger[_0x540177('0x4')](_0x540177('0x10'),_0x2ce08e);})[_0x38c586('0xc')](function(_0x23d090){const _0x1b57d1=_0x38c586;logger[_0x1b57d1('0x4')](JSON['stringify'](_0x23d090));});});},Migration['prototype']['removeColumn']=function(_0x50e59c,_0x4a7437){const _0x35699e=_0x58bf30,_0x12c91a=this;this[_0x35699e('0x1f')]['enqueue'](function(){const _0x4bad5f=_0x35699e;return _0x12c91a[_0x4bad5f('0x19')][_0x4bad5f('0x2')](_0x50e59c,_0x4a7437)[_0x4bad5f('0x15')](function(){const _0x197602=_0x4bad5f;logger[_0x197602('0x4')](_0x197602('0x17'),_0x4a7437,_0x50e59c);})[_0x4bad5f('0xc')](function(_0x1f7c23){const _0x434e77=_0x4bad5f;logger[_0x434e77('0x4')](util[_0x434e77('0x8')](_0x1f7c23,{'showHidden':![],'depth':null}));});});},Migration[_0x58bf30('0x1d')]['renameColumn']=function(_0x4366b6,_0x1f723a,_0x2a410c){const _0x17d078=this;this['sequence']['enqueue'](function(){const _0x5399f5=a1012_0xde01;return _0x17d078[_0x5399f5('0x19')]['renameColumn'](_0x4366b6,_0x1f723a,_0x2a410c)[_0x5399f5('0x15')](function(){const _0x574771=_0x5399f5;logger[_0x574771('0x4')](_0x574771('0x1'),_0x1f723a,_0x2a410c,_0x4366b6);})['catch'](function(_0x4b823e){const _0x50d57e=_0x5399f5;logger[_0x50d57e('0x4')](util[_0x50d57e('0x8')](_0x4b823e,{'showHidden':![],'depth':null}));});});},Migration[_0x58bf30('0x1d')][_0x58bf30('0xe')]=function(_0x27d329){const _0x37d7b3=_0x58bf30;this[_0x37d7b3('0x1f')][_0x37d7b3('0x1a')](function(){return _0x27d329();});},module[_0x58bf30('0x5')]={'up':function(_0x170357){return new Promise(function(_0x234594){const _0x539335=a1012_0xde01,_0x544635=new Migration(_0x170357);_0x544635[_0x539335('0xe')](_0x234594);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.0.js b/server/migrations/2.5.0.js index e760853..6853d58 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1013_0x5ee1=['transcribeStatus','sentimentAccountId','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','sNegative','sNeutral','addIndex\x20%s\x20%s\x20%s\x20[%s]','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','Added\x20column\x20%s\x20to\x20%s','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','sequence','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','catch','BOOLEAN','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','tools_dispositions','indicesType','transcribeName','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','fileUri','finally','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','Removed\x20column\x20%s\x20from\x20%s','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','migration','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','changeColumn','FLOAT','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','voice_recordings','inspect','chat_websites','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','\x20`notificationTemplate`\x20text,','addIndex','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','indexName','WhatsappAccountId','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','vidaooApiKey','tail','info','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','settings','queryInterface','query','NEW','fileText','removeIndex\x20%s\x20%s','final','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','automaticTranscribe','\x20PRIMARY\x20KEY\x20(`id`),','vidaooEscalation','stringify','prototype','sPositive','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','tempSentiment','location','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','then','addColumn','tools_canned_answers','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','removeColumn','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','chat_interactions','sMixed','dropTable','exports','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','vidaooSessionId','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','query\x20%s','INTEGER','whatsappCapacity','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','failureReason','\x20KEY\x20`ListId`\x20(`ListId`),','automaticSentiment','language','removeIndex',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','STRING','TEXT','transcribeAccountId','sentiment'];(function(_0x554ddc,_0x5ee1a1){const _0x49ef8f=function(_0x6567d9){while(--_0x6567d9){_0x554ddc['push'](_0x554ddc['shift']());}};_0x49ef8f(++_0x5ee1a1);}(a1013_0x5ee1,0x101));const a1013_0x49ef=function(_0x554ddc,_0x5ee1a1){_0x554ddc=_0x554ddc-0x0;let _0x49ef8f=a1013_0x5ee1[_0x554ddc];return _0x49ef8f;};const _0x3f03b8=a1013_0x49ef;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3f03b8('0x34')),Sequence=function(){};Sequence[_0x3f03b8('0x56')][_0x3f03b8('0x21')]=function(_0x6567d9){const _0x1d6641=_0x3f03b8;this['tail']=this['tail']?this[_0x1d6641('0x47')][_0x1d6641('0x2f')](_0x6567d9):_0x6567d9();};const Migration=function(_0x47b2d0){const _0x2966e7=_0x3f03b8;this['queryInterface']=_0x47b2d0,this[_0x2966e7('0x25')]=new Sequence();};Migration[_0x3f03b8('0x56')][_0x3f03b8('0x36')]=function(_0x1b87cb,_0x41fe6e,_0x12fa6f){const _0x1417be=_0x3f03b8,_0x40f100=this;this[_0x1417be('0x25')]['enqueue'](function(){const _0x12975a=_0x1417be;return _0x40f100[_0x12975a('0x4b')][_0x12975a('0x36')](_0x1b87cb,_0x41fe6e,_0x12fa6f)[_0x12975a('0x5c')](function(){const _0x38171a=_0x12975a;logger[_0x38171a('0x48')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x41fe6e,_0x1b87cb);})[_0x12975a('0x27')](function(_0x4f891e){const _0x188846=_0x12975a;logger[_0x188846('0x48')](JSON[_0x188846('0x55')](_0x4f891e));});});},Migration[_0x3f03b8('0x56')][_0x3f03b8('0x5d')]=function(_0xf866e6,_0x1cee6a,_0x482015){const _0x132716=_0x3f03b8,_0x5ca733=this;this['sequence'][_0x132716('0x21')](function(){const _0x3e44c0=_0x132716;return _0x5ca733[_0x3e44c0('0x4b')][_0x3e44c0('0x5d')](_0xf866e6,_0x1cee6a,_0x482015)[_0x3e44c0('0x5c')](function(){const _0x16b89a=_0x3e44c0;logger[_0x16b89a('0x48')](_0x16b89a('0x22'),_0x1cee6a,_0xf866e6);})['catch'](function(_0x3068e6){const _0x4c7cf8=_0x3e44c0;logger['info'](JSON[_0x4c7cf8('0x55')](_0x3068e6));});});},Migration[_0x3f03b8('0x56')][_0x3f03b8('0x6')]=function(_0x25c4e4){const _0x4f5c6d=_0x3f03b8,_0x59baa1=this;this[_0x4f5c6d('0x25')][_0x4f5c6d('0x21')](function(){const _0x274f91=_0x4f5c6d;return _0x59baa1['queryInterface'][_0x274f91('0x6')](_0x25c4e4,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x25c4e4);})['catch'](function(_0x248a92){const _0x5ba63a=_0x274f91;logger[_0x5ba63a('0x48')](JSON['stringify'](_0x248a92));});});},Migration[_0x3f03b8('0x56')][_0x3f03b8('0x3f')]=function(_0x4c79f9,_0x3e5537,_0x2e6072){const _0x4e310d=this;this['sequence']['enqueue'](function(){const _0x3e653a=a1013_0x49ef;return _0x4e310d[_0x3e653a('0x4b')][_0x3e653a('0x3f')](_0x4c79f9,_0x3e5537,{'indexName':_0x2e6072[_0x3e653a('0x43')],'indicesType':_0x2e6072[_0x3e653a('0x2b')]})[_0x3e653a('0x5c')](function(){const _0x128a5d=_0x3e653a;logger[_0x128a5d('0x48')](_0x128a5d('0x1f'),_0x4c79f9,_0x3e5537['join'](','),_0x2e6072[_0x128a5d('0x43')],_0x2e6072[_0x128a5d('0x2b')]);})['catch'](function(_0x4d5a25){const _0x46ec9f=_0x3e653a;logger[_0x46ec9f('0x48')](JSON[_0x46ec9f('0x55')](_0x4d5a25));});});},Migration[_0x3f03b8('0x56')][_0x3f03b8('0x13')]=function(_0x51d590,_0x840f2c){const _0x5f5a15=_0x3f03b8,_0x3a33ca=this;this['sequence'][_0x5f5a15('0x21')](function(){const _0x2036f2=_0x5f5a15;return _0x3a33ca[_0x2036f2('0x4b')][_0x2036f2('0x13')](_0x51d590,_0x840f2c)[_0x2036f2('0x5c')](function(){const _0x455225=_0x2036f2;logger[_0x455225('0x48')](_0x455225('0x4f'),_0x51d590,_0x840f2c);})[_0x2036f2('0x27')](function(_0xb6cfcc){const _0x30010a=_0x2036f2;logger[_0x30010a('0x48')](JSON[_0x30010a('0x55')](_0xb6cfcc));});});},Migration['prototype'][_0x3f03b8('0x4c')]=function(_0x27eb1d){const _0x1bc4d9=_0x3f03b8,_0x4ce7a2=this;this[_0x1bc4d9('0x25')][_0x1bc4d9('0x21')](function(){const _0x35f7bd=_0x1bc4d9;return _0x4ce7a2[_0x35f7bd('0x4b')]['sequelize'][_0x35f7bd('0x4c')](_0x27eb1d)[_0x35f7bd('0x5c')](function(){const _0x1e0330=_0x35f7bd;logger[_0x1e0330('0x48')](_0x1e0330('0xb'),_0x27eb1d);})[_0x35f7bd('0x27')](function(_0x322c84){const _0x345225=_0x35f7bd;logger[_0x345225('0x48')](JSON[_0x345225('0x55')](_0x322c84));});});},Migration['prototype']['removeColumn']=function(_0x1503e8,_0x5d78e2){const _0x3e51ef=_0x3f03b8,_0x3d736a=this;this[_0x3e51ef('0x25')]['enqueue'](function(){const _0xbcc765=_0x3e51ef;return _0x3d736a[_0xbcc765('0x4b')][_0xbcc765('0x2')](_0x1503e8,_0x5d78e2)[_0xbcc765('0x5c')](function(){const _0x2ebf71=_0xbcc765;logger[_0x2ebf71('0x48')](_0x2ebf71('0x31'),_0x5d78e2,_0x1503e8);})['catch'](function(_0x284778){const _0x4f856c=_0xbcc765;logger[_0x4f856c('0x48')](util['inspect'](_0x284778,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5471c4,_0x573840,_0x460bc3){const _0x431d67=_0x3f03b8,_0x130bdb=this;this[_0x431d67('0x25')][_0x431d67('0x21')](function(){const _0x33906f=_0x431d67;return _0x130bdb[_0x33906f('0x4b')]['renameColumn'](_0x5471c4,_0x573840,_0x460bc3)[_0x33906f('0x5c')](function(){const _0x547498=_0x33906f;logger[_0x547498('0x48')](_0x547498('0x20'),_0x573840,_0x460bc3,_0x5471c4);})['catch'](function(_0x31f2ca){const _0x79ad85=_0x33906f;logger['info'](util[_0x79ad85('0x3a')](_0x31f2ca,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3f03b8('0x50')]=function(_0x2b4a0f){const _0x587f23=_0x3f03b8;this[_0x587f23('0x25')][_0x587f23('0x21')](function(){return _0x2b4a0f();});},module[_0x3f03b8('0x7')]={'up':function(_0x22fe4f,_0x4471c3){return new Promise(function(_0x2f7e25){const _0xa54fe3=a1013_0x49ef,_0x4ed9f4=new Migration(_0x22fe4f);_0x4ed9f4[_0xa54fe3('0x4c')](_0xa54fe3('0x5b')+_0xa54fe3('0x26')+_0xa54fe3('0x3c')+_0xa54fe3('0x2d')+_0xa54fe3('0x24')+_0xa54fe3('0x38')+_0xa54fe3('0x45')+_0xa54fe3('0x1b')+_0xa54fe3('0x41')+_0xa54fe3('0x3')+_0xa54fe3('0x3e')+'\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0xa54fe3('0x8')+_0xa54fe3('0xe')+'\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0xa54fe3('0x49')+_0xa54fe3('0x35')+_0xa54fe3('0x42')+_0xa54fe3('0xa')+_0xa54fe3('0x32')+_0xa54fe3('0x23')+_0xa54fe3('0x29')+'\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0xa54fe3('0x33')+_0xa54fe3('0x53')+_0xa54fe3('0x3d')+_0xa54fe3('0x40')+_0xa54fe3('0x10')+_0xa54fe3('0x1c')+_0xa54fe3('0x30')+_0xa54fe3('0x14')),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x2a'),_0xa54fe3('0x44'),{'type':_0x4471c3[_0xa54fe3('0xc')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x0'),_0xa54fe3('0x44'),{'type':_0x4471c3[_0xa54fe3('0xc')]}),_0x4ed9f4[_0xa54fe3('0x5d')]('users','whatsappPause',{'type':_0x4471c3['BOOLEAN'],'defaultValue':![]}),_0x4ed9f4['addColumn']('users',_0xa54fe3('0xd'),{'type':_0x4471c3[_0xa54fe3('0x28')],'defaultValue':![]}),_0x4ed9f4[_0xa54fe3('0x4c')](_0xa54fe3('0x58')),_0x4ed9f4[_0xa54fe3('0x4c')](_0xa54fe3('0x1')),_0x4ed9f4[_0xa54fe3('0x4c')]('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'),_0x4ed9f4[_0xa54fe3('0x4c')](_0xa54fe3('0x51')),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4'),_0xa54fe3('0x9'),{'type':_0x4471c3['TEXT']}),_0x4ed9f4[_0xa54fe3('0x5d')]('chat_websites',_0xa54fe3('0x54'),{'type':_0x4471c3[_0xa54fe3('0x28')],'defaultValue':![]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x3b'),_0xa54fe3('0x46'),{'type':_0x4471c3[_0xa54fe3('0x15')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x39'),_0xa54fe3('0x5a'),{'type':_0x4471c3[_0xa54fe3('0x16')]}),_0x4ed9f4['addColumn']('voice_recordings',_0xa54fe3('0x2c'),{'type':_0x4471c3[_0xa54fe3('0x15')]}),_0x4ed9f4[_0xa54fe3('0x5d')]('voice_recordings',_0xa54fe3('0x19'),{'type':_0x4471c3['STRING'],'defaultValue':_0xa54fe3('0x4d')}),_0x4ed9f4[_0xa54fe3('0x5d')]('voice_recordings',_0xa54fe3('0x2e'),{'type':_0x4471c3[_0xa54fe3('0x16')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x39'),_0xa54fe3('0x4e'),{'type':_0x4471c3[_0xa54fe3('0x16')]}),_0x4ed9f4[_0xa54fe3('0x5d')]('voice_recordings',_0xa54fe3('0xf'),{'type':_0x4471c3['TEXT']}),_0x4ed9f4[_0xa54fe3('0x5d')]('voice_recordings',_0xa54fe3('0x18'),{'type':_0x4471c3['STRING']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x39'),_0xa54fe3('0x57'),{'type':_0x4471c3['FLOAT']}),_0x4ed9f4[_0xa54fe3('0x5d')]('voice_recordings',_0xa54fe3('0x1d'),{'type':_0x4471c3[_0xa54fe3('0x37')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x39'),_0xa54fe3('0x1e'),{'type':_0x4471c3[_0xa54fe3('0x37')]}),_0x4ed9f4['addColumn'](_0xa54fe3('0x39'),_0xa54fe3('0x5'),{'type':_0x4471c3[_0xa54fe3('0x37')]}),_0x4ed9f4['addColumn'](_0xa54fe3('0x39'),_0xa54fe3('0x59'),{'type':_0x4471c3[_0xa54fe3('0x28')]}),_0x4ed9f4[_0xa54fe3('0x5d')]('settings','transcribe',{'type':_0x4471c3[_0xa54fe3('0x28')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),_0xa54fe3('0x52'),{'type':_0x4471c3['BOOLEAN']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),_0xa54fe3('0x17'),{'type':_0x4471c3['INTEGER']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),'transcribeRegion',{'type':_0x4471c3['STRING']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),_0xa54fe3('0x18'),{'type':_0x4471c3[_0xa54fe3('0x28')]}),_0x4ed9f4[_0xa54fe3('0x5d')]('settings',_0xa54fe3('0x11'),{'type':_0x4471c3['BOOLEAN']}),_0x4ed9f4['addColumn'](_0xa54fe3('0x4a'),_0xa54fe3('0x1a'),{'type':_0x4471c3['INTEGER']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),'sentimentRegion',{'type':_0x4471c3[_0xa54fe3('0x15')]}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),_0xa54fe3('0x12'),{'type':_0x4471c3['STRING']}),_0x4ed9f4[_0xa54fe3('0x5d')](_0xa54fe3('0x4a'),'bucket',{'type':_0x4471c3[_0xa54fe3('0x15')]}),_0x4ed9f4[_0xa54fe3('0x50')](_0x2f7e25);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.1.js b/server/migrations/2.5.1.js index 4a67c66..6ede388 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1014_0x2806=['stringify','sequence','tail','util','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','info','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','dropTable','catch','Removed\x20column\x20%s\x20from\x20%s','join','removeIndex','migration','indexName','enqueue','indicesType','table\x20dropped\x20%s','changeColumn','renameColumn','../config/logger','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','final','prototype','query','removeIndex\x20%s\x20%s'];(function(_0x1ef5b9,_0x280696){const _0x77532e=function(_0x565815){while(--_0x565815){_0x1ef5b9['push'](_0x1ef5b9['shift']());}};_0x77532e(++_0x280696);}(a1014_0x2806,0xe8));const a1014_0x7753=function(_0x1ef5b9,_0x280696){_0x1ef5b9=_0x1ef5b9-0x0;let _0x77532e=a1014_0x2806[_0x1ef5b9];return _0x77532e;};const _0xe39d2c=a1014_0x7753;'use strict';const util=require(_0xe39d2c('0xb')),logger=require(_0xe39d2c('0x0'))(_0xe39d2c('0x17')),Sequence=function(){};Sequence[_0xe39d2c('0x5')]['enqueue']=function(_0x565815){const _0x46ee4f=_0xe39d2c;this['tail']=this['tail']?this[_0x46ee4f('0xa')]['finally'](_0x565815):_0x565815();};const Migration=function(_0x37873d){const _0x5e3e59=_0xe39d2c;this[_0x5e3e59('0xc')]=_0x37873d,this[_0x5e3e59('0x9')]=new Sequence();};Migration[_0xe39d2c('0x5')][_0xe39d2c('0x1c')]=function(_0x78ba73,_0x2b4955,_0x2e59f4){const _0x4bfe3c=_0xe39d2c,_0x355d38=this;this[_0x4bfe3c('0x9')][_0x4bfe3c('0x19')](function(){const _0x20df8c=_0x4bfe3c;return _0x355d38[_0x20df8c('0xc')][_0x20df8c('0x1c')](_0x78ba73,_0x2b4955,_0x2e59f4)[_0x20df8c('0x11')](function(){const _0x2e0e43=_0x20df8c;logger['info'](_0x2e0e43('0xd'),_0x2b4955,_0x78ba73);})[_0x20df8c('0x13')](function(_0xcf98f8){const _0x149396=_0x20df8c;logger[_0x149396('0xe')](JSON[_0x149396('0x8')](_0xcf98f8));});});},Migration['prototype'][_0xe39d2c('0xf')]=function(_0x500499,_0x578a5a,_0x1c3f72){const _0x512abe=_0xe39d2c,_0xe34fa6=this;this[_0x512abe('0x9')][_0x512abe('0x19')](function(){const _0x5513a8=_0x512abe;return _0xe34fa6[_0x5513a8('0xc')][_0x5513a8('0xf')](_0x500499,_0x578a5a,_0x1c3f72)[_0x5513a8('0x11')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x578a5a,_0x500499);})[_0x5513a8('0x13')](function(_0x2e7dc3){const _0x50127a=_0x5513a8;logger[_0x50127a('0xe')](JSON['stringify'](_0x2e7dc3));});});},Migration[_0xe39d2c('0x5')][_0xe39d2c('0x12')]=function(_0x233d27){const _0x12f1b1=_0xe39d2c,_0x1a166e=this;this['sequence'][_0x12f1b1('0x19')](function(){const _0x1bae4c=_0x12f1b1;return _0x1a166e[_0x1bae4c('0xc')]['dropTable'](_0x233d27,{'force':!![]})[_0x1bae4c('0x11')](function(){const _0x1622c4=_0x1bae4c;logger['info'](_0x1622c4('0x1b'),_0x233d27);})[_0x1bae4c('0x13')](function(_0xaf17b2){const _0x1197ba=_0x1bae4c;logger[_0x1197ba('0xe')](JSON[_0x1197ba('0x8')](_0xaf17b2));});});},Migration[_0xe39d2c('0x5')]['addIndex']=function(_0x23c911,_0x513545,_0x5184c1){const _0x3163aa=_0xe39d2c,_0x899119=this;this[_0x3163aa('0x9')][_0x3163aa('0x19')](function(){const _0x22ca66=_0x3163aa;return _0x899119[_0x22ca66('0xc')][_0x22ca66('0x3')](_0x23c911,_0x513545,{'indexName':_0x5184c1[_0x22ca66('0x18')],'indicesType':_0x5184c1[_0x22ca66('0x1a')]})[_0x22ca66('0x11')](function(){const _0x1d2bf7=_0x22ca66;logger[_0x1d2bf7('0xe')](_0x1d2bf7('0x10'),_0x23c911,_0x513545[_0x1d2bf7('0x15')](','),_0x5184c1[_0x1d2bf7('0x18')],_0x5184c1[_0x1d2bf7('0x1a')]);})[_0x22ca66('0x13')](function(_0x5d88b1){const _0x25859b=_0x22ca66;logger['info'](JSON[_0x25859b('0x8')](_0x5d88b1));});});},Migration[_0xe39d2c('0x5')]['removeIndex']=function(_0x5c01f1,_0x5d4045){const _0x5be251=_0xe39d2c,_0x2c04b3=this;this[_0x5be251('0x9')]['enqueue'](function(){const _0x14e38f=_0x5be251;return _0x2c04b3[_0x14e38f('0xc')][_0x14e38f('0x16')](_0x5c01f1,_0x5d4045)[_0x14e38f('0x11')](function(){const _0x244f45=_0x14e38f;logger[_0x244f45('0xe')](_0x244f45('0x7'),_0x5c01f1,_0x5d4045);})[_0x14e38f('0x13')](function(_0x3058f6){const _0x406497=_0x14e38f;logger[_0x406497('0xe')](JSON['stringify'](_0x3058f6));});});},Migration[_0xe39d2c('0x5')][_0xe39d2c('0x6')]=function(_0x3d6e92){const _0x2d61b7=_0xe39d2c,_0x18a626=this;this[_0x2d61b7('0x9')][_0x2d61b7('0x19')](function(){const _0x3b963f=_0x2d61b7;return _0x18a626[_0x3b963f('0xc')]['sequelize'][_0x3b963f('0x6')](_0x3d6e92)[_0x3b963f('0x11')](function(){const _0x2cc1c8=_0x3b963f;logger[_0x2cc1c8('0xe')]('query\x20%s',_0x3d6e92);})[_0x3b963f('0x13')](function(_0x2f685e){const _0x4c8cfc=_0x3b963f;logger[_0x4c8cfc('0xe')](JSON[_0x4c8cfc('0x8')](_0x2f685e));});});},Migration[_0xe39d2c('0x5')]['removeColumn']=function(_0x308735,_0x2e855c){const _0x490b5d=_0xe39d2c,_0x3190a9=this;this[_0x490b5d('0x9')][_0x490b5d('0x19')](function(){const _0x21244b=_0x490b5d;return _0x3190a9[_0x21244b('0xc')][_0x21244b('0x1')](_0x308735,_0x2e855c)['then'](function(){const _0x31cb75=_0x21244b;logger[_0x31cb75('0xe')](_0x31cb75('0x14'),_0x2e855c,_0x308735);})[_0x21244b('0x13')](function(_0x159151){logger['info'](util['inspect'](_0x159151,{'showHidden':![],'depth':null}));});});},Migration[_0xe39d2c('0x5')][_0xe39d2c('0x1d')]=function(_0x5171d3,_0x3ddac5,_0x81c4d9){const _0x5951f7=_0xe39d2c,_0x5ce1ac=this;this[_0x5951f7('0x9')][_0x5951f7('0x19')](function(){const _0x33750b=_0x5951f7;return _0x5ce1ac[_0x33750b('0xc')][_0x33750b('0x1d')](_0x5171d3,_0x3ddac5,_0x81c4d9)[_0x33750b('0x11')](function(){const _0xb24eca=_0x33750b;logger[_0xb24eca('0xe')](_0xb24eca('0x2'),_0x3ddac5,_0x81c4d9,_0x5171d3);})['catch'](function(_0x424f24){logger['info'](util['inspect'](_0x424f24,{'showHidden':![],'depth':null}));});});},Migration[_0xe39d2c('0x5')]['final']=function(_0x33c16d){const _0x180b4f=_0xe39d2c;this[_0x180b4f('0x9')][_0x180b4f('0x19')](function(){return _0x33c16d();});},module['exports']={'up':function(_0x3a9fe4){return new Promise(function(_0x19a2f1){const _0xc0798d=a1014_0x7753,_0x1c2fe3=new Migration(_0x3a9fe4);_0x1c2fe3[_0xc0798d('0x4')](_0x19a2f1);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.2.js b/server/migrations/2.5.2.js index 9545b14..4c7eb5e 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1015_0x3361=['dialNoSuchNumberRetryFrequency','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','removeIndex\x20%s\x20%s','util','enqueue','countdropretry','migration','dialAbandonedMaxRetry','query\x20%s','cm_hopper','changeColumn','queryInterface','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','tail','cm_hopper_final','catch','then','dialAgentRejectRetryFrequency','stringify','addColumn','countnosuchnumberretry','voice_queues','join','prototype','campaigns','query','indexName','dialDropMaxRetry','../config/logger','exports','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','dialDropRetryFrequency','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','final','cm_hopper_history','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','dialMachineRetryFrequency','Changed\x20column\x20%s\x20in\x20table\x20%s','info','indicesType','dialAbandonedRetryFrequency','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','finally','inspect','dialNoSuchNumberMaxRetry','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','countabandonedretry','INTEGER','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','table\x20dropped\x20%s','countagentrejectretry','Removed\x20column\x20%s\x20from\x20%s','removeIndex','countmachineretry','renameColumn','dropTable'];(function(_0x3351e3,_0x336197){const _0x48527d=function(_0x135620){while(--_0x135620){_0x3351e3['push'](_0x3351e3['shift']());}};_0x48527d(++_0x336197);}(a1015_0x3361,0x6e));const a1015_0x4852=function(_0x3351e3,_0x336197){_0x3351e3=_0x3351e3-0x0;let _0x48527d=a1015_0x3361[_0x3351e3];return _0x48527d;};const _0x39c121=a1015_0x4852;'use strict';const util=require(_0x39c121('0xb')),logger=require(_0x39c121('0x24'))(_0x39c121('0xe')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x135620){const _0xb363a2=_0x39c121;this[_0xb363a2('0x15')]=this[_0xb363a2('0x15')]?this[_0xb363a2('0x15')][_0xb363a2('0x35')](_0x135620):_0x135620();};const Migration=function(_0x1ca942){const _0x4bc3ed=_0x39c121;this['queryInterface']=_0x1ca942,this[_0x4bc3ed('0x34')]=new Sequence();};Migration['prototype'][_0x39c121('0x12')]=function(_0xe3d342,_0x5de426,_0x1cbb3d){const _0x2dad14=_0x39c121,_0x4d689a=this;this[_0x2dad14('0x34')][_0x2dad14('0xc')](function(){const _0x11a77a=_0x2dad14;return _0x4d689a[_0x11a77a('0x13')][_0x11a77a('0x12')](_0xe3d342,_0x5de426,_0x1cbb3d)[_0x11a77a('0x18')](function(){const _0x4acebd=_0x11a77a;logger[_0x4acebd('0x30')](_0x4acebd('0x2f'),_0x5de426,_0xe3d342);})[_0x11a77a('0x17')](function(_0x3e953f){const _0x22a59e=_0x11a77a;logger[_0x22a59e('0x30')](JSON[_0x22a59e('0x1a')](_0x3e953f));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x1b')]=function(_0x2ccd3a,_0x7ef339,_0x3edbc4){const _0xfc13ab=_0x39c121,_0x5b8b5a=this;this[_0xfc13ab('0x34')]['enqueue'](function(){const _0x6d18a4=_0xfc13ab;return _0x5b8b5a[_0x6d18a4('0x13')]['addColumn'](_0x2ccd3a,_0x7ef339,_0x3edbc4)['then'](function(){const _0x169418=_0x6d18a4;logger['info'](_0x169418('0x28'),_0x7ef339,_0x2ccd3a);})[_0x6d18a4('0x17')](function(_0x907ad9){const _0x3d59eb=_0x6d18a4;logger[_0x3d59eb('0x30')](JSON['stringify'](_0x907ad9));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x7')]=function(_0x4c7d47){const _0x4d7e70=_0x39c121,_0x30e4aa=this;this[_0x4d7e70('0x34')][_0x4d7e70('0xc')](function(){const _0x5d4a97=_0x4d7e70;return _0x30e4aa[_0x5d4a97('0x13')][_0x5d4a97('0x7')](_0x4c7d47,{'force':!![]})[_0x5d4a97('0x18')](function(){const _0x57b608=_0x5d4a97;logger['info'](_0x57b608('0x1'),_0x4c7d47);})['catch'](function(_0x2f07bc){const _0x379f56=_0x5d4a97;logger[_0x379f56('0x30')](JSON[_0x379f56('0x1a')](_0x2f07bc));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x27')]=function(_0x101b59,_0x5d937d,_0x17dc4f){const _0x1bf9c2=_0x39c121,_0x53ce37=this;this['sequence'][_0x1bf9c2('0xc')](function(){const _0x39ef1d=_0x1bf9c2;return _0x53ce37[_0x39ef1d('0x13')]['addIndex'](_0x101b59,_0x5d937d,{'indexName':_0x17dc4f[_0x39ef1d('0x22')],'indicesType':_0x17dc4f[_0x39ef1d('0x31')]})['then'](function(){const _0x2761a8=_0x39ef1d;logger['info'](_0x2761a8('0x33'),_0x101b59,_0x5d937d[_0x2761a8('0x1e')](','),_0x17dc4f[_0x2761a8('0x22')],_0x17dc4f['indicesType']);})[_0x39ef1d('0x17')](function(_0x105d93){const _0x297fa0=_0x39ef1d;logger[_0x297fa0('0x30')](JSON[_0x297fa0('0x1a')](_0x105d93));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x4')]=function(_0x969184,_0x1aa3f4){const _0x447025=_0x39c121,_0x49c5c7=this;this[_0x447025('0x34')][_0x447025('0xc')](function(){const _0x2cd8e6=_0x447025;return _0x49c5c7[_0x2cd8e6('0x13')]['removeIndex'](_0x969184,_0x1aa3f4)[_0x2cd8e6('0x18')](function(){const _0x2c8914=_0x2cd8e6;logger[_0x2c8914('0x30')](_0x2c8914('0xa'),_0x969184,_0x1aa3f4);})[_0x2cd8e6('0x17')](function(_0x397bf0){logger['info'](JSON['stringify'](_0x397bf0));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x21')]=function(_0x1775d7){const _0x43f19c=this;this['sequence']['enqueue'](function(){const _0x142d47=a1015_0x4852;return _0x43f19c[_0x142d47('0x13')]['sequelize'][_0x142d47('0x21')](_0x1775d7)[_0x142d47('0x18')](function(){const _0x31cd6e=_0x142d47;logger['info'](_0x31cd6e('0x10'),_0x1775d7);})[_0x142d47('0x17')](function(_0x4d8532){const _0x4dd990=_0x142d47;logger['info'](JSON[_0x4dd990('0x1a')](_0x4d8532));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x26')]=function(_0x4d574f,_0x1c1b9a){const _0x2acfb4=_0x39c121,_0x280278=this;this[_0x2acfb4('0x34')][_0x2acfb4('0xc')](function(){const _0x17b454=_0x2acfb4;return _0x280278[_0x17b454('0x13')]['removeColumn'](_0x4d574f,_0x1c1b9a)[_0x17b454('0x18')](function(){const _0x491171=_0x17b454;logger['info'](_0x491171('0x3'),_0x1c1b9a,_0x4d574f);})[_0x17b454('0x17')](function(_0x4cd38a){const _0x1f6077=_0x17b454;logger['info'](util[_0x1f6077('0x36')](_0x4cd38a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x8c6010,_0x43568c,_0x33c885){const _0x385ee4=_0x39c121,_0x3ad76b=this;this[_0x385ee4('0x34')]['enqueue'](function(){const _0x43eed0=_0x385ee4;return _0x3ad76b['queryInterface'][_0x43eed0('0x6')](_0x8c6010,_0x43568c,_0x33c885)[_0x43eed0('0x18')](function(){const _0x2ca364=_0x43eed0;logger[_0x2ca364('0x30')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x43568c,_0x33c885,_0x8c6010);})[_0x43eed0('0x17')](function(_0xc53215){const _0x8d52d3=_0x43eed0;logger[_0x8d52d3('0x30')](util[_0x8d52d3('0x36')](_0xc53215,{'showHidden':![],'depth':null}));});});},Migration[_0x39c121('0x1f')][_0x39c121('0x2b')]=function(_0x3e3619){const _0x42e1d3=_0x39c121;this[_0x42e1d3('0x34')][_0x42e1d3('0xc')](function(){return _0x3e3619();});},module[_0x39c121('0x25')]={'up':function(_0x56165b,_0x20a74b){return new Promise(function(_0x1a36e0){const _0x523c3d=a1015_0x4852,_0x5261d4=new Migration(_0x56165b);_0x5261d4[_0x523c3d('0x21')](_0x523c3d('0x2d')),_0x5261d4['query'](_0x523c3d('0x14')),_0x5261d4[_0x523c3d('0x21')](_0x523c3d('0x2a')),_0x5261d4[_0x523c3d('0x21')](_0x523c3d('0x9')),_0x5261d4[_0x523c3d('0x21')](_0x523c3d('0x0')),_0x5261d4[_0x523c3d('0x21')]('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7'),_0x5261d4[_0x523c3d('0x21')]('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7'),_0x5261d4[_0x523c3d('0x21')](_0x523c3d('0x38')),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x1d'),_0x523c3d('0x37'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x1d'),_0x523c3d('0x8'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')]('voice_queues',_0x523c3d('0x23'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4['addColumn'](_0x523c3d('0x1d'),'dialDropRetryFrequency',{'type':_0x20a74b['INTEGER'],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x1d'),_0x523c3d('0xf'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x1d'),_0x523c3d('0x32'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4['addColumn'](_0x523c3d('0x1d'),'dialMachineMaxRetry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')]('voice_queues','dialMachineRetryFrequency',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4['addColumn'](_0x523c3d('0x1d'),'dialAgentRejectMaxRetry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4['addColumn'](_0x523c3d('0x1d'),'dialAgentRejectRetryFrequency',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x20'),_0x523c3d('0x37'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')]('campaigns',_0x523c3d('0x8'),{'type':_0x20a74b['INTEGER'],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')]('campaigns',_0x523c3d('0x23'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x20'),_0x523c3d('0x29'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x20'),'dialAbandonedMaxRetry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4['addColumn'](_0x523c3d('0x20'),'dialAbandonedRetryFrequency',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4['addColumn'](_0x523c3d('0x20'),'dialMachineMaxRetry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x20'),_0x523c3d('0x2e'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')]('campaigns','dialAgentRejectMaxRetry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x3}),_0x5261d4[_0x523c3d('0x1b')]('campaigns',_0x523c3d('0x19'),{'type':_0x20a74b['INTEGER'],'defaultValue':0x96}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x11'),_0x523c3d('0x1c'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4['addColumn']('cm_hopper',_0x523c3d('0xd'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x11'),'countabandonedretry',{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x11'),_0x523c3d('0x5'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x11'),'countagentrejectretry',{'type':_0x20a74b['INTEGER'],'defaultValue':0x0}),_0x5261d4['addColumn'](_0x523c3d('0x16'),_0x523c3d('0x1c'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')]('cm_hopper_final',_0x523c3d('0xd'),{'type':_0x20a74b['INTEGER'],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')]('cm_hopper_final','countabandonedretry',{'type':_0x20a74b['INTEGER'],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')]('cm_hopper_final',_0x523c3d('0x5'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4['addColumn'](_0x523c3d('0x16'),_0x523c3d('0x2'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4['addColumn'](_0x523c3d('0x2c'),_0x523c3d('0x1c'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x2c'),_0x523c3d('0xd'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x2c'),_0x523c3d('0x39'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x2c'),_0x523c3d('0x5'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x1b')](_0x523c3d('0x2c'),_0x523c3d('0x2'),{'type':_0x20a74b[_0x523c3d('0x3a')],'defaultValue':0x0}),_0x5261d4[_0x523c3d('0x2b')](_0x1a36e0);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.3.js b/server/migrations/2.5.3.js index 02810cf..fc98e3f 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1016_0x32cf=['indexName','../config/logger','migration','STRING','prototype','color','renameColumn','changeColumn','dropTable','info','addColumn','table\x20dropped\x20%s','queryInterface','color_button','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','sequence','query','then','catch','exports','Added\x20column\x20%s\x20to\x20%s','#011F6A','join','stringify','query\x20%s','final','removeColumn','inspect','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','chat_websites','removeIndex','enqueue','indicesType','finally','util'];(function(_0x221ec4,_0x32cf86){const _0x256435=function(_0x367f8d){while(--_0x367f8d){_0x221ec4['push'](_0x221ec4['shift']());}};_0x256435(++_0x32cf86);}(a1016_0x32cf,0x127));const a1016_0x2564=function(_0x221ec4,_0x32cf86){_0x221ec4=_0x221ec4-0x0;let _0x256435=a1016_0x32cf[_0x221ec4];return _0x256435;};const _0x180946=a1016_0x2564;'use strict';const util=require(_0x180946('0x8')),logger=require(_0x180946('0xa'))(_0x180946('0xb')),Sequence=function(){};Sequence[_0x180946('0xd')][_0x180946('0x5')]=function(_0x367f8d){const _0x4abb69=_0x180946;this[_0x4abb69('0x18')]=this[_0x4abb69('0x18')]?this[_0x4abb69('0x18')][_0x4abb69('0x7')](_0x367f8d):_0x367f8d();};const Migration=function(_0x51b888){const _0x1cd879=_0x180946;this[_0x1cd879('0x15')]=_0x51b888,this[_0x1cd879('0x19')]=new Sequence();};Migration['prototype'][_0x180946('0x10')]=function(_0x17f696,_0x368037,_0x1d0209){const _0x4b2f15=this;this['sequence']['enqueue'](function(){const _0x49ab0c=a1016_0x2564;return _0x4b2f15['queryInterface'][_0x49ab0c('0x10')](_0x17f696,_0x368037,_0x1d0209)['then'](function(){const _0x2d8184=_0x49ab0c;logger[_0x2d8184('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x368037,_0x17f696);})[_0x49ab0c('0x1c')](function(_0x3d2fa1){const _0x3403dd=_0x49ab0c;logger[_0x3403dd('0x12')](JSON[_0x3403dd('0x21')](_0x3d2fa1));});});},Migration[_0x180946('0xd')][_0x180946('0x13')]=function(_0x4bd8b9,_0x2fa5eb,_0x5b85f2){const _0x327726=_0x180946,_0x369850=this;this[_0x327726('0x19')][_0x327726('0x5')](function(){const _0x29228b=_0x327726;return _0x369850[_0x29228b('0x15')][_0x29228b('0x13')](_0x4bd8b9,_0x2fa5eb,_0x5b85f2)[_0x29228b('0x1b')](function(){const _0x382db7=_0x29228b;logger['info'](_0x382db7('0x1e'),_0x2fa5eb,_0x4bd8b9);})['catch'](function(_0x4ca990){const _0x1f3ab7=_0x29228b;logger[_0x1f3ab7('0x12')](JSON[_0x1f3ab7('0x21')](_0x4ca990));});});},Migration[_0x180946('0xd')]['dropTable']=function(_0x323c36){const _0x2273dd=_0x180946,_0x50d3e1=this;this[_0x2273dd('0x19')][_0x2273dd('0x5')](function(){const _0x169729=_0x2273dd;return _0x50d3e1[_0x169729('0x15')][_0x169729('0x11')](_0x323c36,{'force':!![]})[_0x169729('0x1b')](function(){const _0x295889=_0x169729;logger[_0x295889('0x12')](_0x295889('0x14'),_0x323c36);})[_0x169729('0x1c')](function(_0x3f56ca){const _0x3a5c6e=_0x169729;logger[_0x3a5c6e('0x12')](JSON[_0x3a5c6e('0x21')](_0x3f56ca));});});},Migration[_0x180946('0xd')][_0x180946('0x2')]=function(_0x314d5a,_0x458a27,_0x4d0258){const _0x5b5b59=_0x180946,_0x38d455=this;this[_0x5b5b59('0x19')][_0x5b5b59('0x5')](function(){const _0x2fa6f3=_0x5b5b59;return _0x38d455[_0x2fa6f3('0x15')][_0x2fa6f3('0x2')](_0x314d5a,_0x458a27,{'indexName':_0x4d0258['indexName'],'indicesType':_0x4d0258[_0x2fa6f3('0x6')]})['then'](function(){const _0x289fc8=_0x2fa6f3;logger[_0x289fc8('0x12')](_0x289fc8('0x17'),_0x314d5a,_0x458a27[_0x289fc8('0x20')](','),_0x4d0258[_0x289fc8('0x9')],_0x4d0258[_0x289fc8('0x6')]);})[_0x2fa6f3('0x1c')](function(_0x2a3eb4){const _0x2e5c3d=_0x2fa6f3;logger[_0x2e5c3d('0x12')](JSON[_0x2e5c3d('0x21')](_0x2a3eb4));});});},Migration[_0x180946('0xd')]['removeIndex']=function(_0x5d6782,_0x310165){const _0x5aa880=_0x180946,_0x2731f2=this;this[_0x5aa880('0x19')][_0x5aa880('0x5')](function(){const _0x3d03ff=_0x5aa880;return _0x2731f2[_0x3d03ff('0x15')][_0x3d03ff('0x4')](_0x5d6782,_0x310165)[_0x3d03ff('0x1b')](function(){const _0x1e0f02=_0x3d03ff;logger[_0x1e0f02('0x12')](_0x1e0f02('0x0'),_0x5d6782,_0x310165);})[_0x3d03ff('0x1c')](function(_0x364dc3){const _0x7b6853=_0x3d03ff;logger[_0x7b6853('0x12')](JSON[_0x7b6853('0x21')](_0x364dc3));});});},Migration[_0x180946('0xd')][_0x180946('0x1a')]=function(_0x350159){const _0x44ede0=_0x180946,_0x2901c5=this;this[_0x44ede0('0x19')][_0x44ede0('0x5')](function(){const _0x108280=_0x44ede0;return _0x2901c5[_0x108280('0x15')]['sequelize'][_0x108280('0x1a')](_0x350159)[_0x108280('0x1b')](function(){const _0x3fc036=_0x108280;logger[_0x3fc036('0x12')](_0x3fc036('0x22'),_0x350159);})[_0x108280('0x1c')](function(_0x2d5200){const _0x478e1e=_0x108280;logger[_0x478e1e('0x12')](JSON[_0x478e1e('0x21')](_0x2d5200));});});},Migration[_0x180946('0xd')][_0x180946('0x24')]=function(_0x3234f7,_0xf95cd8){const _0x44a904=_0x180946,_0x18b048=this;this[_0x44a904('0x19')]['enqueue'](function(){const _0x3e309d=_0x44a904;return _0x18b048['queryInterface'][_0x3e309d('0x24')](_0x3234f7,_0xf95cd8)['then'](function(){const _0x9d62d3=_0x3e309d;logger[_0x9d62d3('0x12')]('Removed\x20column\x20%s\x20from\x20%s',_0xf95cd8,_0x3234f7);})['catch'](function(_0x330572){const _0x49c097=_0x3e309d;logger[_0x49c097('0x12')](util[_0x49c097('0x25')](_0x330572,{'showHidden':![],'depth':null}));});});},Migration[_0x180946('0xd')][_0x180946('0xf')]=function(_0x415be5,_0x2fd0dd,_0x2cc271){const _0x2ecf20=_0x180946,_0x406c18=this;this[_0x2ecf20('0x19')][_0x2ecf20('0x5')](function(){const _0x4eb3a3=_0x2ecf20;return _0x406c18['queryInterface'][_0x4eb3a3('0xf')](_0x415be5,_0x2fd0dd,_0x2cc271)[_0x4eb3a3('0x1b')](function(){const _0x503c34=_0x4eb3a3;logger['info'](_0x503c34('0x1'),_0x2fd0dd,_0x2cc271,_0x415be5);})['catch'](function(_0x23f853){const _0x1d1429=_0x4eb3a3;logger[_0x1d1429('0x12')](util[_0x1d1429('0x25')](_0x23f853,{'showHidden':![],'depth':null}));});});},Migration[_0x180946('0xd')][_0x180946('0x23')]=function(_0x4a226f){const _0x2926c1=_0x180946;this[_0x2926c1('0x19')][_0x2926c1('0x5')](function(){return _0x4a226f();});},module[_0x180946('0x1d')]={'up':function(_0x24537b,_0x5b2fce){return new Promise(function(_0x1955bd){const _0x34ac2e=a1016_0x2564,_0x479363=new Migration(_0x24537b);_0x479363[_0x34ac2e('0x10')](_0x34ac2e('0x3'),_0x34ac2e('0xe'),{'type':_0x5b2fce[_0x34ac2e('0xc')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x479363['changeColumn']('chat_websites',_0x34ac2e('0x16'),{'type':_0x5b2fce[_0x34ac2e('0xc')],'allowNull':![],'defaultValue':_0x34ac2e('0x1f'),'validate':{'notEmpty':!![]}}),_0x479363['final'](_0x1955bd);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.4.js b/server/migrations/2.5.4.js index 0a4fbab..d29c839 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1017_0x5e65=['Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','changeColumn','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','dropTable','prototype','query\x20%s','renameColumn','query','info','sequence','inspect','addColumn','migration','table\x20dropped\x20%s','finally','queryInterface','addIndex','enqueue','removeIndex','stringify','final','catch','then','indexName','tail','removeColumn'];(function(_0x4ec626,_0x5e6566){const _0x3c3cf6=function(_0x6c6c27){while(--_0x6c6c27){_0x4ec626['push'](_0x4ec626['shift']());}};_0x3c3cf6(++_0x5e6566);}(a1017_0x5e65,0xd5));const a1017_0x3c3c=function(_0x4ec626,_0x5e6566){_0x4ec626=_0x4ec626-0x0;let _0x3c3cf6=a1017_0x5e65[_0x4ec626];return _0x3c3cf6;};const _0x215f43=a1017_0x3c3c;'use strict';const util=require('util'),logger=require(_0x215f43('0x3'))(_0x215f43('0xd')),Sequence=function(){};Sequence['prototype'][_0x215f43('0x12')]=function(_0x6c6c27){const _0x80b961=_0x215f43;this[_0x80b961('0x19')]=this[_0x80b961('0x19')]?this[_0x80b961('0x19')][_0x80b961('0xf')](_0x6c6c27):_0x6c6c27();};const Migration=function(_0x484626){const _0x511e05=_0x215f43;this[_0x511e05('0x10')]=_0x484626,this[_0x511e05('0xa')]=new Sequence();};Migration[_0x215f43('0x5')][_0x215f43('0x0')]=function(_0x5608c9,_0x326832,_0x391921){const _0x144dee=_0x215f43,_0x52761d=this;this[_0x144dee('0xa')][_0x144dee('0x12')](function(){const _0x2ce3fe=_0x144dee;return _0x52761d[_0x2ce3fe('0x10')]['changeColumn'](_0x5608c9,_0x326832,_0x391921)[_0x2ce3fe('0x17')](function(){const _0x2082ec=_0x2ce3fe;logger[_0x2082ec('0x9')](_0x2082ec('0x1b'),_0x326832,_0x5608c9);})[_0x2ce3fe('0x16')](function(_0x4e2bc4){const _0x50d8a0=_0x2ce3fe;logger[_0x50d8a0('0x9')](JSON[_0x50d8a0('0x14')](_0x4e2bc4));});});},Migration[_0x215f43('0x5')][_0x215f43('0xc')]=function(_0x41e7d3,_0x3cb7c5,_0x494774){const _0x21ee0b=_0x215f43,_0x40b502=this;this[_0x21ee0b('0xa')][_0x21ee0b('0x12')](function(){const _0x2a3c83=_0x21ee0b;return _0x40b502['queryInterface'][_0x2a3c83('0xc')](_0x41e7d3,_0x3cb7c5,_0x494774)['then'](function(){const _0x5c8c4d=_0x2a3c83;logger[_0x5c8c4d('0x9')](_0x5c8c4d('0x1c'),_0x3cb7c5,_0x41e7d3);})[_0x2a3c83('0x16')](function(_0x51651e){const _0x235c6e=_0x2a3c83;logger['info'](JSON[_0x235c6e('0x14')](_0x51651e));});});},Migration[_0x215f43('0x5')][_0x215f43('0x4')]=function(_0xdf6bfc){const _0x1e203f=_0x215f43,_0x4db5ec=this;this[_0x1e203f('0xa')]['enqueue'](function(){const _0x440888=_0x1e203f;return _0x4db5ec[_0x440888('0x10')][_0x440888('0x4')](_0xdf6bfc,{'force':!![]})[_0x440888('0x17')](function(){const _0x27a75e=_0x440888;logger[_0x27a75e('0x9')](_0x27a75e('0xe'),_0xdf6bfc);})['catch'](function(_0x27a156){const _0x296752=_0x440888;logger[_0x296752('0x9')](JSON[_0x296752('0x14')](_0x27a156));});});},Migration[_0x215f43('0x5')][_0x215f43('0x11')]=function(_0x3487b8,_0x116263,_0x4908b5){const _0x4c2aa6=_0x215f43,_0x190153=this;this[_0x4c2aa6('0xa')][_0x4c2aa6('0x12')](function(){const _0x7ff98c=_0x4c2aa6;return _0x190153[_0x7ff98c('0x10')][_0x7ff98c('0x11')](_0x3487b8,_0x116263,{'indexName':_0x4908b5['indexName'],'indicesType':_0x4908b5['indicesType']})[_0x7ff98c('0x17')](function(){const _0x1e5470=_0x7ff98c;logger[_0x1e5470('0x9')](_0x1e5470('0x2'),_0x3487b8,_0x116263['join'](','),_0x4908b5[_0x1e5470('0x18')],_0x4908b5['indicesType']);})[_0x7ff98c('0x16')](function(_0x18d9d8){const _0x931c95=_0x7ff98c;logger['info'](JSON[_0x931c95('0x14')](_0x18d9d8));});});},Migration['prototype'][_0x215f43('0x13')]=function(_0x49ada7,_0x35f756){const _0x24876b=_0x215f43,_0x413446=this;this[_0x24876b('0xa')][_0x24876b('0x12')](function(){const _0x5295a5=_0x24876b;return _0x413446['queryInterface'][_0x5295a5('0x13')](_0x49ada7,_0x35f756)[_0x5295a5('0x17')](function(){const _0x10409=_0x5295a5;logger[_0x10409('0x9')](_0x10409('0x1d'),_0x49ada7,_0x35f756);})[_0x5295a5('0x16')](function(_0x564dc5){const _0x24e90e=_0x5295a5;logger['info'](JSON[_0x24e90e('0x14')](_0x564dc5));});});},Migration['prototype'][_0x215f43('0x8')]=function(_0x249d26){const _0x306de1=_0x215f43,_0x2a539c=this;this[_0x306de1('0xa')][_0x306de1('0x12')](function(){const _0x3de02d=_0x306de1;return _0x2a539c[_0x3de02d('0x10')]['sequelize']['query'](_0x249d26)[_0x3de02d('0x17')](function(){const _0x570f29=_0x3de02d;logger[_0x570f29('0x9')](_0x570f29('0x6'),_0x249d26);})[_0x3de02d('0x16')](function(_0x3bb153){const _0xefa142=_0x3de02d;logger[_0xefa142('0x9')](JSON[_0xefa142('0x14')](_0x3bb153));});});},Migration[_0x215f43('0x5')]['removeColumn']=function(_0xc1e398,_0x1eb613){const _0x2f60ab=_0x215f43,_0x5d72f5=this;this[_0x2f60ab('0xa')][_0x2f60ab('0x12')](function(){const _0xa3f94e=_0x2f60ab;return _0x5d72f5[_0xa3f94e('0x10')][_0xa3f94e('0x1a')](_0xc1e398,_0x1eb613)[_0xa3f94e('0x17')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1eb613,_0xc1e398);})[_0xa3f94e('0x16')](function(_0xb2c5f9){const _0x55ca63=_0xa3f94e;logger[_0x55ca63('0x9')](util['inspect'](_0xb2c5f9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x215f43('0x7')]=function(_0x5c24c2,_0x525263,_0x3b86b1){const _0x41316a=_0x215f43,_0x1deaf6=this;this[_0x41316a('0xa')][_0x41316a('0x12')](function(){const _0x2edd86=_0x41316a;return _0x1deaf6[_0x2edd86('0x10')]['renameColumn'](_0x5c24c2,_0x525263,_0x3b86b1)['then'](function(){const _0x2c1f33=_0x2edd86;logger[_0x2c1f33('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x525263,_0x3b86b1,_0x5c24c2);})[_0x2edd86('0x16')](function(_0xe13b01){const _0x4bb2f7=_0x2edd86;logger[_0x4bb2f7('0x9')](util[_0x4bb2f7('0xb')](_0xe13b01,{'showHidden':![],'depth':null}));});});},Migration[_0x215f43('0x5')][_0x215f43('0x15')]=function(_0x2b8e20){const _0x1d19fe=_0x215f43;this[_0x1d19fe('0xa')][_0x1d19fe('0x12')](function(){return _0x2b8e20();});},module[_0x215f43('0x1')]={'up':function(_0x23485e){return new Promise(function(_0x25d087){const _0x35a201=new Migration(_0x23485e);_0x35a201['final'](_0x25d087);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.5.js b/server/migrations/2.5.5.js index 544f818..9f1e44e 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1018_0x2868=['report_call','userSecondDisposition','sequelize','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','sms_interactions','queryInterface','inspect','join','info','dropTable','renameColumn','then','first','Changed\x20column\x20%s\x20in\x20table\x20%s','name','settings','stringify','voice_recordings','prototype','sequence','voice','ENUM','openchannel_interactions','enqueue','second','addIndex','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','cm_hopper_final','chat_interactions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','clickToAction','../config/logger','finally','updatedAt','ParentId','final','fax_interactions','exports','table\x20dropped\x20%s','enforcePasswordHistory','userThirdDisposition','users','tools_dispositions','actionType','query\x20%s','third','level','Added\x20column\x20%s\x20to\x20%s','passwordResetAt','UNSIGNED','migration','mail_interactions','secondDisposition','STRING','previousPasswords','cm_custom_fields','query','indicesType','thirdDisposition','indexName','Removed\x20column\x20%s\x20from\x20%s','BOOLEAN','disposition','changeColumn','removeColumn','removeIndex','addColumn','tail','userDisposition','catch','report_queue','util','INTEGER'];(function(_0x39b23f,_0x2868fb){const _0x3bcda1=function(_0x2839ba){while(--_0x2839ba){_0x39b23f['push'](_0x39b23f['shift']());}};_0x3bcda1(++_0x2868fb);}(a1018_0x2868,0x13a));const a1018_0x3bcd=function(_0x39b23f,_0x2868fb){_0x39b23f=_0x39b23f-0x0;let _0x3bcda1=a1018_0x2868[_0x39b23f];return _0x3bcda1;};const _0x3c11d7=a1018_0x3bcd;'use strict';const util=require(_0x3c11d7('0x36')),logger=require(_0x3c11d7('0xe'))(_0x3c11d7('0x21')),Sequence=function(){};Sequence[_0x3c11d7('0x1')]['enqueue']=function(_0x2839ba){const _0x183d57=_0x3c11d7;this[_0x183d57('0x32')]=this[_0x183d57('0x32')]?this[_0x183d57('0x32')][_0x183d57('0xf')](_0x2839ba):_0x2839ba();};const Migration=function(_0x24a9a6){const _0x5ecc95=_0x3c11d7;this[_0x5ecc95('0x3e')]=_0x24a9a6,this[_0x5ecc95('0x2')]=new Sequence();};Migration['prototype'][_0x3c11d7('0x2e')]=function(_0x4b7b95,_0x36cde1,_0x2d8c19){const _0x3ac0ec=_0x3c11d7,_0x4417fb=this;this[_0x3ac0ec('0x2')][_0x3ac0ec('0x6')](function(){const _0x1b125a=_0x3ac0ec;return _0x4417fb[_0x1b125a('0x3e')]['changeColumn'](_0x4b7b95,_0x36cde1,_0x2d8c19)['then'](function(){const _0x2f0d0e=_0x1b125a;logger[_0x2f0d0e('0x41')](_0x2f0d0e('0x46'),_0x36cde1,_0x4b7b95);})[_0x1b125a('0x34')](function(_0x5f26c4){const _0x29eb75=_0x1b125a;logger[_0x29eb75('0x41')](JSON['stringify'](_0x5f26c4));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x31')]=function(_0x76e229,_0x5e736a,_0x1940b0){const _0x1c9909=_0x3c11d7,_0xb962cd=this;this[_0x1c9909('0x2')][_0x1c9909('0x6')](function(){const _0x1408e4=_0x1c9909;return _0xb962cd[_0x1408e4('0x3e')][_0x1408e4('0x31')](_0x76e229,_0x5e736a,_0x1940b0)[_0x1408e4('0x44')](function(){const _0xc69433=_0x1408e4;logger[_0xc69433('0x41')](_0xc69433('0x1e'),_0x5e736a,_0x76e229);})[_0x1408e4('0x34')](function(_0x431a4a){const _0x1236e0=_0x1408e4;logger[_0x1236e0('0x41')](JSON[_0x1236e0('0x49')](_0x431a4a));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x42')]=function(_0x41445c){const _0x45a64c=_0x3c11d7,_0x363020=this;this[_0x45a64c('0x2')][_0x45a64c('0x6')](function(){const _0x7d4b48=_0x45a64c;return _0x363020[_0x7d4b48('0x3e')][_0x7d4b48('0x42')](_0x41445c,{'force':!![]})[_0x7d4b48('0x44')](function(){const _0x46124e=_0x7d4b48;logger[_0x46124e('0x41')](_0x46124e('0x15'),_0x41445c);})['catch'](function(_0x3e2229){const _0x4f3d7a=_0x7d4b48;logger[_0x4f3d7a('0x41')](JSON[_0x4f3d7a('0x49')](_0x3e2229));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x8')]=function(_0x41dda7,_0x3fe15d,_0x4832f3){const _0x2cbdff=_0x3c11d7,_0x4ae68e=this;this[_0x2cbdff('0x2')]['enqueue'](function(){const _0x4d08d0=_0x2cbdff;return _0x4ae68e[_0x4d08d0('0x3e')][_0x4d08d0('0x8')](_0x41dda7,_0x3fe15d,{'indexName':_0x4832f3[_0x4d08d0('0x2a')],'indicesType':_0x4832f3[_0x4d08d0('0x28')]})['then'](function(){const _0x4bc227=_0x4d08d0;logger[_0x4bc227('0x41')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x41dda7,_0x3fe15d[_0x4bc227('0x40')](','),_0x4832f3[_0x4bc227('0x2a')],_0x4832f3[_0x4bc227('0x28')]);})[_0x4d08d0('0x34')](function(_0x19305b){logger['info'](JSON['stringify'](_0x19305b));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x30')]=function(_0x446ff8,_0x1a70dd){const _0x56a45a=_0x3c11d7,_0x42fe5b=this;this[_0x56a45a('0x2')][_0x56a45a('0x6')](function(){const _0x19ca73=_0x56a45a;return _0x42fe5b['queryInterface']['removeIndex'](_0x446ff8,_0x1a70dd)['then'](function(){const _0x1cf974=a1018_0x3bcd;logger[_0x1cf974('0x41')]('removeIndex\x20%s\x20%s',_0x446ff8,_0x1a70dd);})[_0x19ca73('0x34')](function(_0x5047dc){const _0x6133c6=_0x19ca73;logger[_0x6133c6('0x41')](JSON[_0x6133c6('0x49')](_0x5047dc));});});},Migration['prototype'][_0x3c11d7('0x27')]=function(_0x5ae291){const _0x2f235b=this;this['sequence']['enqueue'](function(){const _0x59a1eb=a1018_0x3bcd;return _0x2f235b[_0x59a1eb('0x3e')][_0x59a1eb('0x3a')]['query'](_0x5ae291)[_0x59a1eb('0x44')](function(){const _0x5540ff=_0x59a1eb;logger[_0x5540ff('0x41')](_0x5540ff('0x1b'),_0x5ae291);})['catch'](function(_0x22cab9){const _0x13805e=_0x59a1eb;logger[_0x13805e('0x41')](JSON[_0x13805e('0x49')](_0x22cab9));});});},Migration['prototype'][_0x3c11d7('0x2f')]=function(_0x999bee,_0x23958d){const _0x2617c2=_0x3c11d7,_0x497e33=this;this[_0x2617c2('0x2')][_0x2617c2('0x6')](function(){const _0x2f89e5=_0x2617c2;return _0x497e33[_0x2f89e5('0x3e')][_0x2f89e5('0x2f')](_0x999bee,_0x23958d)[_0x2f89e5('0x44')](function(){const _0x15dcd5=_0x2f89e5;logger[_0x15dcd5('0x41')](_0x15dcd5('0x2b'),_0x23958d,_0x999bee);})['catch'](function(_0x2e38f4){const _0x58ed0e=_0x2f89e5;logger[_0x58ed0e('0x41')](util[_0x58ed0e('0x3f')](_0x2e38f4,{'showHidden':![],'depth':null}));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x43')]=function(_0x5ed7b5,_0x56fb6f,_0x3fdf92){const _0x18867c=_0x3c11d7,_0xfb897b=this;this[_0x18867c('0x2')][_0x18867c('0x6')](function(){const _0xaa53b0=_0x18867c;return _0xfb897b[_0xaa53b0('0x3e')][_0xaa53b0('0x43')](_0x5ed7b5,_0x56fb6f,_0x3fdf92)[_0xaa53b0('0x44')](function(){const _0x536f0a=_0xaa53b0;logger[_0x536f0a('0x41')](_0x536f0a('0xc'),_0x56fb6f,_0x3fdf92,_0x5ed7b5);})['catch'](function(_0x24c911){const _0x30e875=_0xaa53b0;logger[_0x30e875('0x41')](util['inspect'](_0x24c911,{'showHidden':![],'depth':null}));});});},Migration[_0x3c11d7('0x1')][_0x3c11d7('0x12')]=function(_0x22f14d){const _0x3706b1=_0x3c11d7;this[_0x3706b1('0x2')]['enqueue'](function(){return _0x22f14d();});},module[_0x3c11d7('0x14')]={'up':function(_0x4f3240,_0x313b1b){return new Promise(function(_0x2e70f7){const _0x8a0758=a1018_0x3bcd,_0x586ae9=new Migration(_0x4f3240);_0x586ae9[_0x8a0758('0x27')](_0x8a0758('0x9')),_0x586ae9['query']('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'),_0x586ae9[_0x8a0758('0x27')](_0x8a0758('0x3c')),_0x586ae9[_0x8a0758('0x31')]('settings',_0x8a0758('0x16'),{'type':_0x313b1b[_0x8a0758('0x2c')],'defaultValue':!![]}),_0x586ae9['addColumn'](_0x8a0758('0x48'),'passwordHistoryLimit',{'type':_0x313b1b[_0x8a0758('0x37')](0x2)[_0x8a0758('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x586ae9['addColumn']('users',_0x8a0758('0x25'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x1f')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x18'),'settingsEnabled',{'type':_0x313b1b['BOOLEAN'],'defaultValue':!![]}),_0x586ae9[_0x8a0758('0x31')]('cm_custom_fields',_0x8a0758('0xd'),{'type':_0x313b1b[_0x8a0758('0x2c')],'defaultValue':![]}),_0x586ae9['addColumn'](_0x8a0758('0x26'),_0x8a0758('0x1a'),{'type':_0x313b1b[_0x8a0758('0x4')](_0x8a0758('0x3')),'allowNull':![],'defaultValue':_0x8a0758('0x3')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x19'),_0x8a0758('0x1d'),{'type':_0x313b1b[_0x8a0758('0x4')](_0x8a0758('0x45'),_0x8a0758('0x7'),_0x8a0758('0x1c')),'allowNull':![],'defaultValue':_0x8a0758('0x45'),'after':_0x8a0758('0x47')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x19'),'description',{'type':_0x313b1b['STRING'],'after':_0x8a0758('0x1d')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x19'),_0x8a0758('0x11'),{'type':_0x313b1b['INTEGER'],'after':_0x8a0758('0x10')}),_0x586ae9['query'](_0x8a0758('0x3b')),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x38'),_0x8a0758('0x39'),{'type':_0x313b1b['STRING'],'after':_0x8a0758('0x33')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x38'),_0x8a0758('0x17'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x39')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x35'),'secondDisposition',{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x35'),_0x8a0758('0x29'),{'type':_0x313b1b['STRING'],'after':_0x8a0758('0x23')}),_0x586ae9['addColumn'](_0x8a0758('0x0'),_0x8a0758('0x39'),{'type':_0x313b1b['STRING'],'after':_0x8a0758('0x33')}),_0x586ae9[_0x8a0758('0x31')]('voice_recordings',_0x8a0758('0x17'),{'type':_0x313b1b['STRING'],'after':'userSecondDisposition'}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0xb'),_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0xb'),'thirdDisposition',{'type':_0x313b1b[_0x8a0758('0x24')],'after':'secondDisposition'}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x13'),'secondDisposition',{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x13'),_0x8a0758('0x29'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':'secondDisposition'}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x22'),_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0x22'),_0x8a0758('0x29'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':'secondDisposition'}),_0x586ae9['addColumn'](_0x8a0758('0x5'),_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9[_0x8a0758('0x31')]('openchannel_interactions',_0x8a0758('0x29'),{'type':_0x313b1b['STRING'],'after':_0x8a0758('0x23')}),_0x586ae9['addColumn'](_0x8a0758('0x3d'),_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9['addColumn'](_0x8a0758('0x3d'),_0x8a0758('0x29'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':'secondDisposition'}),_0x586ae9['addColumn']('whatsapp_interactions',_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':'disposition'}),_0x586ae9['addColumn']('whatsapp_interactions',_0x8a0758('0x29'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':'secondDisposition'}),_0x586ae9[_0x8a0758('0x31')](_0x8a0758('0xa'),_0x8a0758('0x23'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x2d')}),_0x586ae9['addColumn'](_0x8a0758('0xa'),_0x8a0758('0x29'),{'type':_0x313b1b[_0x8a0758('0x24')],'after':_0x8a0758('0x23')}),_0x586ae9[_0x8a0758('0x12')](_0x2e70f7);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/2.5.6.js b/server/migrations/2.5.6.js index 758c040..f48ef24 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1019_0x1deb=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','FULLTEXT','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','../config/logger','stringify','queryInterface','table\x20dropped\x20%s','fax','fti_cm_contacts','final','sequelize','indicesType','enqueue','removeIndex\x20%s\x20%s','addColumn','query\x20%s','email','mobile','lastName','tail','query','exports','migration','removeIndex','info','catch','removeColumn','prototype','then','cm_contacts','renameColumn','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','phone','changeColumn','finally','firstName','addIndex','join'];(function(_0x3ac24c,_0x1debd8){const _0x3a66ee=function(_0x2339d8){while(--_0x2339d8){_0x3ac24c['push'](_0x3ac24c['shift']());}};_0x3a66ee(++_0x1debd8);}(a1019_0x1deb,0x11f));const a1019_0x3a66=function(_0x3ac24c,_0x1debd8){_0x3ac24c=_0x3ac24c-0x0;let _0x3a66ee=a1019_0x1deb[_0x3ac24c];return _0x3a66ee;};const _0x5f143b=a1019_0x3a66;'use strict';const util=require('util'),logger=require(_0x5f143b('0xc'))(_0x5f143b('0x1f')),Sequence=function(){};Sequence[_0x5f143b('0x24')][_0x5f143b('0x15')]=function(_0x2339d8){const _0x18cda2=_0x5f143b;this[_0x18cda2('0x1c')]=this[_0x18cda2('0x1c')]?this[_0x18cda2('0x1c')][_0x18cda2('0x3')](_0x2339d8):_0x2339d8();};const Migration=function(_0x46c389){const _0x101f48=_0x5f143b;this[_0x101f48('0xe')]=_0x46c389,this[_0x101f48('0x0')]=new Sequence();};Migration[_0x5f143b('0x24')][_0x5f143b('0x2')]=function(_0x4dd0e8,_0x290973,_0x7a862d){const _0x2571ef=_0x5f143b,_0x4f43cd=this;this[_0x2571ef('0x0')][_0x2571ef('0x15')](function(){const _0x2d3a97=_0x2571ef;return _0x4f43cd[_0x2d3a97('0xe')][_0x2d3a97('0x2')](_0x4dd0e8,_0x290973,_0x7a862d)[_0x2d3a97('0x25')](function(){const _0x4dea92=_0x2d3a97;logger[_0x4dea92('0x21')](_0x4dea92('0x29'),_0x290973,_0x4dd0e8);})[_0x2d3a97('0x22')](function(_0x235005){const _0x32db78=_0x2d3a97;logger['info'](JSON[_0x32db78('0xd')](_0x235005));});});},Migration[_0x5f143b('0x24')][_0x5f143b('0x17')]=function(_0x160a01,_0xc318bb,_0x183881){const _0x4ea897=_0x5f143b,_0x1150fc=this;this[_0x4ea897('0x0')][_0x4ea897('0x15')](function(){const _0x4421ac=_0x4ea897;return _0x1150fc['queryInterface']['addColumn'](_0x160a01,_0xc318bb,_0x183881)[_0x4421ac('0x25')](function(){const _0x587e9f=_0x4421ac;logger[_0x587e9f('0x21')]('Added\x20column\x20%s\x20to\x20%s',_0xc318bb,_0x160a01);})[_0x4421ac('0x22')](function(_0x233e02){const _0x55d408=_0x4421ac;logger[_0x55d408('0x21')](JSON['stringify'](_0x233e02));});});},Migration[_0x5f143b('0x24')][_0x5f143b('0x28')]=function(_0x3016a9){const _0x2c0c64=_0x5f143b,_0x5a1e45=this;this[_0x2c0c64('0x0')][_0x2c0c64('0x15')](function(){const _0xfda936=_0x2c0c64;return _0x5a1e45[_0xfda936('0xe')][_0xfda936('0x28')](_0x3016a9,{'force':!![]})[_0xfda936('0x25')](function(){const _0x403a68=_0xfda936;logger[_0x403a68('0x21')](_0x403a68('0xf'),_0x3016a9);})[_0xfda936('0x22')](function(_0x1496c7){const _0x530ad5=_0xfda936;logger[_0x530ad5('0x21')](JSON[_0x530ad5('0xd')](_0x1496c7));});});},Migration[_0x5f143b('0x24')]['addIndex']=function(_0xa58863,_0x55465f,_0x27e6de){const _0x5d250=_0x5f143b,_0x3aa01f=this;this[_0x5d250('0x0')][_0x5d250('0x15')](function(){const _0x117509=_0x5d250;return _0x3aa01f[_0x117509('0xe')]['addIndex'](_0xa58863,_0x55465f,{'indexName':_0x27e6de[_0x117509('0xb')],'indicesType':_0x27e6de[_0x117509('0x14')]})[_0x117509('0x25')](function(){const _0x1de355=_0x117509;logger[_0x1de355('0x21')](_0x1de355('0xa'),_0xa58863,_0x55465f[_0x1de355('0x6')](','),_0x27e6de[_0x1de355('0xb')],_0x27e6de[_0x1de355('0x14')]);})['catch'](function(_0x11506a){logger['info'](JSON['stringify'](_0x11506a));});});},Migration[_0x5f143b('0x24')]['removeIndex']=function(_0x435049,_0x75bb8b){const _0x3e09aa=_0x5f143b,_0x33f638=this;this[_0x3e09aa('0x0')][_0x3e09aa('0x15')](function(){const _0x3d0c54=_0x3e09aa;return _0x33f638['queryInterface'][_0x3d0c54('0x20')](_0x435049,_0x75bb8b)[_0x3d0c54('0x25')](function(){const _0x1af10b=_0x3d0c54;logger[_0x1af10b('0x21')](_0x1af10b('0x16'),_0x435049,_0x75bb8b);})[_0x3d0c54('0x22')](function(_0x546c66){const _0x53462f=_0x3d0c54;logger[_0x53462f('0x21')](JSON[_0x53462f('0xd')](_0x546c66));});});},Migration[_0x5f143b('0x24')]['query']=function(_0x32e84a){const _0x35c5a9=_0x5f143b,_0x40eb01=this;this[_0x35c5a9('0x0')][_0x35c5a9('0x15')](function(){const _0x98460=_0x35c5a9;return _0x40eb01[_0x98460('0xe')][_0x98460('0x13')][_0x98460('0x1d')](_0x32e84a)[_0x98460('0x25')](function(){const _0x1a2cb8=_0x98460;logger['info'](_0x1a2cb8('0x18'),_0x32e84a);})[_0x98460('0x22')](function(_0x9ca7ef){const _0x515c93=_0x98460;logger[_0x515c93('0x21')](JSON[_0x515c93('0xd')](_0x9ca7ef));});});},Migration[_0x5f143b('0x24')][_0x5f143b('0x23')]=function(_0x442373,_0x314ac5){const _0x55b6fc=_0x5f143b,_0x25c189=this;this[_0x55b6fc('0x0')]['enqueue'](function(){const _0x168bee=_0x55b6fc;return _0x25c189[_0x168bee('0xe')]['removeColumn'](_0x442373,_0x314ac5)[_0x168bee('0x25')](function(){const _0x588c40=_0x168bee;logger[_0x588c40('0x21')]('Removed\x20column\x20%s\x20from\x20%s',_0x314ac5,_0x442373);})[_0x168bee('0x22')](function(_0x57f43d){const _0x3226d7=_0x168bee;logger[_0x3226d7('0x21')](util[_0x3226d7('0x8')](_0x57f43d,{'showHidden':![],'depth':null}));});});},Migration[_0x5f143b('0x24')][_0x5f143b('0x27')]=function(_0x49d1c,_0x5920a2,_0x5a52a1){const _0x446e1b=_0x5f143b,_0x5e37bd=this;this['sequence'][_0x446e1b('0x15')](function(){const _0x37f409=_0x446e1b;return _0x5e37bd[_0x37f409('0xe')]['renameColumn'](_0x49d1c,_0x5920a2,_0x5a52a1)[_0x37f409('0x25')](function(){const _0x3324a4=_0x37f409;logger[_0x3324a4('0x21')](_0x3324a4('0x7'),_0x5920a2,_0x5a52a1,_0x49d1c);})['catch'](function(_0x4c15cd){const _0x5826b9=_0x37f409;logger[_0x5826b9('0x21')](util[_0x5826b9('0x8')](_0x4c15cd,{'showHidden':![],'depth':null}));});});},Migration[_0x5f143b('0x24')][_0x5f143b('0x12')]=function(_0x32c4f7){const _0x484ba7=_0x5f143b;this[_0x484ba7('0x0')]['enqueue'](function(){return _0x32c4f7();});},module[_0x5f143b('0x1e')]={'up':function(_0x4a2e08){return new Promise(function(_0x5ef77b){const _0x18721e=a1019_0x3a66,_0x63aee2=new Migration(_0x4a2e08);_0x63aee2[_0x18721e('0x5')](_0x18721e('0x26'),[_0x18721e('0x4'),_0x18721e('0x1b'),_0x18721e('0x1'),_0x18721e('0x1a'),_0x18721e('0x10'),_0x18721e('0x19')],{'indexName':_0x18721e('0x11'),'indicesType':_0x18721e('0x9')}),_0x63aee2[_0x18721e('0x12')](_0x5ef77b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/migrations/3.0.0-alpha.js b/server/migrations/3.0.0-alpha.js index 0854f68..ec7c5a1 100644 --- a/server/migrations/3.0.0-alpha.js +++ b/server/migrations/3.0.0-alpha.js @@ -1 +1 @@ -const a1020_0x4d37=['catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','tail','exports','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','removeIndex\x20%s\x20%s','queryInterface','indexName','finally','sequelize','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','removeIndex','renameColumn','inspect','info','addIndex','stringify','removeColumn','addColumn','enqueue','prototype','final','changeColumn','../config/logger','query','dropTable','util','sequence','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x91b8ae,_0x4d370c){const _0xc412b3=function(_0xea2ee8){while(--_0xea2ee8){_0x91b8ae['push'](_0x91b8ae['shift']());}};_0xc412b3(++_0x4d370c);}(a1020_0x4d37,0xde));const a1020_0xc412=function(_0x91b8ae,_0x4d370c){_0x91b8ae=_0x91b8ae-0x0;let _0xc412b3=a1020_0x4d37[_0x91b8ae];return _0xc412b3;};const _0x1b641a=a1020_0xc412;'use strict';const util=require(_0x1b641a('0x5')),logger=require(_0x1b641a('0x2'))(_0x1b641a('0xc')),Sequence=function(){};Sequence[_0x1b641a('0x20')]['enqueue']=function(_0xea2ee8){const _0x5764a8=_0x1b641a;this[_0x5764a8('0xe')]=this[_0x5764a8('0xe')]?this[_0x5764a8('0xe')][_0x5764a8('0x14')](_0xea2ee8):_0xea2ee8();};const Migration=function(_0x3753aa){const _0x589050=_0x1b641a;this[_0x589050('0x12')]=_0x3753aa,this[_0x589050('0x6')]=new Sequence();};Migration['prototype'][_0x1b641a('0x1')]=function(_0x1748de,_0x18a6f4,_0x17e071){const _0x139054=_0x1b641a,_0x5bbf8f=this;this[_0x139054('0x6')]['enqueue'](function(){const _0x28d361=_0x139054;return _0x5bbf8f[_0x28d361('0x12')][_0x28d361('0x1')](_0x1748de,_0x18a6f4,_0x17e071)['then'](function(){const _0x113751=_0x28d361;logger[_0x113751('0x1a')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x18a6f4,_0x1748de);})[_0x28d361('0x9')](function(_0xafa713){const _0x3f8b0e=_0x28d361;logger['info'](JSON[_0x3f8b0e('0x1c')](_0xafa713));});});},Migration[_0x1b641a('0x20')]['addColumn']=function(_0x4274de,_0x5e0084,_0x4b097e){const _0x35b9b1=_0x1b641a,_0x1b3b39=this;this[_0x35b9b1('0x6')]['enqueue'](function(){const _0x5cd118=_0x35b9b1;return _0x1b3b39[_0x5cd118('0x12')][_0x5cd118('0x1e')](_0x4274de,_0x5e0084,_0x4b097e)[_0x5cd118('0xb')](function(){const _0xb6ed0e=_0x5cd118;logger[_0xb6ed0e('0x1a')](_0xb6ed0e('0x7'),_0x5e0084,_0x4274de);})[_0x5cd118('0x9')](function(_0x15891e){const _0xbcea9c=_0x5cd118;logger[_0xbcea9c('0x1a')](JSON[_0xbcea9c('0x1c')](_0x15891e));});});},Migration[_0x1b641a('0x20')][_0x1b641a('0x4')]=function(_0x624088){const _0x383c80=_0x1b641a,_0x3cbf3f=this;this[_0x383c80('0x6')]['enqueue'](function(){const _0x3f5839=_0x383c80;return _0x3cbf3f[_0x3f5839('0x12')][_0x3f5839('0x4')](_0x624088,{'force':!![]})[_0x3f5839('0xb')](function(){logger['info']('table\x20dropped\x20%s',_0x624088);})[_0x3f5839('0x9')](function(_0x431a8a){const _0x154ab0=_0x3f5839;logger[_0x154ab0('0x1a')](JSON[_0x154ab0('0x1c')](_0x431a8a));});});},Migration['prototype'][_0x1b641a('0x1b')]=function(_0x1664a0,_0xa0e6c,_0x116534){const _0x204bd1=_0x1b641a,_0x39318f=this;this['sequence'][_0x204bd1('0x1f')](function(){const _0x2df1b2=_0x204bd1;return _0x39318f[_0x2df1b2('0x12')][_0x2df1b2('0x1b')](_0x1664a0,_0xa0e6c,{'indexName':_0x116534[_0x2df1b2('0x13')],'indicesType':_0x116534['indicesType']})[_0x2df1b2('0xb')](function(){const _0x291a82=_0x2df1b2;logger[_0x291a82('0x1a')](_0x291a82('0xd'),_0x1664a0,_0xa0e6c['join'](','),_0x116534['indexName'],_0x116534['indicesType']);})['catch'](function(_0x3c9de7){const _0x3c5a0d=_0x2df1b2;logger[_0x3c5a0d('0x1a')](JSON[_0x3c5a0d('0x1c')](_0x3c9de7));});});},Migration[_0x1b641a('0x20')]['removeIndex']=function(_0x37396e,_0x25deed){const _0x200676=_0x1b641a,_0x287e78=this;this[_0x200676('0x6')]['enqueue'](function(){const _0x4a8a12=_0x200676;return _0x287e78['queryInterface'][_0x4a8a12('0x17')](_0x37396e,_0x25deed)[_0x4a8a12('0xb')](function(){const _0x55ad57=_0x4a8a12;logger['info'](_0x55ad57('0x11'),_0x37396e,_0x25deed);})[_0x4a8a12('0x9')](function(_0x47395c){const _0x4f59c4=_0x4a8a12;logger[_0x4f59c4('0x1a')](JSON[_0x4f59c4('0x1c')](_0x47395c));});});},Migration[_0x1b641a('0x20')][_0x1b641a('0x3')]=function(_0x45c522){const _0x338228=_0x1b641a,_0x5f5504=this;this[_0x338228('0x6')][_0x338228('0x1f')](function(){const _0x1865cf=_0x338228;return _0x5f5504['queryInterface'][_0x1865cf('0x15')]['query'](_0x45c522)[_0x1865cf('0xb')](function(){const _0x145b4b=_0x1865cf;logger[_0x145b4b('0x1a')]('query\x20%s',_0x45c522);})[_0x1865cf('0x9')](function(_0x138810){const _0x292461=_0x1865cf;logger[_0x292461('0x1a')](JSON[_0x292461('0x1c')](_0x138810));});});},Migration[_0x1b641a('0x20')][_0x1b641a('0x1d')]=function(_0x5ea1ae,_0x4f1f96){const _0x2c1951=this;this['sequence']['enqueue'](function(){const _0x21f01c=a1020_0xc412;return _0x2c1951[_0x21f01c('0x12')][_0x21f01c('0x1d')](_0x5ea1ae,_0x4f1f96)[_0x21f01c('0xb')](function(){const _0x44b900=_0x21f01c;logger[_0x44b900('0x1a')](_0x44b900('0x8'),_0x4f1f96,_0x5ea1ae);})[_0x21f01c('0x9')](function(_0x14fd60){logger['info'](util['inspect'](_0x14fd60,{'showHidden':![],'depth':null}));});});},Migration[_0x1b641a('0x20')][_0x1b641a('0x18')]=function(_0x16bd8d,_0x3b6b03,_0x32d246){const _0x5eb15f=_0x1b641a,_0x1028e1=this;this[_0x5eb15f('0x6')]['enqueue'](function(){const _0x44fd26=_0x5eb15f;return _0x1028e1[_0x44fd26('0x12')]['renameColumn'](_0x16bd8d,_0x3b6b03,_0x32d246)['then'](function(){const _0x3f8e16=_0x44fd26;logger[_0x3f8e16('0x1a')](_0x3f8e16('0xa'),_0x3b6b03,_0x32d246,_0x16bd8d);})['catch'](function(_0x2dfbdc){const _0x470ce0=_0x44fd26;logger[_0x470ce0('0x1a')](util[_0x470ce0('0x19')](_0x2dfbdc,{'showHidden':![],'depth':null}));});});},Migration[_0x1b641a('0x20')][_0x1b641a('0x0')]=function(_0x35cb86){const _0x1768e7=_0x1b641a;this[_0x1768e7('0x6')]['enqueue'](function(){return _0x35cb86();});},module[_0x1b641a('0xf')]={'up':function(_0x53476e){return new Promise(function(_0x55515b){const _0x4193dc=a1020_0xc412,_0x396744=new Migration(_0x53476e);_0x396744[_0x4193dc('0x3')]('ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`'),_0x396744['query'](_0x4193dc('0x10')),_0x396744[_0x4193dc('0x3')](_0x4193dc('0x16')),_0x396744[_0x4193dc('0x0')](_0x55515b);});},'down':function(){}}; \ No newline at end of file +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 diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index 04f082c..7818dc0 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1021_0x4726=['FromWhatsappAccountId','SmsInteractionId','HopperBlacks','../api/intDeskConfiguration/intDeskConfiguration.model','../api/faxAccount/faxAccount.model','Condition','../api/interval/interval.model','../api/trigger/trigger.model','OpenchannelQueueId','SquareOdbc','CustomReportId','FaxApplications','WhatsappInteractionId','Actions','VtigerField','../api/whatsappQueue/whatsappQueue.model','database','SmsTransferReport','lodash','../api/squareReportDetail/squareReportDetail.model','../api/intZendeskAccount/intZendeskAccount.model','../api/intFreshdeskAccount/intFreshdeskAccount.model','../api/whatsappInteraction/whatsappInteraction.model','../api/userVoiceQueueRt/userVoiceQueueRt.model','user_has_openchannel_interactions','../api/userProfileSection/userProfileSection.model','../api/faxInteraction/faxInteraction.model','UserFaxInteractions','CloudProvider','CustomFields','ProjectId','Tags','getConfigService','HopperFinals','AnalyticTreeReport','Setting','Disposition','ToFaxAccountId','campaigns_has_cm_lists','SmsAccountId','ToChatWebsiteId','../api/dashboardItem/dashboardItem.model','MemberReport','FaxInteractions','../api/chatMessage/chatMessage.model','../api/mailQueueReport/mailQueueReport.model','../api/voiceQueuesLog/voiceQueuesLog.model','OpenchannelQueueReport','MailAccountId','../api/intFreshsalesField/intFreshsalesField.model','ChatInternalMessage','SubjectId','OpenchannelQueues','../api/openchannelMessage/openchannelMessage.model','../api/jscriptyProject/jscriptyProject.model','../api/analyticFieldReport/analyticFieldReport.model','CmCustomField','UserVoiceQueueRt','../api/intVtigerConfiguration/intVtigerConfiguration.model','AutomationAnyId','SquareProject','../api/userMailQueue/userMailQueue.model','sequelizeHistory','cm_user_has_lists','WhatsappTransferReport','SquareRecording','../api/cmContact/cmContact.model','../api/voiceChanSpy/voiceChanSpy.model','AllCondition','ChatInteractions','UserProfileResource','../api/intSugarcrmAccount/intSugarcrmAccount.model','DeskField','../api/trunk/trunk.model','../api/faxMessage/faxMessage.model','user_has_fax_accounts','Configurations','VoiceQueuesRt','ChatQueue','UserProfileSections','CannedAnswer','Groups','ChatApplication','FaxQueueReport','../api/voiceTransferReport/voiceTransferReport.model','MailTransferReport','Description','UserSmsQueue','belongsToMany','MailQueues','../api/mailAccount/mailAccount.model','VariableId','dbPort','user_has_whatsapp_interactions','int_freshdesk_configuration_has_tags','../api/automation/automation.model','ToFaxQueueId','VoiceQueueReport','../api/analyticExtractedReport/analyticExtractedReport.model','VoicePrefixes','../api/action/action.model','mailboxuser','ToSmsQueueId','../api/intSalesforceAccount/intSalesforceAccount.model','password','../api/screenRecording/screenRecording.model','ContactId','../api/smsInteraction/smsInteraction.model','AnalyticFieldReport','SalesforceField','CompanyId','chat_group_has_users','../api/voiceRecording/voiceRecording.model','../api/mailServerOut/mailServerOut.model','Account','WhatsappInteraction','Exntensions','../api/openchannelApplication/openchannelApplication.model','username','jstz','ZendeskField','FromUserId','mysqlDatabase','FreshdeskConfiguration','SmsApplications','FromAccount','Agents','WhatsappQueueId','../api/squareProject/squareProject.model','../api/voiceMusicOnHold/voiceMusicOnHold.model','MailMessage','user_has_voice_prefixes','team_has_fax_queues','team_has_voice_queues','user_has_mail_accounts','../api/squareMessage/squareMessage.model','mandatoryDispositionPauseId','FromChatWebsiteId','VoiceQueue','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','Applications','Trigger','../api/cmHopper/cmHopper.model','OpenchannelInteraction','OneAll','CmHopperBlack','../api/intDynamics365Configuration/intDynamics365Configuration.model','../api/userProfile/userProfile.model','../api/mailApplication/mailApplication.model','JscriptyQuestionReport','Interactions','UserVoiceQueue','DeskConfiguration','MetricId','userProfileId','CampaignId','TriggerId','JscriptyAnswerReport','SmsInteraction','ChatQueueReport','List','MailServerOut','../api/team/team.model','UserProfile','SquareDetailsReport','SmsQueues','user_has_openchannel_accounts','SmsQueueReport','Fields','../api/userFaxQueue/userFaxQueue.model','MailSubstatus','UserOpenchannelInteractions','../api/sound/sound.model','AutomationId','Teams','DataTypes','ChatInteraction','team_has_whatsapp_queues','Answers','SpiedAgents','ToMailAccountId','WhatsappQueues','user_has_mail_interactions','../api/intDynamics365Account/intDynamics365Account.model','Migration','Dynamics365Field','License','CmList','Contact','VoiceAgentReport','fax_interaction_has_tags','FromId','UserId','VoiceChanSpy','AccountId','voice_queues_has_cm_lists','FaxApplication','UserWhatsappQueue','user_has_sms_accounts','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','../api/mailMessage/mailMessage.model','restrict','Items','Descriptions','VtigerAccount','Interval','OpenchannelTransferReport','Cdr','IntervalId','../api/dashboard/dashboard.model','../api/smsQueue/smsQueue.model','ChatWebsites','FaxMessage','SquareProjects','WhatsappApplication','ChatWebsite','../api/intServicenowAccount/intServicenowAccount.model','Contacts','ChanSpyId','FaxAccounts','Pause','SmsAccount','WhatsappQueueReport','campaigns_has_cm_blacklists','SenderId','../api/intDeskAccount/intDeskAccount.model','VoiceMusicOnHold','../api/user/user.model','BlackLists','OpenchannelQueue','Field','Hoppers','Schedule','Automation','VoiceTransferReport','ChatQueues','FaxTransferReport','Mohs','../api/openchannelQueueReport/openchannelQueueReport.model','uniqueid','VoiceDialReport','FromSmsAccountId','../api/reportAgentPreview/reportAgentPreview.model','../api/intSalesforceField/intSalesforceField.model','VoiceExtension','user_has_fax_interactions','HopperHistories','User','UserMailQueue','MailQueueReport','MailServerIn','../api/squareRecording/squareRecording.model','OpenchannelAccounts','SmsQueue','mysqlPassword','VoiceRecording','../api/mailTransferReport/mailTransferReport.model','../config/environment','Extensions','Dynamics365Account','cm_user_has_contacts','ChatOfflineMessage','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','../api/intFreshsalesAccount/intFreshsalesAccount.model','Notifications','DefaultReportId','../api/cmHopperBlack/cmHopperBlack.model','UserMailInteractions','FaxAccountId','Dynamics365Configuration','MailInteractionId','ToOpenchannelAccountId','ZohoField','CmHopperHistory','../api/userSmsQueue/userSmsQueue.model','Resources','FreshsalesConfiguration','Dashboard','ToQueue','ToAgent','ChatMessage','JscriptySessionReport','Messages','ToId','team_has_openchannel_queues','Variable','int_desk_configuration_has_tags','../api/faxQueue/faxQueue.model','../api/chatProactiveAction/chatProactiveAction.model','VoiceCallReport','AnalyticExtractedReport','ToAccount','WhatsappInteractions','TriggerAnyId','WhatsappAccount','../api/intZohoConfiguration/intZohoConfiguration.model','Users','Network','DeskAccount','../api/analyticDefaultReport/analyticDefaultReport.model','FaxInteractionId','Integration','mail_interaction_has_tags','../api/intFreshdeskField/intFreshdeskField.model','hasOne','DescriptionId','../api/analyticMetric/analyticMetric.model','TrunkBackup','../api/cmHopperHistory/cmHopperHistory.model','../api/chatQueueReport/chatQueueReport.model','../api/userChatQueue/userChatQueue.model','Team','ChatApplications','defaultsDeep','../api/integration/integration.model','FromAgent','Owner','TrunkBackupId','../api/chatApplication/chatApplication.model','OpenchannelAccountId','../api/notification/notification.model','user_has_sms_interactions','exports','SmsMessage','../api/openchannelTransferReport/openchannelTransferReport.model','OpenchannelApplication','../api/migration/migration.model','FreshdeskAccount','../api/mailServerIn/mailServerIn.model','../api/cannedAnswer/cannedAnswer.model','hasMany','JscriptySessions','ChatGroupId','MailAccounts','AnalyticCustomReport','VoicePrefix','TagId','VoiceQueueId','FreshsalesAccount','VtigerConfiguration','../api/voiceMailMessage/voiceMailMessage.model','Agent','../api/intServicenowField/intServicenowField.model','openchannel_interaction_has_tags','isProduction','CmHopper','Tag','AgentReports','FreshsalesField','VoiceMail','../api/analyticTreeReport/analyticTreeReport.model','../api/intVtigerAccount/intVtigerAccount.model','../api/cmCompany/cmCompany.model','Website','Trunk','FreshdeskField','VoiceMailMessage','OpenchannelInteractionId','Plugin','sms_interaction_has_tags','utf8_general_ci','FromFaxAccountId','Imap','ChatProactiveAction','ToChatQueueId','../api/userOpenchannelQueue/userOpenchannelQueue.model','ToUserId','FaxQueue','SquareProjectId','ThroughTags','Recordings','../api/intDeskField/intDeskField.model','FaxQueues','FaxInteraction','../api/cmHopperFinal/cmHopperFinal.model','../api/whatsappTransferReport/whatsappTransferReport.model','OpenchannelMessage','Interaction','WhatsappMessage','UserSmsInteractions','../api/chatQueue/chatQueue.model','chat_interaction_has_tags','mysqlUser','UserFaxQueue','../api/faxQueueReport/faxQueueReport.model','../api/smsAccount/smsAccount.model','ZohoAccount','SugarcrmAccount','../api/chatInternalMessage/chatInternalMessage.model','FaxAccount','FromMailAccountId','Subjects','user_has_square_projects','Notification','cm_contact_has_tags','UserProfileSection','SmsQueueId','../api/voiceQueue/voiceQueue.model','CmHopperFinal','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','db-query','ChatInteractionId','CmCompany','../api/intZendeskConfiguration/intZendeskConfiguration.model','ServicenowField','ToWhatsappAccountId','AnalyticMetric','AnyConditions','../api/cmCustomField/cmCustomField.model','ServicenowConfiguration','ReportAgentPreview','mailbox','SmsInteractions','../api/whatsappQueueReport/whatsappQueueReport.model','../api/intVtigerField/intVtigerField.model','../api/squareOdbc/squareOdbc.model','utf8mb4','../api/chatWebsite/chatWebsite.model','../api/smsApplication/smsApplication.model','ListId','ChatTransferReport','Attachment','sequelize','Template','VoiceContext','../api/openchannelInteraction/openchannelInteraction.model','Sounds','whatsapp_interaction_has_tags','ToOpenchannelQueueId','MailInteractions','UserWhatsappInteractions','UserChatQueue','../api/voiceMail/voiceMail.model','MailInteraction','../api/intServicenowConfiguration/intServicenowConfiguration.model','SmsApplication','../api/openchannelAccount/openchannelAccount.model','sectionId','../api/cdr/cdr.model','../api/setting/setting.model','ServicenowAccount','SalesforceConfiguration','OpenchannelAccount','MailQueue','../api/smsTransferReport/smsTransferReport.model','SugarcrmField','ChatGroup','JscriptyProject','user_has_teams','ChatWebsiteId','Queue','DashboardItem','../api/mailQueue/mailQueue.model','FieldId','belongsTo','../api/intZohoAccount/intZohoAccount.model','../api/variable/variable.model','Subject','ScreenRecording','Dispositions','ZendeskAccount','../api/campaign/campaign.model','VoiceQueues','../api/chatInteraction/chatInteraction.model','Campaign','OwnerId','AttachmentId','../api/integrationReport/integrationReport.model','name','../api/whatsappMessage/whatsappMessage.model','Lists','user_has_chat_interactions','UserOpenchannelQueue','team_has_chat_queues','user_has_chat_websites','OpenchannelInteractions','MailApplication','SugarcrmConfiguration','ChatQueueId','ZohoConfiguration','options','../api/openchannelQueue/openchannelQueue.model','SalesforceAccount','ZendeskConfiguration','../api/plugin/plugin.model','../api/squareReport/squareReport.model','../api/memberReport/memberReport.model','Company','../api/license/license.model','CmContact','WhatsappQueue','Action','../api/condition/condition.model','AnalyticDefaultReport','HopperHistory','Any','cascade','Sound','Intervals','MailAccount','Members','../api/analyticCustomReport/analyticCustomReport.model','mandatoryDispositionPause','WhatsappAccountId','../api/voiceExtension/voiceExtension.model'];(function(_0x209879,_0x472665){const _0x14537a=function(_0x20371e){while(--_0x20371e){_0x209879['push'](_0x209879['shift']());}};_0x14537a(++_0x472665);}(a1021_0x4726,0x147));const a1021_0x1453=function(_0x209879,_0x472665){_0x209879=_0x209879-0x0;let _0x14537a=a1021_0x4726[_0x209879];return _0x14537a;};const _0xa36664=a1021_0x1453;'use strict';const config=require(_0xa36664('0x1b3')),cs=require('../config/config.service')[_0xa36664('0xd2')](),Sequelize=require('sequelize'),logger=require('../config/logger'),_=require(_0xa36664('0xc4')),jstz=require(_0xa36664('0x129')),timezone=jstz['determine'](),queryLogger=logger(_0xa36664('0x49')),DEFAULTS={'database':cs[_0xa36664('0x12c')],'username':cs[_0xa36664('0x37')],'password':cs[_0xa36664('0x1b0')],'options':{'host':cs['dbHost'],'port':cs[_0xa36664('0x10e')],'dialect':'mysql','dialectOptions':{'charset':_0xa36664('0x59')},'logging':cs[_0xa36664('0x11')]?![]:_0x20371e=>queryLogger['info'](_0x20371e),'timezone':timezone[_0xa36664('0x8d')](),'define':{'charset':'utf8','collate':_0xa36664('0x21')}}};config[_0xa36664('0x5f')]=_[_0xa36664('0x1eb')](config['sequelize'],DEFAULTS),config[_0xa36664('0xf0')]=_[_0xa36664('0x1eb')](config['sequelizeHistory'],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa36664('0x5f')][_0xa36664('0xc2')],config[_0xa36664('0x5f')][_0xa36664('0x128')],config[_0xa36664('0x5f')]['password'],config[_0xa36664('0x5f')][_0xa36664('0x99')])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0xa36664('0xf0')][_0xa36664('0xc2')],config['sequelizeHistory'][_0xa36664('0x128')],config['sequelizeHistory'][_0xa36664('0x11a')],config[_0xa36664('0xf0')][_0xa36664('0x99')])};db[_0xa36664('0x1a9')]=require(_0xa36664('0x195'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x173')]=require(_0xa36664('0xf5'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x61')]=require('../api/voiceContext/voiceContext.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['VoiceExtension']=require(_0xa36664('0xb1'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x194')]=require(_0xa36664('0x133'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x13c')]=require(_0xa36664('0x46'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1b1')]=require(_0xa36664('0x122'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x83')]=require(_0xa36664('0x11b'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['VoiceMail']=require(_0xa36664('0x69'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['VoiceMailMessage']=require(_0xa36664('0xd'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x1d3')]=require('../api/voiceCallReport/voiceCallReport.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x1a2')]=require('../api/voiceDialReport/voiceDialReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x16f')]=require('../api/voiceAgentReport/voiceAgentReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x113')]=require('../api/voiceQueueReport/voiceQueueReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xdc')]=require(_0xa36664('0x9f'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1b')]=require(_0xa36664('0xfb'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x19c')]=require(_0xa36664('0x106'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0xeb')]=require(_0xa36664('0xc9'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['UserVoiceQueue']=require('../api/userVoiceQueue/userVoiceQueue.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['UserChatQueue']=require(_0xa36664('0x1e8'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1aa')]=require(_0xa36664('0xef'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x38')]=require(_0xa36664('0x15b'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x109')]=require(_0xa36664('0x1c4'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x91')]=require(_0xa36664('0x26'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x177')]=require('../api/userWhatsappQueue/userWhatsappQueue.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['MailServerIn']=require(_0xa36664('0x1'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x153')]=require(_0xa36664('0x123'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xac')]=require(_0xa36664('0x10c'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x74')]=require(_0xa36664('0x7d'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x15c')]=require('../api/mailSubstatus/mailSubstatus.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x6a')]=require('../api/mailInteraction/mailInteraction.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x134')]=require(_0xa36664('0x17a'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x95')]=require(_0xa36664('0x146'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1ab')]=require(_0xa36664('0xdf'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x1c7')]=require(_0xa36664('0x183'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['DashboardItem']=require(_0xa36664('0xdb'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x3e')]=require(_0xa36664('0xb6'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x176')]=require('../api/faxApplication/faxApplication.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x2e')]=require(_0xa36664('0xcc'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x186')]=require(_0xa36664('0xfc'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x28')]=require(_0xa36664('0x1d1'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x105')]=require(_0xa36664('0x39'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['SmsAccount']=require(_0xa36664('0x3a'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x6c')]=require(_0xa36664('0x5b'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x150')]=require(_0xa36664('0x11d'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['SmsMessage']=require('../api/smsMessage/smsMessage.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['SmsQueue']=require(_0xa36664('0x184'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x73')]=require(_0xa36664('0x6d'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1f7')]=require(_0xa36664('0x127'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x141')]=require(_0xa36664('0x62'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x31')]=require(_0xa36664('0xe7'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x197')]=require(_0xa36664('0x9a'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x189')]=require(_0xa36664('0x5a'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xe1')]=require(_0xa36664('0x1a0'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x104')]=require(_0xa36664('0x1f0'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x162')]=require(_0xa36664('0x88'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1ca')]=require(_0xa36664('0xde'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['ChatOfflineMessage']=require('../api/chatOfflineMessage/chatOfflineMessage.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x100')]=require(_0xa36664('0x35'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x77')]=require('../api/chatGroup/chatGroup.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x24')]=require(_0xa36664('0x1d2'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x4b')]=require(_0xa36664('0x19'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xa2')]=require(_0xa36664('0xf4'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x12')]=require(_0xa36664('0x140'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x143')]=require(_0xa36664('0x1bc'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x47')]=require(_0xa36664('0x2f'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x1c3')]=require(_0xa36664('0x1e6'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x53')]=require(_0xa36664('0x1a4'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xea')]=require(_0xa36664('0x51'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xa4')]=require(_0xa36664('0x116'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x19b')]=require(_0xa36664('0x111'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x102')]=require(_0xa36664('0x2'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xd6')]=require('../api/disposition/disposition.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['Condition']=require(_0xa36664('0xa5'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x17f')]=require(_0xa36664('0xb8'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x18e')]=require('../api/pause/pause.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x181')]=require(_0xa36664('0x6f'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['VoiceQueuesLog']=require(_0xa36664('0xe0'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x19a')]=require('../api/schedule/schedule.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['Sound']=require(_0xa36664('0x15e'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x13')]=require('../api/tag/tag.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['Template']=require('../api/template/template.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x13f')]=require(_0xa36664('0xb9'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1cf')]=require(_0xa36664('0x81'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1df')]=require(_0xa36664('0x1ec'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['IntegrationReport']=require(_0xa36664('0x8c'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x7')]=require(_0xa36664('0xae'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xa6')]=require(_0xa36664('0x1dd'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x1d4')]=require(_0xa36664('0x114'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['AnalyticMetric']=require(_0xa36664('0x1e4'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x11e')]=require(_0xa36664('0xe9'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xd4')]=require(_0xa36664('0x17'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x9b')]=require(_0xa36664('0x119'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x72')]=require(_0xa36664('0x179'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x11f')]=require(_0xa36664('0x1a5'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['SugarcrmAccount']=require(_0xa36664('0xf9'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x96')]=require(_0xa36664('0x48'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['SugarcrmField']=require('../api/intSugarcrmField/intSugarcrmField.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1dc')]=require(_0xa36664('0x193'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['DeskConfiguration']=require(_0xa36664('0xb5'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xfa')]=require(_0xa36664('0x2c'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x3b')]=require(_0xa36664('0x80'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x98')]=require(_0xa36664('0x1d9'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1c2')]=require('../api/intZohoField/intZohoField.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x85')]=require(_0xa36664('0xc6'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x9c')]=require(_0xa36664('0x4c'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x12a')]=require('../api/intZendeskField/intZendeskField.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x0')]=require(_0xa36664('0xc7'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['FreshdeskConfiguration']=require('../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['FreshdeskField']=require(_0xa36664('0x1e1'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x17e')]=require(_0xa36664('0x18'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xc')]=require(_0xa36664('0xec'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0xc0')]=require(_0xa36664('0x57'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x71')]=require(_0xa36664('0x18a'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['ServicenowConfiguration']=require(_0xa36664('0x6b'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x4d')]=require(_0xa36664('0xf'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1b5')]=require(_0xa36664('0x169'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1bf')]=require(_0xa36664('0x144'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x16b')]=require('../api/intDynamics365Field/intDynamics365Field.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xb')]=require(_0xa36664('0x1b9'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1c6')]=require(_0xa36664('0x1b8'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x15')]=require(_0xa36664('0xe3'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1df')]=require('../api/integration/integration.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1db')]=require('../api/network/network.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x151')]=require(_0xa36664('0x1e7'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0xe4')]=require(_0xa36664('0x3d'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x14f')]=require('../api/jscriptyAnswerReport/jscriptyAnswerReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x147')]=require(_0xa36664('0x13d'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1cb')]=require('../api/jscriptySessionReport/jscriptySessionReport.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x159')]=require('../api/smsQueueReport/smsQueueReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['SquareReport']=require(_0xa36664('0x9e'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x156')]=require(_0xa36664('0xc5'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db['JscriptyProject']=require(_0xa36664('0xe8'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0xd5')]=require(_0xa36664('0x70'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0xbb')]=require(_0xa36664('0x58'))(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0xee')]=require(_0xa36664('0x132'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xf3')]=require(_0xa36664('0x1ad'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['SquareMessage']=require(_0xa36664('0x139'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1e9')]=require(_0xa36664('0x154'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x16c')]=require(_0xa36664('0xa1'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x89')]=require(_0xa36664('0x86'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x16a')]=require(_0xa36664('0x1f8'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db['Attachment']=require('../api/attachment/attachment.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x1f')]=require(_0xa36664('0x9d'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x107')]=require(_0xa36664('0x1b2'))(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x5d')]=require('../api/chatTransferReport/chatTransferReport.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x19e')]=require('../api/faxTransferReport/faxTransferReport.model')(db['sequelize'],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x180')]=require(_0xa36664('0x1f6'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xc3')]=require(_0xa36664('0x75'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x16d')]=require('../api/cmList/cmList.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x8')]=require('../api/voicePrefix/voicePrefix.model')(db['sequelize'],Sequelize['DataTypes']),db[_0xa36664('0x155')]=require(_0xa36664('0x145'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x44')]=require(_0xa36664('0xcb'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xf8')]=require('../api/userProfileResource/userProfileResource.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x42')]=require(_0xa36664('0x1f2'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x1d8')]=require('../api/whatsappAccount/whatsappAccount.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x188')]=require('../api/whatsappApplication/whatsappApplication.model')(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x125')]=require(_0xa36664('0xc8'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x33')]=require(_0xa36664('0x8e'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0x190')]=require(_0xa36664('0x56'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xf2')]=require(_0xa36664('0x30'))(db['sequelize'],Sequelize[_0xa36664('0x161')]),db['WhatsappQueue']=require(_0xa36664('0xc1'))(db[_0xa36664('0x5f')],Sequelize[_0xa36664('0x161')]),db[_0xa36664('0xce')]=require('../api/cloudProvider/cloudProvider.model')(db[_0xa36664('0x5f')],Sequelize['DataTypes']),db[_0xa36664('0x1a9')][_0xa36664('0x1e2')](db[_0xa36664('0x16')],{'as':_0xa36664('0x16'),'onDelete':'cascade','foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')]['hasMany'](db[_0xa36664('0x1b1')],{'as':_0xa36664('0x2b'),'foreignKey':_0xa36664('0x172')}),db['User'][_0xa36664('0x3')](db['UserVoiceQueueRt'],{'as':_0xa36664('0xff'),'foreignKey':'UserId'}),db[_0xa36664('0x1a9')]['hasMany'](db[_0xa36664('0x1a6')],{'as':_0xa36664('0x1b4'),'onDelete':_0xa36664('0xa9'),'hooks':!![]}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db['CmHopperFinal'],{'as':'HopperFinals','foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db[_0xa36664('0x1c3')],{'as':_0xa36664('0xa7'),'foreignKey':'UserId'}),db[_0xa36664('0x1a9')]['hasMany'](db[_0xa36664('0x53')],{'as':_0xa36664('0x53'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db[_0xa36664('0x141')],{'as':_0xa36664('0x94'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db['ChatInteraction'],{'as':_0xa36664('0xf7'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')]['hasMany'](db['SmsInteraction'],{'as':_0xa36664('0x55'),'foreignKey':'UserId'}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db[_0xa36664('0x2e')],{'as':_0xa36664('0xdd'),'foreignKey':'UserId'}),db[_0xa36664('0x1a9')][_0xa36664('0x3')](db[_0xa36664('0x6a')],{'as':_0xa36664('0x66'),'foreignKey':_0xa36664('0x172')}),db['User']['hasMany'](db[_0xa36664('0x125')],{'as':_0xa36664('0x1d6'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1a9')]['hasMany'](db[_0xa36664('0x42')],{'as':_0xa36664('0x1ba'),'foreignKey':_0xa36664('0x192')}),db[_0xa36664('0x1a9')][_0xa36664('0x7f')](db[_0xa36664('0x155')],{'as':_0xa36664('0x155'),'foreignKey':_0xa36664('0x14c'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x77')],{'as':_0xa36664('0x103'),'through':_0xa36664('0x121')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x18b'),'through':_0xa36664('0x1b6')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x8f'),'through':_0xa36664('0xf1')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'through':_0xa36664('0x79')}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0x6a')],{'as':_0xa36664('0x1bd'),'through':_0xa36664('0x168')}),db['User'][_0xa36664('0x10a')](db[_0xa36664('0x162')],{'as':'UserChatInteractions','through':'user_has_chat_interactions'}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x2e')],{'as':_0xa36664('0xcd'),'through':'user_has_fax_interactions'}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x150')],{'as':_0xa36664('0x34'),'through':_0xa36664('0x1f3')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x141')],{'as':_0xa36664('0x15d'),'through':_0xa36664('0xca')}),db[_0xa36664('0x1a9')]['belongsToMany'](db['WhatsappInteraction'],{'as':_0xa36664('0x67'),'through':'user_has_whatsapp_interactions'}),db['User'][_0xa36664('0x10a')](db[_0xa36664('0x13c')],{'as':'VoiceQueues','through':_0xa36664('0x149'),'required':![]}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x74')],{'as':_0xa36664('0x10b'),'through':_0xa36664('0x1aa'),'required':![]}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x100')],{'as':_0xa36664('0x19d'),'through':_0xa36664('0x68'),'required':![],'hooks':!![]}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0x28')],{'as':_0xa36664('0x2d'),'through':'UserFaxQueue','required':![]}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x1af')],{'as':_0xa36664('0x157'),'through':_0xa36664('0x109'),'required':![]}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db['OpenchannelQueue'],{'as':_0xa36664('0xe6'),'through':_0xa36664('0x91'),'required':![]}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0xa3')],{'as':_0xa36664('0x167'),'through':_0xa36664('0x177'),'required':![]}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x16d')],{'through':_0xa36664('0xf1')}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0x8')],{'as':_0xa36664('0x115'),'through':'user_has_voice_prefixes','required':![]}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0x189')],{'as':_0xa36664('0x185'),'through':'user_has_chat_websites'}),db['User'][_0xa36664('0x10a')](db[_0xa36664('0x3e')],{'as':_0xa36664('0x18d'),'through':_0xa36664('0xfd')}),db[_0xa36664('0x1a9')]['belongsToMany'](db['MailAccount'],{'as':_0xa36664('0x6'),'through':'user_has_mail_accounts'}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0x73')],{'as':_0xa36664('0x1ae'),'through':_0xa36664('0x158')}),db['User'][_0xa36664('0x10a')](db[_0xa36664('0x18f')],{'as':'SmsAccounts','through':_0xa36664('0x178')}),db[_0xa36664('0x1a9')]['belongsToMany'](db[_0xa36664('0x1d8')],{'as':'WhatsappAccounts','through':'user_has_whatsapp_accounts'}),db[_0xa36664('0x1a9')][_0xa36664('0x10a')](db[_0xa36664('0xee')],{'as':_0xa36664('0x187'),'through':_0xa36664('0x41')}),db['VoiceChanSpy']['hasMany'](db[_0xa36664('0x1a6')],{'as':_0xa36664('0x165'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x18c')}),db['VoiceContext'][_0xa36664('0x3')](db['VoiceExtension'],{'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x1a6')]['hasMany'](db['VoiceExtension'],{'as':_0xa36664('0x13e'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x194')][_0xa36664('0x10a')](db[_0xa36664('0xaa')],{'as':_0xa36664('0x63'),'through':'moh_has_sounds'}),db[_0xa36664('0x13c')]['hasMany'](db[_0xa36664('0xeb')],{'as':_0xa36664('0xad'),'foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')][_0xa36664('0x3')](db[_0xa36664('0x12')],{'as':_0xa36664('0x199'),'foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')]['hasMany'](db[_0xa36664('0x47')],{'as':_0xa36664('0xd3'),'foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')][_0xa36664('0x3')](db[_0xa36664('0x1c3')],{'as':_0xa36664('0x1a8'),'foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')]['hasMany'](db[_0xa36664('0x53')],{'as':'ReportAgentPreview','foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')][_0xa36664('0x3')](db['CmHopperBlack'],{'as':_0xa36664('0xb4'),'foreignKey':'VoiceQueueId'}),db[_0xa36664('0x13c')][_0xa36664('0x3')](db[_0xa36664('0x1cb')],{'as':_0xa36664('0x4'),'foreignKey':_0xa36664('0xa')}),db[_0xa36664('0x13c')][_0xa36664('0x7f')](db[_0xa36664('0x1b')],{'as':_0xa36664('0x1b'),'foreignKey':'TrunkId'}),db[_0xa36664('0x13c')]['belongsTo'](db[_0xa36664('0x1b')],{'as':_0xa36664('0x1e5'),'foreignKey':_0xa36664('0x1ef')}),db['VoiceQueue'][_0xa36664('0x7f')](db[_0xa36664('0x17f')],{'as':_0xa36664('0x17f'),'foreignKey':_0xa36664('0x182')}),db['VoiceQueue']['belongsTo'](db[_0xa36664('0x18e')],{'as':_0xa36664('0xaf'),'foreignKey':_0xa36664('0x13a')}),db['VoiceQueue'][_0xa36664('0x10a')](db['CmList'],{'as':_0xa36664('0x8f'),'through':_0xa36664('0x175')}),db[_0xa36664('0x13c')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x149')}),db['VoiceQueue'][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'as':_0xa36664('0x160'),'through':_0xa36664('0x137')}),db[_0xa36664('0x13c')][_0xa36664('0x10a')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x196'),'through':'voice_queues_has_cm_blacklists'}),db[_0xa36664('0x1b1')]['belongsTo'](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1a9'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x83')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1a9'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x16')]['hasMany'](db['VoiceMailMessage'],{'as':_0xa36664('0x1cc'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x117'),'sourceKey':_0xa36664('0x54')}),db[_0xa36664('0x1d')]['belongsTo'](db[_0xa36664('0x16')],{'foreignKey':'mailboxuser','targetKey':_0xa36664('0x54')}),db[_0xa36664('0x1d3')][_0xa36664('0x3')](db[_0xa36664('0x113')],{'as':'QueueCalls','foreignKey':_0xa36664('0x1a1'),'constraints':![]}),db[_0xa36664('0x1d3')][_0xa36664('0x3')](db[_0xa36664('0x16f')],{'as':_0xa36664('0x14'),'foreignKey':_0xa36664('0x1a1'),'constraints':![]}),db[_0xa36664('0x1d3')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1a9'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x1d3')]['belongsTo'](db['CmContact'],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0xac')]['hasOne'](db[_0xa36664('0x1ac')],{'as':_0xa36664('0x23'),'foreignKey':_0xa36664('0xe2'),'onDelete':'cascade'}),db[_0xa36664('0xac')]['hasOne'](db['MailServerOut'],{'as':'Smtp','foreignKey':_0xa36664('0xe2'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0xac')][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':_0xa36664('0x84'),'foreignKey':'MailAccountId'}),db[_0xa36664('0xac')][_0xa36664('0x3')](db['CannedAnswer'],{'as':_0xa36664('0x164'),'foreignKey':_0xa36664('0xe2')}),db[_0xa36664('0xac')]['hasMany'](db[_0xa36664('0x134')],{'as':_0xa36664('0x1cc'),'foreignKey':_0xa36664('0xe2')}),db[_0xa36664('0xac')]['hasMany'](db[_0xa36664('0x6a')],{'as':_0xa36664('0x148')}),db[_0xa36664('0xac')][_0xa36664('0x3')](db[_0xa36664('0x95')],{'as':_0xa36664('0x13e')}),db[_0xa36664('0xac')][_0xa36664('0x7f')](db['CmList'],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0xac')]['belongsTo'](db[_0xa36664('0x60')],{'as':_0xa36664('0x60'),'foreignKey':'TemplateId'}),db[_0xa36664('0xac')]['belongsTo'](db[_0xa36664('0x18e')],{'as':_0xa36664('0xaf'),'foreignKey':_0xa36664('0x13a')}),db[_0xa36664('0xac')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x138')}),db[_0xa36664('0x74')][_0xa36664('0x10a')](db['User'],{'as':_0xa36664('0x130'),'through':'UserMailQueue'}),db[_0xa36664('0x74')][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'through':'team_has_mail_queues','as':_0xa36664('0x160')}),db[_0xa36664('0x6a')][_0xa36664('0x3')](db[_0xa36664('0x134')],{'as':_0xa36664('0x1cc'),'onDelete':'cascade','foreignKey':'MailInteractionId'}),db[_0xa36664('0x6a')]['belongsTo'](db['MailAccount'],{'as':_0xa36664('0x124'),'foreignKey':'MailAccountId'}),db[_0xa36664('0x6a')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x6a')]['belongsTo'](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1ee'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x6a')]['belongsToMany'](db[_0xa36664('0x13')],{'through':_0xa36664('0x1e0'),'as':'Tags'}),db[_0xa36664('0x6a')]['belongsToMany'](db[_0xa36664('0x13')],{'through':_0xa36664('0x1e0'),'as':_0xa36664('0x2a')}),db[_0xa36664('0x6a')]['belongsToMany'](db['User'],{'as':_0xa36664('0x1da'),'through':'user_has_mail_interactions','foreignKey':_0xa36664('0x1c0')}),db['MailMessage'][_0xa36664('0x3')](db[_0xa36664('0x5e')],{'as':'Attachments','onDelete':'cascade'}),db[_0xa36664('0x134')][_0xa36664('0x7f')](db['User'],{'as':_0xa36664('0x1a9')}),db[_0xa36664('0x134')]['belongsTo'](db[_0xa36664('0xa2')],{'onDelete':'cascade','as':'Contact'}),db[_0xa36664('0x134')][_0xa36664('0x7f')](db['MailInteraction'],{'as':'Interaction','foreignKey':'MailInteractionId'}),db[_0xa36664('0x134')][_0xa36664('0x7f')](db[_0xa36664('0xac')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0xe2')}),db[_0xa36664('0x95')][_0xa36664('0x7f')](db['User'],{'onDelete':_0xa36664('0x17b')}),db['MailApplication'][_0xa36664('0x7f')](db[_0xa36664('0x74')],{'onDelete':_0xa36664('0x17b')}),db['MailApplication'][_0xa36664('0x7f')](db[_0xa36664('0xac')],{'onDelete':_0xa36664('0x17b')}),db['MailApplication'][_0xa36664('0x7f')](db[_0xa36664('0x17f')],{'onDelete':_0xa36664('0x17b'),'foreignKey':'IntervalId'}),db['MailApplication'][_0xa36664('0x7f')](db[_0xa36664('0x13')],{'onDelete':'restrict','foreignKey':_0xa36664('0x9')}),db[_0xa36664('0x1ab')][_0xa36664('0x7f')](db[_0xa36664('0xac')],{}),db[_0xa36664('0x1ab')]['belongsTo'](db['CmList'],{'as':_0xa36664('0x152'),'foreignKey':'ListId'}),db['MailQueueReport'][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x1ab')][_0xa36664('0x7f')](db[_0xa36664('0x6a')],{}),db['MailQueueReport'][_0xa36664('0x7f')](db['MailMessage'],{}),db[_0xa36664('0x1ab')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{}),db['MailQueueReport']['belongsTo'](db[_0xa36664('0x74')],{}),db[_0xa36664('0x1c7')]['hasMany'](db[_0xa36664('0x7c')],{'as':_0xa36664('0x17c'),'onDelete':_0xa36664('0xa9')}),db['FaxAccount'][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':'Dispositions','foreignKey':_0xa36664('0x1be')}),db[_0xa36664('0x3e')][_0xa36664('0x3')](db[_0xa36664('0x102')],{'as':'Answers','foreignKey':'FaxAccountId'}),db[_0xa36664('0x3e')][_0xa36664('0x3')](db[_0xa36664('0x2e')],{'as':_0xa36664('0x148')}),db['FaxAccount']['hasMany'](db['FaxApplication'],{'as':_0xa36664('0x13e')}),db[_0xa36664('0x3e')]['hasMany'](db[_0xa36664('0x1a6')],{'as':_0xa36664('0x126'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x3e')][_0xa36664('0x3')](db['FaxMessage'],{'as':_0xa36664('0x1cc')}),db[_0xa36664('0x3e')][_0xa36664('0x7f')](db['Trunk'],{'as':'Trunk'}),db['FaxAccount'][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':'ListId'}),db[_0xa36664('0x3e')]['belongsTo'](db['Pause'],{'as':_0xa36664('0xaf'),'foreignKey':_0xa36664('0x13a')}),db[_0xa36664('0x3e')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0xfd')}),db[_0xa36664('0x176')]['belongsTo'](db['User'],{'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x176')][_0xa36664('0x7f')](db[_0xa36664('0x28')],{'onDelete':'restrict'}),db[_0xa36664('0x176')][_0xa36664('0x7f')](db['FaxAccount'],{'onDelete':_0xa36664('0x17b')}),db['FaxApplication']['belongsTo'](db[_0xa36664('0x13')],{'onDelete':_0xa36664('0x17b'),'foreignKey':'TagId'}),db[_0xa36664('0x2e')][_0xa36664('0x3')](db[_0xa36664('0x186')],{'as':'Messages','onDelete':'cascade','foreignKey':'FaxInteractionId'}),db['FaxInteraction']['belongsTo'](db['FaxAccount'],{'as':'Account','foreignKey':'FaxAccountId'}),db[_0xa36664('0x2e')]['belongsTo'](db['CmContact'],{'as':'Contact','foreignKey':_0xa36664('0x11c')}),db['FaxInteraction'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1ee'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x2e')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':'fax_interaction_has_tags','as':'Tags'}),db[_0xa36664('0x2e')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x170'),'as':_0xa36664('0x2a')}),db[_0xa36664('0x2e')]['belongsToMany'](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1da'),'through':_0xa36664('0x1a7'),'foreignKey':'FaxInteractionId'}),db[_0xa36664('0x186')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x1a9')}),db[_0xa36664('0x186')][_0xa36664('0x7f')](db[_0xa36664('0x2e')],{'as':'Interaction','foreignKey':_0xa36664('0x1de')}),db[_0xa36664('0x186')]['belongsTo'](db['CmContact'],{'onDelete':_0xa36664('0xa9'),'as':'Contact'}),db[_0xa36664('0x186')][_0xa36664('0x7f')](db[_0xa36664('0x5e')],{'as':'Attachment','foreignKey':_0xa36664('0x8b')}),db[_0xa36664('0x186')]['belongsTo'](db[_0xa36664('0x3e')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x1be')}),db['FaxQueue'][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x38')}),db[_0xa36664('0x28')]['belongsToMany'](db['Team'],{'through':_0xa36664('0x136'),'as':_0xa36664('0x160')}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db[_0xa36664('0x3e')],{}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db['CmList'],{'as':'List','foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':'Contact','foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db['FaxInteraction'],{}),db[_0xa36664('0x105')]['belongsTo'](db[_0xa36664('0x186')],{}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db['User'],{}),db[_0xa36664('0x105')][_0xa36664('0x7f')](db[_0xa36664('0x28')],{}),db[_0xa36664('0x18f')][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':'Dispositions','foreignKey':_0xa36664('0xd9')}),db[_0xa36664('0x18f')][_0xa36664('0x3')](db[_0xa36664('0x102')],{'as':'Answers','foreignKey':_0xa36664('0xd9')}),db[_0xa36664('0x18f')]['hasMany'](db['SmsMessage'],{'as':'Messages','foreignKey':'SmsAccountId'}),db[_0xa36664('0x18f')]['hasMany'](db[_0xa36664('0x150')],{'as':_0xa36664('0x148')}),db[_0xa36664('0x18f')]['hasMany'](db[_0xa36664('0x6c')],{'as':'Applications'}),db[_0xa36664('0x18f')][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':'List','foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x18f')][_0xa36664('0x7f')](db[_0xa36664('0x18e')],{'as':_0xa36664('0xaf'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0xa36664('0x18f')]['belongsToMany'](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x178')}),db[_0xa36664('0x6c')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x6c')]['belongsTo'](db[_0xa36664('0x1af')],{'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x6c')][_0xa36664('0x7f')](db[_0xa36664('0x18f')],{'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x6c')][_0xa36664('0x7f')](db['Interval'],{'onDelete':_0xa36664('0x17b'),'foreignKey':'IntervalId'}),db[_0xa36664('0x6c')][_0xa36664('0x7f')](db[_0xa36664('0x13')],{'onDelete':_0xa36664('0x17b'),'foreignKey':'TagId'}),db[_0xa36664('0x150')][_0xa36664('0x3')](db[_0xa36664('0x1f5')],{'as':_0xa36664('0x1cc'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xb3')}),db['SmsInteraction'][_0xa36664('0x7f')](db[_0xa36664('0x18f')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0xd9')}),db[_0xa36664('0x150')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db['SmsInteraction']['belongsTo'](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1ee'),'foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x150')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':'sms_interaction_has_tags','as':_0xa36664('0xd1')}),db[_0xa36664('0x150')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x20'),'as':_0xa36664('0x2a')}),db[_0xa36664('0x150')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1da'),'through':_0xa36664('0x1f3'),'foreignKey':_0xa36664('0xb3')}),db[_0xa36664('0x1f5')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1a9')}),db[_0xa36664('0x1f5')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x16e')}),db[_0xa36664('0x1f5')][_0xa36664('0x7f')](db['SmsInteraction'],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x32'),'foreignKey':_0xa36664('0xb3')}),db[_0xa36664('0x1f5')][_0xa36664('0x7f')](db['SmsAccount'],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0xd9')}),db['SmsQueue'][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x109'),'foreignKey':_0xa36664('0x45')}),db[_0xa36664('0x1af')][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'through':'team_has_sms_queues','as':_0xa36664('0x160')}),db[_0xa36664('0x73')][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':_0xa36664('0x84'),'foreignKey':_0xa36664('0x1f1')}),db[_0xa36664('0x73')][_0xa36664('0x3')](db['CannedAnswer'],{'as':_0xa36664('0x164'),'foreignKey':_0xa36664('0x1f1')}),db[_0xa36664('0x73')][_0xa36664('0x3')](db[_0xa36664('0x141')],{'as':_0xa36664('0x148'),'foreignKey':_0xa36664('0x1f1')}),db[_0xa36664('0x73')]['hasMany'](db[_0xa36664('0x31')],{'as':_0xa36664('0x1cc'),'foreignKey':'OpenchannelAccountId'}),db[_0xa36664('0x73')]['hasMany'](db[_0xa36664('0x1f7')],{'as':_0xa36664('0x13e'),'foreignKey':_0xa36664('0x1f1')}),db[_0xa36664('0x73')]['belongsTo'](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x73')][_0xa36664('0x7f')](db['Pause'],{'as':_0xa36664('0xaf'),'foreignKey':_0xa36664('0x13a')}),db[_0xa36664('0x73')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':'user_has_openchannel_accounts'}),db[_0xa36664('0x1f7')]['belongsTo'](db['User'],{'onDelete':_0xa36664('0x17b')}),db['OpenchannelApplication']['belongsTo'](db[_0xa36664('0x197')],{'onDelete':'restrict','foreignKey':_0xa36664('0xba')}),db[_0xa36664('0x1f7')][_0xa36664('0x7f')](db[_0xa36664('0x73')],{'onDelete':_0xa36664('0x17b'),'foreignKey':'OpenchannelAccountId'}),db[_0xa36664('0x1f7')]['belongsTo'](db[_0xa36664('0x17f')],{'onDelete':_0xa36664('0x17b'),'foreignKey':_0xa36664('0x182')}),db[_0xa36664('0x1f7')][_0xa36664('0x7f')](db['Tag'],{'onDelete':_0xa36664('0x17b'),'foreignKey':_0xa36664('0x9')}),db[_0xa36664('0x141')][_0xa36664('0x3')](db[_0xa36664('0x31')],{'as':_0xa36664('0x1cc'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1e')}),db['OpenchannelInteraction']['belongsTo'](db[_0xa36664('0x73')],{'as':_0xa36664('0x124'),'foreignKey':'OpenchannelAccountId'}),db[_0xa36664('0x141')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db['OpenchannelInteraction'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':'Owner','foreignKey':_0xa36664('0x172')}),db['OpenchannelInteraction'][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':'openchannel_interaction_has_tags','as':_0xa36664('0xd1')}),db[_0xa36664('0x141')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x10'),'as':_0xa36664('0x2a')}),db[_0xa36664('0x141')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1da'),'through':_0xa36664('0xca'),'foreignKey':_0xa36664('0x1e')}),db[_0xa36664('0x31')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'onDelete':'cascade','as':_0xa36664('0x1a9')}),db[_0xa36664('0x31')]['belongsTo'](db[_0xa36664('0xa2')],{'onDelete':_0xa36664('0xa9'),'as':'Contact'}),db[_0xa36664('0x31')][_0xa36664('0x7f')](db[_0xa36664('0x141')],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x32'),'foreignKey':_0xa36664('0x1e')}),db['OpenchannelMessage'][_0xa36664('0x7f')](db[_0xa36664('0x5e')],{'as':_0xa36664('0x5e'),'foreignKey':_0xa36664('0x8b')}),db['OpenchannelMessage']['belongsTo'](db[_0xa36664('0x73')],{'as':'Account','foreignKey':'OpenchannelAccountId'}),db[_0xa36664('0x197')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x91'),'foreignKey':_0xa36664('0xba')}),db[_0xa36664('0x197')][_0xa36664('0x10a')](db['Team'],{'through':'team_has_openchannel_queues','as':_0xa36664('0x160')}),db[_0xa36664('0x189')][_0xa36664('0x3')](db['Disposition'],{'as':_0xa36664('0x84'),'foreignKey':_0xa36664('0x7a')}),db['ChatWebsite'][_0xa36664('0x3')](db[_0xa36664('0x102')],{'as':_0xa36664('0x164'),'foreignKey':_0xa36664('0x7a')}),db[_0xa36664('0x189')]['hasMany'](db[_0xa36664('0x24')],{'as':'ProactiveActions'}),db[_0xa36664('0x189')]['hasMany'](db[_0xa36664('0x162')],{'as':'Interactions'}),db[_0xa36664('0x189')][_0xa36664('0x3')](db[_0xa36664('0x104')],{'as':_0xa36664('0x13e')}),db['ChatWebsite'][_0xa36664('0x3')](db[_0xa36664('0x1ca')],{'as':_0xa36664('0x1cc')}),db[_0xa36664('0x189')][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':'ListId'}),db[_0xa36664('0x189')]['belongsTo'](db['Interval'],{'as':'Interval','foreignKey':_0xa36664('0x182')}),db[_0xa36664('0x189')]['belongsTo'](db[_0xa36664('0x18e')],{'as':_0xa36664('0xaf'),'foreignKey':_0xa36664('0x13a')}),db['ChatWebsite'][_0xa36664('0x10a')](db['User'],{'as':_0xa36664('0x130'),'through':_0xa36664('0x93')}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db[_0xa36664('0x73')],{}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':'ListId'}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db[_0xa36664('0x141')],{}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db['OpenchannelMessage'],{}),db[_0xa36664('0xe1')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{}),db['OpenchannelQueueReport'][_0xa36664('0x7f')](db[_0xa36664('0x197')],{}),db[_0xa36664('0x104')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0xe'),'foreignKey':_0xa36664('0x172'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x104')][_0xa36664('0x7f')](db[_0xa36664('0x100')],{'as':_0xa36664('0x7b'),'foreignKey':_0xa36664('0x97'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x104')][_0xa36664('0x7f')](db['ChatWebsite'],{'as':_0xa36664('0x1a'),'foreignKey':_0xa36664('0x7a'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x104')]['belongsTo'](db[_0xa36664('0x13')],{'onDelete':_0xa36664('0x17b'),'foreignKey':_0xa36664('0x9')}),db['ChatInteraction'][_0xa36664('0x3')](db[_0xa36664('0x1ca')],{'as':_0xa36664('0x1cc'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x4a')}),db[_0xa36664('0x162')][_0xa36664('0x7f')](db['ChatWebsite'],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x7a')}),db[_0xa36664('0x162')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':'Contact','foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x162')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':'Owner','foreignKey':_0xa36664('0x172')}),db[_0xa36664('0x162')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':'chat_interaction_has_tags','as':_0xa36664('0xd1')}),db['ChatInteraction']['belongsToMany'](db[_0xa36664('0x13')],{'through':_0xa36664('0x36'),'as':'ThroughTags'}),db[_0xa36664('0x162')][_0xa36664('0x10a')](db['User'],{'as':_0xa36664('0x1da'),'through':_0xa36664('0x90'),'foreignKey':'ChatInteractionId'}),db[_0xa36664('0x1ca')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'onDelete':'cascade','as':_0xa36664('0x1a9')}),db[_0xa36664('0x1ca')]['belongsTo'](db[_0xa36664('0xa2')],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x16e'),'foreignKey':'ContactId'}),db['ChatMessage'][_0xa36664('0x7f')](db[_0xa36664('0x162')],{'onDelete':'cascade','as':_0xa36664('0x32'),'foreignKey':_0xa36664('0x4a')}),db[_0xa36664('0x1ca')][_0xa36664('0x7f')](db[_0xa36664('0x5e')],{'as':_0xa36664('0x5e'),'foreignKey':'AttachmentId'}),db[_0xa36664('0x1ca')][_0xa36664('0x7f')](db['ChatWebsite'],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x7a')}),db['ChatOfflineMessage'][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'onDelete':_0xa36664('0xa9'),'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x1b7')]['belongsTo'](db['ChatWebsite'],{'as':'Account','foreignKey':'ChatWebsiteId'}),db[_0xa36664('0x100')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x68'),'hooks':!![]}),db[_0xa36664('0x100')][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'through':_0xa36664('0x92'),'as':_0xa36664('0x160')}),db[_0xa36664('0x77')][_0xa36664('0x3')](db[_0xa36664('0xe4')],{'as':'Messages','foreignKey':_0xa36664('0x5'),'onDelete':'cascade'}),db[_0xa36664('0x77')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0xad'),'through':_0xa36664('0x121')}),db[_0xa36664('0x24')][_0xa36664('0x7f')](db['ChatWebsite'],{'as':_0xa36664('0x1a'),'foreignKey':'ChatWebsiteId'}),db[_0xa36664('0x4b')][_0xa36664('0x3')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x18b'),'foreignKey':_0xa36664('0x120')}),db[_0xa36664('0xa2')]['hasMany'](db['CmHopper'],{'as':_0xa36664('0x199'),'foreignKey':'ContactId'}),db[_0xa36664('0xa2')][_0xa36664('0x3')](db[_0xa36664('0x47')],{'as':_0xa36664('0xd3'),'foreignKey':'ContactId'}),db[_0xa36664('0xa2')]['hasMany'](db[_0xa36664('0x1c3')],{'as':'HopperHistories','foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0xa2')]['hasMany'](db[_0xa36664('0x53')],{'as':_0xa36664('0x53'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0xa2')][_0xa36664('0x3')](db[_0xa36664('0x1cb')],{'as':_0xa36664('0x4'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0xa2')][_0xa36664('0x3')](db[_0xa36664('0x141')],{'as':_0xa36664('0x94'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0x17b')}),db['CmContact'][_0xa36664('0x3')](db[_0xa36664('0x162')],{'as':_0xa36664('0xf7'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0xa2')][_0xa36664('0x3')](db[_0xa36664('0x150')],{'as':_0xa36664('0x55'),'foreignKey':'ContactId','onDelete':_0xa36664('0x17b')}),db[_0xa36664('0xa2')][_0xa36664('0x3')](db[_0xa36664('0x2e')],{'as':_0xa36664('0xdd'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0xa2')]['hasMany'](db['MailInteraction'],{'as':_0xa36664('0x66'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0x17b')}),db['CmContact'][_0xa36664('0x7f')](db['CmCompany'],{'as':_0xa36664('0xa0'),'foreignKey':_0xa36664('0x120')}),db[_0xa36664('0xa2')]['belongsTo'](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c'),'onDelete':'cascade'}),db[_0xa36664('0xa2')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':'Users','through':_0xa36664('0x1b6')}),db[_0xa36664('0xa2')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'as':'Tags','through':_0xa36664('0x43')}),db[_0xa36664('0xa2')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x43'),'as':_0xa36664('0x2a')}),db[_0xa36664('0x12')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x12')]['belongsTo'](db[_0xa36664('0x16d')],{'as':'List','foreignKey':_0xa36664('0x5c'),'onDelete':_0xa36664('0xa9')}),db['CmHopper'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':'Agent','foreignKey':'UserId'}),db[_0xa36664('0x12')][_0xa36664('0x7f')](db[_0xa36664('0x13c')],{'as':_0xa36664('0x7b'),'foreignKey':_0xa36664('0xa'),'onDelete':'cascade'}),db[_0xa36664('0x12')]['belongsTo'](db[_0xa36664('0x89')],{'as':_0xa36664('0x89'),'foreignKey':_0xa36664('0x14d'),'onDelete':_0xa36664('0xa9')}),db['CmHopper'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1ee'),'foreignKey':_0xa36664('0x8a')}),db[_0xa36664('0x143')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c'),'onDelete':_0xa36664('0xa9')}),db['CmHopperBlack'][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c'),'onDelete':_0xa36664('0xa9')}),db['CmHopperBlack'][_0xa36664('0x7f')](db[_0xa36664('0x13c')],{'as':_0xa36664('0x7b'),'foreignKey':_0xa36664('0xa'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x143')][_0xa36664('0x7f')](db[_0xa36664('0x89')],{'as':_0xa36664('0x89'),'foreignKey':_0xa36664('0x14d'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x19b')][_0xa36664('0x3')](db[_0xa36664('0xb7')],{'as':{'plural':'All','singular':_0xa36664('0x142')},'foreignKey':'AutomationAllId','onDelete':'cascade','hooks':!![]}),db['Automation'][_0xa36664('0x3')](db[_0xa36664('0xb7')],{'as':{'plural':_0xa36664('0xa8'),'singular':'OneAny'},'foreignKey':_0xa36664('0xed'),'onDelete':_0xa36664('0xa9'),'hooks':!![]}),db[_0xa36664('0x19b')][_0xa36664('0x3')](db[_0xa36664('0xa4')],{'as':_0xa36664('0xbf'),'foreignKey':_0xa36664('0x15f'),'onDelete':'cascade','hooks':!![]}),db[_0xa36664('0xd6')][_0xa36664('0x3')](db['Disposition'],{'as':_0xa36664('0x84'),'foreignKey':'ParentId','onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x17f')]['hasMany'](db[_0xa36664('0x17f')],{'as':_0xa36664('0xab'),'foreignKey':_0xa36664('0x182'),'onDelete':_0xa36664('0xa9'),'hooks':!![],'required':![]}),db[_0xa36664('0x17f')]['hasMany'](db[_0xa36664('0x1a6')],{'as':'Extensions','foreignKey':_0xa36664('0x182'),'onDelete':_0xa36664('0x17b')}),db['Interval'][_0xa36664('0x3')](db[_0xa36664('0x95')],{'as':'MailApplications','foreignKey':'IntervalId'}),db['Interval'][_0xa36664('0x3')](db['ChatApplication'],{'as':_0xa36664('0x1ea'),'foreignKey':_0xa36664('0x182')}),db[_0xa36664('0x17f')]['hasMany'](db[_0xa36664('0x176')],{'as':_0xa36664('0xbd'),'foreignKey':'IntervalId'}),db['Interval'][_0xa36664('0x3')](db[_0xa36664('0x6c')],{'as':_0xa36664('0x12e'),'foreignKey':_0xa36664('0x182')}),db[_0xa36664('0x19a')][_0xa36664('0x7f')](db[_0xa36664('0xac')],{}),db['Schedule'][_0xa36664('0x7f')](db[_0xa36664('0xa6')],{'foreignKey':'DefaultReportId'}),db[_0xa36664('0x19a')][_0xa36664('0x7f')](db[_0xa36664('0x7')],{'foreignKey':_0xa36664('0xbc')}),db['Sound'][_0xa36664('0x10a')](db[_0xa36664('0x194')],{'as':_0xa36664('0x19f'),'through':'moh_has_sounds','onDelete':'restrict'}),db['Tag'][_0xa36664('0x10a')](db[_0xa36664('0xa2')],{'through':_0xa36664('0x43')}),db[_0xa36664('0x13')][_0xa36664('0x10a')](db[_0xa36664('0x162')],{'through':_0xa36664('0x36')}),db[_0xa36664('0x13')]['belongsToMany'](db[_0xa36664('0x6a')],{'through':_0xa36664('0x1e0')}),db[_0xa36664('0x13')][_0xa36664('0x10a')](db[_0xa36664('0x150')],{'through':_0xa36664('0x20')}),db['Tag'][_0xa36664('0x10a')](db[_0xa36664('0x2e')],{'through':'fax_interaction_has_tags'}),db[_0xa36664('0x13')][_0xa36664('0x10a')](db[_0xa36664('0x141')],{'through':_0xa36664('0x10')}),db[_0xa36664('0x13')][_0xa36664('0x10a')](db[_0xa36664('0x125')],{'through':_0xa36664('0x64')}),db[_0xa36664('0x13f')][_0xa36664('0x3')](db[_0xa36664('0xb7')],{'as':{'plural':'AllConditions','singular':_0xa36664('0xf6')},'foreignKey':'TriggerAllId','onDelete':_0xa36664('0xa9'),'hooks':!![]}),db[_0xa36664('0x13f')]['hasMany'](db[_0xa36664('0xb7')],{'as':{'plural':_0xa36664('0x50'),'singular':'AnyCondition'},'foreignKey':_0xa36664('0x1d7'),'onDelete':_0xa36664('0xa9'),'hooks':!![]}),db[_0xa36664('0x13f')][_0xa36664('0x3')](db['Action'],{'as':_0xa36664('0xbf'),'foreignKey':_0xa36664('0x14e'),'onDelete':_0xa36664('0xa9'),'hooks':!![]}),db[_0xa36664('0x7')]['hasMany'](db[_0xa36664('0x11e')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xbc'),'hooks':!![]}),db[_0xa36664('0xa6')]['hasMany'](db[_0xa36664('0x11e')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1bb')}),db[_0xa36664('0x4f')][_0xa36664('0x3')](db[_0xa36664('0x11e')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x14b')}),db[_0xa36664('0x11e')][_0xa36664('0x7f')](db['AnalyticMetric'],{'foreignKey':_0xa36664('0x14b')}),db['SalesforceAccount']['hasMany'](db['SalesforceConfiguration'],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db['SalesforceConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x11f')],{'as':_0xa36664('0x40'),'onDelete':'cascade','foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x72')][_0xa36664('0x3')](db['SalesforceField'],{'as':_0xa36664('0x17d'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x72')][_0xa36664('0x3')](db[_0xa36664('0x11f')],{'as':'Fields','onDelete':_0xa36664('0xa9'),'foreignKey':'FieldId'}),db[_0xa36664('0x72')]['belongsTo'](db[_0xa36664('0x9b')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db['SalesforceField'][_0xa36664('0x3')](db[_0xa36664('0x11f')],{'as':_0xa36664('0x82'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x11f')][_0xa36664('0x3')](db[_0xa36664('0x11f')],{'as':_0xa36664('0x108'),'foreignKey':_0xa36664('0x1e3')}),db['SalesforceField'][_0xa36664('0x3')](db['SalesforceField'],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x11f')][_0xa36664('0x7f')](db['Variable'],{'as':_0xa36664('0x1cf'),'foreignKey':_0xa36664('0x10d')}),db[_0xa36664('0x3c')][_0xa36664('0x3')](db[_0xa36664('0x96')],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db['SugarcrmConfiguration'][_0xa36664('0x3')](db['SugarcrmField'],{'as':_0xa36664('0x40'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x96')]['hasMany'](db[_0xa36664('0x76')],{'as':_0xa36664('0x17d'),'onDelete':'cascade','foreignKey':'DescriptionId'}),db['SugarcrmConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x76')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x7e')}),db['SugarcrmConfiguration'][_0xa36664('0x7f')](db[_0xa36664('0x3c')],{'as':'Account','foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x76')][_0xa36664('0x3')](db['SugarcrmField'],{'as':_0xa36664('0x82'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x76')]['hasMany'](db[_0xa36664('0x76')],{'as':_0xa36664('0x108'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x76')][_0xa36664('0x3')](db[_0xa36664('0x76')],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x76')][_0xa36664('0x7f')](db[_0xa36664('0x1cf')],{'as':_0xa36664('0x1cf'),'foreignKey':'VariableId'}),db[_0xa36664('0x1dc')][_0xa36664('0x3')](db[_0xa36664('0x14a')],{'as':_0xa36664('0xfe'),'onDelete':'cascade','foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x14a')][_0xa36664('0x3')](db[_0xa36664('0xfa')],{'as':'Subjects','onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x14a')][_0xa36664('0x3')](db['DeskField'],{'as':'Descriptions','onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x14a')]['hasMany'](db['DeskField'],{'as':'Fields','onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x14a')][_0xa36664('0x7f')](db[_0xa36664('0x1dc')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x14a')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x1d0')}),db['DeskField'][_0xa36664('0x3')](db[_0xa36664('0xfa')],{'as':_0xa36664('0x82'),'foreignKey':'SubjectId'}),db[_0xa36664('0xfa')][_0xa36664('0x3')](db[_0xa36664('0xfa')],{'as':_0xa36664('0x108'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0xfa')][_0xa36664('0x3')](db[_0xa36664('0xfa')],{'as':'Field','foreignKey':'FieldId'}),db['DeskField'][_0xa36664('0x7f')](db['Variable'],{'as':_0xa36664('0x1cf'),'foreignKey':'VariableId'}),db['ZohoAccount'][_0xa36664('0x3')](db['ZohoConfiguration'],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':'AccountId'}),db[_0xa36664('0x98')][_0xa36664('0x3')](db[_0xa36664('0x1c2')],{'as':_0xa36664('0x40'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x98')][_0xa36664('0x3')](db[_0xa36664('0x1c2')],{'as':_0xa36664('0x17d'),'onDelete':_0xa36664('0xa9'),'foreignKey':'DescriptionId'}),db[_0xa36664('0x98')]['hasMany'](db[_0xa36664('0x1c2')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x7e')}),db['ZohoConfiguration']['belongsTo'](db[_0xa36664('0x3b')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x1c2')][_0xa36664('0x3')](db['ZohoField'],{'as':'Subject','foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x1c2')][_0xa36664('0x3')](db[_0xa36664('0x1c2')],{'as':_0xa36664('0x108'),'foreignKey':'DescriptionId'}),db[_0xa36664('0x1c2')][_0xa36664('0x3')](db[_0xa36664('0x1c2')],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x1c2')][_0xa36664('0x7f')](db[_0xa36664('0x1cf')],{'as':_0xa36664('0x1cf'),'foreignKey':_0xa36664('0x10d')}),db[_0xa36664('0x85')]['hasMany'](db[_0xa36664('0x9c')],{'as':_0xa36664('0xfe'),'onDelete':'cascade','foreignKey':_0xa36664('0x174')}),db['ZendeskConfiguration']['hasMany'](db['ZendeskField'],{'as':_0xa36664('0x40'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x9c')]['hasMany'](db['ZendeskField'],{'as':_0xa36664('0x17d'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x9c')][_0xa36664('0x3')](db[_0xa36664('0x12a')],{'as':_0xa36664('0x15a'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x9c')]['belongsTo'](db[_0xa36664('0x85')],{'as':'Account','foreignKey':'AccountId'}),db[_0xa36664('0x9c')][_0xa36664('0x10a')](db['Tag'],{'through':'int_zendesk_configuration_has_tags'}),db['ZendeskField'][_0xa36664('0x3')](db[_0xa36664('0x12a')],{'as':'Subject','foreignKey':_0xa36664('0xe5')}),db['ZendeskField'][_0xa36664('0x3')](db[_0xa36664('0x12a')],{'as':_0xa36664('0x108'),'foreignKey':'DescriptionId'}),db[_0xa36664('0x12a')][_0xa36664('0x3')](db[_0xa36664('0x12a')],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x12a')][_0xa36664('0x7f')](db[_0xa36664('0x1cf')],{'as':_0xa36664('0x1cf'),'foreignKey':_0xa36664('0x10d')}),db[_0xa36664('0x0')][_0xa36664('0x3')](db[_0xa36664('0x12d')],{'as':'Configurations','onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x12d')]['hasMany'](db['FreshdeskField'],{'as':_0xa36664('0x40'),'onDelete':'cascade','foreignKey':_0xa36664('0xe5')}),db['FreshdeskConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x1c')],{'as':_0xa36664('0x17d'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x12d')]['hasMany'](db[_0xa36664('0x1c')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':'FieldId'}),db['FreshdeskConfiguration'][_0xa36664('0x7f')](db[_0xa36664('0x0')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x12d')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':_0xa36664('0x110')}),db['FreshdeskField'][_0xa36664('0x3')](db[_0xa36664('0x1c')],{'as':'Subject','foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x1c')][_0xa36664('0x3')](db[_0xa36664('0x1c')],{'as':_0xa36664('0x108'),'foreignKey':'DescriptionId'}),db[_0xa36664('0x1c')][_0xa36664('0x3')](db[_0xa36664('0x1c')],{'as':_0xa36664('0x198'),'foreignKey':'FieldId'}),db[_0xa36664('0x1c')]['belongsTo'](db['Variable'],{'as':'Variable','foreignKey':'VariableId'}),db[_0xa36664('0x17e')]['hasMany'](db['VtigerConfiguration'],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0xc')][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':_0xa36664('0x40'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0xc')][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':'Descriptions','foreignKey':'DescriptionId'}),db[_0xa36664('0xc')][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':'Fields','foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0xc')][_0xa36664('0x7f')](db['VtigerAccount'],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db['VtigerField'][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':_0xa36664('0x82'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0xc0')][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':_0xa36664('0x108'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0xc0')][_0xa36664('0x3')](db[_0xa36664('0xc0')],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0xc0')][_0xa36664('0x7f')](db[_0xa36664('0x1cf')],{'as':_0xa36664('0x1cf'),'foreignKey':_0xa36664('0x10d')}),db[_0xa36664('0x71')][_0xa36664('0x3')](db[_0xa36664('0x52')],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db['ServicenowConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x4d')],{'as':'Subjects','foreignKey':'SubjectId'}),db[_0xa36664('0x52')][_0xa36664('0x3')](db[_0xa36664('0x4d')],{'as':_0xa36664('0x17d'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x52')]['hasMany'](db['ServicenowField'],{'as':_0xa36664('0x15a'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x52')][_0xa36664('0x7f')](db[_0xa36664('0x71')],{'as':'Account','foreignKey':'AccountId'}),db[_0xa36664('0x4d')][_0xa36664('0x3')](db[_0xa36664('0x4d')],{'as':_0xa36664('0x82'),'foreignKey':_0xa36664('0xe5')}),db['ServicenowField'][_0xa36664('0x3')](db['ServicenowField'],{'as':_0xa36664('0x108'),'foreignKey':_0xa36664('0x1e3')}),db['ServicenowField'][_0xa36664('0x3')](db['ServicenowField'],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db['ServicenowField']['belongsTo'](db['Variable'],{'as':_0xa36664('0x1cf'),'foreignKey':_0xa36664('0x10d')}),db['Dynamics365Account'][_0xa36664('0x3')](db[_0xa36664('0x1bf')],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x1bf')]['hasMany'](db[_0xa36664('0x16b')],{'as':_0xa36664('0x40'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x1bf')]['hasMany'](db[_0xa36664('0x16b')],{'as':_0xa36664('0x17d'),'onDelete':'cascade','foreignKey':'DescriptionId'}),db[_0xa36664('0x1bf')][_0xa36664('0x3')](db[_0xa36664('0x16b')],{'as':_0xa36664('0x15a'),'onDelete':_0xa36664('0xa9'),'foreignKey':'FieldId'}),db[_0xa36664('0x1bf')]['belongsTo'](db['Dynamics365Account'],{'as':'Account','foreignKey':'AccountId'}),db['Dynamics365Field'][_0xa36664('0x3')](db[_0xa36664('0x16b')],{'as':_0xa36664('0x82'),'foreignKey':'SubjectId'}),db[_0xa36664('0x16b')][_0xa36664('0x3')](db['Dynamics365Field'],{'as':'Description','foreignKey':'DescriptionId'}),db[_0xa36664('0x16b')][_0xa36664('0x3')](db[_0xa36664('0x16b')],{'as':_0xa36664('0x198'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x16b')][_0xa36664('0x7f')](db['Variable'],{'as':'Variable','foreignKey':_0xa36664('0x10d')}),db['FreshsalesAccount'][_0xa36664('0x3')](db[_0xa36664('0x1c6')],{'as':_0xa36664('0xfe'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x174')}),db['FreshsalesConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x15')],{'as':_0xa36664('0x40'),'foreignKey':_0xa36664('0xe5')}),db['FreshsalesConfiguration'][_0xa36664('0x3')](db[_0xa36664('0x15')],{'as':_0xa36664('0x17d'),'foreignKey':_0xa36664('0x1e3')}),db[_0xa36664('0x1c6')][_0xa36664('0x3')](db['FreshsalesField'],{'as':_0xa36664('0x15a'),'foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x1c6')]['belongsTo'](db[_0xa36664('0xb')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0x174')}),db[_0xa36664('0x15')][_0xa36664('0x3')](db[_0xa36664('0x15')],{'as':_0xa36664('0x82'),'foreignKey':_0xa36664('0xe5')}),db[_0xa36664('0x15')][_0xa36664('0x3')](db[_0xa36664('0x15')],{'as':'Description','foreignKey':'DescriptionId'}),db[_0xa36664('0x15')][_0xa36664('0x3')](db[_0xa36664('0x15')],{'as':'Field','foreignKey':_0xa36664('0x7e')}),db[_0xa36664('0x15')]['belongsTo'](db[_0xa36664('0x1cf')],{'as':'Variable','foreignKey':_0xa36664('0x10d')}),db['ChatQueueReport']['belongsTo'](db[_0xa36664('0x189')],{}),db[_0xa36664('0x151')]['belongsTo'](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':'ListId'}),db[_0xa36664('0x151')]['belongsTo'](db['CmContact'],{'as':'Contact','foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x151')][_0xa36664('0x7f')](db[_0xa36664('0x162')],{}),db[_0xa36664('0x151')][_0xa36664('0x7f')](db[_0xa36664('0x1ca')],{}),db['ChatQueueReport'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{}),db['ChatQueueReport'][_0xa36664('0x7f')](db[_0xa36664('0x100')],{}),db['ChatInternalMessage'][_0xa36664('0x7f')](db['User'],{'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x171')}),db[_0xa36664('0xe4')]['belongsTo'](db['User'],{'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x1cd')}),db[_0xa36664('0x1cb')][_0xa36664('0x3')](db['JscriptyQuestionReport'],{'foreignKey':'SessionId','onDelete':'cascade'}),db[_0xa36664('0x1cb')][_0xa36664('0x3')](db['JscriptyAnswerReport'],{'foreignKey':'SessionId','onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x18f')],{}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':'List','foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x150')],{}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x1f5')],{}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{}),db[_0xa36664('0x159')][_0xa36664('0x7f')](db[_0xa36664('0x1af')],{}),db[_0xa36664('0x78')][_0xa36664('0x3')](db[_0xa36664('0x1cb')],{'foreignKey':_0xa36664('0xd0')}),db['JscriptyProject']['hasMany'](db[_0xa36664('0x147')],{'foreignKey':_0xa36664('0xd0')}),db[_0xa36664('0x78')][_0xa36664('0x3')](db[_0xa36664('0x14f')],{'foreignKey':_0xa36664('0xd0')}),db['SquareProject'][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1da'),'through':_0xa36664('0x41')}),db[_0xa36664('0x1e9')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':'Agents','through':'user_has_teams'}),db[_0xa36664('0x1e9')][_0xa36664('0x10a')](db[_0xa36664('0x13c')],{'through':'team_has_voice_queues','as':_0xa36664('0x87')}),db[_0xa36664('0x1e9')][_0xa36664('0x10a')](db[_0xa36664('0x74')],{'through':'team_has_mail_queues','as':_0xa36664('0x10b')}),db[_0xa36664('0x1e9')][_0xa36664('0x10a')](db[_0xa36664('0x100')],{'through':_0xa36664('0x92'),'as':_0xa36664('0x19d')}),db[_0xa36664('0x1e9')]['belongsToMany'](db[_0xa36664('0x28')],{'through':'team_has_fax_queues','as':'FaxQueues'}),db['Team']['belongsToMany'](db[_0xa36664('0x1af')],{'through':'team_has_sms_queues','as':_0xa36664('0x157')}),db['Team'][_0xa36664('0x10a')](db['OpenchannelQueue'],{'through':_0xa36664('0x1ce'),'as':_0xa36664('0xe6')}),db[_0xa36664('0x1e9')][_0xa36664('0x10a')](db['WhatsappQueue'],{'through':_0xa36664('0x163'),'as':'WhatsappQueues'}),db[_0xa36664('0x89')][_0xa36664('0x3')](db[_0xa36664('0x12')],{'as':_0xa36664('0x199'),'foreignKey':_0xa36664('0x14d')}),db[_0xa36664('0x89')][_0xa36664('0x3')](db[_0xa36664('0x47')],{'as':'HopperFinals','foreignKey':_0xa36664('0x14d')}),db[_0xa36664('0x89')][_0xa36664('0x3')](db['CmHopperHistory'],{'as':_0xa36664('0x1a8'),'foreignKey':'CampaignId'}),db[_0xa36664('0x89')][_0xa36664('0x3')](db[_0xa36664('0x143')],{'as':'HopperBlacks','foreignKey':_0xa36664('0x14d')}),db['Campaign']['belongsTo'](db[_0xa36664('0x1b')],{'as':_0xa36664('0x1b'),'foreignKey':'TrunkId'}),db[_0xa36664('0x89')][_0xa36664('0x7f')](db[_0xa36664('0x1b')],{'as':_0xa36664('0x1e5'),'foreignKey':_0xa36664('0x1ef')}),db[_0xa36664('0x89')][_0xa36664('0x7f')](db['Interval'],{'as':'Interval','foreignKey':'IntervalId'}),db['Campaign'][_0xa36664('0x7f')](db[_0xa36664('0xee')],{'as':_0xa36664('0xee'),'foreignKey':_0xa36664('0x29')}),db[_0xa36664('0x89')][_0xa36664('0x10a')](db['CmList'],{'as':_0xa36664('0x8f'),'through':_0xa36664('0xd8')}),db[_0xa36664('0x89')][_0xa36664('0x10a')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x196'),'through':_0xa36664('0x191')}),db[_0xa36664('0x107')][_0xa36664('0x7f')](db['MailMessage'],{}),db[_0xa36664('0x107')][_0xa36664('0x7f')](db[_0xa36664('0x6a')],{}),db[_0xa36664('0x107')][_0xa36664('0x7f')](db[_0xa36664('0xac')],{'foreignKey':_0xa36664('0x3f'),'as':_0xa36664('0x12f')}),db['MailTransferReport'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x12b'),'as':'FromAgent'}),db[_0xa36664('0x107')]['belongsTo'](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x27'),'as':_0xa36664('0x1c9')}),db['MailTransferReport'][_0xa36664('0x7f')](db['MailQueue'],{'foreignKey':'ToMailQueueId','as':_0xa36664('0x1c8')}),db[_0xa36664('0x107')][_0xa36664('0x7f')](db['MailAccount'],{'foreignKey':_0xa36664('0x166'),'as':_0xa36664('0x1d5')}),db[_0xa36664('0x5d')][_0xa36664('0x7f')](db[_0xa36664('0x1ca')],{}),db['ChatTransferReport'][_0xa36664('0x7f')](db['ChatInteraction'],{}),db[_0xa36664('0x5d')][_0xa36664('0x7f')](db[_0xa36664('0x189')],{'foreignKey':_0xa36664('0x13b'),'as':_0xa36664('0x12f')}),db[_0xa36664('0x5d')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x12b'),'as':_0xa36664('0x1ed')}),db['ChatTransferReport'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x27'),'as':_0xa36664('0x1c9')}),db[_0xa36664('0x5d')][_0xa36664('0x7f')](db[_0xa36664('0x100')],{'foreignKey':_0xa36664('0x25'),'as':_0xa36664('0x1c8')}),db[_0xa36664('0x5d')]['belongsTo'](db[_0xa36664('0x189')],{'foreignKey':_0xa36664('0xda'),'as':_0xa36664('0x1d5')}),db['FaxTransferReport'][_0xa36664('0x7f')](db['FaxMessage'],{}),db[_0xa36664('0x19e')][_0xa36664('0x7f')](db[_0xa36664('0x2e')],{}),db['FaxTransferReport'][_0xa36664('0x7f')](db[_0xa36664('0x3e')],{'foreignKey':_0xa36664('0x22'),'as':_0xa36664('0x12f')}),db['FaxTransferReport']['belongsTo'](db['User'],{'foreignKey':_0xa36664('0x12b'),'as':'FromAgent'}),db['FaxTransferReport'][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x27'),'as':'ToAgent'}),db[_0xa36664('0x19e')][_0xa36664('0x7f')](db['FaxQueue'],{'foreignKey':_0xa36664('0x112'),'as':_0xa36664('0x1c8')}),db[_0xa36664('0x19e')][_0xa36664('0x7f')](db[_0xa36664('0x3e')],{'foreignKey':_0xa36664('0xd7'),'as':_0xa36664('0x1d5')}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db['OpenchannelMessage'],{}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db[_0xa36664('0x141')],{}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db[_0xa36664('0x73')],{'foreignKey':'FromOpenchannelAccountId','as':_0xa36664('0x12f')}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x12b'),'as':_0xa36664('0x1ed')}),db[_0xa36664('0x180')]['belongsTo'](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x27'),'as':_0xa36664('0x1c9')}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db['OpenchannelQueue'],{'foreignKey':_0xa36664('0x65'),'as':'ToQueue'}),db[_0xa36664('0x180')][_0xa36664('0x7f')](db[_0xa36664('0x73')],{'foreignKey':_0xa36664('0x1c1'),'as':'ToAccount'}),db[_0xa36664('0xc3')][_0xa36664('0x7f')](db[_0xa36664('0x1f5')],{}),db[_0xa36664('0xc3')]['belongsTo'](db[_0xa36664('0x150')],{}),db[_0xa36664('0xc3')]['belongsTo'](db[_0xa36664('0x18f')],{'foreignKey':_0xa36664('0x1a3'),'as':'FromAccount'}),db[_0xa36664('0xc3')]['belongsTo'](db['User'],{'foreignKey':_0xa36664('0x12b'),'as':_0xa36664('0x1ed')}),db[_0xa36664('0xc3')]['belongsTo'](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x27'),'as':_0xa36664('0x1c9')}),db[_0xa36664('0xc3')]['belongsTo'](db[_0xa36664('0x1af')],{'foreignKey':_0xa36664('0x118'),'as':_0xa36664('0x1c8')}),db[_0xa36664('0xc3')][_0xa36664('0x7f')](db[_0xa36664('0x18f')],{'foreignKey':'ToSmsAccountId','as':_0xa36664('0x1d5')}),db[_0xa36664('0x16d')][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':_0xa36664('0x84'),'foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x16d')][_0xa36664('0x3')](db[_0xa36664('0xea')],{'as':_0xa36664('0xcf'),'foreignKey':'ListId'}),db['CmList'][_0xa36664('0x3')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x18b'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0x5c')}),db['CmList'][_0xa36664('0x3')](db[_0xa36664('0x47')],{'as':'HopperFinals','foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x16d')][_0xa36664('0x3')](db[_0xa36664('0x1c3')],{'as':_0xa36664('0xa7'),'foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x16d')][_0xa36664('0x3')](db[_0xa36664('0x53')],{'as':'ReportAgentPreview','foreignKey':'ListId'}),db[_0xa36664('0x16d')][_0xa36664('0x10a')](db[_0xa36664('0x13c')],{'as':'Queues','through':'voice_queues_has_cm_lists'}),db[_0xa36664('0x16d')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0xf1')}),db[_0xa36664('0x8')][_0xa36664('0x3')](db[_0xa36664('0x1a6')],{'as':_0xa36664('0x1b4'),'onDelete':'cascade'}),db[_0xa36664('0x8')][_0xa36664('0x10a')](db['User'],{'as':_0xa36664('0x130'),'through':_0xa36664('0x135')}),db[_0xa36664('0x155')][_0xa36664('0x3')](db[_0xa36664('0x1a9')],{'as':'Users','foreignKey':'userProfileId','onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x155')][_0xa36664('0x3')](db[_0xa36664('0x44')],{'as':_0xa36664('0x101'),'foreignKey':_0xa36664('0x14c'),'onDelete':_0xa36664('0xa9')}),db[_0xa36664('0x44')]['hasMany'](db[_0xa36664('0xf8')],{'as':_0xa36664('0x1c5'),'foreignKey':_0xa36664('0x6e'),'onDelete':_0xa36664('0xa9')}),db['WhatsappAccount'][_0xa36664('0x3')](db[_0xa36664('0xd6')],{'as':_0xa36664('0x84'),'foreignKey':'WhatsappAccountId'}),db[_0xa36664('0x1d8')][_0xa36664('0x3')](db['CannedAnswer'],{'as':_0xa36664('0x164'),'foreignKey':_0xa36664('0xb0')}),db[_0xa36664('0x1d8')][_0xa36664('0x3')](db[_0xa36664('0x33')],{'as':_0xa36664('0x1cc'),'foreignKey':'WhatsappAccountId'}),db[_0xa36664('0x1d8')][_0xa36664('0x3')](db[_0xa36664('0x125')],{'as':'Interactions'}),db[_0xa36664('0x1d8')][_0xa36664('0x3')](db[_0xa36664('0x188')],{'as':_0xa36664('0x13e')}),db[_0xa36664('0x1d8')][_0xa36664('0x7f')](db[_0xa36664('0x16d')],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c')}),db[_0xa36664('0x1d8')][_0xa36664('0x7f')](db[_0xa36664('0x18e')],{'as':_0xa36664('0xaf'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0xa36664('0x1d8')][_0xa36664('0x10a')](db['User'],{'as':'Agents','through':'user_has_whatsapp_accounts'}),db['WhatsappApplication']['belongsTo'](db[_0xa36664('0x1a9')],{'onDelete':'restrict'}),db[_0xa36664('0x188')][_0xa36664('0x7f')](db[_0xa36664('0xa3')],{'onDelete':_0xa36664('0x17b')}),db[_0xa36664('0x188')][_0xa36664('0x7f')](db[_0xa36664('0x1d8')],{'onDelete':'restrict'}),db[_0xa36664('0x188')][_0xa36664('0x7f')](db['Interval'],{'onDelete':_0xa36664('0x17b'),'foreignKey':'IntervalId'}),db[_0xa36664('0x188')]['belongsTo'](db['Tag'],{'onDelete':_0xa36664('0x17b'),'foreignKey':_0xa36664('0x9')}),db['WhatsappInteraction'][_0xa36664('0x3')](db[_0xa36664('0x33')],{'as':_0xa36664('0x1cc'),'onDelete':_0xa36664('0xa9'),'foreignKey':_0xa36664('0xbe')}),db[_0xa36664('0x125')][_0xa36664('0x7f')](db[_0xa36664('0x1d8')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0xb0')}),db['WhatsappInteraction']['belongsTo'](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db[_0xa36664('0x125')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':'Owner','foreignKey':'UserId'}),db['WhatsappInteraction']['belongsToMany'](db['Tag'],{'through':_0xa36664('0x64'),'as':_0xa36664('0xd1')}),db[_0xa36664('0x125')][_0xa36664('0x10a')](db[_0xa36664('0x13')],{'through':'whatsapp_interaction_has_tags','as':'ThroughTags'}),db[_0xa36664('0x125')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x1da'),'through':_0xa36664('0x10f'),'foreignKey':'WhatsappInteractionId'}),db[_0xa36664('0x33')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'as':'User'}),db[_0xa36664('0x33')][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'onDelete':_0xa36664('0xa9'),'as':'Contact'}),db[_0xa36664('0x33')][_0xa36664('0x7f')](db[_0xa36664('0x125')],{'onDelete':'cascade','as':_0xa36664('0x32'),'foreignKey':'WhatsappInteractionId'}),db[_0xa36664('0x33')][_0xa36664('0x7f')](db[_0xa36664('0x1d8')],{'as':_0xa36664('0x124'),'foreignKey':_0xa36664('0xb0')}),db[_0xa36664('0x190')]['belongsTo'](db['WhatsappAccount'],{}),db['WhatsappQueueReport'][_0xa36664('0x7f')](db['CmList'],{'as':_0xa36664('0x152'),'foreignKey':_0xa36664('0x5c')}),db['WhatsappQueueReport'][_0xa36664('0x7f')](db[_0xa36664('0xa2')],{'as':_0xa36664('0x16e'),'foreignKey':_0xa36664('0x11c')}),db['WhatsappQueueReport'][_0xa36664('0x7f')](db['WhatsappInteraction'],{}),db[_0xa36664('0x190')]['belongsTo'](db[_0xa36664('0xa3')],{}),db[_0xa36664('0x190')][_0xa36664('0x7f')](db[_0xa36664('0x33')],{}),db[_0xa36664('0x190')][_0xa36664('0x7f')](db['User'],{}),db[_0xa36664('0xf2')][_0xa36664('0x7f')](db[_0xa36664('0x33')],{}),db[_0xa36664('0xf2')][_0xa36664('0x7f')](db['WhatsappInteraction'],{}),db[_0xa36664('0xf2')]['belongsTo'](db[_0xa36664('0x1d8')],{'foreignKey':_0xa36664('0xb2'),'as':_0xa36664('0x12f')}),db[_0xa36664('0xf2')][_0xa36664('0x7f')](db[_0xa36664('0x1d8')],{'foreignKey':_0xa36664('0x4e'),'as':_0xa36664('0x1d5')}),db[_0xa36664('0xf2')]['belongsTo'](db['WhatsappQueue'],{'foreignKey':'ToQueueId','as':_0xa36664('0x1c8')}),db[_0xa36664('0xf2')][_0xa36664('0x7f')](db[_0xa36664('0x1a9')],{'foreignKey':_0xa36664('0x12b'),'as':_0xa36664('0x1ed')}),db[_0xa36664('0xf2')]['belongsTo'](db['User'],{'foreignKey':_0xa36664('0x27'),'as':'ToAgent'}),db[_0xa36664('0xa3')][_0xa36664('0x10a')](db[_0xa36664('0x1a9')],{'as':_0xa36664('0x130'),'through':_0xa36664('0x177'),'foreignKey':_0xa36664('0x131')}),db['WhatsappQueue'][_0xa36664('0x10a')](db[_0xa36664('0x1e9')],{'through':_0xa36664('0x163'),'as':_0xa36664('0x160')}),module[_0xa36664('0x1f4')]={'db':db,'dbH':dbH}; \ No newline at end of file +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 diff --git a/server/rediscache/index.js b/server/rediscache/index.js index 8809006..bbbe565 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1022_0xf239=['redisPort','../config/config.service','../config/environment','ioredis','exports'];(function(_0x321c48,_0xf239d8){const _0xd529b3=function(_0x47a2c7){while(--_0x47a2c7){_0x321c48['push'](_0x321c48['shift']());}};_0xd529b3(++_0xf239d8);}(a1022_0xf239,0x187));const a1022_0xd529=function(_0x321c48,_0xf239d8){_0x321c48=_0x321c48-0x0;let _0xd529b3=a1022_0xf239[_0x321c48];return _0xd529b3;};const _0xb68e2d=a1022_0xd529,Redis=require(_0xb68e2d('0x2')),socketEmitter=require('socket.io-emitter'),config=require(_0xb68e2d('0x1')),cs=require(_0xb68e2d('0x0'))['getConfigService'](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs['redisHost'],'port':cs[_0xb68e2d('0x4')],'retryStrategy':function(_0x47a2c7){if(_0x47a2c7_0x1f9337[_0x4113f7('0x2d')](/^chat_v/,''))['sort'](compareVersions)[_0x4113f7('0xcc')]();_0x54511b=_0x384300[0x0],_0x3f302c=path[_0x4113f7('0x4')](_0x1faa19,'chat_v'+_0x54511b);}}catch(_0x2112cd){console[_0x4113f7('0x129')](_0x4113f7('0x2c'),_0x2112cd);}return{'chatVersion':_0x54511b,'chatPath':_0x3f302c};}async function routes(_0x14de46){const _0x47587d=_0x343377;_0x14de46[_0x47587d('0x36')](ewinston[_0x47587d('0x23')]({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x485c88,_0x1737ec){const _0x289f4d=_0x47587d;return util[_0x289f4d('0xe2')]('%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s',_0x485c88[_0x289f4d('0x132')],_0x485c88[_0x289f4d('0x77')]['x-forwarded-for']?_0x485c88['headers']['x-forwarded-for']:_0x485c88[_0x289f4d('0x21')][_0x289f4d('0x5f')]||_0x485c88['ip'],_0x485c88[_0x289f4d('0x24')],_0x1737ec['statusCode'],_0x1737ec[_0x289f4d('0xbe')],_0x485c88[_0x289f4d('0x106')]?_0x485c88[_0x289f4d('0x106')]['id']:null,_0x485c88['user']?_0x485c88['user']['name']:null,_0x485c88[_0x289f4d('0x106')]?_0x485c88[_0x289f4d('0x106')]['role']:null);}})),_0x14de46[_0x47587d('0x36')](ewinston[_0x47587d('0x23')]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x444a34,_0x365614){const _0x2c22a6=_0x47587d;let _0x19261f=_0x2c22a6('0x95');return _0x444a34[_0x2c22a6('0xb7')]&&_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0xf4')]&&_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0x34')]&&(_0x19261f='%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)'),util[_0x2c22a6('0xe2')](_0x19261f,_0x444a34[_0x2c22a6('0x132')],_0x444a34[_0x2c22a6('0x77')][_0x2c22a6('0x58')]?_0x444a34[_0x2c22a6('0x77')][_0x2c22a6('0x58')]:_0x444a34[_0x2c22a6('0x21')]['remoteAddress']||_0x444a34['ip'],_0x444a34[_0x2c22a6('0x24')],_0x365614[_0x2c22a6('0x94')],_0x365614['responseTime'],_0x444a34[_0x2c22a6('0x106')]?_0x444a34[_0x2c22a6('0x106')]['id']:null,_0x444a34['user']?_0x444a34['user'][_0x2c22a6('0xe0')]:null,_0x444a34[_0x2c22a6('0x106')]?_0x444a34['user'][_0x2c22a6('0xc7')]:null,_0x444a34[_0x2c22a6('0xb7')]&&_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0xf4')]?_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0xf4')]:_0x2c22a6('0xd0'),_0x444a34[_0x2c22a6('0xb7')]&&_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0x34')]?_0x444a34['body'][_0x2c22a6('0x34')]:'',_0x444a34[_0x2c22a6('0xb7')]&&_0x444a34[_0x2c22a6('0xb7')][_0x2c22a6('0xe7')]?_0x444a34[_0x2c22a6('0xb7')]['agent_name']:'');},'ignoreRoute':function(_0x51ee97){const _0x502a33=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x502a33['test'](_0x51ee97['url']);}})),_0x14de46['use'](_0x47587d('0xae'),require(_0x47587d('0x2f'))),_0x14de46[_0x47587d('0x36')]('/api/voice/chanspy',require(_0x47587d('0xc8'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x9e'),require('./api/voiceContext')),_0x14de46['use'](_0x47587d('0xf0'),require(_0x47587d('0x121'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xbc'),require(_0x47587d('0x11e'))),_0x14de46[_0x47587d('0x36')]('/api/voice/queues',require(_0x47587d('0xf3'))),_0x14de46[_0x47587d('0x36')]('/api/voice/recordings',require(_0x47587d('0x4d'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd6'),require(_0x47587d('0x60'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xba'),require(_0x47587d('0x1c'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd4'),require('./api/voiceMailMessage')),_0x14de46[_0x47587d('0x36')]('/api/voice/calls/reports',require(_0x47587d('0x73'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x1'),require(_0x47587d('0x49'))),_0x14de46['use']('/api/voice/agents/reports',require(_0x47587d('0x2b'))),_0x14de46['use'](_0x47587d('0x6a'),require(_0x47587d('0x3'))),_0x14de46['use'](_0x47587d('0x13'),require('./api/memberReport')),_0x14de46['use'](_0x47587d('0x127'),require(_0x47587d('0x126'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x53'),require('./api/voiceTransferReport')),_0x14de46['use'](_0x47587d('0x66'),require(_0x47587d('0xaa'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x9'),require(_0x47587d('0xd7'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x92'),require(_0x47587d('0x5d'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x65'),require('./api/mailSubstatus')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xef'),require(_0x47587d('0x5a'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xc5'),require('./api/mailMessage')),_0x14de46['use'](_0x47587d('0xb1'),require(_0x47587d('0xa9'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x1e'),require(_0x47587d('0xc3'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x138'),require('./api/dashboard')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x19'),require(_0x47587d('0x80'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x139'),require(_0x47587d('0x1d'))),_0x14de46[_0x47587d('0x36')]('/api/fax/applications',require(_0x47587d('0xa'))),_0x14de46[_0x47587d('0x36')]('/api/fax/interactions',require(_0x47587d('0xa1'))),_0x14de46[_0x47587d('0x36')]('/api/fax/messages',require(_0x47587d('0x8f'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x64'),require('./api/faxQueue')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xbb'),require('./api/faxQueueReport')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x6c'),require(_0x47587d('0x28'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x10a'),require(_0x47587d('0x70'))),_0x14de46[_0x47587d('0x36')]('/api/sms/interactions',require(_0x47587d('0x10f'))),_0x14de46['use'](_0x47587d('0x116'),require(_0x47587d('0xca'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xbf'),require(_0x47587d('0xdc'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x2a'),require(_0x47587d('0xaf'))),_0x14de46['use']('/api/openchannel/applications',require(_0x47587d('0x29'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x11c'),require(_0x47587d('0xea'))),_0x14de46['use']('/api/openchannel/messages',require(_0x47587d('0x63'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xb2'),require(_0x47587d('0x15'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x46'),require(_0x47587d('0xf9'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xfc'),require('./api/openchannelQueueReport')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x7e'),require(_0x47587d('0xed'))),_0x14de46[_0x47587d('0x36')]('/api/chat/interactions',require(_0x47587d('0xc'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x93'),require(_0x47587d('0x137'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x0'),require(_0x47587d('0x99'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xb6'),require(_0x47587d('0x7d'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd'),require(_0x47587d('0x114'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x12a'),require('./api/chatProactiveAction')),_0x14de46[_0x47587d('0x36')]('/api/cm/companies',require(_0x47587d('0x112'))),_0x14de46['use']('/api/cm/contacts',require(_0x47587d('0x20'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xa2'),require('./api/cmHopper')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x7'),require(_0x47587d('0x6f'))),_0x14de46['use'](_0x47587d('0x7a'),require('./api/cmHopperFinal')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x8d'),require(_0x47587d('0xfa'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xad'),require('./api/cmCustomField')),_0x14de46[_0x47587d('0x36')]('/api/actions',require('./api/action')),_0x14de46['use'](_0x47587d('0xf5'),require(_0x47587d('0x91'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x32'),require(_0x47587d('0x44'))),_0x14de46['use'](_0x47587d('0x123'),require(_0x47587d('0x12c'))),_0x14de46['use']('/api/conditions',require(_0x47587d('0xcb'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x76'),require(_0x47587d('0x75'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd9'),require('./api/pause')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x109'),require(_0x47587d('0x101'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x38'),require('./api/voiceQueuesLog')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x2'),require(_0x47587d('0x61'))),_0x14de46['use'](_0x47587d('0x111'),require(_0x47587d('0x9a'))),_0x14de46['use'](_0x47587d('0x1a'),require(_0x47587d('0x51'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xa4'),require('./api/template')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xa0'),require('./api/trigger')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x40'),require(_0x47587d('0xd5'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x12b'),require(_0x47587d('0x13a'))),_0x14de46['use']('/api/integrations/reports',require(_0x47587d('0x37'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x3b'),require(_0x47587d('0xfe'))),_0x14de46['use'](_0x47587d('0x119'),require(_0x47587d('0x105'))),_0x14de46['use'](_0x47587d('0x8a'),require(_0x47587d('0x89'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xfb'),require(_0x47587d('0x11'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xab'),require(_0x47587d('0x42'))),_0x14de46[_0x47587d('0x36')]('/api/analytics/tree_reports',require(_0x47587d('0x3e'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x128'),require(_0x47587d('0xe4'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xe3'),require('./api/intSalesforceConfiguration')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x56'),require(_0x47587d('0xe6'))),_0x14de46['use'](_0x47587d('0x27'),require(_0x47587d('0xe8'))),_0x14de46[_0x47587d('0x36')]('/api/integrations/sugarcrm/configurations',require('./api/intSugarcrmConfiguration')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x8b'),require(_0x47587d('0xf'))),_0x14de46['use'](_0x47587d('0xb4'),require(_0x47587d('0x10'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x12d'),require('./api/intDeskConfiguration')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xff'),require(_0x47587d('0xf1'))),_0x14de46[_0x47587d('0x36')]('/api/integrations/zoho/accounts',require(_0x47587d('0x97'))),_0x14de46['use'](_0x47587d('0x8'),require(_0x47587d('0x9b'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x62'),require(_0x47587d('0xcd'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x16'),require('./api/intZendeskAccount')),_0x14de46[_0x47587d('0x36')]('/api/integrations/zendesk/configurations',require(_0x47587d('0xa5'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd2'),require(_0x47587d('0x10e'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xde'),require(_0x47587d('0x47'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd1'),require(_0x47587d('0x69'))),_0x14de46[_0x47587d('0x36')]('/api/integrations/freshdesk/fields',require('./api/intFreshdeskField')),_0x14de46[_0x47587d('0x36')]('/api/integrations/vtiger/accounts',require('./api/intVtigerAccount')),_0x14de46[_0x47587d('0x36')]('/api/integrations/vtiger/configurations',require(_0x47587d('0x4f'))),_0x14de46[_0x47587d('0x36')]('/api/integrations/vtiger/fields',require('./api/intVtigerField')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x26'),require(_0x47587d('0xf6'))),_0x14de46[_0x47587d('0x36')]('/api/integrations/servicenow/configurations',require('./api/intServicenowConfiguration')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xc6'),require(_0x47587d('0x45'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xce'),require(_0x47587d('0xb9'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x12e'),require(_0x47587d('0x122'))),_0x14de46['use']('/api/integrations/dynamics365/fields',require(_0x47587d('0xb0'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x113'),require(_0x47587d('0x52'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x12'),require(_0x47587d('0x86'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x35'),require(_0x47587d('0x130'))),_0x14de46[_0x47587d('0x36')]('/api/networks',require(_0x47587d('0x125'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd8'),require(_0x47587d('0x17'))),_0x14de46[_0x47587d('0x36')]('/api/chat/internal/messages',require(_0x47587d('0x81'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xec'),require(_0x47587d('0x98'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x107'),require(_0x47587d('0xb'))),_0x14de46['use'](_0x47587d('0x7b'),require(_0x47587d('0x74'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x43'),require('./api/smsQueueReport')),_0x14de46['use'](_0x47587d('0x8c'),require('./api/squareReport')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x4c'),require(_0x47587d('0x71'))),_0x14de46['use'](_0x47587d('0x11d'),require('./api/jscriptyProject')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xc4'),require(_0x47587d('0x131'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x41'),require(_0x47587d('0x5c'))),_0x14de46['use'](_0x47587d('0x3a'),require(_0x47587d('0x31'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x9f'),require(_0x47587d('0xc0'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x30'),require(_0x47587d('0x1f'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x108'),require(_0x47587d('0xa6'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x4e'),require(_0x47587d('0x103'))),_0x14de46['use'](_0x47587d('0x8e'),require(_0x47587d('0xdb'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x11b'),require(_0x47587d('0x3c'))),_0x14de46['use'](_0x47587d('0x48'),require(_0x47587d('0x13c'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x57'),require(_0x47587d('0x136'))),_0x14de46[_0x47587d('0x36')]('/api/mail/reports/transfer',require(_0x47587d('0x50'))),_0x14de46['use'](_0x47587d('0x9d'),require(_0x47587d('0xdd'))),_0x14de46['use'](_0x47587d('0x110'),require(_0x47587d('0xc9'))),_0x14de46['use'](_0x47587d('0x55'),require(_0x47587d('0x25'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x118'),require(_0x47587d('0x6d'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x100'),require(_0x47587d('0x3d'))),_0x14de46[_0x47587d('0x36')]('/api/voice/prefixes',require(_0x47587d('0x59'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x11a'),require(_0x47587d('0x84'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xf7'),require(_0x47587d('0xee'))),_0x14de46[_0x47587d('0x36')]('/api/userProfile/resources',require(_0x47587d('0xb3'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x117'),require(_0x47587d('0x7f'))),_0x14de46['use'](_0x47587d('0xc2'),require(_0x47587d('0xc1'))),_0x14de46[_0x47587d('0x36')]('/api/whatsapp/applications',require('./api/whatsappApplication')),_0x14de46[_0x47587d('0x36')](_0x47587d('0xd3'),require(_0x47587d('0xcf'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x14'),require(_0x47587d('0xe'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xeb'),require(_0x47587d('0x72'))),_0x14de46[_0x47587d('0x36')]('/api/whatsapp/reports/transfer',require(_0x47587d('0x88'))),_0x14de46['use'](_0x47587d('0x12f'),require(_0x47587d('0x4a'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xa3'),require(_0x47587d('0x85'))),_0x14de46[_0x47587d('0x36')]('/api/auth/local',require(_0x47587d('0x6b'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x115'),require('./api/authGoogle')),_0x14de46[_0x47587d('0x36')](_0x47587d('0x2e'),require(_0x47587d('0x79'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x10c'),require(_0x47587d('0x124'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0x4b'),require(_0x47587d('0x83'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xdf'),require(_0x47587d('0x6e'))),_0x14de46['use'](_0x47587d('0x82'),require('./api/pm2')),_0x14de46[_0x47587d('0x36')]('/api/webbar',require(_0x47587d('0xe5'))),_0x14de46[_0x47587d('0x36')](_0x47587d('0xf8'),express[_0x47587d('0xe1')](path[_0x47587d('0xe9')](config[_0x47587d('0xf2')],'..',_0x47587d('0x67')))),_0x14de46['use'](_0x47587d('0x104'),express['static'](path[_0x47587d('0xe9')](config[_0x47587d('0xf2')],'..','www'))),_0x14de46['use']('/demo',express[_0x47587d('0xe1')](path['resolve'](config[_0x47587d('0xf2')],'..','demo'))),_0x14de46[_0x47587d('0x36')]('/plugins',express[_0x47587d('0xe1')](path[_0x47587d('0xe9')](config[_0x47587d('0xf2')],_0x47587d('0x134'))));const {chatPath:_0x40fcb0,chatVersion:_0x485cd8}=await getInstalledChatVersion(),_0x36718a=getConfigService();!(_0x36718a[_0x47587d('0x22')]||_0x36718a['isTest'])&&console[_0x47587d('0x7c')](_0x47587d('0x102'),_0x40fcb0,_0x485cd8),_0x40fcb0&&_0x485cd8&&(_0x14de46['set'](_0x47587d('0x120'),_0x485cd8),_0x14de46['use'](_0x47587d('0x3f'),express['static'](_0x40fcb0))),_0x14de46[_0x47587d('0x135')](_0x47587d('0x18'))[_0x47587d('0x6')](errors[0x194]),_0x14de46[_0x47587d('0x6')]('*',function(_0x44824d,_0x253750){const _0x5a9ca6=_0x47587d;_0x253750[_0x5a9ca6('0x13b')](path[_0x5a9ca6('0xe9')](_0x14de46['get'](_0x5a9ca6('0xb8'))+_0x5a9ca6('0x5b')));});}exports[_0x343377('0x133')]=routes; \ No newline at end of file +const a1023_0xa047=['%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s','/api/openchannel/queues','./api/openchannelQueueReport','./api/network','/api/voice/transfers/reports','/api/cm/custom_fields','/api/fax/reports/transfer','method','includes','./api/voiceExtension','/api/cm/companies','/api/voice/chanspy','./api/authGoogle','/demo','/api/schedules','/api/openchannel/accounts','./api/mailSubstatus','./api/voiceQueue','./api/squareOdbc','sort','./api/intFreshdeskConfiguration','/api/integrations/desk/accounts','responseTime','/api/whatsapp/applications','/api/analytics/tree_reports','/api/integrations/sugarcrm/accounts','format','./api/smsQueueReport','./api/intServicenowAccount','/api/license','./api/variable','/api/cm/hopper','/api/mail/queues','./api/openchannelAccount','/api/integrations/freshdesk/fields','/api/analytics/custom_reports','use','/api/openchannel/reports/transfer','/api/integrations/dynamics365/fields','/api/sms/queues','./api/smsApplication','/api/sms/messages','agent_id','./api/faxQueue','chat_v','/api/integrations/freshsales/accounts','./api/intVtigerField','/api/whatsapp/messages','readFile','./api/trunk','/api/mail/reports/queue','/api/integrations/vtiger/configurations','./api/dashboardItem','/api/integrations/vtiger/fields','/api/integrations/sugarcrm/configurations','dist','/api/dispositions','x-forwarded-for','/api/auth/local','/api/chat/interactions','./api/squareMessage','error','getInstalledChatVersion','./api/attachment','isTest','./api/authLocal','./api/analyticMetric','./api/notification','./api/whatsappTransferReport','utf-8','./api/rpc','./api/system','set','/api/settings','/api/plugins','route','./api/pause','demo','other','/api/integrations/servicenow/accounts','./api/intSalesforceField','./api/analyticFieldReport','/api/mail/interactions','/api/integrations/reports','url','replace','./api/whatsappInteraction','./api/template','./api/chatOfflineMessage','./api/intFreshdeskField','/api/templates','./api/whatsappQueue','/api/cm/contacts','static','./api/pm2','/api/sms/reports/queue','./api/automation','/api/integrations/zoho/configurations','./api/intSugarcrmAccount','sendFile','/api/triggers','/api/integrations/salesforce/fields','/api/square/reports','./api/whatsappAccount','www','/api/voice/mails/messages','./api/intZendeskField','./api/chatInteraction','/api/jscripty/projects','statusCode','existsSync','/api/userProfile/resources','headers','/api/integrations/freshdesk/accounts','/api/conditions','/api/networks','/api/integrations/desk/fields','/api/integrations/zendesk/configurations','./api/campaign','root','/api/integrations','./api/jscriptyAnswerReport','./api/userProfileResource','./api/smsMessage','/api/integrations/salesforce/configurations','/api/integrations/servicenow/configurations','./api/faxApplication','/api/whatsapp/queues','/api/fax/messages','/api/userProfiles','./api/intSugarcrmConfiguration','/api/jscripty/questions/reports','/api/cm/hopper_black','/api/chat/proactive_actions','/api/attachments','chatVersion','./api/intFreshsalesAccount','/api/chat/websites','./api/squareProject','./api/jscriptyQuestionReport','./api/cmHopperBlack','/api/mail/substatuses','./api/intDynamics365Field','/api/chat/groups','No\x20chat\x20module\x20found\x20at\x20','./api/intDynamics365Configuration','./api/analyticCustomReport','./api/cmHopperFinal','/api/voice/recordings','version','./api/webbar','./api/intVtigerConfiguration','./api/intDeskConfiguration','./api/mailAccount','map','/api/pauses','./api/openchannelQueue','./api/faxTransferReport','/api/jscripty/answers/reports','/api/voice/mails','./api/intDynamics365Account','./config/environment','name','./api/intDeskAccount','/api/analytics/metrics','/api/integrations/freshdesk/configurations','/api/whatsapp/interactions','./api/action','/api/trunks','/api/fax/queues','./api/intZendeskConfiguration','auth','/api/jscripty/sessions/reports','/api/integrations/dynamics365/configurations','./api/mailServerOut','reverse','./api/analyticDefaultReport','./api/squareRecording','remoteAddress','/api/chat/internal/messages','/plugins','./api/screenRecording','agent_name','files/plugins','./api/cmContact','./api/voiceMusicOnHold','./api/dashboard','./api/userProfileSection','./api/whatsappApplication','./api/chatMessage','/api/analytics/extracted_reports','./api/voiceRecording','body','connection','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)','/api/chat/reports/queue','/api/screen/recordings','./api/chatProactiveAction','appPath','/api/campaigns','/api/integrations/zoho/fields','./api/intSalesforceConfiguration','./api/mailQueue','api','./api/analyticTreeReport','build','/:url(api|auth|components|app|bower_components|assets)/*','/api/voice/extensions','./api/mailQueueReport','environment','/api/dashboards/items','snippets','/api/pm2','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s','/api/system','/api/cm/lists','/api/mail/reports/transfer','./api/intZohoConfiguration','/api/integrations/sugarcrm/fields','/api/voice/dials/reports','/www','/api/chat/queues','express','./api/mailTransferReport','/api/integrations/vtiger/accounts','./api/license','/api/webbar','/api/automations','compare-versions','/api/chat/applications','logger','Unable\x20to\x20solve\x20chat\x20version','./api/voiceTransferReport','/api/mail/applications','./api/mailInteraction','./api/plugin','./api/voiceContext','/api/square/projects','promises','./config/config.service','user','join','/api/whatsapp/reports/queue','/api/mail/accounts','get','./api/disposition','./api/intVtigerAccount','/api/chat/reports/transfer','/api/square/recordings','/api/mail/messages','/api/cdr','./errors','parse','/api/users','./api/chatTransferReport','/api/cloudProviders','./api/trigger','test','./api/voiceQueuesLog','./api/jscriptySessionReport','./api/squareReport','/api/analytics/default_reports','./api/userProfile','./api/chatApplication','./api/openchannelTransferReport','./api/setting','/api/openchannel/reports/queue','./api/voiceMail','motion-chat','/api/square/odbc','/api/voice/queues/reports','/api/rpc','package.json','role','/api/variables','/index.html','/api/members/reports','/api/sms/interactions','./api/integration','/api/mail/out_servers','/api/voice/contexts','./api/voiceChanSpy','./api/intZohoField','/api/auth/google','/api/migrations','./api/schedule','./api/faxQueueReport','./api/mailApplication','./api/intServicenowField','./api/intZohoAccount','/api/fax/interactions','/apidoc','apidoc','express-winston','./api/cannedAnswer','./api/faxInteraction','/api/sounds','./api/chatQueue','/api/square/details/reports','device','./api/chatInternalMessage','./api/mailMessage','./api/intServicenowConfiguration','/api/integrations/freshsales/configurations','./api/chatQueueReport','./api/openchannelApplication','resolve','/api/integrations/zoho/accounts','./api/jira'];(function(_0x35c76f,_0xa04746){const _0x5ac6fc=function(_0x1c8bf7){while(--_0x1c8bf7){_0x35c76f['push'](_0x35c76f['shift']());}};_0x5ac6fc(++_0xa04746);}(a1023_0xa047,0x86));const a1023_0x5ac6=function(_0x35c76f,_0xa04746){_0x35c76f=_0x35c76f-0x0;let _0x5ac6fc=a1023_0xa047[_0x35c76f];return _0x5ac6fc;};const _0x333723=a1023_0x5ac6;'use strict';const path=require('path'),fs=require('fs'),express=require(_0x333723('0x58')),ewinston=require(_0x333723('0x9f')),util=require('util'),errors=require(_0x333723('0x75')),config=require(_0x333723('0x1b')),logger=require('./config/logger')(_0x333723('0x45')),authLogger=require('./config/logger')(_0x333723('0x25')),{getConfigService}=require(_0x333723('0x69')),compareVersions=require(_0x333723('0x5e'));async function getInstalledChatVersion(){const _0x360961=_0x333723,_0x1c8bf7=getConfigService();let _0x6e642a='',_0x46d43f='';try{if(!['production',_0x360961('0x47')][_0x360961('0xb7')](_0x1c8bf7[_0x360961('0x4b')])){const _0x51a6e1=path[_0x360961('0xac')](config[_0x360961('0x126')],'..',_0x360961('0x86')),_0x2a8d13=fs[_0x360961('0x11d')](_0x51a6e1);if(_0x2a8d13)try{const _0x30ad13=await fs[_0x360961('0x68')][_0x360961('0xdf')](path[_0x360961('0x6b')](_0x51a6e1,_0x360961('0x8a')),_0x360961('0xf4')),_0x12306e=JSON[_0x360961('0x76')](_0x30ad13);_0x6e642a=_0x12306e[_0x360961('0xf')],_0x46d43f=path[_0x360961('0x6b')](_0x51a6e1,_0x360961('0xe6'));}catch(_0x4315c8){console[_0x360961('0xec')](_0x360961('0xed'),_0x4315c8);}else console['warn'](_0x360961('0xa')+_0x51a6e1);}else{const _0x5916cd=path[_0x360961('0x6b')](config['root'],'..',_0x360961('0x4d')),_0x412e27=await fs[_0x360961('0x68')]['readdir'](_0x5916cd),_0x4a25ac=_0x412e27[_0x360961('0x14')](_0x481165=>_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 diff --git a/server/rpc/index.js b/server/rpc/index.js index ff9ac7e..efa6801 100644 --- a/server/rpc/index.js +++ b/server/rpc/index.js @@ -1 +1 @@ -const a1024_0x4425=['listen','../api/mailInteraction/mailInteraction.rpc','../api/openchannelMessage/openchannelMessage.rpc','rpc','../api/smsMessage/smsMessage.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/faxQueue/faxQueue.rpc','jayson/promise','localhost','../api/intZohoAccount/intZohoAccount.rpc','../api/trunk/trunk.rpc','../api/cmHopper/cmHopper.rpc','../api/voiceRecording/voiceRecording.rpc','../api/voiceExtension/voiceExtension.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/smsQueueReport/smsQueueReport.rpc','../api/attachment/attachment.rpc','../api/memberReport/memberReport.rpc','../api/chatMessage/chatMessage.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','host','../api/openchannelQueue/openchannelQueue.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../config/triggers','function','../api/intDeskAccount/intDeskAccount.rpc','../config/environment','../api/cmContact/cmContact.rpc','log','default','exports','../api/whatsappInteraction/whatsappInteraction.rpc','../api/trigger/trigger.rpc','../api/mailQueue/mailQueue.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','error','server','../api/mailMessage/mailMessage.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/mailApplication/mailApplication.rpc','../api/smsInteraction/smsInteraction.rpc','../api/whatsappAccount/whatsappAccount.rpc','../api/mailServerIn/mailServerIn.rpc','../api/squareRecording/squareRecording.rpc','../api/variable/variable.rpc','../api/chatQueue/chatQueue.rpc','merge','../api/squareReportDetail/squareReportDetail.rpc','../api/voiceQueue/voiceQueue.rpc','../api/smsAccount/smsAccount.rpc','../api/sound/sound.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/squareMessage/squareMessage.rpc','port','../api/user/user.rpc','../api/pause/pause.rpc','../api/voiceCallReport/voiceCallReport.rpc','http','../api/mailAccount/mailAccount.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/squareReport/squareReport.rpc','../api/squareOdbc/squareOdbc.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/chatInteraction/chatInteraction.rpc','close','../api/faxAccount/faxAccount.rpc','../api/openchannelApplication/openchannelApplication.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/faxApplication/faxApplication.rpc','RPC\x20listening\x20on\x20','../api/intDynamics365Account/intDynamics365Account.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','../api/voiceAgentReport/voiceAgentReport.rpc'];(function(_0x19134b,_0x442501){const _0x5d00d4=function(_0x4b02c6){while(--_0x4b02c6){_0x19134b['push'](_0x19134b['shift']());}};_0x5d00d4(++_0x442501);}(a1024_0x4425,0xfa));const a1024_0x5d00=function(_0x19134b,_0x442501){_0x19134b=_0x19134b-0x0;let _0x5d00d4=a1024_0x4425[_0x19134b];return _0x5d00d4;};const _0x29d32b=a1024_0x5d00;'use strict';const jayson=require(_0x29d32b('0x41')),_=require('lodash'),config=require(_0x29d32b('0xa'));function init(){const _0xb0275d=_0x29d32b;let _0x4b02c6={};return _0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x26'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x47'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x20'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x46'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x28'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2e'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x39'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x12'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x4b'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x44'))),_0x4b02c6=_['merge'](_0x4b02c6,require('../api/voiceTransferReport/voiceTransferReport.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/userVoiceQueueRt/userVoiceQueueRt.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1a'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2a'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x11'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x3b'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x15'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x17'))),_0x4b02c6=_['merge'](_0x4b02c6,require('../api/mailQueueReport/mailQueueReport.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x31'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x35'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/faxInteraction/faxInteraction.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/faxMessage/faxMessage.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x40'))),_0x4b02c6=_['merge'](_0x4b02c6,require('../api/faxQueueReport/faxQueueReport.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x21'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x18'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x3e'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/smsQueue/smsQueue.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x32'))),_0x4b02c6=_['merge'](_0x4b02c6,require('../api/openchannelInteraction/openchannelInteraction.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x3c'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x3'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x5'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2f'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x4c'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1d'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0xb'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x45'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x16'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x23'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/cmHopperHistory/cmHopperHistory.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x6'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/interval/interval.rpc')),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x27'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x22'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/template/template.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x10'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1c'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x38'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x34'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x9'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x43'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2b'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x3f'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x4'))),_0x4b02c6=_['merge'](_0x4b02c6,require(_0xb0275d('0x37'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x0'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x33'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x49'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2c'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1f'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x2d'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/squareProject/squareProject.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x1b'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x24'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/campaign/campaign.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x4a'))),_0x4b02c6=_['merge'](_0x4b02c6,require('../api/plugin/plugin.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0x19'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require(_0xb0275d('0xf'))),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/whatsappMessage/whatsappMessage.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x4b02c6=_[_0xb0275d('0x1e')](_0x4b02c6,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x4b02c6;}class RPC{constructor(_0x3b2c3c){const _0x1c71b9=_0x29d32b;this[_0x1c71b9('0x25')]=config[_0x1c71b9('0x3d')]['port']||config['port']+0x1,this[_0x1c71b9('0x2')]=config['rpc']['ip']||_0x1c71b9('0x42');const _0x55d694=init();this[_0x1c71b9('0x14')]=jayson[_0x1c71b9('0x14')](_0x55d694)[_0x1c71b9('0x29')](),typeof _0x3b2c3c===_0x1c71b9('0x8')&&this['server']['on'](_0x1c71b9('0x13'),_0x3b2c3c);}['listen'](){const {port:_0xe960db,host:_0x164107}=this;return new Promise(_0xa406fe=>{const _0x507dc8=a1024_0x5d00;this['server'][_0x507dc8('0x3a')](_0xe960db,_0x164107,function(){const _0x6ba76c=_0x507dc8;console['log'](_0x6ba76c('0x48'),_0x164107,_0xe960db),require(_0x6ba76c('0x7'))[_0x6ba76c('0xd')](),_0xa406fe(_0x6ba76c('0x36')+_0x164107+':'+_0xe960db);});});}[_0x29d32b('0x30')](){return new Promise(_0x401f92=>{const _0x61e9c8=a1024_0x5d00;this['server'][_0x61e9c8('0x30')](()=>{const _0x395a3d=_0x61e9c8;console[_0x395a3d('0xc')]('Express\x20RPC\x20server\x20closed'),_0x401f92();});});}}module[_0x29d32b('0xe')]={'RPC':RPC}; \ No newline at end of file +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 diff --git a/server/services/agi/channel.js b/server/services/agi/channel.js index b6da433..af2d6d4 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1025_0x5245=['STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','timeout','substring','SET\x20PRIORITY\x20%s','exec','wav','toString','setEncoding','line','AGI','BEEP','search','function','continueAt','match','headers','E_AGI_SOCKET_CLOSE','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','sendRequest','setExtension','SAY\x20DIGITS\x20%s\x20%s','substr','result=','indexOf','sync','join','NO\x20MESSAGE','length','noop','hangup','command','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','destroy','no\x20code','getVariable','call','label','wait','E_AGI_SOCKET_TIMEOUT','streamFile','write','beep','code','startsWith','setTimeout','close','sayDigits','answer','replace','sayNumber','ready','utf8','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','isNumber','extension','error','util','sayPhonetic','getData','SET\x20EXTENSION\x20%s','prototype','format','EXEC\x20%s\x20%s','split','SET\x20CONTEXT\x20%s','inherits','E_AGI_SOCKET_ERROR','setPriority','emit','setContext'];(function(_0x3df589,_0x524515){const _0x1cf306=function(_0x32e4c0){while(--_0x32e4c0){_0x3df589['push'](_0x3df589['shift']());}};_0x1cf306(++_0x524515);}(a1025_0x5245,0xe0));const a1025_0x1cf3=function(_0x3df589,_0x524515){_0x3df589=_0x3df589-0x0;let _0x1cf306=a1025_0x5245[_0x3df589];return _0x1cf306;};const _0x7af4d3=a1025_0x1cf3;'use strict';const util=require(_0x7af4d3('0x2e')),_=require('lodash'),EventEmitter=require('events')['EventEmitter'],AGIReply=require('./reply'),AGIError=require('./error');function AGIChannel(_0x32e4c0){const _0x2b7fe6=_0x7af4d3,_0x157ad8=this,_0x4239b4=new AGIReply();let _0x4aead0=![],_0x5b76b3={};EventEmitter[_0x2b7fe6('0x18')](_0x157ad8),_0x32e4c0[_0x2b7fe6('0x43')](_0x2b7fe6('0x28')),_0x32e4c0[_0x2b7fe6('0x21')](0x8*0x3c*0x3c*0x3e8),_0x4239b4[_0x2b7fe6('0x43')](_0x2b7fe6('0x28')),_0x4239b4['on'](_0x2b7fe6('0x4'),function(_0x45c2d0){const _0x3a00c4=_0x2b7fe6;for(const _0x735bdf in _0x45c2d0){_0x157ad8[_0x735bdf]=_0x45c2d0[_0x735bdf];}_0x157ad8[_0x3a00c4('0x3a')](_0x3a00c4('0x27'));}),_0x4239b4['on'](_0x2b7fe6('0x44'),function(_0x1e94ec){const _0xef7f87=_0x2b7fe6;if(_0x1e94ec['toLowerCase']()==_0xef7f87('0x12')){_0x157ad8[_0xef7f87('0x3a')](_0xef7f87('0x12'));return;}_0x1e94ec[_0xef7f87('0x3e')](0x0,0xb)=='520-Invalid'&&(_0x4aead0=!![]);_0x4aead0?(_0x5b76b3['rx']+=_0x1e94ec+'\x0a',_0x1e94ec[_0xef7f87('0x0')]('520\x20End\x20of\x20proper')!=-0x1&&(_0x4aead0=![])):_0x5b76b3['rx']=_0x1e94ec;if(_0x4aead0)return;if(typeof _0x5b76b3['cb']==_0xef7f87('0x1')){let _0x1a1402=_0x5b76b3['rx'][_0xef7f87('0x3e')](0x0,0x3),_0x237460=null,_0xfceac9=null;_0x1a1402=parseInt(_0x1a1402);if(isNaN(_0x1a1402)){_0x5b76b3['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xef7f87('0x16')});return;}if(_0x1a1402!=0xc8){_0x5b76b3['cb'](null,{'code':_0x1a1402,'result':-0x1,'extra':'KO'});return;}_0x237460=_0x5b76b3['rx'][_0xef7f87('0x3e')](0x4)[_0xef7f87('0x25')](_0xef7f87('0xb'),'');_0x237460[_0xef7f87('0xc')]('\x20')!=-0x1&&(_0x237460=_0x237460[_0xef7f87('0xa')](0x0,_0x237460[_0xef7f87('0xc')]('\x20')));_[_0xef7f87('0x20')](_0x237460,'-1')&&(_0x237460=parseInt(_0x237460));_0xfceac9=_0x5b76b3['rx'][_0xef7f87('0x35')]('\x20');if(_0xfceac9['length']==0x3)_0xfceac9=_0xfceac9[0x2][_0xef7f87('0x3e')](0x1,_0xfceac9[0x2][_0xef7f87('0x10')]-0x1);else{if(_0xfceac9['length']>0x3){const _0x36e039=/\((.+)\)/,_0x18edbc=_0x5b76b3['rx'][_0xef7f87('0x3')](_0x36e039);_0x18edbc?_0xfceac9=_0x18edbc[0x1]:_0xfceac9=null;}else _0xfceac9=null;}_0x5b76b3['cb'](null,{'code':_0x1a1402,'result':_0x237460,'extra':_0xfceac9});}}),_0x32e4c0['on'](_0x2b7fe6('0x2d'),function(_0x199adc){const _0x1859e6=_0x2b7fe6;_0x157ad8['emit'](_0x1859e6('0x2d'),new AGIError(_0x1859e6('0x38'),_0x199adc[_0x1859e6('0x1f')]));}),_0x32e4c0['on']('close',function(){const _0x4ab1c0=_0x2b7fe6;_0x157ad8[_0x4ab1c0('0x3a')](_0x4ab1c0('0x22'),new AGIError(_0x4ab1c0('0x5')));}),_0x32e4c0['on'](_0x2b7fe6('0x3d'),function(){const _0x5cf561=_0x2b7fe6;_0x157ad8[_0x5cf561('0x3a')](_0x5cf561('0x3d'),new AGIError(_0x5cf561('0x1b'))),_0x32e4c0[_0x5cf561('0x15')]();}),_0x32e4c0['pipe'](_0x4239b4),(this[_0x2b7fe6('0x13')]=function(_0xe9ebe9,_0x2af8af){const _0x3f38c4=_0x2b7fe6;_0xe9ebe9=_0xe9ebe9||'',_0x2af8af=typeof _0x2af8af==_0x3f38c4('0x1')?_0x2af8af:new Function(),_0x5b76b3={'tx':_0xe9ebe9,'rx':'','cb':_0x2af8af},_0x32e4c0[_0x3f38c4('0x1d')](_0xe9ebe9+'\x0a');},this['close']=function(){_0x32e4c0['destroy']();});}util[_0x7af4d3('0x37')](AGIChannel,EventEmitter),AGIChannel[_0x7af4d3('0x32')]['sendRequest']=function(_0x450a82){const _0x384e74=_0x7af4d3;return this['command'][_0x384e74('0xd')](this,_0x450a82);},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x24')]=function(){const _0x231bfe=_0x7af4d3;return this[_0x231bfe('0x7')]('ANSWER');},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x30')]=function(_0x1fe76d,_0x3dbd3f,_0x66381d){const _0x4f9afe=_0x7af4d3;return _0x1fe76d=_0x1fe76d===undefined?_0x4f9afe('0x1e'):_0x1fe76d,_0x3dbd3f=_0x3dbd3f===undefined?'5':_0x3dbd3f,_0x66381d=_0x66381d===undefined?'1':_0x66381d,this[_0x4f9afe('0x7')](util['format'](_0x4f9afe('0x6'),_0x1fe76d,_0x3dbd3f*0x3e8,_0x66381d));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x11')]=function(_0x133d05){const _0x2ef6b5=_0x7af4d3;return _0x133d05=_0x133d05||_0x2ef6b5('0xf'),this[_0x2ef6b5('0x7')](util[_0x2ef6b5('0x33')]('VERBOSE\x20\x22%s\x22',_0x133d05));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x40')]=function(_0x5eb03c,_0x4de373){const _0x5ab740=_0x7af4d3;if(_['isArray'](_0x4de373))return this[_0x5ab740('0x7')](util[_0x5ab740('0x33')](_0x5ab740('0x34'),_0x5eb03c,_0x4de373[_0x5ab740('0xe')](',')));return this['sendRequest'](util[_0x5ab740('0x33')](_0x5ab740('0x34'),_0x5eb03c,_0x4de373));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x3b')]=function(_0x742933){const _0x95aec2=_0x7af4d3;return this['sendRequest'](util[_0x95aec2('0x33')](_0x95aec2('0x36'),_0x742933));},AGIChannel['prototype'][_0x7af4d3('0x8')]=function(_0x47bef9){const _0x2ec18b=_0x7af4d3;return this['sendRequest'](util[_0x2ec18b('0x33')](_0x2ec18b('0x31'),_0x47bef9));},AGIChannel['prototype']['setPriority']=function(_0x2203a4){const _0x4be421=_0x7af4d3;return this[_0x4be421('0x7')](util[_0x4be421('0x33')](_0x4be421('0x3f'),_0x2203a4));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x12')]=function(){const _0x5e1d91=_0x7af4d3;return this[_0x5e1d91('0x7')]('HANGUP');},AGIChannel[_0x7af4d3('0x32')]['setVariable']=function(_0x137bb0,_0x3e8718){const _0x4a45d5=_0x7af4d3,_0x413b12=_['isBoolean'](_0x3e8718)||_[_0x4a45d5('0x2b')](_0x3e8718)?_0x3e8718[_0x4a45d5('0x42')]():_0x3e8718;return this[_0x4a45d5('0x7')](util[_0x4a45d5('0x33')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x137bb0,_0x413b12?_0x413b12[_0x4a45d5('0x42')]()[_0x4a45d5('0x25')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel['prototype'][_0x7af4d3('0x26')]=function(_0x2f6bba,_0x1c5e93){const _0x3e9cd0=_0x7af4d3;return this[_0x3e9cd0('0x7')](util[_0x3e9cd0('0x33')]('SAY\x20NUMBER\x20%s\x20%s',_0x2f6bba,_0x1c5e93));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x23')]=function(_0x2bec13,_0x3106c4){const _0x49b1bd=_0x7af4d3;return this[_0x49b1bd('0x7')](util[_0x49b1bd('0x33')](_0x49b1bd('0x9'),_0x2bec13,_0x3106c4));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x2f')]=function(_0x41a128,_0x1acc42){const _0x18bf7a=_0x7af4d3;return this[_0x18bf7a('0x7')](util['format']('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x41a128,_0x1acc42));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x2')]=function(_0x59502a,_0x375c86,_0x22d9c2){const _0x485d8f=_0x7af4d3;return _0x375c86=_0x375c86||this[_0x485d8f('0x2c')],_0x22d9c2=_0x22d9c2||0x1,this[_0x485d8f('0x3b')](_0x59502a),this[_0x485d8f('0x8')](_0x375c86),this[_0x485d8f('0x39')](_0x22d9c2),this[_0x485d8f('0x11')](util[_0x485d8f('0x33')]('GOTO\x20%s\x20%s\x20%s',_0x59502a,_0x375c86,_0x22d9c2));},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x17')]=function(_0x5eaf0c){const _0x94e94c=_0x7af4d3;return this[_0x94e94c('0x7')](util[_0x94e94c('0x33')]('GET\x20VARIABLE\x20\x22%s\x22',_0x5eaf0c));},AGIChannel['prototype']['recordFile']=function(_0x175bb0,_0x2310c6,_0x50cb54,_0x2d72a9,_0x189018,_0x122231){const _0xf3b96f=_0x7af4d3;return _0x2310c6=_0x2310c6||_0xf3b96f('0x41'),_0x50cb54=_0x50cb54||'',_0x2d72a9=_0x2d72a9===undefined?-0x1:_0x2d72a9==='-1'?-0x1:_0x2d72a9*0x3e8,_0x189018=_0x189018===undefined?'':'s='+_0x189018,_0x122231=_0x122231?_0xf3b96f('0x46'):'',this['sendRequest'](util[_0xf3b96f('0x33')](_0xf3b96f('0x14'),_0x175bb0,_0x2310c6,_0x50cb54,_0x2d72a9,_0x122231,_0x189018));},AGIChannel['prototype'][_0x7af4d3('0x1c')]=function(_0x10a4ae,_0x5568cf){const _0x33b95f=_0x7af4d3;return _0x5568cf=_0x5568cf||'',this[_0x33b95f('0x7')](util['format'](_0x33b95f('0x3c'),_0x10a4ae,_0x5568cf));},AGIChannel['prototype']['agi']=function(_0x4d4a89){const _0x2b933a=_0x7af4d3;return this[_0x2b933a('0x40')](_0x2b933a('0x45'),_0x4d4a89);},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x1a')]=function(_0x1511aa){const _0x43bc0f=_0x7af4d3;return this[_0x43bc0f('0x40')](_0x43bc0f('0x29'),_0x1511aa);},AGIChannel[_0x7af4d3('0x32')][_0x7af4d3('0x2d')]=function(_0x3ccb39,_0x564651){const _0x54d0a4=_0x7af4d3;return this[_0x54d0a4('0x11')](util[_0x54d0a4('0x33')](_0x54d0a4('0x2a'),_0x3ccb39['id'],_0x3ccb39[_0x54d0a4('0x19')],_0x564651)),{'code':0x1f4,'result':'-1','extra':''};},module['exports']=AGIChannel; \ No newline at end of file +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 diff --git a/server/services/agi/error.js b/server/services/agi/error.js index d40ef9a..83b700e 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1026_0x5cdd=['[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','util','message','Empty\x20command.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','apply','format','Server\x20closed.','push','Socket\x20closed.','Socket\x20error.\x20Code:\x20%s.','Socket\x20timeout.','Server\x20error.\x20Code:\x20%s.','Missing\x20\x27ivr.entry\x27\x20menu.','Missing\x20\x27ivr.agi_network_script\x27.','name'];(function(_0x3cea3d,_0x5cddfe){const _0x39f2e9=function(_0x2400d7){while(--_0x2400d7){_0x3cea3d['push'](_0x3cea3d['shift']());}};_0x39f2e9(++_0x5cddfe);}(a1026_0x5cdd,0x1ce));const a1026_0x39f2=function(_0x3cea3d,_0x5cddfe){_0x3cea3d=_0x3cea3d-0x0;let _0x39f2e9=a1026_0x5cdd[_0x3cea3d];return _0x39f2e9;};const _0x3cdf70=a1026_0x39f2;'use strict';const util=require(_0x3cdf70('0x3')),error={'E_AGI_UNDEFINED':'Undefined\x20error.','E_AGI_ARGUMENT_PORT':_0x3cdf70('0x6'),'E_AGI_SERVER_ERROR':_0x3cdf70('0xe'),'E_AGI_SERVER_CLOSE':_0x3cdf70('0x9'),'E_AGI_SERVER_MAXCONNECTION':_0x3cdf70('0x2'),'E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':_0x3cdf70('0xc'),'E_AGI_SOCKET_CLOSE':_0x3cdf70('0xb'),'E_AGI_SOCKET_TIMEOUT':_0x3cdf70('0xd'),'E_AGI_COMMAND_EMPTY':_0x3cdf70('0x5'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x3cdf70('0x0'),'E_AGI_IVR_ENTRY':_0x3cdf70('0xf')};function AGIError(_0x2400d7){const _0x268bbc=_0x3cdf70;_0x2400d7=_0x2400d7||null;const _0x4edbac=_0x4edbac||[];let _0x43ef15=0x1,_0x2ca138='';!error[_0x2400d7]&&(_0x2400d7='E_AGI_UNDEFINED');_0x4edbac[_0x268bbc('0xa')](error[_0x2400d7]);while(arguments[_0x43ef15]){_0x4edbac[_0x268bbc('0xa')](arguments[_0x43ef15]),_0x43ef15++;}_0x2ca138=util[_0x268bbc('0x8')][_0x268bbc('0x7')](util,_0x4edbac),this[_0x268bbc('0x4')]=_0x2ca138,this[_0x268bbc('0x1')]=_0x2400d7;}module['exports']=AGIError; \ No newline at end of file +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 diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index 495fa38..fbfcb1d 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1027_0x1772=['addEdge','condition','max\x20retry\x20reach','size','menu','edges','exports','stop\x20traverse','vertices','info','vswitch','addVertex','prototype','numberOfEdges','length','no\x20vertex\x20found','../../../config/logger','getdigits','target','relations','invalid','traverseBFS','agicommand','default\x20on\x20switch\x20not\x20found','push','getVertex','agi'];(function(_0x35241f,_0x17727c){const _0x230026=function(_0x34a4f1){while(--_0x34a4f1){_0x35241f['push'](_0x35241f['shift']());}};_0x230026(++_0x17727c);}(a1027_0x1772,0x1ab));const a1027_0x2300=function(_0x35241f,_0x17727c){_0x35241f=_0x35241f-0x0;let _0x230026=a1027_0x1772[_0x35241f];return _0x230026;};const _0x574e8f=a1027_0x2300;'use strict';const _=require('lodash'),logger=require(_0x574e8f('0x15'))(_0x574e8f('0x4')),verticesWithRetry=[_0x574e8f('0x9'),_0x574e8f('0x16'),'getsecretdigits'],Graph=function(){const _0x17c134=_0x574e8f;this[_0x17c134('0xd')]={},this['edges']={},this['numberOfEdges']=0x0;};Graph[_0x574e8f('0x11')][_0x574e8f('0x10')]=function(_0x34a4f1){const _0x123a7a=_0x574e8f;this[_0x123a7a('0xd')][_0x34a4f1['id']]=_0x34a4f1,this[_0x123a7a('0xa')][_0x34a4f1['id']]=[];},Graph['prototype'][_0x574e8f('0x5')]=function(_0x2109ca,_0x328b2f,_0x455b2e){const _0x3ee797=_0x574e8f;this['edges'][_0x2109ca][_0x3ee797('0x2')]({'target':_0x328b2f,'condition':_0x455b2e}),this[_0x3ee797('0x12')]+=0x1;},Graph[_0x574e8f('0x11')][_0x574e8f('0x8')]=function(){const _0x2ae55a=_0x574e8f;return _[_0x2ae55a('0x8')](this[_0x2ae55a('0xd')]);},Graph['prototype'][_0x574e8f('0x18')]=function(){const _0x36aa64=_0x574e8f;return this[_0x36aa64('0x12')];},Graph[_0x574e8f('0x11')][_0x574e8f('0x3')]=function(_0x4730e9){return this['vertices'][_0x4730e9];},Graph[_0x574e8f('0x11')][_0x574e8f('0x1a')]=function(_0x3e0648,_0x2a90ac){const _0x5d8710=_0x574e8f;if(!this[_0x5d8710('0xd')][_0x3e0648])return logger[_0x5d8710('0xe')](_0x5d8710('0x14'));const _0xb5b0bf=_0x2a90ac(this[_0x5d8710('0xd')][_0x3e0648]);if(!_0xb5b0bf)return logger[_0x5d8710('0xe')](_0x5d8710('0xc'));if(this['edges'][_0x3e0648][_0x5d8710('0x13')]===0x0)return logger['info']('no\x20edge/s\x20available');const _0x2b927a=![],_0x13194c=[];for(let _0x2a59f3=0x0,_0x32b981=[],_0x50fa6c=![];_0x2a59f3\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','stringify','name','priority','substring','dnid','catch','addVertex','length','lodash','util','../../config/license/util','[ERROR]\x20%s','omit','arg_1','toString','resolve','variables','production','info','error','root','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','indexOf','../../globals','traverseBFS','continueAt','callerid','calleridname','moment','clear','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','extension','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','code','hangup','agicommand','isArray','finally','source','start','voice','port','toJson','timeout','isUndefined','context','then','maxRetry','joinAt','agi','evtHangup','defaults','[LICENSE]\x20VOICE\x20IS\x20DISABLED','format','stack','agicommand\x20not\x20found','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','xml2json','value','inspect','[LICENSE]\x20CHANNELS:\x20UNLIMITED'];(function(_0x3b7bce,_0x1613a2){const _0x29e986=function(_0x26deb6){while(--_0x26deb6){_0x3b7bce['push'](_0x3b7bce['shift']());}};_0x29e986(++_0x1613a2);}(a1028_0x1613,0x13d));const a1028_0x29e9=function(_0x3b7bce,_0x1613a2){_0x3b7bce=_0x3b7bce-0x0;let _0x29e986=a1028_0x1613[_0x3b7bce];return _0x29e986;};const _0x382ea9=a1028_0x29e9;'use strict';require(_0x382ea9('0x46'));const parser=require(_0x382ea9('0x13')),_=require(_0x382ea9('0x37')),util=require(_0x382ea9('0x38')),moment=require(_0x382ea9('0x4b')),config=require(_0x382ea9('0x27')),logger=require('../../config/logger')('agi'),utilLicense=require(_0x382ea9('0x39')),rpc=require('./rpc'),mailRpc=require('./mailRpc'),Graph=require('./graph'),Vertices=require('./vertices'),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[_0x382ea9('0xb')]=_[_0x382ea9('0xd')](config[_0x382ea9('0xb')],{'ip':'127.0.0.1','port':0x11dd});async function connectionHandler(_0x26deb6){const _0x1897f4=_0x382ea9;try{await setChannelVariables(_0x26deb6),await agiHandler(_0x26deb6);}catch(_0x5d9661){logger[_0x1897f4('0x42')](_0x5d9661['stack']);}}function listeningHandler(){const _0x591b0a=_0x382ea9;console[_0x591b0a('0x17')]('Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!',config[_0x591b0a('0xb')][_0x591b0a('0x3')]),logger[_0x591b0a('0x41')](util[_0x591b0a('0xf')]('[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d',config[_0x591b0a('0xb')]['ip'],config[_0x591b0a('0xb')][_0x591b0a('0x3')]));}function errorHandler(_0x252f2d){const _0x3a9a59=_0x382ea9;_0x252f2d&&_0x252f2d[_0x3a9a59('0x30')]&&_0x252f2d[_0x3a9a59('0x25')]?logger['error'](util[_0x3a9a59('0xf')]('[%s]\x20%s',_0x252f2d[_0x3a9a59('0x30')],_0x252f2d[_0x3a9a59('0x25')])):logger[_0x3a9a59('0x42')](util['format'](_0x3a9a59('0x3a'),_0x252f2d[_0x3a9a59('0x10')]));}function closeHandler(){const _0x593795=_0x382ea9;logger[_0x593795('0x41')](util[_0x593795('0xf')](_0x593795('0x12'),this[_0x593795('0x3c')],this[_0x593795('0x4a')],this['callerid'],this[_0x593795('0x33')],this[_0x593795('0x1d')]));try{createSquareReport(this);}catch(_0x3129cf){logger[_0x593795('0x42')](_0x3129cf[_0x593795('0x10')]);}}function timeoutHandler(){const _0x2d8f1a=_0x382ea9;logger['info'](util[_0x2d8f1a('0xf')](_0x2d8f1a('0x4d'),this[_0x2d8f1a('0x3c')],this[_0x2d8f1a('0x4a')],this[_0x2d8f1a('0x49')],this['dnid'],this[_0x2d8f1a('0x1d')]));}function hangupHandler(){const _0x3cbb32=_0x382ea9;logger[_0x3cbb32('0x41')](util[_0x3cbb32('0xf')](_0x3cbb32('0x44'),this[_0x3cbb32('0x3c')],this[_0x3cbb32('0x4a')],this[_0x3cbb32('0x49')],this['dnid'],this['uniqueid'])),this['evtHangup']=!![];}function getRoot(_0x3b5a6f){const _0x5c3f2d=_0x382ea9;return parser[_0x5c3f2d('0x4')](_0x3b5a6f,{'object':!![]})['mxGraphModel'][_0x5c3f2d('0x43')];}function addVertex(_0xb60440,_0x170c1b,_0x589593){const _0x40bfc8=_0x382ea9;_0x170c1b[_0x40bfc8('0x52')]=_0x589593,typeof _0x170c1b[_0x40bfc8('0x2b')]!==_0x40bfc8('0x28')&&(_0x170c1b[_0x40bfc8('0x9')]=parseInt(_0x170c1b[_0x40bfc8('0x2b')],0xa)),_0xb60440[_0x40bfc8('0x35')](_[_0x40bfc8('0x3b')](_0x170c1b,'mxCell'));}function initGraph(_0x4e0e79,_0x1df012){const _0x4c1b08=_0x382ea9,_0x563163=new Graph();for(const _0x3bd61e in _0x4e0e79){if(typeof _0x4e0e79[_0x3bd61e]!==_0x4c1b08('0x28')){if(_[_0x4c1b08('0x53')](_0x4e0e79[_0x3bd61e]))for(let _0x172342=0x0;_0x172342<_0x4e0e79[_0x3bd61e][_0x4c1b08('0x36')];_0x172342+=0x1){addVertex(_0x563163,_0x4e0e79[_0x3bd61e][_0x172342],_0x3bd61e);}else addVertex(_0x563163,_0x4e0e79[_0x3bd61e],_0x3bd61e);}}for(let _0x25e0a8=0x0;_0x25e0a8<_0x1df012[_0x4c1b08('0x36')];_0x25e0a8+=0x1){_0x1df012[_0x25e0a8][_0x4c1b08('0x0')]&&_0x1df012[_0x25e0a8][_0x4c1b08('0x23')]&&_0x563163[_0x4c1b08('0x2d')](_0x1df012[_0x25e0a8][_0x4c1b08('0x0')],_0x1df012[_0x25e0a8][_0x4c1b08('0x23')],_0x1df012[_0x25e0a8][_0x4c1b08('0x14')]);}return _0x563163;}function getSquareProject(_0x63e7de,_0x30fb28){const _0x5d64f4=_0x382ea9;rpc[_0x5d64f4('0x1b')](_0x63e7de)[_0x5d64f4('0x8')](function(_0x745644){_0x30fb28(null,_0x745644);})[_0x5d64f4('0x34')](function(_0x3582d0){_0x30fb28(null,_0x3582d0);});}function createSquareReport(_0x1f5dba,_0x5ee227){const _0x36149f=_0x382ea9;rpc['createSquareReport'](_0x1f5dba)[_0x36149f('0x8')](function(_0x54019){_0x5ee227&&_0x5ee227(null,_0x54019);})[_0x36149f('0x34')](function(_0x46fc18){_0x5ee227&&_0x5ee227(null,_0x46fc18);});}async function setChannelVariables(_0x2ac739){const _0xf045ca=_0x382ea9;for(const _0x57b813 in _0x2ac739){typeof _0x2ac739[_0x57b813]!==_0xf045ca('0x28')&&(_0x57b813[_0xf045ca('0x45')]('agi_')===0x0&&(_0x2ac739[_0x57b813[_0xf045ca('0x32')](0x4)]=_0x2ac739[_0x57b813],delete _0x2ac739[_0x57b813]));}return Promise[_0xf045ca('0x3e')](_0x2ac739);}function getLogFromObject(_0x5aa1a3){const _0x399975=_0x382ea9;return util[_0x399975('0x15')](_0x5aa1a3,{'showHidden':![],'depth':null});}async function agiHandler(_0x19a2aa){const _0x150280=_0x382ea9;let _0x2b0865,_0x2506d8,_0x288db8,_0x469067;logger[_0x150280('0x24')](_0x150280('0x3f'),JSON[_0x150280('0x2f')](_0x19a2aa,null,0x2)),logger[_0x150280('0x41')](util[_0x150280('0xf')](_0x150280('0x4f'),_0x19a2aa[_0x150280('0x3c')],_0x19a2aa[_0x150280('0x4a')],_0x19a2aa[_0x150280('0x49')],_0x19a2aa[_0x150280('0x33')],_0x19a2aa[_0x150280('0x1d')])),_0x19a2aa['on']('error',errorHandler),_0x19a2aa['on'](_0x150280('0x1f'),closeHandler),_0x19a2aa['on'](_0x150280('0x5'),timeoutHandler),_0x19a2aa[_0x150280('0xc')]=![],_0x19a2aa['on'](_0x150280('0x51'),hangupHandler);const _0x5358ec=getSquareProject[_0x150280('0x2a')](null,_0x19a2aa[_0x150280('0x3c')]);return _0x5358ec?_0x5358ec[_0x150280('0x40')]?(_0x2b0865=getRoot(_0x5358ec[_0x150280('0x40')]),_0x2b0865&&_0x2b0865[_0x150280('0x1')]&&(logger[_0x150280('0x24')](_0x150280('0x43'),JSON[_0x150280('0x2f')](_0x2b0865,null,0x2)),_0x19a2aa[_0x150280('0xa')]=moment()[_0x150280('0xf')](_0x150280('0x21')),_0x2506d8=initGraph(_[_0x150280('0x3b')](_0x2b0865,_0x150280('0x1a')),_0x2b0865[_0x150280('0x1a')]),_0x288db8=new Vertices(_0x19a2aa,rpc,mailRpc),logger[_0x150280('0x41')](util[_0x150280('0xf')](_0x150280('0x2e'),_0x19a2aa[_0x150280('0x3c')],_0x19a2aa[_0x150280('0x4a')],_0x19a2aa[_0x150280('0x49')],_0x19a2aa[_0x150280('0x33')],_0x19a2aa[_0x150280('0x1d')])),_0x2506d8[_0x150280('0x47')](_0x2b0865['start']['id'],function(_0x2a6f8d){const _0x4cf511=_0x150280;try{_0x2a6f8d=_0x288db8[_0x4cf511('0x4c')](_0x2a6f8d),logger[_0x4cf511('0x24')](_0x4cf511('0x2c'),JSON[_0x4cf511('0x2f')](_0x2a6f8d,null,0x2));if(_0x2a6f8d[_0x4cf511('0x52')]==='gotoc')return logger['info']('gotoc\x20block\x20stop\x20traverse\x20BFS'),_0x19a2aa[_0x4cf511('0x7')]=_0x2a6f8d[_0x4cf511('0x7')]||_0x19a2aa['context'],_0x19a2aa[_0x4cf511('0x4e')]=_0x2a6f8d['extension'],_0x19a2aa[_0x4cf511('0x31')]=_0x2a6f8d['priority']?_0x2a6f8d[_0x4cf511('0x31')]-0x1:0x1,null;else return _0x2a6f8d&&_0x288db8[_0x2a6f8d[_0x4cf511('0x52')]]?(_0x469067=_0x288db8[_0x2a6f8d[_0x4cf511('0x52')]](_0x2a6f8d),logger[_0x4cf511('0x41')](_0x4cf511('0x22'),JSON[_0x4cf511('0x2f')](_0x469067,null,0x2)),_0x469067&&_0x469067[_0x4cf511('0x50')]===AGI_CODE_SUCCESS&&_0x469067[_0x4cf511('0x18')]!==AGI_RESULT_ERROR&&!_0x19a2aa['evtHangup']?(logger[_0x4cf511('0x24')](_0x4cf511('0x22'),getLogFromObject(_0x469067)),_['isUndefined'](_0x469067[_0x4cf511('0x18')])?null:_0x469067['result'][_0x4cf511('0x3d')]()):(logger[_0x4cf511('0x42')](_0x4cf511('0x22'),getLogFromObject(_0x469067)),null)):(logger[_0x4cf511('0x42')]('agicommand\x20not\x20found'),null);}catch(_0x59bcb4){return logger['error'](_0x59bcb4[_0x4cf511('0x10')]),null;}}),_0x2b0865[_0x150280('0x54')]&&(logger[_0x150280('0x41')](util['format']('[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x19a2aa[_0x150280('0x3c')],_0x19a2aa[_0x150280('0x4a')],_0x19a2aa[_0x150280('0x49')],_0x19a2aa[_0x150280('0x33')],_0x19a2aa['uniqueid'])),_0x2506d8[_0x150280('0x47')](_0x2b0865['finally']['id'],function(_0x3310e8){const _0x708166=_0x150280;try{return _0x3310e8=_0x288db8[_0x708166('0x4c')](_0x3310e8),logger['debug'](_0x708166('0x2c'),JSON['stringify'](_0x3310e8,null,0x2)),_0x3310e8&&_0x288db8[_0x3310e8['agicommand']]?(_0x469067=_0x288db8[_0x3310e8[_0x708166('0x52')]](_0x3310e8),_0x469067?(logger['debug']('response',getLogFromObject(_0x469067)),_[_0x708166('0x6')](_0x469067[_0x708166('0x18')])?null:_0x469067[_0x708166('0x18')]['toString']()):(logger[_0x708166('0x42')]('response',getLogFromObject(_0x469067)),null)):(logger[_0x708166('0x42')](_0x708166('0x11')),null);}catch(_0x3ab80e){return logger['error'](_0x3ab80e[_0x708166('0x10')]),null;}})),logger[_0x150280('0x41')](util[_0x150280('0xf')]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x19a2aa[_0x150280('0x3c')],_0x19a2aa[_0x150280('0x4a')],_0x19a2aa['callerid'],_0x19a2aa['dnid'],_0x19a2aa['uniqueid'])),logger['info'](util[_0x150280('0xf')]('[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s',_0x19a2aa[_0x150280('0x7')],_0x19a2aa[_0x150280('0x4e')],parseInt(_0x19a2aa[_0x150280('0x31')],0xa)+0x1)),_0x19a2aa[_0x150280('0x48')](_0x19a2aa[_0x150280('0x7')],_0x19a2aa[_0x150280('0x4e')],parseInt(_0x19a2aa[_0x150280('0x31')],0xa)+0x1),_0x19a2aa['close']())):(logger[_0x150280('0x42')](util[_0x150280('0xf')]('Project\x20%s\x20not\x20published',_0x19a2aa[_0x150280('0x3c')])),_0x19a2aa['continueAt'](_0x19a2aa['context'],_0x19a2aa[_0x150280('0x4e')],parseInt(_0x19a2aa[_0x150280('0x31')],0xa)+0x1),_0x19a2aa['close']()):(logger[_0x150280('0x42')](util[_0x150280('0xf')](_0x150280('0x29'),_0x19a2aa[_0x150280('0x3c')])),_0x19a2aa[_0x150280('0x48')](_0x19a2aa['context'],_0x19a2aa[_0x150280('0x4e')],parseInt(_0x19a2aa[_0x150280('0x31')],0xa)+0x1),_0x19a2aa['close']()),Promise[_0x150280('0x3e')]();}function main(){const _0x13001a=_0x382ea9;let _0x3a0f7b;return utilLicense[_0x13001a('0x19')]()['then'](function(_0x190aa0){const _0x2a337b=_0x13001a;_0x190aa0&&(_0x190aa0[_0x2a337b('0x2')]?_0x190aa0[_0x2a337b('0x1c')]&&_0x190aa0[_0x2a337b('0x1c')]>0x0?(logger['info'](util[_0x2a337b('0xf')]('[LICENSE]\x20CHANNELS:\x20%s',_0x190aa0[_0x2a337b('0x1c')])),_0x3a0f7b=_0x190aa0[_0x2a337b('0x1c')]):logger['info'](_0x2a337b('0x16')):(logger['info'](_0x2a337b('0xe')),_0x3a0f7b=-0x1));})[_0x13001a('0x34')](function(_0x2e698d){const _0x4f2940=_0x13001a;logger[_0x4f2940('0x42')](_0x4f2940('0x20'),_0x2e698d[_0x4f2940('0x10')]);})[_0x13001a('0x54')](function(){const _0x1ede0f=_0x13001a,_0x1f3930=require(_0x1ede0f('0x26'))(config['agi']['port'],config[_0x1ede0f('0xb')]['ip'],_0x3a0f7b);_0x1f3930['on'](_0x1ede0f('0x42'),errorHandler),_0x1f3930['on']('listening',listeningHandler),_0x1f3930['on'](_0x1ede0f('0x1e'),connectionHandler),_0x1f3930['on'](_0x1ede0f('0x1f'),closeHandler);});}main(); \ No newline at end of file +const a1028_0x9dfb=['response','then','priority','length','lodash','inspect','./mailRpc','agi','[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s','voice','[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\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 diff --git a/server/services/agi/mailRpc/index.js b/server/services/agi/mailRpc/index.js index bda1b1a..e5ad443 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1029_0x5540=['jayson/promise','result','error','message','catch','request','SendMail','http','sendMailMessage','client','then'];(function(_0x4f5ff1,_0x55402e){const _0x2eaead=function(_0x565a7e){while(--_0x565a7e){_0x4f5ff1['push'](_0x4f5ff1['shift']());}};_0x2eaead(++_0x55402e);}(a1029_0x5540,0x185));const a1029_0x2eae=function(_0x4f5ff1,_0x55402e){_0x4f5ff1=_0x4f5ff1-0x0;let _0x2eaead=a1029_0x5540[_0x4f5ff1];return _0x2eaead;};const _0x5eb5cf=a1029_0x2eae;'use strict';const jayson=require(_0x5eb5cf('0x7')),client=jayson[_0x5eb5cf('0x5')][_0x5eb5cf('0x3')]({'port':0x232b});function request(_0x565a7e,_0x2fdf79){return new Promise(function(_0x796962,_0x1c15fe){const _0x547751=a1029_0x2eae;return client[_0x547751('0x1')](_0x565a7e,_0x2fdf79)[_0x547751('0x6')](function(_0x5e8c52){const _0x227dbd=_0x547751;return _0x5e8c52[_0x227dbd('0x9')]?_0x1c15fe(_0x5e8c52[_0x227dbd('0x9')][_0x227dbd('0xa')]):_0x796962(_0x5e8c52[_0x227dbd('0x8')]);})[_0x547751('0x0')](function(_0x1ab0b4){return _0x1c15fe(_0x1ab0b4);});});}exports[_0x5eb5cf('0x4')]=function(_0x458196,_0x509b62){const _0x35b64f=_0x5eb5cf;return request(_0x35b64f('0x2'),{'account':_0x458196,'message':_0x509b62});}; \ No newline at end of file +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 diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index 781c907..9ff413f 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1030_0x35cc=['\x0d\x0a\x0d\x0a','length','exports','_transform','line','indexOf','Transform','stream','inherits','_localBuffer','headers','_inBody','split','call','prototype','slice','emit','trim','substring'];(function(_0x227a37,_0x35ccd7){const _0x4be01b=function(_0x3580d9){while(--_0x3580d9){_0x227a37['push'](_0x227a37['shift']());}};_0x4be01b(++_0x35ccd7);}(a1030_0x35cc,0x19e));const a1030_0x4be0=function(_0x227a37,_0x35ccd7){_0x227a37=_0x227a37-0x0;let _0x4be01b=a1030_0x35cc[_0x227a37];return _0x4be01b;};const _0x10e362=a1030_0x4be0;'use strict';const util=require('util'),Transform=require(_0x10e362('0xb'))[_0x10e362('0xa')];function AGIReply(_0x3580d9){const _0x4d08d1=_0x10e362;Transform[_0x4d08d1('0x11')](this,_0x3580d9),this[_0x4d08d1('0xd')]='',this[_0x4d08d1('0xf')]=![];}util[_0x10e362('0xc')](AGIReply,Transform),AGIReply[_0x10e362('0x12')][_0x10e362('0x7')]=function(_0x57c20c,_0x107b9c,_0x30646e){const _0x4b4502=_0x10e362,_0x4f4e88='\x0a',_0x261fbe=['\x0a\x0a',_0x4b4502('0x4')];let _0x3bd605=-0x1,_0x28ecf4=-0x1,_0x2947f1='',_0x428c=0x0,_0x5daecf='',_0x271512='';this[_0x4b4502('0xd')]+=_0x57c20c['toString'](),_0x5daecf=this[_0x4b4502('0xd')];if(!this[_0x4b4502('0xf')]){_0x428c=0x0;while(_0x261fbe[_0x428c]){while((_0x28ecf4=_0x5daecf[_0x4b4502('0x9')](_0x261fbe[_0x428c]))!=-0x1){_0x2947f1=_0x261fbe[_0x428c],_0x271512=_0x5daecf['substring'](0x0,_0x28ecf4),_0x5daecf=_0x5daecf['substring'](_0x28ecf4+_0x2947f1['length']);const _0x5149ff=_0x271512[_0x4b4502('0x10')](_0x4f4e88);let _0xd7a224=0x0;const _0x5ae72d={};let _0x3f649c='',_0x57fe4b='',_0x311bc5=-0x1;while(_0x5149ff[_0xd7a224]){_0x311bc5=_0x5149ff[_0xd7a224]['indexOf'](':');if(_0x311bc5!=-0x1)_0x3f649c=_0x5149ff[_0xd7a224]['slice'](0x0,_0x311bc5)['trim'](),_0x57fe4b=_0x5149ff[_0xd7a224][_0x4b4502('0x0')](_0x311bc5+0x1)[_0x4b4502('0x2')](),_0x3f649c[_0x4b4502('0x5')]>0x0&&(_0x5ae72d[_0x3f649c]=_0x57fe4b);else{}_0xd7a224++;}this[_0x4b4502('0x1')](_0x4b4502('0xe'),_0x5ae72d),this[_0x4b4502('0xf')]=!![];}_0x428c++;}this[_0x4b4502('0xd')]=_0x5daecf;}else{while((_0x3bd605=_0x5daecf['indexOf'](_0x4f4e88))!=-0x1){_0x271512=_0x5daecf['substring'](0x0,_0x3bd605),this[_0x4b4502('0x1')](_0x4b4502('0x8'),_0x271512),_0x5daecf=_0x5daecf[_0x4b4502('0x3')](_0x3bd605+_0x4f4e88[_0x4b4502('0x5')]);}this['_localBuffer']=_0x5daecf;}_0x30646e();},module[_0x10e362('0x6')]=AGIReply; \ No newline at end of file +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 diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index bb8c786..b95c974 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1031_0x539a=['agentUnpause','arg_1','ShowCmHopper','merge','getSquareProjectById','format','lodash','ListId','client','getSoundById','LogoutUser','getVariableById','moment','createSquareReport','catch','getVoiceQueueById','ShowVoiceQueue','agentPause','createSquareRecording','CreateSquareMessage','getIntervalById','ShowTrunk','getSmsAccountById','message','production','UnpauseUser','getUserById','ShowSquareProject','save_name','result','getSquareOdbcById','ShowPause','error','ShowVariable','email','then','getTrunkById','agentLogin','getMailAccountById','createCmContact','name','arg_2','ShowSound','dsn','LoginUser','CreateSmsMessage','jayson/promise','Smtp','agentLogout','ShowInterval','YYYY-MM-DD\x20HH:mm:ss','getSquareProject','MailServerOut'];(function(_0x4eb0b4,_0x539afc){const _0x25ac24=function(_0x38c678){while(--_0x38c678){_0x4eb0b4['push'](_0x4eb0b4['shift']());}};_0x25ac24(++_0x539afc);}(a1031_0x539a,0xa7));const a1031_0x25ac=function(_0x4eb0b4,_0x539afc){_0x4eb0b4=_0x4eb0b4-0x0;let _0x25ac24=a1031_0x539a[_0x4eb0b4];return _0x25ac24;};const _0x272dca=a1031_0x25ac;'use strict';const moment=require(_0x272dca('0x4')),_=require(_0x272dca('0x33')),jayson=require(_0x272dca('0x26')),client=jayson[_0x272dca('0x0')]['http']({'port':0x2329});function request(_0x38c678,_0x43212b){return new Promise(function(_0x4d70da,_0x3d157a){const _0x4734fb=a1031_0x25ac;return client['request'](_0x38c678,_0x43212b)['then'](function(_0x5b3bc6){const _0x2d0fc1=a1031_0x25ac;return _0x5b3bc6[_0x2d0fc1('0x18')]?_0x3d157a(_0x5b3bc6[_0x2d0fc1('0x18')][_0x2d0fc1('0xf')]):_0x4d70da(_0x5b3bc6[_0x2d0fc1('0x15')]);})[_0x4734fb('0x6')](function(_0x47a229){return _0x3d157a(_0x47a229);});});}exports[_0x272dca('0x2b')]=function(_0x49aa45){const _0x1392f5=_0x272dca;return request(_0x1392f5('0x13'),{'options':{'raw':![],'where':{'name':_0x49aa45},'attributes':[_0x1392f5('0x10')]}});},exports[_0x272dca('0x1e')]=function(_0x1282c7){const _0x3fad3e=_0x272dca;return request('ShowMailAccount',{'options':{'raw':![],'where':{'id':_0x1282c7},'include':[{'model':_0x3fad3e('0x2c'),'as':_0x3fad3e('0x27')}],'attributes':['id','name',_0x3fad3e('0x1a')]}});},exports[_0x272dca('0x31')]=function(_0x1405e7){const _0x20d9fd=_0x272dca;return request(_0x20d9fd('0x13'),{'options':{'where':{'id':_0x1405e7},'attributes':[_0x20d9fd('0x20')]}});},exports[_0x272dca('0x7')]=function(_0x37deea){const _0x320a80=_0x272dca;return request(_0x320a80('0x8'),{'options':{'where':{'id':_0x37deea},'attributes':['name']}});},exports[_0x272dca('0x3')]=function(_0x2975c4){const _0x4a21cd=_0x272dca;return request(_0x4a21cd('0x19'),{'options':{'where':{'id':_0x2975c4},'attributes':['name']}});},exports[_0x272dca('0x16')]=function(_0x5de4fb){const _0x557dba=_0x272dca;return request('ShowSquareOdbc',{'options':{'where':{'id':_0x5de4fb},'attributes':[_0x557dba('0x23')]}});},exports[_0x272dca('0x12')]=function(_0xf0286c){const _0x32b200=_0x272dca;return request('ShowUser',{'options':{'where':{'id':_0xf0286c},'attributes':[_0x32b200('0x20')]}});},exports[_0x272dca('0x1c')]=function(_0x59c6a3){const _0x3d8d60=_0x272dca;return request(_0x3d8d60('0xd'),{'options':{'where':{'id':_0x59c6a3},'attributes':[_0x3d8d60('0x20')]}});},exports[_0x272dca('0x1')]=function(_0x6c58b1){const _0x5e6df7=_0x272dca;return request(_0x5e6df7('0x22'),{'options':{'where':{'id':_0x6c58b1},'attributes':[_0x5e6df7('0x14')]}});},exports[_0x272dca('0xc')]=function(_0x5c5c04){const _0x2e0ac0=_0x272dca;return request(_0x2e0ac0('0x29'),{'options':{'raw':![],'where':{'id':_0x5c5c04},'include':[{'model':'Interval','as':'Intervals'}]}});},exports[_0x272dca('0xe')]=function(_0x160dbd){const _0x52ea96=_0x272dca;return request('ShowSmsAccount',{'options':{'where':{'id':_0x160dbd},'attributes':['id',_0x52ea96('0x20')]}});},exports['createSmsMessage']=function(_0x400641){const _0x122c2=_0x272dca;return request(_0x122c2('0x25'),{'body':_0x400641});},exports['createSquareDetailsReport']=function(_0x3c471d){return request('CreateSquareDetailsReport',{'body':_0x3c471d});},exports[_0x272dca('0x5')]=function(_0x25f919){const _0x5dab35=_0x272dca;return request('CreateSquareReport',{'body':_[_0x5dab35('0x30')](_0x25f919,{'project_name':_0x25f919[_0x5dab35('0x2e')],'prev_project_name':_0x25f919[_0x5dab35('0x21')]||'','is_subproject':_0x25f919[_0x5dab35('0x21')]?!![]:![],'leaveAt':moment()[_0x5dab35('0x32')](_0x5dab35('0x2a'))})});},exports[_0x272dca('0xa')]=function(_0x1aa659){return request('CreateSquareRecording',{'body':_0x1aa659});},exports['createSquareMessage']=function(_0x52ac6f){const _0x26288d=_0x272dca;return request(_0x26288d('0xb'),{'body':_0x52ac6f});},exports[_0x272dca('0x1f')]=function(_0x598fc9){const _0x35a1cf=_0x272dca;return request(_0x35a1cf('0x2f'),{'options':{'raw':![],'where':{'phone':_0x598fc9['phone'],'ListId':_0x598fc9[_0x35a1cf('0x34')]}}})[_0x35a1cf('0x1b')](function(_0x2cd885){if(_0x2cd885)return _0x2cd885;return request('CreateCmContact',{'body':_0x598fc9});});},exports['getPauseById']=function(_0x268997){const _0x28d1aa=_0x272dca;return request(_0x28d1aa('0x17'),{'options':{'where':{'id':_0x268997},'attributes':[_0x28d1aa('0x20')]}});},exports[_0x272dca('0x1d')]=function(_0x2bc771,_0x3e4a09){const _0xb9434a=_0x272dca;return request(_0xb9434a('0x24'),{'body':{'interface':_0x3e4a09},'options':{'where':_0x2bc771}});},exports[_0x272dca('0x9')]=function(_0x47b4b5,_0x447d62,_0x8e0918){return request('PauseUser',{'body':{'type':_0x447d62,'uniqueid':_0x8e0918},'options':{'where':_0x47b4b5}});},exports[_0x272dca('0x2d')]=function(_0x1a22ba){const _0x4102f7=_0x272dca;return request(_0x4102f7('0x11'),{'body':{},'options':{'where':_0x1a22ba}});},exports[_0x272dca('0x28')]=function(_0x2706ea){const _0x3d5b24=_0x272dca;return request(_0x3d5b24('0x2'),{'body':{},'options':{'where':_0x2706ea}});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/index.js b/server/services/agi/scripts/aws/index.js index a5b9c67..8bba50b 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1032_0x4edd=['exports'];(function(_0x31d6ce,_0x4eddef){const _0x8888bb=function(_0x48d10c){while(--_0x48d10c){_0x31d6ce['push'](_0x31d6ce['shift']());}};_0x8888bb(++_0x4eddef);}(a1032_0x4edd,0x7d));const a1032_0x8888=function(_0x31d6ce,_0x4eddef){_0x31d6ce=_0x31d6ce-0x0;let _0x8888bb=a1032_0x4edd[_0x31d6ce];return _0x8888bb;};const _0x7fa1d9=a1032_0x8888,polly=require('./polly'),lex=require('./lex');module[_0x7fa1d9('0x0')]={'polly':polly,'lex':lex}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/lex/index.js b/server/services/agi/scripts/aws/lex/index.js index e51388d..18bee39 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1033_0x28d8=['exports'];(function(_0x56ffe1,_0x28d8b7){const _0x2169f1=function(_0x4c7995){while(--_0x4c7995){_0x56ffe1['push'](_0x56ffe1['shift']());}};_0x2169f1(++_0x28d8b7);}(a1033_0x28d8,0xc4));const a1033_0x2169=function(_0x56ffe1,_0x28d8b7){_0x56ffe1=_0x56ffe1-0x0;let _0x2169f1=a1033_0x28d8[_0x56ffe1];return _0x2169f1;};const _0x54c2f7=a1033_0x2169;'use strict';const lex=require('./lib/api');module[_0x54c2f7('0x0')]=function(_0x4c7995,_0x2deba4,_0x2f635a,_0x1a61ec,_0x1469a5,_0x1ebc0d){return lex(_0x4c7995,_0x2deba4,_0x2f635a,_0x1a61ec,_0x1469a5,_0x1ebc0d);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/lex/lib/api.js b/server/services/agi/scripts/aws/lex/lib/api.js index 804717e..4d69d09 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_0x458c=['LexRuntime','exports','slot_','slots','undefined','aws-sdk','$LATEST','postText'];(function(_0x365701,_0x458cd8){const _0x45b750=function(_0x3227fd){while(--_0x3227fd){_0x365701['push'](_0x365701['shift']());}};_0x45b750(++_0x458cd8);}(a1034_0x458c,0x1c6));const a1034_0x45b7=function(_0x365701,_0x458cd8){_0x365701=_0x365701-0x0;let _0x45b750=a1034_0x458c[_0x365701];return _0x45b750;};const _0x3443fb=a1034_0x45b7;'use strict';const AWS=require(_0x3443fb('0x7'));function lexResult(_0x3227fd,_0x41a0e){return new Promise(function(_0x3cb35d,_0x462979){const _0x30fcb2=a1034_0x45b7;_0x3227fd[_0x30fcb2('0x1')](_0x41a0e,function(_0x5ef521,_0xd59d1c){const _0x26eed1=_0x30fcb2;_0x5ef521&&_0x462979(_0x5ef521);if(_0xd59d1c[_0x26eed1('0x5')])for(const _0x46025d in _0xd59d1c['slots']){if(typeof _0xd59d1c['slots'][_0x46025d]!==_0x26eed1('0x6')){const _0x3b9923=_0xd59d1c[_0x26eed1('0x5')][_0x46025d];_0xd59d1c[_0x26eed1('0x4')+_0x46025d]=_0x3b9923;}}_0x3cb35d(_0xd59d1c);});});}module[_0x3443fb('0x3')]=function(_0x2bad3e,_0x5d9b12,_0x181ad7,_0x4346b5,_0xc756b4,_0x592ee1){const _0x140b1f=_0x3443fb,_0x218cc5=new AWS[(_0x140b1f('0x2'))]({'accessKeyId':_0x5d9b12,'secretAccessKey':_0x181ad7,'region':_0x4346b5}),_0x567543={'botAlias':_0x140b1f('0x0'),'botName':_0x592ee1,'inputText':_0xc756b4,'userId':_0x2bad3e};return lexResult(_0x218cc5,_0x567543);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/polly/index.js b/server/services/agi/scripts/aws/polly/index.js index e1de876..8b47b8e 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1035_0x37cf=['exports'];(function(_0x17d6ae,_0x37cf37){const _0x1073a3=function(_0x5b289f){while(--_0x5b289f){_0x17d6ae['push'](_0x17d6ae['shift']());}};_0x1073a3(++_0x37cf37);}(a1035_0x37cf,0x13b));const a1035_0x1073=function(_0x17d6ae,_0x37cf37){_0x17d6ae=_0x17d6ae-0x0;let _0x1073a3=a1035_0x37cf[_0x17d6ae];return _0x1073a3;};const _0x48e793=a1035_0x1073;'use strict';const polly=require('./lib/api');module[_0x48e793('0x0')]=function(_0x5b289f,_0x3b4465,_0x3ecf5d,_0x2c1324,_0x4229cc,_0x252771,_0x1ddb58){return polly(_0x5b289f,_0x3b4465,_0x3ecf5d,_0x2c1324,_0x4229cc,_0x252771,_0x1ddb58);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/aws/polly/lib/api.js b/server/services/agi/scripts/aws/polly/lib/api.js index d3d67f4..5463c83 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_0x10cc=['No\x20data\x20response\x20from\x20aws\x20Polly!','AudioStream','exports','Polly','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','mp3'];(function(_0x595670,_0x10ccd6){const _0x206c89=function(_0x5be6d7){while(--_0x5be6d7){_0x595670['push'](_0x595670['shift']());}};_0x206c89(++_0x10ccd6);}(a1036_0x10cc,0xe9));const a1036_0x206c=function(_0x595670,_0x10ccd6){_0x595670=_0x595670-0x0;let _0x206c89=a1036_0x10cc[_0x595670];return _0x206c89;};const _0x3f2ee7=a1036_0x206c;'use strict';const fs=require('fs'),AWS=require('aws-sdk');function pollyResult(_0x5be6d7,_0x3b03a5,_0x1d7120){return new Promise(function(_0x2955a7,_0x1b583c){_0x5be6d7['synthesizeSpeech'](_0x3b03a5,function(_0x50981c,_0x2c6f95){const _0x71e72f=a1036_0x206c;if(_0x50981c)_0x1b583c(_0x50981c);else _0x2c6f95?_0x2c6f95[_0x71e72f('0x2')]instanceof Buffer?fs['writeFile'](_0x1d7120,_0x2c6f95[_0x71e72f('0x2')],function(_0x2963b4){_0x2963b4?_0x1b583c(_0x2963b4):_0x2955a7();}):_0x1b583c(new Error(_0x71e72f('0x5'))):_0x1b583c(new Error(_0x71e72f('0x1')));});});}module[_0x3f2ee7('0x3')]=function(_0x357acb,_0x1e5715,_0x12a8cc,_0x2bea32,_0x58f189,_0x2a8266,_0x5bb4ba){const _0x4dc21c=_0x3f2ee7,_0x53f5f4=new AWS[(_0x4dc21c('0x4'))]({'accessKeyId':_0x357acb,'secretAccessKey':_0x1e5715,'region':_0x12a8cc}),_0x16bedf={'Text':_0x58f189,'TextType':_0x2a8266||'text','OutputFormat':_0x4dc21c('0x0'),'VoiceId':_0x2bea32};return pollyResult(_0x53f5f4,_0x16bedf,_0x5bb4ba);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/asr/index.js b/server/services/agi/scripts/google/asr/index.js index 5ce7a23..ecebd3a 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1037_0x53b9=['exports','./lib/api'];(function(_0x3c3331,_0x53b968){const _0x1b2aba=function(_0x4c4fae){while(--_0x4c4fae){_0x3c3331['push'](_0x3c3331['shift']());}};_0x1b2aba(++_0x53b968);}(a1037_0x53b9,0xde));const a1037_0x1b2a=function(_0x3c3331,_0x53b968){_0x3c3331=_0x3c3331-0x0;let _0x1b2aba=a1037_0x53b9[_0x3c3331];return _0x1b2aba;};const _0x132b9d=a1037_0x1b2a;'use strict';const asr=require(_0x132b9d('0x1'));module[_0x132b9d('0x0')]=function(_0x4c4fae,_0x381550,_0x54573d){return asr(_0x4c4fae,_0x381550,_0x54573d);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/asr/lib/api.js b/server/services/agi/scripts/google/asr/lib/api.js index d32c8f2..99f88e9 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_0x1148=['string','/v1/speech:recognize?key=','undefined','exports','filepath\x20should\x20be\x20a\x20string','key\x20should\x20be\x20a\x20string','LINEAR16','base64','length','readFileSync'];(function(_0x25ee6d,_0x1148b5){const _0x4c1da9=function(_0x6af983){while(--_0x6af983){_0x25ee6d['push'](_0x25ee6d['shift']());}};_0x4c1da9(++_0x1148b5);}(a1038_0x1148,0xb5));const a1038_0x4c1d=function(_0x25ee6d,_0x1148b5){_0x25ee6d=_0x25ee6d-0x0;let _0x4c1da9=a1038_0x1148[_0x25ee6d];return _0x4c1da9;};const _0x41b9cd=a1038_0x4c1d;'use strict';const fs=require('fs'),host='https://speech.googleapis.com';module[_0x41b9cd('0x2')]=function(_0x6af983,_0x5f407e,_0x164669){return new Promise(function(_0x22a437,_0x394ab8){const _0x36efdc=a1038_0x4c1d;let _0x4ad986;if(typeof _0x6af983!=='string'||_0x6af983[_0x36efdc('0x7')]===0x0)return _0x394ab8(_0x36efdc('0x3'));if(typeof _0x5f407e!==_0x36efdc('0x9')||_0x5f407e[_0x36efdc('0x7')]===0x0)return _0x394ab8(_0x36efdc('0x4'));if(typeof _0x164669!==_0x36efdc('0x1')&&(typeof _0x164669!=='string'||_0x164669[_0x36efdc('0x7')]===0x0))return _0x394ab8('lang\x20should\x20be\x20a\x20string');try{_0x4ad986=fs[_0x36efdc('0x8')](_0x6af983)['toString'](_0x36efdc('0x6'));}catch(_0x2c7091){return _0x394ab8(_0x2c7091);}return _0x22a437({'method':'POST','uri':host+_0x36efdc('0x0')+_0x5f407e,'body':{'config':{'encoding':_0x36efdc('0x5'),'sampleRateHertz':'8000','languageCode':_0x164669},'audio':{'content':_0x4ad986}},'json':!![]});});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/google/index.js b/server/services/agi/scripts/google/index.js index f8f3c4d..e7998e1 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1039_0x24ef=['./asr','exports'];(function(_0x1cbeaf,_0x24ef33){const _0x50ee26=function(_0x4317e6){while(--_0x4317e6){_0x1cbeaf['push'](_0x1cbeaf['shift']());}};_0x50ee26(++_0x24ef33);}(a1039_0x24ef,0x139));const a1039_0x50ee=function(_0x1cbeaf,_0x24ef33){_0x1cbeaf=_0x1cbeaf-0x0;let _0x50ee26=a1039_0x24ef[_0x1cbeaf];return _0x50ee26;};const _0x3ebb8d=a1039_0x50ee,asr=require(_0x3ebb8d('0x1'));module[_0x3ebb8d('0x0')]={'asr':asr}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/index.js b/server/services/agi/scripts/index.js index bcc2cf8..5a56992 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1040_0x564b=['WHAT_EVER','map','googleTTS','agi','\x20failed,\x20status\x20code\x20=\x20','.mp3','createWriteStream','tmp','base64','result','ispeechASR','googleDialogflow','freeform=3','writeFileSync','confidence','googleASR','google-tts-api','pathname','googleASR\x20confidence','request\x20to\x20','https://api.ispeech.org/api/rest','?key=','fulfillment','uri','ispeechTTS','statusCode','format','catch','ssml','error\x20convert','dirName','chmodSync','statusMessage','get','text:synthesize','textRequest','url','util','error','toString','info','md5','.wav','CustomActionData','data','./aws','protocol','message','host','http','https://texttospeech.googleapis.com/v1/','transcript','asr','generate','voice','googleASR\x20transcription','randomstring','text','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','goggleTTS\x20path','resolvedQuery','stringify','unlink','transcode','path','Tilde\x20ASR\x20confidence','finish','awsLex','sestekNDA','end','wav','writeFile','split','apiai-promise','resolve','querystring','sox','AudioFromTts','lex','score','from','speech','close','%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s','./tilde','name','start','join','./sestek','POST','then','googleCloudTTS\x20path','action','MP3','results','polly','./google','readFileSync','finish\x20download\x20file','channelData','endConversation','tildeASR','metadata','request-promise-native','googleCloudTTS','audioConfig','Data','alternatives','777','https:','CustomAction','audiofile','nda','model=%s','actionIncomplete','parse'];(function(_0x2ab061,_0x564b58){const _0x1c3978=function(_0x10b87f){while(--_0x10b87f){_0x2ab061['push'](_0x2ab061['shift']());}};_0x1c3978(++_0x564b58);}(a1040_0x564b,0x14b));const a1040_0x1c39=function(_0x2ab061,_0x564b58){_0x2ab061=_0x2ab061-0x0;let _0x1c3978=a1040_0x564b[_0x2ab061];return _0x1c3978;};const _0x45b14a=a1040_0x1c39;'use strict';const fs=require('fs'),path=require(_0x45b14a('0x51')),http=require(_0x45b14a('0x42')),https=require('https'),{URL}=require(_0x45b14a('0x35')),rs=require(_0x45b14a('0x49')),sox=require(_0x45b14a('0x5d')),rp=require(_0x45b14a('0x4')),util=require(_0x45b14a('0x36')),querystring=require(_0x45b14a('0x5c')),tts=require(_0x45b14a('0x21')),apiai=require(_0x45b14a('0x5a')),md5=require(_0x45b14a('0x3a')),google=require(_0x45b14a('0x71')),aws=require(_0x45b14a('0x3e')),tilde=require(_0x45b14a('0x65')),sestek=require(_0x45b14a('0x69')),logger=require('../../../config/logger')(_0x45b14a('0x14')),ISPEECH_API=_0x45b14a('0x25');function downloadFile(_0x10b87f,_0x52f7a1){return new Promise(function(_0x224a5c,_0x2ab6b3){const _0x2cd901=a1040_0x1c39,_0x4f368d=new URL(_0x10b87f),_0x4c5e7a=_0x4f368d[_0x2cd901('0x3f')]===_0x2cd901('0xa')?https:http,_0x5d8c91={'host':_0x4f368d[_0x2cd901('0x41')],'path':_0x4f368d[_0x2cd901('0x22')],'headers':{'user-agent':_0x2cd901('0x11')}};_0x4c5e7a[_0x2cd901('0x32')](_0x5d8c91,function(_0x112f9a){const _0xba8ed2=_0x2cd901;if(_0x112f9a[_0xba8ed2('0x2a')]!==0xc8){logger['error']('request\x20to\x20'+_0x10b87f+_0xba8ed2('0x15')+_0x112f9a['statusCode']+'\x20('+_0x112f9a[_0xba8ed2('0x31')]+')'),_0x2ab6b3(new Error(_0xba8ed2('0x24')+_0x10b87f+'\x20failed,\x20status\x20code\x20=\x20'+_0x112f9a[_0xba8ed2('0x2a')]+'\x20('+_0x112f9a[_0xba8ed2('0x31')]+')'));return;}const _0x4ac6b6=fs[_0xba8ed2('0x17')](_0x52f7a1);_0x4ac6b6['on'](_0xba8ed2('0x53'),function(){const _0x57abc6=_0xba8ed2;logger[_0x57abc6('0x39')](_0x57abc6('0x73')),_0x4ac6b6[_0x57abc6('0x63')](_0x224a5c);}),_0x4ac6b6['on'](_0xba8ed2('0x37'),function(_0x1bd9cd){const _0x503cea=_0xba8ed2;fs[_0x503cea('0x4f')](_0x52f7a1),logger[_0x503cea('0x37')]('download\x20error',_0x1bd9cd),_0x2ab6b3(_0x1bd9cd);}),_0x112f9a['pipe'](_0x4ac6b6);})['on'](_0x2cd901('0x37'),function(_0x222f4c){logger['error'](_0x222f4c),_0x2ab6b3(_0x222f4c);})[_0x2cd901('0x56')]();});}function uploadFile(_0x1365fd){return new Promise(function(_0x272dd9,_0x5247a6){const _0x4f9140=a1040_0x1c39,_0x2507a6=new URL(_0x1365fd),_0x45dfb0=_0x2507a6[_0x4f9140('0x3f')]===_0x4f9140('0xa')?https:http,_0x57cc38={'host':_0x2507a6[_0x4f9140('0x41')],'path':_0x2507a6[_0x4f9140('0x22')],'headers':{'user-agent':_0x4f9140('0x11')}};_0x45dfb0[_0x4f9140('0x32')](_0x57cc38,function(_0x3d2cf7){const _0x4defcc=_0x4f9140;if(_0x3d2cf7[_0x4defcc('0x2a')]!==0xc8){_0x5247a6(new Error(_0x4defcc('0x24')+_0x1365fd+_0x4defcc('0x15')+_0x3d2cf7[_0x4defcc('0x2a')]+'\x20('+_0x3d2cf7[_0x4defcc('0x31')]+')'));return;}let _0x5dfc20='';_0x3d2cf7['on'](_0x4defcc('0x3d'),function(_0x3e8c5e){_0x5dfc20+=_0x3e8c5e;}),_0x3d2cf7['on'](_0x4defcc('0x56'),function(){_0x272dd9(_0x5dfc20);});})['on'](_0x4f9140('0x37'),function(_0x4a0c78){_0x5247a6(_0x4a0c78);})[_0x4f9140('0x56')]();});}function convertFile(_0x13fea7,_0x156a4d){return new Promise(function(_0x3f93e5,_0x4de7fa){const _0x577040=a1040_0x1c39,_0x1f1828=sox[_0x577040('0x50')](_0x13fea7,_0x156a4d,{'sampleRate':0x1f40,'format':_0x577040('0x57'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x1f1828['on'](_0x577040('0x37'),function(_0x4532bb){const _0x4f6182=_0x577040;logger[_0x4f6182('0x37')](_0x4f6182('0x2e'),_0x4532bb),_0x4de7fa(_0x4532bb);}),_0x1f1828['on'](_0x577040('0x56'),function(){const _0xba2fbf=_0x577040;logger[_0xba2fbf('0x39')]('finish\x20to\x20convert'),_0x3f93e5();}),_0x1f1828[_0x577040('0x67')]();});}function base64Decode(_0x4a13af,_0x3ccb53){const _0x568a6e=_0x45b14a,_0x5ae6ae=path[_0x568a6e('0x5b')](__dirname,_0x568a6e('0x18'),rs[_0x568a6e('0x46')](0x4)+'.wav');return fs[_0x568a6e('0x1e')](_0x5ae6ae,_0x4a13af,_0x568a6e('0x19')),convertFile(_0x5ae6ae,_0x3ccb53)[_0x568a6e('0x6b')](function(){const _0x163192=_0x568a6e;try{fs[_0x163192('0x4f')](_0x5ae6ae),fs[_0x163192('0x30')](_0x3ccb53,_0x163192('0x9'));}catch(_0x114507){logger[_0x163192('0x37')](_0x114507);}return _0x3ccb53[_0x163192('0x59')]('.')[0x0];});}function base64Encode(_0x34a725){const _0x4f2d38=_0x45b14a,_0x4846b3=fs[_0x4f2d38('0x72')](_0x34a725);return Buffer['from'](_0x4846b3)[_0x4f2d38('0x38')]('base64');}exports[_0x45b14a('0x5')]=function(_0x15743a,_0x27fb3d,_0x22aa8e,_0x34bf57,_0x190a0e){const _0x1966c1=_0x45b14a;let _0x49e89d,_0x25431e;const _0x294bf3=_0x1966c1('0x43'),_0x24077d=_0x1966c1('0x26')+_0x15743a,_0x5627ef={};_0x27fb3d===_0x1966c1('0x2d')?_0x5627ef['input']={'ssml':_0x22aa8e}:_0x5627ef['input']={'text':_0x22aa8e};_0x5627ef[_0x1966c1('0x47')]={'languageCode':_0x34bf57,'ssmlGender':_0x190a0e},_0x5627ef[_0x1966c1('0x6')]={'audioEncoding':_0x1966c1('0x6e'),'sampleRateHertz':0x1f40};const _0x1116aa={'url':_0x294bf3+_0x1966c1('0x33')+_0x24077d,'method':_0x1966c1('0x6a'),'json':!![],'body':_0x5627ef};return rp(_0x1116aa)[_0x1966c1('0x6b')](function(_0x4ea0fe){return new Promise(function(_0x1beabd,_0xba001b){const _0x110862=a1040_0x1c39;_0x49e89d=path[_0x110862('0x5b')](__dirname,_0x110862('0x18'),rs[_0x110862('0x46')](0x4)+'.mp3');const _0x314c94=Buffer[_0x110862('0x61')](_0x4ea0fe['audioContent'],'base64');return fs[_0x110862('0x58')](_0x49e89d,_0x314c94,function(_0x3f2daf){_0xba001b(_0x3f2daf);},function(_0x2da653){const _0xc2b824=_0x110862;fs[_0xc2b824('0x30')](_0x49e89d,_0xc2b824('0x9')),_0x1beabd(_0x2da653);});});})[_0x1966c1('0x6b')](function(){const _0x132ea9=_0x1966c1;return _0x25431e=path['resolve'](__dirname,_0x132ea9('0x18'),rs[_0x132ea9('0x46')](0x4)+_0x132ea9('0x3b')),convertFile(_0x49e89d,_0x25431e);})[_0x1966c1('0x6b')](function(){const _0xdfbd38=_0x1966c1;try{fs[_0xdfbd38('0x4f')](_0x49e89d),fs[_0xdfbd38('0x30')](_0x25431e,_0xdfbd38('0x9'));}catch(_0x242c4a){logger['error'](_0x242c4a);}return logger[_0xdfbd38('0x39')](_0xdfbd38('0x6c'),_0x25431e[_0xdfbd38('0x59')]('.')[0x0]),_0x25431e[_0xdfbd38('0x59')]('.')[0x0];});},exports[_0x45b14a('0x13')]=function(_0x348827,_0x4add53){const _0x3e2058=_0x45b14a;let _0x63d86,_0x41b658;return tts(_0x348827,_0x4add53||'en',0x1)[_0x3e2058('0x6b')](function(_0x132fb9){const _0x4757e0=_0x3e2058;return logger['info'](_0x132fb9),_0x63d86=path[_0x4757e0('0x5b')](__dirname,_0x4757e0('0x18'),rs['generate'](0x4)+_0x4757e0('0x16')),downloadFile(_0x132fb9,_0x63d86);})['then'](function(){const _0x1a7df3=_0x3e2058;return _0x41b658=path[_0x1a7df3('0x5b')](__dirname,'tmp',rs[_0x1a7df3('0x46')](0x4)+_0x1a7df3('0x3b')),convertFile(_0x63d86,_0x41b658);})['then'](function(){const _0x34c7f9=_0x3e2058;try{fs[_0x34c7f9('0x4f')](_0x63d86),fs[_0x34c7f9('0x30')](_0x41b658,_0x34c7f9('0x9'));}catch(_0x61b799){logger[_0x34c7f9('0x37')](_0x61b799);}return logger[_0x34c7f9('0x39')](_0x34c7f9('0x4c'),_0x41b658[_0x34c7f9('0x59')]('.')[0x0]),_0x41b658[_0x34c7f9('0x59')]('.')[0x0];});},exports[_0x45b14a('0x20')]=function(_0x399ae8,_0xc3c8de,_0x4255ca){const _0x4cd37f=_0x45b14a;return google[_0x4cd37f('0x45')](_0x399ae8,_0xc3c8de,_0x4255ca)['then'](function(_0x31960c){const _0x555dee=_0x4cd37f;return logger[_0x555dee('0x39')](_0x31960c[_0x555dee('0x28')]),rp(_0x31960c);})[_0x4cd37f('0x6b')](function(_0x580401){const _0x3179aa=_0x4cd37f;let _0x4e57cd='',_0x4c635a=0x0;try{fs[_0x3179aa('0x4f')](_0x399ae8);}catch(_0x14e00f){logger[_0x3179aa('0x37')](_0x14e00f);}return _0x580401&&_0x580401[_0x3179aa('0x6f')]&&(_0x4e57cd=_0x580401[_0x3179aa('0x6f')]['map'](function(_0x5e6a91){const _0x2c46c9=_0x3179aa;return _0x5e6a91&&_0x5e6a91[_0x2c46c9('0x8')][0x0]&&_0x5e6a91[_0x2c46c9('0x8')][0x0]['transcript']?_0x5e6a91[_0x2c46c9('0x8')][0x0][_0x2c46c9('0x44')]:'';})[_0x3179aa('0x68')]('\x0a'),_0x4c635a=_0x580401['results'][_0x3179aa('0x12')](function(_0x1d484e){const _0x730933=_0x3179aa;return _0x1d484e&&_0x1d484e[_0x730933('0x8')][0x0]&&_0x1d484e['alternatives'][0x0]['confidence']?_0x1d484e[_0x730933('0x8')][0x0][_0x730933('0x1f')]:0x0;})[_0x3179aa('0x68')]('\x0a')),logger[_0x3179aa('0x39')](_0x3179aa('0x48'),_0x4e57cd),logger[_0x3179aa('0x39')](_0x3179aa('0x23'),_0x4c635a),{'transcript':_0x4e57cd,'confidence':_0x4c635a};})[_0x4cd37f('0x2c')](function(_0x238136){const _0x17eda9=_0x4cd37f;logger[_0x17eda9('0x37')]('[%s]\x20%s:%s',_0x238136['statusCode'],_0x238136[_0x17eda9('0x66')],_0x238136[_0x17eda9('0x40')]);});},exports[_0x45b14a('0x1c')]=function(_0xf2aa0d,_0x2fb386,_0x2bcc6f,_0x48d2da){const _0x553f2e=_0x45b14a,_0x45c963=apiai(_0x2fb386,{'language':_0x48d2da||'en'});return _0x45c963[_0x553f2e('0x34')](_0x2bcc6f,{'sessionId':md5(_0xf2aa0d)})[_0x553f2e('0x6b')](function(_0x47569f){const _0x3b5e14=_0x553f2e;return logger[_0x3b5e14('0x39')](JSON['stringify'](_0x47569f)),{'source':_0x47569f['result']['source'],'resolvedQuery':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x4d')],'action':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x6d')],'actionIncomplete':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0xf')],'speech':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x27')][_0x3b5e14('0x62')],'score':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x60')],'statusCode':_0x47569f['status']['code'],'endConversation':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x3')][_0x3b5e14('0x1')]||![],'isFallbackIntent':_0x47569f[_0x3b5e14('0x1a')][_0x3b5e14('0x3')]['isFallbackIntent']};});},exports[_0x45b14a('0x2')]=function(_0x8e361c,_0x34362c,_0x3da088,_0x579331){const _0x2e9204=_0x45b14a;return tilde['asr'](_0x8e361c,_0x34362c,_0x3da088,_0x579331)[_0x2e9204('0x6b')](function(_0x7f7508){const _0x10b768=_0x2e9204;try{fs[_0x10b768('0x4f')](_0x8e361c);}catch(_0x675e00){logger['error'](_0x675e00);}return logger[_0x10b768('0x39')]('Tilde\x20ASR\x20transcription',_0x7f7508[_0x10b768('0x44')]),logger[_0x10b768('0x39')](_0x10b768('0x52'),_0x7f7508[_0x10b768('0x1f')]),_0x7f7508;});},exports['awsPolly']=function(_0x4f4922,_0x5ace46,_0x10fb09,_0x2b7dd9,_0x524671,_0x1d88a7){const _0x41d4a9=_0x45b14a,_0xa2722=path[_0x41d4a9('0x5b')](__dirname,_0x41d4a9('0x18'),rs[_0x41d4a9('0x46')](0x4)+_0x41d4a9('0x16'));let _0x44b0cc;return aws[_0x41d4a9('0x70')](_0x4f4922,_0x5ace46,_0x10fb09,_0x2b7dd9,_0x524671,_0x1d88a7,_0xa2722)['then'](function(){const _0x1cc6df=_0x41d4a9;return _0x44b0cc=path['resolve'](__dirname,_0x1cc6df('0x18'),rs['generate'](0x4)+'.wav'),convertFile(_0xa2722,_0x44b0cc);})[_0x41d4a9('0x6b')](function(){const _0x52e9c3=_0x41d4a9;try{fs[_0x52e9c3('0x4f')](_0xa2722),fs[_0x52e9c3('0x30')](_0x44b0cc,'777');}catch(_0x24a364){logger[_0x52e9c3('0x37')](_0x24a364);}return _0x44b0cc[_0x52e9c3('0x59')]('.')[0x0];});},exports[_0x45b14a('0x54')]=function(_0x1277e3,_0x536bfd,_0x5286c2,_0x17a836,_0xc5f67f,_0x5c5ed4){const _0x2c8a01=_0x45b14a;return aws[_0x2c8a01('0x5f')](_0x1277e3,_0x536bfd,_0x5286c2,_0x17a836,_0xc5f67f,_0x5c5ed4)[_0x2c8a01('0x6b')](function(_0x395173){const _0x9dbcce=_0x2c8a01;return logger['info'](JSON[_0x9dbcce('0x4e')](_0x395173)),_0x395173;});},exports[_0x45b14a('0x29')]=function(_0x581ffd,_0x460aa8,_0x8f1796,_0x55fb15){const _0x3396fc=_0x45b14a,_0x16abcc=util[_0x3396fc('0x2b')](_0x3396fc('0x4b'),ISPEECH_API,_0x581ffd,encodeURIComponent(_0x460aa8),_0x8f1796,_0x55fb15),_0x331c5a=path[_0x3396fc('0x5b')](__dirname,_0x3396fc('0x18'),rs[_0x3396fc('0x46')](0x4)+_0x3396fc('0x16'));let _0x34e26c;return downloadFile(_0x16abcc,_0x331c5a)[_0x3396fc('0x6b')](function(){const _0x53018a=_0x3396fc;return _0x34e26c=path[_0x53018a('0x5b')](__dirname,_0x53018a('0x18'),rs[_0x53018a('0x46')](0x4)+_0x53018a('0x3b')),convertFile(_0x331c5a,_0x34e26c);})[_0x3396fc('0x6b')](function(){const _0x4d124f=_0x3396fc;try{fs[_0x4d124f('0x4f')](_0x331c5a),fs['chmodSync'](_0x34e26c,_0x4d124f('0x9'));}catch(_0x383baa){logger[_0x4d124f('0x37')](_0x383baa);}return _0x34e26c['split']('.')[0x0];});},exports[_0x45b14a('0x1b')]=function(_0x10dc6a,_0x398e1a,_0x34efbb,_0x4e7d87){const _0x590f34=_0x45b14a,_0x25f1ab=util['format'](_0x590f34('0x64'),ISPEECH_API,_0x398e1a,_0x34efbb,base64Encode(_0x10dc6a),_0x4e7d87?util[_0x590f34('0x2b')](_0x590f34('0xe'),encodeURIComponent(_0x4e7d87)):_0x590f34('0x1d'));return uploadFile(_0x25f1ab)[_0x590f34('0x6b')](function(_0x42395c){const _0x2c50a6=_0x590f34;return querystring[_0x2c50a6('0x10')](_0x42395c);});},exports[_0x45b14a('0x55')]=function(_0x1868f0,_0x10f128){const _0x49c09f=_0x45b14a;return sestek[_0x49c09f('0xd')](_0x1868f0,_0x10f128)[_0x49c09f('0x6b')](function(_0x5edd71){const _0x2daaad=_0x49c09f;logger[_0x2daaad('0x39')](JSON[_0x2daaad('0x4e')](_0x5edd71));const _0x33518b={'speech':_0x5edd71[_0x2daaad('0x4a')],'action':_0x5edd71[_0x2daaad('0x0')]?_0x5edd71['channelData'][_0x2daaad('0xb')]:undefined,'actiondata':_0x5edd71[_0x2daaad('0x0')]?_0x5edd71['channelData'][_0x2daaad('0x3c')]:undefined};if(_0x5edd71[_0x2daaad('0x0')]&&_0x5edd71['channelData']['AudioFromTts'])return base64Decode(_0x5edd71['channelData'][_0x2daaad('0x5e')][_0x2daaad('0x7')],path[_0x2daaad('0x5b')](__dirname,'tmp',rs[_0x2daaad('0x46')](0x4)+_0x2daaad('0x3b')))[_0x2daaad('0x6b')](function(_0x428904){const _0x1730e2=_0x2daaad;return _0x33518b[_0x1730e2('0xc')]=_0x428904,_0x33518b;});return _0x33518b;});},exports[_0x45b14a('0x2f')]=function(){return __dirname;}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/sestek/index.js b/server/services/agi/scripts/sestek/index.js index 9f8d0d7..25c88e2 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1041_0x341a=['./nda','exports'];(function(_0x312424,_0x341a4d){const _0x31734c=function(_0x537133){while(--_0x537133){_0x312424['push'](_0x312424['shift']());}};_0x31734c(++_0x341a4d);}(a1041_0x341a,0x9b));const a1041_0x3173=function(_0x312424,_0x341a4d){_0x312424=_0x312424-0x0;let _0x31734c=a1041_0x341a[_0x312424];return _0x31734c;};const _0x145752=a1041_0x3173,nda=require(_0x145752('0x1'));module[_0x145752('0x0')]={'nda':nda}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/sestek/nda/index.js b/server/services/agi/scripts/sestek/nda/index.js index 9d49a12..a1b37e8 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1042_0x1d23=['stringify','Bearer\x20','exports','ndassistant_url','request-promise-native','custom_action','CustomActionData','body','URL','toString','dnid','url','calleridname','extension','callerid','Nda','/token','../../../../../config/logger','/api/NaturalDialogAssistant/v1/Run','channelData','POST','info','project','message','then','uniqueid','ProjectName','AudioOutputSettings','password'];(function(_0x378082,_0x1d23eb){const _0x3e62b4=function(_0x23ebdb){while(--_0x23ebdb){_0x378082['push'](_0x378082['shift']());}};_0x3e62b4(++_0x1d23eb);}(a1042_0x1d23,0x6a));const a1042_0x3e62=function(_0x378082,_0x1d23eb){_0x378082=_0x378082-0x0;let _0x3e62b4=a1042_0x1d23[_0x378082];return _0x3e62b4;};const _0x4cfd2a=a1042_0x3e62;'use strict';const rp=require(_0x4cfd2a('0xe')),url=require(_0x4cfd2a('0x15')),logger=require(_0x4cfd2a('0x1b'))('agi');module[_0x4cfd2a('0xc')]=function(_0x23ebdb,_0x5a19b3){const _0x3769ae=_0x4cfd2a,_0x3b0245=new url[(_0x3769ae('0x12'))](_0x3769ae('0x1a'),_0x5a19b3['ndauth_url'])[_0x3769ae('0x13')](),_0x4d0ac2={'method':_0x3769ae('0x1'),'uri':_0x3b0245,'form':{'grant_type':_0x3769ae('0x9'),'username':_0x5a19b3['username'],'password':_0x5a19b3[_0x3769ae('0x9')]},'json':!![]};return rp(_0x4d0ac2)[_0x3769ae('0x5')](function(_0xdf0547){const _0x461e6f=_0x3769ae,_0xb7ac70=new url['URL'](_0x461e6f('0x1c'),_0x5a19b3[_0x461e6f('0xd')])[_0x461e6f('0x13')](),_0x3da516={'method':_0x461e6f('0x1'),'uri':_0xb7ac70,'body':{'type':_0x5a19b3['ndaactivity_type']||_0x461e6f('0x4'),'channelId':_0x461e6f('0x19'),'conversation':{'id':_0x23ebdb[_0x461e6f('0x6')]},'from':{'id':_0x23ebdb[_0x461e6f('0x18')],'name':_0x23ebdb[_0x461e6f('0x16')]},'recipient':{'id':_0x23ebdb[_0x461e6f('0x14')],'name':_0x23ebdb[_0x461e6f('0x17')]},'text':_0x5a19b3['text'],'channelData':{}},'headers':{'Authorization':_0x461e6f('0xb')+_0xdf0547['access_token']},'json':!![]};return _0x5a19b3['project']&&(_0x3da516[_0x461e6f('0x11')]['channelData'][_0x461e6f('0x7')]=_0x5a19b3[_0x461e6f('0x3')]),_0x5a19b3['ndagenerate_audio']=='1'&&(_0x3da516[_0x461e6f('0x11')][_0x461e6f('0x0')][_0x461e6f('0x8')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':'audio/wav'}),_0x5a19b3['custom_action']&&(_0x3da516[_0x461e6f('0x11')][_0x461e6f('0x0')]['CustomAction']=_0x5a19b3[_0x461e6f('0xf')],_0x5a19b3['custom_action_data']&&(_0x3da516[_0x461e6f('0x11')][_0x461e6f('0x0')][_0x461e6f('0x10')]=_0x5a19b3['custom_action_data'])),logger[_0x461e6f('0x2')](JSON[_0x461e6f('0xa')](_0x3da516)),rp(_0x3da516);});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/asr/index.js b/server/services/agi/scripts/tilde/asr/index.js index 015a207..344415f 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1043_0x1e66=['exports'];(function(_0x4dc617,_0x1e66b6){const _0xe4b349=function(_0x38e3a1){while(--_0x38e3a1){_0x4dc617['push'](_0x4dc617['shift']());}};_0xe4b349(++_0x1e66b6);}(a1043_0x1e66,0x16e));const a1043_0xe4b3=function(_0x4dc617,_0x1e66b6){_0x4dc617=_0x4dc617-0x0;let _0xe4b349=a1043_0x1e66[_0x4dc617];return _0xe4b349;};const _0x395f32=a1043_0xe4b3;'use strict';const asr=require('./lib/api');module[_0x395f32('0x0')]=function(_0x38e3a1,_0x1a0972,_0x125eb7,_0x2d99eb){return asr(_0x38e3a1,_0x1a0972,_0x125eb7,_0x2d99eb);}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/asr/lib/api.js b/server/services/agi/scripts/tilde/asr/lib/api.js index b953e2b..ec86485 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_0x223b=['Authentication\x20failed.','lodash','Tilde\x20ASR\x20parse\x20error','info','send','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','isObject','Error\x20Tilde\x20ASR\x20socket','message','stringify','update','hex','close','likelihood','final','data','terminate','open','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','result','moment','unix','Open\x20Tilde\x20ASR\x20socket','error','sha1','createReadStream','Success.','isNil','parse','Tilde\x20URI','Tilde\x20ASR\x20hypoteses','crypto','transcript','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','hypotheses','Close\x20Tilde\x20ASR\x20socket','digest','Not\x20available.\x20Max\x20load\x20limit\x20reached.','agi','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','exports'];(function(_0x3972ae,_0x223b18){const _0x450d24=function(_0x30f0c7){while(--_0x30f0c7){_0x3972ae['push'](_0x3972ae['shift']());}};_0x450d24(++_0x223b18);}(a1044_0x223b,0x1e9));const a1044_0x450d=function(_0x3972ae,_0x223b18){_0x3972ae=_0x3972ae-0x0;let _0x450d24=a1044_0x223b[_0x3972ae];return _0x450d24;};const _0x5377d7=a1044_0x450d;'use strict';const _=require(_0x5377d7('0x4')),fs=require('fs'),WebSocket=require('ws'),moment=require(_0x5377d7('0x17')),crypto=require(_0x5377d7('0x22')),logger=require('../../../../../../config/logger')(_0x5377d7('0x0'));module[_0x5377d7('0x2')]=function(_0x30f0c7,_0x29d999,_0x48e632,_0x354c89){return new Promise(function(_0x3c6949){const _0x14b4bf=a1044_0x450d;logger[_0x14b4bf('0x6')](_0x14b4bf('0x20'),_0x354c89||_0x14b4bf('0x15'));const _0x1cc594=new WebSocket(_0x354c89||_0x14b4bf('0x15'),{'perMessageDeflate':![]});let _0xf349c2='',_0x1e840c='0',_0x5159bd='1',_0x39bbf1='No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech';function _0x3a280b(_0x31b0d6){const _0x4acc21=_0x14b4bf,_0x448c6e=crypto['createHash'](_0x4acc21('0x1b'));return _0x448c6e[_0x4acc21('0xd')](_0x31b0d6),_0x448c6e[_0x4acc21('0x27')](_0x4acc21('0xe'));}function _0x12336b(){const _0x432b4c=_0x14b4bf;try{logger[_0x432b4c('0x6')](_0x432b4c('0x19'));const _0x3f1353=moment()[_0x432b4c('0x18')](),_0x4cdf13=_0x3a280b(_0x3f1353+_0x29d999+_0x48e632);_0x1cc594[_0x432b4c('0x7')](JSON['stringify']({'appID':_0x29d999,'timestamp':_0x3f1353,'appKey':_0x4cdf13}));const _0x4425fc=fs[_0x432b4c('0x1c')](_0x30f0c7);_0x4425fc['on'](_0x432b4c('0x12'),function(_0x38f46a){const _0x519ef9=_0x432b4c;_0x1cc594[_0x519ef9('0x7')](_0x38f46a);}),_0x4425fc['on']('close',function(){const _0x2ec01f=_0x432b4c;_0x1cc594[_0x2ec01f('0x7')]('EOS');});}catch(_0x39ca06){logger[_0x432b4c('0x1a')]('Tilde\x20ASR\x20send\x20error',JSON[_0x432b4c('0xc')](_0x39ca06)),_0x1cc594[_0x432b4c('0x13')]();}}function _0x281deb(_0x1c1de7){const _0x280fae=_0x14b4bf;try{if(_0x1c1de7){const _0x1d8ece=JSON[_0x280fae('0x1f')](_0x1c1de7);switch(_0x1d8ece['status']){case 0x0:_0x1d8ece[_0x280fae('0x16')]&&(_0x1d8ece[_0x280fae('0x16')][_0x280fae('0x11')]&&(logger[_0x280fae('0x6')](_0x280fae('0x21'),JSON[_0x280fae('0xc')](_0x1d8ece[_0x280fae('0x16')][_0x280fae('0x25')])),_0xf349c2=_0x1d8ece[_0x280fae('0x16')][_0x280fae('0x25')][0x0][_0x280fae('0x23')],_0x1e840c=_0x1d8ece[_0x280fae('0x16')][_0x280fae('0x25')][0x0][_0x280fae('0x10')],_0x5159bd='0',_0x39bbf1=_0x280fae('0x1d'),_0x1cc594[_0x280fae('0x13')]()));break;case 0x1:logger[_0x280fae('0x6')]('No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech'),_0x5159bd='1',_0x39bbf1=_0x280fae('0x1');break;case 0x2:logger['info'](_0x280fae('0x8')),_0x5159bd='2',_0x39bbf1=_0x280fae('0x8');break;case 0x9:logger[_0x280fae('0x6')](_0x280fae('0x28')),_0x5159bd='9',_0x39bbf1=_0x280fae('0x28');break;case 0xa:logger[_0x280fae('0x6')](_0x280fae('0x3')),_0x5159bd='10',_0x39bbf1='Authentication\x20failed.';break;case 0xb:logger['info'](_0x280fae('0x24')),_0x5159bd='11',_0x39bbf1=_0x280fae('0x24');}}}catch(_0xbfbf65){logger[_0x280fae('0x1a')](_0x280fae('0x5'),JSON[_0x280fae('0xc')](_0xbfbf65)),_0x1cc594['terminate']();}}function _0x1e606b(){const _0x498e2d=_0x14b4bf;logger[_0x498e2d('0x6')](_0x498e2d('0x26')),_0x3c6949({'transcript':_0xf349c2,'confidence':_0x1e840c,'status':_0x5159bd,'status_message':_0x39bbf1});}function _0x51c416(_0x5de6bf){const _0x5e6d79=_0x14b4bf;logger['error'](_0x5e6d79('0xa')),!_[_0x5e6d79('0x1e')](_0x5de6bf)&&logger[_0x5e6d79('0x1a')](_[_0x5e6d79('0x9')](_0x5de6bf)?JSON[_0x5e6d79('0xc')](_0x5de6bf):_0x5de6bf);}_0x1cc594['on'](_0x14b4bf('0x14'),_0x12336b),_0x1cc594['on'](_0x14b4bf('0xb'),_0x281deb),_0x1cc594['on'](_0x14b4bf('0xf'),_0x1e606b),_0x1cc594['on'](_0x14b4bf('0x1a'),_0x51c416);});}; \ No newline at end of file +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 diff --git a/server/services/agi/scripts/tilde/index.js b/server/services/agi/scripts/tilde/index.js index 4075e4f..c6d64b1 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1045_0x14be=['./asr','exports'];(function(_0x61df5f,_0x14be93){const _0xdc97ec=function(_0x8601b0){while(--_0x8601b0){_0x61df5f['push'](_0x61df5f['shift']());}};_0xdc97ec(++_0x14be93);}(a1045_0x14be,0x184));const a1045_0xdc97=function(_0x61df5f,_0x14be93){_0x61df5f=_0x61df5f-0x0;let _0xdc97ec=a1045_0x14be[_0x61df5f];return _0xdc97ec;};const _0x408e84=a1045_0xdc97,asr=require(_0x408e84('0x0'));module[_0x408e84('0x1')]={'asr':asr}; \ No newline at end of file +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 diff --git a/server/services/agi/server.js b/server/services/agi/server.js index 6497ebe..0f95ebd 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1046_0x3494=['close','E_AGI_ARGUMENT_PORT','E_AGI_SERVER_CLOSE','./error','connection','getConnections','inherits','E_AGI_SERVER_VOICE_DISABLED','E_AGI_SERVER_ERROR','net','events','EventEmitter','listening','exports','error','127.0.0.1','nextTick','E_AGI_SERVER_MAXCONNECTION','code','emit'];(function(_0xdf19ea,_0x34946b){const _0x475e8a=function(_0x234d83){while(--_0x234d83){_0xdf19ea['push'](_0xdf19ea['shift']());}};_0x475e8a(++_0x34946b);}(a1046_0x3494,0x132));const a1046_0x475e=function(_0xdf19ea,_0x34946b){_0xdf19ea=_0xdf19ea-0x0;let _0x475e8a=a1046_0x3494[_0xdf19ea];return _0x475e8a;};const _0xda56e1=a1046_0x475e;'use strict';const util=require('util'),net=require(_0xda56e1('0x3')),EventEmitter=require(_0xda56e1('0x4'))[_0xda56e1('0x5')],AGIError=require(_0xda56e1('0x11')),AGIChannel=require('./channel'),AGIServer=function(_0x234d83,_0x3ba1f6,_0x1f86bf){const _0x1b8c2f=_0xda56e1,_0x282950=this;_0x234d83=_0x234d83||0x11dd,_0x3ba1f6=_0x3ba1f6||_0x1b8c2f('0x9');let _0xc82b5f=null,_0x12bb33=0x0;EventEmitter['call'](_0x282950);function _0x3e9e53(){const _0x30afb1=_0x1b8c2f;if(!_0x234d83)return _0x282950[_0x30afb1('0xd')](_0x30afb1('0x8'),new AGIError(_0x30afb1('0xf'))),![];_0xc82b5f=net['createServer'](),_0xc82b5f['listen'](_0x234d83,_0x3ba1f6),_0xc82b5f['on'](_0x30afb1('0x6'),function(){const _0x38e83e=_0x30afb1;_0x282950['emit'](_0x38e83e('0x6'));}),_0xc82b5f['on']('connection',function(_0x506f9b){const _0x2fc3f5=_0x30afb1;_0xc82b5f[_0x2fc3f5('0x13')](function(_0x5c21e3,_0x4d5e0a){const _0x54e1f8=_0x2fc3f5;if(_0x5c21e3)_0x282950[_0x54e1f8('0xd')](_0x54e1f8('0x8'),new AGIError(_0x54e1f8('0x2'),_0x5c21e3));else{if(_0x1f86bf&&_0x1f86bf<0x0)_0x282950[_0x54e1f8('0xd')]('error',new AGIError(_0x54e1f8('0x1'))),_0x506f9b['destroy']();else{if(_0x1f86bf&&_0x1f86bf>0x0&&_0x1f86bf<_0x4d5e0a)_0x12bb33+=0x1,_0x282950[_0x54e1f8('0xd')](_0x54e1f8('0x8'),new AGIError(_0x54e1f8('0xb'),_0x12bb33)),_0x506f9b['destroy']();else{const _0x1fe931=new AGIChannel(_0x506f9b);_0x1fe931['on']('ready',function(){const _0x515e53=_0x54e1f8;_0x282950['emit'](_0x515e53('0x12'),_0x1fe931);});}}}});}),_0xc82b5f['on'](_0x30afb1('0x8'),function(_0x391557){const _0xdbaee1=_0x30afb1;_0x282950[_0xdbaee1('0xd')](_0xdbaee1('0x8'),new AGIError(_0xdbaee1('0x2'),_0x391557[_0xdbaee1('0xc')]));}),_0xc82b5f['on'](_0x30afb1('0xe'),function(){const _0x69f17f=_0x30afb1;_0x282950[_0x69f17f('0xd')](_0x69f17f('0xe'),new AGIError(_0x69f17f('0x10')));});}process[_0x1b8c2f('0xa')](function(){_0x3e9e53();});};util[_0xda56e1('0x0')](AGIServer,EventEmitter),module[_0xda56e1('0x7')]=function(_0x464472,_0x94e3ab,_0x526ac2){return new AGIServer(_0x464472,_0x94e3ab,_0x526ac2);}; \ No newline at end of file +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 diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 98b09e9..37742fb 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1047_0x585f=['Enter\x20in\x20ANSWER\x20(%s)\x20block','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','includes','%s.%s','getSound','catch','aws_secret_access_key','aws_access_key_id','Enter\x20in\x20FINALLY\x20(%s)\x20block','mindigit','no\x20interval\x20configured','user','mailRpc','no\x20url\x20configured','restAPI','Amazon\x20Lex\x20Result\x20%s','file_id','%s/sounds/converted/%s','Enter\x20in\x20MATH\x20(%s)\x20block','getSoundById','../../config/environment','hiddendigitsnum','grammar','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','GOAL\x20%s','no\x20valid\x20credentials\x20configured','Dialogflow\x20is\x20unreachable','undefined','Error\x20getting\x20ODBC\x20connection\x20%s','no\x20database\x20selected','aws\x20Polly\x20%s\x20file\x20created','mailbox','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','message','moment','interval','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','googleDialogflow','exec','awsPolly','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','DIALOGFLOW_%s','args','Enter\x20in\x20RECORD\x20(%s)\x20block','forEach','test','FIND\x20AGENT\x20%s\x20BY\x20%s','replaceObjectAllVariables','SESTEK_ASR_TRANSCRIPT','lumenvoxasr','./scripts','RECOG_INPUT()','Enter\x20in\x20GOAL\x20(%s)\x20block','variable_id','aws_polly_region','Enter\x20in\x20GOTO\x20(%s)\x20block','%s/recordings/%s','Enter\x20in\x20LOGIN\x20(%s)\x20block','callerid','RECORDING_SAVENAME','no\x20apiKey\x20configured','getTrunk','mustache','getData','no\x20subproject\x20found\x20with\x20id\x20%d','ispeech\x20%s\x20file\x20created','MP3','gotoc','audiofile','add','mrcpsynth','lastName','mrcprecog','system','logout','Enter\x20in\x20PAUSE\x20(%s)\x20block','position','odbc_id','callback_','clone','escape_digits','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','toLowerCase','headers','stringify','Enter\x20in\x20AGI\x20(%s)\x20block','languageCode','Enter\x20in\x20LOGOUT\x20(%s)\x20block','getVariableById','no\x20username\x20configured','getVariable','no\x20sms\x20account\x20found','Amazon\x20Lex\x20is\x20unreachable','Trying\x20Google\x20Cloud\x20TTS\x20%s','no\x20variable\x20selected\x20for\x20the\x20response','replaceAllVariables','math','variable_value','dial','Enter\x20in\x20SYSTEM\x20(%s)\x20block','AGI','LUMENVOX_ASR_CONFIDENCE','extra','MRCPSynth','variable\x20%s[key]\x20set','LUMENVOX_ASR_TRANSCRIPT','render','calleridname','isString','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','rawBody','Trying\x20Google\x20TTS\x20%s','join','EVAL\x20CONDITION\x20%s\x20%s','googleasr','channel','getSquareOdbcById','recordFile','IFTIME(%s?true:false)','menu','apiKey','substr','createSquareDetailsReport','failure','uri','getSmsAccount','TILDE_ASR_%s','no\x20text\x20configured','Enter\x20in\x20SENDSMS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created','getIntervals','sayphonetic','request-promise-native','extension','LUMENVOX_ASR_INSTANCE','agi://%s/square,\x22%s\x22,\x22%s\x22','service','login','QUEUE','prototype','PLAYBACK','sendMailMessage','saveRestApiResult','Enter\x20in\x20START\x20(%s)\x20block','sendFax','createSmsMessage','digit','query:\x20%s','account_id','Trying\x20Amazon\x20Lex:\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','continueAt','gosub','agentUnpause','yes','no\x20password\x20configured','restapi','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','Amy','Enter\x20in\x20DATABASE\x20(%s)\x20block','getMailAccountById','toString','appsecret','sayDigits','\x22%s\x22\x20<%s>','SENDFAX\x20block\x20not\x20implemented','getUserById','set','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','sync','rawHeaders','phone','agicommand','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','first','template_id','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','finally','Enter\x20in\x20END\x20(%s)\x20block','open','no\x20trunk\x20selected','getPause','util','sestekNDA','no\x20sms\x20account\x20configured','opts','.wav','ispeechTTS','success','GOOGLE_ASR_%s','Enter\x20in\x20MENU\x20(%s)\x20block','MALE','sendSMS','isEmpty','PUT','Executed\x20command\x20%s','generate','isArray','getPauseById','RECOG_CONFIDENCE()','url','operation','host','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Google\x20TTS\x20is\x20unreachable','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','shellCommand','random','statusCode','gotoif','AGENT\x20%s\x20FOUND\x20BY','createSquareRecording','SIP/%s','true','agi','awsLex','pause_id','query','RECOG_INSTANCE()','length','no\x20appsecret\x20configured','no\x20find\x20by\x20configured','info','sms_account_id','error','agentLogin','aws_bot_name','agentLogout','ext_dial','NOBEEP','Trying\x20SendSMS\x20with\x20account\x20%s','no\x20subproject\x20selected','getdigits','no\x20mail\x20account\x20configured','ispeech\x20TTS\x20is\x20unreachable','callback_priority','ispeech_asr_language','findBy','IFTIME\x20%s\x20%s','out','tilde\x20%s\x20file\x20created','subject','queue_id','password','AGENT\x20%s\x20NOT\x20FOUND\x20BY','custom_app','internal','no\x20variable\x20selected','no\x20grammar\x20configured','no\x20key\x20configured','condition','secure','port','ISPEECH_ASR_%s','sms_text','format','LOCAL','no\x20variable\x20found','MRCP_RECOG_CONFIDENCE','POST','close','replaceAll','Response:','callback','result','%s_STATUS_MESSAGE','subproject','Error\x20executing\x20query\x20%s','then','debug','false','127.0.0.1','split','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','500\x20-\x20Internal\x20Server\x20Error','body','parse','toUpperCase','ispeechtts','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Answer','database','shelljs','response','goalname','ispeechasr','awslex','no\x20file\x20audio\x20selected','isNil','googleASR','recursiveNodeIndex','XMCS-QUEUE','key','lodash','sayPhonetic','googleTTS','MRCPRecog','no\x20appid\x20configured','no\x20variable\x20selected\x20for\x20the\x20result','interval_id','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','label','output','google_tts_language','wav','setVariable','SESTEK_NDA_%s','macro','beep','Enter\x20in\x20GOTOIF\x20(%s)\x20block','%s[%s][%s]','auth','getSquareProjectById','trim','no\x20list\x20selected','no\x20condition\x20configured','Trying\x20SestekNDA:\x20%s','AWS_LEX_%s','google_cloud_tts_text_type','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Sms\x20message\x20added\x20to\x20outgoing\x20process','command','queue','ssmlGender','agent','no\x20user\x20found','ndauth_url','%s/%s@from-sip/n','Error\x20closing\x20connection\x20to\x20odbc\x20%s','replace','aws_text_type','200','getQueryOdbc','Trying\x20aws\x20Polly\x20%s','en-US','uniqueid','text','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','hangup','bot','%s_STATUS_CODE','google_asr_language','pause','arg_1','noop','answer','appid','Skipped\x20Answer','IntervalId','getMailAccount','getSoundPath','/var/opt/motion2/server/files','Enter\x20in\x20DIAL\x20(%s)\x20block','Intervals','rpc','Amazon\x20Lex\x20ready\x20for\x20fulfillment','GoogleASR\x20Result\x20%s','getTrunkById','Trying\x20ispeech\x20TTS\x20%s','timeout','getAndSetVariable','ndassistant_url','map','gotoiftime','no\x20mail\x20account\x20found','end','saydigits','isPlainObject','SESTEK_ASR_INSTANCE','Enter\x20in\x20NOOP\x20(%s)\x20block','math\x20%s','project_id','statusMessage','aws_lex_region','save_name','saynumber','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','SIP/%s/%s','Executed\x20command\x20MRCPRecog\x20%s','Executed\x20command\x20%s\x20%s','priority','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','vswitch','scheduledAt','SESTEK_ASR_CONFIDENCE','name','getSquareOdbc','intKey','googleCloudTTS','tildeasr','MRCP_RECOG_INSTANCE','indexOf','application','no\x20file\x20audio\x20found','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','getsecretdigits','bcc','sh\x20command:\x20%s\x20result\x20no\x20stored','tildeASR','Smtp','trunk_id','variable\x20%s\x20set','sendMail\x20message','computedVariables','list_id','getSquareProject','%s/recordings/%s.%s','number','dialogflow','retry','minutes','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','trunk_name','ODBC\x20connection\x20successfully','method','sip_id','options','pass','createCmContact','streamFile','speed','maxRetry','isConfigured','MRCP_RECOG_TRANSCRIPT','inspect','DIAL','speech','delay','exports','Trying\x20SendMail\x20with\x20account\x20%s','agentPause','Google\x20Cloud\x20TTS\x20is\x20unreachable','%s[%s]','Sestek\x20NDA\x20%s\x20file\x20created','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','unlink','TildeASR\x20Result\x20%s','ispeechASR','getUser','keys','tts','Query\x20executed\x20correctly\x20%s','createSquareMessage','START\x20CALLY\x20SQUARE','Executed\x20command\x20MRCPSynth\x20%s','no\x20odbc\x20database\x20found','maxdigit','unpause','accountcode','%s_ROWS_COUNT','getVoiceQueue','goal','no\x20user\x20selected'];(function(_0x59a0a6,_0x585f50){const _0x1375d5=function(_0x52ec79){while(--_0x52ec79){_0x59a0a6['push'](_0x59a0a6['shift']());}};_0x1375d5(++_0x585f50);}(a1047_0x585f,0x194));const a1047_0x1375=function(_0x59a0a6,_0x585f50){_0x59a0a6=_0x59a0a6-0x0;let _0x1375d5=a1047_0x585f[_0x59a0a6];return _0x1375d5;};const _0x4502c7=a1047_0x1375;'use strict';const fs=require('fs'),util=require(_0x4502c7('0xe8')),_=require(_0x4502c7('0x158')),sh=require(_0x4502c7('0x14d')),odbc=require('odbc'),rs=require('randomstring'),moment=require(_0x4502c7('0x54')),Mustache=require(_0x4502c7('0x70')),rp=require(_0x4502c7('0xb6')),logger=require('../../config/logger')(_0x4502c7('0x109')),config=require(_0x4502c7('0x46')),scripts=require(_0x4502c7('0x64')),FILES_PATH=_0x4502c7('0x192'),recursiveMapAttributes=[_0x4502c7('0xdc'),_0x4502c7('0xa0')],verticesWithRetry=['menu',_0x4502c7('0x11b'),_0x4502c7('0x1be')],AGIVertices=function(_0x52ec79,_0x4cb7bf,_0x55bfa8){const _0x447961=_0x4502c7;this[_0x447961('0xa5')]=_0x52ec79,this[_0x447961('0x195')]=_0x4cb7bf,this['mailRpc']=_0x55bfa8;};AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x8c')]=function(_0x522626,_0x47593c){const _0x1793fc=_0x4502c7;this['rpc'][_0x1793fc('0x8a')](_0x522626)['then'](function(_0x5d53fd){const _0x36e71c=_0x1793fc;_0x47593c(null,_0x5d53fd?_0x5d53fd[_0x36e71c('0x1b4')]:![]);})[_0x1793fc('0x37')](function(_0x344c47){_0x47593c(_0x344c47);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x2f')]=function(_0x3eeed6,_0x439fb3){const _0x541039=_0x4502c7;this[_0x541039('0x195')]['getVoiceQueueById'](_0x3eeed6)[_0x541039('0x13f')](function(_0x1bd90f){const _0x50971f=_0x541039;_0x439fb3(null,_0x1bd90f?_0x1bd90f[_0x50971f('0x1b4')]:![]);})['catch'](function(_0x142ca0){_0x439fb3(_0x142ca0);});},AGIVertices['prototype']['getSquareProject']=function(_0x161a1a,_0x2ce61a){const _0x2582d2=_0x4502c7;this[_0x2582d2('0x195')][_0x2582d2('0x16b')](_0x161a1a)[_0x2582d2('0x13f')](function(_0x24da32){const _0x120c70=_0x2582d2;_0x2ce61a(null,_0x24da32?_0x24da32[_0x120c70('0x1b4')]:![]);})[_0x2582d2('0x37')](function(_0x215590){_0x2ce61a(_0x215590);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1b5')]=function(_0x56de95,_0x33ae8c){const _0x1b5a3c=_0x4502c7;this['rpc'][_0x1b5a3c('0xa6')](_0x56de95)['then'](function(_0x16353d){_0x33ae8c(null,_0x16353d?_0x16353d['dsn']:![]);})['catch'](function(_0x1edf55){_0x33ae8c(_0x1edf55);});},AGIVertices[_0x4502c7('0xbd')]['getUser']=function(_0x346946,_0x423ca3){const _0xe75c37=_0x4502c7;this['rpc'][_0xe75c37('0xd8')](_0x346946)[_0xe75c37('0x13f')](function(_0x502d61){_0x423ca3(null,_0x502d61?_0x502d61['name']:![]);})[_0xe75c37('0x37')](function(_0x1e5dff){_0x423ca3(_0x1e5dff);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x6f')]=function(_0x4d89e5,_0x6456d7){const _0x52075c=_0x4502c7;this[_0x52075c('0x195')][_0x52075c('0x198')](_0x4d89e5)[_0x52075c('0x13f')](function(_0xeb0fd5){_0x6456d7(null,_0xeb0fd5?_0xeb0fd5['name']:![]);})[_0x52075c('0x37')](function(_0x10b1f4){_0x6456d7(_0x10b1f4);});},AGIVertices[_0x4502c7('0xbd')]['getSound']=function(_0x19302a,_0xeefb30){const _0x1ee9ea=_0x4502c7,_0x8ca24d=this;this['rpc'][_0x1ee9ea('0x45')](_0x19302a)['then'](function(_0x2c8ede){const _0x754472=_0x1ee9ea;_0xeefb30(null,_0x2c8ede?_0x8ca24d[_0x754472('0x191')](_0x2c8ede[_0x754472('0x1a9')]):![]);})[_0x1ee9ea('0x37')](function(_0x42777e){_0xeefb30(_0x42777e);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x190')]=function(_0x310537,_0x433f1f){const _0x30a25f=_0x4502c7;this['rpc'][_0x30a25f('0xd2')](_0x310537)[_0x30a25f('0x13f')](function(_0xcdb5aa){_0x433f1f(null,_0xcdb5aa?_0xcdb5aa:![]);})[_0x30a25f('0x37')](function(_0x465a93){_0x433f1f(_0x465a93);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xbf')]=function(_0x13632b,_0x1670de,_0x3524ad){const _0x3d6045=_0x4502c7;this[_0x3d6045('0x3e')][_0x3d6045('0xbf')](_0x13632b,_0x1670de)[_0x3d6045('0x13f')](function(){_0x3524ad(null);})[_0x3d6045('0x37')](function(_0x1b07b8){_0x3524ad(_0x1b07b8);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xb4')]=function(_0x34af1e,_0x1bc5c2){const _0x48270e=_0x4502c7;this['rpc']['getIntervalById'](_0x34af1e)[_0x48270e('0x13f')](function(_0x2287e3){const _0x590ee2=_0x48270e;_0x2287e3?_0x2287e3[_0x590ee2('0x18f')]?_0x1bc5c2(null,[_0x2287e3[_0x590ee2('0x55')]]):_0x1bc5c2(null,_[_0x590ee2('0x19d')](_0x2287e3[_0x590ee2('0x194')],_0x590ee2('0x55'))):_0x1bc5c2(null,![]);})['catch'](function(_0x2f6b5b){_0x1bc5c2(_0x2f6b5b);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x191')]=function(_0x58d49e){const _0x202001=_0x4502c7;return util[_0x202001('0x132')](_0x202001('0x43'),FILES_PATH,_0x58d49e);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x17f')]=function(_0x2ec07f,_0x3787b3,_0x3aeb1b){const _0xf40459=_0x4502c7;odbc[_0xf40459('0xe5')](_0x2ec07f,function(_0x45ec49){const _0x170556=_0xf40459;_0x45ec49?(logger['error'](_0x170556('0x4e'),_0x45ec49),_0x3aeb1b(_0x45ec49)):(logger[_0x170556('0x111')](_0x170556('0xa')),odbc[_0x170556('0x10c')](_0x3787b3,function(_0x505ef7,_0x228c70){const _0x3cc550=_0x170556;_0x505ef7?(logger[_0x3cc550('0x111')](_0x3cc550('0x13e'),_0x3787b3),_0x3aeb1b(_0x505ef7)):(logger[_0x3cc550('0x111')](_0x3cc550('0x26'),_0x3787b3),odbc[_0x3cc550('0x137')](function(_0x530a94){const _0x5dc553=_0x3cc550;_0x530a94&&logger['error'](_0x5dc553('0x17b'),_0x530a94),_0x3aeb1b(null,_0x228c70);}));}));});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xaf')]=function(_0x2872e2,_0x5cf0c5){const _0x44e4d0=_0x4502c7;this[_0x44e4d0('0x195')]['getSmsAccountById'](_0x2872e2)[_0x44e4d0('0x13f')](function(_0x2d4976){_0x5cf0c5(null,_0x2d4976?_0x2d4976:![]);})[_0x44e4d0('0x37')](function(_0x3d91ec){_0x5cf0c5(_0x3d91ec);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xc3')]=function(_0x1b354d,_0x246f27){const _0x5a43b8=_0x4502c7;this[_0x5a43b8('0x195')][_0x5a43b8('0xc3')](_0x1b354d)[_0x5a43b8('0x13f')](function(_0xddb4fe){_0x246f27(null,_0xddb4fe);})[_0x5a43b8('0x37')](function(_0x49ba0c){_0x246f27(_0x49ba0c);});},AGIVertices['prototype'][_0x4502c7('0xac')]=function(_0x5a88b1,_0x59afd0,_0x4e459d){const _0x2be149=_0x4502c7;this[_0x2be149('0x195')]['createSquareDetailsReport']({'uniqueid':this[_0x2be149('0xa5')]['uniqueid'],'node':_0x5a88b1[_0x2be149('0x160')],'application':_0x5a88b1[_0x2be149('0xde')],'data':_0x59afd0||null,'project_name':this[_0x2be149('0xa5')][_0x2be149('0x18a')],'callerid':this[_0x2be149('0xa5')][_0x2be149('0x6c')]})[_0x2be149('0x13f')](function(_0x1b8286){_0x4e459d&&_0x4e459d(null,_0x1b8286);})[_0x2be149('0x37')](function(_0x20095e){_0x4e459d&&_0x4e459d(_0x20095e);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x106')]=function(_0x2ac655,_0x586266,_0x56ef18,_0x431ffb){const _0x2fc21d=_0x4502c7;this[_0x2fc21d('0x195')][_0x2fc21d('0x106')]({'uniqueid':this[_0x2fc21d('0xa5')][_0x2fc21d('0x182')],'callerid':this[_0x2fc21d('0xa5')][_0x2fc21d('0x6c')],'calleridname':this[_0x2fc21d('0xa5')][_0x2fc21d('0x9d')],'context':this[_0x2fc21d('0xa5')]['context'],'extension':this[_0x2fc21d('0xa5')][_0x2fc21d('0xb7')],'priority':this[_0x2fc21d('0xa5')][_0x2fc21d('0x1af')],'accountcode':this[_0x2fc21d('0xa5')][_0x2fc21d('0x2d')],'dnid':this[_0x2fc21d('0xa5')]['dnid'],'projectName':this['channel'][_0x2fc21d('0x18a')],'saveName':_0x586266,'filename':_0x2ac655['file']||_0x586266,'savePath':_0x56ef18})['then'](function(_0x4406f8){_0x431ffb(null,_0x4406f8);})['catch'](function(_0x3e61dc){_0x431ffb(_0x3e61dc);});},AGIVertices['prototype'][_0x4502c7('0x27')]=function(_0x7fe893,_0x505066,_0x10d921){const _0x56e927=_0x4502c7;this[_0x56e927('0x195')]['createSquareMessage']({'uniqueid':this['channel'][_0x56e927('0x182')],'body':_0x7fe893,'direction':_0x505066})[_0x56e927('0x13f')](function(_0x2d7571){_0x10d921&&_0x10d921(null,_0x2d7571);})[_0x56e927('0x37')](function(_0x3ecaa0){_0x10d921&&_0x10d921(_0x3ecaa0);});},AGIVertices['prototype'][_0x4502c7('0xf')]=function(_0x50c9b3,_0x1c7b31){const _0x111337=_0x4502c7;this[_0x111337('0x195')][_0x111337('0xf')]({'firstName':_[_0x111337('0xf3')](_0x50c9b3['name'])||_[_0x111337('0x153')](_0x50c9b3[_0x111337('0x1b4')])?_0x111337('0x80')+Math[_0x111337('0x102')]():_0x50c9b3[_0x111337('0x1b4')],'lastName':_[_0x111337('0xf3')](_0x50c9b3[_0x111337('0x79')])||_[_0x111337('0x153')](_0x50c9b3[_0x111337('0x79')])?null:_0x50c9b3[_0x111337('0x79')],'phone':_0x50c9b3[_0x111337('0xdd')],'ListId':_0x50c9b3[_0x111337('0x1')],'scheduledat':_0x50c9b3[_0x111337('0x1b2')],'callbackUniqueid':this[_0x111337('0xa5')][_0x111337('0x182')],'tags':_0x111337('0x13a'),'description':'Callback\x20scheduled\x20at\x20'+_0x50c9b3[_0x111337('0x1b2')]['toString'](),'priority':_0x50c9b3[_0x111337('0x11e')]})[_0x111337('0x13f')](function(_0x226ece){_0x1c7b31(null,_0x226ece);})[_0x111337('0x37')](function(_0x3d4f53){_0x1c7b31(_0x3d4f53);});},AGIVertices[_0x4502c7('0xbd')]['getPause']=function(_0x250d43,_0x178636){const _0x427786=_0x4502c7;this[_0x427786('0x195')][_0x427786('0xf8')](_0x250d43)['then'](function(_0x5dddd3){_0x178636(null,_0x5dddd3?_0x5dddd3['name']:![]);})[_0x427786('0x37')](function(_0x3ec71a){_0x178636(_0x3ec71a);});},AGIVertices[_0x4502c7('0xbd')]['agentPause']=function(_0x1aeba2,_0x42a341,_0x585a4d){const _0x55aeaf=_0x4502c7,_0x39393a={'role':_0x55aeaf('0x177')};_0x39393a[_0x1aeba2]=this[_0x55aeaf('0xa5')]['callerid'],this[_0x55aeaf('0x195')]['agentPause'](_0x39393a,_0x42a341,this['channel'][_0x55aeaf('0x182')])[_0x55aeaf('0x13f')](function(_0x1e8889){_0x585a4d(null,_['isNil'](_0x1e8889)?![]:!![]);})['catch'](function(_0x4d074a){const _0x127033=_0x55aeaf;logger[_0x127033('0x113')](_0x4d074a),_0x585a4d(null,![]);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xcb')]=function(_0x19cc24,_0x434609){const _0x3d0f75=_0x4502c7,_0x1725e4={'role':_0x3d0f75('0x177')};_0x1725e4[_0x19cc24]=this['channel'][_0x3d0f75('0x6c')],this[_0x3d0f75('0x195')][_0x3d0f75('0xcb')](_0x1725e4)[_0x3d0f75('0x13f')](function(_0x4fcc66){const _0x55f4f=_0x3d0f75;_0x434609(null,_[_0x55f4f('0x153')](_0x4fcc66)?![]:!![]);})[_0x3d0f75('0x37')](function(_0x374883){const _0x704186=_0x3d0f75;logger[_0x704186('0x113')](_0x374883),_0x434609(null,![]);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x116')]=function(_0x5d3e8f,_0x3eb464){const _0x43724e=_0x4502c7,_0x5d23cb={'role':_0x43724e('0x177')};_0x5d23cb[_0x5d3e8f]=this[_0x43724e('0xa5')]['callerid'],this[_0x43724e('0x195')][_0x43724e('0x116')](_0x5d23cb)[_0x43724e('0x13f')](function(_0x3a04b4){_0x3eb464(null,_['isNil'](_0x3a04b4)?![]:!![]);})[_0x43724e('0x37')](function(_0xff817f){const _0x18749c=_0x43724e;logger[_0x18749c('0x113')](_0xff817f),_0x3eb464(null,![]);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x114')]=function(_0x30ff5d,_0xe22682){const _0x15d026=_0x4502c7,_0x4de760={'role':_0x15d026('0x177')};_0x4de760[_0x30ff5d]=this['channel']['callerid'];const _0x442a5c=_0x30ff5d!=_0x15d026('0x129')?util[_0x15d026('0x132')](_0x15d026('0x17a'),_0x15d026('0x133'),this[_0x15d026('0xa5')][_0x15d026('0x6c')]):undefined;this[_0x15d026('0x195')][_0x15d026('0x114')](_0x4de760,_0x442a5c)[_0x15d026('0x13f')](function(_0x1c791e){const _0x57da57=_0x15d026;_0xe22682(null,_[_0x57da57('0x153')](_0x1c791e)?![]:!![]);})[_0x15d026('0x37')](function(_0x46cf7c){const _0x13b4b4=_0x15d026;logger[_0x13b4b4('0x113')](_0x46cf7c),_0xe22682(null,![]);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x101')]=function(_0x9fae76,_0x3f68bb){const _0x32fa8d=_0x4502c7;sh[_0x32fa8d('0x58')](_[_0x32fa8d('0x16c')](_0x9fae76),function(_0x519086,_0x8587ee){const _0x5ce29b=_0x8587ee['replace'](/(\r\n|\n|\r)/gm,'');_0x3f68bb(null,_0x5ce29b);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1b7')]=function(_0x24cf6a,_0x2fcc2b){const _0x3807ba=_0x4502c7;scripts['googleCloudTTS'](_0x24cf6a[_0x3807ba('0xaa')],_0x24cf6a[_0x3807ba('0x171')]||_0x3807ba('0x183'),_0x24cf6a['text'],_0x24cf6a[_0x3807ba('0x88')]||_0x3807ba('0x181'),_0x24cf6a[_0x3807ba('0x176')]||_0x3807ba('0xf1'),_0x24cf6a['audioEncoding']||_0x3807ba('0x74'))[_0x3807ba('0x13f')](function(_0x137a82){_0x2fcc2b(null,_0x137a82);})[_0x3807ba('0x37')](function(_0x3d6069){_0x2fcc2b(_0x3d6069);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x15a')]=function(_0x200b84,_0x4d212c){const _0xe3428a=_0x4502c7;scripts[_0xe3428a('0x15a')](_0x200b84[_0xe3428a('0x183')],_0x200b84[_0xe3428a('0x162')]||'en',0x1)[_0xe3428a('0x13f')](function(_0x395d04){_0x4d212c(null,_0x395d04);})[_0xe3428a('0x37')](function(_0x32979e){_0x4d212c(_0x32979e);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x40')]=function(_0x2381a2,_0x572759){const _0xeaa068=_0x4502c7,_0x3faa2c={'uri':_0x2381a2[_0xeaa068('0xfa')],'method':_0x2381a2['method'],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x2381a2[_0xeaa068('0x19a')])===_0xeaa068('0x4')&&parseInt(_0x2381a2['timeout'])>=0x1?parseInt(_0x2381a2[_0xeaa068('0x19a')])*0x3e8:0x5*0x3e8};if(_[_0xeaa068('0x34')]([_0xeaa068('0x136'),_0xeaa068('0xf4')],_0x3faa2c[_0xeaa068('0xb')][_0xeaa068('0x148')]()))try{_0x3faa2c['body']=_0x2381a2[_0xeaa068('0xa0')]?JSON['parse'](_0x2381a2[_0xeaa068('0xa0')]):{};}catch(_0x287e82){logger[_0xeaa068('0x113')]('An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function',_0x287e82);}try{_0x3faa2c[_0xeaa068('0x85')]=_0x2381a2[_0xeaa068('0xdc')]?JSON['parse'](_0x2381a2[_0xeaa068('0xdc')]):{};}catch(_0x33c911){logger[_0xeaa068('0x113')](_0xeaa068('0x1ab'),_0x33c911);}if(_0x2381a2['computedVariables'])try{const _0x549a51=require(_0x2381a2[_0xeaa068('0x0')])[_0xeaa068('0xdb')](this,_0x3faa2c);_0x3faa2c[_0xeaa068('0xae')]=Mustache[_0xeaa068('0x9c')](_0x2381a2['url'],_0x549a51,{},['$$','$$']),_0x3faa2c[_0xeaa068('0x85')]&&(_0x3faa2c[_0xeaa068('0x85')]=JSON[_0xeaa068('0x147')](Mustache[_0xeaa068('0x9c')](JSON[_0xeaa068('0x86')](_0x3faa2c[_0xeaa068('0x85')]),_0x549a51,{},['$$','$$']))),_0x3faa2c[_0xeaa068('0x146')]&&(_0x3faa2c['body']=JSON[_0xeaa068('0x147')](Mustache[_0xeaa068('0x9c')](JSON[_0xeaa068('0x86')](_0x3faa2c[_0xeaa068('0x146')]),_0x549a51,{},['$$','$$'])));}catch(_0x1f3b4c){logger[_0xeaa068('0x113')](_0xeaa068('0x49'),_0x1f3b4c);}rp(_0x3faa2c)['then'](function(_0x1906e2){const _0x39d60f=_0xeaa068,_0xdbf96f={'statusCode':_0x1906e2[_0x39d60f('0x103')]||0xc8,'statusMessage':_0x1906e2[_0x39d60f('0x1a7')]||'OK','headers':_0x1906e2[_0x39d60f('0x85')]||{},'body':_0x1906e2[_0x39d60f('0x146')]||{}};_0x572759(null,_0xdbf96f);})[_0xeaa068('0x37')](function(_0xe85181){const _0x301a99=_0xeaa068,_0x59d74c={'statusCode':_0xe85181[_0x301a99('0x103')]||0x1f4,'statusMessage':_0xe85181[_0x301a99('0x53')]||_0x301a99('0x145'),'headers':_0xe85181[_0x301a99('0xd')][_0x301a99('0x85')]||{},'body':_0xe85181['options'][_0x301a99('0x146')]||{}};_0x572759(null,_0x59d74c);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x57')]=function(_0xb89995,_0x2108a9){const _0x4ae389=_0x4502c7;scripts[_0x4ae389('0x57')](this[_0x4ae389('0xa5')][_0x4ae389('0x182')],_0xb89995[_0x4ae389('0x157')],_0xb89995['text'],_0xb89995['dialogflow_language']||'en')[_0x4ae389('0x13f')](function(_0x212f06){_0x2108a9(null,_0x212f06);})[_0x4ae389('0x37')](function(_0x39ee0b){_0x2108a9(_0x39ee0b);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xe9')]=function(_0x49a35a,_0x13d2b3){const _0x3a98a2=_0x4502c7;scripts[_0x3a98a2('0xe9')](this[_0x3a98a2('0xa5')],_0x49a35a)['then'](function(_0x27417b){_0x13d2b3(null,_0x27417b);})[_0x3a98a2('0x37')](function(_0x64f727){_0x13d2b3(_0x64f727);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xed')]=function(_0x5db6b5,_0x5a3eb7){const _0x21bfa0=_0x4502c7;scripts['ispeechTTS'](_0x5db6b5['key'],_0x5db6b5['text'],_0x5db6b5['ispeech_tts_language']||_0x21bfa0('0x181'),_0x5db6b5[_0x21bfa0('0x11')])[_0x21bfa0('0x13f')](function(_0xd3bf55){_0x5a3eb7(null,_0xd3bf55);})[_0x21bfa0('0x37')](function(_0x4fb3f2){_0x5a3eb7(_0x4fb3f2);});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x22')]=function(_0x2d20b7,_0x1f19c7,_0x4d14a5){const _0x1db56f=_0x4502c7;scripts[_0x1db56f('0x22')](_0x1f19c7,_0x2d20b7['key'],_0x2d20b7[_0x1db56f('0x11f')]||_0x1db56f('0x181'),this[_0x1db56f('0x13')](_0x2d20b7['model'])?_0x2d20b7['model']:undefined)[_0x1db56f('0x13f')](function(_0x15bedc){_0x4d14a5(null,_0x15bedc);})[_0x1db56f('0x37')](function(_0xded3b6){_0x4d14a5(_0xded3b6);});},AGIVertices['prototype'][_0x4502c7('0x59')]=function(_0x2d721e,_0x23f720){const _0x320629=_0x4502c7;scripts[_0x320629('0x59')](_0x2d721e[_0x320629('0x39')],_0x2d721e['aws_secret_access_key'],_0x2d721e[_0x320629('0x68')],_0x2d721e['aws_polly_voice']||_0x320629('0xd0'),_0x2d721e[_0x320629('0x183')],_0x2d721e[_0x320629('0x17d')]||'text')[_0x320629('0x13f')](function(_0x4235e4){_0x23f720(null,_0x4235e4);})[_0x320629('0x37')](function(_0x531b2e){_0x23f720(_0x531b2e);});},AGIVertices['prototype'][_0x4502c7('0x10a')]=function(_0x309dd5,_0x20c922){const _0x31bcd4=_0x4502c7;scripts['awsLex'](this[_0x31bcd4('0xa5')][_0x31bcd4('0x182')],_0x309dd5[_0x31bcd4('0x39')],_0x309dd5['aws_secret_access_key'],_0x309dd5[_0x31bcd4('0x1a8')],_0x309dd5[_0x31bcd4('0x183')],_0x309dd5[_0x31bcd4('0x115')])[_0x31bcd4('0x13f')](function(_0x10b6c3){_0x20c922(null,_0x10b6c3);})[_0x31bcd4('0x37')](function(_0x3ea2da){_0x20c922(_0x3ea2da);});},AGIVertices['prototype'][_0x4502c7('0x154')]=function(_0x22672d,_0x5bb981,_0x5897fd){const _0xda908c=_0x4502c7;scripts[_0xda908c('0x154')](_0x5bb981,_0x22672d[_0xda908c('0x157')],_0x22672d[_0xda908c('0x188')]||_0xda908c('0x181'))[_0xda908c('0x13f')](function(_0x37d698){_0x5897fd(null,_0x37d698);})[_0xda908c('0x37')](function(_0x42a86b){_0x5897fd(_0x42a86b);});},AGIVertices[_0x4502c7('0xbd')]['tildeASR']=function(_0x108274,_0x403de9,_0x4e3af8){const _0x2d2375=_0x4502c7;scripts['tildeASR'](_0x403de9,_0x108274[_0x2d2375('0x18d')],_0x108274[_0x2d2375('0xd4')],_0x108274[_0x2d2375('0xae')])['then'](function(_0x142d12){_0x4e3af8(null,_0x142d12);})['catch'](function(_0x1da8c3){_0x4e3af8(_0x1da8c3);});},AGIVertices['prototype']['clear']=function(_0xc3544a){const _0x4b071e=_0x4502c7,_0x384740=_['includes'](verticesWithRetry,_0xc3544a[_0x4b071e('0xde')])?_0xc3544a:_[_0x4b071e('0x81')](_0xc3544a);for(const _0xa5b960 in _0x384740){typeof _0x384740[_0xa5b960]!==_0x4b071e('0x4d')&&(_0x384740[_0xa5b960]&&_[_0x4b071e('0x9e')](_0x384740[_0xa5b960])&&(_[_0x4b071e('0x34')](recursiveMapAttributes,_0xa5b960)?_0x384740[_0xa5b960]=this[_0x4b071e('0x61')](_0x384740[_0xa5b960]):_0x384740[_0xa5b960]=this['replaceAllVariables'](_0x384740[_0xa5b960])));}return _0x384740;},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x155')]=function(_0x1cb545){const _0xc88c3=_0x4502c7;for(const _0x39dd1d in _0x1cb545){if(typeof _0x1cb545[_0x39dd1d]!==_0xc88c3('0x4d')){if(_[_0xc88c3('0x1a2')](_0x1cb545[_0x39dd1d]))this[_0xc88c3('0x155')](_0x1cb545[_0x39dd1d]);else{if(_[_0xc88c3('0xf7')](_0x1cb545[_0x39dd1d]))for(let _0x18e799=0x0;_0x18e799<_0x1cb545[_0x39dd1d]['length'];_0x18e799++){this[_0xc88c3('0x155')](_0x1cb545[_0x39dd1d][_0x18e799]);}else _[_0xc88c3('0x9e')](_0x1cb545[_0x39dd1d])&&(_0x1cb545[_0x39dd1d]=this['replaceAllVariables'](_0x1cb545[_0x39dd1d]));}}}},AGIVertices['prototype'][_0x4502c7('0xc0')]=function(_0x1dae94,_0x341a20){const _0x4cdef=_0x4502c7;for(const _0xa1bf5 in _0x1dae94){if(typeof _0x1dae94[_0xa1bf5]!=='undefined'){if(_[_0x4cdef('0x1a2')](_0x1dae94[_0xa1bf5]))!_[_0x4cdef('0xf3')](_0x1dae94[_0xa1bf5])&&this[_0x4cdef('0xc0')](_0x1dae94[_0xa1bf5],util[_0x4cdef('0x132')](_0x4cdef('0x35'),_0x341a20,_0xa1bf5));else{if(_[_0x4cdef('0xf7')](_0x1dae94[_0xa1bf5]))for(let _0x22348c=0x0;_0x22348c<_0x1dae94[_0xa1bf5][_0x4cdef('0x10e')];_0x22348c++){this[_0x4cdef('0xc0')](_0x1dae94[_0xa1bf5][_0x22348c],util['format'](_0x4cdef('0x35'),_0x341a20,_0xa1bf5+'['+_0x22348c+']'));}else!_[_0x4cdef('0x153')](_0x1dae94[_0xa1bf5])&&this[_0x4cdef('0xa5')][_0x4cdef('0x164')](util[_0x4cdef('0x132')](_0x4cdef('0x35'),_0x341a20,_0xa1bf5),_0x1dae94[_0xa1bf5]);}}}},AGIVertices['prototype'][_0x4502c7('0x61')]=function(_0x3026ff){const _0x4c1f9e=_0x4502c7;try{const _0x56d133=JSON['parse'](_0x3026ff);return this[_0x4c1f9e('0x155')](_0x56d133),JSON['stringify'](_0x56d133);}catch(_0x41fd6f){return this['replaceAllVariables'](_0x3026ff);}},AGIVertices[_0x4502c7('0xbd')]['replaceAllVariables']=function(_0x5d312b){const _0x4792ea=_0x4502c7,_0x400883=_0x5d312b['split']('{');for(let _0x1a580c=0x1;_0x1a580c<_0x400883['length'];_0x1a580c+=0x1){const _0x5c5e1a=_0x400883[_0x1a580c][_0x4792ea('0x143')]('}');_0x5c5e1a[_0x4792ea('0x10e')]>0x1&&(_0x5d312b=_0x5d312b[_0x4792ea('0x138')]('{'+_0x5c5e1a[0x0]+'}',this[_0x4792ea('0xa5')][_0x4792ea('0x8c')](_0x5c5e1a[0x0])['extra']||_0x5c5e1a[0x0]));}if(_0x400883['length']===0x1)return _0x5d312b['toString']();return this[_0x4792ea('0x91')](_0x5d312b);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x19b')]=function(_0x2fb1bd,_0x4e2834){const _0x240700=_0x4502c7,_0x5a89e6=this[_0x240700('0xa5')]['getVariable'](_0x2fb1bd);if(_0x5a89e6[_0x240700('0x13b')]===-0x1)return _0x5a89e6;return logger['info'](util[_0x240700('0x132')](_0x240700('0x100'),_0x4e2834,_0x5a89e6[_0x240700('0x98')])),this['channel'][_0x240700('0x164')](_0x4e2834,_0x5a89e6[_0x240700('0x98')]);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x13')]=function(_0x1c24b0){return _0x1c24b0&&_0x1c24b0!=='0'&&_0x1c24b0!=='-1'&&_0x1c24b0!=='';},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x12')]=function(_0x3a1270){const _0x24db46=_0x4502c7;return this[_0x24db46('0xac')][_0x24db46('0xdb')](this,_0x3a1270,'-'),_0x3a1270[_0x24db46('0x6')]=_0x3a1270[_0x24db46('0x12')],{'code':0xc8,'result':'-'};},AGIVertices['prototype'][_0x4502c7('0x78')]=function(_0x41701a){const _0x41a3d1=_0x4502c7;logger['info'](util[_0x41a3d1('0x132')](_0x41a3d1('0x83'),_0x41701a[_0x41a3d1('0x160')]));if(!this[_0x41a3d1('0x13')](_0x41701a[_0x41a3d1('0x183')]))return this['channel'][_0x41a3d1('0x18b')]('no\x20text\x20configured');let _0xd1d722='\x22'+_0x41701a[_0x41a3d1('0x183')]+'\x22';this[_0x41a3d1('0x13')](_0x41701a[_0x41a3d1('0xd')])&&(_0xd1d722+=','+_0x41701a['options']);const _0x2a7436=this[_0x41a3d1('0xa5')][_0x41a3d1('0x58')](_0x41a3d1('0x99'),_0xd1d722);if(_0x2a7436[_0x41a3d1('0x13b')]===-0x1)return _0x2a7436;return this[_0x41a3d1('0xa5')][_0x41a3d1('0x18b')](util[_0x41a3d1('0x132')](_0x41a3d1('0x29'),_0xd1d722));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x7a')]=function(_0x5990d5){const _0x214f05=_0x4502c7;logger[_0x214f05('0x111')](util[_0x214f05('0x132')](_0x214f05('0xdf'),_0x5990d5[_0x214f05('0x160')]));if(!this['isConfigured'](_0x5990d5[_0x214f05('0x48')]))return this[_0x214f05('0xa5')][_0x214f05('0x18b')](_0x214f05('0x12b'));let _0x463395=_0x5990d5['grammar'];this['isConfigured'](_0x5990d5[_0x214f05('0xd')])&&(_0x463395+=','+_0x5990d5[_0x214f05('0xd')]);const _0x4778c5=this[_0x214f05('0xa5')][_0x214f05('0x58')](_0x214f05('0x15b'),_0x463395);if(_0x4778c5[_0x214f05('0x13b')]===-0x1)return _0x4778c5;const _0x1cbc87=this[_0x214f05('0x19b')]('RECOG_CONFIDENCE()',_0x214f05('0x135'));if(_0x1cbc87['result']===-0x1)return _0x1cbc87;const _0x3e5f08=this[_0x214f05('0x19b')](_0x214f05('0x65'),_0x214f05('0x14'));if(_0x3e5f08['result']===-0x1)return _0x3e5f08;const _0x392f65=this[_0x214f05('0x19b')]('RECOG_INSTANCE()',_0x214f05('0x1b9'));if(_0x392f65['result']===-0x1)return _0x392f65;return this[_0x214f05('0xa5')][_0x214f05('0x18b')](util[_0x214f05('0x132')](_0x214f05('0x1ad'),_0x463395));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x109')]=function(_0x4d6a99){const _0x328887=_0x4502c7;return logger[_0x328887('0x111')](util[_0x328887('0x132')](_0x328887('0x87'),_0x4d6a99[_0x328887('0x160')])),this[_0x328887('0xa5')][_0x328887('0x109')]([_0x4d6a99[_0x328887('0x174')],_0x4d6a99[_0x328887('0x5c')]]);},AGIVertices['prototype'][_0x4502c7('0x18c')]=function(_0x5ec884){const _0x47deb7=_0x4502c7;logger['info'](util[_0x47deb7('0x132')](_0x47deb7('0x32'),_0x5ec884[_0x47deb7('0x160')]));if(this[_0x47deb7('0x13')](_0x5ec884['timeout'])){logger['info'](util[_0x47deb7('0x132')]('Wait\x20%s\x20seconds\x20before\x20answer',_0x5ec884[_0x47deb7('0x19a')]));const _0x106b25=this[_0x47deb7('0xa5')]['wait'](_0x5ec884['timeout']);if(_0x106b25['result']===-0x1)return _0x106b25;}return this[_0x47deb7('0xa5')][_0x47deb7('0x18c')]();},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x13a')]=function(_0x326a6f){const _0x358ab0=_0x4502c7;logger[_0x358ab0('0x111')](util['format']('Enter\x20in\x20CALLBACK\x20(%s)\x20block',_0x326a6f[_0x358ab0('0x160')]));if(!this['isConfigured'](_0x326a6f[_0x358ab0('0x1')]))return this[_0x358ab0('0xa5')]['error'](_0x326a6f,_0x358ab0('0x16d'));return _0x326a6f['scheduledAt']=moment(),this['isConfigured'](_0x326a6f[_0x358ab0('0x18')])&&(_0x326a6f[_0x358ab0('0x1b2')]=moment()[_0x358ab0('0x77')](_0x326a6f[_0x358ab0('0x18')],_0x358ab0('0x7'))),!this[_0x358ab0('0x13')](_0x326a6f[_0x358ab0('0x11e')])&&(_0x326a6f[_0x358ab0('0x11e')]=0x2),this[_0x358ab0('0xf')]['sync'](this,_0x326a6f),this[_0x358ab0('0xa5')]['noop'](util['format']('CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s',_0x326a6f[_0x358ab0('0xdd')],_0x326a6f[_0x358ab0('0x1')],_0x326a6f[_0x358ab0('0x1b2')]));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x128')]=function(_0x3c8209){const _0x2f2518=_0x4502c7;logger[_0x2f2518('0x111')](util[_0x2f2518('0x132')](_0x2f2518('0xc8'),_0x3c8209[_0x2f2518('0x160')]));const _0x375544=this[_0x2f2518('0xa5')][_0x2f2518('0x58')](_0x3c8209[_0x2f2518('0x1bb')],_0x3c8209[_0x2f2518('0xd')]);if(_0x375544[_0x2f2518('0x13b')]===-0x1)return _0x375544;return this[_0x2f2518('0xa5')]['noop'](util[_0x2f2518('0x132')]('Executed\x20command\x20%s\x20%s',_0x3c8209['application'],_0x3c8209['options']));},AGIVertices[_0x4502c7('0xbd')]['lumenvoxtts']=function(_0x34f9b8){const _0x48a4d0=_0x4502c7;logger[_0x48a4d0('0x111')](util[_0x48a4d0('0x132')](_0x48a4d0('0xfe'),_0x34f9b8['label']));if(!this[_0x48a4d0('0x13')](_0x34f9b8[_0x48a4d0('0x183')]))return this[_0x48a4d0('0xa5')][_0x48a4d0('0x18b')](_0x48a4d0('0xb1'));let _0x210654='\x22'+_0x34f9b8[_0x48a4d0('0x183')]+'\x22';this[_0x48a4d0('0x13')](_0x34f9b8['options'])&&(_0x210654+=','+_0x34f9b8[_0x48a4d0('0xd')]);const _0x236808=this[_0x48a4d0('0xa5')][_0x48a4d0('0x58')](_0x48a4d0('0x99'),_0x210654);if(_0x236808[_0x48a4d0('0x13b')]===-0x1)return _0x236808;return this['channel']['noop'](util[_0x48a4d0('0x132')](_0x48a4d0('0x29'),_0x210654));},AGIVertices[_0x4502c7('0xbd')]['sestektts']=function(_0x1b13e7){const _0x4f20da=_0x4502c7;logger['info'](util['format']('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x1b13e7[_0x4f20da('0x160')]));if(!this['isConfigured'](_0x1b13e7[_0x4f20da('0x183')]))return this['channel']['noop'](_0x4f20da('0xb1'));let _0x1871a8='\x22'+_0x1b13e7[_0x4f20da('0x183')]+'\x22';this['isConfigured'](_0x1b13e7['options'])&&(_0x1871a8+=','+_0x1b13e7[_0x4f20da('0xd')]);const _0x4c79bf=this['channel']['exec']('MRCPSynth',_0x1871a8);if(_0x4c79bf[_0x4f20da('0x13b')]===-0x1)return _0x4c79bf;return this[_0x4f20da('0xa5')]['noop'](util[_0x4f20da('0x132')](_0x4f20da('0x29'),_0x1871a8));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x63')]=function(_0x5b09d1){const _0x475950=_0x4502c7;logger[_0x475950('0x111')](util[_0x475950('0x132')](_0x475950('0xe2'),_0x5b09d1[_0x475950('0x160')]));if(!this[_0x475950('0x13')](_0x5b09d1[_0x475950('0x48')]))return this[_0x475950('0xa5')][_0x475950('0x18b')](_0x475950('0x12b'));let _0x26d171=_0x5b09d1[_0x475950('0x48')];this['isConfigured'](_0x5b09d1['options'])&&(_0x26d171+=','+_0x5b09d1[_0x475950('0xd')]);const _0x263a17=this[_0x475950('0xa5')][_0x475950('0x58')](_0x475950('0x15b'),_0x26d171);if(_0x263a17[_0x475950('0x13b')]===-0x1)return _0x263a17;const _0x4979b4=this[_0x475950('0x19b')](_0x475950('0xf9'),_0x475950('0x97'));if(_0x4979b4['result']===-0x1)return _0x4979b4;const _0x36afda=this[_0x475950('0x19b')]('RECOG_INPUT()',_0x475950('0x9b'));if(_0x36afda[_0x475950('0x13b')]===-0x1)return _0x36afda;const _0x542a86=this['getAndSetVariable'](_0x475950('0x10d'),_0x475950('0xb8'));if(_0x542a86['result']===-0x1)return _0x542a86;return this[_0x475950('0xa5')][_0x475950('0x18b')](util[_0x475950('0x132')]('Executed\x20command\x20MRCPRecog\x20%s',_0x26d171));},AGIVertices[_0x4502c7('0xbd')]['sestekasr']=function(_0x52acaa){const _0x271386=_0x4502c7;logger[_0x271386('0x111')](util[_0x271386('0x132')](_0x271386('0x144'),_0x52acaa[_0x271386('0x160')]));if(!this[_0x271386('0x13')](_0x52acaa['grammar']))return this[_0x271386('0xa5')]['noop']('no\x20grammar\x20configured');let _0x188030=_0x52acaa[_0x271386('0x48')];this['isConfigured'](_0x52acaa[_0x271386('0xd')])&&(_0x188030+=','+_0x52acaa['options']);const _0x45ac49=this[_0x271386('0xa5')][_0x271386('0x58')](_0x271386('0x15b'),_0x188030);if(_0x45ac49[_0x271386('0x13b')]===-0x1)return _0x45ac49;const _0x30ef55=this[_0x271386('0x19b')](_0x271386('0xf9'),_0x271386('0x1b3'));if(_0x30ef55[_0x271386('0x13b')]===-0x1)return _0x30ef55;const _0x213639=this[_0x271386('0x19b')]('RECOG_INPUT()',_0x271386('0x62'));if(_0x213639[_0x271386('0x13b')]===-0x1)return _0x213639;const _0x13129f=this[_0x271386('0x19b')](_0x271386('0x10d'),_0x271386('0x1a3'));if(_0x13129f['result']===-0x1)return _0x13129f;return this['channel'][_0x271386('0x18b')](util[_0x271386('0x132')](_0x271386('0x1ad'),_0x188030));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x14c')]=function(_0x5409ef){const _0x2fab61=_0x4502c7;logger[_0x2fab61('0x111')](util[_0x2fab61('0x132')](_0x2fab61('0xd1'),_0x5409ef[_0x2fab61('0x160')]));if(!this['isConfigured'](_0x5409ef['odbc_id']))return this[_0x2fab61('0xa5')]['error'](_0x5409ef,_0x2fab61('0x4f'));const _0x51b186=this[_0x2fab61('0x1b5')][_0x2fab61('0xdb')](this,_0x5409ef[_0x2fab61('0x7f')]);if(!_0x51b186)return this[_0x2fab61('0xa5')]['error'](_0x5409ef,_0x2fab61('0x2a'));if(!this[_0x2fab61('0x13')](_0x5409ef[_0x2fab61('0x10c')]))return this[_0x2fab61('0xa5')][_0x2fab61('0x113')](_0x5409ef,'no\x20query\x20configured');const _0x1a478d=_0x5409ef[_0x2fab61('0x10c')][_0x2fab61('0x17c')](/(\r\n|\n|\r)/gm,'\x20');this[_0x2fab61('0xa5')]['noop'](util[_0x2fab61('0x132')](_0x2fab61('0xc5'),_0x1a478d));const _0x5ddb3c=this['getQueryOdbc'][_0x2fab61('0xdb')](this,_0x51b186,_0x1a478d);this['createSquareDetailsReport']['sync'](this,_0x5409ef,_0x1a478d);if(!this[_0x2fab61('0x13')](_0x5409ef['variable_id']))return this['channel'][_0x2fab61('0x18b')](_0x2fab61('0x15d'));const _0x2c3e16=this['getVariable']['sync'](this,_0x5409ef[_0x2fab61('0x67')]);if(!_0x2c3e16)return this['channel'][_0x2fab61('0x113')](_0x5409ef,'no\x20variable\x20found');const _0x42815a=this;return _0x5ddb3c[_0x2fab61('0x5e')](function(_0x4d8779,_0x2418f1){const _0x5dd4ac=_0x2fab61;Object[_0x5dd4ac('0x24')](_0x4d8779)[_0x5dd4ac('0x5e')](function(_0x13a9ec){const _0x219dcc=_0x5dd4ac;_0x42815a[_0x219dcc('0xa5')][_0x219dcc('0x164')](util[_0x219dcc('0x132')](_0x219dcc('0x169'),_0x2c3e16,_0x2418f1,_0x13a9ec),_0x4d8779[_0x13a9ec]);});}),this[_0x2fab61('0xa5')][_0x2fab61('0x164')](util['format'](_0x2fab61('0x2e'),_0x2c3e16),_0x5ddb3c[_0x2fab61('0x10e')]),this['channel'][_0x2fab61('0x18b')](util[_0x2fab61('0x132')](_0x2fab61('0x1c4'),_0x2c3e16));},AGIVertices['prototype'][_0x4502c7('0x94')]=function(_0x390a32){const _0x1ce162=_0x4502c7;logger[_0x1ce162('0x140')](util[_0x1ce162('0x132')](_0x1ce162('0x193'),_0x390a32[_0x1ce162('0x160')]));if(!this[_0x1ce162('0x13')](_0x390a32[_0x1ce162('0xc')]))return this[_0x1ce162('0xa5')][_0x1ce162('0x113')](_0x390a32,_0x1ce162('0x31'));const _0x2fc9a7=this[_0x1ce162('0x23')][_0x1ce162('0xdb')](this,_0x390a32[_0x1ce162('0xc')]);if(!_0x2fc9a7)return this['channel'][_0x1ce162('0x113')](_0x390a32,_0x1ce162('0x178'));const _0x4985ba=this[_0x1ce162('0xa5')]['exec'](_0x1ce162('0x16'),[util['format'](_0x1ce162('0x107'),_0x2fc9a7),_0x390a32['timeout'],_0x390a32[_0x1ce162('0xeb')],_0x390a32[_0x1ce162('0xfa')]]);if(_0x4985ba['result']===-0x1)return _0x4985ba;return this['channel'][_0x1ce162('0x18b')](util[_0x1ce162('0x132')](_0x1ce162('0xf5'),_0x1ce162('0x16')));},AGIVertices['prototype'][_0x4502c7('0x5')]=function(_0x8fd08e){const _0x379363=_0x4502c7;logger[_0x379363('0x111')](util[_0x379363('0x132')](_0x379363('0x1f'),_0x8fd08e['label']));if(!this[_0x379363('0x13')](_0x8fd08e[_0x379363('0x157')]))return this[_0x379363('0xa5')]['noop'](_0x379363('0x12c'));if(!this[_0x379363('0x13')](_0x8fd08e[_0x379363('0x183')]))return this[_0x379363('0xa5')][_0x379363('0x18b')](_0x379363('0xb1'));this[_0x379363('0xa5')][_0x379363('0x186')]=!![],this[_0x379363('0xac')](_0x8fd08e),this[_0x379363('0x27')](_0x8fd08e['text'],'in'),this[_0x379363('0xa5')][_0x379363('0x18b')](util[_0x379363('0x132')]('Trying\x20Dialogflow:\x20%s',_0x8fd08e[_0x379363('0x183')]));const _0x2cd00f=this[_0x379363('0x57')][_0x379363('0xdb')](this,_0x8fd08e);if(_0x2cd00f){for(const _0x3bfdb8 in _0x2cd00f){typeof _0x2cd00f[_0x3bfdb8]!=='undefined'&&this[_0x379363('0xa5')][_0x379363('0x164')](util['format'](_0x379363('0x5b'),_0x3bfdb8[_0x379363('0x148')]()),_0x2cd00f[_0x3bfdb8]);}return this[_0x379363('0x27')](_0x2cd00f[_0x379363('0x17')],'out'),this[_0x379363('0xa5')][_0x379363('0x18b')](util[_0x379363('0x132')]('Dialogflow\x20Result\x20%s',_0x2cd00f['speech']));}return this[_0x379363('0xa5')]['error'](_0x8fd08e,_0x379363('0x4c'));},AGIVertices['prototype']['sesteknda']=function(_0x2f3038){const _0x434a51=_0x4502c7;logger[_0x434a51('0x111')](util[_0x434a51('0x132')](_0x434a51('0x8'),_0x2f3038[_0x434a51('0x160')]));if(!this['isConfigured'](_0x2f3038[_0x434a51('0x179')]))return this[_0x434a51('0xa5')]['noop']('no\x20ndauth\x20url\x20configured');if(!this[_0x434a51('0x13')](_0x2f3038['username']))return this['channel'][_0x434a51('0x18b')](_0x434a51('0x8b'));if(!this['isConfigured'](_0x2f3038[_0x434a51('0x126')]))return this[_0x434a51('0xa5')]['noop'](_0x434a51('0xcd'));if(!this['isConfigured'](_0x2f3038[_0x434a51('0x19c')]))return this[_0x434a51('0xa5')][_0x434a51('0x18b')](_0x434a51('0xb1'));this[_0x434a51('0xa5')][_0x434a51('0x186')]=!![],this['createSquareDetailsReport'](_0x2f3038),this[_0x434a51('0x27')](_0x2f3038[_0x434a51('0x183')],'in'),this['channel']['noop'](util[_0x434a51('0x132')](_0x434a51('0x16f'),_0x2f3038['text']));const _0x1bec69=this[_0x434a51('0xe9')][_0x434a51('0xdb')](this,_0x2f3038);if(_0x1bec69){for(const _0x1bd0d9 in _0x1bec69){typeof _0x1bec69[_0x1bd0d9]!==_0x434a51('0x4d')&&this[_0x434a51('0xa5')][_0x434a51('0x164')](util['format'](_0x434a51('0x165'),_0x1bd0d9['toUpperCase']()),_0x1bec69[_0x1bd0d9]);}this[_0x434a51('0x27')](_0x1bec69[_0x434a51('0x17')],_0x434a51('0x122'));if(_0x1bec69[_0x434a51('0x76')]){this[_0x434a51('0xa5')][_0x434a51('0x18b')](util[_0x434a51('0x132')](_0x434a51('0x1e'),_0x1bec69[_0x434a51('0x76')]));const _0x74f56f=this[_0x434a51('0xa5')][_0x434a51('0x10')](_0x1bec69['audiofile']);try{fs[_0x434a51('0x20')](_0x1bec69['audiofile']+_0x434a51('0xec'));}catch(_0xf37863){logger[_0x434a51('0x113')](_0xf37863);}return _0x74f56f;}else return this[_0x434a51('0xa5')][_0x434a51('0x18b')](util[_0x434a51('0x132')]('SestekNDA\x20Result\x20%s',_0x1bec69[_0x434a51('0x17')]));}return this[_0x434a51('0xa5')][_0x434a51('0x113')](_0x2f3038,'SestekNDA\x20is\x20unreachable');},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1a0')]=function(_0x4895f6){const _0x4974c7=_0x4502c7;return logger[_0x4974c7('0x111')](util[_0x4974c7('0x132')](_0x4974c7('0xe4'),_0x4895f6[_0x4974c7('0x160')])),this[_0x4974c7('0xa5')][_0x4974c7('0x18b')](_0x4974c7('0x1a0'));},AGIVertices['prototype'][_0x4502c7('0x117')]=function(_0xce2b44){const _0x51dd7e=_0x4502c7;logger[_0x51dd7e('0x111')](util[_0x51dd7e('0x132')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0xce2b44[_0x51dd7e('0x160')]));let _0x1d2bf6='';if(_0xce2b44[_0x51dd7e('0x1c3')]){if(!this[_0x51dd7e('0x13')](_0xce2b44['trunk_id']))return this['channel']['error'](_0xce2b44,_0x51dd7e('0xe6'));else{const _0x1dd664=parseInt(_0xce2b44[_0x51dd7e('0x1c3')],0xa);if(isNaN(_0x1dd664))_0x1d2bf6=_0xce2b44[_0x51dd7e('0x1c3')];else{_0x1d2bf6=this[_0x51dd7e('0x6f')]['sync'](this,_0xce2b44[_0x51dd7e('0x1c3')]);if(!_0x1d2bf6)return this[_0x51dd7e('0xa5')]['error'](_0xce2b44,'no\x20trunk\x20found');}}}else{if(_0xce2b44[_0x51dd7e('0x9')])_0x1d2bf6=_0xce2b44[_0x51dd7e('0x9')];else return this[_0x51dd7e('0xa5')][_0x51dd7e('0x113')](_0xce2b44,_0x51dd7e('0xe6'));}const _0x18d697=this['channel'][_0x51dd7e('0x58')]('DIAL',[util[_0x51dd7e('0x132')](_0x51dd7e('0x1ac'),_0x1d2bf6,_0xce2b44[_0x51dd7e('0xdd')]),_0xce2b44[_0x51dd7e('0x19a')],_0xce2b44['opts'],_0xce2b44['url']]);if(_0x18d697[_0x51dd7e('0x13b')]===-0x1)return _0x18d697;return this[_0x51dd7e('0xa5')]['noop'](util['format'](_0x51dd7e('0xf5'),_0x51dd7e('0x16')));},AGIVertices['prototype'][_0x4502c7('0xe3')]=function(_0x2bca3f){const _0x3f4280=_0x4502c7;return logger[_0x3f4280('0x111')](util[_0x3f4280('0x132')](_0x3f4280('0x3a'),_0x2bca3f['label'])),this[_0x3f4280('0xa5')][_0x3f4280('0x18b')]('finally');},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x11b')]=function(_0x5c1932){const _0x2e4861=_0x4502c7;logger[_0x2e4861('0x111')](util[_0x2e4861('0x132')](_0x2e4861('0x33'),_0x5c1932[_0x2e4861('0x160')]));if(_0x5c1932[_0x2e4861('0x6')]===0x0)return this[_0x2e4861('0x12')](_0x5c1932);_0x5c1932[_0x2e4861('0x6')]-=0x1;if(!this[_0x2e4861('0x13')](_0x5c1932[_0x2e4861('0x42')]))return this[_0x2e4861('0xa5')]['error'](_0x5c1932,_0x2e4861('0x152'));const _0x4e6a38=this['getSound'][_0x2e4861('0xdb')](this,_0x5c1932[_0x2e4861('0x42')]);if(!_0x4e6a38)return this[_0x2e4861('0xa5')][_0x2e4861('0x113')](_0x5c1932,'no\x20file\x20audio\x20found');if(!this['isConfigured'](_0x5c1932['variable_id']))return this[_0x2e4861('0xa5')]['error'](_0x2e4861('0x15d'));const _0x4b2f8c=this[_0x2e4861('0xa5')][_0x2e4861('0x71')](_0x4e6a38,_0x5c1932[_0x2e4861('0x14e')],_0x5c1932[_0x2e4861('0x2b')]),_0x673a35=_0x4b2f8c[_0x2e4861('0x13b')]?_0x4b2f8c[_0x2e4861('0x13b')][_0x2e4861('0xd3')]():'';logger[_0x2e4861('0x111')](_0x2e4861('0x5f'),JSON[_0x2e4861('0x86')](_0x4b2f8c));if(_0x4b2f8c['result']===-0x1)return this[_0x2e4861('0xac')][_0x2e4861('0xdb')](this,_0x5c1932,_0x673a35),_0x4b2f8c;else _0x4b2f8c[_0x2e4861('0x98')]==='timeout'?_0x4b2f8c[_0x2e4861('0x13b')]=_0x673a35[_0x2e4861('0x10e')]>=parseInt(_0x5c1932[_0x2e4861('0x3b')])?'x':'i':_0x4b2f8c['result']=_0x673a35[_0x2e4861('0x10e')]>=parseInt(_0x5c1932[_0x2e4861('0x3b')])&&_0x673a35[_0x2e4861('0x10e')]<=parseInt(_0x5c1932['maxdigit'])?'x':'i';const _0x43bfb9=this[_0x2e4861('0x8c')][_0x2e4861('0xdb')](this,_0x5c1932[_0x2e4861('0x67')]);if(!_0x43bfb9)return this['channel'][_0x2e4861('0x113')](_0x5c1932,_0x2e4861('0x134'));this[_0x2e4861('0xa5')][_0x2e4861('0x164')](_0x43bfb9,_0x673a35);if(this['isConfigured'](_0x5c1932[_0x2e4861('0x47')])){const _0x1648a6=parseInt(_0x5c1932[_0x2e4861('0x47')],0xa),_0x1a0f79=rs['generate']({'charset':'*','length':_0x1648a6}),_0x5e8360=_0x673a35[_0x2e4861('0x10e')];_0x5e8360>0x0?_0x5e8360>_0x1648a6?this[_0x2e4861('0xac')]['sync'](this,_0x5c1932,_0x5c1932['hiddendigitspos']===_0x2e4861('0xe0')?_0x1a0f79+_0x673a35[_0x2e4861('0xab')](_0x1648a6):_0x673a35[_0x2e4861('0xab')](0x0,_0x5e8360-_0x1648a6)+_0x1a0f79):this['createSquareDetailsReport'][_0x2e4861('0xdb')](this,_0x5c1932,rs['generate']({'charset':'*','length':_0x5e8360})):this[_0x2e4861('0xac')][_0x2e4861('0xdb')](this,_0x5c1932,'');}else this[_0x2e4861('0xac')][_0x2e4861('0xdb')](this,_0x5c1932,_0x673a35);return _0x4b2f8c;},AGIVertices['prototype'][_0x4502c7('0x1be')]=function(_0x40c82e){const _0x45ef06=_0x4502c7;return logger['info'](util[_0x45ef06('0x132')](_0x45ef06('0xda'),_0x40c82e[_0x45ef06('0x160')])),this[_0x45ef06('0x11b')](_0x40c82e);},AGIVertices['prototype'][_0x4502c7('0x30')]=function(_0x34ccf6){const _0x14980b=_0x4502c7;return logger['info'](util[_0x14980b('0x132')](_0x14980b('0x66'),_0x34ccf6[_0x14980b('0x160')])),this['createSquareDetailsReport'][_0x14980b('0xdb')](this,_0x34ccf6,_0x34ccf6[_0x14980b('0x14f')]),this[_0x14980b('0xa5')][_0x14980b('0x18b')](util[_0x14980b('0x132')](_0x14980b('0x4a'),_0x34ccf6[_0x14980b('0x14f')]));},AGIVertices[_0x4502c7('0xbd')]['awspolly']=function(_0x3ea218){const _0x1550ec=_0x4502c7;logger[_0x1550ec('0x111')](util[_0x1550ec('0x132')](_0x1550ec('0x1bd'),_0x3ea218[_0x1550ec('0x160')]));if(!this[_0x1550ec('0x13')](_0x3ea218[_0x1550ec('0x39')])||!this[_0x1550ec('0x13')](_0x3ea218[_0x1550ec('0x38')]))return this[_0x1550ec('0xa5')]['noop'](_0x1550ec('0x4b'));if(!this[_0x1550ec('0x13')](_0x3ea218[_0x1550ec('0x183')]))return this[_0x1550ec('0xa5')][_0x1550ec('0x18b')](_0x1550ec('0xb1'));this['channel'][_0x1550ec('0x18b')](util[_0x1550ec('0x132')](_0x1550ec('0x180'),_0x3ea218[_0x1550ec('0x183')]));const _0x5352f0=this[_0x1550ec('0x59')]['sync'](this,_0x3ea218);if(_0x5352f0){this[_0x1550ec('0xa5')][_0x1550ec('0x18b')](util['format'](_0x1550ec('0x50'),_0x5352f0));const _0x5785fb=this[_0x1550ec('0xa5')]['streamFile'](_0x5352f0);try{fs[_0x1550ec('0x20')](_0x5352f0+_0x1550ec('0xec'));}catch(_0x52110b){logger['error'](_0x52110b);}return _0x5785fb;}return this[_0x1550ec('0xa5')][_0x1550ec('0x113')](_0x3ea218,'aws\x20Polly\x20is\x20unreachable');},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x151')]=function(_0x353b0f){const _0xde7a5b=_0x4502c7;logger[_0xde7a5b('0x111')](util[_0xde7a5b('0x132')](_0xde7a5b('0x5a'),_0x353b0f['label']));if(!this[_0xde7a5b('0x13')](_0x353b0f[_0xde7a5b('0x39')])||!this[_0xde7a5b('0x13')](_0x353b0f['aws_secret_access_key']))return this[_0xde7a5b('0xa5')]['noop']('no\x20valid\x20credentials\x20configured');if(!this[_0xde7a5b('0x13')](_0x353b0f[_0xde7a5b('0x115')]))return this[_0xde7a5b('0xa5')][_0xde7a5b('0x18b')]('no\x20bot\x20name\x20configured');if(!this[_0xde7a5b('0x13')](_0x353b0f['text']))return this['channel'][_0xde7a5b('0x18b')]('no\x20text\x20configured');this[_0xde7a5b('0xa5')][_0xde7a5b('0x186')]=!![],this[_0xde7a5b('0xac')](_0x353b0f),this[_0xde7a5b('0x27')](_0x353b0f[_0xde7a5b('0x183')],'in'),this['channel'][_0xde7a5b('0x18b')](util[_0xde7a5b('0x132')](_0xde7a5b('0xc7'),_0x353b0f[_0xde7a5b('0x183')]));const _0x3a6f00=this[_0xde7a5b('0x10a')][_0xde7a5b('0xdb')](this,_0x353b0f);if(_0x3a6f00){for(const _0x11a577 in _0x3a6f00){typeof _0x3a6f00[_0x11a577]!==_0xde7a5b('0x4d')&&_[_0xde7a5b('0x9e')](_0x3a6f00[_0x11a577])&&this[_0xde7a5b('0xa5')][_0xde7a5b('0x164')](util[_0xde7a5b('0x132')](_0xde7a5b('0x170'),_0x11a577['toUpperCase']()),_0x3a6f00[_0x11a577]);}return _['isNil'](_0x3a6f00[_0xde7a5b('0x53')])?this[_0xde7a5b('0xa5')]['noop'](_0xde7a5b('0x196')):(this['createSquareMessage'](_0x3a6f00[_0xde7a5b('0x53')],_0xde7a5b('0x122')),this['channel'][_0xde7a5b('0x18b')](util[_0xde7a5b('0x132')](_0xde7a5b('0x41'),_0x3a6f00[_0xde7a5b('0x53')])));}return this[_0xde7a5b('0xa5')][_0xde7a5b('0x113')](_0x353b0f,_0xde7a5b('0x8e'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xa4')]=function(_0x32908d){const _0x4f3b75=_0x4502c7;logger[_0x4f3b75('0x111')](util['format']('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x32908d[_0x4f3b75('0x160')],_0x32908d[_0x4f3b75('0x19a')]));if(!this[_0x4f3b75('0x13')](_0x32908d[_0x4f3b75('0x157')]))return this[_0x4f3b75('0xa5')]['noop'](_0x4f3b75('0x12c'));const _0x5f5624=_0x4f3b75('0x163'),_0x364f58=util[_0x4f3b75('0x132')](_0x4f3b75('0x6a'),FILES_PATH,rs[_0x4f3b75('0xf6')](0x4)),_0x1078f6=util[_0x4f3b75('0x132')](_0x4f3b75('0x35'),_0x364f58,_0x5f5624);let _0x17dca0=!![];_0x32908d['beep']===_0x4f3b75('0x118')&&(_0x17dca0=![]);const _0x18bca6=this['channel']['recordFile'](_0x364f58,_0x5f5624,_0x32908d[_0x4f3b75('0x1b6')],_0x32908d[_0x4f3b75('0x19a')],undefined,_0x17dca0);if(_0x18bca6[_0x4f3b75('0x13b')]!==-0x1){this['channel'][_0x4f3b75('0x18b')](util[_0x4f3b75('0x132')]('google\x20%s\x20file\x20created',_0x1078f6));const _0x536dbd=this[_0x4f3b75('0x154')][_0x4f3b75('0xdb')](this,_0x32908d,_0x1078f6);if(_0x536dbd){for(const _0x5baf71 in _0x536dbd){typeof _0x536dbd[_0x5baf71]!==_0x4f3b75('0x4d')&&this[_0x4f3b75('0xa5')][_0x4f3b75('0x164')](util[_0x4f3b75('0x132')](_0x4f3b75('0xef'),_0x5baf71[_0x4f3b75('0x148')]()),_0x536dbd[_0x5baf71]);}return this['channel']['noop'](util[_0x4f3b75('0x132')](_0x4f3b75('0x197'),JSON['stringify'](_0x536dbd)));}}return _0x18bca6;},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1b8')]=function(_0x20979f){const _0x127f21=_0x4502c7;logger['info'](util[_0x127f21('0x132')]('Enter\x20in\x20TILDEASR\x20(%s)\x20block',_0x20979f['label']));if(!this[_0x127f21('0x13')](_0x20979f[_0x127f21('0x18d')]))return this[_0x127f21('0xa5')][_0x127f21('0x18b')](_0x127f21('0x15c'));if(!this[_0x127f21('0x13')](_0x20979f[_0x127f21('0xd4')]))return this[_0x127f21('0xa5')]['noop'](_0x127f21('0x10f'));const _0x31fd1b='wav',_0x102ce3=util[_0x127f21('0x132')](_0x127f21('0x6a'),FILES_PATH,rs['generate'](0x4)),_0x154dec=util[_0x127f21('0x132')](_0x127f21('0x35'),_0x102ce3,_0x31fd1b);let _0x3bc8d2=!![];_0x20979f['beep']==='NOBEEP'&&(_0x3bc8d2=![]);const _0x38b99c=this['channel'][_0x127f21('0xa7')](_0x102ce3,_0x31fd1b,_0x20979f[_0x127f21('0x1b6')],_0x20979f['timeout'],undefined,_0x3bc8d2);if(_0x38b99c['result']!==-0x1){this[_0x127f21('0xa5')]['noop'](util[_0x127f21('0x132')](_0x127f21('0x123'),_0x154dec));const _0x4b85a8=this[_0x127f21('0x1c1')]['sync'](this,_0x20979f,_0x154dec);if(_0x4b85a8){for(const _0x3e1b1a in _0x4b85a8){typeof _0x4b85a8[_0x3e1b1a]!==_0x127f21('0x4d')&&this[_0x127f21('0xa5')][_0x127f21('0x164')](util[_0x127f21('0x132')](_0x127f21('0xb0'),_0x3e1b1a['toUpperCase']()),_0x4b85a8[_0x3e1b1a]);}return this['channel'][_0x127f21('0x18b')](util['format'](_0x127f21('0x21'),JSON[_0x127f21('0x86')](_0x4b85a8)));}}return _0x38b99c;},AGIVertices['prototype'][_0x4502c7('0x75')]=function(_0x4df2fc){const _0x39b405=_0x4502c7;return logger[_0x39b405('0x111')](util[_0x39b405('0x132')](_0x39b405('0x69'),_0x4df2fc[_0x39b405('0x160')])),this[_0x39b405('0xa5')][_0x39b405('0xc9')](_0x4df2fc['context'],_0x4df2fc[_0x39b405('0xb7')],_0x4df2fc[_0x39b405('0x1af')]);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x104')]=function(_0x2c630b){const _0x50282c=_0x4502c7;logger[_0x50282c('0x111')](util[_0x50282c('0x132')](_0x50282c('0x168'),_0x2c630b['label']));if(!this['isConfigured'](_0x2c630b[_0x50282c('0x12d')]))return this[_0x50282c('0xa5')]['error'](_0x2c630b,_0x50282c('0x16e'));try{const _0x3d9d27=eval(_0x2c630b['condition'])?'true':_0x50282c('0x141');return this[_0x50282c('0xa5')][_0x50282c('0x18b')](util[_0x50282c('0x132')](_0x50282c('0xa3'),_0x2c630b['condition'],_0x3d9d27)),{'code':0xc8,'result':_0x3d9d27};}catch(_0x8bb2e9){return{'code':0xc8,'result':_0x50282c('0x141')};}},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x19e')]=function(_0x454184){const _0x425901=_0x4502c7;logger[_0x425901('0x111')](util[_0x425901('0x132')](_0x425901('0x56'),_0x454184['label']));if(!this[_0x425901('0x13')](_0x454184[_0x425901('0x15e')]))return this[_0x425901('0xa5')][_0x425901('0x113')](_0x454184,_0x425901('0x3c'));const _0x1f6aaa=this[_0x425901('0xb4')][_0x425901('0xdb')](this,_0x454184[_0x425901('0x15e')]);if(!_0x1f6aaa)return this[_0x425901('0xa5')]['error'](_0x454184,'no\x20intervals\x20found');for(let _0x39e687=0x0;_0x39e687<_0x1f6aaa[_0x425901('0x10e')];_0x39e687+=0x1){const _0x8fd74=this[_0x425901('0xa5')][_0x425901('0x8c')](util['format'](_0x425901('0xa8'),_0x1f6aaa[_0x39e687]));if(_0x8fd74[_0x425901('0x13b')]===-0x1)return _0x8fd74;logger[_0x425901('0x111')](util[_0x425901('0x132')]('IFTIME\x20%s\x20%s',_0x1f6aaa[_0x39e687],_0x8fd74['extra']));if(_0x8fd74[_0x425901('0x98')]==='true')return logger[_0x425901('0x111')](util[_0x425901('0x132')](_0x425901('0x121'),_0x1f6aaa[_0x39e687],_0x425901('0x108'))),this[_0x425901('0xa5')][_0x425901('0x18b')](util['format'](_0x425901('0x121'),_0x1f6aaa[_0x39e687],_0x425901('0x108'))),{'code':0xc8,'result':_0x425901('0x108')};else logger[_0x425901('0x111')](util[_0x425901('0x132')]('IFTIME\x20%s\x20%s',_0x1f6aaa[_0x39e687],'false')),this[_0x425901('0xa5')]['noop'](util[_0x425901('0x132')]('IFTIME\x20%s\x20%s',_0x1f6aaa[_0x39e687],'false'));}return{'code':0xc8,'result':_0x425901('0x141')};},AGIVertices['prototype'][_0x4502c7('0x185')]=function(_0x1f39bd){const _0x428fe3=_0x4502c7;return logger[_0x428fe3('0x111')](util[_0x428fe3('0x132')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x1f39bd[_0x428fe3('0x160')])),this['channel'][_0x428fe3('0x185')]();},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x150')]=function(_0x31e4ee){const _0x5d7721=_0x4502c7;logger[_0x5d7721('0x111')](util['format'](_0x5d7721('0x15f'),_0x31e4ee[_0x5d7721('0x160')]));if(!this[_0x5d7721('0x13')](_0x31e4ee[_0x5d7721('0x157')]))return this[_0x5d7721('0xa5')]['noop'](_0x5d7721('0x12c'));const _0x2ef462=_0x5d7721('0x163'),_0x2479a3=util['format'](_0x5d7721('0x6a'),FILES_PATH,rs[_0x5d7721('0xf6')](0x4)),_0x527ce0=util[_0x5d7721('0x132')]('%s.%s',_0x2479a3,_0x2ef462);let _0x2c48a0=!![];_0x31e4ee[_0x5d7721('0x167')]==='NOBEEP'&&(_0x2c48a0=![]);const _0x31a1e8=this['channel']['recordFile'](_0x2479a3,_0x2ef462,_0x31e4ee[_0x5d7721('0x1b6')],_0x31e4ee[_0x5d7721('0x19a')],undefined,_0x2c48a0);if(_0x31a1e8[_0x5d7721('0x13b')]!==-0x1){this[_0x5d7721('0xa5')][_0x5d7721('0x18b')](util[_0x5d7721('0x132')](_0x5d7721('0x73'),_0x527ce0));const _0x120391=this[_0x5d7721('0x22')]['sync'](this,_0x31e4ee,_0x527ce0);if(_0x120391){for(const _0x361a2a in _0x120391){typeof _0x120391[_0x361a2a]!==_0x5d7721('0x4d')&&this[_0x5d7721('0xa5')][_0x5d7721('0x164')](util[_0x5d7721('0x132')](_0x5d7721('0x130'),_0x361a2a[_0x5d7721('0x148')]()),_0x120391[_0x361a2a]);}return this[_0x5d7721('0xa5')][_0x5d7721('0x18b')](util['format']('IspeechASR\x20Result\x20%s',JSON['stringify'](_0x120391)));}}return _0x31a1e8;},AGIVertices['prototype'][_0x4502c7('0x149')]=function(_0xa7e3ad){const _0x2f1d00=_0x4502c7;logger[_0x2f1d00('0x111')](util[_0x2f1d00('0x132')]('Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block',_0xa7e3ad[_0x2f1d00('0x160')]));if(!this[_0x2f1d00('0x13')](_0xa7e3ad['key']))return this[_0x2f1d00('0xa5')][_0x2f1d00('0x18b')](_0x2f1d00('0x12c'));if(!this[_0x2f1d00('0x13')](_0xa7e3ad[_0x2f1d00('0x183')]))return this[_0x2f1d00('0xa5')][_0x2f1d00('0x18b')](_0x2f1d00('0xb1'));this[_0x2f1d00('0xa5')][_0x2f1d00('0x18b')](util[_0x2f1d00('0x132')](_0x2f1d00('0x199'),_0xa7e3ad[_0x2f1d00('0x183')]));const _0x3dbb5d=this[_0x2f1d00('0xed')]['sync'](this,_0xa7e3ad);if(_0x3dbb5d){this[_0x2f1d00('0xa5')][_0x2f1d00('0x18b')](util[_0x2f1d00('0x132')]('ispeech\x20%s\x20file\x20created',_0x3dbb5d));const _0x4b3d30=this['channel'][_0x2f1d00('0x10')](_0x3dbb5d,_0xa7e3ad['intKey']);try{fs[_0x2f1d00('0x20')](_0x3dbb5d+_0x2f1d00('0xec'));}catch(_0x4913ed){logger[_0x2f1d00('0x113')](_0x4913ed);}return _0x4b3d30;}return this[_0x2f1d00('0xa5')][_0x2f1d00('0x113')](_0xa7e3ad,_0x2f1d00('0x11d'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xbb')]=function(_0x569004){const _0x39408e=_0x4502c7;logger[_0x39408e('0x111')](util['format'](_0x39408e('0x6b'),_0x569004['label']));if(!this[_0x39408e('0x13')](_0x569004[_0x39408e('0x120')]))return this[_0x39408e('0xa5')]['error'](_0x569004,_0x39408e('0x110'));logger[_0x39408e('0x111')](util[_0x39408e('0x132')](_0x39408e('0x60'),this['channel'][_0x39408e('0x6c')],_0x569004[_0x39408e('0x120')]));const _0x49e43c=this['agentLogin'][_0x39408e('0xdb')](this,_0x569004[_0x39408e('0x120')]);return _0x49e43c?(logger['info'](util[_0x39408e('0x132')](_0x39408e('0x105'),this['channel'][_0x39408e('0x6c')],_0x569004[_0x39408e('0x120')])),this[_0x39408e('0xa5')][_0x39408e('0x18b')](util[_0x39408e('0x132')](_0x39408e('0x105'),this['channel'][_0x39408e('0x6c')],_0x569004['findBy'])),{'code':0xc8,'result':_0x39408e('0xee')}):(logger['info'](util['format'](_0x39408e('0x127'),this[_0x39408e('0xa5')]['callerid'],_0x569004['findBy'])),this[_0x39408e('0xa5')][_0x39408e('0x18b')](util[_0x39408e('0x132')](_0x39408e('0x127'),this[_0x39408e('0xa5')][_0x39408e('0x6c')],_0x569004[_0x39408e('0x120')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x7c')]=function(_0x10629f){const _0x589f56=_0x4502c7;logger[_0x589f56('0x111')](util[_0x589f56('0x132')](_0x589f56('0x89'),_0x10629f[_0x589f56('0x160')]));if(!this[_0x589f56('0x13')](_0x10629f[_0x589f56('0x120')]))return this['channel'][_0x589f56('0x113')](_0x10629f,_0x589f56('0x110'));logger[_0x589f56('0x111')](util[_0x589f56('0x132')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x589f56('0xa5')][_0x589f56('0x6c')],_0x10629f[_0x589f56('0x120')]));const _0x2c5600=this[_0x589f56('0x116')][_0x589f56('0xdb')](this,_0x10629f['findBy']);return _0x2c5600?(logger['info'](util[_0x589f56('0x132')](_0x589f56('0x105'),this[_0x589f56('0xa5')][_0x589f56('0x6c')],_0x10629f[_0x589f56('0x120')])),this[_0x589f56('0xa5')]['noop'](util['format'](_0x589f56('0x105'),this['channel'][_0x589f56('0x6c')],_0x10629f[_0x589f56('0x120')])),{'code':0xc8,'result':_0x589f56('0xee')}):(logger['info'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x589f56('0x6c')],_0x10629f['findBy'])),this['channel'][_0x589f56('0x18b')](util['format'](_0x589f56('0x127'),this[_0x589f56('0xa5')][_0x589f56('0x6c')],_0x10629f['findBy'])),{'code':0xc8,'result':_0x589f56('0xad')});},AGIVertices['prototype'][_0x4502c7('0x92')]=function(_0x2b66af){const _0x2ef319=_0x4502c7;logger[_0x2ef319('0x111')](util[_0x2ef319('0x132')](_0x2ef319('0x44'),_0x2b66af[_0x2ef319('0x160')]));if(!this['isConfigured'](_0x2b66af['operation']))return this[_0x2ef319('0xa5')][_0x2ef319('0x113')](_0x2b66af,'no\x20operation\x20configured');this[_0x2ef319('0xa5')][_0x2ef319('0x18b')](util['format'](_0x2ef319('0x1a5'),_0x2b66af[_0x2ef319('0xfb')]));const _0x3311fe=eval(_0x2b66af[_0x2ef319('0xfb')]);if(!this[_0x2ef319('0x13')](_0x2b66af[_0x2ef319('0x67')]))return this[_0x2ef319('0xa5')]['noop'](_0x2ef319('0x15d'));const _0x427b34=this[_0x2ef319('0x8c')][_0x2ef319('0xdb')](this,_0x2b66af[_0x2ef319('0x67')]);if(!_0x427b34)return this['channel']['error'](_0x2b66af,'no\x20variable\x20found');if(_[_0x2ef319('0xf7')](_0x3311fe)){const _0xec0d48=this;return _0x3311fe[_0x2ef319('0x5e')](function(_0x1f0402,_0x71a2b4){const _0x471d45=_0x2ef319;_0xec0d48[_0x471d45('0xa5')][_0x471d45('0x164')](util[_0x471d45('0x132')](_0x471d45('0x1d'),_0x427b34,_0x71a2b4),_0x1f0402);}),this[_0x2ef319('0xa5')][_0x2ef319('0x18b')](util[_0x2ef319('0x132')](_0x2ef319('0x9a'),_0x427b34));}else return this[_0x2ef319('0xa5')][_0x2ef319('0x164')](_0x427b34,_0x3311fe);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xa9')]=function(_0x39212b){const _0x136036=_0x4502c7;logger[_0x136036('0x111')](util[_0x136036('0x132')](_0x136036('0xf0'),_0x39212b['label']));if(_0x39212b[_0x136036('0x6')]===0x0)return this[_0x136036('0x12')](_0x39212b);_0x39212b['retry']-=0x1;if(!this[_0x136036('0x13')](_0x39212b['file_id']))return this[_0x136036('0xa5')][_0x136036('0x113')](_0x39212b,_0x136036('0x152'));const _0xe21bb3=this[_0x136036('0x36')]['sync'](this,_0x39212b['file_id']);if(!_0xe21bb3)return this[_0x136036('0xa5')][_0x136036('0x113')](_0x39212b,_0x136036('0x1bc'));const _0x2528f3=this[_0x136036('0xa5')][_0x136036('0x71')](_0xe21bb3,_0x39212b[_0x136036('0x14e')],_0x39212b[_0x136036('0xc4')]);let _0x436ad5=_0x2528f3[_0x136036('0x13b')];if(_0x2528f3[_0x136036('0x13b')]===-0x1)return this[_0x136036('0xac')]['sync'](this,_0x39212b,'-1'),_0x2528f3;else{if(_0x2528f3[_0x136036('0x98')]===_0x136036('0x19a'))_0x2528f3['result']=_0x2528f3[_0x136036('0x13b')][_0x136036('0x10e')]>0x0?_0x2528f3[_0x136036('0x13b')]:'t';else _[_0x136036('0xf3')](_0x2528f3['result'])&&(_0x2528f3[_0x136036('0x13b')]='#',_0x436ad5='#');}if(!this['isConfigured'](_0x39212b['variable_id']))this['channel'][_0x136036('0x18b')](_0x136036('0x15d'));else{const _0x1e6992=this[_0x136036('0x8c')][_0x136036('0xdb')](this,_0x39212b[_0x136036('0x67')]);if(!_0x1e6992)return this[_0x136036('0xa5')][_0x136036('0x113')](_0x39212b,_0x136036('0x134'));this[_0x136036('0xa5')][_0x136036('0x164')](_0x1e6992,_0x436ad5);}return this[_0x136036('0xac')][_0x136036('0xdb')](this,_0x39212b,_0x436ad5),_0x2528f3;},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x18b')]=function(_0x9675a3){const _0x52c4b2=_0x4502c7;return logger['info'](util[_0x52c4b2('0x132')](_0x52c4b2('0x1a4'),_0x9675a3[_0x52c4b2('0x160')])),this[_0x52c4b2('0xa5')][_0x52c4b2('0x18b')](_0x9675a3[_0x52c4b2('0x161')]||_0x9675a3['label']);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x189')]=function(_0x959f7b){const _0x2dd009=_0x4502c7;logger['info'](util[_0x2dd009('0x132')](_0x2dd009('0x7d'),_0x959f7b['label']));if(!this[_0x2dd009('0x13')](_0x959f7b[_0x2dd009('0x120')]))return this[_0x2dd009('0xa5')][_0x2dd009('0x113')](_0x959f7b,'no\x20find\x20by\x20configured');logger[_0x2dd009('0x111')](util[_0x2dd009('0x132')](_0x2dd009('0x60'),this[_0x2dd009('0xa5')]['callerid'],_0x959f7b['findBy']));const _0x47c66c=this[_0x2dd009('0xe7')][_0x2dd009('0xdb')](this,_0x959f7b[_0x2dd009('0x10b')]),_0x55a384=this[_0x2dd009('0x1b')][_0x2dd009('0xdb')](this,_0x959f7b['findBy'],_0x47c66c);return _0x55a384?(logger[_0x2dd009('0x111')](util[_0x2dd009('0x132')]('AGENT\x20%s\x20FOUND\x20BY',this['channel']['callerid'],_0x959f7b[_0x2dd009('0x120')])),this[_0x2dd009('0xa5')][_0x2dd009('0x18b')](util['format'](_0x2dd009('0x105'),this[_0x2dd009('0xa5')][_0x2dd009('0x6c')],_0x959f7b['findBy'])),{'code':0xc8,'result':_0x2dd009('0xee')}):(logger['info'](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x2dd009('0xa5')][_0x2dd009('0x6c')],_0x959f7b[_0x2dd009('0x120')])),this['channel'][_0x2dd009('0x18b')](util['format'](_0x2dd009('0x105'),this['channel'][_0x2dd009('0x6c')],_0x959f7b['findBy'])),{'code':0xc8,'result':_0x2dd009('0xad')});},AGIVertices[_0x4502c7('0xbd')]['playback']=function(_0x505a2f){const _0xaafac7=_0x4502c7;logger['info'](util[_0xaafac7('0x132')](_0xaafac7('0x52'),_0x505a2f[_0xaafac7('0x160')]));if(!this['isConfigured'](_0x505a2f['file_id']))return this[_0xaafac7('0xa5')][_0xaafac7('0x113')](_0x505a2f,_0xaafac7('0x152'));const _0x278858=this[_0xaafac7('0x36')][_0xaafac7('0xdb')](this,_0x505a2f[_0xaafac7('0x42')]);if(!_0x278858)return this[_0xaafac7('0xa5')][_0xaafac7('0x113')](_0x505a2f,'no\x20file\x20audio\x20found');const _0x23cb7c=this['channel'][_0xaafac7('0x58')](_0xaafac7('0xbe'),[_0x278858,_0x505a2f['opts']]);if(_0x23cb7c[_0xaafac7('0x13b')]===-0x1)return _0x23cb7c;return this['channel'][_0xaafac7('0x18b')](util[_0xaafac7('0x132')]('Executed\x20command\x20%s\x20%s','PLAYBACK',_0x278858));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x175')]=function(_0x4acc67){const _0x404715=_0x4502c7;logger[_0x404715('0x111')](util[_0x404715('0x132')]('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x4acc67[_0x404715('0x160')]));if(!this[_0x404715('0x13')](_0x4acc67['queue_id']))return this[_0x404715('0xa5')][_0x404715('0x113')](_0x4acc67,'no\x20queue\x20selected');let _0x3c9b86='';const _0x3a511e=parseInt(_0x4acc67[_0x404715('0x125')],0xa);if(isNaN(_0x3a511e))_0x3c9b86=_0x4acc67[_0x404715('0x125')];else{_0x3c9b86=this[_0x404715('0x2f')][_0x404715('0xdb')](this,_0x4acc67[_0x404715('0x125')]);if(!_0x3c9b86)return this[_0x404715('0xa5')][_0x404715('0x113')](_0x4acc67,'no\x20queue\x20found');}let _0x2ea452='';if(this[_0x404715('0x13')](_0x4acc67['file_id'])){const _0x55879c=this[_0x404715('0x36')][_0x404715('0xdb')](this,_0x4acc67['file_id']);_0x55879c&&(_0x2ea452=_0x55879c);}this['createSquareDetailsReport'][_0x404715('0xdb')](this,_0x4acc67,_0x3c9b86);_0x4acc67[_0x404715('0xeb')][_0x404715('0x1ba')]('x')<0x0&&(_0x4acc67['opts']+='x');_0x4acc67[_0x404715('0xeb')][_0x404715('0x1ba')]('X')<0x0&&(_0x4acc67[_0x404715('0xeb')]+='X');this[_0x404715('0xa5')][_0x404715('0x164')](_0x404715('0x156'),_0x3c9b86?_0x3c9b86[_0x404715('0x84')]():'');const _0x20557b=this[_0x404715('0xa5')][_0x404715('0x58')](_0x404715('0xbc'),[_0x3c9b86,_0x4acc67[_0x404715('0xeb')],_0x4acc67['url'],_0x2ea452,_0x4acc67[_0x404715('0x19a')],_0x4acc67[_0x404715('0x109')],_0x4acc67[_0x404715('0x166')],_0x4acc67[_0x404715('0xca')],'',_0x4acc67[_0x404715('0x7e')]]);if(_0x20557b['result']===-0x1)return _0x20557b;return this[_0x404715('0xa5')][_0x404715('0x18b')](util[_0x404715('0x132')](_0x404715('0x1ae'),_0x404715('0xbc'),_0x3c9b86));},AGIVertices[_0x4502c7('0xbd')]['record']=function(_0x2a8cbf){const _0x41ac54=_0x4502c7;logger['info'](util['format'](_0x41ac54('0x5d'),_0x2a8cbf[_0x41ac54('0x160')]));const _0x1289c5=_0x2a8cbf['recordingFormat']||_0x41ac54('0x163'),_0x29f57a=util[_0x41ac54('0x132')]('%s_%s',this['channel']['uniqueid'],rs['generate'](0x5)),_0x4b7284=util[_0x41ac54('0x132')](_0x41ac54('0x3'),FILES_PATH,_0x29f57a,_0x1289c5),_0x2d4944=util[_0x41ac54('0x132')](_0x41ac54('0x6a'),FILES_PATH,_0x29f57a);return this[_0x41ac54('0x106')]['sync'](this,_0x2a8cbf,_0x29f57a,_0x4b7284),this['channel'][_0x41ac54('0x164')](_0x41ac54('0x6d'),_0x29f57a),logger[_0x41ac54('0x111')]('Recording\x20%s\x20%s\x20%s\x20%s',_0x2d4944,_0x1289c5,_0x2a8cbf[_0x41ac54('0x82')],_0x2a8cbf[_0x41ac54('0x19a')]),this[_0x41ac54('0xa5')][_0x41ac54('0xa7')](_0x2d4944,_0x1289c5,_0x2a8cbf[_0x41ac54('0x82')],_0x2a8cbf[_0x41ac54('0x19a')],undefined,!![]);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xce')]=function(_0x3f5e46){const _0xa61eb9=_0x4502c7;logger[_0xa61eb9('0x111')](util['format'](_0xa61eb9('0x172'),_0x3f5e46[_0xa61eb9('0x160')]));if(!this['isConfigured'](_0x3f5e46[_0xa61eb9('0xfa')]))return this['channel'][_0xa61eb9('0x18b')](_0xa61eb9('0x3f'));const _0x53e7af=this[_0xa61eb9('0x40')]['sync'](this,_0x3f5e46);logger[_0xa61eb9('0x111')](util[_0xa61eb9('0x132')](_0xa61eb9('0x139'),util[_0xa61eb9('0x15')](_0x53e7af,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x3f5e46[_0xa61eb9('0x67')]))return this[_0xa61eb9('0xa5')]['noop'](_0xa61eb9('0x90'));const _0x40d386=this[_0xa61eb9('0x8c')][_0xa61eb9('0xdb')](this,_0x3f5e46[_0xa61eb9('0x67')]);if(!_0x40d386)return this['channel'][_0xa61eb9('0x113')](_0x3f5e46,'no\x20variable\x20found');this['channel'][_0xa61eb9('0x164')](util[_0xa61eb9('0x132')](_0xa61eb9('0x187'),_0x40d386),_0x53e7af[_0xa61eb9('0x103')]?_0x53e7af['statusCode']:_0xa61eb9('0x17e')),this['channel'][_0xa61eb9('0x164')](util[_0xa61eb9('0x132')](_0xa61eb9('0x13c'),_0x40d386),_0x53e7af['statusMessage']?_0x53e7af[_0xa61eb9('0x1a7')]:'OK');if(_0x53e7af[_0xa61eb9('0x146')])try{this['saveRestApiResult'](_0x53e7af[_0xa61eb9('0x146')],_0x40d386);}catch(_0xe0e9c4){logger[_0xa61eb9('0x113')](util[_0xa61eb9('0x132')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x40d386));}return this[_0xa61eb9('0xa5')][_0xa61eb9('0x18b')](util['format']('variable\x20%s\x20set',_0x40d386));},AGIVertices['prototype'][_0x4502c7('0x1a1')]=function(_0x3296cf){const _0x43477b=_0x4502c7;return logger[_0x43477b('0x111')](util[_0x43477b('0x132')]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x3296cf[_0x43477b('0x160')])),this[_0x43477b('0xa5')][_0x43477b('0xd5')](_0x3296cf['digits'][_0x43477b('0x17c')](/\s+/g,''),_0x3296cf[_0x43477b('0x82')]);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1aa')]=function(_0x433d7c){const _0x33c6b3=_0x4502c7;return logger[_0x33c6b3('0x111')](util[_0x33c6b3('0x132')](_0x33c6b3('0xfd'),_0x433d7c[_0x33c6b3('0x160')])),this[_0x33c6b3('0xa5')]['sayNumber'](_0x433d7c[_0x33c6b3('0x4')][_0x33c6b3('0x17c')](/\s+/g,''),_0x433d7c['escape_digits']);},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xb5')]=function(_0x2dd802){const _0x276453=_0x4502c7;return logger[_0x276453('0x111')](util['format']('Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block',_0x2dd802['label'])),this['channel'][_0x276453('0x159')](_0x2dd802[_0x276453('0x183')],_0x2dd802['escape_digits']);},AGIVertices[_0x4502c7('0xbd')]['sendMail']=function(_0x28f253){const _0x2acc0e=_0x4502c7;logger[_0x2acc0e('0x111')](util[_0x2acc0e('0x132')](_0x2acc0e('0x9f'),_0x28f253[_0x2acc0e('0x160')]));if(!this[_0x2acc0e('0x13')](_0x28f253[_0x2acc0e('0xc6')]))return this[_0x2acc0e('0xa5')][_0x2acc0e('0x18b')](_0x2acc0e('0x11c'));const _0x3d8560=this[_0x2acc0e('0x190')]['sync'](this,_0x28f253[_0x2acc0e('0xc6')]);if(!_0x3d8560||!_0x3d8560[_0x2acc0e('0x1c2')])return this[_0x2acc0e('0xa5')][_0x2acc0e('0x113')](_0x28f253,_0x2acc0e('0x19f'));const _0x1b6f35={'from':util[_0x2acc0e('0x132')](_0x2acc0e('0xd6'),_0x3d8560['name'],_0x3d8560['email']||_0x3d8560['Smtp'][_0x2acc0e('0x3d')]),'to':_0x28f253['to']||'','cc':_0x28f253['cc']||'','bcc':_0x28f253[_0x2acc0e('0x1bf')]||'','subject':_0x28f253[_0x2acc0e('0x124')],'html':_0x28f253[_0x2acc0e('0x183')],'text':_0x28f253[_0x2acc0e('0x183')]},_0x1f64f4={'tls':{'rejectUnauthorized':![]}};_0x3d8560[_0x2acc0e('0x1c2')]['service']?_0x1f64f4[_0x2acc0e('0xba')]=_0x3d8560[_0x2acc0e('0x1c2')]['service']:(_0x1f64f4[_0x2acc0e('0xfc')]=_0x3d8560[_0x2acc0e('0x1c2')][_0x2acc0e('0xfc')],_0x1f64f4[_0x2acc0e('0x12f')]=_0x3d8560[_0x2acc0e('0x1c2')][_0x2acc0e('0x12f')],_0x1f64f4[_0x2acc0e('0x12e')]=_0x3d8560[_0x2acc0e('0x1c2')][_0x2acc0e('0x12e')]);_0x3d8560[_0x2acc0e('0x1c2')]['authentication']&&(_0x1f64f4[_0x2acc0e('0x16a')]={'user':_0x3d8560['Smtp'][_0x2acc0e('0x3d')],'pass':_0x3d8560[_0x2acc0e('0x1c2')][_0x2acc0e('0xe')]});if(this[_0x2acc0e('0x13')](_0x28f253[_0x2acc0e('0xe1')])){}return logger[_0x2acc0e('0x140')](_0x2acc0e('0x1c5'),JSON['stringify'](_0x1b6f35)),this[_0x2acc0e('0xac')]['sync'](this,_0x28f253,_0x28f253[_0x2acc0e('0xc6')]),this[_0x2acc0e('0xa5')]['noop'](util[_0x2acc0e('0x132')](_0x2acc0e('0x1a'),_0x3d8560['name'])),this[_0x2acc0e('0xbf')][_0x2acc0e('0xdb')](this,_0x1f64f4,_0x1b6f35),this[_0x2acc0e('0xa5')][_0x2acc0e('0x18b')]('Mail\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xc2')]=function(_0x25b086){const _0x17fc29=_0x4502c7;return logger['info'](util[_0x17fc29('0x132')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x25b086['label'])),this['channel'][_0x17fc29('0x18b')](_0x17fc29('0xd7'));},AGIVertices['prototype'][_0x4502c7('0xf2')]=function(_0x2f2fc8){const _0x364215=_0x4502c7;logger[_0x364215('0x111')](util[_0x364215('0x132')](_0x364215('0xb2'),_0x2f2fc8[_0x364215('0x160')]));if(!this[_0x364215('0x13')](_0x2f2fc8[_0x364215('0x112')]))return this[_0x364215('0xa5')][_0x364215('0x18b')](_0x364215('0xea'));const _0x389199=this[_0x364215('0xaf')][_0x364215('0xdb')](this,_0x2f2fc8[_0x364215('0x112')]);if(!_0x389199)return this[_0x364215('0xa5')][_0x364215('0x113')](_0x2f2fc8,_0x364215('0x8d'));const _0x16b9cf={'body':_0x2f2fc8[_0x364215('0x131')],'phone':_0x2f2fc8['to']||'','SmsAccountId':_0x389199['id']};return logger[_0x364215('0x140')]('sendSMS\x20message',JSON[_0x364215('0x86')](_0x16b9cf)),this[_0x364215('0xac')][_0x364215('0xdb')](this,_0x2f2fc8,_0x2f2fc8['sms_account_id']),this[_0x364215('0xa5')][_0x364215('0x18b')](util['format'](_0x364215('0x119'),_0x389199[_0x364215('0x1b4')])),this['createSmsMessage'][_0x364215('0xdb')](this,_0x16b9cf),this['channel'][_0x364215('0x18b')](_0x364215('0x173'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0xd9')]=function(_0x4a3cc2){const _0x4250e7=_0x4502c7;logger[_0x4250e7('0x111')](util[_0x4250e7('0x132')]('Enter\x20in\x20SET\x20(%s)\x20block',_0x4a3cc2[_0x4250e7('0x160')]));if(!this[_0x4250e7('0x13')](_0x4a3cc2[_0x4250e7('0x67')]))return this[_0x4250e7('0xa5')]['error'](_0x4a3cc2,'no\x20variable\x20selected');const _0xc2054d=this[_0x4250e7('0x8c')][_0x4250e7('0xdb')](this,_0x4a3cc2[_0x4250e7('0x67')]);if(!_0xc2054d)return this[_0x4250e7('0xa5')][_0x4250e7('0x113')](_0x4a3cc2,_0x4250e7('0x134'));return this[_0x4250e7('0xa5')]['setVariable'](_0xc2054d,_0x4a3cc2[_0x4250e7('0x93')]);},AGIVertices[_0x4502c7('0xbd')]['start']=function(_0x495f9f){const _0x170c4d=_0x4502c7;logger['info'](util[_0x170c4d('0x132')](_0x170c4d('0xc1'),_0x495f9f[_0x170c4d('0x160')])),this[_0x170c4d('0xa5')]['noop'](_0x170c4d('0x28'));if(_0x495f9f[_0x170c4d('0x18c')]===_0x170c4d('0xcc'))return this[_0x170c4d('0xa5')][_0x170c4d('0x18b')](_0x170c4d('0x14b')),this['channel'][_0x170c4d('0x18c')]();return this['channel']['noop'](_0x170c4d('0x18e'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x13d')]=function(_0x27f3de){const _0x3b7d68=_0x4502c7;logger[_0x3b7d68('0x111')](util[_0x3b7d68('0x132')]('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x27f3de[_0x3b7d68('0x160')]));if(!this[_0x3b7d68('0x13')](_0x27f3de['project_id']))return this[_0x3b7d68('0xa5')][_0x3b7d68('0x113')](_0x27f3de,_0x3b7d68('0x11a'));const _0xb2fa90=this[_0x3b7d68('0x2')][_0x3b7d68('0xdb')](this,_0x27f3de[_0x3b7d68('0x1a6')]);if(!this[_0x3b7d68('0x13')](_0xb2fa90))return this[_0x3b7d68('0xa5')]['error'](_0x27f3de,util[_0x3b7d68('0x132')](_0x3b7d68('0x72'),_0x27f3de['project_id']));if(_0xb2fa90===this[_0x3b7d68('0xa5')]['arg_1'])return this[_0x3b7d68('0xa5')][_0x3b7d68('0x113')](_0x27f3de,_0x3b7d68('0x1b0'));this[_0x3b7d68('0xac')][_0x3b7d68('0xdb')](this,_0x27f3de,_0xb2fa90);const _0x149c7a=this[_0x3b7d68('0xa5')][_0x3b7d68('0x58')](_0x3b7d68('0x96'),util['format'](_0x3b7d68('0xb9'),config[_0x3b7d68('0x109')][_0x3b7d68('0xfc')]||_0x3b7d68('0x142'),_0xb2fa90,this['channel']['arg_1']));if(_0x149c7a[_0x3b7d68('0x13b')]===-0x1)return _0x149c7a;return this[_0x3b7d68('0xa5')][_0x3b7d68('0x18b')](util[_0x3b7d68('0x132')](_0x3b7d68('0x1ae'),'AGI',_0xb2fa90));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x7b')]=function(_0x5acc3b){const _0xd7fd60=_0x4502c7;logger['info'](util[_0xd7fd60('0x132')](_0xd7fd60('0x95'),_0x5acc3b[_0xd7fd60('0x160')]));const _0xad537e=this[_0xd7fd60('0x101')]['sync'](this,_0x5acc3b[_0xd7fd60('0x174')]);this[_0xd7fd60('0xac')][_0xd7fd60('0xdb')](this,_0x5acc3b,_0x5acc3b[_0xd7fd60('0x174')]);if(this[_0xd7fd60('0x13')](_0x5acc3b[_0xd7fd60('0x67')])){const _0x474e6e=this[_0xd7fd60('0x8c')][_0xd7fd60('0xdb')](this,_0x5acc3b['variable_id']);if(_0x474e6e)return this[_0xd7fd60('0xa5')][_0xd7fd60('0x164')](_0x474e6e,_0xad537e),this[_0xd7fd60('0xa5')][_0xd7fd60('0x18b')](util[_0xd7fd60('0x132')]('sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s',_0x5acc3b[_0xd7fd60('0x174')],_0x474e6e));}return this[_0xd7fd60('0xa5')][_0xd7fd60('0x18b')](util[_0xd7fd60('0x132')](_0xd7fd60('0x1c0'),_0x5acc3b[_0xd7fd60('0x174')]));},AGIVertices[_0x4502c7('0xbd')]['google_cloud_tts']=function(_0x157bf1){const _0x423fb2=_0x4502c7;logger[_0x423fb2('0x111')](util[_0x423fb2('0x132')](_0x423fb2('0x184'),_0x157bf1[_0x423fb2('0x160')])),_0x157bf1[_0x423fb2('0x183')]=_0x157bf1[_0x423fb2('0x183')]['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this['isConfigured'](_0x157bf1[_0x423fb2('0xaa')]))return this[_0x423fb2('0xa5')][_0x423fb2('0x18b')](_0x423fb2('0x6e'));if(!this[_0x423fb2('0x13')](_0x157bf1[_0x423fb2('0x183')]))return this[_0x423fb2('0xa5')][_0x423fb2('0x18b')](_0x423fb2('0xb1'));this[_0x423fb2('0xa5')][_0x423fb2('0x18b')](util['format'](_0x423fb2('0x8f'),_0x157bf1['text']));const _0x586a51=this[_0x423fb2('0x1b7')][_0x423fb2('0xdb')](this,_0x157bf1);if(_0x586a51){this[_0x423fb2('0xa5')][_0x423fb2('0x18b')](util[_0x423fb2('0x132')](_0x423fb2('0x14a'),_0x586a51));const _0x1d056d=this[_0x423fb2('0xa5')]['streamFile'](_0x586a51);try{fs[_0x423fb2('0x20')](_0x586a51+_0x423fb2('0xec'));}catch(_0x37ee64){logger[_0x423fb2('0x113')](_0x37ee64);}return _0x1d056d;}return this[_0x423fb2('0xa5')][_0x423fb2('0x113')](_0x157bf1,_0x423fb2('0x1c'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x25')]=function(_0x39bfef){const _0x206047=_0x4502c7;logger[_0x206047('0x111')](util[_0x206047('0x132')]('Enter\x20in\x20GOOGLETTS\x20(%s)\x20block',_0x39bfef[_0x206047('0x160')])),_0x39bfef[_0x206047('0x183')]=_0x39bfef[_0x206047('0x183')][_0x206047('0x17c')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x206047('0x13')](_0x39bfef[_0x206047('0x183')]))return this[_0x206047('0xa5')][_0x206047('0x18b')](_0x206047('0xb1'));this[_0x206047('0xa5')][_0x206047('0x18b')](util[_0x206047('0x132')](_0x206047('0xa1'),_0x39bfef[_0x206047('0x183')]));const _0x40f66e=this['googleTTS'][_0x206047('0xdb')](this,_0x39bfef);if(_0x40f66e){this['channel'][_0x206047('0x18b')](util[_0x206047('0x132')](_0x206047('0xb3'),_0x40f66e));const _0x53b1f3=this[_0x206047('0xa5')][_0x206047('0x10')](_0x40f66e);try{fs[_0x206047('0x20')](_0x40f66e+_0x206047('0xec'));}catch(_0x414ef5){logger[_0x206047('0x113')](_0x414ef5);}return _0x53b1f3;}return this[_0x206047('0xa5')][_0x206047('0x113')](_0x39bfef,_0x206047('0xff'));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x2c')]=function(_0xc56146){const _0x1473b2=_0x4502c7;logger[_0x1473b2('0x111')](util[_0x1473b2('0x132')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0xc56146[_0x1473b2('0x160')]));if(!this['isConfigured'](_0xc56146[_0x1473b2('0x120')]))return this['channel'][_0x1473b2('0x113')](_0xc56146,_0x1473b2('0x110'));logger[_0x1473b2('0x111')](util[_0x1473b2('0x132')](_0x1473b2('0x60'),this[_0x1473b2('0xa5')][_0x1473b2('0x6c')],_0xc56146[_0x1473b2('0x120')]));const _0x52094f=this['agentUnpause']['sync'](this,_0xc56146[_0x1473b2('0x120')]);return _0x52094f?(logger[_0x1473b2('0x111')](util[_0x1473b2('0x132')](_0x1473b2('0x105'),this[_0x1473b2('0xa5')][_0x1473b2('0x6c')],_0xc56146[_0x1473b2('0x120')])),this['channel']['noop'](util[_0x1473b2('0x132')](_0x1473b2('0x105'),this[_0x1473b2('0xa5')]['callerid'],_0xc56146[_0x1473b2('0x120')])),{'code':0xc8,'result':_0x1473b2('0xee')}):(logger['info'](util[_0x1473b2('0x132')](_0x1473b2('0x127'),this['channel'][_0x1473b2('0x6c')],_0xc56146['findBy'])),this[_0x1473b2('0xa5')][_0x1473b2('0x18b')](util[_0x1473b2('0x132')](_0x1473b2('0x127'),this[_0x1473b2('0xa5')][_0x1473b2('0x6c')],_0xc56146[_0x1473b2('0x120')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x4502c7('0xbd')]['voicemail']=function(_0x409c43){const _0x3a063e=_0x4502c7;logger[_0x3a063e('0x111')](util[_0x3a063e('0x132')](_0x3a063e('0xcf'),_0x409c43[_0x3a063e('0x160')]));const _0x1fd960=this[_0x3a063e('0xa5')][_0x3a063e('0x58')]('VOICEMAIL',[_0x409c43['mailbox'],_0x409c43[_0x3a063e('0xd')]]);if(_0x1fd960[_0x3a063e('0x13b')]===-0x1)return _0x1fd960;return this[_0x3a063e('0xa5')][_0x3a063e('0x18b')](util[_0x3a063e('0x132')]('Executed\x20command\x20%s\x20%s','VOICEMAIL',_0x409c43[_0x3a063e('0x51')]));},AGIVertices[_0x4502c7('0xbd')][_0x4502c7('0x1b1')]=function(_0xbb6f6c){const _0x1734f5=_0x4502c7;logger[_0x1734f5('0x111')](util[_0x1734f5('0x132')]('Enter\x20in\x20SWITCH\x20(%s)\x20block',_0xbb6f6c['label']));if(!this[_0x1734f5('0x13')](_0xbb6f6c[_0x1734f5('0x67')]))return this[_0x1734f5('0xa5')][_0x1734f5('0x113')](_0xbb6f6c,_0x1734f5('0x12a'));const _0x5508e7=this[_0x1734f5('0x8c')][_0x1734f5('0xdb')](this,_0xbb6f6c[_0x1734f5('0x67')]);if(!_0x5508e7)return this['channel'][_0x1734f5('0x113')](_0xbb6f6c,_0x1734f5('0x134'));const _0x436b91=this[_0x1734f5('0xa5')][_0x1734f5('0x8c')](_0x5508e7);return{'code':0xc8,'result':_0x436b91[_0x1734f5('0x98')]?_0x436b91[_0x1734f5('0x98')]:'-'};},String[_0x4502c7('0xbd')][_0x4502c7('0x138')]=function(_0x2029fb,_0x490406){const _0x2fa08a=_0x4502c7;return this[_0x2fa08a('0x143')](_0x2029fb)[_0x2fa08a('0xa2')](_0x490406);},module[_0x4502c7('0x19')]=AGIVertices; \ No newline at end of file +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 diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index cac2f44..118543e 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1048_0x51c6=['agents','agentconnect','[%s][HANGUP:LINKEDID]','stopAcw','stringify','updateAcw','transfererlinkedid','syncAttendedTransfer','moment','syncHangupRequest','update','format','syncBlindTransfer','[%s][UPDATE][ERRORS:%s]','custom:agentConnectPreview','acw','diff','QueuePause','lastPauseAt','mandatoryDisposition','[%s][START][AGENT:%s][QUEUE:%s]','interface','syncAgentConnect','syncAgentConnectPreview','../rpc/user','startAcw','channels','YYYY-MM-DD\x20HH:mm:ss','savePause','[ACW][syncAgentRingNoAnswer]\x20%s','uniqueid','name','../../../config/logger','exports','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','Auto-Pause','[%s][UPDATE][ACWTIME:%s]','milliseconds','acwTimeout','[%s][BLINDTRANSFER:LINKEDID]','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','isUndefined','mandatoryDispositionPause','destlinkedid','message','lodash','secondtransfereruniqueid','Action','catch','[ACW][syncHangup]\x20%s','ACW','../ami','origtransfereruniqueid','timer','then','autopause','linkedid','prototype','isNil','transfertargetuniqueid','timers','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','voiceQueues','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','../rpc/voiceAgentReport','agentringnoanswer','queue','[ACW][syncAgentConnect]\x20%s','syncAgentRingNoAnswer','transfereruniqueid','attended','[ACW][syncBlindTransfer]\x20%s','[ACW][TIMERS]','attendedtransfer','bind','saveUnpause','transfereeuniqueid','error','info','voicePause','[%s][BLINDTRANSFER:UNIQUEID]','[ACW][STOP]\x20%s'];(function(_0x2f788f,_0x51c634){const _0x5462db=function(_0xc917ef){while(--_0xc917ef){_0x2f788f['push'](_0x2f788f['shift']());}};_0x5462db(++_0x51c634);}(a1048_0x51c6,0x81));const a1048_0x5462=function(_0x2f788f,_0x51c634){_0x2f788f=_0x2f788f-0x0;let _0x5462db=a1048_0x51c6[_0x2f788f];return _0x5462db;};const _0x44ae6b=a1048_0x5462;'use strict';const _=require(_0x44ae6b('0x50')),moment=require(_0x44ae6b('0x2b')),ami=require(_0x44ae6b('0x4')),logger=require(_0x44ae6b('0x43'))('acw'),RpcUser=require(_0x44ae6b('0x3b')),RpcVoiceAgentReport=require(_0x44ae6b('0x11'));function Acw(_0xc917ef){const _0x55b737=_0x44ae6b;this[_0x55b737('0xf')]=_0xc917ef[_0x55b737('0xf')],this[_0x55b737('0x23')]=_0xc917ef[_0x55b737('0x23')],this[_0x55b737('0xd')]=_0xc917ef['timers'],this['channels']={},ami['on'](_0x55b737('0x24'),this[_0x55b737('0x39')][_0x55b737('0x1b')](this)),ami['on']('hanguprequest',this[_0x55b737('0x2c')][_0x55b737('0x1b')](this)),ami['on']('hangup',this['syncHangup'][_0x55b737('0x1b')](this)),ami['on'](_0x55b737('0x12'),this[_0x55b737('0x15')][_0x55b737('0x1b')](this)),ami['on'](_0x55b737('0x1a'),this[_0x55b737('0x2a')][_0x55b737('0x1b')](this)),ami['on']('blindtransfer',this[_0x55b737('0x2f')]['bind'](this)),ami['on'](_0x55b737('0x31'),this[_0x55b737('0x3a')][_0x55b737('0x1b')](this));}function getDiff(_0x383af8){const _0x410098=_0x44ae6b,_0x3ed451=moment()[_0x410098('0x48')](0x0),_0x40b57a=moment(_0x383af8)[_0x410098('0x48')](0x0);return _0x3ed451[_0x410098('0x33')](_0x40b57a,'seconds');}Acw['prototype'][_0x44ae6b('0x3c')]=function(_0x3f206e){const _0x48d5a9=_0x44ae6b;try{const _0x4ae365=this,_0x300ab9=this[_0x48d5a9('0x3d')][_0x3f206e][_0x48d5a9('0x38')],_0x527102=this['channels'][_0x3f206e]['queue'],_0x5e6266=this[_0x48d5a9('0xf')][_0x527102];let _0x564304=![],_0x36af5c=_0x48d5a9('0x3');_0x5e6266[_0x48d5a9('0x36')]&&(_0x5e6266[_0x48d5a9('0x4d')][_0x48d5a9('0x42')]&&(_0x564304=!![],_0x36af5c=_0x5e6266[_0x48d5a9('0x4d')][_0x48d5a9('0x42')])),ami[_0x48d5a9('0x0')]({'action':_0x48d5a9('0x34'),'interface':_0x300ab9,'paused':!![],'reason':_0x36af5c})[_0x48d5a9('0x7')](function(){const _0x48668b=_0x48d5a9;if(_0x4ae365[_0x48668b('0x23')][_0x300ab9])return RpcUser['getAgent'](_0x4ae365[_0x48668b('0x23')][_0x300ab9]['id'])[_0x48668b('0x7')](function(_0xb2b124){const _0xaefbbd=_0x48668b;if(_0xb2b124&&!_0xb2b124[_0xaefbbd('0x20')]){logger[_0xaefbbd('0x1f')](_0xaefbbd('0x37'),_0x3f206e,_0x300ab9,_0x527102);const _0x27a334=_0x4ae365[_0xaefbbd('0x3d')][_0x3f206e][_0xaefbbd('0x17')]&&_0x4ae365[_0xaefbbd('0x3d')][_0x3f206e][_0xaefbbd('0x4e')]?_0x4ae365[_0xaefbbd('0x3d')][_0x3f206e][_0xaefbbd('0x4e')]:_0x3f206e;return RpcUser[_0xaefbbd('0x3f')](_0x4ae365[_0xaefbbd('0x23')][_0x300ab9],_0x36af5c,_0x27a334)[_0xaefbbd('0x7')](function(){const _0x539b76=_0xaefbbd;!_0x564304&&(_0x4ae365[_0x539b76('0xd')][_0x300ab9]={},logger[_0x539b76('0x1f')](_0x539b76('0x45'),_0x3f206e,_0x4ae365[_0x539b76('0xf')][_0x527102]['acwTimeout'],_0x300ab9,_0x527102),_0x4ae365[_0x539b76('0xd')][_0x300ab9]['timer']=setTimeout(_0x4ae365[_0x539b76('0x26')]['bind'](_0x4ae365,_0x300ab9),_0x4ae365['voiceQueues'][_0x527102]['acwTimeout']*0x3e8),_0x4ae365['timers'][_0x300ab9][_0x539b76('0x35')]=moment()[_0x539b76('0x2e')](_0x539b76('0x3e')),_0x4ae365[_0x539b76('0xd')][_0x300ab9]['uniqueid']=_0x3f206e,_0x4ae365['timers'][_0x300ab9][_0x539b76('0x13')]=_0x527102,_0x4ae365[_0x539b76('0xd')][_0x300ab9][_0x539b76('0x28')]=function(){const _0x59ba17=_0x539b76,_0x2c126e=getDiff(_0x4ae365[_0x59ba17('0xd')][_0x300ab9][_0x59ba17('0x35')]);clearTimeout(_0x4ae365[_0x59ba17('0xd')][_0x300ab9][_0x59ba17('0x6')]),_0x4ae365['timers'][_0x300ab9]['timer']=![],RpcVoiceAgentReport[_0x59ba17('0x2d')]({'acwtime':_0x2c126e},_0x4ae365[_0x59ba17('0xd')][_0x300ab9][_0x59ba17('0x41')],_0x300ab9)[_0x59ba17('0x7')](function(_0x34f2f4){const _0xf22f8b=_0x59ba17;logger[_0xf22f8b('0x1f')](_0xf22f8b('0x47'),_0x3f206e,_0x2c126e,_0x34f2f4);})[_0x59ba17('0x1')](function(_0x3502ba){const _0x276618=_0x59ba17;logger['error'](_0x276618('0x30'),_0x3f206e,_0x3502ba);}),delete _0x4ae365['timers'][_0x300ab9];});});}else logger[_0xaefbbd('0x1f')](_0xaefbbd('0x10'),_0x3f206e,_0x300ab9,_0x527102);});})[_0x48d5a9('0x1')](function(){const _0x149ccc=_0x48d5a9;logger[_0x149ccc('0x1e')](_0x149ccc('0x45'),_0x3f206e,_0x4ae365[_0x149ccc('0xf')][_0x527102][_0x149ccc('0x49')],_0x300ab9,_0x527102);})['finally'](function(){delete _0x4ae365['channels'][_0x3f206e];});}catch(_0x407d9a){logger[_0x48d5a9('0x1e')]('[ACW][START]\x20%s',_0x407d9a[_0x48d5a9('0x4f')]);}},Acw[_0x44ae6b('0xa')]['stopAcw']=function(_0x5eb2b4){const _0x22f467=_0x44ae6b;try{const _0x433d2a=this;if(_0x433d2a[_0x22f467('0xd')][_0x5eb2b4]){_0x433d2a[_0x22f467('0xd')][_0x5eb2b4]['timer']=![];const _0x48430e=_0x433d2a[_0x22f467('0xd')][_0x5eb2b4][_0x22f467('0x41')],_0x163449=_0x433d2a[_0x22f467('0xd')][_0x5eb2b4][_0x22f467('0x13')],_0xaa859f=_0x433d2a[_0x22f467('0xf')][_0x163449]['acwTimeout'];logger[_0x22f467('0x1f')]('[TIMER][STOP][AGENT:%s]',_0x5eb2b4),RpcUser[_0x22f467('0x1c')](this[_0x22f467('0x23')][_0x5eb2b4]),RpcVoiceAgentReport[_0x22f467('0x2d')]({'acwtime':_0xaa859f,'agentacw':!![]},_0x48430e,_0x5eb2b4)[_0x22f467('0x7')](function(_0x114758){const _0x559579=_0x22f467;logger['info'](_0x559579('0x47'),_0x48430e,_0xaa859f,_0x114758);})[_0x22f467('0x1')](function(_0x3689b2){const _0x2a9a46=_0x22f467;logger[_0x2a9a46('0x1e')]('[%s][UPDATE][ERRORS:%s]',_0x48430e,_0x3689b2);});}else logger[_0x22f467('0x1e')](_0x22f467('0x4b'),_0x5eb2b4),_0x433d2a[_0x22f467('0xd')]&&logger['info'](_0x22f467('0x19'),JSON[_0x22f467('0x27')](_0x433d2a[_0x22f467('0xd')]));}catch(_0x6fab57){logger['error'](_0x22f467('0x22'),_0x6fab57[_0x22f467('0x4f')]);}},Acw[_0x44ae6b('0xa')][_0x44ae6b('0x39')]=function(_0x396333){const _0x194c97=_0x44ae6b;try{this[_0x194c97('0xf')][_0x396333['queue']]&&(this[_0x194c97('0xf')][_0x396333['queue']][_0x194c97('0x32')]||this[_0x194c97('0xf')][_0x396333[_0x194c97('0x13')]][_0x194c97('0x36')])&&(this[_0x194c97('0x23')][_0x396333[_0x194c97('0x38')]]&&(this['channels'][_0x396333['uniqueid']]={'queue':_0x396333[_0x194c97('0x13')],'interface':_0x396333[_0x194c97('0x38')],'destlinkedid':_0x396333[_0x194c97('0x4e')]}));}catch(_0xfb1950){logger[_0x194c97('0x1e')](_0x194c97('0x14'),_0xfb1950[_0x194c97('0x4f')]);}},Acw['prototype'][_0x44ae6b('0x3a')]=function(_0x2e2bf8){const _0x5763f4=_0x44ae6b;try{this[_0x5763f4('0xf')][_0x2e2bf8[_0x5763f4('0x13')]]&&(this[_0x5763f4('0xf')][_0x2e2bf8[_0x5763f4('0x13')]][_0x5763f4('0x32')]||this[_0x5763f4('0xf')][_0x2e2bf8['queue']][_0x5763f4('0x36')])&&(this[_0x5763f4('0x23')][_0x2e2bf8[_0x5763f4('0x38')]]&&(this[_0x5763f4('0x3d')][_0x2e2bf8[_0x5763f4('0x41')]]={'queue':_0x2e2bf8[_0x5763f4('0x13')],'interface':_0x2e2bf8[_0x5763f4('0x38')]}));}catch(_0x3aae3e){logger[_0x5763f4('0x1e')]('[ACW][syncAgentConnectPreview]\x20%s',_0x3aae3e[_0x5763f4('0x4f')]);}},Acw['prototype'][_0x44ae6b('0x2c')]=function(_0x1408f8){const _0x5711eb=_0x44ae6b;try{if(this[_0x5711eb('0x3d')][_0x1408f8[_0x5711eb('0x41')]]&&_[_0x5711eb('0x4c')](this[_0x5711eb('0x3d')][_0x1408f8[_0x5711eb('0x41')]][_0x5711eb('0x17')]))logger[_0x5711eb('0x1f')]('[%s][HANGUP:UNIQUEID]',_0x1408f8[_0x5711eb('0x41')]),this['startAcw'](_0x1408f8['uniqueid']);else this[_0x5711eb('0x3d')][_0x1408f8[_0x5711eb('0x9')]]&&_['isUndefined'](this['channels'][_0x1408f8['linkedid']][_0x5711eb('0x17')])&&(logger[_0x5711eb('0x1f')](_0x5711eb('0x25'),_0x1408f8[_0x5711eb('0x9')]),this[_0x5711eb('0x3c')](_0x1408f8[_0x5711eb('0x9')]));}catch(_0x336111){logger[_0x5711eb('0x1e')]('[ACW][syncHangupRequest]\x20%s',_0x336111[_0x5711eb('0x4f')]);}},Acw[_0x44ae6b('0xa')]['syncHangup']=function(_0xf00d52){const _0x56386f=_0x44ae6b;try{if(this[_0x56386f('0x3d')][_0xf00d52['uniqueid']]&&this[_0x56386f('0x3d')][_0xf00d52[_0x56386f('0x41')]]['attended'])logger[_0x56386f('0x1f')]('[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]',_0xf00d52[_0x56386f('0x41')]),this[_0x56386f('0x3c')](_0xf00d52['uniqueid']);else this[_0x56386f('0x3d')][_0xf00d52[_0x56386f('0x9')]]&&this['channels'][_0xf00d52[_0x56386f('0x9')]]['attended']&&(logger[_0x56386f('0x1f')]('[%s][HANGUPATTENDEDTRANSFER:LINKEDID]',_0xf00d52['linkedid']),this[_0x56386f('0x3c')](_0xf00d52[_0x56386f('0x9')]));}catch(_0xf59a7c){logger[_0x56386f('0x1e')](_0x56386f('0x2'),_0xf59a7c[_0x56386f('0x4f')]);}},Acw[_0x44ae6b('0xa')][_0x44ae6b('0x2a')]=function(_0x583208){const _0x2b847a=_0x44ae6b;try{if(!_[_0x2b847a('0xb')](this[_0x2b847a('0x3d')][_0x583208['transfereeuniqueid']]))this[_0x2b847a('0x3c')](_0x583208[_0x2b847a('0x1d')]),this['channels'][_0x583208['secondtransfereruniqueid']]&&(this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x51')]][_0x2b847a('0x17')]=!![],this[_0x2b847a('0x3d')][_0x583208['transfertargetuniqueid']]=this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x51')]],delete this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x51')]]);else!_[_0x2b847a('0xb')](this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0xc')]])&&(this[_0x2b847a('0x3c')](_0x583208[_0x2b847a('0xc')]),this['channels'][_0x583208['origtransfereruniqueid']]&&(this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x5')]][_0x2b847a('0x17')]=!![],this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x1d')]]=this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x5')]],delete this[_0x2b847a('0x3d')][_0x583208[_0x2b847a('0x5')]]));}catch(_0x16d32d){logger[_0x2b847a('0x1e')]('[ACW][syncAttendedTransfer]\x20%s',_0x16d32d[_0x2b847a('0x4f')]);}},Acw['prototype'][_0x44ae6b('0x2f')]=function(_0x65bfe1){const _0x5c9cc0=_0x44ae6b;try{if(this[_0x5c9cc0('0x3d')][_0x65bfe1[_0x5c9cc0('0x16')]])logger[_0x5c9cc0('0x1f')](_0x5c9cc0('0x21'),JSON[_0x5c9cc0('0x27')](_0x65bfe1[_0x5c9cc0('0x16')])),this['startAcw'](_0x65bfe1['transfereruniqueid']);else this[_0x5c9cc0('0x3d')][_0x65bfe1[_0x5c9cc0('0x29')]]&&(logger[_0x5c9cc0('0x1f')](_0x5c9cc0('0x4a'),JSON[_0x5c9cc0('0x27')](_0x65bfe1[_0x5c9cc0('0x29')])),this['startAcw'](_0x65bfe1[_0x5c9cc0('0x29')]));}catch(_0x452f91){logger[_0x5c9cc0('0x1e')](_0x5c9cc0('0x18'),_0x452f91['message']);}},Acw['prototype']['syncAgentRingNoAnswer']=function(_0x25fd47){const _0x39d21e=_0x44ae6b;try{if(this['voiceQueues'][_0x25fd47[_0x39d21e('0x13')]]&&this[_0x39d21e('0xf')][_0x25fd47['queue']][_0x39d21e('0x8')]==='all'){if(this[_0x39d21e('0x23')][_0x25fd47[_0x39d21e('0x38')]])return logger[_0x39d21e('0x1f')](_0x39d21e('0xe'),_0x25fd47[_0x39d21e('0x41')],_0x25fd47['interface'],_0x25fd47['queue']),RpcUser[_0x39d21e('0x3f')](this['agents'][_0x25fd47[_0x39d21e('0x38')]],_0x39d21e('0x46'),_0x25fd47[_0x39d21e('0x41')]);}}catch(_0x265b7e){logger[_0x39d21e('0x1e')](_0x39d21e('0x40'),_0x265b7e['message']);}},module[_0x44ae6b('0x44')]=Acw; \ No newline at end of file +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 diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index 883d13f..6022714 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1049_0x59a9=['action','../../config/logger','exports','format','port','asterisk','info','actionDeviceStateList','close','ami','once','Action','actionCoreShowChannels','then','inspect','error','queuesummary','actionSipShowRegistry','util','username','promisify','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','sipshowregistry','password','resolve','../../config/environment','actionQueueSummary','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s'];(function(_0x5245fa,_0x59a996){const _0x125376=function(_0x219486){while(--_0x219486){_0x5245fa['push'](_0x5245fa['shift']());}};_0x125376(++_0x59a996);}(a1049_0x59a9,0x1dd));const a1049_0x1253=function(_0x5245fa,_0x59a996){_0x5245fa=_0x5245fa-0x0;let _0x125376=a1049_0x59a9[_0x5245fa];return _0x125376;};const _0x7c040e=a1049_0x1253;'use strict';const Manager=require('asterisk-manager'),util=require(_0x7c040e('0x11')),logger=require(_0x7c040e('0x0'))(_0x7c040e('0x8')),config=require(_0x7c040e('0x18')),ami=new Manager(config[_0x7c040e('0x4')][_0x7c040e('0x3')],config[_0x7c040e('0x4')]['ip'],config[_0x7c040e('0x4')][_0x7c040e('0x12')],config[_0x7c040e('0x4')][_0x7c040e('0x16')],!![]);ami['keepConnected'](),ami[_0x7c040e('0xa')]=util[_0x7c040e('0x13')](ami[_0x7c040e('0x1b')]);function error(_0x219486){const _0x45e887=_0x7c040e;logger[_0x45e887('0xe')](util[_0x45e887('0x2')](_0x45e887('0x14'),config['asterisk'][_0x45e887('0x12')],config[_0x45e887('0x4')]['ip'],config[_0x45e887('0x4')][_0x45e887('0x3')],util['inspect'](_0x219486,![],null)));}function close(){const _0x2dd4e1=_0x7c040e;logger[_0x2dd4e1('0xe')](util[_0x2dd4e1('0x2')](_0x2dd4e1('0x1a'),config[_0x2dd4e1('0x4')]['username'],config[_0x2dd4e1('0x4')]['ip'],config[_0x2dd4e1('0x4')][_0x2dd4e1('0x3')]));}ami[_0x7c040e('0x10')]=function(){return function(){const _0x5834b2=a1049_0x1253;return ami['Action']({'action':_0x5834b2('0x15')});};},ami[_0x7c040e('0x6')]=function(){return function(){const _0x32ae3d=a1049_0x1253;return ami[_0x32ae3d('0xa')]({'action':'devicestatelist'});};},ami['actionSipPeerStatus']=function(){return function(){return ami['Action']({'action':'sippeerstatus'});};},ami[_0x7c040e('0x19')]=function(){return function(){const _0x4b1633=a1049_0x1253;return ami['Action']({'action':_0x4b1633('0xf')});};},ami[_0x7c040e('0xb')]=function(){return function(){const _0x58957f=a1049_0x1253;return ami[_0x58957f('0xa')]({'action':'coreshowchannels'});};};function connect(){const _0x28d74d=_0x7c040e;logger[_0x28d74d('0x5')](util[_0x28d74d('0x2')]('Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s',config[_0x28d74d('0x4')][_0x28d74d('0x12')],config[_0x28d74d('0x4')]['ip'],config[_0x28d74d('0x4')]['port'])),ami[_0x28d74d('0x9')](_0x28d74d('0xe'),error),ami[_0x28d74d('0x9')](_0x28d74d('0x7'),close);}ami['on']('connect',connect),ami['on']('shutdown',function(_0x56304a){const _0x33943e=_0x7c040e;logger[_0x33943e('0x5')](util[_0x33943e('0x2')]('Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s',config[_0x33943e('0x4')][_0x33943e('0x12')],config[_0x33943e('0x4')]['ip'],config['asterisk'][_0x33943e('0x3')],util[_0x33943e('0xd')](_0x56304a,![],null)));}),ami['on']('fullybooted',function(){const _0x11c996=_0x7c040e;return logger[_0x11c996('0x5')](util[_0x11c996('0x2')]('Fullybooted\x20\x22%s\x22\x20to\x20%s:%s',config['asterisk'][_0x11c996('0x12')],config[_0x11c996('0x4')]['ip'],config[_0x11c996('0x4')][_0x11c996('0x3')])),Promise[_0x11c996('0x17')]()[_0x11c996('0xc')](ami[_0x11c996('0x10')]())['then'](ami[_0x11c996('0x6')]())[_0x11c996('0xc')](ami['actionSipPeerStatus']())[_0x11c996('0xc')](ami[_0x11c996('0x19')]())['then'](ami[_0x11c996('0xb')]())['catch'](function(_0x4dce8d){console['log'](_0x4dce8d);});}),ami[_0x7c040e('0x9')]('error',error),ami[_0x7c040e('0x9')]('close',close),module[_0x7c040e('0x1')]=ami; \ No newline at end of file +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 diff --git a/server/services/ami/client.js b/server/services/ami/client.js index 84c0700..1a459d7 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1050_0x4375=['http','Request','client','debug','message','rpc','exports','then','../../config/logger','catch','error','ami','jayson/promise','memberReport'];(function(_0x35af2c,_0x437531){const _0x3ef9db=function(_0x8b1fa){while(--_0x8b1fa){_0x35af2c['push'](_0x35af2c['shift']());}};_0x3ef9db(++_0x437531);}(a1050_0x4375,0xd1));const a1050_0x3ef9=function(_0x35af2c,_0x437531){_0x35af2c=_0x35af2c-0x0;let _0x3ef9db=a1050_0x4375[_0x35af2c];return _0x3ef9db;};const _0x2f16a3=a1050_0x3ef9;'use strict';const jayson=require(_0x2f16a3('0xd')),logger=require(_0x2f16a3('0x9'))(_0x2f16a3('0xc')),client=jayson[_0x2f16a3('0x3')][_0x2f16a3('0x1')]({'port':0x2329});client[_0x2f16a3('0x2')]=function(_0x8b1fa,_0x2b976d){return new Promise(function(_0xe109ed,_0x9c7099){const _0x482da3=a1050_0x3ef9;return client['request'](_0x8b1fa,_0x2b976d)[_0x482da3('0x8')](function(_0x144243){const _0x22b666=_0x482da3;return logger[_0x22b666('0x4')]('rpc',_0x22b666('0x0'),_0x8b1fa,_0x2b976d,_0x144243),_0x144243[_0x22b666('0xb')]?(logger[_0x22b666('0xb')](_0x22b666('0x6'),'memberReport',_0x8b1fa,_0x144243['error'][_0x22b666('0x5')],_0x2b976d),_0x9c7099(_0x144243[_0x22b666('0xb')][_0x22b666('0x5')])):_0xe109ed(_0x144243['result']);})[_0x482da3('0xa')](function(_0x5f44e6){const _0x1a43ff=_0x482da3;return logger[_0x1a43ff('0xb')]('rpc',_0x1a43ff('0x0'),_0x8b1fa,_0x5f44e6,_0x2b976d),_0x9c7099(_0x5f44e6);});});},module[_0x2f16a3('0x7')]=client; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index 80a384b..d661cba 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1051_0x1fae=['util','queue','prototype','type','countcongestionretry','moment','countnoanswerretry','ListId','format','originatecalleridname','dialCutDigit','dialQueueTimeout','recallme','countbusyretry','phone','countabandonedretry','countmachineretry','CampaignId','substring','callbackat','callbackuniqueid','countnosuchnumberretry','\x22%s\x22\x20<%s>','getQueue','idHopper','voiceQueue','name','YYYY-MM-DD\x20HH:mm:ss','Contact','ContactId','countdropretry','exports','active','isNil','lastName','originatecalleridnum','scheduledat','VoiceQueueId','firstName','callback','UserId','starttime','ContactFirstName','number','string'];(function(_0x4a6fdf,_0x1fae0c){const _0x4128de=function(_0x5d28aa){while(--_0x5d28aa){_0x4a6fdf['push'](_0x4a6fdf['shift']());}};_0x4128de(++_0x1fae0c);}(a1051_0x1fae,0x8b));const a1051_0x4128=function(_0x4a6fdf,_0x1fae0c){_0x4a6fdf=_0x4a6fdf-0x0;let _0x4128de=a1051_0x1fae[_0x4a6fdf];return _0x4128de;};const _0x4da3f0=a1051_0x4128;'use strict';const util=require(_0x4da3f0('0x29')),_=require('lodash'),moment=require(_0x4da3f0('0x1'));function checkNameSurname(_0x5d28aa,_0x5be04e,_0x4eba1e){const _0x299e6d=_0x4da3f0;let _0x5baa99='';!_[_0x299e6d('0x1d')](_0x5be04e)&&_0x299e6d('0x28')===typeof _0x5be04e&&(_0x5baa99+=_0x5be04e);!_[_0x299e6d('0x1d')](_0x4eba1e)&&_0x299e6d('0x28')===typeof _0x4eba1e&&(_0x5baa99+='\x20'+_0x4eba1e);if(_0x5baa99!=='')return _0x5baa99;return _0x5d28aa;}function Action(_0xaaa1c,_0x9edd36,_0x53105f){const _0x5602ac=_0x4da3f0;this[_0x5602ac('0x15')]=_0xaaa1c,this['uniqueid']=_0x53105f||undefined,this['name']=checkNameSurname(_0x9edd36['Contact'][_0x5602ac('0xa')],_0x9edd36['Contact'][_0x5602ac('0x22')],_0x9edd36[_0x5602ac('0x18')][_0x5602ac('0x1e')]),this[_0x5602ac('0x27')]=_0x9edd36[_0x5602ac('0x18')]['phone'],this['queue']=_0xaaa1c[_0x5602ac('0x16')],this[_0x5602ac('0x1c')]=_0x9edd36[_0x5602ac('0x1c')]||![],this[_0x5602ac('0x2c')]=_0xaaa1c['type'],this[_0x5602ac('0x7')]=_0xaaa1c[_0x5602ac('0x7')]||0x3,this[_0x5602ac('0x20')]=_0x9edd36['scheduledat'],this[_0x5602ac('0x9')]=_0x9edd36[_0x5602ac('0x9')],this[_0x5602ac('0x0')]=_0x9edd36[_0x5602ac('0x0')],this[_0x5602ac('0x2')]=_0x9edd36[_0x5602ac('0x2')],this[_0x5602ac('0x11')]=_0x9edd36[_0x5602ac('0x11')],this[_0x5602ac('0x1a')]=_0x9edd36['countdropretry'],this[_0x5602ac('0xb')]=_0x9edd36[_0x5602ac('0xb')],this['countmachineretry']=_0x9edd36[_0x5602ac('0xc')],this['countagentrejectretry']=_0x9edd36['countagentrejectretry'],this[_0x5602ac('0x19')]=_0x9edd36[_0x5602ac('0x19')],this[_0x5602ac('0x3')]=_0x9edd36[_0x5602ac('0x3')],this[_0x5602ac('0x24')]=_0x9edd36[_0x5602ac('0x24')],this['VoiceQueueId']=_0x9edd36[_0x5602ac('0x21')],this[_0x5602ac('0xd')]=_0x9edd36[_0x5602ac('0xd')],this[_0x5602ac('0x14')]=_0x9edd36['id'],this[_0x5602ac('0x26')]=_0x9edd36[_0x5602ac('0x18')][_0x5602ac('0x22')]||'',this[_0x5602ac('0x25')]=moment()[_0x5602ac('0x4')](_0x5602ac('0x17')),this[_0x5602ac('0x23')]=_0x9edd36['callback'],this['callbackuniqueid']=_0x9edd36[_0x5602ac('0x10')],this[_0x5602ac('0xf')]=_0x9edd36[_0x5602ac('0xf')],this[_0x5602ac('0x8')]=_0x9edd36[_0x5602ac('0x8')],this[_0x5602ac('0x1f')]='',this[_0x5602ac('0x5')]='';}Action[_0x4da3f0('0x2b')]['getCaller']=function(){const _0x5ca6d7=_0x4da3f0;return util['format'](_0x5ca6d7('0x12'),this[_0x5ca6d7('0x16')],this[_0x5ca6d7('0x15')][_0x5ca6d7('0x6')]>0x0?this['number'][_0x5ca6d7('0xe')](this[_0x5ca6d7('0x15')]['dialCutDigit']):this['number']);},Action['prototype'][_0x4da3f0('0x13')]=function(){const _0x189796=_0x4da3f0;return this[_0x189796('0x2a')];},module[_0x4da3f0('0x1b')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index 9c3639c..ae01587 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1052_0x1a92=['countabandonedretry','type','callbackuniqueid','VoiceQueueId','queue','callbackat','countglobal','UserId','originatecalleridname','format','membername','countagentrejectretry','callback','number','countdropretry','ContactId','calleridnum','countnosuchnumberretry','campaigntype','countbusyretry','statedesc','countmachineretry','endtime','reason','starttime','answertime','state','recallme','scheduledat','uniqueid','countcongestionretry','milliseconds','outbound','YYYY-MM-DD\x20HH:mm:ss','holdtime','CampaignId','ListId','countnoanswerretry','responsetime'];(function(_0x707700,_0x1a927e){const _0x34af3c=function(_0x45fca6){while(--_0x45fca6){_0x707700['push'](_0x707700['shift']());}};_0x34af3c(++_0x1a927e);}(a1052_0x1a92,0x10f));const a1052_0x34af=function(_0x707700,_0x1a927e){_0x707700=_0x707700-0x0;let _0x34af3c=a1052_0x1a92[_0x707700];return _0x34af3c;};'use strict';const moment=require('moment');function getSeconds(_0x45fca6,_0x3c65e5){const _0x357548=a1052_0x34af,_0x2f9e1b=moment(_0x45fca6)['milliseconds'](0x0),_0x1b4615=moment(_0x3c65e5)[_0x357548('0x21')](0x0);return _0x2f9e1b['diff'](_0x1b4615,'seconds');}function AgentComplete(_0x2b8286,_0xfb6c3f){const _0x56affc=a1052_0x34af;this[_0x56affc('0x1c')]=0x4,this[_0x56affc('0x16')]='Answer',this[_0x56affc('0x1e')]=_0x2b8286[_0x56affc('0x1e')],this[_0x56affc('0x3')]=_0x2b8286[_0x56affc('0x3')],this[_0x56affc('0x14')]=_0x2b8286[_0x56affc('0x3')]===_0x56affc('0x22')?'queue':_0x2b8286[_0x56affc('0x3')],this[_0x56affc('0x15')]=_0x2b8286['countbusyretry'],this[_0x56affc('0x20')]=_0x2b8286['countcongestionretry'],this[_0x56affc('0x0')]=_0x2b8286[_0x56affc('0x0')],this[_0x56affc('0x8')]=_0x2b8286[_0x56affc('0x15')]+_0x2b8286[_0x56affc('0x20')]+_0x2b8286[_0x56affc('0x0')]+_0x2b8286[_0x56affc('0x13')]+_0x2b8286[_0x56affc('0x10')]+_0x2b8286['countabandonedretry']+_0x2b8286[_0x56affc('0x17')]+_0x2b8286[_0x56affc('0xd')],this['countnosuchnumberretry']=_0x2b8286[_0x56affc('0x13')],this[_0x56affc('0x10')]=_0x2b8286[_0x56affc('0x10')],this[_0x56affc('0x2')]=_0x2b8286[_0x56affc('0x2')],this[_0x56affc('0x17')]=_0x2b8286['countmachineretry'],this[_0x56affc('0xd')]=_0x2b8286['countagentrejectretry'],this[_0x56affc('0x1f')]=_0xfb6c3f[_0x56affc('0x1f')],this['calleridname']=_0x2b8286['name'],this[_0x56affc('0x12')]=_0x2b8286[_0x56affc('0xf')],this[_0x56affc('0x1a')]=_0x2b8286[_0x56affc('0x1a')],this[_0x56affc('0x1')]=_0x2b8286[_0x56affc('0x1')],this[_0x56affc('0x1b')]=_0x2b8286[_0x56affc('0x1b')],this[_0x56affc('0x18')]=moment()[_0x56affc('0xb')](_0x56affc('0x23')),this['ringtime']=getSeconds(_0x2b8286[_0x56affc('0x1')],_0x2b8286[_0x56affc('0x1a')]),this[_0x56affc('0x24')]=getSeconds(_0x2b8286[_0x56affc('0x1b')],_0x2b8286[_0x56affc('0x1')]),this['talktime']=getSeconds(this[_0x56affc('0x18')],_0x2b8286[_0x56affc('0x1b')]),this[_0x56affc('0x6')]=_0xfb6c3f[_0x56affc('0x6')],this[_0x56affc('0xc')]=_0xfb6c3f[_0x56affc('0xc')],this[_0x56affc('0x19')]=_0xfb6c3f[_0x56affc('0x19')],this[_0x56affc('0xe')]=_0x2b8286[_0x56affc('0xe')],this[_0x56affc('0x4')]=_0x2b8286[_0x56affc('0x4')],this[_0x56affc('0x7')]=_0x2b8286[_0x56affc('0x7')],this[_0x56affc('0x1d')]=_0x2b8286[_0x56affc('0x1d')],this['ContactId']=_0x2b8286[_0x56affc('0x11')],this[_0x56affc('0x26')]=_0x2b8286['ListId'],this[_0x56affc('0x9')]=_0x2b8286['UserId'],this['VoiceQueueId']=_0x2b8286[_0x56affc('0x5')],this[_0x56affc('0x25')]=_0x2b8286[_0x56affc('0x25')],this['originatecalleridnum']=_0x2b8286['originatecalleridnum']||'',this[_0x56affc('0xa')]=_0x2b8286[_0x56affc('0xa')]||'';}module['exports']=AgentComplete; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index 59ce62c..c5e5fe6 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1053_0xf5a2=['callback','ListId','countbusyretry','ContactId','countnosuchnumberretry','originatecalleridname','calleridnum','originatecalleridnum','VoiceQueueId','recallme','CampaignId','uniqueid','callbackuniqueid','countdropretry','holdtime','starttime','responsetime','countagentrejectretry','campaigntype','countmachineretry','queue','countabandonedretry','scheduledat','ringtime','endtime','countcongestionretry','countglobal','calleridname','countnoanswerretry','UserId','talktime','callbackat'];(function(_0xbd051e,_0xf5a2ed){var _0x1e3d28=function(_0x15d86c){while(--_0x15d86c){_0xbd051e['push'](_0xbd051e['shift']());}};_0x1e3d28(++_0xf5a2ed);}(a1053_0xf5a2,0xa8));var a1053_0x1e3d=function(_0xbd051e,_0xf5a2ed){_0xbd051e=_0xbd051e-0x0;var _0x1e3d28=a1053_0xf5a2[_0xbd051e];return _0x1e3d28;};'use strict';function Final(_0x15d86c){var _0xcd01a4=a1053_0x1e3d;this[_0xcd01a4('0x3')]=_0x15d86c[_0xcd01a4('0x3')],this[_0xcd01a4('0xe')]=_0x15d86c['scheduledat'],this['type']=_0x15d86c['type'],this[_0xcd01a4('0xa')]=_0x15d86c['type']==='outbound'?_0xcd01a4('0xc'):_0x15d86c['type'],this[_0xcd01a4('0x1a')]=_0x15d86c[_0xcd01a4('0x1a')],this[_0xcd01a4('0x11')]=_0x15d86c[_0xcd01a4('0x11')],this['countnoanswerretry']=_0x15d86c[_0xcd01a4('0x14')],this[_0xcd01a4('0x12')]=_0x15d86c[_0xcd01a4('0x1a')]+_0x15d86c[_0xcd01a4('0x11')]+_0x15d86c[_0xcd01a4('0x14')]+_0x15d86c[_0xcd01a4('0x1c')]+_0x15d86c[_0xcd01a4('0x5')]+_0x15d86c[_0xcd01a4('0xd')]+_0x15d86c[_0xcd01a4('0xb')]+_0x15d86c[_0xcd01a4('0x9')],this[_0xcd01a4('0x1c')]=_0x15d86c['countnosuchnumberretry'],this[_0xcd01a4('0x5')]=_0x15d86c['countdropretry'],this[_0xcd01a4('0xd')]=_0x15d86c[_0xcd01a4('0xd')],this['countmachineretry']=_0x15d86c['countmachineretry'],this[_0xcd01a4('0x9')]=_0x15d86c[_0xcd01a4('0x9')],this[_0xcd01a4('0xc')]=_0x15d86c[_0xcd01a4('0xc')],this[_0xcd01a4('0x13')]=_0x15d86c[_0xcd01a4('0x13')],this[_0xcd01a4('0x1e')]=_0x15d86c[_0xcd01a4('0x1e')],this[_0xcd01a4('0x7')]=_0x15d86c['starttime'],this['responsetime']=_0x15d86c['responsetime'],this[_0xcd01a4('0x10')]=_0x15d86c[_0xcd01a4('0x8')],this[_0xcd01a4('0xf')]=_0x15d86c['ringtime']||0x0,this[_0xcd01a4('0x6')]=_0x15d86c[_0xcd01a4('0x6')]||0x0,this[_0xcd01a4('0x16')]=_0x15d86c['talktime']||0x0,this[_0xcd01a4('0x18')]=_0x15d86c[_0xcd01a4('0x18')],this[_0xcd01a4('0x4')]=_0x15d86c['callbackuniqueid'],this[_0xcd01a4('0x17')]=_0x15d86c[_0xcd01a4('0x17')],this[_0xcd01a4('0x1')]=_0x15d86c['recallme'],this[_0xcd01a4('0x1b')]=_0x15d86c[_0xcd01a4('0x1b')],this[_0xcd01a4('0x19')]=_0x15d86c['ListId'],this[_0xcd01a4('0x15')]=_0x15d86c[_0xcd01a4('0x15')],this['VoiceQueueId']=_0x15d86c[_0xcd01a4('0x0')],this['CampaignId']=_0x15d86c[_0xcd01a4('0x2')],this[_0xcd01a4('0x1f')]=_0x15d86c[_0xcd01a4('0x1f')]||'',this[_0xcd01a4('0x1d')]=_0x15d86c[_0xcd01a4('0x1d')]||'';}module['exports']=Final; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index 1471da4..0417453 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1054_0x3e4a=['countabandonedretry','countdropretry','VoiceQueueId','name','YYYY-MM-DD\x20HH:mm:ss','format','IVR','cause-txt','milliseconds','responsetime','scheduledat','CampaignId','ringtime','countagentrejectretry','queue','moment','uniqueid','countnoanswerretry','calleridname','holdtime','type','UserId','countglobal','exports','ListId','outbound','state','countcongestionretry','ContactId','countbusyretry','calleridnum','campaigntype','number','countmachineretry','endtime','membername','countnosuchnumberretry','reason','callbackuniqueid','callback','statedesc','diff','starttime','callbackat','recallme','seconds'];(function(_0x1c9723,_0x3e4a9f){const _0x358204=function(_0x492e5f){while(--_0x492e5f){_0x1c9723['push'](_0x1c9723['shift']());}};_0x358204(++_0x3e4a9f);}(a1054_0x3e4a,0x1cd));const a1054_0x3582=function(_0x1c9723,_0x3e4a9f){_0x1c9723=_0x1c9723-0x0;let _0x358204=a1054_0x3e4a[_0x1c9723];return _0x358204;};const _0x46c57e=a1054_0x3582;'use strict';const moment=require(_0x46c57e('0xe'));function getSeconds(_0x492e5f,_0x52097d){const _0x226567=_0x46c57e,_0x2a174f=moment(_0x492e5f)['milliseconds'](0x0),_0x243c73=moment(_0x52097d)[_0x226567('0x7')](0x0);return _0x2a174f[_0x226567('0x28')](_0x243c73,_0x226567('0x2c'));}function Hangup(_0x4f8042,_0x1f4184){const _0x42aea4=_0x46c57e;this[_0x42aea4('0x19')]=0x4,this[_0x42aea4('0x27')]='Answer',this['scheduledat']=_0x4f8042[_0x42aea4('0x9')],this[_0x42aea4('0x13')]=_0x4f8042['type'],this[_0x42aea4('0x1e')]=_0x4f8042[_0x42aea4('0x13')]===_0x42aea4('0x18')?_0x42aea4('0xd'):_0x4f8042['type'],this[_0x42aea4('0x1c')]=_0x4f8042[_0x42aea4('0x1c')],this[_0x42aea4('0x1a')]=_0x4f8042[_0x42aea4('0x1a')],this[_0x42aea4('0x10')]=_0x4f8042[_0x42aea4('0x10')],this[_0x42aea4('0x15')]=_0x4f8042[_0x42aea4('0x1c')]+_0x4f8042['countcongestionretry']+_0x4f8042[_0x42aea4('0x10')]+_0x4f8042[_0x42aea4('0x23')]+_0x4f8042['countdropretry']+_0x4f8042[_0x42aea4('0x2d')]+_0x4f8042[_0x42aea4('0x20')]+_0x4f8042['countagentrejectretry'],this[_0x42aea4('0x23')]=_0x4f8042['countnosuchnumberretry'],this[_0x42aea4('0x0')]=_0x4f8042['countdropretry'],this[_0x42aea4('0x2d')]=_0x4f8042['countabandonedretry'],this[_0x42aea4('0x20')]=_0x4f8042[_0x42aea4('0x20')],this[_0x42aea4('0xc')]=_0x4f8042[_0x42aea4('0xc')],this[_0x42aea4('0xf')]=_0x1f4184[_0x42aea4('0xf')],this[_0x42aea4('0x11')]=_0x4f8042[_0x42aea4('0x2')],this[_0x42aea4('0x1d')]=_0x4f8042[_0x42aea4('0x1f')],this[_0x42aea4('0x29')]=_0x4f8042[_0x42aea4('0x29')],this[_0x42aea4('0x8')]=_0x4f8042['responsetime'],this[_0x42aea4('0x21')]=moment()[_0x42aea4('0x4')](_0x42aea4('0x3')),this[_0x42aea4('0xb')]=getSeconds(_0x4f8042[_0x42aea4('0x8')],_0x4f8042[_0x42aea4('0x29')]),this[_0x42aea4('0x12')]=0x0,this['talktime']=getSeconds(this['endtime'],_0x4f8042['responsetime']),this[_0x42aea4('0xd')]=_0x4f8042[_0x42aea4('0xd')],this[_0x42aea4('0x22')]=_0x42aea4('0x5'),this[_0x42aea4('0x24')]=_0x1f4184[_0x42aea4('0x6')],this[_0x42aea4('0x26')]=_0x4f8042['callback'],this[_0x42aea4('0x25')]=_0x4f8042['callbackuniqueid'],this[_0x42aea4('0x2a')]=_0x4f8042[_0x42aea4('0x2a')],this[_0x42aea4('0x2b')]=_0x4f8042[_0x42aea4('0x2b')],this[_0x42aea4('0x1b')]=_0x4f8042[_0x42aea4('0x1b')],this[_0x42aea4('0x17')]=_0x4f8042['ListId'],this[_0x42aea4('0x14')]=_0x4f8042[_0x42aea4('0x14')],this[_0x42aea4('0x1')]=_0x4f8042['VoiceQueueId'],this[_0x42aea4('0xa')]=_0x4f8042['CampaignId'];}module[_0x46c57e('0x16')]=Hangup; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/history.js b/server/services/ami/dialer/history.js index a742bf1..3f01a18 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1055_0x44de=['moment','countmachineretry','name','callback','holdtime','VoiceQueueId','UserId','endtime','originatecalleridname','talktime','countbusyretry','countnosuchnumberretry','callbackuniqueid','originatecalleridnum','starttime','countnoanswerretry','milliseconds','seconds','CampaignId','countcongestionretry','countagentrejectretry','responsetime','exports','type','ContactId','recallme','uniqueid','countdropretry','callbackat','scheduledat','ListId','number','queue','outbound'];(function(_0x56ee2a,_0x44de4b){const _0x18e0f9=function(_0x2b06b2){while(--_0x2b06b2){_0x56ee2a['push'](_0x56ee2a['shift']());}};_0x18e0f9(++_0x44de4b);}(a1055_0x44de,0xa9));const a1055_0x18e0=function(_0x56ee2a,_0x44de4b){_0x56ee2a=_0x56ee2a-0x0;let _0x18e0f9=a1055_0x44de[_0x56ee2a];return _0x18e0f9;};const _0x5d3471=a1055_0x18e0;'use strict';const moment=require(_0x5d3471('0x1'));function getSeconds(_0x2b06b2,_0x28b3bf){const _0x5cb466=_0x5d3471,_0x5277b5=moment(_0x2b06b2)[_0x5cb466('0x11')](0x0),_0x5ad7ce=moment(_0x28b3bf)['milliseconds'](0x0);return _0x5277b5['diff'](_0x5ad7ce,_0x5cb466('0x12'));}function History(_0x451eda){const _0x6bd76d=_0x5d3471;this[_0x6bd76d('0x1b')]=_0x451eda[_0x6bd76d('0x1b')],this[_0x6bd76d('0x1e')]=_0x451eda[_0x6bd76d('0x1e')]||undefined,this['type']=_0x451eda[_0x6bd76d('0x18')],this['campaigntype']=_0x451eda[_0x6bd76d('0x18')]===_0x6bd76d('0x0')?_0x6bd76d('0x21'):_0x451eda[_0x6bd76d('0x18')],this[_0x6bd76d('0xb')]=_0x451eda['countbusyretry'],this[_0x6bd76d('0x14')]=_0x451eda[_0x6bd76d('0x14')],this[_0x6bd76d('0x10')]=_0x451eda[_0x6bd76d('0x10')],this['countglobal']=_0x451eda['countbusyretry']+_0x451eda['countcongestionretry']+_0x451eda[_0x6bd76d('0x10')]+_0x451eda[_0x6bd76d('0xc')]+_0x451eda[_0x6bd76d('0x1c')]+_0x451eda['countabandonedretry']+_0x451eda[_0x6bd76d('0x2')]+_0x451eda['countagentrejectretry'],this[_0x6bd76d('0xc')]=_0x451eda['countnosuchnumberretry'],this[_0x6bd76d('0x1c')]=_0x451eda[_0x6bd76d('0x1c')],this['countabandonedretry']=_0x451eda['countabandonedretry'],this['countmachineretry']=_0x451eda[_0x6bd76d('0x2')],this[_0x6bd76d('0x15')]=_0x451eda[_0x6bd76d('0x15')],this[_0x6bd76d('0x21')]=_0x451eda[_0x6bd76d('0x21')],this['calleridname']=_0x451eda[_0x6bd76d('0x3')],this['calleridnum']=_0x451eda[_0x6bd76d('0x20')],this[_0x6bd76d('0xf')]=_0x451eda[_0x6bd76d('0xf')],this['responsetime']=_0x451eda[_0x6bd76d('0x16')],this[_0x6bd76d('0x8')]=_0x451eda['responsetime'],this['ringtime']=getSeconds(_0x451eda[_0x6bd76d('0x16')],_0x451eda[_0x6bd76d('0xf')]),this[_0x6bd76d('0x5')]=0x0,this[_0x6bd76d('0xa')]=0x0,this[_0x6bd76d('0x4')]=_0x451eda[_0x6bd76d('0x4')],this['callbackuniqueid']=_0x451eda[_0x6bd76d('0xd')],this[_0x6bd76d('0x1d')]=_0x451eda[_0x6bd76d('0x1d')],this[_0x6bd76d('0x1a')]=_0x451eda[_0x6bd76d('0x1a')],this['ContactId']=_0x451eda[_0x6bd76d('0x19')],this['ListId']=_0x451eda[_0x6bd76d('0x1f')],this[_0x6bd76d('0x7')]=_0x451eda['UserId'],this[_0x6bd76d('0x6')]=_0x451eda[_0x6bd76d('0x6')],this[_0x6bd76d('0x13')]=_0x451eda[_0x6bd76d('0x13')],this[_0x6bd76d('0xe')]=_0x451eda[_0x6bd76d('0xe')]||'',this[_0x6bd76d('0x9')]=_0x451eda[_0x6bd76d('0x9')]||'';}module[_0x5d3471('0x17')]=History; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index a8a38ca..ede9e87 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1056_0x5501=['content','status','Queue:\x20','collection\x20data\x20in\x20progressive\x20at','uuid','createStateFinal','finally','[CatchErlangB]','agentcomplete','Congestion','agentreject','[rescheduleContact][AgentReject]','campaign:ivr:%s','checkIsBlackList','p\x20=\x20','XMD-AMDMAXIMUMNUMBEROFWORDS','\x5cw{0,','[rescheduleContact][Drop]','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','dialMachineMaxRetry','countReScheduled','[rescheduleContact][NoSuchNumber]','sumHoldTime','[getContactCampaign2]','TrunkBackup','XMD-ORIGINATECALLERIDNUM','entity\x20is\x20undefine','[unlockQueueStatus][undefined]','clearing\x20variable\x20start\x20progressive','voice_queue:save','stateinterface','type','Machine','limitCalls','indexOf','queueBookedRR','check\x20predictive\x20is\x20not\x20undefine','../rpc/voiceQueueRt','uniqueid','Interval','updatedAt','checkContactBlack','TRUNK_IS_NOT_REACHABLE','AMD','dialPredictiveInterval','Success','originated','exports','queuecallerabandon','queueBooked','dialNoAnswerMaxRetry','agentconnect','waiting','countmachineretry','[emptyContact]','Unknown\x20Predictive','createdAt','[createHistory]\x20','dialAgiAfterHangupAgent','erlangCallToSecond','outboundDropCallsDayCallersExit','dialAMDActive','droptime','saveInDb','dialPrefix','[rescheduleContact][NoAnswer]','reason\x200\x20no\x20such\x20number....','predictiveIntervalDroppedCallsCallersExit','dialRecallMeTimeout','actionid','paused','checkIfTime','checkDialMethod','BLACKLIST','[getContactDialerPredictive]','YYYY-MM-DD\x20HH:mm:ss','command','\x22agi://%s/square,%s\x22','true','congestion','AgentReject','countbusyretry','./queueCallerAbandon','custom:agentreject','custom:queuesummary','uniqueId','./hangup','SIP/%s','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','preview','dialAMDGreeting','syncCampaigns','Amax\x20=\x20','[getContactDialer2]','countabandonedretry','[rescheduleContact][dialRecallInQueue]','getDataPredictiveOld','from-sip','dialAMDMinWordLength','outbound','contactAgent-idHopper:\x20','XMD-AMDINITIALSILENCE','[startMethodPredictive][StartProgressive]','Failure','launchHandleIvr','RecallInQueue','[actionOriginateIvr]\x20','error','INTERVAL_IS_OVERTIME','[Originate][MoveBlacklist]','[Originate][HistoryDialRecallInQueue][historyCatch]','../rpc/cmHopperHistory','erlangCalls','Drop\x20in\x20this\x20interval','dialOriginateCallerIdNumber','[Originate][historyBlacklist]','[rescheduleContact][Machine]','busy','dialDropMaxRetry','callerid','[actionOriginate]\x20','actions','amd','dialBusyRetryFrequency','\x20INTERVAL_IS_NULL','ivr','prototype','channels','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','outboundAnswerAgiCallsDay','CALLEREXIT','[getContactDialer2][ReScheduled]','outboundRejectCallsDay','all','syncQueueSummary','XMD-CAMPAIGNID','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','replace','\x22%s\x22\x20<%s>','[rescheduleContact][Abandoned]','newexten','isEmpty','inBlackList','dialQueueProject','outboundNoAnswerCallsDay','add','Contact\x20updated','syncAgentComplete','calleridnum','isNil','-----\x20Stats\x20Predictive\x20---','\x20Intervals\x20is\x20null\x20','averageHandleTime','strategy','syncQueueStatusComplete','VoiceQueueId','dialCutDigit','rrmemory','bind','History\x20information\x20are\x20empty','reason\x203\x20ringing\x20no\x20answer','TIMEZONE_UNKNOW','moveContactManagedDialer','Umin\x20=\x20','Unknow','dialTimezone','dialActive','dialGlobalMaxRetry','check\x20failure','Intervals','Timezone:\x20','startPredictive','[unlock][syncQueueStatusComplete]','handlePower','MACHINE','predictiveIntervalAvgHoldtime','check\x20handlePredictive\x20is\x20not\x20undefine','XMD-ORIGINATECALLERIDNAME','Abandoned','../rpc/cmHopperBlack','notFound','iftime\x20%s,%s','match','stateGlobal','clearZombieChannels','isArray','evt\x20is\x20undefine','[getDataPredictive]','unmanaged','power','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','NOT_ACTIVE','amdstatus','not_inuse','info','[syncHangupIvr]','countglobal','statedesc','calleridname','phone','[syncQueueCallerAbandon]\x20[Drop]','enqueue','agiIp','isTrunkReachable','[moveContactManagedDialer]\x20','dialAMDBetweenWordsSilence','../../../rediscache','[booked][unlock]','[unlockOriginate][syncQueueStatusComplete]','lodash','[emptyContact][createHistory]','buildObj','dialQueueTimeout','[syncAgentComplete][createHistory][5]','dropRate','originate','merge','RecallFailedTimeout','reason19\x20machine....','agiafterat','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','dialAbandonedMaxRetry','outboundNoSuchCallsDay','callProgressDetecting','endtime','dialOriginateCallerIdName','dialOriginateTimeout','predictiveIntervalTotalCalls','[Catch][Preview][syncQueueStatusComplete]','AnswerAGI','voiceQueues','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','[syncAgentComplete][createHistory]','length',')\x20are\x20less\x20than\x20threshold\x20(','is\x20disactive','[booked][RR][finaly]','getQueue','dialAMDMaximumNumberOfWords','ivrOriginated','milliseconds','[booked][checkContactBlack]','pow','answered','countcongestionretry','[syncAgentComplete][createHistory][3]','queuestatus','syncOriginateResponse','../../../config/logger',')\x20are\x20more\x20than\x20threshold\x20(','recalculate\x20predictive\x20at','message','[syncHangupIvr][createHistory]','contact\x20is\x20undefine','method\x20not\x20recognized','[checkIsBlackListIvr]\x20','predictiveIntervalAvailable','dialPredictiveOptimization','RUNNING','seconds','[syncHangupInAMDIvr]','pTalking','dialer','agents','GLOBAL_INTERVAL_IS_OVERTIME','sendMessageOneNotActive','outboundCongestionCallsDay','custom:agentcongestion','util','countagentrejectretry','[abandonmentRate]','[syncAgentComplete][createHistory][8]','[actionOriginatePredictive]\x20','[Dialer][checkChannel]','outboundDropCallsDayTimeout','ivrTotalCallsDays','SIP/%s/%s%s','NONE','contactsId','md5','./history','interval','loggerHandler','sumBillable','pick','[getContactCampaign2][Empty]','./final','undefined','temp','getContactDialerIvr','getContactDialer','unlockRR','IS_DISACTIVED','XMD-AMDAFTERGREETINGSILENCE','ivrAnswerCallsDay','originateresponse','Predictive\x20after\x20first\x20interval','dialQueueProject2','\x22\x22\x20<>','dialMethod','Error','sumDuration','outboundReCallsDay','XMD-AMDTOTALANALYSISTIME','NoSuchNumber','Blacklist','outboundQueuePauses','reason\x2011\x20abandoned','[unlock3][syncQueueStatusComplete]','[getContactDialer]\x20','reason\x205\x20busy','emit','[syncAgentComplete][createHistory][20]','predictiveIntervalDroppedCallsTimeout','isUndefined','\x20trunk\x20is\x20not\x20reachable','tryOriginatePredictive','maxNumberOriginate','Dropped\x20calls\x20day','round','startMethodPredictive','string','cause-txt','HANGUP','[syncHangupInAMD]','syncHangup','response','outboundOriginateFailureCallsDay','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','XMD-AMDSILENCETHRESHOLD','[checkIsBlackList]\x20','XMD-VOICEQUEUEID','queueStatusComplete:\x20','predictiveIntervalPauses','dialAMDMaximumWordLength','avgHandleTime','optionPredictive','[Originate][HistoryRecallClose]','outboundUnknownCallsDay','Busy','INTERVAL_IS_NULL','dialBusyMaxRetry','Drop','dialAMDSilenceThreshold','erlangBusyFactor','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','busyFactor','handleIvr','object','dialAgentRejectRetryFrequency','[countReScheduled]\x20','OriginateError','outboundBusyCallsDay','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','run','sequence','outboundAnswerCallsDay','tags','dialAgentRejectMaxRetry','[syncAgentComplete][createHistory][11]','push','AGI','tail','isSuccess','dialOrderByScheduledAt','available','clearing\x20variable\x20handle\x20predictive','[handlePredictive][limitChannel]','[getContactDialer2][Empty]','\x20Timezone\x20unknow\x20','diff','originatecalleridnum','../rpc/cmHopper','Agent:\x20','membername','minutes','syncQueueCallerAbandon','hangup','responsetime','then','[booked][checkContactBlack][else]','voiceQueue\x20is\x20undefine','inspect','Action','RESCHEDULED_CONTACTS','varset','dialCongestionMaxRetry','--------\x20Drop\x20Rate\x20--------','predictiveIntervalHitRate','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','originate\x20action\x20Error','loggedIn','getVoiceQueueRtPauses','custom:agentnosuchnumber','unlockContact','[syncAgentComplete]','CampaignId','queueCallerAbandonCreateState','syncAgentConnect','floor','createHistory','countnoanswerretry','dialAMDAfterGreetingSilence','[decremetOriginate]\x20is\x20null\x20or\x20undefined','dialDropRetryFrequency','---------------------------','dialAMDInitialSilence','active','predictiveIntervalErlangCalls','ListId','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','RECALLINQUEUE','m\x20=\x20','----\x20Agent\x20Busy\x20Factor\x20----','INTERVAL_IS_EMPTY','is\x20not\x20active','dialPredictiveOptimizationPercentage','Ts\x20=\x20','actionOriginate','predictiveIntervalErlangCallsDroppedCalls','reachable','[syncAgentComplete][createHistory][0]','reason\x208\x20congestion','Queue','roundrobin','dialLimitQueue','Predictive\x20for\x20every\x20interval','catch','[syncCampaigns]','abandoned','[syncAgentComplete][createHistory][10]','dialNoSuchNumberMaxRetry','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','channel','toUpper','contacts','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[busyFactor]','loopClearZombieChannels','queuestatuscomplete','dialGlobalInterval','dialQueueOptions','predictiveIntervalMinThreshold','dialAMDTotalAnalysisTime','abandonmentRate','predictiveIntervalAnsweredCalls','queuemember','name','one\x20call\x20every:','[Originate][HistoryRecallClose][historyCatch]','[originateError]:\x20%s','Contact.phone','talking','dropreason','startProgressive','[unlockContact]\x20','[rescheduleContact]\x20[Busy]','predictiveIntervalMultiplicativeFactor','[rescheduleContact]\x20','stringify','outboundBlacklistCallsDay','_rr','locked','\x20AGENTS\x20NOT\x20LOGGED','campaigns','recallme','xcally-motion-dialer','checkIsTrunkReachable','fail\x20to\x20scheduled\x20calls','checkRetriveMax','[decremetOriginate]\x20object\x20originated\x20is\x20negative','UserId','voice:queue:%s','[syncQueueSummary]\x20Campaign\x20Queue:\x20','HangupInAMD','timezones','queue','[rescheduleContact]\x20[Congestion]','state','checkIfTimeIntervals','dialRecallInQueue','emptyContact','[uniqueid]','predictiveIntervalMaxThreshold','trunks','loopCampaigns','rescheduleContact','predictiveIntervalAvgTalktime','syncQueueMember','voicePause','ContactId','format','ifTime','dialNoAnswerRetryFrequency','dialMachineRetryFrequency','[originate][error]','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','starttime','contact\x20not\x20moved','RECALLFAILEDTIMEOUT','reason\x2020\x20agentreject','[unlock2][syncQueueStatusComplete]','queueStatusComplete','[syncAgentComplete][createHistory][?]','dialPowerLevel','dialRandomLastDigitCallerIdNumber','Trunk','predictiveCalls','reason','getCaller','total','predictive','erlangAbandonmentRate','ACTIVE','idHopper','[actions]','Max\x20Drop\x20','resolve','campaign:save','countnosuchnumberretry','countdropretry','\x20Interval\x20is\x20overtime:\x20','booked','[callProgressDetecting]','value','../../../config/config.service','substring','XMD-AMDMAXIMUMWORDLENGTH','Contact','handlePredictive','updateOriginated','checkIsBlackListIvr','dialAbandonedRetryFrequency','started\x20in\x20predictive\x20at','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];(function(_0x55c6c0,_0x5501e9){const _0x5f12e9=function(_0x156b4d){while(--_0x156b4d){_0x55c6c0['push'](_0x55c6c0['shift']());}};_0x5f12e9(++_0x5501e9);}(a1056_0x5501,0x17c));const a1056_0x5f12=function(_0x55c6c0,_0x5501e9){_0x55c6c0=_0x55c6c0-0x0;let _0x5f12e9=a1056_0x5501[_0x55c6c0];return _0x5f12e9;};const _0xab3d52=a1056_0x5f12;'use strict';const util=require(_0xab3d52('0x1a7')),_=require(_0xab3d52('0x16c')),uuid=require(_0xab3d52('0x9f')),moment=require('moment'),rr=require('rr'),md5=require(_0xab3d52('0x1b2')),ut=require('../preview/util/util'),config=require('../../../config/environment/'),logger=require(_0xab3d52('0x193'))('dialer'),loggerBooked=require(_0xab3d52('0x193'))('booked'),loggerPredictive=require('../../../config/logger')(_0xab3d52('0x83')),loggerPredictiveCalls=require('../../../config/logger')(_0xab3d52('0x7f')),loggerSyncQueueSummary=require(_0xab3d52('0x193'))(_0xab3d52('0x121')),ami=require('../ami'),{getSocket}=require(_0xab3d52('0x169')),io=getSocket(),cmHopper=require(_0xab3d52('0x20f')),cmHopperHistory=require(_0xab3d52('0x10a')),cmHopperBlack=require(_0xab3d52('0x14e')),voiceQueueRt=require(_0xab3d52('0xc0')),Action=require('./action'),History=require(_0xab3d52('0x1b3')),Final=require(_0xab3d52('0x1b9')),AgentComplete=require('./agentComplete'),QueueCallerAbandon=require(_0xab3d52('0xed')),Hangup=require(_0xab3d52('0xf1')),{getConfigService}=require(_0xab3d52('0x91')),strategy={'rrmemory':_0xab3d52('0x138'),'roundrobin':_0xab3d52('0x2c')},Sequence=function(){};Sequence[_0xab3d52('0x119')][_0xab3d52('0x164')]=function(_0x156b4d){const _0x5dadd1=_0xab3d52;this[_0x5dadd1('0x205')]=this['tail']?this[_0x5dadd1('0x205')][_0x5dadd1('0xa1')](_0x156b4d):_0x156b4d();};function Dialer(_0x1ddb3d,_0x123a5b){const _0x3d08cf=_0xab3d52;this[_0x3d08cf('0x1fe')]=new Sequence(),this['preview']=_0x123a5b,this[_0x3d08cf('0x181')]=_0x1ddb3d['voiceQueues'],this[_0x3d08cf('0x54')]=_0x1ddb3d[_0x3d08cf('0x54')],this[_0x3d08cf('0x1a2')]=_0x1ddb3d[_0x3d08cf('0x1a2')],this[_0x3d08cf('0x68')]=_0x1ddb3d[_0x3d08cf('0x68')],this[_0x3d08cf('0x1d8')]=config[_0x3d08cf('0x1d8')]||0x2,this[_0x3d08cf('0x11a')]={},this[_0x3d08cf('0x114')]={},this[_0x3d08cf('0x1b1')]={},this[_0x3d08cf('0xf0')]={},this[_0x3d08cf('0x1eb')]={},this[_0x3d08cf('0x146')]={},this[_0x3d08cf('0x4a')]={},this[_0x3d08cf('0x18a')]={},this['queueBooked']={},this['queueBookedRR']={},ami['on'](_0x3d08cf('0xce'),this[_0x3d08cf('0x12')]['bind'](this)),ami['on'](_0x3d08cf('0xcb'),this[_0x3d08cf('0x213')][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0x1c2'),this['syncOriginateResponse'][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0xa3'),this[_0x3d08cf('0x12e')][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0xef'),this[_0x3d08cf('0x121')][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0x214'),this[_0x3d08cf('0x1e0')]['bind'](this)),ami['on'](_0x3d08cf('0x127'),this['syncNewExten'][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0x5'),this['syncVarSet']['bind'](this)),ami['on'](_0x3d08cf('0x42'),this['syncQueueMember'][_0x3d08cf('0x139')](this)),ami['on'](_0x3d08cf('0x3b'),this['syncQueueStatusComplete'][_0x3d08cf('0x139')](this)),this['loopCampaigns'](),this[_0x3d08cf('0x3a')]();}function isNotNull(_0x4597d4){const _0x16808b=_0xab3d52;return _0x4597d4!==null&&!_[_0x16808b('0x1d5')](_0x4597d4);}function checkIsLoggedIn(_0x4046b7,_0x45622c){return function(){const _0x54a5e6=a1056_0x5f12;if(_0x45622c<=0x0){_0x4046b7[_0x54a5e6('0x196')]='AGENTS_NOT_LOGGED';throw _0x4046b7[_0x54a5e6('0x43')]+_0x54a5e6('0x53');}};}function isActive(_0x4f431d){return _0x4f431d;}function checkIsActive(_0x3f274c,_0x2afa95){return function(){const _0x30f100=a1056_0x5f12;if(!isActive(_0x2afa95)){_0x3f274c['message']=_0x30f100('0x15a');throw _0x3f274c[_0x30f100('0x43')]+'\x20NOT\x20Active';}};}function checkInterval(_0x111851){return function(){const _0x1c2566=a1056_0x5f12;if(!isNotNull(_0x111851['Interval'])){_0x111851['message']='INTERVAL_IS_NULL';throw _0x111851['name']+_0x1c2566('0x117');}if(!isNotNull(_0x111851[_0x1c2566('0xc2')][_0x1c2566('0x144')])){_0x111851['message']=_0x1c2566('0x1ef');throw _0x111851[_0x1c2566('0x43')]+_0x1c2566('0x117');}if(!isNotNull(_['isEmpty'](_0x111851[_0x1c2566('0xc2')][_0x1c2566('0x144')]))){_0x111851[_0x1c2566('0x196')]=_0x1c2566('0x1ef');throw _0x111851[_0x1c2566('0x43')]+_0x1c2566('0x117');}};}function msgResponse(_0x494e56,_0x152925,_0x51c310){return{'action':_0x494e56,'response':_0x152925,'message':_0x51c310,'stack':_0x51c310};}function myreject(_0x1375fd){return function(_0x99af38){const _0x2d8389=a1056_0x5f12;return _0x1375fd(msgResponse('[ifTime][Action]',_0x2d8389('0x1c7'),JSON[_0x2d8389('0x4f')](_0x99af38)));};}function getSeconds(_0x13a487,_0x4d4d8f){const _0x369f00=_0xab3d52,_0x13f96c=moment(_0x13a487)['milliseconds'](0x0),_0x5cf928=moment(_0x4d4d8f)[_0x369f00('0x18b')](0x0);return _0x13f96c['diff'](_0x5cf928,_0x369f00('0x19e'));}function emit(_0x3fb429,_0x528181,_0xd1255c){const _0x4c0bbe=_0xab3d52;io['to'](_0x3fb429)[_0x4c0bbe('0x1d2')](_0x528181,_0xd1255c);}function emitVoiceQueueSummary(_0x285c45){const _0x55517a=_0xab3d52;if(_0x285c45[_0x55517a('0xba')]==='outbound'){const _0x2c6cb2={'id':_0x285c45['id'],'name':_0x285c45[_0x55517a('0x43')],'strategy':_0x285c45[_0x55517a('0x134')],'answered':_0x285c45[_0x55517a('0x18e')],'available':_0x285c45[_0x55517a('0x208')],'loggedIn':_0x285c45[_0x55517a('0xb')],'pTalking':_0x285c45[_0x55517a('0x1a0')],'sumBillable':_0x285c45[_0x55517a('0x1b6')],'sumDuration':_0x285c45[_0x55517a('0x1c8')],'sumHoldTime':_0x285c45[_0x55517a('0xb1')]||0x0,'talking':_0x285c45[_0x55517a('0x48')],'total':_0x285c45[_0x55517a('0x82')],'type':_0x285c45[_0x55517a('0xba')],'unmanaged':_0x285c45[_0x55517a('0x157')],'abandoned':_0x285c45[_0x55517a('0x31')],'waiting':_0x285c45[_0x55517a('0xcf')],'loggedInDb':_0x285c45['loggedInDb'],'dialActive':_0x285c45['dialActive'],'dialMethod':_0x285c45['dialMethod'],'dialOriginateCallerIdName':_0x285c45[_0x55517a('0x17c')],'dialOriginateCallerIdNumber':_0x285c45['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x285c45[_0x55517a('0x17d')],'dialPrefix':_0x285c45[_0x55517a('0xdb')],'outboundAnswerAgiCallsDay':_0x285c45['outboundAnswerAgiCallsDay'],'outboundAnswerCallsDay':_0x285c45[_0x55517a('0x1ff')],'outboundBlacklistCallsDay':_0x285c45[_0x55517a('0x50')],'outboundBusyCallsDay':_0x285c45[_0x55517a('0x1fb')],'outboundCongestionCallsDay':_0x285c45[_0x55517a('0x1a5')],'outboundDropCallsDayACS':_0x285c45['outboundDropCallsDayACS'],'outboundDropCallsDayCallersExit':_0x285c45[_0x55517a('0xd7')],'outboundDropCallsDayTimeout':_0x285c45[_0x55517a('0x1ad')],'outboundNoAnswerCallsDay':_0x285c45[_0x55517a('0x12b')],'outboundNoSuchCallsDay':_0x285c45['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x285c45['outboundOriginateFailureCallsDay'],'outboundReCallsDay':_0x285c45[_0x55517a('0x1c9')],'outboundRejectCallsDay':_0x285c45[_0x55517a('0x11f')],'outboundUnknownCallsDay':_0x285c45[_0x55517a('0x1ed')],'predictiveIntervalAnsweredCalls':_0x285c45[_0x55517a('0x41')],'predictiveIntervalAvgHoldtime':_0x285c45[_0x55517a('0x14a')],'predictiveIntervalAvgTalktime':_0x285c45[_0x55517a('0x6b')],'predictiveIntervalDroppedCallsCallersExit':_0x285c45[_0x55517a('0xde')],'predictiveIntervalDroppedCallsTimeout':_0x285c45[_0x55517a('0x1d4')],'predictiveIntervalErlangCalls':_0x285c45[_0x55517a('0x1c')],'predictiveIntervalErlangCallsDroppedCalls':_0x285c45[_0x55517a('0x27')],'predictiveIntervalHitRate':_0x285c45[_0x55517a('0x8')],'predictiveIntervalMultiplicativeFactor':_0x285c45[_0x55517a('0x4d')],'predictiveIntervalPauses':_0x285c45[_0x55517a('0x1e8')],'predictiveIntervalAvailable':_0x285c45['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x285c45['predictiveIntervalTotalCalls'],'message':_0x285c45['message'],'originated':_0x285c45[_0x55517a('0xc9')],'erlangCalls':_0x285c45[_0x55517a('0x10b')],'erlangCallToSecond':_0x285c45[_0x55517a('0xd6')],'erlangAbandonmentRate':_0x285c45[_0x55517a('0x84')],'erlangBusyFactor':_0x285c45[_0x55517a('0x1f3')],'startPredictive':_0x285c45[_0x55517a('0x146')],'startProgressive':_0x285c45[_0x55517a('0x4a')]};_0x285c45[_0x55517a('0x7e')]&&(_0x2c6cb2[_0x55517a('0x7e')]={'id':_0x285c45['Trunk']['id'],'name':_0x285c45[_0x55517a('0x7e')][_0x55517a('0x43')],'active':_0x285c45[_0x55517a('0x7e')][_0x55517a('0x1b')],'callerid':_0x285c45[_0x55517a('0x7e')]['callerid']});_0x285c45[_0x55517a('0xc2')]&&(_0x2c6cb2['Interval']={'id':_0x285c45[_0x55517a('0xc2')]['id'],'name':_0x285c45[_0x55517a('0xc2')]['name']});const _0x102e6f=md5(JSON[_0x55517a('0x4f')](_0x2c6cb2));_0x285c45[_0x55517a('0x1b2')]!==_0x102e6f&&(_0x285c45['md5']=_0x102e6f,emit(util[_0x55517a('0x6f')](_0x55517a('0x5c'),_0x2c6cb2['name']),_0x55517a('0xb8'),_0x2c6cb2));}}function emitCampaignSummary(_0x4d3a78){const _0x18fda3=_0xab3d52;_0x4d3a78[_0x18fda3('0xba')]==='ivr'&&emit(util[_0x18fda3('0x6f')](_0x18fda3('0xa7'),_0x4d3a78[_0x18fda3('0x43')]),_0x18fda3('0x8a'),_0x4d3a78);}function checkGetDataPredictive(_0x536300){const _0x53bb36=_0xab3d52;if(isNotNull(_0x536300)){if(!_[_0x53bb36('0x128')](_0x536300)){loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x131')),loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x1e'),_0x536300[_0x53bb36('0x17e')]),loggerPredictive[_0x53bb36('0x15d')]('Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x536300[_0x53bb36('0x41')]),loggerPredictive['info'](_0x53bb36('0xf3'),_0x536300[_0x53bb36('0x1d4')]),loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x38'),_0x536300[_0x53bb36('0xde')]),loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x1f4'),_0x536300['predictiveIntervalAvgHoldtime']),loggerPredictive['info'](_0x53bb36('0x9a'),_0x536300[_0x53bb36('0x6b')]),loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x19'));if(_0x536300[_0x53bb36('0x17e')]>0x0){if(!_[_0x53bb36('0x1d5')](_0x536300[_0x53bb36('0x6b')])&&_0x536300[_0x53bb36('0x6b')]>0x0)return!![];else loggerPredictive[_0x53bb36('0x15d')]('Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive');if(!_[_0x53bb36('0x1d5')](_0x536300[_0x53bb36('0x14a')])&&_0x536300[_0x53bb36('0x14a')]>0x0)return!![];else loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x159'));}else loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x34'));}else loggerPredictive['info'](_0x53bb36('0x13a'));}else loggerPredictive[_0x53bb36('0x15d')](_0x53bb36('0x13a'));return![];}function mergeDataErlangB(_0x7456da){return function(_0x4efda6){const _0x2f6cff=a1056_0x5f12;loggerPredictive['info']('---------\x20ErlangB\x20---------'),loggerPredictive[_0x2f6cff('0x15d')]('Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4efda6[_0x2f6cff('0x10b')]),loggerPredictive['info']('One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4efda6['erlangCallToSecond']),loggerPredictive[_0x2f6cff('0x15d')](_0x2f6cff('0x1fc'),_0x4efda6[_0x2f6cff('0x84')]),loggerPredictive[_0x2f6cff('0x15d')]('Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4efda6[_0x2f6cff('0x1f3')]),loggerPredictive[_0x2f6cff('0x15d')](_0x2f6cff('0x1fc'),_0x4efda6[_0x2f6cff('0x84')]),loggerPredictive[_0x2f6cff('0x15d')](_0x2f6cff('0x19')),_['merge'](_0x7456da,_0x4efda6);};}function getDiff(_0x45576c){const _0x4c6d22=_0xab3d52,_0x255307=moment()[_0x4c6d22('0x18b')](0x0),_0x39ecb1=moment(_0x45576c)['milliseconds'](0x0);return _0x255307[_0x4c6d22('0x20d')](_0x39ecb1,'seconds');}function ifInterval(_0x4fd2da,_0x4d9fb0){const _0x574f31=_0xab3d52;if(_[_0x574f31('0x1d5')](_0x4d9fb0))return![];return getDiff(_0x4d9fb0)<_0x4fd2da*0x3c?!![]:![];}function freeVariablesPredictive(_0xc49863){const _0x3b209f=_0xab3d52;isNotNull(_0xc49863)&&(!_[_0x3b209f('0x1d5')](_0xc49863[_0x3b209f('0x4a')])&&(_0xc49863[_0x3b209f('0x4a')]=undefined,loggerPredictive[_0x3b209f('0x15d')](_0xc49863[_0x3b209f('0x43')],_0x3b209f('0xb7'))),!_[_0x3b209f('0x1d5')](_0xc49863[_0x3b209f('0x146')])&&(_0xc49863[_0x3b209f('0x146')]=undefined,loggerPredictive['info'](_0xc49863[_0x3b209f('0x43')],'clearing\x20variable\x20start\x20predictive')),!_['isUndefined'](_0xc49863['handlePredictive'])&&(clearInterval(_0xc49863[_0x3b209f('0x95')]),_0xc49863[_0x3b209f('0x95')]=undefined,loggerPredictive[_0x3b209f('0x15d')](_0xc49863[_0x3b209f('0x43')],_0x3b209f('0x209'))));}function erlangb(_0x2cc17b,_0x379bad){if(_0x379bad===0x0)return 0x0;let _0x184031=0x1;for(let _0x3d5e3a=0x1;_0x3d5e3a<=_0x379bad;_0x3d5e3a+=0x1){_0x184031=0x1+_0x184031*_0x3d5e3a/_0x2cc17b;}return 0x1/_0x184031;}function isVoiceQueueOutbound(_0x1134f9){const _0x443cd9=_0xab3d52;return _0x1134f9===_0x443cd9('0xfe');}function isNotPreview(_0x4feffe){return _0x4feffe!=='preview';}function isCampaignIvr(_0x432fb5){return _0x432fb5==='ivr';}function getCallerId(_0x17570e,_0x330900,_0xde864e){const _0x28847f=_0xab3d52;if(!_[_0x28847f('0x1d5')](_0xde864e)&&_0x28847f('0x1dc')===typeof _0xde864e&&!_[_0x28847f('0x128')](_0xde864e)){if(!_[_0x28847f('0x1d5')](_0x330900)&&_0x28847f('0x1dc')===typeof _0x330900&&!_['isEmpty'](_0x330900))return util[_0x28847f('0x6f')](_0x28847f('0x125'),_0x330900,_0xde864e);return util['format'](_0x28847f('0x125'),_0xde864e,_0xde864e);}if(!_[_0x28847f('0x1d5')](_0x17570e)&&_0x28847f('0x1dc')===typeof _0x17570e&&!_[_0x28847f('0x128')](_0x17570e))return _0x17570e;return _0x28847f('0x1c5');}function loggerCatchQueueSummary(_0x247432,_0x13f4d3){return function(_0x6d078a){const _0x45e0be=a1056_0x5f12;freeVariablesPredictive(_0x13f4d3),emitVoiceQueueSummary(_0x13f4d3),emitCampaignSummary(_0x13f4d3),loggerSyncQueueSummary[_0x45e0be('0x106')](_0x247432,util[_0x45e0be('0x2')](_0x6d078a,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x4b2b94,_0xa5d988){return function(_0x252a00){const _0x59a1b0=a1056_0x5f12;loggerPredictive['error'](_0xa5d988[_0x59a1b0('0x43')],_0x4b2b94),loggerPredictive[_0x59a1b0('0x106')](_0x252a00['stack']),freeVariablesPredictive(_0xa5d988);};}function loggerCatch(_0x5f3038){return function(_0x4a7533){const _0x104e45=a1056_0x5f12;logger['error'](_0x5f3038,util[_0x104e45('0x2')](_0x4a7533,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x2917e2){const _0x3754c1=_0xab3d52;return _0x2917e2&&!_[_0x3754c1('0x1d5')](_0x2917e2)&&_0x2917e2['length']>0x0;}function decremetOriginate(_0x38dcd6){const _0x1d90d5=_0xab3d52;!_[_0x1d90d5('0x1d5')](_0x38dcd6)&&_0x38dcd6!==null?typeof _0x38dcd6[_0x1d90d5('0xc9')]!==_0x1d90d5('0x1ba')&&(_0x38dcd6['originated']>0x0?_0x38dcd6[_0x1d90d5('0xc9')]-=0x1:logger['error'](_0x1d90d5('0x5a'))):logger['error'](_0x1d90d5('0x17'));}function checkContactLowerLimitOriginate(_0x387283,_0x103609,_0x498896){if(_0x103609>_0x498896)for(let _0x25aa37=0x0;_0x25aa37<_0x103609-_0x498896;_0x25aa37+=0x1){decremetOriginate(_0x387283);}}function loggerGetContactDialer(_0x49192a,_0xa0c8cc,_0xb58891){return function(_0x2cd190){const _0x1732a9=a1056_0x5f12;checkContactLowerLimitOriginate(_0xa0c8cc,_0xb58891,0x0),logger[_0x1732a9('0x106')](_0x49192a,util[_0x1732a9('0x2')](_0x2cd190,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0xa1fc){return function(_0x1a4e22){const _0x2c0c0e=a1056_0x5f12;isNotNull(_0x1a4e22)&&isNotNull(_0x1a4e22[0x0])&&(_0x1a4e22[0x0]['contactsRescheduled']>0x0?(_0xa1fc[_0x2c0c0e('0x196')]=_0x2c0c0e('0x4'),logger[_0x2c0c0e('0x15d')](_0x2c0c0e('0x11e')+_0xa1fc[_0x2c0c0e('0x43')],_0x1a4e22[0x0]['contactsRescheduled'],_0x2c0c0e('0x37'))):(_0xa1fc[_0x2c0c0e('0x196')]='AVAILABLE_CONTACTS_FINISHED',logger['info'](_0x2c0c0e('0x20b')+_0xa1fc[_0x2c0c0e('0x43')])));};}function notSendMessagesQueue(_0x579ae5){const _0x2dac4d=_0xab3d52;_0x579ae5[_0x2dac4d('0x1a4')]&&(freeVariablesPredictive(_0x579ae5),_0x579ae5[_0x2dac4d('0xc9')]===0x0&&_0x579ae5[_0x2dac4d('0x48')]===0x0&&_0x579ae5[_0x2dac4d('0xcf')]===0x0&&(_0x579ae5['pTalking']||0x0)===0x0?(_0x579ae5[_0x2dac4d('0x1a4')]=![],_0x579ae5[_0x2dac4d('0x208')]=0x0,_0x579ae5['message']=_0x2dac4d('0x15a'),loggerSyncQueueSummary[_0x2dac4d('0x106')](_0x2dac4d('0x5d'),_0x579ae5[_0x2dac4d('0x43')],_0x2dac4d('0x23'))):(_0x579ae5[_0x2dac4d('0x196')]=_0x2dac4d('0x1bf'),loggerSyncQueueSummary[_0x2dac4d('0x106')](_0x2dac4d('0x5d'),_0x579ae5[_0x2dac4d('0x43')],_0x2dac4d('0x186'))),emitVoiceQueueSummary(_0x579ae5));}function notSendMessagesCampaign(_0x544f37){const _0x579c98=_0xab3d52;_0x544f37[_0x579c98('0x1a4')]&&(_0x544f37['originated']===0x0?(_0x544f37[_0x579c98('0x1a4')]=![],_0x544f37[_0x579c98('0x196')]=_0x579c98('0x15a'),loggerSyncQueueSummary[_0x579c98('0x106')](_0x579c98('0x177'),_0x544f37[_0x579c98('0x43')],_0x579c98('0x23'))):(_0x544f37[_0x579c98('0x196')]=_0x579c98('0x1bf'),loggerSyncQueueSummary['error'](_0x579c98('0x177'),_0x544f37[_0x579c98('0x43')],'is\x20disactive')),emitCampaignSummary(_0x544f37));}function createObjHistory(_0x12c1ae,_0x52381f,_0x3dfb10,_0x365eb3,_0x20680b){const _0x3d7e21=_0xab3d52;_0x12c1ae[_0x3d7e21('0x196')]=_0x3dfb10;const _0x468f7e=new Action(_0x12c1ae,_0x52381f),_0x46799a=new History(_0x468f7e);return _0x46799a[_0x3d7e21('0x62')]=_0x365eb3,_0x46799a['statedesc']=_0x20680b,_0x46799a[_0x3d7e21('0x17b')]=_0x468f7e[_0x3d7e21('0x75')],_0x46799a;}Dialer[_0xab3d52('0x119')][_0xab3d52('0x3a')]=function(){const _0xc80509=this;setInterval(function(){const _0x4d5286=a1056_0x5f12;_0xc80509[_0x4d5286('0x153')](_0xc80509[_0x4d5286('0xf0')],_0x4d5286('0x66')),_0xc80509[_0x4d5286('0x153')](_0xc80509['actions'],_0x4d5286('0x87'));},0x32c8);},Dialer['prototype']['clearZombieChannels']=function(_0x3028c9,_0x45a902){const _0x2a7ca5=_0xab3d52,_0x3aeb47=this;for(const _0x5c9672 in _0x3028c9){typeof _0x3028c9[_0x5c9672]!==_0x2a7ca5('0x1ba')&&this[_0x2a7ca5('0x1fe')][_0x2a7ca5('0x164')](function(){const _0x2e6aa5=_0x2a7ca5;if(!_[_0x2e6aa5('0x130')](_0x3028c9[_0x5c9672]))return ami['Action']({'action':_0x2e6aa5('0x9c'),'channel':_0x3028c9[_0x5c9672][_0x2e6aa5('0x35')]})[_0x2e6aa5('0x2f')](function(_0x165670){_0x165670['message']==='No\x20such\x20channel'&&setTimeout(function(){const _0x54f15f=a1056_0x5f12;_0x3028c9[_0x5c9672]&&_0x3028c9[_0x5c9672][_0x54f15f('0xba')]!==_0x54f15f('0x118')&&(_0x3aeb47[_0x54f15f('0x96')](_0x3aeb47['voiceQueues'][_0x3028c9[_0x5c9672][_0x54f15f('0x60')]]),logger[_0x54f15f('0x106')](_0x54f15f('0x1ac'),_0x45a902,_0x5c9672,_0x3028c9[_0x5c9672]['queue']),delete _0x3028c9[_0x5c9672]),_0x3028c9[_0x5c9672]&&_0x3028c9[_0x5c9672][_0x54f15f('0xba')]===_0x54f15f('0x118')&&(_0x3aeb47[_0x54f15f('0x96')](_0x3aeb47[_0x54f15f('0x54')][_0x3028c9[_0x5c9672][_0x54f15f('0x60')]]),logger[_0x54f15f('0x106')]('[Dialer][checkChannel][ivr]',_0x45a902,_0x5c9672,_0x3028c9[_0x5c9672]['queue']),delete _0x3028c9[_0x5c9672]);},0x2328);});});}},Dialer[_0xab3d52('0x119')][_0xab3d52('0xaf')]=function(_0xea8541){const _0x1f0655=_0xab3d52;return Promise[_0x1f0655('0x89')]()[_0x1f0655('0x216')](cmHopper['countReScheduled'](_0xea8541))['catch'](loggerCatch(_0x1f0655('0x1f9')));},Dialer[_0xab3d52('0x119')]['checkIsBlackList']=function(_0x32e87a){const _0x3de6e1=_0xab3d52;return Promise[_0x3de6e1('0x89')]()[_0x3de6e1('0x216')](cmHopperBlack['checkIsBlackList'](_0x32e87a))['catch'](loggerCatch(_0x3de6e1('0x1e5')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x97')]=function(_0x9a5683){const _0x41bffd=_0xab3d52;return Promise[_0x41bffd('0x89')]()['then'](cmHopperBlack[_0x41bffd('0x97')](_0x9a5683))[_0x41bffd('0x2f')](loggerCatch(_0x41bffd('0x19a')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x133')]=function(_0x4419c1){const _0x22eb29=_0xab3d52;return Promise['resolve']()[_0x22eb29('0x216')](cmHopperHistory[_0x22eb29('0x1ea')](_0x4419c1))[_0x22eb29('0x2f')](loggerCatch('[averageHandleTime]\x20'));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x6a')]=function(_0x241ee8){const _0x3dc3a3=_0xab3d52;return Promise[_0x3dc3a3('0x89')]()[_0x3dc3a3('0x216')](cmHopper['rescheduleContact'](_0x241ee8))[_0x3dc3a3('0x2f')](loggerCatch(_0x3dc3a3('0x4e')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0xe')]=function(_0x3cc8a2,_0x2ad0ea,_0x4119e0){const _0x36edb0=_0xab3d52;return Promise[_0x36edb0('0x89')]()[_0x36edb0('0x216')](cmHopper['unlockContact'](_0x3cc8a2,_0x2ad0ea,_0x4119e0))[_0x36edb0('0x2f')](loggerCatch(_0x36edb0('0x4b')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1bd')]=function(_0x56fad5,_0x53db7f,_0xcab64f,_0x4072d0){const _0x2cc80a=_0xab3d52;return Promise[_0x2cc80a('0x89')]()['then'](cmHopper[_0x2cc80a('0x1bd')](_0x56fad5,_0x53db7f,_0xcab64f,_0x4072d0))[_0x2cc80a('0x2f')](loggerCatch('[getContactDialer]\x20'));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1bc')]=function(_0x2fae24,_0xdaf570,_0x592213){const _0x4fffbd=_0xab3d52;return Promise['resolve']()[_0x4fffbd('0x216')](cmHopper[_0x4fffbd('0x1bc')](_0x2fae24,_0xdaf570,_0x592213))[_0x4fffbd('0x2f')](loggerCatch(_0x4fffbd('0x1d0')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0xc')]=function(_0xc4aa1b){const _0x299508=_0xab3d52;return Promise[_0x299508('0x89')]()['then'](voiceQueueRt[_0x299508('0xc')](_0xc4aa1b))['catch'](loggerCatch('[getVoiceQueueRtPauses]\x20'));},Dialer[_0xab3d52('0x119')]['moveContactManagedDialer']=function(_0x59a1e8){const _0x9e2075=_0xab3d52;return Promise[_0x9e2075('0x89')]()[_0x9e2075('0x216')](cmHopper[_0x9e2075('0x13d')](_0x59a1e8))[_0x9e2075('0x2f')](loggerCatch(_0x9e2075('0x167')));},Dialer['prototype'][_0xab3d52('0x14')]=function(_0x1da080){const _0x2ba998=_0xab3d52;return Promise[_0x2ba998('0x89')]()['then'](cmHopperHistory['createHistory'](_0x1da080))[_0x2ba998('0x2f')](loggerCatch(_0x2ba998('0xd4')));},Dialer[_0xab3d52('0x119')]['updateOriginated']=function(_0x3ab2c1){const _0x8dcd8b=_0xab3d52;!_['isUndefined'](_0x3ab2c1)&&_0x3ab2c1!==null?typeof _0x3ab2c1['originated']!==_0x8dcd8b('0x1ba')&&(_0x3ab2c1['originated']>0x0?_0x3ab2c1[_0x8dcd8b('0xc9')]-=0x1:logger['error']('[updateOriginated]\x20object\x20originated\x20is\x20negative')):logger['error']('[updateOriginated]\x20is\x20null\x20or\x20undefined');},Dialer['prototype'][_0xab3d52('0x1b5')]=function(_0x54d8b6,_0x2425f6){const _0xf0d2e1=this;return function(_0x34a2d8){const _0x58e53c=a1056_0x5f12;_0xf0d2e1[_0x58e53c('0x96')](_0x2425f6),logger['error'](_0x54d8b6,util[_0x58e53c('0x2')](_0x34a2d8,{'showHidden':![],'depth':null}));};},Dialer[_0xab3d52('0x119')][_0xab3d52('0x65')]=function(_0x2be75b,_0x54e574,_0x5e8f24){const _0x54a6d5=_0xab3d52,_0x43701c={'state':0x19,'statedesc':_0x54a6d5('0x14f')};this[_0x54a6d5('0x96')](_0x54e574),this[_0x54a6d5('0xda')](_['merge'](_0x43701c,_[_0x54a6d5('0x1b7')](_0x5e8f24,['ContactId',_0x54a6d5('0x1d'),'UserId',_0x54a6d5('0x136'),_0x54a6d5('0x10')])),_0x54a6d5('0x16d'),_0x54a6d5('0xd1')),logger[_0x54a6d5('0x106')](_0x2be75b);},Dialer[_0xab3d52('0x119')]['isSuccess']=function(_0x3ee27a){const _0x2fad6d=_0xab3d52;return _0x3ee27a===_0x2fad6d('0xc8');},Dialer['prototype'][_0xab3d52('0x166')]=function(_0xcdeaa){const _0xd8fad2=_0xab3d52;return!_[_0xd8fad2('0x1d5')](_0xcdeaa)&&_0xcdeaa&&!_[_0xd8fad2('0x1d5')](_0xcdeaa[_0xd8fad2('0x43')])&&!_['isUndefined'](_0xcdeaa[_0xd8fad2('0x1b')])&&_0xcdeaa[_0xd8fad2('0x1b')]&&(this[_0xd8fad2('0x68')][util[_0xd8fad2('0x6f')](_0xd8fad2('0xf2'),_0xcdeaa['name'])][_0xd8fad2('0x9c')]==='reachable'||this[_0xd8fad2('0x68')][util[_0xd8fad2('0x6f')]('SIP/%s',_0xcdeaa[_0xd8fad2('0x43')])][_0xd8fad2('0x9c')]==='unmonitored');},Dialer[_0xab3d52('0x119')][_0xab3d52('0xda')]=function(_0x156fca,_0x299e91,_0xc67345){const _0x399eb1=_0xab3d52;this['createHistory'](_0x156fca)[_0x399eb1('0x2f')](loggerCatch(_0x299e91)),this['moveContactManagedDialer'](_0x156fca)[_0x399eb1('0x2f')](loggerCatch(_0xc67345));},Dialer[_0xab3d52('0x119')]['syncVarSet']=function(_0x484ad9){const _0x3b49e7=_0xab3d52,_0x49e468=this['uniqueId'][_0x484ad9[_0x3b49e7('0xc1')]];let _0xb48733;if(!_['isNil'](_0x484ad9)&&!_[_0x3b49e7('0x130')](_0x484ad9['variable'])&&!_['isNil'](_0x484ad9['variable'][_0x3b49e7('0x15b')])&&_0x484ad9['exten']===_0x3b49e7('0x56')&&_0x49e468){_0x49e468[_0x3b49e7('0xba')]!==_0x3b49e7('0x118')&&this[_0x3b49e7('0x181')][_0x49e468[_0x3b49e7('0x60')]][_0x3b49e7('0xd8')]&&_0x484ad9['value']==='HANGUP'&&(delete this[_0x3b49e7('0xf0')][_0x484ad9['uniqueid']],this[_0x3b49e7('0x96')](this['voiceQueues'][_0x49e468[_0x3b49e7('0x60')]]),this[_0x3b49e7('0x181')][_0x49e468[_0x3b49e7('0x60')]][_0x3b49e7('0x1ff')]+=0x1,this[_0x3b49e7('0x181')][_0x49e468['queue']][_0x3b49e7('0x11c')]+=0x1,_0xb48733=new Hangup(_0x49e468,_0x484ad9),_0xb48733['state']=0x12,_0xb48733['statedesc']=_0x3b49e7('0x5e'),_0xb48733[_0x3b49e7('0x211')]=_0x3b49e7('0xc6'),this[_0x3b49e7('0xda')](_0xb48733,'[syncHangupInAMD][createHistory]',_0x3b49e7('0x1df')));if(_0x49e468[_0x3b49e7('0xba')]!=='ivr'&&this[_0x3b49e7('0x181')][_0x49e468[_0x3b49e7('0x60')]][_0x3b49e7('0xd8')]&&_0x484ad9[_0x3b49e7('0x90')]===_0x3b49e7('0x149')){const _0x468907=this;return new Promise(function(_0x57ce02,_0x3269ae){const _0x160412=_0x3b49e7;delete _0x468907['uniqueId'][_0x484ad9['uniqueid']],_0x468907[_0x160412('0x96')](_0x468907[_0x160412('0x181')][_0x49e468['queue']]),_0x468907[_0x160412('0x181')][_0x49e468['queue']][_0x160412('0x1ff')]+=0x1,_0x468907[_0x160412('0x181')][_0x49e468[_0x160412('0x60')]][_0x160412('0x11c')]+=0x1;const _0x5d9482=_0x468907[_0x160412('0x181')][_0x49e468[_0x160412('0x60')]],_0x265db2=new Hangup(_0x49e468,_0x484ad9);_0x265db2[_0x160412('0x62')]=0x13,_0x265db2[_0x160412('0x160')]=_0x160412('0xbb'),_0x265db2[_0x160412('0x211')]=_0x160412('0xc6'),_0x265db2[_0x160412('0xd0')]+=0x1,_0x265db2['countglobal']+=0x1,_0x265db2['amd']=!![],_0x468907['createHistory'](_0x265db2)[_0x160412('0x2f')](loggerCatch(_0x160412('0x29'))),_0x265db2[_0x160412('0xec')]+_0x265db2['countcongestionretry']+_0x265db2['countnoanswerretry']+_0x265db2['countnosuchnumberretry']+_0x265db2[_0x160412('0x8c')]+_0x265db2['countabandonedretry']+_0x265db2[_0x160412('0xd0')]+_0x265db2['countagentrejectretry']>=_0x5d9482[_0x160412('0x142')]?_0x468907['stateGlobal'](_0x265db2,_0x57ce02,_0x3269ae,_0x160412('0x175')):_0x265db2[_0x160412('0xd0')]>=_0x5d9482[_0x160412('0xae')]?_0x468907[_0x160412('0xa0')](_0x265db2,_0x57ce02,_0x3269ae,'reason\x2019\x20machine....'):(_0x468907[_0x160412('0x6a')]({'active':![],'countmachineretry':_0x265db2[_0x160412('0xd0')],'scheduledat':moment()[_0x160412('0x12c')](_0x5d9482[_0x160412('0x72')],_0x160412('0x212'))['format'](_0x160412('0xe6')),'ContactId':_0x265db2[_0x160412('0x6e')],'ListId':_0x265db2[_0x160412('0x1d')],'VoiceQueueId':_0x265db2[_0x160412('0x136')]||undefined,'CampaignId':_0x265db2[_0x160412('0x10')]||undefined})[_0x160412('0x2f')](loggerCatch(_0x160412('0x10f'))),_0x57ce02({'reschedule':0x1}));});}_0x49e468[_0x3b49e7('0xba')]==='ivr'&&this[_0x3b49e7('0x54')][_0x49e468[_0x3b49e7('0x60')]][_0x3b49e7('0xd8')]&&_0x484ad9[_0x3b49e7('0x90')]===_0x3b49e7('0x1de')&&(delete this[_0x3b49e7('0xf0')][_0x484ad9[_0x3b49e7('0xc1')]],this[_0x3b49e7('0x96')](this[_0x3b49e7('0x54')][_0x49e468[_0x3b49e7('0x60')]]),_0xb48733=new Hangup(_0x49e468,_0x484ad9),_0xb48733[_0x3b49e7('0x62')]=0x12,_0xb48733['statedesc']='HangupInAMD',_0xb48733[_0x3b49e7('0x211')]=_0x3b49e7('0xc6'),this['saveInDb'](_0xb48733,'[syncHangupInAMDIvr][createHistory]',_0x3b49e7('0x19f')));if(_0x49e468[_0x3b49e7('0xba')]===_0x3b49e7('0x118')&&this[_0x3b49e7('0x54')][_0x49e468[_0x3b49e7('0x60')]][_0x3b49e7('0xd8')]&&_0x484ad9[_0x3b49e7('0x90')]===_0x3b49e7('0x149')){const _0x26328e=this;return new Promise(function(_0x695fc4,_0x47c301){const _0x4425f7=_0x3b49e7;delete _0x26328e[_0x4425f7('0xf0')][_0x484ad9['uniqueid']],_0x26328e[_0x4425f7('0x96')](_0x26328e[_0x4425f7('0x54')][_0x49e468[_0x4425f7('0x60')]]),_0x26328e[_0x4425f7('0x54')][_0x49e468[_0x4425f7('0x60')]]['outboundAnswerCallsDay']+=0x1,_0x26328e['campaigns'][_0x49e468[_0x4425f7('0x60')]][_0x4425f7('0x11c')]+=0x1;const _0x2a3b8e=_0x26328e[_0x4425f7('0x54')][_0x49e468[_0x4425f7('0x60')]],_0x3082ac=new Hangup(_0x49e468,_0x484ad9);_0x3082ac[_0x4425f7('0x62')]=0x13,_0x3082ac['statedesc']='Machine',_0x3082ac['membername']='AMD',_0x3082ac['countmachineretry']+=0x1,_0x3082ac[_0x4425f7('0x15f')]+=0x1,_0x3082ac[_0x4425f7('0x115')]=!![],_0x26328e[_0x4425f7('0x14')](_0x3082ac)[_0x4425f7('0x2f')](loggerCatch(_0x4425f7('0x29'))),_0x3082ac['countbusyretry']+_0x3082ac[_0x4425f7('0x18f')]+_0x3082ac[_0x4425f7('0x15')]+_0x3082ac[_0x4425f7('0x8b')]+_0x3082ac[_0x4425f7('0x8c')]+_0x3082ac['countabandonedretry']+_0x3082ac[_0x4425f7('0xd0')]+_0x3082ac[_0x4425f7('0x1a8')]>=_0x2a3b8e['dialGlobalMaxRetry']?_0x26328e[_0x4425f7('0x152')](_0x3082ac,_0x695fc4,_0x47c301,_0x4425f7('0x175')):_0x3082ac['countmachineretry']>=_0x2a3b8e[_0x4425f7('0xae')]?_0x26328e[_0x4425f7('0xa0')](_0x3082ac,_0x695fc4,_0x47c301,'reason\x2019\x20machine....'):(_0x26328e[_0x4425f7('0x6a')]({'active':![],'countmachineretry':_0x3082ac[_0x4425f7('0xd0')],'scheduledat':moment()['add'](_0x2a3b8e['dialMachineRetryFrequency'],_0x4425f7('0x212'))[_0x4425f7('0x6f')](_0x4425f7('0xe6')),'ContactId':_0x3082ac['ContactId'],'ListId':_0x3082ac[_0x4425f7('0x1d')],'VoiceQueueId':_0x3082ac['VoiceQueueId']||undefined,'CampaignId':_0x3082ac['CampaignId']||undefined})[_0x4425f7('0x2f')](loggerCatch(_0x4425f7('0x10f'))),_0x695fc4({'reschedule':0x1}));});}}},Dialer['prototype'][_0xab3d52('0x1e0')]=function(_0x51127d){const _0x19ff3e=_0xab3d52,_0x5c6735=this[_0x19ff3e('0xf0')][_0x51127d[_0x19ff3e('0xc1')]];let _0x51f5ec;_0x5c6735&&_0x5c6735[_0x19ff3e('0xba')]===_0x19ff3e('0x118')&&(delete this[_0x19ff3e('0xf0')][_0x51127d[_0x19ff3e('0xc1')]],this[_0x19ff3e('0x96')](this[_0x19ff3e('0x54')][_0x5c6735[_0x19ff3e('0x60')]]),this[_0x19ff3e('0x54')][_0x5c6735[_0x19ff3e('0x60')]][_0x19ff3e('0x1c1')]+=0x1,_0x51f5ec=new Hangup(_0x5c6735,_0x51127d),this[_0x19ff3e('0x14')](_0x51f5ec)[_0x19ff3e('0x2f')](loggerCatch(_0x19ff3e('0x197'))),this[_0x19ff3e('0x13d')](_0x51f5ec)[_0x19ff3e('0x2f')](loggerCatch(_0x19ff3e('0x15e')))),_0x5c6735&&_0x5c6735['type']!==_0x19ff3e('0x118')&&isNotNull(this[_0x19ff3e('0x181')][_0x5c6735[_0x19ff3e('0x60')]][_0x19ff3e('0x12a')])&&(delete this['uniqueId'][_0x51127d['uniqueid']],this[_0x19ff3e('0x96')](this[_0x19ff3e('0x181')][_0x5c6735['queue']]),this['voiceQueues'][_0x5c6735[_0x19ff3e('0x60')]]['outboundAnswerCallsDay']+=0x1,this['voiceQueues'][_0x5c6735['queue']][_0x19ff3e('0x11c')]+=0x1,_0x51f5ec=new Hangup(_0x5c6735,_0x51127d),_0x51f5ec[_0x19ff3e('0x62')]=0x10,_0x51f5ec[_0x19ff3e('0x160')]=_0x19ff3e('0x180'),_0x51f5ec['membername']=_0x19ff3e('0x204'),this['createHistory'](_0x51f5ec)[_0x19ff3e('0x2f')](loggerCatch(_0x19ff3e('0x197'))),this[_0x19ff3e('0x13d')](_0x51f5ec)[_0x19ff3e('0x2f')](loggerCatch(_0x19ff3e('0x15e')))),_0x5c6735&&_0x5c6735[_0x19ff3e('0xba')]!=='ivr'&&!isNotNull(this[_0x19ff3e('0x181')][_0x5c6735[_0x19ff3e('0x60')]][_0x19ff3e('0x12a')])&&(delete this[_0x19ff3e('0xf0')][_0x51127d[_0x19ff3e('0xc1')]],this[_0x19ff3e('0x96')](this[_0x19ff3e('0x181')][_0x5c6735['queue']]),this[_0x19ff3e('0x181')][_0x5c6735['queue']][_0x19ff3e('0x1ed')]+=0x1,_0x51f5ec=new Hangup(_0x5c6735,_0x51127d),_0x51f5ec[_0x19ff3e('0x62')]=0xc,_0x51f5ec[_0x19ff3e('0x160')]=_0x51127d[_0x19ff3e('0x1dd')],_0x51f5ec[_0x19ff3e('0x211')]=_0x19ff3e('0x13f'),this[_0x19ff3e('0x14')](_0x51f5ec)[_0x19ff3e('0x2f')](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x19ff3e('0x13d')](_0x51f5ec)['catch'](loggerCatch(_0x19ff3e('0x15e'))));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x12e')]=function(_0x4ceedc){const _0x993721=_0xab3d52,_0x27d3bc=this[_0x993721('0xf0')][_0x4ceedc[_0x993721('0xc1')]];if(this[_0x993721('0x181')][_0x4ceedc['queue']]){if(_0x27d3bc&&_0x27d3bc[_0x993721('0xba')]!==_0x993721('0x118')){delete this[_0x993721('0xf0')][_0x4ceedc[_0x993721('0xc1')]],this[_0x993721('0x181')][_0x4ceedc[_0x993721('0x60')]][_0x993721('0x1ff')]+=0x1;const _0x488a82=new AgentComplete(_0x27d3bc,_0x4ceedc);_0x4ceedc[_0x993721('0x80')]==='agent'&&(_0x488a82[_0x993721('0x176')]=this[_0x993721('0x181')][_0x4ceedc['queue']]['dialQueueProject2']&&this[_0x993721('0x181')][_0x4ceedc[_0x993721('0x60')]][_0x993721('0xd5')]?moment()[_0x993721('0x6f')]('YYYY-MM-DD\x20HH:mm:ss'):undefined),this[_0x993721('0x14')](_0x488a82)[_0x993721('0x2f')](loggerCatch(_0x993721('0x183'))),this['moveContactManagedDialer'](_0x488a82)[_0x993721('0x2f')](loggerCatch(_0x993721('0xf')));}}},Dialer[_0xab3d52('0x119')][_0xab3d52('0x12')]=function(_0x560d00){const _0x41f74e=_0xab3d52;this[_0x41f74e('0x181')][_0x560d00['queue']]&&(this[_0x41f74e('0xf0')][_0x560d00[_0x41f74e('0xc1')]]&&this[_0x41f74e('0xf0')][_0x560d00[_0x41f74e('0xc1')]]['type']!=='ivr'&&(this[_0x41f74e('0x96')](this['voiceQueues'][_0x560d00[_0x41f74e('0x60')]]),this[_0x41f74e('0xf0')][_0x560d00[_0x41f74e('0xc1')]]['answertime']=moment()[_0x41f74e('0x6f')](_0x41f74e('0xe6'))));},Dialer[_0xab3d52('0x119')]['queueCallerAbandonCreateState']=function(_0x26f484){const _0x49b906=_0xab3d52;this['createHistory'](_0x26f484)[_0x49b906('0x2f')](loggerCatch('[syncAgentComplete][createHistory]')),this['moveContactManagedDialer'](_0x26f484)[_0x49b906('0x2f')](loggerCatch(_0x49b906('0x163')));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x213')]=function(_0x3b6d31){const _0x29d45b=_0xab3d52,_0x335283=this[_0x29d45b('0xf0')][_0x3b6d31[_0x29d45b('0xc1')]];if(this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]]){if(_0x335283&&_0x335283[_0x29d45b('0xba')]!=='ivr'){delete this[_0x29d45b('0xf0')][_0x3b6d31[_0x29d45b('0xc1')]],this[_0x29d45b('0x96')](this['voiceQueues'][_0x3b6d31['queue']]),_0x335283[_0x29d45b('0xd9')]=moment()[_0x29d45b('0x6f')]('YYYY-MM-DD\x20HH:mm:ss');const _0x5b681b=new QueueCallerAbandon(_0x335283,_0x3b6d31);if(getSeconds(_0x335283[_0x29d45b('0xd9')],_0x335283[_0x29d45b('0x215')])>=_0x335283[_0x29d45b('0x16f')]){this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x1d4')]+=0x1,this[_0x29d45b('0x181')][_0x3b6d31['queue']]['outboundDropCallsDayTimeout']+=0x1,this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x27')]+=0x1,_0x5b681b[_0x29d45b('0x62')]=0xa,_0x5b681b[_0x29d45b('0x160')]='Drop',_0x5b681b['dropreason']='TIMEOUT',_0x5b681b[_0x29d45b('0x176')]=this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x1c4')]?moment()[_0x29d45b('0x6f')](_0x29d45b('0xe6')):undefined,_0x5b681b[_0x29d45b('0x8c')]+=0x1,_0x5b681b[_0x29d45b('0x15f')]+=0x1;if(_0x5b681b[_0x29d45b('0x8c')]>=this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x111')])this[_0x29d45b('0x11')](_0x5b681b);else{this['rescheduleContact']({'active':![],'countdropretry':_0x5b681b[_0x29d45b('0x8c')],'scheduledat':moment()['add'](this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]]['dialDropRetryFrequency'],'minutes')[_0x29d45b('0x6f')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x335283[_0x29d45b('0x6e')],'ListId':_0x335283[_0x29d45b('0x1d')],'VoiceQueueId':_0x335283['VoiceQueueId']||undefined,'CampaignId':_0x335283[_0x29d45b('0x10')]||undefined})[_0x29d45b('0x2f')](loggerCatch(_0x29d45b('0xac')));const _0x30d661=new History(_0x5b681b);_0x30d661[_0x29d45b('0x62')]=0xa,_0x30d661[_0x29d45b('0x160')]=_0x29d45b('0x1f1'),_0x30d661[_0x29d45b('0x75')]=moment()['format'](_0x29d45b('0xe6')),_0x30d661['endtime']=_0x30d661['starttime'],_0x30d661['calleridname']=_0x5b681b[_0x29d45b('0x161')],_0x30d661[_0x29d45b('0x12f')]=_0x5b681b['calleridnum'],this[_0x29d45b('0x14')](_0x30d661)['catch'](loggerCatch(_0x29d45b('0x32')));}}else{this[_0x29d45b('0x181')][_0x3b6d31['queue']]['predictiveIntervalDroppedCallsCallersExit']+=0x1,this[_0x29d45b('0x181')][_0x3b6d31['queue']][_0x29d45b('0xd7')]+=0x1,_0x5b681b[_0x29d45b('0x62')]=0xb,_0x5b681b[_0x29d45b('0x160')]='Abandoned',_0x5b681b[_0x29d45b('0x49')]=_0x29d45b('0x11d'),_0x5b681b[_0x29d45b('0xf9')]+=0x1,_0x5b681b[_0x29d45b('0x15f')]+=0x1;if(_0x5b681b[_0x29d45b('0xf9')]>=this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x178')])this[_0x29d45b('0x11')](_0x5b681b);else{this['rescheduleContact']({'active':![],'countabandonedretry':_0x5b681b[_0x29d45b('0xf9')],'scheduledat':moment()[_0x29d45b('0x12c')](this[_0x29d45b('0x181')][_0x3b6d31[_0x29d45b('0x60')]][_0x29d45b('0x98')],'minutes')[_0x29d45b('0x6f')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x335283[_0x29d45b('0x6e')],'ListId':_0x335283[_0x29d45b('0x1d')],'VoiceQueueId':_0x335283[_0x29d45b('0x136')]||undefined,'CampaignId':_0x335283[_0x29d45b('0x10')]||undefined})[_0x29d45b('0x2f')](loggerCatch(_0x29d45b('0x126')));const _0x19b976=new History(_0x5b681b);_0x19b976[_0x29d45b('0x62')]=0xb,_0x19b976[_0x29d45b('0x160')]=_0x29d45b('0x14d'),_0x19b976['starttime']=moment()['format'](_0x29d45b('0xe6')),_0x19b976['endtime']=_0x19b976[_0x29d45b('0x75')],_0x19b976[_0x29d45b('0x161')]=_0x5b681b['calleridname'],_0x19b976[_0x29d45b('0x12f')]=_0x5b681b[_0x29d45b('0x12f')],this[_0x29d45b('0x14')](_0x19b976)[_0x29d45b('0x2f')](loggerCatch(_0x29d45b('0x202')));}}}}},Dialer[_0xab3d52('0x119')]['syncNewExten']=function(_0xbc7c86){const _0x1ed58c=_0xab3d52;this[_0x1ed58c('0x114')][_0xbc7c86['uniqueid']]&&(this[_0x1ed58c('0x114')][_0xbc7c86[_0x1ed58c('0xc1')]][_0x1ed58c('0x35')]=_0xbc7c86[_0x1ed58c('0x35')]),this[_0x1ed58c('0xf0')][_0xbc7c86[_0x1ed58c('0xc1')]]&&(this[_0x1ed58c('0xf0')][_0xbc7c86[_0x1ed58c('0xc1')]][_0x1ed58c('0x35')]=_0xbc7c86[_0x1ed58c('0x35')]);},Dialer['prototype'][_0xab3d52('0x6c')]=function(_0x2ea7e1){const _0x298baa=_0xab3d52;if(strategy[this[_0x298baa('0x181')][this[_0x298baa('0x114')][_0x2ea7e1['actionid']][_0x298baa('0x60')]]['strategy']]===_0x298baa('0x2c'))this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]]&&_[_0x298baa('0x130')](this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]]['locked'])&&_0x2ea7e1['status']==='1'&&_0x2ea7e1[_0x298baa('0xe1')]==='0'&&(this['agents'][_0x2ea7e1[_0x298baa('0xb9')]]&&(!this[_0x298baa('0x1a2')][_0x2ea7e1[_0x298baa('0xb9')]][_0x298baa('0x52')]&&(this[_0x298baa('0x1a2')][_0x2ea7e1[_0x298baa('0xb9')]][_0x298baa('0x52')]=!![],this['actions'][_0x2ea7e1[_0x298baa('0xe0')]][_0x298baa('0x52')]=!![],this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]][_0x298baa('0xb9')]=_0x2ea7e1['stateinterface'])));else(strategy[this['voiceQueues'][this[_0x298baa('0x114')][_0x2ea7e1['actionid']][_0x298baa('0x60')]]['strategy']]||_0x298baa('0x138'))===_0x298baa('0x138')&&(this['actions'][_0x2ea7e1[_0x298baa('0xe0')]]&&(this[_0x298baa('0x1a2')][_0x2ea7e1[_0x298baa('0xb9')]]&&(this[_0x298baa('0x114')][_0x2ea7e1['actionid']][_0x298baa('0xb9')]=_0x2ea7e1['stateinterface'],_[_0x298baa('0x130')](this['queueBooked'][this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]][_0x298baa('0x60')]])&&(this[_0x298baa('0xcc')][this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]]['queue']]=[]),this[_0x298baa('0xcc')][this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]][_0x298baa('0x60')]][_0x298baa('0x203')](_[_0x298baa('0x173')](_[_0x298baa('0x1b7')](this[_0x298baa('0x114')][_0x2ea7e1[_0x298baa('0xe0')]],[_0x298baa('0x86'),_0x298baa('0xb9')]),{'status':_0x2ea7e1[_0x298baa('0x9c')],'paused':_0x2ea7e1[_0x298baa('0xe1')]})))));};function unlockQueueStatus(_0x2336dd,_0x27165f){setTimeout(function(){const _0x24fcf1=a1056_0x5f12;_[_0x24fcf1('0x1d5')](_0x2336dd[_0x24fcf1('0x7a')])&&loggerBooked[_0x24fcf1('0x106')](_0x24fcf1('0xb6'),_0x27165f),_0x2336dd['queueStatusComplete']=!![],loggerBooked['info']('[booked][unlockQueueStatus]',_0x27165f,JSON[_0x24fcf1('0x4f')](_[_0x24fcf1('0x1b7')](_0x2336dd,[_0x24fcf1('0x43'),_0x24fcf1('0x7a')])));},0x1f3);}Dialer['prototype'][_0xab3d52('0x135')]=function(_0x1eaf8a){const _0x41d351=_0xab3d52,_0x1dca6e=this,_0x55458d=_0x1dca6e[_0x41d351('0x181')][_0x1dca6e[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['queue']];if(strategy[this[_0x41d351('0x181')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['queue']][_0x41d351('0x134')]]===_0x41d351('0x2c'))this['actions'][_0x1eaf8a[_0x41d351('0xe0')]]&&this['actions'][_0x1eaf8a[_0x41d351('0xe0')]]['stateinterface']?this[_0x41d351('0xf4')][_0x41d351('0x1fd')](this[_0x41d351('0x114')][_0x1eaf8a['actionid']][_0x41d351('0x86')],this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0xb9')])[_0x41d351('0x2f')](function(_0x7a459a){const _0x39005a=_0x41d351;logger[_0x39005a('0x106')](_0x39005a('0x17f'),util[_0x39005a('0x2')](_0x7a459a,{'showHidden':![],'depth':null}));})[_0x41d351('0xa1')](function(){const _0x45b2d5=_0x41d351;_0x1dca6e['updateOriginated'](_0x1dca6e[_0x45b2d5('0x181')][_0x1dca6e[_0x45b2d5('0x114')][_0x1eaf8a[_0x45b2d5('0xe0')]][_0x45b2d5('0x60')]]),_0x1dca6e[_0x45b2d5('0x1a2')][_0x1dca6e[_0x45b2d5('0x114')][_0x1eaf8a[_0x45b2d5('0xe0')]]['stateinterface']][_0x45b2d5('0x52')]=![],delete _0x1dca6e[_0x45b2d5('0x114')][_0x1eaf8a[_0x45b2d5('0xe0')]],unlockQueueStatus(_0x55458d);}):(this[_0x41d351('0x96')](this[_0x41d351('0x181')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]]),this[_0x41d351('0x6a')]({'active':![],'ContactId':this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['ContactId'],'ListId':this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x1d')],'VoiceQueueId':this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x136')]||undefined,'CampaignId':this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x10')]||undefined})[_0x41d351('0x2f')](loggerCatch(_0x41d351('0x147'))),delete this['actions'][_0x1eaf8a[_0x41d351('0xe0')]],unlockQueueStatus(_0x55458d));else{if((strategy[this[_0x41d351('0x181')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['queue']]['strategy']]||'rrmemory')===_0x41d351('0x138')){let _0x42b8f2;if(this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]&&!_[_0x41d351('0x128')](this[_0x41d351('0xcc')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['queue']])){this['queueBookedRR'][_0x1dca6e[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]]['queue']]&&(this[_0x41d351('0xbe')][_0x1dca6e[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]]=this[_0x41d351('0xbe')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]]?this['queueBookedRR'][this[_0x41d351('0x114')][_0x1eaf8a['actionid']][_0x41d351('0x60')]]:this[_0x41d351('0xcc')][this['actions'][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]]?this[_0x41d351('0xcc')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]][_0x41d351('0x51')]||0x0:0x0);this[_0x41d351('0xcc')][this[_0x41d351('0x114')][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]][_0x41d351('0x51')]=this[_0x41d351('0xbe')][this['actions'][_0x1eaf8a[_0x41d351('0xe0')]][_0x41d351('0x60')]];for(let _0x306352=0x0;_0x306352=0x0?!![]:![];})['catch'](myreject(_0x5c9b72)));}else _0x359728['push'](ami['Action']({'action':_0x194720('0xe7'),'command':util['format']('iftime\x20%s,%s',_0x37a79d,!_[_0x194720('0x1d5')](config['timezones'][_0x5e57e2])?_0x5e57e2:'')})[_0x194720('0x216')](function(_0x22b32a){const _0x26bfa5=_0x194720;return _0x22b32a[_0x26bfa5('0x9b')][_0x26bfa5('0xbd')]('true')>=0x0?!![]:![];})[_0x194720('0x2f')](myreject(_0x5c9b72)));Promise[_0x194720('0x120')](_0x359728)[_0x194720('0x216')](function(_0x5cd7fe){const _0x33d0af=_0x194720,_0x102f92=_['some'](_0x5cd7fe);return _0x102f92?_0x30d16b(_0x102f92):(_0x3aaa6a['message']=_0x76d94?_0x33d0af('0x1a3'):_0x33d0af('0x107'),_0x5c9b72(msgResponse('[ifTime][promiseAll]',_0x33d0af('0x102'),'Global:\x20'+_0x76d94+'\x20'+_0x33b304+_0x33d0af('0x8d')+util[_0x33d0af('0x2')](_0x37a79d,{'showHidden':![],'depth':null})+_0x33d0af('0x145')+_0x5e57e2)));})['catch'](function(_0x1be13c){const _0x5aaf6b=_0x194720;return _0x5c9b72(msgResponse(_0x5aaf6b('0x70'),_0x5aaf6b('0x102'),JSON['stringify'](_0x1be13c)));});});},Dialer[_0xab3d52('0x119')][_0xab3d52('0xe3')]=function(_0x67aefc){const _0x2566f1=this;return function(){const _0x3a901f=a1056_0x5f12;switch(_0x67aefc['dialMethod']){case'progressive':freeVariablesPredictive(_0x67aefc),_0x2566f1['handlePower'](_0x67aefc,0x1);break;case _0x3a901f('0x158'):freeVariablesPredictive(_0x67aefc),_0x2566f1[_0x3a901f('0x148')](_0x67aefc,_0x67aefc[_0x3a901f('0x7c')]);break;case _0x3a901f('0x83'):_0x2566f1[_0x3a901f('0x83')](_0x67aefc);break;case _0x3a901f('0x8e'):freeVariablesPredictive(_0x67aefc),_0x2566f1[_0x3a901f('0x148')](_0x67aefc,0x1);break;default:freeVariablesPredictive(_0x67aefc),logger['error'](_0x3a901f('0x2b'),_0x67aefc[_0x3a901f('0x43')],_0x3a901f('0x199'));}};},Dialer[_0xab3d52('0x119')][_0xab3d52('0x103')]=function(_0x72791d){const _0x5640b0=this;return function(){const _0x8123ce=a1056_0x5f12;_0x5640b0[_0x8123ce('0x1f6')](_0x72791d);};},Dialer[_0xab3d52('0x119')]['syncQueueSummary']=function(_0x534515){const _0x18b4f7=_0xab3d52,_0x141a97=this;isNotPreview(_0x534515['dialMethod'])?isVoiceQueueOutbound(_0x534515['type'])&&isActive(_0x534515[_0x18b4f7('0x141')])?(_0x534515[_0x18b4f7('0x1a4')]=!![],Promise[_0x18b4f7('0x89')]()[_0x18b4f7('0x216')](checkIsLoggedIn(_0x534515,_0x534515['loggedIn']))[_0x18b4f7('0x216')](checkIsActive(_0x534515,_0x534515[_0x18b4f7('0x141')]))[_0x18b4f7('0x216')](checkInterval(_0x534515))[_0x18b4f7('0x216')](_0x141a97[_0x18b4f7('0x57')](_0x534515))[_0x18b4f7('0x216')](_0x141a97[_0x18b4f7('0xe2')](_0x534515[_0x18b4f7('0x3c')],_0x534515['dialTimezone'],_0x534515['name'],_0x534515))[_0x18b4f7('0x216')](_0x141a97[_0x18b4f7('0x63')](_0x534515[_0x18b4f7('0xc2')],_0x534515['dialTimezone'],_0x534515[_0x18b4f7('0x43')],_0x534515))[_0x18b4f7('0x216')](_0x141a97[_0x18b4f7('0xe3')](_0x534515))['catch'](loggerCatchQueueSummary('[syncQueueSummary]',_0x534515))):notSendMessagesQueue(_0x534515):freeVariablesPredictive(_0x534515);},Dialer[_0xab3d52('0x119')][_0xab3d52('0xf6')]=function(){const _0x2cfbea=_0xab3d52,_0x1e586a=this;let _0x4582de;for(const _0x4f5011 in this[_0x2cfbea('0x54')]){typeof this[_0x2cfbea('0x54')][_0x4f5011]!==_0x2cfbea('0x1ba')&&(_0x4582de=this['campaigns'][_0x4f5011],isCampaignIvr(_0x4582de[_0x2cfbea('0xba')])&&isActive(_0x4582de[_0x2cfbea('0x1b')])?(_0x4582de[_0x2cfbea('0x1a4')]=!![],Promise[_0x2cfbea('0x89')]()[_0x2cfbea('0x216')](checkIsActive(_0x4582de,_0x4582de[_0x2cfbea('0x1b')]))['then'](checkInterval(_0x4582de))['then'](_0x1e586a['checkIsTrunkReachable'](_0x4582de))[_0x2cfbea('0x216')](_0x1e586a[_0x2cfbea('0xe2')](_0x4582de[_0x2cfbea('0x3c')],_0x4582de['dialTimezone'],_0x4582de[_0x2cfbea('0x43')],_0x4582de))[_0x2cfbea('0x216')](_0x1e586a[_0x2cfbea('0x63')](_0x4582de[_0x2cfbea('0xc2')],_0x4582de[_0x2cfbea('0x140')],_0x4582de[_0x2cfbea('0x43')],_0x4582de))['then'](_0x1e586a[_0x2cfbea('0x103')](_0x4582de))[_0x2cfbea('0x2f')](loggerCatchQueueSummary(_0x2cfbea('0x30'),_0x4582de))):notSendMessagesCampaign(_0x4582de));}};function getCallerIdRandom(_0x5e5af9,_0x1c8d99){const _0x2d1180=_0xab3d52;_0x1c8d99<=0x0&&(_0x1c8d99=0x1);const _0x1d979a=new RegExp(_0x2d1180('0xab')+_0x1c8d99+'}$'),_0x50542e=Math['pow'](0xa,_0x1c8d99-0x1),_0x2d17a2=Math[_0x2d1180('0x18d')](0xa,_0x1c8d99)-0x1;return util[_0x2d1180('0x6f')]('%s',_[_0x2d1180('0x124')](_0x5e5af9,_0x1d979a,_['random'](_0x50542e,_0x2d17a2)));}function extractCalleridName(_0x85b2c2){const _0x563751=_0xab3d52,_0x1cfde5=_0x85b2c2[_0x563751('0x151')](/"(.*?)"/);return _0x1cfde5?_0x1cfde5[0x1]:_0x85b2c2;}function extractCalleridNumber(_0x262054){const _0x303065=_0xab3d52,_0x599b04=_0x262054[_0x303065('0x151')](/<(.*?)>/);return _0x599b04?_0x599b04[0x1]:_0x262054;}Dialer['prototype'][_0xab3d52('0x26')]=function(_0x178863,_0x5dcac3){const _0x182ffb=_0xab3d52,_0x2860d3=getConfigService(),_0x548540=this,_0x2c142d=uuid['v4']();return this[_0x182ffb('0x114')][_0x2c142d]=new Action(_0x178863,_0x5dcac3,_0x2c142d),new Promise(function(_0x4a72a2,_0x509fdd){const _0x27bfdc=_0x182ffb;if(_[_0x27bfdc('0x1d5')](_0x178863)&&_0x27bfdc('0x1f7')!==typeof _0x178863)return _0x509fdd(msgResponse(_0x27bfdc('0x172'),_0x27bfdc('0x102'),_0x27bfdc('0x1')));if(_['isUndefined'](_0x5dcac3[_0x27bfdc('0x94')][_0x27bfdc('0x162')])||_0x5dcac3[_0x27bfdc('0x94')][_0x27bfdc('0x162')]===null)return _0x509fdd(msgResponse(_0x27bfdc('0x172'),_0x27bfdc('0x102'),_0x27bfdc('0x198')));const _0x2b02b6={'XMD-CALLERID':_0x548540[_0x27bfdc('0x114')][_0x2c142d]['getCaller'](),'XMD-AGI':_0x178863[_0x27bfdc('0x12a')]?util['format'](_0x27bfdc('0xe8'),_0x2860d3[_0x27bfdc('0x165')],_0x178863[_0x27bfdc('0x12a')]):_0x27bfdc('0x1b0'),'XMD-AGIAFTER':_0x178863['dialQueueProject2']?util[_0x27bfdc('0x6f')]('\x22agi://%s/square,%s\x22',_0x2860d3[_0x27bfdc('0x165')],_0x178863[_0x27bfdc('0x1c4')]):_0x27bfdc('0x1b0'),'XMD-QUEUE':_0x178863[_0x27bfdc('0xba')]===_0x27bfdc('0xfe')?util[_0x27bfdc('0x6f')]('\x22%s,%s%s,,,%s\x22',_0x178863[_0x27bfdc('0x43')],_0x178863[_0x27bfdc('0x3d')]||'',_0x178863[_0x27bfdc('0xd5')]?'c':'',_0x178863[_0x27bfdc('0x16f')]||0x3):_0x27bfdc('0x1b0'),'XMD-CONTACTID':_0x5dcac3['ContactId'],'XMD-CDRTYPE':_0x27bfdc('0x1a1'),'CALLERID(all)':_0x548540[_0x27bfdc('0x114')][_0x2c142d][_0x27bfdc('0x81')](),'XMD-AMD':_0x178863['dialAMDActive']?_0x27bfdc('0x85'):_0x27bfdc('0x1b0'),'XMD-DESTINATION':'xcally-motion-dialer'};_0x178863['dialAMDActive']&&(_0x2b02b6[_0x27bfdc('0x100')]=_0x178863[_0x27bfdc('0x1a')]||0x9c4,_0x2b02b6['XMD-AMDGREETING']=_0x178863[_0x27bfdc('0xf5')]||0x5dc,_0x2b02b6[_0x27bfdc('0x1c0')]=_0x178863[_0x27bfdc('0x16')]||0x320,_0x2b02b6[_0x27bfdc('0x1ca')]=_0x178863[_0x27bfdc('0x3f')]||0x1388,_0x2b02b6['XMD-AMDMINWORDLENGTH']=_0x178863[_0x27bfdc('0xfd')]||0x64,_0x2b02b6['XMD-AMDBETWEENWORDSSILENCE']=_0x178863[_0x27bfdc('0x168')]||0x32,_0x2b02b6[_0x27bfdc('0xaa')]=_0x178863[_0x27bfdc('0x189')]||0x3,_0x2b02b6[_0x27bfdc('0x1e4')]=_0x178863[_0x27bfdc('0x1f2')]||0x100,_0x2b02b6[_0x27bfdc('0x93')]=_0x178863[_0x27bfdc('0x1e9')]||0x1388);_0x178863['type']===_0x27bfdc('0xfe')?_0x2b02b6[_0x27bfdc('0x1e6')]=_0x5dcac3[_0x27bfdc('0x136')]:_0x2b02b6[_0x27bfdc('0x122')]=_0x5dcac3['CampaignId'];for(const _0x51adad in _0x5dcac3['Contact']){typeof _0x5dcac3['Contact'][_0x51adad]!==_0x27bfdc('0x1ba')&&(isNotNull(_0x5dcac3[_0x27bfdc('0x94')][_0x51adad])&&_0x51adad!=='id'&&_0x51adad!==_0x27bfdc('0x200')&&_0x51adad!==_0x27bfdc('0xd3')&&_0x51adad!==_0x27bfdc('0xc3')&&(_0x2b02b6[util[_0x27bfdc('0x6f')]('%s%s','XMD-',_[_0x27bfdc('0x36')](_0x51adad))]=_0x5dcac3[_0x27bfdc('0x94')][_0x51adad]));}const _0x23e9df=_0x548540[_0x27bfdc('0x166')](_0x178863[_0x27bfdc('0x7e')])?getCallerId(_0x178863['Trunk']['callerid'],_0x178863[_0x27bfdc('0x17c')],_0x178863['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x178863[_0x27bfdc('0x10d')],_0x178863[_0x27bfdc('0x7d')]):_0x178863['dialOriginateCallerIdNumber']):getCallerId(_[_0x27bfdc('0x130')](_0x178863['TrunkBackup'])?_0x178863[_0x27bfdc('0x7e')][_0x27bfdc('0x112')]:_0x178863[_0x27bfdc('0xb3')][_0x27bfdc('0x112')],_0x178863['dialOriginateCallerIdName'],_0x178863['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x178863['dialOriginateCallerIdNumber'],_0x178863[_0x27bfdc('0x7d')]):_0x178863[_0x27bfdc('0x10d')]);if(_0x23e9df){const _0x3a6961=extractCalleridName(_0x23e9df);_0x2b02b6[_0x27bfdc('0x14c')]=_0x3a6961,_0x548540['actions'][_0x2c142d]['originatecalleridname']=_0x3a6961;const _0x334cfd=extractCalleridNumber(_0x23e9df);_0x2b02b6[_0x27bfdc('0xb4')]==_0x334cfd,_0x548540[_0x27bfdc('0x114')][_0x2c142d][_0x27bfdc('0x20e')]=_0x334cfd;}return ami[_0x27bfdc('0x3')]({'actionid':_0x2c142d,'action':_0x27bfdc('0x172'),'channel':_0x548540['isTrunkReachable'](_0x178863[_0x27bfdc('0x7e')])?util[_0x27bfdc('0x6f')](_0x27bfdc('0x1af'),_0x178863['Trunk'][_0x27bfdc('0x43')],isNotNull(_0x178863[_0x27bfdc('0xdb')])?_0x178863[_0x27bfdc('0xdb')]['trim']()||'':'',_0x178863[_0x27bfdc('0x137')]>0x0?_0x5dcac3[_0x27bfdc('0x94')][_0x27bfdc('0x162')][_0x27bfdc('0x92')](_0x178863['dialCutDigit']):_0x5dcac3['Contact'][_0x27bfdc('0x162')]):util[_0x27bfdc('0x6f')](_0x27bfdc('0x1af'),_[_0x27bfdc('0x130')](_0x178863[_0x27bfdc('0xb3')])?_0x178863[_0x27bfdc('0x7e')]['name']:_0x178863[_0x27bfdc('0xb3')][_0x27bfdc('0x43')],isNotNull(_0x178863[_0x27bfdc('0xdb')])?_0x178863[_0x27bfdc('0xdb')]['trim']()||'':'',_0x178863[_0x27bfdc('0x137')]>0x0?_0x5dcac3[_0x27bfdc('0x94')][_0x27bfdc('0x162')][_0x27bfdc('0x92')](_0x178863[_0x27bfdc('0x137')]):_0x5dcac3[_0x27bfdc('0x94')][_0x27bfdc('0x162')]),'callerid':_0x23e9df,'Exten':'xcally-motion-dialer','Context':_0x27bfdc('0xfc'),'Priority':'1','variable':_0x2b02b6,'timeout':(_0x178863[_0x27bfdc('0x17d')]||0x1e)*0x3e8,'async':!![],'channelid':_0x2c142d})[_0x27bfdc('0x216')](function(_0x3e9ae6){return _0x4a72a2(_0x3e9ae6);})['catch'](function(_0x3a3734){const _0x540705=_0x27bfdc;_0x178863[_0x540705('0x1e2')]+=0x1;const _0x2ff811=new History(_0x548540[_0x540705('0x114')][_0x2c142d]);logger['error'](util['format'](_0x540705('0x46'),JSON[_0x540705('0x4f')](_0x3a3734))),_0x2ff811['state']=0xe,_0x2ff811['statedesc']=_0x540705('0x1fa'),_0x2ff811['starttime']=moment()[_0x540705('0x6f')](_0x540705('0xe6')),_0x2ff811[_0x540705('0x17b')]=_0x2ff811[_0x540705('0x75')],_0x548540[_0x540705('0x14')](_0x2ff811)['catch'](loggerCatch(_0x540705('0x73'))),_0x548540[_0x540705('0x13d')](_0x2ff811)[_0x540705('0x2f')](loggerCatch(_0x540705('0x73')))[_0x540705('0xa1')](function(){const _0x1a58f1=_0x540705;return delete _0x548540[_0x1a58f1('0x114')][_0x2c142d],_0x509fdd(msgResponse('originate','Error',_0x1a58f1('0xa')));});});});},Dialer[_0xab3d52('0x119')][_0xab3d52('0x192')]=function(_0x25275e){const _0xdeb978=_0xab3d52,_0x144c44=this[_0xdeb978('0x114')][_0x25275e[_0xdeb978('0xe0')]];if(_0x144c44){delete this[_0xdeb978('0x114')][_0x25275e[_0xdeb978('0xe0')]],_0x144c44[_0xdeb978('0x215')]=moment()[_0xdeb978('0x6f')](_0xdeb978('0xe6'));const _0x32da21=_0x144c44[_0xdeb978('0xba')]===_0xdeb978('0x118')?this[_0xdeb978('0x54')][_0x144c44[_0xdeb978('0x60')]]:this[_0xdeb978('0x181')][_0x144c44[_0xdeb978('0x188')]()];if(!this[_0xdeb978('0x206')](_0x25275e[_0xdeb978('0x1e1')]))return this[_0xdeb978('0x96')](_0x32da21),this[_0xdeb978('0x17a')](_0x144c44,_0x32da21,_0x25275e)['then'](function(){})[_0xdeb978('0x2f')](loggerCatch('[callProgressDetecting]\x20'));else this[_0xdeb978('0xf0')][_0x25275e[_0xdeb978('0xc1')]]=_0x144c44;}},Dialer['prototype'][_0xab3d52('0x59')]=function(_0x5bd7b8,_0x27ec15,_0x2560db){const _0x56b167=_0xab3d52,_0x1f391d=new History(_0x27ec15);if(_0x1f391d[_0x56b167('0xec')]+_0x1f391d[_0x56b167('0x18f')]+_0x1f391d[_0x56b167('0x15')]+_0x1f391d[_0x56b167('0x8b')]+_0x1f391d['countdropretry']+_0x1f391d[_0x56b167('0xf9')]+_0x1f391d[_0x56b167('0xd0')]+_0x1f391d[_0x56b167('0x1a8')]>=_0x2560db[_0x56b167('0x142')]-0x1)return!![];switch(_0x5bd7b8){case 0x3:if(_0x1f391d[_0x56b167('0x15')]>=_0x2560db['dialNoAnswerMaxRetry']-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countnoanswerretry':_0x1f391d['countnoanswerretry']+=0x1,'scheduledat':moment()[_0x56b167('0x12c')](_0x2560db[_0x56b167('0x71')],_0x56b167('0x212'))['format'](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d[_0x56b167('0x1d')],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d[_0x56b167('0x10')]||undefined})['catch'](loggerCatch(_0x56b167('0xdc')));break;case 0x5:if(_0x1f391d[_0x56b167('0xec')]>=_0x2560db['dialBusyMaxRetry']-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countbusyretry':_0x1f391d[_0x56b167('0xec')]+=0x1,'scheduledat':moment()['add'](_0x2560db[_0x56b167('0x116')],_0x56b167('0x212'))[_0x56b167('0x6f')](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d['ListId'],'VoiceQueueId':_0x1f391d['VoiceQueueId']||undefined,'CampaignId':_0x1f391d[_0x56b167('0x10')]||undefined})['catch'](loggerCatch(_0x56b167('0x4c')));break;case 0x8:if(_0x1f391d[_0x56b167('0x18f')]>=_0x2560db[_0x56b167('0x6')]-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countcongestionretry':_0x1f391d[_0x56b167('0x18f')]+=0x1,'scheduledat':moment()[_0x56b167('0x12c')](_0x2560db['dialCongestionRetryFrequency'],_0x56b167('0x212'))['format'](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d['ListId'],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d['CampaignId']||undefined})[_0x56b167('0x2f')](loggerCatch(_0x56b167('0x61')));break;case 0x0:if(_0x1f391d[_0x56b167('0x8b')]>=_0x2560db[_0x56b167('0x33')]-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countnosuchnumberretry':_0x1f391d[_0x56b167('0x8b')]+=0x1,'scheduledat':moment()['add'](_0x2560db['dialNoSuchNumberRetryFrequency'],_0x56b167('0x212'))['format'](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d['ListId'],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d['CampaignId']||undefined})[_0x56b167('0x2f')](loggerCatch(_0x56b167('0xb0')));break;case 0xa:if(_0x1f391d[_0x56b167('0x8c')]>=_0x2560db[_0x56b167('0x111')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countdropretry':_0x1f391d[_0x56b167('0x8c')]+=0x1,'scheduledat':moment()['add'](_0x2560db[_0x56b167('0x18')],_0x56b167('0x212'))[_0x56b167('0x6f')](_0x56b167('0xe6')),'ContactId':_0x1f391d['ContactId'],'ListId':_0x1f391d[_0x56b167('0x1d')],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d['CampaignId']||undefined})[_0x56b167('0x2f')](loggerCatch(_0x56b167('0xac')));break;case 0xb:if(_0x1f391d[_0x56b167('0xf9')]>=_0x2560db['dialAbandonedMaxRetry']-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countabandonedretry':_0x1f391d['countabandonedretry']+=0x1,'scheduledat':moment()[_0x56b167('0x12c')](_0x2560db[_0x56b167('0x98')],'minutes')[_0x56b167('0x6f')](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d[_0x56b167('0x1d')],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d['CampaignId']||undefined})[_0x56b167('0x2f')](loggerCatch(_0x56b167('0x126')));break;case 0x13:if(_0x1f391d[_0x56b167('0xd0')]>=_0x2560db[_0x56b167('0xae')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countmachineretry':_0x1f391d[_0x56b167('0xd0')]+=0x1,'scheduledat':moment()[_0x56b167('0x12c')](_0x2560db[_0x56b167('0x72')],_0x56b167('0x212'))[_0x56b167('0x6f')](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d[_0x56b167('0x1d')],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d[_0x56b167('0x10')]||undefined})['catch'](loggerCatch('[rescheduleContact][Machine]'));break;case 0x14:if(_0x1f391d['countagentrejectretry']>=_0x2560db[_0x56b167('0x201')]-0x1)return!![];else this[_0x56b167('0x6a')]({'active':![],'countagentrejectretry':_0x1f391d[_0x56b167('0x1a8')]+=0x1,'scheduledat':moment()[_0x56b167('0x12c')](_0x2560db[_0x56b167('0x1f8')],_0x56b167('0x212'))[_0x56b167('0x6f')](_0x56b167('0xe6')),'ContactId':_0x1f391d[_0x56b167('0x6e')],'ListId':_0x1f391d[_0x56b167('0x1d')],'VoiceQueueId':_0x1f391d[_0x56b167('0x136')]||undefined,'CampaignId':_0x1f391d['CampaignId']||undefined})[_0x56b167('0x2f')](loggerCatch(_0x56b167('0xa6')));break;default:return!![];}},Dialer[_0xab3d52('0x119')][_0xab3d52('0x17a')]=function(_0x54a386,_0x399c9a,_0x1d7459){const _0xfd9e9e=this,_0x1450d6=new History(_0x54a386);return new Promise(function(_0x5052f0,_0x5a335e){const _0x463e97=a1056_0x5f12;if(_['isUndefined'](_0x399c9a)&&_0x463e97('0x1f7')!==typeof _0x399c9a)return _0x5a335e(msgResponse(_0x463e97('0x8f'),_0x463e97('0x102'),_0x463e97('0xb5')));if(_[_0x463e97('0x1d5')](_0x1d7459)&&_0x463e97('0x1f7')!==typeof _0x1d7459)return _0x5a335e(msgResponse('[callProgressDetecting]','Failure',_0x463e97('0x155')));switch(_0x1d7459[_0x463e97('0x80')]){case'0':_0x399c9a[_0x463e97('0x179')]+=0x1,_0x1450d6[_0x463e97('0x62')]=0x0,_0x1450d6[_0x463e97('0x160')]=_0x463e97('0x1cb'),_0x1450d6[_0x463e97('0x8b')]+=0x1,_0x1450d6[_0x463e97('0x15f')]+=0x1,ami[_0x463e97('0x1d2')](_0x463e97('0xd'),ut[_0x463e97('0x16e')](_0x54a386,'nosuchnumber')),_0xfd9e9e['createHistory'](_0x1450d6)['catch'](loggerCatch(_0x463e97('0x29')));_0xfd9e9e[_0x463e97('0x59')](0x0,_0x54a386,_0x399c9a)&&(_0x1450d6[_0x463e97('0x8b')]>=_0x399c9a[_0x463e97('0x33')]?_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0xdd')):_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0xdd')));break;case'3':_0x399c9a['outboundNoAnswerCallsDay']+=0x1,_0x1450d6['state']=0x3,_0x1450d6[_0x463e97('0x160')]='NoAnswer',_0x1450d6[_0x463e97('0x15')]+=0x1,_0x1450d6['countglobal']+=0x1,ami['emit']('custom:agentnoanswer',ut[_0x463e97('0x16e')](_0x54a386,'noanswer')),_0xfd9e9e[_0x463e97('0x14')](_0x1450d6)['catch'](loggerCatch(_0x463e97('0x190')));_0xfd9e9e[_0x463e97('0x59')](0x3,_0x54a386,_0x399c9a)&&(_0x1450d6[_0x463e97('0x15')]>=_0x399c9a[_0x463e97('0xcd')]?_0xfd9e9e['createStateFinal'](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x13b')):_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,'reason\x203\x20ringing\x20no\x20answer'));break;case'5':_0x399c9a[_0x463e97('0x1fb')]+=0x1,_0x1450d6['state']=0x5,_0x1450d6['statedesc']=_0x463e97('0x1ee'),_0x1450d6[_0x463e97('0xec')]+=0x1,_0x1450d6['countglobal']+=0x1,ami[_0x463e97('0x1d2')]('custom:agentbusy',ut[_0x463e97('0x16e')](_0x54a386,_0x463e97('0x110'))),_0xfd9e9e['createHistory'](_0x1450d6)[_0x463e97('0x2f')](loggerCatch(_0x463e97('0x170')));_0xfd9e9e[_0x463e97('0x59')](0x5,_0x54a386,_0x399c9a)&&(_0x1450d6[_0x463e97('0xec')]>=_0x399c9a[_0x463e97('0x1f0')]?_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x1d1')):_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,'reason\x205\x20busy'));break;case'8':_0x399c9a[_0x463e97('0x1a5')]+=0x1,_0x1450d6['state']=0x8,_0x1450d6[_0x463e97('0x160')]=_0x463e97('0xa4'),_0x1450d6[_0x463e97('0x18f')]+=0x1,_0x1450d6['countglobal']+=0x1,ami[_0x463e97('0x1d2')](_0x463e97('0x1a6'),ut[_0x463e97('0x16e')](_0x54a386,_0x463e97('0xea'))),_0xfd9e9e[_0x463e97('0x14')](_0x1450d6)['catch'](loggerCatch(_0x463e97('0x1aa')));_0xfd9e9e[_0x463e97('0x59')](0x8,_0x54a386,_0x399c9a)&&(_0x1450d6[_0x463e97('0x18f')]>=_0x399c9a[_0x463e97('0x6')]?_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,'reason\x208\x20congestion'):_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x2a')));break;case'11':_0x399c9a['outboundAbandonedCallsDay']+=0x1,_0x1450d6[_0x463e97('0x62')]=0xb,_0x1450d6[_0x463e97('0x160')]='Abandoned',_0x1450d6[_0x463e97('0xf9')]+=0x1,_0x1450d6['countglobal']+=0x1,_0xfd9e9e[_0x463e97('0x14')](_0x1450d6)[_0x463e97('0x2f')](loggerCatch(_0x463e97('0x202')));_0xfd9e9e[_0x463e97('0x59')](0xb,_0x54a386,_0x399c9a)&&(_0x1450d6['countabandonedretry']>=_0x399c9a['dialAbandonedMaxRetry']?_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x1ce')):_0xfd9e9e['stateGlobal'](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x1ce')));break;case'20':_0x399c9a['outboundRejectCallsDay']+=0x1,_0x1450d6[_0x463e97('0x62')]=0x14,_0x1450d6[_0x463e97('0x160')]=_0x463e97('0xeb'),_0x1450d6[_0x463e97('0x1a8')]+=0x1,_0x1450d6[_0x463e97('0x15f')]+=0x1,ami[_0x463e97('0x1d2')](_0x463e97('0xee'),ut[_0x463e97('0x16e')](_0x54a386,_0x463e97('0xa5'))),_0xfd9e9e[_0x463e97('0x14')](_0x1450d6)[_0x463e97('0x2f')](loggerCatch(_0x463e97('0x1d3')));_0xfd9e9e[_0x463e97('0x59')](0x14,_0x54a386,_0x399c9a)&&(_0x1450d6['countagentrejectretry']>=_0x399c9a['dialAgentRejectMaxRetry']?_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x78')):_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,_0x463e97('0x78')));break;default:_0x399c9a['outboundUnknownCallsDay']+=0x1,_0x1450d6['state']=0xc,_0x1450d6[_0x463e97('0x160')]=_0x1d7459['reason'],_0xfd9e9e['createHistory'](_0x1450d6)['catch'](loggerCatch(_0x463e97('0x7b')));_0xfd9e9e[_0x463e97('0x59')](_0x1d7459[_0x463e97('0x80')],_0x54a386,_0x399c9a)&&(_0x1450d6[_0x463e97('0xec')]+_0x1450d6['countcongestionretry']+_0x1450d6['countnoanswerretry']+_0x1450d6['countnosuchnumberretry']+_0x1450d6[_0x463e97('0x8c')]+_0x1450d6[_0x463e97('0xf9')]+_0x1450d6[_0x463e97('0xd0')]+_0x1450d6['countagentrejectretry']>=_0x399c9a[_0x463e97('0x142')]?_0xfd9e9e[_0x463e97('0x152')](_0x1450d6,_0x5052f0,_0x5a335e,_0x1d7459[_0x463e97('0x80')]):_0xfd9e9e[_0x463e97('0xa0')](_0x1450d6,_0x5052f0,_0x5a335e,_0x1d7459['reason']));}});},Dialer[_0xab3d52('0x119')][_0xab3d52('0x152')]=function(_0x2e462d,_0x4e5178,_0x80e636,_0x55d19c){const _0x17fb1d=_0xab3d52,_0x4d22a0=new Final(_0x2e462d);_0x4d22a0[_0x17fb1d('0x62')]=0xf,_0x4d22a0[_0x17fb1d('0x160')]='Global',this[_0x17fb1d('0xa0')](_0x4d22a0,_0x4e5178,_0x80e636,_0x55d19c);},Dialer[_0xab3d52('0x119')][_0xab3d52('0xa0')]=function(_0x354797,_0x30ed9a,_0x4c24ba,_0x1b80d0){const _0x4eca29=_0xab3d52;this[_0x4eca29('0x13d')](_0x354797)[_0x4eca29('0x216')](function(){const _0x560efb=_0x4eca29;return _0x30ed9a(msgResponse(_0x560efb('0x8f'),'Success',_0x1b80d0));})[_0x4eca29('0x2f')](function(){const _0x145e83=_0x4eca29;return _0x4c24ba(msgResponse('[moveContactManagedDialer][0]',_0x145e83('0x102'),_0x145e83('0x76')));});},Dialer[_0xab3d52('0x119')][_0xab3d52('0x83')]=function(_0x417f15){const _0x5aa6ff=_0xab3d52,_0x20e5db=_0x417f15[_0x5aa6ff('0x24')]/0x64,_0x4c425f=_0x417f15['outboundDropCallsDayTimeout']/(_0x417f15[_0x5aa6ff('0x1ad')]+_0x417f15['outboundAnswerCallsDay']),_0xe60b53=Math['round'](_0x417f15[_0x5aa6ff('0x19b')]*(_0x417f15[_0x5aa6ff('0x67')]/0x64)),_0x237347=Math[_0x5aa6ff('0x1da')](_0x417f15['predictiveIntervalAvailable']*(_0x417f15[_0x5aa6ff('0x3e')]/0x64)),_0x42591f=_0x417f15[_0x5aa6ff('0x208')]+_0x417f15[_0x5aa6ff('0x48')],_0x3e26ac=Math[_0x5aa6ff('0x13')](_0x417f15[_0x5aa6ff('0x10b')]*_0x417f15['erlangAbandonmentRate']*_0x417f15['predictiveIntervalHitRate']*_0x417f15['predictiveIntervalMultiplicativeFactor']);if(_['isUndefined'](_0x417f15[_0x5aa6ff('0x4a')]))!_[_0x5aa6ff('0x1d5')](_0x417f15['startPredictive'])&&(_0x417f15[_0x5aa6ff('0x146')]=undefined,loggerPredictive[_0x5aa6ff('0x106')](_0x5aa6ff('0x101'),_0x5aa6ff('0xbf'))),!_[_0x5aa6ff('0x1d5')](_0x417f15[_0x5aa6ff('0x95')])&&(loggerPredictive[_0x5aa6ff('0x106')](_0x5aa6ff('0x101'),_0x5aa6ff('0x14b')),clearInterval(_0x417f15[_0x5aa6ff('0x95')]),_0x417f15['handlePredictive']=undefined),_0x417f15[_0x5aa6ff('0x4a')]=moment()[_0x5aa6ff('0x6f')](_0x5aa6ff('0xe6')),loggerPredictive[_0x5aa6ff('0x15d')](_0x417f15[_0x5aa6ff('0x43')],_0x5aa6ff('0x9e'),_0x417f15[_0x5aa6ff('0x4a')]),this['handlePower'](_0x417f15,0x1);else{if(ifInterval(_0x417f15[_0x5aa6ff('0xc7')],_0x417f15['startProgressive']))this['handlePower'](_0x417f15,0x1),loggerPredictiveCalls[_0x5aa6ff('0x15d')]('[startMethodPredictive][StartProgressive][Loop]',_0x417f15[_0x5aa6ff('0x4a')],_0x417f15['name']),_0x417f15[_0x5aa6ff('0x10b')]=0x0,_0x417f15[_0x5aa6ff('0x27')]=0x0;else{if(_0x20e5db<_0x4c425f&&_0x417f15[_0x5aa6ff('0x19c')]===_0x5aa6ff('0x171'))freeVariablesPredictive(_0x417f15),loggerPredictive['info'](_0x5aa6ff('0x9'),_0x5aa6ff('0x1d9'),_0x4c425f,'startProgressive',_0x417f15[_0x5aa6ff('0x43')]);else{if(_0x3e26ac<_0x417f15[_0x5aa6ff('0x27')]&&_0x417f15[_0x5aa6ff('0x19c')]===_0x5aa6ff('0x171'))freeVariablesPredictive(_0x417f15),loggerPredictive['info']('[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]',_0x5aa6ff('0x88'),_0x3e26ac,_0x5aa6ff('0x10c'),_0x417f15[_0x5aa6ff('0x27')],'startProgressive',_0x417f15['name']);else{if(!ifInterval(_0x417f15['dialPredictiveInterval'],_0x417f15[_0x5aa6ff('0x4a')])&&_[_0x5aa6ff('0x1d5')](_0x417f15[_0x5aa6ff('0x146')])&&!_[_0x5aa6ff('0x1d5')](_0x417f15['startProgressive']))_0x417f15[_0x5aa6ff('0x146')]=moment()[_0x5aa6ff('0x6f')](_0x5aa6ff('0xe6')),loggerPredictive[_0x5aa6ff('0x15d')](_0x417f15[_0x5aa6ff('0x43')],_0x5aa6ff('0x99'),_0x417f15['startPredictive']),this[_0x5aa6ff('0x133')](_0x417f15[_0x5aa6ff('0xc7')])[_0x5aa6ff('0x216')](this['getDataPredictive'](_0x417f15))['then'](mergeDataErlangB(_0x417f15))[_0x5aa6ff('0x216')](this[_0x5aa6ff('0x1db')](_0x417f15))['catch'](loggerCatchPredictive(_0x5aa6ff('0x1c3'),_0x417f15));else{if(!ifInterval(_0x417f15['dialPredictiveInterval'],_0x417f15[_0x5aa6ff('0x146')]))_0x417f15[_0x5aa6ff('0x27')]=0x0,_0x417f15[_0x5aa6ff('0x146')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0x5aa6ff('0x15d')](_0x417f15[_0x5aa6ff('0x43')],_0x5aa6ff('0x195'),_0x417f15['startPredictive']),clearInterval(_0x417f15[_0x5aa6ff('0x95')]),_0x417f15[_0x5aa6ff('0x95')]=undefined,this[_0x5aa6ff('0x133')](_0x417f15[_0x5aa6ff('0xc7')])[_0x5aa6ff('0x216')](this['getDataPredictive'](_0x417f15))[_0x5aa6ff('0x216')](mergeDataErlangB(_0x417f15))[_0x5aa6ff('0x216')](this[_0x5aa6ff('0x1db')](_0x417f15))['catch'](loggerCatchPredictive(_0x5aa6ff('0x2e'),_0x417f15));else{if(_0x417f15[_0x5aa6ff('0x19b')]&&_0x42591f<_0x417f15[_0x5aa6ff('0x19b')]-_0x237347)freeVariablesPredictive(_0x417f15),loggerPredictive[_0x5aa6ff('0x15d')](_0x417f15[_0x5aa6ff('0x43')],_0x5aa6ff('0x11b'),_0x42591f,_0x5aa6ff('0x185'),_0x417f15[_0x5aa6ff('0x19b')],'-',_0x237347,'=',_0x417f15[_0x5aa6ff('0x19b')]-_0x237347,')');else _0x417f15[_0x5aa6ff('0x19b')]&&_0x42591f>_0x417f15[_0x5aa6ff('0x19b')]+_0xe60b53&&(freeVariablesPredictive(_0x417f15),loggerPredictive[_0x5aa6ff('0x15d')](_0x417f15[_0x5aa6ff('0x43')],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x42591f,_0x5aa6ff('0x194'),_0x417f15[_0x5aa6ff('0x19b')],'+',_0xe60b53,'=',_0x417f15[_0x5aa6ff('0x19b')]+_0xe60b53,')'));}}}}}}},Dialer['prototype']['getDataPredictive']=function(_0x2cb0dc){const _0x41e9c5=this;return function(_0x33f048){return new Promise(function(_0x42ea23,_0xfcc3a3){const _0x1153c2=a1056_0x5f12;_[_0x1153c2('0x173')](_0x2cb0dc,_0x33f048[0x0]);if(checkGetDataPredictive(_0x33f048[0x0])){const _0x258055=_0x2cb0dc[_0x1153c2('0x48')]+_0x2cb0dc[_0x1153c2('0x208')];_0x2cb0dc[_0x1153c2('0x19b')]=_0x258055;const _0x5976e4=_0x258055,_0x4185f8=_0x2cb0dc[_0x1153c2('0xc7')]*0x3c,_0x2da245=_0x33f048[0x0][_0x1153c2('0x6b')]+_0x33f048[0x0][_0x1153c2('0x14a')],_0x3fa6fe=(_0x33f048[0x0][_0x1153c2('0x41')]+_0x33f048[0x0][_0x1153c2('0x1d4')]+_0x33f048[0x0][_0x1153c2('0xde')])/_0x33f048[0x0]['predictiveIntervalTotalCalls'];_0x2cb0dc[_0x1153c2('0x8')]=_0x3fa6fe>0x0?_0x3fa6fe:0x1;switch(_0x2cb0dc[_0x1153c2('0x19c')]){case'dropRate':{const _0x17e7e8=_0x2cb0dc[_0x1153c2('0x24')]/0x64;return _0x41e9c5[_0x1153c2('0x40')](_0x5976e4,_0x4185f8,_0x2da245,_0x3fa6fe,_0x17e7e8)[_0x1153c2('0x216')](function(_0x4bd5d7){return _0x42ea23(_0x4bd5d7);});}case'agentBusyFactor':{const _0xddb248=_0x2cb0dc[_0x1153c2('0x24')]/0x64;return _0x41e9c5[_0x1153c2('0x1f5')](_0x5976e4,_0x4185f8,_0x2da245,_0x3fa6fe,_0xddb248)[_0x1153c2('0x216')](function(_0x97e4b2){return _0x42ea23(_0x97e4b2);});}default:return _0xfcc3a3(msgResponse(_0x1153c2('0x156'),'Failure',_0x1153c2('0xd2')));}}else return _0xfcc3a3(msgResponse('[getDataPredictive]',_0x1153c2('0x102'),_0x1153c2('0x143')));});};},Dialer['prototype'][_0xab3d52('0xfb')]=function(_0x5906c4){const _0x372f99=this;return function(_0x1c5342){return new Promise(function(_0x4e7b1b,_0x3c46a4){const _0x192d72=a1056_0x5f12;_[_0x192d72('0x173')](_0x5906c4,_0x1c5342[0x0]);if(checkGetDataPredictive(_0x1c5342[0x0])){loggerPredictive[_0x192d72('0x15d')](JSON['stringify'](_0x1c5342[0x0]));if(_0x5906c4['dialPredictiveOptimization']===_0x192d72('0x171'))return _0x372f99['getVoiceQueueRtPauses'](_0x5906c4['id'])[_0x192d72('0x216')](function(_0x27a199){const _0xe34099=_0x192d72,_0x29ae48=_0x5906c4[_0xe34099('0xb')]-_0x27a199[0x0][_0xe34099('0x1cd')],_0x24dabe=_0x5906c4[_0xe34099('0xc7')]*0x3c,_0x2633d4=_0x1c5342[0x0][_0xe34099('0x6b')]+_0x1c5342[0x0][_0xe34099('0x14a')],_0x215f17=(_0x1c5342[0x0][_0xe34099('0x41')]+_0x1c5342[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x1c5342[0x0][_0xe34099('0xde')])/_0x1c5342[0x0]['predictiveIntervalTotalCalls'],_0x25c5a3=_0x5906c4[_0xe34099('0x24')]/0x64;return _0x5906c4['predictiveIntervalPauses']=_0x27a199[0x0][_0xe34099('0x1cd')]||0x0,_0x5906c4[_0xe34099('0x8')]=_0x215f17>0x0?_0x215f17:0x1,_0x372f99[_0xe34099('0x40')](_0x29ae48,_0x24dabe,_0x2633d4,_0x215f17,_0x25c5a3);})['then'](function(_0x2a4d0d){return _0x4e7b1b(_0x2a4d0d);})['catch'](function(_0x1bade2){const _0x478efb=_0x192d72;return _0x3c46a4(msgResponse('[CatchErlangB]',_0x478efb('0x102'),JSON[_0x478efb('0x4f')](_0x1bade2)));});if(_0x5906c4[_0x192d72('0x19c')]==='agentBusyFactor')return _0x372f99[_0x192d72('0xc')](_0x5906c4['id'])[_0x192d72('0x216')](function(_0x15be7c){const _0x4bb4a6=_0x192d72,_0xd066fb=_0x5906c4[_0x4bb4a6('0xb')]-_0x15be7c[0x0][_0x4bb4a6('0x1cd')],_0x4f930e=_0x5906c4[_0x4bb4a6('0xc7')]*0x3c,_0x1a9e4a=_0x1c5342[0x0][_0x4bb4a6('0x6b')]+_0x1c5342[0x0][_0x4bb4a6('0x14a')],_0x563bd5=(_0x1c5342[0x0][_0x4bb4a6('0x41')]+_0x1c5342[0x0][_0x4bb4a6('0x1d4')]+_0x1c5342[0x0][_0x4bb4a6('0xde')])/_0x1c5342[0x0][_0x4bb4a6('0x17e')],_0x3cfc88=_0x5906c4[_0x4bb4a6('0x24')]/0x64;return _0x5906c4['predictiveIntervalPauses']=_0x15be7c[0x0][_0x4bb4a6('0x1cd')]||0x0,_0x5906c4[_0x4bb4a6('0x8')]=_0x563bd5>0x0?_0x563bd5:0x1,_0x372f99[_0x4bb4a6('0x1f5')](_0xd066fb,_0x4f930e,_0x1a9e4a,_0x563bd5,_0x3cfc88);})['then'](function(_0xab7738){return _0x4e7b1b(_0xab7738);})['catch'](function(_0x572128){const _0x4ad44f=_0x192d72;return _0x3c46a4(msgResponse(_0x4ad44f('0xa2'),_0x4ad44f('0x102'),JSON[_0x4ad44f('0x4f')](_0x572128)));});}else return _0x3c46a4(msgResponse(_0x192d72('0x156'),_0x192d72('0x102'),'check\x20failure'));});};},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1db')]=function(_0x253409){const _0x55d164=this;return function(){const _0x1ba1b9=a1056_0x5f12;let _0x10093b=0x0,_0x3b9ae4=Math['floor'](_0x253409[_0x1ba1b9('0xd6')]*0x3e8);_0x3b9ae4>0x0?(_0x3b9ae4=_0x3b9ae4<0x64?0x64:_0x3b9ae4,loggerPredictive['info'](_0x253409[_0x1ba1b9('0x43')],_0x1ba1b9('0x44'),_0x3b9ae4,'milliseconds'),_0x253409['handlePredictive']=setInterval(function(){const _0x298a73=_0x1ba1b9;_0x55d164[_0x298a73('0x95')](_0x253409),loggerPredictiveCalls['info']('[handlePredictive]',_0x10093b+=0x1);},_0x3b9ae4)):loggerPredictive['info'](_0x253409[_0x1ba1b9('0x43')],_0x1ba1b9('0x58'));};},Dialer[_0xab3d52('0x119')][_0xab3d52('0xc4')]=function(_0x4c3ad2,_0x214e30){const _0x1882f8=this;return function(_0x1743fb){const _0x2162c0=a1056_0x5f12;if(_['isEmpty'](_0x1743fb)){if(_['isNil'](_0x214e30[_0x2162c0('0x5b')])||!_0x214e30[_0x2162c0('0x55')]){if(_0x4c3ad2[_0x2162c0('0x1c6')]===_0x2162c0('0x8e')){_0x4c3ad2[_0x2162c0('0x7a')]=_[_0x2162c0('0x1d5')](_0x4c3ad2[_0x2162c0('0x7a')])?!![]:_0x4c3ad2['queueStatusComplete'];const _0xe9d3f2=uuid['v4']();_0x1882f8[_0x2162c0('0x114')][_0xe9d3f2]=new Action(_0x4c3ad2,_0x214e30,_0xe9d3f2),loggerBooked[_0x2162c0('0x15d')](_0x2162c0('0x18c'),_0xe9d3f2,_0x2162c0('0x1e7'),JSON[_0x2162c0('0x4f')](_0x4c3ad2[_0x2162c0('0x7a')]),_0x2162c0('0x9d'),_0x4c3ad2[_0x2162c0('0x43')]),_0x4c3ad2[_0x2162c0('0x7a')]?(_0x4c3ad2[_0x2162c0('0x7a')]=![],_0x1882f8[_0x2162c0('0xcc')][_0x1882f8[_0x2162c0('0x114')][_0xe9d3f2][_0x2162c0('0x60')]]=[],ami[_0x2162c0('0x3')]({'actionid':_0xe9d3f2,'action':_0x2162c0('0x191'),'queue':_0x4c3ad2[_0x2162c0('0x43')]})['catch'](function(){const _0x3ea2c1=_0x2162c0;_0x1882f8[_0x3ea2c1('0x96')](_0x4c3ad2),_0x1882f8[_0x3ea2c1('0x6a')]({'active':![],'ContactId':_0x1882f8['actions'][_0xe9d3f2][_0x3ea2c1('0x6e')],'ListId':_0x1882f8['actions'][_0xe9d3f2][_0x3ea2c1('0x1d')],'VoiceQueueId':_0x1882f8[_0x3ea2c1('0x114')][_0xe9d3f2][_0x3ea2c1('0x136')]||undefined,'CampaignId':_0x1882f8['actions'][_0xe9d3f2][_0x3ea2c1('0x10')]||undefined})[_0x3ea2c1('0x2f')](loggerCatch(_0x3ea2c1('0x16b'))),delete _0x1882f8['actions'][_0xe9d3f2];})):(loggerBooked[_0x2162c0('0x15d')](_0x2162c0('0x0'),JSON[_0x2162c0('0x4f')](_0x4c3ad2[_0x2162c0('0x7a')]),'Queue:\x20',_0x4c3ad2['name']),_0x1882f8[_0x2162c0('0x96')](_0x4c3ad2),_0x1882f8[_0x2162c0('0x6a')]({'active':![],'ContactId':_0x1882f8[_0x2162c0('0x114')][_0xe9d3f2][_0x2162c0('0x6e')],'ListId':_0x1882f8[_0x2162c0('0x114')][_0xe9d3f2][_0x2162c0('0x1d')],'VoiceQueueId':_0x1882f8[_0x2162c0('0x114')][_0xe9d3f2]['VoiceQueueId']||undefined,'CampaignId':_0x1882f8['actions'][_0xe9d3f2][_0x2162c0('0x10')]||undefined})[_0x2162c0('0x2f')](loggerCatch(_0x2162c0('0x16b'))),delete _0x1882f8[_0x2162c0('0x114')][_0xe9d3f2]);}else return _0x1882f8['actionOriginate'](_0x4c3ad2,_0x214e30);}else getDiff(_0x214e30['scheduledat'])<_0x4c3ad2[_0x2162c0('0xdf')]*0x3c?_0x214e30['Agent']&&!_0x214e30['Agent'][_0x2162c0('0x6d')]?_0x1882f8[_0x2162c0('0xf4')][_0x2162c0('0x1fd')](_0x214e30['id'])[_0x2162c0('0xa1')](function(){const _0x1f048f=_0x2162c0;_0x1882f8[_0x1f048f('0x96')](_0x4c3ad2);}):_0x1882f8['unlockContact']({'active':![]},_0x214e30['id'],0x1)['finally'](function(){const _0x26176d=_0x2162c0;console['log'](_0x26176d('0x12d')),_0x1882f8[_0x26176d('0x96')](_0x4c3ad2);}):(_0x4c3ad2['outboundReCallsDay']+=0x1,_0x1882f8[_0x2162c0('0x96')](_0x4c3ad2),_0x4c3ad2[_0x2162c0('0x64')]?(_0x1882f8[_0x2162c0('0x6a')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x214e30['ContactId'],'ListId':_0x214e30[_0x2162c0('0x1d')],'VoiceQueueId':_0x214e30[_0x2162c0('0x136')]||undefined,'CampaignId':_0x214e30[_0x2162c0('0x10')]||undefined})[_0x2162c0('0x2f')](loggerCatch(_0x2162c0('0xfa'))),_0x1882f8[_0x2162c0('0x14')](createObjHistory(_0x4c3ad2,_0x214e30,_0x2162c0('0x1f'),0x17,_0x2162c0('0x104')))[_0x2162c0('0x2f')](loggerCatch(_0x2162c0('0x109')))):_0x1882f8[_0x2162c0('0xda')](createObjHistory(_0x4c3ad2,_0x214e30,_0x2162c0('0x77'),0x16,_0x2162c0('0x174')),_0x2162c0('0x45'),_0x2162c0('0x1ec')));}else{_0x4c3ad2[_0x2162c0('0x50')]+=0x1,_0x1882f8['saveInDb'](createObjHistory(_0x4c3ad2,_0x214e30,_0x2162c0('0xe4'),0xd,_0x2162c0('0x1cc')),_0x2162c0('0x10e'),_0x2162c0('0x108'));throw _0x2162c0('0x129');}};},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1f6')]=function(_0x5cc73c){const _0x307525=_0xab3d52,_0x147abb=this;let _0xc20e53=_0x5cc73c[_0x307525('0xbc')]-_0x5cc73c[_0x307525('0xc9')]-_0x5cc73c['temp'];emitCampaignSummary(_0x5cc73c),_0xc20e53>0x0&&(_0xc20e53>this[_0x307525('0x1d8')]&&(_0xc20e53=this['maxNumberOriginate']),_0x5cc73c[_0x307525('0x1bb')]+=_0xc20e53,this[_0x307525('0x1bc')](_0x5cc73c['id'],_0xc20e53,_0x5cc73c[_0x307525('0x207')])[_0x307525('0x216')](function(_0x2cba24){const _0x3064a6=_0x307525;_0x5cc73c[_0x3064a6('0x1bb')]-=_0xc20e53,_0x5cc73c[_0x3064a6('0x1bb')]=_0x5cc73c[_0x3064a6('0x1bb')]>0x0?_0x5cc73c[_0x3064a6('0x1bb')]:0x0;if(!checkContactEmpty(_0x2cba24))_0x5cc73c[_0x3064a6('0x196')]='AVAILABLE_CONTACTS_FINISHED',logger[_0x3064a6('0x15d')](_0x3064a6('0x1b8')+_0x5cc73c[_0x3064a6('0x43')]);else{_0x5cc73c[_0x3064a6('0xc9')]+=_0x2cba24[_0x3064a6('0x184')],_0x5cc73c[_0x3064a6('0x196')]=_0x3064a6('0x19d');for(let _0x1ae70b=0x0;_0x1ae70b<_0x2cba24[_0x3064a6('0x184')];_0x1ae70b+=0x1){_0x5cc73c[_0x3064a6('0x1ae')]+=0x1,_['isNil'](_0x2cba24[_0x1ae70b])||_['isNil'](_0x2cba24[_0x1ae70b][_0x3064a6('0x94')])||_[_0x3064a6('0x130')](_0x2cba24[_0x1ae70b][_0x3064a6('0x94')][_0x3064a6('0x162')])?_0x147abb['emptyContact'](_0x3064a6('0x113'),_0x5cc73c,_0x2cba24[_0x1ae70b]):_0x147abb['checkIsBlackListIvr'](_[_0x3064a6('0x1b7')](_0x2cba24[_0x1ae70b],[_0x3064a6('0x10'),'Contact.phone']))[_0x3064a6('0x216')](_0x147abb['checkContactBlack'](_0x5cc73c,_0x2cba24[_0x1ae70b]))[_0x3064a6('0x2f')](_0x147abb[_0x3064a6('0x1b5')](_0x3064a6('0x105'),_0x5cc73c));}}})[_0x307525('0x2f')](loggerGetContactDialer(_0x307525('0xb2'),_0x5cc73c,_0xc20e53)));},Dialer[_0xab3d52('0x119')][_0xab3d52('0x148')]=function(_0x10510a,_0x8b6bc2){const _0x24d72a=_0xab3d52,_0x422831=this,_0x452d0c=[];let _0x4535d1=_0x8b6bc2>=0x1?_0x8b6bc2:0x1;_0x10510a[_0x24d72a('0x1c6')]===_0x24d72a('0x8e')&&(_0x4535d1=0x1);let _0x80e1c8=Math[_0x24d72a('0x13')](_0x10510a[_0x24d72a('0x208')]*_0x4535d1)-_0x10510a[_0x24d72a('0xc9')]-_0x10510a[_0x24d72a('0x1bb')];emitVoiceQueueSummary(_0x10510a);if(_0x10510a[_0x24d72a('0x2d')]>0x0){const _0x3658cf=_0x10510a[_0x24d72a('0x2d')]-_0x10510a[_0x24d72a('0xc9')]-_0x10510a[_0x24d72a('0x48')]-_0x10510a[_0x24d72a('0x1bb')]-_0x10510a[_0x24d72a('0x1a0')];_0x80e1c8>_0x3658cf&&(_0x80e1c8=_0x3658cf);}if(_0x80e1c8>0x0){_0x10510a['dialMethod']===_0x24d72a('0x8e')&&(_0x80e1c8=0x1);_0x80e1c8>this[_0x24d72a('0x1d8')]&&(_0x80e1c8=this[_0x24d72a('0x1d8')]);_0x10510a['temp']+=_0x80e1c8;for(const _0x5897cd in this[_0x24d72a('0x1a2')]){typeof this[_0x24d72a('0x1a2')][_0x5897cd]!=='undefined'&&(this[_0x24d72a('0x1a2')][_0x5897cd][_0x24d72a('0x62')]===_0x24d72a('0x15c')&&this[_0x24d72a('0x1a2')][_0x5897cd]['status']===_0x24d72a('0x28')&&_0x452d0c[_0x24d72a('0x203')](this[_0x24d72a('0x1a2')][_0x5897cd]['id']));}this[_0x24d72a('0x1bd')](_0x10510a['id'],_0x452d0c,_0x80e1c8,_0x10510a[_0x24d72a('0x207')])[_0x24d72a('0x216')](function(_0x5df0cc){const _0x5d6d6d=_0x24d72a;_0x10510a[_0x5d6d6d('0x1bb')]-=_0x80e1c8,_0x10510a[_0x5d6d6d('0x1bb')]=_0x10510a[_0x5d6d6d('0x1bb')]>0x0?_0x10510a[_0x5d6d6d('0x1bb')]:0x0;if(!checkContactEmpty(_0x5df0cc))_0x422831['countReScheduled'](_0x10510a)[_0x5d6d6d('0x216')](sendMessageReschedule(_0x10510a))[_0x5d6d6d('0x2f')](loggerCatch(_0x5d6d6d('0x1f9')));else{_0x10510a['originated']+=_0x5df0cc['length'],_0x10510a[_0x5d6d6d('0x196')]=_0x10510a[_0x5d6d6d('0x1c6')]===_0x5d6d6d('0x8e')?_0x5d6d6d('0x85'):_0x5d6d6d('0x19d');for(let _0x1d9421=0x0;_0x1d9421<_0x5df0cc[_0x5d6d6d('0x184')];_0x1d9421+=0x1){_[_0x5d6d6d('0x130')](_0x5df0cc[_0x1d9421])||_['isNil'](_0x5df0cc[_0x1d9421][_0x5d6d6d('0x94')])||_['isNil'](_0x5df0cc[_0x1d9421][_0x5d6d6d('0x94')]['phone'])?_0x422831[_0x5d6d6d('0x65')](_0x5d6d6d('0x113'),_0x10510a,_0x5df0cc[_0x1d9421]):_0x422831[_0x5d6d6d('0xa8')](_[_0x5d6d6d('0x1b7')](_0x5df0cc[_0x1d9421],['VoiceQueueId','Contact.phone']))[_0x5d6d6d('0x216')](_0x422831[_0x5d6d6d('0xc4')](_0x10510a,_0x5df0cc[_0x1d9421]))[_0x5d6d6d('0x2f')](_0x422831['loggerHandler'](_0x5d6d6d('0x113'),_0x10510a));}}})[_0x24d72a('0x2f')](loggerGetContactDialer(_0x24d72a('0xf8'),_0x10510a,_0x80e1c8));}},Dialer[_0xab3d52('0x119')]['handlePredictive']=function(_0x47cbad){const _0x5ba330=_0xab3d52;if(_0x47cbad[_0x5ba330('0x2d')]>0x0){const _0x32fa73=_0x47cbad[_0x5ba330('0x2d')]-_0x47cbad[_0x5ba330('0xc9')]-_0x47cbad[_0x5ba330('0x48')];_0x32fa73>0x0?this[_0x5ba330('0x1d7')](_0x47cbad):loggerPredictiveCalls['info'](_0x5ba330('0x20a'));}else this[_0x5ba330('0x1d7')](_0x47cbad);},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1d7')]=function(_0x4198e9){const _0x4e2db5=_0xab3d52,_0x3a8d15=this,_0x471504=[];_0x4198e9[_0x4e2db5('0xc9')]+=0x1;for(const _0x2ff48e in this[_0x4e2db5('0x1a2')]){typeof this['agents'][_0x2ff48e]!=='undefined'&&(this[_0x4e2db5('0x1a2')][_0x2ff48e][_0x4e2db5('0x62')]===_0x4e2db5('0x15c')&&this[_0x4e2db5('0x1a2')][_0x2ff48e]['status']===_0x4e2db5('0x28')&&_0x471504[_0x4e2db5('0x203')](this[_0x4e2db5('0x1a2')][_0x2ff48e]['id']));}this[_0x4e2db5('0x1bd')](_0x4198e9['id'],_0x471504,0x1,_0x4198e9[_0x4e2db5('0x207')])[_0x4e2db5('0x216')](function(_0x43f12b){const _0x348fae=_0x4e2db5;!checkContactEmpty(_0x43f12b)?(checkContactLowerLimitOriginate(_0x4198e9,0x1,0x0),_0x3a8d15['countReScheduled'](_0x4198e9)['then'](sendMessageReschedule(_0x4198e9))[_0x348fae('0x2f')](loggerCatch(_0x348fae('0x1f9')))):(_0x4198e9[_0x348fae('0x196')]='RUNNING',_['isNil'](_0x43f12b[0x0])||_[_0x348fae('0x130')](_0x43f12b[0x0][_0x348fae('0x94')])||_[_0x348fae('0x130')](_0x43f12b[0x0][_0x348fae('0x94')][_0x348fae('0x162')])?_0x3a8d15['emptyContact'](_0x348fae('0x113'),_0x4198e9,_0x43f12b[0x0]):_0x3a8d15[_0x348fae('0xa8')](_['pick'](_0x43f12b[0x0],[_0x348fae('0x136'),_0x348fae('0x47')]))['then'](_0x3a8d15[_0x348fae('0xc4')](_0x4198e9,_0x43f12b[0x0]))[_0x348fae('0x2f')](_0x3a8d15[_0x348fae('0x1b5')](_0x348fae('0x1ab'),_0x4198e9)));})[_0x4e2db5('0x2f')](loggerGetContactDialer(_0x4e2db5('0xe5'),_0x4198e9,0x1)),emitVoiceQueueSummary(_0x4198e9);},Dialer[_0xab3d52('0x119')]['abandonmentRate']=function(_0x18eb25,_0x346e95,_0xe5a025,_0x34cd80,_0x3c8616,_0x310094){const _0x3830b4=_0xab3d52;return loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0x7')),loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0x182'),_0x18eb25),loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0x123'),_0x346e95),loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0x74'),_0xe5a025),loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0xad'),_0x34cd80),loggerPredictive[_0x3830b4('0x15d')]('Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x3c8616),loggerPredictive[_0x3830b4('0x15d')](_0x3830b4('0x19')),new Promise(function(_0x20ca64,_0x5606c9){const _0x44ebb4=_0x3830b4;if(_0x18eb25<=0x0||isNaN(_0x18eb25))return _0x5606c9(msgResponse(_0x44ebb4('0x1a9'),_0x44ebb4('0x1c7'),_0x44ebb4('0x20')+_0x18eb25));if(_0xe5a025<=0x0||isNaN(_0xe5a025))return _0x5606c9(msgResponse('[abandonmentRate]','Error',_0x44ebb4('0x25')+_0xe5a025));if(_0x34cd80<=0x0||isNaN(_0x34cd80))return _0x5606c9(msgResponse(_0x44ebb4('0x1a9'),_0x44ebb4('0x1c7'),_0x44ebb4('0xa9')+_0x34cd80));if(_0x346e95<=0x0||isNaN(_0x346e95))return _0x5606c9(msgResponse(_0x44ebb4('0x1a9'),_0x44ebb4('0x1c7'),'interval\x20=\x20'+_0x346e95));if(_0x3c8616<=0x0||isNaN(_0x3c8616))return _0x5606c9(msgResponse(_0x44ebb4('0x1a9'),_0x44ebb4('0x1c7'),_0x44ebb4('0xf7')+_0x3c8616));_0x310094=_0x310094||0x0;const _0x54be14=0x1/_0xe5a025;let _0x17cbeb=0x0,_0x5ae95c=0x0,_0x14bd05=0x0,_0x353fd1=0x0,_0x2a4c3b=0x0;for(_0x2a4c3b=0x0;_0x14bd05<_0x3c8616;_0x2a4c3b+=0x1){_0x5ae95c=_0x2a4c3b/_0x346e95,_0x17cbeb=(_0x34cd80*_0x5ae95c+_0x310094)/_0x54be14,_0x14bd05=erlangb(_0x17cbeb,_0x18eb25),_0x353fd1=_0x17cbeb/_0x18eb25*(0x1-erlangb(_0x17cbeb,_0x18eb25));}return _0x20ca64({'erlangCalls':_0x2a4c3b,'erlangCallToSecond':_0x346e95/_0x2a4c3b,'erlangAbandonmentRate':_0x14bd05,'erlangBusyFactor':_0x353fd1});});},Dialer[_0xab3d52('0x119')][_0xab3d52('0x1f5')]=function(_0x2edb28,_0x29a0ee,_0x1aac79,_0x3fa923,_0x4cae73,_0x241666){const _0x5abab4=_0xab3d52;return loggerPredictive['info'](_0x5abab4('0x21')),loggerPredictive[_0x5abab4('0x15d')](_0x5abab4('0x182'),_0x2edb28),loggerPredictive[_0x5abab4('0x15d')](_0x5abab4('0x123'),_0x29a0ee),loggerPredictive['info']('Ts:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1aac79),loggerPredictive[_0x5abab4('0x15d')]('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',_0x3fa923),loggerPredictive['info'](_0x5abab4('0x1e3'),_0x4cae73),loggerPredictive[_0x5abab4('0x15d')]('---------------------------'),new Promise(function(_0x5b1385,_0x128058){const _0x44e4a4=_0x5abab4;if(_0x2edb28<=0x0||isNaN(_0x2edb28))return _0x128058(msgResponse('[busyFactor]','Error',_0x44e4a4('0x20')+_0x2edb28));if(_0x1aac79<=0x0||isNaN(_0x1aac79))return _0x128058(msgResponse(_0x44e4a4('0x39'),_0x44e4a4('0x1c7'),_0x44e4a4('0x25')+_0x1aac79));if(_0x3fa923<=0x0||isNaN(_0x3fa923))return _0x128058(msgResponse(_0x44e4a4('0x39'),_0x44e4a4('0x1c7'),_0x44e4a4('0xa9')+_0x3fa923));if(_0x29a0ee<=0x0||isNaN(_0x29a0ee))return _0x128058(msgResponse(_0x44e4a4('0x39'),_0x44e4a4('0x1c7'),'interval\x20=\x20'+_0x29a0ee));if(_0x4cae73<=0x0||isNaN(_0x4cae73))return _0x128058(msgResponse(_0x44e4a4('0x39'),'Error',_0x44e4a4('0x13e')+_0x4cae73));_0x241666=_0x241666||0x0;const _0x38f210=0x1/_0x1aac79;let _0x4940a2=0x0,_0x173305=0x0,_0x1da1a3=0x0,_0x145d78=0x0,_0x2f1f12=0x0;for(_0x2f1f12=0x0;_0x145d78<_0x4cae73;_0x2f1f12+=0x1){_0x173305=_0x2f1f12/_0x29a0ee,_0x4940a2=(_0x3fa923*_0x173305+_0x241666)/_0x38f210,_0x1da1a3=erlangb(_0x4940a2,_0x2edb28),_0x145d78=_0x4940a2/_0x2edb28*(0x1-erlangb(_0x4940a2,_0x2edb28));}return _0x5b1385({'erlangCalls':_0x2f1f12,'erlangCallToSecond':_0x29a0ee/_0x2f1f12,'erlangAbandonmentRate':_0x1da1a3,'erlangBusyFactor':_0x145d78});});},module[_0xab3d52('0xca')]=Dialer; \ No newline at end of file +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 diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index 89c9c13..ebfef97 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1057_0x3476=['exports','CampaignId','scheduledat','endtime','callbackat','countdropretry','originatecalleridnum','ringtime','VoiceQueueId','countagentrejectretry','countnoanswerretry','type','responsetime','membername','uniqueid','ListId','callbackuniqueid','holdtime','milliseconds','calleridnum','outbound','calleridname','recallme','countbusyretry','connectedlinename','moment','countcongestionretry','UserId','droptime','countnosuchnumberretry','campaigntype','queue','number','countabandonedretry','countmachineretry','countglobal','reason','ContactId','originatecalleridname','starttime','talktime'];(function(_0x545cb7,_0x3476e2){const _0xcc3889=function(_0x56a54f){while(--_0x56a54f){_0x545cb7['push'](_0x545cb7['shift']());}};_0xcc3889(++_0x3476e2);}(a1057_0x3476,0xa7));const a1057_0xcc38=function(_0x545cb7,_0x3476e2){_0x545cb7=_0x545cb7-0x0;let _0xcc3889=a1057_0x3476[_0x545cb7];return _0xcc3889;};const _0x4b3f09=a1057_0xcc38;'use strict';const moment=require(_0x4b3f09('0x16'));function getSeconds(_0x56a54f,_0xa93b12){const _0x7daa35=_0x4b3f09,_0x3955d5=moment(_0x56a54f)[_0x7daa35('0xf')](0x0),_0x32495f=moment(_0xa93b12)[_0x7daa35('0xf')](0x0);return _0x3955d5['diff'](_0x32495f,'seconds');}function QueueCallerAbandon(_0x935277,_0x139c52){const _0x43b856=_0x4b3f09;this[_0x43b856('0x28')]=_0x935277['scheduledat'],this[_0x43b856('0x8')]=_0x935277[_0x43b856('0x8')],this[_0x43b856('0x1b')]=_0x935277['type']===_0x43b856('0x11')?_0x43b856('0x1c'):_0x935277['type'],this[_0x43b856('0x14')]=_0x935277[_0x43b856('0x14')],this[_0x43b856('0x17')]=_0x935277[_0x43b856('0x17')],this[_0x43b856('0x7')]=_0x935277[_0x43b856('0x7')],this[_0x43b856('0x20')]=_0x935277['countbusyretry']+_0x935277[_0x43b856('0x17')]+_0x935277[_0x43b856('0x7')]+_0x935277[_0x43b856('0x1a')]+_0x935277['countdropretry']+_0x935277['countabandonedretry']+_0x935277['countmachineretry']+_0x935277[_0x43b856('0x6')],this['countnosuchnumberretry']=_0x935277[_0x43b856('0x1a')],this[_0x43b856('0x2')]=_0x935277['countdropretry'],this[_0x43b856('0x1e')]=_0x935277[_0x43b856('0x1e')],this[_0x43b856('0x1f')]=_0x935277[_0x43b856('0x1f')],this[_0x43b856('0x6')]=_0x935277[_0x43b856('0x6')],this[_0x43b856('0xb')]=_0x139c52['uniqueid'],this[_0x43b856('0x12')]=_0x935277['name'],this[_0x43b856('0x10')]=_0x935277[_0x43b856('0x1d')],this[_0x43b856('0x24')]=_0x935277[_0x43b856('0x24')],this[_0x43b856('0x9')]=_0x935277[_0x43b856('0x9')],this[_0x43b856('0x19')]=_0x935277['droptime'],this[_0x43b856('0x0')]=this[_0x43b856('0x19')],this[_0x43b856('0x4')]=getSeconds(_0x935277['responsetime'],_0x935277[_0x43b856('0x24')]),this[_0x43b856('0xe')]=getSeconds(this[_0x43b856('0x19')],_0x935277['responsetime']),this[_0x43b856('0x25')]=0x0,this[_0x43b856('0x1c')]=_0x139c52[_0x43b856('0x1c')],this[_0x43b856('0xa')]=_0x139c52[_0x43b856('0x15')],this[_0x43b856('0x21')]=_0x139c52['reason'],this['callback']=_0x935277['callback'],this[_0x43b856('0xd')]=_0x935277[_0x43b856('0xd')],this[_0x43b856('0x1')]=_0x935277[_0x43b856('0x1')],this[_0x43b856('0x13')]=_0x935277[_0x43b856('0x13')],this[_0x43b856('0x22')]=_0x935277[_0x43b856('0x22')],this[_0x43b856('0xc')]=_0x935277['ListId'],this['UserId']=_0x935277[_0x43b856('0x18')],this[_0x43b856('0x5')]=_0x935277[_0x43b856('0x5')],this[_0x43b856('0x27')]=_0x935277[_0x43b856('0x27')],this['originatecalleridnum']=_0x935277[_0x43b856('0x3')]||'',this[_0x43b856('0x23')]=_0x935277[_0x43b856('0x23')]||'';}module[_0x4b3f09('0x26')]=QueueCallerAbandon; \ No newline at end of file +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 diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index 2ea569b..8e1891a 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1058_0x4238=['localstationid','exports','path','AttachmentId','name','Trunk','fax','uniqueid','util','format','headerinfo','%s/%s/%s'];(function(_0x535e34,_0x4238a0){const _0xfbd55=function(_0x110190){while(--_0x110190){_0x535e34['push'](_0x535e34['shift']());}};_0xfbd55(++_0x4238a0);}(a1058_0x4238,0xc6));const a1058_0xfbd5=function(_0x535e34,_0x4238a0){_0x535e34=_0x535e34-0x0;let _0xfbd55=a1058_0x4238[_0x535e34];return _0xfbd55;};const _0x3f465f=a1058_0xfbd5;'use strict';const util=require(_0x3f465f('0x2'));function Action(_0x110190,_0x4503c4,_0x2be7f8){const _0x48f9a5=_0x3f465f;this[_0x48f9a5('0x1')]=_0x110190||undefined,this['channel']=util[_0x48f9a5('0x3')](_0x48f9a5('0x5'),_0x4503c4['tech'],_0x4503c4[_0x48f9a5('0xb')][_0x48f9a5('0xa')],_0x2be7f8[_0x48f9a5('0x0')]),this[_0x48f9a5('0x6')]=_0x4503c4[_0x48f9a5('0x6')],this['headerinfo']=_0x4503c4[_0x48f9a5('0x4')],this[_0x48f9a5('0x8')]=_0x2be7f8[_0x48f9a5('0x8')],this[_0x48f9a5('0x9')]=_0x2be7f8[_0x48f9a5('0x9')];}module[_0x3f465f('0x7')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index e562ab3..9d856e5 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1060_0x4080=['faxstatus','Empty\x20Fax','isTrunkReachable','FaxAccountId','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','notify','/var/opt/motion2/server/files/attachments/','../rpc/attachment','format','parse','AttachmentId','syncVarSet','faxAccounts','newexten','pagestransferred','bind','./util/util','localstationid','[Fax][checkTrunk][Empty\x20Fax]','message','error','originateresponse','trunks','../ami','catch','SIP/%s','resolution','Action','status','[Fax][Message][Error][NoUpdate2]','SENDING\x20FAILED','\x20hangup\x20faxRiceive\x20','tiff2pdf','[Fax][checkTrunk][Trunk\x20not\x20work]','Trunk','from-voip-provider','Trunk\x20Reachable','active','logger','[Fax][Message][Updated]','newchannel','syncHangup','variablesAction','calleridnum','uniqueid','finally','channel','[Fax][execOriginate][failure]','[Fax][checkTrunk][Empty\x20path]','operation','info','addVariables','exports','[Fax][execOriginate][success]','syncNewExten','remotestationid','channelstatedesc','checkAfterSend','syncOriginateResponse','path','variable','%s/%s.tif','XMF-PATH','stringify','\x20receiveFax\x20','updateStatus','.pdf','Fax\x20received','[Fax][Message][Error][NoUpdate1]','syncReceiveFax','unmonitored','ext','SUCCESS','then','uuid','prototype','../rpc/faxMessage','value','undefined','syncNewchannel','name','exten','util','./action','channels','actions','faxstatusstring','reason','../../../config/logger','transferrate','update','\x20result\x20conversion\x20file\x20','\x20syncNewchannel\x20','checkTrunk','Trunk\x20not\x20working','[Fax][Message][NoUpdate2]','\x20hangup\x20sendFile\x20','dir','filename','Empty\x20path','syncFaxStatus','receivefax','context','\x20Trunk\x20is\x20not\x20active','execute','Convert\x20pdf\x20to\x20tif','create','newstate','pick','faxpages','syncNewState','isNil','Fax\x20failed','fax','Is\x20Valid'];(function(_0x39b20a,_0x40802d){const _0x26bb45=function(_0x25dd43){while(--_0x25dd43){_0x39b20a['push'](_0x39b20a['shift']());}};_0x26bb45(++_0x40802d);}(a1060_0x4080,0xfa));const a1060_0x26bb=function(_0x39b20a,_0x40802d){_0x39b20a=_0x39b20a-0x0;let _0x26bb45=a1060_0x4080[_0x39b20a];return _0x26bb45;};const _0x382ec2=a1060_0x26bb;'use strict';const util=require(_0x382ec2('0x3e')),_=require('lodash'),uuid=require(_0x382ec2('0x36')),path=require(_0x382ec2('0x27')),tiff2pdf=require(_0x382ec2('0xc')),gs=require('./util/gs'),logger=require(_0x382ec2('0x44'))('fax'),ami=require(_0x382ec2('0x3')),ut=require(_0x382ec2('0x6f')),Action=require(_0x382ec2('0x3f')),faxAccount=require('../rpc/faxAccount'),attachment=require(_0x382ec2('0x66')),faxMessage=require(_0x382ec2('0x38'));function Fax(_0x25dd43){const _0xd15919=_0x382ec2;this[_0xd15919('0x40')]={},this[_0xd15919('0x6b')]=_0x25dd43[_0xd15919('0x6b')],this[_0xd15919('0x2')]=_0x25dd43[_0xd15919('0x2')],this[_0xd15919('0x41')]={},ami['on'](_0xd15919('0x14'),this[_0xd15919('0x3b')]['bind'](this)),ami['on']('varset',this[_0xd15919('0x6a')]['bind'](this)),ami['on'](_0xd15919('0x57'),this['syncNewState'][_0xd15919('0x6e')](this)),ami['on'](_0xd15919('0x6c'),this[_0xd15919('0x22')]['bind'](this)),ami['on']('faxstatus',this[_0xd15919('0x50')][_0xd15919('0x6e')](this)),ami['on'](_0xd15919('0x51'),this['syncReceiveFax'][_0xd15919('0x6e')](this)),ami['on']('hangup',this[_0xd15919('0x15')][_0xd15919('0x6e')](this)),ami['on'](_0xd15919('0x1'),this['syncOriginateResponse'][_0xd15919('0x6e')](this));}Fax[_0x382ec2('0x37')][_0x382ec2('0x3b')]=function(_0x44e36e){const _0x88b503=_0x382ec2;if(_0x44e36e[_0x88b503('0x52')]===_0x88b503('0xf'))for(const _0x298ab1 in this[_0x88b503('0x6b')]){typeof this['faxAccounts'][_0x298ab1]!==_0x88b503('0x3a')&&(_0x44e36e[_0x88b503('0x3d')]===this['faxAccounts'][_0x298ab1][_0x88b503('0x70')]&&(this[_0x88b503('0x40')][_0x44e36e[_0x88b503('0x18')]]={},this['channels'][_0x44e36e['uniqueid']][_0x88b503('0x1a')]=_0x44e36e[_0x88b503('0x1a')],this['channels'][_0x44e36e[_0x88b503('0x18')]]['id']=this[_0x88b503('0x6b')][_0x298ab1]['id'],this[_0x88b503('0x40')][_0x44e36e[_0x88b503('0x18')]][_0x88b503('0x3c')]=this['faxAccounts'][_0x298ab1]['name'],logger[_0x88b503('0x1e')](_0x44e36e[_0x88b503('0x18')],'\x20syncNewchannel\x20')));}this[_0x88b503('0x41')][_0x44e36e[_0x88b503('0x18')]]&&(this[_0x88b503('0x40')][_0x44e36e[_0x88b503('0x18')]]={},this[_0x88b503('0x40')][_0x44e36e[_0x88b503('0x18')]][_0x88b503('0x1a')]=_0x44e36e[_0x88b503('0x1a')],logger[_0x88b503('0x1e')](_0x44e36e[_0x88b503('0x18')],_0x88b503('0x48')));},Fax[_0x382ec2('0x37')][_0x382ec2('0x6a')]=function(_0x31b30f){const _0x334a4b=_0x382ec2;if(this['channels'][_0x31b30f['uniqueid']])for(const _0x2e477e in _0x31b30f['variable']){typeof _0x31b30f[_0x334a4b('0x28')][_0x2e477e]!==_0x334a4b('0x3a')&&(this[_0x334a4b('0x40')][_0x31b30f[_0x334a4b('0x18')]][_0x2e477e]=_0x31b30f[_0x334a4b('0x39')]);}},Fax[_0x382ec2('0x37')][_0x382ec2('0x5a')]=function(_0x339c15){const _0x58abe6=_0x382ec2;this[_0x58abe6('0x40')][_0x339c15['uniqueid']]&&(this[_0x58abe6('0x40')][_0x339c15[_0x58abe6('0x18')]]['channelstate']=_0x339c15['channelstate'],this['channels'][_0x339c15[_0x58abe6('0x18')]][_0x58abe6('0x24')]=_0x339c15[_0x58abe6('0x24')]);},Fax[_0x382ec2('0x37')][_0x382ec2('0x22')]=function(_0x38f2e3){const _0x1615ca=_0x382ec2;if(this[_0x1615ca('0x40')][_0x38f2e3[_0x1615ca('0x18')]])for(const _0x5d3c74 in _0x38f2e3[_0x1615ca('0x28')]){typeof _0x38f2e3[_0x1615ca('0x28')][_0x5d3c74]!==_0x1615ca('0x3a')&&(this[_0x1615ca('0x40')][_0x38f2e3['uniqueid']][_0x5d3c74]=_0x38f2e3['value']);}},Fax[_0x382ec2('0x37')]['syncFaxStatus']=function(_0x47d47e){const _0x554ec8=_0x382ec2;this['channels'][_0x47d47e['uniqueid']]&&(this['channels'][_0x47d47e[_0x554ec8('0x18')]][_0x554ec8('0x1d')]=_0x47d47e[_0x554ec8('0x1d')],this[_0x554ec8('0x40')][_0x47d47e['uniqueid']][_0x554ec8('0x8')]=_0x47d47e[_0x554ec8('0x8')],this[_0x554ec8('0x40')][_0x47d47e[_0x554ec8('0x18')]][_0x554ec8('0x70')]=_0x47d47e[_0x554ec8('0x70')],this[_0x554ec8('0x40')][_0x47d47e[_0x554ec8('0x18')]][_0x554ec8('0x4e')]=_0x47d47e['filename'],logger['info'](_0x47d47e['uniqueid'],'\x20syncFaxStatus\x20'));},Fax[_0x382ec2('0x37')][_0x382ec2('0x31')]=function(_0x46749b){const _0x5e10de=_0x382ec2;if(this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]]){const _0x3f6f16=this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]]['id'];this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]][_0x5e10de('0x23')]=_0x46749b[_0x5e10de('0x23')],this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]][_0x5e10de('0x6d')]=_0x46749b[_0x5e10de('0x6d')],this[_0x5e10de('0x40')][_0x46749b['uniqueid']][_0x5e10de('0x70')]=_0x46749b['localstationid'],this[_0x5e10de('0x40')][_0x46749b['uniqueid']][_0x5e10de('0x6')]=_0x46749b[_0x5e10de('0x6')],this['channels'][_0x46749b['uniqueid']][_0x5e10de('0x45')]=_0x46749b['transferrate'],this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]]['filename']=_0x46749b[_0x5e10de('0x4e')],this['channels'][_0x46749b[_0x5e10de('0x18')]]['calleridnum']=_0x46749b[_0x5e10de('0x17')],this[_0x5e10de('0x40')][_0x46749b[_0x5e10de('0x18')]][_0x5e10de('0x6d')]>0x0&&tiff2pdf(_0x46749b[_0x5e10de('0x4e')],_0x5e10de('0x65'),function(_0x1e7ace){const _0x22dd21=_0x5e10de;logger[_0x22dd21('0x1e')](_0x46749b[_0x22dd21('0x18')],_0x22dd21('0x47'),_0x1e7ace[_0x22dd21('0x72')]),attachment[_0x22dd21('0x56')]({'name':path[_0x22dd21('0x68')](_0x46749b[_0x22dd21('0x4e')])[_0x22dd21('0x3c')],'basename':path[_0x22dd21('0x68')](_0x46749b[_0x22dd21('0x4e')])[_0x22dd21('0x3c')]+'.pdf','type':'application/pdf'})['then'](function(_0x9877c3){const _0x170a47=_0x22dd21;faxAccount[_0x170a47('0x64')](_0x3f6f16,{'from':_0x46749b[_0x170a47('0x17')],'mapKey':_0x170a47('0x5d'),'body':path['parse'](_0x46749b[_0x170a47('0x4e')])[_0x170a47('0x3c')]+_0x170a47('0x2e'),'AttachmentId':_0x9877c3['id']})[_0x170a47('0x4')](function(_0x27f75e){const _0x4807c6=_0x170a47;logger[_0x4807c6('0x0')](_0x46749b[_0x4807c6('0x18')],'\x20notify\x20',JSON['stringify'](_0x27f75e));});})[_0x22dd21('0x4')](function(_0x117791){const _0x43f2c6=_0x22dd21;logger[_0x43f2c6('0x0')](_0x46749b['uniqueid'],_0x43f2c6('0x2c'),JSON['stringify'](_0x117791));});}),logger[_0x5e10de('0x1e')](_0x46749b[_0x5e10de('0x18')],_0x5e10de('0x2c'));}},Fax[_0x382ec2('0x37')][_0x382ec2('0x26')]=function(_0x481117){const _0x1b268a=_0x382ec2;this[_0x1b268a('0x41')][_0x481117[_0x1b268a('0x18')]]&&_['merge'](this['channels'][_0x481117[_0x1b268a('0x18')]],_[_0x1b268a('0x58')](_0x481117,['response',_0x1b268a('0x43')]));};function updateStatus(_0x4a3e3d){const _0x394a4a=_0x382ec2;_0x4a3e3d[_0x394a4a('0x69')]?faxMessage[_0x394a4a('0x46')](_0x4a3e3d[_0x394a4a('0x69')],{'failMessage':'SENDING\x20FAILED\x20'})[_0x394a4a('0x35')](function(_0x223994){const _0xa4bc8c=_0x394a4a;ut[_0xa4bc8c('0x12')]('[Fax][Message][Error][Updated]',_0x223994);})[_0x394a4a('0x4')](function(_0x46b214){const _0x2d1f9d=_0x394a4a;ut[_0x2d1f9d('0x12')](_0x2d1f9d('0x30'),_0x46b214);}):ut[_0x394a4a('0x12')](_0x394a4a('0x9'));}Fax['prototype'][_0x382ec2('0x2d')]=function(_0x21ddba,_0x2e5a54,_0x204821){const _0x4f83b9=_0x382ec2,_0x37d278=this;let _0x341e6d={};_0x2e5a54?_0x341e6d={'read':_0x2e5a54}:_0x341e6d={'failMessage':_0x204821},this['actions'][_0x21ddba][_0x4f83b9('0x69')]?faxMessage[_0x4f83b9('0x46')](this[_0x4f83b9('0x41')][_0x21ddba][_0x4f83b9('0x69')],_0x341e6d)['then'](function(_0x1b978f){const _0x11f646=_0x4f83b9;ut[_0x11f646('0x12')](_0x11f646('0x13'),_0x1b978f);})['catch'](function(_0xf5a86b){const _0x3087ea=_0x4f83b9;ut[_0x3087ea('0x12')]('[Fax][Message][NoUpdate1]',_0xf5a86b);})[_0x4f83b9('0x19')](function(){const _0x18cbe5=_0x4f83b9;delete _0x37d278['channels'][_0x21ddba],delete _0x37d278[_0x18cbe5('0x41')][_0x21ddba];}):(ut[_0x4f83b9('0x12')](_0x4f83b9('0x4b')),delete this['channels'][_0x21ddba],delete this[_0x4f83b9('0x41')][_0x21ddba]);},Fax[_0x382ec2('0x37')][_0x382ec2('0x15')]=function(_0x35036c){const _0x553a16=_0x382ec2;this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]]&&(this[_0x553a16('0x41')][_0x35036c[_0x553a16('0x18')]]&&(this['channels'][_0x35036c[_0x553a16('0x18')]]['id']=this[_0x553a16('0x41')][_0x35036c[_0x553a16('0x18')]]['id'],this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]][_0x553a16('0x3c')]=this[_0x553a16('0x41')][_0x35036c['uniqueid']][_0x553a16('0x3c')]),logger[_0x553a16('0x1e')](_0x35036c['uniqueid'],this[_0x553a16('0x41')][_0x35036c[_0x553a16('0x18')]]?_0x553a16('0x4c'):_0x553a16('0xb'),JSON[_0x553a16('0x2b')](this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]])),this[_0x553a16('0x41')][_0x35036c['uniqueid']]&&(this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]][_0x553a16('0x59')]>0x0&&this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]][_0x553a16('0x5f')]===_0x553a16('0x34')?this['updateStatus'](_0x35036c[_0x553a16('0x18')],!![]):this[_0x553a16('0x2d')](_0x35036c[_0x553a16('0x18')],![],this[_0x553a16('0x40')][_0x35036c['uniqueid']][_0x553a16('0x42')]?'SENDING\x20FAILED:\x20'+this[_0x553a16('0x40')][_0x35036c[_0x553a16('0x18')]]['faxstatusstring']:_0x553a16('0xa'))));},Fax[_0x382ec2('0x37')]['send']=function(_0x176d61){const _0x16cf43=this;return new Promise(function(_0x1b0900,_0x964941){const _0x4e4595=a1060_0x26bb;_0x16cf43['execOriginate'](_0x176d61,_0x16cf43[_0x4e4595('0x6b')][_0x176d61[_0x4e4595('0x62')]])[_0x4e4595('0x35')](function(_0x232b92){const _0x33dd20=_0x4e4595;ut[_0x33dd20('0x12')](_0x33dd20('0x21'),_0x232b92),_0x1b0900(ut[_0x33dd20('0x72')](_0x33dd20('0x2f')));})[_0x4e4595('0x4')](function(_0x1f5bed){const _0x22c76a=_0x4e4595;ut[_0x22c76a('0x12')](_0x22c76a('0x1b'),_0x1f5bed),updateStatus(_0x176d61),_0x964941(ut[_0x22c76a('0x72')](_0x22c76a('0x5c')));});});},Fax[_0x382ec2('0x37')][_0x382ec2('0x25')]=function(_0x1c1ea3){const _0x4d64c1=this;return new Promise(function(_0x3d4761,_0xf3081f){const _0x221500=a1060_0x26bb,_0x1d2d84=_0x4d64c1[_0x221500('0x49')](_0x4d64c1['faxAccounts'][_0x1c1ea3[_0x221500('0x62')]][_0x221500('0xe')],_0x1c1ea3);_0x1d2d84['isValid']?_0x3d4761(ut[_0x221500('0x72')](_0x221500('0x10'))):_0xf3081f(ut[_0x221500('0x72')](_0x1d2d84['message']));});};function originate(_0x4ff6bc,_0x412f00,_0x2cba30){return new Promise(function(_0x329408,_0x412122){const _0x6eceb7=a1060_0x26bb;if(_0x2cba30){const _0x6123ca=util[_0x6eceb7('0x67')](_0x6eceb7('0x63'),path['parse'](_0x4ff6bc[_0x6eceb7('0x27')])[_0x6eceb7('0x3c')],_0x4ff6bc[_0x6eceb7('0x27')]);gs[_0x6eceb7('0x54')](_0x6123ca)[_0x6eceb7('0x35')](function(){const _0x3dbbb5=_0x6eceb7;_0x4ff6bc[_0x3dbbb5('0x27')]=util['format'](_0x3dbbb5('0x29'),path['parse'](_0x4ff6bc['path'])[_0x3dbbb5('0x4d')],path['parse'](_0x4ff6bc[_0x3dbbb5('0x27')])['name']),_0x412f00[_0x3dbbb5('0x2a')]=_0x4ff6bc[_0x3dbbb5('0x27')],ut[_0x3dbbb5('0x12')](_0x3dbbb5('0x55'),''),ami['Action'](ut[_0x3dbbb5('0x16')](_0x4ff6bc,_0x412f00))[_0x3dbbb5('0x35')](function(_0x4b5ca8){_0x329408(_0x4b5ca8);})['catch'](function(_0x5c4152){_0x412122(_0x5c4152);});})[_0x6eceb7('0x4')](function(_0x29d644){_0x412122(_0x29d644);});}else ami[_0x6eceb7('0x7')](ut[_0x6eceb7('0x16')](_0x4ff6bc,_0x412f00))[_0x6eceb7('0x35')](function(_0x4b4eb1){_0x329408(_0x4b4eb1);})[_0x6eceb7('0x4')](function(_0x62960a){_0x412122(_0x62960a);});});}Fax['prototype']['execOriginate']=function(_0x5956ee,_0x209293){const _0x213b8b=this;return new Promise(function(_0x5cd3f2,_0x176579){const _0x1367e4=a1060_0x26bb,_0x56e96e=uuid['v4'](),_0x4d45ac=ut[_0x1367e4('0x1f')](_0x5956ee,_0x209293);_0x213b8b[_0x1367e4('0x41')][_0x56e96e]=new Action(_0x56e96e,_0x209293,_0x5956ee);const _0x177fbd=_0x213b8b[_0x1367e4('0x41')][_0x56e96e];path['parse'](_0x5956ee[_0x1367e4('0x27')])[_0x1367e4('0x33')]===_0x1367e4('0x2e')?originate(_0x177fbd,_0x4d45ac,!![])['then'](function(_0x8c95ba){_0x5cd3f2(_0x8c95ba);})['catch'](function(_0x5d5b56){_0x176579(_0x5d5b56);}):originate(_0x177fbd,_0x4d45ac,![])[_0x1367e4('0x35')](function(_0x4f72f8){_0x5cd3f2(_0x4f72f8);})['catch'](function(_0xee6e16){_0x176579(_0xee6e16);});});},Fax['prototype'][_0x382ec2('0x61')]=function(_0x4a9826){const _0x162707=_0x382ec2;return!_['isNil'](_0x4a9826)&&!_[_0x162707('0x5b')](_0x4a9826[_0x162707('0x3c')])&&!_[_0x162707('0x5b')](_0x4a9826[_0x162707('0x11')])&&_0x4a9826[_0x162707('0x11')]&&!_[_0x162707('0x5b')](this[_0x162707('0x2')][util[_0x162707('0x67')](_0x162707('0x5'),_0x4a9826[_0x162707('0x3c')])])&&!_['isNil'](this[_0x162707('0x2')][util[_0x162707('0x67')]('SIP/%s',_0x4a9826[_0x162707('0x3c')])][_0x162707('0x8')])&&(this[_0x162707('0x2')][util[_0x162707('0x67')]('SIP/%s',_0x4a9826[_0x162707('0x3c')])][_0x162707('0x8')]==='reachable'||this[_0x162707('0x2')][util[_0x162707('0x67')](_0x162707('0x5'),_0x4a9826[_0x162707('0x3c')])][_0x162707('0x8')]===_0x162707('0x32'));},Fax[_0x382ec2('0x37')]['checkTrunk']=function(_0x96db02,_0x4e5733){const _0x13c458=_0x382ec2;if(!this[_0x13c458('0x61')](_0x96db02))return ut[_0x13c458('0x12')](_0x13c458('0xd'),_['isNil'](_0x96db02)?'':_0x96db02[_0x13c458('0x3c')]+_0x13c458('0x53')),{'isValid':![],'message':_0x13c458('0x4a')};if(_[_0x13c458('0x5b')](_0x4e5733[_0x13c458('0x5d')]))return ut[_0x13c458('0x12')](_0x13c458('0x71'),JSON[_0x13c458('0x2b')](_0x4e5733)),{'isValid':![],'message':_0x13c458('0x60')};if(_[_0x13c458('0x5b')](_0x4e5733[_0x13c458('0x27')]))return ut['logger'](_0x13c458('0x1c'),JSON[_0x13c458('0x2b')](_0x4e5733)),{'isValid':![],'message':_0x13c458('0x4f')};return{'isValid':!![],'message':_0x13c458('0x5e')};},module[_0x382ec2('0x20')]=Fax; \ No newline at end of file +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 diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index 9ddbf98..2de76a4 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1061_0x1371=['catch','util','notify','resolve','error','inspect','../rpc/faxAccount','../../../config/logger','preview'];(function(_0x5cf903,_0x137195){const _0x2f1758=function(_0x146aa7){while(--_0x146aa7){_0x5cf903['push'](_0x5cf903['shift']());}};_0x2f1758(++_0x137195);}(a1061_0x1371,0x164));const a1061_0x2f17=function(_0x5cf903,_0x137195){_0x5cf903=_0x5cf903-0x0;let _0x2f1758=a1061_0x1371[_0x5cf903];return _0x2f1758;};const _0x2dfdfa=a1061_0x2f17;'use strict';const util=require(_0x2dfdfa('0x5')),logger=require(_0x2dfdfa('0x2'))(_0x2dfdfa('0x3')),faxAccount=require(_0x2dfdfa('0x1'));function loggerCatch(_0x146aa7){return function(_0x29eae8){const _0x70a6e6=a1061_0x2f17;logger[_0x70a6e6('0x8')](_0x146aa7,util[_0x70a6e6('0x0')](_0x29eae8,{'showHidden':![],'depth':null}));};}exports[_0x2dfdfa('0x6')]=function(_0x5c3683,_0xb43aec){const _0x435853=_0x2dfdfa;return Promise[_0x435853('0x7')]()['then'](faxAccount[_0x435853('0x6')](_0x5c3683,_0xb43aec))[_0x435853('0x4')](loggerCatch('[Notify]\x20'));}; \ No newline at end of file +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 diff --git a/server/services/ami/fax/util/gs.js b/server/services/ami/fax/util/gs.js index 8be3230..d618e8d 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1062_0x1110=['util','\x20Error\x20:','Exec\x20gs','execute','info','inspect'];(function(_0x4e5916,_0x111074){const _0x544aa0=function(_0x13cd03){while(--_0x13cd03){_0x4e5916['push'](_0x4e5916['shift']());}};_0x544aa0(++_0x111074);}(a1062_0x1110,0xbc));const a1062_0x544a=function(_0x4e5916,_0x111074){_0x4e5916=_0x4e5916-0x0;let _0x544aa0=a1062_0x1110[_0x4e5916];return _0x544aa0;};const _0x17bc2e=a1062_0x544a;'use strict';const util=require(_0x17bc2e('0x4')),logger=require('../../../../config/logger')('fax'),exec=require('child_process')['exec'];exports[_0x17bc2e('0x1')]=function(_0x13cd03){return new Promise(function(_0x4df348,_0x59c689){exec(_0x13cd03,function(_0xe4b338,_0x5ca0c4,_0x751b0){const _0x1e8baa=a1062_0x544a;logger[_0x1e8baa('0x2')](_0x1e8baa('0x0'),_0x5ca0c4),_0xe4b338&&(logger[_0x1e8baa('0x2')](_0x1e8baa('0x0'),_0x1e8baa('0x5'),util[_0x1e8baa('0x3')](_0xe4b338,{'showHidden':![],'depth':null}),_0x5ca0c4,_0x751b0),_0x59c689(_0xe4b338)),_0x4df348(_0x5ca0c4);});});}; \ No newline at end of file +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 diff --git a/server/services/ami/fax/util/util.js b/server/services/ami/fax/util/util.js index 5fb3bad..c99d73b 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1063_0xb556=['\x22%s\x22\x20<%s>','localstationid','format','uniqueid','faxdetect','fax','channel','path','t38timeout','maxrate','ecm','addVariables','logger','headerinfo','modem','variablesAction','gateway','from-sip','minrate'];(function(_0x2c17a3,_0xb55686){const _0x59dfeb=function(_0x105376){while(--_0x105376){_0x2c17a3['push'](_0x2c17a3['shift']());}};_0x59dfeb(++_0xb55686);}(a1063_0xb556,0xbe));const a1063_0x59df=function(_0x2c17a3,_0xb55686){_0x2c17a3=_0x2c17a3-0x0;let _0x59dfeb=a1063_0xb556[_0x2c17a3];return _0x59dfeb;};const _0x4063e1=a1063_0x59df;'use strict';const util=require('util'),logger=require('../../../../config/logger')(_0x4063e1('0x5'));exports['message']=function(_0x105376){return{'message':_0x105376};},exports[_0x4063e1('0xc')]=function(_0x5d4e20,_0x537f4b){logger['info'](_0x5d4e20,util['inspect'](_0x537f4b,{'showHidden':![],'depth':null}));},exports[_0x4063e1('0xb')]=function(_0x1786a8,_0x4728b9){const _0x211182=_0x4063e1,_0x49c3d9={'XMF-ECM':_0x4728b9[_0x211182('0xa')],'XMF-HEADERINFO':_0x4728b9[_0x211182('0xd')],'XMF-MINRATE':_0x4728b9[_0x211182('0x12')],'XMF-MAXRATE':_0x4728b9[_0x211182('0x9')],'XMF-MODEM':util[_0x211182('0x2')]('\x22%s\x22',_0x4728b9[_0x211182('0xe')]),'XMF-GATEWAY':_0x4728b9[_0x211182('0x10')],'XMF-FAXDETECT':_0x4728b9[_0x211182('0x4')],'XMF-T38TIMEOUT':_0x4728b9[_0x211182('0x8')],'XMF-LOCALSTATIONID':_0x4728b9[_0x211182('0x1')],'XMF-PATH':_0x1786a8[_0x211182('0x7')]};return _0x49c3d9;},exports[_0x4063e1('0xf')]=function(_0x54e6ab,_0xb69473){const _0x5bb3c9=_0x4063e1;return{'actionid':_0x54e6ab[_0x5bb3c9('0x3')],'action':'originate','channel':_0x54e6ab[_0x5bb3c9('0x6')],'Exten':'xcally-motion-fax','Context':_0x5bb3c9('0x11'),'Priority':'1','callerid':util['format'](_0x5bb3c9('0x0'),_0x54e6ab[_0x5bb3c9('0xd')]?_0x54e6ab['headerinfo']:'',_0x54e6ab['localstationid']),'variable':_0xb69473,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x54e6ab['uniqueid']};}; \ No newline at end of file +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 diff --git a/server/services/ami/index.js b/server/services/ami/index.js index b048d2d..c42722a 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1064_0x1ca8=['getDynamics365Accounts','getSalesforceAccounts','getCampaigns','initTrunks','./rpc/integrations/desk','getZendeskAccounts','initAgents','initSalesforceAccounts','getTelephones','initFreshsalesAccounts','initDeskAccounts','initCampaignHopperHistory','getDeskAccounts','./server','./rpc/trigger','getCampaignHopperHistory','./report','getVoiceCallReports','hour','./rpc/integrations/sugarcrm','initVoiceQueueHopperHistory','initFreshdeskAccounts','initZohoAccounts','initVtigerAccounts','get','./rpc/integrations/zoho','initServicenowAccounts','getZohoAccounts','getFaxAccounts','../../globals','./rpc/cmHopperHistory','./rpc/voiceQueue','./rpc/integrations/salesforce','./realtime','then','./rpc/integrations/dynamics365','getServicenowAccounts','initVoiceQueues','./rpc/template','initTelephones','getVtigerAccounts','getTriggers','getVoiceQueues','initTriggers','getVoiceQueueHopperHistory','getAgents','getVoiceQueueReports','getFreshsalesAccounts','./rpc/trunk','./rpc/voiceExtension','getVoiceExtensions','./rpc/user','getFreshdeskAccounts','./rpc/integrations/freshdesk','./rpc/voiceQueueReport','initCampaigns','./rpc/integrations/vtiger','./fax','moment','./preview','initTemplates','initZendeskAccounts','resolve','initSugarcrmAccounts','getTrunks','./rpc/integrations/freshsales'];(function(_0x4b2c9e,_0x1ca8a0){const _0x1b1eb3=function(_0x4aa63a){while(--_0x4aa63a){_0x4b2c9e['push'](_0x4b2c9e['shift']());}};_0x1b1eb3(++_0x1ca8a0);}(a1064_0x1ca8,0x6c));const a1064_0x1b1e=function(_0x4b2c9e,_0x1ca8a0){_0x4b2c9e=_0x4b2c9e-0x0;let _0x1b1eb3=a1064_0x1ca8[_0x4b2c9e];return _0x1b1eb3;};const _0x2a6f76=a1064_0x1b1e;'use strict';require(_0x2a6f76('0x35'));const moment=require(_0x2a6f76('0x10')),server=require(_0x2a6f76('0x25')),Realtime=require(_0x2a6f76('0x39')),Report=require(_0x2a6f76('0x28')),Preview=require(_0x2a6f76('0x11')),Fax=require(_0x2a6f76('0xf')),user=require(_0x2a6f76('0x9')),voiceQueue=require(_0x2a6f76('0x37')),voiceQueueReport=require(_0x2a6f76('0xc')),voiceCallReport=require('./rpc/voiceCallReport'),trunk=require(_0x2a6f76('0x6')),trigger=require(_0x2a6f76('0x26')),template=require(_0x2a6f76('0x3e')),cmHopperHistory=require(_0x2a6f76('0x36')),campaign=require('./rpc/campaign'),voiceExtension=require(_0x2a6f76('0x7')),faxAccount=require('./rpc/faxAccount'),zendesk=require('./rpc/integrations/zendesk'),salesforce=require(_0x2a6f76('0x38')),sugarcrm=require(_0x2a6f76('0x2b')),freshdesk=require(_0x2a6f76('0xb')),desk=require(_0x2a6f76('0x1c')),zoho=require(_0x2a6f76('0x31')),vtiger=require(_0x2a6f76('0xe')),freshsales=require(_0x2a6f76('0x17')),servicenow=require('./rpc/integrations/servicenow'),dynamics365=require(_0x2a6f76('0x3b')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x4ac1c3=_0x2a6f76;moment()[_0x4ac1c3('0x30')](_0x4ac1c3('0x2a'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x4ac1c3('0x30')]('hour')===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x5e78c9=_0x2a6f76;return ifMidnight(),Promise[_0x5e78c9('0x14')]()[_0x5e78c9('0x3a')](user[_0x5e78c9('0x3')]())['then'](realtime[_0x5e78c9('0x1e')]())['then'](user[_0x5e78c9('0x20')]())['then'](realtime[_0x5e78c9('0x3f')]())[_0x5e78c9('0x3a')](trunk[_0x5e78c9('0x16')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x1b')]())[_0x5e78c9('0x3a')](voiceQueue[_0x5e78c9('0x0')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x3d')]())[_0x5e78c9('0x3a')](trigger[_0x5e78c9('0x41')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x1')]())['then'](template['getTemplates']())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x12')]())[_0x5e78c9('0x3a')](zendesk[_0x5e78c9('0x1d')]())['then'](realtime[_0x5e78c9('0x13')]())[_0x5e78c9('0x3a')](salesforce[_0x5e78c9('0x19')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x1f')]())['then'](sugarcrm['getSugarcrmAccounts']())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x15')]())['then'](freshdesk[_0x5e78c9('0xa')]())['then'](realtime[_0x5e78c9('0x2d')]())[_0x5e78c9('0x3a')](desk[_0x5e78c9('0x24')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x22')]())[_0x5e78c9('0x3a')](zoho[_0x5e78c9('0x33')]())['then'](realtime[_0x5e78c9('0x2e')]())[_0x5e78c9('0x3a')](vtiger[_0x5e78c9('0x40')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x2f')]())[_0x5e78c9('0x3a')](freshsales[_0x5e78c9('0x5')]())['then'](realtime[_0x5e78c9('0x21')]())[_0x5e78c9('0x3a')](servicenow[_0x5e78c9('0x3c')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0x32')]())[_0x5e78c9('0x3a')](dynamics365[_0x5e78c9('0x18')]())['then'](realtime['initDynamics365Accounts']())[_0x5e78c9('0x3a')](campaign[_0x5e78c9('0x1a')]())[_0x5e78c9('0x3a')](realtime[_0x5e78c9('0xd')]())[_0x5e78c9('0x3a')](voiceExtension[_0x5e78c9('0x8')]())['then'](realtime['initVoiceExtensions']())['then'](faxAccount[_0x5e78c9('0x34')]())[_0x5e78c9('0x3a')](realtime['initFaxAccounts']())[_0x5e78c9('0x3a')](function(){return realtime;});}function initParams(){const _0x4d1967=_0x2a6f76;return Promise[_0x4d1967('0x14')]()[_0x4d1967('0x3a')](voiceQueueReport[_0x4d1967('0x4')]())['then'](realtime['initVoiceQueueReports']())[_0x4d1967('0x3a')](cmHopperHistory[_0x4d1967('0x2')]())[_0x4d1967('0x3a')](realtime[_0x4d1967('0x2c')]())[_0x4d1967('0x3a')](cmHopperHistory[_0x4d1967('0x27')]())[_0x4d1967('0x3a')](realtime[_0x4d1967('0x23')]())[_0x4d1967('0x3a')](voiceCallReport[_0x4d1967('0x29')]())[_0x4d1967('0x3a')](realtime['initVoiceCallReports']())[_0x4d1967('0x3a')](function(){})['catch'](function(_0x4aa63a){console['log'](_0x4aa63a);});}function main(){const _0x11f520=_0x2a6f76;return server['listen'](realtime,preview,fax)[_0x11f520('0x3a')](function(){return initRealtime();})[_0x11f520('0x3a')](function(){return initParams();})[_0x11f520('0x3a')](function(){report['sync'](),setInterval(initRealtime,0x1388);})['catch'](function(_0x53d3ce){console['log'](_0x53d3ce);});}main(); \ No newline at end of file +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 diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index 07afe8a..ec92573 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1065_0x588d=['lodash','format','talking','stringify','name','online','md5','address','voiceStatusTime','accountcode','../../../rediscache','email','fullname','toNumber','phone','voiceStatusCallerIdNumber','moment','voiceStatus','user:%s','statePause','util','onhold','state','updateStatusRealtime','prototype','user:save','local','interface','stateTime','unknown'];(function(_0x635730,_0x588d10){const _0x15f6ad=function(_0x36ef02){while(--_0x36ef02){_0x635730['push'](_0x635730['shift']());}};_0x15f6ad(++_0x588d10);}(a1065_0x588d,0xe4));const a1065_0x15f6=function(_0x635730,_0x588d10){_0x635730=_0x635730-0x0;let _0x15f6ad=a1065_0x588d[_0x635730];return _0x15f6ad;};const _0x2521e8=a1065_0x15f6;'use strict';const _=require(_0x2521e8('0xc')),util=require(_0x2521e8('0x2')),moment=require(_0x2521e8('0x1c')),md5=require(_0x2521e8('0x12')),{getSocket}=require(_0x2521e8('0x16')),io=getSocket();function Agent(_0x36ef02){const _0x10565b=_0x2521e8;this['id']=_0x36ef02['id']||0x0,this[_0x10565b('0x10')]=_0x36ef02[_0x10565b('0x10')]||'',this['email']=_0x36ef02[_0x10565b('0x17')]||'',this['accountcode']=_0x36ef02[_0x10565b('0x15')]||'',this[_0x10565b('0x18')]=_0x36ef02[_0x10565b('0x18')]||'',this['state']=_0x10565b('0xb'),this[_0x10565b('0xa')]=0x0,this['status']=_0x10565b('0xb'),this[_0x10565b('0x13')]='',this[_0x10565b('0x1a')]='',this['mobile']='',this[_0x10565b('0x9')]='',this[_0x10565b('0x11')]=_0x36ef02['online']||![],this[_0x10565b('0x1d')]=_0x10565b('0xb'),this[_0x10565b('0x14')]=0x0,this[_0x10565b('0x1b')]='',this['voiceStatusQueue']='',this['onhold']=![],this[_0x10565b('0x8')]=![],this[_0x10565b('0x12')]='';}Agent[_0x2521e8('0x6')][_0x2521e8('0x5')]=function(_0x5e492f){const _0x4f355f=_0x2521e8;let _0x3ff5ee;if(_0x5e492f&&_0x5e492f[_0x4f355f('0x4')]){_0x3ff5ee=_0x5e492f[_0x4f355f('0x4')]['toLowerCase']();switch(_0x3ff5ee){case'not_inuse':_0x3ff5ee='idle';break;case'inuse':_0x3ff5ee=_0x4f355f('0xe');break;}}(_0x3ff5ee&&this['voiceStatus']!==_0x3ff5ee||_0x5e492f[_0x4f355f('0x1')])&&(this[_0x4f355f('0x14')]=_[_0x4f355f('0x19')](moment()[_0x4f355f('0xd')]('x')));_0x3ff5ee&&(this['voiceStatus']=_0x3ff5ee);const _0xc3a670={'id':this['id'],'name':this['name'],'email':this[_0x4f355f('0x17')],'accountcode':this[_0x4f355f('0x15')],'fullname':this[_0x4f355f('0x18')],'state':this[_0x4f355f('0x4')],'stateTime':this[_0x4f355f('0xa')],'status':this['status'],'address':this['address'],'online':this[_0x4f355f('0x11')],'voiceStatus':this[_0x4f355f('0x1d')],'voiceStatusTime':this[_0x4f355f('0x14')],'voiceStatusCallerIdNumber':this[_0x4f355f('0x1b')],'voiceStatusQueue':this['voiceStatusQueue'],'interface':this[_0x4f355f('0x9')],'onhold':this[_0x4f355f('0x3')]},_0x19daab=md5(JSON[_0x4f355f('0xf')](_0xc3a670));this[_0x4f355f('0x12')]!==_0x19daab&&(this[_0x4f355f('0x12')]=_0x19daab,io['to'](util[_0x4f355f('0xd')](_0x4f355f('0x0'),_0xc3a670[_0x4f355f('0x10')]))['emit'](_0x4f355f('0x7'),_0xc3a670));},module['exports']=Agent; \ No newline at end of file +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 diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index e34dd5f..68ce9d1 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1066_0x4a09=['dialGlobalMaxRetry','dialNoSuchNumberRetryFrequency','dialOriginateCallerIdName','active','dialNoAnswerMaxRetry','dialPrefix','dialAMDGreeting','dialTimezone','dialCongestionMaxRetry','dialOrderByScheduledAt','campaign','type','dialAMDAfterGreetingSilence','temp','dialNoAnswerRetryFrequency','dialGlobalInterval','dialAbandonedRetryFrequency','dialNoSuchNumberMaxRetry','dialAgentRejectMaxRetry','dialAMDMaximumWordLength','dialOriginateTimeout','dialAMDTotalAnalysisTime','dialAbandonedMaxRetry','dialCutDigit','dialOriginateCallerIdNumber','dialAMDActive','dialAMDMaximumNumberOfWords','dialRandomLastDigitCallerIdNumber','SquareProject','dialBusyRetryFrequency','TrunkBackup','dialCongestionRetryFrequency','dialBusyMaxRetry','sendMessageOneNotActive','ivrAnswerCallsDay','dialDropRetryFrequency','Trunk','message','limitCalls','dialQueueProject','dialAMDSilenceThreshold','dialAgentRejectRetryFrequency','dialAMDMinWordLength','name','exports','dialDropMaxRetry'];(function(_0x566f7b,_0x4a09fb){var _0x41fdd8=function(_0x36c8f2){while(--_0x36c8f2){_0x566f7b['push'](_0x566f7b['shift']());}};_0x41fdd8(++_0x4a09fb);}(a1066_0x4a09,0x1bb));var a1066_0x41fd=function(_0x566f7b,_0x4a09fb){_0x566f7b=_0x566f7b-0x0;var _0x41fdd8=a1066_0x4a09[_0x566f7b];return _0x41fdd8;};var _0x25b888=a1066_0x41fd;'use strict';function Campaign(_0x36c8f2){var _0x2d3c6c=a1066_0x41fd;this['id']=_0x36c8f2['id']||0x0,this['name']=_0x36c8f2[_0x2d3c6c('0xe')]||'',this['type']=_0x36c8f2[_0x2d3c6c('0x1c')]||_0x2d3c6c('0x1b'),this['originated']=0x0,this[_0x2d3c6c('0x1e')]=0x0,this[_0x2d3c6c('0x5')]=0x0,this['ivrTotalCallsDays']=0x0,this[_0x2d3c6c('0x8')]='',this[_0x2d3c6c('0x4')]=!![],this[_0x2d3c6c('0x14')]=_0x36c8f2[_0x2d3c6c('0x14')],this['limitCalls']=_0x36c8f2[_0x2d3c6c('0x9')],this['dialTimezone']=_0x36c8f2[_0x2d3c6c('0x18')]||null,this[_0x2d3c6c('0x20')]=_0x36c8f2[_0x2d3c6c('0x20')]?_0x36c8f2[_0x2d3c6c('0x20')]:null,this[_0x2d3c6c('0x13')]=_0x36c8f2[_0x2d3c6c('0x13')],this['dialOriginateCallerIdNumber']=_0x36c8f2[_0x2d3c6c('0x29')],this['dialOriginateTimeout']=_0x36c8f2[_0x2d3c6c('0x25')]||0x1e,this[_0x2d3c6c('0x19')]=_0x36c8f2[_0x2d3c6c('0x19')],this[_0x2d3c6c('0x2')]=_0x36c8f2[_0x2d3c6c('0x2')],this[_0x2d3c6c('0x3')]=_0x36c8f2[_0x2d3c6c('0x3')],this['dialBusyRetryFrequency']=_0x36c8f2[_0x2d3c6c('0x0')],this[_0x2d3c6c('0x15')]=_0x36c8f2[_0x2d3c6c('0x15')],this['dialNoAnswerRetryFrequency']=_0x36c8f2[_0x2d3c6c('0x1f')],this[_0x2d3c6c('0x11')]=_0x36c8f2[_0x2d3c6c('0x11')],this[_0x2d3c6c('0x22')]=_0x36c8f2['dialNoSuchNumberMaxRetry']||0x3,this[_0x2d3c6c('0x12')]=_0x36c8f2[_0x2d3c6c('0x12')]||0x96,this[_0x2d3c6c('0x10')]=_0x36c8f2[_0x2d3c6c('0x10')]||0x3,this[_0x2d3c6c('0x6')]=_0x36c8f2['dialDropRetryFrequency']||0x96,this['dialAbandonedMaxRetry']=_0x36c8f2[_0x2d3c6c('0x27')]||0x3,this[_0x2d3c6c('0x21')]=_0x36c8f2[_0x2d3c6c('0x21')]||0x96,this['dialMachineMaxRetry']=_0x36c8f2['dialMachineMaxRetry']||0x3,this['dialMachineRetryFrequency']=_0x36c8f2['dialMachineRetryFrequency']||0x96,this[_0x2d3c6c('0x23')]=_0x36c8f2[_0x2d3c6c('0x23')]||0x3,this['dialAgentRejectRetryFrequency']=_0x36c8f2[_0x2d3c6c('0xc')]||0x96,this[_0x2d3c6c('0x1a')]=_0x36c8f2['dialOrderByScheduledAt']||'DESC',this[_0x2d3c6c('0x16')]=_0x36c8f2[_0x2d3c6c('0x16')]||undefined,this[_0x2d3c6c('0x2c')]=_0x36c8f2[_0x2d3c6c('0x2c')]||undefined,this[_0x2d3c6c('0x28')]=_0x36c8f2['dialCutDigit']||undefined,this['TrunkBackup']=_0x36c8f2[_0x2d3c6c('0x1')]?_0x36c8f2[_0x2d3c6c('0x1')]:undefined,this[_0x2d3c6c('0x7')]=_0x36c8f2['Trunk']?_0x36c8f2['Trunk']:undefined,this['Interval']=_0x36c8f2['Interval']?_0x36c8f2['Interval']:undefined,this[_0x2d3c6c('0x2d')]=_0x36c8f2[_0x2d3c6c('0x2d')]?_0x36c8f2[_0x2d3c6c('0x2d')]:undefined,this[_0x2d3c6c('0xa')]=_0x36c8f2[_0x2d3c6c('0x2d')]?_0x36c8f2[_0x2d3c6c('0x2d')]['name']:undefined,this[_0x2d3c6c('0x2a')]=_0x36c8f2[_0x2d3c6c('0x2a')]||![],this['dialAMDInitialSilence']=_0x36c8f2['dialAMDInitialSilence'],this[_0x2d3c6c('0x17')]=_0x36c8f2['dialAMDGreeting'],this['dialAMDAfterGreetingSilence']=_0x36c8f2[_0x2d3c6c('0x1d')],this[_0x2d3c6c('0x26')]=_0x36c8f2[_0x2d3c6c('0x26')],this['dialAMDMinWordLength']=_0x36c8f2[_0x2d3c6c('0xd')],this['dialAMDBetweenWordsSilence']=_0x36c8f2['dialAMDBetweenWordsSilence'],this[_0x2d3c6c('0x2b')]=_0x36c8f2['dialAMDMaximumNumberOfWords'],this[_0x2d3c6c('0xb')]=_0x36c8f2[_0x2d3c6c('0xb')],this[_0x2d3c6c('0x24')]=_0x36c8f2['dialAMDMaximumWordLength'];}module[_0x25b888('0xf')]=Campaign; \ No newline at end of file +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 diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index 626489e..6460b18 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1067_0x1ef9=['endtime','monitorFilename','answered','accountcode','lastdata','channel','answertime','monitor','transferconnectedlinenum','exten','starttime','holdtime','destinationchannel','type','connectedlinenum','connectedlinename','calleridnum','tag','exports','linkedid','abandoned','transfercalleridnum','billableseconds'];(function(_0x21a388,_0x1ef974){var _0x597a20=function(_0xeb536e){while(--_0xeb536e){_0x21a388['push'](_0x21a388['shift']());}};_0x597a20(++_0x1ef974);}(a1067_0x1ef9,0xe6));var a1067_0x597a=function(_0x21a388,_0x1ef974){_0x21a388=_0x21a388-0x0;var _0x597a20=a1067_0x1ef9[_0x21a388];return _0x597a20;};var _0x4bd3c5=a1067_0x597a;'use strict';function Channel(){var _0x133cf5=a1067_0x597a;this[_0x133cf5('0xa')]=null,this[_0x133cf5('0x5')]='',this[_0x133cf5('0xc')]='',this[_0x133cf5('0x10')]=0x0,this['calleridname']='',this[_0x133cf5('0xe')]=undefined,this[_0x133cf5('0xf')]=undefined,this[_0x133cf5('0x3')]=0x0,this['context']='',this['uniqueid']=0x0,this[_0x133cf5('0x13')]=0x0,this[_0x133cf5('0x9')]=0x0,this[_0x133cf5('0x2')]=![],this[_0x133cf5('0x6')]=null,this[_0x133cf5('0x0')]=null,this['unmanaged']=![],this[_0x133cf5('0x14')]=![],this['lastapplication']='',this[_0x133cf5('0x4')]='',this['duration']=0x0,this[_0x133cf5('0x16')]=0x0,this[_0x133cf5('0xb')]=0x0,this[_0x133cf5('0xd')]=null,this[_0x133cf5('0x11')]=null,this['disposition']=null,this[_0x133cf5('0x7')]=![],this[_0x133cf5('0x1')]=null,this['queue']=null,this['monitors']=[],this[_0x133cf5('0x15')]=undefined,this[_0x133cf5('0x8')]=undefined,this['mohtime']=0x0;}module[_0x4bd3c5('0x12')]=Channel; \ No newline at end of file +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 diff --git a/server/services/ami/model/deskAccount.js b/server/services/ami/model/deskAccount.js index 9d63095..226ce4f 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1068_0x1e40=['username','exports','token','consumerSecret','tokenSecret','name','Configurations','serverUrl','type','password','authType'];(function(_0x2e381d,_0x1e4098){var _0x1e5af5=function(_0x17f96f){while(--_0x17f96f){_0x2e381d['push'](_0x2e381d['shift']());}};_0x1e5af5(++_0x1e4098);}(a1068_0x1e40,0x87));var a1068_0x1e5a=function(_0x2e381d,_0x1e4098){_0x2e381d=_0x2e381d-0x0;var _0x1e5af5=a1068_0x1e40[_0x2e381d];return _0x1e5af5;};var _0x50858b=a1068_0x1e5a;'use strict';function DeskAccount(_0x17f96f){var _0x2b0271=a1068_0x1e5a;this['id']=_0x17f96f['id']||0x0,this[_0x2b0271('0x2')]=_0x17f96f[_0x2b0271('0x2')]||'',this[_0x2b0271('0x8')]=_0x17f96f[_0x2b0271('0x8')]||'',this['remoteUri']=_0x17f96f['remoteUri']||'',this[_0x2b0271('0x7')]=_0x17f96f[_0x2b0271('0x7')]||'',this[_0x2b0271('0x6')]=_0x17f96f['password']||'',this['consumerKey']=_0x17f96f['consumerKey']||'',this['consumerSecret']=_0x17f96f[_0x2b0271('0x0')]||'',this[_0x2b0271('0xa')]=_0x17f96f['token']||'',this[_0x2b0271('0x1')]=_0x17f96f[_0x2b0271('0x1')]||'',this[_0x2b0271('0x5')]=_0x17f96f[_0x2b0271('0x5')]||'',this[_0x2b0271('0x4')]=_0x17f96f[_0x2b0271('0x4')]||'',this[_0x2b0271('0x3')]=_0x17f96f[_0x2b0271('0x3')]||{};}module[_0x50858b('0x9')]=DeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/dynamics365Account.js b/server/services/ami/model/dynamics365Account.js index 3dc08a2..b1408a2 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1069_0x251e=['remoteUri','password','exports','username','serverUrl','name','tenantId','Configurations','clientSecret','clientId'];(function(_0x4ae398,_0x251e07){var _0x22635b=function(_0x45491a){while(--_0x45491a){_0x4ae398['push'](_0x4ae398['shift']());}};_0x22635b(++_0x251e07);}(a1069_0x251e,0x1c8));var a1069_0x2263=function(_0x4ae398,_0x251e07){_0x4ae398=_0x4ae398-0x0;var _0x22635b=a1069_0x251e[_0x4ae398];return _0x22635b;};var _0x14ecfd=a1069_0x2263;'use strict';function Dynamics365Account(_0x45491a){var _0x182a3a=a1069_0x2263;this['id']=_0x45491a['id']||0x0,this[_0x182a3a('0x9')]=_0x45491a[_0x182a3a('0x9')]||'',this[_0x182a3a('0x7')]=_0x45491a[_0x182a3a('0x7')]||'',this[_0x182a3a('0x5')]=_0x45491a[_0x182a3a('0x5')]||'',this[_0x182a3a('0x4')]=_0x45491a['remoteUri']||'',this[_0x182a3a('0x0')]=_0x45491a[_0x182a3a('0x0')]||'',this[_0x182a3a('0x3')]=_0x45491a[_0x182a3a('0x3')]||'',this[_0x182a3a('0x2')]=_0x45491a[_0x182a3a('0x2')]||{},this['serverUrl']=_0x45491a[_0x182a3a('0x8')]||'',this[_0x182a3a('0x1')]=_0x45491a[_0x182a3a('0x1')]||{};}module[_0x14ecfd('0x6')]=Dynamics365Account; \ No newline at end of file +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 diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index 09fdc64..7b372e4 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1070_0x40d3=['gateway','ListId','key','t38timeout','modem','SIP','faxdetect','name','description','maxrate','tech','minrate','Trunk','exports','headerinfo','localstationid','ecm'];(function(_0x5d72ed,_0x40d3ec){var _0x23688a=function(_0x3934d8){while(--_0x3934d8){_0x5d72ed['push'](_0x5d72ed['shift']());}};_0x23688a(++_0x40d3ec);}(a1070_0x40d3,0x153));var a1070_0x2368=function(_0x5d72ed,_0x40d3ec){_0x5d72ed=_0x5d72ed-0x0;var _0x23688a=a1070_0x40d3[_0x5d72ed];return _0x23688a;};var _0x97db46=a1070_0x2368;'use strict';function FaxAccount(_0x3934d8){var _0x499829=a1070_0x2368;this['id']=_0x3934d8['id']||0x0,this[_0x499829('0x8')]=_0x3934d8[_0x499829('0x8')]||'',this[_0x499829('0x9')]=_0x3934d8[_0x499829('0x9')],this[_0x499829('0x0')]=_0x3934d8[_0x499829('0x0')],this[_0x499829('0xf')]=_0x3934d8[_0x499829('0xf')],this[_0x499829('0x10')]=_0x3934d8[_0x499829('0x10')],this[_0x499829('0xc')]=_0x3934d8['minrate']||0x960,this[_0x499829('0xa')]=_0x3934d8['maxrate']||0x3840,this['modem']=_0x3934d8[_0x499829('0x5')]||'v17,v27,v29',this[_0x499829('0x1')]=_0x3934d8['gateway']||'no',this[_0x499829('0x7')]=_0x3934d8[_0x499829('0x7')]||'no',this[_0x499829('0x4')]=_0x3934d8[_0x499829('0x4')]||0x1388,this[_0x499829('0xb')]=_0x3934d8[_0x499829('0xb')]||_0x499829('0x6'),this[_0x499829('0xd')]=_0x3934d8['Trunk']?_0x3934d8[_0x499829('0xd')]:undefined,this[_0x499829('0x2')]=_0x3934d8[_0x499829('0x2')],this[_0x499829('0x3')]=_0x3934d8[_0x499829('0x3')];}module[_0x97db46('0xe')]=FaxAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index 5d0193b..2fe4811 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1071_0x5808=['Configurations','username','apiKey','remoteUri','name','token','exports'];(function(_0xf8f181,_0x580873){var _0x5b9eaf=function(_0x37d307){while(--_0x37d307){_0xf8f181['push'](_0xf8f181['shift']());}};_0x5b9eaf(++_0x580873);}(a1071_0x5808,0x122));var a1071_0x5b9e=function(_0xf8f181,_0x580873){_0xf8f181=_0xf8f181-0x0;var _0x5b9eaf=a1071_0x5808[_0xf8f181];return _0x5b9eaf;};var _0x200186=a1071_0x5b9e;'use strict';function FreshdeskAccount(_0x37d307){var _0x58cd88=a1071_0x5b9e;this['id']=_0x37d307['id']||0x0,this['name']=_0x37d307[_0x58cd88('0x1')]||'',this[_0x58cd88('0x5')]=_0x37d307[_0x58cd88('0x5')]||'',this[_0x58cd88('0x6')]=_0x37d307[_0x58cd88('0x2')]||'',this['remoteUri']=_0x37d307[_0x58cd88('0x0')]||'',this['serverUrl']=_0x37d307['serverUrl']||'',this[_0x58cd88('0x4')]=_0x37d307[_0x58cd88('0x4')]||{};}module[_0x200186('0x3')]=FreshdeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index 9c52c6c..f6383b0 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1072_0x175b=['name','Configurations','exports'];(function(_0x3fc6b2,_0x175b12){var _0x132002=function(_0x5bd6d5){while(--_0x5bd6d5){_0x3fc6b2['push'](_0x3fc6b2['shift']());}};_0x132002(++_0x175b12);}(a1072_0x175b,0x69));var a1072_0x1320=function(_0x3fc6b2,_0x175b12){_0x3fc6b2=_0x3fc6b2-0x0;var _0x132002=a1072_0x175b[_0x3fc6b2];return _0x132002;};var _0x56f2cb=a1072_0x1320;'use strict';function FreshsalesAccount(_0x5bd6d5){var _0x2df4fd=a1072_0x1320;this['id']=_0x5bd6d5['id']||0x0,this[_0x2df4fd('0x0')]=_0x5bd6d5[_0x2df4fd('0x0')]||'',this['username']=_0x5bd6d5['username']||'',this['apiKey']=_0x5bd6d5['token']||'',this['remoteUri']=_0x5bd6d5['remoteUri']||'',this['serverUrl']=_0x5bd6d5['serverUrl']||'',this['Configurations']=_0x5bd6d5[_0x2df4fd('0x1')]||{};}module[_0x56f2cb('0x2')]=FreshsalesAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index 56d4046..e3ed905 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1073_0x32fe=['exten','queuecallercompleteAt','channel','queuecallerexitAt','originalposition','queuecallerjoinAt','uniqueid','priority','queuecallerleaveAt','queuecallercomplete','queue','queuecallerabandonAt','holdtime','inbound','assigned','queuecallerabandon','count','mohtime','calleridnum'];(function(_0x208338,_0x32fe67){var _0x2312dd=function(_0x4c29c9){while(--_0x4c29c9){_0x208338['push'](_0x208338['shift']());}};_0x2312dd(++_0x32fe67);}(a1073_0x32fe,0xfa));var a1073_0x2312=function(_0x208338,_0x32fe67){_0x208338=_0x208338-0x0;var _0x2312dd=a1073_0x32fe[_0x208338];return _0x2312dd;};'use strict';function QueueReport(){var _0x290c8b=a1073_0x2312;this['type']=_0x290c8b('0xa'),this[_0x290c8b('0x3')]='',this[_0x290c8b('0xf')]='',this['calleridname']='',this[_0x290c8b('0x7')]='',this[_0x290c8b('0x2')]=null,this[_0x290c8b('0x5')]=null,this['position']=0x1,this[_0x290c8b('0xd')]=0x1,this[_0x290c8b('0xc')]=![],this[_0x290c8b('0x8')]=null,this[_0x290c8b('0x6')]=![],this[_0x290c8b('0x11')]=null,this['queuecallerexit']=![],this[_0x290c8b('0x0')]=null,this[_0x290c8b('0x1')]=0x1,this[_0x290c8b('0x12')]='',this['connectedlinenum']='',this['connectedlinename']='',this['accountcode']='',this['context']='',this[_0x290c8b('0x10')]='',this[_0x290c8b('0x4')]='',this[_0x290c8b('0x9')]=0x0,this[_0x290c8b('0xb')]=![],this['lastAssignedTo']='',this[_0x290c8b('0xe')]=0x0,this['variables']={};}module['exports']=QueueReport; \ No newline at end of file +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 diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 953b9e6..8dc518e 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1074_0x5ddf=['password','type','serverUrl','clientId','name','remoteUri','exports','integrationTab','securityToken','clientSecret','Configurations'];(function(_0x4c586d,_0x5ddf1d){var _0x104a1b=function(_0x57ee95){while(--_0x57ee95){_0x4c586d['push'](_0x4c586d['shift']());}};_0x104a1b(++_0x5ddf1d);}(a1074_0x5ddf,0x1e8));var a1074_0x104a=function(_0x4c586d,_0x5ddf1d){_0x4c586d=_0x4c586d-0x0;var _0x104a1b=a1074_0x5ddf[_0x4c586d];return _0x104a1b;};var _0x37b8c0=a1074_0x104a;'use strict';function SalesforceAccount(_0x57ee95){var _0x122cfc=a1074_0x104a;this['id']=_0x57ee95['id']||0x0,this[_0x122cfc('0x0')]=_0x57ee95[_0x122cfc('0x0')]||'',this['username']=_0x57ee95['username']||'',this['remoteUri']=_0x57ee95[_0x122cfc('0x1')]||'',this[_0x122cfc('0x7')]=_0x57ee95[_0x122cfc('0x7')]||'',this[_0x122cfc('0xa')]=_0x57ee95[_0x122cfc('0xa')]||'',this[_0x122cfc('0x5')]=_0x57ee95[_0x122cfc('0x5')]||'',this[_0x122cfc('0x4')]=_0x57ee95[_0x122cfc('0x4')]||'',this['type']=_0x57ee95[_0x122cfc('0x8')]||_0x122cfc('0x3'),this[_0x122cfc('0x9')]=_0x57ee95['serverUrl']||'',this['Configurations']=_0x57ee95[_0x122cfc('0x6')]||{};}module[_0x37b8c0('0x2')]=SalesforceAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index 6b4b1a9..81e694f 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1075_0x3553=['remoteUri','name','username','Configurations','password','serverUrl'];(function(_0x5ba2f6,_0x3553e1){var _0x39af44=function(_0x6fb5e6){while(--_0x6fb5e6){_0x5ba2f6['push'](_0x5ba2f6['shift']());}};_0x39af44(++_0x3553e1);}(a1075_0x3553,0x182));var a1075_0x39af=function(_0x5ba2f6,_0x3553e1){_0x5ba2f6=_0x5ba2f6-0x0;var _0x39af44=a1075_0x3553[_0x5ba2f6];return _0x39af44;};'use strict';function ServicenowAccount(_0x6fb5e6){var _0x52fa50=a1075_0x39af;this['id']=_0x6fb5e6['id']||0x0,this[_0x52fa50('0x5')]=_0x6fb5e6[_0x52fa50('0x5')]||'',this[_0x52fa50('0x0')]=_0x6fb5e6['username']||'',this[_0x52fa50('0x2')]=_0x6fb5e6[_0x52fa50('0x2')]||'',this[_0x52fa50('0x4')]=_0x6fb5e6[_0x52fa50('0x4')]||'',this[_0x52fa50('0x3')]=_0x6fb5e6['serverUrl']||'',this[_0x52fa50('0x1')]=_0x6fb5e6[_0x52fa50('0x1')]||{};}module['exports']=ServicenowAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index 488bd99..a64b290 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1076_0x365b=['exports','remoteUri','Configurations','password','name','username','serverUrl'];(function(_0x5286bf,_0x365bc5){var _0x3c7b6e=function(_0x206d76){while(--_0x206d76){_0x5286bf['push'](_0x5286bf['shift']());}};_0x3c7b6e(++_0x365bc5);}(a1076_0x365b,0x152));var a1076_0x3c7b=function(_0x5286bf,_0x365bc5){_0x5286bf=_0x5286bf-0x0;var _0x3c7b6e=a1076_0x365b[_0x5286bf];return _0x3c7b6e;};var _0x3e0aa8=a1076_0x3c7b;'use strict';function SugarcrmAccount(_0x206d76){var _0x5b34d2=a1076_0x3c7b;this['id']=_0x206d76['id']||0x0,this[_0x5b34d2('0x2')]=_0x206d76['name']||'',this['username']=_0x206d76[_0x5b34d2('0x3')]||'',this[_0x5b34d2('0x1')]=_0x206d76[_0x5b34d2('0x1')]||'',this[_0x5b34d2('0x6')]=_0x206d76['remoteUri']||'',this[_0x5b34d2('0x4')]=_0x206d76[_0x5b34d2('0x4')]||'',this[_0x5b34d2('0x0')]=_0x206d76[_0x5b34d2('0x0')]||{};}module[_0x3e0aa8('0x5')]=SugarcrmAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index 9233773..e2975d9 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1077_0x4feb=['stateTime','unknown','status','name','state','address','accountcode'];(function(_0x47bbe8,_0x4feb33){var _0x21bb0a=function(_0xddb8da){while(--_0xddb8da){_0x47bbe8['push'](_0x47bbe8['shift']());}};_0x21bb0a(++_0x4feb33);}(a1077_0x4feb,0xc0));var a1077_0x21bb=function(_0x47bbe8,_0x4feb33){_0x47bbe8=_0x47bbe8-0x0;var _0x21bb0a=a1077_0x4feb[_0x47bbe8];return _0x21bb0a;};'use strict';function Telephone(_0xddb8da){var _0x115636=a1077_0x21bb;this['id']=_0xddb8da['id']||0x0,this['name']=_0xddb8da[_0x115636('0x0')]||'',this[_0x115636('0x3')]=_0xddb8da[_0x115636('0x3')]||'',this[_0x115636('0x1')]=_0x115636('0x5'),this[_0x115636('0x4')]=0x0,this[_0x115636('0x6')]=_0x115636('0x5'),this[_0x115636('0x2')]='';}module['exports']=Telephone; \ No newline at end of file +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 diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index befa613..2ae2339 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1078_0x16cb=['name','html'];(function(_0x485598,_0x16cb79){var _0x415a3b=function(_0x17df11){while(--_0x17df11){_0x485598['push'](_0x485598['shift']());}};_0x415a3b(++_0x16cb79);}(a1078_0x16cb,0x194));var a1078_0x415a=function(_0x485598,_0x16cb79){_0x485598=_0x485598-0x0;var _0x415a3b=a1078_0x16cb[_0x485598];return _0x415a3b;};'use strict';function template(_0x17df11){var _0x517303=a1078_0x415a;this['id']=_0x17df11['id']||0x0,this[_0x517303('0x0')]=_0x17df11[_0x517303('0x0')]||'',this[_0x517303('0x1')]=_0x17df11['html']||'';}module['exports']=template; \ No newline at end of file +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 diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index 60249c4..32af838 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1079_0x512a=['exports','AllConditions','name','status','AnyConditions','channel','Actions'];(function(_0x2595f0,_0x512a9e){var _0x3afeec=function(_0x397bb3){while(--_0x397bb3){_0x2595f0['push'](_0x2595f0['shift']());}};_0x3afeec(++_0x512a9e);}(a1079_0x512a,0xe8));var a1079_0x3afe=function(_0x2595f0,_0x512a9e){_0x2595f0=_0x2595f0-0x0;var _0x3afeec=a1079_0x512a[_0x2595f0];return _0x3afeec;};var _0x3fcd05=a1079_0x3afe;'use strict';function Trigger(_0x397bb3){var _0x2b9901=a1079_0x3afe;this['id']=_0x397bb3['id']||0x0,this['name']=_0x397bb3[_0x2b9901('0x1')]||'',this[_0x2b9901('0x4')]=_0x397bb3['channel']||'voice',this[_0x2b9901('0x2')]=_0x397bb3[_0x2b9901('0x2')]||![],this[_0x2b9901('0x0')]=_0x397bb3['AllConditions']||[],this[_0x2b9901('0x3')]=_0x397bb3[_0x2b9901('0x3')]||[],this[_0x2b9901('0x5')]=_0x397bb3[_0x2b9901('0x5')]||[];}module[_0x3fcd05('0x6')]=Trigger; \ No newline at end of file +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 diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index ac71007..0d9279c 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1080_0xfd43=['exports','status','unknown','domain','registrationtime','active','domainport','stateTime','stateRegistry','split','indexOf','port','registry'];(function(_0x29963f,_0xfd4390){var _0x2440c2=function(_0x3440a8){while(--_0x3440a8){_0x29963f['push'](_0x29963f['shift']());}};_0x2440c2(++_0xfd4390);}(a1080_0xfd43,0x11f));var a1080_0x2440=function(_0x29963f,_0xfd4390){_0x29963f=_0x29963f-0x0;var _0x2440c2=a1080_0xfd43[_0x29963f];return _0x2440c2;};var _0x1dba65=a1080_0x2440;'use strict';function Trunk(_0x3440a8){var _0x55639f=a1080_0x2440;this['id']=_0x3440a8['id']||0x0,this[_0x55639f('0x4')]=_0x3440a8['active']||![],this['name']=_0x3440a8['name']||'',this['state']=_0x55639f('0x1'),this[_0x55639f('0x6')]=0x0,this[_0x55639f('0x0')]=_0x55639f('0x1'),this[_0x55639f('0xb')]=_0x3440a8[_0x55639f('0xb')]&&_0x3440a8['registry'][_0x55639f('0x9')](':')?_0x3440a8[_0x55639f('0xb')][_0x55639f('0x8')](':')[0x0]:'',this['host']='',this[_0x55639f('0xa')]='',this[_0x55639f('0x2')]='',this[_0x55639f('0x5')]='',this['refresh']='',this[_0x55639f('0x7')]=_0x55639f('0x1'),this[_0x55639f('0x3')]='',this['address']='';}module[_0x1dba65('0xc')]=Trunk; \ No newline at end of file +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 diff --git a/server/services/ami/model/voiceExtension.js b/server/services/ami/model/voiceExtension.js index b0fff9e..c14fdec 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1081_0x17bd=['exports','none','exten','recordingFormat','mandatoryDisposition'];(function(_0x3916cc,_0x17bd24){var _0x25ff49=function(_0x5a877e){while(--_0x5a877e){_0x3916cc['push'](_0x3916cc['shift']());}};_0x25ff49(++_0x17bd24);}(a1081_0x17bd,0x85));var a1081_0x25ff=function(_0x3916cc,_0x17bd24){_0x3916cc=_0x3916cc-0x0;var _0x25ff49=a1081_0x17bd[_0x3916cc];return _0x25ff49;};var _0x1f1009=a1081_0x25ff;'use strict';function voiceExtension(_0x5a877e){var _0x138f24=a1081_0x25ff;this['id']=_0x5a877e['id']||0x0,this['exten']=_0x5a877e[_0x138f24('0x4')]||'',this['recordingFormat']=_0x5a877e[_0x138f24('0x0')]||_0x138f24('0x3'),this[_0x138f24('0x1')]=_0x5a877e['mandatoryDisposition']||![];}module[_0x1f1009('0x2')]=voiceExtension; \ No newline at end of file +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 diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index 30c25f2..9662929 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1082_0x2494=['startPredictive','startProgressive','gsm','dialPredictiveIntervalMaxThreshold','dialAMDMinWordLength','dialOriginateCallerIdNumber','dialDropRetryFrequency','predictiveIntervalDroppedCallsTimeout','dialRandomLastDigitCallerIdNumber','dialPredictiveOptimization','dialMethod','Trunk','autopause','dialAgiAfterHangupAgent','temp','mandatoryDispositionPause','dialNoSuchNumberRetryFrequency','name','dialAgentRejectMaxRetry','dialGlobalInterval','dialLimitChannel','outboundNoAnswerCallsDay','Interval','monitor_format','dialAMDBetweenWordsSilence','outboundDropCallsDayCallersExit','originated','predictiveIntervalAnsweredCalls','dialLimitQueue','erlangBusyFactor','outboundBusyCallsDay','dialMachineRetryFrequency','predictiveIntervalAvailable','waiting','dialAMDSilenceThreshold','mandatoryDisposition','predictiveIntervalErlangCallsDroppedCalls','type','dialAMDTotalAnalysisTime','dialOrderByScheduledAt','outboundNoSuchCallsDay','dialQueueOptions','dialQueueTimeout','total','dialQueueProject2','dialOriginateCallerIdName','roundrobin','predictiveIntervalAvgHoldtime','dialAMDInitialSilence','dialGlobalMaxRetry','outboundUnknownCallsDay','dialAgentRejectRetryFrequency','dialBusyMaxRetry','erlangCalls','dialAbandonedMaxRetry','acwTimeout','answered','outboundBlacklistCallsDay','anonymous','sumHoldTime','dialAMDAfterGreetingSilence','dialAgiAfterHangupClient','dialAMDGreeting','dialRecallInQueue','erlangAbandonmentRate','available','dropRate','dialDropMaxRetry','wav49','outboundReCallsDay','predictiveIntervalHitRate','queueStatusComplete','outboundAbandonedDay','timeout','dialBusyRetryFrequency','dialPowerLevel','dialRecallMeTimeout','dialOriginateTimeout','outboundOriginateFailureCallsDay','dialPrefix','handlePredictive','dialCongestionRetryFrequency','rrmemory','dialAMDActive','inbound','dialTimezone','dialMachineMaxRetry','strategy','dialCongestionMaxRetry','progressive','abandoned','predictiveIntervalPauses','outboundCongestionCallsDay','dialNoAnswerMaxRetry','dialPredictiveInterval','acw','dialPredictiveOptimizationPercentage','predictiveIntervalMultiplicativeFactor','dialAMDMaximumWordLength','pTalking','dialNoAnswerRetryFrequency','outboundAnswerCallsDay','dialCutDigit','outboundAnswerAgiCallsDay','unmanaged','sumBillable','dialActive','message','dialQueueProject','predictiveIntervalErlangCalls','TrunkBackup'];(function(_0x25f7ab,_0x249445){const _0x353aa2=function(_0x4bee07){while(--_0x4bee07){_0x25f7ab['push'](_0x25f7ab['shift']());}};_0x353aa2(++_0x249445);}(a1082_0x2494,0x1ab));const a1082_0x353a=function(_0x25f7ab,_0x249445){_0x25f7ab=_0x25f7ab-0x0;let _0x353aa2=a1082_0x2494[_0x25f7ab];return _0x353aa2;};const _0x2fd693=a1082_0x353a;'use strict';const monitorFormat={'wav':'wav','wav49':_0x2fd693('0x55'),'gsm':_0x2fd693('0x13')},strategy={'rrmemory':_0x2fd693('0x63'),'roundrobin':_0x2fd693('0x3f')};function VoiceQueue(_0x4bee07){const _0x47d8a3=_0x2fd693;this['id']=_0x4bee07['id']||0x0,this[_0x47d8a3('0x22')]=_0x4bee07[_0x47d8a3('0x22')]||'',this[_0x47d8a3('0x28')]=_0x4bee07['monitor_format']||'',this['type']=_0x4bee07[_0x47d8a3('0x36')]||_0x47d8a3('0x65'),this[_0x47d8a3('0x32')]=0x0,this['talking']=0x0,this[_0x47d8a3('0x3c')]=0x0,this[_0x47d8a3('0x49')]=0x0,this['sumDuration']=0x0,this[_0x47d8a3('0x4c')]=0x0,this[_0x47d8a3('0xb')]=0x0,this[_0x47d8a3('0xa')]=0x0,this[_0x47d8a3('0x6b')]=0x0,this['loggedIn']=0x0,this[_0x47d8a3('0x52')]=0x0,this[_0x47d8a3('0x1')]=_0x4bee07[_0x47d8a3('0x1')]||![],this[_0x47d8a3('0x48')]=_0x4bee07[_0x47d8a3('0x48')]||0xa,this[_0x47d8a3('0x1d')]=_0x4bee07[_0x47d8a3('0x1d')]||'no',this['sendMessageOneNotActive']=!![],this[_0x47d8a3('0xd')]='',this[_0x47d8a3('0x2b')]=0x0,this[_0x47d8a3('0x1f')]=0x0,this['dialTimezone']=_0x4bee07[_0x47d8a3('0x66')]||null,this['dialGlobalInterval']=_0x4bee07[_0x47d8a3('0x24')]?_0x4bee07[_0x47d8a3('0x24')]:null,this[_0x47d8a3('0xc')]=_0x4bee07[_0x47d8a3('0xc')],this[_0x47d8a3('0x1b')]=_0x4bee07['dialMethod']||_0x47d8a3('0x6a'),this[_0x47d8a3('0x25')]=_0x4bee07['dialLimitChannel']||0x0,this[_0x47d8a3('0x2d')]=_0x4bee07[_0x47d8a3('0x2d')]||0x0,this[_0x47d8a3('0x5c')]=_0x4bee07[_0x47d8a3('0x5c')]||0x1,this[_0x47d8a3('0x1a')]=_0x4bee07['dialPredictiveOptimization']||_0x47d8a3('0x53'),this[_0x47d8a3('0x2')]=_0x4bee07[_0x47d8a3('0x2')]||0.03,this[_0x47d8a3('0x0')]=_0x4bee07[_0x47d8a3('0x0')]||0x258,this[_0x47d8a3('0x3e')]=_0x4bee07[_0x47d8a3('0x3e')]||_0x47d8a3('0x4b'),this[_0x47d8a3('0x16')]=_0x4bee07['dialOriginateCallerIdNumber']||_0x47d8a3('0x4b'),this[_0x47d8a3('0x5e')]=_0x4bee07[_0x47d8a3('0x5e')]||0x1e,this[_0x47d8a3('0x3a')]=_0x4bee07[_0x47d8a3('0x3a')]||'tTxX',this[_0x47d8a3('0x3b')]=_0x4bee07[_0x47d8a3('0x3b')]||0x3,this[_0x47d8a3('0xe')]=_0x4bee07[_0x47d8a3('0xe')]||undefined,this[_0x47d8a3('0x69')]=_0x4bee07[_0x47d8a3('0x69')]||0x3,this[_0x47d8a3('0x62')]=_0x4bee07[_0x47d8a3('0x62')]||0x96,this[_0x47d8a3('0x45')]=_0x4bee07[_0x47d8a3('0x45')]||0x3,this[_0x47d8a3('0x5b')]=_0x4bee07['dialBusyRetryFrequency']||0x96,this[_0x47d8a3('0x6e')]=_0x4bee07[_0x47d8a3('0x6e')]||0x3,this[_0x47d8a3('0x6')]=_0x4bee07[_0x47d8a3('0x6')]||0x96,this['dialNoSuchNumberMaxRetry']=_0x4bee07['dialNoSuchNumberMaxRetry']||0x3,this[_0x47d8a3('0x21')]=_0x4bee07['dialNoSuchNumberRetryFrequency']||0x96,this['dialDropMaxRetry']=_0x4bee07[_0x47d8a3('0x54')]||0x3,this[_0x47d8a3('0x17')]=_0x4bee07[_0x47d8a3('0x17')]||0x96,this[_0x47d8a3('0x47')]=_0x4bee07[_0x47d8a3('0x47')]||0x3,this['dialAbandonedRetryFrequency']=_0x4bee07['dialAbandonedRetryFrequency']||0x96,this[_0x47d8a3('0x67')]=_0x4bee07[_0x47d8a3('0x67')]||0x3,this[_0x47d8a3('0x30')]=_0x4bee07[_0x47d8a3('0x30')]||0x96,this[_0x47d8a3('0x23')]=_0x4bee07[_0x47d8a3('0x23')]||0x3,this[_0x47d8a3('0x44')]=_0x4bee07[_0x47d8a3('0x44')]||0x96,this[_0x47d8a3('0x42')]=_0x4bee07[_0x47d8a3('0x42')]||0x4,this[_0x47d8a3('0x1c')]=_0x4bee07[_0x47d8a3('0x1c')]?_0x4bee07[_0x47d8a3('0x1c')]:undefined,this['TrunkBackup']=_0x4bee07[_0x47d8a3('0x10')]?_0x4bee07['TrunkBackup']:undefined,this[_0x47d8a3('0x60')]=_0x4bee07[_0x47d8a3('0x60')]||undefined,this[_0x47d8a3('0x27')]=_0x4bee07['Interval']?_0x4bee07[_0x47d8a3('0x27')]:undefined,this['dialOrderByScheduledAt']=_0x4bee07[_0x47d8a3('0x38')]||'DESC',this[_0x47d8a3('0x19')]=_0x4bee07['dialRandomLastDigitCallerIdNumber']||undefined,this[_0x47d8a3('0x8')]=_0x4bee07[_0x47d8a3('0x8')]||undefined,this[_0x47d8a3('0x68')]=strategy[_0x4bee07[_0x47d8a3('0x68')]]||'rrmemory',this[_0x47d8a3('0x58')]=!![],this[_0x47d8a3('0x64')]=_0x4bee07[_0x47d8a3('0x64')]||![],this['dialAMDInitialSilence']=_0x4bee07[_0x47d8a3('0x41')],this['dialAMDGreeting']=_0x4bee07[_0x47d8a3('0x4f')],this[_0x47d8a3('0x4d')]=_0x4bee07[_0x47d8a3('0x4d')],this[_0x47d8a3('0x37')]=_0x4bee07['dialAMDTotalAnalysisTime'],this[_0x47d8a3('0x15')]=_0x4bee07[_0x47d8a3('0x15')],this[_0x47d8a3('0x29')]=_0x4bee07[_0x47d8a3('0x29')],this['dialAMDMaximumNumberOfWords']=_0x4bee07['dialAMDMaximumNumberOfWords'],this[_0x47d8a3('0x33')]=_0x4bee07[_0x47d8a3('0x33')],this[_0x47d8a3('0x4')]=_0x4bee07['dialAMDMaximumWordLength'],this['outboundRejectCallsDay']=0x0,this[_0x47d8a3('0x5')]=0x0,this[_0x47d8a3('0x5a')]=_0x4bee07[_0x47d8a3('0x5a')],this[_0x47d8a3('0x7')]=0x0,this[_0x47d8a3('0x9')]=0x0,this[_0x47d8a3('0x26')]=0x0,this[_0x47d8a3('0x2f')]=0x0,this[_0x47d8a3('0x6d')]=0x0,this[_0x47d8a3('0x39')]=0x0,this[_0x47d8a3('0x43')]=0x0,this[_0x47d8a3('0x4a')]=0x0,this[_0x47d8a3('0x5f')]=0x0,this[_0x47d8a3('0x2a')]=0x0,this['outboundDropCallsDayTimeout']=0x0,this['outboundDropCallsDayACS']=0x0,this[_0x47d8a3('0x56')]=0x0,this[_0x47d8a3('0x59')]=0x0,this[_0x47d8a3('0x12')]=undefined,this[_0x47d8a3('0x11')]=undefined,this[_0x47d8a3('0x61')]=undefined,this[_0x47d8a3('0x3')]=1.05,this['predictiveIntervalTotalCalls']=0x0,this[_0x47d8a3('0x2c')]=0x0,this['predictiveIntervalDroppedCallsCallersExit']=0x0,this[_0x47d8a3('0x18')]=0x0,this[_0x47d8a3('0x40')]=0x0,this['predictiveIntervalAvgTalktime']=0x0,this[_0x47d8a3('0x6c')]=0x0,this[_0x47d8a3('0x31')]=0x0,this['predictiveIntervalMaxThreshold']=_0x4bee07[_0x47d8a3('0x14')]||0x14,this['predictiveIntervalMinThreshold']=_0x4bee07[_0x47d8a3('0x14')]||0xa,this[_0x47d8a3('0xf')]=0x0,this[_0x47d8a3('0x35')]=0x0,this[_0x47d8a3('0x57')]=0x1,this[_0x47d8a3('0x46')]=0x0,this['erlangCallToSecond']=0x0,this[_0x47d8a3('0x51')]=0x0,this[_0x47d8a3('0x2e')]=0x0,this[_0x47d8a3('0x5d')]=_0x4bee07[_0x47d8a3('0x5d')]||0x1e,this[_0x47d8a3('0x50')]=_0x4bee07[_0x47d8a3('0x50')]||![],this['dialQueueProject2']=_0x4bee07[_0x47d8a3('0x3d')]||undefined,this[_0x47d8a3('0x4e')]=_0x4bee07[_0x47d8a3('0x4e')]||![],this[_0x47d8a3('0x1e')]=_0x4bee07[_0x47d8a3('0x1e')]||![],this[_0x47d8a3('0x28')]=monitorFormat[_0x4bee07[_0x47d8a3('0x28')]]?monitorFormat[_0x4bee07[_0x47d8a3('0x28')]]:undefined,this['mandatoryDisposition']=_0x4bee07[_0x47d8a3('0x34')]||![],this[_0x47d8a3('0x20')]=_0x4bee07['mandatoryDispositionPause']?_0x4bee07[_0x47d8a3('0x20')]:undefined;}module['exports']=VoiceQueue; \ No newline at end of file +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 diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index e38f81c..e0fcee3 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1083_0x31e2=['accessKey','serverUrl','remoteUri','exports','username','name','Configurations'];(function(_0x1f99ca,_0x31e267){var _0xca7946=function(_0x382eac){while(--_0x382eac){_0x1f99ca['push'](_0x1f99ca['shift']());}};_0xca7946(++_0x31e267);}(a1083_0x31e2,0x188));var a1083_0xca79=function(_0x1f99ca,_0x31e267){_0x1f99ca=_0x1f99ca-0x0;var _0xca7946=a1083_0x31e2[_0x1f99ca];return _0xca7946;};var _0x3060cd=a1083_0xca79;'use strict';function VtigerAccount(_0x382eac){var _0x596ea6=a1083_0xca79;this['id']=_0x382eac['id']||0x0,this[_0x596ea6('0x5')]=_0x382eac[_0x596ea6('0x5')]||'',this[_0x596ea6('0x4')]=_0x382eac[_0x596ea6('0x4')]||'',this[_0x596ea6('0x0')]=_0x382eac[_0x596ea6('0x0')]||'',this[_0x596ea6('0x2')]=_0x382eac[_0x596ea6('0x2')]||'',this[_0x596ea6('0x1')]=_0x382eac['serverUrl']||'',this[_0x596ea6('0x6')]=_0x382eac['Configurations']||{};}module[_0x3060cd('0x3')]=VtigerAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index 97a3632..cefdb1b 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1084_0x1697=['name','serverUrl','username','authType','remoteUri','integrationTab','type','password','token','Configurations'];(function(_0x1807ac,_0x16976e){var _0x10bc25=function(_0xcd5da2){while(--_0xcd5da2){_0x1807ac['push'](_0x1807ac['shift']());}};_0x10bc25(++_0x16976e);}(a1084_0x1697,0xe6));var a1084_0x10bc=function(_0x1807ac,_0x16976e){_0x1807ac=_0x1807ac-0x0;var _0x10bc25=a1084_0x1697[_0x1807ac];return _0x10bc25;};'use strict';function ZendeskAccount(_0xcd5da2){var _0x11888f=a1084_0x10bc;this['id']=_0xcd5da2['id']||0x0,this[_0x11888f('0x0')]=_0xcd5da2[_0x11888f('0x0')]||'',this[_0x11888f('0x2')]=_0xcd5da2['username']||'',this[_0x11888f('0x7')]=_0xcd5da2[_0x11888f('0x7')]||'',this[_0x11888f('0x8')]=_0xcd5da2[_0x11888f('0x8')]||'',this[_0x11888f('0x4')]=_0xcd5da2[_0x11888f('0x4')]||'',this[_0x11888f('0x3')]=_0xcd5da2['authType']||'',this[_0x11888f('0x6')]=_0xcd5da2[_0x11888f('0x6')]||_0x11888f('0x5'),this[_0x11888f('0x1')]=_0xcd5da2[_0x11888f('0x1')]||'',this[_0x11888f('0x9')]=_0xcd5da2[_0x11888f('0x9')]||{};}module['exports']=ZendeskAccount; \ No newline at end of file +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 diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 9e4a8bb..79f03f8 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1085_0x3ec3=['exports','zone','host','clientSecret','code','refreshToken','clientId','name','description','serverUrl','Configurations'];(function(_0x529765,_0x3ec3f4){var _0x217e3b=function(_0x130e27){while(--_0x130e27){_0x529765['push'](_0x529765['shift']());}};_0x217e3b(++_0x3ec3f4);}(a1085_0x3ec3,0x118));var a1085_0x217e=function(_0x529765,_0x3ec3f4){_0x529765=_0x529765-0x0;var _0x217e3b=a1085_0x3ec3[_0x529765];return _0x217e3b;};var _0x1314d7=a1085_0x217e;'use strict';function ZohoAccount(_0x130e27){var _0x58f9e2=a1085_0x217e;this['id']=_0x130e27['id']||0x0,this[_0x58f9e2('0x2')]=_0x130e27[_0x58f9e2('0x2')]||'',this['description']=_0x130e27[_0x58f9e2('0x3')]||'',this[_0x58f9e2('0x8')]=_0x130e27[_0x58f9e2('0x8')]||'',this[_0x58f9e2('0x7')]=_0x130e27['zone']||'',this[_0x58f9e2('0x1')]=_0x130e27[_0x58f9e2('0x1')]||'',this[_0x58f9e2('0x9')]=_0x130e27[_0x58f9e2('0x9')]||'',this[_0x58f9e2('0x4')]=_0x130e27[_0x58f9e2('0x4')]||'',this[_0x58f9e2('0xa')]=_0x130e27[_0x58f9e2('0xa')]||'',this[_0x58f9e2('0x0')]=_0x130e27[_0x58f9e2('0x0')]||'',this[_0x58f9e2('0x5')]=_0x130e27[_0x58f9e2('0x5')]||{};}module[_0x1314d7('0x6')]=ZohoAccount; \ No newline at end of file +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 diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index 518ce13..5558831 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1086_0x1d7d=['countagentrejectretry','Agent','active','countabandonedretry','name','countcongestionretry','countnosuchnumberretry','ContactId','lodash','callback','number','membername','channelAgent','string','phone','scheduledat','util','calleridname','countmachineretry','recallme','VoiceQueueId','SIP/%s','Contact','callbackat','format','originatecalleridname','firstName','callbackuniqueid','originatecalleridnum','prototype','exports','countnoanswerretry','uniqueid','\x22%s\x22\x20<%s>','isNil','calleridnum','countbusyretry','ListId','dialAnswer','type','campaigntype','getCaller','countglobal','queue','UserId'];(function(_0x6780b7,_0x1d7dd8){const _0x41bf51=function(_0x201756){while(--_0x201756){_0x6780b7['push'](_0x6780b7['shift']());}};_0x41bf51(++_0x1d7dd8);}(a1086_0x1d7d,0x1cd));const a1086_0x41bf=function(_0x6780b7,_0x1d7dd8){_0x6780b7=_0x6780b7-0x0;let _0x41bf51=a1086_0x1d7d[_0x6780b7];return _0x41bf51;};const _0x88968e=a1086_0x41bf;'use strict';const util=require(_0x88968e('0x5')),_=require(_0x88968e('0x2a'));function checkNameSurname(_0x201756,_0x28bfdf,_0x3a337e){const _0x3663e2=_0x88968e;let _0x417b38='';!_[_0x3663e2('0x17')](_0x28bfdf)&&_0x3663e2('0x2')===typeof _0x28bfdf&&(_0x417b38+=_0x28bfdf);!_[_0x3663e2('0x17')](_0x3a337e)&&_0x3663e2('0x2')===typeof _0x3a337e&&(_0x417b38+='\x20'+_0x3a337e);if(_0x417b38!=='')return _0x417b38;return _0x201756;}function Action(_0x2fa4ec,_0xf7657b,_0x5a322c,_0x542514){const _0x13364f=_0x88968e;this[_0x13364f('0x15')]=_0x5a322c||undefined,this['idContact']=_0x2fa4ec['id'],this[_0x13364f('0x20')]=_0xf7657b['name'],this[_0x13364f('0x1c')]=_0xf7657b[_0x13364f('0x1c')],this[_0x13364f('0x1d')]='queue',this[_0x13364f('0x1b')]=![],this[_0x13364f('0x0')]=_['isNil'](_0x2fa4ec[_0x13364f('0x23')])?undefined:_0x2fa4ec[_0x13364f('0x23')][_0x13364f('0x26')],this[_0x13364f('0x1')]=this[_0x13364f('0x0')]?util[_0x13364f('0xd')](_0x13364f('0xa'),this[_0x13364f('0x0')]):_0x542514||undefined,this[_0x13364f('0x6')]=checkNameSurname(_0x2fa4ec[_0x13364f('0xb')][_0x13364f('0x3')],_0x2fa4ec[_0x13364f('0xb')][_0x13364f('0xf')],_0x2fa4ec[_0x13364f('0xb')]['lastName']),this[_0x13364f('0x24')]=_0x2fa4ec[_0x13364f('0x24')]||![],this[_0x13364f('0x18')]=_0x2fa4ec['Contact']['phone'],this['scheduledat']=_0x2fa4ec[_0x13364f('0x4')],this[_0x13364f('0x19')]=_0x2fa4ec[_0x13364f('0x19')]||0x0,this[_0x13364f('0x27')]=_0x2fa4ec[_0x13364f('0x27')]||0x0,this[_0x13364f('0x14')]=_0x2fa4ec[_0x13364f('0x14')]||0x0,this[_0x13364f('0x1f')]=(_0x2fa4ec[_0x13364f('0x19')]||0x0)+(_0x2fa4ec['countcongestionretry']||0x0)+(_0x2fa4ec[_0x13364f('0x14')]||0x0)+(_0x2fa4ec[_0x13364f('0x28')]||0x0)+(_0x2fa4ec['countdropretry']||0x0)+(_0x2fa4ec[_0x13364f('0x25')]||0x0)+(_0x2fa4ec[_0x13364f('0x7')]||0x0)+(_0x2fa4ec[_0x13364f('0x22')]||0x0),this[_0x13364f('0x28')]=_0x2fa4ec['countnosuchnumberretry']||0x0,this['countdropretry']=_0x2fa4ec['countdropretry']||0x0,this[_0x13364f('0x25')]=_0x2fa4ec['countabandonedretry']||0x0,this[_0x13364f('0x7')]=_0x2fa4ec[_0x13364f('0x7')]||0x0,this[_0x13364f('0x22')]=_0x2fa4ec['countagentrejectretry']||0x0,this[_0x13364f('0x2b')]=_0x2fa4ec['callback'],this['callbackuniqueid']=_0x2fa4ec[_0x13364f('0x10')],this[_0x13364f('0xc')]=_0x2fa4ec[_0x13364f('0xc')],this[_0x13364f('0x8')]=_0x2fa4ec[_0x13364f('0x8')],this[_0x13364f('0x29')]=_0x2fa4ec[_0x13364f('0x29')],this[_0x13364f('0x1a')]=_0x2fa4ec['ListId'],this['UserId']=_[_0x13364f('0x17')](_0x2fa4ec['Agent'])?_0x2fa4ec[_0x13364f('0x21')]:_0x2fa4ec[_0x13364f('0x23')]['id'],this[_0x13364f('0x9')]=_0x2fa4ec[_0x13364f('0x9')],this[_0x13364f('0x11')]='',this[_0x13364f('0xe')]='';}Action[_0x88968e('0x12')][_0x88968e('0x1e')]=function(){const _0x2a7469=_0x88968e;return util['format'](_0x2a7469('0x16'),this[_0x2a7469('0x6')],this[_0x2a7469('0x2c')]);},module[_0x88968e('0x13')]=Action; \ No newline at end of file +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 diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index 5c7e726..110601e 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1087_0x3124=['variablesAction','hanguprequest','[getContactRecallMe]','\x20Trunk\x20is\x20not\x20active','complete','IsNotLoggedIn','[callProgressDetectingCustomer][logNoSuchGlobal]','countglobal','../../../config/logger','createCustomerFinal','[Preview][validateContact][Empty\x20Contact]','OriginateError','startProgressive','countbusyretry','./action','voiceQueues','decrementTalkink','outboundDropCallsDayCallersExit','dialAnswer','exports','dialCongestionMaxRetry','cause','syncCampaigns','congestion','\x20is\x20not\x20active','dialGlobalMaxRetry','predictiveIntervalErlangCalls','status','unlock','totalGlobal','countagentrejectretry','countabandonedetry','length','loggerError','custom:agentcalled','[HistoryRecallClose]','campaignsPreview','newexten','strategy','recallme','attendedtransfer','isEmpty','error','[callProgressDetectingCustomer]','scheduledAt','outboundDropCallsDayTimeout','answered','erlangCalls','emit','Abandoned','syncVarSet','dialRecallMeTimeout','outboundAnswerAgiCallsDay','[originated][decrement][callProgressDetectingAgent]','startPredictive','[callProgressDetectingCustomer][logBusy]','addVariable','trunks','CONGESTION','merge','validateContact','cloneAction','toLowerVariables','syncHangup','substring','[syncHangup][talking][increment]','transfer','actionid','name','outboundRejectCallsDay','Busy','Call\x20unsuccessful','info','talking','outboundReCallsDay','[callProgressDetectingCustomer][logAbandoned]','ABANDONED','[originated][increment]','Action','[Blacklist][error]','[callProgressDetectingCustomer][logCongestion]','called','voicePause','logger','[default]','[clearZombieChannel]','erlangAbandonmentRate','size','pTalking','[callProgressDetectingCustomer][logAgentReject]','clearZombieChannel','originated','ANSWER','callProgressDetectingCustomer','getCallerIdRandom','unmanaged','[callProgressDetectingCustomer][logAnswerGlobal]','Is\x20Valid','unlockContact','waiting','outboundBusyCallsDay','recallMe','[callProgressDetectingCustomer][logNoAnswer]','sendMessageOneNotActive','format','sequence','dialCutDigit','dialstatus','syncOriginateResponse','outboundOriginateFailureCallsDay','createBody','pTalking:\x20','answertime','clearZombieChannels','channel','syncAttendedTransfer','dialAbandonedMaxRety','lookAgent','getContactRecallMe','ListId','[callProgressDetectingCustomer][logAnswer]','callProgressDetectingAgent','predictiveIntervalAvgTalktime','[HistoryDialRecallInQueue][historyCatch]','lodash','isUndefined','syncBlindTransfer','Calling','run','active','[callProgressDetectingCustomer][logBusyGlobal]','dialPrefix','voice_queue_channel:remove','[callProgressDetectingCustomer][logNoAnswerGlobal]','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','logBlacklist','scheduledat','execCall','execRun','unlockAgent','predictiveIntervalMultiplicativeFactor','originateresponse','logger2','logLookAgent','available','[Preview][validateContact][Campaign\x20Active]','extractCalleridName','updateOriginated','talktime','\x20Not\x20Active','then','createCustomerHistory','dialMethod','uuid','[syncHangup][talking][transfer]','\x20Queue','[16]','dialOriginateCallerIdName','rejected','filterKey','undefined','originatecalleridname','loopCampaigns','outboundNoSuchCallsDay','outbound','Contact\x20is\x20undefined','outboundUnknownCallsDay','TRUNK_IS_NOT_REACHABLE','outboundDropCallsDayACS','transfererlinkedid','originatecalleridnum','channelstate','campaign\x20Name:\x20','originated:\x20','custom:agentnoanswer','clockClearZombieChannels','stringify','object','dialActive','[syncHangup][talking][cause]','SIP/%s/%s%s','sumBillable','voice_queue:save','dialOriginateTimeout','linkedid','[originateFailure][logOriginateFailure]','outboundNoAnswerCallsDay','setMessage','[Preview][validateContact][Empty\x20Campaign]','statedesc','prototype','[RecallMe]','response','idContact','[callProgressDetectingAgent][logAnswerAGI]','Global','Queue','Answer','[Dialer][checkChannel][pTalking][Preview]','queue','dialNoSuchNumberRetryFrequency','sumDuration','custom:agentnosuchnumber','NoSuchNumber','total','blindtransfer','preview','IS_DISACTIVED','../../../rediscache','paused','destuniqueid','tail','UserId','[callProgressDetectingCustomer][logNoSuch]','dialOriginateCallerIdNumber','logCustomer','md5','acw','getContactPreview','predictiveIntervalPauses','extractCalleridNumber','AGENTS_NOT_LOGGED','[Preview][validateContact][Trunk\x20not\x20work]','Trunk\x20not\x20work','cause-txt','buildObj','[clearZombieChannels][talking]','checkInBlack','dialAgentRejectRetryFrequency','dialBusyRetryFrequency','isNil','custom:agentringnoanswer','agents','hangup','./util/util','syncDialEnd','activeContact','countnoanswerretry','outboundCongestionCallsDay','outboundAnswerCallsDay','[callProgressDetectingCustomer][logUnknown]','variables','custom:agentcongestion','predictiveIntervalHitRate','predictiveIntervalAvailable','isTrunkReachable','[Preview][getContactPreview]','message','type','Agent','Empty\x20Contact','countnosuchnumberretry','[callProgressDetectingAgent][logNoAnswer]','custom:agentbusy','predictiveIntervalTotalCalls','crateCustomerReportQueue','BUSY','Contact.phone','buildAcw','catch','Congestion','rescheduleContact','variable','Queue:\x20','loggedIn','countcongestionretry','\x20Trunk\x20Backup\x20is\x20not\x20active','clone','destlinkedid','finally','actions','VoiceQueueId','dialRandomLastDigitCallerIdNumber','actionPreview','abandoned','RecallFailedTimeout','value','createAgentHistory','isActive','predictiveIntervalAnsweredCalls','predictiveIntervalAvgHoldtime','YYYY-MM-DD\x20HH:mm:ss','pick','predictiveIntervalDroppedCallsTimeout','[CampaignPreview]\x20Campaign\x20Queue:\x20','logAgent','dialAbandonedRetryFrequency','nosuchnumber','[callProgressDetectingCustomer][logCongestionGlobal]','enqueue','[callProgressDetectingAgent][logCongestion]','RecallInQueue','[Dialer][checkChannel][Preview]','Trunk','checkIsBlackList','callerid','NoAnswer','dialBusyMaxRetry','bind','dialRecallInQueue','NOT_ACTIVE','uniqueid','phone','ACTIVE','dialend','loggedInDb','transfertargetlinkedid','AgentReject','[callProgressDetectingAgent]','dialNoAnswerMaxRetry','TrunkBackup','SIP/%s','isValid','outboundAbandonedCallsDay','custom:agentreject','[syncHangup][talking][decrement]','trim','starttime','CANCEL','custom:agentConnectPreview','disableContact','dialQueueProject','sumHoldTime','[Preview][execCall][failure]','voice:queue:%s','[callProgressDetectingAgent][logNoSuch]','[callProgressDetectingAgent][logAnswer]','[originated][decrement][callProgressDetectingCustomer]','[callProgressDetectingCustomer][logUnknownGlobal]','reason','Empty\x20Campaign','../ami','Interval','responsetime','NOANSWER'];(function(_0x144bcb,_0x312496){const _0x12e9b9=function(_0x1e1c5b){while(--_0x1e1c5b){_0x144bcb['push'](_0x144bcb['shift']());}};_0x12e9b9(++_0x312496);}(a1087_0x3124,0x102));const a1087_0x12e9=function(_0x144bcb,_0x312496){_0x144bcb=_0x144bcb-0x0;let _0x12e9b9=a1087_0x3124[_0x144bcb];return _0x12e9b9;};const _0x40dfd9=a1087_0x12e9;'use strict';const util=require('util'),_=require(_0x40dfd9('0xc9')),uuid=require(_0x40dfd9('0xe6')),moment=require('moment'),md5=require(_0x40dfd9('0x125')),logger=require(_0x40dfd9('0x55'))(_0x40dfd9('0x11b')),loggerAction=require(_0x40dfd9('0x55'))(_0x40dfd9('0xf')),ami=require(_0x40dfd9('0x49')),rpcDb=require('./rpcDb'),Action=require(_0x40dfd9('0x5b')),ut=require(_0x40dfd9('0x137')),{getSocket}=require(_0x40dfd9('0x11d')),io=getSocket(),Sequence=function(){};Sequence[_0x40dfd9('0x10b')][_0x40dfd9('0x1f')]=function(_0x1e1c5b){const _0x57a780=_0x40dfd9;this[_0x57a780('0x120')]=this['tail']?this[_0x57a780('0x120')][_0x57a780('0xb')](_0x1e1c5b):_0x1e1c5b();};function Preview(_0x3fba0b){const _0x5cf860=_0x40dfd9;this[_0x5cf860('0xb6')]=new Sequence(),this[_0x5cf860('0x71')]=_0x3fba0b[_0x5cf860('0x5c')],this[_0x5cf860('0x86')]=_0x3fba0b[_0x5cf860('0x86')],this[_0x5cf860('0xc')]={},this[_0x5cf860('0x135')]=_0x3fba0b['agents'],this[_0x5cf860('0xfc')]=0x0,ami['on'](_0x5cf860('0xda'),this[_0x5cf860('0xb9')][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x136'),this[_0x5cf860('0x8c')][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x4e'),this['syncHangupRequest'][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x2e'),this[_0x5cf860('0x138')][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x72'),this['syncNewExten'][_0x5cf860('0x28')](this)),ami['on']('varset',this[_0x5cf860('0x7f')][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x75'),this[_0x5cf860('0xc0')][_0x5cf860('0x28')](this)),ami['on'](_0x5cf860('0x11a'),this['syncBlindTransfer'][_0x5cf860('0x28')](this)),this[_0x5cf860('0xef')](this[_0x5cf860('0x71')]);}function emit(_0x32983e,_0x2a4e70,_0x4bfc39){io['to'](_0x32983e)['emit'](_0x2a4e70,_0x4bfc39);}function emitCampaignPreview(_0x12196f){const _0x37487f=_0x40dfd9;if(_0x12196f[_0x37487f('0x145')]==='outbound'){const _0x5ed79c={'id':_0x12196f['id'],'name':_0x12196f['name'],'strategy':_0x12196f[_0x37487f('0x73')],'answered':_0x12196f[_0x37487f('0x7b')],'available':_0x12196f['available'],'loggedIn':_0x12196f[_0x37487f('0x6')],'pTalking':_0x12196f[_0x37487f('0xa5')],'sumBillable':_0x12196f[_0x37487f('0x102')],'sumDuration':_0x12196f[_0x37487f('0x116')],'sumHoldTime':_0x12196f[_0x37487f('0x40')]||0x0,'talking':_0x12196f[_0x37487f('0x96')],'total':_0x12196f[_0x37487f('0x119')],'type':_0x12196f['type'],'unmanaged':_0x12196f[_0x37487f('0xac')],'abandoned':_0x12196f[_0x37487f('0x10')],'waiting':_0x12196f[_0x37487f('0xb0')],'loggedInDb':_0x12196f[_0x37487f('0x2f')],'dialActive':_0x12196f[_0x37487f('0xff')],'dialMethod':_0x12196f[_0x37487f('0xe5')],'dialOriginateCallerIdName':_0x12196f['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x12196f[_0x37487f('0x123')],'dialOriginateTimeout':_0x12196f[_0x37487f('0x104')],'dialPrefix':_0x12196f[_0x37487f('0xd0')],'outboundAnswerAgiCallsDay':_0x12196f[_0x37487f('0x81')],'outboundAnswerCallsDay':_0x12196f[_0x37487f('0x13c')],'outboundBlacklistCallsDay':_0x12196f['outboundBlacklistCallsDay'],'outboundBusyCallsDay':_0x12196f[_0x37487f('0xb1')],'outboundCongestionCallsDay':_0x12196f[_0x37487f('0x13b')],'outboundDropCallsDayACS':_0x12196f[_0x37487f('0xf5')],'outboundDropCallsDayCallersExit':_0x12196f[_0x37487f('0x5e')],'outboundDropCallsDayTimeout':_0x12196f[_0x37487f('0x7a')],'outboundNoAnswerCallsDay':_0x12196f['outboundNoAnswerCallsDay'],'outboundNoSuchCallsDay':_0x12196f[_0x37487f('0xf0')],'outboundOriginateFailureCallsDay':_0x12196f[_0x37487f('0xba')],'outboundReCallsDay':_0x12196f[_0x37487f('0x97')],'outboundRejectCallsDay':_0x12196f[_0x37487f('0x92')],'outboundUnknownCallsDay':_0x12196f[_0x37487f('0xf3')],'outboundAbandonedCallsDay':_0x12196f[_0x37487f('0x37')],'predictiveIntervalAnsweredCalls':_0x12196f[_0x37487f('0x15')],'predictiveIntervalAvgHoldtime':_0x12196f[_0x37487f('0x16')],'predictiveIntervalAvgTalktime':_0x12196f[_0x37487f('0xc7')],'predictiveIntervalDroppedCallsCallersExit':_0x12196f['predictiveIntervalDroppedCallsCallersExit'],'predictiveIntervalDroppedCallsTimeout':_0x12196f[_0x37487f('0x19')],'predictiveIntervalErlangCalls':_0x12196f[_0x37487f('0x67')],'predictiveIntervalErlangCallsDroppedCalls':_0x12196f['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x12196f[_0x37487f('0x140')],'predictiveIntervalMultiplicativeFactor':_0x12196f[_0x37487f('0xd9')],'predictiveIntervalPauses':_0x12196f[_0x37487f('0x128')],'predictiveIntervalAvailable':_0x12196f[_0x37487f('0x141')],'predictiveIntervalTotalCalls':_0x12196f[_0x37487f('0x14b')],'message':_0x12196f[_0x37487f('0x144')],'originated':_0x12196f['originated'],'erlangCalls':_0x12196f[_0x37487f('0x7c')],'erlangCallToSecond':_0x12196f['erlangCallToSecond'],'erlangAbandonmentRate':_0x12196f[_0x37487f('0xa3')],'erlangBusyFactor':_0x12196f['erlangBusyFactor'],'startPredictive':_0x12196f[_0x37487f('0x83')],'startProgressive':_0x12196f[_0x37487f('0x59')]};_0x12196f[_0x37487f('0x23')]&&(_0x5ed79c[_0x37487f('0x23')]={'id':_0x12196f['Trunk']['id'],'name':_0x12196f[_0x37487f('0x23')][_0x37487f('0x91')],'active':_0x12196f[_0x37487f('0x23')]['active'],'callerid':_0x12196f['Trunk'][_0x37487f('0x25')]});_0x12196f[_0x37487f('0x4a')]&&(_0x5ed79c[_0x37487f('0x4a')]={'id':_0x12196f['Interval']['id'],'name':_0x12196f['Interval'][_0x37487f('0x91')]});const _0x4bd3e0=md5(JSON[_0x37487f('0xfd')](_0x5ed79c));_0x12196f[_0x37487f('0x125')]!==_0x4bd3e0&&(_0x12196f[_0x37487f('0x125')]=_0x4bd3e0,emit(util[_0x37487f('0xb5')](_0x37487f('0x42'),_0x5ed79c[_0x37487f('0x91')]),_0x37487f('0x103'),_0x5ed79c));}}function emitVoiceQueueChannelRemove(_0x4bc56d){const _0x5dd10b=_0x40dfd9;logger['info'](_0x5dd10b('0xd3'),JSON['stringify'](_0x4bc56d)),emit(util['format'](_0x5dd10b('0x42'),_0x4bc56d[_0x5dd10b('0x91')]),_0x5dd10b('0xd1'),_0x4bc56d);}function notSendMessagesQueue(_0x4d2625){const _0xd060ca=_0x40dfd9;_0x4d2625[_0xd060ca('0xb4')]&&(_0x4d2625[_0xd060ca('0xa8')]===0x0&&_0x4d2625[_0xd060ca('0xa5')]===0x0?(_0x4d2625[_0xd060ca('0xb4')]=![],_0x4d2625[_0xd060ca('0xdd')]=0x0,_0x4d2625[_0xd060ca('0x11e')]=0x0,_0x4d2625[_0xd060ca('0x144')]='NOT_ACTIVE',ut['logger'](_0xd060ca('0x1a'),_0x4d2625[_0xd060ca('0x91')]+_0xd060ca('0x65'))):(_0x4d2625[_0xd060ca('0x144')]=_0xd060ca('0x11c'),ut[_0xd060ca('0xa0')](_0xd060ca('0x1a'),_0x4d2625[_0xd060ca('0x91')]+'\x20is\x20disactive')),emitCampaignPreview(_0x4d2625));}Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xef')]=function(){const _0x1b8a28=this;setInterval(function(){const _0x211d8d=a1087_0x12e9;_0x1b8a28[_0x211d8d('0x63')]();},0x7cf);},Preview['prototype']['syncCampaigns']=function(){const _0x301f07=_0x40dfd9,_0x3ab606=this[_0x301f07('0x71')];this[_0x301f07('0xfc')]+=0x1;for(const _0x3849e7 in _0x3ab606){typeof _0x3ab606[_0x3849e7]!=='undefined'&&(_0x3ab606[_0x3849e7][_0x301f07('0xe5')]===_0x301f07('0x11b')||_0x3ab606[_0x3849e7][_0x301f07('0xe5')]==='booked')&&_0x3ab606[_0x3849e7][_0x301f07('0x145')]===_0x301f07('0xf1')&&(this['clockClearZombieChannels']>0x7&&(this[_0x301f07('0xfc')]=0x0,this[_0x301f07('0xbe')]())),typeof _0x3ab606[_0x3849e7]!==_0x301f07('0xed')&&_0x3ab606[_0x3849e7][_0x301f07('0xe5')]==='preview'&&_0x3ab606[_0x3849e7]['type']==='outbound'&&(_0x3ab606[_0x3849e7]['dialActive']?(this[_0x301f07('0x108')](_0x3ab606[_0x3849e7]),this[_0x301f07('0xb2')](_0x3ab606[_0x3849e7])):notSendMessagesQueue(_0x3ab606[_0x3849e7]));}},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xa7')]=function(_0x5ba375){const _0x1f8b7b=_0x40dfd9,_0xd87a1d=this;this['sequence'][_0x1f8b7b('0x1f')](function(){const _0x306c77=_0x1f8b7b;if(!_[_0x306c77('0x133')](_0xd87a1d[_0x306c77('0xc')][_0x5ba375]))return loggerAction[_0x306c77('0x95')](_0x306c77('0x12f'),_0x5ba375,_0x306c77('0x111'),_0xd87a1d['actions'][_0x5ba375][_0x306c77('0x114')],'originated:\x20',JSON[_0x306c77('0xfd')](_0xd87a1d[_0x306c77('0x71')][_0xd87a1d[_0x306c77('0xc')][_0x5ba375][_0x306c77('0x114')]][_0x306c77('0xa8')]),_0x306c77('0xbc'),JSON['stringify'](_0xd87a1d[_0x306c77('0x71')][_0xd87a1d[_0x306c77('0xc')][_0x5ba375][_0x306c77('0x114')]]['pTalking']),JSON['stringify'](_0xd87a1d[_0x306c77('0xc')][_0x5ba375]['dialAnswer']),JSON[_0x306c77('0xfd')](_[_0x306c77('0x18')](_0xd87a1d[_0x306c77('0xc')][_0x5ba375],['contactId',_0x306c77('0x121'),_0x306c77('0xd'),_0x306c77('0xc4')]))),ami[_0x306c77('0x9b')]({'action':_0x306c77('0x68'),'channel':_0xd87a1d[_0x306c77('0xc')][_0x5ba375][_0x306c77('0xbf')]})[_0x306c77('0x1')](function(_0x578320){_0x578320['message']==='No\x20such\x20channel'&&setTimeout(function(){const _0x103731=a1087_0x12e9;_0xd87a1d['actions'][_0x5ba375]&&(ut['updateOriginated'](_0xd87a1d['campaignsPreview'][_0xd87a1d[_0x103731('0xc')][_0x5ba375]['queue']],_0x103731('0xa2')),_0xd87a1d['actions'][_0x5ba375][_0x103731('0x5f')]===!![]&&(ut[_0x103731('0x5d')](_0xd87a1d[_0x103731('0x71')][_0xd87a1d[_0x103731('0xc')][_0x5ba375][_0x103731('0x114')]],_0x103731('0xa2')),ut[_0x103731('0x6e')](_0x103731('0x113')+_0x5ba375,_0xd87a1d[_0x103731('0xc')][_0x5ba375][_0x103731('0x114')])),ut['loggerError'](_0x103731('0x22')+_0x5ba375,_0xd87a1d[_0x103731('0xc')][_0x5ba375][_0x103731('0x114')]),delete _0xd87a1d[_0x103731('0xc')][_0x5ba375]);},0x2328);});});},Preview[_0x40dfd9('0x10b')]['clearZombieChannels']=function(){const _0x6666f=_0x40dfd9,_0x14151f=this;loggerAction['info']('[action]',_[_0x6666f('0xa4')](this[_0x6666f('0xc')]));for(const _0x4b583d in this[_0x6666f('0xc')]){typeof _0x14151f[_0x6666f('0xc')][_0x4b583d]!=='undefined'&&_0x14151f['clearZombieChannel'](_0x4b583d);}},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xb2')]=function(_0x41d313){const _0x33091b=_0x40dfd9,_0xc31308=this;rpcDb[_0x33091b('0xc3')](_0x41d313['id'],ut['agentReadyId'](this['agents']))[_0x33091b('0xe3')](function(_0x502bc5){const _0x2df833=_0x33091b;if(!_[_0x2df833('0x133')](_0x502bc5))for(let _0x493927=0x0;_0x493927<_0x502bc5[_0x2df833('0x6d')];_0x493927+=0x1){if(ut['getDiff'](_0x502bc5[_0x493927][_0x2df833('0xd5')])<_0x41d313[_0x2df833('0x80')]*0x3c)_0x502bc5[_0x493927][_0x2df833('0x146')]&&!_0x502bc5[_0x493927]['Agent'][_0x2df833('0x9f')]?_0xc31308[_0x2df833('0xcd')](_0x502bc5[_0x493927]['id'])[_0x2df833('0xe3')](ut[_0x2df833('0xdb')](_0x2df833('0x10c')))[_0x2df833('0x1')](ut[_0x2df833('0xdb')](_0x2df833('0x10c'))):rpcDb[_0x2df833('0x3e')](_0x502bc5[_0x493927]['id']);else{const _0x4b33a1=new Action(_0x502bc5[_0x493927],_0x41d313);_0x4b33a1[_0x2df833('0x3b')]=moment()[_0x2df833('0xb5')](_0x2df833('0x17')),_0x41d313[_0x2df833('0x97')]+=0x1,ut[_0x2df833('0x124')](_0x4b33a1,0x17,_0x2df833('0x21')),_0x41d313[_0x2df833('0x29')]?(rpcDb['rescheduleContactInQueue'](ut[_0x2df833('0xbb')](_0x502bc5[_0x493927])),rpcDb['createCustomerHistory'](_0x4b33a1,_0x2df833('0xc8'))):(ut[_0x2df833('0x124')](_0x4b33a1,0x16,_0x2df833('0x11')),rpcDb[_0x2df833('0xe4')](_0x4b33a1,_0x2df833('0x70')),rpcDb['createCustomerFinal'](_0x4b33a1,_0x2df833('0x70')));}}})[_0x33091b('0x1')](ut['logger2'](_0x33091b('0x4f')));},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0x108')]=function(_0x42a795){const _0x12f406=_0x40dfd9;_0x42a795[_0x12f406('0xb4')]=!![];if(ut[_0x12f406('0x52')](_0x42a795[_0x12f406('0x6')]))_0x42a795['message']=_0x12f406('0x12a');else{if(!ut['isActive'](_0x42a795[_0x12f406('0xff')]))_0x42a795[_0x12f406('0x144')]=_0x12f406('0x2a');else!this[_0x12f406('0x142')](_0x42a795['Trunk'])?!this[_0x12f406('0x142')](_0x42a795['TrunkBackup'])?_0x42a795[_0x12f406('0x144')]=_0x12f406('0xf4'):_0x42a795[_0x12f406('0x144')]='ACTIVE':_0x42a795[_0x12f406('0x144')]=_0x12f406('0x2d');}emitCampaignPreview(_0x42a795);},Preview['prototype'][_0x40dfd9('0xaa')]=function(_0x17cf79,_0x45322d,_0x2f1e80){const _0x351d95=_0x40dfd9,_0x18159f=this['actions'][_0x45322d],_0x4d6419=this[_0x351d95('0x71')][_0x18159f[_0x351d95('0x114')]];let _0x1f16b3;if(_0x4d6419){switch(_0x2f1e80){case'1':_0x4d6419[_0x351d95('0xf0')]+=0x1,_0x18159f[_0x351d95('0x148')]+=0x1,_0x18159f[_0x351d95('0x54')]=ut['totalGlobal'](_0x18159f),ut[_0x351d95('0x124')](_0x18159f,0x0,_0x351d95('0x118')),ami[_0x351d95('0x7d')](_0x351d95('0x117'),ut[_0x351d95('0x12e')](_0x18159f,_0x351d95('0x1d'))),rpcDb[_0x351d95('0xe4')](_0x18159f,_0x351d95('0x122'));ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419[_0x351d95('0x66')]?(_0x1f16b3=ut[_0x351d95('0x8a')](_0x18159f,0xf,_0x351d95('0x110')),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0x53'))):_0x18159f[_0x351d95('0x148')]>=_0x4d6419['dialNoSuchNumberMaxRetry']?rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0x53')):rpcDb[_0x351d95('0x3')](ut[_0x351d95('0x79')](_0x18159f,_0x351d95('0x148'),_0x4d6419[_0x351d95('0x115')]),_0x18159f[_0x351d95('0xd8')],_0x18159f[_0x351d95('0x139')]);delete this[_0x351d95('0xc')][_0x17cf79['linkedid']];break;case'ANSWER':{const _0x5433ce=moment()[_0x351d95('0xb5')]('YYYY-MM-DD\x20HH:mm:ss');_0x18159f[_0x351d95('0x4b')]=_0x5433ce,_0x18159f[_0x351d95('0xbd')]=_0x5433ce,_0x18159f[_0x351d95('0x5f')]=!![],_0x4d6419[_0x351d95('0xa5')]+=0x1,logger['info'](_0x351d95('0x8e'),_0x18159f[_0x351d95('0x2b')],'\x20Queue',_0x4d6419[_0x351d95('0x91')],_0x351d95('0xbc'),_0x4d6419[_0x351d95('0xa5')]),ami[_0x351d95('0x7d')]('custom:agentconnect',ut[_0x351d95('0x12e')](_0x18159f,'connect')),_0x4d6419[_0x351d95('0x126')]&&ami[_0x351d95('0x7d')](_0x351d95('0x3d'),ut[_0x351d95('0x0')](_0x18159f));}break;case'16':ami['emit']('custom:agentcomplete',ut['buildObj'](_0x18159f,_0x351d95('0x51'))),emitVoiceQueueChannelRemove(ut[_0x351d95('0x12e')](_0x18159f,_0x351d95('0x51'))),_0x4d6419[_0x351d95('0x13c')]+=0x1,_0x4d6419['total']+=0x1,_0x4d6419[_0x351d95('0x7b')]+=0x1,ut[_0x351d95('0x5d')](_0x4d6419,_0x351d95('0xe9')),_0x18159f[_0x351d95('0x54')]=ut[_0x351d95('0x6a')](_0x18159f),ut['logCustomer'](_0x18159f,0x4,_0x351d95('0x112')),rpcDb['createCustomerHistory'](_0x18159f,_0x351d95('0xc5')),rpcDb['createCustomerFinal'](_0x18159f,_0x351d95('0xad')),rpcDb[_0x351d95('0x14c')](_0x18159f),_0x4d6419[_0x351d95('0x116')]+=_0x18159f[_0x351d95('0xe1')],_0x4d6419['sumBillable']+=_0x18159f[_0x351d95('0xe1')],logger['info'](_0x351d95('0x39'),_0x18159f[_0x351d95('0x2b')],_0x351d95('0xe8'),_0x4d6419[_0x351d95('0x91')],_0x351d95('0xbc'),_0x4d6419[_0x351d95('0xa5')]),delete this[_0x351d95('0xc')][_0x17cf79['linkedid']];break;case _0x351d95('0x14d'):_0x4d6419[_0x351d95('0xb1')]+=0x1,_0x18159f[_0x351d95('0x5a')]+=0x1,_0x18159f['countglobal']=ut['totalGlobal'](_0x18159f),ut['logCustomer'](_0x18159f,0x5,'Busy'),ami[_0x351d95('0x7d')](_0x351d95('0x14a'),ut[_0x351d95('0x12e')](_0x18159f,'busy')),rpcDb[_0x351d95('0xe4')](_0x18159f,_0x351d95('0x84'));ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419['dialGlobalMaxRetry']?(_0x1f16b3=ut[_0x351d95('0x8a')](_0x18159f,0xf,'Global'),rpcDb['createCustomerFinal'](_0x1f16b3,_0x351d95('0xcf'))):_0x18159f[_0x351d95('0x5a')]>=_0x4d6419[_0x351d95('0x27')]?rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0x84')):rpcDb[_0x351d95('0x3')](ut['scheduledAt'](_0x18159f,'countbusyretry',_0x4d6419[_0x351d95('0x132')]),_0x18159f[_0x351d95('0xd8')],_0x18159f['activeContact']);break;case _0x351d95('0x4c'):_0x4d6419[_0x351d95('0x107')]+=0x1,_0x18159f['countnoanswerretry']+=0x1,_0x18159f[_0x351d95('0x54')]=ut[_0x351d95('0x6a')](_0x18159f),ut[_0x351d95('0x124')](_0x18159f,0x3,_0x351d95('0x26')),ami[_0x351d95('0x7d')](_0x351d95('0xfb'),ut[_0x351d95('0x12e')](_0x18159f,'noanswer')),rpcDb['createCustomerHistory'](_0x18159f,_0x351d95('0xb3'));ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419[_0x351d95('0x66')]?(_0x1f16b3=ut['cloneAction'](_0x18159f,0xf,'Global'),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0xd2'))):_0x18159f[_0x351d95('0x13a')]>=_0x4d6419[_0x351d95('0x33')]?rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0xb3')):rpcDb[_0x351d95('0x3')](ut[_0x351d95('0x79')](_0x18159f,'countnoanswerretry',_0x4d6419['dialNoAnswerRetryFrequency']),_0x18159f[_0x351d95('0xd8')],_0x18159f[_0x351d95('0x139')]);break;case _0x351d95('0x87'):_0x4d6419[_0x351d95('0x13b')]+=0x1,_0x18159f[_0x351d95('0x7')]+=0x1,_0x18159f[_0x351d95('0x54')]=ut['totalGlobal'](_0x18159f),ut['logCustomer'](_0x18159f,0x8,'Congestion'),ami[_0x351d95('0x7d')](_0x351d95('0x13f'),ut['buildObj'](_0x18159f,_0x351d95('0x64'))),rpcDb['createCustomerHistory'](_0x18159f,_0x351d95('0x9d'));ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419[_0x351d95('0x66')]?(_0x1f16b3=ut[_0x351d95('0x8a')](_0x18159f,0xf,_0x351d95('0x110')),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0x1e'))):_0x18159f[_0x351d95('0x7')]>=_0x4d6419[_0x351d95('0x61')]?rpcDb[_0x351d95('0x56')](_0x18159f,'[callProgressDetectingCustomer][logCongestion]'):rpcDb['rescheduleContact'](ut[_0x351d95('0x79')](_0x18159f,_0x351d95('0x7'),_0x4d6419['dialBusyRetryFrequency']),_0x18159f[_0x351d95('0xd8')],_0x18159f[_0x351d95('0x139')]);break;case _0x351d95('0x3c'):_0x4d6419['outboundRejectCallsDay']+=0x1,_0x18159f[_0x351d95('0x6b')]+=0x1,_0x18159f[_0x351d95('0x54')]=ut[_0x351d95('0x6a')](_0x18159f),ut[_0x351d95('0x124')](_0x18159f,0x14,_0x351d95('0x31')),ami['emit'](_0x351d95('0x38'),ut[_0x351d95('0x12e')](_0x18159f,'agentreject')),rpcDb[_0x351d95('0xe4')](_0x18159f,'[syncHangupRequest][logAgentReject]');ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419['dialGlobalMaxRetry']?(_0x1f16b3=ut['cloneAction'](_0x18159f,0x14,_0x351d95('0x31')),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0xa6'))):_0x18159f[_0x351d95('0x6b')]>=_0x4d6419['dialAgentRejectMaxRetry']?rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0xa6')):rpcDb[_0x351d95('0x3')](ut[_0x351d95('0x79')](_0x18159f,_0x351d95('0x6b'),_0x4d6419[_0x351d95('0x131')]),_0x18159f['unlockAgent'],_0x18159f['activeContact']);break;case _0x351d95('0x99'):_0x4d6419['outboundAbandonedCallsDay']+=0x1,_0x18159f['countabandonedretry']+=0x1,_0x18159f['countglobal']=ut[_0x351d95('0x6a')](_0x18159f),ut[_0x351d95('0x124')](_0x18159f,0xb,_0x351d95('0x7e')),rpcDb[_0x351d95('0xe4')](_0x18159f,_0x351d95('0x98'));ut[_0x351d95('0x6a')](_0x18159f)>=_0x4d6419[_0x351d95('0x66')]?(_0x1f16b3=ut[_0x351d95('0x8a')](_0x18159f,0xf,_0x351d95('0x110')),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0x98'))):_0x18159f[_0x351d95('0x6c')]>=_0x4d6419[_0x351d95('0xc1')]?rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0x98')):rpcDb['rescheduleContact'](ut[_0x351d95('0x79')](_0x18159f,'countabandonedretry',_0x4d6419[_0x351d95('0x1c')]),_0x18159f[_0x351d95('0xd8')],_0x18159f[_0x351d95('0x139')]);break;default:_0x18159f['dialAnswer']&&(ut[_0x351d95('0x5d')](_0x4d6419,_0x351d95('0xa1')),ut[_0x351d95('0x6e')]('[Dialer][decrementTalkink][no\x20Hangup][Preview]'+_0x4d6419[_0x351d95('0x91')],_0x17cf79));_0x4d6419['outboundUnknownCallsDay']+=0x1,_0x18159f['countglobal']=ut[_0x351d95('0x6a')](_0x18159f),ut[_0x351d95('0x124')](_0x18159f,0xc,_0x17cf79[_0x351d95('0x12d')]||_0x17cf79[_0x351d95('0xb8')]),rpcDb[_0x351d95('0xe4')](_0x18159f,_0x351d95('0x13d'));ut['totalGlobal'](_0x18159f)>=_0x4d6419[_0x351d95('0x66')]?(_0x1f16b3=ut[_0x351d95('0x8a')](_0x18159f,0xf,_0x351d95('0x110')),rpcDb[_0x351d95('0x56')](_0x1f16b3,_0x351d95('0x46'))):rpcDb[_0x351d95('0x56')](_0x18159f,_0x351d95('0x46'));delete this[_0x351d95('0xc')][_0x17cf79[_0x351d95('0x105')]];}!(_0x18159f['dialAnswer']&&_0x2f1e80==='16')&&(ut[_0x351d95('0xe0')](_0x4d6419,_0x351d95('0x78')),logger[_0x351d95('0x95')](_0x351d95('0x45'),_0x18159f[_0x351d95('0x2b')],_0x351d95('0xe8'),_0x4d6419[_0x351d95('0x91')],_0x351d95('0xfa'),_0x4d6419[_0x351d95('0xa8')])),_0x2f1e80!==_0x351d95('0xa9')&&(delete this[_0x351d95('0xc')][_0x17cf79[_0x351d95('0x105')]],delete this[_0x351d95('0xc')][_0x17cf79[_0x351d95('0xa')]]);}},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xc6')]=function(_0x3dc112,_0x31098c,_0x4bbc68){const _0x1b64eb=_0x40dfd9;if(_[_0x1b64eb('0xca')](_0x31098c)&&_0x1b64eb('0xfe')!==typeof _0x31098c)return;if(_['isUndefined'](_0x4bbc68)&&'object'!==typeof _0x4bbc68)return;switch(_0x4bbc68[_0x1b64eb('0x47')]){case'0':ut[_0x1b64eb('0x1b')](_0x3dc112,0x0,_0x1b64eb('0x118')),rpcDb[_0x1b64eb('0x13')](_0x3dc112,_0x1b64eb('0x43'));break;case'3':ut[_0x1b64eb('0x1b')](_0x3dc112,0x3,_0x1b64eb('0x26')),rpcDb[_0x1b64eb('0x13')](_0x3dc112,_0x1b64eb('0x149'));break;case'5':ut[_0x1b64eb('0x1b')](_0x3dc112,0x5,_0x1b64eb('0x93')),rpcDb[_0x1b64eb('0x13')](_0x3dc112,'[callProgressDetectingAgent][logBusy]');break;case'8':ut['logAgent'](_0x3dc112,0x8,_0x1b64eb('0x2')),rpcDb[_0x1b64eb('0x13')](_0x3dc112,_0x1b64eb('0x20'));break;case'22':ut['logAgent'](_0x3dc112,0x16,'AnswerAGI'),rpcDb['createAgentHistory'](_0x3dc112,_0x1b64eb('0x10f'));break;default:ut[_0x1b64eb('0x1b')](_0x3dc112,0xc,_0x4bbc68[_0x1b64eb('0x47')]),rpcDb[_0x1b64eb('0x13')](_0x3dc112,_0x1b64eb('0x20'));}ut[_0x1b64eb('0xe0')](_0x31098c,_0x1b64eb('0x32')),logger[_0x1b64eb('0x95')](_0x1b64eb('0x82'),_0x3dc112[_0x1b64eb('0x2b')],_0x1b64eb('0xe8'),_0x31098c[_0x1b64eb('0x91')],_0x1b64eb('0xfa'),_0x31098c['originated']),delete this['actions'][_0x3dc112['uniqueid']];},Preview['prototype'][_0x40dfd9('0x130')]=function(_0x1c7cb9,_0x42556b,_0x5e379d,_0x41bd96,_0x32e1e9){const _0x5ebafb=this;return new Promise(function(_0x3ac301,_0x4c0efb){const _0x4f4924=a1087_0x12e9;if(_[_0x4f4924('0x133')](_0x42556b)||_['isNil'](_0x42556b['Contact'])||_[_0x4f4924('0x133')](_0x42556b['Contact'][_0x4f4924('0x2c')])||_['isNil'](_0x42556b[_0x4f4924('0xd')])){_0x4c0efb(ut['message'](_0x4f4924('0xf2'),_0x41bd96,_0x32e1e9));return;}const _0x232fd8=uuid['v4'](),_0x3c805c=_0x5ebafb[_0x4f4924('0x71')][_0x42556b[_0x4f4924('0x111')][_0x4f4924('0x91')]],_0x15ded3=_0x5e379d?_0x5ebafb[_0x4f4924('0x135')][_0x5e379d]['id']:undefined;_0x5ebafb[_0x4f4924('0xc')][_0x232fd8]=new Action(_0x42556b,_0x3c805c,_0x232fd8,_0x5e379d,_0x15ded3);const _0x42d125=_0x5ebafb[_0x4f4924('0xc')][_0x232fd8];_0x42d125['unlockAgent']=_0x41bd96,_0x42d125['activeContact']=_0x32e1e9,_0x42d125['lookAgent']=_0x5e379d,_[_0x4f4924('0x76')](_0x1c7cb9)?_0x5ebafb[_0x4f4924('0xd6')](_0x42d125,_0x3c805c,_0x42556b,_0x5e379d)[_0x4f4924('0xe3')](function(_0x157840){const _0x98bfcb=_0x4f4924;logger[_0x98bfcb('0x95')]('[Preview][execCall][success]',_0x98bfcb('0x5')+_0x42d125[_0x98bfcb('0x114')]+'\x20IdHopper:\x20'+_0x42d125[_0x98bfcb('0x10e')],JSON[_0x98bfcb('0xfd')](_0x157840)),ami[_0x98bfcb('0x7d')](_0x98bfcb('0x6f'),ut[_0x98bfcb('0x12e')](_0x42d125,_0x98bfcb('0x9e'))),_0x3ac301(ut[_0x98bfcb('0x144')](_0x98bfcb('0xcc')));})[_0x4f4924('0x1')](function(_0x5333f0){const _0x5147ea=_0x4f4924;ut['logger'](_0x5147ea('0x41'),_0x5333f0),_0x4c0efb(ut['message']('Call\x20failed',_0x41bd96,_0x32e1e9));}):(_0x3c805c['outboundBlacklistCallsDay']+=0x1,ut[_0x4f4924('0xd4')](_0x42d125),rpcDb['createHistory'](_0x42d125,_0x4f4924('0x9c')),delete _0x5ebafb[_0x4f4924('0xc')][_0x232fd8],_0x4c0efb(ut[_0x4f4924('0x144')]('Contact\x20in\x20black\x20List',_0x41bd96,_0x32e1e9)));});},Preview['prototype']['isTrunkReachable']=function(_0x1679a1){const _0x1e97a4=_0x40dfd9;return!_[_0x1e97a4('0x133')](_0x1679a1)&&!_[_0x1e97a4('0x133')](_0x1679a1[_0x1e97a4('0x91')])&&!_[_0x1e97a4('0x133')](_0x1679a1[_0x1e97a4('0xce')])&&_0x1679a1['active']&&!_[_0x1e97a4('0x133')](this[_0x1e97a4('0x86')][util[_0x1e97a4('0xb5')](_0x1e97a4('0x35'),_0x1679a1[_0x1e97a4('0x91')])])&&!_[_0x1e97a4('0x133')](this[_0x1e97a4('0x86')][util[_0x1e97a4('0xb5')](_0x1e97a4('0x35'),_0x1679a1[_0x1e97a4('0x91')])][_0x1e97a4('0x68')])&&(this[_0x1e97a4('0x86')][util[_0x1e97a4('0xb5')](_0x1e97a4('0x35'),_0x1679a1[_0x1e97a4('0x91')])]['status']==='reachable'||this[_0x1e97a4('0x86')][util[_0x1e97a4('0xb5')](_0x1e97a4('0x35'),_0x1679a1[_0x1e97a4('0x91')])][_0x1e97a4('0x68')]==='unmonitored');},Preview[_0x40dfd9('0x10b')]['run']=function(_0x34acea,_0x3e46d0){const _0x359edc=this;return new Promise(function(_0x71cd97,_0xe5435a){const _0x8c4631=a1087_0x12e9;_0x359edc[_0x8c4631('0xd7')](_0x34acea,_0x3e46d0)[_0x8c4631('0xe3')](function(_0xbc477d){const _0x3bea63=_0x8c4631;_0x71cd97(_['pick'](_0xbc477d,[_0x3bea63('0x144')]));})[_0x8c4631('0x1')](function(_0x41f8da){const _0x106d4d=_0x8c4631;_0x41f8da[_0x106d4d('0x69')]&&rpcDb[_0x106d4d('0xaf')](_0x34acea),_0x41f8da[_0x106d4d('0xce')]&&rpcDb['disableContact'](_0x34acea),_0xe5435a(_[_0x106d4d('0x18')](_0x41f8da,[_0x106d4d('0x144')]));});});},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xd7')]=function(_0x5f429a,_0x20b55c){const _0x4965b6=this;return new Promise(function(_0x5df087,_0x585eee){const _0x14bd86=a1087_0x12e9;let _0x4c46aa,_0x5846f9;rpcDb[_0x14bd86('0x127')](_0x5f429a)['then'](function(_0x92b97f){const _0x1b08a8=_0x14bd86;!_['isNil'](_0x92b97f[0x0])&&(_0x5846f9=_0x92b97f[0x0]['recallme']?![]:!![],_0x4c46aa=_0x92b97f[0x0][_0x1b08a8('0x74')]?!![]:![],_0x4c46aa=_0x20b55c?!![]:_0x4c46aa);const _0x345d8d=_0x4965b6[_0x1b08a8('0x89')](_0x92b97f);_0x345d8d[_0x1b08a8('0x36')]?rpcDb[_0x1b08a8('0x24')](_['pick'](_0x92b97f[0x0],[_0x1b08a8('0xd'),_0x1b08a8('0x14e')]))[_0x1b08a8('0xe3')](function(_0x1ca662){const _0x4aae07=_0x1b08a8;_0x4965b6[_0x4aae07('0x130')](_0x1ca662,_0x92b97f[0x0],_0x20b55c,_0x5846f9,_0x4c46aa)[_0x4aae07('0xe3')](function(_0x1b1d5a){_0x5df087(_0x1b1d5a);})['catch'](function(_0x4523d1){_0x585eee(_0x4523d1);});})['catch'](function(_0x31faca){const _0x5f53a1=_0x1b08a8;ut['logger']('[Preview][checkIsBlackList]',_0x31faca),_0x585eee(ut[_0x5f53a1('0x144')](_0x5f53a1('0x94'),_0x5846f9,_0x4c46aa));}):_0x585eee(ut['message'](_0x345d8d['message'],_0x5846f9,_0x4c46aa));})[_0x14bd86('0x1')](function(_0x47b3fe){const _0x48f837=_0x14bd86;ut['logger'](_0x48f837('0x143'),_0x47b3fe),_0x585eee(ut['message'](_0x48f837('0x94'),![],!![]));});});},Preview['prototype'][_0x40dfd9('0x89')]=function(_0x58d920){const _0xa5a7cb=_0x40dfd9;if(_['isNil'](_0x58d920)||_[_0xa5a7cb('0x76')](_0x58d920)||!_[_0xa5a7cb('0x133')](_0x58d920[0x0][_0xa5a7cb('0x146')])&&_[_0xa5a7cb('0x133')](_0x58d920[0x0]['Agent'][_0xa5a7cb('0x91')]))return ut[_0xa5a7cb('0xa0')](_0xa5a7cb('0x57'),_0x58d920),{'isValid':![],'message':_0xa5a7cb('0x147')};const _0x41968a=this[_0xa5a7cb('0x71')][_0x58d920[0x0]['Queue'][_0xa5a7cb('0x91')]];_0x41968a[_0xa5a7cb('0x144')]=_0xa5a7cb('0x2d');if(_['isNil'](_0x41968a))return ut[_0xa5a7cb('0xa0')](_0xa5a7cb('0x109'),_0x41968a),{'isValid':![],'message':_0xa5a7cb('0x48')};if(!this[_0xa5a7cb('0x142')](_0x41968a[_0xa5a7cb('0x23')])){ut[_0xa5a7cb('0xa0')](_0xa5a7cb('0x12b'),'campaign\x20Name:\x20'+_0x41968a[_0xa5a7cb('0x91')]+_0xa5a7cb('0x50'));if(!this[_0xa5a7cb('0x142')](_0x41968a[_0xa5a7cb('0x34')]))return ut['logger'](_0xa5a7cb('0x12b'),_0x41968a['name']+_0xa5a7cb('0x8')),{'isValid':![],'message':_0xa5a7cb('0x12c')};}if(!ut[_0xa5a7cb('0x14')](_0x41968a[_0xa5a7cb('0xff')]))return ut[_0xa5a7cb('0xa0')](_0xa5a7cb('0xde'),_0x41968a['name']+_0xa5a7cb('0xe2')),{'isValid':![],'message':_0xa5a7cb('0xf9')+_0x41968a['name']+_0xa5a7cb('0xe2')};return{'isValid':!![],'message':_0xa5a7cb('0xae')};},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xd6')]=function(_0x24328f,_0x27a615,_0x40eccc,_0x37dd85){const _0x5b0f92=this;return new Promise(function(_0x287bb9,_0x370c96){const _0x22d7f0=a1087_0x12e9,_0x2c2a35=_0x24328f[_0x22d7f0('0x2b')],_0x246c8d=_0x5b0f92[_0x22d7f0('0x142')](_0x27a615['Trunk'])?util[_0x22d7f0('0xb5')](_0x22d7f0('0x101'),_0x27a615['Trunk'][_0x22d7f0('0x91')],_[_0x22d7f0('0x133')](_0x27a615[_0x22d7f0('0xd0')])?'':_0x27a615['dialPrefix'][_0x22d7f0('0x3a')]()||'',_0x27a615[_0x22d7f0('0xb7')]>0x0?_0x40eccc['Contact']['phone'][_0x22d7f0('0x8d')](_0x27a615[_0x22d7f0('0xb7')]):_0x40eccc['Contact']['phone']):util[_0x22d7f0('0xb5')](_0x22d7f0('0x101'),_[_0x22d7f0('0x133')](_0x27a615[_0x22d7f0('0x34')])?_0x27a615[_0x22d7f0('0x23')][_0x22d7f0('0x91')]:_0x27a615[_0x22d7f0('0x34')][_0x22d7f0('0x91')],_[_0x22d7f0('0x133')](_0x27a615[_0x22d7f0('0xd0')])?'':_0x27a615[_0x22d7f0('0xd0')][_0x22d7f0('0x3a')]()||'',_0x27a615['dialCutDigit']>0x0?_0x40eccc['Contact'][_0x22d7f0('0x2c')][_0x22d7f0('0x8d')](_0x27a615[_0x22d7f0('0xb7')]):_0x40eccc['Contact']['phone']),_0x37675e=_0x5b0f92[_0x22d7f0('0x142')](_0x27a615[_0x22d7f0('0x23')])?ut['getCallerId'](_0x27a615[_0x22d7f0('0x23')][_0x22d7f0('0x25')],_0x27a615[_0x22d7f0('0xea')],_0x27a615[_0x22d7f0('0xe')]>0x0?ut['getCallerIdRandom'](_0x27a615[_0x22d7f0('0x123')],_0x27a615[_0x22d7f0('0xe')]):_0x27a615[_0x22d7f0('0x123')]):ut['getCallerId'](_[_0x22d7f0('0x133')](_0x27a615[_0x22d7f0('0x34')])?_0x27a615[_0x22d7f0('0x23')][_0x22d7f0('0x25')]:_0x27a615[_0x22d7f0('0x34')][_0x22d7f0('0x25')],_0x27a615[_0x22d7f0('0xea')],_0x27a615[_0x22d7f0('0xe')]>0x0?ut[_0x22d7f0('0xab')](_0x27a615[_0x22d7f0('0x123')],_0x27a615[_0x22d7f0('0xe')]):_0x27a615['dialOriginateCallerIdNumber']);_0x37675e&&(_0x24328f[_0x22d7f0('0xee')]=ut[_0x22d7f0('0xdf')](_0x37675e),_0x24328f[_0x22d7f0('0xf7')]=ut[_0x22d7f0('0x129')](_0x37675e));const _0x3c7d09=ut['addVariables'](_0x27a615,_0x40eccc,_0x246c8d,_0x37675e,_0x2c2a35,_0x24328f);_[_0x22d7f0('0x88')](_0x24328f,ut[_0x22d7f0('0x8b')](_0x3c7d09)),_0x24328f[_0x22d7f0('0x3b')]=moment()[_0x22d7f0('0xb5')](_0x22d7f0('0x17')),ami['Action'](ut[_0x22d7f0('0x4d')](_0x24328f,_0x27a615,_0x3c7d09,_0x24328f[_0x22d7f0('0x139')],_0x37dd85))[_0x22d7f0('0xe3')](function(_0x18d8f4){const _0x125df9=_0x22d7f0;_0x27a615['originated']+=0x1,logger[_0x125df9('0x95')](_0x125df9('0x9a'),_0x2c2a35,_0x125df9('0xe8'),_0x27a615[_0x125df9('0x91')],_0x125df9('0xfa'),_0x27a615[_0x125df9('0xa8')]),_0x287bb9(_0x18d8f4);})['catch'](function(_0x1d3f9f){const _0x3eae63=_0x22d7f0;ut[_0x3eae63('0x1b')](_0x24328f,0xe,_0x3eae63('0x58')),rpcDb[_0x3eae63('0x13')](_0x24328f,_0x3eae63('0x106')),_0x370c96(_0x1d3f9f);});});},Preview[_0x40dfd9('0x10b')]['syncNewExten']=function(_0x38fa82){const _0x440cb1=_0x40dfd9;this[_0x440cb1('0xc')][_0x38fa82[_0x440cb1('0x105')]]&&(this['actions'][_0x38fa82[_0x440cb1('0x105')]][_0x440cb1('0xbf')]=_0x38fa82[_0x440cb1('0xbf')]);},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xb9')]=function(_0x18acfc){const _0xa9a102=_0x40dfd9,_0x408b3a=this,_0x3fd6fe=this[_0xa9a102('0xc')][_0x18acfc[_0xa9a102('0x90')]];if(_0x3fd6fe){_0x3fd6fe['lookAgent']&&this[_0xa9a102('0x135')][_0x3fd6fe['lookAgent']]&&ut[_0xa9a102('0xdc')](_0x3fd6fe,this[_0xa9a102('0x135')][_0x3fd6fe[_0xa9a102('0xc2')]][_0xa9a102('0x91')],this[_0xa9a102('0x135')][_0x3fd6fe[_0xa9a102('0xc2')]]['id']);const _0x2f6232=_[_0xa9a102('0x9')](_0x3fd6fe);_0x2f6232[_0xa9a102('0x4b')]=moment()[_0xa9a102('0xb5')](_0xa9a102('0x17'));const _0x3e8455=_0x408b3a[_0xa9a102('0x71')][_0x3fd6fe[_0xa9a102('0x114')]];ut['isFailure'](_0x18acfc[_0xa9a102('0x10d')])?(_0x3fd6fe['unlockAgent']&&rpcDb[_0xa9a102('0xaf')](_0x3fd6fe[_0xa9a102('0x10e')]),_0x3fd6fe['activeContact']&&rpcDb['disableContact'](_0x3fd6fe[_0xa9a102('0x10e')]),ami[_0xa9a102('0x7d')](_0xa9a102('0x134'),ut['buildObj'](_0x3fd6fe,_0xa9a102('0xeb'))),this[_0xa9a102('0xc6')](_0x2f6232,_0x3e8455,_0x18acfc)):(_0x3fd6fe[_0xa9a102('0x3b')]=moment()[_0xa9a102('0xb5')]('YYYY-MM-DD\x20HH:mm:ss'),ut['logAgent'](_0x2f6232,0x4,_0xa9a102('0x112')),rpcDb[_0xa9a102('0x13')](_0x2f6232,_0xa9a102('0x44')));}},Preview[_0x40dfd9('0x10b')]['syncHangup']=function(_0xe982a6){const _0x454a10=_0x40dfd9,_0x4ef1ac=this['actions'][_0xe982a6[_0x454a10('0x105')]];let _0x2e4d81;_0x4ef1ac&&(_0x2e4d81=this[_0x454a10('0x71')][_0x4ef1ac[_0x454a10('0x114')]],logger[_0x454a10('0x95')]('[syncHangup][talking]',_0xe982a6[_0x454a10('0x105')],'\x20Queue',_0x2e4d81[_0x454a10('0x91')],_0x454a10('0xbc'),_0x2e4d81['pTalking']));if(this[_0x454a10('0xc')][_0xe982a6[_0x454a10('0x105')]]&&_0xe982a6[_0x454a10('0x105')]!==_0xe982a6[_0x454a10('0x2b')]){if(_0xe982a6[_0x454a10('0x62')]==='16'&&this[_0x454a10('0xc')][_0xe982a6[_0x454a10('0x105')]][_0x454a10('0x5f')])this['callProgressDetectingCustomer'](_0xe982a6,_0xe982a6[_0x454a10('0x105')],_0xe982a6[_0x454a10('0x62')]);else this[_0x454a10('0xc')][_0xe982a6['linkedid']][_0x454a10('0x5f')]&&(logger[_0x454a10('0x95')]('[syncHangup][talking][cause]',_0xe982a6[_0x454a10('0x105')],_0xe982a6[_0x454a10('0x62')],'\x20Queue',_0x2e4d81['name'],_0x454a10('0xbc'),_0x2e4d81[_0x454a10('0xa5')]),this['callProgressDetectingCustomer'](_0xe982a6,_0xe982a6[_0x454a10('0x105')],_0xe982a6['cause']));}else{if(_0x4ef1ac&&_[_0x454a10('0x133')](_0x4ef1ac[_0x454a10('0x10a')])&&_0x2e4d81[_0x454a10('0x3f')]&&_0xe982a6['linkedid']===_0xe982a6[_0x454a10('0x2b')]&&_[_0x454a10('0x133')](_0xe982a6['reason'])&&_0xe982a6[_0x454a10('0x62')]==='16'&&_0xe982a6[_0x454a10('0xf8')]==='6'&&_[_0x454a10('0xca')](_0x4ef1ac[_0x454a10('0x8f')]))_0x4ef1ac[_0x454a10('0xd8')]&&rpcDb[_0x454a10('0xaf')](_0x4ef1ac[_0x454a10('0x10e')]),_0x4ef1ac[_0x454a10('0x139')]&&rpcDb[_0x454a10('0x3e')](_0x4ef1ac[_0x454a10('0x10e')]),_0xe982a6[_0x454a10('0x47')]='22',this[_0x454a10('0xc6')](_0x4ef1ac,_0x2e4d81,_0xe982a6);else{if(_0x4ef1ac&&_0x4ef1ac['transfer']){if(_0xe982a6[_0x454a10('0x62')]==='16'&&this[_0x454a10('0xc')][_0xe982a6[_0x454a10('0x105')]][_0x454a10('0x5f')])logger[_0x454a10('0x95')](_0x454a10('0xe7'),_0xe982a6[_0x454a10('0x105')],_0xe982a6[_0x454a10('0x62')],_0x454a10('0xe8'),_0x2e4d81['name'],_0x454a10('0xbc'),_0x2e4d81[_0x454a10('0xa5')]),this[_0x454a10('0xaa')](_0xe982a6,_0xe982a6['linkedid'],_0xe982a6[_0x454a10('0x62')]);else this['actions'][_0xe982a6['linkedid']]['dialAnswer']&&(logger['info'](_0x454a10('0x100'),_0xe982a6[_0x454a10('0x105')],_0xe982a6[_0x454a10('0x62')],_0x454a10('0xe8'),_0x2e4d81['name'],_0x454a10('0xbc'),_0x2e4d81[_0x454a10('0xa5')]),this[_0x454a10('0xaa')](_0xe982a6,_0xe982a6['linkedid'],_0xe982a6[_0x454a10('0x62')]));}}}},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0x138')]=function(_0x14e422){const _0xb60d6=_0x40dfd9;this[_0xb60d6('0xc')][_0x14e422[_0xb60d6('0xa')]]&&_0x14e422[_0xb60d6('0xa')]!==_0x14e422[_0xb60d6('0x11f')]&&this[_0xb60d6('0xaa')](_0x14e422,_0x14e422[_0xb60d6('0xa')],_0x14e422[_0xb60d6('0xb8')]);},Preview[_0x40dfd9('0x10b')]['syncHangupRequest']=function(_0x1718c7){const _0x4c8988=_0x40dfd9;this[_0x4c8988('0xc')][_0x1718c7[_0x4c8988('0x105')]]&&_0x1718c7['linkedid']!==_0x1718c7[_0x4c8988('0x2b')]&&!this[_0x4c8988('0xc')][_0x1718c7[_0x4c8988('0x105')]][_0x4c8988('0x5f')]&&(_0x1718c7[_0x4c8988('0x62')]==='1'&&this['callProgressDetectingCustomer'](_0x1718c7,_0x1718c7[_0x4c8988('0x105')],_0x1718c7[_0x4c8988('0x62')]));},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0x85')]=function(_0x2cf2f1,_0x1a9730,_0x28ae4a){const _0x1fe164=_0x40dfd9;this['actions'][_0x2cf2f1]&&(_[_0x1fe164('0x133')](this['actions'][_0x2cf2f1][_0x1fe164('0x13e')])&&(this[_0x1fe164('0xc')][_0x2cf2f1]['variables']={}),this[_0x1fe164('0xc')][_0x2cf2f1][_0x1fe164('0x13e')][_0x1a9730]=_0x28ae4a);},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0x7f')]=function(_0x5be619){const _0x17bb15=_0x40dfd9;try{!_[_0x17bb15('0x133')](_0x5be619)&&(ut[_0x17bb15('0xec')](_['keys'](_0x5be619['variable'])[0x0])&&this['addVariable'](_0x5be619['uniqueid'],_['keys'](_0x5be619[_0x17bb15('0x4')])[0x0],_0x5be619[_0x17bb15('0x12')]));}catch(_0x3fb0d2){logger[_0x17bb15('0x77')]('[syncVarSet][Preview]',util['inspect'](_0x3fb0d2,{'showHidden':![],'depth':null}));}},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xc0')]=function(_0x2436ea){const _0x15acec=_0x40dfd9;_0x2436ea&&(this[_0x15acec('0xc')][_0x2436ea[_0x15acec('0x30')]]&&(this['actions'][_0x2436ea[_0x15acec('0x30')]]['transfer']=!![]));},Preview[_0x40dfd9('0x10b')][_0x40dfd9('0xcb')]=function(_0x279c4c){const _0x1655d1=_0x40dfd9;_0x279c4c&&(this[_0x1655d1('0xc')][_0x279c4c[_0x1655d1('0xf6')]]&&(this[_0x1655d1('0xc')][_0x279c4c[_0x1655d1('0xf6')]][_0x1655d1('0x8f')]=!![]));},module[_0x40dfd9('0x60')]=Preview; \ No newline at end of file +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 diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index dc54113..91d7b7a 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1088_0x2b6d=['queue','moveContactManagedDialer','type','unlockContact','COMPLETED','../rpc/voiceQueueReport','assigned','checkIsBlackList','queuecallercomplete','[unlockContact]\x20','[rescheduleContactInQueue]\x20','util','resolve','[getContactPreview]\x20','exten','queuecallercompleteAt','createHistory','queuecallerleaveAt','disableContact','answertime','queuecallerexitreason','from-sip','countReScheduled','[voiceQueueReport]\x20','holdtime','context','uniqueid','lastAssignedTo','[activeContact]\x20','getContactRecallMe','[countReScheduled]\x20','active','../rpc/cmHopper','../rpc/agentReportPreview','[GetContactRecallMe]\x20','UserId','rescheduleContact','connectedlinename','../rpc/cmHopperBlack','../rpc/cmHopperHistory','xcally-motion-preview','calleridnum','[createHistory]\x20','createAgentHistory','then','membername','create','catch','rescheduleContactInQueue','crateCustomerReportQueue','getContactPreview','calleridname','endtime'];(function(_0x5f1103,_0x2b6d2b){const _0x1186d1=function(_0x271a11){while(--_0x271a11){_0x5f1103['push'](_0x5f1103['shift']());}};_0x1186d1(++_0x2b6d2b);}(a1088_0x2b6d,0xe3));const a1088_0x1186=function(_0x5f1103,_0x2b6d2b){_0x5f1103=_0x5f1103-0x0;let _0x1186d1=a1088_0x2b6d[_0x5f1103];return _0x1186d1;};const _0x3e98fd=a1088_0x1186;'use strict';const util=require(_0x3e98fd('0x31')),logger=require('../../../config/logger')('preview'),cmHopper=require(_0x3e98fd('0x11')),cmHopperHistory=require(_0x3e98fd('0x18')),cmHopperBlack=require(_0x3e98fd('0x17')),agentReportPreview=require(_0x3e98fd('0x12')),voiceQueueReport=require(_0x3e98fd('0x2b'));function loggerCatch(_0x271a11){return function(_0x23dcd1){logger['error'](_0x271a11,util['inspect'](_0x23dcd1,{'showHidden':![],'depth':null}));};}function create(_0x202c45){const _0x41c423=_0x3e98fd;return Promise[_0x41c423('0x32')]()['then'](cmHopperHistory[_0x41c423('0x1')](_0x202c45))['catch'](loggerCatch(_0x41c423('0x1b')));}function createAgent(_0x365d32){const _0x4f986d=_0x3e98fd;return Promise[_0x4f986d('0x32')]()['then'](agentReportPreview['createHistory'](_0x365d32))[_0x4f986d('0x20')](loggerCatch('[createHistory]\x20'));}function moveContact(_0x45921b){const _0x1995da=_0x3e98fd;return Promise['resolve']()['then'](cmHopper[_0x1995da('0x27')](_0x45921b,!![]))[_0x1995da('0x20')](loggerCatch('[moveContactManagedDialer]\x20'));}exports[_0x3e98fd('0x2d')]=function(_0x4da7a6){const _0x1e2c9f=_0x3e98fd;return Promise[_0x1e2c9f('0x32')]()[_0x1e2c9f('0x1d')](cmHopperBlack[_0x1e2c9f('0x2d')](_0x4da7a6))[_0x1e2c9f('0x20')](loggerCatch('[checkIsBlackList]\x20'));},exports['getContactPreview']=function(_0x2ef838){const _0xc5e425=_0x3e98fd;return Promise[_0xc5e425('0x32')]()[_0xc5e425('0x1d')](cmHopper[_0xc5e425('0x23')](_0x2ef838))[_0xc5e425('0x20')](loggerCatch(_0xc5e425('0x33')));},exports[_0x3e98fd('0x1')]=function(_0x18e931,_0x13a64a){create(_0x18e931)['catch'](loggerCatch(_0x13a64a)),moveContact(_0x18e931)['catch'](loggerCatch(_0x13a64a));},exports[_0x3e98fd('0x1c')]=function(_0x47b28a,_0x9dd777){const _0x38fb12=_0x3e98fd;createAgent(_0x47b28a)[_0x38fb12('0x20')](loggerCatch(_0x9dd777));},exports['createCustomerHistory']=function(_0x3105df,_0x28759a){const _0x12c644=_0x3e98fd;create(_0x3105df)[_0x12c644('0x20')](loggerCatch(_0x28759a));},exports['createCustomerFinal']=function(_0x7a7aa9,_0xcbcb8){const _0x3c95eb=_0x3e98fd;moveContact(_0x7a7aa9)[_0x3c95eb('0x20')](loggerCatch(_0xcbcb8));},exports[_0x3e98fd('0x15')]=function(_0x48a74d,_0x52779e,_0x453c02){const _0x3038ee=_0x3e98fd;return _0x52779e&&(_0x48a74d[_0x3038ee('0x14')]=null),_0x453c02&&(_0x48a74d[_0x3038ee('0x10')]=![]),Promise[_0x3038ee('0x32')]()[_0x3038ee('0x1d')](cmHopper[_0x3038ee('0x15')](_0x48a74d))['catch'](loggerCatch('[rescheduleContact]\x20'));},exports[_0x3e98fd('0x7')]=function(_0x456a5b){const _0x4d1b61=_0x3e98fd;return Promise[_0x4d1b61('0x32')]()['then'](cmHopper[_0x4d1b61('0x7')](_0x456a5b))[_0x4d1b61('0x20')](loggerCatch(_0x4d1b61('0xf')));},exports[_0x3e98fd('0x29')]=function(_0xdff257){const _0x287e40=_0x3e98fd;return Promise[_0x287e40('0x32')]()[_0x287e40('0x1d')](cmHopper['unlockContact']({'UserId':null},_0xdff257,0x1))[_0x287e40('0x20')](loggerCatch(_0x287e40('0x2f')));},exports[_0x3e98fd('0x3')]=function(_0x348a56){const _0x3ed791=_0x3e98fd;return Promise['resolve']()[_0x3ed791('0x1d')](cmHopper[_0x3ed791('0x29')]({'active':![]},_0x348a56,0x1))[_0x3ed791('0x20')](loggerCatch(_0x3ed791('0xd')));},exports[_0x3e98fd('0x22')]=function(_0x1028c8){const _0x5f07d6=_0x3e98fd,_0x3f3771={};return _0x3f3771[_0x5f07d6('0x28')]=_0x1028c8[_0x5f07d6('0x28')],_0x3f3771[_0x5f07d6('0xb')]=_0x1028c8['uniqueid'],_0x3f3771[_0x5f07d6('0x1a')]=_0x1028c8[_0x5f07d6('0x1a')],_0x3f3771[_0x5f07d6('0x24')]=_0x1028c8[_0x5f07d6('0x24')],_0x3f3771[_0x5f07d6('0x26')]=_0x1028c8['queue'],_0x3f3771['queuecallerjoinAt']=_0x1028c8[_0x5f07d6('0x4')],_0x3f3771[_0x5f07d6('0x2')]=_0x1028c8[_0x5f07d6('0x4')],_0x3f3771[_0x5f07d6('0x2e')]=0x1,_0x3f3771[_0x5f07d6('0x0')]=_0x1028c8[_0x5f07d6('0x25')],_0x3f3771[_0x5f07d6('0x16')]=_0x1028c8[_0x5f07d6('0x1e')],_0x3f3771[_0x5f07d6('0xa')]=_0x5f07d6('0x6'),_0x3f3771[_0x5f07d6('0x34')]=_0x5f07d6('0x19'),_0x3f3771[_0x5f07d6('0x9')]=0x0,_0x3f3771[_0x5f07d6('0x2c')]=0x1,_0x3f3771[_0x5f07d6('0xc')]=_0x1028c8[_0x5f07d6('0x1e')],_0x3f3771[_0x5f07d6('0x5')]=_0x5f07d6('0x2a'),Promise[_0x5f07d6('0x32')]()[_0x5f07d6('0x1d')](voiceQueueReport[_0x5f07d6('0x1f')](_0x3f3771))['catch'](loggerCatch(_0x5f07d6('0x8')));},exports[_0x3e98fd('0xe')]=function(_0x1f0a55,_0x2a0c3d){const _0x10a10a=_0x3e98fd;return Promise[_0x10a10a('0x32')]()[_0x10a10a('0x1d')](cmHopper['getContactRecallMe'](_0x1f0a55,_0x2a0c3d))[_0x10a10a('0x20')](loggerCatch(_0x10a10a('0x13')));},exports[_0x3e98fd('0x21')]=function(_0x92e82e){const _0x494f67=_0x3e98fd;return Promise[_0x494f67('0x32')]()[_0x494f67('0x1d')](cmHopper[_0x494f67('0x15')](_0x92e82e,!![],!![]))[_0x494f67('0x20')](loggerCatch(_0x494f67('0x30')));}; \ No newline at end of file +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 diff --git a/server/services/ami/preview/util/util.js b/server/services/ami/preview/util/util.js index 2c62108..bd017b9 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1089_0x1f45=['undefined','addVariables','loggerCatch','pow','util','pTalking','YYYY-MM-DD\x20HH:mm:ss','rtpaudioqosrttbridged','xmd-dialurl','inspect','random','preview','loggerError','callback','string','countnoanswerretry','xmd-cdrtype','getCallerIdRandom','logLookAgent','bridgepeer','xmd-dialtimeout','idContact','[decrementTalkink]\x20object\x20talking\x20is\x20negative','type','Contact','minutes','rtpaudioqosloss','name','xmd-queue','originate','clone','buildAcw','originatecalleridnum','xmd-voicequeueid','message','bridgepvtcallid','originated','cloneAction','isUndefined','rtpaudioqoslossbridged','extractCalleridNumber','dialQueueProject2','monitor_format','xmd-dialoptions','statedesc','membername','countcongestionretry','milliseconds','CampaignId','updatedAt','reachable','sipcallid','getDiff','active','dialer','channelAgent','responsetime','queue','countbusyretry','xmd-listid','dialPreviewUrl','isEmpty','agentReadyId','timeout','match','callbackat','Queue','logAgent','xmd-contactid','not_inuse','callbackuniqueid','Failure','VoiceQueueId','Global','error','ListId','state','[decrementTalkink]\x20is\x20null\x20or\x20undefined','seconds','tags','rtpaudioqos','filterKey','totalGlobal','decrementTalkink','Blacklist','interface','createdAt','countagentrejectretry','\x22%s\x22\x20<%s>','NONE','IsNotLoggedIn','replace','%s%s','lastevent','from-sip','xcally-motion-preview','buildObj','calleridname','toLower','\x22rtTxX%s%s\x22','dialAnswer','agiIp','\x22agi://%s/square,%s\x22','scheduledat','XMD-','rtpaudioqosbridged','originatecalleridname','calleridnum','updateOriginated','UserId','format','\x22\x22\x20<>','answertime','uniqueid','isNil','ContactId','isActive','isFailure','endtime','logger2','rtpaudioqosjitter','dialQueueProject','countglobal','getCallerId','info','logCustomer','campaigntype','_XCALLY_MIXMONITOR_UNIQUEID','rtpaudioqosjitterbridged','toLowerVariables','logger','rtpaudioqosrtt','diff','push','starttime','moment'];(function(_0x3030ac,_0x1f45d0){const _0x42a900=function(_0x577283){while(--_0x577283){_0x3030ac['push'](_0x3030ac['shift']());}};_0x42a900(++_0x1f45d0);}(a1089_0x1f45,0x1cd));const a1089_0x42a9=function(_0x3030ac,_0x1f45d0){_0x3030ac=_0x3030ac-0x0;let _0x42a900=a1089_0x1f45[_0x3030ac];return _0x42a900;};const _0xd4d6ef=a1089_0x42a9;'use strict';const util=require(_0xd4d6ef('0x57')),_=require('lodash'),moment=require(_0xd4d6ef('0x52')),logger=require('../../../../config/logger')(_0xd4d6ef('0x5e')),{getConfigService}=require('../../../../config/config.service');function getSeconds(_0x577283,_0x11b7ee){const _0x33f969=_0xd4d6ef,_0x4e79ce=moment(_0x577283)[_0x33f969('0x82')](0x0),_0x5c86f2=moment(_0x11b7ee)[_0x33f969('0x82')](0x0);return _0x4e79ce[_0x33f969('0x4f')](_0x5c86f2,_0x33f969('0x19'));}exports[_0xd4d6ef('0x55')]=function(_0x55d70c){return function(_0x41fc20){const _0x407386=a1089_0x42a9;logger[_0x407386('0x15')](_0x55d70c,util[_0x407386('0x5c')](_0x41fc20,{'showHidden':![],'depth':null}));};},exports[_0xd4d6ef('0x4d')]=function(_0x49e006,_0x4f15d6){const _0x34639c=_0xd4d6ef;logger[_0x34639c('0x47')](_0x49e006,util[_0x34639c('0x5c')](_0x4f15d6,{'showHidden':![],'depth':null}));},exports[_0xd4d6ef('0x5f')]=function(_0x5d98f5,_0x4fbe2d){const _0x274f1f=_0xd4d6ef;logger[_0x274f1f('0x15')](_0x5d98f5,util[_0x274f1f('0x5c')](_0x4fbe2d,{'showHidden':![],'depth':null}));},exports[_0xd4d6ef('0x42')]=function(_0x42ded2){return function(_0x339cee){const _0x1bab9c=a1089_0x42a9;logger[_0x1bab9c('0x47')](_0x42ded2,util[_0x1bab9c('0x5c')](_0x339cee,{'showHidden':![],'depth':null}));};},exports[_0xd4d6ef('0x75')]=function(_0x57ec5e,_0xf349d6,_0x2fc300){return{'message':_0x57ec5e,'unlock':_0xf349d6,'active':_0x2fc300};},exports[_0xd4d6ef('0x46')]=function(_0x5a508e,_0x440774,_0x516711){const _0x534ef0=_0xd4d6ef;if(!_[_0x534ef0('0x79')](_0x516711)&&_0x534ef0('0x61')===typeof _0x516711&&!_[_0x534ef0('0x8')](_0x516711)){if(!_['isUndefined'](_0x440774)&&_0x534ef0('0x61')===typeof _0x440774&&!_[_0x534ef0('0x8')](_0x440774))return util['format'](_0x534ef0('0x23'),_0x440774,_0x516711);return util[_0x534ef0('0x39')]('\x22%s\x22\x20<%s>',_0x516711,_0x516711);}if(!_[_0x534ef0('0x79')](_0x5a508e)&&_0x534ef0('0x61')===typeof _0x5a508e&&!_[_0x534ef0('0x8')](_0x5a508e))return _0x5a508e;return _0x534ef0('0x3a');},exports[_0xd4d6ef('0x3f')]=function(_0x57db93){const _0x4b5966=_0xd4d6ef;if(_[_0x4b5966('0x3d')](_0x57db93))return![];return _0x57db93;},exports[_0xd4d6ef('0x54')]=function(_0x2a7860,_0x83aaf,_0x42fbd9,_0x5d7569,_0x29158a,_0x281b27){const _0x6cc527=_0xd4d6ef,_0x5e4d42=getConfigService(),_0x56d034={'XMD-QUEUE':_0x83aaf['Queue']?_0x83aaf[_0x6cc527('0xd')][_0x6cc527('0x6e')]:'','XMD-CALLERID':_0x5d7569,'XMD-CALLERID-PREVIEW':_0x281b27?util['format']('\x22%s\x22\x20<%s>',_0x281b27[_0x6cc527('0x2c')],_0x281b27[_0x6cc527('0x36')]):_0x5d7569,'XMD-DIALID':_0x29158a,'XMD-CONTACTID':_0x83aaf[_0x6cc527('0x3e')],'XMD-CDRTYPE':_0x6cc527('0x1'),'CALLERID(all)':_0x5d7569,'XMD-VOICEQUEUEID':_0x83aaf[_0x6cc527('0x13')],'XMD-DIALCHANNEL':_0x42fbd9,'XMD-DIALTIMEOUT':_0x2a7860['dialOriginateTimeout']||0x1e,'XMD-DIALOPTIONS':util[_0x6cc527('0x39')](_0x6cc527('0x2e'),_0x2a7860[_0x6cc527('0x7c')]?'g':'',_[_0x6cc527('0x8')](_0x2a7860['monitor_format'])?'':'U(xcally-mixmonitor-context)'),'XMD-DIALURL':_0x2a7860[_0x6cc527('0x7')]||'','XMD-AGI':_0x2a7860[_0x6cc527('0x44')]?util[_0x6cc527('0x39')]('\x22agi://%s/square,%s\x22',_0x5e4d42[_0x6cc527('0x30')],_0x2a7860[_0x6cc527('0x44')]):_0x6cc527('0x24'),'XMD-AGIAFTER':_0x2a7860[_0x6cc527('0x7c')]?util[_0x6cc527('0x39')](_0x6cc527('0x31'),_0x5e4d42[_0x6cc527('0x30')],_0x2a7860[_0x6cc527('0x7c')]):_0x6cc527('0x24'),'XMD-ORIGINATECALLERIDNUM':_0x281b27?_0x281b27[_0x6cc527('0x73')]:'','XMD-ORIGINATECALLERIDNAME':_0x281b27?_0x281b27[_0x6cc527('0x35')]:'','XMD-DESTINATION':'xcally-motion-preview'};!_[_0x6cc527('0x8')](_0x2a7860[_0x6cc527('0x7d')])&&(_0x56d034[util[_0x6cc527('0x39')]('%s','_XCALLY_MIXMONITOR_FORMAT')]=_0x2a7860[_0x6cc527('0x7d')],_0x56d034[util[_0x6cc527('0x39')]('%s',_0x6cc527('0x4a'))]=_0x29158a);if(_0x83aaf&&_0x83aaf[_0x6cc527('0x6b')])for(const _0x5ddaca in _0x83aaf['Contact']){typeof _0x83aaf['Contact'][_0x5ddaca]!==_0x6cc527('0x53')&&(!_[_0x6cc527('0x3d')](_0x83aaf[_0x6cc527('0x6b')][_0x5ddaca])&&_0x5ddaca!=='id'&&_0x5ddaca!==_0x6cc527('0x1a')&&_0x5ddaca!==_0x6cc527('0x21')&&_0x5ddaca!==_0x6cc527('0x84')&&(_0x56d034[util['format'](_0x6cc527('0x27'),_0x6cc527('0x33'),_['toUpper'](_0x5ddaca))]=_0x83aaf['Contact'][_0x5ddaca]));}return _0x56d034;},exports[_0xd4d6ef('0x4c')]=function(_0xa89a9d){const _0x45bbde=_0xd4d6ef,_0x29d27c={};for(const _0x10e359 in _0xa89a9d){typeof _0xa89a9d[_0x10e359]!==_0x45bbde('0x53')&&(_0x29d27c[util[_0x45bbde('0x39')]('%s',_[_0x45bbde('0x2d')](_0x10e359))]=_0xa89a9d[_0x10e359]);}return{'variables':_0x29d27c};},exports[_0xd4d6ef('0x37')]=function(_0x5aea80,_0x4e0f46){const _0x1512fe=_0xd4d6ef;!_[_0x1512fe('0x3d')](_0x5aea80)?typeof _0x5aea80[_0x1512fe('0x77')]!==_0x1512fe('0x53')&&(_0x5aea80[_0x1512fe('0x77')]>0x0?_0x5aea80['originated']-=0x1:logger[_0x1512fe('0x15')]('[updateOriginated]\x20object\x20originated\x20is\x20negative',_0x4e0f46)):logger['error']('[updateOriginated]\x20is\x20null\x20or\x20undefined',_0x4e0f46);},exports['logBlacklist']=function(_0x3d09e8){const _0x5f4056=_0xd4d6ef,_0x36836f=moment()[_0x5f4056('0x39')](_0x5f4056('0x59'));_0x3d09e8[_0x5f4056('0x17')]=0xd,_0x3d09e8['statedesc']=_0x5f4056('0x1f'),_0x3d09e8['starttime']=_0x36836f,_0x3d09e8[_0x5f4056('0x3')]=_0x36836f,_0x3d09e8[_0x5f4056('0x41')]=_0x36836f;},exports[_0xd4d6ef('0xe')]=function(_0x5abc95,_0x33f448,_0x1686a8){const _0x13593a=_0xd4d6ef,_0x3980a0=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x5abc95['state']=_0x33f448,_0x5abc95['statedesc']=_0x1686a8,_0x5abc95['responsetime']=_0x3980a0,_0x5abc95['ringtime']=getSeconds(_0x5abc95[_0x13593a('0x3')],_0x5abc95[_0x13593a('0x51')]);},exports[_0xd4d6ef('0x65')]=function(_0x58b1fd,_0x10f317,_0x2f80dc){const _0x3f738f=_0xd4d6ef;_0x58b1fd[_0x3f738f('0x80')]=_0x10f317,_0x58b1fd['UserId']=_0x2f80dc;},exports[_0xd4d6ef('0x48')]=function(_0x590208,_0x37bcda,_0x298344){const _0x26d831=_0xd4d6ef,_0x6da82c=moment()[_0x26d831('0x39')]('YYYY-MM-DD\x20HH:mm:ss');_0x590208['state']=_0x37bcda,_0x590208[_0x26d831('0x7f')]=_0x298344,_0x590208['responsetime']=_0x590208['responsetime']?_0x590208[_0x26d831('0x3')]:_0x6da82c,_0x590208[_0x26d831('0x41')]=_0x590208[_0x26d831('0x41')]?_0x590208[_0x26d831('0x41')]:_0x6da82c,_0x590208['ringtime']=getSeconds(_0x590208[_0x26d831('0x3')]||0x0,_0x590208[_0x26d831('0x51')]||0x0),_0x590208['talktime']=_0x590208[_0x26d831('0x3b')]?getSeconds(_0x590208[_0x26d831('0x41')],_0x590208[_0x26d831('0x3b')]):0x0;},exports[_0xd4d6ef('0x40')]=function(_0x10bacf){const _0x1dafc0=_0xd4d6ef;return _0x10bacf===_0x1dafc0('0x12');},exports['variablesAction']=function(_0x5820ab,_0x143601,_0x253dc2,_0x36f53f,_0x1d305c){const _0x12ce6a=_0xd4d6ef;let _0x4eb53b=_0x36f53f?'RECALL':_0x5820ab[_0x12ce6a('0x2c')];return _0x4eb53b=_0x1d305c?'BOOKED':_0x4eb53b,{'actionid':_0x5820ab[_0x12ce6a('0x3c')],'action':_0x12ce6a('0x70'),'channel':_0x5820ab[_0x12ce6a('0x2')],'callerid':util[_0x12ce6a('0x39')](_0x12ce6a('0x23'),_0x4eb53b,_0x5820ab[_0x12ce6a('0x36')]),'Exten':_0x12ce6a('0x2a'),'Context':_0x12ce6a('0x29'),'Priority':'1','variable':_0x253dc2,'timeout':(_0x143601[_0x12ce6a('0xa')]||0x1e)*0x3e8,'async':!![],'channelid':_0x5820ab[_0x12ce6a('0x3c')]};},exports[_0xd4d6ef('0x1d')]=function(_0x396a7f){const _0xbcf3e0=_0xd4d6ef;return _0x396a7f[_0xbcf3e0('0x5')]+_0x396a7f[_0xbcf3e0('0x81')]+_0x396a7f[_0xbcf3e0('0x62')]+_0x396a7f[_0xbcf3e0('0x22')]+_0x396a7f['countnosuchnumberretry'];},exports[_0xd4d6ef('0x78')]=function(_0x1dbb75){const _0x30e121=_0xd4d6ef,_0x40ca1d=_[_0x30e121('0x71')](_0x1dbb75);return _0x40ca1d[_0x30e121('0x17')]=0xf,_0x40ca1d[_0x30e121('0x7f')]=_0x30e121('0x14'),_0x40ca1d;},exports['scheduledAt']=function(_0x102b44,_0x36384a,_0x14cc51){const _0x59dc73=_0xd4d6ef,_0x447a06={};return _0x447a06[_0x36384a]=_0x102b44[_0x36384a],_0x447a06['active']=![],_0x447a06[_0x59dc73('0x32')]=moment()['add'](_0x14cc51,_0x59dc73('0x6c'))['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x447a06[_0x59dc73('0x3e')]=_0x102b44[_0x59dc73('0x3e')],_0x447a06[_0x59dc73('0x16')]=_0x102b44['ListId'],_0x447a06[_0x59dc73('0x13')]=_0x102b44[_0x59dc73('0x13')]||undefined,_0x447a06;},exports[_0xd4d6ef('0x1e')]=function(_0x59f12d,_0x2146ab){const _0x35ab8b=_0xd4d6ef;!_['isNil'](_0x59f12d)?_0x59f12d[_0x35ab8b('0x58')]>0x0?_0x59f12d[_0x35ab8b('0x58')]-=0x1:logger['error'](_0x2146ab,_0x35ab8b('0x69')):logger['error'](_0x2146ab,_0x35ab8b('0x18'));},exports[_0xd4d6ef('0x25')]=function(_0x55ff94){if(_0x55ff94<=0x0)return!![];return![];},exports[_0xd4d6ef('0x2b')]=function(_0x218219,_0x439f7b){const _0x1bcadc=_0xd4d6ef;return _0x218219[_0x1bcadc('0x28')]=_0x439f7b,_0x218219[_0x1bcadc('0x6e')]=_0x218219[_0x1bcadc('0x4')],_0x218219[_0x1bcadc('0x20')]=_0x218219[_0x1bcadc('0x2')],_0x218219;},exports[_0xd4d6ef('0x72')]=function(_0x1a5e78){const _0x38492f=_0xd4d6ef,_0x243b2a={};return _0x243b2a[_0x38492f('0x4')]=_0x1a5e78['queue'],_0x243b2a[_0x38492f('0x20')]=_0x1a5e78[_0x38492f('0x2')],_0x243b2a[_0x38492f('0x3c')]=_0x1a5e78[_0x38492f('0x3c')],_0x243b2a;},exports[_0xd4d6ef('0x9')]=function(_0xa0e403){const _0x5957dd=_0xd4d6ef,_0x3a6891=[];for(const _0x547732 in _0xa0e403){typeof _0xa0e403[_0x547732]!=='undefined'&&(!_[_0x5957dd('0x3d')](_0xa0e403[_0x547732])&&_0xa0e403[_0x547732][_0x5957dd('0x17')]===_0x5957dd('0x10')&&_0xa0e403[_0x547732]['status']===_0x5957dd('0x85')&&_0x3a6891[_0x5957dd('0x50')](_0xa0e403[_0x547732]['id']));}return _0x3a6891;},exports[_0xd4d6ef('0x87')]=function(_0x342f12){const _0x5040c2=_0xd4d6ef,_0xf5d513=moment()['milliseconds'](0x0),_0x220ed7=moment(_0x342f12)[_0x5040c2('0x82')](0x0);return _0xf5d513[_0x5040c2('0x4f')](_0x220ed7,_0x5040c2('0x19'));},exports['createBody']=function(_0x47680d){const _0xda565b=_0xd4d6ef;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x47680d[_0xda565b('0x3e')],'ListId':_0x47680d['ListId'],'VoiceQueueId':_0x47680d[_0xda565b('0x13')]||undefined,'CampaignId':_0x47680d[_0xda565b('0x83')]||undefined};},exports[_0xd4d6ef('0x1c')]=function(_0x2c399b){const _0x35831d=_0xd4d6ef;if(_0x2c399b==='uniqueid'||_0x2c399b===_0x35831d('0x68')||_0x2c399b==='queue'||_0x2c399b===_0x35831d('0x6a')||_0x2c399b===_0x35831d('0x49')||_0x2c399b===_0x35831d('0x2f')||_0x2c399b===_0x35831d('0x80')||_0x2c399b==='channelAgent'||_0x2c399b===_0x35831d('0x2c')||_0x2c399b===_0x35831d('0x0')||_0x2c399b==='calleridnum'||_0x2c399b==='scheduledat'||_0x2c399b===_0x35831d('0x5')||_0x2c399b===_0x35831d('0x81')||_0x2c399b===_0x35831d('0x62')||_0x2c399b===_0x35831d('0x45')||_0x2c399b===_0x35831d('0x60')||_0x2c399b===_0x35831d('0x11')||_0x2c399b===_0x35831d('0xc')||_0x2c399b==='recallme'||_0x2c399b==='ContactId'||_0x2c399b===_0x35831d('0x16')||_0x2c399b===_0x35831d('0x38')||_0x2c399b===_0x35831d('0x13')||_0x2c399b===_0x35831d('0x86')||_0x2c399b===_0x35831d('0x74')||_0x2c399b===_0x35831d('0x6f')||_0x2c399b==='xmd-phone'||_0x2c399b===_0x35831d('0x6')||_0x2c399b===_0x35831d('0x5b')||_0x2c399b===_0x35831d('0x67')||_0x2c399b===_0x35831d('0x7e')||_0x2c399b==='xmd-dialid'||_0x2c399b==='xmd-dialchannel'||_0x2c399b===_0x35831d('0xf')||_0x2c399b===_0x35831d('0x63')||_0x2c399b==='xmd-callerid'||_0x2c399b==='xmd-agiafter'||_0x2c399b==='xmd-agi'||_0x2c399b===_0x35831d('0x1b')||_0x2c399b===_0x35831d('0x34')||_0x2c399b===_0x35831d('0x43')||_0x2c399b===_0x35831d('0x4b')||_0x2c399b===_0x35831d('0x6d')||_0x2c399b===_0x35831d('0x7a')||_0x2c399b===_0x35831d('0x4e')||_0x2c399b===_0x35831d('0x5a')||_0x2c399b==='rtpaudioqos'||_0x2c399b==='rtpaudioqosbridged'||_0x2c399b===_0x35831d('0x43')||_0x2c399b===_0x35831d('0x4b')||_0x2c399b==='rtpaudioqosloss'||_0x2c399b===_0x35831d('0x7a')||_0x2c399b===_0x35831d('0x4e')||_0x2c399b==='rtpaudioqosrttbridged'||_0x2c399b===_0x35831d('0x66')||_0x2c399b===_0x35831d('0x76')||_0x2c399b===_0x35831d('0x17')||_0x2c399b==='statedesc')return![];return!![];},exports[_0xd4d6ef('0x64')]=function(_0x15e7e1,_0x4c232b){const _0x4088b7=_0xd4d6ef;_0x4c232b<=0x0&&(_0x4c232b=0x1);const _0x3c1e00=new RegExp('\x5cw{0,'+_0x4c232b+'}$'),_0x3806dc=Math[_0x4088b7('0x56')](0xa,_0x4c232b-0x1),_0x22be1b=Math[_0x4088b7('0x56')](0xa,_0x4c232b)-0x1;return util[_0x4088b7('0x39')]('%s',_[_0x4088b7('0x26')](_0x15e7e1,_0x3c1e00,_[_0x4088b7('0x5d')](_0x3806dc,_0x22be1b)));},exports['extractCalleridName']=function(_0x43b5ad){const _0x1077d8=_0xd4d6ef,_0x2b0ebf=_0x43b5ad[_0x1077d8('0xb')](/"(.*?)"/);return _0x2b0ebf?_0x2b0ebf[0x1]:_0x43b5ad;},exports[_0xd4d6ef('0x7b')]=function(_0x3c5369){const _0x5c582b=_0xd4d6ef,_0x461dc8=_0x3c5369[_0x5c582b('0xb')](/<(.*?)>/);return _0x461dc8?_0x461dc8[0x1]:_0x3c5369;}; \ No newline at end of file +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 diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index b1d79ea..9c89ddd 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1090_0x4d71=['boolean','string','voicequeuechannelhangup','queueremove','queueadd','queuepause','voicequeuechannel','number'];(function(_0x2d03d9,_0x4d71e3){var _0x5c25ea=function(_0x3d8690){while(--_0x3d8690){_0x2d03d9['push'](_0x2d03d9['shift']());}};_0x5c25ea(++_0x4d71e3);}(a1090_0x4d71,0x9f));var a1090_0x5c25=function(_0x2d03d9,_0x4d71e3){_0x2d03d9=_0x2d03d9-0x0;var _0x5c25ea=a1090_0x4d71[_0x2d03d9];return _0x5c25ea;};var _0x151e49=a1090_0x5c25;'use strict';exports[_0x151e49('0x5')]={'queue':{'type':'string','required':!![]},'interface':{'type':_0x151e49('0x2'),'required':!![]},'membername':{'type':_0x151e49('0x2'),'required':!![]},'penalty':{'type':_0x151e49('0x0'),'required':![]},'paused':{'type':'boolean','required':![]}},exports[_0x151e49('0x4')]={'queue':{'type':_0x151e49('0x2'),'required':!![]},'interface':{'type':'string','required':!![]}},exports[_0x151e49('0x6')]={'interface':{'type':_0x151e49('0x2'),'required':!![]},'paused':{'type':_0x151e49('0x1')},'reason':{'type':_0x151e49('0x2'),'required':![]}},exports['reload']={'module':{'type':_0x151e49('0x2'),'required':![]}},exports[_0x151e49('0x7')]={'uniqueid':{'type':_0x151e49('0x2'),'required':!![]}},exports['voicechannel']={'uniqueid':{'type':_0x151e49('0x2'),'required':!![]},'filename':{'type':_0x151e49('0x2')},'format':{'type':'string'},'mixmonitorid':{'type':_0x151e49('0x2')}},exports[_0x151e49('0x3')]={'uniqueid':{'type':_0x151e49('0x2'),'required':!![]}},exports['voicequeuechannelredirect']={'uniqueid':{'type':_0x151e49('0x2'),'required':!![]},'exten':{'type':_0x151e49('0x2'),'required':!![]},'context':{'type':_0x151e49('0x2')}}; \ No newline at end of file +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 diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index 24f7d5c..313df68 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1091_0x560c=['initVoiceCallReports','initFreshsalesAccounts','name','queue','initVoiceExtensions','sugarcrmAccounts','sumHoldTime','telephones','diff','../model/voiceExtension','initDeskAccounts','deskAccounts','initFaxAccounts','interface','agents','isUndefined','format','servicenowAccounts','initTelephones','dynamics365Accounts','outboundDropCallsDayTimeout','merge','outboundAnswerCallsDay','../model/zohoAccount','outboundReCallsDay','isEmpty','isNil','queuecallercompleteAt','lodash','../model/trigger','outboundNoAnswerCallsDay','duration','../model/freshdeskAccount','seconds','queuecallerabandon','outboundAnswerAgiCallsDay','outboundRejectCallsDay','abandoned','../model/salesforceAccount','outboundBusyCallsDay','freshsalesAccounts','../model/deskAccount','../model/sugarcrmAccount','queueChannels','answered','initVoiceQueues','billableseconds','outbound','SIP/%s','dialQueueProject','initTemplates','sumDuration','exports','sumBillable','zendeskAccounts','timers','../model/vtigerAccount','campaigns','../model/zendeskAccount','outboundCongestionCallsDay','voiceQueues','../model/trunk','faxAccounts','initVoiceQueueHopperHistory','../model/campaign','zohoAccounts','mergeFromDatabase','prototype','SquareProject','length','queuecallerexit','../model/dynamics365Account','initTrunks','initZohoAccounts','total','vtigerAccounts','initVoiceQueueReports','voiceExtensions','queuecallerexitAt','outboundBlacklistCallsDay','salesforceAccounts','templates','../model/agent','undefined','disposition','trunks','initSugarcrmAccounts','../model/servicenowAccount','../model/telephone','ivrAnswerCallsDay','queuecallerjoinAt','ANSWERED','queuecallerleaveAt','unmanaged','initSalesforceAccounts','mapKeys','initDynamics365Accounts','moment','outboundOriginateFailureCallsDay','../model/faxAccount','groupBy','triggers','freshdeskAccounts'];(function(_0x2f0aa5,_0x560c88){const _0x1670af=function(_0x11c789){while(--_0x11c789){_0x2f0aa5['push'](_0x2f0aa5['shift']());}};_0x1670af(++_0x560c88);}(a1091_0x560c,0x195));const a1091_0x1670=function(_0x2f0aa5,_0x560c88){_0x2f0aa5=_0x2f0aa5-0x0;let _0x1670af=a1091_0x560c[_0x2f0aa5];return _0x1670af;};const _0x857c85=a1091_0x1670;'use strict';const util=require('util'),_=require(_0x857c85('0x23')),moment=require(_0x857c85('0x1')),Agent=require(_0x857c85('0x59')),Telephone=require(_0x857c85('0x5f')),Trunk=require(_0x857c85('0x44')),VoiceQueue=require('../model/voiceQueue'),Trigger=require(_0x857c85('0x24')),Template=require('../model/template'),Campaign=require(_0x857c85('0x47')),VoiceExtension=require(_0x857c85('0x10')),ZendeskAccount=require(_0x857c85('0x41')),SalesforceAccount=require(_0x857c85('0x2d')),FreshdeskAccount=require(_0x857c85('0x27')),SugarcrmAccount=require(_0x857c85('0x31')),ZohoAccount=require(_0x857c85('0x1e')),DeskAccount=require(_0x857c85('0x30')),VtigerAccount=require(_0x857c85('0x3f')),ServicenowAccount=require(_0x857c85('0x5e')),Dynamics365Account=require(_0x857c85('0x4e')),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(_0x857c85('0x3')),Realtime=function(){const _0xb3e1f3=_0x857c85;this['agents']={},this[_0xb3e1f3('0xe')]={},this[_0xb3e1f3('0x5c')]={},this[_0xb3e1f3('0x43')]={},this[_0xb3e1f3('0x5')]={},this[_0xb3e1f3('0x40')]={},this[_0xb3e1f3('0x58')]={},this['outbound']={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0xb3e1f3('0x54')]={},this['channels']={},this[_0xb3e1f3('0x32')]={},this['outboundChannels']={},this[_0xb3e1f3('0x3e')]={},this[_0xb3e1f3('0x3d')]={},this[_0xb3e1f3('0x57')]={},this[_0xb3e1f3('0xc')]={},this['freshdeskAccounts']={},this['zohoAccounts']={},this['deskAccounts']={},this[_0xb3e1f3('0x52')]={},this[_0xb3e1f3('0x18')]={},this[_0xb3e1f3('0x1a')]={},this['freshsalesAccounts']={},this['faxAccounts']={};};function freeIsNotKey(_0x11c789,_0xc37a88,_0x3f945a){const _0x249377=_0x857c85,_0x3289d4=_['mapKeys'](_0x11c789,function(_0xa738d5){return _0xa738d5[_0x3f945a];});for(const _0x446bba in _0xc37a88){typeof _0xc37a88[_0x446bba]!==_0x249377('0x5a')&&(!_0x3289d4[_0x446bba]&&delete _0xc37a88[_0x446bba]);}}function freeIsNotKeySip(_0x3b2483,_0xea55a2){const _0x17f863=_0x857c85,_0x19d160=_[_0x17f863('0x66')](_0x3b2483,function(_0x3035b3){const _0x310da2=_0x17f863;return util[_0x310da2('0x17')](_0x310da2('0x37'),_0x3035b3[_0x310da2('0x9')]);});for(const _0x4e4692 in _0xea55a2){typeof _0xea55a2[_0x4e4692]!==_0x17f863('0x5a')&&(!_0x19d160[_0x4e4692]&&delete _0xea55a2[_0x4e4692]);}}function freeIsNotKeyAgent(_0x158254,_0x3ec58b){const _0x527370=_0x857c85,_0x449ec3=_[_0x527370('0x66')](_0x158254,function(_0x270f1a){const _0x2fb332=_0x527370,_0x4707ba=_[_0x2fb332('0x21')](_0x270f1a['interface'])?util[_0x2fb332('0x17')](_0x2fb332('0x37'),_0x270f1a['name']):_0x270f1a[_0x2fb332('0x14')];return _0x4707ba;});for(const _0x169098 in _0x3ec58b){typeof _0x3ec58b[_0x169098]!==_0x527370('0x5a')&&(!_0x449ec3[_0x169098]&&delete _0x3ec58b[_0x169098]);}}function clearVoiceCallReports(_0x28cb03){const _0x3d76d2=_0x857c85;_0x28cb03['total']=0x0,_0x28cb03[_0x3d76d2('0x33')]=0x0,_0x28cb03[_0x3d76d2('0xd')]=0x0,_0x28cb03['sumDuration']=0x0,_0x28cb03[_0x3d76d2('0x3c')]=0x0;}function clearCampaigns(_0x522150){const _0x366ef5=_0x857c85;if(!_[_0x366ef5('0x20')](_0x522150))for(const _0x14f154 in _0x522150){typeof _0x522150[_0x14f154]!==_0x366ef5('0x5a')&&(_0x522150[_0x14f154]['ivrTotalCallsDays']=0x0,_0x522150[_0x14f154][_0x366ef5('0x60')]=0x0);}}function clearVoiceQueues(_0x16cf1e){const _0x50a373=_0x857c85;if(!_[_0x50a373('0x20')](_0x16cf1e))for(const _0xad45b9 in _0x16cf1e){typeof _0x16cf1e[_0xad45b9]!==_0x50a373('0x5a')&&(_0x16cf1e[_0xad45b9][_0x50a373('0x51')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x33')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x64')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x2c')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0xd')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x3a')]=0x0,_0x16cf1e[_0xad45b9]['sumBillable']=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x2a')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x25')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x2e')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x42')]=0x0,_0x16cf1e[_0xad45b9]['outboundNoSuchCallsDay']=0x0,_0x16cf1e[_0xad45b9]['outboundUnknownCallsDay']=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x1b')]=0x0,_0x16cf1e[_0xad45b9]['outboundDropCallsDayCallersExit']=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x56')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x2')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x2b')]=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x1f')]=0x0,_0x16cf1e[_0xad45b9]['outboundAnswerAgiCallsDay']=0x0,_0x16cf1e[_0xad45b9][_0x50a373('0x1d')]=0x0,_0x16cf1e[_0xad45b9]['queueStatusComplete']=!![]);}}Realtime[_0x857c85('0x4a')]['mergeFromDatabase']=function(_0x2ca95d,_0x547738){const _0x7f6744=_0x857c85;for(const _0xe829bc in _0x547738){typeof _0x2ca95d[_0xe829bc]!==_0x7f6744('0x5a')&&(_0x2ca95d[_0xe829bc]=_0x547738[_0xe829bc]);}},Realtime[_0x857c85('0x4a')]['initAgents']=function(){const _0xa327d=this;return function(_0x2aaae3){const _0x5da0a5=a1091_0x1670;if(_0x2aaae3){freeIsNotKeyAgent(_0x2aaae3,_0xa327d[_0x5da0a5('0x15')]);for(let _0x49dd69=0x0,_0x4cff5d={};_0x49dd69<_0x2aaae3['length'];_0x49dd69+=0x1){_0x4cff5d=_0x2aaae3[_0x49dd69];const _0xae704=_[_0x5da0a5('0x21')](_0x4cff5d['interface'])?util[_0x5da0a5('0x17')](_0x5da0a5('0x37'),_0x4cff5d[_0x5da0a5('0x9')]):_0x4cff5d[_0x5da0a5('0x14')];_[_0x5da0a5('0x16')](_0xa327d[_0x5da0a5('0x15')][_0xae704])?_0xa327d['agents'][_0xae704]=new Agent(_0x4cff5d):_0xa327d['mergeFromDatabase'](_0xa327d[_0x5da0a5('0x15')][_0xae704],_0x4cff5d);}}return _0xa327d[_0x5da0a5('0x15')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x19')]=function(){const _0x2fefdd=this;return function(_0x4401f9){const _0x205aed=a1091_0x1670;if(_0x4401f9){freeIsNotKeySip(_0x4401f9,_0x2fefdd[_0x205aed('0xe')]);for(let _0x30d4ff=0x0,_0x4f112b={};_0x30d4ff<_0x4401f9[_0x205aed('0x4c')];_0x30d4ff+=0x1){_0x4f112b=_0x4401f9[_0x30d4ff],_[_0x205aed('0x16')](_0x2fefdd['telephones'][util[_0x205aed('0x17')](_0x205aed('0x37'),_0x4f112b[_0x205aed('0x9')])])?_0x2fefdd['telephones'][util[_0x205aed('0x17')](_0x205aed('0x37'),_0x4f112b['name'])]=new Telephone(_0x4f112b):_0x2fefdd[_0x205aed('0x49')](_0x2fefdd[_0x205aed('0xe')][util[_0x205aed('0x17')](_0x205aed('0x37'),_0x4f112b['name'])],_0x4f112b);}}return _0x2fefdd[_0x205aed('0xe')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x4f')]=function(){const _0x71db6e=this;return function(_0x200efd){const _0x35d2b6=a1091_0x1670;if(_0x200efd){freeIsNotKeySip(_0x200efd,_0x71db6e[_0x35d2b6('0x5c')]);for(let _0x1daa23=0x0,_0x228b1b={};_0x1daa23<_0x200efd[_0x35d2b6('0x4c')];_0x1daa23+=0x1){_0x228b1b=_0x200efd[_0x1daa23],_[_0x35d2b6('0x16')](_0x71db6e['trunks'][util[_0x35d2b6('0x17')](_0x35d2b6('0x37'),_0x228b1b[_0x35d2b6('0x9')])])?_0x71db6e['trunks'][util[_0x35d2b6('0x17')](_0x35d2b6('0x37'),_0x228b1b[_0x35d2b6('0x9')])]=new Trunk(_0x228b1b):_0x71db6e[_0x35d2b6('0x49')](_0x71db6e[_0x35d2b6('0x5c')][util[_0x35d2b6('0x17')](_0x35d2b6('0x37'),_0x228b1b[_0x35d2b6('0x9')])],_0x228b1b);}}return _0x71db6e[_0x35d2b6('0x5c')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x34')]=function(){const _0x5d57cb=this;return function(_0x187694){const _0xcdd714=a1091_0x1670;if(_0x187694){freeIsNotKey(_0x187694,_0x5d57cb[_0xcdd714('0x43')],_0xcdd714('0x9'));for(let _0x3e558b=0x0,_0x389fb9={};_0x3e558b<_0x187694['length'];_0x3e558b+=0x1){_0x389fb9=_0x187694[_0x3e558b],_[_0xcdd714('0x16')](_0x5d57cb[_0xcdd714('0x43')][_0x389fb9[_0xcdd714('0x9')]])?_0x5d57cb[_0xcdd714('0x43')][_0x389fb9[_0xcdd714('0x9')]]=new VoiceQueue(_0x389fb9):_0x5d57cb[_0xcdd714('0x49')](_0x5d57cb[_0xcdd714('0x43')][_0x389fb9['name']],_0x389fb9);}}return _0x5d57cb['voiceQueues'];};},Realtime[_0x857c85('0x4a')]['initTriggers']=function(){const _0x14f507=this;return function(_0x32d40d){const _0x312c97=a1091_0x1670;if(_0x32d40d){freeIsNotKey(_0x32d40d,_0x14f507[_0x312c97('0x5')],'id');for(let _0x4a0267=0x0,_0x5caa7f={};_0x4a0267<_0x32d40d[_0x312c97('0x4c')];_0x4a0267+=0x1){_0x5caa7f=_0x32d40d[_0x4a0267],_['isUndefined'](_0x14f507['triggers'][_0x5caa7f['id']])?_0x14f507[_0x312c97('0x5')][_0x5caa7f['id']]=new Trigger(_0x5caa7f):_0x14f507[_0x312c97('0x49')](_0x14f507[_0x312c97('0x5')][_0x5caa7f['id']],_0x5caa7f);}}return _0x14f507['triggers'];};},Realtime['prototype'][_0x857c85('0x39')]=function(){const _0x4c10b6=this;return function(_0x582a90){const _0x543c35=a1091_0x1670;if(_0x582a90){freeIsNotKey(_0x582a90,_0x4c10b6[_0x543c35('0x58')],'id');for(let _0x5c6dfe=0x0,_0x42862a={};_0x5c6dfe<_0x582a90[_0x543c35('0x4c')];_0x5c6dfe+=0x1){_0x42862a=_0x582a90[_0x5c6dfe],_['isUndefined'](_0x4c10b6['templates'][_0x42862a['id']])?_0x4c10b6[_0x543c35('0x58')][_0x42862a['id']]=new Template(_0x42862a):_0x4c10b6[_0x543c35('0x49')](_0x4c10b6['templates'][_0x42862a['id']],_0x42862a);}}return _0x4c10b6[_0x543c35('0x58')];};},Realtime[_0x857c85('0x4a')]['initZendeskAccounts']=function(){const _0x4db411=this;return function(_0x3f2b43){const _0x46aa43=a1091_0x1670;if(_0x3f2b43){freeIsNotKey(_0x3f2b43,_0x4db411[_0x46aa43('0x3d')],'id');for(let _0x1e4266=0x0,_0x34d4d0={};_0x1e4266<_0x3f2b43[_0x46aa43('0x4c')];_0x1e4266+=0x1){_0x34d4d0=_0x3f2b43[_0x1e4266],_[_0x46aa43('0x16')](_0x4db411[_0x46aa43('0x3d')][_0x34d4d0['id']])?_0x4db411[_0x46aa43('0x3d')][_0x34d4d0['id']]=new ZendeskAccount(_0x34d4d0):_0x4db411[_0x46aa43('0x49')](_0x4db411['zendeskAccounts'][_0x34d4d0['id']],_0x34d4d0);}}return _0x4db411['zendeskAccounts'];};},Realtime['prototype'][_0x857c85('0x65')]=function(){const _0x1f8166=this;return function(_0xd6d22b){const _0x2c635b=a1091_0x1670;if(_0xd6d22b){freeIsNotKey(_0xd6d22b,_0x1f8166['salesforceAccounts'],'id');for(let _0x3cf36b=0x0,_0x4a0cdb={};_0x3cf36b<_0xd6d22b[_0x2c635b('0x4c')];_0x3cf36b+=0x1){_0x4a0cdb=_0xd6d22b[_0x3cf36b],_[_0x2c635b('0x16')](_0x1f8166['salesforceAccounts'][_0x4a0cdb['id']])?_0x1f8166[_0x2c635b('0x57')][_0x4a0cdb['id']]=new SalesforceAccount(_0x4a0cdb):_0x1f8166[_0x2c635b('0x49')](_0x1f8166[_0x2c635b('0x57')][_0x4a0cdb['id']],_0x4a0cdb);}}return _0x1f8166[_0x2c635b('0x57')];};},Realtime['prototype']['initFreshdeskAccounts']=function(){const _0x5c7f17=this;return function(_0x4abd02){const _0x52f3a5=a1091_0x1670;if(_0x4abd02){freeIsNotKey(_0x4abd02,_0x5c7f17[_0x52f3a5('0x6')],'id');for(let _0x83b440=0x0,_0x214ee3={};_0x83b440<_0x4abd02[_0x52f3a5('0x4c')];_0x83b440+=0x1){_0x214ee3=_0x4abd02[_0x83b440],_[_0x52f3a5('0x16')](_0x5c7f17[_0x52f3a5('0x6')][_0x214ee3['id']])?_0x5c7f17[_0x52f3a5('0x6')][_0x214ee3['id']]=new FreshdeskAccount(_0x214ee3):_0x5c7f17[_0x52f3a5('0x49')](_0x5c7f17['freshdeskAccounts'][_0x214ee3['id']],_0x214ee3);}}return _0x5c7f17[_0x52f3a5('0x6')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x50')]=function(){const _0x1649fb=this;return function(_0x4f0f57){const _0xe1b0cb=a1091_0x1670;if(_0x4f0f57){freeIsNotKey(_0x4f0f57,_0x1649fb[_0xe1b0cb('0x48')],'id');for(let _0x3a34ef=0x0,_0x1f3143={};_0x3a34ef<_0x4f0f57[_0xe1b0cb('0x4c')];_0x3a34ef+=0x1){_0x1f3143=_0x4f0f57[_0x3a34ef],_['isUndefined'](_0x1649fb[_0xe1b0cb('0x48')][_0x1f3143['id']])?_0x1649fb[_0xe1b0cb('0x48')][_0x1f3143['id']]=new ZohoAccount(_0x1f3143):_0x1649fb[_0xe1b0cb('0x49')](_0x1649fb['zohoAccounts'][_0x1f3143['id']],_0x1f3143);}}return _0x1649fb[_0xe1b0cb('0x48')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x11')]=function(){const _0x57ca0b=this;return function(_0xb64688){const _0x5f43e2=a1091_0x1670;if(_0xb64688){freeIsNotKey(_0xb64688,_0x57ca0b[_0x5f43e2('0x12')],'id');for(let _0x2c82dd=0x0,_0xfeffb8={};_0x2c82dd<_0xb64688[_0x5f43e2('0x4c')];_0x2c82dd+=0x1){_0xfeffb8=_0xb64688[_0x2c82dd],_[_0x5f43e2('0x16')](_0x57ca0b[_0x5f43e2('0x12')][_0xfeffb8['id']])?_0x57ca0b[_0x5f43e2('0x12')][_0xfeffb8['id']]=new DeskAccount(_0xfeffb8):_0x57ca0b[_0x5f43e2('0x49')](_0x57ca0b[_0x5f43e2('0x12')][_0xfeffb8['id']],_0xfeffb8);}}return _0x57ca0b['deskAccounts'];};},Realtime['prototype'][_0x857c85('0x5d')]=function(){const _0x470f58=this;return function(_0x47a105){const _0x3e4ac8=a1091_0x1670;if(_0x47a105){freeIsNotKey(_0x47a105,_0x470f58[_0x3e4ac8('0xc')],'id');for(let _0x14928f=0x0,_0x383895={};_0x14928f<_0x47a105['length'];_0x14928f+=0x1){_0x383895=_0x47a105[_0x14928f],_[_0x3e4ac8('0x16')](_0x470f58[_0x3e4ac8('0xc')][_0x383895['id']])?_0x470f58[_0x3e4ac8('0xc')][_0x383895['id']]=new SugarcrmAccount(_0x383895):_0x470f58[_0x3e4ac8('0x49')](_0x470f58[_0x3e4ac8('0xc')][_0x383895['id']],_0x383895);}}return _0x470f58[_0x3e4ac8('0xc')];};},Realtime[_0x857c85('0x4a')]['initVtigerAccounts']=function(){const _0x220e04=this;return function(_0x5e3e9d){const _0x25c085=a1091_0x1670;if(_0x5e3e9d){freeIsNotKey(_0x5e3e9d,_0x220e04[_0x25c085('0x52')],'id');for(let _0x373997=0x0,_0x1558b7={};_0x373997<_0x5e3e9d[_0x25c085('0x4c')];_0x373997+=0x1){_0x1558b7=_0x5e3e9d[_0x373997],_[_0x25c085('0x16')](_0x220e04['vtigerAccounts'][_0x1558b7['id']])?_0x220e04[_0x25c085('0x52')][_0x1558b7['id']]=new VtigerAccount(_0x1558b7):_0x220e04['mergeFromDatabase'](_0x220e04[_0x25c085('0x52')][_0x1558b7['id']],_0x1558b7);}}return _0x220e04['vtigerAccounts'];};},Realtime[_0x857c85('0x4a')]['initServicenowAccounts']=function(){const _0x2873f1=this;return function(_0x1b1113){const _0x3d47e3=a1091_0x1670;if(_0x1b1113){freeIsNotKey(_0x1b1113,_0x2873f1[_0x3d47e3('0x18')],'id');for(let _0x3de4c3=0x0,_0x1650c6={};_0x3de4c3<_0x1b1113[_0x3d47e3('0x4c')];_0x3de4c3+=0x1){_0x1650c6=_0x1b1113[_0x3de4c3],_[_0x3d47e3('0x16')](_0x2873f1['servicenowAccounts'][_0x1650c6['id']])?_0x2873f1[_0x3d47e3('0x18')][_0x1650c6['id']]=new ServicenowAccount(_0x1650c6):_0x2873f1[_0x3d47e3('0x49')](_0x2873f1['servicenowAccounts'][_0x1650c6['id']],_0x1650c6);}}return _0x2873f1[_0x3d47e3('0x18')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x0')]=function(){const _0x3f5433=this;return function(_0x1085b4){const _0xc54ce6=a1091_0x1670;if(_0x1085b4){freeIsNotKey(_0x1085b4,_0x3f5433['dynamics365Accounts'],'id');for(let _0x42fbb9=0x0,_0x3adc1c={};_0x42fbb9<_0x1085b4['length'];_0x42fbb9+=0x1){_0x3adc1c=_0x1085b4[_0x42fbb9],_[_0xc54ce6('0x16')](_0x3f5433[_0xc54ce6('0x1a')][_0x3adc1c['id']])?_0x3f5433[_0xc54ce6('0x1a')][_0x3adc1c['id']]=new Dynamics365Account(_0x3adc1c):_0x3f5433[_0xc54ce6('0x49')](_0x3f5433[_0xc54ce6('0x1a')][_0x3adc1c['id']],_0x3adc1c);}}return _0x3f5433[_0xc54ce6('0x1a')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x8')]=function(){const _0x200ad2=this;return function(_0x210f52){const _0xd4816c=a1091_0x1670;if(_0x210f52){freeIsNotKey(_0x210f52,_0x200ad2[_0xd4816c('0x2f')],'id');for(let _0xa92a77=0x0,_0x5c26b3={};_0xa92a77<_0x210f52[_0xd4816c('0x4c')];_0xa92a77+=0x1){_0x5c26b3=_0x210f52[_0xa92a77],_[_0xd4816c('0x16')](_0x200ad2[_0xd4816c('0x2f')][_0x5c26b3['id']])?_0x200ad2[_0xd4816c('0x2f')][_0x5c26b3['id']]=new FreshsalesAccount(_0x5c26b3):_0x200ad2[_0xd4816c('0x49')](_0x200ad2[_0xd4816c('0x2f')][_0x5c26b3['id']],_0x5c26b3);}}return _0x200ad2[_0xd4816c('0x2f')];};},Realtime['prototype'][_0x857c85('0x46')]=function(){const _0xa69577=this;return function(_0x181a1d){const _0x4d412e=a1091_0x1670;for(let _0x3183f3=0x0;_0x3183f3<_0x181a1d[_0x4d412e('0x4c')];_0x3183f3+=0x1){_[_0x4d412e('0x1c')](_0xa69577[_0x4d412e('0x43')][_0x181a1d[_0x3183f3][_0x4d412e('0x9')]],_0x181a1d[_0x3183f3]);}return _0xa69577[_0x4d412e('0x43')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x53')]=function(){const _0x1ca707=this;return function(_0x5fb933){const _0x457cd4=a1091_0x1670;clearVoiceQueues(_0x1ca707[_0x457cd4('0x43')]);if(_0x5fb933){_0x5fb933=_[_0x457cd4('0x4')](_0x5fb933,'uniqueid');for(const _0x1514c6 in _0x5fb933){if(typeof _0x5fb933[_0x1514c6]!==_0x457cd4('0x5a'))for(let _0x1b2796=0x0;_0x1b2796<_0x5fb933[_0x1514c6][_0x457cd4('0x4c')];_0x1b2796+=0x1){const _0x2136b3=_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0xa')];_0x1ca707[_0x457cd4('0x43')][_0x2136b3]&&(_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x4d')]&&(_0x1ca707[_0x457cd4('0x43')][_0x2136b3]['unmanaged']+=0x1),_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x29')]&&(_0x1ca707[_0x457cd4('0x43')][_0x2136b3][_0x457cd4('0x2c')]+=0x1),_0x1ca707[_0x457cd4('0x43')][_0x2136b3][_0x457cd4('0xd')]+=moment(_0x5fb933[_0x1514c6][_0x1b2796]['queuecallerleaveAt'])[_0x457cd4('0xf')](moment(_0x5fb933[_0x1514c6][_0x1b2796]['queuecallerjoinAt']),_0x457cd4('0x28'))||0x0,_0x1b2796===_0x5fb933[_0x1514c6][_0x457cd4('0x4c')]-0x1?(_0x1ca707[_0x457cd4('0x43')][_0x2136b3]['sumDuration']+=moment(_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x22')]||_0x5fb933[_0x1514c6][_0x1b2796]['queuecallerabandonAt']||_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x55')])[_0x457cd4('0xf')](moment(_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x61')]),_0x457cd4('0x28'))||0x0,_0x1ca707[_0x457cd4('0x43')][_0x2136b3][_0x457cd4('0x51')]+=0x1,_0x5fb933[_0x1514c6][_0x1b2796]['queuecallercomplete']&&(_0x1ca707[_0x457cd4('0x43')][_0x2136b3]['answered']+=0x1,_0x1ca707[_0x457cd4('0x43')][_0x2136b3][_0x457cd4('0x3c')]+=moment(_0x5fb933[_0x1514c6][_0x1b2796]['queuecallercompleteAt'])[_0x457cd4('0xf')](moment(_0x5fb933[_0x1514c6][_0x1b2796][_0x457cd4('0x63')]),_0x457cd4('0x28'))||0x0)):_0x1ca707[_0x457cd4('0x43')][_0x2136b3][_0x457cd4('0x3a')]+=_0x1ca707['voiceQueues'][_0x2136b3][_0x457cd4('0xd')]||0x0);}}}return _0x1ca707[_0x457cd4('0x43')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x7')]=function(){const _0x2dbce4=this;return function(_0x136f03){const _0x4fa7fe=a1091_0x1670;clearVoiceCallReports(_0x2dbce4[_0x4fa7fe('0x36')]);if(_0x136f03)for(let _0x37a5fb=0x0;_0x37a5fb<_0x136f03[_0x4fa7fe('0x4c')];_0x37a5fb+=0x1){_0x2dbce4[_0x4fa7fe('0x36')][_0x4fa7fe('0x51')]+=0x1,_0x2dbce4[_0x4fa7fe('0x36')][_0x4fa7fe('0x3a')]+=_0x136f03[_0x37a5fb][_0x4fa7fe('0x26')],_0x136f03[_0x37a5fb][_0x4fa7fe('0x5b')]===_0x4fa7fe('0x62')&&(_0x2dbce4[_0x4fa7fe('0x36')]['answered']+=0x1,_0x2dbce4[_0x4fa7fe('0x36')][_0x4fa7fe('0xd')]+=_0x136f03[_0x37a5fb][_0x4fa7fe('0x26')]-_0x136f03[_0x37a5fb][_0x4fa7fe('0x35')]||0x0,_0x2dbce4[_0x4fa7fe('0x36')]['sumBillable']+=_0x136f03[_0x37a5fb][_0x4fa7fe('0x35')]);}return _0x2dbce4[_0x4fa7fe('0x36')];};},Realtime['prototype']['initCampaigns']=function(){const _0xb48df=this;return function(_0x3a37bc){const _0x78cdbd=a1091_0x1670;if(_0x3a37bc){freeIsNotKey(_0x3a37bc,_0xb48df[_0x78cdbd('0x40')],_0x78cdbd('0x9'));for(let _0x3d46ed=0x0,_0x53a3fc={};_0x3d46ed<_0x3a37bc[_0x78cdbd('0x4c')];_0x3d46ed+=0x1){_0x53a3fc=_0x3a37bc[_0x3d46ed],_[_0x78cdbd('0x16')](_0xb48df['campaigns'][_0x53a3fc[_0x78cdbd('0x9')]])?_0xb48df[_0x78cdbd('0x40')][_0x53a3fc[_0x78cdbd('0x9')]]=new Campaign(_0x53a3fc):(_0xb48df['mergeFromDatabase'](_0xb48df[_0x78cdbd('0x40')][_0x53a3fc[_0x78cdbd('0x9')]],_0x53a3fc),_0xb48df[_0x78cdbd('0x40')][_0x53a3fc[_0x78cdbd('0x9')]][_0x78cdbd('0x38')]=_0x53a3fc[_0x78cdbd('0x4b')]?_0x53a3fc[_0x78cdbd('0x4b')][_0x78cdbd('0x9')]:undefined);}}return _0xb48df[_0x78cdbd('0x40')];};},Realtime[_0x857c85('0x4a')][_0x857c85('0xb')]=function(){const _0x4a79f0=this;return function(_0x2ed356){const _0x1b6fd2=a1091_0x1670;if(_0x2ed356){freeIsNotKey(_0x2ed356,_0x4a79f0[_0x1b6fd2('0x54')],'id');for(let _0x1d6536=0x0,_0x54959e={};_0x1d6536<_0x2ed356[_0x1b6fd2('0x4c')];_0x1d6536+=0x1){_0x54959e=_0x2ed356[_0x1d6536],_['isUndefined'](_0x4a79f0[_0x1b6fd2('0x54')][_0x54959e['id']])?_0x4a79f0[_0x1b6fd2('0x54')][_0x54959e['id']]=new VoiceExtension(_0x54959e):_0x4a79f0[_0x1b6fd2('0x49')](_0x4a79f0[_0x1b6fd2('0x54')][_0x54959e['id']],_0x54959e);}}return _0x4a79f0[_0x1b6fd2('0x54')];};},Realtime['prototype']['initCampaignHopperHistory']=function(){const _0x468606=this;return function(_0xa65136){const _0x2d159a=a1091_0x1670;clearCampaigns(_0x468606[_0x2d159a('0x40')]);for(let _0x5134e5=0x0;_0x5134e5<_0xa65136[_0x2d159a('0x4c')];_0x5134e5+=0x1){_['merge'](_0x468606[_0x2d159a('0x40')][_0xa65136[_0x5134e5][_0x2d159a('0x9')]],_0xa65136[_0x5134e5]);}return _0x468606['campaigns'];};},Realtime[_0x857c85('0x4a')][_0x857c85('0x13')]=function(){const _0x17b5b2=this;return function(_0x5ebd3b){const _0x4c2474=a1091_0x1670;if(_0x5ebd3b){freeIsNotKey(_0x5ebd3b,_0x17b5b2[_0x4c2474('0x45')],'id');for(let _0x188acb=0x0,_0x1ed008={};_0x188acb<_0x5ebd3b[_0x4c2474('0x4c')];_0x188acb+=0x1){_0x1ed008=_0x5ebd3b[_0x188acb],_['isUndefined'](_0x17b5b2[_0x4c2474('0x45')][_0x1ed008['id']])?_0x17b5b2[_0x4c2474('0x45')][_0x1ed008['id']]=new FaxAccount(_0x1ed008):_0x17b5b2[_0x4c2474('0x49')](_0x17b5b2[_0x4c2474('0x45')][_0x1ed008['id']],_0x1ed008);}}return _0x17b5b2[_0x4c2474('0x45')];};},module[_0x857c85('0x3b')]=Realtime; \ No newline at end of file +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 diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index 4cd4c54..fa330f5 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1092_0x5525=['../ami','voiceQueueReport','startsWith','monitors','../rpc/voiceAgentReport','util','YYYY-MM-DD\x20HH:mm:ss','filename','disabled','calleridpreview','telephones','../rpc/voiceRecording','queuecallercompleteAt','ANSWERED','accountcode','calleridname','length','destination','../rpc/voiceTransferReport','createdAt','xcally-motion-preview','isNil','monitorFilename','connectedlinename','queuecallerexitAt','realtime','type','prototype','../rpc/voiceCallReport','blindtransfer','bind','format','voiceCallReport','voiceAgentReport','SIP/%s','sync','connectedlinenum','name','queuecallerexit','../../../config/environment','xcally-motion-dialer','substring','channel','custom:voiceAgentReport','lastapplication','blindTransfer','find','dialer','lodash','calleridnum','indexOf','disposition','callerid','lastIndexOf','mobile','destinationchannel','originatecalleridnum','xdr','forEach','\x22%s\x22\x20<%s>','queue','attendedtransfer','exten','assigned','../rpc/voiceQueueReport','moment','lastAssignedTo','../rpc/voiceDialReport','attendedTransfer','custom:voiceQueueReport','create','from-sip','membername','context','isArray','agents','voiceDialReport','findAgent','interface','queuecallercomplete','lastdata'];(function(_0x4006da,_0x552503){const _0x54faec=function(_0x161434){while(--_0x161434){_0x4006da['push'](_0x4006da['shift']());}};_0x54faec(++_0x552503);}(a1092_0x5525,0x1c0));const a1092_0x54fa=function(_0x4006da,_0x552503){_0x4006da=_0x4006da-0x0;let _0x54faec=a1092_0x5525[_0x4006da];return _0x54faec;};const _0x1cca57=a1092_0x54fa;'use strict';const _=require(_0x1cca57('0x5')),moment=require(_0x1cca57('0x16')),util=require(_0x1cca57('0x2b')),config=require(_0x1cca57('0x4d')),ami=require(_0x1cca57('0x26')),RpcVoiceAgentReport=require(_0x1cca57('0x2a')),RpcVoiceCallReport=require(_0x1cca57('0x42')),RpcVoiceDialReport=require(_0x1cca57('0x18')),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require(_0x1cca57('0x15')),RpcVoiceRecording=require(_0x1cca57('0x31')),RpcVoiceTransferReport=require(_0x1cca57('0x38'));function Report(_0x161434){const _0x522c81=_0x1cca57;this[_0x522c81('0x3f')]=_0x161434,this[_0x522c81('0x20')]=_0x161434[_0x522c81('0x20')],this[_0x522c81('0x30')]=_0x161434[_0x522c81('0x30')];}Report['prototype'][_0x1cca57('0x49')]=function(){const _0x210012=_0x1cca57;config[_0x210012('0xe')]&&config[_0x210012('0xe')][_0x210012('0x2e')]&&(ami['on'](_0x210012('0x1a'),this[_0x210012('0x27')]['bind'](this)),ami['on']('custom:voiceCallReport',this[_0x210012('0x46')][_0x210012('0x44')](this)),ami['on'](_0x210012('0x0'),this[_0x210012('0x47')]['bind'](this)),ami['on']('custom:voiceDialReport',this['voiceDialReport'][_0x210012('0x44')](this)),ami['on'](_0x210012('0x43'),this[_0x210012('0x2')]['bind'](this)),ami['on'](_0x210012('0x12'),this[_0x210012('0x19')]['bind'](this)));},Report[_0x1cca57('0x41')]['findAgent']=function(_0x57d11c){const _0x205a92=_0x1cca57;let _0x4b0f1f=undefined;_0x4b0f1f=_[_0x205a92('0x3')](this[_0x205a92('0x20')],function(_0x24df78){const _0x52bb84=_0x205a92;return _0x24df78[_0x52bb84('0x34')]==_0x57d11c||_0x24df78[_0x52bb84('0x4b')]==_0x57d11c;});if(_[_0x205a92('0x3b')](_0x4b0f1f)){const _0x101c4f=_['find'](this['telephones'],function(_0x5c1731){const _0x1a4ab0=_0x205a92;return _0x5c1731[_0x1a4ab0('0x34')]==_0x57d11c||_0x5c1731['name']==_0x57d11c;});_0x101c4f&&(_0x4b0f1f=_['find'](this['agents'],function(_0x428f55){const _0x2315ca=_0x205a92;return _0x428f55[_0x2315ca('0x23')]==util[_0x2315ca('0x45')](_0x2315ca('0x48'),_0x101c4f['name']);}));}return _0x4b0f1f;},Report[_0x1cca57('0x41')][_0x1cca57('0x27')]=function(_0x1d9a6f){const _0x25a790=_0x1cca57;for(let _0x4041c1=0x0;_0x4041c1<_0x1d9a6f[_0x25a790('0x36')];_0x4041c1+=0x1){const _0x30c359=this[_0x25a790('0x22')](_0x1d9a6f[_0x4041c1]['connectedlinenum']);_0x30c359&&(_0x1d9a6f[_0x4041c1]['accountcode']=_0x30c359[_0x25a790('0x34')],_0x1d9a6f[_0x4041c1][_0x25a790('0x14')]=!![],_0x1d9a6f[_0x4041c1][_0x25a790('0x17')]=_0x30c359[_0x25a790('0x4b')],_0x1d9a6f[_0x4041c1]['interface']=_['isNil'](_0x30c359[_0x25a790('0x23')])?util[_0x25a790('0x45')](_0x25a790('0x48'),_0x30c359[_0x25a790('0x4b')]):_0x30c359[_0x25a790('0x23')],_0x1d9a6f[_0x4041c1][_0x25a790('0x24')]&&(_0x1d9a6f[_0x4041c1][_0x25a790('0x32')]=moment()[_0x25a790('0x45')]('YYYY-MM-DD\x20HH:mm:ss')),_0x1d9a6f[_0x4041c1][_0x25a790('0x4c')]&&(_0x1d9a6f[_0x4041c1][_0x25a790('0x3e')]=moment()[_0x25a790('0x45')](_0x25a790('0x2c'))),RpcMemberReport['voiceQueueReport'](_0x1d9a6f[_0x4041c1])),RpcVoiceQueueReport[_0x25a790('0x1b')](_0x1d9a6f[_0x4041c1]);}};function extractCalleridNumber(_0xf01512){const _0x2009d2=_0xf01512['match'](/<(.*?)>/);return _0x2009d2?_0x2009d2[0x1]:_0xf01512;}Report[_0x1cca57('0x41')][_0x1cca57('0x46')]=function(_0x167509){const _0x32a2d5=_0x1cca57;_0x167509[_0x32a2d5('0x37')]=_0x167509[_0x32a2d5('0x37')]||_0x167509['exten'];if(_0x167509[_0x32a2d5('0x40')]==_0x32a2d5('0x4')){_0x167509[_0x32a2d5('0x1')]=_0x32a2d5('0x11'),_0x167509[_0x32a2d5('0x25')]=_0x167509[_0x32a2d5('0x11')];if(_0x167509[_0x32a2d5('0x1e')]=='from-voip-provider')_0x167509[_0x32a2d5('0x34')]='',_0x167509[_0x32a2d5('0x37')]=extractCalleridNumber(_0x167509[_0x32a2d5('0x9')]);else _0x167509[_0x32a2d5('0x1e')]==_0x32a2d5('0x1c')&&(_0x167509[_0x32a2d5('0x37')]==_0x32a2d5('0x3a')?(_0x167509[_0x32a2d5('0x37')]=extractCalleridNumber(_0x167509['calleridpreview']),_0x167509['calleridnum']=_0x167509[_0x32a2d5('0xd')],_0x167509[_0x32a2d5('0xc')]=[_0x167509['channel'],_0x167509[_0x32a2d5('0x50')]=_0x167509[_0x32a2d5('0xc')]][0x0],_0x167509['callerid']=_0x167509[_0x32a2d5('0x2f')]):(_0x167509['destination']=_0x167509[_0x32a2d5('0x6')],_0x167509[_0x32a2d5('0x6')]=_0x167509[_0x32a2d5('0xd')],_0x167509[_0x32a2d5('0x8')]==_0x32a2d5('0x33')?_0x167509[_0x32a2d5('0x34')]=_0x167509['connectedlinenum']:_0x167509[_0x32a2d5('0x34')]=''));}else _0x167509[_0x32a2d5('0x9')]=util['format'](_0x32a2d5('0x10'),_0x167509[_0x32a2d5('0x35')],_0x167509[_0x32a2d5('0x6')]);RpcVoiceCallReport['create'](_0x167509);if(_0x167509['monitor'])for(let _0xf75add=0x0;_0xf75add<_0x167509[_0x32a2d5('0x29')][_0x32a2d5('0x36')];_0xf75add+=0x1){_0x167509[_0x32a2d5('0x3c')]=_0x167509[_0x32a2d5('0x29')][_0xf75add][_0x32a2d5('0x2d')],_0x167509[_0x32a2d5('0x39')]=_0x167509[_0x32a2d5('0x29')][_0xf75add][_0x32a2d5('0x39')];if(_0x167509[_0x32a2d5('0x13')]==_0x32a2d5('0x3a'))_0x167509[_0x32a2d5('0x6')]=_0x167509[_0x32a2d5('0x4a')],_0x167509[_0x32a2d5('0x35')]=_0x167509[_0x32a2d5('0x3d')],_0x167509[_0x32a2d5('0x4a')]=_0x167509[_0x32a2d5('0x34')],_0x167509['connectedlinename']=_0x167509[_0x32a2d5('0x1d')],_0x167509['exten']=_0x167509[_0x32a2d5('0xd')];else _0x167509[_0x32a2d5('0x13')]==_0x32a2d5('0x4e')&&(_0x167509['calleridnum']=_0x167509[_0x32a2d5('0x37')],_0x167509[_0x32a2d5('0x13')]=_0x167509[_0x32a2d5('0xd')]);RpcVoiceRecording[_0x32a2d5('0x1b')](_0x167509);}},Report[_0x1cca57('0x41')][_0x1cca57('0x47')]=function(_0x4bc81d){const _0x5693a7=_0x1cca57;_[_0x5693a7('0x1f')](_0x4bc81d)?_0x4bc81d[_0x5693a7('0xf')](function(_0x2a3cd9){RpcVoiceAgentReport['create'](_0x2a3cd9);}):RpcVoiceAgentReport[_0x5693a7('0x1b')](_0x4bc81d);},Report[_0x1cca57('0x41')]['voiceDialReport']=function(_0x361fae){const _0x33a7c6=_0x1cca57;RpcVoiceDialReport[_0x33a7c6('0x1b')](_0x361fae);let _0x41d2aa=undefined;const _0x21a84e=_0x361fae[_0x33a7c6('0x50')];if(_[_0x33a7c6('0x28')](_0x21a84e,'Local')){const _0x52c514=_0x21a84e[_0x33a7c6('0x4f')](_0x21a84e['indexOf']('/')+0x1,_0x21a84e[_0x33a7c6('0x7')]('@'));_0x41d2aa=_[_0x33a7c6('0x3')](this[_0x33a7c6('0x20')],function(_0x41da42){const _0x97690=_0x33a7c6;return _0x41da42[_0x97690('0xb')]==_0x52c514||_0x41da42['phone']==_0x52c514||_0x41da42[_0x97690('0x34')]==_0x52c514;});}else{const _0x636de9=_0x21a84e[_0x33a7c6('0x4f')](_0x21a84e[_0x33a7c6('0x7')]('/')+0x1,_0x21a84e[_0x33a7c6('0xa')]('-'));_0x41d2aa=this[_0x33a7c6('0x22')](_0x636de9);}_0x41d2aa&&(_0x361fae[_0x33a7c6('0x23')]=_[_0x33a7c6('0x3b')](_0x41d2aa[_0x33a7c6('0x23')])?util[_0x33a7c6('0x45')](_0x33a7c6('0x48'),_0x41d2aa['name']):_0x41d2aa['interface'],_0x361fae[_0x33a7c6('0x1d')]=_0x41d2aa['name'],_0x361fae[_0x33a7c6('0x34')]=_0x41d2aa[_0x33a7c6('0x34')],RpcMemberReport[_0x33a7c6('0x21')](_0x361fae));},Report[_0x1cca57('0x41')][_0x1cca57('0x2')]=function(_0x855da2){RpcVoiceTransferReport['blindTransfer'](_0x855da2);},Report[_0x1cca57('0x41')][_0x1cca57('0x19')]=function(_0x690df4){const _0xe957ee=_0x1cca57;RpcVoiceTransferReport[_0xe957ee('0x19')](_0x690df4);},module['exports']=Report; \ No newline at end of file +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 diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index c5f00e6..5ef37bf 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1093_0x5aaf=['updateStatusRealtime','isUndefined','trunks','syncPeerStatus','format','toNumber','indexOf','omit','status','[syncPeerStatus][UserReport]','state','inspect','telephone:save','peer','actionSipPeerStatus','catch','devicestatechange','trunk:%s','error','username','bind','phone','../../../config/logger','resolve','event','find','exports','loopSyncRealTimeShow','accountcode','mobile','peerstatus','toLowerCase','trunk:save','syncDeviceState','lodash','actionSipShowRegistry','local','[syncDeviceState][UserReport]','address','emit','[loopSyncRealTimeShow]','syncRegistry','stateTime','telephones','name','device','telephone:%s','isNotNull','registryentry','merge','Queue','registered','agents','stateRegistry','startsWith','Local','inuse','prototype','then','actionDeviceStateList'];(function(_0x2dcef5,_0x5aaf05){const _0x618ce8=function(_0x4afcdf){while(--_0x4afcdf){_0x2dcef5['push'](_0x2dcef5['shift']());}};_0x618ce8(++_0x5aaf05);}(a1093_0x5aaf,0xf8));const a1093_0x618c=function(_0x2dcef5,_0x5aaf05){_0x2dcef5=_0x2dcef5-0x0;let _0x618ce8=a1093_0x5aaf[_0x2dcef5];return _0x618ce8;};const _0x1416d6=a1093_0x618c;'use strict';const _=require(_0x1416d6('0x1a')),moment=require('moment'),util=require('util'),logger=require(_0x1416d6('0xe'))('ami'),ami=require('../ami'),{getSocket}=require('../../../rediscache'),io=getSocket();function UserReport(_0x4afcdf){const _0x553c98=_0x1416d6;return this[_0x553c98('0x36')]=_0x4afcdf['trunks'],this['agents']=_0x4afcdf['agents'],this[_0x553c98('0x23')]=_0x4afcdf[_0x553c98('0x23')],ami['on'](_0x553c98('0x28'),this[_0x553c98('0x21')]['bind'](this)),ami['on']('registry',this['syncRegistry']['bind'](this)),ami['on'](_0x553c98('0x8'),this[_0x553c98('0x19')]['bind'](this)),ami['on'](_0x553c98('0x16'),this['syncPeerStatus'][_0x553c98('0xc')](this)),this[_0x553c98('0x13')](),Promise[_0x553c98('0xf')]()['then'](ami[_0x553c98('0x1b')]())[_0x553c98('0x32')](ami['actionDeviceStateList']())[_0x553c98('0x32')](ami[_0x553c98('0x6')]())[_0x553c98('0x7')](loggerCatch(_0x553c98('0x20')));}function loggerCatch(_0x4c3f0d){return function(_0x1dfa0f){const _0x16daaf=a1093_0x618c;logger[_0x16daaf('0xa')](_0x4c3f0d,util[_0x16daaf('0x3')](_0x1dfa0f,{'showHidden':![],'depth':null}));};}UserReport[_0x1416d6('0x31')][_0x1416d6('0x13')]=function(){setInterval(function(){const _0x206818=a1093_0x618c;Promise[_0x206818('0xf')]()[_0x206818('0x32')](ami[_0x206818('0x1b')]())['then'](ami[_0x206818('0x33')]())[_0x206818('0x32')](ami[_0x206818('0x6')]())[_0x206818('0x7')](loggerCatch(_0x206818('0x20')));},0x32c8);},UserReport[_0x1416d6('0x31')][_0x1416d6('0x27')]=function(_0x18f0b6){const _0x4223b0=_0x1416d6;return _0x18f0b6!==null&&!_[_0x4223b0('0x35')](_0x18f0b6);},UserReport['prototype'][_0x1416d6('0x1f')]=function(_0x120f47,_0x2c4a2a,_0x36e6b8){const _0x4a4e1a=_0x1416d6;io['to'](_0x120f47)[_0x4a4e1a('0x1f')](_0x2c4a2a,_0x36e6b8);},UserReport[_0x1416d6('0x31')][_0x1416d6('0x21')]=function(_0x3f3d8d){const _0x74a288=_0x1416d6;try{if(this[_0x74a288('0x27')](_0x3f3d8d)){const _0x2d90b7=_[_0x74a288('0x11')](this['trunks'],{'registry':_0x3f3d8d[_0x74a288('0xb')]});_0x2d90b7&&(_0x3f3d8d[_0x74a288('0x2d')]=_0x3f3d8d[_0x74a288('0x2')],_[_0x74a288('0x29')](_0x2d90b7,_[_0x74a288('0x3b')](_0x3f3d8d,[_0x74a288('0x10'),'actionid',_0x74a288('0xb'),_0x74a288('0x2')])),this[_0x74a288('0x1f')](util['format'](_0x74a288('0x9'),_0x2d90b7[_0x74a288('0x24')]),_0x74a288('0x18'),_0x2d90b7));}}catch(_0x5ccc35){logger[_0x74a288('0xa')]('[syncRegistry][UserReport]',util['inspect'](_0x5ccc35,{'showHidden':![],'depth':null}));}},UserReport['prototype']['syncDeviceState']=function(_0x581d1d){const _0xd2d673=_0x1416d6;try{if(this['isNotNull'](_0x581d1d)){if(this[_0xd2d673('0x2c')][_0x581d1d[_0xd2d673('0x25')]])(!this['agents'][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x1c')]||_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')]()==_0xd2d673('0x30'))&&(this[_0xd2d673('0x2c')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x1c')]=![],this[_0xd2d673('0x2c')][_0x581d1d[_0xd2d673('0x25')]]['state']!==_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')]()&&(this['agents'][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x22')]=_[_0xd2d673('0x39')](moment()[_0xd2d673('0x38')]('x'))),this[_0xd2d673('0x2c')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x2')]=_0x581d1d['state'][_0xd2d673('0x17')](),this[_0xd2d673('0x2c')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x34')](_0x581d1d));else{if(this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]])this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x2')]!==_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')]()&&(this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x22')]=_[_0xd2d673('0x39')](moment()[_0xd2d673('0x38')]('x'))),this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x2')]=_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')](),this[_0xd2d673('0x1f')](util[_0xd2d673('0x38')](_0xd2d673('0x26'),this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x24')]),_0xd2d673('0x4'),this[_0xd2d673('0x23')][_0x581d1d[_0xd2d673('0x25')]]);else{if(this['trunks'][_0x581d1d[_0xd2d673('0x25')]])this[_0xd2d673('0x36')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x2')]!==_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')]()&&(this[_0xd2d673('0x36')][_0x581d1d[_0xd2d673('0x25')]]['stateTime']=_[_0xd2d673('0x39')](moment()[_0xd2d673('0x38')]('x'))),this['trunks'][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x2')]=_0x581d1d['state'][_0xd2d673('0x17')](),this['emit'](util[_0xd2d673('0x38')](_0xd2d673('0x9'),this[_0xd2d673('0x36')][_0x581d1d[_0xd2d673('0x25')]][_0xd2d673('0x24')]),_0xd2d673('0x18'),this[_0xd2d673('0x36')][_0x581d1d['device']]);else{if(_['startsWith'](_0x581d1d[_0xd2d673('0x25')],_0xd2d673('0x2a'))){}else{if(_[_0xd2d673('0x2e')](_0x581d1d[_0xd2d673('0x25')],_0xd2d673('0x2f'))){const _0x5240da=_0x581d1d[_0xd2d673('0x25')],_0x508fce=_0x5240da['substring'](_0x5240da[_0xd2d673('0x3a')]('/')+0x1,_0x5240da['indexOf']('@')),_0x4fa5d4=_['find'](this['agents'],function(_0x45d0c8){const _0x538c7a=_0xd2d673;return _0x45d0c8[_0x538c7a('0x15')]==_0x508fce||_0x45d0c8[_0x538c7a('0xd')]==_0x508fce||_0x45d0c8[_0x538c7a('0x14')]==_0x508fce;});_0x4fa5d4&&(_0x4fa5d4[_0xd2d673('0x2')]!==_0x581d1d[_0xd2d673('0x2')]['toLowerCase']()&&(_0x4fa5d4[_0xd2d673('0x22')]=_[_0xd2d673('0x39')](moment()[_0xd2d673('0x38')]('x'))),_0x4fa5d4[_0xd2d673('0x2')]=_0x581d1d[_0xd2d673('0x2')][_0xd2d673('0x17')](),_0x4fa5d4[_0xd2d673('0x1c')]=!![],_0x4fa5d4[_0xd2d673('0x34')](_0x581d1d));}else{}}}}}}}catch(_0x4abc62){logger[_0xd2d673('0xa')](_0xd2d673('0x1d'),util[_0xd2d673('0x3')](_0x4abc62,{'showHidden':![],'depth':null}));}},UserReport['prototype'][_0x1416d6('0x37')]=function(_0x857578){const _0x3641b6=_0x1416d6;try{if(this[_0x3641b6('0x27')](_0x857578)&&this[_0x3641b6('0x27')](_0x857578[_0x3641b6('0x16')])){if(this[_0x3641b6('0x2c')][_0x857578[_0x3641b6('0x5')]])(!this[_0x3641b6('0x2c')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x1c')]||_0x857578[_0x3641b6('0x16')][_0x3641b6('0x17')]()==_0x3641b6('0x2b'))&&(this[_0x3641b6('0x2c')][_0x857578['peer']][_0x3641b6('0x1c')]=![],this[_0x3641b6('0x2c')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x0')]=_0x857578[_0x3641b6('0x16')][_0x3641b6('0x17')](),this[_0x3641b6('0x2c')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x1e')]=_0x857578['address'],this['agents'][_0x857578[_0x3641b6('0x5')]]['updateStatusRealtime'](_0x857578));else{if(this[_0x3641b6('0x23')][_0x857578['peer']])this[_0x3641b6('0x23')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x0')]=_0x857578[_0x3641b6('0x16')][_0x3641b6('0x17')](),this[_0x3641b6('0x23')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x1e')]=_0x857578[_0x3641b6('0x1e')],this[_0x3641b6('0x1f')](util[_0x3641b6('0x38')](_0x3641b6('0x26'),this[_0x3641b6('0x23')][_0x857578[_0x3641b6('0x5')]]['name']),'telephone:save',this['telephones'][_0x857578[_0x3641b6('0x5')]]);else{if(this['trunks'][_0x857578['peer']])this['trunks'][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x0')]=_0x857578[_0x3641b6('0x16')][_0x3641b6('0x17')](),this[_0x3641b6('0x36')][_0x857578[_0x3641b6('0x5')]]['address']=_0x857578[_0x3641b6('0x1e')],this[_0x3641b6('0x1f')](util[_0x3641b6('0x38')]('trunk:%s',this[_0x3641b6('0x36')][_0x857578[_0x3641b6('0x5')]][_0x3641b6('0x24')]),_0x3641b6('0x18'),this['trunks'][_0x857578[_0x3641b6('0x5')]]);else{}}}}}catch(_0x253c9a){logger[_0x3641b6('0xa')](_0x3641b6('0x1'),util[_0x3641b6('0x3')](_0x253c9a,{'showHidden':![],'depth':null}));}},module[_0x1416d6('0x12')]=UserReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index 227327d..afe504a 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1094_0x1d6d=['memberrealtime','rtpaudioqosloss','interface','memberdynamic','destconnectedlinenum','privilege','acwTimeout','agentcomplete','rtpaudioqos','talktime','emit','lodash','reason','connectedlinenum','agentconnect','[syncQueueCallerAbandon][VoiceAgentReport]','custom:agentringnoanswer','membercalls','syncMusicOnHoldStart','../ami','onhold','agentconnectAt','[syncMusicOnHoldStop][VoiceAgentReport]','answeredelsewheremembername','custom:agentansweredelsewhere','memberpenalty','event','prototype','rtpaudioqosrttbridged','lastevent','error','syncAgentRingNoAnswer','uniqueid','substring','holdtime','syncQueueCallerAbandon','diff','isUndefined','agentringnoanswer','attendedtransfer','syncMusicOnHoldStop','seconds','sipcallid','channel','values','[syncVarSet][VoiceAgentReport]','transfereruniqueid','syncHangup','custom:agentqueuecallerabandon','custom:agentcalled','queue','isNil','addVariable','lastIndexOf','acw','../../../config/logger','[syncAgentRingNoAnswer][VoiceAgentReport]','exports','syncAgentConnect','syncAgentComplete','[syncAgentComplete][VoiceAgentReport]','isNotNull','syncAgentCalled','variables','transfereeuniqueid','[syncAgentConnect][VoiceAgentReport]','bridgepvtcallid','[syncBlindTransfer][VoiceAgentReport]','syncBlindTransfer','YYYY-MM-DD\x20HH:mm:ss','sipuri','custom:agentcomplete','[syncHangup][VoiceAgentReport]','destchannelstatedesc','destchannelstate','keys','agentringnoanswerAt','membername','ami','../../../rediscache','transfer','answeredelsewheredestinationuniqueid','rtpaudioqosbridged','bind','value','secondtransfereruniqueid','answered_elsewhere','omit','type','moment','rtpaudioqoslossbridged','variable','inbound','user:%s','rtpaudioqosjitter','syncVarSet','rejected','abandoned','format','channels','voiceQueues','agentcompleteAt','merge','destuniqueid','rtpaudioqosrtt','inspect','undefined','custom:voiceAgentReport','connectedlinename','agentcalled','[syncMusicOnHoldStart][VoiceAgentReport]','musiconholdstart','agents','complete','origtransfereruniqueid','syncAttendedTransfer'];(function(_0x2e35da,_0x1d6dba){const _0x155798=function(_0x231329){while(--_0x231329){_0x2e35da['push'](_0x2e35da['shift']());}};_0x155798(++_0x1d6dba);}(a1094_0x1d6d,0xea));const a1094_0x1557=function(_0x2e35da,_0x1d6dba){_0x2e35da=_0x2e35da-0x0;let _0x155798=a1094_0x1d6d[_0x2e35da];return _0x155798;};const _0x46c150=a1094_0x1557;'use strict';const _=require(_0x46c150('0x9')),moment=require(_0x46c150('0x57')),util=require('util'),logger=require(_0x46c150('0x35'))(_0x46c150('0x4c')),ami=require(_0x46c150('0x11')),{getSocket}=require(_0x46c150('0x4d')),io=getSocket();function VoiceAgentReport(_0x231329){const _0x3b5a72=_0x46c150;this[_0x3b5a72('0x61')]={},this[_0x3b5a72('0x62')]=_0x231329[_0x3b5a72('0x62')],this['agents']=_0x231329[_0x3b5a72('0x6e')],this[_0x3b5a72('0x3d')]={},ami['on'](_0x3b5a72('0x6b'),this[_0x3b5a72('0x3c')][_0x3b5a72('0x51')](this)),ami['on'](_0x3b5a72('0xc'),this[_0x3b5a72('0x38')]['bind'](this)),ami['on'](_0x3b5a72('0x24'),this[_0x3b5a72('0x1d')][_0x3b5a72('0x51')](this)),ami['on']('queuecallerabandon',this[_0x3b5a72('0x21')][_0x3b5a72('0x51')](this)),ami['on'](_0x3b5a72('0x5'),this['syncAgentComplete'][_0x3b5a72('0x51')](this)),ami['on']('varset',this[_0x3b5a72('0x5d')]['bind'](this)),ami['on']('hangup',this[_0x3b5a72('0x2d')][_0x3b5a72('0x51')](this)),ami['on'](_0x3b5a72('0x6d'),this[_0x3b5a72('0x10')]['bind'](this)),ami['on']('musiconholdstop',this[_0x3b5a72('0x26')][_0x3b5a72('0x51')](this)),ami['on'](_0x3b5a72('0x25'),this[_0x3b5a72('0x71')][_0x3b5a72('0x51')](this)),ami['on']('blindtransfer',this[_0x3b5a72('0x42')][_0x3b5a72('0x51')](this));}VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x8')]=function(_0x5c3999,_0xe081f6,_0x34781a){const _0x502856=_0x46c150;io['to'](_0x5c3999)[_0x502856('0x8')](_0xe081f6,_0x34781a);},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x3b')]=function(_0x56542d){return _0x56542d!==null&&!_['isUndefined'](_0x56542d);},VoiceAgentReport['prototype'][_0x46c150('0x3c')]=function(_0x281736){const _0x464103=_0x46c150;try{this['isNotNull'](_0x281736)&&(_['isUndefined'](this[_0x464103('0x61')][_0x281736[_0x464103('0x1e')]])&&(this[_0x464103('0x61')][_0x281736[_0x464103('0x1e')]]={}),_[_0x464103('0x23')](this[_0x464103('0x61')][_0x281736['uniqueid']][_0x281736[_0x464103('0x65')]])&&(this[_0x464103('0x61')][_0x281736['uniqueid']][_0x281736[_0x464103('0x65')]]={'agentcalledAt':moment()[_0x464103('0x60')](_0x464103('0x43')),'lastevent':'called','variables':this[_0x464103('0x3d')][_0x281736['uniqueid']],'type':this[_0x464103('0x62')][_0x281736[_0x464103('0x30')]]?this[_0x464103('0x62')][_0x281736[_0x464103('0x30')]][_0x464103('0x56')]||_0x464103('0x5a'):_0x464103('0x5a')}),_[_0x464103('0x64')](this[_0x464103('0x61')][_0x281736['uniqueid']][_0x281736[_0x464103('0x65')]],_[_0x464103('0x55')](_0x281736,[_0x464103('0x18'),_0x464103('0x3')])),ami['emit'](_0x464103('0x2f'),this[_0x464103('0x61')][_0x281736[_0x464103('0x1e')]][_0x281736['destuniqueid']]),this[_0x464103('0x8')](util[_0x464103('0x60')](_0x464103('0x5b'),_0x281736[_0x464103('0x4b')]),'user:called',this[_0x464103('0x61')][_0x281736['uniqueid']][_0x281736[_0x464103('0x65')]]));}catch(_0x3aa6f9){logger[_0x464103('0x1c')]('[syncAgentCalled][VoiceAgentReport]',util[_0x464103('0x67')](_0x3aa6f9,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x38')]=function(_0x2f5b51){const _0x3de93a=_0x46c150;try{if(this['isNotNull'](_0x2f5b51)){if(this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]])for(const _0x3df9d3 in this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']]){if(typeof this['channels'][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3]!==_0x3de93a('0x68')){if(_0x2f5b51[_0x3de93a('0x65')]===_0x3df9d3)this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3]['agentconnectAt']=moment()['format'](_0x3de93a('0x43')),this['channels'][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x1b')]='connect',this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x20')]=_0x2f5b51[_0x3de93a('0x20')],this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3][_0x3de93a('0xb')]=_0x2f5b51['connectedlinenum'],this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x6a')]=_0x2f5b51[_0x3de93a('0x6a')],this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x48')]=_0x2f5b51[_0x3de93a('0x48')],this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3][_0x3de93a('0x47')]=_0x2f5b51[_0x3de93a('0x47')],_[_0x3de93a('0x64')](this[_0x3de93a('0x6e')][_0x2f5b51[_0x3de93a('0x0')]],_['pick'](_0x2f5b51,[_0x3de93a('0x30'),_0x3de93a('0x2')])),this[_0x3de93a('0x8')](util[_0x3de93a('0x60')](_0x3de93a('0x5b'),_0x2f5b51[_0x3de93a('0x4b')]),'user:agentconnect',this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x2f5b51['destuniqueid']]),ami['emit']('custom:agentconnect',this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3]);else!this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x24')]&&!this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x5')]&&(this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3]['agentringnoanswer']=!![],this[_0x3de93a('0x61')][_0x2f5b51['uniqueid']][_0x3df9d3][_0x3de93a('0x4a')]=moment()['format'](_0x3de93a('0x43')),this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3]['reason']=_0x3de93a('0x54'),this['channels'][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x1b')]='answered_elsewhere',this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x4f')]=_0x2f5b51[_0x3de93a('0x65')],this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3][_0x3de93a('0x15')]=_0x2f5b51[_0x3de93a('0x4b')],ami[_0x3de93a('0x8')](_0x3de93a('0x16'),this[_0x3de93a('0x61')][_0x2f5b51[_0x3de93a('0x1e')]][_0x3df9d3]));}}}}catch(_0x4bc4f2){logger['error'](_0x3de93a('0x3f'),util[_0x3de93a('0x67')](_0x4bc4f2,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x1d')]=function(_0x5129f4){const _0x380e0d=_0x46c150;try{this['isNotNull'](_0x5129f4)&&(this[_0x380e0d('0x61')][_0x5129f4['uniqueid']]&&this[_0x380e0d('0x61')][_0x5129f4[_0x380e0d('0x1e')]][_0x5129f4[_0x380e0d('0x65')]]&&(this[_0x380e0d('0x61')][_0x5129f4['uniqueid']][_0x5129f4[_0x380e0d('0x65')]][_0x380e0d('0x24')]=!![],this[_0x380e0d('0x61')][_0x5129f4[_0x380e0d('0x1e')]][_0x5129f4['destuniqueid']][_0x380e0d('0x4a')]=moment()['format'](_0x380e0d('0x43')),this[_0x380e0d('0x61')][_0x5129f4[_0x380e0d('0x1e')]][_0x5129f4[_0x380e0d('0x65')]]['reason']=_0x380e0d('0x5e'),this[_0x380e0d('0x61')][_0x5129f4[_0x380e0d('0x1e')]][_0x5129f4[_0x380e0d('0x65')]][_0x380e0d('0x1b')]=_0x380e0d('0x5e'),ami['emit'](_0x380e0d('0xe'),this['channels'][_0x5129f4['uniqueid']][_0x5129f4[_0x380e0d('0x65')]])));}catch(_0x53980b){logger[_0x380e0d('0x1c')](_0x380e0d('0x36'),util[_0x380e0d('0x67')](_0x53980b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x21')]=function(_0x5ec639){const _0x223aa7=_0x46c150;try{if(this[_0x223aa7('0x3b')](_0x5ec639)){if(this['channels'][_0x5ec639[_0x223aa7('0x1e')]])for(const _0x2515b1 in this[_0x223aa7('0x61')][_0x5ec639[_0x223aa7('0x1e')]]){typeof this[_0x223aa7('0x61')][_0x5ec639['uniqueid']][_0x2515b1]!==_0x223aa7('0x68')&&!this[_0x223aa7('0x61')][_0x5ec639['uniqueid']][_0x2515b1][_0x223aa7('0x24')]&&!this['channels'][_0x5ec639['uniqueid']][_0x2515b1][_0x223aa7('0x5')]&&(this[_0x223aa7('0x61')][_0x5ec639[_0x223aa7('0x1e')]][_0x2515b1][_0x223aa7('0x24')]=!![],this[_0x223aa7('0x61')][_0x5ec639['uniqueid']][_0x2515b1][_0x223aa7('0x4a')]=moment()['format'](_0x223aa7('0x43')),this['channels'][_0x5ec639[_0x223aa7('0x1e')]][_0x2515b1][_0x223aa7('0xa')]=_0x223aa7('0x5f'),this[_0x223aa7('0x61')][_0x5ec639[_0x223aa7('0x1e')]][_0x2515b1][_0x223aa7('0x1b')]='abandoned',ami[_0x223aa7('0x8')](_0x223aa7('0x2e'),this['channels'][_0x5ec639[_0x223aa7('0x1e')]][_0x2515b1]));}}}catch(_0xc86c68){logger[_0x223aa7('0x1c')](_0x223aa7('0xd'),util[_0x223aa7('0x67')](_0xc86c68,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x46c150('0x39')]=function(_0x4f5257){const _0x4bf04a=_0x46c150;try{if(this[_0x4bf04a('0x3b')](_0x4f5257)){if(this['channels'][_0x4f5257[_0x4bf04a('0x1e')]])for(const _0x4e5591 in this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]]){typeof this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591]!=='undefined'&&(this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591][_0x4bf04a('0x13')]&&!this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591][_0x4bf04a('0x5')]&&(this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591][_0x4bf04a('0x5')]=!![],this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591]['agentcompleteAt']=moment()[_0x4bf04a('0x60')]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x4f5257['uniqueid']][_0x4e5591][_0x4bf04a('0x1b')]=_0x4bf04a('0x6f'),this['channels'][_0x4f5257['uniqueid']][_0x4e5591]['talktime']=_0x4f5257['talktime'],this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591][_0x4bf04a('0xa')]=_0x4f5257['reason']=='transfer'?'agent':_0x4f5257[_0x4bf04a('0xa')],this[_0x4bf04a('0x62')][_0x4f5257[_0x4bf04a('0x30')]]&&this[_0x4bf04a('0x62')][_0x4f5257[_0x4bf04a('0x30')]][_0x4bf04a('0x34')]&&(this['channels'][_0x4f5257['uniqueid']][_0x4e5591]['agentacw']=!![],this[_0x4bf04a('0x61')][_0x4f5257['uniqueid']][_0x4e5591]['acwtime']=this[_0x4bf04a('0x62')][_0x4f5257[_0x4bf04a('0x30')]][_0x4bf04a('0x4')]),this['agents'][_0x4f5257[_0x4bf04a('0x0')]]=_['omit'](this['agents'][_0x4f5257['interface']],[_0x4bf04a('0x30'),_0x4bf04a('0x2')]),this[_0x4bf04a('0x8')](util[_0x4bf04a('0x60')](_0x4bf04a('0x5b'),_0x4f5257[_0x4bf04a('0x4b')]),'user:agentcomplete',this[_0x4bf04a('0x61')][_0x4f5257['uniqueid']][_0x4e5591]),ami[_0x4bf04a('0x8')](_0x4bf04a('0x45'),this[_0x4bf04a('0x61')][_0x4f5257[_0x4bf04a('0x1e')]][_0x4e5591])));}}}catch(_0x1e0277){logger[_0x4bf04a('0x1c')](_0x4bf04a('0x3a'),util[_0x4bf04a('0x67')](_0x1e0277,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x5d')]=function(_0x5e5408){const _0x39f46b=_0x46c150;try{if(this[_0x39f46b('0x3b')](_0x5e5408)){this['addVariable'](_0x5e5408[_0x39f46b('0x1e')],_[_0x39f46b('0x49')](_0x5e5408[_0x39f46b('0x59')])[0x0],_0x5e5408[_0x39f46b('0x52')]);if(this[_0x39f46b('0x61')][_0x5e5408[_0x39f46b('0x1e')]])for(const _0x11130f in this[_0x39f46b('0x61')][_0x5e5408['uniqueid']]){typeof this[_0x39f46b('0x61')][_0x5e5408[_0x39f46b('0x1e')]][_0x11130f]!==_0x39f46b('0x68')&&(_['isUndefined'](this['channels'][_0x5e5408[_0x39f46b('0x1e')]][_0x11130f][_0x39f46b('0x3d')])&&(this[_0x39f46b('0x61')][_0x5e5408[_0x39f46b('0x1e')]][_0x11130f][_0x39f46b('0x3d')]={}),this[_0x39f46b('0x61')][_0x5e5408[_0x39f46b('0x1e')]][_0x11130f][_0x39f46b('0x3d')]=this[_0x39f46b('0x3d')][_0x5e5408[_0x39f46b('0x1e')]]);}}}catch(_0x289188){logger[_0x39f46b('0x1c')](_0x39f46b('0x2b'),util[_0x39f46b('0x67')](_0x289188,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x46c150('0x32')]=function(_0x5f2499,_0x2fc8f6,_0x2cb609){const _0x4b06ce=_0x46c150,_0x2fc60c=[_0x4b06ce('0x6'),_0x4b06ce('0x50'),_0x4b06ce('0x5c'),'rtpaudioqosjitterbridged',_0x4b06ce('0x73'),_0x4b06ce('0x58'),_0x4b06ce('0x66'),_0x4b06ce('0x1a'),_0x4b06ce('0x28'),_0x4b06ce('0x44'),'bridgepeer',_0x4b06ce('0x40'),_0x4b06ce('0xf'),_0x4b06ce('0x1'),'memberinterface','memberlastcall','membername',_0x4b06ce('0x17'),_0x4b06ce('0x72')];!_[_0x4b06ce('0x31')](_0x2fc8f6)&&!_['includes'](_0x2fc60c,_0x2fc8f6)&&(_[_0x4b06ce('0x23')](this['variables'][_0x5f2499])&&(this[_0x4b06ce('0x3d')][_0x5f2499]={}),this[_0x4b06ce('0x3d')][_0x5f2499][_0x2fc8f6]=_0x2cb609);},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x2d')]=function(_0x32d5e8){const _0x558f91=_0x46c150;try{if(this[_0x558f91('0x3b')](_0x32d5e8)){if(this['channels'][_0x32d5e8[_0x558f91('0x1e')]]){for(const _0x13e299 in this[_0x558f91('0x61')][_0x32d5e8[_0x558f91('0x1e')]]){typeof this['channels'][_0x32d5e8[_0x558f91('0x1e')]][_0x13e299]!==_0x558f91('0x68')&&(this[_0x558f91('0x61')][_0x32d5e8[_0x558f91('0x1e')]][_0x13e299]['reason']=='transfer'&&this[_0x558f91('0x61')][_0x32d5e8[_0x558f91('0x1e')]][_0x13e299][_0x558f91('0x5')]&&(this['channels'][_0x32d5e8[_0x558f91('0x1e')]][_0x13e299][_0x558f91('0x63')]=moment()[_0x558f91('0x60')](_0x558f91('0x43'))));}ami[_0x558f91('0x8')](_0x558f91('0x69'),_[_0x558f91('0x2a')](this['channels'][_0x32d5e8[_0x558f91('0x1e')]])),delete this[_0x558f91('0x61')][_0x32d5e8[_0x558f91('0x1e')]];}this['variables'][_0x32d5e8['uniqueid']]&&delete this[_0x558f91('0x3d')][_0x32d5e8['uniqueid']];}}catch(_0x2b31cd){logger[_0x558f91('0x1c')](_0x558f91('0x46'),util[_0x558f91('0x67')](_0x2b31cd,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x46c150('0x71')]=function(_0x24ebf9){const _0x4ad9c7=_0x46c150;try{if(this[_0x4ad9c7('0x3b')](_0x24ebf9)){if(this['channels'][_0x24ebf9[_0x4ad9c7('0x3e')]])for(const _0x4914c2 in this['channels'][_0x24ebf9[_0x4ad9c7('0x3e')]]){if(typeof this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2]!==_0x4ad9c7('0x68')){if(_0x24ebf9[_0x4ad9c7('0x70')]===_0x4914c2){const _0x149074=moment();this['channels'][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2]['agentcomplete']=!![],this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2][_0x4ad9c7('0x63')]=moment()[_0x4ad9c7('0x60')](_0x4ad9c7('0x43')),this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2]['reason']=_0x4ad9c7('0x4e'),this['channels'][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2]['lastevent']=_0x4ad9c7('0x6f'),this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2][_0x4ad9c7('0x7')]=_0x149074['diff'](this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]][_0x4914c2]['agentconnectAt'],_0x4ad9c7('0x27'));}}}if(this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x53')]]){const _0x361359=this[_0x4ad9c7('0x61')][_0x24ebf9['secondtransfereruniqueid']];this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x53')]]=this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]],this[_0x4ad9c7('0x61')][_0x24ebf9[_0x4ad9c7('0x3e')]]=_0x361359;}}}catch(_0x5d06bc){logger['error']('[syncAttendedTransfer][VoiceAgentReport]',util[_0x4ad9c7('0x67')](_0x5d06bc,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x42')]=function(_0xbef5fb){const _0x1a9c94=_0x46c150;try{if(this[_0x1a9c94('0x3b')](_0xbef5fb)){if(this[_0x1a9c94('0x61')][_0xbef5fb['transfereeuniqueid']])for(const _0x4060a9 in this['channels'][_0xbef5fb[_0x1a9c94('0x3e')]]){if(typeof this['channels'][_0xbef5fb[_0x1a9c94('0x3e')]][_0x4060a9]!==_0x1a9c94('0x68')){if(_0xbef5fb[_0x1a9c94('0x2c')]===_0x4060a9){const _0x371b59=moment();this[_0x1a9c94('0x61')][_0xbef5fb[_0x1a9c94('0x3e')]][_0x4060a9][_0x1a9c94('0x5')]=!![],this[_0x1a9c94('0x61')][_0xbef5fb['transfereeuniqueid']][_0x4060a9]['agentcompleteAt']=_0x371b59,this[_0x1a9c94('0x61')][_0xbef5fb['transfereeuniqueid']][_0x4060a9]['reason']=_0x1a9c94('0x4e'),this['channels'][_0xbef5fb[_0x1a9c94('0x3e')]][_0x4060a9][_0x1a9c94('0x1b')]='complete',this[_0x1a9c94('0x61')][_0xbef5fb['transfereeuniqueid']][_0x4060a9][_0x1a9c94('0x7')]=_0x371b59[_0x1a9c94('0x22')](this[_0x1a9c94('0x61')][_0xbef5fb[_0x1a9c94('0x3e')]][_0x4060a9]['agentconnectAt'],_0x1a9c94('0x27'));}}}}}catch(_0xa0c5f9){logger[_0x1a9c94('0x1c')](_0x1a9c94('0x41'),util[_0x1a9c94('0x67')](_0xa0c5f9,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x10')]=function(_0x179bfc){const _0x3c9e6b=_0x46c150;let _0x50436e='';try{this[_0x3c9e6b('0x3b')](_0x179bfc)&&(_0x179bfc['channel']&&(_0x50436e=_0x179bfc[_0x3c9e6b('0x29')][_0x3c9e6b('0x1f')](0x0,_0x179bfc[_0x3c9e6b('0x29')][_0x3c9e6b('0x33')]('-')),this[_0x3c9e6b('0x6e')][_0x50436e]&&(this[_0x3c9e6b('0x6e')][_0x50436e][_0x3c9e6b('0x12')]=!![])));}catch(_0x2aa4fc){logger[_0x3c9e6b('0x1c')](_0x3c9e6b('0x6c'),util['inspect'](_0x2aa4fc,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x46c150('0x19')][_0x46c150('0x26')]=function(_0x8db7c4){const _0x1eb57e=_0x46c150;let _0x4490a9='';try{this['isNotNull'](_0x8db7c4)&&(_0x8db7c4[_0x1eb57e('0x29')]&&(_0x4490a9=_0x8db7c4[_0x1eb57e('0x29')][_0x1eb57e('0x1f')](0x0,_0x8db7c4[_0x1eb57e('0x29')][_0x1eb57e('0x33')]('-')),this[_0x1eb57e('0x6e')][_0x4490a9]&&(this[_0x1eb57e('0x6e')][_0x4490a9][_0x1eb57e('0x12')]=![])));}catch(_0x20f415){logger['error'](_0x1eb57e('0x14'),util[_0x1eb57e('0x67')](_0x20f415,{'showHidden':![],'depth':null}));}},module[_0x46c150('0x37')]=VoiceAgentReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index f94f337..e9dc46a 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1095_0x1bfa=['isUndefined','merge','from-sip','syncVarSet','mohtime','prototype','starttime','subtract','sipcallid','path','actionCoreShowChannels','transfereecalleridnum','syncNewExten','match','value','destination','inspect','mohstarttime','../../../config/logger','applicationdata','lodash','BlindTransfer','callerid','[syncNewExten][VoiceCallReport]','UserId','[syncMusicOnHoldStart][VoiceCallReport]','diff','type','split','xmd-originatecalleridnum','NO\x20ANSWER','custom:voiceCallReport','origtransfereruniqueid','[syncBlindTransfer][VoiceCallReport]','accountcode','syncNewState','[syncVarSet][VoiceCallReport]','xmd-callerid','OutgoingSpoolFailed','holdtime','syncNewCallerId','[syncNewState][VoiceCallReport]','varset','find','syncHangup','../../../rediscache','channels','blindtransfer','transfertargetuniqueid','xmd-phone','destconnectedlinenum','syncBlindTransfer','disposition','originatecalleridnum','resolve','xmd-cdrtype','format','user:agentconnect','queue','secondtransfereruniqueid','xmd-queue','calleridname','isNil','syncMusicOnHoldStop','answered','mixmonitor_filename','FAILED','sipcalluniqueid','ami','coreshowchannel','transfercalleridnum','.wav49','xmd-destination','YYYY-MM-DD\x20HH:mm:ss','answertime','milliseconds','musiconholdstart','xcally-motion-preview','syncMusicOnHoldStart','[syncNewChannel][VoiceCallReport]','monitorFilename','user:%s','lastapplication','exten','attendedtransfer','toNumber','uniqueid','pick','user:agentcomplete','parse','calleridpreview','billableseconds','duration','application','agents','sipcalllinkedid','voicemail','channelstate','[syncHangup][VoiceCallReport]','cdr(','omit','channel','hangup','bind','set','extension','linkedid','variable','push','name','transfertargetcalleridnum','syncMixMonitorFilename','newchannel','startsWith','moment','transferconnectedlinenum','syncNewChannel','calleridnum','origtransferercalleridnum','isNotNull','transfereeuniqueid','keys','endtime','error','membername','musiconholdstop','emit','context','seconds','newstate','appdata','toLowerCase'];(function(_0x43fba0,_0x1bfa99){const _0x2f03ef=function(_0x4c207f){while(--_0x4c207f){_0x43fba0['push'](_0x43fba0['shift']());}};_0x2f03ef(++_0x1bfa99);}(a1095_0x1bfa,0x99));const a1095_0x2f03=function(_0x43fba0,_0x1bfa99){_0x43fba0=_0x43fba0-0x0;let _0x2f03ef=a1095_0x1bfa[_0x43fba0];return _0x2f03ef;};const _0x4be07c=a1095_0x2f03;'use strict';const _=require(_0x4be07c('0x83')),moment=require(_0x4be07c('0x5d')),util=require('util'),path=require(_0x4be07c('0x78')),logger=require(_0x4be07c('0x81'))(_0x4be07c('0x2f')),ami=require('../ami'),Channel=require('../model/channel'),applications=[_0x4be07c('0x53'),_0x4be07c('0x25'),'agi','dial','playback',_0x4be07c('0x4b')],dispositions=[_0x4be07c('0x9'),_0x4be07c('0x2d'),_0x4be07c('0x2d'),_0x4be07c('0x9'),_0x4be07c('0x9'),_0x4be07c('0x9'),'ANSWERED','BUSY',_0x4be07c('0x2d'),_0x4be07c('0x2d'),_0x4be07c('0x2d')],{getSocket}=require(_0x4be07c('0x18')),io=getSocket();function VoiceCallReport(_0x4c207f){const _0x49c0b1=_0x4be07c;return this[_0x49c0b1('0x19')]=_0x4c207f[_0x49c0b1('0x19')],this['agents']=_0x4c207f[_0x49c0b1('0x49')],ami['on'](_0x49c0b1('0x30'),this[_0x49c0b1('0x7b')][_0x49c0b1('0x52')](this)),ami['on']('newexten',this['syncNewExten']['bind'](this)),ami['on'](_0x49c0b1('0x5b'),this[_0x49c0b1('0x5f')]['bind'](this)),ami['on'](_0x49c0b1('0x6c'),this['syncNewState'][_0x49c0b1('0x52')](this)),ami['on'](_0x49c0b1('0x15'),this[_0x49c0b1('0x72')]['bind'](this)),ami['on'](_0x49c0b1('0x51'),this[_0x49c0b1('0x17')]['bind'](this)),ami['on']('newcallerid',this[_0x49c0b1('0x13')]['bind'](this)),ami['on'](_0x49c0b1('0x3f'),this['syncAttendedTransfer'][_0x49c0b1('0x52')](this)),ami['on'](_0x49c0b1('0x1a'),this['syncBlindTransfer'][_0x49c0b1('0x52')](this)),ami['on'](_0x49c0b1('0x37'),this['syncMusicOnHoldStart'][_0x49c0b1('0x52')](this)),ami['on'](_0x49c0b1('0x68'),this[_0x49c0b1('0x2a')][_0x49c0b1('0x52')](this)),Promise[_0x49c0b1('0x21')]()['then'](ami[_0x49c0b1('0x79')]())['catch'](function(_0x2f6489){console['log'](_0x2f6489);});}VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x62')]=function(_0x2ac900){const _0x5ecdd6=_0x4be07c;return _0x2ac900!==null&&!_[_0x5ecdd6('0x6f')](_0x2ac900);},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x69')]=function(_0x186699,_0xf95fb4,_0x58bb44){const _0x42cb13=_0x4be07c;io['to'](_0x186699)[_0x42cb13('0x69')](_0xf95fb4,_0x58bb44);},VoiceCallReport['prototype']['syncNewCallerId']=function(_0x145ebf){const _0xc4994=_0x4be07c;try{this['isNotNull'](_0x145ebf)&&(_0x145ebf[_0xc4994('0x41')]===_0x145ebf[_0xc4994('0x55')]&&(!_[_0xc4994('0x6f')](this[_0xc4994('0x19')][_0x145ebf[_0xc4994('0x41')]])&&_[_0xc4994('0x70')](this['channels'][_0x145ebf[_0xc4994('0x41')]],_[_0xc4994('0x42')](_0x145ebf,_[_0xc4994('0x64')](this[_0xc4994('0x19')][_0x145ebf[_0xc4994('0x41')]])))));}catch(_0x3c684b){logger[_0xc4994('0x66')]('[syncNewCallerId][VoiceCallReport]',util[_0xc4994('0x7f')](_0x3c684b,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x4be07c('0x5f')]=function(_0x39b099){const _0x444c0f=_0x4be07c;try{this['isNotNull'](_0x39b099)&&(_0x39b099['uniqueid']===_0x39b099[_0x444c0f('0x55')]&&_0x39b099[_0x444c0f('0x50')]!=_0x444c0f('0x11')&&(_[_0x444c0f('0x6f')](this['channels'][_0x39b099['uniqueid']])&&(this['channels'][_0x39b099[_0x444c0f('0x41')]]=new Channel(),this[_0x444c0f('0x19')][_0x39b099[_0x444c0f('0x41')]][_0x444c0f('0x75')]=moment()[_0x444c0f('0x23')](_0x444c0f('0x34')),this['channels'][_0x39b099['uniqueid']][_0x444c0f('0x1f')]=dispositions[_[_0x444c0f('0x40')](_0x39b099[_0x444c0f('0x4c')])],_[_0x444c0f('0x70')](this['channels'][_0x39b099[_0x444c0f('0x41')]],_[_0x444c0f('0x42')](_0x39b099,_['keys'](this['channels'][_0x39b099[_0x444c0f('0x41')]]))),_0x39b099[_0x444c0f('0x6a')]==='from-sip'&&(this['agents'][_0x39b099[_0x444c0f('0x50')][_0x444c0f('0x7')]('-')[0x0]]&&(this[_0x444c0f('0x49')][_0x39b099[_0x444c0f('0x50')][_0x444c0f('0x7')]('-')[0x0]]['destconnectedlinenum']=_0x39b099[_0x444c0f('0x3e')],this['emit'](util['format'](_0x444c0f('0x3c'),this[_0x444c0f('0x49')][_0x39b099[_0x444c0f('0x50')][_0x444c0f('0x7')]('-')[0x0]]['name']),_0x444c0f('0x24'),{'destaccountcode':this['agents'][_0x39b099[_0x444c0f('0x50')]['split']('-')[0x0]][_0x444c0f('0xd')],'destconnectedlinenum':_0x39b099['exten']}))))));}catch(_0x5701d4){logger['error'](_0x444c0f('0x3a'),util[_0x444c0f('0x7f')](_0x5701d4,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')]['syncNewExten']=function(_0x39abc3){const _0x1f49bf=_0x4be07c;try{if(this[_0x1f49bf('0x62')](_0x39abc3)){if(_0x39abc3[_0x1f49bf('0x41')]===_0x39abc3[_0x1f49bf('0x55')]&&_0x39abc3[_0x1f49bf('0x3e')]!='h'&&_0x39abc3['channel']!='OutgoingSpoolFailed'){_0x39abc3[_0x1f49bf('0x48')]=_0x39abc3[_0x1f49bf('0x48')][_0x1f49bf('0x6e')](),_0x39abc3[_0x1f49bf('0x82')]=(_0x39abc3[_0x1f49bf('0x6d')]||_0x39abc3['applicationdata'])[_0x1f49bf('0x6e')]();_['isUndefined'](this[_0x1f49bf('0x19')][_0x39abc3[_0x1f49bf('0x41')]])&&(this['channels'][_0x39abc3[_0x1f49bf('0x41')]]=new Channel(),this[_0x1f49bf('0x19')][_0x39abc3[_0x1f49bf('0x41')]][_0x1f49bf('0x75')]=_0x39abc3[_0x1f49bf('0x47')]?moment()[_0x1f49bf('0x76')](moment[_0x1f49bf('0x47')](_0x39abc3[_0x1f49bf('0x47')])[_0x1f49bf('0x6b')](),_0x1f49bf('0x6b'))['format'](_0x1f49bf('0x34')):moment()['format'](_0x1f49bf('0x34')),this['channels'][_0x39abc3['uniqueid']]['disposition']='NO\x20ANSWER');_['merge'](this['channels'][_0x39abc3[_0x1f49bf('0x41')]],_['pick'](_0x39abc3,_[_0x1f49bf('0x64')](this['channels'][_0x39abc3[_0x1f49bf('0x41')]])));if(_['includes'](applications,_0x39abc3[_0x1f49bf('0x48')])){this[_0x1f49bf('0x19')][_0x39abc3[_0x1f49bf('0x41')]][_0x1f49bf('0x3d')]=_0x39abc3[_0x1f49bf('0x48')],this['channels'][_0x39abc3[_0x1f49bf('0x41')]]['lastdata']=_0x39abc3['applicationdata'];if(_0x39abc3[_0x1f49bf('0x48')]===_0x1f49bf('0x53')&&_[_0x1f49bf('0x5c')](_0x39abc3[_0x1f49bf('0x82')],_0x1f49bf('0x4e'))){const _0x3f91ff=_0x39abc3[_0x1f49bf('0x82')][_0x1f49bf('0x7')]('='),_0x583f86=_0x3f91ff[0x0][_0x1f49bf('0x7c')](/cdr\((.*)\)/);_0x583f86&&(this[_0x1f49bf('0x19')][_0x39abc3[_0x1f49bf('0x41')]][_0x583f86[0x1]]=_0x3f91ff[0x1]);}else _0x39abc3[_0x1f49bf('0x48')]===_0x1f49bf('0x25')&&(this[_0x1f49bf('0x19')][_0x39abc3[_0x1f49bf('0x41')]][_0x1f49bf('0x25')]=_0x39abc3[_0x1f49bf('0x82')]['split'](',')[0x0]);}}}}catch(_0x2d10f7){logger['error'](_0x1f49bf('0x2'),util[_0x1f49bf('0x7f')](_0x2d10f7,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0xe')]=function(_0xff5cfc){const _0x26c3cb=_0x4be07c;try{if(this[_0x26c3cb('0x62')](_0xff5cfc)){if(_0xff5cfc['uniqueid']!==_0xff5cfc[_0x26c3cb('0x55')]){if(this[_0x26c3cb('0x19')][_0xff5cfc['linkedid']]){if(_0xff5cfc[_0x26c3cb('0x4c')]==='6'){if(!this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x2b')]){const _0x796264=moment();this[_0x26c3cb('0x19')][_0xff5cfc['linkedid']]['answered']=!![],this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x35')]=_0x796264[_0x26c3cb('0x23')](_0x26c3cb('0x34')),this['channels'][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x75')]&&(this['channels'][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x12')]=_0x796264[_0x26c3cb('0x5')](this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x75')],_0x26c3cb('0x6b')));}this['channels'][_0xff5cfc[_0x26c3cb('0x55')]]['linkedid']=_0xff5cfc[_0x26c3cb('0x41')],_0xff5cfc[_0x26c3cb('0x60')]!==_0x26c3cb('0x38')&&(this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]]['connectedlinenum']=_0xff5cfc[_0x26c3cb('0x60')]),this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]]['connectedlinename']=_0xff5cfc[_0x26c3cb('0x28')],this[_0x26c3cb('0x19')][_0xff5cfc['linkedid']]['destinationchannel']=_0xff5cfc[_0x26c3cb('0x50')],this['channels'][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x1f')]=dispositions[_[_0x26c3cb('0x40')](_0xff5cfc[_0x26c3cb('0x4c')])],this[_0x26c3cb('0x49')][_0xff5cfc['channel'][_0x26c3cb('0x7')]('-')[0x0]]&&(this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x3')]=this[_0x26c3cb('0x49')][_0xff5cfc[_0x26c3cb('0x50')][_0x26c3cb('0x7')]('-')[0x0]]['id'],this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x55')]][_0x26c3cb('0x67')]=this['agents'][_0xff5cfc[_0x26c3cb('0x50')][_0x26c3cb('0x7')]('-')[0x0]][_0x26c3cb('0x58')]);}}}else this[_0x26c3cb('0x19')][_0xff5cfc[_0x26c3cb('0x41')]]&&(_0xff5cfc[_0x26c3cb('0x4c')]==='6'&&(this[_0x26c3cb('0x49')][_0xff5cfc['channel']['split']('-')[0x0]]&&(this['channels'][_0xff5cfc[_0x26c3cb('0x41')]][_0x26c3cb('0x3')]=this['agents'][_0xff5cfc[_0x26c3cb('0x50')][_0x26c3cb('0x7')]('-')[0x0]]['id'],this['channels'][_0xff5cfc[_0x26c3cb('0x41')]][_0x26c3cb('0x67')]=this[_0x26c3cb('0x49')][_0xff5cfc[_0x26c3cb('0x50')][_0x26c3cb('0x7')]('-')[0x0]][_0x26c3cb('0x58')])));}}catch(_0x31c681){logger[_0x26c3cb('0x66')](_0x26c3cb('0x14'),util['inspect'](_0x31c681,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x5a')]=function(_0x225d8d,_0x34cf34){const _0x1a7dc5=_0x4be07c;if(this[_0x1a7dc5('0x19')][_0x225d8d]){this['channels'][_0x225d8d]['monitor']=!![];_['endsWith'](_0x34cf34,_0x1a7dc5('0x32'))&&(_0x34cf34=_0x34cf34['replace']('.wav49','.WAV'));this[_0x1a7dc5('0x19')][_0x225d8d][_0x1a7dc5('0x3b')]=_0x34cf34;const _0x4524c4=_[_0x1a7dc5('0x16')](this[_0x1a7dc5('0x19')][_0x225d8d]['monitors'],{'filename':_0x34cf34});_[_0x1a7dc5('0x29')](_0x4524c4)&&this[_0x1a7dc5('0x19')][_0x225d8d]['monitors'][_0x1a7dc5('0x57')]({'filename':_0x34cf34,'createdAt':moment()['format'](_0x1a7dc5('0x34')),'mixmonitorid':'','status':'rec'});}},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x72')]=function(_0x5a9a81){const _0xc195d6=_0x4be07c;try{if(this[_0xc195d6('0x62')](_0x5a9a81)){if(this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]]&&_0x5a9a81[_0xc195d6('0x50')]!=_0xc195d6('0x11')){if(this['isNotNull'](_0x5a9a81[_0xc195d6('0x56')])){if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x2c')]))this[_0xc195d6('0x5a')](_0x5a9a81['uniqueid'],_0x5a9a81['value']);else{if(this['isNotNull'](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x1c')]))this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x60')]=_0x5a9a81[_0xc195d6('0x7d')];else{if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x10')]))this['channels'][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x1')]=_0x5a9a81[_0xc195d6('0x7d')];else{if(this[_0xc195d6('0x62')](_0x5a9a81['variable'][_0xc195d6('0x22')]))this['channels'][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x6')]=_0x5a9a81[_0xc195d6('0x7d')];else{if(this['isNotNull'](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x27')]))this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x25')]=_0x5a9a81['value']['split'](',')[0x0];else{if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x8')]))this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x20')]=_0x5a9a81[_0xc195d6('0x7d')];else{if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x33')]))this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x7e')]=_0x5a9a81[_0xc195d6('0x7d')];else{if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')]['xmd-callerid-preview']))this[_0xc195d6('0x19')][_0x5a9a81['uniqueid']][_0xc195d6('0x45')]=_0x5a9a81['value'];else{if(this[_0xc195d6('0x62')](_0x5a9a81['variable']['xmcs-queue']))this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x41')]][_0xc195d6('0x25')]=_0x5a9a81['value'];else this[_0xc195d6('0x62')](_0x5a9a81['variable']['sipcallid'])&&(this[_0xc195d6('0x19')][_0x5a9a81['uniqueid']][_0xc195d6('0x2e')]=_0x5a9a81[_0xc195d6('0x7d')]);}}}}}}}}}}else{if(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')][_0xc195d6('0x2c')])){if(_0x5a9a81[_0xc195d6('0x7d')]){const _0x1e73bc=path[_0xc195d6('0x44')](_0x5a9a81[_0xc195d6('0x7d')])[_0xc195d6('0x58')];this[_0xc195d6('0x5a')](_0x1e73bc,_0x5a9a81[_0xc195d6('0x7d')]);}}else this[_0xc195d6('0x19')][_0x5a9a81[_0xc195d6('0x55')]]&&(this[_0xc195d6('0x62')](_0x5a9a81[_0xc195d6('0x56')])&&(this[_0xc195d6('0x62')](_0x5a9a81['variable'][_0xc195d6('0x77')])&&(this[_0xc195d6('0x19')][_0x5a9a81['linkedid']][_0xc195d6('0x4a')]=_0x5a9a81[_0xc195d6('0x7d')])));}}}catch(_0x5a795b){logger[_0xc195d6('0x66')](_0xc195d6('0xf'),util[_0xc195d6('0x7f')](_0x5a795b,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')]['syncHangup']=function(_0x2ea049){const _0x1ded43=_0x4be07c;try{if(this[_0x1ded43('0x62')](_0x2ea049)){if(this[_0x1ded43('0x19')][_0x2ea049[_0x1ded43('0x41')]]){const _0x22829e=moment();this[_0x1ded43('0x19')][_0x2ea049[_0x1ded43('0x41')]][_0x1ded43('0x65')]=_0x22829e[_0x1ded43('0x23')](_0x1ded43('0x34')),this[_0x1ded43('0x19')][_0x2ea049[_0x1ded43('0x41')]][_0x1ded43('0x47')]=_0x22829e[_0x1ded43('0x5')](this['channels'][_0x2ea049[_0x1ded43('0x41')]][_0x1ded43('0x75')],_0x1ded43('0x6b')),this[_0x1ded43('0x19')][_0x2ea049['uniqueid']][_0x1ded43('0x2b')]&&(this[_0x1ded43('0x19')][_0x2ea049['uniqueid']][_0x1ded43('0x46')]=_0x22829e[_0x1ded43('0x5')](this['channels'][_0x2ea049[_0x1ded43('0x41')]][_0x1ded43('0x35')],_0x1ded43('0x6b')),this[_0x1ded43('0x19')][_0x2ea049['uniqueid']][_0x1ded43('0x12')]=this['channels'][_0x2ea049['uniqueid']][_0x1ded43('0x47')]-this[_0x1ded43('0x19')][_0x2ea049[_0x1ded43('0x41')]][_0x1ded43('0x46')]),_0x2ea049[_0x1ded43('0x6a')]===_0x1ded43('0x71')&&(this['agents'][_0x2ea049[_0x1ded43('0x50')][_0x1ded43('0x7')]('-')[0x0]]&&(this[_0x1ded43('0x49')][_0x2ea049['channel'][_0x1ded43('0x7')]('-')[0x0]]=_[_0x1ded43('0x4f')](this['agents'][_0x2ea049[_0x1ded43('0x50')][_0x1ded43('0x7')]('-')[0x0]],[_0x1ded43('0x1d')]),this['emit'](util[_0x1ded43('0x23')](_0x1ded43('0x3c'),this[_0x1ded43('0x49')][_0x2ea049[_0x1ded43('0x50')][_0x1ded43('0x7')]('-')[0x0]]['name']),_0x1ded43('0x43'),{'destaccountcode':this[_0x1ded43('0x49')][_0x2ea049[_0x1ded43('0x50')]['split']('-')[0x0]][_0x1ded43('0xd')]}))),ami[_0x1ded43('0x69')](_0x1ded43('0xa'),this[_0x1ded43('0x19')][_0x2ea049['uniqueid']]),delete this[_0x1ded43('0x19')][_0x2ea049[_0x1ded43('0x41')]];}}}catch(_0x1ea544){logger[_0x1ded43('0x66')](_0x1ded43('0x4d'),util['inspect'](_0x1ea544,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')]['syncAttendedTransfer']=function(_0x17680b){const _0x5ba22d=_0x4be07c;try{if(this[_0x5ba22d('0x62')](_0x17680b)){if(this[_0x5ba22d('0x19')][_0x17680b['transfereeuniqueid']]){this['channels'][_0x17680b[_0x5ba22d('0x63')]][_0x5ba22d('0x31')]=_0x17680b[_0x5ba22d('0x61')],this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0x63')]][_0x5ba22d('0x5e')]=_0x17680b[_0x5ba22d('0x59')];if(this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0x26')]]){const _0x3ba097=this['channels'][_0x17680b[_0x5ba22d('0x26')]];this['channels'][_0x17680b[_0x5ba22d('0x26')]]=this[_0x5ba22d('0x19')][_0x17680b['transfereeuniqueid']],this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0x63')]]=_0x3ba097;}}else{if(this['channels'][_0x17680b[_0x5ba22d('0x1b')]]){this[_0x5ba22d('0x19')][_0x17680b['transfertargetuniqueid']][_0x5ba22d('0x31')]=_0x17680b[_0x5ba22d('0x61')],this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0x1b')]][_0x5ba22d('0x5e')]=_0x17680b['transfertargetcalleridnum'];if(this['channels'][_0x17680b[_0x5ba22d('0xb')]]){const _0x26a319=this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0xb')]];this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0xb')]]=this[_0x5ba22d('0x19')][_0x17680b['transfertargetuniqueid']],this[_0x5ba22d('0x19')][_0x17680b[_0x5ba22d('0x1b')]]=_0x26a319;}}}}}catch(_0x20f638){logger[_0x5ba22d('0x66')]('[syncAttendedTransfer][VoiceCallReport]',util[_0x5ba22d('0x7f')](_0x20f638,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x1e')]=function(_0x38859d){const _0x5a5534=_0x4be07c;try{this[_0x5a5534('0x62')](_0x38859d)&&(this[_0x5a5534('0x19')][_0x38859d[_0x5a5534('0x63')]]&&(this[_0x5a5534('0x19')][_0x38859d[_0x5a5534('0x63')]][_0x5a5534('0x31')]=_0x38859d[_0x5a5534('0x7a')],this[_0x5a5534('0x19')][_0x38859d['transfereeuniqueid']][_0x5a5534('0x5e')]=_0x38859d[_0x5a5534('0x54')],this[_0x5a5534('0x17')]({'event':_0x5a5534('0x0'),'uniqueid':_0x38859d[_0x5a5534('0x63')],'context':_0x38859d[_0x5a5534('0x6a')],'channel':_0x38859d['transfererchannel']})));}catch(_0x5c3bbb){logger[_0x5a5534('0x66')](_0x5a5534('0xc'),util[_0x5a5534('0x7f')](_0x5c3bbb,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')][_0x4be07c('0x39')]=function(_0x3efa15){const _0x306f9b=_0x4be07c;try{this[_0x306f9b('0x62')](_0x3efa15)&&(this[_0x306f9b('0x19')][_0x3efa15[_0x306f9b('0x41')]]&&(!_[_0x306f9b('0x29')](this[_0x306f9b('0x19')][_0x3efa15[_0x306f9b('0x41')]]['answertime'])&&(this[_0x306f9b('0x19')][_0x3efa15[_0x306f9b('0x41')]][_0x306f9b('0x80')]=moment()[_0x306f9b('0x23')](_0x306f9b('0x34')))));}catch(_0x1ecfd0){logger[_0x306f9b('0x66')](_0x306f9b('0x4'),util[_0x306f9b('0x7f')](_0x1ecfd0,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x4be07c('0x74')]['syncMusicOnHoldStop']=function(_0x5b0f64){const _0x34a71f=_0x4be07c;try{this['isNotNull'](_0x5b0f64)&&(this[_0x34a71f('0x19')][_0x5b0f64[_0x34a71f('0x41')]]&&(!_[_0x34a71f('0x29')](this[_0x34a71f('0x19')][_0x5b0f64[_0x34a71f('0x41')]]['mohstarttime'])&&(this[_0x34a71f('0x19')][_0x5b0f64['uniqueid']][_0x34a71f('0x73')]+=moment()[_0x34a71f('0x36')](0x0)[_0x34a71f('0x5')](this[_0x34a71f('0x19')][_0x5b0f64[_0x34a71f('0x41')]][_0x34a71f('0x80')],_0x34a71f('0x6b')),delete this['channels'][_0x5b0f64[_0x34a71f('0x41')]][_0x34a71f('0x80')])));}catch(_0x1d6804){logger[_0x34a71f('0x66')]('[syncMusicOnHoldStop][VoiceCallReport]',util[_0x34a71f('0x7f')](_0x1d6804,{'showHidden':![],'depth':null}));}},module['exports']=VoiceCallReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index f783628..b43a8eb 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1096_0x47bd=['variables','syncHangup','rtpaudioqoslossbridged','[syncHangup][VoiceDialReport]','../ami','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','../../../rediscache','addVariable','../../../config/logger','emit','connectedlinename','seconds','inspect','lastIndexOf','channel','voice_outbound_channel:save','YYYY-MM-DD\x20HH:mm:ss','connectedlinenum','voice:outbound','substring','isUndefined','channels','includes','endtime','merge','total','membercalls','rtpaudioqos','varset','isNil','bind','uniqueid','membername','answertime','voice_outbound_channel:remove','stringify','syncDialEnd','lodash','rtpaudioqosjitter','format','outbound','lastevent','[syncDialEnd][VoiceDialReport]','keys','syncVarSet','custom:voiceDialReport','custom:dialbegin','sumDuration','memberpenalty','connect','holdtime','rtpaudioqosbridged','outboundChannels','answered','rtpaudioqosjitterbridged','syncDialBegin','[syncVarSet][VoiceDialReport]','complete','dialstatus','custom:dialconnect','rtpaudioqosloss','event','billableseconds','error','diff','[syncDialBegin][VoiceDialReport]','bridgepeer','omit','variable','custom:dialend','prototype','util','rtpaudioqosrtt','dialend','isNotNull','starttime','duration','sumBillable','value','rtpaudioqosrttbridged','privilege'];(function(_0x1ebd17,_0x47bd3b){const _0x1c3e6d=function(_0x19ae7c){while(--_0x19ae7c){_0x1ebd17['push'](_0x1ebd17['shift']());}};_0x1c3e6d(++_0x47bd3b);}(a1096_0x47bd,0x15b));const a1096_0x1c3e=function(_0x1ebd17,_0x47bd3b){_0x1ebd17=_0x1ebd17-0x0;let _0x1c3e6d=a1096_0x47bd[_0x1ebd17];return _0x1c3e6d;};const _0x634d1d=a1096_0x1c3e;'use strict';const _=require(_0x634d1d('0xe')),moment=require('moment'),util=require(_0x634d1d('0x30')),logger=require(_0x634d1d('0x42'))('ami'),ami=require(_0x634d1d('0x3e')),{getSocket}=require(_0x634d1d('0x40')),io=getSocket();function VoiceDialReport(_0x19ae7c){const _0x3fc252=_0x634d1d;this[_0x3fc252('0x4f')]=_0x19ae7c[_0x3fc252('0x1d')],this[_0x3fc252('0x11')]=_0x19ae7c[_0x3fc252('0x11')],this['variables']={},ami['on']('dialbegin',this[_0x3fc252('0x20')][_0x3fc252('0x7')](this)),ami['on'](_0x3fc252('0x32'),this[_0x3fc252('0xd')][_0x3fc252('0x7')](this)),ami['on'](_0x3fc252('0x5'),this[_0x3fc252('0x15')][_0x3fc252('0x7')](this)),ami['on']('hangup',this[_0x3fc252('0x3b')]['bind'](this));}VoiceDialReport[_0x634d1d('0x2f')][_0x634d1d('0x33')]=function(_0x25ea45){const _0x3ffa03=_0x634d1d;return _0x25ea45!==null&&!_[_0x3ffa03('0x4e')](_0x25ea45);},VoiceDialReport[_0x634d1d('0x2f')]['emit']=function(_0x298819,_0x2e9a81,_0x23b4d0){const _0x242ccc=_0x634d1d;io['to'](_0x298819)[_0x242ccc('0x43')](_0x2e9a81,_0x23b4d0);},VoiceDialReport[_0x634d1d('0x2f')]['syncDialBegin']=function(_0x333fe8){const _0x2eaf1d=_0x634d1d;try{this[_0x2eaf1d('0x33')](_0x333fe8)&&(this[_0x2eaf1d('0x4f')][_0x333fe8[_0x2eaf1d('0x8')]]&&(_[_0x2eaf1d('0x1')](this[_0x2eaf1d('0x4f')][_0x333fe8[_0x2eaf1d('0x8')]],{'starttime':moment()[_0x2eaf1d('0x10')]('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':'called','interface':_0x333fe8[_0x2eaf1d('0x48')][_0x2eaf1d('0x4d')](0x0,_0x333fe8[_0x2eaf1d('0x48')][_0x2eaf1d('0x47')]('-')),'membername':_0x333fe8[_0x2eaf1d('0x48')]['substring'](_0x333fe8[_0x2eaf1d('0x48')][_0x2eaf1d('0x47')]('/')+0x1,_0x333fe8[_0x2eaf1d('0x48')][_0x2eaf1d('0x47')]('-'))},_[_0x2eaf1d('0x2c')](_0x333fe8,[_0x2eaf1d('0x26'),_0x2eaf1d('0x39')])),this[_0x2eaf1d('0x43')](_0x2eaf1d('0x4c'),_0x2eaf1d('0x49'),this['channels'][_0x333fe8[_0x2eaf1d('0x8')]]),ami[_0x2eaf1d('0x43')](_0x2eaf1d('0x17'),this['channels'][_0x333fe8['uniqueid']])));}catch(_0x5e4311){logger[_0x2eaf1d('0x28')](_0x2eaf1d('0x2a'),util['inspect'](_0x5e4311,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0x634d1d('0xd')]=function(_0x1a3a94){const _0x1b4a47=_0x634d1d;try{this['isNotNull'](_0x1a3a94)&&(this['channels'][_0x1a3a94['uniqueid']]&&(this[_0x1b4a47('0x4f')][_0x1a3a94[_0x1b4a47('0x8')]][_0x1b4a47('0x23')]=_0x1a3a94[_0x1b4a47('0x23')],_0x1a3a94[_0x1b4a47('0x23')]==='ANSWER'&&(this[_0x1b4a47('0x4f')][_0x1a3a94[_0x1b4a47('0x8')]][_0x1b4a47('0x4b')]=_0x1a3a94[_0x1b4a47('0x4b')],this[_0x1b4a47('0x4f')][_0x1a3a94['uniqueid']][_0x1b4a47('0x44')]=_0x1a3a94[_0x1b4a47('0x44')],this['channels'][_0x1a3a94['uniqueid']][_0x1b4a47('0xa')]=moment()[_0x1b4a47('0x10')](_0x1b4a47('0x4a')),this['channels'][_0x1a3a94[_0x1b4a47('0x8')]][_0x1b4a47('0x12')]=_0x1b4a47('0x1a'),ami[_0x1b4a47('0x43')](_0x1b4a47('0x24'),this[_0x1b4a47('0x4f')][_0x1a3a94[_0x1b4a47('0x8')]])),this['emit'](_0x1b4a47('0x4c'),'voice_outbound_channel:save',this[_0x1b4a47('0x4f')][_0x1a3a94['uniqueid']])));}catch(_0x1adbb5){logger['error'](_0x1b4a47('0x13'),util[_0x1b4a47('0x46')](_0x1adbb5,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x634d1d('0x2f')][_0x634d1d('0x15')]=function(_0x250353){const _0x271fdb=_0x634d1d;try{this[_0x271fdb('0x33')](_0x250353)&&(this[_0x271fdb('0x41')](_0x250353[_0x271fdb('0x8')],_[_0x271fdb('0x14')](_0x250353[_0x271fdb('0x2d')])[0x0],_0x250353[_0x271fdb('0x37')]),this[_0x271fdb('0x33')](_0x250353['variable'])&&this[_0x271fdb('0x33')](_0x250353[_0x271fdb('0x2d')]['outboundrouteid'])&&(_[_0x271fdb('0x4e')](this[_0x271fdb('0x4f')][_0x250353[_0x271fdb('0x8')]])&&(this['channels'][_0x250353['uniqueid']]={'routeId':_0x250353['value'],'variables':this[_0x271fdb('0x3a')][_0x250353[_0x271fdb('0x8')]]},this[_0x271fdb('0x43')](_0x271fdb('0x4c'),_0x271fdb('0x49'),this[_0x271fdb('0x4f')][_0x250353[_0x271fdb('0x8')]]))));}catch(_0x4ddbc4){logger[_0x271fdb('0x28')](_0x271fdb('0x21'),util[_0x271fdb('0x46')](_0x4ddbc4,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0x634d1d('0x41')]=function(_0xc48ce1,_0x7574e3,_0x40c8ae){const _0x71ff0a=_0x634d1d,_0x3123e7=[_0x71ff0a('0x4'),_0x71ff0a('0x1c'),_0x71ff0a('0xf'),_0x71ff0a('0x1f'),_0x71ff0a('0x25'),_0x71ff0a('0x3c'),_0x71ff0a('0x31'),_0x71ff0a('0x38'),'sipcallid','sipuri',_0x71ff0a('0x2b'),'bridgepvtcallid',_0x71ff0a('0x3'),'memberdynamic','memberinterface','memberlastcall',_0x71ff0a('0x9'),_0x71ff0a('0x19'),'memberrealtime'];!_[_0x71ff0a('0x6')](_0x7574e3)&&!_[_0x71ff0a('0x50')](_0x3123e7,_0x7574e3)&&(_[_0x71ff0a('0x4e')](this[_0x71ff0a('0x3a')][_0xc48ce1])&&(this['variables'][_0xc48ce1]={}),this[_0x71ff0a('0x3a')][_0xc48ce1][_0x7574e3]=_0x40c8ae);},VoiceDialReport[_0x634d1d('0x2f')][_0x634d1d('0x3b')]=function(_0xc9b21c){const _0x305395=_0x634d1d;try{this['isNotNull'](_0xc9b21c)&&(this['channels'][_0xc9b21c['uniqueid']]&&(this['channels'][_0xc9b21c['uniqueid']]['endtime']=moment()[_0x305395('0x10')](_0x305395('0x4a')),this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x35')]=moment(this['channels'][_0xc9b21c['uniqueid']]['endtime'])[_0x305395('0x29')](this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x34')],_0x305395('0x45')),this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x12')]=_0x305395('0x22'),this[_0x305395('0x11')][_0x305395('0x2')]+=0x1,this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0xa')]&&(this[_0x305395('0x11')][_0x305395('0x1e')]+=0x1,this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x1b')]=moment(this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0xa')])[_0x305395('0x29')](this[_0x305395('0x4f')][_0xc9b21c['uniqueid']]['starttime'],_0x305395('0x45')),this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]]['billableseconds']=moment(this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x0')])[_0x305395('0x29')](this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0xa')],_0x305395('0x45')),this['outbound']['sumHoldTime']+=this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x1b')]||0x0,this[_0x305395('0x11')][_0x305395('0x36')]+=this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]][_0x305395('0x27')]),this[_0x305395('0x11')][_0x305395('0x18')]+=this['channels'][_0xc9b21c['uniqueid']][_0x305395('0x35')],ami[_0x305395('0x43')](_0x305395('0x16'),this['channels'][_0xc9b21c['uniqueid']]),ami['emit'](_0x305395('0x2e'),this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]]),this[_0x305395('0x43')](_0x305395('0x4c'),'voice_outbound:save',this[_0x305395('0x11')]),logger['info'](_0x305395('0x3f'),JSON[_0x305395('0xc')](this['channels'][_0xc9b21c[_0x305395('0x8')]])),this[_0x305395('0x43')](_0x305395('0x4c'),_0x305395('0xb'),this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]]),delete this[_0x305395('0x4f')][_0xc9b21c[_0x305395('0x8')]]),this[_0x305395('0x3a')][_0xc9b21c['uniqueid']]&&delete this['variables'][_0xc9b21c[_0x305395('0x8')]]);}catch(_0x195089){logger[_0x305395('0x28')](_0x305395('0x3d'),util['inspect'](_0x195089,{'showHidden':![],'depth':null}));}},module['exports']=VoiceDialReport; \ No newline at end of file +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 diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index 303da93..d300b5b 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1097_0x349a=['timeout','../model/queueReport','loopQueueSummary','fullybooted','queueChannels','destexten','startsWith','custom:timeout','isNotNull','format','[syncQueueCallerJoin][VoiceQueueReport]','voice_queue_channel:remove','abandoned','[syncAgentComplete][VoiceQueueReport]','name','membercalls','bridgepeer','COMPLETEDBY','error','inbound','transfererchannel','info','queue','ABANDONED','channel','originalposition','holdtime','[syncMusicOnHoldStart][VoiceQueueReport]','syncQueueCallerLeave','active','[syncQueueCallerAbandon][VoiceQueueReport]','transfertype','campaigns','rtpaudioqosrttbridged','enqueue','queuecallercompleteAt','transferexten','queuecallerleaveAt','[voiceQueueReport][checkVariables]','custom:queuecallerunmanaged','isNil','loggedin','queuecallerleave','memberlastcall','queuecallerabandonAt','linkedid','mohstarttime','sumDuration','milliseconds','[syncAgentConnect][VoiceQueueReport]','rtpaudioqosjitter','custom:queuecallerabandon','queuecallerexitreason','originated','[queues]','lodash','musiconholdstop','sumBillable','transfer','type','EXITWITHKEY','diff','emit','[syncQueueCallerLeave][VoiceQueueReport]','sipuri','waiting','../ami','memberpenalty','rtpaudioqosloss','undefined','includes','assigned','pTalking','ATTENDED','syncQueueSummaryComplete','blindtransfer','queuecallerexitAt','isEmpty','answered','mohtime','memberinterface','stringify','bridgepvtcallid','toLowerCase','syncBlindTransfer','inspect','syncQueueCallerJoin','BLINDTRANSFER','clearQueueReport','No\x20such\x20channel','emitVoiceQueueChannelSave','countBy','flagQueueSummary','syncMusicOnHoldStart','syncAttendedTransfer','lastAssignedTo','total','syncAgentComplete','status','unlockRR','loggedIn','connectedlinename','hangup','membername','custom:queuesummary','loopQueueShow','connectedlinenum','md5','transfereeuniqueid','queuecallerabandon','origtransfereruniqueid','available','ATTENDEDTRANSFER','[syncAttendedTransfer][VoiceQueueReport]','syncVarSet','callers','prototype','rtpaudioqoslossbridged','[syncVarSet][VoiceQueueReport]','syncAgentConnect','keys','queueReports','FORWARDTRANSFER','voice_queue:save','variables','reason','queuestatus','syncHangup','syncQueueSummary','secondtransfereruniqueid','queuesummary','voice:queue:%s','memberrealtime','[syncBlindTransfer][VoiceQueueReport]','voiceQueues','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','[voiceQueueReport][checkQueueReport]','YYYY-MM-DD\x20HH:mm:ss','emitVoiceQueueChannelRemove','syncQueueCallerAbandon','custom:voiceQueueReport','sequence','queuecallercomplete','talking','secondtransfererexten','tail','agents','voice_queue_channel:save','position','origtransfererexten','switch','emitVoiceQueueSummary','transferuniqueid','[syncQueueSummary][VoiceQueueReport]','transfertargetuniqueid','queuecallerexit','seconds','syncFullyBooted','add','toNumber','COMPLETEDBYAGENT','TIMEOUT','variable','rtpaudioqos','queuesummarycomplete','lastevent','memberdynamic','BLIND','moment','sumHoldTime','addVariable','BlindTransfer','pick','varset','COMPLETED','uniqueid','[syncHangup][VoiceQueueReport]','last','rtpaudioqosjitterbridged','Action','then','sipcallid','unmanaged','rtpaudioqosbridged','agentconnect','length','clearZombieChannels','channels','toUpperCase','Interval','bind','exports','attendedtransfer','Trunk','value','[syncMusicOnHoldStop][VoiceQueueReport]','isUndefined'];(function(_0x3ae527,_0x349ae5){const _0x1ccc1b=function(_0x4dc79a){while(--_0x4dc79a){_0x3ae527['push'](_0x3ae527['shift']());}};_0x1ccc1b(++_0x349ae5);}(a1097_0x349a,0xda));const a1097_0x1ccc=function(_0x3ae527,_0x349ae5){_0x3ae527=_0x3ae527-0x0;let _0x1ccc1b=a1097_0x349a[_0x3ae527];return _0x1ccc1b;};const _0x107ef6=a1097_0x1ccc;'use strict';const _=require(_0x107ef6('0x22')),moment=require(_0x107ef6('0x93')),util=require('util'),md5=require(_0x107ef6('0x56')),logger=require('../../../config/logger')('ami'),ami=require(_0x107ef6('0x2d')),QueueReport=require(_0x107ef6('0xb1')),{getSocket}=require('../../../rediscache'),io=getSocket(),Sequence=function(){};Sequence[_0x107ef6('0x5f')][_0x107ef6('0xd')]=function(_0x4dc79a){const _0x4fb5a4=_0x107ef6;this[_0x4fb5a4('0x7c')]=this['tail']?this[_0x4fb5a4('0x7c')]['finally'](_0x4dc79a):_0x4dc79a();};function VoiceQueueReport(_0x22076b){const _0x964639=_0x107ef6;this[_0x964639('0x78')]=new Sequence(),this['queueReports']={},this[_0x964639('0x7d')]=_0x22076b[_0x964639('0x7d')],this[_0x964639('0xa6')]=_0x22076b[_0x964639('0xb4')],this[_0x964639('0x71')]=_0x22076b[_0x964639('0x71')],this['flagQueueSummary']=!![],this[_0x964639('0xb')]=_0x22076b[_0x964639('0xb')],this[_0x964639('0x67')]={},ami['on'](_0x964639('0x6d'),this[_0x964639('0x6b')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x8f'),this['syncQueueSummaryComplete']['bind'](this)),ami['on']('queuecallerjoin',this['syncQueueCallerJoin'][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x58'),this[_0x964639('0x76')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x15'),this['syncQueueCallerLeave'][_0x964639('0xa9')](this)),ami['on']('agentcomplete',this[_0x964639('0x4c')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0xa3'),this['syncAgentConnect']['bind'](this)),ami['on'](_0x964639('0x98'),this[_0x964639('0x5d')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x51'),this[_0x964639('0x6a')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0xb3'),this[_0x964639('0x88')][_0x964639('0xa9')](this)),ami['on']('musiconholdstart',this[_0x964639('0x48')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x23'),this['syncMusicOnHoldStop'][_0x964639('0xa9')](this)),ami['on'](_0x964639('0xab'),this[_0x964639('0x49')][_0x964639('0xa9')](this)),ami['on'](_0x964639('0x36'),this[_0x964639('0x3f')]['bind'](this)),this[_0x964639('0xb2')](),this[_0x964639('0x54')]();}function clearChannels(_0x31819f){const _0x31a7b1=_0x107ef6;if(!_[_0x31a7b1('0x38')](_0x31819f))for(const _0xa49677 in _0x31819f){typeof _0x31819f[_0xa49677]!==_0x31a7b1('0x30')&&delete _0x31819f[_0xa49677];}}function clearCampaigns(_0x17bbb3){const _0x40ffb7=_0x107ef6;if(!_[_0x40ffb7('0x38')](_0x17bbb3))for(const _0x3e6e8d in _0x17bbb3){typeof _0x17bbb3[_0x3e6e8d]!==_0x40ffb7('0x30')&&(_0x17bbb3[_0x3e6e8d][_0x40ffb7('0x20')]=0x0);}}function clearVoiceQueues(_0x1d00cd){const _0x543968=_0x107ef6;if(!_['isEmpty'](_0x1d00cd))for(const _0x49a4a3 in _0x1d00cd){typeof _0x1d00cd[_0x49a4a3]!=='undefined'&&(_0x1d00cd[_0x49a4a3][_0x543968('0x20')]=0x0,_0x1d00cd[_0x49a4a3]['talking']=0x0,_0x1d00cd[_0x49a4a3]['pTalking']=0x0,_0x1d00cd[_0x49a4a3]['waiting']=0x0,_0x1d00cd[_0x49a4a3]['queueStatusComplete']=!![]);}}function clearAgentBooked(_0xa1c597){const _0x4c9612=_0x107ef6;if(!_[_0x4c9612('0x38')](_0xa1c597))for(const _0x401cf1 in _0xa1c597){typeof _0xa1c597[_0x401cf1]!==_0x4c9612('0x30')&&(_0xa1c597[_0x401cf1][_0x4c9612('0x4e')]=!![]);}}VoiceQueueReport['prototype'][_0x107ef6('0xa5')]=function(){const _0x3a28b9=_0x107ef6,_0x39f6a9=this;for(const _0x2f5b86 in this[_0x3a28b9('0xa6')]){typeof this[_0x3a28b9('0xa6')][_0x2f5b86]!=='undefined'&&!this[_0x3a28b9('0xa6')][_0x2f5b86][_0x3a28b9('0x81')]&&this['sequence'][_0x3a28b9('0xd')](function(){const _0x3cd269=_0x3a28b9;if(!_[_0x3cd269('0x13')](_0x39f6a9[_0x3cd269('0xa6')][_0x2f5b86]))return ami[_0x3cd269('0x9e')]({'action':_0x3cd269('0x4d'),'channel':_0x39f6a9[_0x3cd269('0xa6')][_0x2f5b86][_0x3cd269('0x3')]})['catch'](function(_0x6af781){const _0x18047e=_0x3cd269;_0x6af781['message']===_0x18047e('0x44')&&setTimeout(function(){const _0x1e1ff1=_0x18047e;_0x39f6a9[_0x1e1ff1('0xa6')][_0x2f5b86]&&(delete _0x39f6a9[_0x1e1ff1('0xa6')][_0x2f5b86],logger[_0x1e1ff1('0xc2')]('[voiceQueueReport][checkChannel]',_0x2f5b86)),_0x39f6a9[_0x1e1ff1('0x64')][_0x2f5b86]&&(delete _0x39f6a9[_0x1e1ff1('0x64')][_0x2f5b86],logger[_0x1e1ff1('0xc2')](_0x1e1ff1('0x73'),_0x2f5b86)),_0x39f6a9[_0x1e1ff1('0x67')][_0x2f5b86]&&(delete _0x39f6a9[_0x1e1ff1('0x67')][_0x2f5b86],logger[_0x1e1ff1('0xc2')](_0x1e1ff1('0x11'),_0x2f5b86));},0x1f40);});});}},VoiceQueueReport['prototype']['syncFullyBooted']=function(){const _0x1d506d=_0x107ef6;logger['error']('[FullyBooted]\x20clear\x20realtime'),clearChannels(this['channels']),this[_0x1d506d('0x43')](this['queueReports']),clearAgentBooked(this[_0x1d506d('0x7d')]),clearVoiceQueues(this[_0x1d506d('0x71')]),clearCampaigns(this[_0x1d506d('0xb')]);},VoiceQueueReport[_0x107ef6('0x5f')]['clearQueueReport']=function(_0x362ae4){const _0x517cf5=_0x107ef6,_0x55a06d=this;if(!_[_0x517cf5('0x38')](_0x362ae4))for(const _0x1b4985 in _0x362ae4){typeof _0x362ae4[_0x1b4985]!=='undefined'&&(_0x55a06d[_0x517cf5('0x75')](_0x362ae4[_0x1b4985]),delete _0x362ae4[_0x1b4985]);}};function loggerCatch(_0x5f1e9b){return function(_0x2f3d08){const _0x5d4607=a1097_0x1ccc;logger['error'](_0x5f1e9b,util[_0x5d4607('0x40')](_0x2f3d08,{'showHidden':![],'depth':null}));};}VoiceQueueReport[_0x107ef6('0x5f')]['emit']=function(_0x16c667,_0x3ea3d7,_0x44af54){const _0x4acff9=_0x107ef6;io['to'](_0x16c667)[_0x4acff9('0x29')](_0x3ea3d7,_0x44af54);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x45')]=function(_0x34fd79){const _0x22a887=_0x107ef6;this[_0x22a887('0x29')](util[_0x22a887('0xb9')](_0x22a887('0x6e'),_0x34fd79[_0x22a887('0xbe')]),_0x22a887('0x7e'),_0x34fd79);},VoiceQueueReport[_0x107ef6('0x5f')]['emitVoiceQueueChannelRemove']=function(_0x5bd641){const _0x5a1a59=_0x107ef6;logger[_0x5a1a59('0x0')](_0x5a1a59('0x72'),JSON['stringify'](_0x5bd641)),this[_0x5a1a59('0x29')](util['format']('voice:queue:%s',_0x5bd641[_0x5a1a59('0xbe')]),_0x5a1a59('0xbb'),_0x5bd641);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x82')]=function(_0x55a027){const _0x25dba4=_0x107ef6;if(_0x55a027[_0x25dba4('0x26')]===_0x25dba4('0xc3')){const _0x394540={'id':_0x55a027['id'],'name':_0x55a027['name'],'strategy':_0x55a027['strategy'],'answered':_0x55a027[_0x25dba4('0x39')],'available':_0x55a027[_0x25dba4('0x5a')],'loggedIn':_0x55a027['loggedIn'],'pTalking':_0x55a027[_0x25dba4('0x33')],'sumBillable':_0x55a027['sumBillable'],'sumDuration':_0x55a027['sumDuration'],'sumHoldTime':_0x55a027[_0x25dba4('0x94')]||0x0,'talking':_0x55a027[_0x25dba4('0x7a')],'total':_0x55a027[_0x25dba4('0x4b')],'type':_0x55a027[_0x25dba4('0x26')],'unmanaged':_0x55a027[_0x25dba4('0xa1')],'abandoned':_0x55a027[_0x25dba4('0xbc')],'waiting':_0x55a027[_0x25dba4('0x2c')]};_0x55a027[_0x25dba4('0xac')]&&(_0x394540[_0x25dba4('0xac')]={'id':_0x55a027[_0x25dba4('0xac')]['id'],'name':_0x55a027[_0x25dba4('0xac')][_0x25dba4('0xbe')],'active':_0x55a027[_0x25dba4('0xac')][_0x25dba4('0x8')],'callerid':_0x55a027['Trunk']['callerid']});_0x55a027['Interval']&&(_0x394540[_0x25dba4('0xa8')]={'id':_0x55a027[_0x25dba4('0xa8')]['id'],'name':_0x55a027['Interval'][_0x25dba4('0xbe')]});const _0x579011=md5(JSON[_0x25dba4('0x3c')](_0x394540));_0x55a027[_0x25dba4('0x56')]!==_0x579011&&(_0x55a027[_0x25dba4('0x56')]=_0x579011,this[_0x25dba4('0x29')](util['format']('voice:queue:%s',_0x394540[_0x25dba4('0xbe')]),_0x25dba4('0x66'),_0x394540));}},VoiceQueueReport[_0x107ef6('0x5f')]['isNotNull']=function(_0x429252){const _0x51ac27=_0x107ef6;return _0x429252!==null&&!_[_0x51ac27('0xaf')](_0x429252);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x54')]=function(){const _0x5d6360=this;setInterval(function(){const _0x5d06c8=a1097_0x1ccc;_0x5d6360[_0x5d06c8('0xa5')](),ami['Action']({'action':'queues'})['catch'](loggerCatch(_0x5d06c8('0x21')));},0x2710);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0xb2')]=function(){const _0x505251=this;setInterval(function(){const _0x5645af=a1097_0x1ccc;if(_0x505251['flagQueueSummary'])return ami[_0x5645af('0x9e')]({'action':_0x5645af('0x6d')})[_0x5645af('0x9f')](function(){const _0x29bba3=_0x5645af;_0x505251[_0x29bba3('0x47')]=![];})['catch'](loggerCatch('[queuesummary]'));},0x3e8);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x6b')]=function(_0x3c23fb){const _0x5c376f=_0x107ef6;try{if(this[_0x5c376f('0xb8')](_0x3c23fb)&&this[_0x5c376f('0xb8')](_0x3c23fb[_0x5c376f('0x1')])){if(this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]]){const _0x59007d=_[_0x5c376f('0x46')](this[_0x5c376f('0xa6')],_0x5c376f('0x1'))[_0x3c23fb[_0x5c376f('0x1')]]||0x0,_0x58704d=_0x59007d-_0x3c23fb[_0x5c376f('0x5e')];(this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x2c')]!==_[_0x5c376f('0x8a')](_0x3c23fb['callers'])||this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x4f')]!==_[_0x5c376f('0x8a')](_0x3c23fb[_0x5c376f('0x14')])||this['voiceQueues'][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x5a')]!==_['toNumber'](_0x3c23fb[_0x5c376f('0x5a')])||this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]]['talking']!==_0x58704d)&&(this['voiceQueues'][_0x3c23fb[_0x5c376f('0x1')]]['waiting']=_['toNumber'](_0x3c23fb['callers']),this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x4f')]=_[_0x5c376f('0x8a')](_0x3c23fb[_0x5c376f('0x14')]),this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x5a')]=_[_0x5c376f('0x8a')](_0x3c23fb[_0x5c376f('0x5a')]),this['voiceQueues'][_0x3c23fb[_0x5c376f('0x1')]]['talking']=_0x58704d>0x0?_0x58704d:0x0,this[_0x5c376f('0x71')][_0x3c23fb['queue']][_0x5c376f('0x7a')]=this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x7a')]>_[_0x5c376f('0x8a')](_0x3c23fb[_0x5c376f('0x14')])?_[_0x5c376f('0x8a')](_0x3c23fb[_0x5c376f('0x14')]):this[_0x5c376f('0x71')][_0x3c23fb[_0x5c376f('0x1')]][_0x5c376f('0x7a')],this[_0x5c376f('0x82')](this['voiceQueues'][_0x3c23fb['queue']])),ami[_0x5c376f('0x29')](_0x5c376f('0x53'),this['voiceQueues'][_0x3c23fb[_0x5c376f('0x1')]]);}}}catch(_0x317d33){logger['error'](_0x5c376f('0x84'),util['inspect'](_0x317d33,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x107ef6('0x35')]=function(){const _0x54c97b=_0x107ef6;this[_0x54c97b('0x47')]=!![];},VoiceQueueReport['prototype']['syncNewExten']=function(){},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x41')]=function(_0x9606eb){const _0x4ad2cd=_0x107ef6;try{if(this[_0x4ad2cd('0xb8')](_0x9606eb)){_[_0x4ad2cd('0xaf')](this['queueReports'][_0x9606eb[_0x4ad2cd('0x9a')]])&&(this[_0x4ad2cd('0x64')][_0x9606eb[_0x4ad2cd('0x9a')]]=[],this[_0x4ad2cd('0xa6')][_0x9606eb[_0x4ad2cd('0x9a')]]={});const _0x473322=new QueueReport();_0x473322[_0x4ad2cd('0xbe')]=_0x9606eb['queue'],_0x473322[_0x4ad2cd('0x26')]=this[_0x4ad2cd('0x71')][_0x473322[_0x4ad2cd('0xbe')]]&&this['voiceQueues'][_0x473322['name']][_0x4ad2cd('0x26')]?this[_0x4ad2cd('0x71')][_0x473322[_0x4ad2cd('0xbe')]][_0x4ad2cd('0x26')]||'inbound':_0x4ad2cd('0xc3'),_0x473322['queue']=_0x9606eb[_0x4ad2cd('0x1')],_0x473322['queuecallerjoinAt']=moment()[_0x4ad2cd('0xb9')](_0x4ad2cd('0x74')),_0x473322[_0x4ad2cd('0x7f')]=_0x9606eb['position'],_0x473322['count']=_0x9606eb['count'],_['merge'](_0x473322,_[_0x4ad2cd('0x97')](_0x9606eb,_[_0x4ad2cd('0x63')](_0x473322))),this[_0x4ad2cd('0x64')][_0x9606eb[_0x4ad2cd('0x9a')]]['push'](_0x473322),this['channels'][_0x9606eb[_0x4ad2cd('0x9a')]]=_0x473322,this['emitVoiceQueueChannelSave'](_0x473322);}}catch(_0x156549){logger[_0x4ad2cd('0xc2')](_0x4ad2cd('0xba'),util[_0x4ad2cd('0x40')](_0x156549,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')]['syncQueueCallerAbandon']=function(_0x589ec9){const _0x587b44=_0x107ef6;try{if(this['isNotNull'](_0x589ec9)){if(this[_0x587b44('0x64')][_0x589ec9[_0x587b44('0x9a')]]){const _0xd0795=_['last'](this[_0x587b44('0x64')][_0x589ec9[_0x587b44('0x9a')]]);_0xd0795[_0x587b44('0x79')]=![],_0xd0795[_0x587b44('0xe')]=null,_0xd0795[_0x587b44('0x5')]=_0x589ec9[_0x587b44('0x5')],_0xd0795['originalposition']=_0x589ec9[_0x587b44('0x4')],_0xd0795[_0x587b44('0x58')]=!![],_0xd0795[_0x587b44('0x17')]=moment()[_0x587b44('0xb9')](_0x587b44('0x74')),_0xd0795[_0x587b44('0x1f')]=_0x587b44('0x2'),_0xd0795[_0x587b44('0x4a')]=null,this['channels'][_0x589ec9[_0x587b44('0x9a')]]=_0xd0795,this['emitVoiceQueueChannelRemove'](_0xd0795);}}}catch(_0x351faf){logger[_0x587b44('0xc2')](_0x587b44('0x9'),util['inspect'](_0x351faf,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x7')]=function(_0x4a95b4){const _0x58eb84=_0x107ef6;try{if(this[_0x58eb84('0xb8')](_0x4a95b4)){if(this[_0x58eb84('0x64')][_0x4a95b4[_0x58eb84('0x9a')]]){const _0x204926=_[_0x58eb84('0x9c')](this[_0x58eb84('0x64')][_0x4a95b4[_0x58eb84('0x9a')]]);_0x204926[_0x58eb84('0x10')]=moment()[_0x58eb84('0xb9')](_0x58eb84('0x74')),_0x204926[_0x58eb84('0x55')]=_0x4a95b4[_0x58eb84('0x55')],_0x204926[_0x58eb84('0x50')]=_0x4a95b4[_0x58eb84('0x50')],this['channels'][_0x4a95b4['uniqueid']]=_0x204926,this[_0x58eb84('0x45')](_0x204926);}}}catch(_0xe1eca7){logger[_0x58eb84('0xc2')](_0x58eb84('0x2a'),util[_0x58eb84('0x40')](_0xe1eca7,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x62')]=function(_0x779a89){const _0x569421=_0x107ef6;try{if(this[_0x569421('0xb8')](_0x779a89)){if(this[_0x569421('0x64')][_0x779a89[_0x569421('0x9a')]]){const _0x194a38=_[_0x569421('0x9c')](this[_0x569421('0x64')][_0x779a89[_0x569421('0x9a')]]);_0x194a38['queuecallercomplete']=!![],_0x194a38[_0x569421('0x1f')]=_0x569421('0x8b');}}}catch(_0x3c82e6){logger['error'](_0x569421('0x1c'),util[_0x569421('0x40')](_0x3c82e6,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')]['syncAgentComplete']=function(_0x3bc23c){const _0x346a7d=_0x107ef6;try{if(this[_0x346a7d('0xb8')](_0x3bc23c)){if(this['queueReports'][_0x3bc23c['uniqueid']]){const _0x139a6d=_[_0x346a7d('0x9c')](this[_0x346a7d('0x64')][_0x3bc23c[_0x346a7d('0x9a')]]);_0x139a6d[_0x346a7d('0x58')]=![],_0x139a6d[_0x346a7d('0x17')]=null,_0x139a6d[_0x346a7d('0x32')]=!![],_0x139a6d['lastAssignedTo']=_0x3bc23c[_0x346a7d('0x52')],_0x139a6d['holdtime']=_0x3bc23c[_0x346a7d('0x5')],_0x139a6d[_0x346a7d('0x79')]=!![],_0x139a6d['queuecallerexit']=![],_0x139a6d[_0x346a7d('0x37')]=null;if(!_0x139a6d[_0x346a7d('0x25')]){if(_0x3bc23c[_0x346a7d('0x68')]==_0x346a7d('0x25'))_0x139a6d[_0x346a7d('0x1f')]=_0x346a7d('0x99');else{if(_[_0x346a7d('0xb6')](_0x3bc23c[_0x346a7d('0x3')][_0x346a7d('0x3e')](),'local/')){if(this[_0x346a7d('0x64')][_0x3bc23c['linkedid']]){const _0x18b353=_[_0x346a7d('0x9c')](this['queueReports'][_0x3bc23c[_0x346a7d('0x18')]]);_0x18b353[_0x346a7d('0x79')]=![],_0x18b353[_0x346a7d('0x86')]=!![],_0x18b353[_0x346a7d('0x37')]=moment(_0x139a6d['queuecallerjoinAt'])[_0x346a7d('0x89')](_0x3bc23c[_0x346a7d('0x5')],_0x346a7d('0x87'))[_0x346a7d('0xb9')](_0x346a7d('0x74')),_0x18b353[_0x346a7d('0x1f')]=_0x346a7d('0x65'),_0x18b353[_0x346a7d('0x25')]=!![],_0x18b353[_0x346a7d('0xa')]='FORWARD',_0x18b353[_0x346a7d('0xf')]=_0x3bc23c[_0x346a7d('0xb5')],_0x18b353['transferuniqueid']=_0x3bc23c[_0x346a7d('0x9a')];const _0x5b8b7d=this[_0x346a7d('0x64')][_0x3bc23c[_0x346a7d('0x18')]];this[_0x346a7d('0x64')][_0x3bc23c[_0x346a7d('0x18')]]=this['queueReports'][_0x3bc23c[_0x346a7d('0x9a')]],this[_0x346a7d('0x64')][_0x3bc23c['uniqueid']]=_0x5b8b7d;}}else _0x139a6d['queuecallerexitreason']=_0x346a7d('0xc1')+_0x3bc23c[_0x346a7d('0x68')][_0x346a7d('0xa7')]();}}this['channels'][_0x3bc23c[_0x346a7d('0x9a')]]=_0x139a6d,this[_0x346a7d('0x75')](_0x139a6d);}}}catch(_0x1433dc){logger[_0x346a7d('0xc2')](_0x346a7d('0xbd'),util[_0x346a7d('0x40')](_0x1433dc,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x5d')]=function(_0x1a3f24){const _0x5ab429=_0x107ef6;try{if(this[_0x5ab429('0xb8')](_0x1a3f24)){this[_0x5ab429('0x95')](_0x1a3f24['uniqueid'],_['keys'](_0x1a3f24[_0x5ab429('0x8d')])[0x0],_0x1a3f24[_0x5ab429('0xad')]);if(this[_0x5ab429('0x64')][_0x1a3f24['uniqueid']]){const _0x149e71=_[_0x5ab429('0x9c')](this['queueReports'][_0x1a3f24[_0x5ab429('0x9a')]]);if(_0x149e71){if(this[_0x5ab429('0xb8')](_0x1a3f24['variable'])&&this[_0x5ab429('0xb8')](_0x1a3f24['variable'][_0x5ab429('0x69')])){switch(_0x1a3f24[_0x5ab429('0xad')]){case'CONTINUE':_0x149e71[_0x5ab429('0x86')]=![],_0x149e71[_0x5ab429('0x37')]=null;break;case _0x5ab429('0x8c'):_0x149e71[_0x5ab429('0x90')]=_0x5ab429('0xb0'),ami[_0x5ab429('0x29')](_0x5ab429('0xb7'),_0x149e71);break;default:_0x149e71['queuecallerexit']=!![],_0x149e71[_0x5ab429('0x37')]=moment()[_0x5ab429('0xb9')](_0x5ab429('0x74')),_0x149e71[_0x5ab429('0x10')]=moment()[_0x5ab429('0xb9')](_0x5ab429('0x74'));}_0x149e71[_0x5ab429('0x58')]=![],_0x149e71[_0x5ab429('0x17')]=null,_0x149e71[_0x5ab429('0x1f')]=_0x1a3f24['value'],this[_0x5ab429('0xa6')][_0x1a3f24[_0x5ab429('0x9a')]]=_0x149e71,this[_0x5ab429('0x75')](_0x149e71);}else this[_0x5ab429('0xb8')](_0x1a3f24['variable'])&&this[_0x5ab429('0xb8')](_0x1a3f24['variable']['queueposition'])&&(!_0x149e71[_0x5ab429('0x58')]&&(_0x149e71[_0x5ab429('0x86')]=!![],_0x149e71[_0x5ab429('0x37')]=moment()[_0x5ab429('0xb9')](_0x5ab429('0x74')),_0x149e71['queuecallerexitreason']=_0x5ab429('0x27'),_0x149e71[_0x5ab429('0x10')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x5ab429('0xa6')][_0x1a3f24[_0x5ab429('0x9a')]]=_0x149e71));_0x149e71[_0x5ab429('0x67')]=this[_0x5ab429('0x67')][_0x1a3f24[_0x5ab429('0x9a')]];}}}}catch(_0x56556c){logger[_0x5ab429('0xc2')](_0x5ab429('0x61'),util[_0x5ab429('0x40')](_0x56556c,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x95')]=function(_0x5253d5,_0x1b645b,_0x58c5e5){const _0x1dcd2e=_0x107ef6,_0xfa6893=[_0x1dcd2e('0x8e'),_0x1dcd2e('0xa2'),_0x1dcd2e('0x1d'),_0x1dcd2e('0x9d'),_0x1dcd2e('0x2f'),_0x1dcd2e('0x60'),'rtpaudioqosrtt',_0x1dcd2e('0xc'),_0x1dcd2e('0xa0'),_0x1dcd2e('0x2b'),_0x1dcd2e('0xc0'),_0x1dcd2e('0x3d'),_0x1dcd2e('0xbf'),_0x1dcd2e('0x91'),_0x1dcd2e('0x3b'),_0x1dcd2e('0x16'),_0x1dcd2e('0x52'),_0x1dcd2e('0x2e'),_0x1dcd2e('0x6f')];!_[_0x1dcd2e('0x13')](_0x1b645b)&&!_[_0x1dcd2e('0x31')](_0xfa6893,_0x1b645b)&&(_[_0x1dcd2e('0xaf')](this[_0x1dcd2e('0x67')][_0x5253d5])&&(this[_0x1dcd2e('0x67')][_0x5253d5]={}),this[_0x1dcd2e('0x67')][_0x5253d5][_0x1b645b]=_0x58c5e5);},VoiceQueueReport[_0x107ef6('0x5f')][_0x107ef6('0x6a')]=function(_0x22c249){const _0x1a8e8b=_0x107ef6;try{if(this[_0x1a8e8b('0xb8')](_0x22c249)){if(this[_0x1a8e8b('0x64')][_0x22c249[_0x1a8e8b('0x9a')]]){for(let _0x20c9cd=0x0,_0x29c4a4={};_0x20c9cd0x0?_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={};_0x315b06=0x0?moment(_0xeb6455[_0x5721ce('0x8')])[_0x5721ce('0xa')](_0xeb6455[_0x5721ce('0x19')],_0x5721ce('0xe')):null,'data1':'outbound','data2':_0xeb6455[_0x5721ce('0x10')],'data3':_0xeb6455[_0x5721ce('0x11')],'data4':_0xeb6455['dialstring']||null,'role':'agent','internal':_0xeb6455['accountcode']?_[_0x5721ce('0x17')](_0xeb6455['accountcode']):undefined,'uniqueid':_0xeb6455[_0x5721ce('0x12')]},'log':_0x5721ce('0x6')});}; \ No newline at end of file +const a1118_0x47a0=['dialstring','seconds','queuecallerleaveAt','voiceQueueReport','voiceDialReport','inbound','toNumber','endtime','CreateMemberReport','agent','exten','queuecallerexitAt','isNil','diff','lastAssignedTo','../client','accountcode','voice','TALKING','format','Request','moment','uniqueid','starttime','interface','lodash','outbound','calleridnum'];(function(_0xa9863,_0x47a000){const _0x148fde=function(_0x291f5f){while(--_0x291f5f){_0xa9863['push'](_0xa9863['shift']());}};_0x148fde(++_0x47a000);}(a1118_0x47a0,0x176));const a1118_0x148f=function(_0xa9863,_0x47a000){_0xa9863=_0xa9863-0x0;let _0x148fde=a1118_0x47a0[_0xa9863];return _0x148fde;};const _0x4b81b2=a1118_0x148f;'use strict';const moment=require(_0x4b81b2('0xb')),_=require(_0x4b81b2('0xf')),util=require('util'),client=require(_0x4b81b2('0x5'));exports[_0x4b81b2('0x15')]=function(_0x291f5f){const _0x3ec6eb=_0x4b81b2,_0x5374cd=_0x291f5f['queuecallercompleteAt']||_0x291f5f[_0x3ec6eb('0x1')];return client[_0x3ec6eb('0xa')](_0x3ec6eb('0x1a'),{'body':{'channel':'voice','membername':_0x291f5f[_0x3ec6eb('0x4')],'interface':_[_0x3ec6eb('0x2')](_0x291f5f[_0x3ec6eb('0xe')])?util[_0x3ec6eb('0x9')]('SIP/%s',_0x291f5f[_0x3ec6eb('0x4')]):_0x291f5f[_0x3ec6eb('0xe')],'type':_0x3ec6eb('0x8'),'enterAt':_0x291f5f['queuecallerleaveAt'],'exitAt':_0x5374cd,'duration':moment(_0x5374cd)[_0x3ec6eb('0x3')](_0x291f5f[_0x3ec6eb('0x14')],'seconds'),'data1':_0x3ec6eb('0x17'),'data2':_0x291f5f[_0x3ec6eb('0x11')],'data3':_0x291f5f['exten'],'data4':null,'data5':_0x291f5f['queue'],'role':_0x3ec6eb('0x1b'),'internal':_0x291f5f['accountcode']?_[_0x3ec6eb('0x18')](_0x291f5f[_0x3ec6eb('0x6')]):undefined,'uniqueid':_0x291f5f['uniqueid']},'log':'CreateMemberReport'});},exports[_0x4b81b2('0x16')]=function(_0x345b74){const _0x7c873a=_0x4b81b2;return client[_0x7c873a('0xa')](_0x7c873a('0x1a'),{'body':{'channel':_0x7c873a('0x7'),'membername':_0x345b74['membername'],'interface':_0x345b74[_0x7c873a('0xe')],'type':_0x7c873a('0x8'),'enterAt':_0x345b74[_0x7c873a('0xd')],'exitAt':_0x345b74['endtime'],'duration':moment(_0x345b74[_0x7c873a('0x19')])[_0x7c873a('0x3')](_0x345b74[_0x7c873a('0xd')],_0x7c873a('0x13'))>=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 diff --git a/server/services/ami/rpc/template.js b/server/services/ami/rpc/template.js index 2581b5e..fc55922 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1119_0x2709=['GetTemplate','../client','Request','name'];(function(_0x4387f2,_0x270916){const _0x5c10d7=function(_0x2fe9ee){while(--_0x2fe9ee){_0x4387f2['push'](_0x4387f2['shift']());}};_0x5c10d7(++_0x270916);}(a1119_0x2709,0x130));const a1119_0x5c10=function(_0x4387f2,_0x270916){_0x4387f2=_0x4387f2-0x0;let _0x5c10d7=a1119_0x2709[_0x4387f2];return _0x5c10d7;};const _0x5b26c0=a1119_0x5c10;'use strict';const client=require(_0x5b26c0('0x1'));exports['getTemplates']=function(){return function(){const _0x359026=a1119_0x5c10;return client[_0x359026('0x2')](_0x359026('0x0'),{'options':{'raw':!![],'attributes':['id',_0x359026('0x3'),'html']},'log':_0x359026('0x0')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index afe2c25..a2a19d3 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1120_0x4170=['AnyConditions','channel','data4','Condition','getTriggers','value','../client','data1','action','data3','data2','data6','field','GetTrigger','Action','operator','AllConditions'];(function(_0x2258f6,_0x4170d8){const _0x4466e5=function(_0x2d5dd3){while(--_0x2d5dd3){_0x2258f6['push'](_0x2258f6['shift']());}};_0x4466e5(++_0x4170d8);}(a1120_0x4170,0x144));const a1120_0x4466=function(_0x2258f6,_0x4170d8){_0x2258f6=_0x2258f6-0x0;let _0x4466e5=a1120_0x4170[_0x2258f6];return _0x4466e5;};const _0x343947=a1120_0x4466;'use strict';const client=require(_0x343947('0x5'));exports[_0x343947('0x3')]=function(){return function(){const _0x1c8bc1=a1120_0x4466;return client['Request'](_0x1c8bc1('0xc'),{'options':{'raw':![],'attributes':['id','name',_0x1c8bc1('0x0'),'status'],'include':[{'model':_0x1c8bc1('0x2'),'as':_0x1c8bc1('0xf'),'attributes':['id',_0x1c8bc1('0xb'),'operator',_0x1c8bc1('0x4')]},{'model':_0x1c8bc1('0x2'),'as':_0x1c8bc1('0x10'),'attributes':['id',_0x1c8bc1('0xb'),_0x1c8bc1('0xe'),_0x1c8bc1('0x4')]},{'model':_0x1c8bc1('0xd'),'as':'Actions','attributes':['id',_0x1c8bc1('0x7'),_0x1c8bc1('0x6'),_0x1c8bc1('0x9'),_0x1c8bc1('0x8'),_0x1c8bc1('0x1'),'data5',_0x1c8bc1('0xa'),'data7']}]},'log':'GetTrigger'});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index cc52f52..be0b4e7 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1121_0x4e4d=['Request','registry','GetTrunk','name','getTrunks'];(function(_0x3746c6,_0x4e4dc9){const _0x4342d9=function(_0x5b586b){while(--_0x5b586b){_0x3746c6['push'](_0x3746c6['shift']());}};_0x4342d9(++_0x4e4dc9);}(a1121_0x4e4d,0x1cf));const a1121_0x4342=function(_0x3746c6,_0x4e4dc9){_0x3746c6=_0x3746c6-0x0;let _0x4342d9=a1121_0x4e4d[_0x3746c6];return _0x4342d9;};const _0xa6e137=a1121_0x4342;'use strict';const client=require('../client');exports[_0xa6e137('0x1')]=function(){return function(){const _0x15239c=a1121_0x4342;return client[_0x15239c('0x2')](_0x15239c('0x4'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x15239c('0x0'),_0x15239c('0x3')]},'log':'GetTrunk'});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index 1b6ff66..fa5c28a 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1122_0x1483=['ShowUser','mobile','online','UnpauseUser','savePause','accountcode','lastPauseAt','pauseType','../client','getAgents','email','interface','lastLoginAt','fullname','PauseUser','getTelephones','voicePause','agent','Request','phone','GetUser','name'];(function(_0x143e66,_0x148374){const _0x3522c2=function(_0x2ea130){while(--_0x2ea130){_0x143e66['push'](_0x143e66['shift']());}};_0x3522c2(++_0x148374);}(a1122_0x1483,0x1dd));const a1122_0x3522=function(_0x143e66,_0x148374){_0x143e66=_0x143e66-0x0;let _0x3522c2=a1122_0x1483[_0x143e66];return _0x3522c2;};const _0x505803=a1122_0x3522;'use strict';const client=require(_0x505803('0xf'));exports[_0x505803('0x10')]=function(){return function(){const _0x12bbc0=a1122_0x3522;return client[_0x12bbc0('0x3')](_0x12bbc0('0x5'),{'options':{'raw':![],'where':{'role':_0x12bbc0('0x2')},'attributes':['id',_0x12bbc0('0x6'),_0x12bbc0('0x11'),'accountcode',_0x12bbc0('0x14'),_0x12bbc0('0x9'),_0x12bbc0('0x13'),_0x12bbc0('0xe'),_0x12bbc0('0xd'),_0x12bbc0('0x1'),_0x12bbc0('0x4'),_0x12bbc0('0x8'),_0x12bbc0('0x12')]},'log':_0x12bbc0('0x10')});};},exports['getTelephones']=function(){return function(){const _0x556cfd=a1122_0x3522;return client[_0x556cfd('0x3')](_0x556cfd('0x5'),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x556cfd('0x6'),_0x556cfd('0xc'),'internal']},'log':_0x556cfd('0x0')});};},exports['savePause']=function(_0x2ea130,_0x4407f7,_0x54ea5b){const _0x230c7a=_0x505803;return client[_0x230c7a('0x3')](_0x230c7a('0x15'),{'body':{'type':_0x4407f7,'uniqueid':_0x54ea5b},'options':{'where':{'id':_0x2ea130['id']}},'log':_0x230c7a('0xb')});},exports['saveUnpause']=function(_0x45e336){const _0x546da9=_0x505803;return client['Request'](_0x546da9('0xa'),{'body':{},'options':{'where':{'id':_0x45e336['id']}},'log':'savePause'});},exports['getAgent']=function(_0x3b3c4d){const _0x5ee94a=_0x505803;return client['Request'](_0x5ee94a('0x7'),{'options':{'raw':![],'where':{'role':_0x5ee94a('0x2'),'id':_0x3b3c4d},'attributes':['id',_0x5ee94a('0x6'),_0x5ee94a('0x11'),_0x5ee94a('0xc'),'fullname',_0x5ee94a('0x9'),_0x5ee94a('0x13'),'pauseType','lastPauseAt',_0x5ee94a('0x1'),_0x5ee94a('0x12')]},'log':'getAgent'});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index 60d5d5c..b250d04 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1123_0x4455=['UpdateVoiceAgentReport','update','../client','CreateVoiceAgentReport','Request'];(function(_0x13d0bb,_0x445521){const _0x2f4ed9=function(_0x18d294){while(--_0x18d294){_0x13d0bb['push'](_0x13d0bb['shift']());}};_0x2f4ed9(++_0x445521);}(a1123_0x4455,0x109));const a1123_0x2f4e=function(_0x13d0bb,_0x445521){_0x13d0bb=_0x13d0bb-0x0;let _0x2f4ed9=a1123_0x4455[_0x13d0bb];return _0x2f4ed9;};const _0x36afb2=a1123_0x2f4e;'use strict';const client=require(_0x36afb2('0x2'));exports['create']=function(_0x18d294){const _0x727e7c=_0x36afb2;return client[_0x727e7c('0x4')](_0x727e7c('0x3'),{'body':_0x18d294,'log':'CreateVoiceAgentReport'});},exports[_0x36afb2('0x1')]=function(_0x1087a6,_0x25b963,_0x743acb){const _0x3a3bca=_0x36afb2;return client[_0x3a3bca('0x4')](_0x3a3bca('0x0'),{'body':_0x1087a6,'options':{'where':{'uniqueid':_0x25b963,'interface':_0x743acb,'agentcomplete':!![]}},'log':_0x3a3bca('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index d34f9b0..d598b03 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1124_0x2f30=['duration','outbound','CreateVoiceCallReport','moment','endOf','startOf','context','merge','day','GetVoiceCallReport','Request','YYYY-MM-DD\x20HH:mm:ss','format','../client','GetVoiceCallReports','disposition','callerid','lodash','DOCUMENTATION','billableseconds'];(function(_0x33954d,_0x2f3083){const _0x235601=function(_0x2f6cfb){while(--_0x2f6cfb){_0x33954d['push'](_0x33954d['shift']());}};_0x235601(++_0x2f3083);}(a1124_0x2f30,0xde));const a1124_0x2356=function(_0x33954d,_0x2f3083){_0x33954d=_0x33954d-0x0;let _0x235601=a1124_0x2f30[_0x33954d];return _0x235601;};const _0x253294=a1124_0x2356;'use strict';const moment=require(_0x253294('0x1')),_=require(_0x253294('0xf')),client=require(_0x253294('0xb'));exports['create']=function(_0x2f6cfb){const _0x1e3da4=_0x253294;return client[_0x1e3da4('0x8')](_0x1e3da4('0x0'),{'body':_[_0x1e3da4('0x5')](_0x2f6cfb,{'source':_0x2f6cfb['calleridnum'],'destinationcontext':_0x2f6cfb[_0x1e3da4('0x4')],'callerid':_0x2f6cfb[_0x1e3da4('0xe')],'amaflags':_0x1e3da4('0x10')}),'log':'CreateVoiceCallReport'});},exports['getVoiceCallReports']=function(){return function(){const _0x1f11e6=a1124_0x2356;return client['Request'](_0x1f11e6('0x7'),{'options':{'where':{'type':[_0x1f11e6('0x13')],'createdAt':{'$between':[moment()[_0x1f11e6('0x3')](_0x1f11e6('0x6'))[_0x1f11e6('0xa')](_0x1f11e6('0x9')),moment()[_0x1f11e6('0x2')](_0x1f11e6('0x6'))[_0x1f11e6('0xa')](_0x1f11e6('0x9'))]}},'attributes':['type',_0x1f11e6('0xd'),_0x1f11e6('0x12'),_0x1f11e6('0x11')]},'log':_0x1f11e6('0xc')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 0aaf8a3..452a438 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1125_0x2dc8=['CreateVoiceDialReport','../client','create'];(function(_0x4ee13b,_0x2dc82d){const _0x433b3e=function(_0x372225){while(--_0x372225){_0x4ee13b['push'](_0x4ee13b['shift']());}};_0x433b3e(++_0x2dc82d);}(a1125_0x2dc8,0x1bd));const a1125_0x433b=function(_0x4ee13b,_0x2dc82d){_0x4ee13b=_0x4ee13b-0x0;let _0x433b3e=a1125_0x2dc8[_0x4ee13b];return _0x433b3e;};const _0x58b92f=a1125_0x433b;'use strict';const client=require(_0x58b92f('0x0'));exports[_0x58b92f('0x1')]=function(_0x372225){const _0x29b97b=_0x58b92f;return client['Request'](_0x29b97b('0x2'),{'body':_0x372225,'log':_0x29b97b('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index c76c6d8..58805ba 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1126_0x44a3=['exten','getVoiceExtensions','recordingFormat','Request','GetVoiceExtension'];(function(_0x55d7ad,_0x44a398){const _0x451ee1=function(_0x47b291){while(--_0x47b291){_0x55d7ad['push'](_0x55d7ad['shift']());}};_0x451ee1(++_0x44a398);}(a1126_0x44a3,0x87));const a1126_0x451e=function(_0x55d7ad,_0x44a398){_0x55d7ad=_0x55d7ad-0x0;let _0x451ee1=a1126_0x44a3[_0x55d7ad];return _0x451ee1;};'use strict';const client=require('../client');exports['getVoiceExtensions']=function(){return function(){const _0x221992=a1126_0x451e;return client[_0x221992('0x3')](_0x221992('0x4'),{'options':{'raw':!![],'attributes':['id',_0x221992('0x0'),_0x221992('0x2')],'where':{'VoiceExtensionId':null}},'log':_0x221992('0x1')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueue.js b/server/services/ami/rpc/voiceQueue.js index fa1ca48..a98a3bb 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1127_0xf9c0=['dialQueueProject','dialQueueTimeout','dialRecallMeTimeout','dialNoAnswerRetryFrequency','dialBusyMaxRetry','dialCutDigit','dialAMDGreeting','dialRandomLastDigitCallerIdNumber','dialAMDMinWordLength','dialBusyRetryFrequency','dialAMDActive','interval','dialCheckDuplicateType','dialOrderByScheduledAt','Trunk','dialActive','dialNoSuchNumberRetryFrequency','dialNoSuchNumberMaxRetry','dialGlobalInterval','dialAMDMaximumNumberOfWords','acwTimeout','../client','mandatoryDispositionPause','dialAMDSilenceThreshold','mandatoryDisposition','dialPredictiveIntervalMaxThreshold','dialPredictiveInterval','callerid','acw','dialAgentRejectRetryFrequency','timeout','dialPredictiveIntervalMinThreshold','monitor_format','dialMethod','type','strategy','dialGlobalMaxRetry','dialAMDMaximumWordLength','dialAMDTotalAnalysisTime','name','active','dialOriginateCallerIdNumber','dialLimitChannel','dialMachineRetryFrequency','dialMachineMaxRetry','dialPredictiveOptimizationPercentage','Intervals','dialOriginateCallerIdName','dialNoAnswerMaxRetry','dialPowerLevel','dialRecallInQueue','Pause','dialTimezone','Interval','dialAbandonedMaxRetry','dialAMDBetweenWordsSilence','dialPrefix','dialCongestionMaxRetry','dialOriginateTimeout','TrunkBackup','dialAgentRejectMaxRetry'];(function(_0x4f95dc,_0xf9c020){const _0x13dfe2=function(_0x37142d){while(--_0x37142d){_0x4f95dc['push'](_0x4f95dc['shift']());}};_0x13dfe2(++_0xf9c020);}(a1127_0xf9c0,0x1e7));const a1127_0x13df=function(_0x4f95dc,_0xf9c020){_0x4f95dc=_0x4f95dc-0x0;let _0x13dfe2=a1127_0xf9c0[_0x4f95dc];return _0x13dfe2;};const _0x4d9b51=a1127_0x13df;'use strict';const client=require(_0x4d9b51('0x16'));exports['getVoiceQueues']=function(){return function(){const _0x49c0aa=a1127_0x13df;return client['Request']('GetVoiceQueue',{'options':{'raw':![],'attributes':['id',_0x49c0aa('0x28'),_0x49c0aa('0x1d'),_0x49c0aa('0x15'),'autopause',_0x49c0aa('0x21'),_0x49c0aa('0x23'),_0x49c0aa('0x10'),_0x49c0aa('0x22'),_0x49c0aa('0x2b'),'dialLimitQueue',_0x49c0aa('0x32'),'dialPredictiveOptimization',_0x49c0aa('0x2e'),_0x49c0aa('0x1b'),_0x49c0aa('0x30'),_0x49c0aa('0x2a'),_0x49c0aa('0x3b'),'dialQueueOptions',_0x49c0aa('0x2'),_0x49c0aa('0x1'),_0x49c0aa('0x3a'),'dialCongestionRetryFrequency',_0x49c0aa('0x5'),_0x49c0aa('0xa'),_0x49c0aa('0x31'),_0x49c0aa('0x4'),_0x49c0aa('0x25'),_0x49c0aa('0x35'),_0x49c0aa('0x13'),_0x49c0aa('0x39'),_0x49c0aa('0xd'),_0x49c0aa('0xb'),'dialAMDInitialSilence',_0x49c0aa('0x7'),'dialAMDAfterGreetingSilence',_0x49c0aa('0x27'),_0x49c0aa('0x9'),_0x49c0aa('0x38'),_0x49c0aa('0x14'),_0x49c0aa('0x18'),_0x49c0aa('0x26'),_0x49c0aa('0x1f'),_0x49c0aa('0x3'),_0x49c0aa('0x33'),_0x49c0aa('0xe'),'dialAgiAfterHangupAgent','dialAgiAfterHangupClient','dialQueueProject2',_0x49c0aa('0x21'),_0x49c0aa('0x24'),_0x49c0aa('0x8'),_0x49c0aa('0x6'),_0x49c0aa('0x12'),_0x49c0aa('0x11'),'dialDropMaxRetry','dialDropRetryFrequency',_0x49c0aa('0x37'),'dialAbandonedRetryFrequency',_0x49c0aa('0x2d'),_0x49c0aa('0x2c'),_0x49c0aa('0x0'),_0x49c0aa('0x1e'),_0x49c0aa('0x19'),_0x49c0aa('0x1a'),_0x49c0aa('0x20')],'include':[{'model':_0x49c0aa('0xf'),'as':_0x49c0aa('0xf'),'attributes':['id',_0x49c0aa('0x28'),_0x49c0aa('0x1c'),_0x49c0aa('0x29')]},{'model':_0x49c0aa('0x34'),'as':_0x49c0aa('0x17'),'attributes':['id','name']},{'model':_0x49c0aa('0xf'),'as':_0x49c0aa('0x3c'),'attributes':['id',_0x49c0aa('0x28'),_0x49c0aa('0x1c'),_0x49c0aa('0x29')]},{'model':_0x49c0aa('0x36'),'as':_0x49c0aa('0x36'),'attributes':['id',_0x49c0aa('0x28')],'include':[{'model':_0x49c0aa('0x36'),'as':_0x49c0aa('0x2f'),'attributes':['id',_0x49c0aa('0x28'),_0x49c0aa('0xc')]}]}]},'log':'getVoiceQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueueReport.js b/server/services/ami/rpc/voiceQueueReport.js index f8dab93..7b71b54 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1128_0x7a41=['queue','queuecallerexitAt','endOf','moment','queuecallercompleteAt','CreateVoiceQueueReport','format','queuecallerexit','uniqueid','queuecallerjoinAt','GetVoiceQueueReports','YYYY-MM-DD\x20HH:mm:ss','startOf','queuecallercomplete','Request','getVoiceQueueReports','queuecallerleaveAt','GetVoiceQueueReport','day'];(function(_0x1f26e0,_0x7a41ad){const _0x53f728=function(_0x1a918f){while(--_0x1a918f){_0x1f26e0['push'](_0x1f26e0['shift']());}};_0x53f728(++_0x7a41ad);}(a1128_0x7a41,0x8b));const a1128_0x53f7=function(_0x1f26e0,_0x7a41ad){_0x1f26e0=_0x1f26e0-0x0;let _0x53f728=a1128_0x7a41[_0x1f26e0];return _0x53f728;};const _0x14c070=a1128_0x53f7;'use strict';const moment=require(_0x14c070('0x10')),client=require('../client');exports['create']=function(_0x1a918f){const _0x4a2e09=_0x14c070;return client[_0x4a2e09('0x8')]('CreateVoiceQueueReport',{'body':_0x1a918f,'log':_0x4a2e09('0x12')});},exports[_0x14c070('0x9')]=function(){return function(){const _0x1d6da3=a1128_0x53f7;return client[_0x1d6da3('0x8')](_0x1d6da3('0xb'),{'options':{'where':{'createdAt':{'$between':[moment()[_0x1d6da3('0x6')](_0x1d6da3('0xc'))[_0x1d6da3('0x0')](_0x1d6da3('0x5')),moment()[_0x1d6da3('0xf')]('day')['format'](_0x1d6da3('0x5'))]}},'attributes':[_0x1d6da3('0x2'),_0x1d6da3('0xd'),_0x1d6da3('0x3'),_0x1d6da3('0xa'),_0x1d6da3('0x7'),_0x1d6da3('0x11'),_0x1d6da3('0x1'),_0x1d6da3('0xe'),'queuecallerabandon','queuecallerabandonAt']},'log':_0x1d6da3('0x4')});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index 9cbbfb8..f35021b 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1129_0x55c0=['../client','getVoiceQueueRtPauses'];(function(_0x5d216d,_0x55c040){const _0x13f33b=function(_0x29c417){while(--_0x29c417){_0x5d216d['push'](_0x5d216d['shift']());}};_0x13f33b(++_0x55c040);}(a1129_0x55c0,0x184));const a1129_0x13f3=function(_0x5d216d,_0x55c040){_0x5d216d=_0x5d216d-0x0;let _0x13f33b=a1129_0x55c0[_0x5d216d];return _0x13f33b;};const _0x2466b5=a1129_0x13f3;'use strict';const client=require(_0x2466b5('0x0'));exports[_0x2466b5('0x1')]=function(_0x29c417){return function(){return client['Request']('GetVoiceQueueRtPauses',{'options':{'where':{'VoiceQueueId':_0x29c417,'paused':!![]},'raw':!![]},'log':'getVoiceQueueRtPauses'});};}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index 7d2a3c3..1347b52 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1130_0x4c12=['../client','merge','lodash','CreateVoiceRecording','create','Request'];(function(_0x39d163,_0x4c129b){const _0x3eca73=function(_0x1cb6f1){while(--_0x1cb6f1){_0x39d163['push'](_0x39d163['shift']());}};_0x3eca73(++_0x4c129b);}(a1130_0x4c12,0x189));const a1130_0x3eca=function(_0x39d163,_0x4c129b){_0x39d163=_0x39d163-0x0;let _0x3eca73=a1130_0x4c12[_0x39d163];return _0x3eca73;};const _0x2ea13d=a1130_0x3eca;'use strict';const _=require(_0x2ea13d('0x5')),client=require(_0x2ea13d('0x3'));exports[_0x2ea13d('0x1')]=function(_0x1cb6f1){const _0x3080dc=_0x2ea13d;return client[_0x3080dc('0x2')]('CreateVoiceRecording',{'body':_[_0x3080dc('0x4')](_0x1cb6f1,{'value':_0x1cb6f1['monitorFilename']}),'log':_0x3080dc('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/ami/rpc/voiceTransferReport.js b/server/services/ami/rpc/voiceTransferReport.js index 2b241cc..1373f07 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1131_0x206d=['origtransfererchannel','transfereechannel','transfereecalleridname','../client','transfereelinkedid','transferercontext','transfereeconnectedlinenum','transfereeconnectedlinename','transfertargetconnectedlinenum','origtransfereraccountcode','origtransfererlinkedid','attendedTransfer','secondtransferercontext','transfereecalleridnum','transfereeaccountcode','result','extension','transfertargetchannel','origtransferercontext','context','transfertargetaccountcode','transfertargetlinkedid','transfereeexten','transfererconnectedlinenum','secondtransfererconnectedlinename','origtransferercalleridname','transfereraccountcode','transfererchannel','transfererconnectedlinename','attended','secondtransfererconnectedlinenum','blind','isexternal','transfertargetcalleridname','origtransfererexten','transferercalleridname','CreateVoiceTransferReport','transfertargetcontext'];(function(_0x352fc5,_0x206d54){const _0x563f6c=function(_0x3a4913){while(--_0x3a4913){_0x352fc5['push'](_0x352fc5['shift']());}};_0x563f6c(++_0x206d54);}(a1131_0x206d,0x9a));const a1131_0x563f=function(_0x352fc5,_0x206d54){_0x352fc5=_0x352fc5-0x0;let _0x563f6c=a1131_0x206d[_0x352fc5];return _0x563f6c;};const _0x1f2f34=a1131_0x563f;'use strict';const client=require(_0x1f2f34('0x1'));exports['blindTransfer']=function(_0x3a4913){const _0x5e4785=_0x1f2f34;return client['Request'](_0x5e4785('0x22'),{'body':{'result':_0x3a4913[_0x5e4785('0xd')],'transfererchannel':_0x3a4913[_0x5e4785('0x19')],'transferercalleridnum':_0x3a4913['transferercalleridnum'],'transferercalleridname':_0x3a4913[_0x5e4785('0x21')],'transfererconnectedlinenum':_0x3a4913[_0x5e4785('0x15')],'transfererconnectedlinename':_0x3a4913[_0x5e4785('0x1a')],'transfereraccountcode':_0x3a4913[_0x5e4785('0x18')],'transferercontext':_0x3a4913[_0x5e4785('0x3')],'transfererexten':_0x3a4913['transfererexten'],'transfererlinkedid':_0x3a4913['transfererlinkedid'],'transfereechannel':_0x3a4913[_0x5e4785('0x25')],'transfereecalleridnum':_0x3a4913[_0x5e4785('0xb')],'transfereecalleridname':_0x3a4913[_0x5e4785('0x0')],'transfereeconnectedlinenum':_0x3a4913[_0x5e4785('0x4')],'transfereeconnectedlinename':_0x3a4913[_0x5e4785('0x5')],'transfereeaccountcode':_0x3a4913[_0x5e4785('0xc')],'transfereecontext':_0x3a4913['transfereecontext'],'transfereeexten':_0x3a4913[_0x5e4785('0x14')],'transfereelinkedid':_0x3a4913[_0x5e4785('0x2')],'isexternal':_0x3a4913[_0x5e4785('0x1e')],'context':_0x3a4913[_0x5e4785('0x11')],'extension':_0x3a4913[_0x5e4785('0xe')],'type':_0x5e4785('0x1d')},'log':_0x5e4785('0x22')});},exports[_0x1f2f34('0x9')]=function(_0x5d55db){const _0x48c2b6=_0x1f2f34;return client['Request'](_0x48c2b6('0x22'),{'body':{'result':_0x5d55db['result'],'transfererchannel':_0x5d55db[_0x48c2b6('0x24')],'transferercalleridnum':_0x5d55db['origtransferercalleridnum'],'transferercalleridname':_0x5d55db[_0x48c2b6('0x17')],'transfererconnectedlinenum':_0x5d55db[_0x48c2b6('0x1c')],'transfererconnectedlinename':_0x5d55db[_0x48c2b6('0x16')],'transfereraccountcode':_0x5d55db[_0x48c2b6('0x7')],'transferercontext':_0x5d55db[_0x48c2b6('0xa')],'transfererexten':_0x5d55db['secondtransfererexten'],'transfererlinkedid':_0x5d55db[_0x48c2b6('0x8')],'transfereechannel':_0x5d55db[_0x48c2b6('0xf')],'transfereecalleridnum':_0x5d55db['transfertargetcalleridnum'],'transfereecalleridname':_0x5d55db[_0x48c2b6('0x1f')],'transfereeconnectedlinenum':_0x5d55db[_0x48c2b6('0x6')],'transfereeconnectedlinename':_0x5d55db['transfertargetconnectedlinename'],'transfereeaccountcode':_0x5d55db[_0x48c2b6('0x12')],'transfereecontext':_0x5d55db[_0x48c2b6('0x23')],'transfereeexten':_0x5d55db['transfertargetexten'],'transfereelinkedid':_0x5d55db[_0x48c2b6('0x13')],'isexternal':_0x5d55db[_0x48c2b6('0x1e')],'context':_0x5d55db[_0x48c2b6('0x10')],'extension':_0x5d55db[_0x48c2b6('0x20')],'type':_0x48c2b6('0x1b')},'log':_0x48c2b6('0x22')});}; \ No newline at end of file +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 diff --git a/server/services/ami/server/index.js b/server/services/ami/server/index.js index 2ce0474..89ca5b3 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1132_0x4325=['toLowerCase','push','dialOriginateCallerIdNumber','listen','../../../config/environment','predictiveIntervalAvgHoldtime','predictiveIntervalAnsweredCalls','username','isNil','voicequeuechannelhangup','join','keys','erlangCalls','predictiveIntervalTotalCalls','isConnected','loggedInDb','faxAccounts','sumHoldTime','SIP','total','event','Trunk','moment','lodash','asterisk','emit','rec','outboundAnswerAgiCallsDay','startProgressive','outboundDropCallsDayTimeout','startPredictive','custom:','channel','YYYY-MM-DD\x20HH:mm:ss','content','uniqueid','map','status','predictiveIntervalAvailable','filename','callerid','../ami','dialOriginateTimeout','error','channels','length','active','outboundDropCallsDayACS','stop','abandoned','outboundNoAnswerCallsDay','mixmonitorid','outboundOriginateFailureCallsDay','predictiveIntervalDroppedCallsCallersExit','strategy','../properties','resolve','outboundDropCallsDayCallersExit','command','Reload','campaigns','dialMethod','erlangCallToSecond','message','RPC\x20listening\x20on\x20port:','outboundAnswerCallsDay','predictiveIntervalPauses','checkAfterSend','predictiveIntervalHitRate','name','find','values','send','agents','wav','monitors','format','run','voiceQueues','destinationchannel','context','originated','Interval','outboundUnknownCallsDay','dialActive','outboundChannels','dialPrefix','predictiveIntervalErlangCalls','answered','updateStatusRealtime','catch','talking','Hangup','MixMonitor\x20Success','type','pick','dialOriginateCallerIdName','Event\x20name\x20mandatory','Action','voicechannel','waiting','exten','log','%s.%s','erlangBusyFactor','outboundRejectCallsDay','outboundBusyCallsDay','outboundBlacklistCallsDay','action','updateAcw','outboundReCallsDay','erlangAbandonmentRate','outboundNoSuchCallsDay','timers','predictiveIntervalDroppedCallsTimeout','/var/spool/asterisk/monitor/','undefined','unmanaged','pause','StopMixMonitor','Channel\x20doesn\x27t\x20exist','pTalking','validate','util','then','predictiveIntervalErlangCallsDroppedCalls','QueuePause','predictiveIntervalAvgTalktime','available','queueChannels','ai(mixmonitorid)','MixMonitor','ami\x20disconnected'];(function(_0x2447c1,_0x432503){const _0x2ff544=function(_0x39c4a1){while(--_0x39c4a1){_0x2447c1['push'](_0x2447c1['shift']());}};_0x2ff544(++_0x432503);}(a1132_0x4325,0x1bf));const a1132_0x2ff5=function(_0x2447c1,_0x432503){_0x2447c1=_0x2447c1-0x0;let _0x2ff544=a1132_0x4325[_0x2447c1];return _0x2ff544;};const _0x5d81c6=a1132_0x2ff5;'use strict';const _=require(_0x5d81c6('0x6c')),util=require(_0x5d81c6('0x4b')),jayson=require('jayson/promise'),schema=require(_0x5d81c6('0x4a')),moment=require(_0x5d81c6('0x6b')),config=require(_0x5d81c6('0x59')),properties=require(_0x5d81c6('0x7')),ami=require(_0x5d81c6('0x7e'));exports[_0x5d81c6('0x58')]=function(_0x39c4a1,_0x5ee9a9,_0x666d41){return new Promise(function(_0x3d5bbe,_0x320a1e){const _0x5dcaae=a1132_0x2ff5,_0xf15e4e={'QueuePause':function(_0x146d33){return new Promise(function(_0x2af478){const _0x4af3f8=a1132_0x2ff5,_0x3ccd57=util[_0x4af3f8('0x1c')]('%s/%s',_0x4af3f8('0x67'),_0x146d33['name']);_0x39c4a1[_0x4af3f8('0x41')]&&_0x39c4a1[_0x4af3f8('0x41')][_0x3ccd57]&&_0x39c4a1[_0x4af3f8('0x41')][_0x3ccd57]['timer']&&_0x39c4a1['timers'][_0x3ccd57][_0x4af3f8('0x3d')](),_0x39c4a1[_0x4af3f8('0x19')][_0x3ccd57]&&_0x39c4a1[_0x4af3f8('0x19')][_0x3ccd57][_0x4af3f8('0x29')]({'statePause':_0x146d33[_0x4af3f8('0x46')]?!![]:![]}),_0x2af478({'code':0xc8,'message':_0x4af3f8('0x4e')});});},'Reload':function(_0x49df0f){const _0x8a2809=this;return new Promise(function(_0x570dad,_0x16b761){const _0x552ea2=a1132_0x2ff5;if(ami[_0x552ea2('0x63')]()==![])return _0x16b761(_0x8a2809[_0x552ea2('0x80')](0x1f4,[config[_0x552ea2('0x6d')]['ip'],config['asterisk'][_0x552ea2('0x5c')],_0x552ea2('0x54')][_0x552ea2('0x5f')]('\x20')));return _0x49df0f=_[_0x552ea2('0x2f')](_0x49df0f,_[_0x552ea2('0x60')](properties['module'])),_0x49df0f[_0x552ea2('0x3c')]=_0x552ea2('0xb'),ami[_0x552ea2('0x32')](_0x49df0f)[_0x552ea2('0x4c')](function(_0x58cdd2){const _0x5a16bf=_0x552ea2;_0x570dad({'code':0xc8,'message':_0x58cdd2[_0x5a16bf('0xf')]});})[_0x552ea2('0x2a')](function(_0x4a59d1){const _0x499a06=_0x552ea2;_0x16b761(_0x8a2809[_0x499a06('0x80')](0x1f5,_0x4a59d1['message']));});});},'Command':function(_0x53798f){const _0x1d56ae=this;return new Promise(function(_0x50e6f0,_0x2e149e){const _0x49119c=a1132_0x2ff5;if(ami[_0x49119c('0x63')]()==![])return _0x2e149e(_0x1d56ae[_0x49119c('0x80')](0x1f4,[config[_0x49119c('0x6d')]['ip'],config[_0x49119c('0x6d')][_0x49119c('0x5c')],_0x49119c('0x54')][_0x49119c('0x5f')]('\x20')));return _0x53798f=_[_0x49119c('0x2f')](_0x53798f,_0x49119c('0xa')),_0x53798f['action']='Command',ami[_0x49119c('0x32')](_0x53798f)[_0x49119c('0x4c')](function(_0x1e8602){const _0x5a28a2=_0x49119c;_0x50e6f0({'code':0xc8,'message':_0x1e8602[_0x5a28a2('0x77')]});})[_0x49119c('0x2a')](function(_0x109216){const _0x438c56=_0x49119c;_0x2e149e(_0x1d56ae['error'](0x1f5,_0x109216[_0x438c56('0xf')]));});});},'VoiceQueues':function(){return new Promise(function(_0x133304){const _0xdbfa24=a1132_0x2ff5,_0x2a22ed=[];for(const _0x264e84 in _0x39c4a1[_0xdbfa24('0x1e')]){if(typeof _0x39c4a1['voiceQueues'][_0x264e84]!==_0xdbfa24('0x44')){const _0x5b8fab=_0x39c4a1[_0xdbfa24('0x1e')][_0x264e84],_0x52951d={'id':_0x5b8fab['id'],'name':_0x5b8fab[_0xdbfa24('0x15')],'strategy':_0x5b8fab[_0xdbfa24('0x6')],'answered':_0x5b8fab[_0xdbfa24('0x28')],'available':_0x5b8fab[_0xdbfa24('0x50')],'loggedIn':_0x5b8fab['loggedIn'],'pTalking':_0x5b8fab[_0xdbfa24('0x49')],'sumBillable':_0x5b8fab['sumBillable'],'sumDuration':_0x5b8fab['sumDuration'],'sumHoldTime':_0x5b8fab[_0xdbfa24('0x66')]||0x0,'talking':_0x5b8fab[_0xdbfa24('0x2b')],'total':_0x5b8fab[_0xdbfa24('0x68')],'type':_0x5b8fab[_0xdbfa24('0x2e')],'unmanaged':_0x5b8fab[_0xdbfa24('0x45')],'abandoned':_0x5b8fab[_0xdbfa24('0x1')],'waiting':_0x5b8fab[_0xdbfa24('0x34')],'loggedInDb':_0x5b8fab[_0xdbfa24('0x64')]};_0x5b8fab[_0xdbfa24('0x2e')]==='outbound'&&(_0x52951d[_0xdbfa24('0x24')]=_0x5b8fab[_0xdbfa24('0x24')],_0x52951d[_0xdbfa24('0xd')]=_0x5b8fab[_0xdbfa24('0xd')],_0x52951d[_0xdbfa24('0x30')]=_0x5b8fab[_0xdbfa24('0x30')],_0x52951d['dialOriginateCallerIdNumber']=_0x5b8fab[_0xdbfa24('0x57')],_0x52951d[_0xdbfa24('0x7f')]=_0x5b8fab[_0xdbfa24('0x7f')],_0x52951d[_0xdbfa24('0x26')]=_0x5b8fab[_0xdbfa24('0x26')],_0x52951d['outboundAnswerAgiCallsDay']=_0x5b8fab[_0xdbfa24('0x70')],_0x52951d[_0xdbfa24('0x11')]=_0x5b8fab[_0xdbfa24('0x11')],_0x52951d[_0xdbfa24('0x3b')]=_0x5b8fab[_0xdbfa24('0x3b')],_0x52951d[_0xdbfa24('0x3a')]=_0x5b8fab[_0xdbfa24('0x3a')],_0x52951d['outboundCongestionCallsDay']=_0x5b8fab['outboundCongestionCallsDay'],_0x52951d['outboundDropCallsDayACS']=_0x5b8fab[_0xdbfa24('0x84')],_0x52951d[_0xdbfa24('0x9')]=_0x5b8fab[_0xdbfa24('0x9')],_0x52951d['outboundDropCallsDayTimeout']=_0x5b8fab[_0xdbfa24('0x72')],_0x52951d[_0xdbfa24('0x2')]=_0x5b8fab[_0xdbfa24('0x2')],_0x52951d[_0xdbfa24('0x40')]=_0x5b8fab['outboundNoSuchCallsDay'],_0x52951d[_0xdbfa24('0x4')]=_0x5b8fab['outboundOriginateFailureCallsDay'],_0x52951d['outboundReCallsDay']=_0x5b8fab[_0xdbfa24('0x3e')],_0x52951d['outboundRejectCallsDay']=_0x5b8fab[_0xdbfa24('0x39')],_0x52951d[_0xdbfa24('0x23')]=_0x5b8fab[_0xdbfa24('0x23')],_0x52951d['predictiveIntervalAnsweredCalls']=_0x5b8fab[_0xdbfa24('0x5b')],_0x52951d[_0xdbfa24('0x5a')]=_0x5b8fab[_0xdbfa24('0x5a')],_0x52951d[_0xdbfa24('0x4f')]=_0x5b8fab['predictiveIntervalAvgTalktime'],_0x52951d['predictiveIntervalDroppedCallsCallersExit']=_0x5b8fab[_0xdbfa24('0x5')],_0x52951d[_0xdbfa24('0x42')]=_0x5b8fab['predictiveIntervalDroppedCallsTimeout'],_0x52951d[_0xdbfa24('0x27')]=_0x5b8fab[_0xdbfa24('0x27')],_0x52951d[_0xdbfa24('0x4d')]=_0x5b8fab['predictiveIntervalErlangCallsDroppedCalls'],_0x52951d[_0xdbfa24('0x14')]=_0x5b8fab[_0xdbfa24('0x14')],_0x52951d['predictiveIntervalMultiplicativeFactor']=_0x5b8fab['predictiveIntervalMultiplicativeFactor'],_0x52951d[_0xdbfa24('0x12')]=_0x5b8fab[_0xdbfa24('0x12')],_0x52951d[_0xdbfa24('0x7b')]=_0x5b8fab[_0xdbfa24('0x7b')],_0x52951d['predictiveIntervalTotalCalls']=_0x5b8fab[_0xdbfa24('0x62')],_0x52951d[_0xdbfa24('0xf')]=_0x5b8fab[_0xdbfa24('0xf')],_0x52951d['originated']=_0x5b8fab[_0xdbfa24('0x21')],_0x52951d[_0xdbfa24('0x61')]=_0x5b8fab[_0xdbfa24('0x61')],_0x52951d[_0xdbfa24('0xe')]=_0x5b8fab['erlangCallToSecond'],_0x52951d[_0xdbfa24('0x3f')]=_0x5b8fab[_0xdbfa24('0x3f')],_0x52951d[_0xdbfa24('0x38')]=_0x5b8fab[_0xdbfa24('0x38')],_0x52951d[_0xdbfa24('0x73')]=_0x5b8fab['startPredictive'],_0x52951d[_0xdbfa24('0x71')]=_0x5b8fab[_0xdbfa24('0x71')]),_0x5b8fab[_0xdbfa24('0x6a')]&&(_0x52951d[_0xdbfa24('0x6a')]={'id':_0x5b8fab[_0xdbfa24('0x6a')]['id'],'name':_0x5b8fab[_0xdbfa24('0x6a')][_0xdbfa24('0x15')],'active':_0x5b8fab[_0xdbfa24('0x6a')][_0xdbfa24('0x83')],'callerid':_0x5b8fab[_0xdbfa24('0x6a')][_0xdbfa24('0x7d')]}),_0x5b8fab[_0xdbfa24('0x22')]&&(_0x52951d['Interval']={'id':_0x5b8fab[_0xdbfa24('0x22')]['id'],'name':_0x5b8fab[_0xdbfa24('0x22')]['name']}),_0x2a22ed['push'](_0x52951d);}}_0x133304({'count':_0x2a22ed[_0xdbfa24('0x82')],'rows':_0x2a22ed});});},'VoiceChannels':function(){return new Promise(function(_0x5a060e){const _0x50d060=a1132_0x2ff5,_0x5f35b8=_[_0x50d060('0x17')](_0x39c4a1['channels']);_0x5a060e({'count':_0x5f35b8[_0x50d060('0x82')],'rows':_0x5f35b8});});},'VoiceChannelMixMonitor':function(_0x151865){const _0x2d6bf7=this;return new Promise(function(_0x88750,_0x252385){const _0x5a7ff1=a1132_0x2ff5;if(ami[_0x5a7ff1('0x63')]()==![])return _0x252385(_0x2d6bf7[_0x5a7ff1('0x80')](0x1f4,[config[_0x5a7ff1('0x6d')]['ip'],config[_0x5a7ff1('0x6d')][_0x5a7ff1('0x5c')],_0x5a7ff1('0x54')]['join']('\x20')));const _0x5071f9=schema(properties[_0x5a7ff1('0x33')])['validate'](_0x151865);if(_0x5071f9[_0x5a7ff1('0x82')]>0x0)return _0x252385(_0x2d6bf7[_0x5a7ff1('0x80')](0x1f4,_['map'](_0x5071f9,_0x5a7ff1('0xf'))[_0x5a7ff1('0x5f')](',\x20')));const _0x2f4648=_[_0x5a7ff1('0x16')](_0x39c4a1['channels'],{'uniqueid':_0x151865[_0x5a7ff1('0x78')]});if(_0x2f4648&&_0x2f4648[_0x5a7ff1('0x75')]){const _0x46300c=util[_0x5a7ff1('0x1c')](_0x5a7ff1('0x37'),_0x151865[_0x5a7ff1('0x7c')]||_0x151865[_0x5a7ff1('0x78')],_0x151865[_0x5a7ff1('0x1c')]||_0x5a7ff1('0x1a'));return ami[_0x5a7ff1('0x32')]({'action':_0x5a7ff1('0x53'),'channel':_0x2f4648[_0x5a7ff1('0x75')],'file':_0x46300c,'options':_0x5a7ff1('0x52')})[_0x5a7ff1('0x4c')](function(_0x1b1e21){const _0x570208=_0x5a7ff1,_0x220910=_[_0x570208('0x16')](_0x2f4648[_0x570208('0x1b')],{'filename':_0x570208('0x43')+_0x46300c[_0x570208('0x55')]()});_[_0x570208('0x5d')](_0x220910)?_0x2f4648[_0x570208('0x1b')][_0x570208('0x56')]({'filename':'/var/spool/asterisk/monitor/'+_0x46300c[_0x570208('0x55')](),'createdAt':moment()[_0x570208('0x1c')](_0x570208('0x76')),'mixmonitorid':_0x1b1e21['mixmonitorid'],'status':_0x570208('0x6f')}):(_0x220910[_0x570208('0x3')]=_0x1b1e21['mixmonitorid'],_0x220910[_0x570208('0x7a')]='rec'),_0x88750({'code':0xc8,'message':[_0x151865[_0x570208('0x78')],_0x570208('0x2d'),_0x1b1e21[_0x570208('0x3')]]['join']('\x20'),'mixmonitorid':_0x1b1e21[_0x570208('0x3')]});})[_0x5a7ff1('0x2a')](function(_0x190ded){const _0x235ada=_0x5a7ff1;_0x252385(_0x2d6bf7[_0x235ada('0x80')](0x1f5,[_0x151865['uniqueid'],_0x190ded[_0x235ada('0xf')]['toLowerCase']()]['join']('\x20')));});}else return _0x252385(_0x2d6bf7[_0x5a7ff1('0x80')](0x1f5,_0x5a7ff1('0x48')));});},'VoiceChannelStopMixMonitor':function(_0x129588){const _0x7055c7=this;return new Promise(function(_0x506c09,_0x160e27){const _0x48d347=a1132_0x2ff5;if(ami[_0x48d347('0x63')]()==![])return _0x160e27(_0x7055c7[_0x48d347('0x80')](0x1f4,[config['asterisk']['ip'],config[_0x48d347('0x6d')][_0x48d347('0x5c')],_0x48d347('0x54')]['join']('\x20')));const _0x407b38=schema(properties['voicechannel'])[_0x48d347('0x4a')](_0x129588);if(_0x407b38[_0x48d347('0x82')]>0x0)return _0x160e27(_0x7055c7[_0x48d347('0x80')](0x1f4,_[_0x48d347('0x79')](_0x407b38,_0x48d347('0xf'))[_0x48d347('0x5f')](',\x20')));const _0x13ed14=_['find'](_0x39c4a1[_0x48d347('0x81')],{'uniqueid':_0x129588[_0x48d347('0x78')]});return _0x13ed14?Promise[_0x48d347('0x8')]()[_0x48d347('0x4c')](function(){const _0x4d0449=_0x48d347;if(_0x13ed14[_0x4d0449('0x75')])return ami[_0x4d0449('0x32')]({'action':'StopMixMonitor','channel':_0x13ed14[_0x4d0449('0x75')],'mixmonitorid':_0x129588['mixmonitorid']})['catch'](function(){});})[_0x48d347('0x4c')](function(){const _0x550316=_0x48d347;if(_0x13ed14['destinationchannel'])return ami[_0x550316('0x32')]({'action':_0x550316('0x47'),'channel':_0x13ed14[_0x550316('0x1f')],'mixmonitorid':_0x129588[_0x550316('0x3')]})[_0x550316('0x2a')](function(){});})[_0x48d347('0x4c')](function(){const _0x1205dd=_0x48d347,_0x25efc7=_['find'](_0x13ed14[_0x1205dd('0x1b')],{'mixmonitorid':_0x129588[_0x1205dd('0x3')]});_0x25efc7&&(_0x25efc7[_0x1205dd('0x7a')]=_0x1205dd('0x0'));})[_0x48d347('0x4c')](function(){const _0x3c7c2f=_0x48d347,_0x1c4989=util['format'](_0x3c7c2f('0x37'),_0x129588[_0x3c7c2f('0x7c')]||_0x129588[_0x3c7c2f('0x78')],_0x129588[_0x3c7c2f('0x1c')]||_0x3c7c2f('0x1a')),_0x39fc82=_[_0x3c7c2f('0x16')](_0x13ed14[_0x3c7c2f('0x1b')],{'filename':_0x3c7c2f('0x43')+_0x1c4989[_0x3c7c2f('0x55')]()});_0x39fc82&&(_0x39fc82[_0x3c7c2f('0x7a')]=_0x3c7c2f('0x0'));})[_0x48d347('0x4c')](function(){const _0xed0075=_0x48d347;_0x506c09({'code':0xc8,'message':[_0x129588[_0xed0075('0x78')],'StopMixMonitor\x20Success']['join']('\x20')});})[_0x48d347('0x2a')](function(_0x542327){const _0x45880e=_0x48d347;_0x160e27(_0x7055c7[_0x45880e('0x80')](0x1f5,[_0x129588['uniqueid'],_0x542327['message']['toLowerCase']()][_0x45880e('0x5f')]('\x20')));}):_0x160e27(_0x7055c7[_0x48d347('0x80')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x13bbc7){const _0x474834=a1132_0x2ff5,_0x78855e=_[_0x474834('0x17')](_0x39c4a1[_0x474834('0x51')]);_0x13bbc7({'count':_0x78855e['length'],'rows':_0x78855e});});},'VoiceQueuesChannel':function(_0x42078f){const _0x58fb34=this;return new Promise(function(_0x41f83f,_0x3b8544){const _0x5a960f=a1132_0x2ff5,_0x59808b=schema(properties['voicequeuechannel'])[_0x5a960f('0x4a')](_0x42078f);if(_0x59808b[_0x5a960f('0x82')]>0x0)return _0x3b8544(_0x58fb34[_0x5a960f('0x80')](0x1f4,_[_0x5a960f('0x79')](_0x59808b,_0x5a960f('0xf'))[_0x5a960f('0x5f')](',\x20')));const _0x1cc972=_['find'](_0x39c4a1[_0x5a960f('0x51')],{'uniqueid':_0x42078f[_0x5a960f('0x78')]});if(_0x1cc972)_0x41f83f(_0x1cc972);else return _0x3b8544(_0x58fb34['error'](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelHangup':function(_0x1ce223){const _0x41949c=this;return new Promise(function(_0x139095,_0x57a7d8){const _0x1ee364=a1132_0x2ff5;if(ami['isConnected']()==![])return _0x57a7d8(_0x41949c[_0x1ee364('0x80')](0x1f4,[config[_0x1ee364('0x6d')]['ip'],config[_0x1ee364('0x6d')][_0x1ee364('0x5c')],'ami\x20disconnected'][_0x1ee364('0x5f')]('\x20')));const _0x3309b8=schema(properties[_0x1ee364('0x5e')])[_0x1ee364('0x4a')](_0x1ce223);if(_0x3309b8[_0x1ee364('0x82')]>0x0)return _0x57a7d8(_0x41949c[_0x1ee364('0x80')](0x1f4,_[_0x1ee364('0x79')](_0x3309b8,_0x1ee364('0xf'))[_0x1ee364('0x5f')](',\x20')));const _0x1a8b7c=_[_0x1ee364('0x16')](_0x39c4a1[_0x1ee364('0x51')],{'uniqueid':_0x1ce223['uniqueid']});return _0x1a8b7c&&_0x1a8b7c[_0x1ee364('0x75')]?ami['Action']({'action':_0x1ee364('0x2c'),'channel':_0x1a8b7c[_0x1ee364('0x75')]})['then'](function(_0x5d0a16){const _0x10da51=_0x1ee364;_0x139095({'code':0xc8,'message':[_0x1ce223[_0x10da51('0x78')],_0x5d0a16[_0x10da51('0xf')][_0x10da51('0x55')]()][_0x10da51('0x5f')]('\x20')});})[_0x1ee364('0x2a')](function(_0x22fe81){const _0x3dc83b=_0x1ee364;_0x57a7d8(_0x41949c[_0x3dc83b('0x80')](0x1f5,[_0x1ce223[_0x3dc83b('0x78')],_0x22fe81['message'][_0x3dc83b('0x55')]()][_0x3dc83b('0x5f')]('\x20')));}):_0x57a7d8(_0x41949c[_0x1ee364('0x80')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelRedirect':function(_0x502dc2){const _0x33f5c8=this;return new Promise(function(_0x53b2de,_0x340e08){const _0x425837=a1132_0x2ff5;if(ami[_0x425837('0x63')]()==![])return _0x340e08(_0x33f5c8[_0x425837('0x80')](0x1f4,[config[_0x425837('0x6d')]['ip'],config[_0x425837('0x6d')]['username'],'ami\x20disconnected'][_0x425837('0x5f')]('\x20')));const _0x2c1372=schema(properties['voicequeuechannelredirect'])[_0x425837('0x4a')](_0x502dc2);if(_0x2c1372[_0x425837('0x82')]>0x0)return _0x340e08(_0x33f5c8['error'](0x1f4,_[_0x425837('0x79')](_0x2c1372,_0x425837('0xf'))[_0x425837('0x5f')](',\x20')));const _0x20afce=_[_0x425837('0x16')](_0x39c4a1[_0x425837('0x51')],{'uniqueid':_0x502dc2['uniqueid']});return _0x20afce&&_0x20afce['channel']?ami[_0x425837('0x32')]({'action':'Redirect','channel':_0x20afce['channel'],'exten':_0x502dc2[_0x425837('0x35')],'context':_0x502dc2[_0x425837('0x20')]||_0x20afce[_0x425837('0x20')],'priority':0x1})[_0x425837('0x4c')](function(_0x20a78e){const _0x4656f3=_0x425837;_0x53b2de({'code':0xc8,'message':[_0x502dc2[_0x4656f3('0x78')],_0x20a78e[_0x4656f3('0xf')][_0x4656f3('0x55')]()][_0x4656f3('0x5f')]('\x20')});})[_0x425837('0x2a')](function(_0x49cb69){const _0x14c8ed=_0x425837;_0x340e08(_0x33f5c8[_0x14c8ed('0x80')](0x1f5,[_0x502dc2['uniqueid'],_0x49cb69[_0x14c8ed('0xf')][_0x14c8ed('0x55')]()][_0x14c8ed('0x5f')]('\x20')));}):_0x340e08(_0x33f5c8[_0x425837('0x80')](0x1f5,_0x425837('0x48')));});},'Agents':function(){return new Promise(function(_0xa2fe17){const _0x53239f=a1132_0x2ff5,_0x43dc9a=_[_0x53239f('0x17')](_0x39c4a1['agents']);_0xa2fe17({'count':_0x43dc9a[_0x53239f('0x82')],'rows':_0x43dc9a});});},'Telephones':function(){return new Promise(function(_0x150683){const _0xfc0ac=a1132_0x2ff5,_0xa16baf=_[_0xfc0ac('0x17')](_0x39c4a1['telephones']);_0x150683({'count':_0xa16baf[_0xfc0ac('0x82')],'rows':_0xa16baf});});},'Trunks':function(){return new Promise(function(_0x561d09){const _0x1321d0=a1132_0x2ff5,_0x483918=_[_0x1321d0('0x17')](_0x39c4a1['trunks']);_0x561d09({'count':_0x483918[_0x1321d0('0x82')],'rows':_0x483918});});},'OutboundChannels':function(){return new Promise(function(_0x5900f7){const _0x3ef899=a1132_0x2ff5,_0x222154=_[_0x3ef899('0x17')](_0x39c4a1[_0x3ef899('0x25')]);_0x5900f7({'count':_0x222154[_0x3ef899('0x82')],'rows':_0x222154});});},'Outbound':function(){return new Promise(function(_0xe718cf){_0xe718cf(_0x39c4a1['outbound']);});},'Campaigns':function(){return new Promise(function(_0x5a7fe7){const _0x4d1916=a1132_0x2ff5,_0x5238d4=_[_0x4d1916('0x17')](_0x39c4a1[_0x4d1916('0xc')]);_0x5a7fe7({'count':_0x5238d4[_0x4d1916('0x82')],'rows':_0x5238d4});});},'VoiceQueuesPreview':function(_0x16a541){const _0x50f47c=this;return new Promise(function(_0x377508,_0x5c2848){const _0x1293a3=a1132_0x2ff5;_0x5ee9a9[_0x1293a3('0x1d')](_0x16a541['id'])['then'](function(_0x3316e3){_0x377508({'code':0xc8,'message':_0x3316e3['message']});})[_0x1293a3('0x2a')](function(_0x2c3616){const _0x1bc4fe=_0x1293a3;_0x5c2848(_0x50f47c[_0x1bc4fe('0x80')](0x1f4,_0x2c3616[_0x1bc4fe('0xf')]));});});},'EventManager':function(_0x523621){const _0x9bee53=this;return new Promise(function(_0x4ab909,_0x4795f0){const _0x48cccb=a1132_0x2ff5;if(!_0x523621['event'])return _0x4795f0(_0x9bee53['error'](0x1f4,_0x48cccb('0x31')));ami[_0x48cccb('0x6e')](_0x48cccb('0x74')+_0x523621[_0x48cccb('0x69')],_0x523621['message']),_0x4ab909({'code':0xc8,'message':_0x523621});});},'FaxAccounts':function(){return new Promise(function(_0x134c95){const _0x2b75f7=a1132_0x2ff5,_0x2fc0f8=_[_0x2b75f7('0x17')](_0x39c4a1[_0x2b75f7('0x65')]);_0x134c95({'count':_0x2fc0f8[_0x2b75f7('0x82')],'rows':_0x2fc0f8});});},'SendFax':function(_0x4b430a){const _0x13f223=this;return new Promise(function(_0x4adb72,_0xc63f3d){const _0x2f4d95=a1132_0x2ff5;_0x666d41[_0x2f4d95('0x18')](_0x4b430a)[_0x2f4d95('0x4c')](function(_0x483352){const _0x257dd0=_0x2f4d95;_0x4adb72({'code':0xc8,'message':_0x483352[_0x257dd0('0xf')]});})[_0x2f4d95('0x2a')](function(_0x3f0920){const _0x4c94b2=_0x2f4d95;_0xc63f3d(_0x13f223[_0x4c94b2('0x80')](0x1f4,_0x3f0920[_0x4c94b2('0xf')]));});});},'CheckAfterSend':function(_0x4b3039){const _0x5a0ee8=this;return new Promise(function(_0x4832dd,_0x284350){const _0x35909d=a1132_0x2ff5;_0x666d41[_0x35909d('0x13')](_0x4b3039)[_0x35909d('0x4c')](function(_0x31947d){const _0xfe7a57=_0x35909d;_0x4832dd({'code':0xc8,'message':_0x31947d[_0xfe7a57('0xf')]});})['catch'](function(_0x1501da){const _0x179f87=_0x35909d;_0x284350(_0x5a0ee8[_0x179f87('0x80')](0x1f4,_0x1501da[_0x179f87('0xf')]));});});}},_0x2ab4d6=jayson['server'](_0xf15e4e)['http']();_0x2ab4d6['on'](_0x5dcaae('0x80'),function(_0x75eb7a){return _0x320a1e(_0x75eb7a);}),_0x2ab4d6[_0x5dcaae('0x58')](0x232a,'127.0.0.1',function(){const _0x434cf2=_0x5dcaae;return console[_0x434cf2('0x36')]('AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232a),_0x3d5bbe(_0x434cf2('0x10')+0x232a);});});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/cmContact/index.js b/server/services/ami/trigger/cmContact/index.js index ad9e9be..b51422d 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1133_0x2782=['[CM][%s][%s]\x20Contact\x20not\x20found','trigger','resolve','data3','createContact','calleridname','firstName','calleridnum','then','data4','info','updatedAt','exec','[CM][%s][%s]\x20Contact\x20created:%s','stringify','user:%s','uniqueid','format','split','util','merge','lastName','isEmpty','map','createdAt','emit','toLowerCase','[CM][%s][%s]\x20Contact\x20found:%s','isNil','phone','lodash','getContacts','data2','','sequelize','ListId','routeId','[CM][%s][%s]\x20Autocreate\x20enabled','destcalleridname','xmd-contactid2','action','Unknown','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','mobile','fax','destcalleridnum'];(function(_0x2b8e1d,_0x27827e){const _0x1f549f=function(_0x40fc06){while(--_0x40fc06){_0x2b8e1d['push'](_0x2b8e1d['shift']());}};_0x1f549f(++_0x27827e);}(a1133_0x2782,0xba));const a1133_0x1f54=function(_0x2b8e1d,_0x27827e){_0x2b8e1d=_0x2b8e1d-0x0;let _0x1f549f=a1133_0x2782[_0x2b8e1d];return _0x1f549f;};const _0x590d7f=a1133_0x1f54;'use strict';const util=require(_0x590d7f('0x11')),_=require(_0x590d7f('0x1c')),logger=require('../../../../config/logger')(_0x590d7f('0x2d')),cmContactRpc=require('../../rpc/cmContact'),{Op}=require(_0x590d7f('0x20')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x40fc06,_0x1108d2,_0x3be247,_0x45916b,_0x29126a){const _0x49bccd=_0x590d7f;logger[_0x49bccd('0x8')]('[CM][%s][%s]',_0x40fc06,_0x1108d2['id'],_0x3be247,_0x45916b,JSON[_0x49bccd('0xc')](_0x29126a)),io['to'](_0x3be247)[_0x49bccd('0x17')](_0x45916b,_0x29126a);}exports[_0x590d7f('0xa')]=function(_0x496b7b,_0x30ef42,_0x536f77,_0x445eaf){const _0x5d831c=_0x590d7f;let _0x4b1e35,_0x293acc;const _0x28b5e5={},_0x5cc6e5=Number(_0x536f77['data1']),_0xb78b6=_0x536f77[_0x5d831c('0x1e')]?Boolean(Number(_0x536f77[_0x5d831c('0x1e')])):![];let _0x11aa5=[];if(_0x445eaf[_0x5d831c('0x25')]&&!_[_0x5d831c('0x14')](_0x445eaf['xmd-contactid2']))_0x28b5e5['id']=_0x445eaf['xmd-contactid2'];!_0x28b5e5['id']&&(_0x28b5e5['ListId']=_0x5cc6e5,_0x11aa5=_0x536f77[_0x5d831c('0x1')]&&_0x536f77[_0x5d831c('0x1')]!=='0'?_0x536f77[_0x5d831c('0x1')][_0x5d831c('0x10')](','):[_0x5d831c('0x1b')],_0x28b5e5[Op['or']]=_[_0x5d831c('0x15')](_0x11aa5,function(_0x3701a2){const _0x2f88e9=_0x5d831c,_0xd2dbed={};return _0xd2dbed[_0x3701a2]=_0x445eaf['routeId']?_0x445eaf[_0x2f88e9('0x2b')]:_0x445eaf[_0x2f88e9('0x5')],_0xd2dbed;}));const _0x26e741=['id',_0x5d831c('0x4'),_0x5d831c('0x13'),_0x5d831c('0x1b'),_0x5d831c('0x29'),_0x5d831c('0x2a'),_0x5d831c('0x21'),_0x5d831c('0x16'),'scheduledAt',_0x5d831c('0x9')],_0x6ac4e8=_['union'](_0x26e741,_0x11aa5);Promise[_0x5d831c('0x0')]()['then'](cmContactRpc[_0x5d831c('0x1d')]({'attributes':_0x6ac4e8,'where':_0x28b5e5}))[_0x5d831c('0x6')](function(_0x193b3c){const _0xd654f7=_0x5d831c;_0x293acc=_0x193b3c;if(!_[_0xd654f7('0x14')](_0x293acc)){_0x293acc['length']===0x1?(_0x4b1e35=_0x293acc[0x0],logger[_0xd654f7('0x8')](_0xd654f7('0x19'),_0x445eaf[_0xd654f7('0xe')],_0x30ef42['id'],_0x4b1e35['id'])):logger[_0xd654f7('0x8')](_0xd654f7('0x28'),_0x445eaf[_0xd654f7('0xe')],_0x30ef42['id'],_['map'](_0x293acc,'id')['join'](','));return;}else{logger['info'](_0xd654f7('0x2c'),_0x445eaf[_0xd654f7('0xe')],_0x30ef42['id']);if(_0xb78b6){logger['info'](_0xd654f7('0x23'),_0x445eaf['uniqueid'],_0x30ef42['id']);const _0x15f4ce=_0x536f77[_0xd654f7('0x7')]&&_0x536f77[_0xd654f7('0x7')]!=='0'?_0x536f77[_0xd654f7('0x7')]:_0xd654f7('0x1b'),_0x95fb98={'ListId':_0x5cc6e5};return _0x95fb98[_0x15f4ce]=_[_0xd654f7('0x1a')](_0x445eaf[_0xd654f7('0x22')])?_0x445eaf['calleridnum']:_0x445eaf[_0xd654f7('0x2b')],_['isNil'](_0x445eaf[_0xd654f7('0x22')])?_0x95fb98['firstName']=_0x445eaf[_0xd654f7('0x3')]&&_0x445eaf[_0xd654f7('0x3')]!==''?_0x445eaf[_0xd654f7('0x3')]:'Unknown':_0x95fb98[_0xd654f7('0x4')]=_0x445eaf[_0xd654f7('0x24')]&&_0x445eaf[_0xd654f7('0x24')]!==_0xd654f7('0x1f')?_0x445eaf['destcalleridname']:_0xd654f7('0x27'),Promise[_0xd654f7('0x0')]()[_0xd654f7('0x6')](cmContactRpc[_0xd654f7('0x2')](_0x95fb98))[_0xd654f7('0x6')](function(_0x19c512){const _0x914fff=_0xd654f7;_0x4b1e35=_0x19c512;_0x4b1e35&&logger[_0x914fff('0x8')](_0x914fff('0xb'),_0x445eaf[_0x914fff('0xe')],_0x30ef42['id'],_0x4b1e35['id']);return;});}else{logger['info']('[CM][%s][%s]\x20Autocreate\x20disabled',_0x445eaf[_0xd654f7('0xe')],_0x30ef42['id']);return;}}})[_0x5d831c('0x6')](function(){const _0x39ed6a=_0x5d831c;_0x496b7b&&emit(_0x445eaf[_0x39ed6a('0xe')],_0x30ef42,util['format'](_0x39ed6a('0xd'),_0x496b7b['name']),util[_0x39ed6a('0xf')]('trigger:%s',_0x536f77[_0x39ed6a('0x26')][_0x39ed6a('0x18')]()),{'evt':_[_0x39ed6a('0x12')](_0x445eaf,{'autoCreate':_0xb78b6}),'contact':_0x4b1e35,'contacts':!_0x4b1e35?_0x293acc:undefined});});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index 352280c..6489880 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1134_0x39a2=['urlforward','freshsalesAccounts','status','custom:agentnosuchnumber','winapp','ChatWebsiteId','data4','./cmContact','action','jscripty','custom:outgoingmessage','toLowerCase','search','syncAgentDial','template\x20not\x20found','../ami','custom:dialbegin','winApplication','merge','Actions','message','600','triggers','bind','value','zohoAccounts','buildUri','html','channel','data5','custom:agentringnoanswer','./script','parse','operator','freshdeskAccounts','prototype','interface','dynamics365Accounts','../../../config/logger','util','uri','contactmanager','script','TemplateId','vtigerAccounts','custom:agentcongestion','custom:agentnoanswer','render','custom:rejectmessage','emit','windowWidth','custom:acceptmessage','custom:agentbusy','replace','custom:incomingmessage','format','checkTrigger','data2','queue','location','user:%s','name','custom:queuecallerabandon','custom:agentcalled','motionbar','./integration','membername','deskAccounts','info','voiceQueues','exec','browser','data1','templates','upperFirst','checkConditions','popup','AccountId','sugarcrmAccounts','zendeskAccounts','800','checkTriggers','custom:timeout','event','syncCustomEvent','interaction','account','some','url','lastevent','windowHeight','servicenowAccounts','isNil','../../../rediscache','custom:dialconnect','custom:agentcomplete','custom:closedinteraction','agent','AnyConditions','data3','accounts','trigger:%s','mustache','AllConditions','length','custom:agentreject','undefined','chat','trigger','./urlforward','exports','variables','trigger:%s:%s','agents','custom:dialend','routeId'];(function(_0xf30b4,_0x39a275){const _0x30c3b7=function(_0x44da7b){while(--_0x44da7b){_0xf30b4['push'](_0xf30b4['shift']());}};_0x30c3b7(++_0x39a275);}(a1134_0x39a2,0x88));const a1134_0x30c3=function(_0xf30b4,_0x39a275){_0xf30b4=_0xf30b4-0x0;let _0x30c3b7=a1134_0x39a2[_0xf30b4];return _0x30c3b7;};const _0x46733a=a1134_0x30c3;'use strict';const util=require(_0x46733a('0x13')),_=require('lodash'),url=require(_0x46733a('0x44')),Mustache=require(_0x46733a('0x52')),urlforward=require(_0x46733a('0x59')),integration=require(_0x46733a('0x2d')),cmContact=require(_0x46733a('0x67')),script=require(_0x46733a('0xb')),logger=require(_0x46733a('0x12'))(_0x46733a('0x58')),ami=require(_0x46733a('0x6f')),{getSocket}=require(_0x46733a('0x49')),io=getSocket(),operators={'equals':function(_0x44da7b,_0x5be175){return _0x44da7b==_0x5be175;},'not_equals':function(_0x2c0f6f,_0x30beed){return _0x2c0f6f!=_0x30beed;}},barAndWebActions=[_0x46733a('0x38'),_0x46733a('0x44'),_0x46733a('0x64')];function Trigger(_0x305934){const _0x3dbaf3=_0x46733a;this[_0x3dbaf3('0x2')]=_0x305934['triggers'],this[_0x3dbaf3('0x5d')]=_0x305934[_0x3dbaf3('0x5d')],this[_0x3dbaf3('0x31')]=_0x305934['voiceQueues'],this[_0x3dbaf3('0x35')]=_0x305934[_0x3dbaf3('0x35')],this['voiceExtensions']=_0x305934['voiceExtensions'],this[_0x3dbaf3('0x3b')]=_0x305934[_0x3dbaf3('0x3b')],this[_0x3dbaf3('0xe')]=_0x305934[_0x3dbaf3('0xe')],this['salesforceAccounts']=_0x305934['salesforceAccounts'],this[_0x3dbaf3('0x3a')]=_0x305934[_0x3dbaf3('0x3a')],this[_0x3dbaf3('0x5')]=_0x305934['zohoAccounts'],this[_0x3dbaf3('0x2f')]=_0x305934[_0x3dbaf3('0x2f')],this[_0x3dbaf3('0x18')]=_0x305934[_0x3dbaf3('0x18')],this[_0x3dbaf3('0x47')]=_0x305934[_0x3dbaf3('0x47')],this[_0x3dbaf3('0x11')]=_0x305934[_0x3dbaf3('0x11')],this[_0x3dbaf3('0x61')]=_0x305934[_0x3dbaf3('0x61')],this['accounts']={'zendesk':this[_0x3dbaf3('0x3b')],'salesforce':this['salesforceAccounts'],'freshdesk':this[_0x3dbaf3('0xe')],'sugarcrm':this['sugarcrmAccounts'],'zoho':this[_0x3dbaf3('0x5')],'desk':this[_0x3dbaf3('0x2f')],'vtiger':this[_0x3dbaf3('0x18')],'dynamics365':this['dynamics365Accounts'],'freshsales':this[_0x3dbaf3('0x61')],'servicenow':this[_0x3dbaf3('0x47')]},ami['on'](_0x3dbaf3('0x2b'),this['syncCustomEvent'][_0x3dbaf3('0x3')](this)),ami['on']('custom:agentconnect',this['syncCustomEvent']['bind'](this)),ami['on'](_0x3dbaf3('0xa'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x4b'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x63'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x1a'),this['syncCustomEvent'][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x20'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x19'),this[_0x3dbaf3('0x40')]['bind'](this)),ami['on'](_0x3dbaf3('0x55'),this['syncCustomEvent'][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x2a'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x3e'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x70'),this[_0x3dbaf3('0x6d')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x4a'),this[_0x3dbaf3('0x6d')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x5e'),this[_0x3dbaf3('0x6d')][_0x3dbaf3('0x3')](this)),ami['on']('custom:newinteraction',this['syncCustomEvent'][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x4c'),this[_0x3dbaf3('0x40')]['bind'](this)),ami['on'](_0x3dbaf3('0x22'),this['syncCustomEvent'][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x6a'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this)),ami['on'](_0x3dbaf3('0x1f'),this[_0x3dbaf3('0x40')]['bind'](this)),ami['on'](_0x3dbaf3('0x1c'),this[_0x3dbaf3('0x40')][_0x3dbaf3('0x3')](this));}Trigger['prototype'][_0x46733a('0x1d')]=function(_0xd7662,_0xc8fe8c,_0x1327c2){const _0x3dafbf=_0x46733a;logger[_0x3dafbf('0x30')](_0xd7662,_0xc8fe8c,JSON['stringify'](_0x1327c2)),io['to'](_0xd7662)[_0x3dafbf('0x1d')](_0xc8fe8c,_0x1327c2);},Trigger['prototype'][_0x46733a('0x40')]=function(_0x18bedb){const _0x29eeab=_0x46733a,_0xc50e84=_['clone'](_0x18bedb);this[_0x29eeab('0x3d')](_0xc50e84);},Trigger[_0x46733a('0xf')]['syncAgentDial']=function(_0x4c548f){const _0x4436b8=_0x46733a;this['agents'][_0x4c548f[_0x4436b8('0x10')]]&&this[_0x4436b8('0x40')](_0x4c548f);},Trigger[_0x46733a('0xf')][_0x46733a('0x3d')]=function(_0x3fbc8b){const _0x30867c=_0x46733a;let _0x4476e2;for(const _0x86a3e9 in this[_0x30867c('0x2')]){if(typeof this[_0x30867c('0x2')][_0x86a3e9]!==_0x30867c('0x56')){if(this[_0x30867c('0x2')][_0x86a3e9][_0x30867c('0x62')]){_0x4476e2=this['checkTrigger'](this[_0x30867c('0x2')][_0x86a3e9],_0x3fbc8b);if(_0x4476e2){_[_0x30867c('0x72')](_0x3fbc8b,_0x3fbc8b[_0x30867c('0x5b')]);for(let _0x32d430=0x0,_0x490417;_0x32d4300x0&&(_0x3b2513=_[_0x56b5c6('0x3a')](_0x953cb7,_0x1741c0)),_0x3b2513;}function getCustomFields(_0x5939f1,_0x5e44d1){const _0x55af53=_0x16354d,_0x14bf9a={'custom_fields':{}};return _0x5939f1[_0x55af53('0x34')]>0x0&&_['forEach'](_0x5939f1,function(_0x261fcd){const _0xfc27d9=_0x55af53;if(_0x261fcd[_0xfc27d9('0x5a')]===_0xfc27d9('0x5c')&&_0x261fcd[_0xfc27d9('0x11')]&&!_0x261fcd['customField'])_0x14bf9a[_0x261fcd['nameField'][_0xfc27d9('0x1b')]()]=_0x261fcd[_0xfc27d9('0x4f')][_0xfc27d9('0x10')]();else{if(_0x261fcd[_0xfc27d9('0x5a')]===_0xfc27d9('0x5c')&&_0x261fcd[_0xfc27d9('0x18')]&&_0x261fcd[_0xfc27d9('0x51')])_0x14bf9a[_0xfc27d9('0x3d')][_0x261fcd[_0xfc27d9('0x18')]]=_0x261fcd[_0xfc27d9('0x4f')][_0xfc27d9('0x10')]();else{if(_0x261fcd[_0xfc27d9('0x5a')]===_0xfc27d9('0x23')&&_0x261fcd[_0xfc27d9('0x28')]&&_0x261fcd[_0xfc27d9('0x18')]&&_0x261fcd[_0xfc27d9('0x51')])_0x5e44d1[_0x261fcd[_0xfc27d9('0x28')]]&&(_0x14bf9a[_0xfc27d9('0x3d')][_0x261fcd[_0xfc27d9('0x18')]]=_0x5e44d1[_0x261fcd[_0xfc27d9('0x28')]]['toString']());else _0x261fcd[_0xfc27d9('0x5a')]==='customVariable'&&_0x261fcd[_0xfc27d9('0x63')]&&_0x261fcd['Variable'][_0xfc27d9('0x38')]&&_0x261fcd[_0xfc27d9('0x18')]&&_0x261fcd[_0xfc27d9('0x51')]&&(_0x5e44d1[_0x261fcd['Variable'][_0xfc27d9('0x38')][_0xfc27d9('0x1b')]()]&&(_0x14bf9a['custom_fields'][_0x261fcd[_0xfc27d9('0x18')]]=_0x5e44d1[_0x261fcd[_0xfc27d9('0x63')][_0xfc27d9('0x38')]['toLowerCase']()]['toString']()));}}}),_0x14bf9a['priority']&&(_0x14bf9a[_0x55af53('0x45')]=Number(_0x14bf9a[_0x55af53('0x45')])),_0x14bf9a;}function getTicket(_0x54ea44,_0x59e4c3,_0x38f9c4,_0x2537cf,_0x444760){const _0x5f33e7=_0x16354d;logger['info']('Creating\x20new\x20ticket...');const _0x5a9aa9=_[_0x5f33e7('0x0')]({'subject':intUtil[_0x5f33e7('0x55')](_0x2537cf[_0x5f33e7('0x41')],_0x444760,'\x20'),'type':_0x5f33e7('0x62'),'status':'new','labels':[_0x5f33e7('0x26'),_0x5f33e7('0x5'),_0x5f33e7('0x44')][_0x5f33e7('0x40')](getTags(_0x2537cf['Tags'],'name')),'description':intUtil[_0x5f33e7('0x55')](_0x2537cf[_0x5f33e7('0xe')],_0x444760,'\x0a'),'_links':{'assigned_user':{'href':util[_0x5f33e7('0x4c')](_0x5f33e7('0x54'),_0x59e4c3['id']),'class':_0x5f33e7('0x49')}},'message':{'direction':'in','body':intUtil[_0x5f33e7('0x55')](_0x2537cf[_0x5f33e7('0xe')],_0x444760,'\x0a')}},getCustomFields(_0x2537cf[_0x5f33e7('0x17')],_0x444760));return request({'uri':util[_0x5f33e7('0x4c')](_0x5f33e7('0x5f'),_0x54ea44[_0x5f33e7('0x4')],_0x38f9c4['id']),'method':_0x5f33e7('0x60'),'body':_0x5a9aa9});}exports[_0x16354d('0x52')]=function(_0x3a9a9b,_0x37a77d,_0x31fe7d,_0x5a8e3e,_0x2f168d,_0x28acf8){const _0x2688e1=_0x16354d;let _0x142625,_0x2d7317;return _0x28acf8[_0x2688e1('0x4')]=intUtil[_0x2688e1('0x14')](_0x28acf8['remoteUri']),_0x28acf8[_0x2688e1('0x37')]=intUtil['stripTrailingSlash'](_0x28acf8['serverUrl']),_0x2f168d&&_0x2f168d[_0x2688e1('0x16')]?(logger[_0x2688e1('0x6')]('[QUEUE]','Recording\x20is\x20enabled!'),_0x37a77d[_0x2688e1('0x35')]=util[_0x2688e1('0x4c')](_0x2688e1('0x64'),_0x28acf8[_0x2688e1('0x37')],_0x37a77d[_0x2688e1('0x1d')],md5(_0x37a77d[_0x2688e1('0x1d')]))):_0x37a77d[_0x2688e1('0x35')]='',headers[_0x2688e1('0x30')]=getAuth(_0x28acf8),getUser(_0x28acf8,_0x5a8e3e[_0x2688e1('0xd')])[_0x2688e1('0xc')](function(_0x436630){const _0x1b9d8c=_0x2688e1;return _0x142625=_0x436630,logger['info'](_0x1b9d8c('0x7'),_0x142625['id']),getEndUser(_0x28acf8,_0x37a77d['calleridname'],_0x37a77d[_0x1b9d8c('0x46')]);})['then'](function(_0x56c372){const _0x6fe059=_0x2688e1;return _0x2d7317=_0x56c372,logger[_0x6fe059('0x6')]('The\x20Enduser\x20ID\x20is:',_0x2d7317['id']),getTicket(_0x28acf8,_0x142625,_0x2d7317,_0x31fe7d,_0x37a77d);})['then'](function(_0x17d884){const _0x3e66e6=_0x2688e1;if(_0x17d884){logger[_0x3e66e6('0x6')]('Ticket\x20created!'),logger[_0x3e66e6('0x6')](_0x3e66e6('0x56'),_0x17d884['id']);switch(_0x28acf8[_0x3e66e6('0x5a')]){case _0x3e66e6('0x20'):logger[_0x3e66e6('0x6')](_0x3e66e6('0x24'),_0x3e66e6('0x2f')),emit(util[_0x3e66e6('0x4c')]('user:%s',_0x5a8e3e[_0x3e66e6('0x38')]),_0x3e66e6('0x13'),{'recordId':_0x17d884['id']});break;case _0x3e66e6('0x48'):logger['info'](_0x3e66e6('0x24'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x3e66e6('0x4c')](_0x3e66e6('0x2a'),_0x5a8e3e['name']),'trigger:browser:url',{'uri':util[_0x3e66e6('0x4c')](_0x3e66e6('0x65'),_0x17d884['id'])});break;default:logger[_0x3e66e6('0x61')]('[QUEUE]','Desk\x20account\x20type\x20not\x20recognized');}}})[_0x2688e1('0x5b')](function(_0x122b20){const _0x224f76=_0x2688e1;console['error'](_0x122b20),logger[_0x224f76('0x61')](_0x224f76('0x24'),JSON[_0x224f76('0xb')](_0x122b20));});},exports[_0x16354d('0x57')]=function(_0x1570fe,_0x3f4c95,_0x2528c3,_0x123fff,_0x2fbbdd,_0x4ea171,_0xd302db){const _0x405ecb=_0x16354d;let _0x3f63b6,_0x506f85;return _0x4ea171[_0x405ecb('0x4')]=intUtil[_0x405ecb('0x14')](_0x4ea171[_0x405ecb('0x4')]),_0x4ea171[_0x405ecb('0x37')]=intUtil[_0x405ecb('0x14')](_0x4ea171[_0x405ecb('0x37')]),_0xd302db&&_0xd302db[_0x405ecb('0x5e')]&&_0xd302db['recordingFormat']!==_0x405ecb('0x19')&&(logger[_0x405ecb('0x6')](_0x405ecb('0x33'),_0x405ecb('0xf')),_0x3f4c95['recordingURL']=util[_0x405ecb('0x4c')](_0x405ecb('0x64'),_0x4ea171[_0x405ecb('0x37')],_0x3f4c95[_0x405ecb('0x1d')],md5(_0x3f4c95[_0x405ecb('0x1d')]))),headers['Authorization']=getAuth(_0x4ea171),getUser(_0x4ea171,_0x123fff[_0x405ecb('0xd')])[_0x405ecb('0xc')](function(_0xd64ae9){const _0x563cf8=_0x405ecb;return _0x3f63b6=_0xd64ae9,logger[_0x563cf8('0x6')]('The\x20User\x20ID\x20is:',_0x3f63b6['id']),getEndUser(_0x4ea171,_0x3f4c95[_0x563cf8('0x5d')],_0x3f4c95[_0x563cf8('0x3c')]);})[_0x405ecb('0xc')](function(_0x15a584){const _0x4be6a4=_0x405ecb;return _0x506f85=_0x15a584,logger[_0x4be6a4('0x6')]('The\x20Enduser\x20ID\x20is:',_0x506f85['id']),getTicket(_0x4ea171,_0x3f63b6,_0x506f85,_0x2528c3,_0x3f4c95);})[_0x405ecb('0xc')](function(_0x553c60){const _0x6f5734=_0x405ecb;if(_0x553c60){logger[_0x6f5734('0x6')]('Ticket\x20created!'),logger[_0x6f5734('0x6')]('The\x20Ticket\x20ID\x20is:',_0x553c60['id']);switch(_0x4ea171['type']){case _0x6f5734('0x20'):logger[_0x6f5734('0x6')](_0x6f5734('0x24'),_0x6f5734('0x2f')),emit(util[_0x6f5734('0x4c')](_0x6f5734('0x2a'),_0x123fff[_0x6f5734('0x38')]),_0x6f5734('0x13'),{'recordId':_0x553c60['id']});break;case _0x6f5734('0x48'):logger[_0x6f5734('0x6')](_0x6f5734('0x24'),_0x6f5734('0x43')),emit(util[_0x6f5734('0x4c')]('user:%s',_0x123fff['name']),_0x6f5734('0x2e'),{'uri':util[_0x6f5734('0x4c')]('%s/agent/tickets/%s',_0x4ea171['remoteUri'],_0x553c60['id'])});break;default:logger[_0x6f5734('0x61')](_0x6f5734('0x33'),_0x6f5734('0x53'));}}})['catch'](function(_0x59014f){const _0x49f7e8=_0x405ecb;logger['error']('[OUTBOUND]',JSON[_0x49f7e8('0xb')](_0x59014f));});},exports[_0x16354d('0x50')]=function(_0x528eb0,_0x5d8469,_0x5e43a2,_0x38fed4,_0x11eeb1,_0x5364b1){const _0x348922=_0x16354d;let _0x3f5f74,_0xa0a63f;return _0x5364b1[_0x348922('0x4')]=intUtil[_0x348922('0x14')](_0x5364b1[_0x348922('0x4')]),_0x5364b1[_0x348922('0x37')]=intUtil[_0x348922('0x14')](_0x5364b1['serverUrl']),_0x11eeb1&&_0x11eeb1[_0x348922('0x16')]?(logger[_0x348922('0x6')]('['+_0x5d8469['lastevent'][_0x348922('0x59')]()+']',_0x348922('0xf')),_0x5d8469[_0x348922('0x35')]=util['format'](_0x348922('0x64'),_0x5364b1['serverUrl'],_0x5d8469['uniqueid'],md5(_0x5d8469[_0x348922('0x1d')]))):_0x5d8469[_0x348922('0x35')]='',headers['Authorization']=getAuth(_0x5364b1),getUser(_0x5364b1)[_0x348922('0xc')](function(_0xcbd9e8){const _0x2feae4=_0x348922;return _0x3f5f74=_0xcbd9e8,logger['info'](_0x2feae4('0x7'),_0x3f5f74['id']),getEndUser(_0x5364b1,_0x5d8469['calleridname'],_0x5d8469[_0x2feae4('0x46')]);})['then'](function(_0x445a26){return _0xa0a63f=_0x445a26,logger['info']('The\x20Enduser\x20ID\x20is:',_0xa0a63f['id']),getTicket(_0x5364b1,_0x3f5f74,_0xa0a63f,_0x5e43a2,_0x5d8469);})[_0x348922('0xc')](function(_0xb42545){const _0x5b8528=_0x348922;_0xb42545&&(logger[_0x5b8528('0x6')]('Ticket\x20created!'),logger[_0x5b8528('0x6')](_0x5b8528('0x56'),_0xb42545['id']));})[_0x348922('0x5b')](function(_0x1617dd){const _0x1209ca=_0x348922;logger[_0x1209ca('0x61')]('['+_0x5d8469[_0x1209ca('0x2d')][_0x1209ca('0x59')]()+']',JSON['stringify'](_0x1617dd));});}; \ No newline at end of file +const a1135_0x4925=['password','base64','recordingFormat','emit','work','user:%s','from','info','Fields','Descriptions','validateEmail','calleridname','Ticket\x20created!','variableName','Authorization','Displaying\x20ticket\x20to\x20agent...','remoteUri','toLowerCase','%s/customers','Searching\x20enduser\x20with\x20phone','[OUTBOUND]','uniqueid','monitor_format','nameField','format','Enduser\x20found!','The\x20Ticket\x20ID\x20is:','lastevent','variable','authType','priority','Recording\x20is\x20enabled!','catch','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','length','total_entries','none','trigger:desk:display','trigger:browser:url','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','%s/token:%s','string','customField','POST','The\x20User\x20ID\x20is:','serverUrl','content','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','destcalleridname','custom_fields','toUpperCase','https://xcally.desk.com/web/agent/case/%d','idField','The\x20Enduser\x20ID\x20is:','queue','request-promise-native','token','map','type','[HTTP]','%s/customers/search','getString','concat','%s/agent/tickets/%s','merge','%s/customers/%d/cases','toString','newTab','destcalleridnum','stringify','[QUEUE]','error','new','recordingURL','entries','phone','GET','outbound','debug','application/json','../../../../config/logger','email','find','name','CTI','Desk\x20account\x20type\x20not\x20recognized','Agent\x20found!','%s/users/me','stripTrailingSlash','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','../../../../rediscache','%s/users','Variable','integrationTab','then','user','Motion','xCALLY','/api/v2/users/%d','_embedded','lodash'];(function(_0x4a26d6,_0x49254a){const _0x301bbc=function(_0x2a59a7){while(--_0x2a59a7){_0x4a26d6['push'](_0x4a26d6['shift']());}};_0x301bbc(++_0x49254a);}(a1135_0x4925,0x16a));const a1135_0x301b=function(_0x4a26d6,_0x49254a){_0x4a26d6=_0x4a26d6-0x0;let _0x301bbc=a1135_0x4925[_0x4a26d6];return _0x301bbc;};const _0x44d753=a1135_0x301b;'use strict';const _=require(_0x44d753('0x29')),rp=require(_0x44d753('0x61')),md5=require('md5'),util=require('util'),intUtil=require('./util'),logger=require(_0x44d753('0x15'))('desk'),{getSocket}=require(_0x44d753('0x1f')),io=getSocket();function emit(_0x2a59a7,_0x39b2a8,_0x1a0964){const _0x50b163=_0x44d753;io['to'](_0x2a59a7)[_0x50b163('0x2d')](_0x39b2a8,_0x1a0964);}const headers={'Content-Type':'application/json','Accept':_0x44d753('0x14')};function getUser(_0x496cba,_0x43238b){const _0x38c48b=_0x44d753;return intUtil[_0x38c48b('0x34')](_0x43238b)===!![]?(logger[_0x38c48b('0x31')]('Getting\x20agent\x20with\x20email',_0x43238b),request({'uri':util[_0x38c48b('0x42')](_0x38c48b('0x20'),_0x496cba['remoteUri'])})[_0x38c48b('0x23')](function(_0x4c35eb){const _0x26f53e=_0x38c48b;if(_0x4c35eb['total_entries'])return _[_0x26f53e('0x17')](_0x4c35eb[_0x26f53e('0x28')][_0x26f53e('0xf')],{'email':_0x43238b});})[_0x38c48b('0x23')](function(_0x251acb){const _0x24f483=_0x38c48b;return _0x251acb?(logger[_0x24f483('0x31')](_0x24f483('0x1b')),_0x251acb):(logger[_0x24f483('0x31')](_0x24f483('0x4b')),request({'uri':util['format'](_0x24f483('0x1c'),_0x496cba['remoteUri'])}));})):(logger[_0x38c48b('0x31')]('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x38c48b('0x42')]('%s/users/me',_0x496cba[_0x38c48b('0x3a')])}));}function request(_0x22a230){const _0x27a415=_0x44d753;return logger[_0x27a415('0x13')](_0x27a415('0x0'),JSON['stringify'](_0x22a230)),rp(_['defaults'](_0x22a230,{'method':_0x27a415('0x11'),'headers':headers,'json':!![]}));}function getAuth(_0x28ee28){const _0x338d11=_0x44d753;let _0x44868;if(_0x28ee28[_0x338d11('0x47')]==='basic')_0x44868=util['format']('%s:%s',_0x28ee28['username'],_0x28ee28[_0x338d11('0x2a')]);else _0x28ee28[_0x338d11('0x47')]==='token'&&(_0x44868=util['format'](_0x338d11('0x52'),_0x28ee28['username'],_0x28ee28[_0x338d11('0x62')]));return util[_0x338d11('0x42')]('Basic\x20%s',Buffer[_0x338d11('0x30')](_0x44868)[_0x338d11('0x7')](_0x338d11('0x2b')));}function getEndUser(_0x3854ad,_0x5f26fb,_0x856270){const _0x157aad=_0x44d753;return logger[_0x157aad('0x31')](_0x157aad('0x3d'),_0x856270),request({'uri':util[_0x157aad('0x42')](_0x157aad('0x1'),_0x3854ad[_0x157aad('0x3a')]),'qs':{'phone':_0x856270}})[_0x157aad('0x23')](function(_0x3a982d){const _0x4ddf90=_0x157aad;return _0x3a982d[_0x4ddf90('0x4d')]?(logger[_0x4ddf90('0x31')](_0x4ddf90('0x43')),_0x3a982d[_0x4ddf90('0x28')][_0x4ddf90('0xf')][0x0]):(logger[_0x4ddf90('0x31')](_0x4ddf90('0x59')),request({'uri':util['format'](_0x4ddf90('0x3c'),_0x3854ad['remoteUri']),'method':_0x4ddf90('0x55'),'body':{'first_name':_0x5f26fb,'title':_0x5f26fb,'phone_numbers':[{'type':_0x4ddf90('0x2e'),'value':_0x856270}]}}));});}function getTags(_0x2e3804,_0x3e58b6){const _0x3cbd4c=_0x44d753;let _0x404329=[];return _0x2e3804&&_0x2e3804[_0x3cbd4c('0x4c')]>0x0&&(_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 diff --git a/server/services/ami/trigger/integration/dynamics365.js b/server/services/ami/trigger/integration/dynamics365.js index 7e307a6..ea78f2e 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1136_0x35da=['odata-entityid','ticketType','clientId','phonecall','clientSecret','4.0','getString','string','contacts','util','email','../../../../config/logger','incident',']\x20The\x20User\x20ID\x20is:','Fields','recordingFormat','enduserId','destcalleridnum','isdisabled','lodash','headers','Bearer\x20',']\x20Call\x20direction:\x20%s','systemuserid','GET','/systemusers(',']\x20Wrong\x20credentials!','format','callDirection','%s/api/data/v9.0/','stripTrailingSlash','error','serverUrl','access_token','content','/contacts(','username','toLowerCase','ticketId','POST','validateEmail','lastIndexOf','isNil','systemusers?$select=internalemailaddress,isdisabled,systemuserid','remoteUri','toUpperCase','assign',']\x20The\x20Enduser\x20phone\x20is:','userEmail','./util','[OUTBOUND]','Descriptions','calleridnum','contactid','recordingURL','emit','idField','name','monitor_format','password','type','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','message','uniqueid','substring','unmanaged','Displaying\x20call\x20in\x20a\x20new\x20tab...','value','md5','trigger:browser:url','https://login.microsoftonline.com/%s/oauth2/token','nameField','Recording\x20is\x20enabled!',']\x20Error\x20running\x20Dynamics365\x20integration','catch','forEach','queue','userId','request-promise-native','none','Subjects','length','info',']\x20Enduser\x20Created!',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','contacts?$select=telephone1','[QUEUE]','outbound','then','dynamics365'];(function(_0x2e919a,_0x35da29){const _0x57d53b=function(_0x58cfd4){while(--_0x58cfd4){_0x2e919a['push'](_0x2e919a['shift']());}};_0x57d53b(++_0x35da29);}(a1136_0x35da,0xf2));const a1136_0x57d5=function(_0x2e919a,_0x35da29){_0x2e919a=_0x2e919a-0x0;let _0x57d53b=a1136_0x35da[_0x2e919a];return _0x57d53b;};const _0x4a6fad=a1136_0x57d5;'use strict';const _=require(_0x4a6fad('0x2f')),rp=require(_0x4a6fad('0x10')),util=require(_0x4a6fad('0x25')),intUtil=require(_0x4a6fad('0x4d')),md5=require(_0x4a6fad('0x6')),logger=require(_0x4a6fad('0x27'))(_0x4a6fad('0x1b')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAuthToken(_0x58cfd4,_0x4bd810,_0x3c6ef7){const _0x5d20b6=_0x4a6fad,_0x4db0ae={'method':_0x5d20b6('0x43'),'uri':_0x4bd810,'form':{'client_id':_0x58cfd4[_0x5d20b6('0x1e')],'resource':_0x58cfd4[_0x5d20b6('0x48')],'username':_0x58cfd4[_0x5d20b6('0x40')],'password':_0x58cfd4[_0x5d20b6('0x57')],'grant_type':'password','client_secret':_0x58cfd4[_0x5d20b6('0x20')]},'json':!![]};return rp(_0x4db0ae)[_0x5d20b6('0x1a')](function(_0x17ef12){const _0x225ff1=_0x5d20b6;return _0x17ef12[_0x225ff1('0x3d')];})['catch'](function(_0x3508c9){const _0x276880=_0x5d20b6;return logger[_0x276880('0x3b')]('['+[_0x3c6ef7[_0x276880('0x49')]()]+_0x276880('0x36')),_0x3508c9['message'];});}function getUser(_0x2b256a,_0xf9c704,_0x2776d2,_0xcdd841,_0x305278,_0x2bb9bc){return new Promise(function(_0x546061,_0x3f3c93){const _0x5d492b=a1136_0x57d5;return getAuthToken(_0xf9c704,_0xcdd841,_0x2bb9bc)[_0x5d492b('0x1a')](function(_0x3218c9){const _0x3b9dc1=_0x5d492b,_0x346bfa={'method':_0x3b9dc1('0x34'),'uri':_0x305278+_0x3b9dc1('0x47'),'headers':{'Authorization':'Bearer\x20'+_0x3218c9,'OData-Version':_0x3b9dc1('0x21')},'json':!![]};return rp(_0x346bfa);})[_0x5d492b('0x1a')](function(_0x420168){const _0x7a648d=_0x5d492b,_0x3185a3=_0x420168[_0x7a648d('0x5')];let _0x5d07c8=![],_0x42db99=null;if(!_[_0x7a648d('0x46')](_0x2776d2)){if(intUtil[_0x7a648d('0x44')](_0x2776d2['email'])){_0x2b256a['userEmail']=_0x2776d2[_0x7a648d('0x26')];for(_0x42db99=0x0;_0x42db99<_0x3185a3[_0x7a648d('0x13')];_0x42db99++){_0x3185a3[_0x42db99]['internalemailaddress']===_0x2776d2[_0x7a648d('0x26')]&&!_0x3185a3[_0x42db99][_0x7a648d('0x2e')]&&(_0x5d07c8=!![],logger['info']('['+[_0x2bb9bc[_0x7a648d('0x49')]()]+']\x20Agent\x20found\x20'+_0x3185a3[_0x42db99]['systemuserid']+'!'),_0x2b256a[_0x7a648d('0xf')]=_0x3185a3[_0x42db99][_0x7a648d('0x33')]);}}}if(!_0x5d07c8){logger['info']('['+[_0x2bb9bc[_0x7a648d('0x49')]()]+_0x7a648d('0x16')),_0x2b256a[_0x7a648d('0x4c')]=_0xf9c704[_0x7a648d('0x40')];for(_0x42db99=0x0;_0x42db99<_0x3185a3[_0x7a648d('0x13')];_0x42db99++){_0x3185a3[_0x42db99]['internalemailaddress']===_0xf9c704[_0x7a648d('0x40')]&&(_0x2b256a[_0x7a648d('0xf')]=_0x3185a3[_0x42db99][_0x7a648d('0x33')]);}}_0x546061(_0x2b256a);})[_0x5d492b('0xc')](function(_0x43bce9){const _0x54702b=_0x5d492b;_0x3f3c93(_0x43bce9[_0x54702b('0x0')]);});});}function createEndUser(_0x5a5427,_0x42d700,_0x9854ce,_0x36403c,_0x3d8d7c,_0x3b9eaa){return new Promise(function(_0x3ba6e8,_0x58abce){const _0x2494ba=a1136_0x57d5;return getAuthToken(_0x42d700,_0x9854ce,_0x3b9eaa)[_0x2494ba('0x1a')](function(_0x8d92e3){const _0x2b1623=_0x2494ba,_0x3c98da=_0x3b9eaa[_0x2b1623('0x41')]()==='outbound'?_0x3d8d7c[_0x2b1623('0x2d')]:_0x3d8d7c[_0x2b1623('0x50')],_0x5a524a={'method':_0x2b1623('0x43'),'uri':_0x36403c+_0x2b1623('0x24'),'body':{'telephone1':_0x3c98da,'fullname':_0x3c98da,'firstname':_0x3c98da,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x2b1623('0x35')+_0x5a5427[_0x2b1623('0xf')]+')'},'headers':{'Authorization':'Bearer\x20'+_0x8d92e3,'OData-Version':_0x2b1623('0x21')},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x5a524a);})[_0x2494ba('0x1a')](function(_0xbdf51e){const _0x5b6e4d=_0x2494ba,_0x450c6b=_0xbdf51e[_0x5b6e4d('0x30')][_0x5b6e4d('0x1c')],_0x35f885=_0x450c6b['substring'](_0x450c6b['lastIndexOf']('(')+0x1,_0x450c6b[_0x5b6e4d('0x45')](')'));_0x5a5427[_0x5b6e4d('0x2c')]=_0x35f885,_0x3ba6e8(_0x5a5427);})[_0x2494ba('0xc')](function(_0x39e0e2){const _0x22effe=_0x2494ba;_0x58abce(_0x39e0e2[_0x22effe('0x0')]);});});}function getEndUser(_0x151d8c,_0x3c182c,_0x565cb3,_0x253f7b,_0xd0e15e,_0x2ca9c1){return new Promise(function(_0x463b4c){const _0x7a43ed=a1136_0x57d5;return getAuthToken(_0x3c182c,_0x565cb3,_0x2ca9c1)[_0x7a43ed('0x1a')](function(_0x55d21b){const _0x17795e=_0x7a43ed,_0x360c53={'method':_0x17795e('0x34'),'uri':_0x253f7b+_0x17795e('0x17'),'headers':{'Authorization':'Bearer\x20'+_0x55d21b,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x360c53);})[_0x7a43ed('0x1a')](function(_0x33f351){const _0xd1a298=_0x7a43ed;let _0x13b08e=null;if(_0x33f351){const _0x2552b8=_0x33f351[_0xd1a298('0x5')];let _0x11d512=![];for(_0x13b08e=0x0;_0x13b08e<_0x2552b8['length'];_0x13b08e++){const _0x2cd884=_0x2ca9c1[_0xd1a298('0x41')]()===_0xd1a298('0x19')?_0xd0e15e[_0xd1a298('0x2d')]:_0xd0e15e[_0xd1a298('0x50')];_0x2552b8[_0x13b08e]['telephone1']===_0x2cd884&&(_0x11d512=!![],_0x151d8c['enduserId']=_0x2552b8[_0x13b08e][_0xd1a298('0x51')]);}if(_0x11d512)_0x463b4c(_0x151d8c);else return createEndUser(_0x151d8c,_0x3c182c,_0x565cb3,_0x253f7b,_0xd0e15e,_0x2ca9c1)[_0xd1a298('0x1a')](function(_0x2fe883){const _0x2db99b=_0xd1a298;logger[_0x2db99b('0x14')]('['+[_0x2ca9c1[_0x2db99b('0x49')]()]+']\x20Enduser\x20created!',_0x2fe883[_0x2db99b('0x2c')]),_0x463b4c(_0x2fe883);});}else return createEndUser(_0x151d8c,_0x3c182c,_0x565cb3,_0x253f7b,_0xd0e15e,_0x2ca9c1)[_0xd1a298('0x1a')](function(_0x496f01){const _0x30a862=_0xd1a298;logger['info']('['+[_0x2ca9c1[_0x30a862('0x49')]()]+_0x30a862('0x15'),_0x496f01[_0x30a862('0x2c')]),_0x463b4c(_0x496f01);});});});}function getCustomFields(_0x222025,_0x3fc705,_0x564277){const _0x555359=_0x4a6fad,_0x5dead4={};return _0x222025[_0x555359('0x13')]>0x0&&_[_0x555359('0xd')](_0x222025,function(_0xa1a9a6){const _0x11f627=_0x555359;if(_0xa1a9a6[_0x11f627('0x58')]===_0x11f627('0x23')&&_0xa1a9a6[_0x11f627('0x9')]&&!_0xa1a9a6['customField']){const _0x4ade04=_0xa1a9a6[_0x11f627('0x54')][_0x11f627('0x41')](),_0x428929=_0x4ade04[_0x11f627('0x2')](0x0,_0x4ade04['indexOf']('_')),_0x18b836=_0x4ade04[_0x11f627('0x2')](_0x4ade04['indexOf']('_')+0x1);_0x428929===_0x564277&&(_0x5dead4[_0x18b836]=_0xa1a9a6[_0x11f627('0x3e')]);}}),_0x5dead4;}function getTicket(_0x28f712,_0x3ce309,_0x2c9ac9,_0x53a130,_0x563901,_0x29c05e,_0x1cd202){return new Promise(function(_0x2af464,_0x3c8e31){const _0x552f55=a1136_0x57d5;let _0x3c0e24;return getAuthToken(_0x3ce309,_0x2c9ac9,_0x1cd202)[_0x552f55('0x1a')](function(_0x422281){const _0x124df5=_0x552f55;return _0x29c05e['ticketType']===_0x124df5('0x28')&&(_0x3c0e24={'method':_0x124df5('0x43'),'uri':_0x53a130+'incidents','body':Object[_0x124df5('0x4a')]({},{'title':intUtil['getString'](_0x29c05e[_0x124df5('0x12')],_0x563901,'\x20'),'description':intUtil[_0x124df5('0x22')](_0x29c05e[_0x124df5('0x4f')],_0x563901,'\x0a'),'customerid_contact@odata.bind':_0x124df5('0x3f')+_0x28f712[_0x124df5('0x2c')]+')','ownerid@odata.bind':'/systemusers('+_0x28f712[_0x124df5('0xf')]+')','caseorigincode':'1'},getCustomFields(_0x29c05e[_0x124df5('0x2a')],_0x563901,_0x29c05e[_0x124df5('0x1d')])),'headers':{'Authorization':_0x124df5('0x31')+_0x422281,'OData-Version':_0x124df5('0x21')},'json':!![],'resolveWithFullResponse':!![]}),_0x29c05e['ticketType']===_0x124df5('0x1f')&&(_0x3c0e24={'method':_0x124df5('0x43'),'uri':_0x53a130+'phonecalls','body':Object[_0x124df5('0x4a')]({},{'subject':intUtil[_0x124df5('0x22')](_0x29c05e[_0x124df5('0x12')],_0x563901,'\x20'),'phonenumber':String(_0x563901[_0x124df5('0x50')]),'description':intUtil[_0x124df5('0x22')](_0x29c05e['Descriptions'],_0x563901,'\x0a'),'regardingobjectid_contact@odata.bind':_0x124df5('0x3f')+_0x28f712[_0x124df5('0x2c')]+')','ownerid@odata.bind':_0x124df5('0x35')+_0x28f712[_0x124df5('0xf')]+')','directioncode':_0x28f712[_0x124df5('0x38')]==='queue'?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0x124df5('0x35')+_0x28f712['userId']+')','participationtypemask':_0x28f712[_0x124df5('0x38')]===_0x124df5('0xe')?0x2:0x1},{'partyid_contact@odata.bind':_0x124df5('0x3f')+_0x28f712['enduserId']+')','participationtypemask':_0x28f712[_0x124df5('0x38')]===_0x124df5('0xe')?0x1:0x2}]},getCustomFields(_0x29c05e[_0x124df5('0x2a')],_0x563901,_0x29c05e[_0x124df5('0x1d')])),'headers':{'Authorization':_0x124df5('0x31')+_0x422281,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x3c0e24);})['then'](function(_0x48a2b6){const _0xe50b44=_0x552f55,_0x9e88bc=_0x48a2b6[_0xe50b44('0x30')][_0xe50b44('0x1c')],_0x179289=_0x9e88bc['substring'](_0x9e88bc[_0xe50b44('0x45')]('(')+0x1,_0x9e88bc[_0xe50b44('0x45')](')'));_0x28f712['ticketId']=_0x179289,_0x2af464(_0x28f712);})['catch'](function(_0xa2e822){const _0x2f5d90=_0x552f55;_0x3c8e31(_0xa2e822[_0x2f5d90('0x0')]);});});}function emit(_0x48eb81,_0x37b602,_0x284d7d,_0x334bc8){const _0x1f13e6=_0x4a6fad,_0x4540db={'uri':util[_0x1f13e6('0x37')](_0x1f13e6('0x59'),_0x48eb81,_0x284d7d,_0x334bc8)};io['to'](util[_0x1f13e6('0x37')]('user:%s',_0x37b602))[_0x1f13e6('0x53')](_0x1f13e6('0x7'),_0x4540db);}exports['cs']=function(_0x3f8e79,_0x4b1d2d,_0x547166,_0x5b6f2f,_0x33d0ea,_0x5ed498,_0x2f222b,_0x29f82e){const _0xda73b2=_0x4a6fad,_0x22bdaf={};_0x5ed498[_0xda73b2('0x48')]=intUtil[_0xda73b2('0x3a')](_0x5ed498[_0xda73b2('0x48')]),_0x5ed498[_0xda73b2('0x3c')]=intUtil['stripTrailingSlash'](_0x5ed498[_0xda73b2('0x3c')]),_0x22bdaf['callDirection']=_0x29f82e===_0xda73b2('0xe')||_0x29f82e==='unmanaged'?'queue':'outbound';const _0x55a40d=util[_0xda73b2('0x37')](_0xda73b2('0x39'),_0x5ed498[_0xda73b2('0x48')]),_0x197cf3=util[_0xda73b2('0x37')](_0xda73b2('0x8'),_0x5ed498['tenantId']),_0x65eb1e=util[_0xda73b2('0x37')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x5ed498[_0xda73b2('0x3c')],_0x4b1d2d[_0xda73b2('0x1')],md5(_0x4b1d2d[_0xda73b2('0x1')]));if(_0x33d0ea&&_0x33d0ea[_0xda73b2('0x56')])logger[_0xda73b2('0x14')](_0xda73b2('0x18'),_0xda73b2('0xa')),_0x4b1d2d[_0xda73b2('0x52')]=_0x65eb1e;else _0x2f222b&&_0x2f222b[_0xda73b2('0x2b')]&&_0x2f222b[_0xda73b2('0x2b')]!==_0xda73b2('0x11')?(logger[_0xda73b2('0x14')](_0xda73b2('0x4e'),'Recording\x20is\x20enabled!'),_0x4b1d2d[_0xda73b2('0x52')]=_0x65eb1e):_0x4b1d2d[_0xda73b2('0x52')]='';return getUser(_0x22bdaf,_0x5ed498,_0x5b6f2f,_0x197cf3,_0x55a40d,_0x29f82e)[_0xda73b2('0x1a')](function(_0x3fcd2b){const _0x2d8a6a=_0xda73b2;return logger[_0x2d8a6a('0x14')]('['+_0x29f82e['toUpperCase']()+_0x2d8a6a('0x29'),_0x3fcd2b[_0x2d8a6a('0xf')]),logger[_0x2d8a6a('0x14')]('['+_0x29f82e['toUpperCase']()+']\x20The\x20User\x20email\x20is:',_0x3fcd2b[_0x2d8a6a('0x4c')]),getEndUser(_0x3fcd2b,_0x5ed498,_0x197cf3,_0x55a40d,_0x4b1d2d,_0x29f82e);})[_0xda73b2('0x1a')](function(_0xcd980f){const _0x2a06b7=_0xda73b2;return logger['info']('['+_0x29f82e[_0x2a06b7('0x49')]()+']\x20The\x20Enduser\x20ID\x20is:',_0xcd980f[_0x2a06b7('0x2c')]),logger[_0x2a06b7('0x14')]('['+_0x29f82e[_0x2a06b7('0x49')]()+_0x2a06b7('0x4b'),_0x4b1d2d['calleridnum']),getTicket(_0xcd980f,_0x5ed498,_0x197cf3,_0x55a40d,_0x4b1d2d,_0x547166,_0x29f82e);})['then'](function(_0x4cf4ff){const _0xa9dbe4=_0xda73b2;logger[_0xa9dbe4('0x14')](util[_0xa9dbe4('0x37')]('['+_0x29f82e['toUpperCase']()+']\x20The\x20%s\x20ID\x20is:\x20%s',_0x547166['ticketType'],_0x4cf4ff[_0xa9dbe4('0x42')])),logger[_0xa9dbe4('0x14')](util[_0xa9dbe4('0x37')]('['+_0x29f82e[_0xa9dbe4('0x49')]()+_0xa9dbe4('0x32'),_0x29f82e)),_0x29f82e!==_0xa9dbe4('0x3')&&(logger['info']('['+_0x29f82e[_0xa9dbe4('0x49')]()+']',_0xa9dbe4('0x4')),emit(_0x5ed498['remoteUri'],_0x5b6f2f[_0xa9dbe4('0x55')],_0x547166[_0xa9dbe4('0x1d')],_0x4cf4ff[_0xa9dbe4('0x42')]));})[_0xda73b2('0xc')](function(_0x345f8b){const _0x84d8f=_0xda73b2;logger['error']('['+_0x29f82e[_0x84d8f('0x49')]()+_0x84d8f('0xb'),util['inspect'](_0x345f8b,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/freshdesk.js b/server/services/ami/trigger/integration/freshdesk.js index b2aac86..6d6b571 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1137_0x1ae1=['customVariable','customField','[QUEUE]','Tags','queue','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','%s/helpdesk/tickets/%d','none','Authorization','The\x20User\x20ID\x20is:','Enduser\x20created.','%s/api/v2/agents/me','contact','custom_fields','calleridname','toLowerCase','push','string','forEach','md5','debug','%s/api/v2/agents','format','email','mapValues','serverUrl','destcalleridname','value','
','Searching\x20enduser\x20with\x20phone','Variable','name','Recording\x20is\x20enabled!','remoteUri','%s/api/v2/contacts','toString','request-promise-native','map','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','Agent\x20found!','freshdesk','Subjects','type','trigger:browser:url','stripTrailingSlash','Descriptions','[OUTBOUND]','The\x20Enduser\x20ID\x20is:','recordingURL','emit','getString','[HTTP]','Ticket\x20created!','idField','outbound','catch','recordingFormat','Creating\x20new\x20ticket...','from','./util','length','user:%s','../../../../rediscache','lastevent','Fields','defaults','variableName','keyBy','content','Basic\x20%s','validateEmail','calleridnum','find','Enduser\x20found!','util','POST','destcalleridnum','stringify','base64','toUpperCase','info','The\x20Ticket\x20ID\x20is:','error','nameField','monitor_format','application/json','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','merge','then','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','../../../../config/logger','GET','uniqueid','Admin\x20account\x20selected.'];(function(_0x5bf51d,_0x1ae1d7){const _0x4ca7b5=function(_0x1ee5c1){while(--_0x1ee5c1){_0x5bf51d['push'](_0x5bf51d['shift']());}};_0x4ca7b5(++_0x1ae1d7);}(a1137_0x1ae1,0xcc));const a1137_0x4ca7=function(_0x5bf51d,_0x1ae1d7){_0x5bf51d=_0x5bf51d-0x0;let _0x4ca7b5=a1137_0x1ae1[_0x5bf51d];return _0x4ca7b5;};const _0x5ab2ce=a1137_0x4ca7;'use strict';const _=require('lodash'),rp=require(_0x5ab2ce('0x14')),md5=require(_0x5ab2ce('0x3')),util=require(_0x5ab2ce('0x3a')),intUtil=require(_0x5ab2ce('0x2b')),logger=require(_0x5ab2ce('0x4a'))(_0x5ab2ce('0x18')),{getSocket}=require(_0x5ab2ce('0x2e')),io=getSocket(),headers={'Content-Type':_0x5ab2ce('0x45'),'Accept':_0x5ab2ce('0x45')};function emit(_0x1ee5c1,_0x34e76d,_0x1b7ec8){const _0x2c0e8c=_0x5ab2ce;io['to'](_0x1ee5c1)[_0x2c0e8c('0x21')](_0x34e76d,_0x1b7ec8);}function getTicket(_0x220c69,_0x3c845c,_0x86edf7,_0x51c4ed,_0x2d6f5c){const _0x30d838=_0x5ab2ce;logger[_0x30d838('0x40')](_0x30d838('0x29'));const _0x330593=_[_0x30d838('0x47')]({'responder_id':_0x3c845c['id'],'requester_id':_0x86edf7['id'],'name':util['format']('Caller\x20-\x20%s',_0x2d6f5c['calleridname']),'phone':_0x2d6f5c[_0x30d838('0x37')],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x30d838('0x22')](_0x51c4ed[_0x30d838('0x19')],_0x2d6f5c,'\x20'),'description':intUtil['getString'](_0x51c4ed[_0x30d838('0x1d')],_0x2d6f5c,_0x30d838('0xc')),'tags':getTags(_0x51c4ed[_0x30d838('0x51')],'name')},getCustomFields(_0x51c4ed[_0x30d838('0x30')],_0x2d6f5c));return _0x330593[_0x30d838('0x5b')]=_[_0x30d838('0x8')](_[_0x30d838('0x33')](_0x330593[_0x30d838('0x5b')],'id'),_0x30d838('0xb')),request({'uri':util[_0x30d838('0x6')]('%s/api/v2/tickets',_0x220c69[_0x30d838('0x11')]),'method':_0x30d838('0x3b'),'body':_0x330593})['then'](function(_0x42d9b0){const _0x2943fb=_0x30d838;return logger['info'](_0x2943fb('0x24')),_0x42d9b0;});}function getUser(_0x3a332a,_0x2ca378){const _0x29ab89=_0x5ab2ce;return intUtil[_0x29ab89('0x36')](_0x2ca378)?request({'uri':util['format'](_0x29ab89('0x5'),_0x3a332a[_0x29ab89('0x11')]),'qs':{'email':_0x2ca378}})[_0x29ab89('0x48')](function(_0x3a633a){const _0x223e53=_0x29ab89;return _0x3a633a['length']?(logger[_0x223e53('0x40')](_0x223e53('0x17')),_[_0x223e53('0x38')](_0x3a633a,function(_0x57deb6){const _0x4ce1e4=_0x223e53;return _0x57deb6[_0x4ce1e4('0x5a')][_0x4ce1e4('0x7')]===_0x2ca378;})):(logger[_0x223e53('0x40')](_0x223e53('0x46')),request({'uri':util[_0x223e53('0x6')](_0x223e53('0x59'),_0x3a332a[_0x223e53('0x11')])})[_0x223e53('0x48')](function(_0x163c23){const _0x4f10eb=_0x223e53;return logger[_0x4f10eb('0x40')](_0x4f10eb('0x4d')),_0x163c23;}));}):(logger['info'](_0x29ab89('0x16')),request({'uri':util[_0x29ab89('0x6')](_0x29ab89('0x59'),_0x3a332a[_0x29ab89('0x11')])})['then'](function(_0x37c572){const _0xb241ed=_0x29ab89;return logger[_0xb241ed('0x40')](_0xb241ed('0x4d')),_0x37c572;}));}function getEndUser(_0x26eb13,_0x218d08,_0x253313){const _0x57b4be=_0x5ab2ce;return logger[_0x57b4be('0x40')](_0x57b4be('0xd'),_0x253313),request({'uri':util[_0x57b4be('0x6')](_0x57b4be('0x12'),_0x26eb13[_0x57b4be('0x11')]),'qs':{'phone':_0x253313}})['then'](function(_0x39dbdd){const _0x52672d=_0x57b4be;return _0x39dbdd['length']?(logger[_0x52672d('0x40')](_0x52672d('0x39')),_[_0x52672d('0x38')](_0x39dbdd,{'phone':_0x253313})):(logger[_0x52672d('0x40')](_0x52672d('0x53')),request({'uri':util[_0x52672d('0x6')](_0x52672d('0x12'),_0x26eb13[_0x52672d('0x11')]),'method':_0x52672d('0x3b'),'body':{'name':_0x218d08,'phone':_0x253313}})[_0x52672d('0x48')](function(_0x8f3a1e){const _0x3ec9ea=_0x52672d;return logger[_0x3ec9ea('0x40')](_0x3ec9ea('0x58')),_0x8f3a1e;}));});}function getAuth(_0x3832a6){const _0x5bfd90=_0x5ab2ce;return util[_0x5bfd90('0x6')](_0x5bfd90('0x35'),Buffer[_0x5bfd90('0x2a')](_0x3832a6['apiKey']+':X')[_0x5bfd90('0x13')](_0x5bfd90('0x3e')));}function request(_0x14e113){const _0x4f1e96=_0x5ab2ce;return logger[_0x4f1e96('0x4')](_0x4f1e96('0x23'),JSON[_0x4f1e96('0x3d')](_0x14e113)),rp(_[_0x4f1e96('0x31')](_0x14e113,{'method':_0x4f1e96('0x4b'),'headers':headers,'json':!![]}));}function getTags(_0x4ff3f2,_0x7d4924){const _0x480785=_0x5ab2ce;let _0x1bf18a=[];return _0x4ff3f2&&_0x4ff3f2[_0x480785('0x2c')]>0x0&&(_0x1bf18a=_[_0x480785('0x15')](_0x4ff3f2,_0x7d4924)),_0x1bf18a;}function getCustomFields(_0x318158,_0x1988b6){const _0x3f8f89=_0x5ab2ce,_0x1d7444={'custom_fields':[]};return _0x318158[_0x3f8f89('0x2c')]>0x0&&_[_0x3f8f89('0x2')](_0x318158,function(_0xbd8bc9){const _0x380535=_0x3f8f89;if(_0xbd8bc9[_0x380535('0x1a')]===_0x380535('0x1')&&_0xbd8bc9[_0x380535('0x43')]&&!_0xbd8bc9[_0x380535('0x4f')])_0x1d7444[_0xbd8bc9[_0x380535('0x43')][_0x380535('0x5d')]()]=_0xbd8bc9[_0x380535('0x34')][_0x380535('0x13')]();else{if(_0xbd8bc9[_0x380535('0x1a')]===_0x380535('0x1')&&_0xbd8bc9[_0x380535('0x25')]&&_0xbd8bc9[_0x380535('0x4f')])_0x1d7444['custom_fields'][_0x380535('0x0')]({'id':_0xbd8bc9[_0x380535('0x25')],'value':_0xbd8bc9[_0x380535('0x34')][_0x380535('0x13')]()});else{if(_0xbd8bc9[_0x380535('0x1a')]==='variable'&&_0xbd8bc9[_0x380535('0x32')]&&_0xbd8bc9[_0x380535('0x25')]&&_0xbd8bc9[_0x380535('0x4f')])_0x1988b6[_0xbd8bc9['variableName']]&&_0x1d7444['custom_fields'][_0x380535('0x0')]({'id':_0xbd8bc9[_0x380535('0x25')],'value':_0x1988b6[_0xbd8bc9[_0x380535('0x32')]][_0x380535('0x13')]()});else _0xbd8bc9['type']===_0x380535('0x4e')&&_0xbd8bc9['Variable']&&_0xbd8bc9[_0x380535('0xe')]['name']&&_0xbd8bc9['idField']&&_0xbd8bc9[_0x380535('0x4f')]&&(_0x1988b6[_0xbd8bc9['Variable'][_0x380535('0xf')][_0x380535('0x5d')]()]&&_0x1d7444[_0x380535('0x5b')][_0x380535('0x0')]({'id':_0xbd8bc9[_0x380535('0x25')],'value':_0x1988b6[_0xbd8bc9[_0x380535('0xe')][_0x380535('0xf')][_0x380535('0x5d')]()][_0x380535('0x13')]()}));}}}),_0x1d7444;}exports[_0x5ab2ce('0x52')]=function(_0x3e7d47,_0x2f889e,_0x371152,_0x15b5bf,_0x4d3267,_0x30f65d){const _0x515340=_0x5ab2ce;let _0x34fc7e,_0x3f4a6b;return _0x30f65d[_0x515340('0x11')]=intUtil[_0x515340('0x1c')](_0x30f65d[_0x515340('0x11')]),_0x30f65d[_0x515340('0x9')]=intUtil[_0x515340('0x1c')](_0x30f65d[_0x515340('0x9')]),_0x4d3267&&_0x4d3267[_0x515340('0x44')]?(logger[_0x515340('0x40')](_0x515340('0x50'),'Recording\x20is\x20enabled!'),_0x2f889e[_0x515340('0x20')]=util[_0x515340('0x6')](_0x515340('0x49'),_0x30f65d['serverUrl'],_0x2f889e['uniqueid'],md5(_0x2f889e['uniqueid']))):_0x2f889e[_0x515340('0x20')]='',headers[_0x515340('0x56')]=getAuth(_0x30f65d),getUser(_0x30f65d,_0x15b5bf[_0x515340('0x7')])[_0x515340('0x48')](function(_0x52a6f7){const _0x509644=_0x515340;return _0x34fc7e=_0x52a6f7,logger[_0x509644('0x40')](_0x509644('0x57'),_0x34fc7e['id']),getEndUser(_0x30f65d,_0x2f889e[_0x509644('0x5c')],_0x2f889e['calleridnum']);})[_0x515340('0x48')](function(_0x16377f){const _0x3ca838=_0x515340;return _0x3f4a6b=_0x16377f,logger[_0x3ca838('0x40')](_0x3ca838('0x1f'),_0x3f4a6b['id']),getTicket(_0x30f65d,_0x34fc7e,_0x3f4a6b,_0x371152,_0x2f889e);})[_0x515340('0x48')](function(_0x335e08){const _0x2f1be9=_0x515340;_0x335e08&&_0x335e08['id']&&(logger['info'](_0x2f1be9('0x24')),logger[_0x2f1be9('0x40')](_0x2f1be9('0x41'),_0x335e08['id']),logger[_0x2f1be9('0x40')](_0x2f1be9('0x50'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x2f1be9('0x6')](_0x2f1be9('0x2d'),_0x15b5bf[_0x2f1be9('0xf')]),_0x2f1be9('0x1b'),{'uri':util[_0x2f1be9('0x6')](_0x2f1be9('0x54'),_0x30f65d['remoteUri'],_0x335e08['id'])}));})[_0x515340('0x27')](function(_0x45fdde){const _0xa18afe=_0x515340;logger['error'](_0xa18afe('0x50'),JSON[_0xa18afe('0x3d')](_0x45fdde));});},exports[_0x5ab2ce('0x26')]=function(_0x16b6d1,_0x4774c5,_0x1b37b0,_0x1b2698,_0x963165,_0x1d2b34,_0x8e6079){const _0x1783db=_0x5ab2ce;let _0x1484c9,_0x3a43bf;return _0x1d2b34[_0x1783db('0x11')]=intUtil[_0x1783db('0x1c')](_0x1d2b34['remoteUri']),_0x1d2b34[_0x1783db('0x9')]=intUtil['stripTrailingSlash'](_0x1d2b34['serverUrl']),_0x8e6079&&_0x8e6079[_0x1783db('0x28')]&&_0x8e6079[_0x1783db('0x28')]!==_0x1783db('0x55')&&(logger[_0x1783db('0x40')](_0x1783db('0x1e'),_0x1783db('0x10')),_0x4774c5[_0x1783db('0x20')]=util[_0x1783db('0x6')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x1d2b34['serverUrl'],_0x4774c5[_0x1783db('0x4c')],md5(_0x4774c5[_0x1783db('0x4c')]))),headers[_0x1783db('0x56')]=getAuth(_0x1d2b34),getUser(_0x1d2b34,_0x1b2698[_0x1783db('0x7')])['then'](function(_0x1b45d7){const _0x42180d=_0x1783db;return _0x1484c9=_0x1b45d7,logger[_0x42180d('0x40')]('The\x20User\x20ID\x20is:',_0x1484c9['id']),getEndUser(_0x1d2b34,_0x4774c5[_0x42180d('0xa')],_0x4774c5[_0x42180d('0x3c')]);})[_0x1783db('0x48')](function(_0x5ce479){const _0xa12475=_0x1783db;return _0x3a43bf=_0x5ce479,logger[_0xa12475('0x40')]('The\x20Enduser\x20ID\x20is:',_0x3a43bf['id']),getTicket(_0x1d2b34,_0x1484c9,_0x3a43bf,_0x1b37b0,_0x4774c5);})[_0x1783db('0x48')](function(_0x404078){const _0x46c4d7=_0x1783db;_0x404078&&_0x404078['id']&&(logger[_0x46c4d7('0x40')](_0x46c4d7('0x24')),logger[_0x46c4d7('0x40')](_0x46c4d7('0x41'),_0x404078['id']),logger[_0x46c4d7('0x40')]('[OUTBOUND]','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x46c4d7('0x6')](_0x46c4d7('0x2d'),_0x1b2698[_0x46c4d7('0xf')]),_0x46c4d7('0x1b'),{'uri':util[_0x46c4d7('0x6')]('%s/helpdesk/tickets/%d',_0x1d2b34[_0x46c4d7('0x11')],_0x404078['id'])}));})[_0x1783db('0x27')](function(_0x433da5){const _0x15037a=_0x1783db;logger[_0x15037a('0x42')](_0x15037a('0x1e'),JSON[_0x15037a('0x3d')](_0x433da5));});},exports['unmanaged']=function(_0x234bf0,_0x3a4c90,_0x248342,_0x43a1b6,_0x254a57,_0x104f7e){const _0x5ce7f1=_0x5ab2ce;let _0x2b055c,_0x1841e4;return _0x104f7e['remoteUri']=intUtil[_0x5ce7f1('0x1c')](_0x104f7e['remoteUri']),_0x104f7e[_0x5ce7f1('0x9')]=intUtil['stripTrailingSlash'](_0x104f7e['serverUrl']),_0x254a57&&_0x254a57[_0x5ce7f1('0x44')]?(logger['info']('['+_0x3a4c90[_0x5ce7f1('0x2f')][_0x5ce7f1('0x3f')]()+']',_0x5ce7f1('0x10')),_0x3a4c90[_0x5ce7f1('0x20')]=util[_0x5ce7f1('0x6')](_0x5ce7f1('0x49'),_0x104f7e[_0x5ce7f1('0x9')],_0x3a4c90[_0x5ce7f1('0x4c')],md5(_0x3a4c90['uniqueid']))):_0x3a4c90[_0x5ce7f1('0x20')]='',headers['Authorization']=getAuth(_0x104f7e),getUser(_0x104f7e,'')[_0x5ce7f1('0x48')](function(_0x2c04c4){const _0x1b7b54=_0x5ce7f1;return _0x2b055c=_0x2c04c4,logger[_0x1b7b54('0x40')](_0x1b7b54('0x57'),_0x2b055c['id']),getEndUser(_0x104f7e,_0x3a4c90['calleridname'],_0x3a4c90[_0x1b7b54('0x37')]);})[_0x5ce7f1('0x48')](function(_0x4c78ec){const _0x257156=_0x5ce7f1;return _0x1841e4=_0x4c78ec,logger[_0x257156('0x40')](_0x257156('0x1f'),_0x1841e4['id']),getTicket(_0x104f7e,_0x2b055c,_0x1841e4,_0x248342,_0x3a4c90);})[_0x5ce7f1('0x48')](function(_0x366672){const _0x9cb5e0=_0x5ce7f1;_0x366672&&(logger[_0x9cb5e0('0x40')](_0x9cb5e0('0x24')),logger['info'](_0x9cb5e0('0x41'),_0x366672['id']));})[_0x5ce7f1('0x27')](function(_0x5eae30){const _0x16fde3=_0x5ce7f1;logger[_0x16fde3('0x42')]('['+_0x3a4c90[_0x16fde3('0x2f')][_0x16fde3('0x3f')]()+']',JSON[_0x16fde3('0x3d')](_0x5eae30));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/freshsales.js b/server/services/ami/trigger/integration/freshsales.js index 7cb69e8..041e4ab 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1138_0x4f0e=['Admin\x20selected','name','Creating\x20new\x20task','contactNumber','Searching\x20contact\x20with\x20phone','../../../../config/logger','error','Displaying\x20task\x20in\x20a\x20new\x20tab...','remoteUri','serverUrl','message','uniqueid','catch','forEach','Recording\x20is\x20enabled!','Contact\x20created:','queue','/api/tasks','userEmail','info','lodash','headers','Contact\x20found:','endUserId','/api/contacts','toUpperCase','./util','toLowerCase','length','/api/contacts/filters','moment','Getting\x20contact\x20list','find','outbound','email','Subjects','getString','emit','calleridnum','contact','agentEmail','then','unmanaged','Getting\x20user\x20with\x20email','[OUTBOUND]','YYYY-MM-DDTHH:mm:ss','contacts','recordingURL','All\x20Contacts','user:%s','/contacts/','Getting\x20user\x20list','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Getting\x20admin\x20information','GET','Admin\x20found:','recordingFormat','request-promise-native','md5','/api/selector/owners','users','username','Requested\x20Resource\x20not\x20Found','work_number',']\x20Error\x20running\x20Freshsales\x20integration','ticketId','stripTrailingSlash','adminId','freshsales','Getting\x20contacts\x20filter','format','mobile_number','trigger:browser:url','adminEmail','userId','POST','[QUEUE]','The\x20ticket\x20ID\x20is:\x20%s','/api/contacts/view/','Task\x20created:'];(function(_0x32ea91,_0x4f0e8d){const _0x4f54d5=function(_0x3de9dc){while(--_0x3de9dc){_0x32ea91['push'](_0x32ea91['shift']());}};_0x4f54d5(++_0x4f0e8d);}(a1138_0x4f0e,0x79));const a1138_0x4f54=function(_0x32ea91,_0x4f0e8d){_0x32ea91=_0x32ea91-0x0;let _0x4f54d5=a1138_0x4f0e[_0x32ea91];return _0x4f54d5;};const _0x5abd45=a1138_0x4f54;'use strict';const _=require(_0x5abd45('0x3b')),rp=require(_0x5abd45('0x10')),md5=require(_0x5abd45('0x11')),util=require('util'),moment=require(_0x5abd45('0x45')),intUtil=require(_0x5abd45('0x41')),logger=require(_0x5abd45('0x2c'))(_0x5abd45('0x1b')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminId(_0x3de9dc,_0x3faabf,_0x4639b5,_0x89e9e3){return new Promise(function(_0x6b88d5,_0x5c9596){const _0x55be78=a1138_0x4f54;let _0x9f2fb2=![];const _0x41f3ab={'method':_0x55be78('0xd'),'uri':_0x89e9e3+'/api/selector/owners','json':!![]};return _0x41f3ab[_0x55be78('0x3c')]=_0x4639b5,logger[_0x55be78('0x3a')](_0x55be78('0xc')),rp(_0x41f3ab)[_0x55be78('0x0')](function(_0x3ab640){const _0x17d6a5=_0x55be78;if(_0x3ab640){const _0x38ba06=_0x3ab640[_0x17d6a5('0x13')];let _0x2869c6=null;for(_0x2869c6=0x0;_0x2869c6<_0x38ba06['length'];_0x2869c6++){_0x38ba06[_0x2869c6]['email']===_0x3de9dc[_0x17d6a5('0x20')]&&(_0x3de9dc['adminId']=_0x38ba06[_0x2869c6]['id'],_0x9f2fb2=!![]);}_0x9f2fb2?(logger[_0x17d6a5('0x3a')](_0x17d6a5('0xe'),_0x3de9dc[_0x17d6a5('0x1a')]),_0x6b88d5(_0x3de9dc)):_0x5c9596({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x5c9596({'statusCode':0x194,'message':_0x17d6a5('0x15')});})[_0x55be78('0x33')](function(_0x1efb38){const _0x469873=_0x55be78;logger['error']('['+[_0x3faabf['toUpperCase']()]+']',_0x1efb38[_0x469873('0x31')]),_0x5c9596(_0x1efb38);});});}function getUser(_0x24584f,_0x441aa2,_0x304fbe){return function(_0x56b0b2){return new Promise(function(_0x46ce8f,_0x24daa4){const _0x5e45fb=a1138_0x4f54,_0x4bc882={'method':_0x5e45fb('0xd'),'uri':_0x304fbe+_0x5e45fb('0x12'),'json':!![]};return _0x4bc882[_0x5e45fb('0x3c')]=_0x441aa2,logger[_0x5e45fb('0x3a')](_0x5e45fb('0xa')),rp(_0x4bc882)[_0x5e45fb('0x0')](function(_0x4c4dfa){const _0x3bb06e=_0x5e45fb;if(_0x4c4dfa){const _0x3214a8=_0x4c4dfa[_0x3bb06e('0x13')];let _0x2af857=![],_0x3c9b14=null;if(_0x56b0b2[_0x3bb06e('0x4f')]!==null){logger[_0x3bb06e('0x3a')](_0x3bb06e('0x2'),_0x56b0b2[_0x3bb06e('0x4f')]),_0x56b0b2[_0x3bb06e('0x39')]=_0x56b0b2['agentEmail'];for(_0x3c9b14=0x0;_0x3c9b14<_0x3214a8[_0x3bb06e('0x43')];_0x3c9b14++){_0x3214a8[_0x3c9b14]['email']===_0x56b0b2[_0x3bb06e('0x4f')]&&(_0x2af857=!![],_0x56b0b2['userId']=_0x3214a8[_0x3c9b14]['id'],logger[_0x3bb06e('0x3a')]('User\x20found:',_0x56b0b2[_0x3bb06e('0x21')]));}}!_0x2af857&&(logger[_0x3bb06e('0x3a')](_0x3bb06e('0x27')),_0x56b0b2[_0x3bb06e('0x39')]=_0x56b0b2['adminEmail'],_0x56b0b2['userId']=_0x56b0b2[_0x3bb06e('0x1a')],_0x2af857=!![]),_0x2af857?_0x46ce8f(_0x56b0b2):_0x24daa4({'statusCode':0x194,'message':_0x3bb06e('0x15')});}else _0x24daa4({'statusCode':0x194,'message':_0x3bb06e('0x15')});})[_0x5e45fb('0x33')](function(_0x31648c){const _0x3214f2=_0x5e45fb;logger[_0x3214f2('0x2d')]('['+[_0x24584f[_0x3214f2('0x40')]()]+']',_0x31648c['message']),_0x24daa4(_0x31648c);});});};}function getEndUser(_0x5b27e6,_0x7b8481,_0x418878){return function(_0x481097){return new Promise(function(_0x4620a0){const _0x4852c2=a1138_0x4f54;let _0x36f613=0x0;const _0x5ef821={'method':'GET','uri':_0x418878+_0x4852c2('0x44'),'json':!![]};return _0x5ef821['headers']=_0x7b8481,logger[_0x4852c2('0x3a')](_0x4852c2('0x1c')),rp(_0x5ef821)['then'](function(_0x10e9a9){const _0xbd4f88=_0x4852c2;_0x10e9a9['filters'][_0xbd4f88('0x34')](function(_0x1bb74d){const _0x3d0ed8=_0xbd4f88;_0x1bb74d[_0x3d0ed8('0x28')]===_0x3d0ed8('0x7')&&(_0x36f613=_0x1bb74d['id']);});})['then'](function(){const _0x3c032d=_0x4852c2;logger['info'](_0x3c032d('0x46'));const _0xd85c70={'method':_0x3c032d('0xd'),'uri':_0x418878+_0x3c032d('0x25')+_0x36f613,'json':!![]};return _0xd85c70[_0x3c032d('0x3c')]=_0x7b8481,rp(_0xd85c70);})['then'](function(_0x5d965d){const _0x35dbd9=_0x4852c2;logger['info'](_0x35dbd9('0x2b'),_0x481097[_0x35dbd9('0x2a')]);if(_0x5d965d[_0x35dbd9('0x5')][_0x35dbd9('0x43')]>0x0){const _0x54d0a3=_[_0x35dbd9('0x47')](_0x5d965d['contacts'],function(_0x1ddbc2){const _0x538c1a=_0x35dbd9;if(_0x1ddbc2[_0x538c1a('0x16')]===_0x481097[_0x538c1a('0x2a')]||_0x1ddbc2[_0x538c1a('0x1e')]===_0x481097[_0x538c1a('0x2a')])return _0x1ddbc2;});if(_0x54d0a3)_0x481097[_0x35dbd9('0x3e')]=_0x54d0a3['id'],logger[_0x35dbd9('0x3a')](_0x35dbd9('0x3d'),_0x481097[_0x35dbd9('0x3e')]),_0x4620a0(_0x481097);else return createEndUser(_0x481097,_0x5b27e6,_0x7b8481,_0x418878)[_0x35dbd9('0x0')](function(_0xc0627a){const _0x6674=_0x35dbd9;logger[_0x6674('0x3a')]('Contact\x20created:',_0x481097[_0x6674('0x3e')]),_0x4620a0(_0xc0627a);});}else return createEndUser(_0x481097,_0x5b27e6,_0x7b8481,_0x418878)['then'](function(_0x247f59){const _0x4b8127=_0x35dbd9;logger['info'](_0x4b8127('0x36'),_0x481097['endUserId']),_0x4620a0(_0x247f59);});})['catch'](function(_0x5c4398){const _0xda6d7c=_0x4852c2;throw new Error(_0x5c4398[_0xda6d7c('0x31')]);});});};}function createEndUser(_0x3aaf32,_0x7fd728,_0x1de856,_0x5c8399){return new Promise(function(_0x5629b7,_0x53845f){const _0x1273be=a1138_0x4f54,_0x41eee8=moment(),_0x206630={'method':_0x1273be('0x22'),'uri':_0x5c8399+_0x1273be('0x3f'),'body':{'contact':{'last_name':_0x3aaf32[_0x1273be('0x2a')],'work_number':_0x3aaf32[_0x1273be('0x2a')],'mobile_number':_0x3aaf32['contactNumber'],'owner_id':_0x3aaf32[_0x1273be('0x21')],'created_at':_0x41eee8[_0x1273be('0x1d')](_0x1273be('0x4'))}},'json':!![]};return _0x206630[_0x1273be('0x3c')]=_0x1de856,logger[_0x1273be('0x3a')]('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x206630)[_0x1273be('0x0')](function(_0xe311fb){const _0x983310=_0x1273be;_0x3aaf32['endUserId']=_0xe311fb[_0x983310('0x4e')]['id'],_0x5629b7(_0x3aaf32);})[_0x1273be('0x33')](function(_0x18f66a){const _0x881c8d=_0x1273be;logger[_0x881c8d('0x2d')]('['+[_0x7fd728['toUpperCase']()]+']',_0x18f66a[_0x881c8d('0x31')]),_0x53845f(_0x18f66a[_0x881c8d('0x31')]);});});}function getTicket(_0x26eaea,_0x161014,_0x1dbfa3,_0x38ea74,_0x55c611){return function(_0x48e9c0){const _0x148f19=a1138_0x4f54;return logger[_0x148f19('0x3a')](_0x148f19('0x29')),new Promise(function(_0x1d17dd,_0x50ec60){const _0x1d488c=_0x148f19,_0x426c6e=moment(),_0x1fc269={'method':_0x1d488c('0x22'),'uri':_0x1dbfa3+_0x1d488c('0x38'),'body':{'title':intUtil['getString'](_0x38ea74[_0x1d488c('0x4a')],_0x55c611,'\x20'),'description':intUtil[_0x1d488c('0x4b')](_0x38ea74['Descriptions'],_0x55c611,'\x0a'),'owner_id':_0x48e9c0[_0x1d488c('0x21')],'creater_id':_0x48e9c0[_0x1d488c('0x1a')],'targetable_id':_0x48e9c0[_0x1d488c('0x3e')],'targetable_type':'Contact','created_at':_0x426c6e[_0x1d488c('0x1d')](_0x1d488c('0x4')),'due_date':_0x426c6e['add'](0x1e,'m')['format'](_0x1d488c('0x4'))},'json':!![]};return _0x1fc269[_0x1d488c('0x3c')]=_0x161014,rp(_0x1fc269)['then'](function(_0x5d15ed){const _0x4f245a=_0x1d488c;_0x48e9c0[_0x4f245a('0x18')]=_0x5d15ed['task']['id'],logger[_0x4f245a('0x3a')](_0x4f245a('0x26'),_0x48e9c0['ticketId']),_0x1d17dd(_0x48e9c0);})[_0x1d488c('0x33')](function(_0x132cfe){const _0x1b0535=_0x1d488c;logger[_0x1b0535('0x2d')]('['+[_0x26eaea[_0x1b0535('0x40')]()]+']',_0x132cfe['message']),_0x50ec60(_0x132cfe[_0x1b0535('0x31')]);});});};}function emit(_0x54b113,_0x582ec0,_0x1ba21d){const _0x1f1a38=_0x5abd45,_0x4bf955={'uri':_0x54b113+_0x1f1a38('0x9')+_0x1ba21d};io['to'](util[_0x1f1a38('0x1d')](_0x1f1a38('0x8'),_0x582ec0))[_0x1f1a38('0x4c')](_0x1f1a38('0x1f'),_0x4bf955);}exports['cs']=function(_0x8cf155,_0xb1f1a,_0x1a8a1d,_0x154815,_0x4a17b2,_0x2a01c9,_0x49c9dd,_0x474d28){const _0x4add51=_0x5abd45,_0x1e17e3={},_0x4692cc={'Authorization':'Token\x20token='+_0x2a01c9['apiKey']};_0x2a01c9[_0x4add51('0x2f')]=intUtil['stripTrailingSlash'](_0x2a01c9[_0x4add51('0x2f')]),_0x2a01c9[_0x4add51('0x30')]=intUtil[_0x4add51('0x19')](_0x2a01c9[_0x4add51('0x30')]);const _0x4d3468=_0x2a01c9[_0x4add51('0x2f')];_0x1e17e3[_0x4add51('0x20')]=_0x2a01c9[_0x4add51('0x14')],_0x1e17e3[_0x4add51('0x2a')]=_0x474d28[_0x4add51('0x42')]()===_0x4add51('0x48')?_0xb1f1a['destcalleridnum']:_0xb1f1a[_0x4add51('0x4d')],_0x1e17e3['callDirection']=_0x474d28===_0x4add51('0x37')||_0x474d28===_0x4add51('0x1')?_0x4add51('0x37'):_0x4add51('0x48');_0x154815&&(_0x1e17e3[_0x4add51('0x4f')]=_0x154815[_0x4add51('0x49')]);const _0x5191b0=util[_0x4add51('0x1d')](_0x4add51('0xb'),_0x2a01c9['serverUrl'],_0xb1f1a[_0x4add51('0x32')],md5(_0xb1f1a[_0x4add51('0x32')]));if(_0x4a17b2&&_0x4a17b2['monitor_format'])logger[_0x4add51('0x3a')](_0x4add51('0x23'),'Recording\x20is\x20enabled!'),_0xb1f1a[_0x4add51('0x6')]=_0x5191b0;else _0x49c9dd&&_0x49c9dd[_0x4add51('0xf')]&&_0x49c9dd['recordingFormat']!=='none'?(logger[_0x4add51('0x3a')](_0x4add51('0x3'),_0x4add51('0x35')),_0xb1f1a[_0x4add51('0x6')]=_0x5191b0):_0xb1f1a[_0x4add51('0x6')]='';return getAdminId(_0x1e17e3,_0x474d28,_0x4692cc,_0x4d3468)['then'](getUser(_0x474d28,_0x4692cc,_0x4d3468))[_0x4add51('0x0')](getEndUser(_0x474d28,_0x4692cc,_0x4d3468))[_0x4add51('0x0')](getTicket(_0x474d28,_0x4692cc,_0x4d3468,_0x1a8a1d,_0xb1f1a))[_0x4add51('0x0')](function(_0x202837){const _0x554d44=_0x4add51;logger[_0x554d44('0x3a')](util[_0x554d44('0x1d')](_0x554d44('0x24'),_0x202837[_0x554d44('0x18')])),_0x474d28!==_0x554d44('0x1')&&(logger[_0x554d44('0x3a')]('['+[_0x474d28[_0x554d44('0x40')]()]+']',_0x554d44('0x2e')),emit(_0x4d3468,_0x154815['name'],_0x202837['endUserId']));})[_0x4add51('0x33')](function(_0x30af87){const _0x4a9da2=_0x4add51;logger[_0x4a9da2('0x2d')]('['+[_0x474d28[_0x4a9da2('0x40')]()]+_0x4a9da2('0x17'),util['inspect'](_0x30af87,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/index.js b/server/services/ami/trigger/integration/index.js index 94b23e6..14155b7 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1139_0x1978=['./dynamics365','unknown\x20integration','format','./zoho','freshdesk','sugarcrm','./salesforce','./vtiger','EVENT\x20UNKNOWN','includes','outbound','util','lodash','servicenow','[EXEC]','data3','toLowerCase','zoho','routeId','%s\x20account\x20#%s\x20not\x20found','desk','%s\x20configuration\x20#%s\x20not\x20found','exec','data1','Configurations','./servicenow','log','dynamics365','data2','./sugarcrm','error','./zendesk','freshsales','vtiger','zendesk','salesforce','queue','../../../../config/logger'];(function(_0x40045b,_0x1978d8){const _0x37e814=function(_0x13d631){while(--_0x13d631){_0x40045b['push'](_0x40045b['shift']());}};_0x37e814(++_0x1978d8);}(a1139_0x1978,0x188));const a1139_0x37e8=function(_0x40045b,_0x1978d8){_0x40045b=_0x40045b-0x0;let _0x37e814=a1139_0x1978[_0x40045b];return _0x37e814;};const _0x561063=a1139_0x37e8;'use strict';const _=require(_0x561063('0x0')),util=require(_0x561063('0x25')),zendesk=require(_0x561063('0x13')),salesforce=require(_0x561063('0x20')),sugarcrm=require(_0x561063('0x11')),freshdesk=require('./freshdesk'),zoho=require(_0x561063('0x1d')),desk=require('./desk'),vtiger=require(_0x561063('0x21')),servicenow=require(_0x561063('0xd')),dynamics365=require(_0x561063('0x1a')),freshsales=require('./freshsales'),integrations=[_0x561063('0x16'),'salesforce','sugarcrm',_0x561063('0x1e'),_0x561063('0x5'),'desk',_0x561063('0x15'),_0x561063('0xf'),_0x561063('0x14'),_0x561063('0x1')];exports[_0x561063('0xa')]=function(_0x13d631,_0xbb9b63,_0x233643,_0xa42685,_0x4a25dc,_0x36ea5c){const _0x247347=_0x561063;if(_0x233643){if(_[_0x247347('0x23')](integrations,_0x13d631[_0x247347('0xb')]['toLowerCase']()))try{let _0x4943f3=null,_0x5ad817='';const _0x1b7696=_0x233643[_0x13d631[_0x247347('0xb')][_0x247347('0x4')]()];if(_0x1b7696){const _0x3e2de1=_0x1b7696[_0x13d631[_0x247347('0x10')]];if(_0x3e2de1){const _0x307b71=_['find'](_0x3e2de1[_0x247347('0xc')],{'id':parseInt(_0x13d631['data3'],0xa)});if(_0x307b71){if(_0xa42685){if(_0x4a25dc&&_0xbb9b63['queue'])_0x5ad817=_0x247347('0x18');else _0xbb9b63[_0x247347('0x6')]?_0x5ad817=_0x247347('0x24'):console['log'](_0x247347('0x22'),_0xbb9b63);}else _0x5ad817='unmanaged';switch(_0x13d631[_0x247347('0xb')][_0x247347('0x4')]()){case _0x247347('0x16'):zendesk[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x17'):salesforce[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x1f'):sugarcrm[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x1e'):freshdesk[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x5'):zoho[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x8'):desk[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x15'):vtiger[_0x5ad817](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c);break;case _0x247347('0x14'):freshsales['cs'](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c,_0x5ad817);break;case _0x247347('0x1'):servicenow['cs'](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c,_0x5ad817);break;case'dynamics365':dynamics365['cs'](_0x13d631,_0xbb9b63,_0x307b71,_0xa42685,_0x4a25dc,_0x3e2de1,_0x36ea5c,_0x5ad817);break;default:console[_0x247347('0xe')](_0x247347('0x1b'));}}else _0x4943f3=require(_0x247347('0x19'))(_0x13d631[_0x247347('0xb')][_0x247347('0x4')]()),_0x4943f3[_0x247347('0x12')](_0x247347('0x2'),util[_0x247347('0x1c')](_0x247347('0x9'),_0x13d631[_0x247347('0xb')][_0x247347('0x4')](),_0x13d631[_0x247347('0x3')]));}else _0x4943f3=require('../../../../config/logger')(_0x13d631[_0x247347('0xb')][_0x247347('0x4')]()),_0x4943f3[_0x247347('0x12')](_0x247347('0x2'),util[_0x247347('0x1c')](_0x247347('0x7'),_0x13d631[_0x247347('0xb')][_0x247347('0x4')](),_0x13d631['data2']));}else{}}catch(_0x6af624){console[_0x247347('0x12')](_0x6af624);}}}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/salesforce.js b/server/services/ami/trigger/integration/salesforce.js index f9f6d25..9683bc6 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1140_0x1967=['https://login.salesforce.com','unmanaged',']\x20Integration\x20account\x20type\x20%s.','getString','recordingURL','md5','instanceUrl','contact','Fields','stringify','Variable','lodash','assign','Lead','email','salesforce','remoteUri','identity','Name','[QUEUE]\x20Ticket\x20%s\x20created','find','then','execute','[OUTBOUND]','','stripTrailingSlash','Connection','integrationTab','serverUrl','user_id','sobject','trigger:salesforce:display','moment','monitor_format','concat','create','calleridnum','toUpperCase','format',']\x20Ticket\x20%s\x20created.','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','calleridname','lead','uniqueid','length','WhoId','string','forEach','destcalleridnum','username','Agent\x20%s\x20found.','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','Descriptions','Enduser\x20with\x20phone\x20%s\x20found.','Email','toLowerCase','[QUEUE]','Caller\x20-\x20%s','User','%s/%s/e','ticketType','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','util','outbound','user:%s','display_name','moduleSearch','Connection\x20established.','info','Company','resolve','toString','name','No\x20Company','Salesforce\x20account\x20type\x20not\x20recognized','validateEmail','type','Task','login','error','trigger:browser:url','idField','Recording\x20is\x20enabled!','destcalleridname','Contact','catch','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','Case','variableName','queue','moduleCreate','Subjects','lastevent','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','./util','isNil','recordingFormat'];(function(_0x5b2199,_0x19677e){const _0x4f63a7=function(_0x520319){while(--_0x520319){_0x5b2199['push'](_0x5b2199['shift']());}};_0x4f63a7(++_0x19677e);}(a1140_0x1967,0x188));const a1140_0x4f63=function(_0x5b2199,_0x19677e){_0x5b2199=_0x5b2199-0x0;let _0x4f63a7=a1140_0x1967[_0x5b2199];return _0x4f63a7;};const _0xa9be42=a1140_0x4f63;'use strict';const _=require(_0xa9be42('0x7')),moment=require(_0xa9be42('0x1c')),md5=require(_0xa9be42('0x1')),jsforce=require('jsforce'),util=require(_0xa9be42('0x3a')),intUtil=require(_0xa9be42('0x5a')),logger=require('../../../../config/logger')(_0xa9be42('0xb')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x520319,_0x5a6f93,_0x2a333a){io['to'](_0x520319)['emit'](_0x5a6f93,_0x2a333a);}function getTicket(_0x1b3f9a,_0xdad0b2,_0x50ca7e,_0xc91575,_0x1a8fb5,_0x1f4732,_0x55c8fa){const _0x37f862=_0xa9be42;let _0x28791f={};if(_0xc91575['ticketType']==='Task')_0x28791f=Object[_0x37f862('0x8')]({},{'OwnerId':_0xdad0b2['id'],'ActivityDate':moment['utc'](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x37f862('0x60')](_0xc91575[_0x37f862('0x57')],_0x1a8fb5,'\x20'),'Description':intUtil['getString'](_0xc91575[_0x37f862('0x30')],_0x1a8fb5,'\x0a')},getCustomFields(_0x1f4732,_0x1a8fb5)),_0x50ca7e&&(_0x28791f[_0x37f862('0x29')]=_0x50ca7e['id']);else _0xc91575[_0x37f862('0x38')]===_0x37f862('0x53')&&(_0x28791f=Object[_0x37f862('0x8')]({},{'OwnerId':_0xdad0b2['id'],'Subject':intUtil[_0x37f862('0x60')](_0xc91575[_0x37f862('0x57')],_0x1a8fb5,'\x20'),'Description':intUtil['getString'](_0xc91575['Descriptions'],_0x1a8fb5,'\x0a')},getCustomFields(_0x1f4732,_0x1a8fb5)),_0x50ca7e&&(_0x28791f['ContactId']=_0x50ca7e['id']));return _0x55c8fa[_0x37f862('0x1a')](_0xc91575[_0x37f862('0x38')])['create'](_0x28791f);}function getUser(_0x1457d2,_0xd16684,_0x5587f4){const _0x5c8fe5=_0xa9be42;if(!_[_0x5c8fe5('0x5b')](_0xd16684)&&intUtil[_0x5c8fe5('0x47')](_0xd16684)){const _0x2a005f={'Email':_0xd16684},_0x2bf7ae={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x5587f4[_0x5c8fe5('0x1a')](_0x5c8fe5('0x36'))[_0x5c8fe5('0x10')](_0x2a005f,_0x2bf7ae)[_0x5c8fe5('0x12')]()[_0x5c8fe5('0x11')](function(_0x5b7bf2){const _0x1e0e35=_0x5c8fe5;if(_0x5b7bf2[_0x1e0e35('0x28')]){const _0x5d2735=_['find'](_0x5b7bf2,function(_0x4e2cd7){const _0x59c77e=_0x1e0e35;return _0x4e2cd7[_0x59c77e('0x32')]===_0xd16684;});if(_0x5d2735)return logger['info'](_0x1e0e35('0x2e'),_0xd16684),Promise['resolve']({'id':_0x5d2735['Id'],'name':_0x5d2735[_0x1e0e35('0xe')]});}else return logger[_0x1e0e35('0x40')]('Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.',_0xd16684),_0x5587f4[_0x1e0e35('0xd')]()[_0x1e0e35('0x11')](function(_0x5bd301){const _0x473ba5=_0x1e0e35;return Promise[_0x473ba5('0x42')]({'id':_0x5bd301['user_id'],'name':_0x5bd301[_0x473ba5('0x3d')]});});});}else return logger[_0x5c8fe5('0x40')](_0x5c8fe5('0x52'),_0xd16684),_0x5587f4[_0x5c8fe5('0xd')]()[_0x5c8fe5('0x11')](function(_0x10898f){const _0x379b75=_0x5c8fe5;return Promise[_0x379b75('0x42')]({'id':_0x10898f[_0x379b75('0x19')],'name':_0x10898f[_0x379b75('0x3d')]});});}function getEndUser(_0x3e2f86,_0x7c0ed,_0x4f9cbe,_0x1ea4e0,_0x176a23){const _0x48ba2f=_0xa9be42,_0x1ab3e8={'Phone':_0x1ea4e0},_0x43b97a={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x48ba2f('0x42')]()[_0x48ba2f('0x11')](function(){const _0xff9506=_0x48ba2f;if(_0x7c0ed[_0xff9506('0x38')]===_0xff9506('0x49')){logger[_0xff9506('0x40')](_0xff9506('0x39'),_0x1ea4e0,_0x7c0ed[_0xff9506('0x3e')]);switch(_0x7c0ed[_0xff9506('0x3e')]){case'contact_lead':return _0x176a23[_0xff9506('0x1a')](_0xff9506('0x50'))[_0xff9506('0x10')](_0x1ab3e8,_0x43b97a)['execute']()[_0xff9506('0x11')](function(_0x23c02b){const _0x35b0c3=_0xff9506;return _0x23c02b&&_0x23c02b[_0x35b0c3('0x28')]?_0x23c02b:_0x176a23['sobject'](_0x35b0c3('0x9'))[_0x35b0c3('0x10')](_0x1ab3e8,_0x43b97a);});case _0xff9506('0x3'):return _0x176a23[_0xff9506('0x1a')](_0xff9506('0x50'))[_0xff9506('0x10')](_0x1ab3e8,_0x43b97a)[_0xff9506('0x12')]();case _0xff9506('0x26'):return _0x176a23[_0xff9506('0x1a')]('Lead')['find'](_0x1ab3e8,_0x43b97a);default:return null;}}else{if(_0x7c0ed[_0xff9506('0x38')]===_0xff9506('0x53'))return logger[_0xff9506('0x40')]('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x1ea4e0,'contact'),_0x176a23[_0xff9506('0x1a')](_0xff9506('0x50'))[_0xff9506('0x10')](_0x1ab3e8,_0x43b97a)['execute']();}})[_0x48ba2f('0x11')](function(_0x3917d7){const _0x50381e=_0x48ba2f;if(_0x3917d7&&_0x3917d7[_0x50381e('0x28')]){const _0x3a258f=_[_0x50381e('0x10')](_0x3917d7,function(_0x1851aa){return _0x1851aa['Phone']===_0x1ea4e0;});if(_0x3a258f)return Promise[_0x50381e('0x42')]({'id':_0x3a258f['Id'],'name':_0x3a258f[_0x50381e('0xe')],'phone':_0x3a258f['Phone']});}})['then'](function(_0x434258){const _0x54c2a0=_0x48ba2f;if(_0x434258)return logger[_0x54c2a0('0x40')](_0x54c2a0('0x31'),_0x1ea4e0),Promise[_0x54c2a0('0x42')](_0x434258);else{logger[_0x54c2a0('0x40')]('Enduser\x20with\x20phone\x20%s\x20not\x20found.',_0x1ea4e0);const _0xacc33c={'LastName':_0x4f9cbe!==_0x54c2a0('0x14')?_0x4f9cbe:util[_0x54c2a0('0x22')](_0x54c2a0('0x35'),_0x1ea4e0),'Phone':_0x1ea4e0};if(_0x7c0ed[_0x54c2a0('0x56')]){if(_0x7c0ed[_0x54c2a0('0x56')]===_0x54c2a0('0x3'))logger[_0x54c2a0('0x40')]('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x1ea4e0,_0x7c0ed[_0x54c2a0('0x56')]);else{if(_0x7c0ed[_0x54c2a0('0x56')]===_0x54c2a0('0x26')&&_0x7c0ed[_0x54c2a0('0x38')]===_0x54c2a0('0x49'))logger['info']('Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.',_0x1ea4e0,_0x7c0ed[_0x54c2a0('0x56')]),_0xacc33c[_0x54c2a0('0x41')]=_0x54c2a0('0x45');else return null;}}return _0x176a23['sobject'](_['upperFirst'](_0x7c0ed[_0x54c2a0('0x56')]))[_0x54c2a0('0x1f')](_0xacc33c);}});}function getCustomFields(_0x5aaae0,_0x5ab846){const _0x2eb2a3=_0xa9be42,_0x1541be={};return _0x5aaae0[_0x2eb2a3('0x28')]>0x0&&_[_0x2eb2a3('0x2b')](_0x5aaae0,function(_0x460bac){const _0x3c36ee=_0x2eb2a3;if(_0x460bac['type']===_0x3c36ee('0x2a')&&_0x460bac[_0x3c36ee('0x4d')])_0x1541be[_0x460bac[_0x3c36ee('0x4d')]]=_0x460bac['content'][_0x3c36ee('0x43')]();else{if(_0x460bac['type']==='variable'&&_0x460bac[_0x3c36ee('0x54')]&&_0x460bac['idField'])_0x5ab846[_0x460bac['variableName']]&&(_0x1541be[_0x460bac[_0x3c36ee('0x4d')]]=_0x5ab846[_0x460bac['variableName']][_0x3c36ee('0x43')]());else _0x460bac[_0x3c36ee('0x48')]==='customVariable'&&_0x460bac[_0x3c36ee('0x6')]&&_0x460bac['Variable'][_0x3c36ee('0x44')]&&_0x460bac[_0x3c36ee('0x4d')]&&(_0x5ab846[_0x460bac[_0x3c36ee('0x6')]['name'][_0x3c36ee('0x33')]()]&&(_0x1541be[_0x460bac['idField']]=_0x5ab846[_0x460bac[_0x3c36ee('0x6')][_0x3c36ee('0x44')][_0x3c36ee('0x33')]()][_0x3c36ee('0x43')]()));}}),_0x1541be;}function getConnection(_0x5f0127){const _0x15d6ec=_0xa9be42,_0x52425f=_0x5f0127['password'][_0x15d6ec('0x1e')](_0x5f0127['securityToken']),_0x551395=new jsforce[(_0x15d6ec('0x16'))]({'oauth2':{'loginUrl':_0x5f0127['remoteUri']||_0x15d6ec('0x5d'),'clientId':_0x5f0127['clientId'],'clientSecret':_0x5f0127['clientSecret']}});return _0x551395[_0x15d6ec('0x4a')](_0x5f0127[_0x15d6ec('0x2d')],_0x52425f)[_0x15d6ec('0x11')](function(){const _0x286329=_0x15d6ec;return logger[_0x286329('0x40')](_0x286329('0x3f')),_0x551395;});}exports['queue']=function(_0x45640f,_0x3b454f,_0x2e4d89,_0x342fc9,_0x5f5890,_0x5ae5ee){const _0x3bd9c4=_0xa9be42;let _0x5217aa,_0x3f1fa6,_0x190bd3,_0x4acce4;return _0x5ae5ee['serverUrl']=intUtil[_0x3bd9c4('0x15')](_0x5ae5ee[_0x3bd9c4('0x18')]),_0x5ae5ee[_0x3bd9c4('0xc')]=intUtil[_0x3bd9c4('0x15')](_0x5ae5ee[_0x3bd9c4('0xc')]),_0x5f5890&&_0x5f5890[_0x3bd9c4('0x1d')]?(logger[_0x3bd9c4('0x40')](_0x3bd9c4('0x34'),'Recording\x20is\x20enabled!'),_0x3b454f[_0x3bd9c4('0x0')]=util[_0x3bd9c4('0x22')](_0x3bd9c4('0x59'),_0x5ae5ee[_0x3bd9c4('0x18')],_0x3b454f[_0x3bd9c4('0x27')],md5(_0x3b454f[_0x3bd9c4('0x27')]))):_0x3b454f[_0x3bd9c4('0x0')]='',getConnection(_0x5ae5ee)[_0x3bd9c4('0x11')](function(_0x3e035d){const _0x2f08d2=_0x3bd9c4;return _0x4acce4=_0x3e035d,getUser(_0x5ae5ee,_0x342fc9[_0x2f08d2('0xa')],_0x4acce4);})[_0x3bd9c4('0x11')](function(_0x4fd9b7){const _0x2883b5=_0x3bd9c4;return _0x5217aa=_0x4fd9b7,getEndUser(_0x5ae5ee,_0x2e4d89,_0x3b454f[_0x2883b5('0x25')],_0x3b454f[_0x2883b5('0x20')],_0x4acce4);})[_0x3bd9c4('0x11')](function(_0x52dddb){const _0x26d667=_0x3bd9c4;return _0x3f1fa6=_0x52dddb,getTicket(_0x5ae5ee,_0x5217aa,_0x3f1fa6,_0x2e4d89,_0x3b454f,_0x2e4d89[_0x26d667('0x4')],_0x4acce4,_0x26d667('0x55'));})[_0x3bd9c4('0x11')](function(_0x1bb5f2){const _0x56d645=_0x3bd9c4;_0x190bd3=_0x1bb5f2,logger['info'](_0x56d645('0xf'),_0x190bd3['id']),logger[_0x56d645('0x40')](_0x56d645('0x2f'),_0x190bd3['id'],_0x342fc9[_0x56d645('0x44')],_0x5ae5ee[_0x56d645('0x48')]);switch(_0x5ae5ee[_0x56d645('0x48')]){case'integrationTab':emit(util['format'](_0x56d645('0x3c'),_0x342fc9['name']),'trigger:salesforce:display',{'recordId':_0x190bd3['id']});break;case'newTab':emit(util[_0x56d645('0x22')](_0x56d645('0x3c'),_0x342fc9[_0x56d645('0x44')]),_0x56d645('0x4c'),{'uri':util[_0x56d645('0x22')](_0x56d645('0x37'),_0x4acce4[_0x56d645('0x2')],_0x190bd3['id'])});break;default:logger['error']('[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.');}})['catch'](function(_0x5f33e4){const _0x28cf54=_0x3bd9c4;logger[_0x28cf54('0x4b')](_0x28cf54('0x34'),JSON['stringify'](_0x5f33e4));});},exports['outbound']=function(_0x6849f6,_0x453335,_0x4aecb5,_0x4b67b3,_0x27212c,_0x19290c,_0x5066fd){const _0x32798e=_0xa9be42;let _0x2eb18d,_0x3db791,_0x596ee5,_0x5e32a2;return _0x19290c['serverUrl']=intUtil[_0x32798e('0x15')](_0x19290c['serverUrl']),_0x19290c['remoteUri']=intUtil[_0x32798e('0x15')](_0x19290c[_0x32798e('0xc')]),_0x5066fd&&_0x5066fd[_0x32798e('0x5c')]&&_0x5066fd['recordingFormat']!=='none'&&(logger[_0x32798e('0x40')](_0x32798e('0x13'),_0x32798e('0x4e')),_0x453335['recordingURL']=util[_0x32798e('0x22')](_0x32798e('0x59'),_0x19290c['serverUrl'],_0x453335[_0x32798e('0x27')],md5(_0x453335['uniqueid']))),getConnection(_0x19290c)[_0x32798e('0x11')](function(_0x1d3d33){return _0x5e32a2=_0x1d3d33,getUser(_0x19290c,_0x4b67b3['email'],_0x5e32a2);})[_0x32798e('0x11')](function(_0x5c1fdf){const _0x133625=_0x32798e;return _0x2eb18d=_0x5c1fdf,getEndUser(_0x19290c,_0x4aecb5,_0x453335[_0x133625('0x4f')],_0x453335[_0x133625('0x2c')],_0x5e32a2);})[_0x32798e('0x11')](function(_0x208505){const _0x92b083=_0x32798e;return _0x3db791=_0x208505,getTicket(_0x19290c,_0x2eb18d,_0x3db791,_0x4aecb5,_0x453335,_0x4aecb5['Fields'],_0x5e32a2,_0x92b083('0x3b'));})[_0x32798e('0x11')](function(_0xcd2955){const _0x5076a8=_0x32798e;_0x596ee5=_0xcd2955,logger[_0x5076a8('0x40')]('[OUTBOUND]\x20Ticket\x20%s\x20created.',_0x596ee5['id']),logger[_0x5076a8('0x40')](_0x5076a8('0x24'),_0x596ee5['id'],_0x4b67b3[_0x5076a8('0x44')],_0x19290c['type']);switch(_0x19290c[_0x5076a8('0x48')]){case _0x5076a8('0x17'):emit(util[_0x5076a8('0x22')](_0x5076a8('0x3c'),_0x4b67b3['name']),_0x5076a8('0x1b'),{'recordId':_0x596ee5['id']});break;case'newTab':emit(util[_0x5076a8('0x22')](_0x5076a8('0x3c'),_0x4b67b3['name']),_0x5076a8('0x4c'),{'uri':util[_0x5076a8('0x22')](_0x5076a8('0x37'),_0x5e32a2[_0x5076a8('0x2')],_0x596ee5['id'])});break;default:logger[_0x5076a8('0x4b')]('[OUTBOUND]',_0x5076a8('0x46'));}})['catch'](function(_0xa57ea5){const _0x4469d5=_0x32798e;logger['error'](_0x4469d5('0x13'),JSON[_0x4469d5('0x5')](_0xa57ea5));});},exports[_0xa9be42('0x5e')]=function(_0x59826a,_0x36ef19,_0x560c36,_0x32ab04,_0x396ec4,_0x204b4f){const _0x2c4983=_0xa9be42;let _0x1dedf7,_0x533526,_0x1a69d6,_0x38d984;return _0x204b4f[_0x2c4983('0x18')]=intUtil[_0x2c4983('0x15')](_0x204b4f[_0x2c4983('0x18')]),_0x204b4f[_0x2c4983('0xc')]=intUtil[_0x2c4983('0x15')](_0x204b4f['remoteUri']),_0x396ec4&&_0x396ec4['monitor_format']?(logger[_0x2c4983('0x40')]('['+_0x36ef19[_0x2c4983('0x58')][_0x2c4983('0x21')]()+']',_0x2c4983('0x4e')),_0x36ef19[_0x2c4983('0x0')]=util[_0x2c4983('0x22')](_0x2c4983('0x59'),_0x204b4f[_0x2c4983('0x18')],_0x36ef19[_0x2c4983('0x27')],md5(_0x36ef19['uniqueid']))):_0x36ef19[_0x2c4983('0x0')]='',getConnection(_0x204b4f)[_0x2c4983('0x11')](function(_0x3bbc89){const _0x29434b=_0x2c4983;return _0x38d984=_0x3bbc89,!_[_0x29434b('0x5b')](_0x32ab04)?getUser(_0x204b4f,_0x32ab04[_0x29434b('0x44')],_0x38d984):getUser(_0x204b4f,null,_0x38d984);})[_0x2c4983('0x11')](function(_0x4aac2e){const _0x125a34=_0x2c4983;return _0x1dedf7=_0x4aac2e,getEndUser(_0x204b4f,_0x560c36,_0x36ef19['calleridname'],_0x36ef19[_0x125a34('0x20')],_0x38d984);})[_0x2c4983('0x11')](function(_0x5ad5b0){const _0x3d1aff=_0x2c4983;return _0x533526=_0x5ad5b0,getTicket(_0x204b4f,_0x1dedf7,_0x533526,_0x560c36,_0x36ef19,_0x560c36[_0x3d1aff('0x4')],_0x38d984);})[_0x2c4983('0x11')](function(_0x50b876){const _0x5f0cda=_0x2c4983;_0x1a69d6=_0x50b876,logger[_0x5f0cda('0x40')]('['+_0x36ef19['lastevent'][_0x5f0cda('0x21')]()+_0x5f0cda('0x23'),_0x1a69d6['id']),logger[_0x5f0cda('0x40')]('['+_0x36ef19['lastevent'][_0x5f0cda('0x21')]()+_0x5f0cda('0x5f'),_0x204b4f[_0x5f0cda('0x48')]);})[_0x2c4983('0x51')](function(_0x20fb98){const _0x4c17e6=_0x2c4983;logger[_0x4c17e6('0x4b')]('['+_0x36ef19[_0x4c17e6('0x58')][_0x4c17e6('0x21')]()+']',JSON[_0x4c17e6('0x5')](_0x20fb98));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/servicenow.js b/server/services/ami/trigger/integration/servicenow.js index 9b785d1..1a04448 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1141_0x4ee1=['sysparm_display_value=true','toString','customVariable','validateEmail',']\x20getTicket\x20input\x20crm','lodash','then','length','destcalleridnum',']\x20getTicket\x20crm',']\x20POST\x20incident\x20entity\x20schema','Displaying\x20call\x20in\x20a\x20new\x20tab...','toUpperCase','true','Fields','queue','sys_user?sysparm_query=email%3D','catch','monitor_format','uniqueid','Subjects','stripTrailingSlash','ticketNumber','GET','getString','number','The\x20ticket\x20ID\x20is:\x20%s','customField','password','info',']\x20Error\x20running\x20ServiceNow\x20integration','remoteUri','ticketId','sysparm_limit=1','],\x20getAdminUser\x20crm','string','toLowerCase','type','recordingURL','recordingFormat','%s/api/now/table/','nameField','idField','[OUTBOUND]','Recording\x20is\x20enabled!','/nav_to.do?uri=incident.do?sys_id%3D','adminEmail','email','inspect','],\x20EndUser\x20schema','%255EORDERBYDESCnumber','],\x20getEndUser\x20input\x20crm','result','userEmail','assign','unmanaged','System','],\x20getUser\x20crm','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','message','],\x20getUser\x20input\x20crm','calleridnum','isNil','],\x20createEndUser\x20input\x20crm','outbound','endUserId','%26sysparm_record_list%3Dactive%253Dtrue','Variable','sys_id','emit','forEach','format','user','serverUrl','],\x20getEndUser\x20crm','[QUEUE]','endUserNumber','],\x20createEndUser\x20crm','variableName','sys_user?sysparm_query=user_name%3Dadmin','servicenow','],\x20getUser\x20rp\x20obj','username','userId','user:%s','content',']\x20using\x20admin\x20profile','adminId','error','sys_user?','util','POST'];(function(_0x2197d9,_0x4ee192){const _0x33f8ab=function(_0x29007c){while(--_0x29007c){_0x2197d9['push'](_0x2197d9['shift']());}};_0x33f8ab(++_0x4ee192);}(a1141_0x4ee1,0x93));const a1141_0x33f8=function(_0x2197d9,_0x4ee192){_0x2197d9=_0x2197d9-0x0;let _0x33f8ab=a1141_0x4ee1[_0x2197d9];return _0x33f8ab;};const _0x1c37d1=a1141_0x33f8;'use strict';const _=require(_0x1c37d1('0x2a')),rp=require('request-promise-native'),util=require(_0x1c37d1('0x23')),md5=require('md5'),intUtil=require('./util'),logger=require('../../../../config/logger')(_0x1c37d1('0x19')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminUser(_0x29007c,_0x19f52c,_0x9a8ddc,_0x156a02,_0x47f45f,_0x33f98d){return new Promise(function(_0x160647,_0x42bdca){const _0x6e39e=a1141_0x33f8,_0x311245={'method':_0x6e39e('0x3c'),'uri':_0x156a02+_0x6e39e('0x18')+'&'+_0x47f45f+'&'+_0x33f98d,'auth':_0x19f52c,'json':!![]};return rp(_0x311245)['then'](function(_0x1a70a4){const _0x40bd50=_0x6e39e;_0x1a70a4[_0x40bd50('0x59')][_0x40bd50('0x2c')]>0x0&&(_0x9a8ddc[_0x40bd50('0x20')]=_0x1a70a4[_0x40bd50('0x59')][0x0][_0x40bd50('0xd')]),logger[_0x40bd50('0x42')]('['+[_0x29007c['toUpperCase']()]+_0x40bd50('0x47'),_0x9a8ddc),_0x160647(_0x9a8ddc);})[_0x6e39e('0x36')](function(_0x5ca52e){const _0x37ed38=_0x6e39e;logger[_0x37ed38('0x21')]('['+[_0x29007c[_0x37ed38('0x31')]()]+']',_0x5ca52e[_0x37ed38('0x4')]),_0x42bdca(_0x5ca52e[_0x37ed38('0x4')]);});});}function getUser(_0xe63a1,_0x4bb0fb,_0x2c073f,_0x135733,_0x336ab2){return function(_0x306088){const _0x5bf2e5=a1141_0x33f8;return logger['info']('['+[_0xe63a1['toUpperCase']()]+_0x5bf2e5('0x5'),_0x306088),new Promise(function(_0x54bec7,_0x31d085){const _0x5af6d9=_0x5bf2e5;if(intUtil[_0x5af6d9('0x28')](_0x306088[_0x5af6d9('0x5a')])){const _0x5d2f85={'method':_0x5af6d9('0x3c'),'uri':_0x2c073f+_0x5af6d9('0x35')+_0x306088[_0x5af6d9('0x5a')]+'&'+_0x135733+'&'+_0x336ab2,'auth':_0x4bb0fb,'json':!![]};return logger['info']('['+[_0xe63a1[_0x5af6d9('0x31')]()]+_0x5af6d9('0x1a'),_0x5d2f85),rp(_0x5d2f85)[_0x5af6d9('0x2b')](function(_0x35392b){const _0x5c65bc=_0x5af6d9;logger['info']('['+[_0xe63a1[_0x5c65bc('0x31')]()]+'],\x20getUser\x20entity',_0x35392b),_0x35392b[_0x5c65bc('0x59')][_0x5c65bc('0x2c')]>0x0&&String(_0x35392b['result'][0x0]['active'])===_0x5c65bc('0x32')?_0x306088[_0x5c65bc('0x1c')]=_0x35392b[_0x5c65bc('0x59')][0x0][_0x5c65bc('0xd')]:(_0x306088[_0x5c65bc('0x1c')]=_0x306088[_0x5c65bc('0x20')],_0x306088[_0x5c65bc('0x5a')]=_0x306088[_0x5c65bc('0x53')]),logger[_0x5c65bc('0x42')]('['+[_0xe63a1[_0x5c65bc('0x31')]()]+_0x5c65bc('0x2'),_0x306088),_0x54bec7(_0x306088);})[_0x5af6d9('0x36')](function(_0x570331){const _0x1280ba=_0x5af6d9;logger[_0x1280ba('0x21')]('['+[_0xe63a1[_0x1280ba('0x31')]()]+']',_0x570331['message']),_0x31d085(_0x570331[_0x1280ba('0x4')]);});}else logger[_0x5af6d9('0x42')]('['+[_0xe63a1[_0x5af6d9('0x31')]()]+_0x5af6d9('0x1f')),_0x306088[_0x5af6d9('0x1c')]=_0x306088[_0x5af6d9('0x20')],_0x306088[_0x5af6d9('0x5a')]=_0x306088['adminEmail'],_0x54bec7(_0x306088);});};}function createEndUser(_0x140e72,_0x241b8d,_0xebd58d,_0x457897,_0x125452){const _0x925d25=_0x1c37d1;return logger[_0x925d25('0x42')]('['+[_0x140e72[_0x925d25('0x31')]()]+_0x925d25('0x8'),_0xebd58d),new Promise(function(_0x559aba,_0x220144){const _0x424339=_0x925d25,_0x12592d={'method':_0x424339('0x24'),'uri':_0x457897+_0x424339('0x22')+_0x125452,'body':{'user_name':_0xebd58d['endUserNumber'],'roles':_0x424339('0x11'),'first_name':_0xebd58d[_0x424339('0x15')],'active':'true','date_format':_0x424339('0x1'),'phone':_0xebd58d['endUserNumber']},'auth':_0x241b8d,'json':!![]};return rp(_0x12592d)[_0x424339('0x2b')](function(_0x42d3ab){const _0x1d3a61=_0x424339;logger[_0x1d3a61('0x42')]('['+[_0x140e72[_0x1d3a61('0x31')]()]+_0x1d3a61('0x56'),_0x42d3ab['result']),_0xebd58d['endUserId']=_0x42d3ab[_0x1d3a61('0x59')][_0x1d3a61('0xd')],_0x559aba(_0xebd58d);})['catch'](function(_0x27e672){const _0x3887aa=_0x424339;logger[_0x3887aa('0x21')]('['+[_0x140e72[_0x3887aa('0x31')]()]+']',_0x27e672[_0x3887aa('0x4')]),_0x220144(_0x27e672[_0x3887aa('0x4')]);});});}function getEndUser(_0x3f02a0,_0x1b9aeb,_0x30a45d,_0x1e34af,_0x40184c){return function(_0x38c8be){const _0x5be296=a1141_0x33f8;return logger['info']('['+[_0x3f02a0['toUpperCase']()]+_0x5be296('0x58'),_0x38c8be),new Promise(function(_0x504d4b,_0x5eebe1){const _0x1f807a=_0x5be296,_0x4aeeac={'method':_0x1f807a('0x3c'),'uri':_0x30a45d+'sys_user?sysparm_query=phone%3D'+_0x38c8be[_0x1f807a('0x15')]+'&'+_0x1e34af+'&'+_0x40184c,'auth':_0x1b9aeb,'json':!![]};return rp(_0x4aeeac)[_0x1f807a('0x2b')](function(_0x33187c){const _0x1e4f5d=_0x1f807a;if(_0x33187c['result']['length']>0x0)_0x38c8be[_0x1e4f5d('0xa')]=_0x33187c[_0x1e4f5d('0x59')][0x0][_0x1e4f5d('0xd')],logger[_0x1e4f5d('0x42')]('['+[_0x3f02a0[_0x1e4f5d('0x31')]()]+_0x1e4f5d('0x13'),_0x38c8be),_0x504d4b(_0x38c8be);else return createEndUser(_0x3f02a0,_0x1b9aeb,_0x38c8be,_0x30a45d,_0x1e34af)['then'](function(_0x4aacaa){const _0xc00f19=_0x1e4f5d;logger[_0xc00f19('0x42')]('['+[_0x3f02a0[_0xc00f19('0x31')]()]+_0xc00f19('0x16'),_0x4aacaa),_0x504d4b(_0x4aacaa);});})[_0x1f807a('0x36')](function(_0x5c6ecd){const _0x2e995c=_0x1f807a;logger[_0x2e995c('0x21')]('['+[_0x3f02a0[_0x2e995c('0x31')]()]+']',_0x5c6ecd[_0x2e995c('0x4')]),_0x5eebe1(_0x5c6ecd[_0x2e995c('0x4')]);});});};}function getCustomFields(_0x43a6c0,_0x238724){const _0x414b66=_0x1c37d1,_0x32b627={};return _0x43a6c0[_0x414b66('0x2c')]>0x0&&_[_0x414b66('0xf')](_0x43a6c0,function(_0x124aa7){const _0x578015=_0x414b66;if(_0x124aa7['type']==='string'&&_0x124aa7[_0x578015('0x4e')]&&!_0x124aa7['customField'])_0x32b627[_0x124aa7[_0x578015('0x4f')][_0x578015('0x49')]()]=_0x124aa7[_0x578015('0x1e')][_0x578015('0x26')]();else{if(_0x124aa7[_0x578015('0x4a')]===_0x578015('0x48')&&_0x124aa7[_0x578015('0x4f')]&&_0x124aa7[_0x578015('0x40')])_0x32b627[_0x124aa7[_0x578015('0x4f')]['toLowerCase']()]=_0x124aa7[_0x578015('0x1e')][_0x578015('0x26')]();else{if(_0x124aa7[_0x578015('0x4a')]==='variable'&&_0x124aa7['variableName']&&_0x124aa7[_0x578015('0x4f')]&&_0x124aa7['customField'])_0x32b627[_0x124aa7[_0x578015('0x4f')][_0x578015('0x49')]()]=_0x238724[_0x124aa7[_0x578015('0x17')]]['toString']();else _0x124aa7['type']===_0x578015('0x27')&&_0x124aa7[_0x578015('0xc')]&&_0x124aa7[_0x578015('0xc')]['name']&&_0x124aa7[_0x578015('0x4f')]&&_0x124aa7['customField']&&(_0x32b627[_0x124aa7[_0x578015('0x4f')][_0x578015('0x49')]()]=_0x238724[_0x124aa7[_0x578015('0xc')]['name']['toLowerCase']()][_0x578015('0x26')]());}}}),_0x32b627;}function getTicket(_0x493eaa,_0x2ef651,_0x26834a,_0x44c44e,_0xc3b049,_0x290e58){return function(_0x4686e1){const _0xd193a2=a1141_0x33f8;return logger['info']('['+[_0x493eaa[_0xd193a2('0x31')]()]+_0xd193a2('0x29'),_0x4686e1),new Promise(function(_0x2b4311,_0x229a2d){const _0x2c7934=_0xd193a2,_0x4054fd=_0x493eaa[_0x2c7934('0x49')]()===_0x2c7934('0x9')?_0x4686e1[_0x2c7934('0x1c')]:_0x4686e1[_0x2c7934('0xa')],_0x2139c9={'method':_0x2c7934('0x24'),'uri':_0x26834a+'incident'+'?'+_0x290e58,'body':Object[_0x2c7934('0x5b')]({},{'active':_0x2c7934('0x32'),'caller_id':_0x4054fd,'assigned_to':_0x4686e1[_0x2c7934('0x1c')],'short_description':intUtil['getString'](_0x44c44e[_0x2c7934('0x39')],_0xc3b049,'\x20'),'description':intUtil[_0x2c7934('0x3d')](_0x44c44e['Descriptions'],_0xc3b049,'\x0a')},getCustomFields(_0x44c44e[_0x2c7934('0x33')],_0xc3b049)),'auth':_0x2ef651,'json':!![]};return rp(_0x2139c9)['then'](function(_0x240d6a){const _0x497d9f=_0x2c7934;logger[_0x497d9f('0x42')]('['+[_0x493eaa[_0x497d9f('0x31')]()]+_0x497d9f('0x2f'),_0x240d6a[_0x497d9f('0x59')]),_0x4686e1['ticketId']=_0x240d6a[_0x497d9f('0x59')][_0x497d9f('0xd')],_0x4686e1[_0x497d9f('0x3b')]=_0x240d6a['result'][_0x497d9f('0x3e')],logger[_0x497d9f('0x42')]('['+[_0x493eaa[_0x497d9f('0x31')]()]+_0x497d9f('0x2e'),_0x4686e1),_0x2b4311(_0x4686e1);})[_0x2c7934('0x36')](function(_0x40563a){const _0x43664e=_0x2c7934;logger['error']('['+[_0x493eaa[_0x43664e('0x31')]()]+']',_0x40563a[_0x43664e('0x4')]),_0x229a2d(_0x40563a[_0x43664e('0x4')]);});});};}function emit(_0x1700fc,_0x57dbff,_0x4bab2d){const _0x386f1c=_0x1c37d1,_0x1cf073='%26sysparm_record_target%3Dincident'+_0x386f1c('0x3')+_0x386f1c('0xb')+_0x386f1c('0x57'),_0x3fabc8={'uri':_0x1700fc+_0x386f1c('0x52')+_0x4bab2d+_0x1cf073};io['to'](util[_0x386f1c('0x10')](_0x386f1c('0x1d'),_0x57dbff))[_0x386f1c('0xe')]('trigger:browser:url',_0x3fabc8);}exports['cs']=function(_0x1e724d,_0x1eb30c,_0x2a4551,_0x1fa01b,_0x32ca0d,_0x22c32b,_0x1c6b3b,_0x512936){const _0x527c81=_0x1c37d1,_0x1f2c16={},_0x372287={'user':_0x22c32b[_0x527c81('0x1b')],'pass':_0x22c32b[_0x527c81('0x41')]},_0x5dd268=_0x527c81('0x46'),_0x29bf21=_0x527c81('0x25');_0x22c32b['remoteUri']=intUtil[_0x527c81('0x3a')](_0x22c32b[_0x527c81('0x44')]),_0x22c32b[_0x527c81('0x12')]=intUtil['stripTrailingSlash'](_0x22c32b[_0x527c81('0x12')]);const _0x507798=util['format'](_0x527c81('0x4d'),_0x22c32b[_0x527c81('0x44')]);_0x1f2c16[_0x527c81('0x5a')]=!_[_0x527c81('0x7')](_0x1fa01b)?_0x1fa01b[_0x527c81('0x54')]:null,_0x1f2c16[_0x527c81('0x53')]=_0x22c32b[_0x527c81('0x54')],_0x1f2c16[_0x527c81('0x15')]=_0x512936['toLowerCase']()==='outbound'?_0x1eb30c[_0x527c81('0x2d')]:_0x1eb30c[_0x527c81('0x6')],_0x1f2c16['callDirection']=_0x512936===_0x527c81('0x34')||_0x512936===_0x527c81('0x0')?'queue':_0x527c81('0x9');const _0x41fa8f=util[_0x527c81('0x10')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x22c32b[_0x527c81('0x12')],_0x1eb30c['uniqueid'],md5(_0x1eb30c[_0x527c81('0x38')]));if(_0x32ca0d&&_0x32ca0d[_0x527c81('0x37')])logger[_0x527c81('0x42')](_0x527c81('0x14'),_0x527c81('0x51')),_0x1eb30c[_0x527c81('0x4b')]=_0x41fa8f;else _0x1c6b3b&&_0x1c6b3b[_0x527c81('0x4c')]&&_0x1c6b3b[_0x527c81('0x4c')]!=='none'?(logger['info'](_0x527c81('0x50'),'Recording\x20is\x20enabled!'),_0x1eb30c[_0x527c81('0x4b')]=_0x41fa8f):_0x1eb30c['recordingURL']='';return getAdminUser(_0x512936,_0x372287,_0x1f2c16,_0x507798,_0x29bf21,_0x5dd268)[_0x527c81('0x2b')](getUser(_0x512936,_0x372287,_0x507798,_0x29bf21,_0x5dd268))[_0x527c81('0x2b')](getEndUser(_0x512936,_0x372287,_0x507798,_0x29bf21,_0x5dd268))['then'](getTicket(_0x512936,_0x372287,_0x507798,_0x2a4551,_0x1eb30c,_0x29bf21))[_0x527c81('0x2b')](function(_0x2cd7dd){const _0x26fef0=_0x527c81;logger[_0x26fef0('0x42')](util[_0x26fef0('0x10')](_0x26fef0('0x3f'),_0x2cd7dd[_0x26fef0('0x45')])),logger['info'](util[_0x26fef0('0x10')]('call\x20direction:\x20%s',_0x512936)),_0x512936!==_0x26fef0('0x0')&&(logger[_0x26fef0('0x42')]('['+[_0x512936[_0x26fef0('0x31')]()]+']',_0x26fef0('0x30')),emit(_0x22c32b[_0x26fef0('0x44')],_0x1fa01b['name'],_0x2cd7dd[_0x26fef0('0x45')]));})[_0x527c81('0x36')](function(_0x45dee8){const _0x219812=_0x527c81;logger[_0x219812('0x21')]('['+[_0x512936['toUpperCase']()]+_0x219812('0x43'),util[_0x219812('0x55')](_0x45dee8,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/sugarcrm.js b/server/services/ami/trigger/integration/sugarcrm.js index f94cfd4..0a62b8e 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1142_0x4399=['uniqueid','The\x20User\x20ID\x20is:','name','set_entry','PLAIN','users','Fields','[QUEUE]','then','lodash','get_entry_list','stripTrailingSlash','direction','recordingFormat','merge','set_relationship','charAt','../../../../config/logger','entry_list','phone_home','first_name','[HTTP]','password','Searching\x20enduser\x20with\x20phone','serverUrl','unmanaged','error','contacts','sugarcrm','catch','Inbound','Calls','user_id','forEach','created_by','parent_name','Account\x20%d\x20is\x20not\x20valid','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','Outbound','toISOString','description','lastevent','getString','find','The\x20Ticket\x20ID\x20is:','isNil','value','Contacts','user_name','destcalleridname','debug','xCALLY\x20Motion\x20integration','calleridnum','toUpperCase','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','idField','format','Subjects','contacts.phone_home\x20=\x20\x22%s\x22','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','The\x20Enduser\x20ID\x20is:','name_value_list','queue','variableName','Recording\x20is\x20enabled!','recordingURL','monitor_format','assigned_user_id','user:%s','version','resolve','%s/service/v4_1/rest.php','Ticket\x20created!','info','Descriptions','length','Creating\x20new\x20ticket...','../../../../rediscache','POST','none','get_server_info','uri','Agent\x20found!','emit','login','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','JSON','remoteUri','[OUTBOUND]','duration_minutes','parent_type','calleridname','sessionID','stringify'];(function(_0x532a95,_0x43993f){const _0x3bc78c=function(_0x26b472){while(--_0x26b472){_0x532a95['push'](_0x532a95['shift']());}};_0x3bc78c(++_0x43993f);}(a1142_0x4399,0x85));const a1142_0x3bc7=function(_0x532a95,_0x43993f){_0x532a95=_0x532a95-0x0;let _0x3bc78c=a1142_0x4399[_0x532a95];return _0x3bc78c;};const _0x4335fb=a1142_0x3bc7;'use strict';const _=require(_0x4335fb('0x40')),rp=require('request-promise-native'),md5=require('md5'),util=require('util'),intUtil=require('./util'),logger=require(_0x4335fb('0x48'))(_0x4335fb('0x53')),{getSocket}=require(_0x4335fb('0x26')),io=getSocket(),def={'method':_0x4335fb('0x27'),'json':!![]};function emit(_0x26b472,_0xda0654,_0x5ca1d6){const _0x439baa=_0x4335fb;io['to'](_0x26b472)[_0x439baa('0x2c')](_0xda0654,_0x5ca1d6);}function getTicket(_0x50e692,_0x4333ad,_0x4d3496,_0x5fdbe0,_0x54adeb,_0x2c812c,_0xc0a5af,_0x37db15){const _0x1c3ff5=_0x4335fb;logger[_0x1c3ff5('0x22')](_0x1c3ff5('0x25'));const _0x81370d=new Date(),_0x34c645=[{'name':'name','value':intUtil[_0x1c3ff5('0x3')](_0x5fdbe0[_0x1c3ff5('0x12')],_0x54adeb,'\x20')},{'name':_0x1c3ff5('0x1c'),'value':_0x4333ad['id']},{'name':_0x1c3ff5('0x59'),'value':_0x4333ad['id']},{'name':_0x1c3ff5('0x1'),'value':intUtil['getString'](_0x5fdbe0[_0x1c3ff5('0x23')],_0x54adeb,'\x0a')},{'name':'date_start','value':_0x81370d[_0x1c3ff5('0x0')]()['slice'](0x0,0x13)['replace']('T','\x20')},{'name':'duration_hours','value':'0'},{'name':_0x1c3ff5('0x32'),'value':'15'},{'name':'parent_id','value':_0x4d3496['id']},{'name':_0x1c3ff5('0x33'),'value':_0x1c3ff5('0x8')},{'name':_0x1c3ff5('0x5a'),'value':_0x4d3496[_0x1c3ff5('0x39')]},{'name':_0x1c3ff5('0x43'),'value':_0x37db15}];return _0x2c812c[_0x1c3ff5('0x24')]&&_[_0x1c3ff5('0x58')](_0x2c812c,function(_0x24c88d){const _0x4c7431=_0x1c3ff5;_0x54adeb[_0x24c88d[_0x4c7431('0x18')]]&&_0x34c645['push']({'name':_0x24c88d[_0x4c7431('0x10')],'value':_0x54adeb[_0x24c88d[_0x4c7431('0x18')]]});}),request({'form':{'method':_0x1c3ff5('0x3a'),'input_type':_0x1c3ff5('0x2f'),'response_type':_0x1c3ff5('0x2f'),'rest_data':JSON[_0x1c3ff5('0x36')]({'session':_0xc0a5af['id'],'module_name':_0x1c3ff5('0x56'),'name_value_list':_0x34c645})}});}function getServerInfo(_0xb12822){const _0x32ce2e=_0x4335fb;return request({'form':{'method':_0x32ce2e('0x29'),'input_type':_0x32ce2e('0x2f'),'response_type':_0x32ce2e('0x2f'),'rest_data':JSON['stringify']({'session':_0xb12822['id']})}});}function getUser(_0x3a15d7,_0x41cb20,_0x44fcc3){const _0x3f136b=_0x4335fb;return!_['isNil'](_0x41cb20)?(logger[_0x3f136b('0x22')]('Getting\x20agent\x20with\x20name',_0x41cb20),request({'form':{'method':_0x3f136b('0x41'),'input_type':'JSON','response_type':_0x3f136b('0x2f'),'rest_data':JSON[_0x3f136b('0x36')]({'session':_0x44fcc3['id'],'module_name':'Employees','query':util[_0x3f136b('0x11')]('INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200',_0x41cb20),'order_by':'','offset':'0','select_fields':['id','name',_0x3f136b('0x9')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x3f136b('0x3f')](function(_0x2f8bdd){const _0x276f9b=_0x3f136b;if(_0x2f8bdd['entry_list'][_0x276f9b('0x24')]){const _0x239389=_[_0x276f9b('0x4')](_0x2f8bdd[_0x276f9b('0x49')],function(_0x4b5d5f){const _0x427e8d=_0x276f9b;return _0x4b5d5f[_0x427e8d('0x16')][_0x427e8d('0x9')][_0x427e8d('0x7')]===_0x41cb20;});if(_0x239389)return logger['info'](_0x276f9b('0x2b')),Promise[_0x276f9b('0x1f')]({'id':_0x239389[_0x276f9b('0x16')]['id']['value'],'name':_0x239389[_0x276f9b('0x16')][_0x276f9b('0x39')][_0x276f9b('0x7')]});}return logger[_0x276f9b('0x22')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise[_0x276f9b('0x1f')]({'id':_0x44fcc3[_0x276f9b('0x16')][_0x276f9b('0x57')][_0x276f9b('0x7')],'name':_0x44fcc3['name_value_list'][_0x276f9b('0x9')][_0x276f9b('0x7')]});})):(logger['info']('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise['resolve']({'id':_0x44fcc3['name_value_list'][_0x3f136b('0x57')][_0x3f136b('0x7')],'name':_0x44fcc3[_0x3f136b('0x16')][_0x3f136b('0x9')]['value']}));}function getEndUser(_0x1f984a,_0x13bd96,_0x211daa,_0xdddf6){const _0x4648f0=_0x4335fb;return logger[_0x4648f0('0x22')](_0x4648f0('0x4e'),_0x211daa),request({'form':{'method':_0x4648f0('0x41'),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x4648f0('0x36')]({'session':_0xdddf6['id'],'module_name':_0x4648f0('0x8'),'query':util[_0x4648f0('0x11')](_0x4648f0('0x13'),_0x211daa),'order_by':'','offset':'0','select_fields':['id','name','phone_home'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x4648f0('0x3f')](function(_0x3e4069){const _0x5c2b38=_0x4648f0;if(_0x3e4069[_0x5c2b38('0x49')]['length']){const _0x30578d=_[_0x5c2b38('0x4')](_0x3e4069[_0x5c2b38('0x49')],function(_0x3bdf8d){const _0x29c288=_0x5c2b38;return _0x3bdf8d[_0x29c288('0x16')][_0x29c288('0x4a')][_0x29c288('0x7')]===_0x211daa;});if(_0x30578d)return logger[_0x5c2b38('0x22')]('Enduser\x20found!'),Promise[_0x5c2b38('0x1f')]({'id':_0x30578d['name_value_list']['id'][_0x5c2b38('0x7')],'name':_0x30578d[_0x5c2b38('0x16')]['name'][_0x5c2b38('0x7')],'phone':_0x30578d[_0x5c2b38('0x16')][_0x5c2b38('0x4a')][_0x5c2b38('0x7')]});}else return logger[_0x5c2b38('0x22')](_0x5c2b38('0x2e')),request({'form':{'method':_0x5c2b38('0x3a'),'input_type':'JSON','response_type':_0x5c2b38('0x2f'),'rest_data':JSON[_0x5c2b38('0x36')]({'session':_0xdddf6['id'],'module_name':'Contacts','name_value_list':[{'name':'first_name','value':_0x13bd96!==''?_0x13bd96:util['format']('Caller\x20-\x20%s',_0x211daa)},{'name':_0x5c2b38('0x4a'),'value':_0x211daa}]})}})[_0x5c2b38('0x3f')](function(_0x4b8848){const _0x2d23ab=_0x5c2b38;return logger[_0x2d23ab('0x22')]('Enduser\x20created.'),Promise['resolve']({'id':_0x4b8848['id'],'name':_0x4b8848[_0x2d23ab('0x49')][_0x2d23ab('0x4b')][_0x2d23ab('0x7')],'phone':_0x4b8848[_0x2d23ab('0x49')][_0x2d23ab('0x4a')][_0x2d23ab('0x7')]});});});}function request(_0x55119d){const _0xe5abe7=_0x4335fb;return logger[_0xe5abe7('0xb')](_0xe5abe7('0x4c'),JSON[_0xe5abe7('0x36')](_0x55119d)),rp(_[_0xe5abe7('0x45')](def,_0x55119d));}function getConnection(_0x1c5bb2){const _0x4b7231=_0x4335fb;return request({'method':_0x4b7231('0x27'),'form':{'method':_0x4b7231('0x2d'),'input_type':'JSON','response_type':_0x4b7231('0x2f'),'rest_data':JSON['stringify']({'user_auth':{'user_name':_0x1c5bb2['username'],'password':_0x1c5bb2[_0x4b7231('0x4d')],'encryption':_0x4b7231('0x3b')},'application':_0x4b7231('0xc')})}})[_0x4b7231('0x3f')](function(_0x1b6a79){const _0x3d0fe5=_0x4b7231,_0x15cbf1=_0x1b6a79;if(_0x15cbf1['id'])return def[_0x3d0fe5('0x35')]=_0x15cbf1['id'],Promise['resolve'](_0x15cbf1);else throw new Error(util[_0x3d0fe5('0x11')](_0x3d0fe5('0x5b'),_0x1c5bb2['id']));});}function setRelationship(_0x4a1287,_0x42eec3,_0xdc3b51,_0x3bdfa0){const _0x191dbb=_0x4335fb;return request({'form':{'method':_0x191dbb('0x46'),'input_type':_0x191dbb('0x2f'),'response_type':_0x191dbb('0x2f'),'rest_data':JSON[_0x191dbb('0x36')]({'session':_0x4a1287['id'],'module_name':_0x191dbb('0x56'),'module_id':_0xdc3b51['id'],'link_field_name':_0x3bdfa0,'related_ids':[_0x42eec3['id']]})}});}exports[_0x4335fb('0x17')]=function(_0xce7f78,_0x386bd9,_0x37825b,_0x3bc96f,_0x20d811,_0x5d3d84){const _0x58ccf9=_0x4335fb;let _0x397652,_0x5ef069,_0x2f1483,_0x46d273;return _0x5d3d84[_0x58ccf9('0x30')]=intUtil[_0x58ccf9('0x42')](_0x5d3d84['remoteUri']),_0x5d3d84[_0x58ccf9('0x4f')]=intUtil[_0x58ccf9('0x42')](_0x5d3d84[_0x58ccf9('0x4f')]),def[_0x58ccf9('0x2a')]=util[_0x58ccf9('0x11')]('%s/service/v4_1/rest.php',_0x5d3d84[_0x58ccf9('0x30')]),_0x20d811&&_0x20d811[_0x58ccf9('0x1b')]?(logger['info'](_0x58ccf9('0x3e'),_0x58ccf9('0x19')),_0x386bd9[_0x58ccf9('0x1a')]=util[_0x58ccf9('0x11')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x5d3d84[_0x58ccf9('0x4f')],_0x386bd9[_0x58ccf9('0x37')],md5(_0x386bd9[_0x58ccf9('0x37')]))):_0x386bd9[_0x58ccf9('0x1a')]='',getConnection(_0x5d3d84)['then'](function(_0x2555f4){const _0x28daf1=_0x58ccf9;return _0x46d273=_0x2555f4,getUser(_0x5d3d84,_0x3bc96f[_0x28daf1('0x39')],_0x46d273);})[_0x58ccf9('0x3f')](function(_0x48d322){const _0x4861a7=_0x58ccf9;return _0x397652=_0x48d322,logger[_0x4861a7('0x22')](_0x4861a7('0x38'),_0x397652['id']),getEndUser(_0x5d3d84,_0x386bd9['calleridname'],_0x386bd9[_0x4861a7('0xd')],_0x46d273);})[_0x58ccf9('0x3f')](function(_0x31fb24){const _0x4ddc53=_0x58ccf9;return _0x5ef069=_0x31fb24,logger[_0x4ddc53('0x22')]('The\x20Enduser\x20ID\x20is:',_0x5ef069['id']),getTicket(_0x5d3d84,_0x397652,_0x5ef069,_0x37825b,_0x386bd9,_0x37825b[_0x4ddc53('0x3d')],_0x46d273,_0x4ddc53('0x55'));})[_0x58ccf9('0x3f')](function(_0x49c783){const _0x243dfc=_0x58ccf9;return _0x2f1483=_0x49c783,logger[_0x243dfc('0x22')](_0x243dfc('0x21')),logger[_0x243dfc('0x22')]('The\x20Ticket\x20ID\x20is:',_0x2f1483['id']),setRelationship(_0x46d273,_0x397652,_0x2f1483,_0x243dfc('0x3c'));})[_0x58ccf9('0x3f')](function(){const _0x4dc4ae=_0x58ccf9;return setRelationship(_0x46d273,_0x5ef069,_0x2f1483,_0x4dc4ae('0x52'));})[_0x58ccf9('0x3f')](function(){return getServerInfo(_0x46d273);})['then'](function(_0x3fdf1c){const _0x238752=_0x58ccf9,_0x280dc4=parseInt(_0x3fdf1c['version'][_0x238752('0x47')](0x0));let _0xdb15b4=util[_0x238752('0x11')](_0x238752('0x5c'),_0x5d3d84[_0x238752('0x30')],_0x2f1483['id']);_0x280dc4>0x6&&(_0xdb15b4=util[_0x238752('0x11')](_0x238752('0x14'),_0x5d3d84[_0x238752('0x30')],_0x2f1483['id'])),logger[_0x238752('0x22')](_0x238752('0x3e'),_0x238752('0xf')),emit(util[_0x238752('0x11')](_0x238752('0x1d'),_0x3bc96f[_0x238752('0x39')]),'trigger:browser:url',{'uri':_0xdb15b4});})[_0x58ccf9('0x54')](function(_0x305d6f){const _0x5ed722=_0x58ccf9;logger[_0x5ed722('0x51')]('[QUEUE]',JSON['stringify'](_0x305d6f));});},exports['outbound']=function(_0x4b6c22,_0x25045f,_0x4de68d,_0x402935,_0x4874fa,_0x2de88,_0x134cec){const _0x2fd5a3=_0x4335fb;let _0x416a53,_0x3279da,_0x6cb233,_0x5a1e25;return _0x2de88['remoteUri']=intUtil[_0x2fd5a3('0x42')](_0x2de88[_0x2fd5a3('0x30')]),_0x2de88[_0x2fd5a3('0x4f')]=intUtil[_0x2fd5a3('0x42')](_0x2de88['serverUrl']),def[_0x2fd5a3('0x2a')]=util['format'](_0x2fd5a3('0x20'),_0x2de88[_0x2fd5a3('0x30')]),_0x134cec&&_0x134cec[_0x2fd5a3('0x44')]&&_0x134cec['recordingFormat']!==_0x2fd5a3('0x28')&&(logger[_0x2fd5a3('0x22')](_0x2fd5a3('0x31'),_0x2fd5a3('0x19')),_0x25045f[_0x2fd5a3('0x1a')]=util[_0x2fd5a3('0x11')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x2de88[_0x2fd5a3('0x4f')],_0x25045f[_0x2fd5a3('0x37')],md5(_0x25045f[_0x2fd5a3('0x37')]))),getConnection(_0x2de88)[_0x2fd5a3('0x3f')](function(_0x42d781){const _0xa89702=_0x2fd5a3;return _0x5a1e25=_0x42d781,getUser(_0x2de88,_0x402935[_0xa89702('0x39')],_0x5a1e25);})[_0x2fd5a3('0x3f')](function(_0x5c85ba){const _0x5d0e01=_0x2fd5a3;return _0x416a53=_0x5c85ba,logger[_0x5d0e01('0x22')](_0x5d0e01('0x38'),_0x416a53['id']),getEndUser(_0x2de88,_0x25045f[_0x5d0e01('0xa')],_0x25045f['destcalleridnum'],_0x5a1e25);})[_0x2fd5a3('0x3f')](function(_0x5bbd3a){const _0x28dc76=_0x2fd5a3;return _0x3279da=_0x5bbd3a,logger[_0x28dc76('0x22')](_0x28dc76('0x15'),_0x3279da['id']),getTicket(_0x2de88,_0x416a53,_0x3279da,_0x4de68d,_0x25045f,_0x4de68d[_0x28dc76('0x3d')],_0x5a1e25,_0x28dc76('0x5d'));})[_0x2fd5a3('0x3f')](function(_0x1f6ae1){const _0x3ee5f3=_0x2fd5a3;return _0x6cb233=_0x1f6ae1,logger[_0x3ee5f3('0x22')](_0x3ee5f3('0x21')),logger[_0x3ee5f3('0x22')]('The\x20Ticket\x20ID\x20is:',_0x6cb233['id']),setRelationship(_0x5a1e25,_0x416a53,_0x6cb233,'users');})['then'](function(){const _0x3fc30d=_0x2fd5a3;return setRelationship(_0x5a1e25,_0x3279da,_0x6cb233,_0x3fc30d('0x52'));})['then'](function(){return getServerInfo(_0x5a1e25);})['then'](function(_0x1bf09b){const _0x242222=_0x2fd5a3,_0x312fce=parseInt(_0x1bf09b[_0x242222('0x1e')][_0x242222('0x47')](0x0));let _0x74980b=util[_0x242222('0x11')]('%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s',_0x2de88[_0x242222('0x30')],_0x6cb233['id']);_0x312fce>0x6&&(_0x74980b=util[_0x242222('0x11')](_0x242222('0x14'),_0x2de88[_0x242222('0x30')],_0x6cb233['id'])),logger[_0x242222('0x22')](_0x242222('0x31'),_0x242222('0xf')),emit(util[_0x242222('0x11')](_0x242222('0x1d'),_0x402935[_0x242222('0x39')]),'trigger:browser:url',{'uri':_0x74980b});})[_0x2fd5a3('0x54')](function(_0x4f5812){const _0x2c711d=_0x2fd5a3;logger[_0x2c711d('0x51')](_0x2c711d('0x31'),JSON[_0x2c711d('0x36')](_0x4f5812));});},exports[_0x4335fb('0x50')]=function(_0x77bf21,_0x2cf2e8,_0x4a8c35,_0x2d852f,_0x157887,_0x2979af){const _0x4b0d4c=_0x4335fb;let _0x4de17b,_0x3f6ea2,_0x53fe3d,_0x151685;return _0x2979af[_0x4b0d4c('0x30')]=intUtil[_0x4b0d4c('0x42')](_0x2979af[_0x4b0d4c('0x30')]),_0x2979af['serverUrl']=intUtil[_0x4b0d4c('0x42')](_0x2979af[_0x4b0d4c('0x4f')]),def[_0x4b0d4c('0x2a')]=util[_0x4b0d4c('0x11')](_0x4b0d4c('0x20'),_0x2979af[_0x4b0d4c('0x30')]),_0x157887&&_0x157887[_0x4b0d4c('0x1b')]?(logger[_0x4b0d4c('0x22')]('['+_0x2cf2e8[_0x4b0d4c('0x2')][_0x4b0d4c('0xe')]()+']','Recording\x20is\x20enabled!'),_0x2cf2e8[_0x4b0d4c('0x1a')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x2979af['serverUrl'],_0x2cf2e8[_0x4b0d4c('0x37')],md5(_0x2cf2e8[_0x4b0d4c('0x37')]))):_0x2cf2e8[_0x4b0d4c('0x1a')]='',getConnection(_0x2979af)[_0x4b0d4c('0x3f')](function(_0x48c422){const _0x43631a=_0x4b0d4c;return _0x151685=_0x48c422,!_[_0x43631a('0x6')](_0x2d852f)?getUser(_0x2979af,_0x2d852f['name'],_0x151685):getUser(_0x2979af,null,_0x151685);})['then'](function(_0x27c36e){const _0x5e82a0=_0x4b0d4c;return _0x4de17b=_0x27c36e,logger[_0x5e82a0('0x22')]('The\x20User\x20ID\x20is:',_0x4de17b['id']),getEndUser(_0x2979af,_0x2cf2e8[_0x5e82a0('0x34')],_0x2cf2e8[_0x5e82a0('0xd')],_0x151685);})[_0x4b0d4c('0x3f')](function(_0x17e854){const _0x3b1748=_0x4b0d4c;return _0x3f6ea2=_0x17e854,logger[_0x3b1748('0x22')](_0x3b1748('0x15'),_0x3f6ea2['id']),getTicket(_0x2979af,_0x4de17b,_0x3f6ea2,_0x4a8c35,_0x2cf2e8,_0x4a8c35[_0x3b1748('0x3d')],_0x151685,'Inbound');})[_0x4b0d4c('0x3f')](function(_0x3a7f92){const _0xbae199=_0x4b0d4c;return _0x53fe3d=_0x3a7f92,logger[_0xbae199('0x22')](_0xbae199('0x21')),logger['info'](_0xbae199('0x5'),_0x53fe3d['id']),setRelationship(_0x151685,_0x4de17b,_0x53fe3d,_0xbae199('0x3c'));})['then'](function(){const _0x1c7fa1=_0x4b0d4c;return setRelationship(_0x151685,_0x3f6ea2,_0x53fe3d,_0x1c7fa1('0x52'));})[_0x4b0d4c('0x3f')](function(){return getServerInfo(_0x151685);})[_0x4b0d4c('0x54')](function(_0x499502){const _0x3d9460=_0x4b0d4c;logger['error']('['+_0x2cf2e8[_0x3d9460('0x2')][_0x3d9460('0xe')]()+']',JSON['stringify'](_0x499502));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/util.js b/server/services/ami/trigger/integration/util.js index d112014..73b68cb 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1143_0x54da=['string','getString','util','isNil','validateEmail','keyValue','Variable','keyContent','toLowerCase','lodash','variable','toString','push','substring','test','length','type','format','slice','variableName','%s:\x20%s','key','lastIndexOf','name','keyType','stripTrailingSlash'];(function(_0x24eae5,_0x54da92){const _0x44c2ce=function(_0x5b708f){while(--_0x5b708f){_0x24eae5['push'](_0x24eae5['shift']());}};_0x44c2ce(++_0x54da92);}(a1143_0x54da,0x143));const a1143_0x44c2=function(_0x24eae5,_0x54da92){_0x24eae5=_0x24eae5-0x0;let _0x44c2ce=a1143_0x54da[_0x24eae5];return _0x44c2ce;};const _0xd83cab=a1143_0x44c2;'use strict';const _=require(_0xd83cab('0x18')),util=require(_0xd83cab('0x11'));exports[_0xd83cab('0x10')]=function(_0x5b708f,_0x1b9be0,_0x82bcf2){const _0x2ef160=_0xd83cab,_0x533f12=[];if(_0x5b708f[_0x2ef160('0x4')]>0x0){const _0x33d21d=_['sortBy'](_0x5b708f,['id']);for(let _0x43d04e=0x0;_0x43d04e<_0x33d21d[_0x2ef160('0x4')];_0x43d04e++){const _0x529948=_0x33d21d[_0x43d04e];if(_0x529948[_0x2ef160('0x5')]===_0x2ef160('0xf'))_0x533f12[_0x2ef160('0x1')](_0x529948['content']);else{if(_0x529948[_0x2ef160('0x5')]===_0x2ef160('0x19')&&_0x529948[_0x2ef160('0x8')])_0x1b9be0[_0x529948[_0x2ef160('0x8')]]&&_0x533f12[_0x2ef160('0x1')](_0x1b9be0[_0x529948[_0x2ef160('0x8')]][_0x2ef160('0x0')]());else{if(_0x529948['type']==='customVariable'&&_0x529948['Variable']&&_0x529948[_0x2ef160('0x15')][_0x2ef160('0xc')])_0x1b9be0[_0x529948['Variable']['name'][_0x2ef160('0x17')]()]&&_0x533f12[_0x2ef160('0x1')](_0x1b9be0[_0x529948['Variable'][_0x2ef160('0xc')]['toLowerCase']()][_0x2ef160('0x0')]());else{if(_0x529948[_0x2ef160('0x5')]===_0x2ef160('0x14')){if(_0x529948[_0x2ef160('0xd')]===_0x2ef160('0xf')&&_0x529948[_0x2ef160('0xa')])_0x533f12[_0x2ef160('0x1')](util[_0x2ef160('0x6')]('%s:\x20%s',_0x529948['key'],_0x529948[_0x2ef160('0x16')]));else{if(_0x529948[_0x2ef160('0xd')]===_0x2ef160('0x19')&&_0x529948['variableName']&&_0x529948[_0x2ef160('0xa')])_0x1b9be0[_0x529948[_0x2ef160('0x8')]]&&_0x533f12[_0x2ef160('0x1')](util['format'](_0x2ef160('0x9'),_0x529948[_0x2ef160('0xa')],_0x1b9be0[_0x529948[_0x2ef160('0x8')]]));else _0x529948[_0x2ef160('0xd')]==='customVariable'&&_0x529948[_0x2ef160('0x15')]&&_0x529948[_0x2ef160('0x15')][_0x2ef160('0xc')]&&_0x529948[_0x2ef160('0xa')]&&(_0x1b9be0[_0x529948[_0x2ef160('0x15')][_0x2ef160('0xc')]['toLowerCase']()]&&_0x533f12['push'](util[_0x2ef160('0x6')]('%s:\x20%s',_0x529948[_0x2ef160('0xa')],_0x1b9be0[_0x529948[_0x2ef160('0x15')][_0x2ef160('0xc')][_0x2ef160('0x17')]()])));}}}}}}}return _0x533f12['join'](_0x82bcf2);},exports[_0xd83cab('0xe')]=function(_0xa18b14){const _0xf6cf45=_0xd83cab,_0x358f3c=_0xa18b14[_0xf6cf45('0x7')](-0x1);return _0x358f3c==='/'&&(_0xa18b14=_0xa18b14[_0xf6cf45('0x2')](0x0,_0xa18b14[_0xf6cf45('0xb')](_0x358f3c))),_0xa18b14;},exports[_0xd83cab('0x13')]=function(_0x13ac12){const _0x57aac0=_0xd83cab;if(!_[_0x57aac0('0x12')](_0x13ac12)&&_0x13ac12!==''){const _0x1c856c=/^(([^<>()[\]\\.,;:\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 _0x1c856c[_0x57aac0('0x3')](String(_0x13ac12)[_0x57aac0('0x17')]());}else return![];}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/vtiger.js b/server/services/ami/trigger/integration/vtiger.js index 5ae7b4d..2352e45 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1144_0x4f61=['string','none','uniqueid','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','statusCode','trigger:browser:url','user:%s','first_name','emit','outbound','HelpDesk','lastname','toString','info','POST','name','toLowerCase','error','login','Creating\x20new\x20ticket...','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','Recording\x20is\x20enabled!','The\x20User\x20ID\x20is:','length','result','firstname','Searching\x20end\x20user\x20with\x20phone','toUpperCase','%s/webservice.php','merge','recordingFormat','phone','../../../../rediscache','content','Fields','userId','Enduser\x20found!','[HTTP]','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','resolve','email','./util','util','success','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','last_name','format','serverUrl','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;','monitor_format','[OUTBOUND]','username','stripTrailingSlash','getConnection','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','createTicket','[vTiger],\x20%s,\x20%s,\x20%s','Agent\x20found!','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Open','Variable','Getting\x20agent\x20with\x20email','variable','sessionName','email1','vTiger','The\x20Ticket\x20ID\x20is:','The\x20Enduser\x20ID\x20is:','md5','split','lastevent','Descriptions','catch','variableName','getUser','then','recordingURL','create','type','admin','getString','../../../../config/logger','calleridnum','GET','stringify','idField','[QUEUE]','remoteUri','getEndUser','calleridname','Subjects','query'];(function(_0x55ee34,_0x4f61cf){const _0x513406=function(_0xde7f0f){while(--_0xde7f0f){_0x55ee34['push'](_0x55ee34['shift']());}};_0x513406(++_0x4f61cf);}(a1144_0x4f61,0x1d6));const a1144_0x5134=function(_0x55ee34,_0x4f61cf){_0x55ee34=_0x55ee34-0x0;let _0x513406=a1144_0x4f61[_0x55ee34];return _0x513406;};const _0x594568=a1144_0x5134;'use strict';const _=require('lodash'),rp=require('request-promise-native'),md5=require(_0x594568('0x40')),util=require(_0x594568('0x26')),intUtil=require(_0x594568('0x25')),logger=require(_0x594568('0x4d'))(_0x594568('0x3d')),{getSocket}=require(_0x594568('0x1c')),io=getSocket();function emit(_0xde7f0f,_0x1e1553,_0x2bcc50){const _0x4bc576=_0x594568;io['to'](_0xde7f0f)[_0x4bc576('0x3')](_0x1e1553,_0x2bcc50);}function getCustomFields(_0x18531b,_0x120c0f){const _0x3dffab=_0x594568,_0x44a5fb={};return _0x18531b[_0x3dffab('0x13')]>0x0&&_['forEach'](_0x18531b,function(_0x3b74fe){const _0x379233=_0x3dffab;if(_0x3b74fe['type']===_0x379233('0x58')&&_0x3b74fe[_0x379233('0x51')])_0x44a5fb[_0x3b74fe['idField']]=_0x3b74fe[_0x379233('0x1d')][_0x379233('0x7')]();else{if(_0x3b74fe[_0x379233('0x4a')]===_0x379233('0x3a')&&_0x3b74fe[_0x379233('0x45')]&&_0x3b74fe[_0x379233('0x51')]&&_0x120c0f[_0x3b74fe['variableName']])_0x44a5fb[_0x3b74fe[_0x379233('0x51')]]=_0x120c0f[_0x3b74fe['variableName']][_0x379233('0x7')]();else _0x3b74fe[_0x379233('0x4a')]==='customVariable'&&_0x3b74fe[_0x379233('0x38')]&&_0x3b74fe[_0x379233('0x38')][_0x379233('0xa')]&&_0x3b74fe['idField']&&_0x120c0f[_0x3b74fe[_0x379233('0x38')][_0x379233('0xa')][_0x379233('0xb')]()]&&(_0x44a5fb[_0x3b74fe[_0x379233('0x51')]]=_0x120c0f[_0x3b74fe[_0x379233('0x38')][_0x379233('0xa')]['toLowerCase']()][_0x379233('0x7')]());}}),_0x44a5fb;}function createTicket(_0x12a0ab,_0x232662,_0x18af84,_0x1cd1ba,_0x16a9f4,_0x41b41b,_0x2c57de){const _0x2cd1b6=_0x594568;logger[_0x2cd1b6('0x8')](_0x2cd1b6('0xe'));const _0x27e7e8=_[_0x2cd1b6('0x19')]({'parent_id':'','assigned_user_id':_0x232662['id'],'ticketpriorities':'Normal','ticketstatus':_0x2cd1b6('0x37'),'ticket_title':intUtil['getString'](_0x1cd1ba[_0x2cd1b6('0x56')],_0x16a9f4,'\x20'),'description':intUtil[_0x2cd1b6('0x4c')](_0x1cd1ba[_0x2cd1b6('0x43')],_0x16a9f4,'\x0a'),'contact_id':_0x18af84['id']},getCustomFields(_0x41b41b,_0x16a9f4)),_0x3dcb96={'method':_0x2cd1b6('0x9'),'uri':util[_0x2cd1b6('0x2a')]('%s/webservice.php',_0x12a0ab['remoteUri']),'form':{'operation':_0x2cd1b6('0x49'),'username':_0x12a0ab[_0x2cd1b6('0x2f')],'sessionName':_0x2c57de['sessionName'],'elementType':_0x2cd1b6('0x5'),'element':JSON['stringify'](_0x27e7e8)},'json':!![]};return request(_0x3dcb96)[_0x2cd1b6('0x47')](function(_0x1a9374){const _0x1d4b24=_0x2cd1b6;if(_0x1a9374[_0x1d4b24('0x27')])return Promise['resolve']({'id':_0x1a9374[_0x1d4b24('0x14')]['id']});else throw new Error(util['format'](_0x1d4b24('0x10'),JSON[_0x1d4b24('0x50')](_0x1a9374[_0x1d4b24('0xc')])));})[_0x2cd1b6('0x44')](function(_0x50f63a){const _0x214305=_0x2cd1b6,_0x3b5944=_0x50f63a[_0x214305('0x5c')]||0x1f4;logger[_0x214305('0xc')]('[vTiger],\x20%s,\x20%s,\x20%s',_0x214305('0x33'),_0x3b5944,JSON[_0x214305('0x50')](_0x50f63a));});}function getUser(_0x2ae322,_0x59eba1,_0x2eb385){const _0x57d431=_0x594568;return intUtil['validateEmail'](_0x59eba1)?(logger[_0x57d431('0x8')](_0x57d431('0x39'),_0x59eba1),request({'method':_0x57d431('0x4f'),'uri':util['format'](_0x57d431('0x18'),_0x2ae322[_0x57d431('0x53')]),'qs':{'operation':'query','username':_0x2ae322[_0x57d431('0x2f')],'sessionName':_0x2eb385[_0x57d431('0x3b')],'query':util['format'](_0x57d431('0x5b'),_0x59eba1)},'json':!![]})[_0x57d431('0x47')](function(_0xaccab5){const _0x4d50db=_0x57d431;return _0xaccab5[_0x4d50db('0x27')]&&_0xaccab5[_0x4d50db('0x14')][_0x4d50db('0x13')]?(logger[_0x4d50db('0x8')](_0x4d50db('0x35')),Promise[_0x4d50db('0x23')]({'id':_0xaccab5[_0x4d50db('0x14')][0x0]['id'],'email':_0xaccab5['result'][0x0][_0x4d50db('0x3c')],'name':_0xaccab5[_0x4d50db('0x14')][0x0][_0x4d50db('0x2')]+'\x20'+_0xaccab5[_0x4d50db('0x14')][_0x4d50db('0x29')]})):(logger[_0x4d50db('0x8')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise[_0x4d50db('0x23')]({'id':_0x2eb385[_0x4d50db('0x1f')],'email':_0x2ae322[_0x4d50db('0x2f')],'name':'admin'}));})[_0x57d431('0x44')](function(_0x55bb5f){const _0x544495=_0x57d431,_0x342d24=_0x55bb5f[_0x544495('0x5c')]||0x1f4;logger[_0x544495('0xc')](_0x544495('0x34'),_0x544495('0x46'),_0x342d24,JSON[_0x544495('0x50')](_0x55bb5f));})):(logger['info'](_0x57d431('0x36')),Promise[_0x57d431('0x23')]({'id':_0x2eb385[_0x57d431('0x1f')],'email':_0x2ae322[_0x57d431('0x2f')],'name':_0x57d431('0x4b')})[_0x57d431('0x44')](function(_0xd9d0ab){const _0x2e8900=_0x57d431,_0x52765d=_0xd9d0ab[_0x2e8900('0x5c')]||0x1f4;logger[_0x2e8900('0xc')](_0x2e8900('0x34'),_0x2e8900('0x46'),_0x52765d,JSON[_0x2e8900('0x50')](_0xd9d0ab));}));}function getEndUser(_0x5430b8,_0x1f554b,_0x41becb,_0x5bcc40){const _0x297535=_0x594568;return logger[_0x297535('0x8')](_0x297535('0x16'),_0x41becb),request({'method':_0x297535('0x4f'),'uri':util[_0x297535('0x2a')](_0x297535('0x18'),_0x5430b8[_0x297535('0x53')]),'qs':{'operation':_0x297535('0x57'),'username':_0x5430b8['username'],'sessionName':_0x5bcc40['sessionName'],'query':util[_0x297535('0x2a')](_0x297535('0x2c'),_0x41becb,_0x41becb,_0x41becb,_0x41becb,_0x41becb)},'json':!![]})[_0x297535('0x47')](function(_0x50134a){const _0x2fcf95=_0x297535;return _0x50134a[_0x2fcf95('0x27')]&&_0x50134a[_0x2fcf95('0x14')][_0x2fcf95('0x13')]?(logger['info'](_0x2fcf95('0x20')),Promise[_0x2fcf95('0x23')]({'id':_0x50134a[_0x2fcf95('0x14')][0x0]['id'],'name':_0x50134a[_0x2fcf95('0x14')][0x0][_0x2fcf95('0x15')]+'\x20'+_0x50134a[_0x2fcf95('0x14')][0x0][_0x2fcf95('0x6')],'phone':_0x41becb})):(logger[_0x2fcf95('0x8')](_0x2fcf95('0x32')),request({'method':_0x2fcf95('0x9'),'uri':util[_0x2fcf95('0x2a')](_0x2fcf95('0x18'),_0x5430b8[_0x2fcf95('0x53')]),'form':{'operation':_0x2fcf95('0x49'),'sessionName':_0x5bcc40[_0x2fcf95('0x3b')],'elementType':'Contacts','element':JSON[_0x2fcf95('0x50')]({'lastname':_0x1f554b,'phone':_0x41becb,'assigned_user_id':'\x20'})},'json':!![]})[_0x2fcf95('0x47')](function(_0x466232){const _0x456b3f=_0x2fcf95;return logger[_0x456b3f('0x8')]('Enduser\x20created.'),Promise[_0x456b3f('0x23')]({'id':_0x466232[_0x456b3f('0x14')]['id'],'name':_0x466232[_0x456b3f('0x14')][_0x456b3f('0x6')],'phone':_0x466232[_0x456b3f('0x14')][_0x456b3f('0x1b')]});})['catch'](function(_0x5c835d){const _0x2ae42a=_0x2fcf95,_0xe92433=_0x5c835d[_0x2ae42a('0x5c')]||0x1f4;logger[_0x2ae42a('0xc')](_0x2ae42a('0x34'),_0x2ae42a('0x54'),_0xe92433,JSON[_0x2ae42a('0x50')](_0x5c835d));}));});}function getConnection(_0x58d1df){const _0x355a55=_0x594568,_0x1977c9=_0x58d1df[_0x355a55('0x2f')],_0x4582be=_0x58d1df['accessKey'];return request({'method':'GET','uri':util[_0x355a55('0x2a')](_0x355a55('0x18'),_0x58d1df[_0x355a55('0x53')]),'qs':{'operation':'getchallenge','username':_0x1977c9},'json':!![]})['then'](function(_0x362bb0){const _0x593a15=_0x355a55;if(_0x362bb0[_0x593a15('0x27')])return request({'method':_0x593a15('0x9'),'uri':util[_0x593a15('0x2a')](_0x593a15('0x18'),_0x58d1df[_0x593a15('0x53')]),'form':{'operation':_0x593a15('0xd'),'username':_0x1977c9,'accessKey':md5(_0x362bb0[_0x593a15('0x14')]['token']+_0x4582be)},'json':!![]});})[_0x355a55('0x47')](function(_0x5f0a43){const _0x4c7ad9=_0x355a55;if(_0x5f0a43[_0x4c7ad9('0x27')])return Promise['resolve'](_0x5f0a43[_0x4c7ad9('0x14')]);else throw new Error(util[_0x4c7ad9('0x2a')]('Account\x20%d\x20is\x20not\x20valid',_0x58d1df['id']));})[_0x355a55('0x44')](function(_0x1f4f38){const _0x1a3c31=_0x355a55,_0x5748f9=_0x1f4f38[_0x1a3c31('0x5c')]||0x1f4;logger[_0x1a3c31('0xc')](_0x1a3c31('0x34'),_0x1a3c31('0x31'),_0x5748f9,JSON[_0x1a3c31('0x50')](_0x1f4f38));});}function request(_0xe38e7f){const _0x4288e3=_0x594568;return logger[_0x4288e3('0x8')](_0x4288e3('0x21'),JSON[_0x4288e3('0x50')](_0xe38e7f)),rp(_0xe38e7f);}exports['queue']=function(_0x55c6ba,_0x2429e7,_0x9e5310,_0x3e9199,_0x2cb454,_0x2ff6e5){const _0x482a7b=_0x594568;let _0x5e03a4,_0x5ac7ab,_0x1166a0,_0x5983fd;return _0x2ff6e5['remoteUri']=intUtil['stripTrailingSlash'](_0x2ff6e5[_0x482a7b('0x53')]),_0x2cb454&&_0x2cb454[_0x482a7b('0x2d')]?(logger[_0x482a7b('0x8')](_0x482a7b('0x52'),_0x482a7b('0x11')),_0x2429e7[_0x482a7b('0x48')]=util[_0x482a7b('0x2a')](_0x482a7b('0x28'),_0x2ff6e5[_0x482a7b('0x2b')],_0x2429e7[_0x482a7b('0x5a')],md5(_0x2429e7[_0x482a7b('0x5a')]))):_0x2429e7['recordingURL']='',getConnection(_0x2ff6e5)[_0x482a7b('0x47')](function(_0x1a55d8){const _0x129f9a=_0x482a7b;return _0x5983fd=_0x1a55d8,getUser(_0x2ff6e5,_0x3e9199[_0x129f9a('0x24')],_0x5983fd);})['then'](function(_0x12d6af){const _0xcff41e=_0x482a7b;return _0x5e03a4=_0x12d6af,logger[_0xcff41e('0x8')]('The\x20User\x20ID\x20is:',_0x5e03a4['id']),getEndUser(_0x2ff6e5,_0x2429e7[_0xcff41e('0x55')],_0x2429e7[_0xcff41e('0x4e')],_0x5983fd);})[_0x482a7b('0x47')](function(_0x4f7038){const _0x24f59c=_0x482a7b;return _0x5ac7ab=_0x4f7038,logger[_0x24f59c('0x8')]('The\x20Enduser\x20ID\x20is:',_0x5ac7ab['id']),createTicket(_0x2ff6e5,_0x5e03a4,_0x5ac7ab,_0x9e5310,_0x2429e7,_0x9e5310[_0x24f59c('0x1e')],_0x5983fd);})[_0x482a7b('0x47')](function(_0xbee21f){const _0x45169b=_0x482a7b;_0x1166a0=_0xbee21f,logger[_0x45169b('0x8')]('Ticket\x20created!'),logger['info'](_0x45169b('0x3e'),_0x1166a0['id']);const _0x23a378=util[_0x45169b('0x2a')](_0x45169b('0x22'),_0x2ff6e5[_0x45169b('0x53')],_[_0x45169b('0x41')](_0x1166a0['id'],'x')[0x1]);logger[_0x45169b('0x8')](_0x45169b('0x52'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x45169b('0x2a')](_0x45169b('0x1'),_0x3e9199[_0x45169b('0xa')]),_0x45169b('0x0'),{'uri':_0x23a378});})[_0x482a7b('0x44')](function(_0xc9324a){const _0xbf10f5=_0x482a7b;logger['error']('[QUEUE]',JSON[_0xbf10f5('0x50')](_0xc9324a));});},exports[_0x594568('0x4')]=function(_0x45d87b,_0x14b119,_0x21ef50,_0xee284e,_0x9ce22d,_0x32ced8,_0x2d7e7c){const _0x7663be=_0x594568;let _0x5257f3,_0x220039,_0x4e2f5b,_0x291d26;return _0x32ced8[_0x7663be('0x53')]=intUtil[_0x7663be('0x30')](_0x32ced8[_0x7663be('0x53')]),_0x32ced8[_0x7663be('0x2b')]=intUtil[_0x7663be('0x30')](_0x32ced8[_0x7663be('0x2b')]),_0x2d7e7c&&_0x2d7e7c[_0x7663be('0x1a')]&&_0x2d7e7c['recordingFormat']!==_0x7663be('0x59')&&(logger['info']('[OUTBOUND]',_0x7663be('0x11')),_0x14b119[_0x7663be('0x48')]=util['format'](_0x7663be('0x28'),_0x32ced8[_0x7663be('0x2b')],_0x14b119[_0x7663be('0x5a')],md5(_0x14b119[_0x7663be('0x5a')]))),getConnection(_0x32ced8)[_0x7663be('0x47')](function(_0x313f16){const _0x17ccf2=_0x7663be;return _0x291d26=_0x313f16,getUser(_0x32ced8,_0xee284e[_0x17ccf2('0x24')],_0x291d26);})['then'](function(_0x60b476){const _0x49073b=_0x7663be;return _0x5257f3=_0x60b476,logger[_0x49073b('0x8')]('The\x20User\x20ID\x20is:',_0x5257f3['id']),getEndUser(_0x32ced8,_0x14b119['destcalleridname'],_0x14b119['destcalleridnum'],_0x291d26);})[_0x7663be('0x47')](function(_0x10d8c7){const _0x316ee2=_0x7663be;return _0x220039=_0x10d8c7,logger[_0x316ee2('0x8')]('The\x20Enduser\x20ID\x20is:',_0x220039['id']),createTicket(_0x32ced8,_0x5257f3,_0x220039,_0x21ef50,_0x14b119,_0x21ef50[_0x316ee2('0x1e')],_0x291d26);})[_0x7663be('0x47')](function(_0x16cea7){const _0x3c5149=_0x7663be;_0x4e2f5b=_0x16cea7,logger[_0x3c5149('0x8')]('Ticket\x20created!'),logger[_0x3c5149('0x8')](_0x3c5149('0x3e'),_0x4e2f5b['id']);const _0x220e6b=util[_0x3c5149('0x2a')](_0x3c5149('0x22'),_0x32ced8['remoteUri'],_[_0x3c5149('0x41')](_0x4e2f5b['id'],'x')[0x1]);logger[_0x3c5149('0x8')](_0x3c5149('0x2e'),_0x3c5149('0xf')),emit(util[_0x3c5149('0x2a')](_0x3c5149('0x1'),_0xee284e['name']),'trigger:browser:url',{'uri':_0x220e6b});})[_0x7663be('0x44')](function(_0x5829c8){const _0x226bb4=_0x7663be;logger[_0x226bb4('0xc')](_0x226bb4('0x2e'),JSON[_0x226bb4('0x50')](_0x5829c8));});},exports['unmanaged']=function(_0xfa9408,_0x36d646,_0x23b622,_0x1f5133,_0x5825ad,_0xed147b){const _0x9233b4=_0x594568;let _0x7add6a,_0x4dbb0c,_0x7d6b46,_0x65306;return _0xed147b[_0x9233b4('0x53')]=intUtil[_0x9233b4('0x30')](_0xed147b[_0x9233b4('0x53')]),_0xed147b[_0x9233b4('0x2b')]=intUtil[_0x9233b4('0x30')](_0xed147b['serverUrl']),_0x5825ad&&_0x5825ad[_0x9233b4('0x2d')]?(logger[_0x9233b4('0x8')]('['+_0x36d646[_0x9233b4('0x42')][_0x9233b4('0x17')]()+']',_0x9233b4('0x11')),_0x36d646['recordingURL']=util[_0x9233b4('0x2a')](_0x9233b4('0x28'),_0xed147b['serverUrl'],_0x36d646[_0x9233b4('0x5a')],md5(_0x36d646[_0x9233b4('0x5a')]))):_0x36d646[_0x9233b4('0x48')]='',getConnection(_0xed147b)[_0x9233b4('0x47')](function(_0x430317){return _0x65306=_0x430317,getUser(_0xed147b,'',_0x65306);})[_0x9233b4('0x47')](function(_0x32d846){const _0x104333=_0x9233b4;return _0x7add6a=_0x32d846,logger[_0x104333('0x8')](_0x104333('0x12'),_0x7add6a['id']),getEndUser(_0xed147b,_0x36d646[_0x104333('0x55')],_0x36d646[_0x104333('0x4e')],_0x65306);})[_0x9233b4('0x47')](function(_0x4ba372){const _0x575a0f=_0x9233b4;return _0x4dbb0c=_0x4ba372,logger[_0x575a0f('0x8')](_0x575a0f('0x3f'),_0x4dbb0c['id']),createTicket(_0xed147b,_0x7add6a,_0x4dbb0c,_0x23b622,_0x36d646,_0x23b622[_0x575a0f('0x1e')],_0x65306);})[_0x9233b4('0x47')](function(_0x1fe131){const _0x3df807=_0x9233b4;_0x7d6b46=_0x1fe131,logger[_0x3df807('0x8')]('Ticket\x20created!'),logger[_0x3df807('0x8')](_0x3df807('0x3e'),_0x7d6b46['id']);})['catch'](function(_0x20920a){const _0x53a97c=_0x9233b4;logger['error']('['+_0x36d646[_0x53a97c('0x42')][_0x53a97c('0x17')]()+']',JSON['stringify'](_0x20920a));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/zendesk.js b/server/services/ami/trigger/integration/zendesk.js index 529f469..9dcf6c3 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1145_0x1fa7=['custom_fields','toString','authType','calleridnum','%s/channels/voice/agents/%d/tickets/%d/display.json','Searching\x20enduser\x20with\x20phone','results','emit','util','recordingURL','trigger:browser:url','toUpperCase','Variable','idField','agent','inspect','type:user\x20role:agent\x20email:%s','%s/tickets.json','info','Zendesk\x20account\x20type\x20not\x20recognized','Getting\x20agent\x20with\x20email','%s/agent/tickets/%s','application/json','/api/v2','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','password','none','%s/token:%s','Authorization','customVariable','user','type:user\x20role:end-user\x20phone:%s','zendesk','\x20Error\x20running\x20Zendesk\x20integration','count','then','string','name','stripTrailingSlash','Enduser\x20found!','Descriptions','base64','getString','%s/users/me.json','validateEmail','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','monitor_format','push','email','format','lastevent','Recording\x20is\x20enabled!','../../../../config/logger','Fields','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','[QUEUE]','first','POST','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','destcalleridname','forEach','%s/users.json','customField','The\x20User\x20ID\x20is:','find','remoteUri','error','recordingFormat','[HTTP]','toLowerCase','uniqueid','filter','[OUTBOUND]','The\x20Enduser\x20ID\x20is:','unmanaged','../../../../rediscache','user:%s','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','end-user','catch','variableName','from','length','calleridname','Displaying\x20ticket\x20to\x20agent...','Admin\x20account\x20selected.','type','Agent\x20found!','serverUrl','The\x20Ticket\x20ID\x20is:','replace','Tags','token','outbound','md5','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','integrationTab','Caller\x20-\x20%s','destcalleridnum','content','Basic\x20%s','newTab','username'];(function(_0x907c95,_0x1fa780){const _0x3fc532=function(_0x73b110){while(--_0x73b110){_0x907c95['push'](_0x907c95['shift']());}};_0x3fc532(++_0x1fa780);}(a1145_0x1fa7,0x1a3));const a1145_0x3fc5=function(_0x907c95,_0x1fa780){_0x907c95=_0x907c95-0x0;let _0x3fc532=a1145_0x1fa7[_0x907c95];return _0x3fc532;};const _0xe4ed6e=a1145_0x3fc5;'use strict';const _=require('lodash'),rp=require('request-promise-native'),md5=require(_0xe4ed6e('0x57')),util=require(_0xe4ed6e('0x1')),intUtil=require('./util'),logger=require(_0xe4ed6e('0x2d'))(_0xe4ed6e('0x19')),{getSocket}=require(_0xe4ed6e('0x44')),io=getSocket();function emit(_0x73b110,_0x4e61a0,_0x472893){const _0x16e622=_0xe4ed6e;io['to'](_0x73b110)[_0x16e622('0x0')](_0x4e61a0,_0x472893);}const headers={'Content-Type':_0xe4ed6e('0xf'),'Accept':'application/json'};function getTicket(_0x1ac59b,_0x502cf6,_0x3a61dc,_0x4ffbb4,_0x5275d4){const _0x4eb20f=_0xe4ed6e;return logger[_0x4eb20f('0xb')]('Creating\x20new\x20ticket...'),request({'uri':util[_0x4eb20f('0x2a')](_0x4eb20f('0xa'),_0x1ac59b[_0x4eb20f('0x3a')]),'method':'POST','body':{'ticket':_['merge']({'requester_id':_0x3a61dc['id'],'submitter_id':_0x502cf6?_0x502cf6['id']:undefined,'assignee_id':_0x502cf6?_0x502cf6['id']:undefined,'tags':getTags(_0x4ffbb4[_0x4eb20f('0x54')],_0x4eb20f('0x1e')),'subject':intUtil['getString'](_0x4ffbb4['Subjects'],_0x5275d4,'\x20'),'description':intUtil[_0x4eb20f('0x23')](_0x4ffbb4[_0x4eb20f('0x21')],_0x5275d4,'\x0a'),'comment':{'public':![],'body':intUtil[_0x4eb20f('0x23')](_0x4ffbb4[_0x4eb20f('0x21')],_0x5275d4,'\x0a')}},getCustomFields(_0x4ffbb4[_0x4eb20f('0x2e')],_0x5275d4))}})[_0x4eb20f('0x1c')](function(_0x2a1050){const _0x5eb0aa=_0x4eb20f;return logger[_0x5eb0aa('0xb')]('Ticket\x20created!'),_0x2a1050['ticket'];});}function getUser(_0x44881f,_0x33a344){const _0x38b4c7=_0xe4ed6e;return intUtil[_0x38b4c7('0x25')](_0x33a344)?(logger['info'](_0x38b4c7('0xd'),_0x33a344),request({'uri':util['format']('%s/search.json',_0x44881f[_0x38b4c7('0x3a')]),'qs':{'query':util[_0x38b4c7('0x2a')](_0x38b4c7('0x9'),_0x33a344)}})[_0x38b4c7('0x1c')](function(_0x1a28aa){const _0x3e210c=_0x38b4c7;return _0x1a28aa[_0x3e210c('0x1b')]?(logger[_0x3e210c('0xb')](_0x3e210c('0x50')),_[_0x3e210c('0x39')](_0x1a28aa['results'],{'email':_0x33a344,'role':_0x3e210c('0x7')})):(logger[_0x3e210c('0xb')](_0x3e210c('0x58')),request({'uri':util[_0x3e210c('0x2a')](_0x3e210c('0x24'),_0x44881f[_0x3e210c('0x3a')])})['then'](function(_0x52f363){const _0x41d267=_0x3e210c;return logger['info'](_0x41d267('0x4e')),_0x52f363[_0x41d267('0x17')];}));})):(logger[_0x38b4c7('0xb')](_0x38b4c7('0x58')),request({'uri':util[_0x38b4c7('0x2a')](_0x38b4c7('0x24'),_0x44881f[_0x38b4c7('0x3a')])})['then'](function(_0x1f657a){const _0x192d65=_0x38b4c7;return logger[_0x192d65('0xb')](_0x192d65('0x4e')),_0x1f657a['user'];}));}function getEndUser(_0x4f017a,_0x515ff0,_0x5506da){const _0x48eb26=_0xe4ed6e;return logger['info'](_0x48eb26('0x65'),_0x5506da),request({'uri':util['format']('%s/search.json',_0x4f017a[_0x48eb26('0x3a')]),'qs':{'query':util[_0x48eb26('0x2a')](_0x48eb26('0x18'),_0x5506da)}})[_0x48eb26('0x1c')](function(_0x4b4732){const _0x2505e3=_0x48eb26;let _0xef86b3;return _0x4b4732[_0x2505e3('0x66')][_0x2505e3('0x4b')]&&(_0x4b4732['results']=_[_0x2505e3('0x40')](_0x4b4732[_0x2505e3('0x66')],{'suspended':![],'role':_0x2505e3('0x47')}),_0x4b4732[_0x2505e3('0x66')][_0x2505e3('0x4b')]&&(_0xef86b3=_[_0x2505e3('0x31')](_0x4b4732[_0x2505e3('0x66')]))),_0xef86b3?(logger[_0x2505e3('0xb')](_0x2505e3('0x20')),_0xef86b3):(logger['info'](_0x2505e3('0x33')),request({'uri':util[_0x2505e3('0x2a')](_0x2505e3('0x36'),_0x4f017a[_0x2505e3('0x3a')]),'method':_0x2505e3('0x32'),'body':{'user':{'role':_0x2505e3('0x47'),'name':util[_0x2505e3('0x2a')](_0x2505e3('0x5a'),_0x515ff0||_0x5506da),'phone':_0x5506da}}})[_0x2505e3('0x1c')](function(_0x540087){const _0x3c6165=_0x2505e3;return logger[_0x3c6165('0xb')]('Enduser\x20created.'),_0x540087[_0x3c6165('0x17')];}));});}function getAuth(_0x16bbb7){const _0x83dd71=_0xe4ed6e;let _0x50349c;if(_0x16bbb7[_0x83dd71('0x62')]===_0x83dd71('0x12'))_0x50349c=util[_0x83dd71('0x2a')]('%s:%s',_0x16bbb7[_0x83dd71('0x5f')],_0x16bbb7[_0x83dd71('0x12')]);else _0x16bbb7['authType']===_0x83dd71('0x55')&&(_0x50349c=util[_0x83dd71('0x2a')](_0x83dd71('0x14'),_0x16bbb7[_0x83dd71('0x5f')],_0x16bbb7[_0x83dd71('0x55')]));return util[_0x83dd71('0x2a')](_0x83dd71('0x5d'),Buffer[_0x83dd71('0x4a')](_0x50349c)[_0x83dd71('0x61')](_0x83dd71('0x22')));}function request(_0x3b1bd1){const _0x19cd16=_0xe4ed6e;return logger['debug'](_0x19cd16('0x3d'),JSON['stringify'](_0x3b1bd1)),rp(_['defaults'](_0x3b1bd1,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0xb7bbda,_0x17e188){const _0x4a65b0=_0xe4ed6e;let _0x2a0191=[];return _0xb7bbda&&_0xb7bbda[_0x4a65b0('0x4b')]>0x0&&(_0x2a0191=_['map'](_0xb7bbda,_0x17e188)),_0x2a0191;}function getCustomFields(_0x2d7fbf,_0x3f3966){const _0x4c8040=_0xe4ed6e,_0x573056={'custom_fields':[]};return _0x2d7fbf[_0x4c8040('0x4b')]>0x0&&_[_0x4c8040('0x35')](_0x2d7fbf,function(_0x4c37e0){const _0x503c55=_0x4c8040;if(_0x4c37e0[_0x503c55('0x4f')]===_0x503c55('0x1d')&&_0x4c37e0['nameField']&&!_0x4c37e0[_0x503c55('0x37')])_0x573056[_0x4c37e0['nameField'][_0x503c55('0x3e')]()]=_0x4c37e0['content'][_0x503c55('0x61')]();else{if(_0x4c37e0[_0x503c55('0x4f')]===_0x503c55('0x1d')&&_0x4c37e0[_0x503c55('0x6')]&&_0x4c37e0[_0x503c55('0x37')])_0x573056[_0x503c55('0x60')][_0x503c55('0x28')]({'id':_0x4c37e0['idField'],'value':_0x4c37e0[_0x503c55('0x5c')][_0x503c55('0x61')]()});else{if(_0x4c37e0['type']==='variable'&&_0x4c37e0[_0x503c55('0x49')]&&_0x4c37e0['idField']&&_0x4c37e0[_0x503c55('0x37')])_0x3f3966[_0x4c37e0['variableName']]&&_0x573056['custom_fields'][_0x503c55('0x28')]({'id':_0x4c37e0[_0x503c55('0x6')],'value':_0x3f3966[_0x4c37e0[_0x503c55('0x49')]]['toString']()});else _0x4c37e0[_0x503c55('0x4f')]===_0x503c55('0x16')&&_0x4c37e0[_0x503c55('0x5')]&&_0x4c37e0[_0x503c55('0x5')][_0x503c55('0x1e')]&&_0x4c37e0[_0x503c55('0x6')]&&_0x4c37e0[_0x503c55('0x37')]&&(_0x3f3966[_0x4c37e0[_0x503c55('0x5')]['name'][_0x503c55('0x3e')]()]&&_0x573056[_0x503c55('0x60')]['push']({'id':_0x4c37e0[_0x503c55('0x6')],'value':_0x3f3966[_0x4c37e0[_0x503c55('0x5')]['name']['toLowerCase']()]['toString']()}));}}}),_0x573056;}exports['queue']=function(_0x21f87c,_0x26a88c,_0x5563fb,_0x21f32a,_0x9bd820,_0x284dcd){const _0x353c59=_0xe4ed6e;let _0x3a4f3a,_0x7bbb16;return _0x284dcd[_0x353c59('0x3a')]=intUtil[_0x353c59('0x1f')](_0x284dcd['remoteUri']),_0x284dcd['serverUrl']=intUtil[_0x353c59('0x1f')](_0x284dcd[_0x353c59('0x51')]),_0x9bd820&&_0x9bd820['monitor_format']?(logger[_0x353c59('0xb')]('[QUEUE]',_0x353c59('0x2c')),_0x26a88c['recordingURL']=util[_0x353c59('0x2a')](_0x353c59('0x11'),_0x284dcd[_0x353c59('0x51')],_0x26a88c['uniqueid'],md5(_0x26a88c['uniqueid']))):_0x26a88c[_0x353c59('0x2')]='',headers['Authorization']=getAuth(_0x284dcd),getUser(_0x284dcd,_0x21f32a[_0x353c59('0x29')])[_0x353c59('0x1c')](function(_0x3d7d14){const _0x5b8bcc=_0x353c59;return _0x3a4f3a=_0x3d7d14,logger['info'](_0x5b8bcc('0x38'),_0x3a4f3a['id']),getEndUser(_0x284dcd,_0x26a88c['calleridname'],_0x26a88c[_0x5b8bcc('0x63')]);})[_0x353c59('0x1c')](function(_0x18d474){const _0x39c2e0=_0x353c59;return _0x7bbb16=_0x18d474,logger[_0x39c2e0('0xb')](_0x39c2e0('0x42'),_0x7bbb16['id']),getTicket(_0x284dcd,_0x3a4f3a,_0x7bbb16,_0x5563fb,_0x26a88c);})[_0x353c59('0x1c')](function(_0x5ac24d){const _0x43dd63=_0x353c59;if(_0x5ac24d){logger['info']('The\x20Ticket\x20ID\x20is:',_0x5ac24d['id']);switch(_0x284dcd[_0x43dd63('0x4f')]){case _0x43dd63('0x59'):logger[_0x43dd63('0xb')](_0x43dd63('0x30'),_0x43dd63('0x4d'));return request({'uri':util[_0x43dd63('0x2a')](_0x43dd63('0x64'),_0x284dcd[_0x43dd63('0x3a')],_0x3a4f3a['id'],_0x5ac24d['id']),'method':_0x43dd63('0x32')});case _0x43dd63('0x5e'):logger[_0x43dd63('0xb')]('[QUEUE]',_0x43dd63('0x2f')),emit(util[_0x43dd63('0x2a')](_0x43dd63('0x45'),_0x21f32a[_0x43dd63('0x1e')]),_0x43dd63('0x3'),{'uri':util['format'](_0x43dd63('0xe'),_0x284dcd[_0x43dd63('0x3a')][_0x43dd63('0x53')](_0x43dd63('0x10')),_0x5ac24d['id'])});break;default:logger[_0x43dd63('0x3b')](_0x43dd63('0x30'),_0x43dd63('0xc'));}}})[_0x353c59('0x48')](function(_0x44aa5b){const _0x2999d2=_0x353c59;logger[_0x2999d2('0x3b')](_0x2999d2('0x26'),util[_0x2999d2('0x8')](_0x44aa5b,{'showHidden':!![],'depth':null}));});},exports[_0xe4ed6e('0x56')]=function(_0x9b9ef1,_0x336764,_0x164639,_0x2d3241,_0x3ff892,_0xab3351,_0x4c626b){const _0x35d036=_0xe4ed6e;let _0x334890,_0x1ae4af;return _0xab3351[_0x35d036('0x3a')]=intUtil[_0x35d036('0x1f')](_0xab3351[_0x35d036('0x3a')]),_0xab3351[_0x35d036('0x51')]=intUtil[_0x35d036('0x1f')](_0xab3351['serverUrl']),_0x4c626b&&_0x4c626b[_0x35d036('0x3c')]&&_0x4c626b[_0x35d036('0x3c')]!==_0x35d036('0x13')&&(logger[_0x35d036('0xb')]('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x336764[_0x35d036('0x2')]=util[_0x35d036('0x2a')](_0x35d036('0x11'),_0xab3351[_0x35d036('0x51')],_0x336764['uniqueid'],md5(_0x336764['uniqueid']))),headers[_0x35d036('0x15')]=getAuth(_0xab3351),getUser(_0xab3351,_0x2d3241[_0x35d036('0x29')])[_0x35d036('0x1c')](function(_0x3c4be0){const _0x176b83=_0x35d036;return _0x334890=_0x3c4be0,logger[_0x176b83('0xb')](_0x176b83('0x38'),_0x334890['id']),getEndUser(_0xab3351,_0x336764[_0x176b83('0x34')],_0x336764[_0x176b83('0x5b')]);})[_0x35d036('0x1c')](function(_0x193603){const _0x1668ce=_0x35d036;return _0x1ae4af=_0x193603,logger[_0x1668ce('0xb')](_0x1668ce('0x42'),_0x1ae4af['id']),getTicket(_0xab3351,_0x334890,_0x1ae4af,_0x164639,_0x336764);})[_0x35d036('0x1c')](function(_0x468339){const _0x534d15=_0x35d036;if(_0x468339){logger[_0x534d15('0xb')](_0x534d15('0x52'),_0x468339['id']);switch(_0xab3351[_0x534d15('0x4f')]){case _0x534d15('0x59'):logger[_0x534d15('0xb')](_0x534d15('0x41'),_0x534d15('0x4d'));return request({'uri':util[_0x534d15('0x2a')]('%s/channels/voice/agents/%d/tickets/%d/display.json',_0xab3351['remoteUri'],_0x334890['id'],_0x468339['id']),'method':_0x534d15('0x32')});case _0x534d15('0x5e'):logger[_0x534d15('0xb')](_0x534d15('0x41'),_0x534d15('0x2f')),emit(util[_0x534d15('0x2a')]('user:%s',_0x2d3241[_0x534d15('0x1e')]),_0x534d15('0x3'),{'uri':util[_0x534d15('0x2a')](_0x534d15('0xe'),_0xab3351[_0x534d15('0x3a')][_0x534d15('0x53')]('/api/v2'),_0x468339['id'])});break;default:logger[_0x534d15('0x3b')](_0x534d15('0x41'),_0x534d15('0xc'));}}})[_0x35d036('0x48')](function(_0x22ec47){const _0x263c06=_0x35d036;logger[_0x263c06('0x3b')](_0x263c06('0x46'),util[_0x263c06('0x8')](_0x22ec47,{'showHidden':!![],'depth':null}));});},exports[_0xe4ed6e('0x43')]=function(_0x3e473d,_0x5c421c,_0x1db018,_0x114e7c,_0x33683b,_0x518c6c){const _0x279363=_0xe4ed6e;let _0x3e8537,_0x412fe3;return _0x518c6c[_0x279363('0x3a')]=intUtil[_0x279363('0x1f')](_0x518c6c['remoteUri']),_0x518c6c[_0x279363('0x51')]=intUtil[_0x279363('0x1f')](_0x518c6c[_0x279363('0x51')]),_0x33683b&&_0x33683b[_0x279363('0x27')]?(logger[_0x279363('0xb')]('['+_0x5c421c[_0x279363('0x2b')][_0x279363('0x4')]()+']','Recording\x20is\x20enabled!'),_0x5c421c[_0x279363('0x2')]=util[_0x279363('0x2a')](_0x279363('0x11'),_0x518c6c[_0x279363('0x51')],_0x5c421c[_0x279363('0x3f')],md5(_0x5c421c['uniqueid']))):_0x5c421c[_0x279363('0x2')]='',headers['Authorization']=getAuth(_0x518c6c),getUser(_0x518c6c)[_0x279363('0x1c')](function(_0x1377f7){const _0x145ed6=_0x279363;return _0x3e8537=_0x1377f7,logger[_0x145ed6('0xb')]('The\x20User\x20ID\x20is:',_0x3e8537['id']),getEndUser(_0x518c6c,_0x5c421c[_0x145ed6('0x4c')],_0x5c421c['calleridnum']);})[_0x279363('0x1c')](function(_0x4f1e79){const _0x47812f=_0x279363;return _0x412fe3=_0x4f1e79,logger['info'](_0x47812f('0x42'),_0x412fe3['id']),getTicket(_0x518c6c,_0x3e8537,_0x412fe3,_0x1db018,_0x5c421c);})[_0x279363('0x1c')](function(_0x58da96){const _0xd35e93=_0x279363;_0x58da96&&logger[_0xd35e93('0xb')](_0xd35e93('0x52'),_0x58da96['id']);})[_0x279363('0x48')](function(_0x3ebb01){const _0x256836=_0x279363;logger[_0x256836('0x3b')]('['+_0x5c421c[_0x256836('0x2b')][_0x256836('0x4')]()+']'+_0x256836('0x1a'),util[_0x256836('0x8')](_0x3ebb01,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/integration/zoho.js b/server/services/ami/trigger/integration/zoho.js index 234eb79..ea67ce2 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1146_0x5224=['info','serverUrl','details','data','/crm/v2/Contacts/search?criteria=((Phone:equals:','util','err','Call_Start_Time','uri','answertime','request-promise-native','Answered','recordingFormat','Failing\x20creating\x20the\x20access_token','name','lead','user','toUpperCase','lodash','connect','destcalleridname','The\x20Call\x20ID\x20is:','Owner','The\x20failing\x20result\x20is','length','Who_Id','access_token','diff','Abandoned','isArrayLikeObject','expires_in','first_name','stripTrailingSlash','/crm/EntityInfo.do?module=Calls&id=','[HTTP]','[QUEUE]','isBefore','Inbound','Agent\x20found!','type','forEach','Timeout','Rejected','idField','startCase','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','code','nothing','The\x20User\x20ID\x20is:','emit','starttime','trigger:browser:url','then','YYYY-MM-DDTHH:mm:ss','https://accounts.zoho.com.au','split','abandoned','host','variable','destcalleridnum','Call_Duration','error','uniqueid','Error:\x20','md5','stringify','isNil','users','calleridname','agentcalledAt','lastevent','zone','zoho','user:%s','Zoho-oauthtoken\x20','merge','monitor_format','Descriptions','CREATE\x20ERROR','mm:ss','https://www.zohoapis.','variableName','catch','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','called','clientId','[OUTBOUND]','https://crm.','POST','https://accounts.zoho.com.cn','outbound','/crm/v2/Calls','Call_Type','findIndex','com','Subject','stack','Administrator','First_Name','GET','Recording\x20is\x20enabled!','Description','recordingURL','/crm/v2/Leads/search?criteria=((Phone:equals:','timeout','calleridnum','profile','seconds','https://accounts.zoho.eu','refreshToken','customVariable','Variable','SUCCESS','Contacts','none','Search\x20user','indexOf','Call_Result','Leads','contact_lead','utc','/downloads?type=uniqueid&token=','Full_Name','https://accounts.zoho.com','toString','last_name','refresh_token','contact','Called','toLowerCase','email','zoho.eu','Outbound','log','What_Id','format','administrator','/api/voice/recordings/','https://accounts.zoho.in','Last_Name','role','talktime','moduleCreate','enduserType'];(function(_0x5ee56a,_0x5224d3){const _0x1f2274=function(_0x31c329){while(--_0x31c329){_0x5ee56a['push'](_0x5ee56a['shift']());}};_0x1f2274(++_0x5224d3);}(a1146_0x5224,0x109));const a1146_0x1f22=function(_0x5ee56a,_0x5224d3){_0x5ee56a=_0x5ee56a-0x0;let _0x1f2274=a1146_0x5224[_0x5ee56a];return _0x1f2274;};const _0x397ce2=a1146_0x1f22;'use strict';const _=require(_0x397ce2('0x29')),rp=require(_0x397ce2('0x21')),md5=require(_0x397ce2('0x57')),util=require(_0x397ce2('0x1c')),intUtil=require('./util'),moment=require('moment'),logger=require('../../../../config/logger')(_0x397ce2('0x5f')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x31c329,_0x3704f0,_0x950d73){const _0x5839fc=_0x397ce2;io['to'](_0x31c329)[_0x5839fc('0x48')](_0x3704f0,_0x950d73);}function request(_0x20b034){const _0x5afc00=_0x397ce2;return logger['debug'](_0x5afc00('0x39'),JSON[_0x5afc00('0x58')](_0x20b034)),rp(_0x20b034);}function getCustomFields(_0x5b02e9,_0x5179ef){const _0x16d433=_0x397ce2,_0x398551={};return _0x5b02e9[_0x16d433('0x2f')]>0x0&&_[_0x16d433('0x3f')](_0x5b02e9,function(_0x581743){const _0x4be2fa=_0x16d433;if(_0x581743[_0x4be2fa('0x3e')]==='string'&&_0x581743[_0x4be2fa('0x42')])_0x398551[_0x581743[_0x4be2fa('0x42')]]=_0x581743['content']['toString']();else{if(_0x581743[_0x4be2fa('0x3e')]===_0x4be2fa('0x51')&&_0x581743[_0x4be2fa('0x68')]&&_0x581743[_0x4be2fa('0x42')]&&_0x5179ef[_0x581743[_0x4be2fa('0x68')]])_0x398551[_0x581743[_0x4be2fa('0x42')]]=_0x5179ef[_0x581743['variableName']]['toString']();else _0x581743[_0x4be2fa('0x3e')]===_0x4be2fa('0x85')&&_0x581743['Variable']&&_0x581743[_0x4be2fa('0x86')][_0x4be2fa('0x25')]&&_0x581743[_0x4be2fa('0x42')]&&_0x5179ef[_0x581743[_0x4be2fa('0x86')][_0x4be2fa('0x25')]['toLowerCase']()]&&(_0x398551[_0x581743[_0x4be2fa('0x42')]]=_0x5179ef[_0x581743[_0x4be2fa('0x86')]['name'][_0x4be2fa('0x8')]()][_0x4be2fa('0x3')]());}}),_0x398551;}function getName(_0x4b11af){const _0x3cb9a0=_0x397ce2;if(_0x4b11af[_0x3cb9a0('0x8b')]('\x20')>0x0){const _0x297cf7=_0x4b11af[_0x3cb9a0('0x4e')](/ (.+)/);if(_0x297cf7[0x1])return _0x297cf7;}return[_0x4b11af,_0x4b11af];}const accountsTokens={};function getAccessToken(_0x2aa713){return new Promise(function(_0x73bece,_0x2cf21d){const _0x54b60c=a1146_0x1f22;!_['isNil'](accountsTokens[_0x2aa713['id']])&&!_[_0x54b60c('0x59')](accountsTokens[_0x2aa713['id']][_0x54b60c('0x31')])&&(moment()[_0x54b60c('0x3b')](accountsTokens[_0x2aa713['id']][_0x54b60c('0x35')])&&_0x73bece(accountsTokens[_0x2aa713['id']][_0x54b60c('0x31')]));let _0x43dac6;switch(_0x2aa713[_0x54b60c('0x5e')]){case'US':_0x43dac6=_0x54b60c('0x2');break;case'AU':_0x43dac6=_0x54b60c('0x4d');break;case'EU':_0x43dac6=_0x54b60c('0x83');break;case'IN':_0x43dac6=_0x54b60c('0x11');break;case'CN':_0x43dac6=_0x54b60c('0x70');break;default:_0x43dac6=_0x54b60c('0x83');break;}const _0x844b2c={'method':_0x54b60c('0x6f'),'uri':_0x43dac6+'/oauth/v2/token','qs':{'refresh_token':_0x2aa713[_0x54b60c('0x84')],'client_id':_0x2aa713[_0x54b60c('0x6c')],'client_secret':_0x2aa713['clientSecret'],'grant_type':_0x54b60c('0x5')},'json':!![]};return rp(_0x844b2c)[_0x54b60c('0x4b')](function(_0x3e87f1){const _0x27b8d1=_0x54b60c;accountsTokens[_0x2aa713['id']]={'access_token':_0x3e87f1[_0x27b8d1('0x31')],'expires_in':moment()['add'](_0x3e87f1[_0x27b8d1('0x35')],_0x27b8d1('0x82'))},_0x73bece(_0x3e87f1[_0x27b8d1('0x31')]);})[_0x54b60c('0x69')](function(_0x2d32cc){const _0x239c9f=_0x54b60c;logger[_0x239c9f('0x54')](_0x239c9f('0x24'),_0x2d32cc[_0x239c9f('0x77')]),_0x2cf21d(_0x2d32cc);});});}function getUser(_0x9b475c,_0x450fff,_0x1ce378,_0x506999){const _0x555b7a=_0x397ce2;return logger[_0x555b7a('0x17')](_0x555b7a('0x8a')),request({'method':_0x555b7a('0x7a'),'uri':util[_0x555b7a('0xe')]('https://www.zohoapis.%s/crm/v2/users',_0x450fff),'qs':{'type':'ActiveUsers'},'headers':{'Authorization':_0x555b7a('0x61')+_0x9b475c},'json':!![]})['then'](function(_0x248b98){const _0x12cca1=_0x555b7a;if(_0x248b98[_0x12cca1('0x5a')]){let _0x2dc059=-0x1;if(_[_0x12cca1('0x34')](_0x248b98[_0x12cca1('0x5a')]))return!_[_0x12cca1('0x59')](_0x506999)&&(_0x2dc059=_['findIndex'](_0x248b98[_0x12cca1('0x5a')],function(_0x3b3292){const _0x14beb3=_0x12cca1;return _0x3b3292[_0x14beb3('0x9')]===_0x506999;})),_0x2dc059>=0x0?logger[_0x12cca1('0x17')](_0x12cca1('0x3d')):(logger[_0x12cca1('0x17')]('Using\x20the\x20admin\x20account!'),_0x2dc059=_[_0x12cca1('0x74')](_0x248b98[_0x12cca1('0x5a')],function(_0x1c3d8b){const _0x5450b8=_0x12cca1;return _0x1c3d8b['profile'][_0x5450b8('0x25')]===_0x5450b8('0x78');})),_0x248b98[_0x12cca1('0x5a')][_0x2dc059];else{if(_0x248b98[_0x12cca1('0x27')][_0x12cca1('0x81')][_0x12cca1('0x25')]===_0x12cca1('0x78')){logger[_0x12cca1('0x17')]('Using\x20the\x20admin\x20account!');const _0x436157=_0x248b98[_0x12cca1('0x27')];return _0x436157;}else{logger[_0x12cca1('0x54')](_0x12cca1('0x2e'),JSON[_0x12cca1('0x58')](_0x248b98));throw new Error(_0x12cca1('0x6a')+JSON['stringify'](_0x248b98));}}}else{logger['error'](_0x12cca1('0x2e'),JSON[_0x12cca1('0x58')](_0x248b98));throw new Error(_0x12cca1('0x6a')+JSON[_0x12cca1('0x58')](_0x248b98));}})[_0x555b7a('0x69')](function(_0x9994c6){const _0x15cf5d=_0x555b7a;console[_0x15cf5d('0x54')](_0x9994c6);});}function getZohoUser(_0x28851e,_0x3e57c1){return new Promise(function(_0x5b4a38,_0x5832c0){const _0x2ebeea=a1146_0x1f22;request(_0x28851e)[_0x2ebeea('0x4b')](function(_0x2e9d48){const _0x3b79b7=_0x2ebeea;let _0x5eb1b3=null;_0x2e9d48&&(_0x5eb1b3=_0x2e9d48[_0x3b79b7('0x1a')][0x0],_0x5eb1b3[_0x3b79b7('0x16')]=_0x3e57c1),_0x5b4a38(_0x5eb1b3);})[_0x2ebeea('0x69')](function(_0x5245c8){_0x5832c0(_0x5245c8);});});}function createEndUser(_0x28b5e9,_0x21525f,_0x1281e2,_0x18b3de,_0x42fe6b,_0x5d096e){const _0x3ec1fe=_0x397ce2;return _0x1281e2=getName(_0x1281e2),request({'method':'POST','uri':_0x3ec1fe('0x67')+_0x21525f+'/crm/v2/'+_['startCase'](_0x5d096e[_0x3ec1fe('0x15')])+'s','body':{'data':[{'Last_Name':_0x1281e2[0x1],'First_Name':_0x1281e2[0x0],'Phone':_0x18b3de,'Owner':{'name':!_['isNil'](_0x42fe6b[_0x3ec1fe('0x13')][_0x3ec1fe('0x25')])?_0x42fe6b[_0x3ec1fe('0x13')][_0x3ec1fe('0x25')]:!_[_0x3ec1fe('0x59')](_0x42fe6b[_0x3ec1fe('0x36')])?_0x42fe6b['first_name']+'\x20'+_0x42fe6b['last_name']:_0x42fe6b[_0x3ec1fe('0x4')],'id':_0x42fe6b['id']}}]},'headers':{'Authorization':_0x3ec1fe('0x61')+_0x28b5e9},'json':!![]})[_0x3ec1fe('0x4b')](function(_0x40d1c1){const _0x32e2b9=_0x3ec1fe;if(_0x40d1c1&&_0x40d1c1[_0x32e2b9('0x1a')][0x0]['code']==='SUCCESS'){const _0x289f00=_0x40d1c1['data'][0x0][_0x32e2b9('0x19')];return _0x289f00['enduserType']=_[_0x32e2b9('0x43')](_0x5d096e[_0x32e2b9('0x15')])+'s',_0x289f00;}const _0x1071aa=_0x40d1c1['data'];logger[_0x32e2b9('0x54')](_0x32e2b9('0x2e'),JSON[_0x32e2b9('0x58')](_0x1071aa));throw new Error(_0x32e2b9('0x56')+JSON[_0x32e2b9('0x58')](_0x1071aa));})[_0x3ec1fe('0x69')](function(_0x554006){const _0x22c745=_0x3ec1fe;console[_0x22c745('0xc')](_0x22c745('0x65'),_0x554006);});}function getEndUser(_0x10fd82,_0x167cc6,_0x40c901,_0x1d8d72,_0x37c25a,_0x261c1b,_0x10c538){const _0x46b824=_0x397ce2,_0x41ed28={'method':_0x46b824('0x7a'),'uri':'','headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x10fd82},'json':!![]};switch(_0x10c538['moduleSearch']){case _0x46b824('0x8e'):_0x41ed28[_0x46b824('0x1f')]=_0x46b824('0x67')+_0x167cc6+_0x46b824('0x1b')+_0x37c25a+'))';return getZohoUser(_0x41ed28,'Contacts')[_0x46b824('0x4b')](function(_0x1586cd){const _0x86201c=_0x46b824;if(_0x1586cd)return _0x1586cd;return _0x41ed28[_0x86201c('0x1f')]='https://www.zohoapis.'+_0x167cc6+_0x86201c('0x7e')+_0x37c25a+'))',getZohoUser(_0x41ed28,_0x86201c('0x8d'))[_0x86201c('0x4b')](function(_0x296fdf){const _0x452995=_0x86201c;if(_0x296fdf)return _0x296fdf;return _0x10c538['moduleCreate']!=_0x452995('0x46')?createEndUser(_0x10fd82,_0x167cc6,_0x1d8d72,_0x37c25a,_0x261c1b,_0x10c538):{};});});case _0x46b824('0x6'):_0x41ed28[_0x46b824('0x1f')]='https://www.zohoapis.'+_0x167cc6+_0x46b824('0x1b')+_0x37c25a+'))';return getZohoUser(_0x41ed28,'Contacts')[_0x46b824('0x4b')](function(_0x57d945){const _0x40c9b5=_0x46b824;if(_0x57d945)return _0x57d945;return _0x10c538[_0x40c9b5('0x15')]!=_0x40c9b5('0x46')?createEndUser(_0x10fd82,_0x167cc6,_0x1d8d72,_0x37c25a,_0x261c1b,_0x10c538):{};});case _0x46b824('0x26'):_0x41ed28[_0x46b824('0x1f')]=_0x46b824('0x67')+_0x167cc6+'/crm/v2/Leads/search?criteria=((Phone:equals:'+_0x37c25a+'))';return getZohoUser(_0x41ed28,_0x46b824('0x8d'))[_0x46b824('0x4b')](function(_0x5ba339){const _0x44da32=_0x46b824;if(_0x5ba339)return _0x5ba339;return _0x10c538['moduleCreate']!=_0x44da32('0x46')?createEndUser(_0x10fd82,_0x167cc6,_0x1d8d72,_0x37c25a,_0x261c1b,_0x10c538):{};});}}function getCall(_0x312e12,_0x2c1858,_0x1482a5,_0x3b72eb,_0x21d519,_0xdb8b2f,_0x545d6c,_0x51753f){const _0x5f3ae0=_0x397ce2;logger[_0x5f3ae0('0x17')]('Creating\x20new\x20call...');let _0x5472c1={};_0x5472c1[_0x5f3ae0('0x2d')]={'name':!_['isNil'](_0x3b72eb[_0x5f3ae0('0x13')]['name'])&&!_['isNil'](_0x3b72eb[_0x5f3ae0('0x81')][_0x5f3ae0('0x25')])&&_0x3b72eb['profile']['name']===_0x5f3ae0('0xf')?_0x3b72eb[_0x5f3ae0('0x13')]['name']:!_[_0x5f3ae0('0x59')](_0x3b72eb[_0x5f3ae0('0x36')])?_0x3b72eb[_0x5f3ae0('0x36')]+'\x20'+_0x3b72eb[_0x5f3ae0('0x4')]:_0x3b72eb['last_name'],'id':_0x3b72eb['id']},_0x5472c1[_0x5f3ae0('0x76')]=intUtil['getString'](_0xdb8b2f['Subjects'],_0x545d6c,'\x20'),_0x5472c1[_0x5f3ae0('0x7c')]=intUtil['getString'](_0xdb8b2f[_0x5f3ae0('0x64')],_0x545d6c,'\x0a');_0x21d519['enduserType']===_0x5f3ae0('0x88')&&(_0x5472c1[_0x5f3ae0('0x30')]={'name':!_[_0x5f3ae0('0x59')](_0x21d519[_0x5f3ae0('0x1')])?_0x21d519['Full_Name']:!_['isNil'](_0x21d519[_0x5f3ae0('0x79')])?_0x21d519[_0x5f3ae0('0x79')]+'\x20'+_0x21d519['Last_Name']:_0x21d519[_0x5f3ae0('0x12')],'id':_0x21d519['id']});_0x21d519['enduserType']==='Leads'&&(_0x5472c1[_0x5f3ae0('0xd')]={'name':!_['isNil'](_0x21d519[_0x5f3ae0('0x1')])?_0x21d519[_0x5f3ae0('0x1')]:!_[_0x5f3ae0('0x59')](_0x21d519[_0x5f3ae0('0x79')])?_0x21d519[_0x5f3ae0('0x79')]+'\x20'+_0x21d519[_0x5f3ae0('0x12')]:_0x21d519['Last_Name'],'id':_0x21d519['id']},_0x5472c1['$se_module']=_['startCase'](_0x21d519[_0x5f3ae0('0x16')]));if(_0x545d6c['talktime'])_0x5472c1[_0x5f3ae0('0x53')]=moment[_0x5f3ae0('0x8f')](parseInt(_0x545d6c[_0x5f3ae0('0x14')])*0x3e8)['format'](_0x5f3ae0('0x66'));else _0x545d6c[_0x5f3ae0('0x20')]&&_0x545d6c['endtime']&&(_0x5472c1[_0x5f3ae0('0x53')]=moment['utc'](moment(_0x545d6c['endtime'],_0x5f3ae0('0x4c'))[_0x5f3ae0('0x32')](moment(_0x545d6c['starttime'],'YYYY-MM-DDTHH:mm:ss')))['format'](_0x5f3ae0('0x66')));switch(_0x545d6c['lastevent']){case _0x5f3ae0('0x6b'):_0x5472c1['Call_Result']=_0x5f3ae0('0x7');break;case'complete':case _0x5f3ae0('0x2a'):_0x5472c1['Call_Result']=_0x5f3ae0('0x22');break;case'rejected':_0x5472c1[_0x5f3ae0('0x8c')]=_0x5f3ae0('0x41');break;case _0x5f3ae0('0x4f'):_0x5472c1[_0x5f3ae0('0x8c')]=_0x5f3ae0('0x33');break;case _0x5f3ae0('0x7f'):_0x5472c1[_0x5f3ae0('0x8c')]=_0x5f3ae0('0x40');break;default:break;}return _0x5472c1[_0x5f3ae0('0x1e')]=(_0x51753f===_0x5f3ae0('0x71')?moment(_0x545d6c[_0x5f3ae0('0x49')])[_0x5f3ae0('0xe')]('YYYY-MM-DDTHH:mm:ss'):moment(_0x545d6c[_0x5f3ae0('0x5c')])['format'](_0x5f3ae0('0x4c')))||moment()[_0x5f3ae0('0xe')]('YYYY-MM-DDTHH:mm:ss'),_0x5472c1[_0x5f3ae0('0x73')]=_0x51753f||_0x5f3ae0('0x3c'),_0x5472c1=_[_0x5f3ae0('0x62')](_0x5472c1,getCustomFields(_0xdb8b2f['Fields'],_0x545d6c)),request({'method':_0x5f3ae0('0x6f'),'uri':_0x5f3ae0('0x67')+_0x2c1858+_0x5f3ae0('0x72'),'headers':{'Authorization':_0x5f3ae0('0x61')+_0x312e12},'body':{'data':[_0x5472c1]},'json':!![]})[_0x5f3ae0('0x4b')](function(_0x41fcaa){const _0x1b1e74=_0x5f3ae0;if(_0x41fcaa&&_0x41fcaa[_0x1b1e74('0x1a')][0x0][_0x1b1e74('0x45')]===_0x1b1e74('0x87'))return logger[_0x1b1e74('0x17')]('Call\x20created!'),{'id':_0x41fcaa[_0x1b1e74('0x1a')][0x0]['details']['id']};})['catch'](function(_0x1d5671){const _0x4ae970=_0x5f3ae0;logger[_0x4ae970('0x17')](_0x4ae970('0x1d'),_0x1d5671[_0x4ae970('0x77')]),console[_0x4ae970('0xc')](_0x4ae970('0x1d'),_0x1d5671);});}exports['queue']=function(_0x5594aa,_0x24a9b7,_0x175866,_0x1942c8,_0x53984e,_0x1eddea){const _0x49cafc=_0x397ce2;let _0x552a02,_0x23a55a,_0x11d790;_0x1eddea['host']=intUtil[_0x49cafc('0x37')](_0x1eddea['host']),_0x1eddea[_0x49cafc('0x18')]=intUtil[_0x49cafc('0x37')](_0x1eddea[_0x49cafc('0x18')]);_0x53984e&&_0x53984e['monitor_format']?(logger['info']('[QUEUE]',_0x49cafc('0x7b')),_0x24a9b7[_0x49cafc('0x7d')]=_0x1eddea[_0x49cafc('0x18')]+'/api/voice/recordings/'+_0x24a9b7[_0x49cafc('0x55')]+_0x49cafc('0x0')+md5(_0x24a9b7[_0x49cafc('0x55')])):_0x24a9b7[_0x49cafc('0x7d')]='';const _0x1a412f=_0x1eddea['host']===_0x49cafc('0xa')?'eu':'com';return getAccessToken(_0x1eddea)[_0x49cafc('0x4b')](function(_0x148d33){const _0x4658b8=_0x49cafc;return _0x11d790=_0x148d33,getUser(_0x11d790,_0x1a412f,_0x1eddea,_0x1942c8[_0x4658b8('0x9')]);})[_0x49cafc('0x4b')](function(_0x265da0){const _0x140c5e=_0x49cafc;return _0x552a02=_0x265da0,logger[_0x140c5e('0x17')](_0x140c5e('0x47'),_0x552a02['id']),getEndUser(_0x11d790,_0x1a412f,_0x1eddea,_0x24a9b7[_0x140c5e('0x5b')],_0x24a9b7[_0x140c5e('0x80')],_0x552a02,_0x175866);})[_0x49cafc('0x4b')](function(_0xb79e44){const _0x2c135b=_0x49cafc;return _0x23a55a=_0xb79e44,getCall(_0x11d790,_0x1a412f,_0x1eddea,_0x552a02,_0x23a55a,_0x175866,_0x24a9b7,_0x2c135b('0x3c'));})[_0x49cafc('0x4b')](function(_0x295934){const _0xe7abca=_0x49cafc;_0x295934&&(logger[_0xe7abca('0x17')](_0xe7abca('0x2c'),_0x295934['id']),logger[_0xe7abca('0x17')](_0xe7abca('0x3a'),_0xe7abca('0x44')),emit(util[_0xe7abca('0xe')](_0xe7abca('0x60'),_0x1942c8[_0xe7abca('0x25')]),_0xe7abca('0x4a'),{'uri':_0xe7abca('0x6e')+_0x1eddea[_0xe7abca('0x50')]+_0xe7abca('0x38')+_0x295934['id']}));})[_0x49cafc('0x69')](function(_0x2e78f1){const _0x1470da=_0x49cafc;logger[_0x1470da('0x54')]('[QUEUE]',JSON[_0x1470da('0x58')](_0x2e78f1));});},exports[_0x397ce2('0x71')]=function(_0x1e5346,_0x21e287,_0x477f09,_0x469b17,_0x153ef9,_0x308cb2,_0x4aa7c5){const _0xb929be=_0x397ce2;let _0x24be91,_0x1cacef,_0x475762;_0x308cb2[_0xb929be('0x50')]=intUtil[_0xb929be('0x37')](_0x308cb2['host']),_0x308cb2[_0xb929be('0x18')]=intUtil['stripTrailingSlash'](_0x308cb2[_0xb929be('0x18')]);_0x4aa7c5&&_0x4aa7c5[_0xb929be('0x23')]&&_0x4aa7c5[_0xb929be('0x23')]!==_0xb929be('0x89')&&(logger[_0xb929be('0x17')](_0xb929be('0x6d'),_0xb929be('0x7b')),_0x21e287[_0xb929be('0x7d')]=_0x308cb2[_0xb929be('0x18')]+_0xb929be('0x10')+_0x21e287['uniqueid']+'/downloads?type=uniqueid&token='+md5(_0x21e287[_0xb929be('0x55')]));const _0x2f85f3=_0x308cb2['host']===_0xb929be('0xa')?'eu':'com';return getAccessToken(_0x308cb2)['then'](function(_0x1292b8){const _0xa95ace=_0xb929be;return _0x475762=_0x1292b8,getUser(_0x475762,_0x2f85f3,_0x308cb2,_0x469b17[_0xa95ace('0x9')]);})[_0xb929be('0x4b')](function(_0x30f580){const _0x4c0cab=_0xb929be;return _0x24be91=_0x30f580,logger[_0x4c0cab('0x17')](_0x4c0cab('0x47'),_0x24be91['id']),getEndUser(_0x475762,_0x2f85f3,_0x308cb2,_0x21e287[_0x4c0cab('0x2b')],_0x21e287[_0x4c0cab('0x52')],_0x24be91,_0x477f09);})[_0xb929be('0x4b')](function(_0x4aee74){const _0x16d227=_0xb929be;return _0x1cacef=_0x4aee74,getCall(_0x475762,_0x2f85f3,_0x308cb2,_0x24be91,_0x1cacef,_0x477f09,_0x21e287,_0x16d227('0xb'));})['then'](function(_0x4c6bd1){const _0x291a6=_0xb929be;_0x4c6bd1&&(logger['info'](_0x291a6('0x2c'),_0x4c6bd1['id']),logger[_0x291a6('0x17')](_0x291a6('0x6d'),'Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x291a6('0xe')](_0x291a6('0x60'),_0x469b17[_0x291a6('0x25')]),_0x291a6('0x4a'),{'uri':_0x291a6('0x6e')+_0x308cb2['host']+_0x291a6('0x38')+_0x4c6bd1['id']}));})[_0xb929be('0x69')](function(_0x18d2fb){const _0x3967e6=_0xb929be;logger[_0x3967e6('0x54')](_0x3967e6('0x6d'),JSON['stringify'](_0x18d2fb));});},exports['unmanaged']=function(_0x570f7d,_0x480a61,_0x2880fa,_0x157624,_0xfda28b,_0x45bab2){const _0x140049=_0x397ce2;let _0x16621e,_0x55eef8,_0x40c0cd;_0x45bab2[_0x140049('0x50')]=intUtil[_0x140049('0x37')](_0x45bab2[_0x140049('0x50')]),_0x45bab2['serverUrl']=intUtil[_0x140049('0x37')](_0x45bab2['serverUrl']);_0xfda28b&&_0xfda28b[_0x140049('0x63')]?(logger[_0x140049('0x17')]('['+_0x480a61['lastevent'][_0x140049('0x28')]()+']',_0x140049('0x7b')),_0x480a61[_0x140049('0x7d')]=_0x45bab2[_0x140049('0x18')]+_0x140049('0x10')+_0x480a61[_0x140049('0x55')]+_0x140049('0x0')+md5(_0x480a61[_0x140049('0x55')])):_0x480a61['recordingURL']='';const _0x1dcf37=_0x45bab2[_0x140049('0x50')]===_0x140049('0xa')?'eu':_0x140049('0x75');return getAccessToken(_0x45bab2)[_0x140049('0x4b')](function(_0x4a2fa9){return _0x40c0cd=_0x4a2fa9,getUser(_0x40c0cd,_0x1dcf37,_0x45bab2);})[_0x140049('0x4b')](function(_0x42469f){const _0x499909=_0x140049;return _0x16621e=_0x42469f,logger['info'](_0x499909('0x47'),_0x16621e['id']),getEndUser(_0x40c0cd,_0x1dcf37,_0x45bab2,_0x480a61[_0x499909('0x5b')],_0x480a61['calleridnum'],_0x16621e,_0x2880fa);})['then'](function(_0x1ba714){const _0x43226d=_0x140049;return _0x55eef8=_0x1ba714,getCall(_0x40c0cd,_0x1dcf37,_0x45bab2,_0x16621e,_0x55eef8,_0x2880fa,_0x480a61,_0x43226d('0x3c'));})[_0x140049('0x4b')](function(_0x181ef9){const _0x537272=_0x140049;_0x181ef9&&logger[_0x537272('0x17')]('The\x20Call\x20ID\x20is:',_0x181ef9['id']);})['catch'](function(_0x4d0fea){const _0x430e06=_0x140049;logger[_0x430e06('0x54')]('['+_0x480a61[_0x430e06('0x5d')][_0x430e06('0x28')]()+']',JSON[_0x430e06('0x58')](_0x4d0fea));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/script/index.js b/server/services/ami/trigger/script/index.js index 1357460..132470d 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1147_0x3497=['error','util','exec','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','../../../../config/logger','info','mustache','format','shelljs','data2','data3','Script','render'];(function(_0x842ecd,_0x349756){const _0x478587=function(_0x23145c){while(--_0x23145c){_0x842ecd['push'](_0x842ecd['shift']());}};_0x478587(++_0x349756);}(a1147_0x3497,0x1a3));const a1147_0x4785=function(_0x842ecd,_0x349756){_0x842ecd=_0x842ecd-0x0;let _0x478587=a1147_0x3497[_0x842ecd];return _0x478587;};const _0x4c2057=a1147_0x4785;'use strict';const util=require(_0x4c2057('0x2')),sh=require(_0x4c2057('0xa')),Mustache=require(_0x4c2057('0x8')),logger=require(_0x4c2057('0x6'))('trigger');exports['exec']=function(_0x23145c,_0x59f0b2){const _0x1fd659=_0x4c2057,_0x5ee1ca=_0x23145c['data2']?_0x23145c[_0x1fd659('0xb')]:_0x1fd659('0xd'),_0x125ab6=_0x23145c['data3']?Mustache[_0x1fd659('0x0')](_0x23145c[_0x1fd659('0xc')],_0x59f0b2):_0x59f0b2;sh[_0x1fd659('0x3')](_0x125ab6,function(_0x26035f,_0x4724f,_0x596b35){const _0x2ea2ba=_0x1fd659;_0x26035f!==0x0?logger[_0x2ea2ba('0x1')](util['format'](_0x2ea2ba('0x5'),_0x5ee1ca,_0x125ab6,_0x26035f,_0x596b35)):logger[_0x2ea2ba('0x7')](util[_0x2ea2ba('0x9')](_0x2ea2ba('0x4'),_0x5ee1ca,_0x125ab6,_0x4724f));});}; \ No newline at end of file +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 diff --git a/server/services/ami/trigger/urlforward/index.js b/server/services/ami/trigger/urlforward/index.js index 6095a26..a6543f8 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1148_0x1fc5=['headers','data7','util','isNil','data1','number','trigger','data6','catch','parse','render','exec','POST','request-promise-native','data2','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','error','PUT','GET','data5',',\x20request\x20body:\x20','DELETE','stringify','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s','then','object','format','mustache','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','lodash','body','stack','message','toUpperCase','info'];(function(_0x39fd52,_0x1fc516){const _0x5bd25a=function(_0x263e26){while(--_0x263e26){_0x39fd52['push'](_0x39fd52['shift']());}};_0x5bd25a(++_0x1fc516);}(a1148_0x1fc5,0x187));const a1148_0x5bd2=function(_0x39fd52,_0x1fc516){_0x39fd52=_0x39fd52-0x0;let _0x5bd25a=a1148_0x1fc5[_0x39fd52];return _0x5bd25a;};const _0x32c743=a1148_0x5bd2;'use strict';const rp=require(_0x32c743('0x7')),util=require(_0x32c743('0x1f')),_=require(_0x32c743('0x17')),Mustache=require(_0x32c743('0x15')),logger=require('../../../../config/logger')(_0x32c743('0x0'));exports[_0x32c743('0x5')]=function(_0x263e26,_0x3a2f41){const _0x439f06=_0x32c743;let _0x363731,_0x1c375b;const _0x48cc64={'method':_0x263e26[_0x439f06('0x21')][_0x439f06('0x1b')](),'uri':Mustache[_0x439f06('0x4')](_0x263e26[_0x439f06('0x8')],_0x3a2f41),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x263e26['data5'])===_0x439f06('0x22')&&parseInt(_0x263e26['data5'])>=0x1&&parseInt(_0x263e26['data5'])<=0xa?parseInt(_0x263e26[_0x439f06('0xd')])*0x3e8:0x5*0x3e8};try{_0x48cc64[_0x439f06('0x1d')]=_0x263e26[_0x439f06('0x1')]?JSON['parse'](Mustache[_0x439f06('0x4')](_0x263e26[_0x439f06('0x1')],_0x3a2f41)):{};}catch(_0x3da40f){logger[_0x439f06('0xa')](_0x3da40f[_0x439f06('0x19')]);}switch(_0x263e26[_0x439f06('0x21')]['toUpperCase']()){case _0x439f06('0xc'):case _0x439f06('0xf'):_0x363731=null,_0x48cc64['qs']=_0x3a2f41;break;case _0x439f06('0x6'):case _0x439f06('0xb'):if(_0x263e26[_0x439f06('0x1e')])try{_0x363731=JSON[_0x439f06('0x3')](Mustache[_0x439f06('0x4')](_0x263e26['data7'],_0x3a2f41)),_0x48cc64[_0x439f06('0x18')]=_0x363731;}catch(_0x3dfe03){logger['error'](_0x3dfe03['stack']),logger[_0x439f06('0xa')]('body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format');}else _0x363731=_0x3a2f41,_0x48cc64[_0x439f06('0x18')]=_0x363731;break;}logger['info'](util[_0x439f06('0x14')](_0x439f06('0x9'),_0x263e26[_0x439f06('0x21')],_0x263e26[_0x439f06('0x8')],JSON[_0x439f06('0x10')](_0x48cc64))),rp(_0x48cc64)[_0x439f06('0x12')](function(_0x1083be){const _0x68b281=_0x439f06;_0x363731=!_[_0x68b281('0x20')](_0x363731)?_0x68b281('0xe')+_0x363731:'',_0x1c375b=typeof _0x1083be[_0x68b281('0x18')]===_0x68b281('0x13')?JSON[_0x68b281('0x10')](_0x1083be['body']):_0x1083be['body'],logger[_0x68b281('0x1c')](util[_0x68b281('0x14')](_0x68b281('0x11'),_0x263e26[_0x68b281('0x21')],_0x263e26[_0x68b281('0x8')],_0x1083be['statusCode'],_0x1c375b));})[_0x439f06('0x2')](function(_0x109560){const _0x43a618=_0x439f06;logger['error'](util[_0x43a618('0x14')](_0x43a618('0x16'),_0x263e26[_0x43a618('0x21')],_0x263e26[_0x43a618('0x8')],_0x109560['statusCode'],_0x109560['name'],_0x109560[_0x43a618('0x1a')]));});}; \ No newline at end of file +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 diff --git a/server/services/email/client.js b/server/services/email/client.js index 50a8361..637e7b0 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1149_0x54af=['catch','error','jayson/promise','Request','../../config/logger','result','http','exports','rpc','debug','then','request','message','routing'];(function(_0x466d11,_0x54af1f){const _0x47b4a8=function(_0x36e554){while(--_0x36e554){_0x466d11['push'](_0x466d11['shift']());}};_0x47b4a8(++_0x54af1f);}(a1149_0x54af,0x132));const a1149_0x47b4=function(_0x466d11,_0x54af1f){_0x466d11=_0x466d11-0x0;let _0x47b4a8=a1149_0x54af[_0x466d11];return _0x47b4a8;};const _0xb58d68=a1149_0x47b4;'use strict';const jayson=require(_0xb58d68('0x4')),logger=require(_0xb58d68('0x6'))(_0xb58d68('0x1')),client=jayson['client'][_0xb58d68('0x8')]({'port':0x2329});client[_0xb58d68('0x5')]=function(_0x36e554,_0x3f9e8d){return new Promise(function(_0x3d64a3,_0x57bf68){const _0x2147d9=a1149_0x47b4;return client[_0x2147d9('0xd')](_0x36e554,_0x3f9e8d)[_0x2147d9('0xc')](function(_0x56e169){const _0xb8ebfc=_0x2147d9;return logger[_0xb8ebfc('0xb')](_0xb8ebfc('0xa'),'routing',_0x36e554,_0x3f9e8d,_0x56e169),_0x56e169[_0xb8ebfc('0x3')]?(logger[_0xb8ebfc('0x3')](_0xb8ebfc('0xa'),'routing',_0x36e554,_0x56e169[_0xb8ebfc('0x3')]['message'],_0x3f9e8d),_0x57bf68(_0x56e169['error'][_0xb8ebfc('0x0')])):_0x3d64a3(_0x56e169[_0xb8ebfc('0x7')]);})[_0x2147d9('0x2')](function(_0x40f95d){const _0x146558=_0x2147d9;return logger[_0x146558('0x3')](_0x146558('0xa'),_0x146558('0x1'),_0x36e554,_0x40f95d,_0x3f9e8d),_0x57bf68(_0x40f95d);});});},module[_0xb58d68('0x9')]=client; \ No newline at end of file +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 diff --git a/server/services/email/index.js b/server/services/email/index.js index ba1269b..93525db 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1150_0x5cf7=['../../mysqldb','refresh','resolve','catch','initMailAccounts','listen','./rpc/mailAccount','loginMailFrequency','./server','then','./realtime','getMailAccounts','./lib/email','Setting','log'];(function(_0x491e23,_0x5cf7a1){const _0x36ddf5=function(_0xa73757){while(--_0xa73757){_0x491e23['push'](_0x491e23['shift']());}};_0x36ddf5(++_0x5cf7a1);}(a1150_0x5cf7,0xca));const a1150_0x36dd=function(_0x491e23,_0x5cf7a1){_0x491e23=_0x491e23-0x0;let _0x36ddf5=a1150_0x5cf7[_0x491e23];return _0x36ddf5;};const _0x2fcd46=a1150_0x36dd;'use strict';require('../../globals');const server=require(_0x2fcd46('0x1')),Realtime=require(_0x2fcd46('0x3')),EmailChannel=require(_0x2fcd46('0x5')),mailAccount=require(_0x2fcd46('0xe')),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0x2fcd46('0x8'))['db'];function initRealtime(){const _0x563b86=_0x2fcd46;return Promise[_0x563b86('0xa')]()[_0x563b86('0x2')](mailAccount[_0x563b86('0x4')]())[_0x563b86('0x2')](realtime[_0x563b86('0xc')]())['then'](function(){const _0x27b4c0=_0x563b86;return email[_0x27b4c0('0x9')](realtime['mailAccounts']),realtime;});}function main(){const _0x52632f=_0x2fcd46;return server[_0x52632f('0xd')](realtime,email)[_0x52632f('0x2')](function(){return initRealtime();})[_0x52632f('0x2')](function(){const _0x58e3bf=_0x52632f;return db[_0x58e3bf('0x6')]['findOne']({'attributes':['id',_0x58e3bf('0x0')],'raw':!![]});})[_0x52632f('0x2')](function(_0xa73757){return setInterval(initRealtime,_0xa73757['loginMailFrequency']*0x3e8);})[_0x52632f('0xb')](function(_0x415cc9){const _0x1491fe=_0x52632f;console[_0x1491fe('0x7')](_0x415cc9);});}main(); \ No newline at end of file +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 diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index 93bb463..bfc7f02 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1151_0x31c1=['smtp','verify','total','handleImapError','isNil','catch','moment','active','stringify','mailAccount:update','firstName','bind','box','emit','sendMail','lastSync','../../../rediscache','./imap','Smtp','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','lodash','./smtp','exports','email','Imap','handleImapEmail','connected','prototype','lastName','info','then','name','end','disabled','Mail\x20accepted\x20from\x20routing','handleImapBox','imapAccounts','../rpc/mailAccount','undefined','messageStatus','handleImapEnd','status','mailAccounts','from','key','verified','../../../config/logger','verifySmtp','error','Mail\x20not\x20accepted\x20from\x20routing\x20%s','md5'];(function(_0x27889f,_0x31c157){const _0x173a06=function(_0x24153a){while(--_0x24153a){_0x27889f['push'](_0x27889f['shift']());}};_0x173a06(++_0x31c157);}(a1151_0x31c1,0xea));const a1151_0x173a=function(_0x27889f,_0x31c157){_0x27889f=_0x27889f-0x0;let _0x173a06=a1151_0x31c1[_0x27889f];return _0x173a06;};const _0x56037b=a1151_0x173a;'use strict';const _=require(_0x56037b('0x29')),moment=require(_0x56037b('0x1b')),md5=require(_0x56037b('0x14')),logger=require(_0x56037b('0x10'))('email'),{getSocket}=require(_0x56037b('0x25')),io=getSocket(),EmailImap=require(_0x56037b('0x26')),EmailSmtp=require(_0x56037b('0x2a')),mailAccount=require(_0x56037b('0x7')),md5Accounts={};function EmailChannel(_0x24153a){const _0x55f10c=_0x56037b;logger['info']('start\x20email\x20channel'),this['mailAccounts']=_0x24153a[_0x55f10c('0xc')],this['imapAccounts']={},this[_0x55f10c('0x15')]=new EmailSmtp();}EmailChannel[_0x56037b('0x30')][_0x56037b('0x22')]=function(_0x4a7228){const _0x1c7d0c=_0x56037b,_0xd94005=this[_0x1c7d0c('0xc')][_0x4a7228],_0x13c7fb={'id':_0xd94005['id'],'name':_0xd94005[_0x1c7d0c('0x1')],'key':_0xd94005[_0x1c7d0c('0xe')],'active':_0xd94005[_0x1c7d0c('0x1c')],'Imap':{'status':_0xd94005[_0x1c7d0c('0x2d')][_0x1c7d0c('0xb')],'messageStatus':_0xd94005[_0x1c7d0c('0x2d')]['messageStatus'],'total':_0xd94005[_0x1c7d0c('0x2d')]['total']}};_['isNil'](md5Accounts[_0x4a7228])&&(md5Accounts[_0x4a7228]={});const _0x8e3255=md5(JSON[_0x1c7d0c('0x1d')](_0x13c7fb));md5Accounts[_0x4a7228][_0x1c7d0c('0x14')]!==_0x8e3255&&(md5Accounts[_0x4a7228][_0x1c7d0c('0x14')]=_0x8e3255,io[_0x1c7d0c('0x22')](_0x1c7d0c('0x1e'),_0x13c7fb));},EmailChannel[_0x56037b('0x30')]['refresh']=function(_0x33bac0){const _0x407a0d=_0x56037b;for(const _0x44f962 in _0x33bac0){if(typeof _0x33bac0[_0x44f962]!==_0x407a0d('0x8')){if(_0x33bac0[_0x44f962][_0x407a0d('0x2d')]&&_0x33bac0[_0x44f962][_0x407a0d('0x1c')]){const _0x421cf6=_0x33bac0[_0x44f962][_0x407a0d('0x2d')];typeof this['imapAccounts'][_0x421cf6['id']]===_0x407a0d('0x8')&&(this[_0x407a0d('0x6')][_0x421cf6['id']]=new EmailImap(_0x421cf6,_0x33bac0[_0x44f962][_0x407a0d('0x2c')]),this[_0x407a0d('0x6')][_0x421cf6['id']]['on'](_0x407a0d('0x21'),this[_0x407a0d('0x5')][_0x407a0d('0x20')](this,_0x44f962)),this[_0x407a0d('0x6')][_0x421cf6['id']]['on'](_0x407a0d('0x2c'),this[_0x407a0d('0x2e')][_0x407a0d('0x20')](this,_0x44f962)),this['imapAccounts'][_0x421cf6['id']]['on'](_0x407a0d('0x2'),this[_0x407a0d('0xa')][_0x407a0d('0x20')](this,_0x44f962)),this[_0x407a0d('0x6')][_0x421cf6['id']]['on'](_0x407a0d('0x12'),this[_0x407a0d('0x18')][_0x407a0d('0x20')](this,_0x44f962)));}else _[_0x407a0d('0x19')](this[_0x407a0d('0xc')][_0x44f962][_0x407a0d('0x2d')])&&(this[_0x407a0d('0xc')][_0x44f962][_0x407a0d('0x2d')]={}),this['mailAccounts'][_0x44f962][_0x407a0d('0x2d')][_0x407a0d('0xb')]=_0x407a0d('0x3'),this[_0x407a0d('0xc')][_0x44f962][_0x407a0d('0x2d')][_0x407a0d('0x9')]='',this[_0x407a0d('0x22')](_0x44f962);}}},EmailChannel[_0x56037b('0x30')][_0x56037b('0x5')]=function(_0x5388fd,_0x61b2f7){const _0x1aec8c=_0x56037b;if(this[_0x1aec8c('0xc')][_0x5388fd])return this['mailAccounts'][_0x5388fd][_0x1aec8c('0x2d')][_0x1aec8c('0xb')]=_0x1aec8c('0x2f'),this[_0x1aec8c('0xc')][_0x5388fd][_0x1aec8c('0x2d')]['messageStatus']=_0x61b2f7[_0x1aec8c('0x1')],_0x61b2f7['messages']&&(this[_0x1aec8c('0xc')][_0x5388fd]['Imap'][_0x1aec8c('0x17')]=_0x61b2f7['messages'][_0x1aec8c('0x17')]),this[_0x1aec8c('0x22')](_0x5388fd);},EmailChannel[_0x56037b('0x30')][_0x56037b('0x2e')]=function(_0x58fb10,_0x2009ad){const _0x3c3655=_0x56037b;logger[_0x3c3655('0x32')](_0x3c3655('0x28'),_0x2009ad[_0x3c3655('0x1f')],_0x2009ad[_0x3c3655('0x31')],_0x2009ad[_0x3c3655('0xd')],_0x58fb10);if(this[_0x3c3655('0xc')][_0x58fb10])return mailAccount['notify'](_0x58fb10,_0x2009ad)[_0x3c3655('0x0')](function(_0x4e3019){const _0x3cb822=_0x3c3655;_0x4e3019&&logger[_0x3cb822('0x32')](_0x3cb822('0x4'));})[_0x3c3655('0x1a')](function(_0x5ef186){const _0x43da8f=_0x3c3655;logger[_0x43da8f('0x12')](_0x43da8f('0x13'),JSON[_0x43da8f('0x1d')](_0x5ef186));});},EmailChannel['prototype']['handleImapEnd']=function(_0x13c896){const _0xe18330=_0x56037b;this[_0xe18330('0xc')][_0x13c896]&&this[_0xe18330('0xc')][_0x13c896][_0xe18330('0x2d')]&&(this[_0xe18330('0x6')][this[_0xe18330('0xc')][_0x13c896][_0xe18330('0x2d')]['id']]&&delete this[_0xe18330('0x6')][this[_0xe18330('0xc')][_0x13c896][_0xe18330('0x2d')]['id']],this[_0xe18330('0xc')][_0x13c896]['Imap'][_0xe18330('0x24')]=moment(),this[_0xe18330('0x22')](_0x13c896));},EmailChannel[_0x56037b('0x30')][_0x56037b('0x18')]=function(_0x27ad92,_0x332226){const _0x2127d6=_0x56037b;if(this[_0x2127d6('0xc')][_0x27ad92])return this[_0x2127d6('0xc')][_0x27ad92][_0x2127d6('0x2d')][_0x2127d6('0xb')]=_0x2127d6('0x12'),this['mailAccounts'][_0x27ad92][_0x2127d6('0x2d')]['messageStatus']=_0x332226,this[_0x2127d6('0x22')](_0x27ad92);},EmailChannel[_0x56037b('0x30')][_0x56037b('0x23')]=function(_0x143748,_0x3fe039){return this['smtp']['send'](_0x143748,_0x3fe039);},EmailChannel[_0x56037b('0x30')][_0x56037b('0x11')]=function(_0x3b3fe5){const _0x2097ca=_0x56037b,_0x55540b=this;if(this[_0x2097ca('0xc')][_0x3b3fe5['id']])return _[_0x2097ca('0x19')](this[_0x2097ca('0xc')][_0x3b3fe5['id']]['Smtp'])&&(this[_0x2097ca('0xc')][_0x3b3fe5['id']]['Smtp']={}),this[_0x2097ca('0xc')][_0x3b3fe5['id']][_0x2097ca('0x27')]['lastSync']=moment(),new Promise(function(_0x588005,_0x12ff4b){const _0x3898a0=_0x2097ca;return _0x55540b[_0x3898a0('0x15')][_0x3898a0('0x16')](_0x3b3fe5)[_0x3898a0('0x0')](function(_0x5eb72a){const _0x55ad47=_0x3898a0;_0x55540b['mailAccounts'][_0x3b3fe5['id']][_0x55ad47('0x27')][_0x55ad47('0xb')]=_0x55ad47('0xf'),_0x55540b['mailAccounts'][_0x3b3fe5['id']][_0x55ad47('0x27')][_0x55ad47('0x9')]='',_0x55540b[_0x55ad47('0x22')](_0x3b3fe5['id']),_0x588005(_0x5eb72a);})[_0x3898a0('0x1a')](function(_0xe3af5a){const _0x3559b4=_0x3898a0;_0x55540b[_0x3559b4('0xc')][_0x3b3fe5['id']][_0x3559b4('0x27')][_0x3559b4('0xb')]=_0x3559b4('0x12'),_0x55540b[_0x3559b4('0xc')][_0x3b3fe5['id']][_0x3559b4('0x27')][_0x3559b4('0x9')]=_0xe3af5a,_0x55540b[_0x3559b4('0x22')](_0x3b3fe5['id']),_0x12ff4b(_0xe3af5a);});});return this['smtp'][_0x2097ca('0x16')](_0x3b3fe5);},module[_0x56037b('0x2b')]=EmailChannel; \ No newline at end of file +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 diff --git a/server/services/email/lib/imap.js b/server/services/email/lib/imap.js index 79158b2..8ad04aa 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1152_0x14d9=['stringify','bind','simpleParser','handleReady','handleError','mailbox','closeBox','handleFetchMessage','tls','message','end','INBOX','user','email','exports','../../../config/logger','connect','handleMessageEnd','isNil','UNSEEN','openBox','handleMessageBody','once','handleEnd','box','authTimeout','length','connTimeout','anonymous@xcally.com','imap','textCode','Iconv','host','upperFirst','lodash','handleReadUnseen','required','parser','getHost','./utils','util','getAccount','authentication','error','events','account','password','prototype','search','handleOpenBox','handleFetchError','handleMessageAttributes','EventEmitter','service','undefined','readUnseen','handleCloseBox','mailparser','emit','handleFetchEnd','inherits','port'];(function(_0x5371fa,_0x14d91f){const _0x41dab5=function(_0x423883){while(--_0x423883){_0x5371fa['push'](_0x5371fa['shift']());}};_0x41dab5(++_0x14d91f);}(a1152_0x14d9,0x143));const a1152_0x41da=function(_0x5371fa,_0x14d91f){_0x5371fa=_0x5371fa-0x0;let _0x41dab5=a1152_0x14d9[_0x5371fa];return _0x41dab5;};const _0x65ba3b=a1152_0x41da;'use strict';const util=require(_0x65ba3b('0x1b')),Imap=require(_0x65ba3b('0x10')),_=require(_0x65ba3b('0x15')),simpleParser=require(_0x65ba3b('0x2c'))[_0x65ba3b('0x33')],Iconv=require('iconv')[_0x65ba3b('0x12')],EventEmitter=require(_0x65ba3b('0x1f'))[_0x65ba3b('0x27')],utils=require(_0x65ba3b('0x1a')),logger=require(_0x65ba3b('0x2'))(_0x65ba3b('0x0'));function EmailImap(_0x423883,_0x13cc26){const _0x222719=_0x65ba3b;this[_0x222719('0x36')]=_0x222719('0x3c'),this[_0x222719('0x20')]=this['getAccount'](_0x423883,_0x13cc26),this[_0x222719('0x10')]=new Imap(this[_0x222719('0x20')]),this[_0x222719('0x10')][_0x222719('0x9')]('ready',this[_0x222719('0x34')]['bind'](this)),this[_0x222719('0x10')][_0x222719('0x9')]('end',this[_0x222719('0xa')]['bind'](this)),this[_0x222719('0x10')]['on'](_0x222719('0x1e'),this['handleError'][_0x222719('0x32')](this)),this[_0x222719('0x10')][_0x222719('0x3')]();}util[_0x65ba3b('0x2f')](EmailImap,EventEmitter),EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x1c')]=function(_0x3af19a,_0x397b06){const _0x58599a=_0x65ba3b,_0x561308={'connTimeout':_0x3af19a['connTimeout']?_0x3af19a[_0x58599a('0xe')]*0x3e8:0x2710,'authTimeout':_0x3af19a[_0x58599a('0xc')]?_0x3af19a[_0x58599a('0xc')]*0x3e8:0x1388};return _[_0x58599a('0x5')](_0x3af19a[_0x58599a('0x28')])?(_0x3af19a[_0x58599a('0x1d')]&&(_0x561308[_0x58599a('0x3d')]=_0x3af19a['user'],_0x561308[_0x58599a('0x21')]=_0x3af19a[_0x58599a('0x21')]),_0x561308[_0x58599a('0x13')]=_0x3af19a[_0x58599a('0x13')],_0x561308[_0x58599a('0x30')]=_0x3af19a[_0x58599a('0x30')]||0x3e1,_0x3af19a[_0x58599a('0x39')]?_0x561308['tls']=!![]:(_0x561308['tls']=![],_0x561308['autotls']=_0x58599a('0x17'))):(_0x561308[_0x58599a('0x3d')]=_0x3af19a['user'],_0x561308[_0x58599a('0x21')]=_0x3af19a[_0x58599a('0x21')],_0x561308[_0x58599a('0x13')]=utils[_0x58599a('0x19')](_0x3af19a[_0x58599a('0x28')]),_0x561308[_0x58599a('0x30')]=0x3e1,_0x561308[_0x58599a('0x39')]=!![]),_0x561308[_0x58599a('0x0')]=_0x397b06||_0x3af19a['user']||_0x58599a('0xf'),_0x561308;},EmailImap['prototype'][_0x65ba3b('0x34')]=function(){const _0x375e35=_0x65ba3b;this[_0x375e35('0x10')][_0x375e35('0x7')](this['mailbox'],![],this[_0x375e35('0x24')][_0x375e35('0x32')](this));},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x24')]=function(_0x599294,_0x35033b){const _0x12836d=_0x65ba3b;_0x599294?this['handleError'](_0x599294,!![]):(this[_0x12836d('0x2d')](_0x12836d('0xb'),_0x35033b),this[_0x12836d('0x2a')]());},EmailImap['prototype'][_0x65ba3b('0x2b')]=function(_0x7b2fdc){const _0x833c2b=_0x65ba3b;_0x7b2fdc?this[_0x833c2b('0x35')](_0x7b2fdc,!![]):this['imap'][_0x833c2b('0x3b')]();},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x2a')]=function(){const _0x2668d1=_0x65ba3b;this[_0x2668d1('0x10')][_0x2668d1('0x23')]([_0x2668d1('0x6')],this[_0x2668d1('0x16')][_0x2668d1('0x32')](this));},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x16')]=function(_0xe34877,_0x4c8b91){const _0x4b851d=_0x65ba3b;if(_0xe34877)this[_0x4b851d('0x35')](_0xe34877,!![]);else{if(_0x4c8b91[_0x4b851d('0xd')])try{const _0x1910a4=this[_0x4b851d('0x10')]['fetch'](_0x4c8b91,{'bodies':'','markSeen':!![]});_0x1910a4['on'](_0x4b851d('0x3a'),this[_0x4b851d('0x38')][_0x4b851d('0x32')](this)),_0x1910a4[_0x4b851d('0x9')](_0x4b851d('0x1e'),this[_0x4b851d('0x25')][_0x4b851d('0x32')](this)),_0x1910a4['once'](_0x4b851d('0x3b'),this[_0x4b851d('0x2e')][_0x4b851d('0x32')](this));}catch(_0x36170b){logger['error'](_0x36170b);}else this[_0x4b851d('0x10')][_0x4b851d('0x37')](!![],this[_0x4b851d('0x2b')]['bind'](this));}},EmailImap[_0x65ba3b('0x22')]['handleFetchMessage']=function(_0x41a564){const _0x2f9047=_0x65ba3b;_0x41a564['on']('body',this[_0x2f9047('0x8')][_0x2f9047('0x32')](this)),_0x41a564[_0x2f9047('0x9')]('attributes',this[_0x2f9047('0x26')][_0x2f9047('0x32')](this)),_0x41a564[_0x2f9047('0x9')](_0x2f9047('0x3b'),this['handleMessageEnd'][_0x2f9047('0x32')](this));},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x8')]=function(_0x322dd9){const _0x1a094d=_0x65ba3b;simpleParser(_0x322dd9,{'Iconv':Iconv},this['handleSimpleParser'][_0x1a094d('0x32')](this));},EmailImap['prototype']['handleMessageAttributes']=function(){},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0x4')]=function(){},EmailImap[_0x65ba3b('0x22')]['handleSimpleParser']=function(_0x57a84f,_0x359b26){const _0x5ef589=_0x65ba3b;if(_0x57a84f)logger[_0x5ef589('0x1e')](_0x57a84f);else{const _0x4a73f1=this;utils[_0x5ef589('0x18')](this[_0x5ef589('0x20')],_0x359b26,function(_0x2ca84e){const _0x106213=_0x5ef589;_0x4a73f1[_0x106213('0x2d')](_0x106213('0x0'),_0x2ca84e);});}},EmailImap[_0x65ba3b('0x22')]['handleFetchEnd']=function(){const _0x54ac40=_0x65ba3b;this[_0x54ac40('0x10')][_0x54ac40('0x37')](!![],this[_0x54ac40('0x2b')]['bind'](this));},EmailImap[_0x65ba3b('0x22')]['handleFetchError']=function(_0xd1ba79){const _0x52b15e=_0x65ba3b;this[_0x52b15e('0x35')](_0xd1ba79),this[_0x52b15e('0x10')][_0x52b15e('0x37')](!![],this[_0x52b15e('0x2b')][_0x52b15e('0x32')](this));},EmailImap[_0x65ba3b('0x22')][_0x65ba3b('0xa')]=function(){const _0xca259f=_0x65ba3b;this[_0xca259f('0x2d')]('end');},EmailImap[_0x65ba3b('0x22')]['handleError']=function(_0x2938e2,_0x135d8b){const _0x33f92f=_0x65ba3b;logger['error'](_0x33f92f('0x35'),this[_0x33f92f('0x20')][_0x33f92f('0x0')],JSON[_0x33f92f('0x31')](_0x2938e2));let _0x2323ab='';if(_0x2938e2){if(_0x2938e2['textCode'])_0x2323ab=_0x2938e2[_0x33f92f('0x11')];else for(const _0x5ac3f6 in _0x2938e2){typeof _0x2938e2[_0x5ac3f6]!==_0x33f92f('0x29')&&(_0x2323ab+=_[_0x33f92f('0x14')](_0x5ac3f6)+':\x20'+_0x2938e2[_0x5ac3f6]+'\x0a');}}_0x135d8b?this['imap'][_0x33f92f('0x3b')]():(this[_0x33f92f('0x2d')](_0x33f92f('0x1e'),_0x2323ab),this[_0x33f92f('0x2d')]('end'));},module[_0x65ba3b('0x1')]=EmailImap; \ No newline at end of file +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 diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index b3de274..e1243b6 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1153_0x2004=['Not\x20verifired','exports','compile','use','send','toString','createTransport','sendMail','prototype','verify'];(function(_0x364ce8,_0x2004d5){const _0x12141e=function(_0x29da12){while(--_0x29da12){_0x364ce8['push'](_0x364ce8['shift']());}};_0x12141e(++_0x2004d5);}(a1153_0x2004,0x154));const a1153_0x1214=function(_0x364ce8,_0x2004d5){_0x364ce8=_0x364ce8-0x0;let _0x12141e=a1153_0x2004[_0x364ce8];return _0x12141e;};const _0x46432e=a1153_0x1214;'use strict';const nodemailer=require('nodemailer'),inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x46432e('0x8')][_0x46432e('0x4')]=function(_0x29da12,_0x4ce9fb){return new Promise(function(_0x3ecf1e,_0x28fa6e){const _0x14c6b7=a1153_0x1214,_0x29228e=nodemailer[_0x14c6b7('0x6')](_0x29da12);_0x29228e[_0x14c6b7('0x3')](_0x14c6b7('0x2'),inlineBase64()),_0x29228e[_0x14c6b7('0x7')](_0x4ce9fb,function(_0x3a027f,_0x212693){const _0xa99b4=_0x14c6b7;_0x3a027f?_0x28fa6e(_0x3a027f[_0xa99b4('0x5')]()):_0x3ecf1e(_0x212693);});});},EmailSmtp[_0x46432e('0x8')]['verify']=function(_0x13ea0c){return new Promise(function(_0x30858c,_0x2a21bb){const _0x2f61bd=a1153_0x1214,_0x5cdcec=nodemailer[_0x2f61bd('0x6')](_0x13ea0c);_0x5cdcec[_0x2f61bd('0x9')](function(_0x90c016,_0x3a4c83){const _0x4193c1=_0x2f61bd;_0x90c016?_0x2a21bb(_0x90c016[_0x4193c1('0x5')]()):_0x3a4c83?_0x30858c(_0x3a4c83):_0x2a21bb(_0x4193c1('0x0'));});});},module[_0x46432e('0x1')]=EmailSmtp; \ No newline at end of file +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 diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index b253979..28a3972 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1154_0x34ee=['message','

Empty\x20message

','anonymous','split','from','body','head','push','subject','value','yahoo','html','../../../config/environment','now','writeFileSync','content','../../../config/logger','textAsHtml','getHost','address','messageId','email','randomstring','originTo','path','127.0.0.1','attachment-','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','format','moment','@xcally.com','date','replace','Attachments','bcc','filename','imap.mail.yahoo.com','gmail','slice','root','imap-mail.outlook.com','BodyHTML','originCc','attachments','YYYY-MM-DD\x20HH:mm:ss','includes','lodash','isEmpty','parser','files/attachments/','util','application/ms-tnef','attach','filter','name','node-tnef','generate','inReplyTo','outlook365','Anonymous','test','imap.gmail.com','outlook.office365.com','parseBuffer','info','length','Title','pop'];(function(_0x145215,_0x34ee63){const _0x49d59a=function(_0x58248f){while(--_0x58248f){_0x145215['push'](_0x145215['shift']());}};_0x49d59a(++_0x34ee63);}(a1154_0x34ee,0xdb));const a1154_0x49d5=function(_0x145215,_0x34ee63){_0x145215=_0x145215-0x0;let _0x49d59a=a1154_0x34ee[_0x145215];return _0x49d59a;};const _0x2ecd34=a1154_0x49d5;'use strict';const _=require(_0x2ecd34('0x1f')),moment=require(_0x2ecd34('0xe')),random=require(_0x2ecd34('0x7')),fs=require('fs'),path=require(_0x2ecd34('0x9')),util=require(_0x2ecd34('0x23')),tnef=require(_0x2ecd34('0x28')),logger=require(_0x2ecd34('0x1'))(_0x2ecd34('0x6')),config=require(_0x2ecd34('0x41'));function getAddress(_0x58248f){const _0x40c39c=_0x2ecd34,_0x4aa501=_[_0x40c39c('0x3b')](_0x58248f[_0x40c39c('0x3e')]);return _0x4aa501&&_0x4aa501[_0x40c39c('0x4')]?_0x4aa501[_0x40c39c('0x4')]:_0x40c39c('0x37')+random['generate'](0x6)+_0x40c39c('0xf');}function getFirstName(_0x5a2e9e){const _0x29a2a6=_0x2ecd34,_0xd28846=_[_0x29a2a6('0x3b')](_0x5a2e9e[_0x29a2a6('0x3e')]);if(_0xd28846&&_0xd28846[_0x29a2a6('0x27')]){const _0x106303=_0xd28846[_0x29a2a6('0x27')][_0x29a2a6('0x38')](/\s+/);return _0x106303[_0x29a2a6('0x32')]?_0x106303[_0x29a2a6('0x17')](0x0,-0x1)['join']('\x20'):_0xd28846['name'];}return _0x29a2a6('0x2c');}function getLastName(_0x1d08d0){const _0x4f545b=_0x2ecd34,_0x200978=_['head'](_0x1d08d0['value']);if(_0x200978&&_0x200978[_0x4f545b('0x27')]){const _0x152de9=_0x200978['name'][_0x4f545b('0x38')](/\s+/);return _0x152de9[_0x4f545b('0x32')]>0x1?_0x152de9[_0x4f545b('0x34')]():'';}return'';}function getMails(_0x59117e,_0x17378e){const _0x229969=_0x2ecd34;let _0x408cdd='';for(let _0x13c57f=0x0;_0x13c57f<_0x17378e['value'][_0x229969('0x32')];_0x13c57f+=0x1){_0x17378e['value'][_0x13c57f][_0x229969('0x4')]!==_0x59117e&&(!_['isEmpty'](_0x408cdd)&&(_0x408cdd+=','),_0x408cdd+=_0x17378e['value'][_0x13c57f][_0x229969('0x27')]||_0x17378e['value'][_0x13c57f][_0x229969('0x4')]||'',_0x408cdd+='\x20<',_0x408cdd+=_0x17378e['value'][_0x13c57f][_0x229969('0x4')]?_0x17378e[_0x229969('0x3e')][_0x13c57f][_0x229969('0x4')]:'anonymous'+random[_0x229969('0x29')](0x6)+_0x229969('0xf'),_0x408cdd+='>');}return _0x408cdd;}function parseEmail(_0x2a8e06,_0x174bbe,_0x31b79a){const _0x4cd98c=_0x2ecd34;if(_0x174bbe[_0x4cd98c('0x40')]){const _0x1f6dd6=/)<[^<]*)*<\/script>/gi;while(_0x1f6dd6[_0x4cd98c('0x2d')](_0x174bbe[_0x4cd98c('0x40')])){_0x174bbe[_0x4cd98c('0x40')]=_0x174bbe[_0x4cd98c('0x40')][_0x4cd98c('0x11')](_0x1f6dd6,'');}_0x31b79a['body']=_0x174bbe[_0x4cd98c('0x40')];}else _0x31b79a[_0x4cd98c('0x3a')]=_0x174bbe[_0x4cd98c('0x2')];_0x31b79a[_0x4cd98c('0x3a')]&&(_0x31b79a[_0x4cd98c('0x3a')]=_0x31b79a[_0x4cd98c('0x3a')]['replace'](/Empty\x20message

';if(_0x6f3586['Attachments'])for(let _0x586d8d=0x0;_0x586d8d<_0x6f3586[_0x1083c4('0x12')][_0x1083c4('0x32')];_0x586d8d++){const _0x97b71=_0x6f3586['Attachments'][_0x586d8d];_0x4e266f[_0x1083c4('0x35')][_0x1083c4('0x1c')][_0x1083c4('0x3c')]({'filename':_0x97b71[_0x1083c4('0x33')],'content':Buffer[_0x1083c4('0x39')](_0x97b71['Data'])});}}_0x2bf64c(parseEmail(_0x4c7ac8,_0x517cb8,_0x4e266f));})):(_0x517cb8[_0x270cc8('0x40')]=_0x270cc8('0x36'),_0x2bf64c(parseEmail(_0x4c7ac8,_0x517cb8,_0x4e266f)));}else _0x2bf64c(parseEmail(_0x4c7ac8,_0x517cb8,_0x4e266f));},exports[_0x2ecd34('0x3')]=function(_0x4b5f7f){const _0x4321f5=_0x2ecd34;switch(_0x4b5f7f){case _0x4321f5('0x16'):return _0x4321f5('0x2e');case _0x4321f5('0x3f'):return _0x4321f5('0x15');case'hotmail':return _0x4321f5('0x19');case _0x4321f5('0x2b'):return _0x4321f5('0x2f');}return _0x4321f5('0xa');}; \ No newline at end of file +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')](/0x0?this[_0x2fa95c+'Capacity']>0x0&&this[_0x2fa95c+_0x312975('0x10')]>=this[_0x2fa95c+'Capacity']?'maxcapacity':'working':_0x312975('0x11');},Agent['prototype']['updateRealtime']=function(){const _0x3aea1e=_0x581191,_0x5eb35e=[_0x3aea1e('0x31'),_0x3aea1e('0x6'),'openchannel',_0x3aea1e('0x21'),'sms','whatsapp'];for(let _0x5c31a6=0x0;_0x5c31a6<_0x5eb35e[_0x3aea1e('0xc')];_0x5c31a6+=0x1){const _0x28a3c0=this['getChannelStatus'](_0x5eb35e[_0x5c31a6]);this[_0x5eb35e[_0x5c31a6]+'Status']!==_0x28a3c0&&(this[_0x5eb35e[_0x5c31a6]+'StatusTime']=_[_0x3aea1e('0xb')](moment()[_0x3aea1e('0x15')]('x'))),this[_0x5eb35e[_0x5c31a6]+'Status']=_0x28a3c0;}const _0x2a9e61={'id':this['id'],'name':this['name'],'online':this['online'],'voicePause':this['voicePause'],'chatPause':this[_0x3aea1e('0x2a')],'mailPause':this[_0x3aea1e('0x29')],'smsPause':this[_0x3aea1e('0x33')],'faxPause':this[_0x3aea1e('0x2d')],'openchannelPause':this[_0x3aea1e('0x2')],'chatStatus':this[_0x3aea1e('0x2b')],'chatStatusTime':this[_0x3aea1e('0x25')],'chatCapacity':this[_0x3aea1e('0x7')],'chatCurrentCapacity':this['chatCurrentCapacity'],'mailStatus':this['mailStatus'],'mailStatusTime':this['mailStatusTime'],'mailCapacity':this[_0x3aea1e('0xe')],'mailCurrentCapacity':this[_0x3aea1e('0x17')],'faxStatus':this[_0x3aea1e('0x13')],'faxStatusTime':this[_0x3aea1e('0x4')],'faxCapacity':this[_0x3aea1e('0xa')],'faxCurrentCapacity':this[_0x3aea1e('0x8')],'smsStatus':this[_0x3aea1e('0x3')],'smsStatusTime':this[_0x3aea1e('0x1b')],'smsCapacity':this[_0x3aea1e('0x28')],'smsCurrentCapacity':this[_0x3aea1e('0x26')],'whatsappStatus':this['whatsappStatus'],'whatsappStatusTime':this[_0x3aea1e('0x27')],'whatsappCapacity':this['whatsappCapacity'],'whatsappCurrentCapacity':this[_0x3aea1e('0x1f')],'openchannelStatus':this[_0x3aea1e('0x2e')],'openchannelStatusTime':this[_0x3aea1e('0x30')],'openchannelCapacity':this[_0x3aea1e('0x5')],'openchannelCurrentCapacity':this[_0x3aea1e('0xf')],'busy':this[_0x3aea1e('0x12')],'busyQueue':this[_0x3aea1e('0x2c')]},_0x9e52af=md5(JSON[_0x3aea1e('0x9')](_0x2a9e61));this[_0x3aea1e('0x1c')]!==_0x9e52af&&(this[_0x3aea1e('0x1c')]=_0x9e52af,io[_0x3aea1e('0x1a')](_0x3aea1e('0x23'),_0x2a9e61));},module[_0x581191('0x0')]=Agent; \ No newline at end of file +const a1164_0x3f00=['maxcapacity','smsStatus','idle','whatsappStatusTime','unknown','length','chatCapacity','whatsappStatus','whatsappCurrentCapacity','chat','openchannelCapacity','updateRealtime','openchannelStatusTime','openchannelStatus','toNumber','chatCurrentCapacity','user:save','busyQueue','mailStatusTime','getChannelStatus','chatStatus','faxCapacity','exports','../../../rediscache','mailCapacity','smsCurrentCapacity','faxCurrentCapacity','busy','voicePause','moment','mailStatus','mailPause','whatsapp','Status','lodash','chatPause','name','smsStatusTime','working','faxStatus','mailCurrentCapacity','StatusTime','openchannelPause','smsPause','CurrentCapacity','prototype','md5','stringify','whatsappCapacity','online','chatStatusTime','faxStatusTime','openchannel','Capacity'];(function(_0xe2e9a2,_0x3f0005){const _0x49bc01=function(_0x607d53){while(--_0x607d53){_0xe2e9a2['push'](_0xe2e9a2['shift']());}};_0x49bc01(++_0x3f0005);}(a1164_0x3f00,0xf4));const a1164_0x49bc=function(_0xe2e9a2,_0x3f0005){_0xe2e9a2=_0xe2e9a2-0x0;let _0x49bc01=a1164_0x3f00[_0xe2e9a2];return _0x49bc01;};const _0x48c5ef=a1164_0x49bc;'use strict';const _=require(_0x48c5ef('0x6')),moment=require(_0x48c5ef('0x1')),md5=require(_0x48c5ef('0x12')),{getSocket}=require(_0x48c5ef('0x31')),io=getSocket();function Agent(_0x607d53){const _0x222ca4=_0x48c5ef;this['id']=_0x607d53['id']||0x0,this['name']=_0x607d53[_0x222ca4('0x8')]||'',this['online']=_0x607d53[_0x222ca4('0x15')]||!![],this[_0x222ca4('0x0')]=_0x607d53[_0x222ca4('0x0')]||![],this[_0x222ca4('0x7')]=_0x607d53[_0x222ca4('0x7')]||![],this[_0x222ca4('0x3')]=_0x607d53['mailPause']||![],this['faxPause']=_0x607d53['faxPause']||![],this[_0x222ca4('0xf')]=_0x607d53[_0x222ca4('0xf')]||![],this[_0x222ca4('0xe')]=_0x607d53[_0x222ca4('0xe')]||![],this[_0x222ca4('0x2e')]=_0x222ca4('0x1e'),this[_0x222ca4('0x16')]=0x0,this['chatCapacity']=_0x607d53['chatCapacity']||0x0,this['chatCurrentCapacity']=0x0,this[_0x222ca4('0x2')]=_0x222ca4('0x1e'),this[_0x222ca4('0x2c')]=0x0,this[_0x222ca4('0x32')]=_0x607d53[_0x222ca4('0x32')]||0x0,this[_0x222ca4('0xc')]=0x0,this[_0x222ca4('0xb')]='unknown',this['faxStatusTime']=0x0,this[_0x222ca4('0x2f')]=_0x607d53[_0x222ca4('0x2f')]||0x0,this[_0x222ca4('0x34')]=0x0,this[_0x222ca4('0x1b')]='unknown',this[_0x222ca4('0x9')]=0x0,this['smsCapacity']=_0x607d53['smsCapacity']||0x0,this[_0x222ca4('0x33')]=0x0,this[_0x222ca4('0x21')]='unknown',this[_0x222ca4('0x1d')]=0x0,this[_0x222ca4('0x14')]=_0x607d53[_0x222ca4('0x14')]||0x0,this['whatsappCurrentCapacity']=0x0,this['openchannelStatus']=_0x222ca4('0x1e'),this[_0x222ca4('0x26')]=0x0,this[_0x222ca4('0x24')]=_0x607d53['openchannelCapacity']||0x0,this['openchannelCurrentCapacity']=0x0,this[_0x222ca4('0x35')]=![],this[_0x222ca4('0x2b')]=undefined,this[_0x222ca4('0x12')]='',this[_0x222ca4('0x25')]();}Agent[_0x48c5ef('0x11')][_0x48c5ef('0x2d')]=function(_0x4108d8){const _0x38ea11=_0x48c5ef;return this[_0x4108d8+_0x38ea11('0x10')]>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 diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index 2c94a51..3363a23 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1165_0x8498=['stringify','Agents','waiting','exports','emit','paused','name','chat:queue:%s','util','map','chatPause','updateRouting','lodash','timeout','online','prototype','md5','available','strategy','loggedIn','mapAgentsId','length','updateRealtime','_rr','../../../rediscache'];(function(_0x1f603d,_0x849850){const _0x7e081c=function(_0x158b4f){while(--_0x158b4f){_0x1f603d['push'](_0x1f603d['shift']());}};_0x7e081c(++_0x849850);}(a1165_0x8498,0x1d0));const a1165_0x7e08=function(_0x1f603d,_0x849850){_0x1f603d=_0x1f603d-0x0;let _0x7e081c=a1165_0x8498[_0x1f603d];return _0x7e081c;};const _0x20e896=a1165_0x7e08;'use strict';const _=require(_0x20e896('0x17')),md5=require(_0x20e896('0x2')),util=require(_0x20e896('0x13')),{getSocket}=require(_0x20e896('0xa')),io=getSocket();function ChatQueue(_0x158b4f){const _0x5debd4=_0x20e896;this['id']=_0x158b4f['id']||0x0,this[_0x5debd4('0x11')]=_0x158b4f[_0x5debd4('0x11')]||'',this[_0x5debd4('0x18')]=_0x158b4f[_0x5debd4('0x18')]||0xa,this[_0x5debd4('0x4')]=_0x158b4f[_0x5debd4('0x4')]||'beepall',this[_0x5debd4('0xc')]=_0x158b4f[_0x5debd4('0xc')],this[_0x5debd4('0x6')]={},this[_0x5debd4('0xd')]=0x0,this['md5']='',this[_0x5debd4('0x16')](),this[_0x5debd4('0x8')]();}ChatQueue[_0x20e896('0x1')]['updateRouting']=function(){const _0x407224=_0x20e896,_0x5ce96b=this[_0x407224('0x6')][_0x407224('0x9')];this[_0x407224('0x6')]=_[_0x407224('0x14')](this[_0x407224('0xc')],'id'),this[_0x407224('0x6')][_0x407224('0x9')]=_0x5ce96b;},ChatQueue[_0x20e896('0x1')][_0x20e896('0x8')]=function(){const _0x431274=_0x20e896;this['loggedIn']=0x0,this[_0x431274('0x10')]=0x0;for(let _0x542cbf=0x0;_0x542cbf=0x0?this[_0x431274('0x3')]:0x0;const _0xa773c2={'id':this['id'],'available':this[_0x431274('0x3')],'loggedIn':this[_0x431274('0x5')],'name':this[_0x431274('0x11')],'paused':this[_0x431274('0x10')],'waiting':this[_0x431274('0xd')]},_0x3da7cc=md5(JSON[_0x431274('0xb')](_0xa773c2));this[_0x431274('0x2')]!==_0x3da7cc&&(this['md5']=_0x3da7cc,io['to'](util['format'](_0x431274('0x12'),_0xa773c2[_0x431274('0x11')]))[_0x431274('0xf')]('chat_queue:save',_0xa773c2));},module[_0x20e896('0xe')]=ChatQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/faxQueue.js b/server/services/routing/model/faxQueue.js index fafd731..82c5553 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1166_0x2ad1=['exports','timeout','beepall','available','fax_queue:save','emit','length','updateRealtime','online','stringify','map','strategy','waiting','Agents','lodash','prototype','mapAgentsId','loggedIn','_rr','name','util','format','paused','md5','../../../rediscache','faxPause'];(function(_0x53804e,_0x2ad1bc){const _0x393bbc=function(_0x14dd38){while(--_0x14dd38){_0x53804e['push'](_0x53804e['shift']());}};_0x393bbc(++_0x2ad1bc);}(a1166_0x2ad1,0x1df));const a1166_0x393b=function(_0x53804e,_0x2ad1bc){_0x53804e=_0x53804e-0x0;let _0x393bbc=a1166_0x2ad1[_0x53804e];return _0x393bbc;};const _0x1a8cb5=a1166_0x393b;'use strict';const _=require(_0x1a8cb5('0x3')),md5=require(_0x1a8cb5('0xc')),util=require(_0x1a8cb5('0x9')),{getSocket}=require(_0x1a8cb5('0xd')),io=getSocket();function FaxQueue(_0x14dd38){const _0x4c20c8=_0x1a8cb5;this['id']=_0x14dd38['id']||0x0,this['name']=_0x14dd38[_0x4c20c8('0x8')]||'',this[_0x4c20c8('0x10')]=_0x14dd38[_0x4c20c8('0x10')]||0xa,this[_0x4c20c8('0x0')]=_0x14dd38[_0x4c20c8('0x0')]||_0x4c20c8('0x11'),this['Agents']=_0x14dd38['Agents'],this['mapAgentsId']={},this[_0x4c20c8('0x1')]=0x0,this[_0x4c20c8('0xc')]='',this['updateRouting'](),this[_0x4c20c8('0x16')]();}FaxQueue[_0x1a8cb5('0x4')]['updateRouting']=function(){const _0x562283=_0x1a8cb5,_0x5d75a8=this[_0x562283('0x5')][_0x562283('0x7')];this[_0x562283('0x5')]=_[_0x562283('0x19')](this[_0x562283('0x2')],'id'),this[_0x562283('0x5')][_0x562283('0x7')]=_0x5d75a8;},FaxQueue['prototype'][_0x1a8cb5('0x16')]=function(){const _0x4fedb3=_0x1a8cb5;this[_0x4fedb3('0x6')]=0x0,this[_0x4fedb3('0xb')]=0x0;for(let _0x1b8610=0x0;_0x1b8610=0x0?this['available']:0x0;const _0x15ce37={'id':this['id'],'available':this['available'],'loggedIn':this[_0x4fedb3('0x6')],'name':this['name'],'paused':this[_0x4fedb3('0xb')],'waiting':this[_0x4fedb3('0x1')]},_0x3ac1e9=md5(JSON[_0x4fedb3('0x18')](_0x15ce37));this[_0x4fedb3('0xc')]!==_0x3ac1e9&&(this['md5']=_0x3ac1e9,io['to'](util[_0x4fedb3('0xa')]('fax:queue:%s',_0x15ce37[_0x4fedb3('0x8')]))[_0x4fedb3('0x14')](_0x4fedb3('0x13'),_0x15ce37));},module[_0x1a8cb5('0xf')]=FaxQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index fd4cde4..332906b 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1167_0x25c4=['name','Intervals','exports'];(function(_0x6b38c3,_0x25c477){var _0x5d0d12=function(_0x2f3402){while(--_0x2f3402){_0x6b38c3['push'](_0x6b38c3['shift']());}};_0x5d0d12(++_0x25c477);}(a1167_0x25c4,0x105));var a1167_0x5d0d=function(_0x6b38c3,_0x25c477){_0x6b38c3=_0x6b38c3-0x0;var _0x5d0d12=a1167_0x25c4[_0x6b38c3];return _0x5d0d12;};var _0x23f22=a1167_0x5d0d;'use strict';function Interval(_0x2f3402){var _0x1f2b40=a1167_0x5d0d;this['id']=_0x2f3402['id']||0x0,this[_0x1f2b40('0x0')]=_0x2f3402[_0x1f2b40('0x0')]||'',this[_0x1f2b40('0x1')]=_0x2f3402[_0x1f2b40('0x1')]||{};}module[_0x23f22('0x2')]=Interval; \ No newline at end of file +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 diff --git a/server/services/routing/model/mailQueue.js b/server/services/routing/model/mailQueue.js index 4a35025..2859ac2 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1168_0x330d=['timeout','paused','updateRouting','mail:queue:%s','name','Agents','strategy','exports','util','waiting','beepall','../../../rediscache','available','updateRealtime','length','online','md5','_rr','mapAgentsId','prototype','mail_queue:save','loggedIn','lodash','emit'];(function(_0x287f31,_0x330dfb){const _0x242033=function(_0x381387){while(--_0x381387){_0x287f31['push'](_0x287f31['shift']());}};_0x242033(++_0x330dfb);}(a1168_0x330d,0x14a));const a1168_0x2420=function(_0x287f31,_0x330dfb){_0x287f31=_0x287f31-0x0;let _0x242033=a1168_0x330d[_0x287f31];return _0x242033;};const _0xfa5ebc=a1168_0x2420;'use strict';const _=require(_0xfa5ebc('0x4')),md5=require(_0xfa5ebc('0x16')),util=require(_0xfa5ebc('0xe')),{getSocket}=require(_0xfa5ebc('0x11')),io=getSocket();function MailQueue(_0x381387){const _0x1a51f7=_0xfa5ebc;this['id']=_0x381387['id']||0x0,this[_0x1a51f7('0xa')]=_0x381387['name']||'',this[_0x1a51f7('0x6')]=_0x381387[_0x1a51f7('0x6')]||0xa,this[_0x1a51f7('0xc')]=_0x381387[_0x1a51f7('0xc')]||_0x1a51f7('0x10'),this[_0x1a51f7('0xb')]=_0x381387[_0x1a51f7('0xb')],this[_0x1a51f7('0x0')]={},this[_0x1a51f7('0xf')]=0x0,this[_0x1a51f7('0x16')]='',this[_0x1a51f7('0x8')](),this[_0x1a51f7('0x13')]();}MailQueue[_0xfa5ebc('0x1')]['updateRouting']=function(){const _0x401870=_0xfa5ebc,_0x246d53=this[_0x401870('0x0')]['_rr'];this[_0x401870('0x0')]=_['map'](this[_0x401870('0xb')],'id'),this[_0x401870('0x0')][_0x401870('0x17')]=_0x246d53;},MailQueue[_0xfa5ebc('0x1')]['updateRealtime']=function(){const _0x38e81a=_0xfa5ebc;this[_0x38e81a('0x3')]=0x0,this[_0x38e81a('0x7')]=0x0;for(let _0x4f0675=0x0;_0x4f0675=0x0?this[_0x38e81a('0x12')]:0x0;const _0x2a4871={'id':this['id'],'available':this['available'],'loggedIn':this[_0x38e81a('0x3')],'name':this['name'],'paused':this[_0x38e81a('0x7')],'waiting':this[_0x38e81a('0xf')]},_0x1f6396=md5(JSON['stringify'](_0x2a4871));this['md5']!==_0x1f6396&&(this['md5']=_0x1f6396,io['to'](util['format'](_0x38e81a('0x9'),_0x2a4871[_0x38e81a('0xa')]))[_0x38e81a('0x5')](_0x38e81a('0x2'),_0x2a4871));},module[_0xfa5ebc('0xd')]=MailQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index 06873a6..ce2394c 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1169_0x2e16=['updateRealtime','exports','md5','loggedIn','mapAgentsId','available','map','Agents','waiting','util','emit','prototype','../../../rediscache','paused','strategy','_rr','updateRouting','online','name','length','lodash','openchannel_queue:save','openchannelPause','timeout'];(function(_0x127756,_0x2e16c2){const _0x59b2a9=function(_0x2f2655){while(--_0x2f2655){_0x127756['push'](_0x127756['shift']());}};_0x59b2a9(++_0x2e16c2);}(a1169_0x2e16,0xd5));const a1169_0x59b2=function(_0x127756,_0x2e16c2){_0x127756=_0x127756-0x0;let _0x59b2a9=a1169_0x2e16[_0x127756];return _0x59b2a9;};const _0xf809a2=a1169_0x59b2;'use strict';const _=require(_0xf809a2('0x17')),md5=require(_0xf809a2('0x5')),util=require(_0xf809a2('0xc')),{getSocket}=require(_0xf809a2('0xf')),io=getSocket();function OpenchannelQueue(_0x2f2655){const _0x2374df=_0xf809a2;this['id']=_0x2f2655['id']||0x0,this[_0x2374df('0x15')]=_0x2f2655[_0x2374df('0x15')]||'',this[_0x2374df('0x2')]=_0x2f2655[_0x2374df('0x2')]||0xa,this[_0x2374df('0x11')]=_0x2f2655[_0x2374df('0x11')]||'beepall',this[_0x2374df('0xa')]=_0x2f2655[_0x2374df('0xa')],this['mapAgentsId']={},this['waiting']=0x0,this[_0x2374df('0x5')]='',this[_0x2374df('0x13')](),this[_0x2374df('0x3')]();}OpenchannelQueue[_0xf809a2('0xe')][_0xf809a2('0x13')]=function(){const _0x544a63=_0xf809a2,_0x44b2bc=this[_0x544a63('0x7')]['_rr'];this['mapAgentsId']=_[_0x544a63('0x9')](this[_0x544a63('0xa')],'id'),this[_0x544a63('0x7')][_0x544a63('0x12')]=_0x44b2bc;},OpenchannelQueue['prototype']['updateRealtime']=function(){const _0x2314d6=_0xf809a2;this['loggedIn']=0x0,this[_0x2314d6('0x10')]=0x0;for(let _0x28ad11=0x0;_0x28ad11=0x0?this[_0x2314d6('0x8')]:0x0;const _0xe8fc5b={'id':this['id'],'available':this[_0x2314d6('0x8')],'loggedIn':this[_0x2314d6('0x6')],'name':this[_0x2314d6('0x15')],'paused':this[_0x2314d6('0x10')],'waiting':this[_0x2314d6('0xb')]},_0x34410d=md5(JSON['stringify'](_0xe8fc5b));this[_0x2314d6('0x5')]!==_0x34410d&&(this[_0x2314d6('0x5')]=_0x34410d,io['to'](util['format']('openchannel:queue:%s',_0xe8fc5b[_0x2314d6('0x15')]))[_0x2314d6('0xd')](_0x2314d6('0x0'),_0xe8fc5b));},module[_0xf809a2('0x4')]=OpenchannelQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index 8502f19..7730169 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1170_0xf285=['available','strategy','util','smsPause','updateRouting','sms:queue:%s','mapAgentsId','name','emit','_rr','stringify','beepall','updateRealtime','Agents','md5','sms_queue:save','../../../rediscache','length','prototype','lodash','paused','timeout','loggedIn','online'];(function(_0x94ce66,_0xf2856f){const _0x28671d=function(_0x5945a7){while(--_0x5945a7){_0x94ce66['push'](_0x94ce66['shift']());}};_0x28671d(++_0xf2856f);}(a1170_0xf285,0x84));const a1170_0x2867=function(_0x94ce66,_0xf2856f){_0x94ce66=_0x94ce66-0x0;let _0x28671d=a1170_0xf285[_0x94ce66];return _0x28671d;};const _0x3a3f87=a1170_0x2867;'use strict';const _=require(_0x3a3f87('0x7')),md5=require('md5'),util=require(_0x3a3f87('0xe')),{getSocket}=require(_0x3a3f87('0x4')),io=getSocket();function SmsQueue(_0x5945a7){const _0x206da6=_0x3a3f87;this['id']=_0x5945a7['id']||0x0,this[_0x206da6('0x13')]=_0x5945a7[_0x206da6('0x13')]||'',this[_0x206da6('0x9')]=_0x5945a7['timeout']||0xa,this[_0x206da6('0xd')]=_0x5945a7[_0x206da6('0xd')]||_0x206da6('0x17'),this['Agents']=_0x5945a7[_0x206da6('0x1')],this[_0x206da6('0x12')]={},this['waiting']=0x0,this[_0x206da6('0x2')]='',this['updateRouting'](),this[_0x206da6('0x0')]();}SmsQueue['prototype'][_0x3a3f87('0x10')]=function(){const _0x171810=_0x3a3f87,_0x23a44e=this[_0x171810('0x12')][_0x171810('0x15')];this[_0x171810('0x12')]=_['map'](this[_0x171810('0x1')],'id'),this[_0x171810('0x12')][_0x171810('0x15')]=_0x23a44e;},SmsQueue[_0x3a3f87('0x6')][_0x3a3f87('0x0')]=function(){const _0x42d590=_0x3a3f87;this['loggedIn']=0x0,this[_0x42d590('0x8')]=0x0;for(let _0x265077=0x0;_0x265077=0x0?this['available']:0x0;const _0x25c8cc={'id':this['id'],'available':this['available'],'loggedIn':this[_0x42d590('0xa')],'name':this[_0x42d590('0x13')],'paused':this[_0x42d590('0x8')],'waiting':this['waiting']},_0x1bc94c=md5(JSON[_0x42d590('0x16')](_0x25c8cc));this[_0x42d590('0x2')]!==_0x1bc94c&&(this[_0x42d590('0x2')]=_0x1bc94c,io['to'](util['format'](_0x42d590('0x11'),_0x25c8cc[_0x42d590('0x13')]))[_0x42d590('0x14')](_0x42d590('0x3'),_0x25c8cc));},module['exports']=SmsQueue; \ No newline at end of file +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 diff --git a/server/services/routing/model/whatsappQueue.js b/server/services/routing/model/whatsappQueue.js index ae8249e..49c4c09 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1171_0x24db=['whatsapp:queue:%s','md5','mapAgentsId','exports','Agents','online','whatsapp_queue:save','emit','prototype','updateRouting','util','paused','name','waiting','format','timeout','strategy','length','available','updateRealtime','_rr','loggedIn'];(function(_0x124c40,_0x24db80){const _0x3f83aa=function(_0x103fbd){while(--_0x103fbd){_0x124c40['push'](_0x124c40['shift']());}};_0x3f83aa(++_0x24db80);}(a1171_0x24db,0x192));const a1171_0x3f83=function(_0x124c40,_0x24db80){_0x124c40=_0x124c40-0x0;let _0x3f83aa=a1171_0x24db[_0x124c40];return _0x3f83aa;};const _0x1d41df=a1171_0x3f83;'use strict';const _=require('lodash'),md5=require(_0x1d41df('0x11')),util=require(_0x1d41df('0x4')),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0x103fbd){const _0x3cb56b=_0x1d41df;this['id']=_0x103fbd['id']||0x0,this[_0x3cb56b('0x6')]=_0x103fbd[_0x3cb56b('0x6')]||'',this[_0x3cb56b('0x9')]=_0x103fbd[_0x3cb56b('0x9')]||0xa,this[_0x3cb56b('0xa')]=_0x103fbd[_0x3cb56b('0xa')]||'beepall',this['Agents']=_0x103fbd[_0x3cb56b('0x14')],this['mapAgentsId']={},this[_0x3cb56b('0x7')]=0x0,this[_0x3cb56b('0x11')]='',this['updateRouting'](),this[_0x3cb56b('0xd')]();}WhatsappQueue['prototype'][_0x1d41df('0x3')]=function(){const _0x13fe12=_0x1d41df,_0x1cfd98=this[_0x13fe12('0x12')]['_rr'];this['mapAgentsId']=_['map'](this[_0x13fe12('0x14')],'id'),this[_0x13fe12('0x12')][_0x13fe12('0xe')]=_0x1cfd98;},WhatsappQueue[_0x1d41df('0x2')][_0x1d41df('0xd')]=function(){const _0x9ba6ab=_0x1d41df;this[_0x9ba6ab('0xf')]=0x0,this[_0x9ba6ab('0x5')]=0x0;for(let _0x3db457=0x0;_0x3db457=0x0?this['available']:0x0;const _0xa73449={'id':this['id'],'available':this[_0x9ba6ab('0xc')],'loggedIn':this[_0x9ba6ab('0xf')],'name':this[_0x9ba6ab('0x6')],'paused':this[_0x9ba6ab('0x5')],'waiting':this[_0x9ba6ab('0x7')]},_0x10d1c3=md5(JSON['stringify'](_0xa73449));this[_0x9ba6ab('0x11')]!==_0x10d1c3&&(this[_0x9ba6ab('0x11')]=_0x10d1c3,io['to'](util[_0x9ba6ab('0x8')](_0x9ba6ab('0x10'),_0xa73449['name']))[_0x9ba6ab('0x1')](_0x9ba6ab('0x0'),_0xa73449));},module[_0x1d41df('0x13')]=WhatsappQueue; \ No newline at end of file +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 diff --git a/server/services/routing/realtime/index.js b/server/services/routing/realtime/index.js index 9763f83..37585ee 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1172_0x2266=['../model/chatQueue','updateRealtime','initAgents','mergeFromDatabase','openchannelQueues','../model/openchannelQueue','isUndefined','mailQueues','../model/whatsappQueue','prototype','smsQueuesWaitingInteractions','faxQueues','intervals','undefined','agents','smsQueues','lodash','whatsappQueuesWaitingInteractions','initIntervals','updateRouting','initSmsQueues','initOpenchannelQueues','initMailQueues','faxQueuesWaitingInteractions','initWhatsappQueues','chatQueuesWaitingInteractions','../model/agent','mailQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','initFaxQueues','mapKeys','whatsappQueues','length','chatQueues','../model/faxQueue','../model/mailQueue'];(function(_0x35a266,_0x226650){const _0x13430c=function(_0x43aa4b){while(--_0x43aa4b){_0x35a266['push'](_0x35a266['shift']());}};_0x13430c(++_0x226650);}(a1172_0x2266,0x18d));const a1172_0x1343=function(_0x35a266,_0x226650){_0x35a266=_0x35a266-0x0;let _0x13430c=a1172_0x2266[_0x35a266];return _0x13430c;};const _0x302f2c=a1172_0x1343;'use strict';const _=require(_0x302f2c('0xf')),Agent=require(_0x302f2c('0x19')),Interval=require('../model/interval'),OpenchannelQueue=require(_0x302f2c('0x4')),ChatQueue=require(_0x302f2c('0x23')),SmsQueue=require('../model/smsQueue'),MailQueue=require(_0x302f2c('0x22')),FaxQueue=require(_0x302f2c('0x21')),WhatsappQueue=require(_0x302f2c('0x7')),Realtime=function(){const _0x36692f=_0x302f2c;this[_0x36692f('0xd')]={},this[_0x36692f('0xb')]={},this[_0x36692f('0x3')]={},this[_0x36692f('0x20')]={},this[_0x36692f('0xe')]={},this[_0x36692f('0x6')]={},this[_0x36692f('0xa')]={},this[_0x36692f('0x1e')]={},this[_0x36692f('0x18')]={},this[_0x36692f('0x1a')]={},this[_0x36692f('0x1b')]={},this[_0x36692f('0x9')]={},this[_0x36692f('0x16')]={},this[_0x36692f('0x10')]={};};function freeIsNotKey(_0x43aa4b,_0x4aff3f,_0x4b9043){const _0x3c978e=_0x302f2c,_0x399ad2=_[_0x3c978e('0x1d')](_0x43aa4b,function(_0x229f93){return _0x229f93[_0x4b9043];});for(const _0x10ab9f in _0x4aff3f){typeof _0x4aff3f[_0x10ab9f]!=='undefined'&&(!_0x399ad2[_0x10ab9f]&&delete _0x4aff3f[_0x10ab9f]);}}Realtime[_0x302f2c('0x8')][_0x302f2c('0x2')]=function(_0x566c5b,_0x59af76){const _0xeb596f=_0x302f2c;for(const _0x23c05a in _0x59af76){typeof _0x566c5b[_0x23c05a]!==_0xeb596f('0xc')&&(_0x566c5b[_0x23c05a]=_0x59af76[_0x23c05a]);}},Realtime['prototype'][_0x302f2c('0x1')]=function(){const _0x515534=this;return function(_0x581def){const _0xcdcea8=a1172_0x1343;if(_0x581def){freeIsNotKey(_0x581def,_0x515534[_0xcdcea8('0xd')],'id');for(let _0x100cb7=0x0,_0xd96271={};_0x100cb7<_0x581def[_0xcdcea8('0x1f')];_0x100cb7+=0x1){_0xd96271=_0x581def[_0x100cb7],_['isUndefined'](_0x515534[_0xcdcea8('0xd')][_0xd96271['id']])?_0x515534[_0xcdcea8('0xd')][_0xd96271['id']]=new Agent(_0xd96271):_0x515534[_0xcdcea8('0x2')](_0x515534['agents'][_0xd96271['id']],_0xd96271);}}return _0x515534['agents'];};},Realtime['prototype'][_0x302f2c('0x11')]=function(){const _0x580f77=this;return function(_0x5299b0){const _0x3ef2ed=a1172_0x1343;if(_0x5299b0){freeIsNotKey(_0x5299b0,_0x580f77[_0x3ef2ed('0xb')],'id');for(let _0x510465=0x0,_0x24a69f={};_0x510465<_0x5299b0[_0x3ef2ed('0x1f')];_0x510465+=0x1){_0x24a69f=_0x5299b0[_0x510465],_[_0x3ef2ed('0x5')](_0x580f77[_0x3ef2ed('0xb')][_0x24a69f['id']])?_0x580f77['intervals'][_0x24a69f['id']]=new Interval(_0x24a69f):_0x580f77[_0x3ef2ed('0x2')](_0x580f77[_0x3ef2ed('0xb')][_0x24a69f['id']],_0x24a69f);}}return _0x580f77[_0x3ef2ed('0xb')];};},Realtime[_0x302f2c('0x8')][_0x302f2c('0x14')]=function(){const _0x44d856=this;return function(_0xd3a090){const _0x382123=a1172_0x1343;if(_0xd3a090){freeIsNotKey(_0xd3a090,_0x44d856[_0x382123('0x3')],'id');for(let _0x3c020b=0x0,_0x217828={};_0x3c020b<_0xd3a090[_0x382123('0x1f')];_0x3c020b+=0x1){_0x217828=_0xd3a090[_0x3c020b],_[_0x382123('0x5')](_0x44d856['openchannelQueues'][_0x217828['id']])?_0x44d856[_0x382123('0x3')][_0x217828['id']]=new OpenchannelQueue(_0x217828):_0x44d856['mergeFromDatabase'](_0x44d856[_0x382123('0x3')][_0x217828['id']],_0x217828),_0x44d856[_0x382123('0x3')][_0x217828['id']][_0x382123('0x12')](),_0x44d856['openchannelQueues'][_0x217828['id']][_0x382123('0x0')]();}}return _0x44d856[_0x382123('0x3')];};},Realtime['prototype']['initChatQueues']=function(){const _0x5b685b=this;return function(_0x2e7434){const _0x3aeadb=a1172_0x1343;if(_0x2e7434){freeIsNotKey(_0x2e7434,_0x5b685b[_0x3aeadb('0x20')],'id');for(let _0x3e4205=0x0,_0x35101e={};_0x3e4205<_0x2e7434[_0x3aeadb('0x1f')];_0x3e4205+=0x1){_0x35101e=_0x2e7434[_0x3e4205],_[_0x3aeadb('0x5')](_0x5b685b[_0x3aeadb('0x20')][_0x35101e['id']])?_0x5b685b[_0x3aeadb('0x20')][_0x35101e['id']]=new ChatQueue(_0x35101e):_0x5b685b[_0x3aeadb('0x2')](_0x5b685b['chatQueues'][_0x35101e['id']],_0x35101e),_0x5b685b['chatQueues'][_0x35101e['id']][_0x3aeadb('0x12')](),_0x5b685b['chatQueues'][_0x35101e['id']][_0x3aeadb('0x0')]();}}return _0x5b685b[_0x3aeadb('0x20')];};},Realtime['prototype'][_0x302f2c('0x13')]=function(){const _0x5f0ada=this;return function(_0x2ffce7){const _0x279dd9=a1172_0x1343;if(_0x2ffce7){freeIsNotKey(_0x2ffce7,_0x5f0ada['smsQueues'],'id');for(let _0x52db1a=0x0,_0x5b35ea={};_0x52db1a<_0x2ffce7[_0x279dd9('0x1f')];_0x52db1a+=0x1){_0x5b35ea=_0x2ffce7[_0x52db1a],_[_0x279dd9('0x5')](_0x5f0ada[_0x279dd9('0xe')][_0x5b35ea['id']])?_0x5f0ada[_0x279dd9('0xe')][_0x5b35ea['id']]=new SmsQueue(_0x5b35ea):_0x5f0ada[_0x279dd9('0x2')](_0x5f0ada[_0x279dd9('0xe')][_0x5b35ea['id']],_0x5b35ea),_0x5f0ada[_0x279dd9('0xe')][_0x5b35ea['id']][_0x279dd9('0x12')](),_0x5f0ada[_0x279dd9('0xe')][_0x5b35ea['id']][_0x279dd9('0x0')]();}}return _0x5f0ada[_0x279dd9('0xe')];};},Realtime[_0x302f2c('0x8')][_0x302f2c('0x15')]=function(){const _0x24dea3=this;return function(_0x642730){const _0x138003=a1172_0x1343;if(_0x642730){freeIsNotKey(_0x642730,_0x24dea3['mailQueues'],'id');for(let _0x492384=0x0,_0x111e4e={};_0x492384<_0x642730[_0x138003('0x1f')];_0x492384+=0x1){_0x111e4e=_0x642730[_0x492384],_['isUndefined'](_0x24dea3[_0x138003('0x6')][_0x111e4e['id']])?_0x24dea3[_0x138003('0x6')][_0x111e4e['id']]=new MailQueue(_0x111e4e):_0x24dea3[_0x138003('0x2')](_0x24dea3[_0x138003('0x6')][_0x111e4e['id']],_0x111e4e),_0x24dea3[_0x138003('0x6')][_0x111e4e['id']][_0x138003('0x12')](),_0x24dea3[_0x138003('0x6')][_0x111e4e['id']][_0x138003('0x0')]();}}return _0x24dea3['mailQueues'];};},Realtime[_0x302f2c('0x8')][_0x302f2c('0x1c')]=function(){const _0x173366=this;return function(_0x2b028e){const _0x4da8fa=a1172_0x1343;if(_0x2b028e){freeIsNotKey(_0x2b028e,_0x173366[_0x4da8fa('0xa')],'id');for(let _0x31d200=0x0,_0x431c64={};_0x31d200<_0x2b028e[_0x4da8fa('0x1f')];_0x31d200+=0x1){_0x431c64=_0x2b028e[_0x31d200],_[_0x4da8fa('0x5')](_0x173366[_0x4da8fa('0xa')][_0x431c64['id']])?_0x173366[_0x4da8fa('0xa')][_0x431c64['id']]=new FaxQueue(_0x431c64):_0x173366[_0x4da8fa('0x2')](_0x173366[_0x4da8fa('0xa')][_0x431c64['id']],_0x431c64),_0x173366['faxQueues'][_0x431c64['id']]['updateRouting'](),_0x173366[_0x4da8fa('0xa')][_0x431c64['id']][_0x4da8fa('0x0')]();}}return _0x173366['faxQueues'];};},Realtime[_0x302f2c('0x8')][_0x302f2c('0x17')]=function(){const _0x4bceb9=this;return function(_0x3db790){const _0x2f5345=a1172_0x1343;if(_0x3db790){freeIsNotKey(_0x3db790,_0x4bceb9['whatsappQueues'],'id');for(let _0x38259f=0x0,_0x1efbc0={};_0x38259f<_0x3db790[_0x2f5345('0x1f')];_0x38259f+=0x1){_0x1efbc0=_0x3db790[_0x38259f],_[_0x2f5345('0x5')](_0x4bceb9[_0x2f5345('0x1e')][_0x1efbc0['id']])?_0x4bceb9['whatsappQueues'][_0x1efbc0['id']]=new WhatsappQueue(_0x1efbc0):_0x4bceb9[_0x2f5345('0x2')](_0x4bceb9['whatsappQueues'][_0x1efbc0['id']],_0x1efbc0),_0x4bceb9[_0x2f5345('0x1e')][_0x1efbc0['id']][_0x2f5345('0x12')](),_0x4bceb9[_0x2f5345('0x1e')][_0x1efbc0['id']][_0x2f5345('0x0')]();}}return _0x4bceb9[_0x2f5345('0x1e')];};},module['exports']=Realtime; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index dd846e8..aa4d488 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1173_0x2ee0=['addTags','AddTagsToChatInteraction','update','../client','Request','UpdateChatInteraction','updateChatInteraction'];(function(_0x473470,_0x2ee0f1){const _0x457b00=function(_0x15533e){while(--_0x15533e){_0x473470['push'](_0x473470['shift']());}};_0x457b00(++_0x2ee0f1);}(a1173_0x2ee0,0x139));const a1173_0x457b=function(_0x473470,_0x2ee0f1){_0x473470=_0x473470-0x0;let _0x457b00=a1173_0x2ee0[_0x473470];return _0x457b00;};const _0x173363=a1173_0x457b;'use strict';const client=require(_0x173363('0x5'));exports[_0x173363('0x4')]=function(_0x15533e,_0xffe96e){const _0x3c3b90=_0x173363;return client[_0x3c3b90('0x6')](_0x3c3b90('0x0'),{'body':_0xffe96e,'options':{'where':{'id':_0x15533e}},'log':_0x3c3b90('0x1')});},exports[_0x173363('0x2')]=function(_0x46f7d2,_0x5b8825){const _0x5ec9c7=_0x173363;return client[_0x5ec9c7('0x6')](_0x5ec9c7('0x3'),{'body':_0x5b8825,'options':{'where':{'id':_0x46f7d2}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index 761025b..77ded23 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1174_0x87f5=['../client','create','createChatMessage','Request'];(function(_0x22a2f3,_0x87f5c5){const _0x115935=function(_0x38f74d){while(--_0x38f74d){_0x22a2f3['push'](_0x22a2f3['shift']());}};_0x115935(++_0x87f5c5);}(a1174_0x87f5,0x1c3));const a1174_0x1159=function(_0x22a2f3,_0x87f5c5){_0x22a2f3=_0x22a2f3-0x0;let _0x115935=a1174_0x87f5[_0x22a2f3];return _0x115935;};const _0x33e41e=a1174_0x1159;'use strict';const client=require(_0x33e41e('0x1'));exports[_0x33e41e('0x2')]=function(_0x38f74d){const _0x21c6b8=_0x33e41e;return client[_0x21c6b8('0x0')]('CreateChatMessage',{'body':_0x38f74d,'log':_0x21c6b8('0x3')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index e2a8969..3e733a8 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1175_0x51ee=['GetChatQueue','name','chatPause','Request','strategy','getChatQueues','online','timeout'];(function(_0x2f1fd0,_0x51eec4){const _0x46a653=function(_0x5983d5){while(--_0x5983d5){_0x2f1fd0['push'](_0x2f1fd0['shift']());}};_0x46a653(++_0x51eec4);}(a1175_0x51ee,0x1e5));const a1175_0x46a6=function(_0x2f1fd0,_0x51eec4){_0x2f1fd0=_0x2f1fd0-0x0;let _0x46a653=a1175_0x51ee[_0x2f1fd0];return _0x46a653;};const _0x3723bf=a1175_0x46a6;'use strict';const client=require('../client');exports[_0x3723bf('0x0')]=function(){return function(){const _0x5b9ded=a1175_0x46a6;return client[_0x5b9ded('0x6')](_0x5b9ded('0x3'),{'options':{'raw':![],'attributes':['id',_0x5b9ded('0x4'),_0x5b9ded('0x2'),_0x5b9ded('0x7')],'include':[{'model':'User','as':'Agents','attributes':['id',_0x5b9ded('0x4'),_0x5b9ded('0x1'),_0x5b9ded('0x5')]}]},'log':_0x5b9ded('0x0')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index 6da7fa8..e7a700e 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1176_0x43c7=['UpdateChatQueueReport','DESC','Request','create','../client','CreateChatQueueReport'];(function(_0x3307ac,_0x43c7bb){const _0x749889=function(_0x55bc0b){while(--_0x55bc0b){_0x3307ac['push'](_0x3307ac['shift']());}};_0x749889(++_0x43c7bb);}(a1176_0x43c7,0x10c));const a1176_0x7498=function(_0x3307ac,_0x43c7bb){_0x3307ac=_0x3307ac-0x0;let _0x749889=a1176_0x43c7[_0x3307ac];return _0x749889;};const _0x1cd0ae=a1176_0x7498;'use strict';const client=require(_0x1cd0ae('0x0'));exports[_0x1cd0ae('0x5')]=function(_0x55bc0b){const _0x4de507=_0x1cd0ae;return client[_0x4de507('0x4')](_0x4de507('0x1'),{'body':_0x55bc0b,'log':_0x4de507('0x1')});},exports['update']=function(_0x135f3f,_0x42dbc5){const _0x2b0d95=_0x1cd0ae;return client[_0x2b0d95('0x4')](_0x2b0d95('0x2'),{'body':_0x42dbc5,'options':{'where':{'uniqueid':_0x135f3f},'order':[['id',_0x2b0d95('0x3')]],'limit':0x1},'log':_0x2b0d95('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index ee3adf7..fe4a0ed 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1177_0x1bd6=['../client','UpdateFaxInteraction','Request','update','addTagsToFaxInteraction','updateFaxInteraction'];(function(_0x31dfa6,_0x1bd6c8){const _0x4b18df=function(_0x1226c3){while(--_0x1226c3){_0x31dfa6['push'](_0x31dfa6['shift']());}};_0x4b18df(++_0x1bd6c8);}(a1177_0x1bd6,0xfc));const a1177_0x4b18=function(_0x31dfa6,_0x1bd6c8){_0x31dfa6=_0x31dfa6-0x0;let _0x4b18df=a1177_0x1bd6[_0x31dfa6];return _0x4b18df;};const _0x55bf4f=a1177_0x4b18;'use strict';const client=require(_0x55bf4f('0x0'));exports[_0x55bf4f('0x3')]=function(_0x1226c3,_0x3be87c){const _0x1e888a=_0x55bf4f;return client[_0x1e888a('0x2')](_0x1e888a('0x1'),{'body':_0x3be87c,'options':{'where':{'id':_0x1226c3}},'log':_0x1e888a('0x5')});},exports['addTags']=function(_0x104ddd,_0x22cb9e){const _0x2f58a0=_0x55bf4f;return client[_0x2f58a0('0x2')]('AddTagsToFaxInteraction',{'body':_0x22cb9e,'options':{'where':{'id':_0x104ddd}},'log':_0x2f58a0('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index d916560..935432f 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1178_0x55c3=['CreateFaxMessage','create','createFaxMessage','../client'];(function(_0x26df19,_0x55c31d){const _0xf3bb36=function(_0x3b7e61){while(--_0x3b7e61){_0x26df19['push'](_0x26df19['shift']());}};_0xf3bb36(++_0x55c31d);}(a1178_0x55c3,0x161));const a1178_0xf3bb=function(_0x26df19,_0x55c31d){_0x26df19=_0x26df19-0x0;let _0xf3bb36=a1178_0x55c3[_0x26df19];return _0xf3bb36;};const _0x1f696d=a1178_0xf3bb;'use strict';const client=require(_0x1f696d('0x2'));exports[_0x1f696d('0x0')]=function(_0x3b7e61){const _0x157eb4=_0x1f696d;return client['Request'](_0x157eb4('0x3'),{'body':_0x3b7e61,'log':_0x157eb4('0x1')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index 17e0e99..37c0c98 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1179_0x109d=['timeout','getFaxQueues','faxPause','Request','strategy','online','Agents','../client','name'];(function(_0x2ec0d7,_0x109d2c){const _0x4aa172=function(_0x138bb0){while(--_0x138bb0){_0x2ec0d7['push'](_0x2ec0d7['shift']());}};_0x4aa172(++_0x109d2c);}(a1179_0x109d,0x119));const a1179_0x4aa1=function(_0x2ec0d7,_0x109d2c){_0x2ec0d7=_0x2ec0d7-0x0;let _0x4aa172=a1179_0x109d[_0x2ec0d7];return _0x4aa172;};const _0x17e154=a1179_0x4aa1;'use strict';const client=require(_0x17e154('0x5'));exports[_0x17e154('0x8')]=function(){return function(){const _0x2f51a2=a1179_0x4aa1;return client[_0x2f51a2('0x1')]('GetFaxQueue',{'options':{'raw':![],'attributes':['id',_0x2f51a2('0x6'),_0x2f51a2('0x7'),_0x2f51a2('0x2')],'include':[{'model':'User','as':_0x2f51a2('0x4'),'attributes':['id',_0x2f51a2('0x6'),_0x2f51a2('0x3'),_0x2f51a2('0x0')]}]},'log':'getFaxQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/faxQueueReport.js b/server/services/routing/rpc/faxQueueReport.js index b71b30a..2c9cd8a 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1180_0x33ef=['update','DESC','CreateFaxQueueReport','../client','Request','UpdateFaxQueueReport','create'];(function(_0x53967d,_0x33ef92){const _0x3333=function(_0x19e640){while(--_0x19e640){_0x53967d['push'](_0x53967d['shift']());}};_0x3333(++_0x33ef92);}(a1180_0x33ef,0x9c));const a1180_0x3333=function(_0x53967d,_0x33ef92){_0x53967d=_0x53967d-0x0;let _0x3333=a1180_0x33ef[_0x53967d];return _0x3333;};const _0x2a7027=a1180_0x3333;'use strict';const client=require(_0x2a7027('0x1'));exports[_0x2a7027('0x4')]=function(_0x19e640){const _0x1fbfa8=_0x2a7027;return client[_0x1fbfa8('0x2')]('CreateFaxQueueReport',{'body':_0x19e640,'log':_0x1fbfa8('0x0')});},exports[_0x2a7027('0x5')]=function(_0x34e72e,_0x2e47be){const _0x3edf42=_0x2a7027;return client[_0x3edf42('0x2')](_0x3edf42('0x3'),{'body':_0x2e47be,'options':{'where':{'uniqueid':_0x34e72e},'order':[['id',_0x3edf42('0x6')]],'limit':0x1},'log':'UpdateFaxQueueReport'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index 66e26af..2044737 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1181_0x124c=['name','GetInterval','Intervals','Interval'];(function(_0xd8fbb,_0x124cff){const _0x3297f4=function(_0x545713){while(--_0x545713){_0xd8fbb['push'](_0xd8fbb['shift']());}};_0x3297f4(++_0x124cff);}(a1181_0x124c,0x174));const a1181_0x3297=function(_0xd8fbb,_0x124cff){_0xd8fbb=_0xd8fbb-0x0;let _0x3297f4=a1181_0x124c[_0xd8fbb];return _0x3297f4;};'use strict';const client=require('../client');exports['getIntervals']=function(){return function(){const _0x2d7a0d=a1181_0x3297;return client['Request'](_0x2d7a0d('0x1'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x2d7a0d('0x0')],'include':[{'model':_0x2d7a0d('0x3'),'as':_0x2d7a0d('0x2'),'attributes':['id',_0x2d7a0d('0x0'),'interval']}]},'log':'getIntervals'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index 5b1e824..f83e5b2 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1182_0x45ac=['UpdateMailInteraction','updateMailInteraction','Request','addTags','../client','addTagsToChatInteraction','update'];(function(_0x1735c3,_0x45acd9){const _0x1cae46=function(_0x349409){while(--_0x349409){_0x1735c3['push'](_0x1735c3['shift']());}};_0x1cae46(++_0x45acd9);}(a1182_0x45ac,0x8f));const a1182_0x1cae=function(_0x1735c3,_0x45acd9){_0x1735c3=_0x1735c3-0x0;let _0x1cae46=a1182_0x45ac[_0x1735c3];return _0x1cae46;};const _0x2110be=a1182_0x1cae;'use strict';const client=require(_0x2110be('0x1'));exports[_0x2110be('0x3')]=function(_0x349409,_0x2cb452){const _0x2a88b7=_0x2110be;return client[_0x2a88b7('0x6')](_0x2a88b7('0x4'),{'body':_0x2cb452,'options':{'where':{'id':_0x349409}},'log':_0x2a88b7('0x5')});},exports[_0x2110be('0x0')]=function(_0x1f6601,_0x2e4564){const _0x5eb82c=_0x2110be;return client['Request']('AddTagsToMailInteraction',{'body':_0x2e4564,'options':{'where':{'id':_0x1f6601}},'log':_0x5eb82c('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailMessage.js b/server/services/routing/rpc/mailMessage.js index 2187310..2b1ef5b 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1183_0x5538=['../client','CreateMailMessage','Request','create'];(function(_0x41a9c7,_0x553802){const _0x2a04b3=function(_0x5d2c51){while(--_0x5d2c51){_0x41a9c7['push'](_0x41a9c7['shift']());}};_0x2a04b3(++_0x553802);}(a1183_0x5538,0x16a));const a1183_0x2a04=function(_0x41a9c7,_0x553802){_0x41a9c7=_0x41a9c7-0x0;let _0x2a04b3=a1183_0x5538[_0x41a9c7];return _0x2a04b3;};const _0x5422e3=a1183_0x2a04;'use strict';const client=require(_0x5422e3('0x2'));exports[_0x5422e3('0x1')]=function(_0x5d2c51){const _0xfd0828=_0x5422e3;return client[_0xfd0828('0x0')](_0xfd0828('0x3'),{'body':_0x5d2c51,'log':'createMailMessage'});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index 2c32ec5..51adcb3 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1184_0x3a3b=['online','mailPause','Agents','User','../client','getMailQueues','GetMailQueue','name'];(function(_0x1d4702,_0x3a3b0a){const _0x9c8e28=function(_0x828618){while(--_0x828618){_0x1d4702['push'](_0x1d4702['shift']());}};_0x9c8e28(++_0x3a3b0a);}(a1184_0x3a3b,0x122));const a1184_0x9c8e=function(_0x1d4702,_0x3a3b0a){_0x1d4702=_0x1d4702-0x0;let _0x9c8e28=a1184_0x3a3b[_0x1d4702];return _0x9c8e28;};const _0x5266ec=a1184_0x9c8e;'use strict';const client=require(_0x5266ec('0x2'));exports[_0x5266ec('0x3')]=function(){return function(){const _0x45981c=a1184_0x9c8e;return client['Request'](_0x45981c('0x4'),{'options':{'raw':![],'attributes':['id','name','timeout','strategy'],'include':[{'model':_0x45981c('0x1'),'as':_0x45981c('0x0'),'attributes':['id',_0x45981c('0x5'),_0x45981c('0x6'),_0x45981c('0x7')]}]},'log':'getMailQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index d6fc00a..bb4e65a 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1185_0x5421=['Request','CreateMailQueueReport','create','UpdateMailQueueReport','DESC','update'];(function(_0x14b35f,_0x5421e5){const _0x8bc58a=function(_0xa92af){while(--_0xa92af){_0x14b35f['push'](_0x14b35f['shift']());}};_0x8bc58a(++_0x5421e5);}(a1185_0x5421,0xd6));const a1185_0x8bc5=function(_0x14b35f,_0x5421e5){_0x14b35f=_0x14b35f-0x0;let _0x8bc58a=a1185_0x5421[_0x14b35f];return _0x8bc58a;};const _0x2b34ad=a1185_0x8bc5;'use strict';const client=require('../client');exports[_0x2b34ad('0x4')]=function(_0xa92af){const _0x11fe24=_0x2b34ad;return client[_0x11fe24('0x2')](_0x11fe24('0x3'),{'body':_0xa92af,'log':_0x11fe24('0x3')});},exports[_0x2b34ad('0x1')]=function(_0x21e4e1,_0x2adef9){const _0x23e062=_0x2b34ad;return client[_0x23e062('0x2')](_0x23e062('0x5'),{'body':_0x2adef9,'options':{'where':{'uniqueid':_0x21e4e1},'order':[['id',_0x23e062('0x0')]],'limit':0x1},'log':_0x23e062('0x5')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index 144ed6f..72cc0e9 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1186_0xe008=['../client','addTags','UpdateOpenchannelInteraction','update','addTagsToChatInteraction','updateOpenchannelInteraction','Request'];(function(_0x313975,_0xe008dc){const _0x3b6c64=function(_0x4965ef){while(--_0x4965ef){_0x313975['push'](_0x313975['shift']());}};_0x3b6c64(++_0xe008dc);}(a1186_0xe008,0xa8));const a1186_0x3b6c=function(_0x313975,_0xe008dc){_0x313975=_0x313975-0x0;let _0x3b6c64=a1186_0xe008[_0x313975];return _0x3b6c64;};const _0x28d5f0=a1186_0x3b6c;'use strict';const client=require(_0x28d5f0('0x0'));exports[_0x28d5f0('0x3')]=function(_0x4965ef,_0x319483){const _0x4b68be=_0x28d5f0;return client[_0x4b68be('0x6')](_0x4b68be('0x2'),{'body':_0x319483,'options':{'where':{'id':_0x4965ef}},'log':_0x4b68be('0x5')});},exports[_0x28d5f0('0x1')]=function(_0x859d5d,_0x4758f8){const _0x441cd1=_0x28d5f0;return client[_0x441cd1('0x6')]('AddTagsToOpenchannelInteraction',{'body':_0x4758f8,'options':{'where':{'id':_0x859d5d}},'log':_0x441cd1('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index 40d51fd..5b360e6 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1187_0x1389=['createOpenchannelMessage','../client','CreateOpenchannelMessage','create'];(function(_0x1bfc0f,_0x138951){const _0x33d206=function(_0x824023){while(--_0x824023){_0x1bfc0f['push'](_0x1bfc0f['shift']());}};_0x33d206(++_0x138951);}(a1187_0x1389,0x12e));const a1187_0x33d2=function(_0x1bfc0f,_0x138951){_0x1bfc0f=_0x1bfc0f-0x0;let _0x33d206=a1187_0x1389[_0x1bfc0f];return _0x33d206;};const _0x439336=a1187_0x33d2;'use strict';const client=require(_0x439336('0x3'));exports[_0x439336('0x1')]=function(_0x824023){const _0x5a8359=_0x439336;return client['Request'](_0x5a8359('0x0'),{'body':_0x824023,'log':_0x5a8359('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index a6f6e8e..7782575 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1188_0x3891=['openchannelPause','../client','strategy','User','name','online','Request','GetOpenchannelQueue'];(function(_0x49a333,_0x38918c){const _0x5c96cc=function(_0x43b473){while(--_0x43b473){_0x49a333['push'](_0x49a333['shift']());}};_0x5c96cc(++_0x38918c);}(a1188_0x3891,0x1be));const a1188_0x5c96=function(_0x49a333,_0x38918c){_0x49a333=_0x49a333-0x0;let _0x5c96cc=a1188_0x3891[_0x49a333];return _0x5c96cc;};const _0x5005df=a1188_0x5c96;'use strict';const client=require(_0x5005df('0x3'));exports['getOpenchannelQueues']=function(){return function(){const _0x22e917=a1188_0x5c96;return client[_0x22e917('0x0')](_0x22e917('0x1'),{'options':{'raw':![],'attributes':['id','name','timeout',_0x22e917('0x4')],'include':[{'model':_0x22e917('0x5'),'as':'Agents','attributes':['id',_0x22e917('0x6'),_0x22e917('0x7'),_0x22e917('0x2')]}]},'log':'getOpenchannelQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index 9dc3239..a3cae10 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1189_0x1552=['Request','UpdateOpenchannelQueueReport','../client','CreateOpenchannelQueueReport','DESC','update','create'];(function(_0x11e927,_0x15524a){const _0x395d26=function(_0x5689ce){while(--_0x5689ce){_0x11e927['push'](_0x11e927['shift']());}};_0x395d26(++_0x15524a);}(a1189_0x1552,0x98));const a1189_0x395d=function(_0x11e927,_0x15524a){_0x11e927=_0x11e927-0x0;let _0x395d26=a1189_0x1552[_0x11e927];return _0x395d26;};const _0x16f616=a1189_0x395d;'use strict';const client=require(_0x16f616('0x4'));exports[_0x16f616('0x1')]=function(_0x5689ce){const _0x301a9b=_0x16f616;return client[_0x301a9b('0x2')](_0x301a9b('0x5'),{'body':_0x5689ce,'log':_0x301a9b('0x5')});},exports[_0x16f616('0x0')]=function(_0x9fec37,_0x3d3610){const _0x107545=_0x16f616;return client[_0x107545('0x2')](_0x107545('0x3'),{'body':_0x3d3610,'options':{'where':{'uniqueid':_0x9fec37},'order':[['id',_0x107545('0x6')]],'limit':0x1},'log':_0x107545('0x3')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index 4618524..9521f07 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1190_0x12ed=['addTagsToSmsInteraction','Request','addTags','updateSmsInteraction','AddTagsToSmsInteraction','../client'];(function(_0xe991b4,_0x12ed9c){const _0x54708b=function(_0x400a88){while(--_0x400a88){_0xe991b4['push'](_0xe991b4['shift']());}};_0x54708b(++_0x12ed9c);}(a1190_0x12ed,0xfe));const a1190_0x5470=function(_0xe991b4,_0x12ed9c){_0xe991b4=_0xe991b4-0x0;let _0x54708b=a1190_0x12ed[_0xe991b4];return _0x54708b;};const _0x18361e=a1190_0x5470;'use strict';const client=require(_0x18361e('0x3'));exports['update']=function(_0x400a88,_0x1c1941){const _0x2e43ef=_0x18361e;return client[_0x2e43ef('0x5')]('UpdateSmsInteraction',{'body':_0x1c1941,'options':{'where':{'id':_0x400a88}},'log':_0x2e43ef('0x1')});},exports[_0x18361e('0x0')]=function(_0x236276,_0xca816b){const _0x46bbbb=_0x18361e;return client[_0x46bbbb('0x5')](_0x46bbbb('0x2'),{'body':_0xca816b,'options':{'where':{'id':_0x236276}},'log':_0x46bbbb('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index b53efd5..4f8fe72 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1191_0x1b1d=['CreateSmsMessage','Request','createSmsMessage','../client','create'];(function(_0x2c459c,_0x1b1dca){const _0x41cf2d=function(_0x302e36){while(--_0x302e36){_0x2c459c['push'](_0x2c459c['shift']());}};_0x41cf2d(++_0x1b1dca);}(a1191_0x1b1d,0x193));const a1191_0x41cf=function(_0x2c459c,_0x1b1dca){_0x2c459c=_0x2c459c-0x0;let _0x41cf2d=a1191_0x1b1d[_0x2c459c];return _0x41cf2d;};const _0x2bee11=a1191_0x41cf;'use strict';const client=require(_0x2bee11('0x0'));exports[_0x2bee11('0x1')]=function(_0x302e36){const _0x137152=_0x2bee11;return client[_0x137152('0x3')](_0x137152('0x2'),{'body':_0x302e36,'log':_0x137152('0x4')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index fd4404e..cda8119 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1192_0x1fef=['GetSmsQueue','../client','name','smsPause','strategy','User','getSmsQueues'];(function(_0x428b9c,_0x1fef79){const _0x27e52b=function(_0x47bd5c){while(--_0x47bd5c){_0x428b9c['push'](_0x428b9c['shift']());}};_0x27e52b(++_0x1fef79);}(a1192_0x1fef,0x17c));const a1192_0x27e5=function(_0x428b9c,_0x1fef79){_0x428b9c=_0x428b9c-0x0;let _0x27e52b=a1192_0x1fef[_0x428b9c];return _0x27e52b;};const _0x2acada=a1192_0x27e5;'use strict';const client=require(_0x2acada('0x6'));exports[_0x2acada('0x4')]=function(){return function(){const _0x2e5d8b=a1192_0x27e5;return client['Request'](_0x2e5d8b('0x5'),{'options':{'raw':![],'attributes':['id',_0x2e5d8b('0x0'),'timeout',_0x2e5d8b('0x2')],'include':[{'model':_0x2e5d8b('0x3'),'as':'Agents','attributes':['id',_0x2e5d8b('0x0'),'online',_0x2e5d8b('0x1')]}]},'log':_0x2e5d8b('0x4')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index cf6856e..de3200e 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1193_0x1aee=['create','UpdateSmsQueueReport','Request','update','DESC','CreateSmsQueueReport','../client'];(function(_0x35fb5e,_0x1aee5b){const _0x2c06d2=function(_0x31e585){while(--_0x31e585){_0x35fb5e['push'](_0x35fb5e['shift']());}};_0x2c06d2(++_0x1aee5b);}(a1193_0x1aee,0x121));const a1193_0x2c06=function(_0x35fb5e,_0x1aee5b){_0x35fb5e=_0x35fb5e-0x0;let _0x2c06d2=a1193_0x1aee[_0x35fb5e];return _0x2c06d2;};const _0x284616=a1193_0x2c06;'use strict';const client=require(_0x284616('0x4'));exports[_0x284616('0x5')]=function(_0x31e585){const _0x1a3913=_0x284616;return client[_0x1a3913('0x0')](_0x1a3913('0x3'),{'body':_0x31e585,'log':_0x1a3913('0x3')});},exports[_0x284616('0x1')]=function(_0x3111b9,_0x455450){const _0x2a0aae=_0x284616;return client[_0x2a0aae('0x0')](_0x2a0aae('0x6'),{'body':_0x455450,'options':{'where':{'uniqueid':_0x3111b9},'order':[['id',_0x2a0aae('0x2')]],'limit':0x1},'log':_0x2a0aae('0x6')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index ce02b87..24ad7f8 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1194_0x3d3f=['chatCapacity','faxPause','GetUser','../client','mailCapacity','getAgents','whatsappCapacity','name','voicePause','chatPause','smsPause','whatsappPause','openchannelCapacity','faxCapacity','mailPause','pauseType'];(function(_0x5ae0b1,_0x3d3f03){const _0x1cfac1=function(_0x1cd489){while(--_0x1cd489){_0x5ae0b1['push'](_0x5ae0b1['shift']());}};_0x1cfac1(++_0x3d3f03);}(a1194_0x3d3f,0x187));const a1194_0x1cfa=function(_0x5ae0b1,_0x3d3f03){_0x5ae0b1=_0x5ae0b1-0x0;let _0x1cfac1=a1194_0x3d3f[_0x5ae0b1];return _0x1cfac1;};const _0x51f2ee=a1194_0x1cfa;'use strict';const client=require(_0x51f2ee('0xc'));exports[_0x51f2ee('0xe')]=function(){return function(){const _0x4add83=a1194_0x1cfa;return client['Request'](_0x4add83('0xb'),{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0x4add83('0x0'),'online',_0x4add83('0x8'),'lastPauseAt',_0x4add83('0x1'),_0x4add83('0x2'),_0x4add83('0x7'),_0x4add83('0xa'),_0x4add83('0x3'),_0x4add83('0x4'),'openchannelPause',_0x4add83('0x9'),_0x4add83('0xd'),_0x4add83('0x6'),'smsCapacity',_0x4add83('0xf'),_0x4add83('0x5')]},'log':_0x4add83('0xe')});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index fa7c7d7..b9c966f 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1195_0x5946=['Request','addTags','update','../client','AddTagsToWhatsappInteraction','updateWhatsappInteraction','addTagsToWhatsappInteraction','UpdateWhatsappInteraction'];(function(_0x4934d2,_0x5946ff){const _0x52f45e=function(_0x5f5c85){while(--_0x5f5c85){_0x4934d2['push'](_0x4934d2['shift']());}};_0x52f45e(++_0x5946ff);}(a1195_0x5946,0x160));const a1195_0x52f4=function(_0x4934d2,_0x5946ff){_0x4934d2=_0x4934d2-0x0;let _0x52f45e=a1195_0x5946[_0x4934d2];return _0x52f45e;};const _0x3635c1=a1195_0x52f4;'use strict';const client=require(_0x3635c1('0x3'));exports[_0x3635c1('0x2')]=function(_0x5f5c85,_0xea9cb2){const _0x9f6d26=_0x3635c1;return client[_0x9f6d26('0x0')](_0x9f6d26('0x7'),{'body':_0xea9cb2,'options':{'where':{'id':_0x5f5c85}},'log':_0x9f6d26('0x5')});},exports[_0x3635c1('0x1')]=function(_0x269d0a,_0x2d651c){const _0x483725=_0x3635c1;return client['Request'](_0x483725('0x4'),{'body':_0x2d651c,'options':{'where':{'id':_0x269d0a}},'log':_0x483725('0x6')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index ecab941..fdd2d9b 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1196_0x2d55=['../client','Request','createWhatsappMessage','create'];(function(_0xc57387,_0x2d5595){const _0x2c4d1f=function(_0x329a39){while(--_0x329a39){_0xc57387['push'](_0xc57387['shift']());}};_0x2c4d1f(++_0x2d5595);}(a1196_0x2d55,0x116));const a1196_0x2c4d=function(_0xc57387,_0x2d5595){_0xc57387=_0xc57387-0x0;let _0x2c4d1f=a1196_0x2d55[_0xc57387];return _0x2c4d1f;};const _0xab881=a1196_0x2c4d;'use strict';const client=require(_0xab881('0x2'));exports[_0xab881('0x1')]=function(_0x329a39){const _0x1ba366=_0xab881;return client[_0x1ba366('0x3')]('CreateWhatsappMessage',{'body':_0x329a39,'log':_0x1ba366('0x0')});}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index 6e0dd60..39558d3 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1197_0x4783=['../client','online','timeout','name','Agents','strategy','User'];(function(_0x4ce32f,_0x4783d2){const _0x421b32=function(_0x1b632d){while(--_0x1b632d){_0x4ce32f['push'](_0x4ce32f['shift']());}};_0x421b32(++_0x4783d2);}(a1197_0x4783,0xe3));const a1197_0x421b=function(_0x4ce32f,_0x4783d2){_0x4ce32f=_0x4ce32f-0x0;let _0x421b32=a1197_0x4783[_0x4ce32f];return _0x421b32;};const _0x16f942=a1197_0x421b;'use strict';const client=require(_0x16f942('0x4'));exports['getWhatsappQueues']=function(){return function(){const _0x500a22=a1197_0x421b;return client['Request']('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id',_0x500a22('0x0'),_0x500a22('0x6'),_0x500a22('0x2')],'include':[{'model':_0x500a22('0x3'),'as':_0x500a22('0x1'),'attributes':['id','name',_0x500a22('0x5'),'whatsappPause']}]},'log':'getWhatsappQueues'});};}; \ No newline at end of file +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 diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 7032949..4670199 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1198_0x2414=['create','UpdateWhatsappQueueReport','Request','DESC','CreateWhatsappQueueReport'];(function(_0x139ce6,_0x2414a4){const _0x131144=function(_0x518885){while(--_0x518885){_0x139ce6['push'](_0x139ce6['shift']());}};_0x131144(++_0x2414a4);}(a1198_0x2414,0xdb));const a1198_0x1311=function(_0x139ce6,_0x2414a4){_0x139ce6=_0x139ce6-0x0;let _0x131144=a1198_0x2414[_0x139ce6];return _0x131144;};const _0x2fec62=a1198_0x1311;'use strict';const client=require('../client');exports[_0x2fec62('0x1')]=function(_0x518885){const _0x2e621b=_0x2fec62;return client[_0x2e621b('0x3')](_0x2e621b('0x0'),{'body':_0x518885,'log':_0x2e621b('0x0')});},exports['update']=function(_0x4cfa8d,_0x31ea6d){const _0xbee20b=_0x2fec62;return client[_0xbee20b('0x3')](_0xbee20b('0x2'),{'body':_0x31ea6d,'options':{'where':{'uniqueid':_0x4cfa8d},'order':[['id',_0xbee20b('0x4')]],'limit':0x1},'log':_0xbee20b('0x2')});}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/agent.js b/server/services/routing/server/applications/agent.js index 4cdeaca..7d522d0 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1199_0x5873=['routing','stop','consequence','agent','START:%s','validate','error','agents','length','toLowerCase','stack','find','[%s][AGENT]\x20ROUTING\x20END','rules','[%s][AGENT]\x20agent\x20not\x20found\x20%s','channel','seq-queue','format','map','[%s][AGENT]\x20%s','info','join','log','string','createQueue','close','next','[%s][QUEUE]\x20%s','./strategy','number','timeout\x20is\x20a\x20number','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','atimeout','name','[%s][AGENT][NAME:%s][STATUS:%s]','end','lodash','message'];(function(_0xc24228,_0x587363){const _0x40ed42=function(_0xa6bb13){while(--_0xa6bb13){_0xc24228['push'](_0xc24228['shift']());}};_0x40ed42(++_0x587363);}(a1199_0x5873,0x119));const a1199_0x40ed=function(_0xc24228,_0x587363){_0xc24228=_0xc24228-0x0;let _0x40ed42=a1199_0x5873[_0xc24228];return _0x40ed42;};const _0x159786=a1199_0x40ed;'use strict';const schema=require(_0x159786('0x1c')),_=require(_0x159786('0x15')),util=require('util'),seqqueue=require(_0x159786('0x1')),logger=require('../../../../config/logger')(_0x159786('0x17')),strategy=require(_0x159786('0xd')),queue=schema({'name':{'type':_0x159786('0x8'),'required':!![],'message':_0x159786('0x10')},'timeout':{'type':_0x159786('0xe'),'message':_0x159786('0xf')}});function writeLog(_0xa6bb13,_0xb211c5,_0x56072d){const _0x26a0b4=_0x159786;return logger['info'](util[_0x26a0b4('0x2')](_0x26a0b4('0x13'),_0xa6bb13,_0xb211c5[_0x26a0b4('0x12')],_0x56072d));}function handleFindAgent(_0x1152d5){return function(_0x14deb1){const _0xd1ce51=a1199_0x40ed;return _0x14deb1['name']['toLowerCase']()===_0x1152d5[_0xd1ce51('0x20')]();};}exports[_0x159786('0x19')]=function(_0x1f23e0,_0x5b42dc,_0x4035fc,_0xfd7171){return function(_0x1f7cd8){const _0x4959cf=a1199_0x40ed;try{const _0x1be32d={'name':_0x5b42dc[0x0],'timeout':_0x5b42dc[0x1]},_0x39d0b7=queue[_0x4959cf('0x1c')](_0x1be32d,{'typecast':!![]});if(_0x39d0b7[_0x4959cf('0x1f')])logger[_0x4959cf('0x1d')](_0x4959cf('0x4'),_0x1f23e0,_[_0x4959cf('0x3')](_0x39d0b7,_0x4959cf('0x16'))[_0x4959cf('0x6')](',\x20')),_0x1f7cd8[_0x4959cf('0x18')]();else{const _0x2938c9=_[_0x4959cf('0x22')](_0x4035fc[_0x4959cf('0x1e')],handleFindAgent(_0x1be32d[_0x4959cf('0x12')]));if(_0x2938c9){const _0x541294=(_0x1be32d['timeout']||0xa)*0x3e8;let _0x2726ee;const _0x4368d1=seqqueue[_0x4959cf('0x9')](_0x541294);_0x4368d1['id']=_0x1f23e0,_0x4368d1[_0x4959cf('0x11')]=_0x541294,_0x4368d1[_0x4959cf('0x0')]=_0xfd7171['channel'],writeLog(_0x1f23e0,_0x2938c9,util[_0x4959cf('0x2')](_0x4959cf('0x1b'),_0x541294)),_0x4035fc[_0x4959cf('0x24')][_0x1f23e0]['on'](_0x4959cf('0x14'),function(){const _0x5972d1=_0x4959cf;logger[_0x5972d1('0x5')]('[%s][AGENT]\x20ROUTING\x20STOPPED',_0x1f23e0),clearTimeout(_0x2726ee),_0x2726ee=undefined,_0x4368d1[_0x5972d1('0xa')](),_0x4035fc[_0x5972d1('0x24')][_0x1f23e0]&&delete _0x4035fc[_0x5972d1('0x24')][_0x1f23e0],_0x1f7cd8[_0x5972d1('0x18')]();}),_0x4035fc['rules'][_0x1f23e0]['on']('complete',function(){_0x4035fc['rules'][_0x1f23e0]&&delete _0x4035fc['rules'][_0x1f23e0];}),_0x2726ee=setTimeout(function(){const _0x31a6e3=_0x4959cf;logger['info'](_0x31a6e3('0x23'),_0x1f23e0),clearTimeout(_0x2726ee),_0x4368d1[_0x31a6e3('0xa')](),_0x1f7cd8[_0x31a6e3('0xb')]();},_0x541294),strategy[_0x4959cf('0x1a')](_0x4368d1,_0x2938c9,_0x4035fc,_0xfd7171);}else logger[_0x4959cf('0x1d')](_0x4959cf('0x25'),_0x1f23e0,_0x1be32d[_0x4959cf('0x12')]),_0x1f7cd8[_0x4959cf('0x18')]();}}catch(_0x24a4c6){console[_0x4959cf('0x7')](_0x24a4c6),logger[_0x4959cf('0x1d')](_0x4959cf('0xc'),_0x1f23e0,_0x24a4c6[_0x4959cf('0x21')]),_0x1f7cd8[_0x4959cf('0x18')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/amazonlex.js b/server/services/routing/server/applications/amazonlex.js index 0aa4b79..1243818 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1200_0x9849=['toString','../../rpc/mailMessage','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','LexRuntime','getMustacheRender','out','Message','AccountId','amazonlex','InteractionId','then','routing','info','lodash','message','../../rpc/openchannelMessage','catch','body','UserId','upperFirst','account','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','created','chat','YYYY-MM-DD\x20HH:mm:ss','Failed','[%s][AMAZONLEX]\x20%s','../../rpc/chatMessage','../../rpc/faxMessage','moment','finally','channel','contact','aws-sdk','./utils','stop','consequence','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','$LATEST','next','format','interaction','ChatWebsiteId','error','../../rpc/smsMessage','create','stringify'];(function(_0x5c3588,_0x984964){const _0x191f62=function(_0x3985cd){while(--_0x3985cd){_0x5c3588['push'](_0x5c3588['shift']());}};_0x191f62(++_0x984964);}(a1200_0x9849,0xb2));const a1200_0x191f=function(_0x5c3588,_0x984964){_0x5c3588=_0x5c3588-0x0;let _0x191f62=a1200_0x9849[_0x5c3588];return _0x191f62;};const _0x11c97c=a1200_0x191f;'use strict';const _=require(_0x11c97c('0x17')),moment=require(_0x11c97c('0x27')),AWS=require(_0x11c97c('0x2b')),utils=require(_0x11c97c('0x2c')),logger=require('../../../../config/logger')(_0x11c97c('0x15')),rpc={'chatMessage':require(_0x11c97c('0x25')),'openchannelMessage':require(_0x11c97c('0x19')),'mailMessage':require(_0x11c97c('0xb')),'smsMessage':require(_0x11c97c('0x7')),'faxMessage':require(_0x11c97c('0x26')),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x11c97c('0x2e')]=function(_0x3985cd,_0x1937d0){return function(_0x27defd){const _0x36bd21=a1200_0x191f;try{if(!_['isNil'](this[_0x36bd21('0x4')][_0x36bd21('0x1c')]))return logger[_0x36bd21('0x16')](_0x36bd21('0x24'),_0x3985cd,_0x36bd21('0x1f')),_0x27defd[_0x36bd21('0x2')]();const _0x159bbf={'ContactId':this[_0x36bd21('0x2a')]['id'],'sentAt':moment()[_0x36bd21('0x3')](_0x36bd21('0x22')),'direction':_0x36bd21('0xf')},_0x238488=this[_0x36bd21('0x29')];_0x238488===_0x36bd21('0x21')?_0x159bbf[_0x36bd21('0x5')]=this[_0x36bd21('0x1e')]['id']:_0x159bbf[_[_0x36bd21('0x1d')](_0x238488)+_0x36bd21('0x11')]=this[_0x36bd21('0x1e')]['id'];_0x159bbf[_[_0x36bd21('0x1d')](_0x238488)+_0x36bd21('0x13')]=this[_0x36bd21('0x4')]['id'];if(this[_0x36bd21('0x4')][_0x36bd21('0x20')]){const _0x3338ad=_0x1937d0[0x4];if(!_['isEmpty'](_0x3338ad))return _0x159bbf[_0x36bd21('0x1b')]=utils[_0x36bd21('0xe')](_0x3338ad,this),rpc[_0x238488+_0x36bd21('0x10')][_0x36bd21('0x8')](_0x159bbf)[_0x36bd21('0x14')](function(){const _0x9f3dc2=_0x36bd21;logger['info'](_0x9f3dc2('0x24'),_0x3985cd,_0x159bbf[_0x9f3dc2('0x1b')]);})[_0x36bd21('0x1a')](function(_0x36bf83){const _0x36bf45=_0x36bd21;logger[_0x36bf45('0x6')](_0x36bf45('0x24'),_0x3985cd,JSON[_0x36bf45('0x9')](_0x36bf83));})[_0x36bd21('0x28')](function(){const _0x27f0db=_0x36bd21;logger[_0x27f0db('0x16')](_0x27f0db('0xc'),_0x3985cd),_0x27defd[_0x27f0db('0x2d')]();});else logger[_0x36bd21('0x16')](_0x36bd21('0x0'),_0x3985cd),_0x27defd['stop']();}else{const _0xb65f99=this,_0x215742=new AWS[(_0x36bd21('0xd'))]({'accessKeyId':_0x1937d0[0x0],'secretAccessKey':_0x1937d0[0x1],'region':_0x1937d0[0x2]}),_0x2f29f8={'botAlias':_0x36bd21('0x1'),'botName':_0x1937d0[0x3],'inputText':this[_0x36bd21('0x18')][_0x36bd21('0x1b')],'userId':this[_0x36bd21('0x29')]+':'+this['interaction']['id'][_0x36bd21('0xa')]()};_0x215742['postText'](_0x2f29f8,function(_0x5e9709,_0x41f5c4){const _0x49de63=_0x36bd21;if(_0x5e9709)logger[_0x49de63('0x6')](_0x49de63('0x24'),_0x3985cd,_0x5e9709[_0x49de63('0x18')]),_0x27defd[_0x49de63('0x2')]();else{if(_0x41f5c4&&_0x41f5c4[_0x49de63('0x18')])return _0xb65f99[_0x49de63('0x1b')][_0x49de63('0x12')]=_0x41f5c4,_0x159bbf[_0x49de63('0x1b')]=_0x41f5c4[_0x49de63('0x18')],rpc[_0x238488+_0x49de63('0x10')]['create'](_0x159bbf)['then'](function(){const _0x41ace6=_0x49de63;logger[_0x41ace6('0x16')](_0x41ace6('0x24'),_0x3985cd,_0x159bbf[_0x41ace6('0x1b')]),_0x41f5c4['dialogState']==_0x41ace6('0x23')?_0x27defd[_0x41ace6('0x2')]():_0x27defd[_0x41ace6('0x2d')]();})[_0x49de63('0x1a')](function(_0x24bdf6){const _0x1c1e4a=_0x49de63;logger[_0x1c1e4a('0x6')](_0x1c1e4a('0x24'),_0x3985cd,JSON['stringify'](_0x24bdf6)),_0x27defd['next']();});else _0x27defd[_0x49de63('0x2')]();}});}}catch(_0x55f606){logger[_0x36bd21('0x6')]('[%s][AMAZONLEX]\x20%s',_0x3985cd,JSON['stringify'](_0x55f606)),_0x27defd[_0x36bd21('0x2d')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/autoreply.js b/server/services/routing/server/applications/autoreply.js index 6d9d5f6..c2ea248 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1201_0x2af6=['account','Re:','YYYY-MM-DD\x20HH:mm:ss','host','format','sendMailMessage','message','stringify','info','../../rpc/openchannelMessage','inReplyTo','./utils','','user','catch','html','../../../../config/logger','startsWith','service','../../rpc/whatsappMessage','channel','[%s][AUTOREPLY]\x20SMTP\x20SENT','../../rpc/chatMessage','authentication','from','consequence','[%s][AUTOREPLY]\x20%s','Message','lodash','','../../rpc/faxMessage','ChatWebsiteId','phone','stop','isNil'];(function(_0x3587aa,_0x2af66c){const _0x19b6f3=function(_0x280d92){while(--_0x280d92){_0x3587aa['push'](_0x3587aa['shift']());}};_0x19b6f3(++_0x2af66c);}(a1201_0x2af6,0x8c));const a1201_0x19b6=function(_0x3587aa,_0x2af66c){_0x3587aa=_0x3587aa-0x0;let _0x19b6f3=a1201_0x2af6[_0x3587aa];return _0x19b6f3;};const _0x13fe06=a1201_0x19b6;'use strict';const _=require(_0x13fe06('0x6')),moment=require('moment'),utils=require(_0x13fe06('0x30')),logger=require(_0x13fe06('0x35'))(_0x13fe06('0x1d')),rpc={'chatMessage':require(_0x13fe06('0x0')),'openchannelMessage':require(_0x13fe06('0x2e')),'mailMessage':require(_0x13fe06('0x1e')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0x13fe06('0x20')),'whatsappMessage':require(_0x13fe06('0x38'))},mailRpc=require(_0x13fe06('0xd'));exports[_0x13fe06('0x3')]=function(_0x280d92,_0x2d6adc){return function(_0x18c7c5){const _0x3a7b44=a1201_0x19b6;try{if(_0x2d6adc[0x0]==='1'&&(_[_0x3a7b44('0x24')](this[_0x3a7b44('0xb')][_0x3a7b44('0xc')])||!this[_0x3a7b44('0xb')][_0x3a7b44('0xc')]))return logger['info'](_0x3a7b44('0x4'),_0x280d92,_0x3a7b44('0x15')),_0x18c7c5[_0x3a7b44('0xf')]();const _0x40ab0c=this['channel'],_0x316d22={'body':utils[_0x3a7b44('0x1c')](_0x2d6adc[0x1],this),'ContactId':this['contact']['id'],'sentAt':moment()[_0x3a7b44('0x29')](_0x3a7b44('0x27')),'direction':'out'};this[_0x3a7b44('0x2b')]&&(_0x316d22['to']=this[_0x3a7b44('0x2b')][_0x3a7b44('0x2')]||'',_0x316d22['cc']=this[_0x3a7b44('0x2b')]['cc']||'',_0x316d22['from']=this[_0x3a7b44('0x2b')]['to']||'',_0x316d22[_0x3a7b44('0x22')]=this['message'][_0x3a7b44('0x22')]||'',_0x316d22['read']=!![],this[_0x3a7b44('0x2b')][_0x3a7b44('0x10')]&&(_0x316d22['subject']='',_0x316d22[_0x3a7b44('0x10')]+=_[_0x3a7b44('0x36')](this[_0x3a7b44('0x2b')]['subject'],_0x3a7b44('0x26'))?'':'Re:\x20',_0x316d22[_0x3a7b44('0x10')]+=this[_0x3a7b44('0x2b')][_0x3a7b44('0x10')]));this['channel']==='chat'?_0x316d22[_0x3a7b44('0x21')]=this['account']['id']:_0x316d22[_['upperFirst'](this[_0x3a7b44('0x39')])+_0x3a7b44('0x18')]=this[_0x3a7b44('0x25')]['id'];_0x316d22[_[_0x3a7b44('0x11')](this[_0x3a7b44('0x39')])+'InteractionId']=this[_0x3a7b44('0xb')]['id'];if(rpc[this['channel']+_0x3a7b44('0x5')]){if(this[_0x3a7b44('0x39')]===_0x3a7b44('0x19')){const _0x248f9c={'tls':{'rejectUnauthorized':![]}};return this['account'][_0x3a7b44('0x12')][_0x3a7b44('0x37')]?_0x248f9c[_0x3a7b44('0x37')]=this[_0x3a7b44('0x25')][_0x3a7b44('0x12')][_0x3a7b44('0x37')]:(_0x248f9c[_0x3a7b44('0x28')]=this[_0x3a7b44('0x25')]['Smtp'][_0x3a7b44('0x28')],_0x248f9c['port']=this[_0x3a7b44('0x25')][_0x3a7b44('0x12')][_0x3a7b44('0x8')],_0x248f9c[_0x3a7b44('0x16')]=this[_0x3a7b44('0x25')][_0x3a7b44('0x12')][_0x3a7b44('0x16')]),this[_0x3a7b44('0x25')]['Smtp'][_0x3a7b44('0x1')]&&(_0x248f9c[_0x3a7b44('0x1b')]={'user':this['account']['Smtp'][_0x3a7b44('0x32')],'pass':this[_0x3a7b44('0x25')]['Smtp']['pass']}),_0x316d22[_0x3a7b44('0x2f')]=this['message'][_0x3a7b44('0x13')],_0x316d22[_0x3a7b44('0x34')]=_0x3a7b44('0x1f')+_['replace'](_0x316d22[_0x3a7b44('0x1a')],_0x3a7b44('0x7'),_0x3a7b44('0xe'))+_0x3a7b44('0x31'),mailRpc[_0x3a7b44('0x2a')](_0x248f9c,_0x316d22)[_0x3a7b44('0x9')](function(_0x1c84ba){const _0x36b598=_0x3a7b44;return logger[_0x36b598('0x2d')](_0x36b598('0x3a'),_0x280d92),_0x316d22[_0x36b598('0x13')]=_0x1c84ba[_0x36b598('0x2b')][_0x36b598('0x13')],rpc[_0x40ab0c+_0x36b598('0x5')][_0x36b598('0x14')](_0x316d22);})[_0x3a7b44('0x9')](function(_0x4ec738){const _0x378c1d=_0x3a7b44;logger['info'](_0x378c1d('0x4'),_0x280d92,JSON[_0x378c1d('0x2c')](_0x4ec738));})[_0x3a7b44('0x33')](function(_0x5ca4e5){const _0x560549=_0x3a7b44;logger[_0x560549('0x17')]('[RPC][%s][AUTOREPLY]\x20%s',_0x280d92,JSON[_0x560549('0x2c')](_0x5ca4e5));})[_0x3a7b44('0xa')](function(){const _0x2d2717=_0x3a7b44;_0x18c7c5[_0x2d2717('0xf')]();});}else return rpc[this['channel']+_0x3a7b44('0x5')][_0x3a7b44('0x14')](_0x316d22)[_0x3a7b44('0x9')](function(){const _0x3bf30a=_0x3a7b44;logger[_0x3bf30a('0x2d')](_0x3bf30a('0x4'),_0x280d92,_0x316d22[_0x3bf30a('0x1a')]);})[_0x3a7b44('0x33')](function(_0x378cd1){const _0x35dc59=_0x3a7b44;logger['error'](_0x35dc59('0x4'),_0x280d92,JSON['stringify'](_0x378cd1));})['finally'](function(){const _0x47e5e2=_0x3a7b44;_0x18c7c5[_0x47e5e2('0xf')]();});}}catch(_0x17cf58){logger[_0x3a7b44('0x17')](_0x3a7b44('0x4'),_0x280d92,JSON[_0x3a7b44('0x2c')](_0x17cf58)),_0x18c7c5[_0x3a7b44('0x23')]();}};}; \ No newline at end of file +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:',']+(>|$)/g,''),'priorityTrue':_0x1a6a45[0x1],'priorityFalse':_0x1a6a45[0x2]},_0xdcd1e0=gotoif[_0xaef633('0x2')](_0x3d09c6,{'typecast':!![]});if(_0xdcd1e0[_0xaef633('0x16')])logger['error'](_0xaef633('0x7'),_0x2c6d56,_['map'](_0xdcd1e0,_0xaef633('0x17'))[_0xaef633('0x1')](',\x20')),_0x2baed8[_0xaef633('0x0')]();else try{const _0x1369d5=eval('('+_0x3d09c6[_0xaef633('0x8')]+')'),_0x2926f0=_0x1369d5?_0x3d09c6['priorityTrue']:_0x3d09c6['priorityFalse'];logger['info'](_0xaef633('0x4'),_0x2c6d56,_0x3d09c6[_0xaef633('0x8')],_0x1369d5,_0x2926f0||_0xaef633('0x10'));if(_0x2926f0){const _0x30f2b9=_['findIndex'](_0x2baed8[_0xaef633('0x3')](),{'p':_0x2926f0});_0x30f2b9>=0x0?(logger['info'](_0xaef633('0x6'),_0x2c6d56,_0x2926f0||_0xaef633('0x10'),_0x30f2b9),_0x2baed8['next'](_0x30f2b9)):(logger[_0xaef633('0x18')](_0xaef633('0xe'),_0x2c6d56,_0x2926f0||'next'),_0x2baed8[_0xaef633('0x0')]());}else _0x2baed8['next']();}catch(_0x2bcb25){logger[_0xaef633('0xd')]('[%s][GOTOIF]\x20eval\x20error:\x20%s',_0x2c6d56,_0x2bcb25[_0xaef633('0x17')]),_0x2baed8[_0xaef633('0x0')]();}}catch(_0x167384){logger[_0xaef633('0xd')](_0xaef633('0x7'),_0x2c6d56,JSON[_0xaef633('0x12')](_0x167384)),_0x2baed8[_0xaef633('0x0')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/gotop.js b/server/services/routing/server/applications/gotop.js index e223d18..c25fbaa 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1205_0x763b=['map','error','number','[%s][GOTOP]\x20%s','[%s][GOTOP]\x20priority\x20%s','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','lodash','consequence','priority','stringify','next','../../../../config/logger','validate','message','routing','length','findIndex','stop','rules','info'];(function(_0x590cce,_0x763bde){const _0x42bdbd=function(_0x2ea6ce){while(--_0x2ea6ce){_0x590cce['push'](_0x590cce['shift']());}};_0x42bdbd(++_0x763bde);}(a1205_0x763b,0x1e3));const a1205_0x42bd=function(_0x590cce,_0x763bde){_0x590cce=_0x590cce-0x0;let _0x42bdbd=a1205_0x763b[_0x590cce];return _0x42bdbd;};const _0x1df272=a1205_0x42bd;'use strict';const schema=require(_0x1df272('0xd')),_=require(_0x1df272('0x7')),logger=require(_0x1df272('0xc'))(_0x1df272('0xf')),gotop=schema({'priority':{'type':_0x1df272('0x2'),'required':!![],'message':_0x1df272('0x6')}});exports[_0x1df272('0x8')]=function(_0x2ea6ce,_0x5b1afe){return function(_0x749b3c){const _0x5a5a7d=a1205_0x42bd;try{const _0x10e5b4={'priority':_0x5b1afe[0x0]},_0x3fc4c9=gotop[_0x5a5a7d('0xd')](_0x10e5b4,{'typecast':!![]});if(_0x3fc4c9[_0x5a5a7d('0x10')])logger[_0x5a5a7d('0x1')](_0x5a5a7d('0x3'),_0x2ea6ce,_[_0x5a5a7d('0x0')](_0x3fc4c9,_0x5a5a7d('0xe'))['join'](',\x20')),_0x749b3c[_0x5a5a7d('0x12')]();else{logger[_0x5a5a7d('0x14')](_0x5a5a7d('0x4'),_0x2ea6ce,_0x10e5b4[_0x5a5a7d('0x9')]);if(_0x10e5b4[_0x5a5a7d('0x9')]){const _0x1151f5=_[_0x5a5a7d('0x11')](_0x749b3c[_0x5a5a7d('0x13')](),{'p':_0x10e5b4[_0x5a5a7d('0x9')]});_0x1151f5>=0x0?(logger['info'](_0x5a5a7d('0x5'),_0x2ea6ce,_0x10e5b4['priority']||_0x5a5a7d('0xb'),_0x1151f5),_0x749b3c[_0x5a5a7d('0xb')](_0x1151f5)):(logger[_0x5a5a7d('0x14')]('[%s][GOTOP]\x20priority\x20%s\x20not\x20found',_0x2ea6ce,_0x10e5b4[_0x5a5a7d('0x9')]||_0x5a5a7d('0xb')),_0x749b3c['stop']());}else _0x749b3c[_0x5a5a7d('0xb')]();}}catch(_0x25376c){logger[_0x5a5a7d('0x1')](_0x5a5a7d('0x3'),_0x2ea6ce,JSON[_0x5a5a7d('0xa')](_0x25376c)),_0x749b3c[_0x5a5a7d('0x12')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/message.js b/server/services/routing/server/applications/message.js index df09adf..9c06b62 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1206_0x202d=['[%s][MESSAGE]\x20%s','lodash','InteractionId','contact','../../rpc/chatMessage','../../../../config/logger','Message','routing','info','channel','../../rpc/openchannelMessage','upperFirst','stop','create','../../rpc/mailMessage','chat','ChatWebsiteId','account','AccountId','./utils','consequence','stringify','error','getMustacheRender','../../rpc/faxMessage','interaction'];(function(_0x316620,_0x202d3c){const _0x385544=function(_0x1817b0){while(--_0x1817b0){_0x316620['push'](_0x316620['shift']());}};_0x385544(++_0x202d3c);}(a1206_0x202d,0x1f2));const a1206_0x3855=function(_0x316620,_0x202d3c){_0x316620=_0x316620-0x0;let _0x385544=a1206_0x202d[_0x316620];return _0x385544;};const _0x5bdfd5=a1206_0x3855;'use strict';const _=require(_0x5bdfd5('0x17')),utils=require(_0x5bdfd5('0xf')),logger=require(_0x5bdfd5('0x1'))(_0x5bdfd5('0x3')),rpc={'chatMessage':require(_0x5bdfd5('0x0')),'openchannelMessage':require(_0x5bdfd5('0x6')),'mailMessage':require(_0x5bdfd5('0xa')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0x5bdfd5('0x14')),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x5bdfd5('0x10')]=function(_0x1817b0,_0x5aa58c){return function(_0x2899e3){const _0x25c3e1=a1206_0x3855;try{const _0x3ad9ed={'body':utils[_0x25c3e1('0x13')](_0x5aa58c[0x0],this),'ContactId':this[_0x25c3e1('0x19')]['id']};this[_0x25c3e1('0x5')]===_0x25c3e1('0xb')?_0x3ad9ed[_0x25c3e1('0xc')]=this[_0x25c3e1('0xd')]['id']:_0x3ad9ed[_[_0x25c3e1('0x7')](this[_0x25c3e1('0x5')])+_0x25c3e1('0xe')]=this['account']['id'];_0x3ad9ed[_[_0x25c3e1('0x7')](this['channel'])+_0x25c3e1('0x18')]=this[_0x25c3e1('0x15')]['id'];if(rpc[this[_0x25c3e1('0x5')]+_0x25c3e1('0x2')])return rpc[this[_0x25c3e1('0x5')]+'Message'][_0x25c3e1('0x9')](_0x3ad9ed)['then'](function(){const _0x2809e9=_0x25c3e1;logger[_0x2809e9('0x4')]('[%s][MESSAGE]\x20%s',_0x1817b0,_0x3ad9ed['body']),_0x2899e3['next']();})['catch'](function(_0x18dcd1){const _0x5b3c81=_0x25c3e1;logger[_0x5b3c81('0x12')](_0x5b3c81('0x16'),_0x1817b0,JSON[_0x5b3c81('0x11')](_0x18dcd1)),_0x2899e3[_0x5b3c81('0x8')]();});}catch(_0x2312c5){logger[_0x25c3e1('0x12')]('[%s][MESSAGE]\x20%s',_0x1817b0,JSON[_0x25c3e1('0x11')](_0x2312c5)),_0x2899e3[_0x25c3e1('0x8')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/noop.js b/server/services/routing/server/applications/noop.js index e30a5d4..95f20f7 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1207_0x4be9=['./utils','stop','error','consequence','getMustacheRender','next','routing','[%s][NOOP]\x20%s'];(function(_0x53ae29,_0x4be929){const _0x5cec81=function(_0x384ff8){while(--_0x384ff8){_0x53ae29['push'](_0x53ae29['shift']());}};_0x5cec81(++_0x4be929);}(a1207_0x4be9,0x139));const a1207_0x5cec=function(_0x53ae29,_0x4be929){_0x53ae29=_0x53ae29-0x0;let _0x5cec81=a1207_0x4be9[_0x53ae29];return _0x5cec81;};const _0x3eed44=a1207_0x5cec;'use strict';const utils=require(_0x3eed44('0x7')),logger=require('../../../../config/logger')(_0x3eed44('0x5'));exports[_0x3eed44('0x2')]=function(_0x384ff8,_0x383709){return function(_0x513f57){const _0x2ea0b1=a1207_0x5cec;try{logger['info'](_0x2ea0b1('0x6'),_0x384ff8,utils[_0x2ea0b1('0x3')](_0x383709[0x0],this)),_0x513f57[_0x2ea0b1('0x4')]();}catch(_0x2d10dc){logger[_0x2ea0b1('0x1')](_0x2ea0b1('0x6'),_0x384ff8,JSON['stringify'](_0x2d10dc)),_0x513f57[_0x2ea0b1('0x0')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/queue.js b/server/services/routing/server/applications/queue.js index fc02676..33c1a9a 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1208_0x5236=['createQueue','update','upperFirst','account','validate','YYYY-MM-DD\x20HH:mm:ss','remove','[%s][QUEUE]\x20ROUTING\x20STOPPED','chat','../../rpc/smsQueueReport','QueueId','rules','from','routing','timeout\x20is\x20a\x20number','pick','qtimeout','interaction','next','create','WebsiteId','toLowerCase','[%s][QUEUE]\x20%s','info','../../rpc/whatsappQueueReport','complete','body','catch','error','string','../../../../rediscache','clone','joinAt','length','message','list','%s_queue_waiting_interaction:%s','../../../../config/logger','moment','close','stop','lodash','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','util','[%s][STOP:QUEUE][NAME:%s]','timeout','log','contact','consequence','[%s][END:QUEUE][NAME:%s]','map','format','../../rpc/openchannelQueueReport','waiting','%sQueuesWaitingInteractions','name','channel','queue_id','queue','../../rpc/chatQueueReport','QueueReport','update\x20queue\x20report','%s:queue:%s','stack','strategy','emit','AccountId','InteractionId','rrmemory','create\x20queue\x20report','beepall','accepted','save'];(function(_0x37c2ec,_0x5236e7){const _0x3380eb=function(_0x5b5686){while(--_0x5b5686){_0x37c2ec['push'](_0x37c2ec['shift']());}};_0x3380eb(++_0x5236e7);}(a1208_0x5236,0x19d));const a1208_0x3380=function(_0x37c2ec,_0x5236e7){_0x37c2ec=_0x37c2ec-0x0;let _0x3380eb=a1208_0x5236[_0x37c2ec];return _0x3380eb;};const _0x3d469e=a1208_0x3380;'use strict';const schema=require('validate'),_=require(_0x3d469e('0x42')),util=require(_0x3d469e('0x44')),seqqueue=require('seq-queue'),moment=require(_0x3d469e('0x3f')),logger=require(_0x3d469e('0x3e'))(_0x3d469e('0x26')),strategy=require('./strategy'),{getSocket}=require(_0x3d469e('0x37')),io=getSocket(),attributes=['id','queue_id',_0x3d469e('0x1c'),_0x3d469e('0xa'),'from',_0x3d469e('0x39')];function emit(_0x5b5686,_0x3249d2,_0x1ee2ab){const _0xb103b9=_0x3d469e;io['to'](_0x5b5686)[_0xb103b9('0x11')](_0x3249d2,_0x1ee2ab);}function emitChannelQueueInteraction(_0x32ad92,_0x2af681,_0x1761c3,_0x31046c,_0x546148,_0x378b4d,_0x5b1fe8,_0x1143c1){const _0x49e092=_0x3d469e,_0x135222=_[_0x49e092('0x38')](_0x1761c3);_0x135222[_0x49e092('0x9')]=_0x1143c1,_0x135222[_0x49e092('0xa')]=_0x2af681,_0x135222[_0x49e092('0x1c')]=_0x31046c,_0x135222['id']=_0x546148,_0x378b4d?_0x5b1fe8[util[_0x49e092('0x3')](_0x49e092('0x6'),_0x32ad92)][_0x546148]=_['pick'](_0x135222,attributes):delete _0x5b1fe8[util[_0x49e092('0x3')]('%sQueuesWaitingInteractions',_0x32ad92)][_0x546148],emit(util['format'](_0x49e092('0xe'),_0x32ad92,_0x2af681),util[_0x49e092('0x3')](_0x49e092('0x3d'),_0x32ad92,_0x378b4d?_0x49e092('0x18'):_0x49e092('0x1f')),_[_0x49e092('0x28')](_0x135222,attributes));}const rpc={'openchannelQueueReport':require(_0x3d469e('0x4')),'mailQueueReport':require('../../rpc/mailQueueReport'),'chatQueueReport':require(_0x3d469e('0xb')),'smsQueueReport':require(_0x3d469e('0x22')),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require(_0x3d469e('0x31'))},queue=schema({'name':{'type':_0x3d469e('0x36'),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':'number','message':_0x3d469e('0x27')}});function startRouting(_0x2654bf,_0xe2dc5c,_0x4611bf,_0x15e428){const _0x319387=_0x3d469e;if(_0x2654bf&&_0xe2dc5c&&_0x4611bf){_0xe2dc5c[_0x319387('0x5')]+=0x1;const _0x1497ee={'uniqueid':_0x2654bf,'from':_0x4611bf[_0x319387('0x33')]?_0x4611bf[_0x319387('0x33')][_0x319387('0x25')]:'','joinAt':moment()[_0x319387('0x3')](_0x319387('0x1e')),'ContactId':_0x4611bf[_0x319387('0x48')]?_0x4611bf[_0x319387('0x48')]['id']:null,'ListId':_0x4611bf[_0x319387('0x3c')]?_0x4611bf[_0x319387('0x3c')]['id']:null};_0x1497ee[_['upperFirst'](_0x4611bf[_0x319387('0x8')])+_0x319387('0x23')]=_0xe2dc5c['id']||null,_0x1497ee[_[_0x319387('0x1b')](_0x4611bf[_0x319387('0x8')])+_0x319387('0x13')]=_0x4611bf['interaction']?_0x4611bf[_0x319387('0x2a')]['id']:null,_0x1497ee[_['upperFirst'](_0x4611bf['channel'])+'MessageId']=_0x4611bf[_0x319387('0x3b')]?_0x4611bf['message']['id']:null,_0x1497ee[_[_0x319387('0x1b')](_0x4611bf[_0x319387('0x8')])+(_0x4611bf[_0x319387('0x8')]!==_0x319387('0x21')?_0x319387('0x12'):_0x319387('0x2d'))]=_0x4611bf[_0x319387('0x1c')]?_0x4611bf[_0x319387('0x1c')]['id']:null,logger[_0x319387('0x30')](util['format']('[%s][START:QUEUE][NAME:%s]',_0x2654bf,_0xe2dc5c[_0x319387('0x7')])),emitChannelQueueInteraction(_0x4611bf[_0x319387('0x8')],_0xe2dc5c[_0x319387('0x7')],_0x1497ee,_0x4611bf['account'][_0x319387('0x7')],_0x4611bf[_0x319387('0x3b')]['id'],!![],_0x15e428,_0xe2dc5c['id']);if(rpc[_0x4611bf[_0x319387('0x8')]+_0x319387('0xc')])return rpc[_0x4611bf[_0x319387('0x8')]+_0x319387('0xc')][_0x319387('0x2c')](_0x1497ee)[_0x319387('0x34')](function(){const _0x57c1e5=_0x319387;logger['error'](_0x57c1e5('0x15'));});}}function stopRouting(_0x28b98f,_0x59eaec,_0x80786,_0x2c5ed4){const _0x3985a3=_0x3d469e;if(_0x28b98f&&_0x59eaec){_0x59eaec['waiting']-=0x1;const _0x525e43={'leaveAt':moment()[_0x3985a3('0x3')](_0x3985a3('0x1e')),'acceptAt':moment()[_0x3985a3('0x3')]('YYYY-MM-DD\x20HH:mm:ss'),'reason':_0x3985a3('0x17')};logger[_0x3985a3('0x30')](util[_0x3985a3('0x3')](_0x3985a3('0x45'),_0x28b98f,_0x59eaec[_0x3985a3('0x7')])),emitChannelQueueInteraction(_0x80786[_0x3985a3('0x8')],_0x59eaec[_0x3985a3('0x7')],_0x80786['body'],_0x80786[_0x3985a3('0x1c')][_0x3985a3('0x7')],_0x80786[_0x3985a3('0x3b')]['id'],![],_0x2c5ed4,_0x59eaec['id']);if(rpc[_0x80786[_0x3985a3('0x8')]+_0x3985a3('0xc')])return rpc[_0x80786[_0x3985a3('0x8')]+'QueueReport'][_0x3985a3('0x1a')](_0x28b98f,_0x525e43)[_0x3985a3('0x34')](function(){const _0x30da99=_0x3985a3;logger[_0x30da99('0x35')]('update\x20queue\x20report');});}}function endRouting(_0x1e9b00,_0x15abc4,_0x4759a3,_0x498691){const _0x4882d7=_0x3d469e;if(_0x1e9b00&&_0x15abc4){_0x15abc4[_0x4882d7('0x5')]-=0x1;const _0x21041f={'leaveAt':moment()[_0x4882d7('0x3')](_0x4882d7('0x1e')),'exitAt':moment()['format'](_0x4882d7('0x1e')),'reason':'timeout'};logger[_0x4882d7('0x30')](util['format'](_0x4882d7('0x1'),_0x1e9b00,_0x15abc4['name'])),emitChannelQueueInteraction(_0x4759a3[_0x4882d7('0x8')],_0x15abc4[_0x4882d7('0x7')],_0x4759a3[_0x4882d7('0x33')],_0x4759a3['account'][_0x4882d7('0x7')],_0x4759a3[_0x4882d7('0x3b')]['id'],![],_0x498691);if(rpc[_0x4759a3[_0x4882d7('0x8')]+_0x4882d7('0xc')])return rpc[_0x4759a3[_0x4882d7('0x8')]+'QueueReport'][_0x4882d7('0x1a')](_0x1e9b00,_0x21041f)[_0x4882d7('0x34')](function(){const _0x56e6dd=_0x4882d7;logger['error'](_0x56e6dd('0xd'));});}}function handleFindQueue(_0x2fc4fd){return function(_0x27b059){const _0x2f2d4a=a1208_0x3380;return _0x27b059['name'][_0x2f2d4a('0x2e')]()===_0x2fc4fd['toLowerCase']();};}exports[_0x3d469e('0x0')]=function(_0x13f198,_0x53c4f8,_0x42cc23,_0xc77e70){return function(_0x1d0a42){const _0xd57186=a1208_0x3380;try{const _0x5d286b={'name':_0x53c4f8[0x0],'timeout':_0x53c4f8[0x1]},_0x546c4a=queue[_0xd57186('0x1d')](_0x5d286b,{'typecast':!![]});if(_0x546c4a[_0xd57186('0x3a')])logger[_0xd57186('0x35')]('[%s][QUEUE]\x20%s',_0x13f198,_[_0xd57186('0x2')](_0x546c4a,_0xd57186('0x3b'))['join'](',\x20')),_0x1d0a42[_0xd57186('0x41')]();else{const _0x2dc63b=_['find'](_0x42cc23[_0xc77e70[_0xd57186('0x8')]+'Queues'],handleFindQueue(_0x5d286b[_0xd57186('0x7')]));if(_0x2dc63b){startRouting(_0x13f198,_0x2dc63b,_0xc77e70,_0x42cc23);const _0x1b8e61=(_0x2dc63b[_0xd57186('0x46')]||0xa)*0x3e8;let _0x2a25c4=(_0x5d286b[_0xd57186('0x46')]||0x14)*0x3e8,_0x297f22;_0x1b8e61>_0x2a25c4&&(_0x2a25c4=_0x1b8e61);const _0x2b2395=seqqueue[_0xd57186('0x19')](_0x1b8e61);_0x2b2395['id']=_0x13f198,_0x2b2395['atimeout']=_0x1b8e61,_0x2b2395[_0xd57186('0x29')]=_0x2a25c4,_0x2b2395[_0xd57186('0x8')]=_0xc77e70[_0xd57186('0x8')],_0x42cc23['rules'][_0x13f198]['on']('end',function(){const _0x17d76b=_0xd57186;logger[_0x17d76b('0x30')](_0x17d76b('0x20'),_0x13f198),stopRouting(_0x13f198,_0x2dc63b,_0xc77e70,_0x42cc23),clearTimeout(_0x297f22),_0x297f22=undefined,_0x2b2395[_0x17d76b('0x40')](!![]),_0x42cc23['rules'][_0x13f198]&&delete _0x42cc23[_0x17d76b('0x24')][_0x13f198],_0x1d0a42[_0x17d76b('0x41')]();}),_0x42cc23[_0xd57186('0x24')][_0x13f198]['on'](_0xd57186('0x32'),function(){const _0x132709=_0xd57186;_0x42cc23[_0x132709('0x24')][_0x13f198]&&delete _0x42cc23[_0x132709('0x24')][_0x13f198];}),_0x297f22=setTimeout(function(){const _0x53a485=_0xd57186;logger[_0x53a485('0x30')]('[%s][QUEUE]\x20APPLICATION\x20END',_0x13f198),endRouting(_0x13f198,_0x2dc63b,_0xc77e70,_0x42cc23),clearTimeout(_0x297f22),_0x2b2395[_0x53a485('0x40')](!![]),_0x1d0a42[_0x53a485('0x2b')]();},_0x2a25c4);switch(_0x2dc63b[_0xd57186('0x10')]){case _0xd57186('0x14'):strategy[_0xd57186('0x14')](_0x2b2395,_0x2dc63b,_0x42cc23,_0xc77e70);break;default:strategy[_0xd57186('0x16')](_0x2b2395,_0x2dc63b,_0x42cc23,_0xc77e70);}}else logger['error'](_0xd57186('0x43'),_0x13f198,_0x5d286b['name']),_0x1d0a42['stop']();}}catch(_0x1de0f7){console[_0xd57186('0x47')](_0x1de0f7),logger[_0xd57186('0x35')](_0xd57186('0x2f'),_0x13f198,_0x1de0f7[_0xd57186('0xf')]),_0x1d0a42[_0xd57186('0x41')]();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/strategy/agent.js b/server/services/routing/server/applications/strategy/agent.js index e247fbe..e2c2e67 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1209_0x3353=['handleDrained','bind','isAgentAvailable','notificationId','isNil','../../../../../config/logger','agent','handleTimeout',':FORCED','realtime','./util','info','STOP','exports','squeue','handleRun','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','writeLog','push','agents','hideNotification','RINGING','channel','routing','drained','busy','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available','forcedOwnership','[%s][AGENT]\x20try\x20with\x20%s','prototype','TIMEOUT'];(function(_0x5d358f,_0x3353af){const _0x1559aa=function(_0x4fc8a1){while(--_0x4fc8a1){_0x5d358f['push'](_0x5d358f['shift']());}};_0x1559aa(++_0x3353af);}(a1209_0x3353,0x10f));const a1209_0x1559=function(_0x5d358f,_0x3353af){_0x5d358f=_0x5d358f-0x0;let _0x1559aa=a1209_0x3353[_0x5d358f];return _0x1559aa;};const _0x367400=a1209_0x1559;'use strict';const _=require('lodash'),uuid=require('uuid'),util=require(_0x367400('0x12')),logger=require(_0x367400('0xd'))('routing'),Agent=function(_0x4fc8a1,_0x179e35,_0x20b124,_0x5802e5){const _0x181726=_0x367400;this['notificationId']=uuid['v4'](),this[_0x181726('0x16')]=_0x4fc8a1,this['agent']=_0x179e35,this[_0x181726('0x11')]=_0x20b124,this[_0x181726('0x0')]=_0x5802e5,this[_0x181726('0x16')][_0x181726('0x1a')](this[_0x181726('0x17')][_0x181726('0x9')](this),this[_0x181726('0xf')]['bind'](this)),this[_0x181726('0x16')]['on']('timeout',this[_0x181726('0xf')][_0x181726('0x9')](this)),this[_0x181726('0x16')]['on'](_0x181726('0x1'),this[_0x181726('0x8')][_0x181726('0x9')](this));};Agent[_0x367400('0x6')][_0x367400('0x1a')]=function(){const _0x32d876=_0x367400;this['squeue'][_0x32d876('0x1a')](this['handleRun'][_0x32d876('0x9')](this),this[_0x32d876('0xf')][_0x32d876('0x9')](this));},Agent[_0x367400('0x6')][_0x367400('0x8')]=function(){const _0x217a0b=_0x367400;this[_0x217a0b('0xf')](!![]);},Agent[_0x367400('0x6')][_0x367400('0x17')]=function(){const _0x2a2b65=_0x367400;logger['info'](_0x2a2b65('0x5'),this[_0x2a2b65('0x16')]['id'],this[_0x2a2b65('0xe')]['id']),_[_0x2a2b65('0xc')](this[_0x2a2b65('0x11')][_0x2a2b65('0x1b')][this['agent']['id']])?(logger[_0x2a2b65('0x13')](_0x2a2b65('0x18'),this['squeue']['id'],this['agent']['id']),setTimeout(this[_0x2a2b65('0x1a')][_0x2a2b65('0x9')](this),0x3e8)):this[_0x2a2b65('0x0')][_0x2a2b65('0x4')]||util[_0x2a2b65('0xa')](this[_0x2a2b65('0x16')]['id'],this[_0x2a2b65('0x11')][_0x2a2b65('0x1b')][this[_0x2a2b65('0xe')]['id']],this['squeue'][_0x2a2b65('0x1e')],![])?(this['realtime']['agents'][this[_0x2a2b65('0xe')]['id']][_0x2a2b65('0x2')]=!![],this[_0x2a2b65('0x11')][_0x2a2b65('0x1b')][this[_0x2a2b65('0xe')]['id']]['busyQueue']=undefined,util['showNotification'](this[_0x2a2b65('0xb')],this[_0x2a2b65('0x16')]['id'],this[_0x2a2b65('0x11')][_0x2a2b65('0x1b')][this[_0x2a2b65('0xe')]['id']],null,this['routing']),util[_0x2a2b65('0x19')](this[_0x2a2b65('0x16')]['id'],this[_0x2a2b65('0x11')][_0x2a2b65('0x1b')][this[_0x2a2b65('0xe')]['id']],_0x2a2b65('0x1d')+(this['routing'][_0x2a2b65('0x4')]?_0x2a2b65('0x10'):''))):(logger['info'](_0x2a2b65('0x3'),this[_0x2a2b65('0x16')]['id'],this[_0x2a2b65('0xe')]['id']),setTimeout(this[_0x2a2b65('0x1a')][_0x2a2b65('0x9')](this),0x3e8));},Agent[_0x367400('0x6')]['handleTimeout']=function(_0x14ac24){const _0x3371b1=_0x367400;if(_['isNil'](this[_0x3371b1('0x11')][_0x3371b1('0x1b')][this[_0x3371b1('0xe')]['id']]))return logger[_0x3371b1('0x13')](_0x3371b1('0x18'),this[_0x3371b1('0x16')]['id'],this[_0x3371b1('0xe')]['id']);else logger[_0x3371b1('0x13')]('[%s][AGENT]\x20timeout\x20with\x20%s',this[_0x3371b1('0x16')]['id'],this[_0x3371b1('0xe')]['id']),util[_0x3371b1('0x1c')](this[_0x3371b1('0xb')],this[_0x3371b1('0x16')]['id'],this['realtime'][_0x3371b1('0x1b')][this[_0x3371b1('0xe')]['id']],null,this[_0x3371b1('0x0')]),this['realtime'][_0x3371b1('0x1b')][this[_0x3371b1('0xe')]['id']]['busy']=![],this[_0x3371b1('0x11')][_0x3371b1('0x1b')][this[_0x3371b1('0xe')]['id']]['busyQueue']=undefined,util[_0x3371b1('0x19')](this[_0x3371b1('0x16')]['id'],this[_0x3371b1('0x11')][_0x3371b1('0x1b')][this[_0x3371b1('0xe')]['id']],_0x14ac24?_0x3371b1('0x14'):_0x3371b1('0x7'));!_0x14ac24&&setTimeout(this[_0x3371b1('0x1a')][_0x3371b1('0x9')](this),0x3e8);};function agent(_0x1b0e55,_0x5329cb,_0x34c01a,_0x170ab6){return new Agent(_0x1b0e55,_0x5329cb,_0x34c01a,_0x170ab6);}module[_0x367400('0x15')]=agent; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 621aa41..74c2111 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1210_0x27f2=['routing','bind','Agents','busyQueue','agents','handleDrained','[%s][QUEUE]\x20EMPTY','exports','length','queue','isNil','timeout','channel','realtime','handleTimeout','push','STOP','isAgentAvailable','drained','handleRun','showNotification','writeLog','notificationId','name','info','prototype','busy','squeue','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s'];(function(_0x3ed334,_0x27f2c8){const _0x571a94=function(_0x2d3204){while(--_0x2d3204){_0x3ed334['push'](_0x3ed334['shift']());}};_0x571a94(++_0x27f2c8);}(a1210_0x27f2,0x16a));const a1210_0x571a=function(_0x3ed334,_0x27f2c8){_0x3ed334=_0x3ed334-0x0;let _0x571a94=a1210_0x27f2[_0x3ed334];return _0x571a94;};const _0x217fb5=a1210_0x571a;'use strict';const _=require('lodash'),uuid=require('uuid'),util=require('./util'),logger=require('../../../../../config/logger')('routing'),Beepall=function(_0x2d3204,_0x3595d3,_0x123ccd,_0x4f2e38){const _0x2207be=a1210_0x571a;this[_0x2207be('0x8')]=uuid['v4'](),this[_0x2207be('0xd')]=_0x2d3204,this[_0x2207be('0x18')]=_0x3595d3,this[_0x2207be('0x1c')]=_0x123ccd,this[_0x2207be('0xf')]=_0x4f2e38,this['squeue'][_0x2207be('0x1')](this[_0x2207be('0x5')][_0x2207be('0x10')](this),this[_0x2207be('0x0')]['bind'](this)),this[_0x2207be('0xd')]['on'](_0x2207be('0x1a'),this[_0x2207be('0x0')][_0x2207be('0x10')](this)),this[_0x2207be('0xd')]['on'](_0x2207be('0x4'),this[_0x2207be('0x14')][_0x2207be('0x10')](this));};Beepall[_0x217fb5('0xb')][_0x217fb5('0x1')]=function(){const _0x19972a=_0x217fb5;this[_0x19972a('0xd')][_0x19972a('0x1')](this['handleRun']['bind'](this),this[_0x19972a('0x0')][_0x19972a('0x10')](this));},Beepall['prototype'][_0x217fb5('0x14')]=function(){const _0x43bc9f=_0x217fb5;this[_0x43bc9f('0x0')](!![]);},Beepall['prototype'][_0x217fb5('0x5')]=function(){const _0x2d29c9=_0x217fb5;let _0x3c63d1=!![];if(!_['isNil'](this[_0x2d29c9('0x18')])&&!_[_0x2d29c9('0x19')](this['queue'][_0x2d29c9('0x11')])&&this['queue'][_0x2d29c9('0x11')]['length']>0x0){for(let _0x30c626=0x0,_0x36934d;_0x30c6260x0){for(let _0x55854c=0x0,_0x4e5a42;_0x55854c0x0&&_0x512d69[_0x1bb0b9+_0x19b649('0x12')]>=_0x512d69[_0x1bb0b9+'Capacity'])return writeLog(_0x1a135f,_0x512d69,_0x1bb0b9['toUpperCase']()+_0x19b649('0x17')),![];}return!![];},exports[_0x12d40b('0x1f')]=function(_0x3395d0,_0x38f777,_0xd87637,_0x1ad361,_0x31cb3b){return sendNotification(!![],_0x3395d0,_0x38f777,_0xd87637,_0x1ad361,_0x31cb3b);},exports[_0x12d40b('0x14')]=function(_0xdae5ae,_0x414426,_0x1b4e9a,_0x380dcc,_0x2e6bc){return sendNotification(![],_0xdae5ae,_0x414426,_0x1b4e9a,_0x380dcc,_0x2e6bc);},exports[_0x12d40b('0x5')]=writeLog; \ No newline at end of file +const a1213_0x49bf=['OFFLINE','undefined','body','emit','queue','name','online','\x20MAXCAPACITY','hideNotification','toUpperCase','format','Capacity','\x20interaction','[%s][QUEUE]\x20%s','save','notificationTemplate','CurrentCapacity','../../../../../config/logger','BUSY','Pause','msg','routing','writeLog','info','isAgentAvailable','error','[%s][QUEUE][AGENT:%s][STATUS:%s]','user:%s','account','../utils','notificationShake'];(function(_0x42f98e,_0x49bfcf){const _0x3d37c6=function(_0x1f3a7a){while(--_0x1f3a7a){_0x42f98e['push'](_0x42f98e['shift']());}};_0x3d37c6(++_0x49bfcf);}(a1213_0x49bf,0x18f));const a1213_0x3d37=function(_0x42f98e,_0x49bfcf){_0x42f98e=_0x42f98e-0x0;let _0x3d37c6=a1213_0x49bf[_0x42f98e];return _0x3d37c6;};const _0x588d52=a1213_0x3d37;'use strict';const util=require('util'),utils=require(_0x588d52('0x2')),logger=require(_0x588d52('0x15'))(_0x588d52('0x19')),{getSocket}=require('../../../../../rediscache'),io=getSocket();function sendNotification(_0x1f3a7a,_0x26cae9,_0x5b1fc3,_0x487553,_0x5c44a0,_0x4149ca){const _0x546fb5=_0x588d52;io['to'](util[_0x546fb5('0xe')](_0x546fb5('0x0'),_0x487553[_0x546fb5('0x9')]))[_0x546fb5('0x7')]('user:save',_0x487553);const _0xf41b85=_0x4149ca||{},_0x204a23=_0x5b1fc3['split']('.'),_0x431a86={'uniqueid':_0x26cae9,'channel':_0x204a23[0x0],'id':_0x204a23[0x1],'title':_0x204a23[0x0]+_0x546fb5('0x10'),'interactionId':_0x204a23[0x2],'queue':_0x5c44a0?_0x5c44a0[_0x546fb5('0x9')]:null,'sound':_0xf41b85[_0x546fb5('0x1')]['notificationSound'],'shake':_0xf41b85[_0x546fb5('0x1')][_0x546fb5('0x3')]};try{!_0xf41b85[_0x546fb5('0x6')]&&(_0xf41b85[_0x546fb5('0x6')]={});if(_0x5c44a0)_0xf41b85[_0x546fb5('0x6')][_0x546fb5('0x8')]=_0x5c44a0;else _0xf41b85[_0x546fb5('0x6')][_0x546fb5('0x8')]&&delete _0xf41b85[_0x546fb5('0x6')]['queue'];_0x431a86[_0x546fb5('0x18')]=utils['getMustacheRender'](_0xf41b85[_0x546fb5('0x1')][_0x546fb5('0x13')],_0xf41b85);}catch(_0x5cc146){_0x431a86[_0x546fb5('0x18')]='I\x20can\x27t\x20render\x20your\x20template',logger[_0x546fb5('0x1d')](util[_0x546fb5('0xe')](_0x546fb5('0x11'),_0x26cae9,_0x5cc146['message']));}io['to'](util[_0x546fb5('0xe')](_0x546fb5('0x0'),_0x487553['name']))['emit'](util[_0x546fb5('0xe')]('notification:%s',_0x1f3a7a?_0x546fb5('0x12'):'remove'),_0x431a86);}function writeLog(_0x194231,_0x4cbca3,_0x4524d6){const _0xa4d759=_0x588d52;return logger[_0xa4d759('0x1b')](util['format'](_0xa4d759('0x1e'),_0x194231,_0x4cbca3[_0xa4d759('0x9')],_0x4524d6));}exports[_0x588d52('0x1c')]=function(_0x5388a8,_0x58232c,_0x1a24af,_0x2709c5){const _0x1d53ac=_0x588d52;if(_0x58232c['busy'])return writeLog(_0x5388a8,_0x58232c,_0x1d53ac('0x16')),![];if(!_0x58232c[_0x1d53ac('0xa')])return writeLog(_0x5388a8,_0x58232c,_0x1d53ac('0x4')),![];if(_0x58232c[_0x1a24af+_0x1d53ac('0x17')])return writeLog(_0x5388a8,_0x58232c,'PAUSE'),![];if(_0x2709c5&&typeof _0x58232c[_0x1a24af+_0x1d53ac('0xf')]!==_0x1d53ac('0x5')&&typeof _0x58232c[_0x1a24af+_0x1d53ac('0x14')]!=='undefined'){if(_0x58232c[_0x1a24af+'Capacity']>0x0&&_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 diff --git a/server/services/routing/server/applications/system.js b/server/services/routing/server/applications/system.js index 9745ba6..2e0620f 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1214_0x19d3=['shelljs','isEmpty','[%s][SYSTEM]\x20%s','stringify','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','consequence','trim','message','isNil','next','string','replace','lodash','isObject','length','[%s][SYSTEM]\x20result\x20code:\x20%s','info','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','error','validate','body','[%s][SYSTEM]\x20no\x20variable','getMustacheRender','join','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s'];(function(_0x212188,_0x19d304){const _0x13a100=function(_0x26d580){while(--_0x26d580){_0x212188['push'](_0x212188['shift']());}};_0x13a100(++_0x19d304);}(a1214_0x19d3,0x1be));const a1214_0x13a1=function(_0x212188,_0x19d304){_0x212188=_0x212188-0x0;let _0x13a100=a1214_0x19d3[_0x212188];return _0x13a100;};const _0x3dd3d1=a1214_0x13a1;'use strict';const schema=require(_0x3dd3d1('0x17')),sh=require(_0x3dd3d1('0x4')),_=require(_0x3dd3d1('0x10')),utils=require('./utils'),logger=require('../../../../config/logger')('routing'),system=schema({'command':{'type':_0x3dd3d1('0xe'),'required':!![],'message':_0x3dd3d1('0x8')}});exports[_0x3dd3d1('0x9')]=function(_0x26d580,_0x3baae3){return function(_0x384cdf){const _0x50e621=a1214_0x13a1;try{const _0x5ce6f4={'command':_0x3baae3[0x0]},_0x56b213=system['validate'](_0x5ce6f4,{'typecast':!![]});if(_0x56b213[_0x50e621('0x12')])logger['error'](_0x50e621('0x6'),_0x26d580,_['map'](_0x56b213,_0x50e621('0xb'))[_0x50e621('0x2')](',\x20')),logger[_0x50e621('0x14')](_0x50e621('0x15'),_0x26d580),_0x384cdf[_0x50e621('0xd')]();else{const _0x508c26=this,_0x2681bd=utils[_0x50e621('0x1')](_0x3baae3[0x0],this);logger[_0x50e621('0x14')]('[%s][SYSTEM]\x20commnad:\x20%s',_0x26d580,_0x2681bd),sh['exec'](_[_0x50e621('0xa')](_0x2681bd),function(_0x21a0a4,_0x35a759){const _0x21650c=_0x50e621;logger['info'](_0x21650c('0x13'),_0x26d580,_0x21a0a4);if(_0x21a0a4==0x0){const _0x315743=_0x35a759[_0x21650c('0xf')](/(\r\n|\n|\r)/gm,'');_[_0x21650c('0xc')](_0x3baae3[0x1])||_[_0x21650c('0x5')](_0x3baae3[0x1])?(logger[_0x21650c('0x14')](_0x21650c('0x0'),_0x26d580),_0x508c26[_0x21650c('0x18')][_0x3baae3[0x1]]=_0x315743):(logger[_0x21650c('0x14')](_0x21650c('0x3'),_0x26d580,_0x3baae3[0x1],_0x315743),_0x508c26[_0x21650c('0x18')][_0x3baae3[0x1]]=_0x315743);}_0x384cdf[_0x21650c('0xd')]();});}}catch(_0x39893c){logger[_0x50e621('0x16')](_0x50e621('0x6'),_0x26d580,_[_0x50e621('0x11')](_0x39893c)?JSON[_0x50e621('0x7')](_0x39893c):_0x39893c),logger[_0x50e621('0x14')](_0x50e621('0x15'),_0x26d580),_0x384cdf['next']();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/tag.js b/server/services/routing/server/applications/tag.js index 16208de..f1554b1 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1215_0x1a54=['../../rpc/mailInteraction','then','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','finally','routing','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','interaction','../../rpc/chatInteraction','addTags','lodash','map','validate','../../rpc/faxInteraction','../../../../config/logger','../../rpc/whatsappInteraction','channel','stringify','consequence','error','length','Interaction','info','[%s][TAG]\x20%s','number','../../rpc/openchannelInteraction','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','message'];(function(_0x48d4f3,_0x1a54cb){const _0x30d95b=function(_0x5eb862){while(--_0x5eb862){_0x48d4f3['push'](_0x48d4f3['shift']());}};_0x30d95b(++_0x1a54cb);}(a1215_0x1a54,0xfe));const a1215_0x30d9=function(_0x48d4f3,_0x1a54cb){_0x48d4f3=_0x48d4f3-0x0;let _0x30d95b=a1215_0x1a54[_0x48d4f3];return _0x30d95b;};const _0x4f2579=a1215_0x30d9;'use strict';const schema=require(_0x4f2579('0x0')),_=require(_0x4f2579('0x19')),rpc={'chatInteraction':require(_0x4f2579('0x17')),'openchannelInteraction':require(_0x4f2579('0xd')),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(_0x4f2579('0x10')),'faxInteraction':require(_0x4f2579('0x1')),'whatsappInteraction':require(_0x4f2579('0x3'))},logger=require(_0x4f2579('0x2'))(_0x4f2579('0x14')),tag=schema({'tag':{'type':_0x4f2579('0xc'),'required':!![],'message':_0x4f2579('0x12')}});exports[_0x4f2579('0x6')]=function(_0x5eb862,_0x1fa050,_0x272785,_0x3f3fd2){return function(_0x37989c){const _0x3e407b=a1215_0x30d9;try{const _0x467a56={'tag':_0x1fa050[0x0]},_0x2763ba=tag[_0x3e407b('0x0')](_0x467a56,{'typecast':!![]});if(_0x2763ba[_0x3e407b('0x8')])logger[_0x3e407b('0x7')](_0x3e407b('0xb'),_0x5eb862,_[_0x3e407b('0x1a')](_0x2763ba,_0x3e407b('0xf'))['join'](',\x20')),logger['info'](_0x3e407b('0xe'),_0x5eb862),_0x37989c['next']();else{const _0x2874ef={'ids':[_0x1fa050[0x0]]};rpc[_0x3f3fd2[_0x3e407b('0x4')]+_0x3e407b('0x9')]&&rpc[_0x3f3fd2[_0x3e407b('0x4')]+_0x3e407b('0x9')][_0x3e407b('0x18')](_0x3f3fd2['interaction']['id'],_0x2874ef)[_0x3e407b('0x11')](function(){const _0xaee892=_0x3e407b;logger[_0xaee892('0xa')](_0xaee892('0x15'),_0x5eb862,_0x1fa050[0x1],_0x3f3fd2[_0xaee892('0x4')],_0x3f3fd2[_0xaee892('0x16')]['id']);})['catch'](function(_0x51ade1){const _0x26b1b5=_0x3e407b;logger[_0x26b1b5('0x7')]('[%s][TAG]\x20%s',_0x5eb862,JSON['stringify'](_0x51ade1)),logger[_0x26b1b5('0xa')]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x5eb862);})[_0x3e407b('0x13')](function(){_0x37989c['next']();});}}catch(_0x4e13c7){logger[_0x3e407b('0x7')](_0x3e407b('0xb'),_0x5eb862,_['isObject'](_0x4e13c7)?JSON[_0x3e407b('0x5')](_0x4e13c7):_0x4e13c7),logger['info'](_0x3e407b('0xe'),_0x5eb862),_0x37989c['next']();}};}; \ No newline at end of file +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 diff --git a/server/services/routing/server/applications/utils.js b/server/services/routing/server/applications/utils.js index ca93909..e496f7d 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1216_0x283d=['interaction','merge','render','contact','body','lodash','exports'];(function(_0x284662,_0x283d25){const _0x2b1df5=function(_0x308d1b){while(--_0x308d1b){_0x284662['push'](_0x284662['shift']());}};_0x2b1df5(++_0x283d25);}(a1216_0x283d,0x161));const a1216_0x2b1d=function(_0x284662,_0x283d25){_0x284662=_0x284662-0x0;let _0x2b1df5=a1216_0x283d[_0x284662];return _0x2b1df5;};const _0x5ef700=a1216_0x2b1d;'use strict';const Mustache=require('mustache'),_=require(_0x5ef700('0x2'));module[_0x5ef700('0x3')]={'getMustacheRender':function(_0x308d1b,_0x383333){const _0x2c4a51=_0x5ef700;return Mustache[_0x2c4a51('0x6')](_0x308d1b,_[_0x2c4a51('0x5')](_0x383333[_0x2c4a51('0x1')],{'contact':_0x383333[_0x2c4a51('0x0')],'message':_0x383333['message'],'account':_0x383333['account'],'interaction':_0x383333[_0x2c4a51('0x4')],'list':_0x383333['list']}))||'';}}; \ No newline at end of file +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 diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index fa8498f..d210cb6 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1217_0x3096=['faxQueuesWaitingInteractions','../lib/rule-engine','http','listen','split','priority','complete','faxQueues','updateRealtime','map','TagId','../rpc/mailQueueReport','stack','whatsappQueues','paused','info','end','smsQueues','interaction','IntervalId','stringify','undefined','error\x20update\x20queue\x20report','jayson/promise','agents','applications','Intervals','emit','mailQueuesWaitingInteractions','chatQueues','tag','openchannelQueues','loggedIn','rules','push','%s:%s:%s','error','slice','isNil','amazonlex','update','UserId','intervals','.js','format','QueueReport','available','agent','app','values','util','openchannelQueuesWaitingInteractions','waiting','server','mailQueues','name','busy','message','isArray','routing','../rpc/openchannelQueueReport','../rpc/chatQueueReport','join','channel','../rpc/faxQueueReport','RPC\x20listening\x20on\x20port:','./applications/','lodash','message\x20is\x20empty','127.0.0.1','interval','length','appdata','capacity','routing\x20is\x20empty','log','autoreply'];(function(_0x5e23b4,_0x30968e){const _0x4532f8=function(_0x30e230){while(--_0x30e230){_0x5e23b4['push'](_0x5e23b4['shift']());}};_0x4532f8(++_0x30968e);}(a1217_0x3096,0x1bd));const a1217_0x4532=function(_0x5e23b4,_0x30968e){_0x5e23b4=_0x5e23b4-0x0;let _0x4532f8=a1217_0x3096[_0x5e23b4];return _0x4532f8;};const _0x161256=a1217_0x4532;'use strict';const _=require(_0x161256('0x7')),util=require(_0x161256('0x43')),path=require('path'),fs=require('fs'),jayson=require(_0x161256('0x28')),logger=require('../../../config/logger')(_0x161256('0x4c')),rpc={'openchannelQueueReport':require(_0x161256('0x0')),'mailQueueReport':require(_0x161256('0x1c')),'chatQueueReport':require(_0x161256('0x1')),'smsQueueReport':require('../rpc/smsQueueReport'),'faxQueueReport':require(_0x161256('0x4')),'whatsappQueueReport':require('../rpc/whatsappQueueReport')},RuleEngine=require(_0x161256('0x12'));function getId(_0x30e230,_0x4e6b6c,_0x24d699){const _0x365dc6=_0x161256;return util[_0x365dc6('0x3d')]('%s.%s.%s',_0x30e230,_0x4e6b6c||0x0,_0x24d699||0x0);}function getIntervals(_0x4ec7c1,_0x178cb4){const _0x5a0c87=_0x161256;let _0x2e9f2b=[];if(!_[_0x5a0c87('0x37')](_0x178cb4[_0x5a0c87('0x24')])&&!_[_0x5a0c87('0x37')](_0x4ec7c1[_0x178cb4[_0x5a0c87('0x24')]])&&!_['isNil'](_0x4ec7c1[_0x178cb4[_0x5a0c87('0x24')]][_0x5a0c87('0x2b')]))_0x2e9f2b=_[_0x5a0c87('0x1a')](_0x4ec7c1[_0x178cb4[_0x5a0c87('0x24')]][_0x5a0c87('0x2b')],_0x5a0c87('0xa'));else!_['isNil'](_0x178cb4[_0x5a0c87('0xa')])&&(_0x2e9f2b=[_0x178cb4['interval']]);return _0x2e9f2b;}exports[_0x161256('0x14')]=function(_0x1468e3){const _0x24bea1=_0x161256;return _0x1468e3[_0x24bea1('0x32')]={},new Promise(function(_0x2c4335,_0x28b209){const _0x37a235=_0x24bea1,_0x2ac14e={'Start':function(_0x36004d){const _0x2cac4d=this;return new Promise(function(_0x2d6daa,_0x17c210){const _0x56ff21=a1217_0x4532;if(_0x36004d)try{const _0x520c02=[],_0x5a01ba=getId(_0x36004d['channel'],_0x36004d[_0x56ff21('0x4a')]?_0x36004d['message']['id']:0x0,_0x36004d[_0x56ff21('0x23')]?_0x36004d[_0x56ff21('0x23')]['id']:0x0);if(_0x36004d[_0x56ff21('0x2a')]&&_[_0x56ff21('0x4b')](_0x36004d[_0x56ff21('0x2a')])&&_0x36004d[_0x56ff21('0x2a')][_0x56ff21('0xb')]){for(let _0x19b70e=0x0;_0x19b70e<_0x36004d[_0x56ff21('0x2a')][_0x56ff21('0xb')];_0x19b70e+=0x1){const _0x556d20=_0x36004d['applications'][_0x19b70e];if(fs['existsSync'](path['join'](__dirname,_0x56ff21('0x2a'),_0x556d20['app']+_0x56ff21('0x3c')))){let _0x87e827=[];switch(_0x556d20[_0x56ff21('0x41')]['toLowerCase']()){case _0x56ff21('0x10'):{const _0x54aac5=_0x556d20[_0x56ff21('0xc')][_0x56ff21('0x15')](',');_0x87e827[_0x56ff21('0x33')](_0x54aac5[0x0]),_0x87e827['push'](_0x54aac5[_0x56ff21('0x36')](0x1,_0x54aac5[_0x56ff21('0xb')])['join'](','));}break;case'dialogflow':{const _0x4ed2c0=_0x556d20[_0x56ff21('0xc')]['split'](',');_0x87e827[_0x56ff21('0x33')](_0x4ed2c0[0x0]),_0x87e827['push'](_0x4ed2c0[0x1]),_0x87e827['push'](_0x4ed2c0['slice'](0x2,_0x4ed2c0['length'])['join'](','));}break;case _0x56ff21('0x38'):{const _0x2b0856=_0x556d20[_0x56ff21('0xc')][_0x56ff21('0x15')](',');_0x87e827[_0x56ff21('0x33')](_0x2b0856[0x0]),_0x87e827[_0x56ff21('0x33')](_0x2b0856[0x1]),_0x87e827['push'](_0x2b0856[0x2]),_0x87e827['push'](_0x2b0856[0x3]),_0x87e827[_0x56ff21('0x33')](_0x2b0856['slice'](0x4,_0x2b0856['length'])[_0x56ff21('0x2')](','));}break;case'message':_0x87e827[_0x56ff21('0x33')](_0x556d20[_0x56ff21('0xc')]);break;case _0x56ff21('0x2f'):_0x87e827[_0x56ff21('0x33')](_0x556d20[_0x56ff21('0x1b')]),_0x87e827['push'](_0x556d20[_0x56ff21('0xc')]);break;default:_0x87e827=_['isNil'](_0x556d20[_0x56ff21('0xc')])?[]:_0x556d20[_0x56ff21('0xc')]['split'](',');}const _0x580013={'id':util[_0x56ff21('0x3d')](_0x56ff21('0x34'),_0x5a01ba,_0x556d20['id'],_0x556d20[_0x56ff21('0x41')]),'condition':require('./interval')['condition'](_0x5a01ba,getIntervals(_0x1468e3[_0x56ff21('0x3b')],_0x556d20),_0x1468e3),'consequence':require(_0x56ff21('0x6')+_0x556d20[_0x56ff21('0x41')])['consequence'](_0x5a01ba,_0x87e827,_0x1468e3,_0x36004d),'p':_0x556d20[_0x56ff21('0x16')]||0x0};logger['info']('Push\x20new\x20rule',_0x580013['id'],'on\x20interval',getIntervals(_0x1468e3[_0x56ff21('0x3b')],_0x556d20)[_0x56ff21('0x2')]('\x20|\x20')),_0x520c02[_0x56ff21('0x33')](_0x580013);}else logger[_0x56ff21('0x35')]('Please\x20create\x20a\x20new\x20file\x20under',path[_0x56ff21('0x2')](__dirname,_0x56ff21('0x2a'),_0x556d20[_0x56ff21('0x41')]+_0x56ff21('0x3c')));}return _0x1468e3[_0x56ff21('0x32')][_0x5a01ba]=new RuleEngine(_0x520c02),_0x1468e3[_0x56ff21('0x32')][_0x5a01ba]['execute'](_0x36004d,function(_0x44bbcb){const _0x2112c0=_0x56ff21;logger[_0x2112c0('0x20')]('Applications\x20executed',JSON[_0x2112c0('0x25')](_0x44bbcb['matchPath'])),_0x1468e3['rules'][_0x5a01ba]&&_0x1468e3['rules'][_0x5a01ba]['emit'](_0x2112c0('0x17'));}),_0x2d6daa({'code':0xc8,'message':_0x36004d});}else return logger['info']('No\x20applications\x20to\x20execute'),_0x2d6daa({'code':0xc8,'message':_0x36004d});}catch(_0x25c638){return logger[_0x56ff21('0x35')](_0x25c638[_0x56ff21('0x1d')]),_0x17c210(_0x2cac4d[_0x56ff21('0x35')](0x1f4,_0x25c638));}return _0x17c210(_0x56ff21('0xe'));});},'AcceptMessage':function(_0x14c7f8){const _0x2a1c19=this;return new Promise(function(_0x118db6,_0x4cb4d4){const _0x2f9ddd=a1217_0x4532;if(_0x14c7f8['message']&&_0x14c7f8['message']['id'])try{const _0x10cb22=getId(_0x14c7f8[_0x2f9ddd('0x3')],_0x14c7f8[_0x2f9ddd('0x4a')]?_0x14c7f8[_0x2f9ddd('0x4a')]['id']:0x0,_0x14c7f8['interaction']?_0x14c7f8[_0x2f9ddd('0x23')]['id']:0x0);return _0x1468e3[_0x2f9ddd('0x32')][_0x10cb22]&&(_0x1468e3[_0x2f9ddd('0x32')][_0x10cb22][_0x2f9ddd('0x2c')](_0x2f9ddd('0x21')),rpc[_0x14c7f8['channel']+_0x2f9ddd('0x3e')]&&rpc[_0x14c7f8['channel']+_0x2f9ddd('0x3e')][_0x2f9ddd('0x39')](_0x10cb22,{'UserId':_0x14c7f8[_0x2f9ddd('0x4a')][_0x2f9ddd('0x3a')]})['catch'](function(){const _0x4a48c9=_0x2f9ddd;logger['error'](_0x4a48c9('0x27'));})),_0x118db6({'code':0xc8,'message':_0x14c7f8});}catch(_0x1a7724){return logger[_0x2f9ddd('0x35')](_0x1a7724[_0x2f9ddd('0x1d')]),_0x4cb4d4(_0x2a1c19[_0x2f9ddd('0x35')](0x1f4,_0x1a7724));}return logger['error'](_0x2f9ddd('0x8')),_0x4cb4d4(_0x2a1c19[_0x2f9ddd('0x35')](0x1f4,_0x2f9ddd('0x8')));});},'RejectMessage':function(_0x49996f){const _0xffb05f=this;return new Promise(function(_0x16723f,_0x3540b2){const _0x3cb7e4=a1217_0x4532;if(_0x49996f['agent']&&_0x49996f['agent']['id'])try{return _0x1468e3[_0x3cb7e4('0x29')][_0x49996f[_0x3cb7e4('0x40')]['id']]&&(_0x1468e3[_0x3cb7e4('0x29')][_0x49996f[_0x3cb7e4('0x40')]['id']][_0x3cb7e4('0x49')]=![],_0x1468e3['agents'][_0x49996f[_0x3cb7e4('0x40')]['id']]['busyQueue']=undefined),_0x16723f({'code':0xc8,'message':_0x49996f});}catch(_0x178dc4){return logger[_0x3cb7e4('0x35')](_0x178dc4[_0x3cb7e4('0x1d')]),_0x3540b2(_0xffb05f['error'](0x1f4,_0x178dc4));}return logger[_0x3cb7e4('0x35')]('message\x20is\x20empty'),_0x3540b2(_0xffb05f[_0x3cb7e4('0x35')](0x1f4,'message\x20is\x20empty'));});},'AbandonInteraction':function(_0x9b4679){const _0x1ed148=this;return new Promise(function(_0xb31b1d,_0x2fb928){const _0x13db7a=a1217_0x4532;if(_0x9b4679[_0x13db7a('0x3')]&&_0x9b4679[_0x13db7a('0x23')]&&_0x9b4679[_0x13db7a('0x23')]['id'])try{const _0x35c45b=getId(_0x9b4679[_0x13db7a('0x3')],_0x9b4679[_0x13db7a('0x4a')]?_0x9b4679[_0x13db7a('0x4a')]['id']:0x0,_0x9b4679['interaction']?_0x9b4679['interaction']['id']:0x0);return _0x1468e3[_0x13db7a('0x32')][_0x35c45b]&&_0x1468e3['rules'][_0x35c45b][_0x13db7a('0x2c')](_0x13db7a('0x21')),_0xb31b1d({'code':0xc8,'message':_0x9b4679});}catch(_0x598769){return logger[_0x13db7a('0x35')](_0x598769[_0x13db7a('0x1d')]),_0x2fb928(_0x1ed148['error'](0x1f4,_0x598769));}return logger[_0x13db7a('0x35')](_0x13db7a('0x8')),_0x2fb928(_0x1ed148[_0x13db7a('0x35')](0x1f4,_0x13db7a('0x8')));});},'AgentCapacity':function(_0x2a442a){const _0x2caf92=this;return new Promise(function(_0x5d1553,_0x4cd6de){const _0x10a639=a1217_0x4532;if(typeof _0x1468e3[_0x10a639('0x29')][_0x2a442a['id']]!==_0x10a639('0x26')){for(const _0xcacb54 in _0x2a442a[_0x10a639('0xd')]){typeof _0x2a442a[_0x10a639('0xd')][_0xcacb54]!==_0x10a639('0x26')&&(typeof _0x1468e3[_0x10a639('0x29')][_0x2a442a['id']][_0xcacb54+'CurrentCapacity']!==_0x10a639('0x26')&&(_0x1468e3[_0x10a639('0x29')][_0x2a442a['id']][_0xcacb54+'CurrentCapacity']=parseInt(_0x2a442a['capacity'][_0xcacb54],0xa)));}return _0x1468e3[_0x10a639('0x29')][_0x2a442a['id']][_0x10a639('0x19')](),_0x5d1553({'code':0xc8,'message':_0x1468e3[_0x10a639('0x29')][_0x2a442a['id']]});}else return _0x4cd6de(_0x2caf92['error'](0x1f4,'agent\x20not\x20found'));});},'Agents':function(){return new Promise(function(_0x38558d){const _0x3e510d=a1217_0x4532,_0x765cee=_[_0x3e510d('0x42')](_0x1468e3[_0x3e510d('0x29')]);_0x38558d({'count':_0x765cee[_0x3e510d('0xb')],'rows':_0x765cee});});},'ChatQueues':function(){return new Promise(function(_0x182ed5){const _0x1732e0=a1217_0x4532,_0xf165f3=[];for(const _0x5c962d in _0x1468e3['chatQueues']){if(typeof _0x1468e3['chatQueues'][_0x5c962d]!==_0x1732e0('0x26')){const _0x483aaf=_0x1468e3[_0x1732e0('0x2e')][_0x5c962d],_0x39bca4={'id':_0x483aaf['id'],'available':_0x483aaf[_0x1732e0('0x3f')],'loggedIn':_0x483aaf[_0x1732e0('0x31')],'name':_0x483aaf[_0x1732e0('0x48')],'paused':_0x483aaf[_0x1732e0('0x1f')],'waiting':_0x483aaf[_0x1732e0('0x45')]};_0xf165f3[_0x1732e0('0x33')](_0x39bca4);}}_0x182ed5({'count':_0xf165f3[_0x1732e0('0xb')],'rows':_0xf165f3});});},'MailQueues':function(){return new Promise(function(_0x36eb41){const _0x32f854=a1217_0x4532,_0x1533e1=[];for(const _0x27b772 in _0x1468e3[_0x32f854('0x47')]){if(typeof _0x1468e3[_0x32f854('0x47')][_0x27b772]!==_0x32f854('0x26')){const _0x1c3bff=_0x1468e3[_0x32f854('0x47')][_0x27b772],_0x3d3ac6={'id':_0x1c3bff['id'],'available':_0x1c3bff[_0x32f854('0x3f')],'loggedIn':_0x1c3bff[_0x32f854('0x31')],'name':_0x1c3bff[_0x32f854('0x48')],'paused':_0x1c3bff['paused'],'waiting':_0x1c3bff[_0x32f854('0x45')]};_0x1533e1[_0x32f854('0x33')](_0x3d3ac6);}}_0x36eb41({'count':_0x1533e1[_0x32f854('0xb')],'rows':_0x1533e1});});},'OpenchannelQueues':function(){return new Promise(function(_0x436451){const _0x53283f=a1217_0x4532,_0x41e604=[];for(const _0x31094f in _0x1468e3[_0x53283f('0x30')]){if(typeof _0x1468e3[_0x53283f('0x30')][_0x31094f]!=='undefined'){const _0x1e710d=_0x1468e3['openchannelQueues'][_0x31094f],_0x2a0b74={'id':_0x1e710d['id'],'available':_0x1e710d[_0x53283f('0x3f')],'loggedIn':_0x1e710d['loggedIn'],'name':_0x1e710d[_0x53283f('0x48')],'paused':_0x1e710d[_0x53283f('0x1f')],'waiting':_0x1e710d['waiting']};_0x41e604[_0x53283f('0x33')](_0x2a0b74);}}_0x436451({'count':_0x41e604[_0x53283f('0xb')],'rows':_0x41e604});});},'SmsQueues':function(){return new Promise(function(_0x4e44e4){const _0xcabe9a=a1217_0x4532,_0x5ac14f=[];for(const _0x46b5f7 in _0x1468e3['smsQueues']){if(typeof _0x1468e3[_0xcabe9a('0x22')][_0x46b5f7]!==_0xcabe9a('0x26')){const _0x380403=_0x1468e3[_0xcabe9a('0x22')][_0x46b5f7],_0x418248={'id':_0x380403['id'],'available':_0x380403[_0xcabe9a('0x3f')],'loggedIn':_0x380403[_0xcabe9a('0x31')],'name':_0x380403[_0xcabe9a('0x48')],'paused':_0x380403['paused'],'waiting':_0x380403['waiting']};_0x5ac14f[_0xcabe9a('0x33')](_0x418248);}}_0x4e44e4({'count':_0x5ac14f[_0xcabe9a('0xb')],'rows':_0x5ac14f});});},'FaxQueues':function(){return new Promise(function(_0x47244b){const _0x2b58eb=a1217_0x4532,_0x14ee41=[];for(const _0x2ba952 in _0x1468e3[_0x2b58eb('0x18')]){if(typeof _0x1468e3[_0x2b58eb('0x18')][_0x2ba952]!=='undefined'){const _0x1cf2ca=_0x1468e3[_0x2b58eb('0x18')][_0x2ba952],_0x5e4f6e={'id':_0x1cf2ca['id'],'available':_0x1cf2ca[_0x2b58eb('0x3f')],'loggedIn':_0x1cf2ca[_0x2b58eb('0x31')],'name':_0x1cf2ca[_0x2b58eb('0x48')],'paused':_0x1cf2ca[_0x2b58eb('0x1f')],'waiting':_0x1cf2ca[_0x2b58eb('0x45')]};_0x14ee41[_0x2b58eb('0x33')](_0x5e4f6e);}}_0x47244b({'count':_0x14ee41['length'],'rows':_0x14ee41});});},'WhatsappQueues':function(){return new Promise(function(_0x25c8b7){const _0x5f4f25=a1217_0x4532,_0x18f7a3=[];for(const _0x1c227b in _0x1468e3['whatsappQueues']){if(typeof _0x1468e3['whatsappQueues'][_0x1c227b]!==_0x5f4f25('0x26')){const _0x1d9950=_0x1468e3[_0x5f4f25('0x1e')][_0x1c227b],_0xdc89ca={'id':_0x1d9950['id'],'available':_0x1d9950['available'],'loggedIn':_0x1d9950[_0x5f4f25('0x31')],'name':_0x1d9950[_0x5f4f25('0x48')],'paused':_0x1d9950[_0x5f4f25('0x1f')],'waiting':_0x1d9950['waiting']};_0x18f7a3['push'](_0xdc89ca);}}_0x25c8b7({'count':_0x18f7a3['length'],'rows':_0x18f7a3});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x3d9ab4){const _0x434e6a=a1217_0x4532,_0x5db65d=_[_0x434e6a('0x42')](_0x1468e3['chatQueuesWaitingInteractions']);_0x3d9ab4({'count':_0x5db65d[_0x434e6a('0xb')],'rows':_0x5db65d});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x461cad){const _0x3e56c5=a1217_0x4532,_0x4bc3de=_[_0x3e56c5('0x42')](_0x1468e3[_0x3e56c5('0x2d')]);_0x461cad({'count':_0x4bc3de[_0x3e56c5('0xb')],'rows':_0x4bc3de});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x35eced){const _0x107e6b=a1217_0x4532,_0x3a66c2=_[_0x107e6b('0x42')](_0x1468e3[_0x107e6b('0x44')]);_0x35eced({'count':_0x3a66c2[_0x107e6b('0xb')],'rows':_0x3a66c2});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x4cf9ad){const _0x23c5f8=a1217_0x4532,_0x5eeaf7=_[_0x23c5f8('0x42')](_0x1468e3['smsQueuesWaitingInteractions']);_0x4cf9ad({'count':_0x5eeaf7[_0x23c5f8('0xb')],'rows':_0x5eeaf7});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x56f821){const _0x57d885=a1217_0x4532,_0x340d3b=_['values'](_0x1468e3[_0x57d885('0x11')]);_0x56f821({'count':_0x340d3b[_0x57d885('0xb')],'rows':_0x340d3b});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x34ad88){const _0xc8f7aa=a1217_0x4532,_0x24466d=_[_0xc8f7aa('0x42')](_0x1468e3['whatsappQueuesWaitingInteractions']);_0x34ad88({'count':_0x24466d[_0xc8f7aa('0xb')],'rows':_0x24466d});});}},_0xe915cf=jayson[_0x37a235('0x46')](_0x2ac14e)[_0x37a235('0x13')]();_0xe915cf['on'](_0x37a235('0x35'),function(_0x3dad09){const _0x43fdfe=_0x37a235;return logger['error'](JSON[_0x43fdfe('0x25')](_0x3dad09)),_0x28b209(_0x3dad09);}),_0xe915cf['listen'](0x232c,_0x37a235('0x9'),function(){const _0x17c718=_0x37a235;return console[_0x17c718('0xf')]('Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232c),_0x2c4335(_0x17c718('0x5')+0x232c);});});}; \ No newline at end of file +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 diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index 9ec7ffe..ea2a0e9 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1218_0x2648=['push','join','then','catch','condition','request','iftime\x20%s','all','info','routing','[%s][INTERVAL]\x20ROUTING\x20STOPPED','rules','log','message','client','http','util','stop','stack','result','length','jayson/promise','[%s][INTERVAL]\x20%s\x20%s','error','when','true','Command','[%s][INTERVAL]\x20%s'];(function(_0x5d0057,_0x264853){const _0x443d5c=function(_0x3343ef){while(--_0x3343ef){_0x5d0057['push'](_0x5d0057['shift']());}};_0x443d5c(++_0x264853);}(a1218_0x2648,0xf8));const a1218_0x443d=function(_0x5d0057,_0x264853){_0x5d0057=_0x5d0057-0x0;let _0x443d5c=a1218_0x2648[_0x5d0057];return _0x443d5c;};const _0x5af89e=a1218_0x443d;'use strict';const util=require(_0x5af89e('0x14')),jayson=require(_0x5af89e('0x19')),_=require('lodash'),logger=require('../../../config/logger')(_0x5af89e('0xd')),client=jayson[_0x5af89e('0x12')][_0x5af89e('0x13')]({'port':0x232a});function request(_0x3343ef,_0x1d712d){return new Promise(function(_0x34e32a,_0x22dc5b){const _0x430f92=a1218_0x443d;return client[_0x430f92('0x9')](_0x3343ef,_0x1d712d)[_0x430f92('0x6')](function(_0x4ae3d0){const _0x2a8209=_0x430f92;return _0x4ae3d0[_0x2a8209('0x1b')]?_0x22dc5b(_0x4ae3d0['error'][_0x2a8209('0x11')]):_0x34e32a(_0x4ae3d0[_0x2a8209('0x17')]);})[_0x430f92('0x7')](function(_0x237f1a){return _0x22dc5b(_0x237f1a);});});}exports[_0x5af89e('0x8')]=function(_0x389260,_0x1ffdcf,_0x95534c){return function(_0x1864a8){const _0x2d2e79=a1218_0x443d;if(_0x95534c['rules']&&!_0x95534c[_0x2d2e79('0xf')][_0x389260])return logger[_0x2d2e79('0xc')](_0x2d2e79('0xe'),_0x389260),_0x1864a8[_0x2d2e79('0x15')]();const _0x4b8ec3=[];for(let _0x33d76e=0x0;_0x33d76e<_0x1ffdcf[_0x2d2e79('0x18')];_0x33d76e+=0x1){_0x4b8ec3[_0x2d2e79('0x4')](request(_0x2d2e79('0x2'),{'command':util['format'](_0x2d2e79('0xa'),_0x1ffdcf[_0x33d76e])})[_0x2d2e79('0x6')](function(_0x30ae60){const _0x3d199a=_0x2d2e79;return _0x30ae60&&_0x30ae60[_0x3d199a('0x11')]&&_0x30ae60['message']['indexOf'](_0x3d199a('0x1'))>=0x0?!![]:![];})[_0x2d2e79('0x7')](function(){const _0x581607=_0x2d2e79;logger[_0x581607('0x1b')](_0x581607('0x3'),_0x389260,_0x1ffdcf[_0x33d76e]);}));}Promise[_0x2d2e79('0xb')](_0x4b8ec3)[_0x2d2e79('0x6')](function(_0x40ca1f){const _0x4c3e17=_0x2d2e79,_0xa7eb03=_['some'](_0x40ca1f);logger[_0x4c3e17('0xc')](_0x4c3e17('0x1a'),_0x389260,_0x1ffdcf[_0x4c3e17('0x5')]('\x20|\x20'),_0xa7eb03),_0x1864a8[_0x4c3e17('0x0')](_0xa7eb03);})[_0x2d2e79('0x7')](function(_0x4c6b1b){const _0x709175=_0x2d2e79;console[_0x709175('0x10')](_0x4c6b1b),logger['error'](_0x709175('0x1a'),_0x389260,_0x1ffdcf[_0x709175('0x5')]('\x20|\x20'),_0x4c6b1b[_0x709175('0x16')]),_0x1864a8[_0x709175('0x15')]();});};}; \ No newline at end of file +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 diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index f75cc59..b9628e6 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1219_0x5bef=['format','answeredelsewheredestinationuniqueid','acwTimeout','agentringnoanswerAt','clone','agentconnect','info','called','secondtransfererexten','rejected','type','transfereeuniqueid','isNil','abandoned','push','interface','agentconnectAt','holdtime','secondtransfereruniqueid','reason','timeout','origtransfererlinkedid','CreateVoiceAgentReport','queuecallerabandon','agentcompleteAt','transferexten','blindtransfer','connectedlinenum','ringtime','answeredelsewheremembername','origtransfereruniqueid','getVoiceQueueByName','talktime','transferuniqueid','includes','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','lodash','acwtime','transfertype','transfereruniqueid','ATTENDED','agentcomplete','membername','error','connectedlinename','forIn','agentacw','calleridname','blind','connect','queue','indexOf','request','./utils','agentcalledAt','diffTime','now','transfertargetuniqueid','then','transfer','acw','calleridnum','lastevent','agententerreason','agentringnoanswer','origtransfererexten','attendedtransfer','util','destuniqueid','uniqueid','splice','hangup','complete','stack','agent','answered_elsewhere'];(function(_0xce7290,_0x5bef92){const _0x3da3d7=function(_0x41587a){while(--_0x41587a){_0xce7290['push'](_0xce7290['shift']());}};_0x3da3d7(++_0x5bef92);}(a1219_0x5bef,0x116));const a1219_0x3da3=function(_0xce7290,_0x5bef92){_0xce7290=_0xce7290-0x0;let _0x3da3d7=a1219_0x5bef[_0xce7290];return _0x3da3d7;};const _0x43ad8a=a1219_0x3da3;'use strict';const _=require(_0x43ad8a('0x3e')),util=require(_0x43ad8a('0x11')),utils=require(_0x43ad8a('0x3')),agents={},transfers={},unanswered=[];function writeDB(_0x41587a,_0x506d49){const _0x4abbe5=_0x43ad8a;utils[_0x4abbe5('0x20')](util[_0x4abbe5('0x1a')](_0x4abbe5('0x3d'),_0x41587a[_0x4abbe5('0x13')],_0x41587a['channel'],_0x41587a[_0x4abbe5('0x0')],_0x41587a[_0x4abbe5('0x44')],_0x41587a[_0x4abbe5('0x29')],_0x41587a[_0x4abbe5('0xb')],_0x41587a[_0x4abbe5('0x35')],_0x41587a[_0x4abbe5('0xc')])),_0x41587a[_0x4abbe5('0x0')]?utils[_0x4abbe5('0x39')](_0x41587a[_0x4abbe5('0x0')])[_0x4abbe5('0x8')](function(_0x2b2799){const _0x4ba333=_0x4abbe5;_0x2b2799&&(_0x41587a[_0x4ba333('0x24')]=_0x2b2799[_0x4ba333('0x24')],_0x41587a['agentacw']=_0x41587a['agentcomplete']?_0x2b2799[_0x4ba333('0xa')]:![],_0x41587a[_0x4ba333('0x3f')]=_0x41587a[_0x4ba333('0x48')]?_0x2b2799[_0x4ba333('0x1c')]:0x0),utils[_0x4ba333('0x2')](_0x4ba333('0x30'),_0x41587a);}):utils[_0x4abbe5('0x2')](_0x4abbe5('0x30'),_0x41587a),_0x506d49?delete transfers[_0x41587a[_0x4abbe5('0x13')]]:delete agents[_0x41587a[_0x4abbe5('0x12')]];}exports['agentcalled']=function(_0x3c8e74){const _0x29ec4d=_0x43ad8a;try{agents[_0x3c8e74[_0x29ec4d('0x12')]]=_0x3c8e74,agents[_0x3c8e74[_0x29ec4d('0x12')]][_0x29ec4d('0x4')]=utils[_0x29ec4d('0x6')](),agents[_0x3c8e74[_0x29ec4d('0x12')]]['lastevent']=_0x29ec4d('0x21'),agents[_0x3c8e74['destuniqueid']][_0x29ec4d('0x35')]=null,agents[_0x3c8e74['destuniqueid']][_0x29ec4d('0x46')]=null;}catch(_0x146d6d){utils[_0x29ec4d('0x45')](_0x146d6d[_0x29ec4d('0x17')]);}},exports[_0x43ad8a('0xe')]=function(_0x2ece35){const _0x1e2f0e=_0x43ad8a;try{!_[_0x1e2f0e('0x26')](agents[_0x2ece35[_0x1e2f0e('0x12')]])&&(agents[_0x2ece35[_0x1e2f0e('0x12')]][_0x1e2f0e('0xe')]=!![],agents[_0x2ece35[_0x1e2f0e('0x12')]]['agentringnoanswerAt']=utils['now'](),agents[_0x2ece35['destuniqueid']][_0x1e2f0e('0xc')]=_0x1e2f0e('0x2e'),agents[_0x2ece35[_0x1e2f0e('0x12')]][_0x1e2f0e('0x2d')]='timeout',agents[_0x2ece35['destuniqueid']][_0x1e2f0e('0x2b')]=_0x2ece35[_0x1e2f0e('0x36')]?parseInt(_0x2ece35[_0x1e2f0e('0x36')])/0x3e8:0x0,agents[_0x2ece35[_0x1e2f0e('0x12')]][_0x1e2f0e('0x3a')]=0x0,unanswered[_0x1e2f0e('0x28')](_0x2ece35['destuniqueid']));}catch(_0x41b42f){utils[_0x1e2f0e('0x45')](_0x41b42f['stack']);}},exports[_0x43ad8a('0x31')]=function(_0x4032c4){const _0x10abf7=_0x43ad8a;try{_[_0x10abf7('0x47')](agents,function(_0x33b1c6){const _0x429b30=_0x10abf7;_0x33b1c6[_0x429b30('0x13')]==_0x4032c4[_0x429b30('0x13')]&&!_[_0x429b30('0x3c')](unanswered,_0x33b1c6['destuniqueid'])&&(_0x33b1c6['agentringnoanswer']=!![],_0x33b1c6[_0x429b30('0x1d')]=utils[_0x429b30('0x6')](),_0x33b1c6[_0x429b30('0xc')]=_0x429b30('0x27'),_0x33b1c6[_0x429b30('0x2d')]=_0x429b30('0x27'),_0x33b1c6['holdtime']=_0x4032c4[_0x429b30('0x2b')],_0x33b1c6[_0x429b30('0x3a')]=0x0,writeDB(_0x33b1c6));});}catch(_0x2d9ea5){utils[_0x10abf7('0x45')](_0x2d9ea5[_0x10abf7('0x17')]);}},exports[_0x43ad8a('0x1f')]=function(_0x21ee9f){const _0x2cb293=_0x43ad8a;try{agents[_0x21ee9f['destuniqueid']]&&(agents[_0x21ee9f[_0x2cb293('0x12')]]['agentconnectAt']=utils[_0x2cb293('0x6')](),agents[_0x21ee9f[_0x2cb293('0x12')]][_0x2cb293('0x35')]=_0x21ee9f[_0x2cb293('0x35')],agents[_0x21ee9f[_0x2cb293('0x12')]]['connectedlinename']=_0x21ee9f[_0x2cb293('0x46')],agents[_0x21ee9f[_0x2cb293('0x12')]]['holdtime']=_0x21ee9f['ringtime'],agents[_0x21ee9f[_0x2cb293('0x12')]]['lastevent']=_0x2cb293('0x4b'),_[_0x2cb293('0x47')](agents,function(_0x1d8815){const _0xa6af4e=_0x2cb293;_0x1d8815[_0xa6af4e('0x12')]!=_0x21ee9f[_0xa6af4e('0x12')]&&_0x1d8815[_0xa6af4e('0x13')]==_0x21ee9f[_0xa6af4e('0x13')]&&(_0x1d8815[_0xa6af4e('0x3a')]=0x0,_0x1d8815[_0xa6af4e('0x2b')]=_0x21ee9f['ringtime'],_0x1d8815[_0xa6af4e('0xe')]=!![],_0x1d8815[_0xa6af4e('0x1d')]=utils['now'](),_0x1d8815[_0xa6af4e('0xc')]=_0xa6af4e('0x19'),_0x1d8815[_0xa6af4e('0x2d')]='answered_elsewhere',_0x1d8815[_0xa6af4e('0x1b')]=_0x21ee9f[_0xa6af4e('0x12')],_0x1d8815[_0xa6af4e('0x37')]=_0x21ee9f[_0xa6af4e('0x44')],writeDB(_0x1d8815));}));}catch(_0x544238){utils[_0x2cb293('0x45')](_0x544238[_0x2cb293('0x17')]);}},exports[_0x43ad8a('0x43')]=function(_0x57badc){const _0x27355f=_0x43ad8a;try{!_[_0x27355f('0x26')](agents[_0x57badc[_0x27355f('0x12')]])&&(agents[_0x57badc[_0x27355f('0x12')]]['agentcomplete']=!![],agents[_0x57badc[_0x27355f('0x12')]][_0x27355f('0x32')]=utils[_0x27355f('0x6')](),agents[_0x57badc['destuniqueid']][_0x27355f('0x3a')]=utils[_0x27355f('0x5')](agents[_0x57badc[_0x27355f('0x12')]][_0x27355f('0x32')],agents[_0x57badc[_0x27355f('0x12')]][_0x27355f('0x2a')]),agents[_0x57badc[_0x27355f('0x12')]][_0x27355f('0x2d')]=_0x57badc[_0x27355f('0x2d')],agents[_0x57badc[_0x27355f('0x12')]][_0x27355f('0xc')]=_0x27355f('0x16'),writeDB(agents[_0x57badc[_0x27355f('0x12')]]));}catch(_0xb46e38){utils[_0x27355f('0x45')](_0xb46e38[_0x27355f('0x17')]);}},exports[_0x43ad8a('0x34')]=function(_0x25c014){const _0x101601=_0x43ad8a;try{!_['isNil'](agents[_0x25c014[_0x101601('0x41')]])&&(agents[_0x25c014['transfereruniqueid']]['transfer']=!![],agents[_0x25c014[_0x101601('0x41')]][_0x101601('0x40')]=_0x101601('0x4a'),agents[_0x25c014['transfereruniqueid']][_0x101601('0x33')]=_0x25c014['extension'],agents[_0x25c014[_0x101601('0x41')]][_0x101601('0x3b')]=agents[_0x25c014[_0x101601('0x41')]][_0x101601('0x13')]);}catch(_0x417ca3){utils[_0x101601('0x45')](_0x417ca3[_0x101601('0x17')]);}},exports[_0x43ad8a('0x10')]=function(_0x4abf56){const _0x32167b=_0x43ad8a;try{if(_0x4abf56['origtransfereruniqueid']==_0x4abf56[_0x32167b('0x2f')])!_[_0x32167b('0x26')](agents[_0x4abf56[_0x32167b('0x2c')]])&&(agents[_0x4abf56['secondtransfereruniqueid']][_0x32167b('0x9')]=!![],agents[_0x4abf56[_0x32167b('0x2c')]][_0x32167b('0x40')]=_0x32167b('0x42'),agents[_0x4abf56[_0x32167b('0x2c')]][_0x32167b('0x33')]=_0x4abf56[_0x32167b('0xf')],agents[_0x4abf56[_0x32167b('0x2c')]][_0x32167b('0x3b')]=_0x4abf56['origtransfereruniqueid']),_0x4abf56[_0x32167b('0x25')]&&agents[_0x4abf56[_0x32167b('0x25')]]&&(agents[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0xd')]=0x1,transfers[_0x4abf56[_0x32167b('0x25')]]=_[_0x32167b('0x1e')](agents[_0x4abf56[_0x32167b('0x25')]]),transfers[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0xb')]=agents[_0x4abf56['secondtransfereruniqueid']][_0x32167b('0xb')],transfers[_0x4abf56[_0x32167b('0x25')]]['calleridname']=agents[_0x4abf56[_0x32167b('0x2c')]][_0x32167b('0x49')],transfers[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0x4')]=utils[_0x32167b('0x6')](),transfers[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0x2a')]=utils[_0x32167b('0x6')](),transfers[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0x2b')]=0x0,transfers[_0x4abf56[_0x32167b('0x25')]][_0x32167b('0xd')]=0x2);else _0x4abf56['secondtransfereruniqueid']==_0x4abf56['secondtransfererlinkedid']&&(!_['isNil'](agents[_0x4abf56[_0x32167b('0x38')]])&&(agents[_0x4abf56[_0x32167b('0x38')]][_0x32167b('0x9')]=!![],agents[_0x4abf56['origtransfereruniqueid']][_0x32167b('0x40')]=_0x32167b('0x42'),agents[_0x4abf56['origtransfereruniqueid']][_0x32167b('0x33')]=_0x4abf56[_0x32167b('0x22')],agents[_0x4abf56['origtransfereruniqueid']][_0x32167b('0x3b')]=_0x4abf56[_0x32167b('0x2c')]),_0x4abf56[_0x32167b('0x7')]&&agents[_0x4abf56['transfertargetuniqueid']]&&(agents[_0x4abf56['transfertargetuniqueid']][_0x32167b('0xd')]=0x1,transfers[_0x4abf56['transfertargetuniqueid']]=_['clone'](agents[_0x4abf56['transfertargetuniqueid']]),transfers[_0x4abf56[_0x32167b('0x7')]]['calleridnum']=agents[_0x4abf56[_0x32167b('0x38')]][_0x32167b('0xb')],transfers[_0x4abf56[_0x32167b('0x7')]][_0x32167b('0x49')]=agents[_0x4abf56[_0x32167b('0x38')]]['calleridname'],transfers[_0x4abf56[_0x32167b('0x7')]]['agentcalledAt']=utils[_0x32167b('0x6')](),transfers[_0x4abf56[_0x32167b('0x7')]][_0x32167b('0x2a')]=utils[_0x32167b('0x6')](),transfers[_0x4abf56['transfertargetuniqueid']][_0x32167b('0x2b')]=0x0,transfers[_0x4abf56[_0x32167b('0x7')]][_0x32167b('0xd')]=0x2));}catch(_0x510bc5){utils['error'](_0x510bc5[_0x32167b('0x17')]);}},exports[_0x43ad8a('0x15')]=function(_0x404ba3){const _0x19b9a8=_0x43ad8a;try{if(agents[_0x404ba3[_0x19b9a8('0x13')]]&&agents[_0x404ba3['uniqueid']][_0x19b9a8('0x2d')]===_0x19b9a8('0x2e')){_0x404ba3['cause']==='21'&&(agents[_0x404ba3[_0x19b9a8('0x13')]]['reason']=_0x19b9a8('0x23'),agents[_0x404ba3['uniqueid']][_0x19b9a8('0xc')]=_0x19b9a8('0x23'));writeDB(agents[_0x404ba3[_0x19b9a8('0x13')]]);const _0x480463=unanswered[_0x19b9a8('0x1')](_0x404ba3[_0x19b9a8('0x13')]);if(_0x480463>-0x1)unanswered[_0x19b9a8('0x14')](_0x480463,0x1);}transfers[_0x404ba3[_0x19b9a8('0x13')]]&&(transfers[_0x404ba3['uniqueid']]['agentcomplete']=!![],transfers[_0x404ba3['uniqueid']][_0x19b9a8('0x32')]=utils[_0x19b9a8('0x6')](),transfers[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x3a')]=utils[_0x19b9a8('0x5')](transfers[_0x404ba3[_0x19b9a8('0x13')]]['agentcompleteAt'],transfers[_0x404ba3[_0x19b9a8('0x13')]]['agentconnectAt']),transfers[_0x404ba3[_0x19b9a8('0x13')]]['reason']=_0x19b9a8('0x18'),transfers[_0x404ba3['uniqueid']][_0x19b9a8('0xc')]=_0x19b9a8('0x16'),writeDB(transfers[_0x404ba3[_0x19b9a8('0x13')]],!![])),agents[_0x404ba3[_0x19b9a8('0x13')]]&&agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x2a')]&&(agents[_0x404ba3[_0x19b9a8('0x13')]]['agentcomplete']=!![],agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x32')]=utils['now'](),agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x3a')]=utils['diffTime'](agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x32')],agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0x2a')]),agents[_0x404ba3['uniqueid']][_0x19b9a8('0x2d')]=agents[_0x404ba3['uniqueid']][_0x19b9a8('0x9')]?_0x19b9a8('0x9'):_0x19b9a8('0x18'),agents[_0x404ba3[_0x19b9a8('0x13')]][_0x19b9a8('0xc')]=_0x19b9a8('0x16'),writeDB(agents[_0x404ba3[_0x19b9a8('0x13')]]));}catch(_0x520094){utils['error'](_0x520094[_0x19b9a8('0x17')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index 9c113dd..281dcb7 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1220_0x2545=['xmd-callerid-preview','format','CALL|%s|%s|%s|%s|%s|%s|%s|%s','sipcallid','endtime','FAILED','calleridnum','appdata','outboundrouteid','mohtime','lodash','channel','BUSY','routeid','xmd-contactid','diffTime','destinationchannel','CreateVoiceCallReport','variable','systemanswertime','ANSWERED','source','localtwolinkedid','secondtransfererchannel','answertime','disposition','getUserByInternal','now','xmd-originatecalleridnum','_attended','musiconholdstartAt','startsWith','lastIndexOf','xmcs-queue','value','starttime','noop','varset','linkedid','isNil','set','userfield','hangup','\x22\x20<','musiconholdstop','xmd-cdrtype','callerid','gotoif','application','request','calleridname','execif','transfer','transfereechannel','newstate','uniqueid','UserId','lastapplication','type','stack','OutgoingSpoolFailed','split','toNumber','DOCUMENTATION','NO\x20ANSWER','musiconholdstart','then','queue','xmd-queue','transfertargetchannel','duration','destination','accountcode','includes','error','context','substring','cdr','toLowerCase'];(function(_0x3b5886,_0x254578){const _0x5e995b=function(_0x38d1ac){while(--_0x38d1ac){_0x3b5886['push'](_0x3b5886['shift']());}};_0x5e995b(++_0x254578);}(a1220_0x2545,0x1dc));const a1220_0x5e99=function(_0x3b5886,_0x254578){_0x3b5886=_0x3b5886-0x0;let _0x5e995b=a1220_0x2545[_0x3b5886];return _0x5e995b;};const _0x132f17=a1220_0x5e99;'use strict';const _=require(_0x132f17('0x8')),util=require('util'),utils=require('./utils'),dispositions=[_0x132f17('0x3e'),_0x132f17('0x3'),_0x132f17('0x3'),_0x132f17('0x3e'),_0x132f17('0x3e'),_0x132f17('0x3e'),_0x132f17('0x12'),_0x132f17('0xa'),_0x132f17('0x3'),_0x132f17('0x3'),_0x132f17('0x3')],channels={};function writeDB(_0x38d1ac){const _0x41b0a6=_0x132f17;utils['info'](util[_0x41b0a6('0x4e')](_0x41b0a6('0x0'),_0x38d1ac[_0x41b0a6('0x35')],_0x38d1ac[_0x41b0a6('0x9')],_0x38d1ac[_0x41b0a6('0x38')],_0x38d1ac['accountcode'],_0x38d1ac['source'],_0x38d1ac[_0x41b0a6('0x45')],_0x38d1ac[_0x41b0a6('0x2c')],_0x38d1ac['disposition'])),_0x38d1ac[_0x41b0a6('0x46')]?utils[_0x41b0a6('0x18')](_0x38d1ac[_0x41b0a6('0x46')])[_0x41b0a6('0x40')](function(_0x3411b6){const _0x2fef8a=_0x41b0a6;_0x3411b6&&(_0x38d1ac[_0x2fef8a('0x36')]=_0x3411b6['id']),utils['request'](_0x2fef8a('0xf'),_0x38d1ac);}):utils[_0x41b0a6('0x2f')](_0x41b0a6('0xf'),_0x38d1ac),channels[_0x38d1ac[_0x41b0a6('0x35')]]&&delete channels[_0x38d1ac[_0x41b0a6('0x35')]];}exports['newchannel']=function(_0x9f4775){const _0x5d4c06=_0x132f17;try{_0x9f4775[_0x5d4c06('0x35')]==_0x9f4775[_0x5d4c06('0x24')]&&_0x9f4775['channel']!=_0x5d4c06('0x3a')&&(channels[_0x9f4775[_0x5d4c06('0x35')]]={'uniqueid':_0x9f4775[_0x5d4c06('0x35')],'accountcode':_0x9f4775['accountcode'],'source':_0x9f4775['calleridnum'],'destination':_0x9f4775['exten'],'destinationcontext':_0x9f4775[_0x5d4c06('0x49')],'channel':_0x9f4775[_0x5d4c06('0x9')],'starttime':utils[_0x5d4c06('0x19')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x5d4c06('0x3e'),'amaflags':_0x5d4c06('0x3d')});}catch(_0x54eb1b){utils[_0x5d4c06('0x48')](_0x54eb1b[_0x5d4c06('0x39')]);}},exports[_0x132f17('0x34')]=function(_0x153990){const _0x4984b8=_0x132f17;try{if(!_['isNil'](channels[_0x153990[_0x4984b8('0x35')]])&&_0x153990['channelstate']==0x6)_[_0x4984b8('0x25')](channels[_0x153990[_0x4984b8('0x35')]][_0x4984b8('0x11')])&&(channels[_0x153990[_0x4984b8('0x35')]][_0x4984b8('0x11')]=utils[_0x4984b8('0x19')]());else!_[_0x4984b8('0x25')](channels[_0x153990['linkedid']])&&_0x153990['channelstate']==0x6&&_0x153990[_0x4984b8('0x49')]!=_0x4984b8('0x32')&&(channels[_0x153990['linkedid']][_0x4984b8('0x46')]=_0x153990['accountcode'],channels[_0x153990[_0x4984b8('0x24')]][_0x4984b8('0xe')]=_0x153990['channel'],_[_0x4984b8('0x25')](channels[_0x153990[_0x4984b8('0x24')]][_0x4984b8('0x16')])&&(channels[_0x153990[_0x4984b8('0x24')]][_0x4984b8('0x16')]=utils[_0x4984b8('0x19')]()),channels[_0x153990['linkedid']][_0x4984b8('0x17')]=dispositions[_[_0x4984b8('0x3c')](_0x153990['channelstate'])]||'ANSWERED');}catch(_0x4687d2){utils['error'](_0x4687d2[_0x4984b8('0x39')]);}},exports[_0x132f17('0x28')]=function(_0x3de787){const _0x5c448c=_0x132f17;try{!_[_0x5c448c('0x25')](channels[_0x3de787[_0x5c448c('0x35')]])&&(_[_0x5c448c('0x25')](channels[_0x3de787[_0x5c448c('0x35')]][_0x5c448c('0x2c')])&&(channels[_0x3de787[_0x5c448c('0x35')]]['callerid']=_0x3de787[_0x5c448c('0x30')]+'\x20<'+_0x3de787[_0x5c448c('0x4')]+'>'),channels[_0x3de787[_0x5c448c('0x35')]][_0x5c448c('0x2')]=utils[_0x5c448c('0x19')](),channels[_0x3de787['uniqueid']][_0x5c448c('0x44')]=utils[_0x5c448c('0xd')](channels[_0x3de787[_0x5c448c('0x35')]][_0x5c448c('0x2')],channels[_0x3de787[_0x5c448c('0x35')]][_0x5c448c('0x21')]),channels[_0x3de787[_0x5c448c('0x35')]]['billableseconds']=channels[_0x3de787[_0x5c448c('0x35')]]['answertime']?utils['diffTime'](channels[_0x3de787[_0x5c448c('0x35')]][_0x5c448c('0x2')],channels[_0x3de787['uniqueid']]['answertime']):0x0,writeDB(channels[_0x3de787[_0x5c448c('0x35')]]));}catch(_0x3b3b2a){utils[_0x5c448c('0x48')](_0x3b3b2a['stack']);}},exports['attendedtransfer']=function(_0x190d40){const _0x4e8be7=_0x132f17;try{if(!_[_0x4e8be7('0x25')](channels[_0x190d40[_0x4e8be7('0x14')]])){if(channels[_0x190d40[_0x4e8be7('0x14')]][_0x4e8be7('0x9')]==_0x190d40[_0x4e8be7('0x33')])channels[_0x190d40[_0x4e8be7('0x14')]][_0x4e8be7('0xe')]=_0x190d40[_0x4e8be7('0x15')],channels[_0x190d40[_0x4e8be7('0x14')]][_0x4e8be7('0x27')]='_attended';else(channels[_0x190d40[_0x4e8be7('0x14')]]['channel']=_0x190d40[_0x4e8be7('0x43')])&&(channels[_0x190d40['localtwolinkedid']][_0x4e8be7('0xe')]=_0x190d40['origtransfererchannel'],channels[_0x190d40[_0x4e8be7('0x14')]][_0x4e8be7('0x27')]=_0x4e8be7('0x1b'));}}catch(_0x490938){utils[_0x4e8be7('0x48')](_0x490938[_0x4e8be7('0x39')]);}},exports[_0x132f17('0x3f')]=function(_0x5aad91){const _0x58fc46=_0x132f17;try{!_[_0x58fc46('0x25')](channels[_0x5aad91['uniqueid']])&&(channels[_0x5aad91[_0x58fc46('0x35')]][_0x58fc46('0x1c')]=utils[_0x58fc46('0x19')]());}catch(_0x2a4e5a){utils['error'](_0x2a4e5a['stack']);}},exports[_0x132f17('0x2a')]=function(_0x4e1318){const _0x5ac588=_0x132f17;try{!_['isNil'](channels[_0x4e1318['uniqueid']])&&(!_[_0x5ac588('0x25')](channels[_0x4e1318[_0x5ac588('0x35')]][_0x5ac588('0x1c')])&&(channels[_0x4e1318[_0x5ac588('0x35')]][_0x5ac588('0x7')]+=utils[_0x5ac588('0xd')](utils[_0x5ac588('0x19')](),channels[_0x4e1318[_0x5ac588('0x35')]][_0x5ac588('0x1c')]),delete channels[_0x4e1318[_0x5ac588('0x35')]][_0x5ac588('0x1c')]));}catch(_0xd279db){utils[_0x5ac588('0x48')](_0xd279db[_0x5ac588('0x39')]);}},exports[_0x132f17('0x23')]=function(_0x144115){const _0x4d01a3=_0x132f17;try{!_['isNil'](channels[_0x144115[_0x4d01a3('0x35')]])&&(!_[_0x4d01a3('0x25')](_0x144115[_0x4d01a3('0x10')][_0x4d01a3('0x1a')])&&(channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x13')]=_0x144115[_0x4d01a3('0x20')]),!_[_0x4d01a3('0x25')](_0x144115['variable']['xmd-phone'])&&(channels[_0x144115['uniqueid']][_0x4d01a3('0x45')]=_0x144115[_0x4d01a3('0x20')],channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x2c')]='\x22'+_0x144115['value']+_0x4d01a3('0x29')+_0x144115['value']+'>'),(!_[_0x4d01a3('0x25')](_0x144115[_0x4d01a3('0x10')][_0x4d01a3('0x4d')])||!_['isNil'](_0x144115['variable']['xmd-callerid']))&&(channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x2c')]=_0x144115[_0x4d01a3('0x20')]),(!_['isNil'](_0x144115[_0x4d01a3('0x10')][_0x4d01a3('0x42')])||!_[_0x4d01a3('0x25')](_0x144115[_0x4d01a3('0x10')][_0x4d01a3('0x1f')]))&&(channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x37')]='Queue',channels[_0x144115['uniqueid']]['lastdata']=_0x144115['value'],channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x41')]=!![]),!_[_0x4d01a3('0x25')](_0x144115['variable'][_0x4d01a3('0xc')])&&(channels[_0x144115[_0x4d01a3('0x35')]]['ContactId']=_0x144115[_0x4d01a3('0x20')]),!_[_0x4d01a3('0x25')](_0x144115[_0x4d01a3('0x10')][_0x4d01a3('0x2b')])&&(channels[_0x144115['uniqueid']]['type']=_0x144115[_0x4d01a3('0x20')]),!_['isNil'](_0x144115['variable'][_0x4d01a3('0x6')])&&(channels[_0x144115['uniqueid']][_0x4d01a3('0xb')]=_0x144115[_0x4d01a3('0x20')]),!_['isNil'](_0x144115['variable'][_0x4d01a3('0x1')])&&(channels[_0x144115[_0x4d01a3('0x35')]][_0x4d01a3('0x1')]=_0x144115[_0x4d01a3('0x20')]));}catch(_0x13e834){utils[_0x4d01a3('0x48')](_0x13e834['stack']);}},exports['newexten']=function(_0x428e7a){const _0x56412c=_0x132f17;try{if(!_['isNil'](channels[_0x428e7a[_0x56412c('0x35')]])){if(_0x428e7a[_0x56412c('0x2e')]['toLowerCase']()==_0x56412c('0x26')&&_[_0x56412c('0x1d')](_0x428e7a[_0x56412c('0x5')][_0x56412c('0x4c')](),_0x56412c('0x4b'))){const _0x44f3c2=_0x428e7a[_0x56412c('0x5')][_0x56412c('0x3b')]('='),_0x3cd08c=_0x44f3c2[0x0][_0x56412c('0x4a')](_0x44f3c2[0x0][_0x56412c('0x1e')]('(')+0x1,_0x44f3c2[0x0][_0x56412c('0x1e')](')')),_0x16ce5c=_0x44f3c2[0x1];channels[_0x428e7a[_0x56412c('0x35')]][_0x3cd08c]=_0x16ce5c;}!_[_0x56412c('0x47')]([_0x56412c('0x28'),_0x56412c('0x22'),_0x56412c('0x31'),'set',_0x56412c('0x2d')],_0x428e7a['application'][_0x56412c('0x4c')]())&&(channels[_0x428e7a[_0x56412c('0x35')]]['lastapplication']=_0x428e7a[_0x56412c('0x2e')],channels[_0x428e7a[_0x56412c('0x35')]]['lastdata']=_0x428e7a[_0x56412c('0x5')]);}}catch(_0x4a1a72){utils[_0x56412c('0x48')](_0x4a1a72['stack']);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index 278a82b..5024140 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1221_0x4dce=['error','managerevent','shutdown','info','SHUTDOWN','close','fullybooted','./utils','FULLYBOOTED','CLOSE'];(function(_0x455567,_0x4dced0){const _0x228de4=function(_0x389334){while(--_0x389334){_0x455567['push'](_0x455567['shift']());}};_0x228de4(++_0x4dced0);}(a1221_0x4dce,0xfd));const a1221_0x228d=function(_0x455567,_0x4dced0){_0x455567=_0x455567-0x0;let _0x228de4=a1221_0x4dce[_0x455567];return _0x228de4;};const _0x4b58a9=a1221_0x228d;'use strict';const utils=require(_0x4b58a9('0x4'));exports['connect']=function(){const _0x5c6b4b=_0x4b58a9;utils[_0x5c6b4b('0x0')]('CONNECTED');},exports[_0x4b58a9('0x9')]=function(){const _0x4247b3=_0x4b58a9;utils[_0x4247b3('0x0')](_0x4247b3('0x1'));},exports[_0x4b58a9('0x3')]=function(){const _0x5739c7=_0x4b58a9;utils[_0x5739c7('0x0')](_0x5739c7('0x5'));},exports[_0x4b58a9('0x7')]=function(_0x389334){const _0xabee01=_0x4b58a9;utils[_0xabee01('0x7')](_0x389334);},exports[_0x4b58a9('0x2')]=function(){const _0x18212d=_0x4b58a9;utils[_0x18212d('0x0')](_0x18212d('0x6'));},exports[_0x4b58a9('0x8')]=function(){}; \ No newline at end of file +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 diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index b82cdda..3a2475f 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1222_0x331f=['now','connect','hangup','request','diffTime','./utils','split','answertime','dialend','endtime','startsWith','dialstatus','lastevent','holdtime','cdr(routeid)','uniqueid','appdata','calleridnum','assign','starttime','stack','info','dialstring','error','billableseconds','outboundrouteid','application','isNil','toLowerCase','lodash','DIAL|%s|%s|%s|%s|%s|%s','set','dialbegin','newexten','CreateVoiceDialReport','channel','ANSWER','variable'];(function(_0x48069e,_0x331ff7){const _0x186042=function(_0x5a401a){while(--_0x5a401a){_0x48069e['push'](_0x48069e['shift']());}};_0x186042(++_0x331ff7);}(a1222_0x331f,0xbd));const a1222_0x1860=function(_0x48069e,_0x331ff7){_0x48069e=_0x48069e-0x0;let _0x186042=a1222_0x331f[_0x48069e];return _0x186042;};const _0xcd03dc=a1222_0x1860;'use strict';const _=require(_0xcd03dc('0x1e')),util=require('util'),utils=require(_0xcd03dc('0x6')),dials={};function writeDB(_0x5a401a){const _0x412cc1=_0xcd03dc;utils[_0x412cc1('0x16')](util['format'](_0x412cc1('0x1f'),_0x5a401a[_0x412cc1('0x10')],_0x5a401a[_0x412cc1('0x24')],_0x5a401a[_0x412cc1('0x17')],_0x5a401a[_0x412cc1('0x12')],_0x5a401a['connectedlinenum'],_0x5a401a[_0x412cc1('0xc')])),utils[_0x412cc1('0x4')](_0x412cc1('0x23'),_0x5a401a),delete dials[_0x5a401a[_0x412cc1('0x10')]];}exports[_0xcd03dc('0x22')]=function(_0x1f87ad){const _0x20e93d=_0xcd03dc;try{if(_0x1f87ad[_0x20e93d('0x1b')][_0x20e93d('0x1d')]()==_0x20e93d('0x20')&&_[_0x20e93d('0xb')](_0x1f87ad[_0x20e93d('0x11')][_0x20e93d('0x1d')](),_0x20e93d('0xf'))){const _0x7cfdeb=_0x1f87ad[_0x20e93d('0x11')][_0x20e93d('0x7')]('=');dials[_0x1f87ad['uniqueid']]={'routeId':_0x7cfdeb[0x1]};}}catch(_0x41e627){utils[_0x20e93d('0x18')](_0x41e627['stack']);}},exports['varset']=function(_0x322369){const _0x4c9410=_0xcd03dc;try{!_[_0x4c9410('0x1c')](_0x322369[_0x4c9410('0x0')][_0x4c9410('0x1a')])&&(dials[_0x322369['uniqueid']]={'routeId':_0x322369['value']});}catch(_0x45457b){utils[_0x4c9410('0x18')](_0x45457b['stack']);}},exports[_0xcd03dc('0x21')]=function(_0x263f66){const _0x1d2b40=_0xcd03dc;try{!_[_0x1d2b40('0x1c')](dials[_0x263f66[_0x1d2b40('0x10')]])&&(dials[_0x263f66[_0x1d2b40('0x10')]]=_[_0x1d2b40('0x13')](dials[_0x263f66[_0x1d2b40('0x10')]],_0x263f66),dials[_0x263f66[_0x1d2b40('0x10')]][_0x1d2b40('0x14')]=utils['now'](),dials[_0x263f66[_0x1d2b40('0x10')]]['lastevent']='called');}catch(_0x1d85a7){utils[_0x1d2b40('0x18')](_0x1d85a7[_0x1d2b40('0x15')]);}},exports[_0xcd03dc('0x9')]=function(_0x4609da){const _0xe96adc=_0xcd03dc;try{!_[_0xe96adc('0x1c')](dials[_0x4609da['uniqueid']])&&(dials[_0x4609da[_0xe96adc('0x10')]]['dialstatus']=_0x4609da[_0xe96adc('0xc')],_0x4609da[_0xe96adc('0xc')]==_0xe96adc('0x25')&&(dials[_0x4609da['uniqueid']]=_[_0xe96adc('0x13')](dials[_0x4609da[_0xe96adc('0x10')]],_0x4609da),dials[_0x4609da[_0xe96adc('0x10')]]['answertime']=utils['now'](),dials[_0x4609da['uniqueid']][_0xe96adc('0xd')]=_0xe96adc('0x2')));}catch(_0x2c3ebb){utils[_0xe96adc('0x18')](_0x2c3ebb[_0xe96adc('0x15')]);}},exports[_0xcd03dc('0x3')]=function(_0x96a61e){const _0x107870=_0xcd03dc;try{!_[_0x107870('0x1c')](dials[_0x96a61e[_0x107870('0x10')]])&&(dials[_0x96a61e[_0x107870('0x10')]]=_[_0x107870('0x13')](dials[_0x96a61e[_0x107870('0x10')]],{'endtime':utils[_0x107870('0x1')](),'lastevent':'complete'}),dials[_0x96a61e[_0x107870('0x10')]]['duration']=utils[_0x107870('0x5')](dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0xa')],dials[_0x96a61e['uniqueid']][_0x107870('0x14')]),dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0xe')]=utils[_0x107870('0x5')](dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0x8')]||dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0xa')],dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0x14')]),dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0x19')]=dials[_0x96a61e[_0x107870('0x10')]]['answertime']?utils[_0x107870('0x5')](dials[_0x96a61e[_0x107870('0x10')]][_0x107870('0xa')],dials[_0x96a61e[_0x107870('0x10')]]['answertime']):0x0,writeDB(dials[_0x96a61e['uniqueid']]));}catch(_0xf47bec){utils['error'](_0xf47bec['stack']);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index 613bfdb..d61b3b0 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1223_0x4398=['managerevent','newstate','connect','./dials.controller','keepConnected','newchannel','fullybooted','./transfers.controller','error','hangup','shutdown','./agents.controller','xdr','./recordings.controller','queuecallerabandon','XDR\x20DISABLED','agentconnect','password','blindtransfer','port','musiconholdstop','./members.controller','cdr','../../globals','dialend','close','agentringnoanswer','devicestatechange','./calls.controller','attendedtransfer','asterisk','queuecallerleave','newexten','info','musiconholdstart','agentcalled','queuecallerjoin','./core.controller','varset','agentcomplete'];(function(_0x3e2638,_0x43985f){const _0x46a8a2=function(_0x24187d){while(--_0x24187d){_0x3e2638['push'](_0x3e2638['shift']());}};_0x46a8a2(++_0x43985f);}(a1223_0x4398,0xa2));const a1223_0x46a8=function(_0x3e2638,_0x43985f){_0x3e2638=_0x3e2638-0x0;let _0x46a8a2=a1223_0x4398[_0x3e2638];return _0x46a8a2;};const _0x471b4d=a1223_0x46a8;require(_0x471b4d('0x15'));const AsteriskManager=require('asterisk-manager'),config=require('../../config/environment'),utils=require('./utils'),ami=new AsteriskManager(config[_0x471b4d('0x1c')][_0x471b4d('0x11')],config[_0x471b4d('0x1c')]['ip'],config[_0x471b4d('0x1c')]['username'],config[_0x471b4d('0x1c')][_0x471b4d('0xf')],!![]);ami[_0x471b4d('0x2')]();if(config[_0x471b4d('0xa')]&&config[_0x471b4d('0xa')]['disabled'])utils[_0x471b4d('0x1f')](_0x471b4d('0xd'));else{const agents=require(_0x471b4d('0x9')),calls=require(_0x471b4d('0x1a')),queues=require('./queues.controller'),recordings=require(_0x471b4d('0xb')),members=require(_0x471b4d('0x13')),dials=require(_0x471b4d('0x1')),transfers=require(_0x471b4d('0x5')),core=require(_0x471b4d('0x23'));ami['on']('connect',core[_0x471b4d('0x0')]),ami['on'](_0x471b4d('0x8'),core[_0x471b4d('0x8')]),ami['on'](_0x471b4d('0x4'),core[_0x471b4d('0x4')]),ami['on'](_0x471b4d('0x6'),core[_0x471b4d('0x6')]),ami['on'](_0x471b4d('0x17'),core[_0x471b4d('0x17')]),ami['on']('managerevent',core[_0x471b4d('0x26')]),ami['on'](_0x471b4d('0x19'),function(_0x24187d){const _0x53d0e1=_0x471b4d;try{members[_0x53d0e1('0x19')](_0x24187d);}catch(_0x499575){utils[_0x53d0e1('0x6')](_0x499575);}}),ami['on'](_0x471b4d('0x21'),function(_0x12914f){const _0x3c836d=_0x471b4d;try{agents[_0x3c836d('0x21')](_0x12914f);}catch(_0x132798){utils['error'](_0x132798);}}),ami['on'](_0x471b4d('0x18'),function(_0x2b0cae){const _0x403977=_0x471b4d;try{agents[_0x403977('0x18')](_0x2b0cae);}catch(_0x291c18){utils[_0x403977('0x6')](_0x291c18);}}),ami['on'](_0x471b4d('0xe'),function(_0x3e7f17){const _0x4688e1=_0x471b4d;try{agents[_0x4688e1('0xe')](_0x3e7f17),queues[_0x4688e1('0xe')](_0x3e7f17);}catch(_0x14d9b4){utils['error'](_0x14d9b4);}}),ami['on']('agentcomplete',function(_0x2d9ae9){const _0xae1cf6=_0x471b4d;try{agents['agentcomplete'](_0x2d9ae9),queues[_0xae1cf6('0x25')](_0x2d9ae9),members[_0xae1cf6('0x25')](_0x2d9ae9);}catch(_0x4fe5fb){utils[_0xae1cf6('0x6')](_0x4fe5fb);}}),ami['on'](_0x471b4d('0xc'),function(_0x43d18c){const _0x217552=_0x471b4d;try{agents['queuecallerabandon'](_0x43d18c),queues[_0x217552('0xc')](_0x43d18c);}catch(_0x428198){utils[_0x217552('0x6')](_0x428198);}}),ami['on'](_0x471b4d('0x22'),function(_0x4d573b){const _0x247b16=_0x471b4d;try{queues[_0x247b16('0x22')](_0x4d573b),recordings[_0x247b16('0x22')](_0x4d573b);}catch(_0x21530a){utils[_0x247b16('0x6')](_0x21530a);}}),ami['on'](_0x471b4d('0x1d'),function(_0x15c28b){const _0x2f289c=_0x471b4d;try{queues[_0x2f289c('0x1d')](_0x15c28b);}catch(_0x2e53ec){utils[_0x2f289c('0x6')](_0x2e53ec);}}),ami['on']('musiconholdstart',function(_0xae1dcf){const _0x1181ab=_0x471b4d;try{queues['musiconholdstart'](_0xae1dcf),calls[_0x1181ab('0x20')](_0xae1dcf);}catch(_0xd8656c){utils['error'](_0xd8656c);}}),ami['on'](_0x471b4d('0x12'),function(_0x114da0){const _0x5c8205=_0x471b4d;try{queues[_0x5c8205('0x12')](_0x114da0),calls['musiconholdstop'](_0x114da0);}catch(_0x14079d){utils[_0x5c8205('0x6')](_0x14079d);}}),ami['on'](_0x471b4d('0x27'),function(_0x1a9ba5){const _0x49763a=_0x471b4d;try{calls[_0x49763a('0x27')](_0x1a9ba5),recordings['newstate'](_0x1a9ba5);}catch(_0x2d5ef6){utils['error'](_0x2d5ef6);}}),ami['on']('hangup',function(_0x2b0925){const _0x47ad73=_0x471b4d;try{calls[_0x47ad73('0x7')](_0x2b0925),recordings[_0x47ad73('0x7')](_0x2b0925),dials[_0x47ad73('0x7')](_0x2b0925),agents[_0x47ad73('0x7')](_0x2b0925),queues[_0x47ad73('0x7')](_0x2b0925);}catch(_0x7fc15e){utils[_0x47ad73('0x6')](_0x7fc15e);}}),ami['on'](_0x471b4d('0x14'),function(_0x5ef937){try{members['cdr'](_0x5ef937);}catch(_0x4e5c3a){utils['error'](_0x4e5c3a);}}),ami['on']('blindtransfer',function(_0x126441){const _0x242dc8=_0x471b4d;try{queues[_0x242dc8('0x10')](_0x126441),agents[_0x242dc8('0x10')](_0x126441),transfers['blindtransfer'](_0x126441);}catch(_0x3a00d0){utils[_0x242dc8('0x6')](_0x3a00d0);}}),ami['on'](_0x471b4d('0x1b'),function(_0x130de5){const _0x4199fd=_0x471b4d;try{queues[_0x4199fd('0x1b')](_0x130de5),transfers[_0x4199fd('0x1b')](_0x130de5),agents['attendedtransfer'](_0x130de5),calls[_0x4199fd('0x1b')](_0x130de5);}catch(_0x14f471){utils['error'](_0x14f471);}}),ami['on'](_0x471b4d('0x24'),function(_0x2bcca9){const _0x370304=_0x471b4d;try{queues[_0x370304('0x24')](_0x2bcca9),recordings[_0x370304('0x24')](_0x2bcca9),calls[_0x370304('0x24')](_0x2bcca9),dials['varset'](_0x2bcca9);}catch(_0x129020){utils['error'](_0x129020);}}),ami['on'](_0x471b4d('0x1e'),function(_0x53cb80){const _0x5b18a8=_0x471b4d;try{calls[_0x5b18a8('0x1e')](_0x53cb80),recordings['newexten'](_0x53cb80),dials[_0x5b18a8('0x1e')](_0x53cb80);}catch(_0x4fb38c){utils['error'](_0x4fb38c);}}),ami['on'](_0x471b4d('0x3'),function(_0x286378){const _0x3dc3c0=_0x471b4d;try{calls[_0x3dc3c0('0x3')](_0x286378),recordings[_0x3dc3c0('0x3')](_0x286378);}catch(_0x46157b){utils[_0x3dc3c0('0x6')](_0x46157b);}}),ami['on']('dialbegin',function(_0x25e3d6){const _0x3cbb2f=_0x471b4d;try{dials['dialbegin'](_0x25e3d6);}catch(_0x4987af){utils[_0x3cbb2f('0x6')](_0x4987af);}}),ami['on'](_0x471b4d('0x16'),function(_0x374982){const _0x1bd0a1=_0x471b4d;try{dials[_0x1bd0a1('0x16')](_0x374982);}catch(_0x20bc21){utils[_0x1bd0a1('0x6')](_0x20bc21);}});} \ No newline at end of file +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 diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index fdb1c79..82d3997 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1224_0x37fb=['Queue:','CreateMemberReport','channel','lodash','state','data3','destination','format','request','membername','queue','assign','agent','duration','internal','interface','data2','BUSY','diffTime','getUserByName','INUSE','TALKING','isNil','NOT_INUSE','enterAt','some','agentcomplete','data1','device','now','util','then','exitAt','catch','destinationchannel','uniqueid','getUserByInterface','split','source','startsWith','type'];(function(_0x4af0b2,_0x37fbb7){const _0xbfba09=function(_0x1a0091){while(--_0x1a0091){_0x4af0b2['push'](_0x4af0b2['shift']());}};_0xbfba09(++_0x37fbb7);}(a1224_0x37fb,0x128));const a1224_0xbfba=function(_0x4af0b2,_0x37fbb7){_0x4af0b2=_0x4af0b2-0x0;let _0xbfba09=a1224_0x37fb[_0x4af0b2];return _0xbfba09;};const _0x5830c0=a1224_0xbfba;'use strict';const _=require(_0x5830c0('0x23')),util=require(_0x5830c0('0x15')),utils=require('./utils'),members={},exclude=['Local/_attended@transfer',_0x5830c0('0x20')];function writeDB(_0x1a0091){const _0x15d06c=_0x5830c0;utils['info'](util[_0x15d06c('0x27')]('MEMBER|%s|%s|%s|%s|%s|%s',_0x1a0091[_0x15d06c('0x1a')],_0x1a0091[_0x15d06c('0x6')],_0x1a0091[_0x15d06c('0x22')],_0x1a0091[_0x15d06c('0x7')],_0x1a0091[_0x15d06c('0x0')],_0x1a0091[_0x15d06c('0x1f')])),_0x1a0091[_0x15d06c('0x6')]&&utils[_0x15d06c('0x1b')](_0x1a0091[_0x15d06c('0x6')])[_0x15d06c('0x16')](function(_0x586a1c){const _0xed8b05=_0x15d06c;_0x586a1c?(_0x1a0091[_0xed8b05('0x0')]=_0x586a1c['name'],_0x1a0091[_0xed8b05('0x5')]=_0x586a1c[_0xed8b05('0x5')],utils[_0xed8b05('0x28')](_0xed8b05('0x21'),_0x1a0091)):utils[_0xed8b05('0xa')](_0x1a0091[_0xed8b05('0x6')][_0xed8b05('0x1c')]('/')[0x1])['then'](function(_0x5b999e){const _0x325e2d=_0xed8b05;_0x5b999e&&(_0x1a0091[_0x325e2d('0x0')]=_0x5b999e['name'],_0x1a0091[_0x325e2d('0x5')]=_0x5b999e[_0x325e2d('0x5')],utils[_0x325e2d('0x28')](_0x325e2d('0x21'),_0x1a0091));});})[_0x15d06c('0x18')](function(_0x1d7922){utils['error'](_0x1d7922);}),delete members[_0x1a0091['interface']];}function startsWith(_0x1d0cf4,_0xcfaa49){const _0x2a6429=_0x5830c0;return _[_0x2a6429('0x10')](_0x1d0cf4,function(_0x28962d){const _0x4ca5f7=_0x2a6429;return _[_0x4ca5f7('0x1e')](_0xcfaa49,_0x28962d);});}exports['devicestatechange']=function(_0x3ed200){const _0x182bcf=_0x5830c0;switch(_0x3ed200[_0x182bcf('0x24')]){case _0x182bcf('0xb'):case _0x182bcf('0x8'):!startsWith(exclude,_0x3ed200[_0x182bcf('0x13')])&&(members[_0x3ed200['device']]={'channel':'voice','interface':_0x3ed200[_0x182bcf('0x13')],'type':_0x182bcf('0xc'),'enterAt':utils[_0x182bcf('0x14')](),'role':_0x182bcf('0x3')});break;case _0x182bcf('0xe'):!_['isNil'](members[_0x3ed200[_0x182bcf('0x13')]])&&(members[_0x3ed200[_0x182bcf('0x13')]][_0x182bcf('0x17')]=utils[_0x182bcf('0x14')](),members[_0x3ed200[_0x182bcf('0x13')]][_0x182bcf('0x4')]=utils[_0x182bcf('0x9')](members[_0x3ed200[_0x182bcf('0x13')]][_0x182bcf('0x17')],members[_0x3ed200[_0x182bcf('0x13')]][_0x182bcf('0xf')]),members[_0x3ed200['device']][_0x182bcf('0x1a')]&&writeDB(members[_0x3ed200['device']]));break;default:break;}},exports[_0x5830c0('0x11')]=function(_0x4e9e8a){const _0x26a3f5=_0x5830c0;!_['isNil'](members[_0x4e9e8a[_0x26a3f5('0x6')]])&&(members[_0x4e9e8a['interface']]=_[_0x26a3f5('0x2')](members[_0x4e9e8a[_0x26a3f5('0x6')]],{'data4':_0x4e9e8a[_0x26a3f5('0x1')],'uniqueid':_0x4e9e8a[_0x26a3f5('0x1a')]}));},exports['cdr']=function(_0x27060b){const _0x4aeceb=_0x5830c0;if(_0x27060b['channel']){const _0x5dee13=_0x27060b[_0x4aeceb('0x22')][_0x4aeceb('0x1c')]('-')[0x0];!_[_0x4aeceb('0xd')](members[_0x5dee13])&&(members[_0x5dee13]=_[_0x4aeceb('0x2')](members[_0x5dee13],{'data1':members[_0x5dee13][_0x4aeceb('0x12')]||_0x27060b[_0x4aeceb('0x1f')],'data2':members[_0x5dee13]['data2']||_0x27060b[_0x4aeceb('0x1d')],'data3':members[_0x5dee13][_0x4aeceb('0x25')]||_0x27060b[_0x4aeceb('0x26')],'uniqueid':members[_0x5dee13]['uniqueid']||_0x27060b['uniqueid']}),members[_0x5dee13][_0x4aeceb('0x17')]&&writeDB(members[_0x5dee13]));}if(_0x27060b[_0x4aeceb('0x19')]){const _0x1211ca=_0x27060b[_0x4aeceb('0x19')]['split']('-')[0x0];!_['isNil'](members[_0x1211ca])&&(members[_0x1211ca]=_[_0x4aeceb('0x2')](members[_0x1211ca],{'data1':members[_0x1211ca][_0x4aeceb('0x12')]||_0x27060b[_0x4aeceb('0x1f')],'data2':members[_0x1211ca][_0x4aeceb('0x7')]||_0x27060b[_0x4aeceb('0x1d')],'data3':members[_0x1211ca][_0x4aeceb('0x25')]||_0x27060b['destination'],'uniqueid':members[_0x1211ca][_0x4aeceb('0x1a')]||_0x27060b[_0x4aeceb('0x1a')]}),members[_0x1211ca][_0x4aeceb('0x17')]&&writeDB(members[_0x1211ca]));}}; \ No newline at end of file +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 diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index d3fa0bd..8b16bf5 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1225_0x232d=['queueposition','position','./utils','reason','ATTENDEDTRANSFER','origtransfererexten','queuecallerexitAt','varset','transfertargetuniqueid','connectedlinenum','now','queuecallerleaveAt','queue','lodash','then','diffTime','transfereeuniqueid','extension','queuecallerexit','queuecallerjoinAt','musiconholdstop','CreateVoiceQueueReport','blindtransfer','queuecallerexitreason','request','secondtransfereruniqueid','musiconholdstartAt','hangup','musiconholdstart','transfertype','calleridnum','assign','holdtime','calleridname','secondtransfererexten','util','transferexten','clone','agentcomplete','queuecallerjoin','getVoiceQueueByName','ATTENDED','count','channel','accountcode','BLIND','uniqueid','queuecallerenterreason','ABANDONED','transfereelinkedid','queuecallerabandonAt','transfereduniqueid','queuecallercompleteAt','BLINDTRANSFER','toUpperCase','COMPLETEDBY','variable','secondtransfererlinkedid','transferuniqueid','queuecallerleave','membername','origtransfereruniqueid','connectedlinename','attendedtransfer','transfer','mohtime','transfertargetlinkedid','format','QUEUE|%s|%s|%s|%s|%s|%s|%s','TRANSFER','CONTINUE','lastAssignedTo','queuecallerabandon','agentconnect','assigned','queuestatus','isNil','EXITWITHKEY','origtransfererlinkedid','type'];(function(_0x3fcce3,_0x232d3b){const _0x1928ba=function(_0x5cdd65){while(--_0x5cdd65){_0x3fcce3['push'](_0x3fcce3['shift']());}};_0x1928ba(++_0x232d3b);}(a1225_0x232d,0x119));const a1225_0x1928=function(_0x3fcce3,_0x232d3b){_0x3fcce3=_0x3fcce3-0x0;let _0x1928ba=a1225_0x232d[_0x3fcce3];return _0x1928ba;};const _0x2b6e13=a1225_0x1928;'use strict';const _=require(_0x2b6e13('0x34')),util=require(_0x2b6e13('0x4a')),utils=require(_0x2b6e13('0x29')),queues={};function writeDB(_0x5cdd65){const _0x14d1d8=_0x2b6e13;utils['info'](util[_0x14d1d8('0x1a')](_0x14d1d8('0x1b'),_0x5cdd65[_0x14d1d8('0x5')],_0x5cdd65[_0x14d1d8('0x2')],_0x5cdd65[_0x14d1d8('0x33')],_0x5cdd65[_0x14d1d8('0x1e')],_0x5cdd65[_0x14d1d8('0x45')],_0x5cdd65[_0x14d1d8('0x3')],_0x5cdd65[_0x14d1d8('0x3e')])),_0x5cdd65[_0x14d1d8('0x33')]?utils[_0x14d1d8('0x4f')](_0x5cdd65[_0x14d1d8('0x33')])[_0x14d1d8('0x35')](function(_0x380289){const _0x364d35=_0x14d1d8;_0x380289&&(_0x5cdd65[_0x364d35('0x26')]=_0x380289[_0x364d35('0x26')]),utils[_0x364d35('0x3f')](_0x364d35('0x3c'),_0x5cdd65);}):utils['request']('CreateVoiceQueueReport',_0x5cdd65),_0x5cdd65[_0x14d1d8('0xa')]?delete queues[_0x5cdd65['transfereduniqueid']]:delete queues[_0x5cdd65[_0x14d1d8('0x5')]];}exports[_0x2b6e13('0x4e')]=function(_0x29bdad){const _0x164191=_0x2b6e13;queues[_0x29bdad[_0x164191('0x5')]]=_[_0x164191('0x46')](_0x29bdad,{'originalposition':_0x29bdad['position'],'queuecallerjoinAt':utils['now'](),'mohtime':0x0});},exports[_0x2b6e13('0x42')]=function(_0x2f5c3c){const _0x5ac83c=_0x2b6e13;!_[_0x5ac83c('0x23')](queues[_0x2f5c3c[_0x5ac83c('0x5')]])&&(queues[_0x2f5c3c[_0x5ac83c('0x5')]][_0x5ac83c('0x32')]?(!queues[_0x2f5c3c['uniqueid']][_0x5ac83c('0x1f')]&&!queues[_0x2f5c3c[_0x5ac83c('0x5')]][_0x5ac83c('0x39')]&&(queues[_0x2f5c3c[_0x5ac83c('0x5')]]['queuecallercomplete']=!![],queues[_0x2f5c3c['uniqueid']][_0x5ac83c('0xb')]=utils[_0x5ac83c('0x31')](),queues[_0x2f5c3c['uniqueid']][_0x5ac83c('0x3e')]='COMPLETEDBYAGENT'),writeDB(queues[_0x2f5c3c[_0x5ac83c('0x5')]])):queues[_0x2f5c3c[_0x5ac83c('0x5')]][_0x5ac83c('0xa')]&&(queues[queues[_0x2f5c3c['uniqueid']][_0x5ac83c('0xa')]]=queues[_0x2f5c3c[_0x5ac83c('0x5')]],queues[queues[_0x2f5c3c[_0x5ac83c('0x5')]]['transfereduniqueid']][_0x5ac83c('0x6')]=0x2,delete queues[_0x2f5c3c['uniqueid']]));},exports[_0x2b6e13('0x2e')]=function(_0x36b1b1){const _0x3449b1=_0x2b6e13;if(!_[_0x3449b1('0x23')](_0x36b1b1[_0x3449b1('0xf')][_0x3449b1('0x22')])&&_0x36b1b1['value'][_0x3449b1('0xd')]()!==_0x3449b1('0x1d'))!_[_0x3449b1('0x23')](queues[_0x36b1b1[_0x3449b1('0x5')]])&&(queues[_0x36b1b1['uniqueid']]['queuecallerabandon']=![],queues[_0x36b1b1['uniqueid']]['queuecallerabandonAt']=null,queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x39')]=!![],queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x2d')]=utils[_0x3449b1('0x31')](),queues[_0x36b1b1[_0x3449b1('0x5')]]['queuecallerexitreason']=_0x36b1b1['value']['toUpperCase'](),writeDB(queues[_0x36b1b1[_0x3449b1('0x5')]]));else!_[_0x3449b1('0x23')](_0x36b1b1[_0x3449b1('0xf')][_0x3449b1('0x27')])&&(!_[_0x3449b1('0x23')](queues[_0x36b1b1[_0x3449b1('0x5')]])&&!queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x1f')]&&(queues[_0x36b1b1[_0x3449b1('0x5')]]['queuecallerabandon']=![],queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x9')]=null,queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x39')]=!![],queues[_0x36b1b1[_0x3449b1('0x5')]][_0x3449b1('0x2d')]=utils['now'](),queues[_0x36b1b1[_0x3449b1('0x5')]]['queuecallerexitreason']=_0x3449b1('0x24')));},exports[_0x2b6e13('0x1f')]=function(_0x5293a2){const _0x3aa12a=_0x2b6e13;!_['isNil'](queues[_0x5293a2[_0x3aa12a('0x5')]])&&(queues[_0x5293a2[_0x3aa12a('0x5')]]['queuecallerexit']=![],queues[_0x5293a2[_0x3aa12a('0x5')]]['queuecallerexitAt']=null,queues[_0x5293a2[_0x3aa12a('0x5')]][_0x3aa12a('0x1f')]=!![],queues[_0x5293a2['uniqueid']][_0x3aa12a('0x9')]=utils[_0x3aa12a('0x31')](),queues[_0x5293a2[_0x3aa12a('0x5')]][_0x3aa12a('0x3e')]=_0x3aa12a('0x7'));},exports[_0x2b6e13('0x12')]=function(_0x1ce88d){const _0x1420b0=_0x2b6e13;!_['isNil'](queues[_0x1ce88d[_0x1420b0('0x5')]])&&(queues[_0x1ce88d[_0x1420b0('0x5')]][_0x1420b0('0x12')]=!![],queues[_0x1ce88d[_0x1420b0('0x5')]]['queuecallerleaveAt']=utils[_0x1420b0('0x31')](),queues[_0x1ce88d[_0x1420b0('0x5')]][_0x1420b0('0x47')]=utils[_0x1420b0('0x36')](queues[_0x1ce88d['uniqueid']][_0x1420b0('0x32')],queues[_0x1ce88d[_0x1420b0('0x5')]][_0x1420b0('0x3a')]),queues[_0x1ce88d['uniqueid']][_0x1420b0('0x28')]=_0x1ce88d[_0x1420b0('0x28')],queues[_0x1ce88d['uniqueid']]['count']=_0x1ce88d[_0x1420b0('0x1')],queues[_0x1ce88d[_0x1420b0('0x5')]]['connectedlinenum']=_0x1ce88d[_0x1420b0('0x30')],queues[_0x1ce88d['uniqueid']][_0x1420b0('0x15')]=_0x1ce88d[_0x1420b0('0x15')]);},exports[_0x2b6e13('0x20')]=function(_0x37fee2){const _0x27421e=_0x2b6e13;!_['isNil'](queues[_0x37fee2[_0x27421e('0x5')]])&&(queues[_0x37fee2['uniqueid']]['queuecallerabandon']=![],queues[_0x37fee2[_0x27421e('0x5')]][_0x27421e('0x1f')]=![],queues[_0x37fee2['uniqueid']][_0x27421e('0x9')]=null,queues[_0x37fee2[_0x27421e('0x5')]][_0x27421e('0x39')]=![],queues[_0x37fee2[_0x27421e('0x5')]]['queuecallerexitreason']=null,queues[_0x37fee2['uniqueid']][_0x27421e('0x2d')]=null,queues[_0x37fee2[_0x27421e('0x5')]]['assigned']=!![],queues[_0x37fee2['uniqueid']][_0x27421e('0x3')]=_0x37fee2['destaccountcode'],queues[_0x37fee2[_0x27421e('0x5')]][_0x27421e('0x1e')]=_0x37fee2[_0x27421e('0x13')]);},exports[_0x2b6e13('0x4d')]=function(_0xc9faa){const _0x44ac0a=_0x2b6e13;!_[_0x44ac0a('0x23')](queues[_0xc9faa['uniqueid']])&&(queues[_0xc9faa['uniqueid']][_0x44ac0a('0x32')]&&(queues[_0xc9faa[_0x44ac0a('0x5')]][_0x44ac0a('0x1f')]=![],queues[_0xc9faa['uniqueid']][_0x44ac0a('0x1f')]=![],queues[_0xc9faa[_0x44ac0a('0x5')]]['queuecallerabandonAt']=null,queues[_0xc9faa[_0x44ac0a('0x5')]][_0x44ac0a('0x39')]=![],queues[_0xc9faa[_0x44ac0a('0x5')]][_0x44ac0a('0x2d')]=null,queues[_0xc9faa['uniqueid']][_0x44ac0a('0x21')]=!![],queues[_0xc9faa['uniqueid']][_0x44ac0a('0x1e')]=_0xc9faa['membername'],queues[_0xc9faa['uniqueid']]['queuecallercomplete']=!![],queues[_0xc9faa[_0x44ac0a('0x5')]][_0x44ac0a('0xb')]=utils[_0x44ac0a('0x31')](),_0xc9faa['reason']==_0x44ac0a('0x17')?!queues[_0xc9faa['uniqueid']][_0x44ac0a('0x17')]&&(queues[_0xc9faa['uniqueid']][_0x44ac0a('0x3e')]=_0x44ac0a('0x1c')):queues[_0xc9faa[_0x44ac0a('0x5')]][_0x44ac0a('0x3e')]=_0x44ac0a('0xe')+_0xc9faa[_0x44ac0a('0x2a')][_0x44ac0a('0xd')](),writeDB(queues[_0xc9faa[_0x44ac0a('0x5')]])));},exports[_0x2b6e13('0x3d')]=function(_0x1c0120){const _0x1c7e0b=_0x2b6e13;!_['isNil'](queues[_0x1c0120['transfereeuniqueid']])&&(queues[_0x1c0120[_0x1c7e0b('0x37')]][_0x1c7e0b('0x17')]=!![],queues[_0x1c0120[_0x1c7e0b('0x37')]]['transfertype']=_0x1c7e0b('0x4'),queues[_0x1c0120[_0x1c7e0b('0x37')]]['transferexten']=_0x1c0120[_0x1c7e0b('0x38')],queues[_0x1c0120['transfereeuniqueid']][_0x1c7e0b('0x11')]=_0x1c0120['transfereeuniqueid'],queues[_0x1c0120[_0x1c7e0b('0x37')]]['queuecallerexitreason']=_0x1c7e0b('0xc'));},exports[_0x2b6e13('0x16')]=function(_0x195fed){const _0xcf2ee5=_0x2b6e13;try{if(_0x195fed[_0xcf2ee5('0x14')]==_0x195fed[_0xcf2ee5('0x25')])!_[_0xcf2ee5('0x23')](queues[_0x195fed[_0xcf2ee5('0x10')]])&&(queues[_0x195fed[_0xcf2ee5('0x10')]]['transfer']=!![],queues[_0x195fed[_0xcf2ee5('0x10')]]['transfertype']='ATTENDED',queues[_0x195fed[_0xcf2ee5('0x10')]][_0xcf2ee5('0x4b')]=_0x195fed[_0xcf2ee5('0x2c')],queues[_0x195fed[_0xcf2ee5('0x10')]][_0xcf2ee5('0x11')]=_0x195fed[_0xcf2ee5('0x14')],queues[_0x195fed['secondtransfererlinkedid']][_0xcf2ee5('0x3e')]='ATTENDEDTRANSFER'),!_['isNil'](queues[_0x195fed[_0xcf2ee5('0x25')]])&&(_0x195fed[_0xcf2ee5('0x8')]&&queues[_0x195fed['transfereelinkedid']]?(queues[_0x195fed['transfereelinkedid']]['queuecallerenterreason']=0x1,queues[_0x195fed['transfereeuniqueid']]=_[_0xcf2ee5('0x4c')](queues[_0x195fed[_0xcf2ee5('0x8')]]),queues[_0x195fed['transfereeuniqueid']][_0xcf2ee5('0xa')]=_0x195fed[_0xcf2ee5('0x2f')],queues[_0x195fed[_0xcf2ee5('0x37')]][_0xcf2ee5('0x6')]=0x2,queues[_0x195fed[_0xcf2ee5('0x37')]][_0xcf2ee5('0x45')]=queues[_0x195fed[_0xcf2ee5('0x10')]][_0xcf2ee5('0x45')],queues[_0x195fed[_0xcf2ee5('0x37')]][_0xcf2ee5('0x48')]=queues[_0x195fed[_0xcf2ee5('0x10')]][_0xcf2ee5('0x48')],queues[_0x195fed['transfereeuniqueid']][_0xcf2ee5('0x3a')]=utils[_0xcf2ee5('0x31')](),queues[_0x195fed[_0xcf2ee5('0x37')]]['queuecallerleaveAt']=utils[_0xcf2ee5('0x31')](),queues[_0x195fed[_0xcf2ee5('0x37')]]['holdtime']=0x0,queues[_0x195fed['transfereeuniqueid']][_0xcf2ee5('0x18')]=0x0):queues[_0x195fed[_0xcf2ee5('0x25')]]['transfereduniqueid']=_0x195fed[_0xcf2ee5('0x10')]);else _0x195fed[_0xcf2ee5('0x40')]==_0x195fed[_0xcf2ee5('0x10')]&&(!_[_0xcf2ee5('0x23')](queues[_0x195fed[_0xcf2ee5('0x25')]])&&(queues[_0x195fed[_0xcf2ee5('0x25')]][_0xcf2ee5('0x17')]=!![],queues[_0x195fed[_0xcf2ee5('0x25')]][_0xcf2ee5('0x44')]=_0xcf2ee5('0x0'),queues[_0x195fed['origtransfererlinkedid']]['transferexten']=_0x195fed[_0xcf2ee5('0x49')],queues[_0x195fed[_0xcf2ee5('0x25')]][_0xcf2ee5('0x11')]=_0x195fed['secondtransfereruniqueid'],queues[_0x195fed[_0xcf2ee5('0x25')]][_0xcf2ee5('0x3e')]=_0xcf2ee5('0x2b')),!_['isNil'](queues[_0x195fed[_0xcf2ee5('0x10')]])&&(_0x195fed[_0xcf2ee5('0x19')]&&queues[_0x195fed[_0xcf2ee5('0x19')]]?(queues[_0x195fed['transfertargetlinkedid']][_0xcf2ee5('0x6')]=0x1,queues[_0x195fed[_0xcf2ee5('0x2f')]]=_['clone'](queues[_0x195fed[_0xcf2ee5('0x19')]]),queues[_0x195fed[_0xcf2ee5('0x2f')]][_0xcf2ee5('0xa')]=_0x195fed[_0xcf2ee5('0x2f')],queues[_0x195fed[_0xcf2ee5('0x2f')]][_0xcf2ee5('0x6')]=0x2,queues[_0x195fed[_0xcf2ee5('0x2f')]][_0xcf2ee5('0x45')]=queues[_0x195fed[_0xcf2ee5('0x25')]]['calleridnum'],queues[_0x195fed[_0xcf2ee5('0x2f')]][_0xcf2ee5('0x48')]=queues[_0x195fed[_0xcf2ee5('0x25')]][_0xcf2ee5('0x48')],queues[_0x195fed['transfertargetuniqueid']]['queuecallerjoinAt']=utils['now'](),queues[_0x195fed[_0xcf2ee5('0x2f')]][_0xcf2ee5('0x32')]=utils[_0xcf2ee5('0x31')](),queues[_0x195fed[_0xcf2ee5('0x2f')]]['holdtime']=0x0,queues[_0x195fed[_0xcf2ee5('0x2f')]]['mohtime']=0x0):queues[_0x195fed[_0xcf2ee5('0x10')]][_0xcf2ee5('0xa')]=_0x195fed[_0xcf2ee5('0x25')]));}catch(_0x47c2a6){utils['error'](_0x47c2a6['stack']);}},exports[_0x2b6e13('0x43')]=function(_0x10725f){const _0x5151ed=_0x2b6e13;!_[_0x5151ed('0x23')](queues[_0x10725f[_0x5151ed('0x5')]])&&(queues[_0x10725f[_0x5151ed('0x5')]]['musiconholdstartAt']=utils[_0x5151ed('0x31')]());},exports[_0x2b6e13('0x3b')]=function(_0x18841f){const _0x445244=_0x2b6e13;!_['isNil'](queues[_0x18841f[_0x445244('0x5')]])&&(!_[_0x445244('0x23')](queues[_0x18841f[_0x445244('0x5')]]['musiconholdstartAt'])&&(queues[_0x18841f[_0x445244('0x5')]][_0x445244('0x18')]+=utils[_0x445244('0x36')](utils['now'](),queues[_0x18841f[_0x445244('0x5')]][_0x445244('0x41')]),delete queues[_0x18841f[_0x445244('0x5')]][_0x445244('0x41')]));}; \ No newline at end of file +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 diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index 2c56a90..edba286 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1226_0x41e9=['startsWith','forEach','replace','stack','exten','then','monitors','name','outbound','substring','channelstate','toLowerCase','endsWith','isNil','debug','membername','mixmonitor_filename','push','calleridname','error','linkedid','queuecallerjoin','queue','.wav49','set','connectedlinename','calleridnum','CreateVoiceRecording','newexten','accountcode','type','getUserByInternal','clone','lastIndexOf','connectedlinenum','split','uniqueid','context','varset','.WAV','appdata','value','cdr','newstate','hangup','application','UserId','newchannel','request'];(function(_0x56d566,_0x41e906){const _0x3963b4=function(_0x2b3c53){while(--_0x2b3c53){_0x56d566['push'](_0x56d566['shift']());}};_0x3963b4(++_0x41e906);}(a1226_0x41e9,0xd0));const a1226_0x3963=function(_0x56d566,_0x41e906){_0x56d566=_0x56d566-0x0;let _0x3963b4=a1226_0x41e9[_0x56d566];return _0x3963b4;};const _0x2fe71e=a1226_0x3963;'use strict';const _=require('lodash'),utils=require('./utils'),recordings={};function writeDB(_0x2b3c53){const _0x27ab87=a1226_0x3963;utils[_0x27ab87('0x2')](_0x2b3c53),_0x2b3c53['accountcode']?utils[_0x27ab87('0x13')](_0x2b3c53[_0x27ab87('0x11')])[_0x27ab87('0x2a')](function(_0x11a55a){const _0x5d7312=_0x27ab87;_0x11a55a&&(_0x2b3c53[_0x5d7312('0x3')]=_0x11a55a[_0x5d7312('0x2c')],_0x2b3c53[_0x5d7312('0x22')]=_0x11a55a['id']),utils[_0x5d7312('0x24')]('CreateVoiceRecording',_0x2b3c53);}):utils['request'](_0x27ab87('0xf'),_0x2b3c53);}exports[_0x2fe71e('0x23')]=function(_0x34b1c7){const _0x892f93=_0x2fe71e;try{_0x34b1c7['uniqueid']==_0x34b1c7['linkedid']&&(recordings[_0x34b1c7[_0x892f93('0x18')]]={'uniqueid':_0x34b1c7[_0x892f93('0x18')],'accountcode':_0x34b1c7[_0x892f93('0x11')],'exten':_0x34b1c7[_0x892f93('0x29')],'context':_0x34b1c7[_0x892f93('0x19')],'channel':_0x34b1c7['channel'],'monitors':[]});}catch(_0x173520){utils[_0x892f93('0x7')](_0x173520[_0x892f93('0x28')]);}},exports[_0x2fe71e('0x1f')]=function(_0x25c6d4){const _0x57cae8=_0x2fe71e;try{if(!_[_0x57cae8('0x1')](recordings[_0x25c6d4[_0x57cae8('0x18')]])&&_0x25c6d4['channelstate']==0x6){}else!_[_0x57cae8('0x1')](recordings[_0x25c6d4[_0x57cae8('0x8')]])&&_0x25c6d4[_0x57cae8('0x2f')]==0x6&&_0x25c6d4['context']!='transfer'&&(recordings[_0x25c6d4[_0x57cae8('0x8')]]['accountcode']=_0x25c6d4[_0x57cae8('0x11')]);}catch(_0x36f2ea){utils[_0x57cae8('0x7')](_0x36f2ea[_0x57cae8('0x28')]);}},exports[_0x2fe71e('0x1a')]=function(_0x32f2a5){const _0x32e95c=_0x2fe71e;try{if(!_[_0x32e95c('0x1')](_0x32f2a5['variable'])&&!_[_0x32e95c('0x1')](_0x32f2a5['variable'][_0x32e95c('0x4')])){_[_0x32e95c('0x0')](_0x32f2a5[_0x32e95c('0x1d')],_0x32e95c('0xb'))&&(_0x32f2a5[_0x32e95c('0x1d')]=_0x32f2a5[_0x32e95c('0x1d')][_0x32e95c('0x27')](_0x32e95c('0xb'),_0x32e95c('0x1b')));if(recordings[_0x32f2a5[_0x32e95c('0x8')]]){const _0x1f4d64=_['find'](recordings[_0x32f2a5[_0x32e95c('0x8')]]['monitors'],{'value':_0x32f2a5[_0x32e95c('0x1d')]});_[_0x32e95c('0x1')](_0x1f4d64)&&recordings[_0x32f2a5[_0x32e95c('0x8')]][_0x32e95c('0x2b')][_0x32e95c('0x5')]({'value':_0x32f2a5[_0x32e95c('0x1d')]});}}}catch(_0x120edf){utils['error'](_0x120edf[_0x32e95c('0x28')]);}},exports[_0x2fe71e('0x20')]=function(_0x27e9db){const _0x452ed8=_0x2fe71e;try{!_[_0x452ed8('0x1')](recordings[_0x27e9db[_0x452ed8('0x18')]])&&(recordings[_0x27e9db[_0x452ed8('0x18')]]['calleridnum']=_0x27e9db[_0x452ed8('0xe')],recordings[_0x27e9db['uniqueid']][_0x452ed8('0x6')]=_0x27e9db['calleridname'],recordings[_0x27e9db['uniqueid']][_0x452ed8('0x16')]=_0x27e9db[_0x452ed8('0x16')],recordings[_0x27e9db[_0x452ed8('0x18')]]['connectedlinename']=_0x27e9db[_0x452ed8('0xd')],recordings[_0x27e9db[_0x452ed8('0x18')]][_0x452ed8('0x12')]==_0x452ed8('0x2d')&&recordings[_0x27e9db[_0x452ed8('0x18')]][_0x452ed8('0x11')]&&(recordings[_0x27e9db[_0x452ed8('0x18')]][_0x452ed8('0x16')]=recordings[_0x27e9db['uniqueid']][_0x452ed8('0x11')],recordings[_0x27e9db[_0x452ed8('0x18')]]['connectedlinename']=''),recordings[_0x27e9db[_0x452ed8('0x18')]]['monitors'][_0x452ed8('0x26')](_0x61f325=>{const _0x48a70a=_0x452ed8,_0x5409fd=_[_0x48a70a('0x14')](recordings[_0x27e9db[_0x48a70a('0x18')]]);_0x5409fd[_0x48a70a('0x1d')]=_0x61f325[_0x48a70a('0x1d')],writeDB(_0x5409fd);}),delete recordings[_0x27e9db[_0x452ed8('0x18')]]);}catch(_0x15c06f){utils[_0x452ed8('0x7')](_0x15c06f['stack']);}},exports[_0x2fe71e('0x10')]=function(_0x1e1bf4){const _0x4c32cf=_0x2fe71e;try{if(!_[_0x4c32cf('0x1')](recordings[_0x1e1bf4[_0x4c32cf('0x18')]])){if(_0x1e1bf4[_0x4c32cf('0x21')][_0x4c32cf('0x30')]()==_0x4c32cf('0xc')&&_[_0x4c32cf('0x25')](_0x1e1bf4[_0x4c32cf('0x1c')][_0x4c32cf('0x30')](),_0x4c32cf('0x1e'))){const _0x1ea662=_0x1e1bf4['appdata'][_0x4c32cf('0x17')]('='),_0x3fa384=_0x1ea662[0x0][_0x4c32cf('0x2e')](_0x1ea662[0x0][_0x4c32cf('0x15')]('(')+0x1,_0x1ea662[0x0]['lastIndexOf'](')')),_0x694e71=_0x1ea662[0x1];recordings[_0x1e1bf4['uniqueid']][_0x3fa384]=_0x694e71;}}}catch(_0x4ddaec){utils['error'](_0x4ddaec['stack']);}},exports[_0x2fe71e('0x9')]=function(_0x57d80b){const _0x2b88a8=_0x2fe71e;try{!_[_0x2b88a8('0x1')](recordings[_0x57d80b[_0x2b88a8('0x18')]])&&(recordings[_0x57d80b[_0x2b88a8('0x18')]][_0x2b88a8('0xa')]=_0x57d80b[_0x2b88a8('0xa')]);}catch(_0x436110){utils[_0x2b88a8('0x7')](_0x436110[_0x2b88a8('0x28')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index 1ffee62..12e9ff9 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1227_0x3454=['secondtransferercontext','origtransferercontext','origtransfererlinkedid','transfertargetexten','transfereechannel','blind','request','secondtransfererexten','stack','transfertargetcontext','secondtransfererconnectedlinename','CreateVoiceTransferReport','error','info','transfertargetchannel','TRANSFER|%s','blindtransfer','transfertargetaccountcode','transfertargetcalleridnum','assign','lodash','secondtransfererconnectedlinenum','attendedtransfer','transfertargetconnectedlinename','origtransfererexten','attended','origtransferercalleridname','origtransfereraccountcode','./utils','type'];(function(_0x4b1039,_0x345438){const _0x16d850=function(_0xee374e){while(--_0xee374e){_0x4b1039['push'](_0x4b1039['shift']());}};_0x16d850(++_0x345438);}(a1227_0x3454,0xca));const a1227_0x16d8=function(_0x4b1039,_0x345438){_0x4b1039=_0x4b1039-0x0;let _0x16d850=a1227_0x3454[_0x4b1039];return _0x16d850;};const _0x197f6c=a1227_0x16d8;'use strict';const _=require(_0x197f6c('0x1c')),util=require('util'),utils=require(_0x197f6c('0x6'));function writeDB(_0xee374e){const _0x2318f7=_0x197f6c;utils[_0x2318f7('0x15')](util['format'](_0x2318f7('0x17'),_0xee374e[_0x2318f7('0x7')])),utils[_0x2318f7('0xe')](_0x2318f7('0x13'),_0xee374e);}exports[_0x197f6c('0x18')]=function(_0x479e0f){const _0x29be50=_0x197f6c;try{_0x479e0f[_0x29be50('0x7')]=_0x29be50('0xd'),writeDB(_0x479e0f);}catch(_0x4d1cf1){utils[_0x29be50('0x14')](_0x4d1cf1[_0x29be50('0x10')]);}},exports[_0x197f6c('0x0')]=function(_0x312712){const _0x49b687=_0x197f6c;try{_0x312712=_[_0x49b687('0x1b')](_0x312712,{'transfererchannel':_0x312712['origtransfererchannel'],'transferercalleridnum':_0x312712['origtransferercalleridnum'],'transferercalleridname':_0x312712[_0x49b687('0x4')],'transfererconnectedlinenum':_0x312712[_0x49b687('0x1d')],'transfererconnectedlinename':_0x312712[_0x49b687('0x12')],'transfereraccountcode':_0x312712[_0x49b687('0x5')],'transferercontext':_0x312712[_0x49b687('0x8')],'transfererexten':_0x312712[_0x49b687('0xf')],'transfererlinkedid':_0x312712[_0x49b687('0xa')],'context':_0x312712[_0x49b687('0x9')],'extension':_0x312712[_0x49b687('0x2')],'type':_0x49b687('0x3')}),_['isNil'](_0x312712[_0x49b687('0xc')])&&(_0x312712=_['assign'](_0x312712,{'transfereechannel':_0x312712[_0x49b687('0x16')],'transfereecalleridnum':_0x312712[_0x49b687('0x1a')],'transfereecalleridname':_0x312712['transfertargetcalleridname'],'transfereeconnectedlinenum':_0x312712['transfertargetconnectedlinenum'],'transfereeconnectedlinename':_0x312712[_0x49b687('0x1')],'transfereeaccountcode':_0x312712[_0x49b687('0x19')],'transfereecontext':_0x312712[_0x49b687('0x11')],'transfereeexten':_0x312712[_0x49b687('0xb')],'transfereelinkedid':_0x312712['transfertargetlinkedid']})),writeDB(_0x312712);}catch(_0x497727){utils['error'](_0x497727[_0x49b687('0x10')]);}}; \ No newline at end of file +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 diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index a7e10a2..57a8889 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1228_0x2134=['type','debug','jayson/promise','getVoiceQueueByName','info','stringify','name','format','catch','subtract','diff','FOUND','GETVOICEQUEUEBYNAME|','../../config/logger','addTime','then','acwTimeout','getUserByName','GetUser','result','moment','GetVoiceQueue','seconds','isAfter','sumTime','getUserByInterface','error','request','length','YYYY-MM-DD\x20HH:mm:ss','internal','stack','getUserByInternal','GETUSER|','interface','isBefore','diffTime','xdr'];(function(_0x2c3324,_0x2134a7){const _0x390ed8=function(_0xdf6889){while(--_0xdf6889){_0x2c3324['push'](_0x2c3324['shift']());}};_0x390ed8(++_0x2134a7);}(a1228_0x2134,0x1b0));const a1228_0x390e=function(_0x2c3324,_0x2134a7){_0x2c3324=_0x2c3324-0x0;let _0x390ed8=a1228_0x2134[_0x2c3324];return _0x390ed8;};const _0x2bc026=a1228_0x390e;'use strict';const jayson=require(_0x2bc026('0x1a')),moment=require(_0x2bc026('0x6')),client=jayson['client']['http']({'port':0x2329}),logger=require(_0x2bc026('0x25'))(_0x2bc026('0x17'));exports[_0x2bc026('0x1c')]=function(_0xdf6889){const _0x418f92=_0x2bc026;logger[_0x418f92('0x1c')](_0xdf6889);},exports[_0x2bc026('0x19')]=function(_0x3325c1){const _0x354dc7=_0x2bc026;logger[_0x354dc7('0x19')](JSON[_0x354dc7('0x1d')](_0x3325c1));},exports['error']=function(_0x51061e){const _0x419f03=_0x2bc026;logger[_0x419f03('0xc')](_0x51061e[_0x419f03('0x11')]);},exports[_0x2bc026('0xd')]=function(_0x535267,_0x2003eb){const _0x1bb56e=_0x2bc026;return client['request'](_0x535267,{'body':_0x2003eb})[_0x1bb56e('0x1')](function(_0x46d7cd){const _0x511b99=_0x1bb56e;logger[_0x511b99('0x19')](JSON['stringify'](_0x46d7cd));})['catch'](function(_0x2e0112){const _0x9e293b=_0x1bb56e;logger[_0x9e293b('0xc')](_0x2e0112[_0x9e293b('0x11')]);});};function getUser(_0x33bb01){const _0x3405b8=_0x2bc026;return client['request'](_0x3405b8('0x4'),{'options':{'raw':!![],'attributes':['id',_0x3405b8('0x10'),_0x3405b8('0x1e'),_0x3405b8('0x14')],'where':_0x33bb01,'limit':0x1}})[_0x3405b8('0x1')](function(_0x4718fe){const _0x5468ee=_0x3405b8;return logger['info'](_0x5468ee('0x13')+JSON['stringify'](_0x33bb01)+'|'+(_0x4718fe[_0x5468ee('0x5')][_0x5468ee('0xe')]?'FOUND':'NOTFOUND')),_0x4718fe['result'][_0x5468ee('0xe')]?_0x4718fe[_0x5468ee('0x5')][0x0]:null;});}exports[_0x2bc026('0x12')]=function(_0x5555cc){return new Promise(function(_0x137e72){const _0x3ec4cd=a1228_0x390e;return _0x5555cc?getUser({'internal':_0x5555cc})[_0x3ec4cd('0x1')](function(_0x51ea6e){return _0x137e72(_0x51ea6e);})['catch'](function(_0x5589f0){return logger['error'](_0x5589f0['stack']),_0x137e72(null);}):_0x137e72(null);});},exports[_0x2bc026('0xb')]=function(_0x599492){return new Promise(function(_0x2824c5){const _0x2951ca=a1228_0x390e;return _0x599492?getUser({'interface':_0x599492})[_0x2951ca('0x1')](function(_0xc2582a){return _0x2824c5(_0xc2582a);})[_0x2951ca('0x20')](function(_0x315e91){return logger['error'](_0x315e91['stack']),_0x2824c5(null);}):_0x2824c5(null);});},exports[_0x2bc026('0x3')]=function(_0x4e9f37){return new Promise(function(_0x3723d2){const _0x55c161=a1228_0x390e;return _0x4e9f37?getUser({'name':_0x4e9f37})['then'](function(_0x31b6bf){return _0x3723d2(_0x31b6bf);})[_0x55c161('0x20')](function(_0x1f649c){const _0x1b163d=_0x55c161;return logger[_0x1b163d('0xc')](_0x1f649c[_0x1b163d('0x11')]),_0x3723d2(null);}):_0x3723d2(null);});},exports[_0x2bc026('0x1b')]=function(_0x21608f){return new Promise(function(_0x5c91de){const _0xb5b266=a1228_0x390e;return _0x21608f?client[_0xb5b266('0xd')](_0xb5b266('0x7'),{'options':{'raw':!![],'attributes':['id',_0xb5b266('0x1e'),_0xb5b266('0x18'),'acw',_0xb5b266('0x2')],'where':{'name':_0x21608f},'limit':0x1}})[_0xb5b266('0x1')](function(_0x3fb859){const _0x8ab385=_0xb5b266;return logger[_0x8ab385('0x1c')](_0x8ab385('0x24')+_0x21608f+'|'+(_0x3fb859[_0x8ab385('0x5')][_0x8ab385('0xe')]?_0x8ab385('0x23'):'NOTFOUND')),_0x5c91de(_0x3fb859[_0x8ab385('0x5')][_0x8ab385('0xe')]?_0x3fb859[_0x8ab385('0x5')][0x0]:null);})[_0xb5b266('0x20')](function(_0x45f22e){const _0x173dff=_0xb5b266;return logger[_0x173dff('0xc')](_0x45f22e['stack']),_0x5c91de(null);}):_0x5c91de(null);});},exports[_0x2bc026('0x0')]=function(_0x2f679e,_0x17a789){const _0x127c63=_0x2bc026;return moment(_0x2f679e)['add'](_0x17a789,_0x127c63('0x8'))[_0x127c63('0x1f')](_0x127c63('0xf'));},exports['subtractTime']=function(_0x42da55,_0x11b365){const _0x5e9acb=_0x2bc026;return moment(_0x42da55)[_0x5e9acb('0x21')](_0x11b365,_0x5e9acb('0x8'))[_0x5e9acb('0x1f')](_0x5e9acb('0xf'));},exports[_0x2bc026('0x16')]=function(_0x437b1a,_0x4d80fd){const _0x1400f9=_0x2bc026;return moment(_0x437b1a)[_0x1400f9('0x22')](moment(_0x4d80fd),_0x1400f9('0x8'));},exports[_0x2bc026('0xa')]=function(_0x41e21c,_0x2da1f4){return parseInt(_0x41e21c,0xa)+parseInt(_0x2da1f4,0xa);},exports['now']=function(){const _0x2a94c2=_0x2bc026;return moment()[_0x2a94c2('0x1f')](_0x2a94c2('0xf'));},exports[_0x2bc026('0x9')]=function(_0x492f8f,_0x3e781c){const _0x558569=_0x2bc026;return _0x3e781c?moment(_0x492f8f)[_0x558569('0x9')](_0x3e781c):!![];},exports[_0x2bc026('0x15')]=function(_0x79bd73,_0x707b91){const _0x2f2e54=_0x2bc026;if(_0x707b91)return moment(_0x79bd73)[_0x2f2e54('0x15')](_0x707b91);else return _0x79bd73?!![]:![];}; \ No newline at end of file +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 diff --git a/server/utils/build-info.js b/server/utils/build-info.js index 8d436c7..51717a5 100644 --- a/server/utils/build-info.js +++ b/server/utils/build-info.js @@ -1 +1 @@ -const a1229_0x5d7e=['resolve','../config/config.service','../../package.json','join','xcally','git-last-commit'];(function(_0x41ec8b,_0x5d7ea5){const _0x231929=function(_0x2a0e83){while(--_0x2a0e83){_0x41ec8b['push'](_0x41ec8b['shift']());}};_0x231929(++_0x5d7ea5);}(a1229_0x5d7e,0x116));const a1229_0x2319=function(_0x41ec8b,_0x5d7ea5){_0x41ec8b=_0x41ec8b-0x0;let _0x231929=a1229_0x5d7e[_0x41ec8b];return _0x231929;};const _0x3dc1c2=a1229_0x2319,{getLastCommit}=require(_0x3dc1c2('0x3')),{getConfigService}=require(_0x3dc1c2('0x5')),packageJson=require(_0x3dc1c2('0x0')),cs=getConfigService();function getBuildInfo(){return new Promise((_0x2a0e83,_0x343351)=>{getLastCommit(function(_0x35539e,_0x40247d){const _0x3d67e4=a1229_0x2319;if(_0x35539e)_0x343351(_0x35539e);else{const {shortHash:_0x1baa81,branch:_0x29c39c,committedOn:_0x455235,tags:_0x3168ab}=_0x40247d;_0x2a0e83({'shortHash':_0x1baa81,'branch':_0x29c39c,'tag':_0x3168ab[_0x3d67e4('0x1')](',\x20'),'committedOn':new Date(Number(_0x455235)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x1c4386=_0x3dc1c2;return cs['isProduction']&&typeof packageJson[_0x1c4386('0x2')]!=='undefined'?Promise[_0x1c4386('0x4')](packageJson[_0x1c4386('0x2')]):getBuildInfo();}module['exports']={'getBuildInfo':getBuildInfo,'readBuildInfo':readBuildInfo}; \ No newline at end of file +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 diff --git a/snippets/chat_v3.0.0-alpha/index.html b/snippets/chat_v3.0.0-alpha/index.html index 5ccedfa..20ecdc3 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